visits-style 1.2.1 → 1.4.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.
Files changed (78) hide show
  1. package/README.md +14 -7
  2. package/dist/components/Accordion/index.d.ts +12 -13
  3. package/dist/components/AppBar/index.d.ts +19 -20
  4. package/dist/components/Card/index.d.ts +17 -18
  5. package/dist/components/Modal/index.d.ts +33 -30
  6. package/dist/components/Popover/index.d.ts +38 -40
  7. package/dist/components/Portal/index.d.ts +8 -8
  8. package/dist/components/Spinner/index.d.ts +12 -12
  9. package/dist/components/Toast/ToastItem.d.ts +2 -0
  10. package/dist/components/Toast/index.d.ts +2 -39
  11. package/dist/components/Toast/types.d.ts +38 -0
  12. package/dist/components/Tooltip/index.d.ts +30 -27
  13. package/dist/components/index.d.ts +11 -10
  14. package/dist/elements/Box/index.d.ts +10 -10
  15. package/dist/elements/Button/ButtonGroup.d.ts +2 -2
  16. package/dist/elements/Button/TextButton.d.ts +18 -18
  17. package/dist/elements/Button/index.d.ts +16 -16
  18. package/dist/elements/Content/index.d.ts +2 -2
  19. package/dist/elements/Divider/index.d.ts +2 -2
  20. package/dist/elements/Grid/Col.d.ts +11 -11
  21. package/dist/elements/Grid/Container.d.ts +6 -6
  22. package/dist/elements/Grid/Row.d.ts +3 -3
  23. package/dist/elements/Icons/Approved.d.ts +2 -2
  24. package/dist/elements/Icons/ArrowDown.d.ts +2 -2
  25. package/dist/elements/Icons/ChevronLeftRound.d.ts +2 -2
  26. package/dist/elements/Icons/ChevronRightRound.d.ts +2 -2
  27. package/dist/elements/Icons/Close.d.ts +2 -2
  28. package/dist/elements/Icons/FileRound.d.ts +2 -2
  29. package/dist/elements/Icons/Pencil.d.ts +2 -2
  30. package/dist/elements/Icons/PencilSimple.d.ts +2 -2
  31. package/dist/elements/Icons/Plus.d.ts +2 -2
  32. package/dist/elements/Icons/Refresh.d.ts +2 -2
  33. package/dist/elements/Icons/User.d.ts +2 -2
  34. package/dist/elements/Icons/index.d.ts +11 -11
  35. package/dist/elements/Placeholder/index.d.ts +2 -2
  36. package/dist/elements/Progress/index.d.ts +18 -19
  37. package/dist/elements/Table/index.d.ts +11 -11
  38. package/dist/elements/Tag/index.d.ts +15 -16
  39. package/dist/elements/index.d.ts +14 -15
  40. package/dist/forms/Checkbox/index.d.ts +8 -8
  41. package/dist/forms/Field/index.d.ts +7 -8
  42. package/dist/forms/HelpMessage.d.ts +7 -7
  43. package/dist/forms/Radio/index.d.ts +8 -8
  44. package/dist/forms/Select/index.d.ts +27 -27
  45. package/dist/forms/Switch/index.d.ts +21 -21
  46. package/dist/forms/TextInput/index.d.ts +22 -23
  47. package/dist/forms/Textarea/index.d.ts +11 -11
  48. package/dist/forms/index.d.ts +7 -7
  49. package/dist/hooks/useForceUpdate.d.ts +1 -1
  50. package/dist/hooks/useIsomorphicLayoutEffect.d.ts +3 -3
  51. package/dist/hooks/useScrollFix.d.ts +1 -1
  52. package/dist/index.cjs.js +2389 -0
  53. package/dist/index.d.ts +7 -7
  54. package/dist/index.es.js +2389 -0
  55. package/dist/styles/normalize.d.ts +3 -3
  56. package/dist/theme.d.ts +3 -3
  57. package/dist/types.d.ts +36 -36
  58. package/dist/utils/arrow.d.ts +1 -1
  59. package/dist/utils/boxShadow.d.ts +1 -1
  60. package/dist/utils/disabledColor.d.ts +2 -2
  61. package/dist/utils/findColorInvert.d.ts +2 -2
  62. package/dist/utils/hambuger.d.ts +1 -1
  63. package/dist/utils/index.d.ts +6 -6
  64. package/dist/utils/isClient.d.ts +2 -2
  65. package/dist/utils/media.d.ts +10 -10
  66. package/dist/utils/setAlign.d.ts +3 -3
  67. package/dist/utils/setSize.d.ts +4 -4
  68. package/dist/utils/wrapEvent.d.ts +2 -2
  69. package/package.json +20 -63
  70. package/dist/hooks/usePopper.d.ts +0 -12
  71. package/dist/index.js +0 -8
  72. package/dist/utils/__test__/findColorInvert.test.d.ts +0 -1
  73. package/dist/visits-style.cjs.development.js +0 -2646
  74. package/dist/visits-style.cjs.development.js.map +0 -1
  75. package/dist/visits-style.cjs.production.min.js +0 -2
  76. package/dist/visits-style.cjs.production.min.js.map +0 -1
  77. package/dist/visits-style.esm.js +0 -2587
  78. package/dist/visits-style.esm.js.map +0 -1
@@ -0,0 +1,2389 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const styled = require("styled-components");
4
+ const require$$0 = require("react");
5
+ const polished = require("polished");
6
+ const react = require("@floating-ui/react");
7
+ const reactDom = require("react-dom");
8
+ var jsxRuntime = { exports: {} };
9
+ var reactJsxRuntime_production_min = {};
10
+ /**
11
+ * @license React
12
+ * react-jsx-runtime.production.min.js
13
+ *
14
+ * Copyright (c) Facebook, Inc. and its affiliates.
15
+ *
16
+ * This source code is licensed under the MIT license found in the
17
+ * LICENSE file in the root directory of this source tree.
18
+ */
19
+ var hasRequiredReactJsxRuntime_production_min;
20
+ function requireReactJsxRuntime_production_min() {
21
+ if (hasRequiredReactJsxRuntime_production_min)
22
+ return reactJsxRuntime_production_min;
23
+ hasRequiredReactJsxRuntime_production_min = 1;
24
+ var f = require$$0, k = Symbol.for("react.element"), l = Symbol.for("react.fragment"), m = Object.prototype.hasOwnProperty, n = f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, p = { key: true, ref: true, __self: true, __source: true };
25
+ function q(c, a, g) {
26
+ var b, d = {}, e = null, h = null;
27
+ void 0 !== g && (e = "" + g);
28
+ void 0 !== a.key && (e = "" + a.key);
29
+ void 0 !== a.ref && (h = a.ref);
30
+ for (b in a)
31
+ m.call(a, b) && !p.hasOwnProperty(b) && (d[b] = a[b]);
32
+ if (c && c.defaultProps)
33
+ for (b in a = c.defaultProps, a)
34
+ void 0 === d[b] && (d[b] = a[b]);
35
+ return { $$typeof: k, type: c, key: e, ref: h, props: d, _owner: n.current };
36
+ }
37
+ reactJsxRuntime_production_min.Fragment = l;
38
+ reactJsxRuntime_production_min.jsx = q;
39
+ reactJsxRuntime_production_min.jsxs = q;
40
+ return reactJsxRuntime_production_min;
41
+ }
42
+ var reactJsxRuntime_development = {};
43
+ /**
44
+ * @license React
45
+ * react-jsx-runtime.development.js
46
+ *
47
+ * Copyright (c) Facebook, Inc. and its affiliates.
48
+ *
49
+ * This source code is licensed under the MIT license found in the
50
+ * LICENSE file in the root directory of this source tree.
51
+ */
52
+ var hasRequiredReactJsxRuntime_development;
53
+ function requireReactJsxRuntime_development() {
54
+ if (hasRequiredReactJsxRuntime_development)
55
+ return reactJsxRuntime_development;
56
+ hasRequiredReactJsxRuntime_development = 1;
57
+ if (process.env.NODE_ENV !== "production") {
58
+ (function() {
59
+ var React = require$$0;
60
+ var REACT_ELEMENT_TYPE = Symbol.for("react.element");
61
+ var REACT_PORTAL_TYPE = Symbol.for("react.portal");
62
+ var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
63
+ var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode");
64
+ var REACT_PROFILER_TYPE = Symbol.for("react.profiler");
65
+ var REACT_PROVIDER_TYPE = Symbol.for("react.provider");
66
+ var REACT_CONTEXT_TYPE = Symbol.for("react.context");
67
+ var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref");
68
+ var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense");
69
+ var REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list");
70
+ var REACT_MEMO_TYPE = Symbol.for("react.memo");
71
+ var REACT_LAZY_TYPE = Symbol.for("react.lazy");
72
+ var REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen");
73
+ var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
74
+ var FAUX_ITERATOR_SYMBOL = "@@iterator";
75
+ function getIteratorFn(maybeIterable) {
76
+ if (maybeIterable === null || typeof maybeIterable !== "object") {
77
+ return null;
78
+ }
79
+ var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
80
+ if (typeof maybeIterator === "function") {
81
+ return maybeIterator;
82
+ }
83
+ return null;
84
+ }
85
+ var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
86
+ function error(format) {
87
+ {
88
+ {
89
+ for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
90
+ args[_key2 - 1] = arguments[_key2];
91
+ }
92
+ printWarning("error", format, args);
93
+ }
94
+ }
95
+ }
96
+ function printWarning(level, format, args) {
97
+ {
98
+ var ReactDebugCurrentFrame2 = ReactSharedInternals.ReactDebugCurrentFrame;
99
+ var stack = ReactDebugCurrentFrame2.getStackAddendum();
100
+ if (stack !== "") {
101
+ format += "%s";
102
+ args = args.concat([stack]);
103
+ }
104
+ var argsWithFormat = args.map(function(item) {
105
+ return String(item);
106
+ });
107
+ argsWithFormat.unshift("Warning: " + format);
108
+ Function.prototype.apply.call(console[level], console, argsWithFormat);
109
+ }
110
+ }
111
+ var enableScopeAPI = false;
112
+ var enableCacheElement = false;
113
+ var enableTransitionTracing = false;
114
+ var enableLegacyHidden = false;
115
+ var enableDebugTracing = false;
116
+ var REACT_MODULE_REFERENCE;
117
+ {
118
+ REACT_MODULE_REFERENCE = Symbol.for("react.module.reference");
119
+ }
120
+ function isValidElementType(type) {
121
+ if (typeof type === "string" || typeof type === "function") {
122
+ return true;
123
+ }
124
+ if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing) {
125
+ return true;
126
+ }
127
+ if (typeof type === "object" && type !== null) {
128
+ if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object
129
+ // types supported by any Flight configuration anywhere since
130
+ // we don't know which Flight build this will end up being used
131
+ // with.
132
+ type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== void 0) {
133
+ return true;
134
+ }
135
+ }
136
+ return false;
137
+ }
138
+ function getWrappedName(outerType, innerType, wrapperName) {
139
+ var displayName = outerType.displayName;
140
+ if (displayName) {
141
+ return displayName;
142
+ }
143
+ var functionName = innerType.displayName || innerType.name || "";
144
+ return functionName !== "" ? wrapperName + "(" + functionName + ")" : wrapperName;
145
+ }
146
+ function getContextName(type) {
147
+ return type.displayName || "Context";
148
+ }
149
+ function getComponentNameFromType(type) {
150
+ if (type == null) {
151
+ return null;
152
+ }
153
+ {
154
+ if (typeof type.tag === "number") {
155
+ error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.");
156
+ }
157
+ }
158
+ if (typeof type === "function") {
159
+ return type.displayName || type.name || null;
160
+ }
161
+ if (typeof type === "string") {
162
+ return type;
163
+ }
164
+ switch (type) {
165
+ case REACT_FRAGMENT_TYPE:
166
+ return "Fragment";
167
+ case REACT_PORTAL_TYPE:
168
+ return "Portal";
169
+ case REACT_PROFILER_TYPE:
170
+ return "Profiler";
171
+ case REACT_STRICT_MODE_TYPE:
172
+ return "StrictMode";
173
+ case REACT_SUSPENSE_TYPE:
174
+ return "Suspense";
175
+ case REACT_SUSPENSE_LIST_TYPE:
176
+ return "SuspenseList";
177
+ }
178
+ if (typeof type === "object") {
179
+ switch (type.$$typeof) {
180
+ case REACT_CONTEXT_TYPE:
181
+ var context = type;
182
+ return getContextName(context) + ".Consumer";
183
+ case REACT_PROVIDER_TYPE:
184
+ var provider = type;
185
+ return getContextName(provider._context) + ".Provider";
186
+ case REACT_FORWARD_REF_TYPE:
187
+ return getWrappedName(type, type.render, "ForwardRef");
188
+ case REACT_MEMO_TYPE:
189
+ var outerName = type.displayName || null;
190
+ if (outerName !== null) {
191
+ return outerName;
192
+ }
193
+ return getComponentNameFromType(type.type) || "Memo";
194
+ case REACT_LAZY_TYPE: {
195
+ var lazyComponent = type;
196
+ var payload = lazyComponent._payload;
197
+ var init = lazyComponent._init;
198
+ try {
199
+ return getComponentNameFromType(init(payload));
200
+ } catch (x) {
201
+ return null;
202
+ }
203
+ }
204
+ }
205
+ }
206
+ return null;
207
+ }
208
+ var assign = Object.assign;
209
+ var disabledDepth = 0;
210
+ var prevLog;
211
+ var prevInfo;
212
+ var prevWarn;
213
+ var prevError;
214
+ var prevGroup;
215
+ var prevGroupCollapsed;
216
+ var prevGroupEnd;
217
+ function disabledLog() {
218
+ }
219
+ disabledLog.__reactDisabledLog = true;
220
+ function disableLogs() {
221
+ {
222
+ if (disabledDepth === 0) {
223
+ prevLog = console.log;
224
+ prevInfo = console.info;
225
+ prevWarn = console.warn;
226
+ prevError = console.error;
227
+ prevGroup = console.group;
228
+ prevGroupCollapsed = console.groupCollapsed;
229
+ prevGroupEnd = console.groupEnd;
230
+ var props = {
231
+ configurable: true,
232
+ enumerable: true,
233
+ value: disabledLog,
234
+ writable: true
235
+ };
236
+ Object.defineProperties(console, {
237
+ info: props,
238
+ log: props,
239
+ warn: props,
240
+ error: props,
241
+ group: props,
242
+ groupCollapsed: props,
243
+ groupEnd: props
244
+ });
245
+ }
246
+ disabledDepth++;
247
+ }
248
+ }
249
+ function reenableLogs() {
250
+ {
251
+ disabledDepth--;
252
+ if (disabledDepth === 0) {
253
+ var props = {
254
+ configurable: true,
255
+ enumerable: true,
256
+ writable: true
257
+ };
258
+ Object.defineProperties(console, {
259
+ log: assign({}, props, {
260
+ value: prevLog
261
+ }),
262
+ info: assign({}, props, {
263
+ value: prevInfo
264
+ }),
265
+ warn: assign({}, props, {
266
+ value: prevWarn
267
+ }),
268
+ error: assign({}, props, {
269
+ value: prevError
270
+ }),
271
+ group: assign({}, props, {
272
+ value: prevGroup
273
+ }),
274
+ groupCollapsed: assign({}, props, {
275
+ value: prevGroupCollapsed
276
+ }),
277
+ groupEnd: assign({}, props, {
278
+ value: prevGroupEnd
279
+ })
280
+ });
281
+ }
282
+ if (disabledDepth < 0) {
283
+ error("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
284
+ }
285
+ }
286
+ }
287
+ var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;
288
+ var prefix;
289
+ function describeBuiltInComponentFrame(name, source, ownerFn) {
290
+ {
291
+ if (prefix === void 0) {
292
+ try {
293
+ throw Error();
294
+ } catch (x) {
295
+ var match = x.stack.trim().match(/\n( *(at )?)/);
296
+ prefix = match && match[1] || "";
297
+ }
298
+ }
299
+ return "\n" + prefix + name;
300
+ }
301
+ }
302
+ var reentry = false;
303
+ var componentFrameCache;
304
+ {
305
+ var PossiblyWeakMap = typeof WeakMap === "function" ? WeakMap : Map;
306
+ componentFrameCache = new PossiblyWeakMap();
307
+ }
308
+ function describeNativeComponentFrame(fn, construct) {
309
+ if (!fn || reentry) {
310
+ return "";
311
+ }
312
+ {
313
+ var frame = componentFrameCache.get(fn);
314
+ if (frame !== void 0) {
315
+ return frame;
316
+ }
317
+ }
318
+ var control;
319
+ reentry = true;
320
+ var previousPrepareStackTrace = Error.prepareStackTrace;
321
+ Error.prepareStackTrace = void 0;
322
+ var previousDispatcher;
323
+ {
324
+ previousDispatcher = ReactCurrentDispatcher.current;
325
+ ReactCurrentDispatcher.current = null;
326
+ disableLogs();
327
+ }
328
+ try {
329
+ if (construct) {
330
+ var Fake = function() {
331
+ throw Error();
332
+ };
333
+ Object.defineProperty(Fake.prototype, "props", {
334
+ set: function() {
335
+ throw Error();
336
+ }
337
+ });
338
+ if (typeof Reflect === "object" && Reflect.construct) {
339
+ try {
340
+ Reflect.construct(Fake, []);
341
+ } catch (x) {
342
+ control = x;
343
+ }
344
+ Reflect.construct(fn, [], Fake);
345
+ } else {
346
+ try {
347
+ Fake.call();
348
+ } catch (x) {
349
+ control = x;
350
+ }
351
+ fn.call(Fake.prototype);
352
+ }
353
+ } else {
354
+ try {
355
+ throw Error();
356
+ } catch (x) {
357
+ control = x;
358
+ }
359
+ fn();
360
+ }
361
+ } catch (sample) {
362
+ if (sample && control && typeof sample.stack === "string") {
363
+ var sampleLines = sample.stack.split("\n");
364
+ var controlLines = control.stack.split("\n");
365
+ var s = sampleLines.length - 1;
366
+ var c = controlLines.length - 1;
367
+ while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {
368
+ c--;
369
+ }
370
+ for (; s >= 1 && c >= 0; s--, c--) {
371
+ if (sampleLines[s] !== controlLines[c]) {
372
+ if (s !== 1 || c !== 1) {
373
+ do {
374
+ s--;
375
+ c--;
376
+ if (c < 0 || sampleLines[s] !== controlLines[c]) {
377
+ var _frame = "\n" + sampleLines[s].replace(" at new ", " at ");
378
+ if (fn.displayName && _frame.includes("<anonymous>")) {
379
+ _frame = _frame.replace("<anonymous>", fn.displayName);
380
+ }
381
+ {
382
+ if (typeof fn === "function") {
383
+ componentFrameCache.set(fn, _frame);
384
+ }
385
+ }
386
+ return _frame;
387
+ }
388
+ } while (s >= 1 && c >= 0);
389
+ }
390
+ break;
391
+ }
392
+ }
393
+ }
394
+ } finally {
395
+ reentry = false;
396
+ {
397
+ ReactCurrentDispatcher.current = previousDispatcher;
398
+ reenableLogs();
399
+ }
400
+ Error.prepareStackTrace = previousPrepareStackTrace;
401
+ }
402
+ var name = fn ? fn.displayName || fn.name : "";
403
+ var syntheticFrame = name ? describeBuiltInComponentFrame(name) : "";
404
+ {
405
+ if (typeof fn === "function") {
406
+ componentFrameCache.set(fn, syntheticFrame);
407
+ }
408
+ }
409
+ return syntheticFrame;
410
+ }
411
+ function describeFunctionComponentFrame(fn, source, ownerFn) {
412
+ {
413
+ return describeNativeComponentFrame(fn, false);
414
+ }
415
+ }
416
+ function shouldConstruct(Component) {
417
+ var prototype = Component.prototype;
418
+ return !!(prototype && prototype.isReactComponent);
419
+ }
420
+ function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
421
+ if (type == null) {
422
+ return "";
423
+ }
424
+ if (typeof type === "function") {
425
+ {
426
+ return describeNativeComponentFrame(type, shouldConstruct(type));
427
+ }
428
+ }
429
+ if (typeof type === "string") {
430
+ return describeBuiltInComponentFrame(type);
431
+ }
432
+ switch (type) {
433
+ case REACT_SUSPENSE_TYPE:
434
+ return describeBuiltInComponentFrame("Suspense");
435
+ case REACT_SUSPENSE_LIST_TYPE:
436
+ return describeBuiltInComponentFrame("SuspenseList");
437
+ }
438
+ if (typeof type === "object") {
439
+ switch (type.$$typeof) {
440
+ case REACT_FORWARD_REF_TYPE:
441
+ return describeFunctionComponentFrame(type.render);
442
+ case REACT_MEMO_TYPE:
443
+ return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);
444
+ case REACT_LAZY_TYPE: {
445
+ var lazyComponent = type;
446
+ var payload = lazyComponent._payload;
447
+ var init = lazyComponent._init;
448
+ try {
449
+ return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
450
+ } catch (x) {
451
+ }
452
+ }
453
+ }
454
+ }
455
+ return "";
456
+ }
457
+ var hasOwnProperty = Object.prototype.hasOwnProperty;
458
+ var loggedTypeFailures = {};
459
+ var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
460
+ function setCurrentlyValidatingElement(element) {
461
+ {
462
+ if (element) {
463
+ var owner = element._owner;
464
+ var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
465
+ ReactDebugCurrentFrame.setExtraStackFrame(stack);
466
+ } else {
467
+ ReactDebugCurrentFrame.setExtraStackFrame(null);
468
+ }
469
+ }
470
+ }
471
+ function checkPropTypes(typeSpecs, values, location, componentName, element) {
472
+ {
473
+ var has = Function.call.bind(hasOwnProperty);
474
+ for (var typeSpecName in typeSpecs) {
475
+ if (has(typeSpecs, typeSpecName)) {
476
+ var error$1 = void 0;
477
+ try {
478
+ if (typeof typeSpecs[typeSpecName] !== "function") {
479
+ var err = Error((componentName || "React class") + ": " + location + " type `" + typeSpecName + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof typeSpecs[typeSpecName] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
480
+ err.name = "Invariant Violation";
481
+ throw err;
482
+ }
483
+ error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
484
+ } catch (ex) {
485
+ error$1 = ex;
486
+ }
487
+ if (error$1 && !(error$1 instanceof Error)) {
488
+ setCurrentlyValidatingElement(element);
489
+ error("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", componentName || "React class", location, typeSpecName, typeof error$1);
490
+ setCurrentlyValidatingElement(null);
491
+ }
492
+ if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
493
+ loggedTypeFailures[error$1.message] = true;
494
+ setCurrentlyValidatingElement(element);
495
+ error("Failed %s type: %s", location, error$1.message);
496
+ setCurrentlyValidatingElement(null);
497
+ }
498
+ }
499
+ }
500
+ }
501
+ }
502
+ var isArrayImpl = Array.isArray;
503
+ function isArray(a) {
504
+ return isArrayImpl(a);
505
+ }
506
+ function typeName(value) {
507
+ {
508
+ var hasToStringTag = typeof Symbol === "function" && Symbol.toStringTag;
509
+ var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
510
+ return type;
511
+ }
512
+ }
513
+ function willCoercionThrow(value) {
514
+ {
515
+ try {
516
+ testStringCoercion(value);
517
+ return false;
518
+ } catch (e) {
519
+ return true;
520
+ }
521
+ }
522
+ }
523
+ function testStringCoercion(value) {
524
+ return "" + value;
525
+ }
526
+ function checkKeyStringCoercion(value) {
527
+ {
528
+ if (willCoercionThrow(value)) {
529
+ error("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", typeName(value));
530
+ return testStringCoercion(value);
531
+ }
532
+ }
533
+ }
534
+ var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;
535
+ var RESERVED_PROPS = {
536
+ key: true,
537
+ ref: true,
538
+ __self: true,
539
+ __source: true
540
+ };
541
+ var specialPropKeyWarningShown;
542
+ var specialPropRefWarningShown;
543
+ var didWarnAboutStringRefs;
544
+ {
545
+ didWarnAboutStringRefs = {};
546
+ }
547
+ function hasValidRef(config) {
548
+ {
549
+ if (hasOwnProperty.call(config, "ref")) {
550
+ var getter = Object.getOwnPropertyDescriptor(config, "ref").get;
551
+ if (getter && getter.isReactWarning) {
552
+ return false;
553
+ }
554
+ }
555
+ }
556
+ return config.ref !== void 0;
557
+ }
558
+ function hasValidKey(config) {
559
+ {
560
+ if (hasOwnProperty.call(config, "key")) {
561
+ var getter = Object.getOwnPropertyDescriptor(config, "key").get;
562
+ if (getter && getter.isReactWarning) {
563
+ return false;
564
+ }
565
+ }
566
+ }
567
+ return config.key !== void 0;
568
+ }
569
+ function warnIfStringRefCannotBeAutoConverted(config, self) {
570
+ {
571
+ if (typeof config.ref === "string" && ReactCurrentOwner.current && self && ReactCurrentOwner.current.stateNode !== self) {
572
+ var componentName = getComponentNameFromType(ReactCurrentOwner.current.type);
573
+ if (!didWarnAboutStringRefs[componentName]) {
574
+ error('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', getComponentNameFromType(ReactCurrentOwner.current.type), config.ref);
575
+ didWarnAboutStringRefs[componentName] = true;
576
+ }
577
+ }
578
+ }
579
+ }
580
+ function defineKeyPropWarningGetter(props, displayName) {
581
+ {
582
+ var warnAboutAccessingKey = function() {
583
+ if (!specialPropKeyWarningShown) {
584
+ specialPropKeyWarningShown = true;
585
+ error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", displayName);
586
+ }
587
+ };
588
+ warnAboutAccessingKey.isReactWarning = true;
589
+ Object.defineProperty(props, "key", {
590
+ get: warnAboutAccessingKey,
591
+ configurable: true
592
+ });
593
+ }
594
+ }
595
+ function defineRefPropWarningGetter(props, displayName) {
596
+ {
597
+ var warnAboutAccessingRef = function() {
598
+ if (!specialPropRefWarningShown) {
599
+ specialPropRefWarningShown = true;
600
+ error("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", displayName);
601
+ }
602
+ };
603
+ warnAboutAccessingRef.isReactWarning = true;
604
+ Object.defineProperty(props, "ref", {
605
+ get: warnAboutAccessingRef,
606
+ configurable: true
607
+ });
608
+ }
609
+ }
610
+ var ReactElement = function(type, key, ref, self, source, owner, props) {
611
+ var element = {
612
+ // This tag allows us to uniquely identify this as a React Element
613
+ $$typeof: REACT_ELEMENT_TYPE,
614
+ // Built-in properties that belong on the element
615
+ type,
616
+ key,
617
+ ref,
618
+ props,
619
+ // Record the component responsible for creating this element.
620
+ _owner: owner
621
+ };
622
+ {
623
+ element._store = {};
624
+ Object.defineProperty(element._store, "validated", {
625
+ configurable: false,
626
+ enumerable: false,
627
+ writable: true,
628
+ value: false
629
+ });
630
+ Object.defineProperty(element, "_self", {
631
+ configurable: false,
632
+ enumerable: false,
633
+ writable: false,
634
+ value: self
635
+ });
636
+ Object.defineProperty(element, "_source", {
637
+ configurable: false,
638
+ enumerable: false,
639
+ writable: false,
640
+ value: source
641
+ });
642
+ if (Object.freeze) {
643
+ Object.freeze(element.props);
644
+ Object.freeze(element);
645
+ }
646
+ }
647
+ return element;
648
+ };
649
+ function jsxDEV(type, config, maybeKey, source, self) {
650
+ {
651
+ var propName;
652
+ var props = {};
653
+ var key = null;
654
+ var ref = null;
655
+ if (maybeKey !== void 0) {
656
+ {
657
+ checkKeyStringCoercion(maybeKey);
658
+ }
659
+ key = "" + maybeKey;
660
+ }
661
+ if (hasValidKey(config)) {
662
+ {
663
+ checkKeyStringCoercion(config.key);
664
+ }
665
+ key = "" + config.key;
666
+ }
667
+ if (hasValidRef(config)) {
668
+ ref = config.ref;
669
+ warnIfStringRefCannotBeAutoConverted(config, self);
670
+ }
671
+ for (propName in config) {
672
+ if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
673
+ props[propName] = config[propName];
674
+ }
675
+ }
676
+ if (type && type.defaultProps) {
677
+ var defaultProps = type.defaultProps;
678
+ for (propName in defaultProps) {
679
+ if (props[propName] === void 0) {
680
+ props[propName] = defaultProps[propName];
681
+ }
682
+ }
683
+ }
684
+ if (key || ref) {
685
+ var displayName = typeof type === "function" ? type.displayName || type.name || "Unknown" : type;
686
+ if (key) {
687
+ defineKeyPropWarningGetter(props, displayName);
688
+ }
689
+ if (ref) {
690
+ defineRefPropWarningGetter(props, displayName);
691
+ }
692
+ }
693
+ return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
694
+ }
695
+ }
696
+ var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;
697
+ var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
698
+ function setCurrentlyValidatingElement$1(element) {
699
+ {
700
+ if (element) {
701
+ var owner = element._owner;
702
+ var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
703
+ ReactDebugCurrentFrame$1.setExtraStackFrame(stack);
704
+ } else {
705
+ ReactDebugCurrentFrame$1.setExtraStackFrame(null);
706
+ }
707
+ }
708
+ }
709
+ var propTypesMisspellWarningShown;
710
+ {
711
+ propTypesMisspellWarningShown = false;
712
+ }
713
+ function isValidElement(object) {
714
+ {
715
+ return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
716
+ }
717
+ }
718
+ function getDeclarationErrorAddendum() {
719
+ {
720
+ if (ReactCurrentOwner$1.current) {
721
+ var name = getComponentNameFromType(ReactCurrentOwner$1.current.type);
722
+ if (name) {
723
+ return "\n\nCheck the render method of `" + name + "`.";
724
+ }
725
+ }
726
+ return "";
727
+ }
728
+ }
729
+ function getSourceInfoErrorAddendum(source) {
730
+ {
731
+ if (source !== void 0) {
732
+ var fileName = source.fileName.replace(/^.*[\\\/]/, "");
733
+ var lineNumber = source.lineNumber;
734
+ return "\n\nCheck your code at " + fileName + ":" + lineNumber + ".";
735
+ }
736
+ return "";
737
+ }
738
+ }
739
+ var ownerHasKeyUseWarning = {};
740
+ function getCurrentComponentErrorInfo(parentType) {
741
+ {
742
+ var info = getDeclarationErrorAddendum();
743
+ if (!info) {
744
+ var parentName = typeof parentType === "string" ? parentType : parentType.displayName || parentType.name;
745
+ if (parentName) {
746
+ info = "\n\nCheck the top-level render call using <" + parentName + ">.";
747
+ }
748
+ }
749
+ return info;
750
+ }
751
+ }
752
+ function validateExplicitKey(element, parentType) {
753
+ {
754
+ if (!element._store || element._store.validated || element.key != null) {
755
+ return;
756
+ }
757
+ element._store.validated = true;
758
+ var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
759
+ if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
760
+ return;
761
+ }
762
+ ownerHasKeyUseWarning[currentComponentErrorInfo] = true;
763
+ var childOwner = "";
764
+ if (element && element._owner && element._owner !== ReactCurrentOwner$1.current) {
765
+ childOwner = " It was passed a child from " + getComponentNameFromType(element._owner.type) + ".";
766
+ }
767
+ setCurrentlyValidatingElement$1(element);
768
+ error('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner);
769
+ setCurrentlyValidatingElement$1(null);
770
+ }
771
+ }
772
+ function validateChildKeys(node, parentType) {
773
+ {
774
+ if (typeof node !== "object") {
775
+ return;
776
+ }
777
+ if (isArray(node)) {
778
+ for (var i = 0; i < node.length; i++) {
779
+ var child = node[i];
780
+ if (isValidElement(child)) {
781
+ validateExplicitKey(child, parentType);
782
+ }
783
+ }
784
+ } else if (isValidElement(node)) {
785
+ if (node._store) {
786
+ node._store.validated = true;
787
+ }
788
+ } else if (node) {
789
+ var iteratorFn = getIteratorFn(node);
790
+ if (typeof iteratorFn === "function") {
791
+ if (iteratorFn !== node.entries) {
792
+ var iterator = iteratorFn.call(node);
793
+ var step;
794
+ while (!(step = iterator.next()).done) {
795
+ if (isValidElement(step.value)) {
796
+ validateExplicitKey(step.value, parentType);
797
+ }
798
+ }
799
+ }
800
+ }
801
+ }
802
+ }
803
+ }
804
+ function validatePropTypes(element) {
805
+ {
806
+ var type = element.type;
807
+ if (type === null || type === void 0 || typeof type === "string") {
808
+ return;
809
+ }
810
+ var propTypes;
811
+ if (typeof type === "function") {
812
+ propTypes = type.propTypes;
813
+ } else if (typeof type === "object" && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.
814
+ // Inner props are checked in the reconciler.
815
+ type.$$typeof === REACT_MEMO_TYPE)) {
816
+ propTypes = type.propTypes;
817
+ } else {
818
+ return;
819
+ }
820
+ if (propTypes) {
821
+ var name = getComponentNameFromType(type);
822
+ checkPropTypes(propTypes, element.props, "prop", name, element);
823
+ } else if (type.PropTypes !== void 0 && !propTypesMisspellWarningShown) {
824
+ propTypesMisspellWarningShown = true;
825
+ var _name = getComponentNameFromType(type);
826
+ error("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", _name || "Unknown");
827
+ }
828
+ if (typeof type.getDefaultProps === "function" && !type.getDefaultProps.isReactClassApproved) {
829
+ error("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
830
+ }
831
+ }
832
+ }
833
+ function validateFragmentProps(fragment) {
834
+ {
835
+ var keys = Object.keys(fragment.props);
836
+ for (var i = 0; i < keys.length; i++) {
837
+ var key = keys[i];
838
+ if (key !== "children" && key !== "key") {
839
+ setCurrentlyValidatingElement$1(fragment);
840
+ error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", key);
841
+ setCurrentlyValidatingElement$1(null);
842
+ break;
843
+ }
844
+ }
845
+ if (fragment.ref !== null) {
846
+ setCurrentlyValidatingElement$1(fragment);
847
+ error("Invalid attribute `ref` supplied to `React.Fragment`.");
848
+ setCurrentlyValidatingElement$1(null);
849
+ }
850
+ }
851
+ }
852
+ function jsxWithValidation(type, props, key, isStaticChildren, source, self) {
853
+ {
854
+ var validType = isValidElementType(type);
855
+ if (!validType) {
856
+ var info = "";
857
+ if (type === void 0 || typeof type === "object" && type !== null && Object.keys(type).length === 0) {
858
+ info += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";
859
+ }
860
+ var sourceInfo = getSourceInfoErrorAddendum(source);
861
+ if (sourceInfo) {
862
+ info += sourceInfo;
863
+ } else {
864
+ info += getDeclarationErrorAddendum();
865
+ }
866
+ var typeString;
867
+ if (type === null) {
868
+ typeString = "null";
869
+ } else if (isArray(type)) {
870
+ typeString = "array";
871
+ } else if (type !== void 0 && type.$$typeof === REACT_ELEMENT_TYPE) {
872
+ typeString = "<" + (getComponentNameFromType(type.type) || "Unknown") + " />";
873
+ info = " Did you accidentally export a JSX literal instead of a component?";
874
+ } else {
875
+ typeString = typeof type;
876
+ }
877
+ error("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", typeString, info);
878
+ }
879
+ var element = jsxDEV(type, props, key, source, self);
880
+ if (element == null) {
881
+ return element;
882
+ }
883
+ if (validType) {
884
+ var children = props.children;
885
+ if (children !== void 0) {
886
+ if (isStaticChildren) {
887
+ if (isArray(children)) {
888
+ for (var i = 0; i < children.length; i++) {
889
+ validateChildKeys(children[i], type);
890
+ }
891
+ if (Object.freeze) {
892
+ Object.freeze(children);
893
+ }
894
+ } else {
895
+ error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
896
+ }
897
+ } else {
898
+ validateChildKeys(children, type);
899
+ }
900
+ }
901
+ }
902
+ if (type === REACT_FRAGMENT_TYPE) {
903
+ validateFragmentProps(element);
904
+ } else {
905
+ validatePropTypes(element);
906
+ }
907
+ return element;
908
+ }
909
+ }
910
+ function jsxWithValidationStatic(type, props, key) {
911
+ {
912
+ return jsxWithValidation(type, props, key, true);
913
+ }
914
+ }
915
+ function jsxWithValidationDynamic(type, props, key) {
916
+ {
917
+ return jsxWithValidation(type, props, key, false);
918
+ }
919
+ }
920
+ var jsx = jsxWithValidationDynamic;
921
+ var jsxs = jsxWithValidationStatic;
922
+ reactJsxRuntime_development.Fragment = REACT_FRAGMENT_TYPE;
923
+ reactJsxRuntime_development.jsx = jsx;
924
+ reactJsxRuntime_development.jsxs = jsxs;
925
+ })();
926
+ }
927
+ return reactJsxRuntime_development;
928
+ }
929
+ if (process.env.NODE_ENV === "production") {
930
+ jsxRuntime.exports = requireReactJsxRuntime_production_min();
931
+ } else {
932
+ jsxRuntime.exports = requireReactJsxRuntime_development();
933
+ }
934
+ var jsxRuntimeExports = jsxRuntime.exports;
935
+ const Wrapper$8 = /* @__PURE__ */ styled.div.withConfig({
936
+ displayName: "Field__Wrapper",
937
+ componentId: "sc-1ayqhds-0"
938
+ })(["display:block;margin:1.5rem 0;"]);
939
+ const Label = /* @__PURE__ */ styled.h5.withConfig({
940
+ displayName: "Field__Label",
941
+ componentId: "sc-1ayqhds-1"
942
+ })(["display:block;font-size:1rem;font-weight:normal;margin-bottom:0.625rem;text-align:left;color:", ";& > i{color:", ";margin-left:0.325rem;}"], ({
943
+ theme: theme2
944
+ }) => theme2.textStrong, ({
945
+ theme: theme2
946
+ }) => theme2.primary);
947
+ function Field({
948
+ label,
949
+ children,
950
+ required,
951
+ ...rest
952
+ }) {
953
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs(Wrapper$8, { ...rest, children: [
954
+ label && /* @__PURE__ */ jsxRuntimeExports.jsxs(Label, { children: [
955
+ label,
956
+ required && /* @__PURE__ */ jsxRuntimeExports.jsx("i", { children: "*" })
957
+ ] }),
958
+ children
959
+ ] });
960
+ }
961
+ function findColorInvert({
962
+ black,
963
+ white
964
+ }, color) {
965
+ if (!color || polished.getLuminance(color) > 0.55) {
966
+ return black;
967
+ }
968
+ return white;
969
+ }
970
+ function hamburger(size) {
971
+ return styled.css(["display:block;position:relative;height:", ";width:", ";cursor:pointer;span{background-color:currentColor;display:block;height:1px;left:calc(50% - 8px);position:absolute;transform-origin:center;transition-duration:100ms;transition-property:background-color,opacity,transform;transition-timing-function:ease-out;width:16px;&:nth-child(1){top:calc(50% - 6px);}&:nth-child(2){top:calc(50% - 1px);}&:nth-child(3){top:calc(50% + 4px);}&:hover{background-color:rgba(black,0.05);}}&.active span{&:nth-child(1){transform:translateY(5px) rotate(45deg);}&:nth-child(2){opacity:0;}&:nth-child(3){transform:translateY(-5px) rotate(-45deg);}}"], size, size);
972
+ }
973
+ function boxShadow(size, color, amount) {
974
+ const shadowColor = amount ? polished.transparentize(amount, color) : color;
975
+ return styled.css(["box-shadow:0 0 0 ", " ", ";"], size, shadowColor);
976
+ }
977
+ function Arrow(color) {
978
+ return styled.css(["position:absolute;border:3px solid ", ';border-radius:2px;border-right:0;border-top:0;content:" ";display:block;height:0.625em;margin-top:-0.625em;pointer-events:none;top:50%;transform:rotate(-45deg);transform-origin:center;width:0.625em;'], color);
979
+ }
980
+ function setSize(name, size) {
981
+ switch (size) {
982
+ case "small":
983
+ return `${name}: 0.75rem;`;
984
+ case "medium":
985
+ return `${name}: 1.25rem;`;
986
+ case "large":
987
+ return `${name}: 1.5rem;`;
988
+ default:
989
+ return `${name}: 1rem;`;
990
+ }
991
+ }
992
+ function mediaMobile({
993
+ theme: theme2
994
+ }) {
995
+ if (!theme2.responsive)
996
+ return "@media (max-width: 0)";
997
+ return `@media screen and (max-width: ${theme2.media.mobile})`;
998
+ }
999
+ function mediaTablet({
1000
+ theme: theme2
1001
+ }) {
1002
+ if (!theme2.responsive)
1003
+ return "@media (max-width: 0)";
1004
+ return `@media screen and (max-width: ${theme2.media.tablet})`;
1005
+ }
1006
+ function mediaDesktop({
1007
+ theme: theme2
1008
+ }) {
1009
+ if (!theme2.responsive)
1010
+ return "@media (max-width: 0)";
1011
+ return `@media screen and (max-width: ${theme2.media.desktop})`;
1012
+ }
1013
+ function mediaFullHD({
1014
+ theme: theme2
1015
+ }) {
1016
+ if (!theme2.responsive)
1017
+ return "@media (max-width: 0)";
1018
+ return `@media screen and (max-width: ${theme2.media.fullhd})`;
1019
+ }
1020
+ function mediaUntilFullHD({
1021
+ theme: theme2
1022
+ }) {
1023
+ if (!theme2.responsive)
1024
+ return "@media (max-width: 0)";
1025
+ return `@media screen and (min-width: ${theme2.media.fullhd})`;
1026
+ }
1027
+ function disabledColor(theme2) {
1028
+ const textColor = polished.transparentize(0.15, theme2.textDark);
1029
+ const backColor = polished.transparentize(0.55, theme2.border);
1030
+ return styled.css(["pointer-events:none;box-shadow:none;color:", ";background-color:", ";"], textColor, backColor);
1031
+ }
1032
+ const Message = /* @__PURE__ */ styled.small.withConfig({
1033
+ displayName: "HelpMessage__Message",
1034
+ componentId: "sc-14wou17-0"
1035
+ })(["font-size:0.8rem;color:", ";"], ({
1036
+ error,
1037
+ theme: theme2
1038
+ }) => error ? theme2.danger : theme2.textLight);
1039
+ function HelpMessage({
1040
+ help,
1041
+ error,
1042
+ noErrorMessage
1043
+ }) {
1044
+ if (error && !noErrorMessage)
1045
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Message, { error: true, children: error });
1046
+ if (help)
1047
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Message, { children: help });
1048
+ return null;
1049
+ }
1050
+ const TextInput = require$$0.forwardRef(({
1051
+ className,
1052
+ outline,
1053
+ error,
1054
+ style,
1055
+ help,
1056
+ leftIcon: leftIcon2,
1057
+ rightIcon: rightIcon2,
1058
+ type = "text",
1059
+ maxLength = 255,
1060
+ noErrorMessage,
1061
+ ...rest
1062
+ }, ref) => /* @__PURE__ */ jsxRuntimeExports.jsxs(Wrapper$7, { className, outline, error, style, disabled: rest.disabled, children: [
1063
+ leftIcon2 && /* @__PURE__ */ jsxRuntimeExports.jsx(Icon, { children: leftIcon2 }),
1064
+ rightIcon2 && /* @__PURE__ */ jsxRuntimeExports.jsx(Icon, { right: true, children: rightIcon2 }),
1065
+ /* @__PURE__ */ jsxRuntimeExports.jsx("input", { type, maxLength, ref, ...rest }),
1066
+ /* @__PURE__ */ jsxRuntimeExports.jsx(HelpMessage, { help, error, noErrorMessage })
1067
+ ] }));
1068
+ TextInput.displayName = "TextInput";
1069
+ const TextInput$1 = TextInput;
1070
+ const rightIcon = /* @__PURE__ */ styled.css(["right:0.375em;& ~ input{padding-right:1.555em !important;}"]);
1071
+ const leftIcon = /* @__PURE__ */ styled.css(["left:0.375em;& ~ input{padding-left:1.55em !important;}"]);
1072
+ const Icon = /* @__PURE__ */ styled.span.withConfig({
1073
+ displayName: "TextInput__Icon",
1074
+ componentId: "sc-1myda3q-0"
1075
+ })(["position:absolute;top:0.375em;bottom:0;z-index:1;color:", ";", " svg,img{height:1em;width:1em;}"], ({
1076
+ theme: theme2
1077
+ }) => theme2.border, ({
1078
+ right
1079
+ }) => right ? rightIcon : leftIcon);
1080
+ const Wrapper$7 = /* @__PURE__ */ styled.span.withConfig({
1081
+ displayName: "TextInput__Wrapper",
1082
+ componentId: "sc-1myda3q-1"
1083
+ })(["position:relative;display:block;input{max-width:100%;width:100%;height:100%;position:relative;display:block;outline:none;box-shadow:none;appearance:none;text-align:left;color:inherit;padding:", ";border:1px solid ", ";", " ", " transition-property:box-shadow;transition-duration:150ms;transition-timing-function:ease-in-out;&:focus{border-color:", ";box-shadow:", ";}&:disabled,[disabled]{resize:none;}&::placeholder{color:", ";}}&:hover{input:not(:disabled):not(:focus):not(:active){border-color:", ";}", "{color:", ";}}", ""], ({
1084
+ theme: theme2
1085
+ }) => theme2.formPadding, ({
1086
+ error,
1087
+ theme: theme2
1088
+ }) => error ? theme2.danger : theme2.border, ({
1089
+ outline,
1090
+ theme: theme2
1091
+ }) => outline ? {
1092
+ borderRadius: theme2.radius
1093
+ } : {
1094
+ borderRadius: 0,
1095
+ borderWidth: 0,
1096
+ borderBottomWidth: "1px"
1097
+ }, setSize("font-size"), ({
1098
+ error,
1099
+ theme: theme2
1100
+ }) => error ? theme2.danger : theme2.primary, ({
1101
+ theme: theme2,
1102
+ outline,
1103
+ error
1104
+ }) => outline ? `0 0 0 0.1em ${error ? theme2.danger : theme2.primary}` : `0 0.1em ${error ? theme2.danger : theme2.primary}`, ({
1105
+ theme: theme2
1106
+ }) => theme2.placeholder, ({
1107
+ theme: theme2
1108
+ }) => theme2.borderHover, Icon, ({
1109
+ theme: theme2
1110
+ }) => theme2.borderHover, ({
1111
+ disabled,
1112
+ theme: theme2
1113
+ }) => disabled ? styled.css(["input{", " border-style:dashed;}"], disabledColor(theme2)) : void 0);
1114
+ const Textarea = require$$0.forwardRef(({
1115
+ className,
1116
+ help,
1117
+ error,
1118
+ style,
1119
+ noErrorMessage,
1120
+ ...rest
1121
+ }, ref) => /* @__PURE__ */ jsxRuntimeExports.jsxs(Wrapper$6, { className, error: !!error, style, disabled: rest.disabled, children: [
1122
+ /* @__PURE__ */ jsxRuntimeExports.jsx("textarea", { ...rest, ref }),
1123
+ /* @__PURE__ */ jsxRuntimeExports.jsx(HelpMessage, { help, error, noErrorMessage })
1124
+ ] }));
1125
+ Textarea.displayName = "Textarea";
1126
+ const Textarea$1 = Textarea;
1127
+ const Wrapper$6 = /* @__PURE__ */ styled.span.withConfig({
1128
+ displayName: "Textarea__Wrapper",
1129
+ componentId: "sc-z9p0uf-0"
1130
+ })(["display:block;position:relative;textarea{max-width:100%;width:100%;height:100%;padding:0.625em;resize:vertical;appearance:none;overflow:auto;outline:none;text-align:left;color:inherit;border-radius:", ";border:1px solid ", ";transition-property:box-shadow;transition-duration:0.15s;transition-timing-function:ease-in-out;", " &:focus{border-color:", ";", "}&:disabled,[disabled],&:readonly{", "}&:disabled,[disabled]{resize:none;}&::placeholder{color:", ";}}&:hover{textarea:not(:disabled):not(:focus){border-color:", ";}}", ""], ({
1131
+ theme: theme2
1132
+ }) => theme2.radius, ({
1133
+ theme: theme2,
1134
+ error
1135
+ }) => error ? theme2.danger : theme2.border, setSize("font-size"), ({
1136
+ theme: theme2,
1137
+ error
1138
+ }) => error ? theme2.danger : theme2.primary, ({
1139
+ theme: theme2,
1140
+ error
1141
+ }) => boxShadow("0.1em", error ? theme2.danger : theme2.primary), ({
1142
+ theme: theme2
1143
+ }) => disabledColor(theme2), ({
1144
+ theme: theme2
1145
+ }) => theme2.placeholder, ({
1146
+ theme: theme2
1147
+ }) => theme2.borderHover, ({
1148
+ disabled,
1149
+ theme: theme2
1150
+ }) => disabled ? styled.css(["textarea{", " border-style:dashed;}"], disabledColor(theme2)) : void 0);
1151
+ const isClient = typeof window !== "undefined" && typeof window.document !== "undefined" && typeof window.document.createElement !== "undefined";
1152
+ const useIsomorphicLayoutEffect = isClient ? require$$0.useLayoutEffect : require$$0.useEffect;
1153
+ function Approved$1() {
1154
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "30", height: "30", viewBox: "0 0 30 30", children: /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M11.5 18.5l-3.9-4L6 16l5.6 5.6 11.6-11.5-1.7-1.6z", fill: "currentColor" }) });
1155
+ }
1156
+ function Indeterminate() {
1157
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "30", height: "30", viewBox: "0 0 30 30", children: /* @__PURE__ */ jsxRuntimeExports.jsx("rect", { width: "20", height: "4", y: "13", x: "4.5", fill: "currentColor", stroke: "none", rx: "2" }) });
1158
+ }
1159
+ const Checkbox = require$$0.forwardRef(({
1160
+ className,
1161
+ children,
1162
+ indeterminate,
1163
+ ...rest
1164
+ }, ref) => {
1165
+ const innerRef = require$$0.useRef(null);
1166
+ const id = `checkbox_${rest.name}_${rest.value ?? "none"}`;
1167
+ const innerClass = require$$0.useMemo(() => {
1168
+ const arr = [];
1169
+ if (rest.checked || indeterminate)
1170
+ arr.push("checked");
1171
+ if (rest.disabled)
1172
+ arr.push("disabled");
1173
+ return arr.join(" ");
1174
+ }, [rest.checked, rest.disabled, indeterminate]);
1175
+ require$$0.useImperativeHandle(ref, () => innerRef.current);
1176
+ useIsomorphicLayoutEffect(() => {
1177
+ if (innerRef.current) {
1178
+ innerRef.current.indeterminate = indeterminate;
1179
+ }
1180
+ }, [indeterminate]);
1181
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs(Wrapper$5, { className, children: [
1182
+ /* @__PURE__ */ jsxRuntimeExports.jsx("input", { type: "checkbox", id, ...rest, ref: innerRef }),
1183
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("label", { htmlFor: id, children: [
1184
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Shape$1, { className: innerClass, children: indeterminate ? /* @__PURE__ */ jsxRuntimeExports.jsx(Indeterminate, {}) : /* @__PURE__ */ jsxRuntimeExports.jsx(Approved$1, {}) }),
1185
+ children
1186
+ ] })
1187
+ ] });
1188
+ });
1189
+ Checkbox.displayName = "Checkbox";
1190
+ const Checkbox$1 = Checkbox;
1191
+ const Shape$1 = /* @__PURE__ */ styled.div.withConfig({
1192
+ displayName: "Checkbox__Shape",
1193
+ componentId: "sc-1lh5swj-0"
1194
+ })(["display:inline-flex;margin:0.5rem;width:1.25em;height:1.25em;background:transparent;border:0.1em solid ", ";border-radius:", ";justify-content:center;align-items:center;will-change:background-color;transition:background-color 150ms ease-out;svg{opacity:0;stroke-width:0.1em;stroke:currentColor;}&.checked{border-color:", ";background-color:", ";color:", ";svg{opacity:1;}&.disabled{color:", ";}}&.disabled{background:", ";border-color:", ";}"], ({
1195
+ theme: theme2
1196
+ }) => theme2.border, ({
1197
+ theme: theme2
1198
+ }) => theme2.radius, ({
1199
+ theme: theme2
1200
+ }) => theme2.primary, ({
1201
+ theme: theme2
1202
+ }) => theme2.primary, ({
1203
+ theme: theme2
1204
+ }) => theme2.white, ({
1205
+ theme: theme2
1206
+ }) => polished.transparentize(0.15, theme2.textDark), ({
1207
+ theme: theme2
1208
+ }) => polished.transparentize(0.55, theme2.border), ({
1209
+ theme: theme2
1210
+ }) => theme2.border);
1211
+ const Wrapper$5 = /* @__PURE__ */ styled.span.withConfig({
1212
+ displayName: "Checkbox__Wrapper",
1213
+ componentId: "sc-1lh5swj-1"
1214
+ })(["display:block;position:relative;width:auto;label{display:flex;align-items:center;cursor:pointer;padding-left:0.625em;max-width:100%;width:100%;line-height:1.25;margin-right:0.625rem;}input{display:none;&:disabled + label{color:", ";}}"], ({
1215
+ theme: theme2
1216
+ }) => polished.transparentize(0.25, theme2.textDark));
1217
+ function ChevronDown(props) {
1218
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("svg", { width: "12", height: "8", viewBox: "0 0 12 8", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M10.6 0L6 4.6 1.4 0 0 1.4l6 6 6-6L10.6 0z", fill: "currentColor" }) });
1219
+ }
1220
+ function Select({
1221
+ options = [],
1222
+ placeholder,
1223
+ render,
1224
+ help,
1225
+ error,
1226
+ className,
1227
+ inputSize,
1228
+ outline,
1229
+ optional,
1230
+ noErrorMessage,
1231
+ innerRef,
1232
+ ...rest
1233
+ }) {
1234
+ const list = require$$0.useMemo(() => options.map((item) => typeof item === "string" ? /* @__PURE__ */ jsxRuntimeExports.jsx("option", { value: item, children: render ? render(item) : item }, item) : /* @__PURE__ */ jsxRuntimeExports.jsx("option", { value: item.id, children: render ? render(item.name) : item.name }, item.id)), [options, render]);
1235
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs(InputWrapper, { className, inputSize, outline, error: !!error, disabled: rest.disabled, children: [
1236
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("select", { ...rest, ref: innerRef, children: [
1237
+ placeholder && /* @__PURE__ */ jsxRuntimeExports.jsx("option", { value: "", disabled: !optional, children: placeholder }),
1238
+ list
1239
+ ] }),
1240
+ /* @__PURE__ */ jsxRuntimeExports.jsx(ChevronDown, {}),
1241
+ /* @__PURE__ */ jsxRuntimeExports.jsx(HelpMessage, { help, error, noErrorMessage })
1242
+ ] });
1243
+ }
1244
+ const index$5 = require$$0.forwardRef((props, ref) => /* @__PURE__ */ jsxRuntimeExports.jsx(Select, { ...props, innerRef: ref }));
1245
+ const InputWrapper = /* @__PURE__ */ styled.span.withConfig({
1246
+ displayName: "Select__InputWrapper",
1247
+ componentId: "sc-gevlx8-0"
1248
+ })(["position:relative;display:block;select{display:block;cursor:pointer;appearance:none;outline:none;max-width:100%;width:100%;height:100%;background-color:transparent;padding:", ";padding-right:1.85rem;text-align:left;color:inherit;", " border:1px solid ", ";", " will-change:box-shadow;transition-property:box-shadow;transition-duration:150ms;transition-timing-function:ease-in-out;&:hover{border-color:", ";}&:focus{border-color:", ";box-shadow:", ";}&::-ms-expand{display:none;}&:-moz-focusring{color:transparent;text-shadow:0 0 0 #000;}&:invalid{color:", ";}}svg{position:absolute;right:0.75rem;top:50%;transform:translateY(-50%);color:", ";}select:hover + svg{color:", ";}", ""], ({
1249
+ theme: theme2
1250
+ }) => theme2.formPadding, ({
1251
+ inputSize
1252
+ }) => setSize("font-size", inputSize), ({
1253
+ error,
1254
+ theme: theme2
1255
+ }) => error ? theme2.danger : theme2.border, ({
1256
+ outline,
1257
+ theme: theme2
1258
+ }) => outline ? styled.css(["border-radius:", ";"], theme2.radius) : styled.css(["border-width:0;border-radius:0;border-bottom-width:1px;"]), ({
1259
+ theme: theme2
1260
+ }) => theme2.borderHover, ({
1261
+ error,
1262
+ theme: theme2
1263
+ }) => error ? theme2.danger : theme2.primary, ({
1264
+ theme: theme2,
1265
+ outline,
1266
+ error
1267
+ }) => outline ? `0 0 0 0.1em ${error ? theme2.danger : theme2.primary}` : `0 0.1em ${error ? theme2.danger : theme2.primary}`, ({
1268
+ theme: theme2
1269
+ }) => theme2.placeholder, ({
1270
+ theme: theme2
1271
+ }) => theme2.border, ({
1272
+ theme: theme2
1273
+ }) => theme2.borderHover, ({
1274
+ disabled,
1275
+ theme: theme2
1276
+ }) => disabled ? styled.css(["select{", " border-style:dashed;}svg{display:none;}"], disabledColor(theme2)) : void 0);
1277
+ function Radio({
1278
+ className,
1279
+ style,
1280
+ children,
1281
+ innerRef,
1282
+ ...rest
1283
+ }) {
1284
+ const id = `radio_${rest.name}_${rest.value}`;
1285
+ const innerClass = require$$0.useMemo(() => {
1286
+ const arr = [];
1287
+ if (rest.checked)
1288
+ arr.push("checked");
1289
+ if (rest.disabled)
1290
+ arr.push("disabled");
1291
+ return arr.join(" ");
1292
+ }, [rest.checked, rest.disabled]);
1293
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs(Wrapper$4, { className, style, children: [
1294
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("label", { htmlFor: id, children: [
1295
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Shape, { className: innerClass, children: /* @__PURE__ */ jsxRuntimeExports.jsx("i", {}) }),
1296
+ children
1297
+ ] }),
1298
+ /* @__PURE__ */ jsxRuntimeExports.jsx("input", { id, type: "radio", ...rest, ref: innerRef })
1299
+ ] });
1300
+ }
1301
+ const index$4 = require$$0.forwardRef((props, ref) => /* @__PURE__ */ jsxRuntimeExports.jsx(Radio, { ...props, innerRef: ref }));
1302
+ const Shape = /* @__PURE__ */ styled.div.withConfig({
1303
+ displayName: "Radio__Shape",
1304
+ componentId: "sc-13m0vd4-0"
1305
+ })(["display:inline-flex;margin:0.5rem;width:1.25em;height:1.25em;background:transparent;border:0.1em solid ", ";border-radius:50%;justify-content:center;align-items:center;will-change:background-color,border-color;transition-property:background-color,border-color;transition-duration:150ms;transition-timing-function:ease-out;&.checked{border-color:", ";& > i{transform:scale(1);}&.disabled > i{background-color:", ";}}&.disabled{background:", ";border-color:", ";}& > i{display:block;width:0.5em;height:0.5em;background:", ";border:none;transform:scale(0);border-radius:50%;will-change:transform;transition:transform 150ms ease-out;}"], ({
1306
+ theme: theme2
1307
+ }) => theme2.border, ({
1308
+ theme: theme2
1309
+ }) => theme2.primary, ({
1310
+ theme: theme2
1311
+ }) => polished.transparentize(0.15, theme2.textDark), ({
1312
+ theme: theme2
1313
+ }) => polished.transparentize(0.55, theme2.border), ({
1314
+ theme: theme2
1315
+ }) => theme2.border, ({
1316
+ theme: theme2
1317
+ }) => theme2.primary);
1318
+ const Wrapper$4 = /* @__PURE__ */ styled.span.withConfig({
1319
+ displayName: "Radio__Wrapper",
1320
+ componentId: "sc-13m0vd4-1"
1321
+ })(["display:block;width:auto;label{cursor:pointer;max-width:100%;width:100%;line-height:1.25;margin-right:0.625rem;display:flex;align-items:center;&:hover > div:not(.checked):not(.disabled){border-color:", ";}}input{display:none;}"], ({
1322
+ theme: theme2
1323
+ }) => theme2.borderHover);
1324
+ const Switch = require$$0.forwardRef(({
1325
+ className,
1326
+ showLabel,
1327
+ background,
1328
+ anchorColor,
1329
+ onLabel = "ON",
1330
+ offLabel = "OFF",
1331
+ ...rest
1332
+ }, ref) => {
1333
+ const id = `switch_${rest.name}`;
1334
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs(Wrapper$3, { className, showLabel, background, anchorColor, labelTextOn: onLabel, labelTextOff: offLabel, disabled: rest.disabled, children: [
1335
+ /* @__PURE__ */ jsxRuntimeExports.jsx("input", { id, type: "checkbox", ...rest, ref }),
1336
+ /* @__PURE__ */ jsxRuntimeExports.jsx("label", { htmlFor: id, "aria-label": id })
1337
+ ] });
1338
+ });
1339
+ Switch.displayName = "Switch";
1340
+ const Switch$1 = Switch;
1341
+ const labelStyle = /* @__PURE__ */ styled.css(["label:before{position:absolute;display:block;content:'", "';top:0.5rem;right:0.6875rem;font-size:0.825rem;line-height:0.825rem;color:", ";}input:checked ~ label:before{content:'", "';right:unset;left:0.6875rem;color:", ";}"], ({
1342
+ offLabel
1343
+ }) => offLabel, ({
1344
+ theme: theme2
1345
+ }) => theme2.textLight, ({
1346
+ onLabel
1347
+ }) => onLabel, ({
1348
+ theme: theme2
1349
+ }) => findColorInvert(theme2, theme2.primary));
1350
+ const Wrapper$3 = /* @__PURE__ */ styled.span.withConfig({
1351
+ displayName: "Switch__Wrapper",
1352
+ componentId: "sc-1ljdf1-0"
1353
+ })(["display:inline-block;cursor:pointer;line-height:1.25;position:relative;input{display:none;}label{position:relative;display:block;height:1.875rem;min-width:5rem;background:transparent;border:1px solid ", ";border-radius:1.25rem;cursor:pointer;will-change:background-color;transition:background-color 300ms ease;box-shadow:inset 0 0.25rem 0.25rem rgba(0,0,0,0.05);&:after{position:absolute;display:block;left:0.375rem;top:0.2rem;width:1.375rem;height:1.375rem;border-radius:100%;background:", ";content:'';text-align:right;border:1px solid ", ";will-change:left;transition:left 300ms ease;box-shadow:0 0 0.375rem rgba(0,0,0,0.1);}}input:checked ~ label{background:", ";box-shadow:inset 0 0.25rem 0.25rem rgba(0,0,0,0.15);&:after{left:calc(100% - 1.75rem);box-shadow:0 0 0.375rem rgba(0,0,0,0.15);}}", " ", ""], ({
1354
+ theme: theme2
1355
+ }) => theme2.border, ({
1356
+ theme: theme2,
1357
+ anchorColor
1358
+ }) => anchorColor || theme2.white, ({
1359
+ theme: theme2
1360
+ }) => theme2.border, ({
1361
+ theme: theme2,
1362
+ background
1363
+ }) => background || theme2.primary, ({
1364
+ showLabel
1365
+ }) => showLabel ? labelStyle : void 0, ({
1366
+ disabled,
1367
+ theme: theme2
1368
+ }) => disabled ? styled.css(["cursor:default;label{", " &:after{background:", ";}}input:checked ~ label{background:", ";}"], disabledColor(theme2), theme2.disabled, theme2.grey) : void 0);
1369
+ function Accordion({
1370
+ header,
1371
+ show,
1372
+ children,
1373
+ timeout = 300,
1374
+ ...rest
1375
+ }) {
1376
+ const ref = require$$0.useRef(null);
1377
+ const prevHeight = require$$0.useRef(0);
1378
+ const timeoutRef = require$$0.useRef(0);
1379
+ const init = require$$0.useRef(true);
1380
+ require$$0.useEffect(() => {
1381
+ timeoutRef.current = timeout;
1382
+ }, [timeout]);
1383
+ useIsomorphicLayoutEffect(() => {
1384
+ if (!ref.current)
1385
+ return;
1386
+ ref.current.style.overflow = "hidden";
1387
+ ref.current.style.opacity = "1";
1388
+ if (init.current) {
1389
+ init.current = false;
1390
+ ref.current.style.height = show ? "auto" : "0px";
1391
+ if (show) {
1392
+ requestAnimationFrame(() => {
1393
+ if (ref.current) {
1394
+ prevHeight.current = ref.current.offsetHeight;
1395
+ }
1396
+ });
1397
+ } else {
1398
+ requestAnimationFrame(() => {
1399
+ if (ref.current) {
1400
+ ref.current.style.height = "auto";
1401
+ prevHeight.current = ref.current.offsetHeight;
1402
+ ref.current.style.height = "0px";
1403
+ }
1404
+ });
1405
+ ref.current.style.opacity = "0";
1406
+ }
1407
+ return;
1408
+ }
1409
+ if (!show) {
1410
+ ref.current.style.height = `${prevHeight.current}px`;
1411
+ }
1412
+ const frameIds = [];
1413
+ frameIds[0] = requestAnimationFrame(() => {
1414
+ frameIds[1] = requestAnimationFrame(() => {
1415
+ if (!ref.current)
1416
+ return;
1417
+ ref.current.style.height = `${show ? prevHeight.current : 0}px`;
1418
+ ref.current.style.opacity = show ? "1" : "0";
1419
+ });
1420
+ });
1421
+ const timeoutId = setTimeout(() => {
1422
+ if (!ref.current)
1423
+ return;
1424
+ if (show) {
1425
+ ref.current.style.height = "auto";
1426
+ ref.current.style.overflow = "";
1427
+ ref.current.style.opacity = "";
1428
+ requestAnimationFrame(() => {
1429
+ if (ref.current) {
1430
+ prevHeight.current = ref.current.offsetHeight;
1431
+ }
1432
+ });
1433
+ } else {
1434
+ ref.current.style.height = "0px";
1435
+ }
1436
+ }, timeoutRef.current);
1437
+ return () => {
1438
+ frameIds.forEach(cancelAnimationFrame);
1439
+ clearTimeout(timeoutId);
1440
+ };
1441
+ }, [show]);
1442
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { ...rest, children: [
1443
+ header,
1444
+ /* @__PURE__ */ jsxRuntimeExports.jsx(AnimatedContent, { "aria-hidden": !show, ref, style: {
1445
+ transitionDuration: `${timeout}ms`
1446
+ }, children })
1447
+ ] });
1448
+ }
1449
+ const AnimatedContent = /* @__PURE__ */ styled.div.withConfig({
1450
+ displayName: "Accordion__AnimatedContent",
1451
+ componentId: "sc-1yjowun-0"
1452
+ })(["will-change:opacity,height,transform;transition-property:opacity,height,transform;transition-timing-function:ease-in-out;"]);
1453
+ function setAlign({
1454
+ align
1455
+ }) {
1456
+ switch (align) {
1457
+ case "left":
1458
+ return "flex-start";
1459
+ case "right":
1460
+ return "flex-end";
1461
+ case "center":
1462
+ return "center";
1463
+ default:
1464
+ return "space-evenly";
1465
+ }
1466
+ }
1467
+ function AppBar({
1468
+ children,
1469
+ align,
1470
+ brand,
1471
+ ...rest
1472
+ }) {
1473
+ const [show, setShow] = require$$0.useState(false);
1474
+ const toggleMenu = () => setShow(!show);
1475
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(NavBar, { role: "navigation", ...rest, children: /* @__PURE__ */ jsxRuntimeExports.jsxs("nav", { children: [
1476
+ brand,
1477
+ children && /* @__PURE__ */ jsxRuntimeExports.jsxs(Burger, { className: show ? "active" : void 0, onClick: toggleMenu, children: [
1478
+ /* @__PURE__ */ jsxRuntimeExports.jsx("span", {}),
1479
+ /* @__PURE__ */ jsxRuntimeExports.jsx("span", {}),
1480
+ /* @__PURE__ */ jsxRuntimeExports.jsx("span", {})
1481
+ ] }),
1482
+ /* @__PURE__ */ jsxRuntimeExports.jsx(NavContent, { className: show ? "active" : void 0, align, children })
1483
+ ] }) });
1484
+ }
1485
+ function setColor$1({
1486
+ color,
1487
+ theme: theme2,
1488
+ backdrop
1489
+ }) {
1490
+ const backgroundColor = color ? theme2[color] : "transparent";
1491
+ const textColor = findColorInvert(theme2, backgroundColor === "transparent" ? theme2.background : backgroundColor);
1492
+ if (backdrop) {
1493
+ const backColor = polished.transparentize(0.2, backgroundColor === "transparent" ? theme2.white : backgroundColor);
1494
+ return styled.css(["background-color:", ";color:", ";"], backColor, textColor);
1495
+ }
1496
+ return styled.css(["background-color:", ";color:", ";"], backgroundColor, textColor);
1497
+ }
1498
+ const NavBar = /* @__PURE__ */ styled.header.withConfig({
1499
+ displayName: "AppBar__NavBar",
1500
+ componentId: "sc-t8gqca-0"
1501
+ })(["position:", ";display:flex;top:-1px;min-height:3.25rem;width:100%;z-index:30;padding:", ";& > nav{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;flex:1 0 auto;}", " a{color:inherit;}", "{padding:", ";}"], ({
1502
+ fixed,
1503
+ sticky
1504
+ }) => {
1505
+ if (sticky)
1506
+ return "sticky";
1507
+ if (fixed)
1508
+ return "fixed";
1509
+ return "relative";
1510
+ }, ({
1511
+ fluid
1512
+ }) => fluid ? "0 0.75rem" : "0 5%", setColor$1, mediaTablet, ({
1513
+ fluid
1514
+ }) => fluid ? "0 0.5rem" : "0 3%");
1515
+ const Burger = /* @__PURE__ */ styled.button.withConfig({
1516
+ displayName: "AppBar__Burger",
1517
+ componentId: "sc-t8gqca-1"
1518
+ })(["", " display:none;margin-left:auto;border:none;background-color:transparent;color:inherit;outline:none;&:hover{background-color:rgba(0,0,0,.05);}", "{display:block;}"], hamburger("3.25rem"), mediaMobile);
1519
+ const NavContent = /* @__PURE__ */ styled.div.withConfig({
1520
+ displayName: "AppBar__NavContent",
1521
+ componentId: "sc-t8gqca-2"
1522
+ })(["display:flex;flex-direction:row;justify-content:space-between;align-items:center;flex-basis:auto;flex-grow:1;height:100%;& > ul{display:flex;flex-direction:row;list-style:none;flex-grow:1;flex-basis:100%;height:inherit;align-items:center;justify-content:", ";li{padding:0.85rem;}}& > div,& > span,& > form{display:flex;", "}", "{width:100%;flex-direction:column;align-items:flex-start;height:auto;padding-bottom:0.5rem;&:not(.active){display:none;}& > ul{flex-direction:column;align-items:flex-start;width:100%;flex-basis:auto;li{padding:.5rem 0;}}& > div,& > span,& > form{padding:.5rem 0;width:100%;}}"], setAlign, ({
1523
+ color
1524
+ }) => color ? `color: ${color};` : "", mediaMobile);
1525
+ const Portal = require$$0.forwardRef(({
1526
+ children,
1527
+ container,
1528
+ disabled
1529
+ }, ref) => {
1530
+ const [mountNode, setMountNode] = require$$0.useState(null);
1531
+ useIsomorphicLayoutEffect(() => {
1532
+ if (disabled) {
1533
+ setMountNode(null);
1534
+ return;
1535
+ }
1536
+ if (!container) {
1537
+ let dom = document.getElementById("visits-style-portals");
1538
+ if (!dom) {
1539
+ dom = document.createElement("div");
1540
+ dom.id = "visits-style-portals";
1541
+ document.body.appendChild(dom);
1542
+ }
1543
+ setMountNode(dom);
1544
+ return;
1545
+ }
1546
+ setMountNode(container);
1547
+ }, [container, disabled]);
1548
+ return mountNode ? reactDom.createPortal(children, mountNode) : null;
1549
+ });
1550
+ Portal.displayName = "Portal";
1551
+ const Portal$1 = Portal;
1552
+ function Tooltip$1({
1553
+ children,
1554
+ position = "bottom",
1555
+ label,
1556
+ color,
1557
+ className = "",
1558
+ offset = {
1559
+ x: 0,
1560
+ y: 6
1561
+ },
1562
+ clientPoint,
1563
+ disabled
1564
+ }) {
1565
+ const [open, setOpen] = require$$0.useState(false);
1566
+ const {
1567
+ refs,
1568
+ floatingStyles,
1569
+ context
1570
+ } = react.useFloating({
1571
+ open,
1572
+ placement: position,
1573
+ middleware: [react.shift(), react.flip(), react.offset({
1574
+ mainAxis: offset.y,
1575
+ crossAxis: offset.x
1576
+ })],
1577
+ onOpenChange: setOpen
1578
+ });
1579
+ const {
1580
+ getReferenceProps,
1581
+ getFloatingProps
1582
+ } = react.useInteractions([react.useHover(context, {
1583
+ enabled: !disabled
1584
+ }), react.useClientPoint(context, {
1585
+ enabled: clientPoint
1586
+ })]);
1587
+ const child = typeof children === "string" ? /* @__PURE__ */ jsxRuntimeExports.jsx("span", { children }) : children;
1588
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
1589
+ require$$0.cloneElement(require$$0.Children.only(child), {
1590
+ ref: refs.setReference,
1591
+ ...getReferenceProps()
1592
+ }),
1593
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Portal$1, { children: open ? /* @__PURE__ */ jsxRuntimeExports.jsx(react.FloatingFocusManager, { context, modal: false, children: /* @__PURE__ */ jsxRuntimeExports.jsx(TooltipWrapper, { className, ref: refs.setFloating, role: "tooltip", $color: color, style: floatingStyles, ...getFloatingProps(), children: label }) }) : null })
1594
+ ] });
1595
+ }
1596
+ const TooltipWrapper = /* @__PURE__ */ styled.div.withConfig({
1597
+ displayName: "Tooltip__TooltipWrapper",
1598
+ componentId: "sc-1xyhucq-0"
1599
+ })(["position:relative;box-shadow:0 1px 2px 0 rgba(0,0,0,0.05);z-index:9999;padding:0.375rem 0.625rem;cursor:default;white-space:pre;font-size:0.85rem;z-index:9999;background-color:", ";&:focus{outline:none;}"], ({
1600
+ $color,
1601
+ theme: theme2
1602
+ }) => $color ? theme2[$color] || theme2.background : theme2.background);
1603
+ const Box = styled.div.withConfig({
1604
+ displayName: "Box",
1605
+ componentId: "sc-kc6ybp-0"
1606
+ })(["position:relative;display:flex;flex-direction:column;border:", ";border-radius:", ";width:100%;min-width:0;word-wrap:break-word;", ""], ({
1607
+ borderless,
1608
+ theme: theme2
1609
+ }) => borderless ? "none" : `1px solid ${theme2.border}`, ({
1610
+ theme: theme2
1611
+ }) => theme2.radius, ({
1612
+ color,
1613
+ theme: theme2
1614
+ }) => {
1615
+ if (!color)
1616
+ return void 0;
1617
+ const target = theme2[color] || color;
1618
+ const invertColor = findColorInvert(theme2, target);
1619
+ return {
1620
+ backgroundColor: target,
1621
+ color: invertColor
1622
+ };
1623
+ });
1624
+ const CardBody = /* @__PURE__ */ styled.div.withConfig({
1625
+ displayName: "Card__CardBody",
1626
+ componentId: "sc-1xqn2rf-0"
1627
+ })(["padding:1.25rem;margin:0;"]);
1628
+ const CardHeader = /* @__PURE__ */ styled.header.withConfig({
1629
+ displayName: "Card__CardHeader",
1630
+ componentId: "sc-1xqn2rf-1"
1631
+ })(["display:flex;padding:0.5rem 1.5rem;min-height:3.5rem;border-bottom:1px solid ", ";align-items:center;justify-content:space-between;"], ({
1632
+ theme: theme2
1633
+ }) => theme2.border);
1634
+ const CardFooter = /* @__PURE__ */ styled.footer.withConfig({
1635
+ displayName: "Card__CardFooter",
1636
+ componentId: "sc-1xqn2rf-2"
1637
+ })(["display:flex;padding:0.5rem 1.5rem;min-height:3.5rem;border-top:1px solid ", ";align-items:center;justify-content:space-between;"], ({
1638
+ theme: theme2
1639
+ }) => theme2.border);
1640
+ const CardImage = /* @__PURE__ */ styled.a.withConfig({
1641
+ displayName: "Card__CardImage",
1642
+ componentId: "sc-1xqn2rf-3"
1643
+ })(["width:100%;img{width:100%;padding:0;margin:0;border-top-left-radius:3px;border-top-right-radius:3px;}"]);
1644
+ const CardImageHorizontal = /* @__PURE__ */ styled.a.withConfig({
1645
+ displayName: "Card__CardImageHorizontal",
1646
+ componentId: "sc-1xqn2rf-4"
1647
+ })(["flex:0 0 30%;min-width:5rem;width:30%;border-top-left-radius:3px;border-bottom-left-radius:3px;background:no-repeat center/cover;", ""], ({
1648
+ url
1649
+ }) => url ? {
1650
+ backgroundImage: `url(${url})`
1651
+ } : void 0);
1652
+ function Card({
1653
+ image,
1654
+ title,
1655
+ children,
1656
+ horizontal,
1657
+ footer,
1658
+ color,
1659
+ style = {},
1660
+ ...rest
1661
+ }) {
1662
+ const header = require$$0.useMemo(() => {
1663
+ if (image && !horizontal)
1664
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(CardImage, { children: /* @__PURE__ */ jsxRuntimeExports.jsx("img", { src: image, alt: "" }) });
1665
+ if (image && horizontal)
1666
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(CardImageHorizontal, { url: image });
1667
+ if (title && !horizontal)
1668
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(CardHeader, { children: /* @__PURE__ */ jsxRuntimeExports.jsx("h3", { children: title }) });
1669
+ return null;
1670
+ }, [image, title, horizontal]);
1671
+ const styles = require$$0.useMemo(() => ({
1672
+ flexDirection: horizontal ? "row" : "column",
1673
+ ...style
1674
+ }), [style, horizontal]);
1675
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs(Box, { color, ...rest, style: styles, children: [
1676
+ header,
1677
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CardBody, { children }),
1678
+ footer && /* @__PURE__ */ jsxRuntimeExports.jsx(CardFooter, { children: require$$0.Children.only(footer) })
1679
+ ] });
1680
+ }
1681
+ function stopPropagation$1(e) {
1682
+ if (!e)
1683
+ return;
1684
+ e.stopPropagation();
1685
+ }
1686
+ const Popover = require$$0.forwardRef(({
1687
+ position,
1688
+ label,
1689
+ children,
1690
+ color = "background",
1691
+ onOpen,
1692
+ onClose,
1693
+ disabled,
1694
+ offset = {
1695
+ x: 0,
1696
+ y: 6
1697
+ },
1698
+ ...rest
1699
+ }, ref) => {
1700
+ const [open, setOpen] = require$$0.useState(false);
1701
+ const {
1702
+ refs,
1703
+ floatingStyles,
1704
+ context
1705
+ } = react.useFloating({
1706
+ placement: position,
1707
+ middleware: [react.shift(), react.flip({
1708
+ fallbackAxisSideDirection: "end"
1709
+ }), react.offset({
1710
+ mainAxis: offset.y,
1711
+ crossAxis: offset.x
1712
+ })],
1713
+ open,
1714
+ onOpenChange: setOpen,
1715
+ whileElementsMounted: react.autoUpdate
1716
+ });
1717
+ const handleFocus = (e) => {
1718
+ stopPropagation$1(e);
1719
+ setOpen(true);
1720
+ if (onOpen)
1721
+ onOpen();
1722
+ };
1723
+ const handleBlur = (e) => {
1724
+ stopPropagation$1(e);
1725
+ setOpen(false);
1726
+ if (onClose)
1727
+ onClose();
1728
+ };
1729
+ require$$0.useEffect(() => {
1730
+ if (disabled && open) {
1731
+ setOpen(false);
1732
+ }
1733
+ }, [disabled, open]);
1734
+ require$$0.useImperativeHandle(ref, () => ({
1735
+ open: handleFocus,
1736
+ close: handleBlur
1737
+ }));
1738
+ const {
1739
+ getFloatingProps,
1740
+ getReferenceProps
1741
+ } = react.useInteractions([react.useClick(context, {
1742
+ enabled: !disabled
1743
+ })]);
1744
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
1745
+ require$$0.cloneElement(require$$0.Children.only(label), {
1746
+ ref: refs.setReference,
1747
+ ...getReferenceProps({
1748
+ tabIndex: 0,
1749
+ role: "button",
1750
+ disabled,
1751
+ onClick: stopPropagation$1
1752
+ })
1753
+ }),
1754
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Portal$1, { children: open ? /* @__PURE__ */ jsxRuntimeExports.jsx(react.FloatingOverlay, { "data-testid": "visits-style-shadow", onClick: handleBlur, style: {
1755
+ zIndex: 9996
1756
+ }, children: /* @__PURE__ */ jsxRuntimeExports.jsx(react.FloatingFocusManager, { context, modal: false, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Tooltip, { role: "tooltip", ref: refs.setFloating, color, style: floatingStyles, ...getFloatingProps({
1757
+ ...rest,
1758
+ onClick: stopPropagation$1
1759
+ }), children }) }) }) : null })
1760
+ ] });
1761
+ });
1762
+ Popover.displayName = "Popover";
1763
+ const Popover$1 = Popover;
1764
+ const Tooltip = /* @__PURE__ */ styled(Box).withConfig({
1765
+ displayName: "Popover__Tooltip",
1766
+ componentId: "sc-1huajr8-0"
1767
+ })(["display:flex;box-shadow:0 1px 2px 0 rgba(0,0,0,0.05);padding:0.5rem 0;width:auto;height:auto;cursor:auto;z-index:20;"]);
1768
+ function stopPropagation(e) {
1769
+ if (!e)
1770
+ return;
1771
+ e.stopPropagation();
1772
+ }
1773
+ function Modal({
1774
+ show,
1775
+ children,
1776
+ timeout = 200,
1777
+ color = "background",
1778
+ closeModal,
1779
+ external,
1780
+ closeOnOverlay,
1781
+ closeOnEsc,
1782
+ onExited,
1783
+ ...rest
1784
+ }) {
1785
+ const exitRef = require$$0.useRef(onExited);
1786
+ const isTransMountedRef = require$$0.useRef(false);
1787
+ const id = react.useId();
1788
+ const {
1789
+ refs,
1790
+ context
1791
+ } = react.useFloating({
1792
+ open: show,
1793
+ onOpenChange: closeModal,
1794
+ nodeId: id
1795
+ });
1796
+ const {
1797
+ getFloatingProps
1798
+ } = react.useInteractions([react.useDismiss(context, {
1799
+ enabled: closeOnEsc,
1800
+ outsidePress: false,
1801
+ escapeKey: closeOnEsc
1802
+ })]);
1803
+ const {
1804
+ isMounted,
1805
+ styles
1806
+ } = react.useTransitionStyles(context, {
1807
+ duration: timeout,
1808
+ initial: {
1809
+ opacity: 0,
1810
+ transform: "scale(0.8)"
1811
+ }
1812
+ });
1813
+ require$$0.useEffect(() => {
1814
+ var _a;
1815
+ if (isTransMountedRef.current === isMounted)
1816
+ return;
1817
+ isTransMountedRef.current = isMounted;
1818
+ if (isMounted)
1819
+ return;
1820
+ (_a = exitRef.current) == null ? void 0 : _a.call(exitRef);
1821
+ }, [isMounted]);
1822
+ const handleOverlayClose = (e) => {
1823
+ if (!closeOnOverlay)
1824
+ return;
1825
+ closeModal == null ? void 0 : closeModal();
1826
+ };
1827
+ exitRef.current = onExited;
1828
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Portal$1, { children: isMounted ? /* @__PURE__ */ jsxRuntimeExports.jsx(Overlay, { lockScroll: true, "data-testid": "vs-modal-overlay", onClick: handleOverlayClose, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(Wrapper$2, { ref: refs.setFloating, role: "dialog", style: styles, onClick: stopPropagation, children: [
1829
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Box, { role: "document", color, ...getFloatingProps(rest), children }),
1830
+ external
1831
+ ] }) }) : null });
1832
+ }
1833
+ const Overlay = /* @__PURE__ */ styled(react.FloatingOverlay).withConfig({
1834
+ displayName: "Modal__Overlay",
1835
+ componentId: "sc-pb7lhx-0"
1836
+ })([" display:flex;display:grid;place-items:center;align-items:center;justify-content:center;background:", ";padding:0.85rem;z-index:9997;"], ({
1837
+ theme: theme2
1838
+ }) => theme2.backdrop);
1839
+ const Wrapper$2 = /* @__PURE__ */ styled.div.withConfig({
1840
+ displayName: "Modal__Wrapper",
1841
+ componentId: "sc-pb7lhx-1"
1842
+ })(["will-change:transform,opacity;transform-origin:center top;transition-timing-function:cubic-bezier(0.645,0.045,0.355,1);z-index:9999;"]);
1843
+ function ToastItem({
1844
+ className,
1845
+ message,
1846
+ duration = 5e3,
1847
+ clear,
1848
+ id,
1849
+ clearOnClick
1850
+ }) {
1851
+ const clearRef = require$$0.useRef(clear);
1852
+ const isPrevMountedRef = require$$0.useRef(false);
1853
+ const [open, setOpen] = require$$0.useState(false);
1854
+ const {
1855
+ context,
1856
+ refs
1857
+ } = react.useFloating({
1858
+ open,
1859
+ onOpenChange: setOpen,
1860
+ nodeId: id
1861
+ });
1862
+ const {
1863
+ isMounted,
1864
+ styles
1865
+ } = react.useTransitionStyles(context, {
1866
+ duration: 250,
1867
+ initial: {
1868
+ opacity: 0,
1869
+ transform: "scale(0.8)"
1870
+ }
1871
+ });
1872
+ require$$0.useEffect(() => setOpen(true), [id]);
1873
+ require$$0.useEffect(() => {
1874
+ var _a;
1875
+ if (isPrevMountedRef.current === isMounted)
1876
+ return;
1877
+ if (!isMounted) {
1878
+ (_a = clearRef.current) == null ? void 0 : _a.call(clearRef, id);
1879
+ }
1880
+ isPrevMountedRef.current = isMounted;
1881
+ }, [isMounted, id]);
1882
+ require$$0.useEffect(() => {
1883
+ if (!duration)
1884
+ return;
1885
+ const timeout = setTimeout(() => setOpen(false), duration);
1886
+ return () => clearTimeout(timeout);
1887
+ }, [duration]);
1888
+ const handleClickToast = require$$0.useCallback(() => {
1889
+ if (!clearOnClick)
1890
+ return;
1891
+ setOpen(false);
1892
+ }, [clearOnClick]);
1893
+ clearRef.current = clear;
1894
+ if (!isMounted)
1895
+ return null;
1896
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Item, { ref: refs.setFloating, role: "status", "data-testid": "vs-toast-item", className, style: styles, onClick: handleClickToast, children: message });
1897
+ }
1898
+ const Item = /* @__PURE__ */ styled.li.withConfig({
1899
+ displayName: "ToastItem__Item",
1900
+ componentId: "sc-193rp7r-0"
1901
+ })(["position:relative;display:flex;width:fit-content;padding:0.375em 0.75em;max-width:100%;transition-timing-function:cubic-bezier(0.645,0.045,0.355,1);"]);
1902
+ function Toast({
1903
+ toasts,
1904
+ clear,
1905
+ fixed,
1906
+ margin = "16px",
1907
+ position = "top-left"
1908
+ }) {
1909
+ const style = require$$0.useMemo(() => {
1910
+ const base = {
1911
+ position: fixed ? "fixed" : "absolute"
1912
+ };
1913
+ if (position.indexOf("top") > -1) {
1914
+ base.top = margin;
1915
+ } else if (position.indexOf("bottom") > -1) {
1916
+ base.bottom = margin;
1917
+ }
1918
+ if (position.indexOf("left") > -1) {
1919
+ base.left = margin;
1920
+ base.alignItems = "flex-start";
1921
+ } else if (position.indexOf("right") > -1) {
1922
+ base.right = margin;
1923
+ base.alignItems = "flex-end";
1924
+ } else {
1925
+ base.left = "50%";
1926
+ base.alignItems = "center";
1927
+ base.transform = "translateX(-50%)";
1928
+ }
1929
+ return base;
1930
+ }, [fixed, margin, position]);
1931
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Portal$1, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(ToastList, { style, children: toasts.map((props) => /* @__PURE__ */ require$$0.createElement(ToastItem, { ...props, key: props.id, clear })) }) });
1932
+ }
1933
+ const ToastList = /* @__PURE__ */ styled.ul.withConfig({
1934
+ displayName: "Toast__ToastList",
1935
+ componentId: "sc-8192b2-0"
1936
+ })(["display:flex;flex-direction:column;z-index:9999;pointer-events:none;overflow:hidden;li + li{margin-top:1rem;}"]);
1937
+ function getColor$1({
1938
+ theme: theme2,
1939
+ color
1940
+ }) {
1941
+ const value = !color || color === "light" ? theme2.background : theme2[color];
1942
+ return styled.css(["border-color:", ";border-right-color:", ";border-top-color:", ";"], value, theme2.border, theme2.border);
1943
+ }
1944
+ const spin = /* @__PURE__ */ styled.keyframes(["from{transform:rotate(0deg);}to{transform:rotate(359deg);}"]);
1945
+ const Spinner = /* @__PURE__ */ styled.div.withConfig({
1946
+ displayName: "Spinner",
1947
+ componentId: "sc-34g0il-0"
1948
+ })(["display:inline-block;width:", ";height:", ";margin:0;padding:0;position:relative;&:after{display:block;top:0;left:0;animation:", " 750ms infinite linear;border:", " solid;border-radius:100%;", ' content:"";height:100%;width:100%;position:absolute;}'], ({
1949
+ size
1950
+ }) => size || "100%", ({
1951
+ size
1952
+ }) => size || "100%", spin, ({
1953
+ borderSize
1954
+ }) => borderSize, getColor$1);
1955
+ Spinner.defaultProps = {
1956
+ borderSize: "2px"
1957
+ };
1958
+ const Spinner$1 = Spinner;
1959
+ function setGap(width, gap) {
1960
+ return parseInt(width.replace("px", ""), 10) - 2 * gap;
1961
+ }
1962
+ function setResponsive({
1963
+ fluid
1964
+ }) {
1965
+ if (fluid) {
1966
+ return styled.css(["padding-right:0.75rem;padding-left:0.75rem;", "{padding-right:0.5rem;padding-left:0.5rem;}"], mediaTablet);
1967
+ }
1968
+ return styled.css(["margin-right:auto;margin-left:auto;", "{max-width:", "px;}", "{max-width:", "px;}", "{max-width:", "px;}", "{max-width:", "px;}"], mediaUntilFullHD, ({
1969
+ theme: theme2
1970
+ }) => setGap(theme2.media.fullhd, theme2.gutter), mediaDesktop, ({
1971
+ theme: theme2
1972
+ }) => setGap(theme2.media.desktop, theme2.gutter), mediaTablet, ({
1973
+ theme: theme2
1974
+ }) => setGap(theme2.media.tablet, theme2.smallGutter), mediaMobile, ({
1975
+ theme: theme2
1976
+ }) => setGap(theme2.media.mobile, theme2.smallGutter));
1977
+ }
1978
+ const Container = styled.div.withConfig({
1979
+ displayName: "Container",
1980
+ componentId: "sc-1308ay5-0"
1981
+ })(["position:relative;width:100%;", ""], setResponsive);
1982
+ const Row = styled.div.withConfig({
1983
+ displayName: "Row",
1984
+ componentId: "sc-1qqbtdw-0"
1985
+ })(["display:flex;flex:0 1 auto;flex-direction:row;flex-wrap:wrap;margin:-", "px;padding:", "px;", "{margin:-", "px;padding:", "px;}"], ({
1986
+ theme: theme2
1987
+ }) => theme2.gutter / 2, ({
1988
+ theme: theme2
1989
+ }) => theme2.gutter / 2, mediaTablet, ({
1990
+ theme: theme2
1991
+ }) => theme2.smallGutter / 2, ({
1992
+ theme: theme2
1993
+ }) => theme2.smallGutter / 2);
1994
+ const sizes = ["auto", "8.3333333%", "16.666667%", "25%", "33.333333%", "41.666667%", "50%", "58.333333%", "66.666667%", "75%", "83.333333%", "91.666667%", "100%"];
1995
+ function setAutoSize({
1996
+ size,
1997
+ auto
1998
+ }) {
1999
+ if (!auto || !size)
2000
+ return void 0;
2001
+ const mobileSize = size >= 4 ? sizes[12] : sizes[Math.round(size * 3)];
2002
+ const desktopSize = size >= 8 ? sizes[12] : sizes[Math.round(size * 1.5)];
2003
+ return styled.css(["", "{flex-basis:", ";max-width:", ";}", "{flex-basis:", ";max-width:", ";}"], mediaDesktop, desktopSize, desktopSize, mediaMobile, mobileSize, mobileSize);
2004
+ }
2005
+ const Col = /* @__PURE__ */ styled.div.withConfig({
2006
+ displayName: "Col",
2007
+ componentId: "sc-16i9d04-0"
2008
+ })(["display:flex;flex:0 0 auto;flex-direction:row;flex-wrap:wrap;padding:", "px;", " ", " ", "{padding:", "px;}", ""], ({
2009
+ theme: theme2
2010
+ }) => theme2.gutter / 2, ({
2011
+ size
2012
+ }) => size ? {
2013
+ flexBasis: sizes[size],
2014
+ maxWidth: sizes[size]
2015
+ } : {
2016
+ flexGrow: 1,
2017
+ flexBasis: 0,
2018
+ maxWidth: "100%"
2019
+ }, ({
2020
+ offset
2021
+ }) => offset ? {
2022
+ marginLeft: sizes[offset]
2023
+ } : void 0, mediaTablet, ({
2024
+ theme: theme2
2025
+ }) => theme2.smallGutter / 2, setAutoSize);
2026
+ Col.defaultProps = {
2027
+ size: 0,
2028
+ offset: 0
2029
+ };
2030
+ const Col$1 = Col;
2031
+ const index$3 = styled.div.withConfig({
2032
+ displayName: "Content",
2033
+ componentId: "sc-180oh4h-0"
2034
+ })(["color:", ";line-height:1.5;li + li{margin-top:0.25em;}p,dl,ol,ul,blockquote,pre,table{&:not(:last-child){margin-bottom:1em;}}h1,h2,h3,h4,h5,h6{font-weight:600;line-height:1.125;}h1{font-size:2rem;margin-bottom:0.5em;}h2{font-size:1.75em;margin-bottom:0.5714em;&:not(:first-child){margin-top:1.1428em;}}h3{font-size:1.5em;margin-bottom:0.6666em;&:not(:first-child){margin-top:1.3333em;}}h4{font-size:1.25em;margin-bottom:0.8em;}h5{font-size:1.125em;margin-bottom:0.8888em;}h6{font-size:1em;margin-bottom:1em;}ol{list-style:decimal outside;margin-left:2em;margin-top:1em;}ul{list-style:disc outside;margin-left:2em;margin-top:1em;ul{list-style-type:circle;margin-top:0.5em;ul{list-style-type:square;}}}dd{margin-left:2em;}table{width:100%;td,th{border:1px solid ", ";border-width:0 0 1px;padding:0.5em 0.75em;vertical-align:top;}th{color:", ";text-align:left;}thead{td,th{border-width:0 0 2px;color:", ";}}tfoot{td,th{border-width:2px 0 0;color:", ";}}tbody > tr:last-child{td,th{border-bottom-width:0;}}}"], ({
2035
+ theme: theme2
2036
+ }) => theme2.text, ({
2037
+ theme: theme2
2038
+ }) => theme2.border, ({
2039
+ theme: theme2
2040
+ }) => theme2.text, ({
2041
+ theme: theme2
2042
+ }) => theme2.text, ({
2043
+ theme: theme2
2044
+ }) => theme2.text);
2045
+ const setAnimation = ({
2046
+ theme: theme2
2047
+ }) => styled.keyframes(["0%{background-color:", ";}50%{background-color:", ";}100%{background-color:", ";}"], theme2.greyLighter, theme2.grey, theme2.greyLighter);
2048
+ const index$2 = styled.span.withConfig({
2049
+ displayName: "Placeholder",
2050
+ componentId: "sc-1091c0n-0"
2051
+ })(["display:inline-block;height:1rem;width:100%;animation:", " 3.5s ease infinite;border-radius:", ";opacity:0.125;"], setAnimation, ({
2052
+ theme: theme2
2053
+ }) => theme2.radius);
2054
+ function setColor({
2055
+ theme: theme2,
2056
+ color,
2057
+ outline,
2058
+ disabled
2059
+ }) {
2060
+ if (disabled) {
2061
+ return disabledColor(theme2);
2062
+ }
2063
+ if (!color) {
2064
+ return styled.css(["border-color:", ";color:", ";&:hover{border-color:", ";}&:active{border-color:", ";}"], theme2.border, theme2.text, theme2.borderHover, theme2.borderActive);
2065
+ }
2066
+ const target = theme2[color] || color;
2067
+ const invertColor = findColorInvert(theme2, target);
2068
+ if (outline) {
2069
+ return styled.css(["background-color:transparent;border-color:", ";color:", ";&:hover{background-color:", ";color:", ";}&:active{background-color:", ";}&:focus:not(:active){", "}"], target, target, target, invertColor, polished.darken(0.1, target), boxShadow("0.1rem", target, 0.5));
2070
+ }
2071
+ return styled.css(["background-color:", ";border-color:transparent;color:", ";box-shadow:none;&:hover{color:", ";background-color:", ";}&:active{background-color:", ";}&:focus:not(:active){", "}"], target, invertColor, invertColor, polished.darken(0.05, target), polished.darken(0.1, target), boxShadow("0.1rem", target, 0.5));
2072
+ }
2073
+ const Button = styled.button.withConfig({
2074
+ displayName: "Button",
2075
+ componentId: "sc-f6cc58-0"
2076
+ })(["position:relative;outline:none;appearance:none;box-sizing:border-box;display:inline-block;text-align:center;white-space:nowrap;cursor:pointer;justify-content:center;vertical-align:middle;user-select:none;background:transparent;border:1px solid transparent;border-radius:", ";padding:", ";line-height:", ";", " ", ""], ({
2077
+ round,
2078
+ theme: theme2
2079
+ }) => round ? "2456189px" : theme2.radius, ({
2080
+ icon
2081
+ }) => icon ? "0.375em" : "0.375em 0.75em", ({
2082
+ icon
2083
+ }) => icon ? 1 : 1.5, setColor, ({
2084
+ size
2085
+ }) => setSize("font-size", size));
2086
+ const TextButton = styled.button.withConfig({
2087
+ displayName: "TextButton",
2088
+ componentId: "sc-14wzat7-0"
2089
+ })(["background-color:transparent;border:none;cursor:pointer;display:inline;margin:0;border-radius:", ";padding:", ";line-height:", ";color:", ";", " &:hover,&:focus{", " ", "}&:focus,&:active{outline:none;}&:active{", "}", ""], ({
2090
+ round,
2091
+ theme: theme2
2092
+ }) => round ? "2456189px" : theme2.radius, ({
2093
+ pure,
2094
+ icon
2095
+ }) => {
2096
+ if (pure)
2097
+ return "0";
2098
+ if (icon)
2099
+ return "0.375em";
2100
+ return "0.375em 0.75em";
2101
+ }, ({
2102
+ icon
2103
+ }) => icon ? 1 : 1.5, ({
2104
+ color,
2105
+ theme: theme2
2106
+ }) => color ? theme2[color] : theme2.text, ({
2107
+ size
2108
+ }) => setSize("font-size", size), ({
2109
+ underline
2110
+ }) => underline ? {
2111
+ textDecoration: "underline"
2112
+ } : void 0, ({
2113
+ pure,
2114
+ theme: theme2,
2115
+ color
2116
+ }) => pure ? void 0 : {
2117
+ background: polished.transparentize(0.9, color ? theme2[color] || theme2.text : theme2.text)
2118
+ }, ({
2119
+ pure,
2120
+ theme: theme2,
2121
+ color
2122
+ }) => pure ? void 0 : {
2123
+ background: polished.transparentize(0.8, color ? theme2[color] || theme2.text : theme2.text)
2124
+ }, ({
2125
+ disabled,
2126
+ theme: theme2
2127
+ }) => disabled ? styled.css(["color:", ";cursor:default;&:hover{background:transparent;text-decoration:none;}"], polished.transparentize(0.75, theme2.textDark)) : void 0);
2128
+ const ButtonGroup = styled.div.withConfig({
2129
+ displayName: "ButtonGroup",
2130
+ componentId: "sc-b4d11t-0"
2131
+ })(["display:inline-block;&:not(:last-child){margin-right:0.5rem;}", "{margin:0;border-radius:0;&:hover{z-index:1;}&:first-child{border-top-left-radius:4px;border-bottom-left-radius:4px;}&:not(:first-child){margin-left:-1px;}&:last-child{border-top-right-radius:4px;border-bottom-right-radius:4px;}}"], Button);
2132
+ const stripedStyle = /* @__PURE__ */ styled.css(["tbody > tr:nth-child(odd){background-color:rgba(0,0,0,0.02);}"]);
2133
+ const hoverStyle = /* @__PURE__ */ styled.css(["tbody > tr:hover{background-color:rgba(0,0,0,0.04);}"]);
2134
+ const index$1 = styled.table.withConfig({
2135
+ displayName: "Table",
2136
+ componentId: "sc-1x2nuaf-0"
2137
+ })(["", " max-width:100%;margin-bottom:1rem;background-color:transparent;-webkit-overflow-scrolling:touch;-ms-overflow-style:-ms-autohiding-scrollbar;td,th{vertical-align:top;padding:0.75rem;", " border-width:0 0 1px;}th{white-space:nowrap;}", " ", " ", ""], ({
2138
+ full
2139
+ }) => full ? styled.css(["width:100%;"]) : void 0, ({
2140
+ theme: theme2,
2141
+ bordered
2142
+ }) => bordered ? styled.css(["border:1px solid ", ";"], theme2.border) : void 0, ({
2143
+ striped
2144
+ }) => striped ? stripedStyle : void 0, ({
2145
+ hover
2146
+ }) => hover ? hoverStyle : void 0, ({
2147
+ headerStyle
2148
+ }) => headerStyle ? styled.css(["th{", "}"], headerStyle) : void 0);
2149
+ function Progress({
2150
+ value,
2151
+ max,
2152
+ color = "primary",
2153
+ ...rest
2154
+ }) {
2155
+ const percent = require$$0.useMemo(() => value ? Math.round(value / max * 100) : 0, [value, max]);
2156
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Wrapper$1, { color, ...rest, children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { role: "progressbar", "aria-label": "progress", className: value !== max ? "in-progress" : void 0, style: {
2157
+ width: `${percent > 100 ? 100 : percent}%`
2158
+ } }) });
2159
+ }
2160
+ const Wrapper$1 = /* @__PURE__ */ styled.div.withConfig({
2161
+ displayName: "Progress__Wrapper",
2162
+ componentId: "sc-807hhi-0"
2163
+ })(["position:relative;display:block;width:100%;border-radius:", ";background-color:", ";", ' & > div[role="progressbar"]{position:relative;height:100%;border-radius:', ";background-color:", ";&.in-progress{border-bottom-right-radius:0;border-top-right-radius:0;}will-change:width;transition-property:width;transition-duration:350ms;transition-timing-function:cubic-bezier(0.645,0.045,0.355,1);z-index:1;}"], ({
2164
+ theme: theme2
2165
+ }) => theme2.radius, ({
2166
+ theme: theme2
2167
+ }) => theme2.background, ({
2168
+ size,
2169
+ height
2170
+ }) => height || setSize("height", size), ({
2171
+ theme: theme2
2172
+ }) => theme2.radius, ({
2173
+ color,
2174
+ theme: theme2
2175
+ }) => theme2[color] || color);
2176
+ const index = styled.hr.withConfig({
2177
+ displayName: "Divider",
2178
+ componentId: "sc-13lwfus-0"
2179
+ })(["border:none;height:1px;margin:0;flex-shrink:0;background-color:", ";"], ({
2180
+ theme: theme2
2181
+ }) => theme2.border);
2182
+ function Close(props) {
2183
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "30", height: "30", viewBox: "0 0 30 30", ...props, children: /* @__PURE__ */ jsxRuntimeExports.jsxs("g", { fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", children: [
2184
+ /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M25.999 26l-12.5-12.5L25.999 1" }),
2185
+ /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M1 26l12.5-12.5L1 1" })
2186
+ ] }) });
2187
+ }
2188
+ function getColor(theme2, color) {
2189
+ return !color || color === "light" ? theme2.background : theme2[color];
2190
+ }
2191
+ const closeCss = /* @__PURE__ */ styled.css(["padding-right:1.625rem;", "{display:flex;position:absolute;align-items:center;color:inherit;top:0;right:0;bottom:0;padding:0 0.35rem;svg{width:0.625rem;height:0.625rem;}&:hover{background-color:rgba(0,0,0,0.15);}}"], TextButton);
2192
+ const Wrapper = /* @__PURE__ */ styled.div.withConfig({
2193
+ displayName: "Tag__Wrapper",
2194
+ componentId: "sc-10pvl04-0"
2195
+ })(["display:inline-flex;position:relative;font-size:0.75rem;cursor:default;padding:0.325rem 0.5rem;align-items:center;justify-content:center;height:1.5rem;border-radius:", ";white-space:nowrap;", " &:not(:last-child){margin-right:0.5rem;}", "{border-radius:0;border-top-right-radius:", ";border-bottom-right-radius:", ";}", ""], ({
2196
+ theme: theme2,
2197
+ round
2198
+ }) => round ? "50rem" : theme2.radius, ({
2199
+ color,
2200
+ theme: theme2
2201
+ }) => {
2202
+ const target = getColor(theme2, color);
2203
+ const invertColor = findColorInvert(theme2, target);
2204
+ return styled.css(["color:", ";background-color:", ";a,span{color:", ";}"], invertColor, target, invertColor);
2205
+ }, TextButton, ({
2206
+ theme: theme2,
2207
+ round
2208
+ }) => round ? "50rem" : theme2.radius, ({
2209
+ theme: theme2,
2210
+ round
2211
+ }) => round ? "50rem" : theme2.radius, ({
2212
+ close
2213
+ }) => close ? closeCss : void 0);
2214
+ function Tag({
2215
+ children,
2216
+ onClose,
2217
+ ...rest
2218
+ }) {
2219
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs(Wrapper, { close: !!onClose, ...rest, children: [
2220
+ children,
2221
+ onClose && /* @__PURE__ */ jsxRuntimeExports.jsx(TextButton, { onClick: onClose, pure: true, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Close, {}) })
2222
+ ] });
2223
+ }
2224
+ function Approved(props) {
2225
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "30", height: "30", viewBox: "0 0 30 30", ...props, children: [
2226
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("g", { fill: "none", children: [
2227
+ /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M15 29c-3.74 0-7.255-1.456-9.9-4.1A13.908 13.908 0 011 15c0-3.74 1.456-7.255 4.1-9.9A13.908 13.908 0 0115 1c3.74 0 7.255 1.456 9.9 4.1A13.908 13.908 0 0129 15c0 3.74-1.456 7.255-4.1 9.9A13.908 13.908 0 0115 29z" }),
2228
+ /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M15 2a12.915 12.915 0 00-9.192 3.808A12.915 12.915 0 002 15c0 3.472 1.352 6.737 3.808 9.192A12.915 12.915 0 0015 28c3.472 0 6.737-1.352 9.192-3.808A12.915 12.915 0 0028 15c0-3.472-1.352-6.737-3.808-9.192A12.915 12.915 0 0015 2m0-2c8.284 0 15 6.716 15 15 0 8.284-6.716 15-15 15-8.284 0-15-6.716-15-15C0 6.716 6.716 0 15 0z", fill: "currentColor" })
2229
+ ] }),
2230
+ /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M11.515 18.466l-3.878-3.985L6 16.005l5.59 5.59 11.562-11.533-1.7-1.595z", fill: "currentColor" })
2231
+ ] });
2232
+ }
2233
+ function ChevronLeftRound(props) {
2234
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "30", height: "30", viewBox: "0 0 30 30", ...props, children: [
2235
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("g", { fill: "none", children: [
2236
+ /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M15 29c-3.74 0-7.255-1.456-9.9-4.1A13.908 13.908 0 011 15c0-3.74 1.456-7.255 4.1-9.9A13.908 13.908 0 0115 1c3.74 0 7.255 1.456 9.9 4.1A13.908 13.908 0 0129 15c0 3.74-1.456 7.255-4.1 9.9A13.908 13.908 0 0115 29z" }),
2237
+ /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M15 2a12.915 12.915 0 00-9.192 3.808A12.915 12.915 0 002 15c0 3.472 1.352 6.737 3.808 9.192A12.915 12.915 0 0015 28c3.472 0 6.737-1.352 9.192-3.808A12.915 12.915 0 0028 15c0-3.472-1.352-6.737-3.808-9.192A12.915 12.915 0 0015 2m0-2c8.284 0 15 6.716 15 15 0 8.284-6.716 15-15 15-8.284 0-15-6.716-15-15C0 6.716 6.716 0 15 0z", fill: "currentColor" })
2238
+ ] }),
2239
+ /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M18.066 8.5l-7.567 6.731 7.567 6.2", fill: "none", stroke: "currentColor", strokeWidth: "2" })
2240
+ ] });
2241
+ }
2242
+ function ChevronRightRound(props) {
2243
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "30", height: "30", viewBox: "0 0 30 30", ...props, children: [
2244
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("g", { fill: "none", children: [
2245
+ /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M15 1c3.74 0 7.255 1.456 9.9 4.1A13.908 13.908 0 0129 15c0 3.74-1.456 7.255-4.1 9.9A13.908 13.908 0 0115 29c-3.74 0-7.255-1.456-9.9-4.1A13.908 13.908 0 011 15c0-3.74 1.456-7.255 4.1-9.9A13.908 13.908 0 0115 1z" }),
2246
+ /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M15 28c3.472 0 6.737-1.352 9.192-3.808A12.915 12.915 0 0028 15c0-3.472-1.352-6.737-3.808-9.192A12.915 12.915 0 0015 2a12.915 12.915 0 00-9.192 3.808A12.915 12.915 0 002 15c0 3.472 1.352 6.737 3.808 9.192A12.915 12.915 0 0015 28m0 2C6.716 30 0 23.284 0 15 0 6.716 6.716 0 15 0c8.284 0 15 6.716 15 15 0 8.284-6.716 15-15 15z", fill: "currentColor" })
2247
+ ] }),
2248
+ /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M11.934 21.5l7.567-6.731-7.567-6.2", fill: "none", stroke: "currentColor", strokeWidth: "2" })
2249
+ ] });
2250
+ }
2251
+ function FileRound(props) {
2252
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "30", height: "30", viewBox: "0 0 30 30", ...props, children: [
2253
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("g", { fill: "none", children: [
2254
+ /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M15 29c-3.74 0-7.255-1.456-9.9-4.1A13.908 13.908 0 011 15c0-3.74 1.456-7.255 4.1-9.9A13.908 13.908 0 0115 1c3.74 0 7.255 1.456 9.9 4.1A13.908 13.908 0 0129 15c0 3.74-1.456 7.255-4.1 9.9A13.908 13.908 0 0115 29z" }),
2255
+ /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M15 2a12.915 12.915 0 00-9.192 3.808A12.915 12.915 0 002 15c0 3.472 1.352 6.737 3.808 9.192A12.915 12.915 0 0015 28c3.472 0 6.737-1.352 9.192-3.808A12.915 12.915 0 0028 15c0-3.472-1.352-6.737-3.808-9.192A12.915 12.915 0 0015 2m0-2c8.284 0 15 6.716 15 15 0 8.284-6.716 15-15 15-8.284 0-15-6.716-15-15C0 6.716 6.716 0 15 0z", fill: "currentColor" })
2256
+ ] }),
2257
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("g", { transform: "translate(9 7)", fill: "none", stroke: "currentColor", strokeWidth: "2", children: [
2258
+ /* @__PURE__ */ jsxRuntimeExports.jsx("rect", { width: "12", height: "16", rx: "1", stroke: "none" }),
2259
+ /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M1 1h10v14H1z" })
2260
+ ] }),
2261
+ /* @__PURE__ */ jsxRuntimeExports.jsx("path", { fill: "currentColor", d: "M13 11h4v1.3h-4zM13 14h4v1.3h-4zM13 17h4v1.3h-4z" })
2262
+ ] });
2263
+ }
2264
+ function Pencil(props) {
2265
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "17.796", height: "17.908", viewBox: "0 0 17.796 17.908", ...props, children: /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M1.254 12.674L.5 17.408l4.726-.8L17.3 4.472 13.281.5zM1.375 12.766l3.851 3.838M10.949 2.959l3.836 3.801", fill: "none", stroke: "currentColor" }) });
2266
+ }
2267
+ function PencilSimple(props) {
2268
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("svg", { width: "15", height: "15", viewBox: "0 0 15 15", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M9.97.22a.75.75 0 011.06 0l3.75 3.75a.75.75 0 010 1.06l-9.75 9.75a.75.75 0 01-.53.22H.75a.75.75 0 01-.75-.75V10.5a.75.75 0 01.22-.53L9.97.22zM1.5 10.81v2.69h2.69l9-9-2.69-2.69-9 9z", fill: "currentColor" }) });
2269
+ }
2270
+ function User(props) {
2271
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "30", height: "30", viewBox: "0 0 30 30", ...props, children: [
2272
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("g", { fill: "none", stroke: "currentColor", strokeWidth: "2", children: [
2273
+ /* @__PURE__ */ jsxRuntimeExports.jsx("circle", { cx: "15", cy: "15", r: "15", stroke: "none" }),
2274
+ /* @__PURE__ */ jsxRuntimeExports.jsx("circle", { cx: "15", cy: "15", r: "14" })
2275
+ ] }),
2276
+ /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M8 23a6.018 6.018 0 016-6h2a6.018 6.018 0 016 6zm2.6-2h8.9a4.033 4.033 0 00-3.5-2h-1.9a4.035 4.035 0 00-3.5 2zm.4-9v-1a4.012 4.012 0 014-4 4.012 4.012 0 014 4v1a4.012 4.012 0 01-4 4 4.012 4.012 0 01-4-4zm2-1v1a2.006 2.006 0 002 2 2.006 2.006 0 002-2v-1a2.006 2.006 0 00-2-2 2.006 2.006 0 00-2 2z", fill: "currentColor" })
2277
+ ] });
2278
+ }
2279
+ function Refresh(props) {
2280
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "30", height: "30", viewBox: "0 0 30 30", ...props, children: /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M15.065 0A15.069 15.069 0 00.142 13.105a1.256 1.256 0 102.478.406c0-.027.008-.055.01-.082a12.52 12.52 0 0121.3-7.226l-2.584 2.584 7.532 1.255-1.255-7.532-1.92 1.92A15 15 0 0015.065 0zm13.7 15.589A1.255 1.255 0 0027.5 16.7a12.512 12.512 0 01-21.893 6.569l1.927-1.927L0 20.086l1.255 7.532 2.572-2.572a15.02 15.02 0 0026.16-8.023 1.256 1.256 0 00-1.064-1.423 1.273 1.273 0 00-.16-.011z", fill: "currentColor" }) });
2281
+ }
2282
+ function Plus(props) {
2283
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("svg", { width: "21", height: "21", viewBox: "0 0 21 21", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M9 0v9H0v3h9v9h3v-9h9V9h-9V0H9z", fill: "currentColor" }) });
2284
+ }
2285
+ const theme = {
2286
+ fontFamily: "-apple-system BlinkMacSystemFont, Meiryo, system-ui, sans-serif",
2287
+ fontSize: "16px",
2288
+ gutter: 24,
2289
+ smallGutter: 16,
2290
+ media: {
2291
+ mobile: "576px",
2292
+ tablet: "769px",
2293
+ desktop: "960px",
2294
+ fullhd: "1344px"
2295
+ },
2296
+ radius: "4px",
2297
+ timeout: 250,
2298
+ formPadding: "0.75rem 0.625rem",
2299
+ primary: "#37B151",
2300
+ link: "#578ba9",
2301
+ info: "#209cee",
2302
+ success: "#0fa886",
2303
+ warning: "#f2b541",
2304
+ danger: "#f3575a",
2305
+ dark: "#363636",
2306
+ light: "#9b9b9b",
2307
+ black: "#0a0a0a",
2308
+ blackBis: "#121212",
2309
+ blackTer: "#242424",
2310
+ white: "#ffffff",
2311
+ whiteBis: "#fafafa",
2312
+ whiteTer: "#f5f5f5",
2313
+ grey: "#7a7a7a",
2314
+ greyLight: "#9b9b9b",
2315
+ greyLighter: "#dbdbdb",
2316
+ text: "#4a4a4a",
2317
+ textDark: "#4a4a4a",
2318
+ textLight: "#7a7a7a",
2319
+ textStrong: "#4a4a4a",
2320
+ background: "#f5f5f5",
2321
+ border: "#dbdbdb",
2322
+ borderHover: "#9b9b9b",
2323
+ borderActive: "#4a4a4a",
2324
+ placeholder: "#7a7a7a",
2325
+ backdrop: "rgba(10,10,10,0.25)",
2326
+ responsive: true
2327
+ };
2328
+ const theme$1 = theme;
2329
+ /*! based on normalize.css v8.0.0 | MIT License | github.com/necolas/normalize.css */
2330
+ const normalized = /* @__PURE__ */ styled.css(["*,::after,::before{box-sizing:border-box;}html{line-height:1.15;-webkit-text-size-adjust:100%;-ms-overflow-style:scrollbar;}body{margin:0;font-family:", ";font-size:", ";text-align:left;}h1{font-size:2em;margin:.67em 0;}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace,monospace;font-size:1em;}a{background-color:transparent;color:", ';}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted;}b,strong{font-weight:bolder;}code,kbd,samp{font-family:monospace,monospace;font-size:1em;}small{font-size:80%;}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline;}sub{bottom:-.25em;}sup{top:-.5em;}img{border-style:none;}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible;}button,select{text-transform:none;}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0;}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText;}input[type=date],input[type=time],input[type=datetime-local],input[type=month]{-webkit-appearance:listbox;}fieldset{padding:.35em .75em .625em;}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline;resize:vertical;}textarea{overflow:auto;}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0;}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto;}[type=search]{-webkit-appearance:textfield;outline-offset:-2px;}[type=search]::-webkit-search-decoration{-webkit-appearance:none;}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block;}summary{display:list-item;}template{display:none;}[hidden]{display:none;}blockquote,body,dd,dl,dt,fieldset,figure,h1,h2,h3,h4,h5,h6,hr,html,iframe,legend,li,ol,p,pre,textarea,ul{margin:0;padding:0;}button{font-size:inherit;}article,aside,figure,footer,header,hgroup,section{display:block;}input[type="checkbox"],input[type="radio"]{box-sizing:border-box;padding:0;}a{cursor:pointer;text-decoration:none;color:#3273dc;&:hover{color:currentColor;}}img{vertical-align:middle;border-style:none;}svg{overflow:hidden;vertical-align:middle;}small{font-size:.875em;}span{font-style:inherit;font-weight:inherit;}strong{color:#363636;font-weight:700;}table{border-collapse:collapse;border-spacing:0;}th{text-align:inherit;}ul{list-style-type:none;}'], ({
2331
+ theme: theme2
2332
+ }) => theme2 ? theme2.fontFamily : "sans-serif", ({
2333
+ theme: theme2
2334
+ }) => theme2 ? theme2.fontSize : "16px", ({
2335
+ theme: theme2
2336
+ }) => theme2.link);
2337
+ const normalized$1 = normalized;
2338
+ exports.Accordion = Accordion;
2339
+ exports.AppBar = AppBar;
2340
+ exports.Box = Box;
2341
+ exports.Button = Button;
2342
+ exports.ButtonGroup = ButtonGroup;
2343
+ exports.Card = Card;
2344
+ exports.Checkbox = Checkbox$1;
2345
+ exports.Col = Col$1;
2346
+ exports.Container = Container;
2347
+ exports.Content = index$3;
2348
+ exports.Divider = index;
2349
+ exports.Field = Field;
2350
+ exports.IconApproved = Approved;
2351
+ exports.IconArrowDown = ChevronDown;
2352
+ exports.IconChevronLeftRound = ChevronLeftRound;
2353
+ exports.IconChevronRightRound = ChevronRightRound;
2354
+ exports.IconClose = Close;
2355
+ exports.IconFileRound = FileRound;
2356
+ exports.IconPencil = Pencil;
2357
+ exports.IconPencilSimple = PencilSimple;
2358
+ exports.IconPlus = Plus;
2359
+ exports.IconRefresh = Refresh;
2360
+ exports.IconUser = User;
2361
+ exports.Modal = Modal;
2362
+ exports.Placeholder = index$2;
2363
+ exports.Popover = Popover$1;
2364
+ exports.Portal = Portal$1;
2365
+ exports.Progress = Progress;
2366
+ exports.Radio = index$4;
2367
+ exports.Row = Row;
2368
+ exports.Select = index$5;
2369
+ exports.Spinner = Spinner$1;
2370
+ exports.Switch = Switch$1;
2371
+ exports.Table = index$1;
2372
+ exports.Tag = Tag;
2373
+ exports.TextButton = TextButton;
2374
+ exports.TextInput = TextInput$1;
2375
+ exports.Textarea = Textarea$1;
2376
+ exports.Toast = Toast;
2377
+ exports.Tooltip = Tooltip$1;
2378
+ exports.arrow = Arrow;
2379
+ exports.boxShadow = boxShadow;
2380
+ exports.defaultTheme = theme$1;
2381
+ exports.findColorInvert = findColorInvert;
2382
+ exports.hambuger = hamburger;
2383
+ exports.mediaDesktop = mediaDesktop;
2384
+ exports.mediaFullHD = mediaFullHD;
2385
+ exports.mediaMobile = mediaMobile;
2386
+ exports.mediaTablet = mediaTablet;
2387
+ exports.mediaUntilFullHD = mediaUntilFullHD;
2388
+ exports.normalizeStyle = normalized$1;
2389
+ exports.setSize = setSize;