@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/Punchcard.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 = 441);
90
+ /******/ return __webpack_require__(__webpack_require__.s = 444);
91
91
  /******/ })
92
92
  /************************************************************************/
93
93
  /******/ ({
@@ -120,7 +120,7 @@ module.exports = require("@splunk/themes/variables");
120
120
 
121
121
  /***/ }),
122
122
 
123
- /***/ 112:
123
+ /***/ 113:
124
124
  /***/ (function(module, exports) {
125
125
 
126
126
  module.exports = require("lodash/find");
@@ -152,14 +152,14 @@ var Item = styled_components_1.default.div.attrs(function (_ref) {
152
152
  var width = _ref.width;
153
153
  return {
154
154
  style: {
155
- width: style_1.toPx(width)
155
+ width: (0, style_1.toPx)(width)
156
156
  }
157
157
  };
158
158
  }).withConfig({
159
159
  displayName: "FixedSizeContainer__Item",
160
160
  componentId: "sc-1yhgpod-0"
161
161
  })(["position:relative;background-color:", "};"], function (props) {
162
- return colorUtils_1.isColor(props.backgroundColor) && props.backgroundColor || props.theme.defaultBackgroundColor;
162
+ return (0, colorUtils_1.isColor)(props.backgroundColor) && props.backgroundColor || props.theme.defaultBackgroundColor;
163
163
  });
164
164
  // Use `.attrs()` for highly dynamic styles. Ref: https://github.com/styled-components/styled-components/issues/134#issuecomment-312415291
165
165
  var FixSizeItem = styled_components_1.default.div.attrs(function (_ref2) {
@@ -167,16 +167,16 @@ var FixSizeItem = styled_components_1.default.div.attrs(function (_ref2) {
167
167
  height = _ref2.height;
168
168
  return {
169
169
  style: Object.assign(Object.assign({}, width && {
170
- width: style_1.toPx(width)
170
+ width: (0, style_1.toPx)(width)
171
171
  }), height && {
172
- height: style_1.toPx(height)
172
+ height: (0, style_1.toPx)(height)
173
173
  })
174
174
  };
175
175
  }).withConfig({
176
176
  displayName: "FixedSizeContainer__FixSizeItem",
177
177
  componentId: "sc-1yhgpod-1"
178
178
  })(["position:relative;flex-direction:column;flex:1;display:flex;background-color:", "};"], function (props) {
179
- return colorUtils_1.isColor(props.backgroundColor) && props.backgroundColor || props.theme.defaultBackgroundColor;
179
+ return (0, colorUtils_1.isColor)(props.backgroundColor) && props.backgroundColor || props.theme.defaultBackgroundColor;
180
180
  });
181
181
  var ItemContent = styled_components_1.default.div.withConfig({
182
182
  displayName: "FixedSizeContainer__ItemContent",
@@ -200,7 +200,7 @@ var withFixedSizeContainer = function withFixedSizeContainer(Viz) {
200
200
  }
201
201
  return React.createElement(FixSizeItem, {
202
202
  "data-test": "fix-size-item",
203
- "data-splunk-visualization-version": "25.13.1 - ea48ec41e",
203
+ "data-splunk-visualization-version": "26.0.0 - 2f7458907",
204
204
  width: width,
205
205
  height: height,
206
206
  backgroundColor: backgroundColor
@@ -220,14 +220,14 @@ exports.default = withFixedSizeContainer;
220
220
 
221
221
  /***/ }),
222
222
 
223
- /***/ 136:
223
+ /***/ 138:
224
224
  /***/ (function(module, exports) {
225
225
 
226
226
  module.exports = require("lodash/findIndex");
227
227
 
228
228
  /***/ }),
229
229
 
230
- /***/ 137:
230
+ /***/ 139:
231
231
  /***/ (function(module, exports) {
232
232
 
233
233
  module.exports = require("lodash/flattenDeep");
@@ -279,17 +279,17 @@ module.exports = require("@splunk/visualizations-shared/schemaUtils");
279
279
 
280
280
  /***/ }),
281
281
 
282
- /***/ 167:
282
+ /***/ 17:
283
283
  /***/ (function(module, exports) {
284
284
 
285
- module.exports = require("lodash/sortBy");
285
+ module.exports = require("@babel/runtime/helpers/slicedToArray");
286
286
 
287
287
  /***/ }),
288
288
 
289
- /***/ 17:
289
+ /***/ 170:
290
290
  /***/ (function(module, exports) {
291
291
 
292
- module.exports = require("@babel/runtime/helpers/slicedToArray");
292
+ module.exports = require("lodash/sortBy");
293
293
 
294
294
  /***/ }),
295
295
 
@@ -474,8 +474,8 @@ function hasCompatibleOptions(vizOptions, presetOptions) {
474
474
  */
475
475
  function getInitialPreset(vizContext, vizOptions, presets) {
476
476
  return presets.find(function (preset) {
477
- var presetContext = lodash_1.get(preset, ['value', 'context'], {});
478
- var presetOptions = lodash_1.get(preset, ['value', 'options'], {});
477
+ var presetContext = (0, lodash_1.get)(preset, ['value', 'context'], {});
478
+ var presetOptions = (0, lodash_1.get)(preset, ['value', 'options'], {});
479
479
  var presetContextKeys = Object.keys(presetContext);
480
480
  var presetOptionKeys = Object.keys(presetOptions);
481
481
  // all presets have to explicitly specify which options to reset (i.e. need explicitly undefined keys)
@@ -492,7 +492,7 @@ exports.getInitialPreset = getInitialPreset;
492
492
  * @returns {{ label: string; value; string }[]} array of { label, value } tuples
493
493
  */
494
494
  function generatePrecisionValues(numPrecisionValues) {
495
- return lodash_1.range(0, numPrecisionValues + 1).map(function (i) {
495
+ return (0, lodash_1.range)(0, numPrecisionValues + 1).map(function (i) {
496
496
  return {
497
497
  label: "".concat(i, " (0").concat(i > 0 ? '.' : '').concat('0'.repeat(i), ")"),
498
498
  value: i
@@ -535,28 +535,28 @@ module.exports = require("@splunk/themes/pick");
535
535
  /***/ 25:
536
536
  /***/ (function(module, exports) {
537
537
 
538
- module.exports = require("@splunk/visualization-context/TimezoneContext");
538
+ module.exports = require("@splunk/ui-utils/id");
539
539
 
540
540
  /***/ }),
541
541
 
542
542
  /***/ 26:
543
543
  /***/ (function(module, exports) {
544
544
 
545
- module.exports = require("@splunk/visualizations-shared/hocUtils");
545
+ module.exports = require("@splunk/visualization-context/TimezoneContext");
546
546
 
547
547
  /***/ }),
548
548
 
549
549
  /***/ 27:
550
550
  /***/ (function(module, exports) {
551
551
 
552
- module.exports = require("@splunk/visualizations-shared/JSONSchemaUtils");
552
+ module.exports = require("@splunk/visualizations-shared/hocUtils");
553
553
 
554
554
  /***/ }),
555
555
 
556
- /***/ 29:
556
+ /***/ 28:
557
557
  /***/ (function(module, exports) {
558
558
 
559
- module.exports = require("@splunk/visualization-encoding/Options");
559
+ module.exports = require("@splunk/visualizations-shared/JSONSchemaUtils");
560
560
 
561
561
  /***/ }),
562
562
 
@@ -570,11 +570,18 @@ module.exports = require("lodash");
570
570
  /***/ 30:
571
571
  /***/ (function(module, exports) {
572
572
 
573
- module.exports = require("@splunk/visualizations-shared/numberUtils");
573
+ module.exports = require("@splunk/visualization-encoding/Options");
574
574
 
575
575
  /***/ }),
576
576
 
577
577
  /***/ 31:
578
+ /***/ (function(module, exports) {
579
+
580
+ module.exports = require("@splunk/visualizations-shared/numberUtils");
581
+
582
+ /***/ }),
583
+
584
+ /***/ 32:
578
585
  /***/ (function(module, exports, __webpack_require__) {
579
586
 
580
587
  "use strict";
@@ -598,9 +605,9 @@ var FixedSizeContainer_1 = __webpack_require__(13);
598
605
  */
599
606
  var shouldShowIconPlaceholder = function shouldShowIconPlaceholder(dataSources) {
600
607
  var loading = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
601
- var data = lodash_1.get(dataSources, 'primary.data.columns[0]', undefined);
608
+ var data = (0, lodash_1.get)(dataSources, 'primary.data.columns[0]', undefined);
602
609
  var noData = data === undefined;
603
- var fields = lodash_1.get(dataSources, 'primary.data.fields[0]', undefined);
610
+ var fields = (0, lodash_1.get)(dataSources, 'primary.data.fields[0]', undefined);
604
611
  var noFields = fields === undefined;
605
612
  return loading || noData || noFields;
606
613
  };
@@ -641,7 +648,7 @@ var IconPlaceholder = function IconPlaceholder(props) {
641
648
  width: width,
642
649
  height: height,
643
650
  level: "warning",
644
- message: i18n_1._('No DataSource Connected')
651
+ message: (0, i18n_1._)('No DataSource Connected')
645
652
  });
646
653
  };
647
654
  IconPlaceholder.propTypes = propTypes;
@@ -649,14 +656,7 @@ IconPlaceholder.defaultProps = {
649
656
  width: '100%',
650
657
  height: 250
651
658
  };
652
- exports.default = FixedSizeContainer_1.default(IconPlaceholder);
653
-
654
- /***/ }),
655
-
656
- /***/ 32:
657
- /***/ (function(module, exports) {
658
-
659
- module.exports = require("@splunk/ui-utils/id");
659
+ exports.default = (0, FixedSizeContainer_1.default)(IconPlaceholder);
660
660
 
661
661
  /***/ }),
662
662
 
@@ -691,7 +691,7 @@ var getSortingParams = function getSortingParams(_ref) {
691
691
  };
692
692
  var onSort;
693
693
  if (typeof onRequestParamsChange === 'function') {
694
- if (requestParams && lodash_1.has(requestParams, 'sort')) {
694
+ if (requestParams && (0, lodash_1.has)(requestParams, 'sort')) {
695
695
  currentSortKey = Object.keys(requestParams.sort).shift();
696
696
  currentSortDir = requestParams.sort[currentSortKey];
697
697
  }
@@ -700,7 +700,7 @@ var getSortingParams = function getSortingParams(_ref) {
700
700
  var sortKey = _ref2.sortKey,
701
701
  sortDir = _ref2.sortDir;
702
702
  if (typeof sortKey === 'string') {
703
- var nextSortDir = lodash_1.has(nextSortDirMap, sortDir) ? nextSortDirMap[sortDir] : 'none';
703
+ var nextSortDir = (0, lodash_1.has)(nextSortDirMap, sortDir) ? nextSortDirMap[sortDir] : 'none';
704
704
  onRequestParamsChange(Object.assign(Object.assign({}, requestParams), {
705
705
  offset: 0,
706
706
  sort: _defineProperty({}, sortKey, nextSortDir)
@@ -751,7 +751,7 @@ var getPaginationParams = function getPaginationParams(_ref) {
751
751
  var onChangeHandler = function onChangeHandler(e, _ref2) {
752
752
  var page = _ref2.page,
753
753
  countArg = _ref2.count;
754
- var newParams = lodash_1.cloneDeep(requestParams);
754
+ var newParams = (0, lodash_1.cloneDeep)(requestParams);
755
755
  if (typeof countArg === 'number') {
756
756
  newParams.count = countArg;
757
757
  newParams.offset = 0;
@@ -815,16 +815,16 @@ Object.defineProperty(exports, "__esModule", {
815
815
  var React = __webpack_require__(1);
816
816
  var lodash_1 = __webpack_require__(3);
817
817
  var getSettingsFromThemedProps_1 = __webpack_require__(37);
818
- var Options_1 = __webpack_require__(29);
818
+ var Options_1 = __webpack_require__(30);
819
819
  var SanitizeProps_1 = __webpack_require__(38);
820
- var TimezoneContext_1 = __webpack_require__(25);
820
+ var TimezoneContext_1 = __webpack_require__(26);
821
821
  var moment_1 = __webpack_require__(39);
822
822
  var FeatureFlagContext_1 = __webpack_require__(21);
823
823
  var styled_components_1 = __webpack_require__(4);
824
- var hocUtils_1 = __webpack_require__(26);
825
- var JSONSchemaUtils_1 = __webpack_require__(27);
824
+ var hocUtils_1 = __webpack_require__(27);
825
+ var JSONSchemaUtils_1 = __webpack_require__(28);
826
826
  var async_dynamic_options_evaluator_1 = __webpack_require__(40);
827
- var id_1 = __webpack_require__(32);
827
+ var id_1 = __webpack_require__(25);
828
828
  var SplunkVisualization_1 = __webpack_require__(41);
829
829
  var VizBehavior_1 = __webpack_require__(6);
830
830
  var getSorting_1 = __webpack_require__(33);
@@ -845,8 +845,8 @@ var withDashboardViz = function withDashboardViz(opts) {
845
845
  computeVizProps = _opts$computeVizProps === void 0 ? function () {} : _opts$computeVizProps,
846
846
  disableEditModeCover = opts.disableEditModeCover,
847
847
  useIconPlaceholder = opts.useIconPlaceholder; // sanitizing props before sending them to reactviz.
848
- var SanitizedReactViz = SanitizeProps_1.withSanitizedProps(ReactViz);
849
- var defaultOptions = JSONSchemaUtils_1.pickFieldFromJSONSchema(vizConfig.optionsSchema, 'default');
848
+ var SanitizedReactViz = (0, SanitizeProps_1.withSanitizedProps)(ReactViz);
849
+ var defaultOptions = (0, JSONSchemaUtils_1.pickFieldFromJSONSchema)(vizConfig.optionsSchema, 'default');
850
850
  var DashboardViz = function DashboardViz(props) {
851
851
  var _a;
852
852
  var mode = props.mode,
@@ -881,19 +881,19 @@ var withDashboardViz = function withDashboardViz(opts) {
881
881
  return (_b = (_a = vizConfig.themes)[themeVar]) === null || _b === void 0 ? void 0 : _b.call(_a, props);
882
882
  };
883
883
  var bgColorFromTheme = themeFunc('defaultBackgroundColor');
884
- var _getSettingsFromTheme = getSettingsFromThemedProps_1.default({
884
+ var _ref = (0, getSettingsFromThemedProps_1.default)({
885
885
  theme: theme
886
886
  }),
887
- currentThemeFamily = _getSettingsFromTheme.family,
888
- currentThemeColorScheme = _getSettingsFromTheme.colorScheme,
889
- currentThemeDensity = _getSettingsFromTheme.density;
887
+ currentThemeFamily = _ref.family,
888
+ currentThemeColorScheme = _ref.colorScheme,
889
+ currentThemeDensity = _ref.density;
890
890
  var evaluatedOptions = {}; // evaluatedOptions need to be initialized as an empty object
891
891
  var _React$useState = React.useState({}),
892
892
  _React$useState2 = _slicedToArray(_React$useState, 2),
893
893
  evaluatedOptionsAsync = _React$useState2[0],
894
894
  setEvaluatedOptionsAsync = _React$useState2[1]; // evaluatedOptions need to be initialized as an empty object
895
895
  var featureFlagContext = React.useContext(FeatureFlagContext_1.default);
896
- var _React$useState3 = React.useState("".concat(vizConfig.name, " - ").concat(id_1.createGUID())),
896
+ var _React$useState3 = React.useState("".concat(vizConfig.name, " - ").concat((0, id_1.createGUID)())),
897
897
  _React$useState4 = _slicedToArray(_React$useState3, 1),
898
898
  visualizationID = _React$useState4[0];
899
899
  var _React$useState5 = React.useState({}),
@@ -904,16 +904,17 @@ var withDashboardViz = function withDashboardViz(opts) {
904
904
  _React$useState8 = _slicedToArray(_React$useState7, 2),
905
905
  dataFramesInState = _React$useState8[0],
906
906
  setDataFramesInState = _React$useState8[1];
907
- var _React$useState9 = React.useState(Boolean(featureFlagContext && featureFlagContext.visualizations_useWebWorkersForDSL && typeof Worker !== 'undefined')),
907
+ var _React$useState9 = React.useState(Boolean(featureFlagContext === null || featureFlagContext === void 0 ? void 0 : featureFlagContext.visualizations_useWebWorkersForDSL)),
908
908
  _React$useState10 = _slicedToArray(_React$useState9, 2),
909
909
  useAsyncEvaluatedOptions = _React$useState10[0],
910
910
  setUseAsyncEvaluatedOptions = _React$useState10[1];
911
- evaluatedOptions = useDeepMemo_1.useDeepMemo(function () {
911
+ var isMounted = React.useRef(true);
912
+ evaluatedOptions = (0, useDeepMemo_1.useDeepMemo)(function () {
912
913
  try {
913
914
  if (useAsyncEvaluatedOptions) {
914
915
  var optionsToEvaluate = {
915
- context: lodash_1.defaultsDeep({}, context, vizConfig.defaultContext),
916
- options: hocUtils_1.deepMergeWithArrayPrimitiveOverrides({}, options, defaultOptions)
916
+ context: (0, lodash_1.defaultsDeep)({}, context, vizConfig.defaultContext),
917
+ options: (0, hocUtils_1.deepMergeWithArrayPrimitiveOverrides)({}, options, defaultOptions)
917
918
  };
918
919
  var asyncDynamicOptionsEvaluatorParams = {
919
920
  visualizationID: visualizationID,
@@ -924,10 +925,10 @@ var withDashboardViz = function withDashboardViz(opts) {
924
925
  };
925
926
  async_dynamic_options_evaluator_1.default.evaluate(asyncDynamicOptionsEvaluatorParams).then(function (results) {
926
927
  setEvaluatedOptionsAsync(results.results);
927
- }).catch(function (e) {
928
- // eslint-disable-next-line no-console
929
- console.error("unexpected error evaluating options - async: ".concat(e.message));
930
- setUseAsyncEvaluatedOptions(false);
928
+ }).catch(function () {
929
+ if (isMounted.current) {
930
+ setUseAsyncEvaluatedOptions(false);
931
+ }
931
932
  });
932
933
  } else {
933
934
  var dataFrames = dataFramesInState;
@@ -937,8 +938,8 @@ var withDashboardViz = function withDashboardViz(opts) {
937
938
  setDataFramesInState(dataFrames);
938
939
  }
939
940
  return Options_1.Options.evaluate({
940
- context: lodash_1.defaultsDeep({}, context, vizConfig.defaultContext),
941
- options: hocUtils_1.deepMergeWithArrayPrimitiveOverrides({}, options, defaultOptions)
941
+ context: (0, lodash_1.defaultsDeep)({}, context, vizConfig.defaultContext),
942
+ options: (0, hocUtils_1.deepMergeWithArrayPrimitiveOverrides)({}, options, defaultOptions)
942
943
  }, dataSources, themeFunc, dataFrames);
943
944
  }
944
945
  } catch (e) {
@@ -967,6 +968,7 @@ var withDashboardViz = function withDashboardViz(opts) {
967
968
  React.useEffect(function () {
968
969
  return function () {
969
970
  if (useAsyncEvaluatedOptions) {
971
+ isMounted.current = false;
970
972
  async_dynamic_options_evaluator_1.default.reset(visualizationID);
971
973
  }
972
974
  };
@@ -976,7 +978,7 @@ var withDashboardViz = function withDashboardViz(opts) {
976
978
  var _vizConfig$requiredPr = vizConfig.requiredProps,
977
979
  requiredProps = _vizConfig$requiredPr === void 0 ? [] : _vizConfig$requiredPr,
978
980
  supports = vizConfig.supports;
979
- var missing = MissingPropsMessage_1.missingKeys(requiredProps, evaluatedOptionsToUse);
981
+ var missing = (0, MissingPropsMessage_1.missingKeys)(requiredProps, evaluatedOptionsToUse);
980
982
  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
981
983
  ) {
982
984
  return React.createElement(MissingPropsMessage_1.default, {
@@ -992,7 +994,7 @@ var withDashboardViz = function withDashboardViz(opts) {
992
994
  if (hasEventHandlers && mode === 'view' && vizConfig.supports.indexOf(VizBehavior_1.VizBehavior.EVENTS) > -1) {
993
995
  var supportedEvents = vizConfig.events;
994
996
  Object.keys(supportedEvents).forEach(function (eventName) {
995
- var eventCallbackPropName = lodash_1.camelCase("on.".concat(eventName));
997
+ var eventCallbackPropName = (0, lodash_1.camelCase)("on.".concat(eventName));
996
998
  eventCallbackProps[eventCallbackPropName] = null;
997
999
  // todo: refactor single value and single value icon to send payload from viz
998
1000
  // then remove these lines
@@ -1035,19 +1037,19 @@ var withDashboardViz = function withDashboardViz(opts) {
1035
1037
  */
1036
1038
  var dataSourceMetadata = {};
1037
1039
  var OptionKey = 'paginateDataSourceKey';
1038
- var paginateDataSourceKey = lodash_1.has(evaluatedOptionsToUse, OptionKey) && evaluatedOptionsToUse[OptionKey] || 'primary';
1039
- if (vizConfig.supports.indexOf(VizBehavior_1.VizBehavior.PAGE_AND_SORT) > -1 && lodash_1.has(dataSources, paginateDataSourceKey)) {
1040
- var requestParams = lodash_1.get(dataSources, [paginateDataSourceKey, 'requestParams'], {});
1041
- var meta = lodash_1.get(dataSources, [paginateDataSourceKey, 'meta'], {});
1040
+ var paginateDataSourceKey = (0, lodash_1.has)(evaluatedOptionsToUse, OptionKey) && evaluatedOptionsToUse[OptionKey] || 'primary';
1041
+ if (vizConfig.supports.indexOf(VizBehavior_1.VizBehavior.PAGE_AND_SORT) > -1 && (0, lodash_1.has)(dataSources, paginateDataSourceKey)) {
1042
+ var requestParams = (0, lodash_1.get)(dataSources, [paginateDataSourceKey, 'requestParams'], {});
1043
+ var meta = (0, lodash_1.get)(dataSources, [paginateDataSourceKey, 'meta'], {});
1042
1044
  var handleRequestParamsChange = function handleRequestParamsChange(payload) {
1043
1045
  return onRequestParamsChange(paginateDataSourceKey, payload);
1044
1046
  };
1045
- var sortParams = getSorting_1.getSortingParams({
1047
+ var sortParams = (0, getSorting_1.getSortingParams)({
1046
1048
  requestParams: requestParams,
1047
1049
  meta: meta,
1048
1050
  onRequestParamsChange: handleRequestParamsChange
1049
1051
  });
1050
- var paginatorParams = getPagination_1.getPaginationParams({
1052
+ var paginatorParams = (0, getPagination_1.getPaginationParams)({
1051
1053
  requestParams: requestParams,
1052
1054
  meta: meta,
1053
1055
  onRequestParamsChange: handleRequestParamsChange
@@ -1075,7 +1077,7 @@ var withDashboardViz = function withDashboardViz(opts) {
1075
1077
  // attach viz config
1076
1078
  DashboardViz.config = vizConfig;
1077
1079
  // @ts-ignore: TODO fix sc upgrade TS issues
1078
- return styled_components_1.withTheme(withPlaceholder_1.default(withEditModeCover_1.default(DashboardViz, disableEditModeCover), useIconPlaceholder));
1080
+ return (0, styled_components_1.withTheme)((0, withPlaceholder_1.default)((0, withEditModeCover_1.default)(DashboardViz, disableEditModeCover), useIconPlaceholder));
1079
1081
  };
1080
1082
  exports.default = withDashboardViz;
1081
1083
 
@@ -1319,8 +1321,8 @@ var lodash_1 = __webpack_require__(3);
1319
1321
  * @param dependencies an array of dependencies
1320
1322
  */
1321
1323
  var useDeepMemo = function useDeepMemo(fn, dependencies) {
1322
- var ref = react_1.useRef();
1323
- if (!ref.current || !lodash_1.isEqual(dependencies, ref.current.dependencies)) {
1324
+ var ref = (0, react_1.useRef)();
1325
+ if (!ref.current || !(0, lodash_1.isEqual)(dependencies, ref.current.dependencies)) {
1324
1326
  ref.current = {
1325
1327
  dependencies: dependencies,
1326
1328
  value: fn()
@@ -1332,7 +1334,7 @@ exports.useDeepMemo = useDeepMemo;
1332
1334
 
1333
1335
  /***/ }),
1334
1336
 
1335
- /***/ 441:
1337
+ /***/ 444:
1336
1338
  /***/ (function(module, exports, __webpack_require__) {
1337
1339
 
1338
1340
  "use strict";
@@ -1354,10 +1356,10 @@ Object.defineProperty(exports, "__esModule", {
1354
1356
  exports.themes = exports.computeVizProps = exports.PurePunchcard = exports.config = void 0;
1355
1357
  var lodash_1 = __webpack_require__(3);
1356
1358
  var visualization_color_palettes_1 = __webpack_require__(51);
1357
- var config_1 = __webpack_require__(442);
1359
+ var config_1 = __webpack_require__(445);
1358
1360
  var withDashboardViz_1 = __webpack_require__(36);
1359
- var Punchcard_1 = __webpack_require__(443);
1360
- var punchcardUtils_1 = __webpack_require__(451);
1361
+ var Punchcard_1 = __webpack_require__(446);
1362
+ var punchcardUtils_1 = __webpack_require__(454);
1361
1363
  exports.config = config_1.default;
1362
1364
  exports.PurePunchcard = Punchcard_1.default;
1363
1365
  var validOptions = Object.keys(exports.config.optionsSchema);
@@ -1368,7 +1370,7 @@ var computeVizProps = function computeVizProps(_a) {
1368
1370
  y = _a.y,
1369
1371
  category = _a.category,
1370
1372
  otherOptions = __rest(_a, ["onPointClick", "onLegendClick", "x", "y", "category"]);
1371
- var options = lodash_1.chain(otherOptions).pick(validOptions).thru(punchcardUtils_1.convertToPunchcardProperties).value();
1373
+ var options = (0, lodash_1.chain)(otherOptions).pick(validOptions).thru(punchcardUtils_1.convertToPunchcardProperties).value();
1372
1374
  if (options.seriesColors && typeof options.seriesColors === 'string') {
1373
1375
  try {
1374
1376
  options.seriesColors = JSON.parse(options.seriesColors);
@@ -1386,7 +1388,7 @@ var computeVizProps = function computeVizProps(_a) {
1386
1388
  }, options);
1387
1389
  };
1388
1390
  exports.computeVizProps = computeVizProps;
1389
- var viz = withDashboardViz_1.default({
1391
+ var viz = (0, withDashboardViz_1.default)({
1390
1392
  ReactViz: Punchcard_1.default,
1391
1393
  computeVizProps: exports.computeVizProps,
1392
1394
  vizConfig: config_1.default
@@ -1396,7 +1398,7 @@ exports.default = viz;
1396
1398
 
1397
1399
  /***/ }),
1398
1400
 
1399
- /***/ 442:
1401
+ /***/ 445:
1400
1402
  /***/ (function(module, exports, __webpack_require__) {
1401
1403
 
1402
1404
  "use strict";
@@ -1408,7 +1410,7 @@ Object.defineProperty(exports, "__esModule", {
1408
1410
  var i18n_1 = __webpack_require__(2);
1409
1411
  var schemaUtils_1 = __webpack_require__(16);
1410
1412
  var visualization_icons_1 = __webpack_require__(52);
1411
- var placeholders_1 = __webpack_require__(49);
1413
+ var placeholders_1 = __webpack_require__(50);
1412
1414
  var visualization_color_palettes_1 = __webpack_require__(51);
1413
1415
  var pick_1 = __webpack_require__(23);
1414
1416
  var variables_1 = __webpack_require__(11);
@@ -1511,7 +1513,7 @@ var optionsSchema = {
1511
1513
  bubbleLabelDisplay: {
1512
1514
  default: 'all',
1513
1515
  description: 'Specify whether all bubble labels, the max value bubble labels, or none of the bubble labels should be displayed.',
1514
- pattern: schemaUtils_1.getPattern(['all', 'max', 'off']),
1516
+ pattern: (0, schemaUtils_1.getPattern)(['all', 'max', 'off']),
1515
1517
  type: 'string'
1516
1518
  },
1517
1519
  bubbleRadiusMax: {
@@ -1527,7 +1529,7 @@ var optionsSchema = {
1527
1529
  bubbleRowScale: {
1528
1530
  default: 'global',
1529
1531
  description: 'Specify how bubbles are scaled relative to other rows.',
1530
- pattern: schemaUtils_1.getPattern(['global', 'row']),
1532
+ pattern: (0, schemaUtils_1.getPattern)(['global', 'row']),
1531
1533
  type: 'string'
1532
1534
  },
1533
1535
  bubbleSizeMax: {
@@ -1543,19 +1545,19 @@ var optionsSchema = {
1543
1545
  bubbleSizeMethod: {
1544
1546
  default: 'area',
1545
1547
  description: 'Specify whether bubble area or diameter corresponds to the size value.',
1546
- pattern: schemaUtils_1.getPattern(['radius', 'area']),
1548
+ pattern: (0, schemaUtils_1.getPattern)(['radius', 'area']),
1547
1549
  type: 'string'
1548
1550
  },
1549
1551
  colorMode: {
1550
1552
  default: 'dynamic',
1551
1553
  description: 'Specify the coloring method used for the bubbles.',
1552
- pattern: schemaUtils_1.getPattern(['categorical', 'dynamic']),
1554
+ pattern: (0, schemaUtils_1.getPattern)(['categorical', 'dynamic']),
1553
1555
  type: 'string'
1554
1556
  },
1555
1557
  legendDisplay: {
1556
1558
  default: 'right',
1557
1559
  description: 'Specify the location of the legend on the panel.',
1558
- pattern: schemaUtils_1.getPattern(['right', 'off']),
1560
+ pattern: (0, schemaUtils_1.getPattern)(['right', 'off']),
1559
1561
  type: 'string'
1560
1562
  },
1561
1563
  seriesColors: {
@@ -1584,7 +1586,7 @@ var optionsSchema = {
1584
1586
  };
1585
1587
  var themes = {
1586
1588
  defaultBackgroundColor: function defaultBackgroundColor(props) {
1587
- return pick_1.default({
1589
+ return (0, pick_1.default)({
1588
1590
  enterprise: {
1589
1591
  dark: variables_1.default.black(props),
1590
1592
  light: variables_1.default.backgroundColor(props)
@@ -1594,73 +1596,73 @@ var themes = {
1594
1596
  }
1595
1597
  };
1596
1598
  var editorConfig = [{
1597
- label: i18n_1._('Data display'),
1599
+ label: (0, i18n_1._)('Data display'),
1598
1600
  layout: [[{
1599
- label: i18n_1._('Show bubble labels'),
1601
+ label: (0, i18n_1._)('Show bubble labels'),
1600
1602
  option: 'bubbleLabelDisplay',
1601
1603
  editor: 'editor.radioBar',
1602
1604
  editorProps: {
1603
1605
  values: [{
1604
- label: i18n_1._('All'),
1606
+ label: (0, i18n_1._)('All'),
1605
1607
  value: 'all'
1606
1608
  }, {
1607
- label: i18n_1._('Max'),
1609
+ label: (0, i18n_1._)('Max'),
1608
1610
  value: 'max'
1609
1611
  }, {
1610
- label: i18n_1._('Off'),
1612
+ label: (0, i18n_1._)('Off'),
1611
1613
  value: 'off'
1612
1614
  }]
1613
1615
  }
1614
1616
  }], [{
1615
- label: i18n_1._('Pulsate max value'),
1617
+ label: (0, i18n_1._)('Pulsate max value'),
1616
1618
  option: 'showMaxValuePulsation',
1617
1619
  editor: 'editor.toggle'
1618
1620
  }], [{
1619
- label: i18n_1._('Bubble scale'),
1621
+ label: (0, i18n_1._)('Bubble scale'),
1620
1622
  option: 'bubbleSizeMethod',
1621
1623
  editor: 'editor.radioBar',
1622
1624
  editorProps: {
1623
1625
  values: [{
1624
- label: i18n_1._('Radius'),
1626
+ label: (0, i18n_1._)('Radius'),
1625
1627
  value: 'radius'
1626
1628
  }, {
1627
- label: i18n_1._('Area'),
1629
+ label: (0, i18n_1._)('Area'),
1628
1630
  value: 'area'
1629
1631
  }]
1630
1632
  }
1631
1633
  }], [{
1632
- label: i18n_1._('Bubble row scale'),
1634
+ label: (0, i18n_1._)('Bubble row scale'),
1633
1635
  option: 'bubbleRowScale',
1634
1636
  editor: 'editor.radioBar',
1635
1637
  editorProps: {
1636
1638
  values: [{
1637
- label: i18n_1._('Global'),
1639
+ label: (0, i18n_1._)('Global'),
1638
1640
  value: 'global'
1639
1641
  }, {
1640
- label: i18n_1._('By Row'),
1642
+ label: (0, i18n_1._)('By Row'),
1641
1643
  value: 'row'
1642
1644
  }]
1643
1645
  }
1644
1646
  }]]
1645
1647
  }, {
1646
- label: i18n_1._('Color and style'),
1648
+ label: (0, i18n_1._)('Color and style'),
1647
1649
  layout: [[{
1648
- label: i18n_1._('Color mode'),
1650
+ label: (0, i18n_1._)('Color mode'),
1649
1651
  option: 'colorMode',
1650
1652
  editor: 'editor.radioBar',
1651
1653
  editorProps: {
1652
1654
  values: [{
1653
- label: i18n_1._('Dynamic'),
1655
+ label: (0, i18n_1._)('Dynamic'),
1654
1656
  value: 'dynamic'
1655
1657
  }, {
1656
- label: i18n_1._('Categorical'),
1658
+ label: (0, i18n_1._)('Categorical'),
1657
1659
  value: 'categorical'
1658
1660
  }]
1659
1661
  }
1660
1662
  }], [
1661
1663
  // This should be hidden in categorical color mode
1662
1664
  {
1663
- label: i18n_1._('Color by field'),
1665
+ label: (0, i18n_1._)('Color by field'),
1664
1666
  editor: 'editor.columnSelector',
1665
1667
  option: 'bubbleColor',
1666
1668
  context: 'bubbleColorConfig',
@@ -1680,18 +1682,18 @@ var editorConfig = [{
1680
1682
  };
1681
1683
  }
1682
1684
  }
1683
- }], BackgroundColor_1.default({
1685
+ }], (0, BackgroundColor_1.default)({
1684
1686
  themes: themes
1685
1687
  }), [{
1686
- label: i18n_1._('Legend display'),
1688
+ label: (0, i18n_1._)('Legend display'),
1687
1689
  option: 'legendDisplay',
1688
1690
  editor: 'editor.select',
1689
1691
  editorProps: {
1690
1692
  values: [{
1691
- label: i18n_1._('Right'),
1693
+ label: (0, i18n_1._)('Right'),
1692
1694
  value: 'right'
1693
1695
  }, {
1694
- label: i18n_1._('Off'),
1696
+ label: (0, i18n_1._)('Off'),
1695
1697
  value: 'off'
1696
1698
  }]
1697
1699
  },
@@ -1712,7 +1714,7 @@ var config = {
1712
1714
  /**
1713
1715
  * viz name
1714
1716
  */
1715
- name: i18n_1._('Punchcard'),
1717
+ name: (0, i18n_1._)('Punchcard'),
1716
1718
  category: VizCategory_1.VizCategory.CORRELATION,
1717
1719
  /**
1718
1720
  * viz icon
@@ -1736,11 +1738,11 @@ var config = {
1736
1738
  themes: themes,
1737
1739
  requiredProps: ['x', 'y', 'size']
1738
1740
  };
1739
- exports.default = configUtils_1.enhanceConfig(config);
1741
+ exports.default = (0, configUtils_1.enhanceConfig)(config);
1740
1742
 
1741
1743
  /***/ }),
1742
1744
 
1743
- /***/ 443:
1745
+ /***/ 446:
1744
1746
  /***/ (function(module, exports, __webpack_require__) {
1745
1747
 
1746
1748
  "use strict";
@@ -1759,16 +1761,16 @@ var SizeAwareWrapper_1 = __webpack_require__(19);
1759
1761
  var style_1 = __webpack_require__(14);
1760
1762
  var visualization_color_palettes_1 = __webpack_require__(51);
1761
1763
  var punchcardUtils_1 = __webpack_require__(99);
1762
- var sortUtils_1 = __webpack_require__(444);
1763
- var PunchcardAxis_1 = __webpack_require__(445);
1764
- var PunchcardChartArea_1 = __webpack_require__(446);
1765
- var PunchcardLegend_1 = __webpack_require__(449);
1766
- var PunchcardGridLines_1 = __webpack_require__(450);
1764
+ var sortUtils_1 = __webpack_require__(447);
1765
+ var PunchcardAxis_1 = __webpack_require__(448);
1766
+ var PunchcardChartArea_1 = __webpack_require__(449);
1767
+ var PunchcardLegend_1 = __webpack_require__(452);
1768
+ var PunchcardGridLines_1 = __webpack_require__(453);
1767
1769
  var Container = styled_components_1.default.div.withConfig({
1768
1770
  displayName: "Punchcard__Container",
1769
1771
  componentId: "orvtgq-0"
1770
1772
  })(["cursor:default;overflow:hidden;", ";background-color:", ";"], function (props) {
1771
- return style_1.toDimension(lodash_1.pick(props, ['width', 'height']));
1773
+ return (0, style_1.toDimension)((0, lodash_1.pick)(props, ['width', 'height']));
1772
1774
  }, function (props) {
1773
1775
  return props.backgroundColor;
1774
1776
  });
@@ -1782,13 +1784,13 @@ var PunchcardContainer = styled_components_1.default.div.withConfig({
1782
1784
  displayName: "Punchcard__PunchcardContainer",
1783
1785
  componentId: "orvtgq-2"
1784
1786
  })(["overflow:hidden;position:relative;", ";"], function (props) {
1785
- return style_1.toDimension(lodash_1.pick(props, ['width', 'height']));
1787
+ return (0, style_1.toDimension)((0, lodash_1.pick)(props, ['width', 'height']));
1786
1788
  });
1787
1789
  var PunchcardSVG = styled_components_1.default.svg.withConfig({
1788
1790
  displayName: "Punchcard__PunchcardSVG",
1789
1791
  componentId: "orvtgq-3"
1790
1792
  })(["", ";"], function (props) {
1791
- return style_1.toDimension(lodash_1.pick(props, ['width', 'height']));
1793
+ return (0, style_1.toDimension)((0, lodash_1.pick)(props, ['width', 'height']));
1792
1794
  });
1793
1795
  var Punchcard = function Punchcard(props) {
1794
1796
  var _React$useState = React.useState(null),
@@ -1858,14 +1860,14 @@ var Punchcard = function Punchcard(props) {
1858
1860
  onLegendClick = props.onLegendClick;
1859
1861
  var calculatedColorMode = category ? colorMode : punchcardUtils_1.COLOR_MODE_TYPES.SEQUENTIAL;
1860
1862
  var displayLegend = showLegend && calculatedColorMode === punchcardUtils_1.COLOR_MODE_TYPES.CATEGORICAL;
1861
- var uniqX = useDefaultSort ? sortUtils_1.sortAxis(lodash_1.uniq(x.map(function (v) {
1863
+ var uniqX = useDefaultSort ? (0, sortUtils_1.sortAxis)((0, lodash_1.uniq)(x.map(function (v) {
1862
1864
  return "".concat(v);
1863
- }))) : lodash_1.uniq(x);
1864
- var uniqY = useDefaultSort ? sortUtils_1.sortAxis(lodash_1.uniq(y.map(function (v) {
1865
+ }))) : (0, lodash_1.uniq)(x);
1866
+ var uniqY = useDefaultSort ? (0, sortUtils_1.sortAxis)((0, lodash_1.uniq)(y.map(function (v) {
1865
1867
  return "".concat(v);
1866
- }))) : lodash_1.uniq(y);
1867
- var uniqCategory = lodash_1.uniq(category);
1868
- var colorCategoryMapping = punchcardUtils_1.getColorCategoryMapping({
1868
+ }))) : (0, lodash_1.uniq)(y);
1869
+ var uniqCategory = (0, lodash_1.uniq)(category);
1870
+ var colorCategoryMapping = (0, punchcardUtils_1.getColorCategoryMapping)({
1869
1871
  category: uniqCategory,
1870
1872
  colorMode: calculatedColorMode,
1871
1873
  seriesColors: seriesColors
@@ -1893,32 +1895,32 @@ var Punchcard = function Punchcard(props) {
1893
1895
  var renderVisualization = function renderVisualization(_ref) {
1894
1896
  var containerWidth = _ref.width,
1895
1897
  containerHeight = _ref.height;
1896
- var _punchcardUtils_1$get = punchcardUtils_1.getChartAreaDimensions({
1898
+ var _ref2 = (0, punchcardUtils_1.getChartAreaDimensions)({
1897
1899
  containerWidth: containerWidth,
1898
1900
  containerHeight: containerHeight,
1899
1901
  displayLegend: displayLegend
1900
1902
  }),
1901
- xAxisStartY = _punchcardUtils_1$get.xAxisStartY,
1902
- yAxisStartX = _punchcardUtils_1$get.yAxisStartX,
1903
- chartAreaStartX = _punchcardUtils_1$get.chartAreaStartX,
1904
- chartAreaStartY = _punchcardUtils_1$get.chartAreaStartY,
1905
- chartAreaEndX = _punchcardUtils_1$get.chartAreaEndX,
1906
- chartAreaEndY = _punchcardUtils_1$get.chartAreaEndY,
1907
- legendStartX = _punchcardUtils_1$get.legendStartX;
1908
- var _punchcardUtils_1$get2 = punchcardUtils_1.getScales({
1903
+ xAxisStartY = _ref2.xAxisStartY,
1904
+ yAxisStartX = _ref2.yAxisStartX,
1905
+ chartAreaStartX = _ref2.chartAreaStartX,
1906
+ chartAreaStartY = _ref2.chartAreaStartY,
1907
+ chartAreaEndX = _ref2.chartAreaEndX,
1908
+ chartAreaEndY = _ref2.chartAreaEndY,
1909
+ legendStartX = _ref2.legendStartX;
1910
+ var _ref3 = (0, punchcardUtils_1.getScales)({
1909
1911
  values: uniqX,
1910
1912
  start: chartAreaStartX,
1911
1913
  end: chartAreaEndX
1912
1914
  }),
1913
- xScale = _punchcardUtils_1$get2.scale,
1914
- xPositionScale = _punchcardUtils_1$get2.positionScale;
1915
- var _punchcardUtils_1$get3 = punchcardUtils_1.getScales({
1915
+ xScale = _ref3.scale,
1916
+ xPositionScale = _ref3.positionScale;
1917
+ var _ref4 = (0, punchcardUtils_1.getScales)({
1916
1918
  values: uniqY,
1917
1919
  start: chartAreaStartY,
1918
1920
  end: chartAreaEndY
1919
1921
  }),
1920
- yScale = _punchcardUtils_1$get3.scale,
1921
- yPositionScale = _punchcardUtils_1$get3.positionScale;
1922
+ yScale = _ref4.scale,
1923
+ yPositionScale = _ref4.positionScale;
1922
1924
  var minBand = Math.min(xScale.bandwidth(), yScale.bandwidth());
1923
1925
  return React.createElement(PunchcardWrapper, {
1924
1926
  backgroundColor: backgroundColor
@@ -2075,7 +2077,7 @@ exports.default = Punchcard;
2075
2077
 
2076
2078
  /***/ }),
2077
2079
 
2078
- /***/ 444:
2080
+ /***/ 447:
2079
2081
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2080
2082
 
2081
2083
  "use strict";
@@ -2085,13 +2087,13 @@ __webpack_require__.r(__webpack_exports__);
2085
2087
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sortedByDTime", function() { return sortedByDTime; });
2086
2088
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sortByDigitOrAlpha", function() { return sortByDigitOrAlpha; });
2087
2089
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sortAxis", function() { return sortAxis; });
2088
- /* harmony import */ var lodash_findIndex__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(136);
2090
+ /* harmony import */ var lodash_findIndex__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(138);
2089
2091
  /* harmony import */ var lodash_findIndex__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_findIndex__WEBPACK_IMPORTED_MODULE_0__);
2090
- /* harmony import */ var lodash_find__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(112);
2092
+ /* harmony import */ var lodash_find__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(113);
2091
2093
  /* harmony import */ var lodash_find__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_find__WEBPACK_IMPORTED_MODULE_1__);
2092
- /* harmony import */ var lodash_sortBy__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(167);
2094
+ /* harmony import */ var lodash_sortBy__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(170);
2093
2095
  /* harmony import */ var lodash_sortBy__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_sortBy__WEBPACK_IMPORTED_MODULE_2__);
2094
- /* harmony import */ var lodash_flattenDeep__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(137);
2096
+ /* harmony import */ var lodash_flattenDeep__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(139);
2095
2097
  /* harmony import */ var lodash_flattenDeep__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_flattenDeep__WEBPACK_IMPORTED_MODULE_3__);
2096
2098
  /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(3);
2097
2099
  /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_4__);
@@ -2341,7 +2343,7 @@ var sortAxis = function sortAxis(axis) {
2341
2343
 
2342
2344
  /***/ }),
2343
2345
 
2344
- /***/ 445:
2346
+ /***/ 448:
2345
2347
  /***/ (function(module, exports, __webpack_require__) {
2346
2348
 
2347
2349
  "use strict";
@@ -2359,7 +2361,7 @@ var punchcardUtils_1 = __webpack_require__(99);
2359
2361
  var AxisLabelText = styled_components_1.default.text.withConfig({
2360
2362
  displayName: "PunchcardAxis__AxisLabelText",
2361
2363
  componentId: "sc-1jv7cdw-0"
2362
- })(["cursor:pointer;dominant-baseline:middle;fill:", ";font-size:12px;text-anchor:", ";opacity:", ";transition:all 0.15s;"], pick_1.default({
2364
+ })(["cursor:pointer;dominant-baseline:middle;fill:", ";font-size:12px;text-anchor:", ";opacity:", ";transition:all 0.15s;"], (0, pick_1.default)({
2363
2365
  /* was previously named textColor in themeReg */
2364
2366
  enterprise: variables_1.default.textColor,
2365
2367
  prisma: variables_1.default.contentColorDefault
@@ -2384,9 +2386,9 @@ var PunchcardAxis = function PunchcardAxis(props) {
2384
2386
  var yPosition = orientation === punchcardUtils_1.AXIS_ORIENTATION_TYPES.VERTICAL ? startPositionY + positionDelta : startPositionY;
2385
2387
  // create padding between x-axis labels
2386
2388
  var xAxisWidthScale = scale.copy().paddingInner(0.1).round(true);
2387
- var truncatedLabel = orientation === punchcardUtils_1.AXIS_ORIENTATION_TYPES.VERTICAL ? punchcardUtils_1.truncateAxisLabelText({
2389
+ var truncatedLabel = orientation === punchcardUtils_1.AXIS_ORIENTATION_TYPES.VERTICAL ? (0, punchcardUtils_1.truncateAxisLabelText)({
2388
2390
  label: "".concat(label)
2389
- }) : punchcardUtils_1.truncateAxisLabelText({
2391
+ }) : (0, punchcardUtils_1.truncateAxisLabelText)({
2390
2392
  label: "".concat(label),
2391
2393
  widthInPX: xAxisWidthScale.bandwidth()
2392
2394
  });
@@ -2433,7 +2435,7 @@ exports.default = PunchcardAxis;
2433
2435
 
2434
2436
  /***/ }),
2435
2437
 
2436
- /***/ 446:
2438
+ /***/ 449:
2437
2439
  /***/ (function(module, exports, __webpack_require__) {
2438
2440
 
2439
2441
  "use strict";
@@ -2447,7 +2449,7 @@ Object.defineProperty(exports, "__esModule", {
2447
2449
  var React = __webpack_require__(1);
2448
2450
  var T = __webpack_require__(0);
2449
2451
  var punchcardUtils_1 = __webpack_require__(99);
2450
- var PunchcardRow_1 = __webpack_require__(447);
2452
+ var PunchcardRow_1 = __webpack_require__(450);
2451
2453
  var PunchcardChartArea = function PunchcardChartArea(props) {
2452
2454
  var showBubbleLabels = props.showBubbleLabels,
2453
2455
  bubbleRowScale = props.bubbleRowScale,
@@ -2476,7 +2478,7 @@ var PunchcardChartArea = function PunchcardChartArea(props) {
2476
2478
  yScale = props.yScale,
2477
2479
  handlePointClick = props.handlePointClick;
2478
2480
  /** @type {Object<String\|Number, import('./utils/punchcardUtils').RowData>} */
2479
- var dataByRows = punchcardUtils_1.getDataByRows({
2481
+ var dataByRows = (0, punchcardUtils_1.getDataByRows)({
2480
2482
  bubbleRowScale: bubbleRowScale,
2481
2483
  bubbleScale: bubbleScale,
2482
2484
  category: category,
@@ -2595,7 +2597,76 @@ exports.default = PunchcardChartArea;
2595
2597
 
2596
2598
  /***/ }),
2597
2599
 
2598
- /***/ 447:
2600
+ /***/ 45:
2601
+ /***/ (function(module, exports, __webpack_require__) {
2602
+
2603
+ "use strict";
2604
+
2605
+
2606
+ Object.defineProperty(exports, "__esModule", {
2607
+ value: true
2608
+ });
2609
+ exports.MissingPropsMessage = exports.missingKeys = exports.isMissing = void 0;
2610
+ var React = __webpack_require__(1);
2611
+ var T = __webpack_require__(0);
2612
+ var i18n_1 = __webpack_require__(2);
2613
+ var Message_1 = __webpack_require__(10);
2614
+ var FixedSizeContainer_1 = __webpack_require__(13);
2615
+ /**
2616
+ * @method isMissing
2617
+ * @param {any} v
2618
+ * @returns {boolean} true if the input value === null or undefined
2619
+ */
2620
+ var isMissing = function isMissing(v) {
2621
+ return v === null || v === undefined;
2622
+ };
2623
+ exports.isMissing = isMissing;
2624
+ /**
2625
+ * @method misskingKeys
2626
+ * @param {string[]} keys
2627
+ * @param {object} target
2628
+ * @returns {string[]} the keys of missing required props
2629
+ */
2630
+ var missingKeys = function missingKeys(keys, target) {
2631
+ return keys.filter(function (k) {
2632
+ return (0, exports.isMissing)(target[k]);
2633
+ });
2634
+ };
2635
+ exports.missingKeys = missingKeys;
2636
+ var propTypes = {
2637
+ width: T.oneOfType([T.string, T.number]),
2638
+ height: T.oneOfType([T.string, T.number]),
2639
+ // eslint-disable-next-line react/no-unused-prop-types
2640
+ backgroundColor: T.string,
2641
+ missingProps: T.arrayOf(T.string)
2642
+ };
2643
+ /**
2644
+ * @method MissingPropsMessage
2645
+ * @param {MissingPropsProps} props
2646
+ * @returns {React.ReactElement}
2647
+ */
2648
+ var MissingPropsMessage = function MissingPropsMessage(props) {
2649
+ var width = props.width,
2650
+ height = props.height,
2651
+ missingProps = props.missingProps;
2652
+ return React.createElement(Message_1.default, {
2653
+ "data-test": "message",
2654
+ width: width,
2655
+ height: height,
2656
+ message: (0, i18n_1._)("Missing property: ".concat(missingProps.join(', ')))
2657
+ });
2658
+ };
2659
+ exports.MissingPropsMessage = MissingPropsMessage;
2660
+ exports.MissingPropsMessage.propTypes = propTypes;
2661
+ exports.MissingPropsMessage.defaultProps = {
2662
+ width: '100%',
2663
+ height: 250
2664
+ };
2665
+ exports.default = (0, FixedSizeContainer_1.default)(exports.MissingPropsMessage);
2666
+
2667
+ /***/ }),
2668
+
2669
+ /***/ 450:
2599
2670
  /***/ (function(module, exports, __webpack_require__) {
2600
2671
 
2601
2672
  "use strict";
@@ -2607,7 +2678,7 @@ Object.defineProperty(exports, "__esModule", {
2607
2678
  var React = __webpack_require__(1);
2608
2679
  var T = __webpack_require__(0);
2609
2680
  var styled_components_1 = __webpack_require__(4);
2610
- var PunchcardBubble_1 = __webpack_require__(448);
2681
+ var PunchcardBubble_1 = __webpack_require__(451);
2611
2682
  var punchcardUtils_1 = __webpack_require__(99);
2612
2683
  var PunchcardRow = function PunchcardRow(props) {
2613
2684
  var showBubbleLabels = props.showBubbleLabels,
@@ -2635,11 +2706,11 @@ var PunchcardRow = function PunchcardRow(props) {
2635
2706
  var cx = xScale(xValue);
2636
2707
  var r = radiusValues[index];
2637
2708
  var fillOpacity = opacities[index];
2638
- var hover = punchcardUtils_1.isSomethingSelected({
2709
+ var hover = (0, punchcardUtils_1.isSomethingSelected)({
2639
2710
  selectedX: selectedX,
2640
2711
  selectedY: selectedY,
2641
2712
  selectedCategory: selectedCategory
2642
- }) && punchcardUtils_1.isBubbleSelected({
2713
+ }) && (0, punchcardUtils_1.isBubbleSelected)({
2643
2714
  selectedX: selectedX,
2644
2715
  selectedY: selectedY,
2645
2716
  selectedCategory: selectedCategory,
@@ -2647,7 +2718,7 @@ var PunchcardRow = function PunchcardRow(props) {
2647
2718
  yValue: yValue,
2648
2719
  categoryValue: categoryValue
2649
2720
  });
2650
- var muted = punchcardUtils_1.isSomethingSelected({
2721
+ var muted = (0, punchcardUtils_1.isSomethingSelected)({
2651
2722
  selectedX: selectedX,
2652
2723
  selectedY: selectedY,
2653
2724
  selectedCategory: selectedCategory
@@ -2716,18 +2787,18 @@ var defaultProps = {
2716
2787
  };
2717
2788
  PunchcardRow.propTypes = propTypes;
2718
2789
  PunchcardRow.defaultProps = defaultProps;
2719
- exports.default = styled_components_1.withTheme(PunchcardRow);
2790
+ exports.default = (0, styled_components_1.withTheme)(PunchcardRow);
2720
2791
 
2721
2792
  /***/ }),
2722
2793
 
2723
- /***/ 448:
2794
+ /***/ 451:
2724
2795
  /***/ (function(module, exports, __webpack_require__) {
2725
2796
 
2726
2797
  "use strict";
2727
2798
 
2728
2799
 
2729
- var _taggedTemplateLiteral = __webpack_require__(98);
2730
- var _templateObject;
2800
+ var _taggedTemplateLiteral = __webpack_require__(59);
2801
+ var _templateObject, _templateObject2;
2731
2802
  Object.defineProperty(exports, "__esModule", {
2732
2803
  value: true
2733
2804
  });
@@ -2736,13 +2807,13 @@ var T = __webpack_require__(0);
2736
2807
  var styled_components_1 = __webpack_require__(4);
2737
2808
  var pick_1 = __webpack_require__(23);
2738
2809
  var variables_1 = __webpack_require__(11);
2739
- var numberUtils_1 = __webpack_require__(30);
2810
+ var numberUtils_1 = __webpack_require__(31);
2740
2811
  var punchcardUtils_1 = __webpack_require__(99);
2741
2812
  var BubbleCircle = styled_components_1.default.circle.withConfig({
2742
2813
  displayName: "PunchcardBubble__BubbleCircle",
2743
2814
  componentId: "sc-1jmms9f-0"
2744
2815
  })(["fill:", ";fill-opacity:1;opacity:", ";stroke:", ";"], function (props) {
2745
- return props.outline ? pick_1.default({
2816
+ return props.outline ? (0, pick_1.default)({
2746
2817
  // bubbleTextColor
2747
2818
  enterprise: {
2748
2819
  light: variables_1.default.white,
@@ -2757,17 +2828,14 @@ var BubbleCircle = styled_components_1.default.circle.withConfig({
2757
2828
  return props.outline ? props.color : 'none';
2758
2829
  });
2759
2830
  var pulsateAnimation = function pulsateAnimation(r) {
2760
- return styled_components_1.keyframes(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n 41% {\n opacity: 0;\n r: ", ";\n }\n 100% {\n opacity: 0;\n r: ", ";\n }\n"])), r + 5, r + 5);
2831
+ return (0, styled_components_1.keyframes)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n 41% {\n opacity: 0;\n r: ", ";\n }\n 100% {\n opacity: 0;\n r: ", ";\n }\n"])), r + 5, r + 5);
2761
2832
  };
2762
- var PulsateBubble = styled_components_1.default(BubbleCircle).withConfig({
2763
- displayName: "PunchcardBubble__PulsateBubble",
2764
- componentId: "sc-1jmms9f-1"
2765
- })(["animation:", " 2.4s linear 0.4s infinite;"], function (props) {
2833
+ var PulsateBubble = (0, styled_components_1.default)(BubbleCircle)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n animation: ", " 2.4s linear 0.4s infinite;\n"])), function (props) {
2766
2834
  return pulsateAnimation(props.r);
2767
2835
  });
2768
2836
  var BubbleGroup = styled_components_1.default.g.withConfig({
2769
2837
  displayName: "PunchcardBubble__BubbleGroup",
2770
- componentId: "sc-1jmms9f-2"
2838
+ componentId: "sc-1jmms9f-1"
2771
2839
  })(["cursor:pointer;opacity:", ";filter:", ";transition:opacity 0.15s;"], function (props) {
2772
2840
  return props.muted ? 0.15 : 1;
2773
2841
  }, function (props) {
@@ -2775,15 +2843,15 @@ var BubbleGroup = styled_components_1.default.g.withConfig({
2775
2843
  });
2776
2844
  var BubbleLabelText = styled_components_1.default.text.withConfig({
2777
2845
  displayName: "PunchcardBubble__BubbleLabelText",
2778
- componentId: "sc-1jmms9f-3"
2846
+ componentId: "sc-1jmms9f-2"
2779
2847
  })(["dominant-baseline:middle;opacity:", ";fill:", "};font-size:", ";font-weight:", ";text-anchor:middle;"], function (props) {
2780
2848
  return props.displayLabel ? 1 : 0;
2781
2849
  }, function (props) {
2782
- return props.hover || props.outline ? pick_1.default({
2850
+ return props.hover || props.outline ? (0, pick_1.default)({
2783
2851
  // bubbleAltTextColor
2784
2852
  enterprise: variables_1.default.textColor,
2785
2853
  prisma: variables_1.default.contentColorActive
2786
- })(props) : pick_1.default({
2854
+ })(props) : (0, pick_1.default)({
2787
2855
  enterprise: {
2788
2856
  dark: variables_1.default.textColor,
2789
2857
  light: variables_1.default.white
@@ -2815,11 +2883,11 @@ var PunchcardBubble = function PunchcardBubble(props) {
2815
2883
  var outline = value < 0;
2816
2884
  var showPulsateBubble = pulsate && !muted && !hover;
2817
2885
  var displayLabel = hover || showBubbleLabel && r >= MIN_BUBBLE_SIZE_TO_DISPLAY_LABEL;
2818
- var bubbleLabelValueText = value <= MAX_DISPLAYABLE_VALUE ? numberUtils_1.formatNumber(value, 0, {
2886
+ var bubbleLabelValueText = value <= MAX_DISPLAYABLE_VALUE ? (0, numberUtils_1.formatNumber)(value, 0, {
2819
2887
  useTrendUnits: true
2820
2888
  }) : VALUE_OVERFLOW_TEXT;
2821
2889
  if (hover) {
2822
- bubbleLabelValueText = numberUtils_1.formatNumber(value, 2);
2890
+ bubbleLabelValueText = (0, numberUtils_1.formatNumber)(value, 2);
2823
2891
  }
2824
2892
  return React.createElement(BubbleGroup, {
2825
2893
  muted: muted,
@@ -2887,7 +2955,7 @@ exports.default = PunchcardBubble;
2887
2955
 
2888
2956
  /***/ }),
2889
2957
 
2890
- /***/ 449:
2958
+ /***/ 452:
2891
2959
  /***/ (function(module, exports, __webpack_require__) {
2892
2960
 
2893
2961
  "use strict";
@@ -2921,7 +2989,7 @@ var LegendIcon = styled_components_1.default.rect.withConfig({
2921
2989
  var LegendText = styled_components_1.default.text.withConfig({
2922
2990
  displayName: "PunchcardLegend__LegendText",
2923
2991
  componentId: "c2f7we-2"
2924
- })(["dominant-baseline:middle;fill:", ";font-size:12px;"], pick_1.default({
2992
+ })(["dominant-baseline:middle;fill:", ";font-size:12px;"], (0, pick_1.default)({
2925
2993
  /* was previously named textColor in themeReg */
2926
2994
  enterprise: variables_1.default.textColor,
2927
2995
  prisma: variables_1.default.contentColorDefault
@@ -2998,76 +3066,7 @@ exports.default = PunchcardLegend;
2998
3066
 
2999
3067
  /***/ }),
3000
3068
 
3001
- /***/ 45:
3002
- /***/ (function(module, exports, __webpack_require__) {
3003
-
3004
- "use strict";
3005
-
3006
-
3007
- Object.defineProperty(exports, "__esModule", {
3008
- value: true
3009
- });
3010
- exports.MissingPropsMessage = exports.missingKeys = exports.isMissing = void 0;
3011
- var React = __webpack_require__(1);
3012
- var T = __webpack_require__(0);
3013
- var i18n_1 = __webpack_require__(2);
3014
- var Message_1 = __webpack_require__(10);
3015
- var FixedSizeContainer_1 = __webpack_require__(13);
3016
- /**
3017
- * @method isMissing
3018
- * @param {any} v
3019
- * @returns {boolean} true if the input value === null or undefined
3020
- */
3021
- var isMissing = function isMissing(v) {
3022
- return v === null || v === undefined;
3023
- };
3024
- exports.isMissing = isMissing;
3025
- /**
3026
- * @method misskingKeys
3027
- * @param {string[]} keys
3028
- * @param {object} target
3029
- * @returns {string[]} the keys of missing required props
3030
- */
3031
- var missingKeys = function missingKeys(keys, target) {
3032
- return keys.filter(function (k) {
3033
- return exports.isMissing(target[k]);
3034
- });
3035
- };
3036
- exports.missingKeys = missingKeys;
3037
- var propTypes = {
3038
- width: T.oneOfType([T.string, T.number]),
3039
- height: T.oneOfType([T.string, T.number]),
3040
- // eslint-disable-next-line react/no-unused-prop-types
3041
- backgroundColor: T.string,
3042
- missingProps: T.arrayOf(T.string)
3043
- };
3044
- /**
3045
- * @method MissingPropsMessage
3046
- * @param {MissingPropsProps} props
3047
- * @returns {React.ReactElement}
3048
- */
3049
- var MissingPropsMessage = function MissingPropsMessage(props) {
3050
- var width = props.width,
3051
- height = props.height,
3052
- missingProps = props.missingProps;
3053
- return React.createElement(Message_1.default, {
3054
- "data-test": "message",
3055
- width: width,
3056
- height: height,
3057
- message: i18n_1._("Missing property: ".concat(missingProps.join(', ')))
3058
- });
3059
- };
3060
- exports.MissingPropsMessage = MissingPropsMessage;
3061
- exports.MissingPropsMessage.propTypes = propTypes;
3062
- exports.MissingPropsMessage.defaultProps = {
3063
- width: '100%',
3064
- height: 250
3065
- };
3066
- exports.default = FixedSizeContainer_1.default(exports.MissingPropsMessage);
3067
-
3068
- /***/ }),
3069
-
3070
- /***/ 450:
3069
+ /***/ 453:
3071
3070
  /***/ (function(module, exports, __webpack_require__) {
3072
3071
 
3073
3072
  "use strict";
@@ -3086,7 +3085,7 @@ var variables_1 = __webpack_require__(11);
3086
3085
  var GridLine = styled_components_1.default.line.withConfig({
3087
3086
  displayName: "PunchcardGridLines__GridLine",
3088
3087
  componentId: "sc-12y1iif-0"
3089
- })(["stroke:", ";stroke-width:1px;"], pick_1.default({
3088
+ })(["stroke:", ";stroke-width:1px;"], (0, pick_1.default)({
3090
3089
  enterprise: {
3091
3090
  light: variables_1.default.gray96,
3092
3091
  dark: variables_1.default.gray25
@@ -3100,8 +3099,8 @@ var PunchcardGridLines = function PunchcardGridLines(props) {
3100
3099
  yEndPosition = props.yEndPosition,
3101
3100
  xDelta = props.xDelta,
3102
3101
  yDelta = props.yDelta;
3103
- var yGridLinesXPositions = lodash_1.range(xStartPosition, xEndPosition + 1, xDelta);
3104
- var xGridLinesYPositions = lodash_1.range(yStartPosition, yEndPosition + 1, yDelta);
3102
+ var yGridLinesXPositions = (0, lodash_1.range)(xStartPosition, xEndPosition + 1, xDelta);
3103
+ var xGridLinesYPositions = (0, lodash_1.range)(yStartPosition, yEndPosition + 1, yDelta);
3105
3104
  return React.createElement("g", {
3106
3105
  "data-test": "data-test-gridlines"
3107
3106
  }, yGridLinesXPositions.map(function (xValue) {
@@ -3144,7 +3143,7 @@ exports.default = PunchcardGridLines;
3144
3143
 
3145
3144
  /***/ }),
3146
3145
 
3147
- /***/ 451:
3146
+ /***/ 454:
3148
3147
  /***/ (function(module, exports, __webpack_require__) {
3149
3148
 
3150
3149
  "use strict";
@@ -3155,7 +3154,7 @@ Object.defineProperty(exports, "__esModule", {
3155
3154
  });
3156
3155
  exports.convertToPunchcardProperties = exports.mapToOldKey = exports.punchcardOptionValuesMapping = void 0;
3157
3156
  var lodash_1 = __webpack_require__(3);
3158
- var chartingUtils_1 = __webpack_require__(55);
3157
+ var chartingUtils_1 = __webpack_require__(56);
3159
3158
  var punchcardOptionsMapping = {
3160
3159
  legendDisplay: 'showLegend',
3161
3160
  bubbleLabelDisplay: 'showBubbleLabels',
@@ -3188,7 +3187,7 @@ exports.punchcardOptionValuesMapping = {
3188
3187
  * @returns {Object}
3189
3188
  */
3190
3189
  var mapToOldKey = function mapToOldKey(options) {
3191
- return lodash_1.mapKeys(options, function (val, key) {
3190
+ return (0, lodash_1.mapKeys)(options, function (val, key) {
3192
3191
  return punchcardOptionsMapping[key] ? punchcardOptionsMapping[key] : key;
3193
3192
  });
3194
3193
  };
@@ -3201,7 +3200,7 @@ exports.mapToOldKey = mapToOldKey;
3201
3200
  * @returns {Object}
3202
3201
  */
3203
3202
  var convertToPunchcardProperties = function convertToPunchcardProperties(originalOptions) {
3204
- return lodash_1.chain(exports.mapToOldKey(originalOptions)).thru(chartingUtils_1.mapToValues(exports.punchcardOptionValuesMapping)).value();
3203
+ return (0, lodash_1.chain)((0, exports.mapToOldKey)(originalOptions)).thru((0, chartingUtils_1.mapToValues)(exports.punchcardOptionValuesMapping)).value();
3205
3204
  };
3206
3205
  exports.convertToPunchcardProperties = convertToPunchcardProperties;
3207
3206
 
@@ -3224,7 +3223,7 @@ var Cover = styled_components_1.default.div.withConfig({
3224
3223
  componentId: "sc-1gsbnxb-0"
3225
3224
  })(["position:absolute;left:0;right:0;top:0;bottom:0;"]);
3226
3225
  var Blocker = styled_components_1.default.div.attrs({
3227
- 'data-splunk-visualization-version': "25.13.1 - ea48ec41e"
3226
+ 'data-splunk-visualization-version': "26.0.0 - 2f7458907"
3228
3227
  }).withConfig({
3229
3228
  displayName: "withEditModeCover__Blocker",
3230
3229
  componentId: "sc-1gsbnxb-1"
@@ -3243,7 +3242,7 @@ var withEditModeCover = function withEditModeCover(Visualization, disableEditMod
3243
3242
  "data-test": "edit-mode-cover"
3244
3243
  }));
3245
3244
  };
3246
- hocUtils_1.extendStaticWrapperProps({
3245
+ (0, hocUtils_1.extendStaticWrapperProps)({
3247
3246
  Wrapper: Wrapper,
3248
3247
  Visualization: Visualization
3249
3248
  });
@@ -3265,7 +3264,7 @@ Object.defineProperty(exports, "__esModule", {
3265
3264
  var React = __webpack_require__(1);
3266
3265
  var colorUtils_1 = __webpack_require__(12);
3267
3266
  var variables_1 = __webpack_require__(11);
3268
- var IconPlaceholder_1 = __webpack_require__(31);
3267
+ var IconPlaceholder_1 = __webpack_require__(32);
3269
3268
  var VizBehavior_1 = __webpack_require__(6);
3270
3269
  var hocUtils_1 = __webpack_require__(15);
3271
3270
  var withPlaceholder = function withPlaceholder(Visualization) {
@@ -3280,7 +3279,7 @@ var withPlaceholder = function withPlaceholder(Visualization) {
3280
3279
  height = props.height,
3281
3280
  width = props.width;
3282
3281
  var showPlaceholder = useIconPlaceholder(dataSources, loading, options);
3283
- 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);
3282
+ 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);
3284
3283
  var icon = (_b = config.placeholderIcon) !== null && _b !== void 0 ? _b : config.icon;
3285
3284
  var iconColor = variables_1.default.contentColorActive(props);
3286
3285
  if (config.supports.includes(VizBehavior_1.VizBehavior.PLACEHOLDER) && showPlaceholder) {
@@ -3295,7 +3294,7 @@ var withPlaceholder = function withPlaceholder(Visualization) {
3295
3294
  }
3296
3295
  return React.createElement(Visualization, Object.assign({}, props));
3297
3296
  };
3298
- hocUtils_1.extendStaticWrapperProps({
3297
+ (0, hocUtils_1.extendStaticWrapperProps)({
3299
3298
  Wrapper: Wrapper,
3300
3299
  Visualization: Visualization
3301
3300
  });
@@ -3305,7 +3304,7 @@ exports.default = withPlaceholder;
3305
3304
 
3306
3305
  /***/ }),
3307
3306
 
3308
- /***/ 49:
3307
+ /***/ 50:
3309
3308
  /***/ (function(module, exports) {
3310
3309
 
3311
3310
  module.exports = require("@splunk/visualization-icons/placeholders");
@@ -3341,7 +3340,7 @@ var background = function background(_ref) {
3341
3340
  themes = _ref.themes,
3342
3341
  labelPosition = _ref.labelPosition;
3343
3342
  return [{
3344
- label: i18n_1._(label || 'Background'),
3343
+ label: (0, i18n_1._)(label || 'Background'),
3345
3344
  option: 'backgroundColor',
3346
3345
  editor: 'editor.color',
3347
3346
  editorProps: {
@@ -3354,7 +3353,7 @@ exports.default = background;
3354
3353
 
3355
3354
  /***/ }),
3356
3355
 
3357
- /***/ 55:
3356
+ /***/ 56:
3358
3357
  /***/ (function(module, exports, __webpack_require__) {
3359
3358
 
3360
3359
  "use strict";
@@ -3430,9 +3429,9 @@ var mapToValues = function mapToValues(optionValuesSCMapping) {
3430
3429
  return function (options) {
3431
3430
  var convertedOptions = Object.assign({}, options);
3432
3431
  Object.keys(optionValuesSCMapping).forEach(function (key) {
3433
- if (lodash_1.has(options, key)) {
3432
+ if ((0, lodash_1.has)(options, key)) {
3434
3433
  var updatedValue = optionValuesSCMapping[key][options[key]];
3435
- if (!lodash_1.isUndefined(updatedValue)) {
3434
+ if (!(0, lodash_1.isUndefined)(updatedValue)) {
3436
3435
  convertedOptions[key] = updatedValue;
3437
3436
  }
3438
3437
  }
@@ -3453,7 +3452,7 @@ var convertY2AxisOptions = function convertY2AxisOptions(_a) {
3453
3452
  var convertedOptions = Object.assign({}, originalOptions);
3454
3453
  if (y2Fields) {
3455
3454
  convertedOptions['axisY2.enabled'] = true;
3456
- convertedOptions['axisY2.fields'] = lodash_1.isArray(y2Fields) ? y2Fields.filter(function (name) {
3455
+ convertedOptions['axisY2.fields'] = (0, lodash_1.isArray)(y2Fields) ? y2Fields.filter(function (name) {
3457
3456
  return name;
3458
3457
  }).join(',') : y2Fields;
3459
3458
  }
@@ -3495,7 +3494,7 @@ exports.isMultiSeriesData = isMultiSeriesData;
3495
3494
  * @return {array}
3496
3495
  */
3497
3496
  var toArrayForSeries = function toArrayForSeries(data, value) {
3498
- return exports.isMultiSeriesData(data) ? value : [value];
3497
+ return (0, exports.isMultiSeriesData)(data) ? value : [value];
3499
3498
  };
3500
3499
  exports.toArrayForSeries = toArrayForSeries;
3501
3500
  var constructFieldsAndColumns = function constructFieldsAndColumns(_ref2) {
@@ -3507,10 +3506,10 @@ var constructFieldsAndColumns = function constructFieldsAndColumns(_ref2) {
3507
3506
  yFields = _ref2.yFields,
3508
3507
  y2 = _ref2.y2,
3509
3508
  y2Fields = _ref2.y2Fields;
3510
- var columns = [x.map(String)].concat(_toConsumableArray(exports.toArrayForSeries(y, y).map(function (series) {
3509
+ var columns = [x.map(String)].concat(_toConsumableArray((0, exports.toArrayForSeries)(y, y).map(function (series) {
3511
3510
  return series.map(String);
3512
3511
  })));
3513
- var yFieldsArray = exports.toArrayForSeries(y, yFields);
3512
+ var yFieldsArray = (0, exports.toArrayForSeries)(y, yFields);
3514
3513
  var fields = [{
3515
3514
  name: xField
3516
3515
  }].concat(_toConsumableArray(yFieldsArray.map(function (field) {
@@ -3522,8 +3521,8 @@ var constructFieldsAndColumns = function constructFieldsAndColumns(_ref2) {
3522
3521
  // when y & y2 options are configured with different (mutually exclusive) series
3523
3522
  // y2 columns need to be added to columns
3524
3523
  if (y2Fields) {
3525
- var y2FieldsArray = exports.toArrayForSeries(y2, y2Fields);
3526
- var y2AsArray = exports.toArrayForSeries(y2, y2).map(function (series) {
3524
+ var y2FieldsArray = (0, exports.toArrayForSeries)(y2, y2Fields);
3525
+ var y2AsArray = (0, exports.toArrayForSeries)(y2, y2).map(function (series) {
3527
3526
  return series === null || series === void 0 ? void 0 : series.map(String);
3528
3527
  });
3529
3528
  y2FieldsArray.forEach(function (y2Field, index) {
@@ -3544,6 +3543,13 @@ exports.constructFieldsAndColumns = constructFieldsAndColumns;
3544
3543
 
3545
3544
  /***/ }),
3546
3545
 
3546
+ /***/ 59:
3547
+ /***/ (function(module, exports) {
3548
+
3549
+ module.exports = require("@babel/runtime/helpers/taggedTemplateLiteral");
3550
+
3551
+ /***/ }),
3552
+
3547
3553
  /***/ 6:
3548
3554
  /***/ (function(module, exports, __webpack_require__) {
3549
3555
 
@@ -3602,20 +3608,13 @@ module.exports = require("@babel/runtime/helpers/classCallCheck");
3602
3608
 
3603
3609
  /***/ }),
3604
3610
 
3605
- /***/ 91:
3611
+ /***/ 92:
3606
3612
  /***/ (function(module, exports) {
3607
3613
 
3608
3614
  module.exports = require("d3-scale");
3609
3615
 
3610
3616
  /***/ }),
3611
3617
 
3612
- /***/ 98:
3613
- /***/ (function(module, exports) {
3614
-
3615
- module.exports = require("@babel/runtime/helpers/taggedTemplateLiteral");
3616
-
3617
- /***/ }),
3618
-
3619
3618
  /***/ 99:
3620
3619
  /***/ (function(module, exports, __webpack_require__) {
3621
3620
 
@@ -3627,7 +3626,7 @@ Object.defineProperty(exports, "__esModule", {
3627
3626
  value: true
3628
3627
  });
3629
3628
  exports.truncateAxisLabelText = exports.isBubbleSelected = exports.isSomethingSelected = exports.getDataByRows = exports.createValueScale = exports.getScales = exports.getChartAreaDimensions = exports.getColorCategoryMapping = exports.GRAYSCALE_FILTER_ID = exports.BUBBLE_LABELS_TYPES = exports.COLOR_MODE_TYPES = exports.BUBBLE_SCALE_TYPES = exports.BUBBLE_ROW_SCALE_TYPES = exports.AXIS_ORIENTATION_TYPES = void 0;
3630
- var d3_scale_1 = __webpack_require__(91);
3629
+ var d3_scale_1 = __webpack_require__(92);
3631
3630
  /**
3632
3631
  * @enum {AXIS_ORIENTATION_TYPES}
3633
3632
  */
@@ -3694,7 +3693,7 @@ var getColorCategoryMapping = function getColorCategoryMapping(_ref) {
3694
3693
  if (colorMode === COLOR_MODE_TYPES.SEQUENTIAL) {
3695
3694
  return null;
3696
3695
  }
3697
- return d3_scale_1.scaleOrdinal().domain(category).range(seriesColors).unknown(seriesColors[0]);
3696
+ return (0, d3_scale_1.scaleOrdinal)().domain(category).range(seriesColors).unknown(seriesColors[0]);
3698
3697
  };
3699
3698
  exports.getColorCategoryMapping = getColorCategoryMapping;
3700
3699
  /**
@@ -3753,7 +3752,7 @@ var getScales = function getScales(_ref3) {
3753
3752
  var values = _ref3.values,
3754
3753
  start = _ref3.start,
3755
3754
  end = _ref3.end;
3756
- var scale = d3_scale_1.scaleBand().domain(values).range([start, end]);
3755
+ var scale = (0, d3_scale_1.scaleBand)().domain(values).range([start, end]);
3757
3756
  // Returns the middle of the band
3758
3757
  var positionScale = function positionScale(value) {
3759
3758
  return scale(value) + scale.bandwidth() / 2;
@@ -3779,7 +3778,7 @@ var createValueScale = function createValueScale(values) {
3779
3778
  absValuesWithoutZero.push(Math.abs(value));
3780
3779
  }
3781
3780
  });
3782
- return d3_scale_1.scaleLinear().domain([Math.min.apply(Math, absValuesWithoutZero), Math.max.apply(Math, absValuesWithoutZero)]).range([0, 1]).clamp(true).unknown(0);
3781
+ return (0, d3_scale_1.scaleLinear)().domain([Math.min.apply(Math, absValuesWithoutZero), Math.max.apply(Math, absValuesWithoutZero)]).range([0, 1]).clamp(true).unknown(0);
3783
3782
  };
3784
3783
  exports.createValueScale = createValueScale;
3785
3784
  /**
@@ -3828,7 +3827,7 @@ var getDataByRows = function getDataByRows(_ref4) {
3828
3827
  var minArea = Math.PI * Math.pow(minRadius, 2);
3829
3828
  var maxArea = Math.PI * Math.pow(maxRadius, 2);
3830
3829
  var isBubbleColorAnArray = Array.isArray(bubbleColor);
3831
- var globalSizeScale = exports.createValueScale(size);
3830
+ var globalSizeScale = (0, exports.createValueScale)(size);
3832
3831
  var getRadiusValue = function getRadiusValue(value, sizeScale) {
3833
3832
  return bubbleScale === BUBBLE_SCALE_TYPES.RADIUS ? (maxRadius - minRadius) * sizeScale(Math.abs(value)) + minRadius : Math.sqrt(((maxArea - minArea) * sizeScale(Math.abs(value)) + minArea) / Math.PI);
3834
3833
  };
@@ -3872,7 +3871,7 @@ var getDataByRows = function getDataByRows(_ref4) {
3872
3871
  var _ref6 = _slicedToArray(_ref5, 2),
3873
3872
  row = _ref6[0],
3874
3873
  rowData = _ref6[1];
3875
- var rowSizeScale = exports.createValueScale(rowData.rowSizeValues);
3874
+ var rowSizeScale = (0, exports.createValueScale)(rowData.rowSizeValues);
3876
3875
  dataByRows[row].rowSizeScale = rowSizeScale;
3877
3876
  // Fill in opacity and radius values based on row scale
3878
3877
  rowData.rowSizeValues.forEach(function (rowSizeValue, index) {