@rabbitio/ui-kit 1.0.0-beta.1 → 1.0.0-beta.10

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.
Files changed (42) hide show
  1. package/README.md +15 -8
  2. package/dist/index.cjs +1901 -0
  3. package/dist/index.cjs.map +1 -0
  4. package/dist/index.css +8758 -0
  5. package/dist/index.css.map +1 -0
  6. package/dist/index.modern.js +1809 -0
  7. package/dist/index.modern.js.map +1 -0
  8. package/dist/index.module.js +1891 -0
  9. package/dist/index.module.js.map +1 -0
  10. package/dist/index.umd.js +1905 -0
  11. package/dist/index.umd.js.map +1 -0
  12. package/index.js +1 -1
  13. package/package.json +21 -25
  14. package/src/common/amountUtils.js +423 -0
  15. package/src/common/errorUtils.js +27 -0
  16. package/src/common/fiatCurrenciesService.js +161 -0
  17. package/src/components/atoms/AssetIcon/AssetIcon.jsx +55 -0
  18. package/src/components/atoms/AssetIcon/asset-icon.module.scss +42 -0
  19. package/{stories → src/components}/atoms/LoadingDots/LoadingDots.module.scss +1 -1
  20. package/src/components/atoms/SupportChat/SupportChat.jsx +40 -0
  21. package/{stories → src/components}/atoms/buttons/Button/Button.jsx +6 -6
  22. package/{stories → src/components}/atoms/buttons/Button/Button.module.scss +6 -1
  23. package/src/index.js +10 -0
  24. package/styles/index.scss +10 -10
  25. package/dist/node/52a99d58a36f2b7a78b3.ttf +0 -0
  26. package/dist/node/662b866576cfea51dd64.ttf +0 -0
  27. package/dist/node/7f9eed4cca4d0ae6a772.ttf +0 -0
  28. package/dist/node/8268666c3b2ca2ec11c0.ttf +0 -0
  29. package/dist/node/87d9266583abd389ca1f.ttf +0 -0
  30. package/dist/node/index.js +0 -3
  31. package/dist/node/index.js.LICENSE.txt +0 -32
  32. package/dist/node/index.js.map +0 -1
  33. package/dist/web/52a99d58a36f2b7a78b3.ttf +0 -0
  34. package/dist/web/662b866576cfea51dd64.ttf +0 -0
  35. package/dist/web/7f9eed4cca4d0ae6a772.ttf +0 -0
  36. package/dist/web/8268666c3b2ca2ec11c0.ttf +0 -0
  37. package/dist/web/87d9266583abd389ca1f.ttf +0 -0
  38. package/dist/web/index.js +0 -3
  39. package/dist/web/index.js.LICENSE.txt +0 -32
  40. package/dist/web/index.js.map +0 -1
  41. package/stories/index.js +0 -2
  42. /package/{stories → src/components}/atoms/LoadingDots/LoadingDots.jsx +0 -0
@@ -0,0 +1,1905 @@
1
+ (function (global, factory) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react'), require('bignumber.js')) :
3
+ typeof define === 'function' && define.amd ? define(['exports', 'react', 'bignumber.js'], factory) :
4
+ (global = global || self, factory(global.uiKit = {}, global.react, global.bignumber_js));
5
+ })(this, (function (exports, React, bignumber_js) {
6
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
7
+
8
+ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
9
+
10
+ function createCommonjsModule(fn) {
11
+ var module = { exports: {} };
12
+ return fn(module, module.exports), module.exports;
13
+ }
14
+
15
+ /** @license React v16.13.1
16
+ * react-is.production.min.js
17
+ *
18
+ * Copyright (c) Facebook, Inc. and its affiliates.
19
+ *
20
+ * This source code is licensed under the MIT license found in the
21
+ * LICENSE file in the root directory of this source tree.
22
+ */
23
+ 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?
24
+ 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;
25
+ function z(a){if("object"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}var AsyncMode=l;var ConcurrentMode=m;var ContextConsumer=k;var ContextProvider=h;var Element=c;var ForwardRef=n;var Fragment=e;var Lazy=t;var Memo=r;var Portal=d;
26
+ var Profiler=g;var StrictMode=f;var Suspense=p;var isAsyncMode=function(a){return A(a)||z(a)===l};var isConcurrentMode=A;var isContextConsumer=function(a){return z(a)===k};var isContextProvider=function(a){return z(a)===h};var isElement=function(a){return "object"===typeof a&&null!==a&&a.$$typeof===c};var isForwardRef=function(a){return z(a)===n};var isFragment=function(a){return z(a)===e};var isLazy=function(a){return z(a)===t};
27
+ var isMemo=function(a){return z(a)===r};var isPortal=function(a){return z(a)===d};var isProfiler=function(a){return z(a)===g};var isStrictMode=function(a){return z(a)===f};var isSuspense=function(a){return z(a)===p};
28
+ var isValidElementType=function(a){return "string"===typeof a||"function"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||"object"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)};var typeOf=z;
29
+
30
+ var reactIs_production_min = {
31
+ AsyncMode: AsyncMode,
32
+ ConcurrentMode: ConcurrentMode,
33
+ ContextConsumer: ContextConsumer,
34
+ ContextProvider: ContextProvider,
35
+ Element: Element,
36
+ ForwardRef: ForwardRef,
37
+ Fragment: Fragment,
38
+ Lazy: Lazy,
39
+ Memo: Memo,
40
+ Portal: Portal,
41
+ Profiler: Profiler,
42
+ StrictMode: StrictMode,
43
+ Suspense: Suspense,
44
+ isAsyncMode: isAsyncMode,
45
+ isConcurrentMode: isConcurrentMode,
46
+ isContextConsumer: isContextConsumer,
47
+ isContextProvider: isContextProvider,
48
+ isElement: isElement,
49
+ isForwardRef: isForwardRef,
50
+ isFragment: isFragment,
51
+ isLazy: isLazy,
52
+ isMemo: isMemo,
53
+ isPortal: isPortal,
54
+ isProfiler: isProfiler,
55
+ isStrictMode: isStrictMode,
56
+ isSuspense: isSuspense,
57
+ isValidElementType: isValidElementType,
58
+ typeOf: typeOf
59
+ };
60
+
61
+ /** @license React v16.13.1
62
+ * react-is.development.js
63
+ *
64
+ * Copyright (c) Facebook, Inc. and its affiliates.
65
+ *
66
+ * This source code is licensed under the MIT license found in the
67
+ * LICENSE file in the root directory of this source tree.
68
+ */
69
+
70
+ var reactIs_development = createCommonjsModule(function (module, exports) {
71
+
72
+
73
+
74
+ if (process.env.NODE_ENV !== "production") {
75
+ (function() {
76
+
77
+ // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
78
+ // nor polyfill, then a plain number is used for performance.
79
+ var hasSymbol = typeof Symbol === 'function' && Symbol.for;
80
+ var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
81
+ var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
82
+ var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
83
+ var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
84
+ var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
85
+ var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
86
+ var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
87
+ // (unstable) APIs that have been removed. Can we remove the symbols?
88
+
89
+ var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
90
+ var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
91
+ var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
92
+ var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
93
+ var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
94
+ var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
95
+ var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
96
+ var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
97
+ var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
98
+ var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
99
+ var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
100
+
101
+ function isValidElementType(type) {
102
+ return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
103
+ type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
104
+ }
105
+
106
+ function typeOf(object) {
107
+ if (typeof object === 'object' && object !== null) {
108
+ var $$typeof = object.$$typeof;
109
+
110
+ switch ($$typeof) {
111
+ case REACT_ELEMENT_TYPE:
112
+ var type = object.type;
113
+
114
+ switch (type) {
115
+ case REACT_ASYNC_MODE_TYPE:
116
+ case REACT_CONCURRENT_MODE_TYPE:
117
+ case REACT_FRAGMENT_TYPE:
118
+ case REACT_PROFILER_TYPE:
119
+ case REACT_STRICT_MODE_TYPE:
120
+ case REACT_SUSPENSE_TYPE:
121
+ return type;
122
+
123
+ default:
124
+ var $$typeofType = type && type.$$typeof;
125
+
126
+ switch ($$typeofType) {
127
+ case REACT_CONTEXT_TYPE:
128
+ case REACT_FORWARD_REF_TYPE:
129
+ case REACT_LAZY_TYPE:
130
+ case REACT_MEMO_TYPE:
131
+ case REACT_PROVIDER_TYPE:
132
+ return $$typeofType;
133
+
134
+ default:
135
+ return $$typeof;
136
+ }
137
+
138
+ }
139
+
140
+ case REACT_PORTAL_TYPE:
141
+ return $$typeof;
142
+ }
143
+ }
144
+
145
+ return undefined;
146
+ } // AsyncMode is deprecated along with isAsyncMode
147
+
148
+ var AsyncMode = REACT_ASYNC_MODE_TYPE;
149
+ var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
150
+ var ContextConsumer = REACT_CONTEXT_TYPE;
151
+ var ContextProvider = REACT_PROVIDER_TYPE;
152
+ var Element = REACT_ELEMENT_TYPE;
153
+ var ForwardRef = REACT_FORWARD_REF_TYPE;
154
+ var Fragment = REACT_FRAGMENT_TYPE;
155
+ var Lazy = REACT_LAZY_TYPE;
156
+ var Memo = REACT_MEMO_TYPE;
157
+ var Portal = REACT_PORTAL_TYPE;
158
+ var Profiler = REACT_PROFILER_TYPE;
159
+ var StrictMode = REACT_STRICT_MODE_TYPE;
160
+ var Suspense = REACT_SUSPENSE_TYPE;
161
+ var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
162
+
163
+ function isAsyncMode(object) {
164
+ {
165
+ if (!hasWarnedAboutDeprecatedIsAsyncMode) {
166
+ hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
167
+
168
+ console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');
169
+ }
170
+ }
171
+
172
+ return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
173
+ }
174
+ function isConcurrentMode(object) {
175
+ return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
176
+ }
177
+ function isContextConsumer(object) {
178
+ return typeOf(object) === REACT_CONTEXT_TYPE;
179
+ }
180
+ function isContextProvider(object) {
181
+ return typeOf(object) === REACT_PROVIDER_TYPE;
182
+ }
183
+ function isElement(object) {
184
+ return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
185
+ }
186
+ function isForwardRef(object) {
187
+ return typeOf(object) === REACT_FORWARD_REF_TYPE;
188
+ }
189
+ function isFragment(object) {
190
+ return typeOf(object) === REACT_FRAGMENT_TYPE;
191
+ }
192
+ function isLazy(object) {
193
+ return typeOf(object) === REACT_LAZY_TYPE;
194
+ }
195
+ function isMemo(object) {
196
+ return typeOf(object) === REACT_MEMO_TYPE;
197
+ }
198
+ function isPortal(object) {
199
+ return typeOf(object) === REACT_PORTAL_TYPE;
200
+ }
201
+ function isProfiler(object) {
202
+ return typeOf(object) === REACT_PROFILER_TYPE;
203
+ }
204
+ function isStrictMode(object) {
205
+ return typeOf(object) === REACT_STRICT_MODE_TYPE;
206
+ }
207
+ function isSuspense(object) {
208
+ return typeOf(object) === REACT_SUSPENSE_TYPE;
209
+ }
210
+
211
+ exports.AsyncMode = AsyncMode;
212
+ exports.ConcurrentMode = ConcurrentMode;
213
+ exports.ContextConsumer = ContextConsumer;
214
+ exports.ContextProvider = ContextProvider;
215
+ exports.Element = Element;
216
+ exports.ForwardRef = ForwardRef;
217
+ exports.Fragment = Fragment;
218
+ exports.Lazy = Lazy;
219
+ exports.Memo = Memo;
220
+ exports.Portal = Portal;
221
+ exports.Profiler = Profiler;
222
+ exports.StrictMode = StrictMode;
223
+ exports.Suspense = Suspense;
224
+ exports.isAsyncMode = isAsyncMode;
225
+ exports.isConcurrentMode = isConcurrentMode;
226
+ exports.isContextConsumer = isContextConsumer;
227
+ exports.isContextProvider = isContextProvider;
228
+ exports.isElement = isElement;
229
+ exports.isForwardRef = isForwardRef;
230
+ exports.isFragment = isFragment;
231
+ exports.isLazy = isLazy;
232
+ exports.isMemo = isMemo;
233
+ exports.isPortal = isPortal;
234
+ exports.isProfiler = isProfiler;
235
+ exports.isStrictMode = isStrictMode;
236
+ exports.isSuspense = isSuspense;
237
+ exports.isValidElementType = isValidElementType;
238
+ exports.typeOf = typeOf;
239
+ })();
240
+ }
241
+ });
242
+
243
+ var reactIs = createCommonjsModule(function (module) {
244
+
245
+ if (process.env.NODE_ENV === 'production') {
246
+ module.exports = reactIs_production_min;
247
+ } else {
248
+ module.exports = reactIs_development;
249
+ }
250
+ });
251
+
252
+ /*
253
+ object-assign
254
+ (c) Sindre Sorhus
255
+ @license MIT
256
+ */
257
+ /* eslint-disable no-unused-vars */
258
+ var getOwnPropertySymbols = Object.getOwnPropertySymbols;
259
+ var hasOwnProperty = Object.prototype.hasOwnProperty;
260
+ var propIsEnumerable = Object.prototype.propertyIsEnumerable;
261
+
262
+ function toObject(val) {
263
+ if (val === null || val === undefined) {
264
+ throw new TypeError('Object.assign cannot be called with null or undefined');
265
+ }
266
+
267
+ return Object(val);
268
+ }
269
+
270
+ function shouldUseNative() {
271
+ try {
272
+ if (!Object.assign) {
273
+ return false;
274
+ }
275
+
276
+ // Detect buggy property enumeration order in older V8 versions.
277
+
278
+ // https://bugs.chromium.org/p/v8/issues/detail?id=4118
279
+ var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
280
+ test1[5] = 'de';
281
+ if (Object.getOwnPropertyNames(test1)[0] === '5') {
282
+ return false;
283
+ }
284
+
285
+ // https://bugs.chromium.org/p/v8/issues/detail?id=3056
286
+ var test2 = {};
287
+ for (var i = 0; i < 10; i++) {
288
+ test2['_' + String.fromCharCode(i)] = i;
289
+ }
290
+ var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
291
+ return test2[n];
292
+ });
293
+ if (order2.join('') !== '0123456789') {
294
+ return false;
295
+ }
296
+
297
+ // https://bugs.chromium.org/p/v8/issues/detail?id=3056
298
+ var test3 = {};
299
+ 'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
300
+ test3[letter] = letter;
301
+ });
302
+ if (Object.keys(Object.assign({}, test3)).join('') !==
303
+ 'abcdefghijklmnopqrst') {
304
+ return false;
305
+ }
306
+
307
+ return true;
308
+ } catch (err) {
309
+ // We don't expect any of the above to throw, but better to be safe.
310
+ return false;
311
+ }
312
+ }
313
+
314
+ var objectAssign = shouldUseNative() ? Object.assign : function (target, source) {
315
+ var from;
316
+ var to = toObject(target);
317
+ var symbols;
318
+
319
+ for (var s = 1; s < arguments.length; s++) {
320
+ from = Object(arguments[s]);
321
+
322
+ for (var key in from) {
323
+ if (hasOwnProperty.call(from, key)) {
324
+ to[key] = from[key];
325
+ }
326
+ }
327
+
328
+ if (getOwnPropertySymbols) {
329
+ symbols = getOwnPropertySymbols(from);
330
+ for (var i = 0; i < symbols.length; i++) {
331
+ if (propIsEnumerable.call(from, symbols[i])) {
332
+ to[symbols[i]] = from[symbols[i]];
333
+ }
334
+ }
335
+ }
336
+ }
337
+
338
+ return to;
339
+ };
340
+
341
+ /**
342
+ * Copyright (c) 2013-present, Facebook, Inc.
343
+ *
344
+ * This source code is licensed under the MIT license found in the
345
+ * LICENSE file in the root directory of this source tree.
346
+ */
347
+
348
+ var ReactPropTypesSecret$2 = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
349
+
350
+ var ReactPropTypesSecret_1 = ReactPropTypesSecret$2;
351
+
352
+ var has$2 = Function.call.bind(Object.prototype.hasOwnProperty);
353
+
354
+ var ReactPropTypesSecret$1 = ReactPropTypesSecret_1;
355
+
356
+ var has$1 = has$2;
357
+
358
+ /**
359
+ * Copyright (c) 2013-present, Facebook, Inc.
360
+ *
361
+ * This source code is licensed under the MIT license found in the
362
+ * LICENSE file in the root directory of this source tree.
363
+ */
364
+
365
+ var printWarning$1 = function() {};
366
+
367
+ if (process.env.NODE_ENV !== 'production') {
368
+ var ReactPropTypesSecret = ReactPropTypesSecret$1;
369
+ var loggedTypeFailures = {};
370
+ var has = has$1;
371
+
372
+ printWarning$1 = function(text) {
373
+ var message = 'Warning: ' + text;
374
+ if (typeof console !== 'undefined') {
375
+ console.error(message);
376
+ }
377
+ try {
378
+ // --- Welcome to debugging React ---
379
+ // This error was thrown as a convenience so that you can use this stack
380
+ // to find the callsite that caused this warning to fire.
381
+ throw new Error(message);
382
+ } catch (x) { /**/ }
383
+ };
384
+ }
385
+
386
+ /**
387
+ * Assert that the values match with the type specs.
388
+ * Error messages are memorized and will only be shown once.
389
+ *
390
+ * @param {object} typeSpecs Map of name to a ReactPropType
391
+ * @param {object} values Runtime values that need to be type-checked
392
+ * @param {string} location e.g. "prop", "context", "child context"
393
+ * @param {string} componentName Name of the component for error messages.
394
+ * @param {?Function} getStack Returns the component stack.
395
+ * @private
396
+ */
397
+ function checkPropTypes$1(typeSpecs, values, location, componentName, getStack) {
398
+ if (process.env.NODE_ENV !== 'production') {
399
+ for (var typeSpecName in typeSpecs) {
400
+ if (has(typeSpecs, typeSpecName)) {
401
+ var error;
402
+ // Prop type validation may throw. In case they do, we don't want to
403
+ // fail the render phase where it didn't fail before. So we log it.
404
+ // After these have been cleaned up, we'll let them throw.
405
+ try {
406
+ // This is intentionally an invariant that gets caught. It's the same
407
+ // behavior as without this statement except with a better message.
408
+ if (typeof typeSpecs[typeSpecName] !== 'function') {
409
+ var err = Error(
410
+ (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
411
+ 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' +
412
+ 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'
413
+ );
414
+ err.name = 'Invariant Violation';
415
+ throw err;
416
+ }
417
+ error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
418
+ } catch (ex) {
419
+ error = ex;
420
+ }
421
+ if (error && !(error instanceof Error)) {
422
+ printWarning$1(
423
+ (componentName || 'React class') + ': type specification of ' +
424
+ location + ' `' + typeSpecName + '` is invalid; the type checker ' +
425
+ 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +
426
+ 'You may have forgotten to pass an argument to the type checker ' +
427
+ 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +
428
+ 'shape all require an argument).'
429
+ );
430
+ }
431
+ if (error instanceof Error && !(error.message in loggedTypeFailures)) {
432
+ // Only monitor this failure once because there tends to be a lot of the
433
+ // same error.
434
+ loggedTypeFailures[error.message] = true;
435
+
436
+ var stack = getStack ? getStack() : '';
437
+
438
+ printWarning$1(
439
+ 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')
440
+ );
441
+ }
442
+ }
443
+ }
444
+ }
445
+ }
446
+
447
+ /**
448
+ * Resets warning cache when testing.
449
+ *
450
+ * @private
451
+ */
452
+ checkPropTypes$1.resetWarningCache = function() {
453
+ if (process.env.NODE_ENV !== 'production') {
454
+ loggedTypeFailures = {};
455
+ }
456
+ };
457
+
458
+ var checkPropTypes_1 = checkPropTypes$1;
459
+
460
+ var checkPropTypes = checkPropTypes_1;
461
+
462
+ /**
463
+ * Copyright (c) 2013-present, Facebook, Inc.
464
+ *
465
+ * This source code is licensed under the MIT license found in the
466
+ * LICENSE file in the root directory of this source tree.
467
+ */
468
+
469
+
470
+
471
+
472
+
473
+
474
+
475
+
476
+ var printWarning = function() {};
477
+
478
+ if (process.env.NODE_ENV !== 'production') {
479
+ printWarning = function(text) {
480
+ var message = 'Warning: ' + text;
481
+ if (typeof console !== 'undefined') {
482
+ console.error(message);
483
+ }
484
+ try {
485
+ // --- Welcome to debugging React ---
486
+ // This error was thrown as a convenience so that you can use this stack
487
+ // to find the callsite that caused this warning to fire.
488
+ throw new Error(message);
489
+ } catch (x) {}
490
+ };
491
+ }
492
+
493
+ function emptyFunctionThatReturnsNull() {
494
+ return null;
495
+ }
496
+
497
+ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
498
+ /* global Symbol */
499
+ var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
500
+ var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
501
+
502
+ /**
503
+ * Returns the iterator method function contained on the iterable object.
504
+ *
505
+ * Be sure to invoke the function with the iterable as context:
506
+ *
507
+ * var iteratorFn = getIteratorFn(myIterable);
508
+ * if (iteratorFn) {
509
+ * var iterator = iteratorFn.call(myIterable);
510
+ * ...
511
+ * }
512
+ *
513
+ * @param {?object} maybeIterable
514
+ * @return {?function}
515
+ */
516
+ function getIteratorFn(maybeIterable) {
517
+ var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
518
+ if (typeof iteratorFn === 'function') {
519
+ return iteratorFn;
520
+ }
521
+ }
522
+
523
+ /**
524
+ * Collection of methods that allow declaration and validation of props that are
525
+ * supplied to React components. Example usage:
526
+ *
527
+ * var Props = require('ReactPropTypes');
528
+ * var MyArticle = React.createClass({
529
+ * propTypes: {
530
+ * // An optional string prop named "description".
531
+ * description: Props.string,
532
+ *
533
+ * // A required enum prop named "category".
534
+ * category: Props.oneOf(['News','Photos']).isRequired,
535
+ *
536
+ * // A prop named "dialog" that requires an instance of Dialog.
537
+ * dialog: Props.instanceOf(Dialog).isRequired
538
+ * },
539
+ * render: function() { ... }
540
+ * });
541
+ *
542
+ * A more formal specification of how these methods are used:
543
+ *
544
+ * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
545
+ * decl := ReactPropTypes.{type}(.isRequired)?
546
+ *
547
+ * Each and every declaration produces a function with the same signature. This
548
+ * allows the creation of custom validation functions. For example:
549
+ *
550
+ * var MyLink = React.createClass({
551
+ * propTypes: {
552
+ * // An optional string or URI prop named "href".
553
+ * href: function(props, propName, componentName) {
554
+ * var propValue = props[propName];
555
+ * if (propValue != null && typeof propValue !== 'string' &&
556
+ * !(propValue instanceof URI)) {
557
+ * return new Error(
558
+ * 'Expected a string or an URI for ' + propName + ' in ' +
559
+ * componentName
560
+ * );
561
+ * }
562
+ * }
563
+ * },
564
+ * render: function() {...}
565
+ * });
566
+ *
567
+ * @internal
568
+ */
569
+
570
+ var ANONYMOUS = '<<anonymous>>';
571
+
572
+ // Important!
573
+ // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
574
+ var ReactPropTypes = {
575
+ array: createPrimitiveTypeChecker('array'),
576
+ bigint: createPrimitiveTypeChecker('bigint'),
577
+ bool: createPrimitiveTypeChecker('boolean'),
578
+ func: createPrimitiveTypeChecker('function'),
579
+ number: createPrimitiveTypeChecker('number'),
580
+ object: createPrimitiveTypeChecker('object'),
581
+ string: createPrimitiveTypeChecker('string'),
582
+ symbol: createPrimitiveTypeChecker('symbol'),
583
+
584
+ any: createAnyTypeChecker(),
585
+ arrayOf: createArrayOfTypeChecker,
586
+ element: createElementTypeChecker(),
587
+ elementType: createElementTypeTypeChecker(),
588
+ instanceOf: createInstanceTypeChecker,
589
+ node: createNodeChecker(),
590
+ objectOf: createObjectOfTypeChecker,
591
+ oneOf: createEnumTypeChecker,
592
+ oneOfType: createUnionTypeChecker,
593
+ shape: createShapeTypeChecker,
594
+ exact: createStrictShapeTypeChecker,
595
+ };
596
+
597
+ /**
598
+ * inlined Object.is polyfill to avoid requiring consumers ship their own
599
+ * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
600
+ */
601
+ /*eslint-disable no-self-compare*/
602
+ function is(x, y) {
603
+ // SameValue algorithm
604
+ if (x === y) {
605
+ // Steps 1-5, 7-10
606
+ // Steps 6.b-6.e: +0 != -0
607
+ return x !== 0 || 1 / x === 1 / y;
608
+ } else {
609
+ // Step 6.a: NaN == NaN
610
+ return x !== x && y !== y;
611
+ }
612
+ }
613
+ /*eslint-enable no-self-compare*/
614
+
615
+ /**
616
+ * We use an Error-like object for backward compatibility as people may call
617
+ * PropTypes directly and inspect their output. However, we don't use real
618
+ * Errors anymore. We don't inspect their stack anyway, and creating them
619
+ * is prohibitively expensive if they are created too often, such as what
620
+ * happens in oneOfType() for any type before the one that matched.
621
+ */
622
+ function PropTypeError(message, data) {
623
+ this.message = message;
624
+ this.data = data && typeof data === 'object' ? data: {};
625
+ this.stack = '';
626
+ }
627
+ // Make `instanceof Error` still work for returned errors.
628
+ PropTypeError.prototype = Error.prototype;
629
+
630
+ function createChainableTypeChecker(validate) {
631
+ if (process.env.NODE_ENV !== 'production') {
632
+ var manualPropTypeCallCache = {};
633
+ var manualPropTypeWarningCount = 0;
634
+ }
635
+ function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
636
+ componentName = componentName || ANONYMOUS;
637
+ propFullName = propFullName || propName;
638
+
639
+ if (secret !== ReactPropTypesSecret$1) {
640
+ if (throwOnDirectAccess) {
641
+ // New behavior only for users of `prop-types` package
642
+ var err = new Error(
643
+ 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
644
+ 'Use `PropTypes.checkPropTypes()` to call them. ' +
645
+ 'Read more at http://fb.me/use-check-prop-types'
646
+ );
647
+ err.name = 'Invariant Violation';
648
+ throw err;
649
+ } else if (process.env.NODE_ENV !== 'production' && typeof console !== 'undefined') {
650
+ // Old behavior for people using React.PropTypes
651
+ var cacheKey = componentName + ':' + propName;
652
+ if (
653
+ !manualPropTypeCallCache[cacheKey] &&
654
+ // Avoid spamming the console because they are often not actionable except for lib authors
655
+ manualPropTypeWarningCount < 3
656
+ ) {
657
+ printWarning(
658
+ 'You are manually calling a React.PropTypes validation ' +
659
+ 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
660
+ 'and will throw in the standalone `prop-types` package. ' +
661
+ 'You may be seeing this warning due to a third-party PropTypes ' +
662
+ 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'
663
+ );
664
+ manualPropTypeCallCache[cacheKey] = true;
665
+ manualPropTypeWarningCount++;
666
+ }
667
+ }
668
+ }
669
+ if (props[propName] == null) {
670
+ if (isRequired) {
671
+ if (props[propName] === null) {
672
+ return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
673
+ }
674
+ return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
675
+ }
676
+ return null;
677
+ } else {
678
+ return validate(props, propName, componentName, location, propFullName);
679
+ }
680
+ }
681
+
682
+ var chainedCheckType = checkType.bind(null, false);
683
+ chainedCheckType.isRequired = checkType.bind(null, true);
684
+
685
+ return chainedCheckType;
686
+ }
687
+
688
+ function createPrimitiveTypeChecker(expectedType) {
689
+ function validate(props, propName, componentName, location, propFullName, secret) {
690
+ var propValue = props[propName];
691
+ var propType = getPropType(propValue);
692
+ if (propType !== expectedType) {
693
+ // `propValue` being instance of, say, date/regexp, pass the 'object'
694
+ // check, but we can offer a more precise error message here rather than
695
+ // 'of type `object`'.
696
+ var preciseType = getPreciseType(propValue);
697
+
698
+ return new PropTypeError(
699
+ 'Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'),
700
+ {expectedType: expectedType}
701
+ );
702
+ }
703
+ return null;
704
+ }
705
+ return createChainableTypeChecker(validate);
706
+ }
707
+
708
+ function createAnyTypeChecker() {
709
+ return createChainableTypeChecker(emptyFunctionThatReturnsNull);
710
+ }
711
+
712
+ function createArrayOfTypeChecker(typeChecker) {
713
+ function validate(props, propName, componentName, location, propFullName) {
714
+ if (typeof typeChecker !== 'function') {
715
+ return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
716
+ }
717
+ var propValue = props[propName];
718
+ if (!Array.isArray(propValue)) {
719
+ var propType = getPropType(propValue);
720
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
721
+ }
722
+ for (var i = 0; i < propValue.length; i++) {
723
+ var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret$1);
724
+ if (error instanceof Error) {
725
+ return error;
726
+ }
727
+ }
728
+ return null;
729
+ }
730
+ return createChainableTypeChecker(validate);
731
+ }
732
+
733
+ function createElementTypeChecker() {
734
+ function validate(props, propName, componentName, location, propFullName) {
735
+ var propValue = props[propName];
736
+ if (!isValidElement(propValue)) {
737
+ var propType = getPropType(propValue);
738
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
739
+ }
740
+ return null;
741
+ }
742
+ return createChainableTypeChecker(validate);
743
+ }
744
+
745
+ function createElementTypeTypeChecker() {
746
+ function validate(props, propName, componentName, location, propFullName) {
747
+ var propValue = props[propName];
748
+ if (!reactIs.isValidElementType(propValue)) {
749
+ var propType = getPropType(propValue);
750
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));
751
+ }
752
+ return null;
753
+ }
754
+ return createChainableTypeChecker(validate);
755
+ }
756
+
757
+ function createInstanceTypeChecker(expectedClass) {
758
+ function validate(props, propName, componentName, location, propFullName) {
759
+ if (!(props[propName] instanceof expectedClass)) {
760
+ var expectedClassName = expectedClass.name || ANONYMOUS;
761
+ var actualClassName = getClassName(props[propName]);
762
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
763
+ }
764
+ return null;
765
+ }
766
+ return createChainableTypeChecker(validate);
767
+ }
768
+
769
+ function createEnumTypeChecker(expectedValues) {
770
+ if (!Array.isArray(expectedValues)) {
771
+ if (process.env.NODE_ENV !== 'production') {
772
+ if (arguments.length > 1) {
773
+ printWarning(
774
+ 'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +
775
+ 'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'
776
+ );
777
+ } else {
778
+ printWarning('Invalid argument supplied to oneOf, expected an array.');
779
+ }
780
+ }
781
+ return emptyFunctionThatReturnsNull;
782
+ }
783
+
784
+ function validate(props, propName, componentName, location, propFullName) {
785
+ var propValue = props[propName];
786
+ for (var i = 0; i < expectedValues.length; i++) {
787
+ if (is(propValue, expectedValues[i])) {
788
+ return null;
789
+ }
790
+ }
791
+
792
+ var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
793
+ var type = getPreciseType(value);
794
+ if (type === 'symbol') {
795
+ return String(value);
796
+ }
797
+ return value;
798
+ });
799
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
800
+ }
801
+ return createChainableTypeChecker(validate);
802
+ }
803
+
804
+ function createObjectOfTypeChecker(typeChecker) {
805
+ function validate(props, propName, componentName, location, propFullName) {
806
+ if (typeof typeChecker !== 'function') {
807
+ return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');
808
+ }
809
+ var propValue = props[propName];
810
+ var propType = getPropType(propValue);
811
+ if (propType !== 'object') {
812
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
813
+ }
814
+ for (var key in propValue) {
815
+ if (has$1(propValue, key)) {
816
+ var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret$1);
817
+ if (error instanceof Error) {
818
+ return error;
819
+ }
820
+ }
821
+ }
822
+ return null;
823
+ }
824
+ return createChainableTypeChecker(validate);
825
+ }
826
+
827
+ function createUnionTypeChecker(arrayOfTypeCheckers) {
828
+ if (!Array.isArray(arrayOfTypeCheckers)) {
829
+ process.env.NODE_ENV !== 'production' ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;
830
+ return emptyFunctionThatReturnsNull;
831
+ }
832
+
833
+ for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
834
+ var checker = arrayOfTypeCheckers[i];
835
+ if (typeof checker !== 'function') {
836
+ printWarning(
837
+ 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +
838
+ 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'
839
+ );
840
+ return emptyFunctionThatReturnsNull;
841
+ }
842
+ }
843
+
844
+ function validate(props, propName, componentName, location, propFullName) {
845
+ var expectedTypes = [];
846
+ for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
847
+ var checker = arrayOfTypeCheckers[i];
848
+ var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret$1);
849
+ if (checkerResult == null) {
850
+ return null;
851
+ }
852
+ if (checkerResult.data && has$1(checkerResult.data, 'expectedType')) {
853
+ expectedTypes.push(checkerResult.data.expectedType);
854
+ }
855
+ }
856
+ var expectedTypesMessage = (expectedTypes.length > 0) ? ', expected one of type [' + expectedTypes.join(', ') + ']': '';
857
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.'));
858
+ }
859
+ return createChainableTypeChecker(validate);
860
+ }
861
+
862
+ function createNodeChecker() {
863
+ function validate(props, propName, componentName, location, propFullName) {
864
+ if (!isNode(props[propName])) {
865
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
866
+ }
867
+ return null;
868
+ }
869
+ return createChainableTypeChecker(validate);
870
+ }
871
+
872
+ function invalidValidatorError(componentName, location, propFullName, key, type) {
873
+ return new PropTypeError(
874
+ (componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' +
875
+ 'it must be a function, usually from the `prop-types` package, but received `' + type + '`.'
876
+ );
877
+ }
878
+
879
+ function createShapeTypeChecker(shapeTypes) {
880
+ function validate(props, propName, componentName, location, propFullName) {
881
+ var propValue = props[propName];
882
+ var propType = getPropType(propValue);
883
+ if (propType !== 'object') {
884
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
885
+ }
886
+ for (var key in shapeTypes) {
887
+ var checker = shapeTypes[key];
888
+ if (typeof checker !== 'function') {
889
+ return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
890
+ }
891
+ var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret$1);
892
+ if (error) {
893
+ return error;
894
+ }
895
+ }
896
+ return null;
897
+ }
898
+ return createChainableTypeChecker(validate);
899
+ }
900
+
901
+ function createStrictShapeTypeChecker(shapeTypes) {
902
+ function validate(props, propName, componentName, location, propFullName) {
903
+ var propValue = props[propName];
904
+ var propType = getPropType(propValue);
905
+ if (propType !== 'object') {
906
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
907
+ }
908
+ // We need to check all keys in case some are required but missing from props.
909
+ var allKeys = objectAssign({}, props[propName], shapeTypes);
910
+ for (var key in allKeys) {
911
+ var checker = shapeTypes[key];
912
+ if (has$1(shapeTypes, key) && typeof checker !== 'function') {
913
+ return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
914
+ }
915
+ if (!checker) {
916
+ return new PropTypeError(
917
+ 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
918
+ '\nBad object: ' + JSON.stringify(props[propName], null, ' ') +
919
+ '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
920
+ );
921
+ }
922
+ var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret$1);
923
+ if (error) {
924
+ return error;
925
+ }
926
+ }
927
+ return null;
928
+ }
929
+
930
+ return createChainableTypeChecker(validate);
931
+ }
932
+
933
+ function isNode(propValue) {
934
+ switch (typeof propValue) {
935
+ case 'number':
936
+ case 'string':
937
+ case 'undefined':
938
+ return true;
939
+ case 'boolean':
940
+ return !propValue;
941
+ case 'object':
942
+ if (Array.isArray(propValue)) {
943
+ return propValue.every(isNode);
944
+ }
945
+ if (propValue === null || isValidElement(propValue)) {
946
+ return true;
947
+ }
948
+
949
+ var iteratorFn = getIteratorFn(propValue);
950
+ if (iteratorFn) {
951
+ var iterator = iteratorFn.call(propValue);
952
+ var step;
953
+ if (iteratorFn !== propValue.entries) {
954
+ while (!(step = iterator.next()).done) {
955
+ if (!isNode(step.value)) {
956
+ return false;
957
+ }
958
+ }
959
+ } else {
960
+ // Iterator will provide entry [k,v] tuples rather than values.
961
+ while (!(step = iterator.next()).done) {
962
+ var entry = step.value;
963
+ if (entry) {
964
+ if (!isNode(entry[1])) {
965
+ return false;
966
+ }
967
+ }
968
+ }
969
+ }
970
+ } else {
971
+ return false;
972
+ }
973
+
974
+ return true;
975
+ default:
976
+ return false;
977
+ }
978
+ }
979
+
980
+ function isSymbol(propType, propValue) {
981
+ // Native Symbol.
982
+ if (propType === 'symbol') {
983
+ return true;
984
+ }
985
+
986
+ // falsy value can't be a Symbol
987
+ if (!propValue) {
988
+ return false;
989
+ }
990
+
991
+ // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
992
+ if (propValue['@@toStringTag'] === 'Symbol') {
993
+ return true;
994
+ }
995
+
996
+ // Fallback for non-spec compliant Symbols which are polyfilled.
997
+ if (typeof Symbol === 'function' && propValue instanceof Symbol) {
998
+ return true;
999
+ }
1000
+
1001
+ return false;
1002
+ }
1003
+
1004
+ // Equivalent of `typeof` but with special handling for array and regexp.
1005
+ function getPropType(propValue) {
1006
+ var propType = typeof propValue;
1007
+ if (Array.isArray(propValue)) {
1008
+ return 'array';
1009
+ }
1010
+ if (propValue instanceof RegExp) {
1011
+ // Old webkits (at least until Android 4.0) return 'function' rather than
1012
+ // 'object' for typeof a RegExp. We'll normalize this here so that /bla/
1013
+ // passes PropTypes.object.
1014
+ return 'object';
1015
+ }
1016
+ if (isSymbol(propType, propValue)) {
1017
+ return 'symbol';
1018
+ }
1019
+ return propType;
1020
+ }
1021
+
1022
+ // This handles more types than `getPropType`. Only used for error messages.
1023
+ // See `createPrimitiveTypeChecker`.
1024
+ function getPreciseType(propValue) {
1025
+ if (typeof propValue === 'undefined' || propValue === null) {
1026
+ return '' + propValue;
1027
+ }
1028
+ var propType = getPropType(propValue);
1029
+ if (propType === 'object') {
1030
+ if (propValue instanceof Date) {
1031
+ return 'date';
1032
+ } else if (propValue instanceof RegExp) {
1033
+ return 'regexp';
1034
+ }
1035
+ }
1036
+ return propType;
1037
+ }
1038
+
1039
+ // Returns a string that is postfixed to a warning about an invalid type.
1040
+ // For example, "undefined" or "of type array"
1041
+ function getPostfixForTypeWarning(value) {
1042
+ var type = getPreciseType(value);
1043
+ switch (type) {
1044
+ case 'array':
1045
+ case 'object':
1046
+ return 'an ' + type;
1047
+ case 'boolean':
1048
+ case 'date':
1049
+ case 'regexp':
1050
+ return 'a ' + type;
1051
+ default:
1052
+ return type;
1053
+ }
1054
+ }
1055
+
1056
+ // Returns class name of the object, if any.
1057
+ function getClassName(propValue) {
1058
+ if (!propValue.constructor || !propValue.constructor.name) {
1059
+ return ANONYMOUS;
1060
+ }
1061
+ return propValue.constructor.name;
1062
+ }
1063
+
1064
+ ReactPropTypes.checkPropTypes = checkPropTypes;
1065
+ ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;
1066
+ ReactPropTypes.PropTypes = ReactPropTypes;
1067
+
1068
+ return ReactPropTypes;
1069
+ };
1070
+
1071
+ /**
1072
+ * Copyright (c) 2013-present, Facebook, Inc.
1073
+ *
1074
+ * This source code is licensed under the MIT license found in the
1075
+ * LICENSE file in the root directory of this source tree.
1076
+ */
1077
+
1078
+
1079
+
1080
+ function emptyFunction() {}
1081
+ function emptyFunctionWithReset() {}
1082
+ emptyFunctionWithReset.resetWarningCache = emptyFunction;
1083
+
1084
+ var factoryWithThrowingShims = function() {
1085
+ function shim(props, propName, componentName, location, propFullName, secret) {
1086
+ if (secret === ReactPropTypesSecret$1) {
1087
+ // It is still safe when called from React.
1088
+ return;
1089
+ }
1090
+ var err = new Error(
1091
+ 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
1092
+ 'Use PropTypes.checkPropTypes() to call them. ' +
1093
+ 'Read more at http://fb.me/use-check-prop-types'
1094
+ );
1095
+ err.name = 'Invariant Violation';
1096
+ throw err;
1097
+ } shim.isRequired = shim;
1098
+ function getShim() {
1099
+ return shim;
1100
+ } // Important!
1101
+ // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
1102
+ var ReactPropTypes = {
1103
+ array: shim,
1104
+ bigint: shim,
1105
+ bool: shim,
1106
+ func: shim,
1107
+ number: shim,
1108
+ object: shim,
1109
+ string: shim,
1110
+ symbol: shim,
1111
+
1112
+ any: shim,
1113
+ arrayOf: getShim,
1114
+ element: shim,
1115
+ elementType: shim,
1116
+ instanceOf: getShim,
1117
+ node: shim,
1118
+ objectOf: getShim,
1119
+ oneOf: getShim,
1120
+ oneOfType: getShim,
1121
+ shape: getShim,
1122
+ exact: getShim,
1123
+
1124
+ checkPropTypes: emptyFunctionWithReset,
1125
+ resetWarningCache: emptyFunction
1126
+ };
1127
+
1128
+ ReactPropTypes.PropTypes = ReactPropTypes;
1129
+
1130
+ return ReactPropTypes;
1131
+ };
1132
+
1133
+ var require$$1 = factoryWithTypeCheckers;
1134
+
1135
+ var require$$2 = factoryWithThrowingShims;
1136
+
1137
+ /**
1138
+ * Copyright (c) 2013-present, Facebook, Inc.
1139
+ *
1140
+ * This source code is licensed under the MIT license found in the
1141
+ * LICENSE file in the root directory of this source tree.
1142
+ */
1143
+
1144
+ var propTypes = createCommonjsModule(function (module) {
1145
+ if (process.env.NODE_ENV !== 'production') {
1146
+ var ReactIs = reactIs;
1147
+
1148
+ // By explicitly using `prop-types` you are opting into new development behavior.
1149
+ // http://fb.me/prop-types-in-prod
1150
+ var throwOnDirectAccess = true;
1151
+ module.exports = require$$1(ReactIs.isElement, throwOnDirectAccess);
1152
+ } else {
1153
+ // By explicitly using `prop-types` you are opting into new production behavior.
1154
+ // http://fb.me/prop-types-in-prod
1155
+ module.exports = require$$2();
1156
+ }
1157
+ });
1158
+
1159
+ var PropTypes = propTypes;
1160
+
1161
+ var styles$1 = {"container":"_lIpAT","button":"_sS-Yj","m-0":"_hBGrg","p-0":"_fOezx","m-1":"_R79vC","p-1":"_BGhZS","m-2":"_4WQa1","p-2":"_-hkj1","m-3":"_ePtXr","p-3":"_ihe2B","m-4":"_KplPo","p-4":"_2vDkp","m-5":"_4AqfI","p-5":"_FfAMs","m-6":"_53MvX","p-6":"_e-x4J","m-7":"_EtdrG","p-7":"_FLCe5","m-8":"_1IHYX","p-8":"_fZzmM","m-9":"_QsD9D","p-9":"_6Sr2Q","m-10":"_LvJdU","p-10":"_ah-tz","ml-0":"_De6uE","pl-0":"_aQ1ph","ml-1":"_5Bwy4","pl-1":"_j4wAR","ml-2":"_qeK50","pl-2":"_VC868","ml-3":"_LuNZb","pl-3":"_3fxbv","ml-4":"_XiU0I","pl-4":"_hPWPx","ml-5":"_xkmy7","pl-5":"_vZWUx","ml-6":"_HJ-Oe","pl-6":"_nx5bN","ml-7":"_L-cTm","pl-7":"_XyNJZ","ml-8":"_GUJTt","pl-8":"_O-OPx","ml-9":"_4DBUs","pl-9":"_W5E4J","ml-10":"_TsFNa","pl-10":"_a07G-","mr-0":"_KuY5-","pr-0":"_Zv2gF","mr-1":"_IylJL","pr-1":"_DIaMC","mr-2":"_wodzN","pr-2":"_x7vGR","mr-3":"_cg-WA","pr-3":"_-GR0e","mr-4":"_zip09","pr-4":"_mrzBz","mr-5":"_Z3SdR","pr-5":"_FOt7u","mr-6":"_DX3gj","pr-6":"_caE8K","mr-7":"_SRVDr","pr-7":"_7h7Xw","mr-8":"_bvjcP","pr-8":"_WxJl8","mr-9":"_CDXo1","pr-9":"_uftSg","mr-10":"_WqvBW","pr-10":"_75aX1","mt-0":"_lfLEb","pt-0":"_FszNW","mt-1":"_xtok6","pt-1":"_cDFtN","mt-2":"_j96uZ","pt-2":"_BX40s","mt-3":"_3--yt","pt-3":"_qkmXr","mt-4":"_DhLUo","pt-4":"_AG7V9","mt-5":"_Gn5bX","pt-5":"_5-rlk","mt-6":"_c6g6t","pt-6":"_iWQbs","mt-7":"_6X-oB","pt-7":"_i82Td","mt-8":"_uK93t","pt-8":"_ESUrY","mt-9":"_LmSrq","pt-9":"_BgZxc","mt-10":"_mPy8r","pt-10":"_ddKoS","mb-0":"_gs1hc","pb-0":"_k94Xn","mb-1":"_8XN6g","pb-1":"_lJSHs","mb-2":"_y04oG","pb-2":"_cNkcX","mb-3":"_3-Ex4","pb-3":"_UlTDL","mb-4":"_ZchCM","pb-4":"_PrDJ0","mb-5":"_Al-qI","pb-5":"_9ExxH","mb-6":"_38fJH","pb-6":"_YPJnw","mb-7":"_ViLUm","pb-7":"_YtQHK","mb-8":"_Jm2m3","pb-8":"_hQSln","mb-9":"_73cuP","pb-9":"_Hm-oe","mb-10":"_90atw","pb-10":"_GxdOW","mx-0":"_786dB","px-0":"_b-KUL","mx-1":"_1sw2D","px-1":"_pfikG","mx-2":"_ZCsfc","px-2":"_-E-rP","mx-3":"_Vzqfk","px-3":"_Evygh","mx-4":"_g6XKX","px-4":"_hzPZK","mx-5":"_6Yusw","px-5":"_43D2o","mx-6":"_l7jig","px-6":"_X4DAB","mx-7":"_xCEJ4","px-7":"_kFsKL","mx-8":"_bcZ3x","px-8":"_qKJ-o","mx-9":"_pmzk-","px-9":"_5kFZh","mx-10":"_ZtyHL","px-10":"_RzSP4","my-0":"_iGkHt","py-0":"_tFXK8","my-1":"_9p151","py-1":"_1ExYH","my-2":"_hDX-y","py-2":"_j2Iqz","my-3":"_ZoP-i","py-3":"_JiyfX","my-4":"_6dHeQ","py-4":"_Val1l","my-5":"_yF8w9","py-5":"_3Do00","my-6":"_5ATW7","py-6":"_EqQi0","my-7":"_6Kng-","py-7":"_kFB05","my-8":"_fqkrf","py-8":"_wkYlc","my-9":"_yC6ha","py-9":"_nR4hK","my-10":"_46v2E","py-10":"_yjbuZ","m-sm-0":"_mXg7O","p-sm-0":"_sRkzF","m-sm-1":"_uh76t","p-sm-1":"_mnvOq","m-sm-2":"_-Lxwk","p-sm-2":"_9AoV6","m-sm-3":"_k6uGI","p-sm-3":"_FPlck","m-sm-4":"_XWNGm","p-sm-4":"_UhY4z","m-sm-5":"_nqmEm","p-sm-5":"_O3yzT","m-sm-6":"_1C7QT","p-sm-6":"_yR3CC","m-sm-7":"_vlqMl","p-sm-7":"_otIfI","m-sm-8":"_f-GUL","p-sm-8":"_oMnLQ","m-sm-9":"_Klhy3","p-sm-9":"_xYdqe","m-sm-10":"_jg7tY","p-sm-10":"_-28KU","ml-sm-0":"_6hhVb","pl-sm-0":"_WV4uZ","ml-sm-1":"_u--dD","pl-sm-1":"_k2dSZ","ml-sm-2":"_ng1Wx","pl-sm-2":"_A6pLt","ml-sm-3":"_OKwcI","pl-sm-3":"_uxcE6","ml-sm-4":"_dHy5x","pl-sm-4":"_loKKN","ml-sm-5":"_pWXnn","pl-sm-5":"_6KcZ0","ml-sm-6":"_8DdT4","pl-sm-6":"_atdfH","ml-sm-7":"_-BksR","pl-sm-7":"_B6uGl","ml-sm-8":"_rL6Yi","pl-sm-8":"_L0Gt6","ml-sm-9":"_sDCuc","pl-sm-9":"_5ndTT","ml-sm-10":"_d0sOv","pl-sm-10":"_MzCci","mr-sm-0":"_TxpxL","pr-sm-0":"_ReTjB","mr-sm-1":"_ZDd-C","pr-sm-1":"_6ux6P","mr-sm-2":"_SbIys","pr-sm-2":"_0dAjY","mr-sm-3":"_WT-FE","pr-sm-3":"_hgzpB","mr-sm-4":"_ovLOk","pr-sm-4":"_YVXRD","mr-sm-5":"_3gKfj","pr-sm-5":"_GKqKE","mr-sm-6":"_EJ3Ig","pr-sm-6":"_pKU7W","mr-sm-7":"_MfWyc","pr-sm-7":"_439vk","mr-sm-8":"_HsLqa","pr-sm-8":"_Afu8-","mr-sm-9":"_k-uXQ","pr-sm-9":"_GSZg6","mr-sm-10":"_buR-E","pr-sm-10":"_GoGHq","mt-sm-0":"_3eC5V","pt-sm-0":"_w0Row","mt-sm-1":"_lFsar","pt-sm-1":"_rhMZX","mt-sm-2":"_HchNc","pt-sm-2":"_Xyn5a","mt-sm-3":"_INU0e","pt-sm-3":"_i9zkC","mt-sm-4":"_d1xqQ","pt-sm-4":"_eMU-M","mt-sm-5":"_gYMLN","pt-sm-5":"_sG2g-","mt-sm-6":"_U4BDm","pt-sm-6":"_nagya","mt-sm-7":"_f4nLP","pt-sm-7":"_3jMHw","mt-sm-8":"_hZW3J","pt-sm-8":"_woC7I","mt-sm-9":"_SFf2s","pt-sm-9":"_nuLoR","mt-sm-10":"_k1lF9","pt-sm-10":"_WG3-N","mb-sm-0":"_fQPR-","pb-sm-0":"_eL6LV","mb-sm-1":"_Z7gTR","pb-sm-1":"_OdGhD","mb-sm-2":"_dkjwo","pb-sm-2":"_kKhvE","mb-sm-3":"_meX0E","pb-sm-3":"_kh7Ku","mb-sm-4":"_rrb92","pb-sm-4":"_aytJc","mb-sm-5":"_wPkH4","pb-sm-5":"_1nZ-9","mb-sm-6":"_MkdDA","pb-sm-6":"_BxNLc","mb-sm-7":"_Nfm1A","pb-sm-7":"_-r452","mb-sm-8":"_K1omF","pb-sm-8":"_4-6gt","mb-sm-9":"_OUWsR","pb-sm-9":"_7DXr5","mb-sm-10":"_wZv7f","pb-sm-10":"_21WIP","mx-sm-0":"_hCRDg","px-sm-0":"_Bdj31","mx-sm-1":"_sx6bH","px-sm-1":"_jQXbZ","mx-sm-2":"_aCjIb","px-sm-2":"_-DBsZ","mx-sm-3":"_p2bFN","px-sm-3":"_d6ice","mx-sm-4":"_GZmNE","px-sm-4":"_7D10W","mx-sm-5":"_tKkEN","px-sm-5":"_J2iH5","mx-sm-6":"_iJju-","px-sm-6":"_m2ygK","mx-sm-7":"_chPCu","px-sm-7":"_C0aVt","mx-sm-8":"_twRB-","px-sm-8":"_6DezI","mx-sm-9":"_z1iZL","px-sm-9":"_HLE-F","mx-sm-10":"_F58U0","px-sm-10":"_Mat2S","my-sm-0":"_nADuT","py-sm-0":"_yu79u","my-sm-1":"_TEHyf","py-sm-1":"_MkRV5","my-sm-2":"_wfxJN","py-sm-2":"_qjIa5","my-sm-3":"_ch7TX","py-sm-3":"_0ZM5Q","my-sm-4":"_KQyj3","py-sm-4":"_npV56","my-sm-5":"_antvz","py-sm-5":"_qK29t","my-sm-6":"_PIZw6","py-sm-6":"_kwzra","my-sm-7":"_IPjVc","py-sm-7":"_NPJ-2","my-sm-8":"_Sxu2p","py-sm-8":"_VUG-4","my-sm-9":"_mLy-T","py-sm-9":"_U-1Tz","my-sm-10":"_6LGF-","py-sm-10":"_1I7Qo","m-lg-0":"_7JHxT","p-lg-0":"_dZxSG","m-lg-1":"_ap69K","p-lg-1":"_yAiEU","m-lg-2":"_cu0Gq","p-lg-2":"_p2Nvp","m-lg-3":"_ipTnO","p-lg-3":"_uekmi","m-lg-4":"_Ocj1U","p-lg-4":"_T5xZ0","m-lg-5":"_9QwAr","p-lg-5":"_S73RR","m-lg-6":"_TQDUS","p-lg-6":"_SVpzt","m-lg-7":"_u7-7x","p-lg-7":"_tVwwR","m-lg-8":"_VMheR","p-lg-8":"_dnoel","m-lg-9":"_bs68b","p-lg-9":"_-fPka","m-lg-10":"_JaRq8","p-lg-10":"_222SK","ml-lg-0":"_snW5C","pl-lg-0":"_cbC4p","ml-lg-1":"_ZcZqo","pl-lg-1":"_Ox1R-","ml-lg-2":"_GYhhL","pl-lg-2":"_RQnGa","ml-lg-3":"_PUix3","pl-lg-3":"_TXjNe","ml-lg-4":"_ctO4e","pl-lg-4":"_HGdnK","ml-lg-5":"_0kAql","pl-lg-5":"_j374-","ml-lg-6":"_DTSzU","pl-lg-6":"_f8fRt","ml-lg-7":"_SOGpN","pl-lg-7":"_ftCov","ml-lg-8":"_yyg3O","pl-lg-8":"_es-pp","ml-lg-9":"_ujiYm","pl-lg-9":"_hEH2f","ml-lg-10":"_sOymp","pl-lg-10":"_zABMD","mr-lg-0":"_bZvOK","pr-lg-0":"_1MjdX","mr-lg-1":"_lVGe-","pr-lg-1":"_hJzV5","mr-lg-2":"_9az71","pr-lg-2":"_vBVKt","mr-lg-3":"_SK-xp","pr-lg-3":"_BymTx","mr-lg-4":"_C-P-K","pr-lg-4":"_oDktY","mr-lg-5":"_e8X2c","pr-lg-5":"_XugCG","mr-lg-6":"_CycFS","pr-lg-6":"_aXn7x","mr-lg-7":"_woi9n","pr-lg-7":"_Xz9XT","mr-lg-8":"_p4H3g","pr-lg-8":"_2GHoq","mr-lg-9":"_OZukC","pr-lg-9":"_ckY7k","mr-lg-10":"_tu3W5","pr-lg-10":"_9v3FG","mt-lg-0":"_I-1g6","pt-lg-0":"_cUyFD","mt-lg-1":"_c94QP","pt-lg-1":"_g75ry","mt-lg-2":"_XiT9Y","pt-lg-2":"_OzwIr","mt-lg-3":"_TZnYh","pt-lg-3":"_qC-3V","mt-lg-4":"_ClD8h","pt-lg-4":"_n1T93","mt-lg-5":"_yfqL8","pt-lg-5":"_oRkf6","mt-lg-6":"_6sndc","pt-lg-6":"_zKuFI","mt-lg-7":"_61kz3","pt-lg-7":"_5Q2hr","mt-lg-8":"_s2ReT","pt-lg-8":"_Ap8SS","mt-lg-9":"_bV6Hp","pt-lg-9":"_G5Dl9","mt-lg-10":"_hSJ91","pt-lg-10":"_amgjj","mb-lg-0":"_p-7me","pb-lg-0":"_ys8Fm","mb-lg-1":"_ZFPzR","pb-lg-1":"_Low3Q","mb-lg-2":"_UKfD5","pb-lg-2":"_Z4xYz","mb-lg-3":"_WYCZq","pb-lg-3":"_lOmpq","mb-lg-4":"_3f13Q","pb-lg-4":"_tfvEW","mb-lg-5":"_DxAtv","pb-lg-5":"_lN1KV","mb-lg-6":"_pEAAo","pb-lg-6":"_9pLfP","mb-lg-7":"_lZzWZ","pb-lg-7":"_E76Lg","mb-lg-8":"_Biywb","pb-lg-8":"_PKNGt","mb-lg-9":"_af7LP","pb-lg-9":"_769vF","mb-lg-10":"_p6W2n","pb-lg-10":"_44r6t","mx-lg-0":"_noonL","px-lg-0":"_g6n-m","mx-lg-1":"_V3fJC","px-lg-1":"_h-048","mx-lg-2":"_VBXFM","px-lg-2":"_yXjeI","mx-lg-3":"_anxPB","px-lg-3":"_umXxh","mx-lg-4":"_arYWt","px-lg-4":"_v21qY","mx-lg-5":"_VJrBv","px-lg-5":"_Wg7-s","mx-lg-6":"_qiDC7","px-lg-6":"_1VXpg","mx-lg-7":"_d0c15","px-lg-7":"_sfSeF","mx-lg-8":"_2gYLA","px-lg-8":"_DEL7d","mx-lg-9":"_KmU1j","px-lg-9":"_Qs2ud","mx-lg-10":"_cEBsK","px-lg-10":"_mQH7b","my-lg-0":"_ag2WO","py-lg-0":"_lnVBo","my-lg-1":"_xEHQX","py-lg-1":"_9Tj2M","my-lg-2":"_Iqbzp","py-lg-2":"_8tcVx","my-lg-3":"_caNHW","py-lg-3":"_XJ-2h","my-lg-4":"_6q91a","py-lg-4":"_EwkV-","my-lg-5":"_vAyw8","py-lg-5":"_5fbq2","my-lg-6":"_15LIk","py-lg-6":"_HIyvD","my-lg-7":"_kBk-L","py-lg-7":"_t5Eqq","my-lg-8":"_7QdOv","py-lg-8":"_mWXQT","my-lg-9":"_AgF1j","py-lg-9":"_Hw03a","my-lg-10":"_lgtEt","py-lg-10":"_VLUO-","m-md-0":"_bZzK1","p-md-0":"_hf1u1","m-md-1":"_D90hf","p-md-1":"_T8Wci","m-md-2":"_OV2C9","p-md-2":"_GFg-F","m-md-3":"_tOGww","p-md-3":"_p0NdJ","m-md-4":"_gUtm-","p-md-4":"_92JAP","m-md-5":"_V4DwP","p-md-5":"_KzYIR","m-md-6":"_RYzMI","p-md-6":"_bV-UI","m-md-7":"_bZ8rT","p-md-7":"_sz5lw","m-md-8":"_Tt85A","p-md-8":"_o9XsL","m-md-9":"_5Z2zG","p-md-9":"_QFUvw","m-md-10":"_o-CSv","p-md-10":"_I0UW7","ml-md-0":"_Ec-jt","pl-md-0":"_AsNUW","ml-md-1":"_FkvyK","pl-md-1":"_eWpHd","ml-md-2":"_C-N9j","pl-md-2":"_f4IXC","ml-md-3":"_i4rpE","pl-md-3":"_u1wxV","ml-md-4":"_bfpFB","pl-md-4":"_LFkDV","ml-md-5":"_ChenT","pl-md-5":"_Tseed","ml-md-6":"_5OVzE","pl-md-6":"_kKZuw","ml-md-7":"_HkEvd","pl-md-7":"_-UCQ1","ml-md-8":"_Mil4J","pl-md-8":"_ibj8N","ml-md-9":"_hZgvD","pl-md-9":"_x58o7","ml-md-10":"_aNTRb","pl-md-10":"_B9Ytk","mr-md-0":"_5fzNR","pr-md-0":"_UcmnK","mr-md-1":"_7GSVQ","pr-md-1":"_lKZ6y","mr-md-2":"_Vuc2l","pr-md-2":"_OWoeF","mr-md-3":"_GfGNW","pr-md-3":"_039xq","mr-md-4":"_XUUw7","pr-md-4":"_hNdK8","mr-md-5":"_PchvO","pr-md-5":"_YBTBv","mr-md-6":"_irZPz","pr-md-6":"_xez9v","mr-md-7":"_IWCJD","pr-md-7":"_Nymwz","mr-md-8":"_1ypEg","pr-md-8":"_hJvwk","mr-md-9":"_AisV-","pr-md-9":"_6jqua","mr-md-10":"_LdBUv","pr-md-10":"_Rhahl","mt-md-0":"_iI75A","pt-md-0":"_GCK2h","mt-md-1":"_QoRcE","pt-md-1":"_Q3gZh","mt-md-2":"_rzNrf","pt-md-2":"_mrtOR","mt-md-3":"_-Xx-x","pt-md-3":"_vhZY4","mt-md-4":"_Ie5M9","pt-md-4":"_Bv-Vz","mt-md-5":"_sC4OE","pt-md-5":"_sZzfz","mt-md-6":"_b8qW3","pt-md-6":"_sca5l","mt-md-7":"_Pn6m9","pt-md-7":"_9klOR","mt-md-8":"_oY4i-","pt-md-8":"_QpcKU","mt-md-9":"_-PssV","pt-md-9":"_IBITO","mt-md-10":"_hmDGa","pt-md-10":"_rPOnf","mb-md-0":"_KsSuI","pb-md-0":"_E01ZW","mb-md-1":"_mu8n4","pb-md-1":"_obt8N","mb-md-2":"_4uUmS","pb-md-2":"_eCQut","mb-md-3":"_gckFx","pb-md-3":"_v76WA","mb-md-4":"_HNG1G","pb-md-4":"_WF2cS","mb-md-5":"_y0d7f","pb-md-5":"_Ulg5o","mb-md-6":"_gGNca","pb-md-6":"_L6tTJ","mb-md-7":"_JFKoe","pb-md-7":"_cotbI","mb-md-8":"_zWuLC","pb-md-8":"_PZ98d","mb-md-9":"_0OLPw","pb-md-9":"_diSZ0","mb-md-10":"_tZv9r","pb-md-10":"_8DINx","mx-md-0":"_TlILw","px-md-0":"_nYb1A","mx-md-1":"_8F9Eu","px-md-1":"_zdtgY","mx-md-2":"_Hf2VU","px-md-2":"_R7ntT","mx-md-3":"_7koGZ","px-md-3":"_SjYZ0","mx-md-4":"_mfX1U","px-md-4":"_wpmO4","mx-md-5":"_yWbVN","px-md-5":"_c-PDJ","mx-md-6":"_F98A-","px-md-6":"_k2aB-","mx-md-7":"_PyjZi","px-md-7":"_1p7LO","mx-md-8":"_at5B-","px-md-8":"_Wlop7","mx-md-9":"_MP-IT","px-md-9":"_ZEJLn","mx-md-10":"_t-qxH","px-md-10":"_m2jcH","my-md-0":"_mamXD","py-md-0":"_XfnLL","my-md-1":"_wltQA","py-md-1":"_kMSov","my-md-2":"_PB9Lu","py-md-2":"_ZHQxJ","my-md-3":"_ROfrO","py-md-3":"_5pjW-","my-md-4":"_asOWk","py-md-4":"_521lJ","my-md-5":"_sfKXT","py-md-5":"_0hhLg","my-md-6":"_vBIkT","py-md-6":"_mh-mU","my-md-7":"_SbaIW","py-md-7":"_4U--m","my-md-8":"_8Ml4g","py-md-8":"_8CAbC","my-md-9":"_2W5Vi","py-md-9":"_ifVgs","my-md-10":"_jOwwL","py-md-10":"_xGEHg","m-xl-0":"_Cmi8h","p-xl-0":"_YOJnv","m-xl-1":"_IlYRc","p-xl-1":"_qg39r","m-xl-2":"_NZu1F","p-xl-2":"_ChCeZ","m-xl-3":"_wCJFO","p-xl-3":"_s5DXB","m-xl-4":"_-ooyS","p-xl-4":"_1rcFF","m-xl-5":"_2--cB","p-xl-5":"_0s8cD","m-xl-6":"_zMbs-","p-xl-6":"_qAR79","m-xl-7":"_sRWyz","p-xl-7":"_ykFCJ","m-xl-8":"_dj226","p-xl-8":"_XLB7-","m-xl-9":"_eM-R4","p-xl-9":"_QuQVl","m-xl-10":"_UUuwy","p-xl-10":"_nDqX9","ml-xl-0":"_LL8WU","pl-xl-0":"_AIPph","ml-xl-1":"_pKFo-","pl-xl-1":"_tQEXN","ml-xl-2":"_F-wn7","pl-xl-2":"_wcxv3","ml-xl-3":"_M94zg","pl-xl-3":"_I3KoK","ml-xl-4":"_0PzeG","pl-xl-4":"_lzci3","ml-xl-5":"_XRI4C","pl-xl-5":"_XlhyA","ml-xl-6":"_GjzL0","pl-xl-6":"_ASrOm","ml-xl-7":"_-0WjA","pl-xl-7":"_hx5P8","ml-xl-8":"_XlbUH","pl-xl-8":"_Vonli","ml-xl-9":"_LwuSL","pl-xl-9":"_MxuFJ","ml-xl-10":"_v7xZI","pl-xl-10":"_Tvo-Z","mr-xl-0":"_SzVWx","pr-xl-0":"_K1dhq","mr-xl-1":"_JOZtq","pr-xl-1":"_c1i37","mr-xl-2":"_R3B8Q","pr-xl-2":"_63cME","mr-xl-3":"_91LCJ","pr-xl-3":"_WxNaS","mr-xl-4":"_BauAg","pr-xl-4":"_V6rST","mr-xl-5":"_H0Uy4","pr-xl-5":"_idyBA","mr-xl-6":"_lIBS-","pr-xl-6":"_hm7f2","mr-xl-7":"_DcV1a","pr-xl-7":"_L9DAM","mr-xl-8":"_M62Cx","pr-xl-8":"_nso5O","mr-xl-9":"_M-vkg","pr-xl-9":"_Jm-de","mr-xl-10":"_V5v9Y","pr-xl-10":"_jt-a5","mt-xl-0":"_YPHmA","pt-xl-0":"_XVXEh","mt-xl-1":"_pJbYc","pt-xl-1":"_i-ZXc","mt-xl-2":"_SHsME","pt-xl-2":"_ak-Hh","mt-xl-3":"_wzbs7","pt-xl-3":"_py3lR","mt-xl-4":"_HBXKA","pt-xl-4":"_GQBlv","mt-xl-5":"_5d6Ee","pt-xl-5":"_KFPkO","mt-xl-6":"_Yf-yF","pt-xl-6":"_1e6oC","mt-xl-7":"_kg9lU","pt-xl-7":"_SHs7f","mt-xl-8":"_KXugL","pt-xl-8":"_VyRfA","mt-xl-9":"_EOyB7","pt-xl-9":"_5KMcS","mt-xl-10":"_8W-Zj","pt-xl-10":"_cz8iz","mb-xl-0":"_rWALs","pb-xl-0":"_LpkfT","mb-xl-1":"_RzmHQ","pb-xl-1":"_6ad54","mb-xl-2":"_Ajc4e","pb-xl-2":"_SbX8t","mb-xl-3":"_vSzzB","pb-xl-3":"_yidEJ","mb-xl-4":"_mrCP3","pb-xl-4":"_3TrW-","mb-xl-5":"_6j8-6","pb-xl-5":"_D1WrN","mb-xl-6":"_XDRU9","pb-xl-6":"_dcA8T","mb-xl-7":"_-i7kC","pb-xl-7":"_81QE4","mb-xl-8":"_X9-zp","pb-xl-8":"_HTClM","mb-xl-9":"_klb-D","pb-xl-9":"_RReN9","mb-xl-10":"_vPsb7","pb-xl-10":"_OVfeI","mx-xl-0":"_YNCB1","px-xl-0":"_hiVA4","mx-xl-1":"_k6kz-","px-xl-1":"_rONSC","mx-xl-2":"_pBneY","px-xl-2":"_po-3F","mx-xl-3":"_Bpbr7","px-xl-3":"_KdGyy","mx-xl-4":"_brh6E","px-xl-4":"_qqxT0","mx-xl-5":"_BfzzU","px-xl-5":"_R-Rw5","mx-xl-6":"_sSR5n","px-xl-6":"_thByS","mx-xl-7":"_r5nPW","px-xl-7":"_Qn6um","mx-xl-8":"_J9EDO","px-xl-8":"_9rkVI","mx-xl-9":"_Mltks","px-xl-9":"_g-Ham","mx-xl-10":"_sbya6","px-xl-10":"_8-jLj","my-xl-0":"_5yWBG","py-xl-0":"_xbHHG","my-xl-1":"_PlYBL","py-xl-1":"_F3Fon","my-xl-2":"_tsmUe","py-xl-2":"_a-0sQ","my-xl-3":"_sY3wJ","py-xl-3":"_iMcG-","my-xl-4":"_oHAzn","py-xl-4":"_SVfuw","my-xl-5":"_PvaIf","py-xl-5":"_J1xNt","my-xl-6":"_opQCd","py-xl-6":"_BykWn","my-xl-7":"_wYtgV","py-xl-7":"_rWN6g","my-xl-8":"_QHTpr","py-xl-8":"_6lwHD","my-xl-9":"_sKUSa","py-xl-9":"_HEg44","my-xl-10":"_mR1Ig","py-xl-10":"_-KK9e","background-shine":"_GS93D","path":"_Yio2J","line":"_hUBrW","skeleton":"_jhzCK","skeleton-animate":"_E3Vdv","skeleton-dark":"_wQ36Y","skeleton-dark-animate":"_j-rmG","skeleton-transparent":"_trTiX","skeleton-transparent-animate":"_4QQUW","semi-transparent":"_jW9cZ","disable":"_07-2N","full-width-on-tablets":"_at3Is","full-width-on-mobiles":"_7mVhH","xl":"_YBEjy","lg":"_4T1JY","md":"_y81Q7","sm":"_HlFvs","small-padding-on-small-mobiles":"_pC5i6","primary":"_rf33o","primary-bordered":"_bpdoC","primary-transparent":"_FNwOe","transparent":"_9LspZ","transparent-bordered":"_HgM7r","transparent-without-shadow":"_tkp-m","white":"_bv597","white-flat":"_IhewT","button-primary-dots-wrapper":"_OEKG8","show":"_MQYPo","button-success-icon":"_Y24W2","button-text":"_o-rLq","hide":"_4GC9-","button-with-icon":"_m1W6m","button-with-icon-text":"_75-fw","big-icon":"_gHcQi"};
1162
+
1163
+ var styles = {"container":"_a5RSj","m-0":"_wcoyj","p-0":"_Rd5sE","m-1":"_vAsxv","p-1":"_KZ14Z","m-2":"_Bvk20","p-2":"_Z7fhL","m-3":"_ZqDCi","p-3":"_CiGc9","m-4":"_8JK-L","p-4":"_FadoA","m-5":"_baCle","p-5":"_cvJqX","m-6":"_P3lUT","p-6":"_ZmGGH","m-7":"_5Tnff","p-7":"_-t7z9","m-8":"_1JxUQ","p-8":"_EATOh","m-9":"_pJGV0","p-9":"_B762d","m-10":"_Z3rGU","p-10":"_0ULM0","ml-0":"_ZSfG7","pl-0":"_hjKq0","ml-1":"_srwbU","pl-1":"_oz-sG","ml-2":"_RnILi","pl-2":"_-nAjZ","ml-3":"_lges5","pl-3":"_AwVsn","ml-4":"_p4arL","pl-4":"_upAfC","ml-5":"_-iEnG","pl-5":"_bqApa","ml-6":"_uF0xd","pl-6":"_WUUFo","ml-7":"_eXFZs","pl-7":"_ZforM","ml-8":"_2AA5o","pl-8":"_u6bF0","ml-9":"_19IxL","pl-9":"_vmLg6","ml-10":"_eyqFK","pl-10":"_mr36J","mr-0":"_6RpFz","pr-0":"_fgnzi","mr-1":"_fBjrA","pr-1":"_QrC2Y","mr-2":"_0Y6RC","pr-2":"_5kZkr","mr-3":"_iaZj-","pr-3":"_A-IQ7","mr-4":"_zBHHn","pr-4":"_pHQ4t","mr-5":"_1JTCi","pr-5":"_ODvHf","mr-6":"_n6Enr","pr-6":"_XNdBl","mr-7":"_YfaVy","pr-7":"_ZfZDh","mr-8":"_le3sp","pr-8":"_K1rvN","mr-9":"_mL6UV","pr-9":"_76mZn","mr-10":"_fo-sf","pr-10":"_xvsK1","mt-0":"_1uBdK","pt-0":"_30qg7","mt-1":"_NKlWd","pt-1":"_3yj99","mt-2":"_lLyiG","pt-2":"_GsXqc","mt-3":"_zC55o","pt-3":"_3OZTc","mt-4":"_v1VXO","pt-4":"_sFrdR","mt-5":"_qbBFx","pt-5":"_DQrF8","mt-6":"_dJG8P","pt-6":"_Zxte7","mt-7":"_sUtkp","pt-7":"_9B1r5","mt-8":"_Qrnld","pt-8":"_7xBV7","mt-9":"_OPKw2","pt-9":"_cXhnD","mt-10":"_m5k36","pt-10":"_b9nMR","mb-0":"_7AyaR","pb-0":"_u0vFs","mb-1":"_ivpnr","pb-1":"_1dkPf","mb-2":"_D8KfL","pb-2":"_wzuIB","mb-3":"_zwh5E","pb-3":"_rT8wS","mb-4":"_wpLh9","pb-4":"_AGvn8","mb-5":"_-phDB","pb-5":"_r4HWg","mb-6":"_RZI7I","pb-6":"_-t4Gs","mb-7":"_Vw-z1","pb-7":"_qwD1B","mb-8":"_f3nKh","pb-8":"_Sk1Fn","mb-9":"_2MDAw","pb-9":"_jZbwv","mb-10":"_gRDI3","pb-10":"_W7OVZ","mx-0":"_I6mmv","px-0":"_BVRG5","mx-1":"_b7fTJ","px-1":"_bZf6u","mx-2":"_FoGd8","px-2":"_-vX3t","mx-3":"_0H3Cj","loading-dots":"_pnWN9","big":"_k0j0g","dot":"_9LXS6","px-3":"_ggifM","mx-4":"_leP-v","px-4":"_7Kcun","mx-5":"_sBxud","px-5":"_oJO7X","mx-6":"_F-Una","px-6":"_Bl-A8","mx-7":"_NVWrT","px-7":"_Bn6vR","mx-8":"_OK9GD","px-8":"_iv1v2","mx-9":"_WVtLI","px-9":"_ntW3v","mx-10":"_21M1-","px-10":"_BjXo-","my-0":"_3v8p4","py-0":"_EBmV-","my-1":"_DcOh5","py-1":"_udCfN","my-2":"_Lk0RK","py-2":"_wIENK","my-3":"_nsOf5","py-3":"_No-oK","my-4":"_L1ycy","py-4":"_42DgQ","my-5":"_3bZSh","py-5":"_XjTMT","my-6":"_Ty-GG","py-6":"_7Dr5E","my-7":"_PILBF","py-7":"_vyvsk","my-8":"_AkmkO","py-8":"_X0xg-","my-9":"_VSxcf","py-9":"_Hq-yp","my-10":"_FxwFR","py-10":"_BnN2G","m-sm-0":"_EZHgz","p-sm-0":"_oKPqX","m-sm-1":"_gdysh","p-sm-1":"_-7KK8","m-sm-2":"_BLBqZ","p-sm-2":"_IgrmD","m-sm-3":"_zbrA7","p-sm-3":"_eimPJ","m-sm-4":"_7RaaP","p-sm-4":"_0-Cvi","m-sm-5":"_PhCOs","p-sm-5":"_CIKFA","m-sm-6":"_8WC3P","p-sm-6":"_2FqT5","m-sm-7":"_D7sDK","p-sm-7":"_L3EpN","m-sm-8":"_mG6-A","p-sm-8":"_D2Gx9","m-sm-9":"_2tGFi","p-sm-9":"_8n6VA","m-sm-10":"_G-MMA","p-sm-10":"_pgJzb","ml-sm-0":"_BF125","pl-sm-0":"_81k6q","ml-sm-1":"_JSywC","pl-sm-1":"_1eoeN","ml-sm-2":"_q5cSf","pl-sm-2":"_A6Li5","ml-sm-3":"_-7C1-","pl-sm-3":"_lBIcx","ml-sm-4":"_bvj1N","pl-sm-4":"_SQmLb","ml-sm-5":"_pwy33","pl-sm-5":"_iuqDu","ml-sm-6":"_CNiYb","pl-sm-6":"_tQ2J-","ml-sm-7":"_Zuec-","pl-sm-7":"_iJF5q","ml-sm-8":"_lP-ls","pl-sm-8":"_1xIwn","ml-sm-9":"_Jld-6","pl-sm-9":"_pfOVT","ml-sm-10":"_TGfAU","pl-sm-10":"_MYgNP","mr-sm-0":"_CEiPO","pr-sm-0":"_rZ5kD","mr-sm-1":"_-bdjz","pr-sm-1":"_nRBRL","mr-sm-2":"_17O3E","pr-sm-2":"_uBaUj","mr-sm-3":"_5oO1d","pr-sm-3":"_jQWXm","mr-sm-4":"_peO4Y","pr-sm-4":"_P2f3n","mr-sm-5":"_AUc3q","pr-sm-5":"_7TR99","mr-sm-6":"_e3d5h","pr-sm-6":"_QqPl1","mr-sm-7":"_Yc1cR","pr-sm-7":"_5fd5H","mr-sm-8":"_z4g3-","pr-sm-8":"_gY3T9","mr-sm-9":"_P9chP","pr-sm-9":"_G4k6A","mr-sm-10":"_QWMD2","pr-sm-10":"_2POWv","mt-sm-0":"_xYS0m","pt-sm-0":"_gYD3b","mt-sm-1":"_08rCY","pt-sm-1":"_UsP-z","mt-sm-2":"_HWQec","pt-sm-2":"_cjIgZ","mt-sm-3":"_gZV20","pt-sm-3":"_zJZJm","mt-sm-4":"_4FE5W","pt-sm-4":"_VpJhv","mt-sm-5":"_eu88H","pt-sm-5":"_V7qwC","mt-sm-6":"_09LyL","pt-sm-6":"_n8bba","mt-sm-7":"_q-ASs","pt-sm-7":"_3b9S8","mt-sm-8":"_iTxDv","pt-sm-8":"_--Hdk","mt-sm-9":"_OaVE-","pt-sm-9":"_cd-UP","mt-sm-10":"_ZIr-H","pt-sm-10":"_6jYkb","mb-sm-0":"_YgN23","pb-sm-0":"_F8F6A","mb-sm-1":"_4QH8u","pb-sm-1":"_A2I8v","mb-sm-2":"_jrZxh","pb-sm-2":"_2VL1m","mb-sm-3":"_IB8uX","pb-sm-3":"_meger","mb-sm-4":"_-gCVy","pb-sm-4":"_R-qMm","mb-sm-5":"_YwvXh","pb-sm-5":"_pyu5v","mb-sm-6":"_qwhTX","pb-sm-6":"_l61nc","mb-sm-7":"_0KfeR","pb-sm-7":"_YXuNM","mb-sm-8":"_75fJr","pb-sm-8":"_jp-Qe","mb-sm-9":"_V0wM-","pb-sm-9":"_vMKpc","mb-sm-10":"_sxEY8","pb-sm-10":"_k2mOD","mx-sm-0":"_qPF9i","px-sm-0":"_cl18e","mx-sm-1":"_LvMUO","px-sm-1":"_RcIbD","mx-sm-2":"_xLMK5","px-sm-2":"_GCL1S","mx-sm-3":"_t0q4o","px-sm-3":"_cuiW8","mx-sm-4":"_pHjdd","px-sm-4":"_LDu1N","mx-sm-5":"_cYpLd","px-sm-5":"_24Yji","mx-sm-6":"_pXCM6","px-sm-6":"_uoSDI","mx-sm-7":"_qbXoQ","px-sm-7":"_0RlFx","mx-sm-8":"_3f-s3","px-sm-8":"_xAS-y","mx-sm-9":"_vx3dZ","px-sm-9":"_ndXm6","mx-sm-10":"_6lFsZ","px-sm-10":"_EZ6Qr","my-sm-0":"_0t-Cg","py-sm-0":"_N3sbI","my-sm-1":"_jdmVi","py-sm-1":"_GlMKb","my-sm-2":"_yFRs8","py-sm-2":"_LNRZQ","my-sm-3":"_qSuwF","py-sm-3":"_ON3vd","my-sm-4":"_1h6pX","py-sm-4":"_TZg0h","my-sm-5":"_vT295","py-sm-5":"_J1zu8","my-sm-6":"_7LuwF","py-sm-6":"_qbbdP","my-sm-7":"_9vKuY","py-sm-7":"_C9gzg","my-sm-8":"_Nx1-S","py-sm-8":"_8lmEZ","my-sm-9":"_LxGxx","py-sm-9":"_3y4jy","my-sm-10":"_61y0C","py-sm-10":"_fxmBa","m-lg-0":"_PJydR","p-lg-0":"_3o1cd","m-lg-1":"_MAdi8","p-lg-1":"_JDc1V","m-lg-2":"_pEH2Q","p-lg-2":"_Ic9tL","m-lg-3":"_P6cGt","p-lg-3":"_nzx-g","m-lg-4":"_9bH-j","p-lg-4":"_KdZTF","m-lg-5":"_hxjaE","p-lg-5":"_LDamm","m-lg-6":"_xXtVI","p-lg-6":"_ZWhTL","m-lg-7":"_mPnVe","p-lg-7":"_lJnBT","m-lg-8":"_J-MQA","p-lg-8":"_MGs60","m-lg-9":"_ixlkP","p-lg-9":"_Lru1O","m-lg-10":"_eH6ht","p-lg-10":"_ugZzQ","ml-lg-0":"_6z3OE","pl-lg-0":"_PDwaH","ml-lg-1":"_GMcN9","pl-lg-1":"_NoDTB","ml-lg-2":"_PQ5AQ","pl-lg-2":"_8-Pu6","ml-lg-3":"_PktVo","pl-lg-3":"_JTpEZ","ml-lg-4":"_zIcyb","pl-lg-4":"_e4YYS","ml-lg-5":"_HrlcA","pl-lg-5":"_cwG3s","ml-lg-6":"_Xf7Wv","pl-lg-6":"_XYe-E","ml-lg-7":"_vnGAT","pl-lg-7":"_NnScU","ml-lg-8":"_9z7Tj","pl-lg-8":"_DDEn1","ml-lg-9":"_sxSQp","pl-lg-9":"_-r39c","ml-lg-10":"_kppNg","pl-lg-10":"_1mgTz","mr-lg-0":"_WtS6h","pr-lg-0":"_NKNU9","mr-lg-1":"_kxaOQ","pr-lg-1":"_8OvSK","mr-lg-2":"_bTQt8","pr-lg-2":"_yQerd","mr-lg-3":"_f7H9P","pr-lg-3":"_Kwfoa","mr-lg-4":"_lkF5d","pr-lg-4":"_b7tIe","mr-lg-5":"_H4e5a","pr-lg-5":"_pxwBt","mr-lg-6":"_I81Hq","pr-lg-6":"_1Xwlf","mr-lg-7":"_gtO-Y","pr-lg-7":"_vjm3Z","mr-lg-8":"_ZfEr1","pr-lg-8":"_je0MD","mr-lg-9":"_h43Co","pr-lg-9":"_Lnbh5","mr-lg-10":"_HoaFo","pr-lg-10":"_3puFA","mt-lg-0":"_a7pDC","pt-lg-0":"_-URo7","mt-lg-1":"_Ot-U1","pt-lg-1":"_rMvMf","mt-lg-2":"_95ooz","pt-lg-2":"_vkEgW","mt-lg-3":"_9XqX5","pt-lg-3":"_b-oGK","mt-lg-4":"_eYL6E","pt-lg-4":"_zgUGu","mt-lg-5":"_BqCaM","pt-lg-5":"_Y9PL4","mt-lg-6":"_0aOPb","pt-lg-6":"_nvMum","mt-lg-7":"_-pNQS","pt-lg-7":"_funa7","mt-lg-8":"_sDweY","pt-lg-8":"_S1hmu","mt-lg-9":"_Y4BpR","pt-lg-9":"_J3203","mt-lg-10":"_Jm-dV","pt-lg-10":"_0WSnk","mb-lg-0":"_4uWrE","pb-lg-0":"_qy0mb","mb-lg-1":"_jUNMm","pb-lg-1":"_pUTOt","mb-lg-2":"_aGqhb","pb-lg-2":"_xAKUw","mb-lg-3":"_kado5","pb-lg-3":"_htLgL","mb-lg-4":"_mWWU1","pb-lg-4":"_gqGWe","mb-lg-5":"_ceycQ","pb-lg-5":"_RzNIh","mb-lg-6":"_VLMG4","pb-lg-6":"_-8-Aj","mb-lg-7":"_HBnRW","pb-lg-7":"_ZsIEk","mb-lg-8":"_bj2r5","pb-lg-8":"_cBnkL","mb-lg-9":"_w3001","pb-lg-9":"_Kua-7","mb-lg-10":"_wZKsF","pb-lg-10":"_GX-Wb","mx-lg-0":"_-G50w","px-lg-0":"_OTPQl","mx-lg-1":"_JJ9DD","px-lg-1":"_jedSl","mx-lg-2":"_n9zl3","px-lg-2":"_Cg-Eq","mx-lg-3":"_6ZhL3","px-lg-3":"_0oPYT","mx-lg-4":"_H9sE1","px-lg-4":"_aV3U2","mx-lg-5":"_Y2BNn","px-lg-5":"_EzRHI","mx-lg-6":"_fp9jU","px-lg-6":"_wghWL","mx-lg-7":"_zB5Qv","px-lg-7":"_gclTH","mx-lg-8":"_Qxq2x","px-lg-8":"_M7akr","mx-lg-9":"_Vfhs-","px-lg-9":"_Rv7m-","mx-lg-10":"_lni3U","px-lg-10":"_gdVVu","my-lg-0":"_rMuza","py-lg-0":"_MZopi","my-lg-1":"_Thq10","py-lg-1":"_BXQnr","my-lg-2":"_lHRe-","py-lg-2":"_6MiWj","my-lg-3":"_-vobr","py-lg-3":"_xtsGY","my-lg-4":"_m2hen","py-lg-4":"_-069Y","my-lg-5":"_nTHzp","py-lg-5":"_r4pes","my-lg-6":"_LTkTV","py-lg-6":"_13TOF","my-lg-7":"_Em859","py-lg-7":"_mJzVF","my-lg-8":"_T8EVh","py-lg-8":"_h2ol5","my-lg-9":"_T-LZJ","py-lg-9":"_QIrnZ","my-lg-10":"_EY0q7","py-lg-10":"_hvU2E","m-md-0":"_u8Not","p-md-0":"_PVgyV","m-md-1":"_y-q4l","p-md-1":"_7X2x6","m-md-2":"_r3IGF","p-md-2":"_abaFH","m-md-3":"_rH0Ca","p-md-3":"_m-V0R","m-md-4":"_NQj-k","p-md-4":"_xjGzA","m-md-5":"_41oza","p-md-5":"_cgf0Z","m-md-6":"_lelHI","p-md-6":"_2C8Oa","m-md-7":"_w1Eil","p-md-7":"_EtEzw","m-md-8":"_Q8a3D","p-md-8":"_5nsxA","m-md-9":"_LzOqJ","p-md-9":"_7LEzr","m-md-10":"_CRNVR","p-md-10":"_ClNNV","ml-md-0":"_3abXz","pl-md-0":"_7BRiC","ml-md-1":"_Jbe0V","pl-md-1":"_Ok-KV","ml-md-2":"_5SO4-","pl-md-2":"_IvJ88","ml-md-3":"_NWLcP","pl-md-3":"_XASwl","ml-md-4":"_La-jA","pl-md-4":"_M8vz7","ml-md-5":"_4UZJ3","pl-md-5":"_ikRMN","ml-md-6":"_GpxKA","pl-md-6":"_-vp4I","ml-md-7":"_qZisY","pl-md-7":"_UspU5","ml-md-8":"_xTqIg","pl-md-8":"_8LLNG","ml-md-9":"_u3Wi6","pl-md-9":"_yukVA","ml-md-10":"_BJ3Kb","pl-md-10":"_Ncx33","mr-md-0":"_-dCKD","pr-md-0":"_p4Xdb","mr-md-1":"_DZXj3","pr-md-1":"_YZLPN","mr-md-2":"_IEATr","pr-md-2":"_OGWz-","mr-md-3":"_UxMFq","pr-md-3":"_qMmI8","mr-md-4":"_KEt4t","pr-md-4":"_nLevO","mr-md-5":"_AMVPM","pr-md-5":"_3m10o","mr-md-6":"_fzrrj","pr-md-6":"_Wbjjj","mr-md-7":"_mZWrU","pr-md-7":"_mqIEB","mr-md-8":"_5p3E5","pr-md-8":"_NyrXd","mr-md-9":"_gez8y","pr-md-9":"_qLaJ8","mr-md-10":"_TR-zd","pr-md-10":"_SqjX-","mt-md-0":"_Okpug","pt-md-0":"_xIGF1","mt-md-1":"_kkttT","pt-md-1":"_6Fntk","mt-md-2":"_jjt3V","pt-md-2":"_MBCLj","mt-md-3":"_AcRpn","pt-md-3":"_9e4N3","mt-md-4":"_TEYLB","pt-md-4":"_G-b2b","mt-md-5":"_ADYmJ","pt-md-5":"_-PW2W","mt-md-6":"_IiBSh","pt-md-6":"_oOMKv","mt-md-7":"_LzMKR","pt-md-7":"_P93Fk","mt-md-8":"_ZPChR","pt-md-8":"_IjZLd","mt-md-9":"_OYWyj","pt-md-9":"_6VDq-","mt-md-10":"_NFUMl","pt-md-10":"_9N5Rs","mb-md-0":"_KNEZM","pb-md-0":"_dlRtG","mb-md-1":"_2TJCJ","pb-md-1":"_FYJz-","mb-md-2":"_p5q4o","pb-md-2":"_W20R5","mb-md-3":"_QMtNI","pb-md-3":"_X4ghG","mb-md-4":"_ROsHu","pb-md-4":"_LLz3c","mb-md-5":"_FKlov","pb-md-5":"_qQje5","mb-md-6":"_zHdHt","pb-md-6":"_7vH68","mb-md-7":"_5-25V","pb-md-7":"_a5Jzs","mb-md-8":"_9NPzr","pb-md-8":"_NpZZI","mb-md-9":"_F5182","pb-md-9":"_2SM3y","mb-md-10":"_R3bvz","pb-md-10":"_Sop9H","mx-md-0":"_OUA4d","px-md-0":"_s-0Qy","mx-md-1":"_cBeVb","px-md-1":"_34ZBT","mx-md-2":"_-dnuU","px-md-2":"_0-UrT","mx-md-3":"_CewFh","px-md-3":"_ZrFGb","mx-md-4":"_5Cvub","px-md-4":"_9CpfN","mx-md-5":"_O1iRv","px-md-5":"_dnUx0","mx-md-6":"_QmgAB","px-md-6":"_vP8Uq","mx-md-7":"_PcZ9w","px-md-7":"_5l4s3","mx-md-8":"_isOXv","px-md-8":"_cvHBA","mx-md-9":"_LIRJ0","px-md-9":"_09Gju","mx-md-10":"_b-TCB","px-md-10":"_5UoX8","my-md-0":"_wrYvU","py-md-0":"_Fwd2A","my-md-1":"_vBwvs","py-md-1":"_vl1f-","my-md-2":"_7g5va","py-md-2":"_D0JS-","my-md-3":"_8DN0N","py-md-3":"_qvNWl","my-md-4":"_o5Mnp","py-md-4":"_rFfbU","my-md-5":"_7XZDH","py-md-5":"_1B0Rr","my-md-6":"_s09ut","py-md-6":"_jnQRw","my-md-7":"_PgL1b","py-md-7":"_T4779","my-md-8":"_R0d0D","py-md-8":"_Fkri-","my-md-9":"_FM-XK","py-md-9":"_H-snR","my-md-10":"_Z49JP","py-md-10":"_01G-F","m-xl-0":"_H4Jyh","p-xl-0":"_WMtq9","m-xl-1":"_FeJPz","p-xl-1":"_00t3r","m-xl-2":"_svLno","p-xl-2":"_2C22I","m-xl-3":"_T5qYA","p-xl-3":"_dcbn0","m-xl-4":"_Xl89-","p-xl-4":"_Ctf-y","m-xl-5":"_ZWihS","p-xl-5":"_Lzig2","m-xl-6":"_jljvY","p-xl-6":"_X1owU","m-xl-7":"_l1myf","p-xl-7":"_T1fTP","m-xl-8":"_FWU16","p-xl-8":"_R2T50","m-xl-9":"_2TtzQ","p-xl-9":"_-142y","m-xl-10":"_975wG","p-xl-10":"_DPori","ml-xl-0":"_9Zc9q","pl-xl-0":"_On2x0","ml-xl-1":"_IryvS","pl-xl-1":"_J2DXA","ml-xl-2":"_S7cyp","pl-xl-2":"_YxNk9","ml-xl-3":"_6eyqg","pl-xl-3":"_cwyGU","ml-xl-4":"_TbIDB","pl-xl-4":"_JKpl8","ml-xl-5":"_P17BD","pl-xl-5":"_w8ccI","ml-xl-6":"_fUJPM","pl-xl-6":"_mgqKZ","ml-xl-7":"_p-Fn9","pl-xl-7":"_eMF8n","ml-xl-8":"_VO2-y","pl-xl-8":"_O9n-E","ml-xl-9":"_wqX4W","pl-xl-9":"_wDG35","ml-xl-10":"_-TNE-","pl-xl-10":"_jyfgf","mr-xl-0":"_9aQeC","pr-xl-0":"_zWCV0","mr-xl-1":"_vL8LJ","pr-xl-1":"_yA6nk","mr-xl-2":"_ZkYxH","pr-xl-2":"_-LN7c","mr-xl-3":"_WtPxc","pr-xl-3":"_Yn0F0","mr-xl-4":"_M1pzN","pr-xl-4":"_zX1qM","mr-xl-5":"_HWX7s","pr-xl-5":"_0jJWY","mr-xl-6":"_cG-JL","pr-xl-6":"_o2-cg","mr-xl-7":"_g0V5o","pr-xl-7":"_seBWS","mr-xl-8":"_1Rg0L","pr-xl-8":"_uZxYI","mr-xl-9":"_DJD2r","pr-xl-9":"_WXY42","mr-xl-10":"_-EWpt","pr-xl-10":"_W-0Oq","mt-xl-0":"_A3mxM","pt-xl-0":"_mG8-q","mt-xl-1":"_eSV7Q","pt-xl-1":"_9SJkd","mt-xl-2":"_mdspA","pt-xl-2":"_GloWk","mt-xl-3":"_Fn9WR","pt-xl-3":"_l5z5Q","mt-xl-4":"_J5EuO","pt-xl-4":"_z4jGH","mt-xl-5":"_SjIc3","pt-xl-5":"_inlrN","mt-xl-6":"_9iy8O","pt-xl-6":"_FGdNq","mt-xl-7":"_DNLb-","pt-xl-7":"_FDvwW","mt-xl-8":"_cB8Ua","pt-xl-8":"_sFRzN","mt-xl-9":"_iFCES","pt-xl-9":"_M8U3T","mt-xl-10":"_zrBn9","pt-xl-10":"_kYhdD","mb-xl-0":"_AVjLW","pb-xl-0":"_S2OiP","mb-xl-1":"_vnN5p","pb-xl-1":"_ukgJ7","mb-xl-2":"_wZjwy","pb-xl-2":"_rINJ4","mb-xl-3":"_MFAs1","pb-xl-3":"_BjtEQ","mb-xl-4":"_72dvy","pb-xl-4":"_bCnbX","mb-xl-5":"_Uyt6r","pb-xl-5":"_F3Ibd","mb-xl-6":"_iBLUD","pb-xl-6":"_yjY5Y","mb-xl-7":"_6TfYx","pb-xl-7":"_QdVWm","mb-xl-8":"_p-cIL","pb-xl-8":"_saIeH","mb-xl-9":"_Z3PUh","pb-xl-9":"_f8cy7","mb-xl-10":"_ndw2F","pb-xl-10":"_Yxkus","mx-xl-0":"_Bb6PX","px-xl-0":"_M5EOJ","mx-xl-1":"_iWwKY","px-xl-1":"_nWXZF","mx-xl-2":"_OCB5d","px-xl-2":"_GIqDO","mx-xl-3":"_mskG2","px-xl-3":"_-TVSP","mx-xl-4":"_rp-dc","px-xl-4":"_rfQsy","mx-xl-5":"_FgYNJ","px-xl-5":"_yA-K0","mx-xl-6":"_KJ12G","px-xl-6":"_gmhRk","mx-xl-7":"_XF8NS","px-xl-7":"_C0zhm","mx-xl-8":"_rOBd5","px-xl-8":"_FZf4w","mx-xl-9":"_GosX1","px-xl-9":"_zvpad","mx-xl-10":"_uU6kY","px-xl-10":"_XfRJ5","my-xl-0":"_zhez-","py-xl-0":"_-Dum7","my-xl-1":"_QvfIQ","py-xl-1":"_66V5-","my-xl-2":"_e84Sk","py-xl-2":"_pOej1","my-xl-3":"_uv8an","py-xl-3":"_6iY-g","my-xl-4":"_Ur6W4","py-xl-4":"_JPq7T","my-xl-5":"_3GKlh","py-xl-5":"_Gcnsl","my-xl-6":"_JrBH1","py-xl-6":"_IP0ND","my-xl-7":"_7BzpU","py-xl-7":"_BIUqI","my-xl-8":"_mZ-p0","py-xl-8":"_Sdn5j","my-xl-9":"_P3V1N","py-xl-9":"_Z9lbF","my-xl-10":"_VAfcF","py-xl-10":"_X4Bq6","background-shine":"_361tW","path":"_qtb88","line":"_XQ9Yw","skeleton":"_BQ0X7","skeleton-animate":"_vEv3B","skeleton-dark":"_l5qsf","skeleton-dark-animate":"_yk159","skeleton-transparent":"_857E4","skeleton-transparent-animate":"_RzhIE","semi-transparent":"_LacS6","no-margins":"_bmB3S","dots":"_5kMd-","colored":"_-lTGD","small":"_GTU1q","extra-small":"_BEmi7","align-left":"_HuG6N","align-right":"_U3h5U"};
1164
+
1165
+ /**
1166
+ * LoadingDots Component - Displays a loading animation with dots.
1167
+ * This component allows customization of size, color, margins, and alignment.
1168
+ *
1169
+ * @component
1170
+ * @param {Object} props - The props of the component.
1171
+ * @param {('big'|'small'|'extra-small')} [props.size='small'] - Sets the size of the loading dots.
1172
+ * @param {boolean} [props.isColored=false] - If true, the dots will be colored, otherwise they will be monochrome.
1173
+ * @param {boolean} [props.noMargins=false] - If true, removes the margins around the loading dots.
1174
+ * @param {(boolean|'left'|'right')} [props.align=false] - Aligns the loading dots to the left or right if specified, otherwise centered.
1175
+ * @returns {React.ReactElement} A React component that renders the loading dots animation.
1176
+ */
1177
+ var LoadingDots = function LoadingDots(_ref) {
1178
+ var _ref$size = _ref.size,
1179
+ size = _ref$size === void 0 ? "small" : _ref$size,
1180
+ _ref$isColored = _ref.isColored,
1181
+ isColored = _ref$isColored === void 0 ? false : _ref$isColored,
1182
+ _ref$noMargins = _ref.noMargins,
1183
+ noMargins = _ref$noMargins === void 0 ? false : _ref$noMargins,
1184
+ _ref$align = _ref.align,
1185
+ align = _ref$align === void 0 ? false : _ref$align;
1186
+ return /*#__PURE__*/React__default["default"].createElement("div", {
1187
+ className: styles["loading-dots"] + " " + styles[size] + " " + (noMargins ? " " + styles["no-margins"] : "") + " " + (align ? styles["align-" + align] : "")
1188
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
1189
+ className: styles.dot + " " + (isColored ? " " + styles.colored : "")
1190
+ }), /*#__PURE__*/React__default["default"].createElement("div", {
1191
+ className: styles.dot + " " + (isColored ? " " + styles.colored : "")
1192
+ }), /*#__PURE__*/React__default["default"].createElement("div", {
1193
+ className: styles.dot + " " + (isColored ? " " + styles.colored : "")
1194
+ }));
1195
+ };
1196
+ LoadingDots.propTypes = {
1197
+ size: PropTypes.oneOf(["big", "small", "extra-small"]),
1198
+ isColored: PropTypes.bool,
1199
+ noMargins: PropTypes.bool,
1200
+ align: PropTypes.oneOfType([PropTypes.oneOf(["left", "right"]), PropTypes.bool])
1201
+ };
1202
+
1203
+ /**
1204
+ * Button component - A versatile and customizable button for React applications.
1205
+ * It supports various sizes, styles, and functionalities, including loaders, icons, and handling of click events.
1206
+ * This component can also be used as a link if "to" is provided.
1207
+ *
1208
+ * @component
1209
+ * @param {Object} props
1210
+ * @param {('xl'|'lg'|'md'|'sm')} [props.size='xl'] - Sets the size of the button.
1211
+ * @param {string} [props.className=''] - An optional custom CSS class name for additional styling.
1212
+ * @param {string} [props.mode='transparent'] - Determines the button's visual style.
1213
+ * @param {Function} [props.onClick=(resetButtonLoader, event) => {}] - Callback function that triggers on button click.
1214
+ * @param {boolean} [props.loader=true] - If true, displays a loader animation on the button when clicked.
1215
+ * @param {boolean} [props.loading=false] - Controls the actual display of the loader if `loader` is true.
1216
+ * @param {string} [props.to=''] - The path for the button to act as a link.
1217
+ * @param {boolean} [props.fullWidthOnMobiles=false] - Expands the button to full width on mobiles.
1218
+ * @param {boolean} [props.fullWidthOnTablets=false] - Expands the button to full width on tablets.
1219
+ * @param {string} [props.icon=''] - The path to the button's icon.
1220
+ * @param {React.ReactNode} [props.content=''] - The text or content displayed inside the button.
1221
+ * @param {boolean} [props.isDisabled=false] - Disables the button if true.
1222
+ * @param {Function} [props.setClickTrigger=(p) => {}] - Function to programmatically trigger a button click.
1223
+ * @param {boolean} [props.isFormSubmittingButton=false] - If true, adds a hidden `<input type="submit">`.
1224
+ * @param {boolean} [props.bigIcon=false] - If true, displays a larger icon on the button.
1225
+ * @param {boolean} [props.checkmarkOnClick=false] - Shows a checkmark instead of content for a few seconds after click.
1226
+ * @param {boolean} [props.propagatePrimaryButtonClick=true] - Propagates the primary button click event if true.
1227
+ * @param {boolean} [props.smallPaddingOnSmallMobiles=false] - Enables smaller paddings for extra-small screen sizes.
1228
+ * @param {Function} [props.handleError=(func) => func()] - Function to handle errors during button click events.
1229
+ * @returns {React.ReactElement}
1230
+ */
1231
+ var Button = function Button(_ref) {
1232
+ var _ref$size = _ref.size,
1233
+ size = _ref$size === void 0 ? "xl" : _ref$size,
1234
+ _ref$className = _ref.className,
1235
+ className = _ref$className === void 0 ? "" : _ref$className,
1236
+ _ref$mode = _ref.mode,
1237
+ mode = _ref$mode === void 0 ? "transparent" : _ref$mode,
1238
+ _ref$onClick = _ref.onClick,
1239
+ onClick = _ref$onClick === void 0 ? function (resetButtonLoader, event) {} : _ref$onClick,
1240
+ _ref$loader = _ref.loader,
1241
+ loader = _ref$loader === void 0 ? true : _ref$loader,
1242
+ _ref$loading = _ref.loading,
1243
+ loading = _ref$loading === void 0 ? false : _ref$loading,
1244
+ _ref$to = _ref.to,
1245
+ to = _ref$to === void 0 ? "" : _ref$to,
1246
+ _ref$fullWidthOnMobil = _ref.fullWidthOnMobiles,
1247
+ fullWidthOnMobiles = _ref$fullWidthOnMobil === void 0 ? false : _ref$fullWidthOnMobil,
1248
+ _ref$fullWidthOnTable = _ref.fullWidthOnTablets,
1249
+ fullWidthOnTablets = _ref$fullWidthOnTable === void 0 ? false : _ref$fullWidthOnTable,
1250
+ _ref$icon = _ref.icon,
1251
+ icon = _ref$icon === void 0 ? "" : _ref$icon,
1252
+ _ref$content = _ref.content,
1253
+ content = _ref$content === void 0 ? "" : _ref$content,
1254
+ _ref$isDisabled = _ref.isDisabled,
1255
+ isDisabled = _ref$isDisabled === void 0 ? false : _ref$isDisabled,
1256
+ _ref$setClickTrigger = _ref.setClickTrigger,
1257
+ setClickTrigger = _ref$setClickTrigger === void 0 ? function (p) {} : _ref$setClickTrigger,
1258
+ _ref$isFormSubmitting = _ref.isFormSubmittingButton,
1259
+ isFormSubmittingButton = _ref$isFormSubmitting === void 0 ? false : _ref$isFormSubmitting,
1260
+ _ref$bigIcon = _ref.bigIcon,
1261
+ bigIcon = _ref$bigIcon === void 0 ? false : _ref$bigIcon,
1262
+ _ref$checkmarkOnClick = _ref.checkmarkOnClick,
1263
+ checkmarkOnClick = _ref$checkmarkOnClick === void 0 ? false : _ref$checkmarkOnClick,
1264
+ _ref$propagatePrimary = _ref.propagatePrimaryButtonClick,
1265
+ propagatePrimaryButtonClick = _ref$propagatePrimary === void 0 ? true : _ref$propagatePrimary,
1266
+ _ref$smallPaddingOnSm = _ref.smallPaddingOnSmallMobiles,
1267
+ smallPaddingOnSmallMobiles = _ref$smallPaddingOnSm === void 0 ? false : _ref$smallPaddingOnSm,
1268
+ _ref$handleError = _ref.handleError,
1269
+ handleError = _ref$handleError === void 0 ? function (func, event) {
1270
+ return func(event);
1271
+ } : _ref$handleError;
1272
+ var _useState = React.useState(loading),
1273
+ isLoading = _useState[0],
1274
+ setIsLoading = _useState[1];
1275
+ var _useState2 = React.useState(false),
1276
+ isCheckShown = _useState2[0],
1277
+ setIsCheckShown = _useState2[1];
1278
+ var _useState3 = React.useState(null),
1279
+ event = _useState3[0],
1280
+ setEvent = _useState3[1];
1281
+ var buttonRef = React.useRef();
1282
+ React.useEffect(function () {
1283
+ setClickTrigger(function () {
1284
+ return buttonRef.current.click();
1285
+ });
1286
+ // eslint-disable-next-line react-hooks/exhaustive-deps
1287
+ }, [buttonRef]);
1288
+ React.useEffect(function () {
1289
+ if (isLoading) {
1290
+ onClick(function () {
1291
+ return setIsLoading(false);
1292
+ }, event);
1293
+ }
1294
+ // eslint-disable-next-line react-hooks/exhaustive-deps
1295
+ }, [isLoading]);
1296
+ var buttonClick = function buttonClick(e) {
1297
+ if (isLoading || isDisabled) {
1298
+ return false;
1299
+ }
1300
+ if (checkmarkOnClick && !isCheckShown && !loader && !loading) {
1301
+ setIsCheckShown(true);
1302
+ setTimeout(function () {
1303
+ setIsCheckShown(false);
1304
+ }, 2000);
1305
+ }
1306
+ e.persist(); // Persisting React's SyntheticEvent to be able to use it in any async context
1307
+ !propagatePrimaryButtonClick && e.stopPropagation();
1308
+ if (loader) {
1309
+ setIsLoading(true);
1310
+ setEvent(e);
1311
+ } else {
1312
+ onClick(function () {
1313
+ return setIsLoading(false);
1314
+ }, e);
1315
+ }
1316
+ };
1317
+ var classNames = styles$1.button + " " + styles$1[size] + " " + styles$1[className] + " " + styles$1[mode] + (fullWidthOnMobiles ? " " + styles$1["full-width-on-mobiles"] : "") + (fullWidthOnTablets ? " " + styles$1["full-width-on-tablets"] : "") + (isDisabled ? " " + styles$1.disable : "") + (smallPaddingOnSmallMobiles ? " " + styles$1["small-padding-on-small-mobiles"] : "");
1318
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, isFormSubmittingButton ? /*#__PURE__*/React__default["default"].createElement("input", {
1319
+ type: "submit",
1320
+ hidden: true
1321
+ }) : null, to ? /*#__PURE__*/React__default["default"].createElement("a", {
1322
+ className: classNames,
1323
+ onClick: function onClick(e) {
1324
+ return handleError(buttonClick, e);
1325
+ },
1326
+ href: to,
1327
+ ref: buttonRef
1328
+ }, icon ? /*#__PURE__*/React__default["default"].createElement("div", {
1329
+ className: styles$1["button-with-icon"] + (bigIcon ? " " + styles$1["big-icon"] : "")
1330
+ }, /*#__PURE__*/React__default["default"].createElement("img", {
1331
+ src: icon,
1332
+ alt: "button icon"
1333
+ }), /*#__PURE__*/React__default["default"].createElement("span", {
1334
+ className: styles$1["button-with-icon-text"]
1335
+ }, content)) : content) : /*#__PURE__*/React__default["default"].createElement("div", {
1336
+ className: classNames,
1337
+ onClick: function onClick(e) {
1338
+ return handleError(buttonClick, e);
1339
+ },
1340
+ ref: buttonRef
1341
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
1342
+ className: styles$1["button-primary-dots-wrapper"] + " " + (isLoading && loader ? styles$1.show : "")
1343
+ }, loader && isLoading ? /*#__PURE__*/React__default["default"].createElement(LoadingDots, {
1344
+ isColored: mode === "white"
1345
+ }) : null), /*#__PURE__*/React__default["default"].createElement("div", {
1346
+ className: styles$1["button-success-icon"] + " " + styles$1[mode] + " " + (isCheckShown ? styles$1["show"] : "")
1347
+ }), icon ? /*#__PURE__*/React__default["default"].createElement("div", {
1348
+ className: styles$1["button-with-icon"] + " " + (isLoading && loader || checkmarkOnClick && isCheckShown ? styles$1["hide"] : "") + " " + (bigIcon ? styles$1["big-icon"] : "")
1349
+ }, /*#__PURE__*/React__default["default"].createElement("img", {
1350
+ src: icon,
1351
+ alt: "button icon"
1352
+ }), /*#__PURE__*/React__default["default"].createElement("span", {
1353
+ className: styles$1["button-with-icon-text"]
1354
+ }, content)) : /*#__PURE__*/React__default["default"].createElement("span", {
1355
+ className: styles$1["button-text"] + " " + (isLoading && loader || checkmarkOnClick && isCheckShown ? styles$1["hide"] : "")
1356
+ }, content)));
1357
+ };
1358
+ Button.propTypes = {
1359
+ size: PropTypes.oneOf(["xl", "lg", "md", "sm"]),
1360
+ className: PropTypes.string,
1361
+ mode: PropTypes.oneOf(["transparent", "white", "white-flat", "primary", "primary-bordered", "primary-transparent", "transparent-bordered", "transparent-without-shadow"]),
1362
+ onClick: PropTypes.func,
1363
+ loader: PropTypes.bool,
1364
+ loading: PropTypes.bool,
1365
+ to: PropTypes.string,
1366
+ fullWidthOnMobiles: PropTypes.bool,
1367
+ fullWidthOnTablets: PropTypes.bool,
1368
+ icon: PropTypes.string,
1369
+ content: PropTypes.node,
1370
+ isDisabled: PropTypes.bool,
1371
+ setClickTrigger: PropTypes.func,
1372
+ isFormSubmittingButton: PropTypes.bool,
1373
+ bigIcon: PropTypes.bool,
1374
+ checkmarkOnClick: PropTypes.bool,
1375
+ propagatePrimaryButtonClick: PropTypes.bool,
1376
+ smallPaddingOnSmallMobiles: PropTypes.bool,
1377
+ handleError: PropTypes.func
1378
+ };
1379
+ Button.defaultProps = {
1380
+ size: "xl",
1381
+ className: "",
1382
+ mode: "transparent",
1383
+ onClick: function onClick(resetButtonLoader, event) {},
1384
+ loader: true,
1385
+ loading: false,
1386
+ to: "",
1387
+ fullWidthOnMobiles: false,
1388
+ fullWidthOnTablets: false,
1389
+ icon: "",
1390
+ content: "",
1391
+ isDisabled: false,
1392
+ setClickTrigger: function setClickTrigger(p) {},
1393
+ isFormSubmittingButton: false,
1394
+ bigIcon: false,
1395
+ checkmarkOnClick: false,
1396
+ propagatePrimaryButtonClick: true,
1397
+ smallPaddingOnSmallMobiles: false,
1398
+ handleError: function handleError(func) {
1399
+ return func();
1400
+ }
1401
+ };
1402
+
1403
+ var SupportChat = function SupportChat(_ref) {
1404
+ var url = _ref.url,
1405
+ websiteToken = _ref.websiteToken,
1406
+ _ref$welcomeMessage = _ref.welcomeMessage,
1407
+ welcomeMessage = _ref$welcomeMessage === void 0 ? "" : _ref$welcomeMessage;
1408
+ React.useEffect(function () {
1409
+ window.chatwootSettings = {
1410
+ position: "right",
1411
+ type: "standard",
1412
+ launcherTitle: welcomeMessage
1413
+ };
1414
+ (function (d, t) {
1415
+ var BASE_URL = url;
1416
+ var g = d.createElement(t),
1417
+ s = d.getElementsByTagName(t)[0];
1418
+ g.src = BASE_URL + "/packs/js/sdk.js";
1419
+ g.defer = true;
1420
+ g.async = true;
1421
+ s.parentNode.insertBefore(g, s);
1422
+ g.onload = function () {
1423
+ window.chatwootSDK.run({
1424
+ websiteToken: websiteToken,
1425
+ baseUrl: BASE_URL
1426
+ });
1427
+ };
1428
+ })(document, "script");
1429
+ // eslint-disable-next-line react-hooks/exhaustive-deps
1430
+ }, []);
1431
+ return null;
1432
+ };
1433
+ SupportChat.propTypes = {
1434
+ url: PropTypes.string.isRequired,
1435
+ websiteToken: PropTypes.string.isRequired,
1436
+ welcomeMessage: PropTypes.string
1437
+ };
1438
+ SupportChat.defaultProps = {
1439
+ welcomeMessage: ""
1440
+ };
1441
+
1442
+ var s = {"container":"_DYS-g","m-0":"_85R9d","p-0":"_wi0-U","m-1":"_YoewO","p-1":"_vuJBW","m-2":"_ruaYI","p-2":"_dO-cg","m-3":"_3Oh59","p-3":"_x4uSr","m-4":"_zN8us","p-4":"_rjv4I","m-5":"_5T1F-","p-5":"_-nWHT","m-6":"_Skgdf","p-6":"_Oux4z","m-7":"_yKPSq","p-7":"_sOsqF","m-8":"_8EoDT","p-8":"_G4M7b","m-9":"_ZZJBC","p-9":"_2PU3N","m-10":"_XRmXO","p-10":"_lhLN8","ml-0":"_SIynD","pl-0":"_VCLgc","ml-1":"_9vhMT","pl-1":"_4O5ig","ml-2":"_f1saV","pl-2":"_sHxk9","ml-3":"_kiltH","pl-3":"_jUw5Z","ml-4":"_CF1wj","pl-4":"_eXCZ1","ml-5":"_HZlH9","pl-5":"_6xbwv","ml-6":"_jNpyz","pl-6":"_k5lHk","ml-7":"_LgB9F","pl-7":"_ol9Tb","ml-8":"_I25tR","pl-8":"_TN4dc","ml-9":"_ywWxC","pl-9":"_4UsSQ","ml-10":"_9rfct","pl-10":"_LoViP","mr-0":"_-1PzO","pr-0":"_Ekco3","mr-1":"_EfRd0","pr-1":"_GspC-","mr-2":"_91QSK","pr-2":"_dU7Vb","mr-3":"_tW92i","pr-3":"_qNnnG","mr-4":"_XC1FW","pr-4":"_09RVw","mr-5":"_I4KRh","pr-5":"_eag2b","mr-6":"_E-KDc","pr-6":"_0d7JN","mr-7":"_9GUd-","pr-7":"_5Jseh","mr-8":"_Z-z3u","pr-8":"_rjPRa","mr-9":"_R2d68","pr-9":"_YI-lc","mr-10":"_ORX-B","pr-10":"_F5ib8","mt-0":"_OAl4b","pt-0":"_iJ5QU","mt-1":"_x72-c","pt-1":"_DGuKS","mt-2":"_ZYCC4","pt-2":"_6oj3E","mt-3":"_ADXHX","pt-3":"_asJoO","mt-4":"_Bz8Hu","pt-4":"_N7CCb","mt-5":"_OyQQ8","pt-5":"_C46Cf","mt-6":"_Bfrcj","pt-6":"_NN4sF","mt-7":"_RWFV0","pt-7":"_zUauA","mt-8":"_v7txm","pt-8":"_qgvMl","mt-9":"_9s32w","pt-9":"_aJZt7","mt-10":"_feBhr","pt-10":"_EfI4E","mb-0":"_RUzt9","pb-0":"_0Zjn8","mb-1":"_EmcPj","pb-1":"_zuqTv","mb-2":"_jYcdG","pb-2":"_fjMa6","mb-3":"_Lcgzu","pb-3":"_MHHa3","mb-4":"_Aoo0-","pb-4":"_B1ap3","mb-5":"_xdjCc","pb-5":"_lnrC3","mb-6":"_TFmkS","pb-6":"_YNj2R","mb-7":"_i0-JZ","pb-7":"_qSvSL","mb-8":"_7ziqB","pb-8":"_W-Cdi","mb-9":"_lUUVq","pb-9":"_LrgoL","mb-10":"_xX8mu","pb-10":"_DU6C6","mx-0":"_71D1Q","px-0":"_U8dyv","mx-1":"_2VhDN","px-1":"_d8Tlo","mx-2":"_uDkn4","px-2":"_a6Z6h","mx-3":"_W9yqm","px-3":"_MCbca","mx-4":"_sIDVk","px-4":"_wZ8Qz","mx-5":"_-6tEi","px-5":"_8vfpL","mx-6":"_mbXa9","px-6":"_LcSh5","mx-7":"_mF9-c","px-7":"_TfjhQ","mx-8":"_RG7wu","px-8":"_19Sdb","mx-9":"_JkKgx","px-9":"_Ir3LH","mx-10":"_70tWA","px-10":"_d1BrW","my-0":"_0PauS","py-0":"_FP0FE","my-1":"_znn6s","py-1":"_-FHoU","my-2":"_EqZco","py-2":"_fuTfe","my-3":"_D2LQ5","py-3":"_YWhnK","my-4":"_kCXTL","py-4":"_j1vj6","my-5":"_naEoR","py-5":"_QK3Z-","my-6":"_L1TOy","py-6":"_dQH-e","my-7":"_sVZ3Y","py-7":"_Fi779","my-8":"_1mAkX","py-8":"_yTTVv","my-9":"_jCeMV","py-9":"_qfn2C","my-10":"_eqneu","py-10":"_Atu-j","m-sm-0":"_hsKWE","p-sm-0":"_j3m-2","m-sm-1":"_NQOee","p-sm-1":"_sB5mJ","m-sm-2":"_KivoH","p-sm-2":"_YjE2j","m-sm-3":"_kObhZ","p-sm-3":"_TDlKW","m-sm-4":"_aJWH3","p-sm-4":"_Vntgp","m-sm-5":"_k-Hjs","p-sm-5":"_mJt7k","m-sm-6":"_Yxxob","p-sm-6":"_E5a-A","m-sm-7":"_M1OJO","p-sm-7":"_-5OJr","m-sm-8":"_UYrWD","p-sm-8":"_FJeV6","m-sm-9":"_DosWW","p-sm-9":"_T9yES","m-sm-10":"_tLYqH","p-sm-10":"_5dbE7","ml-sm-0":"_PM9wP","pl-sm-0":"_0Eoi7","ml-sm-1":"_Mb-hF","pl-sm-1":"_n4rCF","ml-sm-2":"_JJgiX","pl-sm-2":"_WOdAR","ml-sm-3":"_umhPB","pl-sm-3":"_tETqx","ml-sm-4":"_PQ088","pl-sm-4":"_ON2pV","ml-sm-5":"_IrMTT","pl-sm-5":"_12IZU","ml-sm-6":"_s8vHJ","pl-sm-6":"_9Od-S","ml-sm-7":"_4uuhE","pl-sm-7":"_TTrnJ","ml-sm-8":"_6TEO5","pl-sm-8":"_ZEPSH","ml-sm-9":"_I05iS","pl-sm-9":"_F5rHi","ml-sm-10":"_AJZ2R","pl-sm-10":"_zgudu","mr-sm-0":"_AD7v0","pr-sm-0":"_katlS","mr-sm-1":"_RMNwS","pr-sm-1":"_SC0VS","mr-sm-2":"_YFbee","pr-sm-2":"_I2cqm","mr-sm-3":"_KJzfk","pr-sm-3":"_aDNge","mr-sm-4":"_ERg9u","pr-sm-4":"_wlgHy","mr-sm-5":"_spxY0","pr-sm-5":"_pAEEu","mr-sm-6":"_HM7Z6","pr-sm-6":"_rf9My","mr-sm-7":"_b-V6W","pr-sm-7":"_YFXWV","mr-sm-8":"_96NiE","pr-sm-8":"_0ynKz","mr-sm-9":"_9NqL0","pr-sm-9":"_ZEN2v","mr-sm-10":"_oxmC7","pr-sm-10":"_AsAlz","mt-sm-0":"_Yl8e7","pt-sm-0":"_fkSmd","mt-sm-1":"_l4X69","pt-sm-1":"_i7WdP","mt-sm-2":"_ggYWK","pt-sm-2":"_3-z2g","mt-sm-3":"_IzZ-y","pt-sm-3":"_c3PEq","mt-sm-4":"_BbTvo","pt-sm-4":"_iAXVy","mt-sm-5":"_RNscW","pt-sm-5":"_7dHkj","mt-sm-6":"_iKCRS","pt-sm-6":"_an673","mt-sm-7":"_1Atcr","pt-sm-7":"_KA-HC","mt-sm-8":"_45ifh","pt-sm-8":"_26wBi","mt-sm-9":"_VaqUk","pt-sm-9":"_cx10Q","mt-sm-10":"_83RI-","pt-sm-10":"_vTZq7","mb-sm-0":"_IDhal","pb-sm-0":"_3IjzN","mb-sm-1":"_sjxoK","pb-sm-1":"_fmWwG","mb-sm-2":"_GNlxw","pb-sm-2":"_r3zJV","mb-sm-3":"_FFWRt","pb-sm-3":"_arvvr","mb-sm-4":"_qaIKp","pb-sm-4":"_wSca9","mb-sm-5":"_-cXAZ","pb-sm-5":"_grIUD","mb-sm-6":"_PUPyR","pb-sm-6":"_nA8VL","mb-sm-7":"_t7JYD","pb-sm-7":"_OpbJn","mb-sm-8":"_x1wdN","pb-sm-8":"_3Z-mA","mb-sm-9":"_BPrSY","pb-sm-9":"_b-NQ7","mb-sm-10":"_lSN9Q","pb-sm-10":"_E7xwy","mx-sm-0":"_-cSXk","px-sm-0":"_VlISI","mx-sm-1":"_6derN","px-sm-1":"_in01f","mx-sm-2":"_nskhZ","px-sm-2":"_Thnqg","mx-sm-3":"_xR8rV","px-sm-3":"_zUOaf","mx-sm-4":"_0c-bw","px-sm-4":"_X-g0R","mx-sm-5":"_p3iVv","px-sm-5":"_RdgSR","mx-sm-6":"_vK8xL","px-sm-6":"_xGpLP","mx-sm-7":"_uvb2q","px-sm-7":"_YvDjG","mx-sm-8":"_8nvEy","px-sm-8":"_L3gRg","mx-sm-9":"_pRh4Y","px-sm-9":"_5yig0","mx-sm-10":"_syXdz","px-sm-10":"_TfV9e","my-sm-0":"_WXfoP","py-sm-0":"_SBx-N","my-sm-1":"_dPEq6","py-sm-1":"_UrxQl","my-sm-2":"_ULvTZ","py-sm-2":"_I4Sll","my-sm-3":"_YVvfW","py-sm-3":"_9qflx","my-sm-4":"_j4ltv","py-sm-4":"_u-NN2","my-sm-5":"_mC1LQ","py-sm-5":"_6Wcc2","my-sm-6":"_eE8rw","py-sm-6":"_AeFpW","my-sm-7":"_CAnzA","py-sm-7":"_7h-Vs","my-sm-8":"_Z9Aft","py-sm-8":"_Ww8LU","my-sm-9":"_3sbBd","py-sm-9":"_ZcdCh","my-sm-10":"_PGBDh","py-sm-10":"_i6Fc2","m-lg-0":"_PkOb8","p-lg-0":"_3UpkE","m-lg-1":"_nCbz9","p-lg-1":"_1lThO","m-lg-2":"_ARtYq","p-lg-2":"_vHeBX","m-lg-3":"_cpKBp","p-lg-3":"_n-7p1","m-lg-4":"_1bWgj","p-lg-4":"_niPSW","m-lg-5":"_T9s09","p-lg-5":"_OS1Yy","m-lg-6":"_GvZeA","p-lg-6":"_8cgsA","m-lg-7":"_d0oC7","p-lg-7":"_TuBYJ","m-lg-8":"_slAc2","p-lg-8":"_ay3FH","m-lg-9":"_r3-kR","p-lg-9":"_IuC-U","m-lg-10":"_9P6I9","p-lg-10":"_RUR7-","ml-lg-0":"_xf3wx","pl-lg-0":"_Q-8ZY","ml-lg-1":"_4tg9Q","pl-lg-1":"_2rsuI","ml-lg-2":"_-YU8G","pl-lg-2":"_Eds1N","ml-lg-3":"_tD4RQ","pl-lg-3":"_R0Rk2","ml-lg-4":"_pZcNJ","pl-lg-4":"_5jvIR","ml-lg-5":"_sjk-4","pl-lg-5":"_RwLHv","ml-lg-6":"_dyXyT","pl-lg-6":"_nVLAC","ml-lg-7":"_FPuf8","pl-lg-7":"_M5bYC","ml-lg-8":"_Uet9k","pl-lg-8":"_UrAQv","ml-lg-9":"_VPraG","pl-lg-9":"_8HJkV","ml-lg-10":"_ILHbQ","pl-lg-10":"_QaxaT","mr-lg-0":"_2QrJI","pr-lg-0":"_0XJPD","mr-lg-1":"_qSATY","pr-lg-1":"_fzyzB","mr-lg-2":"_pY4IE","pr-lg-2":"_lc7Gu","mr-lg-3":"_KeRuW","pr-lg-3":"_zc2cu","mr-lg-4":"_RvxVY","pr-lg-4":"_v5XDn","mr-lg-5":"_Kipoo","pr-lg-5":"_K-vHR","mr-lg-6":"_1nl-K","pr-lg-6":"_nVUH-","mr-lg-7":"_M1Ue1","pr-lg-7":"_B75ua","mr-lg-8":"_CmlKz","pr-lg-8":"_FnY12","mr-lg-9":"_8-uRA","pr-lg-9":"_1DG22","mr-lg-10":"_vzMQh","pr-lg-10":"_2iqul","mt-lg-0":"_1eCp-","pt-lg-0":"_ucRUw","mt-lg-1":"_9YQ4e","pt-lg-1":"_pzmV0","mt-lg-2":"_1Z7OF","pt-lg-2":"_FUFhX","mt-lg-3":"_HPI-W","pt-lg-3":"_NwVgV","mt-lg-4":"_duZYq","pt-lg-4":"_h0NfP","mt-lg-5":"_sszGU","pt-lg-5":"_nNi-i","mt-lg-6":"_YYWl4","pt-lg-6":"_rqDrl","mt-lg-7":"_MmkeY","pt-lg-7":"_TZx0T","mt-lg-8":"_mdoth","pt-lg-8":"_2pGPR","mt-lg-9":"_csumg","pt-lg-9":"_BIWSR","mt-lg-10":"_TN07y","pt-lg-10":"_ojQGh","mb-lg-0":"_eXETo","pb-lg-0":"_FeL5F","mb-lg-1":"_Zc1bw","pb-lg-1":"_34sNS","mb-lg-2":"_2XgD-","pb-lg-2":"_OTB4o","mb-lg-3":"_xJ4EC","pb-lg-3":"_-Uc7P","mb-lg-4":"_thqbO","pb-lg-4":"_lqHuw","mb-lg-5":"_gDmAe","pb-lg-5":"_zAiLu","mb-lg-6":"_96HP2","pb-lg-6":"_TCehU","mb-lg-7":"_1Guas","pb-lg-7":"_vn7-Z","mb-lg-8":"_Cc-m8","pb-lg-8":"_dbCuX","mb-lg-9":"_U5Qon","pb-lg-9":"_b54cM","mb-lg-10":"_cGYyA","pb-lg-10":"_U5qus","mx-lg-0":"_TDPp0","px-lg-0":"_hUlWn","mx-lg-1":"_uh5DO","px-lg-1":"_N8r0e","mx-lg-2":"_vsfWJ","px-lg-2":"_LaBP6","mx-lg-3":"_JxquV","px-lg-3":"_Tb8mk","mx-lg-4":"_wDKd1","px-lg-4":"_lIguL","mx-lg-5":"_RSd-x","px-lg-5":"_Mdf1f","mx-lg-6":"_uvK2D","px-lg-6":"_4k20p","mx-lg-7":"_iXTh7","px-lg-7":"_W2faz","mx-lg-8":"_HHM9t","px-lg-8":"_n54Rq","mx-lg-9":"_douwI","px-lg-9":"_KWSHJ","mx-lg-10":"_L-r4v","px-lg-10":"_qeSLU","my-lg-0":"_U9qcF","py-lg-0":"_sSD4U","my-lg-1":"_vNl2c","py-lg-1":"_Cfkag","my-lg-2":"_gVDuB","py-lg-2":"_FwQsB","my-lg-3":"_oiJaa","py-lg-3":"_FASGS","my-lg-4":"_va2Tm","py-lg-4":"_EPTkJ","my-lg-5":"_jvYOP","py-lg-5":"_NTxiG","my-lg-6":"_8Y7Xj","py-lg-6":"_Nrsd7","my-lg-7":"_-e9e5","py-lg-7":"_NOh2l","my-lg-8":"_nyCDl","py-lg-8":"_fpL5p","my-lg-9":"_BbcqH","py-lg-9":"_VlI3L","my-lg-10":"_OGNmd","py-lg-10":"_Q-3bw","m-md-0":"_P6WIc","p-md-0":"_3YuAI","m-md-1":"_VwK3z","p-md-1":"_ArFsR","m-md-2":"_5Hp7o","p-md-2":"_-R4rJ","m-md-3":"_J55VC","p-md-3":"_TxlAj","m-md-4":"_FHPQG","p-md-4":"_iZW10","m-md-5":"_Kiuiv","p-md-5":"_0Qiry","m-md-6":"_Ja9dp","p-md-6":"_GBAS-","m-md-7":"_uuE4u","p-md-7":"_kAuu-","m-md-8":"_CaU4W","p-md-8":"_GbyMJ","m-md-9":"_brWmN","p-md-9":"_-1z0O","m-md-10":"_dIML4","p-md-10":"_eJliD","ml-md-0":"_nuVMQ","pl-md-0":"_PCyiw","ml-md-1":"_NX2qp","pl-md-1":"_yJ39l","ml-md-2":"_BV1WB","pl-md-2":"_x24YX","ml-md-3":"_kvTBw","pl-md-3":"_7G7wo","ml-md-4":"_s1oaO","pl-md-4":"_nTHBq","ml-md-5":"_2AyzN","pl-md-5":"_VmocP","ml-md-6":"_QEhdf","pl-md-6":"_Ywy9t","ml-md-7":"_Mybnc","pl-md-7":"_zHudI","ml-md-8":"_AT4F-","pl-md-8":"_1-CLq","ml-md-9":"_cZ0UL","pl-md-9":"_AKT8q","ml-md-10":"_uo54H","pl-md-10":"_2Edrz","mr-md-0":"_8NtcB","pr-md-0":"_BN5kR","mr-md-1":"_hIIXR","pr-md-1":"_KWi0C","mr-md-2":"_kP9GD","pr-md-2":"_fo1s0","mr-md-3":"_ptgO9","pr-md-3":"_AIGLm","mr-md-4":"_GJNi6","pr-md-4":"_-ZfQA","mr-md-5":"_hW-OG","pr-md-5":"_ePqmc","mr-md-6":"_ghuDl","pr-md-6":"_C9rlZ","mr-md-7":"_bIHB6","pr-md-7":"_xPHzJ","mr-md-8":"_6ZssD","pr-md-8":"_-N-QR","mr-md-9":"_T-XzG","pr-md-9":"_k8hdA","mr-md-10":"_26xvU","pr-md-10":"_U6Fpn","mt-md-0":"_ZIFgT","pt-md-0":"_6JBhp","mt-md-1":"_lIu84","pt-md-1":"_yPyiK","mt-md-2":"_sWcbm","pt-md-2":"_-7S2K","mt-md-3":"_-Zt6X","pt-md-3":"_pmFds","mt-md-4":"_dlz9t","pt-md-4":"_HQv-M","mt-md-5":"_9tUBj","pt-md-5":"_Jdc38","mt-md-6":"_BEZDD","pt-md-6":"_c3r6r","mt-md-7":"_KSCEr","pt-md-7":"_-Tpjo","mt-md-8":"_O-cOs","pt-md-8":"_DPwEz","mt-md-9":"_eBVAf","pt-md-9":"_Fnftl","mt-md-10":"_tlAu5","pt-md-10":"_ufMho","mb-md-0":"_NKFtN","pb-md-0":"_QEyOV","mb-md-1":"_t8EVs","pb-md-1":"_hVqy6","mb-md-2":"_Dwa5p","pb-md-2":"_A6iqX","mb-md-3":"_DAzrF","pb-md-3":"_o9L2-","mb-md-4":"_zMG5y","pb-md-4":"_wC2az","mb-md-5":"_LYF0o","pb-md-5":"_rrbij","mb-md-6":"_tUQcN","pb-md-6":"_MgAD-","mb-md-7":"_9lVsl","pb-md-7":"_Z7z8R","mb-md-8":"_CMrj4","pb-md-8":"_X4Qb0","mb-md-9":"_dQuWg","pb-md-9":"_98aa5","mb-md-10":"_tjfzH","pb-md-10":"_n5Id2","mx-md-0":"_kbQ3E","px-md-0":"_LWqO4","mx-md-1":"_8dqNC","px-md-1":"_QBFBY","mx-md-2":"_QXy6I","px-md-2":"_vBqGQ","mx-md-3":"_asgRe","px-md-3":"_i67O7","mx-md-4":"_-9eXp","px-md-4":"_ZQIEY","mx-md-5":"_l4FN1","px-md-5":"_vYBmq","mx-md-6":"_j4Fiy","px-md-6":"_BLvHs","mx-md-7":"_hg5ZA","px-md-7":"_OclOz","mx-md-8":"_NNMXz","px-md-8":"_KUBjL","mx-md-9":"_x5vxD","px-md-9":"_x1Hj-","mx-md-10":"_RnJFW","px-md-10":"_laoTv","my-md-0":"_gAG5i","py-md-0":"_KQkB8","my-md-1":"_90Emt","py-md-1":"_a93vq","my-md-2":"_wzerE","py-md-2":"_vpawj","my-md-3":"_ijUtT","py-md-3":"_9G-7C","my-md-4":"_GfQTx","py-md-4":"_vGRDM","my-md-5":"_MVaN3","py-md-5":"_5Ju4e","my-md-6":"_StvD2","py-md-6":"_03iO9","my-md-7":"_nlUi8","py-md-7":"_e58lN","my-md-8":"_VKoKR","py-md-8":"_Xa5lD","my-md-9":"_nLjef","py-md-9":"_88ryZ","my-md-10":"_-f4Oc","py-md-10":"_60CJ8","m-xl-0":"_YdUVc","p-xl-0":"_ceNl-","m-xl-1":"_cn-PK","p-xl-1":"_8pBVr","m-xl-2":"_UNu8h","p-xl-2":"_6mIBX","m-xl-3":"_LXA70","p-xl-3":"_nkNjg","m-xl-4":"_DH3uC","p-xl-4":"_b631X","m-xl-5":"_PU5TK","p-xl-5":"_Y9Pj5","m-xl-6":"_DQUfX","p-xl-6":"_cmXs1","m-xl-7":"_Hr4dN","p-xl-7":"_pwyLG","m-xl-8":"_XkBIo","p-xl-8":"_oSfQ1","m-xl-9":"_TXGD8","p-xl-9":"_r8XiA","m-xl-10":"_cbucW","p-xl-10":"_FnUT2","ml-xl-0":"_Lc2b0","pl-xl-0":"_8ofmI","ml-xl-1":"_yOkOl","pl-xl-1":"_5cZix","ml-xl-2":"_F0JQw","pl-xl-2":"_pWIp6","ml-xl-3":"_9CDHy","pl-xl-3":"_M9MOq","ml-xl-4":"_L6LLW","pl-xl-4":"_NZlEo","ml-xl-5":"_Milvj","pl-xl-5":"_N-hPa","ml-xl-6":"_HEU-c","pl-xl-6":"_x-uz3","ml-xl-7":"_xVYoD","pl-xl-7":"_TV3yu","ml-xl-8":"_WVmm8","pl-xl-8":"_Wsfh3","ml-xl-9":"_Rse0C","pl-xl-9":"_p-0My","ml-xl-10":"_LN1Pv","pl-xl-10":"_WtXyv","mr-xl-0":"_aQ8fC","pr-xl-0":"_x7HY1","mr-xl-1":"_rzUKT","pr-xl-1":"_ggRzA","mr-xl-2":"_j88Jb","pr-xl-2":"_6Ztzi","mr-xl-3":"_RNldP","pr-xl-3":"_uC4PP","mr-xl-4":"_14KPU","pr-xl-4":"_RoGxi","mr-xl-5":"_MYSFB","pr-xl-5":"_0fjNm","mr-xl-6":"_aK553","pr-xl-6":"_B-5Vf","mr-xl-7":"_nLta-","pr-xl-7":"_AhsZ-","mr-xl-8":"_emyPo","pr-xl-8":"_Dc6lK","mr-xl-9":"_MqsWc","pr-xl-9":"_j4A-H","mr-xl-10":"_v7rIi","pr-xl-10":"_aIhOc","mt-xl-0":"_1KMHA","pt-xl-0":"_SmBQC","mt-xl-1":"_FpHTe","pt-xl-1":"_tRIkV","mt-xl-2":"_ISAHh","pt-xl-2":"_KcOk8","mt-xl-3":"_cklRo","pt-xl-3":"_MqQSr","mt-xl-4":"_iaWfp","pt-xl-4":"_mcXBl","mt-xl-5":"_qNaL5","pt-xl-5":"_3tRQZ","mt-xl-6":"_MjyPP","pt-xl-6":"_wGTYM","mt-xl-7":"_WkpWd","pt-xl-7":"_-fXMT","mt-xl-8":"_xgRm6","pt-xl-8":"_mNE0F","mt-xl-9":"_tHRgU","pt-xl-9":"_pUanr","mt-xl-10":"_75l23","pt-xl-10":"_VjjB-","mb-xl-0":"_wNZHn","pb-xl-0":"_6weX6","mb-xl-1":"_xbDsG","pb-xl-1":"_WLHB6","mb-xl-2":"_JCck5","pb-xl-2":"_Ef822","mb-xl-3":"_-Izvj","pb-xl-3":"_kizTx","mb-xl-4":"_wDLLt","pb-xl-4":"_6vfXW","mb-xl-5":"_qa8hX","pb-xl-5":"_2cdIL","mb-xl-6":"_PPuX7","pb-xl-6":"_SYsiu","mb-xl-7":"_au29R","pb-xl-7":"_Wo-v3","mb-xl-8":"_7DCh1","pb-xl-8":"_8Qtxz","mb-xl-9":"_U5ePL","pb-xl-9":"_QdSRg","mb-xl-10":"_xwDK-","pb-xl-10":"_5HXQF","mx-xl-0":"_U-5An","px-xl-0":"_t0GQI","mx-xl-1":"_l2Q9y","px-xl-1":"_-6SLy","mx-xl-2":"_OO5ra","px-xl-2":"_DpWnU","mx-xl-3":"_umWwt","px-xl-3":"_gLeFm","mx-xl-4":"_O6nxp","px-xl-4":"_RXch7","mx-xl-5":"_GLCbl","px-xl-5":"_wOP1U","mx-xl-6":"_n1gJF","px-xl-6":"_jHA8-","mx-xl-7":"_ZG5zQ","px-xl-7":"_33-Bi","mx-xl-8":"_wGBwu","px-xl-8":"_jnqCE","mx-xl-9":"_-q541","px-xl-9":"_hQqb-","mx-xl-10":"_oOjVu","px-xl-10":"_8iBI4","my-xl-0":"_5V5-G","py-xl-0":"_ZIETe","my-xl-1":"_VhBbg","py-xl-1":"_qkd1g","my-xl-2":"_MONRd","py-xl-2":"_wBVYq","my-xl-3":"_oUD7x","py-xl-3":"_9C1YA","my-xl-4":"_akz7W","py-xl-4":"_sczsh","my-xl-5":"_CEcRg","py-xl-5":"_xFnw3","my-xl-6":"_RReJQ","py-xl-6":"_gx-E-","my-xl-7":"_NTw09","py-xl-7":"_VniPR","my-xl-8":"_zhVnN","py-xl-8":"_e-lj8","my-xl-9":"_p5Z-c","py-xl-9":"_L1zCc","my-xl-10":"_NqJ-Z","py-xl-10":"_LGmu1","background-shine":"_HkIXJ","path":"_VW1Ys","line":"_x1Ry-","skeleton":"_rh5J1","skeleton-animate":"_ukRhW","skeleton-dark":"_SuY0j","skeleton-dark-animate":"_wHz7j","skeleton-transparent":"_DehL2","skeleton-transparent-animate":"_nwZzB","semi-transparent":"_KJuSy","asset-icon":"_V0pcT","small":"_AXy-6","asset-icon-primary":"_wDjNx","asset-icon-secondary":"_uTjfo"};
1443
+
1444
+ var AssetIcon = function AssetIcon(_ref) {
1445
+ var assetIconSrc = _ref.assetIconSrc,
1446
+ _ref$assetIconProtoco = _ref.assetIconProtocolScr,
1447
+ assetIconProtocolScr = _ref$assetIconProtoco === void 0 ? null : _ref$assetIconProtoco,
1448
+ _ref$fallbackSrc = _ref.fallbackSrc,
1449
+ fallbackSrc = _ref$fallbackSrc === void 0 ? null : _ref$fallbackSrc,
1450
+ _ref$small = _ref.small,
1451
+ small = _ref$small === void 0 ? false : _ref$small;
1452
+ var handleFailedLoad = function handleFailedLoad(e) {
1453
+ e.target.onerror = null;
1454
+ e.target.src = fallbackSrc;
1455
+ };
1456
+ return /*#__PURE__*/React__default["default"].createElement("div", {
1457
+ className: s["asset-icon"] + (small ? " " + s["small"] : "")
1458
+ }, /*#__PURE__*/React__default["default"].createElement("img", {
1459
+ src: assetIconSrc,
1460
+ className: s["asset-icon-primary"] + (small ? " " + s["small"] : ""),
1461
+ alt: " ",
1462
+ onError: handleFailedLoad
1463
+ }), assetIconProtocolScr ? /*#__PURE__*/React__default["default"].createElement("img", {
1464
+ src: assetIconProtocolScr,
1465
+ className: s["asset-icon-secondary"] + (small ? " " + s["small"] : ""),
1466
+ alt: " ",
1467
+ onError: handleFailedLoad
1468
+ }) : "");
1469
+ };
1470
+ AssetIcon.propTypes = {
1471
+ assetIconSrc: PropTypes.string.isRequired,
1472
+ assetIconProtocolScr: PropTypes.string,
1473
+ fallbackSrc: PropTypes.string,
1474
+ small: PropTypes.bool
1475
+ };
1476
+ AssetIcon.defaultProps = {
1477
+ assetIconProtocolScr: null,
1478
+ fallbackSrc: null,
1479
+ small: false
1480
+ };
1481
+
1482
+ /**
1483
+ * This function improves the passed error object (its message) by adding the passed function name
1484
+ * and additional message to it.
1485
+ * This is useful as Javascript doesn't guarantee the stack-traces, so we should manually add these details to errors
1486
+ * to be able to troubleshoot.
1487
+ *
1488
+ * @param e {Error}
1489
+ * @param settingFunction {string}
1490
+ * @param [additionalMessage=""] {string|undefined}
1491
+ * @throws {Error} always rethrows the original passed error but with an improved message
1492
+ */
1493
+ function improveAndRethrow(e, settingFunction, additionalMessage) {
1494
+ if (additionalMessage === void 0) {
1495
+ additionalMessage = "";
1496
+ }
1497
+ var message = improvedErrorMessage(e, settingFunction, additionalMessage);
1498
+ if (e) {
1499
+ e.message = message;
1500
+ throw e; // to preserve existing stacktrace if present
1501
+ }
1502
+ throw new Error(message);
1503
+ }
1504
+ function improvedErrorMessage(e, settingFunction, additionalMessage) {
1505
+ var message = "\nFunction call " + (settingFunction != null ? settingFunction : "") + " failed. ";
1506
+ e && e.message && (message += "Error message: " + e.message + ". ");
1507
+ additionalMessage && (message += additionalMessage + " ");
1508
+ return message;
1509
+ }
1510
+
1511
+ var FiatCurrenciesService = /*#__PURE__*/function () {
1512
+ function FiatCurrenciesService() {}
1513
+ FiatCurrenciesService.getFullCurrencyNameByCode = function getFullCurrencyNameByCode(code) {
1514
+ if (code === void 0) {
1515
+ code = "";
1516
+ }
1517
+ var data = fiatCurrenciesList.find(function (currencyData) {
1518
+ return currencyData[0] === code.toUpperCase();
1519
+ });
1520
+ return data && data[2] || null;
1521
+ };
1522
+ FiatCurrenciesService.isCodeValid = function isCodeValid(code) {
1523
+ return !!fiatCurrenciesList.find(function (currenciesData) {
1524
+ return currenciesData[0] === code;
1525
+ });
1526
+ }
1527
+
1528
+ /**
1529
+ * Returns currency symbol by code if present
1530
+ *
1531
+ * @param code {string} currency code
1532
+ * @return {string|null} code or null if there is no symbol for the currency
1533
+ */;
1534
+ FiatCurrenciesService.getCurrencySymbolByCode = function getCurrencySymbolByCode(code) {
1535
+ var _data$;
1536
+ if (code === void 0) {
1537
+ code = "";
1538
+ }
1539
+ var data = fiatCurrenciesList.find(function (currencyData) {
1540
+ return currencyData[0] === code.toUpperCase();
1541
+ });
1542
+ return (_data$ = data == null ? void 0 : data[1]) != null ? _data$ : null;
1543
+ }
1544
+
1545
+ /**
1546
+ * @param code {string}
1547
+ * @return {number|null}
1548
+ */;
1549
+ FiatCurrenciesService.getCurrencyDecimalCountByCode = function getCurrencyDecimalCountByCode(code) {
1550
+ var _data$2;
1551
+ if (code === void 0) {
1552
+ code = "";
1553
+ }
1554
+ var data = fiatCurrenciesList.find(function (currencyData) {
1555
+ return currencyData[0] === code.toUpperCase();
1556
+ });
1557
+ return (_data$2 = data == null ? void 0 : data[3]) != null ? _data$2 : null;
1558
+ };
1559
+ return FiatCurrenciesService;
1560
+ }();
1561
+ var fiatCurrenciesList = [["USD", "$", "US Dollar", 2], ["CAD", "CA$", "Canadian Dollar", 2], ["EUR", "€", "Euro", 2], ["AED", "AED", "UAE Dirham", 2], ["AFN", "؋", "Afghan Afghani", 0], ["ALL", "ALL", "Albanian Lek", 0], ["AMD", "֏", "Armenian Dram", 0], ["ARS", "AR$", "Argentine Peso", 2], ["AUD", "AU$", "Australian Dollar", 2], ["AZN", "₼", "Azerbaijani Manat", 2], ["BAM", "KM", "Bosnia-Herzegovina Convertible Mark", 2], ["BDT", "Tk", "Bangladeshi Taka", 2], ["BGN", "BGN", "Bulgarian Lev", 2], ["BHD", "BD", "Bahraini Dinar", 3], ["BIF", "FBu", "Burundian Franc", 0], ["BND", "BN$", "Brunei Dollar", 2], ["BOB", "Bs", "Bolivian Boliviano", 2], ["BRL", "R$", "Brazilian Real", 2], ["BWP", "BWP", "Botswanan Pula", 2], ["BYN", "Br", "Belarusian Ruble", 2], ["BZD", "BZ$", "Belize Dollar", 2], ["CDF", "CDF", "Congolese Franc", 2], ["CHF", "CHF", "Swiss Franc", 2], ["CLP", "CL$", "Chilean Peso", 0], ["CNY", "CN¥", "Chinese Yuan", 2], ["COP", "CO$", "Colombian Peso", 0], ["CRC", "₡", "Costa Rican Colón", 0], ["CVE", "CV$", "Cape Verdean Escudo", 2], ["CZK", "Kč", "Czech Republic Koruna", 2], ["DJF", "Fdj", "Djiboutian Franc", 0], ["DKK", "Dkr", "Danish Krone", 2], ["DOP", "RD$", "Dominican Peso", 2], ["DZD", "DA", "Algerian Dinar", 2], ["EEK", "Ekr", "Estonian Kroon", 2], ["EGP", "EGP", "Egyptian Pound", 2], ["ERN", "Nfk", "Eritrean Nakfa", 2], ["ETB", "Br", "Ethiopian Birr", 2], ["GBP", "£", "British Pound Sterling", 2], ["GEL", "₾", "Georgian Lari", 2], ["GHS", "₵", "Ghanaian Cedi", 2], ["GNF", "FG", "Guinean Franc", 0], ["GTQ", "GTQ", "Guatemalan Quetzal", 2], ["HKD", "HK$", "Hong Kong Dollar", 2], ["HNL", "HNL", "Honduran Lempira", 2], ["HRK", "kn", "Croatian Kuna", 2], ["HUF", "Ft", "Hungarian Forint", 0], ["IDR", "Rp", "Indonesian Rupiah", 0], ["ILS", "₪", "Israeli New Sheqel", 2], ["INR", "₹", "Indian Rupee", 2], ["IQD", "IQD", "Iraqi Dinar", 0], ["IRR", "﷼", "Iranian Rial", 0], ["ISK", "Ikr", "Icelandic Króna", 0], ["JMD", "J$", "Jamaican Dollar", 2], ["JOD", "JD", "Jordanian Dinar", 3], ["JPY", "¥", "Japanese Yen", 0], ["KES", "Ksh", "Kenyan Shilling", 2], ["KHR", "KHR", "Cambodian Riel", 2], ["KMF", "CF", "Comorian Franc", 0], ["KRW", "₩", "South Korean Won", 0], ["KWD", "KD", "Kuwaiti Dinar", 3], ["KZT", "₸", "Kazakhstani Tenge", 2], ["LBP", "LB£", "Lebanese Pound", 0], ["LKR", "SLRs", "Sri Lankan Rupee", 2], ["LTL", "Lt", "Lithuanian Litas", 2], ["LVL", "Ls", "Latvian Lats", 2], ["LYD", "LD", "Libyan Dinar", 3], ["MAD", "MAD", "Moroccan Dirham", 2], ["MDL", "MDL", "Moldovan Leu", 2], ["MGA", "MGA", "Malagasy Ariary", 0], ["MKD", "MKD", "Macedonian Denar", 2], ["MMK", "MMK", "Myanma Kyat", 0], ["MNT", "₮", "Mongolian Tugrik", 0], ["MOP", "MOP$", "Macanese Pataca", 2], ["MUR", "MURs", "Mauritian Rupee", 0], ["MXN", "MX$", "Mexican Peso", 2], ["MYR", "RM", "Malaysian Ringgit", 2], ["MZN", "MTn", "Mozambican Metical", 2], ["NAD", "N$", "Namibian Dollar", 2], ["NGN", "₦", "Nigerian Naira", 2], ["NIO", "C$", "Nicaraguan Córdoba", 2], ["NOK", "Nkr", "Norwegian Krone", 2], ["NPR", "NPRs", "Nepalese Rupee", 2], ["NZD", "NZ$", "New Zealand Dollar", 2], ["OMR", "OMR", "Omani Rial", 3], ["PAB", "B/.", "Panamanian Balboa", 2], ["PEN", "S/.", "Peruvian Nuevo Sol", 2], ["PHP", "₱", "Philippine Peso", 2], ["PKR", "PKRs", "Pakistani Rupee", 0], ["PLN", "zł", "Polish Zloty", 2], ["PYG", "₲", "Paraguayan Guarani", 0], ["QAR", "QR", "Qatari Rial", 2], ["RON", "RON", "Romanian Leu", 2], ["RSD", "din.", "Serbian Dinar", 0], ["RUB", "₽", "Russian Ruble", 2], ["RWF", "RWF", "Rwandan Franc", 0], ["SAR", "SR", "Saudi Riyal", 2], ["SDG", "SDG", "Sudanese Pound", 2], ["SEK", "Skr", "Swedish Krona", 2], ["SGD", "S$", "Singapore Dollar", 2], ["SOS", "Ssh", "Somali Shilling", 0], ["SYP", "SY£", "Syrian Pound", 0], ["THB", "฿", "Thai Baht", 2], ["TND", "DT", "Tunisian Dinar", 3], ["TOP", "T$", "Tongan Paʻanga", 2], ["TRY", "₺", "Turkish Lira", 2], ["TTD", "TT$", "Trinidad and Tobago Dollar", 2], ["TWD", "NT$", "New Taiwan Dollar", 2], ["TZS", "TSh", "Tanzanian Shilling", 0], ["UAH", "₴", "Ukrainian Hryvnia", 2], ["UGX", "USh", "Ugandan Shilling", 0], ["UYU", "$U", "Uruguayan Peso", 2], ["UZS", "UZS", "Uzbekistan Som", 0], ["VEF", "Bs.F.", "Venezuelan Bolívar", 2], ["VND", "₫", "Vietnamese Dong", 0], ["XAF", "FCFA", "CFA Franc BEAC", 0], ["XOF", "CFA", "CFA Franc BCEAO", 0], ["YER", "﷼", "Yemeni Rial", 0], ["ZAR", "R", "South African Rand", 2], ["ZMK", "ZK", "Zambian Kwacha", 0], ["ZWL", "ZWL$", "Zimbabwean Dollar", 0]];
1562
+
1563
+ function _extends() {
1564
+ _extends = Object.assign ? Object.assign.bind() : function (target) {
1565
+ for (var i = 1; i < arguments.length; i++) {
1566
+ var source = arguments[i];
1567
+ for (var key in source) {
1568
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
1569
+ target[key] = source[key];
1570
+ }
1571
+ }
1572
+ }
1573
+ return target;
1574
+ };
1575
+ return _extends.apply(this, arguments);
1576
+ }
1577
+
1578
+ // TODO: [dev] return addCommasToAmountString internal method to encapsulate commas adding
1579
+
1580
+ var AmountUtils = /*#__PURE__*/function () {
1581
+ function AmountUtils() {}
1582
+ AmountUtils.fiatXs = function fiatXs(amount, code) {
1583
+ return this.fiat(amount, code, {
1584
+ extraSmallLength: true
1585
+ });
1586
+ }
1587
+
1588
+ /**
1589
+ * Universal method for rendering of fiat amounts, taking into account the rules of
1590
+ * the passed fiat currency code.
1591
+ *
1592
+ * TODO: [feature, high] remove 'number' from accepted types list task_id=1e692bcfabbe487a9d1638fc8ff17448
1593
+ * @param amount {BigNumber|number|string|null|undefined} The number value to be trimmed
1594
+ * @param currencyCode {string|null} The currency code. Can be omitted if { ticker: false } in the config
1595
+ * @param [passedParams={}] {object} Formatting parameters
1596
+ * @return {string} Formatted fiat amount string
1597
+ */;
1598
+ AmountUtils.fiat = function fiat(amount, currencyCode, passedParams) {
1599
+ if (passedParams === void 0) {
1600
+ passedParams = {};
1601
+ }
1602
+ try {
1603
+ var params = _extends({}, this.defaultFiatParams, passedParams);
1604
+ if (this._checkIfAmountInvalid(amount, true) || typeof currencyCode !== "string") return "NULL";
1605
+ var currencySymbol = FiatCurrenciesService.getCurrencySymbolByCode(currencyCode);
1606
+ var currencyDecimalCount = FiatCurrenciesService.getCurrencyDecimalCountByCode(currencyCode);
1607
+ var trimmedByMaxDigits = bignumber_js.BigNumber(amount).toFixed(currencyDecimalCount, bignumber_js.BigNumber.ROUND_FLOOR);
1608
+ var processedAmount = bignumber_js.BigNumber(trimmedByMaxDigits);
1609
+ if (params.collapsible && processedAmount.gte(bignumber_js.BigNumber("1000000"))) {
1610
+ processedAmount = this._collapseToMillionsAndFormat(processedAmount, this.collapsedDecimalCount, params);
1611
+ } else {
1612
+ var limitResult = this._limitTotalAmountLengthIfNeeded(trimmedByMaxDigits, params);
1613
+ processedAmount = bignumber_js.BigNumber(limitResult.processedAmount).toFormat(); // Adds commas to integer part
1614
+ }
1615
+
1616
+ // Add the currency code or currency symbol, if symbol is enabled and available
1617
+ if (params.ticker) {
1618
+ if (typeof currencySymbol === "string" && params.enableCurrencySymbols) {
1619
+ processedAmount = currencySymbol + (currencySymbol.length > 1 ? " " : "") + processedAmount;
1620
+ } else {
1621
+ processedAmount = processedAmount + " " + currencyCode;
1622
+ }
1623
+ }
1624
+ return processedAmount;
1625
+ } catch (e) {
1626
+ improveAndRethrow(e, "fiat", "Passed: " + amount);
1627
+ }
1628
+ };
1629
+ AmountUtils.cryptoWoTicker = function cryptoWoTicker(amount, digits) {
1630
+ return this.crypto(amount, null, digits, {
1631
+ ticker: false
1632
+ });
1633
+ };
1634
+ AmountUtils.cryptoWoTickerXs = function cryptoWoTickerXs(amount, digits) {
1635
+ return this.crypto(amount, null, digits, {
1636
+ ticker: false,
1637
+ extraSmallLength: true
1638
+ });
1639
+ };
1640
+ AmountUtils.cryptoXs = function cryptoXs(amount, ticker, digits) {
1641
+ return this.crypto(amount, ticker, digits, {
1642
+ extraSmallLength: true,
1643
+ periods: false
1644
+ });
1645
+ };
1646
+ AmountUtils.cryptoFull = function cryptoFull(amount, ticker, digits) {
1647
+ return this.crypto(amount, ticker, digits, {
1648
+ collapsible: false,
1649
+ trim: false,
1650
+ limitTotalLength: false
1651
+ });
1652
+ }
1653
+
1654
+ /**
1655
+ * Universal method for rendering of crypto amounts, taking into account the rules of
1656
+ * the passed ticker. Requires the number of digits after period to be less of equal to
1657
+ * the number of digits, supported by the passed ticker.
1658
+ *
1659
+ * @param amount {BigNumber|string|null|undefined} The number value to be formatted
1660
+ * @param ticker {string|null} Coin ticker
1661
+ * @param [digits=8] {number} max digits after the dot
1662
+ * @param passedParams {object} Formatting parameters
1663
+ * @return {string} Formatted crypto amount string
1664
+ */;
1665
+ AmountUtils.crypto = function crypto(amount, ticker, digits, passedParams) {
1666
+ if (digits === void 0) {
1667
+ digits = this.significantDecimalCount;
1668
+ }
1669
+ try {
1670
+ var params = _extends({}, this.defaultCryptoParams, passedParams);
1671
+ if (this._checkIfAmountInvalid(amount) || typeof ticker !== "string" && params.ticker) return "NULL";
1672
+ var addPeriods = false;
1673
+ var amountBigNumber = bignumber_js.BigNumber(amount);
1674
+ var processedAmount = amountBigNumber.toFixed(digits, bignumber_js.BigNumber.ROUND_FLOOR);
1675
+ processedAmount = this.removeRedundantRightZerosFromNumberString(processedAmount);
1676
+ var originalAmountDecimalPlaces = bignumber_js.BigNumber(processedAmount).decimalPlaces();
1677
+ // Check decimal count and throw an error, if the amount has more decimal digits than supported by the asset
1678
+ if (originalAmountDecimalPlaces > digits) {
1679
+ var errorMessage = "An attempt to render a crypto value with too many digits after period was made: " + amount + ", allowed digits: " + digits + ". This is a no-op, since the logical and visually rendered values would differ, which is not acceptable for crypto amounts. Please trim the amount before rendering, using the trimCryptoAmountByCoin(amount, coin) method.";
1680
+ // throw new Error(errorMessage);
1681
+ // eslint-disable-next-line no-console
1682
+ console.log(errorMessage, "crypto");
1683
+ }
1684
+
1685
+ // Shortening the value to general significant number of digits after period
1686
+ if (params.trim) {
1687
+ processedAmount = this.removeRedundantRightZerosFromNumberString(amountBigNumber.toFixed(this.significantDecimalCount, bignumber_js.BigNumber.ROUND_FLOOR));
1688
+ addPeriods = originalAmountDecimalPlaces > this.significantDecimalCount;
1689
+ }
1690
+ var limitResult = this._limitTotalAmountLengthIfNeeded(processedAmount, params);
1691
+ processedAmount = limitResult.processedAmount;
1692
+ addPeriods || (addPeriods = limitResult.addPeriods);
1693
+ var wereMillionsCollapsed = false;
1694
+ if (params.collapsible && amountBigNumber.gte("1000000")) {
1695
+ // Collapse the 1M+ amounts if applicable
1696
+ processedAmount = this._collapseToMillionsAndFormat(bignumber_js.BigNumber(processedAmount), this.collapsedDecimalCount, params);
1697
+ wereMillionsCollapsed = true;
1698
+ } else {
1699
+ // Add separators to integer part of the amount
1700
+ processedAmount = bignumber_js.BigNumber(processedAmount).toFormat();
1701
+ }
1702
+
1703
+ // Adding periods, if the amount was shortened
1704
+ if (params.periods && addPeriods && !wereMillionsCollapsed) {
1705
+ processedAmount = processedAmount + this.periods;
1706
+ }
1707
+
1708
+ // Adding an adaptive (printable/full) ticker
1709
+ if (params.ticker && ticker) {
1710
+ processedAmount = processedAmount + " " + ticker;
1711
+ }
1712
+ return processedAmount;
1713
+ } catch (e) {
1714
+ improveAndRethrow(e, "crypto", "Passed: " + amount + ", " + ticker + ", " + digits);
1715
+ }
1716
+ };
1717
+ AmountUtils._checkIfAmountInvalid = function _checkIfAmountInvalid(amount, allowNumbers) {
1718
+ if (allowNumbers === void 0) {
1719
+ allowNumbers = false;
1720
+ }
1721
+ return amount == null || amount === "" || !bignumber_js.BigNumber.isBigNumber(amount) && typeof amount !== "string" && (!allowNumbers || typeof amount !== "number");
1722
+ }
1723
+
1724
+ /**
1725
+ * Trims all digits after period that exceed the number of digits provided.
1726
+ * Use this everywhere when calculating some amount value to ensure the result is correct in terms
1727
+ * of max digits allowed by specific currency.
1728
+ *
1729
+ * @param amount {BigNumber|number|string|null|undefined} The number value to be trimmed.
1730
+ * HEX strings also allowed "0x..." and JS hex numbers
1731
+ * @param digits {number} allowed digits
1732
+ * @return {string|null} String with trimmed number or null for invalid amount
1733
+ */;
1734
+ AmountUtils.trim = function trim(amount, digits) {
1735
+ try {
1736
+ if (this._checkIfAmountInvalid(amount, true)) return null;
1737
+ return bignumber_js.BigNumber(amount).toFixed(digits, bignumber_js.BigNumber.ROUND_FLOOR);
1738
+ } catch (e) {
1739
+ improveAndRethrow(e, "trim", "Passed: " + amount + ", " + digits);
1740
+ }
1741
+ }
1742
+
1743
+ /**
1744
+ * @param amount {BigNumber|number|string|null|undefined} The number value to be trimmed.
1745
+ * HEX strings also allowed "0x..." and JS hex numbers
1746
+ * @return {string|null}
1747
+ */;
1748
+ AmountUtils.intStr = function intStr(amount) {
1749
+ return this.trim(amount, 0);
1750
+ }
1751
+
1752
+ /**
1753
+ * Shortens the line length by using a "1.52M" representation of big amounts.
1754
+ *
1755
+ * @param amountBigNumber {BigNumber} The number value to be trimmed
1756
+ * @param decimalCount {number} The number of digits after period to keep in millions representation
1757
+ * @param params {object} params object
1758
+ * @return {string} A shortened string, converted into "millions" format, if the amount exceeds 1 million
1759
+ */;
1760
+ AmountUtils._collapseToMillionsAndFormat = function _collapseToMillionsAndFormat(amountBigNumber, decimalCount, params) {
1761
+ if (params === void 0) {
1762
+ params = {};
1763
+ }
1764
+ try {
1765
+ // TODO: [feature, moderate] use local format here - take from JS locales (comma/dot etc.)
1766
+ var millionBigNumber = bignumber_js.BigNumber("1000000");
1767
+ var millions = amountBigNumber.div(millionBigNumber).toFixed(decimalCount, bignumber_js.BigNumber.ROUND_FLOOR);
1768
+ var limitedResult = this._limitTotalAmountLengthIfNeeded(millions, params);
1769
+ var formatted = bignumber_js.BigNumber(limitedResult.processedAmount).toFormat();
1770
+ return formatted + "M";
1771
+ } catch (e) {
1772
+ improveAndRethrow(e, "_collapseAmountAndFormat", "Passed: " + amountBigNumber.toFixed() + ", " + decimalCount);
1773
+ }
1774
+ }
1775
+
1776
+ /**
1777
+ * @param amountString {string} The amount to be restricted by length
1778
+ * @param params {object} Params object used for formatting
1779
+ * @return {{processedAmount:string, addPeriods: boolean}} A shortened string
1780
+ */;
1781
+ AmountUtils._limitTotalAmountLengthIfNeeded = function _limitTotalAmountLengthIfNeeded(amountString, params) {
1782
+ try {
1783
+ var addPeriods = false;
1784
+ if (params.limitTotalLength || params.extraSmallLength) {
1785
+ var maxLength = params.extraSmallLength ? this.extraSmallMaxTotalLength : this.maxTotalLength;
1786
+ if (amountString.length > maxLength) {
1787
+ var delta = amountString.length - maxLength;
1788
+ var currentDecimalsCount = bignumber_js.BigNumber(amountString).decimalPlaces();
1789
+ var newDecimalCount = currentDecimalsCount - delta;
1790
+ amountString = bignumber_js.BigNumber(amountString).toFixed(newDecimalCount > 2 ? newDecimalCount : 2, bignumber_js.BigNumber.ROUND_FLOOR);
1791
+ addPeriods = currentDecimalsCount > newDecimalCount;
1792
+ }
1793
+ }
1794
+ return {
1795
+ addPeriods: addPeriods,
1796
+ processedAmount: amountString
1797
+ };
1798
+ } catch (e) {
1799
+ improveAndRethrow(e, "_limitTotalAmountLengthIfNeeded", "Passed: " + amountString + ", " + params);
1800
+ }
1801
+ }
1802
+
1803
+ /**
1804
+ * Safely composes rate string (handles small/big rates)
1805
+ *
1806
+ * @param leftTicker {string}
1807
+ * @param rightTicker {string}
1808
+ * @param rate {number|string|BigNumber}
1809
+ * @param [rightCurrencyDigitsAfterDots=8] {number}
1810
+ * @return {string}
1811
+ */;
1812
+ AmountUtils.composeRateText = function composeRateText(leftTicker, rightTicker, rate, rightCurrencyDigitsAfterDots) {
1813
+ if (rightCurrencyDigitsAfterDots === void 0) {
1814
+ rightCurrencyDigitsAfterDots = this.significantDecimalCount;
1815
+ }
1816
+ try {
1817
+ /* Here we try to calculate a clear rate for the user. The difficulty is that the rate value can be pretty
1818
+ * small as some coins have significantly higher price than the other. For such cases we calculate
1819
+ * not the "1 <coin_A> is X <coin B>" but "Y <coin_A> is X <coin B>" where Y is one of the powers of 100.
1820
+ */
1821
+ var leftNumber = bignumber_js.BigNumber("1");
1822
+ var multiplier = bignumber_js.BigNumber("100");
1823
+ var maxAttemptsToGetRate = 10;
1824
+ var right = null;
1825
+ var rateBigNumber = bignumber_js.BigNumber(rate);
1826
+ for (var i = 0; i < maxAttemptsToGetRate; ++i) {
1827
+ var rightNumberAttempt = rateBigNumber.times(leftNumber).toFixed(rightCurrencyDigitsAfterDots, bignumber_js.BigNumber.ROUND_FLOOR);
1828
+ if (!bignumber_js.BigNumber(rightNumberAttempt).eq(bignumber_js.BigNumber("0"))) {
1829
+ right = bignumber_js.BigNumber(rightNumberAttempt);
1830
+ break;
1831
+ } else {
1832
+ leftNumber = leftNumber.times(multiplier);
1833
+ }
1834
+ }
1835
+ var leftAmountString = AmountUtils.intStr(leftNumber);
1836
+ var rightAmountString = right != null ? right.toFixed(rightCurrencyDigitsAfterDots, bignumber_js.BigNumber.ROUND_FLOOR) : null;
1837
+ return leftAmountString + " " + leftTicker + " ~ " + (rightAmountString != null ? rightAmountString : "?") + " " + rightTicker;
1838
+ } catch (e) {
1839
+ // eslint-disable-next-line no-console
1840
+ console.log("composeRateText", e);
1841
+ }
1842
+ return "-";
1843
+ }
1844
+
1845
+ /**
1846
+ * @param numberAsAString {string}
1847
+ * @return {string}
1848
+ */;
1849
+ AmountUtils.removeRedundantRightZerosFromNumberString = function removeRedundantRightZerosFromNumberString(numberAsAString) {
1850
+ try {
1851
+ var _right2;
1852
+ var parts = ("" + numberAsAString).split(".");
1853
+ var right = parts[1];
1854
+ while ((_right = right) != null && _right.length && right[right.length - 1] === "0") {
1855
+ var _right;
1856
+ right = right.slice(0, right.length - 1);
1857
+ }
1858
+ return "" + parts[0] + ((_right2 = right) != null && _right2.length ? "." + right : "");
1859
+ } catch (e) {
1860
+ improveAndRethrow(e, "removeRedundantRightZerosFromNumberString", "Passed: " + numberAsAString);
1861
+ }
1862
+ };
1863
+ return AmountUtils;
1864
+ }();
1865
+ AmountUtils.significantDecimalCount = 8;
1866
+ AmountUtils.collapsedDecimalCount = 2;
1867
+ AmountUtils.maxTotalLength = 12;
1868
+ AmountUtils.extraSmallMaxTotalLength = 9;
1869
+ // >=10 breaks transactions list (mobile) and it is hard to avoid this
1870
+ AmountUtils.periods = "..";
1871
+ AmountUtils.defaultFiatParams = {
1872
+ ticker: true,
1873
+ // If true, currency code will be shown
1874
+ enableCurrencySymbols: true,
1875
+ // Enables currency symbols where available. Requires "ticker: true"
1876
+ collapsible: true,
1877
+ // Enables minimization of amounts over 1 million (example: 1.52M)
1878
+ limitTotalLength: true,
1879
+ // Limits the total amount length to maxTotalLength
1880
+ extraSmallLength: false // Limits the total amount length to extraSmallMaxTotalLength
1881
+ };
1882
+ AmountUtils.defaultCryptoParams = {
1883
+ ticker: true,
1884
+ // If true, asset ticker will be shown
1885
+ collapsible: true,
1886
+ // Enables minimization of amounts over 1 million (example: 1.52M)
1887
+ trim: true,
1888
+ // Cuts the right part of the amount if necessary, and adds ".." in the end
1889
+ limitTotalLength: true,
1890
+ // Limits the total amount length to maxTotalLength
1891
+ extraSmallLength: false,
1892
+ // Limits the total amount length to extraSmallMaxTotalLength
1893
+ periods: true // Whether we add periods ("..") as suffix for trimmed numbers
1894
+ };
1895
+
1896
+ exports.AmountUtils = AmountUtils;
1897
+ exports.AssetIcon = AssetIcon;
1898
+ exports.Button = Button;
1899
+ exports.FiatCurrenciesService = FiatCurrenciesService;
1900
+ exports.LoadingDots = LoadingDots;
1901
+ exports.SupportChat = SupportChat;
1902
+ exports.improveAndRethrow = improveAndRethrow;
1903
+
1904
+ }));
1905
+ //# sourceMappingURL=index.umd.js.map