@djb25/digit-ui-module-commonpt 1.0.17 → 1.0.18
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/dist/index.js +413 -643
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +413 -643
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -33,9 +33,10 @@ const newConfig = [{
|
|
|
33
33
|
type: "component",
|
|
34
34
|
route: "property-type",
|
|
35
35
|
isMandatory: true,
|
|
36
|
-
component: "
|
|
36
|
+
component: "PropertyLocationDetails",
|
|
37
37
|
texts: {
|
|
38
38
|
headerCaption: "",
|
|
39
|
+
header: "PT_LOCATION_DETAILS",
|
|
39
40
|
cardText: "",
|
|
40
41
|
submitBarLabel: "PT_COMMONS_NEXT"
|
|
41
42
|
},
|
|
@@ -6762,385 +6763,394 @@ const config = [{
|
|
|
6762
6763
|
}]
|
|
6763
6764
|
}];
|
|
6764
6765
|
|
|
6765
|
-
|
|
6766
|
-
|
|
6767
|
-
|
|
6768
|
-
|
|
6769
|
-
|
|
6770
|
-
|
|
6771
|
-
|
|
6772
|
-
|
|
6773
|
-
|
|
6774
|
-
|
|
6775
|
-
|
|
6776
|
-
|
|
6777
|
-
|
|
6778
|
-
|
|
6779
|
-
|
|
6780
|
-
|
|
6781
|
-
|
|
6782
|
-
|
|
6783
|
-
|
|
6784
|
-
|
|
6785
|
-
|
|
6786
|
-
|
|
6787
|
-
|
|
6788
|
-
|
|
6789
|
-
|
|
6790
|
-
|
|
6791
|
-
|
|
6792
|
-
|
|
6793
|
-
|
|
6794
|
-
|
|
6795
|
-
|
|
6796
|
-
|
|
6797
|
-
isContextProvider: isContextProvider,
|
|
6798
|
-
isElement: isElement,
|
|
6799
|
-
isForwardRef: isForwardRef,
|
|
6800
|
-
isFragment: isFragment,
|
|
6801
|
-
isLazy: isLazy,
|
|
6802
|
-
isMemo: isMemo,
|
|
6803
|
-
isPortal: isPortal,
|
|
6804
|
-
isProfiler: isProfiler,
|
|
6805
|
-
isStrictMode: isStrictMode,
|
|
6806
|
-
isSuspense: isSuspense,
|
|
6807
|
-
isValidElementType: isValidElementType,
|
|
6808
|
-
typeOf: typeOf
|
|
6809
|
-
};
|
|
6810
|
-
|
|
6811
|
-
var reactIs_development = createCommonjsModule(function (module, exports) {
|
|
6812
|
-
|
|
6813
|
-
|
|
6814
|
-
|
|
6815
|
-
if (process.env.NODE_ENV !== "production") {
|
|
6816
|
-
(function() {
|
|
6817
|
-
|
|
6818
|
-
// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
|
|
6819
|
-
// nor polyfill, then a plain number is used for performance.
|
|
6820
|
-
var hasSymbol = typeof Symbol === 'function' && Symbol.for;
|
|
6821
|
-
var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
|
|
6822
|
-
var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
|
|
6823
|
-
var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
|
|
6824
|
-
var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
|
|
6825
|
-
var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
|
|
6826
|
-
var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
|
|
6827
|
-
var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
|
|
6828
|
-
// (unstable) APIs that have been removed. Can we remove the symbols?
|
|
6829
|
-
|
|
6830
|
-
var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
|
|
6831
|
-
var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
|
|
6832
|
-
var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
|
|
6833
|
-
var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
|
|
6834
|
-
var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
|
|
6835
|
-
var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
|
|
6836
|
-
var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
|
|
6837
|
-
var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
|
|
6838
|
-
var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
|
|
6839
|
-
var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
|
|
6840
|
-
var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
|
|
6841
|
-
|
|
6842
|
-
function isValidElementType(type) {
|
|
6843
|
-
return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
6844
|
-
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);
|
|
6845
|
-
}
|
|
6846
|
-
|
|
6847
|
-
function typeOf(object) {
|
|
6848
|
-
if (typeof object === 'object' && object !== null) {
|
|
6849
|
-
var $$typeof = object.$$typeof;
|
|
6850
|
-
|
|
6851
|
-
switch ($$typeof) {
|
|
6852
|
-
case REACT_ELEMENT_TYPE:
|
|
6853
|
-
var type = object.type;
|
|
6854
|
-
|
|
6855
|
-
switch (type) {
|
|
6856
|
-
case REACT_ASYNC_MODE_TYPE:
|
|
6857
|
-
case REACT_CONCURRENT_MODE_TYPE:
|
|
6858
|
-
case REACT_FRAGMENT_TYPE:
|
|
6859
|
-
case REACT_PROFILER_TYPE:
|
|
6860
|
-
case REACT_STRICT_MODE_TYPE:
|
|
6861
|
-
case REACT_SUSPENSE_TYPE:
|
|
6862
|
-
return type;
|
|
6863
|
-
|
|
6766
|
+
var b = "function" === typeof Symbol && Symbol.for,
|
|
6767
|
+
c = b ? Symbol.for("react.element") : 60103,
|
|
6768
|
+
d = b ? Symbol.for("react.portal") : 60106,
|
|
6769
|
+
e = b ? Symbol.for("react.fragment") : 60107,
|
|
6770
|
+
f = b ? Symbol.for("react.strict_mode") : 60108,
|
|
6771
|
+
g = b ? Symbol.for("react.profiler") : 60114,
|
|
6772
|
+
h = b ? Symbol.for("react.provider") : 60109,
|
|
6773
|
+
k = b ? Symbol.for("react.context") : 60110,
|
|
6774
|
+
l = b ? Symbol.for("react.async_mode") : 60111,
|
|
6775
|
+
m = b ? Symbol.for("react.concurrent_mode") : 60111,
|
|
6776
|
+
n = b ? Symbol.for("react.forward_ref") : 60112,
|
|
6777
|
+
p = b ? Symbol.for("react.suspense") : 60113,
|
|
6778
|
+
q = b ? Symbol.for("react.suspense_list") : 60120,
|
|
6779
|
+
r = b ? Symbol.for("react.memo") : 60115,
|
|
6780
|
+
t = b ? Symbol.for("react.lazy") : 60116,
|
|
6781
|
+
v = b ? Symbol.for("react.block") : 60121,
|
|
6782
|
+
w = b ? Symbol.for("react.fundamental") : 60117,
|
|
6783
|
+
x = b ? Symbol.for("react.responder") : 60118,
|
|
6784
|
+
y = b ? Symbol.for("react.scope") : 60119;
|
|
6785
|
+
function z(a) {
|
|
6786
|
+
if ("object" === typeof a && null !== a) {
|
|
6787
|
+
var u = a.$$typeof;
|
|
6788
|
+
switch (u) {
|
|
6789
|
+
case c:
|
|
6790
|
+
switch (a = a.type, a) {
|
|
6791
|
+
case l:
|
|
6792
|
+
case m:
|
|
6793
|
+
case e:
|
|
6794
|
+
case g:
|
|
6795
|
+
case f:
|
|
6796
|
+
case p:
|
|
6797
|
+
return a;
|
|
6864
6798
|
default:
|
|
6865
|
-
|
|
6866
|
-
|
|
6867
|
-
|
|
6868
|
-
case
|
|
6869
|
-
case
|
|
6870
|
-
case
|
|
6871
|
-
|
|
6872
|
-
case REACT_PROVIDER_TYPE:
|
|
6873
|
-
return $$typeofType;
|
|
6874
|
-
|
|
6799
|
+
switch (a = a && a.$$typeof, a) {
|
|
6800
|
+
case k:
|
|
6801
|
+
case n:
|
|
6802
|
+
case t:
|
|
6803
|
+
case r:
|
|
6804
|
+
case h:
|
|
6805
|
+
return a;
|
|
6875
6806
|
default:
|
|
6876
|
-
return
|
|
6807
|
+
return u;
|
|
6877
6808
|
}
|
|
6878
|
-
|
|
6879
6809
|
}
|
|
6880
|
-
|
|
6881
|
-
|
|
6882
|
-
return $$typeof;
|
|
6883
|
-
}
|
|
6884
|
-
}
|
|
6885
|
-
|
|
6886
|
-
return undefined;
|
|
6887
|
-
} // AsyncMode is deprecated along with isAsyncMode
|
|
6888
|
-
|
|
6889
|
-
var AsyncMode = REACT_ASYNC_MODE_TYPE;
|
|
6890
|
-
var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
|
|
6891
|
-
var ContextConsumer = REACT_CONTEXT_TYPE;
|
|
6892
|
-
var ContextProvider = REACT_PROVIDER_TYPE;
|
|
6893
|
-
var Element = REACT_ELEMENT_TYPE;
|
|
6894
|
-
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
6895
|
-
var Fragment = REACT_FRAGMENT_TYPE;
|
|
6896
|
-
var Lazy = REACT_LAZY_TYPE;
|
|
6897
|
-
var Memo = REACT_MEMO_TYPE;
|
|
6898
|
-
var Portal = REACT_PORTAL_TYPE;
|
|
6899
|
-
var Profiler = REACT_PROFILER_TYPE;
|
|
6900
|
-
var StrictMode = REACT_STRICT_MODE_TYPE;
|
|
6901
|
-
var Suspense = REACT_SUSPENSE_TYPE;
|
|
6902
|
-
var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
|
|
6903
|
-
|
|
6904
|
-
function isAsyncMode(object) {
|
|
6905
|
-
{
|
|
6906
|
-
if (!hasWarnedAboutDeprecatedIsAsyncMode) {
|
|
6907
|
-
hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
|
|
6908
|
-
|
|
6909
|
-
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.');
|
|
6810
|
+
case d:
|
|
6811
|
+
return u;
|
|
6910
6812
|
}
|
|
6911
6813
|
}
|
|
6912
|
-
|
|
6913
|
-
return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
|
|
6914
|
-
}
|
|
6915
|
-
function isConcurrentMode(object) {
|
|
6916
|
-
return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
|
|
6917
6814
|
}
|
|
6918
|
-
function
|
|
6919
|
-
return
|
|
6920
|
-
}
|
|
6921
|
-
function isContextProvider(object) {
|
|
6922
|
-
return typeOf(object) === REACT_PROVIDER_TYPE;
|
|
6923
|
-
}
|
|
6924
|
-
function isElement(object) {
|
|
6925
|
-
return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
6926
|
-
}
|
|
6927
|
-
function isForwardRef(object) {
|
|
6928
|
-
return typeOf(object) === REACT_FORWARD_REF_TYPE;
|
|
6929
|
-
}
|
|
6930
|
-
function isFragment(object) {
|
|
6931
|
-
return typeOf(object) === REACT_FRAGMENT_TYPE;
|
|
6932
|
-
}
|
|
6933
|
-
function isLazy(object) {
|
|
6934
|
-
return typeOf(object) === REACT_LAZY_TYPE;
|
|
6935
|
-
}
|
|
6936
|
-
function isMemo(object) {
|
|
6937
|
-
return typeOf(object) === REACT_MEMO_TYPE;
|
|
6938
|
-
}
|
|
6939
|
-
function isPortal(object) {
|
|
6940
|
-
return typeOf(object) === REACT_PORTAL_TYPE;
|
|
6941
|
-
}
|
|
6942
|
-
function isProfiler(object) {
|
|
6943
|
-
return typeOf(object) === REACT_PROFILER_TYPE;
|
|
6944
|
-
}
|
|
6945
|
-
function isStrictMode(object) {
|
|
6946
|
-
return typeOf(object) === REACT_STRICT_MODE_TYPE;
|
|
6947
|
-
}
|
|
6948
|
-
function isSuspense(object) {
|
|
6949
|
-
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
|
6815
|
+
function A(a) {
|
|
6816
|
+
return z(a) === m;
|
|
6950
6817
|
}
|
|
6818
|
+
var AsyncMode = l;
|
|
6819
|
+
var ConcurrentMode = m;
|
|
6820
|
+
var ContextConsumer = k;
|
|
6821
|
+
var ContextProvider = h;
|
|
6822
|
+
var Element = c;
|
|
6823
|
+
var ForwardRef = n;
|
|
6824
|
+
var Fragment = e;
|
|
6825
|
+
var Lazy = t;
|
|
6826
|
+
var Memo = r;
|
|
6827
|
+
var Portal = d;
|
|
6828
|
+
var Profiler = g;
|
|
6829
|
+
var StrictMode = f;
|
|
6830
|
+
var Suspense = p;
|
|
6831
|
+
var isAsyncMode = function (a) {
|
|
6832
|
+
return A(a) || z(a) === l;
|
|
6833
|
+
};
|
|
6834
|
+
var isConcurrentMode = A;
|
|
6835
|
+
var isContextConsumer = function (a) {
|
|
6836
|
+
return z(a) === k;
|
|
6837
|
+
};
|
|
6838
|
+
var isContextProvider = function (a) {
|
|
6839
|
+
return z(a) === h;
|
|
6840
|
+
};
|
|
6841
|
+
var isElement = function (a) {
|
|
6842
|
+
return "object" === typeof a && null !== a && a.$$typeof === c;
|
|
6843
|
+
};
|
|
6844
|
+
var isForwardRef = function (a) {
|
|
6845
|
+
return z(a) === n;
|
|
6846
|
+
};
|
|
6847
|
+
var isFragment = function (a) {
|
|
6848
|
+
return z(a) === e;
|
|
6849
|
+
};
|
|
6850
|
+
var isLazy = function (a) {
|
|
6851
|
+
return z(a) === t;
|
|
6852
|
+
};
|
|
6853
|
+
var isMemo = function (a) {
|
|
6854
|
+
return z(a) === r;
|
|
6855
|
+
};
|
|
6856
|
+
var isPortal = function (a) {
|
|
6857
|
+
return z(a) === d;
|
|
6858
|
+
};
|
|
6859
|
+
var isProfiler = function (a) {
|
|
6860
|
+
return z(a) === g;
|
|
6861
|
+
};
|
|
6862
|
+
var isStrictMode = function (a) {
|
|
6863
|
+
return z(a) === f;
|
|
6864
|
+
};
|
|
6865
|
+
var isSuspense = function (a) {
|
|
6866
|
+
return z(a) === p;
|
|
6867
|
+
};
|
|
6868
|
+
var isValidElementType = function (a) {
|
|
6869
|
+
return "string" === typeof a || "function" === typeof a || a === e || a === m || a === g || a === f || a === p || a === q || "object" === typeof a && null !== a && (a.$$typeof === t || a.$$typeof === r || a.$$typeof === h || a.$$typeof === k || a.$$typeof === n || a.$$typeof === w || a.$$typeof === x || a.$$typeof === y || a.$$typeof === v);
|
|
6870
|
+
};
|
|
6871
|
+
var typeOf = z;
|
|
6872
|
+
var reactIs_production_min = {
|
|
6873
|
+
AsyncMode: AsyncMode,
|
|
6874
|
+
ConcurrentMode: ConcurrentMode,
|
|
6875
|
+
ContextConsumer: ContextConsumer,
|
|
6876
|
+
ContextProvider: ContextProvider,
|
|
6877
|
+
Element: Element,
|
|
6878
|
+
ForwardRef: ForwardRef,
|
|
6879
|
+
Fragment: Fragment,
|
|
6880
|
+
Lazy: Lazy,
|
|
6881
|
+
Memo: Memo,
|
|
6882
|
+
Portal: Portal,
|
|
6883
|
+
Profiler: Profiler,
|
|
6884
|
+
StrictMode: StrictMode,
|
|
6885
|
+
Suspense: Suspense,
|
|
6886
|
+
isAsyncMode: isAsyncMode,
|
|
6887
|
+
isConcurrentMode: isConcurrentMode,
|
|
6888
|
+
isContextConsumer: isContextConsumer,
|
|
6889
|
+
isContextProvider: isContextProvider,
|
|
6890
|
+
isElement: isElement,
|
|
6891
|
+
isForwardRef: isForwardRef,
|
|
6892
|
+
isFragment: isFragment,
|
|
6893
|
+
isLazy: isLazy,
|
|
6894
|
+
isMemo: isMemo,
|
|
6895
|
+
isPortal: isPortal,
|
|
6896
|
+
isProfiler: isProfiler,
|
|
6897
|
+
isStrictMode: isStrictMode,
|
|
6898
|
+
isSuspense: isSuspense,
|
|
6899
|
+
isValidElementType: isValidElementType,
|
|
6900
|
+
typeOf: typeOf
|
|
6901
|
+
};
|
|
6951
6902
|
|
|
6952
|
-
|
|
6953
|
-
|
|
6954
|
-
|
|
6955
|
-
|
|
6956
|
-
|
|
6957
|
-
|
|
6958
|
-
|
|
6959
|
-
|
|
6960
|
-
|
|
6961
|
-
|
|
6962
|
-
|
|
6963
|
-
|
|
6964
|
-
|
|
6965
|
-
|
|
6966
|
-
|
|
6967
|
-
|
|
6968
|
-
|
|
6969
|
-
|
|
6970
|
-
|
|
6971
|
-
|
|
6972
|
-
|
|
6973
|
-
|
|
6974
|
-
|
|
6975
|
-
|
|
6976
|
-
|
|
6977
|
-
|
|
6978
|
-
|
|
6979
|
-
|
|
6980
|
-
|
|
6981
|
-
|
|
6903
|
+
var reactIs_development = createCommonjsModule(function (module, exports) {
|
|
6904
|
+
|
|
6905
|
+
if (process.env.NODE_ENV !== "production") {
|
|
6906
|
+
(function () {
|
|
6907
|
+
var hasSymbol = typeof Symbol === 'function' && Symbol.for;
|
|
6908
|
+
var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
|
|
6909
|
+
var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
|
|
6910
|
+
var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
|
|
6911
|
+
var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
|
|
6912
|
+
var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
|
|
6913
|
+
var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
|
|
6914
|
+
var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace;
|
|
6915
|
+
var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
|
|
6916
|
+
var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
|
|
6917
|
+
var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
|
|
6918
|
+
var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
|
|
6919
|
+
var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
|
|
6920
|
+
var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
|
|
6921
|
+
var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
|
|
6922
|
+
var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
|
|
6923
|
+
var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
|
|
6924
|
+
var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
|
|
6925
|
+
var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
|
|
6926
|
+
function isValidElementType(type) {
|
|
6927
|
+
return typeof type === 'string' || typeof type === 'function' || 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);
|
|
6928
|
+
}
|
|
6929
|
+
function typeOf(object) {
|
|
6930
|
+
if (typeof object === 'object' && object !== null) {
|
|
6931
|
+
var $$typeof = object.$$typeof;
|
|
6932
|
+
switch ($$typeof) {
|
|
6933
|
+
case REACT_ELEMENT_TYPE:
|
|
6934
|
+
var type = object.type;
|
|
6935
|
+
switch (type) {
|
|
6936
|
+
case REACT_ASYNC_MODE_TYPE:
|
|
6937
|
+
case REACT_CONCURRENT_MODE_TYPE:
|
|
6938
|
+
case REACT_FRAGMENT_TYPE:
|
|
6939
|
+
case REACT_PROFILER_TYPE:
|
|
6940
|
+
case REACT_STRICT_MODE_TYPE:
|
|
6941
|
+
case REACT_SUSPENSE_TYPE:
|
|
6942
|
+
return type;
|
|
6943
|
+
default:
|
|
6944
|
+
var $$typeofType = type && type.$$typeof;
|
|
6945
|
+
switch ($$typeofType) {
|
|
6946
|
+
case REACT_CONTEXT_TYPE:
|
|
6947
|
+
case REACT_FORWARD_REF_TYPE:
|
|
6948
|
+
case REACT_LAZY_TYPE:
|
|
6949
|
+
case REACT_MEMO_TYPE:
|
|
6950
|
+
case REACT_PROVIDER_TYPE:
|
|
6951
|
+
return $$typeofType;
|
|
6952
|
+
default:
|
|
6953
|
+
return $$typeof;
|
|
6954
|
+
}
|
|
6955
|
+
}
|
|
6956
|
+
case REACT_PORTAL_TYPE:
|
|
6957
|
+
return $$typeof;
|
|
6958
|
+
}
|
|
6959
|
+
}
|
|
6960
|
+
return undefined;
|
|
6961
|
+
}
|
|
6962
|
+
var AsyncMode = REACT_ASYNC_MODE_TYPE;
|
|
6963
|
+
var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
|
|
6964
|
+
var ContextConsumer = REACT_CONTEXT_TYPE;
|
|
6965
|
+
var ContextProvider = REACT_PROVIDER_TYPE;
|
|
6966
|
+
var Element = REACT_ELEMENT_TYPE;
|
|
6967
|
+
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
6968
|
+
var Fragment = REACT_FRAGMENT_TYPE;
|
|
6969
|
+
var Lazy = REACT_LAZY_TYPE;
|
|
6970
|
+
var Memo = REACT_MEMO_TYPE;
|
|
6971
|
+
var Portal = REACT_PORTAL_TYPE;
|
|
6972
|
+
var Profiler = REACT_PROFILER_TYPE;
|
|
6973
|
+
var StrictMode = REACT_STRICT_MODE_TYPE;
|
|
6974
|
+
var Suspense = REACT_SUSPENSE_TYPE;
|
|
6975
|
+
var hasWarnedAboutDeprecatedIsAsyncMode = false;
|
|
6976
|
+
function isAsyncMode(object) {
|
|
6977
|
+
{
|
|
6978
|
+
if (!hasWarnedAboutDeprecatedIsAsyncMode) {
|
|
6979
|
+
hasWarnedAboutDeprecatedIsAsyncMode = true;
|
|
6980
|
+
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.');
|
|
6981
|
+
}
|
|
6982
|
+
}
|
|
6983
|
+
return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
|
|
6984
|
+
}
|
|
6985
|
+
function isConcurrentMode(object) {
|
|
6986
|
+
return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
|
|
6987
|
+
}
|
|
6988
|
+
function isContextConsumer(object) {
|
|
6989
|
+
return typeOf(object) === REACT_CONTEXT_TYPE;
|
|
6990
|
+
}
|
|
6991
|
+
function isContextProvider(object) {
|
|
6992
|
+
return typeOf(object) === REACT_PROVIDER_TYPE;
|
|
6993
|
+
}
|
|
6994
|
+
function isElement(object) {
|
|
6995
|
+
return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
6996
|
+
}
|
|
6997
|
+
function isForwardRef(object) {
|
|
6998
|
+
return typeOf(object) === REACT_FORWARD_REF_TYPE;
|
|
6999
|
+
}
|
|
7000
|
+
function isFragment(object) {
|
|
7001
|
+
return typeOf(object) === REACT_FRAGMENT_TYPE;
|
|
7002
|
+
}
|
|
7003
|
+
function isLazy(object) {
|
|
7004
|
+
return typeOf(object) === REACT_LAZY_TYPE;
|
|
7005
|
+
}
|
|
7006
|
+
function isMemo(object) {
|
|
7007
|
+
return typeOf(object) === REACT_MEMO_TYPE;
|
|
7008
|
+
}
|
|
7009
|
+
function isPortal(object) {
|
|
7010
|
+
return typeOf(object) === REACT_PORTAL_TYPE;
|
|
7011
|
+
}
|
|
7012
|
+
function isProfiler(object) {
|
|
7013
|
+
return typeOf(object) === REACT_PROFILER_TYPE;
|
|
7014
|
+
}
|
|
7015
|
+
function isStrictMode(object) {
|
|
7016
|
+
return typeOf(object) === REACT_STRICT_MODE_TYPE;
|
|
7017
|
+
}
|
|
7018
|
+
function isSuspense(object) {
|
|
7019
|
+
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
|
7020
|
+
}
|
|
7021
|
+
exports.AsyncMode = AsyncMode;
|
|
7022
|
+
exports.ConcurrentMode = ConcurrentMode;
|
|
7023
|
+
exports.ContextConsumer = ContextConsumer;
|
|
7024
|
+
exports.ContextProvider = ContextProvider;
|
|
7025
|
+
exports.Element = Element;
|
|
7026
|
+
exports.ForwardRef = ForwardRef;
|
|
7027
|
+
exports.Fragment = Fragment;
|
|
7028
|
+
exports.Lazy = Lazy;
|
|
7029
|
+
exports.Memo = Memo;
|
|
7030
|
+
exports.Portal = Portal;
|
|
7031
|
+
exports.Profiler = Profiler;
|
|
7032
|
+
exports.StrictMode = StrictMode;
|
|
7033
|
+
exports.Suspense = Suspense;
|
|
7034
|
+
exports.isAsyncMode = isAsyncMode;
|
|
7035
|
+
exports.isConcurrentMode = isConcurrentMode;
|
|
7036
|
+
exports.isContextConsumer = isContextConsumer;
|
|
7037
|
+
exports.isContextProvider = isContextProvider;
|
|
7038
|
+
exports.isElement = isElement;
|
|
7039
|
+
exports.isForwardRef = isForwardRef;
|
|
7040
|
+
exports.isFragment = isFragment;
|
|
7041
|
+
exports.isLazy = isLazy;
|
|
7042
|
+
exports.isMemo = isMemo;
|
|
7043
|
+
exports.isPortal = isPortal;
|
|
7044
|
+
exports.isProfiler = isProfiler;
|
|
7045
|
+
exports.isStrictMode = isStrictMode;
|
|
7046
|
+
exports.isSuspense = isSuspense;
|
|
7047
|
+
exports.isValidElementType = isValidElementType;
|
|
7048
|
+
exports.typeOf = typeOf;
|
|
7049
|
+
})();
|
|
7050
|
+
}
|
|
6982
7051
|
});
|
|
6983
7052
|
|
|
6984
7053
|
var reactIs = createCommonjsModule(function (module) {
|
|
6985
7054
|
|
|
6986
|
-
if (process.env.NODE_ENV === 'production') {
|
|
6987
|
-
|
|
6988
|
-
} else {
|
|
6989
|
-
|
|
6990
|
-
}
|
|
7055
|
+
if (process.env.NODE_ENV === 'production') {
|
|
7056
|
+
module.exports = reactIs_production_min;
|
|
7057
|
+
} else {
|
|
7058
|
+
module.exports = reactIs_development;
|
|
7059
|
+
}
|
|
6991
7060
|
});
|
|
6992
7061
|
|
|
6993
|
-
/*
|
|
6994
|
-
object-assign
|
|
6995
|
-
(c) Sindre Sorhus
|
|
6996
|
-
@license MIT
|
|
6997
|
-
*/
|
|
6998
|
-
/* eslint-disable no-unused-vars */
|
|
6999
7062
|
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
|
|
7000
7063
|
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
7001
7064
|
var propIsEnumerable = Object.prototype.propertyIsEnumerable;
|
|
7002
|
-
|
|
7003
7065
|
function toObject(val) {
|
|
7004
|
-
|
|
7005
|
-
|
|
7006
|
-
|
|
7007
|
-
|
|
7008
|
-
return Object(val);
|
|
7066
|
+
if (val === null || val === undefined) {
|
|
7067
|
+
throw new TypeError('Object.assign cannot be called with null or undefined');
|
|
7068
|
+
}
|
|
7069
|
+
return Object(val);
|
|
7009
7070
|
}
|
|
7010
|
-
|
|
7011
7071
|
function shouldUseNative() {
|
|
7012
|
-
|
|
7013
|
-
|
|
7014
|
-
|
|
7015
|
-
|
|
7016
|
-
|
|
7017
|
-
|
|
7018
|
-
|
|
7019
|
-
|
|
7020
|
-
|
|
7021
|
-
|
|
7022
|
-
|
|
7023
|
-
|
|
7024
|
-
|
|
7025
|
-
|
|
7026
|
-
|
|
7027
|
-
|
|
7028
|
-
|
|
7029
|
-
|
|
7030
|
-
|
|
7031
|
-
|
|
7032
|
-
|
|
7033
|
-
|
|
7034
|
-
|
|
7035
|
-
|
|
7036
|
-
|
|
7037
|
-
|
|
7038
|
-
|
|
7039
|
-
|
|
7040
|
-
|
|
7041
|
-
|
|
7042
|
-
});
|
|
7043
|
-
if (Object.keys(Object.assign({}, test3)).join('') !==
|
|
7044
|
-
'abcdefghijklmnopqrst') {
|
|
7045
|
-
return false;
|
|
7046
|
-
}
|
|
7047
|
-
|
|
7048
|
-
return true;
|
|
7049
|
-
} catch (err) {
|
|
7050
|
-
// We don't expect any of the above to throw, but better to be safe.
|
|
7051
|
-
return false;
|
|
7052
|
-
}
|
|
7072
|
+
try {
|
|
7073
|
+
if (!Object.assign) {
|
|
7074
|
+
return false;
|
|
7075
|
+
}
|
|
7076
|
+
var test1 = new String('abc');
|
|
7077
|
+
test1[5] = 'de';
|
|
7078
|
+
if (Object.getOwnPropertyNames(test1)[0] === '5') {
|
|
7079
|
+
return false;
|
|
7080
|
+
}
|
|
7081
|
+
var test2 = {};
|
|
7082
|
+
for (var i = 0; i < 10; i++) {
|
|
7083
|
+
test2['_' + String.fromCharCode(i)] = i;
|
|
7084
|
+
}
|
|
7085
|
+
var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
|
|
7086
|
+
return test2[n];
|
|
7087
|
+
});
|
|
7088
|
+
if (order2.join('') !== '0123456789') {
|
|
7089
|
+
return false;
|
|
7090
|
+
}
|
|
7091
|
+
var test3 = {};
|
|
7092
|
+
'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
|
|
7093
|
+
test3[letter] = letter;
|
|
7094
|
+
});
|
|
7095
|
+
if (Object.keys(Object.assign({}, test3)).join('') !== 'abcdefghijklmnopqrst') {
|
|
7096
|
+
return false;
|
|
7097
|
+
}
|
|
7098
|
+
return true;
|
|
7099
|
+
} catch (err) {
|
|
7100
|
+
return false;
|
|
7101
|
+
}
|
|
7053
7102
|
}
|
|
7054
|
-
|
|
7055
7103
|
var objectAssign = shouldUseNative() ? Object.assign : function (target, source) {
|
|
7056
|
-
|
|
7057
|
-
|
|
7058
|
-
|
|
7059
|
-
|
|
7060
|
-
|
|
7061
|
-
|
|
7062
|
-
|
|
7063
|
-
|
|
7064
|
-
|
|
7065
|
-
|
|
7066
|
-
|
|
7067
|
-
|
|
7068
|
-
|
|
7069
|
-
|
|
7070
|
-
|
|
7071
|
-
|
|
7072
|
-
|
|
7073
|
-
|
|
7074
|
-
|
|
7075
|
-
|
|
7076
|
-
}
|
|
7077
|
-
}
|
|
7078
|
-
|
|
7079
|
-
return to;
|
|
7104
|
+
var from;
|
|
7105
|
+
var to = toObject(target);
|
|
7106
|
+
var symbols;
|
|
7107
|
+
for (var s = 1; s < arguments.length; s++) {
|
|
7108
|
+
from = Object(arguments[s]);
|
|
7109
|
+
for (var key in from) {
|
|
7110
|
+
if (hasOwnProperty.call(from, key)) {
|
|
7111
|
+
to[key] = from[key];
|
|
7112
|
+
}
|
|
7113
|
+
}
|
|
7114
|
+
if (getOwnPropertySymbols) {
|
|
7115
|
+
symbols = getOwnPropertySymbols(from);
|
|
7116
|
+
for (var i = 0; i < symbols.length; i++) {
|
|
7117
|
+
if (propIsEnumerable.call(from, symbols[i])) {
|
|
7118
|
+
to[symbols[i]] = from[symbols[i]];
|
|
7119
|
+
}
|
|
7120
|
+
}
|
|
7121
|
+
}
|
|
7122
|
+
}
|
|
7123
|
+
return to;
|
|
7080
7124
|
};
|
|
7081
7125
|
|
|
7082
|
-
/**
|
|
7083
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
7084
|
-
*
|
|
7085
|
-
* This source code is licensed under the MIT license found in the
|
|
7086
|
-
* LICENSE file in the root directory of this source tree.
|
|
7087
|
-
*/
|
|
7088
|
-
|
|
7089
7126
|
var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
|
|
7090
|
-
|
|
7091
7127
|
var ReactPropTypesSecret_1 = ReactPropTypesSecret;
|
|
7092
7128
|
|
|
7093
7129
|
var has = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
7094
7130
|
|
|
7095
|
-
var printWarning = function() {};
|
|
7096
|
-
|
|
7131
|
+
var printWarning = function () {};
|
|
7097
7132
|
if (process.env.NODE_ENV !== 'production') {
|
|
7098
7133
|
var ReactPropTypesSecret$1 = ReactPropTypesSecret_1;
|
|
7099
7134
|
var loggedTypeFailures = {};
|
|
7100
7135
|
var has$1 = has;
|
|
7101
|
-
|
|
7102
|
-
printWarning = function(text) {
|
|
7136
|
+
printWarning = function (text) {
|
|
7103
7137
|
var message = 'Warning: ' + text;
|
|
7104
7138
|
if (typeof console !== 'undefined') {
|
|
7105
7139
|
console.error(message);
|
|
7106
7140
|
}
|
|
7107
7141
|
try {
|
|
7108
|
-
// --- Welcome to debugging React ---
|
|
7109
|
-
// This error was thrown as a convenience so that you can use this stack
|
|
7110
|
-
// to find the callsite that caused this warning to fire.
|
|
7111
7142
|
throw new Error(message);
|
|
7112
|
-
} catch (x) {
|
|
7143
|
+
} catch (x) {}
|
|
7113
7144
|
};
|
|
7114
7145
|
}
|
|
7115
|
-
|
|
7116
|
-
/**
|
|
7117
|
-
* Assert that the values match with the type specs.
|
|
7118
|
-
* Error messages are memorized and will only be shown once.
|
|
7119
|
-
*
|
|
7120
|
-
* @param {object} typeSpecs Map of name to a ReactPropType
|
|
7121
|
-
* @param {object} values Runtime values that need to be type-checked
|
|
7122
|
-
* @param {string} location e.g. "prop", "context", "child context"
|
|
7123
|
-
* @param {string} componentName Name of the component for error messages.
|
|
7124
|
-
* @param {?Function} getStack Returns the component stack.
|
|
7125
|
-
* @private
|
|
7126
|
-
*/
|
|
7127
7146
|
function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
|
|
7128
7147
|
if (process.env.NODE_ENV !== 'production') {
|
|
7129
7148
|
for (var typeSpecName in typeSpecs) {
|
|
7130
7149
|
if (has$1(typeSpecs, typeSpecName)) {
|
|
7131
7150
|
var error;
|
|
7132
|
-
// Prop type validation may throw. In case they do, we don't want to
|
|
7133
|
-
// fail the render phase where it didn't fail before. So we log it.
|
|
7134
|
-
// After these have been cleaned up, we'll let them throw.
|
|
7135
7151
|
try {
|
|
7136
|
-
// This is intentionally an invariant that gets caught. It's the same
|
|
7137
|
-
// behavior as without this statement except with a better message.
|
|
7138
7152
|
if (typeof typeSpecs[typeSpecName] !== 'function') {
|
|
7139
|
-
var err = Error(
|
|
7140
|
-
(componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
|
|
7141
|
-
'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' +
|
|
7142
|
-
'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'
|
|
7143
|
-
);
|
|
7153
|
+
var err = Error((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`.');
|
|
7144
7154
|
err.name = 'Invariant Violation';
|
|
7145
7155
|
throw err;
|
|
7146
7156
|
}
|
|
@@ -7149,142 +7159,49 @@ function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
|
|
|
7149
7159
|
error = ex;
|
|
7150
7160
|
}
|
|
7151
7161
|
if (error && !(error instanceof Error)) {
|
|
7152
|
-
printWarning(
|
|
7153
|
-
(componentName || 'React class') + ': type specification of ' +
|
|
7154
|
-
location + ' `' + typeSpecName + '` is invalid; the type checker ' +
|
|
7155
|
-
'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +
|
|
7156
|
-
'You may have forgotten to pass an argument to the type checker ' +
|
|
7157
|
-
'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +
|
|
7158
|
-
'shape all require an argument).'
|
|
7159
|
-
);
|
|
7162
|
+
printWarning((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).');
|
|
7160
7163
|
}
|
|
7161
7164
|
if (error instanceof Error && !(error.message in loggedTypeFailures)) {
|
|
7162
|
-
// Only monitor this failure once because there tends to be a lot of the
|
|
7163
|
-
// same error.
|
|
7164
7165
|
loggedTypeFailures[error.message] = true;
|
|
7165
|
-
|
|
7166
7166
|
var stack = getStack ? getStack() : '';
|
|
7167
|
-
|
|
7168
|
-
printWarning(
|
|
7169
|
-
'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')
|
|
7170
|
-
);
|
|
7167
|
+
printWarning('Failed ' + location + ' type: ' + error.message + (stack != null ? stack : ''));
|
|
7171
7168
|
}
|
|
7172
7169
|
}
|
|
7173
7170
|
}
|
|
7174
7171
|
}
|
|
7175
7172
|
}
|
|
7176
|
-
|
|
7177
|
-
/**
|
|
7178
|
-
* Resets warning cache when testing.
|
|
7179
|
-
*
|
|
7180
|
-
* @private
|
|
7181
|
-
*/
|
|
7182
|
-
checkPropTypes.resetWarningCache = function() {
|
|
7173
|
+
checkPropTypes.resetWarningCache = function () {
|
|
7183
7174
|
if (process.env.NODE_ENV !== 'production') {
|
|
7184
7175
|
loggedTypeFailures = {};
|
|
7185
7176
|
}
|
|
7186
7177
|
};
|
|
7187
|
-
|
|
7188
7178
|
var checkPropTypes_1 = checkPropTypes;
|
|
7189
7179
|
|
|
7190
|
-
var printWarning$1 = function() {};
|
|
7191
|
-
|
|
7180
|
+
var printWarning$1 = function () {};
|
|
7192
7181
|
if (process.env.NODE_ENV !== 'production') {
|
|
7193
|
-
printWarning$1 = function(text) {
|
|
7182
|
+
printWarning$1 = function (text) {
|
|
7194
7183
|
var message = 'Warning: ' + text;
|
|
7195
7184
|
if (typeof console !== 'undefined') {
|
|
7196
7185
|
console.error(message);
|
|
7197
7186
|
}
|
|
7198
7187
|
try {
|
|
7199
|
-
// --- Welcome to debugging React ---
|
|
7200
|
-
// This error was thrown as a convenience so that you can use this stack
|
|
7201
|
-
// to find the callsite that caused this warning to fire.
|
|
7202
7188
|
throw new Error(message);
|
|
7203
7189
|
} catch (x) {}
|
|
7204
7190
|
};
|
|
7205
7191
|
}
|
|
7206
|
-
|
|
7207
7192
|
function emptyFunctionThatReturnsNull() {
|
|
7208
7193
|
return null;
|
|
7209
7194
|
}
|
|
7210
|
-
|
|
7211
|
-
var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
7212
|
-
/* global Symbol */
|
|
7195
|
+
var factoryWithTypeCheckers = function (isValidElement, throwOnDirectAccess) {
|
|
7213
7196
|
var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
|
|
7214
|
-
var FAUX_ITERATOR_SYMBOL = '@@iterator';
|
|
7215
|
-
|
|
7216
|
-
/**
|
|
7217
|
-
* Returns the iterator method function contained on the iterable object.
|
|
7218
|
-
*
|
|
7219
|
-
* Be sure to invoke the function with the iterable as context:
|
|
7220
|
-
*
|
|
7221
|
-
* var iteratorFn = getIteratorFn(myIterable);
|
|
7222
|
-
* if (iteratorFn) {
|
|
7223
|
-
* var iterator = iteratorFn.call(myIterable);
|
|
7224
|
-
* ...
|
|
7225
|
-
* }
|
|
7226
|
-
*
|
|
7227
|
-
* @param {?object} maybeIterable
|
|
7228
|
-
* @return {?function}
|
|
7229
|
-
*/
|
|
7197
|
+
var FAUX_ITERATOR_SYMBOL = '@@iterator';
|
|
7230
7198
|
function getIteratorFn(maybeIterable) {
|
|
7231
7199
|
var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
|
|
7232
7200
|
if (typeof iteratorFn === 'function') {
|
|
7233
7201
|
return iteratorFn;
|
|
7234
7202
|
}
|
|
7235
7203
|
}
|
|
7236
|
-
|
|
7237
|
-
/**
|
|
7238
|
-
* Collection of methods that allow declaration and validation of props that are
|
|
7239
|
-
* supplied to React components. Example usage:
|
|
7240
|
-
*
|
|
7241
|
-
* var Props = require('ReactPropTypes');
|
|
7242
|
-
* var MyArticle = React.createClass({
|
|
7243
|
-
* propTypes: {
|
|
7244
|
-
* // An optional string prop named "description".
|
|
7245
|
-
* description: Props.string,
|
|
7246
|
-
*
|
|
7247
|
-
* // A required enum prop named "category".
|
|
7248
|
-
* category: Props.oneOf(['News','Photos']).isRequired,
|
|
7249
|
-
*
|
|
7250
|
-
* // A prop named "dialog" that requires an instance of Dialog.
|
|
7251
|
-
* dialog: Props.instanceOf(Dialog).isRequired
|
|
7252
|
-
* },
|
|
7253
|
-
* render: function() { ... }
|
|
7254
|
-
* });
|
|
7255
|
-
*
|
|
7256
|
-
* A more formal specification of how these methods are used:
|
|
7257
|
-
*
|
|
7258
|
-
* type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
|
|
7259
|
-
* decl := ReactPropTypes.{type}(.isRequired)?
|
|
7260
|
-
*
|
|
7261
|
-
* Each and every declaration produces a function with the same signature. This
|
|
7262
|
-
* allows the creation of custom validation functions. For example:
|
|
7263
|
-
*
|
|
7264
|
-
* var MyLink = React.createClass({
|
|
7265
|
-
* propTypes: {
|
|
7266
|
-
* // An optional string or URI prop named "href".
|
|
7267
|
-
* href: function(props, propName, componentName) {
|
|
7268
|
-
* var propValue = props[propName];
|
|
7269
|
-
* if (propValue != null && typeof propValue !== 'string' &&
|
|
7270
|
-
* !(propValue instanceof URI)) {
|
|
7271
|
-
* return new Error(
|
|
7272
|
-
* 'Expected a string or an URI for ' + propName + ' in ' +
|
|
7273
|
-
* componentName
|
|
7274
|
-
* );
|
|
7275
|
-
* }
|
|
7276
|
-
* }
|
|
7277
|
-
* },
|
|
7278
|
-
* render: function() {...}
|
|
7279
|
-
* });
|
|
7280
|
-
*
|
|
7281
|
-
* @internal
|
|
7282
|
-
*/
|
|
7283
|
-
|
|
7284
7204
|
var ANONYMOUS = '<<anonymous>>';
|
|
7285
|
-
|
|
7286
|
-
// Important!
|
|
7287
|
-
// Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
|
|
7288
7205
|
var ReactPropTypes = {
|
|
7289
7206
|
array: createPrimitiveTypeChecker('array'),
|
|
7290
7207
|
bigint: createPrimitiveTypeChecker('bigint'),
|
|
@@ -7294,7 +7211,6 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
7294
7211
|
object: createPrimitiveTypeChecker('object'),
|
|
7295
7212
|
string: createPrimitiveTypeChecker('string'),
|
|
7296
7213
|
symbol: createPrimitiveTypeChecker('symbol'),
|
|
7297
|
-
|
|
7298
7214
|
any: createAnyTypeChecker(),
|
|
7299
7215
|
arrayOf: createArrayOfTypeChecker,
|
|
7300
7216
|
element: createElementTypeChecker(),
|
|
@@ -7305,42 +7221,21 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
7305
7221
|
oneOf: createEnumTypeChecker,
|
|
7306
7222
|
oneOfType: createUnionTypeChecker,
|
|
7307
7223
|
shape: createShapeTypeChecker,
|
|
7308
|
-
exact: createStrictShapeTypeChecker
|
|
7224
|
+
exact: createStrictShapeTypeChecker
|
|
7309
7225
|
};
|
|
7310
|
-
|
|
7311
|
-
/**
|
|
7312
|
-
* inlined Object.is polyfill to avoid requiring consumers ship their own
|
|
7313
|
-
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
|
|
7314
|
-
*/
|
|
7315
|
-
/*eslint-disable no-self-compare*/
|
|
7316
7226
|
function is(x, y) {
|
|
7317
|
-
// SameValue algorithm
|
|
7318
7227
|
if (x === y) {
|
|
7319
|
-
// Steps 1-5, 7-10
|
|
7320
|
-
// Steps 6.b-6.e: +0 != -0
|
|
7321
7228
|
return x !== 0 || 1 / x === 1 / y;
|
|
7322
7229
|
} else {
|
|
7323
|
-
// Step 6.a: NaN == NaN
|
|
7324
7230
|
return x !== x && y !== y;
|
|
7325
7231
|
}
|
|
7326
7232
|
}
|
|
7327
|
-
/*eslint-enable no-self-compare*/
|
|
7328
|
-
|
|
7329
|
-
/**
|
|
7330
|
-
* We use an Error-like object for backward compatibility as people may call
|
|
7331
|
-
* PropTypes directly and inspect their output. However, we don't use real
|
|
7332
|
-
* Errors anymore. We don't inspect their stack anyway, and creating them
|
|
7333
|
-
* is prohibitively expensive if they are created too often, such as what
|
|
7334
|
-
* happens in oneOfType() for any type before the one that matched.
|
|
7335
|
-
*/
|
|
7336
7233
|
function PropTypeError(message, data) {
|
|
7337
7234
|
this.message = message;
|
|
7338
|
-
this.data = data && typeof data === 'object' ? data: {};
|
|
7235
|
+
this.data = data && typeof data === 'object' ? data : {};
|
|
7339
7236
|
this.stack = '';
|
|
7340
7237
|
}
|
|
7341
|
-
// Make `instanceof Error` still work for returned errors.
|
|
7342
7238
|
PropTypeError.prototype = Error.prototype;
|
|
7343
|
-
|
|
7344
7239
|
function createChainableTypeChecker(validate) {
|
|
7345
7240
|
if (process.env.NODE_ENV !== 'production') {
|
|
7346
7241
|
var manualPropTypeCallCache = {};
|
|
@@ -7349,32 +7244,15 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
7349
7244
|
function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
|
|
7350
7245
|
componentName = componentName || ANONYMOUS;
|
|
7351
7246
|
propFullName = propFullName || propName;
|
|
7352
|
-
|
|
7353
7247
|
if (secret !== ReactPropTypesSecret_1) {
|
|
7354
7248
|
if (throwOnDirectAccess) {
|
|
7355
|
-
|
|
7356
|
-
var err = new Error(
|
|
7357
|
-
'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
|
|
7358
|
-
'Use `PropTypes.checkPropTypes()` to call them. ' +
|
|
7359
|
-
'Read more at http://fb.me/use-check-prop-types'
|
|
7360
|
-
);
|
|
7249
|
+
var err = new Error('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');
|
|
7361
7250
|
err.name = 'Invariant Violation';
|
|
7362
7251
|
throw err;
|
|
7363
7252
|
} else if (process.env.NODE_ENV !== 'production' && typeof console !== 'undefined') {
|
|
7364
|
-
// Old behavior for people using React.PropTypes
|
|
7365
7253
|
var cacheKey = componentName + ':' + propName;
|
|
7366
|
-
if (
|
|
7367
|
-
|
|
7368
|
-
// Avoid spamming the console because they are often not actionable except for lib authors
|
|
7369
|
-
manualPropTypeWarningCount < 3
|
|
7370
|
-
) {
|
|
7371
|
-
printWarning$1(
|
|
7372
|
-
'You are manually calling a React.PropTypes validation ' +
|
|
7373
|
-
'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
|
|
7374
|
-
'and will throw in the standalone `prop-types` package. ' +
|
|
7375
|
-
'You may be seeing this warning due to a third-party PropTypes ' +
|
|
7376
|
-
'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'
|
|
7377
|
-
);
|
|
7254
|
+
if (!manualPropTypeCallCache[cacheKey] && manualPropTypeWarningCount < 3) {
|
|
7255
|
+
printWarning$1('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.');
|
|
7378
7256
|
manualPropTypeCallCache[cacheKey] = true;
|
|
7379
7257
|
manualPropTypeWarningCount++;
|
|
7380
7258
|
}
|
|
@@ -7392,37 +7270,27 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
7392
7270
|
return validate(props, propName, componentName, location, propFullName);
|
|
7393
7271
|
}
|
|
7394
7272
|
}
|
|
7395
|
-
|
|
7396
7273
|
var chainedCheckType = checkType.bind(null, false);
|
|
7397
7274
|
chainedCheckType.isRequired = checkType.bind(null, true);
|
|
7398
|
-
|
|
7399
7275
|
return chainedCheckType;
|
|
7400
7276
|
}
|
|
7401
|
-
|
|
7402
7277
|
function createPrimitiveTypeChecker(expectedType) {
|
|
7403
7278
|
function validate(props, propName, componentName, location, propFullName, secret) {
|
|
7404
7279
|
var propValue = props[propName];
|
|
7405
7280
|
var propType = getPropType(propValue);
|
|
7406
7281
|
if (propType !== expectedType) {
|
|
7407
|
-
// `propValue` being instance of, say, date/regexp, pass the 'object'
|
|
7408
|
-
// check, but we can offer a more precise error message here rather than
|
|
7409
|
-
// 'of type `object`'.
|
|
7410
7282
|
var preciseType = getPreciseType(propValue);
|
|
7411
|
-
|
|
7412
|
-
|
|
7413
|
-
|
|
7414
|
-
{expectedType: expectedType}
|
|
7415
|
-
);
|
|
7283
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'), {
|
|
7284
|
+
expectedType: expectedType
|
|
7285
|
+
});
|
|
7416
7286
|
}
|
|
7417
7287
|
return null;
|
|
7418
7288
|
}
|
|
7419
7289
|
return createChainableTypeChecker(validate);
|
|
7420
7290
|
}
|
|
7421
|
-
|
|
7422
7291
|
function createAnyTypeChecker() {
|
|
7423
7292
|
return createChainableTypeChecker(emptyFunctionThatReturnsNull);
|
|
7424
7293
|
}
|
|
7425
|
-
|
|
7426
7294
|
function createArrayOfTypeChecker(typeChecker) {
|
|
7427
7295
|
function validate(props, propName, componentName, location, propFullName) {
|
|
7428
7296
|
if (typeof typeChecker !== 'function') {
|
|
@@ -7443,7 +7311,6 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
7443
7311
|
}
|
|
7444
7312
|
return createChainableTypeChecker(validate);
|
|
7445
7313
|
}
|
|
7446
|
-
|
|
7447
7314
|
function createElementTypeChecker() {
|
|
7448
7315
|
function validate(props, propName, componentName, location, propFullName) {
|
|
7449
7316
|
var propValue = props[propName];
|
|
@@ -7455,7 +7322,6 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
7455
7322
|
}
|
|
7456
7323
|
return createChainableTypeChecker(validate);
|
|
7457
7324
|
}
|
|
7458
|
-
|
|
7459
7325
|
function createElementTypeTypeChecker() {
|
|
7460
7326
|
function validate(props, propName, componentName, location, propFullName) {
|
|
7461
7327
|
var propValue = props[propName];
|
|
@@ -7467,7 +7333,6 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
7467
7333
|
}
|
|
7468
7334
|
return createChainableTypeChecker(validate);
|
|
7469
7335
|
}
|
|
7470
|
-
|
|
7471
7336
|
function createInstanceTypeChecker(expectedClass) {
|
|
7472
7337
|
function validate(props, propName, componentName, location, propFullName) {
|
|
7473
7338
|
if (!(props[propName] instanceof expectedClass)) {
|
|
@@ -7479,22 +7344,17 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
7479
7344
|
}
|
|
7480
7345
|
return createChainableTypeChecker(validate);
|
|
7481
7346
|
}
|
|
7482
|
-
|
|
7483
7347
|
function createEnumTypeChecker(expectedValues) {
|
|
7484
7348
|
if (!Array.isArray(expectedValues)) {
|
|
7485
7349
|
if (process.env.NODE_ENV !== 'production') {
|
|
7486
7350
|
if (arguments.length > 1) {
|
|
7487
|
-
printWarning$1(
|
|
7488
|
-
'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +
|
|
7489
|
-
'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'
|
|
7490
|
-
);
|
|
7351
|
+
printWarning$1('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]).');
|
|
7491
7352
|
} else {
|
|
7492
7353
|
printWarning$1('Invalid argument supplied to oneOf, expected an array.');
|
|
7493
7354
|
}
|
|
7494
7355
|
}
|
|
7495
7356
|
return emptyFunctionThatReturnsNull;
|
|
7496
7357
|
}
|
|
7497
|
-
|
|
7498
7358
|
function validate(props, propName, componentName, location, propFullName) {
|
|
7499
7359
|
var propValue = props[propName];
|
|
7500
7360
|
for (var i = 0; i < expectedValues.length; i++) {
|
|
@@ -7502,7 +7362,6 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
7502
7362
|
return null;
|
|
7503
7363
|
}
|
|
7504
7364
|
}
|
|
7505
|
-
|
|
7506
7365
|
var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
|
|
7507
7366
|
var type = getPreciseType(value);
|
|
7508
7367
|
if (type === 'symbol') {
|
|
@@ -7514,7 +7373,6 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
7514
7373
|
}
|
|
7515
7374
|
return createChainableTypeChecker(validate);
|
|
7516
7375
|
}
|
|
7517
|
-
|
|
7518
7376
|
function createObjectOfTypeChecker(typeChecker) {
|
|
7519
7377
|
function validate(props, propName, componentName, location, propFullName) {
|
|
7520
7378
|
if (typeof typeChecker !== 'function') {
|
|
@@ -7537,24 +7395,18 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
7537
7395
|
}
|
|
7538
7396
|
return createChainableTypeChecker(validate);
|
|
7539
7397
|
}
|
|
7540
|
-
|
|
7541
7398
|
function createUnionTypeChecker(arrayOfTypeCheckers) {
|
|
7542
7399
|
if (!Array.isArray(arrayOfTypeCheckers)) {
|
|
7543
7400
|
process.env.NODE_ENV !== 'production' ? printWarning$1('Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;
|
|
7544
7401
|
return emptyFunctionThatReturnsNull;
|
|
7545
7402
|
}
|
|
7546
|
-
|
|
7547
7403
|
for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
|
|
7548
7404
|
var checker = arrayOfTypeCheckers[i];
|
|
7549
7405
|
if (typeof checker !== 'function') {
|
|
7550
|
-
printWarning$1(
|
|
7551
|
-
'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +
|
|
7552
|
-
'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'
|
|
7553
|
-
);
|
|
7406
|
+
printWarning$1('Invalid argument supplied to oneOfType. Expected an array of check functions, but ' + 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.');
|
|
7554
7407
|
return emptyFunctionThatReturnsNull;
|
|
7555
7408
|
}
|
|
7556
7409
|
}
|
|
7557
|
-
|
|
7558
7410
|
function validate(props, propName, componentName, location, propFullName) {
|
|
7559
7411
|
var expectedTypes = [];
|
|
7560
7412
|
for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
|
|
@@ -7567,12 +7419,11 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
7567
7419
|
expectedTypes.push(checkerResult.data.expectedType);
|
|
7568
7420
|
}
|
|
7569
7421
|
}
|
|
7570
|
-
var expectedTypesMessage =
|
|
7422
|
+
var expectedTypesMessage = expectedTypes.length > 0 ? ', expected one of type [' + expectedTypes.join(', ') + ']' : '';
|
|
7571
7423
|
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.'));
|
|
7572
7424
|
}
|
|
7573
7425
|
return createChainableTypeChecker(validate);
|
|
7574
7426
|
}
|
|
7575
|
-
|
|
7576
7427
|
function createNodeChecker() {
|
|
7577
7428
|
function validate(props, propName, componentName, location, propFullName) {
|
|
7578
7429
|
if (!isNode(props[propName])) {
|
|
@@ -7582,14 +7433,9 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
7582
7433
|
}
|
|
7583
7434
|
return createChainableTypeChecker(validate);
|
|
7584
7435
|
}
|
|
7585
|
-
|
|
7586
7436
|
function invalidValidatorError(componentName, location, propFullName, key, type) {
|
|
7587
|
-
return new PropTypeError(
|
|
7588
|
-
(componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' +
|
|
7589
|
-
'it must be a function, usually from the `prop-types` package, but received `' + type + '`.'
|
|
7590
|
-
);
|
|
7437
|
+
return new PropTypeError((componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + type + '`.');
|
|
7591
7438
|
}
|
|
7592
|
-
|
|
7593
7439
|
function createShapeTypeChecker(shapeTypes) {
|
|
7594
7440
|
function validate(props, propName, componentName, location, propFullName) {
|
|
7595
7441
|
var propValue = props[propName];
|
|
@@ -7611,7 +7457,6 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
7611
7457
|
}
|
|
7612
7458
|
return createChainableTypeChecker(validate);
|
|
7613
7459
|
}
|
|
7614
|
-
|
|
7615
7460
|
function createStrictShapeTypeChecker(shapeTypes) {
|
|
7616
7461
|
function validate(props, propName, componentName, location, propFullName) {
|
|
7617
7462
|
var propValue = props[propName];
|
|
@@ -7619,7 +7464,6 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
7619
7464
|
if (propType !== 'object') {
|
|
7620
7465
|
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
|
|
7621
7466
|
}
|
|
7622
|
-
// We need to check all keys in case some are required but missing from props.
|
|
7623
7467
|
var allKeys = objectAssign({}, props[propName], shapeTypes);
|
|
7624
7468
|
for (var key in allKeys) {
|
|
7625
7469
|
var checker = shapeTypes[key];
|
|
@@ -7627,11 +7471,7 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
7627
7471
|
return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
|
|
7628
7472
|
}
|
|
7629
7473
|
if (!checker) {
|
|
7630
|
-
return new PropTypeError(
|
|
7631
|
-
'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
|
|
7632
|
-
'\nBad object: ' + JSON.stringify(props[propName], null, ' ') +
|
|
7633
|
-
'\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
|
|
7634
|
-
);
|
|
7474
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' + '\nBad object: ' + JSON.stringify(props[propName], null, ' ') + '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' '));
|
|
7635
7475
|
}
|
|
7636
7476
|
var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret_1);
|
|
7637
7477
|
if (error) {
|
|
@@ -7640,10 +7480,8 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
7640
7480
|
}
|
|
7641
7481
|
return null;
|
|
7642
7482
|
}
|
|
7643
|
-
|
|
7644
7483
|
return createChainableTypeChecker(validate);
|
|
7645
7484
|
}
|
|
7646
|
-
|
|
7647
7485
|
function isNode(propValue) {
|
|
7648
7486
|
switch (typeof propValue) {
|
|
7649
7487
|
case 'number':
|
|
@@ -7659,7 +7497,6 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
7659
7497
|
if (propValue === null || isValidElement(propValue)) {
|
|
7660
7498
|
return true;
|
|
7661
7499
|
}
|
|
7662
|
-
|
|
7663
7500
|
var iteratorFn = getIteratorFn(propValue);
|
|
7664
7501
|
if (iteratorFn) {
|
|
7665
7502
|
var iterator = iteratorFn.call(propValue);
|
|
@@ -7671,7 +7508,6 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
7671
7508
|
}
|
|
7672
7509
|
}
|
|
7673
7510
|
} else {
|
|
7674
|
-
// Iterator will provide entry [k,v] tuples rather than values.
|
|
7675
7511
|
while (!(step = iterator.next()).done) {
|
|
7676
7512
|
var entry = step.value;
|
|
7677
7513
|
if (entry) {
|
|
@@ -7684,47 +7520,32 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
7684
7520
|
} else {
|
|
7685
7521
|
return false;
|
|
7686
7522
|
}
|
|
7687
|
-
|
|
7688
7523
|
return true;
|
|
7689
7524
|
default:
|
|
7690
7525
|
return false;
|
|
7691
7526
|
}
|
|
7692
7527
|
}
|
|
7693
|
-
|
|
7694
7528
|
function isSymbol(propType, propValue) {
|
|
7695
|
-
// Native Symbol.
|
|
7696
7529
|
if (propType === 'symbol') {
|
|
7697
7530
|
return true;
|
|
7698
7531
|
}
|
|
7699
|
-
|
|
7700
|
-
// falsy value can't be a Symbol
|
|
7701
7532
|
if (!propValue) {
|
|
7702
7533
|
return false;
|
|
7703
7534
|
}
|
|
7704
|
-
|
|
7705
|
-
// 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
|
|
7706
7535
|
if (propValue['@@toStringTag'] === 'Symbol') {
|
|
7707
7536
|
return true;
|
|
7708
7537
|
}
|
|
7709
|
-
|
|
7710
|
-
// Fallback for non-spec compliant Symbols which are polyfilled.
|
|
7711
7538
|
if (typeof Symbol === 'function' && propValue instanceof Symbol) {
|
|
7712
7539
|
return true;
|
|
7713
7540
|
}
|
|
7714
|
-
|
|
7715
7541
|
return false;
|
|
7716
7542
|
}
|
|
7717
|
-
|
|
7718
|
-
// Equivalent of `typeof` but with special handling for array and regexp.
|
|
7719
7543
|
function getPropType(propValue) {
|
|
7720
7544
|
var propType = typeof propValue;
|
|
7721
7545
|
if (Array.isArray(propValue)) {
|
|
7722
7546
|
return 'array';
|
|
7723
7547
|
}
|
|
7724
7548
|
if (propValue instanceof RegExp) {
|
|
7725
|
-
// Old webkits (at least until Android 4.0) return 'function' rather than
|
|
7726
|
-
// 'object' for typeof a RegExp. We'll normalize this here so that /bla/
|
|
7727
|
-
// passes PropTypes.object.
|
|
7728
7549
|
return 'object';
|
|
7729
7550
|
}
|
|
7730
7551
|
if (isSymbol(propType, propValue)) {
|
|
@@ -7732,9 +7553,6 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
7732
7553
|
}
|
|
7733
7554
|
return propType;
|
|
7734
7555
|
}
|
|
7735
|
-
|
|
7736
|
-
// This handles more types than `getPropType`. Only used for error messages.
|
|
7737
|
-
// See `createPrimitiveTypeChecker`.
|
|
7738
7556
|
function getPreciseType(propValue) {
|
|
7739
7557
|
if (typeof propValue === 'undefined' || propValue === null) {
|
|
7740
7558
|
return '' + propValue;
|
|
@@ -7749,9 +7567,6 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
7749
7567
|
}
|
|
7750
7568
|
return propType;
|
|
7751
7569
|
}
|
|
7752
|
-
|
|
7753
|
-
// Returns a string that is postfixed to a warning about an invalid type.
|
|
7754
|
-
// For example, "undefined" or "of type array"
|
|
7755
7570
|
function getPostfixForTypeWarning(value) {
|
|
7756
7571
|
var type = getPreciseType(value);
|
|
7757
7572
|
switch (type) {
|
|
@@ -7766,44 +7581,34 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
7766
7581
|
return type;
|
|
7767
7582
|
}
|
|
7768
7583
|
}
|
|
7769
|
-
|
|
7770
|
-
// Returns class name of the object, if any.
|
|
7771
7584
|
function getClassName(propValue) {
|
|
7772
7585
|
if (!propValue.constructor || !propValue.constructor.name) {
|
|
7773
7586
|
return ANONYMOUS;
|
|
7774
7587
|
}
|
|
7775
7588
|
return propValue.constructor.name;
|
|
7776
7589
|
}
|
|
7777
|
-
|
|
7778
7590
|
ReactPropTypes.checkPropTypes = checkPropTypes_1;
|
|
7779
7591
|
ReactPropTypes.resetWarningCache = checkPropTypes_1.resetWarningCache;
|
|
7780
7592
|
ReactPropTypes.PropTypes = ReactPropTypes;
|
|
7781
|
-
|
|
7782
7593
|
return ReactPropTypes;
|
|
7783
7594
|
};
|
|
7784
7595
|
|
|
7785
7596
|
function emptyFunction() {}
|
|
7786
7597
|
function emptyFunctionWithReset() {}
|
|
7787
7598
|
emptyFunctionWithReset.resetWarningCache = emptyFunction;
|
|
7788
|
-
|
|
7789
|
-
var factoryWithThrowingShims = function() {
|
|
7599
|
+
var factoryWithThrowingShims = function () {
|
|
7790
7600
|
function shim(props, propName, componentName, location, propFullName, secret) {
|
|
7791
7601
|
if (secret === ReactPropTypesSecret_1) {
|
|
7792
|
-
// It is still safe when called from React.
|
|
7793
7602
|
return;
|
|
7794
7603
|
}
|
|
7795
|
-
var err = new Error(
|
|
7796
|
-
'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
|
|
7797
|
-
'Use PropTypes.checkPropTypes() to call them. ' +
|
|
7798
|
-
'Read more at http://fb.me/use-check-prop-types'
|
|
7799
|
-
);
|
|
7604
|
+
var err = new Error('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');
|
|
7800
7605
|
err.name = 'Invariant Violation';
|
|
7801
7606
|
throw err;
|
|
7802
|
-
}
|
|
7607
|
+
}
|
|
7608
|
+
shim.isRequired = shim;
|
|
7803
7609
|
function getShim() {
|
|
7804
7610
|
return shim;
|
|
7805
|
-
}
|
|
7806
|
-
// Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
|
|
7611
|
+
}
|
|
7807
7612
|
var ReactPropTypes = {
|
|
7808
7613
|
array: shim,
|
|
7809
7614
|
bigint: shim,
|
|
@@ -7813,7 +7618,6 @@ var factoryWithThrowingShims = function() {
|
|
|
7813
7618
|
object: shim,
|
|
7814
7619
|
string: shim,
|
|
7815
7620
|
symbol: shim,
|
|
7816
|
-
|
|
7817
7621
|
any: shim,
|
|
7818
7622
|
arrayOf: getShim,
|
|
7819
7623
|
element: shim,
|
|
@@ -7825,55 +7629,46 @@ var factoryWithThrowingShims = function() {
|
|
|
7825
7629
|
oneOfType: getShim,
|
|
7826
7630
|
shape: getShim,
|
|
7827
7631
|
exact: getShim,
|
|
7828
|
-
|
|
7829
7632
|
checkPropTypes: emptyFunctionWithReset,
|
|
7830
7633
|
resetWarningCache: emptyFunction
|
|
7831
7634
|
};
|
|
7832
|
-
|
|
7833
7635
|
ReactPropTypes.PropTypes = ReactPropTypes;
|
|
7834
|
-
|
|
7835
7636
|
return ReactPropTypes;
|
|
7836
7637
|
};
|
|
7837
7638
|
|
|
7838
7639
|
var propTypes = createCommonjsModule(function (module) {
|
|
7839
|
-
|
|
7840
|
-
|
|
7841
|
-
|
|
7842
|
-
|
|
7843
|
-
|
|
7844
|
-
|
|
7845
|
-
|
|
7846
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
7847
|
-
var ReactIs = reactIs;
|
|
7848
|
-
|
|
7849
|
-
// By explicitly using `prop-types` you are opting into new development behavior.
|
|
7850
|
-
// http://fb.me/prop-types-in-prod
|
|
7851
|
-
var throwOnDirectAccess = true;
|
|
7852
|
-
module.exports = factoryWithTypeCheckers(ReactIs.isElement, throwOnDirectAccess);
|
|
7853
|
-
} else {
|
|
7854
|
-
// By explicitly using `prop-types` you are opting into new production behavior.
|
|
7855
|
-
// http://fb.me/prop-types-in-prod
|
|
7856
|
-
module.exports = factoryWithThrowingShims();
|
|
7857
|
-
}
|
|
7640
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
7641
|
+
var ReactIs = reactIs;
|
|
7642
|
+
var throwOnDirectAccess = true;
|
|
7643
|
+
module.exports = factoryWithTypeCheckers(ReactIs.isElement, throwOnDirectAccess);
|
|
7644
|
+
} else {
|
|
7645
|
+
module.exports = factoryWithThrowingShims();
|
|
7646
|
+
}
|
|
7858
7647
|
});
|
|
7859
7648
|
|
|
7860
|
-
|
|
7861
|
-
|
|
7862
|
-
const _iteratorSymbol = /*#__PURE__*/ typeof Symbol !== "undefined" ? (Symbol.iterator || (Symbol.iterator = Symbol("Symbol.iterator"))) : "@@iterator";
|
|
7863
|
-
|
|
7864
|
-
const _asyncIteratorSymbol = /*#__PURE__*/ typeof Symbol !== "undefined" ? (Symbol.asyncIterator || (Symbol.asyncIterator = Symbol("Symbol.asyncIterator"))) : "@@asyncIterator";
|
|
7865
|
-
|
|
7866
|
-
// Asynchronously call a function and send errors to recovery continuation
|
|
7649
|
+
const _iteratorSymbol = /*#__PURE__*/typeof Symbol !== "undefined" ? Symbol.iterator || (Symbol.iterator = Symbol("Symbol.iterator")) : "@@iterator";
|
|
7650
|
+
const _asyncIteratorSymbol = /*#__PURE__*/typeof Symbol !== "undefined" ? Symbol.asyncIterator || (Symbol.asyncIterator = Symbol("Symbol.asyncIterator")) : "@@asyncIterator";
|
|
7867
7651
|
function _catch(body, recover) {
|
|
7868
|
-
|
|
7869
|
-
|
|
7870
|
-
|
|
7871
|
-
|
|
7872
|
-
|
|
7873
|
-
|
|
7874
|
-
|
|
7875
|
-
|
|
7876
|
-
|
|
7652
|
+
try {
|
|
7653
|
+
var result = body();
|
|
7654
|
+
} catch (e) {
|
|
7655
|
+
return recover(e);
|
|
7656
|
+
}
|
|
7657
|
+
if (result && result.then) {
|
|
7658
|
+
return result.then(void 0, recover);
|
|
7659
|
+
}
|
|
7660
|
+
return result;
|
|
7661
|
+
}
|
|
7662
|
+
function _finallyRethrows(body, finalizer) {
|
|
7663
|
+
try {
|
|
7664
|
+
var result = body();
|
|
7665
|
+
} catch (e) {
|
|
7666
|
+
return finalizer(true, e);
|
|
7667
|
+
}
|
|
7668
|
+
if (result && result.then) {
|
|
7669
|
+
return result.then(finalizer.bind(null, false), finalizer.bind(null, true));
|
|
7670
|
+
}
|
|
7671
|
+
return finalizer(false, result);
|
|
7877
7672
|
}
|
|
7878
7673
|
|
|
7879
7674
|
const TYPE_LOGIN$1 = {
|
|
@@ -9262,31 +9057,6 @@ const CitizenOtp = props => {
|
|
|
9262
9057
|
});
|
|
9263
9058
|
};
|
|
9264
9059
|
|
|
9265
|
-
const _iteratorSymbol$1 = /*#__PURE__*/typeof Symbol !== "undefined" ? Symbol.iterator || (Symbol.iterator = Symbol("Symbol.iterator")) : "@@iterator";
|
|
9266
|
-
const _asyncIteratorSymbol$1 = /*#__PURE__*/typeof Symbol !== "undefined" ? Symbol.asyncIterator || (Symbol.asyncIterator = Symbol("Symbol.asyncIterator")) : "@@asyncIterator";
|
|
9267
|
-
function _catch$1(body, recover) {
|
|
9268
|
-
try {
|
|
9269
|
-
var result = body();
|
|
9270
|
-
} catch (e) {
|
|
9271
|
-
return recover(e);
|
|
9272
|
-
}
|
|
9273
|
-
if (result && result.then) {
|
|
9274
|
-
return result.then(void 0, recover);
|
|
9275
|
-
}
|
|
9276
|
-
return result;
|
|
9277
|
-
}
|
|
9278
|
-
function _finallyRethrows(body, finalizer) {
|
|
9279
|
-
try {
|
|
9280
|
-
var result = body();
|
|
9281
|
-
} catch (e) {
|
|
9282
|
-
return finalizer(true, e);
|
|
9283
|
-
}
|
|
9284
|
-
if (result && result.then) {
|
|
9285
|
-
return result.then(finalizer.bind(null, false), finalizer.bind(null, true));
|
|
9286
|
-
}
|
|
9287
|
-
return finalizer(false, result);
|
|
9288
|
-
}
|
|
9289
|
-
|
|
9290
9060
|
const configPTApproverApplication = _ref => {
|
|
9291
9061
|
var _action$assigneeRoles;
|
|
9292
9062
|
let t = _ref.t,
|
|
@@ -10035,7 +9805,7 @@ const ActionModal = _ref => {
|
|
|
10035
9805
|
if (file.size >= 5242880) {
|
|
10036
9806
|
setError(t("CS_MAXIMUM_UPLOAD_SIZE_EXCEEDED"));
|
|
10037
9807
|
} else {
|
|
10038
|
-
const _temp = _catch
|
|
9808
|
+
const _temp = _catch(function () {
|
|
10039
9809
|
return Promise.resolve(Digit.UploadServices.Filestorage("PT", file, Digit.ULBService.getStateId())).then(function (response) {
|
|
10040
9810
|
var _response$data, _response$data$files;
|
|
10041
9811
|
if ((response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : (_response$data$files = _response$data.files) === null || _response$data$files === void 0 ? void 0 : _response$data$files.length) > 0) {
|
|
@@ -10262,7 +10032,7 @@ const ActionModal$1 = _ref => {
|
|
|
10262
10032
|
if (file.size >= 5242880) {
|
|
10263
10033
|
setError(t("CS_MAXIMUM_UPLOAD_SIZE_EXCEEDED"));
|
|
10264
10034
|
} else {
|
|
10265
|
-
const _temp = _catch
|
|
10035
|
+
const _temp = _catch(function () {
|
|
10266
10036
|
return Promise.resolve(Digit.UploadServices.Filestorage("PT", file, Digit.ULBService.getStateId())).then(function (response) {
|
|
10267
10037
|
var _response$data, _response$data$files;
|
|
10268
10038
|
if ((response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : (_response$data$files = _response$data.files) === null || _response$data$files === void 0 ? void 0 : _response$data$files.length) > 0) {
|
|
@@ -10432,7 +10202,7 @@ const ActionModal$2 = _ref => {
|
|
|
10432
10202
|
if (file !== null && file !== void 0 && file.type && !allowedFileTypesRegex.test(file === null || file === void 0 ? void 0 : file.type)) {
|
|
10433
10203
|
setError(t("NOT_SUPPORTED_FILE_TYPE"));
|
|
10434
10204
|
} else {
|
|
10435
|
-
const _temp = _catch
|
|
10205
|
+
const _temp = _catch(function () {
|
|
10436
10206
|
return Promise.resolve(Digit.UploadServices.Filestorage("OBPS", file, Digit.ULBService.getStateId() || (tenantId === null || tenantId === void 0 ? void 0 : tenantId.split(".")[0]))).then(function (response) {
|
|
10437
10207
|
var _response$data, _response$data$files;
|
|
10438
10208
|
if ((response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : (_response$data$files = _response$data.files) === null || _response$data$files === void 0 ? void 0 : _response$data$files.length) > 0) {
|
|
@@ -10715,7 +10485,7 @@ const ActionModal$3 = _ref => {
|
|
|
10715
10485
|
if (file !== null && file !== void 0 && file.type && !allowedFileTypesRegex.test(file === null || file === void 0 ? void 0 : file.type)) {
|
|
10716
10486
|
setError(t("NOT_SUPPORTED_FILE_TYPE"));
|
|
10717
10487
|
} else {
|
|
10718
|
-
const _temp = _catch
|
|
10488
|
+
const _temp = _catch(function () {
|
|
10719
10489
|
return Promise.resolve(Digit.UploadServices.Filestorage("OBPS", file, Digit.ULBService.getStateId() || (tenantId === null || tenantId === void 0 ? void 0 : tenantId.split(".")[0]))).then(function (response) {
|
|
10720
10490
|
var _response$data, _response$data$files;
|
|
10721
10491
|
if ((response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : (_response$data$files = _response$data.files) === null || _response$data$files === void 0 ? void 0 : _response$data$files.length) > 0) {
|
|
@@ -10973,7 +10743,7 @@ const ActionModal$4 = _ref => {
|
|
|
10973
10743
|
if (file !== null && file !== void 0 && file.type && !allowedFileTypesRegex.test(file === null || file === void 0 ? void 0 : file.type)) {
|
|
10974
10744
|
setError(t("NOT_SUPPORTED_FILE_TYPE"));
|
|
10975
10745
|
} else {
|
|
10976
|
-
const _temp = _catch
|
|
10746
|
+
const _temp = _catch(function () {
|
|
10977
10747
|
return Promise.resolve(Digit.UploadServices.Filestorage("NOC", file, Digit.ULBService.getStateId() || (tenantId === null || tenantId === void 0 ? void 0 : tenantId.split(".")[0]))).then(function (response) {
|
|
10978
10748
|
var _response$data, _response$data$files;
|
|
10979
10749
|
if ((response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : (_response$data$files = _response$data.files) === null || _response$data$files === void 0 ? void 0 : _response$data$files.length) > 0) {
|
|
@@ -12298,7 +12068,7 @@ const ActionModal$5 = _ref => {
|
|
|
12298
12068
|
if (file !== null && file !== void 0 && file.type && !allowedFileTypesRegex.test(file === null || file === void 0 ? void 0 : file.type)) {
|
|
12299
12069
|
setError(t("NOT_SUPPORTED_FILE_TYPE"));
|
|
12300
12070
|
} else {
|
|
12301
|
-
const _temp = _catch
|
|
12071
|
+
const _temp = _catch(function () {
|
|
12302
12072
|
return Promise.resolve(Digit.UploadServices.Filestorage("WS", file, Digit.ULBService.getCurrentTenantId())).then(function (response) {
|
|
12303
12073
|
var _response$data, _response$data$files;
|
|
12304
12074
|
if ((response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : (_response$data$files = _response$data.files) === null || _response$data$files === void 0 ? void 0 : _response$data$files.length) > 0) {
|
|
@@ -12608,7 +12378,7 @@ const ActionModal$6 = _ref => {
|
|
|
12608
12378
|
if (file.size >= 5242880) {
|
|
12609
12379
|
setError(t("CS_MAXIMUM_UPLOAD_SIZE_EXCEEDED"));
|
|
12610
12380
|
} else {
|
|
12611
|
-
const _temp = _catch
|
|
12381
|
+
const _temp = _catch(function () {
|
|
12612
12382
|
return Promise.resolve(Digit.UploadServices.Filestorage("PTR", file, Digit.ULBService.getStateId())).then(function (response) {
|
|
12613
12383
|
var _response$data, _response$data$files;
|
|
12614
12384
|
if ((response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : (_response$data$files = _response$data.files) === null || _response$data$files === void 0 ? void 0 : _response$data$files.length) > 0) {
|
|
@@ -12898,7 +12668,7 @@ const ActionModal$8 = _ref => {
|
|
|
12898
12668
|
if (file.size >= 5242880) {
|
|
12899
12669
|
setError(t("CS_MAXIMUM_UPLOAD_SIZE_EXCEEDED"));
|
|
12900
12670
|
} else {
|
|
12901
|
-
const _temp = _catch
|
|
12671
|
+
const _temp = _catch(function () {
|
|
12902
12672
|
return Promise.resolve(Digit.UploadServices.Filestorage("CHB", file, tenantId)).then(function (response) {
|
|
12903
12673
|
var _response$data, _response$data$files;
|
|
12904
12674
|
if ((response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : (_response$data$files = _response$data.files) === null || _response$data$files === void 0 ? void 0 : _response$data$files.length) > 0) {
|
|
@@ -13064,7 +12834,7 @@ const ActionModal$9 = _ref => {
|
|
|
13064
12834
|
if (file.size >= 5242880) {
|
|
13065
12835
|
setError(t("CS_MAXIMUM_UPLOAD_SIZE_EXCEEDED"));
|
|
13066
12836
|
} else {
|
|
13067
|
-
const _temp = _catch
|
|
12837
|
+
const _temp = _catch(function () {
|
|
13068
12838
|
return Promise.resolve(Digit.UploadServices.Filestorage("PTR", file, Digit.ULBService.getStateId())).then(function (response) {
|
|
13069
12839
|
var _response$data, _response$data$files;
|
|
13070
12840
|
if ((response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : (_response$data$files = _response$data.files) === null || _response$data$files === void 0 ? void 0 : _response$data$files.length) > 0) {
|
|
@@ -13237,7 +13007,7 @@ const ActionModal$a = _ref => {
|
|
|
13237
13007
|
setError(t("CS_MAXIMUM_UPLOAD_SIZE_EXCEEDED"));
|
|
13238
13008
|
} else {
|
|
13239
13009
|
const _temp = _finallyRethrows(function () {
|
|
13240
|
-
return _catch
|
|
13010
|
+
return _catch(function () {
|
|
13241
13011
|
return Promise.resolve(Digit.UploadServices.Filestorage("StreetVending", file, tenantId)).then(function (response) {
|
|
13242
13012
|
var _response$data, _response$data$files;
|
|
13243
13013
|
if ((response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : (_response$data$files = _response$data.files) === null || _response$data$files === void 0 ? void 0 : _response$data$files.length) > 0) {
|
|
@@ -13523,7 +13293,7 @@ const ActionModal$b = _ref => {
|
|
|
13523
13293
|
if (file.size >= 5242880) {
|
|
13524
13294
|
setError(t("CS_MAXIMUM_UPLOAD_SIZE_EXCEEDED"));
|
|
13525
13295
|
} else {
|
|
13526
|
-
const _temp = _catch
|
|
13296
|
+
const _temp = _catch(function () {
|
|
13527
13297
|
return Promise.resolve(Digit.UploadServices.Filestorage("WT", file, tenantId)).then(function (response) {
|
|
13528
13298
|
var _response$data, _response$data$files;
|
|
13529
13299
|
if ((response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : (_response$data$files = _response$data.files) === null || _response$data$files === void 0 ? void 0 : _response$data$files.length) > 0) {
|
|
@@ -14211,7 +13981,7 @@ function SelectDocument$1(_ref) {
|
|
|
14211
13981
|
if (file !== null && file !== void 0 && file.type && !allowedFileTypesRegex.test(file === null || file === void 0 ? void 0 : file.type)) {
|
|
14212
13982
|
setError(t("NOT_SUPPORTED_FILE_TYPE"));
|
|
14213
13983
|
} else {
|
|
14214
|
-
const _temp = _catch
|
|
13984
|
+
const _temp = _catch(function () {
|
|
14215
13985
|
setUploadedFile(null);
|
|
14216
13986
|
return Promise.resolve(Digit.UploadServices.Filestorage("PT", file, Digit.ULBService.getStateId())).then(function (response) {
|
|
14217
13987
|
var _response$data, _response$data$files;
|
|
@@ -14601,7 +14371,7 @@ function PropertyDocuments(_ref) {
|
|
|
14601
14371
|
};
|
|
14602
14372
|
const forceDownload = function (url, fileName) {
|
|
14603
14373
|
try {
|
|
14604
|
-
return Promise.resolve(_catch
|
|
14374
|
+
return Promise.resolve(_catch(function () {
|
|
14605
14375
|
return Promise.resolve(fetch(url)).then(function (response) {
|
|
14606
14376
|
if (!response.ok) {
|
|
14607
14377
|
throw new Error("HTTP error! status: " + response.status);
|
|
@@ -14831,7 +14601,7 @@ function PropertyDocuments(_ref) {
|
|
|
14831
14601
|
y1: "15",
|
|
14832
14602
|
x2: "12",
|
|
14833
14603
|
y2: "3"
|
|
14834
|
-
}))), /*#__PURE__*/React__default.createElement("label", {
|
|
14604
|
+
}))), applicationStatus !== "PENDING_FOR_PAYMENT" && applicationStatus !== "WF_PENDING_FOR_PAYMENT" && /*#__PURE__*/React__default.createElement("label", {
|
|
14835
14605
|
style: {
|
|
14836
14606
|
display: "flex",
|
|
14837
14607
|
alignItems: "center",
|
|
@@ -14864,7 +14634,7 @@ function PropertyDocuments(_ref) {
|
|
|
14864
14634
|
}));
|
|
14865
14635
|
}
|
|
14866
14636
|
}
|
|
14867
|
-
}), "Check Verified"));
|
|
14637
|
+
}), t("Check Verified")));
|
|
14868
14638
|
})())
|
|
14869
14639
|
})));
|
|
14870
14640
|
};
|
|
@@ -17821,7 +17591,7 @@ const ApplicationDetails = props => {
|
|
|
17821
17591
|
const nocPrmomises = (_nocData = nocData) === null || _nocData === void 0 ? void 0 : _nocData.map(noc => {
|
|
17822
17592
|
return nocMutation === null || nocMutation === void 0 ? void 0 : nocMutation.mutateAsync(noc);
|
|
17823
17593
|
});
|
|
17824
|
-
const _temp = _catch
|
|
17594
|
+
const _temp = _catch(function () {
|
|
17825
17595
|
setIsEnableLoader(true);
|
|
17826
17596
|
return Promise.resolve(Promise.all(nocPrmomises)).then(function (values) {
|
|
17827
17597
|
values && values.map(ob => {
|
|
@@ -18677,7 +18447,7 @@ const PropertyLocationDetails = _ref => {
|
|
|
18677
18447
|
onSelect(key, data);
|
|
18678
18448
|
},
|
|
18679
18449
|
config: _extends({
|
|
18680
|
-
isCollapsible:
|
|
18450
|
+
isCollapsible: true
|
|
18681
18451
|
}, config),
|
|
18682
18452
|
isEdit: isEdit,
|
|
18683
18453
|
showZRO: hideZRO ? false : true,
|
|
@@ -20365,7 +20135,7 @@ const componentsToRegister = {
|
|
|
20365
20135
|
CPTPropertySearchResults: SearchPTID$1,
|
|
20366
20136
|
CPTSearchProperty: SearchProperty$1,
|
|
20367
20137
|
CPTPropertyAssemblyDetails: PropertyAssemblyDetails,
|
|
20368
|
-
|
|
20138
|
+
PropertyLocationDetails,
|
|
20369
20139
|
CPTPropertyOwnerDetails: PropertyOwnerDetails,
|
|
20370
20140
|
PropertyWaterConnection,
|
|
20371
20141
|
CPTKnowYourProperty: KnowYourProperty,
|