victory-box-plot 36.5.0 → 36.5.1

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.
@@ -805,7 +805,7 @@ VictoryBoxPlot.animationWhitelist = ["data", "domain", "height", "padding", "sty
805
805
  VictoryBoxPlot.displayName = "VictoryBoxPlot";
806
806
  VictoryBoxPlot.role = "boxplot";
807
807
  VictoryBoxPlot.defaultTransitions = victory_core__WEBPACK_IMPORTED_MODULE_5__.discreteTransitions();
808
- VictoryBoxPlot.propTypes = _objectSpread(_objectSpread(_objectSpread({}, victory_core__WEBPACK_IMPORTED_MODULE_6__.baseProps), victory_core__WEBPACK_IMPORTED_MODULE_6__.dataProps), {}, {
808
+ VictoryBoxPlot.propTypes = _objectSpread(_objectSpread(_objectSpread({}, victory_core__WEBPACK_IMPORTED_MODULE_6__.CommonProps.baseProps), victory_core__WEBPACK_IMPORTED_MODULE_6__.CommonProps.dataProps), {}, {
809
809
  boxWidth: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().number),
810
810
  events: prop_types__WEBPACK_IMPORTED_MODULE_7___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_7___default().shape({
811
811
  target: prop_types__WEBPACK_IMPORTED_MODULE_7___default().oneOf(["max", "maxLabels", "median", "medianLabels", "min", "minLabels", "q1", "q1Labels", "q3", "q3Labels", "parent"]),
@@ -890,7 +890,7 @@ VictoryBoxPlot.getBaseProps = function (props) {
890
890
  };
891
891
 
892
892
  VictoryBoxPlot.expectedComponents = ["maxComponent", "maxLabelComponent", "medianComponent", "medianLabelComponent", "minComponent", "minLabelComponent", "q1Component", "q1LabelComponent", "q3Component", "q3LabelComponent", "groupComponent", "containerComponent"];
893
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,victory_core__WEBPACK_IMPORTED_MODULE_16__["default"])(VictoryBoxPlot, options));
893
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,victory_core__WEBPACK_IMPORTED_MODULE_16__.addEvents)(VictoryBoxPlot, options));
894
894
 
895
895
  /***/ }),
896
896
 
@@ -7701,7 +7701,7 @@ var isInterpolatable = function (obj) {
7701
7701
  // component is only going to call the function (in which case it's
7702
7702
  // safely interpolatable) or if it's going to access special properties
7703
7703
  // (in which case our function generated from `interpolateFunction` will
7704
- // most likely cause an error. We could check for enumerable properties
7704
+ // most likely cause an error). We could check for enumerable properties
7705
7705
  // on the function object here to see if it's a "plain" function, but
7706
7706
  // let's just require that components prevent such function props from
7707
7707
  // being animated in the first place.
@@ -7866,16 +7866,18 @@ var victoryInterpolator = function (a, b) {
7866
7866
  }
7867
7867
 
7868
7868
  if (lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default()(a) || lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default()(b)) {
7869
- // @ts-expect-error These generics are tough, but they work ok?
7869
+ // @ts-expect-error These generics are tough, but they work :)
7870
7870
  return interpolateObject(a, b);
7871
7871
  }
7872
7872
 
7873
7873
  if (typeof a === "string" || typeof b === "string") {
7874
7874
  return interpolateString(a, b);
7875
- }
7875
+ } // @ts-expect-error These generics are tough, but they work :)
7876
+
7876
7877
 
7877
7878
  return (0,victory_vendor_d3_interpolate__WEBPACK_IMPORTED_MODULE_2__["default"])(a, b);
7878
7879
  };
7880
+ //# sourceMappingURL=util.js.map
7879
7881
 
7880
7882
  /***/ }),
7881
7883
 
@@ -8138,6 +8140,7 @@ VictoryAnimation.defaultProps = {
8138
8140
  easing: "quadInOut"
8139
8141
  };
8140
8142
  VictoryAnimation.contextType = _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_5__["default"];
8143
+ //# sourceMappingURL=victory-animation.js.map
8141
8144
 
8142
8145
  /***/ }),
8143
8146
 
@@ -8451,6 +8454,7 @@ VictoryContainer.defaultProps = {
8451
8454
  role: "img"
8452
8455
  };
8453
8456
  VictoryContainer.contextType = _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_12__["default"];
8457
+ //# sourceMappingURL=victory-container.js.map
8454
8458
 
8455
8459
  /***/ }),
8456
8460
 
@@ -9056,10 +9060,9 @@ VictoryLabel.propTypes = {
9056
9060
  inline: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().bool),
9057
9061
  labelPlacement: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOf(["parallel", "perpendicular", "vertical"]),
9058
9062
  lineHeight: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_11___default().string), _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_12__.nonNegative, (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().array)]),
9059
- // @ts-expect-error "x is required in origin"
9060
9063
  origin: prop_types__WEBPACK_IMPORTED_MODULE_11___default().shape({
9061
- x: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_12__.nonNegative,
9062
- y: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_12__.nonNegative
9064
+ x: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_12__.nonNegative.isRequired,
9065
+ y: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_12__.nonNegative.isRequired
9063
9066
  }),
9064
9067
  polar: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().bool),
9065
9068
  renderInPortal: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().bool),
@@ -9093,6 +9096,7 @@ VictoryLabel.defaultProps = {
9093
9096
  // Magic number from d3.
9094
9097
  lineHeight: 1
9095
9098
  };
9099
+ //# sourceMappingURL=victory-label.js.map
9096
9100
 
9097
9101
  /***/ }),
9098
9102
 
@@ -9117,6 +9121,7 @@ __webpack_require__.r(__webpack_exports__);
9117
9121
  */
9118
9122
  var PortalContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createContext({});
9119
9123
  PortalContext.displayName = "PortalContext";
9124
+ //# sourceMappingURL=portal-context.js.map
9120
9125
 
9121
9126
  /***/ }),
9122
9127
 
@@ -9228,6 +9233,7 @@ Portal.propTypes = {
9228
9233
  viewBox: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().string),
9229
9234
  width: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_3__.nonNegative
9230
9235
  };
9236
+ //# sourceMappingURL=portal.js.map
9231
9237
 
9232
9238
  /***/ }),
9233
9239
 
@@ -9371,6 +9377,7 @@ VictoryPortal.defaultProps = {
9371
9377
  groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("g", null)
9372
9378
  };
9373
9379
  VictoryPortal.contextType = _portal_context__WEBPACK_IMPORTED_MODULE_5__.PortalContext;
9380
+ //# sourceMappingURL=victory-portal.js.map
9374
9381
 
9375
9382
  /***/ }),
9376
9383
 
@@ -9451,7 +9458,7 @@ var Border = function (props) {
9451
9458
  clipPath: props.clipPath
9452
9459
  }));
9453
9460
  };
9454
- Border.propTypes = _objectSpread(_objectSpread({}, _victory_util_common_props__WEBPACK_IMPORTED_MODULE_3__.primitiveProps), {}, {
9461
+ Border.propTypes = _objectSpread(_objectSpread({}, _victory_util_common_props__WEBPACK_IMPORTED_MODULE_3__.CommonProps.primitiveProps), {}, {
9455
9462
  height: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number),
9456
9463
  rectComponent: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().element),
9457
9464
  width: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number),
@@ -9463,6 +9470,7 @@ Border.defaultProps = {
9463
9470
  role: "presentation",
9464
9471
  shapeRendering: "auto"
9465
9472
  };
9473
+ //# sourceMappingURL=border.js.map
9466
9474
 
9467
9475
  /***/ }),
9468
9476
 
@@ -9543,7 +9551,7 @@ var LineSegment = function (props) {
9543
9551
  clipPath: props.clipPath
9544
9552
  }));
9545
9553
  };
9546
- LineSegment.propTypes = _objectSpread(_objectSpread({}, _victory_util_common_props__WEBPACK_IMPORTED_MODULE_3__.primitiveProps), {}, {
9554
+ LineSegment.propTypes = _objectSpread(_objectSpread({}, _victory_util_common_props__WEBPACK_IMPORTED_MODULE_3__.CommonProps.primitiveProps), {}, {
9547
9555
  datum: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().any),
9548
9556
  lineComponent: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().element),
9549
9557
  x1: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number),
@@ -9556,6 +9564,7 @@ LineSegment.defaultProps = {
9556
9564
  role: "presentation",
9557
9565
  shapeRendering: "auto"
9558
9566
  };
9567
+ //# sourceMappingURL=line-segment.js.map
9559
9568
 
9560
9569
  /***/ }),
9561
9570
 
@@ -9598,6 +9607,7 @@ var Line = function (props) {
9598
9607
  vectorEffect: "non-scaling-stroke"
9599
9608
  }, rest));
9600
9609
  };
9610
+ //# sourceMappingURL=line.js.map
9601
9611
 
9602
9612
  /***/ }),
9603
9613
 
@@ -9640,6 +9650,7 @@ var Rect = function (props) {
9640
9650
  vectorEffect: "non-scaling-stroke"
9641
9651
  }, rest));
9642
9652
  };
9653
+ //# sourceMappingURL=rect.js.map
9643
9654
 
9644
9655
  /***/ }),
9645
9656
 
@@ -9683,6 +9694,7 @@ Text.propTypes = {
9683
9694
  desc: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string),
9684
9695
  title: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string)
9685
9696
  };
9697
+ //# sourceMappingURL=text.js.map
9686
9698
 
9687
9699
  /***/ }),
9688
9700
 
@@ -9707,6 +9719,7 @@ var TSpan = function (props) {
9707
9719
  react__WEBPACK_IMPORTED_MODULE_0___default().createElement("tspan", props)
9708
9720
  );
9709
9721
  };
9722
+ //# sourceMappingURL=tspan.js.map
9710
9723
 
9711
9724
  /***/ }),
9712
9725
 
@@ -9804,7 +9817,7 @@ var Whisker = function (props) {
9804
9817
  "aria-label": ariaLabel
9805
9818
  }, baseProps, minorWhisker))]);
9806
9819
  };
9807
- Whisker.propTypes = _objectSpread(_objectSpread({}, _victory_util_common_props__WEBPACK_IMPORTED_MODULE_3__.primitiveProps), {}, {
9820
+ Whisker.propTypes = _objectSpread(_objectSpread({}, _victory_util_common_props__WEBPACK_IMPORTED_MODULE_3__.CommonProps.primitiveProps), {}, {
9808
9821
  groupComponent: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().element),
9809
9822
  lineComponent: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().element),
9810
9823
  majorWhisker: prop_types__WEBPACK_IMPORTED_MODULE_4___default().shape({
@@ -9826,6 +9839,7 @@ Whisker.defaultProps = {
9826
9839
  role: "presentation",
9827
9840
  shapeRendering: "auto"
9828
9841
  };
9842
+ //# sourceMappingURL=whisker.js.map
9829
9843
 
9830
9844
  /***/ }),
9831
9845
 
@@ -10101,6 +10115,7 @@ var grayscale = {
10101
10115
  }
10102
10116
  }, baseProps)
10103
10117
  };
10118
+ //# sourceMappingURL=grayscale.js.map
10104
10119
 
10105
10120
  /***/ }),
10106
10121
 
@@ -10403,6 +10418,7 @@ var material = {
10403
10418
  }
10404
10419
  }, baseProps)
10405
10420
  };
10421
+ //# sourceMappingURL=material.js.map
10406
10422
 
10407
10423
  /***/ }),
10408
10424
 
@@ -10426,6 +10442,7 @@ var VictoryTheme = {
10426
10442
  grayscale: _grayscale__WEBPACK_IMPORTED_MODULE_0__.grayscale,
10427
10443
  material: _material__WEBPACK_IMPORTED_MODULE_1__.material
10428
10444
  };
10445
+ //# sourceMappingURL=victory-theme.js.map
10429
10446
 
10430
10447
  /***/ }),
10431
10448
 
@@ -10694,6 +10711,7 @@ VictoryTransition.propTypes = {
10694
10711
  children: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().node)
10695
10712
  };
10696
10713
  VictoryTransition.contextType = _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_10__["default"];
10714
+ //# sourceMappingURL=victory-transition.js.map
10697
10715
 
10698
10716
  /***/ }),
10699
10717
 
@@ -10706,26 +10724,26 @@ VictoryTransition.contextType = _victory_util_timer_context__WEBPACK_IMPORTED_MO
10706
10724
  "use strict";
10707
10725
  __webpack_require__.r(__webpack_exports__);
10708
10726
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
10709
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
10727
+ /* harmony export */ "addEvents": () => (/* binding */ addEvents)
10710
10728
  /* harmony export */ });
10711
- /* harmony import */ var lodash_difference__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/difference */ "../../../node_modules/lodash/difference.js");
10712
- /* harmony import */ var lodash_difference__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_difference__WEBPACK_IMPORTED_MODULE_0__);
10713
- /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/isNil */ "../../../node_modules/lodash/isNil.js");
10714
- /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_isNil__WEBPACK_IMPORTED_MODULE_1__);
10715
- /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/isEmpty */ "../../../node_modules/lodash/isEmpty.js");
10716
- /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2__);
10717
- /* harmony import */ var lodash_without__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/without */ "../../../node_modules/lodash/without.js");
10718
- /* harmony import */ var lodash_without__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_without__WEBPACK_IMPORTED_MODULE_3__);
10719
- /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash/pick */ "../../../node_modules/lodash/pick.js");
10720
- /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_pick__WEBPACK_IMPORTED_MODULE_4__);
10721
- /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! lodash/isFunction */ "../../../node_modules/lodash/isFunction.js");
10722
- /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_5__);
10723
- /* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! lodash/keys */ "../../../node_modules/lodash/keys.js");
10724
- /* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(lodash_keys__WEBPACK_IMPORTED_MODULE_6__);
10725
- /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js");
10726
- /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_7__);
10727
- /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/lodash/defaults.js");
10728
- /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_8__);
10729
+ /* harmony import */ var lodash_without__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/without */ "../../../node_modules/lodash/without.js");
10730
+ /* harmony import */ var lodash_without__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_without__WEBPACK_IMPORTED_MODULE_0__);
10731
+ /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/pick */ "../../../node_modules/lodash/pick.js");
10732
+ /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_pick__WEBPACK_IMPORTED_MODULE_1__);
10733
+ /* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/keys */ "../../../node_modules/lodash/keys.js");
10734
+ /* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_keys__WEBPACK_IMPORTED_MODULE_2__);
10735
+ /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/isNil */ "../../../node_modules/lodash/isNil.js");
10736
+ /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_isNil__WEBPACK_IMPORTED_MODULE_3__);
10737
+ /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash/isFunction */ "../../../node_modules/lodash/isFunction.js");
10738
+ /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_4__);
10739
+ /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! lodash/isEmpty */ "../../../node_modules/lodash/isEmpty.js");
10740
+ /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_5__);
10741
+ /* harmony import */ var lodash_difference__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! lodash/difference */ "../../../node_modules/lodash/difference.js");
10742
+ /* harmony import */ var lodash_difference__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(lodash_difference__WEBPACK_IMPORTED_MODULE_6__);
10743
+ /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/lodash/defaults.js");
10744
+ /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_7__);
10745
+ /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js");
10746
+ /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_8__);
10729
10747
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! react */ "react");
10730
10748
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_9__);
10731
10749
  /* harmony import */ var _events__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./events */ "../../victory-core/es/victory-util/events.js");
@@ -10778,13 +10796,14 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
10778
10796
 
10779
10797
 
10780
10798
 
10781
- // DISCLAIMER:
10799
+
10800
+
10801
+ // DISCLAIMER:
10782
10802
  // This file is not currently tested, and it is first on the list of files
10783
10803
  // to refactor in our current refactoring effort. Please do not make changes
10784
10804
  // to this file without manual testing and/or refactoring and adding tests.
10785
-
10786
10805
  var datumHasXandY = function (datum) {
10787
- return !lodash_isNil__WEBPACK_IMPORTED_MODULE_1___default()(datum._x) && !lodash_isNil__WEBPACK_IMPORTED_MODULE_1___default()(datum._y);
10806
+ return !lodash_isNil__WEBPACK_IMPORTED_MODULE_3___default()(datum._x) && !lodash_isNil__WEBPACK_IMPORTED_MODULE_3___default()(datum._y);
10788
10807
  }; // used for checking state changes. Expected components can be passed in via options
10789
10808
 
10790
10809
 
@@ -10796,44 +10815,45 @@ var defaultComponents = [{
10796
10815
  }, {
10797
10816
  name: "labels"
10798
10817
  }];
10799
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (function (WrappedComponent, options) {
10800
- return /*#__PURE__*/function (_WrappedComponent) {
10801
- _inherits(addEvents, _WrappedComponent);
10818
+ function addEvents(WrappedComponent) {
10819
+ var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
10820
+
10821
+ // @ts-expect-error "TS2545: A mixin class must have a constructor with a single rest parameter of type 'any[]'."
10822
+ var AddEventsMixin = /*#__PURE__*/function (_WrappedComponent) {
10823
+ _inherits(AddEventsMixin, _WrappedComponent);
10802
10824
 
10803
- var _super = _createSuper(addEvents);
10825
+ var _super = _createSuper(AddEventsMixin);
10804
10826
 
10805
- function addEvents(props) {
10827
+ function AddEventsMixin(props) {
10806
10828
  var _this;
10807
10829
 
10808
- _classCallCheck(this, addEvents);
10830
+ _classCallCheck(this, AddEventsMixin);
10809
10831
 
10810
10832
  _this = _super.call(this, props);
10811
- var getScopedEvents = _events__WEBPACK_IMPORTED_MODULE_11__.getScopedEvents.bind(_assertThisInitialized(_this));
10812
- var boundGetEvents = _events__WEBPACK_IMPORTED_MODULE_11__.getEvents.bind(_assertThisInitialized(_this));
10813
10833
  _this.state = {};
10834
+ _this.getEventState = _events__WEBPACK_IMPORTED_MODULE_11__.getEventState.bind(_assertThisInitialized(_this));
10835
+ _this.getScopedEvents = _events__WEBPACK_IMPORTED_MODULE_11__.getScopedEvents.bind(_assertThisInitialized(_this));
10814
10836
 
10815
10837
  _this.getEvents = function (p, target, eventKey) {
10816
- return boundGetEvents(p, target, eventKey, getScopedEvents);
10838
+ return _events__WEBPACK_IMPORTED_MODULE_11__.getEvents.call(_assertThisInitialized(_this), p, target, eventKey, _this.getScopedEvents);
10817
10839
  };
10818
10840
 
10819
- _this.getEventState = _events__WEBPACK_IMPORTED_MODULE_11__.getEventState.bind(_assertThisInitialized(_this));
10820
-
10821
- var calculatedValues = _this.getCalculatedValues(props);
10822
-
10823
- _this.cacheValues(calculatedValues);
10824
-
10825
- _this.externalMutations = _this.getExternalMutations(props);
10826
- _this.calculatedState = _this.getStateChanges(props);
10841
+ _this.externalMutations = _this.getExternalMutations(_this.props);
10842
+ _this.calculatedState = _this.getStateChanges(_this.props);
10827
10843
  _this.globalEvents = {};
10828
10844
  _this.prevGlobalEventKeys = [];
10829
10845
  _this.boundGlobalEvents = {};
10846
+
10847
+ _this.cacheValues(_this.getCalculatedValues(props));
10848
+
10830
10849
  return _this;
10831
10850
  }
10832
10851
 
10833
- _createClass(addEvents, [{
10852
+ _createClass(AddEventsMixin, [{
10834
10853
  key: "shouldComponentUpdate",
10835
10854
  value: function shouldComponentUpdate(nextProps) {
10836
- var externalMutations = this.getExternalMutations(nextProps);
10855
+ var externalMutations = this.getExternalMutations(nextProps); // @ts-expect-error "Property 'animating' does not exist on type EventMixinCommonProps"
10856
+
10837
10857
  var animating = this.props.animating || this.props.animate;
10838
10858
  var newMutation = !react_fast_compare__WEBPACK_IMPORTED_MODULE_10___default()(externalMutations, this.externalMutations);
10839
10859
 
@@ -10863,7 +10883,7 @@ var defaultComponents = [{
10863
10883
  value: function componentDidMount() {
10864
10884
  var _this2 = this;
10865
10885
 
10866
- var globalEventKeys = lodash_keys__WEBPACK_IMPORTED_MODULE_6___default()(this.globalEvents);
10886
+ var globalEventKeys = lodash_keys__WEBPACK_IMPORTED_MODULE_2___default()(this.globalEvents);
10867
10887
 
10868
10888
  globalEventKeys.forEach(function (key) {
10869
10889
  return _this2.addGlobalListener(key);
@@ -10878,15 +10898,15 @@ var defaultComponents = [{
10878
10898
  var calculatedState = this.getStateChanges(prevProps);
10879
10899
  this.calculatedState = calculatedState;
10880
10900
 
10881
- var globalEventKeys = lodash_keys__WEBPACK_IMPORTED_MODULE_6___default()(this.globalEvents);
10901
+ var globalEventKeys = lodash_keys__WEBPACK_IMPORTED_MODULE_2___default()(this.globalEvents);
10882
10902
 
10883
- var removedGlobalEventKeys = lodash_difference__WEBPACK_IMPORTED_MODULE_0___default()(this.prevGlobalEventKeys, globalEventKeys);
10903
+ var removedGlobalEventKeys = lodash_difference__WEBPACK_IMPORTED_MODULE_6___default()(this.prevGlobalEventKeys, globalEventKeys);
10884
10904
 
10885
10905
  removedGlobalEventKeys.forEach(function (key) {
10886
10906
  return _this3.removeGlobalListener(key);
10887
10907
  });
10888
10908
 
10889
- var addedGlobalEventKeys = lodash_difference__WEBPACK_IMPORTED_MODULE_0___default()(globalEventKeys, this.prevGlobalEventKeys);
10909
+ var addedGlobalEventKeys = lodash_difference__WEBPACK_IMPORTED_MODULE_6___default()(globalEventKeys, this.prevGlobalEventKeys);
10890
10910
 
10891
10911
  addedGlobalEventKeys.forEach(function (key) {
10892
10912
  return _this3.addGlobalListener(key);
@@ -10932,12 +10952,11 @@ var defaultComponents = [{
10932
10952
  }
10933
10953
 
10934
10954
  var getState = function (key, type) {
10935
- var result = lodash_defaults__WEBPACK_IMPORTED_MODULE_8___default()({}, _this6.getEventState(key, type), _this6.getSharedEventState(key, type));
10955
+ var result = lodash_defaults__WEBPACK_IMPORTED_MODULE_7___default()({}, _this6.getEventState(key, type), _this6.getSharedEventState(key, type));
10936
10956
 
10937
- return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default()(result) ? undefined : result;
10957
+ return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_5___default()(result) ? undefined : result;
10938
10958
  };
10939
10959
 
10940
- options = options || {};
10941
10960
  var components = options.components || defaultComponents;
10942
10961
  var stateChanges = components.map(function (component) {
10943
10962
  if (!props.standalone && component.name === "parent") {
@@ -10954,9 +10973,9 @@ var defaultComponents = [{
10954
10973
  }, {
10955
10974
  key: "applyExternalMutations",
10956
10975
  value: function applyExternalMutations(props, externalMutations) {
10957
- if (!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default()(externalMutations)) {
10976
+ if (!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_5___default()(externalMutations)) {
10958
10977
  var callbacks = props.externalEventMutations.reduce(function (memo, mutation) {
10959
- memo = lodash_isFunction__WEBPACK_IMPORTED_MODULE_5___default()(mutation.callback) ? memo.concat(mutation.callback) : memo;
10978
+ memo = lodash_isFunction__WEBPACK_IMPORTED_MODULE_4___default()(mutation.callback) ? memo.concat(mutation.callback) : memo;
10960
10979
  return memo;
10961
10980
  }, []);
10962
10981
  var compiledCallbacks = callbacks.length ? function () {
@@ -10973,12 +10992,12 @@ var defaultComponents = [{
10973
10992
  var sharedEvents = props.sharedEvents;
10974
10993
  var components = WrappedComponent.expectedComponents;
10975
10994
  var componentEvents = _events__WEBPACK_IMPORTED_MODULE_11__.getComponentEvents(props, components);
10976
- var getSharedEventState = sharedEvents && lodash_isFunction__WEBPACK_IMPORTED_MODULE_5___default()(sharedEvents.getEventState) ? sharedEvents.getEventState : function () {
10995
+ var getSharedEventState = sharedEvents && lodash_isFunction__WEBPACK_IMPORTED_MODULE_4___default()(sharedEvents.getEventState) ? sharedEvents.getEventState : function () {
10977
10996
  return undefined;
10978
10997
  };
10979
10998
  var baseProps = this.getBaseProps(props, getSharedEventState);
10980
10999
 
10981
- var dataKeys = lodash_keys__WEBPACK_IMPORTED_MODULE_6___default()(baseProps).filter(function (key) {
11000
+ var dataKeys = lodash_keys__WEBPACK_IMPORTED_MODULE_2___default()(baseProps).filter(function (key) {
10982
11001
  return key !== "parent";
10983
11002
  });
10984
11003
 
@@ -10998,32 +11017,32 @@ var defaultComponents = [{
10998
11017
  value: function getExternalMutations(props) {
10999
11018
  var sharedEvents = props.sharedEvents,
11000
11019
  externalEventMutations = props.externalEventMutations;
11001
- return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default()(externalEventMutations) || sharedEvents ? undefined : _events__WEBPACK_IMPORTED_MODULE_11__.getExternalMutations(externalEventMutations, this.baseProps, this.state);
11020
+ return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_5___default()(externalEventMutations) || sharedEvents ? undefined : _events__WEBPACK_IMPORTED_MODULE_11__.getExternalMutations(externalEventMutations, this.baseProps, this.state);
11002
11021
  }
11003
11022
  }, {
11004
11023
  key: "cacheValues",
11005
11024
  value: function cacheValues(obj) {
11006
11025
  var _this7 = this;
11007
11026
 
11008
- lodash_keys__WEBPACK_IMPORTED_MODULE_6___default()(obj).forEach(function (key) {
11027
+ lodash_keys__WEBPACK_IMPORTED_MODULE_2___default()(obj).forEach(function (key) {
11009
11028
  _this7[key] = obj[key];
11010
11029
  });
11011
11030
  }
11012
11031
  }, {
11013
11032
  key: "getBaseProps",
11014
11033
  value: function getBaseProps(props, getSharedEventState) {
11015
- getSharedEventState = getSharedEventState || this.getSharedEventState;
11034
+ getSharedEventState = getSharedEventState || this.getSharedEventState.bind(this);
11016
11035
  var sharedParentState = getSharedEventState("parent", "parent");
11017
11036
  var parentState = this.getEventState("parent", "parent");
11018
11037
 
11019
- var baseParentProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_8___default()({}, parentState, sharedParentState);
11038
+ var baseParentProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_7___default()({}, parentState, sharedParentState);
11020
11039
 
11021
11040
  var parentPropsList = baseParentProps.parentControlledProps;
11022
- var parentProps = parentPropsList ? lodash_pick__WEBPACK_IMPORTED_MODULE_4___default()(baseParentProps, parentPropsList) : {};
11041
+ var parentProps = parentPropsList ? lodash_pick__WEBPACK_IMPORTED_MODULE_1___default()(baseParentProps, parentPropsList) : {};
11023
11042
 
11024
- var modifiedProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_8___default()({}, parentProps, props);
11043
+ var modifiedProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_7___default()({}, parentProps, props);
11025
11044
 
11026
- return lodash_isFunction__WEBPACK_IMPORTED_MODULE_5___default()(WrappedComponent.getBaseProps) ? WrappedComponent.getBaseProps(modifiedProps) : {};
11045
+ return typeof WrappedComponent.getBaseProps === "function" ? WrappedComponent.getBaseProps(modifiedProps) : {};
11027
11046
  }
11028
11047
  }, {
11029
11048
  key: "getAllEvents",
@@ -11051,21 +11070,21 @@ var defaultComponents = [{
11051
11070
  if (this.hasEvents) {
11052
11071
  var baseEvents = this.getEvents(this.props, type, key);
11053
11072
 
11054
- var componentProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_8___default()({
11073
+ var componentProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_7___default()({
11055
11074
  index: index,
11056
11075
  key: id
11057
11076
  }, this.getEventState(key, type), this.getSharedEventState(key, type), component.props, baseProps, {
11058
11077
  id: id
11059
11078
  });
11060
11079
 
11061
- var events = lodash_defaults__WEBPACK_IMPORTED_MODULE_8___default()({}, _events__WEBPACK_IMPORTED_MODULE_11__.getPartialEvents(baseEvents, key, componentProps), componentProps.events);
11080
+ var events = lodash_defaults__WEBPACK_IMPORTED_MODULE_7___default()({}, _events__WEBPACK_IMPORTED_MODULE_11__.getPartialEvents(baseEvents, key, componentProps), componentProps.events);
11062
11081
 
11063
- return lodash_assign__WEBPACK_IMPORTED_MODULE_7___default()({}, componentProps, {
11082
+ return lodash_assign__WEBPACK_IMPORTED_MODULE_8___default()({}, componentProps, {
11064
11083
  events: events
11065
11084
  });
11066
11085
  }
11067
11086
 
11068
- return lodash_defaults__WEBPACK_IMPORTED_MODULE_8___default()({
11087
+ return lodash_defaults__WEBPACK_IMPORTED_MODULE_7___default()({
11069
11088
  index: index,
11070
11089
  key: id
11071
11090
  }, component.props, baseProps, {
@@ -11088,11 +11107,14 @@ var defaultComponents = [{
11088
11107
  }, {
11089
11108
  key: "animateComponent",
11090
11109
  value: function animateComponent(props, defaultAnimationWhitelist) {
11091
- var animationWhitelist = props.animate && props.animate.animationWhitelist ? props.animate.animationWhitelist : defaultAnimationWhitelist;
11110
+ var _props$animate;
11111
+
11112
+ var animationWhitelist = typeof props.animate === "object" && ((_props$animate = props.animate) === null || _props$animate === void 0 ? void 0 : _props$animate.animationWhitelist) || defaultAnimationWhitelist;
11113
+ var Comp = this.constructor;
11092
11114
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_9___default().createElement(_victory_transition_victory_transition__WEBPACK_IMPORTED_MODULE_12__.VictoryTransition, {
11093
11115
  animate: props.animate,
11094
11116
  animationWhitelist: animationWhitelist
11095
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_9___default().createElement(this.constructor, props));
11117
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_9___default().createElement(Comp, props));
11096
11118
  } // Used by `VictoryLine` and `VictoryArea`
11097
11119
 
11098
11120
  }, {
@@ -11104,7 +11126,7 @@ var defaultComponents = [{
11104
11126
  labelComponent = props.labelComponent,
11105
11127
  groupComponent = props.groupComponent;
11106
11128
 
11107
- var dataKeys = lodash_without__WEBPACK_IMPORTED_MODULE_3___default()(this.dataKeys, "all");
11129
+ var dataKeys = lodash_without__WEBPACK_IMPORTED_MODULE_0___default()(this.dataKeys, "all");
11108
11130
 
11109
11131
  var labelComponents = dataKeys.reduce(function (memo, key) {
11110
11132
  var labelProps = _this8.getComponentProps(labelComponent, "labels", key);
@@ -11151,9 +11173,12 @@ var defaultComponents = [{
11151
11173
  }
11152
11174
  }]);
11153
11175
 
11154
- return addEvents;
11176
+ return AddEventsMixin;
11155
11177
  }(WrappedComponent);
11156
- });
11178
+
11179
+ return AddEventsMixin;
11180
+ }
11181
+ //# sourceMappingURL=add-events.js.map
11157
11182
 
11158
11183
  /***/ }),
11159
11184
 
@@ -11187,7 +11212,6 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToAr
11187
11212
 
11188
11213
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
11189
11214
 
11190
- /* eslint-disable no-use-before-define */
11191
11215
  function isNonEmptyArray(collection) {
11192
11216
  return Array.isArray(collection) && collection.length > 0;
11193
11217
  }
@@ -11226,7 +11250,8 @@ function getMaxValue(arr) {
11226
11250
  }
11227
11251
 
11228
11252
  var array = arr.concat(values);
11229
- return containsDates(array) ? new Date(Math.max.apply(Math, _toConsumableArray(array))) : Math.max.apply(Math, _toConsumableArray(array));
11253
+ return containsDates(array) ? new Date(Math.max.apply(Math, _toConsumableArray(array))) // Dates will be coerced to numbers
11254
+ : Math.max.apply(Math, _toConsumableArray(array));
11230
11255
  }
11231
11256
  function getMinValue(arr) {
11232
11257
  for (var _len2 = arguments.length, values = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
@@ -11234,8 +11259,10 @@ function getMinValue(arr) {
11234
11259
  }
11235
11260
 
11236
11261
  var array = arr.concat(values);
11237
- return containsDates(array) ? new Date(Math.min.apply(Math, _toConsumableArray(array))) : Math.min.apply(Math, _toConsumableArray(array));
11262
+ return containsDates(array) ? new Date(Math.min.apply(Math, _toConsumableArray(array))) // Dates will be coerced to numbers
11263
+ : Math.min.apply(Math, _toConsumableArray(array));
11238
11264
  }
11265
+ //# sourceMappingURL=collection.js.map
11239
11266
 
11240
11267
  /***/ }),
11241
11268
 
@@ -11248,9 +11275,7 @@ function getMinValue(arr) {
11248
11275
  "use strict";
11249
11276
  __webpack_require__.r(__webpack_exports__);
11250
11277
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
11251
- /* harmony export */ "baseProps": () => (/* binding */ baseProps),
11252
- /* harmony export */ "dataProps": () => (/* binding */ dataProps),
11253
- /* harmony export */ "primitiveProps": () => (/* binding */ primitiveProps)
11278
+ /* harmony export */ "CommonProps": () => (/* binding */ CommonProps)
11254
11279
  /* harmony export */ });
11255
11280
  /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
11256
11281
  /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__);
@@ -11258,26 +11283,28 @@ __webpack_require__.r(__webpack_exports__);
11258
11283
 
11259
11284
 
11260
11285
  var dataProps = {
11286
+ // @ts-expect-error TODO: synchronize the type with this PropTypes
11261
11287
  categories: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)), prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
11262
11288
  x: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)),
11263
11289
  y: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string))
11264
11290
  })]),
11291
+ // @ts-expect-error TODO: synchronize the type with this PropTypes
11265
11292
  data: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().array), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object)]),
11266
11293
  dataComponent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().element),
11267
11294
  disableInlineStyles: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
11268
11295
  labelComponent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().element),
11269
11296
  labels: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().func), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().array)]),
11270
11297
  samples: _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative,
11271
- sortKey: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().func), _prop_types__WEBPACK_IMPORTED_MODULE_1__.allOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.integer, _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string))]),
11298
+ sortKey: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().func), _prop_types__WEBPACK_IMPORTED_MODULE_1__.allOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.integer, _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string.isRequired))]),
11272
11299
  sortOrder: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(["ascending", "descending"]),
11273
11300
  style: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
11274
11301
  parent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
11275
11302
  data: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
11276
11303
  labels: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object)
11277
11304
  }),
11278
- x: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().func), _prop_types__WEBPACK_IMPORTED_MODULE_1__.allOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.integer, _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string))]),
11279
- y: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().func), _prop_types__WEBPACK_IMPORTED_MODULE_1__.allOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.integer, _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string))]),
11280
- y0: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().func), _prop_types__WEBPACK_IMPORTED_MODULE_1__.allOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.integer, _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string))])
11305
+ x: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().func), _prop_types__WEBPACK_IMPORTED_MODULE_1__.allOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.integer, _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string.isRequired))]),
11306
+ y: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().func), _prop_types__WEBPACK_IMPORTED_MODULE_1__.allOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.integer, _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string.isRequired))]),
11307
+ y0: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().func), _prop_types__WEBPACK_IMPORTED_MODULE_1__.allOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.integer, _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string.isRequired))])
11281
11308
  };
11282
11309
  var baseProps = {
11283
11310
  animate: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object)]),
@@ -11286,14 +11313,17 @@ var baseProps = {
11286
11313
  x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain,
11287
11314
  y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain
11288
11315
  })]),
11316
+ // @ts-expect-error TODO: synchronize the type with this PropTypes
11289
11317
  maxDomain: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), prop_types__WEBPACK_IMPORTED_MODULE_0___default().instanceOf(Date), prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
11290
11318
  x: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), prop_types__WEBPACK_IMPORTED_MODULE_0___default().instanceOf(Date)]),
11291
11319
  y: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), prop_types__WEBPACK_IMPORTED_MODULE_0___default().instanceOf(Date)])
11292
11320
  })]),
11321
+ // @ts-expect-error TODO: synchronize the type with this PropTypes
11293
11322
  minDomain: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), prop_types__WEBPACK_IMPORTED_MODULE_0___default().instanceOf(Date), prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
11294
11323
  x: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), prop_types__WEBPACK_IMPORTED_MODULE_0___default().instanceOf(Date)]),
11295
11324
  y: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), prop_types__WEBPACK_IMPORTED_MODULE_0___default().instanceOf(Date)])
11296
11325
  })]),
11326
+ // @ts-expect-error TODO: synchronize the type with this PropTypes
11297
11327
  domainPadding: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
11298
11328
  x: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().number))]),
11299
11329
  y: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().number))])
@@ -11304,6 +11334,7 @@ var baseProps = {
11304
11334
  eventKey: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().array), _prop_types__WEBPACK_IMPORTED_MODULE_1__.allOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.integer, _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)]),
11305
11335
  eventHandlers: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object)
11306
11336
  })),
11337
+ // @ts-expect-error TODO: synchronize the type with this PropTypes
11307
11338
  externalEventMutations: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
11308
11339
  callback: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
11309
11340
  childName: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().array)]),
@@ -11314,10 +11345,12 @@ var baseProps = {
11314
11345
  groupComponent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().element),
11315
11346
  height: _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative,
11316
11347
  name: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
11348
+ // @ts-expect-error TODO: synchronize the type with this PropTypes
11317
11349
  origin: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
11318
11350
  x: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
11319
11351
  y: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number)
11320
11352
  }),
11353
+ // @ts-expect-error TODO: synchronize the type with this PropTypes
11321
11354
  padding: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
11322
11355
  top: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
11323
11356
  bottom: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
@@ -11326,17 +11359,19 @@ var baseProps = {
11326
11359
  })]),
11327
11360
  polar: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
11328
11361
  range: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.domain, prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
11329
- x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain,
11330
- y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain
11362
+ x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain.isRequired,
11363
+ y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain.isRequired
11331
11364
  })]),
11332
11365
  scale: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.scale, prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
11333
- x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.scale,
11334
- y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.scale
11366
+ x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.scale.isRequired,
11367
+ y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.scale.isRequired
11335
11368
  })]),
11369
+ // @ts-expect-error TODO: synchronize the type with this PropTypes
11336
11370
  sharedEvents: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
11337
11371
  events: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().array),
11338
11372
  getEventState: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func)
11339
11373
  }),
11374
+ // @ts-expect-error TODO: synchronize the type with this PropTypes
11340
11375
  singleQuadrantDomainPadding: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool), prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
11341
11376
  x: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)]),
11342
11377
  y: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)])
@@ -11356,6 +11391,7 @@ var primitiveProps = {
11356
11391
  events: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
11357
11392
  id: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func)]),
11358
11393
  index: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)]),
11394
+ // @ts-expect-error TODO: synchronize the type with this PropTypes
11359
11395
  origin: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
11360
11396
  x: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
11361
11397
  y: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number)
@@ -11371,6 +11407,12 @@ var primitiveProps = {
11371
11407
  tabIndex: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func)]),
11372
11408
  transform: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)
11373
11409
  };
11410
+ var CommonProps = {
11411
+ dataProps: dataProps,
11412
+ baseProps: baseProps,
11413
+ primitiveProps: primitiveProps
11414
+ };
11415
+ //# sourceMappingURL=common-props.js.map
11374
11416
 
11375
11417
  /***/ }),
11376
11418
 
@@ -11884,6 +11926,7 @@ function isDataComponent(component) {
11884
11926
  var whitelist = ["area", "bar", "boxplot", "candlestick", "errorbar", "group", "histogram", "line", "pie", "scatter", "stack", "voronoi"];
11885
11927
  return lodash_includes__WEBPACK_IMPORTED_MODULE_2___default()(whitelist, role);
11886
11928
  }
11929
+ //# sourceMappingURL=data.js.map
11887
11930
 
11888
11931
  /***/ }),
11889
11932
 
@@ -12006,6 +12049,7 @@ function discreteTransitions() {
12006
12049
  }
12007
12050
  };
12008
12051
  }
12052
+ //# sourceMappingURL=default-transitions.js.map
12009
12053
 
12010
12054
  /***/ }),
12011
12055
 
@@ -12107,8 +12151,9 @@ function getDomainPadding(props, axis) {
12107
12151
  }
12108
12152
 
12109
12153
  function getFlatData(dataset, axis) {
12154
+ var axisKey = "_".concat(axis);
12110
12155
  return lodash_flatten__WEBPACK_IMPORTED_MODULE_5___default()(dataset).map(function (datum) {
12111
- return datum["_".concat(axis)] && datum["_".concat(axis)][1] !== undefined ? datum["_".concat(axis)][1] : datum["_".concat(axis)];
12156
+ return datum[axisKey] && datum[axisKey][1] !== undefined ? datum[axisKey][1] : datum[axisKey];
12112
12157
  });
12113
12158
  }
12114
12159
 
@@ -12173,7 +12218,9 @@ function padDomain(domain, props, axis) {
12173
12218
  if (addsQuadrants && singleQuadrantDomainPadding !== false) {
12174
12219
  // Naive initial padding calculation
12175
12220
  var initialPadding = {
12221
+ // @ts-expect-error `max/min` might be dates
12176
12222
  left: Math.abs(max - min) * padding.left / rangeExtent,
12223
+ // @ts-expect-error `max/min` might be dates
12177
12224
  right: Math.abs(max - min) * padding.right / rangeExtent
12178
12225
  }; // Adjust the domain by the initial padding
12179
12226
 
@@ -12458,6 +12505,7 @@ function isDomainComponent(component) {
12458
12505
  var whitelist = ["area", "axis", "bar", "boxplot", "candlestick", "errorbar", "group", "histogram", "line", "pie", "scatter", "stack", "voronoi"];
12459
12506
  return lodash_includes__WEBPACK_IMPORTED_MODULE_1___default()(whitelist, role);
12460
12507
  }
12508
+ //# sourceMappingURL=domain.js.map
12461
12509
 
12462
12510
  /***/ }),
12463
12511
 
@@ -12526,15 +12574,16 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToAr
12526
12574
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
12527
12575
 
12528
12576
  var GLOBAL_EVENT_REGEX = /^onGlobal(.*)$/;
12577
+
12529
12578
  /* Returns all own and shared events that should be attached to a single target element,
12530
12579
  * i.e. an individual bar specified by target: "data", eventKey: [index].
12531
12580
  * Returned events are scoped to the appropriate state. Either that of the component itself
12532
12581
  * (i.e. VictoryBar) in the case of own events, or that of the parent component
12533
12582
  * (i.e. VictoryChart) in the case of shared events
12534
12583
  */
12535
- // eslint-disable-next-line max-params,no-shadow
12536
-
12537
- function getEvents(props, target, eventKey, getScopedEvents) {
12584
+ // eslint-disable-next-line max-params
12585
+ function getEvents(props, target, eventKey, // eslint-disable-next-line no-shadow
12586
+ getScopedEvents) {
12538
12587
  var _this = this;
12539
12588
 
12540
12589
  // Returns all events that apply to a particular target element
@@ -12757,24 +12806,27 @@ function getScopedEvents(events, namespace, childType, baseProps) {
12757
12806
  return memo;
12758
12807
  }, {});
12759
12808
  }
12760
- /* Returns a partially applied event handler for a specific target element
12809
+ /*
12810
+ * Returns a partially applied event handler for a specific target element
12761
12811
  * This allows event handlers to have access to props controlling each element
12762
12812
  */
12763
12813
 
12764
12814
  function getPartialEvents(events, eventKey, childProps) {
12765
- return events ? lodash_keys__WEBPACK_IMPORTED_MODULE_0___default()(events).reduce(function (memo, eventName) {
12815
+ if (!events) return {};
12816
+ return lodash_keys__WEBPACK_IMPORTED_MODULE_0___default()(events).reduce(function (memo, eventName) {
12766
12817
  var appliedEvent = function (evt) {
12767
12818
  return events[eventName](evt, childProps, eventKey, eventName);
12768
12819
  };
12769
12820
 
12770
12821
  memo[eventName] = appliedEvent;
12771
12822
  return memo;
12772
- }, {}) : {};
12823
+ }, {});
12773
12824
  }
12825
+
12774
12826
  /* Returns the property of the state object corresponding to event changes for
12775
12827
  * a particular element
12776
12828
  */
12777
-
12829
+ // eslint-disable-next-line max-params
12778
12830
  function getEventState(eventKey, namespace, childType) {
12779
12831
  // Mandatory usage: `getEventState.bind(this)`
12780
12832
  // eslint-disable-next-line no-invalid-this
@@ -12959,6 +13011,7 @@ var emulateReactEvent = function (event) {
12959
13011
  nativeEvent: event
12960
13012
  });
12961
13013
  };
13014
+ //# sourceMappingURL=events.js.map
12962
13015
 
12963
13016
  /***/ }),
12964
13017
 
@@ -13040,7 +13093,7 @@ function getPolarRange(props, axis) {
13040
13093
 
13041
13094
  /**
13042
13095
  * creates an object with some keys excluded
13043
- * replacement for lodash.omit for performance. does not mimick the entire lodash.omit api
13096
+ * replacement for lodash.omit for performance. does not mimic the entire lodash.omit api
13044
13097
  * @param {Object} originalObject: created object will be based on this object
13045
13098
  * @param {Array<String>} ks: an array of keys to omit from the new object
13046
13099
  * @returns {Object} new object with same properties as originalObject
@@ -13053,6 +13106,7 @@ function omit(originalObject) {
13053
13106
  var newObject = {};
13054
13107
 
13055
13108
  for (var key in originalObject) {
13109
+ // @ts-expect-error String is not assignable to Key
13056
13110
  if (ks.indexOf(key) >= 0) {
13057
13111
  continue;
13058
13112
  }
@@ -13285,7 +13339,9 @@ function reduceChildren(children, iteratee) {
13285
13339
  var parentProps = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
13286
13340
  var initialMemo = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];
13287
13341
  var combine = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : function (memo, item) {
13288
- return memo.concat(item);
13342
+ return (// @ts-expect-error These defaults are hard to type
13343
+ memo.concat(item)
13344
+ );
13289
13345
  };
13290
13346
  var sharedProps = ["data", "domain", "categories", "polar", "startAngle", "endAngle", "minDomain", "maxDomain", "horizontal"];
13291
13347
 
@@ -13329,7 +13385,7 @@ function reduceChildren(children, iteratee) {
13329
13385
  /**
13330
13386
  * @param {Object} props: the props object
13331
13387
  * @returns {Boolean} returns true if the props object contains `horizontal: true` of if any
13332
- * children or nested children are hoizontal
13388
+ * children or nested children are horizontal
13333
13389
  */
13334
13390
 
13335
13391
  function isHorizontal(props) {
@@ -13352,6 +13408,7 @@ function isHorizontal(props) {
13352
13408
 
13353
13409
  return traverseChildren(react__WEBPACK_IMPORTED_MODULE_6___default().Children.toArray(props.children));
13354
13410
  }
13411
+ //# sourceMappingURL=helpers.js.map
13355
13412
 
13356
13413
  /***/ }),
13357
13414
 
@@ -13395,15 +13452,16 @@ function isMap(x) {
13395
13452
  return !!(x && x[IMMUTABLE_MAP]);
13396
13453
  }
13397
13454
  function shallowToJS(x, whitelist) {
13398
- return isIterable(x) ? x.reduce(function (prev, curr, key) {
13455
+ return isIterable(x) ? x.reduce(function (result, curr, key) {
13399
13456
  if (whitelist && whitelist[key]) {
13400
13457
  curr = shallowToJS(curr);
13401
13458
  }
13402
13459
 
13403
- prev[key] = curr;
13404
- return prev;
13460
+ result[key] = curr;
13461
+ return result;
13405
13462
  }, isList(x) ? [] : {}) : x;
13406
13463
  }
13464
+ //# sourceMappingURL=immutable.js.map
13407
13465
 
13408
13466
  /***/ }),
13409
13467
 
@@ -13661,6 +13719,7 @@ function getProps(props, index) {
13661
13719
  var tooltipTheme = theme && theme.tooltip || {};
13662
13720
  return lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, labelProps, _helpers__WEBPACK_IMPORTED_MODULE_1__.omit(tooltipTheme, ["style"]));
13663
13721
  }
13722
+ //# sourceMappingURL=label-helpers.js.map
13664
13723
 
13665
13724
  /***/ }),
13666
13725
 
@@ -13686,6 +13745,7 @@ function warn(message) {
13686
13745
  }
13687
13746
  }
13688
13747
  }
13748
+ //# sourceMappingURL=log.js.map
13689
13749
 
13690
13750
  /***/ }),
13691
13751
 
@@ -13713,12 +13773,10 @@ __webpack_require__.r(__webpack_exports__);
13713
13773
  /* harmony import */ var lodash_isRegExp__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isRegExp__WEBPACK_IMPORTED_MODULE_0__);
13714
13774
  /* harmony import */ var lodash_find__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/find */ "../../../node_modules/lodash/find.js");
13715
13775
  /* harmony import */ var lodash_find__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_find__WEBPACK_IMPORTED_MODULE_1__);
13716
- /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/isFunction */ "../../../node_modules/lodash/isFunction.js");
13717
- /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_2__);
13718
- /* harmony import */ var _log__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./log */ "../../victory-core/es/victory-util/log.js");
13719
- /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
13720
- /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);
13721
-
13776
+ /* harmony import */ var _log__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./log */ "../../victory-core/es/victory-util/log.js");
13777
+ /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
13778
+ /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__);
13779
+ /* harmony import */ var _scale__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./scale */ "../../victory-core/es/victory-util/scale.js");
13722
13780
 
13723
13781
 
13724
13782
 
@@ -13726,6 +13784,8 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
13726
13784
 
13727
13785
 
13728
13786
 
13787
+
13788
+
13729
13789
  /**
13730
13790
  * Return a new validator based on `validator` but with the option to chain
13731
13791
  * `isRequired` onto the validation. This is nearly identical to how React
@@ -13733,30 +13793,30 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
13733
13793
  * @param {Function} validator Validation function.
13734
13794
  * @returns {Function} Validator with `isRequired` option.
13735
13795
  */
13736
-
13737
13796
  var makeChainable = function (validator) {
13738
- /* eslint-disable max-params */
13739
- var _chainable = function (isRequired, props, propName, componentName) {
13740
- var value = props[propName];
13797
+ var createChainable = function (isRequired) {
13798
+ return function (props, propName, componentName) {
13799
+ var value = props[propName];
13741
13800
 
13742
- if (value === undefined || value === null) {
13743
- if (isRequired) {
13744
- return new Error("Required `".concat(propName, "` was not specified in `").concat(componentName, "`."));
13745
- }
13801
+ if (value === undefined || value === null) {
13802
+ if (isRequired) {
13803
+ return new Error("Required `".concat(propName, "` was not specified in `").concat(componentName, "`."));
13804
+ }
13746
13805
 
13747
- return null;
13748
- }
13806
+ return null;
13807
+ }
13749
13808
 
13750
- for (var _len = arguments.length, rest = new Array(_len > 4 ? _len - 4 : 0), _key = 4; _key < _len; _key++) {
13751
- rest[_key - 4] = arguments[_key];
13752
- }
13809
+ for (var _len = arguments.length, rest = new Array(_len > 3 ? _len - 3 : 0), _key = 3; _key < _len; _key++) {
13810
+ rest[_key - 3] = arguments[_key];
13811
+ }
13753
13812
 
13754
- return validator.apply(void 0, [props, propName, componentName].concat(rest));
13813
+ return validator.apply(void 0, [props, propName, componentName].concat(rest));
13814
+ };
13755
13815
  };
13756
13816
 
13757
- var chainable = _chainable.bind(null, false);
13758
-
13759
- chainable.isRequired = _chainable.bind(null, true);
13817
+ var chainable = Object.assign(createChainable(false), {
13818
+ isRequired: createChainable(true)
13819
+ });
13760
13820
  return chainable;
13761
13821
  };
13762
13822
 
@@ -13786,7 +13846,7 @@ var getConstructor = function (value) {
13786
13846
  };
13787
13847
  /**
13788
13848
  * Get the name of the constructor used to create `value`, using
13789
- * `Object.protoype.toString`. If the value is null or undefined, return
13849
+ * `Object.prototype.toString`. If the value is null or undefined, return
13790
13850
  * "null" or "undefined", respectively.
13791
13851
  * @param {*} value Instance to return the constructor name of.
13792
13852
  * @returns {String} Name of the constructor.
@@ -13816,10 +13876,11 @@ function deprecated(propType, explanation) {
13816
13876
  var value = props[propName];
13817
13877
 
13818
13878
  if (value !== null && value !== undefined) {
13819
- _log__WEBPACK_IMPORTED_MODULE_3__.warn("\"".concat(propName, "\" property of \"").concat(componentName, "\" has been deprecated ").concat(explanation));
13879
+ _log__WEBPACK_IMPORTED_MODULE_2__.warn("\"".concat(propName, "\" property of \"").concat(componentName, "\" has been deprecated ").concat(explanation));
13820
13880
  }
13821
13881
 
13822
- return prop_types__WEBPACK_IMPORTED_MODULE_4___default().checkPropTypes(_defineProperty({}, propName, propType), props, propName, componentName);
13882
+ prop_types__WEBPACK_IMPORTED_MODULE_3___default().checkPropTypes(_defineProperty({}, propName, propType), props, propName, componentName);
13883
+ return null;
13823
13884
  };
13824
13885
  }
13825
13886
  /**
@@ -13838,7 +13899,7 @@ function allOfType(validators) {
13838
13899
 
13839
13900
  return validators.reduce(function (result, validator) {
13840
13901
  return result || validator.apply(void 0, [props, propName, componentName].concat(rest));
13841
- }, undefined);
13902
+ }, null);
13842
13903
  });
13843
13904
  }
13844
13905
  /**
@@ -13852,7 +13913,7 @@ var nonNegative = makeChainable(function (props, propName, componentName) {
13852
13913
  return new Error("`".concat(propName, "` in `").concat(componentName, "` must be a non-negative number."));
13853
13914
  }
13854
13915
 
13855
- return undefined;
13916
+ return null;
13856
13917
  });
13857
13918
  /**
13858
13919
  * Check that the value is an integer.
@@ -13865,7 +13926,7 @@ var integer = makeChainable(function (props, propName, componentName) {
13865
13926
  return new Error("`".concat(propName, "` in `").concat(componentName, "` must be an integer."));
13866
13927
  }
13867
13928
 
13868
- return undefined;
13929
+ return null;
13869
13930
  });
13870
13931
  /**
13871
13932
  * Check that the value is greater than zero.
@@ -13878,7 +13939,7 @@ var greaterThanZero = makeChainable(function (props, propName, componentName) {
13878
13939
  return new Error("`".concat(propName, "` in `").concat(componentName, "` must be a number greater than zero."));
13879
13940
  }
13880
13941
 
13881
- return undefined;
13942
+ return null;
13882
13943
  });
13883
13944
  /**
13884
13945
  * Check that the value is an Array of two unique values.
@@ -13891,32 +13952,20 @@ var domain = makeChainable(function (props, propName, componentName) {
13891
13952
  return new Error("`".concat(propName, "` in `").concat(componentName, "` must be an array of two unique numeric values."));
13892
13953
  }
13893
13954
 
13894
- return undefined;
13955
+ return null;
13895
13956
  });
13896
13957
  /**
13897
13958
  * Check that the value looks like a d3 `scale` function.
13898
13959
  */
13899
13960
 
13900
13961
  var scale = makeChainable(function (props, propName, componentName) {
13901
- var supportedScaleStrings = ["linear", "time", "log", "sqrt"];
13902
-
13903
- var validScale = function (scl) {
13904
- if (lodash_isFunction__WEBPACK_IMPORTED_MODULE_2___default()(scl)) {
13905
- return lodash_isFunction__WEBPACK_IMPORTED_MODULE_2___default()(scl.copy) && lodash_isFunction__WEBPACK_IMPORTED_MODULE_2___default()(scl.domain) && lodash_isFunction__WEBPACK_IMPORTED_MODULE_2___default()(scl.range);
13906
- } else if (typeof scl === "string") {
13907
- return supportedScaleStrings.indexOf(scl) !== -1;
13908
- }
13909
-
13910
- return false;
13911
- };
13912
-
13913
13962
  var value = props[propName];
13914
13963
 
13915
- if (!validScale(value)) {
13964
+ if (!_scale__WEBPACK_IMPORTED_MODULE_4__.validScale(value)) {
13916
13965
  return new Error("`".concat(propName, "` in `").concat(componentName, "` must be a d3 scale."));
13917
13966
  }
13918
13967
 
13919
- return undefined;
13968
+ return null;
13920
13969
  });
13921
13970
  /**
13922
13971
  * Check that an array contains items of the same type.
@@ -13930,7 +13979,7 @@ var homogeneousArray = makeChainable(function (props, propName, componentName) {
13930
13979
  }
13931
13980
 
13932
13981
  if (values.length < 2) {
13933
- return undefined;
13982
+ return null;
13934
13983
  }
13935
13984
 
13936
13985
  var comparisonConstructor = getConstructor(values[0]);
@@ -13945,7 +13994,7 @@ var homogeneousArray = makeChainable(function (props, propName, componentName) {
13945
13994
  return new Error("Expected `".concat(propName, "` in `").concat(componentName, "` to be a ") + "homogeneous array, but found types `".concat(constructorName, "` and ") + "`".concat(otherConstructorName, "`."));
13946
13995
  }
13947
13996
 
13948
- return undefined;
13997
+ return null;
13949
13998
  });
13950
13999
  /**
13951
14000
  * Check that array prop length matches props.data.length
@@ -13956,7 +14005,7 @@ var matchDataLength = makeChainable(function (props, propName) {
13956
14005
  return new Error("Length of data and ".concat(propName, " arrays must match."));
13957
14006
  }
13958
14007
 
13959
- return undefined;
14008
+ return null;
13960
14009
  });
13961
14010
  /**
13962
14011
  * Check that the value is a regular expression
@@ -13967,8 +14016,9 @@ var regExp = makeChainable(function (props, propName, componentName) {
13967
14016
  return new Error("`".concat(propName, "` in `").concat(componentName, "` must be a regular expression."));
13968
14017
  }
13969
14018
 
13970
- return undefined;
14019
+ return null;
13971
14020
  });
14021
+ //# sourceMappingURL=prop-types.js.map
13972
14022
 
13973
14023
  /***/ }),
13974
14024
 
@@ -13986,7 +14036,8 @@ __webpack_require__.r(__webpack_exports__);
13986
14036
  /* harmony export */ "getScaleFromName": () => (/* binding */ getScaleFromName),
13987
14037
  /* harmony export */ "getScaleFromProps": () => (/* binding */ getScaleFromProps),
13988
14038
  /* harmony export */ "getScaleType": () => (/* binding */ getScaleType),
13989
- /* harmony export */ "getType": () => (/* binding */ getType)
14039
+ /* harmony export */ "getType": () => (/* binding */ getType),
14040
+ /* harmony export */ "validScale": () => (/* binding */ validScale)
13990
14041
  /* harmony export */ });
13991
14042
  /* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isPlainObject */ "../../../node_modules/lodash/isPlainObject.js");
13992
14043
  /* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0__);
@@ -14004,8 +14055,9 @@ __webpack_require__.r(__webpack_exports__);
14004
14055
 
14005
14056
 
14006
14057
 
14007
- var supportedScaleStrings = ["linear", "time", "log", "sqrt"]; // Private Functions
14058
+ var supportedScaleStrings = ["linear", "time", "log", "sqrt"];
14008
14059
 
14060
+ // Private Functions
14009
14061
  function toNewName(scale) {
14010
14062
  // d3 scale changed the naming scheme for scale from "linear" -> "scaleLinear" etc.
14011
14063
  var capitalize = function (s) {
@@ -14075,7 +14127,13 @@ function getScaleTypeFromData(props, axis) {
14075
14127
 
14076
14128
 
14077
14129
  function getScaleFromName(name) {
14078
- return validScale(name) ? victory_vendor_d3_scale__WEBPACK_IMPORTED_MODULE_5__[toNewName(name)]() : victory_vendor_d3_scale__WEBPACK_IMPORTED_MODULE_6__["default"]();
14130
+ if (validScale(name)) {
14131
+ var methodName = toNewName(name); // @ts-expect-error scaleTime is not directly compatible with our D3Scale definition
14132
+
14133
+ return victory_vendor_d3_scale__WEBPACK_IMPORTED_MODULE_5__[methodName]();
14134
+ }
14135
+
14136
+ return victory_vendor_d3_scale__WEBPACK_IMPORTED_MODULE_6__["default"]();
14079
14137
  }
14080
14138
  function getBaseScale(props, axis) {
14081
14139
  var scale = getScaleFromProps(props, axis);
@@ -14085,7 +14143,7 @@ function getBaseScale(props, axis) {
14085
14143
  }
14086
14144
 
14087
14145
  var defaultScale = getScaleFromDomain(props, axis) || getScaleTypeFromData(props, axis);
14088
- return victory_vendor_d3_scale__WEBPACK_IMPORTED_MODULE_5__[toNewName(defaultScale)]();
14146
+ return getScaleFromName(defaultScale);
14089
14147
  }
14090
14148
  function getDefaultScale() {
14091
14149
  return victory_vendor_d3_scale__WEBPACK_IMPORTED_MODULE_6__["default"]();
@@ -14098,7 +14156,7 @@ function getScaleFromProps(props, axis) {
14098
14156
  var scale = props.scale[axis] || props.scale;
14099
14157
 
14100
14158
  if (validScale(scale)) {
14101
- return lodash_isFunction__WEBPACK_IMPORTED_MODULE_1___default()(scale) ? scale : victory_vendor_d3_scale__WEBPACK_IMPORTED_MODULE_5__[toNewName(scale)]();
14159
+ return lodash_isFunction__WEBPACK_IMPORTED_MODULE_1___default()(scale) ? scale : getScaleFromName(scale);
14102
14160
  }
14103
14161
 
14104
14162
  return undefined;
@@ -14133,6 +14191,7 @@ function getType(scale) {
14133
14191
  })[0];
14134
14192
  return scaleType ? scaleType.name : undefined;
14135
14193
  }
14194
+ //# sourceMappingURL=scale.js.map
14136
14195
 
14137
14196
  /***/ }),
14138
14197
 
@@ -14204,6 +14263,7 @@ function getColorScale(name) {
14204
14263
  };
14205
14264
  return name ? scales[name] : scales.grayscale;
14206
14265
  }
14266
+ //# sourceMappingURL=style.js.map
14207
14267
 
14208
14268
  /***/ }),
14209
14269
 
@@ -14408,8 +14468,10 @@ var _getSizeWithRotate = function (axisSize, dependentSize, angle) {
14408
14468
 
14409
14469
 
14410
14470
  var convertLengthToPixels = function (length, fontSize) {
14411
- var attribute = length.match(/[a-zA-Z%]+/) && length.match(/[a-zA-Z%]+/)[0];
14412
- var value = length.match(/[0-9.,]+/);
14471
+ var _length$match;
14472
+
14473
+ var attribute = (_length$match = length.match(/[a-zA-Z%]+/)) === null || _length$match === void 0 ? void 0 : _length$match[0];
14474
+ var value = Number(length.match(/[0-9.,]+/));
14413
14475
  var result;
14414
14476
 
14415
14477
  if (!attribute) {
@@ -14475,9 +14537,9 @@ var _approximateTextHeightInternal = function (text, style) {
14475
14537
  var height = containsCaps ? lineStyle.fontSize * coefficients.lineCapitalCoef : lineStyle.fontSize;
14476
14538
  return total + lineStyle.lineHeight * height;
14477
14539
  }, 0);
14478
- }; // Stubbable implementation.
14479
-
14540
+ };
14480
14541
 
14542
+ // Stubbable implementation.
14481
14543
  var _approximateTextSizeInternal = {
14482
14544
  impl: function (text, style) {
14483
14545
  var angle = Array.isArray(style) ? style[0] && style[0].angle : style && style.angle;
@@ -14496,7 +14558,7 @@ var _approximateTextSizeInternal = {
14496
14558
  };
14497
14559
  /**
14498
14560
  * Predict text size by font params.
14499
- * @param {string} text Content for width calculation.
14561
+ * @param {string|string[]} text Content for width calculation.
14500
14562
  * @param {Object} style Text styles, ,fontFamily, fontSize, etc.
14501
14563
  * @param {string} style.fontFamily Text fontFamily.
14502
14564
  * @param {(number|string)} style.fontSize Text fontSize.
@@ -14509,6 +14571,7 @@ var _approximateTextSizeInternal = {
14509
14571
  var approximateTextSize = function (text, style) {
14510
14572
  return _approximateTextSizeInternal.impl(text, style);
14511
14573
  };
14574
+ //# sourceMappingURL=textsize.js.map
14512
14575
 
14513
14576
  /***/ }),
14514
14577
 
@@ -14539,6 +14602,7 @@ var TimerContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cre
14539
14602
  });
14540
14603
  TimerContext.displayName = "TimerContext";
14541
14604
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (TimerContext);
14605
+ //# sourceMappingURL=timer-context.js.map
14542
14606
 
14543
14607
  /***/ }),
14544
14608
 
@@ -14641,6 +14705,7 @@ var Timer = /*#__PURE__*/function () {
14641
14705
  }();
14642
14706
 
14643
14707
 
14708
+ //# sourceMappingURL=timer.js.map
14644
14709
 
14645
14710
  /***/ }),
14646
14711
 
@@ -14731,7 +14796,7 @@ function getChildData(child) {
14731
14796
  }
14732
14797
  /**
14733
14798
  * If a parent component has animation enabled, calculate the transitions
14734
- * for any data of any child component that supports data transitions
14799
+ * for any data of any child component that supports data transitions.
14735
14800
  * Data transitions are defined as any two datasets where data nodes exist
14736
14801
  * in the first set and not the second, in the second and not the first,
14737
14802
  * or both.
@@ -14860,7 +14925,7 @@ function getChildPropsOnExit(animate, child, data, exitingNodes, cb) {
14860
14925
 
14861
14926
  if (exitingNodes) {
14862
14927
  // After the exit transition occurs, trigger the animations for
14863
- // nodes that are neither exiting or entering.
14928
+ // nodes that are neither exiting nor entering.
14864
14929
  animate.onEnd = cb;
14865
14930
  var before = animate.onExit && animate.onExit.before ? animate.onExit.before : (lodash_identity__WEBPACK_IMPORTED_MODULE_1___default()); // If nodes need to exit, transform them with the provided onExit.before function.
14866
14931
 
@@ -14930,7 +14995,7 @@ function getChildPropsOnEnter(animate, data, enteringNodes, cb) {
14930
14995
  * and its index in the parent's children array.
14931
14996
  *
14932
14997
  * In particular, this will include an `animate` object that is set appropriately
14933
- * so that each child will be synchoronized for each stage of a transition
14998
+ * so that each child will be synchronized for each stage of a transition
14934
14999
  * animation. It will also include a transformed `data` object, where each datum
14935
15000
  * is transformed by `animate.onExit` and `animate.onEnter` `before` and `after`
14936
15001
  * functions.
@@ -15075,6 +15140,7 @@ function getTransitionPropsFactory(props, state, setState) {
15075
15140
  };
15076
15141
  };
15077
15142
  }
15143
+ //# sourceMappingURL=transitions.js.map
15078
15144
 
15079
15145
  /***/ }),
15080
15146
 
@@ -15113,7 +15179,7 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
15113
15179
 
15114
15180
  /*
15115
15181
  USER_PROPS_SAFELIST is to contain any string deemed safe for user props.
15116
- The startsWidth array will contain the start of any accepted user-prop that
15182
+ The startsWidth array will contain the start of any accepted user-prop that
15117
15183
  starts with these characters.
15118
15184
  The exactMatch will contain a list of exact prop names that are accepted.
15119
15185
  */
@@ -15122,6 +15188,7 @@ var USER_PROPS_SAFELIST = {
15122
15188
  startsWith: ["data-", "aria-"],
15123
15189
  exactMatch: []
15124
15190
  };
15191
+
15125
15192
  /**
15126
15193
  * doesPropStartWith: Function that takes a prop's key and runs it against all
15127
15194
  * options in the USER_PROPS_SAFELIST and checks to see if it starts with any
@@ -15130,7 +15197,6 @@ var USER_PROPS_SAFELIST = {
15130
15197
  * @returns {Boolean}: returns true if the key starts with an option or false if
15131
15198
  * otherwise
15132
15199
  */
15133
-
15134
15200
  var doesPropStartWith = function (key) {
15135
15201
  var startsWith = false;
15136
15202
  USER_PROPS_SAFELIST.startsWith.forEach(function (starterString) {
@@ -15207,14 +15273,15 @@ var getSafeUserProps = function (props) {
15207
15273
  /**
15208
15274
  * Wraps a component and adds safe user props
15209
15275
  *
15210
- * @param {ReactNode} component: parent component
15276
+ * @param {ReactElement} component: parent component
15211
15277
  * @param {Object} props: props to be filtered
15212
- * @returns {ReactNode} modified component
15278
+ * @returns {ReactElement} modified component
15213
15279
  */
15214
15280
 
15215
15281
  var withSafeUserProps = function (component, props) {
15216
15282
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.cloneElement(component, getSafeUserProps(props));
15217
15283
  };
15284
+ //# sourceMappingURL=user-props.js.map
15218
15285
 
15219
15286
  /***/ }),
15220
15287