victory-polar-axis 36.5.0 → 36.5.3

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.
@@ -674,7 +674,7 @@ VictoryPolarAxis.defaultTransitions = {
674
674
  duration: 500
675
675
  }
676
676
  };
677
- VictoryPolarAxis.propTypes = _objectSpread(_objectSpread({}, victory_core__WEBPACK_IMPORTED_MODULE_4__.baseProps), {}, {
677
+ VictoryPolarAxis.propTypes = _objectSpread(_objectSpread({}, victory_core__WEBPACK_IMPORTED_MODULE_4__.CommonProps.baseProps), {}, {
678
678
  axisAngle: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().number),
679
679
  axisComponent: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().element),
680
680
  axisLabelComponent: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().element),
@@ -744,7 +744,7 @@ VictoryPolarAxis.getBaseProps = function (props) {
744
744
  };
745
745
 
746
746
  VictoryPolarAxis.expectedComponents = ["axisComponent", "circularAxisComponent", "groupComponent", "containerComponent", "tickComponent", "tickLabelComponent", "gridComponent", "circularGridComponent"];
747
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,victory_core__WEBPACK_IMPORTED_MODULE_13__["default"])(VictoryPolarAxis, options));
747
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,victory_core__WEBPACK_IMPORTED_MODULE_13__.addEvents)(VictoryPolarAxis, options));
748
748
 
749
749
  /***/ }),
750
750
 
@@ -7658,7 +7658,7 @@ var isInterpolatable = function (obj) {
7658
7658
  // component is only going to call the function (in which case it's
7659
7659
  // safely interpolatable) or if it's going to access special properties
7660
7660
  // (in which case our function generated from `interpolateFunction` will
7661
- // most likely cause an error. We could check for enumerable properties
7661
+ // most likely cause an error). We could check for enumerable properties
7662
7662
  // on the function object here to see if it's a "plain" function, but
7663
7663
  // let's just require that components prevent such function props from
7664
7664
  // being animated in the first place.
@@ -7823,16 +7823,18 @@ var victoryInterpolator = function (a, b) {
7823
7823
  }
7824
7824
 
7825
7825
  if (lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default()(a) || lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default()(b)) {
7826
- // @ts-expect-error These generics are tough, but they work ok?
7826
+ // @ts-expect-error These generics are tough, but they work :)
7827
7827
  return interpolateObject(a, b);
7828
7828
  }
7829
7829
 
7830
7830
  if (typeof a === "string" || typeof b === "string") {
7831
7831
  return interpolateString(a, b);
7832
- }
7832
+ } // @ts-expect-error These generics are tough, but they work :)
7833
+
7833
7834
 
7834
7835
  return (0,victory_vendor_d3_interpolate__WEBPACK_IMPORTED_MODULE_2__["default"])(a, b);
7835
7836
  };
7837
+ //# sourceMappingURL=util.js.map
7836
7838
 
7837
7839
  /***/ }),
7838
7840
 
@@ -8095,6 +8097,7 @@ VictoryAnimation.defaultProps = {
8095
8097
  easing: "quadInOut"
8096
8098
  };
8097
8099
  VictoryAnimation.contextType = _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_5__["default"];
8100
+ //# sourceMappingURL=victory-animation.js.map
8098
8101
 
8099
8102
  /***/ }),
8100
8103
 
@@ -8408,6 +8411,7 @@ VictoryContainer.defaultProps = {
8408
8411
  role: "img"
8409
8412
  };
8410
8413
  VictoryContainer.contextType = _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_12__["default"];
8414
+ //# sourceMappingURL=victory-container.js.map
8411
8415
 
8412
8416
  /***/ }),
8413
8417
 
@@ -9013,10 +9017,9 @@ VictoryLabel.propTypes = {
9013
9017
  inline: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().bool),
9014
9018
  labelPlacement: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOf(["parallel", "perpendicular", "vertical"]),
9015
9019
  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)]),
9016
- // @ts-expect-error "x is required in origin"
9017
9020
  origin: prop_types__WEBPACK_IMPORTED_MODULE_11___default().shape({
9018
- x: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_12__.nonNegative,
9019
- y: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_12__.nonNegative
9021
+ x: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_12__.nonNegative.isRequired,
9022
+ y: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_12__.nonNegative.isRequired
9020
9023
  }),
9021
9024
  polar: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().bool),
9022
9025
  renderInPortal: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().bool),
@@ -9050,6 +9053,7 @@ VictoryLabel.defaultProps = {
9050
9053
  // Magic number from d3.
9051
9054
  lineHeight: 1
9052
9055
  };
9056
+ //# sourceMappingURL=victory-label.js.map
9053
9057
 
9054
9058
  /***/ }),
9055
9059
 
@@ -9074,6 +9078,7 @@ __webpack_require__.r(__webpack_exports__);
9074
9078
  */
9075
9079
  var PortalContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createContext({});
9076
9080
  PortalContext.displayName = "PortalContext";
9081
+ //# sourceMappingURL=portal-context.js.map
9077
9082
 
9078
9083
  /***/ }),
9079
9084
 
@@ -9185,6 +9190,7 @@ Portal.propTypes = {
9185
9190
  viewBox: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().string),
9186
9191
  width: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_3__.nonNegative
9187
9192
  };
9193
+ //# sourceMappingURL=portal.js.map
9188
9194
 
9189
9195
  /***/ }),
9190
9196
 
@@ -9328,6 +9334,7 @@ VictoryPortal.defaultProps = {
9328
9334
  groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("g", null)
9329
9335
  };
9330
9336
  VictoryPortal.contextType = _portal_context__WEBPACK_IMPORTED_MODULE_5__.PortalContext;
9337
+ //# sourceMappingURL=victory-portal.js.map
9331
9338
 
9332
9339
  /***/ }),
9333
9340
 
@@ -9431,7 +9438,7 @@ var Arc = function (props) {
9431
9438
  clipPath: props.clipPath
9432
9439
  }));
9433
9440
  };
9434
- Arc.propTypes = _objectSpread(_objectSpread({}, _victory_util_common_props__WEBPACK_IMPORTED_MODULE_3__.primitiveProps), {}, {
9441
+ Arc.propTypes = _objectSpread(_objectSpread({}, _victory_util_common_props__WEBPACK_IMPORTED_MODULE_3__.CommonProps.primitiveProps), {}, {
9435
9442
  closedPath: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().bool),
9436
9443
  cx: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number),
9437
9444
  cy: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number),
@@ -9446,6 +9453,7 @@ Arc.defaultProps = {
9446
9453
  role: "presentation",
9447
9454
  shapeRendering: "auto"
9448
9455
  };
9456
+ //# sourceMappingURL=arc.js.map
9449
9457
 
9450
9458
  /***/ }),
9451
9459
 
@@ -9526,7 +9534,7 @@ var LineSegment = function (props) {
9526
9534
  clipPath: props.clipPath
9527
9535
  }));
9528
9536
  };
9529
- LineSegment.propTypes = _objectSpread(_objectSpread({}, _victory_util_common_props__WEBPACK_IMPORTED_MODULE_3__.primitiveProps), {}, {
9537
+ LineSegment.propTypes = _objectSpread(_objectSpread({}, _victory_util_common_props__WEBPACK_IMPORTED_MODULE_3__.CommonProps.primitiveProps), {}, {
9530
9538
  datum: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().any),
9531
9539
  lineComponent: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().element),
9532
9540
  x1: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number),
@@ -9539,6 +9547,7 @@ LineSegment.defaultProps = {
9539
9547
  role: "presentation",
9540
9548
  shapeRendering: "auto"
9541
9549
  };
9550
+ //# sourceMappingURL=line-segment.js.map
9542
9551
 
9543
9552
  /***/ }),
9544
9553
 
@@ -9581,6 +9590,7 @@ var Line = function (props) {
9581
9590
  vectorEffect: "non-scaling-stroke"
9582
9591
  }, rest));
9583
9592
  };
9593
+ //# sourceMappingURL=line.js.map
9584
9594
 
9585
9595
  /***/ }),
9586
9596
 
@@ -9617,6 +9627,7 @@ var Path = function (props) {
9617
9627
  // @ts-expect-error FIXME: "id cannot be a number"
9618
9628
  react__WEBPACK_IMPORTED_MODULE_0___default().createElement("path", rest);
9619
9629
  };
9630
+ //# sourceMappingURL=path.js.map
9620
9631
 
9621
9632
  /***/ }),
9622
9633
 
@@ -9659,6 +9670,7 @@ var Rect = function (props) {
9659
9670
  vectorEffect: "non-scaling-stroke"
9660
9671
  }, rest));
9661
9672
  };
9673
+ //# sourceMappingURL=rect.js.map
9662
9674
 
9663
9675
  /***/ }),
9664
9676
 
@@ -9702,6 +9714,7 @@ Text.propTypes = {
9702
9714
  desc: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string),
9703
9715
  title: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string)
9704
9716
  };
9717
+ //# sourceMappingURL=text.js.map
9705
9718
 
9706
9719
  /***/ }),
9707
9720
 
@@ -9726,6 +9739,7 @@ var TSpan = function (props) {
9726
9739
  react__WEBPACK_IMPORTED_MODULE_0___default().createElement("tspan", props)
9727
9740
  );
9728
9741
  };
9742
+ //# sourceMappingURL=tspan.js.map
9729
9743
 
9730
9744
  /***/ }),
9731
9745
 
@@ -10001,6 +10015,7 @@ var grayscale = {
10001
10015
  }
10002
10016
  }, baseProps)
10003
10017
  };
10018
+ //# sourceMappingURL=grayscale.js.map
10004
10019
 
10005
10020
  /***/ }),
10006
10021
 
@@ -10303,6 +10318,7 @@ var material = {
10303
10318
  }
10304
10319
  }, baseProps)
10305
10320
  };
10321
+ //# sourceMappingURL=material.js.map
10306
10322
 
10307
10323
  /***/ }),
10308
10324
 
@@ -10326,6 +10342,7 @@ var VictoryTheme = {
10326
10342
  grayscale: _grayscale__WEBPACK_IMPORTED_MODULE_0__.grayscale,
10327
10343
  material: _material__WEBPACK_IMPORTED_MODULE_1__.material
10328
10344
  };
10345
+ //# sourceMappingURL=victory-theme.js.map
10329
10346
 
10330
10347
  /***/ }),
10331
10348
 
@@ -10594,6 +10611,7 @@ VictoryTransition.propTypes = {
10594
10611
  children: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().node)
10595
10612
  };
10596
10613
  VictoryTransition.contextType = _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_10__["default"];
10614
+ //# sourceMappingURL=victory-transition.js.map
10597
10615
 
10598
10616
  /***/ }),
10599
10617
 
@@ -10606,26 +10624,26 @@ VictoryTransition.contextType = _victory_util_timer_context__WEBPACK_IMPORTED_MO
10606
10624
  "use strict";
10607
10625
  __webpack_require__.r(__webpack_exports__);
10608
10626
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
10609
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
10627
+ /* harmony export */ "addEvents": () => (/* binding */ addEvents)
10610
10628
  /* harmony export */ });
10611
- /* harmony import */ var lodash_difference__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/difference */ "../../../node_modules/lodash/difference.js");
10612
- /* harmony import */ var lodash_difference__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_difference__WEBPACK_IMPORTED_MODULE_0__);
10613
- /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/isNil */ "../../../node_modules/lodash/isNil.js");
10614
- /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_isNil__WEBPACK_IMPORTED_MODULE_1__);
10615
- /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/isEmpty */ "../../../node_modules/lodash/isEmpty.js");
10616
- /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2__);
10617
- /* harmony import */ var lodash_without__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/without */ "../../../node_modules/lodash/without.js");
10618
- /* harmony import */ var lodash_without__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_without__WEBPACK_IMPORTED_MODULE_3__);
10619
- /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash/pick */ "../../../node_modules/lodash/pick.js");
10620
- /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_pick__WEBPACK_IMPORTED_MODULE_4__);
10621
- /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! lodash/isFunction */ "../../../node_modules/lodash/isFunction.js");
10622
- /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_5__);
10623
- /* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! lodash/keys */ "../../../node_modules/lodash/keys.js");
10624
- /* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(lodash_keys__WEBPACK_IMPORTED_MODULE_6__);
10625
- /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js");
10626
- /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_7__);
10627
- /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/lodash/defaults.js");
10628
- /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_8__);
10629
+ /* harmony import */ var lodash_without__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/without */ "../../../node_modules/lodash/without.js");
10630
+ /* harmony import */ var lodash_without__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_without__WEBPACK_IMPORTED_MODULE_0__);
10631
+ /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/pick */ "../../../node_modules/lodash/pick.js");
10632
+ /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_pick__WEBPACK_IMPORTED_MODULE_1__);
10633
+ /* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/keys */ "../../../node_modules/lodash/keys.js");
10634
+ /* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_keys__WEBPACK_IMPORTED_MODULE_2__);
10635
+ /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/isNil */ "../../../node_modules/lodash/isNil.js");
10636
+ /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_isNil__WEBPACK_IMPORTED_MODULE_3__);
10637
+ /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash/isFunction */ "../../../node_modules/lodash/isFunction.js");
10638
+ /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_4__);
10639
+ /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! lodash/isEmpty */ "../../../node_modules/lodash/isEmpty.js");
10640
+ /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_5__);
10641
+ /* harmony import */ var lodash_difference__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! lodash/difference */ "../../../node_modules/lodash/difference.js");
10642
+ /* harmony import */ var lodash_difference__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(lodash_difference__WEBPACK_IMPORTED_MODULE_6__);
10643
+ /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/lodash/defaults.js");
10644
+ /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_7__);
10645
+ /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js");
10646
+ /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_8__);
10629
10647
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! react */ "react");
10630
10648
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_9__);
10631
10649
  /* harmony import */ var _events__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./events */ "../../victory-core/es/victory-util/events.js");
@@ -10678,13 +10696,14 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
10678
10696
 
10679
10697
 
10680
10698
 
10681
- // DISCLAIMER:
10699
+
10700
+
10701
+ // DISCLAIMER:
10682
10702
  // This file is not currently tested, and it is first on the list of files
10683
10703
  // to refactor in our current refactoring effort. Please do not make changes
10684
10704
  // to this file without manual testing and/or refactoring and adding tests.
10685
-
10686
10705
  var datumHasXandY = function (datum) {
10687
- return !lodash_isNil__WEBPACK_IMPORTED_MODULE_1___default()(datum._x) && !lodash_isNil__WEBPACK_IMPORTED_MODULE_1___default()(datum._y);
10706
+ return !lodash_isNil__WEBPACK_IMPORTED_MODULE_3___default()(datum._x) && !lodash_isNil__WEBPACK_IMPORTED_MODULE_3___default()(datum._y);
10688
10707
  }; // used for checking state changes. Expected components can be passed in via options
10689
10708
 
10690
10709
 
@@ -10696,44 +10715,45 @@ var defaultComponents = [{
10696
10715
  }, {
10697
10716
  name: "labels"
10698
10717
  }];
10699
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (function (WrappedComponent, options) {
10700
- return /*#__PURE__*/function (_WrappedComponent) {
10701
- _inherits(addEvents, _WrappedComponent);
10718
+ function addEvents(WrappedComponent) {
10719
+ var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
10720
+
10721
+ // @ts-expect-error "TS2545: A mixin class must have a constructor with a single rest parameter of type 'any[]'."
10722
+ var AddEventsMixin = /*#__PURE__*/function (_WrappedComponent) {
10723
+ _inherits(AddEventsMixin, _WrappedComponent);
10702
10724
 
10703
- var _super = _createSuper(addEvents);
10725
+ var _super = _createSuper(AddEventsMixin);
10704
10726
 
10705
- function addEvents(props) {
10727
+ function AddEventsMixin(props) {
10706
10728
  var _this;
10707
10729
 
10708
- _classCallCheck(this, addEvents);
10730
+ _classCallCheck(this, AddEventsMixin);
10709
10731
 
10710
10732
  _this = _super.call(this, props);
10711
- var getScopedEvents = _events__WEBPACK_IMPORTED_MODULE_11__.getScopedEvents.bind(_assertThisInitialized(_this));
10712
- var boundGetEvents = _events__WEBPACK_IMPORTED_MODULE_11__.getEvents.bind(_assertThisInitialized(_this));
10713
10733
  _this.state = {};
10734
+ _this.getEventState = _events__WEBPACK_IMPORTED_MODULE_11__.getEventState.bind(_assertThisInitialized(_this));
10735
+ _this.getScopedEvents = _events__WEBPACK_IMPORTED_MODULE_11__.getScopedEvents.bind(_assertThisInitialized(_this));
10714
10736
 
10715
10737
  _this.getEvents = function (p, target, eventKey) {
10716
- return boundGetEvents(p, target, eventKey, getScopedEvents);
10738
+ return _events__WEBPACK_IMPORTED_MODULE_11__.getEvents.call(_assertThisInitialized(_this), p, target, eventKey, _this.getScopedEvents);
10717
10739
  };
10718
10740
 
10719
- _this.getEventState = _events__WEBPACK_IMPORTED_MODULE_11__.getEventState.bind(_assertThisInitialized(_this));
10720
-
10721
- var calculatedValues = _this.getCalculatedValues(props);
10722
-
10723
- _this.cacheValues(calculatedValues);
10724
-
10725
- _this.externalMutations = _this.getExternalMutations(props);
10726
- _this.calculatedState = _this.getStateChanges(props);
10741
+ _this.externalMutations = _this.getExternalMutations(_this.props);
10742
+ _this.calculatedState = _this.getStateChanges(_this.props);
10727
10743
  _this.globalEvents = {};
10728
10744
  _this.prevGlobalEventKeys = [];
10729
10745
  _this.boundGlobalEvents = {};
10746
+
10747
+ _this.cacheValues(_this.getCalculatedValues(props));
10748
+
10730
10749
  return _this;
10731
10750
  }
10732
10751
 
10733
- _createClass(addEvents, [{
10752
+ _createClass(AddEventsMixin, [{
10734
10753
  key: "shouldComponentUpdate",
10735
10754
  value: function shouldComponentUpdate(nextProps) {
10736
- var externalMutations = this.getExternalMutations(nextProps);
10755
+ var externalMutations = this.getExternalMutations(nextProps); // @ts-expect-error "Property 'animating' does not exist on type EventMixinCommonProps"
10756
+
10737
10757
  var animating = this.props.animating || this.props.animate;
10738
10758
  var newMutation = !react_fast_compare__WEBPACK_IMPORTED_MODULE_10___default()(externalMutations, this.externalMutations);
10739
10759
 
@@ -10763,7 +10783,7 @@ var defaultComponents = [{
10763
10783
  value: function componentDidMount() {
10764
10784
  var _this2 = this;
10765
10785
 
10766
- var globalEventKeys = lodash_keys__WEBPACK_IMPORTED_MODULE_6___default()(this.globalEvents);
10786
+ var globalEventKeys = lodash_keys__WEBPACK_IMPORTED_MODULE_2___default()(this.globalEvents);
10767
10787
 
10768
10788
  globalEventKeys.forEach(function (key) {
10769
10789
  return _this2.addGlobalListener(key);
@@ -10778,15 +10798,15 @@ var defaultComponents = [{
10778
10798
  var calculatedState = this.getStateChanges(prevProps);
10779
10799
  this.calculatedState = calculatedState;
10780
10800
 
10781
- var globalEventKeys = lodash_keys__WEBPACK_IMPORTED_MODULE_6___default()(this.globalEvents);
10801
+ var globalEventKeys = lodash_keys__WEBPACK_IMPORTED_MODULE_2___default()(this.globalEvents);
10782
10802
 
10783
- var removedGlobalEventKeys = lodash_difference__WEBPACK_IMPORTED_MODULE_0___default()(this.prevGlobalEventKeys, globalEventKeys);
10803
+ var removedGlobalEventKeys = lodash_difference__WEBPACK_IMPORTED_MODULE_6___default()(this.prevGlobalEventKeys, globalEventKeys);
10784
10804
 
10785
10805
  removedGlobalEventKeys.forEach(function (key) {
10786
10806
  return _this3.removeGlobalListener(key);
10787
10807
  });
10788
10808
 
10789
- var addedGlobalEventKeys = lodash_difference__WEBPACK_IMPORTED_MODULE_0___default()(globalEventKeys, this.prevGlobalEventKeys);
10809
+ var addedGlobalEventKeys = lodash_difference__WEBPACK_IMPORTED_MODULE_6___default()(globalEventKeys, this.prevGlobalEventKeys);
10790
10810
 
10791
10811
  addedGlobalEventKeys.forEach(function (key) {
10792
10812
  return _this3.addGlobalListener(key);
@@ -10832,12 +10852,11 @@ var defaultComponents = [{
10832
10852
  }
10833
10853
 
10834
10854
  var getState = function (key, type) {
10835
- var result = lodash_defaults__WEBPACK_IMPORTED_MODULE_8___default()({}, _this6.getEventState(key, type), _this6.getSharedEventState(key, type));
10855
+ var result = lodash_defaults__WEBPACK_IMPORTED_MODULE_7___default()({}, _this6.getEventState(key, type), _this6.getSharedEventState(key, type));
10836
10856
 
10837
- return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default()(result) ? undefined : result;
10857
+ return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_5___default()(result) ? undefined : result;
10838
10858
  };
10839
10859
 
10840
- options = options || {};
10841
10860
  var components = options.components || defaultComponents;
10842
10861
  var stateChanges = components.map(function (component) {
10843
10862
  if (!props.standalone && component.name === "parent") {
@@ -10854,9 +10873,9 @@ var defaultComponents = [{
10854
10873
  }, {
10855
10874
  key: "applyExternalMutations",
10856
10875
  value: function applyExternalMutations(props, externalMutations) {
10857
- if (!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default()(externalMutations)) {
10876
+ if (!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_5___default()(externalMutations)) {
10858
10877
  var callbacks = props.externalEventMutations.reduce(function (memo, mutation) {
10859
- memo = lodash_isFunction__WEBPACK_IMPORTED_MODULE_5___default()(mutation.callback) ? memo.concat(mutation.callback) : memo;
10878
+ memo = lodash_isFunction__WEBPACK_IMPORTED_MODULE_4___default()(mutation.callback) ? memo.concat(mutation.callback) : memo;
10860
10879
  return memo;
10861
10880
  }, []);
10862
10881
  var compiledCallbacks = callbacks.length ? function () {
@@ -10873,12 +10892,12 @@ var defaultComponents = [{
10873
10892
  var sharedEvents = props.sharedEvents;
10874
10893
  var components = WrappedComponent.expectedComponents;
10875
10894
  var componentEvents = _events__WEBPACK_IMPORTED_MODULE_11__.getComponentEvents(props, components);
10876
- var getSharedEventState = sharedEvents && lodash_isFunction__WEBPACK_IMPORTED_MODULE_5___default()(sharedEvents.getEventState) ? sharedEvents.getEventState : function () {
10895
+ var getSharedEventState = sharedEvents && lodash_isFunction__WEBPACK_IMPORTED_MODULE_4___default()(sharedEvents.getEventState) ? sharedEvents.getEventState : function () {
10877
10896
  return undefined;
10878
10897
  };
10879
10898
  var baseProps = this.getBaseProps(props, getSharedEventState);
10880
10899
 
10881
- var dataKeys = lodash_keys__WEBPACK_IMPORTED_MODULE_6___default()(baseProps).filter(function (key) {
10900
+ var dataKeys = lodash_keys__WEBPACK_IMPORTED_MODULE_2___default()(baseProps).filter(function (key) {
10882
10901
  return key !== "parent";
10883
10902
  });
10884
10903
 
@@ -10898,32 +10917,32 @@ var defaultComponents = [{
10898
10917
  value: function getExternalMutations(props) {
10899
10918
  var sharedEvents = props.sharedEvents,
10900
10919
  externalEventMutations = props.externalEventMutations;
10901
- return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default()(externalEventMutations) || sharedEvents ? undefined : _events__WEBPACK_IMPORTED_MODULE_11__.getExternalMutations(externalEventMutations, this.baseProps, this.state);
10920
+ return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_5___default()(externalEventMutations) || sharedEvents ? undefined : _events__WEBPACK_IMPORTED_MODULE_11__.getExternalMutations(externalEventMutations, this.baseProps, this.state);
10902
10921
  }
10903
10922
  }, {
10904
10923
  key: "cacheValues",
10905
10924
  value: function cacheValues(obj) {
10906
10925
  var _this7 = this;
10907
10926
 
10908
- lodash_keys__WEBPACK_IMPORTED_MODULE_6___default()(obj).forEach(function (key) {
10927
+ lodash_keys__WEBPACK_IMPORTED_MODULE_2___default()(obj).forEach(function (key) {
10909
10928
  _this7[key] = obj[key];
10910
10929
  });
10911
10930
  }
10912
10931
  }, {
10913
10932
  key: "getBaseProps",
10914
10933
  value: function getBaseProps(props, getSharedEventState) {
10915
- getSharedEventState = getSharedEventState || this.getSharedEventState;
10934
+ getSharedEventState = getSharedEventState || this.getSharedEventState.bind(this);
10916
10935
  var sharedParentState = getSharedEventState("parent", "parent");
10917
10936
  var parentState = this.getEventState("parent", "parent");
10918
10937
 
10919
- var baseParentProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_8___default()({}, parentState, sharedParentState);
10938
+ var baseParentProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_7___default()({}, parentState, sharedParentState);
10920
10939
 
10921
10940
  var parentPropsList = baseParentProps.parentControlledProps;
10922
- var parentProps = parentPropsList ? lodash_pick__WEBPACK_IMPORTED_MODULE_4___default()(baseParentProps, parentPropsList) : {};
10941
+ var parentProps = parentPropsList ? lodash_pick__WEBPACK_IMPORTED_MODULE_1___default()(baseParentProps, parentPropsList) : {};
10923
10942
 
10924
- var modifiedProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_8___default()({}, parentProps, props);
10943
+ var modifiedProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_7___default()({}, parentProps, props);
10925
10944
 
10926
- return lodash_isFunction__WEBPACK_IMPORTED_MODULE_5___default()(WrappedComponent.getBaseProps) ? WrappedComponent.getBaseProps(modifiedProps) : {};
10945
+ return typeof WrappedComponent.getBaseProps === "function" ? WrappedComponent.getBaseProps(modifiedProps) : {};
10927
10946
  }
10928
10947
  }, {
10929
10948
  key: "getAllEvents",
@@ -10951,21 +10970,21 @@ var defaultComponents = [{
10951
10970
  if (this.hasEvents) {
10952
10971
  var baseEvents = this.getEvents(this.props, type, key);
10953
10972
 
10954
- var componentProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_8___default()({
10973
+ var componentProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_7___default()({
10955
10974
  index: index,
10956
10975
  key: id
10957
10976
  }, this.getEventState(key, type), this.getSharedEventState(key, type), component.props, baseProps, {
10958
10977
  id: id
10959
10978
  });
10960
10979
 
10961
- var events = lodash_defaults__WEBPACK_IMPORTED_MODULE_8___default()({}, _events__WEBPACK_IMPORTED_MODULE_11__.getPartialEvents(baseEvents, key, componentProps), componentProps.events);
10980
+ var events = lodash_defaults__WEBPACK_IMPORTED_MODULE_7___default()({}, _events__WEBPACK_IMPORTED_MODULE_11__.getPartialEvents(baseEvents, key, componentProps), componentProps.events);
10962
10981
 
10963
- return lodash_assign__WEBPACK_IMPORTED_MODULE_7___default()({}, componentProps, {
10982
+ return lodash_assign__WEBPACK_IMPORTED_MODULE_8___default()({}, componentProps, {
10964
10983
  events: events
10965
10984
  });
10966
10985
  }
10967
10986
 
10968
- return lodash_defaults__WEBPACK_IMPORTED_MODULE_8___default()({
10987
+ return lodash_defaults__WEBPACK_IMPORTED_MODULE_7___default()({
10969
10988
  index: index,
10970
10989
  key: id
10971
10990
  }, component.props, baseProps, {
@@ -10988,11 +11007,14 @@ var defaultComponents = [{
10988
11007
  }, {
10989
11008
  key: "animateComponent",
10990
11009
  value: function animateComponent(props, defaultAnimationWhitelist) {
10991
- var animationWhitelist = props.animate && props.animate.animationWhitelist ? props.animate.animationWhitelist : defaultAnimationWhitelist;
11010
+ var _props$animate;
11011
+
11012
+ var animationWhitelist = typeof props.animate === "object" && ((_props$animate = props.animate) === null || _props$animate === void 0 ? void 0 : _props$animate.animationWhitelist) || defaultAnimationWhitelist;
11013
+ var Comp = this.constructor;
10992
11014
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_9___default().createElement(_victory_transition_victory_transition__WEBPACK_IMPORTED_MODULE_12__.VictoryTransition, {
10993
11015
  animate: props.animate,
10994
11016
  animationWhitelist: animationWhitelist
10995
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_9___default().createElement(this.constructor, props));
11017
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_9___default().createElement(Comp, props));
10996
11018
  } // Used by `VictoryLine` and `VictoryArea`
10997
11019
 
10998
11020
  }, {
@@ -11004,7 +11026,7 @@ var defaultComponents = [{
11004
11026
  labelComponent = props.labelComponent,
11005
11027
  groupComponent = props.groupComponent;
11006
11028
 
11007
- var dataKeys = lodash_without__WEBPACK_IMPORTED_MODULE_3___default()(this.dataKeys, "all");
11029
+ var dataKeys = lodash_without__WEBPACK_IMPORTED_MODULE_0___default()(this.dataKeys, "all");
11008
11030
 
11009
11031
  var labelComponents = dataKeys.reduce(function (memo, key) {
11010
11032
  var labelProps = _this8.getComponentProps(labelComponent, "labels", key);
@@ -11051,9 +11073,12 @@ var defaultComponents = [{
11051
11073
  }
11052
11074
  }]);
11053
11075
 
11054
- return addEvents;
11076
+ return AddEventsMixin;
11055
11077
  }(WrappedComponent);
11056
- });
11078
+
11079
+ return AddEventsMixin;
11080
+ }
11081
+ //# sourceMappingURL=add-events.js.map
11057
11082
 
11058
11083
  /***/ }),
11059
11084
 
@@ -11138,13 +11163,13 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
11138
11163
 
11139
11164
 
11140
11165
 
11166
+
11141
11167
  /**
11142
11168
  * Returns the axis (x or y) of a particular axis component
11143
11169
  * @param {Object} props: the props object.
11144
11170
  * @param {Boolean} horizontal: true for horizontal charts
11145
11171
  * @returns {String} the dimension appropriate for the axis given its props
11146
11172
  */
11147
-
11148
11173
  function getAxis(props) {
11149
11174
  var dependentAxis = props.dependentAxis;
11150
11175
  return dependentAxis ? "y" : "x";
@@ -11330,7 +11355,7 @@ function getTickArray(props) {
11330
11355
  }) : lodash_range__WEBPACK_IMPORTED_MODULE_4___default()(1, tickValues.length + 1);
11331
11356
  }
11332
11357
 
11333
- var tickArray = ticks ? lodash_uniq__WEBPACK_IMPORTED_MODULE_5___default()(ticks) : getTicksFromFormat(props);
11358
+ var tickArray = ticks ? lodash_uniq__WEBPACK_IMPORTED_MODULE_5___default()(ticks) : getTicksFromFormat();
11334
11359
 
11335
11360
  var buildTickArray = function (arr) {
11336
11361
  var newTickArray = [];
@@ -11375,11 +11400,11 @@ function getTickFormat(props, scale) {
11375
11400
  return defaultTickFormat || scaleTickFormat;
11376
11401
  } else if (tickFormat && Array.isArray(tickFormat)) {
11377
11402
  var tickArray = getTickArray(props);
11378
- var tickArrayIndices = tickArray ? tickArray.map(function (v) {
11403
+ var tickArrayIndices = tickArray === null || tickArray === void 0 ? void 0 : tickArray.map(function (v) {
11379
11404
  return v.index;
11380
- }) : undefined;
11405
+ });
11381
11406
  var filteredTickFormat = tickFormat.filter(function (t, index) {
11382
- return tickArrayIndices.includes(index);
11407
+ return tickArrayIndices === null || tickArrayIndices === void 0 ? void 0 : tickArrayIndices.includes(index);
11383
11408
  });
11384
11409
  return function (x, index) {
11385
11410
  return filteredTickFormat[index];
@@ -11413,7 +11438,8 @@ function downsampleTicks(ticks, tickCount) {
11413
11438
  });
11414
11439
  }
11415
11440
 
11416
- function getTicks(props, scale, filterZero) {
11441
+ function getTicks(props, scale) {
11442
+ var filterZero = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
11417
11443
  var tickCount = props.tickCount;
11418
11444
  var tickArray = getTickArray(props);
11419
11445
  var tickValues = tickArray ? tickArray.map(function (v) {
@@ -11536,6 +11562,7 @@ function modifyProps(props, fallbackProps) {
11536
11562
  theme: theme
11537
11563
  }), fallbackProps, "axis");
11538
11564
  }
11565
+ //# sourceMappingURL=axis.js.map
11539
11566
 
11540
11567
  /***/ }),
11541
11568
 
@@ -11569,7 +11596,6 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToAr
11569
11596
 
11570
11597
  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; }
11571
11598
 
11572
- /* eslint-disable no-use-before-define */
11573
11599
  function isNonEmptyArray(collection) {
11574
11600
  return Array.isArray(collection) && collection.length > 0;
11575
11601
  }
@@ -11608,7 +11634,8 @@ function getMaxValue(arr) {
11608
11634
  }
11609
11635
 
11610
11636
  var array = arr.concat(values);
11611
- return containsDates(array) ? new Date(Math.max.apply(Math, _toConsumableArray(array))) : Math.max.apply(Math, _toConsumableArray(array));
11637
+ return containsDates(array) ? new Date(Math.max.apply(Math, _toConsumableArray(array))) // Dates will be coerced to numbers
11638
+ : Math.max.apply(Math, _toConsumableArray(array));
11612
11639
  }
11613
11640
  function getMinValue(arr) {
11614
11641
  for (var _len2 = arguments.length, values = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
@@ -11616,8 +11643,10 @@ function getMinValue(arr) {
11616
11643
  }
11617
11644
 
11618
11645
  var array = arr.concat(values);
11619
- return containsDates(array) ? new Date(Math.min.apply(Math, _toConsumableArray(array))) : Math.min.apply(Math, _toConsumableArray(array));
11646
+ return containsDates(array) ? new Date(Math.min.apply(Math, _toConsumableArray(array))) // Dates will be coerced to numbers
11647
+ : Math.min.apply(Math, _toConsumableArray(array));
11620
11648
  }
11649
+ //# sourceMappingURL=collection.js.map
11621
11650
 
11622
11651
  /***/ }),
11623
11652
 
@@ -11630,9 +11659,7 @@ function getMinValue(arr) {
11630
11659
  "use strict";
11631
11660
  __webpack_require__.r(__webpack_exports__);
11632
11661
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
11633
- /* harmony export */ "baseProps": () => (/* binding */ baseProps),
11634
- /* harmony export */ "dataProps": () => (/* binding */ dataProps),
11635
- /* harmony export */ "primitiveProps": () => (/* binding */ primitiveProps)
11662
+ /* harmony export */ "CommonProps": () => (/* binding */ CommonProps)
11636
11663
  /* harmony export */ });
11637
11664
  /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
11638
11665
  /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__);
@@ -11640,26 +11667,28 @@ __webpack_require__.r(__webpack_exports__);
11640
11667
 
11641
11668
 
11642
11669
  var dataProps = {
11670
+ // @ts-expect-error TODO: synchronize the type with this PropTypes
11643
11671
  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({
11644
11672
  x: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)),
11645
11673
  y: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string))
11646
11674
  })]),
11675
+ // @ts-expect-error TODO: synchronize the type with this PropTypes
11647
11676
  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)]),
11648
11677
  dataComponent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().element),
11649
11678
  disableInlineStyles: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
11650
11679
  labelComponent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().element),
11651
11680
  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)]),
11652
11681
  samples: _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative,
11653
- 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))]),
11682
+ 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))]),
11654
11683
  sortOrder: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(["ascending", "descending"]),
11655
11684
  style: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
11656
11685
  parent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
11657
11686
  data: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
11658
11687
  labels: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object)
11659
11688
  }),
11660
- 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))]),
11661
- 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))]),
11662
- 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))])
11689
+ 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))]),
11690
+ 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))]),
11691
+ 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))])
11663
11692
  };
11664
11693
  var baseProps = {
11665
11694
  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)]),
@@ -11668,14 +11697,17 @@ var baseProps = {
11668
11697
  x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain,
11669
11698
  y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain
11670
11699
  })]),
11700
+ // @ts-expect-error TODO: synchronize the type with this PropTypes
11671
11701
  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({
11672
11702
  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)]),
11673
11703
  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)])
11674
11704
  })]),
11705
+ // @ts-expect-error TODO: synchronize the type with this PropTypes
11675
11706
  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({
11676
11707
  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)]),
11677
11708
  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)])
11678
11709
  })]),
11710
+ // @ts-expect-error TODO: synchronize the type with this PropTypes
11679
11711
  domainPadding: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
11680
11712
  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))]),
11681
11713
  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))])
@@ -11686,6 +11718,7 @@ var baseProps = {
11686
11718
  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)]),
11687
11719
  eventHandlers: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object)
11688
11720
  })),
11721
+ // @ts-expect-error TODO: synchronize the type with this PropTypes
11689
11722
  externalEventMutations: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
11690
11723
  callback: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
11691
11724
  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)]),
@@ -11696,10 +11729,12 @@ var baseProps = {
11696
11729
  groupComponent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().element),
11697
11730
  height: _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative,
11698
11731
  name: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
11732
+ // @ts-expect-error TODO: synchronize the type with this PropTypes
11699
11733
  origin: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
11700
11734
  x: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
11701
11735
  y: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number)
11702
11736
  }),
11737
+ // @ts-expect-error TODO: synchronize the type with this PropTypes
11703
11738
  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({
11704
11739
  top: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
11705
11740
  bottom: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
@@ -11708,17 +11743,19 @@ var baseProps = {
11708
11743
  })]),
11709
11744
  polar: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
11710
11745
  range: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.domain, prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
11711
- x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain,
11712
- y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain
11746
+ x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain.isRequired,
11747
+ y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain.isRequired
11713
11748
  })]),
11714
11749
  scale: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.scale, prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
11715
- x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.scale,
11716
- y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.scale
11750
+ x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.scale.isRequired,
11751
+ y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.scale.isRequired
11717
11752
  })]),
11753
+ // @ts-expect-error TODO: synchronize the type with this PropTypes
11718
11754
  sharedEvents: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
11719
11755
  events: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().array),
11720
11756
  getEventState: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func)
11721
11757
  }),
11758
+ // @ts-expect-error TODO: synchronize the type with this PropTypes
11722
11759
  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({
11723
11760
  x: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)]),
11724
11761
  y: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)])
@@ -11738,6 +11775,7 @@ var primitiveProps = {
11738
11775
  events: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
11739
11776
  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)]),
11740
11777
  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)]),
11778
+ // @ts-expect-error TODO: synchronize the type with this PropTypes
11741
11779
  origin: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
11742
11780
  x: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
11743
11781
  y: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number)
@@ -11753,6 +11791,12 @@ var primitiveProps = {
11753
11791
  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)]),
11754
11792
  transform: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)
11755
11793
  };
11794
+ var CommonProps = {
11795
+ dataProps: dataProps,
11796
+ baseProps: baseProps,
11797
+ primitiveProps: primitiveProps
11798
+ };
11799
+ //# sourceMappingURL=common-props.js.map
11756
11800
 
11757
11801
  /***/ }),
11758
11802
 
@@ -12266,6 +12310,7 @@ function isDataComponent(component) {
12266
12310
  var whitelist = ["area", "bar", "boxplot", "candlestick", "errorbar", "group", "histogram", "line", "pie", "scatter", "stack", "voronoi"];
12267
12311
  return lodash_includes__WEBPACK_IMPORTED_MODULE_2___default()(whitelist, role);
12268
12312
  }
12313
+ //# sourceMappingURL=data.js.map
12269
12314
 
12270
12315
  /***/ }),
12271
12316
 
@@ -12367,8 +12412,9 @@ function getDomainPadding(props, axis) {
12367
12412
  }
12368
12413
 
12369
12414
  function getFlatData(dataset, axis) {
12415
+ var axisKey = "_".concat(axis);
12370
12416
  return lodash_flatten__WEBPACK_IMPORTED_MODULE_5___default()(dataset).map(function (datum) {
12371
- return datum["_".concat(axis)] && datum["_".concat(axis)][1] !== undefined ? datum["_".concat(axis)][1] : datum["_".concat(axis)];
12417
+ return datum[axisKey] && datum[axisKey][1] !== undefined ? datum[axisKey][1] : datum[axisKey];
12372
12418
  });
12373
12419
  }
12374
12420
 
@@ -12433,7 +12479,9 @@ function padDomain(domain, props, axis) {
12433
12479
  if (addsQuadrants && singleQuadrantDomainPadding !== false) {
12434
12480
  // Naive initial padding calculation
12435
12481
  var initialPadding = {
12482
+ // @ts-expect-error `max/min` might be dates
12436
12483
  left: Math.abs(max - min) * padding.left / rangeExtent,
12484
+ // @ts-expect-error `max/min` might be dates
12437
12485
  right: Math.abs(max - min) * padding.right / rangeExtent
12438
12486
  }; // Adjust the domain by the initial padding
12439
12487
 
@@ -12718,6 +12766,7 @@ function isDomainComponent(component) {
12718
12766
  var whitelist = ["area", "axis", "bar", "boxplot", "candlestick", "errorbar", "group", "histogram", "line", "pie", "scatter", "stack", "voronoi"];
12719
12767
  return lodash_includes__WEBPACK_IMPORTED_MODULE_1___default()(whitelist, role);
12720
12768
  }
12769
+ //# sourceMappingURL=domain.js.map
12721
12770
 
12722
12771
  /***/ }),
12723
12772
 
@@ -12786,15 +12835,16 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToAr
12786
12835
  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; }
12787
12836
 
12788
12837
  var GLOBAL_EVENT_REGEX = /^onGlobal(.*)$/;
12838
+
12789
12839
  /* Returns all own and shared events that should be attached to a single target element,
12790
12840
  * i.e. an individual bar specified by target: "data", eventKey: [index].
12791
12841
  * Returned events are scoped to the appropriate state. Either that of the component itself
12792
12842
  * (i.e. VictoryBar) in the case of own events, or that of the parent component
12793
12843
  * (i.e. VictoryChart) in the case of shared events
12794
12844
  */
12795
- // eslint-disable-next-line max-params,no-shadow
12796
-
12797
- function getEvents(props, target, eventKey, getScopedEvents) {
12845
+ // eslint-disable-next-line max-params
12846
+ function getEvents(props, target, eventKey, // eslint-disable-next-line no-shadow
12847
+ getScopedEvents) {
12798
12848
  var _this = this;
12799
12849
 
12800
12850
  // Returns all events that apply to a particular target element
@@ -13017,24 +13067,27 @@ function getScopedEvents(events, namespace, childType, baseProps) {
13017
13067
  return memo;
13018
13068
  }, {});
13019
13069
  }
13020
- /* Returns a partially applied event handler for a specific target element
13070
+ /*
13071
+ * Returns a partially applied event handler for a specific target element
13021
13072
  * This allows event handlers to have access to props controlling each element
13022
13073
  */
13023
13074
 
13024
13075
  function getPartialEvents(events, eventKey, childProps) {
13025
- return events ? lodash_keys__WEBPACK_IMPORTED_MODULE_0___default()(events).reduce(function (memo, eventName) {
13076
+ if (!events) return {};
13077
+ return lodash_keys__WEBPACK_IMPORTED_MODULE_0___default()(events).reduce(function (memo, eventName) {
13026
13078
  var appliedEvent = function (evt) {
13027
13079
  return events[eventName](evt, childProps, eventKey, eventName);
13028
13080
  };
13029
13081
 
13030
13082
  memo[eventName] = appliedEvent;
13031
13083
  return memo;
13032
- }, {}) : {};
13084
+ }, {});
13033
13085
  }
13086
+
13034
13087
  /* Returns the property of the state object corresponding to event changes for
13035
13088
  * a particular element
13036
13089
  */
13037
-
13090
+ // eslint-disable-next-line max-params
13038
13091
  function getEventState(eventKey, namespace, childType) {
13039
13092
  // Mandatory usage: `getEventState.bind(this)`
13040
13093
  // eslint-disable-next-line no-invalid-this
@@ -13219,6 +13272,7 @@ var emulateReactEvent = function (event) {
13219
13272
  nativeEvent: event
13220
13273
  });
13221
13274
  };
13275
+ //# sourceMappingURL=events.js.map
13222
13276
 
13223
13277
  /***/ }),
13224
13278
 
@@ -13300,7 +13354,7 @@ function getPolarRange(props, axis) {
13300
13354
 
13301
13355
  /**
13302
13356
  * creates an object with some keys excluded
13303
- * replacement for lodash.omit for performance. does not mimick the entire lodash.omit api
13357
+ * replacement for lodash.omit for performance. does not mimic the entire lodash.omit api
13304
13358
  * @param {Object} originalObject: created object will be based on this object
13305
13359
  * @param {Array<String>} ks: an array of keys to omit from the new object
13306
13360
  * @returns {Object} new object with same properties as originalObject
@@ -13313,6 +13367,7 @@ function omit(originalObject) {
13313
13367
  var newObject = {};
13314
13368
 
13315
13369
  for (var key in originalObject) {
13370
+ // @ts-expect-error String is not assignable to Key
13316
13371
  if (ks.indexOf(key) >= 0) {
13317
13372
  continue;
13318
13373
  }
@@ -13545,7 +13600,9 @@ function reduceChildren(children, iteratee) {
13545
13600
  var parentProps = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
13546
13601
  var initialMemo = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];
13547
13602
  var combine = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : function (memo, item) {
13548
- return memo.concat(item);
13603
+ return (// @ts-expect-error These defaults are hard to type
13604
+ memo.concat(item)
13605
+ );
13549
13606
  };
13550
13607
  var sharedProps = ["data", "domain", "categories", "polar", "startAngle", "endAngle", "minDomain", "maxDomain", "horizontal"];
13551
13608
 
@@ -13589,7 +13646,7 @@ function reduceChildren(children, iteratee) {
13589
13646
  /**
13590
13647
  * @param {Object} props: the props object
13591
13648
  * @returns {Boolean} returns true if the props object contains `horizontal: true` of if any
13592
- * children or nested children are hoizontal
13649
+ * children or nested children are horizontal
13593
13650
  */
13594
13651
 
13595
13652
  function isHorizontal(props) {
@@ -13612,6 +13669,7 @@ function isHorizontal(props) {
13612
13669
 
13613
13670
  return traverseChildren(react__WEBPACK_IMPORTED_MODULE_6___default().Children.toArray(props.children));
13614
13671
  }
13672
+ //# sourceMappingURL=helpers.js.map
13615
13673
 
13616
13674
  /***/ }),
13617
13675
 
@@ -13655,15 +13713,16 @@ function isMap(x) {
13655
13713
  return !!(x && x[IMMUTABLE_MAP]);
13656
13714
  }
13657
13715
  function shallowToJS(x, whitelist) {
13658
- return isIterable(x) ? x.reduce(function (prev, curr, key) {
13716
+ return isIterable(x) ? x.reduce(function (result, curr, key) {
13659
13717
  if (whitelist && whitelist[key]) {
13660
13718
  curr = shallowToJS(curr);
13661
13719
  }
13662
13720
 
13663
- prev[key] = curr;
13664
- return prev;
13721
+ result[key] = curr;
13722
+ return result;
13665
13723
  }, isList(x) ? [] : {}) : x;
13666
13724
  }
13725
+ //# sourceMappingURL=immutable.js.map
13667
13726
 
13668
13727
  /***/ }),
13669
13728
 
@@ -13921,6 +13980,7 @@ function getProps(props, index) {
13921
13980
  var tooltipTheme = theme && theme.tooltip || {};
13922
13981
  return lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, labelProps, _helpers__WEBPACK_IMPORTED_MODULE_1__.omit(tooltipTheme, ["style"]));
13923
13982
  }
13983
+ //# sourceMappingURL=label-helpers.js.map
13924
13984
 
13925
13985
  /***/ }),
13926
13986
 
@@ -13946,6 +14006,7 @@ function warn(message) {
13946
14006
  }
13947
14007
  }
13948
14008
  }
14009
+ //# sourceMappingURL=log.js.map
13949
14010
 
13950
14011
  /***/ }),
13951
14012
 
@@ -13973,12 +14034,10 @@ __webpack_require__.r(__webpack_exports__);
13973
14034
  /* harmony import */ var lodash_isRegExp__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isRegExp__WEBPACK_IMPORTED_MODULE_0__);
13974
14035
  /* harmony import */ var lodash_find__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/find */ "../../../node_modules/lodash/find.js");
13975
14036
  /* harmony import */ var lodash_find__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_find__WEBPACK_IMPORTED_MODULE_1__);
13976
- /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/isFunction */ "../../../node_modules/lodash/isFunction.js");
13977
- /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_2__);
13978
- /* harmony import */ var _log__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./log */ "../../victory-core/es/victory-util/log.js");
13979
- /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
13980
- /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);
13981
-
14037
+ /* harmony import */ var _log__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./log */ "../../victory-core/es/victory-util/log.js");
14038
+ /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
14039
+ /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__);
14040
+ /* harmony import */ var _scale__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./scale */ "../../victory-core/es/victory-util/scale.js");
13982
14041
 
13983
14042
 
13984
14043
 
@@ -13986,6 +14045,8 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
13986
14045
 
13987
14046
 
13988
14047
 
14048
+
14049
+
13989
14050
  /**
13990
14051
  * Return a new validator based on `validator` but with the option to chain
13991
14052
  * `isRequired` onto the validation. This is nearly identical to how React
@@ -13993,30 +14054,30 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
13993
14054
  * @param {Function} validator Validation function.
13994
14055
  * @returns {Function} Validator with `isRequired` option.
13995
14056
  */
13996
-
13997
14057
  var makeChainable = function (validator) {
13998
- /* eslint-disable max-params */
13999
- var _chainable = function (isRequired, props, propName, componentName) {
14000
- var value = props[propName];
14058
+ var createChainable = function (isRequired) {
14059
+ return function (props, propName, componentName) {
14060
+ var value = props[propName];
14001
14061
 
14002
- if (value === undefined || value === null) {
14003
- if (isRequired) {
14004
- return new Error("Required `".concat(propName, "` was not specified in `").concat(componentName, "`."));
14005
- }
14062
+ if (value === undefined || value === null) {
14063
+ if (isRequired) {
14064
+ return new Error("Required `".concat(propName, "` was not specified in `").concat(componentName, "`."));
14065
+ }
14006
14066
 
14007
- return null;
14008
- }
14067
+ return null;
14068
+ }
14009
14069
 
14010
- for (var _len = arguments.length, rest = new Array(_len > 4 ? _len - 4 : 0), _key = 4; _key < _len; _key++) {
14011
- rest[_key - 4] = arguments[_key];
14012
- }
14070
+ for (var _len = arguments.length, rest = new Array(_len > 3 ? _len - 3 : 0), _key = 3; _key < _len; _key++) {
14071
+ rest[_key - 3] = arguments[_key];
14072
+ }
14013
14073
 
14014
- return validator.apply(void 0, [props, propName, componentName].concat(rest));
14074
+ return validator.apply(void 0, [props, propName, componentName].concat(rest));
14075
+ };
14015
14076
  };
14016
14077
 
14017
- var chainable = _chainable.bind(null, false);
14018
-
14019
- chainable.isRequired = _chainable.bind(null, true);
14078
+ var chainable = Object.assign(createChainable(false), {
14079
+ isRequired: createChainable(true)
14080
+ });
14020
14081
  return chainable;
14021
14082
  };
14022
14083
 
@@ -14046,7 +14107,7 @@ var getConstructor = function (value) {
14046
14107
  };
14047
14108
  /**
14048
14109
  * Get the name of the constructor used to create `value`, using
14049
- * `Object.protoype.toString`. If the value is null or undefined, return
14110
+ * `Object.prototype.toString`. If the value is null or undefined, return
14050
14111
  * "null" or "undefined", respectively.
14051
14112
  * @param {*} value Instance to return the constructor name of.
14052
14113
  * @returns {String} Name of the constructor.
@@ -14076,10 +14137,11 @@ function deprecated(propType, explanation) {
14076
14137
  var value = props[propName];
14077
14138
 
14078
14139
  if (value !== null && value !== undefined) {
14079
- _log__WEBPACK_IMPORTED_MODULE_3__.warn("\"".concat(propName, "\" property of \"").concat(componentName, "\" has been deprecated ").concat(explanation));
14140
+ _log__WEBPACK_IMPORTED_MODULE_2__.warn("\"".concat(propName, "\" property of \"").concat(componentName, "\" has been deprecated ").concat(explanation));
14080
14141
  }
14081
14142
 
14082
- return prop_types__WEBPACK_IMPORTED_MODULE_4___default().checkPropTypes(_defineProperty({}, propName, propType), props, propName, componentName);
14143
+ prop_types__WEBPACK_IMPORTED_MODULE_3___default().checkPropTypes(_defineProperty({}, propName, propType), props, propName, componentName);
14144
+ return null;
14083
14145
  };
14084
14146
  }
14085
14147
  /**
@@ -14098,7 +14160,7 @@ function allOfType(validators) {
14098
14160
 
14099
14161
  return validators.reduce(function (result, validator) {
14100
14162
  return result || validator.apply(void 0, [props, propName, componentName].concat(rest));
14101
- }, undefined);
14163
+ }, null);
14102
14164
  });
14103
14165
  }
14104
14166
  /**
@@ -14112,7 +14174,7 @@ var nonNegative = makeChainable(function (props, propName, componentName) {
14112
14174
  return new Error("`".concat(propName, "` in `").concat(componentName, "` must be a non-negative number."));
14113
14175
  }
14114
14176
 
14115
- return undefined;
14177
+ return null;
14116
14178
  });
14117
14179
  /**
14118
14180
  * Check that the value is an integer.
@@ -14125,7 +14187,7 @@ var integer = makeChainable(function (props, propName, componentName) {
14125
14187
  return new Error("`".concat(propName, "` in `").concat(componentName, "` must be an integer."));
14126
14188
  }
14127
14189
 
14128
- return undefined;
14190
+ return null;
14129
14191
  });
14130
14192
  /**
14131
14193
  * Check that the value is greater than zero.
@@ -14138,7 +14200,7 @@ var greaterThanZero = makeChainable(function (props, propName, componentName) {
14138
14200
  return new Error("`".concat(propName, "` in `").concat(componentName, "` must be a number greater than zero."));
14139
14201
  }
14140
14202
 
14141
- return undefined;
14203
+ return null;
14142
14204
  });
14143
14205
  /**
14144
14206
  * Check that the value is an Array of two unique values.
@@ -14151,32 +14213,20 @@ var domain = makeChainable(function (props, propName, componentName) {
14151
14213
  return new Error("`".concat(propName, "` in `").concat(componentName, "` must be an array of two unique numeric values."));
14152
14214
  }
14153
14215
 
14154
- return undefined;
14216
+ return null;
14155
14217
  });
14156
14218
  /**
14157
14219
  * Check that the value looks like a d3 `scale` function.
14158
14220
  */
14159
14221
 
14160
14222
  var scale = makeChainable(function (props, propName, componentName) {
14161
- var supportedScaleStrings = ["linear", "time", "log", "sqrt"];
14162
-
14163
- var validScale = function (scl) {
14164
- if (lodash_isFunction__WEBPACK_IMPORTED_MODULE_2___default()(scl)) {
14165
- 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);
14166
- } else if (typeof scl === "string") {
14167
- return supportedScaleStrings.indexOf(scl) !== -1;
14168
- }
14169
-
14170
- return false;
14171
- };
14172
-
14173
14223
  var value = props[propName];
14174
14224
 
14175
- if (!validScale(value)) {
14225
+ if (!_scale__WEBPACK_IMPORTED_MODULE_4__.validScale(value)) {
14176
14226
  return new Error("`".concat(propName, "` in `").concat(componentName, "` must be a d3 scale."));
14177
14227
  }
14178
14228
 
14179
- return undefined;
14229
+ return null;
14180
14230
  });
14181
14231
  /**
14182
14232
  * Check that an array contains items of the same type.
@@ -14190,7 +14240,7 @@ var homogeneousArray = makeChainable(function (props, propName, componentName) {
14190
14240
  }
14191
14241
 
14192
14242
  if (values.length < 2) {
14193
- return undefined;
14243
+ return null;
14194
14244
  }
14195
14245
 
14196
14246
  var comparisonConstructor = getConstructor(values[0]);
@@ -14205,7 +14255,7 @@ var homogeneousArray = makeChainable(function (props, propName, componentName) {
14205
14255
  return new Error("Expected `".concat(propName, "` in `").concat(componentName, "` to be a ") + "homogeneous array, but found types `".concat(constructorName, "` and ") + "`".concat(otherConstructorName, "`."));
14206
14256
  }
14207
14257
 
14208
- return undefined;
14258
+ return null;
14209
14259
  });
14210
14260
  /**
14211
14261
  * Check that array prop length matches props.data.length
@@ -14216,7 +14266,7 @@ var matchDataLength = makeChainable(function (props, propName) {
14216
14266
  return new Error("Length of data and ".concat(propName, " arrays must match."));
14217
14267
  }
14218
14268
 
14219
- return undefined;
14269
+ return null;
14220
14270
  });
14221
14271
  /**
14222
14272
  * Check that the value is a regular expression
@@ -14227,8 +14277,9 @@ var regExp = makeChainable(function (props, propName, componentName) {
14227
14277
  return new Error("`".concat(propName, "` in `").concat(componentName, "` must be a regular expression."));
14228
14278
  }
14229
14279
 
14230
- return undefined;
14280
+ return null;
14231
14281
  });
14282
+ //# sourceMappingURL=prop-types.js.map
14232
14283
 
14233
14284
  /***/ }),
14234
14285
 
@@ -14246,7 +14297,8 @@ __webpack_require__.r(__webpack_exports__);
14246
14297
  /* harmony export */ "getScaleFromName": () => (/* binding */ getScaleFromName),
14247
14298
  /* harmony export */ "getScaleFromProps": () => (/* binding */ getScaleFromProps),
14248
14299
  /* harmony export */ "getScaleType": () => (/* binding */ getScaleType),
14249
- /* harmony export */ "getType": () => (/* binding */ getType)
14300
+ /* harmony export */ "getType": () => (/* binding */ getType),
14301
+ /* harmony export */ "validScale": () => (/* binding */ validScale)
14250
14302
  /* harmony export */ });
14251
14303
  /* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isPlainObject */ "../../../node_modules/lodash/isPlainObject.js");
14252
14304
  /* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0__);
@@ -14264,8 +14316,9 @@ __webpack_require__.r(__webpack_exports__);
14264
14316
 
14265
14317
 
14266
14318
 
14267
- var supportedScaleStrings = ["linear", "time", "log", "sqrt"]; // Private Functions
14319
+ var supportedScaleStrings = ["linear", "time", "log", "sqrt"];
14268
14320
 
14321
+ // Private Functions
14269
14322
  function toNewName(scale) {
14270
14323
  // d3 scale changed the naming scheme for scale from "linear" -> "scaleLinear" etc.
14271
14324
  var capitalize = function (s) {
@@ -14335,7 +14388,13 @@ function getScaleTypeFromData(props, axis) {
14335
14388
 
14336
14389
 
14337
14390
  function getScaleFromName(name) {
14338
- return validScale(name) ? victory_vendor_d3_scale__WEBPACK_IMPORTED_MODULE_5__[toNewName(name)]() : victory_vendor_d3_scale__WEBPACK_IMPORTED_MODULE_6__["default"]();
14391
+ if (validScale(name)) {
14392
+ var methodName = toNewName(name); // @ts-expect-error scaleTime is not directly compatible with our D3Scale definition
14393
+
14394
+ return victory_vendor_d3_scale__WEBPACK_IMPORTED_MODULE_5__[methodName]();
14395
+ }
14396
+
14397
+ return victory_vendor_d3_scale__WEBPACK_IMPORTED_MODULE_6__["default"]();
14339
14398
  }
14340
14399
  function getBaseScale(props, axis) {
14341
14400
  var scale = getScaleFromProps(props, axis);
@@ -14345,7 +14404,7 @@ function getBaseScale(props, axis) {
14345
14404
  }
14346
14405
 
14347
14406
  var defaultScale = getScaleFromDomain(props, axis) || getScaleTypeFromData(props, axis);
14348
- return victory_vendor_d3_scale__WEBPACK_IMPORTED_MODULE_5__[toNewName(defaultScale)]();
14407
+ return getScaleFromName(defaultScale);
14349
14408
  }
14350
14409
  function getDefaultScale() {
14351
14410
  return victory_vendor_d3_scale__WEBPACK_IMPORTED_MODULE_6__["default"]();
@@ -14358,7 +14417,7 @@ function getScaleFromProps(props, axis) {
14358
14417
  var scale = props.scale[axis] || props.scale;
14359
14418
 
14360
14419
  if (validScale(scale)) {
14361
- return lodash_isFunction__WEBPACK_IMPORTED_MODULE_1___default()(scale) ? scale : victory_vendor_d3_scale__WEBPACK_IMPORTED_MODULE_5__[toNewName(scale)]();
14420
+ return lodash_isFunction__WEBPACK_IMPORTED_MODULE_1___default()(scale) ? scale : getScaleFromName(scale);
14362
14421
  }
14363
14422
 
14364
14423
  return undefined;
@@ -14393,6 +14452,7 @@ function getType(scale) {
14393
14452
  })[0];
14394
14453
  return scaleType ? scaleType.name : undefined;
14395
14454
  }
14455
+ //# sourceMappingURL=scale.js.map
14396
14456
 
14397
14457
  /***/ }),
14398
14458
 
@@ -14464,6 +14524,7 @@ function getColorScale(name) {
14464
14524
  };
14465
14525
  return name ? scales[name] : scales.grayscale;
14466
14526
  }
14527
+ //# sourceMappingURL=style.js.map
14467
14528
 
14468
14529
  /***/ }),
14469
14530
 
@@ -14668,8 +14729,10 @@ var _getSizeWithRotate = function (axisSize, dependentSize, angle) {
14668
14729
 
14669
14730
 
14670
14731
  var convertLengthToPixels = function (length, fontSize) {
14671
- var attribute = length.match(/[a-zA-Z%]+/) && length.match(/[a-zA-Z%]+/)[0];
14672
- var value = length.match(/[0-9.,]+/);
14732
+ var _length$match;
14733
+
14734
+ var attribute = (_length$match = length.match(/[a-zA-Z%]+/)) === null || _length$match === void 0 ? void 0 : _length$match[0];
14735
+ var value = Number(length.match(/[0-9.,]+/));
14673
14736
  var result;
14674
14737
 
14675
14738
  if (!attribute) {
@@ -14735,9 +14798,9 @@ var _approximateTextHeightInternal = function (text, style) {
14735
14798
  var height = containsCaps ? lineStyle.fontSize * coefficients.lineCapitalCoef : lineStyle.fontSize;
14736
14799
  return total + lineStyle.lineHeight * height;
14737
14800
  }, 0);
14738
- }; // Stubbable implementation.
14739
-
14801
+ };
14740
14802
 
14803
+ // Stubbable implementation.
14741
14804
  var _approximateTextSizeInternal = {
14742
14805
  impl: function (text, style) {
14743
14806
  var angle = Array.isArray(style) ? style[0] && style[0].angle : style && style.angle;
@@ -14756,7 +14819,7 @@ var _approximateTextSizeInternal = {
14756
14819
  };
14757
14820
  /**
14758
14821
  * Predict text size by font params.
14759
- * @param {string} text Content for width calculation.
14822
+ * @param {string|string[]} text Content for width calculation.
14760
14823
  * @param {Object} style Text styles, ,fontFamily, fontSize, etc.
14761
14824
  * @param {string} style.fontFamily Text fontFamily.
14762
14825
  * @param {(number|string)} style.fontSize Text fontSize.
@@ -14769,6 +14832,7 @@ var _approximateTextSizeInternal = {
14769
14832
  var approximateTextSize = function (text, style) {
14770
14833
  return _approximateTextSizeInternal.impl(text, style);
14771
14834
  };
14835
+ //# sourceMappingURL=textsize.js.map
14772
14836
 
14773
14837
  /***/ }),
14774
14838
 
@@ -14799,6 +14863,7 @@ var TimerContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cre
14799
14863
  });
14800
14864
  TimerContext.displayName = "TimerContext";
14801
14865
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (TimerContext);
14866
+ //# sourceMappingURL=timer-context.js.map
14802
14867
 
14803
14868
  /***/ }),
14804
14869
 
@@ -14901,6 +14966,7 @@ var Timer = /*#__PURE__*/function () {
14901
14966
  }();
14902
14967
 
14903
14968
 
14969
+ //# sourceMappingURL=timer.js.map
14904
14970
 
14905
14971
  /***/ }),
14906
14972
 
@@ -14991,7 +15057,7 @@ function getChildData(child) {
14991
15057
  }
14992
15058
  /**
14993
15059
  * If a parent component has animation enabled, calculate the transitions
14994
- * for any data of any child component that supports data transitions
15060
+ * for any data of any child component that supports data transitions.
14995
15061
  * Data transitions are defined as any two datasets where data nodes exist
14996
15062
  * in the first set and not the second, in the second and not the first,
14997
15063
  * or both.
@@ -15120,7 +15186,7 @@ function getChildPropsOnExit(animate, child, data, exitingNodes, cb) {
15120
15186
 
15121
15187
  if (exitingNodes) {
15122
15188
  // After the exit transition occurs, trigger the animations for
15123
- // nodes that are neither exiting or entering.
15189
+ // nodes that are neither exiting nor entering.
15124
15190
  animate.onEnd = cb;
15125
15191
  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.
15126
15192
 
@@ -15190,7 +15256,7 @@ function getChildPropsOnEnter(animate, data, enteringNodes, cb) {
15190
15256
  * and its index in the parent's children array.
15191
15257
  *
15192
15258
  * In particular, this will include an `animate` object that is set appropriately
15193
- * so that each child will be synchoronized for each stage of a transition
15259
+ * so that each child will be synchronized for each stage of a transition
15194
15260
  * animation. It will also include a transformed `data` object, where each datum
15195
15261
  * is transformed by `animate.onExit` and `animate.onEnter` `before` and `after`
15196
15262
  * functions.
@@ -15335,6 +15401,7 @@ function getTransitionPropsFactory(props, state, setState) {
15335
15401
  };
15336
15402
  };
15337
15403
  }
15404
+ //# sourceMappingURL=transitions.js.map
15338
15405
 
15339
15406
  /***/ }),
15340
15407
 
@@ -15373,7 +15440,7 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
15373
15440
 
15374
15441
  /*
15375
15442
  USER_PROPS_SAFELIST is to contain any string deemed safe for user props.
15376
- The startsWidth array will contain the start of any accepted user-prop that
15443
+ The startsWidth array will contain the start of any accepted user-prop that
15377
15444
  starts with these characters.
15378
15445
  The exactMatch will contain a list of exact prop names that are accepted.
15379
15446
  */
@@ -15382,6 +15449,7 @@ var USER_PROPS_SAFELIST = {
15382
15449
  startsWith: ["data-", "aria-"],
15383
15450
  exactMatch: []
15384
15451
  };
15452
+
15385
15453
  /**
15386
15454
  * doesPropStartWith: Function that takes a prop's key and runs it against all
15387
15455
  * options in the USER_PROPS_SAFELIST and checks to see if it starts with any
@@ -15390,7 +15458,6 @@ var USER_PROPS_SAFELIST = {
15390
15458
  * @returns {Boolean}: returns true if the key starts with an option or false if
15391
15459
  * otherwise
15392
15460
  */
15393
-
15394
15461
  var doesPropStartWith = function (key) {
15395
15462
  var startsWith = false;
15396
15463
  USER_PROPS_SAFELIST.startsWith.forEach(function (starterString) {
@@ -15467,14 +15534,15 @@ var getSafeUserProps = function (props) {
15467
15534
  /**
15468
15535
  * Wraps a component and adds safe user props
15469
15536
  *
15470
- * @param {ReactNode} component: parent component
15537
+ * @param {ReactElement} component: parent component
15471
15538
  * @param {Object} props: props to be filtered
15472
- * @returns {ReactNode} modified component
15539
+ * @returns {ReactElement} modified component
15473
15540
  */
15474
15541
 
15475
15542
  var withSafeUserProps = function (component, props) {
15476
15543
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.cloneElement(component, getSafeUserProps(props));
15477
15544
  };
15545
+ //# sourceMappingURL=user-props.js.map
15478
15546
 
15479
15547
  /***/ }),
15480
15548