@janiscommerce/ui-web 0.0.14 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.umd.js CHANGED
@@ -1,12 +1,13 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react')) :
3
- typeof define === 'function' && define.amd ? define(['exports', 'react'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.main = {}, global.React));
5
- })(this, (function (exports, React) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react'), require('react-dom')) :
3
+ typeof define === 'function' && define.amd ? define(['exports', 'react', 'react-dom'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.main = {}, global.React, global.require$$1));
5
+ })(this, (function (exports, React, require$$1) { 'use strict';
6
6
 
7
7
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
8
8
 
9
9
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
10
+ var require$$1__default = /*#__PURE__*/_interopDefaultLegacy(require$$1);
10
11
 
11
12
  function ownKeys(object, enumerableOnly) {
12
13
  var keys = Object.keys(object);
@@ -34,6 +35,31 @@
34
35
  return target;
35
36
  }
36
37
 
38
+ function _classCallCheck$2(instance, Constructor) {
39
+ if (!(instance instanceof Constructor)) {
40
+ throw new TypeError("Cannot call a class as a function");
41
+ }
42
+ }
43
+
44
+ function _defineProperties(target, props) {
45
+ for (var i = 0; i < props.length; i++) {
46
+ var descriptor = props[i];
47
+ descriptor.enumerable = descriptor.enumerable || false;
48
+ descriptor.configurable = true;
49
+ if ("value" in descriptor) descriptor.writable = true;
50
+ Object.defineProperty(target, descriptor.key, descriptor);
51
+ }
52
+ }
53
+
54
+ function _createClass$2(Constructor, protoProps, staticProps) {
55
+ if (protoProps) _defineProperties(Constructor.prototype, protoProps);
56
+ if (staticProps) _defineProperties(Constructor, staticProps);
57
+ Object.defineProperty(Constructor, "prototype", {
58
+ writable: false
59
+ });
60
+ return Constructor;
61
+ }
62
+
37
63
  function _defineProperty(obj, key, value) {
38
64
  if (key in obj) {
39
65
  Object.defineProperty(obj, key, {
@@ -49,8 +75,8 @@
49
75
  return obj;
50
76
  }
51
77
 
52
- function _extends() {
53
- _extends = Object.assign || function (target) {
78
+ function _extends$2() {
79
+ _extends$2 = Object.assign || function (target) {
54
80
  for (var i = 1; i < arguments.length; i++) {
55
81
  var source = arguments[i];
56
82
 
@@ -64,10 +90,57 @@
64
90
  return target;
65
91
  };
66
92
 
67
- return _extends.apply(this, arguments);
93
+ return _extends$2.apply(this, arguments);
68
94
  }
69
95
 
70
- function _objectWithoutPropertiesLoose(source, excluded) {
96
+ function _inherits$2(subClass, superClass) {
97
+ if (typeof superClass !== "function" && superClass !== null) {
98
+ throw new TypeError("Super expression must either be null or a function");
99
+ }
100
+
101
+ subClass.prototype = Object.create(superClass && superClass.prototype, {
102
+ constructor: {
103
+ value: subClass,
104
+ writable: true,
105
+ configurable: true
106
+ }
107
+ });
108
+ Object.defineProperty(subClass, "prototype", {
109
+ writable: false
110
+ });
111
+ if (superClass) _setPrototypeOf(subClass, superClass);
112
+ }
113
+
114
+ function _getPrototypeOf(o) {
115
+ _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
116
+ return o.__proto__ || Object.getPrototypeOf(o);
117
+ };
118
+ return _getPrototypeOf(o);
119
+ }
120
+
121
+ function _setPrototypeOf(o, p) {
122
+ _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
123
+ o.__proto__ = p;
124
+ return o;
125
+ };
126
+
127
+ return _setPrototypeOf(o, p);
128
+ }
129
+
130
+ function _isNativeReflectConstruct() {
131
+ if (typeof Reflect === "undefined" || !Reflect.construct) return false;
132
+ if (Reflect.construct.sham) return false;
133
+ if (typeof Proxy === "function") return true;
134
+
135
+ try {
136
+ Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
137
+ return true;
138
+ } catch (e) {
139
+ return false;
140
+ }
141
+ }
142
+
143
+ function _objectWithoutPropertiesLoose$1(source, excluded) {
71
144
  if (source == null) return {};
72
145
  var target = {};
73
146
  var sourceKeys = Object.keys(source);
@@ -85,7 +158,7 @@
85
158
  function _objectWithoutProperties(source, excluded) {
86
159
  if (source == null) return {};
87
160
 
88
- var target = _objectWithoutPropertiesLoose(source, excluded);
161
+ var target = _objectWithoutPropertiesLoose$1(source, excluded);
89
162
 
90
163
  var key, i;
91
164
 
@@ -103,6 +176,43 @@
103
176
  return target;
104
177
  }
105
178
 
179
+ function _assertThisInitialized(self) {
180
+ if (self === void 0) {
181
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
182
+ }
183
+
184
+ return self;
185
+ }
186
+
187
+ function _possibleConstructorReturn$2(self, call) {
188
+ if (call && (typeof call === "object" || typeof call === "function")) {
189
+ return call;
190
+ } else if (call !== void 0) {
191
+ throw new TypeError("Derived constructors may only return object or undefined");
192
+ }
193
+
194
+ return _assertThisInitialized(self);
195
+ }
196
+
197
+ function _createSuper(Derived) {
198
+ var hasNativeReflectConstruct = _isNativeReflectConstruct();
199
+
200
+ return function _createSuperInternal() {
201
+ var Super = _getPrototypeOf(Derived),
202
+ result;
203
+
204
+ if (hasNativeReflectConstruct) {
205
+ var NewTarget = _getPrototypeOf(this).constructor;
206
+
207
+ result = Reflect.construct(Super, arguments, NewTarget);
208
+ } else {
209
+ result = Super.apply(this, arguments);
210
+ }
211
+
212
+ return _possibleConstructorReturn$2(this, result);
213
+ };
214
+ }
215
+
106
216
  function _taggedTemplateLiteral(strings, raw) {
107
217
  if (!raw) {
108
218
  raw = strings.slice(0);
@@ -176,6 +286,10 @@
176
286
 
177
287
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
178
288
 
289
+ function getDefaultExportFromCjs (x) {
290
+ return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
291
+ }
292
+
179
293
  var propTypes = {exports: {}};
180
294
 
181
295
  /**
@@ -1631,11 +1745,11 @@
1631
1745
  * This source code is licensed under the MIT license found in the
1632
1746
  * LICENSE file in the root directory of this source tree.
1633
1747
  */
1634
- var b$2=60103,c$1=60106,d$1=60107,e$1=60108,f$1=60114,g$2=60109,h$1=60110,k$2=60112,l$1=60113,m$1=60120,n$1=60115,p$1=60116,q$2=60121,r$1=60122,u=60117,v$2=60129,w$2=60131;
1635
- if("function"===typeof Symbol&&Symbol.for){var x$2=Symbol.for;b$2=x$2("react.element");c$1=x$2("react.portal");d$1=x$2("react.fragment");e$1=x$2("react.strict_mode");f$1=x$2("react.profiler");g$2=x$2("react.provider");h$1=x$2("react.context");k$2=x$2("react.forward_ref");l$1=x$2("react.suspense");m$1=x$2("react.suspense_list");n$1=x$2("react.memo");p$1=x$2("react.lazy");q$2=x$2("react.block");r$1=x$2("react.server.block");u=x$2("react.fundamental");v$2=x$2("react.debug_trace_mode");w$2=x$2("react.legacy_hidden");}
1636
- function y$2(a){if("object"===typeof a&&null!==a){var t=a.$$typeof;switch(t){case b$2:switch(a=a.type,a){case d$1:case f$1:case e$1:case l$1:case m$1:return a;default:switch(a=a&&a.$$typeof,a){case h$1:case k$2:case p$1:case n$1:case g$2:return a;default:return t}}case c$1:return t}}}var z$2=g$2,A$1=b$2,B$1=k$2,C$1=d$1,D$1=p$1,E$1=n$1,F$1=c$1,G$1=f$1,H$1=e$1,I$1=l$1;reactIs_production_min$1.ContextConsumer=h$1;reactIs_production_min$1.ContextProvider=z$2;reactIs_production_min$1.Element=A$1;reactIs_production_min$1.ForwardRef=B$1;reactIs_production_min$1.Fragment=C$1;reactIs_production_min$1.Lazy=D$1;reactIs_production_min$1.Memo=E$1;reactIs_production_min$1.Portal=F$1;reactIs_production_min$1.Profiler=G$1;reactIs_production_min$1.StrictMode=H$1;
1637
- reactIs_production_min$1.Suspense=I$1;reactIs_production_min$1.isAsyncMode=function(){return !1};reactIs_production_min$1.isConcurrentMode=function(){return !1};reactIs_production_min$1.isContextConsumer=function(a){return y$2(a)===h$1};reactIs_production_min$1.isContextProvider=function(a){return y$2(a)===g$2};reactIs_production_min$1.isElement=function(a){return "object"===typeof a&&null!==a&&a.$$typeof===b$2};reactIs_production_min$1.isForwardRef=function(a){return y$2(a)===k$2};reactIs_production_min$1.isFragment=function(a){return y$2(a)===d$1};reactIs_production_min$1.isLazy=function(a){return y$2(a)===p$1};reactIs_production_min$1.isMemo=function(a){return y$2(a)===n$1};
1638
- reactIs_production_min$1.isPortal=function(a){return y$2(a)===c$1};reactIs_production_min$1.isProfiler=function(a){return y$2(a)===f$1};reactIs_production_min$1.isStrictMode=function(a){return y$2(a)===e$1};reactIs_production_min$1.isSuspense=function(a){return y$2(a)===l$1};reactIs_production_min$1.isValidElementType=function(a){return "string"===typeof a||"function"===typeof a||a===d$1||a===f$1||a===v$2||a===e$1||a===l$1||a===m$1||a===w$2||"object"===typeof a&&null!==a&&(a.$$typeof===p$1||a.$$typeof===n$1||a.$$typeof===g$2||a.$$typeof===h$1||a.$$typeof===k$2||a.$$typeof===u||a.$$typeof===q$2||a[0]===r$1)?!0:!1};
1748
+ var b$3=60103,c$2=60106,d$2=60107,e$1=60108,f$2=60114,g$3=60109,h$2=60110,k$2=60112,l$1=60113,m$2=60120,n$1=60115,p$2=60116,q$3=60121,r$1=60122,u$1=60117,v$3=60129,w$3=60131;
1749
+ if("function"===typeof Symbol&&Symbol.for){var x$3=Symbol.for;b$3=x$3("react.element");c$2=x$3("react.portal");d$2=x$3("react.fragment");e$1=x$3("react.strict_mode");f$2=x$3("react.profiler");g$3=x$3("react.provider");h$2=x$3("react.context");k$2=x$3("react.forward_ref");l$1=x$3("react.suspense");m$2=x$3("react.suspense_list");n$1=x$3("react.memo");p$2=x$3("react.lazy");q$3=x$3("react.block");r$1=x$3("react.server.block");u$1=x$3("react.fundamental");v$3=x$3("react.debug_trace_mode");w$3=x$3("react.legacy_hidden");}
1750
+ function y$2(a){if("object"===typeof a&&null!==a){var t=a.$$typeof;switch(t){case b$3:switch(a=a.type,a){case d$2:case f$2:case e$1:case l$1:case m$2:return a;default:switch(a=a&&a.$$typeof,a){case h$2:case k$2:case p$2:case n$1:case g$3:return a;default:return t}}case c$2:return t}}}var z$3=g$3,A$2=b$3,B$2=k$2,C$1=d$2,D$1=p$2,E$1=n$1,F$1=c$2,G$2=f$2,H$1=e$1,I$1=l$1;reactIs_production_min$1.ContextConsumer=h$2;reactIs_production_min$1.ContextProvider=z$3;reactIs_production_min$1.Element=A$2;reactIs_production_min$1.ForwardRef=B$2;reactIs_production_min$1.Fragment=C$1;reactIs_production_min$1.Lazy=D$1;reactIs_production_min$1.Memo=E$1;reactIs_production_min$1.Portal=F$1;reactIs_production_min$1.Profiler=G$2;reactIs_production_min$1.StrictMode=H$1;
1751
+ reactIs_production_min$1.Suspense=I$1;reactIs_production_min$1.isAsyncMode=function(){return !1};reactIs_production_min$1.isConcurrentMode=function(){return !1};reactIs_production_min$1.isContextConsumer=function(a){return y$2(a)===h$2};reactIs_production_min$1.isContextProvider=function(a){return y$2(a)===g$3};reactIs_production_min$1.isElement=function(a){return "object"===typeof a&&null!==a&&a.$$typeof===b$3};reactIs_production_min$1.isForwardRef=function(a){return y$2(a)===k$2};reactIs_production_min$1.isFragment=function(a){return y$2(a)===d$2};reactIs_production_min$1.isLazy=function(a){return y$2(a)===p$2};reactIs_production_min$1.isMemo=function(a){return y$2(a)===n$1};
1752
+ reactIs_production_min$1.isPortal=function(a){return y$2(a)===c$2};reactIs_production_min$1.isProfiler=function(a){return y$2(a)===f$2};reactIs_production_min$1.isStrictMode=function(a){return y$2(a)===e$1};reactIs_production_min$1.isSuspense=function(a){return y$2(a)===l$1};reactIs_production_min$1.isValidElementType=function(a){return "string"===typeof a||"function"===typeof a||a===d$2||a===f$2||a===v$3||a===e$1||a===l$1||a===m$2||a===w$3||"object"===typeof a&&null!==a&&(a.$$typeof===p$2||a.$$typeof===n$1||a.$$typeof===g$3||a.$$typeof===h$2||a.$$typeof===k$2||a.$$typeof===u$1||a.$$typeof===q$3||a[0]===r$1)?!0:!1};
1639
1753
  reactIs_production_min$1.typeOf=y$2;
1640
1754
 
1641
1755
  {
@@ -2337,12 +2451,12 @@
2337
2451
  * This source code is licensed under the MIT license found in the
2338
2452
  * LICENSE file in the root directory of this source tree.
2339
2453
  */
2340
- var b$1="function"===typeof Symbol&&Symbol.for,c=b$1?Symbol.for("react.element"):60103,d=b$1?Symbol.for("react.portal"):60106,e=b$1?Symbol.for("react.fragment"):60107,f=b$1?Symbol.for("react.strict_mode"):60108,g$1=b$1?Symbol.for("react.profiler"):60114,h=b$1?Symbol.for("react.provider"):60109,k$1=b$1?Symbol.for("react.context"):60110,l=b$1?Symbol.for("react.async_mode"):60111,m=b$1?Symbol.for("react.concurrent_mode"):60111,n=b$1?Symbol.for("react.forward_ref"):60112,p=b$1?Symbol.for("react.suspense"):60113,q$1=b$1?
2341
- Symbol.for("react.suspense_list"):60120,r=b$1?Symbol.for("react.memo"):60115,t=b$1?Symbol.for("react.lazy"):60116,v$1=b$1?Symbol.for("react.block"):60121,w$1=b$1?Symbol.for("react.fundamental"):60117,x$1=b$1?Symbol.for("react.responder"):60118,y$1=b$1?Symbol.for("react.scope"):60119;
2342
- function z$1(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$1:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k$1:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z$1(a)===m}reactIs_production_min.AsyncMode=l;reactIs_production_min.ConcurrentMode=m;reactIs_production_min.ContextConsumer=k$1;reactIs_production_min.ContextProvider=h;reactIs_production_min.Element=c;reactIs_production_min.ForwardRef=n;reactIs_production_min.Fragment=e;reactIs_production_min.Lazy=t;reactIs_production_min.Memo=r;reactIs_production_min.Portal=d;
2343
- reactIs_production_min.Profiler=g$1;reactIs_production_min.StrictMode=f;reactIs_production_min.Suspense=p;reactIs_production_min.isAsyncMode=function(a){return A(a)||z$1(a)===l};reactIs_production_min.isConcurrentMode=A;reactIs_production_min.isContextConsumer=function(a){return z$1(a)===k$1};reactIs_production_min.isContextProvider=function(a){return z$1(a)===h};reactIs_production_min.isElement=function(a){return "object"===typeof a&&null!==a&&a.$$typeof===c};reactIs_production_min.isForwardRef=function(a){return z$1(a)===n};reactIs_production_min.isFragment=function(a){return z$1(a)===e};reactIs_production_min.isLazy=function(a){return z$1(a)===t};
2344
- reactIs_production_min.isMemo=function(a){return z$1(a)===r};reactIs_production_min.isPortal=function(a){return z$1(a)===d};reactIs_production_min.isProfiler=function(a){return z$1(a)===g$1};reactIs_production_min.isStrictMode=function(a){return z$1(a)===f};reactIs_production_min.isSuspense=function(a){return z$1(a)===p};
2345
- reactIs_production_min.isValidElementType=function(a){return "string"===typeof a||"function"===typeof a||a===e||a===m||a===g$1||a===f||a===p||a===q$1||"object"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k$1||a.$$typeof===n||a.$$typeof===w$1||a.$$typeof===x$1||a.$$typeof===y$1||a.$$typeof===v$1)};reactIs_production_min.typeOf=z$1;
2454
+ var b$2="function"===typeof Symbol&&Symbol.for,c$1=b$2?Symbol.for("react.element"):60103,d$1=b$2?Symbol.for("react.portal"):60106,e=b$2?Symbol.for("react.fragment"):60107,f$1=b$2?Symbol.for("react.strict_mode"):60108,g$2=b$2?Symbol.for("react.profiler"):60114,h$1=b$2?Symbol.for("react.provider"):60109,k$1=b$2?Symbol.for("react.context"):60110,l=b$2?Symbol.for("react.async_mode"):60111,m$1=b$2?Symbol.for("react.concurrent_mode"):60111,n=b$2?Symbol.for("react.forward_ref"):60112,p$1=b$2?Symbol.for("react.suspense"):60113,q$2=b$2?
2455
+ Symbol.for("react.suspense_list"):60120,r=b$2?Symbol.for("react.memo"):60115,t=b$2?Symbol.for("react.lazy"):60116,v$2=b$2?Symbol.for("react.block"):60121,w$2=b$2?Symbol.for("react.fundamental"):60117,x$2=b$2?Symbol.for("react.responder"):60118,y$1=b$2?Symbol.for("react.scope"):60119;
2456
+ function z$2(a){if("object"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c$1:switch(a=a.type,a){case l:case m$1:case e:case g$2:case f$1:case p$1:return a;default:switch(a=a&&a.$$typeof,a){case k$1:case n:case t:case r:case h$1:return a;default:return u}}case d$1:return u}}}function A$1(a){return z$2(a)===m$1}reactIs_production_min.AsyncMode=l;reactIs_production_min.ConcurrentMode=m$1;reactIs_production_min.ContextConsumer=k$1;reactIs_production_min.ContextProvider=h$1;reactIs_production_min.Element=c$1;reactIs_production_min.ForwardRef=n;reactIs_production_min.Fragment=e;reactIs_production_min.Lazy=t;reactIs_production_min.Memo=r;reactIs_production_min.Portal=d$1;
2457
+ reactIs_production_min.Profiler=g$2;reactIs_production_min.StrictMode=f$1;reactIs_production_min.Suspense=p$1;reactIs_production_min.isAsyncMode=function(a){return A$1(a)||z$2(a)===l};reactIs_production_min.isConcurrentMode=A$1;reactIs_production_min.isContextConsumer=function(a){return z$2(a)===k$1};reactIs_production_min.isContextProvider=function(a){return z$2(a)===h$1};reactIs_production_min.isElement=function(a){return "object"===typeof a&&null!==a&&a.$$typeof===c$1};reactIs_production_min.isForwardRef=function(a){return z$2(a)===n};reactIs_production_min.isFragment=function(a){return z$2(a)===e};reactIs_production_min.isLazy=function(a){return z$2(a)===t};
2458
+ reactIs_production_min.isMemo=function(a){return z$2(a)===r};reactIs_production_min.isPortal=function(a){return z$2(a)===d$1};reactIs_production_min.isProfiler=function(a){return z$2(a)===g$2};reactIs_production_min.isStrictMode=function(a){return z$2(a)===f$1};reactIs_production_min.isSuspense=function(a){return z$2(a)===p$1};
2459
+ reactIs_production_min.isValidElementType=function(a){return "string"===typeof a||"function"===typeof a||a===e||a===m$1||a===g$2||a===f$1||a===p$1||a===q$2||"object"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h$1||a.$$typeof===k$1||a.$$typeof===n||a.$$typeof===w$2||a.$$typeof===x$2||a.$$typeof===y$1||a.$$typeof===v$2)};reactIs_production_min.typeOf=z$2;
2346
2460
 
2347
2461
  {
2348
2462
  reactIs$1.exports = reactIs_production_min;
@@ -2450,7 +2564,7 @@
2450
2564
 
2451
2565
  var hoistNonReactStatics_cjs = hoistNonReactStatics;
2452
2566
 
2453
- function y(){return (y=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e}).apply(this,arguments)}var v=function(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n},g=function(t){return null!==t&&"object"==typeof t&&"[object Object]"===(t.toString?t.toString():Object.prototype.toString.call(t))&&!reactIs$2.exports.typeOf(t)},S=Object.freeze([]),w=Object.freeze({});function E(e){return "function"==typeof e}function b(e){return e.displayName||e.name||"Component"}function _(e){return e&&"string"==typeof e.styledComponentId}var N="undefined"!=typeof process&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",C="undefined"!=typeof window&&"HTMLElement"in window,I=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY?"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY:"production"!=="production");function D(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(n.length>0?" Args: "+n.join(", "):""))}var j=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e;}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)(o<<=1)<0&&D(16,""+e);this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var s=r;s<o;s++)this.groupSizes[s]=0;}for(var i=this.indexOfGroup(e+1),a=0,c=t.length;a<c;a++)this.tag.insertRule(i,t[a])&&(this.groupSizes[e]++,i++);},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var o=n;o<r;o++)this.tag.deleteRule(n);}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n,s=r;s<o;s++)t+=this.tag.getRule(s)+"/*!sc*/\n";return t},e}(),T=new Map,x=new Map,k=1,V=function(e){if(T.has(e))return T.get(e);for(;x.has(k);)k++;var t=k++;return T.set(e,t),x.set(t,e),t},z=function(e){return x.get(e)},B=function(e,t){t>=k&&(k=t+1),T.set(e,t),x.set(t,e);},M="style["+N+'][data-styled-version="5.3.5"]',G=new RegExp("^"+N+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),L=function(e,t,n){for(var r,o=n.split(","),s=0,i=o.length;s<i;s++)(r=o[s])&&e.registerName(t,r);},F=function(e,t){for(var n=(t.textContent||"").split("/*!sc*/\n"),r=[],o=0,s=n.length;o<s;o++){var i=n[o].trim();if(i){var a=i.match(G);if(a){var c=0|parseInt(a[1],10),u=a[2];0!==c&&(B(u,c),L(e,u,a[3]),e.getTag().insertRules(c,r)),r.length=0;}else r.push(i);}}},Y=function(){return "undefined"!=typeof window&&void 0!==window.__webpack_nonce__?window.__webpack_nonce__:null},q=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(e){for(var t=e.childNodes,n=t.length;n>=0;n--){var r=t[n];if(r&&1===r.nodeType&&r.hasAttribute(N))return r}}(n),s=void 0!==o?o.nextSibling:null;r.setAttribute(N,"active"),r.setAttribute("data-styled-version","5.3.5");var i=Y();return i&&r.setAttribute("nonce",i),n.insertBefore(r,s),r},H=function(){function e(e){var t=this.element=q(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var o=t[n];if(o.ownerNode===e)return o}D(17);}(t),this.length=0;}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return !1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--;},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),$=function(){function e(e){var t=this.element=q(e);this.nodes=t.childNodes,this.length=0;}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t),r=this.nodes[e];return this.element.insertBefore(n,r||null),this.length++,!0}return !1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--;},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),W=function(){function e(e){this.rules=[],this.length=0;}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--;},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),U=C,J={isServer:!C,useCSSOMInjection:!I},X=function(){function e(e,t,n){void 0===e&&(e=w),void 0===t&&(t={}),this.options=y({},J,{},e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&C&&U&&(U=!1,function(e){for(var t=document.querySelectorAll(M),n=0,r=t.length;n<r;n++){var o=t[n];o&&"active"!==o.getAttribute(N)&&(F(e,o),o.parentNode&&o.parentNode.removeChild(o));}}(this));}e.registerId=function(e){return V(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(y({},this.options,{},t),this.gs,n&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(n=(t=this.options).isServer,r=t.useCSSOMInjection,o=t.target,e=n?new W(o):r?new H(o):new $(o),new j(e)));var e,t,n,r,o;},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(V(e),this.names.has(e))this.names.get(e).add(t);else {var n=new Set;n.add(t),this.names.set(e,n);}},t.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(V(e),n);},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear();},t.clearRules=function(e){this.getTag().clearGroup(V(e)),this.clearNames(e);},t.clearTag=function(){this.tag=void 0;},t.toString=function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=0;o<n;o++){var s=z(o);if(void 0!==s){var i=e.names.get(s),a=t.getGroup(o);if(i&&a&&i.size){var c=N+".g"+o+'[id="'+s+'"]',u="";void 0!==i&&i.forEach((function(e){e.length>0&&(u+=e+",");})),r+=""+a+c+'{content:"'+u+'"}/*!sc*/\n';}}}return r}(this)},e}(),Z=/(a)(d)/gi,K=function(e){return String.fromCharCode(e+(e>25?39:97))};function Q(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=K(t%52)+n;return (K(t%52)+n).replace(Z,"$1-$2")}var ee=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},te=function(e){return ee(5381,e)};function ne(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(E(n)&&!_(n))return !1}return !0}var re=te("5.3.5"),oe=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&ne(e),this.componentId=t,this.baseHash=ee(re,t),this.baseStyle=n,X.registerId(t);}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.componentId,o=[];if(this.baseStyle&&o.push(this.baseStyle.generateAndInjectStyles(e,t,n)),this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(r,this.staticRulesId))o.push(this.staticRulesId);else {var s=_e(this.rules,e,t,n).join(""),i=Q(ee(this.baseHash,s)>>>0);if(!t.hasNameForId(r,i)){var a=n(s,"."+i,void 0,r);t.insertRules(r,i,a);}o.push(i),this.staticRulesId=i;}else {for(var c=this.rules.length,u=ee(this.baseHash,n.hash),l="",d=0;d<c;d++){var h=this.rules[d];if("string"==typeof h)l+=h;else if(h){var p=_e(h,e,t,n),f=Array.isArray(p)?p.join(""):p;u=ee(u,f+d),l+=f;}}if(l){var m=Q(u>>>0);if(!t.hasNameForId(r,m)){var y=n(l,"."+m,void 0,r);t.insertRules(r,m,y);}o.push(m);}}return o.join(" ")},e}(),se=/^\s*\/\/.*$/gm,ie=[":","[",".","#"];function ae(e){var t,n,r,o,s=void 0===e?w:e,i=s.options,a=void 0===i?w:i,c=s.plugins,u=void 0===c?S:c,l=new stylis_min(a),d=[],p=function(e){function t(t){if(t)try{e(t+"}");}catch(e){}}return function(n,r,o,s,i,a,c,u,l,d){switch(n){case 1:if(0===l&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===u)return r+"/*|*/";break;case 3:switch(u){case 102:case 112:return e(o[0]+r),"";default:return r+(0===d?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t);}}}((function(e){d.push(e);})),f=function(e,r,s){return 0===r&&-1!==ie.indexOf(s[n.length])||s.match(o)?e:"."+t};function m(e,s,i,a){void 0===a&&(a="&");var c=e.replace(se,""),u=s&&i?i+" "+s+" { "+c+" }":c;return t=a,n=s,r=new RegExp("\\"+n+"\\b","g"),o=new RegExp("(\\"+n+"\\b){2,}"),l(i||!s?"":s,u)}return l.use([].concat(u,[function(e,t,o){2===e&&o.length&&o[0].lastIndexOf(n)>0&&(o[0]=o[0].replace(r,f));},p,function(e){if(-2===e){var t=d;return d=[],t}}])),m.hash=u.length?u.reduce((function(e,t){return t.name||D(15),ee(e,t.name)}),5381).toString():"",m}var ce=React__default["default"].createContext();ce.Consumer;var le=React__default["default"].createContext(),de=(le.Consumer,new X),he=ae();function pe(){return React.useContext(ce)||de}function fe(){return React.useContext(le)||he}var ye=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=he);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"));},this.toString=function(){return D(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t;}return e.prototype.getName=function(e){return void 0===e&&(e=he),this.name+e.hash},e}(),ve=/([A-Z])/,ge=/([A-Z])/g,Se=/^ms-/,we=function(e){return "-"+e.toLowerCase()};function Ee(e){return ve.test(e)?e.replace(ge,we).replace(Se,"-ms-"):e}var be=function(e){return null==e||!1===e||""===e};function _e(e,n,r,o){if(Array.isArray(e)){for(var s,i=[],a=0,c=e.length;a<c;a+=1)""!==(s=_e(e[a],n,r,o))&&(Array.isArray(s)?i.push.apply(i,s):i.push(s));return i}if(be(e))return "";if(_(e))return "."+e.styledComponentId;if(E(e)){if("function"!=typeof(l=e)||l.prototype&&l.prototype.isReactComponent||!n)return e;var u=e(n);return _e(u,n,r,o)}var l;return e instanceof ye?r?(e.inject(r,o),e.getName(o)):e:g(e)?function e(t,n){var r,o,s=[];for(var i in t)t.hasOwnProperty(i)&&!be(t[i])&&(Array.isArray(t[i])&&t[i].isCss||E(t[i])?s.push(Ee(i)+":",t[i],";"):g(t[i])?s.push.apply(s,e(t[i],i)):s.push(Ee(i)+": "+(r=i,null==(o=t[i])||"boolean"==typeof o||""===o?"":"number"!=typeof o||0===o||r in unitlessKeys?String(o).trim():o+"px")+";"));return n?[n+" {"].concat(s,["}"]):s}(e):e.toString()}var Ne=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function Ae(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return E(e)||g(e)?Ne(_e(v(S,[e].concat(n)))):0===n.length&&1===e.length&&"string"==typeof e[0]?e:Ne(_e(v(e,n)))}var Oe=function(e,t,n){return void 0===n&&(n=w),e.theme!==n.theme&&e.theme||t||n.theme},Re=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,De=/(^-|-$)/g;function je(e){return e.replace(Re,"-").replace(De,"")}var Te=function(e){return Q(te(e)>>>0)};function xe(e){return "string"==typeof e&&("production"==="production")}var ke=function(e){return "function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},Ve=function(e){return "__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function ze(e,t,n){var r=e[n];ke(t)&&ke(r)?Be(r,t):e[n]=t;}function Be(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var o=0,s=n;o<s.length;o++){var i=s[o];if(ke(i))for(var a in i)Ve(a)&&ze(e,i[a],a);}return e}var Me=React__default["default"].createContext();Me.Consumer;var Fe={};function Ye(e,t,n){var o=_(e),i=!xe(e),a=t.attrs,c=void 0===a?S:a,d=t.componentId,h=void 0===d?function(e,t){var n="string"!=typeof e?"sc":je(e);Fe[n]=(Fe[n]||0)+1;var r=n+"-"+Te("5.3.5"+n+Fe[n]);return t?t+"-"+r:r}(t.displayName,t.parentComponentId):d,p=t.displayName,v=void 0===p?function(e){return xe(e)?"styled."+e:"Styled("+b(e)+")"}(e):p,g=t.displayName&&t.componentId?je(t.displayName)+"-"+t.componentId:t.componentId||h,N=o&&e.attrs?Array.prototype.concat(e.attrs,c).filter(Boolean):c,A=t.shouldForwardProp;o&&e.shouldForwardProp&&(A=t.shouldForwardProp?function(n,r,o){return e.shouldForwardProp(n,r,o)&&t.shouldForwardProp(n,r,o)}:e.shouldForwardProp);var C,I=new oe(n,g,o?e.componentStyle:void 0),P=I.isStatic&&0===c.length,O=function(e,t){return function(e,t,n,r){var o=e.attrs,i=e.componentStyle,a=e.defaultProps,c=e.foldedComponentIds,d=e.shouldForwardProp,h=e.styledComponentId,p=e.target;var m=function(e,t,n){void 0===e&&(e=w);var r=y({},t,{theme:e}),o={};return n.forEach((function(e){var t,n,s,i=e;for(t in E(i)&&(i=i(r)),i)r[t]=o[t]="className"===t?(n=o[t],s=i[t],n&&s?n+" "+s:n||s):i[t];})),[r,o]}(Oe(t,React.useContext(Me),a)||w,t,o),v=m[0],g=m[1],S=function(e,t,n,r){var o=pe(),s=fe(),i=t?e.generateAndInjectStyles(w,o,s):e.generateAndInjectStyles(n,o,s);return i}(i,r,v),b=n,_=g.$as||t.$as||g.as||t.as||p,N=xe(_),A=g!==t?y({},t,{},g):t,C={};for(var I in A)"$"!==I[0]&&"as"!==I&&("forwardedAs"===I?C.as=A[I]:(d?d(I,isPropValid,_):!N||isPropValid(I))&&(C[I]=A[I]));return t.style&&g.style!==t.style&&(C.style=y({},t.style,{},g.style)),C.className=Array.prototype.concat(c,h,S!==h?S:null,t.className,g.className).filter(Boolean).join(" "),C.ref=b,React.createElement(_,C)}(C,e,t,P)};return O.displayName=v,(C=React__default["default"].forwardRef(O)).attrs=N,C.componentStyle=I,C.displayName=v,C.shouldForwardProp=A,C.foldedComponentIds=o?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):S,C.styledComponentId=g,C.target=o?e.target:e,C.withComponent=function(e){var r=t.componentId,o=function(e,t){if(null==e)return {};var n,r,o={},s=Object.keys(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(t,["componentId"]),s=r&&r+"-"+(xe(e)?e:je(b(e)));return Ye(e,y({},o,{attrs:N,componentId:s}),n)},Object.defineProperty(C,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=o?Be({},e.defaultProps,t):t;}}),C.toString=function(){return "."+C.styledComponentId},i&&hoistNonReactStatics_cjs(C,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),C}var qe=function(e){return function e(t,r,o){if(void 0===o&&(o=w),!reactIs$2.exports.isValidElementType(r))return D(1,String(r));var s=function(){return t(r,o,Ae.apply(void 0,arguments))};return s.withConfig=function(n){return e(t,r,y({},o,{},n))},s.attrs=function(n){return e(t,r,y({},o,{attrs:Array.prototype.concat(o.attrs,n).filter(Boolean)}))},s}(Ye,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(e){qe[e]=qe(e);}));var styled$4 = qe;
2567
+ function y(){return (y=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e}).apply(this,arguments)}var v$1=function(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n},g$1=function(t){return null!==t&&"object"==typeof t&&"[object Object]"===(t.toString?t.toString():Object.prototype.toString.call(t))&&!reactIs$2.exports.typeOf(t)},S=Object.freeze([]),w$1=Object.freeze({});function E(e){return "function"==typeof e}function b$1(e){return e.displayName||e.name||"Component"}function _(e){return e&&"string"==typeof e.styledComponentId}var N$1="undefined"!=typeof process&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",C="undefined"!=typeof window&&"HTMLElement"in window,I=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY?"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY:"production"!=="production");function D(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(n.length>0?" Args: "+n.join(", "):""))}var j=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e;}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)(o<<=1)<0&&D(16,""+e);this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var s=r;s<o;s++)this.groupSizes[s]=0;}for(var i=this.indexOfGroup(e+1),a=0,c=t.length;a<c;a++)this.tag.insertRule(i,t[a])&&(this.groupSizes[e]++,i++);},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var o=n;o<r;o++)this.tag.deleteRule(n);}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n,s=r;s<o;s++)t+=this.tag.getRule(s)+"/*!sc*/\n";return t},e}(),T$1=new Map,x$1=new Map,k=1,V$1=function(e){if(T$1.has(e))return T$1.get(e);for(;x$1.has(k);)k++;var t=k++;return T$1.set(e,t),x$1.set(t,e),t},z$1=function(e){return x$1.get(e)},B$1=function(e,t){t>=k&&(k=t+1),T$1.set(e,t),x$1.set(t,e);},M="style["+N$1+'][data-styled-version="5.3.5"]',G$1=new RegExp("^"+N$1+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),L$1=function(e,t,n){for(var r,o=n.split(","),s=0,i=o.length;s<i;s++)(r=o[s])&&e.registerName(t,r);},F=function(e,t){for(var n=(t.textContent||"").split("/*!sc*/\n"),r=[],o=0,s=n.length;o<s;o++){var i=n[o].trim();if(i){var a=i.match(G$1);if(a){var c=0|parseInt(a[1],10),u=a[2];0!==c&&(B$1(u,c),L$1(e,u,a[3]),e.getTag().insertRules(c,r)),r.length=0;}else r.push(i);}}},Y=function(){return "undefined"!=typeof window&&void 0!==window.__webpack_nonce__?window.__webpack_nonce__:null},q$1=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(e){for(var t=e.childNodes,n=t.length;n>=0;n--){var r=t[n];if(r&&1===r.nodeType&&r.hasAttribute(N$1))return r}}(n),s=void 0!==o?o.nextSibling:null;r.setAttribute(N$1,"active"),r.setAttribute("data-styled-version","5.3.5");var i=Y();return i&&r.setAttribute("nonce",i),n.insertBefore(r,s),r},H=function(){function e(e){var t=this.element=q$1(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var o=t[n];if(o.ownerNode===e)return o}D(17);}(t),this.length=0;}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return !1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--;},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),$$1=function(){function e(e){var t=this.element=q$1(e);this.nodes=t.childNodes,this.length=0;}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t),r=this.nodes[e];return this.element.insertBefore(n,r||null),this.length++,!0}return !1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--;},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),W=function(){function e(e){this.rules=[],this.length=0;}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--;},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),U=C,J$1={isServer:!C,useCSSOMInjection:!I},X$1=function(){function e(e,t,n){void 0===e&&(e=w$1),void 0===t&&(t={}),this.options=y({},J$1,{},e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&C&&U&&(U=!1,function(e){for(var t=document.querySelectorAll(M),n=0,r=t.length;n<r;n++){var o=t[n];o&&"active"!==o.getAttribute(N$1)&&(F(e,o),o.parentNode&&o.parentNode.removeChild(o));}}(this));}e.registerId=function(e){return V$1(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(y({},this.options,{},t),this.gs,n&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(n=(t=this.options).isServer,r=t.useCSSOMInjection,o=t.target,e=n?new W(o):r?new H(o):new $$1(o),new j(e)));var e,t,n,r,o;},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(V$1(e),this.names.has(e))this.names.get(e).add(t);else {var n=new Set;n.add(t),this.names.set(e,n);}},t.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(V$1(e),n);},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear();},t.clearRules=function(e){this.getTag().clearGroup(V$1(e)),this.clearNames(e);},t.clearTag=function(){this.tag=void 0;},t.toString=function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=0;o<n;o++){var s=z$1(o);if(void 0!==s){var i=e.names.get(s),a=t.getGroup(o);if(i&&a&&i.size){var c=N$1+".g"+o+'[id="'+s+'"]',u="";void 0!==i&&i.forEach((function(e){e.length>0&&(u+=e+",");})),r+=""+a+c+'{content:"'+u+'"}/*!sc*/\n';}}}return r}(this)},e}(),Z=/(a)(d)/gi,K$1=function(e){return String.fromCharCode(e+(e>25?39:97))};function Q(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=K$1(t%52)+n;return (K$1(t%52)+n).replace(Z,"$1-$2")}var ee=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},te=function(e){return ee(5381,e)};function ne(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(E(n)&&!_(n))return !1}return !0}var re=te("5.3.5"),oe=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&ne(e),this.componentId=t,this.baseHash=ee(re,t),this.baseStyle=n,X$1.registerId(t);}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.componentId,o=[];if(this.baseStyle&&o.push(this.baseStyle.generateAndInjectStyles(e,t,n)),this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(r,this.staticRulesId))o.push(this.staticRulesId);else {var s=_e(this.rules,e,t,n).join(""),i=Q(ee(this.baseHash,s)>>>0);if(!t.hasNameForId(r,i)){var a=n(s,"."+i,void 0,r);t.insertRules(r,i,a);}o.push(i),this.staticRulesId=i;}else {for(var c=this.rules.length,u=ee(this.baseHash,n.hash),l="",d=0;d<c;d++){var h=this.rules[d];if("string"==typeof h)l+=h;else if(h){var p=_e(h,e,t,n),f=Array.isArray(p)?p.join(""):p;u=ee(u,f+d),l+=f;}}if(l){var m=Q(u>>>0);if(!t.hasNameForId(r,m)){var y=n(l,"."+m,void 0,r);t.insertRules(r,m,y);}o.push(m);}}return o.join(" ")},e}(),se=/^\s*\/\/.*$/gm,ie=[":","[",".","#"];function ae(e){var t,n,r,o,s=void 0===e?w$1:e,i=s.options,a=void 0===i?w$1:i,c=s.plugins,u=void 0===c?S:c,l=new stylis_min(a),d=[],p=function(e){function t(t){if(t)try{e(t+"}");}catch(e){}}return function(n,r,o,s,i,a,c,u,l,d){switch(n){case 1:if(0===l&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===u)return r+"/*|*/";break;case 3:switch(u){case 102:case 112:return e(o[0]+r),"";default:return r+(0===d?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t);}}}((function(e){d.push(e);})),f=function(e,r,s){return 0===r&&-1!==ie.indexOf(s[n.length])||s.match(o)?e:"."+t};function m(e,s,i,a){void 0===a&&(a="&");var c=e.replace(se,""),u=s&&i?i+" "+s+" { "+c+" }":c;return t=a,n=s,r=new RegExp("\\"+n+"\\b","g"),o=new RegExp("(\\"+n+"\\b){2,}"),l(i||!s?"":s,u)}return l.use([].concat(u,[function(e,t,o){2===e&&o.length&&o[0].lastIndexOf(n)>0&&(o[0]=o[0].replace(r,f));},p,function(e){if(-2===e){var t=d;return d=[],t}}])),m.hash=u.length?u.reduce((function(e,t){return t.name||D(15),ee(e,t.name)}),5381).toString():"",m}var ce=React__default["default"].createContext();ce.Consumer;var le=React__default["default"].createContext(),de=(le.Consumer,new X$1),he=ae();function pe(){return React.useContext(ce)||de}function fe(){return React.useContext(le)||he}var ye=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=he);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"));},this.toString=function(){return D(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t;}return e.prototype.getName=function(e){return void 0===e&&(e=he),this.name+e.hash},e}(),ve=/([A-Z])/,ge=/([A-Z])/g,Se=/^ms-/,we=function(e){return "-"+e.toLowerCase()};function Ee(e){return ve.test(e)?e.replace(ge,we).replace(Se,"-ms-"):e}var be=function(e){return null==e||!1===e||""===e};function _e(e,n,r,o){if(Array.isArray(e)){for(var s,i=[],a=0,c=e.length;a<c;a+=1)""!==(s=_e(e[a],n,r,o))&&(Array.isArray(s)?i.push.apply(i,s):i.push(s));return i}if(be(e))return "";if(_(e))return "."+e.styledComponentId;if(E(e)){if("function"!=typeof(l=e)||l.prototype&&l.prototype.isReactComponent||!n)return e;var u=e(n);return _e(u,n,r,o)}var l;return e instanceof ye?r?(e.inject(r,o),e.getName(o)):e:g$1(e)?function e(t,n){var r,o,s=[];for(var i in t)t.hasOwnProperty(i)&&!be(t[i])&&(Array.isArray(t[i])&&t[i].isCss||E(t[i])?s.push(Ee(i)+":",t[i],";"):g$1(t[i])?s.push.apply(s,e(t[i],i)):s.push(Ee(i)+": "+(r=i,null==(o=t[i])||"boolean"==typeof o||""===o?"":"number"!=typeof o||0===o||r in unitlessKeys?String(o).trim():o+"px")+";"));return n?[n+" {"].concat(s,["}"]):s}(e):e.toString()}var Ne=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function Ae(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return E(e)||g$1(e)?Ne(_e(v$1(S,[e].concat(n)))):0===n.length&&1===e.length&&"string"==typeof e[0]?e:Ne(_e(v$1(e,n)))}var Oe=function(e,t,n){return void 0===n&&(n=w$1),e.theme!==n.theme&&e.theme||t||n.theme},Re=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,De=/(^-|-$)/g;function je(e){return e.replace(Re,"-").replace(De,"")}var Te=function(e){return Q(te(e)>>>0)};function xe(e){return "string"==typeof e&&("production"==="production")}var ke=function(e){return "function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},Ve=function(e){return "__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function ze(e,t,n){var r=e[n];ke(t)&&ke(r)?Be(r,t):e[n]=t;}function Be(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var o=0,s=n;o<s.length;o++){var i=s[o];if(ke(i))for(var a in i)Ve(a)&&ze(e,i[a],a);}return e}var Me=React__default["default"].createContext();Me.Consumer;var Fe={};function Ye(e,t,n){var o=_(e),i=!xe(e),a=t.attrs,c=void 0===a?S:a,d=t.componentId,h=void 0===d?function(e,t){var n="string"!=typeof e?"sc":je(e);Fe[n]=(Fe[n]||0)+1;var r=n+"-"+Te("5.3.5"+n+Fe[n]);return t?t+"-"+r:r}(t.displayName,t.parentComponentId):d,p=t.displayName,v=void 0===p?function(e){return xe(e)?"styled."+e:"Styled("+b$1(e)+")"}(e):p,g=t.displayName&&t.componentId?je(t.displayName)+"-"+t.componentId:t.componentId||h,N=o&&e.attrs?Array.prototype.concat(e.attrs,c).filter(Boolean):c,A=t.shouldForwardProp;o&&e.shouldForwardProp&&(A=t.shouldForwardProp?function(n,r,o){return e.shouldForwardProp(n,r,o)&&t.shouldForwardProp(n,r,o)}:e.shouldForwardProp);var C,I=new oe(n,g,o?e.componentStyle:void 0),P=I.isStatic&&0===c.length,O=function(e,t){return function(e,t,n,r){var o=e.attrs,i=e.componentStyle,a=e.defaultProps,c=e.foldedComponentIds,d=e.shouldForwardProp,h=e.styledComponentId,p=e.target;var m=function(e,t,n){void 0===e&&(e=w$1);var r=y({},t,{theme:e}),o={};return n.forEach((function(e){var t,n,s,i=e;for(t in E(i)&&(i=i(r)),i)r[t]=o[t]="className"===t?(n=o[t],s=i[t],n&&s?n+" "+s:n||s):i[t];})),[r,o]}(Oe(t,React.useContext(Me),a)||w$1,t,o),v=m[0],g=m[1],S=function(e,t,n,r){var o=pe(),s=fe(),i=t?e.generateAndInjectStyles(w$1,o,s):e.generateAndInjectStyles(n,o,s);return i}(i,r,v),b=n,_=g.$as||t.$as||g.as||t.as||p,N=xe(_),A=g!==t?y({},t,{},g):t,C={};for(var I in A)"$"!==I[0]&&"as"!==I&&("forwardedAs"===I?C.as=A[I]:(d?d(I,isPropValid,_):!N||isPropValid(I))&&(C[I]=A[I]));return t.style&&g.style!==t.style&&(C.style=y({},t.style,{},g.style)),C.className=Array.prototype.concat(c,h,S!==h?S:null,t.className,g.className).filter(Boolean).join(" "),C.ref=b,React.createElement(_,C)}(C,e,t,P)};return O.displayName=v,(C=React__default["default"].forwardRef(O)).attrs=N,C.componentStyle=I,C.displayName=v,C.shouldForwardProp=A,C.foldedComponentIds=o?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):S,C.styledComponentId=g,C.target=o?e.target:e,C.withComponent=function(e){var r=t.componentId,o=function(e,t){if(null==e)return {};var n,r,o={},s=Object.keys(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(t,["componentId"]),s=r&&r+"-"+(xe(e)?e:je(b$1(e)));return Ye(e,y({},o,{attrs:N,componentId:s}),n)},Object.defineProperty(C,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=o?Be({},e.defaultProps,t):t;}}),C.toString=function(){return "."+C.styledComponentId},i&&hoistNonReactStatics_cjs(C,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),C}var qe=function(e){return function e(t,r,o){if(void 0===o&&(o=w$1),!reactIs$2.exports.isValidElementType(r))return D(1,String(r));var s=function(){return t(r,o,Ae.apply(void 0,arguments))};return s.withConfig=function(n){return e(t,r,y({},o,{},n))},s.attrs=function(n){return e(t,r,y({},o,{attrs:Array.prototype.concat(o.attrs,n).filter(Boolean)}))},s}(Ye,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(e){qe[e]=qe(e);}));var styled$a = qe;
2454
2568
 
2455
2569
  var mainPallet = {
2456
2570
  primary: {
@@ -2558,7 +2672,7 @@
2558
2672
  yellowPressed: alert.pressed,
2559
2673
  transparentWhite: 'rgba(256, 256, 256, 0.5)'
2560
2674
  };
2561
- var colors = _objectSpread2(_objectSpread2({}, viewsPallet), mainPallet);
2675
+ var palette = _objectSpread2(_objectSpread2({}, viewsPallet), mainPallet);
2562
2676
 
2563
2677
  var lodash = {exports: {}};
2564
2678
 
@@ -19777,8 +19891,8 @@
19777
19891
  var color = arguments.length > 1 ? arguments[1] : undefined;
19778
19892
  var currentColor = color ? "".concat(type, ".").concat(color) : type;
19779
19893
  var currentType = color ? type : currentColor.split('.')[0];
19780
- var selectedColor = lodash.exports.get(colors, currentColor);
19781
- selectedColor = lodash.exports.isObject(selectedColor) ? lodash.exports.get(colors, "".concat(currentType, ".main")) : selectedColor;
19894
+ var selectedColor = lodash.exports.get(palette, currentColor);
19895
+ selectedColor = lodash.exports.isObject(selectedColor) ? lodash.exports.get(palette, "".concat(currentType, ".main")) : selectedColor;
19782
19896
  return selectedColor || currentColor;
19783
19897
  };
19784
19898
 
@@ -19807,8 +19921,8 @@
19807
19921
  return Ae(["transition:", ";", ";"], transition, transitionProperty);
19808
19922
  },
19809
19923
  scrollbar: function scrollbar(thumbColor, shadowColor) {
19810
- var colors$1 = colors.colors;
19811
- return Ae(["&::-webkit-scrollbar{width:5px;}&::-webkit-scrollbar-track{box-shadow:inset 0 0 6px ", ";}&::-webkit-scrollbar-thumb{height:5px;width:4px;border-radius:50px;background-color:", ";}"], shadowColor || colors$1.white, thumbColor);
19924
+ var colors = palette.colors;
19925
+ return Ae(["&::-webkit-scrollbar{width:5px;}&::-webkit-scrollbar-track{box-shadow:inset 0 0 6px ", ";}&::-webkit-scrollbar-thumb{height:5px;width:4px;border-radius:50px;background-color:", ";}"], shadowColor || colors.white, thumbColor);
19812
19926
  }
19813
19927
  };
19814
19928
 
@@ -19862,17 +19976,17 @@
19862
19976
  }
19863
19977
  };
19864
19978
 
19865
- var _templateObject$2;
19979
+ var _templateObject$4;
19866
19980
  var styles = {
19867
- Svg: styled$4.svg.withConfig({
19981
+ Svg: styled$a.svg.withConfig({
19868
19982
  displayName: "styles__Svg",
19869
19983
  componentId: "sc-jf3e5i-0"
19870
19984
  })(["fill:", ";", " ", ";"], function (props) {
19871
19985
  return getColor$1(props.color);
19872
- }, mediaBreaks.onlyPrint(_templateObject$2 || (_templateObject$2 = _taggedTemplateLiteral(["\n\t\t\tfill: ", ";\n\t\t"])), colors.darkGrey), function (props) {
19986
+ }, mediaBreaks.onlyPrint(_templateObject$4 || (_templateObject$4 = _taggedTemplateLiteral(["\n\t\t\tfill: ", ";\n\t\t"])), palette.darkGrey), function (props) {
19873
19987
  return props.styles;
19874
19988
  }),
19875
- Path: styled$4.path.withConfig({
19989
+ Path: styled$a.path.withConfig({
19876
19990
  displayName: "styles__Path",
19877
19991
  componentId: "sc-jf3e5i-1"
19878
19992
  })(["fill:inherit;", ";"], function (props) {
@@ -19880,17 +19994,17 @@
19880
19994
  })
19881
19995
  };
19882
19996
  ({
19883
- Grid: styled$4.div.withConfig({
19997
+ Grid: styled$a.div.withConfig({
19884
19998
  displayName: "styles__Grid",
19885
19999
  componentId: "sc-jf3e5i-2"
19886
20000
  })(["display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));grid-gap:15px;"]),
19887
- Item: styled$4.div.withConfig({
20001
+ Item: styled$a.div.withConfig({
19888
20002
  displayName: "styles__Item",
19889
20003
  componentId: "sc-jf3e5i-3"
19890
- })(["padding:5px;border:1px dashed #ccc;cursor:default;display:grid;justify-items:center;justify-content:center;grid-row-gap:5px;", ";& ", "{", ";}&:hover{color:", ";}&:hover ", "{fill:", ";}"], mixins.transition('color'), styles.Svg, mixins.transition('fill'), colors.blue, styles.Svg, colors.blue)
20004
+ })(["padding:5px;border:1px dashed #ccc;cursor:default;display:grid;justify-items:center;justify-content:center;grid-row-gap:5px;", ";& ", "{", ";}&:hover{color:", ";}&:hover ", "{fill:", ";}"], mixins.transition('color'), styles.Svg, mixins.transition('fill'), palette.blue, styles.Svg, palette.blue)
19891
20005
  });
19892
20006
 
19893
- var _excluded$4 = ["color", "name", "size", "styles", "pathStyles", "width", "height", "viewBox"];
20007
+ var _excluded$8 = ["color", "name", "size", "styles", "pathStyles", "width", "height", "viewBox"];
19894
20008
 
19895
20009
  var Icon = function Icon(_ref) {
19896
20010
  var color = _ref.color,
@@ -19901,7 +20015,7 @@
19901
20015
  width = _ref.width,
19902
20016
  height = _ref.height,
19903
20017
  viewBox = _ref.viewBox,
19904
- props = _objectWithoutProperties(_ref, _excluded$4);
20018
+ props = _objectWithoutProperties(_ref, _excluded$8);
19905
20019
 
19906
20020
  var iconProps = icons[name];
19907
20021
  if (!iconProps) return null;
@@ -19909,7 +20023,7 @@
19909
20023
  defaultSize = iconProps.size;
19910
20024
  var size = sizeProp || defaultSize;
19911
20025
  if (!path) return null;
19912
- return /*#__PURE__*/React__default["default"].createElement(styles.Svg, _extends({
20026
+ return /*#__PURE__*/React__default["default"].createElement(styles.Svg, _extends$2({
19913
20027
  width: width || size,
19914
20028
  height: height || size,
19915
20029
  styles: styles$1,
@@ -19962,16 +20076,16 @@
19962
20076
  };
19963
20077
 
19964
20078
  var getColor = function getColor(color) {
19965
- return isValidColor(color) ? findColor(color) : colors.blue;
20079
+ return isValidColor(color) ? findColor(color) : palette.blue;
19966
20080
  };
19967
20081
  var getHoverColor = function getHoverColor(color) {
19968
- return isValidColor(color) ? findColor(color, 'hover') : colors.blueHover;
20082
+ return isValidColor(color) ? findColor(color, 'hover') : palette.blueHover;
19969
20083
  };
19970
20084
  var getPressedColor = function getPressedColor(color) {
19971
- return isValidColor(color) ? findColor(color, 'pressed') : colors.bluePressed;
20085
+ return isValidColor(color) ? findColor(color, 'pressed') : palette.bluePressed;
19972
20086
  };
19973
20087
 
19974
- var StyledButton = styled$4.button.withConfig({
20088
+ var StyledButton = styled$a.button.withConfig({
19975
20089
  displayName: "styles",
19976
20090
  componentId: "sc-buf2do-0"
19977
20091
  })(["display:flex;align-items:center;justify-content:center;height:36px;width:", ";flex-shrink:", ";border-radius:", ";padding:", ";cursor:", ";border:", ";font-size:13px;font-weight:500;position:relative;", ";z-index:0;&:before{content:'';border-radius:50px;position:absolute;left:0;top:0;z-index:-1;width:100%;height:100%;}&:after{content:'';border-radius:50px;position:absolute;z-index:-1;width:100%;height:100%;transition:all 0.25s ", ";transform:scale(0,0);top:0;bottom:0;left:0;right:0;}&:focus:after,&:hover:after,&:active:after{transform:scale(1,1);}&:active{-webkit-tap-highlight-color:", ";}", "{margin-right:", ";fill:", ";", ";}", ";", "{fill:", ";}", ";"], function (props) {
@@ -19986,16 +20100,16 @@
19986
20100
  return props.disabled ? 'default' : 'pointer';
19987
20101
  }, function (props) {
19988
20102
  return props.variant === 'outlined' ? "1px solid ".concat(getColor$1('grey')) : 'none';
19989
- }, mixins.transition('background-color', '250ms'), timingFunctions$1.standard, colors.transparentWhite, StyledIcon, function (props) {
20103
+ }, mixins.transition('background-color', '250ms'), timingFunctions$1.standard, palette.transparentWhite, StyledIcon, function (props) {
19990
20104
  return props.hasText && '8px';
19991
- }, colors.white, mixins.transition('fill', '250ms'), function (props) {
20105
+ }, palette.white, mixins.transition('fill', '250ms'), function (props) {
19992
20106
  switch (props.variant) {
19993
20107
  case 'contained':
19994
- return Ae(["color:", ";&:before{background-color:", ";}", "{fill:", ";}&:focus:after,&:hover:after{background-color:", ";}&:active:after{background-color:", ";}&:disabled{&:before,&:after{background-color:", ";}}"], getColor$1(props.fontColor), getColor(props.color), StyledIcon, colors.white, getHoverColor(props.color), getPressedColor(props.color), colors.grey);
20108
+ return Ae(["color:", ";&:before{background-color:", ";}", "{fill:", ";}&:focus:after,&:hover:after{background-color:", ";}&:active:after{background-color:", ";}&:disabled{&:before,&:after{background-color:", ";}}"], getColor$1(props.fontColor), getColor(props.color), StyledIcon, palette.white, getHoverColor(props.color), getPressedColor(props.color), palette.grey);
19995
20109
 
19996
20110
  case 'outlined':
19997
20111
  case 'cleaned':
19998
- return Ae(["color:", ";&:after{background-color:transparent;}", "{fill:", ";}&:focus:after,&:hover:after{background-color:", ";}&:active:after{background-color:", ";}&:disabled{color:", ";&:after{background-color:transparent;}", "{fill:", ";}}"], getColor(props.color), StyledIcon, getColor(props.color), colors.lightGreyHover, colors.lightGrey, colors.grey, StyledIcon, colors.grey);
20112
+ return Ae(["color:", ";&:after{background-color:transparent;}", "{fill:", ";}&:focus:after,&:hover:after{background-color:", ";}&:active:after{background-color:", ";}&:disabled{color:", ";&:after{background-color:transparent;}", "{fill:", ";}}"], getColor(props.color), StyledIcon, getColor(props.color), palette.lightGreyHover, palette.lightGrey, palette.grey, StyledIcon, palette.grey);
19999
20113
 
20000
20114
  default:
20001
20115
  return '';
@@ -20006,7 +20120,7 @@
20006
20120
  return props.styles;
20007
20121
  });
20008
20122
 
20009
- var _excluded$3 = ["children", "color", "hideLabel", "icon", "iconColor", "iconSize", "fontColor", "rounded", "styles", "variant"];
20123
+ var _excluded$7 = ["children", "color", "hideLabel", "icon", "iconColor", "iconSize", "fontColor", "rounded", "styles", "variant"];
20010
20124
 
20011
20125
  var Button = function Button(_ref) {
20012
20126
  var children = _ref.children,
@@ -20019,9 +20133,9 @@
20019
20133
  rounded = _ref.rounded,
20020
20134
  styles = _ref.styles,
20021
20135
  variant = _ref.variant,
20022
- props = _objectWithoutProperties(_ref, _excluded$3);
20136
+ props = _objectWithoutProperties(_ref, _excluded$7);
20023
20137
 
20024
- return /*#__PURE__*/React__default["default"].createElement(StyledButton, _extends({
20138
+ return /*#__PURE__*/React__default["default"].createElement(StyledButton, _extends$2({
20025
20139
  color: color,
20026
20140
  iconColor: iconColor || fontColor,
20027
20141
  fontColor: fontColor,
@@ -20044,8 +20158,8 @@
20044
20158
  variant: 'cleaned'
20045
20159
  };
20046
20160
 
20047
- var styled$3 = {
20048
- Container: styled$4.label.withConfig({
20161
+ var styled$9 = {
20162
+ Container: styled$a.label.withConfig({
20049
20163
  displayName: "styles__Container",
20050
20164
  componentId: "sc-18bfcwf-0"
20051
20165
  })(["background:", ";border:1px solid ", ";border-radius:", "px;width:16px;height:16px;line-height:16px;position:relative;cursor:pointer;display:flex;transition:background ", " 0.2s;user-select:none;margin-right:12px;", ";"], function (props) {
@@ -20057,7 +20171,7 @@
20057
20171
  }, timingFunctions$1.standard, function (props) {
20058
20172
  return props.styles;
20059
20173
  }),
20060
- Input: styled$4.input.withConfig({
20174
+ Input: styled$a.input.withConfig({
20061
20175
  displayName: "styles__Input",
20062
20176
  componentId: "sc-18bfcwf-1"
20063
20177
  })(["opacity:0;position:absolute;cursor:pointer;"]),
@@ -20066,7 +20180,7 @@
20066
20180
  })
20067
20181
  };
20068
20182
 
20069
- var _excluded$2 = ["autoComplete", "disabled", "defaultChecked", "onChange", "rounded", "styles", "value"];
20183
+ var _excluded$6 = ["autoComplete", "disabled", "defaultChecked", "onChange", "rounded", "styles", "value"];
20070
20184
 
20071
20185
  var Checkbox = function Checkbox(_ref) {
20072
20186
  var autoComplete = _ref.autoComplete,
@@ -20076,7 +20190,7 @@
20076
20190
  rounded = _ref.rounded,
20077
20191
  styles = _ref.styles,
20078
20192
  value = _ref.value,
20079
- props = _objectWithoutProperties(_ref, _excluded$2);
20193
+ props = _objectWithoutProperties(_ref, _excluded$6);
20080
20194
 
20081
20195
  var _useState = React.useState(!!value || defaultChecked),
20082
20196
  _useState2 = _slicedToArray(_useState, 2),
@@ -20091,18 +20205,18 @@
20091
20205
 
20092
20206
  var _props$checked = props.checked,
20093
20207
  conntroledChecked = _props$checked === void 0 ? checked : _props$checked;
20094
- return /*#__PURE__*/React__default["default"].createElement(styled$3.Container, {
20208
+ return /*#__PURE__*/React__default["default"].createElement(styled$9.Container, {
20095
20209
  checked: conntroledChecked,
20096
20210
  rounded: rounded,
20097
20211
  styles: styles
20098
- }, /*#__PURE__*/React__default["default"].createElement(styled$3.Input, _extends({}, props, {
20212
+ }, /*#__PURE__*/React__default["default"].createElement(styled$9.Input, _extends$2({}, props, {
20099
20213
  type: "checkbox",
20100
20214
  disabled: disabled,
20101
20215
  autoComplete: autoComplete ? 'on' : 'off',
20102
20216
  onChange: handleChange
20103
20217
  })), /*#__PURE__*/React__default["default"].createElement(Icon, {
20104
20218
  name: "check_bold",
20105
- styles: styled$3.iconCheckStyles,
20219
+ styles: styled$9.iconCheckStyles,
20106
20220
  rounded: rounded
20107
20221
  }));
20108
20222
  };
@@ -20114,33 +20228,35 @@
20114
20228
  }
20115
20229
  };
20116
20230
 
20117
- var _templateObject$1;
20118
- var styled$2 = {
20119
- Chip: styled$4.button.withConfig({
20231
+ var _templateObject$3;
20232
+ var styled$8 = {
20233
+ Chip: styled$a.button.withConfig({
20120
20234
  displayName: "styles__Chip",
20121
20235
  componentId: "sc-1vnh4co-0"
20122
- })(["padding:", ";cursor:", ";font-size:13px;color:", ";height:", ";width:", ";max-width:150px;border-radius:", ";display:inline-flex;justify-content:center;align-items:center;pointer-events:", ";white-space:nowrap;", " ", ";", " ", " ", " ", ""], function (props) {
20236
+ })(["padding:", ";cursor:", ";font-size:13px;color:", ";height:", ";width:", ";max-width:150px;border-radius:", ";display:inline-flex;justify-content:center;align-items:center;pointer-events:", ";white-space:nowrap;.chip-icon{margin-right:", ";}", " ", ";", " ", " ", " ", ""], function (props) {
20123
20237
  return props.hasText ? '0 12px' : '0';
20124
20238
  }, function (props) {
20125
20239
  return props.clickable ? 'pointer' : 'default';
20126
- }, colors.black.main, function (props) {
20240
+ }, palette.black.main, function (props) {
20127
20241
  return props.hasText ? '32px' : '36px';
20128
20242
  }, function (props) {
20129
20243
  return !props.hasText && '36px';
20130
20244
  }, function (props) {
20131
20245
  return props.hasText ? '50px' : '50%';
20132
20246
  }, function (props) {
20133
- return props.clickable ? 'auto' : 'none';
20247
+ return props.clickable || props.linkForHref ? 'auto' : 'none';
20248
+ }, function (props) {
20249
+ return props.hasText && '8px';
20134
20250
  }, function (props) {
20135
20251
  switch (props.variant) {
20136
20252
  case 'outlined':
20137
- return Ae(["border:1px solid ", ";color:", ";&:hover{background-color:", ";}&:hover .chip-icon,&:hover .delete-button{fill:", ";}&:active{border-color:", ";color:", ";background-color:transparent;}&:active .chip-icon,&:active .delete-button{fill:", ";}"], props.selected ? colors.primary.main : '#EAEBED', props.selected ? colors.primary.main : colors.black.main, colors.white.hover, props.selected ? colors.primary.main : colors.black.main, colors.primary.main, colors.primary.main, colors.primary.main);
20253
+ return Ae(["border:1px solid ", ";color:", ";&:hover{background-color:", ";}&:hover .chip-icon,&:hover .delete-button{fill:", ";}&:active{border-color:", ";color:", ";background-color:transparent;}&:active .chip-icon,&:active .delete-button{fill:", ";}"], props.selected ? palette.primary.main : '#EAEBED', props.selected ? palette.primary.main : palette.black.main, palette.white.hover, props.selected ? palette.primary.main : palette.black.main, palette.primary.main, palette.primary.main, palette.primary.main);
20138
20254
 
20139
20255
  case 'contained':
20140
- return Ae(["background-color:", ";color:", ";.chip-icon{fill:", ";}.delete-button{fill:", ";}&:hover{background-color:", ";}&:hover .delete-button{fill:", ";}&:active{background-color:", ";color:", ";}&:active .chip-icon,&:active .delete-button{fill:", ";}&:disabled{fill:", ";color:", ";}"], props.selected ? colors.primary.main : colors.white.hover, props.selected ? colors.base.withe : colors.black.main, props.selected ? colors.base.withe : colors.black.main, props.selected ? colors.base.withe : colors.grey.dark, props.selected ? colors.primary.mainHover : colors.white.main, props.selected ? colors.base.withe : colors.black.main, colors.primary.main, colors.base.withe, colors.base.withe, colors.grey.main, colors.grey.main);
20256
+ return Ae(["background-color:", ";color:", ";.chip-icon{fill:", ";}.delete-button{fill:", ";}&:hover{background-color:", ";}&:hover .delete-button{fill:", ";}&:active{background-color:", ";color:", ";}&:active .chip-icon,&:active .delete-button{fill:", ";}&:disabled{fill:", ";color:", ";}"], props.selected ? palette.primary.main : palette.white.hover, props.selected ? palette.base.white : palette.black.main, props.selected ? palette.base.white : palette.black.main, props.selected ? palette.base.white : palette.grey.dark, props.selected ? palette.primary.mainHover : palette.white.main, props.selected ? palette.base.white : palette.black.main, palette.primary.main, palette.base.white, palette.base.white, palette.grey.main, palette.grey.main);
20141
20257
 
20142
20258
  case 'status':
20143
- return Ae(["background-color:", ";color:", ";font-weight:700;border:none;height:24px;padding:0 17px;line-height:28px;max-width:170px;"], getColor$1(props.color.type || 'grey', props.color.color || 'main'), getColor$1(props.sizeColor.type || 'white', props.sizeColor.color || 'main'));
20259
+ return Ae(["background-color:", ";color:", ";font-weight:700;border:none;height:24px;padding:0 17px;line-height:28px;max-width:170px;"], getColor$1(props.color || 'grey'), getColor$1(props.sizeColor || 'base.white'));
20144
20260
 
20145
20261
  default:
20146
20262
  return '';
@@ -20148,68 +20264,599 @@
20148
20264
  }, function (props) {
20149
20265
  return props.styles;
20150
20266
  }, function (props) {
20151
- return props.borderColor && "border: solid 1px ".concat(getColor$1(props.borderColor.type, props.borderColor.color), ";");
20267
+ return props.borderColor && "border: solid 1px ".concat(getColor$1(props.borderColor), ";");
20152
20268
  }, function (props) {
20153
- return props.backgroundColor && "background-color: ".concat(getColor$1(props.backgroundColor.type, props.backgroundColor.color), ";");
20269
+ return props.backgroundColor && "background-color: ".concat(getColor$1(props.backgroundColor), ";");
20154
20270
  }, function (props) {
20155
- return props.textColor && "color: ".concat(getColor$1(props.textColor.type, props.textColor.color), ";");
20156
- }, mediaBreaks.onlyPrint(_templateObject$1 || (_templateObject$1 = _taggedTemplateLiteral(["\n\t\t\tborder: 1px solid ", ";\n\t\t"])), colors.darkGrey)),
20157
- Children: styled$4.div.withConfig({
20158
- displayName: "styles__Children",
20271
+ return props.textColor && "color: ".concat(getColor$1(props.textColor), ";");
20272
+ }, mediaBreaks.onlyPrint(_templateObject$3 || (_templateObject$3 = _taggedTemplateLiteral(["\n\t\t\tborder: 1px solid ", ";\n\t\t"])), palette.grey.dark)),
20273
+ iconPathStyles: Ae(["", ";"], mixins.transition('fill')),
20274
+ DeleteButton: styled$a.button.withConfig({
20275
+ displayName: "styles__DeleteButton",
20159
20276
  componentId: "sc-1vnh4co-1"
20277
+ })(["width:16px;height:16px;margin-left:12px;"]),
20278
+ deleteButtonPathStyles: Ae(["", ";"], mixins.transition('fill')),
20279
+ Children: styled$a.div.withConfig({
20280
+ displayName: "styles__Children",
20281
+ componentId: "sc-1vnh4co-2"
20160
20282
  })(["text-overflow:ellipsis;overflow:hidden;"])
20161
20283
  };
20162
20284
 
20163
- var _excluded$1 = ["backgroundColor", "borderColor", "children", "disabled", "onClick", "selected", "styles", "textColor", "variant"];
20285
+ /**
20286
+ * Actions represent the type of change to a location value.
20287
+ *
20288
+ * @see https://github.com/remix-run/history/tree/main/docs/api-reference.md#action
20289
+ */
20290
+ var Action;
20291
+
20292
+ (function (Action) {
20293
+ /**
20294
+ * A POP indicates a change to an arbitrary index in the history stack, such
20295
+ * as a back or forward navigation. It does not describe the direction of the
20296
+ * navigation, only that the current index changed.
20297
+ *
20298
+ * Note: This is the default action for newly created history objects.
20299
+ */
20300
+ Action["Pop"] = "POP";
20301
+ /**
20302
+ * A PUSH indicates a new entry being added to the history stack, such as when
20303
+ * a link is clicked and a new page loads. When this happens, all subsequent
20304
+ * entries in the stack are lost.
20305
+ */
20306
+
20307
+ Action["Push"] = "PUSH";
20308
+ /**
20309
+ * A REPLACE indicates the entry at the current index in the history stack
20310
+ * being replaced by a new one.
20311
+ */
20312
+
20313
+ Action["Replace"] = "REPLACE";
20314
+ })(Action || (Action = {}));
20315
+ /**
20316
+ * Creates a string URL path from the given pathname, search, and hash components.
20317
+ *
20318
+ * @see https://github.com/remix-run/history/tree/main/docs/api-reference.md#createpath
20319
+ */
20320
+
20321
+
20322
+ function createPath(_ref) {
20323
+ var _ref$pathname = _ref.pathname,
20324
+ pathname = _ref$pathname === void 0 ? '/' : _ref$pathname,
20325
+ _ref$search = _ref.search,
20326
+ search = _ref$search === void 0 ? '' : _ref$search,
20327
+ _ref$hash = _ref.hash,
20328
+ hash = _ref$hash === void 0 ? '' : _ref$hash;
20329
+ if (search && search !== '?') pathname += search.charAt(0) === '?' ? search : '?' + search;
20330
+ if (hash && hash !== '#') pathname += hash.charAt(0) === '#' ? hash : '#' + hash;
20331
+ return pathname;
20332
+ }
20333
+ /**
20334
+ * Parses a string URL path into its separate pathname, search, and hash components.
20335
+ *
20336
+ * @see https://github.com/remix-run/history/tree/main/docs/api-reference.md#parsepath
20337
+ */
20338
+
20339
+ function parsePath(path) {
20340
+ var parsedPath = {};
20341
+
20342
+ if (path) {
20343
+ var hashIndex = path.indexOf('#');
20344
+
20345
+ if (hashIndex >= 0) {
20346
+ parsedPath.hash = path.substr(hashIndex);
20347
+ path = path.substr(0, hashIndex);
20348
+ }
20349
+
20350
+ var searchIndex = path.indexOf('?');
20351
+
20352
+ if (searchIndex >= 0) {
20353
+ parsedPath.search = path.substr(searchIndex);
20354
+ path = path.substr(0, searchIndex);
20355
+ }
20356
+
20357
+ if (path) {
20358
+ parsedPath.pathname = path;
20359
+ }
20360
+ }
20361
+
20362
+ return parsedPath;
20363
+ }
20364
+
20365
+ /**
20366
+ * React Router v6.3.0
20367
+ *
20368
+ * Copyright (c) Remix Software Inc.
20369
+ *
20370
+ * This source code is licensed under the MIT license found in the
20371
+ * LICENSE.md file in the root directory of this source tree.
20372
+ *
20373
+ * @license MIT
20374
+ */
20375
+
20376
+ const NavigationContext = /*#__PURE__*/React.createContext(null);
20377
+
20378
+ const LocationContext = /*#__PURE__*/React.createContext(null);
20379
+
20380
+ const RouteContext = /*#__PURE__*/React.createContext({
20381
+ outlet: null,
20382
+ matches: []
20383
+ });
20384
+
20385
+ function invariant(cond, message) {
20386
+ if (!cond) throw new Error(message);
20387
+ }
20388
+ /**
20389
+ * Returns a resolved path object relative to the given pathname.
20390
+ *
20391
+ * @see https://reactrouter.com/docs/en/v6/api#resolvepath
20392
+ */
20393
+
20394
+
20395
+ function resolvePath(to, fromPathname) {
20396
+ if (fromPathname === void 0) {
20397
+ fromPathname = "/";
20398
+ }
20399
+
20400
+ let {
20401
+ pathname: toPathname,
20402
+ search = "",
20403
+ hash = ""
20404
+ } = typeof to === "string" ? parsePath(to) : to;
20405
+ let pathname = toPathname ? toPathname.startsWith("/") ? toPathname : resolvePathname(toPathname, fromPathname) : fromPathname;
20406
+ return {
20407
+ pathname,
20408
+ search: normalizeSearch(search),
20409
+ hash: normalizeHash(hash)
20410
+ };
20411
+ }
20412
+
20413
+ function resolvePathname(relativePath, fromPathname) {
20414
+ let segments = fromPathname.replace(/\/+$/, "").split("/");
20415
+ let relativeSegments = relativePath.split("/");
20416
+ relativeSegments.forEach(segment => {
20417
+ if (segment === "..") {
20418
+ // Keep the root "" segment so the pathname starts at /
20419
+ if (segments.length > 1) segments.pop();
20420
+ } else if (segment !== ".") {
20421
+ segments.push(segment);
20422
+ }
20423
+ });
20424
+ return segments.length > 1 ? segments.join("/") : "/";
20425
+ }
20426
+
20427
+ function resolveTo(toArg, routePathnames, locationPathname) {
20428
+ let to = typeof toArg === "string" ? parsePath(toArg) : toArg;
20429
+ let toPathname = toArg === "" || to.pathname === "" ? "/" : to.pathname; // If a pathname is explicitly provided in `to`, it should be relative to the
20430
+ // route context. This is explained in `Note on `<Link to>` values` in our
20431
+ // migration guide from v5 as a means of disambiguation between `to` values
20432
+ // that begin with `/` and those that do not. However, this is problematic for
20433
+ // `to` values that do not provide a pathname. `to` can simply be a search or
20434
+ // hash string, in which case we should assume that the navigation is relative
20435
+ // to the current location's pathname and *not* the route pathname.
20436
+
20437
+ let from;
20438
+
20439
+ if (toPathname == null) {
20440
+ from = locationPathname;
20441
+ } else {
20442
+ let routePathnameIndex = routePathnames.length - 1;
20443
+
20444
+ if (toPathname.startsWith("..")) {
20445
+ let toSegments = toPathname.split("/"); // Each leading .. segment means "go up one route" instead of "go up one
20446
+ // URL segment". This is a key difference from how <a href> works and a
20447
+ // major reason we call this a "to" value instead of a "href".
20448
+
20449
+ while (toSegments[0] === "..") {
20450
+ toSegments.shift();
20451
+ routePathnameIndex -= 1;
20452
+ }
20453
+
20454
+ to.pathname = toSegments.join("/");
20455
+ } // If there are more ".." segments than parent routes, resolve relative to
20456
+ // the root / URL.
20457
+
20458
+
20459
+ from = routePathnameIndex >= 0 ? routePathnames[routePathnameIndex] : "/";
20460
+ }
20461
+
20462
+ let path = resolvePath(to, from); // Ensure the pathname has a trailing slash if the original to value had one.
20463
+
20464
+ if (toPathname && toPathname !== "/" && toPathname.endsWith("/") && !path.pathname.endsWith("/")) {
20465
+ path.pathname += "/";
20466
+ }
20467
+
20468
+ return path;
20469
+ }
20470
+ function getToPathname(to) {
20471
+ // Empty strings should be treated the same as / paths
20472
+ return to === "" || to.pathname === "" ? "/" : typeof to === "string" ? parsePath(to).pathname : to.pathname;
20473
+ }
20474
+ const joinPaths = paths => paths.join("/").replace(/\/\/+/g, "/");
20475
+
20476
+ const normalizeSearch = search => !search || search === "?" ? "" : search.startsWith("?") ? search : "?" + search;
20477
+
20478
+ const normalizeHash = hash => !hash || hash === "#" ? "" : hash.startsWith("#") ? hash : "#" + hash;
20479
+
20480
+ /**
20481
+ * Returns the full href for the given "to" value. This is useful for building
20482
+ * custom links that are also accessible and preserve right-click behavior.
20483
+ *
20484
+ * @see https://reactrouter.com/docs/en/v6/api#usehref
20485
+ */
20486
+
20487
+ function useHref(to) {
20488
+ !useInRouterContext() ? invariant(false) : void 0;
20489
+ let {
20490
+ basename,
20491
+ navigator
20492
+ } = React.useContext(NavigationContext);
20493
+ let {
20494
+ hash,
20495
+ pathname,
20496
+ search
20497
+ } = useResolvedPath(to);
20498
+ let joinedPathname = pathname;
20499
+
20500
+ if (basename !== "/") {
20501
+ let toPathname = getToPathname(to);
20502
+ let endsWithSlash = toPathname != null && toPathname.endsWith("/");
20503
+ joinedPathname = pathname === "/" ? basename + (endsWithSlash ? "/" : "") : joinPaths([basename, pathname]);
20504
+ }
20505
+
20506
+ return navigator.createHref({
20507
+ pathname: joinedPathname,
20508
+ search,
20509
+ hash
20510
+ });
20511
+ }
20512
+ /**
20513
+ * Returns true if this component is a descendant of a <Router>.
20514
+ *
20515
+ * @see https://reactrouter.com/docs/en/v6/api#useinroutercontext
20516
+ */
20517
+
20518
+ function useInRouterContext() {
20519
+ return React.useContext(LocationContext) != null;
20520
+ }
20521
+ /**
20522
+ * Returns the current location object, which represents the current URL in web
20523
+ * browsers.
20524
+ *
20525
+ * Note: If you're using this it may mean you're doing some of your own
20526
+ * "routing" in your app, and we'd like to know what your use case is. We may
20527
+ * be able to provide something higher-level to better suit your needs.
20528
+ *
20529
+ * @see https://reactrouter.com/docs/en/v6/api#uselocation
20530
+ */
20531
+
20532
+ function useLocation() {
20533
+ !useInRouterContext() ? invariant(false) : void 0;
20534
+ return React.useContext(LocationContext).location;
20535
+ }
20536
+ /**
20537
+ * The interface for the navigate() function returned from useNavigate().
20538
+ */
20539
+
20540
+ /**
20541
+ * Returns an imperative method for changing the location. Used by <Link>s, but
20542
+ * may also be used by other elements to change the location.
20543
+ *
20544
+ * @see https://reactrouter.com/docs/en/v6/api#usenavigate
20545
+ */
20546
+ function useNavigate() {
20547
+ !useInRouterContext() ? invariant(false) : void 0;
20548
+ let {
20549
+ basename,
20550
+ navigator
20551
+ } = React.useContext(NavigationContext);
20552
+ let {
20553
+ matches
20554
+ } = React.useContext(RouteContext);
20555
+ let {
20556
+ pathname: locationPathname
20557
+ } = useLocation();
20558
+ let routePathnamesJson = JSON.stringify(matches.map(match => match.pathnameBase));
20559
+ let activeRef = React.useRef(false);
20560
+ React.useEffect(() => {
20561
+ activeRef.current = true;
20562
+ });
20563
+ let navigate = React.useCallback(function (to, options) {
20564
+ if (options === void 0) {
20565
+ options = {};
20566
+ }
20567
+ if (!activeRef.current) return;
20568
+
20569
+ if (typeof to === "number") {
20570
+ navigator.go(to);
20571
+ return;
20572
+ }
20573
+
20574
+ let path = resolveTo(to, JSON.parse(routePathnamesJson), locationPathname);
20575
+
20576
+ if (basename !== "/") {
20577
+ path.pathname = joinPaths([basename, path.pathname]);
20578
+ }
20579
+
20580
+ (!!options.replace ? navigator.replace : navigator.push)(path, options.state);
20581
+ }, [basename, navigator, routePathnamesJson, locationPathname]);
20582
+ return navigate;
20583
+ }
20584
+ /**
20585
+ * Resolves the pathname of the given `to` value against the current location.
20586
+ *
20587
+ * @see https://reactrouter.com/docs/en/v6/api#useresolvedpath
20588
+ */
20589
+
20590
+ function useResolvedPath(to) {
20591
+ let {
20592
+ matches
20593
+ } = React.useContext(RouteContext);
20594
+ let {
20595
+ pathname: locationPathname
20596
+ } = useLocation();
20597
+ let routePathnamesJson = JSON.stringify(matches.map(match => match.pathnameBase));
20598
+ return React.useMemo(() => resolveTo(to, JSON.parse(routePathnamesJson), locationPathname), [to, routePathnamesJson, locationPathname]);
20599
+ }
20600
+
20601
+ /**
20602
+ * React Router DOM v6.3.0
20603
+ *
20604
+ * Copyright (c) Remix Software Inc.
20605
+ *
20606
+ * This source code is licensed under the MIT license found in the
20607
+ * LICENSE.md file in the root directory of this source tree.
20608
+ *
20609
+ * @license MIT
20610
+ */
20611
+
20612
+ function _extends$1() {
20613
+ _extends$1 = Object.assign || function (target) {
20614
+ for (var i = 1; i < arguments.length; i++) {
20615
+ var source = arguments[i];
20616
+
20617
+ for (var key in source) {
20618
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
20619
+ target[key] = source[key];
20620
+ }
20621
+ }
20622
+ }
20623
+
20624
+ return target;
20625
+ };
20626
+
20627
+ return _extends$1.apply(this, arguments);
20628
+ }
20629
+
20630
+ function _objectWithoutPropertiesLoose(source, excluded) {
20631
+ if (source == null) return {};
20632
+ var target = {};
20633
+ var sourceKeys = Object.keys(source);
20634
+ var key, i;
20635
+
20636
+ for (i = 0; i < sourceKeys.length; i++) {
20637
+ key = sourceKeys[i];
20638
+ if (excluded.indexOf(key) >= 0) continue;
20639
+ target[key] = source[key];
20640
+ }
20641
+
20642
+ return target;
20643
+ }
20644
+
20645
+ const _excluded$5 = ["onClick", "reloadDocument", "replace", "state", "target", "to"];
20646
+
20647
+ function isModifiedEvent(event) {
20648
+ return !!(event.metaKey || event.altKey || event.ctrlKey || event.shiftKey);
20649
+ }
20650
+
20651
+ /**
20652
+ * The public API for rendering a history-aware <a>.
20653
+ */
20654
+ const Link$1 = /*#__PURE__*/React.forwardRef(function LinkWithRef(_ref4, ref) {
20655
+ let {
20656
+ onClick,
20657
+ reloadDocument,
20658
+ replace = false,
20659
+ state,
20660
+ target,
20661
+ to
20662
+ } = _ref4,
20663
+ rest = _objectWithoutPropertiesLoose(_ref4, _excluded$5);
20664
+
20665
+ let href = useHref(to);
20666
+ let internalOnClick = useLinkClickHandler(to, {
20667
+ replace,
20668
+ state,
20669
+ target
20670
+ });
20671
+
20672
+ function handleClick(event) {
20673
+ if (onClick) onClick(event);
20674
+
20675
+ if (!event.defaultPrevented && !reloadDocument) {
20676
+ internalOnClick(event);
20677
+ }
20678
+ }
20679
+
20680
+ return (
20681
+ /*#__PURE__*/
20682
+ // eslint-disable-next-line jsx-a11y/anchor-has-content
20683
+ React.createElement("a", _extends$1({}, rest, {
20684
+ href: href,
20685
+ onClick: handleClick,
20686
+ ref: ref,
20687
+ target: target
20688
+ }))
20689
+ );
20690
+ });
20691
+ // HOOKS
20692
+ ////////////////////////////////////////////////////////////////////////////////
20693
+
20694
+ /**
20695
+ * Handles the click behavior for router `<Link>` components. This is useful if
20696
+ * you need to create custom `<Link>` components with the same click behavior we
20697
+ * use in our exported `<Link>`.
20698
+ */
20699
+
20700
+
20701
+ function useLinkClickHandler(to, _temp) {
20702
+ let {
20703
+ target,
20704
+ replace: replaceProp,
20705
+ state
20706
+ } = _temp === void 0 ? {} : _temp;
20707
+ let navigate = useNavigate();
20708
+ let location = useLocation();
20709
+ let path = useResolvedPath(to);
20710
+ return React.useCallback(event => {
20711
+ if (event.button === 0 && ( // Ignore everything but left clicks
20712
+ !target || target === "_self") && // Let browser handle "target=_blank" etc.
20713
+ !isModifiedEvent(event) // Ignore clicks with modifier keys
20714
+ ) {
20715
+ event.preventDefault(); // If the URL hasn't changed, a regular <a> will do a replace instead of
20716
+ // a push, so do the same here.
20717
+
20718
+ let replace = !!replaceProp || createPath(location) === createPath(path);
20719
+ navigate(to, {
20720
+ replace,
20721
+ state
20722
+ });
20723
+ }
20724
+ }, [location, navigate, path, replaceProp, state, target, to]);
20725
+ }
20726
+
20727
+ var styled$7 = {
20728
+ LinkWrapper: styled$a.div.withConfig({
20729
+ displayName: "styles__LinkWrapper",
20730
+ componentId: "sc-fhfdft-0"
20731
+ })(["display:flex;color:", ";align-items:center;font-size:13px;& a{text-decoration:none;color:inherit;}"], getColor$1('blue')),
20732
+ StyledIcon: styled$a(Icon).withConfig({
20733
+ displayName: "styles__StyledIcon",
20734
+ componentId: "sc-fhfdft-1"
20735
+ })(["margin-right:8px;"])
20736
+ };
20737
+
20738
+ var _excluded$4 = ["href", "children", "target", "icon"];
20739
+
20740
+ var Link = function Link(_ref) {
20741
+ var href = _ref.href,
20742
+ children = _ref.children,
20743
+ target = _ref.target,
20744
+ icon = _ref.icon,
20745
+ props = _objectWithoutProperties(_ref, _excluded$4);
20746
+
20747
+ var origin = window.location.origin;
20748
+ var internalLink = !href.startsWith('http');
20749
+
20750
+ var renderIcon = function renderIcon() {
20751
+ return icon ? /*#__PURE__*/React__default["default"].createElement(styled$7.StyledIcon, {
20752
+ name: icon
20753
+ }) : null;
20754
+ };
20755
+
20756
+ if ((internalLink || href.includes("".concat(origin))) && target === '_self') {
20757
+ var path;
20758
+
20759
+ if (internalLink) {
20760
+ path = href.startsWith('/') ? href : "/".concat(href);
20761
+ } else {
20762
+ path = href.replace("".concat(origin), '');
20763
+ }
20764
+
20765
+ return /*#__PURE__*/React__default["default"].createElement(styled$7.LinkWrapper, props, renderIcon(), /*#__PURE__*/React__default["default"].createElement(Link$1, {
20766
+ to: path,
20767
+ "data-test": "react-router-link"
20768
+ }, children || href));
20769
+ }
20770
+
20771
+ return /*#__PURE__*/React__default["default"].createElement(styled$7.LinkWrapper, props, renderIcon(), /*#__PURE__*/React__default["default"].createElement("a", {
20772
+ href: href,
20773
+ target: target
20774
+ }, children || href));
20775
+ };
20776
+
20777
+ Link.defaultProps = {
20778
+ href: '',
20779
+ target: '_self'
20780
+ };
20781
+
20782
+ var _excluded$3 = ["backgroundColor", "borderColor", "children", "disabled", "icon", "iconColor", "onClick", "onDelete", "selected", "styles", "textColor", "variant", "linkField", "data"];
20164
20783
 
20165
20784
  var Chip = function Chip(_ref) {
20166
20785
  var backgroundColor = _ref.backgroundColor,
20167
20786
  borderColor = _ref.borderColor,
20168
20787
  children = _ref.children,
20169
20788
  disabled = _ref.disabled,
20789
+ icon = _ref.icon,
20790
+ iconColor = _ref.iconColor,
20170
20791
  onClick = _ref.onClick,
20792
+ onDelete = _ref.onDelete,
20171
20793
  selected = _ref.selected,
20172
20794
  styles = _ref.styles,
20173
20795
  textColor = _ref.textColor,
20174
20796
  variant = _ref.variant,
20175
- props = _objectWithoutProperties(_ref, _excluded$1);
20797
+ linkField = _ref.linkField,
20798
+ data = _ref.data,
20799
+ props = _objectWithoutProperties(_ref, _excluded$3);
20176
20800
 
20177
- return /*#__PURE__*/React__default["default"].createElement(styled$2.Chip, _extends({
20801
+ var linkForHref = linkField && data[linkField];
20802
+ return /*#__PURE__*/React__default["default"].createElement(styled$8.Chip, _extends$2({
20178
20803
  as: props.onClick ? 'button' : 'div',
20179
20804
  backgroundColor: backgroundColor,
20180
20805
  borderColor: borderColor,
20181
20806
  hasText: !!children || children === 0,
20807
+ hasIcon: !!icon,
20182
20808
  disabled: disabled,
20183
- clickable: onClick && !disabled,
20809
+ clickable: (onClick || onDelete) && !disabled,
20184
20810
  onClick: disabled ? undefined : onClick,
20185
20811
  selected: selected,
20186
20812
  styles: styles,
20187
20813
  textColor: textColor,
20188
- variant: variant
20189
- }, props), /*#__PURE__*/React__default["default"].createElement(styled$2.Children, null, children));
20814
+ variant: variant,
20815
+ iconColor: iconColor,
20816
+ linkForHref: linkForHref
20817
+ }, props), icon && /*#__PURE__*/React__default["default"].createElement(Icon, {
20818
+ className: "chip-icon",
20819
+ name: icon,
20820
+ color: iconColor,
20821
+ pathStyles: styled$8.iconPathStyles
20822
+ }), /*#__PURE__*/React__default["default"].createElement(styled$8.Children, null, linkForHref ? /*#__PURE__*/React__default["default"].createElement(Link, {
20823
+ href: linkForHref
20824
+ }, children) : children), onDelete && /*#__PURE__*/React__default["default"].createElement(styled$8.DeleteButton, {
20825
+ type: "button",
20826
+ onClick: onDelete
20827
+ }, /*#__PURE__*/React__default["default"].createElement(Icon, {
20828
+ color: "black",
20829
+ pathStyles: styled$8.deleteButtonPathStyles,
20830
+ className: "delete-button",
20831
+ name: "cross_circle_flat",
20832
+ size: 16
20833
+ })));
20190
20834
  };
20191
20835
 
20192
20836
  Chip.defaultProps = {
20193
20837
  backgroundColor: '',
20194
20838
  borderColor: '',
20195
20839
  disabled: false,
20840
+ iconColor: 'grey',
20196
20841
  selected: false,
20197
20842
  textColor: '',
20198
- variant: 'outlined'
20843
+ variant: 'outlined',
20844
+ linkField: '',
20845
+ data: {}
20199
20846
  };
20200
20847
 
20201
- var styled$1 = {
20202
- Wrapper: styled$4.div.withConfig({
20848
+ var styled$6 = {
20849
+ Wrapper: styled$a.div.withConfig({
20203
20850
  displayName: "styles__Wrapper",
20204
20851
  componentId: "sc-zbd85t-0"
20205
20852
  })(["display:flex;align-items:center;"]),
20206
- ColorSample: styled$4.div.withConfig({
20853
+ ColorSample: styled$a.div.withConfig({
20207
20854
  displayName: "styles__ColorSample",
20208
20855
  componentId: "sc-zbd85t-1"
20209
20856
  })(["display:block;width:16px;height:16px;background-color:", ";border:1px solid ", ";border-radius:50%;"], function (props) {
20210
20857
  return props.color;
20211
- }, colors.grey),
20212
- Label: styled$4.span.withConfig({
20858
+ }, palette.grey),
20859
+ Label: styled$a.span.withConfig({
20213
20860
  displayName: "styles__Label",
20214
20861
  componentId: "sc-zbd85t-2"
20215
20862
  })(["margin-left:5px;text-transform:", ";"], function (props) {
@@ -20217,11 +20864,11 @@
20217
20864
  })
20218
20865
  };
20219
20866
  ({
20220
- Grid: styled$4.div.withConfig({
20867
+ Grid: styled$a.div.withConfig({
20221
20868
  displayName: "styles__Grid",
20222
20869
  componentId: "sc-zbd85t-3"
20223
20870
  })(["display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));grid-gap:15px;"]),
20224
- Item: styled$4.div.withConfig({
20871
+ Item: styled$a.div.withConfig({
20225
20872
  displayName: "styles__Item",
20226
20873
  componentId: "sc-zbd85t-4"
20227
20874
  })(["padding:5px;border:1px dashed #ccc;cursor:default;display:grid;justify-items:center;justify-content:center;grid-row-gap:5px;"])
@@ -20232,14 +20879,14 @@
20232
20879
  showLabel = _ref.showLabel;
20233
20880
  if (!color) return null;
20234
20881
  var colorCode = getColor$1(color);
20235
- return /*#__PURE__*/React__default["default"].createElement(styled$1.Wrapper, null, /*#__PURE__*/React__default["default"].createElement(styled$1.ColorSample, {
20882
+ return /*#__PURE__*/React__default["default"].createElement(styled$6.Wrapper, null, /*#__PURE__*/React__default["default"].createElement(styled$6.ColorSample, {
20236
20883
  color: colorCode
20237
- }), showLabel && /*#__PURE__*/React__default["default"].createElement(styled$1.Label, {
20884
+ }), showLabel && /*#__PURE__*/React__default["default"].createElement(styled$6.Label, {
20238
20885
  color: colorCode
20239
20886
  }, colorCode));
20240
20887
  };
20241
20888
 
20242
- var _templateObject, _templateObject2, _templateObject3;
20889
+ var _templateObject$2, _templateObject2, _templateObject3;
20243
20890
  var onlyDesktop = mediaBreaks.onlyDesktop,
20244
20891
  onlyPrint = mediaBreaks.onlyPrint;
20245
20892
  var statusColor = function statusColor(props) {
@@ -20248,55 +20895,55 @@
20248
20895
 
20249
20896
  switch (true) {
20250
20897
  case disabled && checked:
20251
- return colors.blueDisabled;
20898
+ return palette.blueDisabled;
20252
20899
 
20253
20900
  case disabled:
20254
- return colors.grey.main;
20901
+ return palette.grey.main;
20255
20902
 
20256
20903
  case checked:
20257
- return colors.blue;
20904
+ return palette.blue;
20258
20905
 
20259
20906
  default:
20260
- return colors.darkGrey;
20907
+ return palette.darkGrey;
20261
20908
  }
20262
20909
  };
20263
- var Ball = styled$4.div.withConfig({
20910
+ var Ball = styled$a.div.withConfig({
20264
20911
  displayName: "styles__Ball",
20265
20912
  componentId: "sc-rtzdt3-0"
20266
- })(["width:16px;height:16px;border-radius:50%;position:absolute;top:4px;left:4px;background-color:", ";transition:all ", " 0.2s;", ""], colors.base.white, timingFunctions$1.standard, function (props) {
20913
+ })(["width:16px;height:16px;border-radius:50%;position:absolute;top:4px;left:4px;background-color:", ";transition:all ", " 0.2s;", ""], palette.base.white, timingFunctions$1.standard, function (props) {
20267
20914
  return props.checked && "\n\t\t\tleft: 100%;\n\t\t\tmargin-left: -20px;\n\t\t";
20268
20915
  });
20269
20916
  var iconCheckStyles = Ae(["position:absolute;fill:", ";", ""], function (props) {
20270
20917
  return statusColor(props);
20271
- }, onlyPrint(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\t\tfill: ", " !important;\n\t"])), function (props) {
20272
- return props.checked ? colors.black : colors.darkGrey;
20918
+ }, onlyPrint(_templateObject$2 || (_templateObject$2 = _taggedTemplateLiteral(["\n\t\tfill: ", " !important;\n\t"])), function (props) {
20919
+ return props.checked ? palette.black : palette.darkGrey;
20273
20920
  }));
20274
- var styled = {
20275
- OuterContainer: styled$4.div.withConfig({
20921
+ var styled$5 = {
20922
+ OuterContainer: styled$a.div.withConfig({
20276
20923
  displayName: "styles__OuterContainer",
20277
20924
  componentId: "sc-rtzdt3-1"
20278
20925
  })(["display:flex;width:44px;align-items:center;pointer-events:", ";align-self:center;position:relative;", " &:active ", "{box-shadow:0px 0px 0px 10px ", ";", " svg{fill:", ";}}"], function (props) {
20279
20926
  return props.disabled ? 'none' : 'auto';
20280
- }, onlyDesktop(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n\t\t\t&:hover ", " {\n\t\t\t\tbox-shadow: 0px 0px 0px 10px ", ";\n\t\t\t}\n\t\t"])), Ball, colors.lightGreyHover), Ball, colors.lightGrey,
20927
+ }, onlyDesktop(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n\t\t\t&:hover ", " {\n\t\t\t\tbox-shadow: 0px 0px 0px 10px ", ";\n\t\t\t}\n\t\t"])), Ball, palette.lightGreyHover), Ball, palette.lightGrey,
20281
20928
  /* sc-selector */
20282
20929
  iconCheckStyles, function (props) {
20283
- return props.checked ? colors.blue : colors.darkGrey;
20930
+ return props.checked ? palette.blue : palette.darkGrey;
20284
20931
  }),
20285
- Input: styled$4.input.withConfig({
20932
+ Input: styled$a.input.withConfig({
20286
20933
  displayName: "styles__Input",
20287
20934
  componentId: "sc-rtzdt3-2"
20288
20935
  })(["position:absolute;top:0;left:0;width:100%;height:100%;opacity:0;cursor:pointer;z-index:1;"]),
20289
20936
  Ball: Ball,
20290
- Container: styled$4.div.withConfig({
20937
+ Container: styled$a.div.withConfig({
20291
20938
  displayName: "styles__Container",
20292
20939
  componentId: "sc-rtzdt3-3"
20293
20940
  })(["width:44px;height:24px;background-color:", ";border-radius:50px;position:relative;", ""], function (props) {
20294
20941
  return statusColor(props);
20295
- }, onlyPrint(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n\t\t\tborder: 1px solid ", ";\n\t\t"])), colors.darkGrey)),
20942
+ }, onlyPrint(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n\t\t\tborder: 1px solid ", ";\n\t\t"])), palette.darkGrey)),
20296
20943
  iconCheckStyles: iconCheckStyles
20297
20944
  };
20298
20945
 
20299
- var _excluded = ["autoComplete", "defaultChecked", "disabled", "id", "name", "onChange", "value"];
20946
+ var _excluded$2 = ["autoComplete", "defaultChecked", "disabled", "id", "name", "onChange", "value"];
20300
20947
 
20301
20948
  var Switch = function Switch(_ref) {
20302
20949
  var autoComplete = _ref.autoComplete,
@@ -20306,7 +20953,7 @@
20306
20953
  name = _ref.name,
20307
20954
  onChange = _ref.onChange,
20308
20955
  value = _ref.value,
20309
- props = _objectWithoutProperties(_ref, _excluded);
20956
+ props = _objectWithoutProperties(_ref, _excluded$2);
20310
20957
 
20311
20958
  var _useState = React.useState(!!value || defaultChecked),
20312
20959
  _useState2 = _slicedToArray(_useState, 2),
@@ -20321,10 +20968,10 @@
20321
20968
 
20322
20969
  var _props$checked = props.checked,
20323
20970
  controledChecked = _props$checked === void 0 ? checked : _props$checked;
20324
- return /*#__PURE__*/React__default["default"].createElement(styled.OuterContainer, {
20971
+ return /*#__PURE__*/React__default["default"].createElement(styled$5.OuterContainer, {
20325
20972
  disabled: disabled,
20326
20973
  checked: checked
20327
- }, /*#__PURE__*/React__default["default"].createElement(styled.Input, {
20974
+ }, /*#__PURE__*/React__default["default"].createElement(styled$5.Input, {
20328
20975
  checked: controledChecked,
20329
20976
  id: id,
20330
20977
  name: name,
@@ -20332,10 +20979,10 @@
20332
20979
  disabled: disabled,
20333
20980
  autoComplete: autoComplete ? 'on' : 'off',
20334
20981
  onChange: handleChange
20335
- }), /*#__PURE__*/React__default["default"].createElement(styled.Container, {
20982
+ }), /*#__PURE__*/React__default["default"].createElement(styled$5.Container, {
20336
20983
  checked: controledChecked,
20337
20984
  disabled: disabled
20338
- }, /*#__PURE__*/React__default["default"].createElement(styled.Ball, {
20985
+ }, /*#__PURE__*/React__default["default"].createElement(styled$5.Ball, {
20339
20986
  checked: controledChecked,
20340
20987
  disabled: disabled
20341
20988
  }, /*#__PURE__*/React__default["default"].createElement(Icon, {
@@ -20343,7 +20990,7 @@
20343
20990
  disabled: disabled,
20344
20991
  name: "check_bold",
20345
20992
  size: 16,
20346
- styles: styled.iconCheckStyles
20993
+ styles: styled$5.iconCheckStyles
20347
20994
  }))));
20348
20995
  };
20349
20996
 
@@ -20356,12 +21003,1964 @@
20356
21003
  }
20357
21004
  };
20358
21005
 
21006
+ var typography = {
21007
+ fontFamily: 'Roboto, sans-serif',
21008
+ size: {
21009
+ base: '13px',
21010
+ baseSmall: '12px',
21011
+ medium: '14px',
21012
+ small: '11px',
21013
+ xsmall: '9px',
21014
+ large: '16px',
21015
+ xlarge: '18px',
21016
+ xxlarge: '20px'
21017
+ }
21018
+ };
21019
+
21020
+ var _templateObject$1;
21021
+ var fontSize$1 = typography.size.medium;
21022
+
21023
+ var changeColor = function changeColor(props) {
21024
+ var isFocused = props.isFocused,
21025
+ isFloating = props.isFloating,
21026
+ disabled = props.disabled,
21027
+ error = props.error;
21028
+
21029
+ switch (true) {
21030
+ case disabled:
21031
+ return palette.grey.main;
21032
+
21033
+ case error:
21034
+ return palette.error.main;
21035
+
21036
+ case isFocused:
21037
+ return palette.primary.main;
21038
+
21039
+ case isFloating:
21040
+ return palette.grey.dark;
21041
+
21042
+ default:
21043
+ return palette.grey.darkPressed;
21044
+ }
21045
+ };
21046
+
21047
+ var hoverAndFocusColor = function hoverAndFocusColor(props) {
21048
+ var isFocused = props.isFocused,
21049
+ disabled = props.disabled,
21050
+ error = props.error;
21051
+
21052
+ switch (true) {
21053
+ case disabled:
21054
+ return palette.grey.main;
21055
+
21056
+ case error:
21057
+ return palette.error.main;
21058
+
21059
+ case isFocused:
21060
+ return palette.primary.main;
21061
+
21062
+ default:
21063
+ return palette.black.main;
21064
+ }
21065
+ };
21066
+
21067
+ var styled$4 = {
21068
+ Container: styled$a.div.withConfig({
21069
+ displayName: "styles__Container",
21070
+ componentId: "sc-1fhkfhs-0"
21071
+ })(["position:relative;width:", ";"], function (props) {
21072
+ return props.fullWidth ? '100%' : 'auto';
21073
+ }),
21074
+ FloatingLabel: styled$a.div.withConfig({
21075
+ displayName: "styles__FloatingLabel",
21076
+ componentId: "sc-1fhkfhs-1"
21077
+ })(["position:absolute;font-size:", ";font-weight:400;color:", ";height:30px;line-height:30px;bottom:0;left:0;", " transform-origin:top left;transform:", ";transition:all 0.2s ", ";", ""], fontSize$1, function (props) {
21078
+ return changeColor(props);
21079
+ }, function (_ref) {
21080
+ var isTranslateActive = _ref.isTranslateActive;
21081
+ return !isTranslateActive && "pointer-events: none;";
21082
+ }, function (props) {
21083
+ return props.isFloating && 'translate(0, -18px) scale(0.75)';
21084
+ }, timingFunctions.standard, function (_ref2) {
21085
+ var hasIcon = _ref2.hasIcon,
21086
+ isFloating = _ref2.isFloating;
21087
+ return hasIcon && !isFloating && "padding-left: 32px";
21088
+ }),
21089
+ Input: styled$a.input.withConfig({
21090
+ displayName: "styles__Input",
21091
+ componentId: "sc-1fhkfhs-2"
21092
+ })(["@keyframes onAutoFill{}", " height:34px;border:none;font-size:", ";font-weight:400;color:", ";transition:color 0.2s ", ";cursor:pointer;width:100%;border-bottom:1px solid ", ";border-radius:0;", " ", " ", " &:hover{border-color:", ";}&:focus{border-color:", ";caret-color:", ";outline:none;}&:disabled{background-color:", ";color:", ";border-color:", ";cursor:default;}&:-webkit-autofill{animation-name:onAutoFill;}::-webkit-inner-spin-button{appearance:none;}", ""], function (props) {
21093
+ return !props.noMinWidth && 'min-width: 100px;';
21094
+ }, fontSize$1, palette.black.main, timingFunctions.standard, palette.grey.main, function (_ref3) {
21095
+ var error = _ref3.error;
21096
+ return error && "border-bottom-color: ".concat(palette.error.main, ";");
21097
+ }, function (_ref4) {
21098
+ var hasIcon = _ref4.hasIcon;
21099
+ return hasIcon && "padding-left: 32px;";
21100
+ }, mixins.placeholder(Ae(["font-weight:400;color:", ";"], function (_ref5) {
21101
+ var error = _ref5.error;
21102
+ return error ? palette.error.main : palette.grey.darkPressed;
21103
+ })), function (props) {
21104
+ return hoverAndFocusColor(props);
21105
+ }, function (props) {
21106
+ return hoverAndFocusColor(props);
21107
+ }, function (props) {
21108
+ return hoverAndFocusColor(props);
21109
+ }, palette.base.white, palette.grey.main, palette.grey.main, mediaBreaks.onlyPrint(_templateObject$1 || (_templateObject$1 = _taggedTemplateLiteral(["\n\t\t\tborder-bottom: none;\n\t\t"])))),
21110
+ ErrorMessage: styled$a.span.withConfig({
21111
+ displayName: "styles__ErrorMessage",
21112
+ componentId: "sc-1fhkfhs-3"
21113
+ })(["color:", ";font-size:12px;line-height:14px;transform:translateY(-6px);word-break:break-word;"], palette.error.main),
21114
+ InputIcon: styled$a(Icon).withConfig({
21115
+ displayName: "styles__InputIcon",
21116
+ componentId: "sc-1fhkfhs-4"
21117
+ })(["position:absolute;flex-shrink:0;flex-grow:0;margin-right:8px;height:100%;"])
21118
+ };
21119
+
21120
+ var _excluded$1 = ["icon", "error", "disabled", "placeholder", "errorMessage", "autoComplete", "hasFloatingLabel", "value", "isTranslateActive", "defaultValue"];
21121
+
21122
+ var Input = /*#__PURE__*/function (_PureComponent) {
21123
+ _inherits$2(Input, _PureComponent);
21124
+
21125
+ var _super = _createSuper(Input);
21126
+
21127
+ function Input() {
21128
+ var _this;
21129
+
21130
+ _classCallCheck$2(this, Input);
21131
+
21132
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
21133
+ args[_key] = arguments[_key];
21134
+ }
21135
+
21136
+ _this = _super.call.apply(_super, [this].concat(args));
21137
+
21138
+ _defineProperty(_assertThisInitialized(_this), "state", {
21139
+ isFocused: _this.props.isFocused,
21140
+ value: _this.props.defaultValue // for uncontroled input
21141
+
21142
+ });
21143
+
21144
+ _defineProperty(_assertThisInitialized(_this), "input", /*#__PURE__*/React__default["default"].createRef());
21145
+
21146
+ _defineProperty(_assertThisInitialized(_this), "handleBlur", function (event) {
21147
+ if (_this.props.hasFloatingLabel) _this.setState({
21148
+ isFocused: false
21149
+ });
21150
+
21151
+ _this.setState({
21152
+ value: event.target.value
21153
+ });
21154
+
21155
+ _this.props.onBlur(event);
21156
+ });
21157
+
21158
+ _defineProperty(_assertThisInitialized(_this), "handleChange", function (event) {
21159
+ var input = event.target;
21160
+
21161
+ _this.setState({
21162
+ value: input.value
21163
+ });
21164
+
21165
+ _this.props.onChange(event);
21166
+
21167
+ _this.cursorStart = input.selectionStart;
21168
+ _this.cursorEnd = input.selectionEnd;
21169
+ });
21170
+
21171
+ _defineProperty(_assertThisInitialized(_this), "handleFocus", function () {
21172
+ if (_this.props.hasFloatingLabel) _this.setState({
21173
+ isFocused: true
21174
+ });
21175
+
21176
+ _this.props.onFocus();
21177
+ });
21178
+
21179
+ _defineProperty(_assertThisInitialized(_this), "handleLabelClick", function () {
21180
+ _this.input.current.focus();
21181
+ });
21182
+
21183
+ return _this;
21184
+ }
21185
+
21186
+ _createClass$2(Input, [{
21187
+ key: "componentDidUpdate",
21188
+ value: function componentDidUpdate(prevProps, prevState) {
21189
+ // For maintain cursor position on update input value
21190
+ if (prevProps.value !== this.props.value || prevState.value !== this.state.value && this.input.current) {
21191
+ if (this.input.current.type === 'text') {
21192
+ this.input.current.selectionStart = this.cursorStart;
21193
+ this.input.current.selectionEnd = this.cursorEnd;
21194
+ }
21195
+ }
21196
+ }
21197
+ }, {
21198
+ key: "render",
21199
+ value: function render() {
21200
+ var _this$state = this.state,
21201
+ isFocused = _this$state.isFocused,
21202
+ stateValue = _this$state.value;
21203
+
21204
+ var _this$props = this.props,
21205
+ icon = _this$props.icon,
21206
+ error = _this$props.error,
21207
+ disabled = _this$props.disabled,
21208
+ placeholder = _this$props.placeholder,
21209
+ errorMessage = _this$props.errorMessage,
21210
+ autoComplete = _this$props.autoComplete,
21211
+ hasFloatingLabel = _this$props.hasFloatingLabel,
21212
+ _this$props$value = _this$props.value,
21213
+ value = _this$props$value === void 0 ? stateValue : _this$props$value,
21214
+ isTranslateActive = _this$props.isTranslateActive;
21215
+ _this$props.defaultValue;
21216
+ var props = _objectWithoutProperties(_this$props, _excluded$1);
21217
+
21218
+ var autoCompleteOff = props.type === 'password' ? 'new-password' : 'off';
21219
+ var isFloating = isFocused || !!value.toString();
21220
+ return /*#__PURE__*/React__default["default"].createElement(styled$4.Container, {
21221
+ fullWidth: props.fullWidth
21222
+ }, /*#__PURE__*/React__default["default"].createElement(styled$4.Container, {
21223
+ fullWidth: props.fullWidth
21224
+ }, hasFloatingLabel && /*#__PURE__*/React__default["default"].createElement(styled$4.FloatingLabel, {
21225
+ "data-test": "floatingLabel",
21226
+ error: error,
21227
+ onClick: this.handleLabelClick,
21228
+ disabled: disabled,
21229
+ isFocused: isFocused,
21230
+ isFloating: isFloating,
21231
+ hasIcon: !!icon,
21232
+ isTranslateActive: isTranslateActive
21233
+ }, props.label), icon && /*#__PURE__*/React__default["default"].createElement(styled$4.InputIcon, {
21234
+ name: icon,
21235
+ color: error ? 'error' : 'black'
21236
+ }), /*#__PURE__*/React__default["default"].createElement(styled$4.Input, _extends$2({}, props, {
21237
+ ref: this.input,
21238
+ placeholder: hasFloatingLabel && !isFloating ? '' : placeholder,
21239
+ onBlur: this.handleBlur,
21240
+ onFocus: this.handleFocus,
21241
+ onChange: this.handleChange,
21242
+ autoComplete: autoComplete ? 'on' : autoCompleteOff,
21243
+ disabled: disabled,
21244
+ value: value,
21245
+ isFocused: isFocused,
21246
+ error: error,
21247
+ hasIcon: !!icon,
21248
+ onAnimationStart: this.handleFocus
21249
+ }))), error && /*#__PURE__*/React__default["default"].createElement(styled$4.ErrorMessage, {
21250
+ "data-test": "errorMessage"
21251
+ }, errorMessage));
21252
+ }
21253
+ }]);
21254
+
21255
+ return Input;
21256
+ }(React.PureComponent);
21257
+
21258
+ Input.defaultProps = {
21259
+ defaultValue: '',
21260
+ disabled: false,
21261
+ autoComplete: false,
21262
+ isFocused: false,
21263
+ error: false,
21264
+ errorMessage: '',
21265
+ fullWidth: false,
21266
+ hasFloatingLabel: true,
21267
+ isTranslateActive: false,
21268
+ onBlur: function onBlur() {
21269
+ return null;
21270
+ },
21271
+ onChange: function onChange() {
21272
+ return null;
21273
+ },
21274
+ onFocus: function onFocus() {
21275
+ return null;
21276
+ },
21277
+ type: 'text'
21278
+ };
21279
+
21280
+ var _templateObject;
21281
+ var fontSize = typography.size.medium;
21282
+
21283
+ var placeholderColor = function placeholderColor(props) {
21284
+ var isFocused = props.isFocused,
21285
+ isFloating = props.isFloating,
21286
+ disabled = props.disabled,
21287
+ error = props.error;
21288
+
21289
+ switch (true) {
21290
+ case disabled:
21291
+ return palette.grey.main;
21292
+
21293
+ case error:
21294
+ return palette.error.main;
21295
+
21296
+ case isFocused:
21297
+ return palette.primary.main;
21298
+
21299
+ case isFloating:
21300
+ return palette.grey.dark;
21301
+
21302
+ default:
21303
+ return palette.grey.darkPressed;
21304
+ }
21305
+ };
21306
+
21307
+ var styled$3 = {
21308
+ Container: styled$a.div.withConfig({
21309
+ displayName: "styles__Container",
21310
+ componentId: "sc-wtau65-0"
21311
+ })(["position:relative;width:", ";"], function (props) {
21312
+ return props.fullWidth ? '100%' : 'auto';
21313
+ }),
21314
+ Textarea: styled$a.textarea.withConfig({
21315
+ displayName: "styles__Textarea",
21316
+ componentId: "sc-wtau65-1"
21317
+ })(["border:none;border-bottom:1px solid ", ";border-radius:0;height:23px;max-height:350px;padding:0 9px 4px 0;resize:none;font-size:", ";font-weight:400;color:", ";", ";width:", ";", " ", " &:hover{border-color:", ";}&:focus{border-color:", ";caret-color:", ";outline:none;}&:disabled{background-color:", ";color:", ";border-color:", ";cursor:default;}", " ", ""], palette.grey.main, fontSize, palette.black.main, mixins.transition('color,border-color', '0.2s'), function (props) {
21318
+ return props.fullWidth ? '100%' : 'auto';
21319
+ }, mixins.placeholder(Ae(["opacity:1;color:", ";"], function (props) {
21320
+ return placeholderColor(props);
21321
+ })), mixins.scrollbar(palette.grey.main, palette.base.white), palette.black.main, palette.primary.main, palette.primary.main, palette.base.white, palette.grey.main, palette.grey.main, function (props) {
21322
+ return props.error && "\n\t\t\t&, &:hover, &:focus {\n\t\t\t\tborder-color: ".concat(palette.error.main, "\n\t\t\t}\n\t\t");
21323
+ }, mediaBreaks.onlyPrint(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\t\t\tmin-height: initial;\n\t\t\theight: auto !important;\n\t\t\tborder-bottom: none;\n\t\t"])))),
21324
+ FloatingLabel: styled$a.div.withConfig({
21325
+ displayName: "styles__FloatingLabel",
21326
+ componentId: "sc-wtau65-2"
21327
+ })(["position:absolute;font-size:", ";font-weight:400;color:", ";height:24px;line-height:22px;top:0;left:0;pointer-events:", ";transform-origin:top left;transform:", ";transition:all 0.2s ", ";"], fontSize, function (props) {
21328
+ return placeholderColor(props);
21329
+ }, function (_ref) {
21330
+ var isTranslateActive = _ref.isTranslateActive;
21331
+ return isTranslateActive ? 'auto' : 'none';
21332
+ }, function (props) {
21333
+ return props.isFloating && 'translate(0, -18px) scale(0.75)';
21334
+ }, timingFunctions.standard),
21335
+ ErrorMessage: styled$a.span.withConfig({
21336
+ displayName: "styles__ErrorMessage",
21337
+ componentId: "sc-wtau65-3"
21338
+ })(["color:", ";font-size:12px;line-height:14px;display:block;word-break:break-word;"], palette.error.main)
21339
+ };
21340
+
21341
+ var _excluded = ["label", "error", "disabled", "placeholder", "autoComplete", "errorMessage", "hasFloatingLabel", "isTranslateActive", "value", "defaultValue"];
21342
+
21343
+ var Textarea = /*#__PURE__*/function (_PureComponent) {
21344
+ _inherits$2(Textarea, _PureComponent);
21345
+
21346
+ var _super = _createSuper(Textarea);
21347
+
21348
+ function Textarea() {
21349
+ var _this;
21350
+
21351
+ _classCallCheck$2(this, Textarea);
21352
+
21353
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
21354
+ args[_key] = arguments[_key];
21355
+ }
21356
+
21357
+ _this = _super.call.apply(_super, [this].concat(args));
21358
+
21359
+ _defineProperty(_assertThisInitialized(_this), "state", {
21360
+ isFocused: false,
21361
+ value: _this.props.defaultValue // for uncontrolled input
21362
+
21363
+ });
21364
+
21365
+ _defineProperty(_assertThisInitialized(_this), "textarea", /*#__PURE__*/React__default["default"].createRef());
21366
+
21367
+ _defineProperty(_assertThisInitialized(_this), "getScrollHeight", function () {
21368
+ if (!(_this.textarea && _this.textarea.current)) return 'auto';
21369
+ var scrollHeight = _this.textarea.current.scrollHeight;
21370
+ return scrollHeight <= 350 ? scrollHeight + 1 : 351;
21371
+ });
21372
+
21373
+ _defineProperty(_assertThisInitialized(_this), "handleBlur", function (event) {
21374
+ if (_this.props.hasFloatingLabel) _this.setState({
21375
+ isFocused: false
21376
+ });
21377
+
21378
+ _this.setState({
21379
+ value: event.target.value
21380
+ });
21381
+
21382
+ _this.props.onBlur(event);
21383
+ });
21384
+
21385
+ _defineProperty(_assertThisInitialized(_this), "handleChange", function (event) {
21386
+ _this.setState({
21387
+ value: event.target.value
21388
+ });
21389
+
21390
+ _this.props.onChange(event);
21391
+ });
21392
+
21393
+ _defineProperty(_assertThisInitialized(_this), "handleInput", function () {
21394
+ _this.setStyleHeight(5);
21395
+
21396
+ _this.setStyleHeight(_this.getScrollHeight());
21397
+ });
21398
+
21399
+ _defineProperty(_assertThisInitialized(_this), "handleFocus", function () {
21400
+ if (_this.props.hasFloatingLabel) _this.setState({
21401
+ isFocused: true
21402
+ });
21403
+
21404
+ _this.props.onFocus();
21405
+ });
21406
+
21407
+ _defineProperty(_assertThisInitialized(_this), "handleLabelClick", function () {
21408
+ _this.textarea.current.focus();
21409
+ });
21410
+
21411
+ return _this;
21412
+ }
21413
+
21414
+ _createClass$2(Textarea, [{
21415
+ key: "componentDidMount",
21416
+ value: function componentDidMount() {
21417
+ this.setStyleHeight(this.getScrollHeight());
21418
+ }
21419
+ }, {
21420
+ key: "setStyleHeight",
21421
+ value: function setStyleHeight(n) {
21422
+ if (this.textarea && this.textarea.current) this.textarea.current.style.height = "".concat(n, "px");
21423
+ }
21424
+ }, {
21425
+ key: "render",
21426
+ value: function render() {
21427
+ var _this$state = this.state,
21428
+ stateValue = _this$state.value,
21429
+ isFocused = _this$state.isFocused;
21430
+
21431
+ var _this$props = this.props,
21432
+ label = _this$props.label,
21433
+ error = _this$props.error,
21434
+ disabled = _this$props.disabled,
21435
+ placeholder = _this$props.placeholder,
21436
+ autoComplete = _this$props.autoComplete,
21437
+ errorMessage = _this$props.errorMessage,
21438
+ hasFloatingLabel = _this$props.hasFloatingLabel,
21439
+ isTranslateActive = _this$props.isTranslateActive,
21440
+ _this$props$value = _this$props.value,
21441
+ value = _this$props$value === void 0 ? stateValue : _this$props$value;
21442
+ _this$props.defaultValue;
21443
+ var props = _objectWithoutProperties(_this$props, _excluded);
21444
+
21445
+ var isFloating = isFocused || !!value;
21446
+ return /*#__PURE__*/React__default["default"].createElement(styled$3.Container, {
21447
+ fullWidth: props.fullWidth
21448
+ }, hasFloatingLabel && /*#__PURE__*/React__default["default"].createElement(styled$3.FloatingLabel, _extends$2({}, props, {
21449
+ "data-test": "floatingLabel",
21450
+ error: error,
21451
+ onClick: this.handleLabelClick,
21452
+ disabled: disabled,
21453
+ isFocused: isFocused,
21454
+ isFloating: isFloating,
21455
+ isTranslateActive: isTranslateActive
21456
+ }), label), /*#__PURE__*/React__default["default"].createElement(styled$3.Textarea, _extends$2({}, props, {
21457
+ ref: this.textarea,
21458
+ placeholder: hasFloatingLabel && !isFloating ? '' : placeholder,
21459
+ onBlur: this.handleBlur,
21460
+ onFocus: this.handleFocus,
21461
+ onChange: this.handleChange,
21462
+ onInput: this.handleInput,
21463
+ error: error,
21464
+ value: value,
21465
+ autoComplete: autoComplete ? 'on' : 'off',
21466
+ disabled: disabled
21467
+ })), error && /*#__PURE__*/React__default["default"].createElement(styled$3.ErrorMessage, {
21468
+ "data-test": "errorMessage"
21469
+ }, errorMessage));
21470
+ }
21471
+ }]);
21472
+
21473
+ return Textarea;
21474
+ }(React.PureComponent);
21475
+
21476
+ Textarea.defaultProps = {
21477
+ disabled: false,
21478
+ autoComplete: false,
21479
+ error: false,
21480
+ errorMessage: '',
21481
+ onBlur: function onBlur() {
21482
+ return null;
21483
+ },
21484
+ onChange: function onChange() {
21485
+ return null;
21486
+ },
21487
+ onFocus: function onFocus() {
21488
+ return null;
21489
+ },
21490
+ placeholder: '',
21491
+ hasFloatingLabel: false
21492
+ };
21493
+
21494
+ var setSize = function setSize(value) {
21495
+ return value && !Number.isNaN(parseInt(value, 10)) ? "".concat(value, "px") : 'auto';
21496
+ };
21497
+
21498
+ var getBorders = function getBorders(value) {
21499
+ if (value) return value === true ? '50%' : "".concat(value, "px");
21500
+ return 'initial';
21501
+ };
21502
+
21503
+ var styled$2 = {
21504
+ ImageWrapper: styled$a.div.withConfig({
21505
+ displayName: "styles__ImageWrapper",
21506
+ componentId: "sc-vrvp1c-0"
21507
+ })(["width:", ";height:", ";border-radius:", ";", ";overflow:hidden;display:flex;justify-content:center;align-items:center;"], function (_ref) {
21508
+ var width = _ref.width;
21509
+ return setSize(width);
21510
+ }, function (_ref2) {
21511
+ var height = _ref2.height;
21512
+ return setSize(height);
21513
+ }, function (_ref3) {
21514
+ var roundBorders = _ref3.roundBorders;
21515
+ return getBorders(roundBorders);
21516
+ }, function (_ref4) {
21517
+ var background = _ref4.background;
21518
+ return background && "background-color: ".concat(background);
21519
+ }),
21520
+ Image: styled$a.img.withConfig({
21521
+ displayName: "styles__Image",
21522
+ componentId: "sc-vrvp1c-1"
21523
+ })(["width:", ";height:", ";border-radius:", ";"], function (_ref5) {
21524
+ var width = _ref5.width;
21525
+ return setSize(width);
21526
+ }, function (_ref6) {
21527
+ var height = _ref6.height;
21528
+ return setSize(height);
21529
+ }, function (_ref7) {
21530
+ var roundBorders = _ref7.roundBorders;
21531
+ return getBorders(roundBorders);
21532
+ })
21533
+ };
21534
+
21535
+ var Image = function Image(_ref) {
21536
+ var url = _ref.url,
21537
+ width = _ref.width,
21538
+ height = _ref.height,
21539
+ altText = _ref.altText,
21540
+ roundBorders = _ref.roundBorders,
21541
+ background = _ref.background;
21542
+ var emptyUrlIcon = !url && 'exclamation_circle';
21543
+
21544
+ var _useState = React.useState(emptyUrlIcon),
21545
+ _useState2 = _slicedToArray(_useState, 2),
21546
+ errorImage = _useState2[0],
21547
+ setErrorImage = _useState2[1];
21548
+
21549
+ return errorImage ? /*#__PURE__*/React__default["default"].createElement(styled$2.ImageWrapper, {
21550
+ background: background,
21551
+ width: width || height,
21552
+ height: height || width
21553
+ }, /*#__PURE__*/React__default["default"].createElement(Icon, {
21554
+ name: errorImage,
21555
+ size: (width || height) * 0.35 || 20,
21556
+ color: palette.lightGreyPressed
21557
+ })) : /*#__PURE__*/React__default["default"].createElement(styled$2.Image, {
21558
+ src: url,
21559
+ alt: altText || url,
21560
+ width: width,
21561
+ height: height,
21562
+ roundBorders: roundBorders,
21563
+ onError: function onError() {
21564
+ return setErrorImage('img');
21565
+ }
21566
+ });
21567
+ };
21568
+
21569
+ Image.defaultProps = {
21570
+ background: palette.lightGreyHover
21571
+ };
21572
+
21573
+ var __defProp = Object.defineProperty;
21574
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
21575
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
21576
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
21577
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
21578
+ var __spreadValues = (a, b) => {
21579
+ for (var prop in b || (b = {}))
21580
+ if (__hasOwnProp.call(b, prop))
21581
+ __defNormalProp(a, prop, b[prop]);
21582
+ if (__getOwnPropSymbols)
21583
+ for (var prop of __getOwnPropSymbols(b)) {
21584
+ if (__propIsEnum.call(b, prop))
21585
+ __defNormalProp(a, prop, b[prop]);
21586
+ }
21587
+ return a;
21588
+ };
21589
+ var __objRest = (source, exclude) => {
21590
+ var target = {};
21591
+ for (var prop in source)
21592
+ if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
21593
+ target[prop] = source[prop];
21594
+ if (source != null && __getOwnPropSymbols)
21595
+ for (var prop of __getOwnPropSymbols(source)) {
21596
+ if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
21597
+ target[prop] = source[prop];
21598
+ }
21599
+ return target;
21600
+ };
21601
+
21602
+ // src/third-party/qrcodegen/index.ts
21603
+ /**
21604
+ * @license QR Code generator library (TypeScript)
21605
+ * Copyright (c) Project Nayuki.
21606
+ * SPDX-License-Identifier: MIT
21607
+ */
21608
+ var qrcodegen;
21609
+ ((qrcodegen2) => {
21610
+ const _QrCode = class {
21611
+ constructor(version, errorCorrectionLevel, dataCodewords, msk) {
21612
+ this.version = version;
21613
+ this.errorCorrectionLevel = errorCorrectionLevel;
21614
+ this.modules = [];
21615
+ this.isFunction = [];
21616
+ if (version < _QrCode.MIN_VERSION || version > _QrCode.MAX_VERSION)
21617
+ throw new RangeError("Version value out of range");
21618
+ if (msk < -1 || msk > 7)
21619
+ throw new RangeError("Mask value out of range");
21620
+ this.size = version * 4 + 17;
21621
+ let row = [];
21622
+ for (let i = 0; i < this.size; i++)
21623
+ row.push(false);
21624
+ for (let i = 0; i < this.size; i++) {
21625
+ this.modules.push(row.slice());
21626
+ this.isFunction.push(row.slice());
21627
+ }
21628
+ this.drawFunctionPatterns();
21629
+ const allCodewords = this.addEccAndInterleave(dataCodewords);
21630
+ this.drawCodewords(allCodewords);
21631
+ if (msk == -1) {
21632
+ let minPenalty = 1e9;
21633
+ for (let i = 0; i < 8; i++) {
21634
+ this.applyMask(i);
21635
+ this.drawFormatBits(i);
21636
+ const penalty = this.getPenaltyScore();
21637
+ if (penalty < minPenalty) {
21638
+ msk = i;
21639
+ minPenalty = penalty;
21640
+ }
21641
+ this.applyMask(i);
21642
+ }
21643
+ }
21644
+ assert(0 <= msk && msk <= 7);
21645
+ this.mask = msk;
21646
+ this.applyMask(msk);
21647
+ this.drawFormatBits(msk);
21648
+ this.isFunction = [];
21649
+ }
21650
+ static encodeText(text, ecl) {
21651
+ const segs = qrcodegen2.QrSegment.makeSegments(text);
21652
+ return _QrCode.encodeSegments(segs, ecl);
21653
+ }
21654
+ static encodeBinary(data, ecl) {
21655
+ const seg = qrcodegen2.QrSegment.makeBytes(data);
21656
+ return _QrCode.encodeSegments([seg], ecl);
21657
+ }
21658
+ static encodeSegments(segs, ecl, minVersion = 1, maxVersion = 40, mask = -1, boostEcl = true) {
21659
+ if (!(_QrCode.MIN_VERSION <= minVersion && minVersion <= maxVersion && maxVersion <= _QrCode.MAX_VERSION) || mask < -1 || mask > 7)
21660
+ throw new RangeError("Invalid value");
21661
+ let version;
21662
+ let dataUsedBits;
21663
+ for (version = minVersion; ; version++) {
21664
+ const dataCapacityBits2 = _QrCode.getNumDataCodewords(version, ecl) * 8;
21665
+ const usedBits = QrSegment.getTotalBits(segs, version);
21666
+ if (usedBits <= dataCapacityBits2) {
21667
+ dataUsedBits = usedBits;
21668
+ break;
21669
+ }
21670
+ if (version >= maxVersion)
21671
+ throw new RangeError("Data too long");
21672
+ }
21673
+ for (const newEcl of [_QrCode.Ecc.MEDIUM, _QrCode.Ecc.QUARTILE, _QrCode.Ecc.HIGH]) {
21674
+ if (boostEcl && dataUsedBits <= _QrCode.getNumDataCodewords(version, newEcl) * 8)
21675
+ ecl = newEcl;
21676
+ }
21677
+ let bb = [];
21678
+ for (const seg of segs) {
21679
+ appendBits(seg.mode.modeBits, 4, bb);
21680
+ appendBits(seg.numChars, seg.mode.numCharCountBits(version), bb);
21681
+ for (const b of seg.getData())
21682
+ bb.push(b);
21683
+ }
21684
+ assert(bb.length == dataUsedBits);
21685
+ const dataCapacityBits = _QrCode.getNumDataCodewords(version, ecl) * 8;
21686
+ assert(bb.length <= dataCapacityBits);
21687
+ appendBits(0, Math.min(4, dataCapacityBits - bb.length), bb);
21688
+ appendBits(0, (8 - bb.length % 8) % 8, bb);
21689
+ assert(bb.length % 8 == 0);
21690
+ for (let padByte = 236; bb.length < dataCapacityBits; padByte ^= 236 ^ 17)
21691
+ appendBits(padByte, 8, bb);
21692
+ let dataCodewords = [];
21693
+ while (dataCodewords.length * 8 < bb.length)
21694
+ dataCodewords.push(0);
21695
+ bb.forEach((b, i) => dataCodewords[i >>> 3] |= b << 7 - (i & 7));
21696
+ return new _QrCode(version, ecl, dataCodewords, mask);
21697
+ }
21698
+ getModule(x, y) {
21699
+ return 0 <= x && x < this.size && 0 <= y && y < this.size && this.modules[y][x];
21700
+ }
21701
+ getModules() {
21702
+ return this.modules;
21703
+ }
21704
+ drawFunctionPatterns() {
21705
+ for (let i = 0; i < this.size; i++) {
21706
+ this.setFunctionModule(6, i, i % 2 == 0);
21707
+ this.setFunctionModule(i, 6, i % 2 == 0);
21708
+ }
21709
+ this.drawFinderPattern(3, 3);
21710
+ this.drawFinderPattern(this.size - 4, 3);
21711
+ this.drawFinderPattern(3, this.size - 4);
21712
+ const alignPatPos = this.getAlignmentPatternPositions();
21713
+ const numAlign = alignPatPos.length;
21714
+ for (let i = 0; i < numAlign; i++) {
21715
+ for (let j = 0; j < numAlign; j++) {
21716
+ if (!(i == 0 && j == 0 || i == 0 && j == numAlign - 1 || i == numAlign - 1 && j == 0))
21717
+ this.drawAlignmentPattern(alignPatPos[i], alignPatPos[j]);
21718
+ }
21719
+ }
21720
+ this.drawFormatBits(0);
21721
+ this.drawVersion();
21722
+ }
21723
+ drawFormatBits(mask) {
21724
+ const data = this.errorCorrectionLevel.formatBits << 3 | mask;
21725
+ let rem = data;
21726
+ for (let i = 0; i < 10; i++)
21727
+ rem = rem << 1 ^ (rem >>> 9) * 1335;
21728
+ const bits = (data << 10 | rem) ^ 21522;
21729
+ assert(bits >>> 15 == 0);
21730
+ for (let i = 0; i <= 5; i++)
21731
+ this.setFunctionModule(8, i, getBit(bits, i));
21732
+ this.setFunctionModule(8, 7, getBit(bits, 6));
21733
+ this.setFunctionModule(8, 8, getBit(bits, 7));
21734
+ this.setFunctionModule(7, 8, getBit(bits, 8));
21735
+ for (let i = 9; i < 15; i++)
21736
+ this.setFunctionModule(14 - i, 8, getBit(bits, i));
21737
+ for (let i = 0; i < 8; i++)
21738
+ this.setFunctionModule(this.size - 1 - i, 8, getBit(bits, i));
21739
+ for (let i = 8; i < 15; i++)
21740
+ this.setFunctionModule(8, this.size - 15 + i, getBit(bits, i));
21741
+ this.setFunctionModule(8, this.size - 8, true);
21742
+ }
21743
+ drawVersion() {
21744
+ if (this.version < 7)
21745
+ return;
21746
+ let rem = this.version;
21747
+ for (let i = 0; i < 12; i++)
21748
+ rem = rem << 1 ^ (rem >>> 11) * 7973;
21749
+ const bits = this.version << 12 | rem;
21750
+ assert(bits >>> 18 == 0);
21751
+ for (let i = 0; i < 18; i++) {
21752
+ const color = getBit(bits, i);
21753
+ const a = this.size - 11 + i % 3;
21754
+ const b = Math.floor(i / 3);
21755
+ this.setFunctionModule(a, b, color);
21756
+ this.setFunctionModule(b, a, color);
21757
+ }
21758
+ }
21759
+ drawFinderPattern(x, y) {
21760
+ for (let dy = -4; dy <= 4; dy++) {
21761
+ for (let dx = -4; dx <= 4; dx++) {
21762
+ const dist = Math.max(Math.abs(dx), Math.abs(dy));
21763
+ const xx = x + dx;
21764
+ const yy = y + dy;
21765
+ if (0 <= xx && xx < this.size && 0 <= yy && yy < this.size)
21766
+ this.setFunctionModule(xx, yy, dist != 2 && dist != 4);
21767
+ }
21768
+ }
21769
+ }
21770
+ drawAlignmentPattern(x, y) {
21771
+ for (let dy = -2; dy <= 2; dy++) {
21772
+ for (let dx = -2; dx <= 2; dx++)
21773
+ this.setFunctionModule(x + dx, y + dy, Math.max(Math.abs(dx), Math.abs(dy)) != 1);
21774
+ }
21775
+ }
21776
+ setFunctionModule(x, y, isDark) {
21777
+ this.modules[y][x] = isDark;
21778
+ this.isFunction[y][x] = true;
21779
+ }
21780
+ addEccAndInterleave(data) {
21781
+ const ver = this.version;
21782
+ const ecl = this.errorCorrectionLevel;
21783
+ if (data.length != _QrCode.getNumDataCodewords(ver, ecl))
21784
+ throw new RangeError("Invalid argument");
21785
+ const numBlocks = _QrCode.NUM_ERROR_CORRECTION_BLOCKS[ecl.ordinal][ver];
21786
+ const blockEccLen = _QrCode.ECC_CODEWORDS_PER_BLOCK[ecl.ordinal][ver];
21787
+ const rawCodewords = Math.floor(_QrCode.getNumRawDataModules(ver) / 8);
21788
+ const numShortBlocks = numBlocks - rawCodewords % numBlocks;
21789
+ const shortBlockLen = Math.floor(rawCodewords / numBlocks);
21790
+ let blocks = [];
21791
+ const rsDiv = _QrCode.reedSolomonComputeDivisor(blockEccLen);
21792
+ for (let i = 0, k = 0; i < numBlocks; i++) {
21793
+ let dat = data.slice(k, k + shortBlockLen - blockEccLen + (i < numShortBlocks ? 0 : 1));
21794
+ k += dat.length;
21795
+ const ecc = _QrCode.reedSolomonComputeRemainder(dat, rsDiv);
21796
+ if (i < numShortBlocks)
21797
+ dat.push(0);
21798
+ blocks.push(dat.concat(ecc));
21799
+ }
21800
+ let result = [];
21801
+ for (let i = 0; i < blocks[0].length; i++) {
21802
+ blocks.forEach((block, j) => {
21803
+ if (i != shortBlockLen - blockEccLen || j >= numShortBlocks)
21804
+ result.push(block[i]);
21805
+ });
21806
+ }
21807
+ assert(result.length == rawCodewords);
21808
+ return result;
21809
+ }
21810
+ drawCodewords(data) {
21811
+ if (data.length != Math.floor(_QrCode.getNumRawDataModules(this.version) / 8))
21812
+ throw new RangeError("Invalid argument");
21813
+ let i = 0;
21814
+ for (let right = this.size - 1; right >= 1; right -= 2) {
21815
+ if (right == 6)
21816
+ right = 5;
21817
+ for (let vert = 0; vert < this.size; vert++) {
21818
+ for (let j = 0; j < 2; j++) {
21819
+ const x = right - j;
21820
+ const upward = (right + 1 & 2) == 0;
21821
+ const y = upward ? this.size - 1 - vert : vert;
21822
+ if (!this.isFunction[y][x] && i < data.length * 8) {
21823
+ this.modules[y][x] = getBit(data[i >>> 3], 7 - (i & 7));
21824
+ i++;
21825
+ }
21826
+ }
21827
+ }
21828
+ }
21829
+ assert(i == data.length * 8);
21830
+ }
21831
+ applyMask(mask) {
21832
+ if (mask < 0 || mask > 7)
21833
+ throw new RangeError("Mask value out of range");
21834
+ for (let y = 0; y < this.size; y++) {
21835
+ for (let x = 0; x < this.size; x++) {
21836
+ let invert;
21837
+ switch (mask) {
21838
+ case 0:
21839
+ invert = (x + y) % 2 == 0;
21840
+ break;
21841
+ case 1:
21842
+ invert = y % 2 == 0;
21843
+ break;
21844
+ case 2:
21845
+ invert = x % 3 == 0;
21846
+ break;
21847
+ case 3:
21848
+ invert = (x + y) % 3 == 0;
21849
+ break;
21850
+ case 4:
21851
+ invert = (Math.floor(x / 3) + Math.floor(y / 2)) % 2 == 0;
21852
+ break;
21853
+ case 5:
21854
+ invert = x * y % 2 + x * y % 3 == 0;
21855
+ break;
21856
+ case 6:
21857
+ invert = (x * y % 2 + x * y % 3) % 2 == 0;
21858
+ break;
21859
+ case 7:
21860
+ invert = ((x + y) % 2 + x * y % 3) % 2 == 0;
21861
+ break;
21862
+ default:
21863
+ throw new Error("Unreachable");
21864
+ }
21865
+ if (!this.isFunction[y][x] && invert)
21866
+ this.modules[y][x] = !this.modules[y][x];
21867
+ }
21868
+ }
21869
+ }
21870
+ getPenaltyScore() {
21871
+ let result = 0;
21872
+ for (let y = 0; y < this.size; y++) {
21873
+ let runColor = false;
21874
+ let runX = 0;
21875
+ let runHistory = [0, 0, 0, 0, 0, 0, 0];
21876
+ for (let x = 0; x < this.size; x++) {
21877
+ if (this.modules[y][x] == runColor) {
21878
+ runX++;
21879
+ if (runX == 5)
21880
+ result += _QrCode.PENALTY_N1;
21881
+ else if (runX > 5)
21882
+ result++;
21883
+ } else {
21884
+ this.finderPenaltyAddHistory(runX, runHistory);
21885
+ if (!runColor)
21886
+ result += this.finderPenaltyCountPatterns(runHistory) * _QrCode.PENALTY_N3;
21887
+ runColor = this.modules[y][x];
21888
+ runX = 1;
21889
+ }
21890
+ }
21891
+ result += this.finderPenaltyTerminateAndCount(runColor, runX, runHistory) * _QrCode.PENALTY_N3;
21892
+ }
21893
+ for (let x = 0; x < this.size; x++) {
21894
+ let runColor = false;
21895
+ let runY = 0;
21896
+ let runHistory = [0, 0, 0, 0, 0, 0, 0];
21897
+ for (let y = 0; y < this.size; y++) {
21898
+ if (this.modules[y][x] == runColor) {
21899
+ runY++;
21900
+ if (runY == 5)
21901
+ result += _QrCode.PENALTY_N1;
21902
+ else if (runY > 5)
21903
+ result++;
21904
+ } else {
21905
+ this.finderPenaltyAddHistory(runY, runHistory);
21906
+ if (!runColor)
21907
+ result += this.finderPenaltyCountPatterns(runHistory) * _QrCode.PENALTY_N3;
21908
+ runColor = this.modules[y][x];
21909
+ runY = 1;
21910
+ }
21911
+ }
21912
+ result += this.finderPenaltyTerminateAndCount(runColor, runY, runHistory) * _QrCode.PENALTY_N3;
21913
+ }
21914
+ for (let y = 0; y < this.size - 1; y++) {
21915
+ for (let x = 0; x < this.size - 1; x++) {
21916
+ const color = this.modules[y][x];
21917
+ if (color == this.modules[y][x + 1] && color == this.modules[y + 1][x] && color == this.modules[y + 1][x + 1])
21918
+ result += _QrCode.PENALTY_N2;
21919
+ }
21920
+ }
21921
+ let dark = 0;
21922
+ for (const row of this.modules)
21923
+ dark = row.reduce((sum, color) => sum + (color ? 1 : 0), dark);
21924
+ const total = this.size * this.size;
21925
+ const k = Math.ceil(Math.abs(dark * 20 - total * 10) / total) - 1;
21926
+ assert(0 <= k && k <= 9);
21927
+ result += k * _QrCode.PENALTY_N4;
21928
+ assert(0 <= result && result <= 2568888);
21929
+ return result;
21930
+ }
21931
+ getAlignmentPatternPositions() {
21932
+ if (this.version == 1)
21933
+ return [];
21934
+ else {
21935
+ const numAlign = Math.floor(this.version / 7) + 2;
21936
+ const step = this.version == 32 ? 26 : Math.ceil((this.version * 4 + 4) / (numAlign * 2 - 2)) * 2;
21937
+ let result = [6];
21938
+ for (let pos = this.size - 7; result.length < numAlign; pos -= step)
21939
+ result.splice(1, 0, pos);
21940
+ return result;
21941
+ }
21942
+ }
21943
+ static getNumRawDataModules(ver) {
21944
+ if (ver < _QrCode.MIN_VERSION || ver > _QrCode.MAX_VERSION)
21945
+ throw new RangeError("Version number out of range");
21946
+ let result = (16 * ver + 128) * ver + 64;
21947
+ if (ver >= 2) {
21948
+ const numAlign = Math.floor(ver / 7) + 2;
21949
+ result -= (25 * numAlign - 10) * numAlign - 55;
21950
+ if (ver >= 7)
21951
+ result -= 36;
21952
+ }
21953
+ assert(208 <= result && result <= 29648);
21954
+ return result;
21955
+ }
21956
+ static getNumDataCodewords(ver, ecl) {
21957
+ return Math.floor(_QrCode.getNumRawDataModules(ver) / 8) - _QrCode.ECC_CODEWORDS_PER_BLOCK[ecl.ordinal][ver] * _QrCode.NUM_ERROR_CORRECTION_BLOCKS[ecl.ordinal][ver];
21958
+ }
21959
+ static reedSolomonComputeDivisor(degree) {
21960
+ if (degree < 1 || degree > 255)
21961
+ throw new RangeError("Degree out of range");
21962
+ let result = [];
21963
+ for (let i = 0; i < degree - 1; i++)
21964
+ result.push(0);
21965
+ result.push(1);
21966
+ let root = 1;
21967
+ for (let i = 0; i < degree; i++) {
21968
+ for (let j = 0; j < result.length; j++) {
21969
+ result[j] = _QrCode.reedSolomonMultiply(result[j], root);
21970
+ if (j + 1 < result.length)
21971
+ result[j] ^= result[j + 1];
21972
+ }
21973
+ root = _QrCode.reedSolomonMultiply(root, 2);
21974
+ }
21975
+ return result;
21976
+ }
21977
+ static reedSolomonComputeRemainder(data, divisor) {
21978
+ let result = divisor.map((_) => 0);
21979
+ for (const b of data) {
21980
+ const factor = b ^ result.shift();
21981
+ result.push(0);
21982
+ divisor.forEach((coef, i) => result[i] ^= _QrCode.reedSolomonMultiply(coef, factor));
21983
+ }
21984
+ return result;
21985
+ }
21986
+ static reedSolomonMultiply(x, y) {
21987
+ if (x >>> 8 != 0 || y >>> 8 != 0)
21988
+ throw new RangeError("Byte out of range");
21989
+ let z = 0;
21990
+ for (let i = 7; i >= 0; i--) {
21991
+ z = z << 1 ^ (z >>> 7) * 285;
21992
+ z ^= (y >>> i & 1) * x;
21993
+ }
21994
+ assert(z >>> 8 == 0);
21995
+ return z;
21996
+ }
21997
+ finderPenaltyCountPatterns(runHistory) {
21998
+ const n = runHistory[1];
21999
+ assert(n <= this.size * 3);
22000
+ const core = n > 0 && runHistory[2] == n && runHistory[3] == n * 3 && runHistory[4] == n && runHistory[5] == n;
22001
+ return (core && runHistory[0] >= n * 4 && runHistory[6] >= n ? 1 : 0) + (core && runHistory[6] >= n * 4 && runHistory[0] >= n ? 1 : 0);
22002
+ }
22003
+ finderPenaltyTerminateAndCount(currentRunColor, currentRunLength, runHistory) {
22004
+ if (currentRunColor) {
22005
+ this.finderPenaltyAddHistory(currentRunLength, runHistory);
22006
+ currentRunLength = 0;
22007
+ }
22008
+ currentRunLength += this.size;
22009
+ this.finderPenaltyAddHistory(currentRunLength, runHistory);
22010
+ return this.finderPenaltyCountPatterns(runHistory);
22011
+ }
22012
+ finderPenaltyAddHistory(currentRunLength, runHistory) {
22013
+ if (runHistory[0] == 0)
22014
+ currentRunLength += this.size;
22015
+ runHistory.pop();
22016
+ runHistory.unshift(currentRunLength);
22017
+ }
22018
+ };
22019
+ let QrCode = _QrCode;
22020
+ QrCode.MIN_VERSION = 1;
22021
+ QrCode.MAX_VERSION = 40;
22022
+ QrCode.PENALTY_N1 = 3;
22023
+ QrCode.PENALTY_N2 = 3;
22024
+ QrCode.PENALTY_N3 = 40;
22025
+ QrCode.PENALTY_N4 = 10;
22026
+ QrCode.ECC_CODEWORDS_PER_BLOCK = [
22027
+ [-1, 7, 10, 15, 20, 26, 18, 20, 24, 30, 18, 20, 24, 26, 30, 22, 24, 28, 30, 28, 28, 28, 28, 30, 30, 26, 28, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30],
22028
+ [-1, 10, 16, 26, 18, 24, 16, 18, 22, 22, 26, 30, 22, 22, 24, 24, 28, 28, 26, 26, 26, 26, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28],
22029
+ [-1, 13, 22, 18, 26, 18, 24, 18, 22, 20, 24, 28, 26, 24, 20, 30, 24, 28, 28, 26, 30, 28, 30, 30, 30, 30, 28, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30],
22030
+ [-1, 17, 28, 22, 16, 22, 28, 26, 26, 24, 28, 24, 28, 22, 24, 24, 30, 28, 28, 26, 28, 30, 24, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30]
22031
+ ];
22032
+ QrCode.NUM_ERROR_CORRECTION_BLOCKS = [
22033
+ [-1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 4, 4, 4, 4, 4, 6, 6, 6, 6, 7, 8, 8, 9, 9, 10, 12, 12, 12, 13, 14, 15, 16, 17, 18, 19, 19, 20, 21, 22, 24, 25],
22034
+ [-1, 1, 1, 1, 2, 2, 4, 4, 4, 5, 5, 5, 8, 9, 9, 10, 10, 11, 13, 14, 16, 17, 17, 18, 20, 21, 23, 25, 26, 28, 29, 31, 33, 35, 37, 38, 40, 43, 45, 47, 49],
22035
+ [-1, 1, 1, 2, 2, 4, 4, 6, 6, 8, 8, 8, 10, 12, 16, 12, 17, 16, 18, 21, 20, 23, 23, 25, 27, 29, 34, 34, 35, 38, 40, 43, 45, 48, 51, 53, 56, 59, 62, 65, 68],
22036
+ [-1, 1, 1, 2, 4, 4, 4, 5, 6, 8, 8, 11, 11, 16, 16, 18, 16, 19, 21, 25, 25, 25, 34, 30, 32, 35, 37, 40, 42, 45, 48, 51, 54, 57, 60, 63, 66, 70, 74, 77, 81]
22037
+ ];
22038
+ qrcodegen2.QrCode = QrCode;
22039
+ function appendBits(val, len, bb) {
22040
+ if (len < 0 || len > 31 || val >>> len != 0)
22041
+ throw new RangeError("Value out of range");
22042
+ for (let i = len - 1; i >= 0; i--)
22043
+ bb.push(val >>> i & 1);
22044
+ }
22045
+ function getBit(x, i) {
22046
+ return (x >>> i & 1) != 0;
22047
+ }
22048
+ function assert(cond) {
22049
+ if (!cond)
22050
+ throw new Error("Assertion error");
22051
+ }
22052
+ const _QrSegment = class {
22053
+ constructor(mode, numChars, bitData) {
22054
+ this.mode = mode;
22055
+ this.numChars = numChars;
22056
+ this.bitData = bitData;
22057
+ if (numChars < 0)
22058
+ throw new RangeError("Invalid argument");
22059
+ this.bitData = bitData.slice();
22060
+ }
22061
+ static makeBytes(data) {
22062
+ let bb = [];
22063
+ for (const b of data)
22064
+ appendBits(b, 8, bb);
22065
+ return new _QrSegment(_QrSegment.Mode.BYTE, data.length, bb);
22066
+ }
22067
+ static makeNumeric(digits) {
22068
+ if (!_QrSegment.isNumeric(digits))
22069
+ throw new RangeError("String contains non-numeric characters");
22070
+ let bb = [];
22071
+ for (let i = 0; i < digits.length; ) {
22072
+ const n = Math.min(digits.length - i, 3);
22073
+ appendBits(parseInt(digits.substr(i, n), 10), n * 3 + 1, bb);
22074
+ i += n;
22075
+ }
22076
+ return new _QrSegment(_QrSegment.Mode.NUMERIC, digits.length, bb);
22077
+ }
22078
+ static makeAlphanumeric(text) {
22079
+ if (!_QrSegment.isAlphanumeric(text))
22080
+ throw new RangeError("String contains unencodable characters in alphanumeric mode");
22081
+ let bb = [];
22082
+ let i;
22083
+ for (i = 0; i + 2 <= text.length; i += 2) {
22084
+ let temp = _QrSegment.ALPHANUMERIC_CHARSET.indexOf(text.charAt(i)) * 45;
22085
+ temp += _QrSegment.ALPHANUMERIC_CHARSET.indexOf(text.charAt(i + 1));
22086
+ appendBits(temp, 11, bb);
22087
+ }
22088
+ if (i < text.length)
22089
+ appendBits(_QrSegment.ALPHANUMERIC_CHARSET.indexOf(text.charAt(i)), 6, bb);
22090
+ return new _QrSegment(_QrSegment.Mode.ALPHANUMERIC, text.length, bb);
22091
+ }
22092
+ static makeSegments(text) {
22093
+ if (text == "")
22094
+ return [];
22095
+ else if (_QrSegment.isNumeric(text))
22096
+ return [_QrSegment.makeNumeric(text)];
22097
+ else if (_QrSegment.isAlphanumeric(text))
22098
+ return [_QrSegment.makeAlphanumeric(text)];
22099
+ else
22100
+ return [_QrSegment.makeBytes(_QrSegment.toUtf8ByteArray(text))];
22101
+ }
22102
+ static makeEci(assignVal) {
22103
+ let bb = [];
22104
+ if (assignVal < 0)
22105
+ throw new RangeError("ECI assignment value out of range");
22106
+ else if (assignVal < 1 << 7)
22107
+ appendBits(assignVal, 8, bb);
22108
+ else if (assignVal < 1 << 14) {
22109
+ appendBits(2, 2, bb);
22110
+ appendBits(assignVal, 14, bb);
22111
+ } else if (assignVal < 1e6) {
22112
+ appendBits(6, 3, bb);
22113
+ appendBits(assignVal, 21, bb);
22114
+ } else
22115
+ throw new RangeError("ECI assignment value out of range");
22116
+ return new _QrSegment(_QrSegment.Mode.ECI, 0, bb);
22117
+ }
22118
+ static isNumeric(text) {
22119
+ return _QrSegment.NUMERIC_REGEX.test(text);
22120
+ }
22121
+ static isAlphanumeric(text) {
22122
+ return _QrSegment.ALPHANUMERIC_REGEX.test(text);
22123
+ }
22124
+ getData() {
22125
+ return this.bitData.slice();
22126
+ }
22127
+ static getTotalBits(segs, version) {
22128
+ let result = 0;
22129
+ for (const seg of segs) {
22130
+ const ccbits = seg.mode.numCharCountBits(version);
22131
+ if (seg.numChars >= 1 << ccbits)
22132
+ return Infinity;
22133
+ result += 4 + ccbits + seg.bitData.length;
22134
+ }
22135
+ return result;
22136
+ }
22137
+ static toUtf8ByteArray(str) {
22138
+ str = encodeURI(str);
22139
+ let result = [];
22140
+ for (let i = 0; i < str.length; i++) {
22141
+ if (str.charAt(i) != "%")
22142
+ result.push(str.charCodeAt(i));
22143
+ else {
22144
+ result.push(parseInt(str.substr(i + 1, 2), 16));
22145
+ i += 2;
22146
+ }
22147
+ }
22148
+ return result;
22149
+ }
22150
+ };
22151
+ let QrSegment = _QrSegment;
22152
+ QrSegment.NUMERIC_REGEX = /^[0-9]*$/;
22153
+ QrSegment.ALPHANUMERIC_REGEX = /^[A-Z0-9 $%*+.\/:-]*$/;
22154
+ QrSegment.ALPHANUMERIC_CHARSET = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:";
22155
+ qrcodegen2.QrSegment = QrSegment;
22156
+ })(qrcodegen || (qrcodegen = {}));
22157
+ ((qrcodegen2) => {
22158
+ ((QrCode2) => {
22159
+ const _Ecc = class {
22160
+ constructor(ordinal, formatBits) {
22161
+ this.ordinal = ordinal;
22162
+ this.formatBits = formatBits;
22163
+ }
22164
+ };
22165
+ let Ecc = _Ecc;
22166
+ Ecc.LOW = new _Ecc(0, 1);
22167
+ Ecc.MEDIUM = new _Ecc(1, 0);
22168
+ Ecc.QUARTILE = new _Ecc(2, 3);
22169
+ Ecc.HIGH = new _Ecc(3, 2);
22170
+ QrCode2.Ecc = Ecc;
22171
+ })(qrcodegen2.QrCode || (qrcodegen2.QrCode = {}));
22172
+ })(qrcodegen || (qrcodegen = {}));
22173
+ ((qrcodegen2) => {
22174
+ ((QrSegment2) => {
22175
+ const _Mode = class {
22176
+ constructor(modeBits, numBitsCharCount) {
22177
+ this.modeBits = modeBits;
22178
+ this.numBitsCharCount = numBitsCharCount;
22179
+ }
22180
+ numCharCountBits(ver) {
22181
+ return this.numBitsCharCount[Math.floor((ver + 7) / 17)];
22182
+ }
22183
+ };
22184
+ let Mode = _Mode;
22185
+ Mode.NUMERIC = new _Mode(1, [10, 12, 14]);
22186
+ Mode.ALPHANUMERIC = new _Mode(2, [9, 11, 13]);
22187
+ Mode.BYTE = new _Mode(4, [8, 16, 16]);
22188
+ Mode.KANJI = new _Mode(8, [8, 10, 12]);
22189
+ Mode.ECI = new _Mode(7, [0, 0, 0]);
22190
+ QrSegment2.Mode = Mode;
22191
+ })(qrcodegen2.QrSegment || (qrcodegen2.QrSegment = {}));
22192
+ })(qrcodegen || (qrcodegen = {}));
22193
+ var qrcodegen_default = qrcodegen;
22194
+
22195
+ // src/index.tsx
22196
+ /**
22197
+ * @license qrcode.react
22198
+ * Copyright (c) Paul O'Shannessy
22199
+ * SPDX-License-Identifier: ISC
22200
+ */
22201
+ var ERROR_LEVEL_MAP = {
22202
+ L: qrcodegen_default.QrCode.Ecc.LOW,
22203
+ M: qrcodegen_default.QrCode.Ecc.MEDIUM,
22204
+ Q: qrcodegen_default.QrCode.Ecc.QUARTILE,
22205
+ H: qrcodegen_default.QrCode.Ecc.HIGH
22206
+ };
22207
+ var DEFAULT_PROPS = {
22208
+ size: 128,
22209
+ level: "L",
22210
+ bgColor: "#FFFFFF",
22211
+ fgColor: "#000000",
22212
+ includeMargin: false
22213
+ };
22214
+ var MARGIN_SIZE = 4;
22215
+ var DEFAULT_IMG_SCALE = 0.1;
22216
+ function generatePath(modules, margin = 0) {
22217
+ const ops = [];
22218
+ modules.forEach(function(row, y) {
22219
+ let start = null;
22220
+ row.forEach(function(cell, x) {
22221
+ if (!cell && start !== null) {
22222
+ ops.push(`M${start + margin} ${y + margin}h${x - start}v1H${start + margin}z`);
22223
+ start = null;
22224
+ return;
22225
+ }
22226
+ if (x === row.length - 1) {
22227
+ if (!cell) {
22228
+ return;
22229
+ }
22230
+ if (start === null) {
22231
+ ops.push(`M${x + margin},${y + margin} h1v1H${x + margin}z`);
22232
+ } else {
22233
+ ops.push(`M${start + margin},${y + margin} h${x + 1 - start}v1H${start + margin}z`);
22234
+ }
22235
+ return;
22236
+ }
22237
+ if (cell && start === null) {
22238
+ start = x;
22239
+ }
22240
+ });
22241
+ });
22242
+ return ops.join("");
22243
+ }
22244
+ function excavateModules(modules, excavation) {
22245
+ return modules.slice().map((row, y) => {
22246
+ if (y < excavation.y || y >= excavation.y + excavation.h) {
22247
+ return row;
22248
+ }
22249
+ return row.map((cell, x) => {
22250
+ if (x < excavation.x || x >= excavation.x + excavation.w) {
22251
+ return cell;
22252
+ }
22253
+ return false;
22254
+ });
22255
+ });
22256
+ }
22257
+ function getImageSettings(props, cells) {
22258
+ const { imageSettings, size, includeMargin } = props;
22259
+ if (imageSettings == null) {
22260
+ return null;
22261
+ }
22262
+ const margin = includeMargin ? MARGIN_SIZE : 0;
22263
+ const numCells = cells.length + margin * 2;
22264
+ const defaultSize = Math.floor(size * DEFAULT_IMG_SCALE);
22265
+ const scale = numCells / size;
22266
+ const w = (imageSettings.width || defaultSize) * scale;
22267
+ const h = (imageSettings.height || defaultSize) * scale;
22268
+ const x = imageSettings.x == null ? cells.length / 2 - w / 2 : imageSettings.x * scale;
22269
+ const y = imageSettings.y == null ? cells.length / 2 - h / 2 : imageSettings.y * scale;
22270
+ let excavation = null;
22271
+ if (imageSettings.excavate) {
22272
+ let floorX = Math.floor(x);
22273
+ let floorY = Math.floor(y);
22274
+ let ceilW = Math.ceil(w + x - floorX);
22275
+ let ceilH = Math.ceil(h + y - floorY);
22276
+ excavation = { x: floorX, y: floorY, w: ceilW, h: ceilH };
22277
+ }
22278
+ return { x, y, h, w, excavation };
22279
+ }
22280
+ (function() {
22281
+ try {
22282
+ new Path2D().addPath(new Path2D());
22283
+ } catch (e) {
22284
+ return false;
22285
+ }
22286
+ return true;
22287
+ })();
22288
+ function QRCodeSVG(props) {
22289
+ const _a = props, {
22290
+ value,
22291
+ size,
22292
+ level,
22293
+ bgColor,
22294
+ fgColor,
22295
+ includeMargin,
22296
+ imageSettings
22297
+ } = _a, otherProps = __objRest(_a, [
22298
+ "value",
22299
+ "size",
22300
+ "level",
22301
+ "bgColor",
22302
+ "fgColor",
22303
+ "includeMargin",
22304
+ "imageSettings"
22305
+ ]);
22306
+ let cells = qrcodegen_default.QrCode.encodeText(value, ERROR_LEVEL_MAP[level]).getModules();
22307
+ const margin = includeMargin ? MARGIN_SIZE : 0;
22308
+ const numCells = cells.length + margin * 2;
22309
+ const calculatedImageSettings = getImageSettings(props, cells);
22310
+ let image = null;
22311
+ if (imageSettings != null && calculatedImageSettings != null) {
22312
+ if (calculatedImageSettings.excavation != null) {
22313
+ cells = excavateModules(cells, calculatedImageSettings.excavation);
22314
+ }
22315
+ image = /* @__PURE__ */ React__default["default"].createElement("image", {
22316
+ xlinkHref: imageSettings.src,
22317
+ height: calculatedImageSettings.h,
22318
+ width: calculatedImageSettings.w,
22319
+ x: calculatedImageSettings.x + margin,
22320
+ y: calculatedImageSettings.y + margin,
22321
+ preserveAspectRatio: "none"
22322
+ });
22323
+ }
22324
+ const fgPath = generatePath(cells, margin);
22325
+ return /* @__PURE__ */ React__default["default"].createElement("svg", __spreadValues({
22326
+ shapeRendering: "crispEdges",
22327
+ height: size,
22328
+ width: size,
22329
+ viewBox: `0 0 ${numCells} ${numCells}`
22330
+ }, otherProps), /* @__PURE__ */ React__default["default"].createElement("path", {
22331
+ fill: bgColor,
22332
+ d: `M0,0 h${numCells}v${numCells}H0z`
22333
+ }), /* @__PURE__ */ React__default["default"].createElement("path", {
22334
+ fill: fgColor,
22335
+ d: fgPath
22336
+ }), image);
22337
+ }
22338
+ QRCodeSVG.defaultProps = DEFAULT_PROPS;
22339
+ __spreadValues({ renderAs: "canvas" }, DEFAULT_PROPS);
22340
+
22341
+ var QRCode = function QRCode(_ref) {
22342
+ var value = _ref.value,
22343
+ size = _ref.size;
22344
+ if (typeof value !== 'string') return null;
22345
+ return /*#__PURE__*/React__default["default"].createElement(QRCodeSVG, {
22346
+ value: value,
22347
+ size: size
22348
+ });
22349
+ };
22350
+
22351
+ QRCode.defaultProps = {
22352
+ size: 100
22353
+ };
22354
+
22355
+ function u(){return (u=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);}return e}).apply(this,arguments)}function c(e,r){if(null==e)return {};var t,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r.indexOf(t=a[n])>=0||(o[t]=e[t]);return o}function i(e){var t=React.useRef(e),n=React.useRef(function(e){t.current&&t.current(e);});return t.current=e,n.current}var s=function(e,r,t){return void 0===r&&(r=0),void 0===t&&(t=1),e>t?t:e<r?r:e},f=function(e){return "touches"in e},v=function(e){return e&&e.ownerDocument.defaultView||self},d=function(e,r,t){var n=e.getBoundingClientRect(),o=f(r)?function(e,r){for(var t=0;t<e.length;t++)if(e[t].identifier===r)return e[t];return e[0]}(r.touches,t):r;return {left:s((o.pageX-(n.left+v(e).pageXOffset))/n.width),top:s((o.pageY-(n.top+v(e).pageYOffset))/n.height)}},h=function(e){!f(e)&&e.preventDefault();},m=React__default["default"].memo(function(o){var a=o.onMove,l=o.onKey,s=c(o,["onMove","onKey"]),m=React.useRef(null),g=i(a),p=i(l),b=React.useRef(null),_=React.useRef(!1),x=React.useMemo(function(){var e=function(e){h(e),(f(e)?e.touches.length>0:e.buttons>0)&&m.current?g(d(m.current,e,b.current)):t(!1);},r=function(){return t(!1)};function t(t){var n=_.current,o=v(m.current),a=t?o.addEventListener:o.removeEventListener;a(n?"touchmove":"mousemove",e),a(n?"touchend":"mouseup",r);}return [function(e){var r=e.nativeEvent,n=m.current;if(n&&(h(r),!function(e,r){return r&&!f(e)}(r,_.current)&&n)){if(f(r)){_.current=!0;var o=r.changedTouches||[];o.length&&(b.current=o[0].identifier);}n.focus(),g(d(n,r,b.current)),t(!0);}},function(e){var r=e.which||e.keyCode;r<37||r>40||(e.preventDefault(),p({left:39===r?.05:37===r?-.05:0,top:40===r?.05:38===r?-.05:0}));},t]},[p,g]),C=x[0],E=x[1],H=x[2];return React.useEffect(function(){return H},[H]),React__default["default"].createElement("div",u({},s,{onTouchStart:C,onMouseDown:C,className:"react-colorful__interactive",ref:m,onKeyDown:E,tabIndex:0,role:"slider"}))}),g=function(e){return e.filter(Boolean).join(" ")},p=function(r){var t=r.color,n=r.left,o=r.top,a=void 0===o?.5:o,l=g(["react-colorful__pointer",r.className]);return React__default["default"].createElement("div",{className:l,style:{top:100*a+"%",left:100*n+"%"}},React__default["default"].createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},b=function(e,r,t){return void 0===r&&(r=0),void 0===t&&(t=Math.pow(10,r)),Math.round(t*e)/t},x=function(e){return "#"===e[0]&&(e=e.substr(1)),e.length<6?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:1}:{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:1}},N=function(e){var r=e.s,t=e.v,n=e.a,o=(200-r)*t/100;return {h:b(e.h),s:b(o>0&&o<200?r*t/100/(o<=100?o:200-o)*100:0),l:b(o/2),a:b(n,2)}},w=function(e){var r=N(e);return "hsl("+r.h+", "+r.s+"%, "+r.l+"%)"},q=function(e){var r=e.h,t=e.s,n=e.v,o=e.a;r=r/360*6,t/=100,n/=100;var a=Math.floor(r),l=n*(1-t),u=n*(1-(r-a)*t),c=n*(1-(1-r+a)*t),i=a%6;return {r:b(255*[n,u,l,l,c,n][i]),g:b(255*[c,n,n,u,l,l][i]),b:b(255*[l,l,c,n,n,u][i]),a:b(o,2)}},z=function(e){var r=e.toString(16);return r.length<2?"0"+r:r},B=function(e){var r=e.r,t=e.g,n=e.b,o=e.a,a=Math.max(r,t,n),l=a-Math.min(r,t,n),u=l?a===r?(t-n)/l:a===t?2+(n-r)/l:4+(r-t)/l:0;return {h:b(60*(u<0?u+6:u)),s:b(a?l/a*100:0),v:b(a/255*100),a:o}},K=React__default["default"].memo(function(r){var t=r.hue,n=r.onChange,o=g(["react-colorful__hue",r.className]);return React__default["default"].createElement("div",{className:o},React__default["default"].createElement(m,{onMove:function(e){n({h:360*e.left});},onKey:function(e){n({h:s(t+360*e.left,0,360)});},"aria-label":"Hue","aria-valuetext":b(t)},React__default["default"].createElement(p,{className:"react-colorful__hue-pointer",left:t/360,color:w({h:t,s:100,v:100,a:1})})))}),L=React__default["default"].memo(function(r){var t=r.hsva,n=r.onChange,o={backgroundColor:w({h:t.h,s:100,v:100,a:1})};return React__default["default"].createElement("div",{className:"react-colorful__saturation",style:o},React__default["default"].createElement(m,{onMove:function(e){n({s:100*e.left,v:100-100*e.top});},onKey:function(e){n({s:s(t.s+100*e.left,0,100),v:s(t.v-100*e.top,0,100)});},"aria-label":"Color","aria-valuetext":"Saturation "+b(t.s)+"%, Brightness "+b(t.v)+"%"},React__default["default"].createElement(p,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:w(t)})))}),A=function(e,r){if(e===r)return !0;for(var t in e)if(e[t]!==r[t])return !1;return !0};function T(e,t,l){var u=i(l),c=React.useState(function(){return e.toHsva(t)}),s=c[0],f=c[1],v=React.useRef({color:t,hsva:s});React.useEffect(function(){if(!e.equal(t,v.current.color)){var r=e.toHsva(t);v.current={hsva:r,color:t},f(r);}},[t,e]),React.useEffect(function(){var r;A(s,v.current.hsva)||e.equal(r=e.fromHsva(s),v.current.color)||(v.current={hsva:s,color:r},u(r));},[s,e,u]);var d=React.useCallback(function(e){f(function(r){return Object.assign({},r,e)});},[]);return [s,d]}var P="undefined"!=typeof window?React.useLayoutEffect:React.useEffect,X=function(){return ("undefined"!=typeof __webpack_nonce__?__webpack_nonce__:void 0)},R=new Map,V=function(e){P(function(){var r=e.current?e.current.ownerDocument:document;if(void 0!==r&&!R.has(r)){var t=r.createElement("style");t.innerHTML='.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url(\'data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill-opacity=".05"><path d="M8 0h8v8H8zM0 8h8v8H0z"/></svg>\')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}',R.set(r,t);var n=X();n&&t.setAttribute("nonce",n),r.head.appendChild(t);}},[]);},$=function(t){var n=t.className,o=t.colorModel,a=t.color,l=void 0===a?o.defaultColor:a,i=t.onChange,s=c(t,["className","colorModel","color","onChange"]),f=React.useRef(null);V(f);var v=T(o,l,i),d=v[0],h=v[1],m=g(["react-colorful",n]);return React__default["default"].createElement("div",u({},s,{ref:f,className:m}),React__default["default"].createElement(L,{hsva:d,onChange:h}),React__default["default"].createElement(K,{hue:d.h,onChange:h,className:"react-colorful__last-control"}))},G={defaultColor:"000",toHsva:function(e){return B(x(e))},fromHsva:function(e){return t=(r=q(e)).g,n=r.b,"#"+z(r.r)+z(t)+z(n);var r,t,n;},equal:function(e,r){return e.toLowerCase()===r.toLowerCase()||A(x(e),x(r))}},J=function(r){return React__default["default"].createElement($,u({},r,{colorModel:G}))};
22356
+
22357
+ /**
22358
+ * Copy string to clipboard
22359
+ * @param {string} str
22360
+ */
22361
+ /**
22362
+ * Creates a debounced function that delays invoking func until after wait milliseconds have
22363
+ * elapsed since the last time the debounced function was invoked.
22364
+ * @param {function} fn - The function to debounce.
22365
+ * @param {number} wait - The number of milliseconds to delay.
22366
+ * @returns {function} The new debounced function.
22367
+ */
22368
+
22369
+ function debounce(fn, wait) {
22370
+ var timerID;
22371
+
22372
+ function debounced() {
22373
+ var context = this;
22374
+ clearTimeout(timerID);
22375
+
22376
+ for (var _len = arguments.length, params = new Array(_len), _key = 0; _key < _len; _key++) {
22377
+ params[_key] = arguments[_key];
22378
+ }
22379
+
22380
+ timerID = setTimeout.apply(void 0, [fn.bind(context), wait].concat(params));
22381
+ }
22382
+
22383
+ debounced.cancel = function cancel() {
22384
+ clearTimeout(timerID);
22385
+ };
22386
+
22387
+ return debounced;
22388
+ }
22389
+
22390
+ var styled$1 = {
22391
+ ClickableWrapper: styled$a.div.withConfig({
22392
+ displayName: "styles__ClickableWrapper",
22393
+ componentId: "sc-lreg3c-0"
22394
+ })(["display:flex;align-items:center;border:none;cursor:pointer;&:before{content:'';z-index:1;display:inline-block;border:1px solid ", ";background-color:", ";border-radius:48%;width:14px;height:14px;margin:7px 4px;position:absolute;margin-bottom:", "px;}"], palette.grey, function (props) {
22395
+ return getColor$1(props.color);
22396
+ }, function (props) {
22397
+ return props.error ? '25' : '7';
22398
+ }),
22399
+ ClosePickerWrapper: styled$a.div.withConfig({
22400
+ displayName: "styles__ClosePickerWrapper",
22401
+ componentId: "sc-lreg3c-1"
22402
+ })(["position:fixed;top:0px;right:0px;bottom:0px;left:0px;"]),
22403
+ Input: styled$a(Input).withConfig({
22404
+ displayName: "styles__Input",
22405
+ componentId: "sc-lreg3c-2"
22406
+ })(["padding-left:26px;"]),
22407
+ PickerWrapper: styled$a.div.withConfig({
22408
+ displayName: "styles__PickerWrapper",
22409
+ componentId: "sc-lreg3c-3"
22410
+ })(["position:absolute;top:31px;z-index:2;left:0;margin-top:15px;"]),
22411
+ Wrapper: styled$a.div.withConfig({
22412
+ displayName: "styles__Wrapper",
22413
+ componentId: "sc-lreg3c-4"
22414
+ })(["display:flex;flex-direction:column;width:100%;position:relative;"])
22415
+ };
22416
+
22417
+ var DEFAULT_COLOR = '#ffffff';
22418
+
22419
+ var ColorPicker = function ColorPicker(_ref) {
22420
+ var color = _ref.color,
22421
+ isCollapsable = _ref.isCollapsable,
22422
+ onChange = _ref.onChange,
22423
+ errorMessage = _ref.errorMessage,
22424
+ error = _ref.error;
22425
+
22426
+ var _useState = React.useState(color),
22427
+ _useState2 = _slicedToArray(_useState, 2),
22428
+ colorValue = _useState2[0],
22429
+ setColor = _useState2[1];
22430
+
22431
+ var _useState3 = React.useState(false),
22432
+ _useState4 = _slicedToArray(_useState3, 2),
22433
+ pickerVisible = _useState4[0],
22434
+ setPickerVisible = _useState4[1];
22435
+
22436
+ var toggleStateVisible = function toggleStateVisible() {
22437
+ setPickerVisible(function (prevState) {
22438
+ return !prevState;
22439
+ });
22440
+ };
22441
+
22442
+ var handleChange = function handleChange(value) {
22443
+ setColor(value);
22444
+ onChange(value);
22445
+ };
22446
+
22447
+ var handleClosePicker = function handleClosePicker() {
22448
+ return setPickerVisible(false);
22449
+ };
22450
+
22451
+ var change = debounce(handleChange, 100);
22452
+ var value = colorValue || DEFAULT_COLOR;
22453
+
22454
+ if (isCollapsable) {
22455
+ return /*#__PURE__*/React__default["default"].createElement(styled$1.Wrapper, null, /*#__PURE__*/React__default["default"].createElement(styled$1.ClickableWrapper, {
22456
+ "data-test": "collapsible-picker",
22457
+ color: value,
22458
+ role: "presentation",
22459
+ onClick: toggleStateVisible,
22460
+ error: error
22461
+ }, /*#__PURE__*/React__default["default"].createElement(styled$1.Input, {
22462
+ value: colorValue,
22463
+ fullWidth: true,
22464
+ onChange: function onChange(_ref2) {
22465
+ var target = _ref2.target;
22466
+ return handleChange(target.value);
22467
+ },
22468
+ errorMessage: errorMessage,
22469
+ error: error
22470
+ })), pickerVisible && /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(styled$1.ClosePickerWrapper, {
22471
+ onClick: handleClosePicker,
22472
+ role: "presentation"
22473
+ }), /*#__PURE__*/React__default["default"].createElement(styled$1.PickerWrapper, null, /*#__PURE__*/React__default["default"].createElement(J, {
22474
+ color: value,
22475
+ onChange: change
22476
+ }))));
22477
+ }
22478
+
22479
+ return /*#__PURE__*/React__default["default"].createElement(J, {
22480
+ "data-test": "simple-picker",
22481
+ color: value,
22482
+ onChange: change
22483
+ });
22484
+ };
22485
+
22486
+ ColorPicker.defaultProps = {
22487
+ color: DEFAULT_COLOR,
22488
+ onChange: function onChange() {
22489
+ return null;
22490
+ },
22491
+ isCollapsable: false
22492
+ };
22493
+
22494
+ var lib = {};
22495
+
22496
+ var Frame$2 = {};
22497
+
22498
+ var Context = {};
22499
+
22500
+ Object.defineProperty(Context, "__esModule", {
22501
+ value: true
22502
+ });
22503
+ Context.FrameContextConsumer = Context.FrameContextProvider = Context.useFrame = Context.FrameContext = undefined;
22504
+
22505
+ var _react$2 = React__default["default"];
22506
+
22507
+ var _react2$1 = _interopRequireDefault$2(_react$2);
22508
+
22509
+ function _interopRequireDefault$2(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
22510
+
22511
+ var doc = void 0;
22512
+ var win = void 0;
22513
+ if (typeof document !== 'undefined') {
22514
+ doc = document;
22515
+ }
22516
+ if (typeof window !== 'undefined') {
22517
+ win = window;
22518
+ }
22519
+
22520
+ var FrameContext = Context.FrameContext = _react2$1.default.createContext({ document: doc, window: win });
22521
+
22522
+ Context.useFrame = function useFrame() {
22523
+ return _react2$1.default.useContext(FrameContext);
22524
+ };
22525
+
22526
+ var FrameContextProvider = FrameContext.Provider,
22527
+ FrameContextConsumer = FrameContext.Consumer;
22528
+ Context.FrameContextProvider = FrameContextProvider;
22529
+ Context.FrameContextConsumer = FrameContextConsumer;
22530
+
22531
+ var Content$1 = {};
22532
+
22533
+ Object.defineProperty(Content$1, "__esModule", {
22534
+ value: true
22535
+ });
22536
+
22537
+ var _createClass$1 = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
22538
+
22539
+ var _react$1 = React__default["default"];
22540
+
22541
+ _interopRequireDefault$1(_react$1);
22542
+
22543
+ var _propTypes$1 = propTypes.exports;
22544
+
22545
+ var _propTypes2$1 = _interopRequireDefault$1(_propTypes$1);
22546
+
22547
+ function _interopRequireDefault$1(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
22548
+
22549
+ function _classCallCheck$1(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
22550
+
22551
+ function _possibleConstructorReturn$1(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
22552
+
22553
+ function _inherits$1(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } // eslint-disable-line no-unused-vars
22554
+
22555
+
22556
+ var Content = function (_Component) {
22557
+ _inherits$1(Content, _Component);
22558
+
22559
+ function Content() {
22560
+ _classCallCheck$1(this, Content);
22561
+
22562
+ return _possibleConstructorReturn$1(this, (Content.__proto__ || Object.getPrototypeOf(Content)).apply(this, arguments));
22563
+ }
22564
+
22565
+ _createClass$1(Content, [{
22566
+ key: 'componentDidMount',
22567
+ value: function componentDidMount() {
22568
+ this.props.contentDidMount();
22569
+ }
22570
+ }, {
22571
+ key: 'componentDidUpdate',
22572
+ value: function componentDidUpdate() {
22573
+ this.props.contentDidUpdate();
22574
+ }
22575
+ }, {
22576
+ key: 'render',
22577
+ value: function render() {
22578
+ return _react$1.Children.only(this.props.children);
22579
+ }
22580
+ }]);
22581
+
22582
+ return Content;
22583
+ }(_react$1.Component);
22584
+
22585
+ Content.propTypes = {
22586
+ children: _propTypes2$1.default.element.isRequired,
22587
+ contentDidMount: _propTypes2$1.default.func.isRequired,
22588
+ contentDidUpdate: _propTypes2$1.default.func.isRequired
22589
+ };
22590
+ Content$1.default = Content;
22591
+
22592
+ Object.defineProperty(Frame$2, "__esModule", {
22593
+ value: true
22594
+ });
22595
+ Frame$2.Frame = undefined;
22596
+
22597
+ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
22598
+
22599
+ var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
22600
+
22601
+ var _react = React__default["default"];
22602
+
22603
+ var _react2 = _interopRequireDefault(_react);
22604
+
22605
+ var _reactDom = require$$1__default["default"];
22606
+
22607
+ var _reactDom2 = _interopRequireDefault(_reactDom);
22608
+
22609
+ var _propTypes = propTypes.exports;
22610
+
22611
+ var _propTypes2 = _interopRequireDefault(_propTypes);
22612
+
22613
+ var _Context = Context;
22614
+
22615
+ var _Content = Content$1;
22616
+
22617
+ var _Content2 = _interopRequireDefault(_Content);
22618
+
22619
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
22620
+
22621
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
22622
+
22623
+ function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
22624
+
22625
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
22626
+
22627
+ var Frame$1 = Frame$2.Frame = function (_Component) {
22628
+ _inherits(Frame, _Component);
22629
+
22630
+ // React warns when you render directly into the body since browser extensions
22631
+ // also inject into the body and can mess up React. For this reason
22632
+ // initialContent is expected to have a div inside of the body
22633
+ // element that we render react into.
22634
+ function Frame(props, context) {
22635
+ _classCallCheck(this, Frame);
22636
+
22637
+ var _this = _possibleConstructorReturn(this, (Frame.__proto__ || Object.getPrototypeOf(Frame)).call(this, props, context));
22638
+
22639
+ _this.setRef = function (node) {
22640
+ _this.nodeRef.current = node;
22641
+
22642
+ var forwardedRef = _this.props.forwardedRef; // eslint-disable-line react/prop-types
22643
+
22644
+ if (typeof forwardedRef === 'function') {
22645
+ forwardedRef(node);
22646
+ } else if (forwardedRef) {
22647
+ forwardedRef.current = node;
22648
+ }
22649
+ };
22650
+
22651
+ _this.handleLoad = function () {
22652
+ _this.setState({ iframeLoaded: true });
22653
+ };
22654
+
22655
+ _this._isMounted = false;
22656
+ _this.nodeRef = _react2.default.createRef();
22657
+ _this.state = { iframeLoaded: false };
22658
+ return _this;
22659
+ }
22660
+
22661
+ _createClass(Frame, [{
22662
+ key: 'componentDidMount',
22663
+ value: function componentDidMount() {
22664
+ this._isMounted = true;
22665
+
22666
+ var doc = this.getDoc();
22667
+ if (doc && doc.readyState === 'complete') {
22668
+ this.forceUpdate();
22669
+ } else {
22670
+ this.nodeRef.current.addEventListener('load', this.handleLoad);
22671
+ }
22672
+ }
22673
+ }, {
22674
+ key: 'componentWillUnmount',
22675
+ value: function componentWillUnmount() {
22676
+ this._isMounted = false;
22677
+
22678
+ this.nodeRef.current.removeEventListener('load', this.handleLoad);
22679
+ }
22680
+ }, {
22681
+ key: 'getDoc',
22682
+ value: function getDoc() {
22683
+ return this.nodeRef.current ? this.nodeRef.current.contentDocument : null; // eslint-disable-line
22684
+ }
22685
+ }, {
22686
+ key: 'getMountTarget',
22687
+ value: function getMountTarget() {
22688
+ var doc = this.getDoc();
22689
+ if (this.props.mountTarget) {
22690
+ return doc.querySelector(this.props.mountTarget);
22691
+ }
22692
+ return doc.body.children[0];
22693
+ }
22694
+ }, {
22695
+ key: 'renderFrameContents',
22696
+ value: function renderFrameContents() {
22697
+ if (!this._isMounted) {
22698
+ return null;
22699
+ }
22700
+
22701
+ var doc = this.getDoc();
22702
+
22703
+ if (!doc) {
22704
+ return null;
22705
+ }
22706
+
22707
+ var contentDidMount = this.props.contentDidMount;
22708
+ var contentDidUpdate = this.props.contentDidUpdate;
22709
+
22710
+ var win = doc.defaultView || doc.parentView;
22711
+ var contents = _react2.default.createElement(
22712
+ _Content2.default,
22713
+ {
22714
+ contentDidMount: contentDidMount,
22715
+ contentDidUpdate: contentDidUpdate
22716
+ },
22717
+ _react2.default.createElement(
22718
+ _Context.FrameContextProvider,
22719
+ { value: { document: doc, window: win } },
22720
+ _react2.default.createElement(
22721
+ 'div',
22722
+ { className: 'frame-content' },
22723
+ this.props.children
22724
+ )
22725
+ )
22726
+ );
22727
+
22728
+ var mountTarget = this.getMountTarget();
22729
+
22730
+ return [_reactDom2.default.createPortal(this.props.head, this.getDoc().head), _reactDom2.default.createPortal(contents, mountTarget)];
22731
+ }
22732
+ }, {
22733
+ key: 'render',
22734
+ value: function render() {
22735
+ var props = _extends({}, this.props, {
22736
+ srcDoc: this.props.initialContent,
22737
+ children: undefined // The iframe isn't ready so we drop children from props here. #12, #17
22738
+ });
22739
+ delete props.head;
22740
+ delete props.initialContent;
22741
+ delete props.mountTarget;
22742
+ delete props.contentDidMount;
22743
+ delete props.contentDidUpdate;
22744
+ delete props.forwardedRef;
22745
+ return _react2.default.createElement(
22746
+ 'iframe',
22747
+ _extends({}, props, { ref: this.setRef, onLoad: this.handleLoad }),
22748
+ this.state.iframeLoaded && this.renderFrameContents()
22749
+ );
22750
+ }
22751
+ }]);
22752
+
22753
+ return Frame;
22754
+ }(_react.Component);
22755
+
22756
+ Frame$1.propTypes = {
22757
+ style: _propTypes2.default.object, // eslint-disable-line
22758
+ head: _propTypes2.default.node,
22759
+ initialContent: _propTypes2.default.string,
22760
+ mountTarget: _propTypes2.default.string,
22761
+ contentDidMount: _propTypes2.default.func,
22762
+ contentDidUpdate: _propTypes2.default.func,
22763
+ children: _propTypes2.default.oneOfType([_propTypes2.default.element, _propTypes2.default.arrayOf(_propTypes2.default.element)])
22764
+ };
22765
+ Frame$1.defaultProps = {
22766
+ style: {},
22767
+ head: null,
22768
+ children: undefined,
22769
+ mountTarget: undefined,
22770
+ contentDidMount: function contentDidMount() {},
22771
+ contentDidUpdate: function contentDidUpdate() {},
22772
+ initialContent: '<!DOCTYPE html><html><head></head><body><div class="frame-root"></div></body></html>'
22773
+ };
22774
+ Frame$2.default = _react2.default.forwardRef(function (props, ref) {
22775
+ return _react2.default.createElement(Frame$1, _extends({}, props, { forwardedRef: ref }));
22776
+ });
22777
+
22778
+ (function (exports) {
22779
+
22780
+ Object.defineProperty(exports, "__esModule", {
22781
+ value: true
22782
+ });
22783
+
22784
+ var _Frame = Frame$2;
22785
+
22786
+ Object.defineProperty(exports, 'default', {
22787
+ enumerable: true,
22788
+ get: function get() {
22789
+ return _interopRequireDefault(_Frame).default;
22790
+ }
22791
+ });
22792
+
22793
+ var _Context = Context;
22794
+
22795
+ Object.defineProperty(exports, 'FrameContext', {
22796
+ enumerable: true,
22797
+ get: function get() {
22798
+ return _Context.FrameContext;
22799
+ }
22800
+ });
22801
+ Object.defineProperty(exports, 'FrameContextConsumer', {
22802
+ enumerable: true,
22803
+ get: function get() {
22804
+ return _Context.FrameContextConsumer;
22805
+ }
22806
+ });
22807
+ Object.defineProperty(exports, 'useFrame', {
22808
+ enumerable: true,
22809
+ get: function get() {
22810
+ return _Context.useFrame;
22811
+ }
22812
+ });
22813
+
22814
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
22815
+ }(lib));
22816
+
22817
+ var Frame = /*@__PURE__*/getDefaultExportFromCjs(lib);
22818
+
22819
+ var styled = {
22820
+ Wrapper: styled$a.div.withConfig({
22821
+ displayName: "styles__Wrapper",
22822
+ componentId: "sc-3jodl7-0"
22823
+ })(["display:flex;align-items:center;align-self:center;height:100%;max-height:36px;overflow:hidden;white-space:nowrap;"]),
22824
+ Icon: styled$a(Icon).withConfig({
22825
+ displayName: "styles__Icon",
22826
+ componentId: "sc-3jodl7-1"
22827
+ })(["margin-right:6px;flex-shrink:0;"])
22828
+ };
22829
+
22830
+ var DefaultError = function DefaultError(_ref) {
22831
+ var message = _ref.message;
22832
+ return /*#__PURE__*/React__default["default"].createElement(styled.Wrapper, null, /*#__PURE__*/React__default["default"].createElement(styled.Icon, {
22833
+ name: "exclamation_circle",
22834
+ color: "statusRed"
22835
+ }), /*#__PURE__*/React__default["default"].createElement("p", {
22836
+ color: "statusRed",
22837
+ fontSize: "baseSmall"
22838
+ }, message));
22839
+ };
22840
+
22841
+ DefaultError.defaultProps = {
22842
+ message: 'something went wrong error'
22843
+ };
22844
+
22845
+ var ErrorBoundary = /*#__PURE__*/function (_React$Component) {
22846
+ _inherits$2(ErrorBoundary, _React$Component);
22847
+
22848
+ var _super = _createSuper(ErrorBoundary);
22849
+
22850
+ function ErrorBoundary(props) {
22851
+ var _this;
22852
+
22853
+ _classCallCheck$2(this, ErrorBoundary);
22854
+
22855
+ _this = _super.call(this, props);
22856
+ _this.state = {
22857
+ hasError: false
22858
+ };
22859
+ return _this;
22860
+ }
22861
+
22862
+ _createClass$2(ErrorBoundary, [{
22863
+ key: "componentDidCatch",
22864
+ value: function componentDidCatch(error, info) {
22865
+ // You can also log the error to an error reporting service
22866
+ console.error(error, info);
22867
+ }
22868
+ }, {
22869
+ key: "render",
22870
+ value: function render() {
22871
+ var _this$props = this.props,
22872
+ children = _this$props.children,
22873
+ _this$props$errorCont = _this$props.errorContent,
22874
+ errorContent = _this$props$errorCont === void 0 ? /*#__PURE__*/React__default["default"].createElement(DefaultError, null) : _this$props$errorCont,
22875
+ message = _this$props.message;
22876
+ if (!children) return null;
22877
+
22878
+ if (this.state.hasError) {
22879
+ // You can render any custom fallback UI
22880
+ return message ? /*#__PURE__*/React__default["default"].createElement(DefaultError, {
22881
+ message: message
22882
+ }) : errorContent;
22883
+ }
22884
+
22885
+ return children;
22886
+ }
22887
+ }], [{
22888
+ key: "getDerivedStateFromError",
22889
+ value: function getDerivedStateFromError() {
22890
+ // Update state so the next render will show the fallback UI.
22891
+ return {
22892
+ hasError: true
22893
+ };
22894
+ }
22895
+ }]);
22896
+
22897
+ return ErrorBoundary;
22898
+ }(React__default["default"].Component);
22899
+
22900
+ /**
22901
+ * Depending of the given value returns a height measure
22902
+ * By default return 400
22903
+ * @param {string | number} value
22904
+ */
22905
+ var getHeight = function getHeight(value) {
22906
+ var measure = 400;
22907
+ if (!value) return measure;
22908
+
22909
+ switch (value) {
22910
+ case 'large':
22911
+ measure = 600;
22912
+ break;
22913
+
22914
+ case 'full':
22915
+ measure = window.innerHeight - 250;
22916
+ break;
22917
+ }
22918
+
22919
+ return typeof value === 'number' ? value : measure;
22920
+ };
22921
+
22922
+ var HTML = function HTML(_ref) {
22923
+ var code = _ref.code,
22924
+ height = _ref.height,
22925
+ name = _ref.name,
22926
+ sourceURL = _ref.sourceURL,
22927
+ width = _ref.width,
22928
+ errorMessage = _ref.errorMessage;
22929
+ if (!sourceURL && !code) return null;
22930
+ var formattedWidth = "".concat(width, "%");
22931
+ var formattedHeight = getHeight(height);
22932
+ return sourceURL ? /*#__PURE__*/React__default["default"].createElement("iframe", {
22933
+ title: name,
22934
+ src: sourceURL,
22935
+ width: formattedWidth,
22936
+ height: formattedHeight
22937
+ }) : /*#__PURE__*/React__default["default"].createElement(ErrorBoundary, {
22938
+ message: errorMessage
22939
+ }, /*#__PURE__*/React__default["default"].createElement(Frame, {
22940
+ initialContent: code,
22941
+ width: formattedWidth,
22942
+ height: formattedHeight
22943
+ }));
22944
+ };
22945
+
22946
+ HTML.defaultProps = {
22947
+ width: 100,
22948
+ height: 'medium'
22949
+ };
22950
+
20359
22951
  exports.Button = Button;
20360
22952
  exports.Checkbox = Checkbox;
20361
22953
  exports.Chip = Chip;
20362
22954
  exports.Color = Color;
22955
+ exports.ColorPicker = ColorPicker;
22956
+ exports.ErrorBoundary = ErrorBoundary;
22957
+ exports.HTML = HTML;
20363
22958
  exports.Icon = Icon;
22959
+ exports.Image = Image;
22960
+ exports.Input = Input;
22961
+ exports.QRCode = QRCode;
20364
22962
  exports.Switch = Switch;
22963
+ exports.Textarea = Textarea;
20365
22964
 
20366
22965
  Object.defineProperty(exports, '__esModule', { value: true });
20367
22966