victory-pie 36.4.1 → 36.5.2

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.
@@ -460,7 +460,7 @@ var Slice = function (props) {
460
460
  }));
461
461
  };
462
462
 
463
- Slice.propTypes = _objectSpread(_objectSpread({}, victory_core__WEBPACK_IMPORTED_MODULE_6__.primitiveProps), {}, {
463
+ Slice.propTypes = _objectSpread(_objectSpread({}, victory_core__WEBPACK_IMPORTED_MODULE_6__.CommonProps.primitiveProps), {}, {
464
464
  cornerRadius: prop_types__WEBPACK_IMPORTED_MODULE_7___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_7___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_7___default().func)]),
465
465
  datum: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().object),
466
466
  innerRadius: prop_types__WEBPACK_IMPORTED_MODULE_7___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_7___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_7___default().func)]),
@@ -473,7 +473,7 @@ Slice.propTypes = _objectSpread(_objectSpread({}, victory_core__WEBPACK_IMPORTED
473
473
  sliceStartAngle: prop_types__WEBPACK_IMPORTED_MODULE_7___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_7___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_7___default().func)])
474
474
  });
475
475
  Slice.defaultProps = {
476
- pathComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_8__["default"], null),
476
+ pathComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_8__.Path, null),
477
477
  role: "presentation",
478
478
  shapeRendering: "auto"
479
479
  };
@@ -514,7 +514,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
514
514
 
515
515
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
516
516
 
517
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
517
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
518
518
 
519
519
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
520
520
 
@@ -524,9 +524,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
524
524
 
525
525
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
526
526
 
527
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
528
-
529
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
527
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
530
528
 
531
529
  /*eslint no-magic-numbers: ["error", { "ignore": [-1, 0, 1, 2] }]*/
532
530
 
@@ -584,13 +582,10 @@ var VictoryPie = /*#__PURE__*/function (_React$Component) {
584
582
  return VictoryPie;
585
583
  }((react__WEBPACK_IMPORTED_MODULE_0___default().Component));
586
584
 
587
- _defineProperty(VictoryPie, "animationWhitelist", ["data", "endAngle", "height", "innerRadius", "cornerRadius", "padAngle", "padding", "colorScale", "startAngle", "style", "width"]);
588
-
589
- _defineProperty(VictoryPie, "displayName", "VictoryPie");
590
-
591
- _defineProperty(VictoryPie, "role", "pie");
592
-
593
- _defineProperty(VictoryPie, "defaultTransitions", {
585
+ VictoryPie.animationWhitelist = ["data", "endAngle", "height", "innerRadius", "cornerRadius", "padAngle", "padding", "colorScale", "startAngle", "style", "width"];
586
+ VictoryPie.displayName = "VictoryPie";
587
+ VictoryPie.role = "pie";
588
+ VictoryPie.defaultTransitions = {
594
589
  onExit: {
595
590
  duration: 500,
596
591
  before: function () {
@@ -615,9 +610,8 @@ _defineProperty(VictoryPie, "defaultTransitions", {
615
610
  };
616
611
  }
617
612
  }
618
- });
619
-
620
- _defineProperty(VictoryPie, "propTypes", {
613
+ };
614
+ VictoryPie.propTypes = {
621
615
  animate: prop_types__WEBPACK_IMPORTED_MODULE_3___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_3___default().bool), (prop_types__WEBPACK_IMPORTED_MODULE_3___default().object)]),
622
616
  colorScale: prop_types__WEBPACK_IMPORTED_MODULE_3___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_3___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_3___default().string)), prop_types__WEBPACK_IMPORTED_MODULE_3___default().oneOf(["grayscale", "qualitative", "heatmap", "warm", "cool", "red", "green", "blue"])]),
623
617
  containerComponent: (prop_types__WEBPACK_IMPORTED_MODULE_3___default().element),
@@ -677,9 +671,8 @@ _defineProperty(VictoryPie, "propTypes", {
677
671
  width: victory_core__WEBPACK_IMPORTED_MODULE_4__.nonNegative,
678
672
  x: prop_types__WEBPACK_IMPORTED_MODULE_3___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_3___default().func), victory_core__WEBPACK_IMPORTED_MODULE_4__.allOfType([victory_core__WEBPACK_IMPORTED_MODULE_4__.integer, victory_core__WEBPACK_IMPORTED_MODULE_4__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_3___default().string), prop_types__WEBPACK_IMPORTED_MODULE_3___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_3___default().string))]),
679
673
  y: prop_types__WEBPACK_IMPORTED_MODULE_3___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_3___default().func), victory_core__WEBPACK_IMPORTED_MODULE_4__.allOfType([victory_core__WEBPACK_IMPORTED_MODULE_4__.integer, victory_core__WEBPACK_IMPORTED_MODULE_4__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_3___default().string), prop_types__WEBPACK_IMPORTED_MODULE_3___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_3___default().string))])
680
- });
681
-
682
- _defineProperty(VictoryPie, "defaultProps", {
674
+ };
675
+ VictoryPie.defaultProps = {
683
676
  data: [{
684
677
  x: "A",
685
678
  y: 1
@@ -698,22 +691,20 @@ _defineProperty(VictoryPie, "defaultProps", {
698
691
  }],
699
692
  standalone: true,
700
693
  dataComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_slice__WEBPACK_IMPORTED_MODULE_5__["default"], null),
701
- labelComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_6__["default"], null),
702
- containerComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_7__["default"], null),
694
+ labelComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_6__.VictoryLabel, null),
695
+ containerComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_7__.VictoryContainer, null),
703
696
  groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("g", null),
704
697
  sortOrder: "ascending",
705
- theme: victory_core__WEBPACK_IMPORTED_MODULE_8__["default"].grayscale
706
- });
698
+ theme: victory_core__WEBPACK_IMPORTED_MODULE_8__.VictoryTheme.grayscale
699
+ };
707
700
 
708
- _defineProperty(VictoryPie, "getBaseProps", function (props) {
701
+ VictoryPie.getBaseProps = function (props) {
709
702
  return (0,_helper_methods__WEBPACK_IMPORTED_MODULE_9__.getBaseProps)(props, fallbackProps);
710
- });
711
-
712
- _defineProperty(VictoryPie, "getData", victory_core__WEBPACK_IMPORTED_MODULE_10__.getData);
713
-
714
- _defineProperty(VictoryPie, "expectedComponents", ["dataComponent", "labelComponent", "groupComponent", "containerComponent"]);
703
+ };
715
704
 
716
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,victory_core__WEBPACK_IMPORTED_MODULE_11__["default"])(VictoryPie));
705
+ VictoryPie.getData = victory_core__WEBPACK_IMPORTED_MODULE_10__.getData;
706
+ VictoryPie.expectedComponents = ["dataComponent", "labelComponent", "groupComponent", "containerComponent"];
707
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,victory_core__WEBPACK_IMPORTED_MODULE_11__.addEvents)(VictoryPie));
717
708
 
718
709
  /***/ }),
719
710
 
@@ -6067,7 +6058,7 @@ module.exports = checkPropTypes;
6067
6058
 
6068
6059
 
6069
6060
 
6070
- var ReactIs = __webpack_require__(/*! react-is */ "../../../node_modules/react-is/index.js");
6061
+ var ReactIs = __webpack_require__(/*! react-is */ "../../../node_modules/prop-types/node_modules/react-is/index.js");
6071
6062
  var assign = __webpack_require__(/*! object-assign */ "../../../node_modules/object-assign/index.js");
6072
6063
 
6073
6064
  var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "../../../node_modules/prop-types/lib/ReactPropTypesSecret.js");
@@ -6686,7 +6677,7 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
6686
6677
  */
6687
6678
 
6688
6679
  if (true) {
6689
- var ReactIs = __webpack_require__(/*! react-is */ "../../../node_modules/react-is/index.js");
6680
+ var ReactIs = __webpack_require__(/*! react-is */ "../../../node_modules/prop-types/node_modules/react-is/index.js");
6690
6681
 
6691
6682
  // By explicitly using `prop-types` you are opting into new development behavior.
6692
6683
  // http://fb.me/prop-types-in-prod
@@ -6731,154 +6722,10 @@ module.exports = Function.call.bind(Object.prototype.hasOwnProperty);
6731
6722
 
6732
6723
  /***/ }),
6733
6724
 
6734
- /***/ "../../../node_modules/react-fast-compare/index.js":
6735
- /*!*********************************************************!*\
6736
- !*** ../../../node_modules/react-fast-compare/index.js ***!
6737
- \*********************************************************/
6738
- /***/ ((module) => {
6739
-
6740
- /* global Map:readonly, Set:readonly, ArrayBuffer:readonly */
6741
-
6742
- var hasElementType = typeof Element !== 'undefined';
6743
- var hasMap = typeof Map === 'function';
6744
- var hasSet = typeof Set === 'function';
6745
- var hasArrayBuffer = typeof ArrayBuffer === 'function' && !!ArrayBuffer.isView;
6746
-
6747
- // Note: We **don't** need `envHasBigInt64Array` in fde es6/index.js
6748
-
6749
- function equal(a, b) {
6750
- // START: fast-deep-equal es6/index.js 3.1.1
6751
- if (a === b) return true;
6752
-
6753
- if (a && b && typeof a == 'object' && typeof b == 'object') {
6754
- if (a.constructor !== b.constructor) return false;
6755
-
6756
- var length, i, keys;
6757
- if (Array.isArray(a)) {
6758
- length = a.length;
6759
- if (length != b.length) return false;
6760
- for (i = length; i-- !== 0;)
6761
- if (!equal(a[i], b[i])) return false;
6762
- return true;
6763
- }
6764
-
6765
- // START: Modifications:
6766
- // 1. Extra `has<Type> &&` helpers in initial condition allow es6 code
6767
- // to co-exist with es5.
6768
- // 2. Replace `for of` with es5 compliant iteration using `for`.
6769
- // Basically, take:
6770
- //
6771
- // ```js
6772
- // for (i of a.entries())
6773
- // if (!b.has(i[0])) return false;
6774
- // ```
6775
- //
6776
- // ... and convert to:
6777
- //
6778
- // ```js
6779
- // it = a.entries();
6780
- // while (!(i = it.next()).done)
6781
- // if (!b.has(i.value[0])) return false;
6782
- // ```
6783
- //
6784
- // **Note**: `i` access switches to `i.value`.
6785
- var it;
6786
- if (hasMap && (a instanceof Map) && (b instanceof Map)) {
6787
- if (a.size !== b.size) return false;
6788
- it = a.entries();
6789
- while (!(i = it.next()).done)
6790
- if (!b.has(i.value[0])) return false;
6791
- it = a.entries();
6792
- while (!(i = it.next()).done)
6793
- if (!equal(i.value[1], b.get(i.value[0]))) return false;
6794
- return true;
6795
- }
6796
-
6797
- if (hasSet && (a instanceof Set) && (b instanceof Set)) {
6798
- if (a.size !== b.size) return false;
6799
- it = a.entries();
6800
- while (!(i = it.next()).done)
6801
- if (!b.has(i.value[0])) return false;
6802
- return true;
6803
- }
6804
- // END: Modifications
6805
-
6806
- if (hasArrayBuffer && ArrayBuffer.isView(a) && ArrayBuffer.isView(b)) {
6807
- length = a.length;
6808
- if (length != b.length) return false;
6809
- for (i = length; i-- !== 0;)
6810
- if (a[i] !== b[i]) return false;
6811
- return true;
6812
- }
6813
-
6814
- if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
6815
- if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();
6816
- if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();
6817
-
6818
- keys = Object.keys(a);
6819
- length = keys.length;
6820
- if (length !== Object.keys(b).length) return false;
6821
-
6822
- for (i = length; i-- !== 0;)
6823
- if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
6824
- // END: fast-deep-equal
6825
-
6826
- // START: react-fast-compare
6827
- // custom handling for DOM elements
6828
- if (hasElementType && a instanceof Element) return false;
6829
-
6830
- // custom handling for React/Preact
6831
- for (i = length; i-- !== 0;) {
6832
- if ((keys[i] === '_owner' || keys[i] === '__v' || keys[i] === '__o') && a.$$typeof) {
6833
- // React-specific: avoid traversing React elements' _owner
6834
- // Preact-specific: avoid traversing Preact elements' __v and __o
6835
- // __v = $_original / $_vnode
6836
- // __o = $_owner
6837
- // These properties contain circular references and are not needed when
6838
- // comparing the actual elements (and not their owners)
6839
- // .$$typeof and ._store on just reasonable markers of elements
6840
-
6841
- continue;
6842
- }
6843
-
6844
- // all other properties should be traversed as usual
6845
- if (!equal(a[keys[i]], b[keys[i]])) return false;
6846
- }
6847
- // END: react-fast-compare
6848
-
6849
- // START: fast-deep-equal
6850
- return true;
6851
- }
6852
-
6853
- return a !== a && b !== b;
6854
- }
6855
- // end fast-deep-equal
6856
-
6857
- module.exports = function isEqual(a, b) {
6858
- try {
6859
- return equal(a, b);
6860
- } catch (error) {
6861
- if (((error.message || '').match(/stack|recursion/i))) {
6862
- // warn on circular references, don't crash
6863
- // browsers give this different errors name and messages:
6864
- // chrome/safari: "RangeError", "Maximum call stack size exceeded"
6865
- // firefox: "InternalError", too much recursion"
6866
- // edge: "Error", "Out of stack space"
6867
- console.warn('react-fast-compare cannot handle circular refs');
6868
- return false;
6869
- }
6870
- // some other error. we should definitely know about these
6871
- throw error;
6872
- }
6873
- };
6874
-
6875
-
6876
- /***/ }),
6877
-
6878
- /***/ "../../../node_modules/react-is/cjs/react-is.development.js":
6879
- /*!******************************************************************!*\
6880
- !*** ../../../node_modules/react-is/cjs/react-is.development.js ***!
6881
- \******************************************************************/
6725
+ /***/ "../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js":
6726
+ /*!******************************************************************************************!*\
6727
+ !*** ../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js ***!
6728
+ \******************************************************************************************/
6882
6729
  /***/ ((__unused_webpack_module, exports) => {
6883
6730
 
6884
6731
  "use strict";
@@ -7067,99 +6914,243 @@ exports.typeOf = typeOf;
7067
6914
 
7068
6915
  /***/ }),
7069
6916
 
7070
- /***/ "../../../node_modules/react-is/index.js":
7071
- /*!***********************************************!*\
7072
- !*** ../../../node_modules/react-is/index.js ***!
7073
- \***********************************************/
6917
+ /***/ "../../../node_modules/prop-types/node_modules/react-is/index.js":
6918
+ /*!***********************************************************************!*\
6919
+ !*** ../../../node_modules/prop-types/node_modules/react-is/index.js ***!
6920
+ \***********************************************************************/
7074
6921
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
7075
6922
 
7076
6923
  "use strict";
7077
6924
 
7078
6925
 
7079
6926
  if (false) {} else {
7080
- module.exports = __webpack_require__(/*! ./cjs/react-is.development.js */ "../../../node_modules/react-is/cjs/react-is.development.js");
6927
+ module.exports = __webpack_require__(/*! ./cjs/react-is.development.js */ "../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js");
7081
6928
  }
7082
6929
 
7083
6930
 
7084
6931
  /***/ }),
7085
6932
 
7086
- /***/ "../../victory-core/es/victory-animation/util.js":
7087
- /*!*******************************************************!*\
7088
- !*** ../../victory-core/es/victory-animation/util.js ***!
7089
- \*******************************************************/
7090
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
7091
-
7092
- "use strict";
7093
- __webpack_require__.r(__webpack_exports__);
7094
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
7095
- /* harmony export */ "interpolateFunction": () => (/* binding */ interpolateFunction),
7096
- /* harmony export */ "interpolateImmediate": () => (/* binding */ interpolateImmediate),
7097
- /* harmony export */ "interpolateObject": () => (/* binding */ interpolateObject),
7098
- /* harmony export */ "interpolateString": () => (/* binding */ interpolateString),
7099
- /* harmony export */ "isInterpolatable": () => (/* binding */ isInterpolatable),
7100
- /* harmony export */ "victoryInterpolator": () => (/* binding */ victoryInterpolator)
7101
- /* harmony export */ });
7102
- /* harmony import */ var lodash_orderBy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/orderBy */ "../../../node_modules/lodash/orderBy.js");
7103
- /* harmony import */ var lodash_orderBy__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_orderBy__WEBPACK_IMPORTED_MODULE_0__);
7104
- /* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/isPlainObject */ "../../../node_modules/lodash/isPlainObject.js");
7105
- /* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1__);
7106
- /* harmony import */ var victory_vendor_d3_interpolate__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! victory-vendor/d3-interpolate */ "../../victory-vendor/node_modules/d3-interpolate/src/value.js");
7107
-
7108
-
6933
+ /***/ "../../../node_modules/react-fast-compare/index.js":
6934
+ /*!*********************************************************!*\
6935
+ !*** ../../../node_modules/react-fast-compare/index.js ***!
6936
+ \*********************************************************/
6937
+ /***/ ((module) => {
7109
6938
 
7110
- var isInterpolatable = function (obj) {
7111
- // d3 turns null into 0 and undefined into NaN, which we don't want.
7112
- if (obj !== null) {
7113
- switch (typeof obj) {
7114
- case "undefined":
7115
- return false;
6939
+ /* global Map:readonly, Set:readonly, ArrayBuffer:readonly */
7116
6940
 
7117
- case "number":
7118
- // The standard `isNaN` is fine in this case since we already know the
7119
- // type is number.
7120
- return !isNaN(obj) && obj !== Number.POSITIVE_INFINITY && obj !== Number.NEGATIVE_INFINITY;
6941
+ var hasElementType = typeof Element !== 'undefined';
6942
+ var hasMap = typeof Map === 'function';
6943
+ var hasSet = typeof Set === 'function';
6944
+ var hasArrayBuffer = typeof ArrayBuffer === 'function' && !!ArrayBuffer.isView;
7121
6945
 
7122
- case "string":
7123
- // d3 might not *actually* be able to interpolate the string, but it
7124
- // won't cause any issues to let it try.
7125
- return true;
6946
+ // Note: We **don't** need `envHasBigInt64Array` in fde es6/index.js
7126
6947
 
7127
- case "boolean":
7128
- // d3 turns Booleans into integers, which we don't want. Sure, we could
7129
- // interpolate from 0 -> 1, but we'd be sending a non-Boolean to
7130
- // something expecting a Boolean.
7131
- return false;
6948
+ function equal(a, b) {
6949
+ // START: fast-deep-equal es6/index.js 3.1.1
6950
+ if (a === b) return true;
7132
6951
 
7133
- case "object":
7134
- // Don't try to interpolate class instances (except Date or Array).
7135
- return obj instanceof Date || Array.isArray(obj) || lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default()(obj);
6952
+ if (a && b && typeof a == 'object' && typeof b == 'object') {
6953
+ if (a.constructor !== b.constructor) return false;
7136
6954
 
7137
- case "function":
7138
- // Careful! There may be extra properties on function objects that the
7139
- // component expects to access - for instance, it may be a `d3.scale()`
7140
- // function, which has its own methods attached. We don't know if the
7141
- // component is only going to call the function (in which case it's
7142
- // safely interpolatable) or if it's going to access special properties
7143
- // (in which case our function generated from `interpolateFunction` will
7144
- // most likely cause an error. We could check for enumerable properties
7145
- // on the function object here to see if it's a "plain" function, but
7146
- // let's just require that components prevent such function props from
7147
- // being animated in the first place.
7148
- return true;
6955
+ var length, i, keys;
6956
+ if (Array.isArray(a)) {
6957
+ length = a.length;
6958
+ if (length != b.length) return false;
6959
+ for (i = length; i-- !== 0;)
6960
+ if (!equal(a[i], b[i])) return false;
6961
+ return true;
7149
6962
  }
7150
- }
7151
6963
 
7152
- return false;
7153
- };
7154
- /**
7155
- * Interpolate immediately to the end value at the given step `when`.
7156
- * Some nicer default behavior might be to jump at the halfway point or return
7157
- * `a` if `t` is 0 (instead of always returning `b`). But d3's default
7158
- * interpolator does not do these things:
7159
- *
7160
- * d3.interpolate('aaa', 'bbb')(0) === 'bbb'
7161
- *
7162
- * ...and things might get wonky if we don't replicate that behavior.
6964
+ // START: Modifications:
6965
+ // 1. Extra `has<Type> &&` helpers in initial condition allow es6 code
6966
+ // to co-exist with es5.
6967
+ // 2. Replace `for of` with es5 compliant iteration using `for`.
6968
+ // Basically, take:
6969
+ //
6970
+ // ```js
6971
+ // for (i of a.entries())
6972
+ // if (!b.has(i[0])) return false;
6973
+ // ```
6974
+ //
6975
+ // ... and convert to:
6976
+ //
6977
+ // ```js
6978
+ // it = a.entries();
6979
+ // while (!(i = it.next()).done)
6980
+ // if (!b.has(i.value[0])) return false;
6981
+ // ```
6982
+ //
6983
+ // **Note**: `i` access switches to `i.value`.
6984
+ var it;
6985
+ if (hasMap && (a instanceof Map) && (b instanceof Map)) {
6986
+ if (a.size !== b.size) return false;
6987
+ it = a.entries();
6988
+ while (!(i = it.next()).done)
6989
+ if (!b.has(i.value[0])) return false;
6990
+ it = a.entries();
6991
+ while (!(i = it.next()).done)
6992
+ if (!equal(i.value[1], b.get(i.value[0]))) return false;
6993
+ return true;
6994
+ }
6995
+
6996
+ if (hasSet && (a instanceof Set) && (b instanceof Set)) {
6997
+ if (a.size !== b.size) return false;
6998
+ it = a.entries();
6999
+ while (!(i = it.next()).done)
7000
+ if (!b.has(i.value[0])) return false;
7001
+ return true;
7002
+ }
7003
+ // END: Modifications
7004
+
7005
+ if (hasArrayBuffer && ArrayBuffer.isView(a) && ArrayBuffer.isView(b)) {
7006
+ length = a.length;
7007
+ if (length != b.length) return false;
7008
+ for (i = length; i-- !== 0;)
7009
+ if (a[i] !== b[i]) return false;
7010
+ return true;
7011
+ }
7012
+
7013
+ if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
7014
+ if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();
7015
+ if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();
7016
+
7017
+ keys = Object.keys(a);
7018
+ length = keys.length;
7019
+ if (length !== Object.keys(b).length) return false;
7020
+
7021
+ for (i = length; i-- !== 0;)
7022
+ if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
7023
+ // END: fast-deep-equal
7024
+
7025
+ // START: react-fast-compare
7026
+ // custom handling for DOM elements
7027
+ if (hasElementType && a instanceof Element) return false;
7028
+
7029
+ // custom handling for React/Preact
7030
+ for (i = length; i-- !== 0;) {
7031
+ if ((keys[i] === '_owner' || keys[i] === '__v' || keys[i] === '__o') && a.$$typeof) {
7032
+ // React-specific: avoid traversing React elements' _owner
7033
+ // Preact-specific: avoid traversing Preact elements' __v and __o
7034
+ // __v = $_original / $_vnode
7035
+ // __o = $_owner
7036
+ // These properties contain circular references and are not needed when
7037
+ // comparing the actual elements (and not their owners)
7038
+ // .$$typeof and ._store on just reasonable markers of elements
7039
+
7040
+ continue;
7041
+ }
7042
+
7043
+ // all other properties should be traversed as usual
7044
+ if (!equal(a[keys[i]], b[keys[i]])) return false;
7045
+ }
7046
+ // END: react-fast-compare
7047
+
7048
+ // START: fast-deep-equal
7049
+ return true;
7050
+ }
7051
+
7052
+ return a !== a && b !== b;
7053
+ }
7054
+ // end fast-deep-equal
7055
+
7056
+ module.exports = function isEqual(a, b) {
7057
+ try {
7058
+ return equal(a, b);
7059
+ } catch (error) {
7060
+ if (((error.message || '').match(/stack|recursion/i))) {
7061
+ // warn on circular references, don't crash
7062
+ // browsers give this different errors name and messages:
7063
+ // chrome/safari: "RangeError", "Maximum call stack size exceeded"
7064
+ // firefox: "InternalError", too much recursion"
7065
+ // edge: "Error", "Out of stack space"
7066
+ console.warn('react-fast-compare cannot handle circular refs');
7067
+ return false;
7068
+ }
7069
+ // some other error. we should definitely know about these
7070
+ throw error;
7071
+ }
7072
+ };
7073
+
7074
+
7075
+ /***/ }),
7076
+
7077
+ /***/ "../../victory-core/es/victory-animation/util.js":
7078
+ /*!*******************************************************!*\
7079
+ !*** ../../victory-core/es/victory-animation/util.js ***!
7080
+ \*******************************************************/
7081
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
7082
+
7083
+ "use strict";
7084
+ __webpack_require__.r(__webpack_exports__);
7085
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
7086
+ /* harmony export */ "interpolateFunction": () => (/* binding */ interpolateFunction),
7087
+ /* harmony export */ "interpolateImmediate": () => (/* binding */ interpolateImmediate),
7088
+ /* harmony export */ "interpolateObject": () => (/* binding */ interpolateObject),
7089
+ /* harmony export */ "interpolateString": () => (/* binding */ interpolateString),
7090
+ /* harmony export */ "isInterpolatable": () => (/* binding */ isInterpolatable),
7091
+ /* harmony export */ "victoryInterpolator": () => (/* binding */ victoryInterpolator)
7092
+ /* harmony export */ });
7093
+ /* harmony import */ var lodash_orderBy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/orderBy */ "../../../node_modules/lodash/orderBy.js");
7094
+ /* harmony import */ var lodash_orderBy__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_orderBy__WEBPACK_IMPORTED_MODULE_0__);
7095
+ /* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/isPlainObject */ "../../../node_modules/lodash/isPlainObject.js");
7096
+ /* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1__);
7097
+ /* harmony import */ var victory_vendor_d3_interpolate__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! victory-vendor/d3-interpolate */ "../../victory-vendor/node_modules/d3-interpolate/src/value.js");
7098
+
7099
+
7100
+
7101
+ var isInterpolatable = function (obj) {
7102
+ // d3 turns null into 0 and undefined into NaN, which we don't want.
7103
+ if (obj !== null) {
7104
+ switch (typeof obj) {
7105
+ case "undefined":
7106
+ return false;
7107
+
7108
+ case "number":
7109
+ // The standard `isNaN` is fine in this case since we already know the
7110
+ // type is number.
7111
+ return !isNaN(obj) && obj !== Number.POSITIVE_INFINITY && obj !== Number.NEGATIVE_INFINITY;
7112
+
7113
+ case "string":
7114
+ // d3 might not *actually* be able to interpolate the string, but it
7115
+ // won't cause any issues to let it try.
7116
+ return true;
7117
+
7118
+ case "boolean":
7119
+ // d3 turns Booleans into integers, which we don't want. Sure, we could
7120
+ // interpolate from 0 -> 1, but we'd be sending a non-Boolean to
7121
+ // something expecting a Boolean.
7122
+ return false;
7123
+
7124
+ case "object":
7125
+ // Don't try to interpolate class instances (except Date or Array).
7126
+ return obj instanceof Date || Array.isArray(obj) || lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default()(obj);
7127
+
7128
+ case "function":
7129
+ // Careful! There may be extra properties on function objects that the
7130
+ // component expects to access - for instance, it may be a `d3.scale()`
7131
+ // function, which has its own methods attached. We don't know if the
7132
+ // component is only going to call the function (in which case it's
7133
+ // safely interpolatable) or if it's going to access special properties
7134
+ // (in which case our function generated from `interpolateFunction` will
7135
+ // most likely cause an error). We could check for enumerable properties
7136
+ // on the function object here to see if it's a "plain" function, but
7137
+ // let's just require that components prevent such function props from
7138
+ // being animated in the first place.
7139
+ return true;
7140
+ }
7141
+ }
7142
+
7143
+ return false;
7144
+ };
7145
+ /**
7146
+ * Interpolate immediately to the end value at the given step `when`.
7147
+ * Some nicer default behavior might be to jump at the halfway point or return
7148
+ * `a` if `t` is 0 (instead of always returning `b`). But d3's default
7149
+ * interpolator does not do these things:
7150
+ *
7151
+ * d3.interpolate('aaa', 'bbb')(0) === 'bbb'
7152
+ *
7153
+ * ...and things might get wonky if we don't replicate that behavior.
7163
7154
  *
7164
7155
  * @param {any} a - Start value.
7165
7156
  * @param {any} b - End value.
@@ -7193,7 +7184,7 @@ var interpolateFunction = function (a, b) {
7193
7184
  }
7194
7185
 
7195
7186
  return function () {
7196
- /* eslint-disable no-invalid-this */
7187
+ /* eslint-disable no-invalid-this, prefer-rest-params */
7197
7188
  var aval = typeof a === "function" ? a.apply(this, arguments) : a;
7198
7189
  var bval = typeof b === "function" ? b.apply(this, arguments) : b;
7199
7190
  return (0,victory_vendor_d3_interpolate__WEBPACK_IMPORTED_MODULE_2__["default"])(aval, bval)(t);
@@ -7306,15 +7297,18 @@ var victoryInterpolator = function (a, b) {
7306
7297
  }
7307
7298
 
7308
7299
  if (lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default()(a) || lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default()(b)) {
7300
+ // @ts-expect-error These generics are tough, but they work :)
7309
7301
  return interpolateObject(a, b);
7310
7302
  }
7311
7303
 
7312
7304
  if (typeof a === "string" || typeof b === "string") {
7313
7305
  return interpolateString(a, b);
7314
- }
7306
+ } // @ts-expect-error These generics are tough, but they work :)
7307
+
7315
7308
 
7316
7309
  return (0,victory_vendor_d3_interpolate__WEBPACK_IMPORTED_MODULE_2__["default"])(a, b);
7317
7310
  };
7311
+ //# sourceMappingURL=util.js.map
7318
7312
 
7319
7313
  /***/ }),
7320
7314
 
@@ -7327,7 +7321,7 @@ var victoryInterpolator = function (a, b) {
7327
7321
  "use strict";
7328
7322
  __webpack_require__.r(__webpack_exports__);
7329
7323
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
7330
- /* harmony export */ "default": () => (/* binding */ VictoryAnimation)
7324
+ /* harmony export */ "VictoryAnimation": () => (/* binding */ VictoryAnimation)
7331
7325
  /* harmony export */ });
7332
7326
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
7333
7327
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
@@ -7358,7 +7352,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
7358
7352
 
7359
7353
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
7360
7354
 
7361
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
7355
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
7362
7356
 
7363
7357
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
7364
7358
 
@@ -7368,9 +7362,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
7368
7362
 
7369
7363
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
7370
7364
 
7371
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
7372
-
7373
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
7365
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
7374
7366
 
7375
7367
  /*global setTimeout:false */
7376
7368
 
@@ -7379,7 +7371,6 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
7379
7371
 
7380
7372
 
7381
7373
 
7382
-
7383
7374
  var VictoryAnimation = /*#__PURE__*/function (_React$Component) {
7384
7375
  _inherits(VictoryAnimation, _React$Component);
7385
7376
 
@@ -7393,6 +7384,56 @@ var VictoryAnimation = /*#__PURE__*/function (_React$Component) {
7393
7384
  _this = _super.call(this, props, context);
7394
7385
  /* defaults */
7395
7386
 
7387
+ _this.interpolator = void 0;
7388
+ _this.queue = void 0;
7389
+ _this.ease = void 0;
7390
+ _this.timer = void 0;
7391
+ _this.loopID = void 0;
7392
+
7393
+ _this.functionToBeRunEachFrame = function (elapsed, duration) {
7394
+ /*
7395
+ step can generate imprecise values, sometimes greater than 1
7396
+ if this happens set the state to 1 and return, cancelling the timer
7397
+ */
7398
+ duration = duration !== undefined ? duration : _this.props.duration;
7399
+ var step = duration ? elapsed / duration : 1;
7400
+
7401
+ if (step >= 1) {
7402
+ _this.setState({
7403
+ data: _this.interpolator(1),
7404
+ animationInfo: {
7405
+ progress: 1,
7406
+ animating: false,
7407
+ terminating: true
7408
+ }
7409
+ });
7410
+
7411
+ if (_this.loopID) {
7412
+ _this.timer.unsubscribe(_this.loopID);
7413
+ }
7414
+
7415
+ _this.queue.shift();
7416
+
7417
+ _this.traverseQueue();
7418
+
7419
+ return;
7420
+ }
7421
+ /*
7422
+ if we're not at the end of the timer, set the state by passing
7423
+ current step value that's transformed by the ease function to the
7424
+ interpolator, which is cached for performance whenever props are received
7425
+ */
7426
+
7427
+
7428
+ _this.setState({
7429
+ data: _this.interpolator(_this.ease(step)),
7430
+ animationInfo: {
7431
+ progress: step,
7432
+ animating: step < 1
7433
+ }
7434
+ });
7435
+ };
7436
+
7396
7437
  _this.state = {
7397
7438
  data: Array.isArray(_this.props.data) ? _this.props.data[0] : _this.props.data,
7398
7439
  animationInfo: {
@@ -7405,12 +7446,6 @@ var VictoryAnimation = /*#__PURE__*/function (_React$Component) {
7405
7446
  /* build easing function */
7406
7447
 
7407
7448
  _this.ease = victory_vendor_d3_ease__WEBPACK_IMPORTED_MODULE_2__[_this.toNewName(_this.props.easing)];
7408
- /*
7409
- There is no autobinding of this in ES6 classes
7410
- so we bind functionToBeRunEachFrame to current instance of victory animation class
7411
- */
7412
-
7413
- _this.functionToBeRunEachFrame = _this.functionToBeRunEachFrame.bind(_assertThisInitialized(_this));
7414
7449
  _this.timer = _this.context.animationTimer;
7415
7450
  return _this;
7416
7451
  }
@@ -7505,55 +7540,12 @@ var VictoryAnimation = /*#__PURE__*/function (_React$Component) {
7505
7540
  } else {
7506
7541
  this.loopID = this.timer.subscribe(this.functionToBeRunEachFrame, this.props.duration);
7507
7542
  }
7508
- } else if (this.props.onEnd) {
7509
- this.props.onEnd();
7510
- }
7511
- }
7512
- /* every frame we... */
7513
-
7514
- }, {
7515
- key: "functionToBeRunEachFrame",
7516
- value: function functionToBeRunEachFrame(elapsed, duration) {
7517
- /*
7518
- step can generate imprecise values, sometimes greater than 1
7519
- if this happens set the state to 1 and return, cancelling the timer
7520
- */
7521
- duration = duration !== undefined ? duration : this.props.duration;
7522
- var step = duration ? elapsed / duration : 1;
7523
-
7524
- if (step >= 1) {
7525
- this.setState({
7526
- data: this.interpolator(1),
7527
- animationInfo: {
7528
- progress: 1,
7529
- animating: false,
7530
- terminating: true
7531
- }
7532
- });
7533
-
7534
- if (this.loopID) {
7535
- this.timer.unsubscribe(this.loopID);
7536
- }
7537
-
7538
- this.queue.shift();
7539
- this.traverseQueue();
7540
- return;
7541
- }
7542
- /*
7543
- if we're not at the end of the timer, set the state by passing
7544
- current step value that's transformed by the ease function to the
7545
- interpolator, which is cached for performance whenever props are received
7546
- */
7547
-
7548
-
7549
- this.setState({
7550
- data: this.interpolator(this.ease(step)),
7551
- animationInfo: {
7552
- progress: step,
7553
- animating: step < 1
7554
- }
7555
- });
7543
+ } else if (this.props.onEnd) {
7544
+ this.props.onEnd();
7545
+ }
7556
7546
  }
7547
+ /* every frame we... */
7548
+
7557
7549
  }, {
7558
7550
  key: "render",
7559
7551
  value: function render() {
@@ -7563,28 +7555,23 @@ var VictoryAnimation = /*#__PURE__*/function (_React$Component) {
7563
7555
 
7564
7556
  return VictoryAnimation;
7565
7557
  }((react__WEBPACK_IMPORTED_MODULE_0___default().Component));
7566
-
7567
- _defineProperty(VictoryAnimation, "displayName", "VictoryAnimation");
7568
-
7569
- _defineProperty(VictoryAnimation, "propTypes", {
7558
+ VictoryAnimation.displayName = "VictoryAnimation";
7559
+ VictoryAnimation.propTypes = {
7570
7560
  children: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().func),
7571
7561
  data: prop_types__WEBPACK_IMPORTED_MODULE_4___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_4___default().object), (prop_types__WEBPACK_IMPORTED_MODULE_4___default().array)]),
7572
7562
  delay: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number),
7573
7563
  duration: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number),
7574
7564
  easing: prop_types__WEBPACK_IMPORTED_MODULE_4___default().oneOf(["back", "backIn", "backOut", "backInOut", "bounce", "bounceIn", "bounceOut", "bounceInOut", "circle", "circleIn", "circleOut", "circleInOut", "linear", "linearIn", "linearOut", "linearInOut", "cubic", "cubicIn", "cubicOut", "cubicInOut", "elastic", "elasticIn", "elasticOut", "elasticInOut", "exp", "expIn", "expOut", "expInOut", "poly", "polyIn", "polyOut", "polyInOut", "quad", "quadIn", "quadOut", "quadInOut", "sin", "sinIn", "sinOut", "sinInOut"]),
7575
7565
  onEnd: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().func)
7576
- });
7577
-
7578
- _defineProperty(VictoryAnimation, "defaultProps", {
7566
+ };
7567
+ VictoryAnimation.defaultProps = {
7579
7568
  data: {},
7580
7569
  delay: 0,
7581
7570
  duration: 1000,
7582
7571
  easing: "quadInOut"
7583
- });
7584
-
7585
- _defineProperty(VictoryAnimation, "contextType", _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_5__["default"]);
7586
-
7587
-
7572
+ };
7573
+ VictoryAnimation.contextType = _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_5__["default"];
7574
+ //# sourceMappingURL=victory-animation.js.map
7588
7575
 
7589
7576
  /***/ }),
7590
7577
 
@@ -7597,7 +7584,7 @@ _defineProperty(VictoryAnimation, "contextType", _victory_util_timer_context__WE
7597
7584
  "use strict";
7598
7585
  __webpack_require__.r(__webpack_exports__);
7599
7586
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
7600
- /* harmony export */ "default": () => (/* binding */ VictoryContainer)
7587
+ /* harmony export */ "VictoryContainer": () => (/* binding */ VictoryContainer)
7601
7588
  /* harmony export */ });
7602
7589
  /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isFunction */ "../../../node_modules/lodash/isFunction.js");
7603
7590
  /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_0__);
@@ -7625,12 +7612,14 @@ __webpack_require__.r(__webpack_exports__);
7625
7612
 
7626
7613
 
7627
7614
 
7628
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
7615
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
7629
7616
 
7630
7617
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
7631
7618
 
7632
7619
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
7633
7620
 
7621
+ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
7622
+
7634
7623
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
7635
7624
 
7636
7625
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
@@ -7639,7 +7628,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
7639
7628
 
7640
7629
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
7641
7630
 
7642
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
7631
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
7643
7632
 
7644
7633
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
7645
7634
 
@@ -7649,10 +7638,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
7649
7638
 
7650
7639
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
7651
7640
 
7652
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
7653
-
7654
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
7655
-
7641
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
7656
7642
 
7657
7643
 
7658
7644
 
@@ -7667,13 +7653,18 @@ var VictoryContainer = /*#__PURE__*/function (_React$Component) {
7667
7653
 
7668
7654
  var _super = _createSuper(VictoryContainer);
7669
7655
 
7656
+ // @ts-expect-error Ref will be initialized on mount
7657
+ // @ts-expect-error Ref will be initialized on mount
7670
7658
  function VictoryContainer(props) {
7671
7659
  var _this;
7672
7660
 
7673
7661
  _classCallCheck(this, VictoryContainer);
7674
7662
 
7675
7663
  _this = _super.call(this, props);
7676
- _this.containerId = !lodash_isObject__WEBPACK_IMPORTED_MODULE_1___default()(props) || props.containerId === undefined ? lodash_uniqueId__WEBPACK_IMPORTED_MODULE_2___default()("victory-container-") : props.containerId;
7664
+ _this.containerId = void 0;
7665
+ _this.portalRef = void 0;
7666
+ _this.containerRef = void 0;
7667
+ _this.shouldHandleWheel = void 0;
7677
7668
 
7678
7669
  _this.savePortalRef = function (portal) {
7679
7670
  _this.portalRef = portal;
@@ -7692,18 +7683,21 @@ var VictoryContainer = /*#__PURE__*/function (_React$Component) {
7692
7683
  return _this.portalRef.portalDeregister(key);
7693
7684
  };
7694
7685
 
7695
- _this.saveContainerRef = props && lodash_isFunction__WEBPACK_IMPORTED_MODULE_0___default()(props.containerRef) ? props.containerRef : function (container) {
7686
+ _this.saveContainerRef = function (container) {
7687
+ if (lodash_isFunction__WEBPACK_IMPORTED_MODULE_0___default()(_this.props.containerRef)) {
7688
+ _this.props.containerRef(container);
7689
+ }
7690
+
7696
7691
  _this.containerRef = container;
7697
7692
  return container;
7698
7693
  };
7699
- _this.shouldHandleWheel = props && props.events && props.events.onWheel;
7700
7694
 
7701
- if (_this.shouldHandleWheel) {
7702
- _this.handleWheel = function (e) {
7703
- return e.preventDefault();
7704
- };
7705
- }
7695
+ _this.handleWheel = function (e) {
7696
+ return e.preventDefault();
7697
+ };
7706
7698
 
7699
+ _this.containerId = !lodash_isObject__WEBPACK_IMPORTED_MODULE_1___default()(props) || props.containerId === undefined ? lodash_uniqueId__WEBPACK_IMPORTED_MODULE_2___default()("victory-container-") : props.containerId;
7700
+ _this.shouldHandleWheel = !!(props && props.events && props.events.onWheel);
7707
7701
  return _this;
7708
7702
  }
7709
7703
 
@@ -7796,7 +7790,7 @@ var VictoryContainer = /*#__PURE__*/function (_React$Component) {
7796
7790
  preserveAspectRatio: svgProps.preserveAspectRatio,
7797
7791
  style: portalSvgStyle
7798
7792
  };
7799
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default().createElement(_victory_portal_portal_context__WEBPACK_IMPORTED_MODULE_6__["default"].Provider, {
7793
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default().createElement(_victory_portal_portal_context__WEBPACK_IMPORTED_MODULE_6__.PortalContext.Provider, {
7800
7794
  value: {
7801
7795
  portalUpdate: this.portalUpdate,
7802
7796
  portalRegister: this.portalRegister,
@@ -7851,12 +7845,9 @@ var VictoryContainer = /*#__PURE__*/function (_React$Component) {
7851
7845
 
7852
7846
  return VictoryContainer;
7853
7847
  }((react__WEBPACK_IMPORTED_MODULE_5___default().Component));
7854
-
7855
- _defineProperty(VictoryContainer, "displayName", "VictoryContainer");
7856
-
7857
- _defineProperty(VictoryContainer, "role", "container");
7858
-
7859
- _defineProperty(VictoryContainer, "propTypes", {
7848
+ VictoryContainer.displayName = "VictoryContainer";
7849
+ VictoryContainer.role = "container";
7850
+ VictoryContainer.propTypes = {
7860
7851
  "aria-describedby": (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
7861
7852
  "aria-labelledby": (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
7862
7853
  children: prop_types__WEBPACK_IMPORTED_MODULE_9___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_9___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_9___default().node)), (prop_types__WEBPACK_IMPORTED_MODULE_9___default().node)]),
@@ -7885,19 +7876,16 @@ _defineProperty(VictoryContainer, "propTypes", {
7885
7876
  theme: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().object),
7886
7877
  title: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
7887
7878
  width: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_10__.nonNegative
7888
- });
7889
-
7890
- _defineProperty(VictoryContainer, "defaultProps", {
7879
+ };
7880
+ VictoryContainer.defaultProps = {
7891
7881
  className: "VictoryContainer",
7892
- portalComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default().createElement(_victory_portal_portal__WEBPACK_IMPORTED_MODULE_11__["default"], null),
7882
+ portalComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default().createElement(_victory_portal_portal__WEBPACK_IMPORTED_MODULE_11__.Portal, null),
7893
7883
  portalZIndex: 99,
7894
7884
  responsive: true,
7895
7885
  role: "img"
7896
- });
7897
-
7898
- _defineProperty(VictoryContainer, "contextType", _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_12__["default"]);
7899
-
7900
-
7886
+ };
7887
+ VictoryContainer.contextType = _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_12__["default"];
7888
+ //# sourceMappingURL=victory-container.js.map
7901
7889
 
7902
7890
  /***/ }),
7903
7891
 
@@ -7910,7 +7898,7 @@ _defineProperty(VictoryContainer, "contextType", _victory_util_timer_context__WE
7910
7898
  "use strict";
7911
7899
  __webpack_require__.r(__webpack_exports__);
7912
7900
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
7913
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
7901
+ /* harmony export */ "VictoryLabel": () => (/* binding */ VictoryLabel)
7914
7902
  /* harmony export */ });
7915
7903
  /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isEmpty */ "../../../node_modules/lodash/isEmpty.js");
7916
7904
  /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0__);
@@ -8460,6 +8448,7 @@ var VictoryLabel = function (props) {
8460
8448
  fontSize: currentStyle.fontSize || defaultStyles.fontSize,
8461
8449
  capHeight: capHeightPx,
8462
8450
  text: line,
8451
+ // @ts-expect-error TODO: This looks like a bug:
8463
8452
  textSize: _victory_util_textsize__WEBPACK_IMPORTED_MODULE_9__.approximateTextSize(line, currentStyle),
8464
8453
  lineHeight: currentLineHeight,
8465
8454
  backgroundPadding: getSingleValue(backgroundPadding, i)
@@ -8471,12 +8460,11 @@ var VictoryLabel = function (props) {
8471
8460
  var backgroundElement = getBackgroundElement(calculatedProps, tspanValues);
8472
8461
  var children = [backgroundElement, label];
8473
8462
  var backgroundWithLabel = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(props.groupComponent, {}, children);
8474
- return props.renderInPortal ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_victory_portal_victory_portal__WEBPACK_IMPORTED_MODULE_10__["default"], null, backgroundWithLabel) : backgroundWithLabel;
8463
+ return props.renderInPortal ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_victory_portal_victory_portal__WEBPACK_IMPORTED_MODULE_10__.VictoryPortal, null, backgroundWithLabel) : backgroundWithLabel;
8475
8464
  }
8476
8465
 
8477
- return props.renderInPortal ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_victory_portal_victory_portal__WEBPACK_IMPORTED_MODULE_10__["default"], null, label) : label;
8466
+ return props.renderInPortal ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_victory_portal_victory_portal__WEBPACK_IMPORTED_MODULE_10__.VictoryPortal, null, label) : label;
8478
8467
  };
8479
-
8480
8468
  VictoryLabel.displayName = "VictoryLabel";
8481
8469
  VictoryLabel.role = "label";
8482
8470
  VictoryLabel.defaultStyles = defaultStyles;
@@ -8491,6 +8479,7 @@ VictoryLabel.propTypes = {
8491
8479
  className: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().string),
8492
8480
  data: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().array),
8493
8481
  datum: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().any),
8482
+ // @ts-expect-error "Function is not assignable to string"
8494
8483
  desc: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_11___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func)]),
8495
8484
  direction: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOf(["rtl", "ltr", "inherit"]),
8496
8485
  dx: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_11___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func)]),
@@ -8503,8 +8492,8 @@ VictoryLabel.propTypes = {
8503
8492
  labelPlacement: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOf(["parallel", "perpendicular", "vertical"]),
8504
8493
  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)]),
8505
8494
  origin: prop_types__WEBPACK_IMPORTED_MODULE_11___default().shape({
8506
- x: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_12__.nonNegative,
8507
- y: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_12__.nonNegative
8495
+ x: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_12__.nonNegative.isRequired,
8496
+ y: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_12__.nonNegative.isRequired
8508
8497
  }),
8509
8498
  polar: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().bool),
8510
8499
  renderInPortal: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().bool),
@@ -8515,26 +8504,30 @@ VictoryLabel.propTypes = {
8515
8504
  style: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_11___default().object), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().array)]),
8516
8505
  tabIndex: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_11___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func)]),
8517
8506
  text: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_11___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().array)]),
8507
+ // @ts-expect-error Function is not assignable to string"
8518
8508
  textAnchor: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOf(["start", "middle", "end", "inherit"]), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func)]),
8519
8509
  textComponent: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().element),
8520
8510
  title: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().string),
8521
8511
  transform: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_11___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().object), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func)]),
8522
8512
  tspanComponent: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().element),
8513
+ // @ts-expect-error Function is not assignable to string"
8523
8514
  verticalAnchor: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOf(["start", "middle", "end"]), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func)]),
8515
+ // @ts-expect-error Number is not assignable to string
8524
8516
  x: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_11___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().string)]),
8517
+ // @ts-expect-error Number is not assignable to string
8525
8518
  y: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_11___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().string)])
8526
8519
  };
8527
8520
  VictoryLabel.defaultProps = {
8528
- backgroundComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_victory_primitives_rect__WEBPACK_IMPORTED_MODULE_13__["default"], null),
8521
+ backgroundComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_victory_primitives_rect__WEBPACK_IMPORTED_MODULE_13__.Rect, null),
8529
8522
  groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement("g", null),
8530
8523
  direction: "inherit",
8531
- textComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_victory_primitives_text__WEBPACK_IMPORTED_MODULE_14__["default"], null),
8532
- tspanComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_victory_primitives_tspan__WEBPACK_IMPORTED_MODULE_15__["default"], null),
8524
+ textComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_victory_primitives_text__WEBPACK_IMPORTED_MODULE_14__.Text, null),
8525
+ tspanComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_victory_primitives_tspan__WEBPACK_IMPORTED_MODULE_15__.TSpan, null),
8533
8526
  capHeight: 0.71,
8534
8527
  // Magic number from d3.
8535
8528
  lineHeight: 1
8536
8529
  };
8537
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (VictoryLabel);
8530
+ //# sourceMappingURL=victory-label.js.map
8538
8531
 
8539
8532
  /***/ }),
8540
8533
 
@@ -8547,19 +8540,19 @@ VictoryLabel.defaultProps = {
8547
8540
  "use strict";
8548
8541
  __webpack_require__.r(__webpack_exports__);
8549
8542
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
8550
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
8543
+ /* harmony export */ "PortalContext": () => (/* binding */ PortalContext)
8551
8544
  /* harmony export */ });
8552
8545
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
8553
8546
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
8554
8547
 
8548
+
8555
8549
  /**
8556
8550
  * The React context object consumers may use to access the context of the
8557
8551
  * portal.
8558
8552
  */
8559
-
8560
8553
  var PortalContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createContext({});
8561
8554
  PortalContext.displayName = "PortalContext";
8562
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (PortalContext);
8555
+ //# sourceMappingURL=portal-context.js.map
8563
8556
 
8564
8557
  /***/ }),
8565
8558
 
@@ -8572,7 +8565,7 @@ PortalContext.displayName = "PortalContext";
8572
8565
  "use strict";
8573
8566
  __webpack_require__.r(__webpack_exports__);
8574
8567
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
8575
- /* harmony export */ "default": () => (/* binding */ Portal)
8568
+ /* harmony export */ "Portal": () => (/* binding */ Portal)
8576
8569
  /* harmony export */ });
8577
8570
  /* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/keys */ "../../../node_modules/lodash/keys.js");
8578
8571
  /* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_keys__WEBPACK_IMPORTED_MODULE_0__);
@@ -8591,7 +8584,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
8591
8584
 
8592
8585
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
8593
8586
 
8594
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
8587
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
8595
8588
 
8596
8589
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
8597
8590
 
@@ -8601,10 +8594,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
8601
8594
 
8602
8595
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
8603
8596
 
8604
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
8605
-
8606
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
8607
-
8597
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
8608
8598
 
8609
8599
 
8610
8600
 
@@ -8620,32 +8610,31 @@ var Portal = /*#__PURE__*/function (_React$Component) {
8620
8610
  _classCallCheck(this, Portal);
8621
8611
 
8622
8612
  _this = _super.call(this, props);
8613
+ _this.map = void 0;
8614
+ _this.index = void 0;
8615
+
8616
+ _this.portalRegister = function () {
8617
+ return ++_this.index;
8618
+ };
8619
+
8620
+ _this.portalUpdate = function (key, element) {
8621
+ _this.map[key] = element;
8622
+
8623
+ _this.forceUpdate();
8624
+ };
8625
+
8626
+ _this.portalDeregister = function (key) {
8627
+ delete _this.map[key];
8628
+
8629
+ _this.forceUpdate();
8630
+ };
8631
+
8623
8632
  _this.map = {};
8624
8633
  _this.index = 1;
8625
- _this.portalUpdate = _this.portalUpdate.bind(_assertThisInitialized(_this));
8626
- _this.portalRegister = _this.portalRegister.bind(_assertThisInitialized(_this));
8627
- _this.portalDeregister = _this.portalDeregister.bind(_assertThisInitialized(_this));
8628
8634
  return _this;
8629
8635
  }
8630
8636
 
8631
8637
  _createClass(Portal, [{
8632
- key: "portalRegister",
8633
- value: function portalRegister() {
8634
- return ++this.index;
8635
- }
8636
- }, {
8637
- key: "portalUpdate",
8638
- value: function portalUpdate(key, element) {
8639
- this.map[key] = element;
8640
- this.forceUpdate();
8641
- }
8642
- }, {
8643
- key: "portalDeregister",
8644
- value: function portalDeregister(key) {
8645
- delete this.map[key];
8646
- this.forceUpdate();
8647
- }
8648
- }, {
8649
8638
  key: "getChildren",
8650
8639
  value: function getChildren() {
8651
8640
  var _this2 = this;
@@ -8667,18 +8656,15 @@ var Portal = /*#__PURE__*/function (_React$Component) {
8667
8656
 
8668
8657
  return Portal;
8669
8658
  }((react__WEBPACK_IMPORTED_MODULE_1___default().Component));
8670
-
8671
- _defineProperty(Portal, "displayName", "Portal");
8672
-
8673
- _defineProperty(Portal, "propTypes", {
8659
+ Portal.displayName = "Portal";
8660
+ Portal.propTypes = {
8674
8661
  className: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().string),
8675
8662
  height: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_3__.nonNegative,
8676
8663
  style: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().object),
8677
8664
  viewBox: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().string),
8678
8665
  width: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_3__.nonNegative
8679
- });
8680
-
8681
-
8666
+ };
8667
+ //# sourceMappingURL=portal.js.map
8682
8668
 
8683
8669
  /***/ }),
8684
8670
 
@@ -8691,7 +8677,7 @@ _defineProperty(Portal, "propTypes", {
8691
8677
  "use strict";
8692
8678
  __webpack_require__.r(__webpack_exports__);
8693
8679
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
8694
- /* harmony export */ "default": () => (/* binding */ VictoryPortal)
8680
+ /* harmony export */ "VictoryPortal": () => (/* binding */ VictoryPortal)
8695
8681
  /* harmony export */ });
8696
8682
  /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/lodash/defaults.js");
8697
8683
  /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_0__);
@@ -8712,7 +8698,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
8712
8698
 
8713
8699
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
8714
8700
 
8715
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
8701
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
8716
8702
 
8717
8703
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
8718
8704
 
@@ -8722,10 +8708,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
8722
8708
 
8723
8709
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
8724
8710
 
8725
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
8726
-
8727
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
8728
-
8711
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
8729
8712
 
8730
8713
 
8731
8714
 
@@ -8738,9 +8721,20 @@ var VictoryPortal = /*#__PURE__*/function (_React$Component) {
8738
8721
  var _super = _createSuper(VictoryPortal);
8739
8722
 
8740
8723
  function VictoryPortal() {
8724
+ var _this;
8725
+
8741
8726
  _classCallCheck(this, VictoryPortal);
8742
8727
 
8743
- return _super.apply(this, arguments);
8728
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
8729
+ args[_key] = arguments[_key];
8730
+ }
8731
+
8732
+ _this = _super.call.apply(_super, [this].concat(args));
8733
+ _this.checkedContext = void 0;
8734
+ _this.renderInPlace = void 0;
8735
+ _this.element = void 0;
8736
+ _this.portalKey = void 0;
8737
+ return _this;
8744
8738
  }
8745
8739
 
8746
8740
  _createClass(VictoryPortal, [{
@@ -8804,23 +8798,17 @@ var VictoryPortal = /*#__PURE__*/function (_React$Component) {
8804
8798
 
8805
8799
  return VictoryPortal;
8806
8800
  }((react__WEBPACK_IMPORTED_MODULE_1___default().Component));
8807
-
8808
- _defineProperty(VictoryPortal, "displayName", "VictoryPortal");
8809
-
8810
- _defineProperty(VictoryPortal, "role", "portal");
8811
-
8812
- _defineProperty(VictoryPortal, "propTypes", {
8801
+ VictoryPortal.displayName = "VictoryPortal";
8802
+ VictoryPortal.role = "portal";
8803
+ VictoryPortal.propTypes = {
8813
8804
  children: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().node),
8814
8805
  groupComponent: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().element)
8815
- });
8816
-
8817
- _defineProperty(VictoryPortal, "defaultProps", {
8806
+ };
8807
+ VictoryPortal.defaultProps = {
8818
8808
  groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("g", null)
8819
- });
8820
-
8821
- _defineProperty(VictoryPortal, "contextType", _portal_context__WEBPACK_IMPORTED_MODULE_5__["default"]);
8822
-
8823
-
8809
+ };
8810
+ VictoryPortal.contextType = _portal_context__WEBPACK_IMPORTED_MODULE_5__.PortalContext;
8811
+ //# sourceMappingURL=victory-portal.js.map
8824
8812
 
8825
8813
  /***/ }),
8826
8814
 
@@ -8833,7 +8821,7 @@ _defineProperty(VictoryPortal, "contextType", _portal_context__WEBPACK_IMPORTED_
8833
8821
  "use strict";
8834
8822
  __webpack_require__.r(__webpack_exports__);
8835
8823
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
8836
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
8824
+ /* harmony export */ "Path": () => (/* binding */ Path)
8837
8825
  /* harmony export */ });
8838
8826
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
8839
8827
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
@@ -8844,16 +8832,20 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
8844
8832
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
8845
8833
 
8846
8834
 
8847
-
8848
8835
  var Path = function (props) {
8849
8836
  // eslint-disable-next-line react/prop-types
8850
8837
  var desc = props.desc,
8851
8838
  rest = _objectWithoutProperties(props, _excluded);
8852
8839
 
8853
- return desc ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("path", rest, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("desc", null, desc)) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("path", rest);
8840
+ return desc ?
8841
+ /*#__PURE__*/
8842
+ // @ts-expect-error FIXME: "id cannot be a number"
8843
+ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("path", rest, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("desc", null, desc)) :
8844
+ /*#__PURE__*/
8845
+ // @ts-expect-error FIXME: "id cannot be a number"
8846
+ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("path", rest);
8854
8847
  };
8855
-
8856
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Path);
8848
+ //# sourceMappingURL=path.js.map
8857
8849
 
8858
8850
  /***/ }),
8859
8851
 
@@ -8866,33 +8858,37 @@ var Path = function (props) {
8866
8858
  "use strict";
8867
8859
  __webpack_require__.r(__webpack_exports__);
8868
8860
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
8869
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
8861
+ /* harmony export */ "Rect": () => (/* binding */ Rect)
8870
8862
  /* harmony export */ });
8871
8863
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
8872
8864
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
8873
8865
  var _excluded = ["desc"];
8874
8866
 
8875
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
8867
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
8876
8868
 
8877
8869
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
8878
8870
 
8879
8871
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
8880
8872
 
8881
8873
 
8882
-
8883
8874
  var Rect = function (props) {
8884
8875
  // eslint-disable-next-line react/prop-types
8885
8876
  var desc = props.desc,
8886
8877
  rest = _objectWithoutProperties(props, _excluded);
8887
8878
 
8888
- return desc ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("rect", _extends({
8879
+ return desc ?
8880
+ /*#__PURE__*/
8881
+ // @ts-expect-error FIXME: "id cannot be a number"
8882
+ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("rect", _extends({
8889
8883
  vectorEffect: "non-scaling-stroke"
8890
- }, rest), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("desc", null, desc)) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("rect", _extends({
8884
+ }, rest), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("desc", null, desc)) :
8885
+ /*#__PURE__*/
8886
+ // @ts-expect-error FIXME: "id cannot be a number"
8887
+ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("rect", _extends({
8891
8888
  vectorEffect: "non-scaling-stroke"
8892
8889
  }, rest));
8893
8890
  };
8894
-
8895
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Rect);
8891
+ //# sourceMappingURL=rect.js.map
8896
8892
 
8897
8893
  /***/ }),
8898
8894
 
@@ -8905,7 +8901,7 @@ var Rect = function (props) {
8905
8901
  "use strict";
8906
8902
  __webpack_require__.r(__webpack_exports__);
8907
8903
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
8908
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
8904
+ /* harmony export */ "Text": () => (/* binding */ Text)
8909
8905
  /* harmony export */ });
8910
8906
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
8911
8907
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
@@ -8919,22 +8915,24 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
8919
8915
 
8920
8916
 
8921
8917
 
8922
-
8923
8918
  var Text = function (props) {
8924
8919
  var children = props.children,
8925
8920
  title = props.title,
8926
8921
  desc = props.desc,
8927
8922
  rest = _objectWithoutProperties(props, _excluded);
8928
8923
 
8929
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("text", rest, title && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("title", null, title), desc && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("desc", null, desc), children);
8924
+ return (
8925
+ /*#__PURE__*/
8926
+ // @ts-expect-error FIXME: "id cannot be a number"
8927
+ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("text", rest, title && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("title", null, title), desc && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("desc", null, desc), children)
8928
+ );
8930
8929
  };
8931
-
8932
8930
  Text.propTypes = {
8933
8931
  children: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().node),
8934
8932
  desc: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string),
8935
8933
  title: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string)
8936
8934
  };
8937
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Text);
8935
+ //# sourceMappingURL=text.js.map
8938
8936
 
8939
8937
  /***/ }),
8940
8938
 
@@ -8947,17 +8945,19 @@ Text.propTypes = {
8947
8945
  "use strict";
8948
8946
  __webpack_require__.r(__webpack_exports__);
8949
8947
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
8950
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
8948
+ /* harmony export */ "TSpan": () => (/* binding */ TSpan)
8951
8949
  /* harmony export */ });
8952
8950
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
8953
8951
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
8954
8952
 
8955
-
8956
8953
  var TSpan = function (props) {
8957
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("tspan", props);
8954
+ return (
8955
+ /*#__PURE__*/
8956
+ // @ts-expect-error FIXME: "id cannot be a number"
8957
+ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("tspan", props)
8958
+ );
8958
8959
  };
8959
-
8960
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (TSpan);
8960
+ //# sourceMappingURL=tspan.js.map
8961
8961
 
8962
8962
  /***/ }),
8963
8963
 
@@ -8970,7 +8970,7 @@ var TSpan = function (props) {
8970
8970
  "use strict";
8971
8971
  __webpack_require__.r(__webpack_exports__);
8972
8972
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
8973
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
8973
+ /* harmony export */ "grayscale": () => (/* binding */ grayscale)
8974
8974
  /* harmony export */ });
8975
8975
  /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js");
8976
8976
  /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_0__);
@@ -9017,7 +9017,7 @@ var centeredLabelStyles = lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({
9017
9017
 
9018
9018
  var strokeLinecap = "round";
9019
9019
  var strokeLinejoin = "round";
9020
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
9020
+ var grayscale = {
9021
9021
  area: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({
9022
9022
  style: {
9023
9023
  data: {
@@ -9232,7 +9232,8 @@ var strokeLinejoin = "round";
9232
9232
  }
9233
9233
  }
9234
9234
  }, baseProps)
9235
- });
9235
+ };
9236
+ //# sourceMappingURL=grayscale.js.map
9236
9237
 
9237
9238
  /***/ }),
9238
9239
 
@@ -9245,7 +9246,7 @@ var strokeLinejoin = "round";
9245
9246
  "use strict";
9246
9247
  __webpack_require__.r(__webpack_exports__);
9247
9248
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
9248
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
9249
+ /* harmony export */ "material": () => (/* binding */ material)
9249
9250
  /* harmony export */ });
9250
9251
  /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js");
9251
9252
  /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_0__);
@@ -9302,7 +9303,7 @@ var centeredLabelStyles = lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({
9302
9303
  var strokeDasharray = "10, 5";
9303
9304
  var strokeLinecap = "round";
9304
9305
  var strokeLinejoin = "round";
9305
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
9306
+ var material = {
9306
9307
  area: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({
9307
9308
  style: {
9308
9309
  data: {
@@ -9534,7 +9535,8 @@ var strokeLinejoin = "round";
9534
9535
  }
9535
9536
  }
9536
9537
  }, baseProps)
9537
- });
9538
+ };
9539
+ //# sourceMappingURL=material.js.map
9538
9540
 
9539
9541
  /***/ }),
9540
9542
 
@@ -9547,16 +9549,18 @@ var strokeLinejoin = "round";
9547
9549
  "use strict";
9548
9550
  __webpack_require__.r(__webpack_exports__);
9549
9551
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
9550
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
9552
+ /* harmony export */ "VictoryTheme": () => (/* binding */ VictoryTheme)
9551
9553
  /* harmony export */ });
9552
- /* harmony import */ var _material__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./material */ "../../victory-core/es/victory-theme/material.js");
9553
- /* harmony import */ var _grayscale__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./grayscale */ "../../victory-core/es/victory-theme/grayscale.js");
9554
+ /* harmony import */ var _grayscale__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./grayscale */ "../../victory-core/es/victory-theme/grayscale.js");
9555
+ /* harmony import */ var _material__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./material */ "../../victory-core/es/victory-theme/material.js");
9554
9556
 
9555
9557
 
9556
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
9557
- material: _material__WEBPACK_IMPORTED_MODULE_0__["default"],
9558
- grayscale: _grayscale__WEBPACK_IMPORTED_MODULE_1__["default"]
9559
- });
9558
+
9559
+ var VictoryTheme = {
9560
+ grayscale: _grayscale__WEBPACK_IMPORTED_MODULE_0__.grayscale,
9561
+ material: _material__WEBPACK_IMPORTED_MODULE_1__.material
9562
+ };
9563
+ //# sourceMappingURL=victory-theme.js.map
9560
9564
 
9561
9565
  /***/ }),
9562
9566
 
@@ -9569,33 +9573,30 @@ __webpack_require__.r(__webpack_exports__);
9569
9573
  "use strict";
9570
9574
  __webpack_require__.r(__webpack_exports__);
9571
9575
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
9572
- /* harmony export */ "default": () => (/* binding */ VictoryTransition)
9576
+ /* harmony export */ "VictoryTransition": () => (/* binding */ VictoryTransition)
9573
9577
  /* harmony export */ });
9574
- /* harmony import */ var lodash_isObject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isObject */ "../../../node_modules/lodash/isObject.js");
9575
- /* harmony import */ var lodash_isObject__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isObject__WEBPACK_IMPORTED_MODULE_0__);
9576
- /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/pick */ "../../../node_modules/lodash/pick.js");
9577
- /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_pick__WEBPACK_IMPORTED_MODULE_1__);
9578
- /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/isFunction */ "../../../node_modules/lodash/isFunction.js");
9579
- /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_2__);
9580
- /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/lodash/defaults.js");
9581
- /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_3__);
9582
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "react");
9583
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
9584
- /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
9585
- /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_10__);
9586
- /* harmony import */ var _victory_animation_victory_animation__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../victory-animation/victory-animation */ "../../victory-core/es/victory-animation/victory-animation.js");
9587
- /* harmony import */ var _victory_util_collection__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../victory-util/collection */ "../../victory-core/es/victory-util/collection.js");
9588
- /* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../victory-util/helpers */ "../../victory-core/es/victory-util/helpers.js");
9589
- /* harmony import */ var _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../victory-util/timer-context */ "../../victory-core/es/victory-util/timer-context.js");
9590
- /* harmony import */ var _victory_util_transitions__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../victory-util/transitions */ "../../victory-core/es/victory-util/transitions.js");
9591
- /* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react-fast-compare */ "../../../node_modules/react-fast-compare/index.js");
9592
- /* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(react_fast_compare__WEBPACK_IMPORTED_MODULE_5__);
9593
-
9578
+ /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/pick */ "../../../node_modules/lodash/pick.js");
9579
+ /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_pick__WEBPACK_IMPORTED_MODULE_0__);
9580
+ /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/isFunction */ "../../../node_modules/lodash/isFunction.js");
9581
+ /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_1__);
9582
+ /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/lodash/defaults.js");
9583
+ /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_2__);
9584
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "react");
9585
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
9586
+ /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
9587
+ /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_9__);
9588
+ /* harmony import */ var _victory_animation_victory_animation__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../victory-animation/victory-animation */ "../../victory-core/es/victory-animation/victory-animation.js");
9589
+ /* harmony import */ var _victory_util_collection__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../victory-util/collection */ "../../victory-core/es/victory-util/collection.js");
9590
+ /* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../victory-util/helpers */ "../../victory-core/es/victory-util/helpers.js");
9591
+ /* harmony import */ var _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../victory-util/timer-context */ "../../victory-core/es/victory-util/timer-context.js");
9592
+ /* harmony import */ var _victory_util_transitions__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../victory-util/transitions */ "../../victory-core/es/victory-util/transitions.js");
9593
+ /* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react-fast-compare */ "../../../node_modules/react-fast-compare/index.js");
9594
+ /* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react_fast_compare__WEBPACK_IMPORTED_MODULE_4__);
9594
9595
 
9595
9596
 
9596
9597
 
9597
9598
 
9598
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
9599
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
9599
9600
 
9600
9601
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
9601
9602
 
@@ -9605,7 +9606,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
9605
9606
 
9606
9607
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
9607
9608
 
9608
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
9609
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
9609
9610
 
9610
9611
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
9611
9612
 
@@ -9615,10 +9616,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
9615
9616
 
9616
9617
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
9617
9618
 
9618
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
9619
-
9620
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
9621
-
9619
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
9622
9620
 
9623
9621
 
9624
9622
 
@@ -9639,6 +9637,9 @@ var VictoryTransition = /*#__PURE__*/function (_React$Component) {
9639
9637
  _classCallCheck(this, VictoryTransition);
9640
9638
 
9641
9639
  _this = _super.call(this, props, context);
9640
+ _this.continuous = void 0;
9641
+ _this.timer = void 0;
9642
+ _this.transitionProps = void 0;
9642
9643
  _this.state = {
9643
9644
  nodesShouldLoad: false,
9644
9645
  nodesDoneLoad: false
@@ -9646,7 +9647,6 @@ var VictoryTransition = /*#__PURE__*/function (_React$Component) {
9646
9647
  var child = _this.props.children;
9647
9648
  var polar = child.props.polar;
9648
9649
  _this.continuous = !polar && child.type && child.type.continuous === true;
9649
- _this.getTransitionState = _this.getTransitionState.bind(_assertThisInitialized(_this));
9650
9650
  _this.timer = _this.context.transitionTimer;
9651
9651
  return _this;
9652
9652
  }
@@ -9663,7 +9663,7 @@ var VictoryTransition = /*#__PURE__*/function (_React$Component) {
9663
9663
  value: function shouldComponentUpdate(nextProps) {
9664
9664
  var _this2 = this;
9665
9665
 
9666
- if (!react_fast_compare__WEBPACK_IMPORTED_MODULE_5___default()(this.props, nextProps)) {
9666
+ if (!react_fast_compare__WEBPACK_IMPORTED_MODULE_4___default()(this.props, nextProps)) {
9667
9667
  this.timer.bypassAnimation();
9668
9668
  this.setState(this.getTransitionState(this.props, nextProps), function () {
9669
9669
  return _this2.timer.resumeAnimation();
@@ -9692,10 +9692,10 @@ var VictoryTransition = /*#__PURE__*/function (_React$Component) {
9692
9692
  nextProps: nextProps
9693
9693
  };
9694
9694
  } else {
9695
- var oldChildren = react__WEBPACK_IMPORTED_MODULE_4___default().Children.toArray(props.children);
9696
- var nextChildren = react__WEBPACK_IMPORTED_MODULE_4___default().Children.toArray(nextProps.children);
9695
+ var oldChildren = react__WEBPACK_IMPORTED_MODULE_3___default().Children.toArray(props.children);
9696
+ var nextChildren = react__WEBPACK_IMPORTED_MODULE_3___default().Children.toArray(nextProps.children);
9697
9697
 
9698
- var _Transitions$getIniti = _victory_util_transitions__WEBPACK_IMPORTED_MODULE_6__.getInitialTransitionState(oldChildren, nextChildren),
9698
+ var _Transitions$getIniti = _victory_util_transitions__WEBPACK_IMPORTED_MODULE_5__.getInitialTransitionState(oldChildren, nextChildren),
9699
9699
  nodesWillExit = _Transitions$getIniti.nodesWillExit,
9700
9700
  nodesWillEnter = _Transitions$getIniti.nodesWillEnter,
9701
9701
  childrenTransitions = _Transitions$getIniti.childrenTransitions,
@@ -9716,18 +9716,18 @@ var VictoryTransition = /*#__PURE__*/function (_React$Component) {
9716
9716
  value: function getDomainFromChildren(props, axis) {
9717
9717
  var getChildDomains = function (children) {
9718
9718
  return children.reduce(function (memo, child) {
9719
- if (child.type && lodash_isFunction__WEBPACK_IMPORTED_MODULE_2___default()(child.type.getDomain)) {
9719
+ if (child.type && lodash_isFunction__WEBPACK_IMPORTED_MODULE_1___default()(child.type.getDomain)) {
9720
9720
  var childDomain = child.props && child.type.getDomain(child.props, axis);
9721
9721
  return childDomain ? memo.concat(childDomain) : memo;
9722
9722
  } else if (child.props && child.props.children) {
9723
- return memo.concat(getChildDomains(react__WEBPACK_IMPORTED_MODULE_4___default().Children.toArray(child.props.children)));
9723
+ return memo.concat(getChildDomains(react__WEBPACK_IMPORTED_MODULE_3___default().Children.toArray(child.props.children)));
9724
9724
  }
9725
9725
 
9726
9726
  return memo;
9727
9727
  }, []);
9728
9728
  };
9729
9729
 
9730
- var child = react__WEBPACK_IMPORTED_MODULE_4___default().Children.toArray(props.children)[0];
9730
+ var child = react__WEBPACK_IMPORTED_MODULE_3___default().Children.toArray(props.children)[0];
9731
9731
  var childProps = child.props || {};
9732
9732
  var domain = Array.isArray(childProps.domain) ? childProps.domain : childProps.domain && childProps.domain[axis];
9733
9733
 
@@ -9735,7 +9735,7 @@ var VictoryTransition = /*#__PURE__*/function (_React$Component) {
9735
9735
  return domain;
9736
9736
  } else {
9737
9737
  var childDomains = getChildDomains([child]);
9738
- return childDomains.length === 0 ? [0, 1] : [_victory_util_collection__WEBPACK_IMPORTED_MODULE_7__.getMinValue(childDomains), _victory_util_collection__WEBPACK_IMPORTED_MODULE_7__.getMaxValue(childDomains)];
9738
+ return childDomains.length === 0 ? [0, 1] : [_victory_util_collection__WEBPACK_IMPORTED_MODULE_6__.getMinValue(childDomains), _victory_util_collection__WEBPACK_IMPORTED_MODULE_6__.getMaxValue(childDomains)];
9739
9739
  }
9740
9740
  }
9741
9741
  }, {
@@ -9750,10 +9750,12 @@ var VictoryTransition = /*#__PURE__*/function (_React$Component) {
9750
9750
  }, {
9751
9751
  key: "pickDomainProps",
9752
9752
  value: function pickDomainProps(props) {
9753
- var parentState = lodash_isObject__WEBPACK_IMPORTED_MODULE_0___default()(props.animate) && props.animate.parentState;
9753
+ var _props$animate;
9754
+
9755
+ var parentState = (_props$animate = props.animate) === null || _props$animate === void 0 ? void 0 : _props$animate.parentState;
9754
9756
 
9755
9757
  if (parentState && parentState.nodesWillExit) {
9756
- return this.continous || parentState.continuous ? parentState.nextProps || this.state.nextProps || props : props;
9758
+ return this.continuous || parentState.continuous ? parentState.nextProps || this.state.nextProps || props : props;
9757
9759
  }
9758
9760
 
9759
9761
  return this.continuous && this.state.nodesWillExit ? this.state.nextProps || props : props;
@@ -9762,7 +9764,7 @@ var VictoryTransition = /*#__PURE__*/function (_React$Component) {
9762
9764
  key: "getClipWidth",
9763
9765
  value: function getClipWidth(props, child) {
9764
9766
  var getDefaultClipWidth = function () {
9765
- var range = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_8__.getRange(child.props, "x");
9767
+ var range = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_7__.getRange(child.props, "x");
9766
9768
  return range ? Math.abs(range[1] - range[0]) : props.width;
9767
9769
  };
9768
9770
 
@@ -9772,13 +9774,14 @@ var VictoryTransition = /*#__PURE__*/function (_React$Component) {
9772
9774
  }, {
9773
9775
  key: "render",
9774
9776
  value: function render() {
9775
- var _this3 = this;
9777
+ var _this$props$animate,
9778
+ _this3 = this;
9776
9779
 
9777
9780
  var props = this.pickProps();
9778
- var getTransitionProps = lodash_isObject__WEBPACK_IMPORTED_MODULE_0___default()(this.props.animate) && this.props.animate.getTransitions ? this.props.animate.getTransitions : _victory_util_transitions__WEBPACK_IMPORTED_MODULE_6__.getTransitionPropsFactory(props, this.state, function (newState) {
9781
+ var getTransitionProps = (_this$props$animate = this.props.animate) !== null && _this$props$animate !== void 0 && _this$props$animate.getTransitions ? this.props.animate.getTransitions : _victory_util_transitions__WEBPACK_IMPORTED_MODULE_5__.getTransitionPropsFactory(props, this.state, function (newState) {
9779
9782
  return _this3.setState(newState);
9780
9783
  });
9781
- var child = react__WEBPACK_IMPORTED_MODULE_4___default().Children.toArray(props.children)[0];
9784
+ var child = react__WEBPACK_IMPORTED_MODULE_3___default().Children.toArray(props.children)[0];
9782
9785
  var transitionProps = getTransitionProps(child);
9783
9786
  this.transitionProps = transitionProps;
9784
9787
  var domain = {
@@ -9787,29 +9790,29 @@ var VictoryTransition = /*#__PURE__*/function (_React$Component) {
9787
9790
  };
9788
9791
  var clipWidth = this.getClipWidth(props, child);
9789
9792
 
9790
- var combinedProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_3___default()({
9793
+ var combinedProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({
9791
9794
  domain: domain,
9792
9795
  clipWidth: clipWidth
9793
9796
  }, transitionProps, child.props);
9794
9797
 
9795
9798
  var animationWhitelist = props.animationWhitelist || [];
9796
9799
  var whitelist = animationWhitelist.concat(["clipWidth"]);
9797
- var propsToAnimate = whitelist.length ? lodash_pick__WEBPACK_IMPORTED_MODULE_1___default()(combinedProps, whitelist) : combinedProps;
9798
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default().createElement(_victory_animation_victory_animation__WEBPACK_IMPORTED_MODULE_9__["default"], _extends({}, combinedProps.animate, {
9800
+ var propsToAnimate = whitelist.length ? lodash_pick__WEBPACK_IMPORTED_MODULE_0___default()(combinedProps, whitelist) : combinedProps;
9801
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_victory_animation_victory_animation__WEBPACK_IMPORTED_MODULE_8__.VictoryAnimation, _extends({}, combinedProps.animate, {
9799
9802
  data: propsToAnimate
9800
9803
  }), function (newProps) {
9801
9804
  if (child.props.groupComponent) {
9802
- var groupComponent = _this3.continuous ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default().cloneElement(child.props.groupComponent, {
9805
+ var groupComponent = _this3.continuous ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(child.props.groupComponent, {
9803
9806
  clipWidth: newProps.clipWidth || 0
9804
9807
  }) : child.props.groupComponent;
9805
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default().cloneElement(child, lodash_defaults__WEBPACK_IMPORTED_MODULE_3___default()({
9808
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(child, lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({
9806
9809
  animate: null,
9807
9810
  animating: true,
9808
9811
  groupComponent: groupComponent
9809
9812
  }, newProps, combinedProps));
9810
9813
  }
9811
9814
 
9812
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default().cloneElement(child, lodash_defaults__WEBPACK_IMPORTED_MODULE_3___default()({
9815
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(child, lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({
9813
9816
  animate: null,
9814
9817
  animating: true
9815
9818
  }, newProps, combinedProps));
@@ -9818,19 +9821,15 @@ var VictoryTransition = /*#__PURE__*/function (_React$Component) {
9818
9821
  }]);
9819
9822
 
9820
9823
  return VictoryTransition;
9821
- }((react__WEBPACK_IMPORTED_MODULE_4___default().Component));
9822
-
9823
- _defineProperty(VictoryTransition, "displayName", "VictoryTransition");
9824
-
9825
- _defineProperty(VictoryTransition, "propTypes", {
9826
- animate: prop_types__WEBPACK_IMPORTED_MODULE_10___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_10___default().bool), (prop_types__WEBPACK_IMPORTED_MODULE_10___default().object)]),
9827
- animationWhitelist: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().array),
9828
- children: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().node)
9829
- });
9830
-
9831
- _defineProperty(VictoryTransition, "contextType", _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_11__["default"]);
9832
-
9833
-
9824
+ }((react__WEBPACK_IMPORTED_MODULE_3___default().Component));
9825
+ VictoryTransition.displayName = "VictoryTransition";
9826
+ VictoryTransition.propTypes = {
9827
+ animate: prop_types__WEBPACK_IMPORTED_MODULE_9___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_9___default().bool), (prop_types__WEBPACK_IMPORTED_MODULE_9___default().object)]),
9828
+ animationWhitelist: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().array),
9829
+ children: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().node)
9830
+ };
9831
+ VictoryTransition.contextType = _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_10__["default"];
9832
+ //# sourceMappingURL=victory-transition.js.map
9834
9833
 
9835
9834
  /***/ }),
9836
9835
 
@@ -9843,26 +9842,26 @@ _defineProperty(VictoryTransition, "contextType", _victory_util_timer_context__W
9843
9842
  "use strict";
9844
9843
  __webpack_require__.r(__webpack_exports__);
9845
9844
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
9846
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
9845
+ /* harmony export */ "addEvents": () => (/* binding */ addEvents)
9847
9846
  /* harmony export */ });
9848
- /* harmony import */ var lodash_difference__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/difference */ "../../../node_modules/lodash/difference.js");
9849
- /* harmony import */ var lodash_difference__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_difference__WEBPACK_IMPORTED_MODULE_0__);
9850
- /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/isNil */ "../../../node_modules/lodash/isNil.js");
9851
- /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_isNil__WEBPACK_IMPORTED_MODULE_1__);
9852
- /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/isEmpty */ "../../../node_modules/lodash/isEmpty.js");
9853
- /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2__);
9854
- /* harmony import */ var lodash_without__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/without */ "../../../node_modules/lodash/without.js");
9855
- /* harmony import */ var lodash_without__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_without__WEBPACK_IMPORTED_MODULE_3__);
9856
- /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash/pick */ "../../../node_modules/lodash/pick.js");
9857
- /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_pick__WEBPACK_IMPORTED_MODULE_4__);
9858
- /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! lodash/isFunction */ "../../../node_modules/lodash/isFunction.js");
9859
- /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_5__);
9860
- /* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! lodash/keys */ "../../../node_modules/lodash/keys.js");
9861
- /* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(lodash_keys__WEBPACK_IMPORTED_MODULE_6__);
9862
- /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js");
9863
- /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_7__);
9864
- /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/lodash/defaults.js");
9865
- /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_8__);
9847
+ /* harmony import */ var lodash_without__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/without */ "../../../node_modules/lodash/without.js");
9848
+ /* harmony import */ var lodash_without__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_without__WEBPACK_IMPORTED_MODULE_0__);
9849
+ /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/pick */ "../../../node_modules/lodash/pick.js");
9850
+ /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_pick__WEBPACK_IMPORTED_MODULE_1__);
9851
+ /* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/keys */ "../../../node_modules/lodash/keys.js");
9852
+ /* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_keys__WEBPACK_IMPORTED_MODULE_2__);
9853
+ /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/isNil */ "../../../node_modules/lodash/isNil.js");
9854
+ /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_isNil__WEBPACK_IMPORTED_MODULE_3__);
9855
+ /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash/isFunction */ "../../../node_modules/lodash/isFunction.js");
9856
+ /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_4__);
9857
+ /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! lodash/isEmpty */ "../../../node_modules/lodash/isEmpty.js");
9858
+ /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_5__);
9859
+ /* harmony import */ var lodash_difference__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! lodash/difference */ "../../../node_modules/lodash/difference.js");
9860
+ /* harmony import */ var lodash_difference__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(lodash_difference__WEBPACK_IMPORTED_MODULE_6__);
9861
+ /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/lodash/defaults.js");
9862
+ /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_7__);
9863
+ /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js");
9864
+ /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_8__);
9866
9865
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! react */ "react");
9867
9866
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_9__);
9868
9867
  /* harmony import */ var _events__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./events */ "../../victory-core/es/victory-util/events.js");
@@ -9899,7 +9898,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
9899
9898
 
9900
9899
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
9901
9900
 
9902
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
9901
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
9903
9902
 
9904
9903
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
9905
9904
 
@@ -9909,7 +9908,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
9909
9908
 
9910
9909
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
9911
9910
 
9912
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
9911
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
9913
9912
 
9914
9913
  /*global window:false */
9915
9914
 
@@ -9917,8 +9916,12 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
9917
9916
 
9918
9917
 
9919
9918
 
9919
+ // DISCLAIMER:
9920
+ // This file is not currently tested, and it is first on the list of files
9921
+ // to refactor in our current refactoring effort. Please do not make changes
9922
+ // to this file without manual testing and/or refactoring and adding tests.
9920
9923
  var datumHasXandY = function (datum) {
9921
- return !lodash_isNil__WEBPACK_IMPORTED_MODULE_1___default()(datum._x) && !lodash_isNil__WEBPACK_IMPORTED_MODULE_1___default()(datum._y);
9924
+ return !lodash_isNil__WEBPACK_IMPORTED_MODULE_3___default()(datum._x) && !lodash_isNil__WEBPACK_IMPORTED_MODULE_3___default()(datum._y);
9922
9925
  }; // used for checking state changes. Expected components can be passed in via options
9923
9926
 
9924
9927
 
@@ -9930,44 +9933,45 @@ var defaultComponents = [{
9930
9933
  }, {
9931
9934
  name: "labels"
9932
9935
  }];
9933
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (function (WrappedComponent, options) {
9934
- return /*#__PURE__*/function (_WrappedComponent) {
9935
- _inherits(addEvents, _WrappedComponent);
9936
+ function addEvents(WrappedComponent) {
9937
+ var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
9938
+
9939
+ // @ts-expect-error "TS2545: A mixin class must have a constructor with a single rest parameter of type 'any[]'."
9940
+ var AddEventsMixin = /*#__PURE__*/function (_WrappedComponent) {
9941
+ _inherits(AddEventsMixin, _WrappedComponent);
9936
9942
 
9937
- var _super = _createSuper(addEvents);
9943
+ var _super = _createSuper(AddEventsMixin);
9938
9944
 
9939
- function addEvents(props) {
9945
+ function AddEventsMixin(props) {
9940
9946
  var _this;
9941
9947
 
9942
- _classCallCheck(this, addEvents);
9948
+ _classCallCheck(this, AddEventsMixin);
9943
9949
 
9944
9950
  _this = _super.call(this, props);
9945
- var getScopedEvents = _events__WEBPACK_IMPORTED_MODULE_11__.getScopedEvents.bind(_assertThisInitialized(_this));
9946
- var boundGetEvents = _events__WEBPACK_IMPORTED_MODULE_11__.getEvents.bind(_assertThisInitialized(_this));
9947
9951
  _this.state = {};
9952
+ _this.getEventState = _events__WEBPACK_IMPORTED_MODULE_11__.getEventState.bind(_assertThisInitialized(_this));
9953
+ _this.getScopedEvents = _events__WEBPACK_IMPORTED_MODULE_11__.getScopedEvents.bind(_assertThisInitialized(_this));
9948
9954
 
9949
9955
  _this.getEvents = function (p, target, eventKey) {
9950
- return boundGetEvents(p, target, eventKey, getScopedEvents);
9956
+ return _events__WEBPACK_IMPORTED_MODULE_11__.getEvents.call(_assertThisInitialized(_this), p, target, eventKey, _this.getScopedEvents);
9951
9957
  };
9952
9958
 
9953
- _this.getEventState = _events__WEBPACK_IMPORTED_MODULE_11__.getEventState.bind(_assertThisInitialized(_this));
9954
-
9955
- var calculatedValues = _this.getCalculatedValues(props);
9956
-
9957
- _this.cacheValues(calculatedValues);
9958
-
9959
- _this.externalMutations = _this.getExternalMutations(props);
9960
- _this.calculatedState = _this.getStateChanges(props);
9959
+ _this.externalMutations = _this.getExternalMutations(_this.props);
9960
+ _this.calculatedState = _this.getStateChanges(_this.props);
9961
9961
  _this.globalEvents = {};
9962
9962
  _this.prevGlobalEventKeys = [];
9963
9963
  _this.boundGlobalEvents = {};
9964
+
9965
+ _this.cacheValues(_this.getCalculatedValues(props));
9966
+
9964
9967
  return _this;
9965
9968
  }
9966
9969
 
9967
- _createClass(addEvents, [{
9970
+ _createClass(AddEventsMixin, [{
9968
9971
  key: "shouldComponentUpdate",
9969
9972
  value: function shouldComponentUpdate(nextProps) {
9970
- var externalMutations = this.getExternalMutations(nextProps);
9973
+ var externalMutations = this.getExternalMutations(nextProps); // @ts-expect-error "Property 'animating' does not exist on type EventMixinCommonProps"
9974
+
9971
9975
  var animating = this.props.animating || this.props.animate;
9972
9976
  var newMutation = !react_fast_compare__WEBPACK_IMPORTED_MODULE_10___default()(externalMutations, this.externalMutations);
9973
9977
 
@@ -9997,7 +10001,7 @@ var defaultComponents = [{
9997
10001
  value: function componentDidMount() {
9998
10002
  var _this2 = this;
9999
10003
 
10000
- var globalEventKeys = lodash_keys__WEBPACK_IMPORTED_MODULE_6___default()(this.globalEvents);
10004
+ var globalEventKeys = lodash_keys__WEBPACK_IMPORTED_MODULE_2___default()(this.globalEvents);
10001
10005
 
10002
10006
  globalEventKeys.forEach(function (key) {
10003
10007
  return _this2.addGlobalListener(key);
@@ -10012,15 +10016,15 @@ var defaultComponents = [{
10012
10016
  var calculatedState = this.getStateChanges(prevProps);
10013
10017
  this.calculatedState = calculatedState;
10014
10018
 
10015
- var globalEventKeys = lodash_keys__WEBPACK_IMPORTED_MODULE_6___default()(this.globalEvents);
10019
+ var globalEventKeys = lodash_keys__WEBPACK_IMPORTED_MODULE_2___default()(this.globalEvents);
10016
10020
 
10017
- var removedGlobalEventKeys = lodash_difference__WEBPACK_IMPORTED_MODULE_0___default()(this.prevGlobalEventKeys, globalEventKeys);
10021
+ var removedGlobalEventKeys = lodash_difference__WEBPACK_IMPORTED_MODULE_6___default()(this.prevGlobalEventKeys, globalEventKeys);
10018
10022
 
10019
10023
  removedGlobalEventKeys.forEach(function (key) {
10020
10024
  return _this3.removeGlobalListener(key);
10021
10025
  });
10022
10026
 
10023
- var addedGlobalEventKeys = lodash_difference__WEBPACK_IMPORTED_MODULE_0___default()(globalEventKeys, this.prevGlobalEventKeys);
10027
+ var addedGlobalEventKeys = lodash_difference__WEBPACK_IMPORTED_MODULE_6___default()(globalEventKeys, this.prevGlobalEventKeys);
10024
10028
 
10025
10029
  addedGlobalEventKeys.forEach(function (key) {
10026
10030
  return _this3.addGlobalListener(key);
@@ -10066,12 +10070,11 @@ var defaultComponents = [{
10066
10070
  }
10067
10071
 
10068
10072
  var getState = function (key, type) {
10069
- var result = lodash_defaults__WEBPACK_IMPORTED_MODULE_8___default()({}, _this6.getEventState(key, type), _this6.getSharedEventState(key, type));
10073
+ var result = lodash_defaults__WEBPACK_IMPORTED_MODULE_7___default()({}, _this6.getEventState(key, type), _this6.getSharedEventState(key, type));
10070
10074
 
10071
- return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default()(result) ? undefined : result;
10075
+ return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_5___default()(result) ? undefined : result;
10072
10076
  };
10073
10077
 
10074
- options = options || {};
10075
10078
  var components = options.components || defaultComponents;
10076
10079
  var stateChanges = components.map(function (component) {
10077
10080
  if (!props.standalone && component.name === "parent") {
@@ -10088,9 +10091,9 @@ var defaultComponents = [{
10088
10091
  }, {
10089
10092
  key: "applyExternalMutations",
10090
10093
  value: function applyExternalMutations(props, externalMutations) {
10091
- if (!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default()(externalMutations)) {
10094
+ if (!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_5___default()(externalMutations)) {
10092
10095
  var callbacks = props.externalEventMutations.reduce(function (memo, mutation) {
10093
- memo = lodash_isFunction__WEBPACK_IMPORTED_MODULE_5___default()(mutation.callback) ? memo.concat(mutation.callback) : memo;
10096
+ memo = lodash_isFunction__WEBPACK_IMPORTED_MODULE_4___default()(mutation.callback) ? memo.concat(mutation.callback) : memo;
10094
10097
  return memo;
10095
10098
  }, []);
10096
10099
  var compiledCallbacks = callbacks.length ? function () {
@@ -10107,12 +10110,12 @@ var defaultComponents = [{
10107
10110
  var sharedEvents = props.sharedEvents;
10108
10111
  var components = WrappedComponent.expectedComponents;
10109
10112
  var componentEvents = _events__WEBPACK_IMPORTED_MODULE_11__.getComponentEvents(props, components);
10110
- var getSharedEventState = sharedEvents && lodash_isFunction__WEBPACK_IMPORTED_MODULE_5___default()(sharedEvents.getEventState) ? sharedEvents.getEventState : function () {
10113
+ var getSharedEventState = sharedEvents && lodash_isFunction__WEBPACK_IMPORTED_MODULE_4___default()(sharedEvents.getEventState) ? sharedEvents.getEventState : function () {
10111
10114
  return undefined;
10112
10115
  };
10113
10116
  var baseProps = this.getBaseProps(props, getSharedEventState);
10114
10117
 
10115
- var dataKeys = lodash_keys__WEBPACK_IMPORTED_MODULE_6___default()(baseProps).filter(function (key) {
10118
+ var dataKeys = lodash_keys__WEBPACK_IMPORTED_MODULE_2___default()(baseProps).filter(function (key) {
10116
10119
  return key !== "parent";
10117
10120
  });
10118
10121
 
@@ -10132,32 +10135,32 @@ var defaultComponents = [{
10132
10135
  value: function getExternalMutations(props) {
10133
10136
  var sharedEvents = props.sharedEvents,
10134
10137
  externalEventMutations = props.externalEventMutations;
10135
- return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default()(externalEventMutations) || sharedEvents ? undefined : _events__WEBPACK_IMPORTED_MODULE_11__.getExternalMutations(externalEventMutations, this.baseProps, this.state);
10138
+ return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_5___default()(externalEventMutations) || sharedEvents ? undefined : _events__WEBPACK_IMPORTED_MODULE_11__.getExternalMutations(externalEventMutations, this.baseProps, this.state);
10136
10139
  }
10137
10140
  }, {
10138
10141
  key: "cacheValues",
10139
10142
  value: function cacheValues(obj) {
10140
10143
  var _this7 = this;
10141
10144
 
10142
- lodash_keys__WEBPACK_IMPORTED_MODULE_6___default()(obj).forEach(function (key) {
10145
+ lodash_keys__WEBPACK_IMPORTED_MODULE_2___default()(obj).forEach(function (key) {
10143
10146
  _this7[key] = obj[key];
10144
10147
  });
10145
10148
  }
10146
10149
  }, {
10147
10150
  key: "getBaseProps",
10148
10151
  value: function getBaseProps(props, getSharedEventState) {
10149
- getSharedEventState = getSharedEventState || this.getSharedEventState;
10152
+ getSharedEventState = getSharedEventState || this.getSharedEventState.bind(this);
10150
10153
  var sharedParentState = getSharedEventState("parent", "parent");
10151
10154
  var parentState = this.getEventState("parent", "parent");
10152
10155
 
10153
- var baseParentProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_8___default()({}, parentState, sharedParentState);
10156
+ var baseParentProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_7___default()({}, parentState, sharedParentState);
10154
10157
 
10155
10158
  var parentPropsList = baseParentProps.parentControlledProps;
10156
- var parentProps = parentPropsList ? lodash_pick__WEBPACK_IMPORTED_MODULE_4___default()(baseParentProps, parentPropsList) : {};
10159
+ var parentProps = parentPropsList ? lodash_pick__WEBPACK_IMPORTED_MODULE_1___default()(baseParentProps, parentPropsList) : {};
10157
10160
 
10158
- var modifiedProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_8___default()({}, parentProps, props);
10161
+ var modifiedProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_7___default()({}, parentProps, props);
10159
10162
 
10160
- return lodash_isFunction__WEBPACK_IMPORTED_MODULE_5___default()(WrappedComponent.getBaseProps) ? WrappedComponent.getBaseProps(modifiedProps) : {};
10163
+ return typeof WrappedComponent.getBaseProps === "function" ? WrappedComponent.getBaseProps(modifiedProps) : {};
10161
10164
  }
10162
10165
  }, {
10163
10166
  key: "getAllEvents",
@@ -10185,21 +10188,21 @@ var defaultComponents = [{
10185
10188
  if (this.hasEvents) {
10186
10189
  var baseEvents = this.getEvents(this.props, type, key);
10187
10190
 
10188
- var componentProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_8___default()({
10191
+ var componentProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_7___default()({
10189
10192
  index: index,
10190
10193
  key: id
10191
10194
  }, this.getEventState(key, type), this.getSharedEventState(key, type), component.props, baseProps, {
10192
10195
  id: id
10193
10196
  });
10194
10197
 
10195
- var events = lodash_defaults__WEBPACK_IMPORTED_MODULE_8___default()({}, _events__WEBPACK_IMPORTED_MODULE_11__.getPartialEvents(baseEvents, key, componentProps), componentProps.events);
10198
+ var events = lodash_defaults__WEBPACK_IMPORTED_MODULE_7___default()({}, _events__WEBPACK_IMPORTED_MODULE_11__.getPartialEvents(baseEvents, key, componentProps), componentProps.events);
10196
10199
 
10197
- return lodash_assign__WEBPACK_IMPORTED_MODULE_7___default()({}, componentProps, {
10200
+ return lodash_assign__WEBPACK_IMPORTED_MODULE_8___default()({}, componentProps, {
10198
10201
  events: events
10199
10202
  });
10200
10203
  }
10201
10204
 
10202
- return lodash_defaults__WEBPACK_IMPORTED_MODULE_8___default()({
10205
+ return lodash_defaults__WEBPACK_IMPORTED_MODULE_7___default()({
10203
10206
  index: index,
10204
10207
  key: id
10205
10208
  }, component.props, baseProps, {
@@ -10222,11 +10225,14 @@ var defaultComponents = [{
10222
10225
  }, {
10223
10226
  key: "animateComponent",
10224
10227
  value: function animateComponent(props, defaultAnimationWhitelist) {
10225
- var animationWhitelist = props.animate && props.animate.animationWhitelist ? props.animate.animationWhitelist : defaultAnimationWhitelist;
10226
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_9___default().createElement(_victory_transition_victory_transition__WEBPACK_IMPORTED_MODULE_12__["default"], {
10228
+ var _props$animate;
10229
+
10230
+ var animationWhitelist = typeof props.animate === "object" && ((_props$animate = props.animate) === null || _props$animate === void 0 ? void 0 : _props$animate.animationWhitelist) || defaultAnimationWhitelist;
10231
+ var Comp = this.constructor;
10232
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_9___default().createElement(_victory_transition_victory_transition__WEBPACK_IMPORTED_MODULE_12__.VictoryTransition, {
10227
10233
  animate: props.animate,
10228
10234
  animationWhitelist: animationWhitelist
10229
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_9___default().createElement(this.constructor, props));
10235
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_9___default().createElement(Comp, props));
10230
10236
  } // Used by `VictoryLine` and `VictoryArea`
10231
10237
 
10232
10238
  }, {
@@ -10238,7 +10244,7 @@ var defaultComponents = [{
10238
10244
  labelComponent = props.labelComponent,
10239
10245
  groupComponent = props.groupComponent;
10240
10246
 
10241
- var dataKeys = lodash_without__WEBPACK_IMPORTED_MODULE_3___default()(this.dataKeys, "all");
10247
+ var dataKeys = lodash_without__WEBPACK_IMPORTED_MODULE_0___default()(this.dataKeys, "all");
10242
10248
 
10243
10249
  var labelComponents = dataKeys.reduce(function (memo, key) {
10244
10250
  var labelProps = _this8.getComponentProps(labelComponent, "labels", key);
@@ -10285,9 +10291,12 @@ var defaultComponents = [{
10285
10291
  }
10286
10292
  }]);
10287
10293
 
10288
- return addEvents;
10294
+ return AddEventsMixin;
10289
10295
  }(WrappedComponent);
10290
- });
10296
+
10297
+ return AddEventsMixin;
10298
+ }
10299
+ //# sourceMappingURL=add-events.js.map
10291
10300
 
10292
10301
  /***/ }),
10293
10302
 
@@ -10321,9 +10330,6 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToAr
10321
10330
 
10322
10331
  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; }
10323
10332
 
10324
- /* eslint-disable func-style */
10325
-
10326
- /* eslint-disable no-use-before-define */
10327
10333
  function isNonEmptyArray(collection) {
10328
10334
  return Array.isArray(collection) && collection.length > 0;
10329
10335
  }
@@ -10362,7 +10368,8 @@ function getMaxValue(arr) {
10362
10368
  }
10363
10369
 
10364
10370
  var array = arr.concat(values);
10365
- return containsDates(array) ? new Date(Math.max.apply(Math, _toConsumableArray(array))) : Math.max.apply(Math, _toConsumableArray(array));
10371
+ return containsDates(array) ? new Date(Math.max.apply(Math, _toConsumableArray(array))) // Dates will be coerced to numbers
10372
+ : Math.max.apply(Math, _toConsumableArray(array));
10366
10373
  }
10367
10374
  function getMinValue(arr) {
10368
10375
  for (var _len2 = arguments.length, values = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
@@ -10370,8 +10377,10 @@ function getMinValue(arr) {
10370
10377
  }
10371
10378
 
10372
10379
  var array = arr.concat(values);
10373
- return containsDates(array) ? new Date(Math.min.apply(Math, _toConsumableArray(array))) : Math.min.apply(Math, _toConsumableArray(array));
10380
+ return containsDates(array) ? new Date(Math.min.apply(Math, _toConsumableArray(array))) // Dates will be coerced to numbers
10381
+ : Math.min.apply(Math, _toConsumableArray(array));
10374
10382
  }
10383
+ //# sourceMappingURL=collection.js.map
10375
10384
 
10376
10385
  /***/ }),
10377
10386
 
@@ -10384,9 +10393,7 @@ function getMinValue(arr) {
10384
10393
  "use strict";
10385
10394
  __webpack_require__.r(__webpack_exports__);
10386
10395
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
10387
- /* harmony export */ "baseProps": () => (/* binding */ baseProps),
10388
- /* harmony export */ "dataProps": () => (/* binding */ dataProps),
10389
- /* harmony export */ "primitiveProps": () => (/* binding */ primitiveProps)
10396
+ /* harmony export */ "CommonProps": () => (/* binding */ CommonProps)
10390
10397
  /* harmony export */ });
10391
10398
  /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
10392
10399
  /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__);
@@ -10394,26 +10401,28 @@ __webpack_require__.r(__webpack_exports__);
10394
10401
 
10395
10402
 
10396
10403
  var dataProps = {
10404
+ // @ts-expect-error TODO: synchronize the type with this PropTypes
10397
10405
  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({
10398
10406
  x: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)),
10399
10407
  y: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string))
10400
10408
  })]),
10409
+ // @ts-expect-error TODO: synchronize the type with this PropTypes
10401
10410
  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)]),
10402
10411
  dataComponent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().element),
10403
10412
  disableInlineStyles: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
10404
10413
  labelComponent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().element),
10405
10414
  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)]),
10406
10415
  samples: _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative,
10407
- 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))]),
10416
+ 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))]),
10408
10417
  sortOrder: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(["ascending", "descending"]),
10409
10418
  style: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
10410
10419
  parent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
10411
10420
  data: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
10412
10421
  labels: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object)
10413
10422
  }),
10414
- 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))]),
10415
- 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))]),
10416
- 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))])
10423
+ 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))]),
10424
+ 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))]),
10425
+ 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))])
10417
10426
  };
10418
10427
  var baseProps = {
10419
10428
  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)]),
@@ -10422,14 +10431,17 @@ var baseProps = {
10422
10431
  x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain,
10423
10432
  y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain
10424
10433
  })]),
10434
+ // @ts-expect-error TODO: synchronize the type with this PropTypes
10425
10435
  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({
10426
10436
  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)]),
10427
10437
  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)])
10428
10438
  })]),
10439
+ // @ts-expect-error TODO: synchronize the type with this PropTypes
10429
10440
  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({
10430
10441
  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)]),
10431
10442
  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)])
10432
10443
  })]),
10444
+ // @ts-expect-error TODO: synchronize the type with this PropTypes
10433
10445
  domainPadding: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
10434
10446
  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))]),
10435
10447
  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))])
@@ -10440,6 +10452,7 @@ var baseProps = {
10440
10452
  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)]),
10441
10453
  eventHandlers: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object)
10442
10454
  })),
10455
+ // @ts-expect-error TODO: synchronize the type with this PropTypes
10443
10456
  externalEventMutations: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
10444
10457
  callback: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
10445
10458
  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)]),
@@ -10450,10 +10463,12 @@ var baseProps = {
10450
10463
  groupComponent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().element),
10451
10464
  height: _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative,
10452
10465
  name: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
10466
+ // @ts-expect-error TODO: synchronize the type with this PropTypes
10453
10467
  origin: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
10454
10468
  x: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
10455
10469
  y: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number)
10456
10470
  }),
10471
+ // @ts-expect-error TODO: synchronize the type with this PropTypes
10457
10472
  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({
10458
10473
  top: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
10459
10474
  bottom: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
@@ -10462,17 +10477,19 @@ var baseProps = {
10462
10477
  })]),
10463
10478
  polar: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
10464
10479
  range: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.domain, prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
10465
- x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain,
10466
- y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain
10480
+ x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain.isRequired,
10481
+ y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain.isRequired
10467
10482
  })]),
10468
10483
  scale: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.scale, prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
10469
- x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.scale,
10470
- y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.scale
10484
+ x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.scale.isRequired,
10485
+ y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.scale.isRequired
10471
10486
  })]),
10487
+ // @ts-expect-error TODO: synchronize the type with this PropTypes
10472
10488
  sharedEvents: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
10473
10489
  events: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().array),
10474
10490
  getEventState: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func)
10475
10491
  }),
10492
+ // @ts-expect-error TODO: synchronize the type with this PropTypes
10476
10493
  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({
10477
10494
  x: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)]),
10478
10495
  y: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)])
@@ -10492,6 +10509,7 @@ var primitiveProps = {
10492
10509
  events: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
10493
10510
  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)]),
10494
10511
  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)]),
10512
+ // @ts-expect-error TODO: synchronize the type with this PropTypes
10495
10513
  origin: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
10496
10514
  x: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
10497
10515
  y: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number)
@@ -10507,6 +10525,12 @@ var primitiveProps = {
10507
10525
  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)]),
10508
10526
  transform: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)
10509
10527
  };
10528
+ var CommonProps = {
10529
+ dataProps: dataProps,
10530
+ baseProps: baseProps,
10531
+ primitiveProps: primitiveProps
10532
+ };
10533
+ //# sourceMappingURL=common-props.js.map
10510
10534
 
10511
10535
  /***/ }),
10512
10536
 
@@ -10589,8 +10613,6 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToAr
10589
10613
 
10590
10614
  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; }
10591
10615
 
10592
- /* eslint-disable func-style */
10593
-
10594
10616
  /* eslint-disable no-use-before-define */
10595
10617
 
10596
10618
 
@@ -11022,6 +11044,7 @@ function isDataComponent(component) {
11022
11044
  var whitelist = ["area", "bar", "boxplot", "candlestick", "errorbar", "group", "histogram", "line", "pie", "scatter", "stack", "voronoi"];
11023
11045
  return lodash_includes__WEBPACK_IMPORTED_MODULE_2___default()(whitelist, role);
11024
11046
  }
11047
+ //# sourceMappingURL=data.js.map
11025
11048
 
11026
11049
  /***/ }),
11027
11050
 
@@ -11090,15 +11113,16 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToAr
11090
11113
  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; }
11091
11114
 
11092
11115
  var GLOBAL_EVENT_REGEX = /^onGlobal(.*)$/;
11116
+
11093
11117
  /* Returns all own and shared events that should be attached to a single target element,
11094
11118
  * i.e. an individual bar specified by target: "data", eventKey: [index].
11095
11119
  * Returned events are scoped to the appropriate state. Either that of the component itself
11096
11120
  * (i.e. VictoryBar) in the case of own events, or that of the parent component
11097
11121
  * (i.e. VictoryChart) in the case of shared events
11098
11122
  */
11099
- // eslint-disable-next-line max-params,no-shadow
11100
-
11101
- function getEvents(props, target, eventKey, getScopedEvents) {
11123
+ // eslint-disable-next-line max-params
11124
+ function getEvents(props, target, eventKey, // eslint-disable-next-line no-shadow
11125
+ getScopedEvents) {
11102
11126
  var _this = this;
11103
11127
 
11104
11128
  // Returns all events that apply to a particular target element
@@ -11321,24 +11345,27 @@ function getScopedEvents(events, namespace, childType, baseProps) {
11321
11345
  return memo;
11322
11346
  }, {});
11323
11347
  }
11324
- /* Returns a partially applied event handler for a specific target element
11348
+ /*
11349
+ * Returns a partially applied event handler for a specific target element
11325
11350
  * This allows event handlers to have access to props controlling each element
11326
11351
  */
11327
11352
 
11328
11353
  function getPartialEvents(events, eventKey, childProps) {
11329
- return events ? lodash_keys__WEBPACK_IMPORTED_MODULE_0___default()(events).reduce(function (memo, eventName) {
11354
+ if (!events) return {};
11355
+ return lodash_keys__WEBPACK_IMPORTED_MODULE_0___default()(events).reduce(function (memo, eventName) {
11330
11356
  var appliedEvent = function (evt) {
11331
11357
  return events[eventName](evt, childProps, eventKey, eventName);
11332
11358
  };
11333
11359
 
11334
11360
  memo[eventName] = appliedEvent;
11335
11361
  return memo;
11336
- }, {}) : {};
11362
+ }, {});
11337
11363
  }
11364
+
11338
11365
  /* Returns the property of the state object corresponding to event changes for
11339
11366
  * a particular element
11340
11367
  */
11341
-
11368
+ // eslint-disable-next-line max-params
11342
11369
  function getEventState(eventKey, namespace, childType) {
11343
11370
  // Mandatory usage: `getEventState.bind(this)`
11344
11371
  // eslint-disable-next-line no-invalid-this
@@ -11523,6 +11550,7 @@ var emulateReactEvent = function (event) {
11523
11550
  nativeEvent: event
11524
11551
  });
11525
11552
  };
11553
+ //# sourceMappingURL=events.js.map
11526
11554
 
11527
11555
  /***/ }),
11528
11556
 
@@ -11576,8 +11604,6 @@ __webpack_require__.r(__webpack_exports__);
11576
11604
 
11577
11605
 
11578
11606
 
11579
- /* eslint-disable func-style */
11580
-
11581
11607
  /* eslint-disable no-use-before-define */
11582
11608
 
11583
11609
 
@@ -11606,7 +11632,7 @@ function getPolarRange(props, axis) {
11606
11632
 
11607
11633
  /**
11608
11634
  * creates an object with some keys excluded
11609
- * replacement for lodash.omit for performance. does not mimick the entire lodash.omit api
11635
+ * replacement for lodash.omit for performance. does not mimic the entire lodash.omit api
11610
11636
  * @param {Object} originalObject: created object will be based on this object
11611
11637
  * @param {Array<String>} ks: an array of keys to omit from the new object
11612
11638
  * @returns {Object} new object with same properties as originalObject
@@ -11619,6 +11645,7 @@ function omit(originalObject) {
11619
11645
  var newObject = {};
11620
11646
 
11621
11647
  for (var key in originalObject) {
11648
+ // @ts-expect-error String is not assignable to Key
11622
11649
  if (ks.indexOf(key) >= 0) {
11623
11650
  continue;
11624
11651
  }
@@ -11851,7 +11878,9 @@ function reduceChildren(children, iteratee) {
11851
11878
  var parentProps = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
11852
11879
  var initialMemo = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];
11853
11880
  var combine = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : function (memo, item) {
11854
- return memo.concat(item);
11881
+ return (// @ts-expect-error These defaults are hard to type
11882
+ memo.concat(item)
11883
+ );
11855
11884
  };
11856
11885
  var sharedProps = ["data", "domain", "categories", "polar", "startAngle", "endAngle", "minDomain", "maxDomain", "horizontal"];
11857
11886
 
@@ -11895,7 +11924,7 @@ function reduceChildren(children, iteratee) {
11895
11924
  /**
11896
11925
  * @param {Object} props: the props object
11897
11926
  * @returns {Boolean} returns true if the props object contains `horizontal: true` of if any
11898
- * children or nested children are hoizontal
11927
+ * children or nested children are horizontal
11899
11928
  */
11900
11929
 
11901
11930
  function isHorizontal(props) {
@@ -11918,6 +11947,7 @@ function isHorizontal(props) {
11918
11947
 
11919
11948
  return traverseChildren(react__WEBPACK_IMPORTED_MODULE_6___default().Children.toArray(props.children));
11920
11949
  }
11950
+ //# sourceMappingURL=helpers.js.map
11921
11951
 
11922
11952
  /***/ }),
11923
11953
 
@@ -11941,7 +11971,6 @@ __webpack_require__.r(__webpack_exports__);
11941
11971
  /* harmony export */ "isRecord": () => (/* binding */ isRecord),
11942
11972
  /* harmony export */ "shallowToJS": () => (/* binding */ shallowToJS)
11943
11973
  /* harmony export */ });
11944
- /* eslint-disable func-style */
11945
11974
  var IMMUTABLE_ITERABLE = "@@__IMMUTABLE_ITERABLE__@@";
11946
11975
  var IMMUTABLE_RECORD = "@@__IMMUTABLE_RECORD__@@";
11947
11976
  var IMMUTABLE_LIST = "@@__IMMUTABLE_LIST__@@";
@@ -11962,15 +11991,16 @@ function isMap(x) {
11962
11991
  return !!(x && x[IMMUTABLE_MAP]);
11963
11992
  }
11964
11993
  function shallowToJS(x, whitelist) {
11965
- return isIterable(x) ? x.reduce(function (prev, curr, key) {
11994
+ return isIterable(x) ? x.reduce(function (result, curr, key) {
11966
11995
  if (whitelist && whitelist[key]) {
11967
11996
  curr = shallowToJS(curr);
11968
11997
  }
11969
11998
 
11970
- prev[key] = curr;
11971
- return prev;
11999
+ result[key] = curr;
12000
+ return result;
11972
12001
  }, isList(x) ? [] : {}) : x;
11973
12002
  }
12003
+ //# sourceMappingURL=immutable.js.map
11974
12004
 
11975
12005
  /***/ }),
11976
12006
 
@@ -11995,8 +12025,6 @@ __webpack_require__.r(__webpack_exports__);
11995
12025
  /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./helpers */ "../../victory-core/es/victory-util/helpers.js");
11996
12026
 
11997
12027
 
11998
- /* eslint-disable func-style */
11999
-
12000
12028
  /* eslint-disable no-use-before-define */
12001
12029
 
12002
12030
 
@@ -12230,6 +12258,7 @@ function getProps(props, index) {
12230
12258
  var tooltipTheme = theme && theme.tooltip || {};
12231
12259
  return lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, labelProps, _helpers__WEBPACK_IMPORTED_MODULE_1__.omit(tooltipTheme, ["style"]));
12232
12260
  }
12261
+ //# sourceMappingURL=label-helpers.js.map
12233
12262
 
12234
12263
  /***/ }),
12235
12264
 
@@ -12248,7 +12277,6 @@ __webpack_require__.r(__webpack_exports__);
12248
12277
 
12249
12278
  /* eslint-disable no-console */
12250
12279
  // TODO: Use "warning" npm module like React is switching to.
12251
- // eslint-disable-next-line func-style
12252
12280
  function warn(message) {
12253
12281
  if (true) {
12254
12282
  if (console && console.warn) {
@@ -12256,6 +12284,7 @@ function warn(message) {
12256
12284
  }
12257
12285
  }
12258
12286
  }
12287
+ //# sourceMappingURL=log.js.map
12259
12288
 
12260
12289
  /***/ }),
12261
12290
 
@@ -12283,12 +12312,10 @@ __webpack_require__.r(__webpack_exports__);
12283
12312
  /* harmony import */ var lodash_isRegExp__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isRegExp__WEBPACK_IMPORTED_MODULE_0__);
12284
12313
  /* harmony import */ var lodash_find__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/find */ "../../../node_modules/lodash/find.js");
12285
12314
  /* harmony import */ var lodash_find__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_find__WEBPACK_IMPORTED_MODULE_1__);
12286
- /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/isFunction */ "../../../node_modules/lodash/isFunction.js");
12287
- /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_2__);
12288
- /* harmony import */ var _log__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./log */ "../../victory-core/es/victory-util/log.js");
12289
- /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
12290
- /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);
12291
-
12315
+ /* harmony import */ var _log__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./log */ "../../victory-core/es/victory-util/log.js");
12316
+ /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
12317
+ /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__);
12318
+ /* harmony import */ var _scale__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./scale */ "../../victory-core/es/victory-util/scale.js");
12292
12319
 
12293
12320
 
12294
12321
 
@@ -12296,6 +12323,8 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
12296
12323
 
12297
12324
 
12298
12325
 
12326
+
12327
+
12299
12328
  /**
12300
12329
  * Return a new validator based on `validator` but with the option to chain
12301
12330
  * `isRequired` onto the validation. This is nearly identical to how React
@@ -12303,30 +12332,30 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
12303
12332
  * @param {Function} validator Validation function.
12304
12333
  * @returns {Function} Validator with `isRequired` option.
12305
12334
  */
12306
-
12307
12335
  var makeChainable = function (validator) {
12308
- /* eslint-disable max-params */
12309
- var _chainable = function (isRequired, props, propName, componentName) {
12310
- var value = props[propName];
12336
+ var createChainable = function (isRequired) {
12337
+ return function (props, propName, componentName) {
12338
+ var value = props[propName];
12311
12339
 
12312
- if (value === undefined || value === null) {
12313
- if (isRequired) {
12314
- return new Error("Required `".concat(propName, "` was not specified in `").concat(componentName, "`."));
12315
- }
12340
+ if (value === undefined || value === null) {
12341
+ if (isRequired) {
12342
+ return new Error("Required `".concat(propName, "` was not specified in `").concat(componentName, "`."));
12343
+ }
12316
12344
 
12317
- return null;
12318
- }
12345
+ return null;
12346
+ }
12319
12347
 
12320
- for (var _len = arguments.length, rest = new Array(_len > 4 ? _len - 4 : 0), _key = 4; _key < _len; _key++) {
12321
- rest[_key - 4] = arguments[_key];
12322
- }
12348
+ for (var _len = arguments.length, rest = new Array(_len > 3 ? _len - 3 : 0), _key = 3; _key < _len; _key++) {
12349
+ rest[_key - 3] = arguments[_key];
12350
+ }
12323
12351
 
12324
- return validator.apply(void 0, [props, propName, componentName].concat(rest));
12352
+ return validator.apply(void 0, [props, propName, componentName].concat(rest));
12353
+ };
12325
12354
  };
12326
12355
 
12327
- var chainable = _chainable.bind(null, false);
12328
-
12329
- chainable.isRequired = _chainable.bind(null, true);
12356
+ var chainable = Object.assign(createChainable(false), {
12357
+ isRequired: createChainable(true)
12358
+ });
12330
12359
  return chainable;
12331
12360
  };
12332
12361
 
@@ -12356,7 +12385,7 @@ var getConstructor = function (value) {
12356
12385
  };
12357
12386
  /**
12358
12387
  * Get the name of the constructor used to create `value`, using
12359
- * `Object.protoype.toString`. If the value is null or undefined, return
12388
+ * `Object.prototype.toString`. If the value is null or undefined, return
12360
12389
  * "null" or "undefined", respectively.
12361
12390
  * @param {*} value Instance to return the constructor name of.
12362
12391
  * @returns {String} Name of the constructor.
@@ -12386,10 +12415,11 @@ function deprecated(propType, explanation) {
12386
12415
  var value = props[propName];
12387
12416
 
12388
12417
  if (value !== null && value !== undefined) {
12389
- _log__WEBPACK_IMPORTED_MODULE_3__.warn("\"".concat(propName, "\" property of \"").concat(componentName, "\" has been deprecated ").concat(explanation));
12418
+ _log__WEBPACK_IMPORTED_MODULE_2__.warn("\"".concat(propName, "\" property of \"").concat(componentName, "\" has been deprecated ").concat(explanation));
12390
12419
  }
12391
12420
 
12392
- return prop_types__WEBPACK_IMPORTED_MODULE_4___default().checkPropTypes(_defineProperty({}, propName, propType), props, propName, componentName);
12421
+ prop_types__WEBPACK_IMPORTED_MODULE_3___default().checkPropTypes(_defineProperty({}, propName, propType), props, propName, componentName);
12422
+ return null;
12393
12423
  };
12394
12424
  }
12395
12425
  /**
@@ -12408,7 +12438,7 @@ function allOfType(validators) {
12408
12438
 
12409
12439
  return validators.reduce(function (result, validator) {
12410
12440
  return result || validator.apply(void 0, [props, propName, componentName].concat(rest));
12411
- }, undefined);
12441
+ }, null);
12412
12442
  });
12413
12443
  }
12414
12444
  /**
@@ -12422,7 +12452,7 @@ var nonNegative = makeChainable(function (props, propName, componentName) {
12422
12452
  return new Error("`".concat(propName, "` in `").concat(componentName, "` must be a non-negative number."));
12423
12453
  }
12424
12454
 
12425
- return undefined;
12455
+ return null;
12426
12456
  });
12427
12457
  /**
12428
12458
  * Check that the value is an integer.
@@ -12435,7 +12465,7 @@ var integer = makeChainable(function (props, propName, componentName) {
12435
12465
  return new Error("`".concat(propName, "` in `").concat(componentName, "` must be an integer."));
12436
12466
  }
12437
12467
 
12438
- return undefined;
12468
+ return null;
12439
12469
  });
12440
12470
  /**
12441
12471
  * Check that the value is greater than zero.
@@ -12448,7 +12478,7 @@ var greaterThanZero = makeChainable(function (props, propName, componentName) {
12448
12478
  return new Error("`".concat(propName, "` in `").concat(componentName, "` must be a number greater than zero."));
12449
12479
  }
12450
12480
 
12451
- return undefined;
12481
+ return null;
12452
12482
  });
12453
12483
  /**
12454
12484
  * Check that the value is an Array of two unique values.
@@ -12461,32 +12491,20 @@ var domain = makeChainable(function (props, propName, componentName) {
12461
12491
  return new Error("`".concat(propName, "` in `").concat(componentName, "` must be an array of two unique numeric values."));
12462
12492
  }
12463
12493
 
12464
- return undefined;
12494
+ return null;
12465
12495
  });
12466
12496
  /**
12467
12497
  * Check that the value looks like a d3 `scale` function.
12468
12498
  */
12469
12499
 
12470
12500
  var scale = makeChainable(function (props, propName, componentName) {
12471
- var supportedScaleStrings = ["linear", "time", "log", "sqrt"];
12472
-
12473
- var validScale = function (scl) {
12474
- if (lodash_isFunction__WEBPACK_IMPORTED_MODULE_2___default()(scl)) {
12475
- 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);
12476
- } else if (typeof scl === "string") {
12477
- return supportedScaleStrings.indexOf(scl) !== -1;
12478
- }
12479
-
12480
- return false;
12481
- };
12482
-
12483
12501
  var value = props[propName];
12484
12502
 
12485
- if (!validScale(value)) {
12503
+ if (!_scale__WEBPACK_IMPORTED_MODULE_4__.validScale(value)) {
12486
12504
  return new Error("`".concat(propName, "` in `").concat(componentName, "` must be a d3 scale."));
12487
12505
  }
12488
12506
 
12489
- return undefined;
12507
+ return null;
12490
12508
  });
12491
12509
  /**
12492
12510
  * Check that an array contains items of the same type.
@@ -12500,7 +12518,7 @@ var homogeneousArray = makeChainable(function (props, propName, componentName) {
12500
12518
  }
12501
12519
 
12502
12520
  if (values.length < 2) {
12503
- return undefined;
12521
+ return null;
12504
12522
  }
12505
12523
 
12506
12524
  var comparisonConstructor = getConstructor(values[0]);
@@ -12515,7 +12533,7 @@ var homogeneousArray = makeChainable(function (props, propName, componentName) {
12515
12533
  return new Error("Expected `".concat(propName, "` in `").concat(componentName, "` to be a ") + "homogeneous array, but found types `".concat(constructorName, "` and ") + "`".concat(otherConstructorName, "`."));
12516
12534
  }
12517
12535
 
12518
- return undefined;
12536
+ return null;
12519
12537
  });
12520
12538
  /**
12521
12539
  * Check that array prop length matches props.data.length
@@ -12526,7 +12544,7 @@ var matchDataLength = makeChainable(function (props, propName) {
12526
12544
  return new Error("Length of data and ".concat(propName, " arrays must match."));
12527
12545
  }
12528
12546
 
12529
- return undefined;
12547
+ return null;
12530
12548
  });
12531
12549
  /**
12532
12550
  * Check that the value is a regular expression
@@ -12537,8 +12555,9 @@ var regExp = makeChainable(function (props, propName, componentName) {
12537
12555
  return new Error("`".concat(propName, "` in `").concat(componentName, "` must be a regular expression."));
12538
12556
  }
12539
12557
 
12540
- return undefined;
12558
+ return null;
12541
12559
  });
12560
+ //# sourceMappingURL=prop-types.js.map
12542
12561
 
12543
12562
  /***/ }),
12544
12563
 
@@ -12556,7 +12575,8 @@ __webpack_require__.r(__webpack_exports__);
12556
12575
  /* harmony export */ "getScaleFromName": () => (/* binding */ getScaleFromName),
12557
12576
  /* harmony export */ "getScaleFromProps": () => (/* binding */ getScaleFromProps),
12558
12577
  /* harmony export */ "getScaleType": () => (/* binding */ getScaleType),
12559
- /* harmony export */ "getType": () => (/* binding */ getType)
12578
+ /* harmony export */ "getType": () => (/* binding */ getType),
12579
+ /* harmony export */ "validScale": () => (/* binding */ validScale)
12560
12580
  /* harmony export */ });
12561
12581
  /* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isPlainObject */ "../../../node_modules/lodash/isPlainObject.js");
12562
12582
  /* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0__);
@@ -12574,8 +12594,9 @@ __webpack_require__.r(__webpack_exports__);
12574
12594
 
12575
12595
 
12576
12596
 
12577
- var supportedScaleStrings = ["linear", "time", "log", "sqrt"]; // Private Functions
12597
+ var supportedScaleStrings = ["linear", "time", "log", "sqrt"];
12578
12598
 
12599
+ // Private Functions
12579
12600
  function toNewName(scale) {
12580
12601
  // d3 scale changed the naming scheme for scale from "linear" -> "scaleLinear" etc.
12581
12602
  var capitalize = function (s) {
@@ -12645,7 +12666,13 @@ function getScaleTypeFromData(props, axis) {
12645
12666
 
12646
12667
 
12647
12668
  function getScaleFromName(name) {
12648
- return validScale(name) ? victory_vendor_d3_scale__WEBPACK_IMPORTED_MODULE_5__[toNewName(name)]() : victory_vendor_d3_scale__WEBPACK_IMPORTED_MODULE_6__["default"]();
12669
+ if (validScale(name)) {
12670
+ var methodName = toNewName(name); // @ts-expect-error scaleTime is not directly compatible with our D3Scale definition
12671
+
12672
+ return victory_vendor_d3_scale__WEBPACK_IMPORTED_MODULE_5__[methodName]();
12673
+ }
12674
+
12675
+ return victory_vendor_d3_scale__WEBPACK_IMPORTED_MODULE_6__["default"]();
12649
12676
  }
12650
12677
  function getBaseScale(props, axis) {
12651
12678
  var scale = getScaleFromProps(props, axis);
@@ -12655,7 +12682,7 @@ function getBaseScale(props, axis) {
12655
12682
  }
12656
12683
 
12657
12684
  var defaultScale = getScaleFromDomain(props, axis) || getScaleTypeFromData(props, axis);
12658
- return victory_vendor_d3_scale__WEBPACK_IMPORTED_MODULE_5__[toNewName(defaultScale)]();
12685
+ return getScaleFromName(defaultScale);
12659
12686
  }
12660
12687
  function getDefaultScale() {
12661
12688
  return victory_vendor_d3_scale__WEBPACK_IMPORTED_MODULE_6__["default"]();
@@ -12668,7 +12695,7 @@ function getScaleFromProps(props, axis) {
12668
12695
  var scale = props.scale[axis] || props.scale;
12669
12696
 
12670
12697
  if (validScale(scale)) {
12671
- return lodash_isFunction__WEBPACK_IMPORTED_MODULE_1___default()(scale) ? scale : victory_vendor_d3_scale__WEBPACK_IMPORTED_MODULE_5__[toNewName(scale)]();
12698
+ return lodash_isFunction__WEBPACK_IMPORTED_MODULE_1___default()(scale) ? scale : getScaleFromName(scale);
12672
12699
  }
12673
12700
 
12674
12701
  return undefined;
@@ -12703,6 +12730,7 @@ function getType(scale) {
12703
12730
  })[0];
12704
12731
  return scaleType ? scaleType.name : undefined;
12705
12732
  }
12733
+ //# sourceMappingURL=scale.js.map
12706
12734
 
12707
12735
  /***/ }),
12708
12736
 
@@ -12718,8 +12746,6 @@ __webpack_require__.r(__webpack_exports__);
12718
12746
  /* harmony export */ "getColorScale": () => (/* binding */ getColorScale),
12719
12747
  /* harmony export */ "toTransformString": () => (/* binding */ toTransformString)
12720
12748
  /* harmony export */ });
12721
- /* eslint-disable func-style */
12722
-
12723
12749
  /**
12724
12750
  * Given an object with CSS/SVG transform definitions, return the string value
12725
12751
  * for use with the `transform` CSS property or SVG attribute. Note that we
@@ -12776,6 +12802,7 @@ function getColorScale(name) {
12776
12802
  };
12777
12803
  return name ? scales[name] : scales.grayscale;
12778
12804
  }
12805
+ //# sourceMappingURL=style.js.map
12779
12806
 
12780
12807
  /***/ }),
12781
12808
 
@@ -12980,8 +13007,10 @@ var _getSizeWithRotate = function (axisSize, dependentSize, angle) {
12980
13007
 
12981
13008
 
12982
13009
  var convertLengthToPixels = function (length, fontSize) {
12983
- var attribute = length.match(/[a-zA-Z%]+/) && length.match(/[a-zA-Z%]+/)[0];
12984
- var value = length.match(/[0-9.,]+/);
13010
+ var _length$match;
13011
+
13012
+ var attribute = (_length$match = length.match(/[a-zA-Z%]+/)) === null || _length$match === void 0 ? void 0 : _length$match[0];
13013
+ var value = Number(length.match(/[0-9.,]+/));
12985
13014
  var result;
12986
13015
 
12987
13016
  if (!attribute) {
@@ -13047,9 +13076,9 @@ var _approximateTextHeightInternal = function (text, style) {
13047
13076
  var height = containsCaps ? lineStyle.fontSize * coefficients.lineCapitalCoef : lineStyle.fontSize;
13048
13077
  return total + lineStyle.lineHeight * height;
13049
13078
  }, 0);
13050
- }; // Stubbable implementation.
13051
-
13079
+ };
13052
13080
 
13081
+ // Stubbable implementation.
13053
13082
  var _approximateTextSizeInternal = {
13054
13083
  impl: function (text, style) {
13055
13084
  var angle = Array.isArray(style) ? style[0] && style[0].angle : style && style.angle;
@@ -13068,7 +13097,7 @@ var _approximateTextSizeInternal = {
13068
13097
  };
13069
13098
  /**
13070
13099
  * Predict text size by font params.
13071
- * @param {string} text Content for width calculation.
13100
+ * @param {string|string[]} text Content for width calculation.
13072
13101
  * @param {Object} style Text styles, ,fontFamily, fontSize, etc.
13073
13102
  * @param {string} style.fontFamily Text fontFamily.
13074
13103
  * @param {(number|string)} style.fontSize Text fontSize.
@@ -13081,6 +13110,7 @@ var _approximateTextSizeInternal = {
13081
13110
  var approximateTextSize = function (text, style) {
13082
13111
  return _approximateTextSizeInternal.impl(text, style);
13083
13112
  };
13113
+ //# sourceMappingURL=textsize.js.map
13084
13114
 
13085
13115
  /***/ }),
13086
13116
 
@@ -13111,6 +13141,7 @@ var TimerContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cre
13111
13141
  });
13112
13142
  TimerContext.displayName = "TimerContext";
13113
13143
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (TimerContext);
13144
+ //# sourceMappingURL=timer-context.js.map
13114
13145
 
13115
13146
  /***/ }),
13116
13147
 
@@ -13136,11 +13167,23 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
13136
13167
 
13137
13168
  var Timer = /*#__PURE__*/function () {
13138
13169
  function Timer() {
13170
+ var _this = this;
13171
+
13139
13172
  _classCallCheck(this, Timer);
13140
13173
 
13174
+ this.shouldAnimate = void 0;
13175
+ this.subscribers = void 0;
13176
+ this.activeSubscriptions = void 0;
13177
+ this.timer = void 0;
13178
+
13179
+ this.loop = function () {
13180
+ _this.subscribers.forEach(function (s) {
13181
+ s.callback((0,victory_vendor_d3_timer__WEBPACK_IMPORTED_MODULE_0__.now)() - s.startTime, s.duration);
13182
+ });
13183
+ };
13184
+
13141
13185
  this.shouldAnimate = true;
13142
13186
  this.subscribers = [];
13143
- this.loop = this.loop.bind(this);
13144
13187
  this.timer = null;
13145
13188
  this.activeSubscriptions = 0;
13146
13189
  }
@@ -13155,13 +13198,6 @@ var Timer = /*#__PURE__*/function () {
13155
13198
  value: function resumeAnimation() {
13156
13199
  this.shouldAnimate = true;
13157
13200
  }
13158
- }, {
13159
- key: "loop",
13160
- value: function loop() {
13161
- this.subscribers.forEach(function (s) {
13162
- s.callback((0,victory_vendor_d3_timer__WEBPACK_IMPORTED_MODULE_0__.now)() - s.startTime, s.duration);
13163
- });
13164
- }
13165
13201
  }, {
13166
13202
  key: "start",
13167
13203
  value: function start() {
@@ -13208,6 +13244,7 @@ var Timer = /*#__PURE__*/function () {
13208
13244
  }();
13209
13245
 
13210
13246
 
13247
+ //# sourceMappingURL=timer.js.map
13211
13248
 
13212
13249
  /***/ }),
13213
13250
 
@@ -13298,7 +13335,7 @@ function getChildData(child) {
13298
13335
  }
13299
13336
  /**
13300
13337
  * If a parent component has animation enabled, calculate the transitions
13301
- * for any data of any child component that supports data transitions
13338
+ * for any data of any child component that supports data transitions.
13302
13339
  * Data transitions are defined as any two datasets where data nodes exist
13303
13340
  * in the first set and not the second, in the second and not the first,
13304
13341
  * or both.
@@ -13427,7 +13464,7 @@ function getChildPropsOnExit(animate, child, data, exitingNodes, cb) {
13427
13464
 
13428
13465
  if (exitingNodes) {
13429
13466
  // After the exit transition occurs, trigger the animations for
13430
- // nodes that are neither exiting or entering.
13467
+ // nodes that are neither exiting nor entering.
13431
13468
  animate.onEnd = cb;
13432
13469
  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.
13433
13470
 
@@ -13497,7 +13534,7 @@ function getChildPropsOnEnter(animate, data, enteringNodes, cb) {
13497
13534
  * and its index in the parent's children array.
13498
13535
  *
13499
13536
  * In particular, this will include an `animate` object that is set appropriately
13500
- * so that each child will be synchoronized for each stage of a transition
13537
+ * so that each child will be synchronized for each stage of a transition
13501
13538
  * animation. It will also include a transformed `data` object, where each datum
13502
13539
  * is transformed by `animate.onExit` and `animate.onEnter` `before` and `after`
13503
13540
  * functions.
@@ -13642,6 +13679,7 @@ function getTransitionPropsFactory(props, state, setState) {
13642
13679
  };
13643
13680
  };
13644
13681
  }
13682
+ //# sourceMappingURL=transitions.js.map
13645
13683
 
13646
13684
  /***/ }),
13647
13685
 
@@ -13680,7 +13718,7 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
13680
13718
 
13681
13719
  /*
13682
13720
  USER_PROPS_SAFELIST is to contain any string deemed safe for user props.
13683
- The startsWidth array will contain the start of any accepted user-prop that
13721
+ The startsWidth array will contain the start of any accepted user-prop that
13684
13722
  starts with these characters.
13685
13723
  The exactMatch will contain a list of exact prop names that are accepted.
13686
13724
  */
@@ -13689,6 +13727,7 @@ var USER_PROPS_SAFELIST = {
13689
13727
  startsWith: ["data-", "aria-"],
13690
13728
  exactMatch: []
13691
13729
  };
13730
+
13692
13731
  /**
13693
13732
  * doesPropStartWith: Function that takes a prop's key and runs it against all
13694
13733
  * options in the USER_PROPS_SAFELIST and checks to see if it starts with any
@@ -13697,7 +13736,6 @@ var USER_PROPS_SAFELIST = {
13697
13736
  * @returns {Boolean}: returns true if the key starts with an option or false if
13698
13737
  * otherwise
13699
13738
  */
13700
-
13701
13739
  var doesPropStartWith = function (key) {
13702
13740
  var startsWith = false;
13703
13741
  USER_PROPS_SAFELIST.startsWith.forEach(function (starterString) {
@@ -13774,14 +13812,15 @@ var getSafeUserProps = function (props) {
13774
13812
  /**
13775
13813
  * Wraps a component and adds safe user props
13776
13814
  *
13777
- * @param {ReactNode} component: parent component
13815
+ * @param {ReactElement} component: parent component
13778
13816
  * @param {Object} props: props to be filtered
13779
- * @returns {ReactNode} modified component
13817
+ * @returns {ReactElement} modified component
13780
13818
  */
13781
13819
 
13782
13820
  var withSafeUserProps = function (component, props) {
13783
13821
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.cloneElement(component, getSafeUserProps(props));
13784
13822
  };
13823
+ //# sourceMappingURL=user-props.js.map
13785
13824
 
13786
13825
  /***/ }),
13787
13826