@djb25/digit-ui-module-ws 1.0.0 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +586 -380
- package/dist/index.modern.js.map +1 -1
- package/package.json +2 -2
package/dist/index.modern.js
CHANGED
|
@@ -21540,9 +21540,6 @@ const BulkBillSearch = ({
|
|
|
21540
21540
|
};
|
|
21541
21541
|
|
|
21542
21542
|
const WSCard = () => {
|
|
21543
|
-
if (!Digit.Utils.wsAccess()) {
|
|
21544
|
-
return null;
|
|
21545
|
-
}
|
|
21546
21543
|
const {
|
|
21547
21544
|
t
|
|
21548
21545
|
} = useTranslation();
|
|
@@ -21619,9 +21616,6 @@ const WSCard = () => {
|
|
|
21619
21616
|
};
|
|
21620
21617
|
|
|
21621
21618
|
const SWCard = () => {
|
|
21622
|
-
if (!Digit.Utils.swAccess()) {
|
|
21623
|
-
return null;
|
|
21624
|
-
}
|
|
21625
21619
|
const {
|
|
21626
21620
|
t
|
|
21627
21621
|
} = useTranslation();
|
|
@@ -23413,394 +23407,385 @@ const config = [{
|
|
|
23413
23407
|
}]
|
|
23414
23408
|
}];
|
|
23415
23409
|
|
|
23416
|
-
|
|
23417
|
-
|
|
23418
|
-
|
|
23419
|
-
|
|
23420
|
-
|
|
23421
|
-
|
|
23422
|
-
|
|
23423
|
-
|
|
23424
|
-
|
|
23425
|
-
|
|
23426
|
-
|
|
23427
|
-
|
|
23428
|
-
|
|
23429
|
-
|
|
23430
|
-
|
|
23431
|
-
|
|
23432
|
-
|
|
23433
|
-
|
|
23434
|
-
|
|
23435
|
-
|
|
23436
|
-
|
|
23437
|
-
|
|
23438
|
-
|
|
23439
|
-
|
|
23440
|
-
|
|
23441
|
-
|
|
23442
|
-
|
|
23443
|
-
|
|
23444
|
-
|
|
23445
|
-
|
|
23446
|
-
|
|
23447
|
-
|
|
23410
|
+
/** @license React v16.13.1
|
|
23411
|
+
* react-is.production.min.js
|
|
23412
|
+
*
|
|
23413
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
23414
|
+
*
|
|
23415
|
+
* This source code is licensed under the MIT license found in the
|
|
23416
|
+
* LICENSE file in the root directory of this source tree.
|
|
23417
|
+
*/
|
|
23418
|
+
var b="function"===typeof Symbol&&Symbol.for,c=b?Symbol.for("react.element"):60103,d=b?Symbol.for("react.portal"):60106,e=b?Symbol.for("react.fragment"):60107,f=b?Symbol.for("react.strict_mode"):60108,g=b?Symbol.for("react.profiler"):60114,h=b?Symbol.for("react.provider"):60109,k=b?Symbol.for("react.context"):60110,l=b?Symbol.for("react.async_mode"):60111,m=b?Symbol.for("react.concurrent_mode"):60111,n$1=b?Symbol.for("react.forward_ref"):60112,p=b?Symbol.for("react.suspense"):60113,q=b?
|
|
23419
|
+
Symbol.for("react.suspense_list"):60120,r=b?Symbol.for("react.memo"):60115,t=b?Symbol.for("react.lazy"):60116,v=b?Symbol.for("react.block"):60121,w=b?Symbol.for("react.fundamental"):60117,x=b?Symbol.for("react.responder"):60118,y=b?Symbol.for("react.scope"):60119;
|
|
23420
|
+
function z(a){if("object"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n$1:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}var AsyncMode=l;var ConcurrentMode=m;var ContextConsumer=k;var ContextProvider=h;var Element=c;var ForwardRef=n$1;var Fragment=e;var Lazy=t;var Memo=r;var Portal=d;
|
|
23421
|
+
var Profiler=g;var StrictMode=f;var Suspense=p;var isAsyncMode=function(a){return A(a)||z(a)===l};var isConcurrentMode=A;var isContextConsumer=function(a){return z(a)===k};var isContextProvider=function(a){return z(a)===h};var isElement=function(a){return "object"===typeof a&&null!==a&&a.$$typeof===c};var isForwardRef=function(a){return z(a)===n$1};var isFragment=function(a){return z(a)===e};var isLazy=function(a){return z(a)===t};
|
|
23422
|
+
var isMemo=function(a){return z(a)===r};var isPortal=function(a){return z(a)===d};var isProfiler=function(a){return z(a)===g};var isStrictMode=function(a){return z(a)===f};var isSuspense=function(a){return z(a)===p};
|
|
23423
|
+
var isValidElementType=function(a){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$1||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)};var typeOf=z;
|
|
23424
|
+
|
|
23425
|
+
var reactIs_production_min = {
|
|
23426
|
+
AsyncMode: AsyncMode,
|
|
23427
|
+
ConcurrentMode: ConcurrentMode,
|
|
23428
|
+
ContextConsumer: ContextConsumer,
|
|
23429
|
+
ContextProvider: ContextProvider,
|
|
23430
|
+
Element: Element,
|
|
23431
|
+
ForwardRef: ForwardRef,
|
|
23432
|
+
Fragment: Fragment,
|
|
23433
|
+
Lazy: Lazy,
|
|
23434
|
+
Memo: Memo,
|
|
23435
|
+
Portal: Portal,
|
|
23436
|
+
Profiler: Profiler,
|
|
23437
|
+
StrictMode: StrictMode,
|
|
23438
|
+
Suspense: Suspense,
|
|
23439
|
+
isAsyncMode: isAsyncMode,
|
|
23440
|
+
isConcurrentMode: isConcurrentMode,
|
|
23441
|
+
isContextConsumer: isContextConsumer,
|
|
23442
|
+
isContextProvider: isContextProvider,
|
|
23443
|
+
isElement: isElement,
|
|
23444
|
+
isForwardRef: isForwardRef,
|
|
23445
|
+
isFragment: isFragment,
|
|
23446
|
+
isLazy: isLazy,
|
|
23447
|
+
isMemo: isMemo,
|
|
23448
|
+
isPortal: isPortal,
|
|
23449
|
+
isProfiler: isProfiler,
|
|
23450
|
+
isStrictMode: isStrictMode,
|
|
23451
|
+
isSuspense: isSuspense,
|
|
23452
|
+
isValidElementType: isValidElementType,
|
|
23453
|
+
typeOf: typeOf
|
|
23454
|
+
};
|
|
23455
|
+
|
|
23456
|
+
var reactIs_development = createCommonjsModule(function (module, exports) {
|
|
23457
|
+
|
|
23458
|
+
|
|
23459
|
+
|
|
23460
|
+
if (process.env.NODE_ENV !== "production") {
|
|
23461
|
+
(function() {
|
|
23462
|
+
|
|
23463
|
+
// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
|
|
23464
|
+
// nor polyfill, then a plain number is used for performance.
|
|
23465
|
+
var hasSymbol = typeof Symbol === 'function' && Symbol.for;
|
|
23466
|
+
var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
|
|
23467
|
+
var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
|
|
23468
|
+
var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
|
|
23469
|
+
var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
|
|
23470
|
+
var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
|
|
23471
|
+
var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
|
|
23472
|
+
var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
|
|
23473
|
+
// (unstable) APIs that have been removed. Can we remove the symbols?
|
|
23474
|
+
|
|
23475
|
+
var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
|
|
23476
|
+
var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
|
|
23477
|
+
var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
|
|
23478
|
+
var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
|
|
23479
|
+
var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
|
|
23480
|
+
var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
|
|
23481
|
+
var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
|
|
23482
|
+
var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
|
|
23483
|
+
var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
|
|
23484
|
+
var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
|
|
23485
|
+
var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
|
|
23486
|
+
|
|
23487
|
+
function isValidElementType(type) {
|
|
23488
|
+
return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
23489
|
+
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);
|
|
23490
|
+
}
|
|
23491
|
+
|
|
23492
|
+
function typeOf(object) {
|
|
23493
|
+
if (typeof object === 'object' && object !== null) {
|
|
23494
|
+
var $$typeof = object.$$typeof;
|
|
23495
|
+
|
|
23496
|
+
switch ($$typeof) {
|
|
23497
|
+
case REACT_ELEMENT_TYPE:
|
|
23498
|
+
var type = object.type;
|
|
23499
|
+
|
|
23500
|
+
switch (type) {
|
|
23501
|
+
case REACT_ASYNC_MODE_TYPE:
|
|
23502
|
+
case REACT_CONCURRENT_MODE_TYPE:
|
|
23503
|
+
case REACT_FRAGMENT_TYPE:
|
|
23504
|
+
case REACT_PROFILER_TYPE:
|
|
23505
|
+
case REACT_STRICT_MODE_TYPE:
|
|
23506
|
+
case REACT_SUSPENSE_TYPE:
|
|
23507
|
+
return type;
|
|
23508
|
+
|
|
23448
23509
|
default:
|
|
23449
|
-
|
|
23450
|
-
|
|
23451
|
-
|
|
23452
|
-
case
|
|
23453
|
-
case
|
|
23454
|
-
case
|
|
23455
|
-
|
|
23510
|
+
var $$typeofType = type && type.$$typeof;
|
|
23511
|
+
|
|
23512
|
+
switch ($$typeofType) {
|
|
23513
|
+
case REACT_CONTEXT_TYPE:
|
|
23514
|
+
case REACT_FORWARD_REF_TYPE:
|
|
23515
|
+
case REACT_LAZY_TYPE:
|
|
23516
|
+
case REACT_MEMO_TYPE:
|
|
23517
|
+
case REACT_PROVIDER_TYPE:
|
|
23518
|
+
return $$typeofType;
|
|
23519
|
+
|
|
23456
23520
|
default:
|
|
23457
|
-
return
|
|
23521
|
+
return $$typeof;
|
|
23458
23522
|
}
|
|
23523
|
+
|
|
23459
23524
|
}
|
|
23460
|
-
|
|
23461
|
-
|
|
23525
|
+
|
|
23526
|
+
case REACT_PORTAL_TYPE:
|
|
23527
|
+
return $$typeof;
|
|
23462
23528
|
}
|
|
23463
23529
|
}
|
|
23464
|
-
}
|
|
23465
|
-
function A(a) {
|
|
23466
|
-
return z(a) === m;
|
|
23467
|
-
}
|
|
23468
|
-
var AsyncMode = l;
|
|
23469
|
-
var ConcurrentMode = m;
|
|
23470
|
-
var ContextConsumer = k;
|
|
23471
|
-
var ContextProvider = h;
|
|
23472
|
-
var Element = c;
|
|
23473
|
-
var ForwardRef = n$1;
|
|
23474
|
-
var Fragment = e;
|
|
23475
|
-
var Lazy = t;
|
|
23476
|
-
var Memo = r;
|
|
23477
|
-
var Portal = d;
|
|
23478
|
-
var Profiler = g;
|
|
23479
|
-
var StrictMode = f;
|
|
23480
|
-
var Suspense = p;
|
|
23481
|
-
var isAsyncMode = function (a) {
|
|
23482
|
-
return A(a) || z(a) === l;
|
|
23483
|
-
};
|
|
23484
|
-
var isConcurrentMode = A;
|
|
23485
|
-
var isContextConsumer = function (a) {
|
|
23486
|
-
return z(a) === k;
|
|
23487
|
-
};
|
|
23488
|
-
var isContextProvider = function (a) {
|
|
23489
|
-
return z(a) === h;
|
|
23490
|
-
};
|
|
23491
|
-
var isElement = function (a) {
|
|
23492
|
-
return "object" === typeof a && null !== a && a.$$typeof === c;
|
|
23493
|
-
};
|
|
23494
|
-
var isForwardRef = function (a) {
|
|
23495
|
-
return z(a) === n$1;
|
|
23496
|
-
};
|
|
23497
|
-
var isFragment = function (a) {
|
|
23498
|
-
return z(a) === e;
|
|
23499
|
-
};
|
|
23500
|
-
var isLazy = function (a) {
|
|
23501
|
-
return z(a) === t;
|
|
23502
|
-
};
|
|
23503
|
-
var isMemo = function (a) {
|
|
23504
|
-
return z(a) === r;
|
|
23505
|
-
};
|
|
23506
|
-
var isPortal = function (a) {
|
|
23507
|
-
return z(a) === d;
|
|
23508
|
-
};
|
|
23509
|
-
var isProfiler = function (a) {
|
|
23510
|
-
return z(a) === g;
|
|
23511
|
-
};
|
|
23512
|
-
var isStrictMode = function (a) {
|
|
23513
|
-
return z(a) === f;
|
|
23514
|
-
};
|
|
23515
|
-
var isSuspense = function (a) {
|
|
23516
|
-
return z(a) === p;
|
|
23517
|
-
};
|
|
23518
|
-
var isValidElementType = function (a) {
|
|
23519
|
-
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$1 || a.$$typeof === w || a.$$typeof === x || a.$$typeof === y || a.$$typeof === v);
|
|
23520
|
-
};
|
|
23521
|
-
var typeOf = z;
|
|
23522
|
-
var reactIs_production_min = {
|
|
23523
|
-
AsyncMode: AsyncMode,
|
|
23524
|
-
ConcurrentMode: ConcurrentMode,
|
|
23525
|
-
ContextConsumer: ContextConsumer,
|
|
23526
|
-
ContextProvider: ContextProvider,
|
|
23527
|
-
Element: Element,
|
|
23528
|
-
ForwardRef: ForwardRef,
|
|
23529
|
-
Fragment: Fragment,
|
|
23530
|
-
Lazy: Lazy,
|
|
23531
|
-
Memo: Memo,
|
|
23532
|
-
Portal: Portal,
|
|
23533
|
-
Profiler: Profiler,
|
|
23534
|
-
StrictMode: StrictMode,
|
|
23535
|
-
Suspense: Suspense,
|
|
23536
|
-
isAsyncMode: isAsyncMode,
|
|
23537
|
-
isConcurrentMode: isConcurrentMode,
|
|
23538
|
-
isContextConsumer: isContextConsumer,
|
|
23539
|
-
isContextProvider: isContextProvider,
|
|
23540
|
-
isElement: isElement,
|
|
23541
|
-
isForwardRef: isForwardRef,
|
|
23542
|
-
isFragment: isFragment,
|
|
23543
|
-
isLazy: isLazy,
|
|
23544
|
-
isMemo: isMemo,
|
|
23545
|
-
isPortal: isPortal,
|
|
23546
|
-
isProfiler: isProfiler,
|
|
23547
|
-
isStrictMode: isStrictMode,
|
|
23548
|
-
isSuspense: isSuspense,
|
|
23549
|
-
isValidElementType: isValidElementType,
|
|
23550
|
-
typeOf: typeOf
|
|
23551
|
-
};
|
|
23552
23530
|
|
|
23553
|
-
|
|
23531
|
+
return undefined;
|
|
23532
|
+
} // AsyncMode is deprecated along with isAsyncMode
|
|
23554
23533
|
|
|
23555
|
-
|
|
23556
|
-
|
|
23557
|
-
|
|
23558
|
-
|
|
23559
|
-
|
|
23560
|
-
|
|
23561
|
-
|
|
23562
|
-
|
|
23563
|
-
|
|
23564
|
-
|
|
23565
|
-
|
|
23566
|
-
|
|
23567
|
-
|
|
23568
|
-
|
|
23569
|
-
|
|
23570
|
-
|
|
23571
|
-
|
|
23572
|
-
|
|
23573
|
-
|
|
23574
|
-
|
|
23575
|
-
|
|
23576
|
-
|
|
23577
|
-
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);
|
|
23578
|
-
}
|
|
23579
|
-
function typeOf(object) {
|
|
23580
|
-
if (typeof object === 'object' && object !== null) {
|
|
23581
|
-
var $$typeof = object.$$typeof;
|
|
23582
|
-
switch ($$typeof) {
|
|
23583
|
-
case REACT_ELEMENT_TYPE:
|
|
23584
|
-
var type = object.type;
|
|
23585
|
-
switch (type) {
|
|
23586
|
-
case REACT_ASYNC_MODE_TYPE:
|
|
23587
|
-
case REACT_CONCURRENT_MODE_TYPE:
|
|
23588
|
-
case REACT_FRAGMENT_TYPE:
|
|
23589
|
-
case REACT_PROFILER_TYPE:
|
|
23590
|
-
case REACT_STRICT_MODE_TYPE:
|
|
23591
|
-
case REACT_SUSPENSE_TYPE:
|
|
23592
|
-
return type;
|
|
23593
|
-
default:
|
|
23594
|
-
var $$typeofType = type && type.$$typeof;
|
|
23595
|
-
switch ($$typeofType) {
|
|
23596
|
-
case REACT_CONTEXT_TYPE:
|
|
23597
|
-
case REACT_FORWARD_REF_TYPE:
|
|
23598
|
-
case REACT_LAZY_TYPE:
|
|
23599
|
-
case REACT_MEMO_TYPE:
|
|
23600
|
-
case REACT_PROVIDER_TYPE:
|
|
23601
|
-
return $$typeofType;
|
|
23602
|
-
default:
|
|
23603
|
-
return $$typeof;
|
|
23604
|
-
}
|
|
23605
|
-
}
|
|
23606
|
-
case REACT_PORTAL_TYPE:
|
|
23607
|
-
return $$typeof;
|
|
23608
|
-
}
|
|
23609
|
-
}
|
|
23610
|
-
return undefined;
|
|
23611
|
-
}
|
|
23612
|
-
var AsyncMode = REACT_ASYNC_MODE_TYPE;
|
|
23613
|
-
var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
|
|
23614
|
-
var ContextConsumer = REACT_CONTEXT_TYPE;
|
|
23615
|
-
var ContextProvider = REACT_PROVIDER_TYPE;
|
|
23616
|
-
var Element = REACT_ELEMENT_TYPE;
|
|
23617
|
-
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
23618
|
-
var Fragment = REACT_FRAGMENT_TYPE;
|
|
23619
|
-
var Lazy = REACT_LAZY_TYPE;
|
|
23620
|
-
var Memo = REACT_MEMO_TYPE;
|
|
23621
|
-
var Portal = REACT_PORTAL_TYPE;
|
|
23622
|
-
var Profiler = REACT_PROFILER_TYPE;
|
|
23623
|
-
var StrictMode = REACT_STRICT_MODE_TYPE;
|
|
23624
|
-
var Suspense = REACT_SUSPENSE_TYPE;
|
|
23625
|
-
var hasWarnedAboutDeprecatedIsAsyncMode = false;
|
|
23626
|
-
function isAsyncMode(object) {
|
|
23627
|
-
{
|
|
23628
|
-
if (!hasWarnedAboutDeprecatedIsAsyncMode) {
|
|
23629
|
-
hasWarnedAboutDeprecatedIsAsyncMode = true;
|
|
23630
|
-
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.');
|
|
23631
|
-
}
|
|
23632
|
-
}
|
|
23633
|
-
return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
|
|
23634
|
-
}
|
|
23635
|
-
function isConcurrentMode(object) {
|
|
23636
|
-
return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
|
|
23637
|
-
}
|
|
23638
|
-
function isContextConsumer(object) {
|
|
23639
|
-
return typeOf(object) === REACT_CONTEXT_TYPE;
|
|
23640
|
-
}
|
|
23641
|
-
function isContextProvider(object) {
|
|
23642
|
-
return typeOf(object) === REACT_PROVIDER_TYPE;
|
|
23643
|
-
}
|
|
23644
|
-
function isElement(object) {
|
|
23645
|
-
return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
23646
|
-
}
|
|
23647
|
-
function isForwardRef(object) {
|
|
23648
|
-
return typeOf(object) === REACT_FORWARD_REF_TYPE;
|
|
23649
|
-
}
|
|
23650
|
-
function isFragment(object) {
|
|
23651
|
-
return typeOf(object) === REACT_FRAGMENT_TYPE;
|
|
23652
|
-
}
|
|
23653
|
-
function isLazy(object) {
|
|
23654
|
-
return typeOf(object) === REACT_LAZY_TYPE;
|
|
23655
|
-
}
|
|
23656
|
-
function isMemo(object) {
|
|
23657
|
-
return typeOf(object) === REACT_MEMO_TYPE;
|
|
23658
|
-
}
|
|
23659
|
-
function isPortal(object) {
|
|
23660
|
-
return typeOf(object) === REACT_PORTAL_TYPE;
|
|
23661
|
-
}
|
|
23662
|
-
function isProfiler(object) {
|
|
23663
|
-
return typeOf(object) === REACT_PROFILER_TYPE;
|
|
23664
|
-
}
|
|
23665
|
-
function isStrictMode(object) {
|
|
23666
|
-
return typeOf(object) === REACT_STRICT_MODE_TYPE;
|
|
23667
|
-
}
|
|
23668
|
-
function isSuspense(object) {
|
|
23669
|
-
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
|
23670
|
-
}
|
|
23671
|
-
exports.AsyncMode = AsyncMode;
|
|
23672
|
-
exports.ConcurrentMode = ConcurrentMode;
|
|
23673
|
-
exports.ContextConsumer = ContextConsumer;
|
|
23674
|
-
exports.ContextProvider = ContextProvider;
|
|
23675
|
-
exports.Element = Element;
|
|
23676
|
-
exports.ForwardRef = ForwardRef;
|
|
23677
|
-
exports.Fragment = Fragment;
|
|
23678
|
-
exports.Lazy = Lazy;
|
|
23679
|
-
exports.Memo = Memo;
|
|
23680
|
-
exports.Portal = Portal;
|
|
23681
|
-
exports.Profiler = Profiler;
|
|
23682
|
-
exports.StrictMode = StrictMode;
|
|
23683
|
-
exports.Suspense = Suspense;
|
|
23684
|
-
exports.isAsyncMode = isAsyncMode;
|
|
23685
|
-
exports.isConcurrentMode = isConcurrentMode;
|
|
23686
|
-
exports.isContextConsumer = isContextConsumer;
|
|
23687
|
-
exports.isContextProvider = isContextProvider;
|
|
23688
|
-
exports.isElement = isElement;
|
|
23689
|
-
exports.isForwardRef = isForwardRef;
|
|
23690
|
-
exports.isFragment = isFragment;
|
|
23691
|
-
exports.isLazy = isLazy;
|
|
23692
|
-
exports.isMemo = isMemo;
|
|
23693
|
-
exports.isPortal = isPortal;
|
|
23694
|
-
exports.isProfiler = isProfiler;
|
|
23695
|
-
exports.isStrictMode = isStrictMode;
|
|
23696
|
-
exports.isSuspense = isSuspense;
|
|
23697
|
-
exports.isValidElementType = isValidElementType;
|
|
23698
|
-
exports.typeOf = typeOf;
|
|
23699
|
-
})();
|
|
23534
|
+
var AsyncMode = REACT_ASYNC_MODE_TYPE;
|
|
23535
|
+
var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
|
|
23536
|
+
var ContextConsumer = REACT_CONTEXT_TYPE;
|
|
23537
|
+
var ContextProvider = REACT_PROVIDER_TYPE;
|
|
23538
|
+
var Element = REACT_ELEMENT_TYPE;
|
|
23539
|
+
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
23540
|
+
var Fragment = REACT_FRAGMENT_TYPE;
|
|
23541
|
+
var Lazy = REACT_LAZY_TYPE;
|
|
23542
|
+
var Memo = REACT_MEMO_TYPE;
|
|
23543
|
+
var Portal = REACT_PORTAL_TYPE;
|
|
23544
|
+
var Profiler = REACT_PROFILER_TYPE;
|
|
23545
|
+
var StrictMode = REACT_STRICT_MODE_TYPE;
|
|
23546
|
+
var Suspense = REACT_SUSPENSE_TYPE;
|
|
23547
|
+
var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
|
|
23548
|
+
|
|
23549
|
+
function isAsyncMode(object) {
|
|
23550
|
+
{
|
|
23551
|
+
if (!hasWarnedAboutDeprecatedIsAsyncMode) {
|
|
23552
|
+
hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
|
|
23553
|
+
|
|
23554
|
+
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.');
|
|
23555
|
+
}
|
|
23700
23556
|
}
|
|
23557
|
+
|
|
23558
|
+
return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
|
|
23559
|
+
}
|
|
23560
|
+
function isConcurrentMode(object) {
|
|
23561
|
+
return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
|
|
23562
|
+
}
|
|
23563
|
+
function isContextConsumer(object) {
|
|
23564
|
+
return typeOf(object) === REACT_CONTEXT_TYPE;
|
|
23565
|
+
}
|
|
23566
|
+
function isContextProvider(object) {
|
|
23567
|
+
return typeOf(object) === REACT_PROVIDER_TYPE;
|
|
23568
|
+
}
|
|
23569
|
+
function isElement(object) {
|
|
23570
|
+
return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
23571
|
+
}
|
|
23572
|
+
function isForwardRef(object) {
|
|
23573
|
+
return typeOf(object) === REACT_FORWARD_REF_TYPE;
|
|
23574
|
+
}
|
|
23575
|
+
function isFragment(object) {
|
|
23576
|
+
return typeOf(object) === REACT_FRAGMENT_TYPE;
|
|
23577
|
+
}
|
|
23578
|
+
function isLazy(object) {
|
|
23579
|
+
return typeOf(object) === REACT_LAZY_TYPE;
|
|
23580
|
+
}
|
|
23581
|
+
function isMemo(object) {
|
|
23582
|
+
return typeOf(object) === REACT_MEMO_TYPE;
|
|
23583
|
+
}
|
|
23584
|
+
function isPortal(object) {
|
|
23585
|
+
return typeOf(object) === REACT_PORTAL_TYPE;
|
|
23586
|
+
}
|
|
23587
|
+
function isProfiler(object) {
|
|
23588
|
+
return typeOf(object) === REACT_PROFILER_TYPE;
|
|
23589
|
+
}
|
|
23590
|
+
function isStrictMode(object) {
|
|
23591
|
+
return typeOf(object) === REACT_STRICT_MODE_TYPE;
|
|
23592
|
+
}
|
|
23593
|
+
function isSuspense(object) {
|
|
23594
|
+
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
|
23595
|
+
}
|
|
23596
|
+
|
|
23597
|
+
exports.AsyncMode = AsyncMode;
|
|
23598
|
+
exports.ConcurrentMode = ConcurrentMode;
|
|
23599
|
+
exports.ContextConsumer = ContextConsumer;
|
|
23600
|
+
exports.ContextProvider = ContextProvider;
|
|
23601
|
+
exports.Element = Element;
|
|
23602
|
+
exports.ForwardRef = ForwardRef;
|
|
23603
|
+
exports.Fragment = Fragment;
|
|
23604
|
+
exports.Lazy = Lazy;
|
|
23605
|
+
exports.Memo = Memo;
|
|
23606
|
+
exports.Portal = Portal;
|
|
23607
|
+
exports.Profiler = Profiler;
|
|
23608
|
+
exports.StrictMode = StrictMode;
|
|
23609
|
+
exports.Suspense = Suspense;
|
|
23610
|
+
exports.isAsyncMode = isAsyncMode;
|
|
23611
|
+
exports.isConcurrentMode = isConcurrentMode;
|
|
23612
|
+
exports.isContextConsumer = isContextConsumer;
|
|
23613
|
+
exports.isContextProvider = isContextProvider;
|
|
23614
|
+
exports.isElement = isElement;
|
|
23615
|
+
exports.isForwardRef = isForwardRef;
|
|
23616
|
+
exports.isFragment = isFragment;
|
|
23617
|
+
exports.isLazy = isLazy;
|
|
23618
|
+
exports.isMemo = isMemo;
|
|
23619
|
+
exports.isPortal = isPortal;
|
|
23620
|
+
exports.isProfiler = isProfiler;
|
|
23621
|
+
exports.isStrictMode = isStrictMode;
|
|
23622
|
+
exports.isSuspense = isSuspense;
|
|
23623
|
+
exports.isValidElementType = isValidElementType;
|
|
23624
|
+
exports.typeOf = typeOf;
|
|
23625
|
+
})();
|
|
23626
|
+
}
|
|
23701
23627
|
});
|
|
23702
23628
|
|
|
23703
23629
|
var reactIs = createCommonjsModule(function (module) {
|
|
23704
23630
|
|
|
23705
|
-
|
|
23706
|
-
|
|
23707
|
-
|
|
23708
|
-
|
|
23709
|
-
|
|
23631
|
+
if (process.env.NODE_ENV === 'production') {
|
|
23632
|
+
module.exports = reactIs_production_min;
|
|
23633
|
+
} else {
|
|
23634
|
+
module.exports = reactIs_development;
|
|
23635
|
+
}
|
|
23710
23636
|
});
|
|
23711
23637
|
|
|
23638
|
+
/*
|
|
23639
|
+
object-assign
|
|
23640
|
+
(c) Sindre Sorhus
|
|
23641
|
+
@license MIT
|
|
23642
|
+
*/
|
|
23643
|
+
/* eslint-disable no-unused-vars */
|
|
23712
23644
|
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
|
|
23713
23645
|
var hasOwnProperty$a = Object.prototype.hasOwnProperty;
|
|
23714
23646
|
var propIsEnumerable = Object.prototype.propertyIsEnumerable;
|
|
23647
|
+
|
|
23715
23648
|
function toObject(val) {
|
|
23716
|
-
|
|
23717
|
-
|
|
23718
|
-
|
|
23719
|
-
|
|
23649
|
+
if (val === null || val === undefined) {
|
|
23650
|
+
throw new TypeError('Object.assign cannot be called with null or undefined');
|
|
23651
|
+
}
|
|
23652
|
+
|
|
23653
|
+
return Object(val);
|
|
23720
23654
|
}
|
|
23655
|
+
|
|
23721
23656
|
function shouldUseNative() {
|
|
23722
|
-
|
|
23723
|
-
|
|
23724
|
-
|
|
23725
|
-
|
|
23726
|
-
|
|
23727
|
-
|
|
23728
|
-
|
|
23729
|
-
|
|
23730
|
-
|
|
23731
|
-
|
|
23732
|
-
|
|
23733
|
-
|
|
23734
|
-
|
|
23735
|
-
|
|
23736
|
-
|
|
23737
|
-
|
|
23738
|
-
|
|
23739
|
-
|
|
23740
|
-
|
|
23741
|
-
|
|
23742
|
-
|
|
23743
|
-
|
|
23744
|
-
|
|
23745
|
-
|
|
23746
|
-
|
|
23747
|
-
|
|
23748
|
-
|
|
23749
|
-
|
|
23750
|
-
|
|
23751
|
-
|
|
23657
|
+
try {
|
|
23658
|
+
if (!Object.assign) {
|
|
23659
|
+
return false;
|
|
23660
|
+
}
|
|
23661
|
+
|
|
23662
|
+
// Detect buggy property enumeration order in older V8 versions.
|
|
23663
|
+
|
|
23664
|
+
// https://bugs.chromium.org/p/v8/issues/detail?id=4118
|
|
23665
|
+
var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
|
|
23666
|
+
test1[5] = 'de';
|
|
23667
|
+
if (Object.getOwnPropertyNames(test1)[0] === '5') {
|
|
23668
|
+
return false;
|
|
23669
|
+
}
|
|
23670
|
+
|
|
23671
|
+
// https://bugs.chromium.org/p/v8/issues/detail?id=3056
|
|
23672
|
+
var test2 = {};
|
|
23673
|
+
for (var i = 0; i < 10; i++) {
|
|
23674
|
+
test2['_' + String.fromCharCode(i)] = i;
|
|
23675
|
+
}
|
|
23676
|
+
var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
|
|
23677
|
+
return test2[n];
|
|
23678
|
+
});
|
|
23679
|
+
if (order2.join('') !== '0123456789') {
|
|
23680
|
+
return false;
|
|
23681
|
+
}
|
|
23682
|
+
|
|
23683
|
+
// https://bugs.chromium.org/p/v8/issues/detail?id=3056
|
|
23684
|
+
var test3 = {};
|
|
23685
|
+
'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
|
|
23686
|
+
test3[letter] = letter;
|
|
23687
|
+
});
|
|
23688
|
+
if (Object.keys(Object.assign({}, test3)).join('') !==
|
|
23689
|
+
'abcdefghijklmnopqrst') {
|
|
23690
|
+
return false;
|
|
23691
|
+
}
|
|
23692
|
+
|
|
23693
|
+
return true;
|
|
23694
|
+
} catch (err) {
|
|
23695
|
+
// We don't expect any of the above to throw, but better to be safe.
|
|
23696
|
+
return false;
|
|
23697
|
+
}
|
|
23752
23698
|
}
|
|
23699
|
+
|
|
23753
23700
|
var objectAssign = shouldUseNative() ? Object.assign : function (target, source) {
|
|
23754
|
-
|
|
23755
|
-
|
|
23756
|
-
|
|
23757
|
-
|
|
23758
|
-
|
|
23759
|
-
|
|
23760
|
-
|
|
23761
|
-
|
|
23762
|
-
|
|
23763
|
-
|
|
23764
|
-
|
|
23765
|
-
|
|
23766
|
-
|
|
23767
|
-
|
|
23768
|
-
|
|
23769
|
-
|
|
23770
|
-
|
|
23771
|
-
|
|
23772
|
-
|
|
23773
|
-
|
|
23774
|
-
}
|
|
23701
|
+
var from;
|
|
23702
|
+
var to = toObject(target);
|
|
23703
|
+
var symbols;
|
|
23704
|
+
|
|
23705
|
+
for (var s = 1; s < arguments.length; s++) {
|
|
23706
|
+
from = Object(arguments[s]);
|
|
23707
|
+
|
|
23708
|
+
for (var key in from) {
|
|
23709
|
+
if (hasOwnProperty$a.call(from, key)) {
|
|
23710
|
+
to[key] = from[key];
|
|
23711
|
+
}
|
|
23712
|
+
}
|
|
23713
|
+
|
|
23714
|
+
if (getOwnPropertySymbols) {
|
|
23715
|
+
symbols = getOwnPropertySymbols(from);
|
|
23716
|
+
for (var i = 0; i < symbols.length; i++) {
|
|
23717
|
+
if (propIsEnumerable.call(from, symbols[i])) {
|
|
23718
|
+
to[symbols[i]] = from[symbols[i]];
|
|
23719
|
+
}
|
|
23720
|
+
}
|
|
23721
|
+
}
|
|
23722
|
+
}
|
|
23723
|
+
|
|
23724
|
+
return to;
|
|
23725
|
+
};
|
|
23726
|
+
|
|
23727
|
+
/**
|
|
23728
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
23729
|
+
*
|
|
23730
|
+
* This source code is licensed under the MIT license found in the
|
|
23731
|
+
* LICENSE file in the root directory of this source tree.
|
|
23732
|
+
*/
|
|
23775
23733
|
|
|
23776
23734
|
var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
|
|
23735
|
+
|
|
23777
23736
|
var ReactPropTypesSecret_1 = ReactPropTypesSecret;
|
|
23778
23737
|
|
|
23779
23738
|
var has = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
23780
23739
|
|
|
23781
|
-
var printWarning = function
|
|
23740
|
+
var printWarning = function() {};
|
|
23741
|
+
|
|
23782
23742
|
if (process.env.NODE_ENV !== 'production') {
|
|
23783
23743
|
var ReactPropTypesSecret$1 = ReactPropTypesSecret_1;
|
|
23784
23744
|
var loggedTypeFailures = {};
|
|
23785
23745
|
var has$1 = has;
|
|
23786
|
-
|
|
23746
|
+
|
|
23747
|
+
printWarning = function(text) {
|
|
23787
23748
|
var message = 'Warning: ' + text;
|
|
23788
23749
|
if (typeof console !== 'undefined') {
|
|
23789
23750
|
console.error(message);
|
|
23790
23751
|
}
|
|
23791
23752
|
try {
|
|
23753
|
+
// --- Welcome to debugging React ---
|
|
23754
|
+
// This error was thrown as a convenience so that you can use this stack
|
|
23755
|
+
// to find the callsite that caused this warning to fire.
|
|
23792
23756
|
throw new Error(message);
|
|
23793
|
-
} catch (x) {}
|
|
23757
|
+
} catch (x) { /**/ }
|
|
23794
23758
|
};
|
|
23795
23759
|
}
|
|
23760
|
+
|
|
23761
|
+
/**
|
|
23762
|
+
* Assert that the values match with the type specs.
|
|
23763
|
+
* Error messages are memorized and will only be shown once.
|
|
23764
|
+
*
|
|
23765
|
+
* @param {object} typeSpecs Map of name to a ReactPropType
|
|
23766
|
+
* @param {object} values Runtime values that need to be type-checked
|
|
23767
|
+
* @param {string} location e.g. "prop", "context", "child context"
|
|
23768
|
+
* @param {string} componentName Name of the component for error messages.
|
|
23769
|
+
* @param {?Function} getStack Returns the component stack.
|
|
23770
|
+
* @private
|
|
23771
|
+
*/
|
|
23796
23772
|
function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
|
|
23797
23773
|
if (process.env.NODE_ENV !== 'production') {
|
|
23798
23774
|
for (var typeSpecName in typeSpecs) {
|
|
23799
23775
|
if (has$1(typeSpecs, typeSpecName)) {
|
|
23800
23776
|
var error;
|
|
23777
|
+
// Prop type validation may throw. In case they do, we don't want to
|
|
23778
|
+
// fail the render phase where it didn't fail before. So we log it.
|
|
23779
|
+
// After these have been cleaned up, we'll let them throw.
|
|
23801
23780
|
try {
|
|
23781
|
+
// This is intentionally an invariant that gets caught. It's the same
|
|
23782
|
+
// behavior as without this statement except with a better message.
|
|
23802
23783
|
if (typeof typeSpecs[typeSpecName] !== 'function') {
|
|
23803
|
-
var err = Error(
|
|
23784
|
+
var err = Error(
|
|
23785
|
+
(componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
|
|
23786
|
+
'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' +
|
|
23787
|
+
'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'
|
|
23788
|
+
);
|
|
23804
23789
|
err.name = 'Invariant Violation';
|
|
23805
23790
|
throw err;
|
|
23806
23791
|
}
|
|
@@ -23809,49 +23794,142 @@ function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
|
|
|
23809
23794
|
error = ex;
|
|
23810
23795
|
}
|
|
23811
23796
|
if (error && !(error instanceof Error)) {
|
|
23812
|
-
printWarning(
|
|
23797
|
+
printWarning(
|
|
23798
|
+
(componentName || 'React class') + ': type specification of ' +
|
|
23799
|
+
location + ' `' + typeSpecName + '` is invalid; the type checker ' +
|
|
23800
|
+
'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +
|
|
23801
|
+
'You may have forgotten to pass an argument to the type checker ' +
|
|
23802
|
+
'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +
|
|
23803
|
+
'shape all require an argument).'
|
|
23804
|
+
);
|
|
23813
23805
|
}
|
|
23814
23806
|
if (error instanceof Error && !(error.message in loggedTypeFailures)) {
|
|
23807
|
+
// Only monitor this failure once because there tends to be a lot of the
|
|
23808
|
+
// same error.
|
|
23815
23809
|
loggedTypeFailures[error.message] = true;
|
|
23810
|
+
|
|
23816
23811
|
var stack = getStack ? getStack() : '';
|
|
23817
|
-
|
|
23812
|
+
|
|
23813
|
+
printWarning(
|
|
23814
|
+
'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')
|
|
23815
|
+
);
|
|
23818
23816
|
}
|
|
23819
23817
|
}
|
|
23820
23818
|
}
|
|
23821
23819
|
}
|
|
23822
23820
|
}
|
|
23823
|
-
|
|
23821
|
+
|
|
23822
|
+
/**
|
|
23823
|
+
* Resets warning cache when testing.
|
|
23824
|
+
*
|
|
23825
|
+
* @private
|
|
23826
|
+
*/
|
|
23827
|
+
checkPropTypes.resetWarningCache = function() {
|
|
23824
23828
|
if (process.env.NODE_ENV !== 'production') {
|
|
23825
23829
|
loggedTypeFailures = {};
|
|
23826
23830
|
}
|
|
23827
23831
|
};
|
|
23832
|
+
|
|
23828
23833
|
var checkPropTypes_1 = checkPropTypes;
|
|
23829
23834
|
|
|
23830
|
-
var printWarning$1 = function
|
|
23835
|
+
var printWarning$1 = function() {};
|
|
23836
|
+
|
|
23831
23837
|
if (process.env.NODE_ENV !== 'production') {
|
|
23832
|
-
printWarning$1 = function
|
|
23838
|
+
printWarning$1 = function(text) {
|
|
23833
23839
|
var message = 'Warning: ' + text;
|
|
23834
23840
|
if (typeof console !== 'undefined') {
|
|
23835
23841
|
console.error(message);
|
|
23836
23842
|
}
|
|
23837
23843
|
try {
|
|
23844
|
+
// --- Welcome to debugging React ---
|
|
23845
|
+
// This error was thrown as a convenience so that you can use this stack
|
|
23846
|
+
// to find the callsite that caused this warning to fire.
|
|
23838
23847
|
throw new Error(message);
|
|
23839
23848
|
} catch (x) {}
|
|
23840
23849
|
};
|
|
23841
23850
|
}
|
|
23851
|
+
|
|
23842
23852
|
function emptyFunctionThatReturnsNull() {
|
|
23843
23853
|
return null;
|
|
23844
23854
|
}
|
|
23845
|
-
|
|
23855
|
+
|
|
23856
|
+
var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
23857
|
+
/* global Symbol */
|
|
23846
23858
|
var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
|
|
23847
|
-
var FAUX_ITERATOR_SYMBOL = '@@iterator';
|
|
23859
|
+
var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
|
|
23860
|
+
|
|
23861
|
+
/**
|
|
23862
|
+
* Returns the iterator method function contained on the iterable object.
|
|
23863
|
+
*
|
|
23864
|
+
* Be sure to invoke the function with the iterable as context:
|
|
23865
|
+
*
|
|
23866
|
+
* var iteratorFn = getIteratorFn(myIterable);
|
|
23867
|
+
* if (iteratorFn) {
|
|
23868
|
+
* var iterator = iteratorFn.call(myIterable);
|
|
23869
|
+
* ...
|
|
23870
|
+
* }
|
|
23871
|
+
*
|
|
23872
|
+
* @param {?object} maybeIterable
|
|
23873
|
+
* @return {?function}
|
|
23874
|
+
*/
|
|
23848
23875
|
function getIteratorFn(maybeIterable) {
|
|
23849
23876
|
var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
|
|
23850
23877
|
if (typeof iteratorFn === 'function') {
|
|
23851
23878
|
return iteratorFn;
|
|
23852
23879
|
}
|
|
23853
23880
|
}
|
|
23881
|
+
|
|
23882
|
+
/**
|
|
23883
|
+
* Collection of methods that allow declaration and validation of props that are
|
|
23884
|
+
* supplied to React components. Example usage:
|
|
23885
|
+
*
|
|
23886
|
+
* var Props = require('ReactPropTypes');
|
|
23887
|
+
* var MyArticle = React.createClass({
|
|
23888
|
+
* propTypes: {
|
|
23889
|
+
* // An optional string prop named "description".
|
|
23890
|
+
* description: Props.string,
|
|
23891
|
+
*
|
|
23892
|
+
* // A required enum prop named "category".
|
|
23893
|
+
* category: Props.oneOf(['News','Photos']).isRequired,
|
|
23894
|
+
*
|
|
23895
|
+
* // A prop named "dialog" that requires an instance of Dialog.
|
|
23896
|
+
* dialog: Props.instanceOf(Dialog).isRequired
|
|
23897
|
+
* },
|
|
23898
|
+
* render: function() { ... }
|
|
23899
|
+
* });
|
|
23900
|
+
*
|
|
23901
|
+
* A more formal specification of how these methods are used:
|
|
23902
|
+
*
|
|
23903
|
+
* type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
|
|
23904
|
+
* decl := ReactPropTypes.{type}(.isRequired)?
|
|
23905
|
+
*
|
|
23906
|
+
* Each and every declaration produces a function with the same signature. This
|
|
23907
|
+
* allows the creation of custom validation functions. For example:
|
|
23908
|
+
*
|
|
23909
|
+
* var MyLink = React.createClass({
|
|
23910
|
+
* propTypes: {
|
|
23911
|
+
* // An optional string or URI prop named "href".
|
|
23912
|
+
* href: function(props, propName, componentName) {
|
|
23913
|
+
* var propValue = props[propName];
|
|
23914
|
+
* if (propValue != null && typeof propValue !== 'string' &&
|
|
23915
|
+
* !(propValue instanceof URI)) {
|
|
23916
|
+
* return new Error(
|
|
23917
|
+
* 'Expected a string or an URI for ' + propName + ' in ' +
|
|
23918
|
+
* componentName
|
|
23919
|
+
* );
|
|
23920
|
+
* }
|
|
23921
|
+
* }
|
|
23922
|
+
* },
|
|
23923
|
+
* render: function() {...}
|
|
23924
|
+
* });
|
|
23925
|
+
*
|
|
23926
|
+
* @internal
|
|
23927
|
+
*/
|
|
23928
|
+
|
|
23854
23929
|
var ANONYMOUS = '<<anonymous>>';
|
|
23930
|
+
|
|
23931
|
+
// Important!
|
|
23932
|
+
// Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
|
|
23855
23933
|
var ReactPropTypes = {
|
|
23856
23934
|
array: createPrimitiveTypeChecker('array'),
|
|
23857
23935
|
bigint: createPrimitiveTypeChecker('bigint'),
|
|
@@ -23861,6 +23939,7 @@ var factoryWithTypeCheckers = function (isValidElement, throwOnDirectAccess) {
|
|
|
23861
23939
|
object: createPrimitiveTypeChecker('object'),
|
|
23862
23940
|
string: createPrimitiveTypeChecker('string'),
|
|
23863
23941
|
symbol: createPrimitiveTypeChecker('symbol'),
|
|
23942
|
+
|
|
23864
23943
|
any: createAnyTypeChecker(),
|
|
23865
23944
|
arrayOf: createArrayOfTypeChecker,
|
|
23866
23945
|
element: createElementTypeChecker(),
|
|
@@ -23871,21 +23950,42 @@ var factoryWithTypeCheckers = function (isValidElement, throwOnDirectAccess) {
|
|
|
23871
23950
|
oneOf: createEnumTypeChecker,
|
|
23872
23951
|
oneOfType: createUnionTypeChecker,
|
|
23873
23952
|
shape: createShapeTypeChecker,
|
|
23874
|
-
exact: createStrictShapeTypeChecker
|
|
23953
|
+
exact: createStrictShapeTypeChecker,
|
|
23875
23954
|
};
|
|
23955
|
+
|
|
23956
|
+
/**
|
|
23957
|
+
* inlined Object.is polyfill to avoid requiring consumers ship their own
|
|
23958
|
+
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
|
|
23959
|
+
*/
|
|
23960
|
+
/*eslint-disable no-self-compare*/
|
|
23876
23961
|
function is(x, y) {
|
|
23962
|
+
// SameValue algorithm
|
|
23877
23963
|
if (x === y) {
|
|
23964
|
+
// Steps 1-5, 7-10
|
|
23965
|
+
// Steps 6.b-6.e: +0 != -0
|
|
23878
23966
|
return x !== 0 || 1 / x === 1 / y;
|
|
23879
23967
|
} else {
|
|
23968
|
+
// Step 6.a: NaN == NaN
|
|
23880
23969
|
return x !== x && y !== y;
|
|
23881
23970
|
}
|
|
23882
23971
|
}
|
|
23972
|
+
/*eslint-enable no-self-compare*/
|
|
23973
|
+
|
|
23974
|
+
/**
|
|
23975
|
+
* We use an Error-like object for backward compatibility as people may call
|
|
23976
|
+
* PropTypes directly and inspect their output. However, we don't use real
|
|
23977
|
+
* Errors anymore. We don't inspect their stack anyway, and creating them
|
|
23978
|
+
* is prohibitively expensive if they are created too often, such as what
|
|
23979
|
+
* happens in oneOfType() for any type before the one that matched.
|
|
23980
|
+
*/
|
|
23883
23981
|
function PropTypeError(message, data) {
|
|
23884
23982
|
this.message = message;
|
|
23885
|
-
this.data = data && typeof data === 'object' ? data
|
|
23983
|
+
this.data = data && typeof data === 'object' ? data: {};
|
|
23886
23984
|
this.stack = '';
|
|
23887
23985
|
}
|
|
23986
|
+
// Make `instanceof Error` still work for returned errors.
|
|
23888
23987
|
PropTypeError.prototype = Error.prototype;
|
|
23988
|
+
|
|
23889
23989
|
function createChainableTypeChecker(validate) {
|
|
23890
23990
|
if (process.env.NODE_ENV !== 'production') {
|
|
23891
23991
|
var manualPropTypeCallCache = {};
|
|
@@ -23894,15 +23994,32 @@ var factoryWithTypeCheckers = function (isValidElement, throwOnDirectAccess) {
|
|
|
23894
23994
|
function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
|
|
23895
23995
|
componentName = componentName || ANONYMOUS;
|
|
23896
23996
|
propFullName = propFullName || propName;
|
|
23997
|
+
|
|
23897
23998
|
if (secret !== ReactPropTypesSecret_1) {
|
|
23898
23999
|
if (throwOnDirectAccess) {
|
|
23899
|
-
|
|
24000
|
+
// New behavior only for users of `prop-types` package
|
|
24001
|
+
var err = new Error(
|
|
24002
|
+
'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
|
|
24003
|
+
'Use `PropTypes.checkPropTypes()` to call them. ' +
|
|
24004
|
+
'Read more at http://fb.me/use-check-prop-types'
|
|
24005
|
+
);
|
|
23900
24006
|
err.name = 'Invariant Violation';
|
|
23901
24007
|
throw err;
|
|
23902
24008
|
} else if (process.env.NODE_ENV !== 'production' && typeof console !== 'undefined') {
|
|
24009
|
+
// Old behavior for people using React.PropTypes
|
|
23903
24010
|
var cacheKey = componentName + ':' + propName;
|
|
23904
|
-
if (
|
|
23905
|
-
|
|
24011
|
+
if (
|
|
24012
|
+
!manualPropTypeCallCache[cacheKey] &&
|
|
24013
|
+
// Avoid spamming the console because they are often not actionable except for lib authors
|
|
24014
|
+
manualPropTypeWarningCount < 3
|
|
24015
|
+
) {
|
|
24016
|
+
printWarning$1(
|
|
24017
|
+
'You are manually calling a React.PropTypes validation ' +
|
|
24018
|
+
'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
|
|
24019
|
+
'and will throw in the standalone `prop-types` package. ' +
|
|
24020
|
+
'You may be seeing this warning due to a third-party PropTypes ' +
|
|
24021
|
+
'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'
|
|
24022
|
+
);
|
|
23906
24023
|
manualPropTypeCallCache[cacheKey] = true;
|
|
23907
24024
|
manualPropTypeWarningCount++;
|
|
23908
24025
|
}
|
|
@@ -23920,27 +24037,37 @@ var factoryWithTypeCheckers = function (isValidElement, throwOnDirectAccess) {
|
|
|
23920
24037
|
return validate(props, propName, componentName, location, propFullName);
|
|
23921
24038
|
}
|
|
23922
24039
|
}
|
|
24040
|
+
|
|
23923
24041
|
var chainedCheckType = checkType.bind(null, false);
|
|
23924
24042
|
chainedCheckType.isRequired = checkType.bind(null, true);
|
|
24043
|
+
|
|
23925
24044
|
return chainedCheckType;
|
|
23926
24045
|
}
|
|
24046
|
+
|
|
23927
24047
|
function createPrimitiveTypeChecker(expectedType) {
|
|
23928
24048
|
function validate(props, propName, componentName, location, propFullName, secret) {
|
|
23929
24049
|
var propValue = props[propName];
|
|
23930
24050
|
var propType = getPropType(propValue);
|
|
23931
24051
|
if (propType !== expectedType) {
|
|
24052
|
+
// `propValue` being instance of, say, date/regexp, pass the 'object'
|
|
24053
|
+
// check, but we can offer a more precise error message here rather than
|
|
24054
|
+
// 'of type `object`'.
|
|
23932
24055
|
var preciseType = getPreciseType(propValue);
|
|
23933
|
-
|
|
23934
|
-
|
|
23935
|
-
|
|
24056
|
+
|
|
24057
|
+
return new PropTypeError(
|
|
24058
|
+
'Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'),
|
|
24059
|
+
{expectedType: expectedType}
|
|
24060
|
+
);
|
|
23936
24061
|
}
|
|
23937
24062
|
return null;
|
|
23938
24063
|
}
|
|
23939
24064
|
return createChainableTypeChecker(validate);
|
|
23940
24065
|
}
|
|
24066
|
+
|
|
23941
24067
|
function createAnyTypeChecker() {
|
|
23942
24068
|
return createChainableTypeChecker(emptyFunctionThatReturnsNull);
|
|
23943
24069
|
}
|
|
24070
|
+
|
|
23944
24071
|
function createArrayOfTypeChecker(typeChecker) {
|
|
23945
24072
|
function validate(props, propName, componentName, location, propFullName) {
|
|
23946
24073
|
if (typeof typeChecker !== 'function') {
|
|
@@ -23961,6 +24088,7 @@ var factoryWithTypeCheckers = function (isValidElement, throwOnDirectAccess) {
|
|
|
23961
24088
|
}
|
|
23962
24089
|
return createChainableTypeChecker(validate);
|
|
23963
24090
|
}
|
|
24091
|
+
|
|
23964
24092
|
function createElementTypeChecker() {
|
|
23965
24093
|
function validate(props, propName, componentName, location, propFullName) {
|
|
23966
24094
|
var propValue = props[propName];
|
|
@@ -23972,6 +24100,7 @@ var factoryWithTypeCheckers = function (isValidElement, throwOnDirectAccess) {
|
|
|
23972
24100
|
}
|
|
23973
24101
|
return createChainableTypeChecker(validate);
|
|
23974
24102
|
}
|
|
24103
|
+
|
|
23975
24104
|
function createElementTypeTypeChecker() {
|
|
23976
24105
|
function validate(props, propName, componentName, location, propFullName) {
|
|
23977
24106
|
var propValue = props[propName];
|
|
@@ -23983,6 +24112,7 @@ var factoryWithTypeCheckers = function (isValidElement, throwOnDirectAccess) {
|
|
|
23983
24112
|
}
|
|
23984
24113
|
return createChainableTypeChecker(validate);
|
|
23985
24114
|
}
|
|
24115
|
+
|
|
23986
24116
|
function createInstanceTypeChecker(expectedClass) {
|
|
23987
24117
|
function validate(props, propName, componentName, location, propFullName) {
|
|
23988
24118
|
if (!(props[propName] instanceof expectedClass)) {
|
|
@@ -23994,17 +24124,22 @@ var factoryWithTypeCheckers = function (isValidElement, throwOnDirectAccess) {
|
|
|
23994
24124
|
}
|
|
23995
24125
|
return createChainableTypeChecker(validate);
|
|
23996
24126
|
}
|
|
24127
|
+
|
|
23997
24128
|
function createEnumTypeChecker(expectedValues) {
|
|
23998
24129
|
if (!Array.isArray(expectedValues)) {
|
|
23999
24130
|
if (process.env.NODE_ENV !== 'production') {
|
|
24000
24131
|
if (arguments.length > 1) {
|
|
24001
|
-
printWarning$1(
|
|
24132
|
+
printWarning$1(
|
|
24133
|
+
'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +
|
|
24134
|
+
'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'
|
|
24135
|
+
);
|
|
24002
24136
|
} else {
|
|
24003
24137
|
printWarning$1('Invalid argument supplied to oneOf, expected an array.');
|
|
24004
24138
|
}
|
|
24005
24139
|
}
|
|
24006
24140
|
return emptyFunctionThatReturnsNull;
|
|
24007
24141
|
}
|
|
24142
|
+
|
|
24008
24143
|
function validate(props, propName, componentName, location, propFullName) {
|
|
24009
24144
|
var propValue = props[propName];
|
|
24010
24145
|
for (var i = 0; i < expectedValues.length; i++) {
|
|
@@ -24012,6 +24147,7 @@ var factoryWithTypeCheckers = function (isValidElement, throwOnDirectAccess) {
|
|
|
24012
24147
|
return null;
|
|
24013
24148
|
}
|
|
24014
24149
|
}
|
|
24150
|
+
|
|
24015
24151
|
var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
|
|
24016
24152
|
var type = getPreciseType(value);
|
|
24017
24153
|
if (type === 'symbol') {
|
|
@@ -24023,6 +24159,7 @@ var factoryWithTypeCheckers = function (isValidElement, throwOnDirectAccess) {
|
|
|
24023
24159
|
}
|
|
24024
24160
|
return createChainableTypeChecker(validate);
|
|
24025
24161
|
}
|
|
24162
|
+
|
|
24026
24163
|
function createObjectOfTypeChecker(typeChecker) {
|
|
24027
24164
|
function validate(props, propName, componentName, location, propFullName) {
|
|
24028
24165
|
if (typeof typeChecker !== 'function') {
|
|
@@ -24045,18 +24182,24 @@ var factoryWithTypeCheckers = function (isValidElement, throwOnDirectAccess) {
|
|
|
24045
24182
|
}
|
|
24046
24183
|
return createChainableTypeChecker(validate);
|
|
24047
24184
|
}
|
|
24185
|
+
|
|
24048
24186
|
function createUnionTypeChecker(arrayOfTypeCheckers) {
|
|
24049
24187
|
if (!Array.isArray(arrayOfTypeCheckers)) {
|
|
24050
24188
|
process.env.NODE_ENV !== 'production' ? printWarning$1('Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;
|
|
24051
24189
|
return emptyFunctionThatReturnsNull;
|
|
24052
24190
|
}
|
|
24191
|
+
|
|
24053
24192
|
for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
|
|
24054
24193
|
var checker = arrayOfTypeCheckers[i];
|
|
24055
24194
|
if (typeof checker !== 'function') {
|
|
24056
|
-
printWarning$1(
|
|
24195
|
+
printWarning$1(
|
|
24196
|
+
'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +
|
|
24197
|
+
'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'
|
|
24198
|
+
);
|
|
24057
24199
|
return emptyFunctionThatReturnsNull;
|
|
24058
24200
|
}
|
|
24059
24201
|
}
|
|
24202
|
+
|
|
24060
24203
|
function validate(props, propName, componentName, location, propFullName) {
|
|
24061
24204
|
var expectedTypes = [];
|
|
24062
24205
|
for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
|
|
@@ -24069,11 +24212,12 @@ var factoryWithTypeCheckers = function (isValidElement, throwOnDirectAccess) {
|
|
|
24069
24212
|
expectedTypes.push(checkerResult.data.expectedType);
|
|
24070
24213
|
}
|
|
24071
24214
|
}
|
|
24072
|
-
var expectedTypesMessage = expectedTypes.length > 0 ? ', expected one of type [' + expectedTypes.join(', ') + ']'
|
|
24215
|
+
var expectedTypesMessage = (expectedTypes.length > 0) ? ', expected one of type [' + expectedTypes.join(', ') + ']': '';
|
|
24073
24216
|
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.'));
|
|
24074
24217
|
}
|
|
24075
24218
|
return createChainableTypeChecker(validate);
|
|
24076
24219
|
}
|
|
24220
|
+
|
|
24077
24221
|
function createNodeChecker() {
|
|
24078
24222
|
function validate(props, propName, componentName, location, propFullName) {
|
|
24079
24223
|
if (!isNode(props[propName])) {
|
|
@@ -24083,9 +24227,14 @@ var factoryWithTypeCheckers = function (isValidElement, throwOnDirectAccess) {
|
|
|
24083
24227
|
}
|
|
24084
24228
|
return createChainableTypeChecker(validate);
|
|
24085
24229
|
}
|
|
24230
|
+
|
|
24086
24231
|
function invalidValidatorError(componentName, location, propFullName, key, type) {
|
|
24087
|
-
return new PropTypeError(
|
|
24232
|
+
return new PropTypeError(
|
|
24233
|
+
(componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' +
|
|
24234
|
+
'it must be a function, usually from the `prop-types` package, but received `' + type + '`.'
|
|
24235
|
+
);
|
|
24088
24236
|
}
|
|
24237
|
+
|
|
24089
24238
|
function createShapeTypeChecker(shapeTypes) {
|
|
24090
24239
|
function validate(props, propName, componentName, location, propFullName) {
|
|
24091
24240
|
var propValue = props[propName];
|
|
@@ -24107,6 +24256,7 @@ var factoryWithTypeCheckers = function (isValidElement, throwOnDirectAccess) {
|
|
|
24107
24256
|
}
|
|
24108
24257
|
return createChainableTypeChecker(validate);
|
|
24109
24258
|
}
|
|
24259
|
+
|
|
24110
24260
|
function createStrictShapeTypeChecker(shapeTypes) {
|
|
24111
24261
|
function validate(props, propName, componentName, location, propFullName) {
|
|
24112
24262
|
var propValue = props[propName];
|
|
@@ -24114,6 +24264,7 @@ var factoryWithTypeCheckers = function (isValidElement, throwOnDirectAccess) {
|
|
|
24114
24264
|
if (propType !== 'object') {
|
|
24115
24265
|
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
|
|
24116
24266
|
}
|
|
24267
|
+
// We need to check all keys in case some are required but missing from props.
|
|
24117
24268
|
var allKeys = objectAssign({}, props[propName], shapeTypes);
|
|
24118
24269
|
for (var key in allKeys) {
|
|
24119
24270
|
var checker = shapeTypes[key];
|
|
@@ -24121,7 +24272,11 @@ var factoryWithTypeCheckers = function (isValidElement, throwOnDirectAccess) {
|
|
|
24121
24272
|
return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
|
|
24122
24273
|
}
|
|
24123
24274
|
if (!checker) {
|
|
24124
|
-
return new PropTypeError(
|
|
24275
|
+
return new PropTypeError(
|
|
24276
|
+
'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
|
|
24277
|
+
'\nBad object: ' + JSON.stringify(props[propName], null, ' ') +
|
|
24278
|
+
'\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
|
|
24279
|
+
);
|
|
24125
24280
|
}
|
|
24126
24281
|
var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret_1);
|
|
24127
24282
|
if (error) {
|
|
@@ -24130,8 +24285,10 @@ var factoryWithTypeCheckers = function (isValidElement, throwOnDirectAccess) {
|
|
|
24130
24285
|
}
|
|
24131
24286
|
return null;
|
|
24132
24287
|
}
|
|
24288
|
+
|
|
24133
24289
|
return createChainableTypeChecker(validate);
|
|
24134
24290
|
}
|
|
24291
|
+
|
|
24135
24292
|
function isNode(propValue) {
|
|
24136
24293
|
switch (typeof propValue) {
|
|
24137
24294
|
case 'number':
|
|
@@ -24147,6 +24304,7 @@ var factoryWithTypeCheckers = function (isValidElement, throwOnDirectAccess) {
|
|
|
24147
24304
|
if (propValue === null || isValidElement(propValue)) {
|
|
24148
24305
|
return true;
|
|
24149
24306
|
}
|
|
24307
|
+
|
|
24150
24308
|
var iteratorFn = getIteratorFn(propValue);
|
|
24151
24309
|
if (iteratorFn) {
|
|
24152
24310
|
var iterator = iteratorFn.call(propValue);
|
|
@@ -24158,6 +24316,7 @@ var factoryWithTypeCheckers = function (isValidElement, throwOnDirectAccess) {
|
|
|
24158
24316
|
}
|
|
24159
24317
|
}
|
|
24160
24318
|
} else {
|
|
24319
|
+
// Iterator will provide entry [k,v] tuples rather than values.
|
|
24161
24320
|
while (!(step = iterator.next()).done) {
|
|
24162
24321
|
var entry = step.value;
|
|
24163
24322
|
if (entry) {
|
|
@@ -24170,32 +24329,47 @@ var factoryWithTypeCheckers = function (isValidElement, throwOnDirectAccess) {
|
|
|
24170
24329
|
} else {
|
|
24171
24330
|
return false;
|
|
24172
24331
|
}
|
|
24332
|
+
|
|
24173
24333
|
return true;
|
|
24174
24334
|
default:
|
|
24175
24335
|
return false;
|
|
24176
24336
|
}
|
|
24177
24337
|
}
|
|
24338
|
+
|
|
24178
24339
|
function isSymbol(propType, propValue) {
|
|
24340
|
+
// Native Symbol.
|
|
24179
24341
|
if (propType === 'symbol') {
|
|
24180
24342
|
return true;
|
|
24181
24343
|
}
|
|
24344
|
+
|
|
24345
|
+
// falsy value can't be a Symbol
|
|
24182
24346
|
if (!propValue) {
|
|
24183
24347
|
return false;
|
|
24184
24348
|
}
|
|
24349
|
+
|
|
24350
|
+
// 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
|
|
24185
24351
|
if (propValue['@@toStringTag'] === 'Symbol') {
|
|
24186
24352
|
return true;
|
|
24187
24353
|
}
|
|
24354
|
+
|
|
24355
|
+
// Fallback for non-spec compliant Symbols which are polyfilled.
|
|
24188
24356
|
if (typeof Symbol === 'function' && propValue instanceof Symbol) {
|
|
24189
24357
|
return true;
|
|
24190
24358
|
}
|
|
24359
|
+
|
|
24191
24360
|
return false;
|
|
24192
24361
|
}
|
|
24362
|
+
|
|
24363
|
+
// Equivalent of `typeof` but with special handling for array and regexp.
|
|
24193
24364
|
function getPropType(propValue) {
|
|
24194
24365
|
var propType = typeof propValue;
|
|
24195
24366
|
if (Array.isArray(propValue)) {
|
|
24196
24367
|
return 'array';
|
|
24197
24368
|
}
|
|
24198
24369
|
if (propValue instanceof RegExp) {
|
|
24370
|
+
// Old webkits (at least until Android 4.0) return 'function' rather than
|
|
24371
|
+
// 'object' for typeof a RegExp. We'll normalize this here so that /bla/
|
|
24372
|
+
// passes PropTypes.object.
|
|
24199
24373
|
return 'object';
|
|
24200
24374
|
}
|
|
24201
24375
|
if (isSymbol(propType, propValue)) {
|
|
@@ -24203,6 +24377,9 @@ var factoryWithTypeCheckers = function (isValidElement, throwOnDirectAccess) {
|
|
|
24203
24377
|
}
|
|
24204
24378
|
return propType;
|
|
24205
24379
|
}
|
|
24380
|
+
|
|
24381
|
+
// This handles more types than `getPropType`. Only used for error messages.
|
|
24382
|
+
// See `createPrimitiveTypeChecker`.
|
|
24206
24383
|
function getPreciseType(propValue) {
|
|
24207
24384
|
if (typeof propValue === 'undefined' || propValue === null) {
|
|
24208
24385
|
return '' + propValue;
|
|
@@ -24217,6 +24394,9 @@ var factoryWithTypeCheckers = function (isValidElement, throwOnDirectAccess) {
|
|
|
24217
24394
|
}
|
|
24218
24395
|
return propType;
|
|
24219
24396
|
}
|
|
24397
|
+
|
|
24398
|
+
// Returns a string that is postfixed to a warning about an invalid type.
|
|
24399
|
+
// For example, "undefined" or "of type array"
|
|
24220
24400
|
function getPostfixForTypeWarning(value) {
|
|
24221
24401
|
var type = getPreciseType(value);
|
|
24222
24402
|
switch (type) {
|
|
@@ -24231,34 +24411,44 @@ var factoryWithTypeCheckers = function (isValidElement, throwOnDirectAccess) {
|
|
|
24231
24411
|
return type;
|
|
24232
24412
|
}
|
|
24233
24413
|
}
|
|
24414
|
+
|
|
24415
|
+
// Returns class name of the object, if any.
|
|
24234
24416
|
function getClassName(propValue) {
|
|
24235
24417
|
if (!propValue.constructor || !propValue.constructor.name) {
|
|
24236
24418
|
return ANONYMOUS;
|
|
24237
24419
|
}
|
|
24238
24420
|
return propValue.constructor.name;
|
|
24239
24421
|
}
|
|
24422
|
+
|
|
24240
24423
|
ReactPropTypes.checkPropTypes = checkPropTypes_1;
|
|
24241
24424
|
ReactPropTypes.resetWarningCache = checkPropTypes_1.resetWarningCache;
|
|
24242
24425
|
ReactPropTypes.PropTypes = ReactPropTypes;
|
|
24426
|
+
|
|
24243
24427
|
return ReactPropTypes;
|
|
24244
24428
|
};
|
|
24245
24429
|
|
|
24246
24430
|
function emptyFunction() {}
|
|
24247
24431
|
function emptyFunctionWithReset() {}
|
|
24248
24432
|
emptyFunctionWithReset.resetWarningCache = emptyFunction;
|
|
24249
|
-
|
|
24433
|
+
|
|
24434
|
+
var factoryWithThrowingShims = function() {
|
|
24250
24435
|
function shim(props, propName, componentName, location, propFullName, secret) {
|
|
24251
24436
|
if (secret === ReactPropTypesSecret_1) {
|
|
24437
|
+
// It is still safe when called from React.
|
|
24252
24438
|
return;
|
|
24253
24439
|
}
|
|
24254
|
-
var err = new Error(
|
|
24440
|
+
var err = new Error(
|
|
24441
|
+
'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
|
|
24442
|
+
'Use PropTypes.checkPropTypes() to call them. ' +
|
|
24443
|
+
'Read more at http://fb.me/use-check-prop-types'
|
|
24444
|
+
);
|
|
24255
24445
|
err.name = 'Invariant Violation';
|
|
24256
24446
|
throw err;
|
|
24257
|
-
}
|
|
24258
|
-
shim.isRequired = shim;
|
|
24447
|
+
} shim.isRequired = shim;
|
|
24259
24448
|
function getShim() {
|
|
24260
24449
|
return shim;
|
|
24261
|
-
}
|
|
24450
|
+
} // Important!
|
|
24451
|
+
// Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
|
|
24262
24452
|
var ReactPropTypes = {
|
|
24263
24453
|
array: shim,
|
|
24264
24454
|
bigint: shim,
|
|
@@ -24268,6 +24458,7 @@ var factoryWithThrowingShims = function () {
|
|
|
24268
24458
|
object: shim,
|
|
24269
24459
|
string: shim,
|
|
24270
24460
|
symbol: shim,
|
|
24461
|
+
|
|
24271
24462
|
any: shim,
|
|
24272
24463
|
arrayOf: getShim,
|
|
24273
24464
|
element: shim,
|
|
@@ -24279,21 +24470,36 @@ var factoryWithThrowingShims = function () {
|
|
|
24279
24470
|
oneOfType: getShim,
|
|
24280
24471
|
shape: getShim,
|
|
24281
24472
|
exact: getShim,
|
|
24473
|
+
|
|
24282
24474
|
checkPropTypes: emptyFunctionWithReset,
|
|
24283
24475
|
resetWarningCache: emptyFunction
|
|
24284
24476
|
};
|
|
24477
|
+
|
|
24285
24478
|
ReactPropTypes.PropTypes = ReactPropTypes;
|
|
24479
|
+
|
|
24286
24480
|
return ReactPropTypes;
|
|
24287
24481
|
};
|
|
24288
24482
|
|
|
24289
24483
|
var propTypes = createCommonjsModule(function (module) {
|
|
24290
|
-
|
|
24291
|
-
|
|
24292
|
-
|
|
24293
|
-
|
|
24294
|
-
|
|
24295
|
-
|
|
24296
|
-
|
|
24484
|
+
/**
|
|
24485
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
24486
|
+
*
|
|
24487
|
+
* This source code is licensed under the MIT license found in the
|
|
24488
|
+
* LICENSE file in the root directory of this source tree.
|
|
24489
|
+
*/
|
|
24490
|
+
|
|
24491
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
24492
|
+
var ReactIs = reactIs;
|
|
24493
|
+
|
|
24494
|
+
// By explicitly using `prop-types` you are opting into new development behavior.
|
|
24495
|
+
// http://fb.me/prop-types-in-prod
|
|
24496
|
+
var throwOnDirectAccess = true;
|
|
24497
|
+
module.exports = factoryWithTypeCheckers(ReactIs.isElement, throwOnDirectAccess);
|
|
24498
|
+
} else {
|
|
24499
|
+
// By explicitly using `prop-types` you are opting into new production behavior.
|
|
24500
|
+
// http://fb.me/prop-types-in-prod
|
|
24501
|
+
module.exports = factoryWithThrowingShims();
|
|
24502
|
+
}
|
|
24297
24503
|
});
|
|
24298
24504
|
|
|
24299
24505
|
const SearchConnection = ({
|
|
@@ -43256,7 +43462,7 @@ const WSModule = ({
|
|
|
43256
43462
|
}) => {
|
|
43257
43463
|
var _Digit$SessionStorage;
|
|
43258
43464
|
const tenantId = ((_Digit$SessionStorage = Digit.SessionStorage.get("CITIZEN.COMMON.HOME.CITY")) === null || _Digit$SessionStorage === void 0 ? void 0 : _Digit$SessionStorage.code) || Digit.ULBService.getCurrentTenantId();
|
|
43259
|
-
const moduleCode =
|
|
43465
|
+
const moduleCode = "WS";
|
|
43260
43466
|
const {
|
|
43261
43467
|
path,
|
|
43262
43468
|
url
|
|
@@ -43409,5 +43615,5 @@ const initWSComponents = () => {
|
|
|
43409
43615
|
});
|
|
43410
43616
|
};
|
|
43411
43617
|
|
|
43412
|
-
export { initWSComponents };
|
|
43618
|
+
export { WSLinks, WSModule, initWSComponents };
|
|
43413
43619
|
//# sourceMappingURL=index.modern.js.map
|