@typeolymp/ui-components 1.9.14 → 1.9.15
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/index.es.js +22 -698
- package/build/index.es.js.map +1 -1
- package/build/index.js +225 -900
- package/build/index.js.map +1 -1
- package/package.json +3 -3
package/build/index.js
CHANGED
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var jsxRuntime = require('react/jsx-runtime');
|
|
6
|
-
var
|
|
6
|
+
var React$3 = require('react');
|
|
7
|
+
var styled = require('styled-components');
|
|
7
8
|
|
|
8
9
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
9
10
|
|
|
@@ -25,8 +26,9 @@ function _interopNamespace(e) {
|
|
|
25
26
|
return Object.freeze(n);
|
|
26
27
|
}
|
|
27
28
|
|
|
28
|
-
var
|
|
29
|
-
var
|
|
29
|
+
var React__namespace = /*#__PURE__*/_interopNamespace(React$3);
|
|
30
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React$3);
|
|
31
|
+
var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
|
|
30
32
|
|
|
31
33
|
var theme = {
|
|
32
34
|
colors: {
|
|
@@ -1685,12 +1687,12 @@ var reactIs_production_min = {};
|
|
|
1685
1687
|
* This source code is licensed under the MIT license found in the
|
|
1686
1688
|
* LICENSE file in the root directory of this source tree.
|
|
1687
1689
|
*/
|
|
1688
|
-
var b
|
|
1689
|
-
Symbol.for("react.suspense_list"):60120,r=b
|
|
1690
|
-
function z
|
|
1691
|
-
reactIs_production_min.Profiler=g
|
|
1692
|
-
reactIs_production_min.isMemo=function(a){return z
|
|
1693
|
-
reactIs_production_min.isValidElementType=function(a){return "string"===typeof a||"function"===typeof a||a===e||a===m||a===g
|
|
1690
|
+
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?
|
|
1691
|
+
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;
|
|
1692
|
+
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;
|
|
1693
|
+
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};
|
|
1694
|
+
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};
|
|
1695
|
+
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;
|
|
1694
1696
|
|
|
1695
1697
|
var reactIs_development = {};
|
|
1696
1698
|
|
|
@@ -2097,7 +2099,7 @@ function murmur2(str) {
|
|
|
2097
2099
|
return ((h ^ h >>> 15) >>> 0).toString(36);
|
|
2098
2100
|
}
|
|
2099
2101
|
|
|
2100
|
-
var unitlessKeys
|
|
2102
|
+
var unitlessKeys = {
|
|
2101
2103
|
animationIterationCount: 1,
|
|
2102
2104
|
borderImageOutset: 1,
|
|
2103
2105
|
borderImageSlice: 1,
|
|
@@ -2181,7 +2183,7 @@ var processStyleValue = function processStyleValue(key, value) {
|
|
|
2181
2183
|
}
|
|
2182
2184
|
}
|
|
2183
2185
|
|
|
2184
|
-
if (unitlessKeys
|
|
2186
|
+
if (unitlessKeys[key] !== 1 && !isCustomProperty(key) && typeof value === 'number' && value !== 0) {
|
|
2185
2187
|
return value + 'px';
|
|
2186
2188
|
}
|
|
2187
2189
|
|
|
@@ -2463,14 +2465,14 @@ var syncFallback = function syncFallback(create) {
|
|
|
2463
2465
|
return create();
|
|
2464
2466
|
};
|
|
2465
2467
|
|
|
2466
|
-
var useInsertionEffect =
|
|
2468
|
+
var useInsertionEffect = React__namespace['useInsertion' + 'Effect'] ? React__namespace['useInsertion' + 'Effect'] : false;
|
|
2467
2469
|
var useInsertionEffectAlwaysWithSyncFallback = !isBrowser$2 ? syncFallback : useInsertionEffect || syncFallback;
|
|
2468
|
-
var useInsertionEffectWithLayoutFallback = useInsertionEffect ||
|
|
2470
|
+
var useInsertionEffectWithLayoutFallback = useInsertionEffect || React$3.useLayoutEffect;
|
|
2469
2471
|
|
|
2470
2472
|
var isBrowser$1 = typeof document !== 'undefined';
|
|
2471
2473
|
var hasOwnProperty = {}.hasOwnProperty;
|
|
2472
2474
|
|
|
2473
|
-
var EmotionCacheContext = /* #__PURE__ */
|
|
2475
|
+
var EmotionCacheContext = /* #__PURE__ */React$3.createContext( // we're doing this to avoid preconstruct's dead code elimination in this one case
|
|
2474
2476
|
// because this module is primarily intended for the browser and node
|
|
2475
2477
|
// but it's also required in react native and similar environments sometimes
|
|
2476
2478
|
// and we could have a special build just for that
|
|
@@ -2486,14 +2488,14 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
2486
2488
|
|
|
2487
2489
|
var CacheProvider = EmotionCacheContext.Provider;
|
|
2488
2490
|
var __unsafe_useEmotionCache = function useEmotionCache() {
|
|
2489
|
-
return
|
|
2491
|
+
return React$3.useContext(EmotionCacheContext);
|
|
2490
2492
|
};
|
|
2491
2493
|
|
|
2492
2494
|
var withEmotionCache = function withEmotionCache(func) {
|
|
2493
2495
|
// $FlowFixMe
|
|
2494
|
-
return /*#__PURE__*/
|
|
2496
|
+
return /*#__PURE__*/React$3.forwardRef(function (props, ref) {
|
|
2495
2497
|
// the cache will never be null in the browser
|
|
2496
|
-
var cache =
|
|
2498
|
+
var cache = React$3.useContext(EmotionCacheContext);
|
|
2497
2499
|
return func(props, cache, ref);
|
|
2498
2500
|
});
|
|
2499
2501
|
};
|
|
@@ -2501,7 +2503,7 @@ var withEmotionCache = function withEmotionCache(func) {
|
|
|
2501
2503
|
if (!isBrowser$1) {
|
|
2502
2504
|
withEmotionCache = function withEmotionCache(func) {
|
|
2503
2505
|
return function (props) {
|
|
2504
|
-
var cache =
|
|
2506
|
+
var cache = React$3.useContext(EmotionCacheContext);
|
|
2505
2507
|
|
|
2506
2508
|
if (cache === null) {
|
|
2507
2509
|
// yes, we're potentially creating this on every render
|
|
@@ -2512,7 +2514,7 @@ if (!isBrowser$1) {
|
|
|
2512
2514
|
cache = createCache({
|
|
2513
2515
|
key: 'css'
|
|
2514
2516
|
});
|
|
2515
|
-
return /*#__PURE__*/
|
|
2517
|
+
return /*#__PURE__*/React$3.createElement(EmotionCacheContext.Provider, {
|
|
2516
2518
|
value: cache
|
|
2517
2519
|
}, func(props, cache));
|
|
2518
2520
|
} else {
|
|
@@ -2522,14 +2524,14 @@ if (!isBrowser$1) {
|
|
|
2522
2524
|
};
|
|
2523
2525
|
}
|
|
2524
2526
|
|
|
2525
|
-
var ThemeContext = /* #__PURE__ */
|
|
2527
|
+
var ThemeContext = /* #__PURE__ */React$3.createContext({});
|
|
2526
2528
|
|
|
2527
2529
|
if (process.env.NODE_ENV !== 'production') {
|
|
2528
2530
|
ThemeContext.displayName = 'EmotionThemeContext';
|
|
2529
2531
|
}
|
|
2530
2532
|
|
|
2531
2533
|
var useTheme = function useTheme() {
|
|
2532
|
-
return
|
|
2534
|
+
return React$3.useContext(ThemeContext);
|
|
2533
2535
|
};
|
|
2534
2536
|
|
|
2535
2537
|
var getTheme = function getTheme(outerTheme, theme) {
|
|
@@ -2556,13 +2558,13 @@ var createCacheWithTheme = /* #__PURE__ */weakMemoize(function (outerTheme) {
|
|
|
2556
2558
|
});
|
|
2557
2559
|
});
|
|
2558
2560
|
var ThemeProvider = function ThemeProvider(props) {
|
|
2559
|
-
var theme =
|
|
2561
|
+
var theme = React$3.useContext(ThemeContext);
|
|
2560
2562
|
|
|
2561
2563
|
if (props.theme !== theme) {
|
|
2562
2564
|
theme = createCacheWithTheme(theme)(props.theme);
|
|
2563
2565
|
}
|
|
2564
2566
|
|
|
2565
|
-
return /*#__PURE__*/
|
|
2567
|
+
return /*#__PURE__*/React$3.createElement(ThemeContext.Provider, {
|
|
2566
2568
|
value: theme
|
|
2567
2569
|
}, props.children);
|
|
2568
2570
|
};
|
|
@@ -2570,15 +2572,15 @@ function withTheme(Component) {
|
|
|
2570
2572
|
var componentName = Component.displayName || Component.name || 'Component';
|
|
2571
2573
|
|
|
2572
2574
|
var render = function render(props, ref) {
|
|
2573
|
-
var theme =
|
|
2574
|
-
return /*#__PURE__*/
|
|
2575
|
+
var theme = React$3.useContext(ThemeContext);
|
|
2576
|
+
return /*#__PURE__*/React$3.createElement(Component, _extends({
|
|
2575
2577
|
theme: theme,
|
|
2576
2578
|
ref: ref
|
|
2577
2579
|
}, props));
|
|
2578
2580
|
}; // $FlowFixMe
|
|
2579
2581
|
|
|
2580
2582
|
|
|
2581
|
-
var WithTheme = /*#__PURE__*/
|
|
2583
|
+
var WithTheme = /*#__PURE__*/React$3.forwardRef(render);
|
|
2582
2584
|
WithTheme.displayName = "WithTheme(" + componentName + ")";
|
|
2583
2585
|
return hoistNonReactStatics$1(WithTheme, Component);
|
|
2584
2586
|
}
|
|
@@ -2673,7 +2675,7 @@ var Insertion$1 = function Insertion(_ref) {
|
|
|
2673
2675
|
next = next.next;
|
|
2674
2676
|
}
|
|
2675
2677
|
|
|
2676
|
-
return /*#__PURE__*/
|
|
2678
|
+
return /*#__PURE__*/React$3.createElement("style", (_ref2 = {}, _ref2["data-emotion"] = cache.key + " " + serializedNames, _ref2.dangerouslySetInnerHTML = {
|
|
2677
2679
|
__html: rules
|
|
2678
2680
|
}, _ref2.nonce = cache.sheet.nonce, _ref2));
|
|
2679
2681
|
}
|
|
@@ -2700,7 +2702,7 @@ var Emotion = /* #__PURE__ */withEmotionCache(function (props, cache, ref) {
|
|
|
2700
2702
|
className = props.className + " ";
|
|
2701
2703
|
}
|
|
2702
2704
|
|
|
2703
|
-
var serialized = serializeStyles(registeredStyles, undefined,
|
|
2705
|
+
var serialized = serializeStyles(registeredStyles, undefined, React$3.useContext(ThemeContext));
|
|
2704
2706
|
|
|
2705
2707
|
if (process.env.NODE_ENV !== 'production' && serialized.name.indexOf('-') === -1) {
|
|
2706
2708
|
var labelFromStack = props[labelPropName];
|
|
@@ -2721,11 +2723,11 @@ var Emotion = /* #__PURE__ */withEmotionCache(function (props, cache, ref) {
|
|
|
2721
2723
|
|
|
2722
2724
|
newProps.ref = ref;
|
|
2723
2725
|
newProps.className = className;
|
|
2724
|
-
return /*#__PURE__*/
|
|
2726
|
+
return /*#__PURE__*/React$3.createElement(React$3.Fragment, null, /*#__PURE__*/React$3.createElement(Insertion$1, {
|
|
2725
2727
|
cache: cache,
|
|
2726
2728
|
serialized: serialized,
|
|
2727
2729
|
isStringTag: typeof WrappedComponent === 'string'
|
|
2728
|
-
}), /*#__PURE__*/
|
|
2730
|
+
}), /*#__PURE__*/React$3.createElement(WrappedComponent, newProps));
|
|
2729
2731
|
});
|
|
2730
2732
|
|
|
2731
2733
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -2860,7 +2862,7 @@ var jsx = function jsx(type, props) {
|
|
|
2860
2862
|
|
|
2861
2863
|
if (props == null || !hasOwnProperty.call(props, 'css')) {
|
|
2862
2864
|
// $FlowFixMe
|
|
2863
|
-
return
|
|
2865
|
+
return React$3.createElement.apply(undefined, args);
|
|
2864
2866
|
}
|
|
2865
2867
|
|
|
2866
2868
|
var argsLength = args.length;
|
|
@@ -2873,7 +2875,7 @@ var jsx = function jsx(type, props) {
|
|
|
2873
2875
|
} // $FlowFixMe
|
|
2874
2876
|
|
|
2875
2877
|
|
|
2876
|
-
return
|
|
2878
|
+
return React$3.createElement.apply(null, createElementArgArray);
|
|
2877
2879
|
};
|
|
2878
2880
|
|
|
2879
2881
|
var warnedAboutCssPropForGlobal = false; // maintain place over rerenders.
|
|
@@ -2891,7 +2893,7 @@ var Global = /* #__PURE__ */withEmotionCache(function (props, cache) {
|
|
|
2891
2893
|
}
|
|
2892
2894
|
|
|
2893
2895
|
var styles = props.styles;
|
|
2894
|
-
var serialized = serializeStyles([styles], undefined,
|
|
2896
|
+
var serialized = serializeStyles([styles], undefined, React$3.useContext(ThemeContext));
|
|
2895
2897
|
|
|
2896
2898
|
if (!isBrowser$1) {
|
|
2897
2899
|
var _ref;
|
|
@@ -2916,7 +2918,7 @@ var Global = /* #__PURE__ */withEmotionCache(function (props, cache) {
|
|
|
2916
2918
|
return null;
|
|
2917
2919
|
}
|
|
2918
2920
|
|
|
2919
|
-
return /*#__PURE__*/
|
|
2921
|
+
return /*#__PURE__*/React$3.createElement("style", (_ref = {}, _ref["data-emotion"] = cache.key + "-global " + serializedNames, _ref.dangerouslySetInnerHTML = {
|
|
2920
2922
|
__html: rules
|
|
2921
2923
|
}, _ref.nonce = cache.sheet.nonce, _ref));
|
|
2922
2924
|
} // yes, i know these hooks are used conditionally
|
|
@@ -2925,7 +2927,7 @@ var Global = /* #__PURE__ */withEmotionCache(function (props, cache) {
|
|
|
2925
2927
|
// so it's not actually breaking anything
|
|
2926
2928
|
|
|
2927
2929
|
|
|
2928
|
-
var sheetRef =
|
|
2930
|
+
var sheetRef = React$3.useRef();
|
|
2929
2931
|
useInsertionEffectWithLayoutFallback(function () {
|
|
2930
2932
|
var key = cache.key + "-global"; // use case of https://github.com/emotion-js/emotion/issues/2675
|
|
2931
2933
|
|
|
@@ -3092,7 +3094,7 @@ var Insertion = function Insertion(_ref) {
|
|
|
3092
3094
|
if (!isBrowser$1 && rules.length !== 0) {
|
|
3093
3095
|
var _ref2;
|
|
3094
3096
|
|
|
3095
|
-
return /*#__PURE__*/
|
|
3097
|
+
return /*#__PURE__*/React$3.createElement("style", (_ref2 = {}, _ref2["data-emotion"] = cache.key + " " + serializedArr.map(function (serialized) {
|
|
3096
3098
|
return serialized.name;
|
|
3097
3099
|
}).join(' '), _ref2.dangerouslySetInnerHTML = {
|
|
3098
3100
|
__html: rules
|
|
@@ -3137,11 +3139,11 @@ var ClassNames = /* #__PURE__ */withEmotionCache(function (props, cache) {
|
|
|
3137
3139
|
var content = {
|
|
3138
3140
|
css: css,
|
|
3139
3141
|
cx: cx,
|
|
3140
|
-
theme:
|
|
3142
|
+
theme: React$3.useContext(ThemeContext)
|
|
3141
3143
|
};
|
|
3142
3144
|
var ele = props.children(content);
|
|
3143
3145
|
hasRendered = true;
|
|
3144
|
-
return /*#__PURE__*/
|
|
3146
|
+
return /*#__PURE__*/React$3.createElement(React$3.Fragment, null, /*#__PURE__*/React$3.createElement(Insertion, {
|
|
3145
3147
|
cache: cache,
|
|
3146
3148
|
serializedArr: serializedArr
|
|
3147
3149
|
}), ele);
|
|
@@ -3403,7 +3405,7 @@ var __importStar$2 = (commonjsGlobal && commonjsGlobal.__importStar) || function
|
|
|
3403
3405
|
};
|
|
3404
3406
|
Object.defineProperty(BeatLoader, "__esModule", { value: true });
|
|
3405
3407
|
/** @jsx jsx */
|
|
3406
|
-
var React$2 = __importStar$2(
|
|
3408
|
+
var React$2 = __importStar$2(React__default["default"]);
|
|
3407
3409
|
var react_1 = require$$1;
|
|
3408
3410
|
var helpers_1 = helpers$1;
|
|
3409
3411
|
var beat = react_1.keyframes(templateObject_1$O || (templateObject_1$O = __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"])));
|
|
@@ -3430,684 +3432,7 @@ var Loader = /** @class */ (function (_super) {
|
|
|
3430
3432
|
var _default = BeatLoader.default = Loader;
|
|
3431
3433
|
var templateObject_1$O, templateObject_2$u;
|
|
3432
3434
|
|
|
3433
|
-
|
|
3434
|
-
function M(d, c, e, h, a) {
|
|
3435
|
-
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;) {
|
|
3436
|
-
g = e.charCodeAt(l);
|
|
3437
|
-
l === J && 0 !== b + n + v + m && (0 !== b && (g = 47 === b ? 10 : 47), n = v = m = 0, B++, J++);
|
|
3438
|
-
|
|
3439
|
-
if (0 === b + n + v + m) {
|
|
3440
|
-
if (l === J && (0 < r && (f = f.replace(N, '')), 0 < f.trim().length)) {
|
|
3441
|
-
switch (g) {
|
|
3442
|
-
case 32:
|
|
3443
|
-
case 9:
|
|
3444
|
-
case 59:
|
|
3445
|
-
case 13:
|
|
3446
|
-
case 10:
|
|
3447
|
-
break;
|
|
3448
|
-
|
|
3449
|
-
default:
|
|
3450
|
-
f += e.charAt(l);
|
|
3451
|
-
}
|
|
3452
|
-
|
|
3453
|
-
g = 59;
|
|
3454
|
-
}
|
|
3455
|
-
|
|
3456
|
-
switch (g) {
|
|
3457
|
-
case 123:
|
|
3458
|
-
f = f.trim();
|
|
3459
|
-
q = f.charCodeAt(0);
|
|
3460
|
-
k = 1;
|
|
3461
|
-
|
|
3462
|
-
for (t = ++l; l < B;) {
|
|
3463
|
-
switch (g = e.charCodeAt(l)) {
|
|
3464
|
-
case 123:
|
|
3465
|
-
k++;
|
|
3466
|
-
break;
|
|
3467
|
-
|
|
3468
|
-
case 125:
|
|
3469
|
-
k--;
|
|
3470
|
-
break;
|
|
3471
|
-
|
|
3472
|
-
case 47:
|
|
3473
|
-
switch (g = e.charCodeAt(l + 1)) {
|
|
3474
|
-
case 42:
|
|
3475
|
-
case 47:
|
|
3476
|
-
a: {
|
|
3477
|
-
for (u = l + 1; u < J; ++u) {
|
|
3478
|
-
switch (e.charCodeAt(u)) {
|
|
3479
|
-
case 47:
|
|
3480
|
-
if (42 === g && 42 === e.charCodeAt(u - 1) && l + 2 !== u) {
|
|
3481
|
-
l = u + 1;
|
|
3482
|
-
break a;
|
|
3483
|
-
}
|
|
3484
|
-
|
|
3485
|
-
break;
|
|
3486
|
-
|
|
3487
|
-
case 10:
|
|
3488
|
-
if (47 === g) {
|
|
3489
|
-
l = u + 1;
|
|
3490
|
-
break a;
|
|
3491
|
-
}
|
|
3492
|
-
|
|
3493
|
-
}
|
|
3494
|
-
}
|
|
3495
|
-
|
|
3496
|
-
l = u;
|
|
3497
|
-
}
|
|
3498
|
-
|
|
3499
|
-
}
|
|
3500
|
-
|
|
3501
|
-
break;
|
|
3502
|
-
|
|
3503
|
-
case 91:
|
|
3504
|
-
g++;
|
|
3505
|
-
|
|
3506
|
-
case 40:
|
|
3507
|
-
g++;
|
|
3508
|
-
|
|
3509
|
-
case 34:
|
|
3510
|
-
case 39:
|
|
3511
|
-
for (; l++ < J && e.charCodeAt(l) !== g;) {
|
|
3512
|
-
}
|
|
3513
|
-
|
|
3514
|
-
}
|
|
3515
|
-
|
|
3516
|
-
if (0 === k) break;
|
|
3517
|
-
l++;
|
|
3518
|
-
}
|
|
3519
|
-
|
|
3520
|
-
k = e.substring(t, l);
|
|
3521
|
-
0 === q && (q = (f = f.replace(ca, '').trim()).charCodeAt(0));
|
|
3522
|
-
|
|
3523
|
-
switch (q) {
|
|
3524
|
-
case 64:
|
|
3525
|
-
0 < r && (f = f.replace(N, ''));
|
|
3526
|
-
g = f.charCodeAt(1);
|
|
3527
|
-
|
|
3528
|
-
switch (g) {
|
|
3529
|
-
case 100:
|
|
3530
|
-
case 109:
|
|
3531
|
-
case 115:
|
|
3532
|
-
case 45:
|
|
3533
|
-
r = c;
|
|
3534
|
-
break;
|
|
3535
|
-
|
|
3536
|
-
default:
|
|
3537
|
-
r = O;
|
|
3538
|
-
}
|
|
3539
|
-
|
|
3540
|
-
k = M(c, r, k, g, a + 1);
|
|
3541
|
-
t = k.length;
|
|
3542
|
-
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 = ''));
|
|
3543
|
-
if (0 < t) switch (g) {
|
|
3544
|
-
case 115:
|
|
3545
|
-
f = f.replace(da, ea);
|
|
3546
|
-
|
|
3547
|
-
case 100:
|
|
3548
|
-
case 109:
|
|
3549
|
-
case 45:
|
|
3550
|
-
k = f + '{' + k + '}';
|
|
3551
|
-
break;
|
|
3552
|
-
|
|
3553
|
-
case 107:
|
|
3554
|
-
f = f.replace(fa, '$1 $2');
|
|
3555
|
-
k = f + '{' + k + '}';
|
|
3556
|
-
k = 1 === w || 2 === w && L('@' + k, 3) ? '@-webkit-' + k + '@' + k : '@' + k;
|
|
3557
|
-
break;
|
|
3558
|
-
|
|
3559
|
-
default:
|
|
3560
|
-
k = f + k, 112 === h && (k = (p += k, ''));
|
|
3561
|
-
} else k = '';
|
|
3562
|
-
break;
|
|
3563
|
-
|
|
3564
|
-
default:
|
|
3565
|
-
k = M(c, X(c, f, I), k, h, a + 1);
|
|
3566
|
-
}
|
|
3567
|
-
|
|
3568
|
-
F += k;
|
|
3569
|
-
k = I = r = u = q = 0;
|
|
3570
|
-
f = '';
|
|
3571
|
-
g = e.charCodeAt(++l);
|
|
3572
|
-
break;
|
|
3573
|
-
|
|
3574
|
-
case 125:
|
|
3575
|
-
case 59:
|
|
3576
|
-
f = (0 < r ? f.replace(N, '') : f).trim();
|
|
3577
|
-
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) {
|
|
3578
|
-
case 0:
|
|
3579
|
-
break;
|
|
3580
|
-
|
|
3581
|
-
case 64:
|
|
3582
|
-
if (105 === g || 99 === g) {
|
|
3583
|
-
G += f + e.charAt(l);
|
|
3584
|
-
break;
|
|
3585
|
-
}
|
|
3586
|
-
|
|
3587
|
-
default:
|
|
3588
|
-
58 !== f.charCodeAt(t - 1) && (p += P(f, q, g, f.charCodeAt(2)));
|
|
3589
|
-
}
|
|
3590
|
-
I = r = u = q = 0;
|
|
3591
|
-
f = '';
|
|
3592
|
-
g = e.charCodeAt(++l);
|
|
3593
|
-
}
|
|
3594
|
-
}
|
|
3595
|
-
|
|
3596
|
-
switch (g) {
|
|
3597
|
-
case 13:
|
|
3598
|
-
case 10:
|
|
3599
|
-
47 === b ? b = 0 : 0 === 1 + q && 107 !== h && 0 < f.length && (r = 1, f += '\x00');
|
|
3600
|
-
0 < A * Y && H(0, f, c, d, D, z, p.length, h, a, h);
|
|
3601
|
-
z = 1;
|
|
3602
|
-
D++;
|
|
3603
|
-
break;
|
|
3604
|
-
|
|
3605
|
-
case 59:
|
|
3606
|
-
case 125:
|
|
3607
|
-
if (0 === b + n + v + m) {
|
|
3608
|
-
z++;
|
|
3609
|
-
break;
|
|
3610
|
-
}
|
|
3611
|
-
|
|
3612
|
-
default:
|
|
3613
|
-
z++;
|
|
3614
|
-
y = e.charAt(l);
|
|
3615
|
-
|
|
3616
|
-
switch (g) {
|
|
3617
|
-
case 9:
|
|
3618
|
-
case 32:
|
|
3619
|
-
if (0 === n + m + b) switch (x) {
|
|
3620
|
-
case 44:
|
|
3621
|
-
case 58:
|
|
3622
|
-
case 9:
|
|
3623
|
-
case 32:
|
|
3624
|
-
y = '';
|
|
3625
|
-
break;
|
|
3626
|
-
|
|
3627
|
-
default:
|
|
3628
|
-
32 !== g && (y = ' ');
|
|
3629
|
-
}
|
|
3630
|
-
break;
|
|
3631
|
-
|
|
3632
|
-
case 0:
|
|
3633
|
-
y = '\\0';
|
|
3634
|
-
break;
|
|
3635
|
-
|
|
3636
|
-
case 12:
|
|
3637
|
-
y = '\\f';
|
|
3638
|
-
break;
|
|
3639
|
-
|
|
3640
|
-
case 11:
|
|
3641
|
-
y = '\\v';
|
|
3642
|
-
break;
|
|
3643
|
-
|
|
3644
|
-
case 38:
|
|
3645
|
-
0 === n + b + m && (r = I = 1, y = '\f' + y);
|
|
3646
|
-
break;
|
|
3647
|
-
|
|
3648
|
-
case 108:
|
|
3649
|
-
if (0 === n + b + m + E && 0 < u) switch (l - u) {
|
|
3650
|
-
case 2:
|
|
3651
|
-
112 === x && 58 === e.charCodeAt(l - 3) && (E = x);
|
|
3652
|
-
|
|
3653
|
-
case 8:
|
|
3654
|
-
111 === K && (E = K);
|
|
3655
|
-
}
|
|
3656
|
-
break;
|
|
3657
|
-
|
|
3658
|
-
case 58:
|
|
3659
|
-
0 === n + b + m && (u = l);
|
|
3660
|
-
break;
|
|
3661
|
-
|
|
3662
|
-
case 44:
|
|
3663
|
-
0 === b + v + n + m && (r = 1, y += '\r');
|
|
3664
|
-
break;
|
|
3665
|
-
|
|
3666
|
-
case 34:
|
|
3667
|
-
case 39:
|
|
3668
|
-
0 === b && (n = n === g ? 0 : 0 === n ? g : n);
|
|
3669
|
-
break;
|
|
3670
|
-
|
|
3671
|
-
case 91:
|
|
3672
|
-
0 === n + b + v && m++;
|
|
3673
|
-
break;
|
|
3674
|
-
|
|
3675
|
-
case 93:
|
|
3676
|
-
0 === n + b + v && m--;
|
|
3677
|
-
break;
|
|
3678
|
-
|
|
3679
|
-
case 41:
|
|
3680
|
-
0 === n + b + m && v--;
|
|
3681
|
-
break;
|
|
3682
|
-
|
|
3683
|
-
case 40:
|
|
3684
|
-
if (0 === n + b + m) {
|
|
3685
|
-
if (0 === q) switch (2 * x + 3 * K) {
|
|
3686
|
-
case 533:
|
|
3687
|
-
break;
|
|
3688
|
-
|
|
3689
|
-
default:
|
|
3690
|
-
q = 1;
|
|
3691
|
-
}
|
|
3692
|
-
v++;
|
|
3693
|
-
}
|
|
3694
|
-
|
|
3695
|
-
break;
|
|
3696
|
-
|
|
3697
|
-
case 64:
|
|
3698
|
-
0 === b + v + n + m + u + k && (k = 1);
|
|
3699
|
-
break;
|
|
3700
|
-
|
|
3701
|
-
case 42:
|
|
3702
|
-
case 47:
|
|
3703
|
-
if (!(0 < n + m + v)) switch (b) {
|
|
3704
|
-
case 0:
|
|
3705
|
-
switch (2 * g + 3 * e.charCodeAt(l + 1)) {
|
|
3706
|
-
case 235:
|
|
3707
|
-
b = 47;
|
|
3708
|
-
break;
|
|
3709
|
-
|
|
3710
|
-
case 220:
|
|
3711
|
-
t = l, b = 42;
|
|
3712
|
-
}
|
|
3713
|
-
|
|
3714
|
-
break;
|
|
3715
|
-
|
|
3716
|
-
case 42:
|
|
3717
|
-
47 === g && 42 === x && t + 2 !== l && (33 === e.charCodeAt(t + 2) && (p += e.substring(t, l + 1)), y = '', b = 0);
|
|
3718
|
-
}
|
|
3719
|
-
}
|
|
3720
|
-
|
|
3721
|
-
0 === b && (f += y);
|
|
3722
|
-
}
|
|
3723
|
-
|
|
3724
|
-
K = x;
|
|
3725
|
-
x = g;
|
|
3726
|
-
l++;
|
|
3727
|
-
}
|
|
3728
|
-
|
|
3729
|
-
t = p.length;
|
|
3730
|
-
|
|
3731
|
-
if (0 < t) {
|
|
3732
|
-
r = c;
|
|
3733
|
-
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;
|
|
3734
|
-
p = r.join(',') + '{' + p + '}';
|
|
3735
|
-
|
|
3736
|
-
if (0 !== w * E) {
|
|
3737
|
-
2 !== w || L(p, 2) || (E = 0);
|
|
3738
|
-
|
|
3739
|
-
switch (E) {
|
|
3740
|
-
case 111:
|
|
3741
|
-
p = p.replace(ha, ':-moz-$1') + p;
|
|
3742
|
-
break;
|
|
3743
|
-
|
|
3744
|
-
case 112:
|
|
3745
|
-
p = p.replace(Q, '::-webkit-input-$1') + p.replace(Q, '::-moz-$1') + p.replace(Q, ':-ms-input-$1') + p;
|
|
3746
|
-
}
|
|
3747
|
-
|
|
3748
|
-
E = 0;
|
|
3749
|
-
}
|
|
3750
|
-
}
|
|
3751
|
-
|
|
3752
|
-
return G + p + F;
|
|
3753
|
-
}
|
|
3754
|
-
|
|
3755
|
-
function X(d, c, e) {
|
|
3756
|
-
var h = c.trim().split(ia);
|
|
3757
|
-
c = h;
|
|
3758
|
-
var a = h.length,
|
|
3759
|
-
m = d.length;
|
|
3760
|
-
|
|
3761
|
-
switch (m) {
|
|
3762
|
-
case 0:
|
|
3763
|
-
case 1:
|
|
3764
|
-
var b = 0;
|
|
3765
|
-
|
|
3766
|
-
for (d = 0 === m ? '' : d[0] + ' '; b < a; ++b) {
|
|
3767
|
-
c[b] = Z(d, c[b], e).trim();
|
|
3768
|
-
}
|
|
3769
|
-
|
|
3770
|
-
break;
|
|
3771
|
-
|
|
3772
|
-
default:
|
|
3773
|
-
var v = b = 0;
|
|
3774
|
-
|
|
3775
|
-
for (c = []; b < a; ++b) {
|
|
3776
|
-
for (var n = 0; n < m; ++n) {
|
|
3777
|
-
c[v++] = Z(d[n] + ' ', h[b], e).trim();
|
|
3778
|
-
}
|
|
3779
|
-
}
|
|
3780
|
-
|
|
3781
|
-
}
|
|
3782
|
-
|
|
3783
|
-
return c;
|
|
3784
|
-
}
|
|
3785
|
-
|
|
3786
|
-
function Z(d, c, e) {
|
|
3787
|
-
var h = c.charCodeAt(0);
|
|
3788
|
-
33 > h && (h = (c = c.trim()).charCodeAt(0));
|
|
3789
|
-
|
|
3790
|
-
switch (h) {
|
|
3791
|
-
case 38:
|
|
3792
|
-
return c.replace(F, '$1' + d.trim());
|
|
3793
|
-
|
|
3794
|
-
case 58:
|
|
3795
|
-
return d.trim() + c.replace(F, '$1' + d.trim());
|
|
3796
|
-
|
|
3797
|
-
default:
|
|
3798
|
-
if (0 < 1 * e && 0 < c.indexOf('\f')) return c.replace(F, (58 === d.charCodeAt(0) ? '' : '$1') + d.trim());
|
|
3799
|
-
}
|
|
3800
|
-
|
|
3801
|
-
return d + c;
|
|
3802
|
-
}
|
|
3803
|
-
|
|
3804
|
-
function P(d, c, e, h) {
|
|
3805
|
-
var a = d + ';',
|
|
3806
|
-
m = 2 * c + 3 * e + 4 * h;
|
|
3807
|
-
|
|
3808
|
-
if (944 === m) {
|
|
3809
|
-
d = a.indexOf(':', 9) + 1;
|
|
3810
|
-
var b = a.substring(d, a.length - 1).trim();
|
|
3811
|
-
b = a.substring(0, d).trim() + b + ';';
|
|
3812
|
-
return 1 === w || 2 === w && L(b, 1) ? '-webkit-' + b + b : b;
|
|
3813
|
-
}
|
|
3814
|
-
|
|
3815
|
-
if (0 === w || 2 === w && !L(a, 1)) return a;
|
|
3816
|
-
|
|
3817
|
-
switch (m) {
|
|
3818
|
-
case 1015:
|
|
3819
|
-
return 97 === a.charCodeAt(10) ? '-webkit-' + a + a : a;
|
|
3820
|
-
|
|
3821
|
-
case 951:
|
|
3822
|
-
return 116 === a.charCodeAt(3) ? '-webkit-' + a + a : a;
|
|
3823
|
-
|
|
3824
|
-
case 963:
|
|
3825
|
-
return 110 === a.charCodeAt(5) ? '-webkit-' + a + a : a;
|
|
3826
|
-
|
|
3827
|
-
case 1009:
|
|
3828
|
-
if (100 !== a.charCodeAt(4)) break;
|
|
3829
|
-
|
|
3830
|
-
case 969:
|
|
3831
|
-
case 942:
|
|
3832
|
-
return '-webkit-' + a + a;
|
|
3833
|
-
|
|
3834
|
-
case 978:
|
|
3835
|
-
return '-webkit-' + a + '-moz-' + a + a;
|
|
3836
|
-
|
|
3837
|
-
case 1019:
|
|
3838
|
-
case 983:
|
|
3839
|
-
return '-webkit-' + a + '-moz-' + a + '-ms-' + a + a;
|
|
3840
|
-
|
|
3841
|
-
case 883:
|
|
3842
|
-
if (45 === a.charCodeAt(8)) return '-webkit-' + a + a;
|
|
3843
|
-
if (0 < a.indexOf('image-set(', 11)) return a.replace(ja, '$1-webkit-$2') + a;
|
|
3844
|
-
break;
|
|
3845
|
-
|
|
3846
|
-
case 932:
|
|
3847
|
-
if (45 === a.charCodeAt(4)) switch (a.charCodeAt(5)) {
|
|
3848
|
-
case 103:
|
|
3849
|
-
return '-webkit-box-' + a.replace('-grow', '') + '-webkit-' + a + '-ms-' + a.replace('grow', 'positive') + a;
|
|
3850
|
-
|
|
3851
|
-
case 115:
|
|
3852
|
-
return '-webkit-' + a + '-ms-' + a.replace('shrink', 'negative') + a;
|
|
3853
|
-
|
|
3854
|
-
case 98:
|
|
3855
|
-
return '-webkit-' + a + '-ms-' + a.replace('basis', 'preferred-size') + a;
|
|
3856
|
-
}
|
|
3857
|
-
return '-webkit-' + a + '-ms-' + a + a;
|
|
3858
|
-
|
|
3859
|
-
case 964:
|
|
3860
|
-
return '-webkit-' + a + '-ms-flex-' + a + a;
|
|
3861
|
-
|
|
3862
|
-
case 1023:
|
|
3863
|
-
if (99 !== a.charCodeAt(8)) break;
|
|
3864
|
-
b = a.substring(a.indexOf(':', 15)).replace('flex-', '').replace('space-between', 'justify');
|
|
3865
|
-
return '-webkit-box-pack' + b + '-webkit-' + a + '-ms-flex-pack' + b + a;
|
|
3866
|
-
|
|
3867
|
-
case 1005:
|
|
3868
|
-
return ka.test(a) ? a.replace(aa, ':-webkit-') + a.replace(aa, ':-moz-') + a : a;
|
|
3869
|
-
|
|
3870
|
-
case 1e3:
|
|
3871
|
-
b = a.substring(13).trim();
|
|
3872
|
-
c = b.indexOf('-') + 1;
|
|
3873
|
-
|
|
3874
|
-
switch (b.charCodeAt(0) + b.charCodeAt(c)) {
|
|
3875
|
-
case 226:
|
|
3876
|
-
b = a.replace(G, 'tb');
|
|
3877
|
-
break;
|
|
3878
|
-
|
|
3879
|
-
case 232:
|
|
3880
|
-
b = a.replace(G, 'tb-rl');
|
|
3881
|
-
break;
|
|
3882
|
-
|
|
3883
|
-
case 220:
|
|
3884
|
-
b = a.replace(G, 'lr');
|
|
3885
|
-
break;
|
|
3886
|
-
|
|
3887
|
-
default:
|
|
3888
|
-
return a;
|
|
3889
|
-
}
|
|
3890
|
-
|
|
3891
|
-
return '-webkit-' + a + '-ms-' + b + a;
|
|
3892
|
-
|
|
3893
|
-
case 1017:
|
|
3894
|
-
if (-1 === a.indexOf('sticky', 9)) break;
|
|
3895
|
-
|
|
3896
|
-
case 975:
|
|
3897
|
-
c = (a = d).length - 10;
|
|
3898
|
-
b = (33 === a.charCodeAt(c) ? a.substring(0, c) : a).substring(d.indexOf(':', 7) + 1).trim();
|
|
3899
|
-
|
|
3900
|
-
switch (m = b.charCodeAt(0) + (b.charCodeAt(7) | 0)) {
|
|
3901
|
-
case 203:
|
|
3902
|
-
if (111 > b.charCodeAt(8)) break;
|
|
3903
|
-
|
|
3904
|
-
case 115:
|
|
3905
|
-
a = a.replace(b, '-webkit-' + b) + ';' + a;
|
|
3906
|
-
break;
|
|
3907
|
-
|
|
3908
|
-
case 207:
|
|
3909
|
-
case 102:
|
|
3910
|
-
a = a.replace(b, '-webkit-' + (102 < m ? 'inline-' : '') + 'box') + ';' + a.replace(b, '-webkit-' + b) + ';' + a.replace(b, '-ms-' + b + 'box') + ';' + a;
|
|
3911
|
-
}
|
|
3912
|
-
|
|
3913
|
-
return a + ';';
|
|
3914
|
-
|
|
3915
|
-
case 938:
|
|
3916
|
-
if (45 === a.charCodeAt(5)) switch (a.charCodeAt(6)) {
|
|
3917
|
-
case 105:
|
|
3918
|
-
return b = a.replace('-items', ''), '-webkit-' + a + '-webkit-box-' + b + '-ms-flex-' + b + a;
|
|
3919
|
-
|
|
3920
|
-
case 115:
|
|
3921
|
-
return '-webkit-' + a + '-ms-flex-item-' + a.replace(ba, '') + a;
|
|
3922
|
-
|
|
3923
|
-
default:
|
|
3924
|
-
return '-webkit-' + a + '-ms-flex-line-pack' + a.replace('align-content', '').replace(ba, '') + a;
|
|
3925
|
-
}
|
|
3926
|
-
break;
|
|
3927
|
-
|
|
3928
|
-
case 973:
|
|
3929
|
-
case 989:
|
|
3930
|
-
if (45 !== a.charCodeAt(3) || 122 === a.charCodeAt(4)) break;
|
|
3931
|
-
|
|
3932
|
-
case 931:
|
|
3933
|
-
case 953:
|
|
3934
|
-
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;
|
|
3935
|
-
break;
|
|
3936
|
-
|
|
3937
|
-
case 962:
|
|
3938
|
-
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;
|
|
3939
|
-
}
|
|
3940
|
-
|
|
3941
|
-
return a;
|
|
3942
|
-
}
|
|
3943
|
-
|
|
3944
|
-
function L(d, c) {
|
|
3945
|
-
var e = d.indexOf(1 === c ? ':' : '{'),
|
|
3946
|
-
h = d.substring(0, 3 !== c ? e : 10);
|
|
3947
|
-
e = d.substring(e + 1, d.length - 1);
|
|
3948
|
-
return R(2 !== c ? h : h.replace(na, '$1'), e, c);
|
|
3949
|
-
}
|
|
3950
|
-
|
|
3951
|
-
function ea(d, c) {
|
|
3952
|
-
var e = P(c, c.charCodeAt(0), c.charCodeAt(1), c.charCodeAt(2));
|
|
3953
|
-
return e !== c + ';' ? e.replace(oa, ' or ($1)').substring(4) : '(' + c + ')';
|
|
3954
|
-
}
|
|
3955
|
-
|
|
3956
|
-
function H(d, c, e, h, a, m, b, v, n, q) {
|
|
3957
|
-
for (var g = 0, x = c, w; g < A; ++g) {
|
|
3958
|
-
switch (w = S[g].call(B, d, x, e, h, a, m, b, v, n, q)) {
|
|
3959
|
-
case void 0:
|
|
3960
|
-
case !1:
|
|
3961
|
-
case !0:
|
|
3962
|
-
case null:
|
|
3963
|
-
break;
|
|
3964
|
-
|
|
3965
|
-
default:
|
|
3966
|
-
x = w;
|
|
3967
|
-
}
|
|
3968
|
-
}
|
|
3969
|
-
|
|
3970
|
-
if (x !== c) return x;
|
|
3971
|
-
}
|
|
3972
|
-
|
|
3973
|
-
function T(d) {
|
|
3974
|
-
switch (d) {
|
|
3975
|
-
case void 0:
|
|
3976
|
-
case null:
|
|
3977
|
-
A = S.length = 0;
|
|
3978
|
-
break;
|
|
3979
|
-
|
|
3980
|
-
default:
|
|
3981
|
-
if ('function' === typeof d) S[A++] = d;else if ('object' === typeof d) for (var c = 0, e = d.length; c < e; ++c) {
|
|
3982
|
-
T(d[c]);
|
|
3983
|
-
} else Y = !!d | 0;
|
|
3984
|
-
}
|
|
3985
|
-
|
|
3986
|
-
return T;
|
|
3987
|
-
}
|
|
3988
|
-
|
|
3989
|
-
function U(d) {
|
|
3990
|
-
d = d.prefix;
|
|
3991
|
-
void 0 !== d && (R = null, d ? 'function' !== typeof d ? w = 1 : (w = 2, R = d) : w = 0);
|
|
3992
|
-
return U;
|
|
3993
|
-
}
|
|
3994
|
-
|
|
3995
|
-
function B(d, c) {
|
|
3996
|
-
var e = d;
|
|
3997
|
-
33 > e.charCodeAt(0) && (e = e.trim());
|
|
3998
|
-
V = e;
|
|
3999
|
-
e = [V];
|
|
4000
|
-
|
|
4001
|
-
if (0 < A) {
|
|
4002
|
-
var h = H(-1, c, e, e, D, z, 0, 0, 0, 0);
|
|
4003
|
-
void 0 !== h && 'string' === typeof h && (c = h);
|
|
4004
|
-
}
|
|
4005
|
-
|
|
4006
|
-
var a = M(O, e, c, 0, 0);
|
|
4007
|
-
0 < A && (h = H(-2, a, e, e, D, z, a.length, 0, 0, 0), void 0 !== h && (a = h));
|
|
4008
|
-
V = '';
|
|
4009
|
-
E = 0;
|
|
4010
|
-
z = D = 1;
|
|
4011
|
-
return a;
|
|
4012
|
-
}
|
|
4013
|
-
|
|
4014
|
-
var ca = /^\0+/g,
|
|
4015
|
-
N = /[\0\r\f]/g,
|
|
4016
|
-
aa = /: */g,
|
|
4017
|
-
ka = /zoo|gra/,
|
|
4018
|
-
ma = /([,: ])(transform)/g,
|
|
4019
|
-
ia = /,\r+?/g,
|
|
4020
|
-
F = /([\t\r\n ])*\f?&/g,
|
|
4021
|
-
fa = /@(k\w+)\s*(\S*)\s*/,
|
|
4022
|
-
Q = /::(place)/g,
|
|
4023
|
-
ha = /:(read-only)/g,
|
|
4024
|
-
G = /[svh]\w+-[tblr]{2}/,
|
|
4025
|
-
da = /\(\s*(.*)\s*\)/g,
|
|
4026
|
-
oa = /([\s\S]*?);/g,
|
|
4027
|
-
ba = /-self|flex-/g,
|
|
4028
|
-
na = /[^]*?(:[rp][el]a[\w-]+)[^]*/,
|
|
4029
|
-
la = /stretch|:\s*\w+\-(?:conte|avail)/,
|
|
4030
|
-
ja = /([^-])(image-set\()/,
|
|
4031
|
-
z = 1,
|
|
4032
|
-
D = 1,
|
|
4033
|
-
E = 0,
|
|
4034
|
-
w = 1,
|
|
4035
|
-
O = [],
|
|
4036
|
-
S = [],
|
|
4037
|
-
A = 0,
|
|
4038
|
-
R = null,
|
|
4039
|
-
Y = 0,
|
|
4040
|
-
V = '';
|
|
4041
|
-
B.use = T;
|
|
4042
|
-
B.set = U;
|
|
4043
|
-
void 0 !== W && U(W);
|
|
4044
|
-
return B;
|
|
4045
|
-
}
|
|
4046
|
-
|
|
4047
|
-
var unitlessKeys = {
|
|
4048
|
-
animationIterationCount: 1,
|
|
4049
|
-
borderImageOutset: 1,
|
|
4050
|
-
borderImageSlice: 1,
|
|
4051
|
-
borderImageWidth: 1,
|
|
4052
|
-
boxFlex: 1,
|
|
4053
|
-
boxFlexGroup: 1,
|
|
4054
|
-
boxOrdinalGroup: 1,
|
|
4055
|
-
columnCount: 1,
|
|
4056
|
-
columns: 1,
|
|
4057
|
-
flex: 1,
|
|
4058
|
-
flexGrow: 1,
|
|
4059
|
-
flexPositive: 1,
|
|
4060
|
-
flexShrink: 1,
|
|
4061
|
-
flexNegative: 1,
|
|
4062
|
-
flexOrder: 1,
|
|
4063
|
-
gridRow: 1,
|
|
4064
|
-
gridRowEnd: 1,
|
|
4065
|
-
gridRowSpan: 1,
|
|
4066
|
-
gridRowStart: 1,
|
|
4067
|
-
gridColumn: 1,
|
|
4068
|
-
gridColumnEnd: 1,
|
|
4069
|
-
gridColumnSpan: 1,
|
|
4070
|
-
gridColumnStart: 1,
|
|
4071
|
-
msGridRow: 1,
|
|
4072
|
-
msGridRowSpan: 1,
|
|
4073
|
-
msGridColumn: 1,
|
|
4074
|
-
msGridColumnSpan: 1,
|
|
4075
|
-
fontWeight: 1,
|
|
4076
|
-
lineHeight: 1,
|
|
4077
|
-
opacity: 1,
|
|
4078
|
-
order: 1,
|
|
4079
|
-
orphans: 1,
|
|
4080
|
-
tabSize: 1,
|
|
4081
|
-
widows: 1,
|
|
4082
|
-
zIndex: 1,
|
|
4083
|
-
zoom: 1,
|
|
4084
|
-
WebkitLineClamp: 1,
|
|
4085
|
-
// SVG-related properties
|
|
4086
|
-
fillOpacity: 1,
|
|
4087
|
-
floodOpacity: 1,
|
|
4088
|
-
stopOpacity: 1,
|
|
4089
|
-
strokeDasharray: 1,
|
|
4090
|
-
strokeDashoffset: 1,
|
|
4091
|
-
strokeMiterlimit: 1,
|
|
4092
|
-
strokeOpacity: 1,
|
|
4093
|
-
strokeWidth: 1
|
|
4094
|
-
};
|
|
4095
|
-
|
|
4096
|
-
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
|
|
4097
|
-
|
|
4098
|
-
var isPropValid = /* #__PURE__ */memoize(function (prop) {
|
|
4099
|
-
return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111
|
|
4100
|
-
/* o */
|
|
4101
|
-
&& prop.charCodeAt(1) === 110
|
|
4102
|
-
/* n */
|
|
4103
|
-
&& prop.charCodeAt(2) < 91;
|
|
4104
|
-
}
|
|
4105
|
-
/* Z+1 */
|
|
4106
|
-
);
|
|
4107
|
-
|
|
4108
|
-
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["default"].createContext();ce.Consumer;var le=r__default["default"].createContext(),de=(le.Consumer,new X),he=ae();function pe(){return r$1.useContext(ce)||de}function fe(){return r$1.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));}},r$1.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["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&&r$1.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,r$1.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&&r$1.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,r$1.createElement(_,C)}(C,e,t,P)};return O.displayName=v,(C=r__default["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;
|
|
4109
|
-
|
|
4110
|
-
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) {
|
|
3435
|
+
var StyledButton = styled__default["default"].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) {
|
|
4111
3436
|
var fluid = _a.fluid;
|
|
4112
3437
|
return (fluid ? "100%" : "fit-content");
|
|
4113
3438
|
}, function (_a) {
|
|
@@ -4157,11 +3482,11 @@ var StyledButton = styled.button(templateObject_1$N || (templateObject_1$N = __m
|
|
|
4157
3482
|
? theme.button.medium.heightActive
|
|
4158
3483
|
: theme.button[size].heightActive;
|
|
4159
3484
|
});
|
|
4160
|
-
var DisabledButton =
|
|
3485
|
+
var DisabledButton = styled__default["default"](StyledButton)(templateObject_2$t || (templateObject_2$t = __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) {
|
|
4161
3486
|
var size = _a.size;
|
|
4162
3487
|
return !size ? theme.button.medium.height : theme.button[size].height;
|
|
4163
3488
|
});
|
|
4164
|
-
var GhostButton =
|
|
3489
|
+
var GhostButton = styled__default["default"](StyledButton)(templateObject_3$a || (templateObject_3$a = __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) {
|
|
4165
3490
|
var size = _a.size;
|
|
4166
3491
|
return !size
|
|
4167
3492
|
? "calc(".concat(theme.button.medium.height, " - 2.5px)")
|
|
@@ -4177,7 +3502,7 @@ var GhostButton = styled(StyledButton)(templateObject_3$a || (templateObject_3$a
|
|
|
4177
3502
|
? theme.button.medium.marginTopActive
|
|
4178
3503
|
: theme.button[size].marginTopActive;
|
|
4179
3504
|
});
|
|
4180
|
-
var LoaderWrapper =
|
|
3505
|
+
var LoaderWrapper = styled__default["default"].div(templateObject_4$7 || (templateObject_4$7 = __makeTemplateObject$1(["\n width: ", ";\n margin-top: ", ";\n"], ["\n width: ", ";\n margin-top: ", ";\n"])), function (_a) {
|
|
4181
3506
|
var width = _a.width;
|
|
4182
3507
|
return "".concat(width, "px");
|
|
4183
3508
|
}, function (_a) {
|
|
@@ -4186,10 +3511,10 @@ var LoaderWrapper = styled.div(templateObject_4$7 || (templateObject_4$7 = __mak
|
|
|
4186
3511
|
});
|
|
4187
3512
|
var templateObject_1$N, templateObject_2$t, templateObject_3$a, templateObject_4$7;
|
|
4188
3513
|
|
|
4189
|
-
var Button =
|
|
3514
|
+
var Button = React$3.forwardRef(function (_a, ref) {
|
|
4190
3515
|
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"]);
|
|
4191
|
-
var buttonRef =
|
|
4192
|
-
var _b =
|
|
3516
|
+
var buttonRef = React$3.useRef(null);
|
|
3517
|
+
var _b = React$3.useState(false), isLoading = _b[0], setIsLoading = _b[1];
|
|
4193
3518
|
var as = href || asAnchor ? "a" : "button";
|
|
4194
3519
|
var onClick = function () {
|
|
4195
3520
|
if (props.onClickAsync) {
|
|
@@ -4220,7 +3545,7 @@ var Button = r$1.forwardRef(function (_a, ref) {
|
|
|
4220
3545
|
return (jsxRuntime.jsx(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 ? jsxRuntime.jsx(Loader, {}) : jsxRuntime.jsx("span", { children: label }) })));
|
|
4221
3546
|
});
|
|
4222
3547
|
|
|
4223
|
-
var StyledCheckbox =
|
|
3548
|
+
var StyledCheckbox = styled__default["default"].div(templateObject_1$M || (templateObject_1$M = __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) {
|
|
4224
3549
|
var checked = _a.checked, disabled = _a.disabled;
|
|
4225
3550
|
if (disabled)
|
|
4226
3551
|
return theme.colors.lightGray.darker;
|
|
@@ -4245,18 +3570,18 @@ var templateObject_1$M;
|
|
|
4245
3570
|
|
|
4246
3571
|
var Checkbox = function (props) {
|
|
4247
3572
|
var _a;
|
|
4248
|
-
var wrapperRef =
|
|
4249
|
-
var inputRef =
|
|
4250
|
-
var _b =
|
|
4251
|
-
|
|
3573
|
+
var wrapperRef = React$3.useRef(null);
|
|
3574
|
+
var inputRef = React$3.useRef(null);
|
|
3575
|
+
var _b = React$3.useState(props.checked), checked = _b[0], setChecked = _b[1];
|
|
3576
|
+
React$3.useEffect(function () {
|
|
4252
3577
|
var _a;
|
|
4253
3578
|
if (props.autoFocus)
|
|
4254
3579
|
(_a = wrapperRef.current) === null || _a === void 0 ? void 0 : _a.focus();
|
|
4255
3580
|
}, []);
|
|
4256
|
-
|
|
3581
|
+
React$3.useEffect(function () {
|
|
4257
3582
|
setChecked(inputRef.current.checked);
|
|
4258
3583
|
}, [(_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.checked]);
|
|
4259
|
-
|
|
3584
|
+
React$3.useEffect(function () {
|
|
4260
3585
|
inputRef.current.checked = props.checked;
|
|
4261
3586
|
setChecked(props.checked);
|
|
4262
3587
|
}, [props.checked]);
|
|
@@ -4274,7 +3599,7 @@ var Checkbox = function (props) {
|
|
|
4274
3599
|
return (jsxRuntime.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 && (jsxRuntime.jsx("svg", __assign$2({ width: 16, height: 12, viewBox: "0 0 16 12", fill: "none" }, { children: jsxRuntime.jsx("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" }) }))), jsxRuntime.jsx("input", { type: "checkbox", disabled: !!props.disabled, id: props.id, name: props.name, value: props.value, ref: inputRef })] })));
|
|
4275
3600
|
};
|
|
4276
3601
|
|
|
4277
|
-
var Wrapper$9 =
|
|
3602
|
+
var Wrapper$9 = styled__default["default"].div(templateObject_1$L || (templateObject_1$L = __makeTemplateObject$1(["\n width: ", ";\n height: ", ";\n"], ["\n width: ", ";\n height: ", ";\n"])), function (_a) {
|
|
4278
3603
|
var size = _a.size;
|
|
4279
3604
|
switch (size) {
|
|
4280
3605
|
case "small":
|
|
@@ -4565,7 +3890,7 @@ var flags = {
|
|
|
4565
3890
|
};
|
|
4566
3891
|
var Flag = function (props) { return (jsxRuntime.jsx(Wrapper$9, __assign$2({}, props, { children: flags[getCountryCodeByLocale_1(props.locale)] }))); };
|
|
4567
3892
|
|
|
4568
|
-
var StyledHeading =
|
|
3893
|
+
var StyledHeading = styled__default["default"].span(templateObject_1$K || (templateObject_1$K = __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) {
|
|
4569
3894
|
var type = _a.type;
|
|
4570
3895
|
return theme.heading[type].fontSize;
|
|
4571
3896
|
}, function (_a) {
|
|
@@ -4596,7 +3921,7 @@ var Heading = function (props) {
|
|
|
4596
3921
|
return (jsxRuntime.jsx(StyledHeading, __assign$2({}, props, { as: element }, { children: props.children })));
|
|
4597
3922
|
};
|
|
4598
3923
|
|
|
4599
|
-
var Wrapper$8 =
|
|
3924
|
+
var Wrapper$8 = styled__default["default"].div(templateObject_1$J || (templateObject_1$J = __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) {
|
|
4600
3925
|
var size = _a.size;
|
|
4601
3926
|
return theme.icon[size] || theme.icon.medium;
|
|
4602
3927
|
}, function (_a) {
|
|
@@ -4655,7 +3980,7 @@ var icons = {
|
|
|
4655
3980
|
};
|
|
4656
3981
|
var Icon = function (props) { return (jsxRuntime.jsx(Wrapper$8, __assign$2({}, props, { children: jsxRuntime.jsx("svg", __assign$2({ viewBox: "0 0 24 24", fill: "none" }, { children: icons[props.type] })) }))); };
|
|
4657
3982
|
|
|
4658
|
-
var Wrapper$7 =
|
|
3983
|
+
var Wrapper$7 = styled__default["default"].div(templateObject_1$I || (templateObject_1$I = __makeTemplateObject$1(["\n > svg {\n height: ", ";\n }\n"], ["\n > svg {\n height: ", ";\n }\n"])), function (_a) {
|
|
4659
3984
|
var size = _a.size;
|
|
4660
3985
|
switch (size) {
|
|
4661
3986
|
default:
|
|
@@ -4683,14 +4008,14 @@ var illustrations = {
|
|
|
4683
4008
|
};
|
|
4684
4009
|
var Illustration = function (props) { return (jsxRuntime.jsx(Wrapper$7, __assign$2({}, props, { children: illustrations[props.type] }))); };
|
|
4685
4010
|
|
|
4686
|
-
var InputIconWrapper =
|
|
4011
|
+
var InputIconWrapper = styled__default["default"].div(templateObject_1$H || (templateObject_1$H = __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) {
|
|
4687
4012
|
var isChanged = _a.isChanged;
|
|
4688
4013
|
return !isChanged ? theme.colors.lightGray.darker : "";
|
|
4689
4014
|
}, function (_a) {
|
|
4690
4015
|
var disabled = _a.disabled;
|
|
4691
4016
|
return (disabled ? "not-allowed" : "pointer");
|
|
4692
4017
|
});
|
|
4693
|
-
var StyledInput =
|
|
4018
|
+
var StyledInput = styled__default["default"].input(templateObject_2$s || (templateObject_2$s = __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) {
|
|
4694
4019
|
var disabled = _a.disabled;
|
|
4695
4020
|
return disabled ? theme.colors.lightGray.dark : theme.colors.lightGray.light;
|
|
4696
4021
|
}, function (_a) {
|
|
@@ -4706,7 +4031,7 @@ var StyledInput = styled.input(templateObject_2$s || (templateObject_2$s = __mak
|
|
|
4706
4031
|
var templateObject_1$H, templateObject_2$s;
|
|
4707
4032
|
|
|
4708
4033
|
var PasswordInput = function (props) {
|
|
4709
|
-
var _a =
|
|
4034
|
+
var _a = React$3.useState(false), isVisible = _a[0], setIsVisible = _a[1];
|
|
4710
4035
|
var toggle = function () {
|
|
4711
4036
|
if (!props.disabled)
|
|
4712
4037
|
setIsVisible(!isVisible);
|
|
@@ -4835,9 +4160,9 @@ function isBefore(dirtyDate, dirtyDateToCompare) {
|
|
|
4835
4160
|
|
|
4836
4161
|
var DateInput = function (props) {
|
|
4837
4162
|
var _a;
|
|
4838
|
-
var inputRef =
|
|
4839
|
-
var _b =
|
|
4840
|
-
|
|
4163
|
+
var inputRef = React$3.useRef(null);
|
|
4164
|
+
var _b = React$3.useState(false), isChanged = _b[0], setIsChanged = _b[1];
|
|
4165
|
+
React$3.useEffect(function () {
|
|
4841
4166
|
var _a;
|
|
4842
4167
|
if (!((_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.value))
|
|
4843
4168
|
setIsChanged(false);
|
|
@@ -4883,7 +4208,7 @@ Input.Date = DateInput;
|
|
|
4883
4208
|
|
|
4884
4209
|
var Logo = function (props) { return (jsxRuntime.jsxs("svg", __assign$2({ width: 396, height: 66, viewBox: "0 0 662.8 118.1", fill: "none", xmlSpace: "preserve" }, props, { children: [jsxRuntime.jsxs("g", { children: [jsxRuntime.jsx("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" }), jsxRuntime.jsx("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" }), jsxRuntime.jsx("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" }), jsxRuntime.jsx("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" }), jsxRuntime.jsx("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" })] }), jsxRuntime.jsxs("g", __assign$2({ fill: "#23292f" }, { children: [jsxRuntime.jsx("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" }), jsxRuntime.jsx("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" })] }))] }))); };
|
|
4885
4210
|
|
|
4886
|
-
var Wrapper$6 =
|
|
4211
|
+
var Wrapper$6 = styled__default["default"].div(templateObject_1$G || (templateObject_1$G = __makeTemplateObject$1(["\n width: ", ";\n"], ["\n width: ", ";\n"])), function (_a) {
|
|
4887
4212
|
var size = _a.size;
|
|
4888
4213
|
switch (size) {
|
|
4889
4214
|
default:
|
|
@@ -4909,11 +4234,11 @@ var medals = {
|
|
|
4909
4234
|
};
|
|
4910
4235
|
var Medal = function (props) { return (jsxRuntime.jsx(Wrapper$6, __assign$2({}, props, { children: medals[props.size || "small"][props.type] }))); };
|
|
4911
4236
|
|
|
4912
|
-
var Wrapper$5 =
|
|
4237
|
+
var Wrapper$5 = styled__default["default"].div(templateObject_1$F || (templateObject_1$F = __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) {
|
|
4913
4238
|
var disabled = _a.disabled;
|
|
4914
4239
|
return (disabled ? "49.5px" : "");
|
|
4915
4240
|
});
|
|
4916
|
-
var StyledInputNumber =
|
|
4241
|
+
var StyledInputNumber = styled__default["default"].input(templateObject_2$r || (templateObject_2$r = __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) {
|
|
4917
4242
|
var disabled = _a.disabled;
|
|
4918
4243
|
return disabled ? theme.colors.lightGray.base : theme.colors.lightGray.light;
|
|
4919
4244
|
}, function (_a) {
|
|
@@ -4929,7 +4254,7 @@ var StyledInputNumber = styled.input(templateObject_2$r || (templateObject_2$r =
|
|
|
4929
4254
|
var templateObject_1$F, templateObject_2$r;
|
|
4930
4255
|
|
|
4931
4256
|
var Number$1 = function (props) {
|
|
4932
|
-
var inputRef =
|
|
4257
|
+
var inputRef = React$3.useRef(null);
|
|
4933
4258
|
var onChange = function (e) {
|
|
4934
4259
|
if (!props.disabled && !!props.onChange)
|
|
4935
4260
|
props.onChange(parseInt(e.target.value));
|
|
@@ -4963,7 +4288,7 @@ var Number$1 = function (props) {
|
|
|
4963
4288
|
return (jsxRuntime.jsxs(Wrapper$5, __assign$2({ disabled: props.disabled }, { children: [jsxRuntime.jsx(Button, { label: "-", disabled: props.disabled, onClick: decrease, tabIndex: -1, type: "button" }), jsxRuntime.jsx(StyledInputNumber, __assign$2({ type: "number" }, props, { defaultValue: props.defaultValue || props.min || 0, onChange: onChange, onBlur: props.onBlur, ref: inputRef })), jsxRuntime.jsx(Button, { label: "+", disabled: props.disabled, onClick: increase, tabIndex: -1, type: "button" })] })));
|
|
4964
4289
|
};
|
|
4965
4290
|
|
|
4966
|
-
var StyledParagraph =
|
|
4291
|
+
var StyledParagraph = styled__default["default"].p(templateObject_1$E || (templateObject_1$E = __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) {
|
|
4967
4292
|
var size = _a.size;
|
|
4968
4293
|
return size ? theme.paragraph[size].fontSize : theme.paragraph.medium.fontSize;
|
|
4969
4294
|
}, function (_a) {
|
|
@@ -4999,7 +4324,7 @@ var templateObject_1$E;
|
|
|
4999
4324
|
|
|
5000
4325
|
var Paragraph = function (props) { return (jsxRuntime.jsx(StyledParagraph, __assign$2({}, props, { children: props.children }))); };
|
|
5001
4326
|
|
|
5002
|
-
var StyledRadio =
|
|
4327
|
+
var StyledRadio = styled__default["default"].div(templateObject_1$D || (templateObject_1$D = __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) {
|
|
5003
4328
|
var checked = _a.checked, disabled = _a.disabled;
|
|
5004
4329
|
if (disabled)
|
|
5005
4330
|
return theme.colors.lightGray.darker;
|
|
@@ -5031,19 +4356,19 @@ var templateObject_1$D;
|
|
|
5031
4356
|
|
|
5032
4357
|
var Radio = function (props) {
|
|
5033
4358
|
var _a, _b;
|
|
5034
|
-
var wrapperRef =
|
|
5035
|
-
var inputRef =
|
|
5036
|
-
var _c =
|
|
5037
|
-
|
|
4359
|
+
var wrapperRef = React$3.useRef(null);
|
|
4360
|
+
var inputRef = React$3.useRef(null);
|
|
4361
|
+
var _c = React$3.useState((_a = props.checked) !== null && _a !== void 0 ? _a : props.defaultValue), checked = _c[0], setChecked = _c[1];
|
|
4362
|
+
React$3.useEffect(function () {
|
|
5038
4363
|
if (props.autoFocus)
|
|
5039
4364
|
wrapperRef.current.focus();
|
|
5040
4365
|
if (props.defaultValue)
|
|
5041
4366
|
inputRef.current.checked = true;
|
|
5042
4367
|
}, []);
|
|
5043
|
-
|
|
4368
|
+
React$3.useEffect(function () {
|
|
5044
4369
|
setChecked(inputRef.current.checked);
|
|
5045
4370
|
}, [(_b = inputRef.current) === null || _b === void 0 ? void 0 : _b.checked]);
|
|
5046
|
-
|
|
4371
|
+
React$3.useEffect(function () {
|
|
5047
4372
|
setChecked(props.checked);
|
|
5048
4373
|
}, [props.checked]);
|
|
5049
4374
|
var toggle = function () {
|
|
@@ -5059,7 +4384,7 @@ var Radio = function (props) {
|
|
|
5059
4384
|
return (jsxRuntime.jsx(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: jsxRuntime.jsx("input", { type: "radio", disabled: !!props.disabled, id: props.id, name: props.name, value: props.value, ref: inputRef }) })));
|
|
5060
4385
|
};
|
|
5061
4386
|
|
|
5062
|
-
var StyledRange =
|
|
4387
|
+
var StyledRange = styled__default["default"].div(templateObject_1$C || (templateObject_1$C = __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) {
|
|
5063
4388
|
var value = _a.value, disabled = _a.disabled;
|
|
5064
4389
|
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 )");
|
|
5065
4390
|
}, function () { return theme.colors.lightGray.light; }, function (_a) {
|
|
@@ -5073,17 +4398,17 @@ var templateObject_1$C;
|
|
|
5073
4398
|
|
|
5074
4399
|
var Range = function (props) {
|
|
5075
4400
|
var _a;
|
|
5076
|
-
var rangeRef =
|
|
5077
|
-
var _b =
|
|
5078
|
-
|
|
4401
|
+
var rangeRef = React$3.useRef(null);
|
|
4402
|
+
var _b = React$3.useState(props.defaultValue || 0), value = _b[0], setValue = _b[1];
|
|
4403
|
+
React$3.useEffect(function () {
|
|
5079
4404
|
if (props.autoFocus)
|
|
5080
4405
|
rangeRef.current.focus();
|
|
5081
4406
|
}, []);
|
|
5082
|
-
|
|
4407
|
+
React$3.useEffect(function () {
|
|
5083
4408
|
var value = parseInt(rangeRef.current.value);
|
|
5084
4409
|
setValue(value);
|
|
5085
4410
|
}, [(_a = rangeRef.current) === null || _a === void 0 ? void 0 : _a.value]);
|
|
5086
|
-
|
|
4411
|
+
React$3.useEffect(function () {
|
|
5087
4412
|
rangeRef.current.value = "".concat(value);
|
|
5088
4413
|
}, [value]);
|
|
5089
4414
|
var onChange = function () {
|
|
@@ -5098,11 +4423,11 @@ var Range = function (props) {
|
|
|
5098
4423
|
return (jsxRuntime.jsx(StyledRange, __assign$2({ value: value, disabled: props.disabled }, { children: jsxRuntime.jsx("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 }) })));
|
|
5099
4424
|
};
|
|
5100
4425
|
|
|
5101
|
-
var Wrapper$4 =
|
|
4426
|
+
var Wrapper$4 = styled__default["default"].div(templateObject_1$B || (templateObject_1$B = __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) {
|
|
5102
4427
|
var disabled = _a.disabled;
|
|
5103
4428
|
return (disabled ? "not-allowed" : "pointer");
|
|
5104
4429
|
});
|
|
5105
|
-
var StyledSelect =
|
|
4430
|
+
var StyledSelect = styled__default["default"].select(templateObject_2$q || (templateObject_2$q = __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) {
|
|
5106
4431
|
var disabled = _a.disabled;
|
|
5107
4432
|
return disabled ? theme.colors.lightGray.dark : theme.colors.lightGray.light;
|
|
5108
4433
|
}, function (_a) {
|
|
@@ -5119,9 +4444,9 @@ var templateObject_1$B, templateObject_2$q;
|
|
|
5119
4444
|
|
|
5120
4445
|
var Select = function (props) {
|
|
5121
4446
|
var _a;
|
|
5122
|
-
var inputRef =
|
|
5123
|
-
var _b =
|
|
5124
|
-
|
|
4447
|
+
var inputRef = React$3.useRef(null);
|
|
4448
|
+
var _b = React$3.useState(false), isChanged = _b[0], setIsChanged = _b[1];
|
|
4449
|
+
React$3.useEffect(function () {
|
|
5125
4450
|
var _a, _b;
|
|
5126
4451
|
if (!((_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.value) ||
|
|
5127
4452
|
((_b = inputRef.current) === null || _b === void 0 ? void 0 : _b.value) === props.placeholder)
|
|
@@ -5137,7 +4462,7 @@ var Select = function (props) {
|
|
|
5137
4462
|
return (jsxRuntime.jsxs(Wrapper$4, { children: [jsxRuntime.jsx(Icon, { type: "chevronDown", color: "gray", size: "small" }), jsxRuntime.jsxs(StyledSelect, __assign$2({}, props, { onChange: onChange, isChanged: isChanged || props.defaultValue, ref: inputRef }, { children: [props.placeholder && jsxRuntime.jsx("option", __assign$2({ hidden: true }, { children: props.placeholder })), props.children] }))] }));
|
|
5138
4463
|
};
|
|
5139
4464
|
|
|
5140
|
-
var StyledSpacer =
|
|
4465
|
+
var StyledSpacer = styled__default["default"].div(templateObject_1$A || (templateObject_1$A = __makeTemplateObject$1(["\n width: ", ";\n height: ", ";\n"], ["\n width: ", ";\n height: ", ";\n"])), function (_a) {
|
|
5141
4466
|
var horizontal = _a.horizontal;
|
|
5142
4467
|
return (horizontal ? "".concat(horizontal, "px") : "");
|
|
5143
4468
|
}, function (_a) {
|
|
@@ -5148,7 +4473,7 @@ var templateObject_1$A;
|
|
|
5148
4473
|
|
|
5149
4474
|
var Spacer = function (props) { return (jsxRuntime.jsx(StyledSpacer, __assign$2({}, props))); };
|
|
5150
4475
|
|
|
5151
|
-
var StyledSubheading =
|
|
4476
|
+
var StyledSubheading = styled__default["default"].p(templateObject_1$z || (templateObject_1$z = __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) {
|
|
5152
4477
|
var size = _a.size;
|
|
5153
4478
|
return size ? theme.subheading[size].fontSize : theme.subheading.medium.fontSize;
|
|
5154
4479
|
}, function (_a) {
|
|
@@ -5180,14 +4505,14 @@ var templateObject_1$z;
|
|
|
5180
4505
|
|
|
5181
4506
|
var Subheading = function (props) { return (jsxRuntime.jsx(StyledSubheading, __assign$2({}, props, { children: props.children }))); };
|
|
5182
4507
|
|
|
5183
|
-
var Container$j =
|
|
4508
|
+
var Container$j = styled__default["default"].div(templateObject_1$y || (templateObject_1$y = __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);
|
|
5184
4509
|
var templateObject_1$y;
|
|
5185
4510
|
|
|
5186
4511
|
var Tag = function (props) {
|
|
5187
4512
|
return jsxRuntime.jsx(Container$j, { children: props.children });
|
|
5188
4513
|
};
|
|
5189
4514
|
|
|
5190
|
-
var Container$i =
|
|
4515
|
+
var Container$i = styled__default["default"].div(templateObject_1$x || (templateObject_1$x = __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) {
|
|
5191
4516
|
var disabled = _a.disabled;
|
|
5192
4517
|
return (disabled ? "not-allowed" : "pointer");
|
|
5193
4518
|
}, function (_a) {
|
|
@@ -5209,17 +4534,17 @@ var templateObject_1$x;
|
|
|
5209
4534
|
|
|
5210
4535
|
var Toggle = function (props) {
|
|
5211
4536
|
var _a;
|
|
5212
|
-
var containerRef =
|
|
5213
|
-
var inputRef =
|
|
5214
|
-
var _b =
|
|
5215
|
-
|
|
4537
|
+
var containerRef = React$3.useRef(null);
|
|
4538
|
+
var inputRef = React$3.useRef(null);
|
|
4539
|
+
var _b = React$3.useState(props.defaultValue), checked = _b[0], setChecked = _b[1];
|
|
4540
|
+
React$3.useEffect(function () {
|
|
5216
4541
|
var _a;
|
|
5217
4542
|
if (props.autoFocus)
|
|
5218
4543
|
(_a = containerRef.current) === null || _a === void 0 ? void 0 : _a.focus();
|
|
5219
4544
|
if (props.defaultValue)
|
|
5220
4545
|
inputRef.current.checked = true;
|
|
5221
4546
|
}, []);
|
|
5222
|
-
|
|
4547
|
+
React$3.useEffect(function () {
|
|
5223
4548
|
setChecked(inputRef.current.checked);
|
|
5224
4549
|
}, [(_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.checked]);
|
|
5225
4550
|
var toggle = function () {
|
|
@@ -5236,7 +4561,7 @@ var Toggle = function (props) {
|
|
|
5236
4561
|
return (jsxRuntime.jsx(Container$i, __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: jsxRuntime.jsx("input", { type: "checkbox", disabled: !!props.disabled, id: props.id, name: props.name, ref: inputRef }) })));
|
|
5237
4562
|
};
|
|
5238
4563
|
|
|
5239
|
-
var Wrapper$3 =
|
|
4564
|
+
var Wrapper$3 = styled__default["default"].div(templateObject_1$w || (templateObject_1$w = __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) {
|
|
5240
4565
|
var level = _a.level;
|
|
5241
4566
|
switch (level) {
|
|
5242
4567
|
case 1:
|
|
@@ -5283,7 +4608,7 @@ var trophies = {
|
|
|
5283
4608
|
};
|
|
5284
4609
|
var Trophy = function (props) { return (jsxRuntime.jsx(Wrapper$3, __assign$2({}, props, { children: trophies[props.variant][props.level] }))); };
|
|
5285
4610
|
|
|
5286
|
-
var Container$h =
|
|
4611
|
+
var Container$h = styled__default["default"].div(templateObject_1$v || (templateObject_1$v = __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) {
|
|
5287
4612
|
var type = _a.type;
|
|
5288
4613
|
switch (type) {
|
|
5289
4614
|
case "success":
|
|
@@ -5304,7 +4629,7 @@ var templateObject_1$v;
|
|
|
5304
4629
|
|
|
5305
4630
|
var Alert = function (props) { return (jsxRuntime.jsxs(Container$h, __assign$2({}, props, { children: [jsxRuntime.jsx(Icon, { size: "small", type: props.type === "success" ? "check" : "warning", color: props.type === "success" ? "green" : "red" }), jsxRuntime.jsx(Spacer, { horizontal: 10 }), jsxRuntime.jsx(Paragraph, { children: props.message })] }))); };
|
|
5306
4631
|
|
|
5307
|
-
var StyledCard =
|
|
4632
|
+
var StyledCard = styled__default["default"].div(templateObject_1$u || (templateObject_1$u = __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) {
|
|
5308
4633
|
var ellipse = _a.ellipse;
|
|
5309
4634
|
return ellipse
|
|
5310
4635
|
? ":hover {\n box-shadow: 0px 4px 0px ".concat(function (_a) {
|
|
@@ -5313,26 +4638,26 @@ var StyledCard = styled.div(templateObject_1$u || (templateObject_1$u = __makeTe
|
|
|
5313
4638
|
}, ";\n\n > div:first-child {\n width: 175%;\n padding-bottom: 175%;\n top: -25%;\n right: -25%;\n }\n }")
|
|
5314
4639
|
: "";
|
|
5315
4640
|
});
|
|
5316
|
-
var Ellipse =
|
|
4641
|
+
var Ellipse = styled__default["default"].div(templateObject_2$p || (templateObject_2$p = __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) {
|
|
5317
4642
|
var color = _a.color;
|
|
5318
4643
|
return color ? theme.colors[color].light : "";
|
|
5319
4644
|
});
|
|
5320
|
-
var Content =
|
|
4645
|
+
var Content = styled__default["default"].div(templateObject_3$9 || (templateObject_3$9 = __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"])));
|
|
5321
4646
|
var templateObject_1$u, templateObject_2$p, templateObject_3$9;
|
|
5322
4647
|
|
|
5323
4648
|
var Card = function (props) { return (jsxRuntime.jsxs(StyledCard, __assign$2({}, props, { children: [props.ellipse && jsxRuntime.jsx(Ellipse, { color: props.ellipse }), jsxRuntime.jsx(Content, { children: props.children })] }))); };
|
|
5324
4649
|
|
|
5325
|
-
var Fieldset$1 =
|
|
5326
|
-
var CheckboxContainer =
|
|
5327
|
-
var CheckboxWrapper =
|
|
5328
|
-
var Label$9 =
|
|
4650
|
+
var Fieldset$1 = styled__default["default"].fieldset(templateObject_1$t || (templateObject_1$t = __makeTemplateObject$1(["\n border: 0;\n margin: 0;\n padding: 0;\n"], ["\n border: 0;\n margin: 0;\n padding: 0;\n"])));
|
|
4651
|
+
var CheckboxContainer = styled__default["default"].div(templateObject_2$o || (templateObject_2$o = __makeTemplateObject$1(["\n margin-top: 5px;\n"], ["\n margin-top: 5px;\n"])));
|
|
4652
|
+
var CheckboxWrapper = styled__default["default"].div(templateObject_3$8 || (templateObject_3$8 = __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"])));
|
|
4653
|
+
var Label$9 = styled__default["default"](StyledParagraph)(templateObject_4$6 || (templateObject_4$6 = __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) {
|
|
5329
4654
|
var weight = _a.weight;
|
|
5330
4655
|
return weight || 500;
|
|
5331
4656
|
}, theme.colors.darkGray.base);
|
|
5332
4657
|
var templateObject_1$t, templateObject_2$o, templateObject_3$8, templateObject_4$6;
|
|
5333
4658
|
|
|
5334
4659
|
var Checkboxes = function (props) {
|
|
5335
|
-
var _a =
|
|
4660
|
+
var _a = React$3.useState(props.defaultValue || []), values = _a[0], setValues = _a[1];
|
|
5336
4661
|
var onChange = function (value) {
|
|
5337
4662
|
if (props.onChange) {
|
|
5338
4663
|
var newValues = values.includes(value)
|
|
@@ -5352,15 +4677,15 @@ var Checkboxes = function (props) {
|
|
|
5352
4677
|
}) })] }));
|
|
5353
4678
|
};
|
|
5354
4679
|
|
|
5355
|
-
var Container$g =
|
|
5356
|
-
var Item =
|
|
4680
|
+
var Container$g = styled__default["default"].div(templateObject_1$s || (templateObject_1$s = __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);
|
|
4681
|
+
var Item = styled__default["default"].div(templateObject_2$n || (templateObject_2$n = __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) {
|
|
5357
4682
|
var isOpen = _a.isOpen;
|
|
5358
4683
|
return (isOpen ? "" : "none");
|
|
5359
4684
|
}, theme.colors.lightGray.darker);
|
|
5360
4685
|
var templateObject_1$s, templateObject_2$n;
|
|
5361
4686
|
|
|
5362
4687
|
var Collapse = function (props) {
|
|
5363
|
-
var _a =
|
|
4688
|
+
var _a = React$3.useState([]), openItems = _a[0], setOpenItems = _a[1];
|
|
5364
4689
|
var onClickItem = function (index, isOpen) {
|
|
5365
4690
|
if (isOpen) {
|
|
5366
4691
|
setOpenItems(function (prevState) { return prevState.filter(function (item) { return item !== index; }); });
|
|
@@ -5375,8 +4700,8 @@ var Collapse = function (props) {
|
|
|
5375
4700
|
}) })));
|
|
5376
4701
|
};
|
|
5377
4702
|
|
|
5378
|
-
var Container$f =
|
|
5379
|
-
var Label$8 =
|
|
4703
|
+
var Container$f = styled__default["default"].div(templateObject_1$r || (templateObject_1$r = __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$8 = styled__default["default"](StyledParagraph)(templateObject_2$m || (templateObject_2$m = __makeTemplateObject$1(["\n font-weight: 500;\n color: ", ";\n"], ["\n font-weight: 500;\n color: ", ";\n"])), theme.colors.darkGray.base);
|
|
5380
4705
|
var templateObject_1$r, templateObject_2$m;
|
|
5381
4706
|
|
|
5382
4707
|
var DateInputField = function (props) {
|
|
@@ -5391,8 +4716,8 @@ var DateInputField = function (props) {
|
|
|
5391
4716
|
return (jsxRuntime.jsxs(Container$f, { children: [jsxRuntime.jsx(Label$8, __assign$2({ as: "label", htmlFor: props.name }, { children: props.label })), jsxRuntime.jsx(Spacer, { vertical: 5 }), jsxRuntime.jsx(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 })] }));
|
|
5392
4717
|
};
|
|
5393
4718
|
|
|
5394
|
-
var StyledIconButton =
|
|
5395
|
-
var GhostIconButton =
|
|
4719
|
+
var StyledIconButton = styled__default["default"](StyledButton)(templateObject_1$q || (templateObject_1$q = __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"])));
|
|
4720
|
+
var GhostIconButton = styled__default["default"](GhostButton)(templateObject_2$l || (templateObject_2$l = __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"])));
|
|
5396
4721
|
var templateObject_1$q, templateObject_2$l;
|
|
5397
4722
|
|
|
5398
4723
|
var IconButton = function (props) {
|
|
@@ -5401,8 +4726,8 @@ var IconButton = function (props) {
|
|
|
5401
4726
|
return (jsxRuntime.jsx(StyledIconButton, __assign$2({}, props, { children: jsxRuntime.jsx(Icon, { type: props.icon, size: "small", color: "white" }) })));
|
|
5402
4727
|
};
|
|
5403
4728
|
|
|
5404
|
-
var Container$e =
|
|
5405
|
-
var Label$7 =
|
|
4729
|
+
var Container$e = styled__default["default"].div(templateObject_1$p || (templateObject_1$p = __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"])));
|
|
4730
|
+
var Label$7 = styled__default["default"](StyledParagraph)(templateObject_2$k || (templateObject_2$k = __makeTemplateObject$1(["\n font-weight: 500;\n color: ", ";\n"], ["\n font-weight: 500;\n color: ", ";\n"])), theme.colors.darkGray.base);
|
|
5406
4731
|
var templateObject_1$p, templateObject_2$k;
|
|
5407
4732
|
|
|
5408
4733
|
var InputField = function (props) {
|
|
@@ -5417,7 +4742,7 @@ var InputField = function (props) {
|
|
|
5417
4742
|
return (jsxRuntime.jsxs(Container$e, { children: [jsxRuntime.jsx(Label$7, __assign$2({ as: "label", htmlFor: props.name }, { children: props.label })), jsxRuntime.jsx(Spacer, { vertical: 5 }), jsxRuntime.jsx(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 && (jsxRuntime.jsxs("div", __assign$2({ style: { marginLeft: "5px" } }, { children: [jsxRuntime.jsx(Spacer, { vertical: 5 }), props.tips.map(function (tip, index) { return (jsxRuntime.jsxs(Paragraph, __assign$2({ size: "small", weight: "regular" }, { children: ["\u2022 ", tip] }), "".concat(tip, "-").concat(index))); })] })))] }));
|
|
5418
4743
|
};
|
|
5419
4744
|
|
|
5420
|
-
var Container$d =
|
|
4745
|
+
var Container$d = styled__default["default"].div(templateObject_1$o || (templateObject_1$o = __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) {
|
|
5421
4746
|
var status = _a.status, color = _a.color;
|
|
5422
4747
|
switch (status) {
|
|
5423
4748
|
case "passed":
|
|
@@ -5461,7 +4786,7 @@ var Container$d = styled.div(templateObject_1$o || (templateObject_1$o = __makeT
|
|
|
5461
4786
|
return theme.colors.darkGray.light;
|
|
5462
4787
|
}
|
|
5463
4788
|
});
|
|
5464
|
-
var CheckIconWrapper =
|
|
4789
|
+
var CheckIconWrapper = styled__default["default"].div(templateObject_2$j || (templateObject_2$j = __makeTemplateObject$1(["\n position: absolute;\n top: 0;\n right: 0;\n"], ["\n position: absolute;\n top: 0;\n right: 0;\n"])));
|
|
5465
4790
|
var templateObject_1$o, templateObject_2$j;
|
|
5466
4791
|
|
|
5467
4792
|
var Key$1 = function (props) { return (jsxRuntime.jsxs(Container$d, __assign$2({}, props, { children: [props.status === "passed" && (jsxRuntime.jsx(CheckIconWrapper, { children: jsxRuntime.jsx(Icon, { type: "check", color: "green", size: "small" }) })), props.char === " " ? (jsxRuntime.jsx("svg", __assign$2({ width: "28", height: "28", viewBox: "0 0 28 1", style: {
|
|
@@ -5469,14 +4794,14 @@ var Key$1 = function (props) { return (jsxRuntime.jsxs(Container$d, __assign$2({
|
|
|
5469
4794
|
transform: "scale(2)",
|
|
5470
4795
|
} }, { children: jsxRuntime.jsx("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" }) }))) : (jsxRuntime.jsx(Heading, __assign$2({ type: "h1" }, { children: props.char })))] }))); };
|
|
5471
4796
|
|
|
5472
|
-
var Wrapper$2 =
|
|
4797
|
+
var Wrapper$2 = styled__default["default"].a(templateObject_1$n || (templateObject_1$n = __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) {
|
|
5473
4798
|
var chevron = _a.chevron;
|
|
5474
4799
|
return (chevron === "left" ? "4px" : "");
|
|
5475
4800
|
}, function (_a) {
|
|
5476
4801
|
var chevron = _a.chevron;
|
|
5477
4802
|
return (chevron === "right" ? "4px" : "");
|
|
5478
4803
|
});
|
|
5479
|
-
var StyledLink =
|
|
4804
|
+
var StyledLink = styled__default["default"](StyledParagraph)(templateObject_2$i || (templateObject_2$i = __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);
|
|
5480
4805
|
var templateObject_1$n, templateObject_2$i;
|
|
5481
4806
|
|
|
5482
4807
|
var Link = function (props) {
|
|
@@ -5489,7 +4814,7 @@ var Link = function (props) {
|
|
|
5489
4814
|
return (jsxRuntime.jsxs(Wrapper$2, __assign$2({ chevron: props.chevron, href: props.href, onClick: onClick }, { children: [props.chevron === "left" && jsxRuntime.jsx(Icon, { type: "chevronLeft", color: "green" }), jsxRuntime.jsx(StyledLink, __assign$2({ size: "large" }, { children: props.children })), props.chevron !== "none" && props.chevron !== "left" && (jsxRuntime.jsx(Icon, { type: "chevronRight", color: "green" }))] })));
|
|
5490
4815
|
};
|
|
5491
4816
|
|
|
5492
|
-
var Container$c =
|
|
4817
|
+
var Container$c = styled__default["default"].div(templateObject_1$m || (templateObject_1$m = __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) {
|
|
5493
4818
|
var text = _a.text;
|
|
5494
4819
|
return (text ? "20px" : "");
|
|
5495
4820
|
});
|
|
@@ -5497,7 +4822,7 @@ var templateObject_1$m;
|
|
|
5497
4822
|
|
|
5498
4823
|
var Loading = function (props) { return (jsxRuntime.jsxs(Container$c, __assign$2({}, props, { children: [jsxRuntime.jsx(_default, { color: theme.colors[props.color].base, speedMultiplier: 0.5 }), props.text && (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(Spacer, { vertical: 20 }), jsxRuntime.jsx(Heading, __assign$2({ type: "h6", color: props.textColor || "black" }, { children: props.text }))] }))] }))); };
|
|
5499
4824
|
|
|
5500
|
-
var Container$b =
|
|
4825
|
+
var Container$b = styled__default["default"].div(templateObject_1$l || (templateObject_1$l = __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) {
|
|
5501
4826
|
var dropdownIsVisible = _a.dropdownIsVisible, color = _a.color;
|
|
5502
4827
|
if (dropdownIsVisible) {
|
|
5503
4828
|
switch (color) {
|
|
@@ -5510,8 +4835,8 @@ var Container$b = styled.div(templateObject_1$l || (templateObject_1$l = __makeT
|
|
|
5510
4835
|
}
|
|
5511
4836
|
return "";
|
|
5512
4837
|
});
|
|
5513
|
-
var SelectedLocaleWrapper =
|
|
5514
|
-
var DropdownContainer =
|
|
4838
|
+
var SelectedLocaleWrapper = styled__default["default"].div(templateObject_2$h || (templateObject_2$h = __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"])));
|
|
4839
|
+
var DropdownContainer = styled__default["default"].div(templateObject_3$7 || (templateObject_3$7 = __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) {
|
|
5515
4840
|
var color = _a.color;
|
|
5516
4841
|
switch (color) {
|
|
5517
4842
|
default:
|
|
@@ -5521,12 +4846,12 @@ var DropdownContainer = styled.div(templateObject_3$7 || (templateObject_3$7 = _
|
|
|
5521
4846
|
return theme.colors.lightGray.dark;
|
|
5522
4847
|
}
|
|
5523
4848
|
});
|
|
5524
|
-
var LocaleWrapper =
|
|
4849
|
+
var LocaleWrapper = styled__default["default"].div(templateObject_4$5 || (templateObject_4$5 = __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);
|
|
5525
4850
|
var templateObject_1$l, templateObject_2$h, templateObject_3$7, templateObject_4$5;
|
|
5526
4851
|
|
|
5527
4852
|
var LocaleSelect = function (props) {
|
|
5528
|
-
var _a =
|
|
5529
|
-
var _b =
|
|
4853
|
+
var _a = React$3.useState(false), dropdownIsVisible = _a[0], setDropdownIsVisible = _a[1];
|
|
4854
|
+
var _b = React$3.useState(props.defaultValue), locale = _b[0], setLocale = _b[1];
|
|
5530
4855
|
var onSelectLocale = function (locale) {
|
|
5531
4856
|
setLocale(locale);
|
|
5532
4857
|
props.onChange(locale);
|
|
@@ -5536,26 +4861,26 @@ var LocaleSelect = function (props) {
|
|
|
5536
4861
|
.map(function (locale) { return (jsxRuntime.jsxs(LocaleWrapper, __assign$2({ onClick: function () { return onSelectLocale(locale); } }, { children: [jsxRuntime.jsxs("div", { children: [jsxRuntime.jsx(Flag, { locale: locale }), jsxRuntime.jsx(Spacer, { horizontal: 10 }), jsxRuntime.jsx(Paragraph, __assign$2({ size: "small", weight: "regular", color: "darkGray" }, { children: getNativeLanguageByLocale_1(locale) }))] }), jsxRuntime.jsx(Icon, { type: "chevronRight", size: "small", color: "darkGray" })] }), locale)); }) })))] })));
|
|
5537
4862
|
};
|
|
5538
4863
|
|
|
5539
|
-
var Wrapper$1 =
|
|
4864
|
+
var Wrapper$1 = styled__default["default"].div(templateObject_1$k || (templateObject_1$k = __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"])));
|
|
5540
4865
|
var templateObject_1$k;
|
|
5541
4866
|
|
|
5542
4867
|
var Medals = function (props) { return (jsxRuntime.jsxs(Wrapper$1, { children: [jsxRuntime.jsxs("div", { children: [jsxRuntime.jsx(Medal, { type: "gold" }), jsxRuntime.jsx(Spacer, { horizontal: 5 }), jsxRuntime.jsxs(Heading, __assign$2({ type: "h6" }, { children: ["x ", props.gold || 0] }))] }), jsxRuntime.jsxs("div", { children: [jsxRuntime.jsx(Medal, { type: "silver" }), jsxRuntime.jsx(Spacer, { horizontal: 5 }), jsxRuntime.jsxs(Heading, __assign$2({ type: "h6" }, { children: ["x ", props.silver || 0] }))] }), jsxRuntime.jsxs("div", { children: [jsxRuntime.jsx(Medal, { type: "bronze" }), jsxRuntime.jsx(Spacer, { horizontal: 5 }), jsxRuntime.jsxs(Heading, __assign$2({ type: "h6" }, { children: ["x ", props.bronze || 0] }))] })] })); };
|
|
5543
4868
|
|
|
5544
|
-
var NotificationContainer =
|
|
4869
|
+
var NotificationContainer = styled__default["default"].div(templateObject_1$j || (templateObject_1$j = __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) {
|
|
5545
4870
|
var contrast = _a.contrast;
|
|
5546
4871
|
return contrast ? theme.colors.lightGray.light : theme.colors.lightGray.base;
|
|
5547
4872
|
});
|
|
5548
|
-
var ButtonContainer =
|
|
4873
|
+
var ButtonContainer = styled__default["default"].div(templateObject_2$g || (templateObject_2$g = __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"])));
|
|
5549
4874
|
var templateObject_1$j, templateObject_2$g;
|
|
5550
4875
|
|
|
5551
4876
|
var Notification = function (props) {
|
|
5552
4877
|
if (!props.isVisible)
|
|
5553
4878
|
return null;
|
|
5554
|
-
return (jsxRuntime.jsxs(NotificationContainer, __assign$2({ contrast: !!props.contrast }, { children: [jsxRuntime.jsxs("div", { children: [jsxRuntime.jsx(Heading, __assign$2({ type: "h4" }, { children: props.title })), props.onClose && (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(Spacer, { horizontal: 15 }), jsxRuntime.jsx(IconButton, { icon: "cross", color: "green", onClick: props.onClose })] }))] }), jsxRuntime.jsx(Paragraph, __assign$2({ size: "small", weight: "regular", color: "darkGray" }, { children: props.content })), props.buttons && (jsxRuntime.jsx(ButtonContainer, { children: props.buttons.map(function (button, index) { return (
|
|
4879
|
+
return (jsxRuntime.jsxs(NotificationContainer, __assign$2({ contrast: !!props.contrast }, { children: [jsxRuntime.jsxs("div", { children: [jsxRuntime.jsx(Heading, __assign$2({ type: "h4" }, { children: props.title })), props.onClose && (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(Spacer, { horizontal: 15 }), jsxRuntime.jsx(IconButton, { icon: "cross", color: "green", onClick: props.onClose })] }))] }), jsxRuntime.jsx(Paragraph, __assign$2({ size: "small", weight: "regular", color: "darkGray" }, { children: props.content })), props.buttons && (jsxRuntime.jsx(ButtonContainer, { children: props.buttons.map(function (button, index) { return (React$3.createElement(Button, __assign$2({}, button, { size: "small", color: index + 1 === props.buttons.length ? "blue" : "white", key: "button-".concat(index) }))); }) }))] })));
|
|
5555
4880
|
};
|
|
5556
4881
|
|
|
5557
|
-
var Container$a =
|
|
5558
|
-
var Label$6 =
|
|
4882
|
+
var Container$a = styled__default["default"].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"])));
|
|
4883
|
+
var Label$6 = styled__default["default"](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);
|
|
5559
4884
|
var templateObject_1$i, templateObject_2$f;
|
|
5560
4885
|
|
|
5561
4886
|
var NumberField = function (props) {
|
|
@@ -5611,11 +4936,11 @@ var isStrongPassword = function (password) {
|
|
|
5611
4936
|
exports.isStrongPassword = isStrongPassword;
|
|
5612
4937
|
}(expressions));
|
|
5613
4938
|
|
|
5614
|
-
var Container$9 =
|
|
5615
|
-
var Label$5 =
|
|
5616
|
-
var HelperContainer =
|
|
5617
|
-
var fadeIn =
|
|
5618
|
-
var Helper =
|
|
4939
|
+
var Container$9 = styled__default["default"].div(templateObject_1$h || (templateObject_1$h = __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"])));
|
|
4940
|
+
var Label$5 = styled__default["default"](StyledParagraph)(templateObject_2$e || (templateObject_2$e = __makeTemplateObject$1(["\n font-weight: 500;\n color: ", ";\n"], ["\n font-weight: 500;\n color: ", ";\n"])), theme.colors.darkGray.base);
|
|
4941
|
+
var HelperContainer = styled__default["default"].div(templateObject_3$6 || (templateObject_3$6 = __makeTemplateObject$1(["\n margin-top: 5px;\n padding-left: 5px;\n"], ["\n margin-top: 5px;\n padding-left: 5px;\n"])));
|
|
4942
|
+
var fadeIn = styled.keyframes(templateObject_4$4 || (templateObject_4$4 = __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"])));
|
|
4943
|
+
var Helper = styled__default["default"](StyledParagraph)(templateObject_5$2 || (templateObject_5$2 = __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) {
|
|
5619
4944
|
var isOk = _a.isOk;
|
|
5620
4945
|
return isOk ? theme.colors.green.base : theme.colors.darkGray.light;
|
|
5621
4946
|
}, fadeIn);
|
|
@@ -5661,7 +4986,7 @@ var translations = {
|
|
|
5661
4986
|
};
|
|
5662
4987
|
|
|
5663
4988
|
var PasswordInputField = function (props) {
|
|
5664
|
-
var _a =
|
|
4989
|
+
var _a = React$3.useState(props.defaultValue || ""), value = _a[0], setValue = _a[1];
|
|
5665
4990
|
var onChange = function (value) {
|
|
5666
4991
|
setValue(value);
|
|
5667
4992
|
if (props.onChange)
|
|
@@ -5689,7 +5014,7 @@ var generateRandomString = function (length) {
|
|
|
5689
5014
|
return string;
|
|
5690
5015
|
};
|
|
5691
5016
|
|
|
5692
|
-
var PopupContainer =
|
|
5017
|
+
var PopupContainer = styled__default["default"].div(templateObject_1$g || (templateObject_1$g = __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) {
|
|
5693
5018
|
var isVisible = _a.isVisible;
|
|
5694
5019
|
return (isVisible ? "100%" : "0%");
|
|
5695
5020
|
}, function (_a) {
|
|
@@ -5705,10 +5030,10 @@ var PopupContainer = styled.div(templateObject_1$g || (templateObject_1$g = __ma
|
|
|
5705
5030
|
var templateObject_1$g;
|
|
5706
5031
|
|
|
5707
5032
|
var Popup = function (props) {
|
|
5708
|
-
var popupRef =
|
|
5709
|
-
var _a =
|
|
5710
|
-
var _b =
|
|
5711
|
-
var _c =
|
|
5033
|
+
var popupRef = React$3.useRef(null);
|
|
5034
|
+
var _a = React$3.useState(""), triggerId = _a[0], setTriggerId = _a[1];
|
|
5035
|
+
var _b = React$3.useState(false), isVisible = _b[0], setIsVisible = _b[1];
|
|
5036
|
+
var _c = React$3.useState(null), position = _c[0], setPosition = _c[1];
|
|
5712
5037
|
var showPopup = function () {
|
|
5713
5038
|
var el = document.getElementById(triggerId);
|
|
5714
5039
|
if (el) {
|
|
@@ -5722,13 +5047,13 @@ var Popup = function (props) {
|
|
|
5722
5047
|
setIsVisible(true);
|
|
5723
5048
|
}
|
|
5724
5049
|
};
|
|
5725
|
-
|
|
5050
|
+
React$3.useEffect(function () {
|
|
5726
5051
|
var id = generateRandomString(5);
|
|
5727
5052
|
setTriggerId(id);
|
|
5728
5053
|
}, []);
|
|
5729
|
-
var children =
|
|
5730
|
-
if (
|
|
5731
|
-
return
|
|
5054
|
+
var children = React__default["default"].Children.map(props.children, function (child, index) {
|
|
5055
|
+
if (React__default["default"].isValidElement(child) && index <= 0) {
|
|
5056
|
+
return React__default["default"].cloneElement(child, {
|
|
5732
5057
|
id: triggerId,
|
|
5733
5058
|
onMouseEnter: function () { return showPopup(); },
|
|
5734
5059
|
onMouseLeave: function () { return setIsVisible(false); },
|
|
@@ -5738,12 +5063,12 @@ var Popup = function (props) {
|
|
|
5738
5063
|
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [children, jsxRuntime.jsxs(PopupContainer, __assign$2({}, position, { isVisible: isVisible, ref: popupRef, contrast: props.contrast }, { children: [props.title && (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(Heading, __assign$2({ type: "h6" }, { children: props.title })), jsxRuntime.jsx(Spacer, { vertical: 10 })] })), jsxRuntime.jsx(Paragraph, __assign$2({ size: "small", weight: "regular" }, { children: props.content }))] }))] }));
|
|
5739
5064
|
};
|
|
5740
5065
|
|
|
5741
|
-
var Wrapper =
|
|
5742
|
-
var StyledProgressBar =
|
|
5066
|
+
var Wrapper = styled__default["default"].div(templateObject_1$f || (templateObject_1$f = __makeTemplateObject$1(["\n width: 100%;\n display: flex;\n align-items: center;\n"], ["\n width: 100%;\n display: flex;\n align-items: center;\n"])));
|
|
5067
|
+
var StyledProgressBar = styled__default["default"].div(templateObject_2$d || (templateObject_2$d = __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) {
|
|
5743
5068
|
var showInfo = _a.showInfo;
|
|
5744
5069
|
return (showInfo ? "10px" : "");
|
|
5745
5070
|
});
|
|
5746
|
-
var Indicator$1 =
|
|
5071
|
+
var Indicator$1 = styled__default["default"].div(templateObject_3$5 || (templateObject_3$5 = __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) {
|
|
5747
5072
|
var percent = _a.percent;
|
|
5748
5073
|
return "calc(".concat(percent, "% - 6px)");
|
|
5749
5074
|
}, function (_a) {
|
|
@@ -5754,8 +5079,8 @@ var templateObject_1$f, templateObject_2$d, templateObject_3$5;
|
|
|
5754
5079
|
|
|
5755
5080
|
var ProgressBar = function (props) { return (jsxRuntime.jsxs(Wrapper, { children: [jsxRuntime.jsx(StyledProgressBar, __assign$2({}, props, { children: jsxRuntime.jsx(Indicator$1, __assign$2({}, props)) })), props.showInfo && (jsxRuntime.jsx(Paragraph, __assign$2({ size: "small" }, { children: props.info ? props.info : "".concat(props.percent, "%") })))] })); };
|
|
5756
5081
|
|
|
5757
|
-
var Container$8 =
|
|
5758
|
-
var Step$1 =
|
|
5082
|
+
var Container$8 = styled__default["default"].ol(templateObject_1$e || (templateObject_1$e = __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"])));
|
|
5083
|
+
var Step$1 = styled__default["default"].li(templateObject_2$c || (templateObject_2$c = __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) {
|
|
5759
5084
|
var status = _a.status;
|
|
5760
5085
|
return (!!status ? "pointer" : "not-allowed");
|
|
5761
5086
|
}, function (_a) {
|
|
@@ -5794,8 +5119,8 @@ var Steps$2 = function (props) { return (jsxRuntime.jsx(Container$8, { children:
|
|
|
5794
5119
|
return (jsxRuntime.jsxs(Step$1, __assign$2({ status: status, hasTitle: !!title }, { children: [jsxRuntime.jsx("div", __assign$2({ onClick: onClickStep }, { children: status === "passed" ? (jsxRuntime.jsx(Icon, { type: "check", size: "small", color: "white" })) : (jsxRuntime.jsx(Heading, __assign$2({ type: "h6" }, { children: step }))) })), title && jsxRuntime.jsx(Paragraph, { children: title })] }), "".concat(title, "-").concat(step)));
|
|
5795
5120
|
}) })); };
|
|
5796
5121
|
|
|
5797
|
-
var Container$7 =
|
|
5798
|
-
var Step =
|
|
5122
|
+
var Container$7 = styled__default["default"].ol(templateObject_1$d || (templateObject_1$d = __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"])));
|
|
5123
|
+
var Step = styled__default["default"].li(templateObject_2$b || (templateObject_2$b = __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) {
|
|
5799
5124
|
var status = _a.status;
|
|
5800
5125
|
return (!!status ? "pointer" : "not-allowed");
|
|
5801
5126
|
}, function (_a) {
|
|
@@ -5835,10 +5160,10 @@ var Steps = function (props) {
|
|
|
5835
5160
|
return props.alignment === "vertical" ? (jsxRuntime.jsx(Steps$1, __assign$2({}, props))) : (jsxRuntime.jsx(Steps$2, __assign$2({}, props)));
|
|
5836
5161
|
};
|
|
5837
5162
|
|
|
5838
|
-
var Fieldset =
|
|
5839
|
-
var RadioContainer =
|
|
5840
|
-
var RadioWrapper =
|
|
5841
|
-
var Label$4 =
|
|
5163
|
+
var Fieldset = styled__default["default"].fieldset(templateObject_1$c || (templateObject_1$c = __makeTemplateObject$1(["\n border: 0;\n margin: 0;\n padding: 0;\n"], ["\n border: 0;\n margin: 0;\n padding: 0;\n"])));
|
|
5164
|
+
var RadioContainer = styled__default["default"].div(templateObject_2$a || (templateObject_2$a = __makeTemplateObject$1(["\n margin-top: 5px;\n"], ["\n margin-top: 5px;\n"])));
|
|
5165
|
+
var RadioWrapper = styled__default["default"].div(templateObject_3$4 || (templateObject_3$4 = __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"])));
|
|
5166
|
+
var Label$4 = styled__default["default"](StyledParagraph)(templateObject_4$3 || (templateObject_4$3 = __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) {
|
|
5842
5167
|
var weight = _a.weight;
|
|
5843
5168
|
return weight || 500;
|
|
5844
5169
|
}, theme.colors.darkGray.base);
|
|
@@ -5859,8 +5184,8 @@ var RadioGroup = function (props) {
|
|
|
5859
5184
|
}) })] }));
|
|
5860
5185
|
};
|
|
5861
5186
|
|
|
5862
|
-
var Container$6 =
|
|
5863
|
-
var Label$3 =
|
|
5187
|
+
var Container$6 = styled__default["default"].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"])));
|
|
5188
|
+
var Label$3 = styled__default["default"](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);
|
|
5864
5189
|
var templateObject_1$b, templateObject_2$9;
|
|
5865
5190
|
|
|
5866
5191
|
var SelectField = function (props) {
|
|
@@ -5878,8 +5203,8 @@ var SelectField = function (props) {
|
|
|
5878
5203
|
}) }))] }));
|
|
5879
5204
|
};
|
|
5880
5205
|
|
|
5881
|
-
var Container$5 =
|
|
5882
|
-
var Label$2 =
|
|
5206
|
+
var Container$5 = styled__default["default"].div(templateObject_1$a || (templateObject_1$a = __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"])));
|
|
5207
|
+
var Label$2 = styled__default["default"](StyledParagraph)(templateObject_2$8 || (templateObject_2$8 = __makeTemplateObject$1(["\n font-weight: 500;\n color: ", ";\n"], ["\n font-weight: 500;\n color: ", ";\n"])), theme.colors.darkGray.base);
|
|
5883
5208
|
var templateObject_1$a, templateObject_2$8;
|
|
5884
5209
|
|
|
5885
5210
|
var ToggleField = function (props) {
|
|
@@ -5894,7 +5219,7 @@ var ToggleField = function (props) {
|
|
|
5894
5219
|
return (jsxRuntime.jsxs(Container$5, { children: [jsxRuntime.jsx(Label$2, __assign$2({ as: "label", htmlFor: props.name }, { children: props.label })), jsxRuntime.jsx(Spacer, { vertical: 5 }), jsxRuntime.jsx(Toggle, { id: props.name, name: props.name, disabled: props.disabled, autoFocus: props.autoFocus, defaultValue: props.defaultValue, onChange: onChange, onBlur: onBlur })] }));
|
|
5895
5220
|
};
|
|
5896
5221
|
|
|
5897
|
-
var TooltipContainer =
|
|
5222
|
+
var TooltipContainer = styled__default["default"].div(templateObject_1$9 || (templateObject_1$9 = __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) {
|
|
5898
5223
|
var isVisible = _a.isVisible;
|
|
5899
5224
|
return (isVisible ? "100%" : "0%");
|
|
5900
5225
|
}, function (_a) {
|
|
@@ -5904,7 +5229,7 @@ var TooltipContainer = styled.div(templateObject_1$9 || (templateObject_1$9 = __
|
|
|
5904
5229
|
var x = _a.x;
|
|
5905
5230
|
return (x ? "".concat(x, "px") : "");
|
|
5906
5231
|
});
|
|
5907
|
-
var TooltipTitle =
|
|
5232
|
+
var TooltipTitle = styled__default["default"].div(templateObject_2$7 || (templateObject_2$7 = __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) {
|
|
5908
5233
|
var color = _a.color;
|
|
5909
5234
|
switch (color) {
|
|
5910
5235
|
default:
|
|
@@ -5917,10 +5242,10 @@ var TooltipTitle = styled.div(templateObject_2$7 || (templateObject_2$7 = __make
|
|
|
5917
5242
|
var templateObject_1$9, templateObject_2$7;
|
|
5918
5243
|
|
|
5919
5244
|
var Tooltip = function (props) {
|
|
5920
|
-
var tooltipRef =
|
|
5921
|
-
var _a =
|
|
5922
|
-
var _b =
|
|
5923
|
-
var _c =
|
|
5245
|
+
var tooltipRef = React$3.useRef(null);
|
|
5246
|
+
var _a = React$3.useState(""), triggerId = _a[0], settriggerId = _a[1];
|
|
5247
|
+
var _b = React$3.useState(false), isVisible = _b[0], setIsVisible = _b[1];
|
|
5248
|
+
var _c = React$3.useState(null), position = _c[0], setPosition = _c[1];
|
|
5924
5249
|
var showTooltip = function () {
|
|
5925
5250
|
var el = document.getElementById(triggerId);
|
|
5926
5251
|
if (el) {
|
|
@@ -5931,13 +5256,13 @@ var Tooltip = function (props) {
|
|
|
5931
5256
|
setIsVisible(true);
|
|
5932
5257
|
}
|
|
5933
5258
|
};
|
|
5934
|
-
|
|
5259
|
+
React$3.useEffect(function () {
|
|
5935
5260
|
var id = generateRandomString(5);
|
|
5936
5261
|
settriggerId(id);
|
|
5937
5262
|
}, []);
|
|
5938
|
-
var children =
|
|
5939
|
-
if (
|
|
5940
|
-
return
|
|
5263
|
+
var children = React__default["default"].Children.map(props.children, function (child, index) {
|
|
5264
|
+
if (React__default["default"].isValidElement(child) && index <= 0) {
|
|
5265
|
+
return React__default["default"].cloneElement(child, {
|
|
5941
5266
|
id: triggerId,
|
|
5942
5267
|
onMouseEnter: function () { return showTooltip(); },
|
|
5943
5268
|
onMouseLeave: function () { return setIsVisible(false); },
|
|
@@ -7123,7 +6448,7 @@ function StyleToJS(style, options) {
|
|
|
7123
6448
|
exports["default"] = StyleToJS;
|
|
7124
6449
|
}(cjs));
|
|
7125
6450
|
|
|
7126
|
-
var React$1 =
|
|
6451
|
+
var React$1 = React__default["default"];
|
|
7127
6452
|
var styleToJS = cjs.default;
|
|
7128
6453
|
|
|
7129
6454
|
/**
|
|
@@ -7341,7 +6666,7 @@ function getPropName(attributeName) {
|
|
|
7341
6666
|
return reactProperty.possibleStandardNames[attributeName];
|
|
7342
6667
|
}
|
|
7343
6668
|
|
|
7344
|
-
var React =
|
|
6669
|
+
var React = React__default["default"];
|
|
7345
6670
|
var attributesToProps$1 = attributesToProps$2;
|
|
7346
6671
|
var utilities$1 = utilities$3;
|
|
7347
6672
|
|
|
@@ -11766,7 +11091,7 @@ HTMLReactParser$1.htmlToDOM;
|
|
|
11766
11091
|
HTMLReactParser$1.attributesToProps;
|
|
11767
11092
|
HTMLReactParser$1.Element;
|
|
11768
11093
|
|
|
11769
|
-
var StyledTextarea =
|
|
11094
|
+
var StyledTextarea = styled__default["default"].textarea(templateObject_1$8 || (templateObject_1$8 = __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) {
|
|
11770
11095
|
var disabled = _a.disabled;
|
|
11771
11096
|
return disabled ? theme.colors.lightGray.dark : theme.colors.lightGray.light;
|
|
11772
11097
|
}, function (_a) {
|
|
@@ -11789,8 +11114,8 @@ var Textarea = function (props) {
|
|
|
11789
11114
|
return jsxRuntime.jsx(StyledTextarea, __assign$2({}, props, { onChange: onChange }));
|
|
11790
11115
|
};
|
|
11791
11116
|
|
|
11792
|
-
var Container$4 =
|
|
11793
|
-
var Label$1 =
|
|
11117
|
+
var Container$4 = styled__default["default"].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"])));
|
|
11118
|
+
var Label$1 = styled__default["default"](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);
|
|
11794
11119
|
var templateObject_1$7, templateObject_2$6;
|
|
11795
11120
|
|
|
11796
11121
|
var TextareaField = function (props) {
|
|
@@ -11805,8 +11130,8 @@ var TextareaField = function (props) {
|
|
|
11805
11130
|
return (jsxRuntime.jsxs(Container$4, { children: [jsxRuntime.jsx(Label$1, __assign$2({ as: "label", htmlFor: props.name }, { children: props.label })), jsxRuntime.jsx(Spacer, { vertical: 5 }), jsxRuntime.jsx(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 && (jsxRuntime.jsxs("div", __assign$2({ style: { marginLeft: "5px" } }, { children: [jsxRuntime.jsx(Spacer, { vertical: 5 }), props.tips.map(function (tip, index) { return (jsxRuntime.jsxs(Paragraph, __assign$2({ size: "small", weight: "regular" }, { children: ["\u2022 ", tip] }), "".concat(tip, "-").concat(index))); })] })))] }));
|
|
11806
11131
|
};
|
|
11807
11132
|
|
|
11808
|
-
var Container$3 =
|
|
11809
|
-
var Label =
|
|
11133
|
+
var Container$3 = styled__default["default"].div(templateObject_1$6 || (templateObject_1$6 = __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"])));
|
|
11134
|
+
var Label = styled__default["default"](StyledParagraph)(templateObject_2$5 || (templateObject_2$5 = __makeTemplateObject$1(["\n font-weight: 500;\n color: ", ";\n"], ["\n font-weight: 500;\n color: ", ";\n"])), theme.colors.darkGray.base);
|
|
11810
11135
|
var templateObject_1$6, templateObject_2$5;
|
|
11811
11136
|
|
|
11812
11137
|
var RangeField = function (props) {
|
|
@@ -11825,11 +11150,11 @@ var FeedbackColors = {
|
|
|
11825
11150
|
success: theme.colors.green.base,
|
|
11826
11151
|
error: theme.colors.red.base,
|
|
11827
11152
|
};
|
|
11828
|
-
var FieldWrapper =
|
|
11153
|
+
var FieldWrapper = styled__default["default"].div(templateObject_1$5 || (templateObject_1$5 = __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) {
|
|
11829
11154
|
var status = _a.status;
|
|
11830
11155
|
return FeedbackColors[status];
|
|
11831
11156
|
});
|
|
11832
|
-
var FeedbackWrapper =
|
|
11157
|
+
var FeedbackWrapper = styled__default["default"].div(templateObject_2$4 || (templateObject_2$4 = __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) {
|
|
11833
11158
|
var status = _a.status;
|
|
11834
11159
|
return FeedbackColors[status];
|
|
11835
11160
|
}, function (_a) {
|
|
@@ -11849,18 +11174,18 @@ var WithValidation = function (_a) {
|
|
|
11849
11174
|
return (jsxRuntime.jsxs(FieldWrapper, __assign$2({ status: status }, { children: [children, jsxRuntime.jsxs(FeedbackWrapper, __assign$2({ status: status }, { children: [jsxRuntime.jsx(Icon, { type: icons[status], size: "small" }), jsxRuntime.jsx(Paragraph, __assign$2({ size: "small" }, { children: message }))] }))] })));
|
|
11850
11175
|
};
|
|
11851
11176
|
|
|
11852
|
-
var FormWrapper =
|
|
11853
|
-
var DescriptionWrapper =
|
|
11854
|
-
var ButtonWrapper =
|
|
11177
|
+
var FormWrapper = styled__default["default"].form(templateObject_1$4 || (templateObject_1$4 = __makeTemplateObject$1([""], [""])));
|
|
11178
|
+
var DescriptionWrapper = styled__default["default"].div(templateObject_2$3 || (templateObject_2$3 = __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);
|
|
11179
|
+
var ButtonWrapper = styled__default["default"].div(templateObject_3$3 || (templateObject_3$3 = __makeTemplateObject$1(["\n padding-top: 30px;\n"], ["\n padding-top: 30px;\n"])));
|
|
11855
11180
|
var templateObject_1$4, templateObject_2$3, templateObject_3$3;
|
|
11856
11181
|
|
|
11857
|
-
var Form =
|
|
11858
|
-
var _a =
|
|
11859
|
-
var _b =
|
|
11860
|
-
|
|
11182
|
+
var Form = React$3.forwardRef(function (props, ref) {
|
|
11183
|
+
var _a = React$3.useState({}), values = _a[0], setValues = _a[1];
|
|
11184
|
+
var _b = React$3.useState({}), feedback = _b[0], setFeedback = _b[1];
|
|
11185
|
+
React$3.useImperativeHandle(ref, function () { return ({
|
|
11861
11186
|
resetForm: resetForm,
|
|
11862
11187
|
}); });
|
|
11863
|
-
|
|
11188
|
+
React$3.useEffect(function () {
|
|
11864
11189
|
setDefaultValues();
|
|
11865
11190
|
}, []);
|
|
11866
11191
|
var setDefaultValues = function () {
|
|
@@ -12002,40 +11327,40 @@ var Form = r$1.forwardRef(function (props, ref) {
|
|
|
12002
11327
|
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [props.title && (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(Heading, __assign$2({ type: "h4" }, { children: props.title })), jsxRuntime.jsx(Spacer, { vertical: 15 })] })), props.description && (jsxRuntime.jsx(DescriptionWrapper, { children: jsxRuntime.jsx(Paragraph, __assign$2({ color: "darkGray", weight: "regular" }, { children: HTMLReactParser$1(props.description) })) })), jsxRuntime.jsx(FormWrapper, { children: props.fields.map(function (field, index) {
|
|
12003
11328
|
switch (field.type) {
|
|
12004
11329
|
case "text":
|
|
12005
|
-
return (
|
|
11330
|
+
return (React$3.createElement(WithValidation, __assign$2({}, feedback[field.name], { key: "field-".concat(index) }),
|
|
12006
11331
|
jsxRuntime.jsx(InputField, __assign$2({}, field, { onChange: onChangeFormField, onBlur: onBlurFormField }))));
|
|
12007
11332
|
case "password":
|
|
12008
|
-
return (
|
|
11333
|
+
return (React$3.createElement(WithValidation, __assign$2({}, feedback[field.name], { key: "field-".concat(index) }),
|
|
12009
11334
|
jsxRuntime.jsx(PasswordInputField, __assign$2({}, field, { onChange: onChangeFormField, onBlur: onBlurFormField, onKeyPress: field.submitOnEnter && onSubmit }))));
|
|
12010
11335
|
case "date":
|
|
12011
|
-
return (
|
|
11336
|
+
return (React$3.createElement(WithValidation, __assign$2({}, feedback[field.name], { key: "field-".concat(index) }),
|
|
12012
11337
|
jsxRuntime.jsx(DateInputField, __assign$2({}, field, { onChange: onChangeFormField, onBlur: onBlurFormField }))));
|
|
12013
11338
|
case "textarea":
|
|
12014
|
-
return (
|
|
11339
|
+
return (React$3.createElement(WithValidation, __assign$2({}, feedback[field.name], { key: "field-".concat(index) }),
|
|
12015
11340
|
jsxRuntime.jsx(TextareaField, __assign$2({}, field, { onChange: onChangeFormField, onBlur: onBlurFormField }))));
|
|
12016
11341
|
case "radio":
|
|
12017
|
-
return (
|
|
11342
|
+
return (React$3.createElement(WithValidation, __assign$2({}, feedback[field.name], { key: "field-".concat(index) }),
|
|
12018
11343
|
jsxRuntime.jsx(RadioGroup, __assign$2({}, field, { onChange: onChangeFormField, onBlur: onBlurFormField }))));
|
|
12019
11344
|
case "number":
|
|
12020
|
-
return (
|
|
11345
|
+
return (React$3.createElement(WithValidation, __assign$2({}, feedback[field.name], { key: "field-".concat(index) }),
|
|
12021
11346
|
jsxRuntime.jsx(NumberField, __assign$2({}, field, { onChange: onChangeFormField, onBlur: onBlurFormField }))));
|
|
12022
11347
|
case "checkbox":
|
|
12023
|
-
return (
|
|
11348
|
+
return (React$3.createElement(WithValidation, __assign$2({}, feedback[field.name], { key: "field-".concat(index) }),
|
|
12024
11349
|
jsxRuntime.jsx(Checkboxes, __assign$2({}, field, { onChange: onChangeFormField, onBlur: onBlurFormField }))));
|
|
12025
11350
|
case "select":
|
|
12026
|
-
return (
|
|
11351
|
+
return (React$3.createElement(WithValidation, __assign$2({}, feedback[field.name], { key: "field-".concat(index) }),
|
|
12027
11352
|
jsxRuntime.jsx(SelectField, __assign$2({}, field, { onChange: onChangeFormField, onBlur: onBlurFormField }))));
|
|
12028
11353
|
case "toggle":
|
|
12029
|
-
return (
|
|
11354
|
+
return (React$3.createElement(WithValidation, __assign$2({}, feedback[field.name], { key: "field-".concat(index) }),
|
|
12030
11355
|
jsxRuntime.jsx(ToggleField, __assign$2({}, field, { onChange: onChangeFormField, onBlur: onBlurFormField }))));
|
|
12031
11356
|
case "range":
|
|
12032
|
-
return (
|
|
11357
|
+
return (React$3.createElement(WithValidation, __assign$2({}, feedback[field.name], { key: "field-".concat(index) }),
|
|
12033
11358
|
jsxRuntime.jsx(RangeField, __assign$2({}, field, { onChange: onChangeFormField, onBlur: onBlurFormField }))));
|
|
12034
11359
|
}
|
|
12035
11360
|
}) }), props.button && (jsxRuntime.jsx(ButtonWrapper, { children: jsxRuntime.jsx(Button, __assign$2({}, props.button, { onClick: onSubmit, type: "submit" })) }))] }));
|
|
12036
11361
|
});
|
|
12037
11362
|
|
|
12038
|
-
var Container$2 =
|
|
11363
|
+
var Container$2 = styled__default["default"].div(templateObject_1$3 || (templateObject_1$3 = __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) {
|
|
12039
11364
|
var color = _a.color, active = _a.active;
|
|
12040
11365
|
if (active)
|
|
12041
11366
|
return theme.colors[color].dark;
|
|
@@ -12066,18 +11391,18 @@ var Key = function (props) {
|
|
|
12066
11391
|
return (jsxRuntime.jsx(Container$2, __assign$2({ color: props.color, active: props.active }, { children: props.color === "pink" ? (jsxRuntime.jsx("svg", __assign$2({ width: "28", height: "7", viewBox: "0 0 28 7" }, { children: jsxRuntime.jsx("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 (jsxRuntime.jsx(Heading, __assign$2({ type: "h6" }, { children: character }), "".concat(character, "-").concat(index))); })) })));
|
|
12067
11392
|
};
|
|
12068
11393
|
|
|
12069
|
-
var Container$1 =
|
|
12070
|
-
var SpecialRow =
|
|
12071
|
-
var TopRow =
|
|
12072
|
-
var StartRow =
|
|
12073
|
-
var BottomRow =
|
|
12074
|
-
var SpacebarRow =
|
|
11394
|
+
var Container$1 = styled__default["default"].div(templateObject_1$2 || (templateObject_1$2 = __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"])));
|
|
11395
|
+
var SpecialRow = styled__default["default"].div(templateObject_2$2 || (templateObject_2$2 = __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"])));
|
|
11396
|
+
var TopRow = styled__default["default"].div(templateObject_3$2 || (templateObject_3$2 = __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"])));
|
|
11397
|
+
var StartRow = styled__default["default"].div(templateObject_4$2 || (templateObject_4$2 = __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"])));
|
|
11398
|
+
var BottomRow = styled__default["default"].div(templateObject_5$1 || (templateObject_5$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: 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"])));
|
|
11399
|
+
var SpacebarRow = styled__default["default"].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"])));
|
|
12075
11400
|
var templateObject_1$2, templateObject_2$2, templateObject_3$2, templateObject_4$2, templateObject_5$1, templateObject_6;
|
|
12076
11401
|
|
|
12077
11402
|
var Keyboard = function (props) {
|
|
12078
|
-
var _a =
|
|
12079
|
-
var _b =
|
|
12080
|
-
|
|
11403
|
+
var _a = React$3.useState(), keys = _a[0], setKeys = _a[1];
|
|
11404
|
+
var _b = React$3.useState(), shiftKeys = _b[0], setShiftKeys = _b[1];
|
|
11405
|
+
React$3.useEffect(function () {
|
|
12081
11406
|
if (!!props.keys) {
|
|
12082
11407
|
var keys_1 = {};
|
|
12083
11408
|
var shiftKeys_1 = {
|
|
@@ -12144,20 +11469,20 @@ var Keyboard = function (props) {
|
|
|
12144
11469
|
keys[76].character === props.activeKey }), jsxRuntime.jsx(Key, { characters: ["Shift"], color: keys[31].color, active: shiftKeys.left.includes(props.activeKey) })] }), jsxRuntime.jsxs(SpacebarRow, { children: [jsxRuntime.jsx(Key, {}), jsxRuntime.jsx(Key, {}), jsxRuntime.jsx(Key, {}), jsxRuntime.jsx(Key, {}), jsxRuntime.jsx(Key, { color: keys[1].color, active: keys[1].character === props.activeKey }), jsxRuntime.jsx(Key, {}), jsxRuntime.jsx(Key, {}), jsxRuntime.jsx(Key, {}), jsxRuntime.jsx(Key, {})] })] }));
|
|
12145
11470
|
};
|
|
12146
11471
|
|
|
12147
|
-
var Mask =
|
|
12148
|
-
var CardWrapper =
|
|
11472
|
+
var Mask = styled__default["default"].div(templateObject_1$1 || (templateObject_1$1 = __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"])));
|
|
11473
|
+
var CardWrapper = styled__default["default"].div(templateObject_2$1 || (templateObject_2$1 = __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) {
|
|
12149
11474
|
var width = _a.width;
|
|
12150
11475
|
return (width ? "".concat(width, "px") : "720px");
|
|
12151
11476
|
});
|
|
12152
|
-
var CloseIconWrapper =
|
|
12153
|
-
var ChildrenWrapper =
|
|
12154
|
-
var FooterContainer =
|
|
11477
|
+
var CloseIconWrapper = styled__default["default"].div(templateObject_3$1 || (templateObject_3$1 = __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);
|
|
11478
|
+
var ChildrenWrapper = styled__default["default"].div(templateObject_4$1 || (templateObject_4$1 = __makeTemplateObject$1(["\n padding: 0 35px 20px;\n"], ["\n padding: 0 35px 20px;\n"])));
|
|
11479
|
+
var FooterContainer = styled__default["default"].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);
|
|
12155
11480
|
var templateObject_1$1, templateObject_2$1, templateObject_3$1, templateObject_4$1, templateObject_5;
|
|
12156
11481
|
|
|
12157
11482
|
var Modal = function (props) {
|
|
12158
|
-
var _a =
|
|
12159
|
-
var isClosable =
|
|
12160
|
-
|
|
11483
|
+
var _a = React$3.useState(props.isVisible), isVisible = _a[0], setIsVisible = _a[1];
|
|
11484
|
+
var isClosable = React$3.useState(props.isClosable === undefined || props.isClosable ? true : false)[0];
|
|
11485
|
+
React$3.useEffect(function () { return setIsVisible(props.isVisible); }, [props.isVisible]);
|
|
12161
11486
|
if (!isVisible)
|
|
12162
11487
|
return null;
|
|
12163
11488
|
var onClose = function () {
|
|
@@ -12168,26 +11493,26 @@ var Modal = function (props) {
|
|
|
12168
11493
|
return (jsxRuntime.jsx(Mask, { children: jsxRuntime.jsx(CardWrapper, __assign$2({}, props, { children: jsxRuntime.jsxs(Card, { children: [isClosable && (jsxRuntime.jsx(CloseIconWrapper, { children: jsxRuntime.jsx(Icon, { type: "cross", onClick: onClose }) })), jsxRuntime.jsx(ChildrenWrapper, { children: props.children }), props.footer && jsxRuntime.jsx(FooterContainer, { children: props.footer })] }) })) }));
|
|
12169
11494
|
};
|
|
12170
11495
|
|
|
12171
|
-
var Container =
|
|
11496
|
+
var Container = styled__default["default"].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) {
|
|
12172
11497
|
var passed = _a.passed;
|
|
12173
11498
|
return passed ? theme.colors.green.base : theme.colors.red.base;
|
|
12174
11499
|
}, theme.colors.lightGray.light);
|
|
12175
|
-
var ProgressBarWrapper =
|
|
12176
|
-
var Indicator =
|
|
11500
|
+
var ProgressBarWrapper = styled__default["default"].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"])));
|
|
11501
|
+
var Indicator = styled__default["default"].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) {
|
|
12177
11502
|
var value = _a.value;
|
|
12178
11503
|
return "".concat(value, "%");
|
|
12179
11504
|
});
|
|
12180
|
-
var Target =
|
|
11505
|
+
var Target = styled__default["default"].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) {
|
|
12181
11506
|
var value = _a.value, width = _a.width;
|
|
12182
11507
|
return "calc(".concat(value, "% - ").concat(width / 2, "px)");
|
|
12183
11508
|
}, theme.colors.blue.darker);
|
|
12184
11509
|
var templateObject_1, templateObject_2, templateObject_3, templateObject_4;
|
|
12185
11510
|
|
|
12186
11511
|
var Result = function (props) {
|
|
12187
|
-
var ref =
|
|
12188
|
-
var _a =
|
|
11512
|
+
var ref = React$3.useRef(null);
|
|
11513
|
+
var _a = React$3.useState(0), targetWidth = _a[0], setTargetWidth = _a[1];
|
|
12189
11514
|
var isPassed = props.value >= props.target;
|
|
12190
|
-
|
|
11515
|
+
React$3.useEffect(function () {
|
|
12191
11516
|
var _a;
|
|
12192
11517
|
setTargetWidth((_a = ref.current) === null || _a === void 0 ? void 0 : _a.offsetWidth);
|
|
12193
11518
|
}, [ref]);
|