@thecb/components 5.9.3 → 5.10.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.cjs.js +220 -2868
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +153 -2802
- package/dist/index.esm.js.map +1 -1
- package/package.json +5 -4
- package/src/components/molecules/payment-details/PaymentDetails.js +80 -7
- package/src/components/molecules/payment-details/PaymentDetails.stories.js +93 -3
package/dist/index.cjs.js
CHANGED
|
@@ -6,6 +6,8 @@ function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'defau
|
|
|
6
6
|
|
|
7
7
|
var React = require('react');
|
|
8
8
|
var React__default = _interopDefault(React);
|
|
9
|
+
var styled = require('styled-components');
|
|
10
|
+
var styled__default = _interopDefault(styled);
|
|
9
11
|
var theme = _interopDefault(require('styled-theming'));
|
|
10
12
|
var reactRouterDom = require('react-router-dom');
|
|
11
13
|
var reactDom = _interopDefault(require('react-dom'));
|
|
@@ -220,2717 +222,6 @@ function _nonIterableRest() {
|
|
|
220
222
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
221
223
|
}
|
|
222
224
|
|
|
223
|
-
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
224
|
-
|
|
225
|
-
function createCommonjsModule(fn, module) {
|
|
226
|
-
return module = { exports: {} }, fn(module, module.exports), module.exports;
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
/** @license React v16.13.1
|
|
230
|
-
* react-is.production.min.js
|
|
231
|
-
*
|
|
232
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
233
|
-
*
|
|
234
|
-
* This source code is licensed under the MIT license found in the
|
|
235
|
-
* LICENSE file in the root directory of this source tree.
|
|
236
|
-
*/
|
|
237
|
-
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=b?Symbol.for("react.forward_ref"):60112,p=b?Symbol.for("react.suspense"):60113,q=b?
|
|
238
|
-
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;
|
|
239
|
-
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: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$1=c;var ForwardRef=n;var Fragment=e;var Lazy=t;var Memo=r;var Portal=d;
|
|
240
|
-
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};var isFragment=function(a){return z(a)===e};var isLazy=function(a){return z(a)===t};
|
|
241
|
-
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};
|
|
242
|
-
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||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)};var typeOf=z;
|
|
243
|
-
|
|
244
|
-
var reactIs_production_min = {
|
|
245
|
-
AsyncMode: AsyncMode,
|
|
246
|
-
ConcurrentMode: ConcurrentMode,
|
|
247
|
-
ContextConsumer: ContextConsumer,
|
|
248
|
-
ContextProvider: ContextProvider,
|
|
249
|
-
Element: Element$1,
|
|
250
|
-
ForwardRef: ForwardRef,
|
|
251
|
-
Fragment: Fragment,
|
|
252
|
-
Lazy: Lazy,
|
|
253
|
-
Memo: Memo,
|
|
254
|
-
Portal: Portal,
|
|
255
|
-
Profiler: Profiler,
|
|
256
|
-
StrictMode: StrictMode,
|
|
257
|
-
Suspense: Suspense,
|
|
258
|
-
isAsyncMode: isAsyncMode,
|
|
259
|
-
isConcurrentMode: isConcurrentMode,
|
|
260
|
-
isContextConsumer: isContextConsumer,
|
|
261
|
-
isContextProvider: isContextProvider,
|
|
262
|
-
isElement: isElement,
|
|
263
|
-
isForwardRef: isForwardRef,
|
|
264
|
-
isFragment: isFragment,
|
|
265
|
-
isLazy: isLazy,
|
|
266
|
-
isMemo: isMemo,
|
|
267
|
-
isPortal: isPortal,
|
|
268
|
-
isProfiler: isProfiler,
|
|
269
|
-
isStrictMode: isStrictMode,
|
|
270
|
-
isSuspense: isSuspense,
|
|
271
|
-
isValidElementType: isValidElementType,
|
|
272
|
-
typeOf: typeOf
|
|
273
|
-
};
|
|
274
|
-
|
|
275
|
-
var reactIs_development = createCommonjsModule(function (module, exports) {
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
if (process.env.NODE_ENV !== "production") {
|
|
280
|
-
(function() {
|
|
281
|
-
|
|
282
|
-
// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
|
|
283
|
-
// nor polyfill, then a plain number is used for performance.
|
|
284
|
-
var hasSymbol = typeof Symbol === 'function' && Symbol.for;
|
|
285
|
-
var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
|
|
286
|
-
var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
|
|
287
|
-
var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
|
|
288
|
-
var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
|
|
289
|
-
var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
|
|
290
|
-
var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
|
|
291
|
-
var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
|
|
292
|
-
// (unstable) APIs that have been removed. Can we remove the symbols?
|
|
293
|
-
|
|
294
|
-
var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
|
|
295
|
-
var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
|
|
296
|
-
var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
|
|
297
|
-
var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
|
|
298
|
-
var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
|
|
299
|
-
var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
|
|
300
|
-
var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
|
|
301
|
-
var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
|
|
302
|
-
var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
|
|
303
|
-
var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
|
|
304
|
-
var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
|
|
305
|
-
|
|
306
|
-
function isValidElementType(type) {
|
|
307
|
-
return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
308
|
-
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);
|
|
309
|
-
}
|
|
310
|
-
|
|
311
|
-
function typeOf(object) {
|
|
312
|
-
if (typeof object === 'object' && object !== null) {
|
|
313
|
-
var $$typeof = object.$$typeof;
|
|
314
|
-
|
|
315
|
-
switch ($$typeof) {
|
|
316
|
-
case REACT_ELEMENT_TYPE:
|
|
317
|
-
var type = object.type;
|
|
318
|
-
|
|
319
|
-
switch (type) {
|
|
320
|
-
case REACT_ASYNC_MODE_TYPE:
|
|
321
|
-
case REACT_CONCURRENT_MODE_TYPE:
|
|
322
|
-
case REACT_FRAGMENT_TYPE:
|
|
323
|
-
case REACT_PROFILER_TYPE:
|
|
324
|
-
case REACT_STRICT_MODE_TYPE:
|
|
325
|
-
case REACT_SUSPENSE_TYPE:
|
|
326
|
-
return type;
|
|
327
|
-
|
|
328
|
-
default:
|
|
329
|
-
var $$typeofType = type && type.$$typeof;
|
|
330
|
-
|
|
331
|
-
switch ($$typeofType) {
|
|
332
|
-
case REACT_CONTEXT_TYPE:
|
|
333
|
-
case REACT_FORWARD_REF_TYPE:
|
|
334
|
-
case REACT_LAZY_TYPE:
|
|
335
|
-
case REACT_MEMO_TYPE:
|
|
336
|
-
case REACT_PROVIDER_TYPE:
|
|
337
|
-
return $$typeofType;
|
|
338
|
-
|
|
339
|
-
default:
|
|
340
|
-
return $$typeof;
|
|
341
|
-
}
|
|
342
|
-
|
|
343
|
-
}
|
|
344
|
-
|
|
345
|
-
case REACT_PORTAL_TYPE:
|
|
346
|
-
return $$typeof;
|
|
347
|
-
}
|
|
348
|
-
}
|
|
349
|
-
|
|
350
|
-
return undefined;
|
|
351
|
-
} // AsyncMode is deprecated along with isAsyncMode
|
|
352
|
-
|
|
353
|
-
var AsyncMode = REACT_ASYNC_MODE_TYPE;
|
|
354
|
-
var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
|
|
355
|
-
var ContextConsumer = REACT_CONTEXT_TYPE;
|
|
356
|
-
var ContextProvider = REACT_PROVIDER_TYPE;
|
|
357
|
-
var Element = REACT_ELEMENT_TYPE;
|
|
358
|
-
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
359
|
-
var Fragment = REACT_FRAGMENT_TYPE;
|
|
360
|
-
var Lazy = REACT_LAZY_TYPE;
|
|
361
|
-
var Memo = REACT_MEMO_TYPE;
|
|
362
|
-
var Portal = REACT_PORTAL_TYPE;
|
|
363
|
-
var Profiler = REACT_PROFILER_TYPE;
|
|
364
|
-
var StrictMode = REACT_STRICT_MODE_TYPE;
|
|
365
|
-
var Suspense = REACT_SUSPENSE_TYPE;
|
|
366
|
-
var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
|
|
367
|
-
|
|
368
|
-
function isAsyncMode(object) {
|
|
369
|
-
{
|
|
370
|
-
if (!hasWarnedAboutDeprecatedIsAsyncMode) {
|
|
371
|
-
hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
|
|
372
|
-
|
|
373
|
-
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.');
|
|
374
|
-
}
|
|
375
|
-
}
|
|
376
|
-
|
|
377
|
-
return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
|
|
378
|
-
}
|
|
379
|
-
function isConcurrentMode(object) {
|
|
380
|
-
return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
|
|
381
|
-
}
|
|
382
|
-
function isContextConsumer(object) {
|
|
383
|
-
return typeOf(object) === REACT_CONTEXT_TYPE;
|
|
384
|
-
}
|
|
385
|
-
function isContextProvider(object) {
|
|
386
|
-
return typeOf(object) === REACT_PROVIDER_TYPE;
|
|
387
|
-
}
|
|
388
|
-
function isElement(object) {
|
|
389
|
-
return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
390
|
-
}
|
|
391
|
-
function isForwardRef(object) {
|
|
392
|
-
return typeOf(object) === REACT_FORWARD_REF_TYPE;
|
|
393
|
-
}
|
|
394
|
-
function isFragment(object) {
|
|
395
|
-
return typeOf(object) === REACT_FRAGMENT_TYPE;
|
|
396
|
-
}
|
|
397
|
-
function isLazy(object) {
|
|
398
|
-
return typeOf(object) === REACT_LAZY_TYPE;
|
|
399
|
-
}
|
|
400
|
-
function isMemo(object) {
|
|
401
|
-
return typeOf(object) === REACT_MEMO_TYPE;
|
|
402
|
-
}
|
|
403
|
-
function isPortal(object) {
|
|
404
|
-
return typeOf(object) === REACT_PORTAL_TYPE;
|
|
405
|
-
}
|
|
406
|
-
function isProfiler(object) {
|
|
407
|
-
return typeOf(object) === REACT_PROFILER_TYPE;
|
|
408
|
-
}
|
|
409
|
-
function isStrictMode(object) {
|
|
410
|
-
return typeOf(object) === REACT_STRICT_MODE_TYPE;
|
|
411
|
-
}
|
|
412
|
-
function isSuspense(object) {
|
|
413
|
-
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
|
414
|
-
}
|
|
415
|
-
|
|
416
|
-
exports.AsyncMode = AsyncMode;
|
|
417
|
-
exports.ConcurrentMode = ConcurrentMode;
|
|
418
|
-
exports.ContextConsumer = ContextConsumer;
|
|
419
|
-
exports.ContextProvider = ContextProvider;
|
|
420
|
-
exports.Element = Element;
|
|
421
|
-
exports.ForwardRef = ForwardRef;
|
|
422
|
-
exports.Fragment = Fragment;
|
|
423
|
-
exports.Lazy = Lazy;
|
|
424
|
-
exports.Memo = Memo;
|
|
425
|
-
exports.Portal = Portal;
|
|
426
|
-
exports.Profiler = Profiler;
|
|
427
|
-
exports.StrictMode = StrictMode;
|
|
428
|
-
exports.Suspense = Suspense;
|
|
429
|
-
exports.isAsyncMode = isAsyncMode;
|
|
430
|
-
exports.isConcurrentMode = isConcurrentMode;
|
|
431
|
-
exports.isContextConsumer = isContextConsumer;
|
|
432
|
-
exports.isContextProvider = isContextProvider;
|
|
433
|
-
exports.isElement = isElement;
|
|
434
|
-
exports.isForwardRef = isForwardRef;
|
|
435
|
-
exports.isFragment = isFragment;
|
|
436
|
-
exports.isLazy = isLazy;
|
|
437
|
-
exports.isMemo = isMemo;
|
|
438
|
-
exports.isPortal = isPortal;
|
|
439
|
-
exports.isProfiler = isProfiler;
|
|
440
|
-
exports.isStrictMode = isStrictMode;
|
|
441
|
-
exports.isSuspense = isSuspense;
|
|
442
|
-
exports.isValidElementType = isValidElementType;
|
|
443
|
-
exports.typeOf = typeOf;
|
|
444
|
-
})();
|
|
445
|
-
}
|
|
446
|
-
});
|
|
447
|
-
var reactIs_development_1 = reactIs_development.AsyncMode;
|
|
448
|
-
var reactIs_development_2 = reactIs_development.ConcurrentMode;
|
|
449
|
-
var reactIs_development_3 = reactIs_development.ContextConsumer;
|
|
450
|
-
var reactIs_development_4 = reactIs_development.ContextProvider;
|
|
451
|
-
var reactIs_development_5 = reactIs_development.Element;
|
|
452
|
-
var reactIs_development_6 = reactIs_development.ForwardRef;
|
|
453
|
-
var reactIs_development_7 = reactIs_development.Fragment;
|
|
454
|
-
var reactIs_development_8 = reactIs_development.Lazy;
|
|
455
|
-
var reactIs_development_9 = reactIs_development.Memo;
|
|
456
|
-
var reactIs_development_10 = reactIs_development.Portal;
|
|
457
|
-
var reactIs_development_11 = reactIs_development.Profiler;
|
|
458
|
-
var reactIs_development_12 = reactIs_development.StrictMode;
|
|
459
|
-
var reactIs_development_13 = reactIs_development.Suspense;
|
|
460
|
-
var reactIs_development_14 = reactIs_development.isAsyncMode;
|
|
461
|
-
var reactIs_development_15 = reactIs_development.isConcurrentMode;
|
|
462
|
-
var reactIs_development_16 = reactIs_development.isContextConsumer;
|
|
463
|
-
var reactIs_development_17 = reactIs_development.isContextProvider;
|
|
464
|
-
var reactIs_development_18 = reactIs_development.isElement;
|
|
465
|
-
var reactIs_development_19 = reactIs_development.isForwardRef;
|
|
466
|
-
var reactIs_development_20 = reactIs_development.isFragment;
|
|
467
|
-
var reactIs_development_21 = reactIs_development.isLazy;
|
|
468
|
-
var reactIs_development_22 = reactIs_development.isMemo;
|
|
469
|
-
var reactIs_development_23 = reactIs_development.isPortal;
|
|
470
|
-
var reactIs_development_24 = reactIs_development.isProfiler;
|
|
471
|
-
var reactIs_development_25 = reactIs_development.isStrictMode;
|
|
472
|
-
var reactIs_development_26 = reactIs_development.isSuspense;
|
|
473
|
-
var reactIs_development_27 = reactIs_development.isValidElementType;
|
|
474
|
-
var reactIs_development_28 = reactIs_development.typeOf;
|
|
475
|
-
|
|
476
|
-
var reactIs = createCommonjsModule(function (module) {
|
|
477
|
-
|
|
478
|
-
if (process.env.NODE_ENV === 'production') {
|
|
479
|
-
module.exports = reactIs_production_min;
|
|
480
|
-
} else {
|
|
481
|
-
module.exports = reactIs_development;
|
|
482
|
-
}
|
|
483
|
-
});
|
|
484
|
-
var reactIs_1 = reactIs.AsyncMode;
|
|
485
|
-
var reactIs_2 = reactIs.ConcurrentMode;
|
|
486
|
-
var reactIs_3 = reactIs.ContextConsumer;
|
|
487
|
-
var reactIs_4 = reactIs.ContextProvider;
|
|
488
|
-
var reactIs_5 = reactIs.Element;
|
|
489
|
-
var reactIs_6 = reactIs.ForwardRef;
|
|
490
|
-
var reactIs_7 = reactIs.Fragment;
|
|
491
|
-
var reactIs_8 = reactIs.Lazy;
|
|
492
|
-
var reactIs_9 = reactIs.Memo;
|
|
493
|
-
var reactIs_10 = reactIs.Portal;
|
|
494
|
-
var reactIs_11 = reactIs.Profiler;
|
|
495
|
-
var reactIs_12 = reactIs.StrictMode;
|
|
496
|
-
var reactIs_13 = reactIs.Suspense;
|
|
497
|
-
var reactIs_14 = reactIs.isAsyncMode;
|
|
498
|
-
var reactIs_15 = reactIs.isConcurrentMode;
|
|
499
|
-
var reactIs_16 = reactIs.isContextConsumer;
|
|
500
|
-
var reactIs_17 = reactIs.isContextProvider;
|
|
501
|
-
var reactIs_18 = reactIs.isElement;
|
|
502
|
-
var reactIs_19 = reactIs.isForwardRef;
|
|
503
|
-
var reactIs_20 = reactIs.isFragment;
|
|
504
|
-
var reactIs_21 = reactIs.isLazy;
|
|
505
|
-
var reactIs_22 = reactIs.isMemo;
|
|
506
|
-
var reactIs_23 = reactIs.isPortal;
|
|
507
|
-
var reactIs_24 = reactIs.isProfiler;
|
|
508
|
-
var reactIs_25 = reactIs.isStrictMode;
|
|
509
|
-
var reactIs_26 = reactIs.isSuspense;
|
|
510
|
-
var reactIs_27 = reactIs.isValidElementType;
|
|
511
|
-
var reactIs_28 = reactIs.typeOf;
|
|
512
|
-
|
|
513
|
-
function stylis_min (W) {
|
|
514
|
-
function M(d, c, e, h, a) {
|
|
515
|
-
for (var m = 0, b = 0, v = 0, n = 0, q, g, x = 0, K = 0, k, u = k = q = 0, l = 0, r = 0, I = 0, t = 0, B = e.length, J = B - 1, y, f = '', p = '', F = '', G = '', C; l < B;) {
|
|
516
|
-
g = e.charCodeAt(l);
|
|
517
|
-
l === J && 0 !== b + n + v + m && (0 !== b && (g = 47 === b ? 10 : 47), n = v = m = 0, B++, J++);
|
|
518
|
-
|
|
519
|
-
if (0 === b + n + v + m) {
|
|
520
|
-
if (l === J && (0 < r && (f = f.replace(N, '')), 0 < f.trim().length)) {
|
|
521
|
-
switch (g) {
|
|
522
|
-
case 32:
|
|
523
|
-
case 9:
|
|
524
|
-
case 59:
|
|
525
|
-
case 13:
|
|
526
|
-
case 10:
|
|
527
|
-
break;
|
|
528
|
-
|
|
529
|
-
default:
|
|
530
|
-
f += e.charAt(l);
|
|
531
|
-
}
|
|
532
|
-
|
|
533
|
-
g = 59;
|
|
534
|
-
}
|
|
535
|
-
|
|
536
|
-
switch (g) {
|
|
537
|
-
case 123:
|
|
538
|
-
f = f.trim();
|
|
539
|
-
q = f.charCodeAt(0);
|
|
540
|
-
k = 1;
|
|
541
|
-
|
|
542
|
-
for (t = ++l; l < B;) {
|
|
543
|
-
switch (g = e.charCodeAt(l)) {
|
|
544
|
-
case 123:
|
|
545
|
-
k++;
|
|
546
|
-
break;
|
|
547
|
-
|
|
548
|
-
case 125:
|
|
549
|
-
k--;
|
|
550
|
-
break;
|
|
551
|
-
|
|
552
|
-
case 47:
|
|
553
|
-
switch (g = e.charCodeAt(l + 1)) {
|
|
554
|
-
case 42:
|
|
555
|
-
case 47:
|
|
556
|
-
a: {
|
|
557
|
-
for (u = l + 1; u < J; ++u) {
|
|
558
|
-
switch (e.charCodeAt(u)) {
|
|
559
|
-
case 47:
|
|
560
|
-
if (42 === g && 42 === e.charCodeAt(u - 1) && l + 2 !== u) {
|
|
561
|
-
l = u + 1;
|
|
562
|
-
break a;
|
|
563
|
-
}
|
|
564
|
-
|
|
565
|
-
break;
|
|
566
|
-
|
|
567
|
-
case 10:
|
|
568
|
-
if (47 === g) {
|
|
569
|
-
l = u + 1;
|
|
570
|
-
break a;
|
|
571
|
-
}
|
|
572
|
-
|
|
573
|
-
}
|
|
574
|
-
}
|
|
575
|
-
|
|
576
|
-
l = u;
|
|
577
|
-
}
|
|
578
|
-
|
|
579
|
-
}
|
|
580
|
-
|
|
581
|
-
break;
|
|
582
|
-
|
|
583
|
-
case 91:
|
|
584
|
-
g++;
|
|
585
|
-
|
|
586
|
-
case 40:
|
|
587
|
-
g++;
|
|
588
|
-
|
|
589
|
-
case 34:
|
|
590
|
-
case 39:
|
|
591
|
-
for (; l++ < J && e.charCodeAt(l) !== g;) {
|
|
592
|
-
}
|
|
593
|
-
|
|
594
|
-
}
|
|
595
|
-
|
|
596
|
-
if (0 === k) break;
|
|
597
|
-
l++;
|
|
598
|
-
}
|
|
599
|
-
|
|
600
|
-
k = e.substring(t, l);
|
|
601
|
-
0 === q && (q = (f = f.replace(ca, '').trim()).charCodeAt(0));
|
|
602
|
-
|
|
603
|
-
switch (q) {
|
|
604
|
-
case 64:
|
|
605
|
-
0 < r && (f = f.replace(N, ''));
|
|
606
|
-
g = f.charCodeAt(1);
|
|
607
|
-
|
|
608
|
-
switch (g) {
|
|
609
|
-
case 100:
|
|
610
|
-
case 109:
|
|
611
|
-
case 115:
|
|
612
|
-
case 45:
|
|
613
|
-
r = c;
|
|
614
|
-
break;
|
|
615
|
-
|
|
616
|
-
default:
|
|
617
|
-
r = O;
|
|
618
|
-
}
|
|
619
|
-
|
|
620
|
-
k = M(c, r, k, g, a + 1);
|
|
621
|
-
t = k.length;
|
|
622
|
-
0 < A && (r = X(O, f, I), C = H(3, k, r, c, D, z, t, g, a, h), f = r.join(''), void 0 !== C && 0 === (t = (k = C.trim()).length) && (g = 0, k = ''));
|
|
623
|
-
if (0 < t) switch (g) {
|
|
624
|
-
case 115:
|
|
625
|
-
f = f.replace(da, ea);
|
|
626
|
-
|
|
627
|
-
case 100:
|
|
628
|
-
case 109:
|
|
629
|
-
case 45:
|
|
630
|
-
k = f + '{' + k + '}';
|
|
631
|
-
break;
|
|
632
|
-
|
|
633
|
-
case 107:
|
|
634
|
-
f = f.replace(fa, '$1 $2');
|
|
635
|
-
k = f + '{' + k + '}';
|
|
636
|
-
k = 1 === w || 2 === w && L('@' + k, 3) ? '@-webkit-' + k + '@' + k : '@' + k;
|
|
637
|
-
break;
|
|
638
|
-
|
|
639
|
-
default:
|
|
640
|
-
k = f + k, 112 === h && (k = (p += k, ''));
|
|
641
|
-
} else k = '';
|
|
642
|
-
break;
|
|
643
|
-
|
|
644
|
-
default:
|
|
645
|
-
k = M(c, X(c, f, I), k, h, a + 1);
|
|
646
|
-
}
|
|
647
|
-
|
|
648
|
-
F += k;
|
|
649
|
-
k = I = r = u = q = 0;
|
|
650
|
-
f = '';
|
|
651
|
-
g = e.charCodeAt(++l);
|
|
652
|
-
break;
|
|
653
|
-
|
|
654
|
-
case 125:
|
|
655
|
-
case 59:
|
|
656
|
-
f = (0 < r ? f.replace(N, '') : f).trim();
|
|
657
|
-
if (1 < (t = f.length)) switch (0 === u && (q = f.charCodeAt(0), 45 === q || 96 < q && 123 > q) && (t = (f = f.replace(' ', ':')).length), 0 < A && void 0 !== (C = H(1, f, c, d, D, z, p.length, h, a, h)) && 0 === (t = (f = C.trim()).length) && (f = '\x00\x00'), q = f.charCodeAt(0), g = f.charCodeAt(1), q) {
|
|
658
|
-
case 0:
|
|
659
|
-
break;
|
|
660
|
-
|
|
661
|
-
case 64:
|
|
662
|
-
if (105 === g || 99 === g) {
|
|
663
|
-
G += f + e.charAt(l);
|
|
664
|
-
break;
|
|
665
|
-
}
|
|
666
|
-
|
|
667
|
-
default:
|
|
668
|
-
58 !== f.charCodeAt(t - 1) && (p += P(f, q, g, f.charCodeAt(2)));
|
|
669
|
-
}
|
|
670
|
-
I = r = u = q = 0;
|
|
671
|
-
f = '';
|
|
672
|
-
g = e.charCodeAt(++l);
|
|
673
|
-
}
|
|
674
|
-
}
|
|
675
|
-
|
|
676
|
-
switch (g) {
|
|
677
|
-
case 13:
|
|
678
|
-
case 10:
|
|
679
|
-
47 === b ? b = 0 : 0 === 1 + q && 107 !== h && 0 < f.length && (r = 1, f += '\x00');
|
|
680
|
-
0 < A * Y && H(0, f, c, d, D, z, p.length, h, a, h);
|
|
681
|
-
z = 1;
|
|
682
|
-
D++;
|
|
683
|
-
break;
|
|
684
|
-
|
|
685
|
-
case 59:
|
|
686
|
-
case 125:
|
|
687
|
-
if (0 === b + n + v + m) {
|
|
688
|
-
z++;
|
|
689
|
-
break;
|
|
690
|
-
}
|
|
691
|
-
|
|
692
|
-
default:
|
|
693
|
-
z++;
|
|
694
|
-
y = e.charAt(l);
|
|
695
|
-
|
|
696
|
-
switch (g) {
|
|
697
|
-
case 9:
|
|
698
|
-
case 32:
|
|
699
|
-
if (0 === n + m + b) switch (x) {
|
|
700
|
-
case 44:
|
|
701
|
-
case 58:
|
|
702
|
-
case 9:
|
|
703
|
-
case 32:
|
|
704
|
-
y = '';
|
|
705
|
-
break;
|
|
706
|
-
|
|
707
|
-
default:
|
|
708
|
-
32 !== g && (y = ' ');
|
|
709
|
-
}
|
|
710
|
-
break;
|
|
711
|
-
|
|
712
|
-
case 0:
|
|
713
|
-
y = '\\0';
|
|
714
|
-
break;
|
|
715
|
-
|
|
716
|
-
case 12:
|
|
717
|
-
y = '\\f';
|
|
718
|
-
break;
|
|
719
|
-
|
|
720
|
-
case 11:
|
|
721
|
-
y = '\\v';
|
|
722
|
-
break;
|
|
723
|
-
|
|
724
|
-
case 38:
|
|
725
|
-
0 === n + b + m && (r = I = 1, y = '\f' + y);
|
|
726
|
-
break;
|
|
727
|
-
|
|
728
|
-
case 108:
|
|
729
|
-
if (0 === n + b + m + E && 0 < u) switch (l - u) {
|
|
730
|
-
case 2:
|
|
731
|
-
112 === x && 58 === e.charCodeAt(l - 3) && (E = x);
|
|
732
|
-
|
|
733
|
-
case 8:
|
|
734
|
-
111 === K && (E = K);
|
|
735
|
-
}
|
|
736
|
-
break;
|
|
737
|
-
|
|
738
|
-
case 58:
|
|
739
|
-
0 === n + b + m && (u = l);
|
|
740
|
-
break;
|
|
741
|
-
|
|
742
|
-
case 44:
|
|
743
|
-
0 === b + v + n + m && (r = 1, y += '\r');
|
|
744
|
-
break;
|
|
745
|
-
|
|
746
|
-
case 34:
|
|
747
|
-
case 39:
|
|
748
|
-
0 === b && (n = n === g ? 0 : 0 === n ? g : n);
|
|
749
|
-
break;
|
|
750
|
-
|
|
751
|
-
case 91:
|
|
752
|
-
0 === n + b + v && m++;
|
|
753
|
-
break;
|
|
754
|
-
|
|
755
|
-
case 93:
|
|
756
|
-
0 === n + b + v && m--;
|
|
757
|
-
break;
|
|
758
|
-
|
|
759
|
-
case 41:
|
|
760
|
-
0 === n + b + m && v--;
|
|
761
|
-
break;
|
|
762
|
-
|
|
763
|
-
case 40:
|
|
764
|
-
if (0 === n + b + m) {
|
|
765
|
-
if (0 === q) switch (2 * x + 3 * K) {
|
|
766
|
-
case 533:
|
|
767
|
-
break;
|
|
768
|
-
|
|
769
|
-
default:
|
|
770
|
-
q = 1;
|
|
771
|
-
}
|
|
772
|
-
v++;
|
|
773
|
-
}
|
|
774
|
-
|
|
775
|
-
break;
|
|
776
|
-
|
|
777
|
-
case 64:
|
|
778
|
-
0 === b + v + n + m + u + k && (k = 1);
|
|
779
|
-
break;
|
|
780
|
-
|
|
781
|
-
case 42:
|
|
782
|
-
case 47:
|
|
783
|
-
if (!(0 < n + m + v)) switch (b) {
|
|
784
|
-
case 0:
|
|
785
|
-
switch (2 * g + 3 * e.charCodeAt(l + 1)) {
|
|
786
|
-
case 235:
|
|
787
|
-
b = 47;
|
|
788
|
-
break;
|
|
789
|
-
|
|
790
|
-
case 220:
|
|
791
|
-
t = l, b = 42;
|
|
792
|
-
}
|
|
793
|
-
|
|
794
|
-
break;
|
|
795
|
-
|
|
796
|
-
case 42:
|
|
797
|
-
47 === g && 42 === x && t + 2 !== l && (33 === e.charCodeAt(t + 2) && (p += e.substring(t, l + 1)), y = '', b = 0);
|
|
798
|
-
}
|
|
799
|
-
}
|
|
800
|
-
|
|
801
|
-
0 === b && (f += y);
|
|
802
|
-
}
|
|
803
|
-
|
|
804
|
-
K = x;
|
|
805
|
-
x = g;
|
|
806
|
-
l++;
|
|
807
|
-
}
|
|
808
|
-
|
|
809
|
-
t = p.length;
|
|
810
|
-
|
|
811
|
-
if (0 < t) {
|
|
812
|
-
r = c;
|
|
813
|
-
if (0 < A && (C = H(2, p, r, d, D, z, t, h, a, h), void 0 !== C && 0 === (p = C).length)) return G + p + F;
|
|
814
|
-
p = r.join(',') + '{' + p + '}';
|
|
815
|
-
|
|
816
|
-
if (0 !== w * E) {
|
|
817
|
-
2 !== w || L(p, 2) || (E = 0);
|
|
818
|
-
|
|
819
|
-
switch (E) {
|
|
820
|
-
case 111:
|
|
821
|
-
p = p.replace(ha, ':-moz-$1') + p;
|
|
822
|
-
break;
|
|
823
|
-
|
|
824
|
-
case 112:
|
|
825
|
-
p = p.replace(Q, '::-webkit-input-$1') + p.replace(Q, '::-moz-$1') + p.replace(Q, ':-ms-input-$1') + p;
|
|
826
|
-
}
|
|
827
|
-
|
|
828
|
-
E = 0;
|
|
829
|
-
}
|
|
830
|
-
}
|
|
831
|
-
|
|
832
|
-
return G + p + F;
|
|
833
|
-
}
|
|
834
|
-
|
|
835
|
-
function X(d, c, e) {
|
|
836
|
-
var h = c.trim().split(ia);
|
|
837
|
-
c = h;
|
|
838
|
-
var a = h.length,
|
|
839
|
-
m = d.length;
|
|
840
|
-
|
|
841
|
-
switch (m) {
|
|
842
|
-
case 0:
|
|
843
|
-
case 1:
|
|
844
|
-
var b = 0;
|
|
845
|
-
|
|
846
|
-
for (d = 0 === m ? '' : d[0] + ' '; b < a; ++b) {
|
|
847
|
-
c[b] = Z(d, c[b], e).trim();
|
|
848
|
-
}
|
|
849
|
-
|
|
850
|
-
break;
|
|
851
|
-
|
|
852
|
-
default:
|
|
853
|
-
var v = b = 0;
|
|
854
|
-
|
|
855
|
-
for (c = []; b < a; ++b) {
|
|
856
|
-
for (var n = 0; n < m; ++n) {
|
|
857
|
-
c[v++] = Z(d[n] + ' ', h[b], e).trim();
|
|
858
|
-
}
|
|
859
|
-
}
|
|
860
|
-
|
|
861
|
-
}
|
|
862
|
-
|
|
863
|
-
return c;
|
|
864
|
-
}
|
|
865
|
-
|
|
866
|
-
function Z(d, c, e) {
|
|
867
|
-
var h = c.charCodeAt(0);
|
|
868
|
-
33 > h && (h = (c = c.trim()).charCodeAt(0));
|
|
869
|
-
|
|
870
|
-
switch (h) {
|
|
871
|
-
case 38:
|
|
872
|
-
return c.replace(F, '$1' + d.trim());
|
|
873
|
-
|
|
874
|
-
case 58:
|
|
875
|
-
return d.trim() + c.replace(F, '$1' + d.trim());
|
|
876
|
-
|
|
877
|
-
default:
|
|
878
|
-
if (0 < 1 * e && 0 < c.indexOf('\f')) return c.replace(F, (58 === d.charCodeAt(0) ? '' : '$1') + d.trim());
|
|
879
|
-
}
|
|
880
|
-
|
|
881
|
-
return d + c;
|
|
882
|
-
}
|
|
883
|
-
|
|
884
|
-
function P(d, c, e, h) {
|
|
885
|
-
var a = d + ';',
|
|
886
|
-
m = 2 * c + 3 * e + 4 * h;
|
|
887
|
-
|
|
888
|
-
if (944 === m) {
|
|
889
|
-
d = a.indexOf(':', 9) + 1;
|
|
890
|
-
var b = a.substring(d, a.length - 1).trim();
|
|
891
|
-
b = a.substring(0, d).trim() + b + ';';
|
|
892
|
-
return 1 === w || 2 === w && L(b, 1) ? '-webkit-' + b + b : b;
|
|
893
|
-
}
|
|
894
|
-
|
|
895
|
-
if (0 === w || 2 === w && !L(a, 1)) return a;
|
|
896
|
-
|
|
897
|
-
switch (m) {
|
|
898
|
-
case 1015:
|
|
899
|
-
return 97 === a.charCodeAt(10) ? '-webkit-' + a + a : a;
|
|
900
|
-
|
|
901
|
-
case 951:
|
|
902
|
-
return 116 === a.charCodeAt(3) ? '-webkit-' + a + a : a;
|
|
903
|
-
|
|
904
|
-
case 963:
|
|
905
|
-
return 110 === a.charCodeAt(5) ? '-webkit-' + a + a : a;
|
|
906
|
-
|
|
907
|
-
case 1009:
|
|
908
|
-
if (100 !== a.charCodeAt(4)) break;
|
|
909
|
-
|
|
910
|
-
case 969:
|
|
911
|
-
case 942:
|
|
912
|
-
return '-webkit-' + a + a;
|
|
913
|
-
|
|
914
|
-
case 978:
|
|
915
|
-
return '-webkit-' + a + '-moz-' + a + a;
|
|
916
|
-
|
|
917
|
-
case 1019:
|
|
918
|
-
case 983:
|
|
919
|
-
return '-webkit-' + a + '-moz-' + a + '-ms-' + a + a;
|
|
920
|
-
|
|
921
|
-
case 883:
|
|
922
|
-
if (45 === a.charCodeAt(8)) return '-webkit-' + a + a;
|
|
923
|
-
if (0 < a.indexOf('image-set(', 11)) return a.replace(ja, '$1-webkit-$2') + a;
|
|
924
|
-
break;
|
|
925
|
-
|
|
926
|
-
case 932:
|
|
927
|
-
if (45 === a.charCodeAt(4)) switch (a.charCodeAt(5)) {
|
|
928
|
-
case 103:
|
|
929
|
-
return '-webkit-box-' + a.replace('-grow', '') + '-webkit-' + a + '-ms-' + a.replace('grow', 'positive') + a;
|
|
930
|
-
|
|
931
|
-
case 115:
|
|
932
|
-
return '-webkit-' + a + '-ms-' + a.replace('shrink', 'negative') + a;
|
|
933
|
-
|
|
934
|
-
case 98:
|
|
935
|
-
return '-webkit-' + a + '-ms-' + a.replace('basis', 'preferred-size') + a;
|
|
936
|
-
}
|
|
937
|
-
return '-webkit-' + a + '-ms-' + a + a;
|
|
938
|
-
|
|
939
|
-
case 964:
|
|
940
|
-
return '-webkit-' + a + '-ms-flex-' + a + a;
|
|
941
|
-
|
|
942
|
-
case 1023:
|
|
943
|
-
if (99 !== a.charCodeAt(8)) break;
|
|
944
|
-
b = a.substring(a.indexOf(':', 15)).replace('flex-', '').replace('space-between', 'justify');
|
|
945
|
-
return '-webkit-box-pack' + b + '-webkit-' + a + '-ms-flex-pack' + b + a;
|
|
946
|
-
|
|
947
|
-
case 1005:
|
|
948
|
-
return ka.test(a) ? a.replace(aa, ':-webkit-') + a.replace(aa, ':-moz-') + a : a;
|
|
949
|
-
|
|
950
|
-
case 1e3:
|
|
951
|
-
b = a.substring(13).trim();
|
|
952
|
-
c = b.indexOf('-') + 1;
|
|
953
|
-
|
|
954
|
-
switch (b.charCodeAt(0) + b.charCodeAt(c)) {
|
|
955
|
-
case 226:
|
|
956
|
-
b = a.replace(G, 'tb');
|
|
957
|
-
break;
|
|
958
|
-
|
|
959
|
-
case 232:
|
|
960
|
-
b = a.replace(G, 'tb-rl');
|
|
961
|
-
break;
|
|
962
|
-
|
|
963
|
-
case 220:
|
|
964
|
-
b = a.replace(G, 'lr');
|
|
965
|
-
break;
|
|
966
|
-
|
|
967
|
-
default:
|
|
968
|
-
return a;
|
|
969
|
-
}
|
|
970
|
-
|
|
971
|
-
return '-webkit-' + a + '-ms-' + b + a;
|
|
972
|
-
|
|
973
|
-
case 1017:
|
|
974
|
-
if (-1 === a.indexOf('sticky', 9)) break;
|
|
975
|
-
|
|
976
|
-
case 975:
|
|
977
|
-
c = (a = d).length - 10;
|
|
978
|
-
b = (33 === a.charCodeAt(c) ? a.substring(0, c) : a).substring(d.indexOf(':', 7) + 1).trim();
|
|
979
|
-
|
|
980
|
-
switch (m = b.charCodeAt(0) + (b.charCodeAt(7) | 0)) {
|
|
981
|
-
case 203:
|
|
982
|
-
if (111 > b.charCodeAt(8)) break;
|
|
983
|
-
|
|
984
|
-
case 115:
|
|
985
|
-
a = a.replace(b, '-webkit-' + b) + ';' + a;
|
|
986
|
-
break;
|
|
987
|
-
|
|
988
|
-
case 207:
|
|
989
|
-
case 102:
|
|
990
|
-
a = a.replace(b, '-webkit-' + (102 < m ? 'inline-' : '') + 'box') + ';' + a.replace(b, '-webkit-' + b) + ';' + a.replace(b, '-ms-' + b + 'box') + ';' + a;
|
|
991
|
-
}
|
|
992
|
-
|
|
993
|
-
return a + ';';
|
|
994
|
-
|
|
995
|
-
case 938:
|
|
996
|
-
if (45 === a.charCodeAt(5)) switch (a.charCodeAt(6)) {
|
|
997
|
-
case 105:
|
|
998
|
-
return b = a.replace('-items', ''), '-webkit-' + a + '-webkit-box-' + b + '-ms-flex-' + b + a;
|
|
999
|
-
|
|
1000
|
-
case 115:
|
|
1001
|
-
return '-webkit-' + a + '-ms-flex-item-' + a.replace(ba, '') + a;
|
|
1002
|
-
|
|
1003
|
-
default:
|
|
1004
|
-
return '-webkit-' + a + '-ms-flex-line-pack' + a.replace('align-content', '').replace(ba, '') + a;
|
|
1005
|
-
}
|
|
1006
|
-
break;
|
|
1007
|
-
|
|
1008
|
-
case 973:
|
|
1009
|
-
case 989:
|
|
1010
|
-
if (45 !== a.charCodeAt(3) || 122 === a.charCodeAt(4)) break;
|
|
1011
|
-
|
|
1012
|
-
case 931:
|
|
1013
|
-
case 953:
|
|
1014
|
-
if (!0 === la.test(d)) return 115 === (b = d.substring(d.indexOf(':') + 1)).charCodeAt(0) ? P(d.replace('stretch', 'fill-available'), c, e, h).replace(':fill-available', ':stretch') : a.replace(b, '-webkit-' + b) + a.replace(b, '-moz-' + b.replace('fill-', '')) + a;
|
|
1015
|
-
break;
|
|
1016
|
-
|
|
1017
|
-
case 962:
|
|
1018
|
-
if (a = '-webkit-' + a + (102 === a.charCodeAt(5) ? '-ms-' + a : '') + a, 211 === e + h && 105 === a.charCodeAt(13) && 0 < a.indexOf('transform', 10)) return a.substring(0, a.indexOf(';', 27) + 1).replace(ma, '$1-webkit-$2') + a;
|
|
1019
|
-
}
|
|
1020
|
-
|
|
1021
|
-
return a;
|
|
1022
|
-
}
|
|
1023
|
-
|
|
1024
|
-
function L(d, c) {
|
|
1025
|
-
var e = d.indexOf(1 === c ? ':' : '{'),
|
|
1026
|
-
h = d.substring(0, 3 !== c ? e : 10);
|
|
1027
|
-
e = d.substring(e + 1, d.length - 1);
|
|
1028
|
-
return R(2 !== c ? h : h.replace(na, '$1'), e, c);
|
|
1029
|
-
}
|
|
1030
|
-
|
|
1031
|
-
function ea(d, c) {
|
|
1032
|
-
var e = P(c, c.charCodeAt(0), c.charCodeAt(1), c.charCodeAt(2));
|
|
1033
|
-
return e !== c + ';' ? e.replace(oa, ' or ($1)').substring(4) : '(' + c + ')';
|
|
1034
|
-
}
|
|
1035
|
-
|
|
1036
|
-
function H(d, c, e, h, a, m, b, v, n, q) {
|
|
1037
|
-
for (var g = 0, x = c, w; g < A; ++g) {
|
|
1038
|
-
switch (w = S[g].call(B, d, x, e, h, a, m, b, v, n, q)) {
|
|
1039
|
-
case void 0:
|
|
1040
|
-
case !1:
|
|
1041
|
-
case !0:
|
|
1042
|
-
case null:
|
|
1043
|
-
break;
|
|
1044
|
-
|
|
1045
|
-
default:
|
|
1046
|
-
x = w;
|
|
1047
|
-
}
|
|
1048
|
-
}
|
|
1049
|
-
|
|
1050
|
-
if (x !== c) return x;
|
|
1051
|
-
}
|
|
1052
|
-
|
|
1053
|
-
function T(d) {
|
|
1054
|
-
switch (d) {
|
|
1055
|
-
case void 0:
|
|
1056
|
-
case null:
|
|
1057
|
-
A = S.length = 0;
|
|
1058
|
-
break;
|
|
1059
|
-
|
|
1060
|
-
default:
|
|
1061
|
-
if ('function' === typeof d) S[A++] = d;else if ('object' === typeof d) for (var c = 0, e = d.length; c < e; ++c) {
|
|
1062
|
-
T(d[c]);
|
|
1063
|
-
} else Y = !!d | 0;
|
|
1064
|
-
}
|
|
1065
|
-
|
|
1066
|
-
return T;
|
|
1067
|
-
}
|
|
1068
|
-
|
|
1069
|
-
function U(d) {
|
|
1070
|
-
d = d.prefix;
|
|
1071
|
-
void 0 !== d && (R = null, d ? 'function' !== typeof d ? w = 1 : (w = 2, R = d) : w = 0);
|
|
1072
|
-
return U;
|
|
1073
|
-
}
|
|
1074
|
-
|
|
1075
|
-
function B(d, c) {
|
|
1076
|
-
var e = d;
|
|
1077
|
-
33 > e.charCodeAt(0) && (e = e.trim());
|
|
1078
|
-
V = e;
|
|
1079
|
-
e = [V];
|
|
1080
|
-
|
|
1081
|
-
if (0 < A) {
|
|
1082
|
-
var h = H(-1, c, e, e, D, z, 0, 0, 0, 0);
|
|
1083
|
-
void 0 !== h && 'string' === typeof h && (c = h);
|
|
1084
|
-
}
|
|
1085
|
-
|
|
1086
|
-
var a = M(O, e, c, 0, 0);
|
|
1087
|
-
0 < A && (h = H(-2, a, e, e, D, z, a.length, 0, 0, 0), void 0 !== h && (a = h));
|
|
1088
|
-
V = '';
|
|
1089
|
-
E = 0;
|
|
1090
|
-
z = D = 1;
|
|
1091
|
-
return a;
|
|
1092
|
-
}
|
|
1093
|
-
|
|
1094
|
-
var ca = /^\0+/g,
|
|
1095
|
-
N = /[\0\r\f]/g,
|
|
1096
|
-
aa = /: */g,
|
|
1097
|
-
ka = /zoo|gra/,
|
|
1098
|
-
ma = /([,: ])(transform)/g,
|
|
1099
|
-
ia = /,\r+?/g,
|
|
1100
|
-
F = /([\t\r\n ])*\f?&/g,
|
|
1101
|
-
fa = /@(k\w+)\s*(\S*)\s*/,
|
|
1102
|
-
Q = /::(place)/g,
|
|
1103
|
-
ha = /:(read-only)/g,
|
|
1104
|
-
G = /[svh]\w+-[tblr]{2}/,
|
|
1105
|
-
da = /\(\s*(.*)\s*\)/g,
|
|
1106
|
-
oa = /([\s\S]*?);/g,
|
|
1107
|
-
ba = /-self|flex-/g,
|
|
1108
|
-
na = /[^]*?(:[rp][el]a[\w-]+)[^]*/,
|
|
1109
|
-
la = /stretch|:\s*\w+\-(?:conte|avail)/,
|
|
1110
|
-
ja = /([^-])(image-set\()/,
|
|
1111
|
-
z = 1,
|
|
1112
|
-
D = 1,
|
|
1113
|
-
E = 0,
|
|
1114
|
-
w = 1,
|
|
1115
|
-
O = [],
|
|
1116
|
-
S = [],
|
|
1117
|
-
A = 0,
|
|
1118
|
-
R = null,
|
|
1119
|
-
Y = 0,
|
|
1120
|
-
V = '';
|
|
1121
|
-
B.use = T;
|
|
1122
|
-
B.set = U;
|
|
1123
|
-
void 0 !== W && U(W);
|
|
1124
|
-
return B;
|
|
1125
|
-
}
|
|
1126
|
-
|
|
1127
|
-
var unitlessKeys = {
|
|
1128
|
-
animationIterationCount: 1,
|
|
1129
|
-
borderImageOutset: 1,
|
|
1130
|
-
borderImageSlice: 1,
|
|
1131
|
-
borderImageWidth: 1,
|
|
1132
|
-
boxFlex: 1,
|
|
1133
|
-
boxFlexGroup: 1,
|
|
1134
|
-
boxOrdinalGroup: 1,
|
|
1135
|
-
columnCount: 1,
|
|
1136
|
-
columns: 1,
|
|
1137
|
-
flex: 1,
|
|
1138
|
-
flexGrow: 1,
|
|
1139
|
-
flexPositive: 1,
|
|
1140
|
-
flexShrink: 1,
|
|
1141
|
-
flexNegative: 1,
|
|
1142
|
-
flexOrder: 1,
|
|
1143
|
-
gridRow: 1,
|
|
1144
|
-
gridRowEnd: 1,
|
|
1145
|
-
gridRowSpan: 1,
|
|
1146
|
-
gridRowStart: 1,
|
|
1147
|
-
gridColumn: 1,
|
|
1148
|
-
gridColumnEnd: 1,
|
|
1149
|
-
gridColumnSpan: 1,
|
|
1150
|
-
gridColumnStart: 1,
|
|
1151
|
-
msGridRow: 1,
|
|
1152
|
-
msGridRowSpan: 1,
|
|
1153
|
-
msGridColumn: 1,
|
|
1154
|
-
msGridColumnSpan: 1,
|
|
1155
|
-
fontWeight: 1,
|
|
1156
|
-
lineHeight: 1,
|
|
1157
|
-
opacity: 1,
|
|
1158
|
-
order: 1,
|
|
1159
|
-
orphans: 1,
|
|
1160
|
-
tabSize: 1,
|
|
1161
|
-
widows: 1,
|
|
1162
|
-
zIndex: 1,
|
|
1163
|
-
zoom: 1,
|
|
1164
|
-
WebkitLineClamp: 1,
|
|
1165
|
-
// SVG-related properties
|
|
1166
|
-
fillOpacity: 1,
|
|
1167
|
-
floodOpacity: 1,
|
|
1168
|
-
stopOpacity: 1,
|
|
1169
|
-
strokeDasharray: 1,
|
|
1170
|
-
strokeDashoffset: 1,
|
|
1171
|
-
strokeMiterlimit: 1,
|
|
1172
|
-
strokeOpacity: 1,
|
|
1173
|
-
strokeWidth: 1
|
|
1174
|
-
};
|
|
1175
|
-
|
|
1176
|
-
function memoize(fn) {
|
|
1177
|
-
var cache = {};
|
|
1178
|
-
return function (arg) {
|
|
1179
|
-
if (cache[arg] === undefined) cache[arg] = fn(arg);
|
|
1180
|
-
return cache[arg];
|
|
1181
|
-
};
|
|
1182
|
-
}
|
|
1183
|
-
|
|
1184
|
-
var reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/; // https://esbench.com/bench/5bfee68a4cd7e6009ef61d23
|
|
1185
|
-
|
|
1186
|
-
var index = memoize(function (prop) {
|
|
1187
|
-
return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111
|
|
1188
|
-
/* o */
|
|
1189
|
-
&& prop.charCodeAt(1) === 110
|
|
1190
|
-
/* n */
|
|
1191
|
-
&& prop.charCodeAt(2) < 91;
|
|
1192
|
-
}
|
|
1193
|
-
/* Z+1 */
|
|
1194
|
-
);
|
|
1195
|
-
|
|
1196
|
-
/**
|
|
1197
|
-
* Copyright 2015, Yahoo! Inc.
|
|
1198
|
-
* Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
|
|
1199
|
-
*/
|
|
1200
|
-
var REACT_STATICS = {
|
|
1201
|
-
childContextTypes: true,
|
|
1202
|
-
contextType: true,
|
|
1203
|
-
contextTypes: true,
|
|
1204
|
-
defaultProps: true,
|
|
1205
|
-
displayName: true,
|
|
1206
|
-
getDefaultProps: true,
|
|
1207
|
-
getDerivedStateFromError: true,
|
|
1208
|
-
getDerivedStateFromProps: true,
|
|
1209
|
-
mixins: true,
|
|
1210
|
-
propTypes: true,
|
|
1211
|
-
type: true
|
|
1212
|
-
};
|
|
1213
|
-
var KNOWN_STATICS = {
|
|
1214
|
-
name: true,
|
|
1215
|
-
length: true,
|
|
1216
|
-
prototype: true,
|
|
1217
|
-
caller: true,
|
|
1218
|
-
callee: true,
|
|
1219
|
-
arguments: true,
|
|
1220
|
-
arity: true
|
|
1221
|
-
};
|
|
1222
|
-
var FORWARD_REF_STATICS = {
|
|
1223
|
-
'$$typeof': true,
|
|
1224
|
-
render: true,
|
|
1225
|
-
defaultProps: true,
|
|
1226
|
-
displayName: true,
|
|
1227
|
-
propTypes: true
|
|
1228
|
-
};
|
|
1229
|
-
var MEMO_STATICS = {
|
|
1230
|
-
'$$typeof': true,
|
|
1231
|
-
compare: true,
|
|
1232
|
-
defaultProps: true,
|
|
1233
|
-
displayName: true,
|
|
1234
|
-
propTypes: true,
|
|
1235
|
-
type: true
|
|
1236
|
-
};
|
|
1237
|
-
var TYPE_STATICS = {};
|
|
1238
|
-
TYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS;
|
|
1239
|
-
TYPE_STATICS[reactIs.Memo] = MEMO_STATICS;
|
|
1240
|
-
|
|
1241
|
-
function getStatics(component) {
|
|
1242
|
-
// React v16.11 and below
|
|
1243
|
-
if (reactIs.isMemo(component)) {
|
|
1244
|
-
return MEMO_STATICS;
|
|
1245
|
-
} // React v16.12 and above
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
return TYPE_STATICS[component['$$typeof']] || REACT_STATICS;
|
|
1249
|
-
}
|
|
1250
|
-
|
|
1251
|
-
var defineProperty = Object.defineProperty;
|
|
1252
|
-
var getOwnPropertyNames = Object.getOwnPropertyNames;
|
|
1253
|
-
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
|
|
1254
|
-
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
1255
|
-
var getPrototypeOf = Object.getPrototypeOf;
|
|
1256
|
-
var objectPrototype = Object.prototype;
|
|
1257
|
-
function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {
|
|
1258
|
-
if (typeof sourceComponent !== 'string') {
|
|
1259
|
-
// don't hoist over string (html) components
|
|
1260
|
-
if (objectPrototype) {
|
|
1261
|
-
var inheritedComponent = getPrototypeOf(sourceComponent);
|
|
1262
|
-
|
|
1263
|
-
if (inheritedComponent && inheritedComponent !== objectPrototype) {
|
|
1264
|
-
hoistNonReactStatics(targetComponent, inheritedComponent, blacklist);
|
|
1265
|
-
}
|
|
1266
|
-
}
|
|
1267
|
-
|
|
1268
|
-
var keys = getOwnPropertyNames(sourceComponent);
|
|
1269
|
-
|
|
1270
|
-
if (getOwnPropertySymbols) {
|
|
1271
|
-
keys = keys.concat(getOwnPropertySymbols(sourceComponent));
|
|
1272
|
-
}
|
|
1273
|
-
|
|
1274
|
-
var targetStatics = getStatics(targetComponent);
|
|
1275
|
-
var sourceStatics = getStatics(sourceComponent);
|
|
1276
|
-
|
|
1277
|
-
for (var i = 0; i < keys.length; ++i) {
|
|
1278
|
-
var key = keys[i];
|
|
1279
|
-
|
|
1280
|
-
if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) {
|
|
1281
|
-
var descriptor = getOwnPropertyDescriptor(sourceComponent, key);
|
|
1282
|
-
|
|
1283
|
-
try {
|
|
1284
|
-
// Avoid failures from read-only properties
|
|
1285
|
-
defineProperty(targetComponent, key, descriptor);
|
|
1286
|
-
} catch (e) {}
|
|
1287
|
-
}
|
|
1288
|
-
}
|
|
1289
|
-
}
|
|
1290
|
-
|
|
1291
|
-
return targetComponent;
|
|
1292
|
-
}
|
|
1293
|
-
|
|
1294
|
-
var hoistNonReactStatics_cjs = hoistNonReactStatics;
|
|
1295
|
-
|
|
1296
|
-
function _extends$1() {
|
|
1297
|
-
_extends$1 = Object.assign || function (target) {
|
|
1298
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
1299
|
-
var source = arguments[i];
|
|
1300
|
-
|
|
1301
|
-
for (var key in source) {
|
|
1302
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
1303
|
-
target[key] = source[key];
|
|
1304
|
-
}
|
|
1305
|
-
}
|
|
1306
|
-
}
|
|
1307
|
-
|
|
1308
|
-
return target;
|
|
1309
|
-
};
|
|
1310
|
-
|
|
1311
|
-
return _extends$1.apply(this, arguments);
|
|
1312
|
-
}
|
|
1313
|
-
|
|
1314
|
-
function _objectWithoutPropertiesLoose$1(source, excluded) {
|
|
1315
|
-
if (source == null) return {};
|
|
1316
|
-
var target = {};
|
|
1317
|
-
var sourceKeys = Object.keys(source);
|
|
1318
|
-
var key, i;
|
|
1319
|
-
|
|
1320
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
|
1321
|
-
key = sourceKeys[i];
|
|
1322
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
1323
|
-
target[key] = source[key];
|
|
1324
|
-
}
|
|
1325
|
-
|
|
1326
|
-
return target;
|
|
1327
|
-
}
|
|
1328
|
-
|
|
1329
|
-
//
|
|
1330
|
-
var interleave = (function (strings, interpolations) {
|
|
1331
|
-
var result = [strings[0]];
|
|
1332
|
-
|
|
1333
|
-
for (var i = 0, len = interpolations.length; i < len; i += 1) {
|
|
1334
|
-
result.push(interpolations[i], strings[i + 1]);
|
|
1335
|
-
}
|
|
1336
|
-
|
|
1337
|
-
return result;
|
|
1338
|
-
});
|
|
1339
|
-
|
|
1340
|
-
//
|
|
1341
|
-
var isPlainObject = (function (x) {
|
|
1342
|
-
return x !== null && typeof x === 'object' && (x.toString ? x.toString() : Object.prototype.toString.call(x)) === '[object Object]' && !reactIs_28(x);
|
|
1343
|
-
});
|
|
1344
|
-
|
|
1345
|
-
//
|
|
1346
|
-
var EMPTY_ARRAY = Object.freeze([]);
|
|
1347
|
-
var EMPTY_OBJECT = Object.freeze({});
|
|
1348
|
-
|
|
1349
|
-
//
|
|
1350
|
-
function isFunction(test) {
|
|
1351
|
-
return typeof test === 'function';
|
|
1352
|
-
}
|
|
1353
|
-
|
|
1354
|
-
//
|
|
1355
|
-
function getComponentName(target) {
|
|
1356
|
-
return (process.env.NODE_ENV !== 'production' ? typeof target === 'string' && target : false) || // $FlowFixMe
|
|
1357
|
-
target.displayName || // $FlowFixMe
|
|
1358
|
-
target.name || 'Component';
|
|
1359
|
-
}
|
|
1360
|
-
|
|
1361
|
-
//
|
|
1362
|
-
function isStatelessFunction(test) {
|
|
1363
|
-
return typeof test === 'function' && !(test.prototype && test.prototype.isReactComponent);
|
|
1364
|
-
}
|
|
1365
|
-
|
|
1366
|
-
//
|
|
1367
|
-
function isStyledComponent(target) {
|
|
1368
|
-
return target && typeof target.styledComponentId === 'string';
|
|
1369
|
-
}
|
|
1370
|
-
|
|
1371
|
-
//
|
|
1372
|
-
var SC_ATTR = typeof process !== 'undefined' && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || 'data-styled';
|
|
1373
|
-
var SC_ATTR_ACTIVE = 'active';
|
|
1374
|
-
var SC_ATTR_VERSION = 'data-styled-version';
|
|
1375
|
-
var SC_VERSION = "5.1.1";
|
|
1376
|
-
var SPLITTER = '/*!sc*/\n';
|
|
1377
|
-
var IS_BROWSER = typeof window !== 'undefined' && 'HTMLElement' in window;
|
|
1378
|
-
var DISABLE_SPEEDY = typeof SC_DISABLE_SPEEDY === 'boolean' && SC_DISABLE_SPEEDY || typeof process !== 'undefined' && (process.env.REACT_APP_SC_DISABLE_SPEEDY || process.env.SC_DISABLE_SPEEDY) || process.env.NODE_ENV !== 'production'; // Shared empty execution context when generating static styles
|
|
1379
|
-
|
|
1380
|
-
//
|
|
1381
|
-
|
|
1382
|
-
/* eslint-disable camelcase, no-undef */
|
|
1383
|
-
var getNonce = function getNonce() {
|
|
1384
|
-
return typeof __webpack_nonce__ !== 'undefined' ? __webpack_nonce__ : null;
|
|
1385
|
-
};
|
|
1386
|
-
|
|
1387
|
-
var errorMap = {
|
|
1388
|
-
"1": "Cannot create styled-component for component: %s.\n\n",
|
|
1389
|
-
"2": "Can't collect styles once you've consumed a `ServerStyleSheet`'s styles! `ServerStyleSheet` is a one off instance for each server-side render cycle.\n\n- Are you trying to reuse it across renders?\n- Are you accidentally calling collectStyles twice?\n\n",
|
|
1390
|
-
"3": "Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.\n\n",
|
|
1391
|
-
"4": "The `StyleSheetManager` expects a valid target or sheet prop!\n\n- Does this error occur on the client and is your target falsy?\n- Does this error occur on the server and is the sheet falsy?\n\n",
|
|
1392
|
-
"5": "The clone method cannot be used on the client!\n\n- Are you running in a client-like environment on the server?\n- Are you trying to run SSR on the client?\n\n",
|
|
1393
|
-
"6": "Trying to insert a new style tag, but the given Node is unmounted!\n\n- Are you using a custom target that isn't mounted?\n- Does your document not have a valid head element?\n- Have you accidentally removed a style tag manually?\n\n",
|
|
1394
|
-
"7": "ThemeProvider: Please return an object from your \"theme\" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n",
|
|
1395
|
-
"8": "ThemeProvider: Please make your \"theme\" prop an object.\n\n",
|
|
1396
|
-
"9": "Missing document `<head>`\n\n",
|
|
1397
|
-
"10": "Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021\n\n",
|
|
1398
|
-
"11": "_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.\n\n",
|
|
1399
|
-
"12": "It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n",
|
|
1400
|
-
"13": "%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.\n\n",
|
|
1401
|
-
"14": "ThemeProvider: \"theme\" prop is required.\n\n",
|
|
1402
|
-
"15": "A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n",
|
|
1403
|
-
"16": "Reached the limit of how many styled components may be created at group %s.\nYou may only create up to 1,073,741,824 components. If you're creating components dynamically,\nas for instance in your render method then you may be running into this limitation.\n\n",
|
|
1404
|
-
"17": "CSSStyleSheet could not be found on HTMLStyleElement.\nHas styled-components' style tag been unmounted or altered by another script?\n"
|
|
1405
|
-
};
|
|
1406
|
-
|
|
1407
|
-
//
|
|
1408
|
-
var ERRORS = process.env.NODE_ENV !== 'production' ? errorMap : {};
|
|
1409
|
-
/**
|
|
1410
|
-
* super basic version of sprintf
|
|
1411
|
-
*/
|
|
1412
|
-
|
|
1413
|
-
function format() {
|
|
1414
|
-
var a = arguments.length <= 0 ? undefined : arguments[0];
|
|
1415
|
-
var b = [];
|
|
1416
|
-
|
|
1417
|
-
for (var c = 1, len = arguments.length; c < len; c += 1) {
|
|
1418
|
-
b.push(c < 0 || arguments.length <= c ? undefined : arguments[c]);
|
|
1419
|
-
}
|
|
1420
|
-
|
|
1421
|
-
b.forEach(function (d) {
|
|
1422
|
-
a = a.replace(/%[a-z]/, d);
|
|
1423
|
-
});
|
|
1424
|
-
return a;
|
|
1425
|
-
}
|
|
1426
|
-
/**
|
|
1427
|
-
* Create an error file out of errors.md for development and a simple web link to the full errors
|
|
1428
|
-
* in production mode.
|
|
1429
|
-
*/
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
function throwStyledComponentsError(code) {
|
|
1433
|
-
for (var _len = arguments.length, interpolations = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
1434
|
-
interpolations[_key - 1] = arguments[_key];
|
|
1435
|
-
}
|
|
1436
|
-
|
|
1437
|
-
if (process.env.NODE_ENV === 'production') {
|
|
1438
|
-
throw new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/master/packages/styled-components/src/utils/errors.md#" + code + " for more information." + (interpolations.length > 0 ? " Additional arguments: " + interpolations.join(', ') : ''));
|
|
1439
|
-
} else {
|
|
1440
|
-
throw new Error(format.apply(void 0, [ERRORS[code]].concat(interpolations)).trim());
|
|
1441
|
-
}
|
|
1442
|
-
}
|
|
1443
|
-
|
|
1444
|
-
//
|
|
1445
|
-
var ELEMENT_TYPE = 1;
|
|
1446
|
-
/* Node.ELEMENT_TYPE */
|
|
1447
|
-
|
|
1448
|
-
/** Find last style element if any inside target */
|
|
1449
|
-
|
|
1450
|
-
var findLastStyleTag = function findLastStyleTag(target) {
|
|
1451
|
-
var childNodes = target.childNodes;
|
|
1452
|
-
|
|
1453
|
-
for (var i = childNodes.length; i >= 0; i--) {
|
|
1454
|
-
var child = childNodes[i];
|
|
1455
|
-
|
|
1456
|
-
if (child && child.nodeType === ELEMENT_TYPE && child.hasAttribute(SC_ATTR)) {
|
|
1457
|
-
return child;
|
|
1458
|
-
}
|
|
1459
|
-
}
|
|
1460
|
-
|
|
1461
|
-
return undefined;
|
|
1462
|
-
};
|
|
1463
|
-
/** Create a style element inside `target` or <head> after the last */
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
var makeStyleTag = function makeStyleTag(target) {
|
|
1467
|
-
var head = document.head;
|
|
1468
|
-
var parent = target || head;
|
|
1469
|
-
var style = document.createElement('style');
|
|
1470
|
-
var prevStyle = findLastStyleTag(parent);
|
|
1471
|
-
var nextSibling = prevStyle !== undefined ? prevStyle.nextSibling : null;
|
|
1472
|
-
style.setAttribute(SC_ATTR, SC_ATTR_ACTIVE);
|
|
1473
|
-
style.setAttribute(SC_ATTR_VERSION, SC_VERSION);
|
|
1474
|
-
var nonce = getNonce();
|
|
1475
|
-
if (nonce) style.setAttribute('nonce', nonce);
|
|
1476
|
-
parent.insertBefore(style, nextSibling);
|
|
1477
|
-
return style;
|
|
1478
|
-
};
|
|
1479
|
-
/** Get the CSSStyleSheet instance for a given style element */
|
|
1480
|
-
|
|
1481
|
-
var getSheet = function getSheet(tag) {
|
|
1482
|
-
if (tag.sheet) {
|
|
1483
|
-
return tag.sheet;
|
|
1484
|
-
} // Avoid Firefox quirk where the style element might not have a sheet property
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
var _document = document,
|
|
1488
|
-
styleSheets = _document.styleSheets;
|
|
1489
|
-
|
|
1490
|
-
for (var i = 0, l = styleSheets.length; i < l; i++) {
|
|
1491
|
-
var sheet = styleSheets[i];
|
|
1492
|
-
|
|
1493
|
-
if (sheet.ownerNode === tag) {
|
|
1494
|
-
return sheet;
|
|
1495
|
-
}
|
|
1496
|
-
}
|
|
1497
|
-
|
|
1498
|
-
throwStyledComponentsError(17);
|
|
1499
|
-
return undefined;
|
|
1500
|
-
};
|
|
1501
|
-
|
|
1502
|
-
//
|
|
1503
|
-
/** Create a CSSStyleSheet-like tag depending on the environment */
|
|
1504
|
-
|
|
1505
|
-
var makeTag = function makeTag(_ref) {
|
|
1506
|
-
var isServer = _ref.isServer,
|
|
1507
|
-
useCSSOMInjection = _ref.useCSSOMInjection,
|
|
1508
|
-
target = _ref.target;
|
|
1509
|
-
|
|
1510
|
-
if (isServer) {
|
|
1511
|
-
return new VirtualTag(target);
|
|
1512
|
-
} else if (useCSSOMInjection) {
|
|
1513
|
-
return new CSSOMTag(target);
|
|
1514
|
-
} else {
|
|
1515
|
-
return new TextTag(target);
|
|
1516
|
-
}
|
|
1517
|
-
};
|
|
1518
|
-
var CSSOMTag = /*#__PURE__*/function () {
|
|
1519
|
-
function CSSOMTag(target) {
|
|
1520
|
-
var element = this.element = makeStyleTag(target); // Avoid Edge bug where empty style elements don't create sheets
|
|
1521
|
-
|
|
1522
|
-
element.appendChild(document.createTextNode(''));
|
|
1523
|
-
this.sheet = getSheet(element);
|
|
1524
|
-
this.length = 0;
|
|
1525
|
-
}
|
|
1526
|
-
|
|
1527
|
-
var _proto = CSSOMTag.prototype;
|
|
1528
|
-
|
|
1529
|
-
_proto.insertRule = function insertRule(index, rule) {
|
|
1530
|
-
try {
|
|
1531
|
-
this.sheet.insertRule(rule, index);
|
|
1532
|
-
this.length++;
|
|
1533
|
-
return true;
|
|
1534
|
-
} catch (_error) {
|
|
1535
|
-
return false;
|
|
1536
|
-
}
|
|
1537
|
-
};
|
|
1538
|
-
|
|
1539
|
-
_proto.deleteRule = function deleteRule(index) {
|
|
1540
|
-
this.sheet.deleteRule(index);
|
|
1541
|
-
this.length--;
|
|
1542
|
-
};
|
|
1543
|
-
|
|
1544
|
-
_proto.getRule = function getRule(index) {
|
|
1545
|
-
var rule = this.sheet.cssRules[index]; // Avoid IE11 quirk where cssText is inaccessible on some invalid rules
|
|
1546
|
-
|
|
1547
|
-
if (rule !== undefined && typeof rule.cssText === 'string') {
|
|
1548
|
-
return rule.cssText;
|
|
1549
|
-
} else {
|
|
1550
|
-
return '';
|
|
1551
|
-
}
|
|
1552
|
-
};
|
|
1553
|
-
|
|
1554
|
-
return CSSOMTag;
|
|
1555
|
-
}();
|
|
1556
|
-
/** A Tag that emulates the CSSStyleSheet API but uses text nodes */
|
|
1557
|
-
|
|
1558
|
-
var TextTag = /*#__PURE__*/function () {
|
|
1559
|
-
function TextTag(target) {
|
|
1560
|
-
var element = this.element = makeStyleTag(target);
|
|
1561
|
-
this.nodes = element.childNodes;
|
|
1562
|
-
this.length = 0;
|
|
1563
|
-
}
|
|
1564
|
-
|
|
1565
|
-
var _proto2 = TextTag.prototype;
|
|
1566
|
-
|
|
1567
|
-
_proto2.insertRule = function insertRule(index, rule) {
|
|
1568
|
-
if (index <= this.length && index >= 0) {
|
|
1569
|
-
var node = document.createTextNode(rule);
|
|
1570
|
-
var refNode = this.nodes[index];
|
|
1571
|
-
this.element.insertBefore(node, refNode || null);
|
|
1572
|
-
this.length++;
|
|
1573
|
-
return true;
|
|
1574
|
-
} else {
|
|
1575
|
-
return false;
|
|
1576
|
-
}
|
|
1577
|
-
};
|
|
1578
|
-
|
|
1579
|
-
_proto2.deleteRule = function deleteRule(index) {
|
|
1580
|
-
this.element.removeChild(this.nodes[index]);
|
|
1581
|
-
this.length--;
|
|
1582
|
-
};
|
|
1583
|
-
|
|
1584
|
-
_proto2.getRule = function getRule(index) {
|
|
1585
|
-
if (index < this.length) {
|
|
1586
|
-
return this.nodes[index].textContent;
|
|
1587
|
-
} else {
|
|
1588
|
-
return '';
|
|
1589
|
-
}
|
|
1590
|
-
};
|
|
1591
|
-
|
|
1592
|
-
return TextTag;
|
|
1593
|
-
}();
|
|
1594
|
-
/** A completely virtual (server-side) Tag that doesn't manipulate the DOM */
|
|
1595
|
-
|
|
1596
|
-
var VirtualTag = /*#__PURE__*/function () {
|
|
1597
|
-
function VirtualTag(_target) {
|
|
1598
|
-
this.rules = [];
|
|
1599
|
-
this.length = 0;
|
|
1600
|
-
}
|
|
1601
|
-
|
|
1602
|
-
var _proto3 = VirtualTag.prototype;
|
|
1603
|
-
|
|
1604
|
-
_proto3.insertRule = function insertRule(index, rule) {
|
|
1605
|
-
if (index <= this.length) {
|
|
1606
|
-
this.rules.splice(index, 0, rule);
|
|
1607
|
-
this.length++;
|
|
1608
|
-
return true;
|
|
1609
|
-
} else {
|
|
1610
|
-
return false;
|
|
1611
|
-
}
|
|
1612
|
-
};
|
|
1613
|
-
|
|
1614
|
-
_proto3.deleteRule = function deleteRule(index) {
|
|
1615
|
-
this.rules.splice(index, 1);
|
|
1616
|
-
this.length--;
|
|
1617
|
-
};
|
|
1618
|
-
|
|
1619
|
-
_proto3.getRule = function getRule(index) {
|
|
1620
|
-
if (index < this.length) {
|
|
1621
|
-
return this.rules[index];
|
|
1622
|
-
} else {
|
|
1623
|
-
return '';
|
|
1624
|
-
}
|
|
1625
|
-
};
|
|
1626
|
-
|
|
1627
|
-
return VirtualTag;
|
|
1628
|
-
}();
|
|
1629
|
-
|
|
1630
|
-
//
|
|
1631
|
-
/** Create a GroupedTag with an underlying Tag implementation */
|
|
1632
|
-
|
|
1633
|
-
var makeGroupedTag = function makeGroupedTag(tag) {
|
|
1634
|
-
return new DefaultGroupedTag(tag);
|
|
1635
|
-
};
|
|
1636
|
-
var BASE_SIZE = 1 << 9;
|
|
1637
|
-
|
|
1638
|
-
var DefaultGroupedTag = /*#__PURE__*/function () {
|
|
1639
|
-
function DefaultGroupedTag(tag) {
|
|
1640
|
-
this.groupSizes = new Uint32Array(BASE_SIZE);
|
|
1641
|
-
this.length = BASE_SIZE;
|
|
1642
|
-
this.tag = tag;
|
|
1643
|
-
}
|
|
1644
|
-
|
|
1645
|
-
var _proto = DefaultGroupedTag.prototype;
|
|
1646
|
-
|
|
1647
|
-
_proto.indexOfGroup = function indexOfGroup(group) {
|
|
1648
|
-
var index = 0;
|
|
1649
|
-
|
|
1650
|
-
for (var i = 0; i < group; i++) {
|
|
1651
|
-
index += this.groupSizes[i];
|
|
1652
|
-
}
|
|
1653
|
-
|
|
1654
|
-
return index;
|
|
1655
|
-
};
|
|
1656
|
-
|
|
1657
|
-
_proto.insertRules = function insertRules(group, rules) {
|
|
1658
|
-
if (group >= this.groupSizes.length) {
|
|
1659
|
-
var oldBuffer = this.groupSizes;
|
|
1660
|
-
var oldSize = oldBuffer.length;
|
|
1661
|
-
var newSize = oldSize;
|
|
1662
|
-
|
|
1663
|
-
while (group >= newSize) {
|
|
1664
|
-
newSize <<= 1;
|
|
1665
|
-
|
|
1666
|
-
if (newSize < 0) {
|
|
1667
|
-
throwStyledComponentsError(16, "" + group);
|
|
1668
|
-
}
|
|
1669
|
-
}
|
|
1670
|
-
|
|
1671
|
-
this.groupSizes = new Uint32Array(newSize);
|
|
1672
|
-
this.groupSizes.set(oldBuffer);
|
|
1673
|
-
this.length = newSize;
|
|
1674
|
-
|
|
1675
|
-
for (var i = oldSize; i < newSize; i++) {
|
|
1676
|
-
this.groupSizes[i] = 0;
|
|
1677
|
-
}
|
|
1678
|
-
}
|
|
1679
|
-
|
|
1680
|
-
var ruleIndex = this.indexOfGroup(group + 1);
|
|
1681
|
-
|
|
1682
|
-
for (var _i = 0, l = rules.length; _i < l; _i++) {
|
|
1683
|
-
if (this.tag.insertRule(ruleIndex, rules[_i])) {
|
|
1684
|
-
this.groupSizes[group]++;
|
|
1685
|
-
ruleIndex++;
|
|
1686
|
-
}
|
|
1687
|
-
}
|
|
1688
|
-
};
|
|
1689
|
-
|
|
1690
|
-
_proto.clearGroup = function clearGroup(group) {
|
|
1691
|
-
if (group < this.length) {
|
|
1692
|
-
var length = this.groupSizes[group];
|
|
1693
|
-
var startIndex = this.indexOfGroup(group);
|
|
1694
|
-
var endIndex = startIndex + length;
|
|
1695
|
-
this.groupSizes[group] = 0;
|
|
1696
|
-
|
|
1697
|
-
for (var i = startIndex; i < endIndex; i++) {
|
|
1698
|
-
this.tag.deleteRule(startIndex);
|
|
1699
|
-
}
|
|
1700
|
-
}
|
|
1701
|
-
};
|
|
1702
|
-
|
|
1703
|
-
_proto.getGroup = function getGroup(group) {
|
|
1704
|
-
var css = '';
|
|
1705
|
-
|
|
1706
|
-
if (group >= this.length || this.groupSizes[group] === 0) {
|
|
1707
|
-
return css;
|
|
1708
|
-
}
|
|
1709
|
-
|
|
1710
|
-
var length = this.groupSizes[group];
|
|
1711
|
-
var startIndex = this.indexOfGroup(group);
|
|
1712
|
-
var endIndex = startIndex + length;
|
|
1713
|
-
|
|
1714
|
-
for (var i = startIndex; i < endIndex; i++) {
|
|
1715
|
-
css += "" + this.tag.getRule(i) + SPLITTER;
|
|
1716
|
-
}
|
|
1717
|
-
|
|
1718
|
-
return css;
|
|
1719
|
-
};
|
|
1720
|
-
|
|
1721
|
-
return DefaultGroupedTag;
|
|
1722
|
-
}();
|
|
1723
|
-
|
|
1724
|
-
//
|
|
1725
|
-
var MAX_SMI = 1 << 31 - 1;
|
|
1726
|
-
var groupIDRegister = new Map();
|
|
1727
|
-
var reverseRegister = new Map();
|
|
1728
|
-
var nextFreeGroup = 1;
|
|
1729
|
-
var getGroupForId = function getGroupForId(id) {
|
|
1730
|
-
if (groupIDRegister.has(id)) {
|
|
1731
|
-
return groupIDRegister.get(id);
|
|
1732
|
-
}
|
|
1733
|
-
|
|
1734
|
-
var group = nextFreeGroup++;
|
|
1735
|
-
|
|
1736
|
-
if (process.env.NODE_ENV !== 'production' && ((group | 0) < 0 || group > MAX_SMI)) {
|
|
1737
|
-
throwStyledComponentsError(16, "" + group);
|
|
1738
|
-
}
|
|
1739
|
-
|
|
1740
|
-
groupIDRegister.set(id, group);
|
|
1741
|
-
reverseRegister.set(group, id);
|
|
1742
|
-
return group;
|
|
1743
|
-
};
|
|
1744
|
-
var getIdForGroup = function getIdForGroup(group) {
|
|
1745
|
-
return reverseRegister.get(group);
|
|
1746
|
-
};
|
|
1747
|
-
var setGroupForId = function setGroupForId(id, group) {
|
|
1748
|
-
if (group >= nextFreeGroup) {
|
|
1749
|
-
nextFreeGroup = group + 1;
|
|
1750
|
-
}
|
|
1751
|
-
|
|
1752
|
-
groupIDRegister.set(id, group);
|
|
1753
|
-
reverseRegister.set(group, id);
|
|
1754
|
-
};
|
|
1755
|
-
|
|
1756
|
-
//
|
|
1757
|
-
var SELECTOR = "style[" + SC_ATTR + "][" + SC_ATTR_VERSION + "=\"" + SC_VERSION + "\"]";
|
|
1758
|
-
var MARKER_RE = new RegExp("^" + SC_ATTR + "\\.g(\\d+)\\[id=\"([\\w\\d-]+)\"\\].*?\"([^\"]*)");
|
|
1759
|
-
var outputSheet = function outputSheet(sheet) {
|
|
1760
|
-
var tag = sheet.getTag();
|
|
1761
|
-
var length = tag.length;
|
|
1762
|
-
var css = '';
|
|
1763
|
-
|
|
1764
|
-
for (var group = 0; group < length; group++) {
|
|
1765
|
-
var id = getIdForGroup(group);
|
|
1766
|
-
if (id === undefined) continue;
|
|
1767
|
-
var names = sheet.names.get(id);
|
|
1768
|
-
var rules = tag.getGroup(group);
|
|
1769
|
-
if (names === undefined || rules.length === 0) continue;
|
|
1770
|
-
var selector = SC_ATTR + ".g" + group + "[id=\"" + id + "\"]";
|
|
1771
|
-
var content = '';
|
|
1772
|
-
|
|
1773
|
-
if (names !== undefined) {
|
|
1774
|
-
names.forEach(function (name) {
|
|
1775
|
-
if (name.length > 0) {
|
|
1776
|
-
content += name + ",";
|
|
1777
|
-
}
|
|
1778
|
-
});
|
|
1779
|
-
} // NOTE: It's easier to collect rules and have the marker
|
|
1780
|
-
// after the actual rules to simplify the rehydration
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
css += "" + rules + selector + "{content:\"" + content + "\"}" + SPLITTER;
|
|
1784
|
-
}
|
|
1785
|
-
|
|
1786
|
-
return css;
|
|
1787
|
-
};
|
|
1788
|
-
|
|
1789
|
-
var rehydrateNamesFromContent = function rehydrateNamesFromContent(sheet, id, content) {
|
|
1790
|
-
var names = content.split(',');
|
|
1791
|
-
var name;
|
|
1792
|
-
|
|
1793
|
-
for (var i = 0, l = names.length; i < l; i++) {
|
|
1794
|
-
// eslint-disable-next-line
|
|
1795
|
-
if (name = names[i]) {
|
|
1796
|
-
sheet.registerName(id, name);
|
|
1797
|
-
}
|
|
1798
|
-
}
|
|
1799
|
-
};
|
|
1800
|
-
|
|
1801
|
-
var rehydrateSheetFromTag = function rehydrateSheetFromTag(sheet, style) {
|
|
1802
|
-
var parts = style.innerHTML.split(SPLITTER);
|
|
1803
|
-
var rules = [];
|
|
1804
|
-
|
|
1805
|
-
for (var i = 0, l = parts.length; i < l; i++) {
|
|
1806
|
-
var part = parts[i].trim();
|
|
1807
|
-
if (!part) continue;
|
|
1808
|
-
var marker = part.match(MARKER_RE);
|
|
1809
|
-
|
|
1810
|
-
if (marker) {
|
|
1811
|
-
var group = parseInt(marker[1], 10) | 0;
|
|
1812
|
-
var id = marker[2];
|
|
1813
|
-
|
|
1814
|
-
if (group !== 0) {
|
|
1815
|
-
// Rehydrate componentId to group index mapping
|
|
1816
|
-
setGroupForId(id, group); // Rehydrate names and rules
|
|
1817
|
-
// looks like: data-styled.g11[id="idA"]{content:"nameA,"}
|
|
1818
|
-
|
|
1819
|
-
rehydrateNamesFromContent(sheet, id, marker[3]);
|
|
1820
|
-
sheet.getTag().insertRules(group, rules);
|
|
1821
|
-
}
|
|
1822
|
-
|
|
1823
|
-
rules.length = 0;
|
|
1824
|
-
} else {
|
|
1825
|
-
rules.push(part);
|
|
1826
|
-
}
|
|
1827
|
-
}
|
|
1828
|
-
};
|
|
1829
|
-
|
|
1830
|
-
var rehydrateSheet = function rehydrateSheet(sheet) {
|
|
1831
|
-
var nodes = document.querySelectorAll(SELECTOR);
|
|
1832
|
-
|
|
1833
|
-
for (var i = 0, l = nodes.length; i < l; i++) {
|
|
1834
|
-
var node = nodes[i];
|
|
1835
|
-
|
|
1836
|
-
if (node && node.getAttribute(SC_ATTR) !== SC_ATTR_ACTIVE) {
|
|
1837
|
-
rehydrateSheetFromTag(sheet, node);
|
|
1838
|
-
|
|
1839
|
-
if (node.parentNode) {
|
|
1840
|
-
node.parentNode.removeChild(node);
|
|
1841
|
-
}
|
|
1842
|
-
}
|
|
1843
|
-
}
|
|
1844
|
-
};
|
|
1845
|
-
|
|
1846
|
-
var SHOULD_REHYDRATE = IS_BROWSER;
|
|
1847
|
-
var defaultOptions = {
|
|
1848
|
-
isServer: !IS_BROWSER,
|
|
1849
|
-
useCSSOMInjection: !DISABLE_SPEEDY
|
|
1850
|
-
};
|
|
1851
|
-
/** Contains the main stylesheet logic for stringification and caching */
|
|
1852
|
-
|
|
1853
|
-
var StyleSheet = /*#__PURE__*/function () {
|
|
1854
|
-
/** Register a group ID to give it an index */
|
|
1855
|
-
StyleSheet.registerId = function registerId(id) {
|
|
1856
|
-
return getGroupForId(id);
|
|
1857
|
-
};
|
|
1858
|
-
|
|
1859
|
-
function StyleSheet(options, globalStyles, names) {
|
|
1860
|
-
if (options === void 0) {
|
|
1861
|
-
options = defaultOptions;
|
|
1862
|
-
}
|
|
1863
|
-
|
|
1864
|
-
if (globalStyles === void 0) {
|
|
1865
|
-
globalStyles = {};
|
|
1866
|
-
}
|
|
1867
|
-
|
|
1868
|
-
this.options = _extends$1({}, defaultOptions, {}, options);
|
|
1869
|
-
this.gs = globalStyles;
|
|
1870
|
-
this.names = new Map(names); // We rehydrate only once and use the sheet that is created first
|
|
1871
|
-
|
|
1872
|
-
if (!this.options.isServer && IS_BROWSER && SHOULD_REHYDRATE) {
|
|
1873
|
-
SHOULD_REHYDRATE = false;
|
|
1874
|
-
rehydrateSheet(this);
|
|
1875
|
-
}
|
|
1876
|
-
}
|
|
1877
|
-
|
|
1878
|
-
var _proto = StyleSheet.prototype;
|
|
1879
|
-
|
|
1880
|
-
_proto.reconstructWithOptions = function reconstructWithOptions(options) {
|
|
1881
|
-
return new StyleSheet(_extends$1({}, this.options, {}, options), this.gs, this.names);
|
|
1882
|
-
};
|
|
1883
|
-
|
|
1884
|
-
_proto.allocateGSInstance = function allocateGSInstance(id) {
|
|
1885
|
-
return this.gs[id] = (this.gs[id] || 0) + 1;
|
|
1886
|
-
}
|
|
1887
|
-
/** Lazily initialises a GroupedTag for when it's actually needed */
|
|
1888
|
-
;
|
|
1889
|
-
|
|
1890
|
-
_proto.getTag = function getTag() {
|
|
1891
|
-
return this.tag || (this.tag = makeGroupedTag(makeTag(this.options)));
|
|
1892
|
-
}
|
|
1893
|
-
/** Check whether a name is known for caching */
|
|
1894
|
-
;
|
|
1895
|
-
|
|
1896
|
-
_proto.hasNameForId = function hasNameForId(id, name) {
|
|
1897
|
-
return this.names.has(id) && this.names.get(id).has(name);
|
|
1898
|
-
}
|
|
1899
|
-
/** Mark a group's name as known for caching */
|
|
1900
|
-
;
|
|
1901
|
-
|
|
1902
|
-
_proto.registerName = function registerName(id, name) {
|
|
1903
|
-
getGroupForId(id);
|
|
1904
|
-
|
|
1905
|
-
if (!this.names.has(id)) {
|
|
1906
|
-
var groupNames = new Set();
|
|
1907
|
-
groupNames.add(name);
|
|
1908
|
-
this.names.set(id, groupNames);
|
|
1909
|
-
} else {
|
|
1910
|
-
this.names.get(id).add(name);
|
|
1911
|
-
}
|
|
1912
|
-
}
|
|
1913
|
-
/** Insert new rules which also marks the name as known */
|
|
1914
|
-
;
|
|
1915
|
-
|
|
1916
|
-
_proto.insertRules = function insertRules(id, name, rules) {
|
|
1917
|
-
this.registerName(id, name);
|
|
1918
|
-
this.getTag().insertRules(getGroupForId(id), rules);
|
|
1919
|
-
}
|
|
1920
|
-
/** Clears all cached names for a given group ID */
|
|
1921
|
-
;
|
|
1922
|
-
|
|
1923
|
-
_proto.clearNames = function clearNames(id) {
|
|
1924
|
-
if (this.names.has(id)) {
|
|
1925
|
-
this.names.get(id).clear();
|
|
1926
|
-
}
|
|
1927
|
-
}
|
|
1928
|
-
/** Clears all rules for a given group ID */
|
|
1929
|
-
;
|
|
1930
|
-
|
|
1931
|
-
_proto.clearRules = function clearRules(id) {
|
|
1932
|
-
this.getTag().clearGroup(getGroupForId(id));
|
|
1933
|
-
this.clearNames(id);
|
|
1934
|
-
}
|
|
1935
|
-
/** Clears the entire tag which deletes all rules but not its names */
|
|
1936
|
-
;
|
|
1937
|
-
|
|
1938
|
-
_proto.clearTag = function clearTag() {
|
|
1939
|
-
// NOTE: This does not clear the names, since it's only used during SSR
|
|
1940
|
-
// so that we can continuously output only new rules
|
|
1941
|
-
this.tag = undefined;
|
|
1942
|
-
}
|
|
1943
|
-
/** Outputs the current sheet as a CSS string with markers for SSR */
|
|
1944
|
-
;
|
|
1945
|
-
|
|
1946
|
-
_proto.toString = function toString() {
|
|
1947
|
-
return outputSheet(this);
|
|
1948
|
-
};
|
|
1949
|
-
|
|
1950
|
-
return StyleSheet;
|
|
1951
|
-
}();
|
|
1952
|
-
|
|
1953
|
-
//
|
|
1954
|
-
|
|
1955
|
-
/* eslint-disable */
|
|
1956
|
-
var SEED = 5381; // When we have separate strings it's useful to run a progressive
|
|
1957
|
-
// version of djb2 where we pretend that we're still looping over
|
|
1958
|
-
// the same string
|
|
1959
|
-
|
|
1960
|
-
var phash = function phash(h, x) {
|
|
1961
|
-
var i = x.length;
|
|
1962
|
-
|
|
1963
|
-
while (i) {
|
|
1964
|
-
h = h * 33 ^ x.charCodeAt(--i);
|
|
1965
|
-
}
|
|
1966
|
-
|
|
1967
|
-
return h;
|
|
1968
|
-
}; // This is a djb2 hashing function
|
|
1969
|
-
|
|
1970
|
-
var hash = function hash(x) {
|
|
1971
|
-
return phash(SEED, x);
|
|
1972
|
-
};
|
|
1973
|
-
|
|
1974
|
-
/**
|
|
1975
|
-
* MIT License
|
|
1976
|
-
*
|
|
1977
|
-
* Copyright (c) 2016 Sultan Tarimo
|
|
1978
|
-
*
|
|
1979
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
1980
|
-
* this software and associated documentation files (the "Software"),
|
|
1981
|
-
* to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
1982
|
-
* sell copies of the Software and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
1983
|
-
*
|
|
1984
|
-
* The above copyright notice and this permission notice shall be included in all
|
|
1985
|
-
* copies or substantial portions of the Software.
|
|
1986
|
-
*
|
|
1987
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
|
1988
|
-
* OR IMPLIED INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
1989
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
1990
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
1991
|
-
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
|
|
1992
|
-
* IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
1993
|
-
*/
|
|
1994
|
-
|
|
1995
|
-
/* eslint-disable */
|
|
1996
|
-
function insertRulePlugin (insertRule) {
|
|
1997
|
-
var delimiter = '/*|*/';
|
|
1998
|
-
var needle = delimiter + "}";
|
|
1999
|
-
|
|
2000
|
-
function toSheet(block) {
|
|
2001
|
-
if (block) {
|
|
2002
|
-
try {
|
|
2003
|
-
insertRule(block + "}");
|
|
2004
|
-
} catch (e) {}
|
|
2005
|
-
}
|
|
2006
|
-
}
|
|
2007
|
-
|
|
2008
|
-
return function ruleSheet(context, content, selectors, parents, line, column, length, ns, depth, at) {
|
|
2009
|
-
switch (context) {
|
|
2010
|
-
// property
|
|
2011
|
-
case 1:
|
|
2012
|
-
// @import
|
|
2013
|
-
if (depth === 0 && content.charCodeAt(0) === 64) return insertRule(content + ";"), '';
|
|
2014
|
-
break;
|
|
2015
|
-
// selector
|
|
2016
|
-
|
|
2017
|
-
case 2:
|
|
2018
|
-
if (ns === 0) return content + delimiter;
|
|
2019
|
-
break;
|
|
2020
|
-
// at-rule
|
|
2021
|
-
|
|
2022
|
-
case 3:
|
|
2023
|
-
switch (ns) {
|
|
2024
|
-
// @font-face, @page
|
|
2025
|
-
case 102:
|
|
2026
|
-
case 112:
|
|
2027
|
-
return insertRule(selectors[0] + content), '';
|
|
2028
|
-
|
|
2029
|
-
default:
|
|
2030
|
-
return content + (at === 0 ? delimiter : '');
|
|
2031
|
-
}
|
|
2032
|
-
|
|
2033
|
-
case -2:
|
|
2034
|
-
content.split(needle).forEach(toSheet);
|
|
2035
|
-
}
|
|
2036
|
-
};
|
|
2037
|
-
}
|
|
2038
|
-
|
|
2039
|
-
var COMMENT_REGEX = /^\s*\/\/.*$/gm;
|
|
2040
|
-
function createStylisInstance(_temp) {
|
|
2041
|
-
var _ref = _temp === void 0 ? EMPTY_OBJECT : _temp,
|
|
2042
|
-
_ref$options = _ref.options,
|
|
2043
|
-
options = _ref$options === void 0 ? EMPTY_OBJECT : _ref$options,
|
|
2044
|
-
_ref$plugins = _ref.plugins,
|
|
2045
|
-
plugins = _ref$plugins === void 0 ? EMPTY_ARRAY : _ref$plugins;
|
|
2046
|
-
|
|
2047
|
-
var stylis = new stylis_min(options); // Wrap `insertRulePlugin to build a list of rules,
|
|
2048
|
-
// and then make our own plugin to return the rules. This
|
|
2049
|
-
// makes it easier to hook into the existing SSR architecture
|
|
2050
|
-
|
|
2051
|
-
var parsingRules = []; // eslint-disable-next-line consistent-return
|
|
2052
|
-
|
|
2053
|
-
var returnRulesPlugin = function returnRulesPlugin(context) {
|
|
2054
|
-
if (context === -2) {
|
|
2055
|
-
var parsedRules = parsingRules;
|
|
2056
|
-
parsingRules = [];
|
|
2057
|
-
return parsedRules;
|
|
2058
|
-
}
|
|
2059
|
-
};
|
|
2060
|
-
|
|
2061
|
-
var parseRulesPlugin = insertRulePlugin(function (rule) {
|
|
2062
|
-
parsingRules.push(rule);
|
|
2063
|
-
});
|
|
2064
|
-
|
|
2065
|
-
var _componentId;
|
|
2066
|
-
|
|
2067
|
-
var _selector;
|
|
2068
|
-
|
|
2069
|
-
var _selectorRegexp;
|
|
2070
|
-
|
|
2071
|
-
var selfReferenceReplacer = function selfReferenceReplacer(match, offset, string) {
|
|
2072
|
-
if ( // the first self-ref is always untouched
|
|
2073
|
-
offset > 0 && // there should be at least two self-refs to do a replacement (.b > .b)
|
|
2074
|
-
string.slice(0, offset).indexOf(_selector) !== -1 && // no consecutive self refs (.b.b); that is a precedence boost and treated differently
|
|
2075
|
-
string.slice(offset - _selector.length, offset) !== _selector) {
|
|
2076
|
-
return "." + _componentId;
|
|
2077
|
-
}
|
|
2078
|
-
|
|
2079
|
-
return match;
|
|
2080
|
-
};
|
|
2081
|
-
/**
|
|
2082
|
-
* When writing a style like
|
|
2083
|
-
*
|
|
2084
|
-
* & + & {
|
|
2085
|
-
* color: red;
|
|
2086
|
-
* }
|
|
2087
|
-
*
|
|
2088
|
-
* The second ampersand should be a reference to the static component class. stylis
|
|
2089
|
-
* has no knowledge of static class so we have to intelligently replace the base selector.
|
|
2090
|
-
*
|
|
2091
|
-
* https://github.com/thysultan/stylis.js#plugins <- more info about the context phase values
|
|
2092
|
-
* "2" means this plugin is taking effect at the very end after all other processing is complete
|
|
2093
|
-
*/
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
var selfReferenceReplacementPlugin = function selfReferenceReplacementPlugin(context, _, selectors) {
|
|
2097
|
-
if (context === 2 && selectors.length && selectors[0].lastIndexOf(_selector) > 0) {
|
|
2098
|
-
// eslint-disable-next-line no-param-reassign
|
|
2099
|
-
selectors[0] = selectors[0].replace(_selectorRegexp, selfReferenceReplacer);
|
|
2100
|
-
}
|
|
2101
|
-
};
|
|
2102
|
-
|
|
2103
|
-
stylis.use([].concat(plugins, [selfReferenceReplacementPlugin, parseRulesPlugin, returnRulesPlugin]));
|
|
2104
|
-
|
|
2105
|
-
function stringifyRules(css, selector, prefix, componentId) {
|
|
2106
|
-
if (componentId === void 0) {
|
|
2107
|
-
componentId = '&';
|
|
2108
|
-
}
|
|
2109
|
-
|
|
2110
|
-
var flatCSS = css.replace(COMMENT_REGEX, '');
|
|
2111
|
-
var cssStr = selector && prefix ? prefix + " " + selector + " { " + flatCSS + " }" : flatCSS; // stylis has no concept of state to be passed to plugins
|
|
2112
|
-
// but since JS is single=threaded, we can rely on that to ensure
|
|
2113
|
-
// these properties stay in sync with the current stylis run
|
|
2114
|
-
|
|
2115
|
-
_componentId = componentId;
|
|
2116
|
-
_selector = selector;
|
|
2117
|
-
_selectorRegexp = new RegExp("\\" + _selector + "\\b", 'g');
|
|
2118
|
-
return stylis(prefix || !selector ? '' : selector, cssStr);
|
|
2119
|
-
}
|
|
2120
|
-
|
|
2121
|
-
stringifyRules.hash = plugins.length ? plugins.reduce(function (acc, plugin) {
|
|
2122
|
-
if (!plugin.name) {
|
|
2123
|
-
throwStyledComponentsError(15);
|
|
2124
|
-
}
|
|
2125
|
-
|
|
2126
|
-
return phash(acc, plugin.name);
|
|
2127
|
-
}, SEED).toString() : '';
|
|
2128
|
-
return stringifyRules;
|
|
2129
|
-
}
|
|
2130
|
-
|
|
2131
|
-
//
|
|
2132
|
-
var StyleSheetContext = React__default.createContext();
|
|
2133
|
-
var StyleSheetConsumer = StyleSheetContext.Consumer;
|
|
2134
|
-
var StylisContext = React__default.createContext();
|
|
2135
|
-
var StylisConsumer = StylisContext.Consumer;
|
|
2136
|
-
var masterSheet = new StyleSheet();
|
|
2137
|
-
var masterStylis = createStylisInstance();
|
|
2138
|
-
function useStyleSheet() {
|
|
2139
|
-
return React.useContext(StyleSheetContext) || masterSheet;
|
|
2140
|
-
}
|
|
2141
|
-
function useStylis() {
|
|
2142
|
-
return React.useContext(StylisContext) || masterStylis;
|
|
2143
|
-
}
|
|
2144
|
-
|
|
2145
|
-
//
|
|
2146
|
-
|
|
2147
|
-
var Keyframes = /*#__PURE__*/function () {
|
|
2148
|
-
function Keyframes(name, stringifyArgs) {
|
|
2149
|
-
var _this = this;
|
|
2150
|
-
|
|
2151
|
-
this.inject = function (styleSheet) {
|
|
2152
|
-
if (!styleSheet.hasNameForId(_this.id, _this.name)) {
|
|
2153
|
-
styleSheet.insertRules(_this.id, _this.name, masterStylis.apply(void 0, _this.stringifyArgs));
|
|
2154
|
-
}
|
|
2155
|
-
};
|
|
2156
|
-
|
|
2157
|
-
this.toString = function () {
|
|
2158
|
-
return throwStyledComponentsError(12, String(_this.name));
|
|
2159
|
-
};
|
|
2160
|
-
|
|
2161
|
-
this.name = name;
|
|
2162
|
-
this.id = "sc-keyframes-" + name;
|
|
2163
|
-
this.stringifyArgs = stringifyArgs;
|
|
2164
|
-
}
|
|
2165
|
-
|
|
2166
|
-
var _proto = Keyframes.prototype;
|
|
2167
|
-
|
|
2168
|
-
_proto.getName = function getName() {
|
|
2169
|
-
return this.name;
|
|
2170
|
-
};
|
|
2171
|
-
|
|
2172
|
-
return Keyframes;
|
|
2173
|
-
}();
|
|
2174
|
-
|
|
2175
|
-
//
|
|
2176
|
-
|
|
2177
|
-
/**
|
|
2178
|
-
* inlined version of
|
|
2179
|
-
* https://github.com/facebook/fbjs/blob/master/packages/fbjs/src/core/hyphenateStyleName.js
|
|
2180
|
-
*/
|
|
2181
|
-
var uppercasePattern = /([A-Z])/g;
|
|
2182
|
-
var msPattern = /^ms-/;
|
|
2183
|
-
/**
|
|
2184
|
-
* Hyphenates a camelcased CSS property name, for example:
|
|
2185
|
-
*
|
|
2186
|
-
* > hyphenateStyleName('backgroundColor')
|
|
2187
|
-
* < "background-color"
|
|
2188
|
-
* > hyphenateStyleName('MozTransition')
|
|
2189
|
-
* < "-moz-transition"
|
|
2190
|
-
* > hyphenateStyleName('msTransition')
|
|
2191
|
-
* < "-ms-transition"
|
|
2192
|
-
*
|
|
2193
|
-
* As Modernizr suggests (http://modernizr.com/docs/#prefixed), an `ms` prefix
|
|
2194
|
-
* is converted to `-ms-`.
|
|
2195
|
-
*
|
|
2196
|
-
* @param {string} string
|
|
2197
|
-
* @return {string}
|
|
2198
|
-
*/
|
|
2199
|
-
|
|
2200
|
-
function hyphenateStyleName(string) {
|
|
2201
|
-
return string.replace(uppercasePattern, '-$1').toLowerCase().replace(msPattern, '-ms-');
|
|
2202
|
-
}
|
|
2203
|
-
|
|
2204
|
-
//
|
|
2205
|
-
|
|
2206
|
-
function addUnitIfNeeded(name, value) {
|
|
2207
|
-
// https://github.com/amilajack/eslint-plugin-flowtype-errors/issues/133
|
|
2208
|
-
// $FlowFixMe
|
|
2209
|
-
if (value == null || typeof value === 'boolean' || value === '') {
|
|
2210
|
-
return '';
|
|
2211
|
-
}
|
|
2212
|
-
|
|
2213
|
-
if (typeof value === 'number' && value !== 0 && !(name in unitlessKeys)) {
|
|
2214
|
-
return value + "px"; // Presumes implicit 'px' suffix for unitless numbers
|
|
2215
|
-
}
|
|
2216
|
-
|
|
2217
|
-
return String(value).trim();
|
|
2218
|
-
}
|
|
2219
|
-
|
|
2220
|
-
//
|
|
2221
|
-
/**
|
|
2222
|
-
* It's falsish not falsy because 0 is allowed.
|
|
2223
|
-
*/
|
|
2224
|
-
|
|
2225
|
-
var isFalsish = function isFalsish(chunk) {
|
|
2226
|
-
return chunk === undefined || chunk === null || chunk === false || chunk === '';
|
|
2227
|
-
};
|
|
2228
|
-
|
|
2229
|
-
var objToCssArray = function objToCssArray(obj, prevKey) {
|
|
2230
|
-
var rules = [];
|
|
2231
|
-
var keys = Object.keys(obj);
|
|
2232
|
-
keys.forEach(function (key) {
|
|
2233
|
-
if (!isFalsish(obj[key])) {
|
|
2234
|
-
if (isPlainObject(obj[key])) {
|
|
2235
|
-
rules.push.apply(rules, objToCssArray(obj[key], key));
|
|
2236
|
-
return rules;
|
|
2237
|
-
} else if (isFunction(obj[key])) {
|
|
2238
|
-
rules.push(hyphenateStyleName(key) + ":", obj[key], ';');
|
|
2239
|
-
return rules;
|
|
2240
|
-
}
|
|
2241
|
-
|
|
2242
|
-
rules.push(hyphenateStyleName(key) + ": " + addUnitIfNeeded(key, obj[key]) + ";");
|
|
2243
|
-
}
|
|
2244
|
-
|
|
2245
|
-
return rules;
|
|
2246
|
-
});
|
|
2247
|
-
return prevKey ? [prevKey + " {"].concat(rules, ['}']) : rules;
|
|
2248
|
-
};
|
|
2249
|
-
function flatten(chunk, executionContext, styleSheet) {
|
|
2250
|
-
if (Array.isArray(chunk)) {
|
|
2251
|
-
var ruleSet = [];
|
|
2252
|
-
|
|
2253
|
-
for (var i = 0, len = chunk.length, result; i < len; i += 1) {
|
|
2254
|
-
result = flatten(chunk[i], executionContext, styleSheet);
|
|
2255
|
-
if (result === '') continue;else if (Array.isArray(result)) ruleSet.push.apply(ruleSet, result);else ruleSet.push(result);
|
|
2256
|
-
}
|
|
2257
|
-
|
|
2258
|
-
return ruleSet;
|
|
2259
|
-
}
|
|
2260
|
-
|
|
2261
|
-
if (isFalsish(chunk)) {
|
|
2262
|
-
return '';
|
|
2263
|
-
}
|
|
2264
|
-
/* Handle other components */
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
if (isStyledComponent(chunk)) {
|
|
2268
|
-
return "." + chunk.styledComponentId;
|
|
2269
|
-
}
|
|
2270
|
-
/* Either execute or defer the function */
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
if (isFunction(chunk)) {
|
|
2274
|
-
if (isStatelessFunction(chunk) && executionContext) {
|
|
2275
|
-
var _result = chunk(executionContext);
|
|
2276
|
-
|
|
2277
|
-
if (process.env.NODE_ENV !== 'production' && reactIs_18(_result)) {
|
|
2278
|
-
// eslint-disable-next-line no-console
|
|
2279
|
-
console.warn(getComponentName(chunk) + " is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.");
|
|
2280
|
-
}
|
|
2281
|
-
|
|
2282
|
-
return flatten(_result, executionContext, styleSheet);
|
|
2283
|
-
} else return chunk;
|
|
2284
|
-
}
|
|
2285
|
-
|
|
2286
|
-
if (chunk instanceof Keyframes) {
|
|
2287
|
-
if (styleSheet) {
|
|
2288
|
-
chunk.inject(styleSheet);
|
|
2289
|
-
return chunk.getName();
|
|
2290
|
-
} else return chunk;
|
|
2291
|
-
}
|
|
2292
|
-
/* Handle objects */
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
return isPlainObject(chunk) ? objToCssArray(chunk) : chunk.toString();
|
|
2296
|
-
}
|
|
2297
|
-
|
|
2298
|
-
//
|
|
2299
|
-
function css(styles) {
|
|
2300
|
-
for (var _len = arguments.length, interpolations = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
2301
|
-
interpolations[_key - 1] = arguments[_key];
|
|
2302
|
-
}
|
|
2303
|
-
|
|
2304
|
-
if (isFunction(styles) || isPlainObject(styles)) {
|
|
2305
|
-
// $FlowFixMe
|
|
2306
|
-
return flatten(interleave(EMPTY_ARRAY, [styles].concat(interpolations)));
|
|
2307
|
-
}
|
|
2308
|
-
|
|
2309
|
-
if (interpolations.length === 0 && styles.length === 1 && typeof styles[0] === "string") {
|
|
2310
|
-
// $FlowFixMe
|
|
2311
|
-
return styles;
|
|
2312
|
-
} // $FlowFixMe
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
return flatten(interleave(styles, interpolations));
|
|
2316
|
-
}
|
|
2317
|
-
|
|
2318
|
-
function constructWithOptions(componentConstructor, tag, options) {
|
|
2319
|
-
if (options === void 0) {
|
|
2320
|
-
options = EMPTY_OBJECT;
|
|
2321
|
-
}
|
|
2322
|
-
|
|
2323
|
-
if (!reactIs_27(tag)) {
|
|
2324
|
-
return throwStyledComponentsError(1, String(tag));
|
|
2325
|
-
}
|
|
2326
|
-
/* This is callable directly as a template function */
|
|
2327
|
-
// $FlowFixMe: Not typed to avoid destructuring arguments
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
var templateFunction = function templateFunction() {
|
|
2331
|
-
return componentConstructor(tag, options, css.apply(void 0, arguments));
|
|
2332
|
-
};
|
|
2333
|
-
/* If config methods are called, wrap up a new template function and merge options */
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
templateFunction.withConfig = function (config) {
|
|
2337
|
-
return constructWithOptions(componentConstructor, tag, _extends$1({}, options, {}, config));
|
|
2338
|
-
};
|
|
2339
|
-
/* Modify/inject new props at runtime */
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
templateFunction.attrs = function (attrs) {
|
|
2343
|
-
return constructWithOptions(componentConstructor, tag, _extends$1({}, options, {
|
|
2344
|
-
attrs: Array.prototype.concat(options.attrs, attrs).filter(Boolean)
|
|
2345
|
-
}));
|
|
2346
|
-
};
|
|
2347
|
-
|
|
2348
|
-
return templateFunction;
|
|
2349
|
-
}
|
|
2350
|
-
|
|
2351
|
-
/* eslint-disable */
|
|
2352
|
-
|
|
2353
|
-
/**
|
|
2354
|
-
mixin-deep; https://github.com/jonschlinkert/mixin-deep
|
|
2355
|
-
Inlined such that it will be consistently transpiled to an IE-compatible syntax.
|
|
2356
|
-
|
|
2357
|
-
The MIT License (MIT)
|
|
2358
|
-
|
|
2359
|
-
Copyright (c) 2014-present, Jon Schlinkert.
|
|
2360
|
-
|
|
2361
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
2362
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
2363
|
-
in the Software without restriction, including without limitation the rights
|
|
2364
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
2365
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
2366
|
-
furnished to do so, subject to the following conditions:
|
|
2367
|
-
|
|
2368
|
-
The above copyright notice and this permission notice shall be included in
|
|
2369
|
-
all copies or substantial portions of the Software.
|
|
2370
|
-
|
|
2371
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
2372
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
2373
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
2374
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
2375
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
2376
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
2377
|
-
THE SOFTWARE.
|
|
2378
|
-
*/
|
|
2379
|
-
var isObject = function isObject(val) {
|
|
2380
|
-
return typeof val === 'function' || typeof val === 'object' && val !== null && !Array.isArray(val);
|
|
2381
|
-
};
|
|
2382
|
-
|
|
2383
|
-
var isValidKey = function isValidKey(key) {
|
|
2384
|
-
return key !== '__proto__' && key !== 'constructor' && key !== 'prototype';
|
|
2385
|
-
};
|
|
2386
|
-
|
|
2387
|
-
function mixin(target, val, key) {
|
|
2388
|
-
var obj = target[key];
|
|
2389
|
-
|
|
2390
|
-
if (isObject(val) && isObject(obj)) {
|
|
2391
|
-
mixinDeep(obj, val);
|
|
2392
|
-
} else {
|
|
2393
|
-
target[key] = val;
|
|
2394
|
-
}
|
|
2395
|
-
}
|
|
2396
|
-
|
|
2397
|
-
function mixinDeep(target) {
|
|
2398
|
-
for (var _len = arguments.length, rest = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
2399
|
-
rest[_key - 1] = arguments[_key];
|
|
2400
|
-
}
|
|
2401
|
-
|
|
2402
|
-
for (var _i = 0, _rest = rest; _i < _rest.length; _i++) {
|
|
2403
|
-
var obj = _rest[_i];
|
|
2404
|
-
|
|
2405
|
-
if (isObject(obj)) {
|
|
2406
|
-
for (var key in obj) {
|
|
2407
|
-
if (isValidKey(key)) {
|
|
2408
|
-
mixin(target, obj[key], key);
|
|
2409
|
-
}
|
|
2410
|
-
}
|
|
2411
|
-
}
|
|
2412
|
-
}
|
|
2413
|
-
|
|
2414
|
-
return target;
|
|
2415
|
-
}
|
|
2416
|
-
|
|
2417
|
-
//
|
|
2418
|
-
|
|
2419
|
-
/* eslint-disable no-bitwise */
|
|
2420
|
-
var AD_REPLACER_R = /(a)(d)/gi;
|
|
2421
|
-
/* This is the "capacity" of our alphabet i.e. 2x26 for all letters plus their capitalised
|
|
2422
|
-
* counterparts */
|
|
2423
|
-
|
|
2424
|
-
var charsLength = 52;
|
|
2425
|
-
/* start at 75 for 'a' until 'z' (25) and then start at 65 for capitalised letters */
|
|
2426
|
-
|
|
2427
|
-
var getAlphabeticChar = function getAlphabeticChar(code) {
|
|
2428
|
-
return String.fromCharCode(code + (code > 25 ? 39 : 97));
|
|
2429
|
-
};
|
|
2430
|
-
/* input a number, usually a hash and convert it to base-52 */
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
function generateAlphabeticName(code) {
|
|
2434
|
-
var name = '';
|
|
2435
|
-
var x;
|
|
2436
|
-
/* get a char and divide by alphabet-length */
|
|
2437
|
-
|
|
2438
|
-
for (x = Math.abs(code); x > charsLength; x = x / charsLength | 0) {
|
|
2439
|
-
name = getAlphabeticChar(x % charsLength) + name;
|
|
2440
|
-
}
|
|
2441
|
-
|
|
2442
|
-
return (getAlphabeticChar(x % charsLength) + name).replace(AD_REPLACER_R, '$1-$2');
|
|
2443
|
-
}
|
|
2444
|
-
|
|
2445
|
-
//
|
|
2446
|
-
function isStaticRules(rules) {
|
|
2447
|
-
for (var i = 0; i < rules.length; i += 1) {
|
|
2448
|
-
var rule = rules[i];
|
|
2449
|
-
|
|
2450
|
-
if (isFunction(rule) && !isStyledComponent(rule)) {
|
|
2451
|
-
// functions are allowed to be static if they're just being
|
|
2452
|
-
// used to get the classname of a nested styled component
|
|
2453
|
-
return false;
|
|
2454
|
-
}
|
|
2455
|
-
}
|
|
2456
|
-
|
|
2457
|
-
return true;
|
|
2458
|
-
}
|
|
2459
|
-
|
|
2460
|
-
//
|
|
2461
|
-
/*
|
|
2462
|
-
ComponentStyle is all the CSS-specific stuff, not
|
|
2463
|
-
the React-specific stuff.
|
|
2464
|
-
*/
|
|
2465
|
-
|
|
2466
|
-
var ComponentStyle = /*#__PURE__*/function () {
|
|
2467
|
-
function ComponentStyle(rules, componentId) {
|
|
2468
|
-
this.rules = rules;
|
|
2469
|
-
this.staticRulesId = '';
|
|
2470
|
-
this.isStatic = process.env.NODE_ENV === 'production' && isStaticRules(rules);
|
|
2471
|
-
this.componentId = componentId;
|
|
2472
|
-
this.baseHash = hash(componentId); // NOTE: This registers the componentId, which ensures a consistent order
|
|
2473
|
-
// for this component's styles compared to others
|
|
2474
|
-
|
|
2475
|
-
StyleSheet.registerId(componentId);
|
|
2476
|
-
}
|
|
2477
|
-
/*
|
|
2478
|
-
* Flattens a rule set into valid CSS
|
|
2479
|
-
* Hashes it, wraps the whole chunk in a .hash1234 {}
|
|
2480
|
-
* Returns the hash to be injected on render()
|
|
2481
|
-
* */
|
|
2482
|
-
|
|
2483
|
-
|
|
2484
|
-
var _proto = ComponentStyle.prototype;
|
|
2485
|
-
|
|
2486
|
-
_proto.generateAndInjectStyles = function generateAndInjectStyles(executionContext, styleSheet, stylis) {
|
|
2487
|
-
var componentId = this.componentId; // force dynamic classnames if user-supplied stylis plugins are in use
|
|
2488
|
-
|
|
2489
|
-
if (this.isStatic && !stylis.hash) {
|
|
2490
|
-
if (this.staticRulesId && styleSheet.hasNameForId(componentId, this.staticRulesId)) {
|
|
2491
|
-
return this.staticRulesId;
|
|
2492
|
-
}
|
|
2493
|
-
|
|
2494
|
-
var cssStatic = flatten(this.rules, executionContext, styleSheet).join('');
|
|
2495
|
-
var name = generateAlphabeticName(phash(this.baseHash, cssStatic.length) >>> 0);
|
|
2496
|
-
|
|
2497
|
-
if (!styleSheet.hasNameForId(componentId, name)) {
|
|
2498
|
-
var cssStaticFormatted = stylis(cssStatic, "." + name, undefined, componentId);
|
|
2499
|
-
styleSheet.insertRules(componentId, name, cssStaticFormatted);
|
|
2500
|
-
}
|
|
2501
|
-
|
|
2502
|
-
this.staticRulesId = name;
|
|
2503
|
-
return name;
|
|
2504
|
-
} else {
|
|
2505
|
-
var length = this.rules.length;
|
|
2506
|
-
var dynamicHash = phash(this.baseHash, stylis.hash);
|
|
2507
|
-
var css = '';
|
|
2508
|
-
|
|
2509
|
-
for (var i = 0; i < length; i++) {
|
|
2510
|
-
var partRule = this.rules[i];
|
|
2511
|
-
|
|
2512
|
-
if (typeof partRule === 'string') {
|
|
2513
|
-
css += partRule;
|
|
2514
|
-
if (process.env.NODE_ENV !== 'production') dynamicHash = phash(dynamicHash, partRule + i);
|
|
2515
|
-
} else {
|
|
2516
|
-
var partChunk = flatten(partRule, executionContext, styleSheet);
|
|
2517
|
-
var partString = Array.isArray(partChunk) ? partChunk.join('') : partChunk;
|
|
2518
|
-
dynamicHash = phash(dynamicHash, partString + i);
|
|
2519
|
-
css += partString;
|
|
2520
|
-
}
|
|
2521
|
-
}
|
|
2522
|
-
|
|
2523
|
-
var _name = generateAlphabeticName(dynamicHash >>> 0);
|
|
2524
|
-
|
|
2525
|
-
if (!styleSheet.hasNameForId(componentId, _name)) {
|
|
2526
|
-
var cssFormatted = stylis(css, "." + _name, undefined, componentId);
|
|
2527
|
-
styleSheet.insertRules(componentId, _name, cssFormatted);
|
|
2528
|
-
}
|
|
2529
|
-
|
|
2530
|
-
return _name;
|
|
2531
|
-
}
|
|
2532
|
-
};
|
|
2533
|
-
|
|
2534
|
-
return ComponentStyle;
|
|
2535
|
-
}();
|
|
2536
|
-
|
|
2537
|
-
//
|
|
2538
|
-
var LIMIT = 200;
|
|
2539
|
-
var createWarnTooManyClasses = (function (displayName, componentId) {
|
|
2540
|
-
var generatedClasses = {};
|
|
2541
|
-
var warningSeen = false;
|
|
2542
|
-
return function (className) {
|
|
2543
|
-
if (!warningSeen) {
|
|
2544
|
-
generatedClasses[className] = true;
|
|
2545
|
-
|
|
2546
|
-
if (Object.keys(generatedClasses).length >= LIMIT) {
|
|
2547
|
-
// Unable to find latestRule in test environment.
|
|
2548
|
-
|
|
2549
|
-
/* eslint-disable no-console, prefer-template */
|
|
2550
|
-
var parsedIdString = componentId ? " with the id of \"" + componentId + "\"" : '';
|
|
2551
|
-
console.warn("Over " + LIMIT + " classes were generated for component " + displayName + parsedIdString + ".\n" + 'Consider using the attrs method, together with a style object for frequently changed styles.\n' + 'Example:\n' + ' const Component = styled.div.attrs(props => ({\n' + ' style: {\n' + ' background: props.background,\n' + ' },\n' + ' }))`width: 100%;`\n\n' + ' <Component />');
|
|
2552
|
-
warningSeen = true;
|
|
2553
|
-
generatedClasses = {};
|
|
2554
|
-
}
|
|
2555
|
-
}
|
|
2556
|
-
};
|
|
2557
|
-
});
|
|
2558
|
-
|
|
2559
|
-
//
|
|
2560
|
-
var invalidHookCallRe = /invalid hook call/i;
|
|
2561
|
-
var seen = new Set();
|
|
2562
|
-
var checkDynamicCreation = function checkDynamicCreation(displayName, componentId) {
|
|
2563
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
2564
|
-
var parsedIdString = componentId ? " with the id of \"" + componentId + "\"" : '';
|
|
2565
|
-
var message = "The component " + displayName + parsedIdString + " has been created dynamically.\n" + 'You may see this warning because you\'ve called styled inside another component.\n' + 'To resolve this only create new StyledComponents outside of any render method and function component.';
|
|
2566
|
-
|
|
2567
|
-
try {
|
|
2568
|
-
// We purposefully call `useRef` outside of a component and expect it to throw
|
|
2569
|
-
// If it doesn't, then we're inside another component.
|
|
2570
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
2571
|
-
React.useRef();
|
|
2572
|
-
|
|
2573
|
-
if (!seen.has(message)) {
|
|
2574
|
-
// eslint-disable-next-line no-console
|
|
2575
|
-
console.warn(message);
|
|
2576
|
-
seen.add(message);
|
|
2577
|
-
}
|
|
2578
|
-
} catch (error) {
|
|
2579
|
-
// The error here is expected, since we're expecting anything that uses `checkDynamicCreation` to
|
|
2580
|
-
// be called outside of a React component.
|
|
2581
|
-
if (invalidHookCallRe.test(error.message)) {
|
|
2582
|
-
// This shouldn't happen, but resets `warningSeen` if we had this error happen intermittently
|
|
2583
|
-
seen["delete"](message);
|
|
2584
|
-
}
|
|
2585
|
-
}
|
|
2586
|
-
}
|
|
2587
|
-
};
|
|
2588
|
-
|
|
2589
|
-
//
|
|
2590
|
-
var determineTheme = (function (props, providedTheme, defaultProps) {
|
|
2591
|
-
if (defaultProps === void 0) {
|
|
2592
|
-
defaultProps = EMPTY_OBJECT;
|
|
2593
|
-
}
|
|
2594
|
-
|
|
2595
|
-
return props.theme !== defaultProps.theme && props.theme || providedTheme || defaultProps.theme;
|
|
2596
|
-
});
|
|
2597
|
-
|
|
2598
|
-
//
|
|
2599
|
-
// Source: https://www.w3.org/TR/cssom-1/#serialize-an-identifier
|
|
2600
|
-
// Control characters and non-letter first symbols are not supported
|
|
2601
|
-
var escapeRegex = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g;
|
|
2602
|
-
var dashesAtEnds = /(^-|-$)/g;
|
|
2603
|
-
/**
|
|
2604
|
-
* TODO: Explore using CSS.escape when it becomes more available
|
|
2605
|
-
* in evergreen browsers.
|
|
2606
|
-
*/
|
|
2607
|
-
|
|
2608
|
-
function escape(str) {
|
|
2609
|
-
return str // Replace all possible CSS selectors
|
|
2610
|
-
.replace(escapeRegex, '-') // Remove extraneous hyphens at the start and end
|
|
2611
|
-
.replace(dashesAtEnds, '');
|
|
2612
|
-
}
|
|
2613
|
-
|
|
2614
|
-
//
|
|
2615
|
-
function isTag(target) {
|
|
2616
|
-
return typeof target === 'string' && (process.env.NODE_ENV !== 'production' ? target.charAt(0) === target.charAt(0).toLowerCase() : true);
|
|
2617
|
-
}
|
|
2618
|
-
|
|
2619
|
-
//
|
|
2620
|
-
function generateDisplayName(target) {
|
|
2621
|
-
// $FlowFixMe
|
|
2622
|
-
return isTag(target) ? "styled." + target : "Styled(" + getComponentName(target) + ")";
|
|
2623
|
-
}
|
|
2624
|
-
|
|
2625
|
-
//
|
|
2626
|
-
var generateComponentId = (function (str) {
|
|
2627
|
-
return generateAlphabeticName(hash(str) >>> 0);
|
|
2628
|
-
});
|
|
2629
|
-
|
|
2630
|
-
/**
|
|
2631
|
-
* Convenience function for joining strings to form className chains
|
|
2632
|
-
*/
|
|
2633
|
-
function joinStrings(a, b) {
|
|
2634
|
-
return a && b ? a + " " + b : a || b;
|
|
2635
|
-
}
|
|
2636
|
-
|
|
2637
|
-
var ThemeContext = React__default.createContext();
|
|
2638
|
-
var ThemeConsumer = ThemeContext.Consumer;
|
|
2639
|
-
|
|
2640
|
-
function mergeTheme(theme, outerTheme) {
|
|
2641
|
-
if (!theme) {
|
|
2642
|
-
return throwStyledComponentsError(14);
|
|
2643
|
-
}
|
|
2644
|
-
|
|
2645
|
-
if (isFunction(theme)) {
|
|
2646
|
-
var mergedTheme = theme(outerTheme);
|
|
2647
|
-
|
|
2648
|
-
if (process.env.NODE_ENV !== 'production' && (mergedTheme === null || Array.isArray(mergedTheme) || typeof mergedTheme !== 'object')) {
|
|
2649
|
-
return throwStyledComponentsError(7);
|
|
2650
|
-
}
|
|
2651
|
-
|
|
2652
|
-
return mergedTheme;
|
|
2653
|
-
}
|
|
2654
|
-
|
|
2655
|
-
if (Array.isArray(theme) || typeof theme !== 'object') {
|
|
2656
|
-
return throwStyledComponentsError(8);
|
|
2657
|
-
}
|
|
2658
|
-
|
|
2659
|
-
return outerTheme ? _extends$1({}, outerTheme, {}, theme) : theme;
|
|
2660
|
-
}
|
|
2661
|
-
/**
|
|
2662
|
-
* Provide a theme to an entire react component tree via context
|
|
2663
|
-
*/
|
|
2664
|
-
|
|
2665
|
-
|
|
2666
|
-
function ThemeProvider(props) {
|
|
2667
|
-
var outerTheme = React.useContext(ThemeContext);
|
|
2668
|
-
var themeContext = React.useMemo(function () {
|
|
2669
|
-
return mergeTheme(props.theme, outerTheme);
|
|
2670
|
-
}, [props.theme, outerTheme]);
|
|
2671
|
-
|
|
2672
|
-
if (!props.children) {
|
|
2673
|
-
return null;
|
|
2674
|
-
}
|
|
2675
|
-
|
|
2676
|
-
return /*#__PURE__*/React__default.createElement(ThemeContext.Provider, {
|
|
2677
|
-
value: themeContext
|
|
2678
|
-
}, props.children);
|
|
2679
|
-
}
|
|
2680
|
-
|
|
2681
|
-
/* global $Call */
|
|
2682
|
-
|
|
2683
|
-
var identifiers = {};
|
|
2684
|
-
/* We depend on components having unique IDs */
|
|
2685
|
-
|
|
2686
|
-
function generateId(displayName, parentComponentId) {
|
|
2687
|
-
var name = typeof displayName !== 'string' ? 'sc' : escape(displayName); // Ensure that no displayName can lead to duplicate componentIds
|
|
2688
|
-
|
|
2689
|
-
identifiers[name] = (identifiers[name] || 0) + 1;
|
|
2690
|
-
var componentId = name + "-" + generateComponentId(name + identifiers[name]);
|
|
2691
|
-
return parentComponentId ? parentComponentId + "-" + componentId : componentId;
|
|
2692
|
-
}
|
|
2693
|
-
|
|
2694
|
-
function useResolvedAttrs(theme, props, attrs) {
|
|
2695
|
-
if (theme === void 0) {
|
|
2696
|
-
theme = EMPTY_OBJECT;
|
|
2697
|
-
}
|
|
2698
|
-
|
|
2699
|
-
// NOTE: can't memoize this
|
|
2700
|
-
// returns [context, resolvedAttrs]
|
|
2701
|
-
// where resolvedAttrs is only the things injected by the attrs themselves
|
|
2702
|
-
var context = _extends$1({}, props, {
|
|
2703
|
-
theme: theme
|
|
2704
|
-
});
|
|
2705
|
-
|
|
2706
|
-
var resolvedAttrs = {};
|
|
2707
|
-
attrs.forEach(function (attrDef) {
|
|
2708
|
-
var resolvedAttrDef = attrDef;
|
|
2709
|
-
var key;
|
|
2710
|
-
|
|
2711
|
-
if (isFunction(resolvedAttrDef)) {
|
|
2712
|
-
resolvedAttrDef = resolvedAttrDef(context);
|
|
2713
|
-
}
|
|
2714
|
-
/* eslint-disable guard-for-in */
|
|
2715
|
-
|
|
2716
|
-
|
|
2717
|
-
for (key in resolvedAttrDef) {
|
|
2718
|
-
context[key] = resolvedAttrs[key] = key === 'className' ? joinStrings(resolvedAttrs[key], resolvedAttrDef[key]) : resolvedAttrDef[key];
|
|
2719
|
-
}
|
|
2720
|
-
/* eslint-enable guard-for-in */
|
|
2721
|
-
|
|
2722
|
-
});
|
|
2723
|
-
return [context, resolvedAttrs];
|
|
2724
|
-
}
|
|
2725
|
-
|
|
2726
|
-
function useInjectedStyle(componentStyle, hasAttrs, resolvedAttrs, warnTooManyClasses) {
|
|
2727
|
-
var styleSheet = useStyleSheet();
|
|
2728
|
-
var stylis = useStylis(); // statically styled-components don't need to build an execution context object,
|
|
2729
|
-
// and shouldn't be increasing the number of class names
|
|
2730
|
-
|
|
2731
|
-
var isStatic = componentStyle.isStatic && !hasAttrs;
|
|
2732
|
-
var className = isStatic ? componentStyle.generateAndInjectStyles(EMPTY_OBJECT, styleSheet, stylis) : componentStyle.generateAndInjectStyles(resolvedAttrs, styleSheet, stylis);
|
|
2733
|
-
React.useDebugValue(className);
|
|
2734
|
-
|
|
2735
|
-
if (process.env.NODE_ENV !== 'production' && !isStatic && warnTooManyClasses) {
|
|
2736
|
-
warnTooManyClasses(className);
|
|
2737
|
-
}
|
|
2738
|
-
|
|
2739
|
-
return className;
|
|
2740
|
-
}
|
|
2741
|
-
|
|
2742
|
-
function useStyledComponentImpl(forwardedComponent, props, forwardedRef) {
|
|
2743
|
-
var componentAttrs = forwardedComponent.attrs,
|
|
2744
|
-
componentStyle = forwardedComponent.componentStyle,
|
|
2745
|
-
defaultProps = forwardedComponent.defaultProps,
|
|
2746
|
-
foldedComponentIds = forwardedComponent.foldedComponentIds,
|
|
2747
|
-
shouldForwardProp = forwardedComponent.shouldForwardProp,
|
|
2748
|
-
styledComponentId = forwardedComponent.styledComponentId,
|
|
2749
|
-
target = forwardedComponent.target;
|
|
2750
|
-
React.useDebugValue(styledComponentId); // NOTE: the non-hooks version only subscribes to this when !componentStyle.isStatic,
|
|
2751
|
-
// but that'd be against the rules-of-hooks. We could be naughty and do it anyway as it
|
|
2752
|
-
// should be an immutable value, but behave for now.
|
|
2753
|
-
|
|
2754
|
-
var theme = determineTheme(props, React.useContext(ThemeContext), defaultProps);
|
|
2755
|
-
|
|
2756
|
-
var _useResolvedAttrs = useResolvedAttrs(theme || EMPTY_OBJECT, props, componentAttrs),
|
|
2757
|
-
context = _useResolvedAttrs[0],
|
|
2758
|
-
attrs = _useResolvedAttrs[1];
|
|
2759
|
-
|
|
2760
|
-
var generatedClassName = useInjectedStyle(componentStyle, componentAttrs.length > 0, context, process.env.NODE_ENV !== 'production' ? forwardedComponent.warnTooManyClasses : undefined);
|
|
2761
|
-
var refToForward = forwardedRef;
|
|
2762
|
-
var elementToBeCreated = attrs.$as || props.$as || attrs.as || props.as || target;
|
|
2763
|
-
var isTargetTag = isTag(elementToBeCreated);
|
|
2764
|
-
var computedProps = attrs !== props ? _extends$1({}, props, {}, attrs) : props;
|
|
2765
|
-
var propFilterFn = shouldForwardProp || isTargetTag && index;
|
|
2766
|
-
var propsForElement = {}; // eslint-disable-next-line guard-for-in
|
|
2767
|
-
|
|
2768
|
-
for (var key in computedProps) {
|
|
2769
|
-
if (key[0] === '$' || key === 'as') continue;else if (key === 'forwardedAs') {
|
|
2770
|
-
propsForElement.as = computedProps[key];
|
|
2771
|
-
} else if (!propFilterFn || propFilterFn(key, index)) {
|
|
2772
|
-
// Don't pass through non HTML tags through to HTML elements
|
|
2773
|
-
propsForElement[key] = computedProps[key];
|
|
2774
|
-
}
|
|
2775
|
-
}
|
|
2776
|
-
|
|
2777
|
-
if (props.style && attrs.style !== props.style) {
|
|
2778
|
-
propsForElement.style = _extends$1({}, props.style, {}, attrs.style);
|
|
2779
|
-
}
|
|
2780
|
-
|
|
2781
|
-
propsForElement.className = Array.prototype.concat(foldedComponentIds, styledComponentId, generatedClassName !== styledComponentId ? generatedClassName : null, props.className, attrs.className).filter(Boolean).join(' ');
|
|
2782
|
-
propsForElement.ref = refToForward;
|
|
2783
|
-
return React.createElement(elementToBeCreated, propsForElement);
|
|
2784
|
-
}
|
|
2785
|
-
|
|
2786
|
-
function createStyledComponent(target, options, rules) {
|
|
2787
|
-
var isTargetStyledComp = isStyledComponent(target);
|
|
2788
|
-
var isCompositeComponent = !isTag(target);
|
|
2789
|
-
var _options$displayName = options.displayName,
|
|
2790
|
-
displayName = _options$displayName === void 0 ? generateDisplayName(target) : _options$displayName,
|
|
2791
|
-
_options$componentId = options.componentId,
|
|
2792
|
-
componentId = _options$componentId === void 0 ? generateId(options.displayName, options.parentComponentId) : _options$componentId,
|
|
2793
|
-
_options$attrs = options.attrs,
|
|
2794
|
-
attrs = _options$attrs === void 0 ? EMPTY_ARRAY : _options$attrs;
|
|
2795
|
-
var styledComponentId = options.displayName && options.componentId ? escape(options.displayName) + "-" + options.componentId : options.componentId || componentId; // fold the underlying StyledComponent attrs up (implicit extend)
|
|
2796
|
-
|
|
2797
|
-
var finalAttrs = // $FlowFixMe
|
|
2798
|
-
isTargetStyledComp && target.attrs ? Array.prototype.concat(target.attrs, attrs).filter(Boolean) : attrs; // eslint-disable-next-line prefer-destructuring
|
|
2799
|
-
|
|
2800
|
-
var shouldForwardProp = options.shouldForwardProp; // $FlowFixMe
|
|
2801
|
-
|
|
2802
|
-
if (isTargetStyledComp && target.shouldForwardProp) {
|
|
2803
|
-
if (shouldForwardProp) {
|
|
2804
|
-
// compose nested shouldForwardProp calls
|
|
2805
|
-
shouldForwardProp = function shouldForwardProp(prop, filterFn) {
|
|
2806
|
-
return (// $FlowFixMe
|
|
2807
|
-
target.shouldForwardProp(prop, filterFn) && options.shouldForwardProp(prop, filterFn)
|
|
2808
|
-
);
|
|
2809
|
-
};
|
|
2810
|
-
} else {
|
|
2811
|
-
// eslint-disable-next-line prefer-destructuring
|
|
2812
|
-
shouldForwardProp = target.shouldForwardProp;
|
|
2813
|
-
}
|
|
2814
|
-
}
|
|
2815
|
-
|
|
2816
|
-
var componentStyle = new ComponentStyle(isTargetStyledComp ? // fold the underlying StyledComponent rules up (implicit extend)
|
|
2817
|
-
// $FlowFixMe
|
|
2818
|
-
target.componentStyle.rules.concat(rules) : rules, styledComponentId);
|
|
2819
|
-
/**
|
|
2820
|
-
* forwardRef creates a new interim component, which we'll take advantage of
|
|
2821
|
-
* instead of extending ParentComponent to create _another_ interim class
|
|
2822
|
-
*/
|
|
2823
|
-
|
|
2824
|
-
var WrappedStyledComponent; // eslint-disable-next-line react-hooks/rules-of-hooks
|
|
2825
|
-
|
|
2826
|
-
var forwardRef = function forwardRef(props, ref) {
|
|
2827
|
-
return useStyledComponentImpl(WrappedStyledComponent, props, ref);
|
|
2828
|
-
};
|
|
2829
|
-
|
|
2830
|
-
forwardRef.displayName = displayName; // $FlowFixMe this is a forced cast to merge it StyledComponentWrapperProperties
|
|
2831
|
-
|
|
2832
|
-
WrappedStyledComponent = React__default.forwardRef(forwardRef);
|
|
2833
|
-
WrappedStyledComponent.attrs = finalAttrs;
|
|
2834
|
-
WrappedStyledComponent.componentStyle = componentStyle;
|
|
2835
|
-
WrappedStyledComponent.displayName = displayName;
|
|
2836
|
-
WrappedStyledComponent.shouldForwardProp = shouldForwardProp; // this static is used to preserve the cascade of static classes for component selector
|
|
2837
|
-
// purposes; this is especially important with usage of the css prop
|
|
2838
|
-
|
|
2839
|
-
WrappedStyledComponent.foldedComponentIds = isTargetStyledComp ? // $FlowFixMe
|
|
2840
|
-
Array.prototype.concat(target.foldedComponentIds, target.styledComponentId) : EMPTY_ARRAY;
|
|
2841
|
-
WrappedStyledComponent.styledComponentId = styledComponentId; // fold the underlying StyledComponent target up since we folded the styles
|
|
2842
|
-
|
|
2843
|
-
WrappedStyledComponent.target = isTargetStyledComp ? // $FlowFixMe
|
|
2844
|
-
target.target : target; // $FlowFixMe
|
|
2845
|
-
|
|
2846
|
-
WrappedStyledComponent.withComponent = function withComponent(tag) {
|
|
2847
|
-
var previousComponentId = options.componentId,
|
|
2848
|
-
optionsToCopy = _objectWithoutPropertiesLoose$1(options, ["componentId"]);
|
|
2849
|
-
|
|
2850
|
-
var newComponentId = previousComponentId && previousComponentId + "-" + (isTag(tag) ? tag : escape(getComponentName(tag)));
|
|
2851
|
-
|
|
2852
|
-
var newOptions = _extends$1({}, optionsToCopy, {
|
|
2853
|
-
attrs: finalAttrs,
|
|
2854
|
-
componentId: newComponentId
|
|
2855
|
-
});
|
|
2856
|
-
|
|
2857
|
-
return createStyledComponent(tag, newOptions, rules);
|
|
2858
|
-
}; // $FlowFixMe
|
|
2859
|
-
|
|
2860
|
-
|
|
2861
|
-
Object.defineProperty(WrappedStyledComponent, 'defaultProps', {
|
|
2862
|
-
get: function get() {
|
|
2863
|
-
return this._foldedDefaultProps;
|
|
2864
|
-
},
|
|
2865
|
-
set: function set(obj) {
|
|
2866
|
-
// $FlowFixMe
|
|
2867
|
-
this._foldedDefaultProps = isTargetStyledComp ? mixinDeep({}, target.defaultProps, obj) : obj;
|
|
2868
|
-
}
|
|
2869
|
-
});
|
|
2870
|
-
|
|
2871
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
2872
|
-
checkDynamicCreation(displayName, styledComponentId);
|
|
2873
|
-
WrappedStyledComponent.warnTooManyClasses = createWarnTooManyClasses(displayName, styledComponentId);
|
|
2874
|
-
} // $FlowFixMe
|
|
2875
|
-
|
|
2876
|
-
|
|
2877
|
-
WrappedStyledComponent.toString = function () {
|
|
2878
|
-
return "." + WrappedStyledComponent.styledComponentId;
|
|
2879
|
-
};
|
|
2880
|
-
|
|
2881
|
-
if (isCompositeComponent) {
|
|
2882
|
-
hoistNonReactStatics_cjs(WrappedStyledComponent, target, {
|
|
2883
|
-
// all SC-specific things should not be hoisted
|
|
2884
|
-
attrs: true,
|
|
2885
|
-
componentStyle: true,
|
|
2886
|
-
displayName: true,
|
|
2887
|
-
foldedComponentIds: true,
|
|
2888
|
-
shouldForwardProp: true,
|
|
2889
|
-
self: true,
|
|
2890
|
-
styledComponentId: true,
|
|
2891
|
-
target: true,
|
|
2892
|
-
withComponent: true
|
|
2893
|
-
});
|
|
2894
|
-
}
|
|
2895
|
-
|
|
2896
|
-
return WrappedStyledComponent;
|
|
2897
|
-
}
|
|
2898
|
-
|
|
2899
|
-
//
|
|
2900
|
-
// Thanks to ReactDOMFactories for this handy list!
|
|
2901
|
-
var domElements = ['a', 'abbr', 'address', 'area', 'article', 'aside', 'audio', 'b', 'base', 'bdi', 'bdo', 'big', 'blockquote', 'body', 'br', 'button', 'canvas', 'caption', 'cite', 'code', 'col', 'colgroup', 'data', 'datalist', 'dd', 'del', 'details', 'dfn', 'dialog', 'div', 'dl', 'dt', 'em', 'embed', 'fieldset', 'figcaption', 'figure', 'footer', 'form', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'head', 'header', 'hgroup', 'hr', 'html', 'i', 'iframe', 'img', 'input', 'ins', 'kbd', 'keygen', 'label', 'legend', 'li', 'link', 'main', 'map', 'mark', 'marquee', 'menu', 'menuitem', 'meta', 'meter', 'nav', 'noscript', 'object', 'ol', 'optgroup', 'option', 'output', 'p', 'param', 'picture', 'pre', 'progress', 'q', 'rp', 'rt', 'ruby', 's', 'samp', 'script', 'section', 'select', 'small', 'source', 'span', 'strong', 'style', 'sub', 'summary', 'sup', 'table', 'tbody', 'td', 'textarea', 'tfoot', 'th', 'thead', 'time', 'title', 'tr', 'track', 'u', 'ul', 'var', 'video', 'wbr', // SVG
|
|
2902
|
-
'circle', 'clipPath', 'defs', 'ellipse', 'foreignObject', 'g', 'image', 'line', 'linearGradient', 'marker', 'mask', 'path', 'pattern', 'polygon', 'polyline', 'radialGradient', 'rect', 'stop', 'svg', 'text', 'tspan'];
|
|
2903
|
-
|
|
2904
|
-
//
|
|
2905
|
-
|
|
2906
|
-
var styled = function styled(tag) {
|
|
2907
|
-
return constructWithOptions(createStyledComponent, tag);
|
|
2908
|
-
}; // Shorthands for all valid HTML Elements
|
|
2909
|
-
|
|
2910
|
-
|
|
2911
|
-
domElements.forEach(function (domElement) {
|
|
2912
|
-
styled[domElement] = styled(domElement);
|
|
2913
|
-
});
|
|
2914
|
-
/* Warning if you've imported this file on React Native */
|
|
2915
|
-
|
|
2916
|
-
if (process.env.NODE_ENV !== 'production' && typeof navigator !== 'undefined' && navigator.product === 'ReactNative') {
|
|
2917
|
-
// eslint-disable-next-line no-console
|
|
2918
|
-
console.warn("It looks like you've imported 'styled-components' on React Native.\n" + "Perhaps you're looking to import 'styled-components/native'?\n" + 'Read more about this at https://www.styled-components.com/docs/basics#react-native');
|
|
2919
|
-
}
|
|
2920
|
-
/* Warning if there are several instances of styled-components */
|
|
2921
|
-
|
|
2922
|
-
|
|
2923
|
-
if (process.env.NODE_ENV !== 'production' && process.env.NODE_ENV !== 'test' && typeof window !== 'undefined') {
|
|
2924
|
-
window['__styled-components-init__'] = window['__styled-components-init__'] || 0;
|
|
2925
|
-
|
|
2926
|
-
if (window['__styled-components-init__'] === 1) {
|
|
2927
|
-
// eslint-disable-next-line no-console
|
|
2928
|
-
console.warn("It looks like there are several instances of 'styled-components' initialized in this application. " + 'This may cause dynamic styles not rendering properly, errors happening during rehydration process, ' + 'missing theme prop, and makes your application bigger without a good reason.\n\n' + 'See https://s-c.sh/2BAXzed for more info.');
|
|
2929
|
-
}
|
|
2930
|
-
|
|
2931
|
-
window['__styled-components-init__'] += 1;
|
|
2932
|
-
}
|
|
2933
|
-
|
|
2934
225
|
/*! *****************************************************************************
|
|
2935
226
|
Copyright (c) Microsoft Corporation.
|
|
2936
227
|
|
|
@@ -3416,17 +707,17 @@ var FLOAT_32_SUPPORTED = typeof Float32Array !== 'undefined';
|
|
|
3416
707
|
var a = function (a1, a2) {
|
|
3417
708
|
return 1.0 - 3.0 * a2 + 3.0 * a1;
|
|
3418
709
|
};
|
|
3419
|
-
var b
|
|
710
|
+
var b = function (a1, a2) {
|
|
3420
711
|
return 3.0 * a2 - 6.0 * a1;
|
|
3421
712
|
};
|
|
3422
|
-
var c
|
|
713
|
+
var c = function (a1) {
|
|
3423
714
|
return 3.0 * a1;
|
|
3424
715
|
};
|
|
3425
716
|
var getSlope = function (t, a1, a2) {
|
|
3426
|
-
return 3.0 * a(a1, a2) * t * t + 2.0 * b
|
|
717
|
+
return 3.0 * a(a1, a2) * t * t + 2.0 * b(a1, a2) * t + c(a1);
|
|
3427
718
|
};
|
|
3428
719
|
var calcBezier = function (t, a1, a2) {
|
|
3429
|
-
return ((a(a1, a2) * t + b
|
|
720
|
+
return ((a(a1, a2) * t + b(a1, a2)) * t + c(a1)) * t;
|
|
3430
721
|
};
|
|
3431
722
|
function cubicBezier(mX1, mY1, mX2, mY2) {
|
|
3432
723
|
var sampleValues = FLOAT_32_SUPPORTED ? new Float32Array(K_SPLINE_TABLE_SIZE) : new Array(K_SPLINE_TABLE_SIZE);
|
|
@@ -4437,7 +1728,7 @@ var createDOMStyler = function (node, props) {
|
|
|
4437
1728
|
var getStyler = function (node, props) {
|
|
4438
1729
|
return cache.has(node) ? cache.get(node) : createDOMStyler(node, props);
|
|
4439
1730
|
};
|
|
4440
|
-
function index
|
|
1731
|
+
function index(nodeOrSelector, props) {
|
|
4441
1732
|
var node = typeof nodeOrSelector === 'string' ? document.querySelector(nodeOrSelector) : nodeOrSelector;
|
|
4442
1733
|
return getStyler(node, props);
|
|
4443
1734
|
}
|
|
@@ -5499,7 +2790,7 @@ var pointer = function (props) {
|
|
|
5499
2790
|
return touches;
|
|
5500
2791
|
}, getFirstTouch) : mouse(props);
|
|
5501
2792
|
};
|
|
5502
|
-
var index$1
|
|
2793
|
+
var index$1 = function (_a) {
|
|
5503
2794
|
if (_a === void 0) {
|
|
5504
2795
|
_a = {};
|
|
5505
2796
|
}
|
|
@@ -6130,7 +3421,7 @@ var interpolate$1 = transformers.interpolate;
|
|
|
6130
3421
|
var singleAxisPointer = function (axis) {
|
|
6131
3422
|
return function (from) {
|
|
6132
3423
|
var _a;
|
|
6133
|
-
return index$1
|
|
3424
|
+
return index$1((_a = {}, _a[axis] = typeof from === 'string' ? parseFloat(from) : from, _a)).pipe(function (v) {
|
|
6134
3425
|
return v[axis];
|
|
6135
3426
|
});
|
|
6136
3427
|
};
|
|
@@ -6758,7 +4049,7 @@ var createPoseConfig = function (element, _a) {
|
|
|
6758
4049
|
hoverable: hoverable,
|
|
6759
4050
|
focusable: focusable,
|
|
6760
4051
|
pressable: pressable,
|
|
6761
|
-
element: element, elementStyler: index
|
|
4052
|
+
element: element, elementStyler: index(element, { preparseOutput: false }), dimensions: createDimensions(element) }) });
|
|
6762
4053
|
if (draggable) {
|
|
6763
4054
|
var _b = dragPoses(draggable),
|
|
6764
4055
|
drag = _b.drag,
|
|
@@ -6828,7 +4119,7 @@ var domPose$1 = function (element, config) {
|
|
|
6828
4119
|
return domPose(createPoseConfig(element, config));
|
|
6829
4120
|
};
|
|
6830
4121
|
|
|
6831
|
-
function memoize
|
|
4122
|
+
function memoize(fn) {
|
|
6832
4123
|
var cache = {};
|
|
6833
4124
|
return function (arg) {
|
|
6834
4125
|
if (cache[arg] === undefined) cache[arg] = fn(arg);
|
|
@@ -6836,10 +4127,10 @@ function memoize$1(fn) {
|
|
|
6836
4127
|
};
|
|
6837
4128
|
}
|
|
6838
4129
|
|
|
6839
|
-
var reactPropsRegex
|
|
4130
|
+
var reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|default|defer|dir|disabled|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|itemProp|itemScope|itemType|itemID|itemRef|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/; // https://esbench.com/bench/5bfee68a4cd7e6009ef61d23
|
|
6840
4131
|
|
|
6841
|
-
var index$2 = memoize
|
|
6842
|
-
return reactPropsRegex
|
|
4132
|
+
var index$2 = memoize(function (prop) {
|
|
4133
|
+
return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111
|
|
6843
4134
|
/* o */
|
|
6844
4135
|
&& prop.charCodeAt(1) === 110
|
|
6845
4136
|
/* n */
|
|
@@ -7461,7 +4752,7 @@ var themeComponent = function themeComponent(component, componentThemeId, fallba
|
|
|
7461
4752
|
variant = _ref7$variant === void 0 ? defaultVariant : _ref7$variant,
|
|
7462
4753
|
props = _objectWithoutProperties(_ref7, _excluded);
|
|
7463
4754
|
|
|
7464
|
-
var themeContext = React.useContext(ThemeContext);
|
|
4755
|
+
var themeContext = React.useContext(styled.ThemeContext);
|
|
7465
4756
|
var metadata = (_themeContext$metadat = themeContext === null || themeContext === void 0 ? void 0 : themeContext.metadata) !== null && _themeContext$metadat !== void 0 ? _themeContext$metadat : {};
|
|
7466
4757
|
var themeValues = themeContext ? createThemeValues(themeContext, fallbackValues, componentThemeId, variant) : fallbackValues;
|
|
7467
4758
|
return component(_objectSpread2(_objectSpread2({}, props), {}, {
|
|
@@ -7711,7 +5002,7 @@ var colors = /*#__PURE__*/Object.freeze({
|
|
|
7711
5002
|
ERROR_COLOR: ERROR_COLOR
|
|
7712
5003
|
});
|
|
7713
5004
|
|
|
7714
|
-
var TextSpan =
|
|
5005
|
+
var TextSpan = styled__default.span.withConfig({
|
|
7715
5006
|
displayName: "Textstyled__TextSpan",
|
|
7716
5007
|
componentId: "sc-1oy97we-0"
|
|
7717
5008
|
})(["--font-size:", ";font-size:var(--font-size);line-height:calc(1.5 * var(--font-size));font-weight:", ";font-family:", ";color:", ";white-space:", ";&:hover{", "}&:focus{outline:3px solid ", ";outline-offset:2px;}", " ", ""], function (_ref) {
|
|
@@ -7731,16 +5022,22 @@ var TextSpan = styled.span.withConfig({
|
|
|
7731
5022
|
return $textWrap ? "initial" : "nowrap";
|
|
7732
5023
|
}, function (_ref6) {
|
|
7733
5024
|
var hoverStyles = _ref6.hoverStyles;
|
|
7734
|
-
return css(["", ""], hoverStyles);
|
|
5025
|
+
return styled.css(["", ""], hoverStyles);
|
|
7735
5026
|
}, ROYAL_BLUE, function (_ref7) {
|
|
7736
5027
|
var disabled = _ref7.disabled,
|
|
7737
5028
|
disabledStyles = _ref7.disabledStyles;
|
|
7738
|
-
return disabled && css(["", ""], disabledStyles);
|
|
5029
|
+
return disabled && styled.css(["", ""], disabledStyles);
|
|
7739
5030
|
}, function (_ref8) {
|
|
7740
5031
|
var extraStyles = _ref8.extraStyles;
|
|
7741
5032
|
return extraStyles;
|
|
7742
5033
|
});
|
|
7743
5034
|
|
|
5035
|
+
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
5036
|
+
|
|
5037
|
+
function createCommonjsModule(fn, module) {
|
|
5038
|
+
return module = { exports: {} }, fn(module, module.exports), module.exports;
|
|
5039
|
+
}
|
|
5040
|
+
|
|
7744
5041
|
var numeral = createCommonjsModule(function (module) {
|
|
7745
5042
|
/*! @preserve
|
|
7746
5043
|
* numeral.js
|
|
@@ -8911,7 +6208,7 @@ var _excluded$2 = ["activeStyles", "hoverStyles", "disabledStyles", "extraStyles
|
|
|
8911
6208
|
|
|
8912
6209
|
/* eslint-disable no-unused-vars */
|
|
8913
6210
|
|
|
8914
|
-
var BoxWrapper =
|
|
6211
|
+
var BoxWrapper = styled__default(function (_ref) {
|
|
8915
6212
|
var activeStyles = _ref.activeStyles,
|
|
8916
6213
|
hoverStyles = _ref.hoverStyles,
|
|
8917
6214
|
disabledStyles = _ref.disabledStyles,
|
|
@@ -8979,27 +6276,27 @@ var BoxWrapper = styled(function (_ref) {
|
|
|
8979
6276
|
}, function (_ref14) {
|
|
8980
6277
|
var hoverStyles = _ref14.hoverStyles,
|
|
8981
6278
|
as = _ref14.as;
|
|
8982
|
-
return css(["", " ", ""], hoverStyles, as === "button" ? "> * > span {\n ".concat(hoverStyles, "\n border: none;\n outline: none;\n box-shadow: none;\n }") : "");
|
|
6279
|
+
return styled.css(["", " ", ""], hoverStyles, as === "button" ? "> * > span {\n ".concat(hoverStyles, "\n border: none;\n outline: none;\n box-shadow: none;\n }") : "");
|
|
8983
6280
|
}, function (_ref15) {
|
|
8984
6281
|
var as = _ref15.as;
|
|
8985
|
-
return css(["outline:3px solid ", ";outline-offset:2px;", ""], ROYAL_BLUE, as === "button" && "\n > * > span {\n border: none;\n outline: none;\n box-shadow: none;\n }");
|
|
6282
|
+
return styled.css(["outline:3px solid ", ";outline-offset:2px;", ""], ROYAL_BLUE, as === "button" && "\n > * > span {\n border: none;\n outline: none;\n box-shadow: none;\n }");
|
|
8986
6283
|
}, function (_ref16) {
|
|
8987
6284
|
var activeStyles = _ref16.activeStyles,
|
|
8988
6285
|
as = _ref16.as;
|
|
8989
|
-
return css(["", " ", ""], activeStyles, as === "button" ? " > * > span {\n ".concat(activeStyles, "\n border: none;\n outline: none;\n box-shadow: none;\n }") : "");
|
|
6286
|
+
return styled.css(["", " ", ""], activeStyles, as === "button" ? " > * > span {\n ".concat(activeStyles, "\n border: none;\n outline: none;\n box-shadow: none;\n }") : "");
|
|
8990
6287
|
}, function (_ref17) {
|
|
8991
6288
|
var disabledStyles = _ref17.disabledStyles,
|
|
8992
6289
|
as = _ref17.as;
|
|
8993
|
-
return css(["", " ", ""], disabledStyles, as === "button" ? " > * > span {\n ".concat(disabledStyles, "\n border: none;\n outline: none;\n box-shadow: none;\n }") : "");
|
|
6290
|
+
return styled.css(["", " ", ""], disabledStyles, as === "button" ? " > * > span {\n ".concat(disabledStyles, "\n border: none;\n outline: none;\n box-shadow: none;\n }") : "");
|
|
8994
6291
|
}, function (_ref18) {
|
|
8995
6292
|
var color = _ref18.color;
|
|
8996
6293
|
return color;
|
|
8997
6294
|
}, function (_ref19) {
|
|
8998
6295
|
var hiddenStyles = _ref19.hiddenStyles;
|
|
8999
|
-
return hiddenStyles && css(["display:none;"]);
|
|
6296
|
+
return hiddenStyles && styled.css(["display:none;"]);
|
|
9000
6297
|
}, function (_ref20) {
|
|
9001
6298
|
var extraStyles = _ref20.extraStyles;
|
|
9002
|
-
return css(["", ""], extraStyles);
|
|
6299
|
+
return styled.css(["", ""], extraStyles);
|
|
9003
6300
|
});
|
|
9004
6301
|
/* eslint-enable no-unused-vars */
|
|
9005
6302
|
|
|
@@ -9086,7 +6383,7 @@ var Box = function Box(_ref) {
|
|
|
9086
6383
|
}, rest), safeChildren(children, /*#__PURE__*/React__default.createElement(React.Fragment, null)));
|
|
9087
6384
|
};
|
|
9088
6385
|
|
|
9089
|
-
var CenterWrapper =
|
|
6386
|
+
var CenterWrapper = styled__default.div.withConfig({
|
|
9090
6387
|
displayName: "Centerstyled__CenterWrapper",
|
|
9091
6388
|
componentId: "sc-vawqfc-0"
|
|
9092
6389
|
})(["box-sizing:content-box;margin-left:auto;margin-right:auto;max-width:", ";padding-left:", ";padding-right:", ";", ";"], function (_ref) {
|
|
@@ -9128,7 +6425,7 @@ var Center = function Center(_ref) {
|
|
|
9128
6425
|
var _excluded$5 = ["overflow"];
|
|
9129
6426
|
/* eslint-disable no-unused-vars */
|
|
9130
6427
|
|
|
9131
|
-
var ClusterWrapper =
|
|
6428
|
+
var ClusterWrapper = styled__default(function (_ref) {
|
|
9132
6429
|
var overflow = _ref.overflow,
|
|
9133
6430
|
props = _objectWithoutProperties(_ref, _excluded$5);
|
|
9134
6431
|
|
|
@@ -9152,7 +6449,7 @@ var ClusterWrapper = styled(function (_ref) {
|
|
|
9152
6449
|
var $extraStyles = _ref6.$extraStyles;
|
|
9153
6450
|
return $extraStyles;
|
|
9154
6451
|
});
|
|
9155
|
-
var ClusterInnerWrapper =
|
|
6452
|
+
var ClusterInnerWrapper = styled__default.div.withConfig({
|
|
9156
6453
|
displayName: "Clusterstyled__ClusterInnerWrapper",
|
|
9157
6454
|
componentId: "sc-1dkqsm7-1"
|
|
9158
6455
|
})(["box-sizing:border-box;display:flex;flex-wrap:", ";justify-content:", ";align-items:", ";margin:calc(", " / 2 * -1);min-height:", ";min-width:", ";> *{margin:calc(", " / 2);}"], function (_ref7) {
|
|
@@ -9221,7 +6518,7 @@ var Cluster = function Cluster(_ref) {
|
|
|
9221
6518
|
}, safeChildren(children, /*#__PURE__*/React__default.createElement(React.Fragment, null))));
|
|
9222
6519
|
};
|
|
9223
6520
|
|
|
9224
|
-
var GridWrapper =
|
|
6521
|
+
var GridWrapper = styled__default.div.withConfig({
|
|
9225
6522
|
displayName: "Gridstyled__GridWrapper",
|
|
9226
6523
|
componentId: "sc-8iakdj-0"
|
|
9227
6524
|
})(["display:grid;grid-gap:", ";grid-template-columns:", ";@supports (width:min(", ",100%)){&{grid-template-columns:repeat( auto-fill,minmax( ", ",", " ) );}}"], function (_ref) {
|
|
@@ -9281,14 +6578,14 @@ var Grid = function Grid(_ref) {
|
|
|
9281
6578
|
};
|
|
9282
6579
|
|
|
9283
6580
|
var _excluded$8 = ["onRight", "childGap", "contentMinWidth", "minHeight", "fullHeight"];
|
|
9284
|
-
var SidebarWrapper =
|
|
6581
|
+
var SidebarWrapper = styled__default.div.withConfig({
|
|
9285
6582
|
displayName: "Sidebarstyled__SidebarWrapper",
|
|
9286
6583
|
componentId: "sc-1bbn2or-0"
|
|
9287
6584
|
})(["overflow:visible;box-sizing:border-box;", ""], function (_ref) {
|
|
9288
6585
|
var fullHeight = _ref.fullHeight;
|
|
9289
6586
|
return fullHeight ? "height: 100%;" : "";
|
|
9290
6587
|
});
|
|
9291
|
-
var SidebarInnerWrapper =
|
|
6588
|
+
var SidebarInnerWrapper = styled__default( // eslint-disable-next-line no-unused-vars
|
|
9292
6589
|
function (_ref2) {
|
|
9293
6590
|
var onRight = _ref2.onRight,
|
|
9294
6591
|
childGap = _ref2.childGap,
|
|
@@ -9364,7 +6661,7 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
9364
6661
|
}, safeChildren(children, /*#__PURE__*/React__default.createElement(React.Fragment, null))));
|
|
9365
6662
|
};
|
|
9366
6663
|
|
|
9367
|
-
var StackWrapper =
|
|
6664
|
+
var StackWrapper = styled__default.div.withConfig({
|
|
9368
6665
|
displayName: "Stackstyled__StackWrapper",
|
|
9369
6666
|
componentId: "sc-ejhezz-0"
|
|
9370
6667
|
})(["box-sizing:border-box;display:flex;flex-direction:", ";justify-content:", ";height:", ";> *{margin-top:0;margin-bottom:0;}> * + *{", "}", ";"], function (_ref) {
|
|
@@ -9418,10 +6715,10 @@ var Stack = function Stack(_ref) {
|
|
|
9418
6715
|
}, rest), safeChildren(children, /*#__PURE__*/React__default.createElement(React.Fragment, null)));
|
|
9419
6716
|
};
|
|
9420
6717
|
|
|
9421
|
-
var CoverOuterContainer =
|
|
6718
|
+
var CoverOuterContainer = styled__default.div.withConfig({
|
|
9422
6719
|
displayName: "Coverstyled__CoverOuterContainer",
|
|
9423
6720
|
componentId: "sc-1jhq379-0"
|
|
9424
|
-
})(["box-sizing:border-box;display:flex;flex-direction:column;min-height:", ";padding:", ";min-width:", ";> *{margin-top:", ";margin-bottom:", ";}
|
|
6721
|
+
})(["box-sizing:border-box;display:flex;flex-direction:column;min-height:", ";padding:", ";min-width:", ";> *{margin-top:", ";margin-bottom:", ";}> :first-child{margin-top:0;}", " ", " > :last-child{margin-bottom:0;}"], function (_ref) {
|
|
9425
6722
|
var minHeight = _ref.minHeight;
|
|
9426
6723
|
return minHeight;
|
|
9427
6724
|
}, function (_ref2) {
|
|
@@ -9485,7 +6782,7 @@ var Cover = function Cover(_ref) {
|
|
|
9485
6782
|
}, rest), singleChild ? /*#__PURE__*/React__default.createElement("div", null) : /*#__PURE__*/React__default.createElement(React.Fragment, null), safeChildren(children, /*#__PURE__*/React__default.createElement(React.Fragment, null)), singleChild ? /*#__PURE__*/React__default.createElement("div", null) : /*#__PURE__*/React__default.createElement(React.Fragment, null));
|
|
9486
6783
|
};
|
|
9487
6784
|
|
|
9488
|
-
var FrameOuterContainer =
|
|
6785
|
+
var FrameOuterContainer = styled__default.div.withConfig({
|
|
9489
6786
|
displayName: "Framestyled__FrameOuterContainer",
|
|
9490
6787
|
componentId: "sc-1syfnuv-0"
|
|
9491
6788
|
})(["box-sizing:border-box;padding-bottom:", ";position:relative;> *{overflow:hidden;position:absolute;top:0;right:0;bottom:0;left:0;display:flex;justify-content:center;align-items:center;}> img,> video{width:100%;height:100%;object-fit:cover;}"], function (_ref) {
|
|
@@ -9522,11 +6819,11 @@ var Frame = function Frame(_ref) {
|
|
|
9522
6819
|
}, rest), safeChildren(children, /*#__PURE__*/React__default.createElement(React.Fragment, null)));
|
|
9523
6820
|
};
|
|
9524
6821
|
|
|
9525
|
-
var SwitcherOuterContainer =
|
|
6822
|
+
var SwitcherOuterContainer = styled__default.div.withConfig({
|
|
9526
6823
|
displayName: "Switcherstyled__SwitcherOuterContainer",
|
|
9527
6824
|
componentId: "sc-1ym61kc-0"
|
|
9528
6825
|
})(["box-sizing:border-box;display:block;"]);
|
|
9529
|
-
var SwitcherInnerContainer =
|
|
6826
|
+
var SwitcherInnerContainer = styled__default.div.withConfig({
|
|
9530
6827
|
displayName: "Switcherstyled__SwitcherInnerContainer",
|
|
9531
6828
|
componentId: "sc-1ym61kc-1"
|
|
9532
6829
|
})(["box-sizing:border-box;display:flex;flex-wrap:wrap;overflow:hidden;padding:", ";margin:", ";", " > *{flex-grow:1;", ";", " ", "}", " ", " ", ""], function (_ref) {
|
|
@@ -9558,7 +6855,7 @@ var SwitcherInnerContainer = styled.div.withConfig({
|
|
|
9558
6855
|
return maxChildren ? "> :nth-last-child(".concat(maxChildren + 1, "), > :nth-last-child(").concat(maxChildren + 1, ") ~ * {\n flex-basis: 100%;\n }") : "";
|
|
9559
6856
|
}, function (_ref9) {
|
|
9560
6857
|
var extraStyles = _ref9.extraStyles;
|
|
9561
|
-
return css(["", ""], extraStyles);
|
|
6858
|
+
return styled.css(["", ""], extraStyles);
|
|
9562
6859
|
});
|
|
9563
6860
|
|
|
9564
6861
|
var _excluded$d = ["breakpoint", "childGap", "largeChild", "largeChildSize", "maxChildren", "maxChildrenOnly", "padding", "children", "extraStyles", "constrainMobile"];
|
|
@@ -9625,7 +6922,7 @@ var Switcher = function Switcher(_ref) {
|
|
|
9625
6922
|
}, rest), safeChildren(children, /*#__PURE__*/React__default.createElement(React.Fragment, null))));
|
|
9626
6923
|
};
|
|
9627
6924
|
|
|
9628
|
-
var ImposterWrapper =
|
|
6925
|
+
var ImposterWrapper = styled__default.div.withConfig({
|
|
9629
6926
|
displayName: "Imposterstyled__ImposterWrapper",
|
|
9630
6927
|
componentId: "sc-1q0gj35-0"
|
|
9631
6928
|
})(["position:", ";top:", ";left:", ";display:", ";", " ", " ", ";"], function (_ref) {
|
|
@@ -10907,7 +8204,7 @@ var MountComponent = function (_a) {
|
|
|
10907
8204
|
var ref = _a.innerRef, values = _a.values, isStatic = _a.isStatic;
|
|
10908
8205
|
React.useEffect(function () {
|
|
10909
8206
|
invariant(ref.current instanceof Element, "No `ref` found. Ensure components created with `motion.custom` forward refs using `React.forwardRef`");
|
|
10910
|
-
var domStyler = index
|
|
8207
|
+
var domStyler = index(ref.current, {
|
|
10911
8208
|
preparseOutput: false,
|
|
10912
8209
|
enableHardwareAcceleration: !isStatic,
|
|
10913
8210
|
});
|
|
@@ -13636,7 +10933,7 @@ var checkAndConvertChangedValueTypes = function (values, ref, target, transition
|
|
|
13636
10933
|
target = __assign({}, target);
|
|
13637
10934
|
transitionEnd = __assign({}, transitionEnd);
|
|
13638
10935
|
var element = ref.current;
|
|
13639
|
-
var elementStyler = index
|
|
10936
|
+
var elementStyler = index(element);
|
|
13640
10937
|
var targetPositionalKeys = Object.keys(target).filter(isPositionalKey$1);
|
|
13641
10938
|
// We want to remove any transform values that could affect the element's bounding box before
|
|
13642
10939
|
// it's measured. We'll reapply these later.
|
|
@@ -13957,7 +11254,7 @@ var LayoutAnimation = /** @class */ (function (_super) {
|
|
|
13957
11254
|
transform && (element.style.transform = transform);
|
|
13958
11255
|
return;
|
|
13959
11256
|
}
|
|
13960
|
-
index
|
|
11257
|
+
index(element).set({
|
|
13961
11258
|
originX: delta.originX,
|
|
13962
11259
|
originY: delta.originY,
|
|
13963
11260
|
});
|
|
@@ -14478,7 +11775,7 @@ function createDomMotionConfig(Component) {
|
|
|
14478
11775
|
return {
|
|
14479
11776
|
values: values,
|
|
14480
11777
|
readValueFromSource: function (key) {
|
|
14481
|
-
return index
|
|
11778
|
+
return index(ref.current).get(key);
|
|
14482
11779
|
},
|
|
14483
11780
|
// TODO: This is a good second source of plugins. This function contains the CSS variable
|
|
14484
11781
|
// and unit conversion support. These functions share a common signature. We could make another
|
|
@@ -14768,7 +12065,7 @@ if (typeof window !== "undefined") {
|
|
|
14768
12065
|
}
|
|
14769
12066
|
}
|
|
14770
12067
|
|
|
14771
|
-
var MotionWrapper =
|
|
12068
|
+
var MotionWrapper = styled__default(motion.div).withConfig({
|
|
14772
12069
|
displayName: "Motionstyled__MotionWrapper",
|
|
14773
12070
|
componentId: "sc-1m6r1io-0"
|
|
14774
12071
|
})(["position:", ";display:", ";box-sizing:border-box;padding:", ";border:", ";border-color:", ";border-size:", ";border-style:", ";border-width:", ";border-radius:", ";background-color:", ";box-shadow:", ";min-height:", ";min-width:", ";height:", ";width:", ";text-align:", ";margin:", ";&:hover,&:focus{", ";}&:active{", ";}&:disabled{", ";}", ";"], function (_ref) {
|
|
@@ -14886,7 +12183,7 @@ var Motion = function Motion(_ref) {
|
|
|
14886
12183
|
}, rest), safeChildren(children, /*#__PURE__*/React__default.createElement(React.Fragment, null)));
|
|
14887
12184
|
};
|
|
14888
12185
|
|
|
14889
|
-
var ReelStyled =
|
|
12186
|
+
var ReelStyled = styled__default.div.withConfig({
|
|
14890
12187
|
displayName: "Reelstyled__ReelStyled",
|
|
14891
12188
|
componentId: "sc-bhf05j-0"
|
|
14892
12189
|
})(["display:flex;overflow-x:", ";padding:", ";height:", ";justify-content:", ";> * + *{margin-left:", ";}> *{flex:0 0 ", ";}", ""], function (_ref) {
|
|
@@ -15174,11 +12471,11 @@ var rotate = posed.div({
|
|
|
15174
12471
|
}
|
|
15175
12472
|
}
|
|
15176
12473
|
});
|
|
15177
|
-
var SpinnerContainer =
|
|
12474
|
+
var SpinnerContainer = styled__default.div.withConfig({
|
|
15178
12475
|
displayName: "Spinner__SpinnerContainer",
|
|
15179
12476
|
componentId: "sc-jphte-0"
|
|
15180
12477
|
})(["width:100%;display:flex;flex-direction:row;align-items:center;justify-content:center;"]);
|
|
15181
|
-
var SpinnerIconWrapper =
|
|
12478
|
+
var SpinnerIconWrapper = styled__default(rotate).withConfig({
|
|
15182
12479
|
displayName: "Spinner__SpinnerIconWrapper",
|
|
15183
12480
|
componentId: "sc-jphte-1"
|
|
15184
12481
|
})(["width:", "px;height:", "px;"], function (_ref) {
|
|
@@ -15240,11 +12537,11 @@ var rotate$1 = posed.div({
|
|
|
15240
12537
|
}
|
|
15241
12538
|
}
|
|
15242
12539
|
});
|
|
15243
|
-
var SpinnerContainer$1 =
|
|
12540
|
+
var SpinnerContainer$1 = styled__default.div.withConfig({
|
|
15244
12541
|
displayName: "ButtonWithAction__SpinnerContainer",
|
|
15245
12542
|
componentId: "sc-1ffs4ga-0"
|
|
15246
12543
|
})(["width:100%;display:flex;flex-direction:row;align-items:center;justify-content:center;"]);
|
|
15247
|
-
var SpinnerIconWrapper$1 =
|
|
12544
|
+
var SpinnerIconWrapper$1 = styled__default(rotate$1).withConfig({
|
|
15248
12545
|
displayName: "ButtonWithAction__SpinnerIconWrapper",
|
|
15249
12546
|
componentId: "sc-1ffs4ga-1"
|
|
15250
12547
|
})([""]);
|
|
@@ -15296,7 +12593,7 @@ var ButtonWithAction = function ButtonWithAction(_ref2) {
|
|
|
15296
12593
|
children = _ref2.children,
|
|
15297
12594
|
rest = _objectWithoutProperties(_ref2, _excluded$h);
|
|
15298
12595
|
|
|
15299
|
-
var themeContext = React.useContext(ThemeContext);
|
|
12596
|
+
var themeContext = React.useContext(styled.ThemeContext);
|
|
15300
12597
|
var themeValues = createThemeValues(themeContext, fallbackValues$1, "Button", variant);
|
|
15301
12598
|
var isMobile = themeContext.isMobile;
|
|
15302
12599
|
var hoverStyles = "\n outline: none;\n background-color: ".concat(themeValues.hoverBackgroundColor, ";\n border-color: ").concat(themeValues.hoverBorderColor, ";\n color: ").concat(themeValues.hoverColor, ";\n text-decoration: ").concat(variant === "ghost" || variant === "smallGhost" ? "underline" : "none", ";\n cursor: pointer;\n ");
|
|
@@ -16271,11 +13568,11 @@ var GenericCard = function GenericCard() {
|
|
|
16271
13568
|
})))));
|
|
16272
13569
|
};
|
|
16273
13570
|
|
|
16274
|
-
var BankItemWrapper =
|
|
13571
|
+
var BankItemWrapper = styled__default.div.withConfig({
|
|
16275
13572
|
displayName: "PaymentIcon__BankItemWrapper",
|
|
16276
13573
|
componentId: "sc-1k0jl35-0"
|
|
16277
13574
|
})(["display:flex;justify-content:flex-start;align-items:center;"]);
|
|
16278
|
-
var BankAccountText =
|
|
13575
|
+
var BankAccountText = styled__default.h4.withConfig({
|
|
16279
13576
|
displayName: "PaymentIcon__BankAccountText",
|
|
16280
13577
|
componentId: "sc-1k0jl35-1"
|
|
16281
13578
|
})(["color:", ";font-size:1rem;font-weight:400;line-height:1.5rem;text-align:left;margin-right:0.5rem;display:inline-block;"], CHARADE_GREY);
|
|
@@ -18571,7 +15868,7 @@ var Alert = function Alert(_ref) {
|
|
|
18571
15868
|
|
|
18572
15869
|
var Alert$1 = themeComponent(Alert, "Alert", fallbackValues$4, "info");
|
|
18573
15870
|
|
|
18574
|
-
var TitleText =
|
|
15871
|
+
var TitleText = styled__default.h1.withConfig({
|
|
18575
15872
|
displayName: "Titlestyled__TitleText",
|
|
18576
15873
|
componentId: "sc-11lhluq-0"
|
|
18577
15874
|
})(["font-size:", ";line-height:1.5;color:", ";font-weight:", ";margin:", ";text-align:", ";font-family:", ";", ";"], function (_ref) {
|
|
@@ -18712,8 +16009,8 @@ var AmountCallout = function AmountCallout(_ref) {
|
|
|
18712
16009
|
|
|
18713
16010
|
var AmountCallout$1 = themeComponent(AmountCallout, "AmountCallout", fallbackValues$6);
|
|
18714
16011
|
|
|
18715
|
-
function _extends$
|
|
18716
|
-
_extends$
|
|
16012
|
+
function _extends$1() {
|
|
16013
|
+
_extends$1 = Object.assign || function (target) {
|
|
18717
16014
|
for (var i = 1; i < arguments.length; i++) {
|
|
18718
16015
|
var source = arguments[i];
|
|
18719
16016
|
|
|
@@ -18727,7 +16024,7 @@ function _extends$2() {
|
|
|
18727
16024
|
return target;
|
|
18728
16025
|
};
|
|
18729
16026
|
|
|
18730
|
-
return _extends$
|
|
16027
|
+
return _extends$1.apply(this, arguments);
|
|
18731
16028
|
}
|
|
18732
16029
|
|
|
18733
16030
|
function _assertThisInitialized(self) {
|
|
@@ -18834,7 +16131,7 @@ function _wrapNativeSuper(Class) {
|
|
|
18834
16131
|
* Parse errors.md and turn it into a simple hash of code: message
|
|
18835
16132
|
* @private
|
|
18836
16133
|
*/
|
|
18837
|
-
var ERRORS
|
|
16134
|
+
var ERRORS = {
|
|
18838
16135
|
"1": "Passed invalid arguments to hsl, please pass multiple numbers e.g. hsl(360, 0.75, 0.4) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75 }).\n\n",
|
|
18839
16136
|
"2": "Passed invalid arguments to hsla, please pass multiple numbers e.g. hsla(360, 0.75, 0.4, 0.7) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75, alpha: 0.7 }).\n\n",
|
|
18840
16137
|
"3": "Passed an incorrect argument to a color function, please pass a string representation of a color.\n\n",
|
|
@@ -18919,7 +16216,7 @@ var ERRORS$1 = {
|
|
|
18919
16216
|
* @private
|
|
18920
16217
|
*/
|
|
18921
16218
|
|
|
18922
|
-
function format
|
|
16219
|
+
function format() {
|
|
18923
16220
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
18924
16221
|
args[_key] = arguments[_key];
|
|
18925
16222
|
}
|
|
@@ -18957,7 +16254,7 @@ var PolishedError = /*#__PURE__*/function (_Error) {
|
|
|
18957
16254
|
args[_key2 - 1] = arguments[_key2];
|
|
18958
16255
|
}
|
|
18959
16256
|
|
|
18960
|
-
_this = _Error.call(this, format
|
|
16257
|
+
_this = _Error.call(this, format.apply(void 0, [ERRORS[code]].concat(args))) || this;
|
|
18961
16258
|
}
|
|
18962
16259
|
|
|
18963
16260
|
return _assertThisInitialized(_this);
|
|
@@ -19461,13 +16758,13 @@ function mix$1(weight, color, otherColor) {
|
|
|
19461
16758
|
if (weight === 0) return otherColor;
|
|
19462
16759
|
var parsedColor1 = parseToRgb(color);
|
|
19463
16760
|
|
|
19464
|
-
var color1 = _extends$
|
|
16761
|
+
var color1 = _extends$1({}, parsedColor1, {
|
|
19465
16762
|
alpha: typeof parsedColor1.alpha === 'number' ? parsedColor1.alpha : 1
|
|
19466
16763
|
});
|
|
19467
16764
|
|
|
19468
16765
|
var parsedColor2 = parseToRgb(otherColor);
|
|
19469
16766
|
|
|
19470
|
-
var color2 = _extends$
|
|
16767
|
+
var color2 = _extends$1({}, parsedColor2, {
|
|
19471
16768
|
alpha: typeof parsedColor2.alpha === 'number' ? parsedColor2.alpha : 1
|
|
19472
16769
|
}); // The formula is copied from the original Sass implementation:
|
|
19473
16770
|
// http://sass-lang.com/documentation/Sass/Script/Functions.html#mix-instance_method
|
|
@@ -19603,7 +16900,7 @@ var _excluded$k = ["hoverColor", "activeColor", "extrastyles"];
|
|
|
19603
16900
|
|
|
19604
16901
|
/* eslint-disable no-unused-vars */
|
|
19605
16902
|
|
|
19606
|
-
var StyledExternalLink =
|
|
16903
|
+
var StyledExternalLink = styled__default(function (_ref) {
|
|
19607
16904
|
var hoverColor = _ref.hoverColor,
|
|
19608
16905
|
activeColor = _ref.activeColor,
|
|
19609
16906
|
extrastyles = _ref.extrastyles,
|
|
@@ -19659,7 +16956,7 @@ var ExternalLink = function ExternalLink(_ref) {
|
|
|
19659
16956
|
tabIndex = _ref$tabIndex === void 0 ? "0" : _ref$tabIndex,
|
|
19660
16957
|
dataQa = _ref.dataQa,
|
|
19661
16958
|
children = _ref.children;
|
|
19662
|
-
var themeContext = React.useContext(ThemeContext);
|
|
16959
|
+
var themeContext = React.useContext(styled.ThemeContext);
|
|
19663
16960
|
var themeValues = createThemeValues(themeContext, fallbackValues$9, "Link", variant);
|
|
19664
16961
|
return /*#__PURE__*/React__default.createElement(StyledExternalLink, {
|
|
19665
16962
|
href: href,
|
|
@@ -19686,7 +16983,7 @@ var _excluded$l = ["hoverColor", "activeColor", "active", "color", "extrastyles"
|
|
|
19686
16983
|
|
|
19687
16984
|
/* eslint-disable no-unused-vars */
|
|
19688
16985
|
|
|
19689
|
-
var StyledInternalLink =
|
|
16986
|
+
var StyledInternalLink = styled__default(function (_ref) {
|
|
19690
16987
|
var hoverColor = _ref.hoverColor,
|
|
19691
16988
|
activeColor = _ref.activeColor,
|
|
19692
16989
|
active = _ref.active,
|
|
@@ -19747,7 +17044,7 @@ var InternalLink = function InternalLink(_ref) {
|
|
|
19747
17044
|
dataQa = _ref.dataQa,
|
|
19748
17045
|
_ref$extraStyles = _ref.extraStyles,
|
|
19749
17046
|
extraStyles = _ref$extraStyles === void 0 ? "" : _ref$extraStyles;
|
|
19750
|
-
var themeContext = React.useContext(ThemeContext);
|
|
17047
|
+
var themeContext = React.useContext(styled.ThemeContext);
|
|
19751
17048
|
var themeValues = createThemeValues(themeContext, fallbackValues$9, "Link", variant);
|
|
19752
17049
|
return /*#__PURE__*/React__default.createElement(StyledInternalLink, {
|
|
19753
17050
|
to: to,
|
|
@@ -19769,7 +17066,7 @@ var InternalLink = function InternalLink(_ref) {
|
|
|
19769
17066
|
var Breadcrumbs = function Breadcrumbs(_ref) {
|
|
19770
17067
|
var _ref$breadcrumbsList = _ref.breadcrumbsList,
|
|
19771
17068
|
breadcrumbsList = _ref$breadcrumbsList === void 0 ? [] : _ref$breadcrumbsList;
|
|
19772
|
-
var themeContext = React.useContext(ThemeContext);
|
|
17069
|
+
var themeContext = React.useContext(styled.ThemeContext);
|
|
19773
17070
|
var themeValues = createThemeValues(themeContext, fallbackValues$8, "Breadcrumb");
|
|
19774
17071
|
return /*#__PURE__*/React__default.createElement(Box, {
|
|
19775
17072
|
padding: "0",
|
|
@@ -21456,7 +18753,7 @@ var fallbackValues$a = {
|
|
|
21456
18753
|
fontSize: fontSize$3
|
|
21457
18754
|
};
|
|
21458
18755
|
|
|
21459
|
-
var ParagraphText =
|
|
18756
|
+
var ParagraphText = styled__default.p.withConfig({
|
|
21460
18757
|
displayName: "Paragraphstyled__ParagraphText",
|
|
21461
18758
|
componentId: "sc-17g98kx-0"
|
|
21462
18759
|
})(["--font-size:", ";font-size:var(--font-size);line-height:calc(1.5 * var(--font-size));font-weight:", ";font-family:", ";color:", ";margin:", ";", ""], function (_ref) {
|
|
@@ -21566,7 +18863,7 @@ var withWindowSize = function withWindowSize(Child) {
|
|
|
21566
18863
|
window.removeEventListener("resize", onResize);
|
|
21567
18864
|
};
|
|
21568
18865
|
}, []);
|
|
21569
|
-
return /*#__PURE__*/React__default.createElement(ThemeProvider, {
|
|
18866
|
+
return /*#__PURE__*/React__default.createElement(styled.ThemeProvider, {
|
|
21570
18867
|
theme: state
|
|
21571
18868
|
}, /*#__PURE__*/React__default.createElement(Child, props));
|
|
21572
18869
|
};
|
|
@@ -21596,7 +18893,7 @@ var Card = function Card(_ref2) {
|
|
|
21596
18893
|
_ref2$variant = _ref2.variant,
|
|
21597
18894
|
variant = _ref2$variant === void 0 ? "vertical" : _ref2$variant;
|
|
21598
18895
|
|
|
21599
|
-
var _useContext = React.useContext(ThemeContext),
|
|
18896
|
+
var _useContext = React.useContext(styled.ThemeContext),
|
|
21600
18897
|
isMobile = _useContext.isMobile;
|
|
21601
18898
|
|
|
21602
18899
|
var navigate = reactRouterDom.useNavigate();
|
|
@@ -21758,30 +19055,30 @@ var fallbackValues$c = {
|
|
|
21758
19055
|
disabledCheckedStyles: disabledCheckedStyles
|
|
21759
19056
|
};
|
|
21760
19057
|
|
|
21761
|
-
var CheckboxContainer =
|
|
19058
|
+
var CheckboxContainer = styled__default.div.withConfig({
|
|
21762
19059
|
displayName: "Checkbox__CheckboxContainer",
|
|
21763
19060
|
componentId: "sc-36kqbv-0"
|
|
21764
19061
|
})(["display:inline-block;vertical-align:middle;"]);
|
|
21765
|
-
var CheckboxLabelContainer =
|
|
19062
|
+
var CheckboxLabelContainer = styled__default.label.withConfig({
|
|
21766
19063
|
displayName: "Checkbox__CheckboxLabelContainer",
|
|
21767
19064
|
componentId: "sc-36kqbv-1"
|
|
21768
19065
|
})(["display:flex;align-items:center;"]);
|
|
21769
|
-
var CheckboxIcon =
|
|
19066
|
+
var CheckboxIcon = styled__default.svg.withConfig({
|
|
21770
19067
|
displayName: "Checkbox__CheckboxIcon",
|
|
21771
19068
|
componentId: "sc-36kqbv-2"
|
|
21772
19069
|
})(["fill:none;stroke-width:2px;stroke:", ";"], function (_ref) {
|
|
21773
19070
|
var disabled = _ref.disabled,
|
|
21774
19071
|
disabledCheckColor = _ref.disabledCheckColor,
|
|
21775
19072
|
checkColor = _ref.checkColor;
|
|
21776
|
-
return disabled ? css(["", ""], disabledCheckColor) : css(["", ""], checkColor);
|
|
19073
|
+
return disabled ? styled.css(["", ""], disabledCheckColor) : styled.css(["", ""], checkColor);
|
|
21777
19074
|
});
|
|
21778
|
-
var HiddenCheckbox =
|
|
19075
|
+
var HiddenCheckbox = styled__default.input.attrs({
|
|
21779
19076
|
type: "checkbox"
|
|
21780
19077
|
}).withConfig({
|
|
21781
19078
|
displayName: "Checkbox__HiddenCheckbox",
|
|
21782
19079
|
componentId: "sc-36kqbv-3"
|
|
21783
19080
|
})(["border:0;clip:rect(0 0 0 0);clippath:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px;"]);
|
|
21784
|
-
var StyledCheckbox =
|
|
19081
|
+
var StyledCheckbox = styled__default.div.withConfig({
|
|
21785
19082
|
displayName: "Checkbox__StyledCheckbox",
|
|
21786
19083
|
componentId: "sc-36kqbv-4"
|
|
21787
19084
|
})(["display:inline-block;margin-right:16px;width:24px;height:24px;border-radius:2px;transition:all 150ms;", "{visibility:", ";}", ";"], CheckboxIcon, function (_ref2) {
|
|
@@ -21798,7 +19095,7 @@ var StyledCheckbox = styled.div.withConfig({
|
|
|
21798
19095
|
errorStyles = _ref3.errorStyles,
|
|
21799
19096
|
disabledStyles = _ref3.disabledStyles,
|
|
21800
19097
|
disabledCheckedStyles = _ref3.disabledCheckedStyles;
|
|
21801
|
-
return error ? css(["", " ", ""], errorStyles, focused && focusedStyles) : disabled ? css(["", ""], checked ? disabledCheckedStyles : disabledStyles) : checked ? css(["", " ", ""], checkedStyles, focused && focusedStyles) : css(["", " ", ""], defaultStyles, focused && focusedStyles);
|
|
19098
|
+
return error ? styled.css(["", " ", ""], errorStyles, focused && focusedStyles) : disabled ? styled.css(["", ""], checked ? disabledCheckedStyles : disabledStyles) : checked ? styled.css(["", " ", ""], checkedStyles, focused && focusedStyles) : styled.css(["", " ", ""], defaultStyles, focused && focusedStyles);
|
|
21802
19099
|
});
|
|
21803
19100
|
|
|
21804
19101
|
var Checkbox = function Checkbox(_ref4) {
|
|
@@ -21929,7 +19226,7 @@ var defaultTheme = {
|
|
|
21929
19226
|
inactiveColor: PEWTER_GREY$1
|
|
21930
19227
|
}
|
|
21931
19228
|
};
|
|
21932
|
-
var RadioButtonBorder =
|
|
19229
|
+
var RadioButtonBorder = styled__default.div.withConfig({
|
|
21933
19230
|
displayName: "radio-button__RadioButtonBorder",
|
|
21934
19231
|
componentId: "sc-8odgi0-0"
|
|
21935
19232
|
})(["height:24px;width:24px;border:1px solid ", ";border-radius:12px;display:flex;justify-content:center;align-items:center;margin:10px;min-width:24px;min-height:24px;"], function (_ref) {
|
|
@@ -21938,7 +19235,7 @@ var RadioButtonBorder = styled.div.withConfig({
|
|
|
21938
19235
|
return isSelected ? theme.accentColor : theme.inactiveColor;
|
|
21939
19236
|
});
|
|
21940
19237
|
RadioButtonBorder.defaultProps = defaultTheme;
|
|
21941
|
-
var RadioButtonCenter =
|
|
19238
|
+
var RadioButtonCenter = styled__default.div.withConfig({
|
|
21942
19239
|
displayName: "radio-button__RadioButtonCenter",
|
|
21943
19240
|
componentId: "sc-8odgi0-1"
|
|
21944
19241
|
})(["height:16px;width:16px;background-color:", ";border-radius:8px;"], function (_ref2) {
|
|
@@ -21957,15 +19254,15 @@ var RadioButton = function RadioButton(_ref3) {
|
|
|
21957
19254
|
}, isSelected && /*#__PURE__*/React__default.createElement(RadioButtonCenter, null));
|
|
21958
19255
|
};
|
|
21959
19256
|
|
|
21960
|
-
var CheckboxItemIcon =
|
|
19257
|
+
var CheckboxItemIcon = styled__default.img.withConfig({
|
|
21961
19258
|
displayName: "CheckboxList__CheckboxItemIcon",
|
|
21962
19259
|
componentId: "sc-1yakme1-0"
|
|
21963
19260
|
})(["width:2rem;"]);
|
|
21964
|
-
var HiddenCheckboxInput =
|
|
19261
|
+
var HiddenCheckboxInput = styled__default.input.withConfig({
|
|
21965
19262
|
displayName: "CheckboxList__HiddenCheckboxInput",
|
|
21966
19263
|
componentId: "sc-1yakme1-1"
|
|
21967
19264
|
})(["opacity:0;position:absolute;z-index:-2;cursor:pointer;"]);
|
|
21968
|
-
var CheckboxLabel =
|
|
19265
|
+
var CheckboxLabel = styled__default.label.withConfig({
|
|
21969
19266
|
displayName: "CheckboxList__CheckboxLabel",
|
|
21970
19267
|
componentId: "sc-1yakme1-2"
|
|
21971
19268
|
})(["position:relative;z-index:5;&:focus{outline:none;}"]);
|
|
@@ -22009,7 +19306,7 @@ var CheckboxListItem = function CheckboxListItem(_ref) {
|
|
|
22009
19306
|
onClick: disabled ? noop : onSelect,
|
|
22010
19307
|
onKeyDown: disabled ? noop : onSelect,
|
|
22011
19308
|
tabIndex: 0
|
|
22012
|
-
}, /*#__PURE__*/React__default.createElement(ThemeProvider, {
|
|
19309
|
+
}, /*#__PURE__*/React__default.createElement(styled.ThemeProvider, {
|
|
22013
19310
|
theme: {
|
|
22014
19311
|
accentColor: radioButtonActive,
|
|
22015
19312
|
inactiveColor: radioButtonInactive
|
|
@@ -22108,14 +19405,14 @@ var fallbackValues$e = {
|
|
|
22108
19405
|
hoverColor: hoverColor$3
|
|
22109
19406
|
};
|
|
22110
19407
|
|
|
22111
|
-
var IconWrapper =
|
|
19408
|
+
var IconWrapper = styled__default.div.withConfig({
|
|
22112
19409
|
displayName: "Dropdown__IconWrapper",
|
|
22113
19410
|
componentId: "sc-pn6m0h-0"
|
|
22114
19411
|
})(["display:flex;flex-direction:column;justify-content:center;transition:transform 0.3s ease;", ""], function (_ref) {
|
|
22115
19412
|
var open = _ref.open;
|
|
22116
19413
|
return open ? "transform: rotate(-180deg)" : "";
|
|
22117
19414
|
});
|
|
22118
|
-
var DropdownContentWrapper =
|
|
19415
|
+
var DropdownContentWrapper = styled__default.div.withConfig({
|
|
22119
19416
|
displayName: "Dropdown__DropdownContentWrapper",
|
|
22120
19417
|
componentId: "sc-pn6m0h-1"
|
|
22121
19418
|
})(["transform-origin:0 0;border:1px solid ", ";border-radius:2px;background-color:", ";padding:8px 0 8px;position:absolute;width:", ";min-width:100%;max-height:", ";overflow-y:scroll;z-index:1;box-sizing:border-box;&:focus{outline:none;}"], GREY_CHATEAU, WHITE, function (_ref2) {
|
|
@@ -22125,7 +19422,7 @@ var DropdownContentWrapper = styled.div.withConfig({
|
|
|
22125
19422
|
var maxHeight = _ref3.maxHeight;
|
|
22126
19423
|
return maxHeight || "400px";
|
|
22127
19424
|
});
|
|
22128
|
-
var DropdownItemWrapper =
|
|
19425
|
+
var DropdownItemWrapper = styled__default.div.withConfig({
|
|
22129
19426
|
displayName: "Dropdown__DropdownItemWrapper",
|
|
22130
19427
|
componentId: "sc-pn6m0h-2"
|
|
22131
19428
|
})(["background-color:", ";text-align:start;border-width:0px;border-color:transparent;box-shadow:none;padding:1rem;box-sizing:border-box;width:100%;cursor:", ";&:hover{background-color:", ";}&:focus{background-color:", ";outline:none;}"], function (_ref4) {
|
|
@@ -22146,7 +19443,7 @@ var DropdownItemWrapper = styled.div.withConfig({
|
|
|
22146
19443
|
themeValues = _ref7.themeValues;
|
|
22147
19444
|
return selected ? themeValues.selectedColor : disabled ? WHITE : themeValues.hoverColor;
|
|
22148
19445
|
});
|
|
22149
|
-
var SearchInput =
|
|
19446
|
+
var SearchInput = styled__default.input.withConfig({
|
|
22150
19447
|
displayName: "Dropdown__SearchInput",
|
|
22151
19448
|
componentId: "sc-pn6m0h-3"
|
|
22152
19449
|
})(["border:none;background-color:", ";font-size:16px;height:24px;"], function (_ref8) {
|
|
@@ -22377,11 +19674,11 @@ var Dropdown = function Dropdown(_ref9) {
|
|
|
22377
19674
|
|
|
22378
19675
|
var Dropdown$1 = themeComponent(Dropdown, "Dropdown", fallbackValues$e);
|
|
22379
19676
|
|
|
22380
|
-
var SelectContainer =
|
|
19677
|
+
var SelectContainer = styled__default.div.withConfig({
|
|
22381
19678
|
displayName: "FormSelectstyled__SelectContainer",
|
|
22382
19679
|
componentId: "sc-hkrqrv-0"
|
|
22383
19680
|
})(["width:100%;display:flex;flex-direction:column;justify-content:space-between;align-items:flex-start;> * + *{margin-top:0.25rem;}"]);
|
|
22384
|
-
var SelectField =
|
|
19681
|
+
var SelectField = styled__default.select.withConfig({
|
|
22385
19682
|
displayName: "FormSelectstyled__SelectField",
|
|
22386
19683
|
componentId: "sc-hkrqrv-1"
|
|
22387
19684
|
})(["border:1px solid ", ";border-radius:2px;height:48px;width:100%;padding:0.75rem 1rem;min-width:100px;margin:0;box-sizing:border-box;position:relative;font-size:1.1rem;font-family:Public Sans;line-height:2rem;font-weight:", ";background-color:", ";color:", ";box-shadow:none;&:focus{border:1px solid ", ";}"], function (_ref) {
|
|
@@ -22395,7 +19692,7 @@ var SelectField = styled.select.withConfig({
|
|
|
22395
19692
|
var themeValues = _ref3.themeValues;
|
|
22396
19693
|
return themeValues.color && themeValues.color;
|
|
22397
19694
|
}, MATISSE_BLUE);
|
|
22398
|
-
var SelectOption =
|
|
19695
|
+
var SelectOption = styled__default.option.withConfig({
|
|
22399
19696
|
displayName: "FormSelectstyled__SelectOption",
|
|
22400
19697
|
componentId: "sc-hkrqrv-2"
|
|
22401
19698
|
})([""]);
|
|
@@ -23305,7 +20602,7 @@ var CountryDropdown = function CountryDropdown(_ref) {
|
|
|
23305
20602
|
});
|
|
23306
20603
|
};
|
|
23307
20604
|
|
|
23308
|
-
var DetailText =
|
|
20605
|
+
var DetailText = styled__default.p.withConfig({
|
|
23309
20606
|
displayName: "Detailstyled__DetailText",
|
|
23310
20607
|
componentId: "sc-vn1h4n-0"
|
|
23311
20608
|
})(["font-size:", ";line-height:1.5;color:", ";font-weight:", ";margin:", ";text-align:", ";font-family:", ";", ";"], function (_ref) {
|
|
@@ -23509,8 +20806,8 @@ var DisplayCard = function DisplayCard(_ref) {
|
|
|
23509
20806
|
}) : /*#__PURE__*/React__default.createElement(React.Fragment, null))))));
|
|
23510
20807
|
};
|
|
23511
20808
|
|
|
23512
|
-
function _extends$
|
|
23513
|
-
_extends$
|
|
20809
|
+
function _extends$2() {
|
|
20810
|
+
_extends$2 = Object.assign || function (target) {
|
|
23514
20811
|
for (var i = 1; i < arguments.length; i++) {
|
|
23515
20812
|
var source = arguments[i];
|
|
23516
20813
|
|
|
@@ -23524,10 +20821,10 @@ function _extends$3() {
|
|
|
23524
20821
|
return target;
|
|
23525
20822
|
};
|
|
23526
20823
|
|
|
23527
|
-
return _extends$
|
|
20824
|
+
return _extends$2.apply(this, arguments);
|
|
23528
20825
|
}
|
|
23529
20826
|
|
|
23530
|
-
function _objectWithoutPropertiesLoose$
|
|
20827
|
+
function _objectWithoutPropertiesLoose$1(source, excluded) {
|
|
23531
20828
|
if (source == null) return {};
|
|
23532
20829
|
var target = {};
|
|
23533
20830
|
var sourceKeys = Object.keys(source);
|
|
@@ -23545,7 +20842,7 @@ function _objectWithoutPropertiesLoose$2(source, excluded) {
|
|
|
23545
20842
|
function _objectWithoutProperties$1(source, excluded) {
|
|
23546
20843
|
if (source == null) return {};
|
|
23547
20844
|
|
|
23548
|
-
var target = _objectWithoutPropertiesLoose$
|
|
20845
|
+
var target = _objectWithoutPropertiesLoose$1(source, excluded);
|
|
23549
20846
|
|
|
23550
20847
|
var key, i;
|
|
23551
20848
|
|
|
@@ -23628,7 +20925,7 @@ function _nonIterableRest$1() {
|
|
|
23628
20925
|
var getUniqueFormatDelimiters = function getUniqueFormatDelimiters(formats, formatChar) {
|
|
23629
20926
|
return _toConsumableArray$1(new Set(formats.join("").split(formatChar).join("").split("")));
|
|
23630
20927
|
};
|
|
23631
|
-
var format$
|
|
20928
|
+
var format$1 = function format(formatter) {
|
|
23632
20929
|
return function (value) {
|
|
23633
20930
|
var usedFormat = formatter.formats[value.length];
|
|
23634
20931
|
|
|
@@ -23721,7 +21018,7 @@ var FormattedInput = function FormattedInput(_ref) {
|
|
|
23721
21018
|
selectionEnd: 0,
|
|
23722
21019
|
rawValue: value,
|
|
23723
21020
|
"delete": false,
|
|
23724
|
-
formattedValue: format$
|
|
21021
|
+
formattedValue: format$1(formatter)(value)
|
|
23725
21022
|
}),
|
|
23726
21023
|
_useState2 = _slicedToArray$1(_useState, 2),
|
|
23727
21024
|
state = _useState2[0],
|
|
@@ -23733,9 +21030,9 @@ var FormattedInput = function FormattedInput(_ref) {
|
|
|
23733
21030
|
inputEl.current.setSelectionRange(state.selectionStart, state.selectionEnd);
|
|
23734
21031
|
}
|
|
23735
21032
|
});
|
|
23736
|
-
return React__default.createElement("input", _extends$
|
|
21033
|
+
return React__default.createElement("input", _extends$2({}, props, {
|
|
23737
21034
|
ref: inputEl,
|
|
23738
|
-
value: format$
|
|
21035
|
+
value: format$1(formatter)(value),
|
|
23739
21036
|
onKeyDown: function onKeyDown(event) {
|
|
23740
21037
|
// Keep track of the state of the input before onChange, including if user is hitting delete
|
|
23741
21038
|
setState({
|
|
@@ -23853,7 +21150,7 @@ var fallbackValues$i = {
|
|
|
23853
21150
|
|
|
23854
21151
|
var _excluded$p = ["showErrors", "themeValues"],
|
|
23855
21152
|
_excluded2 = ["type", "labelTextWhenNoError", "errorMessages", "isNum", "isEmail", "helperModal", "field", "fieldActions", "showErrors", "formatter", "decorator", "themeValues", "background", "customHeight", "extraStyles"];
|
|
23856
|
-
var InputField =
|
|
21153
|
+
var InputField = styled__default.input.withConfig({
|
|
23857
21154
|
displayName: "FormInput__InputField",
|
|
23858
21155
|
componentId: "sc-l094r1-0"
|
|
23859
21156
|
})(["border:1px solid ", ";border-radius:2px;height:", ";width:100%;padding:1rem;min-width:100px;margin:0;box-sizing:border-box;position:relative;font-size:1.1rem;font-family:Public Sans;line-height:2rem;font-weight:", ";background-color:", ";color:", ";box-shadow:none;", " transition:background 0.3s ease;&:focus{outline:3px solid ", ";outline-offset:2px;}", " ", ""], function (_ref) {
|
|
@@ -23876,13 +21173,13 @@ var InputField = styled.input.withConfig({
|
|
|
23876
21173
|
return background && "background: ".concat(themeValues.inputBackgroundColor, " url(").concat(background, ") no-repeat right 0.5rem center;");
|
|
23877
21174
|
}, ROYAL_BLUE, function (_ref6) {
|
|
23878
21175
|
var disabled = _ref6.disabled;
|
|
23879
|
-
return disabled && css(["color:#6e727e;background-color:#f7f7f7;"]);
|
|
21176
|
+
return disabled && styled.css(["color:#6e727e;background-color:#f7f7f7;"]);
|
|
23880
21177
|
}, function (_ref7) {
|
|
23881
21178
|
var $extraStyles = _ref7.$extraStyles;
|
|
23882
|
-
return css(["", ""], $extraStyles);
|
|
21179
|
+
return styled.css(["", ""], $extraStyles);
|
|
23883
21180
|
}); // eslint-disable-next-line no-unused-vars
|
|
23884
21181
|
|
|
23885
|
-
var FormattedInputField =
|
|
21182
|
+
var FormattedInputField = styled__default(function (_ref8) {
|
|
23886
21183
|
var showErrors = _ref8.showErrors,
|
|
23887
21184
|
themeValues = _ref8.themeValues,
|
|
23888
21185
|
props = _objectWithoutProperties(_ref8, _excluded$p);
|
|
@@ -23907,10 +21204,10 @@ var FormattedInputField = styled(function (_ref8) {
|
|
|
23907
21204
|
return themeValues.color && themeValues.color;
|
|
23908
21205
|
}, ROYAL_BLUE, function (_ref13) {
|
|
23909
21206
|
var disabled = _ref13.disabled;
|
|
23910
|
-
return disabled && css(["color:#6e727e;background-color:#f7f7f7;"]);
|
|
21207
|
+
return disabled && styled.css(["color:#6e727e;background-color:#f7f7f7;"]);
|
|
23911
21208
|
}, function (_ref14) {
|
|
23912
21209
|
var extraStyles = _ref14.extraStyles;
|
|
23913
|
-
return css(["", ""], extraStyles);
|
|
21210
|
+
return styled.css(["", ""], extraStyles);
|
|
23914
21211
|
});
|
|
23915
21212
|
|
|
23916
21213
|
var FormInput = function FormInput(_ref15) {
|
|
@@ -23942,7 +21239,7 @@ var FormInput = function FormInput(_ref15) {
|
|
|
23942
21239
|
showPassword = _useState2[0],
|
|
23943
21240
|
setShowPassword = _useState2[1];
|
|
23944
21241
|
|
|
23945
|
-
var _useContext = React.useContext(ThemeContext),
|
|
21242
|
+
var _useContext = React.useContext(styled.ThemeContext),
|
|
23946
21243
|
isMobile = _useContext.isMobile;
|
|
23947
21244
|
|
|
23948
21245
|
return /*#__PURE__*/React__default.createElement(Stack, {
|
|
@@ -24087,7 +21384,7 @@ var FormContainer = function FormContainer(_ref) {
|
|
|
24087
21384
|
children = _ref.children,
|
|
24088
21385
|
rest = _objectWithoutProperties(_ref, _excluded$s);
|
|
24089
21386
|
|
|
24090
|
-
var _useContext = React.useContext(ThemeContext),
|
|
21387
|
+
var _useContext = React.useContext(styled.ThemeContext),
|
|
24091
21388
|
isMobile = _useContext.isMobile;
|
|
24092
21389
|
|
|
24093
21390
|
return /*#__PURE__*/React__default.createElement(Box, _extends({
|
|
@@ -24104,7 +21401,7 @@ var FormFooterPanel = function FormFooterPanel(_ref) {
|
|
|
24104
21401
|
link = _ref.link,
|
|
24105
21402
|
linkText = _ref.linkText;
|
|
24106
21403
|
|
|
24107
|
-
var _useContext = React.useContext(ThemeContext),
|
|
21404
|
+
var _useContext = React.useContext(styled.ThemeContext),
|
|
24108
21405
|
isMobile = _useContext.isMobile;
|
|
24109
21406
|
|
|
24110
21407
|
return /*#__PURE__*/React__default.createElement(Box, {
|
|
@@ -24190,11 +21487,11 @@ var fallbackValues$k = {
|
|
|
24190
21487
|
var ACTIVE = "ACTIVE";
|
|
24191
21488
|
var EXPIRING_SOON = "EXPIRING_SOON";
|
|
24192
21489
|
var EXPIRED = "EXPIRED";
|
|
24193
|
-
var CreditCardWrapper =
|
|
21490
|
+
var CreditCardWrapper = styled__default.div.withConfig({
|
|
24194
21491
|
displayName: "FormattedCreditCard__CreditCardWrapper",
|
|
24195
21492
|
componentId: "sc-s0ta5l-0"
|
|
24196
21493
|
})(["display:flex;justify-content:flex-start;align-items:center;"]);
|
|
24197
|
-
var CCIconWrapper =
|
|
21494
|
+
var CCIconWrapper = styled__default.div.withConfig({
|
|
24198
21495
|
displayName: "FormattedCreditCard__CCIconWrapper",
|
|
24199
21496
|
componentId: "sc-s0ta5l-1"
|
|
24200
21497
|
})(["margin-right:16px;width:30px;height:auto;display:flex;"]);
|
|
@@ -24250,15 +21547,15 @@ var FormattedCreditCard = function FormattedCreditCard(_ref) {
|
|
|
24250
21547
|
|
|
24251
21548
|
var FormattedCreditCard$1 = themeComponent(FormattedCreditCard, "FormattedCreditCard", fallbackValues$k);
|
|
24252
21549
|
|
|
24253
|
-
var Hamburger =
|
|
21550
|
+
var Hamburger = styled__default.button.withConfig({
|
|
24254
21551
|
displayName: "HamburgerButton__Hamburger",
|
|
24255
21552
|
componentId: "sc-4wlnwv-0"
|
|
24256
21553
|
})(["padding:8px;display:inline-block;cursor:pointer;transition-property:opacity;transition-duration:0.15s;transition-timing-function:linear;font:inherit;color:inherit;text-transform:none;background-color:transparent;border:0;margin:0;overflow:visible;&:focus{outline:none;}"]);
|
|
24257
|
-
var HamburgerBox =
|
|
21554
|
+
var HamburgerBox = styled__default.span.withConfig({
|
|
24258
21555
|
displayName: "HamburgerButton__HamburgerBox",
|
|
24259
21556
|
componentId: "sc-4wlnwv-1"
|
|
24260
21557
|
})(["width:34px;height:34px;display:inline-block;position:relative;"]);
|
|
24261
|
-
var HamburgerInner =
|
|
21558
|
+
var HamburgerInner = styled__default.span.withConfig({
|
|
24262
21559
|
displayName: "HamburgerButton__HamburgerInner",
|
|
24263
21560
|
componentId: "sc-4wlnwv-2"
|
|
24264
21561
|
})(["display:block;top:auto;bottom:6px;left:2px;transition-duration:0.13s;transition-delay:0.13s;transition-timing-function:cubic-bezier(0.55,0.055,0.675,0.19);margin-top:12px;background-color:", ";&,&::before,&::after{background-color:", ";width:30px;height:3px;position:absolute;transition-property:transform;transition-duration:0.15s;transition-timing-function:ease;}&::before,&::after{content:\"\";display:block;}&::before{top:-10px;transition:top 0.12s 0.2s cubic-bezier(0.33333,0.66667,0.66667,1),transform 0.13s cubic-bezier(0.55,0.055,0.675,0.19);}&::after{bottom:-10px;top:-20px;transition:top 0.2s 0.2s cubic-bezier(0.33333,0.66667,0.66667,1),opacity 0.1s linear;}&.active,&.active::before,&.active::after{background-color:", ";}&.active{transform:translate3d(0,-10px,0) rotate(-45deg);transition-delay:0.22s;transition-timing-function:cubic-bezier(0.215,0.61,0.355,1);}&.active::after{top:0;opacity:0;transition:top 0.2s cubic-bezier(0.33333,0,0.66667,0.33333),opacity:0.1s 0.22s linear;}&.active::before{top:0;transform:rotate(-90deg);transition:top 0.1s 0.16s cubic-bezier(0.33333,0,0.66667,0.33333),transform 0.13s 0.25s cubic-bezier(0.215,0.61,0.355,1);}"], function (_ref) {
|
|
@@ -24292,7 +21589,7 @@ var HamburgerButton = function HamburgerButton(_ref4) {
|
|
|
24292
21589
|
})));
|
|
24293
21590
|
};
|
|
24294
21591
|
|
|
24295
|
-
var HeadingText =
|
|
21592
|
+
var HeadingText = styled__default.h1.withConfig({
|
|
24296
21593
|
displayName: "Headingstyled__HeadingText",
|
|
24297
21594
|
componentId: "sc-1a3jd28-0"
|
|
24298
21595
|
})(["--font-size:", ";font-size:var(--font-size);line-height:calc(1.5 * var(--font-size));color:", ";font-weight:", ";margin:", ";text-align:", ";font-family:", ";", ";"], function (_ref) {
|
|
@@ -24392,7 +21689,7 @@ var Jumbo = function Jumbo(_ref) {
|
|
|
24392
21689
|
showCartStatus = _ref$showCartStatus === void 0 ? false : _ref$showCartStatus,
|
|
24393
21690
|
openCartSlider = _ref.openCartSlider;
|
|
24394
21691
|
|
|
24395
|
-
var _useContext = React.useContext(ThemeContext),
|
|
21692
|
+
var _useContext = React.useContext(styled.ThemeContext),
|
|
24396
21693
|
isMobile = _useContext.isMobile;
|
|
24397
21694
|
|
|
24398
21695
|
return /*#__PURE__*/React__default.createElement(Box, {
|
|
@@ -24520,7 +21817,7 @@ var fallbackValues$o = {
|
|
|
24520
21817
|
color: color$8
|
|
24521
21818
|
};
|
|
24522
21819
|
|
|
24523
|
-
var SpinnerSvgAnimation =
|
|
21820
|
+
var SpinnerSvgAnimation = styled__default.svg.withConfig({
|
|
24524
21821
|
displayName: "Spinner__SpinnerSvgAnimation",
|
|
24525
21822
|
componentId: "sc-vhupl9-0"
|
|
24526
21823
|
})(["animation:rotate 2s linear infinite;margin:-25px 0 0 -25px;width:", "px;height:", "px;& .path{stroke:", ";stroke-linecap:round;animation:dash 1.5s ease-in-out infinite;}@keyframes rotate{100%{transform:rotate(360deg);}}@keyframes dash{0%{stroke-dasharray:1,150;stroke-dashoffset:0;}50%{stroke-dasharray:90,150;stroke-dashoffset:-35;}100%{stroke-dasharray:90,150;stroke-dashoffset:-124;}}"], function (_ref) {
|
|
@@ -24533,7 +21830,7 @@ var SpinnerSvgAnimation = styled.svg.withConfig({
|
|
|
24533
21830
|
var color = _ref3.color;
|
|
24534
21831
|
return color;
|
|
24535
21832
|
});
|
|
24536
|
-
var SpinnerContainer$2 =
|
|
21833
|
+
var SpinnerContainer$2 = styled__default.div.withConfig({
|
|
24537
21834
|
displayName: "Spinner__SpinnerContainer",
|
|
24538
21835
|
componentId: "sc-vhupl9-1"
|
|
24539
21836
|
})(["width:100%;display:flex;flex-direction:row;align-items:center;justify-content:center;line-height:1;"]);
|
|
@@ -24956,7 +22253,7 @@ var fallbackValues$r = {
|
|
|
24956
22253
|
inactiveColor: inactiveColor
|
|
24957
22254
|
};
|
|
24958
22255
|
|
|
24959
|
-
var HiddenRadioButton =
|
|
22256
|
+
var HiddenRadioButton = styled__default.input.withConfig({
|
|
24960
22257
|
displayName: "RadioButton__HiddenRadioButton",
|
|
24961
22258
|
componentId: "sc-v6hie9-0"
|
|
24962
22259
|
})(["opacity:0;position:absolute;cursor:", ";"], function (_ref) {
|
|
@@ -35737,7 +33034,7 @@ var fallbackValues$u = {
|
|
|
35737
33034
|
leftLabelStyles: leftLabelStyles
|
|
35738
33035
|
};
|
|
35739
33036
|
|
|
35740
|
-
var HiddenToggleSwitchBox =
|
|
33037
|
+
var HiddenToggleSwitchBox = styled__default.input.withConfig({
|
|
35741
33038
|
displayName: "ToggleSwitch__HiddenToggleSwitchBox",
|
|
35742
33039
|
componentId: "sc-1t51u6v-0"
|
|
35743
33040
|
})(["opacity:0;position:absolute;cursor:", ";height:24px;width:50px;", ""], function (_ref) {
|
|
@@ -35747,7 +33044,7 @@ var HiddenToggleSwitchBox = styled.input.withConfig({
|
|
|
35747
33044
|
var isMobile = _ref2.isMobile;
|
|
35748
33045
|
return isMobile ? "transform: scale(0.75)" : "";
|
|
35749
33046
|
});
|
|
35750
|
-
var VisibleSwitchComponent =
|
|
33047
|
+
var VisibleSwitchComponent = styled__default.label.withConfig({
|
|
35751
33048
|
displayName: "ToggleSwitch__VisibleSwitchComponent",
|
|
35752
33049
|
componentId: "sc-1t51u6v-1"
|
|
35753
33050
|
})(["width:48px;height:24px;border-radius:48px;border:none;position:relative;box-sizing:border-box;cursor:", ";display:inline-block;&:hover{box-shadow:", ";}&:focus{box-shadow:0px 2px 5px 0px rgba(0,0,0,0.5);}", ""], function (_ref3) {
|
|
@@ -35760,11 +33057,11 @@ var VisibleSwitchComponent = styled.label.withConfig({
|
|
|
35760
33057
|
var isMobile = _ref5.isMobile;
|
|
35761
33058
|
return isMobile ? "transform: scale(0.75)" : "";
|
|
35762
33059
|
});
|
|
35763
|
-
var ToggleSwitchMiddleRingComponent =
|
|
33060
|
+
var ToggleSwitchMiddleRingComponent = styled__default.div.withConfig({
|
|
35764
33061
|
displayName: "ToggleSwitch__ToggleSwitchMiddleRingComponent",
|
|
35765
33062
|
componentId: "sc-1t51u6v-2"
|
|
35766
33063
|
})(["position:absolute;width:20px;height:20px;border:none;border-radius:50%;box-sizing:border-box;"]);
|
|
35767
|
-
var ToggleSwitchInnerRingComponent =
|
|
33064
|
+
var ToggleSwitchInnerRingComponent = styled__default.div.withConfig({
|
|
35768
33065
|
displayName: "ToggleSwitch__ToggleSwitchInnerRingComponent",
|
|
35769
33066
|
componentId: "sc-1t51u6v-3"
|
|
35770
33067
|
})(["position:absolute;width:14px;height:14px;top:3px;left:3px;right:3px;bottom:3px;border-radius:50%;box-sizing:border-box;"]);
|
|
@@ -35916,7 +33213,7 @@ var themeValues = {
|
|
|
35916
33213
|
focusBorder: focusBorder
|
|
35917
33214
|
};
|
|
35918
33215
|
|
|
35919
|
-
var TypeaheadInputWrapper =
|
|
33216
|
+
var TypeaheadInputWrapper = styled__default.div.withConfig({
|
|
35920
33217
|
displayName: "TypeaheadInput__TypeaheadInputWrapper",
|
|
35921
33218
|
componentId: "sc-cumjdb-0"
|
|
35922
33219
|
})(["display:flex;align-content:center;align-items:center;background:", ";input{border:0;height:72px;width:100%;padding:1.5rem;padding-left:1rem;min-width:100px;margin:0;box-sizing:border-box;position:relative;font-size:1.1rem;line-height:2rem;font-weight:400;background-color:", ";color:", ";box-shadow:none;border:1px solid transparent;&:focus{border:1px solid ", ";}}"], themeValues.background, themeValues.background, themeValues.black, themeValues.focusBorder);
|
|
@@ -36438,9 +33735,9 @@ function isDraft(value) {
|
|
|
36438
33735
|
}
|
|
36439
33736
|
function isDraftable(value) {
|
|
36440
33737
|
if (!value) { return false; }
|
|
36441
|
-
return isPlainObject
|
|
33738
|
+
return isPlainObject(value) || !!value[DRAFTABLE] || !!value.constructor[DRAFTABLE];
|
|
36442
33739
|
}
|
|
36443
|
-
function isPlainObject
|
|
33740
|
+
function isPlainObject(value) {
|
|
36444
33741
|
if (!value || typeof value !== "object") { return false; }
|
|
36445
33742
|
if (Array.isArray(value)) { return true; }
|
|
36446
33743
|
var proto = Object.getPrototypeOf(value);
|
|
@@ -36880,7 +34177,7 @@ var objectTraps = {
|
|
|
36880
34177
|
|
|
36881
34178
|
set: set$1$1,
|
|
36882
34179
|
deleteProperty: deleteProperty,
|
|
36883
|
-
getOwnPropertyDescriptor: getOwnPropertyDescriptor
|
|
34180
|
+
getOwnPropertyDescriptor: getOwnPropertyDescriptor,
|
|
36884
34181
|
|
|
36885
34182
|
defineProperty: function defineProperty() {
|
|
36886
34183
|
throw new Error("Object.defineProperty() cannot be used on an Immer draft"); // prettier-ignore
|
|
@@ -36988,7 +34285,7 @@ function deleteProperty(state, prop) {
|
|
|
36988
34285
|
// the same guarantee in ES5 mode.
|
|
36989
34286
|
|
|
36990
34287
|
|
|
36991
|
-
function getOwnPropertyDescriptor
|
|
34288
|
+
function getOwnPropertyDescriptor(state, prop) {
|
|
36992
34289
|
var owner = source$1(state);
|
|
36993
34290
|
var desc = Reflect.getOwnPropertyDescriptor(owner, prop);
|
|
36994
34291
|
|
|
@@ -38180,7 +35477,7 @@ EditNameForm.reducer = reducer$2;
|
|
|
38180
35477
|
EditNameForm.mapStateToProps = mapStateToProps$3;
|
|
38181
35478
|
EditNameForm.mapDispatchToProps = mapDispatchToProps$2;
|
|
38182
35479
|
|
|
38183
|
-
var EditableListItem =
|
|
35480
|
+
var EditableListItem = styled__default.div.withConfig({
|
|
38184
35481
|
displayName: "EditableListstyled__EditableListItem",
|
|
38185
35482
|
componentId: "sc-10ehkz7-0"
|
|
38186
35483
|
})(["box-sizing:border-box;background:", ";border-color:", ";height:", ";display:flex;justify-content:space-between;align-items:center;padding:1.5rem;:not(:last-child),:not(:first-child){box-shadow:inset 0px -1px 0px 0px rgb(202,206,216);}:first-child{border-top-left-radius:3px;border-top-right-radius:3px;}:last-child{border-bottom-left-radius:3px;border-bottom-right-radius:3px;box-shadow:none;}"], function (_ref) {
|
|
@@ -38190,7 +35487,7 @@ var EditableListItem = styled.div.withConfig({
|
|
|
38190
35487
|
var listItemSize = _ref2.listItemSize;
|
|
38191
35488
|
return listItemSize === "big" ? "120px" : "72px";
|
|
38192
35489
|
});
|
|
38193
|
-
var EditableListItemControls =
|
|
35490
|
+
var EditableListItemControls = styled__default.div.withConfig({
|
|
38194
35491
|
displayName: "EditableListstyled__EditableListItemControls",
|
|
38195
35492
|
componentId: "sc-10ehkz7-1"
|
|
38196
35493
|
})(["display:flex;justify-content:space-evenly;align-items:center;"]);
|
|
@@ -38311,14 +35608,14 @@ var EditableList = function EditableList(_ref) {
|
|
|
38311
35608
|
}))));
|
|
38312
35609
|
};
|
|
38313
35610
|
|
|
38314
|
-
var EditableTableContainer =
|
|
35611
|
+
var EditableTableContainer = styled__default.div.withConfig({
|
|
38315
35612
|
displayName: "EditableTablestyled__EditableTableContainer",
|
|
38316
35613
|
componentId: "sc-fd3i2a-0"
|
|
38317
35614
|
})(["display:", ";flex-direction:column;flex:1;"], function (_ref) {
|
|
38318
35615
|
var hide = _ref.hide;
|
|
38319
35616
|
return hide ? "none" : "flex";
|
|
38320
35617
|
});
|
|
38321
|
-
var EditableTableListItem =
|
|
35618
|
+
var EditableTableListItem = styled__default.div.withConfig({
|
|
38322
35619
|
displayName: "EditableTablestyled__EditableTableListItem",
|
|
38323
35620
|
componentId: "sc-fd3i2a-1"
|
|
38324
35621
|
})(["width:100%;display:flex;", ";align-items:", ";flex-direction:", ";flex:1;", ";"], function (_ref2) {
|
|
@@ -38334,29 +35631,29 @@ var EditableTableListItem = styled.div.withConfig({
|
|
|
38334
35631
|
var isMobile = _ref5.isMobile;
|
|
38335
35632
|
return isMobile ? "padding: 1rem 0.5rem" : "padding: 0 0.5rem";
|
|
38336
35633
|
});
|
|
38337
|
-
var EditableListItemControls$1 =
|
|
35634
|
+
var EditableListItemControls$1 = styled__default.div.withConfig({
|
|
38338
35635
|
displayName: "EditableTablestyled__EditableListItemControls",
|
|
38339
35636
|
componentId: "sc-fd3i2a-2"
|
|
38340
35637
|
})(["display:flex;justify-content:space-evenly;align-items:center;"]);
|
|
38341
|
-
var EditableListAction =
|
|
35638
|
+
var EditableListAction = styled__default.div.withConfig({
|
|
38342
35639
|
displayName: "EditableTablestyled__EditableListAction",
|
|
38343
35640
|
componentId: "sc-fd3i2a-3"
|
|
38344
35641
|
})(["color:", ";align-items:center;font-size:1rem;padding-right:1rem;cursor:pointer;display:", ";"], MATISSE_BLUE, function (_ref6) {
|
|
38345
35642
|
var hide = _ref6.hide;
|
|
38346
35643
|
return hide ? "none" : "flex";
|
|
38347
35644
|
});
|
|
38348
|
-
var ItemWrapper =
|
|
35645
|
+
var ItemWrapper = styled__default.div.withConfig({
|
|
38349
35646
|
displayName: "EditableTablestyled__ItemWrapper",
|
|
38350
35647
|
componentId: "sc-fd3i2a-4"
|
|
38351
35648
|
})(["display:flex;flex-direction:row;flex:1;width:100%;border-bottom:1px solid ", ";"], GHOST_GREY);
|
|
38352
|
-
var ActionWrapper =
|
|
35649
|
+
var ActionWrapper = styled__default.div.withConfig({
|
|
38353
35650
|
displayName: "EditableTablestyled__ActionWrapper",
|
|
38354
35651
|
componentId: "sc-fd3i2a-5"
|
|
38355
35652
|
})(["display:flex;align-self:center;justify-content:flex-end;", ";flex:1;"], function (_ref7) {
|
|
38356
35653
|
var isMobile = _ref7.isMobile;
|
|
38357
35654
|
return isMobile && "display: none";
|
|
38358
35655
|
});
|
|
38359
|
-
var TableItemKey =
|
|
35656
|
+
var TableItemKey = styled__default.div.withConfig({
|
|
38360
35657
|
displayName: "EditableTablestyled__TableItemKey",
|
|
38361
35658
|
componentId: "sc-fd3i2a-6"
|
|
38362
35659
|
})(["display:flex;", ";", ";", ";font-size:", ";color:", ";"], function (_ref8) {
|
|
@@ -38372,7 +35669,7 @@ var TableItemKey = styled.div.withConfig({
|
|
|
38372
35669
|
var isMobile = _ref11.isMobile;
|
|
38373
35670
|
return isMobile ? "1rem" : "1.125rem";
|
|
38374
35671
|
}, STORM_GREY);
|
|
38375
|
-
var TableItemValue =
|
|
35672
|
+
var TableItemValue = styled__default.div.withConfig({
|
|
38376
35673
|
displayName: "EditableTablestyled__TableItemValue",
|
|
38377
35674
|
componentId: "sc-fd3i2a-7"
|
|
38378
35675
|
})(["display:flex;", ";", ";", ";font-size:", ";color:", ";"], function (_ref12) {
|
|
@@ -38388,7 +35685,7 @@ var TableItemValue = styled.div.withConfig({
|
|
|
38388
35685
|
var isMobile = _ref15.isMobile;
|
|
38389
35686
|
return isMobile ? "1.125rem" : "1.0625rem";
|
|
38390
35687
|
}, BRIGHT_GREY);
|
|
38391
|
-
var TableWrapper =
|
|
35688
|
+
var TableWrapper = styled__default.div.withConfig({
|
|
38392
35689
|
displayName: "EditableTablestyled__TableWrapper",
|
|
38393
35690
|
componentId: "sc-fd3i2a-8"
|
|
38394
35691
|
})(["display:flex;flex-direction:row;flex:1;width:100%;"]);
|
|
@@ -41592,7 +38889,7 @@ var Modal$1 = function Modal(_ref) {
|
|
|
41592
38889
|
buttonExtraStyles = _ref.buttonExtraStyles,
|
|
41593
38890
|
children = _ref.children;
|
|
41594
38891
|
|
|
41595
|
-
var _useContext = React.useContext(ThemeContext),
|
|
38892
|
+
var _useContext = React.useContext(styled.ThemeContext),
|
|
41596
38893
|
isMobile = _useContext.isMobile;
|
|
41597
38894
|
|
|
41598
38895
|
return /*#__PURE__*/React__default.createElement(React.Fragment, null, modalOpen && /*#__PURE__*/React__default.createElement(reactAriaModal, {
|
|
@@ -41890,7 +39187,7 @@ var menu = posed.div({
|
|
|
41890
39187
|
}
|
|
41891
39188
|
}
|
|
41892
39189
|
});
|
|
41893
|
-
var ImposterMenu =
|
|
39190
|
+
var ImposterMenu = styled__default(menu).withConfig({
|
|
41894
39191
|
displayName: "NavMenuMobile__ImposterMenu",
|
|
41895
39192
|
componentId: "sc-1pf0qp7-0"
|
|
41896
39193
|
})(["position:fixed;top:72px;"]);
|
|
@@ -42839,7 +40136,7 @@ var PaymentButtonBar = function PaymentButtonBar(_ref) {
|
|
|
42839
40136
|
_ref$hideForwardButto = _ref.hideForwardButton,
|
|
42840
40137
|
hideForwardButton = _ref$hideForwardButto === void 0 ? false : _ref$hideForwardButto;
|
|
42841
40138
|
|
|
42842
|
-
var _useContext = React.useContext(ThemeContext),
|
|
40139
|
+
var _useContext = React.useContext(styled.ThemeContext),
|
|
42843
40140
|
isMobile = _useContext.isMobile;
|
|
42844
40141
|
|
|
42845
40142
|
var backButton = !!cancelURL && !!cancelText ? /*#__PURE__*/React__default.createElement(ButtonWithLink, {
|
|
@@ -42911,10 +40208,49 @@ var PaymentDetailsContent = function PaymentDetailsContent(_ref) {
|
|
|
42911
40208
|
subtotal = _ref.subtotal,
|
|
42912
40209
|
total = _ref.total,
|
|
42913
40210
|
variant = _ref.variant,
|
|
42914
|
-
themeValues = _ref.themeValues
|
|
40211
|
+
themeValues = _ref.themeValues,
|
|
40212
|
+
hasVoidablePaymentsSection = _ref.hasVoidablePaymentsSection,
|
|
40213
|
+
voidableTransactionDetails = _ref.voidableTransactionDetails,
|
|
40214
|
+
voidableAmountPaid = _ref.voidableAmountPaid,
|
|
40215
|
+
partialVoidAction = _ref.partialVoidAction;
|
|
42915
40216
|
return /*#__PURE__*/React__default.createElement(Stack, {
|
|
42916
40217
|
childGap: "16px"
|
|
42917
|
-
}, lineItemElems,
|
|
40218
|
+
}, lineItemElems, hasVoidablePaymentsSection && /*#__PURE__*/React__default.createElement(Box, {
|
|
40219
|
+
background: ATHENS_GREY
|
|
40220
|
+
}, /*#__PURE__*/React__default.createElement(Text$1, {
|
|
40221
|
+
variant: "p",
|
|
40222
|
+
color: themeValues.text,
|
|
40223
|
+
weight: "400"
|
|
40224
|
+
}, "Paid"), voidableTransactionDetails.map(function (t) {
|
|
40225
|
+
return /*#__PURE__*/React__default.createElement(Cluster, {
|
|
40226
|
+
key: t.id,
|
|
40227
|
+
justify: "space-between",
|
|
40228
|
+
align: "center"
|
|
40229
|
+
}, /*#__PURE__*/React__default.createElement(Cluster, {
|
|
40230
|
+
padding: "0",
|
|
40231
|
+
align: "center"
|
|
40232
|
+
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
40233
|
+
padding: "0"
|
|
40234
|
+
}, t.voidText), /*#__PURE__*/React__default.createElement(ButtonWithAction, {
|
|
40235
|
+
variant: "ghost",
|
|
40236
|
+
action: function action() {
|
|
40237
|
+
return partialVoidAction(t);
|
|
40238
|
+
},
|
|
40239
|
+
text: "Void",
|
|
40240
|
+
extraStyles: "min-width: 75px; margin: 0px;",
|
|
40241
|
+
textExtraStyles: "font-weight: ".concat(FONT_WEIGHT_REGULAR, "; font-size: 16px;")
|
|
40242
|
+
})), /*#__PURE__*/React__default.createElement(Box, {
|
|
40243
|
+
padding: "0",
|
|
40244
|
+
key: t.id
|
|
40245
|
+
}, displayCurrency(t.amount_given)));
|
|
40246
|
+
}), /*#__PURE__*/React__default.createElement(Box, {
|
|
40247
|
+
padding: "8px 0px 16px 0px"
|
|
40248
|
+
}, /*#__PURE__*/React__default.createElement(SolidDivider$1, null)), /*#__PURE__*/React__default.createElement(LabeledAmount$1, {
|
|
40249
|
+
fontWeight: FONT_WEIGHT_REGULAR,
|
|
40250
|
+
label: "Amount paid",
|
|
40251
|
+
amount: displayCurrency(voidableAmountPaid)
|
|
40252
|
+
})), !hasVoidablePaymentsSection && !!lineItemElems.length && /*#__PURE__*/React__default.createElement(SolidDivider$1, null) // avoids duplicate dividers -> case of voidable payment section, that acts as divider
|
|
40253
|
+
, /*#__PURE__*/React__default.createElement(Box, {
|
|
42918
40254
|
padding: "0.5rem 0"
|
|
42919
40255
|
}, /*#__PURE__*/React__default.createElement(LabeledAmount$1, {
|
|
42920
40256
|
variant: themeValues.labeledAmountSubtotal,
|
|
@@ -42923,7 +40259,7 @@ var PaymentDetailsContent = function PaymentDetailsContent(_ref) {
|
|
|
42923
40259
|
}), feeElems), /*#__PURE__*/React__default.createElement(SolidDivider$1, null), /*#__PURE__*/React__default.createElement(LabeledAmount$1, {
|
|
42924
40260
|
as: "p",
|
|
42925
40261
|
variant: themeValues.labeledAmountTotal,
|
|
42926
|
-
label: "Total",
|
|
40262
|
+
label: hasVoidablePaymentsSection ? "Remaining amount due" : "Total",
|
|
42927
40263
|
amount: displayCurrency(total),
|
|
42928
40264
|
extraStyles: variant === "small" && "font-weight: ".concat(FONT_WEIGHT_BOLD, ";")
|
|
42929
40265
|
}));
|
|
@@ -42983,7 +40319,15 @@ var PaymentDetails = function PaymentDetails(_ref4) {
|
|
|
42983
40319
|
collapsibleOnMobile = _ref4$collapsibleOnMo === void 0 ? true : _ref4$collapsibleOnMo,
|
|
42984
40320
|
isMobile = _ref4.isMobile,
|
|
42985
40321
|
supportsTouch = _ref4.supportsTouch,
|
|
42986
|
-
themeValues = _ref4.themeValues
|
|
40322
|
+
themeValues = _ref4.themeValues,
|
|
40323
|
+
_ref4$hasVoidablePaym = _ref4.hasVoidablePaymentsSection,
|
|
40324
|
+
hasVoidablePaymentsSection = _ref4$hasVoidablePaym === void 0 ? false : _ref4$hasVoidablePaym,
|
|
40325
|
+
_ref4$voidableTransac = _ref4.voidableTransactionDetails,
|
|
40326
|
+
voidableTransactionDetails = _ref4$voidableTransac === void 0 ? [] : _ref4$voidableTransac,
|
|
40327
|
+
_ref4$partialVoidActi = _ref4.partialVoidAction,
|
|
40328
|
+
partialVoidAction = _ref4$partialVoidActi === void 0 ? noop : _ref4$partialVoidActi,
|
|
40329
|
+
_ref4$voidableAmountP = _ref4.voidableAmountPaid,
|
|
40330
|
+
voidableAmountPaid = _ref4$voidableAmountP === void 0 ? 0 : _ref4$voidableAmountP;
|
|
42987
40331
|
|
|
42988
40332
|
var _useState = React.useState(initiallyOpen),
|
|
42989
40333
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -43039,14 +40383,22 @@ var PaymentDetails = function PaymentDetails(_ref4) {
|
|
|
43039
40383
|
subtotal: subtotal,
|
|
43040
40384
|
total: total,
|
|
43041
40385
|
themeValues: themeValues,
|
|
43042
|
-
variant: variant
|
|
40386
|
+
variant: variant,
|
|
40387
|
+
hasVoidablePaymentsSection: hasVoidablePaymentsSection,
|
|
40388
|
+
voidableTransactionDetails: voidableTransactionDetails,
|
|
40389
|
+
voidableAmountPaid: voidableAmountPaid,
|
|
40390
|
+
partialVoidAction: partialVoidAction
|
|
43043
40391
|
})) : /*#__PURE__*/React__default.createElement(PaymentDetailsContent, {
|
|
43044
40392
|
lineItemElems: lineItemElems,
|
|
43045
40393
|
feeElems: feeElems,
|
|
43046
40394
|
subtotal: subtotal,
|
|
43047
40395
|
total: total,
|
|
43048
40396
|
themeValues: themeValues,
|
|
43049
|
-
variant: variant
|
|
40397
|
+
variant: variant,
|
|
40398
|
+
hasVoidablePaymentsSection: hasVoidablePaymentsSection,
|
|
40399
|
+
voidableTransactionDetails: voidableTransactionDetails,
|
|
40400
|
+
voidableAmountPaid: voidableAmountPaid,
|
|
40401
|
+
partialVoidAction: partialVoidAction
|
|
43050
40402
|
});
|
|
43051
40403
|
var title = hideTitle ? /*#__PURE__*/React__default.createElement(React.Fragment, null) : isCollapsible ? /*#__PURE__*/React__default.createElement(Box, {
|
|
43052
40404
|
width: "100%",
|
|
@@ -43367,7 +40719,7 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
43367
40719
|
walletCheckboxMarked = _ref.walletCheckboxMarked,
|
|
43368
40720
|
deniedCards = _ref.deniedCards;
|
|
43369
40721
|
|
|
43370
|
-
var _useContext = React.useContext(ThemeContext),
|
|
40722
|
+
var _useContext = React.useContext(styled.ThemeContext),
|
|
43371
40723
|
isMobile = _useContext.isMobile;
|
|
43372
40724
|
|
|
43373
40725
|
React.useEffect(function () {
|
|
@@ -43690,7 +41042,7 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
43690
41042
|
}
|
|
43691
41043
|
};
|
|
43692
41044
|
var borderStyles = "\n border-width: 0 0 1px 0;\n border-color: ".concat(themeValues.borderColor, ";\n border-style: solid;\n border-radius: 0px;\n transform-origin: 100% 0;\n\n &:last-child {\n border-width: 0;\n }\n ");
|
|
43693
|
-
var RightIcon =
|
|
41045
|
+
var RightIcon = styled__default.img.withConfig({
|
|
43694
41046
|
displayName: "RadioSection__RightIcon",
|
|
43695
41047
|
componentId: "sc-uema02-0"
|
|
43696
41048
|
})(["height:", ";width:", ";", " transition:opacity 0.3s ease;"], function (_ref2) {
|
|
@@ -43921,7 +41273,7 @@ RegistrationForm.mapStateToProps = mapStateToProps$b;
|
|
|
43921
41273
|
RegistrationForm.mapDispatchToProps = mapDispatchToProps$a;
|
|
43922
41274
|
|
|
43923
41275
|
var ResetConfirmationForm = function ResetConfirmationForm() {
|
|
43924
|
-
var _useContext = React.useContext(ThemeContext),
|
|
41276
|
+
var _useContext = React.useContext(styled.ThemeContext),
|
|
43925
41277
|
isMobile = _useContext.isMobile;
|
|
43926
41278
|
|
|
43927
41279
|
return /*#__PURE__*/React__default.createElement(Box, {
|
|
@@ -44042,7 +41394,7 @@ ResetPasswordForm.mapStateToProps = mapStateToProps$c;
|
|
|
44042
41394
|
ResetPasswordForm.mapDispatchToProps = mapDispatchToProps$b;
|
|
44043
41395
|
|
|
44044
41396
|
var ResetConfirmationForm$2 = function ResetConfirmationForm() {
|
|
44045
|
-
var _useContext = React.useContext(ThemeContext),
|
|
41397
|
+
var _useContext = React.useContext(styled.ThemeContext),
|
|
44046
41398
|
isMobile = _useContext.isMobile;
|
|
44047
41399
|
|
|
44048
41400
|
return /*#__PURE__*/React__default.createElement(Box, {
|
|
@@ -44361,7 +41713,7 @@ var TermsAndConditions = function TermsAndConditions(_ref) {
|
|
|
44361
41713
|
var Timeout = function Timeout(_ref) {
|
|
44362
41714
|
var onLogout = _ref.onLogout;
|
|
44363
41715
|
|
|
44364
|
-
var _useContext = React.useContext(ThemeContext),
|
|
41716
|
+
var _useContext = React.useContext(styled.ThemeContext),
|
|
44365
41717
|
isMobile = _useContext.isMobile;
|
|
44366
41718
|
|
|
44367
41719
|
return /*#__PURE__*/React__default.createElement(Cover, null, /*#__PURE__*/React__default.createElement(Center, {
|
|
@@ -44408,7 +41760,7 @@ var fallbackValues$G = {
|
|
|
44408
41760
|
imageBackgroundColor: imageBackgroundColor
|
|
44409
41761
|
};
|
|
44410
41762
|
|
|
44411
|
-
var WelcomeImage =
|
|
41763
|
+
var WelcomeImage = styled__default.img.withConfig({
|
|
44412
41764
|
displayName: "WelcomeModule__WelcomeImage",
|
|
44413
41765
|
componentId: "sc-1d9znh4-0"
|
|
44414
41766
|
})(["width:auto;height:215px;"]);
|
|
@@ -44496,7 +41848,7 @@ var WorkflowTile = function WorkflowTile(_ref) {
|
|
|
44496
41848
|
}))));
|
|
44497
41849
|
};
|
|
44498
41850
|
|
|
44499
|
-
var DashboardIframe =
|
|
41851
|
+
var DashboardIframe = styled__default.iframe.withConfig({
|
|
44500
41852
|
displayName: "PeriscopeDashboardIframestyled__DashboardIframe",
|
|
44501
41853
|
componentId: "sc-j0cucj-0"
|
|
44502
41854
|
})(["border:none;box-shadow:0 0 5px 0 ", ";display:none;"], ALTO_GREY);
|
|
@@ -44628,7 +41980,7 @@ var CenterSingle = function CenterSingle(_ref) {
|
|
|
44628
41980
|
centeredMobileContent = _ref$centeredMobileCo === void 0 ? false : _ref$centeredMobileCo,
|
|
44629
41981
|
content = _ref.content,
|
|
44630
41982
|
themeValues = _ref.themeValues;
|
|
44631
|
-
var themeContext = React.useContext(ThemeContext);
|
|
41983
|
+
var themeContext = React.useContext(styled.ThemeContext);
|
|
44632
41984
|
var isMobile = themeContext.isMobile;
|
|
44633
41985
|
return /*#__PURE__*/React__default.createElement(Box, {
|
|
44634
41986
|
padding: "0",
|
|
@@ -44673,7 +42025,7 @@ var CenterStack = function CenterStack(_ref) {
|
|
|
44673
42025
|
fullWidthMobile = _ref$fullWidthMobile === void 0 ? true : _ref$fullWidthMobile,
|
|
44674
42026
|
content = _ref.content,
|
|
44675
42027
|
themeValues = _ref.themeValues;
|
|
44676
|
-
var themeContext = React.useContext(ThemeContext);
|
|
42028
|
+
var themeContext = React.useContext(styled.ThemeContext);
|
|
44677
42029
|
var isMobile = themeContext.isMobile;
|
|
44678
42030
|
return /*#__PURE__*/React__default.createElement(Box, {
|
|
44679
42031
|
padding: "0",
|
|
@@ -44713,7 +42065,7 @@ var CenterSingle$2 = function CenterSingle(_ref) {
|
|
|
44713
42065
|
maxWidth = _ref$maxWidth === void 0 ? "75rem" : _ref$maxWidth,
|
|
44714
42066
|
_ref$gutters = _ref.gutters,
|
|
44715
42067
|
gutters = _ref$gutters === void 0 ? "2rem" : _ref$gutters;
|
|
44716
|
-
var themeContext = React.useContext(ThemeContext);
|
|
42068
|
+
var themeContext = React.useContext(styled.ThemeContext);
|
|
44717
42069
|
var isMobile = themeContext.isMobile;
|
|
44718
42070
|
return /*#__PURE__*/React__default.createElement(Box, {
|
|
44719
42071
|
padding: "0",
|
|
@@ -44764,7 +42116,7 @@ var SidebarSingleContent = function SidebarSingleContent(_ref) {
|
|
|
44764
42116
|
_ref$sidebarVerticalC = _ref.sidebarVerticalCenter,
|
|
44765
42117
|
sidebarVerticalCenter = _ref$sidebarVerticalC === void 0 ? false : _ref$sidebarVerticalC,
|
|
44766
42118
|
themeValues = _ref.themeValues;
|
|
44767
|
-
var themeContext = React.useContext(ThemeContext);
|
|
42119
|
+
var themeContext = React.useContext(styled.ThemeContext);
|
|
44768
42120
|
var isMobile = themeContext.isMobile;
|
|
44769
42121
|
return /*#__PURE__*/React__default.createElement(Box, {
|
|
44770
42122
|
padding: "0",
|
|
@@ -44820,7 +42172,7 @@ var SidebarStackContent = function SidebarStackContent(_ref) {
|
|
|
44820
42172
|
_ref$sidebarVerticalC = _ref.sidebarVerticalCenter,
|
|
44821
42173
|
sidebarVerticalCenter = _ref$sidebarVerticalC === void 0 ? false : _ref$sidebarVerticalC,
|
|
44822
42174
|
themeValues = _ref.themeValues;
|
|
44823
|
-
var themeContext = React.useContext(ThemeContext);
|
|
42175
|
+
var themeContext = React.useContext(styled.ThemeContext);
|
|
44824
42176
|
var isMobile = themeContext.isMobile;
|
|
44825
42177
|
return /*#__PURE__*/React__default.createElement(Box, {
|
|
44826
42178
|
padding: "0",
|