visits-style 1.4.0 → 1.4.1

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