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