@companycam/slab-web 0.0.23-beta.19 → 0.0.23-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.mjs DELETED
@@ -1,2312 +0,0 @@
1
- import { jsx as h, jsxs as O } from "react/jsx-runtime";
2
- import ge, { useRef as ln, useDebugValue as ut, createElement as dn, useContext as un } from "react";
3
- var P = function() {
4
- return P = Object.assign || function(t) {
5
- for (var n, r = 1, o = arguments.length; r < o; r++) {
6
- n = arguments[r];
7
- for (var s in n)
8
- Object.prototype.hasOwnProperty.call(n, s) && (t[s] = n[s]);
9
- }
10
- return t;
11
- }, P.apply(this, arguments);
12
- };
13
- function Q(e, t, n) {
14
- if (n || arguments.length === 2)
15
- for (var r = 0, o = t.length, s; r < o; r++)
16
- (s || !(r in t)) && (s || (s = Array.prototype.slice.call(t, 0, r)), s[r] = t[r]);
17
- return e.concat(s || Array.prototype.slice.call(t));
18
- }
19
- function pn(e) {
20
- var t = /* @__PURE__ */ Object.create(null);
21
- return function(n) {
22
- return t[n] === void 0 && (t[n] = e(n)), t[n];
23
- };
24
- }
25
- var _n = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/, fn = /* @__PURE__ */ pn(
26
- function(e) {
27
- return _n.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91;
28
- }
29
- /* Z+1 */
30
- ), w = "-ms-", he = "-moz-", b = "-webkit-", Tt = "comm", Ne = "rule", rt = "decl", hn = "@import", Pt = "@keyframes", gn = "@layer", mn = Math.abs, ot = String.fromCharCode, Ye = Object.assign;
31
- function yn(e, t) {
32
- return A(e, 0) ^ 45 ? (((t << 2 ^ A(e, 0)) << 2 ^ A(e, 1)) << 2 ^ A(e, 2)) << 2 ^ A(e, 3) : 0;
33
- }
34
- function Ot(e) {
35
- return e.trim();
36
- }
37
- function B(e, t) {
38
- return (e = t.exec(e)) ? e[0] : e;
39
- }
40
- function _(e, t, n) {
41
- return e.replace(t, n);
42
- }
43
- function $e(e, t) {
44
- return e.indexOf(t);
45
- }
46
- function A(e, t) {
47
- return e.charCodeAt(t) | 0;
48
- }
49
- function oe(e, t, n) {
50
- return e.slice(t, n);
51
- }
52
- function L(e) {
53
- return e.length;
54
- }
55
- function Rt(e) {
56
- return e.length;
57
- }
58
- function fe(e, t) {
59
- return t.push(e), e;
60
- }
61
- function bn(e, t) {
62
- return e.map(t).join("");
63
- }
64
- function pt(e, t) {
65
- return e.filter(function(n) {
66
- return !B(n, t);
67
- });
68
- }
69
- var Te = 1, se = 1, Dt = 0, D = 0, I = 0, le = "";
70
- function Pe(e, t, n, r, o, s, i, c) {
71
- return { value: e, root: t, parent: n, type: r, props: o, children: s, line: Te, column: se, length: i, return: "", siblings: c };
72
- }
73
- function V(e, t) {
74
- return Ye(Pe("", null, null, "", null, null, 0, e.siblings), e, { length: -e.length }, t);
75
- }
76
- function ne(e) {
77
- for (; e.root; )
78
- e = V(e.root, { children: [e] });
79
- fe(e, e.siblings);
80
- }
81
- function vn() {
82
- return I;
83
- }
84
- function xn() {
85
- return I = D > 0 ? A(le, --D) : 0, se--, I === 10 && (se = 1, Te--), I;
86
- }
87
- function M() {
88
- return I = D < Dt ? A(le, D++) : 0, se++, I === 10 && (se = 1, Te++), I;
89
- }
90
- function X() {
91
- return A(le, D);
92
- }
93
- function Se() {
94
- return D;
95
- }
96
- function Oe(e, t) {
97
- return oe(le, e, t);
98
- }
99
- function Ue(e) {
100
- switch (e) {
101
- case 0:
102
- case 9:
103
- case 10:
104
- case 13:
105
- case 32:
106
- return 5;
107
- case 33:
108
- case 43:
109
- case 44:
110
- case 47:
111
- case 62:
112
- case 64:
113
- case 126:
114
- case 59:
115
- case 123:
116
- case 125:
117
- return 4;
118
- case 58:
119
- return 3;
120
- case 34:
121
- case 39:
122
- case 40:
123
- case 91:
124
- return 2;
125
- case 41:
126
- case 93:
127
- return 1;
128
- }
129
- return 0;
130
- }
131
- function wn(e) {
132
- return Te = se = 1, Dt = L(le = e), D = 0, [];
133
- }
134
- function kn(e) {
135
- return le = "", e;
136
- }
137
- function Be(e) {
138
- return Ot(Oe(D - 1, We(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
139
- }
140
- function $n(e) {
141
- for (; (I = X()) && I < 33; )
142
- M();
143
- return Ue(e) > 2 || Ue(I) > 3 ? "" : " ";
144
- }
145
- function Sn(e, t) {
146
- for (; --t && M() && !(I < 48 || I > 102 || I > 57 && I < 65 || I > 70 && I < 97); )
147
- ;
148
- return Oe(e, Se() + (t < 6 && X() == 32 && M() == 32));
149
- }
150
- function We(e) {
151
- for (; M(); )
152
- switch (I) {
153
- case e:
154
- return D;
155
- case 34:
156
- case 39:
157
- e !== 34 && e !== 39 && We(I);
158
- break;
159
- case 40:
160
- e === 41 && We(e);
161
- break;
162
- case 92:
163
- M();
164
- break;
165
- }
166
- return D;
167
- }
168
- function zn(e, t) {
169
- for (; M() && e + I !== 47 + 10; )
170
- if (e + I === 42 + 42 && X() === 47)
171
- break;
172
- return "/*" + Oe(t, D - 1) + "*" + ot(e === 47 ? e : M());
173
- }
174
- function Cn(e) {
175
- for (; !Ue(X()); )
176
- M();
177
- return Oe(e, D);
178
- }
179
- function En(e) {
180
- return kn(ze("", null, null, null, [""], e = wn(e), 0, [0], e));
181
- }
182
- function ze(e, t, n, r, o, s, i, c, a) {
183
- for (var l = 0, p = 0, d = i, m = 0, g = 0, v = 0, $ = 1, N = 1, z = 1, C = 0, x = "", S = o, E = s, y = r, f = x; N; )
184
- switch (v = C, C = M()) {
185
- case 40:
186
- if (v != 108 && A(f, d - 1) == 58) {
187
- $e(f += _(Be(C), "&", "&\f"), "&\f") != -1 && (z = -1);
188
- break;
189
- }
190
- case 34:
191
- case 39:
192
- case 91:
193
- f += Be(C);
194
- break;
195
- case 9:
196
- case 10:
197
- case 13:
198
- case 32:
199
- f += $n(v);
200
- break;
201
- case 92:
202
- f += Sn(Se() - 1, 7);
203
- continue;
204
- case 47:
205
- switch (X()) {
206
- case 42:
207
- case 47:
208
- fe(In(zn(M(), Se()), t, n, a), a);
209
- break;
210
- default:
211
- f += "/";
212
- }
213
- break;
214
- case 123 * $:
215
- c[l++] = L(f) * z;
216
- case 125 * $:
217
- case 59:
218
- case 0:
219
- switch (C) {
220
- case 0:
221
- case 125:
222
- N = 0;
223
- case 59 + p:
224
- z == -1 && (f = _(f, /\f/g, "")), g > 0 && L(f) - d && fe(g > 32 ? ft(f + ";", r, n, d - 1, a) : ft(_(f, " ", "") + ";", r, n, d - 2, a), a);
225
- break;
226
- case 59:
227
- f += ";";
228
- default:
229
- if (fe(y = _t(f, t, n, l, p, o, c, x, S = [], E = [], d, s), s), C === 123)
230
- if (p === 0)
231
- ze(f, t, y, y, S, s, d, c, E);
232
- else
233
- switch (m === 99 && A(f, 3) === 110 ? 100 : m) {
234
- case 100:
235
- case 108:
236
- case 109:
237
- case 115:
238
- ze(e, y, y, r && fe(_t(e, y, y, 0, 0, o, c, x, o, S = [], d, E), E), o, E, d, c, r ? S : E);
239
- break;
240
- default:
241
- ze(f, y, y, y, [""], E, 0, c, E);
242
- }
243
- }
244
- l = p = g = 0, $ = z = 1, x = f = "", d = i;
245
- break;
246
- case 58:
247
- d = 1 + L(f), g = v;
248
- default:
249
- if ($ < 1) {
250
- if (C == 123)
251
- --$;
252
- else if (C == 125 && $++ == 0 && xn() == 125)
253
- continue;
254
- }
255
- switch (f += ot(C), C * $) {
256
- case 38:
257
- z = p > 0 ? 1 : (f += "\f", -1);
258
- break;
259
- case 44:
260
- c[l++] = (L(f) - 1) * z, z = 1;
261
- break;
262
- case 64:
263
- X() === 45 && (f += Be(M())), m = X(), p = d = L(x = f += Cn(Se())), C++;
264
- break;
265
- case 45:
266
- v === 45 && L(f) == 2 && ($ = 0);
267
- }
268
- }
269
- return s;
270
- }
271
- function _t(e, t, n, r, o, s, i, c, a, l, p, d) {
272
- for (var m = o - 1, g = o === 0 ? s : [""], v = Rt(g), $ = 0, N = 0, z = 0; $ < r; ++$)
273
- for (var C = 0, x = oe(e, m + 1, m = mn(N = i[$])), S = e; C < v; ++C)
274
- (S = Ot(N > 0 ? g[C] + " " + x : _(x, /&\f/g, g[C]))) && (a[z++] = S);
275
- return Pe(e, t, n, o === 0 ? Ne : c, a, l, p, d);
276
- }
277
- function In(e, t, n, r) {
278
- return Pe(e, t, n, Tt, ot(vn()), oe(e, 2, -2), 0, r);
279
- }
280
- function ft(e, t, n, r, o) {
281
- return Pe(e, t, n, rt, oe(e, 0, r), oe(e, r + 1, -1), r, o);
282
- }
283
- function jt(e, t, n) {
284
- switch (yn(e, t)) {
285
- case 5103:
286
- return b + "print-" + e + e;
287
- case 5737:
288
- case 4201:
289
- case 3177:
290
- case 3433:
291
- case 1641:
292
- case 4457:
293
- case 2921:
294
- case 5572:
295
- case 6356:
296
- case 5844:
297
- case 3191:
298
- case 6645:
299
- case 3005:
300
- case 6391:
301
- case 5879:
302
- case 5623:
303
- case 6135:
304
- case 4599:
305
- case 4855:
306
- case 4215:
307
- case 6389:
308
- case 5109:
309
- case 5365:
310
- case 5621:
311
- case 3829:
312
- return b + e + e;
313
- case 4789:
314
- return he + e + e;
315
- case 5349:
316
- case 4246:
317
- case 4810:
318
- case 6968:
319
- case 2756:
320
- return b + e + he + e + w + e + e;
321
- case 5936:
322
- switch (A(e, t + 11)) {
323
- case 114:
324
- return b + e + w + _(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
325
- case 108:
326
- return b + e + w + _(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
327
- case 45:
328
- return b + e + w + _(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
329
- }
330
- case 6828:
331
- case 4268:
332
- case 2903:
333
- return b + e + w + e + e;
334
- case 6165:
335
- return b + e + w + "flex-" + e + e;
336
- case 5187:
337
- return b + e + _(e, /(\w+).+(:[^]+)/, b + "box-$1$2" + w + "flex-$1$2") + e;
338
- case 5443:
339
- return b + e + w + "flex-item-" + _(e, /flex-|-self/g, "") + (B(e, /flex-|baseline/) ? "" : w + "grid-row-" + _(e, /flex-|-self/g, "")) + e;
340
- case 4675:
341
- return b + e + w + "flex-line-pack" + _(e, /align-content|flex-|-self/g, "") + e;
342
- case 5548:
343
- return b + e + w + _(e, "shrink", "negative") + e;
344
- case 5292:
345
- return b + e + w + _(e, "basis", "preferred-size") + e;
346
- case 6060:
347
- return b + "box-" + _(e, "-grow", "") + b + e + w + _(e, "grow", "positive") + e;
348
- case 4554:
349
- return b + _(e, /([^-])(transform)/g, "$1" + b + "$2") + e;
350
- case 6187:
351
- return _(_(_(e, /(zoom-|grab)/, b + "$1"), /(image-set)/, b + "$1"), e, "") + e;
352
- case 5495:
353
- case 3959:
354
- return _(e, /(image-set\([^]*)/, b + "$1$`$1");
355
- case 4968:
356
- return _(_(e, /(.+:)(flex-)?(.*)/, b + "box-pack:$3" + w + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + b + e + e;
357
- case 4200:
358
- if (!B(e, /flex-|baseline/))
359
- return w + "grid-column-align" + oe(e, t) + e;
360
- break;
361
- case 2592:
362
- case 3360:
363
- return w + _(e, "template-", "") + e;
364
- case 4384:
365
- case 3616:
366
- return n && n.some(function(r, o) {
367
- return t = o, B(r.props, /grid-\w+-end/);
368
- }) ? ~$e(e + (n = n[t].value), "span") ? e : w + _(e, "-start", "") + e + w + "grid-row-span:" + (~$e(n, "span") ? B(n, /\d+/) : +B(n, /\d+/) - +B(e, /\d+/)) + ";" : w + _(e, "-start", "") + e;
369
- case 4896:
370
- case 4128:
371
- return n && n.some(function(r) {
372
- return B(r.props, /grid-\w+-start/);
373
- }) ? e : w + _(_(e, "-end", "-span"), "span ", "") + e;
374
- case 4095:
375
- case 3583:
376
- case 4068:
377
- case 2532:
378
- return _(e, /(.+)-inline(.+)/, b + "$1$2") + e;
379
- case 8116:
380
- case 7059:
381
- case 5753:
382
- case 5535:
383
- case 5445:
384
- case 5701:
385
- case 4933:
386
- case 4677:
387
- case 5533:
388
- case 5789:
389
- case 5021:
390
- case 4765:
391
- if (L(e) - 1 - t > 6)
392
- switch (A(e, t + 1)) {
393
- case 109:
394
- if (A(e, t + 4) !== 45)
395
- break;
396
- case 102:
397
- return _(e, /(.+:)(.+)-([^]+)/, "$1" + b + "$2-$3$1" + he + (A(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
398
- case 115:
399
- return ~$e(e, "stretch") ? jt(_(e, "stretch", "fill-available"), t, n) + e : e;
400
- }
401
- break;
402
- case 5152:
403
- case 5920:
404
- return _(e, /(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/, function(r, o, s, i, c, a, l) {
405
- return w + o + ":" + s + l + (i ? w + o + "-span:" + (c ? a : +a - +s) + l : "") + e;
406
- });
407
- case 4949:
408
- if (A(e, t + 6) === 121)
409
- return _(e, ":", ":" + b) + e;
410
- break;
411
- case 6444:
412
- switch (A(e, A(e, 14) === 45 ? 18 : 11)) {
413
- case 120:
414
- return _(e, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, "$1" + b + (A(e, 14) === 45 ? "inline-" : "") + "box$3$1" + b + "$2$3$1" + w + "$2box$3") + e;
415
- case 100:
416
- return _(e, ":", ":" + w) + e;
417
- }
418
- break;
419
- case 5719:
420
- case 2647:
421
- case 2135:
422
- case 3927:
423
- case 2391:
424
- return _(e, "scroll-", "scroll-snap-") + e;
425
- }
426
- return e;
427
- }
428
- function Ie(e, t) {
429
- for (var n = "", r = 0; r < e.length; r++)
430
- n += t(e[r], r, e, t) || "";
431
- return n;
432
- }
433
- function An(e, t, n, r) {
434
- switch (e.type) {
435
- case gn:
436
- if (e.children.length)
437
- break;
438
- case hn:
439
- case rt:
440
- return e.return = e.return || e.value;
441
- case Tt:
442
- return "";
443
- case Pt:
444
- return e.return = e.value + "{" + Ie(e.children, r) + "}";
445
- case Ne:
446
- if (!L(e.value = e.props.join(",")))
447
- return "";
448
- }
449
- return L(n = Ie(e.children, r)) ? e.return = e.value + "{" + n + "}" : "";
450
- }
451
- function Nn(e) {
452
- var t = Rt(e);
453
- return function(n, r, o, s) {
454
- for (var i = "", c = 0; c < t; c++)
455
- i += e[c](n, r, o, s) || "";
456
- return i;
457
- };
458
- }
459
- function Tn(e) {
460
- return function(t) {
461
- t.root || (t = t.return) && e(t);
462
- };
463
- }
464
- function Pn(e, t, n, r) {
465
- if (e.length > -1 && !e.return)
466
- switch (e.type) {
467
- case rt:
468
- e.return = jt(e.value, e.length, n);
469
- return;
470
- case Pt:
471
- return Ie([V(e, { value: _(e.value, "@", "@" + b) })], r);
472
- case Ne:
473
- if (e.length)
474
- return bn(n = e.props, function(o) {
475
- switch (B(o, r = /(::plac\w+|:read-\w+)/)) {
476
- case ":read-only":
477
- case ":read-write":
478
- ne(V(e, { props: [_(o, /:(read-\w+)/, ":" + he + "$1")] })), ne(V(e, { props: [o] })), Ye(e, { props: pt(n, r) });
479
- break;
480
- case "::placeholder":
481
- ne(V(e, { props: [_(o, /:(plac\w+)/, ":" + b + "input-$1")] })), ne(V(e, { props: [_(o, /:(plac\w+)/, ":" + he + "$1")] })), ne(V(e, { props: [_(o, /:(plac\w+)/, w + "input-$1")] })), ne(V(e, { props: [o] })), Ye(e, { props: pt(n, r) });
482
- break;
483
- }
484
- return "";
485
- });
486
- }
487
- }
488
- var On = {
489
- animationIterationCount: 1,
490
- aspectRatio: 1,
491
- borderImageOutset: 1,
492
- borderImageSlice: 1,
493
- borderImageWidth: 1,
494
- boxFlex: 1,
495
- boxFlexGroup: 1,
496
- boxOrdinalGroup: 1,
497
- columnCount: 1,
498
- columns: 1,
499
- flex: 1,
500
- flexGrow: 1,
501
- flexPositive: 1,
502
- flexShrink: 1,
503
- flexNegative: 1,
504
- flexOrder: 1,
505
- gridRow: 1,
506
- gridRowEnd: 1,
507
- gridRowSpan: 1,
508
- gridRowStart: 1,
509
- gridColumn: 1,
510
- gridColumnEnd: 1,
511
- gridColumnSpan: 1,
512
- gridColumnStart: 1,
513
- msGridRow: 1,
514
- msGridRowSpan: 1,
515
- msGridColumn: 1,
516
- msGridColumnSpan: 1,
517
- fontWeight: 1,
518
- lineHeight: 1,
519
- opacity: 1,
520
- order: 1,
521
- orphans: 1,
522
- tabSize: 1,
523
- widows: 1,
524
- zIndex: 1,
525
- zoom: 1,
526
- WebkitLineClamp: 1,
527
- // SVG-related properties
528
- fillOpacity: 1,
529
- floodOpacity: 1,
530
- stopOpacity: 1,
531
- strokeDasharray: 1,
532
- strokeDashoffset: 1,
533
- strokeMiterlimit: 1,
534
- strokeOpacity: 1,
535
- strokeWidth: 1
536
- }, J = typeof process < "u" && process.env !== void 0 && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled", st = typeof window < "u" && "HTMLElement" in window, Rn = !!(typeof SC_DISABLE_SPEEDY == "boolean" ? SC_DISABLE_SPEEDY : typeof process < "u" && process.env !== void 0 && process.env.REACT_APP_SC_DISABLE_SPEEDY !== void 0 && process.env.REACT_APP_SC_DISABLE_SPEEDY !== "" ? process.env.REACT_APP_SC_DISABLE_SPEEDY !== "false" && process.env.REACT_APP_SC_DISABLE_SPEEDY : typeof process < "u" && process.env !== void 0 && process.env.SC_DISABLE_SPEEDY !== void 0 && process.env.SC_DISABLE_SPEEDY !== "" ? process.env.SC_DISABLE_SPEEDY !== "false" && process.env.SC_DISABLE_SPEEDY : process.env.NODE_ENV !== "production"), ht = /invalid hook call/i, xe = /* @__PURE__ */ new Set(), Dn = function(e, t) {
537
- if (process.env.NODE_ENV !== "production") {
538
- var n = t ? ' with the id of "'.concat(t, '"') : "", r = "The component ".concat(e).concat(n, ` has been created dynamically.
539
- `) + `You may see this warning because you've called styled inside another component.
540
- To resolve this only create new StyledComponents outside of any render method and function component.`, o = console.error;
541
- try {
542
- var s = !0;
543
- console.error = function(i) {
544
- for (var c = [], a = 1; a < arguments.length; a++)
545
- c[a - 1] = arguments[a];
546
- ht.test(i) ? (s = !1, xe.delete(r)) : o.apply(void 0, Q([i], c, !1));
547
- }, ln(), s && !xe.has(r) && (console.warn(r), xe.add(r));
548
- } catch (i) {
549
- ht.test(i.message) && xe.delete(r);
550
- } finally {
551
- console.error = o;
552
- }
553
- }
554
- }, Re = Object.freeze([]), ie = Object.freeze({});
555
- function jn(e, t, n) {
556
- return n === void 0 && (n = ie), e.theme !== n.theme && e.theme || t || n.theme;
557
- }
558
- var qe = /* @__PURE__ */ new Set(["a", "abbr", "address", "area", "article", "aside", "audio", "b", "base", "bdi", "bdo", "big", "blockquote", "body", "br", "button", "canvas", "caption", "cite", "code", "col", "colgroup", "data", "datalist", "dd", "del", "details", "dfn", "dialog", "div", "dl", "dt", "em", "embed", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "header", "hgroup", "hr", "html", "i", "iframe", "img", "input", "ins", "kbd", "keygen", "label", "legend", "li", "link", "main", "map", "mark", "menu", "menuitem", "meta", "meter", "nav", "noscript", "object", "ol", "optgroup", "option", "output", "p", "param", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "script", "section", "select", "small", "source", "span", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "u", "ul", "use", "var", "video", "wbr", "circle", "clipPath", "defs", "ellipse", "foreignObject", "g", "image", "line", "linearGradient", "marker", "mask", "path", "pattern", "polygon", "polyline", "radialGradient", "rect", "stop", "svg", "text", "tspan"]), Mn = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g, Ln = /(^-|-$)/g;
559
- function gt(e) {
560
- return e.replace(Mn, "-").replace(Ln, "");
561
- }
562
- var Bn = /(a)(d)/gi, mt = function(e) {
563
- return String.fromCharCode(e + (e > 25 ? 39 : 97));
564
- };
565
- function Xe(e) {
566
- var t, n = "";
567
- for (t = Math.abs(e); t > 52; t = t / 52 | 0)
568
- n = mt(t % 52) + n;
569
- return (mt(t % 52) + n).replace(Bn, "$1-$2");
570
- }
571
- var Fe, U = function(e, t) {
572
- for (var n = t.length; n; )
573
- e = 33 * e ^ t.charCodeAt(--n);
574
- return e;
575
- }, Mt = function(e) {
576
- return U(5381, e);
577
- };
578
- function Lt(e) {
579
- return Xe(Mt(e) >>> 0);
580
- }
581
- function Bt(e) {
582
- return process.env.NODE_ENV !== "production" && typeof e == "string" && e || e.displayName || e.name || "Component";
583
- }
584
- function He(e) {
585
- return typeof e == "string" && (process.env.NODE_ENV === "production" || e.charAt(0) === e.charAt(0).toLowerCase());
586
- }
587
- var Ft = typeof Symbol == "function" && Symbol.for, Ht = Ft ? Symbol.for("react.memo") : 60115, Fn = Ft ? Symbol.for("react.forward_ref") : 60112, Hn = { childContextTypes: !0, contextType: !0, contextTypes: !0, defaultProps: !0, displayName: !0, getDefaultProps: !0, getDerivedStateFromError: !0, getDerivedStateFromProps: !0, mixins: !0, propTypes: !0, type: !0 }, Vn = { name: !0, length: !0, prototype: !0, caller: !0, callee: !0, arguments: !0, arity: !0 }, Vt = { $$typeof: !0, compare: !0, defaultProps: !0, displayName: !0, propTypes: !0, type: !0 }, Gn = ((Fe = {})[Fn] = { $$typeof: !0, render: !0, defaultProps: !0, displayName: !0, propTypes: !0 }, Fe[Ht] = Vt, Fe);
588
- function yt(e) {
589
- return ("type" in (t = e) && t.type.$$typeof) === Ht ? Vt : "$$typeof" in e ? Gn[e.$$typeof] : Hn;
590
- var t;
591
- }
592
- var Yn = Object.defineProperty, Un = Object.getOwnPropertyNames, bt = Object.getOwnPropertySymbols, Wn = Object.getOwnPropertyDescriptor, qn = Object.getPrototypeOf, vt = Object.prototype;
593
- function Gt(e, t, n) {
594
- if (typeof t != "string") {
595
- if (vt) {
596
- var r = qn(t);
597
- r && r !== vt && Gt(e, r, n);
598
- }
599
- var o = Un(t);
600
- bt && (o = o.concat(bt(t)));
601
- for (var s = yt(e), i = yt(t), c = 0; c < o.length; ++c) {
602
- var a = o[c];
603
- if (!(a in Vn || n && n[a] || i && a in i || s && a in s)) {
604
- var l = Wn(t, a);
605
- try {
606
- Yn(e, a, l);
607
- } catch {
608
- }
609
- }
610
- }
611
- }
612
- return e;
613
- }
614
- function ae(e) {
615
- return typeof e == "function";
616
- }
617
- function it(e) {
618
- return typeof e == "object" && "styledComponentId" in e;
619
- }
620
- function W(e, t) {
621
- return e && t ? "".concat(e, " ").concat(t) : e || t || "";
622
- }
623
- function Ke(e, t) {
624
- if (e.length === 0)
625
- return "";
626
- for (var n = e[0], r = 1; r < e.length; r++)
627
- n += t ? t + e[r] : e[r];
628
- return n;
629
- }
630
- function ce(e) {
631
- return e !== null && typeof e == "object" && e.constructor.name === Object.name && !("props" in e && e.$$typeof);
632
- }
633
- function Ze(e, t, n) {
634
- if (n === void 0 && (n = !1), !n && !ce(e) && !Array.isArray(e))
635
- return t;
636
- if (Array.isArray(t))
637
- for (var r = 0; r < t.length; r++)
638
- e[r] = Ze(e[r], t[r]);
639
- else if (ce(t))
640
- for (var r in t)
641
- e[r] = Ze(e[r], t[r]);
642
- return e;
643
- }
644
- function at(e, t) {
645
- Object.defineProperty(e, "toString", { value: t });
646
- }
647
- var Xn = process.env.NODE_ENV !== "production" ? { 1: `Cannot create styled-component for component: %s.
648
-
649
- `, 2: `Can't collect styles once you've consumed a \`ServerStyleSheet\`'s styles! \`ServerStyleSheet\` is a one off instance for each server-side render cycle.
650
-
651
- - Are you trying to reuse it across renders?
652
- - Are you accidentally calling collectStyles twice?
653
-
654
- `, 3: `Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.
655
-
656
- `, 4: `The \`StyleSheetManager\` expects a valid target or sheet prop!
657
-
658
- - Does this error occur on the client and is your target falsy?
659
- - Does this error occur on the server and is the sheet falsy?
660
-
661
- `, 5: `The clone method cannot be used on the client!
662
-
663
- - Are you running in a client-like environment on the server?
664
- - Are you trying to run SSR on the client?
665
-
666
- `, 6: `Trying to insert a new style tag, but the given Node is unmounted!
667
-
668
- - Are you using a custom target that isn't mounted?
669
- - Does your document not have a valid head element?
670
- - Have you accidentally removed a style tag manually?
671
-
672
- `, 7: 'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n', 8: `ThemeProvider: Please make your "theme" prop an object.
673
-
674
- `, 9: "Missing document `<head>`\n\n", 10: `Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021
675
-
676
- `, 11: `_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.
677
-
678
- `, 12: "It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n", 13: `%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.
679
-
680
- `, 14: `ThemeProvider: "theme" prop is required.
681
-
682
- `, 15: "A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n", 16: `Reached the limit of how many styled components may be created at group %s.
683
- You may only create up to 1,073,741,824 components. If you're creating components dynamically,
684
- as for instance in your render method then you may be running into this limitation.
685
-
686
- `, 17: `CSSStyleSheet could not be found on HTMLStyleElement.
687
- Has styled-components' style tag been unmounted or altered by another script?
688
- `, 18: "ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`" } : {};
689
- function Kn() {
690
- for (var e = [], t = 0; t < arguments.length; t++)
691
- e[t] = arguments[t];
692
- for (var n = e[0], r = [], o = 1, s = e.length; o < s; o += 1)
693
- r.push(e[o]);
694
- return r.forEach(function(i) {
695
- n = n.replace(/%[a-z]/, i);
696
- }), n;
697
- }
698
- function de(e) {
699
- for (var t = [], n = 1; n < arguments.length; n++)
700
- t[n - 1] = arguments[n];
701
- return process.env.NODE_ENV === "production" ? new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e, " for more information.").concat(t.length > 0 ? " Args: ".concat(t.join(", ")) : "")) : new Error(Kn.apply(void 0, Q([Xn[e]], t, !1)).trim());
702
- }
703
- var Zn = function() {
704
- function e(t) {
705
- this.groupSizes = new Uint32Array(512), this.length = 512, this.tag = t;
706
- }
707
- return e.prototype.indexOfGroup = function(t) {
708
- for (var n = 0, r = 0; r < t; r++)
709
- n += this.groupSizes[r];
710
- return n;
711
- }, e.prototype.insertRules = function(t, n) {
712
- if (t >= this.groupSizes.length) {
713
- for (var r = this.groupSizes, o = r.length, s = o; t >= s; )
714
- if ((s <<= 1) < 0)
715
- throw de(16, "".concat(t));
716
- this.groupSizes = new Uint32Array(s), this.groupSizes.set(r), this.length = s;
717
- for (var i = o; i < s; i++)
718
- this.groupSizes[i] = 0;
719
- }
720
- for (var c = this.indexOfGroup(t + 1), a = (i = 0, n.length); i < a; i++)
721
- this.tag.insertRule(c, n[i]) && (this.groupSizes[t]++, c++);
722
- }, e.prototype.clearGroup = function(t) {
723
- if (t < this.length) {
724
- var n = this.groupSizes[t], r = this.indexOfGroup(t), o = r + n;
725
- this.groupSizes[t] = 0;
726
- for (var s = r; s < o; s++)
727
- this.tag.deleteRule(r);
728
- }
729
- }, e.prototype.getGroup = function(t) {
730
- var n = "";
731
- if (t >= this.length || this.groupSizes[t] === 0)
732
- return n;
733
- for (var r = this.groupSizes[t], o = this.indexOfGroup(t), s = o + r, i = o; i < s; i++)
734
- n += "".concat(this.tag.getRule(i)).concat(`/*!sc*/
735
- `);
736
- return n;
737
- }, e;
738
- }(), Ce = /* @__PURE__ */ new Map(), Ae = /* @__PURE__ */ new Map(), Ee = 1, we = function(e) {
739
- if (Ce.has(e))
740
- return Ce.get(e);
741
- for (; Ae.has(Ee); )
742
- Ee++;
743
- var t = Ee++;
744
- if (process.env.NODE_ENV !== "production" && ((0 | t) < 0 || t > 1073741824))
745
- throw de(16, "".concat(t));
746
- return Ce.set(e, t), Ae.set(t, e), t;
747
- }, Qn = function(e, t) {
748
- Ee = t + 1, Ce.set(e, t), Ae.set(t, e);
749
- }, Jn = "style[".concat(J, "][").concat("data-styled-version", '="').concat("6.1.1", '"]'), er = new RegExp("^".concat(J, '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')), tr = function(e, t, n) {
750
- for (var r, o = n.split(","), s = 0, i = o.length; s < i; s++)
751
- (r = o[s]) && e.registerName(t, r);
752
- }, nr = function(e, t) {
753
- for (var n, r = ((n = t.textContent) !== null && n !== void 0 ? n : "").split(`/*!sc*/
754
- `), o = [], s = 0, i = r.length; s < i; s++) {
755
- var c = r[s].trim();
756
- if (c) {
757
- var a = c.match(er);
758
- if (a) {
759
- var l = 0 | parseInt(a[1], 10), p = a[2];
760
- l !== 0 && (Qn(p, l), tr(e, p, a[3]), e.getTag().insertRules(l, o)), o.length = 0;
761
- } else
762
- o.push(c);
763
- }
764
- }
765
- };
766
- function rr() {
767
- return typeof __webpack_nonce__ < "u" ? __webpack_nonce__ : null;
768
- }
769
- var Yt = function(e) {
770
- var t = document.head, n = e || t, r = document.createElement("style"), o = function(c) {
771
- var a = Array.from(c.querySelectorAll("style[".concat(J, "]")));
772
- return a[a.length - 1];
773
- }(n), s = o !== void 0 ? o.nextSibling : null;
774
- r.setAttribute(J, "active"), r.setAttribute("data-styled-version", "6.1.1");
775
- var i = rr();
776
- return i && r.setAttribute("nonce", i), n.insertBefore(r, s), r;
777
- }, or = function() {
778
- function e(t) {
779
- this.element = Yt(t), this.element.appendChild(document.createTextNode("")), this.sheet = function(n) {
780
- if (n.sheet)
781
- return n.sheet;
782
- for (var r = document.styleSheets, o = 0, s = r.length; o < s; o++) {
783
- var i = r[o];
784
- if (i.ownerNode === n)
785
- return i;
786
- }
787
- throw de(17);
788
- }(this.element), this.length = 0;
789
- }
790
- return e.prototype.insertRule = function(t, n) {
791
- try {
792
- return this.sheet.insertRule(n, t), this.length++, !0;
793
- } catch {
794
- return !1;
795
- }
796
- }, e.prototype.deleteRule = function(t) {
797
- this.sheet.deleteRule(t), this.length--;
798
- }, e.prototype.getRule = function(t) {
799
- var n = this.sheet.cssRules[t];
800
- return n && n.cssText ? n.cssText : "";
801
- }, e;
802
- }(), sr = function() {
803
- function e(t) {
804
- this.element = Yt(t), this.nodes = this.element.childNodes, this.length = 0;
805
- }
806
- return e.prototype.insertRule = function(t, n) {
807
- if (t <= this.length && t >= 0) {
808
- var r = document.createTextNode(n);
809
- return this.element.insertBefore(r, this.nodes[t] || null), this.length++, !0;
810
- }
811
- return !1;
812
- }, e.prototype.deleteRule = function(t) {
813
- this.element.removeChild(this.nodes[t]), this.length--;
814
- }, e.prototype.getRule = function(t) {
815
- return t < this.length ? this.nodes[t].textContent : "";
816
- }, e;
817
- }(), ir = function() {
818
- function e(t) {
819
- this.rules = [], this.length = 0;
820
- }
821
- return e.prototype.insertRule = function(t, n) {
822
- return t <= this.length && (this.rules.splice(t, 0, n), this.length++, !0);
823
- }, e.prototype.deleteRule = function(t) {
824
- this.rules.splice(t, 1), this.length--;
825
- }, e.prototype.getRule = function(t) {
826
- return t < this.length ? this.rules[t] : "";
827
- }, e;
828
- }(), xt = st, ar = { isServer: !st, useCSSOMInjection: !Rn }, Ut = function() {
829
- function e(t, n, r) {
830
- t === void 0 && (t = ie), n === void 0 && (n = {});
831
- var o = this;
832
- this.options = P(P({}, ar), t), this.gs = n, this.names = new Map(r), this.server = !!t.isServer, !this.server && st && xt && (xt = !1, function(s) {
833
- for (var i = document.querySelectorAll(Jn), c = 0, a = i.length; c < a; c++) {
834
- var l = i[c];
835
- l && l.getAttribute(J) !== "active" && (nr(s, l), l.parentNode && l.parentNode.removeChild(l));
836
- }
837
- }(this)), at(this, function() {
838
- return function(s) {
839
- for (var i = s.getTag(), c = i.length, a = "", l = function(d) {
840
- var m = function(z) {
841
- return Ae.get(z);
842
- }(d);
843
- if (m === void 0)
844
- return "continue";
845
- var g = s.names.get(m), v = i.getGroup(d);
846
- if (g === void 0 || v.length === 0)
847
- return "continue";
848
- var $ = "".concat(J, ".g").concat(d, '[id="').concat(m, '"]'), N = "";
849
- g !== void 0 && g.forEach(function(z) {
850
- z.length > 0 && (N += "".concat(z, ","));
851
- }), a += "".concat(v).concat($, '{content:"').concat(N, '"}').concat(`/*!sc*/
852
- `);
853
- }, p = 0; p < c; p++)
854
- l(p);
855
- return a;
856
- }(o);
857
- });
858
- }
859
- return e.registerId = function(t) {
860
- return we(t);
861
- }, e.prototype.reconstructWithOptions = function(t, n) {
862
- return n === void 0 && (n = !0), new e(P(P({}, this.options), t), this.gs, n && this.names || void 0);
863
- }, e.prototype.allocateGSInstance = function(t) {
864
- return this.gs[t] = (this.gs[t] || 0) + 1;
865
- }, e.prototype.getTag = function() {
866
- return this.tag || (this.tag = (t = function(n) {
867
- var r = n.useCSSOMInjection, o = n.target;
868
- return n.isServer ? new ir(o) : r ? new or(o) : new sr(o);
869
- }(this.options), new Zn(t)));
870
- var t;
871
- }, e.prototype.hasNameForId = function(t, n) {
872
- return this.names.has(t) && this.names.get(t).has(n);
873
- }, e.prototype.registerName = function(t, n) {
874
- if (we(t), this.names.has(t))
875
- this.names.get(t).add(n);
876
- else {
877
- var r = /* @__PURE__ */ new Set();
878
- r.add(n), this.names.set(t, r);
879
- }
880
- }, e.prototype.insertRules = function(t, n, r) {
881
- this.registerName(t, n), this.getTag().insertRules(we(t), r);
882
- }, e.prototype.clearNames = function(t) {
883
- this.names.has(t) && this.names.get(t).clear();
884
- }, e.prototype.clearRules = function(t) {
885
- this.getTag().clearGroup(we(t)), this.clearNames(t);
886
- }, e.prototype.clearTag = function() {
887
- this.tag = void 0;
888
- }, e;
889
- }(), cr = /&/g, lr = /^\s*\/\/.*$/gm;
890
- function Wt(e, t) {
891
- return e.map(function(n) {
892
- return n.type === "rule" && (n.value = "".concat(t, " ").concat(n.value), n.value = n.value.replaceAll(",", ",".concat(t, " ")), n.props = n.props.map(function(r) {
893
- return "".concat(t, " ").concat(r);
894
- })), Array.isArray(n.children) && n.type !== "@keyframes" && (n.children = Wt(n.children, t)), n;
895
- });
896
- }
897
- function dr(e) {
898
- var t, n, r, o = e === void 0 ? ie : e, s = o.options, i = s === void 0 ? ie : s, c = o.plugins, a = c === void 0 ? Re : c, l = function(m, g, v) {
899
- return v === n || v.startsWith(n) && v.endsWith(n) && v.replaceAll(n, "").length > 0 ? ".".concat(t) : m;
900
- }, p = a.slice();
901
- p.push(function(m) {
902
- m.type === Ne && m.value.includes("&") && (m.props[0] = m.props[0].replace(cr, n).replace(r, l));
903
- }), i.prefix && p.push(Pn), p.push(An);
904
- var d = function(m, g, v, $) {
905
- g === void 0 && (g = ""), v === void 0 && (v = ""), $ === void 0 && ($ = "&"), t = $, n = g, r = new RegExp("\\".concat(n, "\\b"), "g");
906
- var N = m.replace(lr, ""), z = En(v || g ? "".concat(v, " ").concat(g, " { ").concat(N, " }") : N);
907
- i.namespace && (z = Wt(z, i.namespace));
908
- var C = [];
909
- return Ie(z, Nn(p.concat(Tn(function(x) {
910
- return C.push(x);
911
- })))), C;
912
- };
913
- return d.hash = a.length ? a.reduce(function(m, g) {
914
- return g.name || de(15), U(m, g.name);
915
- }, 5381).toString() : "", d;
916
- }
917
- var ur = new Ut(), Qe = dr(), qt = ge.createContext({ shouldForwardProp: void 0, styleSheet: ur, stylis: Qe });
918
- qt.Consumer;
919
- ge.createContext(void 0);
920
- function wt() {
921
- return un(qt);
922
- }
923
- var Je = function() {
924
- function e(t, n) {
925
- var r = this;
926
- this.inject = function(o, s) {
927
- s === void 0 && (s = Qe);
928
- var i = r.name + s.hash;
929
- o.hasNameForId(r.id, i) || o.insertRules(r.id, i, s(r.rules, i, "@keyframes"));
930
- }, this.name = t, this.id = "sc-keyframes-".concat(t), this.rules = n, at(this, function() {
931
- throw de(12, String(r.name));
932
- });
933
- }
934
- return e.prototype.getName = function(t) {
935
- return t === void 0 && (t = Qe), this.name + t.hash;
936
- }, e;
937
- }(), pr = function(e) {
938
- return e >= "A" && e <= "Z";
939
- };
940
- function kt(e) {
941
- for (var t = "", n = 0; n < e.length; n++) {
942
- var r = e[n];
943
- if (n === 1 && r === "-" && e[0] === "-")
944
- return e;
945
- pr(r) ? t += "-" + r.toLowerCase() : t += r;
946
- }
947
- return t.startsWith("ms-") ? "-" + t : t;
948
- }
949
- var Xt = function(e) {
950
- return e == null || e === !1 || e === "";
951
- }, Kt = function(e) {
952
- var t, n, r = [];
953
- for (var o in e) {
954
- var s = e[o];
955
- e.hasOwnProperty(o) && !Xt(s) && (Array.isArray(s) && s.isCss || ae(s) ? r.push("".concat(kt(o), ":"), s, ";") : ce(s) ? r.push.apply(r, Q(Q(["".concat(o, " {")], Kt(s), !1), ["}"], !1)) : r.push("".concat(kt(o), ": ").concat((t = o, (n = s) == null || typeof n == "boolean" || n === "" ? "" : typeof n != "number" || n === 0 || t in On || t.startsWith("--") ? String(n).trim() : "".concat(n, "px")), ";")));
956
- }
957
- return r;
958
- };
959
- function K(e, t, n, r) {
960
- if (Xt(e))
961
- return [];
962
- if (it(e))
963
- return [".".concat(e.styledComponentId)];
964
- if (ae(e)) {
965
- if (!ae(s = e) || s.prototype && s.prototype.isReactComponent || !t)
966
- return [e];
967
- var o = e(t);
968
- return process.env.NODE_ENV === "production" || typeof o != "object" || Array.isArray(o) || o instanceof Je || ce(o) || o === null || console.error("".concat(Bt(e), " is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")), K(o, t, n, r);
969
- }
970
- var s;
971
- return e instanceof Je ? n ? (e.inject(n, r), [e.getName(r)]) : [e] : ce(e) ? Kt(e) : Array.isArray(e) ? Array.prototype.concat.apply(Re, e.map(function(i) {
972
- return K(i, t, n, r);
973
- })) : [e.toString()];
974
- }
975
- function _r(e) {
976
- for (var t = 0; t < e.length; t += 1) {
977
- var n = e[t];
978
- if (ae(n) && !it(n))
979
- return !1;
980
- }
981
- return !0;
982
- }
983
- var fr = Mt("6.1.1"), hr = function() {
984
- function e(t, n, r) {
985
- this.rules = t, this.staticRulesId = "", this.isStatic = process.env.NODE_ENV === "production" && (r === void 0 || r.isStatic) && _r(t), this.componentId = n, this.baseHash = U(fr, n), this.baseStyle = r, Ut.registerId(n);
986
- }
987
- return e.prototype.generateAndInjectStyles = function(t, n, r) {
988
- var o = this.baseStyle ? this.baseStyle.generateAndInjectStyles(t, n, r) : "";
989
- if (this.isStatic && !r.hash)
990
- if (this.staticRulesId && n.hasNameForId(this.componentId, this.staticRulesId))
991
- o = W(o, this.staticRulesId);
992
- else {
993
- var s = Ke(K(this.rules, t, n, r)), i = Xe(U(this.baseHash, s) >>> 0);
994
- if (!n.hasNameForId(this.componentId, i)) {
995
- var c = r(s, ".".concat(i), void 0, this.componentId);
996
- n.insertRules(this.componentId, i, c);
997
- }
998
- o = W(o, i), this.staticRulesId = i;
999
- }
1000
- else {
1001
- for (var a = U(this.baseHash, r.hash), l = "", p = 0; p < this.rules.length; p++) {
1002
- var d = this.rules[p];
1003
- if (typeof d == "string")
1004
- l += d, process.env.NODE_ENV !== "production" && (a = U(a, d));
1005
- else if (d) {
1006
- var m = Ke(K(d, t, n, r));
1007
- a = U(a, m + p), l += m;
1008
- }
1009
- }
1010
- if (l) {
1011
- var g = Xe(a >>> 0);
1012
- n.hasNameForId(this.componentId, g) || n.insertRules(this.componentId, g, r(l, ".".concat(g), void 0, this.componentId)), o = W(o, g);
1013
- }
1014
- }
1015
- return o;
1016
- }, e;
1017
- }(), Zt = ge.createContext(void 0);
1018
- Zt.Consumer;
1019
- var Ve = {}, $t = /* @__PURE__ */ new Set();
1020
- function gr(e, t, n) {
1021
- var r = it(e), o = e, s = !He(e), i = t.attrs, c = i === void 0 ? Re : i, a = t.componentId, l = a === void 0 ? function(S, E) {
1022
- var y = typeof S != "string" ? "sc" : gt(S);
1023
- Ve[y] = (Ve[y] || 0) + 1;
1024
- var f = "".concat(y, "-").concat(Lt("6.1.1" + y + Ve[y]));
1025
- return E ? "".concat(E, "-").concat(f) : f;
1026
- }(t.displayName, t.parentComponentId) : a, p = t.displayName, d = p === void 0 ? function(S) {
1027
- return He(S) ? "styled.".concat(S) : "Styled(".concat(Bt(S), ")");
1028
- }(e) : p, m = t.displayName && t.componentId ? "".concat(gt(t.displayName), "-").concat(t.componentId) : t.componentId || l, g = r && o.attrs ? o.attrs.concat(c).filter(Boolean) : c, v = t.shouldForwardProp;
1029
- if (r && o.shouldForwardProp) {
1030
- var $ = o.shouldForwardProp;
1031
- if (t.shouldForwardProp) {
1032
- var N = t.shouldForwardProp;
1033
- v = function(S, E) {
1034
- return $(S, E) && N(S, E);
1035
- };
1036
- } else
1037
- v = $;
1038
- }
1039
- var z = new hr(n, m, r ? o.componentStyle : void 0);
1040
- function C(S, E) {
1041
- return function(y, f, G) {
1042
- var ee = y.attrs, nn = y.componentStyle, rn = y.defaultProps, on = y.foldedComponentIds, dt = y.styledComponentId, sn = y.target, an = ge.useContext(Zt), cn = wt(), De = y.shouldForwardProp || cn.shouldForwardProp;
1043
- process.env.NODE_ENV !== "production" && ut(dt);
1044
- var F = function(ye, _e, be) {
1045
- for (var te, Y = P(P({}, _e), { className: void 0, theme: be }), Le = 0; Le < ye.length; Le += 1) {
1046
- var ve = ae(te = ye[Le]) ? te(Y) : te;
1047
- for (var H in ve)
1048
- Y[H] = H === "className" ? W(Y[H], ve[H]) : H === "style" ? P(P({}, Y[H]), ve[H]) : ve[H];
1049
- }
1050
- return _e.className && (Y.className = W(Y.className, _e.className)), Y;
1051
- }(ee, f, jn(f, an, rn) || ie), ue = F.as || sn, pe = {};
1052
- for (var R in F)
1053
- F[R] === void 0 || R[0] === "$" || R === "as" || R === "theme" || (R === "forwardedAs" ? pe.as = F.forwardedAs : De && !De(R, ue) || (pe[R] = F[R], De || process.env.NODE_ENV !== "development" || fn(R) || $t.has(R) || !qe.has(ue) || ($t.add(R), console.warn('styled-components: it looks like an unknown prop "'.concat(R, '" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));
1054
- var je = function(ye, _e) {
1055
- var be = wt(), te = ye.generateAndInjectStyles(_e, be.styleSheet, be.stylis);
1056
- return process.env.NODE_ENV !== "production" && ut(te), te;
1057
- }(nn, F);
1058
- process.env.NODE_ENV !== "production" && y.warnTooManyClasses && y.warnTooManyClasses(je);
1059
- var Me = W(on, dt);
1060
- return je && (Me += " " + je), F.className && (Me += " " + F.className), pe[He(ue) && !qe.has(ue) ? "class" : "className"] = Me, pe.ref = G, dn(ue, pe);
1061
- }(x, S, E);
1062
- }
1063
- C.displayName = d;
1064
- var x = ge.forwardRef(C);
1065
- return x.attrs = g, x.componentStyle = z, x.displayName = d, x.shouldForwardProp = v, x.foldedComponentIds = r ? W(o.foldedComponentIds, o.styledComponentId) : "", x.styledComponentId = m, x.target = r ? o.target : e, Object.defineProperty(x, "defaultProps", { get: function() {
1066
- return this._foldedDefaultProps;
1067
- }, set: function(S) {
1068
- this._foldedDefaultProps = r ? function(E) {
1069
- for (var y = [], f = 1; f < arguments.length; f++)
1070
- y[f - 1] = arguments[f];
1071
- for (var G = 0, ee = y; G < ee.length; G++)
1072
- Ze(E, ee[G], !0);
1073
- return E;
1074
- }({}, o.defaultProps, S) : S;
1075
- } }), process.env.NODE_ENV !== "production" && (Dn(d, m), x.warnTooManyClasses = function(S, E) {
1076
- var y = {}, f = !1;
1077
- return function(G) {
1078
- if (!f && (y[G] = !0, Object.keys(y).length >= 200)) {
1079
- var ee = E ? ' with the id of "'.concat(E, '"') : "";
1080
- console.warn("Over ".concat(200, " classes were generated for component ").concat(S).concat(ee, `.
1081
- `) + `Consider using the attrs method, together with a style object for frequently changed styles.
1082
- Example:
1083
- const Component = styled.div.attrs(props => ({
1084
- style: {
1085
- background: props.background,
1086
- },
1087
- }))\`width: 100%;\`
1088
-
1089
- <Component />`), f = !0, y = {};
1090
- }
1091
- };
1092
- }(d, m)), at(x, function() {
1093
- return ".".concat(x.styledComponentId);
1094
- }), s && Gt(x, e, { attrs: !0, componentStyle: !0, displayName: !0, foldedComponentIds: !0, shouldForwardProp: !0, styledComponentId: !0, target: !0 }), x;
1095
- }
1096
- function St(e, t) {
1097
- for (var n = [e[0]], r = 0, o = t.length; r < o; r += 1)
1098
- n.push(t[r], e[r + 1]);
1099
- return n;
1100
- }
1101
- var zt = function(e) {
1102
- return Object.assign(e, { isCss: !0 });
1103
- };
1104
- function T(e) {
1105
- for (var t = [], n = 1; n < arguments.length; n++)
1106
- t[n - 1] = arguments[n];
1107
- if (ae(e) || ce(e)) {
1108
- var r = e;
1109
- return zt(K(St(Re, Q([r], t, !0))));
1110
- }
1111
- var o = e;
1112
- return t.length === 0 && o.length === 1 && typeof o[0] == "string" ? K(o) : zt(K(St(o, t)));
1113
- }
1114
- function et(e, t, n) {
1115
- if (n === void 0 && (n = ie), !t)
1116
- throw de(1, t);
1117
- var r = function(o) {
1118
- for (var s = [], i = 1; i < arguments.length; i++)
1119
- s[i - 1] = arguments[i];
1120
- return e(t, n, T.apply(void 0, Q([o], s, !1)));
1121
- };
1122
- return r.attrs = function(o) {
1123
- return et(e, t, P(P({}, n), { attrs: Array.prototype.concat(n.attrs, o).filter(Boolean) }));
1124
- }, r.withConfig = function(o) {
1125
- return et(e, t, P(P({}, n), o));
1126
- }, r;
1127
- }
1128
- var Qt = function(e) {
1129
- return et(gr, e);
1130
- }, u = Qt;
1131
- qe.forEach(function(e) {
1132
- u[e] = Qt(e);
1133
- });
1134
- function Jt(e) {
1135
- for (var t = [], n = 1; n < arguments.length; n++)
1136
- t[n - 1] = arguments[n];
1137
- process.env.NODE_ENV !== "production" && typeof navigator < "u" && navigator.product === "ReactNative" && console.warn("`keyframes` cannot be used on ReactNative, only on the web. To do animation in ReactNative please use Animated.");
1138
- var r = Ke(T.apply(void 0, Q([e], t, !1))), o = Lt(r);
1139
- return new Je(o, r);
1140
- }
1141
- process.env.NODE_ENV !== "production" && typeof navigator < "u" && navigator.product === "ReactNative" && console.warn(`It looks like you've imported 'styled-components' on React Native.
1142
- Perhaps you're looking to import 'styled-components/native'?
1143
- Read more about this at https://www.styled-components.com/docs/basics#react-native`);
1144
- var ke = "__sc-".concat(J, "__");
1145
- process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && typeof window < "u" && (window[ke] || (window[ke] = 0), window[ke] === 1 && console.warn(`It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.
1146
-
1147
- See https://s-c.sh/2BAXzed for more info.`), window[ke] += 1);
1148
- const mr = u.span`
1149
- width: 1px;
1150
- height: 1px;
1151
- margin: -1px;
1152
- padding: 0;
1153
- position: absolute;
1154
- top: 0;
1155
- left: 0;
1156
- overflow: hidden;
1157
- clip: rect(0 0 0 0);
1158
- border: 0;
1159
- opacity: 0;
1160
- `, yr = ({ children: e }) => /* @__PURE__ */ h(mr, { children: e }), br = "#0967d2", vr = "#142334", xr = "#ffd000", wr = "#0ce8d6", kr = "#7949d1", $r = "#bca4e8", Sr = "#ef4e4e", zr = "#f48585", Cr = "#ffd000", Er = "#12a537", Ir = "#3ebd93", Ar = "#42608a", Nr = "#e76119", Tr = "#ffffff", Pr = "#142334", Or = "#f5f7fa", Rr = "#192d43", Dr = "#ebeff5", jr = "#1f3751", Mr = "rgba(31, 55, 81, 0.75)", Lr = "#142334", Br = "#ffffff", Fr = "#4d5a68", Hr = "#c3c8cc", Vr = "#8191a2", Gr = "#a0a7af", Yr = "#0967d2", Ur = "#6fabf1", Wr = "#1f3751", qr = "#ffffff", Xr = "#ebeff5", Kr = "#2a415a", Zr = "#ef4e4e", Qr = "#f48585", Jr = "#12a537", eo = "#3ebd93", to = "#e5f1ff", no = "rgba(255, 255, 255, 0.1)", ro = "#ffffff", oo = "#142334", so = "#ffffff", io = "#142334", ao = "#4d5a68", co = "#c3c8cc", lo = "#ffffff", uo = "#142334", po = "#ffffff", _o = "#142334", fo = "#0967d2", ho = "#6fabf1", go = "#142334", mo = "#ffffff", yo = "#4d5a68", bo = "#c3c8cc", vo = "rgba(20, 35, 52, 0.12)", xo = "rgba(255, 255, 255, 0.15)", wo = "rgba(20, 35, 52, 0.2)", ko = "rgba(255, 255, 255, 0.22)", $o = "#0967d2", So = "#6fabf1", zo = "rgba(20, 35, 52, 0.13)", Co = "rgba(6, 10, 16, 0.5)", Eo = "rgba(20, 35, 52, 0.13)", Io = "rgba(6, 10, 16, 0.6)", Ao = "rgba(20, 35, 52, 0.2)", No = "rgba(6, 10, 16, 0.7)", To = "#31a03c", Po = "#4191ed", Oo = "#a227c5", Ro = "#354b62", Do = "#ffd000", jo = "#e76119", Mo = "#c73732", Lo = "#828c95", Bo = "#4d5a68", Fo = "#a227c5", Ho = "#e76119", Vo = "#31a03c", Go = "#4191ed", Yo = "#c73732", Uo = "#d28e09", Wo = "#354b62", qo = "#413ecf", Xo = "#d63baa", Ko = "#745138", Zo = "#ffd000", Qo = 2, Jo = 4, es = 8, ts = 16, ns = 24, rs = 32, os = 48, ss = 1, is = 2, as = 4, cs = 8, ls = 2, ds = 4, us = 8, ps = 16, _s = 24, fs = 1e3, hs = 10, gs = 12, ms = 14, ys = 16, bs = 20, vs = 24, xs = 32, ws = 42, ks = 16, $s = 24, Ss = 32, zs = 40, Cs = 3, Es = 1, Is = 6, As = 2, Ns = 12, Ts = 4, Ps = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1161
- __proto__: null,
1162
- color_background_1_de: Pr,
1163
- color_background_1_le: Tr,
1164
- color_background_2_de: Rr,
1165
- color_background_2_le: Or,
1166
- color_background_3_de: jr,
1167
- color_background_3_le: Dr,
1168
- color_background_backdrop: Mr,
1169
- color_border_default_de: xo,
1170
- color_border_default_le: vo,
1171
- color_border_input_active_de: So,
1172
- color_border_input_active_le: $o,
1173
- color_border_input_inactive_de: ko,
1174
- color_border_input_inactive_le: wo,
1175
- color_brand_accent: xr,
1176
- color_brand_add_on_de: $r,
1177
- color_brand_add_on_le: kr,
1178
- color_brand_primary: br,
1179
- color_brand_secondary: vr,
1180
- color_brand_upgrade: wr,
1181
- color_button_background_destroy_de: Qr,
1182
- color_button_background_destroy_le: Zr,
1183
- color_button_background_primary_de: Ur,
1184
- color_button_background_primary_le: Yr,
1185
- color_button_background_secondary_de: qr,
1186
- color_button_background_secondary_le: Wr,
1187
- color_button_background_subtle_de: Kr,
1188
- color_button_background_subtle_le: Xr,
1189
- color_button_background_success_de: eo,
1190
- color_button_background_success_le: Jr,
1191
- color_button_background_tint_de: no,
1192
- color_button_background_tint_le: to,
1193
- color_button_text_destroy_de: uo,
1194
- color_button_text_destroy_le: lo,
1195
- color_button_text_primary_de: oo,
1196
- color_button_text_primary_le: ro,
1197
- color_button_text_secondary_de: io,
1198
- color_button_text_secondary_le: so,
1199
- color_button_text_subtle_de: co,
1200
- color_button_text_subtle_le: ao,
1201
- color_button_text_success_de: _o,
1202
- color_button_text_success_le: po,
1203
- color_collab_blue: Go,
1204
- color_collab_brown: Ko,
1205
- color_collab_green: Vo,
1206
- color_collab_magenta: Xo,
1207
- color_collab_navy: Wo,
1208
- color_collab_orange: Ho,
1209
- color_collab_owner: Zo,
1210
- color_collab_plum: qo,
1211
- color_collab_purple: Fo,
1212
- color_collab_red: Yo,
1213
- color_collab_yellow: Uo,
1214
- color_depth_1_de: Co,
1215
- color_depth_1_le: zo,
1216
- color_depth_2_de: Io,
1217
- color_depth_2_le: Eo,
1218
- color_depth_3_de: No,
1219
- color_depth_3_le: Ao,
1220
- color_label_blue: Po,
1221
- color_label_dark_gray: Bo,
1222
- color_label_green: To,
1223
- color_label_light_gray: Lo,
1224
- color_label_navy: Ro,
1225
- color_label_orange: jo,
1226
- color_label_purple: Oo,
1227
- color_label_red: Mo,
1228
- color_label_yellow: Do,
1229
- color_link_primary_de: ho,
1230
- color_link_primary_le: fo,
1231
- color_link_secondary_de: mo,
1232
- color_link_secondary_le: go,
1233
- color_link_subtle_de: bo,
1234
- color_link_subtle_le: yo,
1235
- color_text_default_de: Br,
1236
- color_text_default_le: Lr,
1237
- color_text_nonessential_de: Gr,
1238
- color_text_nonessential_le: Vr,
1239
- color_text_subtle_de: Hr,
1240
- color_text_subtle_le: Fr,
1241
- color_utility_assigned: Nr,
1242
- color_utility_caution: Cr,
1243
- color_utility_destroy_de: zr,
1244
- color_utility_destroy_le: Sr,
1245
- color_utility_info: Ar,
1246
- color_utility_success_de: Ir,
1247
- color_utility_success_le: Er,
1248
- size_avatar_l: zs,
1249
- size_avatar_m: Ss,
1250
- size_avatar_s: $s,
1251
- size_avatar_xs: ks,
1252
- size_border_radius_l: us,
1253
- size_border_radius_m: ds,
1254
- size_border_radius_pill: fs,
1255
- size_border_radius_s: ls,
1256
- size_border_radius_xl: ps,
1257
- size_border_radius_xxl: _s,
1258
- size_border_width_l: as,
1259
- size_border_width_m: is,
1260
- size_border_width_s: ss,
1261
- size_border_width_xl: cs,
1262
- size_depth_1_blur: Cs,
1263
- size_depth_1_y: Es,
1264
- size_depth_2_blur: Is,
1265
- size_depth_2_y: As,
1266
- size_depth_3_blur: Ns,
1267
- size_depth_3_y: Ts,
1268
- size_spacing_l: ns,
1269
- size_spacing_m: ts,
1270
- size_spacing_s: es,
1271
- size_spacing_xl: rs,
1272
- size_spacing_xs: Jo,
1273
- size_spacing_xxl: os,
1274
- size_spacing_xxs: Qo,
1275
- size_text_l: bs,
1276
- size_text_m: ys,
1277
- size_text_s: ms,
1278
- size_text_xl: vs,
1279
- size_text_xs: gs,
1280
- size_text_xxl: xs,
1281
- size_text_xxs: hs,
1282
- size_text_xxxl: ws
1283
- }, Symbol.toStringTag, { value: "Module" })), q = {
1284
- ...Ps
1285
- }, ct = `font-family: system-ui, -apple-system, BlinkMacSystemFont,
1286
- 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;`, lt = `font-family: 'Averta', system-ui, -apple-system, BlinkMacSystemFont,
1287
- 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;`, en = (e = !1, t = !1) => {
1288
- const n = T`
1289
- outline-width: var(--cc_size_border_width_m);
1290
- outline-style: solid;
1291
- `;
1292
- return e || t ? T`
1293
- ${n}
1294
- outline-color: ${t && !e ? "var(--cc_color_utility_success)" : "var(--cc_color_utility_destroy)"};
1295
- ` : T`
1296
- ${n}
1297
- outline-color: var(--cc_color_border_input_active);
1298
- `;
1299
- }, Os = ({ disabled: e = !1, readOnly: t = !1 }) => `
1300
- all: initial;
1301
- box-sizing: border-box;
1302
- font-family: inherit;
1303
- font-weight: 700;
1304
- max-width: 100%;
1305
- overflow: visible;
1306
- display: inline-block;
1307
- vertical-align: middle;
1308
- text-align: center;
1309
- background: none;
1310
- position: relative;
1311
- appearance: none;
1312
- text-decoration: none;
1313
- touch-action: manipulation;
1314
- cursor: pointer;
1315
- user-select: none;
1316
- -webkit-font-smoothing: antialiased;
1317
- -moz-osx-font-smoothing: grayscale;
1318
-
1319
- &:focus-visible {
1320
- ${en}
1321
- }
1322
-
1323
- ${e || t ? T`
1324
- pointer-events: none;
1325
- ` : ""}
1326
- ${e ? T`
1327
- opacity: 0.5;
1328
- cursor: not-allowed;
1329
- ` : ""}
1330
- `, Rs = {
1331
- small: "var(--cc_size_avatar_m)",
1332
- medium: "var(--cc_size_avatar_l)",
1333
- large: "48px"
1334
- }, Ds = T`
1335
- margin: -1px;
1336
- padding: 0;
1337
- width: 1px;
1338
- height: 1px;
1339
- overflow: hidden;
1340
- clip: rect(0 0 0 0);
1341
- clip: rect(0, 0, 0, 0);
1342
- position: absolute;
1343
- `, js = (e) => {
1344
- const t = ["xxl", "xl", "l", "m", "s", "xs", "xxs"], n = e.split(" "), r = [];
1345
- return n.forEach((o) => {
1346
- t.includes(o) ? r.push(`var(--cc_size_spacing_${o})`) : r.push("0");
1347
- }), r.join(" ");
1348
- }, tn = {
1349
- large: q.size_avatar_l,
1350
- medium: q.size_avatar_m,
1351
- small: q.size_avatar_s,
1352
- xsmall: q.size_avatar_xs
1353
- }, Ms = u.span`
1354
- box-sizing: border-box;
1355
- position: relative;
1356
- display: inline-flex;
1357
- width: ${(e) => e.$avatarSize}px;
1358
- height: ${(e) => e.$avatarSize}px;
1359
- background-color: var(--cc_color_background_3);
1360
- border-radius: 100%;
1361
- color: var(--cc_color_text_subtle);
1362
- ${lt};
1363
- font-weight: 600;
1364
- `, Ls = u.img`
1365
- width: 100%;
1366
- height: 100%;
1367
- border-radius: 100%;
1368
- object-fit: cover;
1369
- object-position: center;
1370
- `, Ct = u.span`
1371
- font-size: ${(e) => e.$initialsTextSize}px;
1372
- width: 100%;
1373
- height: 100%;
1374
- display: grid;
1375
- place-items: center;
1376
- text-align: center;
1377
- `, Bs = u.i`
1378
- // make icon slightly larger than initials
1379
- font-size: ${(e) => e.$initialsTextSize + 4}px;
1380
- `, Fs = u.span`
1381
- position: absolute;
1382
- display: block;
1383
- pointer-events: none;
1384
- top: 0;
1385
- left: 0;
1386
- right: 0;
1387
- bottom: 0;
1388
- border-width: var(--cc_size_border_width_m);
1389
- border-style: solid;
1390
- border-radius: 100%;
1391
- `, Gi = ({
1392
- fullName: e,
1393
- iconName: t,
1394
- imageSrc: n,
1395
- initials: r,
1396
- size: o = "medium",
1397
- testId: s
1398
- }) => {
1399
- var p, d;
1400
- const i = typeof o == "number" ? o : tn[o], c = Math.round(i / 2.25), a = ((d = (p = e.match(/(\b\S)?/g)) == null ? void 0 : p.join("").match(/(^\S|\S$)?/g)) == null ? void 0 : d.join("")) ?? "";
1401
- return /* @__PURE__ */ O(Ms, { $avatarSize: i, "data-testid": s, children: [
1402
- n ? null : /* @__PURE__ */ h(yr, { children: e }),
1403
- (() => n ? /* @__PURE__ */ h(Ls, { src: n, alt: e }) : t ? /* @__PURE__ */ h(Ct, { $initialsTextSize: c, children: /* @__PURE__ */ h(
1404
- Bs,
1405
- {
1406
- $initialsTextSize: c,
1407
- className: `mdi mdi-${t}`,
1408
- "aria-hidden": "true"
1409
- }
1410
- ) }) : /* @__PURE__ */ h(Ct, { $initialsTextSize: c, "aria-hidden": "true", children: r || a }))(),
1411
- /* @__PURE__ */ h(Fs, {})
1412
- ] });
1413
- }, j = {
1414
- add_on: "add_on",
1415
- assigned: "assigned",
1416
- caution: "caution",
1417
- destroy: "destroy",
1418
- info: "info",
1419
- success: "success",
1420
- upgrade: "upgrade"
1421
- }, me = {
1422
- small: "small",
1423
- medium: "medium"
1424
- }, Hs = (e) => {
1425
- switch (e) {
1426
- case j.info:
1427
- return "var(--cc_color_background_2)";
1428
- case j.upgrade:
1429
- return "var(--cc_color_brand_upgrade_alpha_20)";
1430
- case j.assigned:
1431
- return "var(--cc_color_utility_assigned_alpha_20)";
1432
- case j.add_on:
1433
- return "var(--cc_color_brand_add_on_alpha_20)";
1434
- default:
1435
- return `var(--cc_color_utility_${e}_alpha_20)`;
1436
- }
1437
- }, Vs = (e) => {
1438
- switch (e) {
1439
- case j.info:
1440
- return "var(--cc_color_border_default)";
1441
- case j.upgrade:
1442
- return "var(--cc_color_brand_upgrade_alpha_60)";
1443
- case j.assigned:
1444
- return "var(--cc_color_utility_assigned_alpha_60)";
1445
- case j.add_on:
1446
- return "var(--cc_color_brand_add_on_alpha_60)";
1447
- default:
1448
- return `var(--cc_color_utility_${e}_alpha_60)`;
1449
- }
1450
- }, Gs = u.span`
1451
- display: inline-flex;
1452
- align-items: center;
1453
- justify-content: center;
1454
- gap: var(--cc_size_spacing_xs);
1455
- background-color: ${(e) => Hs(e.color || j.info)};
1456
- border-radius: var(--cc_size_border_radius_pill);
1457
- border: var(--cc_size_border_width_s) solid
1458
- ${(e) => Vs(e.color || j.info)};
1459
- padding: ${(e) => e.size === me.small ? "6px" : "var(--cc_size_spacing_s)"};
1460
- height: ${(e) => e.size === me.small ? "var(--cc_size_avatar_xs)" : "var(--cc_size_avatar_s)"};
1461
- line-height: 1.5;
1462
- `, Ys = u.i`
1463
- color: var(--cc_color_text_default);
1464
- font-size: ${(e) => e.size === me.small ? "11px" : "14px"};
1465
- line-height: 0;
1466
- `, Us = u.span`
1467
- color: var(--cc_color_text_default);
1468
- font-family: 'Averta', system-ui, sans-serif;
1469
- font-weight: 600;
1470
- font-size: ${(e) => e.size === me.small ? "9px" : "10px"};
1471
- text-transform: uppercase;
1472
- white-space: nowrap;
1473
- overflow: hidden;
1474
- text-overflow: ellipsis;
1475
- letter-spacing: 0.25px;
1476
-
1477
- &:empty {
1478
- display: none;
1479
- }
1480
- `;
1481
- function Yi({
1482
- children: e,
1483
- color: t = j.info,
1484
- className: n,
1485
- iconName: r,
1486
- size: o = me.medium,
1487
- style: s,
1488
- testId: i
1489
- }) {
1490
- return /* @__PURE__ */ O(
1491
- Gs,
1492
- {
1493
- size: o,
1494
- className: n,
1495
- color: t,
1496
- style: s,
1497
- "data-testid": i,
1498
- children: [
1499
- r ? /* @__PURE__ */ h(Ys, { size: o, className: `mdi mdi-${r}` }) : null,
1500
- /* @__PURE__ */ h(Us, { size: o, children: e })
1501
- ]
1502
- }
1503
- );
1504
- }
1505
- const Ws = Jt`
1506
- to {
1507
- stroke-dashoffset: 200;
1508
- }
1509
- `, qs = Jt`
1510
- to {
1511
- transform: rotate(1turn);
1512
- }
1513
- `, Xs = u.span`
1514
- display: inline-flex;
1515
- flex-direction: ${(e) => e.$layout === "vertical" ? "column" : "row"};
1516
- align-items: center;
1517
- `, Ks = u.span`
1518
- font-family: system-ui, sans-serif;
1519
- font-weight: 400;
1520
- font-size: ${(e) => e.$fontSize}px;
1521
- color: var(--cc_color_text_nonessential);
1522
- margin-${(e) => e.$layout === "vertical" ? "block-start" : "inline-start"}: 12px;
1523
- `, Zs = u.span`
1524
- display: block;
1525
- position: relative;
1526
- width: ${(e) => e.$size}px;
1527
- height: ${(e) => e.$size}px;
1528
- `, Qs = u.svg`
1529
- position: absolute;
1530
- top: 0;
1531
- bottom: 0;
1532
- left: 0;
1533
- right: 0;
1534
- transform: rotate(0turn);
1535
- animation-name: ${qs};
1536
- animation-duration: 0.75s;
1537
- animation-iteration-count: infinite;
1538
- animation-timing-function: linear;
1539
- `, Js = u.circle`
1540
- stroke: ${(e) => e.$trackColor};
1541
- fill: transparent;
1542
- stroke-width: 28;
1543
- `, ei = u.circle`
1544
- stroke: ${(e) => e.$meterColor};
1545
- stroke-width: 28;
1546
- fill: transparent;
1547
- stroke-dasharray: 540;
1548
- stroke-dashoffset: 506;
1549
- animation-name: ${Ws};
1550
- animation-duration: 1s;
1551
- animation-iteration-count: infinite;
1552
- animation-direction: alternate;
1553
- animation-timing-function: linear;
1554
- `, ti = ({
1555
- accessibilityLabel: e,
1556
- testId: t,
1557
- className: n,
1558
- label: r,
1559
- layout: o = "horizontal",
1560
- meterColor: s = "var(--cc_color_border_input_inactive)",
1561
- size: i = "medium",
1562
- style: c,
1563
- trackColor: a = "var(--cc_color_background_2)"
1564
- }) => {
1565
- const l = typeof i == "number" ? i : tn[i], p = l <= 24 ? 12 : 14, d = /* @__PURE__ */ h(
1566
- Zs,
1567
- {
1568
- $size: l,
1569
- className: n,
1570
- style: c,
1571
- "data-testid": t,
1572
- children: /* @__PURE__ */ O(
1573
- Qs,
1574
- {
1575
- viewBox: "0 0 200 200",
1576
- focusable: "false",
1577
- "data-svg-type": "spinner",
1578
- children: [
1579
- /* @__PURE__ */ h("title", { children: e }),
1580
- /* @__PURE__ */ O("g", { role: "presentation", children: [
1581
- /* @__PURE__ */ h(Js, { r: "86", cy: "100", cx: "100", $trackColor: a }),
1582
- /* @__PURE__ */ h(ei, { r: "86", cy: "100", cx: "100", $meterColor: s })
1583
- ] })
1584
- ]
1585
- }
1586
- )
1587
- }
1588
- );
1589
- return r ? /* @__PURE__ */ O(Xs, { $layout: o, children: [
1590
- d,
1591
- /* @__PURE__ */ h(Ks, { $fontSize: p, $layout: o, children: r })
1592
- ] }) : d;
1593
- }, Ge = {
1594
- solid: "solid",
1595
- outline: "outline",
1596
- minimal: "minimal"
1597
- }, ni = {
1598
- small: "0 calc(var(--cc_size_spacing_s) * 1.25)",
1599
- medium: "0 var(--cc_size_spacing_m)",
1600
- large: "0 var(--cc_size_spacing_l)"
1601
- }, tt = {
1602
- // bump up by 1 because Averta renders smaller than system font
1603
- small: "calc(var(--cc_size_text_xs) + 1px)",
1604
- medium: "calc(var(--cc_size_text_s) + 1px)",
1605
- large: "calc(var(--cc_size_text_m) + 1px)"
1606
- }, ri = (e) => `
1607
- color: var(--cc_color_button_text_${e});
1608
- background: var(--cc_color_button_background_${e});
1609
- &:hover {
1610
- background: var(--cc_color_button_background_${e}_darken_10);
1611
- }
1612
- `, oi = (e, t) => e === "destroy" || e === "success" ? `
1613
- background: transparent;
1614
- color: var(--cc_color_utility_${e});
1615
- &:hover {
1616
- color: var(--cc_color_utility_${e}_darken_10);
1617
- background: var(--cc_color_button_background_${e}_alpha_10);
1618
- }
1619
- ${t ? `
1620
- border-color: var(--cc_color_button_background_${e});
1621
- &:hover {
1622
- border-color: var(--cc_color_button_background_${e}_darken_10);
1623
- }
1624
- ` : null}
1625
- ` : `
1626
- background: transparent;
1627
- color: var(--cc_color_link_${e});
1628
- &:hover {
1629
- background: var(--cc_color_button_background_${e}_alpha_${e === "subtle" ? "70" : "10"});
1630
- color: var(--cc_color_link_${e}_darken_15);
1631
- }
1632
- ${t ? `
1633
- border-color: var(--cc_color_link_${e});
1634
- &:hover {
1635
- border-color: var(--cc_color_link_${e}_darken_10);
1636
- }
1637
- ` : null}
1638
- `, si = u.button`
1639
- ${(e) => Os({ disabled: e.disabled })}
1640
- -webkit-font-smoothing: antialiased;
1641
- -moz-osx-font-smoothing: grayscale;
1642
- line-height: 1.2;
1643
- display: inline-flex;
1644
- align-items: center;
1645
- justify-content: center;
1646
- gap: ${(e) => `calc(${tt[e.$size]} * 0.25 + 4px)`};
1647
- border: var(--cc_size_border_width_m) solid transparent;
1648
- border-radius: var(--cc_size_border_radius_l);
1649
- font-weight: 700;
1650
- transition: transform 0.25s, color 0.25s, background 0.25s;
1651
- box-sizing: border-box;
1652
- ${(e) => e.$design === Ge.outline || e.$design === Ge.minimal ? oi(
1653
- e.$color,
1654
- e.$design === Ge.outline
1655
- ) : ri(e.$color)};
1656
- height: ${(e) => Rs[e.$size]};
1657
- padding: ${(e) => ni[e.$size]};
1658
- font-family: 'Averta', system-ui, -apple-system, BlinkMacSystemFont,
1659
- 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
1660
- font-size: ${(e) => tt[e.$size]};
1661
-
1662
- &:active {
1663
- transform: scale(0.98);
1664
- }
1665
- `, ii = u.span`
1666
- position: relative;
1667
- white-space: nowrap;
1668
- overflow: hidden;
1669
- text-overflow: ellipsis;
1670
- ${(e) => e.$isLoading ? T`
1671
- visibility: hidden;
1672
- ` : null}
1673
- `, ai = u(ti)`
1674
- position: absolute;
1675
- top: 50%;
1676
- left: 50%;
1677
- transform: translate3d(-50%, -50%, 0);
1678
- `, ci = u.i`
1679
- // make icons render at the font size + 4px
1680
- font-size: ${(e) => `calc(${tt[e.size]} + 4px)`};
1681
- // because MD icon font has extra space at top
1682
- transform: translateY(-0.05ch);
1683
- top: 0;
1684
-
1685
- ${(e) => e.$isLoading ? T`
1686
- visibility: hidden;
1687
- ` : null}
1688
- `, nt = ({
1689
- children: e,
1690
- color: t = "subtle",
1691
- design: n = "solid",
1692
- href: r,
1693
- icon: o = { position: "before" },
1694
- loading: s = !1,
1695
- size: i = "medium",
1696
- type: c = "button",
1697
- ...a
1698
- }) => {
1699
- const l = o != null && o.name ? /* @__PURE__ */ h(ci, { className: `mdi mdi-${o.name}`, size: i, $isLoading: s }) : null;
1700
- return /* @__PURE__ */ O(
1701
- si,
1702
- {
1703
- as: r ? "a" : "button",
1704
- $color: t,
1705
- href: r,
1706
- disabled: a.disabled,
1707
- $design: n,
1708
- $size: i,
1709
- type: r ? void 0 : c,
1710
- className: a.className,
1711
- style: a.style,
1712
- ...a,
1713
- children: [
1714
- (o == null ? void 0 : o.position) === "before" ? l : null,
1715
- /* @__PURE__ */ h(ii, { $isLoading: s, children: e }),
1716
- (o == null ? void 0 : o.position) === "after" ? l : null,
1717
- s ? /* @__PURE__ */ h(
1718
- ai,
1719
- {
1720
- accessibilityLabel: "Loading",
1721
- size: i === "large" ? 20 : "xsmall",
1722
- trackColor: "rgba(0, 0, 0, 0.2)",
1723
- meterColor: "currentColor"
1724
- }
1725
- ) : null
1726
- ]
1727
- }
1728
- );
1729
- }, re = {
1730
- xxxl: {
1731
- size: "var(--cc_size_text_xxxl)",
1732
- family: "heading",
1733
- weight: 800,
1734
- lineHeight: 1.1
1735
- },
1736
- xxl: {
1737
- size: "var(--cc_size_text_xxl)",
1738
- family: "heading",
1739
- weight: 800,
1740
- lineHeight: 1.1
1741
- },
1742
- xl: {
1743
- size: "var(--cc_size_text_xl)",
1744
- family: "heading",
1745
- weight: 700,
1746
- lineHeight: 1.1
1747
- },
1748
- l: {
1749
- size: "var(--cc_size_text_l)",
1750
- family: "system",
1751
- weight: 700,
1752
- lineHeight: 1.2
1753
- },
1754
- m: {
1755
- size: "var(--cc_size_text_m)",
1756
- family: "system",
1757
- lineHeight: 1.4
1758
- },
1759
- s: {
1760
- size: "var(--cc_size_text_s)",
1761
- family: "system",
1762
- lineHeight: 1.4
1763
- },
1764
- xs: {
1765
- size: "var(--cc_size_text_xs)",
1766
- family: "system",
1767
- lineHeight: 1.4
1768
- },
1769
- xxs: {
1770
- size: "var(--cc_size_text_xxs)",
1771
- family: "system",
1772
- lineHeight: 1.4
1773
- }
1774
- }, li = u.span`
1775
- /* unset all global typography styles */
1776
- all: unset;
1777
-
1778
- /* default is block */
1779
- display: ${(e) => e.$display};
1780
-
1781
- /* Component can inherit font color for one-offs */
1782
- color: ${(e) => e.$color === "inherit" ? "inherit" : `var(--cc_color_text_${e.$color})`};
1783
-
1784
- /* Use either Averta (heading) or system font stack default */
1785
- ${(e) => e.$family && e.$family === "heading" || re[e.size].family === "heading" ? lt : ct}
1786
-
1787
- /* Add 1px to font size if heading font family, due to Averta lookin' too small */
1788
- font-size: ${(e) => e.$family === "heading" ? `calc(${re[e.size].size} + 1px)` : re[e.size].size};
1789
- line-height: ${(e) => re[e.size].lineHeight};
1790
-
1791
- /* if ccMargin is specified in props, convert spacing tokens to CSS variables */
1792
- ${(e) => e.$ccMargin ? T`
1793
- margin: ${js(e.$ccMargin)};
1794
- ` : null}
1795
-
1796
- /* if user specifies weight in props OR there is a weight default for the font size, set it in CSS */
1797
- ${(e) => e.$weight || re[e.size].weight ? T`
1798
- font-weight: ${e.$weight || re[e.size].weight};
1799
- ` : null}
1800
- `;
1801
- function Et({
1802
- as: e,
1803
- forwardedAs: t,
1804
- children: n,
1805
- color: r = "default",
1806
- size: o = "s",
1807
- family: s,
1808
- ccMargin: i,
1809
- weight: c,
1810
- display: a = "block",
1811
- className: l,
1812
- style: p,
1813
- ...d
1814
- }) {
1815
- return /* @__PURE__ */ h(
1816
- li,
1817
- {
1818
- as: e,
1819
- forwardedAs: t,
1820
- size: o,
1821
- $family: s,
1822
- $ccMargin: i,
1823
- $color: r,
1824
- $weight: c,
1825
- $display: a,
1826
- className: l,
1827
- style: p,
1828
- ...d,
1829
- children: n
1830
- }
1831
- );
1832
- }
1833
- const di = {
1834
- success: "var(--cc_color_utility_success)",
1835
- caution: "var(--cc_color_utility_caution)",
1836
- destroy: "var(--cc_color_utility_destroy)",
1837
- info: "var(--cc_color_utility_info)"
1838
- }, ui = u.div`
1839
- height: 100%;
1840
- display: flex;
1841
- align-items: center;
1842
- justify-content: center;
1843
- flex-direction: column;
1844
- `, pi = u.div`
1845
- text-align: center;
1846
- `, _i = u.div`
1847
- height: 128px;
1848
- width: 128px;
1849
- margin-block-end: var(--cc_size_spacing_xs);
1850
- `, fi = u.img`
1851
- width: 100%;
1852
- height: 100%;
1853
- object-fit: contain;
1854
- `, hi = u.i`
1855
- display: block;
1856
- color: ${(e) => di[e.$iconColor]};
1857
- font-size: 48px;
1858
- line-height: 1;
1859
- margin-block-end: var(--cc_size_spacing_xs);
1860
- `, gi = u.div`
1861
- display: flex;
1862
- flex-direction: column;
1863
- gap: var(--cc_size_spacing_s);
1864
- margin-block-start: var(--cc_size_spacing_m);
1865
- `, Ui = ({
1866
- image: e,
1867
- className: t,
1868
- color: n = "info",
1869
- iconName: r,
1870
- message: o = "",
1871
- primaryAction: s,
1872
- secondaryAction: i,
1873
- style: c,
1874
- title: a
1875
- }) => {
1876
- var p, d, m, g;
1877
- return /* @__PURE__ */ O(ui, { className: t, style: c, children: [
1878
- (() => e != null && e.src ? /* @__PURE__ */ h(_i, { style: e.imageContainerStyle, children: /* @__PURE__ */ h(fi, { src: e.src, alt: e.alt }) }) : /* @__PURE__ */ h(
1879
- hi,
1880
- {
1881
- className: `mdi mdi-${r}`,
1882
- $iconColor: n,
1883
- "aria-hidden": "true"
1884
- }
1885
- ))(),
1886
- /* @__PURE__ */ O(pi, { children: [
1887
- a ? /* @__PURE__ */ h(
1888
- Et,
1889
- {
1890
- as: "h3",
1891
- family: "heading",
1892
- size: "xl",
1893
- weight: "800",
1894
- ccMargin: "none none xs",
1895
- children: a
1896
- }
1897
- ) : null,
1898
- /* @__PURE__ */ h(Et, { as: "p", color: "subtle", children: o })
1899
- ] }),
1900
- /* @__PURE__ */ O(gi, { children: [
1901
- s ? /* @__PURE__ */ h(
1902
- nt,
1903
- {
1904
- ...s,
1905
- "data-testid": s["data-testid"],
1906
- color: n === "destroy" ? "destroy" : "primary",
1907
- icon: {
1908
- name: (p = s.icon) == null ? void 0 : p.name,
1909
- position: (d = s.icon) == null ? void 0 : d.position
1910
- },
1911
- children: s.label
1912
- }
1913
- ) : null,
1914
- i ? /* @__PURE__ */ h(
1915
- nt,
1916
- {
1917
- ...i,
1918
- "datatest-id": i["data-testid"],
1919
- color: "subtle",
1920
- icon: {
1921
- name: (m = i.icon) == null ? void 0 : m.name,
1922
- position: (g = i.icon) == null ? void 0 : g.position
1923
- },
1924
- children: i.label
1925
- }
1926
- ) : null
1927
- ] })
1928
- ] });
1929
- }, mi = u(nt)`
1930
- padding: 0 0.25ch;
1931
- height: auto;
1932
- line-height: inherit;
1933
- vertical-align: baseline;
1934
- border-radius: var(--cc_size_border_radius_m);
1935
- `, Wi = ({ ...e }) => /* @__PURE__ */ h(mi, { design: "minimal", ...e }), yi = {
1936
- default: "default",
1937
- error: "error",
1938
- success: "success"
1939
- }, bi = {
1940
- error: "alert-circle-outline",
1941
- success: "check-circle-outline"
1942
- }, vi = u.div`
1943
- position: relative;
1944
- z-index: 1;
1945
- ${(e) => e.disabled ? T`
1946
- opacity: 0.5;
1947
- pointer-events: none;
1948
- user-select: none;
1949
- ` : null}
1950
- `, xi = u.div`
1951
- display: flex;
1952
- align-items: center;
1953
- gap: var(--cc_size_spacing_xs);
1954
- font-size: var(--cc_size_text_xs);
1955
- font-weight: 400;
1956
- margin-block-start: var(--cc_size_spacing_xs);
1957
- color: ${(e) => `var(--cc_color_utility_${e.status})`};
1958
- `, wi = u.i`
1959
- font-size: 18px;
1960
- flex-shrink: 0;
1961
- `, ki = u.span`
1962
- ${ct}
1963
- `;
1964
- function $i({
1965
- children: e,
1966
- className: t,
1967
- disabled: n = !1,
1968
- id: r,
1969
- message: o,
1970
- status: s = "default",
1971
- style: i
1972
- }) {
1973
- return /* @__PURE__ */ O(vi, { className: t, style: i, disabled: n, children: [
1974
- e,
1975
- o ? /* @__PURE__ */ O(xi, { status: yi[s], children: [
1976
- s === "success" || s === "error" ? /* @__PURE__ */ h(
1977
- wi,
1978
- {
1979
- className: `mdi mdi-${bi[s]}`,
1980
- "aria-hidden": "true"
1981
- }
1982
- ) : null,
1983
- /* @__PURE__ */ h(ki, { id: `${r}-message`, children: o })
1984
- ] }) : null
1985
- ] });
1986
- }
1987
- const Si = u.label`
1988
- all: initial;
1989
- ${(e) => e.$hideLabel ? Ds : T`
1990
- box-sizing: border-box;
1991
- display: block;
1992
- ${lt}
1993
- font-weight: 600;
1994
- font-size: calc(var(--cc_size_text_s) + 1px);
1995
- color: var(--cc_color_text_default);
1996
- margin-block-end: var(--cc_size_spacing_xs);
1997
- `}
1998
- `, zi = u.input`
1999
- all: initial;
2000
- box-sizing: border-box;
2001
- background: transparent;
2002
- ${ct};
2003
- font-size: var(--cc_size_text_m);
2004
- color: var(--cc_color_text_default);
2005
- padding: 0 calc(var(--cc_size_spacing_m) * 0.75);
2006
- flex: 1;
2007
- height: ${(e) => e.$inputSize === "medium" ? 38 : 48}px;
2008
- overflow: hidden;
2009
- max-width: 100%;
2010
- &::placeholder {
2011
- color: var(--cc_color_text_nonessential);
2012
- }
2013
- `, Ci = u.div`
2014
- border-width: var(--cc_size_border_width_s);
2015
- border-style: solid;
2016
- border-color: ${(e) => e.$error ? "var(--cc_color_utility_destroy)" : "var(--cc_color_border_input_inactive)"};
2017
- display: flex;
2018
- align-items: center;
2019
- min-width: 1px;
2020
- transition: border-color 0.3s;
2021
- border-radius: ${(e) => e.$type === "search" ? "var(--cc_size_border_radius_pill)" : "var(--cc_size_border_radius_l)"};
2022
- background: var(--cc_color_background_1);
2023
- ${(e) => e.$disabled ? null : T`
2024
- &:hover {
2025
- border-color: var(--cc_color_button_background_secondary);
2026
- }
2027
- `}
2028
-
2029
- &:focus-within {
2030
- ${(e) => en(e.$error, e.$success)}
2031
- border-color: transparent;
2032
- outline-offset: -2px;
2033
- }
2034
- `, Ei = u.i`
2035
- color: var(--cc_color_text_nonessential);
2036
- font-size: ${(e) => e.$inputSize === "large" ? 22 : 20}px;
2037
- margin-inline-start: calc(var(--cc_size_spacing_m) * 0.75);
2038
- line-height: 1;
2039
- `, It = u.span`
2040
- flex-shrink: 0;
2041
- `, Ii = ({ success: e, error: t }) => e && !t ? "success" : t ? "error" : "default", Ai = ({ type: e }) => {
2042
- switch (e) {
2043
- case "email":
2044
- return "email-outline";
2045
- case "tel":
2046
- return "phone-outline";
2047
- case "search":
2048
- return "magnify";
2049
- case "url":
2050
- return "web";
2051
- default:
2052
- return null;
2053
- }
2054
- };
2055
- function qi({
2056
- className: e,
2057
- contentBefore: t,
2058
- contentAfter: n,
2059
- error: r = !1,
2060
- hideLabel: o = !1,
2061
- id: s,
2062
- label: i,
2063
- message: c,
2064
- name: a,
2065
- inputSize: l = "medium",
2066
- style: p,
2067
- success: d = !1,
2068
- testId: m,
2069
- type: g = "text",
2070
- ...v
2071
- }) {
2072
- const $ = Ai({ type: g }), N = t || $, z = () => N ? /* @__PURE__ */ h(It, { children: t || /* @__PURE__ */ h(Ei, { className: `mdi mdi-${$}`, $inputSize: l }) }) : null;
2073
- return /* @__PURE__ */ O(
2074
- $i,
2075
- {
2076
- id: s,
2077
- message: c,
2078
- disabled: v.disabled,
2079
- className: e,
2080
- status: Ii({ success: d, error: r }),
2081
- style: p,
2082
- children: [
2083
- /* @__PURE__ */ h(Si, { htmlFor: s, $hideLabel: o, children: i }),
2084
- /* @__PURE__ */ O(
2085
- Ci,
2086
- {
2087
- $disabled: v.disabled || !1,
2088
- $success: d,
2089
- $error: r,
2090
- $type: g,
2091
- children: [
2092
- z(),
2093
- /* @__PURE__ */ h(
2094
- zi,
2095
- {
2096
- disabled: v.disabled,
2097
- "aria-labelledby": c ? `${s}-message` : "",
2098
- "aria-invalid": r,
2099
- id: s,
2100
- name: a || s,
2101
- $inputSize: l,
2102
- "data-testid": m,
2103
- type: g,
2104
- ...v
2105
- }
2106
- ),
2107
- n ? /* @__PURE__ */ h(It, { children: n }) : null
2108
- ]
2109
- }
2110
- )
2111
- ]
2112
- }
2113
- );
2114
- }
2115
- const k = {
2116
- add_on: "add_on",
2117
- assigned: "assigned",
2118
- caution: "caution",
2119
- destroy: "destroy",
2120
- info: "info",
2121
- success: "success",
2122
- upgrade: "upgrade"
2123
- }, Z = {
2124
- small: "small",
2125
- medium: "medium",
2126
- large: "large"
2127
- }, Ni = (e) => {
2128
- switch (e) {
2129
- case k.add_on:
2130
- return "var(--cc_color_brand_add_on_alpha_10)";
2131
- case k.assigned:
2132
- return "var(--cc_color_utility_assigned_alpha_10)";
2133
- case k.caution:
2134
- return "var(--cc_color_utility_caution_alpha_20)";
2135
- case k.destroy:
2136
- return "var(--cc_color_utility_destroy_alpha_10)";
2137
- case k.info:
2138
- return "var(--cc_color_background_3_alpha_80)";
2139
- case k.success:
2140
- return "var(--cc_color_utility_success_alpha_10)";
2141
- case k.upgrade:
2142
- return "var(--cc_color_brand_upgrade_alpha_10)";
2143
- default:
2144
- return "var(--cc_color_background_3_alpha_80)";
2145
- }
2146
- }, Ti = (e) => {
2147
- switch (e) {
2148
- case k.add_on:
2149
- return "var(--cc_color_brand_add_on)";
2150
- case k.assigned:
2151
- return "var(--cc_color_utility_assigned)";
2152
- case k.caution:
2153
- return "var(--cc_color_utility_caution)";
2154
- case k.destroy:
2155
- return "var(--cc_color_utility_destroy)";
2156
- case k.info:
2157
- return "var(--cc_color_utility_info_alpha_80)";
2158
- case k.success:
2159
- return "var(--cc_color_utility_success)";
2160
- case k.upgrade:
2161
- return "var(--cc_color_brand_upgrade)";
2162
- default:
2163
- return "var(--cc_color_utility_info_alpha_80)";
2164
- }
2165
- }, Pi = (e) => {
2166
- switch (e) {
2167
- case k.add_on:
2168
- return "var(--cc_color_background_1)";
2169
- case k.assigned:
2170
- return "var(--cc_color_background_1)";
2171
- case k.caution:
2172
- return q.color_text_default_le;
2173
- case k.destroy:
2174
- return "var(--cc_color_background_1)";
2175
- case k.info:
2176
- return q.color_text_default_de;
2177
- case k.success:
2178
- return "var(--cc_color_background_1)";
2179
- case k.upgrade:
2180
- return "var(--cc_color_brand_secondary)";
2181
- default:
2182
- return q.color_text_default_de;
2183
- }
2184
- }, Oi = (e, t) => {
2185
- switch (t) {
2186
- case "add_on":
2187
- return e || "information-outline";
2188
- case "assigned":
2189
- return e || "account-check";
2190
- case "success":
2191
- return e || "check";
2192
- case "caution":
2193
- return e || "alert-circle-outline";
2194
- case "destroy":
2195
- return e || "alert-circle-outline";
2196
- case "upgrade":
2197
- return e || "lightning-bolt";
2198
- default:
2199
- return e || "information-outline";
2200
- }
2201
- }, Ri = (e) => {
2202
- switch (e) {
2203
- case "small":
2204
- return "6px 8px";
2205
- case "medium":
2206
- return "calc(var(--cc_size_spacing_s) + 2px) var(--cc_size_spacing_m) calc(var(--cc_size_spacing_s) + 2px)";
2207
- case "large":
2208
- return "var(--cc_size_spacing_m) var(--cc_size_spacing_l) var(--cc_size_spacing_m) var(--cc_size_spacing_m)";
2209
- }
2210
- }, At = (e) => {
2211
- switch (e) {
2212
- case "small":
2213
- return 24;
2214
- case "medium":
2215
- return 28;
2216
- case "large":
2217
- return 34;
2218
- }
2219
- }, Di = (e) => {
2220
- switch (e) {
2221
- case "small":
2222
- return "var(--cc_size_text_xs)";
2223
- case "medium":
2224
- return "calc(var(--cc_size_text_s) - 1px)";
2225
- case "large":
2226
- return "var(--cc_size_text_s)";
2227
- }
2228
- }, ji = (e) => {
2229
- switch (e) {
2230
- case "small":
2231
- return 16;
2232
- case "medium":
2233
- return 18;
2234
- case "large":
2235
- return 22;
2236
- }
2237
- }, Mi = u.div`
2238
- display: flex;
2239
- flex-wrap: wrap;
2240
- align-items: ${({ $contentAlign: e = "center" }) => e};
2241
- gap: ${({ size: e = Z.medium }) => e === "small" ? "calc(var(--cc_size_spacing_s) + 2px)" : "var(--cc_size_spacing_m)"};
2242
- padding: ${({ size: e = Z.medium }) => Ri(e)};
2243
- background-color: ${({ color: e = k.info }) => Ni(e)};
2244
- border-radius: var(--cc_size_border_radius_l);
2245
- color: var(--cc_color_text_subtle);
2246
- font-size: ${({ size: e = Z.medium }) => Di(e)};
2247
- font-family: system-ui, sans-serif;
2248
- line-height: 1.3;
2249
- `, Li = u.span`
2250
- flex: 1;
2251
- `, Nt = u.span`
2252
- flex-shrink: 0;
2253
- `, Bi = u.span`
2254
- flex-shrink: 0;
2255
- display: grid;
2256
- place-items: center;
2257
- width: ${({ size: e = Z.medium }) => At(e)}px;
2258
- height: ${({ size: e = Z.medium }) => At(e)}px;
2259
- background-color: ${({ color: e = k.info }) => Ti(e)};
2260
- border-radius: var(--cc_size_border_radius_l);
2261
- `, Fi = u.i`
2262
- font-size: ${({ size: e = Z.medium }) => ji(e)}px;
2263
- color: ${({ color: e = k.info }) => Pi(e)};
2264
- `;
2265
- function Xi({
2266
- children: e,
2267
- color: t = k.info,
2268
- contentBefore: n,
2269
- contentAfter: r,
2270
- contentAlign: o = "center",
2271
- iconName: s = "",
2272
- hideIcon: i,
2273
- size: c = Z.medium,
2274
- testId: a
2275
- }) {
2276
- return /* @__PURE__ */ O(
2277
- Mi,
2278
- {
2279
- color: t,
2280
- size: c,
2281
- $contentAlign: o,
2282
- "data-testid": a,
2283
- children: [
2284
- !i && !n ? /* @__PURE__ */ h(Bi, { color: t, size: c, children: /* @__PURE__ */ h(
2285
- Fi,
2286
- {
2287
- className: `mdi mdi-${Oi(s, t)}`,
2288
- "aria-hidden": "true",
2289
- size: c,
2290
- color: t,
2291
- "data-testid": "icon"
2292
- }
2293
- ) }) : null,
2294
- n ? /* @__PURE__ */ h(Nt, { children: n }) : null,
2295
- /* @__PURE__ */ h(Li, { children: e }),
2296
- r ? /* @__PURE__ */ h(Nt, { children: r }) : null
2297
- ]
2298
- }
2299
- );
2300
- }
2301
- export {
2302
- Gi as Avatar,
2303
- Yi as Badge,
2304
- Ui as Billboard,
2305
- nt as Button,
2306
- Wi as ButtonCondensed,
2307
- qi as InputText,
2308
- Xi as Notice,
2309
- yr as ScreenReaderContent,
2310
- ti as Spinner,
2311
- Et as Text
2312
- };