@typeolymp/ui-components 1.9.14 → 1.10.1
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/build/components/atoms/Icon/index.d.ts +1 -1
- package/build/components/organisms/Table/index.d.ts +13 -0
- package/build/components/organisms/Table/stories.d.ts +7 -0
- package/build/components/organisms/Table/styles.d.ts +7 -0
- package/build/index.d.ts +2 -1
- package/build/index.es.js +231 -883
- package/build/index.es.js.map +1 -1
- package/build/index.js +332 -982
- package/build/index.js.map +1 -1
- package/package.json +3 -3
package/build/index.es.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { jsx as jsx$1, jsxs, Fragment as Fragment$1 } from 'react/jsx-runtime';
|
|
2
|
-
import * as
|
|
3
|
-
import
|
|
2
|
+
import * as React$3 from 'react';
|
|
3
|
+
import React__default, { useLayoutEffect, useContext, forwardRef, createElement, createContext, Fragment, useRef, useState, useEffect, useImperativeHandle } from 'react';
|
|
4
|
+
import styled, { keyframes as keyframes$1 } from 'styled-components';
|
|
4
5
|
|
|
5
6
|
var theme = {
|
|
6
7
|
colors: {
|
|
@@ -1659,12 +1660,12 @@ var reactIs_production_min = {};
|
|
|
1659
1660
|
* This source code is licensed under the MIT license found in the
|
|
1660
1661
|
* LICENSE file in the root directory of this source tree.
|
|
1661
1662
|
*/
|
|
1662
|
-
var b
|
|
1663
|
-
Symbol.for("react.suspense_list"):60120,r=b
|
|
1664
|
-
function z
|
|
1665
|
-
reactIs_production_min.Profiler=g
|
|
1666
|
-
reactIs_production_min.isMemo=function(a){return z
|
|
1667
|
-
reactIs_production_min.isValidElementType=function(a){return "string"===typeof a||"function"===typeof a||a===e||a===m||a===g
|
|
1663
|
+
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?
|
|
1664
|
+
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;
|
|
1665
|
+
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}reactIs_production_min.AsyncMode=l;reactIs_production_min.ConcurrentMode=m;reactIs_production_min.ContextConsumer=k;reactIs_production_min.ContextProvider=h;reactIs_production_min.Element=c;reactIs_production_min.ForwardRef=n;reactIs_production_min.Fragment=e;reactIs_production_min.Lazy=t;reactIs_production_min.Memo=r;reactIs_production_min.Portal=d;
|
|
1666
|
+
reactIs_production_min.Profiler=g;reactIs_production_min.StrictMode=f;reactIs_production_min.Suspense=p;reactIs_production_min.isAsyncMode=function(a){return A(a)||z(a)===l};reactIs_production_min.isConcurrentMode=A;reactIs_production_min.isContextConsumer=function(a){return z(a)===k};reactIs_production_min.isContextProvider=function(a){return z(a)===h};reactIs_production_min.isElement=function(a){return "object"===typeof a&&null!==a&&a.$$typeof===c};reactIs_production_min.isForwardRef=function(a){return z(a)===n};reactIs_production_min.isFragment=function(a){return z(a)===e};reactIs_production_min.isLazy=function(a){return z(a)===t};
|
|
1667
|
+
reactIs_production_min.isMemo=function(a){return z(a)===r};reactIs_production_min.isPortal=function(a){return z(a)===d};reactIs_production_min.isProfiler=function(a){return z(a)===g};reactIs_production_min.isStrictMode=function(a){return z(a)===f};reactIs_production_min.isSuspense=function(a){return z(a)===p};
|
|
1668
|
+
reactIs_production_min.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)};reactIs_production_min.typeOf=z;
|
|
1668
1669
|
|
|
1669
1670
|
var reactIs_development = {};
|
|
1670
1671
|
|
|
@@ -2071,7 +2072,7 @@ function murmur2(str) {
|
|
|
2071
2072
|
return ((h ^ h >>> 15) >>> 0).toString(36);
|
|
2072
2073
|
}
|
|
2073
2074
|
|
|
2074
|
-
var unitlessKeys
|
|
2075
|
+
var unitlessKeys = {
|
|
2075
2076
|
animationIterationCount: 1,
|
|
2076
2077
|
borderImageOutset: 1,
|
|
2077
2078
|
borderImageSlice: 1,
|
|
@@ -2155,7 +2156,7 @@ var processStyleValue = function processStyleValue(key, value) {
|
|
|
2155
2156
|
}
|
|
2156
2157
|
}
|
|
2157
2158
|
|
|
2158
|
-
if (unitlessKeys
|
|
2159
|
+
if (unitlessKeys[key] !== 1 && !isCustomProperty(key) && typeof value === 'number' && value !== 0) {
|
|
2159
2160
|
return value + 'px';
|
|
2160
2161
|
}
|
|
2161
2162
|
|
|
@@ -2437,7 +2438,7 @@ var syncFallback = function syncFallback(create) {
|
|
|
2437
2438
|
return create();
|
|
2438
2439
|
};
|
|
2439
2440
|
|
|
2440
|
-
var useInsertionEffect =
|
|
2441
|
+
var useInsertionEffect = React$3['useInsertion' + 'Effect'] ? React$3['useInsertion' + 'Effect'] : false;
|
|
2441
2442
|
var useInsertionEffectAlwaysWithSyncFallback = !isBrowser$2 ? syncFallback : useInsertionEffect || syncFallback;
|
|
2442
2443
|
var useInsertionEffectWithLayoutFallback = useInsertionEffect || useLayoutEffect;
|
|
2443
2444
|
|
|
@@ -3377,17 +3378,17 @@ var __importStar$2 = (commonjsGlobal && commonjsGlobal.__importStar) || function
|
|
|
3377
3378
|
};
|
|
3378
3379
|
Object.defineProperty(BeatLoader, "__esModule", { value: true });
|
|
3379
3380
|
/** @jsx jsx */
|
|
3380
|
-
var React$2 = __importStar$2(
|
|
3381
|
+
var React$2 = __importStar$2(React__default);
|
|
3381
3382
|
var react_1 = require$$1;
|
|
3382
3383
|
var helpers_1 = helpers$1;
|
|
3383
|
-
var beat = react_1.keyframes(templateObject_1$
|
|
3384
|
+
var beat = react_1.keyframes(templateObject_1$P || (templateObject_1$P = __makeTemplateObject(["\n 50% {transform: scale(0.75);opacity: 0.2}\n 100% {transform: scale(1);opacity: 1}\n"], ["\n 50% {transform: scale(0.75);opacity: 0.2}\n 100% {transform: scale(1);opacity: 1}\n"])));
|
|
3384
3385
|
var Loader = /** @class */ (function (_super) {
|
|
3385
3386
|
__extends$1(Loader, _super);
|
|
3386
3387
|
function Loader() {
|
|
3387
3388
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
3388
3389
|
_this.style = function (i) {
|
|
3389
3390
|
var _a = _this.props, color = _a.color, size = _a.size, margin = _a.margin, speedMultiplier = _a.speedMultiplier;
|
|
3390
|
-
return react_1.css(templateObject_2$
|
|
3391
|
+
return react_1.css(templateObject_2$v || (templateObject_2$v = __makeTemplateObject(["\n display: inline-block;\n background-color: ", ";\n width: ", ";\n height: ", ";\n margin: ", ";\n border-radius: 100%;\n animation: ", " ", "s ", "\n infinite linear;\n animation-fill-mode: both;\n "], ["\n display: inline-block;\n background-color: ", ";\n width: ", ";\n height: ", ";\n margin: ", ";\n border-radius: 100%;\n animation: ", " ", "s ", "\n infinite linear;\n animation-fill-mode: both;\n "])), color, helpers_1.cssValue(size), helpers_1.cssValue(size), helpers_1.cssValue(margin), beat, 0.7 / speedMultiplier, i % 2 ? "0s" : 0.35 / speedMultiplier + "s");
|
|
3391
3392
|
};
|
|
3392
3393
|
return _this;
|
|
3393
3394
|
}
|
|
@@ -3402,686 +3403,9 @@ var Loader = /** @class */ (function (_super) {
|
|
|
3402
3403
|
return Loader;
|
|
3403
3404
|
}(React$2.PureComponent));
|
|
3404
3405
|
var _default = BeatLoader.default = Loader;
|
|
3405
|
-
var templateObject_1$
|
|
3406
|
-
|
|
3407
|
-
function stylis_min (W) {
|
|
3408
|
-
function M(d, c, e, h, a) {
|
|
3409
|
-
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;) {
|
|
3410
|
-
g = e.charCodeAt(l);
|
|
3411
|
-
l === J && 0 !== b + n + v + m && (0 !== b && (g = 47 === b ? 10 : 47), n = v = m = 0, B++, J++);
|
|
3412
|
-
|
|
3413
|
-
if (0 === b + n + v + m) {
|
|
3414
|
-
if (l === J && (0 < r && (f = f.replace(N, '')), 0 < f.trim().length)) {
|
|
3415
|
-
switch (g) {
|
|
3416
|
-
case 32:
|
|
3417
|
-
case 9:
|
|
3418
|
-
case 59:
|
|
3419
|
-
case 13:
|
|
3420
|
-
case 10:
|
|
3421
|
-
break;
|
|
3422
|
-
|
|
3423
|
-
default:
|
|
3424
|
-
f += e.charAt(l);
|
|
3425
|
-
}
|
|
3426
|
-
|
|
3427
|
-
g = 59;
|
|
3428
|
-
}
|
|
3429
|
-
|
|
3430
|
-
switch (g) {
|
|
3431
|
-
case 123:
|
|
3432
|
-
f = f.trim();
|
|
3433
|
-
q = f.charCodeAt(0);
|
|
3434
|
-
k = 1;
|
|
3435
|
-
|
|
3436
|
-
for (t = ++l; l < B;) {
|
|
3437
|
-
switch (g = e.charCodeAt(l)) {
|
|
3438
|
-
case 123:
|
|
3439
|
-
k++;
|
|
3440
|
-
break;
|
|
3441
|
-
|
|
3442
|
-
case 125:
|
|
3443
|
-
k--;
|
|
3444
|
-
break;
|
|
3445
|
-
|
|
3446
|
-
case 47:
|
|
3447
|
-
switch (g = e.charCodeAt(l + 1)) {
|
|
3448
|
-
case 42:
|
|
3449
|
-
case 47:
|
|
3450
|
-
a: {
|
|
3451
|
-
for (u = l + 1; u < J; ++u) {
|
|
3452
|
-
switch (e.charCodeAt(u)) {
|
|
3453
|
-
case 47:
|
|
3454
|
-
if (42 === g && 42 === e.charCodeAt(u - 1) && l + 2 !== u) {
|
|
3455
|
-
l = u + 1;
|
|
3456
|
-
break a;
|
|
3457
|
-
}
|
|
3458
|
-
|
|
3459
|
-
break;
|
|
3460
|
-
|
|
3461
|
-
case 10:
|
|
3462
|
-
if (47 === g) {
|
|
3463
|
-
l = u + 1;
|
|
3464
|
-
break a;
|
|
3465
|
-
}
|
|
3466
|
-
|
|
3467
|
-
}
|
|
3468
|
-
}
|
|
3469
|
-
|
|
3470
|
-
l = u;
|
|
3471
|
-
}
|
|
3472
|
-
|
|
3473
|
-
}
|
|
3474
|
-
|
|
3475
|
-
break;
|
|
3476
|
-
|
|
3477
|
-
case 91:
|
|
3478
|
-
g++;
|
|
3479
|
-
|
|
3480
|
-
case 40:
|
|
3481
|
-
g++;
|
|
3482
|
-
|
|
3483
|
-
case 34:
|
|
3484
|
-
case 39:
|
|
3485
|
-
for (; l++ < J && e.charCodeAt(l) !== g;) {
|
|
3486
|
-
}
|
|
3487
|
-
|
|
3488
|
-
}
|
|
3489
|
-
|
|
3490
|
-
if (0 === k) break;
|
|
3491
|
-
l++;
|
|
3492
|
-
}
|
|
3493
|
-
|
|
3494
|
-
k = e.substring(t, l);
|
|
3495
|
-
0 === q && (q = (f = f.replace(ca, '').trim()).charCodeAt(0));
|
|
3496
|
-
|
|
3497
|
-
switch (q) {
|
|
3498
|
-
case 64:
|
|
3499
|
-
0 < r && (f = f.replace(N, ''));
|
|
3500
|
-
g = f.charCodeAt(1);
|
|
3501
|
-
|
|
3502
|
-
switch (g) {
|
|
3503
|
-
case 100:
|
|
3504
|
-
case 109:
|
|
3505
|
-
case 115:
|
|
3506
|
-
case 45:
|
|
3507
|
-
r = c;
|
|
3508
|
-
break;
|
|
3509
|
-
|
|
3510
|
-
default:
|
|
3511
|
-
r = O;
|
|
3512
|
-
}
|
|
3513
|
-
|
|
3514
|
-
k = M(c, r, k, g, a + 1);
|
|
3515
|
-
t = k.length;
|
|
3516
|
-
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 = ''));
|
|
3517
|
-
if (0 < t) switch (g) {
|
|
3518
|
-
case 115:
|
|
3519
|
-
f = f.replace(da, ea);
|
|
3520
|
-
|
|
3521
|
-
case 100:
|
|
3522
|
-
case 109:
|
|
3523
|
-
case 45:
|
|
3524
|
-
k = f + '{' + k + '}';
|
|
3525
|
-
break;
|
|
3526
|
-
|
|
3527
|
-
case 107:
|
|
3528
|
-
f = f.replace(fa, '$1 $2');
|
|
3529
|
-
k = f + '{' + k + '}';
|
|
3530
|
-
k = 1 === w || 2 === w && L('@' + k, 3) ? '@-webkit-' + k + '@' + k : '@' + k;
|
|
3531
|
-
break;
|
|
3532
|
-
|
|
3533
|
-
default:
|
|
3534
|
-
k = f + k, 112 === h && (k = (p += k, ''));
|
|
3535
|
-
} else k = '';
|
|
3536
|
-
break;
|
|
3537
|
-
|
|
3538
|
-
default:
|
|
3539
|
-
k = M(c, X(c, f, I), k, h, a + 1);
|
|
3540
|
-
}
|
|
3541
|
-
|
|
3542
|
-
F += k;
|
|
3543
|
-
k = I = r = u = q = 0;
|
|
3544
|
-
f = '';
|
|
3545
|
-
g = e.charCodeAt(++l);
|
|
3546
|
-
break;
|
|
3547
|
-
|
|
3548
|
-
case 125:
|
|
3549
|
-
case 59:
|
|
3550
|
-
f = (0 < r ? f.replace(N, '') : f).trim();
|
|
3551
|
-
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) {
|
|
3552
|
-
case 0:
|
|
3553
|
-
break;
|
|
3554
|
-
|
|
3555
|
-
case 64:
|
|
3556
|
-
if (105 === g || 99 === g) {
|
|
3557
|
-
G += f + e.charAt(l);
|
|
3558
|
-
break;
|
|
3559
|
-
}
|
|
3560
|
-
|
|
3561
|
-
default:
|
|
3562
|
-
58 !== f.charCodeAt(t - 1) && (p += P(f, q, g, f.charCodeAt(2)));
|
|
3563
|
-
}
|
|
3564
|
-
I = r = u = q = 0;
|
|
3565
|
-
f = '';
|
|
3566
|
-
g = e.charCodeAt(++l);
|
|
3567
|
-
}
|
|
3568
|
-
}
|
|
3569
|
-
|
|
3570
|
-
switch (g) {
|
|
3571
|
-
case 13:
|
|
3572
|
-
case 10:
|
|
3573
|
-
47 === b ? b = 0 : 0 === 1 + q && 107 !== h && 0 < f.length && (r = 1, f += '\x00');
|
|
3574
|
-
0 < A * Y && H(0, f, c, d, D, z, p.length, h, a, h);
|
|
3575
|
-
z = 1;
|
|
3576
|
-
D++;
|
|
3577
|
-
break;
|
|
3578
|
-
|
|
3579
|
-
case 59:
|
|
3580
|
-
case 125:
|
|
3581
|
-
if (0 === b + n + v + m) {
|
|
3582
|
-
z++;
|
|
3583
|
-
break;
|
|
3584
|
-
}
|
|
3585
|
-
|
|
3586
|
-
default:
|
|
3587
|
-
z++;
|
|
3588
|
-
y = e.charAt(l);
|
|
3589
|
-
|
|
3590
|
-
switch (g) {
|
|
3591
|
-
case 9:
|
|
3592
|
-
case 32:
|
|
3593
|
-
if (0 === n + m + b) switch (x) {
|
|
3594
|
-
case 44:
|
|
3595
|
-
case 58:
|
|
3596
|
-
case 9:
|
|
3597
|
-
case 32:
|
|
3598
|
-
y = '';
|
|
3599
|
-
break;
|
|
3600
|
-
|
|
3601
|
-
default:
|
|
3602
|
-
32 !== g && (y = ' ');
|
|
3603
|
-
}
|
|
3604
|
-
break;
|
|
3605
|
-
|
|
3606
|
-
case 0:
|
|
3607
|
-
y = '\\0';
|
|
3608
|
-
break;
|
|
3609
|
-
|
|
3610
|
-
case 12:
|
|
3611
|
-
y = '\\f';
|
|
3612
|
-
break;
|
|
3613
|
-
|
|
3614
|
-
case 11:
|
|
3615
|
-
y = '\\v';
|
|
3616
|
-
break;
|
|
3617
|
-
|
|
3618
|
-
case 38:
|
|
3619
|
-
0 === n + b + m && (r = I = 1, y = '\f' + y);
|
|
3620
|
-
break;
|
|
3621
|
-
|
|
3622
|
-
case 108:
|
|
3623
|
-
if (0 === n + b + m + E && 0 < u) switch (l - u) {
|
|
3624
|
-
case 2:
|
|
3625
|
-
112 === x && 58 === e.charCodeAt(l - 3) && (E = x);
|
|
3626
|
-
|
|
3627
|
-
case 8:
|
|
3628
|
-
111 === K && (E = K);
|
|
3629
|
-
}
|
|
3630
|
-
break;
|
|
3631
|
-
|
|
3632
|
-
case 58:
|
|
3633
|
-
0 === n + b + m && (u = l);
|
|
3634
|
-
break;
|
|
3635
|
-
|
|
3636
|
-
case 44:
|
|
3637
|
-
0 === b + v + n + m && (r = 1, y += '\r');
|
|
3638
|
-
break;
|
|
3639
|
-
|
|
3640
|
-
case 34:
|
|
3641
|
-
case 39:
|
|
3642
|
-
0 === b && (n = n === g ? 0 : 0 === n ? g : n);
|
|
3643
|
-
break;
|
|
3644
|
-
|
|
3645
|
-
case 91:
|
|
3646
|
-
0 === n + b + v && m++;
|
|
3647
|
-
break;
|
|
3648
|
-
|
|
3649
|
-
case 93:
|
|
3650
|
-
0 === n + b + v && m--;
|
|
3651
|
-
break;
|
|
3652
|
-
|
|
3653
|
-
case 41:
|
|
3654
|
-
0 === n + b + m && v--;
|
|
3655
|
-
break;
|
|
3656
|
-
|
|
3657
|
-
case 40:
|
|
3658
|
-
if (0 === n + b + m) {
|
|
3659
|
-
if (0 === q) switch (2 * x + 3 * K) {
|
|
3660
|
-
case 533:
|
|
3661
|
-
break;
|
|
3662
|
-
|
|
3663
|
-
default:
|
|
3664
|
-
q = 1;
|
|
3665
|
-
}
|
|
3666
|
-
v++;
|
|
3667
|
-
}
|
|
3668
|
-
|
|
3669
|
-
break;
|
|
3670
|
-
|
|
3671
|
-
case 64:
|
|
3672
|
-
0 === b + v + n + m + u + k && (k = 1);
|
|
3673
|
-
break;
|
|
3674
|
-
|
|
3675
|
-
case 42:
|
|
3676
|
-
case 47:
|
|
3677
|
-
if (!(0 < n + m + v)) switch (b) {
|
|
3678
|
-
case 0:
|
|
3679
|
-
switch (2 * g + 3 * e.charCodeAt(l + 1)) {
|
|
3680
|
-
case 235:
|
|
3681
|
-
b = 47;
|
|
3682
|
-
break;
|
|
3683
|
-
|
|
3684
|
-
case 220:
|
|
3685
|
-
t = l, b = 42;
|
|
3686
|
-
}
|
|
3687
|
-
|
|
3688
|
-
break;
|
|
3689
|
-
|
|
3690
|
-
case 42:
|
|
3691
|
-
47 === g && 42 === x && t + 2 !== l && (33 === e.charCodeAt(t + 2) && (p += e.substring(t, l + 1)), y = '', b = 0);
|
|
3692
|
-
}
|
|
3693
|
-
}
|
|
3694
|
-
|
|
3695
|
-
0 === b && (f += y);
|
|
3696
|
-
}
|
|
3697
|
-
|
|
3698
|
-
K = x;
|
|
3699
|
-
x = g;
|
|
3700
|
-
l++;
|
|
3701
|
-
}
|
|
3702
|
-
|
|
3703
|
-
t = p.length;
|
|
3704
|
-
|
|
3705
|
-
if (0 < t) {
|
|
3706
|
-
r = c;
|
|
3707
|
-
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;
|
|
3708
|
-
p = r.join(',') + '{' + p + '}';
|
|
3709
|
-
|
|
3710
|
-
if (0 !== w * E) {
|
|
3711
|
-
2 !== w || L(p, 2) || (E = 0);
|
|
3712
|
-
|
|
3713
|
-
switch (E) {
|
|
3714
|
-
case 111:
|
|
3715
|
-
p = p.replace(ha, ':-moz-$1') + p;
|
|
3716
|
-
break;
|
|
3717
|
-
|
|
3718
|
-
case 112:
|
|
3719
|
-
p = p.replace(Q, '::-webkit-input-$1') + p.replace(Q, '::-moz-$1') + p.replace(Q, ':-ms-input-$1') + p;
|
|
3720
|
-
}
|
|
3721
|
-
|
|
3722
|
-
E = 0;
|
|
3723
|
-
}
|
|
3724
|
-
}
|
|
3725
|
-
|
|
3726
|
-
return G + p + F;
|
|
3727
|
-
}
|
|
3728
|
-
|
|
3729
|
-
function X(d, c, e) {
|
|
3730
|
-
var h = c.trim().split(ia);
|
|
3731
|
-
c = h;
|
|
3732
|
-
var a = h.length,
|
|
3733
|
-
m = d.length;
|
|
3734
|
-
|
|
3735
|
-
switch (m) {
|
|
3736
|
-
case 0:
|
|
3737
|
-
case 1:
|
|
3738
|
-
var b = 0;
|
|
3739
|
-
|
|
3740
|
-
for (d = 0 === m ? '' : d[0] + ' '; b < a; ++b) {
|
|
3741
|
-
c[b] = Z(d, c[b], e).trim();
|
|
3742
|
-
}
|
|
3743
|
-
|
|
3744
|
-
break;
|
|
3745
|
-
|
|
3746
|
-
default:
|
|
3747
|
-
var v = b = 0;
|
|
3748
|
-
|
|
3749
|
-
for (c = []; b < a; ++b) {
|
|
3750
|
-
for (var n = 0; n < m; ++n) {
|
|
3751
|
-
c[v++] = Z(d[n] + ' ', h[b], e).trim();
|
|
3752
|
-
}
|
|
3753
|
-
}
|
|
3754
|
-
|
|
3755
|
-
}
|
|
3756
|
-
|
|
3757
|
-
return c;
|
|
3758
|
-
}
|
|
3759
|
-
|
|
3760
|
-
function Z(d, c, e) {
|
|
3761
|
-
var h = c.charCodeAt(0);
|
|
3762
|
-
33 > h && (h = (c = c.trim()).charCodeAt(0));
|
|
3763
|
-
|
|
3764
|
-
switch (h) {
|
|
3765
|
-
case 38:
|
|
3766
|
-
return c.replace(F, '$1' + d.trim());
|
|
3767
|
-
|
|
3768
|
-
case 58:
|
|
3769
|
-
return d.trim() + c.replace(F, '$1' + d.trim());
|
|
3770
|
-
|
|
3771
|
-
default:
|
|
3772
|
-
if (0 < 1 * e && 0 < c.indexOf('\f')) return c.replace(F, (58 === d.charCodeAt(0) ? '' : '$1') + d.trim());
|
|
3773
|
-
}
|
|
3774
|
-
|
|
3775
|
-
return d + c;
|
|
3776
|
-
}
|
|
3777
|
-
|
|
3778
|
-
function P(d, c, e, h) {
|
|
3779
|
-
var a = d + ';',
|
|
3780
|
-
m = 2 * c + 3 * e + 4 * h;
|
|
3781
|
-
|
|
3782
|
-
if (944 === m) {
|
|
3783
|
-
d = a.indexOf(':', 9) + 1;
|
|
3784
|
-
var b = a.substring(d, a.length - 1).trim();
|
|
3785
|
-
b = a.substring(0, d).trim() + b + ';';
|
|
3786
|
-
return 1 === w || 2 === w && L(b, 1) ? '-webkit-' + b + b : b;
|
|
3787
|
-
}
|
|
3788
|
-
|
|
3789
|
-
if (0 === w || 2 === w && !L(a, 1)) return a;
|
|
3790
|
-
|
|
3791
|
-
switch (m) {
|
|
3792
|
-
case 1015:
|
|
3793
|
-
return 97 === a.charCodeAt(10) ? '-webkit-' + a + a : a;
|
|
3794
|
-
|
|
3795
|
-
case 951:
|
|
3796
|
-
return 116 === a.charCodeAt(3) ? '-webkit-' + a + a : a;
|
|
3797
|
-
|
|
3798
|
-
case 963:
|
|
3799
|
-
return 110 === a.charCodeAt(5) ? '-webkit-' + a + a : a;
|
|
3800
|
-
|
|
3801
|
-
case 1009:
|
|
3802
|
-
if (100 !== a.charCodeAt(4)) break;
|
|
3803
|
-
|
|
3804
|
-
case 969:
|
|
3805
|
-
case 942:
|
|
3806
|
-
return '-webkit-' + a + a;
|
|
3807
|
-
|
|
3808
|
-
case 978:
|
|
3809
|
-
return '-webkit-' + a + '-moz-' + a + a;
|
|
3810
|
-
|
|
3811
|
-
case 1019:
|
|
3812
|
-
case 983:
|
|
3813
|
-
return '-webkit-' + a + '-moz-' + a + '-ms-' + a + a;
|
|
3814
|
-
|
|
3815
|
-
case 883:
|
|
3816
|
-
if (45 === a.charCodeAt(8)) return '-webkit-' + a + a;
|
|
3817
|
-
if (0 < a.indexOf('image-set(', 11)) return a.replace(ja, '$1-webkit-$2') + a;
|
|
3818
|
-
break;
|
|
3819
|
-
|
|
3820
|
-
case 932:
|
|
3821
|
-
if (45 === a.charCodeAt(4)) switch (a.charCodeAt(5)) {
|
|
3822
|
-
case 103:
|
|
3823
|
-
return '-webkit-box-' + a.replace('-grow', '') + '-webkit-' + a + '-ms-' + a.replace('grow', 'positive') + a;
|
|
3824
|
-
|
|
3825
|
-
case 115:
|
|
3826
|
-
return '-webkit-' + a + '-ms-' + a.replace('shrink', 'negative') + a;
|
|
3827
|
-
|
|
3828
|
-
case 98:
|
|
3829
|
-
return '-webkit-' + a + '-ms-' + a.replace('basis', 'preferred-size') + a;
|
|
3830
|
-
}
|
|
3831
|
-
return '-webkit-' + a + '-ms-' + a + a;
|
|
3832
|
-
|
|
3833
|
-
case 964:
|
|
3834
|
-
return '-webkit-' + a + '-ms-flex-' + a + a;
|
|
3835
|
-
|
|
3836
|
-
case 1023:
|
|
3837
|
-
if (99 !== a.charCodeAt(8)) break;
|
|
3838
|
-
b = a.substring(a.indexOf(':', 15)).replace('flex-', '').replace('space-between', 'justify');
|
|
3839
|
-
return '-webkit-box-pack' + b + '-webkit-' + a + '-ms-flex-pack' + b + a;
|
|
3840
|
-
|
|
3841
|
-
case 1005:
|
|
3842
|
-
return ka.test(a) ? a.replace(aa, ':-webkit-') + a.replace(aa, ':-moz-') + a : a;
|
|
3843
|
-
|
|
3844
|
-
case 1e3:
|
|
3845
|
-
b = a.substring(13).trim();
|
|
3846
|
-
c = b.indexOf('-') + 1;
|
|
3847
|
-
|
|
3848
|
-
switch (b.charCodeAt(0) + b.charCodeAt(c)) {
|
|
3849
|
-
case 226:
|
|
3850
|
-
b = a.replace(G, 'tb');
|
|
3851
|
-
break;
|
|
3852
|
-
|
|
3853
|
-
case 232:
|
|
3854
|
-
b = a.replace(G, 'tb-rl');
|
|
3855
|
-
break;
|
|
3856
|
-
|
|
3857
|
-
case 220:
|
|
3858
|
-
b = a.replace(G, 'lr');
|
|
3859
|
-
break;
|
|
3860
|
-
|
|
3861
|
-
default:
|
|
3862
|
-
return a;
|
|
3863
|
-
}
|
|
3864
|
-
|
|
3865
|
-
return '-webkit-' + a + '-ms-' + b + a;
|
|
3866
|
-
|
|
3867
|
-
case 1017:
|
|
3868
|
-
if (-1 === a.indexOf('sticky', 9)) break;
|
|
3869
|
-
|
|
3870
|
-
case 975:
|
|
3871
|
-
c = (a = d).length - 10;
|
|
3872
|
-
b = (33 === a.charCodeAt(c) ? a.substring(0, c) : a).substring(d.indexOf(':', 7) + 1).trim();
|
|
3873
|
-
|
|
3874
|
-
switch (m = b.charCodeAt(0) + (b.charCodeAt(7) | 0)) {
|
|
3875
|
-
case 203:
|
|
3876
|
-
if (111 > b.charCodeAt(8)) break;
|
|
3877
|
-
|
|
3878
|
-
case 115:
|
|
3879
|
-
a = a.replace(b, '-webkit-' + b) + ';' + a;
|
|
3880
|
-
break;
|
|
3406
|
+
var templateObject_1$P, templateObject_2$v;
|
|
3881
3407
|
|
|
3882
|
-
|
|
3883
|
-
case 102:
|
|
3884
|
-
a = a.replace(b, '-webkit-' + (102 < m ? 'inline-' : '') + 'box') + ';' + a.replace(b, '-webkit-' + b) + ';' + a.replace(b, '-ms-' + b + 'box') + ';' + a;
|
|
3885
|
-
}
|
|
3886
|
-
|
|
3887
|
-
return a + ';';
|
|
3888
|
-
|
|
3889
|
-
case 938:
|
|
3890
|
-
if (45 === a.charCodeAt(5)) switch (a.charCodeAt(6)) {
|
|
3891
|
-
case 105:
|
|
3892
|
-
return b = a.replace('-items', ''), '-webkit-' + a + '-webkit-box-' + b + '-ms-flex-' + b + a;
|
|
3893
|
-
|
|
3894
|
-
case 115:
|
|
3895
|
-
return '-webkit-' + a + '-ms-flex-item-' + a.replace(ba, '') + a;
|
|
3896
|
-
|
|
3897
|
-
default:
|
|
3898
|
-
return '-webkit-' + a + '-ms-flex-line-pack' + a.replace('align-content', '').replace(ba, '') + a;
|
|
3899
|
-
}
|
|
3900
|
-
break;
|
|
3901
|
-
|
|
3902
|
-
case 973:
|
|
3903
|
-
case 989:
|
|
3904
|
-
if (45 !== a.charCodeAt(3) || 122 === a.charCodeAt(4)) break;
|
|
3905
|
-
|
|
3906
|
-
case 931:
|
|
3907
|
-
case 953:
|
|
3908
|
-
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;
|
|
3909
|
-
break;
|
|
3910
|
-
|
|
3911
|
-
case 962:
|
|
3912
|
-
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;
|
|
3913
|
-
}
|
|
3914
|
-
|
|
3915
|
-
return a;
|
|
3916
|
-
}
|
|
3917
|
-
|
|
3918
|
-
function L(d, c) {
|
|
3919
|
-
var e = d.indexOf(1 === c ? ':' : '{'),
|
|
3920
|
-
h = d.substring(0, 3 !== c ? e : 10);
|
|
3921
|
-
e = d.substring(e + 1, d.length - 1);
|
|
3922
|
-
return R(2 !== c ? h : h.replace(na, '$1'), e, c);
|
|
3923
|
-
}
|
|
3924
|
-
|
|
3925
|
-
function ea(d, c) {
|
|
3926
|
-
var e = P(c, c.charCodeAt(0), c.charCodeAt(1), c.charCodeAt(2));
|
|
3927
|
-
return e !== c + ';' ? e.replace(oa, ' or ($1)').substring(4) : '(' + c + ')';
|
|
3928
|
-
}
|
|
3929
|
-
|
|
3930
|
-
function H(d, c, e, h, a, m, b, v, n, q) {
|
|
3931
|
-
for (var g = 0, x = c, w; g < A; ++g) {
|
|
3932
|
-
switch (w = S[g].call(B, d, x, e, h, a, m, b, v, n, q)) {
|
|
3933
|
-
case void 0:
|
|
3934
|
-
case !1:
|
|
3935
|
-
case !0:
|
|
3936
|
-
case null:
|
|
3937
|
-
break;
|
|
3938
|
-
|
|
3939
|
-
default:
|
|
3940
|
-
x = w;
|
|
3941
|
-
}
|
|
3942
|
-
}
|
|
3943
|
-
|
|
3944
|
-
if (x !== c) return x;
|
|
3945
|
-
}
|
|
3946
|
-
|
|
3947
|
-
function T(d) {
|
|
3948
|
-
switch (d) {
|
|
3949
|
-
case void 0:
|
|
3950
|
-
case null:
|
|
3951
|
-
A = S.length = 0;
|
|
3952
|
-
break;
|
|
3953
|
-
|
|
3954
|
-
default:
|
|
3955
|
-
if ('function' === typeof d) S[A++] = d;else if ('object' === typeof d) for (var c = 0, e = d.length; c < e; ++c) {
|
|
3956
|
-
T(d[c]);
|
|
3957
|
-
} else Y = !!d | 0;
|
|
3958
|
-
}
|
|
3959
|
-
|
|
3960
|
-
return T;
|
|
3961
|
-
}
|
|
3962
|
-
|
|
3963
|
-
function U(d) {
|
|
3964
|
-
d = d.prefix;
|
|
3965
|
-
void 0 !== d && (R = null, d ? 'function' !== typeof d ? w = 1 : (w = 2, R = d) : w = 0);
|
|
3966
|
-
return U;
|
|
3967
|
-
}
|
|
3968
|
-
|
|
3969
|
-
function B(d, c) {
|
|
3970
|
-
var e = d;
|
|
3971
|
-
33 > e.charCodeAt(0) && (e = e.trim());
|
|
3972
|
-
V = e;
|
|
3973
|
-
e = [V];
|
|
3974
|
-
|
|
3975
|
-
if (0 < A) {
|
|
3976
|
-
var h = H(-1, c, e, e, D, z, 0, 0, 0, 0);
|
|
3977
|
-
void 0 !== h && 'string' === typeof h && (c = h);
|
|
3978
|
-
}
|
|
3979
|
-
|
|
3980
|
-
var a = M(O, e, c, 0, 0);
|
|
3981
|
-
0 < A && (h = H(-2, a, e, e, D, z, a.length, 0, 0, 0), void 0 !== h && (a = h));
|
|
3982
|
-
V = '';
|
|
3983
|
-
E = 0;
|
|
3984
|
-
z = D = 1;
|
|
3985
|
-
return a;
|
|
3986
|
-
}
|
|
3987
|
-
|
|
3988
|
-
var ca = /^\0+/g,
|
|
3989
|
-
N = /[\0\r\f]/g,
|
|
3990
|
-
aa = /: */g,
|
|
3991
|
-
ka = /zoo|gra/,
|
|
3992
|
-
ma = /([,: ])(transform)/g,
|
|
3993
|
-
ia = /,\r+?/g,
|
|
3994
|
-
F = /([\t\r\n ])*\f?&/g,
|
|
3995
|
-
fa = /@(k\w+)\s*(\S*)\s*/,
|
|
3996
|
-
Q = /::(place)/g,
|
|
3997
|
-
ha = /:(read-only)/g,
|
|
3998
|
-
G = /[svh]\w+-[tblr]{2}/,
|
|
3999
|
-
da = /\(\s*(.*)\s*\)/g,
|
|
4000
|
-
oa = /([\s\S]*?);/g,
|
|
4001
|
-
ba = /-self|flex-/g,
|
|
4002
|
-
na = /[^]*?(:[rp][el]a[\w-]+)[^]*/,
|
|
4003
|
-
la = /stretch|:\s*\w+\-(?:conte|avail)/,
|
|
4004
|
-
ja = /([^-])(image-set\()/,
|
|
4005
|
-
z = 1,
|
|
4006
|
-
D = 1,
|
|
4007
|
-
E = 0,
|
|
4008
|
-
w = 1,
|
|
4009
|
-
O = [],
|
|
4010
|
-
S = [],
|
|
4011
|
-
A = 0,
|
|
4012
|
-
R = null,
|
|
4013
|
-
Y = 0,
|
|
4014
|
-
V = '';
|
|
4015
|
-
B.use = T;
|
|
4016
|
-
B.set = U;
|
|
4017
|
-
void 0 !== W && U(W);
|
|
4018
|
-
return B;
|
|
4019
|
-
}
|
|
4020
|
-
|
|
4021
|
-
var unitlessKeys = {
|
|
4022
|
-
animationIterationCount: 1,
|
|
4023
|
-
borderImageOutset: 1,
|
|
4024
|
-
borderImageSlice: 1,
|
|
4025
|
-
borderImageWidth: 1,
|
|
4026
|
-
boxFlex: 1,
|
|
4027
|
-
boxFlexGroup: 1,
|
|
4028
|
-
boxOrdinalGroup: 1,
|
|
4029
|
-
columnCount: 1,
|
|
4030
|
-
columns: 1,
|
|
4031
|
-
flex: 1,
|
|
4032
|
-
flexGrow: 1,
|
|
4033
|
-
flexPositive: 1,
|
|
4034
|
-
flexShrink: 1,
|
|
4035
|
-
flexNegative: 1,
|
|
4036
|
-
flexOrder: 1,
|
|
4037
|
-
gridRow: 1,
|
|
4038
|
-
gridRowEnd: 1,
|
|
4039
|
-
gridRowSpan: 1,
|
|
4040
|
-
gridRowStart: 1,
|
|
4041
|
-
gridColumn: 1,
|
|
4042
|
-
gridColumnEnd: 1,
|
|
4043
|
-
gridColumnSpan: 1,
|
|
4044
|
-
gridColumnStart: 1,
|
|
4045
|
-
msGridRow: 1,
|
|
4046
|
-
msGridRowSpan: 1,
|
|
4047
|
-
msGridColumn: 1,
|
|
4048
|
-
msGridColumnSpan: 1,
|
|
4049
|
-
fontWeight: 1,
|
|
4050
|
-
lineHeight: 1,
|
|
4051
|
-
opacity: 1,
|
|
4052
|
-
order: 1,
|
|
4053
|
-
orphans: 1,
|
|
4054
|
-
tabSize: 1,
|
|
4055
|
-
widows: 1,
|
|
4056
|
-
zIndex: 1,
|
|
4057
|
-
zoom: 1,
|
|
4058
|
-
WebkitLineClamp: 1,
|
|
4059
|
-
// SVG-related properties
|
|
4060
|
-
fillOpacity: 1,
|
|
4061
|
-
floodOpacity: 1,
|
|
4062
|
-
stopOpacity: 1,
|
|
4063
|
-
strokeDasharray: 1,
|
|
4064
|
-
strokeDashoffset: 1,
|
|
4065
|
-
strokeMiterlimit: 1,
|
|
4066
|
-
strokeOpacity: 1,
|
|
4067
|
-
strokeWidth: 1
|
|
4068
|
-
};
|
|
4069
|
-
|
|
4070
|
-
var reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|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|enterKeyHint|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|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|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
|
|
4071
|
-
|
|
4072
|
-
var isPropValid = /* #__PURE__ */memoize(function (prop) {
|
|
4073
|
-
return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111
|
|
4074
|
-
/* o */
|
|
4075
|
-
&& prop.charCodeAt(1) === 110
|
|
4076
|
-
/* n */
|
|
4077
|
-
&& prop.charCodeAt(2) < 91;
|
|
4078
|
-
}
|
|
4079
|
-
/* Z+1 */
|
|
4080
|
-
);
|
|
4081
|
-
|
|
4082
|
-
function y(){return (y=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e}).apply(this,arguments)}var v=function(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n},g=function(t){return null!==t&&"object"==typeof t&&"[object Object]"===(t.toString?t.toString():Object.prototype.toString.call(t))&&!reactIs$1.exports.typeOf(t)},S=Object.freeze([]),w=Object.freeze({});function E(e){return "function"==typeof e}function b(e){return "production"!==process.env.NODE_ENV&&"string"==typeof e&&e||e.displayName||e.name||"Component"}function _(e){return e&&"string"==typeof e.styledComponentId}var N="undefined"!=typeof process&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",C="undefined"!=typeof window&&"HTMLElement"in window,I=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY?"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY:"production"!==process.env.NODE_ENV),O="production"!==process.env.NODE_ENV?{1:"Cannot create styled-component for component: %s.\n\n",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",3:"Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.\n\n",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",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",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",7:'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n',8:'ThemeProvider: Please make your "theme" prop an object.\n\n',9:"Missing document `<head>`\n\n",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",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",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",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",14:'ThemeProvider: "theme" prop is required.\n\n',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",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",17:"CSSStyleSheet could not be found on HTMLStyleElement.\nHas styled-components' style tag been unmounted or altered by another script?\n"}:{};function R(){for(var e=arguments.length<=0?void 0:arguments[0],t=[],n=1,r=arguments.length;n<r;n+=1)t.push(n<0||arguments.length<=n?void 0:arguments[n]);return t.forEach((function(t){e=e.replace(/%[a-z]/,t);})),e}function D(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw "production"===process.env.NODE_ENV?new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(n.length>0?" Args: "+n.join(", "):"")):new Error(R.apply(void 0,[O[e]].concat(n)).trim())}var j=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e;}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)(o<<=1)<0&&D(16,""+e);this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var s=r;s<o;s++)this.groupSizes[s]=0;}for(var i=this.indexOfGroup(e+1),a=0,c=t.length;a<c;a++)this.tag.insertRule(i,t[a])&&(this.groupSizes[e]++,i++);},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var o=n;o<r;o++)this.tag.deleteRule(n);}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n,s=r;s<o;s++)t+=this.tag.getRule(s)+"/*!sc*/\n";return t},e}(),T=new Map,x=new Map,k=1,V=function(e){if(T.has(e))return T.get(e);for(;x.has(k);)k++;var t=k++;return "production"!==process.env.NODE_ENV&&((0|t)<0||t>1<<30)&&D(16,""+t),T.set(e,t),x.set(t,e),t},z=function(e){return x.get(e)},B=function(e,t){t>=k&&(k=t+1),T.set(e,t),x.set(t,e);},M="style["+N+'][data-styled-version="5.3.6"]',G=new RegExp("^"+N+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),L=function(e,t,n){for(var r,o=n.split(","),s=0,i=o.length;s<i;s++)(r=o[s])&&e.registerName(t,r);},F=function(e,t){for(var n=(t.textContent||"").split("/*!sc*/\n"),r=[],o=0,s=n.length;o<s;o++){var i=n[o].trim();if(i){var a=i.match(G);if(a){var c=0|parseInt(a[1],10),u=a[2];0!==c&&(B(u,c),L(e,u,a[3]),e.getTag().insertRules(c,r)),r.length=0;}else r.push(i);}}},Y=function(){return "undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null},q=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(e){for(var t=e.childNodes,n=t.length;n>=0;n--){var r=t[n];if(r&&1===r.nodeType&&r.hasAttribute(N))return r}}(n),s=void 0!==o?o.nextSibling:null;r.setAttribute(N,"active"),r.setAttribute("data-styled-version","5.3.6");var i=Y();return i&&r.setAttribute("nonce",i),n.insertBefore(r,s),r},H=function(){function e(e){var t=this.element=q(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var o=t[n];if(o.ownerNode===e)return o}D(17);}(t),this.length=0;}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return !1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--;},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),$=function(){function e(e){var t=this.element=q(e);this.nodes=t.childNodes,this.length=0;}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t),r=this.nodes[e];return this.element.insertBefore(n,r||null),this.length++,!0}return !1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--;},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),W=function(){function e(e){this.rules=[],this.length=0;}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--;},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),U=C,J={isServer:!C,useCSSOMInjection:!I},X=function(){function e(e,t,n){void 0===e&&(e=w),void 0===t&&(t={}),this.options=y({},J,{},e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&C&&U&&(U=!1,function(e){for(var t=document.querySelectorAll(M),n=0,r=t.length;n<r;n++){var o=t[n];o&&"active"!==o.getAttribute(N)&&(F(e,o),o.parentNode&&o.parentNode.removeChild(o));}}(this));}e.registerId=function(e){return V(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(y({},this.options,{},t),this.gs,n&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(n=(t=this.options).isServer,r=t.useCSSOMInjection,o=t.target,e=n?new W(o):r?new H(o):new $(o),new j(e)));var e,t,n,r,o;},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(V(e),this.names.has(e))this.names.get(e).add(t);else {var n=new Set;n.add(t),this.names.set(e,n);}},t.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(V(e),n);},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear();},t.clearRules=function(e){this.getTag().clearGroup(V(e)),this.clearNames(e);},t.clearTag=function(){this.tag=void 0;},t.toString=function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=0;o<n;o++){var s=z(o);if(void 0!==s){var i=e.names.get(s),a=t.getGroup(o);if(i&&a&&i.size){var c=N+".g"+o+'[id="'+s+'"]',u="";void 0!==i&&i.forEach((function(e){e.length>0&&(u+=e+",");})),r+=""+a+c+'{content:"'+u+'"}/*!sc*/\n';}}}return r}(this)},e}(),Z=/(a)(d)/gi,K=function(e){return String.fromCharCode(e+(e>25?39:97))};function Q(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=K(t%52)+n;return (K(t%52)+n).replace(Z,"$1-$2")}var ee=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},te=function(e){return ee(5381,e)};function ne(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(E(n)&&!_(n))return !1}return !0}var re=te("5.3.6"),oe=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic="production"===process.env.NODE_ENV&&(void 0===n||n.isStatic)&&ne(e),this.componentId=t,this.baseHash=ee(re,t),this.baseStyle=n,X.registerId(t);}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.componentId,o=[];if(this.baseStyle&&o.push(this.baseStyle.generateAndInjectStyles(e,t,n)),this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(r,this.staticRulesId))o.push(this.staticRulesId);else {var s=_e(this.rules,e,t,n).join(""),i=Q(ee(this.baseHash,s)>>>0);if(!t.hasNameForId(r,i)){var a=n(s,"."+i,void 0,r);t.insertRules(r,i,a);}o.push(i),this.staticRulesId=i;}else {for(var c=this.rules.length,u=ee(this.baseHash,n.hash),l="",d=0;d<c;d++){var h=this.rules[d];if("string"==typeof h)l+=h,"production"!==process.env.NODE_ENV&&(u=ee(u,h+d));else if(h){var p=_e(h,e,t,n),f=Array.isArray(p)?p.join(""):p;u=ee(u,f+d),l+=f;}}if(l){var m=Q(u>>>0);if(!t.hasNameForId(r,m)){var y=n(l,"."+m,void 0,r);t.insertRules(r,m,y);}o.push(m);}}return o.join(" ")},e}(),se=/^\s*\/\/.*$/gm,ie=[":","[",".","#"];function ae(e){var t,n,r,o,s=void 0===e?w:e,i=s.options,a=void 0===i?w:i,c=s.plugins,u=void 0===c?S:c,l=new stylis_min(a),d=[],p=function(e){function t(t){if(t)try{e(t+"}");}catch(e){}}return function(n,r,o,s,i,a,c,u,l,d){switch(n){case 1:if(0===l&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===u)return r+"/*|*/";break;case 3:switch(u){case 102:case 112:return e(o[0]+r),"";default:return r+(0===d?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t);}}}((function(e){d.push(e);})),f=function(e,r,s){return 0===r&&-1!==ie.indexOf(s[n.length])||s.match(o)?e:"."+t};function m(e,s,i,a){void 0===a&&(a="&");var c=e.replace(se,""),u=s&&i?i+" "+s+" { "+c+" }":c;return t=a,n=s,r=new RegExp("\\"+n+"\\b","g"),o=new RegExp("(\\"+n+"\\b){2,}"),l(i||!s?"":s,u)}return l.use([].concat(u,[function(e,t,o){2===e&&o.length&&o[0].lastIndexOf(n)>0&&(o[0]=o[0].replace(r,f));},p,function(e){if(-2===e){var t=d;return d=[],t}}])),m.hash=u.length?u.reduce((function(e,t){return t.name||D(15),ee(e,t.name)}),5381).toString():"",m}var ce=r__default.createContext();ce.Consumer;var le=r__default.createContext(),de=(le.Consumer,new X),he=ae();function pe(){return useContext(ce)||de}function fe(){return useContext(le)||he}var ye=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=he);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"));},this.toString=function(){return D(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t;}return e.prototype.getName=function(e){return void 0===e&&(e=he),this.name+e.hash},e}(),ve=/([A-Z])/,ge=/([A-Z])/g,Se=/^ms-/,we=function(e){return "-"+e.toLowerCase()};function Ee(e){return ve.test(e)?e.replace(ge,we).replace(Se,"-ms-"):e}var be=function(e){return null==e||!1===e||""===e};function _e(e,n,r,o){if(Array.isArray(e)){for(var s,i=[],a=0,c=e.length;a<c;a+=1)""!==(s=_e(e[a],n,r,o))&&(Array.isArray(s)?i.push.apply(i,s):i.push(s));return i}if(be(e))return "";if(_(e))return "."+e.styledComponentId;if(E(e)){if("function"!=typeof(l=e)||l.prototype&&l.prototype.isReactComponent||!n)return e;var u=e(n);return "production"!==process.env.NODE_ENV&&reactIs$1.exports.isElement(u)&&console.warn(b(e)+" 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."),_e(u,n,r,o)}var l;return e instanceof ye?r?(e.inject(r,o),e.getName(o)):e:g(e)?function e(t,n){var r,o,s=[];for(var i in t)t.hasOwnProperty(i)&&!be(t[i])&&(Array.isArray(t[i])&&t[i].isCss||E(t[i])?s.push(Ee(i)+":",t[i],";"):g(t[i])?s.push.apply(s,e(t[i],i)):s.push(Ee(i)+": "+(r=i,null==(o=t[i])||"boolean"==typeof o||""===o?"":"number"!=typeof o||0===o||r in unitlessKeys?String(o).trim():o+"px")+";"));return n?[n+" {"].concat(s,["}"]):s}(e):e.toString()}var Ne=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function Ae(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return E(e)||g(e)?Ne(_e(v(S,[e].concat(n)))):0===n.length&&1===e.length&&"string"==typeof e[0]?e:Ne(_e(v(e,n)))}var Ce=/invalid hook call/i,Ie=new Set,Pe=function(e,t){if("production"!==process.env.NODE_ENV){var n="The component "+e+(t?' with the id of "'+t+'"':"")+" has been created dynamically.\nYou may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.",r=console.error;try{var o=!0;console.error=function(e){if(Ce.test(e))o=!1,Ie.delete(n);else {for(var t=arguments.length,s=new Array(t>1?t-1:0),i=1;i<t;i++)s[i-1]=arguments[i];r.apply(void 0,[e].concat(s));}},useRef(),o&&!Ie.has(n)&&(console.warn(n),Ie.add(n));}catch(e){Ce.test(e.message)&&Ie.delete(n);}finally{console.error=r;}}},Oe=function(e,t,n){return void 0===n&&(n=w),e.theme!==n.theme&&e.theme||t||n.theme},Re=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,De=/(^-|-$)/g;function je(e){return e.replace(Re,"-").replace(De,"")}var Te=function(e){return Q(te(e)>>>0)};function xe(e){return "string"==typeof e&&("production"===process.env.NODE_ENV||e.charAt(0)===e.charAt(0).toLowerCase())}var ke=function(e){return "function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},Ve=function(e){return "__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function ze(e,t,n){var r=e[n];ke(t)&&ke(r)?Be(r,t):e[n]=t;}function Be(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var o=0,s=n;o<s.length;o++){var i=s[o];if(ke(i))for(var a in i)Ve(a)&&ze(e,i[a],a);}return e}var Me=r__default.createContext();Me.Consumer;var Fe={};function Ye(e,t,n){var o=_(e),i=!xe(e),a=t.attrs,c=void 0===a?S:a,d=t.componentId,h=void 0===d?function(e,t){var n="string"!=typeof e?"sc":je(e);Fe[n]=(Fe[n]||0)+1;var r=n+"-"+Te("5.3.6"+n+Fe[n]);return t?t+"-"+r:r}(t.displayName,t.parentComponentId):d,p=t.displayName,v=void 0===p?function(e){return xe(e)?"styled."+e:"Styled("+b(e)+")"}(e):p,g=t.displayName&&t.componentId?je(t.displayName)+"-"+t.componentId:t.componentId||h,N=o&&e.attrs?Array.prototype.concat(e.attrs,c).filter(Boolean):c,A=t.shouldForwardProp;o&&e.shouldForwardProp&&(A=t.shouldForwardProp?function(n,r,o){return e.shouldForwardProp(n,r,o)&&t.shouldForwardProp(n,r,o)}:e.shouldForwardProp);var C,I=new oe(n,g,o?e.componentStyle:void 0),P=I.isStatic&&0===c.length,O=function(e,t){return function(e,t,n,r){var o=e.attrs,i=e.componentStyle,a=e.defaultProps,c=e.foldedComponentIds,d=e.shouldForwardProp,h=e.styledComponentId,p=e.target;"production"!==process.env.NODE_ENV&&useDebugValue(h);var m=function(e,t,n){void 0===e&&(e=w);var r=y({},t,{theme:e}),o={};return n.forEach((function(e){var t,n,s,i=e;for(t in E(i)&&(i=i(r)),i)r[t]=o[t]="className"===t?(n=o[t],s=i[t],n&&s?n+" "+s:n||s):i[t];})),[r,o]}(Oe(t,useContext(Me),a)||w,t,o),v=m[0],g=m[1],S=function(e,t,n,r){var o=pe(),s=fe(),i=t?e.generateAndInjectStyles(w,o,s):e.generateAndInjectStyles(n,o,s);return "production"!==process.env.NODE_ENV&&useDebugValue(i),"production"!==process.env.NODE_ENV&&!t&&r&&r(i),i}(i,r,v,"production"!==process.env.NODE_ENV?e.warnTooManyClasses:void 0),b=n,_=g.$as||t.$as||g.as||t.as||p,N=xe(_),A=g!==t?y({},t,{},g):t,C={};for(var I in A)"$"!==I[0]&&"as"!==I&&("forwardedAs"===I?C.as=A[I]:(d?d(I,isPropValid,_):!N||isPropValid(I))&&(C[I]=A[I]));return t.style&&g.style!==t.style&&(C.style=y({},t.style,{},g.style)),C.className=Array.prototype.concat(c,h,S!==h?S:null,t.className,g.className).filter(Boolean).join(" "),C.ref=b,createElement(_,C)}(C,e,t,P)};return O.displayName=v,(C=r__default.forwardRef(O)).attrs=N,C.componentStyle=I,C.displayName=v,C.shouldForwardProp=A,C.foldedComponentIds=o?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):S,C.styledComponentId=g,C.target=o?e.target:e,C.withComponent=function(e){var r=t.componentId,o=function(e,t){if(null==e)return {};var n,r,o={},s=Object.keys(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(t,["componentId"]),s=r&&r+"-"+(xe(e)?e:je(b(e)));return Ye(e,y({},o,{attrs:N,componentId:s}),n)},Object.defineProperty(C,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=o?Be({},e.defaultProps,t):t;}}),"production"!==process.env.NODE_ENV&&(Pe(v,g),C.warnTooManyClasses=function(e,t){var n={},r=!1;return function(o){if(!r&&(n[o]=!0,Object.keys(n).length>=200)){var s=t?' with the id of "'+t+'"':"";console.warn("Over 200 classes were generated for component "+e+s+".\nConsider using the attrs method, together with a style object for frequently changed styles.\nExample:\n const Component = styled.div.attrs(props => ({\n style: {\n background: props.background,\n },\n }))`width: 100%;`\n\n <Component />"),r=!0,n={};}}}(v,g)),C.toString=function(){return "."+C.styledComponentId},i&&hoistNonReactStatics_cjs(C,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),C}var qe=function(e){return function e(t,r,o){if(void 0===o&&(o=w),!reactIs$1.exports.isValidElementType(r))return D(1,String(r));var s=function(){return t(r,o,Ae.apply(void 0,arguments))};return s.withConfig=function(n){return e(t,r,y({},o,{},n))},s.attrs=function(n){return e(t,r,y({},o,{attrs:Array.prototype.concat(o.attrs,n).filter(Boolean)}))},s}(Ye,e)};["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","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(e){qe[e]=qe(e);}));function We(e){"production"!==process.env.NODE_ENV&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product&&console.warn("`keyframes` cannot be used on ReactNative, only on the web. To do animation in ReactNative please use Animated.");for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=Ae.apply(void 0,[e].concat(n)).join(""),s=Te(o);return new ye(s,o)}"production"!==process.env.NODE_ENV&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product&&console.warn("It looks like you've imported 'styled-components' on React Native.\nPerhaps you're looking to import 'styled-components/native'?\nRead more about this at https://www.styled-components.com/docs/basics#react-native"),"production"!==process.env.NODE_ENV&&"test"!==process.env.NODE_ENV&&"undefined"!=typeof window&&(window["__styled-components-init__"]=window["__styled-components-init__"]||0,1===window["__styled-components-init__"]&&console.warn("It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.\n\nSee https://s-c.sh/2BAXzed for more info."),window["__styled-components-init__"]+=1);var styled = qe;
|
|
4083
|
-
|
|
4084
|
-
var StyledButton = styled.button(templateObject_1$N || (templateObject_1$N = __makeTemplateObject$1(["\n width: ", ";\n height: ", ";\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n padding: 13px 20px 16px;\n background-color: ", ";\n box-shadow: ", ";\n\n border: ", ";\n border-radius: 6px;\n box-sizing: border-box;\n text-decoration: none;\n cursor: pointer;\n\n span {\n color: ", ";\n font-family: ", ";\n font-style: normal;\n font-weight: bold;\n font-size: ", ";\n }\n\n :hover {\n opacity: 0.85;\n }\n\n :active {\n box-shadow: none;\n margin-top: ", ";\n height: ", ";\n }\n"], ["\n width: ", ";\n height: ", ";\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n padding: 13px 20px 16px;\n background-color: ", ";\n box-shadow: ", ";\n\n border: ", ";\n border-radius: 6px;\n box-sizing: border-box;\n text-decoration: none;\n cursor: pointer;\n\n span {\n color: ", ";\n font-family: ", ";\n font-style: normal;\n font-weight: bold;\n font-size: ", ";\n }\n\n :hover {\n opacity: 0.85;\n }\n\n :active {\n box-shadow: none;\n margin-top: ", ";\n height: ", ";\n }\n"])), function (_a) {
|
|
3408
|
+
var StyledButton = styled.button(templateObject_1$O || (templateObject_1$O = __makeTemplateObject$1(["\n width: ", ";\n height: ", ";\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n padding: 13px 20px 16px;\n background-color: ", ";\n box-shadow: ", ";\n\n border: ", ";\n border-radius: 6px;\n box-sizing: border-box;\n text-decoration: none;\n cursor: pointer;\n\n span {\n color: ", ";\n font-family: ", ";\n font-style: normal;\n font-weight: bold;\n font-size: ", ";\n }\n\n :hover {\n opacity: 0.85;\n }\n\n :active {\n box-shadow: none;\n margin-top: ", ";\n height: ", ";\n }\n"], ["\n width: ", ";\n height: ", ";\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n padding: 13px 20px 16px;\n background-color: ", ";\n box-shadow: ", ";\n\n border: ", ";\n border-radius: 6px;\n box-sizing: border-box;\n text-decoration: none;\n cursor: pointer;\n\n span {\n color: ", ";\n font-family: ", ";\n font-style: normal;\n font-weight: bold;\n font-size: ", ";\n }\n\n :hover {\n opacity: 0.85;\n }\n\n :active {\n box-shadow: none;\n margin-top: ", ";\n height: ", ";\n }\n"])), function (_a) {
|
|
4085
3409
|
var fluid = _a.fluid;
|
|
4086
3410
|
return (fluid ? "100%" : "fit-content");
|
|
4087
3411
|
}, function (_a) {
|
|
@@ -4131,11 +3455,11 @@ var StyledButton = styled.button(templateObject_1$N || (templateObject_1$N = __m
|
|
|
4131
3455
|
? theme.button.medium.heightActive
|
|
4132
3456
|
: theme.button[size].heightActive;
|
|
4133
3457
|
});
|
|
4134
|
-
var DisabledButton = styled(StyledButton)(templateObject_2$
|
|
3458
|
+
var DisabledButton = styled(StyledButton)(templateObject_2$u || (templateObject_2$u = __makeTemplateObject$1(["\n background-color: ", ";\n border: 2px solid ", ";\n box-shadow: none;\n padding: 16px 20px;\n cursor: not-allowed;\n\n span {\n color: ", ";\n }\n\n :active {\n margin-top: 0;\n height: ", ";\n }\n"], ["\n background-color: ", ";\n border: 2px solid ", ";\n box-shadow: none;\n padding: 16px 20px;\n cursor: not-allowed;\n\n span {\n color: ", ";\n }\n\n :active {\n margin-top: 0;\n height: ", ";\n }\n"])), theme.colors.lightGray.dark, theme.colors.lightGray.darker, theme.colors.lightGray.darker, function (_a) {
|
|
4135
3459
|
var size = _a.size;
|
|
4136
3460
|
return !size ? theme.button.medium.height : theme.button[size].height;
|
|
4137
3461
|
});
|
|
4138
|
-
var GhostButton = styled(StyledButton)(templateObject_3$
|
|
3462
|
+
var GhostButton = styled(StyledButton)(templateObject_3$b || (templateObject_3$b = __makeTemplateObject$1(["\n height: ", ";\n padding: 16px 18px;\n\n :active {\n box-shadow: none;\n height: ", ";\n margin-top: ", ";\n margin-bottom: -2.5px;\n }\n"], ["\n height: ", ";\n padding: 16px 18px;\n\n :active {\n box-shadow: none;\n height: ", ";\n margin-top: ", ";\n margin-bottom: -2.5px;\n }\n"])), function (_a) {
|
|
4139
3463
|
var size = _a.size;
|
|
4140
3464
|
return !size
|
|
4141
3465
|
? "calc(".concat(theme.button.medium.height, " - 2.5px)")
|
|
@@ -4151,14 +3475,14 @@ var GhostButton = styled(StyledButton)(templateObject_3$a || (templateObject_3$a
|
|
|
4151
3475
|
? theme.button.medium.marginTopActive
|
|
4152
3476
|
: theme.button[size].marginTopActive;
|
|
4153
3477
|
});
|
|
4154
|
-
var LoaderWrapper = styled.div(templateObject_4$
|
|
3478
|
+
var LoaderWrapper = styled.div(templateObject_4$8 || (templateObject_4$8 = __makeTemplateObject$1(["\n width: ", ";\n margin-top: ", ";\n"], ["\n width: ", ";\n margin-top: ", ";\n"])), function (_a) {
|
|
4155
3479
|
var width = _a.width;
|
|
4156
3480
|
return "".concat(width, "px");
|
|
4157
3481
|
}, function (_a) {
|
|
4158
3482
|
var size = _a.size;
|
|
4159
3483
|
return (size === "small" ? "3px" : "");
|
|
4160
3484
|
});
|
|
4161
|
-
var templateObject_1$
|
|
3485
|
+
var templateObject_1$O, templateObject_2$u, templateObject_3$b, templateObject_4$8;
|
|
4162
3486
|
|
|
4163
3487
|
var Button = forwardRef(function (_a, ref) {
|
|
4164
3488
|
var label = _a.label, color = _a.color, size = _a.size, fluid = _a.fluid, disabled = _a.disabled, type = _a.type, tabIndex = _a.tabIndex, href = _a.href, asAnchor = _a.asAnchor, props = __rest(_a, ["label", "color", "size", "fluid", "disabled", "type", "tabIndex", "href", "asAnchor"]);
|
|
@@ -4194,7 +3518,7 @@ var Button = forwardRef(function (_a, ref) {
|
|
|
4194
3518
|
return (jsx$1(StyledButton, __assign$2({ color: color, size: size, fluid: fluid, type: type, tabIndex: tabIndex, as: as, href: href, ref: ref ? ref : buttonRef, onClick: onClick }, { children: isLoading ? jsx$1(Loader, {}) : jsx$1("span", { children: label }) })));
|
|
4195
3519
|
});
|
|
4196
3520
|
|
|
4197
|
-
var StyledCheckbox = styled.div(templateObject_1$
|
|
3521
|
+
var StyledCheckbox = styled.div(templateObject_1$N || (templateObject_1$N = __makeTemplateObject$1(["\n min-height: 25px;\n max-height: 25px;\n min-width: 25px;\n max-width: 25px;\n display: flex;\n align-items: center;\n justify-content: center;\n border-radius: 4px;\n border-width: 1px;\n border-style: solid;\n border-color: ", ";\n cursor: ", ";\n background-color: ", ";\n\n svg {\n margin-left: -1px;\n fill: ", ";\n }\n\n input {\n display: none;\n }\n\n :focus {\n outline: 0;\n border-color: ", ";\n box-shadow: ", ";\n }\n"], ["\n min-height: 25px;\n max-height: 25px;\n min-width: 25px;\n max-width: 25px;\n display: flex;\n align-items: center;\n justify-content: center;\n border-radius: 4px;\n border-width: 1px;\n border-style: solid;\n border-color: ", ";\n cursor: ", ";\n background-color: ", ";\n\n svg {\n margin-left: -1px;\n fill: ", ";\n }\n\n input {\n display: none;\n }\n\n :focus {\n outline: 0;\n border-color: ", ";\n box-shadow: ", ";\n }\n"])), function (_a) {
|
|
4198
3522
|
var checked = _a.checked, disabled = _a.disabled;
|
|
4199
3523
|
if (disabled)
|
|
4200
3524
|
return theme.colors.lightGray.darker;
|
|
@@ -4215,7 +3539,7 @@ var StyledCheckbox = styled.div(templateObject_1$M || (templateObject_1$M = __ma
|
|
|
4215
3539
|
return theme.colors.green.base;
|
|
4216
3540
|
return theme.colors.lightGray.darker;
|
|
4217
3541
|
}, theme.colors.blue.dark, "0 0 0 1px ".concat(theme.colors.blue.dark));
|
|
4218
|
-
var templateObject_1$
|
|
3542
|
+
var templateObject_1$N;
|
|
4219
3543
|
|
|
4220
3544
|
var Checkbox = function (props) {
|
|
4221
3545
|
var _a;
|
|
@@ -4248,7 +3572,7 @@ var Checkbox = function (props) {
|
|
|
4248
3572
|
return (jsxs(StyledCheckbox, __assign$2({ checked: checked, disabled: props.disabled, tabIndex: 0, onClick: toggle, onBlur: props.onBlur, onKeyPress: function (e) { return (e.key === "Enter" ? toggle() : null); }, ref: wrapperRef }, { children: [checked && (jsx$1("svg", __assign$2({ width: 16, height: 12, viewBox: "0 0 16 12", fill: "none" }, { children: jsx$1("path", { d: "M12.61.563l-6.585 6.6L3.439 4.57a1.997 1.997 0 00-3.374.885c-.183.7.026 1.446.546 1.949l4 4.008a1.997 1.997 0 002.828 0l8-8.017a2.007 2.007 0 00-.025-2.809 1.997 1.997 0 00-2.803-.024z" }) }))), jsx$1("input", { type: "checkbox", disabled: !!props.disabled, id: props.id, name: props.name, value: props.value, ref: inputRef })] })));
|
|
4249
3573
|
};
|
|
4250
3574
|
|
|
4251
|
-
var Wrapper$9 = styled.div(templateObject_1$
|
|
3575
|
+
var Wrapper$9 = styled.div(templateObject_1$M || (templateObject_1$M = __makeTemplateObject$1(["\n width: ", ";\n height: ", ";\n"], ["\n width: ", ";\n height: ", ";\n"])), function (_a) {
|
|
4252
3576
|
var size = _a.size;
|
|
4253
3577
|
switch (size) {
|
|
4254
3578
|
case "small":
|
|
@@ -4271,7 +3595,7 @@ var Wrapper$9 = styled.div(templateObject_1$L || (templateObject_1$L = __makeTem
|
|
|
4271
3595
|
return "27px";
|
|
4272
3596
|
}
|
|
4273
3597
|
});
|
|
4274
|
-
var templateObject_1$
|
|
3598
|
+
var templateObject_1$M;
|
|
4275
3599
|
|
|
4276
3600
|
var parsers = {};
|
|
4277
3601
|
|
|
@@ -4381,16 +3705,16 @@ var Locale;
|
|
|
4381
3705
|
})(Locale || (Locale = {}));
|
|
4382
3706
|
Locale$1.default = Locale;
|
|
4383
3707
|
|
|
4384
|
-
var Medal$
|
|
3708
|
+
var Medal$3 = {};
|
|
4385
3709
|
|
|
4386
|
-
Object.defineProperty(Medal$
|
|
4387
|
-
var Medal$
|
|
3710
|
+
Object.defineProperty(Medal$3, "__esModule", { value: true });
|
|
3711
|
+
var Medal$2;
|
|
4388
3712
|
(function (Medal) {
|
|
4389
3713
|
Medal["GOLD"] = "gold";
|
|
4390
3714
|
Medal["SILVER"] = "silver";
|
|
4391
3715
|
Medal["BRONZE"] = "bronze";
|
|
4392
|
-
})(Medal$
|
|
4393
|
-
Medal$
|
|
3716
|
+
})(Medal$2 || (Medal$2 = {}));
|
|
3717
|
+
Medal$3.default = Medal$2;
|
|
4394
3718
|
|
|
4395
3719
|
var PaymentStatus$1 = {};
|
|
4396
3720
|
|
|
@@ -4464,7 +3788,7 @@ var __importDefault$2 = (commonjsGlobal && commonjsGlobal.__importDefault) || fu
|
|
|
4464
3788
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4465
3789
|
};
|
|
4466
3790
|
Object.defineProperty(enums, "__esModule", { value: true });
|
|
4467
|
-
enums.TextTopic = enums.Role = enums.RankingType = enums.Plan = enums.PaymentType = enums.PaymentStatus = enums.Medal = enums.Locale = enums.KeyboardLayout = enums.ExerciseType = enums.Currency = enums.CourseTranslation = enums.Color = enums.ChartDataType = enums.AchievementType = void 0;
|
|
3791
|
+
enums.TextTopic = enums.Role = enums.RankingType = enums.Plan = enums.PaymentType = enums.PaymentStatus = Medal$1 = enums.Medal = enums.Locale = enums.KeyboardLayout = enums.ExerciseType = enums.Currency = enums.CourseTranslation = enums.Color = enums.ChartDataType = enums.AchievementType = void 0;
|
|
4468
3792
|
var AchievementType_1 = __importDefault$2(AchievementType$1);
|
|
4469
3793
|
enums.AchievementType = AchievementType_1.default;
|
|
4470
3794
|
var ChartDataType_1 = __importDefault$2(ChartDataType$1);
|
|
@@ -4481,8 +3805,8 @@ var KeyboardLayout_1 = __importDefault$2(KeyboardLayout$1);
|
|
|
4481
3805
|
enums.KeyboardLayout = KeyboardLayout_1.default;
|
|
4482
3806
|
var Locale_1 = __importDefault$2(Locale$1);
|
|
4483
3807
|
enums.Locale = Locale_1.default;
|
|
4484
|
-
var Medal_1 = __importDefault$2(Medal$
|
|
4485
|
-
enums.Medal = Medal_1.default;
|
|
3808
|
+
var Medal_1 = __importDefault$2(Medal$3);
|
|
3809
|
+
var Medal$1 = enums.Medal = Medal_1.default;
|
|
4486
3810
|
var PaymentStatus_1 = __importDefault$2(PaymentStatus$1);
|
|
4487
3811
|
enums.PaymentStatus = PaymentStatus_1.default;
|
|
4488
3812
|
var PaymentType_1 = __importDefault$2(PaymentType$1);
|
|
@@ -4539,7 +3863,7 @@ var flags = {
|
|
|
4539
3863
|
};
|
|
4540
3864
|
var Flag = function (props) { return (jsx$1(Wrapper$9, __assign$2({}, props, { children: flags[getCountryCodeByLocale_1(props.locale)] }))); };
|
|
4541
3865
|
|
|
4542
|
-
var StyledHeading = styled.span(templateObject_1$
|
|
3866
|
+
var StyledHeading = styled.span(templateObject_1$L || (templateObject_1$L = __makeTemplateObject$1(["\n font-family: ", ";\n font-size: ", ";\n font-weight: 700;\n font-style: normal;\n line-height: ", ";\n letter-spacing: ", ";\n margin: 0;\n color: ", ";\n text-align: ", ";\n"], ["\n font-family: ", ";\n font-size: ", ";\n font-weight: 700;\n font-style: normal;\n line-height: ", ";\n letter-spacing: ", ";\n margin: 0;\n color: ", ";\n text-align: ", ";\n"])), theme.fonts.heading, function (_a) {
|
|
4543
3867
|
var type = _a.type;
|
|
4544
3868
|
return theme.heading[type].fontSize;
|
|
4545
3869
|
}, function (_a) {
|
|
@@ -4563,14 +3887,14 @@ var StyledHeading = styled.span(templateObject_1$K || (templateObject_1$K = __ma
|
|
|
4563
3887
|
var align = _a.align;
|
|
4564
3888
|
return align;
|
|
4565
3889
|
});
|
|
4566
|
-
var templateObject_1$
|
|
3890
|
+
var templateObject_1$L;
|
|
4567
3891
|
|
|
4568
3892
|
var Heading = function (props) {
|
|
4569
3893
|
var element = !!props.as ? props.as : props.type;
|
|
4570
3894
|
return (jsx$1(StyledHeading, __assign$2({}, props, { as: element }, { children: props.children })));
|
|
4571
3895
|
};
|
|
4572
3896
|
|
|
4573
|
-
var Wrapper$8 = styled.div(templateObject_1$
|
|
3897
|
+
var Wrapper$8 = styled.div(templateObject_1$K || (templateObject_1$K = __makeTemplateObject$1(["\n width: ", ";\n height: ", ";\n\n > svg {\n fill: ", ";\n }\n"], ["\n width: ", ";\n height: ", ";\n\n > svg {\n fill: ", ";\n }\n"])), function (_a) {
|
|
4574
3898
|
var size = _a.size;
|
|
4575
3899
|
return theme.icon[size] || theme.icon.medium;
|
|
4576
3900
|
}, function (_a) {
|
|
@@ -4600,7 +3924,7 @@ var Wrapper$8 = styled.div(templateObject_1$J || (templateObject_1$J = __makeTem
|
|
|
4600
3924
|
return theme.colors.lightGray.light;
|
|
4601
3925
|
}
|
|
4602
3926
|
});
|
|
4603
|
-
var templateObject_1$
|
|
3927
|
+
var templateObject_1$K;
|
|
4604
3928
|
|
|
4605
3929
|
var icons = {
|
|
4606
3930
|
check: (jsx$1("path", { d: "M16.6107 6.5626L10.0247 13.1623L7.43866 10.5709C6.9365 10.0499 6.19289 9.841 5.49363 10.0244C4.79436 10.2078 4.24826 10.7551 4.06523 11.4558C3.8822 12.1565 4.09071 12.9017 4.61063 13.4049L8.61067 17.4132C9.39168 18.1956 10.6577 18.1956 11.4387 17.4132L19.4388 9.3965C20.1967 8.6101 20.1859 7.36009 19.4144 6.58701C18.6429 5.81393 17.3955 5.80307 16.6107 6.5626Z" })),
|
|
@@ -4626,10 +3950,11 @@ var icons = {
|
|
|
4626
3950
|
facebook: (jsx$1("path", { d: "M18.75.5a2.17 2.17 0 011.594.656c.437.438.656.969.656 1.594v16.5a2.17 2.17 0 01-.656 1.594 2.17 2.17 0 01-1.594.656h-6.422v-7.125h2.719L15.562 11h-3.234V8.797c0-1.188.625-1.781 1.875-1.781h1.453v-2.86a14.647 14.647 0 00-2.578-.234c-.906 0-1.687.172-2.344.515-.625.344-1.125.86-1.5 1.547-.375.688-.562 1.5-.562 2.438V11H5.719v3.375h2.953V21.5H2.25a2.17 2.17 0 01-1.594-.656A2.17 2.17 0 010 19.25V2.75c0-.625.219-1.156.656-1.594A2.17 2.17 0 012.25.5h16.5z" })),
|
|
4627
3951
|
instagram: (jsx$1("path", { d: "M8.719 9.266c.5-.5 1.094-.75 1.781-.75.688 0 1.266.25 1.734.75.5.468.75 1.046.75 1.734s-.25 1.281-.75 1.781c-.468.469-1.046.703-1.734.703a2.516 2.516 0 01-1.781-.703A2.516 2.516 0 018.016 11c0-.688.234-1.266.703-1.734zm7.64-2.672c.188.5.282 1.968.282 4.406 0 2.438-.094 3.906-.282 4.406a2.558 2.558 0 01-1.453 1.453c-.5.188-1.969.282-4.406.282-2.438 0-3.906-.094-4.406-.282a2.558 2.558 0 01-1.453-1.453c-.188-.5-.282-1.969-.282-4.406 0-2.438.094-3.906.282-4.406A2.558 2.558 0 016.094 5.14c.5-.188 1.968-.282 4.406-.282 2.438 0 3.906.094 4.406.282a2.558 2.558 0 011.453 1.453zm-8.578 7.125a3.704 3.704 0 002.719 1.125 3.704 3.704 0 002.719-1.125A3.704 3.704 0 0014.344 11a3.704 3.704 0 00-1.125-2.719A3.704 3.704 0 0010.5 7.156a3.704 3.704 0 00-2.719 1.125A3.704 3.704 0 006.656 11c0 1.063.375 1.969 1.125 2.719zm6.047-6.094a.9.9 0 00.656.281c.25 0 .47-.078.657-.234a.9.9 0 00.28-.656.9.9 0 00-.28-.657.9.9 0 00-.657-.28.9.9 0 00-.656.28.994.994 0 00-.234.657c0 .218.078.421.234.609zM18.75.5a2.17 2.17 0 011.594.656c.437.438.656.969.656 1.594v16.5a2.17 2.17 0 01-.656 1.594 2.17 2.17 0 01-1.594.656H2.25a2.17 2.17 0 01-1.594-.656A2.17 2.17 0 010 19.25V2.75c0-.625.219-1.156.656-1.594A2.17 2.17 0 012.25.5h16.5zm-.797 13.594c.031-.625.047-1.656.047-3.094s-.016-2.469-.047-3.094c-.062-1.343-.469-2.39-1.219-3.14-.75-.75-1.797-1.157-3.14-1.22-.625-.03-1.656-.046-3.094-.046s-2.469.016-3.094.047c-1.343.062-2.39.469-3.14 1.219-.75.75-1.157 1.796-1.22 3.14C3.017 8.531 3 9.563 3 11c0 1.438.016 2.469.047 3.094.062 1.344.469 2.39 1.219 3.14.75.75 1.796 1.157 3.14 1.22.625.03 1.657.046 3.094.046 1.438 0 2.469-.016 3.094-.047 1.344-.062 2.39-.469 3.14-1.219.75-.75 1.157-1.797 1.22-3.14z" })),
|
|
4628
3952
|
menuAlt: (jsx$1("path", { d: "M1.5 3.4C.7 3.4 0 4.1 0 4.9s.7 1.5 1.5 1.5h21c.8 0 1.5-.7 1.5-1.5s-.7-1.5-1.5-1.5h-21zM0 11.9c0-.8.7-1.5 1.5-1.5h21c.8 0 1.5.7 1.5 1.5s-.7 1.5-1.5 1.5h-21c-.8 0-1.5-.7-1.5-1.5zm0 7c0-.8.7-1.5 1.5-1.5h13c.8 0 1.5.7 1.5 1.5s-.7 1.5-1.5 1.5h-13c-.8 0-1.5-.7-1.5-1.5z" })),
|
|
3953
|
+
link: (jsxs(Fragment$1, { children: [jsx$1("path", { d: "M10.1 17.9l-2.8 2.8c-.7.7-1.7 1-2.7.7-1-.3-1.7-1-2-2-.3-1 0-2 .7-2.7L9 11c.5-.5 1.2-.8 2-.8.7 0 1.5.3 2 .8.2.2.6.4.9.4.3 0 .6-.1.9-.4.2-.2.4-.5.4-.9 0-.3-.1-.6-.4-.9-1-1-2.3-1.5-3.7-1.5-1.4 0-2.7.6-3.7 1.6L1.6 15C.6 16 0 17.3 0 18.7c0 1.4.5 2.7 1.5 3.7s2.3 1.5 3.7 1.5c1.4.1 2.8-.4 3.8-1.4l2.8-2.8c.2-.2.4-.5.4-.9 0-.3-.1-.6-.4-.9-.2-.2-.5-.4-.9-.4-.3 0-.6.2-.8.4z" }), jsx$1("path", { d: "M22.5 1.5c-1-1-2.3-1.5-3.7-1.5-1.5 0-2.8.6-3.8 1.6l-2.8 2.8c-.3.3-.4.8-.3 1.2.1.4.4.7.9.8.4.1.9 0 1.2-.3l2.8-2.8c.7-.7 1.7-1 2.7-.7 1 .3 1.7 1 2 2 .3 1 0 2-.7 2.7L15 12.9c-.5.5-1.2.8-2 .8-.7 0-1.5-.3-2-.8-.3-.3-.8-.4-1.2-.3-.4.1-.8.4-.9.9-.1.4 0 .9.3 1.2 1 1 2.3 1.5 3.7 1.5 1.4 0 2.7-.6 3.7-1.6L22.4 9c1-1 1.6-2.3 1.6-3.7 0-1.4-.5-2.8-1.5-3.8z" })] })),
|
|
4629
3954
|
};
|
|
4630
3955
|
var Icon = function (props) { return (jsx$1(Wrapper$8, __assign$2({}, props, { children: jsx$1("svg", __assign$2({ viewBox: "0 0 24 24", fill: "none" }, { children: icons[props.type] })) }))); };
|
|
4631
3956
|
|
|
4632
|
-
var Wrapper$7 = styled.div(templateObject_1$
|
|
3957
|
+
var Wrapper$7 = styled.div(templateObject_1$J || (templateObject_1$J = __makeTemplateObject$1(["\n > svg {\n height: ", ";\n }\n"], ["\n > svg {\n height: ", ";\n }\n"])), function (_a) {
|
|
4633
3958
|
var size = _a.size;
|
|
4634
3959
|
switch (size) {
|
|
4635
3960
|
default:
|
|
@@ -4641,7 +3966,7 @@ var Wrapper$7 = styled.div(templateObject_1$I || (templateObject_1$I = __makeTem
|
|
|
4641
3966
|
return "118px";
|
|
4642
3967
|
}
|
|
4643
3968
|
});
|
|
4644
|
-
var templateObject_1$
|
|
3969
|
+
var templateObject_1$J;
|
|
4645
3970
|
|
|
4646
3971
|
var illustrations = {
|
|
4647
3972
|
keyboard: (jsxs("svg", __assign$2({ viewBox: "0 0 32.9 20.8" }, { children: [jsx$1("path", { d: "M31.5 1H1.4C.6 1 0 1.6 0 2.4v17.1c0 .8.6 1.4 1.4 1.4h30.1c.8 0 1.4-.6 1.4-1.4V2.4c0-.8-.6-1.4-1.4-1.4z", fill: "#829190" }), jsx$1("path", { d: "M31.5 0H1.4C.6 0 0 .6 0 1.4v17.1c0 .8.6 1.4 1.4 1.4h30.1c.8 0 1.4-.6 1.4-1.4V1.4c0-.8-.6-1.4-1.4-1.4z", fill: "#99adac" }), jsx$1("path", { d: "M27.1 14.2H5.7c-.3 0-.5.2-.5.5v3.4c0 .3.2.5.5.5h21.4c.3 0 .5-.2.5-.5v-3.4c-.1-.3-.3-.5-.5-.5zM8.4 8.6H2.1c-.3 0-.5.2-.5.4v3.4c0 .3.2.5.5.5h6.3c.3 0 .5-.2.5-.5V9c0-.2-.2-.4-.5-.4zM13.8 8.6h-3.3c-.3 0-.5.2-.5.4v3.4c0 .3.2.5.5.5h3.3c.3 0 .5-.2.5-.5V9c-.1-.2-.3-.4-.5-.4zM5.4 3.3H2.1c-.3 0-.5.2-.5.5v3.4c0 .3.2.5.5.5h3.3c.3 0 .5-.2.5-.5V3.8c-.1-.3-.3-.5-.5-.5zM10.5 3.3H7.2c-.3 0-.5.2-.5.5v3.4c0 .3.2.5.5.5h3.3c.3 0 .5-.2.5-.5V3.8c-.1-.3-.3-.5-.5-.5zM15.5 3.3h-3.3c-.3 0-.5.2-.5.5v3.4c0 .3.2.5.5.5h3.3c.3 0 .5-.2.5-.5V3.8c0-.3-.2-.5-.5-.5zM20.6 3.3h-3.3c-.3 0-.5.2-.5.5v3.4c0 .3.2.5.5.5h3.3c.3 0 .5-.2.5-.5V3.8c0-.3-.2-.5-.5-.5zM25.7 3.3h-3.3c-.3 0-.5.2-.5.5v3.4c0 .3.2.5.5.5h3.3c.3 0 .5-.2.5-.5V3.8c0-.3-.2-.5-.5-.5zM30.8 3.3h-3.3c-.3 0-.5.2-.5.5v3.4c0 .3.2.5.5.5h3.3c.3 0 .5-.2.5-.5V3.8c0-.3-.2-.5-.5-.5zM18.9 8.6h-3.3c-.3 0-.5.2-.5.5v3.4c0 .3.2.5.5.5h3.3c.3 0 .5-.2.5-.5V9c-.1-.2-.3-.4-.5-.4zM23.9 8.6h-3.3c-.3 0-.5.2-.5.5v3.4c0 .3.2.5.5.5h3.3c.3 0 .5-.2.5-.5V9.1c0-.3-.2-.5-.5-.5zM30.7 8.6h-4.9c-.3 0-.5.2-.5.5v3.4c0 .3.2.5.5.5h4.9c.3 0 .5-.2.5-.5V9.1c0-.3-.2-.5-.5-.5z", fill: "#899a99" }), jsx$1("path", { d: "M27.1 13.7H5.7c-.3 0-.5.2-.5.5v3.4c0 .3.2.5.5.5h21.4c.3 0 .5-.2.5-.5v-3.4c-.1-.3-.3-.5-.5-.5zM8.4 8.1H2.1c-.3 0-.5.2-.5.5V12c0 .3.2.5.5.5h6.3c.3 0 .5-.2.5-.5V8.6c0-.3-.2-.5-.5-.5zM13.8 8.1h-3.3c-.3 0-.5.2-.5.5V12c0 .3.2.5.5.5h3.3c.3 0 .5-.2.5-.5V8.6c-.1-.3-.3-.5-.5-.5z", fill: "#eeeded" }), jsx$1("path", { d: "M5.4 2.8H2.1c-.3 0-.5.2-.5.5v3.4c0 .3.2.5.5.5h3.3c.3 0 .5-.2.5-.5V3.3c-.1-.3-.3-.5-.5-.5z", fill: "#e62944" }), jsx$1("path", { d: "M10.5 2.8H7.2c-.3 0-.5.2-.5.5v3.4c0 .3.2.5.5.5h3.3c.3 0 .5-.2.5-.5V3.3c-.1-.3-.3-.5-.5-.5zM15.5 2.8h-3.3c-.3 0-.5.2-.5.5v3.4c0 .3.2.5.5.5h3.3c.3 0 .5-.2.5-.5V3.3c0-.3-.2-.5-.5-.5zM20.6 2.8h-3.3c-.3 0-.5.2-.5.5v3.4c0 .3.2.5.5.5h3.3c.3 0 .5-.2.5-.5V3.3c0-.3-.2-.5-.5-.5zM25.7 2.8h-3.3c-.2 0-.4.2-.4.5v3.4c0 .3.2.5.5.5h3.3c.3 0 .5-.2.5-.5V3.3c-.1-.3-.3-.5-.6-.5zM30.8 2.8h-3.3c-.3 0-.5.2-.5.5v3.4c0 .3.2.5.5.5h3.3c.3 0 .5-.2.5-.5V3.3c0-.3-.2-.5-.5-.5zM18.9 8.1h-3.3c-.3 0-.5.2-.5.5V12c0 .3.2.5.5.5h3.3c.3 0 .5-.2.5-.5V8.6c-.1-.3-.3-.5-.5-.5zM23.9 8.1h-3.3c-.3 0-.5.2-.5.5V12c0 .3.2.5.5.5h3.3c.3 0 .5-.2.5-.5V8.6c0-.3-.2-.5-.5-.5zM30.7 8.1h-4.9c-.3 0-.5.2-.5.5V12c0 .3.2.5.5.5h4.9c.3 0 .5-.2.5-.5V8.6c0-.3-.2-.5-.5-.5z", fill: "#eeeded" })] }))),
|
|
@@ -4657,14 +3982,14 @@ var illustrations = {
|
|
|
4657
3982
|
};
|
|
4658
3983
|
var Illustration = function (props) { return (jsx$1(Wrapper$7, __assign$2({}, props, { children: illustrations[props.type] }))); };
|
|
4659
3984
|
|
|
4660
|
-
var InputIconWrapper = styled.div(templateObject_1$
|
|
3985
|
+
var InputIconWrapper = styled.div(templateObject_1$I || (templateObject_1$I = __makeTemplateObject$1(["\n position: relative;\n width: 100%;\n\n input {\n padding-right: 43px;\n }\n\n input[type=\"date\"] {\n color: ", ";\n }\n\n div {\n position: absolute;\n height: 24px;\n right: 12px;\n top: 14px;\n }\n\n svg {\n cursor: ", ";\n }\n"], ["\n position: relative;\n width: 100%;\n\n input {\n padding-right: 43px;\n }\n\n input[type=\"date\"] {\n color: ", ";\n }\n\n div {\n position: absolute;\n height: 24px;\n right: 12px;\n top: 14px;\n }\n\n svg {\n cursor: ", ";\n }\n"])), function (_a) {
|
|
4661
3986
|
var isChanged = _a.isChanged;
|
|
4662
3987
|
return !isChanged ? theme.colors.lightGray.darker : "";
|
|
4663
3988
|
}, function (_a) {
|
|
4664
3989
|
var disabled = _a.disabled;
|
|
4665
3990
|
return (disabled ? "not-allowed" : "pointer");
|
|
4666
3991
|
});
|
|
4667
|
-
var StyledInput = styled.input(templateObject_2$
|
|
3992
|
+
var StyledInput = styled.input(templateObject_2$t || (templateObject_2$t = __makeTemplateObject$1(["\n width: 100%;\n min-width: 228px;\n height: 50px;\n background-color: ", ";\n border-width: 1px;\n border-style: solid;\n border-color: ", ";\n box-sizing: border-box;\n border-radius: 4px;\n padding: 13px 15px;\n cursor: ", ";\n font-family: ", ";\n font-size: ", ";\n font-weight: 500;\n font-style: normal;\n line-height: ", ";\n color: ", ";\n\n ::placeholder {\n font-family: ", ";\n font-size: ", ";\n font-weight: 500;\n font-style: normal;\n line-height: ", ";\n color: ", ";\n }\n\n ::-webkit-calendar-picker-indicator {\n display: none;\n }\n\n :focus {\n outline: 0;\n border-color: ", ";\n box-shadow: ", ";\n }\n"], ["\n width: 100%;\n min-width: 228px;\n height: 50px;\n background-color: ", ";\n border-width: 1px;\n border-style: solid;\n border-color: ", ";\n box-sizing: border-box;\n border-radius: 4px;\n padding: 13px 15px;\n cursor: ", ";\n font-family: ", ";\n font-size: ", ";\n font-weight: 500;\n font-style: normal;\n line-height: ", ";\n color: ", ";\n\n ::placeholder {\n font-family: ", ";\n font-size: ", ";\n font-weight: 500;\n font-style: normal;\n line-height: ", ";\n color: ", ";\n }\n\n ::-webkit-calendar-picker-indicator {\n display: none;\n }\n\n :focus {\n outline: 0;\n border-color: ", ";\n box-shadow: ", ";\n }\n"])), function (_a) {
|
|
4668
3993
|
var disabled = _a.disabled;
|
|
4669
3994
|
return disabled ? theme.colors.lightGray.dark : theme.colors.lightGray.light;
|
|
4670
3995
|
}, function (_a) {
|
|
@@ -4677,7 +4002,7 @@ var StyledInput = styled.input(templateObject_2$s || (templateObject_2$s = __mak
|
|
|
4677
4002
|
var disabled = _a.disabled;
|
|
4678
4003
|
return disabled ? theme.colors.darkGray.light : theme.colors.darkGray.base;
|
|
4679
4004
|
}, theme.fonts.paragraph, theme.paragraph.medium.fontSize, theme.paragraph.medium.lineHeight, theme.colors.lightGray.darker, theme.colors.blue.dark, "0 0 0 1px ".concat(theme.colors.blue.dark));
|
|
4680
|
-
var templateObject_1$
|
|
4005
|
+
var templateObject_1$I, templateObject_2$t;
|
|
4681
4006
|
|
|
4682
4007
|
var PasswordInput = function (props) {
|
|
4683
4008
|
var _a = useState(false), isVisible = _a[0], setIsVisible = _a[1];
|
|
@@ -4857,7 +4182,7 @@ Input.Date = DateInput;
|
|
|
4857
4182
|
|
|
4858
4183
|
var Logo = function (props) { return (jsxs("svg", __assign$2({ width: 396, height: 66, viewBox: "0 0 662.8 118.1", fill: "none", xmlSpace: "preserve" }, props, { children: [jsxs("g", { children: [jsx$1("path", { d: "M61.6 23.5c-.4-.5-.9-1.1-1.3-1.5l-4.9-4.8L42 4c-1.3-1.3-2.8-2.3-4.5-3-1.7-.7-3.5-1-5.3-1-1.8 0-3.6.4-5.3 1-1.7.7-3.2 1.7-4.5 3L4.1 22C1.5 24.6 0 28 0 31.7c0 3.6 1.5 7.1 4.1 9.7l18.3 18c2.6 2.6 6.2 4 9.8 4 3.7 0 7.2-1.4 9.8-4l13.4-13.2-4.9-4.8c-.5-.5-.9-1-1.3-1.5L35.7 53.1c-.5.5-1 .8-1.6 1.1-.6.2-1.3.4-1.9.4-.7 0-1.3-.1-1.9-.4-.6-.2-1.2-.6-1.6-1.1l-18.3-18c-.9-.9-1.5-2.2-1.5-3.5 0-1.3.5-2.5 1.5-3.5l18.3-18c.5-.5 1-.8 1.6-1.1.6-.2 1.3-.4 1.9-.4.7 0 1.3.1 1.9.4.6.2 1.2.6 1.6 1.1l13.5 13.3 4.8 4.7c.5.4.8 1 1.1 1.6.2.6.4 1.2.4 1.9v.1c0 1.3.5 2.5 1.5 3.4l4.8 4.7c1.8-2.4 2.7-5.2 2.7-8.1-.1-3-1.1-5.8-2.9-8.2z", fill: "#e62743" }), jsx$1("path", { d: "M153.3 22L135 4c-1.3-1.3-2.8-2.3-4.5-3-1.7-.7-3.5-1-5.3-1-1.8 0-3.6.4-5.3 1-1.7.7-3.2 1.7-4.5 3L102 17.2 97.1 22c-.5.5-.9 1-1.3 1.5-1.8 2.4-2.8 5.2-2.8 8.2 0 2.9 1 5.8 2.7 8.1l4.8-4.7c.9-.9 1.4-2.1 1.5-3.4 0-.6.1-1.3.4-1.9.2-.6.6-1.1 1.1-1.6l4.8-4.7 13.5-13.3c.5-.5 1-.8 1.6-1.1.6-.2 1.2-.4 1.9-.4s1.3.1 1.9.4c.6.2 1.1.6 1.6 1.1l18.3 18c.5.5.8 1 1.1 1.6.3.6.4 1.2.4 1.9 0 .6-.1 1.3-.4 1.9-.3.6-.6 1.1-1.1 1.6l-18.3 18c-.5.5-1 .8-1.6 1.1-.6.2-1.2.4-1.9.4s-1.3-.1-1.9-.4c-.6-.2-1.1-.6-1.6-1.1l-13.5-13.3c-.4.5-.8 1.1-1.3 1.5l-4.9 4.8 13.4 13.2c1.3 1.3 2.8 2.3 4.5 3 1.7.7 3.5 1 5.3 1 1.8 0 3.6-.4 5.3-1 1.7-.7 3.2-1.7 4.5-3l18.3-18c1.3-1.3 2.3-2.8 3-4.5.7-1.7 1.1-3.5 1.1-5.3 0-1.8-.4-3.6-1.1-5.3-.8-1.5-1.8-3-3.1-4.3z", fill: "#53b476" }), jsx$1("path", { d: "M61.9 23.3l-.3.3c-.4-.5-.9-1.1-1.3-1.5l-4.9-4.8L68.8 4c1.3-1.3 2.8-2.3 4.5-3 1.7-.7 3.5-1 5.3-1s3.6.4 5.3 1c1.7.7 3.2 1.7 4.5 3l13.4 13.1-4.7 4.9c-.5.5-.9 1-1.3 1.5L82.2 10.2c-.5-.5-1-.8-1.6-1.1-.6-.2-1.3-.4-1.9-.4-.7 0-1.3.1-1.9.4-.6.2-1.2.6-1.6 1.1L61.9 23.3zm41.5 4.9l4.8-4.7c1.8 2.4 2.7 5.2 2.7 8.2 0 2.9-1 5.8-2.7 8.2-.4.5-.8 1.1-1.3 1.5l-4.9 4.8-13.5 13.2c-2.6 2.6-6.2 4-9.8 4s-7.2-1.4-9.8-4L55.4 46.1l-4.9-4.8c-.5-.5-.9-1-1.3-1.5-1.8-2.4-2.7-5.2-2.7-8.1 0-2.9 1-5.8 2.7-8.1l4.8 4.7c.5.4.8 1 1.1 1.6.2.6.4 1.2.4 1.9v.1c0 1.3.5 2.5 1.5 3.4l4.8 4.7 13.5 13.3c.5.5 1 .8 1.6 1.1s1.3.4 1.9.4 1.3-.1 1.9-.4 1.2-.6 1.6-1.1L95.8 40l4.8-4.7c.9-.9 1.4-2.1 1.5-3.4 0-.6.1-1.3.4-1.9 0-.8.4-1.3.9-1.8z", fillRule: "evenodd", clipRule: "evenodd", fill: "#ffd800" }), jsx$1("path", { d: "M130 76.6l-18.3-18c-2.6-2.6-6.2-4-9.8-4-3.7 0-7.2 1.4-9.8 4L78.7 71.9l-4.9 4.8c-.5.5-.9 1-1.3 1.5-1.8 2.4-2.7 5.2-2.7 8.1 0 2.9 1 5.8 2.7 8.1l4.8-4.7c.9-.9 1.4-2.1 1.5-3.4 0-1.3.5-2.5 1.5-3.4l4.8-4.7 13.5-13.3c.9-.9 2.2-1.4 3.5-1.4 1.3 0 2.6.5 3.5 1.4l18.3 18c.9.9 1.5 2.2 1.5 3.5 0 1.3-.5 2.5-1.5 3.5l-18.3 18c-.9.9-2.2 1.4-3.5 1.4-1.3 0-2.6-.5-3.5-1.4L84.9 94.5c-.4.6-.8 1.1-1.3 1.5l-4.9 4.8L92.1 114c2.6 2.6 6.2 4 9.8 4 3.7 0 7.2-1.4 9.8-4L130 96c1.3-1.3 2.3-2.8 3-4.5.7-1.7 1.1-3.5 1.1-5.3 0-1.8-.4-3.6-1.1-5.3-.6-1.5-1.7-3-3-4.3z", fill: "#8c5ca2" }), jsx$1("path", { d: "M84.9 78.2l-4.8 4.7c-.9.9-1.4 2.1-1.5 3.4 0 1.3-.5 2.5-1.5 3.4l-4.8 4.7-13.5 13.3c-.9.9-2.2 1.4-3.5 1.4s-2.6-.5-3.5-1.4l-18.3-18c-.9-.9-1.4-2.2-1.4-3.5s.5-2.5 1.4-3.5l18.3-18c.9-.9 2.2-1.4 3.5-1.4s2.6.5 3.5 1.4L72.3 78c.4-.5.8-1.1 1.3-1.5l4.9-4.8-13.3-13c-2.6-2.6-6.2-4-9.8-4-3.7 0-7.2 1.4-9.8 4l-18.3 18c-2.6 2.6-4.1 6.1-4.1 9.7s1.5 7.1 4.1 9.7l18.3 18c2.6 2.6 6.2 4 9.8 4 3.7 0 7.2-1.4 9.8-4l13.4-13.2 4.9-4.8c.5-.5.9-1 1.3-1.5 1.8-2.4 2.7-5.2 2.7-8.1.1-3.1-.9-5.9-2.6-8.3z", fill: "#3da9e1" })] }), jsxs("g", __assign$2({ fill: "#23292f" }, { children: [jsx$1("path", { d: "M236.6 21.5c-1.1-1-2.4-1.5-3.9-1.5h-40.2c-1.6 0-2.9.5-3.9 1.4-1.1.9-1.6 2.2-1.6 3.8 0 1.6.5 2.8 1.6 3.8s2.4 1.5 3.9 1.5h14.2V78c0 1.6.5 2.9 1.6 3.9 1.1 1.1 2.5 1.6 4.2 1.6 1.8 0 3.2-.5 4.3-1.6 1.1-1.1 1.7-2.4 1.7-3.9V30.4h14.2c1.6 0 2.9-.5 3.9-1.4 1.1-.9 1.6-2.2 1.6-3.8 0-1.5-.5-2.8-1.6-3.7z" }), jsx$1("path", { d: "M270.6 36.6c-1-1.1-2.3-1.6-3.9-1.6s-2.9.5-3.9 1.6-1.5 2.4-1.5 3.9v23.2c0 2.3-.4 4.2-1.2 5.8-.8 1.6-1.9 2.8-3.4 3.6-1.5.8-3.2 1.2-5.3 1.2-3.1 0-5.5-.8-7.2-2.4-1.7-1.6-2.6-4.4-2.6-8.3V40.5c0-1.6-.5-2.9-1.5-3.9-1-1.1-2.3-1.6-3.9-1.6s-2.9.5-3.9 1.6-1.5 2.4-1.5 3.9V67c0 3.4.7 6.4 2 9 1.3 2.6 3.2 4.7 5.6 6.2 2.4 1.5 5.2 2.2 8.4 2.2 2.7 0 5.1-.3 7.3-1 2.1-.7 3.9-1.6 5.5-2.9.7-.6 1.3-1.3 1.9-2v1c0 3.1-.5 5.5-1.4 7.3-.9 1.8-2.3 3.1-4.2 3.8-1.8.8-4.2 1.1-6.9 1.1-2.1 0-3.9-.3-5.4-1-1.6-.6-2.8-1.1-3.8-1.4-1.3-.5-2.6-.4-3.8.2-1.2.6-2.1 1.8-2.6 3.6-.4 1.3-.3 2.6.4 3.8.7 1.2 1.9 2.2 3.8 2.9 1.4.6 3.2 1.1 5.3 1.4 2.2.3 4.2.5 6.2.5 4.4 0 8.3-.7 11.8-2.2 3.5-1.4 6.3-3.8 8.4-7.1 2.1-3.3 3.1-7.7 3.1-13.3V40.5c-.3-1.6-.8-2.9-1.8-3.9zM327.5 46.1c-2-3.7-4.6-6.7-8-8.8-3.4-2.1-7.1-3.2-11.4-3.2-2.1 0-4.1.4-6 1.1-1.9.7-3.6 1.6-5 2.8-1.3 1-2.4 2-3.2 3.1v-.5c0-1.6-.5-2.9-1.5-3.9-1-1.1-2.3-1.6-3.9-1.6s-2.9.5-3.9 1.6-1.5 2.4-1.5 3.9v55.6c0 1.6.5 3 1.5 4s2.3 1.5 3.9 1.5 2.9-.5 3.9-1.6 1.5-2.4 1.5-3.9V78.3c.6.6 1.4 1.3 2.2 1.9 1.6 1.2 3.5 2.2 5.6 3 2.1.8 4.4 1.2 6.8 1.2 4.1 0 7.8-1.1 11.1-3.2s5.9-5.1 7.9-8.9c2-3.8 2.9-8.1 2.9-13.1s-1-9.3-2.9-13.1zm-9.2 20.8c-1.1 2.3-2.7 4.2-4.6 5.5-2 1.3-4.3 2-6.9 2s-5-.7-7-2-3.6-3.2-4.7-5.5-1.7-4.9-1.7-7.8c0-2.9.6-5.5 1.7-7.8s2.7-4.1 4.7-5.4c2-1.3 4.3-2 7-2s5 .7 6.9 2c2 1.3 3.5 3.1 4.6 5.4 1.1 2.3 1.7 4.8 1.7 7.8 0 2.9-.6 5.5-1.7 7.8zM380.4 61.6c1.1-.9 1.7-2.1 1.7-3.5 0-3.3-.6-6.3-1.9-9.2-1.2-2.9-2.9-5.5-5-7.7s-4.5-3.9-7.3-5.2c-2.8-1.3-5.7-1.9-8.7-1.9-4 0-7.8 1-11.3 3.1-3.6 2.1-6.5 5-8.7 8.8-2.2 3.8-3.3 8.5-3.3 13.9 0 4.7 1 8.8 3 12.5 2 3.7 4.9 6.6 8.7 8.7 3.8 2.1 8.2 3.2 13.4 3.2 3 0 6-.5 8.8-1.5 2.8-1 5-2.2 6.6-3.5 1.7-1.3 2.5-2.8 2.5-4.4 0-1.2-.4-2.3-1.3-3.2-.9-.9-2-1.4-3.3-1.4-1 0-2 .3-3.1.8-.7.4-1.4.8-2.2 1.3-.8.5-1.9 1-3.2 1.3-1.3.4-3.1.5-5.3.5-2.4 0-4.7-.6-6.8-1.8-2.1-1.2-3.9-2.9-5.3-5.2-.8-1.3-1.3-2.8-1.7-4.5h29.9c1.4.3 2.7-.2 3.8-1.1zM350 47.2c1.1-1.1 2.5-2 4.1-2.4 1.6-.5 3.3-.7 5.1-.7 1.9 0 3.6.4 5.3 1.2 1.7.8 3.1 1.9 4.2 3.3s1.7 3 1.9 4.7v.6h-23.7c.1-.7.3-1.5.5-2.1.5-1.9 1.5-3.4 2.6-4.6zM447.3 39.1c-1.5-3.9-3.6-7.4-6.4-10.4-2.8-3-6-5.3-9.8-7-3.8-1.7-7.9-2.5-12.4-2.5s-8.6.8-12.3 2.5c-3.7 1.7-7 4-9.7 7-2.8 3-4.9 6.5-6.4 10.4-1.5 3.9-2.3 8.2-2.3 12.7s.8 8.8 2.3 12.7c1.5 3.9 3.6 7.4 6.4 10.4 2.7 3 6 5.3 9.7 7 3.7 1.7 7.9 2.5 12.3 2.5 4.5 0 8.6-.8 12.4-2.5 3.8-1.7 7-4 9.8-7 2.8-3 4.9-6.5 6.4-10.4 1.5-3.9 2.3-8.2 2.3-12.7-.1-4.6-.8-8.8-2.3-12.7zm-12 23.7c-1.6 3.3-3.9 5.9-6.7 7.8-2.8 1.9-6.1 2.9-9.9 2.9-3.7 0-7-1-9.9-2.9-2.8-1.9-5.1-4.5-6.7-7.8-1.6-3.3-2.4-7-2.4-11 0-4.1.8-7.8 2.4-11.1 1.6-3.3 3.8-5.9 6.7-7.8 2.8-1.9 6.1-2.9 9.9-2.9 3.7 0 7 1 9.9 2.9 2.8 1.9 5.1 4.5 6.7 7.8 1.6 3.3 2.4 7 2.4 11 .1 4.1-.8 7.8-2.4 11.1zM468.4 18c-1-1.1-2.3-1.6-3.9-1.6s-2.9.5-3.9 1.6c-1.1 1.1-1.6 2.4-1.6 3.9v56c0 1.6.5 2.9 1.5 3.9 1 1.1 2.3 1.6 3.8 1.6 1.6 0 2.9-.5 3.9-1.6 1.1-1.1 1.6-2.4 1.6-3.9v-56c.1-1.5-.4-2.9-1.4-3.9zM520.2 36.6c-1-1.1-2.3-1.6-3.9-1.6s-2.9.5-3.9 1.6-1.5 2.4-1.5 3.9v23.2c0 2.3-.4 4.2-1.2 5.8-.8 1.6-1.9 2.8-3.4 3.6-1.4.8-3.2 1.2-5.3 1.2-3.1 0-5.5-.8-7.2-2.4-1.7-1.6-2.6-4.4-2.6-8.3V40.5c0-1.6-.5-2.9-1.5-3.9-1-1.1-2.3-1.6-3.9-1.6s-2.9.5-3.9 1.6-1.5 2.4-1.5 3.9V67c0 3.4.7 6.4 2 9 1.3 2.6 3.2 4.7 5.6 6.2 2.4 1.5 5.2 2.2 8.4 2.2 2.7 0 5.1-.3 7.3-1 2.1-.7 3.9-1.6 5.5-2.9.7-.6 1.3-1.3 1.9-2v1c0 3.1-.5 5.5-1.4 7.3-.9 1.8-2.3 3.1-4.2 3.8-1.8.8-4.2 1.1-6.9 1.1-2.1 0-3.9-.3-5.4-1-1.6-.6-2.8-1.1-3.8-1.4-1.3-.5-2.6-.4-3.8.2-1.2.6-2.1 1.8-2.6 3.6-.4 1.3-.3 2.6.4 3.8.7 1.2 1.9 2.2 3.8 2.9 1.4.6 3.2 1.1 5.3 1.4 2.2.3 4.2.5 6.2.5 4.4 0 8.3-.7 11.8-2.2 3.5-1.4 6.3-3.8 8.4-7.1 2.1-3.3 3.1-7.7 3.1-13.3V40.5c-.2-1.6-.7-2.9-1.8-3.9zM603.2 44.4c-.8-3.1-2.4-5.6-4.7-7.5s-5.6-2.8-9.9-2.8c-2.7 0-5.1.6-7.2 1.7-2.1 1.1-4 2.5-5.5 4.1-1.4 1.5-2.5 2.9-3.2 4.2-.8-2.6-2.1-4.7-3.9-6.5-2.3-2.3-5.9-3.5-10.7-3.5-2 0-3.8.3-5.5 1-1.7.6-3.2 1.5-4.6 2.5-1.4 1-2.6 2.1-3.5 3.3l-.9 1.2v-1.5c0-1.6-.5-2.9-1.5-3.9-1-1.1-2.3-1.6-3.9-1.6s-2.9.5-3.9 1.6-1.5 2.4-1.5 3.9V78c0 1.6.5 2.9 1.5 3.9 1 1.1 2.3 1.6 3.9 1.6s2.9-.5 3.9-1.6 1.5-2.4 1.5-3.9V54.7c0-2 .4-3.8 1.2-5.4.8-1.6 2-2.9 3.7-3.9 1.6-1 3.6-1.4 5.9-1.4 2.4 0 4.2.5 5.4 1.4 1.3 1 2.1 2.3 2.6 3.9s.7 3.4.7 5.4v23.2c0 1.6.5 2.9 1.5 3.9 1 1.1 2.3 1.6 3.9 1.6s2.9-.5 3.9-1.6 1.5-2.4 1.5-3.9V54.7c0-2 .4-3.8 1.2-5.4.8-1.6 2-2.9 3.7-3.9 1.6-1 3.6-1.4 5.9-1.4 2.4 0 4.2.5 5.4 1.4 1.3 1 2.1 2.3 2.6 3.9s.7 3.4.7 5.4v23.2c0 1.6.5 2.9 1.5 3.9 1 1.1 2.3 1.6 3.9 1.6s2.9-.5 3.9-1.6 1.5-2.4 1.5-3.9V54.7c.3-3.8-.2-7.2-1-10.3zM659.8 46.1c-2-3.7-4.6-6.7-8-8.8-3.4-2.1-7.1-3.2-11.4-3.2-2.1 0-4.1.4-6 1.1-1.9.7-3.6 1.6-5 2.8-1.3 1-2.4 2-3.2 3.1v-.5c0-1.6-.5-2.9-1.5-3.9-1-1.1-2.3-1.6-3.9-1.6s-2.9.5-3.9 1.6-1.5 2.4-1.5 3.9v55.6c0 1.6.5 3 1.5 4s2.3 1.5 3.9 1.5 2.9-.5 3.9-1.6 1.5-2.4 1.5-3.9V78.3c.6.6 1.4 1.3 2.2 1.9 1.6 1.2 3.5 2.2 5.6 3s4.4 1.2 6.8 1.2c4.1 0 7.8-1.1 11.1-3.2s5.9-5.1 7.9-8.9c2-3.8 2.9-8.1 2.9-13.1.1-5-.9-9.3-2.9-13.1zm-9.1 20.8c-1.1 2.3-2.7 4.2-4.6 5.5-2 1.3-4.3 2-6.9 2s-5-.7-7-2-3.5-3.2-4.7-5.5c-1.1-2.3-1.7-4.9-1.7-7.8 0-2.9.6-5.5 1.7-7.8s2.7-4.1 4.7-5.4c2-1.3 4.3-2 7-2s5 .7 6.9 2c2 1.3 3.5 3.1 4.6 5.4 1.1 2.3 1.7 4.8 1.7 7.8-.1 2.9-.6 5.5-1.7 7.8z" })] }))] }))); };
|
|
4859
4184
|
|
|
4860
|
-
var Wrapper$6 = styled.div(templateObject_1$
|
|
4185
|
+
var Wrapper$6 = styled.div(templateObject_1$H || (templateObject_1$H = __makeTemplateObject$1(["\n width: ", ";\n"], ["\n width: ", ";\n"])), function (_a) {
|
|
4861
4186
|
var size = _a.size;
|
|
4862
4187
|
switch (size) {
|
|
4863
4188
|
default:
|
|
@@ -4867,7 +4192,7 @@ var Wrapper$6 = styled.div(templateObject_1$G || (templateObject_1$G = __makeTem
|
|
|
4867
4192
|
return "116px";
|
|
4868
4193
|
}
|
|
4869
4194
|
});
|
|
4870
|
-
var templateObject_1$
|
|
4195
|
+
var templateObject_1$H;
|
|
4871
4196
|
|
|
4872
4197
|
var medals = {
|
|
4873
4198
|
small: {
|
|
@@ -4883,11 +4208,11 @@ var medals = {
|
|
|
4883
4208
|
};
|
|
4884
4209
|
var Medal = function (props) { return (jsx$1(Wrapper$6, __assign$2({}, props, { children: medals[props.size || "small"][props.type] }))); };
|
|
4885
4210
|
|
|
4886
|
-
var Wrapper$5 = styled.div(templateObject_1$
|
|
4211
|
+
var Wrapper$5 = styled.div(templateObject_1$G || (templateObject_1$G = __makeTemplateObject$1(["\n width: fit-content;\n display: flex;\n\n button:first-child {\n border-radius: 6px 0 0 6px;\n border-width: 2px 1px 2px 2px;\n }\n\n button:last-child {\n border-radius: 0 6px 6px 0;\n border-width: 2px 2px 2px 1px;\n }\n\n button {\n width: ", ";\n }\n"], ["\n width: fit-content;\n display: flex;\n\n button:first-child {\n border-radius: 6px 0 0 6px;\n border-width: 2px 1px 2px 2px;\n }\n\n button:last-child {\n border-radius: 0 6px 6px 0;\n border-width: 2px 2px 2px 1px;\n }\n\n button {\n width: ", ";\n }\n"])), function (_a) {
|
|
4887
4212
|
var disabled = _a.disabled;
|
|
4888
4213
|
return (disabled ? "49.5px" : "");
|
|
4889
4214
|
});
|
|
4890
|
-
var StyledInputNumber = styled.input(templateObject_2$
|
|
4215
|
+
var StyledInputNumber = styled.input(templateObject_2$s || (templateObject_2$s = __makeTemplateObject$1(["\n width: 50px;\n height: 50px;\n background-color: ", ";\n border-width: 1px;\n border-style: solid;\n border-color: ", ";\n box-sizing: border-box;\n cursor: ", ";\n font-family: ", ";\n font-size: ", ";\n font-weight: 400;\n font-style: normal;\n line-height: ", ";\n color: ", ";\n text-align: center;\n -moz-appearance: textfield;\n\n ::-webkit-inner-spin-button {\n -webkit-appearance: none;\n }\n\n :focus {\n outline: 0;\n border-color: ", ";\n box-shadow: ", ";\n }\n"], ["\n width: 50px;\n height: 50px;\n background-color: ", ";\n border-width: 1px;\n border-style: solid;\n border-color: ", ";\n box-sizing: border-box;\n cursor: ", ";\n font-family: ", ";\n font-size: ", ";\n font-weight: 400;\n font-style: normal;\n line-height: ", ";\n color: ", ";\n text-align: center;\n -moz-appearance: textfield;\n\n ::-webkit-inner-spin-button {\n -webkit-appearance: none;\n }\n\n :focus {\n outline: 0;\n border-color: ", ";\n box-shadow: ", ";\n }\n"])), function (_a) {
|
|
4891
4216
|
var disabled = _a.disabled;
|
|
4892
4217
|
return disabled ? theme.colors.lightGray.base : theme.colors.lightGray.light;
|
|
4893
4218
|
}, function (_a) {
|
|
@@ -4900,7 +4225,7 @@ var StyledInputNumber = styled.input(templateObject_2$r || (templateObject_2$r =
|
|
|
4900
4225
|
var disabled = _a.disabled;
|
|
4901
4226
|
return disabled ? theme.colors.darkGray.light : theme.colors.darkGray.base;
|
|
4902
4227
|
}, theme.colors.blue.dark, "0 0 0 1px ".concat(theme.colors.blue.dark));
|
|
4903
|
-
var templateObject_1$
|
|
4228
|
+
var templateObject_1$G, templateObject_2$s;
|
|
4904
4229
|
|
|
4905
4230
|
var Number$1 = function (props) {
|
|
4906
4231
|
var inputRef = useRef(null);
|
|
@@ -4937,7 +4262,7 @@ var Number$1 = function (props) {
|
|
|
4937
4262
|
return (jsxs(Wrapper$5, __assign$2({ disabled: props.disabled }, { children: [jsx$1(Button, { label: "-", disabled: props.disabled, onClick: decrease, tabIndex: -1, type: "button" }), jsx$1(StyledInputNumber, __assign$2({ type: "number" }, props, { defaultValue: props.defaultValue || props.min || 0, onChange: onChange, onBlur: props.onBlur, ref: inputRef })), jsx$1(Button, { label: "+", disabled: props.disabled, onClick: increase, tabIndex: -1, type: "button" })] })));
|
|
4938
4263
|
};
|
|
4939
4264
|
|
|
4940
|
-
var StyledParagraph = styled.p(templateObject_1$
|
|
4265
|
+
var StyledParagraph = styled.p(templateObject_1$F || (templateObject_1$F = __makeTemplateObject$1(["\n font-family: ", ";\n font-size: ", ";\n font-weight: ", ";\n font-style: normal;\n line-height: ", ";\n color: ", ";\n margin: 0;\n text-align: ", ";\n"], ["\n font-family: ", ";\n font-size: ", ";\n font-weight: ", ";\n font-style: normal;\n line-height: ", ";\n color: ", ";\n margin: 0;\n text-align: ", ";\n"])), theme.fonts.paragraph, function (_a) {
|
|
4941
4266
|
var size = _a.size;
|
|
4942
4267
|
return size ? theme.paragraph[size].fontSize : theme.paragraph.medium.fontSize;
|
|
4943
4268
|
}, function (_a) {
|
|
@@ -4969,11 +4294,11 @@ var StyledParagraph = styled.p(templateObject_1$E || (templateObject_1$E = __mak
|
|
|
4969
4294
|
var align = _a.align;
|
|
4970
4295
|
return align;
|
|
4971
4296
|
});
|
|
4972
|
-
var templateObject_1$
|
|
4297
|
+
var templateObject_1$F;
|
|
4973
4298
|
|
|
4974
4299
|
var Paragraph = function (props) { return (jsx$1(StyledParagraph, __assign$2({}, props, { children: props.children }))); };
|
|
4975
4300
|
|
|
4976
|
-
var StyledRadio = styled.div(templateObject_1$
|
|
4301
|
+
var StyledRadio = styled.div(templateObject_1$E || (templateObject_1$E = __makeTemplateObject$1(["\n min-height: 25px;\n max-height: 25px;\n min-width: 25px;\n max-width: 25px;\n display: flex;\n align-items: center;\n justify-content: center;\n border-radius: 14px;\n border-width: 1px;\n border-style: solid;\n border-color: ", ";\n cursor: ", ";\n background-color: ", ";\n\n svg {\n margin-left: -1px;\n fill: ", ";\n }\n\n input {\n display: none;\n }\n\n :after {\n content: \"\";\n width: 15px;\n height: 15px;\n border-radius: 50%;\n background-color: ", ";\n position: absolute;\n }\n\n :focus {\n outline: 0;\n border-color: ", ";\n box-shadow: ", ";\n }\n"], ["\n min-height: 25px;\n max-height: 25px;\n min-width: 25px;\n max-width: 25px;\n display: flex;\n align-items: center;\n justify-content: center;\n border-radius: 14px;\n border-width: 1px;\n border-style: solid;\n border-color: ", ";\n cursor: ", ";\n background-color: ", ";\n\n svg {\n margin-left: -1px;\n fill: ", ";\n }\n\n input {\n display: none;\n }\n\n :after {\n content: \"\";\n width: 15px;\n height: 15px;\n border-radius: 50%;\n background-color: ", ";\n position: absolute;\n }\n\n :focus {\n outline: 0;\n border-color: ", ";\n box-shadow: ", ";\n }\n"])), function (_a) {
|
|
4977
4302
|
var checked = _a.checked, disabled = _a.disabled;
|
|
4978
4303
|
if (disabled)
|
|
4979
4304
|
return theme.colors.lightGray.darker;
|
|
@@ -5001,7 +4326,7 @@ var StyledRadio = styled.div(templateObject_1$D || (templateObject_1$D = __makeT
|
|
|
5001
4326
|
return theme.colors.green.base;
|
|
5002
4327
|
return "";
|
|
5003
4328
|
}, theme.colors.blue.dark, "0 0 0 1px ".concat(theme.colors.blue.dark));
|
|
5004
|
-
var templateObject_1$
|
|
4329
|
+
var templateObject_1$E;
|
|
5005
4330
|
|
|
5006
4331
|
var Radio = function (props) {
|
|
5007
4332
|
var _a, _b;
|
|
@@ -5033,7 +4358,7 @@ var Radio = function (props) {
|
|
|
5033
4358
|
return (jsx$1(StyledRadio, __assign$2({ checked: checked, disabled: props.disabled, tabIndex: 0, onClick: toggle, onBlur: props.onBlur, onKeyPress: function (e) { return (e.key === "Enter" ? toggle() : null); }, ref: wrapperRef }, { children: jsx$1("input", { type: "radio", disabled: !!props.disabled, id: props.id, name: props.name, value: props.value, ref: inputRef }) })));
|
|
5034
4359
|
};
|
|
5035
4360
|
|
|
5036
|
-
var StyledRange = styled.div(templateObject_1$
|
|
4361
|
+
var StyledRange = styled.div(templateObject_1$D || (templateObject_1$D = __makeTemplateObject$1(["\n input {\n appearance: none;\n width: 100%;\n height: 11px;\n border: ", ";\n border-radius: 8px;\n position: relative;\n background: ", ";\n\n ::-webkit-slider-thumb {\n appearance: none;\n width: 24px;\n height: 24px;\n background-color: ", ";\n border: ", ";\n border-radius: 50%;\n cursor: ", ";\n }\n }\n"], ["\n input {\n appearance: none;\n width: 100%;\n height: 11px;\n border: ", ";\n border-radius: 8px;\n position: relative;\n background: ", ";\n\n ::-webkit-slider-thumb {\n appearance: none;\n width: 24px;\n height: 24px;\n background-color: ", ";\n border: ", ";\n border-radius: 50%;\n cursor: ", ";\n }\n }\n"])), function () { return "2px solid ".concat(theme.colors.lightGray.dark); }, function (_a) {
|
|
5037
4362
|
var value = _a.value, disabled = _a.disabled;
|
|
5038
4363
|
return "linear-gradient(90deg,\n ".concat(disabled ? theme.colors.lightGray.darker : theme.colors.green.base, " 0%,\n ").concat(disabled ? theme.colors.lightGray.darker : theme.colors.green.base, " ").concat(value, "%,\n ").concat(theme.colors.lightGray.dark, " ").concat(value, "%,\n ").concat(theme.colors.lightGray.dark, " 100%\n )");
|
|
5039
4364
|
}, function () { return theme.colors.lightGray.light; }, function (_a) {
|
|
@@ -5043,7 +4368,7 @@ var StyledRange = styled.div(templateObject_1$C || (templateObject_1$C = __makeT
|
|
|
5043
4368
|
var disabled = _a.disabled;
|
|
5044
4369
|
return disabled ? "not-allowed" : "pointer";
|
|
5045
4370
|
});
|
|
5046
|
-
var templateObject_1$
|
|
4371
|
+
var templateObject_1$D;
|
|
5047
4372
|
|
|
5048
4373
|
var Range = function (props) {
|
|
5049
4374
|
var _a;
|
|
@@ -5072,11 +4397,11 @@ var Range = function (props) {
|
|
|
5072
4397
|
return (jsx$1(StyledRange, __assign$2({ value: value, disabled: props.disabled }, { children: jsx$1("input", { type: "range", disabled: !!props.disabled, id: props.id, min: props.min || 0, max: props.max || 100, ref: rangeRef, defaultValue: props.defaultValue, onChange: onChange, onBlur: props.onBlur }) })));
|
|
5073
4398
|
};
|
|
5074
4399
|
|
|
5075
|
-
var Wrapper$4 = styled.div(templateObject_1$
|
|
4400
|
+
var Wrapper$4 = styled.div(templateObject_1$C || (templateObject_1$C = __makeTemplateObject$1(["\n position: relative;\n\n div {\n pointer-events: none;\n position: absolute;\n height: 24px;\n right: 12px;\n top: 14px;\n }\n\n svg {\n cursor: ", ";\n }\n"], ["\n position: relative;\n\n div {\n pointer-events: none;\n position: absolute;\n height: 24px;\n right: 12px;\n top: 14px;\n }\n\n svg {\n cursor: ", ";\n }\n"])), function (_a) {
|
|
5076
4401
|
var disabled = _a.disabled;
|
|
5077
4402
|
return (disabled ? "not-allowed" : "pointer");
|
|
5078
4403
|
});
|
|
5079
|
-
var StyledSelect = styled.select(templateObject_2$
|
|
4404
|
+
var StyledSelect = styled.select(templateObject_2$r || (templateObject_2$r = __makeTemplateObject$1(["\n width: 100%;\n height: 50px;\n background-color: ", ";\n border-width: 1px;\n border-style: solid;\n border-color: ", ";\n box-sizing: border-box;\n border-radius: 4px;\n padding: 13px 43px 15px 13px;\n cursor: ", ";\n font-family: ", ";\n font-size: ", ";\n font-weight: 500;\n font-style: normal;\n line-height: ", ";\n color: ", ";\n appearance: none;\n\n :focus {\n outline: 0;\n border-color: ", ";\n box-shadow: ", ";\n }\n"], ["\n width: 100%;\n height: 50px;\n background-color: ", ";\n border-width: 1px;\n border-style: solid;\n border-color: ", ";\n box-sizing: border-box;\n border-radius: 4px;\n padding: 13px 43px 15px 13px;\n cursor: ", ";\n font-family: ", ";\n font-size: ", ";\n font-weight: 500;\n font-style: normal;\n line-height: ", ";\n color: ", ";\n appearance: none;\n\n :focus {\n outline: 0;\n border-color: ", ";\n box-shadow: ", ";\n }\n"])), function (_a) {
|
|
5080
4405
|
var disabled = _a.disabled;
|
|
5081
4406
|
return disabled ? theme.colors.lightGray.dark : theme.colors.lightGray.light;
|
|
5082
4407
|
}, function (_a) {
|
|
@@ -5089,7 +4414,7 @@ var StyledSelect = styled.select(templateObject_2$q || (templateObject_2$q = __m
|
|
|
5089
4414
|
var isChanged = _a.isChanged;
|
|
5090
4415
|
return isChanged ? theme.colors.darkGray.base : theme.colors.lightGray.darker;
|
|
5091
4416
|
}, theme.colors.blue.dark, "0 0 0 1px ".concat(theme.colors.blue.dark));
|
|
5092
|
-
var templateObject_1$
|
|
4417
|
+
var templateObject_1$C, templateObject_2$r;
|
|
5093
4418
|
|
|
5094
4419
|
var Select = function (props) {
|
|
5095
4420
|
var _a;
|
|
@@ -5111,18 +4436,18 @@ var Select = function (props) {
|
|
|
5111
4436
|
return (jsxs(Wrapper$4, { children: [jsx$1(Icon, { type: "chevronDown", color: "gray", size: "small" }), jsxs(StyledSelect, __assign$2({}, props, { onChange: onChange, isChanged: isChanged || props.defaultValue, ref: inputRef }, { children: [props.placeholder && jsx$1("option", __assign$2({ hidden: true }, { children: props.placeholder })), props.children] }))] }));
|
|
5112
4437
|
};
|
|
5113
4438
|
|
|
5114
|
-
var StyledSpacer = styled.div(templateObject_1$
|
|
4439
|
+
var StyledSpacer = styled.div(templateObject_1$B || (templateObject_1$B = __makeTemplateObject$1(["\n width: ", ";\n height: ", ";\n"], ["\n width: ", ";\n height: ", ";\n"])), function (_a) {
|
|
5115
4440
|
var horizontal = _a.horizontal;
|
|
5116
4441
|
return (horizontal ? "".concat(horizontal, "px") : "");
|
|
5117
4442
|
}, function (_a) {
|
|
5118
4443
|
var vertical = _a.vertical;
|
|
5119
4444
|
return (vertical ? "".concat(vertical, "px") : "");
|
|
5120
4445
|
});
|
|
5121
|
-
var templateObject_1$
|
|
4446
|
+
var templateObject_1$B;
|
|
5122
4447
|
|
|
5123
4448
|
var Spacer = function (props) { return (jsx$1(StyledSpacer, __assign$2({}, props))); };
|
|
5124
4449
|
|
|
5125
|
-
var StyledSubheading = styled.p(templateObject_1$
|
|
4450
|
+
var StyledSubheading = styled.p(templateObject_1$A || (templateObject_1$A = __makeTemplateObject$1(["\n font-family: ", ";\n font-style: normal;\n font-size: ", ";\n font-weight: ", ";\n line-height: ", ";\n text-align: ", ";\n margin: 0;\n color: ", ";\n"], ["\n font-family: ", ";\n font-style: normal;\n font-size: ", ";\n font-weight: ", ";\n line-height: ", ";\n text-align: ", ";\n margin: 0;\n color: ", ";\n"])), theme.fonts.paragraph, function (_a) {
|
|
5126
4451
|
var size = _a.size;
|
|
5127
4452
|
return size ? theme.subheading[size].fontSize : theme.subheading.medium.fontSize;
|
|
5128
4453
|
}, function (_a) {
|
|
@@ -5150,18 +4475,18 @@ var StyledSubheading = styled.p(templateObject_1$z || (templateObject_1$z = __ma
|
|
|
5150
4475
|
return theme.colors.darkGray.dark;
|
|
5151
4476
|
}
|
|
5152
4477
|
});
|
|
5153
|
-
var templateObject_1$
|
|
4478
|
+
var templateObject_1$A;
|
|
5154
4479
|
|
|
5155
4480
|
var Subheading = function (props) { return (jsx$1(StyledSubheading, __assign$2({}, props, { children: props.children }))); };
|
|
5156
4481
|
|
|
5157
|
-
var Container$
|
|
5158
|
-
var templateObject_1$
|
|
4482
|
+
var Container$k = styled.div(templateObject_1$z || (templateObject_1$z = __makeTemplateObject$1(["\n padding: 7px 10px;\n background-color: ", ";\n box-shadow: 0 2px 0 ", ";\n border: 1px solid ", ";\n border-radius: 4px;\n box-sizing: border-box;\n text-decoration: none;\n"], ["\n padding: 7px 10px;\n background-color: ", ";\n box-shadow: 0 2px 0 ", ";\n border: 1px solid ", ";\n border-radius: 4px;\n box-sizing: border-box;\n text-decoration: none;\n"])), theme.colors.lightGray.base, theme.colors.lightGray.darker, theme.colors.lightGray.darker);
|
|
4483
|
+
var templateObject_1$z;
|
|
5159
4484
|
|
|
5160
4485
|
var Tag = function (props) {
|
|
5161
|
-
return jsx$1(Container$
|
|
4486
|
+
return jsx$1(Container$k, { children: props.children });
|
|
5162
4487
|
};
|
|
5163
4488
|
|
|
5164
|
-
var Container$
|
|
4489
|
+
var Container$j = styled.div(templateObject_1$y || (templateObject_1$y = __makeTemplateObject$1(["\n width: 46px;\n min-width: 46px;\n max-width: 46px;\n height: 27px;\n min-height: 27px;\n max-height: 27px;\n border-radius: 14px;\n cursor: ", ";\n position: relative;\n background-color: ", ";\n\n :after {\n content: \"\";\n width: 21px;\n height: 21px;\n border-radius: 50%;\n position: absolute;\n top: 3px;\n right: ", ";\n left: ", ";\n background-color: ", ";\n }\n\n input {\n display: none;\n }\n\n :focus {\n outline: 0;\n border-color: ", ";\n box-shadow: ", ";\n }\n"], ["\n width: 46px;\n min-width: 46px;\n max-width: 46px;\n height: 27px;\n min-height: 27px;\n max-height: 27px;\n border-radius: 14px;\n cursor: ", ";\n position: relative;\n background-color: ", ";\n\n :after {\n content: \"\";\n width: 21px;\n height: 21px;\n border-radius: 50%;\n position: absolute;\n top: 3px;\n right: ", ";\n left: ", ";\n background-color: ", ";\n }\n\n input {\n display: none;\n }\n\n :focus {\n outline: 0;\n border-color: ", ";\n box-shadow: ", ";\n }\n"])), function (_a) {
|
|
5165
4490
|
var disabled = _a.disabled;
|
|
5166
4491
|
return (disabled ? "not-allowed" : "pointer");
|
|
5167
4492
|
}, function (_a) {
|
|
@@ -5179,7 +4504,7 @@ var Container$i = styled.div(templateObject_1$x || (templateObject_1$x = __makeT
|
|
|
5179
4504
|
var disabled = _a.disabled;
|
|
5180
4505
|
return disabled ? theme.colors.lightGray.darker : theme.colors.lightGray.light;
|
|
5181
4506
|
}, theme.colors.blue.dark, "0 0 0 1px ".concat(theme.colors.blue.dark));
|
|
5182
|
-
var templateObject_1$
|
|
4507
|
+
var templateObject_1$y;
|
|
5183
4508
|
|
|
5184
4509
|
var Toggle = function (props) {
|
|
5185
4510
|
var _a;
|
|
@@ -5207,10 +4532,10 @@ var Toggle = function (props) {
|
|
|
5207
4532
|
props.onChange(newValue);
|
|
5208
4533
|
}
|
|
5209
4534
|
};
|
|
5210
|
-
return (jsx$1(Container$
|
|
4535
|
+
return (jsx$1(Container$j, __assign$2({ checked: checked, disabled: props.disabled, tabIndex: 0, onClick: toggle, onBlur: props.onBlur, onKeyPress: function (e) { return (e.key === "Enter" ? toggle() : null); }, ref: containerRef }, { children: jsx$1("input", { type: "checkbox", disabled: !!props.disabled, id: props.id, name: props.name, ref: inputRef }) })));
|
|
5211
4536
|
};
|
|
5212
4537
|
|
|
5213
|
-
var Wrapper$3 = styled.div(templateObject_1$
|
|
4538
|
+
var Wrapper$3 = styled.div(templateObject_1$x || (templateObject_1$x = __makeTemplateObject$1(["\n display: flex;\n align-items: flex-end;\n\n > svg {\n height: ", ";\n }\n"], ["\n display: flex;\n align-items: flex-end;\n\n > svg {\n height: ", ";\n }\n"])), function (_a) {
|
|
5214
4539
|
var level = _a.level;
|
|
5215
4540
|
switch (level) {
|
|
5216
4541
|
case 1:
|
|
@@ -5221,7 +4546,7 @@ var Wrapper$3 = styled.div(templateObject_1$w || (templateObject_1$w = __makeTem
|
|
|
5221
4546
|
return "70px";
|
|
5222
4547
|
}
|
|
5223
4548
|
});
|
|
5224
|
-
var templateObject_1$
|
|
4549
|
+
var templateObject_1$x;
|
|
5225
4550
|
|
|
5226
4551
|
var trophies = {
|
|
5227
4552
|
1: {
|
|
@@ -5257,7 +4582,7 @@ var trophies = {
|
|
|
5257
4582
|
};
|
|
5258
4583
|
var Trophy = function (props) { return (jsx$1(Wrapper$3, __assign$2({}, props, { children: trophies[props.variant][props.level] }))); };
|
|
5259
4584
|
|
|
5260
|
-
var Container$
|
|
4585
|
+
var Container$i = styled.div(templateObject_1$w || (templateObject_1$w = __makeTemplateObject$1(["\n min-height: 44px;\n padding: 10px;\n background-color: ", ";\n box-sizing: border-box;\n border-radius: 4px;\n display: flex;\n align-items: center;\n\n > div:first-child {\n min-width: 24px;\n min-height: 24px;\n }\n\n p {\n color: ", ";\n }\n"], ["\n min-height: 44px;\n padding: 10px;\n background-color: ", ";\n box-sizing: border-box;\n border-radius: 4px;\n display: flex;\n align-items: center;\n\n > div:first-child {\n min-width: 24px;\n min-height: 24px;\n }\n\n p {\n color: ", ";\n }\n"])), function (_a) {
|
|
5261
4586
|
var type = _a.type;
|
|
5262
4587
|
switch (type) {
|
|
5263
4588
|
case "success":
|
|
@@ -5274,11 +4599,11 @@ var Container$h = styled.div(templateObject_1$v || (templateObject_1$v = __makeT
|
|
|
5274
4599
|
return theme.colors.red.base;
|
|
5275
4600
|
}
|
|
5276
4601
|
});
|
|
5277
|
-
var templateObject_1$
|
|
4602
|
+
var templateObject_1$w;
|
|
5278
4603
|
|
|
5279
|
-
var Alert = function (props) { return (jsxs(Container$
|
|
4604
|
+
var Alert = function (props) { return (jsxs(Container$i, __assign$2({}, props, { children: [jsx$1(Icon, { size: "small", type: props.type === "success" ? "check" : "warning", color: props.type === "success" ? "green" : "red" }), jsx$1(Spacer, { horizontal: 10 }), jsx$1(Paragraph, { children: props.message })] }))); };
|
|
5280
4605
|
|
|
5281
|
-
var StyledCard = styled.div(templateObject_1$
|
|
4606
|
+
var StyledCard = styled.div(templateObject_1$v || (templateObject_1$v = __makeTemplateObject$1(["\n background-color: ", ";\n box-shadow: 0px 4px 0px rgba(0, 0, 0, 20%);\n border-radius: 6px;\n overflow: hidden;\n position: relative;\n\n ", "\n"], ["\n background-color: ", ";\n box-shadow: 0px 4px 0px rgba(0, 0, 0, 20%);\n border-radius: 6px;\n overflow: hidden;\n position: relative;\n\n ", "\n"])), theme.colors.lightGray.light, function (_a) {
|
|
5282
4607
|
var ellipse = _a.ellipse;
|
|
5283
4608
|
return ellipse
|
|
5284
4609
|
? ":hover {\n box-shadow: 0px 4px 0px ".concat(function (_a) {
|
|
@@ -5287,23 +4612,23 @@ var StyledCard = styled.div(templateObject_1$u || (templateObject_1$u = __makeTe
|
|
|
5287
4612
|
}, ";\n\n > div:first-child {\n width: 175%;\n padding-bottom: 175%;\n top: -25%;\n right: -25%;\n }\n }")
|
|
5288
4613
|
: "";
|
|
5289
4614
|
});
|
|
5290
|
-
var Ellipse = styled.div(templateObject_2$
|
|
4615
|
+
var Ellipse = styled.div(templateObject_2$q || (templateObject_2$q = __makeTemplateObject$1(["\n width: 85%;\n height: 0;\n padding-bottom: 85%;\n border-radius: 50%;\n background-color: ", ";\n opacity: 0.3;\n position: absolute;\n top: -20%;\n right: -20%;\n transition: width 0.75s, padding-bottom 0.75s, top 0.75s, right 0.75s;\n"], ["\n width: 85%;\n height: 0;\n padding-bottom: 85%;\n border-radius: 50%;\n background-color: ", ";\n opacity: 0.3;\n position: absolute;\n top: -20%;\n right: -20%;\n transition: width 0.75s, padding-bottom 0.75s, top 0.75s, right 0.75s;\n"])), function (_a) {
|
|
5291
4616
|
var color = _a.color;
|
|
5292
4617
|
return color ? theme.colors[color].light : "";
|
|
5293
4618
|
});
|
|
5294
|
-
var Content = styled.div(templateObject_3$
|
|
5295
|
-
var templateObject_1$
|
|
4619
|
+
var Content = styled.div(templateObject_3$a || (templateObject_3$a = __makeTemplateObject$1(["\n height: 100%;\n padding: 15px;\n position: inherit;\n top: 0;\n left: 0;\n"], ["\n height: 100%;\n padding: 15px;\n position: inherit;\n top: 0;\n left: 0;\n"])));
|
|
4620
|
+
var templateObject_1$v, templateObject_2$q, templateObject_3$a;
|
|
5296
4621
|
|
|
5297
4622
|
var Card = function (props) { return (jsxs(StyledCard, __assign$2({}, props, { children: [props.ellipse && jsx$1(Ellipse, { color: props.ellipse }), jsx$1(Content, { children: props.children })] }))); };
|
|
5298
4623
|
|
|
5299
|
-
var Fieldset$1 = styled.fieldset(templateObject_1$
|
|
5300
|
-
var CheckboxContainer = styled.div(templateObject_2$
|
|
5301
|
-
var CheckboxWrapper = styled.div(templateObject_3$
|
|
5302
|
-
var Label$9 = styled(StyledParagraph)(templateObject_4$
|
|
4624
|
+
var Fieldset$1 = styled.fieldset(templateObject_1$u || (templateObject_1$u = __makeTemplateObject$1(["\n border: 0;\n margin: 0;\n padding: 0;\n"], ["\n border: 0;\n margin: 0;\n padding: 0;\n"])));
|
|
4625
|
+
var CheckboxContainer = styled.div(templateObject_2$p || (templateObject_2$p = __makeTemplateObject$1(["\n margin-top: 5px;\n"], ["\n margin-top: 5px;\n"])));
|
|
4626
|
+
var CheckboxWrapper = styled.div(templateObject_3$9 || (templateObject_3$9 = __makeTemplateObject$1(["\n display: flex;\n align-items: center;\n\n > div:first-child {\n margin-right: 10px;\n }\n\n :not(:last-child) {\n margin-bottom: 20px;\n }\n"], ["\n display: flex;\n align-items: center;\n\n > div:first-child {\n margin-right: 10px;\n }\n\n :not(:last-child) {\n margin-bottom: 20px;\n }\n"])));
|
|
4627
|
+
var Label$9 = styled(StyledParagraph)(templateObject_4$7 || (templateObject_4$7 = __makeTemplateObject$1(["\n font-weight: ", ";\n color: ", ";\n display: flex;\n align-items: center;\n cursor: pointer;\n"], ["\n font-weight: ", ";\n color: ", ";\n display: flex;\n align-items: center;\n cursor: pointer;\n"])), function (_a) {
|
|
5303
4628
|
var weight = _a.weight;
|
|
5304
4629
|
return weight || 500;
|
|
5305
4630
|
}, theme.colors.darkGray.base);
|
|
5306
|
-
var templateObject_1$
|
|
4631
|
+
var templateObject_1$u, templateObject_2$p, templateObject_3$9, templateObject_4$7;
|
|
5307
4632
|
|
|
5308
4633
|
var Checkboxes = function (props) {
|
|
5309
4634
|
var _a = useState(props.defaultValue || []), values = _a[0], setValues = _a[1];
|
|
@@ -5326,12 +4651,12 @@ var Checkboxes = function (props) {
|
|
|
5326
4651
|
}) })] }));
|
|
5327
4652
|
};
|
|
5328
4653
|
|
|
5329
|
-
var Container$
|
|
5330
|
-
var Item = styled.div(templateObject_2$
|
|
4654
|
+
var Container$h = styled.div(templateObject_1$t || (templateObject_1$t = __makeTemplateObject$1(["\n width: 100%;\n background-color: ", ";\n box-shadow: 0px 4px 0px rgba(0, 0, 0, 20%);\n border-radius: 6px;\n padding: 10px 20px;\n"], ["\n width: 100%;\n background-color: ", ";\n box-shadow: 0px 4px 0px rgba(0, 0, 0, 20%);\n border-radius: 6px;\n padding: 10px 20px;\n"])), theme.colors.lightGray.light);
|
|
4655
|
+
var Item = styled.div(templateObject_2$o || (templateObject_2$o = __makeTemplateObject$1(["\n padding: 10px 0;\n cursor: pointer;\n\n > div:first-child {\n display: flex;\n justify-content: space-between;\n align-items: center;\n margin-bottom: 5px;\n }\n\n p {\n display: ", ";\n }\n\n :not(:last-child) {\n border-bottom: 1px solid ", ";\n }\n"], ["\n padding: 10px 0;\n cursor: pointer;\n\n > div:first-child {\n display: flex;\n justify-content: space-between;\n align-items: center;\n margin-bottom: 5px;\n }\n\n p {\n display: ", ";\n }\n\n :not(:last-child) {\n border-bottom: 1px solid ", ";\n }\n"])), function (_a) {
|
|
5331
4656
|
var isOpen = _a.isOpen;
|
|
5332
4657
|
return (isOpen ? "" : "none");
|
|
5333
4658
|
}, theme.colors.lightGray.darker);
|
|
5334
|
-
var templateObject_1$
|
|
4659
|
+
var templateObject_1$t, templateObject_2$o;
|
|
5335
4660
|
|
|
5336
4661
|
var Collapse = function (props) {
|
|
5337
4662
|
var _a = useState([]), openItems = _a[0], setOpenItems = _a[1];
|
|
@@ -5343,15 +4668,15 @@ var Collapse = function (props) {
|
|
|
5343
4668
|
setOpenItems(function (prevState) { return __spreadArray(__spreadArray([], prevState, true), [index], false); });
|
|
5344
4669
|
}
|
|
5345
4670
|
};
|
|
5346
|
-
return (jsx$1(Container$
|
|
4671
|
+
return (jsx$1(Container$h, __assign$2({}, props, { children: props.items.map(function (item, index) {
|
|
5347
4672
|
var isOpen = openItems.includes(index);
|
|
5348
4673
|
return (jsxs(Item, __assign$2({ isOpen: isOpen, onClick: function () { return onClickItem(index, isOpen); } }, { children: [jsxs("div", { children: [jsx$1(Heading, __assign$2({ type: "h6" }, { children: item.title })), jsx$1(Icon, { type: isOpen ? "chevronUp" : "chevronDown", color: "blue" })] }), jsx$1(Paragraph, __assign$2({ weight: "regular" }, { children: item.content }))] }), "".concat(item.title, "-").concat(index)));
|
|
5349
4674
|
}) })));
|
|
5350
4675
|
};
|
|
5351
4676
|
|
|
5352
|
-
var Container$
|
|
5353
|
-
var Label$8 = styled(StyledParagraph)(templateObject_2$
|
|
5354
|
-
var templateObject_1$
|
|
4677
|
+
var Container$g = styled.div(templateObject_1$s || (templateObject_1$s = __makeTemplateObject$1(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n flex-wrap: wrap;\n"], ["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n flex-wrap: wrap;\n"])));
|
|
4678
|
+
var Label$8 = styled(StyledParagraph)(templateObject_2$n || (templateObject_2$n = __makeTemplateObject$1(["\n font-weight: 500;\n color: ", ";\n"], ["\n font-weight: 500;\n color: ", ";\n"])), theme.colors.darkGray.base);
|
|
4679
|
+
var templateObject_1$s, templateObject_2$n;
|
|
5355
4680
|
|
|
5356
4681
|
var DateInputField = function (props) {
|
|
5357
4682
|
var onChange = function (value) {
|
|
@@ -5362,12 +4687,12 @@ var DateInputField = function (props) {
|
|
|
5362
4687
|
if (props.onBlur)
|
|
5363
4688
|
props.onBlur(props.name);
|
|
5364
4689
|
};
|
|
5365
|
-
return (jsxs(Container$
|
|
4690
|
+
return (jsxs(Container$g, { children: [jsx$1(Label$8, __assign$2({ as: "label", htmlFor: props.name }, { children: props.label })), jsx$1(Spacer, { vertical: 5 }), jsx$1(Input.Date, { defaultValue: props.defaultValue, min: props.min, max: props.max, autoComplete: props.autoComplete, autoFocus: props.autoFocus, disabled: props.disabled, id: props.name, onChange: onChange, onBlur: onBlur })] }));
|
|
5366
4691
|
};
|
|
5367
4692
|
|
|
5368
|
-
var StyledIconButton = styled(StyledButton)(templateObject_1$
|
|
5369
|
-
var GhostIconButton = styled(GhostButton)(templateObject_2$
|
|
5370
|
-
var templateObject_1$
|
|
4693
|
+
var StyledIconButton = styled(StyledButton)(templateObject_1$r || (templateObject_1$r = __makeTemplateObject$1(["\n min-width: 40px;\n max-width: 40px;\n min-height: 40px;\n max-height: 40px;\n padding: 2px 0 0 0;\n\n > div:first-child {\n margin-top: -2px;\n }\n\n :active {\n min-height: 38px;\n max-height: 38px;\n margin-top: 2px;\n }\n"], ["\n min-width: 40px;\n max-width: 40px;\n min-height: 40px;\n max-height: 40px;\n padding: 2px 0 0 0;\n\n > div:first-child {\n margin-top: -2px;\n }\n\n :active {\n min-height: 38px;\n max-height: 38px;\n margin-top: 2px;\n }\n"])));
|
|
4694
|
+
var GhostIconButton = styled(GhostButton)(templateObject_2$m || (templateObject_2$m = __makeTemplateObject$1(["\n min-width: 40px;\n max-width: 40px;\n min-height: 40px;\n max-height: 40px;\n padding: 2px 0 0 0;\n\n :active {\n min-height: 40px;\n max-height: 40px;\n margin-top: 2px;\n }\n"], ["\n min-width: 40px;\n max-width: 40px;\n min-height: 40px;\n max-height: 40px;\n padding: 2px 0 0 0;\n\n :active {\n min-height: 40px;\n max-height: 40px;\n margin-top: 2px;\n }\n"])));
|
|
4695
|
+
var templateObject_1$r, templateObject_2$m;
|
|
5371
4696
|
|
|
5372
4697
|
var IconButton = function (props) {
|
|
5373
4698
|
if (props.color === "white")
|
|
@@ -5375,9 +4700,9 @@ var IconButton = function (props) {
|
|
|
5375
4700
|
return (jsx$1(StyledIconButton, __assign$2({}, props, { children: jsx$1(Icon, { type: props.icon, size: "small", color: "white" }) })));
|
|
5376
4701
|
};
|
|
5377
4702
|
|
|
5378
|
-
var Container$
|
|
5379
|
-
var Label$7 = styled(StyledParagraph)(templateObject_2$
|
|
5380
|
-
var templateObject_1$
|
|
4703
|
+
var Container$f = styled.div(templateObject_1$q || (templateObject_1$q = __makeTemplateObject$1(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n flex-wrap: wrap;\n"], ["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n flex-wrap: wrap;\n"])));
|
|
4704
|
+
var Label$7 = styled(StyledParagraph)(templateObject_2$l || (templateObject_2$l = __makeTemplateObject$1(["\n font-weight: 500;\n color: ", ";\n"], ["\n font-weight: 500;\n color: ", ";\n"])), theme.colors.darkGray.base);
|
|
4705
|
+
var templateObject_1$q, templateObject_2$l;
|
|
5381
4706
|
|
|
5382
4707
|
var InputField = function (props) {
|
|
5383
4708
|
var onChange = function (value) {
|
|
@@ -5388,10 +4713,10 @@ var InputField = function (props) {
|
|
|
5388
4713
|
if (props.onBlur)
|
|
5389
4714
|
props.onBlur(props.name);
|
|
5390
4715
|
};
|
|
5391
|
-
return (jsxs(Container$
|
|
4716
|
+
return (jsxs(Container$f, { children: [jsx$1(Label$7, __assign$2({ as: "label", htmlFor: props.name }, { children: props.label })), jsx$1(Spacer, { vertical: 5 }), jsx$1(Input, { defaultValue: props.defaultValue, autoComplete: props.autoComplete, autoFocus: props.autoFocus, disabled: props.disabled, placeholder: props.placeholder, id: props.name, onChange: onChange, onBlur: onBlur }), props.tips && (jsxs("div", __assign$2({ style: { marginLeft: "5px" } }, { children: [jsx$1(Spacer, { vertical: 5 }), props.tips.map(function (tip, index) { return (jsxs(Paragraph, __assign$2({ size: "small", weight: "regular" }, { children: ["\u2022 ", tip] }), "".concat(tip, "-").concat(index))); })] })))] }));
|
|
5392
4717
|
};
|
|
5393
4718
|
|
|
5394
|
-
var Container$
|
|
4719
|
+
var Container$e = styled.div(templateObject_1$p || (templateObject_1$p = __makeTemplateObject$1(["\n min-width: 74px;\n max-width: 74px;\n width: fit-content;\n height: 74px;\n background-color: ", ";\n box-sizing: border-box;\n\n border: 4px solid;\n border-radius: 6px;\n border-color: ", ";\n\n padding: 8px 24px;\n margin-right: 6px;\n margin-left: 6px;\n margin-bottom: ", ";\n\n display: flex;\n justify-content: center;\n align-items: center;\n\n position: relative;\n text-transform: uppercase;\n\n h1 {\n color: ", ";\n }\n\n > svg {\n fill: ", ";\n }\n"], ["\n min-width: 74px;\n max-width: 74px;\n width: fit-content;\n height: 74px;\n background-color: ", ";\n box-sizing: border-box;\n\n border: 4px solid;\n border-radius: 6px;\n border-color: ", ";\n\n padding: 8px 24px;\n margin-right: 6px;\n margin-left: 6px;\n margin-bottom: ", ";\n\n display: flex;\n justify-content: center;\n align-items: center;\n\n position: relative;\n text-transform: uppercase;\n\n h1 {\n color: ", ";\n }\n\n > svg {\n fill: ", ";\n }\n"])), function (_a) {
|
|
5395
4720
|
var status = _a.status, color = _a.color;
|
|
5396
4721
|
switch (status) {
|
|
5397
4722
|
case "passed":
|
|
@@ -5435,23 +4760,23 @@ var Container$d = styled.div(templateObject_1$o || (templateObject_1$o = __makeT
|
|
|
5435
4760
|
return theme.colors.darkGray.light;
|
|
5436
4761
|
}
|
|
5437
4762
|
});
|
|
5438
|
-
var CheckIconWrapper = styled.div(templateObject_2$
|
|
5439
|
-
var templateObject_1$
|
|
4763
|
+
var CheckIconWrapper = styled.div(templateObject_2$k || (templateObject_2$k = __makeTemplateObject$1(["\n position: absolute;\n top: 0;\n right: 0;\n"], ["\n position: absolute;\n top: 0;\n right: 0;\n"])));
|
|
4764
|
+
var templateObject_1$p, templateObject_2$k;
|
|
5440
4765
|
|
|
5441
|
-
var Key$1 = function (props) { return (jsxs(Container$
|
|
4766
|
+
var Key$1 = function (props) { return (jsxs(Container$e, __assign$2({}, props, { children: [props.status === "passed" && (jsx$1(CheckIconWrapper, { children: jsx$1(Icon, { type: "check", color: "green", size: "small" }) })), props.char === " " ? (jsx$1("svg", __assign$2({ width: "28", height: "28", viewBox: "0 0 28 1", style: {
|
|
5442
4767
|
marginTop: "13px",
|
|
5443
4768
|
transform: "scale(2)",
|
|
5444
4769
|
} }, { children: jsx$1("path", { d: "M0 4.5V1C0 0.447715 0.447715 0 1 0H2C2.55228 0 3 0.447715 3 1V4H25V1C25 0.447715 25.4477 0 26 0H27C27.5523 0 28 0.447715 28 1V4.5C28 5.88071 26.8807 7 25.5 7H2.5C1.11929 7 0 5.88071 0 4.5Z" }) }))) : (jsx$1(Heading, __assign$2({ type: "h1" }, { children: props.char })))] }))); };
|
|
5445
4770
|
|
|
5446
|
-
var Wrapper$2 = styled.a(templateObject_1$
|
|
4771
|
+
var Wrapper$2 = styled.a(templateObject_1$o || (templateObject_1$o = __makeTemplateObject$1(["\n width: fit-content;\n display: flex;\n align-items: center;\n cursor: pointer;\n text-decoration: none;\n\n > div {\n width: 19px;\n height: 19px;\n margin-top: 3px;\n margin-right: ", ";\n margin-left: ", ";\n }\n"], ["\n width: fit-content;\n display: flex;\n align-items: center;\n cursor: pointer;\n text-decoration: none;\n\n > div {\n width: 19px;\n height: 19px;\n margin-top: 3px;\n margin-right: ", ";\n margin-left: ", ";\n }\n"])), function (_a) {
|
|
5447
4772
|
var chevron = _a.chevron;
|
|
5448
4773
|
return (chevron === "left" ? "4px" : "");
|
|
5449
4774
|
}, function (_a) {
|
|
5450
4775
|
var chevron = _a.chevron;
|
|
5451
4776
|
return (chevron === "right" ? "4px" : "");
|
|
5452
4777
|
});
|
|
5453
|
-
var StyledLink = styled(StyledParagraph)(templateObject_2$
|
|
5454
|
-
var templateObject_1$
|
|
4778
|
+
var StyledLink = styled(StyledParagraph)(templateObject_2$j || (templateObject_2$j = __makeTemplateObject$1(["\n color: ", ";\n\n :hover {\n text-decoration: underline;\n }\n"], ["\n color: ", ";\n\n :hover {\n text-decoration: underline;\n }\n"])), theme.colors.darkGray.dark);
|
|
4779
|
+
var templateObject_1$o, templateObject_2$j;
|
|
5455
4780
|
|
|
5456
4781
|
var Link = function (props) {
|
|
5457
4782
|
var onClick = function (e) {
|
|
@@ -5463,15 +4788,15 @@ var Link = function (props) {
|
|
|
5463
4788
|
return (jsxs(Wrapper$2, __assign$2({ chevron: props.chevron, href: props.href, onClick: onClick }, { children: [props.chevron === "left" && jsx$1(Icon, { type: "chevronLeft", color: "green" }), jsx$1(StyledLink, __assign$2({ size: "large" }, { children: props.children })), props.chevron !== "none" && props.chevron !== "left" && (jsx$1(Icon, { type: "chevronRight", color: "green" }))] })));
|
|
5464
4789
|
};
|
|
5465
4790
|
|
|
5466
|
-
var Container$
|
|
4791
|
+
var Container$d = styled.div(templateObject_1$n || (templateObject_1$n = __makeTemplateObject$1(["\n display: flex;\n flex-direction: column;\n align-items: center;\n padding-top: ", ";\n"], ["\n display: flex;\n flex-direction: column;\n align-items: center;\n padding-top: ", ";\n"])), function (_a) {
|
|
5467
4792
|
var text = _a.text;
|
|
5468
4793
|
return (text ? "20px" : "");
|
|
5469
4794
|
});
|
|
5470
|
-
var templateObject_1$
|
|
4795
|
+
var templateObject_1$n;
|
|
5471
4796
|
|
|
5472
|
-
var Loading = function (props) { return (jsxs(Container$
|
|
4797
|
+
var Loading = function (props) { return (jsxs(Container$d, __assign$2({}, props, { children: [jsx$1(_default, { color: theme.colors[props.color].base, speedMultiplier: 0.5 }), props.text && (jsxs(Fragment$1, { children: [jsx$1(Spacer, { vertical: 20 }), jsx$1(Heading, __assign$2({ type: "h6", color: props.textColor || "black" }, { children: props.text }))] }))] }))); };
|
|
5473
4798
|
|
|
5474
|
-
var Container$
|
|
4799
|
+
var Container$c = styled.div(templateObject_1$m || (templateObject_1$m = __makeTemplateObject$1(["\n padding: 15px;\n background-color: ", ";\n border-radius: 6px 6px 0 0;\n position: relative;\n cursor: pointer;\n"], ["\n padding: 15px;\n background-color: ", ";\n border-radius: 6px 6px 0 0;\n position: relative;\n cursor: pointer;\n"])), function (_a) {
|
|
5475
4800
|
var dropdownIsVisible = _a.dropdownIsVisible, color = _a.color;
|
|
5476
4801
|
if (dropdownIsVisible) {
|
|
5477
4802
|
switch (color) {
|
|
@@ -5484,8 +4809,8 @@ var Container$b = styled.div(templateObject_1$l || (templateObject_1$l = __makeT
|
|
|
5484
4809
|
}
|
|
5485
4810
|
return "";
|
|
5486
4811
|
});
|
|
5487
|
-
var SelectedLocaleWrapper = styled.div(templateObject_2$
|
|
5488
|
-
var DropdownContainer = styled.div(templateObject_3$
|
|
4812
|
+
var SelectedLocaleWrapper = styled.div(templateObject_2$i || (templateObject_2$i = __makeTemplateObject$1(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n\n > div:first-child {\n display: flex;\n align-items: center;\n margin-right: 10px;\n }\n"], ["\n display: flex;\n justify-content: space-between;\n align-items: center;\n\n > div:first-child {\n display: flex;\n align-items: center;\n margin-right: 10px;\n }\n"])));
|
|
4813
|
+
var DropdownContainer = styled.div(templateObject_3$8 || (templateObject_3$8 = __makeTemplateObject$1(["\n min-width: 100%;\n background-color: ", ";\n overflow: hidden;\n border-radius: 6px 0 6px 6px;\n box-shadow: 0px 2px 0px rgb(0 0 0 / 20%);\n position: absolute;\n top: 50px;\n right: 0;\n"], ["\n min-width: 100%;\n background-color: ", ";\n overflow: hidden;\n border-radius: 6px 0 6px 6px;\n box-shadow: 0px 2px 0px rgb(0 0 0 / 20%);\n position: absolute;\n top: 50px;\n right: 0;\n"])), function (_a) {
|
|
5489
4814
|
var color = _a.color;
|
|
5490
4815
|
switch (color) {
|
|
5491
4816
|
default:
|
|
@@ -5495,8 +4820,8 @@ var DropdownContainer = styled.div(templateObject_3$7 || (templateObject_3$7 = _
|
|
|
5495
4820
|
return theme.colors.lightGray.dark;
|
|
5496
4821
|
}
|
|
5497
4822
|
});
|
|
5498
|
-
var LocaleWrapper = styled.div(templateObject_4$
|
|
5499
|
-
var templateObject_1$
|
|
4823
|
+
var LocaleWrapper = styled.div(templateObject_4$6 || (templateObject_4$6 = __makeTemplateObject$1(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 10px 15px;\n\n :not(:last-child) {\n border-bottom: 1px solid ", ";\n }\n\n > div:first-child {\n display: flex;\n align-items: center;\n margin-right: 10px;\n }\n\n p {\n white-space: nowrap;\n }\n\n :hover {\n cursor: pointer;\n background-color: ", ";\n\n p {\n color: ", ";\n }\n svg {\n fill: ", ";\n }\n }\n"], ["\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 10px 15px;\n\n :not(:last-child) {\n border-bottom: 1px solid ", ";\n }\n\n > div:first-child {\n display: flex;\n align-items: center;\n margin-right: 10px;\n }\n\n p {\n white-space: nowrap;\n }\n\n :hover {\n cursor: pointer;\n background-color: ", ";\n\n p {\n color: ", ";\n }\n svg {\n fill: ", ";\n }\n }\n"])), theme.colors.lightGray.darker, theme.colors.lightGray.base, theme.colors.blue.base, theme.colors.blue.base);
|
|
4824
|
+
var templateObject_1$m, templateObject_2$i, templateObject_3$8, templateObject_4$6;
|
|
5500
4825
|
|
|
5501
4826
|
var LocaleSelect = function (props) {
|
|
5502
4827
|
var _a = useState(false), dropdownIsVisible = _a[0], setDropdownIsVisible = _a[1];
|
|
@@ -5505,22 +4830,22 @@ var LocaleSelect = function (props) {
|
|
|
5505
4830
|
setLocale(locale);
|
|
5506
4831
|
props.onChange(locale);
|
|
5507
4832
|
};
|
|
5508
|
-
return (jsxs(Container$
|
|
4833
|
+
return (jsxs(Container$c, __assign$2({ color: props.color || "light", dropdownIsVisible: dropdownIsVisible, onClick: function () { return setDropdownIsVisible(!dropdownIsVisible); }, onMouseLeave: function () { return setDropdownIsVisible(false); } }, { children: [jsxs(SelectedLocaleWrapper, { children: [jsxs("div", { children: [jsx$1(Flag, { locale: locale }), jsx$1(Spacer, { horizontal: 10 }), jsx$1(Heading, __assign$2({ type: "h6" }, { children: getNativeLanguageByLocale_1(locale) }))] }), dropdownIsVisible ? (jsx$1(Icon, { type: "chevronUp", size: "small", color: "darkGray" })) : (jsx$1(Icon, { type: "chevronDown", size: "small", color: "darkGray" }))] }), dropdownIsVisible && (jsx$1(DropdownContainer, __assign$2({ color: props.color || "light" }, { children: props.locales
|
|
5509
4834
|
.filter(function (l) { return l !== locale; })
|
|
5510
4835
|
.map(function (locale) { return (jsxs(LocaleWrapper, __assign$2({ onClick: function () { return onSelectLocale(locale); } }, { children: [jsxs("div", { children: [jsx$1(Flag, { locale: locale }), jsx$1(Spacer, { horizontal: 10 }), jsx$1(Paragraph, __assign$2({ size: "small", weight: "regular", color: "darkGray" }, { children: getNativeLanguageByLocale_1(locale) }))] }), jsx$1(Icon, { type: "chevronRight", size: "small", color: "darkGray" })] }), locale)); }) })))] })));
|
|
5511
4836
|
};
|
|
5512
4837
|
|
|
5513
|
-
var Wrapper$1 = styled.div(templateObject_1$
|
|
5514
|
-
var templateObject_1$
|
|
4838
|
+
var Wrapper$1 = styled.div(templateObject_1$l || (templateObject_1$l = __makeTemplateObject$1(["\n width: 100%;\n min-width: 200px;\n display: flex;\n justify-content: space-between;\n\n > div {\n display: flex;\n align-items: center;\n }\n"], ["\n width: 100%;\n min-width: 200px;\n display: flex;\n justify-content: space-between;\n\n > div {\n display: flex;\n align-items: center;\n }\n"])));
|
|
4839
|
+
var templateObject_1$l;
|
|
5515
4840
|
|
|
5516
|
-
var Medals = function (props) { return (jsxs(Wrapper$1, { children: [jsxs("div", { children: [jsx$1(Medal, { type:
|
|
4841
|
+
var Medals = function (props) { return (jsxs(Wrapper$1, { children: [jsxs("div", { children: [jsx$1(Medal, { type: Medal$1.GOLD }), jsx$1(Spacer, { horizontal: 5 }), jsxs(Heading, __assign$2({ type: "h6" }, { children: ["x ", props.gold || 0] }))] }), jsxs("div", { children: [jsx$1(Medal, { type: Medal$1.SILVER }), jsx$1(Spacer, { horizontal: 5 }), jsxs(Heading, __assign$2({ type: "h6" }, { children: ["x ", props.silver || 0] }))] }), jsxs("div", { children: [jsx$1(Medal, { type: Medal$1.BRONZE }), jsx$1(Spacer, { horizontal: 5 }), jsxs(Heading, __assign$2({ type: "h6" }, { children: ["x ", props.bronze || 0] }))] })] })); };
|
|
5517
4842
|
|
|
5518
|
-
var NotificationContainer = styled.div(templateObject_1$
|
|
4843
|
+
var NotificationContainer = styled.div(templateObject_1$k || (templateObject_1$k = __makeTemplateObject$1(["\n width: fit-content;\n max-width: 460px;\n padding: 15px;\n border-radius: 6px;\n background-color: ", ";\n box-shadow: 0px 2px 0px rgb(0 0 0 / 20%);\n\n > div:first-child {\n display: flex;\n justify-content: space-between;\n align-items: center;\n margin-bottom: 15px;\n }\n"], ["\n width: fit-content;\n max-width: 460px;\n padding: 15px;\n border-radius: 6px;\n background-color: ", ";\n box-shadow: 0px 2px 0px rgb(0 0 0 / 20%);\n\n > div:first-child {\n display: flex;\n justify-content: space-between;\n align-items: center;\n margin-bottom: 15px;\n }\n"])), function (_a) {
|
|
5519
4844
|
var contrast = _a.contrast;
|
|
5520
4845
|
return contrast ? theme.colors.lightGray.light : theme.colors.lightGray.base;
|
|
5521
4846
|
});
|
|
5522
|
-
var ButtonContainer = styled.div(templateObject_2$
|
|
5523
|
-
var templateObject_1$
|
|
4847
|
+
var ButtonContainer = styled.div(templateObject_2$h || (templateObject_2$h = __makeTemplateObject$1(["\n margin-top: 20px;\n display: flex;\n\n > *:first-child {\n margin-right: 10px;\n }\n"], ["\n margin-top: 20px;\n display: flex;\n\n > *:first-child {\n margin-right: 10px;\n }\n"])));
|
|
4848
|
+
var templateObject_1$k, templateObject_2$h;
|
|
5524
4849
|
|
|
5525
4850
|
var Notification = function (props) {
|
|
5526
4851
|
if (!props.isVisible)
|
|
@@ -5528,9 +4853,9 @@ var Notification = function (props) {
|
|
|
5528
4853
|
return (jsxs(NotificationContainer, __assign$2({ contrast: !!props.contrast }, { children: [jsxs("div", { children: [jsx$1(Heading, __assign$2({ type: "h4" }, { children: props.title })), props.onClose && (jsxs(Fragment$1, { children: [jsx$1(Spacer, { horizontal: 15 }), jsx$1(IconButton, { icon: "cross", color: "green", onClick: props.onClose })] }))] }), jsx$1(Paragraph, __assign$2({ size: "small", weight: "regular", color: "darkGray" }, { children: props.content })), props.buttons && (jsx$1(ButtonContainer, { children: props.buttons.map(function (button, index) { return (createElement(Button, __assign$2({}, button, { size: "small", color: index + 1 === props.buttons.length ? "blue" : "white", key: "button-".concat(index) }))); }) }))] })));
|
|
5529
4854
|
};
|
|
5530
4855
|
|
|
5531
|
-
var Container$
|
|
5532
|
-
var Label$6 = styled(StyledParagraph)(templateObject_2$
|
|
5533
|
-
var templateObject_1$
|
|
4856
|
+
var Container$b = styled.div(templateObject_1$j || (templateObject_1$j = __makeTemplateObject$1(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n flex-wrap: wrap;\n"], ["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n flex-wrap: wrap;\n"])));
|
|
4857
|
+
var Label$6 = styled(StyledParagraph)(templateObject_2$g || (templateObject_2$g = __makeTemplateObject$1(["\n font-weight: 500;\n color: ", ";\n"], ["\n font-weight: 500;\n color: ", ";\n"])), theme.colors.darkGray.base);
|
|
4858
|
+
var templateObject_1$j, templateObject_2$g;
|
|
5534
4859
|
|
|
5535
4860
|
var NumberField = function (props) {
|
|
5536
4861
|
var onChange = function (value) {
|
|
@@ -5541,7 +4866,7 @@ var NumberField = function (props) {
|
|
|
5541
4866
|
if (props.onBlur)
|
|
5542
4867
|
props.onBlur(props.name);
|
|
5543
4868
|
};
|
|
5544
|
-
return (jsxs(Container$
|
|
4869
|
+
return (jsxs(Container$b, { children: [jsx$1(Label$6, __assign$2({ as: "label", htmlFor: props.name }, { children: props.label })), jsx$1(Spacer, { vertical: 5 }), jsx$1(Number$1, { min: props.min, max: props.max, defaultValue: props.defaultValue, autoComplete: props.autoComplete, disabled: props.disabled, autoFocus: props.autoFocus, id: props.name, onChange: onChange, onBlur: onBlur })] }));
|
|
5545
4870
|
};
|
|
5546
4871
|
|
|
5547
4872
|
var expressions = {};
|
|
@@ -5585,15 +4910,15 @@ var isStrongPassword = function (password) {
|
|
|
5585
4910
|
exports.isStrongPassword = isStrongPassword;
|
|
5586
4911
|
}(expressions));
|
|
5587
4912
|
|
|
5588
|
-
var Container$
|
|
5589
|
-
var Label$5 = styled(StyledParagraph)(templateObject_2$
|
|
5590
|
-
var HelperContainer = styled.div(templateObject_3$
|
|
5591
|
-
var fadeIn =
|
|
5592
|
-
var Helper = styled(StyledParagraph)(templateObject_5$
|
|
4913
|
+
var Container$a = styled.div(templateObject_1$i || (templateObject_1$i = __makeTemplateObject$1(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n flex-wrap: wrap;\n"], ["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n flex-wrap: wrap;\n"])));
|
|
4914
|
+
var Label$5 = styled(StyledParagraph)(templateObject_2$f || (templateObject_2$f = __makeTemplateObject$1(["\n font-weight: 500;\n color: ", ";\n"], ["\n font-weight: 500;\n color: ", ";\n"])), theme.colors.darkGray.base);
|
|
4915
|
+
var HelperContainer = styled.div(templateObject_3$7 || (templateObject_3$7 = __makeTemplateObject$1(["\n margin-top: 5px;\n padding-left: 5px;\n"], ["\n margin-top: 5px;\n padding-left: 5px;\n"])));
|
|
4916
|
+
var fadeIn = keyframes$1(templateObject_4$5 || (templateObject_4$5 = __makeTemplateObject$1(["\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n"], ["\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n"])));
|
|
4917
|
+
var Helper = styled(StyledParagraph)(templateObject_5$3 || (templateObject_5$3 = __makeTemplateObject$1(["\n font-weight: 400;\n font-size: 14px;\n color: ", ";\n animation: ", " 0.3s linear;\n"], ["\n font-weight: 400;\n font-size: 14px;\n color: ", ";\n animation: ", " 0.3s linear;\n"])), function (_a) {
|
|
5593
4918
|
var isOk = _a.isOk;
|
|
5594
4919
|
return isOk ? theme.colors.green.base : theme.colors.darkGray.light;
|
|
5595
4920
|
}, fadeIn);
|
|
5596
|
-
var templateObject_1$
|
|
4921
|
+
var templateObject_1$i, templateObject_2$f, templateObject_3$7, templateObject_4$5, templateObject_5$3;
|
|
5597
4922
|
|
|
5598
4923
|
var translations = {
|
|
5599
4924
|
"nl-NL": {
|
|
@@ -5650,7 +4975,7 @@ var PasswordInputField = function (props) {
|
|
|
5650
4975
|
if (props.onBlur)
|
|
5651
4976
|
props.onBlur(props.name);
|
|
5652
4977
|
};
|
|
5653
|
-
return (jsxs(Container$
|
|
4978
|
+
return (jsxs(Container$a, { children: [jsx$1(Label$5, __assign$2({ as: "label", htmlFor: props.name }, { children: props.label })), jsx$1(Spacer, { vertical: 5 }), jsx$1(Input.Password, { defaultValue: props.defaultValue, autoComplete: props.autoComplete, autoFocus: props.autoFocus, disabled: props.disabled, placeholder: props.placeholder, id: props.name, onChange: onChange, onKeyPress: onKeyPress, onBlur: onBlur }), props.helperLocale && value.length ? (jsxs(HelperContainer, { children: [jsxs(Helper, __assign$2({ isOk: expressions.hasCapitalLetter(value) }, { children: ["\u2022 ", translations[props.helperLocale].capitalLetter] })), jsxs(Helper, __assign$2({ isOk: expressions.hasNumber(value) }, { children: ["\u2022 ", translations[props.helperLocale].number] })), jsxs(Helper, __assign$2({ isOk: expressions.hasSpecialCharacter(value) }, { children: ["\u2022 ", translations[props.helperLocale].specialCharacter] })), jsxs(Helper, __assign$2({ isOk: value.length >= 8 }, { children: ["\u2022 ", translations[props.helperLocale].length] }))] })) : null] }));
|
|
5654
4979
|
};
|
|
5655
4980
|
|
|
5656
4981
|
var generateRandomString = function (length) {
|
|
@@ -5663,7 +4988,7 @@ var generateRandomString = function (length) {
|
|
|
5663
4988
|
return string;
|
|
5664
4989
|
};
|
|
5665
4990
|
|
|
5666
|
-
var PopupContainer = styled.div(templateObject_1$
|
|
4991
|
+
var PopupContainer = styled.div(templateObject_1$h || (templateObject_1$h = __makeTemplateObject$1(["\n width: fit-content;\n max-width: 25vw;\n position: fixed;\n opacity: ", ";\n top: ", ";\n left: ", ";\n padding: 15px;\n margin-top: 10px;\n border-radius: 6px;\n background-color: ", ";\n box-shadow: 0px 2px 0px rgb(0 0 0 / 20%);\n pointer-events: none;\n z-index: 9;\n"], ["\n width: fit-content;\n max-width: 25vw;\n position: fixed;\n opacity: ", ";\n top: ", ";\n left: ", ";\n padding: 15px;\n margin-top: 10px;\n border-radius: 6px;\n background-color: ", ";\n box-shadow: 0px 2px 0px rgb(0 0 0 / 20%);\n pointer-events: none;\n z-index: 9;\n"])), function (_a) {
|
|
5667
4992
|
var isVisible = _a.isVisible;
|
|
5668
4993
|
return (isVisible ? "100%" : "0%");
|
|
5669
4994
|
}, function (_a) {
|
|
@@ -5676,7 +5001,7 @@ var PopupContainer = styled.div(templateObject_1$g || (templateObject_1$g = __ma
|
|
|
5676
5001
|
var contrast = _a.contrast;
|
|
5677
5002
|
return contrast ? theme.colors.lightGray.light : theme.colors.lightGray.base;
|
|
5678
5003
|
});
|
|
5679
|
-
var templateObject_1$
|
|
5004
|
+
var templateObject_1$h;
|
|
5680
5005
|
|
|
5681
5006
|
var Popup = function (props) {
|
|
5682
5007
|
var popupRef = useRef(null);
|
|
@@ -5700,9 +5025,9 @@ var Popup = function (props) {
|
|
|
5700
5025
|
var id = generateRandomString(5);
|
|
5701
5026
|
setTriggerId(id);
|
|
5702
5027
|
}, []);
|
|
5703
|
-
var children =
|
|
5704
|
-
if (
|
|
5705
|
-
return
|
|
5028
|
+
var children = React__default.Children.map(props.children, function (child, index) {
|
|
5029
|
+
if (React__default.isValidElement(child) && index <= 0) {
|
|
5030
|
+
return React__default.cloneElement(child, {
|
|
5706
5031
|
id: triggerId,
|
|
5707
5032
|
onMouseEnter: function () { return showPopup(); },
|
|
5708
5033
|
onMouseLeave: function () { return setIsVisible(false); },
|
|
@@ -5712,24 +5037,24 @@ var Popup = function (props) {
|
|
|
5712
5037
|
return (jsxs(Fragment$1, { children: [children, jsxs(PopupContainer, __assign$2({}, position, { isVisible: isVisible, ref: popupRef, contrast: props.contrast }, { children: [props.title && (jsxs(Fragment$1, { children: [jsx$1(Heading, __assign$2({ type: "h6" }, { children: props.title })), jsx$1(Spacer, { vertical: 10 })] })), jsx$1(Paragraph, __assign$2({ size: "small", weight: "regular" }, { children: props.content }))] }))] }));
|
|
5713
5038
|
};
|
|
5714
5039
|
|
|
5715
|
-
var Wrapper = styled.div(templateObject_1$
|
|
5716
|
-
var StyledProgressBar = styled.div(templateObject_2$
|
|
5040
|
+
var Wrapper = styled.div(templateObject_1$g || (templateObject_1$g = __makeTemplateObject$1(["\n width: 100%;\n display: flex;\n align-items: center;\n"], ["\n width: 100%;\n display: flex;\n align-items: center;\n"])));
|
|
5041
|
+
var StyledProgressBar = styled.div(templateObject_2$e || (templateObject_2$e = __makeTemplateObject$1(["\n width: 100%;\n height: 15px;\n position: relative;\n background-color: ", ";\n border-radius: 8px;\n margin-right: ", ";\n"], ["\n width: 100%;\n height: 15px;\n position: relative;\n background-color: ", ";\n border-radius: 8px;\n margin-right: ", ";\n"])), theme.colors.lightGray.dark, function (_a) {
|
|
5717
5042
|
var showInfo = _a.showInfo;
|
|
5718
5043
|
return (showInfo ? "10px" : "");
|
|
5719
5044
|
});
|
|
5720
|
-
var Indicator$1 = styled.div(templateObject_3$
|
|
5045
|
+
var Indicator$1 = styled.div(templateObject_3$6 || (templateObject_3$6 = __makeTemplateObject$1(["\n width: ", ";\n max-width: calc(100% - 6px);\n height: 9px;\n position: relative;\n background-color: ", ";\n border-radius: 8px;\n top: 3px;\n left: 3px;\n"], ["\n width: ", ";\n max-width: calc(100% - 6px);\n height: 9px;\n position: relative;\n background-color: ", ";\n border-radius: 8px;\n top: 3px;\n left: 3px;\n"])), function (_a) {
|
|
5721
5046
|
var percent = _a.percent;
|
|
5722
5047
|
return "calc(".concat(percent, "% - 6px)");
|
|
5723
5048
|
}, function (_a) {
|
|
5724
5049
|
var color = _a.color;
|
|
5725
5050
|
return color ? theme.colors[color].base : theme.colors.green.base;
|
|
5726
5051
|
});
|
|
5727
|
-
var templateObject_1$
|
|
5052
|
+
var templateObject_1$g, templateObject_2$e, templateObject_3$6;
|
|
5728
5053
|
|
|
5729
5054
|
var ProgressBar = function (props) { return (jsxs(Wrapper, { children: [jsx$1(StyledProgressBar, __assign$2({}, props, { children: jsx$1(Indicator$1, __assign$2({}, props)) })), props.showInfo && (jsx$1(Paragraph, __assign$2({ size: "small" }, { children: props.info ? props.info : "".concat(props.percent, "%") })))] })); };
|
|
5730
5055
|
|
|
5731
|
-
var Container$
|
|
5732
|
-
var Step$1 = styled.li(templateObject_2$
|
|
5056
|
+
var Container$9 = styled.ol(templateObject_1$f || (templateObject_1$f = __makeTemplateObject$1(["\n display: flex;\n flex-wrap: wrap;\n margin: 0;\n padding: 0;\n"], ["\n display: flex;\n flex-wrap: wrap;\n margin: 0;\n padding: 0;\n"])));
|
|
5057
|
+
var Step$1 = styled.li(templateObject_2$d || (templateObject_2$d = __makeTemplateObject$1(["\n flex: 1;\n display: flex;\n flex-direction: column;\n text-align: center;\n\n > div:first-child {\n width: 32px;\n height: 32px;\n border-radius: 50%;\n box-sizing: initial;\n margin: 0 auto;\n cursor: ", ";\n\n display: flex;\n justify-content: center;\n align-items: center;\n\n background-color: ", ";\n border: 10px solid ", ";\n position: relative;\n z-index: 1;\n }\n\n > div h6 {\n color: ", ";\n }\n\n p {\n color: ", ";\n }\n\n :not(:last-child):after {\n content: \"\";\n height: 4px;\n position: relative;\n top: ", ";\n left: 50%;\n background-color: ", ";\n order: -1;\n }\n\n :last-child {\n margin-top: 4px;\n }\n"], ["\n flex: 1;\n display: flex;\n flex-direction: column;\n text-align: center;\n\n > div:first-child {\n width: 32px;\n height: 32px;\n border-radius: 50%;\n box-sizing: initial;\n margin: 0 auto;\n cursor: ", ";\n\n display: flex;\n justify-content: center;\n align-items: center;\n\n background-color: ", ";\n border: 10px solid ", ";\n position: relative;\n z-index: 1;\n }\n\n > div h6 {\n color: ", ";\n }\n\n p {\n color: ", ";\n }\n\n :not(:last-child):after {\n content: \"\";\n height: 4px;\n position: relative;\n top: ", ";\n left: 50%;\n background-color: ", ";\n order: -1;\n }\n\n :last-child {\n margin-top: 4px;\n }\n"])), function (_a) {
|
|
5733
5058
|
var status = _a.status;
|
|
5734
5059
|
return (!!status ? "pointer" : "not-allowed");
|
|
5735
5060
|
}, function (_a) {
|
|
@@ -5751,9 +5076,9 @@ var Step$1 = styled.li(templateObject_2$c || (templateObject_2$c = __makeTemplat
|
|
|
5751
5076
|
var hasTitle = _a.hasTitle;
|
|
5752
5077
|
return (hasTitle ? "calc(50% - 12px)" : "50%");
|
|
5753
5078
|
}, theme.colors.lightGray.dark);
|
|
5754
|
-
var templateObject_1$
|
|
5079
|
+
var templateObject_1$f, templateObject_2$d;
|
|
5755
5080
|
|
|
5756
|
-
var Steps$2 = function (props) { return (jsx$1(Container$
|
|
5081
|
+
var Steps$2 = function (props) { return (jsx$1(Container$9, { children: props.steps.map(function (_a, index) {
|
|
5757
5082
|
var title = _a.title, onClick = _a.onClick;
|
|
5758
5083
|
var step = index + 1;
|
|
5759
5084
|
var status = props.current > step
|
|
@@ -5768,8 +5093,8 @@ var Steps$2 = function (props) { return (jsx$1(Container$8, { children: props.st
|
|
|
5768
5093
|
return (jsxs(Step$1, __assign$2({ status: status, hasTitle: !!title }, { children: [jsx$1("div", __assign$2({ onClick: onClickStep }, { children: status === "passed" ? (jsx$1(Icon, { type: "check", size: "small", color: "white" })) : (jsx$1(Heading, __assign$2({ type: "h6" }, { children: step }))) })), title && jsx$1(Paragraph, { children: title })] }), "".concat(title, "-").concat(step)));
|
|
5769
5094
|
}) })); };
|
|
5770
5095
|
|
|
5771
|
-
var Container$
|
|
5772
|
-
var Step = styled.li(templateObject_2$
|
|
5096
|
+
var Container$8 = styled.ol(templateObject_1$e || (templateObject_1$e = __makeTemplateObject$1(["\n display: flex;\n flex-direction: column;\n flex-wrap: wrap;\n margin: 0;\n padding: 0;\n"], ["\n display: flex;\n flex-direction: column;\n flex-wrap: wrap;\n margin: 0;\n padding: 0;\n"])));
|
|
5097
|
+
var Step = styled.li(templateObject_2$c || (templateObject_2$c = __makeTemplateObject$1(["\n display: flex;\n align-items: center;\n box-shadow: inset 0px -1px 0px ", ";\n padding: 20px 0 20px 20px;\n cursor: ", ";\n\n > div:first-child {\n width: 32px;\n height: 32px;\n border-radius: 50%;\n box-sizing: initial;\n margin-right: 10px;\n\n display: flex;\n justify-content: center;\n align-items: center;\n\n background-color: ", ";\n }\n\n > div h6 {\n color: ", ";\n }\n\n p {\n color: ", ";\n }\n\n :hover {\n background-color: ", ";\n }\n"], ["\n display: flex;\n align-items: center;\n box-shadow: inset 0px -1px 0px ", ";\n padding: 20px 0 20px 20px;\n cursor: ", ";\n\n > div:first-child {\n width: 32px;\n height: 32px;\n border-radius: 50%;\n box-sizing: initial;\n margin-right: 10px;\n\n display: flex;\n justify-content: center;\n align-items: center;\n\n background-color: ", ";\n }\n\n > div h6 {\n color: ", ";\n }\n\n p {\n color: ", ";\n }\n\n :hover {\n background-color: ", ";\n }\n"])), theme.colors.lightGray.dark, function (_a) {
|
|
5773
5098
|
var status = _a.status;
|
|
5774
5099
|
return (!!status ? "pointer" : "not-allowed");
|
|
5775
5100
|
}, function (_a) {
|
|
@@ -5788,9 +5113,9 @@ var Step = styled.li(templateObject_2$b || (templateObject_2$b = __makeTemplateO
|
|
|
5788
5113
|
? theme.colors.lightGray.light
|
|
5789
5114
|
: theme.colors.darkGray.light;
|
|
5790
5115
|
}, theme.colors.darkGray.base, theme.colors.lightGray.base);
|
|
5791
|
-
var templateObject_1$
|
|
5116
|
+
var templateObject_1$e, templateObject_2$c;
|
|
5792
5117
|
|
|
5793
|
-
var Steps$1 = function (props) { return (jsx$1(Container$
|
|
5118
|
+
var Steps$1 = function (props) { return (jsx$1(Container$8, { children: props.steps.map(function (_a, index) {
|
|
5794
5119
|
var title = _a.title, onClick = _a.onClick;
|
|
5795
5120
|
var step = index + 1;
|
|
5796
5121
|
var status = props.current > step
|
|
@@ -5809,14 +5134,14 @@ var Steps = function (props) {
|
|
|
5809
5134
|
return props.alignment === "vertical" ? (jsx$1(Steps$1, __assign$2({}, props))) : (jsx$1(Steps$2, __assign$2({}, props)));
|
|
5810
5135
|
};
|
|
5811
5136
|
|
|
5812
|
-
var Fieldset = styled.fieldset(templateObject_1$
|
|
5813
|
-
var RadioContainer = styled.div(templateObject_2$
|
|
5814
|
-
var RadioWrapper = styled.div(templateObject_3$
|
|
5815
|
-
var Label$4 = styled(StyledParagraph)(templateObject_4$
|
|
5137
|
+
var Fieldset = styled.fieldset(templateObject_1$d || (templateObject_1$d = __makeTemplateObject$1(["\n border: 0;\n margin: 0;\n padding: 0;\n"], ["\n border: 0;\n margin: 0;\n padding: 0;\n"])));
|
|
5138
|
+
var RadioContainer = styled.div(templateObject_2$b || (templateObject_2$b = __makeTemplateObject$1(["\n margin-top: 5px;\n"], ["\n margin-top: 5px;\n"])));
|
|
5139
|
+
var RadioWrapper = styled.div(templateObject_3$5 || (templateObject_3$5 = __makeTemplateObject$1(["\n display: flex;\n align-items: center;\n\n > div:first-child {\n margin-right: 10px;\n }\n\n :not(:last-child) {\n margin-bottom: 20px;\n }\n"], ["\n display: flex;\n align-items: center;\n\n > div:first-child {\n margin-right: 10px;\n }\n\n :not(:last-child) {\n margin-bottom: 20px;\n }\n"])));
|
|
5140
|
+
var Label$4 = styled(StyledParagraph)(templateObject_4$4 || (templateObject_4$4 = __makeTemplateObject$1(["\n font-weight: ", ";\n color: ", ";\n display: flex;\n align-items: center;\n cursor: pointer;\n"], ["\n font-weight: ", ";\n color: ", ";\n display: flex;\n align-items: center;\n cursor: pointer;\n"])), function (_a) {
|
|
5816
5141
|
var weight = _a.weight;
|
|
5817
5142
|
return weight || 500;
|
|
5818
5143
|
}, theme.colors.darkGray.base);
|
|
5819
|
-
var templateObject_1$
|
|
5144
|
+
var templateObject_1$d, templateObject_2$b, templateObject_3$5, templateObject_4$4;
|
|
5820
5145
|
|
|
5821
5146
|
var RadioGroup = function (props) {
|
|
5822
5147
|
var onChange = function (value) {
|
|
@@ -5833,9 +5158,9 @@ var RadioGroup = function (props) {
|
|
|
5833
5158
|
}) })] }));
|
|
5834
5159
|
};
|
|
5835
5160
|
|
|
5836
|
-
var Container$
|
|
5837
|
-
var Label$3 = styled(StyledParagraph)(templateObject_2$
|
|
5838
|
-
var templateObject_1$
|
|
5161
|
+
var Container$7 = styled.div(templateObject_1$c || (templateObject_1$c = __makeTemplateObject$1(["\n display: flex;\n flex-direction: column;\n flex-wrap: wrap;\n"], ["\n display: flex;\n flex-direction: column;\n flex-wrap: wrap;\n"])));
|
|
5162
|
+
var Label$3 = styled(StyledParagraph)(templateObject_2$a || (templateObject_2$a = __makeTemplateObject$1(["\n font-weight: 500;\n color: ", ";\n"], ["\n font-weight: 500;\n color: ", ";\n"])), theme.colors.darkGray.base);
|
|
5163
|
+
var templateObject_1$c, templateObject_2$a;
|
|
5839
5164
|
|
|
5840
5165
|
var SelectField = function (props) {
|
|
5841
5166
|
var onChange = function (value) {
|
|
@@ -5846,15 +5171,15 @@ var SelectField = function (props) {
|
|
|
5846
5171
|
if (props.onBlur)
|
|
5847
5172
|
props.onBlur(props.name);
|
|
5848
5173
|
};
|
|
5849
|
-
return (jsxs(Container$
|
|
5174
|
+
return (jsxs(Container$7, { children: [jsx$1(Label$3, __assign$2({ as: "label", htmlFor: props.name }, { children: props.label })), jsx$1(Spacer, { vertical: 5 }), jsx$1(Select, __assign$2({ id: props.name, name: props.name, disabled: props.disabled, defaultValue: props.defaultValue, placeholder: props.placeholder, autoFocus: props.autoFocus, onChange: onChange, onBlur: onBlur }, { children: props.options.map(function (_a, index) {
|
|
5850
5175
|
var value = _a.value, label = _a.label;
|
|
5851
5176
|
return (jsx$1("option", __assign$2({ value: value }, { children: label }), "".concat(value, "-").concat(value)));
|
|
5852
5177
|
}) }))] }));
|
|
5853
5178
|
};
|
|
5854
5179
|
|
|
5855
|
-
var Container$
|
|
5856
|
-
var Label$2 = styled(StyledParagraph)(templateObject_2$
|
|
5857
|
-
var templateObject_1$
|
|
5180
|
+
var Container$6 = styled.div(templateObject_1$b || (templateObject_1$b = __makeTemplateObject$1(["\n display: flex;\n flex-direction: column;\n flex-wrap: wrap;\n"], ["\n display: flex;\n flex-direction: column;\n flex-wrap: wrap;\n"])));
|
|
5181
|
+
var Label$2 = styled(StyledParagraph)(templateObject_2$9 || (templateObject_2$9 = __makeTemplateObject$1(["\n font-weight: 500;\n color: ", ";\n"], ["\n font-weight: 500;\n color: ", ";\n"])), theme.colors.darkGray.base);
|
|
5182
|
+
var templateObject_1$b, templateObject_2$9;
|
|
5858
5183
|
|
|
5859
5184
|
var ToggleField = function (props) {
|
|
5860
5185
|
var onChange = function (value) {
|
|
@@ -5865,10 +5190,10 @@ var ToggleField = function (props) {
|
|
|
5865
5190
|
if (props.onBlur)
|
|
5866
5191
|
props.onBlur(props.name);
|
|
5867
5192
|
};
|
|
5868
|
-
return (jsxs(Container$
|
|
5193
|
+
return (jsxs(Container$6, { children: [jsx$1(Label$2, __assign$2({ as: "label", htmlFor: props.name }, { children: props.label })), jsx$1(Spacer, { vertical: 5 }), jsx$1(Toggle, { id: props.name, name: props.name, disabled: props.disabled, autoFocus: props.autoFocus, defaultValue: props.defaultValue, onChange: onChange, onBlur: onBlur })] }));
|
|
5869
5194
|
};
|
|
5870
5195
|
|
|
5871
|
-
var TooltipContainer = styled.div(templateObject_1$
|
|
5196
|
+
var TooltipContainer = styled.div(templateObject_1$a || (templateObject_1$a = __makeTemplateObject$1(["\n width: fit-content;\n position: fixed;\n opacity: ", ";\n top: ", ";\n left: ", ";\n display: flex;\n flex-direction: column;\n align-items: center;\n margin-top: 5px;\n pointer-events: none;\n z-index: 9;\n"], ["\n width: fit-content;\n position: fixed;\n opacity: ", ";\n top: ", ";\n left: ", ";\n display: flex;\n flex-direction: column;\n align-items: center;\n margin-top: 5px;\n pointer-events: none;\n z-index: 9;\n"])), function (_a) {
|
|
5872
5197
|
var isVisible = _a.isVisible;
|
|
5873
5198
|
return (isVisible ? "100%" : "0%");
|
|
5874
5199
|
}, function (_a) {
|
|
@@ -5878,7 +5203,7 @@ var TooltipContainer = styled.div(templateObject_1$9 || (templateObject_1$9 = __
|
|
|
5878
5203
|
var x = _a.x;
|
|
5879
5204
|
return (x ? "".concat(x, "px") : "");
|
|
5880
5205
|
});
|
|
5881
|
-
var TooltipTitle = styled.div(templateObject_2$
|
|
5206
|
+
var TooltipTitle = styled.div(templateObject_2$8 || (templateObject_2$8 = __makeTemplateObject$1(["\n width: 100%;\n padding: 12px 16px;\n background-color: ", ";\n border-radius: 6px;\n box-shadow: 0px 2px 0px rgb(0 0 0 / 20%);\n display: flex;\n align-items: center;\n justify-content: center;\n"], ["\n width: 100%;\n padding: 12px 16px;\n background-color: ", ";\n border-radius: 6px;\n box-shadow: 0px 2px 0px rgb(0 0 0 / 20%);\n display: flex;\n align-items: center;\n justify-content: center;\n"])), function (_a) {
|
|
5882
5207
|
var color = _a.color;
|
|
5883
5208
|
switch (color) {
|
|
5884
5209
|
default:
|
|
@@ -5888,7 +5213,7 @@ var TooltipTitle = styled.div(templateObject_2$7 || (templateObject_2$7 = __make
|
|
|
5888
5213
|
return theme.colors.lightGray.dark;
|
|
5889
5214
|
}
|
|
5890
5215
|
});
|
|
5891
|
-
var templateObject_1$
|
|
5216
|
+
var templateObject_1$a, templateObject_2$8;
|
|
5892
5217
|
|
|
5893
5218
|
var Tooltip = function (props) {
|
|
5894
5219
|
var tooltipRef = useRef(null);
|
|
@@ -5909,9 +5234,9 @@ var Tooltip = function (props) {
|
|
|
5909
5234
|
var id = generateRandomString(5);
|
|
5910
5235
|
settriggerId(id);
|
|
5911
5236
|
}, []);
|
|
5912
|
-
var children =
|
|
5913
|
-
if (
|
|
5914
|
-
return
|
|
5237
|
+
var children = React__default.Children.map(props.children, function (child, index) {
|
|
5238
|
+
if (React__default.isValidElement(child) && index <= 0) {
|
|
5239
|
+
return React__default.cloneElement(child, {
|
|
5915
5240
|
id: triggerId,
|
|
5916
5241
|
onMouseEnter: function () { return showTooltip(); },
|
|
5917
5242
|
onMouseLeave: function () { return setIsVisible(false); },
|
|
@@ -7097,7 +6422,7 @@ function StyleToJS(style, options) {
|
|
|
7097
6422
|
exports["default"] = StyleToJS;
|
|
7098
6423
|
}(cjs));
|
|
7099
6424
|
|
|
7100
|
-
var React$1 =
|
|
6425
|
+
var React$1 = React__default;
|
|
7101
6426
|
var styleToJS = cjs.default;
|
|
7102
6427
|
|
|
7103
6428
|
/**
|
|
@@ -7315,7 +6640,7 @@ function getPropName(attributeName) {
|
|
|
7315
6640
|
return reactProperty.possibleStandardNames[attributeName];
|
|
7316
6641
|
}
|
|
7317
6642
|
|
|
7318
|
-
var React =
|
|
6643
|
+
var React = React__default;
|
|
7319
6644
|
var attributesToProps$1 = attributesToProps$2;
|
|
7320
6645
|
var utilities$1 = utilities$3;
|
|
7321
6646
|
|
|
@@ -11740,7 +11065,7 @@ HTMLReactParser$1.htmlToDOM;
|
|
|
11740
11065
|
HTMLReactParser$1.attributesToProps;
|
|
11741
11066
|
HTMLReactParser$1.Element;
|
|
11742
11067
|
|
|
11743
|
-
var StyledTextarea = styled.textarea(templateObject_1$
|
|
11068
|
+
var StyledTextarea = styled.textarea(templateObject_1$9 || (templateObject_1$9 = __makeTemplateObject$1(["\n width: 100%;\n min-width: 228px;\n min-height: 50px;\n background-color: ", ";\n border-width: 1px;\n border-style: solid;\n border-color: ", ";\n box-sizing: border-box;\n border-radius: 4px;\n padding: 13px 15px;\n cursor: ", ";\n font-family: ", ";\n font-size: ", ";\n font-weight: 500;\n font-style: normal;\n line-height: ", ";\n color: ", ";\n resize: vertical;\n\n ::placeholder {\n font-family: ", ";\n font-size: ", ";\n font-weight: 500;\n font-style: normal;\n line-height: ", ";\n color: ", ";\n }\n\n ::-webkit-calendar-picker-indicator {\n display: none;\n }\n\n :focus {\n outline: 0;\n border-color: ", ";\n box-shadow: ", ";\n }\n"], ["\n width: 100%;\n min-width: 228px;\n min-height: 50px;\n background-color: ", ";\n border-width: 1px;\n border-style: solid;\n border-color: ", ";\n box-sizing: border-box;\n border-radius: 4px;\n padding: 13px 15px;\n cursor: ", ";\n font-family: ", ";\n font-size: ", ";\n font-weight: 500;\n font-style: normal;\n line-height: ", ";\n color: ", ";\n resize: vertical;\n\n ::placeholder {\n font-family: ", ";\n font-size: ", ";\n font-weight: 500;\n font-style: normal;\n line-height: ", ";\n color: ", ";\n }\n\n ::-webkit-calendar-picker-indicator {\n display: none;\n }\n\n :focus {\n outline: 0;\n border-color: ", ";\n box-shadow: ", ";\n }\n"])), function (_a) {
|
|
11744
11069
|
var disabled = _a.disabled;
|
|
11745
11070
|
return disabled ? theme.colors.lightGray.dark : theme.colors.lightGray.light;
|
|
11746
11071
|
}, function (_a) {
|
|
@@ -11753,7 +11078,7 @@ var StyledTextarea = styled.textarea(templateObject_1$8 || (templateObject_1$8 =
|
|
|
11753
11078
|
var disabled = _a.disabled;
|
|
11754
11079
|
return disabled ? theme.colors.darkGray.light : theme.colors.darkGray.base;
|
|
11755
11080
|
}, theme.fonts.paragraph, theme.paragraph.medium.fontSize, theme.paragraph.medium.lineHeight, theme.colors.lightGray.darker, theme.colors.blue.dark, "0 0 0 1px ".concat(theme.colors.blue.dark));
|
|
11756
|
-
var templateObject_1$
|
|
11081
|
+
var templateObject_1$9;
|
|
11757
11082
|
|
|
11758
11083
|
var Textarea = function (props) {
|
|
11759
11084
|
var onChange = function (e) {
|
|
@@ -11763,9 +11088,9 @@ var Textarea = function (props) {
|
|
|
11763
11088
|
return jsx$1(StyledTextarea, __assign$2({}, props, { onChange: onChange }));
|
|
11764
11089
|
};
|
|
11765
11090
|
|
|
11766
|
-
var Container$
|
|
11767
|
-
var Label$1 = styled(StyledParagraph)(templateObject_2$
|
|
11768
|
-
var templateObject_1$
|
|
11091
|
+
var Container$5 = styled.div(templateObject_1$8 || (templateObject_1$8 = __makeTemplateObject$1(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n flex-wrap: wrap;\n"], ["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n flex-wrap: wrap;\n"])));
|
|
11092
|
+
var Label$1 = styled(StyledParagraph)(templateObject_2$7 || (templateObject_2$7 = __makeTemplateObject$1(["\n font-weight: 500;\n color: ", ";\n"], ["\n font-weight: 500;\n color: ", ";\n"])), theme.colors.darkGray.base);
|
|
11093
|
+
var templateObject_1$8, templateObject_2$7;
|
|
11769
11094
|
|
|
11770
11095
|
var TextareaField = function (props) {
|
|
11771
11096
|
var onChange = function (value) {
|
|
@@ -11776,12 +11101,12 @@ var TextareaField = function (props) {
|
|
|
11776
11101
|
if (props.onBlur)
|
|
11777
11102
|
props.onBlur(props.name);
|
|
11778
11103
|
};
|
|
11779
|
-
return (jsxs(Container$
|
|
11104
|
+
return (jsxs(Container$5, { children: [jsx$1(Label$1, __assign$2({ as: "label", htmlFor: props.name }, { children: props.label })), jsx$1(Spacer, { vertical: 5 }), jsx$1(Textarea, { defaultValue: props.defaultValue, autoComplete: props.autoComplete, autoFocus: props.autoFocus, disabled: props.disabled, placeholder: props.placeholder, id: props.name, rows: props.rows, onChange: onChange, onBlur: onBlur }), props.tips && (jsxs("div", __assign$2({ style: { marginLeft: "5px" } }, { children: [jsx$1(Spacer, { vertical: 5 }), props.tips.map(function (tip, index) { return (jsxs(Paragraph, __assign$2({ size: "small", weight: "regular" }, { children: ["\u2022 ", tip] }), "".concat(tip, "-").concat(index))); })] })))] }));
|
|
11780
11105
|
};
|
|
11781
11106
|
|
|
11782
|
-
var Container$
|
|
11783
|
-
var Label = styled(StyledParagraph)(templateObject_2$
|
|
11784
|
-
var templateObject_1$
|
|
11107
|
+
var Container$4 = styled.div(templateObject_1$7 || (templateObject_1$7 = __makeTemplateObject$1(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n flex-wrap: wrap;\n"], ["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n flex-wrap: wrap;\n"])));
|
|
11108
|
+
var Label = styled(StyledParagraph)(templateObject_2$6 || (templateObject_2$6 = __makeTemplateObject$1(["\n font-weight: 500;\n color: ", ";\n"], ["\n font-weight: 500;\n color: ", ";\n"])), theme.colors.darkGray.base);
|
|
11109
|
+
var templateObject_1$7, templateObject_2$6;
|
|
11785
11110
|
|
|
11786
11111
|
var RangeField = function (props) {
|
|
11787
11112
|
var onChange = function (value) {
|
|
@@ -11792,25 +11117,25 @@ var RangeField = function (props) {
|
|
|
11792
11117
|
if (props.onBlur)
|
|
11793
11118
|
props.onBlur(props.name);
|
|
11794
11119
|
};
|
|
11795
|
-
return (jsxs(Container$
|
|
11120
|
+
return (jsxs(Container$4, { children: [jsx$1(Label, __assign$2({ as: "label", htmlFor: props.name }, { children: props.label })), jsx$1(Spacer, { vertical: 5 }), jsx$1(Range, { defaultValue: props.defaultValue, autoFocus: props.autoFocus, disabled: props.disabled, id: props.name, onChange: onChange, onBlur: onBlur })] }));
|
|
11796
11121
|
};
|
|
11797
11122
|
|
|
11798
11123
|
var FeedbackColors = {
|
|
11799
11124
|
success: theme.colors.green.base,
|
|
11800
11125
|
error: theme.colors.red.base,
|
|
11801
11126
|
};
|
|
11802
|
-
var FieldWrapper = styled.div(templateObject_1$
|
|
11127
|
+
var FieldWrapper = styled.div(templateObject_1$6 || (templateObject_1$6 = __makeTemplateObject$1(["\n input, select {\n border-color: ", ";\n }\n\n :not(:last-child) {\n margin-bottom: 20px;\n }\n"], ["\n input, select {\n border-color: ", ";\n }\n\n :not(:last-child) {\n margin-bottom: 20px;\n }\n"])), function (_a) {
|
|
11803
11128
|
var status = _a.status;
|
|
11804
11129
|
return FeedbackColors[status];
|
|
11805
11130
|
});
|
|
11806
|
-
var FeedbackWrapper = styled.div(templateObject_2$
|
|
11131
|
+
var FeedbackWrapper = styled.div(templateObject_2$5 || (templateObject_2$5 = __makeTemplateObject$1(["\n display: flex;\n align-items: center;\n margin-top: 5px;\n\n > div:first-child {\n min-width: 24px;\n min-height: 24px;\n margin-right: 5px;\n }\n\n svg {\n fill: ", ";\n }\n p {\n color: ", ";\n }\n"], ["\n display: flex;\n align-items: center;\n margin-top: 5px;\n\n > div:first-child {\n min-width: 24px;\n min-height: 24px;\n margin-right: 5px;\n }\n\n svg {\n fill: ", ";\n }\n p {\n color: ", ";\n }\n"])), function (_a) {
|
|
11807
11132
|
var status = _a.status;
|
|
11808
11133
|
return FeedbackColors[status];
|
|
11809
11134
|
}, function (_a) {
|
|
11810
11135
|
var status = _a.status;
|
|
11811
11136
|
return FeedbackColors[status];
|
|
11812
11137
|
});
|
|
11813
|
-
var templateObject_1$
|
|
11138
|
+
var templateObject_1$6, templateObject_2$5;
|
|
11814
11139
|
|
|
11815
11140
|
var WithValidation = function (_a) {
|
|
11816
11141
|
var status = _a.status, message = _a.message, children = _a.children;
|
|
@@ -11823,10 +11148,10 @@ var WithValidation = function (_a) {
|
|
|
11823
11148
|
return (jsxs(FieldWrapper, __assign$2({ status: status }, { children: [children, jsxs(FeedbackWrapper, __assign$2({ status: status }, { children: [jsx$1(Icon, { type: icons[status], size: "small" }), jsx$1(Paragraph, __assign$2({ size: "small" }, { children: message }))] }))] })));
|
|
11824
11149
|
};
|
|
11825
11150
|
|
|
11826
|
-
var FormWrapper = styled.form(templateObject_1$
|
|
11827
|
-
var DescriptionWrapper = styled.div(templateObject_2$
|
|
11828
|
-
var ButtonWrapper = styled.div(templateObject_3$
|
|
11829
|
-
var templateObject_1$
|
|
11151
|
+
var FormWrapper = styled.form(templateObject_1$5 || (templateObject_1$5 = __makeTemplateObject$1([""], [""])));
|
|
11152
|
+
var DescriptionWrapper = styled.div(templateObject_2$4 || (templateObject_2$4 = __makeTemplateObject$1(["\n margin-bottom: 20px;\n\n a {\n color: ", ";\n\n :hover {\n color: ", ";\n }\n }\n"], ["\n margin-bottom: 20px;\n\n a {\n color: ", ";\n\n :hover {\n color: ", ";\n }\n }\n"])), theme.colors.darkGray.light, theme.colors.blue.base);
|
|
11153
|
+
var ButtonWrapper = styled.div(templateObject_3$4 || (templateObject_3$4 = __makeTemplateObject$1(["\n padding-top: 30px;\n"], ["\n padding-top: 30px;\n"])));
|
|
11154
|
+
var templateObject_1$5, templateObject_2$4, templateObject_3$4;
|
|
11830
11155
|
|
|
11831
11156
|
var Form = forwardRef(function (props, ref) {
|
|
11832
11157
|
var _a = useState({}), values = _a[0], setValues = _a[1];
|
|
@@ -12009,7 +11334,7 @@ var Form = forwardRef(function (props, ref) {
|
|
|
12009
11334
|
}) }), props.button && (jsx$1(ButtonWrapper, { children: jsx$1(Button, __assign$2({}, props.button, { onClick: onSubmit, type: "submit" })) }))] }));
|
|
12010
11335
|
});
|
|
12011
11336
|
|
|
12012
|
-
var Container$
|
|
11337
|
+
var Container$3 = styled.div(templateObject_1$4 || (templateObject_1$4 = __makeTemplateObject$1(["\n min-width: 40px;\n max-width: 40px;\n min-height: 40px;\n max-height: 40px;\n\n display: flex;\n flex-direction: column-reverse;\n align-items: center;\n justify-content: space-evenly;\n\n border-radius: 3px;\n border-color: ", ";\n\n background-color: ", ";\n box-sizing: border-box;\n border-width: ", ";\n border-style: solid;\n\n svg {\n fill: ", ";\n }\n\n h6 {\n color: ", ";\n font-size: 16px;\n line-height: 12px;\n }\n"], ["\n min-width: 40px;\n max-width: 40px;\n min-height: 40px;\n max-height: 40px;\n\n display: flex;\n flex-direction: column-reverse;\n align-items: center;\n justify-content: space-evenly;\n\n border-radius: 3px;\n border-color: ", ";\n\n background-color: ", ";\n box-sizing: border-box;\n border-width: ", ";\n border-style: solid;\n\n svg {\n fill: ", ";\n }\n\n h6 {\n color: ", ";\n font-size: 16px;\n line-height: 12px;\n }\n"])), function (_a) {
|
|
12013
11338
|
var color = _a.color, active = _a.active;
|
|
12014
11339
|
if (active)
|
|
12015
11340
|
return theme.colors[color].dark;
|
|
@@ -12033,20 +11358,20 @@ var Container$2 = styled.div(templateObject_1$3 || (templateObject_1$3 = __makeT
|
|
|
12033
11358
|
return theme.colors[color].base;
|
|
12034
11359
|
return "";
|
|
12035
11360
|
});
|
|
12036
|
-
var templateObject_1$
|
|
11361
|
+
var templateObject_1$4;
|
|
12037
11362
|
|
|
12038
11363
|
var Key = function (props) {
|
|
12039
11364
|
var _a;
|
|
12040
|
-
return (jsx$1(Container$
|
|
11365
|
+
return (jsx$1(Container$3, __assign$2({ color: props.color, active: props.active }, { children: props.color === "pink" ? (jsx$1("svg", __assign$2({ width: "28", height: "7", viewBox: "0 0 28 7" }, { children: jsx$1("path", { d: "M0 4.5V1C0 0.447715 0.447715 0 1 0H2C2.55228 0 3 0.447715 3 1V4H25V1C25 0.447715 25.4477 0 26 0H27C27.5523 0 28 0.447715 28 1V4.5C28 5.88071 26.8807 7 25.5 7H2.5C1.11929 7 0 5.88071 0 4.5Z" }) }))) : ((_a = props.characters) === null || _a === void 0 ? void 0 : _a.map(function (character, index) { return (jsx$1(Heading, __assign$2({ type: "h6" }, { children: character }), "".concat(character, "-").concat(index))); })) })));
|
|
12041
11366
|
};
|
|
12042
11367
|
|
|
12043
|
-
var Container$
|
|
12044
|
-
var SpecialRow = styled.div(templateObject_2$
|
|
12045
|
-
var TopRow = styled.div(templateObject_3$
|
|
12046
|
-
var StartRow = styled.div(templateObject_4$
|
|
12047
|
-
var BottomRow = styled.div(templateObject_5$
|
|
12048
|
-
var SpacebarRow = styled.div(templateObject_6 || (templateObject_6 = __makeTemplateObject$1(["\n display: flex;\n justify-content: space-between;\n margin-top: 10px;\n\n > div:first-child,\n > div:last-child {\n min-width: 70px;\n max-width: 70px;\n }\n\n > div:nth-child(5) {\n min-width: 220px;\n max-width: 220px;\n }\n"], ["\n display: flex;\n justify-content: space-between;\n margin-top: 10px;\n\n > div:first-child,\n > div:last-child {\n min-width: 70px;\n max-width: 70px;\n }\n\n > div:nth-child(5) {\n min-width: 220px;\n max-width: 220px;\n }\n"])));
|
|
12049
|
-
var templateObject_1$
|
|
11368
|
+
var Container$2 = styled.div(templateObject_1$3 || (templateObject_1$3 = __makeTemplateObject$1(["\n width: 720px;\n background-color: #cacbd6;\n box-shadow: #7b7f81 0px 8px 0px;\n border-radius: 10px;\n padding: 25px 20px;\n box-sizing: border-box;\n"], ["\n width: 720px;\n background-color: #cacbd6;\n box-shadow: #7b7f81 0px 8px 0px;\n border-radius: 10px;\n padding: 25px 20px;\n box-sizing: border-box;\n"])));
|
|
11369
|
+
var SpecialRow = styled.div(templateObject_2$3 || (templateObject_2$3 = __makeTemplateObject$1(["\n display: flex;\n justify-content: space-between;\n\n > div:last-child {\n min-width: 60px;\n max-width: 60px;\n }\n"], ["\n display: flex;\n justify-content: space-between;\n\n > div:last-child {\n min-width: 60px;\n max-width: 60px;\n }\n"])));
|
|
11370
|
+
var TopRow = styled.div(templateObject_3$3 || (templateObject_3$3 = __makeTemplateObject$1(["\n display: flex;\n justify-content: space-between;\n margin-top: 10px;\n\n > div:first-child {\n min-width: 50px;\n max-width: 50px;\n }\n"], ["\n display: flex;\n justify-content: space-between;\n margin-top: 10px;\n\n > div:first-child {\n min-width: 50px;\n max-width: 50px;\n }\n"])));
|
|
11371
|
+
var StartRow = styled.div(templateObject_4$3 || (templateObject_4$3 = __makeTemplateObject$1(["\n display: flex;\n justify-content: space-between;\n margin-top: 10px;\n\n > div:first-child {\n min-width: 70px;\n max-width: 70px;\n }\n > div:last-child {\n min-width: 65px;\n max-width: 65px;\n }\n"], ["\n display: flex;\n justify-content: space-between;\n margin-top: 10px;\n\n > div:first-child {\n min-width: 70px;\n max-width: 70px;\n }\n > div:last-child {\n min-width: 65px;\n max-width: 65px;\n }\n"])));
|
|
11372
|
+
var BottomRow = styled.div(templateObject_5$2 || (templateObject_5$2 = __makeTemplateObject$1(["\n display: flex;\n justify-content: space-between;\n margin-top: 10px;\n\n > div:first-child,\n > div:last-child {\n min-width: 90px;\n max-width: 90px;\n }\n"], ["\n display: flex;\n justify-content: space-between;\n margin-top: 10px;\n\n > div:first-child,\n > div:last-child {\n min-width: 90px;\n max-width: 90px;\n }\n"])));
|
|
11373
|
+
var SpacebarRow = styled.div(templateObject_6$1 || (templateObject_6$1 = __makeTemplateObject$1(["\n display: flex;\n justify-content: space-between;\n margin-top: 10px;\n\n > div:first-child,\n > div:last-child {\n min-width: 70px;\n max-width: 70px;\n }\n\n > div:nth-child(5) {\n min-width: 220px;\n max-width: 220px;\n }\n"], ["\n display: flex;\n justify-content: space-between;\n margin-top: 10px;\n\n > div:first-child,\n > div:last-child {\n min-width: 70px;\n max-width: 70px;\n }\n\n > div:nth-child(5) {\n min-width: 220px;\n max-width: 220px;\n }\n"])));
|
|
11374
|
+
var templateObject_1$3, templateObject_2$3, templateObject_3$3, templateObject_4$3, templateObject_5$2, templateObject_6$1;
|
|
12050
11375
|
|
|
12051
11376
|
var Keyboard = function (props) {
|
|
12052
11377
|
var _a = useState(), keys = _a[0], setKeys = _a[1];
|
|
@@ -12070,7 +11395,7 @@ var Keyboard = function (props) {
|
|
|
12070
11395
|
}, [props.keys]);
|
|
12071
11396
|
if (!keys)
|
|
12072
11397
|
return null;
|
|
12073
|
-
return (jsxs(Container$
|
|
11398
|
+
return (jsxs(Container$2, { children: [jsxs(SpecialRow, { children: [jsx$1(Key, {}), jsx$1(Key, { characters: [keys[44].character, keys[89].character], color: keys[44].color, active: keys[44].character === props.activeKey ||
|
|
12074
11399
|
keys[89].character === props.activeKey }, 44), jsx$1(Key, { characters: [keys[42].character, keys[87].character], color: keys[42].color, active: keys[42].character === props.activeKey ||
|
|
12075
11400
|
keys[87].character === props.activeKey }), jsx$1(Key, { characters: [keys[40].character, keys[85].character], color: keys[40].color, active: keys[40].character === props.activeKey ||
|
|
12076
11401
|
keys[85].character === props.activeKey }), jsx$1(Key, { characters: [keys[38].character, keys[83].character], color: keys[38].color, active: keys[38].character === props.activeKey ||
|
|
@@ -12118,15 +11443,15 @@ var Keyboard = function (props) {
|
|
|
12118
11443
|
keys[76].character === props.activeKey }), jsx$1(Key, { characters: ["Shift"], color: keys[31].color, active: shiftKeys.left.includes(props.activeKey) })] }), jsxs(SpacebarRow, { children: [jsx$1(Key, {}), jsx$1(Key, {}), jsx$1(Key, {}), jsx$1(Key, {}), jsx$1(Key, { color: keys[1].color, active: keys[1].character === props.activeKey }), jsx$1(Key, {}), jsx$1(Key, {}), jsx$1(Key, {}), jsx$1(Key, {})] })] }));
|
|
12119
11444
|
};
|
|
12120
11445
|
|
|
12121
|
-
var Mask = styled.div(templateObject_1$
|
|
12122
|
-
var CardWrapper = styled.div(templateObject_2$
|
|
11446
|
+
var Mask = styled.div(templateObject_1$2 || (templateObject_1$2 = __makeTemplateObject$1(["\n width: 100vw;\n height: 100vh;\n position: fixed;\n background-color: rgba(35, 41, 47, 50%);\n display: flex;\n justify-content: center;\n align-items: center;\n z-index: 1000;\n"], ["\n width: 100vw;\n height: 100vh;\n position: fixed;\n background-color: rgba(35, 41, 47, 50%);\n display: flex;\n justify-content: center;\n align-items: center;\n z-index: 1000;\n"])));
|
|
11447
|
+
var CardWrapper = styled.div(templateObject_2$2 || (templateObject_2$2 = __makeTemplateObject$1(["\n width: ", ";\n\n > div:first-child {\n padding-top: 30px;\n }\n"], ["\n width: ", ";\n\n > div:first-child {\n padding-top: 30px;\n }\n"])), function (_a) {
|
|
12123
11448
|
var width = _a.width;
|
|
12124
11449
|
return (width ? "".concat(width, "px") : "720px");
|
|
12125
11450
|
});
|
|
12126
|
-
var CloseIconWrapper = styled.div(templateObject_3$
|
|
12127
|
-
var ChildrenWrapper = styled.div(templateObject_4$
|
|
12128
|
-
var FooterContainer = styled.div(templateObject_5 || (templateObject_5 = __makeTemplateObject$1(["\n width: calc(100% + 30px);\n box-sizing: border-box;\n min-height: 45px;\n margin-top: 15px;\n margin-bottom: -15px;\n margin-left: -15px;\n padding: 15px 50px;\n background-color: ", ";\n border-top: 1px solid ", ";\n"], ["\n width: calc(100% + 30px);\n box-sizing: border-box;\n min-height: 45px;\n margin-top: 15px;\n margin-bottom: -15px;\n margin-left: -15px;\n padding: 15px 50px;\n background-color: ", ";\n border-top: 1px solid ", ";\n"])), theme.colors.lightGray.dark, theme.colors.lightGray.darker);
|
|
12129
|
-
var templateObject_1$
|
|
11451
|
+
var CloseIconWrapper = styled.div(templateObject_3$2 || (templateObject_3$2 = __makeTemplateObject$1(["\n display: flex;\n justify-content: flex-end;\n position: absolute;\n top: -10px;\n right: 20px;\n\n svg {\n cursor: pointer;\n }\n svg:hover {\n fill: ", ";\n }\n"], ["\n display: flex;\n justify-content: flex-end;\n position: absolute;\n top: -10px;\n right: 20px;\n\n svg {\n cursor: pointer;\n }\n svg:hover {\n fill: ", ";\n }\n"])), theme.colors.darkGray.base);
|
|
11452
|
+
var ChildrenWrapper = styled.div(templateObject_4$2 || (templateObject_4$2 = __makeTemplateObject$1(["\n padding: 0 35px 20px;\n"], ["\n padding: 0 35px 20px;\n"])));
|
|
11453
|
+
var FooterContainer = styled.div(templateObject_5$1 || (templateObject_5$1 = __makeTemplateObject$1(["\n width: calc(100% + 30px);\n box-sizing: border-box;\n min-height: 45px;\n margin-top: 15px;\n margin-bottom: -15px;\n margin-left: -15px;\n padding: 15px 50px;\n background-color: ", ";\n border-top: 1px solid ", ";\n"], ["\n width: calc(100% + 30px);\n box-sizing: border-box;\n min-height: 45px;\n margin-top: 15px;\n margin-bottom: -15px;\n margin-left: -15px;\n padding: 15px 50px;\n background-color: ", ";\n border-top: 1px solid ", ";\n"])), theme.colors.lightGray.dark, theme.colors.lightGray.darker);
|
|
11454
|
+
var templateObject_1$2, templateObject_2$2, templateObject_3$2, templateObject_4$2, templateObject_5$1;
|
|
12130
11455
|
|
|
12131
11456
|
var Modal = function (props) {
|
|
12132
11457
|
var _a = useState(props.isVisible), isVisible = _a[0], setIsVisible = _a[1];
|
|
@@ -12142,20 +11467,20 @@ var Modal = function (props) {
|
|
|
12142
11467
|
return (jsx$1(Mask, { children: jsx$1(CardWrapper, __assign$2({}, props, { children: jsxs(Card, { children: [isClosable && (jsx$1(CloseIconWrapper, { children: jsx$1(Icon, { type: "cross", onClick: onClose }) })), jsx$1(ChildrenWrapper, { children: props.children }), props.footer && jsx$1(FooterContainer, { children: props.footer })] }) })) }));
|
|
12143
11468
|
};
|
|
12144
11469
|
|
|
12145
|
-
var Container = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject$1(["\n width: 100%;\n min-height: 90px;\n border-radius: 6px;\n border-width: 3px;\n border-style: solid;\n border-color: ", ";\n background-color: ", ";\n padding: 20px;\n display: flex;\n box-sizing: border-box;\n"], ["\n width: 100%;\n min-height: 90px;\n border-radius: 6px;\n border-width: 3px;\n border-style: solid;\n border-color: ", ";\n background-color: ", ";\n padding: 20px;\n display: flex;\n box-sizing: border-box;\n"])), function (_a) {
|
|
11470
|
+
var Container$1 = styled.div(templateObject_1$1 || (templateObject_1$1 = __makeTemplateObject$1(["\n width: 100%;\n min-height: 90px;\n border-radius: 6px;\n border-width: 3px;\n border-style: solid;\n border-color: ", ";\n background-color: ", ";\n padding: 20px;\n display: flex;\n box-sizing: border-box;\n"], ["\n width: 100%;\n min-height: 90px;\n border-radius: 6px;\n border-width: 3px;\n border-style: solid;\n border-color: ", ";\n background-color: ", ";\n padding: 20px;\n display: flex;\n box-sizing: border-box;\n"])), function (_a) {
|
|
12146
11471
|
var passed = _a.passed;
|
|
12147
11472
|
return passed ? theme.colors.green.base : theme.colors.red.base;
|
|
12148
11473
|
}, theme.colors.lightGray.light);
|
|
12149
|
-
var ProgressBarWrapper = styled.div(templateObject_2 || (templateObject_2 = __makeTemplateObject$1(["\n width: 50%;\n display: flex;\n flex-direction: column;\n justify-content: center;\n margin-top: 15px;\n margin-left: auto;\n position: relative;\n\n > div:last-child {\n display: flex;\n justify-content: space-between;\n margin-top: 3px;\n }\n"], ["\n width: 50%;\n display: flex;\n flex-direction: column;\n justify-content: center;\n margin-top: 15px;\n margin-left: auto;\n position: relative;\n\n > div:last-child {\n display: flex;\n justify-content: space-between;\n margin-top: 3px;\n }\n"])));
|
|
12150
|
-
var Indicator = styled.div(templateObject_3 || (templateObject_3 = __makeTemplateObject$1(["\n width: 4px;\n height: 22px;\n background-color: ", ";\n position: absolute;\n left: ", ";\n z-index: 1;\n top: -4px;\n"], ["\n width: 4px;\n height: 22px;\n background-color: ", ";\n position: absolute;\n left: ", ";\n z-index: 1;\n top: -4px;\n"])), theme.colors.blue.darker, function (_a) {
|
|
11474
|
+
var ProgressBarWrapper = styled.div(templateObject_2$1 || (templateObject_2$1 = __makeTemplateObject$1(["\n width: 50%;\n display: flex;\n flex-direction: column;\n justify-content: center;\n margin-top: 15px;\n margin-left: auto;\n position: relative;\n\n > div:last-child {\n display: flex;\n justify-content: space-between;\n margin-top: 3px;\n }\n"], ["\n width: 50%;\n display: flex;\n flex-direction: column;\n justify-content: center;\n margin-top: 15px;\n margin-left: auto;\n position: relative;\n\n > div:last-child {\n display: flex;\n justify-content: space-between;\n margin-top: 3px;\n }\n"])));
|
|
11475
|
+
var Indicator = styled.div(templateObject_3$1 || (templateObject_3$1 = __makeTemplateObject$1(["\n width: 4px;\n height: 22px;\n background-color: ", ";\n position: absolute;\n left: ", ";\n z-index: 1;\n top: -4px;\n"], ["\n width: 4px;\n height: 22px;\n background-color: ", ";\n position: absolute;\n left: ", ";\n z-index: 1;\n top: -4px;\n"])), theme.colors.blue.darker, function (_a) {
|
|
12151
11476
|
var value = _a.value;
|
|
12152
11477
|
return "".concat(value, "%");
|
|
12153
11478
|
});
|
|
12154
|
-
var Target = styled.div(templateObject_4 || (templateObject_4 = __makeTemplateObject$1(["\n width: max-content;\n position: absolute;\n left: ", ";\n bottom: 40px;\n\n p {\n color: ", ";\n }\n"], ["\n width: max-content;\n position: absolute;\n left: ", ";\n bottom: 40px;\n\n p {\n color: ", ";\n }\n"])), function (_a) {
|
|
11479
|
+
var Target = styled.div(templateObject_4$1 || (templateObject_4$1 = __makeTemplateObject$1(["\n width: max-content;\n position: absolute;\n left: ", ";\n bottom: 40px;\n\n p {\n color: ", ";\n }\n"], ["\n width: max-content;\n position: absolute;\n left: ", ";\n bottom: 40px;\n\n p {\n color: ", ";\n }\n"])), function (_a) {
|
|
12155
11480
|
var value = _a.value, width = _a.width;
|
|
12156
11481
|
return "calc(".concat(value, "% - ").concat(width / 2, "px)");
|
|
12157
11482
|
}, theme.colors.blue.darker);
|
|
12158
|
-
var templateObject_1, templateObject_2, templateObject_3, templateObject_4;
|
|
11483
|
+
var templateObject_1$1, templateObject_2$1, templateObject_3$1, templateObject_4$1;
|
|
12159
11484
|
|
|
12160
11485
|
var Result = function (props) {
|
|
12161
11486
|
var ref = useRef(null);
|
|
@@ -12165,8 +11490,31 @@ var Result = function (props) {
|
|
|
12165
11490
|
var _a;
|
|
12166
11491
|
setTargetWidth((_a = ref.current) === null || _a === void 0 ? void 0 : _a.offsetWidth);
|
|
12167
11492
|
}, [ref]);
|
|
12168
|
-
return (jsxs(Container, __assign$2({ passed: isPassed }, { children: [jsx$1(Icon, { type: isPassed ? "check" : "warning", color: isPassed ? "green" : "red", size: "large" }), jsx$1(Spacer, { horizontal: 15 }), jsxs("div", { children: [jsx$1(Heading, __assign$2({ type: "h5" }, { children: props.title })), jsx$1(Paragraph, { children: props.subtitle })] }), props.progressBar && (jsxs(ProgressBarWrapper, { children: [jsx$1(Indicator, { value: (props.target / props.progressBar.max) * 100 }), jsx$1(Target, __assign$2({ value: (props.target / props.progressBar.max) * 100, width: targetWidth, ref: ref }, { children: jsxs(Paragraph, __assign$2({ size: "small" }, { children: [props.target, props.progressBar.unit] })) })), jsx$1(ProgressBar, { percent: (props.value / props.progressBar.max) * 100, color: isPassed ? "green" : "red" }), jsxs("div", { children: [jsxs(Paragraph, __assign$2({ size: "small" }, { children: [props.progressBar.min, props.progressBar.unit] })), jsxs(Paragraph, __assign$2({ size: "small" }, { children: [props.progressBar.max, props.progressBar.unit] }))] })] }))] })));
|
|
11493
|
+
return (jsxs(Container$1, __assign$2({ passed: isPassed }, { children: [jsx$1(Icon, { type: isPassed ? "check" : "warning", color: isPassed ? "green" : "red", size: "large" }), jsx$1(Spacer, { horizontal: 15 }), jsxs("div", { children: [jsx$1(Heading, __assign$2({ type: "h5" }, { children: props.title })), jsx$1(Paragraph, { children: props.subtitle })] }), props.progressBar && (jsxs(ProgressBarWrapper, { children: [jsx$1(Indicator, { value: (props.target / props.progressBar.max) * 100 }), jsx$1(Target, __assign$2({ value: (props.target / props.progressBar.max) * 100, width: targetWidth, ref: ref }, { children: jsxs(Paragraph, __assign$2({ size: "small" }, { children: [props.target, props.progressBar.unit] })) })), jsx$1(ProgressBar, { percent: (props.value / props.progressBar.max) * 100, color: isPassed ? "green" : "red" }), jsxs("div", { children: [jsxs(Paragraph, __assign$2({ size: "small" }, { children: [props.progressBar.min, props.progressBar.unit] })), jsxs(Paragraph, __assign$2({ size: "small" }, { children: [props.progressBar.max, props.progressBar.unit] }))] })] }))] })));
|
|
11494
|
+
};
|
|
11495
|
+
|
|
11496
|
+
var Container = styled.table(templateObject_1 || (templateObject_1 = __makeTemplateObject$1(["\n width: 100%;\n border-collapse: collapse;\n border-radius: 6px;\n border-style: hidden;\n box-shadow: 0 0 0 1px ", ";\n overflow: hidden;\n"], ["\n width: 100%;\n border-collapse: collapse;\n border-radius: 6px;\n border-style: hidden;\n box-shadow: 0 0 0 1px ", ";\n overflow: hidden;\n"])), theme.colors.lightGray.dark);
|
|
11497
|
+
var TableHead = styled.thead(templateObject_2 || (templateObject_2 = __makeTemplateObject$1(["\n border-bottom: 1px solid ", ";\n"], ["\n border-bottom: 1px solid ", ";\n"])), theme.colors.lightGray.dark);
|
|
11498
|
+
var TableBody = styled.tbody(templateObject_3 || (templateObject_3 = __makeTemplateObject$1([""], [""])));
|
|
11499
|
+
styled.tfoot(templateObject_4 || (templateObject_4 = __makeTemplateObject$1([""], [""])));
|
|
11500
|
+
var ColumnTitle = styled.th(templateObject_5 || (templateObject_5 = __makeTemplateObject$1(["\n text-align: left;\n padding-left: 15px;\n"], ["\n text-align: left;\n padding-left: 15px;\n"])));
|
|
11501
|
+
var TableRow = styled.tr(templateObject_6 || (templateObject_6 = __makeTemplateObject$1(["\n height: 50px;\n border-bottom: 1px solid ", ";\n\n :nth-child(even) {\n background: ", ";\n }\n"], ["\n height: 50px;\n border-bottom: 1px solid ", ";\n\n :nth-child(even) {\n background: ", ";\n }\n"])), theme.colors.lightGray.dark, theme.colors.lightGray.base);
|
|
11502
|
+
var TableCell = styled.td(templateObject_7 || (templateObject_7 = __makeTemplateObject$1(["\n padding: 0 15px;\n font-family: ", ";\n font-size: ", ";\n font-weight: 400;\n font-style: normal;\n line-height: ", ";\n color: ", ";\n"], ["\n padding: 0 15px;\n font-family: ", ";\n font-size: ", ";\n font-weight: 400;\n font-style: normal;\n line-height: ", ";\n color: ", ";\n"])), theme.fonts.paragraph, theme.paragraph.medium.fontSize, theme.paragraph.medium.lineHeight, theme.colors.darkGray.light);
|
|
11503
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7;
|
|
11504
|
+
|
|
11505
|
+
var Table = function (_a) {
|
|
11506
|
+
var columns = _a.columns, data = _a.data;
|
|
11507
|
+
return (jsxs(Container, { children: [jsx$1(TableHead, { children: jsx$1(TableRow, { children: columns.map(function (_a) {
|
|
11508
|
+
var title = _a.title, dataIndex = _a.dataIndex;
|
|
11509
|
+
return (jsx$1(ColumnTitle, { children: jsx$1(Heading, __assign$2({ type: "h6", as: "span" }, { children: title })) }, dataIndex));
|
|
11510
|
+
}) }) }), jsx$1(TableBody, { children: data.map(function (row, index) {
|
|
11511
|
+
return (jsx$1(TableRow, { children: columns.map(function (_a, index) {
|
|
11512
|
+
var dataIndex = _a.dataIndex, render = _a.render;
|
|
11513
|
+
var data = row[dataIndex];
|
|
11514
|
+
return (jsx$1(TableCell, { children: render ? render(data) : data }, "col-".concat(index)));
|
|
11515
|
+
}) }, "row-".concat(index)));
|
|
11516
|
+
}) })] }));
|
|
12169
11517
|
};
|
|
12170
11518
|
|
|
12171
|
-
export { Alert, Button, Card, Checkbox, Checkboxes, Collapse, DateInputField, Flag, Form, Heading, Icon, IconButton, Illustration, Input, InputField, Key$1 as Key, Keyboard, Link, Loading, LocaleSelect, Logo, Medal, Medals, Modal, Notification, Number$1 as Number, NumberField, Paragraph, PasswordInputField, Popup, ProgressBar, Radio, RadioGroup, Range, Result, Select, SelectField, Spacer, Steps, Subheading, Tag, Toggle, ToggleField, Tooltip, Trophy, theme };
|
|
11519
|
+
export { Alert, Button, Card, Checkbox, Checkboxes, Collapse, DateInputField, Flag, Form, Heading, Icon, IconButton, Illustration, Input, InputField, Key$1 as Key, Keyboard, Link, Loading, LocaleSelect, Logo, Medal, Medals, Modal, Notification, Number$1 as Number, NumberField, Paragraph, PasswordInputField, Popup, ProgressBar, Radio, RadioGroup, Range, Result, Select, SelectField, Spacer, Steps, Subheading, Table, Tag, Toggle, ToggleField, Tooltip, Trophy, theme };
|
|
12172
11520
|
//# sourceMappingURL=index.es.js.map
|