stream-engine-widgets 0.3.14 → 0.3.16
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.
- package/README.md +70 -66
- package/dist/{ArrowForwardIosRounded-Bug0UD4Z.js → ArrowForwardIosRounded-BHHWNUfB.js} +2 -2
- package/dist/ArrowForwardIosRounded-BHHWNUfB.js.map +1 -0
- package/dist/{PlayArrowRounded-DDn8lR83.js → PlayArrowRounded-D1FELNJx.js} +2 -2
- package/dist/PlayArrowRounded-D1FELNJx.js.map +1 -0
- package/dist/blaze-BOFmpQ80.js +528 -0
- package/dist/blaze-BOFmpQ80.js.map +1 -0
- package/dist/{gallery-Bj7HaEKS.js → gallery-GRnjldyr.js} +3 -3
- package/dist/{gallery-Bj7HaEKS.js.map → gallery-GRnjldyr.js.map} +1 -1
- package/dist/{index-DRXk8TB6.js → index-BkAInKCv.js} +894 -156
- package/dist/index-BkAInKCv.js.map +1 -0
- package/dist/{matchItem-Dbtm7f0H.js → matchItem-CL87EJ7i.js} +2 -2
- package/dist/{matchItem-Dbtm7f0H.js.map → matchItem-CL87EJ7i.js.map} +1 -1
- package/dist/{matches-BYGBQOdB.js → matches-CCFg5Xd1.js} +4 -4
- package/dist/{matches-BYGBQOdB.js.map → matches-CCFg5Xd1.js.map} +1 -1
- package/dist/{matchesStandalone-fkyfgYtI.js → matchesStandalone-K-T-YXDH.js} +234 -10
- package/dist/matchesStandalone-K-T-YXDH.js.map +1 -0
- package/dist/{player-BpFZSk7h.js → player-BkFsXlEi.js} +3 -3
- package/dist/{player-BpFZSk7h.js.map → player-BkFsXlEi.js.map} +1 -1
- package/dist/{poster-gBj_BEdS.js → poster-BFthK88T.js} +3 -3
- package/dist/{poster-gBj_BEdS.js.map → poster-BFthK88T.js.map} +1 -1
- package/dist/{posterItem-COVgC8zh.js → posterItem-BojAdnBI.js} +4 -4
- package/dist/{posterItem-COVgC8zh.js.map → posterItem-BojAdnBI.js.map} +1 -1
- package/dist/{scroll-DcdnfMG4.js → scroll-Cm_Q9RJ9.js} +4 -4
- package/dist/{scroll-DcdnfMG4.js.map → scroll-Cm_Q9RJ9.js.map} +1 -1
- package/dist/{stateTimeIndicator-CpCIHbFB.js → stateTimeIndicator-BY_OhJJ6.js} +2 -2
- package/dist/{stateTimeIndicator-CpCIHbFB.js.map → stateTimeIndicator-BY_OhJJ6.js.map} +1 -1
- package/dist/{story-CH4qV2PF.js → story-BbKazkAh.js} +4 -4
- package/dist/story-BbKazkAh.js.map +1 -0
- package/dist/stream-engine-widgets.css +0 -708
- package/dist/stream-engine-widgets.js +1 -1
- package/dist/{useMediaQuery-C8rqxnyT.js → useMediaQuery-Bh9Ciip_.js} +4 -4
- package/dist/{useMediaQuery-C8rqxnyT.js.map → useMediaQuery-Bh9Ciip_.js.map} +1 -1
- package/package.json +1 -5
- package/dist/ArrowForwardIosRounded-Bug0UD4Z.js.map +0 -1
- package/dist/PlayArrowRounded-DDn8lR83.js.map +0 -1
- package/dist/blaze-widget-COvQjzxN.js +0 -536
- package/dist/blaze-widget-COvQjzxN.js.map +0 -1
- package/dist/index-DRXk8TB6.js.map +0 -1
- package/dist/matchesStandalone-fkyfgYtI.js.map +0 -1
- package/dist/story-CH4qV2PF.js.map +0 -1
|
@@ -549,11 +549,11 @@ function S(r, a, s, i = {}) {
|
|
|
549
549
|
}), c;
|
|
550
550
|
}
|
|
551
551
|
|
|
552
|
-
var propTypes = {exports: {}};
|
|
552
|
+
var propTypes$1 = {exports: {}};
|
|
553
553
|
|
|
554
|
-
var reactIs$
|
|
554
|
+
var reactIs$3 = {exports: {}};
|
|
555
555
|
|
|
556
|
-
var reactIs_development$
|
|
556
|
+
var reactIs_development$2 = {};
|
|
557
557
|
|
|
558
558
|
/** @license React v16.13.1
|
|
559
559
|
* react-is.development.js
|
|
@@ -680,42 +680,42 @@ var reactIs_development$1 = {};
|
|
|
680
680
|
function isSuspense(object) {
|
|
681
681
|
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
|
682
682
|
}
|
|
683
|
-
reactIs_development$
|
|
684
|
-
reactIs_development$
|
|
685
|
-
reactIs_development$
|
|
686
|
-
reactIs_development$
|
|
687
|
-
reactIs_development$
|
|
688
|
-
reactIs_development$
|
|
689
|
-
reactIs_development$
|
|
690
|
-
reactIs_development$
|
|
691
|
-
reactIs_development$
|
|
692
|
-
reactIs_development$
|
|
693
|
-
reactIs_development$
|
|
694
|
-
reactIs_development$
|
|
695
|
-
reactIs_development$
|
|
696
|
-
reactIs_development$
|
|
697
|
-
reactIs_development$
|
|
698
|
-
reactIs_development$
|
|
699
|
-
reactIs_development$
|
|
700
|
-
reactIs_development$
|
|
701
|
-
reactIs_development$
|
|
702
|
-
reactIs_development$
|
|
703
|
-
reactIs_development$
|
|
704
|
-
reactIs_development$
|
|
705
|
-
reactIs_development$
|
|
706
|
-
reactIs_development$
|
|
707
|
-
reactIs_development$
|
|
708
|
-
reactIs_development$
|
|
709
|
-
reactIs_development$
|
|
710
|
-
reactIs_development$
|
|
683
|
+
reactIs_development$2.AsyncMode = AsyncMode;
|
|
684
|
+
reactIs_development$2.ConcurrentMode = ConcurrentMode;
|
|
685
|
+
reactIs_development$2.ContextConsumer = ContextConsumer;
|
|
686
|
+
reactIs_development$2.ContextProvider = ContextProvider;
|
|
687
|
+
reactIs_development$2.Element = Element;
|
|
688
|
+
reactIs_development$2.ForwardRef = ForwardRef;
|
|
689
|
+
reactIs_development$2.Fragment = Fragment;
|
|
690
|
+
reactIs_development$2.Lazy = Lazy;
|
|
691
|
+
reactIs_development$2.Memo = Memo;
|
|
692
|
+
reactIs_development$2.Portal = Portal;
|
|
693
|
+
reactIs_development$2.Profiler = Profiler;
|
|
694
|
+
reactIs_development$2.StrictMode = StrictMode;
|
|
695
|
+
reactIs_development$2.Suspense = Suspense;
|
|
696
|
+
reactIs_development$2.isAsyncMode = isAsyncMode;
|
|
697
|
+
reactIs_development$2.isConcurrentMode = isConcurrentMode;
|
|
698
|
+
reactIs_development$2.isContextConsumer = isContextConsumer;
|
|
699
|
+
reactIs_development$2.isContextProvider = isContextProvider;
|
|
700
|
+
reactIs_development$2.isElement = isElement;
|
|
701
|
+
reactIs_development$2.isForwardRef = isForwardRef;
|
|
702
|
+
reactIs_development$2.isFragment = isFragment;
|
|
703
|
+
reactIs_development$2.isLazy = isLazy;
|
|
704
|
+
reactIs_development$2.isMemo = isMemo;
|
|
705
|
+
reactIs_development$2.isPortal = isPortal;
|
|
706
|
+
reactIs_development$2.isProfiler = isProfiler;
|
|
707
|
+
reactIs_development$2.isStrictMode = isStrictMode;
|
|
708
|
+
reactIs_development$2.isSuspense = isSuspense;
|
|
709
|
+
reactIs_development$2.isValidElementType = isValidElementType;
|
|
710
|
+
reactIs_development$2.typeOf = typeOf;
|
|
711
711
|
})();
|
|
712
712
|
}
|
|
713
713
|
|
|
714
714
|
{
|
|
715
|
-
reactIs$
|
|
715
|
+
reactIs$3.exports = reactIs_development$2;
|
|
716
716
|
}
|
|
717
717
|
|
|
718
|
-
var reactIsExports$
|
|
718
|
+
var reactIsExports$2 = reactIs$3.exports;
|
|
719
719
|
|
|
720
720
|
/*
|
|
721
721
|
object-assign
|
|
@@ -723,11 +723,11 @@ object-assign
|
|
|
723
723
|
@license MIT
|
|
724
724
|
*/
|
|
725
725
|
/* eslint-disable no-unused-vars */
|
|
726
|
-
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
|
|
727
|
-
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
728
|
-
var propIsEnumerable = Object.prototype.propertyIsEnumerable;
|
|
726
|
+
var getOwnPropertySymbols$1 = Object.getOwnPropertySymbols;
|
|
727
|
+
var hasOwnProperty$1 = Object.prototype.hasOwnProperty;
|
|
728
|
+
var propIsEnumerable$1 = Object.prototype.propertyIsEnumerable;
|
|
729
729
|
|
|
730
|
-
function toObject(val) {
|
|
730
|
+
function toObject$1(val) {
|
|
731
731
|
if (val === null || val === undefined) {
|
|
732
732
|
throw new TypeError('Object.assign cannot be called with null or undefined');
|
|
733
733
|
}
|
|
@@ -735,7 +735,7 @@ function toObject(val) {
|
|
|
735
735
|
return Object(val);
|
|
736
736
|
}
|
|
737
737
|
|
|
738
|
-
function shouldUseNative() {
|
|
738
|
+
function shouldUseNative$1() {
|
|
739
739
|
try {
|
|
740
740
|
if (!Object.assign) {
|
|
741
741
|
return false;
|
|
@@ -779,24 +779,24 @@ function shouldUseNative() {
|
|
|
779
779
|
}
|
|
780
780
|
}
|
|
781
781
|
|
|
782
|
-
var objectAssign = shouldUseNative() ? Object.assign : function (target, source) {
|
|
782
|
+
var objectAssign$1 = shouldUseNative$1() ? Object.assign : function (target, source) {
|
|
783
783
|
var from;
|
|
784
|
-
var to = toObject(target);
|
|
784
|
+
var to = toObject$1(target);
|
|
785
785
|
var symbols;
|
|
786
786
|
|
|
787
787
|
for (var s = 1; s < arguments.length; s++) {
|
|
788
788
|
from = Object(arguments[s]);
|
|
789
789
|
|
|
790
790
|
for (var key in from) {
|
|
791
|
-
if (hasOwnProperty.call(from, key)) {
|
|
791
|
+
if (hasOwnProperty$1.call(from, key)) {
|
|
792
792
|
to[key] = from[key];
|
|
793
793
|
}
|
|
794
794
|
}
|
|
795
795
|
|
|
796
|
-
if (getOwnPropertySymbols) {
|
|
797
|
-
symbols = getOwnPropertySymbols(from);
|
|
796
|
+
if (getOwnPropertySymbols$1) {
|
|
797
|
+
symbols = getOwnPropertySymbols$1(from);
|
|
798
798
|
for (var i = 0; i < symbols.length; i++) {
|
|
799
|
-
if (propIsEnumerable.call(from, symbols[i])) {
|
|
799
|
+
if (propIsEnumerable$1.call(from, symbols[i])) {
|
|
800
800
|
to[symbols[i]] = from[symbols[i]];
|
|
801
801
|
}
|
|
802
802
|
}
|
|
@@ -813,19 +813,19 @@ var objectAssign = shouldUseNative() ? Object.assign : function (target, source)
|
|
|
813
813
|
* LICENSE file in the root directory of this source tree.
|
|
814
814
|
*/
|
|
815
815
|
|
|
816
|
-
var ReactPropTypesSecret$
|
|
816
|
+
var ReactPropTypesSecret$5 = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
|
|
817
817
|
|
|
818
|
-
var ReactPropTypesSecret_1 = ReactPropTypesSecret$
|
|
818
|
+
var ReactPropTypesSecret_1$1 = ReactPropTypesSecret$5;
|
|
819
819
|
|
|
820
|
-
var has$
|
|
820
|
+
var has$5 = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
821
821
|
|
|
822
|
-
var printWarning$
|
|
822
|
+
var printWarning$3 = function() {
|
|
823
823
|
};
|
|
824
824
|
{
|
|
825
|
-
var ReactPropTypesSecret$
|
|
826
|
-
var loggedTypeFailures = {};
|
|
827
|
-
var has$
|
|
828
|
-
printWarning$
|
|
825
|
+
var ReactPropTypesSecret$4 = ReactPropTypesSecret_1$1;
|
|
826
|
+
var loggedTypeFailures$1 = {};
|
|
827
|
+
var has$4 = has$5;
|
|
828
|
+
printWarning$3 = function(text) {
|
|
829
829
|
var message = "Warning: " + text;
|
|
830
830
|
if (typeof console !== "undefined") {
|
|
831
831
|
console.error(message);
|
|
@@ -836,10 +836,10 @@ var printWarning$1 = function() {
|
|
|
836
836
|
}
|
|
837
837
|
};
|
|
838
838
|
}
|
|
839
|
-
function checkPropTypes$
|
|
839
|
+
function checkPropTypes$3(typeSpecs, values, location, componentName, getStack) {
|
|
840
840
|
{
|
|
841
841
|
for (var typeSpecName in typeSpecs) {
|
|
842
|
-
if (has$
|
|
842
|
+
if (has$4(typeSpecs, typeSpecName)) {
|
|
843
843
|
var error;
|
|
844
844
|
try {
|
|
845
845
|
if (typeof typeSpecs[typeSpecName] !== "function") {
|
|
@@ -849,19 +849,19 @@ function checkPropTypes$1(typeSpecs, values, location, componentName, getStack)
|
|
|
849
849
|
err.name = "Invariant Violation";
|
|
850
850
|
throw err;
|
|
851
851
|
}
|
|
852
|
-
error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret$
|
|
852
|
+
error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret$4);
|
|
853
853
|
} catch (ex) {
|
|
854
854
|
error = ex;
|
|
855
855
|
}
|
|
856
856
|
if (error && !(error instanceof Error)) {
|
|
857
|
-
printWarning$
|
|
857
|
+
printWarning$3(
|
|
858
858
|
(componentName || "React class") + ": type specification of " + location + " `" + typeSpecName + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof error + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
859
859
|
);
|
|
860
860
|
}
|
|
861
|
-
if (error instanceof Error && !(error.message in loggedTypeFailures)) {
|
|
862
|
-
loggedTypeFailures[error.message] = true;
|
|
861
|
+
if (error instanceof Error && !(error.message in loggedTypeFailures$1)) {
|
|
862
|
+
loggedTypeFailures$1[error.message] = true;
|
|
863
863
|
var stack = getStack ? getStack() : "";
|
|
864
|
-
printWarning$
|
|
864
|
+
printWarning$3(
|
|
865
865
|
"Failed " + location + " type: " + error.message + (stack != null ? stack : "")
|
|
866
866
|
);
|
|
867
867
|
}
|
|
@@ -869,22 +869,22 @@ function checkPropTypes$1(typeSpecs, values, location, componentName, getStack)
|
|
|
869
869
|
}
|
|
870
870
|
}
|
|
871
871
|
}
|
|
872
|
-
checkPropTypes$
|
|
872
|
+
checkPropTypes$3.resetWarningCache = function() {
|
|
873
873
|
{
|
|
874
|
-
loggedTypeFailures = {};
|
|
874
|
+
loggedTypeFailures$1 = {};
|
|
875
875
|
}
|
|
876
876
|
};
|
|
877
|
-
var checkPropTypes_1 = checkPropTypes$
|
|
877
|
+
var checkPropTypes_1$1 = checkPropTypes$3;
|
|
878
878
|
|
|
879
|
-
var ReactIs$
|
|
880
|
-
var assign$
|
|
881
|
-
var ReactPropTypesSecret = ReactPropTypesSecret_1;
|
|
882
|
-
var has = has$
|
|
883
|
-
var checkPropTypes = checkPropTypes_1;
|
|
884
|
-
var printWarning = function() {
|
|
879
|
+
var ReactIs$3 = reactIsExports$2;
|
|
880
|
+
var assign$2 = objectAssign$1;
|
|
881
|
+
var ReactPropTypesSecret$3 = ReactPropTypesSecret_1$1;
|
|
882
|
+
var has$3 = has$5;
|
|
883
|
+
var checkPropTypes$2 = checkPropTypes_1$1;
|
|
884
|
+
var printWarning$2 = function() {
|
|
885
885
|
};
|
|
886
886
|
{
|
|
887
|
-
printWarning = function(text) {
|
|
887
|
+
printWarning$2 = function(text) {
|
|
888
888
|
var message = "Warning: " + text;
|
|
889
889
|
if (typeof console !== "undefined") {
|
|
890
890
|
console.error(message);
|
|
@@ -895,10 +895,10 @@ var printWarning = function() {
|
|
|
895
895
|
}
|
|
896
896
|
};
|
|
897
897
|
}
|
|
898
|
-
function emptyFunctionThatReturnsNull() {
|
|
898
|
+
function emptyFunctionThatReturnsNull$1() {
|
|
899
899
|
return null;
|
|
900
900
|
}
|
|
901
|
-
var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
901
|
+
var factoryWithTypeCheckers$1 = function(isValidElement, throwOnDirectAccess) {
|
|
902
902
|
var ITERATOR_SYMBOL = typeof Symbol === "function" && Symbol.iterator;
|
|
903
903
|
var FAUX_ITERATOR_SYMBOL = "@@iterator";
|
|
904
904
|
function getIteratorFn(maybeIterable) {
|
|
@@ -950,7 +950,7 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
950
950
|
function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
|
|
951
951
|
componentName = componentName || ANONYMOUS;
|
|
952
952
|
propFullName = propFullName || propName;
|
|
953
|
-
if (secret !== ReactPropTypesSecret) {
|
|
953
|
+
if (secret !== ReactPropTypesSecret$3) {
|
|
954
954
|
if (throwOnDirectAccess) {
|
|
955
955
|
var err = new Error(
|
|
956
956
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
|
|
@@ -961,7 +961,7 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
961
961
|
var cacheKey = componentName + ":" + propName;
|
|
962
962
|
if (!manualPropTypeCallCache[cacheKey] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
963
963
|
manualPropTypeWarningCount < 3) {
|
|
964
|
-
printWarning(
|
|
964
|
+
printWarning$2(
|
|
965
965
|
"You are manually calling a React.PropTypes validation function for the `" + propFullName + "` prop on `" + componentName + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
|
966
966
|
);
|
|
967
967
|
manualPropTypeCallCache[cacheKey] = true;
|
|
@@ -1001,7 +1001,7 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
1001
1001
|
return createChainableTypeChecker(validate);
|
|
1002
1002
|
}
|
|
1003
1003
|
function createAnyTypeChecker() {
|
|
1004
|
-
return createChainableTypeChecker(emptyFunctionThatReturnsNull);
|
|
1004
|
+
return createChainableTypeChecker(emptyFunctionThatReturnsNull$1);
|
|
1005
1005
|
}
|
|
1006
1006
|
function createArrayOfTypeChecker(typeChecker) {
|
|
1007
1007
|
function validate(props, propName, componentName, location, propFullName) {
|
|
@@ -1014,7 +1014,7 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
1014
1014
|
return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected an array."));
|
|
1015
1015
|
}
|
|
1016
1016
|
for (var i = 0; i < propValue.length; i++) {
|
|
1017
|
-
var error = typeChecker(propValue, i, componentName, location, propFullName + "[" + i + "]", ReactPropTypesSecret);
|
|
1017
|
+
var error = typeChecker(propValue, i, componentName, location, propFullName + "[" + i + "]", ReactPropTypesSecret$3);
|
|
1018
1018
|
if (error instanceof Error) {
|
|
1019
1019
|
return error;
|
|
1020
1020
|
}
|
|
@@ -1037,7 +1037,7 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
1037
1037
|
function createElementTypeTypeChecker() {
|
|
1038
1038
|
function validate(props, propName, componentName, location, propFullName) {
|
|
1039
1039
|
var propValue = props[propName];
|
|
1040
|
-
if (!ReactIs$
|
|
1040
|
+
if (!ReactIs$3.isValidElementType(propValue)) {
|
|
1041
1041
|
var propType = getPropType(propValue);
|
|
1042
1042
|
return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected a single ReactElement type."));
|
|
1043
1043
|
}
|
|
@@ -1060,14 +1060,14 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
1060
1060
|
if (!Array.isArray(expectedValues)) {
|
|
1061
1061
|
{
|
|
1062
1062
|
if (arguments.length > 1) {
|
|
1063
|
-
printWarning(
|
|
1063
|
+
printWarning$2(
|
|
1064
1064
|
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
1065
1065
|
);
|
|
1066
1066
|
} else {
|
|
1067
|
-
printWarning("Invalid argument supplied to oneOf, expected an array.");
|
|
1067
|
+
printWarning$2("Invalid argument supplied to oneOf, expected an array.");
|
|
1068
1068
|
}
|
|
1069
1069
|
}
|
|
1070
|
-
return emptyFunctionThatReturnsNull;
|
|
1070
|
+
return emptyFunctionThatReturnsNull$1;
|
|
1071
1071
|
}
|
|
1072
1072
|
function validate(props, propName, componentName, location, propFullName) {
|
|
1073
1073
|
var propValue = props[propName];
|
|
@@ -1098,8 +1098,8 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
1098
1098
|
return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected an object."));
|
|
1099
1099
|
}
|
|
1100
1100
|
for (var key in propValue) {
|
|
1101
|
-
if (has(propValue, key)) {
|
|
1102
|
-
var error = typeChecker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret);
|
|
1101
|
+
if (has$3(propValue, key)) {
|
|
1102
|
+
var error = typeChecker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret$3);
|
|
1103
1103
|
if (error instanceof Error) {
|
|
1104
1104
|
return error;
|
|
1105
1105
|
}
|
|
@@ -1111,27 +1111,27 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
1111
1111
|
}
|
|
1112
1112
|
function createUnionTypeChecker(arrayOfTypeCheckers) {
|
|
1113
1113
|
if (!Array.isArray(arrayOfTypeCheckers)) {
|
|
1114
|
-
printWarning("Invalid argument supplied to oneOfType, expected an instance of array.") ;
|
|
1115
|
-
return emptyFunctionThatReturnsNull;
|
|
1114
|
+
printWarning$2("Invalid argument supplied to oneOfType, expected an instance of array.") ;
|
|
1115
|
+
return emptyFunctionThatReturnsNull$1;
|
|
1116
1116
|
}
|
|
1117
1117
|
for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
|
|
1118
1118
|
var checker = arrayOfTypeCheckers[i];
|
|
1119
1119
|
if (typeof checker !== "function") {
|
|
1120
|
-
printWarning(
|
|
1120
|
+
printWarning$2(
|
|
1121
1121
|
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + getPostfixForTypeWarning(checker) + " at index " + i + "."
|
|
1122
1122
|
);
|
|
1123
|
-
return emptyFunctionThatReturnsNull;
|
|
1123
|
+
return emptyFunctionThatReturnsNull$1;
|
|
1124
1124
|
}
|
|
1125
1125
|
}
|
|
1126
1126
|
function validate(props, propName, componentName, location, propFullName) {
|
|
1127
1127
|
var expectedTypes = [];
|
|
1128
1128
|
for (var i2 = 0; i2 < arrayOfTypeCheckers.length; i2++) {
|
|
1129
1129
|
var checker2 = arrayOfTypeCheckers[i2];
|
|
1130
|
-
var checkerResult = checker2(props, propName, componentName, location, propFullName, ReactPropTypesSecret);
|
|
1130
|
+
var checkerResult = checker2(props, propName, componentName, location, propFullName, ReactPropTypesSecret$3);
|
|
1131
1131
|
if (checkerResult == null) {
|
|
1132
1132
|
return null;
|
|
1133
1133
|
}
|
|
1134
|
-
if (checkerResult.data && has(checkerResult.data, "expectedType")) {
|
|
1134
|
+
if (checkerResult.data && has$3(checkerResult.data, "expectedType")) {
|
|
1135
1135
|
expectedTypes.push(checkerResult.data.expectedType);
|
|
1136
1136
|
}
|
|
1137
1137
|
}
|
|
@@ -1166,7 +1166,7 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
1166
1166
|
if (typeof checker !== "function") {
|
|
1167
1167
|
return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
|
|
1168
1168
|
}
|
|
1169
|
-
var error = checker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret);
|
|
1169
|
+
var error = checker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret$3);
|
|
1170
1170
|
if (error) {
|
|
1171
1171
|
return error;
|
|
1172
1172
|
}
|
|
@@ -1182,10 +1182,10 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
1182
1182
|
if (propType !== "object") {
|
|
1183
1183
|
return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type `" + propType + "` " + ("supplied to `" + componentName + "`, expected `object`."));
|
|
1184
1184
|
}
|
|
1185
|
-
var allKeys = assign$
|
|
1185
|
+
var allKeys = assign$2({}, props[propName], shapeTypes);
|
|
1186
1186
|
for (var key in allKeys) {
|
|
1187
1187
|
var checker = shapeTypes[key];
|
|
1188
|
-
if (has(shapeTypes, key) && typeof checker !== "function") {
|
|
1188
|
+
if (has$3(shapeTypes, key) && typeof checker !== "function") {
|
|
1189
1189
|
return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
|
|
1190
1190
|
}
|
|
1191
1191
|
if (!checker) {
|
|
@@ -1193,7 +1193,7 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
1193
1193
|
"Invalid " + location + " `" + propFullName + "` key `" + key + "` supplied to `" + componentName + "`.\nBad object: " + JSON.stringify(props[propName], null, " ") + "\nValid keys: " + JSON.stringify(Object.keys(shapeTypes), null, " ")
|
|
1194
1194
|
);
|
|
1195
1195
|
}
|
|
1196
|
-
var error = checker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret);
|
|
1196
|
+
var error = checker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret$3);
|
|
1197
1197
|
if (error) {
|
|
1198
1198
|
return error;
|
|
1199
1199
|
}
|
|
@@ -1307,20 +1307,20 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
1307
1307
|
}
|
|
1308
1308
|
return propValue.constructor.name;
|
|
1309
1309
|
}
|
|
1310
|
-
ReactPropTypes.checkPropTypes = checkPropTypes;
|
|
1311
|
-
ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;
|
|
1310
|
+
ReactPropTypes.checkPropTypes = checkPropTypes$2;
|
|
1311
|
+
ReactPropTypes.resetWarningCache = checkPropTypes$2.resetWarningCache;
|
|
1312
1312
|
ReactPropTypes.PropTypes = ReactPropTypes;
|
|
1313
1313
|
return ReactPropTypes;
|
|
1314
1314
|
};
|
|
1315
1315
|
|
|
1316
1316
|
{
|
|
1317
|
-
var ReactIs = reactIsExports$
|
|
1318
|
-
var throwOnDirectAccess = true;
|
|
1319
|
-
propTypes.exports = factoryWithTypeCheckers(ReactIs.isElement, throwOnDirectAccess);
|
|
1317
|
+
var ReactIs$2 = reactIsExports$2;
|
|
1318
|
+
var throwOnDirectAccess$1 = true;
|
|
1319
|
+
propTypes$1.exports = factoryWithTypeCheckers$1(ReactIs$2.isElement, throwOnDirectAccess$1);
|
|
1320
1320
|
}
|
|
1321
1321
|
|
|
1322
|
-
var propTypesExports = propTypes.exports;
|
|
1323
|
-
const PropTypes = /*@__PURE__*/getDefaultExportFromCjs(propTypesExports);
|
|
1322
|
+
var propTypesExports$1 = propTypes$1.exports;
|
|
1323
|
+
const PropTypes$1 = /*@__PURE__*/getDefaultExportFromCjs(propTypesExports$1);
|
|
1324
1324
|
|
|
1325
1325
|
const remotesMap = {
|
|
1326
1326
|
'VFCMF':{url:'https://www.vfchannel.io/_next/static/chunks/remoteEntry.js',format:'var',from:'webpack'}
|
|
@@ -2376,6 +2376,779 @@ const deepmerge = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty(
|
|
|
2376
2376
|
isPlainObject
|
|
2377
2377
|
}, Symbol.toStringTag, { value: 'Module' }));
|
|
2378
2378
|
|
|
2379
|
+
var propTypes = {exports: {}};
|
|
2380
|
+
|
|
2381
|
+
var reactIs$2 = {exports: {}};
|
|
2382
|
+
|
|
2383
|
+
var reactIs_development$1 = {};
|
|
2384
|
+
|
|
2385
|
+
/** @license React v16.13.1
|
|
2386
|
+
* react-is.development.js
|
|
2387
|
+
*
|
|
2388
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
2389
|
+
*
|
|
2390
|
+
* This source code is licensed under the MIT license found in the
|
|
2391
|
+
* LICENSE file in the root directory of this source tree.
|
|
2392
|
+
*/
|
|
2393
|
+
{
|
|
2394
|
+
(function() {
|
|
2395
|
+
var hasSymbol = typeof Symbol === "function" && Symbol.for;
|
|
2396
|
+
var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for("react.element") : 60103;
|
|
2397
|
+
var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for("react.portal") : 60106;
|
|
2398
|
+
var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for("react.fragment") : 60107;
|
|
2399
|
+
var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for("react.strict_mode") : 60108;
|
|
2400
|
+
var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for("react.profiler") : 60114;
|
|
2401
|
+
var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for("react.provider") : 60109;
|
|
2402
|
+
var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for("react.context") : 60110;
|
|
2403
|
+
var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for("react.async_mode") : 60111;
|
|
2404
|
+
var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for("react.concurrent_mode") : 60111;
|
|
2405
|
+
var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for("react.forward_ref") : 60112;
|
|
2406
|
+
var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for("react.suspense") : 60113;
|
|
2407
|
+
var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for("react.suspense_list") : 60120;
|
|
2408
|
+
var REACT_MEMO_TYPE = hasSymbol ? Symbol.for("react.memo") : 60115;
|
|
2409
|
+
var REACT_LAZY_TYPE = hasSymbol ? Symbol.for("react.lazy") : 60116;
|
|
2410
|
+
var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for("react.block") : 60121;
|
|
2411
|
+
var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for("react.fundamental") : 60117;
|
|
2412
|
+
var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for("react.responder") : 60118;
|
|
2413
|
+
var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for("react.scope") : 60119;
|
|
2414
|
+
function isValidElementType(type) {
|
|
2415
|
+
return typeof type === "string" || typeof type === "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
2416
|
+
type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === "object" && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
|
|
2417
|
+
}
|
|
2418
|
+
function typeOf(object) {
|
|
2419
|
+
if (typeof object === "object" && object !== null) {
|
|
2420
|
+
var $$typeof = object.$$typeof;
|
|
2421
|
+
switch ($$typeof) {
|
|
2422
|
+
case REACT_ELEMENT_TYPE:
|
|
2423
|
+
var type = object.type;
|
|
2424
|
+
switch (type) {
|
|
2425
|
+
case REACT_ASYNC_MODE_TYPE:
|
|
2426
|
+
case REACT_CONCURRENT_MODE_TYPE:
|
|
2427
|
+
case REACT_FRAGMENT_TYPE:
|
|
2428
|
+
case REACT_PROFILER_TYPE:
|
|
2429
|
+
case REACT_STRICT_MODE_TYPE:
|
|
2430
|
+
case REACT_SUSPENSE_TYPE:
|
|
2431
|
+
return type;
|
|
2432
|
+
default:
|
|
2433
|
+
var $$typeofType = type && type.$$typeof;
|
|
2434
|
+
switch ($$typeofType) {
|
|
2435
|
+
case REACT_CONTEXT_TYPE:
|
|
2436
|
+
case REACT_FORWARD_REF_TYPE:
|
|
2437
|
+
case REACT_LAZY_TYPE:
|
|
2438
|
+
case REACT_MEMO_TYPE:
|
|
2439
|
+
case REACT_PROVIDER_TYPE:
|
|
2440
|
+
return $$typeofType;
|
|
2441
|
+
default:
|
|
2442
|
+
return $$typeof;
|
|
2443
|
+
}
|
|
2444
|
+
}
|
|
2445
|
+
case REACT_PORTAL_TYPE:
|
|
2446
|
+
return $$typeof;
|
|
2447
|
+
}
|
|
2448
|
+
}
|
|
2449
|
+
return void 0;
|
|
2450
|
+
}
|
|
2451
|
+
var AsyncMode = REACT_ASYNC_MODE_TYPE;
|
|
2452
|
+
var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
|
|
2453
|
+
var ContextConsumer = REACT_CONTEXT_TYPE;
|
|
2454
|
+
var ContextProvider = REACT_PROVIDER_TYPE;
|
|
2455
|
+
var Element = REACT_ELEMENT_TYPE;
|
|
2456
|
+
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
2457
|
+
var Fragment = REACT_FRAGMENT_TYPE;
|
|
2458
|
+
var Lazy = REACT_LAZY_TYPE;
|
|
2459
|
+
var Memo = REACT_MEMO_TYPE;
|
|
2460
|
+
var Portal = REACT_PORTAL_TYPE;
|
|
2461
|
+
var Profiler = REACT_PROFILER_TYPE;
|
|
2462
|
+
var StrictMode = REACT_STRICT_MODE_TYPE;
|
|
2463
|
+
var Suspense = REACT_SUSPENSE_TYPE;
|
|
2464
|
+
var hasWarnedAboutDeprecatedIsAsyncMode = false;
|
|
2465
|
+
function isAsyncMode(object) {
|
|
2466
|
+
{
|
|
2467
|
+
if (!hasWarnedAboutDeprecatedIsAsyncMode) {
|
|
2468
|
+
hasWarnedAboutDeprecatedIsAsyncMode = true;
|
|
2469
|
+
console["warn"]("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.");
|
|
2470
|
+
}
|
|
2471
|
+
}
|
|
2472
|
+
return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
|
|
2473
|
+
}
|
|
2474
|
+
function isConcurrentMode(object) {
|
|
2475
|
+
return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
|
|
2476
|
+
}
|
|
2477
|
+
function isContextConsumer(object) {
|
|
2478
|
+
return typeOf(object) === REACT_CONTEXT_TYPE;
|
|
2479
|
+
}
|
|
2480
|
+
function isContextProvider(object) {
|
|
2481
|
+
return typeOf(object) === REACT_PROVIDER_TYPE;
|
|
2482
|
+
}
|
|
2483
|
+
function isElement(object) {
|
|
2484
|
+
return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
2485
|
+
}
|
|
2486
|
+
function isForwardRef(object) {
|
|
2487
|
+
return typeOf(object) === REACT_FORWARD_REF_TYPE;
|
|
2488
|
+
}
|
|
2489
|
+
function isFragment(object) {
|
|
2490
|
+
return typeOf(object) === REACT_FRAGMENT_TYPE;
|
|
2491
|
+
}
|
|
2492
|
+
function isLazy(object) {
|
|
2493
|
+
return typeOf(object) === REACT_LAZY_TYPE;
|
|
2494
|
+
}
|
|
2495
|
+
function isMemo(object) {
|
|
2496
|
+
return typeOf(object) === REACT_MEMO_TYPE;
|
|
2497
|
+
}
|
|
2498
|
+
function isPortal(object) {
|
|
2499
|
+
return typeOf(object) === REACT_PORTAL_TYPE;
|
|
2500
|
+
}
|
|
2501
|
+
function isProfiler(object) {
|
|
2502
|
+
return typeOf(object) === REACT_PROFILER_TYPE;
|
|
2503
|
+
}
|
|
2504
|
+
function isStrictMode(object) {
|
|
2505
|
+
return typeOf(object) === REACT_STRICT_MODE_TYPE;
|
|
2506
|
+
}
|
|
2507
|
+
function isSuspense(object) {
|
|
2508
|
+
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
|
2509
|
+
}
|
|
2510
|
+
reactIs_development$1.AsyncMode = AsyncMode;
|
|
2511
|
+
reactIs_development$1.ConcurrentMode = ConcurrentMode;
|
|
2512
|
+
reactIs_development$1.ContextConsumer = ContextConsumer;
|
|
2513
|
+
reactIs_development$1.ContextProvider = ContextProvider;
|
|
2514
|
+
reactIs_development$1.Element = Element;
|
|
2515
|
+
reactIs_development$1.ForwardRef = ForwardRef;
|
|
2516
|
+
reactIs_development$1.Fragment = Fragment;
|
|
2517
|
+
reactIs_development$1.Lazy = Lazy;
|
|
2518
|
+
reactIs_development$1.Memo = Memo;
|
|
2519
|
+
reactIs_development$1.Portal = Portal;
|
|
2520
|
+
reactIs_development$1.Profiler = Profiler;
|
|
2521
|
+
reactIs_development$1.StrictMode = StrictMode;
|
|
2522
|
+
reactIs_development$1.Suspense = Suspense;
|
|
2523
|
+
reactIs_development$1.isAsyncMode = isAsyncMode;
|
|
2524
|
+
reactIs_development$1.isConcurrentMode = isConcurrentMode;
|
|
2525
|
+
reactIs_development$1.isContextConsumer = isContextConsumer;
|
|
2526
|
+
reactIs_development$1.isContextProvider = isContextProvider;
|
|
2527
|
+
reactIs_development$1.isElement = isElement;
|
|
2528
|
+
reactIs_development$1.isForwardRef = isForwardRef;
|
|
2529
|
+
reactIs_development$1.isFragment = isFragment;
|
|
2530
|
+
reactIs_development$1.isLazy = isLazy;
|
|
2531
|
+
reactIs_development$1.isMemo = isMemo;
|
|
2532
|
+
reactIs_development$1.isPortal = isPortal;
|
|
2533
|
+
reactIs_development$1.isProfiler = isProfiler;
|
|
2534
|
+
reactIs_development$1.isStrictMode = isStrictMode;
|
|
2535
|
+
reactIs_development$1.isSuspense = isSuspense;
|
|
2536
|
+
reactIs_development$1.isValidElementType = isValidElementType;
|
|
2537
|
+
reactIs_development$1.typeOf = typeOf;
|
|
2538
|
+
})();
|
|
2539
|
+
}
|
|
2540
|
+
|
|
2541
|
+
{
|
|
2542
|
+
reactIs$2.exports = reactIs_development$1;
|
|
2543
|
+
}
|
|
2544
|
+
|
|
2545
|
+
var reactIsExports$1 = reactIs$2.exports;
|
|
2546
|
+
|
|
2547
|
+
/*
|
|
2548
|
+
object-assign
|
|
2549
|
+
(c) Sindre Sorhus
|
|
2550
|
+
@license MIT
|
|
2551
|
+
*/
|
|
2552
|
+
/* eslint-disable no-unused-vars */
|
|
2553
|
+
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
|
|
2554
|
+
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
2555
|
+
var propIsEnumerable = Object.prototype.propertyIsEnumerable;
|
|
2556
|
+
|
|
2557
|
+
function toObject(val) {
|
|
2558
|
+
if (val === null || val === undefined) {
|
|
2559
|
+
throw new TypeError('Object.assign cannot be called with null or undefined');
|
|
2560
|
+
}
|
|
2561
|
+
|
|
2562
|
+
return Object(val);
|
|
2563
|
+
}
|
|
2564
|
+
|
|
2565
|
+
function shouldUseNative() {
|
|
2566
|
+
try {
|
|
2567
|
+
if (!Object.assign) {
|
|
2568
|
+
return false;
|
|
2569
|
+
}
|
|
2570
|
+
|
|
2571
|
+
// Detect buggy property enumeration order in older V8 versions.
|
|
2572
|
+
|
|
2573
|
+
// https://bugs.chromium.org/p/v8/issues/detail?id=4118
|
|
2574
|
+
var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
|
|
2575
|
+
test1[5] = 'de';
|
|
2576
|
+
if (Object.getOwnPropertyNames(test1)[0] === '5') {
|
|
2577
|
+
return false;
|
|
2578
|
+
}
|
|
2579
|
+
|
|
2580
|
+
// https://bugs.chromium.org/p/v8/issues/detail?id=3056
|
|
2581
|
+
var test2 = {};
|
|
2582
|
+
for (var i = 0; i < 10; i++) {
|
|
2583
|
+
test2['_' + String.fromCharCode(i)] = i;
|
|
2584
|
+
}
|
|
2585
|
+
var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
|
|
2586
|
+
return test2[n];
|
|
2587
|
+
});
|
|
2588
|
+
if (order2.join('') !== '0123456789') {
|
|
2589
|
+
return false;
|
|
2590
|
+
}
|
|
2591
|
+
|
|
2592
|
+
// https://bugs.chromium.org/p/v8/issues/detail?id=3056
|
|
2593
|
+
var test3 = {};
|
|
2594
|
+
'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
|
|
2595
|
+
test3[letter] = letter;
|
|
2596
|
+
});
|
|
2597
|
+
if (Object.keys(Object.assign({}, test3)).join('') !==
|
|
2598
|
+
'abcdefghijklmnopqrst') {
|
|
2599
|
+
return false;
|
|
2600
|
+
}
|
|
2601
|
+
|
|
2602
|
+
return true;
|
|
2603
|
+
} catch (err) {
|
|
2604
|
+
// We don't expect any of the above to throw, but better to be safe.
|
|
2605
|
+
return false;
|
|
2606
|
+
}
|
|
2607
|
+
}
|
|
2608
|
+
|
|
2609
|
+
var objectAssign = shouldUseNative() ? Object.assign : function (target, source) {
|
|
2610
|
+
var from;
|
|
2611
|
+
var to = toObject(target);
|
|
2612
|
+
var symbols;
|
|
2613
|
+
|
|
2614
|
+
for (var s = 1; s < arguments.length; s++) {
|
|
2615
|
+
from = Object(arguments[s]);
|
|
2616
|
+
|
|
2617
|
+
for (var key in from) {
|
|
2618
|
+
if (hasOwnProperty.call(from, key)) {
|
|
2619
|
+
to[key] = from[key];
|
|
2620
|
+
}
|
|
2621
|
+
}
|
|
2622
|
+
|
|
2623
|
+
if (getOwnPropertySymbols) {
|
|
2624
|
+
symbols = getOwnPropertySymbols(from);
|
|
2625
|
+
for (var i = 0; i < symbols.length; i++) {
|
|
2626
|
+
if (propIsEnumerable.call(from, symbols[i])) {
|
|
2627
|
+
to[symbols[i]] = from[symbols[i]];
|
|
2628
|
+
}
|
|
2629
|
+
}
|
|
2630
|
+
}
|
|
2631
|
+
}
|
|
2632
|
+
|
|
2633
|
+
return to;
|
|
2634
|
+
};
|
|
2635
|
+
|
|
2636
|
+
/**
|
|
2637
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
2638
|
+
*
|
|
2639
|
+
* This source code is licensed under the MIT license found in the
|
|
2640
|
+
* LICENSE file in the root directory of this source tree.
|
|
2641
|
+
*/
|
|
2642
|
+
|
|
2643
|
+
var ReactPropTypesSecret$2 = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
|
|
2644
|
+
|
|
2645
|
+
var ReactPropTypesSecret_1 = ReactPropTypesSecret$2;
|
|
2646
|
+
|
|
2647
|
+
var has$2 = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
2648
|
+
|
|
2649
|
+
var printWarning$1 = function() {
|
|
2650
|
+
};
|
|
2651
|
+
{
|
|
2652
|
+
var ReactPropTypesSecret$1 = ReactPropTypesSecret_1;
|
|
2653
|
+
var loggedTypeFailures = {};
|
|
2654
|
+
var has$1 = has$2;
|
|
2655
|
+
printWarning$1 = function(text) {
|
|
2656
|
+
var message = "Warning: " + text;
|
|
2657
|
+
if (typeof console !== "undefined") {
|
|
2658
|
+
console.error(message);
|
|
2659
|
+
}
|
|
2660
|
+
try {
|
|
2661
|
+
throw new Error(message);
|
|
2662
|
+
} catch (x) {
|
|
2663
|
+
}
|
|
2664
|
+
};
|
|
2665
|
+
}
|
|
2666
|
+
function checkPropTypes$1(typeSpecs, values, location, componentName, getStack) {
|
|
2667
|
+
{
|
|
2668
|
+
for (var typeSpecName in typeSpecs) {
|
|
2669
|
+
if (has$1(typeSpecs, typeSpecName)) {
|
|
2670
|
+
var error;
|
|
2671
|
+
try {
|
|
2672
|
+
if (typeof typeSpecs[typeSpecName] !== "function") {
|
|
2673
|
+
var err = Error(
|
|
2674
|
+
(componentName || "React class") + ": " + location + " type `" + typeSpecName + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof typeSpecs[typeSpecName] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
|
|
2675
|
+
);
|
|
2676
|
+
err.name = "Invariant Violation";
|
|
2677
|
+
throw err;
|
|
2678
|
+
}
|
|
2679
|
+
error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret$1);
|
|
2680
|
+
} catch (ex) {
|
|
2681
|
+
error = ex;
|
|
2682
|
+
}
|
|
2683
|
+
if (error && !(error instanceof Error)) {
|
|
2684
|
+
printWarning$1(
|
|
2685
|
+
(componentName || "React class") + ": type specification of " + location + " `" + typeSpecName + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof error + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
2686
|
+
);
|
|
2687
|
+
}
|
|
2688
|
+
if (error instanceof Error && !(error.message in loggedTypeFailures)) {
|
|
2689
|
+
loggedTypeFailures[error.message] = true;
|
|
2690
|
+
var stack = getStack ? getStack() : "";
|
|
2691
|
+
printWarning$1(
|
|
2692
|
+
"Failed " + location + " type: " + error.message + (stack != null ? stack : "")
|
|
2693
|
+
);
|
|
2694
|
+
}
|
|
2695
|
+
}
|
|
2696
|
+
}
|
|
2697
|
+
}
|
|
2698
|
+
}
|
|
2699
|
+
checkPropTypes$1.resetWarningCache = function() {
|
|
2700
|
+
{
|
|
2701
|
+
loggedTypeFailures = {};
|
|
2702
|
+
}
|
|
2703
|
+
};
|
|
2704
|
+
var checkPropTypes_1 = checkPropTypes$1;
|
|
2705
|
+
|
|
2706
|
+
var ReactIs$1 = reactIsExports$1;
|
|
2707
|
+
var assign$1 = objectAssign;
|
|
2708
|
+
var ReactPropTypesSecret = ReactPropTypesSecret_1;
|
|
2709
|
+
var has = has$2;
|
|
2710
|
+
var checkPropTypes = checkPropTypes_1;
|
|
2711
|
+
var printWarning = function() {
|
|
2712
|
+
};
|
|
2713
|
+
{
|
|
2714
|
+
printWarning = function(text) {
|
|
2715
|
+
var message = "Warning: " + text;
|
|
2716
|
+
if (typeof console !== "undefined") {
|
|
2717
|
+
console.error(message);
|
|
2718
|
+
}
|
|
2719
|
+
try {
|
|
2720
|
+
throw new Error(message);
|
|
2721
|
+
} catch (x) {
|
|
2722
|
+
}
|
|
2723
|
+
};
|
|
2724
|
+
}
|
|
2725
|
+
function emptyFunctionThatReturnsNull() {
|
|
2726
|
+
return null;
|
|
2727
|
+
}
|
|
2728
|
+
var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
2729
|
+
var ITERATOR_SYMBOL = typeof Symbol === "function" && Symbol.iterator;
|
|
2730
|
+
var FAUX_ITERATOR_SYMBOL = "@@iterator";
|
|
2731
|
+
function getIteratorFn(maybeIterable) {
|
|
2732
|
+
var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
|
|
2733
|
+
if (typeof iteratorFn === "function") {
|
|
2734
|
+
return iteratorFn;
|
|
2735
|
+
}
|
|
2736
|
+
}
|
|
2737
|
+
var ANONYMOUS = "<<anonymous>>";
|
|
2738
|
+
var ReactPropTypes = {
|
|
2739
|
+
array: createPrimitiveTypeChecker("array"),
|
|
2740
|
+
bigint: createPrimitiveTypeChecker("bigint"),
|
|
2741
|
+
bool: createPrimitiveTypeChecker("boolean"),
|
|
2742
|
+
func: createPrimitiveTypeChecker("function"),
|
|
2743
|
+
number: createPrimitiveTypeChecker("number"),
|
|
2744
|
+
object: createPrimitiveTypeChecker("object"),
|
|
2745
|
+
string: createPrimitiveTypeChecker("string"),
|
|
2746
|
+
symbol: createPrimitiveTypeChecker("symbol"),
|
|
2747
|
+
any: createAnyTypeChecker(),
|
|
2748
|
+
arrayOf: createArrayOfTypeChecker,
|
|
2749
|
+
element: createElementTypeChecker(),
|
|
2750
|
+
elementType: createElementTypeTypeChecker(),
|
|
2751
|
+
instanceOf: createInstanceTypeChecker,
|
|
2752
|
+
node: createNodeChecker(),
|
|
2753
|
+
objectOf: createObjectOfTypeChecker,
|
|
2754
|
+
oneOf: createEnumTypeChecker,
|
|
2755
|
+
oneOfType: createUnionTypeChecker,
|
|
2756
|
+
shape: createShapeTypeChecker,
|
|
2757
|
+
exact: createStrictShapeTypeChecker
|
|
2758
|
+
};
|
|
2759
|
+
function is(x, y) {
|
|
2760
|
+
if (x === y) {
|
|
2761
|
+
return x !== 0 || 1 / x === 1 / y;
|
|
2762
|
+
} else {
|
|
2763
|
+
return x !== x && y !== y;
|
|
2764
|
+
}
|
|
2765
|
+
}
|
|
2766
|
+
function PropTypeError(message, data) {
|
|
2767
|
+
this.message = message;
|
|
2768
|
+
this.data = data && typeof data === "object" ? data : {};
|
|
2769
|
+
this.stack = "";
|
|
2770
|
+
}
|
|
2771
|
+
PropTypeError.prototype = Error.prototype;
|
|
2772
|
+
function createChainableTypeChecker(validate) {
|
|
2773
|
+
{
|
|
2774
|
+
var manualPropTypeCallCache = {};
|
|
2775
|
+
var manualPropTypeWarningCount = 0;
|
|
2776
|
+
}
|
|
2777
|
+
function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
|
|
2778
|
+
componentName = componentName || ANONYMOUS;
|
|
2779
|
+
propFullName = propFullName || propName;
|
|
2780
|
+
if (secret !== ReactPropTypesSecret) {
|
|
2781
|
+
if (throwOnDirectAccess) {
|
|
2782
|
+
var err = new Error(
|
|
2783
|
+
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
|
|
2784
|
+
);
|
|
2785
|
+
err.name = "Invariant Violation";
|
|
2786
|
+
throw err;
|
|
2787
|
+
} else if (typeof console !== "undefined") {
|
|
2788
|
+
var cacheKey = componentName + ":" + propName;
|
|
2789
|
+
if (!manualPropTypeCallCache[cacheKey] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
2790
|
+
manualPropTypeWarningCount < 3) {
|
|
2791
|
+
printWarning(
|
|
2792
|
+
"You are manually calling a React.PropTypes validation function for the `" + propFullName + "` prop on `" + componentName + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
|
2793
|
+
);
|
|
2794
|
+
manualPropTypeCallCache[cacheKey] = true;
|
|
2795
|
+
manualPropTypeWarningCount++;
|
|
2796
|
+
}
|
|
2797
|
+
}
|
|
2798
|
+
}
|
|
2799
|
+
if (props[propName] == null) {
|
|
2800
|
+
if (isRequired) {
|
|
2801
|
+
if (props[propName] === null) {
|
|
2802
|
+
return new PropTypeError("The " + location + " `" + propFullName + "` is marked as required " + ("in `" + componentName + "`, but its value is `null`."));
|
|
2803
|
+
}
|
|
2804
|
+
return new PropTypeError("The " + location + " `" + propFullName + "` is marked as required in " + ("`" + componentName + "`, but its value is `undefined`."));
|
|
2805
|
+
}
|
|
2806
|
+
return null;
|
|
2807
|
+
} else {
|
|
2808
|
+
return validate(props, propName, componentName, location, propFullName);
|
|
2809
|
+
}
|
|
2810
|
+
}
|
|
2811
|
+
var chainedCheckType = checkType.bind(null, false);
|
|
2812
|
+
chainedCheckType.isRequired = checkType.bind(null, true);
|
|
2813
|
+
return chainedCheckType;
|
|
2814
|
+
}
|
|
2815
|
+
function createPrimitiveTypeChecker(expectedType) {
|
|
2816
|
+
function validate(props, propName, componentName, location, propFullName, secret) {
|
|
2817
|
+
var propValue = props[propName];
|
|
2818
|
+
var propType = getPropType(propValue);
|
|
2819
|
+
if (propType !== expectedType) {
|
|
2820
|
+
var preciseType = getPreciseType(propValue);
|
|
2821
|
+
return new PropTypeError(
|
|
2822
|
+
"Invalid " + location + " `" + propFullName + "` of type " + ("`" + preciseType + "` supplied to `" + componentName + "`, expected ") + ("`" + expectedType + "`."),
|
|
2823
|
+
{ expectedType }
|
|
2824
|
+
);
|
|
2825
|
+
}
|
|
2826
|
+
return null;
|
|
2827
|
+
}
|
|
2828
|
+
return createChainableTypeChecker(validate);
|
|
2829
|
+
}
|
|
2830
|
+
function createAnyTypeChecker() {
|
|
2831
|
+
return createChainableTypeChecker(emptyFunctionThatReturnsNull);
|
|
2832
|
+
}
|
|
2833
|
+
function createArrayOfTypeChecker(typeChecker) {
|
|
2834
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
2835
|
+
if (typeof typeChecker !== "function") {
|
|
2836
|
+
return new PropTypeError("Property `" + propFullName + "` of component `" + componentName + "` has invalid PropType notation inside arrayOf.");
|
|
2837
|
+
}
|
|
2838
|
+
var propValue = props[propName];
|
|
2839
|
+
if (!Array.isArray(propValue)) {
|
|
2840
|
+
var propType = getPropType(propValue);
|
|
2841
|
+
return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected an array."));
|
|
2842
|
+
}
|
|
2843
|
+
for (var i = 0; i < propValue.length; i++) {
|
|
2844
|
+
var error = typeChecker(propValue, i, componentName, location, propFullName + "[" + i + "]", ReactPropTypesSecret);
|
|
2845
|
+
if (error instanceof Error) {
|
|
2846
|
+
return error;
|
|
2847
|
+
}
|
|
2848
|
+
}
|
|
2849
|
+
return null;
|
|
2850
|
+
}
|
|
2851
|
+
return createChainableTypeChecker(validate);
|
|
2852
|
+
}
|
|
2853
|
+
function createElementTypeChecker() {
|
|
2854
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
2855
|
+
var propValue = props[propName];
|
|
2856
|
+
if (!isValidElement(propValue)) {
|
|
2857
|
+
var propType = getPropType(propValue);
|
|
2858
|
+
return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected a single ReactElement."));
|
|
2859
|
+
}
|
|
2860
|
+
return null;
|
|
2861
|
+
}
|
|
2862
|
+
return createChainableTypeChecker(validate);
|
|
2863
|
+
}
|
|
2864
|
+
function createElementTypeTypeChecker() {
|
|
2865
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
2866
|
+
var propValue = props[propName];
|
|
2867
|
+
if (!ReactIs$1.isValidElementType(propValue)) {
|
|
2868
|
+
var propType = getPropType(propValue);
|
|
2869
|
+
return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected a single ReactElement type."));
|
|
2870
|
+
}
|
|
2871
|
+
return null;
|
|
2872
|
+
}
|
|
2873
|
+
return createChainableTypeChecker(validate);
|
|
2874
|
+
}
|
|
2875
|
+
function createInstanceTypeChecker(expectedClass) {
|
|
2876
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
2877
|
+
if (!(props[propName] instanceof expectedClass)) {
|
|
2878
|
+
var expectedClassName = expectedClass.name || ANONYMOUS;
|
|
2879
|
+
var actualClassName = getClassName(props[propName]);
|
|
2880
|
+
return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + actualClassName + "` supplied to `" + componentName + "`, expected ") + ("instance of `" + expectedClassName + "`."));
|
|
2881
|
+
}
|
|
2882
|
+
return null;
|
|
2883
|
+
}
|
|
2884
|
+
return createChainableTypeChecker(validate);
|
|
2885
|
+
}
|
|
2886
|
+
function createEnumTypeChecker(expectedValues) {
|
|
2887
|
+
if (!Array.isArray(expectedValues)) {
|
|
2888
|
+
{
|
|
2889
|
+
if (arguments.length > 1) {
|
|
2890
|
+
printWarning(
|
|
2891
|
+
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
2892
|
+
);
|
|
2893
|
+
} else {
|
|
2894
|
+
printWarning("Invalid argument supplied to oneOf, expected an array.");
|
|
2895
|
+
}
|
|
2896
|
+
}
|
|
2897
|
+
return emptyFunctionThatReturnsNull;
|
|
2898
|
+
}
|
|
2899
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
2900
|
+
var propValue = props[propName];
|
|
2901
|
+
for (var i = 0; i < expectedValues.length; i++) {
|
|
2902
|
+
if (is(propValue, expectedValues[i])) {
|
|
2903
|
+
return null;
|
|
2904
|
+
}
|
|
2905
|
+
}
|
|
2906
|
+
var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
|
|
2907
|
+
var type = getPreciseType(value);
|
|
2908
|
+
if (type === "symbol") {
|
|
2909
|
+
return String(value);
|
|
2910
|
+
}
|
|
2911
|
+
return value;
|
|
2912
|
+
});
|
|
2913
|
+
return new PropTypeError("Invalid " + location + " `" + propFullName + "` of value `" + String(propValue) + "` " + ("supplied to `" + componentName + "`, expected one of " + valuesString + "."));
|
|
2914
|
+
}
|
|
2915
|
+
return createChainableTypeChecker(validate);
|
|
2916
|
+
}
|
|
2917
|
+
function createObjectOfTypeChecker(typeChecker) {
|
|
2918
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
2919
|
+
if (typeof typeChecker !== "function") {
|
|
2920
|
+
return new PropTypeError("Property `" + propFullName + "` of component `" + componentName + "` has invalid PropType notation inside objectOf.");
|
|
2921
|
+
}
|
|
2922
|
+
var propValue = props[propName];
|
|
2923
|
+
var propType = getPropType(propValue);
|
|
2924
|
+
if (propType !== "object") {
|
|
2925
|
+
return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected an object."));
|
|
2926
|
+
}
|
|
2927
|
+
for (var key in propValue) {
|
|
2928
|
+
if (has(propValue, key)) {
|
|
2929
|
+
var error = typeChecker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret);
|
|
2930
|
+
if (error instanceof Error) {
|
|
2931
|
+
return error;
|
|
2932
|
+
}
|
|
2933
|
+
}
|
|
2934
|
+
}
|
|
2935
|
+
return null;
|
|
2936
|
+
}
|
|
2937
|
+
return createChainableTypeChecker(validate);
|
|
2938
|
+
}
|
|
2939
|
+
function createUnionTypeChecker(arrayOfTypeCheckers) {
|
|
2940
|
+
if (!Array.isArray(arrayOfTypeCheckers)) {
|
|
2941
|
+
printWarning("Invalid argument supplied to oneOfType, expected an instance of array.") ;
|
|
2942
|
+
return emptyFunctionThatReturnsNull;
|
|
2943
|
+
}
|
|
2944
|
+
for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
|
|
2945
|
+
var checker = arrayOfTypeCheckers[i];
|
|
2946
|
+
if (typeof checker !== "function") {
|
|
2947
|
+
printWarning(
|
|
2948
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + getPostfixForTypeWarning(checker) + " at index " + i + "."
|
|
2949
|
+
);
|
|
2950
|
+
return emptyFunctionThatReturnsNull;
|
|
2951
|
+
}
|
|
2952
|
+
}
|
|
2953
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
2954
|
+
var expectedTypes = [];
|
|
2955
|
+
for (var i2 = 0; i2 < arrayOfTypeCheckers.length; i2++) {
|
|
2956
|
+
var checker2 = arrayOfTypeCheckers[i2];
|
|
2957
|
+
var checkerResult = checker2(props, propName, componentName, location, propFullName, ReactPropTypesSecret);
|
|
2958
|
+
if (checkerResult == null) {
|
|
2959
|
+
return null;
|
|
2960
|
+
}
|
|
2961
|
+
if (checkerResult.data && has(checkerResult.data, "expectedType")) {
|
|
2962
|
+
expectedTypes.push(checkerResult.data.expectedType);
|
|
2963
|
+
}
|
|
2964
|
+
}
|
|
2965
|
+
var expectedTypesMessage = expectedTypes.length > 0 ? ", expected one of type [" + expectedTypes.join(", ") + "]" : "";
|
|
2966
|
+
return new PropTypeError("Invalid " + location + " `" + propFullName + "` supplied to " + ("`" + componentName + "`" + expectedTypesMessage + "."));
|
|
2967
|
+
}
|
|
2968
|
+
return createChainableTypeChecker(validate);
|
|
2969
|
+
}
|
|
2970
|
+
function createNodeChecker() {
|
|
2971
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
2972
|
+
if (!isNode(props[propName])) {
|
|
2973
|
+
return new PropTypeError("Invalid " + location + " `" + propFullName + "` supplied to " + ("`" + componentName + "`, expected a ReactNode."));
|
|
2974
|
+
}
|
|
2975
|
+
return null;
|
|
2976
|
+
}
|
|
2977
|
+
return createChainableTypeChecker(validate);
|
|
2978
|
+
}
|
|
2979
|
+
function invalidValidatorError(componentName, location, propFullName, key, type) {
|
|
2980
|
+
return new PropTypeError(
|
|
2981
|
+
(componentName || "React class") + ": " + location + " type `" + propFullName + "." + key + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + type + "`."
|
|
2982
|
+
);
|
|
2983
|
+
}
|
|
2984
|
+
function createShapeTypeChecker(shapeTypes) {
|
|
2985
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
2986
|
+
var propValue = props[propName];
|
|
2987
|
+
var propType = getPropType(propValue);
|
|
2988
|
+
if (propType !== "object") {
|
|
2989
|
+
return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type `" + propType + "` " + ("supplied to `" + componentName + "`, expected `object`."));
|
|
2990
|
+
}
|
|
2991
|
+
for (var key in shapeTypes) {
|
|
2992
|
+
var checker = shapeTypes[key];
|
|
2993
|
+
if (typeof checker !== "function") {
|
|
2994
|
+
return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
|
|
2995
|
+
}
|
|
2996
|
+
var error = checker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret);
|
|
2997
|
+
if (error) {
|
|
2998
|
+
return error;
|
|
2999
|
+
}
|
|
3000
|
+
}
|
|
3001
|
+
return null;
|
|
3002
|
+
}
|
|
3003
|
+
return createChainableTypeChecker(validate);
|
|
3004
|
+
}
|
|
3005
|
+
function createStrictShapeTypeChecker(shapeTypes) {
|
|
3006
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
3007
|
+
var propValue = props[propName];
|
|
3008
|
+
var propType = getPropType(propValue);
|
|
3009
|
+
if (propType !== "object") {
|
|
3010
|
+
return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type `" + propType + "` " + ("supplied to `" + componentName + "`, expected `object`."));
|
|
3011
|
+
}
|
|
3012
|
+
var allKeys = assign$1({}, props[propName], shapeTypes);
|
|
3013
|
+
for (var key in allKeys) {
|
|
3014
|
+
var checker = shapeTypes[key];
|
|
3015
|
+
if (has(shapeTypes, key) && typeof checker !== "function") {
|
|
3016
|
+
return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
|
|
3017
|
+
}
|
|
3018
|
+
if (!checker) {
|
|
3019
|
+
return new PropTypeError(
|
|
3020
|
+
"Invalid " + location + " `" + propFullName + "` key `" + key + "` supplied to `" + componentName + "`.\nBad object: " + JSON.stringify(props[propName], null, " ") + "\nValid keys: " + JSON.stringify(Object.keys(shapeTypes), null, " ")
|
|
3021
|
+
);
|
|
3022
|
+
}
|
|
3023
|
+
var error = checker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret);
|
|
3024
|
+
if (error) {
|
|
3025
|
+
return error;
|
|
3026
|
+
}
|
|
3027
|
+
}
|
|
3028
|
+
return null;
|
|
3029
|
+
}
|
|
3030
|
+
return createChainableTypeChecker(validate);
|
|
3031
|
+
}
|
|
3032
|
+
function isNode(propValue) {
|
|
3033
|
+
switch (typeof propValue) {
|
|
3034
|
+
case "number":
|
|
3035
|
+
case "string":
|
|
3036
|
+
case "undefined":
|
|
3037
|
+
return true;
|
|
3038
|
+
case "boolean":
|
|
3039
|
+
return !propValue;
|
|
3040
|
+
case "object":
|
|
3041
|
+
if (Array.isArray(propValue)) {
|
|
3042
|
+
return propValue.every(isNode);
|
|
3043
|
+
}
|
|
3044
|
+
if (propValue === null || isValidElement(propValue)) {
|
|
3045
|
+
return true;
|
|
3046
|
+
}
|
|
3047
|
+
var iteratorFn = getIteratorFn(propValue);
|
|
3048
|
+
if (iteratorFn) {
|
|
3049
|
+
var iterator = iteratorFn.call(propValue);
|
|
3050
|
+
var step;
|
|
3051
|
+
if (iteratorFn !== propValue.entries) {
|
|
3052
|
+
while (!(step = iterator.next()).done) {
|
|
3053
|
+
if (!isNode(step.value)) {
|
|
3054
|
+
return false;
|
|
3055
|
+
}
|
|
3056
|
+
}
|
|
3057
|
+
} else {
|
|
3058
|
+
while (!(step = iterator.next()).done) {
|
|
3059
|
+
var entry = step.value;
|
|
3060
|
+
if (entry) {
|
|
3061
|
+
if (!isNode(entry[1])) {
|
|
3062
|
+
return false;
|
|
3063
|
+
}
|
|
3064
|
+
}
|
|
3065
|
+
}
|
|
3066
|
+
}
|
|
3067
|
+
} else {
|
|
3068
|
+
return false;
|
|
3069
|
+
}
|
|
3070
|
+
return true;
|
|
3071
|
+
default:
|
|
3072
|
+
return false;
|
|
3073
|
+
}
|
|
3074
|
+
}
|
|
3075
|
+
function isSymbol(propType, propValue) {
|
|
3076
|
+
if (propType === "symbol") {
|
|
3077
|
+
return true;
|
|
3078
|
+
}
|
|
3079
|
+
if (!propValue) {
|
|
3080
|
+
return false;
|
|
3081
|
+
}
|
|
3082
|
+
if (propValue["@@toStringTag"] === "Symbol") {
|
|
3083
|
+
return true;
|
|
3084
|
+
}
|
|
3085
|
+
if (typeof Symbol === "function" && propValue instanceof Symbol) {
|
|
3086
|
+
return true;
|
|
3087
|
+
}
|
|
3088
|
+
return false;
|
|
3089
|
+
}
|
|
3090
|
+
function getPropType(propValue) {
|
|
3091
|
+
var propType = typeof propValue;
|
|
3092
|
+
if (Array.isArray(propValue)) {
|
|
3093
|
+
return "array";
|
|
3094
|
+
}
|
|
3095
|
+
if (propValue instanceof RegExp) {
|
|
3096
|
+
return "object";
|
|
3097
|
+
}
|
|
3098
|
+
if (isSymbol(propType, propValue)) {
|
|
3099
|
+
return "symbol";
|
|
3100
|
+
}
|
|
3101
|
+
return propType;
|
|
3102
|
+
}
|
|
3103
|
+
function getPreciseType(propValue) {
|
|
3104
|
+
if (typeof propValue === "undefined" || propValue === null) {
|
|
3105
|
+
return "" + propValue;
|
|
3106
|
+
}
|
|
3107
|
+
var propType = getPropType(propValue);
|
|
3108
|
+
if (propType === "object") {
|
|
3109
|
+
if (propValue instanceof Date) {
|
|
3110
|
+
return "date";
|
|
3111
|
+
} else if (propValue instanceof RegExp) {
|
|
3112
|
+
return "regexp";
|
|
3113
|
+
}
|
|
3114
|
+
}
|
|
3115
|
+
return propType;
|
|
3116
|
+
}
|
|
3117
|
+
function getPostfixForTypeWarning(value) {
|
|
3118
|
+
var type = getPreciseType(value);
|
|
3119
|
+
switch (type) {
|
|
3120
|
+
case "array":
|
|
3121
|
+
case "object":
|
|
3122
|
+
return "an " + type;
|
|
3123
|
+
case "boolean":
|
|
3124
|
+
case "date":
|
|
3125
|
+
case "regexp":
|
|
3126
|
+
return "a " + type;
|
|
3127
|
+
default:
|
|
3128
|
+
return type;
|
|
3129
|
+
}
|
|
3130
|
+
}
|
|
3131
|
+
function getClassName(propValue) {
|
|
3132
|
+
if (!propValue.constructor || !propValue.constructor.name) {
|
|
3133
|
+
return ANONYMOUS;
|
|
3134
|
+
}
|
|
3135
|
+
return propValue.constructor.name;
|
|
3136
|
+
}
|
|
3137
|
+
ReactPropTypes.checkPropTypes = checkPropTypes;
|
|
3138
|
+
ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;
|
|
3139
|
+
ReactPropTypes.PropTypes = ReactPropTypes;
|
|
3140
|
+
return ReactPropTypes;
|
|
3141
|
+
};
|
|
3142
|
+
|
|
3143
|
+
{
|
|
3144
|
+
var ReactIs = reactIsExports$1;
|
|
3145
|
+
var throwOnDirectAccess = true;
|
|
3146
|
+
propTypes.exports = factoryWithTypeCheckers(ReactIs.isElement, throwOnDirectAccess);
|
|
3147
|
+
}
|
|
3148
|
+
|
|
3149
|
+
var propTypesExports = propTypes.exports;
|
|
3150
|
+
const PropTypes = /*@__PURE__*/getDefaultExportFromCjs(propTypesExports);
|
|
3151
|
+
|
|
2379
3152
|
/**
|
|
2380
3153
|
* WARNING: Don't import this directly.
|
|
2381
3154
|
* Use `MuiError` from `@mui/internal-babel-macros/MuiError.macro` instead.
|
|
@@ -69715,7 +70488,7 @@ function Player({ item, widgetToken, onClose, apiUrl }) {
|
|
|
69715
70488
|
const { id: itemId } = item;
|
|
69716
70489
|
try {
|
|
69717
70490
|
const { data: result } = await axios$1.get(
|
|
69718
|
-
`${apiUrl ||
|
|
70491
|
+
`${apiUrl || undefined }/widgets/${widgetToken}?filter_by=${itemId}`
|
|
69719
70492
|
);
|
|
69720
70493
|
const { name } = result;
|
|
69721
70494
|
const input = result?.content[0];
|
|
@@ -69839,7 +70612,7 @@ function Player({ item, widgetToken, onClose, apiUrl }) {
|
|
|
69839
70612
|
] }) });
|
|
69840
70613
|
}
|
|
69841
70614
|
|
|
69842
|
-
const {Suspense: Suspense$1,lazy: lazy$1,useEffect: useEffect$1,useState: useState$1
|
|
70615
|
+
const {Suspense: Suspense$1,lazy: lazy$1,useEffect: useEffect$1,useState: useState$1} = await importShared('react');
|
|
69843
70616
|
|
|
69844
70617
|
const __federation_var_VFCMFSectionGrid = await __federation_method_getRemote("VFCMF" , "./SectionGrid");
|
|
69845
70618
|
let SectionGrid = __federation_method_unwrapDefault(__federation_var_VFCMFSectionGrid);
|
|
@@ -69858,8 +70631,7 @@ const SECTION_COMPONENTS = {
|
|
|
69858
70631
|
default: SectionGrid
|
|
69859
70632
|
};
|
|
69860
70633
|
const LoadingSpinner = () => /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "w-full h-full flex justify-center items-center py-2", children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "bg-black/90 p-2 rounded-md", children: /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "text-white animate-pulse", children: "Loading..." }) }) });
|
|
69861
|
-
const Widget = ({ token, apiurl
|
|
69862
|
-
const widgetRef = useRef(null);
|
|
70634
|
+
const Widget = ({ token, apiurl }) => {
|
|
69863
70635
|
const [widgetState, setWidgetState] = useState$1({
|
|
69864
70636
|
data: {},
|
|
69865
70637
|
untransformedData: {},
|
|
@@ -69872,30 +70644,13 @@ const Widget = ({ token, apiurl, viewerCountry }) => {
|
|
|
69872
70644
|
isOpen: false,
|
|
69873
70645
|
currentItem: null
|
|
69874
70646
|
});
|
|
69875
|
-
const dispatchWidgetEvent = (eventType, eventData) => {
|
|
69876
|
-
if (widgetRef.current) {
|
|
69877
|
-
const customEvent = new CustomEvent(`widget-${eventType}`, {
|
|
69878
|
-
detail: {
|
|
69879
|
-
...eventData,
|
|
69880
|
-
widgetToken: token,
|
|
69881
|
-
timestamp: Date.now()
|
|
69882
|
-
},
|
|
69883
|
-
bubbles: true,
|
|
69884
|
-
cancelable: true
|
|
69885
|
-
});
|
|
69886
|
-
widgetRef.current.dispatchEvent(customEvent);
|
|
69887
|
-
}
|
|
69888
|
-
};
|
|
69889
|
-
const blazeEventHandlers = {
|
|
69890
|
-
onDataLoadCompleted: (eventData) => dispatchWidgetEvent("data-loaded", eventData)
|
|
69891
|
-
};
|
|
69892
70647
|
const handleClosePlayer = () => {
|
|
69893
70648
|
setPlayerState({
|
|
69894
70649
|
isOpen: false,
|
|
69895
70650
|
currentItem: null
|
|
69896
70651
|
});
|
|
69897
70652
|
};
|
|
69898
|
-
const apiUrl = apiurl ||
|
|
70653
|
+
const apiUrl = apiurl || undefined ;
|
|
69899
70654
|
const widgetDataToSectionData = (data2) => {
|
|
69900
70655
|
if (data2.type === VIDEO_SECTION_TYPE) {
|
|
69901
70656
|
return {
|
|
@@ -69939,15 +70694,6 @@ const Widget = ({ token, apiurl, viewerCountry }) => {
|
|
|
69939
70694
|
*/
|
|
69940
70695
|
};
|
|
69941
70696
|
}
|
|
69942
|
-
if (data2.type === BLAZE_WIDGET_TYPE) {
|
|
69943
|
-
return {
|
|
69944
|
-
data: data2,
|
|
69945
|
-
// Pass the blaze data directly
|
|
69946
|
-
apiUrl,
|
|
69947
|
-
eventHandlers: blazeEventHandlers
|
|
69948
|
-
// Pass event handlers to Blaze widget
|
|
69949
|
-
};
|
|
69950
|
-
}
|
|
69951
70697
|
return {
|
|
69952
70698
|
data: data2,
|
|
69953
70699
|
apiUrl
|
|
@@ -69966,9 +70712,9 @@ const Widget = ({ token, apiurl, viewerCountry }) => {
|
|
|
69966
70712
|
return SECTION_COMPONENTS[layout] || SECTION_COMPONENTS.default;
|
|
69967
70713
|
}
|
|
69968
70714
|
if (type2 === BLAZE_WIDGET_TYPE) {
|
|
69969
|
-
return lazy$1(() => import('./blaze-
|
|
70715
|
+
return lazy$1(() => import('./blaze-BOFmpQ80.js'));
|
|
69970
70716
|
}
|
|
69971
|
-
return lazy$1(() => __variableDynamicImportRuntimeHelper((/* #__PURE__ */ Object.assign({"./widgets/gallery/gallery.jsx": () => import('./gallery-
|
|
70717
|
+
return lazy$1(() => __variableDynamicImportRuntimeHelper((/* #__PURE__ */ Object.assign({"./widgets/gallery/gallery.jsx": () => import('./gallery-GRnjldyr.js'),"./widgets/matches/matches.jsx": () => import('./matches-CCFg5Xd1.js'),"./widgets/matchesStandalone/matchesStandalone.jsx": () => import('./matchesStandalone-K-T-YXDH.js'),"./widgets/player/player.jsx": () => import('./player-BkFsXlEi.js'),"./widgets/poster/poster.jsx": () => import('./poster-BFthK88T.js'),"./widgets/poster/posterItem.jsx": () => import('./posterItem-BojAdnBI.js'),"./widgets/scroll/scroll.jsx": () => import('./scroll-Cm_Q9RJ9.js'),"./widgets/story/story.jsx": () => import('./story-BbKazkAh.js')})), `./widgets/${type2}/${type2}.jsx`, 4));
|
|
69972
70718
|
};
|
|
69973
70719
|
useEffect$1(() => {
|
|
69974
70720
|
const fetchData = async () => {
|
|
@@ -70004,7 +70750,7 @@ const Widget = ({ token, apiurl, viewerCountry }) => {
|
|
|
70004
70750
|
const { data, loading, error, Component, type } = widgetState;
|
|
70005
70751
|
if (loading) return /* @__PURE__ */ jsxRuntimeExports.jsx(LoadingSpinner, {});
|
|
70006
70752
|
if (error) return null;
|
|
70007
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
70753
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Suspense$1, { fallback: /* @__PURE__ */ jsxRuntimeExports.jsx(LoadingSpinner, {}), children: Component && (type === VIDEO_SECTION_TYPE ? /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
70008
70754
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Component, { ...data }),
|
|
70009
70755
|
playerState.isOpen && playerState.currentItem && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
70010
70756
|
Player,
|
|
@@ -70016,15 +70762,7 @@ const Widget = ({ token, apiurl, viewerCountry }) => {
|
|
|
70016
70762
|
apiUrl
|
|
70017
70763
|
}
|
|
70018
70764
|
)
|
|
70019
|
-
] }) : /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
70020
|
-
Component,
|
|
70021
|
-
{
|
|
70022
|
-
data: data.data,
|
|
70023
|
-
apiUrl: data.apiUrl,
|
|
70024
|
-
viewerCountry,
|
|
70025
|
-
eventHandlers: data.eventHandlers
|
|
70026
|
-
}
|
|
70027
|
-
)) }) });
|
|
70765
|
+
] }) : /* @__PURE__ */ jsxRuntimeExports.jsx(Component, { data: data.data, apiUrl: data.apiUrl })) });
|
|
70028
70766
|
};
|
|
70029
70767
|
|
|
70030
70768
|
const {useState,useEffect,lazy,Suspense} = await importShared('react');
|
|
@@ -70035,7 +70773,7 @@ const ChannelWidget = ({ token, type }) => {
|
|
|
70035
70773
|
const [Component, setComponent] = useState();
|
|
70036
70774
|
const getData = async () => {
|
|
70037
70775
|
console.log(`Pulling data from: ${token}`);
|
|
70038
|
-
const res = await fetch(`${
|
|
70776
|
+
const res = await fetch(`${undefined }/widgets/channel/${token}`);
|
|
70039
70777
|
if (res.ok) {
|
|
70040
70778
|
const resData = await res.json();
|
|
70041
70779
|
console.log(resData);
|
|
@@ -70059,19 +70797,19 @@ const ChannelWidget = ({ token, type }) => {
|
|
|
70059
70797
|
};
|
|
70060
70798
|
|
|
70061
70799
|
const React = await importShared('react');
|
|
70062
|
-
|
|
70063
|
-
|
|
70064
|
-
|
|
70065
|
-
|
|
70066
|
-
|
|
70067
|
-
|
|
70068
|
-
|
|
70069
|
-
|
|
70070
|
-
|
|
70071
|
-
|
|
70072
|
-
|
|
70073
|
-
|
|
70074
|
-
|
|
70800
|
+
|
|
70801
|
+
Widget.propTypes = {
|
|
70802
|
+
token : PropTypes$1.string,
|
|
70803
|
+
apiurl : PropTypes$1.string
|
|
70804
|
+
};
|
|
70805
|
+
|
|
70806
|
+
ChannelWidget.propTypes = {
|
|
70807
|
+
token : PropTypes$1.string,
|
|
70808
|
+
type : PropTypes$1.string
|
|
70809
|
+
};
|
|
70810
|
+
|
|
70811
|
+
customElements.define("vf-widget", S(Widget, React, ReactDOM));
|
|
70812
|
+
customElements.define("vfc-widget", S(ChannelWidget, React, ReactDOM));
|
|
70075
70813
|
|
|
70076
70814
|
export { CloseRounded as C, Player as P, SpinLoader as S, Thumbnail as T, _extendsExports as _, axios$1 as a, _extends$1 as b, createSvgIcon as c, importShared as i, jsxRuntimeExports as j };
|
|
70077
|
-
//# sourceMappingURL=index-
|
|
70815
|
+
//# sourceMappingURL=index-BkAInKCv.js.map
|