@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/Sankey.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 = 454);
90
+ /******/ return __webpack_require__(__webpack_require__.s = 457);
91
91
  /******/ })
92
92
  /************************************************************************/
93
93
  /******/ ({
@@ -120,7 +120,7 @@ module.exports = require("@splunk/themes/variables");
120
120
 
121
121
  /***/ }),
122
122
 
123
- /***/ 110:
123
+ /***/ 111:
124
124
  /***/ (function(module, exports, __webpack_require__) {
125
125
 
126
126
  "use strict";
@@ -143,12 +143,12 @@ var SizeAwareWrapper_1 = __webpack_require__(19);
143
143
  var style_1 = __webpack_require__(14);
144
144
  var visualization_color_palettes_1 = __webpack_require__(51);
145
145
  // eslint-disable-next-line camelcase
146
- var sankey_1 = __webpack_require__(455);
147
- var VizStyleWrapper_1 = __webpack_require__(72);
148
- var SankeyUtils_1 = __webpack_require__(133);
149
- var SankeyNode_1 = __webpack_require__(456);
150
- var SankeyLink_1 = __webpack_require__(457);
151
- var SankeyTooltip_1 = __webpack_require__(458);
146
+ var sankey_1 = __webpack_require__(458);
147
+ var VizStyleWrapper_1 = __webpack_require__(73);
148
+ var SankeyUtils_1 = __webpack_require__(134);
149
+ var SankeyNode_1 = __webpack_require__(459);
150
+ var SankeyLink_1 = __webpack_require__(460);
151
+ var SankeyTooltip_1 = __webpack_require__(461);
152
152
  exports.DEFAULT_COLORS = {
153
153
  backgroundColor: '#ffffff',
154
154
  nodeTextColor: '#2c2c2c',
@@ -177,7 +177,7 @@ var SankeyContainer = styled_components_1.default.div.withConfig({
177
177
  displayName: "PureSankey__SankeyContainer",
178
178
  componentId: "sc-1r333qx-0"
179
179
  })(["overflow:hidden;", ";"], function (props) {
180
- return style_1.toDimension(lodash_1.pick(props, ['width', 'height']));
180
+ return (0, style_1.toDimension)((0, lodash_1.pick)(props, ['width', 'height']));
181
181
  });
182
182
  var PureSankey = function PureSankey(props) {
183
183
  var width = props.width,
@@ -209,59 +209,59 @@ var PureSankey = function PureSankey(props) {
209
209
  x: 28,
210
210
  y: 17
211
211
  };
212
- var _react_1$useState = react_1.useState([]),
213
- _react_1$useState2 = _slicedToArray(_react_1$useState, 2),
214
- activeLinks = _react_1$useState2[0],
215
- setActiveLinks = _react_1$useState2[1];
216
- var _react_1$useState3 = react_1.useState([]),
217
- _react_1$useState4 = _slicedToArray(_react_1$useState3, 2),
218
- activeNodes = _react_1$useState4[0],
219
- setActiveNodes = _react_1$useState4[1];
220
- var _react_1$useState5 = react_1.useState(null),
221
- _react_1$useState6 = _slicedToArray(_react_1$useState5, 2),
222
- nodeHovered = _react_1$useState6[0],
223
- setNodeHovered = _react_1$useState6[1];
224
- var _react_1$useState7 = react_1.useState(null),
225
- _react_1$useState8 = _slicedToArray(_react_1$useState7, 2),
226
- hoveredNodeElement = _react_1$useState8[0],
227
- setHoveredNodeElement = _react_1$useState8[1];
228
- var _react_1$useState9 = react_1.useState(false),
229
- _react_1$useState10 = _slicedToArray(_react_1$useState9, 2),
230
- openNodeToolTip = _react_1$useState10[0],
231
- setOpenNodeToolTip = _react_1$useState10[1];
232
- var _react_1$useState11 = react_1.useState(null),
233
- _react_1$useState12 = _slicedToArray(_react_1$useState11, 2),
234
- hoveredLinkElement = _react_1$useState12[0],
235
- setHoveredLinkElement = _react_1$useState12[1];
236
- var _react_1$useState13 = react_1.useState(false),
237
- _react_1$useState14 = _slicedToArray(_react_1$useState13, 2),
238
- openLinkToolTip = _react_1$useState14[0],
239
- setOpenLinkToolTip = _react_1$useState14[1];
240
- var sankeyContainerElement = react_1.useRef(null);
241
- var _react_1$useState15 = react_1.useState(exports.DEFAULT_CHART_WIDTH - margin.left - margin.right),
242
- _react_1$useState16 = _slicedToArray(_react_1$useState15, 2),
243
- sankeyWidth = _react_1$useState16[0],
244
- setSankeyWidth = _react_1$useState16[1];
245
- var _react_1$useState17 = react_1.useState(exports.DEFAULT_CHART_HEIGHT - margin.top - margin.bottom),
246
- _react_1$useState18 = _slicedToArray(_react_1$useState17, 2),
247
- sankeyHeight = _react_1$useState18[0],
248
- setSankeyHeight = _react_1$useState18[1];
249
- react_1.useEffect(function () {
212
+ var _ref = (0, react_1.useState)([]),
213
+ _ref2 = _slicedToArray(_ref, 2),
214
+ activeLinks = _ref2[0],
215
+ setActiveLinks = _ref2[1];
216
+ var _ref3 = (0, react_1.useState)([]),
217
+ _ref4 = _slicedToArray(_ref3, 2),
218
+ activeNodes = _ref4[0],
219
+ setActiveNodes = _ref4[1];
220
+ var _ref5 = (0, react_1.useState)(null),
221
+ _ref6 = _slicedToArray(_ref5, 2),
222
+ nodeHovered = _ref6[0],
223
+ setNodeHovered = _ref6[1];
224
+ var _ref7 = (0, react_1.useState)(null),
225
+ _ref8 = _slicedToArray(_ref7, 2),
226
+ hoveredNodeElement = _ref8[0],
227
+ setHoveredNodeElement = _ref8[1];
228
+ var _ref9 = (0, react_1.useState)(false),
229
+ _ref10 = _slicedToArray(_ref9, 2),
230
+ openNodeToolTip = _ref10[0],
231
+ setOpenNodeToolTip = _ref10[1];
232
+ var _ref11 = (0, react_1.useState)(null),
233
+ _ref12 = _slicedToArray(_ref11, 2),
234
+ hoveredLinkElement = _ref12[0],
235
+ setHoveredLinkElement = _ref12[1];
236
+ var _ref13 = (0, react_1.useState)(false),
237
+ _ref14 = _slicedToArray(_ref13, 2),
238
+ openLinkToolTip = _ref14[0],
239
+ setOpenLinkToolTip = _ref14[1];
240
+ var sankeyContainerElement = (0, react_1.useRef)(null);
241
+ var _ref15 = (0, react_1.useState)(exports.DEFAULT_CHART_WIDTH - margin.left - margin.right),
242
+ _ref16 = _slicedToArray(_ref15, 2),
243
+ sankeyWidth = _ref16[0],
244
+ setSankeyWidth = _ref16[1];
245
+ var _ref17 = (0, react_1.useState)(exports.DEFAULT_CHART_HEIGHT - margin.top - margin.bottom),
246
+ _ref18 = _slicedToArray(_ref17, 2),
247
+ sankeyHeight = _ref18[0],
248
+ setSankeyHeight = _ref18[1];
249
+ (0, react_1.useEffect)(function () {
250
250
  if (sankeyContainerElement && sankeyContainerElement.current) {
251
251
  var w = sankeyContainerElement.current.getBoundingClientRect().width;
252
252
  var h = sankeyContainerElement.current.getBoundingClientRect().height;
253
- var sWidth = SankeyUtils_1.checkDigitsOnly(width) ? parseInt(width, 10) : w;
254
- var sHeight = SankeyUtils_1.checkDigitsOnly(height) ? parseInt(height, 10) : h;
253
+ var sWidth = (0, SankeyUtils_1.checkDigitsOnly)(width) ? parseInt(width, 10) : w;
254
+ var sHeight = (0, SankeyUtils_1.checkDigitsOnly)(height) ? parseInt(height, 10) : h;
255
255
  setSankeyWidth(sWidth - margin.left - margin.right);
256
256
  setSankeyHeight(sHeight - margin.top - margin.bottom);
257
257
  }
258
258
  }, [width, height]);
259
- var sankeyData = SankeyUtils_1.convertInputToSankeyDataFormat(columns, exports.DEFAULT_SOURCE_INDEX, exports.DEFAULT_TARGET_INDEX, exports.DEFAULT_LINK_VALUE_INDEX, resultLimit);
259
+ var sankeyData = (0, SankeyUtils_1.convertInputToSankeyDataFormat)(columns, exports.DEFAULT_SOURCE_INDEX, exports.DEFAULT_TARGET_INDEX, exports.DEFAULT_LINK_VALUE_INDEX, resultLimit);
260
260
  if (!sankeyData || !columns || !Array.isArray(columns) || columns.length < 3) {
261
261
  return React.createElement(Message_1.default, {
262
262
  width: width,
263
263
  height: height,
264
- message: i18n_1._('Invalid data to render'),
264
+ message: (0, i18n_1._)('Invalid data to render'),
265
265
  level: "info"
266
266
  });
267
267
  }
@@ -274,13 +274,13 @@ var PureSankey = function PureSankey(props) {
274
274
  link.id = "link-".concat(link.source.index, "-").concat(link.target.index);
275
275
  });
276
276
  };
277
- var d3sankey = sankey_1.d3_sankey().nodeWidth(nodeWidth).nodePadding(nodePadding).size([sankeyWidth, sankeyHeight]);
277
+ var d3sankey = (0, sankey_1.d3_sankey)().nodeWidth(nodeWidth).nodePadding(nodePadding).size([sankeyWidth, sankeyHeight]);
278
278
  var path = d3sankey.reversibleLink();
279
279
  d3sankey.nodes(sankeyData.nodes).links(sankeyData.links).layout(500);
280
280
  sortAndAssignLinkIds(sankeyData.links);
281
- var nodeConnectionsMap = SankeyUtils_1.computeAllConnectedLinksToNodes(sankeyData.nodes, sankeyData.links);
282
- var uniqCategory = SankeyUtils_1.getAllNodeNames(sankeyData);
283
- var colorCategoryMapping = SankeyUtils_1.getColorCategoryMapping({
281
+ var nodeConnectionsMap = (0, SankeyUtils_1.computeAllConnectedLinksToNodes)(sankeyData.nodes, sankeyData.links);
282
+ var uniqCategory = (0, SankeyUtils_1.getAllNodeNames)(sankeyData);
283
+ var colorCategoryMapping = (0, SankeyUtils_1.getColorCategoryMapping)({
284
284
  category: uniqCategory,
285
285
  colorMode: colorMode,
286
286
  seriesColors: seriesColors,
@@ -295,14 +295,14 @@ var PureSankey = function PureSankey(props) {
295
295
  setOpenLinkToolTip(false);
296
296
  setOpenNodeToolTip(false);
297
297
  };
298
- var renderVisualization = function renderVisualization(_ref) {
299
- var containerWidth = _ref.width,
300
- containerHeight = _ref.height;
298
+ var renderVisualization = function renderVisualization(_ref19) {
299
+ var containerWidth = _ref19.width,
300
+ containerHeight = _ref19.height;
301
301
  if (containerWidth < exports.CHART_MIN_WIDTH || containerHeight < exports.CHART_MIN_HEIGHT) {
302
302
  return React.createElement(Message_1.default, {
303
303
  width: containerWidth,
304
304
  height: containerHeight,
305
- message: i18n_1._('Too small to render content'),
305
+ message: (0, i18n_1._)('Too small to render content'),
306
306
  level: "info"
307
307
  });
308
308
  }
@@ -313,8 +313,8 @@ var PureSankey = function PureSankey(props) {
313
313
  activeLinks: activeLinks,
314
314
  linkOpacity: linkOpacity,
315
315
  path: path,
316
- key: SankeyUtils_1.getLinkId(link),
317
- "data-test": SankeyUtils_1.getLinkId(link),
316
+ key: (0, SankeyUtils_1.getLinkId)(link),
317
+ "data-test": (0, SankeyUtils_1.getLinkId)(link),
318
318
  colorCategoryMapping: colorCategoryMapping,
319
319
  colorMode: colorMode,
320
320
  handleMouseOver: function handleMouseOver(ev) {
@@ -335,8 +335,8 @@ var PureSankey = function PureSankey(props) {
335
335
  return nodes.map(function (node) {
336
336
  return React.createElement(SankeyNode_1.default, {
337
337
  node: node,
338
- key: SankeyUtils_1.getNodeId(node),
339
- "data-test": SankeyUtils_1.getNodeId(node),
338
+ key: (0, SankeyUtils_1.getNodeId)(node),
339
+ "data-test": (0, SankeyUtils_1.getNodeId)(node),
340
340
  activeNodes: activeNodes,
341
341
  nodeWidth: nodeWidth,
342
342
  chartWidth: chartWidth,
@@ -486,14 +486,14 @@ var Item = styled_components_1.default.div.attrs(function (_ref) {
486
486
  var width = _ref.width;
487
487
  return {
488
488
  style: {
489
- width: style_1.toPx(width)
489
+ width: (0, style_1.toPx)(width)
490
490
  }
491
491
  };
492
492
  }).withConfig({
493
493
  displayName: "FixedSizeContainer__Item",
494
494
  componentId: "sc-1yhgpod-0"
495
495
  })(["position:relative;background-color:", "};"], function (props) {
496
- return colorUtils_1.isColor(props.backgroundColor) && props.backgroundColor || props.theme.defaultBackgroundColor;
496
+ return (0, colorUtils_1.isColor)(props.backgroundColor) && props.backgroundColor || props.theme.defaultBackgroundColor;
497
497
  });
498
498
  // Use `.attrs()` for highly dynamic styles. Ref: https://github.com/styled-components/styled-components/issues/134#issuecomment-312415291
499
499
  var FixSizeItem = styled_components_1.default.div.attrs(function (_ref2) {
@@ -501,16 +501,16 @@ var FixSizeItem = styled_components_1.default.div.attrs(function (_ref2) {
501
501
  height = _ref2.height;
502
502
  return {
503
503
  style: Object.assign(Object.assign({}, width && {
504
- width: style_1.toPx(width)
504
+ width: (0, style_1.toPx)(width)
505
505
  }), height && {
506
- height: style_1.toPx(height)
506
+ height: (0, style_1.toPx)(height)
507
507
  })
508
508
  };
509
509
  }).withConfig({
510
510
  displayName: "FixedSizeContainer__FixSizeItem",
511
511
  componentId: "sc-1yhgpod-1"
512
512
  })(["position:relative;flex-direction:column;flex:1;display:flex;background-color:", "};"], function (props) {
513
- return colorUtils_1.isColor(props.backgroundColor) && props.backgroundColor || props.theme.defaultBackgroundColor;
513
+ return (0, colorUtils_1.isColor)(props.backgroundColor) && props.backgroundColor || props.theme.defaultBackgroundColor;
514
514
  });
515
515
  var ItemContent = styled_components_1.default.div.withConfig({
516
516
  displayName: "FixedSizeContainer__ItemContent",
@@ -534,7 +534,7 @@ var withFixedSizeContainer = function withFixedSizeContainer(Viz) {
534
534
  }
535
535
  return React.createElement(FixSizeItem, {
536
536
  "data-test": "fix-size-item",
537
- "data-splunk-visualization-version": "25.13.1 - ea48ec41e",
537
+ "data-splunk-visualization-version": "26.0.0 - 2f7458907",
538
538
  width: width,
539
539
  height: height,
540
540
  backgroundColor: backgroundColor
@@ -554,7 +554,7 @@ exports.default = withFixedSizeContainer;
554
554
 
555
555
  /***/ }),
556
556
 
557
- /***/ 133:
557
+ /***/ 134:
558
558
  /***/ (function(module, exports, __webpack_require__) {
559
559
 
560
560
  "use strict";
@@ -565,7 +565,7 @@ Object.defineProperty(exports, "__esModule", {
565
565
  });
566
566
  exports.truncateSVGTextWithEllipsis = exports.checkDigitsOnly = exports.computeAllConnectedLinksToNodes = exports.getAllConnectedLinks = exports.extractLinkMidPoint = exports.getAllNodeNames = exports.getLinkId = exports.getNodeId = exports.convertInputToSankeyDataFormat = exports.getColorCategoryMapping = exports.getNodesIndex = void 0;
567
567
  /* eslint-disable no-param-reassign */
568
- var d3_scale_1 = __webpack_require__(91);
568
+ var d3_scale_1 = __webpack_require__(92);
569
569
  var types_1 = __webpack_require__(94);
570
570
  var insertNodeIfNotExist = function insertNodeIfNotExist(sankeyData, nodeName) {
571
571
  var nodes = sankeyData.nodes;
@@ -610,7 +610,7 @@ var getColorCategoryMapping = function getColorCategoryMapping(_ref) {
610
610
  if (colorMode !== 'categorical') {
611
611
  return linkColors;
612
612
  }
613
- return seriesColors ? d3_scale_1.scaleOrdinal().domain(category).range(seriesColors).unknown(seriesColors[0]) : null;
613
+ return seriesColors ? (0, d3_scale_1.scaleOrdinal)().domain(category).range(seriesColors).unknown(seriesColors[0]) : null;
614
614
  };
615
615
  exports.getColorCategoryMapping = getColorCategoryMapping;
616
616
  var convertInputToSankeyDataFormat = function convertInputToSankeyDataFormat(columns, sourceFieldIdx, targetFieldIdx, linkValueFieldIdx, resultLimit) {
@@ -623,15 +623,15 @@ var convertInputToSankeyDataFormat = function convertInputToSankeyDataFormat(col
623
623
  };
624
624
  var maxlen = Math.min(columns[sourceFieldIdx].length, columns[targetFieldIdx].length, columns[linkValueFieldIdx].length, resultLimit);
625
625
  for (var i = 0; i < maxlen; i += 1) {
626
- if (typeof columns[sourceFieldIdx][i] === 'string' && typeof columns[targetFieldIdx][i] === 'string' && types_1.isNumber(columns[linkValueFieldIdx][i])) {
626
+ if (typeof columns[sourceFieldIdx][i] === 'string' && typeof columns[targetFieldIdx][i] === 'string' && (0, types_1.isNumber)(columns[linkValueFieldIdx][i])) {
627
627
  (function () {
628
628
  var sourceNodeName = columns[sourceFieldIdx][i].trim();
629
629
  var targetNodeName = columns[targetFieldIdx][i].trim();
630
630
  insertNodeIfNotExist(sankeyData, sourceNodeName);
631
631
  insertNodeIfNotExist(sankeyData, targetNodeName);
632
632
  // If same link exists then sum up the value and donot insert new link
633
- var sourceNodeIdx = exports.getNodesIndex(sankeyData, sourceNodeName);
634
- var targetNodeIdx = exports.getNodesIndex(sankeyData, targetNodeName);
633
+ var sourceNodeIdx = (0, exports.getNodesIndex)(sankeyData, sourceNodeName);
634
+ var targetNodeIdx = (0, exports.getNodesIndex)(sankeyData, targetNodeName);
635
635
  var linkExist = sankeyData.links.find(function (link) {
636
636
  return link.source === sourceNodeIdx && link.target === targetNodeIdx;
637
637
  });
@@ -758,7 +758,7 @@ var computeAllConnectedLinksToNodes = function computeAllConnectedLinksToNodes(n
758
758
  return connectionsMap;
759
759
  }
760
760
  nodes.forEach(function (node) {
761
- var connections = exports.getAllConnectedLinks(links, node.index);
761
+ var connections = (0, exports.getAllConnectedLinks)(links, node.index);
762
762
  connectionsMap[node.index] = connections;
763
763
  });
764
764
  return connectionsMap;
@@ -789,24 +789,24 @@ exports.truncateSVGTextWithEllipsis = truncateSVGTextWithEllipsis;
789
789
 
790
790
  /***/ }),
791
791
 
792
- /***/ 138:
792
+ /***/ 14:
793
793
  /***/ (function(module, exports) {
794
794
 
795
- module.exports = require("d3-interpolate");
795
+ module.exports = require("@splunk/visualizations-shared/style");
796
796
 
797
797
  /***/ }),
798
798
 
799
- /***/ 139:
799
+ /***/ 140:
800
800
  /***/ (function(module, exports) {
801
801
 
802
- module.exports = require("d3-collection");
802
+ module.exports = require("d3-interpolate");
803
803
 
804
804
  /***/ }),
805
805
 
806
- /***/ 14:
806
+ /***/ 141:
807
807
  /***/ (function(module, exports) {
808
808
 
809
- module.exports = require("@splunk/visualizations-shared/style");
809
+ module.exports = require("d3-collection");
810
810
 
811
811
  /***/ }),
812
812
 
@@ -848,24 +848,24 @@ module.exports = require("@splunk/visualizations-shared/schemaUtils");
848
848
 
849
849
  /***/ }),
850
850
 
851
- /***/ 163:
851
+ /***/ 166:
852
852
  /***/ (function(module, exports, __webpack_require__) {
853
853
 
854
854
  "use strict";
855
855
 
856
856
 
857
- var _typeof = __webpack_require__(93);
857
+ var _typeof = __webpack_require__(82);
858
858
  Object.defineProperty(exports, "__esModule", {
859
859
  value: true
860
860
  });
861
861
  exports.PureSankey = exports.config = exports.themes = exports.computeVizProps = exports.showPlaceHolderIcon = void 0;
862
862
  var lodash_1 = __webpack_require__(3);
863
- var dataSourceUtils_1 = __webpack_require__(96);
863
+ var dataSourceUtils_1 = __webpack_require__(97);
864
864
  var colorUtils_1 = __webpack_require__(12);
865
865
  var withDashboardViz_1 = __webpack_require__(36);
866
- var PureSankey_1 = __webpack_require__(110);
866
+ var PureSankey_1 = __webpack_require__(111);
867
867
  exports.PureSankey = PureSankey_1.default;
868
- var config_1 = __webpack_require__(459);
868
+ var config_1 = __webpack_require__(462);
869
869
  exports.config = config_1.default;
870
870
  /**
871
871
  * @method showPlaceHolderIcon
@@ -873,9 +873,9 @@ exports.config = config_1.default;
873
873
  * @returns {Boolean} return true if loading, error, non existent state or without columns in dataSources
874
874
  */
875
875
  var showPlaceHolderIcon = function showPlaceHolderIcon(dataSources) {
876
- var columns = lodash_1.get(dataSources, 'primary.data.columns', undefined);
876
+ var columns = (0, lodash_1.get)(dataSources, 'primary.data.columns', undefined);
877
877
  var noColumns = columns === undefined;
878
- var dataSourceState = dataSourceUtils_1.getDataSourceStateInfo(dataSources);
878
+ var dataSourceState = (0, dataSourceUtils_1.getDataSourceStateInfo)(dataSources);
879
879
  return dataSourceState === dataSourceUtils_1.DataSourceState.ERROR || dataSourceState === dataSourceUtils_1.DataSourceState.LOADING || dataSourceState === dataSourceUtils_1.DataSourceState.NONEXISTENT || noColumns;
880
880
  };
881
881
  exports.showPlaceHolderIcon = showPlaceHolderIcon;
@@ -894,12 +894,12 @@ var computeVizProps = function computeVizProps(_ref) {
894
894
  });
895
895
  // Sanitize linkColors prop
896
896
  // eslint-disable-next-line no-param-reassign
897
- linkColors = colorUtils_1.sanitizeArrayOfColors(linkColors);
897
+ linkColors = (0, colorUtils_1.sanitizeArrayOfColors)(linkColors);
898
898
  // Sanitize seriesColors prop
899
899
  // (Note:- This is handled outside SanitizeProps because it would impact seriesColors option used in splunk-charting viz as the types are different.
900
900
  // The type used in splunk-charting viz expects a string of comma separated colors, but here the type is an array of string)
901
901
  // eslint-disable-next-line no-param-reassign
902
- seriesColors = colorUtils_1.isArrayOfColors(seriesColors) ? seriesColors : undefined;
902
+ seriesColors = (0, colorUtils_1.isArrayOfColors)(seriesColors) ? seriesColors : undefined;
903
903
  // Compute the columns props and linkValueField props for pure Sankey
904
904
  // The columns props is computed as [primary.data.columns[0], primary.data.columns[1], linkValues].
905
905
  // The source and target columns are the default as columns[0] and columns[1] respectively
@@ -910,7 +910,7 @@ var computeVizProps = function computeVizProps(_ref) {
910
910
  var columns = dataSources.primary.data.columns;
911
911
  columnsFromDataSource = columns ? [columns[0], columns[1], linkValues] : null;
912
912
  var linkIndex = columns.findIndex(function (col) {
913
- return lodash_1.isEqual(col, linkValues);
913
+ return (0, lodash_1.isEqual)(col, linkValues);
914
914
  });
915
915
  if ((_g = (_f = dataSources === null || dataSources === void 0 ? void 0 : dataSources.primary) === null || _f === void 0 ? void 0 : _f.data) === null || _g === void 0 ? void 0 : _g.fields) {
916
916
  var linkField = (_j = (_h = dataSources === null || dataSources === void 0 ? void 0 : dataSources.primary) === null || _h === void 0 ? void 0 : _h.data) === null || _j === void 0 ? void 0 : _j.fields[linkIndex];
@@ -929,12 +929,12 @@ var computeVizProps = function computeVizProps(_ref) {
929
929
  });
930
930
  };
931
931
  exports.computeVizProps = computeVizProps;
932
- var Sankey = withDashboardViz_1.default({
932
+ var Sankey = (0, withDashboardViz_1.default)({
933
933
  ReactViz: PureSankey_1.default,
934
934
  vizConfig: config_1.default,
935
935
  computeVizProps: exports.computeVizProps,
936
936
  useIconPlaceholder: function useIconPlaceholder(dataSources) {
937
- return exports.showPlaceHolderIcon(dataSources);
937
+ return (0, exports.showPlaceHolderIcon)(dataSources);
938
938
  }
939
939
  });
940
940
  var themes = config_1.default.themes;
@@ -1131,8 +1131,8 @@ function hasCompatibleOptions(vizOptions, presetOptions) {
1131
1131
  */
1132
1132
  function getInitialPreset(vizContext, vizOptions, presets) {
1133
1133
  return presets.find(function (preset) {
1134
- var presetContext = lodash_1.get(preset, ['value', 'context'], {});
1135
- var presetOptions = lodash_1.get(preset, ['value', 'options'], {});
1134
+ var presetContext = (0, lodash_1.get)(preset, ['value', 'context'], {});
1135
+ var presetOptions = (0, lodash_1.get)(preset, ['value', 'options'], {});
1136
1136
  var presetContextKeys = Object.keys(presetContext);
1137
1137
  var presetOptionKeys = Object.keys(presetOptions);
1138
1138
  // all presets have to explicitly specify which options to reset (i.e. need explicitly undefined keys)
@@ -1149,7 +1149,7 @@ exports.getInitialPreset = getInitialPreset;
1149
1149
  * @returns {{ label: string; value; string }[]} array of { label, value } tuples
1150
1150
  */
1151
1151
  function generatePrecisionValues(numPrecisionValues) {
1152
- return lodash_1.range(0, numPrecisionValues + 1).map(function (i) {
1152
+ return (0, lodash_1.range)(0, numPrecisionValues + 1).map(function (i) {
1153
1153
  return {
1154
1154
  label: "".concat(i, " (0").concat(i > 0 ? '.' : '').concat('0'.repeat(i), ")"),
1155
1155
  value: i
@@ -1192,28 +1192,28 @@ module.exports = require("@splunk/visualizations-shared/configUtils");
1192
1192
  /***/ 25:
1193
1193
  /***/ (function(module, exports) {
1194
1194
 
1195
- module.exports = require("@splunk/visualization-context/TimezoneContext");
1195
+ module.exports = require("@splunk/ui-utils/id");
1196
1196
 
1197
1197
  /***/ }),
1198
1198
 
1199
1199
  /***/ 26:
1200
1200
  /***/ (function(module, exports) {
1201
1201
 
1202
- module.exports = require("@splunk/visualizations-shared/hocUtils");
1202
+ module.exports = require("@splunk/visualization-context/TimezoneContext");
1203
1203
 
1204
1204
  /***/ }),
1205
1205
 
1206
1206
  /***/ 27:
1207
1207
  /***/ (function(module, exports) {
1208
1208
 
1209
- module.exports = require("@splunk/visualizations-shared/JSONSchemaUtils");
1209
+ module.exports = require("@splunk/visualizations-shared/hocUtils");
1210
1210
 
1211
1211
  /***/ }),
1212
1212
 
1213
- /***/ 29:
1213
+ /***/ 28:
1214
1214
  /***/ (function(module, exports) {
1215
1215
 
1216
- module.exports = require("@splunk/visualization-encoding/Options");
1216
+ module.exports = require("@splunk/visualizations-shared/JSONSchemaUtils");
1217
1217
 
1218
1218
  /***/ }),
1219
1219
 
@@ -1227,11 +1227,18 @@ module.exports = require("lodash");
1227
1227
  /***/ 30:
1228
1228
  /***/ (function(module, exports) {
1229
1229
 
1230
- module.exports = require("@splunk/visualizations-shared/numberUtils");
1230
+ module.exports = require("@splunk/visualization-encoding/Options");
1231
1231
 
1232
1232
  /***/ }),
1233
1233
 
1234
1234
  /***/ 31:
1235
+ /***/ (function(module, exports) {
1236
+
1237
+ module.exports = require("@splunk/visualizations-shared/numberUtils");
1238
+
1239
+ /***/ }),
1240
+
1241
+ /***/ 32:
1235
1242
  /***/ (function(module, exports, __webpack_require__) {
1236
1243
 
1237
1244
  "use strict";
@@ -1255,9 +1262,9 @@ var FixedSizeContainer_1 = __webpack_require__(13);
1255
1262
  */
1256
1263
  var shouldShowIconPlaceholder = function shouldShowIconPlaceholder(dataSources) {
1257
1264
  var loading = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
1258
- var data = lodash_1.get(dataSources, 'primary.data.columns[0]', undefined);
1265
+ var data = (0, lodash_1.get)(dataSources, 'primary.data.columns[0]', undefined);
1259
1266
  var noData = data === undefined;
1260
- var fields = lodash_1.get(dataSources, 'primary.data.fields[0]', undefined);
1267
+ var fields = (0, lodash_1.get)(dataSources, 'primary.data.fields[0]', undefined);
1261
1268
  var noFields = fields === undefined;
1262
1269
  return loading || noData || noFields;
1263
1270
  };
@@ -1298,7 +1305,7 @@ var IconPlaceholder = function IconPlaceholder(props) {
1298
1305
  width: width,
1299
1306
  height: height,
1300
1307
  level: "warning",
1301
- message: i18n_1._('No DataSource Connected')
1308
+ message: (0, i18n_1._)('No DataSource Connected')
1302
1309
  });
1303
1310
  };
1304
1311
  IconPlaceholder.propTypes = propTypes;
@@ -1306,14 +1313,7 @@ IconPlaceholder.defaultProps = {
1306
1313
  width: '100%',
1307
1314
  height: 250
1308
1315
  };
1309
- exports.default = FixedSizeContainer_1.default(IconPlaceholder);
1310
-
1311
- /***/ }),
1312
-
1313
- /***/ 32:
1314
- /***/ (function(module, exports) {
1315
-
1316
- module.exports = require("@splunk/ui-utils/id");
1316
+ exports.default = (0, FixedSizeContainer_1.default)(IconPlaceholder);
1317
1317
 
1318
1318
  /***/ }),
1319
1319
 
@@ -1348,7 +1348,7 @@ var getSortingParams = function getSortingParams(_ref) {
1348
1348
  };
1349
1349
  var onSort;
1350
1350
  if (typeof onRequestParamsChange === 'function') {
1351
- if (requestParams && lodash_1.has(requestParams, 'sort')) {
1351
+ if (requestParams && (0, lodash_1.has)(requestParams, 'sort')) {
1352
1352
  currentSortKey = Object.keys(requestParams.sort).shift();
1353
1353
  currentSortDir = requestParams.sort[currentSortKey];
1354
1354
  }
@@ -1357,7 +1357,7 @@ var getSortingParams = function getSortingParams(_ref) {
1357
1357
  var sortKey = _ref2.sortKey,
1358
1358
  sortDir = _ref2.sortDir;
1359
1359
  if (typeof sortKey === 'string') {
1360
- var nextSortDir = lodash_1.has(nextSortDirMap, sortDir) ? nextSortDirMap[sortDir] : 'none';
1360
+ var nextSortDir = (0, lodash_1.has)(nextSortDirMap, sortDir) ? nextSortDirMap[sortDir] : 'none';
1361
1361
  onRequestParamsChange(Object.assign(Object.assign({}, requestParams), {
1362
1362
  offset: 0,
1363
1363
  sort: _defineProperty({}, sortKey, nextSortDir)
@@ -1408,7 +1408,7 @@ var getPaginationParams = function getPaginationParams(_ref) {
1408
1408
  var onChangeHandler = function onChangeHandler(e, _ref2) {
1409
1409
  var page = _ref2.page,
1410
1410
  countArg = _ref2.count;
1411
- var newParams = lodash_1.cloneDeep(requestParams);
1411
+ var newParams = (0, lodash_1.cloneDeep)(requestParams);
1412
1412
  if (typeof countArg === 'number') {
1413
1413
  newParams.count = countArg;
1414
1414
  newParams.offset = 0;
@@ -1472,16 +1472,16 @@ Object.defineProperty(exports, "__esModule", {
1472
1472
  var React = __webpack_require__(1);
1473
1473
  var lodash_1 = __webpack_require__(3);
1474
1474
  var getSettingsFromThemedProps_1 = __webpack_require__(37);
1475
- var Options_1 = __webpack_require__(29);
1475
+ var Options_1 = __webpack_require__(30);
1476
1476
  var SanitizeProps_1 = __webpack_require__(38);
1477
- var TimezoneContext_1 = __webpack_require__(25);
1477
+ var TimezoneContext_1 = __webpack_require__(26);
1478
1478
  var moment_1 = __webpack_require__(39);
1479
1479
  var FeatureFlagContext_1 = __webpack_require__(21);
1480
1480
  var styled_components_1 = __webpack_require__(4);
1481
- var hocUtils_1 = __webpack_require__(26);
1482
- var JSONSchemaUtils_1 = __webpack_require__(27);
1481
+ var hocUtils_1 = __webpack_require__(27);
1482
+ var JSONSchemaUtils_1 = __webpack_require__(28);
1483
1483
  var async_dynamic_options_evaluator_1 = __webpack_require__(40);
1484
- var id_1 = __webpack_require__(32);
1484
+ var id_1 = __webpack_require__(25);
1485
1485
  var SplunkVisualization_1 = __webpack_require__(41);
1486
1486
  var VizBehavior_1 = __webpack_require__(6);
1487
1487
  var getSorting_1 = __webpack_require__(33);
@@ -1502,8 +1502,8 @@ var withDashboardViz = function withDashboardViz(opts) {
1502
1502
  computeVizProps = _opts$computeVizProps === void 0 ? function () {} : _opts$computeVizProps,
1503
1503
  disableEditModeCover = opts.disableEditModeCover,
1504
1504
  useIconPlaceholder = opts.useIconPlaceholder; // sanitizing props before sending them to reactviz.
1505
- var SanitizedReactViz = SanitizeProps_1.withSanitizedProps(ReactViz);
1506
- var defaultOptions = JSONSchemaUtils_1.pickFieldFromJSONSchema(vizConfig.optionsSchema, 'default');
1505
+ var SanitizedReactViz = (0, SanitizeProps_1.withSanitizedProps)(ReactViz);
1506
+ var defaultOptions = (0, JSONSchemaUtils_1.pickFieldFromJSONSchema)(vizConfig.optionsSchema, 'default');
1507
1507
  var DashboardViz = function DashboardViz(props) {
1508
1508
  var _a;
1509
1509
  var mode = props.mode,
@@ -1538,19 +1538,19 @@ var withDashboardViz = function withDashboardViz(opts) {
1538
1538
  return (_b = (_a = vizConfig.themes)[themeVar]) === null || _b === void 0 ? void 0 : _b.call(_a, props);
1539
1539
  };
1540
1540
  var bgColorFromTheme = themeFunc('defaultBackgroundColor');
1541
- var _getSettingsFromTheme = getSettingsFromThemedProps_1.default({
1541
+ var _ref = (0, getSettingsFromThemedProps_1.default)({
1542
1542
  theme: theme
1543
1543
  }),
1544
- currentThemeFamily = _getSettingsFromTheme.family,
1545
- currentThemeColorScheme = _getSettingsFromTheme.colorScheme,
1546
- currentThemeDensity = _getSettingsFromTheme.density;
1544
+ currentThemeFamily = _ref.family,
1545
+ currentThemeColorScheme = _ref.colorScheme,
1546
+ currentThemeDensity = _ref.density;
1547
1547
  var evaluatedOptions = {}; // evaluatedOptions need to be initialized as an empty object
1548
1548
  var _React$useState = React.useState({}),
1549
1549
  _React$useState2 = _slicedToArray(_React$useState, 2),
1550
1550
  evaluatedOptionsAsync = _React$useState2[0],
1551
1551
  setEvaluatedOptionsAsync = _React$useState2[1]; // evaluatedOptions need to be initialized as an empty object
1552
1552
  var featureFlagContext = React.useContext(FeatureFlagContext_1.default);
1553
- var _React$useState3 = React.useState("".concat(vizConfig.name, " - ").concat(id_1.createGUID())),
1553
+ var _React$useState3 = React.useState("".concat(vizConfig.name, " - ").concat((0, id_1.createGUID)())),
1554
1554
  _React$useState4 = _slicedToArray(_React$useState3, 1),
1555
1555
  visualizationID = _React$useState4[0];
1556
1556
  var _React$useState5 = React.useState({}),
@@ -1561,16 +1561,17 @@ var withDashboardViz = function withDashboardViz(opts) {
1561
1561
  _React$useState8 = _slicedToArray(_React$useState7, 2),
1562
1562
  dataFramesInState = _React$useState8[0],
1563
1563
  setDataFramesInState = _React$useState8[1];
1564
- var _React$useState9 = React.useState(Boolean(featureFlagContext && featureFlagContext.visualizations_useWebWorkersForDSL && typeof Worker !== 'undefined')),
1564
+ var _React$useState9 = React.useState(Boolean(featureFlagContext === null || featureFlagContext === void 0 ? void 0 : featureFlagContext.visualizations_useWebWorkersForDSL)),
1565
1565
  _React$useState10 = _slicedToArray(_React$useState9, 2),
1566
1566
  useAsyncEvaluatedOptions = _React$useState10[0],
1567
1567
  setUseAsyncEvaluatedOptions = _React$useState10[1];
1568
- evaluatedOptions = useDeepMemo_1.useDeepMemo(function () {
1568
+ var isMounted = React.useRef(true);
1569
+ evaluatedOptions = (0, useDeepMemo_1.useDeepMemo)(function () {
1569
1570
  try {
1570
1571
  if (useAsyncEvaluatedOptions) {
1571
1572
  var optionsToEvaluate = {
1572
- context: lodash_1.defaultsDeep({}, context, vizConfig.defaultContext),
1573
- options: hocUtils_1.deepMergeWithArrayPrimitiveOverrides({}, options, defaultOptions)
1573
+ context: (0, lodash_1.defaultsDeep)({}, context, vizConfig.defaultContext),
1574
+ options: (0, hocUtils_1.deepMergeWithArrayPrimitiveOverrides)({}, options, defaultOptions)
1574
1575
  };
1575
1576
  var asyncDynamicOptionsEvaluatorParams = {
1576
1577
  visualizationID: visualizationID,
@@ -1581,10 +1582,10 @@ var withDashboardViz = function withDashboardViz(opts) {
1581
1582
  };
1582
1583
  async_dynamic_options_evaluator_1.default.evaluate(asyncDynamicOptionsEvaluatorParams).then(function (results) {
1583
1584
  setEvaluatedOptionsAsync(results.results);
1584
- }).catch(function (e) {
1585
- // eslint-disable-next-line no-console
1586
- console.error("unexpected error evaluating options - async: ".concat(e.message));
1587
- setUseAsyncEvaluatedOptions(false);
1585
+ }).catch(function () {
1586
+ if (isMounted.current) {
1587
+ setUseAsyncEvaluatedOptions(false);
1588
+ }
1588
1589
  });
1589
1590
  } else {
1590
1591
  var dataFrames = dataFramesInState;
@@ -1594,8 +1595,8 @@ var withDashboardViz = function withDashboardViz(opts) {
1594
1595
  setDataFramesInState(dataFrames);
1595
1596
  }
1596
1597
  return Options_1.Options.evaluate({
1597
- context: lodash_1.defaultsDeep({}, context, vizConfig.defaultContext),
1598
- options: hocUtils_1.deepMergeWithArrayPrimitiveOverrides({}, options, defaultOptions)
1598
+ context: (0, lodash_1.defaultsDeep)({}, context, vizConfig.defaultContext),
1599
+ options: (0, hocUtils_1.deepMergeWithArrayPrimitiveOverrides)({}, options, defaultOptions)
1599
1600
  }, dataSources, themeFunc, dataFrames);
1600
1601
  }
1601
1602
  } catch (e) {
@@ -1624,6 +1625,7 @@ var withDashboardViz = function withDashboardViz(opts) {
1624
1625
  React.useEffect(function () {
1625
1626
  return function () {
1626
1627
  if (useAsyncEvaluatedOptions) {
1628
+ isMounted.current = false;
1627
1629
  async_dynamic_options_evaluator_1.default.reset(visualizationID);
1628
1630
  }
1629
1631
  };
@@ -1633,7 +1635,7 @@ var withDashboardViz = function withDashboardViz(opts) {
1633
1635
  var _vizConfig$requiredPr = vizConfig.requiredProps,
1634
1636
  requiredProps = _vizConfig$requiredPr === void 0 ? [] : _vizConfig$requiredPr,
1635
1637
  supports = vizConfig.supports;
1636
- var missing = MissingPropsMessage_1.missingKeys(requiredProps, evaluatedOptionsToUse);
1638
+ var missing = (0, MissingPropsMessage_1.missingKeys)(requiredProps, evaluatedOptionsToUse);
1637
1639
  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
1638
1640
  ) {
1639
1641
  return React.createElement(MissingPropsMessage_1.default, {
@@ -1649,7 +1651,7 @@ var withDashboardViz = function withDashboardViz(opts) {
1649
1651
  if (hasEventHandlers && mode === 'view' && vizConfig.supports.indexOf(VizBehavior_1.VizBehavior.EVENTS) > -1) {
1650
1652
  var supportedEvents = vizConfig.events;
1651
1653
  Object.keys(supportedEvents).forEach(function (eventName) {
1652
- var eventCallbackPropName = lodash_1.camelCase("on.".concat(eventName));
1654
+ var eventCallbackPropName = (0, lodash_1.camelCase)("on.".concat(eventName));
1653
1655
  eventCallbackProps[eventCallbackPropName] = null;
1654
1656
  // todo: refactor single value and single value icon to send payload from viz
1655
1657
  // then remove these lines
@@ -1692,19 +1694,19 @@ var withDashboardViz = function withDashboardViz(opts) {
1692
1694
  */
1693
1695
  var dataSourceMetadata = {};
1694
1696
  var OptionKey = 'paginateDataSourceKey';
1695
- var paginateDataSourceKey = lodash_1.has(evaluatedOptionsToUse, OptionKey) && evaluatedOptionsToUse[OptionKey] || 'primary';
1696
- if (vizConfig.supports.indexOf(VizBehavior_1.VizBehavior.PAGE_AND_SORT) > -1 && lodash_1.has(dataSources, paginateDataSourceKey)) {
1697
- var requestParams = lodash_1.get(dataSources, [paginateDataSourceKey, 'requestParams'], {});
1698
- var meta = lodash_1.get(dataSources, [paginateDataSourceKey, 'meta'], {});
1697
+ var paginateDataSourceKey = (0, lodash_1.has)(evaluatedOptionsToUse, OptionKey) && evaluatedOptionsToUse[OptionKey] || 'primary';
1698
+ if (vizConfig.supports.indexOf(VizBehavior_1.VizBehavior.PAGE_AND_SORT) > -1 && (0, lodash_1.has)(dataSources, paginateDataSourceKey)) {
1699
+ var requestParams = (0, lodash_1.get)(dataSources, [paginateDataSourceKey, 'requestParams'], {});
1700
+ var meta = (0, lodash_1.get)(dataSources, [paginateDataSourceKey, 'meta'], {});
1699
1701
  var handleRequestParamsChange = function handleRequestParamsChange(payload) {
1700
1702
  return onRequestParamsChange(paginateDataSourceKey, payload);
1701
1703
  };
1702
- var sortParams = getSorting_1.getSortingParams({
1704
+ var sortParams = (0, getSorting_1.getSortingParams)({
1703
1705
  requestParams: requestParams,
1704
1706
  meta: meta,
1705
1707
  onRequestParamsChange: handleRequestParamsChange
1706
1708
  });
1707
- var paginatorParams = getPagination_1.getPaginationParams({
1709
+ var paginatorParams = (0, getPagination_1.getPaginationParams)({
1708
1710
  requestParams: requestParams,
1709
1711
  meta: meta,
1710
1712
  onRequestParamsChange: handleRequestParamsChange
@@ -1732,7 +1734,7 @@ var withDashboardViz = function withDashboardViz(opts) {
1732
1734
  // attach viz config
1733
1735
  DashboardViz.config = vizConfig;
1734
1736
  // @ts-ignore: TODO fix sc upgrade TS issues
1735
- return styled_components_1.withTheme(withPlaceholder_1.default(withEditModeCover_1.default(DashboardViz, disableEditModeCover), useIconPlaceholder));
1737
+ return (0, styled_components_1.withTheme)((0, withPlaceholder_1.default)((0, withEditModeCover_1.default)(DashboardViz, disableEditModeCover), useIconPlaceholder));
1736
1738
  };
1737
1739
  exports.default = withDashboardViz;
1738
1740
 
@@ -1976,8 +1978,8 @@ var lodash_1 = __webpack_require__(3);
1976
1978
  * @param dependencies an array of dependencies
1977
1979
  */
1978
1980
  var useDeepMemo = function useDeepMemo(fn, dependencies) {
1979
- var ref = react_1.useRef();
1980
- if (!ref.current || !lodash_1.isEqual(dependencies, ref.current.dependencies)) {
1981
+ var ref = (0, react_1.useRef)();
1982
+ if (!ref.current || !(0, lodash_1.isEqual)(dependencies, ref.current.dependencies)) {
1981
1983
  ref.current = {
1982
1984
  dependencies: dependencies,
1983
1985
  value: fn()
@@ -2021,7 +2023,7 @@ exports.isMissing = isMissing;
2021
2023
  */
2022
2024
  var missingKeys = function missingKeys(keys, target) {
2023
2025
  return keys.filter(function (k) {
2024
- return exports.isMissing(target[k]);
2026
+ return (0, exports.isMissing)(target[k]);
2025
2027
  });
2026
2028
  };
2027
2029
  exports.missingKeys = missingKeys;
@@ -2045,7 +2047,7 @@ var MissingPropsMessage = function MissingPropsMessage(props) {
2045
2047
  "data-test": "message",
2046
2048
  width: width,
2047
2049
  height: height,
2048
- message: i18n_1._("Missing property: ".concat(missingProps.join(', ')))
2050
+ message: (0, i18n_1._)("Missing property: ".concat(missingProps.join(', ')))
2049
2051
  });
2050
2052
  };
2051
2053
  exports.MissingPropsMessage = MissingPropsMessage;
@@ -2054,11 +2056,11 @@ exports.MissingPropsMessage.defaultProps = {
2054
2056
  width: '100%',
2055
2057
  height: 250
2056
2058
  };
2057
- exports.default = FixedSizeContainer_1.default(exports.MissingPropsMessage);
2059
+ exports.default = (0, FixedSizeContainer_1.default)(exports.MissingPropsMessage);
2058
2060
 
2059
2061
  /***/ }),
2060
2062
 
2061
- /***/ 454:
2063
+ /***/ 457:
2062
2064
  /***/ (function(module, exports, __webpack_require__) {
2063
2065
 
2064
2066
  "use strict";
@@ -2066,12 +2068,16 @@ exports.default = FixedSizeContainer_1.default(exports.MissingPropsMessage);
2066
2068
 
2067
2069
  var __createBinding = this && this.__createBinding || (Object.create ? function (o, m, k, k2) {
2068
2070
  if (k2 === undefined) k2 = k;
2069
- Object.defineProperty(o, k2, {
2070
- enumerable: true,
2071
- get: function get() {
2072
- return m[k];
2073
- }
2074
- });
2071
+ var desc = Object.getOwnPropertyDescriptor(m, k);
2072
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
2073
+ desc = {
2074
+ enumerable: true,
2075
+ get: function get() {
2076
+ return m[k];
2077
+ }
2078
+ };
2079
+ }
2080
+ Object.defineProperty(o, k2, desc);
2075
2081
  } : function (o, m, k, k2) {
2076
2082
  if (k2 === undefined) k2 = k;
2077
2083
  o[k2] = m[k];
@@ -2085,8 +2091,8 @@ Object.defineProperty(exports, "__esModule", {
2085
2091
  value: true
2086
2092
  });
2087
2093
  exports.default = void 0;
2088
- __exportStar(__webpack_require__(163), exports);
2089
- var Sankey_1 = __webpack_require__(163);
2094
+ __exportStar(__webpack_require__(166), exports);
2095
+ var Sankey_1 = __webpack_require__(166);
2090
2096
  Object.defineProperty(exports, "default", {
2091
2097
  enumerable: true,
2092
2098
  get: function get() {
@@ -2096,17 +2102,17 @@ Object.defineProperty(exports, "default", {
2096
2102
 
2097
2103
  /***/ }),
2098
2104
 
2099
- /***/ 455:
2105
+ /***/ 458:
2100
2106
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2101
2107
 
2102
2108
  "use strict";
2103
2109
  __webpack_require__.r(__webpack_exports__);
2104
2110
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d3_sankey", function() { return d3_sankey; });
2105
- /* harmony import */ var d3_interpolate__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(138);
2111
+ /* harmony import */ var d3_interpolate__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(140);
2106
2112
  /* harmony import */ var d3_interpolate__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(d3_interpolate__WEBPACK_IMPORTED_MODULE_0__);
2107
- /* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(63);
2113
+ /* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(64);
2108
2114
  /* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(d3_array__WEBPACK_IMPORTED_MODULE_1__);
2109
- /* harmony import */ var d3_collection__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(139);
2115
+ /* harmony import */ var d3_collection__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(141);
2110
2116
  /* harmony import */ var d3_collection__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(d3_collection__WEBPACK_IMPORTED_MODULE_2__);
2111
2117
  // reference link :- https://github.com/csaladenes/sankey
2112
2118
  /* eslint-disable */
@@ -2611,7 +2617,7 @@ var d3_sankey = function d3_sankey() {
2611
2617
 
2612
2618
  /***/ }),
2613
2619
 
2614
- /***/ 456:
2620
+ /***/ 459:
2615
2621
  /***/ (function(module, exports, __webpack_require__) {
2616
2622
 
2617
2623
  "use strict";
@@ -2624,8 +2630,8 @@ var React = __webpack_require__(1);
2624
2630
  var T = __webpack_require__(0);
2625
2631
  var styled_components_1 = __webpack_require__(4);
2626
2632
  var react_1 = __webpack_require__(1);
2627
- var PureSankey_1 = __webpack_require__(110);
2628
- var SankeyUtils_1 = __webpack_require__(133);
2633
+ var PureSankey_1 = __webpack_require__(111);
2634
+ var SankeyUtils_1 = __webpack_require__(134);
2629
2635
  var MAX_NODE_TEXT_WIDTH = 150;
2630
2636
  var getNodeOpacity = function getNodeOpacity(nodeIndex, activeNodes) {
2631
2637
  if (!activeNodes || !activeNodes.length) {
@@ -2669,9 +2675,9 @@ var SankeyNode = function SankeyNode(props) {
2669
2675
  handleMouseLeave = props.handleMouseLeave,
2670
2676
  colorCategoryMapping = props.colorCategoryMapping,
2671
2677
  nodeTextColor = props.nodeTextColor;
2672
- var nodeTextRef = react_1.useRef();
2673
- react_1.useEffect(function () {
2674
- SankeyUtils_1.truncateSVGTextWithEllipsis(nodeTextRef.current, node.name, MAX_NODE_TEXT_WIDTH);
2678
+ var nodeTextRef = (0, react_1.useRef)();
2679
+ (0, react_1.useEffect)(function () {
2680
+ (0, SankeyUtils_1.truncateSVGTextWithEllipsis)(nodeTextRef.current, node.name, MAX_NODE_TEXT_WIDTH);
2675
2681
  });
2676
2682
  return React.createElement(NodeGroup, {
2677
2683
  node: node,
@@ -2719,7 +2725,53 @@ exports.default = SankeyNode;
2719
2725
 
2720
2726
  /***/ }),
2721
2727
 
2722
- /***/ 457:
2728
+ /***/ 46:
2729
+ /***/ (function(module, exports, __webpack_require__) {
2730
+
2731
+ "use strict";
2732
+
2733
+
2734
+ Object.defineProperty(exports, "__esModule", {
2735
+ value: true
2736
+ });
2737
+ var React = __webpack_require__(1);
2738
+ var styled_components_1 = __webpack_require__(4);
2739
+ var hocUtils_1 = __webpack_require__(15);
2740
+ var Cover = styled_components_1.default.div.withConfig({
2741
+ displayName: "withEditModeCover__Cover",
2742
+ componentId: "sc-1gsbnxb-0"
2743
+ })(["position:absolute;left:0;right:0;top:0;bottom:0;"]);
2744
+ var Blocker = styled_components_1.default.div.attrs({
2745
+ 'data-splunk-visualization-version': "26.0.0 - 2f7458907"
2746
+ }).withConfig({
2747
+ displayName: "withEditModeCover__Blocker",
2748
+ componentId: "sc-1gsbnxb-1"
2749
+ })(["position:relative;width:100%;height:100%;"]);
2750
+ /**
2751
+ * HOC that renders a cover layer in edit mode
2752
+ * @method withEditModeCover
2753
+ * @param {ExtendedDashViz} Visualization
2754
+ * @returns {ExtendedDashViz} Wrapper
2755
+ */
2756
+ var withEditModeCover = function withEditModeCover(Visualization, disableEditModeCover) {
2757
+ var Wrapper = function Wrapper(props) {
2758
+ var mode = props.mode;
2759
+ var showEditCover = mode === 'edit' && !disableEditModeCover;
2760
+ return React.createElement(Blocker, null, React.createElement(Visualization, Object.assign({}, props)), showEditCover && React.createElement(Cover, {
2761
+ "data-test": "edit-mode-cover"
2762
+ }));
2763
+ };
2764
+ (0, hocUtils_1.extendStaticWrapperProps)({
2765
+ Wrapper: Wrapper,
2766
+ Visualization: Visualization
2767
+ });
2768
+ return Wrapper;
2769
+ };
2770
+ exports.default = withEditModeCover;
2771
+
2772
+ /***/ }),
2773
+
2774
+ /***/ 460:
2723
2775
  /***/ (function(module, exports, __webpack_require__) {
2724
2776
 
2725
2777
  "use strict";
@@ -2730,8 +2782,8 @@ Object.defineProperty(exports, "__esModule", {
2730
2782
  });
2731
2783
  var React = __webpack_require__(1);
2732
2784
  var T = __webpack_require__(0);
2733
- var PureSankey_1 = __webpack_require__(110);
2734
- var SankeyUtils_1 = __webpack_require__(133);
2785
+ var PureSankey_1 = __webpack_require__(111);
2786
+ var SankeyUtils_1 = __webpack_require__(134);
2735
2787
  var getLinkFill = function getLinkFill(link, colorCategoryMapping, colorMode) {
2736
2788
  if (colorMode === 'categorical') {
2737
2789
  return colorCategoryMapping ? colorCategoryMapping(link.source.name) : PureSankey_1.DEFAULT_LINK_COLOR;
@@ -2757,7 +2809,7 @@ var SankeyLink = function SankeyLink(props) {
2757
2809
  handleMouseOver = props.handleMouseOver,
2758
2810
  handleMouseLeave = props.handleMouseLeave; // This is to draw an invisible circle added to the link's path midpoint,
2759
2811
  // which acts as an anchor for the link tooltip
2760
- var circlePoints = SankeyUtils_1.extractLinkMidPoint(path(1)(link));
2812
+ var circlePoints = (0, SankeyUtils_1.extractLinkMidPoint)(path(1)(link));
2761
2813
  return React.createElement("g", {
2762
2814
  className: "link",
2763
2815
  key: link.id,
@@ -2816,7 +2868,7 @@ exports.default = SankeyLink;
2816
2868
 
2817
2869
  /***/ }),
2818
2870
 
2819
- /***/ 458:
2871
+ /***/ 461:
2820
2872
  /***/ (function(module, exports, __webpack_require__) {
2821
2873
 
2822
2874
  "use strict";
@@ -2827,10 +2879,10 @@ Object.defineProperty(exports, "__esModule", {
2827
2879
  });
2828
2880
  var React = __webpack_require__(1);
2829
2881
  var T = __webpack_require__(0);
2830
- var Popover_1 = __webpack_require__(61);
2882
+ var Popover_1 = __webpack_require__(62);
2831
2883
  var styled_components_1 = __webpack_require__(4);
2832
- var numberUtils_1 = __webpack_require__(30);
2833
- var PureSankey_1 = __webpack_require__(110);
2884
+ var numberUtils_1 = __webpack_require__(31);
2885
+ var PureSankey_1 = __webpack_require__(111);
2834
2886
  var DEFAULT_PLACEMENT = 'below';
2835
2887
  var StyledTooltipContainer = styled_components_1.default.div.withConfig({
2836
2888
  displayName: "SankeyTooltip__StyledTooltipContainer",
@@ -2940,7 +2992,7 @@ var SankeyTooltip = function SankeyTooltip(props) {
2940
2992
  colorCategoryMapping: colorCategoryMapping
2941
2993
  }), React.createElement(NodeValue, null, node === null || node === void 0 ? void 0 : node.name)), React.createElement(StyledTooltipRightCell, {
2942
2994
  "data-test": "main-row-value"
2943
- }, numberUtils_1.formatNumber(node === null || node === void 0 ? void 0 : node.value, 0, {
2995
+ }, (0, numberUtils_1.formatNumber)(node === null || node === void 0 ? void 0 : node.value, 0, {
2944
2996
  useTrendUnits: true
2945
2997
  }))), showSection(connections, node, 'source') && React.createElement(StyledTooltipHeader, {
2946
2998
  headerColor: tooltipHeaderColor
@@ -2958,7 +3010,7 @@ var SankeyTooltip = function SankeyTooltip(props) {
2958
3010
  "data-test": "source-row-name"
2959
3011
  }, sNode === null || sNode === void 0 ? void 0 : sNode.name)), React.createElement(StyledTooltipRightCell, {
2960
3012
  "data-test": "source-row-value"
2961
- }, numberUtils_1.formatNumber(sNode === null || sNode === void 0 ? void 0 : sNode.value, 0, {
3013
+ }, (0, numberUtils_1.formatNumber)(sNode === null || sNode === void 0 ? void 0 : sNode.value, 0, {
2962
3014
  useTrendUnits: true
2963
3015
  })));
2964
3016
  }
@@ -2979,7 +3031,7 @@ var SankeyTooltip = function SankeyTooltip(props) {
2979
3031
  "data-test": "target-row-name"
2980
3032
  }, tNode === null || tNode === void 0 ? void 0 : tNode.name)), React.createElement(StyledTooltipRightCell, {
2981
3033
  "data-test": "target-row-value"
2982
- }, numberUtils_1.formatNumber(tNode === null || tNode === void 0 ? void 0 : tNode.value, 0, {
3034
+ }, (0, numberUtils_1.formatNumber)(tNode === null || tNode === void 0 ? void 0 : tNode.value, 0, {
2983
3035
  useTrendUnits: true
2984
3036
  })));
2985
3037
  }
@@ -3006,7 +3058,7 @@ var SankeyTooltip = function SankeyTooltip(props) {
3006
3058
  "data-test": "main-row-name"
3007
3059
  }, "Link Size"), React.createElement(StyledTooltipRightCell, {
3008
3060
  "data-test": "main-row-value"
3009
- }, numberUtils_1.formatNumber(link === null || link === void 0 ? void 0 : link.value, 0, {
3061
+ }, (0, numberUtils_1.formatNumber)(link === null || link === void 0 ? void 0 : link.value, 0, {
3010
3062
  useTrendUnits: true
3011
3063
  }))), React.createElement(StyledTooltipHeader, {
3012
3064
  headerColor: tooltipHeaderColor
@@ -3020,7 +3072,7 @@ var SankeyTooltip = function SankeyTooltip(props) {
3020
3072
  "data-test": "source-row-name"
3021
3073
  }, (_a = link === null || link === void 0 ? void 0 : link.source) === null || _a === void 0 ? void 0 : _a.name)), React.createElement(StyledTooltipRightCell, {
3022
3074
  "data-test": "source-row-value"
3023
- }, numberUtils_1.formatNumber((_b = link === null || link === void 0 ? void 0 : link.source) === null || _b === void 0 ? void 0 : _b.value, 0, {
3075
+ }, (0, numberUtils_1.formatNumber)((_b = link === null || link === void 0 ? void 0 : link.source) === null || _b === void 0 ? void 0 : _b.value, 0, {
3024
3076
  useTrendUnits: true
3025
3077
  }), ' '))), React.createElement(StyledTooltipHeader, {
3026
3078
  headerColor: tooltipHeaderColor
@@ -3034,7 +3086,7 @@ var SankeyTooltip = function SankeyTooltip(props) {
3034
3086
  "data-test": "target-row-name"
3035
3087
  }, (_c = link === null || link === void 0 ? void 0 : link.target) === null || _c === void 0 ? void 0 : _c.name)), React.createElement(StyledTooltipRightCell, {
3036
3088
  "data-test": "target-row-value"
3037
- }, numberUtils_1.formatNumber((_d = link === null || link === void 0 ? void 0 : link.target) === null || _d === void 0 ? void 0 : _d.value, 0, {
3089
+ }, (0, numberUtils_1.formatNumber)((_d = link === null || link === void 0 ? void 0 : link.target) === null || _d === void 0 ? void 0 : _d.value, 0, {
3038
3090
  useTrendUnits: true
3039
3091
  }))))));
3040
3092
  };
@@ -3062,7 +3114,7 @@ exports.default = SankeyTooltip;
3062
3114
 
3063
3115
  /***/ }),
3064
3116
 
3065
- /***/ 459:
3117
+ /***/ 462:
3066
3118
  /***/ (function(module, exports, __webpack_require__) {
3067
3119
 
3068
3120
  "use strict";
@@ -3072,16 +3124,16 @@ Object.defineProperty(exports, "__esModule", {
3072
3124
  value: true
3073
3125
  });
3074
3126
  var visualization_icons_1 = __webpack_require__(52);
3075
- var placeholders_1 = __webpack_require__(49);
3127
+ var placeholders_1 = __webpack_require__(50);
3076
3128
  var visualization_color_palettes_1 = __webpack_require__(51);
3077
3129
  var schemaUtils_1 = __webpack_require__(16);
3078
- var PresetPalettes_1 = __webpack_require__(60);
3079
- var themes_1 = __webpack_require__(59);
3130
+ var PresetPalettes_1 = __webpack_require__(61);
3131
+ var themes_1 = __webpack_require__(60);
3080
3132
  var i18n_1 = __webpack_require__(2);
3081
3133
  var VizBehavior_1 = __webpack_require__(6);
3082
3134
  var VizCategory_1 = __webpack_require__(35);
3083
3135
  var configUtils_1 = __webpack_require__(20);
3084
- var DynamicLinkColorsEditor_1 = __webpack_require__(460);
3136
+ var DynamicLinkColorsEditor_1 = __webpack_require__(463);
3085
3137
  var BackgroundColor_1 = __webpack_require__(53);
3086
3138
  var defaultContext = {
3087
3139
  linkColorRangeConfig: [{
@@ -3135,7 +3187,7 @@ var optionsSchema = {
3135
3187
  colorMode: {
3136
3188
  default: 'categorical',
3137
3189
  description: 'Specify the coloring method used for the links. When set to "categorical" the nodes and links will be colored based on the "seriesColors". When set to "dynamic" the links will be colored based on the dynamic string assigned to "linkColors".',
3138
- pattern: schemaUtils_1.getPattern(['categorical', 'dynamic']),
3190
+ pattern: (0, schemaUtils_1.getPattern)(['categorical', 'dynamic']),
3139
3191
  type: 'string'
3140
3192
  },
3141
3193
  linkColors: {
@@ -3173,7 +3225,7 @@ var optionsSchema = {
3173
3225
  };
3174
3226
  var themes = {
3175
3227
  defaultBackgroundColor: function defaultBackgroundColor(props) {
3176
- return themes_1.pick({
3228
+ return (0, themes_1.pick)({
3177
3229
  enterprise: {
3178
3230
  dark: themes_1.variables.black(props),
3179
3231
  light: themes_1.variables.backgroundColor(props)
@@ -3182,7 +3234,7 @@ var themes = {
3182
3234
  })(props);
3183
3235
  },
3184
3236
  nodeTextColor: function nodeTextColor(props) {
3185
- return themes_1.pick({
3237
+ return (0, themes_1.pick)({
3186
3238
  enterprise: {
3187
3239
  dark: themes_1.variables.textColor(props),
3188
3240
  light: themes_1.variables.textColor(props)
@@ -3191,7 +3243,7 @@ var themes = {
3191
3243
  })(props);
3192
3244
  },
3193
3245
  tooltipRowColor: function tooltipRowColor(props) {
3194
- return themes_1.pick({
3246
+ return (0, themes_1.pick)({
3195
3247
  enterprise: {
3196
3248
  dark: themes_1.variables.textColor(props),
3197
3249
  light: themes_1.variables.textColor(props)
@@ -3200,7 +3252,7 @@ var themes = {
3200
3252
  })(props);
3201
3253
  },
3202
3254
  tooltipLinkHeaderColor: function tooltipLinkHeaderColor(props) {
3203
- return themes_1.pick({
3255
+ return (0, themes_1.pick)({
3204
3256
  enterprise: {
3205
3257
  dark: themes_1.variables.textColor(props),
3206
3258
  light: themes_1.variables.textColor(props)
@@ -3209,7 +3261,7 @@ var themes = {
3209
3261
  })(props);
3210
3262
  },
3211
3263
  tooltipHeaderColor: function tooltipHeaderColor(props) {
3212
- return themes_1.pick({
3264
+ return (0, themes_1.pick)({
3213
3265
  enterprise: {
3214
3266
  dark: themes_1.variables.textGray(props),
3215
3267
  light: themes_1.variables.textGray(props)
@@ -3219,7 +3271,7 @@ var themes = {
3219
3271
  }
3220
3272
  };
3221
3273
  var editorConfig = [{
3222
- label: i18n_1._('Data configurations'),
3274
+ label: (0, i18n_1._)('Data configurations'),
3223
3275
  layout: [[{
3224
3276
  label: 'Link value',
3225
3277
  editor: 'editor.columnSelector',
@@ -3231,21 +3283,21 @@ var editorConfig = [{
3231
3283
  }
3232
3284
  }]]
3233
3285
  }, {
3234
- label: i18n_1._('Color and style'),
3286
+ label: (0, i18n_1._)('Color and style'),
3235
3287
  layout: [[{
3236
- label: i18n_1._('Color mode'),
3288
+ label: (0, i18n_1._)('Color mode'),
3237
3289
  option: 'colorMode',
3238
3290
  editor: 'editor.radioBar',
3239
3291
  editorProps: {
3240
3292
  values: [{
3241
- label: i18n_1._('Categorical'),
3293
+ label: (0, i18n_1._)('Categorical'),
3242
3294
  value: 'categorical'
3243
3295
  }, {
3244
- label: i18n_1._('Dynamic'),
3296
+ label: (0, i18n_1._)('Dynamic'),
3245
3297
  value: 'dynamic'
3246
3298
  }]
3247
3299
  }
3248
- }], [Object.assign(Object.assign({}, DynamicLinkColorsEditor_1.getDynamicLinkColorsEditor({
3300
+ }], [Object.assign(Object.assign({}, (0, DynamicLinkColorsEditor_1.getDynamicLinkColorsEditor)({
3249
3301
  defaultContext: defaultContext,
3250
3302
  defaultPalettesConfig: PresetPalettes_1.defaultPalettesConfig
3251
3303
  })), {
@@ -3253,7 +3305,7 @@ var editorConfig = [{
3253
3305
  var options = _ref.options;
3254
3306
  return options.colorMode === 'dynamic';
3255
3307
  }
3256
- })], BackgroundColor_1.default({
3308
+ })], (0, BackgroundColor_1.default)({
3257
3309
  themes: themes
3258
3310
  })]
3259
3311
  }];
@@ -3268,7 +3320,7 @@ var config = {
3268
3320
  /**
3269
3321
  * viz name
3270
3322
  */
3271
- name: i18n_1._('Sankey'),
3323
+ name: (0, i18n_1._)('Sankey'),
3272
3324
  category: VizCategory_1.VizCategory.FLOW,
3273
3325
  status: 'preview',
3274
3326
  /**
@@ -3286,57 +3338,11 @@ var config = {
3286
3338
  themes: themes,
3287
3339
  requiredProps: []
3288
3340
  };
3289
- exports.default = configUtils_1.enhanceConfig(config);
3341
+ exports.default = (0, configUtils_1.enhanceConfig)(config);
3290
3342
 
3291
3343
  /***/ }),
3292
3344
 
3293
- /***/ 46:
3294
- /***/ (function(module, exports, __webpack_require__) {
3295
-
3296
- "use strict";
3297
-
3298
-
3299
- Object.defineProperty(exports, "__esModule", {
3300
- value: true
3301
- });
3302
- var React = __webpack_require__(1);
3303
- var styled_components_1 = __webpack_require__(4);
3304
- var hocUtils_1 = __webpack_require__(15);
3305
- var Cover = styled_components_1.default.div.withConfig({
3306
- displayName: "withEditModeCover__Cover",
3307
- componentId: "sc-1gsbnxb-0"
3308
- })(["position:absolute;left:0;right:0;top:0;bottom:0;"]);
3309
- var Blocker = styled_components_1.default.div.attrs({
3310
- 'data-splunk-visualization-version': "25.13.1 - ea48ec41e"
3311
- }).withConfig({
3312
- displayName: "withEditModeCover__Blocker",
3313
- componentId: "sc-1gsbnxb-1"
3314
- })(["position:relative;width:100%;height:100%;"]);
3315
- /**
3316
- * HOC that renders a cover layer in edit mode
3317
- * @method withEditModeCover
3318
- * @param {ExtendedDashViz} Visualization
3319
- * @returns {ExtendedDashViz} Wrapper
3320
- */
3321
- var withEditModeCover = function withEditModeCover(Visualization, disableEditModeCover) {
3322
- var Wrapper = function Wrapper(props) {
3323
- var mode = props.mode;
3324
- var showEditCover = mode === 'edit' && !disableEditModeCover;
3325
- return React.createElement(Blocker, null, React.createElement(Visualization, Object.assign({}, props)), showEditCover && React.createElement(Cover, {
3326
- "data-test": "edit-mode-cover"
3327
- }));
3328
- };
3329
- hocUtils_1.extendStaticWrapperProps({
3330
- Wrapper: Wrapper,
3331
- Visualization: Visualization
3332
- });
3333
- return Wrapper;
3334
- };
3335
- exports.default = withEditModeCover;
3336
-
3337
- /***/ }),
3338
-
3339
- /***/ 460:
3345
+ /***/ 463:
3340
3346
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3341
3347
 
3342
3348
  "use strict";
@@ -3399,7 +3405,7 @@ Object.defineProperty(exports, "__esModule", {
3399
3405
  var React = __webpack_require__(1);
3400
3406
  var colorUtils_1 = __webpack_require__(12);
3401
3407
  var variables_1 = __webpack_require__(11);
3402
- var IconPlaceholder_1 = __webpack_require__(31);
3408
+ var IconPlaceholder_1 = __webpack_require__(32);
3403
3409
  var VizBehavior_1 = __webpack_require__(6);
3404
3410
  var hocUtils_1 = __webpack_require__(15);
3405
3411
  var withPlaceholder = function withPlaceholder(Visualization) {
@@ -3414,7 +3420,7 @@ var withPlaceholder = function withPlaceholder(Visualization) {
3414
3420
  height = props.height,
3415
3421
  width = props.width;
3416
3422
  var showPlaceholder = useIconPlaceholder(dataSources, loading, options);
3417
- 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);
3423
+ 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);
3418
3424
  var icon = (_b = config.placeholderIcon) !== null && _b !== void 0 ? _b : config.icon;
3419
3425
  var iconColor = variables_1.default.contentColorActive(props);
3420
3426
  if (config.supports.includes(VizBehavior_1.VizBehavior.PLACEHOLDER) && showPlaceholder) {
@@ -3429,7 +3435,7 @@ var withPlaceholder = function withPlaceholder(Visualization) {
3429
3435
  }
3430
3436
  return React.createElement(Visualization, Object.assign({}, props));
3431
3437
  };
3432
- hocUtils_1.extendStaticWrapperProps({
3438
+ (0, hocUtils_1.extendStaticWrapperProps)({
3433
3439
  Wrapper: Wrapper,
3434
3440
  Visualization: Visualization
3435
3441
  });
@@ -3439,7 +3445,7 @@ exports.default = withPlaceholder;
3439
3445
 
3440
3446
  /***/ }),
3441
3447
 
3442
- /***/ 49:
3448
+ /***/ 50:
3443
3449
  /***/ (function(module, exports) {
3444
3450
 
3445
3451
  module.exports = require("@splunk/visualization-icons/placeholders");
@@ -3475,7 +3481,7 @@ var background = function background(_ref) {
3475
3481
  themes = _ref.themes,
3476
3482
  labelPosition = _ref.labelPosition;
3477
3483
  return [{
3478
- label: i18n_1._(label || 'Background'),
3484
+ label: (0, i18n_1._)(label || 'Background'),
3479
3485
  option: 'backgroundColor',
3480
3486
  editor: 'editor.color',
3481
3487
  editorProps: {
@@ -3488,13 +3494,6 @@ exports.default = background;
3488
3494
 
3489
3495
  /***/ }),
3490
3496
 
3491
- /***/ 59:
3492
- /***/ (function(module, exports) {
3493
-
3494
- module.exports = require("@splunk/themes");
3495
-
3496
- /***/ }),
3497
-
3498
3497
  /***/ 6:
3499
3498
  /***/ (function(module, exports, __webpack_require__) {
3500
3499
 
@@ -3535,18 +3534,25 @@ var VizBehavior;
3535
3534
  /***/ 60:
3536
3535
  /***/ (function(module, exports) {
3537
3536
 
3538
- module.exports = require("@splunk/visualization-color-palettes/editors/PresetPalettes");
3537
+ module.exports = require("@splunk/themes");
3539
3538
 
3540
3539
  /***/ }),
3541
3540
 
3542
3541
  /***/ 61:
3543
3542
  /***/ (function(module, exports) {
3544
3543
 
3544
+ module.exports = require("@splunk/visualization-color-palettes/editors/PresetPalettes");
3545
+
3546
+ /***/ }),
3547
+
3548
+ /***/ 62:
3549
+ /***/ (function(module, exports) {
3550
+
3545
3551
  module.exports = require("@splunk/react-ui/Popover");
3546
3552
 
3547
3553
  /***/ }),
3548
3554
 
3549
- /***/ 63:
3555
+ /***/ 64:
3550
3556
  /***/ (function(module, exports) {
3551
3557
 
3552
3558
  module.exports = require("d3-array");
@@ -3560,7 +3566,7 @@ module.exports = require("@babel/runtime/helpers/defineProperty");
3560
3566
 
3561
3567
  /***/ }),
3562
3568
 
3563
- /***/ 72:
3569
+ /***/ 73:
3564
3570
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3565
3571
 
3566
3572
  "use strict";
@@ -3592,24 +3598,24 @@ module.exports = require("@babel/runtime/helpers/toConsumableArray");
3592
3598
 
3593
3599
  /***/ }),
3594
3600
 
3595
- /***/ 9:
3601
+ /***/ 82:
3596
3602
  /***/ (function(module, exports) {
3597
3603
 
3598
- module.exports = require("@babel/runtime/helpers/classCallCheck");
3604
+ module.exports = require("@babel/runtime/helpers/typeof");
3599
3605
 
3600
3606
  /***/ }),
3601
3607
 
3602
- /***/ 91:
3608
+ /***/ 9:
3603
3609
  /***/ (function(module, exports) {
3604
3610
 
3605
- module.exports = require("d3-scale");
3611
+ module.exports = require("@babel/runtime/helpers/classCallCheck");
3606
3612
 
3607
3613
  /***/ }),
3608
3614
 
3609
- /***/ 93:
3615
+ /***/ 92:
3610
3616
  /***/ (function(module, exports) {
3611
3617
 
3612
- module.exports = require("@babel/runtime/helpers/typeof");
3618
+ module.exports = require("d3-scale");
3613
3619
 
3614
3620
  /***/ }),
3615
3621
 
@@ -3620,7 +3626,7 @@ module.exports = require("@splunk/visualization-encoding/utils/types");
3620
3626
 
3621
3627
  /***/ }),
3622
3628
 
3623
- /***/ 96:
3629
+ /***/ 97:
3624
3630
  /***/ (function(module, exports) {
3625
3631
 
3626
3632
  module.exports = require("@splunk/visualizations-shared/dataSourceUtils");