skillgrid 0.0.28-dev-41308-avatar-group.1182312 → 0.0.28-dev-41308-avatar-group.1182430
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 +9 -9
- package/dist/index.css +1 -1
- package/dist/index.es.js +372 -372
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as Vt from "react";
|
|
2
|
-
import
|
|
2
|
+
import pt, { forwardRef as K, Fragment as Oe, useState as de, useEffect as oe, useRef as Be, useCallback as Se, useMemo as Lr, createContext as Gt, useContext as Yt, useLayoutEffect as Er, useImperativeHandle as jr, useId as _t } from "react";
|
|
3
3
|
import { clsx as k } from "clsx";
|
|
4
4
|
import kr from "rc-tooltip";
|
|
5
5
|
import './index.css';function Mr(e) {
|
|
@@ -19,12 +19,12 @@ var kt;
|
|
|
19
19
|
function Ir() {
|
|
20
20
|
if (kt) return Ue;
|
|
21
21
|
kt = 1;
|
|
22
|
-
var e =
|
|
23
|
-
function l(c,
|
|
22
|
+
var e = pt, r = Symbol.for("react.element"), a = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty, i = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, s = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
23
|
+
function l(c, p, _) {
|
|
24
24
|
var f, h = {}, m = null, b = null;
|
|
25
|
-
|
|
26
|
-
for (f in
|
|
27
|
-
if (c && c.defaultProps) for (f in
|
|
25
|
+
_ !== void 0 && (m = "" + _), p.key !== void 0 && (m = "" + p.key), p.ref !== void 0 && (b = p.ref);
|
|
26
|
+
for (f in p) o.call(p, f) && !s.hasOwnProperty(f) && (h[f] = p[f]);
|
|
27
|
+
if (c && c.defaultProps) for (f in p = c.defaultProps, p) h[f] === void 0 && (h[f] = p[f]);
|
|
28
28
|
return { $$typeof: r, type: c, key: m, ref: b, props: h, _owner: i.current };
|
|
29
29
|
}
|
|
30
30
|
return Ue.Fragment = a, Ue.jsx = l, Ue.jsxs = l, Ue;
|
|
@@ -42,7 +42,7 @@ var Fe = {};
|
|
|
42
42
|
var Mt;
|
|
43
43
|
function $r() {
|
|
44
44
|
return Mt || (Mt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
45
|
-
var e =
|
|
45
|
+
var e = pt, r = Symbol.for("react.element"), a = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), c = Symbol.for("react.context"), p = Symbol.for("react.forward_ref"), _ = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), m = Symbol.for("react.lazy"), b = Symbol.for("react.offscreen"), y = Symbol.iterator, L = "@@iterator";
|
|
46
46
|
function x(t) {
|
|
47
47
|
if (t === null || typeof t != "object")
|
|
48
48
|
return null;
|
|
@@ -59,31 +59,31 @@ function $r() {
|
|
|
59
59
|
}
|
|
60
60
|
function w(t, u, g) {
|
|
61
61
|
{
|
|
62
|
-
var E = v.ReactDebugCurrentFrame,
|
|
63
|
-
|
|
64
|
-
var
|
|
62
|
+
var E = v.ReactDebugCurrentFrame, P = E.getStackAddendum();
|
|
63
|
+
P !== "" && (u += "%s", g = g.concat([P]));
|
|
64
|
+
var z = g.map(function(R) {
|
|
65
65
|
return String(R);
|
|
66
66
|
});
|
|
67
|
-
|
|
67
|
+
z.unshift("Warning: " + u), Function.prototype.apply.call(console[t], console, z);
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
|
-
var C = !1, M = !1, j = !1, I = !1, A = !1,
|
|
71
|
-
|
|
70
|
+
var C = !1, M = !1, j = !1, I = !1, A = !1, D;
|
|
71
|
+
D = Symbol.for("react.module.reference");
|
|
72
72
|
function U(t) {
|
|
73
|
-
return !!(typeof t == "string" || typeof t == "function" || t === o || t === s || A || t === i || t ===
|
|
73
|
+
return !!(typeof t == "string" || typeof t == "function" || t === o || t === s || A || t === i || t === _ || t === f || I || t === b || C || M || j || typeof t == "object" && t !== null && (t.$$typeof === m || t.$$typeof === h || t.$$typeof === l || t.$$typeof === c || t.$$typeof === p || // This needs to include all possible module reference object
|
|
74
74
|
// types supported by any Flight configuration anywhere since
|
|
75
75
|
// we don't know which Flight build this will end up being used
|
|
76
76
|
// with.
|
|
77
|
-
t.$$typeof ===
|
|
77
|
+
t.$$typeof === D || t.getModuleId !== void 0));
|
|
78
78
|
}
|
|
79
79
|
function q(t, u, g) {
|
|
80
80
|
var E = t.displayName;
|
|
81
81
|
if (E)
|
|
82
82
|
return E;
|
|
83
|
-
var
|
|
84
|
-
return
|
|
83
|
+
var P = u.displayName || u.name || "";
|
|
84
|
+
return P !== "" ? g + "(" + P + ")" : g;
|
|
85
85
|
}
|
|
86
|
-
function
|
|
86
|
+
function O(t) {
|
|
87
87
|
return t.displayName || "Context";
|
|
88
88
|
}
|
|
89
89
|
function S(t) {
|
|
@@ -102,7 +102,7 @@ function $r() {
|
|
|
102
102
|
return "Profiler";
|
|
103
103
|
case i:
|
|
104
104
|
return "StrictMode";
|
|
105
|
-
case
|
|
105
|
+
case _:
|
|
106
106
|
return "Suspense";
|
|
107
107
|
case f:
|
|
108
108
|
return "SuspenseList";
|
|
@@ -111,19 +111,19 @@ function $r() {
|
|
|
111
111
|
switch (t.$$typeof) {
|
|
112
112
|
case c:
|
|
113
113
|
var u = t;
|
|
114
|
-
return
|
|
114
|
+
return O(u) + ".Consumer";
|
|
115
115
|
case l:
|
|
116
116
|
var g = t;
|
|
117
|
-
return
|
|
118
|
-
case
|
|
117
|
+
return O(g._context) + ".Provider";
|
|
118
|
+
case p:
|
|
119
119
|
return q(t, t.render, "ForwardRef");
|
|
120
120
|
case h:
|
|
121
121
|
var E = t.displayName || null;
|
|
122
122
|
return E !== null ? E : S(t.type) || "Memo";
|
|
123
123
|
case m: {
|
|
124
|
-
var
|
|
124
|
+
var P = t, z = P._payload, R = P._init;
|
|
125
125
|
try {
|
|
126
|
-
return S(R(
|
|
126
|
+
return S(R(z));
|
|
127
127
|
} catch {
|
|
128
128
|
return null;
|
|
129
129
|
}
|
|
@@ -131,13 +131,13 @@ function $r() {
|
|
|
131
131
|
}
|
|
132
132
|
return null;
|
|
133
133
|
}
|
|
134
|
-
var T = Object.assign,
|
|
134
|
+
var T = Object.assign, B = 0, F, H, Q, ie, Y, ue, ee;
|
|
135
135
|
function Ce() {
|
|
136
136
|
}
|
|
137
137
|
Ce.__reactDisabledLog = !0;
|
|
138
|
-
function
|
|
138
|
+
function ze() {
|
|
139
139
|
{
|
|
140
|
-
if (
|
|
140
|
+
if (B === 0) {
|
|
141
141
|
F = console.log, H = console.info, Q = console.warn, ie = console.error, Y = console.group, ue = console.groupCollapsed, ee = console.groupEnd;
|
|
142
142
|
var t = {
|
|
143
143
|
configurable: !0,
|
|
@@ -155,12 +155,12 @@ function $r() {
|
|
|
155
155
|
groupEnd: t
|
|
156
156
|
});
|
|
157
157
|
}
|
|
158
|
-
|
|
158
|
+
B++;
|
|
159
159
|
}
|
|
160
160
|
}
|
|
161
161
|
function me() {
|
|
162
162
|
{
|
|
163
|
-
if (
|
|
163
|
+
if (B--, B === 0) {
|
|
164
164
|
var t = {
|
|
165
165
|
configurable: !0,
|
|
166
166
|
enumerable: !0,
|
|
@@ -190,7 +190,7 @@ function $r() {
|
|
|
190
190
|
})
|
|
191
191
|
});
|
|
192
192
|
}
|
|
193
|
-
|
|
193
|
+
B < 0 && d("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
194
194
|
}
|
|
195
195
|
}
|
|
196
196
|
var Me = v.ReactCurrentDispatcher, Ie;
|
|
@@ -199,8 +199,8 @@ function $r() {
|
|
|
199
199
|
if (Ie === void 0)
|
|
200
200
|
try {
|
|
201
201
|
throw Error();
|
|
202
|
-
} catch (
|
|
203
|
-
var E =
|
|
202
|
+
} catch (P) {
|
|
203
|
+
var E = P.stack.trim().match(/\n( *(at )?)/);
|
|
204
204
|
Ie = E && E[1] || "";
|
|
205
205
|
}
|
|
206
206
|
return `
|
|
@@ -222,10 +222,10 @@ function $r() {
|
|
|
222
222
|
}
|
|
223
223
|
var E;
|
|
224
224
|
We = !0;
|
|
225
|
-
var
|
|
225
|
+
var P = Error.prepareStackTrace;
|
|
226
226
|
Error.prepareStackTrace = void 0;
|
|
227
|
-
var
|
|
228
|
-
|
|
227
|
+
var z;
|
|
228
|
+
z = Me.current, Me.current = null, ze();
|
|
229
229
|
try {
|
|
230
230
|
if (u) {
|
|
231
231
|
var R = function() {
|
|
@@ -269,16 +269,16 @@ function $r() {
|
|
|
269
269
|
if (V !== 1 || G !== 1)
|
|
270
270
|
do
|
|
271
271
|
if (V--, G--, G < 0 || $[V] !== te[G]) {
|
|
272
|
-
var
|
|
272
|
+
var pe = `
|
|
273
273
|
` + $[V].replace(" at new ", " at ");
|
|
274
|
-
return t.displayName &&
|
|
274
|
+
return t.displayName && pe.includes("<anonymous>") && (pe = pe.replace("<anonymous>", t.displayName)), typeof t == "function" && $e.set(t, pe), pe;
|
|
275
275
|
}
|
|
276
276
|
while (V >= 1 && G >= 0);
|
|
277
277
|
break;
|
|
278
278
|
}
|
|
279
279
|
}
|
|
280
280
|
} finally {
|
|
281
|
-
We = !1, Me.current =
|
|
281
|
+
We = !1, Me.current = z, me(), Error.prepareStackTrace = P;
|
|
282
282
|
}
|
|
283
283
|
var Re = t ? t.displayName || t.name : "", je = Re ? Ee(Re) : "";
|
|
284
284
|
return typeof t == "function" && $e.set(t, je), je;
|
|
@@ -298,21 +298,21 @@ function $r() {
|
|
|
298
298
|
if (typeof t == "string")
|
|
299
299
|
return Ee(t);
|
|
300
300
|
switch (t) {
|
|
301
|
-
case
|
|
301
|
+
case _:
|
|
302
302
|
return Ee("Suspense");
|
|
303
303
|
case f:
|
|
304
304
|
return Ee("SuspenseList");
|
|
305
305
|
}
|
|
306
306
|
if (typeof t == "object")
|
|
307
307
|
switch (t.$$typeof) {
|
|
308
|
-
case
|
|
308
|
+
case p:
|
|
309
309
|
return Qe(t.render);
|
|
310
310
|
case h:
|
|
311
311
|
return Z(t.type, u, g);
|
|
312
312
|
case m: {
|
|
313
|
-
var E = t,
|
|
313
|
+
var E = t, P = E._payload, z = E._init;
|
|
314
314
|
try {
|
|
315
|
-
return Z(
|
|
315
|
+
return Z(z(P), u, g);
|
|
316
316
|
} catch {
|
|
317
317
|
}
|
|
318
318
|
}
|
|
@@ -327,11 +327,11 @@ function $r() {
|
|
|
327
327
|
} else
|
|
328
328
|
ht.setExtraStackFrame(null);
|
|
329
329
|
}
|
|
330
|
-
function ar(t, u, g, E,
|
|
330
|
+
function ar(t, u, g, E, P) {
|
|
331
331
|
{
|
|
332
|
-
var
|
|
332
|
+
var z = Function.call.bind(X);
|
|
333
333
|
for (var R in t)
|
|
334
|
-
if (
|
|
334
|
+
if (z(t, R)) {
|
|
335
335
|
var $ = void 0;
|
|
336
336
|
try {
|
|
337
337
|
if (typeof t[R] != "function") {
|
|
@@ -342,7 +342,7 @@ function $r() {
|
|
|
342
342
|
} catch (V) {
|
|
343
343
|
$ = V;
|
|
344
344
|
}
|
|
345
|
-
$ && !($ instanceof Error) && (Ve(
|
|
345
|
+
$ && !($ instanceof Error) && (Ve(P), d("%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).", E || "React class", g, R, typeof $), Ve(null)), $ instanceof Error && !($.message in be) && (be[$.message] = !0, Ve(P), d("Failed %s type: %s", g, $.message), Ve(null));
|
|
346
346
|
}
|
|
347
347
|
}
|
|
348
348
|
}
|
|
@@ -406,7 +406,7 @@ function $r() {
|
|
|
406
406
|
});
|
|
407
407
|
}
|
|
408
408
|
}
|
|
409
|
-
function
|
|
409
|
+
function pr(t, u) {
|
|
410
410
|
{
|
|
411
411
|
var g = function() {
|
|
412
412
|
vt || (vt = !0, d("%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)", u));
|
|
@@ -417,7 +417,7 @@ function $r() {
|
|
|
417
417
|
});
|
|
418
418
|
}
|
|
419
419
|
}
|
|
420
|
-
var
|
|
420
|
+
var _r = function(t, u, g, E, P, z, R) {
|
|
421
421
|
var $ = {
|
|
422
422
|
// This tag allows us to uniquely identify this as a React Element
|
|
423
423
|
$$typeof: r,
|
|
@@ -427,7 +427,7 @@ function $r() {
|
|
|
427
427
|
ref: g,
|
|
428
428
|
props: R,
|
|
429
429
|
// Record the component responsible for creating this element.
|
|
430
|
-
_owner:
|
|
430
|
+
_owner: z
|
|
431
431
|
};
|
|
432
432
|
return $._store = {}, Object.defineProperty($._store, "validated", {
|
|
433
433
|
configurable: !1,
|
|
@@ -443,25 +443,25 @@ function $r() {
|
|
|
443
443
|
configurable: !1,
|
|
444
444
|
enumerable: !1,
|
|
445
445
|
writable: !1,
|
|
446
|
-
value:
|
|
446
|
+
value: P
|
|
447
447
|
}), Object.freeze && (Object.freeze($.props), Object.freeze($)), $;
|
|
448
448
|
};
|
|
449
|
-
function fr(t, u, g, E,
|
|
449
|
+
function fr(t, u, g, E, P) {
|
|
450
450
|
{
|
|
451
|
-
var
|
|
452
|
-
g !== void 0 && (gt(g), $ = "" + g), cr(u) && (gt(u.key), $ = "" + u.key), lr(u) && (te = u.ref, dr(u,
|
|
453
|
-
for (
|
|
454
|
-
X.call(u,
|
|
451
|
+
var z, R = {}, $ = null, te = null;
|
|
452
|
+
g !== void 0 && (gt(g), $ = "" + g), cr(u) && (gt(u.key), $ = "" + u.key), lr(u) && (te = u.ref, dr(u, P));
|
|
453
|
+
for (z in u)
|
|
454
|
+
X.call(u, z) && !ir.hasOwnProperty(z) && (R[z] = u[z]);
|
|
455
455
|
if (t && t.defaultProps) {
|
|
456
456
|
var V = t.defaultProps;
|
|
457
|
-
for (
|
|
458
|
-
R[
|
|
457
|
+
for (z in V)
|
|
458
|
+
R[z] === void 0 && (R[z] = V[z]);
|
|
459
459
|
}
|
|
460
460
|
if ($ || te) {
|
|
461
461
|
var G = typeof t == "function" ? t.displayName || t.name || "Unknown" : t;
|
|
462
|
-
$ && ur(R, G), te &&
|
|
462
|
+
$ && ur(R, G), te && pr(R, G);
|
|
463
463
|
}
|
|
464
|
-
return
|
|
464
|
+
return _r(t, $, te, P, E, mt.current, R);
|
|
465
465
|
}
|
|
466
466
|
}
|
|
467
467
|
var rt = v.ReactCurrentOwner, xt = v.ReactDebugCurrentFrame;
|
|
@@ -530,9 +530,9 @@ Check the top-level render call using <` + g + ">.");
|
|
|
530
530
|
else if (nt(t))
|
|
531
531
|
t._store && (t._store.validated = !0);
|
|
532
532
|
else if (t) {
|
|
533
|
-
var
|
|
534
|
-
if (typeof
|
|
535
|
-
for (var
|
|
533
|
+
var P = x(t);
|
|
534
|
+
if (typeof P == "function" && P !== t.entries)
|
|
535
|
+
for (var z = P.call(t), R; !(R = z.next()).done; )
|
|
536
536
|
nt(R.value) && St(R.value, u);
|
|
537
537
|
}
|
|
538
538
|
}
|
|
@@ -545,7 +545,7 @@ Check the top-level render call using <` + g + ">.");
|
|
|
545
545
|
var g;
|
|
546
546
|
if (typeof u == "function")
|
|
547
547
|
g = u.propTypes;
|
|
548
|
-
else if (typeof u == "object" && (u.$$typeof ===
|
|
548
|
+
else if (typeof u == "object" && (u.$$typeof === p || // Note: Memo only checks outer props here.
|
|
549
549
|
// Inner props are checked in the reconciler.
|
|
550
550
|
u.$$typeof === h))
|
|
551
551
|
g = u.propTypes;
|
|
@@ -556,8 +556,8 @@ Check the top-level render call using <` + g + ">.");
|
|
|
556
556
|
ar(g, t.props, "prop", E, t);
|
|
557
557
|
} else if (u.PropTypes !== void 0 && !at) {
|
|
558
558
|
at = !0;
|
|
559
|
-
var
|
|
560
|
-
d("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",
|
|
559
|
+
var P = S(u);
|
|
560
|
+
d("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", P || "Unknown");
|
|
561
561
|
}
|
|
562
562
|
typeof u.getDefaultProps == "function" && !u.getDefaultProps.isReactClassApproved && d("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
563
563
|
}
|
|
@@ -575,7 +575,7 @@ Check the top-level render call using <` + g + ">.");
|
|
|
575
575
|
}
|
|
576
576
|
}
|
|
577
577
|
var Et = {};
|
|
578
|
-
function jt(t, u, g, E,
|
|
578
|
+
function jt(t, u, g, E, P, z) {
|
|
579
579
|
{
|
|
580
580
|
var R = U(t);
|
|
581
581
|
if (!R) {
|
|
@@ -586,21 +586,21 @@ Check the top-level render call using <` + g + ">.");
|
|
|
586
586
|
var V;
|
|
587
587
|
t === null ? V = "null" : tt(t) ? V = "array" : t !== void 0 && t.$$typeof === r ? (V = "<" + (S(t.type) || "Unknown") + " />", $ = " Did you accidentally export a JSX literal instead of a component?") : V = typeof t, d("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", V, $);
|
|
588
588
|
}
|
|
589
|
-
var G = fr(t, u, g,
|
|
589
|
+
var G = fr(t, u, g, P, z);
|
|
590
590
|
if (G == null)
|
|
591
591
|
return G;
|
|
592
592
|
if (R) {
|
|
593
|
-
var
|
|
594
|
-
if (
|
|
593
|
+
var pe = u.children;
|
|
594
|
+
if (pe !== void 0)
|
|
595
595
|
if (E)
|
|
596
|
-
if (tt(
|
|
597
|
-
for (var Re = 0; Re <
|
|
598
|
-
Lt(
|
|
599
|
-
Object.freeze && Object.freeze(
|
|
596
|
+
if (tt(pe)) {
|
|
597
|
+
for (var Re = 0; Re < pe.length; Re++)
|
|
598
|
+
Lt(pe[Re], t);
|
|
599
|
+
Object.freeze && Object.freeze(pe);
|
|
600
600
|
} else
|
|
601
601
|
d("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
602
602
|
else
|
|
603
|
-
Lt(
|
|
603
|
+
Lt(pe, t);
|
|
604
604
|
}
|
|
605
605
|
if (X.call(u, "key")) {
|
|
606
606
|
var je = S(t), ae = Object.keys(u).filter(function(Sr) {
|
|
@@ -634,13 +634,13 @@ function Tr() {
|
|
|
634
634
|
return It || (It = 1, process.env.NODE_ENV === "production" ? Ge.exports = Ir() : Ge.exports = $r()), Ge.exports;
|
|
635
635
|
}
|
|
636
636
|
var n = Tr();
|
|
637
|
-
const Rr = (e) => e.as === "a", Nr = (e) => e.as === void 0 || e.as === "button", Ne = (e) => e.displayAs === void 0 || e.displayAs === "button", ot = (e) => e.displayAs === "link", Ar = "_button_6bymk_1",
|
|
637
|
+
const Rr = (e) => e.as === "a", Nr = (e) => e.as === void 0 || e.as === "button", Ne = (e) => e.displayAs === void 0 || e.displayAs === "button", ot = (e) => e.displayAs === "link", Ar = "_button_6bymk_1", Dr = "_link_6bymk_17", Or = "_disabled_6bymk_22", Pr = "_loading_6bymk_22", Br = "_neutral_6bymk_50", zr = "_accent_6bymk_54", Ur = "_positive_6bymk_58", Fr = "_negative_6bymk_62", qr = "_contrast_6bymk_66", Wr = "_special_6bymk_70", Hr = "_primary_6bymk_74", Vr = "_secondary_6bymk_75", Gr = "_tertiary_6bymk_76", Yr = "_spaceBetween_6bymk_116", Zr = "_rightGroup_6bymk_116", Xr = "_label_6bymk_136", Jr = "_iconOnly_6bymk_155", Kr = "_stretched_6bymk_171", Qr = "_icon_6bymk_155", ea = "_postfix_6bymk_176", ta = "_underline_6bymk_202", ra = "_warning_6bymk_1082", aa = "_withSubcaption_6bymk_1268", na = "_subcaption_6bymk_1273", sa = "_loader_6bymk_1279", oa = "_spin_6bymk_1", ia = "_l_6bymk_17", la = "_m_6bymk_1318", ca = "_s_6bymk_70", da = "_xs_6bymk_1364", ua = "_iconRight_6bymk_1410", W = {
|
|
638
638
|
button: Ar,
|
|
639
|
-
link:
|
|
640
|
-
disabled:
|
|
641
|
-
loading:
|
|
642
|
-
neutral:
|
|
643
|
-
accent:
|
|
639
|
+
link: Dr,
|
|
640
|
+
disabled: Or,
|
|
641
|
+
loading: Pr,
|
|
642
|
+
neutral: Br,
|
|
643
|
+
accent: zr,
|
|
644
644
|
positive: Ur,
|
|
645
645
|
negative: Fr,
|
|
646
646
|
contrast: qr,
|
|
@@ -666,7 +666,7 @@ const Rr = (e) => e.as === "a", Nr = (e) => e.as === void 0 || e.as === "button"
|
|
|
666
666
|
s: ca,
|
|
667
667
|
xs: da,
|
|
668
668
|
iconRight: ua
|
|
669
|
-
},
|
|
669
|
+
}, pa = /* @__PURE__ */ new Set([
|
|
670
670
|
"mode",
|
|
671
671
|
"size",
|
|
672
672
|
"buttonStyle",
|
|
@@ -686,15 +686,15 @@ const Rr = (e) => e.as === "a", Nr = (e) => e.as === void 0 || e.as === "button"
|
|
|
686
686
|
]), $t = (e) => {
|
|
687
687
|
const r = {};
|
|
688
688
|
for (const a in e)
|
|
689
|
-
|
|
689
|
+
pa.has(a) || (r[a] = e[a]);
|
|
690
690
|
return r;
|
|
691
|
-
},
|
|
691
|
+
}, _a = {
|
|
692
692
|
l: "typography-subtitle-1-semibold",
|
|
693
693
|
m: "typography-label-2-regular",
|
|
694
694
|
s: "typography-label-3-regular"
|
|
695
695
|
};
|
|
696
696
|
function fa(e) {
|
|
697
|
-
return
|
|
697
|
+
return _a[e] || "typography-label-2-regular";
|
|
698
698
|
}
|
|
699
699
|
const ce = {
|
|
700
700
|
"typography-title-1-semibold": "_typography-title-1-semibold_1lyxn_1",
|
|
@@ -732,24 +732,24 @@ const ce = {
|
|
|
732
732
|
}) => {
|
|
733
733
|
if (e && c)
|
|
734
734
|
return /* @__PURE__ */ n.jsx("span", { className: W.loader, "data-testid": "button-loader", "aria-hidden": "true" });
|
|
735
|
-
const
|
|
736
|
-
return /* @__PURE__ */ n.jsxs(
|
|
737
|
-
|
|
735
|
+
const p = r && c || r && !c && l, _ = s && c && l !== "s" && l !== "xs";
|
|
736
|
+
return /* @__PURE__ */ n.jsxs(Oe, { children: [
|
|
737
|
+
_ && /* @__PURE__ */ n.jsxs(Oe, { children: [
|
|
738
738
|
/* @__PURE__ */ n.jsx("span", { "data-testid": "button-label", className: W.label, children: o }),
|
|
739
739
|
/* @__PURE__ */ n.jsx("span", { "data-testid": "button-subcaption", className: W.subcaption, children: s })
|
|
740
740
|
] }),
|
|
741
|
-
!
|
|
741
|
+
!_ && o && /* @__PURE__ */ n.jsxs(Oe, { children: [
|
|
742
742
|
/* @__PURE__ */ n.jsxs("span", { "data-testid": "button-label", className: W.label, children: [
|
|
743
743
|
!c && a && /* @__PURE__ */ n.jsx("span", { "data-testid": "button-left-icon", className: W.icon, children: a }),
|
|
744
744
|
o,
|
|
745
745
|
!c && r && /* @__PURE__ */ n.jsx("span", { "data-testid": "button-icon", className: k(W.icon, W.iconRight), children: r })
|
|
746
746
|
] }),
|
|
747
747
|
c && /* @__PURE__ */ n.jsxs("div", { "data-testid": "button-right-group", className: W.rightGroup, children: [
|
|
748
|
-
|
|
748
|
+
p && /* @__PURE__ */ n.jsx("span", { "data-testid": "button-icon", className: W.icon, children: r }),
|
|
749
749
|
i && c && /* @__PURE__ */ n.jsx("span", { "data-testid": "button-postfix", className: W.postfix, children: i })
|
|
750
750
|
] })
|
|
751
751
|
] }),
|
|
752
|
-
!
|
|
752
|
+
!_ && !o && /* @__PURE__ */ n.jsx("span", { "data-testid": "button-icon", className: W.icon, children: r })
|
|
753
753
|
] });
|
|
754
754
|
}, ha = K((e, r) => {
|
|
755
755
|
const {
|
|
@@ -759,10 +759,10 @@ const ce = {
|
|
|
759
759
|
disabled: s = !1,
|
|
760
760
|
displayAs: l = "button",
|
|
761
761
|
iconRight: c,
|
|
762
|
-
className:
|
|
763
|
-
children:
|
|
762
|
+
className: p,
|
|
763
|
+
children: _,
|
|
764
764
|
tabIndex: f
|
|
765
|
-
} = e, h = Ne(e) ? e.subcaption : void 0, m = Ne(e) ? e.postfix : void 0, b = Ne(e) ? e.stretched : void 0, y = !(ot(e) && e.size === void 0), L = ot(e) && y ? e.iconLeft : void 0, x = !!(l === "button" && "loading" in e && e.loading), v = Ne(e) ? s : s || x, d = !v && !x, w = y ? c : void 0, C = !!(w && !
|
|
765
|
+
} = e, h = Ne(e) ? e.subcaption : void 0, m = Ne(e) ? e.postfix : void 0, b = Ne(e) ? e.stretched : void 0, y = !(ot(e) && e.size === void 0), L = ot(e) && y ? e.iconLeft : void 0, x = !!(l === "button" && "loading" in e && e.loading), v = Ne(e) ? s : s || x, d = !v && !x, w = y ? c : void 0, C = !!(w && !_), M = typeof b == "object" ? b.justify === "space-between" : void 0, j = ot(e) ? fa(e.size ?? "m") : void 0, I = j ? ce[j] : void 0, A = v || x ? -1 : f, D = k(
|
|
766
766
|
W.button,
|
|
767
767
|
W[o],
|
|
768
768
|
W[a],
|
|
@@ -778,22 +778,22 @@ const ce = {
|
|
|
778
778
|
[W.link]: l === "link",
|
|
779
779
|
[W.underline]: l === "link" && "showUnderline" in e && e.showUnderline
|
|
780
780
|
},
|
|
781
|
-
|
|
781
|
+
p
|
|
782
782
|
), U = {
|
|
783
783
|
isLoading: x,
|
|
784
784
|
iconRight: w,
|
|
785
785
|
iconLeft: L,
|
|
786
|
-
children:
|
|
786
|
+
children: _,
|
|
787
787
|
postfix: m,
|
|
788
788
|
subcaption: h,
|
|
789
789
|
size: o,
|
|
790
790
|
isAsButton: Ne(e)
|
|
791
791
|
};
|
|
792
792
|
if (Rr(e)) {
|
|
793
|
-
const { href: q, onClick:
|
|
794
|
-
let Y =
|
|
793
|
+
const { href: q, onClick: O, style: S, target: T, rel: B, "data-testid": F, ...H } = e, Q = $t(H), ie = T ?? (e.isExternal ? "_blank" : void 0);
|
|
794
|
+
let Y = B;
|
|
795
795
|
if (ie === "_blank") {
|
|
796
|
-
const ee = new Set((
|
|
796
|
+
const ee = new Set((B ?? "").split(/\s+/).filter(Boolean));
|
|
797
797
|
ee.add("noopener").add("noreferrer"), Y = Array.from(ee).join(" ");
|
|
798
798
|
}
|
|
799
799
|
const ue = (ee) => {
|
|
@@ -801,13 +801,13 @@ const ce = {
|
|
|
801
801
|
ee.preventDefault();
|
|
802
802
|
return;
|
|
803
803
|
}
|
|
804
|
-
|
|
804
|
+
O == null || O(ee);
|
|
805
805
|
};
|
|
806
806
|
return /* @__PURE__ */ n.jsx(
|
|
807
807
|
"a",
|
|
808
808
|
{
|
|
809
809
|
ref: r,
|
|
810
|
-
className:
|
|
810
|
+
className: D,
|
|
811
811
|
href: d ? q : void 0,
|
|
812
812
|
tabIndex: A,
|
|
813
813
|
onClick: ue,
|
|
@@ -822,15 +822,15 @@ const ce = {
|
|
|
822
822
|
);
|
|
823
823
|
}
|
|
824
824
|
if (Nr(e)) {
|
|
825
|
-
const { type: q = "button", onClick:
|
|
826
|
-
d &&
|
|
825
|
+
const { type: q = "button", onClick: O, style: S, "data-testid": T, ...B } = e, F = $t(B), H = (Q) => {
|
|
826
|
+
d && O && O(Q);
|
|
827
827
|
};
|
|
828
828
|
return /* @__PURE__ */ n.jsx(
|
|
829
829
|
"button",
|
|
830
830
|
{
|
|
831
831
|
ref: r,
|
|
832
832
|
type: q,
|
|
833
|
-
className:
|
|
833
|
+
className: D,
|
|
834
834
|
disabled: v,
|
|
835
835
|
tabIndex: A,
|
|
836
836
|
onClick: H,
|
|
@@ -884,7 +884,7 @@ function ba() {
|
|
|
884
884
|
}(it)), it.exports;
|
|
885
885
|
}
|
|
886
886
|
var ga = ba();
|
|
887
|
-
const Le = /* @__PURE__ */ Mr(ga), ma = "
|
|
887
|
+
const Le = /* @__PURE__ */ Mr(ga), ma = "_avatar_1v54p_17", ya = "_clickable_1v54p_41", va = "_icon_1v54p_58", xa = "_disabled_1v54p_63", wa = "_loading_1v54p_68", Ca = "_image_1v54p_74", Sa = "_name_1v54p_74", ge = {
|
|
888
888
|
avatar: ma,
|
|
889
889
|
clickable: ya,
|
|
890
890
|
icon: va,
|
|
@@ -892,19 +892,19 @@ const Le = /* @__PURE__ */ Mr(ga), ma = "_avatar_zfczn_17", ya = "_clickable_zfc
|
|
|
892
892
|
loading: wa,
|
|
893
893
|
image: Ca,
|
|
894
894
|
name: Sa,
|
|
895
|
-
"variant-filled": "_variant-
|
|
896
|
-
"color-brand": "_color-
|
|
897
|
-
"color-red": "_color-
|
|
898
|
-
"color-orange": "_color-
|
|
899
|
-
"color-yellow": "_color-
|
|
900
|
-
"color-green": "_color-
|
|
901
|
-
"color-blue": "_color-
|
|
902
|
-
"color-lightblue": "_color-
|
|
903
|
-
"color-purple": "_color-
|
|
904
|
-
"color-gray": "_color-
|
|
905
|
-
"color-contrast": "_color-
|
|
906
|
-
"variant-light": "_variant-
|
|
907
|
-
"variant-outline": "_variant-
|
|
895
|
+
"variant-filled": "_variant-filled_1v54p_126",
|
|
896
|
+
"color-brand": "_color-brand_1v54p_131",
|
|
897
|
+
"color-red": "_color-red_1v54p_135",
|
|
898
|
+
"color-orange": "_color-orange_1v54p_139",
|
|
899
|
+
"color-yellow": "_color-yellow_1v54p_143",
|
|
900
|
+
"color-green": "_color-green_1v54p_147",
|
|
901
|
+
"color-blue": "_color-blue_1v54p_151",
|
|
902
|
+
"color-lightblue": "_color-lightblue_1v54p_155",
|
|
903
|
+
"color-purple": "_color-purple_1v54p_159",
|
|
904
|
+
"color-gray": "_color-gray_1v54p_163",
|
|
905
|
+
"color-contrast": "_color-contrast_1v54p_167",
|
|
906
|
+
"variant-light": "_variant-light_1v54p_173",
|
|
907
|
+
"variant-outline": "_variant-outline_1v54p_245"
|
|
908
908
|
}, Nt = 99;
|
|
909
909
|
function La(e) {
|
|
910
910
|
return e < Nt ? `+${e}` : `${Nt}+`;
|
|
@@ -966,10 +966,10 @@ const $a = {
|
|
|
966
966
|
function Ta(e) {
|
|
967
967
|
return $a[e] || "typography-subtitle-1-semibold";
|
|
968
968
|
}
|
|
969
|
-
const Ra = "data:image/svg+xml,%3csvg%20opacity='0.9'%20preserveAspectRatio='xMinYMin%20meet'%20viewBox='0%200%20208%20208'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cdefs%3e%3cfilter%20id='shadowW'%20filterUnits='userSpaceOnUse'%3e%3cfeDropShadow%20dx='-2'%20dy='-1'%20stdDeviation='5'%20flood-color='rgba(0,0,0,0.5)'/%3e%3c/filter%3e%3c/defs%3e%3cg%20filter='url(%23shadowW)'%3e%3cpath%20d='M23.9835%20174.59L113.41%20157.735L225.224%20191.671C225.224%20191.671%20250.259%20479.463%20243.525%20478.31C236.655%20477.167%20-7.79434%20482.039%20-8.17876%20476.943C-8.56308%20471.849%20-34.4445%20341.701%20-34.4445%20341.701L23.9835%20174.59Z'%20fill='darkgrey'/%3e%3cpath%20d='M-54.5558%20212.781C-85.688%20282.842%20-94.2122%20303.839%20-94.2122%20303.839L-213.504%20213.002C-214.953%20197.465%20-218.637%20181.68%20-225.636%20167.806C-234.412%20150.606%20-246.154%20149.138%20-259.595%20136.166C-267.368%20128.583%20-275.073%20140.242%20-267.3%20147.825L-259.338%20156.087C-258.869%20160.482%20-255.518%20171.861%20-254.634%20176.226C-267.475%20165.702%20-284.704%20150.246%20-300.665%20144.25C-305.079%20142.644%20-308.958%20144.46%20-311.08%20147.528C-314.628%20148.211%20-317.292%20151.458%20-317.858%20154.963C-321.103%20157.839%20-322.625%20163.354%20-319.254%20167.67C-321.407%20170.323%20-322.376%20173.998%20-320.433%20177.728C-320.274%20177.993%20-320.127%20178.12%20-320.106%20178.395C-320.997%20179.432%20-319.498%20182.78%20-320.337%20184.506C-324.035%20192.401%20-309.357%20221.757%20-285.221%20235.167C-277.291%20250.355%20-262.477%20259.485%20-261.354%20259.677C-234.512%20290.608%20-141.301%20400.999%20-97.2451%20436.169C-47.2868%20476.158%20-12.9855%20418.735%2010.6424%20317.115C34.2598%20215.358%2037.6457%20181.315%2037.6457%20181.315L116.374%20158.482C14.4423%20160.079%20-23.2964%20142.572%20-54.5558%20212.781Z'%20fill='darkgrey'/%3e%3cpath%20d='M116.781%20158.313L114.885%20158.871L61.4974%20174.391L38.0516%20181.145C38.0516%20181.145%2034.6758%20215.325%2011.0481%20316.945C9.47097%20323.572%207.88344%20330.061%206.27525%20336.275C-22.5942%20315.191%20-52.217%20295.131%20-82.0946%20275.368C-75.9632%20261.197%20-67.1116%20240.867%20-54.4359%20212.493C-30.4015%20158.477%20-2.57835%20156.516%2055.793%20157.512C72.5674%20157.77%2091.7239%20158.403%20114.133%20158.096C114.98%20158.309%20115.807%20158.247%20116.781%20158.313Z'%20fill='darkgrey'/%3e%3cpath%20d='M113.269%20157.745C175.26%20159.023%20252.771%20143.897%20266.382%20199.504C279.867%20255.26%20288.576%20280.774%20295.899%20320.932C303.221%20361.091%20322.043%20408.689%20271.897%20417.595C221.75%20426.502%20106.238%20444.495%20106.238%20444.495L78.8767%20384.662C78.8767%20384.662%20170.648%20343.813%20200.242%20332.303L185.17%20211.448L113.269%20157.745Z'%20fill='darkgrey'/%3e%3cpath%20d='M292.122%20302.108C260.506%20305.187%20228.942%20308.953%20198.219%20316.533L185.178%20211.585L140.855%20178.374L114.874%20158.871L114.144%20158.372L113.266%20157.746C127.138%20158.084%20141.774%20157.534%20156.283%20157.131C206.726%20155.818%20255.78%20156.271%20266.252%20199.654C277.643%20246.012%20285.665%20271.578%20292.122%20302.108Z'%20fill='darkgrey'/%3e%3cpath%20d='M108.001%20172.269C119.623%20168.485%20130.939%20164.308%20142.395%20160.12L112.224%20101.608L68.8441%20124.959C69.7222%20125.585%2079.0944%20154.372%2086.547%20177.904C93.7406%20175.977%20100.965%20174.463%20108.001%20172.269Z'%20fill='white'/%3e%3cpath%20d='M99.3655%20112.96C99.0934%20111.18%2098.8213%20109.401%2098.2722%20107.642L68.9864%20125.083C69.5682%20125.455%2073.8492%20138.148%2078.7406%20153.426C89.4856%20141.676%2097.5757%20127.773%2099.3655%20112.96Z'%20fill='darkgrey'/%3e%3cpath%20d='M144.524%2069.1209C143.075%2053.5829%20118.601%2039.3668%2099.9856%2038.5556C91.9262%2038.1943%2089.5107%2031.8684%2086.0605%2037.5291C77.5782%2051.7392%2049.6837%2094.9694%2052.2654%20110.837C56.0862%20133.951%2084.5691%20137.063%20102.228%20127.008C120.022%20116.942%20146.6%2091.1195%20144.524%2069.1209Z'%20fill='white'/%3e%3cpath%20d='M145.753%2072.4915C147.93%2068.3116%20146.317%2063.4483%20142.804%2060.944C142.656%2060.8166%20142.656%2060.8166%20142.507%2060.6894C143.028%2052.8957%20136.915%2047.1257%20129.979%2046.9567C129.007%2045.0914%20127.379%2043.691%20125.24%2042.883C124.903%2042.0778%20124.575%2041.4101%20123.982%2040.9009C122.651%2039.7551%20121.095%2039.3187%20119.441%2039.4435C118.081%2036.0843%20115.925%2033.2005%20112.495%2031.7977C110.348%2030.8519%20108.027%2031.304%20106.311%2032.4027C102.006%2028.5734%2096.789%2025.5051%2091.8112%2025.6038C89.736%2025.6218%2085.678%2026.8973%2084.2724%2032.1268C82.1968%2032.1449%2080.3522%2033.3917%2079.5546%2035.6676C78.427%2039.0759%2080.339%2042.3935%2083.1109%2044.2613C84.719%2045.3863%2086.9841%2046.0462%2089.0391%2045.7526C95.9026%2052.2969%20114.028%2063.1149%20118.148%2062.6657C115.532%2070.202%20113.218%2087.2698%20122.007%2088.1299C124.21%2095.3028%20116.99%20107.894%20121.368%20112.688C129.639%20104.863%20137.246%2095.5655%20141.359%2085.8391C141.496%2085.8288%20141.772%2085.808%20142.047%2085.7872C148.14%2083.9429%20149.527%2076.6377%20145.753%2072.4915Z'%20fill='darkgrey'/%3e%3cpath%20d='M140.151%20104.76C141.594%2096.3432%20132.67%2086.3542%20121.049%2088.3387C116.251%2096.3166%20111.305%20104.167%20106.21%20111.89C109.317%20116.364%20118.141%20121.376%20125.535%20120.264C133.872%20118.804%20138.613%20113.738%20140.151%20104.76Z'%20fill='white'/%3e%3cpath%20d='M156.755%20156.883C153.217%20165.043%20147.805%20172.237%20141.188%20178.136C133.925%20184.639%20125.011%20189.465%20114.809%20191.896C95.2214%20196.558%2072.2825%20189.842%2061.6836%20174.164C58.5559%20169.414%2056.4778%20163.894%2056%20157.561C72.7744%20157.818%2091.9311%20158.451%20114.34%20158.144L113.462%20157.519C127.463%20157.709%20142.098%20157.159%20156.755%20156.883Z'%20fill='white'/%3e%3c/g%3e%3c/svg%3e", Na = "data:image/svg+xml,%3csvg%20viewBox='0%200%20208%20208'%20opacity='0.9'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20filter='url(%23shadow)'%3e%3cpath%20filter='url(%23shadow)'%20d='M127.173%2079.8894C127.189%2079.1933%20128.026%2079.1201%20128.436%2079.4316C128.754%2079.6091%20128.895%2080.1021%20128.809%2080.5518C129.241%2083.1982%20129.581%2085.7106%20130.013%2088.357C136.835%2079.7558%20149.235%2076.9989%20158.979%2083.174C168.086%2088.9941%20171.001%20111.745%20135.501%20120.502C131.5%20123.502%20117%20125.002%20111.753%20103.279C111.682%2093.2427%20118.526%2084.529%20127.173%2079.8894Z'%20fill='darkgrey'/%3e%3cpath%20d='M28.0441%20167.788C21.826%20195.052%2018.7311%20223.361%2014.1881%20250.885C9.42226%20279.982%204.68042%20308.967%20-0.0853729%20338.064L-1.00047%20342.848C14.5039%20346.419%2030.8401%20350.407%2046.3671%20353.868C90.9428%20363.918%20134.837%20376.598%20179.293%20387.201C200.345%20337.142%20219.778%20286.027%20235.82%20234.041C243.806%20208.213%20244.758%20181.282%20225.443%20160.043C216.099%20149.841%20204.347%20143.858%20191.629%20140.212C188.924%20139.377%20186.108%20138.517%20183.355%20137.905C179.635%20136.959%20175.781%20136.1%20171.989%20135.487C167.45%20134.592%20162.753%20133.893%20158.277%20133.243L127.871%20128.671L116.251%20126.895C115.457%20126.833%20114.686%20126.662%20113.915%20126.49C102.87%20124.724%2091.7381%20122.824%2080.6188%20123.013C69.1682%20123.13%2056.9012%20125.964%2047.8363%20133.224C36.9821%20141.825%2031.1109%20154.087%2028.0441%20167.788Z'%20fill='darkgrey'/%3e%3cpath%20d='M103.74%20123.732L95.6984%20197.532C95.6984%20197.532%20137.13%20157.315%20158.742%20133.268C155.051%20132.316%20151.227%20131.449%20147.465%20130.831C142.962%20129.929%20138.302%20129.224%20133.861%20128.569L103.74%20123.732Z'%20fill='white'/%3e%3cpath%20d='M97.8143%20115.298C99.0227%20116.625%20108.229%20179.332%20108.229%20179.332L148.012%20142.157L129%20100L97.8143%20115.298Z'%20fill='white'/%3e%3cpath%20d='M101.71%20148.534C100.068%20137.868%2098.402%20127.706%2098.0001%20127.274L112.673%20122C113.831%20131.449%20108.467%20141.173%20101.71%20148.534Z'%20fill='grey'/%3e%3cpath%20d='M121.545%2040.7383C111.161%2030.599%2085.3871%2035.4814%2071.93%2046.2862C66.0912%2051.0172%2060.5415%2047.9025%2061.6427%2054.0842C64.3767%2069.3597%2074.0239%20120.283%2082.7631%20126.794C100.374%20139.728%20121.191%20125.699%20127.329%20107.658C133.554%2089.7517%20136.293%2055.2372%20121.545%2040.7383Z'%20fill='white'/%3e%3cpath%20d='M56.0176%2041.9837C61.9834%2036.7831%2074.9427%2037.4243%2081.3074%2039.639C95.1733%2033.9235%20112.672%2032.6801%20120.968%2040.1438C131.22%2049.4771%20133.446%2067.5345%20132.042%2083.8281C125.848%2083.0025%20122.779%2078.6471%20116.718%2075.0286C97.7466%2073.2611%2084.9353%2061.0313%2082.042%2054.2301C78.3492%2058.2067%2063.3398%2059.3993%2058.12%2055.1646C51.1278%2048.7596%2054.1283%2043.6248%2056.0176%2041.9837Z'%20fill='darkgrey'/%3e%3cpath%20d='M142.838%2074.8316C138.561%2067.841%20123.674%2066.785%20116.5%2075.5006C118.078%2084.3219%20121.503%2092.5524%20122.726%20101.41C127.77%20102.657%20137.388%20100.869%20141.908%2095.386C147.168%2089.1414%20147.462%2082.3637%20142.838%2074.8316Z'%20fill='white'/%3e%3c/g%3e%3cdefs%3e%3cfilter%20id='shadow'%3e%3cfeDropShadow%20dx='0'%20dy='0'%20stdDeviation='3'%20flood-color='rgba(0,0,0,0.3)'/%3e%3c/filter%3e%3c/defs%3e%3c/svg%3e", Aa = "data:image/svg+xml,%3csvg%20opacity='0.9'%20viewBox='0%200%20208%20208'%20fill='currentColor'%20xmlns='http://www.w3.org/2000/svg'%3e%3cdefs%3e%3cmask%20id='hole'%3e%3crect%20width='100%25'%20height='100%25'%20fill='white'/%3e%3ccircle%20cx='121.333'%20cy='121.333'%20r='52'%20fill='black'/%3e%3c/mask%3e%3cfilter%20id='shadow'%3e%3cfeDropShadow%20dx='-2'%20dy='-1'%20stdDeviation='10'%20flood-color='rgba(0,0,0,0.2)'/%3e%3c/filter%3e%3c/defs%3e%3cg%20filter='url(%23shadow)'%3e%3ccircle%20cx='104'%20cy='225.333'%20r='95.3333'%20fill='darkgray'/%3e%3ccircle%20cx='104'%20cy='225.333'%20r='95.3333'%20fill='white'%20mask='url(%23hole)'/%3e%3ccircle%20cx='104'%20cy='86.6666'%20r='52'%20fill='white'/%3e%3c/g%3e%3c/svg%3e", za = "data:image/svg+xml,%3csvg%20opacity='0.9'%20viewBox='0%200%20208%20208'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20filter='url(%23shadow)'%3e%3cpath%20d='M168%20208V118.053C168%20113.824%20165.34%20110.052%20161.356%20108.633L134%2098.885V208H168Z'%20fill='darkgrey'/%3e%3cpath%20d='M40%2072.3726C40%2070.7381%2040.9944%2069.268%2042.5116%2068.6598L111.951%2040.8215C113.226%2040.3102%20114.675%2040.4893%20115.787%2041.2958L129.87%2051.5056C132.464%2053.3866%20134%2056.397%20134%2059.6017V208H40V72.3726Z'%20fill='white'/%3e%3cpath%20d='M114%2047.5001L126.325%2056.3036C127.376%2057.0544%20128%2058.2667%20128%2059.5585V208H114V47.5001Z'%20fill='darkgrey'/%3e%3c/g%3e%3cdefs%3e%3cfilter%20id='shadow'%3e%3cfeDropShadow%20dx='-2'%20dy='-1'%20stdDeviation='7'%20flood-color='rgba(0,0,0,0.2)'/%3e%3c/filter%3e%3c/defs%3e%3c/svg%3e", Da = {
|
|
969
|
+
const Ra = "data:image/svg+xml,%3csvg%20opacity='0.9'%20preserveAspectRatio='xMinYMin%20meet'%20viewBox='0%200%20208%20208'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cdefs%3e%3cfilter%20id='shadowW'%20filterUnits='userSpaceOnUse'%3e%3cfeDropShadow%20dx='-2'%20dy='-1'%20stdDeviation='5'%20flood-color='rgba(0,0,0,0.5)'/%3e%3c/filter%3e%3c/defs%3e%3cg%20filter='url(%23shadowW)'%3e%3cpath%20d='M23.9835%20174.59L113.41%20157.735L225.224%20191.671C225.224%20191.671%20250.259%20479.463%20243.525%20478.31C236.655%20477.167%20-7.79434%20482.039%20-8.17876%20476.943C-8.56308%20471.849%20-34.4445%20341.701%20-34.4445%20341.701L23.9835%20174.59Z'%20fill='darkgrey'/%3e%3cpath%20d='M-54.5558%20212.781C-85.688%20282.842%20-94.2122%20303.839%20-94.2122%20303.839L-213.504%20213.002C-214.953%20197.465%20-218.637%20181.68%20-225.636%20167.806C-234.412%20150.606%20-246.154%20149.138%20-259.595%20136.166C-267.368%20128.583%20-275.073%20140.242%20-267.3%20147.825L-259.338%20156.087C-258.869%20160.482%20-255.518%20171.861%20-254.634%20176.226C-267.475%20165.702%20-284.704%20150.246%20-300.665%20144.25C-305.079%20142.644%20-308.958%20144.46%20-311.08%20147.528C-314.628%20148.211%20-317.292%20151.458%20-317.858%20154.963C-321.103%20157.839%20-322.625%20163.354%20-319.254%20167.67C-321.407%20170.323%20-322.376%20173.998%20-320.433%20177.728C-320.274%20177.993%20-320.127%20178.12%20-320.106%20178.395C-320.997%20179.432%20-319.498%20182.78%20-320.337%20184.506C-324.035%20192.401%20-309.357%20221.757%20-285.221%20235.167C-277.291%20250.355%20-262.477%20259.485%20-261.354%20259.677C-234.512%20290.608%20-141.301%20400.999%20-97.2451%20436.169C-47.2868%20476.158%20-12.9855%20418.735%2010.6424%20317.115C34.2598%20215.358%2037.6457%20181.315%2037.6457%20181.315L116.374%20158.482C14.4423%20160.079%20-23.2964%20142.572%20-54.5558%20212.781Z'%20fill='darkgrey'/%3e%3cpath%20d='M116.781%20158.313L114.885%20158.871L61.4974%20174.391L38.0516%20181.145C38.0516%20181.145%2034.6758%20215.325%2011.0481%20316.945C9.47097%20323.572%207.88344%20330.061%206.27525%20336.275C-22.5942%20315.191%20-52.217%20295.131%20-82.0946%20275.368C-75.9632%20261.197%20-67.1116%20240.867%20-54.4359%20212.493C-30.4015%20158.477%20-2.57835%20156.516%2055.793%20157.512C72.5674%20157.77%2091.7239%20158.403%20114.133%20158.096C114.98%20158.309%20115.807%20158.247%20116.781%20158.313Z'%20fill='darkgrey'/%3e%3cpath%20d='M113.269%20157.745C175.26%20159.023%20252.771%20143.897%20266.382%20199.504C279.867%20255.26%20288.576%20280.774%20295.899%20320.932C303.221%20361.091%20322.043%20408.689%20271.897%20417.595C221.75%20426.502%20106.238%20444.495%20106.238%20444.495L78.8767%20384.662C78.8767%20384.662%20170.648%20343.813%20200.242%20332.303L185.17%20211.448L113.269%20157.745Z'%20fill='darkgrey'/%3e%3cpath%20d='M292.122%20302.108C260.506%20305.187%20228.942%20308.953%20198.219%20316.533L185.178%20211.585L140.855%20178.374L114.874%20158.871L114.144%20158.372L113.266%20157.746C127.138%20158.084%20141.774%20157.534%20156.283%20157.131C206.726%20155.818%20255.78%20156.271%20266.252%20199.654C277.643%20246.012%20285.665%20271.578%20292.122%20302.108Z'%20fill='darkgrey'/%3e%3cpath%20d='M108.001%20172.269C119.623%20168.485%20130.939%20164.308%20142.395%20160.12L112.224%20101.608L68.8441%20124.959C69.7222%20125.585%2079.0944%20154.372%2086.547%20177.904C93.7406%20175.977%20100.965%20174.463%20108.001%20172.269Z'%20fill='white'/%3e%3cpath%20d='M99.3655%20112.96C99.0934%20111.18%2098.8213%20109.401%2098.2722%20107.642L68.9864%20125.083C69.5682%20125.455%2073.8492%20138.148%2078.7406%20153.426C89.4856%20141.676%2097.5757%20127.773%2099.3655%20112.96Z'%20fill='darkgrey'/%3e%3cpath%20d='M144.524%2069.1209C143.075%2053.5829%20118.601%2039.3668%2099.9856%2038.5556C91.9262%2038.1943%2089.5107%2031.8684%2086.0605%2037.5291C77.5782%2051.7392%2049.6837%2094.9694%2052.2654%20110.837C56.0862%20133.951%2084.5691%20137.063%20102.228%20127.008C120.022%20116.942%20146.6%2091.1195%20144.524%2069.1209Z'%20fill='white'/%3e%3cpath%20d='M145.753%2072.4915C147.93%2068.3116%20146.317%2063.4483%20142.804%2060.944C142.656%2060.8166%20142.656%2060.8166%20142.507%2060.6894C143.028%2052.8957%20136.915%2047.1257%20129.979%2046.9567C129.007%2045.0914%20127.379%2043.691%20125.24%2042.883C124.903%2042.0778%20124.575%2041.4101%20123.982%2040.9009C122.651%2039.7551%20121.095%2039.3187%20119.441%2039.4435C118.081%2036.0843%20115.925%2033.2005%20112.495%2031.7977C110.348%2030.8519%20108.027%2031.304%20106.311%2032.4027C102.006%2028.5734%2096.789%2025.5051%2091.8112%2025.6038C89.736%2025.6218%2085.678%2026.8973%2084.2724%2032.1268C82.1968%2032.1449%2080.3522%2033.3917%2079.5546%2035.6676C78.427%2039.0759%2080.339%2042.3935%2083.1109%2044.2613C84.719%2045.3863%2086.9841%2046.0462%2089.0391%2045.7526C95.9026%2052.2969%20114.028%2063.1149%20118.148%2062.6657C115.532%2070.202%20113.218%2087.2698%20122.007%2088.1299C124.21%2095.3028%20116.99%20107.894%20121.368%20112.688C129.639%20104.863%20137.246%2095.5655%20141.359%2085.8391C141.496%2085.8288%20141.772%2085.808%20142.047%2085.7872C148.14%2083.9429%20149.527%2076.6377%20145.753%2072.4915Z'%20fill='darkgrey'/%3e%3cpath%20d='M140.151%20104.76C141.594%2096.3432%20132.67%2086.3542%20121.049%2088.3387C116.251%2096.3166%20111.305%20104.167%20106.21%20111.89C109.317%20116.364%20118.141%20121.376%20125.535%20120.264C133.872%20118.804%20138.613%20113.738%20140.151%20104.76Z'%20fill='white'/%3e%3cpath%20d='M156.755%20156.883C153.217%20165.043%20147.805%20172.237%20141.188%20178.136C133.925%20184.639%20125.011%20189.465%20114.809%20191.896C95.2214%20196.558%2072.2825%20189.842%2061.6836%20174.164C58.5559%20169.414%2056.4778%20163.894%2056%20157.561C72.7744%20157.818%2091.9311%20158.451%20114.34%20158.144L113.462%20157.519C127.463%20157.709%20142.098%20157.159%20156.755%20156.883Z'%20fill='white'/%3e%3c/g%3e%3c/svg%3e", Na = "data:image/svg+xml,%3csvg%20viewBox='0%200%20208%20208'%20opacity='0.9'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20filter='url(%23shadow)'%3e%3cpath%20filter='url(%23shadow)'%20d='M127.173%2079.8894C127.189%2079.1933%20128.026%2079.1201%20128.436%2079.4316C128.754%2079.6091%20128.895%2080.1021%20128.809%2080.5518C129.241%2083.1982%20129.581%2085.7106%20130.013%2088.357C136.835%2079.7558%20149.235%2076.9989%20158.979%2083.174C168.086%2088.9941%20171.001%20111.745%20135.501%20120.502C131.5%20123.502%20117%20125.002%20111.753%20103.279C111.682%2093.2427%20118.526%2084.529%20127.173%2079.8894Z'%20fill='darkgrey'/%3e%3cpath%20d='M28.0441%20167.788C21.826%20195.052%2018.7311%20223.361%2014.1881%20250.885C9.42226%20279.982%204.68042%20308.967%20-0.0853729%20338.064L-1.00047%20342.848C14.5039%20346.419%2030.8401%20350.407%2046.3671%20353.868C90.9428%20363.918%20134.837%20376.598%20179.293%20387.201C200.345%20337.142%20219.778%20286.027%20235.82%20234.041C243.806%20208.213%20244.758%20181.282%20225.443%20160.043C216.099%20149.841%20204.347%20143.858%20191.629%20140.212C188.924%20139.377%20186.108%20138.517%20183.355%20137.905C179.635%20136.959%20175.781%20136.1%20171.989%20135.487C167.45%20134.592%20162.753%20133.893%20158.277%20133.243L127.871%20128.671L116.251%20126.895C115.457%20126.833%20114.686%20126.662%20113.915%20126.49C102.87%20124.724%2091.7381%20122.824%2080.6188%20123.013C69.1682%20123.13%2056.9012%20125.964%2047.8363%20133.224C36.9821%20141.825%2031.1109%20154.087%2028.0441%20167.788Z'%20fill='darkgrey'/%3e%3cpath%20d='M103.74%20123.732L95.6984%20197.532C95.6984%20197.532%20137.13%20157.315%20158.742%20133.268C155.051%20132.316%20151.227%20131.449%20147.465%20130.831C142.962%20129.929%20138.302%20129.224%20133.861%20128.569L103.74%20123.732Z'%20fill='white'/%3e%3cpath%20d='M97.8143%20115.298C99.0227%20116.625%20108.229%20179.332%20108.229%20179.332L148.012%20142.157L129%20100L97.8143%20115.298Z'%20fill='white'/%3e%3cpath%20d='M101.71%20148.534C100.068%20137.868%2098.402%20127.706%2098.0001%20127.274L112.673%20122C113.831%20131.449%20108.467%20141.173%20101.71%20148.534Z'%20fill='grey'/%3e%3cpath%20d='M121.545%2040.7383C111.161%2030.599%2085.3871%2035.4814%2071.93%2046.2862C66.0912%2051.0172%2060.5415%2047.9025%2061.6427%2054.0842C64.3767%2069.3597%2074.0239%20120.283%2082.7631%20126.794C100.374%20139.728%20121.191%20125.699%20127.329%20107.658C133.554%2089.7517%20136.293%2055.2372%20121.545%2040.7383Z'%20fill='white'/%3e%3cpath%20d='M56.0176%2041.9837C61.9834%2036.7831%2074.9427%2037.4243%2081.3074%2039.639C95.1733%2033.9235%20112.672%2032.6801%20120.968%2040.1438C131.22%2049.4771%20133.446%2067.5345%20132.042%2083.8281C125.848%2083.0025%20122.779%2078.6471%20116.718%2075.0286C97.7466%2073.2611%2084.9353%2061.0313%2082.042%2054.2301C78.3492%2058.2067%2063.3398%2059.3993%2058.12%2055.1646C51.1278%2048.7596%2054.1283%2043.6248%2056.0176%2041.9837Z'%20fill='darkgrey'/%3e%3cpath%20d='M142.838%2074.8316C138.561%2067.841%20123.674%2066.785%20116.5%2075.5006C118.078%2084.3219%20121.503%2092.5524%20122.726%20101.41C127.77%20102.657%20137.388%20100.869%20141.908%2095.386C147.168%2089.1414%20147.462%2082.3637%20142.838%2074.8316Z'%20fill='white'/%3e%3c/g%3e%3cdefs%3e%3cfilter%20id='shadow'%3e%3cfeDropShadow%20dx='0'%20dy='0'%20stdDeviation='3'%20flood-color='rgba(0,0,0,0.3)'/%3e%3c/filter%3e%3c/defs%3e%3c/svg%3e", Aa = "data:image/svg+xml,%3csvg%20opacity='0.9'%20viewBox='0%200%20208%20208'%20fill='currentColor'%20xmlns='http://www.w3.org/2000/svg'%3e%3cdefs%3e%3cmask%20id='hole'%3e%3crect%20width='100%25'%20height='100%25'%20fill='white'/%3e%3ccircle%20cx='121.333'%20cy='121.333'%20r='52'%20fill='black'/%3e%3c/mask%3e%3cfilter%20id='shadow'%3e%3cfeDropShadow%20dx='-2'%20dy='-1'%20stdDeviation='10'%20flood-color='rgba(0,0,0,0.2)'/%3e%3c/filter%3e%3c/defs%3e%3cg%20filter='url(%23shadow)'%3e%3ccircle%20cx='104'%20cy='225.333'%20r='95.3333'%20fill='darkgray'/%3e%3ccircle%20cx='104'%20cy='225.333'%20r='95.3333'%20fill='white'%20mask='url(%23hole)'/%3e%3ccircle%20cx='104'%20cy='86.6666'%20r='52'%20fill='white'/%3e%3c/g%3e%3c/svg%3e", Da = "data:image/svg+xml,%3csvg%20opacity='0.9'%20viewBox='0%200%20208%20208'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20filter='url(%23shadow)'%3e%3cpath%20d='M168%20208V118.053C168%20113.824%20165.34%20110.052%20161.356%20108.633L134%2098.885V208H168Z'%20fill='darkgrey'/%3e%3cpath%20d='M40%2072.3726C40%2070.7381%2040.9944%2069.268%2042.5116%2068.6598L111.951%2040.8215C113.226%2040.3102%20114.675%2040.4893%20115.787%2041.2958L129.87%2051.5056C132.464%2053.3866%20134%2056.397%20134%2059.6017V208H40V72.3726Z'%20fill='white'/%3e%3cpath%20d='M114%2047.5001L126.325%2056.3036C127.376%2057.0544%20128%2058.2667%20128%2059.5585V208H114V47.5001Z'%20fill='darkgrey'/%3e%3c/g%3e%3cdefs%3e%3cfilter%20id='shadow'%3e%3cfeDropShadow%20dx='-2'%20dy='-1'%20stdDeviation='7'%20flood-color='rgba(0,0,0,0.2)'/%3e%3c/filter%3e%3c/defs%3e%3c/svg%3e", Oa = {
|
|
970
970
|
male: Ra,
|
|
971
971
|
female: Na,
|
|
972
|
-
org:
|
|
972
|
+
org: Da,
|
|
973
973
|
neutral: Aa
|
|
974
974
|
}, Ze = K((e, r) => {
|
|
975
975
|
const {
|
|
@@ -979,8 +979,8 @@ const Ra = "data:image/svg+xml,%3csvg%20opacity='0.9'%20preserveAspectRatio='xMi
|
|
|
979
979
|
isDisabled: s = !1,
|
|
980
980
|
shape: l = "circle",
|
|
981
981
|
variant: c = "filled",
|
|
982
|
-
placeholderType:
|
|
983
|
-
name:
|
|
982
|
+
placeholderType: p = "neutral",
|
|
983
|
+
name: _,
|
|
984
984
|
imgSrc: f,
|
|
985
985
|
imgAlt: h,
|
|
986
986
|
icon: m,
|
|
@@ -993,11 +993,11 @@ const Ra = "data:image/svg+xml,%3csvg%20opacity='0.9'%20preserveAspectRatio='xMi
|
|
|
993
993
|
oe(() => {
|
|
994
994
|
f && I(!1);
|
|
995
995
|
}, [f]);
|
|
996
|
-
const A = f && !j ? "image" : m ? "icon" :
|
|
996
|
+
const A = f && !j ? "image" : m ? "icon" : _ ? "name" : "placeholder", D = y || A === "name" && ja(_) || "gray", U = Ta(o), q = Ia(o, l), O = k(
|
|
997
997
|
L,
|
|
998
998
|
ge.avatar,
|
|
999
999
|
ge[`variant-${c}`],
|
|
1000
|
-
ge[`color-${
|
|
1000
|
+
ge[`color-${D}`],
|
|
1001
1001
|
ce[U],
|
|
1002
1002
|
{
|
|
1003
1003
|
[ge.disabled]: s,
|
|
@@ -1017,7 +1017,7 @@ const Ra = "data:image/svg+xml,%3csvg%20opacity='0.9'%20preserveAspectRatio='xMi
|
|
|
1017
1017
|
"data-testid": "avatar-name",
|
|
1018
1018
|
className: ge.name,
|
|
1019
1019
|
title: h || void 0,
|
|
1020
|
-
children: ka(
|
|
1020
|
+
children: ka(_ || "")
|
|
1021
1021
|
}
|
|
1022
1022
|
),
|
|
1023
1023
|
placeholder: () => /* @__PURE__ */ n.jsx(
|
|
@@ -1026,7 +1026,7 @@ const Ra = "data:image/svg+xml,%3csvg%20opacity='0.9'%20preserveAspectRatio='xMi
|
|
|
1026
1026
|
...b,
|
|
1027
1027
|
"data-testid": "avatar-placeholder",
|
|
1028
1028
|
className: ge.image,
|
|
1029
|
-
src:
|
|
1029
|
+
src: Oa[p],
|
|
1030
1030
|
alt: h || void 0
|
|
1031
1031
|
}
|
|
1032
1032
|
),
|
|
@@ -1045,25 +1045,25 @@ const Ra = "data:image/svg+xml,%3csvg%20opacity='0.9'%20preserveAspectRatio='xMi
|
|
|
1045
1045
|
}
|
|
1046
1046
|
}
|
|
1047
1047
|
)
|
|
1048
|
-
},
|
|
1048
|
+
}, B = (F) => {
|
|
1049
1049
|
M && (d == null || d(F));
|
|
1050
1050
|
};
|
|
1051
1051
|
return /* @__PURE__ */ n.jsx(
|
|
1052
1052
|
"div",
|
|
1053
1053
|
{
|
|
1054
1054
|
ref: r,
|
|
1055
|
-
onClick:
|
|
1056
|
-
className:
|
|
1055
|
+
onClick: B,
|
|
1056
|
+
className: O,
|
|
1057
1057
|
style: S,
|
|
1058
1058
|
"data-testid": x,
|
|
1059
1059
|
"aria-disabled": s || i,
|
|
1060
1060
|
children: T[A](null)
|
|
1061
1061
|
}
|
|
1062
1062
|
);
|
|
1063
|
-
}),
|
|
1064
|
-
avatarGroup:
|
|
1063
|
+
}), Pa = "_avatarGroup_157g4_1", Ba = {
|
|
1064
|
+
avatarGroup: Pa
|
|
1065
1065
|
};
|
|
1066
|
-
let
|
|
1066
|
+
let za = (e = 21) => crypto.getRandomValues(new Uint8Array(e)).reduce((r, a) => (a &= 63, a < 36 ? r += a.toString(36) : a < 62 ? r += (a - 26).toString(36).toUpperCase() : a > 62 ? r += "-" : r += "_", r), "");
|
|
1067
1067
|
const Ua = (e) => e === "rgba(0, 0, 0, 0)" || e === "transparent" || e.startsWith("rgba") && e.endsWith(", 0)"), Fa = (e) => {
|
|
1068
1068
|
if (!e) return null;
|
|
1069
1069
|
let r = e;
|
|
@@ -1074,7 +1074,7 @@ const Ua = (e) => e === "rgba(0, 0, 0, 0)" || e === "transparent" || e.startsWit
|
|
|
1074
1074
|
}
|
|
1075
1075
|
return null;
|
|
1076
1076
|
}, ft = () => {
|
|
1077
|
-
const e =
|
|
1077
|
+
const e = Be(null), [r, a] = de(null);
|
|
1078
1078
|
return oe(() => {
|
|
1079
1079
|
if (e.current) {
|
|
1080
1080
|
const o = Fa(e.current);
|
|
@@ -1082,10 +1082,10 @@ const Ua = (e) => e === "rgba(0, 0, 0, 0)" || e === "transparent" || e.startsWit
|
|
|
1082
1082
|
}
|
|
1083
1083
|
}, []), { ref: e, bgColor: r };
|
|
1084
1084
|
};
|
|
1085
|
-
function
|
|
1085
|
+
function Dt(e, r, a) {
|
|
1086
1086
|
oe(() => (window.addEventListener(e, r, a), () => window.removeEventListener(e, r, a)), [e, r]);
|
|
1087
1087
|
}
|
|
1088
|
-
const
|
|
1088
|
+
const Ot = {
|
|
1089
1089
|
passive: !0
|
|
1090
1090
|
};
|
|
1091
1091
|
function qa() {
|
|
@@ -1095,7 +1095,7 @@ function qa() {
|
|
|
1095
1095
|
}), a = Se(() => {
|
|
1096
1096
|
r({ width: window.innerWidth || 0, height: window.innerHeight || 0 });
|
|
1097
1097
|
}, []);
|
|
1098
|
-
return
|
|
1098
|
+
return Dt("resize", a, Ot), Dt("orientationchange", a, Ot), oe(a, []), e;
|
|
1099
1099
|
}
|
|
1100
1100
|
function Wa(e = 768) {
|
|
1101
1101
|
const { width: r } = qa();
|
|
@@ -1110,7 +1110,7 @@ const Ha = 2, Va = (e) => {
|
|
|
1110
1110
|
overflowCount: s = 0,
|
|
1111
1111
|
overflowProps: l,
|
|
1112
1112
|
cutoutBackground: c
|
|
1113
|
-
} = e,
|
|
1113
|
+
} = e, _ = -(a * o) + Ha, h = Be(za()).current.toString(), { ref: m, bgColor: b } = ft(), y = c || b, L = Le(Ba.avatarGroup), x = {
|
|
1114
1114
|
...y && { "--avatar-cutout-bg": y }
|
|
1115
1115
|
};
|
|
1116
1116
|
return r.length === 0 ? null : /* @__PURE__ */ n.jsxs("div", { className: L, ref: m, style: x, children: [
|
|
@@ -1124,7 +1124,7 @@ const Ha = 2, Va = (e) => {
|
|
|
1124
1124
|
style: {
|
|
1125
1125
|
// Для последнего видимого аватара без overflowCount не применяем обрезку
|
|
1126
1126
|
clipPath: C && !s ? void 0 : `url(#${h})`,
|
|
1127
|
-
marginRight:
|
|
1127
|
+
marginRight: _
|
|
1128
1128
|
},
|
|
1129
1129
|
children: /* @__PURE__ */ n.jsx(M, { children: /* @__PURE__ */ n.jsx(Ze, { size: a, shape: i, ...v }) })
|
|
1130
1130
|
},
|
|
@@ -1137,14 +1137,14 @@ const Ha = 2, Va = (e) => {
|
|
|
1137
1137
|
style: {
|
|
1138
1138
|
// Для последнего видимого аватара без overflowCount не применяем обрезку
|
|
1139
1139
|
clipPath: C && !s ? void 0 : `url(#${h})`,
|
|
1140
|
-
marginRight:
|
|
1140
|
+
marginRight: _
|
|
1141
1141
|
},
|
|
1142
1142
|
children: /* @__PURE__ */ n.jsx(Ze, { size: a, shape: i, ...v })
|
|
1143
1143
|
},
|
|
1144
1144
|
Je(v) + d
|
|
1145
1145
|
);
|
|
1146
1146
|
}),
|
|
1147
|
-
s > 0 && /* @__PURE__ */ n.jsx("div", { style: { marginRight:
|
|
1147
|
+
s > 0 && /* @__PURE__ */ n.jsx("div", { style: { marginRight: _ }, children: /* @__PURE__ */ n.jsx(
|
|
1148
1148
|
Ze,
|
|
1149
1149
|
{
|
|
1150
1150
|
size: a,
|
|
@@ -1204,15 +1204,15 @@ const Ha = 2, Va = (e) => {
|
|
|
1204
1204
|
label: s,
|
|
1205
1205
|
isHidden: l = !1,
|
|
1206
1206
|
colorScheme: c = "red",
|
|
1207
|
-
size:
|
|
1208
|
-
position:
|
|
1207
|
+
size: p = 20,
|
|
1208
|
+
position: _ = "top-right",
|
|
1209
1209
|
positionOffset: f = { x: 0, y: 0 },
|
|
1210
1210
|
cutoutBackground: h,
|
|
1211
1211
|
isDisabled: m,
|
|
1212
1212
|
className: b,
|
|
1213
1213
|
"data-testid": y = "badge",
|
|
1214
1214
|
...L
|
|
1215
|
-
} = e, { onClick: x, onPointerDown: v } = L, { ref: d, bgColor: w } = ft(), C = h || w, j = !m && (!!x || !!v), I = Le(ye.badge__container, ye[`position-${
|
|
1215
|
+
} = e, { onClick: x, onPointerDown: v } = L, { ref: d, bgColor: w } = ft(), C = h || w, j = !m && (!!x || !!v), I = Le(ye.badge__container, ye[`position-${_}`]), A = Le(
|
|
1216
1216
|
b,
|
|
1217
1217
|
ye.badge__content,
|
|
1218
1218
|
ye[`color-${c}`],
|
|
@@ -1222,14 +1222,14 @@ const Ha = 2, Va = (e) => {
|
|
|
1222
1222
|
[ye.icon]: !!a,
|
|
1223
1223
|
[ye.interactive]: j
|
|
1224
1224
|
}
|
|
1225
|
-
),
|
|
1226
|
-
"--badge-height": `${
|
|
1225
|
+
), D = {
|
|
1226
|
+
"--badge-height": `${p}px`,
|
|
1227
1227
|
"--badge-offset-x": `${f.x}px`,
|
|
1228
1228
|
"--badge-offset-y": `${f.y}px`,
|
|
1229
1229
|
...C && { "--badge-cutout-bg": C },
|
|
1230
1230
|
...i === "transparent" && { "--badge-cutout-bg": "transparent" }
|
|
1231
|
-
}, U = (a == null ? void 0 : a({})) || s, q = (
|
|
1232
|
-
j && (x == null || x(
|
|
1231
|
+
}, U = (a == null ? void 0 : a({})) || s, q = (O) => {
|
|
1232
|
+
j && (x == null || x(O));
|
|
1233
1233
|
};
|
|
1234
1234
|
return /* @__PURE__ */ n.jsxs("div", { className: ye.wrapper, ref: d, "data-testid": y + "-wrapper", children: [
|
|
1235
1235
|
o,
|
|
@@ -1237,7 +1237,7 @@ const Ha = 2, Va = (e) => {
|
|
|
1237
1237
|
"span",
|
|
1238
1238
|
{
|
|
1239
1239
|
className: I,
|
|
1240
|
-
style:
|
|
1240
|
+
style: D,
|
|
1241
1241
|
"data-testid": y + "-container",
|
|
1242
1242
|
children: /* @__PURE__ */ n.jsx(
|
|
1243
1243
|
"span",
|
|
@@ -1258,7 +1258,7 @@ const Ha = 2, Va = (e) => {
|
|
|
1258
1258
|
container: en,
|
|
1259
1259
|
image: tn,
|
|
1260
1260
|
loading: rn
|
|
1261
|
-
}, an = "_loader_isv17_1", nn = "_spin_isv17_1", sn = "_accent_isv17_19", on = "_neutral_isv17_23", ln = "_positive_isv17_27", cn = "_negative_isv17_31", dn = "_gray_isv17_35", un = "_special_isv17_39",
|
|
1261
|
+
}, an = "_loader_isv17_1", nn = "_spin_isv17_1", sn = "_accent_isv17_19", on = "_neutral_isv17_23", ln = "_positive_isv17_27", cn = "_negative_isv17_31", dn = "_gray_isv17_35", un = "_special_isv17_39", pn = "_contrast_isv17_43", _n = "_container_isv17_47", fn = "_overlay_isv17_57", qe = {
|
|
1262
1262
|
loader: an,
|
|
1263
1263
|
spin: nn,
|
|
1264
1264
|
accent: sn,
|
|
@@ -1267,8 +1267,8 @@ const Ha = 2, Va = (e) => {
|
|
|
1267
1267
|
negative: cn,
|
|
1268
1268
|
gray: dn,
|
|
1269
1269
|
special: un,
|
|
1270
|
-
contrast:
|
|
1271
|
-
container:
|
|
1270
|
+
contrast: pn,
|
|
1271
|
+
container: _n,
|
|
1272
1272
|
overlay: fn,
|
|
1273
1273
|
"size-16": "_size-16_isv17_72",
|
|
1274
1274
|
"size-24": "_size-24_isv17_76",
|
|
@@ -1321,12 +1321,12 @@ const Ha = 2, Va = (e) => {
|
|
|
1321
1321
|
children: s,
|
|
1322
1322
|
className: l,
|
|
1323
1323
|
style: c,
|
|
1324
|
-
"data-testid":
|
|
1325
|
-
...
|
|
1324
|
+
"data-testid": p,
|
|
1325
|
+
..._
|
|
1326
1326
|
} = e, f = Le(qe.container, l);
|
|
1327
|
-
return /* @__PURE__ */ n.jsxs("div", { ref: r, className: f, style: c, "data-testid":
|
|
1327
|
+
return /* @__PURE__ */ n.jsxs("div", { ref: r, className: f, style: c, "data-testid": p, ..._, children: [
|
|
1328
1328
|
s,
|
|
1329
|
-
a && /* @__PURE__ */ n.jsx("div", { className: qe.overlay, children: /* @__PURE__ */ n.jsx(Zt, { size: o, variant: i, "data-testid": `${
|
|
1329
|
+
a && /* @__PURE__ */ n.jsx("div", { className: qe.overlay, children: /* @__PURE__ */ n.jsx(Zt, { size: o, variant: i, "data-testid": `${p}-spinner` }) })
|
|
1330
1330
|
] });
|
|
1331
1331
|
}), bn = K((e, r) => e.children ? /* @__PURE__ */ n.jsx(
|
|
1332
1332
|
hn,
|
|
@@ -1363,8 +1363,8 @@ const Ha = 2, Va = (e) => {
|
|
|
1363
1363
|
isLoading: s = !1,
|
|
1364
1364
|
className: l,
|
|
1365
1365
|
"data-testid": c = "image",
|
|
1366
|
-
onError:
|
|
1367
|
-
onLoad:
|
|
1366
|
+
onError: p,
|
|
1367
|
+
onLoad: _,
|
|
1368
1368
|
...f
|
|
1369
1369
|
} = e, [h, m] = de("loading"), b = h === "error", y = (s || h === "loading") && !b, L = h === "loaded" && !s, x = Le(
|
|
1370
1370
|
lt.image,
|
|
@@ -1374,16 +1374,16 @@ const Ha = 2, Va = (e) => {
|
|
|
1374
1374
|
l
|
|
1375
1375
|
), v = Se(
|
|
1376
1376
|
(C) => {
|
|
1377
|
-
m("loaded"),
|
|
1377
|
+
m("loaded"), _ == null || _(C);
|
|
1378
1378
|
},
|
|
1379
|
-
[
|
|
1379
|
+
[_]
|
|
1380
1380
|
), d = Se(
|
|
1381
1381
|
(C) => {
|
|
1382
|
-
m("error"),
|
|
1382
|
+
m("error"), p == null || p(C);
|
|
1383
1383
|
},
|
|
1384
|
-
[
|
|
1384
|
+
[p]
|
|
1385
1385
|
), w = {
|
|
1386
|
-
loader: /* @__PURE__ */ n.jsxs(
|
|
1386
|
+
loader: /* @__PURE__ */ n.jsxs(Oe, { children: [
|
|
1387
1387
|
/* @__PURE__ */ n.jsx(bn, { size: 48, variant: "special", "data-testid": `${c}-loader` }),
|
|
1388
1388
|
/* @__PURE__ */ n.jsx(
|
|
1389
1389
|
"img",
|
|
@@ -1442,7 +1442,7 @@ const Ha = 2, Va = (e) => {
|
|
|
1442
1442
|
i.style.setProperty(s, l);
|
|
1443
1443
|
});
|
|
1444
1444
|
}
|
|
1445
|
-
}, [r]), /* @__PURE__ */ n.jsxs(
|
|
1445
|
+
}, [r]), /* @__PURE__ */ n.jsxs(Oe, { children: [
|
|
1446
1446
|
/* @__PURE__ */ n.jsx(
|
|
1447
1447
|
"div",
|
|
1448
1448
|
{
|
|
@@ -1451,7 +1451,7 @@ const Ha = 2, Va = (e) => {
|
|
|
1451
1451
|
}
|
|
1452
1452
|
),
|
|
1453
1453
|
/* @__PURE__ */ n.jsx(Xt.Provider, { value: { locale: e }, children: a })
|
|
1454
|
-
] })), Zi = {}, Cn = "_tag_1llsi_1", Sn = "_label_1llsi_16", Ln = "_iconWrapper_1llsi_20", En = "_medium_1llsi_27", jn = "_large_1llsi_33", kn = "_disabled_1llsi_43", Mn = "_neutral_1llsi_47", In = "_positive_1llsi_53", $n = "_negative_1llsi_59", Tn = "_warning_1llsi_65", Rn = "_vivid_1llsi_71", Nn = "_special_1llsi_77", An = "_accent_1llsi_84",
|
|
1454
|
+
] })), Zi = {}, Cn = "_tag_1llsi_1", Sn = "_label_1llsi_16", Ln = "_iconWrapper_1llsi_20", En = "_medium_1llsi_27", jn = "_large_1llsi_33", kn = "_disabled_1llsi_43", Mn = "_neutral_1llsi_47", In = "_positive_1llsi_53", $n = "_negative_1llsi_59", Tn = "_warning_1llsi_65", Rn = "_vivid_1llsi_71", Nn = "_special_1llsi_77", An = "_accent_1llsi_84", Dn = "_blue_1llsi_90", On = "_lovely_1llsi_96", Pn = "_dreamy_1llsi_102", ke = {
|
|
1455
1455
|
tag: Cn,
|
|
1456
1456
|
label: Sn,
|
|
1457
1457
|
iconWrapper: Ln,
|
|
@@ -1465,9 +1465,9 @@ const Ha = 2, Va = (e) => {
|
|
|
1465
1465
|
vivid: Rn,
|
|
1466
1466
|
special: Nn,
|
|
1467
1467
|
accent: An,
|
|
1468
|
-
blue:
|
|
1469
|
-
lovely:
|
|
1470
|
-
dreamy:
|
|
1468
|
+
blue: Dn,
|
|
1469
|
+
lovely: On,
|
|
1470
|
+
dreamy: Pn
|
|
1471
1471
|
}, Xi = K((e, r) => {
|
|
1472
1472
|
const {
|
|
1473
1473
|
className: a,
|
|
@@ -1476,8 +1476,8 @@ const Ha = 2, Va = (e) => {
|
|
|
1476
1476
|
size: s = "medium",
|
|
1477
1477
|
disabled: l = !1,
|
|
1478
1478
|
showLabel: c = !!o,
|
|
1479
|
-
slotStart:
|
|
1480
|
-
slotEnd:
|
|
1479
|
+
slotStart: p,
|
|
1480
|
+
slotEnd: _,
|
|
1481
1481
|
slotStartWrapperProps: f = {},
|
|
1482
1482
|
slotEndWrapperProps: h = {},
|
|
1483
1483
|
"data-testid": m
|
|
@@ -1499,15 +1499,15 @@ const Ha = 2, Va = (e) => {
|
|
|
1499
1499
|
"data-testid": m || "tag-component",
|
|
1500
1500
|
ref: r,
|
|
1501
1501
|
children: [
|
|
1502
|
-
|
|
1502
|
+
p && /* @__PURE__ */ n.jsx("span", { className: k([ke.iconWrapper, b]), ...y, children: p }),
|
|
1503
1503
|
c && /* @__PURE__ */ n.jsx("span", { className: k([ke.label]), children: o }),
|
|
1504
|
-
|
|
1504
|
+
_ && /* @__PURE__ */ n.jsx("span", { className: k([ke.iconWrapper, L]), ...x, children: _ })
|
|
1505
1505
|
]
|
|
1506
1506
|
}
|
|
1507
1507
|
);
|
|
1508
|
-
}),
|
|
1509
|
-
checkbox:
|
|
1510
|
-
input:
|
|
1508
|
+
}), Bn = "_checkbox_17txq_43", zn = "_input_17txq_64", Un = "_icon_17txq_72", Fn = "_container_17txq_92", qn = "_error_17txq_143", Wn = "_checkboxWrapper_17txq_156", Hn = "_medium_17txq_211", Vn = "_large_17txq_216", Gn = "_label_17txq_258", xe = {
|
|
1509
|
+
checkbox: Bn,
|
|
1510
|
+
input: zn,
|
|
1511
1511
|
icon: Un,
|
|
1512
1512
|
container: Fn,
|
|
1513
1513
|
error: qn,
|
|
@@ -1597,8 +1597,8 @@ const Ha = 2, Va = (e) => {
|
|
|
1597
1597
|
indeterminate: s = !1,
|
|
1598
1598
|
loading: l = !1,
|
|
1599
1599
|
error: c,
|
|
1600
|
-
disabled:
|
|
1601
|
-
containerClassName:
|
|
1600
|
+
disabled: p = !1,
|
|
1601
|
+
containerClassName: _,
|
|
1602
1602
|
className: f,
|
|
1603
1603
|
containerStyle: h,
|
|
1604
1604
|
style: m,
|
|
@@ -1607,7 +1607,7 @@ const Ha = 2, Va = (e) => {
|
|
|
1607
1607
|
tabIndex: L,
|
|
1608
1608
|
onChange: x,
|
|
1609
1609
|
"data-testid": v = "checkbox"
|
|
1610
|
-
} = e, [d, w] = de(!1), C = o ?? d, M =
|
|
1610
|
+
} = e, [d, w] = de(!1), C = o ?? d, M = p || l, j = !!c, I = C || s, A = k(xe.container, xe[i], _), D = k(
|
|
1611
1611
|
xe.checkbox,
|
|
1612
1612
|
xe[i],
|
|
1613
1613
|
{
|
|
@@ -1619,10 +1619,10 @@ const Ha = 2, Va = (e) => {
|
|
|
1619
1619
|
}, q = (T) => {
|
|
1620
1620
|
if (T.key === "Enter" && !M) {
|
|
1621
1621
|
T.preventDefault();
|
|
1622
|
-
const
|
|
1623
|
-
w(
|
|
1622
|
+
const B = !I;
|
|
1623
|
+
w(B), x == null || x(B);
|
|
1624
1624
|
}
|
|
1625
|
-
},
|
|
1625
|
+
}, O = (T) => {
|
|
1626
1626
|
y || T.preventDefault();
|
|
1627
1627
|
}, S = (T) => T.stopPropagation();
|
|
1628
1628
|
return /* @__PURE__ */ n.jsxs(
|
|
@@ -1638,7 +1638,7 @@ const Ha = 2, Va = (e) => {
|
|
|
1638
1638
|
"div",
|
|
1639
1639
|
{
|
|
1640
1640
|
tabIndex: L || 0,
|
|
1641
|
-
className:
|
|
1641
|
+
className: D,
|
|
1642
1642
|
style: m,
|
|
1643
1643
|
onKeyDown: q,
|
|
1644
1644
|
"aria-checked": I,
|
|
@@ -1685,14 +1685,14 @@ const Ha = 2, Va = (e) => {
|
|
|
1685
1685
|
"data-testid": `${v}-label-text`,
|
|
1686
1686
|
"data-clickable-label": y,
|
|
1687
1687
|
className: xe.label,
|
|
1688
|
-
onClick:
|
|
1688
|
+
onClick: O,
|
|
1689
1689
|
children: b
|
|
1690
1690
|
}
|
|
1691
1691
|
)
|
|
1692
1692
|
]
|
|
1693
1693
|
}
|
|
1694
1694
|
);
|
|
1695
|
-
}), Kn = "_typography_zt7xg_1", Qn = "_disabled_zt7xg_8", es = "_primary_zt7xg_13", ts = "_secondary_zt7xg_18", rs = "_tertiary_zt7xg_23", as = "_accent_zt7xg_28", ns = "_positive_zt7xg_38", ss = "_negative_zt7xg_48", os = "_warning_zt7xg_58", is = "_special_zt7xg_68", ls = "_contrast_zt7xg_78",
|
|
1695
|
+
}), Kn = "_typography_zt7xg_1", Qn = "_disabled_zt7xg_8", es = "_primary_zt7xg_13", ts = "_secondary_zt7xg_18", rs = "_tertiary_zt7xg_23", as = "_accent_zt7xg_28", ns = "_positive_zt7xg_38", ss = "_negative_zt7xg_48", os = "_warning_zt7xg_58", is = "_special_zt7xg_68", ls = "_contrast_zt7xg_78", Pe = {
|
|
1696
1696
|
typography: Kn,
|
|
1697
1697
|
disabled: Qn,
|
|
1698
1698
|
primary: es,
|
|
@@ -1716,7 +1716,7 @@ const Ha = 2, Va = (e) => {
|
|
|
1716
1716
|
3: "h3",
|
|
1717
1717
|
4: "h4",
|
|
1718
1718
|
5: "h5"
|
|
1719
|
-
},
|
|
1719
|
+
}, Pt = (e) => {
|
|
1720
1720
|
const r = Vt.forwardRef(
|
|
1721
1721
|
({
|
|
1722
1722
|
size: a = 3,
|
|
@@ -1725,16 +1725,16 @@ const Ha = 2, Va = (e) => {
|
|
|
1725
1725
|
"data-testid": s,
|
|
1726
1726
|
as: l,
|
|
1727
1727
|
fontWeight: c = "semibold",
|
|
1728
|
-
disabled:
|
|
1729
|
-
typographyStyle:
|
|
1728
|
+
disabled: p = !1,
|
|
1729
|
+
typographyStyle: _ = "primary",
|
|
1730
1730
|
...f
|
|
1731
1731
|
}, h) => {
|
|
1732
1732
|
const m = l || cs[a], b = k(
|
|
1733
|
-
|
|
1733
|
+
Pe.typography,
|
|
1734
1734
|
ce[`typography-${e}-${a}-${c}`],
|
|
1735
|
-
|
|
1735
|
+
Pe[_],
|
|
1736
1736
|
{
|
|
1737
|
-
[
|
|
1737
|
+
[Pe.disabled]: p
|
|
1738
1738
|
},
|
|
1739
1739
|
i
|
|
1740
1740
|
);
|
|
@@ -1742,7 +1742,7 @@ const Ha = 2, Va = (e) => {
|
|
|
1742
1742
|
}
|
|
1743
1743
|
);
|
|
1744
1744
|
return r.displayName = `Typography.${e === "title" ? "Title" : "Subtitle"}`, r;
|
|
1745
|
-
},
|
|
1745
|
+
}, Bt = (e) => {
|
|
1746
1746
|
const r = Vt.forwardRef(
|
|
1747
1747
|
({
|
|
1748
1748
|
size: a = 3,
|
|
@@ -1751,16 +1751,16 @@ const Ha = 2, Va = (e) => {
|
|
|
1751
1751
|
"data-testid": s,
|
|
1752
1752
|
as: l = "p",
|
|
1753
1753
|
fontWeight: c = "regular",
|
|
1754
|
-
disabled:
|
|
1755
|
-
typographyStyle:
|
|
1754
|
+
disabled: p = !1,
|
|
1755
|
+
typographyStyle: _ = "primary",
|
|
1756
1756
|
...f
|
|
1757
1757
|
}, h) => {
|
|
1758
1758
|
const m = l, b = k(
|
|
1759
|
-
|
|
1759
|
+
Pe.typography,
|
|
1760
1760
|
ce[`typography-${e}-${a}-${c}`],
|
|
1761
|
-
|
|
1761
|
+
Pe[_],
|
|
1762
1762
|
{
|
|
1763
|
-
[
|
|
1763
|
+
[Pe.disabled]: p
|
|
1764
1764
|
},
|
|
1765
1765
|
i
|
|
1766
1766
|
);
|
|
@@ -1777,17 +1777,17 @@ const Ha = 2, Va = (e) => {
|
|
|
1777
1777
|
}
|
|
1778
1778
|
);
|
|
1779
1779
|
return r.displayName = `Typography.${e.charAt(0).toUpperCase() + e.slice(1)}`, r;
|
|
1780
|
-
},
|
|
1781
|
-
Title:
|
|
1782
|
-
Subtitle:
|
|
1783
|
-
Label:
|
|
1784
|
-
Paragraph:
|
|
1785
|
-
}, ds = "_inputBase_1q54n_82", us = "_wrapper_1q54n_92",
|
|
1780
|
+
}, zt = {
|
|
1781
|
+
Title: Pt("title"),
|
|
1782
|
+
Subtitle: Pt("subtitle"),
|
|
1783
|
+
Label: Bt("label"),
|
|
1784
|
+
Paragraph: Bt("paragraph")
|
|
1785
|
+
}, ds = "_inputBase_1q54n_82", us = "_wrapper_1q54n_92", ps = "_gripHandle_1q54n_172", _s = "_error_1q54n_238", fs = "_tabFocused_1q54n_245", hs = "_disabled_1q54n_270", bs = "_loading_1q54n_277", gs = "_label_1q54n_287", ms = "_small_1q54n_301", ys = "_large_1q54n_308", vs = "_leftSection_1q54n_315", xs = "_rightSection_1q54n_327", ws = "_helper_1q54n_365", Cs = "_floatingLabel_1q54n_393", Ss = "_focused_1q54n_461", Ls = "_filled_1q54n_462", Es = "_medium_1q54n_503", js = "_characterLimit_1q54n_545", ks = "_input_1q54n_82", Ms = "_textarea_1q54n_110", Is = "_truncate_1q54n_678", $s = "_hint_1q54n_765", N = {
|
|
1786
1786
|
inputBase: ds,
|
|
1787
1787
|
wrapper: us,
|
|
1788
1788
|
"textarea-wrapper": "_textarea-wrapper_1q54n_110",
|
|
1789
|
-
gripHandle:
|
|
1790
|
-
error:
|
|
1789
|
+
gripHandle: ps,
|
|
1790
|
+
error: _s,
|
|
1791
1791
|
tabFocused: fs,
|
|
1792
1792
|
disabled: hs,
|
|
1793
1793
|
loading: bs,
|
|
@@ -1881,7 +1881,7 @@ const Ha = 2, Va = (e) => {
|
|
|
1881
1881
|
}
|
|
1882
1882
|
);
|
|
1883
1883
|
}, Rs = (e, r) => {
|
|
1884
|
-
const a =
|
|
1884
|
+
const a = Be(null), o = Be(null);
|
|
1885
1885
|
return oe(() => {
|
|
1886
1886
|
const i = r === "textarea" ? a.current : o.current;
|
|
1887
1887
|
i && i.value !== e && (i.value = e || "");
|
|
@@ -1909,16 +1909,16 @@ const Ha = 2, Va = (e) => {
|
|
|
1909
1909
|
s.preventDefault(), s.stopPropagation();
|
|
1910
1910
|
const l = s.currentTarget.closest(`.${N.wrapper}`);
|
|
1911
1911
|
if (!l) return;
|
|
1912
|
-
const c = s.clientY,
|
|
1913
|
-
const m = h.clientY - c, b = Math.min(100,
|
|
1912
|
+
const c = s.clientY, p = l.clientHeight, _ = (h) => {
|
|
1913
|
+
const m = h.clientY - c, b = Math.min(100, p), y = Math.max(b, p + m);
|
|
1914
1914
|
l.style.height = `${y}px`;
|
|
1915
1915
|
}, f = () => {
|
|
1916
|
-
document.removeEventListener("mousemove",
|
|
1916
|
+
document.removeEventListener("mousemove", _), document.removeEventListener("mouseup", f);
|
|
1917
1917
|
};
|
|
1918
|
-
document.addEventListener("mousemove",
|
|
1918
|
+
document.addEventListener("mousemove", _), document.addEventListener("mouseup", f);
|
|
1919
1919
|
},
|
|
1920
1920
|
[e, r, a, o]
|
|
1921
|
-
) }), Ut = 30,
|
|
1921
|
+
) }), Ut = 30, Ds = K(
|
|
1922
1922
|
({
|
|
1923
1923
|
component: e = "input",
|
|
1924
1924
|
size: r = "medium",
|
|
@@ -1928,8 +1928,8 @@ const Ha = 2, Va = (e) => {
|
|
|
1928
1928
|
loading: s = !1,
|
|
1929
1929
|
onFocus: l,
|
|
1930
1930
|
onBlur: c,
|
|
1931
|
-
onChange:
|
|
1932
|
-
onKeyDown:
|
|
1931
|
+
onChange: p,
|
|
1932
|
+
onKeyDown: _,
|
|
1933
1933
|
onKeyUp: f,
|
|
1934
1934
|
maxLength: h,
|
|
1935
1935
|
className: m,
|
|
@@ -1954,8 +1954,8 @@ const Ha = 2, Va = (e) => {
|
|
|
1954
1954
|
disabled: i || s,
|
|
1955
1955
|
onFocus: l,
|
|
1956
1956
|
onBlur: c,
|
|
1957
|
-
onChange:
|
|
1958
|
-
onKeyDown:
|
|
1957
|
+
onChange: p,
|
|
1958
|
+
onKeyDown: _,
|
|
1959
1959
|
onKeyUp: f,
|
|
1960
1960
|
maxLength: h,
|
|
1961
1961
|
className: k(
|
|
@@ -1984,8 +1984,8 @@ const Ha = 2, Va = (e) => {
|
|
|
1984
1984
|
disabled: i || s,
|
|
1985
1985
|
onFocus: l,
|
|
1986
1986
|
onBlur: c,
|
|
1987
|
-
onChange:
|
|
1988
|
-
onKeyDown:
|
|
1987
|
+
onChange: p,
|
|
1988
|
+
onKeyDown: _,
|
|
1989
1989
|
onKeyUp: f,
|
|
1990
1990
|
maxLength: h,
|
|
1991
1991
|
className: k(
|
|
@@ -2018,8 +2018,8 @@ const Ha = 2, Va = (e) => {
|
|
|
2018
2018
|
className: s,
|
|
2019
2019
|
wrapperProps: l,
|
|
2020
2020
|
wrapperStyles: c,
|
|
2021
|
-
floatingLabelStyles:
|
|
2022
|
-
prefixStyles:
|
|
2021
|
+
floatingLabelStyles: p,
|
|
2022
|
+
prefixStyles: _,
|
|
2023
2023
|
suffixStyles: f,
|
|
2024
2024
|
labelProps: h,
|
|
2025
2025
|
helperProps: m,
|
|
@@ -2035,14 +2035,14 @@ const Ha = 2, Va = (e) => {
|
|
|
2035
2035
|
showLabel: j = !0,
|
|
2036
2036
|
labelClassName: I,
|
|
2037
2037
|
hasValue: A = !1,
|
|
2038
|
-
helper:
|
|
2038
|
+
helper: D,
|
|
2039
2039
|
id: U,
|
|
2040
2040
|
value: q = "",
|
|
2041
|
-
resize:
|
|
2041
|
+
resize: O,
|
|
2042
2042
|
showGrip: S = !1,
|
|
2043
2043
|
...T
|
|
2044
|
-
},
|
|
2045
|
-
const F =
|
|
2044
|
+
}, B) => {
|
|
2045
|
+
const F = _t(), H = U || F, Q = x && L && (A || v), ie = L && L.length > Ut ? L.substring(0, Ut) + "..." : L, Y = k(
|
|
2046
2046
|
N.wrapper,
|
|
2047
2047
|
a && N.error,
|
|
2048
2048
|
o && N.disabled,
|
|
@@ -2056,18 +2056,18 @@ const Ha = 2, Va = (e) => {
|
|
|
2056
2056
|
N[r],
|
|
2057
2057
|
A && N.filled,
|
|
2058
2058
|
I
|
|
2059
|
-
), { handleGripMouseDown: ee } = As(S, o, i,
|
|
2060
|
-
return /* @__PURE__ */ n.jsxs("div", { ref:
|
|
2059
|
+
), { handleGripMouseDown: ee } = As(S, o, i, O);
|
|
2060
|
+
return /* @__PURE__ */ n.jsxs("div", { ref: B, className: N.inputBase, "data-testid": "input-base-wrapper", ...T, children: [
|
|
2061
2061
|
/* @__PURE__ */ n.jsxs(
|
|
2062
2062
|
"div",
|
|
2063
2063
|
{
|
|
2064
2064
|
className: Y,
|
|
2065
2065
|
style: c,
|
|
2066
|
-
"data-resize":
|
|
2066
|
+
"data-resize": O,
|
|
2067
2067
|
"data-show-grip": S ? "true" : "false",
|
|
2068
2068
|
...l,
|
|
2069
2069
|
children: [
|
|
2070
|
-
d && /* @__PURE__ */ n.jsx("label", { htmlFor: H, className: N.leftSection, style:
|
|
2070
|
+
d && /* @__PURE__ */ n.jsx("label", { htmlFor: H, className: N.leftSection, style: _, children: d }),
|
|
2071
2071
|
w && /* @__PURE__ */ n.jsx(
|
|
2072
2072
|
"label",
|
|
2073
2073
|
{
|
|
@@ -2083,13 +2083,13 @@ const Ha = 2, Va = (e) => {
|
|
|
2083
2083
|
{
|
|
2084
2084
|
htmlFor: H,
|
|
2085
2085
|
className: ue,
|
|
2086
|
-
style:
|
|
2086
|
+
style: p,
|
|
2087
2087
|
...h,
|
|
2088
2088
|
children: M
|
|
2089
2089
|
}
|
|
2090
2090
|
),
|
|
2091
2091
|
e,
|
|
2092
|
-
S && !b && (
|
|
2092
|
+
S && !b && (O === "fixed" || !O) && /* @__PURE__ */ n.jsx(
|
|
2093
2093
|
"div",
|
|
2094
2094
|
{
|
|
2095
2095
|
className: N.gripHandle,
|
|
@@ -2116,7 +2116,7 @@ const Ha = 2, Va = (e) => {
|
|
|
2116
2116
|
]
|
|
2117
2117
|
}
|
|
2118
2118
|
),
|
|
2119
|
-
|
|
2119
|
+
D && /* @__PURE__ */ n.jsx(
|
|
2120
2120
|
"div",
|
|
2121
2121
|
{
|
|
2122
2122
|
className: k(
|
|
@@ -2126,14 +2126,14 @@ const Ha = 2, Va = (e) => {
|
|
|
2126
2126
|
),
|
|
2127
2127
|
...m,
|
|
2128
2128
|
id: a ? `${H}-error` : void 0,
|
|
2129
|
-
children:
|
|
2129
|
+
children: D
|
|
2130
2130
|
}
|
|
2131
2131
|
)
|
|
2132
2132
|
] });
|
|
2133
2133
|
}
|
|
2134
2134
|
);
|
|
2135
2135
|
Kt.displayName = "InputWrapperComponent";
|
|
2136
|
-
const Ft = Object.assign(
|
|
2136
|
+
const Ft = Object.assign(Ds, {
|
|
2137
2137
|
Wrapper: Kt
|
|
2138
2138
|
}), Qt = K(
|
|
2139
2139
|
({
|
|
@@ -2145,8 +2145,8 @@ const Ft = Object.assign(zs, {
|
|
|
2145
2145
|
loading: s = !1,
|
|
2146
2146
|
placeholder: l,
|
|
2147
2147
|
showLabel: c = !0,
|
|
2148
|
-
labelClassName:
|
|
2149
|
-
helper:
|
|
2148
|
+
labelClassName: p,
|
|
2149
|
+
helper: _,
|
|
2150
2150
|
prefix: f,
|
|
2151
2151
|
suffix: h,
|
|
2152
2152
|
id: m,
|
|
@@ -2162,20 +2162,20 @@ const Ft = Object.assign(zs, {
|
|
|
2162
2162
|
prefixStyles: j,
|
|
2163
2163
|
suffixStyles: I,
|
|
2164
2164
|
textareaStyles: A,
|
|
2165
|
-
labelProps:
|
|
2165
|
+
labelProps: D,
|
|
2166
2166
|
helperProps: U,
|
|
2167
2167
|
showLimit: q = !1,
|
|
2168
|
-
maxLength:
|
|
2168
|
+
maxLength: O,
|
|
2169
2169
|
inputProps: S,
|
|
2170
2170
|
hint: T,
|
|
2171
|
-
showHint:
|
|
2171
|
+
showHint: B = !1,
|
|
2172
2172
|
showHintOnEmpty: F = !1,
|
|
2173
2173
|
truncate: H = !1,
|
|
2174
2174
|
resize: Q,
|
|
2175
2175
|
showGrip: ie = !1,
|
|
2176
2176
|
...Y
|
|
2177
2177
|
}, ue) => {
|
|
2178
|
-
const ee =
|
|
2178
|
+
const ee = _t(), Ce = m || ee, [ze, me] = de(d), Me = d !== void 0 ? d : ze, Ie = (Me || "").length > 0, Ee = Me || "", $e = c && (r === "large" || e === "textarea") && !f, Ke = Se(
|
|
2179
2179
|
(Z) => {
|
|
2180
2180
|
var X;
|
|
2181
2181
|
i || s || (b == null || b(), (X = S == null ? void 0 : S.onFocus) == null || X.call(
|
|
@@ -2235,21 +2235,21 @@ const Ft = Object.assign(zs, {
|
|
|
2235
2235
|
floatingLabelStyles: M,
|
|
2236
2236
|
prefixStyles: j,
|
|
2237
2237
|
suffixStyles: I,
|
|
2238
|
-
labelProps:
|
|
2238
|
+
labelProps: D,
|
|
2239
2239
|
helperProps: U,
|
|
2240
2240
|
showLimit: q,
|
|
2241
|
-
maxLength:
|
|
2241
|
+
maxLength: O,
|
|
2242
2242
|
hint: T,
|
|
2243
|
-
showHint:
|
|
2243
|
+
showHint: B,
|
|
2244
2244
|
showHintOnEmpty: F,
|
|
2245
2245
|
prefix: f,
|
|
2246
2246
|
suffix: h,
|
|
2247
2247
|
onSuffixClick: x,
|
|
2248
2248
|
placeholder: l,
|
|
2249
2249
|
showLabel: c,
|
|
2250
|
-
labelClassName:
|
|
2250
|
+
labelClassName: p,
|
|
2251
2251
|
hasValue: Ie,
|
|
2252
|
-
helper:
|
|
2252
|
+
helper: _,
|
|
2253
2253
|
id: Ce,
|
|
2254
2254
|
value: Ee,
|
|
2255
2255
|
showGrip: ie,
|
|
@@ -2269,7 +2269,7 @@ const Ft = Object.assign(zs, {
|
|
|
2269
2269
|
onChange: et,
|
|
2270
2270
|
onKeyDown: L,
|
|
2271
2271
|
onKeyUp: He,
|
|
2272
|
-
maxLength:
|
|
2272
|
+
maxLength: O,
|
|
2273
2273
|
truncate: H,
|
|
2274
2274
|
"data-empty": !Ie,
|
|
2275
2275
|
shouldShowFloatingLabelClass: $e,
|
|
@@ -2288,7 +2288,7 @@ const Ft = Object.assign(zs, {
|
|
|
2288
2288
|
SMALL: "small",
|
|
2289
2289
|
MEDIUM: "medium",
|
|
2290
2290
|
LARGE: "large"
|
|
2291
|
-
},
|
|
2291
|
+
}, Os = (e, r, a, o) => {
|
|
2292
2292
|
switch (e) {
|
|
2293
2293
|
case re.LARGE:
|
|
2294
2294
|
return r && a ? "8px 16px 8px 16px" : "16px 16px 16px 16px";
|
|
@@ -2299,7 +2299,7 @@ const Ft = Object.assign(zs, {
|
|
|
2299
2299
|
default:
|
|
2300
2300
|
return "12px 16px 12px 16px";
|
|
2301
2301
|
}
|
|
2302
|
-
},
|
|
2302
|
+
}, Ps = (e) => {
|
|
2303
2303
|
switch (e) {
|
|
2304
2304
|
case re.LARGE:
|
|
2305
2305
|
return "56px";
|
|
@@ -2310,7 +2310,7 @@ const Ft = Object.assign(zs, {
|
|
|
2310
2310
|
default:
|
|
2311
2311
|
return "48px";
|
|
2312
2312
|
}
|
|
2313
|
-
},
|
|
2313
|
+
}, Bs = (e) => {
|
|
2314
2314
|
switch (e) {
|
|
2315
2315
|
case re.SMALL:
|
|
2316
2316
|
return 8;
|
|
@@ -2322,7 +2322,7 @@ const Ft = Object.assign(zs, {
|
|
|
2322
2322
|
default:
|
|
2323
2323
|
return 12;
|
|
2324
2324
|
}
|
|
2325
|
-
},
|
|
2325
|
+
}, zs = (e, r, a) => ({
|
|
2326
2326
|
wrapperStyles: {
|
|
2327
2327
|
height: e,
|
|
2328
2328
|
minHeight: e,
|
|
@@ -2373,10 +2373,10 @@ const Ft = Object.assign(zs, {
|
|
|
2373
2373
|
right: `${a}px`
|
|
2374
2374
|
}
|
|
2375
2375
|
}), qs = (e, r, a, o) => {
|
|
2376
|
-
const i =
|
|
2376
|
+
const i = Ps(e), s = Os(e, r, a, o), l = Bs(e);
|
|
2377
2377
|
switch (e) {
|
|
2378
2378
|
case re.LARGE:
|
|
2379
|
-
return
|
|
2379
|
+
return zs(i, s, l);
|
|
2380
2380
|
case re.MEDIUM:
|
|
2381
2381
|
return Us(i, s, l);
|
|
2382
2382
|
case re.SMALL:
|
|
@@ -2399,8 +2399,8 @@ const Ft = Object.assign(zs, {
|
|
|
2399
2399
|
minLength: s,
|
|
2400
2400
|
autoComplete: l,
|
|
2401
2401
|
autoFocus: c,
|
|
2402
|
-
size:
|
|
2403
|
-
inputProps:
|
|
2402
|
+
size: p = re.MEDIUM,
|
|
2403
|
+
inputProps: _,
|
|
2404
2404
|
error: f,
|
|
2405
2405
|
disabled: h,
|
|
2406
2406
|
loading: m,
|
|
@@ -2416,36 +2416,36 @@ const Ft = Object.assign(zs, {
|
|
|
2416
2416
|
onClear: j,
|
|
2417
2417
|
className: I,
|
|
2418
2418
|
truncate: A = !0,
|
|
2419
|
-
hint:
|
|
2419
|
+
hint: D,
|
|
2420
2420
|
showHint: U = !1,
|
|
2421
2421
|
showHintOnEmpty: q = !1,
|
|
2422
|
-
wrapperProps:
|
|
2422
|
+
wrapperProps: O,
|
|
2423
2423
|
labelProps: S,
|
|
2424
2424
|
helperProps: T,
|
|
2425
|
-
...
|
|
2425
|
+
...B
|
|
2426
2426
|
}, F) => {
|
|
2427
|
-
const H = (e || "").length > 0, Q =
|
|
2427
|
+
const H = (e || "").length > 0, Q = p === re.LARGE, ie = !!y, Y = Q && d && !y, ue = x && H && !(h || m), ee = () => {
|
|
2428
2428
|
r == null || r(""), j == null || j();
|
|
2429
2429
|
}, Ce = ue ? /* @__PURE__ */ n.jsx(
|
|
2430
2430
|
Jt,
|
|
2431
2431
|
{
|
|
2432
|
-
size:
|
|
2432
|
+
size: p === re.SMALL ? "xs" : "sm",
|
|
2433
2433
|
color: "var(--icon-secondary)",
|
|
2434
2434
|
onClick: ee,
|
|
2435
2435
|
style: { cursor: "pointer" },
|
|
2436
2436
|
"data-testid": "x-icon"
|
|
2437
2437
|
}
|
|
2438
|
-
) : L,
|
|
2438
|
+
) : L, ze = {
|
|
2439
2439
|
type: a,
|
|
2440
2440
|
minLength: s,
|
|
2441
2441
|
autoComplete: l,
|
|
2442
2442
|
autoFocus: c,
|
|
2443
|
-
...
|
|
2444
|
-
}, me = qs(
|
|
2443
|
+
..._
|
|
2444
|
+
}, me = qs(p, Y, H, ie);
|
|
2445
2445
|
return /* @__PURE__ */ n.jsx(
|
|
2446
2446
|
Qt,
|
|
2447
2447
|
{
|
|
2448
|
-
size:
|
|
2448
|
+
size: p,
|
|
2449
2449
|
error: f,
|
|
2450
2450
|
disabled: h || m,
|
|
2451
2451
|
loading: m,
|
|
@@ -2465,17 +2465,17 @@ const Ft = Object.assign(zs, {
|
|
|
2465
2465
|
floatingLabelStyles: me.floatingLabelStyles,
|
|
2466
2466
|
prefixStyles: me.prefixStyles,
|
|
2467
2467
|
suffixStyles: me.suffixStyles,
|
|
2468
|
-
wrapperProps:
|
|
2468
|
+
wrapperProps: O,
|
|
2469
2469
|
labelProps: S,
|
|
2470
2470
|
helperProps: T,
|
|
2471
2471
|
showLimit: !1,
|
|
2472
2472
|
maxLength: i,
|
|
2473
|
-
inputProps:
|
|
2474
|
-
hint:
|
|
2473
|
+
inputProps: ze,
|
|
2474
|
+
hint: D,
|
|
2475
2475
|
showHint: U,
|
|
2476
2476
|
showHintOnEmpty: q,
|
|
2477
2477
|
truncate: A,
|
|
2478
|
-
...
|
|
2478
|
+
...B
|
|
2479
2479
|
}
|
|
2480
2480
|
);
|
|
2481
2481
|
}
|
|
@@ -2609,8 +2609,8 @@ const Ft = Object.assign(zs, {
|
|
|
2609
2609
|
autoFocus: s,
|
|
2610
2610
|
size: l = he.MEDIUM,
|
|
2611
2611
|
textareaProps: c,
|
|
2612
|
-
error:
|
|
2613
|
-
disabled:
|
|
2612
|
+
error: p,
|
|
2613
|
+
disabled: _,
|
|
2614
2614
|
loading: f,
|
|
2615
2615
|
helper: h,
|
|
2616
2616
|
suffix: m,
|
|
@@ -2626,13 +2626,13 @@ const Ft = Object.assign(zs, {
|
|
|
2626
2626
|
showLimit: j = !1,
|
|
2627
2627
|
wrapperProps: I,
|
|
2628
2628
|
labelProps: A,
|
|
2629
|
-
helperProps:
|
|
2629
|
+
helperProps: D,
|
|
2630
2630
|
showGrip: U,
|
|
2631
2631
|
minHeight: q,
|
|
2632
|
-
resize:
|
|
2632
|
+
resize: O,
|
|
2633
2633
|
...S
|
|
2634
2634
|
}, T) => {
|
|
2635
|
-
const
|
|
2635
|
+
const B = (e || "").length > 0, F = L && !!a && (l === he.SMALL || q !== 48), H = b && B && !(_ || f), Q = () => {
|
|
2636
2636
|
r == null || r(""), d == null || d();
|
|
2637
2637
|
}, ie = H ? /* @__PURE__ */ n.jsx(
|
|
2638
2638
|
Jt,
|
|
@@ -2643,11 +2643,11 @@ const Ft = Object.assign(zs, {
|
|
|
2643
2643
|
style: { cursor: "pointer" },
|
|
2644
2644
|
"data-testid": "x-icon"
|
|
2645
2645
|
}
|
|
2646
|
-
) : m, Y = Js(l, q, F &&
|
|
2646
|
+
) : m, Y = Js(l, q, F && B, O), ue = Ys(l, q), ee = {
|
|
2647
2647
|
rows: M,
|
|
2648
2648
|
minLength: i,
|
|
2649
2649
|
autoFocus: s,
|
|
2650
|
-
resize:
|
|
2650
|
+
resize: O,
|
|
2651
2651
|
...c
|
|
2652
2652
|
};
|
|
2653
2653
|
return /* @__PURE__ */ n.jsx(
|
|
@@ -2656,8 +2656,8 @@ const Ft = Object.assign(zs, {
|
|
|
2656
2656
|
ref: T,
|
|
2657
2657
|
component: "textarea",
|
|
2658
2658
|
size: ue,
|
|
2659
|
-
error:
|
|
2660
|
-
disabled:
|
|
2659
|
+
error: p,
|
|
2660
|
+
disabled: _ || f,
|
|
2661
2661
|
loading: f,
|
|
2662
2662
|
helper: h,
|
|
2663
2663
|
suffix: ie,
|
|
@@ -2677,11 +2677,11 @@ const Ft = Object.assign(zs, {
|
|
|
2677
2677
|
textareaStyles: Y.textareaStyles,
|
|
2678
2678
|
wrapperProps: I,
|
|
2679
2679
|
labelProps: A,
|
|
2680
|
-
helperProps:
|
|
2680
|
+
helperProps: D,
|
|
2681
2681
|
showLimit: j && (q === 112 || l === he.SMALL),
|
|
2682
2682
|
maxLength: o,
|
|
2683
2683
|
inputProps: ee,
|
|
2684
|
-
resize:
|
|
2684
|
+
resize: O,
|
|
2685
2685
|
showGrip: U,
|
|
2686
2686
|
...S
|
|
2687
2687
|
}
|
|
@@ -2701,16 +2701,16 @@ const Ft = Object.assign(zs, {
|
|
|
2701
2701
|
"aria-label": l,
|
|
2702
2702
|
"aria-describedby": c
|
|
2703
2703
|
}) => {
|
|
2704
|
-
const
|
|
2704
|
+
const p = !!r, _ = k(
|
|
2705
2705
|
dt.helper,
|
|
2706
|
-
|
|
2706
|
+
p && dt["helper--error"],
|
|
2707
2707
|
i && dt["helper--disabled"],
|
|
2708
2708
|
a
|
|
2709
2709
|
), f = i ? e : r || e;
|
|
2710
2710
|
return /* @__PURE__ */ n.jsx(
|
|
2711
2711
|
"div",
|
|
2712
2712
|
{
|
|
2713
|
-
className:
|
|
2713
|
+
className: _,
|
|
2714
2714
|
style: o,
|
|
2715
2715
|
"data-testid": s,
|
|
2716
2716
|
"aria-label": l,
|
|
@@ -2718,7 +2718,7 @@ const Ft = Object.assign(zs, {
|
|
|
2718
2718
|
children: /* @__PURE__ */ n.jsx("p", { children: f })
|
|
2719
2719
|
}
|
|
2720
2720
|
);
|
|
2721
|
-
}, Qs = "_radio_1q34w_54", eo = "_checked_1q34w_75", to = "_error_1q34w_80", ro = "_disabled_1q34w_89", ao = "_icon_1q34w_125", no = "_small_1q34w_133", so = "_medium_1q34w_140", oo = "_large_1q34w_147", io = "_label_1q34w_154", lo = "_container_1q34w_180", co = "_input_1q34w_193", uo = "_card_1q34w_200",
|
|
2721
|
+
}, Qs = "_radio_1q34w_54", eo = "_checked_1q34w_75", to = "_error_1q34w_80", ro = "_disabled_1q34w_89", ao = "_icon_1q34w_125", no = "_small_1q34w_133", so = "_medium_1q34w_140", oo = "_large_1q34w_147", io = "_label_1q34w_154", lo = "_container_1q34w_180", co = "_input_1q34w_193", uo = "_card_1q34w_200", po = "_smallCard_1q34w_206", _o = "_mediumCard_1q34w_210", fo = "_largeCard_1q34w_214", le = {
|
|
2722
2722
|
radio: Qs,
|
|
2723
2723
|
checked: eo,
|
|
2724
2724
|
error: to,
|
|
@@ -2731,8 +2731,8 @@ const Ft = Object.assign(zs, {
|
|
|
2731
2731
|
container: lo,
|
|
2732
2732
|
input: co,
|
|
2733
2733
|
card: uo,
|
|
2734
|
-
smallCard:
|
|
2735
|
-
mediumCard:
|
|
2734
|
+
smallCard: po,
|
|
2735
|
+
mediumCard: _o,
|
|
2736
2736
|
largeCard: fo
|
|
2737
2737
|
}, ho = "radio-container-", bo = "radio-label", er = K(
|
|
2738
2738
|
(e, r) => {
|
|
@@ -2743,8 +2743,8 @@ const Ft = Object.assign(zs, {
|
|
|
2743
2743
|
size: s = "large",
|
|
2744
2744
|
loading: l = !1,
|
|
2745
2745
|
error: c,
|
|
2746
|
-
disabled:
|
|
2747
|
-
checked:
|
|
2746
|
+
disabled: p = !1,
|
|
2747
|
+
checked: _ = !1,
|
|
2748
2748
|
containerClassName: f,
|
|
2749
2749
|
className: h,
|
|
2750
2750
|
children: m,
|
|
@@ -2756,9 +2756,9 @@ const Ft = Object.assign(zs, {
|
|
|
2756
2756
|
onChange: d,
|
|
2757
2757
|
"data-testid": w,
|
|
2758
2758
|
...C
|
|
2759
|
-
} = e, M = !!c, j =
|
|
2759
|
+
} = e, M = !!c, j = p || l, I = b === "all", A = y === "card", D = le[`${s}Card`], U = o ?? a, q = (F) => {
|
|
2760
2760
|
j || d == null || d(i, F);
|
|
2761
|
-
},
|
|
2761
|
+
}, O = (F) => {
|
|
2762
2762
|
F.key === "Enter" && !j && (F.preventDefault(), d == null || d(i));
|
|
2763
2763
|
}, S = (F) => F.stopPropagation(), T = () => /* @__PURE__ */ n.jsxs(
|
|
2764
2764
|
"div",
|
|
@@ -2767,7 +2767,7 @@ const Ft = Object.assign(zs, {
|
|
|
2767
2767
|
le.radio,
|
|
2768
2768
|
le[s],
|
|
2769
2769
|
{
|
|
2770
|
-
[le.checked]:
|
|
2770
|
+
[le.checked]: _,
|
|
2771
2771
|
[le.disabled]: j,
|
|
2772
2772
|
[le.error]: M && !j
|
|
2773
2773
|
},
|
|
@@ -2782,7 +2782,7 @@ const Ft = Object.assign(zs, {
|
|
|
2782
2782
|
{
|
|
2783
2783
|
"aria-errormessage": c,
|
|
2784
2784
|
"aria-invalid": M,
|
|
2785
|
-
checked:
|
|
2785
|
+
checked: _,
|
|
2786
2786
|
className: le.input,
|
|
2787
2787
|
"data-testid": `radio-${U}`,
|
|
2788
2788
|
disabled: j,
|
|
@@ -2798,19 +2798,19 @@ const Ft = Object.assign(zs, {
|
|
|
2798
2798
|
/* @__PURE__ */ n.jsx("svg", { "data-testid": `radio-icon-${U}`, viewBox: "0 0 8 8", className: le.icon, children: /* @__PURE__ */ n.jsx("circle", { cx: 4, cy: 4, fill: "current", r: 4 }) })
|
|
2799
2799
|
]
|
|
2800
2800
|
}
|
|
2801
|
-
),
|
|
2801
|
+
), B = () => /* @__PURE__ */ n.jsxs(
|
|
2802
2802
|
"label",
|
|
2803
2803
|
{
|
|
2804
|
-
"aria-checked":
|
|
2804
|
+
"aria-checked": _,
|
|
2805
2805
|
"aria-disabled": j,
|
|
2806
2806
|
"data-testid": I ? w : bo,
|
|
2807
2807
|
htmlFor: U,
|
|
2808
2808
|
style: v,
|
|
2809
2809
|
className: k(le.label, {
|
|
2810
2810
|
[k(le.container, le[y], f)]: I,
|
|
2811
|
-
[
|
|
2811
|
+
[D]: I && A
|
|
2812
2812
|
}),
|
|
2813
|
-
onKeyDown:
|
|
2813
|
+
onKeyDown: O,
|
|
2814
2814
|
...C,
|
|
2815
2815
|
children: [
|
|
2816
2816
|
T(),
|
|
@@ -2818,15 +2818,15 @@ const Ft = Object.assign(zs, {
|
|
|
2818
2818
|
]
|
|
2819
2819
|
}
|
|
2820
2820
|
);
|
|
2821
|
-
return I ?
|
|
2821
|
+
return I ? B() : /* @__PURE__ */ n.jsxs(
|
|
2822
2822
|
"div",
|
|
2823
2823
|
{
|
|
2824
2824
|
className: k(le.container, le[y], f, {
|
|
2825
|
-
[
|
|
2825
|
+
[D]: A
|
|
2826
2826
|
}),
|
|
2827
2827
|
"data-testid": w,
|
|
2828
2828
|
children: [
|
|
2829
|
-
|
|
2829
|
+
B(),
|
|
2830
2830
|
m
|
|
2831
2831
|
]
|
|
2832
2832
|
}
|
|
@@ -2845,15 +2845,15 @@ const Ft = Object.assign(zs, {
|
|
|
2845
2845
|
options: s,
|
|
2846
2846
|
className: l,
|
|
2847
2847
|
radioClassName: c,
|
|
2848
|
-
disabled:
|
|
2849
|
-
layout:
|
|
2848
|
+
disabled: p = !1,
|
|
2849
|
+
layout: _ = "vertical",
|
|
2850
2850
|
"data-testid": f,
|
|
2851
2851
|
...h
|
|
2852
2852
|
} = e;
|
|
2853
2853
|
return /* @__PURE__ */ n.jsx(
|
|
2854
2854
|
"div",
|
|
2855
2855
|
{
|
|
2856
|
-
className: Le(qt.group, qt[
|
|
2856
|
+
className: Le(qt.group, qt[_], l),
|
|
2857
2857
|
"data-testid": f ?? `radio-group-${o}`,
|
|
2858
2858
|
id: a,
|
|
2859
2859
|
ref: r,
|
|
@@ -2865,7 +2865,7 @@ const Ft = Object.assign(zs, {
|
|
|
2865
2865
|
id: L,
|
|
2866
2866
|
checked: x,
|
|
2867
2867
|
"data-testid": L,
|
|
2868
|
-
disabled:
|
|
2868
|
+
disabled: p || y,
|
|
2869
2869
|
name: o,
|
|
2870
2870
|
value: b,
|
|
2871
2871
|
className: c,
|
|
@@ -2900,9 +2900,9 @@ const Ft = Object.assign(zs, {
|
|
|
2900
2900
|
size: s = "md",
|
|
2901
2901
|
"data-testid": l = "list",
|
|
2902
2902
|
...c
|
|
2903
|
-
} = e,
|
|
2903
|
+
} = e, p = a === "ordered" ? "ol" : "ul";
|
|
2904
2904
|
return /* @__PURE__ */ n.jsx(
|
|
2905
|
-
|
|
2905
|
+
p,
|
|
2906
2906
|
{
|
|
2907
2907
|
"data-testid": l,
|
|
2908
2908
|
ref: r,
|
|
@@ -2913,7 +2913,7 @@ const Ft = Object.assign(zs, {
|
|
|
2913
2913
|
);
|
|
2914
2914
|
}),
|
|
2915
2915
|
{ Item: ko }
|
|
2916
|
-
), Mo = "_wrapper_1v8xn_5", Io = "_viewport_1v8xn_12", $o = "_mask_1v8xn_26", To = "_maskLeft_1v8xn_37", Ro = "_maskRight_1v8xn_42", No = "_visible_1v8xn_46", Ao = "_control_1v8xn_51",
|
|
2916
|
+
), Mo = "_wrapper_1v8xn_5", Io = "_viewport_1v8xn_12", $o = "_mask_1v8xn_26", To = "_maskLeft_1v8xn_37", Ro = "_maskRight_1v8xn_42", No = "_visible_1v8xn_46", Ao = "_control_1v8xn_51", Do = "_xs_1v8xn_70", Oo = "_sm_1v8xn_73", Po = "_md_1v8xn_76", Bo = "_left_1v8xn_80", zo = "_right_1v8xn_83", ne = {
|
|
2917
2917
|
wrapper: Mo,
|
|
2918
2918
|
viewport: Io,
|
|
2919
2919
|
mask: $o,
|
|
@@ -2921,18 +2921,18 @@ const Ft = Object.assign(zs, {
|
|
|
2921
2921
|
maskRight: Ro,
|
|
2922
2922
|
visible: No,
|
|
2923
2923
|
control: Ao,
|
|
2924
|
-
xs:
|
|
2925
|
-
sm:
|
|
2926
|
-
md:
|
|
2927
|
-
left:
|
|
2928
|
-
right:
|
|
2924
|
+
xs: Do,
|
|
2925
|
+
sm: Oo,
|
|
2926
|
+
md: Po,
|
|
2927
|
+
left: Bo,
|
|
2928
|
+
right: zo
|
|
2929
2929
|
}, Uo = "white", Fo = ({
|
|
2930
2930
|
children: e,
|
|
2931
2931
|
withControls: r = !0,
|
|
2932
2932
|
className: a,
|
|
2933
2933
|
size: o
|
|
2934
2934
|
}) => {
|
|
2935
|
-
const i =
|
|
2935
|
+
const i = Be(null), [s, l] = de(!1), [c, p] = de(!1), { ref: _, bgColor: f } = ft(), h = _ ?? { current: null }, m = f ?? Uo, b = r && s, y = r && c, L = ({ direction: d }) => /* @__PURE__ */ n.jsx(
|
|
2936
2936
|
"svg",
|
|
2937
2937
|
{
|
|
2938
2938
|
height: "12px",
|
|
@@ -2951,7 +2951,7 @@ const Ft = Object.assign(zs, {
|
|
|
2951
2951
|
const d = i.current;
|
|
2952
2952
|
if (!d) return;
|
|
2953
2953
|
const w = Math.round(d.scrollLeft), C = Math.round(d.scrollLeft + d.clientWidth), M = Math.round(d.scrollWidth);
|
|
2954
|
-
l(w > 0),
|
|
2954
|
+
l(w > 0), p(C < M);
|
|
2955
2955
|
}, v = (d) => {
|
|
2956
2956
|
const w = i.current;
|
|
2957
2957
|
if (!w) return;
|
|
@@ -3038,10 +3038,10 @@ const Ft = Object.assign(zs, {
|
|
|
3038
3038
|
activeTab: a,
|
|
3039
3039
|
onChange: o
|
|
3040
3040
|
}) => {
|
|
3041
|
-
const [i, s] = de(r), l = a !== void 0, c = l ? a : i,
|
|
3042
|
-
l || s(
|
|
3041
|
+
const [i, s] = de(r), l = a !== void 0, c = l ? a : i, p = (_) => {
|
|
3042
|
+
l || s(_), o && o(_);
|
|
3043
3043
|
};
|
|
3044
|
-
return /* @__PURE__ */ n.jsx(tr.Provider, { value: { activeTab: c, setTab:
|
|
3044
|
+
return /* @__PURE__ */ n.jsx(tr.Provider, { value: { activeTab: c, setTab: p }, children: e });
|
|
3045
3045
|
}, oi = ({
|
|
3046
3046
|
mode: e,
|
|
3047
3047
|
item: r,
|
|
@@ -3053,8 +3053,8 @@ const Ft = Object.assign(zs, {
|
|
|
3053
3053
|
onSelectTab: c
|
|
3054
3054
|
}) => {
|
|
3055
3055
|
const {
|
|
3056
|
-
value:
|
|
3057
|
-
label:
|
|
3056
|
+
value: p,
|
|
3057
|
+
label: _,
|
|
3058
3058
|
prefix: f,
|
|
3059
3059
|
prefixWrapperProps: h = {},
|
|
3060
3060
|
postfix: m,
|
|
@@ -3090,17 +3090,17 @@ const Ft = Object.assign(zs, {
|
|
|
3090
3090
|
[J.disabled]: l
|
|
3091
3091
|
}
|
|
3092
3092
|
), I = k(J.tabLabel, J[e], d[e]), A = (U) => {
|
|
3093
|
-
a || l || (c(
|
|
3094
|
-
},
|
|
3093
|
+
a || l || (c(p), U.currentTarget.scrollIntoView({ behavior: "smooth", inline: "center", block: "nearest" }));
|
|
3094
|
+
}, D = /* @__PURE__ */ n.jsxs(
|
|
3095
3095
|
"button",
|
|
3096
3096
|
{
|
|
3097
3097
|
className: C,
|
|
3098
3098
|
role: "tab",
|
|
3099
|
-
"aria-label":
|
|
3099
|
+
"aria-label": _,
|
|
3100
3100
|
"aria-selected": a,
|
|
3101
3101
|
"aria-disabled": l,
|
|
3102
|
-
"aria-controls": `tab-panel-${
|
|
3103
|
-
"data-testid": `tab-item-${
|
|
3102
|
+
"aria-controls": `tab-panel-${p}`,
|
|
3103
|
+
"data-testid": `tab-item-${p}`,
|
|
3104
3104
|
onClick: A,
|
|
3105
3105
|
children: [
|
|
3106
3106
|
f && /* @__PURE__ */ n.jsx(
|
|
@@ -3108,24 +3108,24 @@ const Ft = Object.assign(zs, {
|
|
|
3108
3108
|
{
|
|
3109
3109
|
className: M,
|
|
3110
3110
|
...L,
|
|
3111
|
-
"data-testid": `tab-prefix-${
|
|
3111
|
+
"data-testid": `tab-prefix-${p}`,
|
|
3112
3112
|
children: f
|
|
3113
3113
|
}
|
|
3114
3114
|
),
|
|
3115
|
-
/* @__PURE__ */ n.jsx("span", { className: I, "data-testid": `tab-label-${
|
|
3115
|
+
/* @__PURE__ */ n.jsx("span", { className: I, "data-testid": `tab-label-${p}`, children: _ }),
|
|
3116
3116
|
m && /* @__PURE__ */ n.jsx(
|
|
3117
3117
|
"span",
|
|
3118
3118
|
{
|
|
3119
3119
|
className: j,
|
|
3120
3120
|
...v,
|
|
3121
|
-
"data-testid": `tab-postfix-${
|
|
3121
|
+
"data-testid": `tab-postfix-${p}`,
|
|
3122
3122
|
children: m
|
|
3123
3123
|
}
|
|
3124
3124
|
)
|
|
3125
3125
|
]
|
|
3126
3126
|
}
|
|
3127
3127
|
);
|
|
3128
|
-
return o ? /* @__PURE__ */ n.jsx(Qa, { ...w, "data-testid": `tab-badge-${
|
|
3128
|
+
return o ? /* @__PURE__ */ n.jsx(Qa, { ...w, "data-testid": `tab-badge-${p}`, children: D }) : D;
|
|
3129
3129
|
}, ii = ({
|
|
3130
3130
|
mode: e,
|
|
3131
3131
|
items: r,
|
|
@@ -3166,18 +3166,18 @@ const Ft = Object.assign(zs, {
|
|
|
3166
3166
|
children: r
|
|
3167
3167
|
}
|
|
3168
3168
|
), ci = ({ children: e, ...r }) => {
|
|
3169
|
-
const { activeTab: a } = rr(), o = Array.isArray(e) ? e : [e], i = (s, l) =>
|
|
3169
|
+
const { activeTab: a } = rr(), o = Array.isArray(e) ? e : [e], i = (s, l) => pt.isValidElement(s) && typeof s.props == "object" && s.props !== null && l in s.props;
|
|
3170
3170
|
return /* @__PURE__ */ n.jsx("div", { "data-testid": "tab-content", ...r, children: o.map((s) => i(s, "tabValue") && String(s.props.tabValue) === a ? s : null) });
|
|
3171
3171
|
}, al = {
|
|
3172
3172
|
Provider: si,
|
|
3173
3173
|
Content: ci,
|
|
3174
3174
|
Panel: li,
|
|
3175
3175
|
Bar: ii
|
|
3176
|
-
}, di = "_root_1fbbw_34", ui = "_open_1fbbw_51",
|
|
3176
|
+
}, di = "_root_1fbbw_34", ui = "_open_1fbbw_51", pi = "_xs_1fbbw_55", _i = "_s_1fbbw_61", fi = "_m_1fbbw_67", hi = "_neutral_1fbbw_73", bi = "_contrast_1fbbw_78", gi = "_accent_1fbbw_84", mi = "_typography_1fbbw_89", yi = "_title_1fbbw_89", vi = "_text_1fbbw_93", xi = "_mediaWrapper_1fbbw_97", wi = "_content_1fbbw_112", Ci = "_closeButton_1fbbw_116", Si = "_hasMedia_1fbbw_142", Li = "_buttonStack_1fbbw_148", se = {
|
|
3177
3177
|
root: di,
|
|
3178
3178
|
open: ui,
|
|
3179
|
-
xs:
|
|
3180
|
-
s:
|
|
3179
|
+
xs: pi,
|
|
3180
|
+
s: _i,
|
|
3181
3181
|
m: fi,
|
|
3182
3182
|
neutral: hi,
|
|
3183
3183
|
contrast: bi,
|
|
@@ -3198,7 +3198,7 @@ const Ft = Object.assign(zs, {
|
|
|
3198
3198
|
}
|
|
3199
3199
|
),
|
|
3200
3200
|
/* @__PURE__ */ n.jsx("path", { d: "M-2 0.000390053L26 0.000390053V-1L-2 -1L-2 0.000390053Z" })
|
|
3201
|
-
] }),
|
|
3201
|
+
] }), _e = {
|
|
3202
3202
|
shiftX: 64,
|
|
3203
3203
|
adjustY: 1
|
|
3204
3204
|
}, fe = { adjustX: 1, shiftY: !0 }, ki = {
|
|
@@ -3214,17 +3214,17 @@ const Ft = Object.assign(zs, {
|
|
|
3214
3214
|
},
|
|
3215
3215
|
top: {
|
|
3216
3216
|
points: ["bc", "tc"],
|
|
3217
|
-
overflow:
|
|
3217
|
+
overflow: _e,
|
|
3218
3218
|
offset: [0, -22]
|
|
3219
3219
|
},
|
|
3220
3220
|
bottom: {
|
|
3221
3221
|
points: ["tc", "bc"],
|
|
3222
|
-
overflow:
|
|
3222
|
+
overflow: _e,
|
|
3223
3223
|
offset: [0, 22]
|
|
3224
3224
|
},
|
|
3225
3225
|
topLeft: {
|
|
3226
3226
|
points: ["bl", "tl"],
|
|
3227
|
-
overflow:
|
|
3227
|
+
overflow: _e,
|
|
3228
3228
|
offset: [0, -22]
|
|
3229
3229
|
},
|
|
3230
3230
|
leftTop: {
|
|
@@ -3234,7 +3234,7 @@ const Ft = Object.assign(zs, {
|
|
|
3234
3234
|
},
|
|
3235
3235
|
topRight: {
|
|
3236
3236
|
points: ["br", "tr"],
|
|
3237
|
-
overflow:
|
|
3237
|
+
overflow: _e,
|
|
3238
3238
|
offset: [0, -22]
|
|
3239
3239
|
},
|
|
3240
3240
|
rightTop: {
|
|
@@ -3244,7 +3244,7 @@ const Ft = Object.assign(zs, {
|
|
|
3244
3244
|
},
|
|
3245
3245
|
bottomRight: {
|
|
3246
3246
|
points: ["tr", "br"],
|
|
3247
|
-
overflow:
|
|
3247
|
+
overflow: _e,
|
|
3248
3248
|
offset: [0, 22]
|
|
3249
3249
|
},
|
|
3250
3250
|
rightBottom: {
|
|
@@ -3254,7 +3254,7 @@ const Ft = Object.assign(zs, {
|
|
|
3254
3254
|
},
|
|
3255
3255
|
bottomLeft: {
|
|
3256
3256
|
points: ["tl", "bl"],
|
|
3257
|
-
overflow:
|
|
3257
|
+
overflow: _e,
|
|
3258
3258
|
offset: [0, 22]
|
|
3259
3259
|
},
|
|
3260
3260
|
leftBottom: {
|
|
@@ -3275,17 +3275,17 @@ const Ft = Object.assign(zs, {
|
|
|
3275
3275
|
},
|
|
3276
3276
|
top: {
|
|
3277
3277
|
points: ["bc", "tc"],
|
|
3278
|
-
overflow:
|
|
3278
|
+
overflow: _e,
|
|
3279
3279
|
offset: [0, -16]
|
|
3280
3280
|
},
|
|
3281
3281
|
bottom: {
|
|
3282
3282
|
points: ["tc", "bc"],
|
|
3283
|
-
overflow:
|
|
3283
|
+
overflow: _e,
|
|
3284
3284
|
offset: [0, 16]
|
|
3285
3285
|
},
|
|
3286
3286
|
topLeft: {
|
|
3287
3287
|
points: ["bl", "tl"],
|
|
3288
|
-
overflow:
|
|
3288
|
+
overflow: _e,
|
|
3289
3289
|
offset: [0, -16]
|
|
3290
3290
|
},
|
|
3291
3291
|
leftTop: {
|
|
@@ -3295,7 +3295,7 @@ const Ft = Object.assign(zs, {
|
|
|
3295
3295
|
},
|
|
3296
3296
|
topRight: {
|
|
3297
3297
|
points: ["br", "tr"],
|
|
3298
|
-
overflow:
|
|
3298
|
+
overflow: _e,
|
|
3299
3299
|
offset: [0, -16]
|
|
3300
3300
|
},
|
|
3301
3301
|
rightTop: {
|
|
@@ -3305,7 +3305,7 @@ const Ft = Object.assign(zs, {
|
|
|
3305
3305
|
},
|
|
3306
3306
|
bottomRight: {
|
|
3307
3307
|
points: ["tr", "br"],
|
|
3308
|
-
overflow:
|
|
3308
|
+
overflow: _e,
|
|
3309
3309
|
offset: [0, 16]
|
|
3310
3310
|
},
|
|
3311
3311
|
rightBottom: {
|
|
@@ -3315,7 +3315,7 @@ const Ft = Object.assign(zs, {
|
|
|
3315
3315
|
},
|
|
3316
3316
|
bottomLeft: {
|
|
3317
3317
|
points: ["tl", "bl"],
|
|
3318
|
-
overflow:
|
|
3318
|
+
overflow: _e,
|
|
3319
3319
|
offset: [0, 16]
|
|
3320
3320
|
},
|
|
3321
3321
|
leftBottom: {
|
|
@@ -3372,15 +3372,15 @@ const Ft = Object.assign(zs, {
|
|
|
3372
3372
|
classNames: s = {},
|
|
3373
3373
|
onClose: l,
|
|
3374
3374
|
buttons: c,
|
|
3375
|
-
buttonProps:
|
|
3376
|
-
showClose:
|
|
3375
|
+
buttonProps: p,
|
|
3376
|
+
showClose: _
|
|
3377
3377
|
}) => {
|
|
3378
|
-
const f = ["neutral", "accent"].includes(o) ? "contrast" : "primary", h = i === "m", m = !!(r && h), b = !!(a && h), y = c && !!c.length, L = !!(
|
|
3378
|
+
const f = ["neutral", "accent"].includes(o) ? "contrast" : "primary", h = i === "m", m = !!(r && h), b = !!(a && h), y = c && !!c.length, L = !!(_ && h) || !_ && h && !y, x = i === "xs" ? 4 : 3;
|
|
3379
3379
|
return /* @__PURE__ */ n.jsxs("div", { className: se.content, children: [
|
|
3380
3380
|
b && /* @__PURE__ */ n.jsx("div", { className: k(se.mediaWrapper, s.mediaWrapper), children: a }),
|
|
3381
3381
|
/* @__PURE__ */ n.jsxs("div", { className: s.textWrapper, children: [
|
|
3382
3382
|
m && /* @__PURE__ */ n.jsx(
|
|
3383
|
-
|
|
3383
|
+
zt.Subtitle,
|
|
3384
3384
|
{
|
|
3385
3385
|
className: k(se.typography, se.title, s.typography),
|
|
3386
3386
|
size: 1,
|
|
@@ -3390,7 +3390,7 @@ const Ft = Object.assign(zs, {
|
|
|
3390
3390
|
}
|
|
3391
3391
|
),
|
|
3392
3392
|
/* @__PURE__ */ n.jsx(
|
|
3393
|
-
|
|
3393
|
+
zt.Label,
|
|
3394
3394
|
{
|
|
3395
3395
|
className: k(se.typography, se.text, s.typography),
|
|
3396
3396
|
typographyStyle: f,
|
|
@@ -3415,11 +3415,11 @@ const Ft = Object.assign(zs, {
|
|
|
3415
3415
|
h && y && /* @__PURE__ */ n.jsx("div", { className: se.buttonStack, children: c.map((v, d) => {
|
|
3416
3416
|
const C = {
|
|
3417
3417
|
...Ti(d, c.length, o),
|
|
3418
|
-
...
|
|
3418
|
+
...p,
|
|
3419
3419
|
...v
|
|
3420
3420
|
}, { closeOnClick: M, ...j } = C, I = (A) => {
|
|
3421
|
-
var
|
|
3422
|
-
(
|
|
3421
|
+
var D;
|
|
3422
|
+
(D = j.onClick) == null || D.call(j, A), M && (l == null || l());
|
|
3423
3423
|
};
|
|
3424
3424
|
return /* @__PURE__ */ n.jsx(
|
|
3425
3425
|
ha,
|
|
@@ -3440,8 +3440,8 @@ const Ft = Object.assign(zs, {
|
|
|
3440
3440
|
mouseLeaveDelay: s = 0.1,
|
|
3441
3441
|
showArrow: l = !0,
|
|
3442
3442
|
showClose: c = !0,
|
|
3443
|
-
trigger:
|
|
3444
|
-
variant:
|
|
3443
|
+
trigger: p = "hover",
|
|
3444
|
+
variant: _ = "neutral",
|
|
3445
3445
|
size: f = "s",
|
|
3446
3446
|
text: h,
|
|
3447
3447
|
title: m,
|
|
@@ -3458,7 +3458,7 @@ const Ft = Object.assign(zs, {
|
|
|
3458
3458
|
{
|
|
3459
3459
|
classNames: o,
|
|
3460
3460
|
text: h,
|
|
3461
|
-
variant:
|
|
3461
|
+
variant: _,
|
|
3462
3462
|
size: f,
|
|
3463
3463
|
onClose: I,
|
|
3464
3464
|
title: m,
|
|
@@ -3472,15 +3472,15 @@ const Ft = Object.assign(zs, {
|
|
|
3472
3472
|
{
|
|
3473
3473
|
classNames: o,
|
|
3474
3474
|
text: h,
|
|
3475
|
-
variant:
|
|
3475
|
+
variant: _,
|
|
3476
3476
|
size: f,
|
|
3477
3477
|
onClose: I
|
|
3478
3478
|
}
|
|
3479
3479
|
));
|
|
3480
3480
|
return oe(() => {
|
|
3481
3481
|
if (d) {
|
|
3482
|
-
const
|
|
3483
|
-
return () => cancelAnimationFrame(
|
|
3482
|
+
const D = requestAnimationFrame(() => M(!0));
|
|
3483
|
+
return () => cancelAnimationFrame(D);
|
|
3484
3484
|
}
|
|
3485
3485
|
M(!1);
|
|
3486
3486
|
}, [d]), /* @__PURE__ */ n.jsx(
|
|
@@ -3489,12 +3489,12 @@ const Ft = Object.assign(zs, {
|
|
|
3489
3489
|
visible: d,
|
|
3490
3490
|
onVisibleChange: w,
|
|
3491
3491
|
classNames: {
|
|
3492
|
-
root: k(se.root, se[
|
|
3492
|
+
root: k(se.root, se[_], se[f], C && se.open),
|
|
3493
3493
|
...v.classNames
|
|
3494
3494
|
},
|
|
3495
3495
|
placement: a,
|
|
3496
3496
|
overlay: () => A,
|
|
3497
|
-
trigger:
|
|
3497
|
+
trigger: p,
|
|
3498
3498
|
mouseEnterDelay: i,
|
|
3499
3499
|
mouseLeaveDelay: s,
|
|
3500
3500
|
motion: { motionName: "tooltipMotion" },
|
|
@@ -3508,15 +3508,15 @@ const Ft = Object.assign(zs, {
|
|
|
3508
3508
|
children: r
|
|
3509
3509
|
}
|
|
3510
3510
|
);
|
|
3511
|
-
}, Ri = "_segmentedControl_1yvz7_5", Ni = "_segment_1yvz7_5", Ai = "_activeSegmentIndicator_1yvz7_51",
|
|
3511
|
+
}, Ri = "_segmentedControl_1yvz7_5", Ni = "_segment_1yvz7_5", Ai = "_activeSegmentIndicator_1yvz7_51", Di = "_stretched_1yvz7_82", Oi = "_s_1yvz7_5", Pi = "_icon_1yvz7_90", Bi = "_label_1yvz7_94", zi = "_m_1yvz7_98", Ui = "_l_1yvz7_94", De = {
|
|
3512
3512
|
segmentedControl: Ri,
|
|
3513
3513
|
segment: Ni,
|
|
3514
3514
|
activeSegmentIndicator: Ai,
|
|
3515
|
-
stretched:
|
|
3516
|
-
s:
|
|
3517
|
-
icon:
|
|
3518
|
-
label:
|
|
3519
|
-
m:
|
|
3515
|
+
stretched: Di,
|
|
3516
|
+
s: Oi,
|
|
3517
|
+
icon: Pi,
|
|
3518
|
+
label: Bi,
|
|
3519
|
+
m: zi,
|
|
3520
3520
|
l: Ui
|
|
3521
3521
|
}, Ht = {
|
|
3522
3522
|
s: ce["typography-label-3-regular"],
|
|
@@ -3532,8 +3532,8 @@ const Ft = Object.assign(zs, {
|
|
|
3532
3532
|
segments: s,
|
|
3533
3533
|
stretched: l,
|
|
3534
3534
|
mode: c = "label",
|
|
3535
|
-
onChange:
|
|
3536
|
-
} = e,
|
|
3535
|
+
onChange: p
|
|
3536
|
+
} = e, _ = _t(), [f, h] = de(a || s[0].value), [m, b] = de({ width: 0, left: 0 }), y = Be(null);
|
|
3537
3537
|
oe(() => {
|
|
3538
3538
|
o && h(o);
|
|
3539
3539
|
}, [o]), oe(() => {
|
|
@@ -3549,17 +3549,17 @@ const Ft = Object.assign(zs, {
|
|
|
3549
3549
|
left: w.offsetLeft
|
|
3550
3550
|
});
|
|
3551
3551
|
}, x = (d = s.find((w) => w.value === f)) == null ? void 0 : d.label, v = (w) => {
|
|
3552
|
-
h(w),
|
|
3552
|
+
h(w), p == null || p(w);
|
|
3553
3553
|
};
|
|
3554
3554
|
return (s == null ? void 0 : s.length) === 0 ? null : /* @__PURE__ */ n.jsxs(
|
|
3555
3555
|
"div",
|
|
3556
3556
|
{
|
|
3557
3557
|
className: k(
|
|
3558
|
-
|
|
3559
|
-
|
|
3560
|
-
|
|
3558
|
+
De.segmentedControl,
|
|
3559
|
+
De[i],
|
|
3560
|
+
De[c],
|
|
3561
3561
|
{
|
|
3562
|
-
[
|
|
3562
|
+
[De.stretched]: l
|
|
3563
3563
|
},
|
|
3564
3564
|
r
|
|
3565
3565
|
),
|
|
@@ -3568,11 +3568,11 @@ const Ft = Object.assign(zs, {
|
|
|
3568
3568
|
children: [
|
|
3569
3569
|
s == null ? void 0 : s.map(({ label: w, value: C }, M) => {
|
|
3570
3570
|
const j = () => v(C);
|
|
3571
|
-
return /* @__PURE__ */ n.jsxs(
|
|
3571
|
+
return /* @__PURE__ */ n.jsxs(Oe, { children: [
|
|
3572
3572
|
/* @__PURE__ */ n.jsx(
|
|
3573
3573
|
"input",
|
|
3574
3574
|
{
|
|
3575
|
-
id:
|
|
3575
|
+
id: _ + JSON.stringify(C),
|
|
3576
3576
|
value: JSON.stringify(C),
|
|
3577
3577
|
type: "radio",
|
|
3578
3578
|
checked: f === C,
|
|
@@ -3583,8 +3583,8 @@ const Ft = Object.assign(zs, {
|
|
|
3583
3583
|
"label",
|
|
3584
3584
|
{
|
|
3585
3585
|
"data-is-active-segment": f === C,
|
|
3586
|
-
className: k(
|
|
3587
|
-
htmlFor:
|
|
3586
|
+
className: k(De.segment, Ht[i]),
|
|
3587
|
+
htmlFor: _ + JSON.stringify(C),
|
|
3588
3588
|
"data-testid": "segmented-control-segment",
|
|
3589
3589
|
children: w
|
|
3590
3590
|
}
|
|
@@ -3594,7 +3594,7 @@ const Ft = Object.assign(zs, {
|
|
|
3594
3594
|
/* @__PURE__ */ n.jsx(
|
|
3595
3595
|
"div",
|
|
3596
3596
|
{
|
|
3597
|
-
className: k(
|
|
3597
|
+
className: k(De.activeSegmentIndicator, Ht[i]),
|
|
3598
3598
|
"data-testid": "segmented-control-active-segment",
|
|
3599
3599
|
style: {
|
|
3600
3600
|
width: m.width,
|
|
@@ -3624,7 +3624,7 @@ export {
|
|
|
3624
3624
|
Qi as TextArea,
|
|
3625
3625
|
Ki as TextInput,
|
|
3626
3626
|
nl as Tooltip,
|
|
3627
|
-
|
|
3627
|
+
zt as Typography,
|
|
3628
3628
|
mn as enUS,
|
|
3629
3629
|
Zi as ruRU,
|
|
3630
3630
|
yn as useConfig,
|