skillgrid 0.0.28-dev-41308-avatar-group.1182312 → 0.0.28-dev-41308-avatar-group.1187736
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.es.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as Vt from "react";
|
|
2
|
-
import _t, { forwardRef as K, Fragment as
|
|
2
|
+
import _t, { forwardRef as K, Fragment as Oe, useState as de, useEffect as oe, useRef as qe, useCallback as Se, useMemo as jr, createContext as Gt, useContext as Yt, useLayoutEffect as Lr, useImperativeHandle as Er, useId as pt } 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) {
|
|
6
6
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
7
7
|
}
|
|
8
|
-
var Ge = { exports: {} },
|
|
8
|
+
var Ge = { exports: {} }, ze = {};
|
|
9
9
|
/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.production.min.js
|
|
@@ -17,19 +17,19 @@ var Ge = { exports: {} }, Ue = {};
|
|
|
17
17
|
*/
|
|
18
18
|
var kt;
|
|
19
19
|
function Ir() {
|
|
20
|
-
if (kt) return
|
|
20
|
+
if (kt) return ze;
|
|
21
21
|
kt = 1;
|
|
22
|
-
var e = _t, r = Symbol.for("react.element"), a = Symbol.for("react.fragment"),
|
|
23
|
-
function l(c, _,
|
|
24
|
-
var
|
|
25
|
-
|
|
26
|
-
for (
|
|
27
|
-
if (c && c.defaultProps) for (
|
|
28
|
-
return { $$typeof: r, type: c, key: m, ref:
|
|
22
|
+
var e = _t, r = Symbol.for("react.element"), a = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, i = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, o = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
23
|
+
function l(c, _, f) {
|
|
24
|
+
var p, h = {}, m = null, g = null;
|
|
25
|
+
f !== void 0 && (m = "" + f), _.key !== void 0 && (m = "" + _.key), _.ref !== void 0 && (g = _.ref);
|
|
26
|
+
for (p in _) s.call(_, p) && !o.hasOwnProperty(p) && (h[p] = _[p]);
|
|
27
|
+
if (c && c.defaultProps) for (p in _ = c.defaultProps, _) h[p] === void 0 && (h[p] = _[p]);
|
|
28
|
+
return { $$typeof: r, type: c, key: m, ref: g, props: h, _owner: i.current };
|
|
29
29
|
}
|
|
30
|
-
return
|
|
30
|
+
return ze.Fragment = a, ze.jsx = l, ze.jsxs = l, ze;
|
|
31
31
|
}
|
|
32
|
-
var
|
|
32
|
+
var Ue = {};
|
|
33
33
|
/**
|
|
34
34
|
* @license React
|
|
35
35
|
* react-jsx-runtime.development.js
|
|
@@ -42,88 +42,88 @@ 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 = _t, r = Symbol.for("react.element"), a = Symbol.for("react.portal"),
|
|
46
|
-
function
|
|
45
|
+
var e = _t, r = Symbol.for("react.element"), a = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), c = Symbol.for("react.context"), _ = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), m = Symbol.for("react.lazy"), g = Symbol.for("react.offscreen"), y = Symbol.iterator, C = "@@iterator";
|
|
46
|
+
function v(t) {
|
|
47
47
|
if (t === null || typeof t != "object")
|
|
48
48
|
return null;
|
|
49
|
-
var
|
|
50
|
-
return typeof
|
|
49
|
+
var d = y && t[y] || t[C];
|
|
50
|
+
return typeof d == "function" ? d : null;
|
|
51
51
|
}
|
|
52
|
-
var
|
|
53
|
-
function
|
|
52
|
+
var x = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
53
|
+
function u(t) {
|
|
54
54
|
{
|
|
55
|
-
for (var
|
|
56
|
-
|
|
57
|
-
w("error", t,
|
|
55
|
+
for (var d = arguments.length, b = new Array(d > 1 ? d - 1 : 0), L = 1; L < d; L++)
|
|
56
|
+
b[L - 1] = arguments[L];
|
|
57
|
+
w("error", t, b);
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
|
-
function w(t,
|
|
60
|
+
function w(t, d, b) {
|
|
61
61
|
{
|
|
62
|
-
var
|
|
63
|
-
|
|
64
|
-
var
|
|
62
|
+
var L = x.ReactDebugCurrentFrame, P = L.getStackAddendum();
|
|
63
|
+
P !== "" && (d += "%s", b = b.concat([P]));
|
|
64
|
+
var z = b.map(function(R) {
|
|
65
65
|
return String(R);
|
|
66
66
|
});
|
|
67
|
-
|
|
67
|
+
z.unshift("Warning: " + d), Function.prototype.apply.call(console[t], console, z);
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
|
-
var
|
|
71
|
-
|
|
70
|
+
var j = !1, M = !1, E = !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 ===
|
|
73
|
+
return !!(typeof t == "string" || typeof t == "function" || t === s || t === o || A || t === i || t === f || t === p || I || t === g || j || M || E || typeof t == "object" && t !== null && (t.$$typeof === m || t.$$typeof === h || t.$$typeof === l || t.$$typeof === c || t.$$typeof === _ || // 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
|
-
function q(t,
|
|
80
|
-
var
|
|
81
|
-
if (
|
|
82
|
-
return
|
|
83
|
-
var
|
|
84
|
-
return
|
|
79
|
+
function q(t, d, b) {
|
|
80
|
+
var L = t.displayName;
|
|
81
|
+
if (L)
|
|
82
|
+
return L;
|
|
83
|
+
var P = d.displayName || d.name || "";
|
|
84
|
+
return P !== "" ? b + "(" + P + ")" : b;
|
|
85
85
|
}
|
|
86
|
-
function
|
|
86
|
+
function O(t) {
|
|
87
87
|
return t.displayName || "Context";
|
|
88
88
|
}
|
|
89
89
|
function S(t) {
|
|
90
90
|
if (t == null)
|
|
91
91
|
return null;
|
|
92
|
-
if (typeof t.tag == "number" &&
|
|
92
|
+
if (typeof t.tag == "number" && u("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof t == "function")
|
|
93
93
|
return t.displayName || t.name || null;
|
|
94
94
|
if (typeof t == "string")
|
|
95
95
|
return t;
|
|
96
96
|
switch (t) {
|
|
97
|
-
case
|
|
97
|
+
case s:
|
|
98
98
|
return "Fragment";
|
|
99
99
|
case a:
|
|
100
100
|
return "Portal";
|
|
101
|
-
case
|
|
101
|
+
case o:
|
|
102
102
|
return "Profiler";
|
|
103
103
|
case i:
|
|
104
104
|
return "StrictMode";
|
|
105
|
-
case p:
|
|
106
|
-
return "Suspense";
|
|
107
105
|
case f:
|
|
106
|
+
return "Suspense";
|
|
107
|
+
case p:
|
|
108
108
|
return "SuspenseList";
|
|
109
109
|
}
|
|
110
110
|
if (typeof t == "object")
|
|
111
111
|
switch (t.$$typeof) {
|
|
112
112
|
case c:
|
|
113
|
-
var
|
|
114
|
-
return
|
|
113
|
+
var d = t;
|
|
114
|
+
return O(d) + ".Consumer";
|
|
115
115
|
case l:
|
|
116
|
-
var
|
|
117
|
-
return
|
|
116
|
+
var b = t;
|
|
117
|
+
return O(b._context) + ".Provider";
|
|
118
118
|
case _:
|
|
119
119
|
return q(t, t.render, "ForwardRef");
|
|
120
120
|
case h:
|
|
121
|
-
var
|
|
122
|
-
return
|
|
121
|
+
var L = t.displayName || null;
|
|
122
|
+
return L !== null ? L : 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
138
|
function Be() {
|
|
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,18 +190,18 @@ function $r() {
|
|
|
190
190
|
})
|
|
191
191
|
});
|
|
192
192
|
}
|
|
193
|
-
|
|
193
|
+
B < 0 && u("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
194
194
|
}
|
|
195
195
|
}
|
|
196
|
-
var Me =
|
|
197
|
-
function
|
|
196
|
+
var Me = x.ReactCurrentDispatcher, Ie;
|
|
197
|
+
function Le(t, d, b) {
|
|
198
198
|
{
|
|
199
199
|
if (Ie === void 0)
|
|
200
200
|
try {
|
|
201
201
|
throw Error();
|
|
202
|
-
} catch (
|
|
203
|
-
var
|
|
204
|
-
Ie =
|
|
202
|
+
} catch (P) {
|
|
203
|
+
var L = P.stack.trim().match(/\n( *(at )?)/);
|
|
204
|
+
Ie = L && L[1] || "";
|
|
205
205
|
}
|
|
206
206
|
return `
|
|
207
207
|
` + Ie + t;
|
|
@@ -212,22 +212,22 @@ function $r() {
|
|
|
212
212
|
var Ke = typeof WeakMap == "function" ? WeakMap : Map;
|
|
213
213
|
$e = new Ke();
|
|
214
214
|
}
|
|
215
|
-
function He(t,
|
|
215
|
+
function He(t, d) {
|
|
216
216
|
if (!t || We)
|
|
217
217
|
return "";
|
|
218
218
|
{
|
|
219
|
-
var
|
|
220
|
-
if (
|
|
221
|
-
return
|
|
219
|
+
var b = $e.get(t);
|
|
220
|
+
if (b !== void 0)
|
|
221
|
+
return b;
|
|
222
222
|
}
|
|
223
|
-
var
|
|
223
|
+
var L;
|
|
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, Be();
|
|
229
229
|
try {
|
|
230
|
-
if (
|
|
230
|
+
if (d) {
|
|
231
231
|
var R = function() {
|
|
232
232
|
throw Error();
|
|
233
233
|
};
|
|
@@ -239,14 +239,14 @@ function $r() {
|
|
|
239
239
|
try {
|
|
240
240
|
Reflect.construct(R, []);
|
|
241
241
|
} catch (ae) {
|
|
242
|
-
|
|
242
|
+
L = ae;
|
|
243
243
|
}
|
|
244
244
|
Reflect.construct(t, [], R);
|
|
245
245
|
} else {
|
|
246
246
|
try {
|
|
247
247
|
R.call();
|
|
248
248
|
} catch (ae) {
|
|
249
|
-
|
|
249
|
+
L = ae;
|
|
250
250
|
}
|
|
251
251
|
t.call(R.prototype);
|
|
252
252
|
}
|
|
@@ -254,14 +254,14 @@ function $r() {
|
|
|
254
254
|
try {
|
|
255
255
|
throw Error();
|
|
256
256
|
} catch (ae) {
|
|
257
|
-
|
|
257
|
+
L = ae;
|
|
258
258
|
}
|
|
259
259
|
t();
|
|
260
260
|
}
|
|
261
261
|
} catch (ae) {
|
|
262
|
-
if (ae &&
|
|
262
|
+
if (ae && L && typeof ae.stack == "string") {
|
|
263
263
|
for (var $ = ae.stack.split(`
|
|
264
|
-
`), te =
|
|
264
|
+
`), te = L.stack.split(`
|
|
265
265
|
`), V = $.length - 1, G = te.length - 1; V >= 1 && G >= 0 && $[V] !== te[G]; )
|
|
266
266
|
G--;
|
|
267
267
|
for (; V >= 1 && G >= 0; V--, G--)
|
|
@@ -278,71 +278,71 @@ function $r() {
|
|
|
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
|
-
var Re = t ? t.displayName || t.name : "",
|
|
284
|
-
return typeof t == "function" && $e.set(t,
|
|
283
|
+
var Re = t ? t.displayName || t.name : "", Ee = Re ? Le(Re) : "";
|
|
284
|
+
return typeof t == "function" && $e.set(t, Ee), Ee;
|
|
285
285
|
}
|
|
286
|
-
function Qe(t,
|
|
286
|
+
function Qe(t, d, b) {
|
|
287
287
|
return He(t, !1);
|
|
288
288
|
}
|
|
289
289
|
function et(t) {
|
|
290
|
-
var
|
|
291
|
-
return !!(
|
|
290
|
+
var d = t.prototype;
|
|
291
|
+
return !!(d && d.isReactComponent);
|
|
292
292
|
}
|
|
293
|
-
function Z(t,
|
|
293
|
+
function Z(t, d, b) {
|
|
294
294
|
if (t == null)
|
|
295
295
|
return "";
|
|
296
296
|
if (typeof t == "function")
|
|
297
297
|
return He(t, et(t));
|
|
298
298
|
if (typeof t == "string")
|
|
299
|
-
return
|
|
299
|
+
return Le(t);
|
|
300
300
|
switch (t) {
|
|
301
|
-
case p:
|
|
302
|
-
return Ee("Suspense");
|
|
303
301
|
case f:
|
|
304
|
-
return
|
|
302
|
+
return Le("Suspense");
|
|
303
|
+
case p:
|
|
304
|
+
return Le("SuspenseList");
|
|
305
305
|
}
|
|
306
306
|
if (typeof t == "object")
|
|
307
307
|
switch (t.$$typeof) {
|
|
308
308
|
case _:
|
|
309
309
|
return Qe(t.render);
|
|
310
310
|
case h:
|
|
311
|
-
return Z(t.type,
|
|
311
|
+
return Z(t.type, d, b);
|
|
312
312
|
case m: {
|
|
313
|
-
var
|
|
313
|
+
var L = t, P = L._payload, z = L._init;
|
|
314
314
|
try {
|
|
315
|
-
return Z(
|
|
315
|
+
return Z(z(P), d, b);
|
|
316
316
|
} catch {
|
|
317
317
|
}
|
|
318
318
|
}
|
|
319
319
|
}
|
|
320
320
|
return "";
|
|
321
321
|
}
|
|
322
|
-
var X = Object.prototype.hasOwnProperty, be = {},
|
|
322
|
+
var X = Object.prototype.hasOwnProperty, be = {}, gt = x.ReactDebugCurrentFrame;
|
|
323
323
|
function Ve(t) {
|
|
324
324
|
if (t) {
|
|
325
|
-
var
|
|
326
|
-
|
|
325
|
+
var d = t._owner, b = Z(t.type, t._source, d ? d.type : null);
|
|
326
|
+
gt.setExtraStackFrame(b);
|
|
327
327
|
} else
|
|
328
|
-
|
|
328
|
+
gt.setExtraStackFrame(null);
|
|
329
329
|
}
|
|
330
|
-
function ar(t,
|
|
330
|
+
function ar(t, d, b, L, 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") {
|
|
338
|
-
var te = Error((
|
|
338
|
+
var te = Error((L || "React class") + ": " + b + " type `" + R + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof t[R] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
339
339
|
throw te.name = "Invariant Violation", te;
|
|
340
340
|
}
|
|
341
|
-
$ = t[R](
|
|
341
|
+
$ = t[R](d, R, L, b, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
342
342
|
} catch (V) {
|
|
343
343
|
$ = V;
|
|
344
344
|
}
|
|
345
|
-
$ && !($ instanceof Error) && (Ve(
|
|
345
|
+
$ && !($ instanceof Error) && (Ve(P), u("%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).", L || "React class", b, R, typeof $), Ve(null)), $ instanceof Error && !($.message in be) && (be[$.message] = !0, Ve(P), u("Failed %s type: %s", b, $.message), Ve(null));
|
|
346
346
|
}
|
|
347
347
|
}
|
|
348
348
|
}
|
|
@@ -352,8 +352,8 @@ function $r() {
|
|
|
352
352
|
}
|
|
353
353
|
function sr(t) {
|
|
354
354
|
{
|
|
355
|
-
var
|
|
356
|
-
return
|
|
355
|
+
var d = typeof Symbol == "function" && Symbol.toStringTag, b = d && t[Symbol.toStringTag] || t.constructor.name || "Object";
|
|
356
|
+
return b;
|
|
357
357
|
}
|
|
358
358
|
}
|
|
359
359
|
function or(t) {
|
|
@@ -366,11 +366,11 @@ function $r() {
|
|
|
366
366
|
function bt(t) {
|
|
367
367
|
return "" + t;
|
|
368
368
|
}
|
|
369
|
-
function
|
|
369
|
+
function ht(t) {
|
|
370
370
|
if (or(t))
|
|
371
|
-
return
|
|
371
|
+
return u("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", sr(t)), bt(t);
|
|
372
372
|
}
|
|
373
|
-
var mt =
|
|
373
|
+
var mt = x.ReactCurrentOwner, ir = {
|
|
374
374
|
key: !0,
|
|
375
375
|
ref: !0,
|
|
376
376
|
__self: !0,
|
|
@@ -378,56 +378,56 @@ function $r() {
|
|
|
378
378
|
}, yt, vt;
|
|
379
379
|
function lr(t) {
|
|
380
380
|
if (X.call(t, "ref")) {
|
|
381
|
-
var
|
|
382
|
-
if (
|
|
381
|
+
var d = Object.getOwnPropertyDescriptor(t, "ref").get;
|
|
382
|
+
if (d && d.isReactWarning)
|
|
383
383
|
return !1;
|
|
384
384
|
}
|
|
385
385
|
return t.ref !== void 0;
|
|
386
386
|
}
|
|
387
387
|
function cr(t) {
|
|
388
388
|
if (X.call(t, "key")) {
|
|
389
|
-
var
|
|
390
|
-
if (
|
|
389
|
+
var d = Object.getOwnPropertyDescriptor(t, "key").get;
|
|
390
|
+
if (d && d.isReactWarning)
|
|
391
391
|
return !1;
|
|
392
392
|
}
|
|
393
393
|
return t.key !== void 0;
|
|
394
394
|
}
|
|
395
|
-
function dr(t,
|
|
395
|
+
function dr(t, d) {
|
|
396
396
|
typeof t.ref == "string" && mt.current;
|
|
397
397
|
}
|
|
398
|
-
function ur(t,
|
|
398
|
+
function ur(t, d) {
|
|
399
399
|
{
|
|
400
|
-
var
|
|
401
|
-
yt || (yt = !0,
|
|
400
|
+
var b = function() {
|
|
401
|
+
yt || (yt = !0, u("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", d));
|
|
402
402
|
};
|
|
403
|
-
|
|
404
|
-
get:
|
|
403
|
+
b.isReactWarning = !0, Object.defineProperty(t, "key", {
|
|
404
|
+
get: b,
|
|
405
405
|
configurable: !0
|
|
406
406
|
});
|
|
407
407
|
}
|
|
408
408
|
}
|
|
409
|
-
function _r(t,
|
|
409
|
+
function _r(t, d) {
|
|
410
410
|
{
|
|
411
|
-
var
|
|
412
|
-
vt || (vt = !0,
|
|
411
|
+
var b = function() {
|
|
412
|
+
vt || (vt = !0, u("%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)", d));
|
|
413
413
|
};
|
|
414
|
-
|
|
415
|
-
get:
|
|
414
|
+
b.isReactWarning = !0, Object.defineProperty(t, "ref", {
|
|
415
|
+
get: b,
|
|
416
416
|
configurable: !0
|
|
417
417
|
});
|
|
418
418
|
}
|
|
419
419
|
}
|
|
420
|
-
var pr = function(t,
|
|
420
|
+
var pr = function(t, d, b, L, P, z, R) {
|
|
421
421
|
var $ = {
|
|
422
422
|
// This tag allows us to uniquely identify this as a React Element
|
|
423
423
|
$$typeof: r,
|
|
424
424
|
// Built-in properties that belong on the element
|
|
425
425
|
type: t,
|
|
426
|
-
key:
|
|
427
|
-
ref:
|
|
426
|
+
key: d,
|
|
427
|
+
ref: b,
|
|
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,
|
|
@@ -438,37 +438,37 @@ function $r() {
|
|
|
438
438
|
configurable: !1,
|
|
439
439
|
enumerable: !1,
|
|
440
440
|
writable: !1,
|
|
441
|
-
value:
|
|
441
|
+
value: L
|
|
442
442
|
}), Object.defineProperty($, "_source", {
|
|
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,
|
|
449
|
+
function fr(t, d, b, L, P) {
|
|
450
450
|
{
|
|
451
|
-
var
|
|
452
|
-
|
|
453
|
-
for (
|
|
454
|
-
X.call(
|
|
451
|
+
var z, R = {}, $ = null, te = null;
|
|
452
|
+
b !== void 0 && (ht(b), $ = "" + b), cr(d) && (ht(d.key), $ = "" + d.key), lr(d) && (te = d.ref, dr(d, P));
|
|
453
|
+
for (z in d)
|
|
454
|
+
X.call(d, z) && !ir.hasOwnProperty(z) && (R[z] = d[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
462
|
$ && ur(R, G), te && _r(R, G);
|
|
463
463
|
}
|
|
464
|
-
return pr(t, $, te,
|
|
464
|
+
return pr(t, $, te, P, L, mt.current, R);
|
|
465
465
|
}
|
|
466
466
|
}
|
|
467
|
-
var rt =
|
|
467
|
+
var rt = x.ReactCurrentOwner, xt = x.ReactDebugCurrentFrame;
|
|
468
468
|
function Te(t) {
|
|
469
469
|
if (t) {
|
|
470
|
-
var
|
|
471
|
-
xt.setExtraStackFrame(
|
|
470
|
+
var d = t._owner, b = Z(t.type, t._source, d ? d.type : null);
|
|
471
|
+
xt.setExtraStackFrame(b);
|
|
472
472
|
} else
|
|
473
473
|
xt.setExtraStackFrame(null);
|
|
474
474
|
}
|
|
@@ -489,158 +489,158 @@ Check the render method of \`` + t + "`.";
|
|
|
489
489
|
return "";
|
|
490
490
|
}
|
|
491
491
|
}
|
|
492
|
-
function
|
|
492
|
+
function gr(t) {
|
|
493
493
|
return "";
|
|
494
494
|
}
|
|
495
495
|
var Ct = {};
|
|
496
496
|
function br(t) {
|
|
497
497
|
{
|
|
498
|
-
var
|
|
499
|
-
if (!
|
|
500
|
-
var
|
|
501
|
-
|
|
498
|
+
var d = wt();
|
|
499
|
+
if (!d) {
|
|
500
|
+
var b = typeof t == "string" ? t : t.displayName || t.name;
|
|
501
|
+
b && (d = `
|
|
502
502
|
|
|
503
|
-
Check the top-level render call using <` +
|
|
503
|
+
Check the top-level render call using <` + b + ">.");
|
|
504
504
|
}
|
|
505
|
-
return
|
|
505
|
+
return d;
|
|
506
506
|
}
|
|
507
507
|
}
|
|
508
|
-
function St(t,
|
|
508
|
+
function St(t, d) {
|
|
509
509
|
{
|
|
510
510
|
if (!t._store || t._store.validated || t.key != null)
|
|
511
511
|
return;
|
|
512
512
|
t._store.validated = !0;
|
|
513
|
-
var
|
|
514
|
-
if (Ct[
|
|
513
|
+
var b = br(d);
|
|
514
|
+
if (Ct[b])
|
|
515
515
|
return;
|
|
516
|
-
Ct[
|
|
517
|
-
var
|
|
518
|
-
t && t._owner && t._owner !== rt.current && (
|
|
516
|
+
Ct[b] = !0;
|
|
517
|
+
var L = "";
|
|
518
|
+
t && t._owner && t._owner !== rt.current && (L = " It was passed a child from " + S(t._owner.type) + "."), Te(t), u('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', b, L), Te(null);
|
|
519
519
|
}
|
|
520
520
|
}
|
|
521
|
-
function
|
|
521
|
+
function jt(t, d) {
|
|
522
522
|
{
|
|
523
523
|
if (typeof t != "object")
|
|
524
524
|
return;
|
|
525
525
|
if (tt(t))
|
|
526
|
-
for (var
|
|
527
|
-
var
|
|
528
|
-
nt(
|
|
526
|
+
for (var b = 0; b < t.length; b++) {
|
|
527
|
+
var L = t[b];
|
|
528
|
+
nt(L) && St(L, d);
|
|
529
529
|
}
|
|
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
|
|
536
|
-
nt(R.value) && St(R.value,
|
|
533
|
+
var P = v(t);
|
|
534
|
+
if (typeof P == "function" && P !== t.entries)
|
|
535
|
+
for (var z = P.call(t), R; !(R = z.next()).done; )
|
|
536
|
+
nt(R.value) && St(R.value, d);
|
|
537
537
|
}
|
|
538
538
|
}
|
|
539
539
|
}
|
|
540
|
-
function
|
|
540
|
+
function hr(t) {
|
|
541
541
|
{
|
|
542
|
-
var
|
|
543
|
-
if (
|
|
542
|
+
var d = t.type;
|
|
543
|
+
if (d == null || typeof d == "string")
|
|
544
544
|
return;
|
|
545
|
-
var
|
|
546
|
-
if (typeof
|
|
547
|
-
|
|
548
|
-
else if (typeof
|
|
545
|
+
var b;
|
|
546
|
+
if (typeof d == "function")
|
|
547
|
+
b = d.propTypes;
|
|
548
|
+
else if (typeof d == "object" && (d.$$typeof === _ || // Note: Memo only checks outer props here.
|
|
549
549
|
// Inner props are checked in the reconciler.
|
|
550
|
-
|
|
551
|
-
|
|
550
|
+
d.$$typeof === h))
|
|
551
|
+
b = d.propTypes;
|
|
552
552
|
else
|
|
553
553
|
return;
|
|
554
|
-
if (
|
|
555
|
-
var
|
|
556
|
-
ar(
|
|
557
|
-
} else if (
|
|
554
|
+
if (b) {
|
|
555
|
+
var L = S(d);
|
|
556
|
+
ar(b, t.props, "prop", L, t);
|
|
557
|
+
} else if (d.PropTypes !== void 0 && !at) {
|
|
558
558
|
at = !0;
|
|
559
|
-
var
|
|
560
|
-
|
|
559
|
+
var P = S(d);
|
|
560
|
+
u("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", P || "Unknown");
|
|
561
561
|
}
|
|
562
|
-
typeof
|
|
562
|
+
typeof d.getDefaultProps == "function" && !d.getDefaultProps.isReactClassApproved && u("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
563
563
|
}
|
|
564
564
|
}
|
|
565
565
|
function mr(t) {
|
|
566
566
|
{
|
|
567
|
-
for (var
|
|
568
|
-
var
|
|
569
|
-
if (
|
|
570
|
-
Te(t),
|
|
567
|
+
for (var d = Object.keys(t.props), b = 0; b < d.length; b++) {
|
|
568
|
+
var L = d[b];
|
|
569
|
+
if (L !== "children" && L !== "key") {
|
|
570
|
+
Te(t), u("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", L), Te(null);
|
|
571
571
|
break;
|
|
572
572
|
}
|
|
573
573
|
}
|
|
574
|
-
t.ref !== null && (Te(t),
|
|
574
|
+
t.ref !== null && (Te(t), u("Invalid attribute `ref` supplied to `React.Fragment`."), Te(null));
|
|
575
575
|
}
|
|
576
576
|
}
|
|
577
|
-
var
|
|
578
|
-
function
|
|
577
|
+
var Lt = {};
|
|
578
|
+
function Et(t, d, b, L, P, z) {
|
|
579
579
|
{
|
|
580
580
|
var R = U(t);
|
|
581
581
|
if (!R) {
|
|
582
582
|
var $ = "";
|
|
583
583
|
(t === void 0 || typeof t == "object" && t !== null && Object.keys(t).length === 0) && ($ += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
584
|
-
var te =
|
|
584
|
+
var te = gr();
|
|
585
585
|
te ? $ += te : $ += wt();
|
|
586
586
|
var V;
|
|
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,
|
|
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, u("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,
|
|
589
|
+
var G = fr(t, d, b, P, z);
|
|
590
590
|
if (G == null)
|
|
591
591
|
return G;
|
|
592
592
|
if (R) {
|
|
593
|
-
var _e =
|
|
593
|
+
var _e = d.children;
|
|
594
594
|
if (_e !== void 0)
|
|
595
|
-
if (
|
|
595
|
+
if (L)
|
|
596
596
|
if (tt(_e)) {
|
|
597
597
|
for (var Re = 0; Re < _e.length; Re++)
|
|
598
|
-
|
|
598
|
+
jt(_e[Re], t);
|
|
599
599
|
Object.freeze && Object.freeze(_e);
|
|
600
600
|
} else
|
|
601
|
-
|
|
601
|
+
u("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
|
-
|
|
603
|
+
jt(_e, t);
|
|
604
604
|
}
|
|
605
|
-
if (X.call(
|
|
606
|
-
var
|
|
605
|
+
if (X.call(d, "key")) {
|
|
606
|
+
var Ee = S(t), ae = Object.keys(d).filter(function(Sr) {
|
|
607
607
|
return Sr !== "key";
|
|
608
608
|
}), st = ae.length > 0 ? "{key: someKey, " + ae.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
609
|
-
if (!
|
|
609
|
+
if (!Lt[Ee + st]) {
|
|
610
610
|
var Cr = ae.length > 0 ? "{" + ae.join(": ..., ") + ": ...}" : "{}";
|
|
611
|
-
|
|
611
|
+
u(`A props object containing a "key" prop is being spread into JSX:
|
|
612
612
|
let props = %s;
|
|
613
613
|
<%s {...props} />
|
|
614
614
|
React keys must be passed directly to JSX without using spread:
|
|
615
615
|
let props = %s;
|
|
616
|
-
<%s key={someKey} {...props} />`, st,
|
|
616
|
+
<%s key={someKey} {...props} />`, st, Ee, Cr, Ee), Lt[Ee + st] = !0;
|
|
617
617
|
}
|
|
618
618
|
}
|
|
619
|
-
return t ===
|
|
619
|
+
return t === s ? mr(G) : hr(G), G;
|
|
620
620
|
}
|
|
621
621
|
}
|
|
622
|
-
function yr(t,
|
|
623
|
-
return
|
|
622
|
+
function yr(t, d, b) {
|
|
623
|
+
return Et(t, d, b, !0);
|
|
624
624
|
}
|
|
625
|
-
function vr(t,
|
|
626
|
-
return
|
|
625
|
+
function vr(t, d, b) {
|
|
626
|
+
return Et(t, d, b, !1);
|
|
627
627
|
}
|
|
628
628
|
var xr = vr, wr = yr;
|
|
629
|
-
|
|
630
|
-
}()),
|
|
629
|
+
Ue.Fragment = s, Ue.jsx = xr, Ue.jsxs = wr;
|
|
630
|
+
}()), Ue;
|
|
631
631
|
}
|
|
632
632
|
var It;
|
|
633
633
|
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,
|
|
@@ -724,24 +724,24 @@ const ce = {
|
|
|
724
724
|
isLoading: e,
|
|
725
725
|
iconRight: r,
|
|
726
726
|
iconLeft: a,
|
|
727
|
-
children:
|
|
727
|
+
children: s,
|
|
728
728
|
postfix: i,
|
|
729
|
-
subcaption:
|
|
729
|
+
subcaption: o,
|
|
730
730
|
size: l,
|
|
731
731
|
isAsButton: c
|
|
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 _ = r && c || r && !c && l,
|
|
736
|
-
return /* @__PURE__ */ n.jsxs(
|
|
737
|
-
|
|
738
|
-
/* @__PURE__ */ n.jsx("span", { "data-testid": "button-label", className: W.label, children:
|
|
739
|
-
/* @__PURE__ */ n.jsx("span", { "data-testid": "button-subcaption", className: W.subcaption, children:
|
|
735
|
+
const _ = r && c || r && !c && l, f = o && c && l !== "s" && l !== "xs";
|
|
736
|
+
return /* @__PURE__ */ n.jsxs(Oe, { children: [
|
|
737
|
+
f && /* @__PURE__ */ n.jsxs(Oe, { children: [
|
|
738
|
+
/* @__PURE__ */ n.jsx("span", { "data-testid": "button-label", className: W.label, children: s }),
|
|
739
|
+
/* @__PURE__ */ n.jsx("span", { "data-testid": "button-subcaption", className: W.subcaption, children: o })
|
|
740
740
|
] }),
|
|
741
|
-
!
|
|
741
|
+
!f && s && /* @__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
|
+
s,
|
|
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: [
|
|
@@ -749,70 +749,70 @@ const ce = {
|
|
|
749
749
|
i && c && /* @__PURE__ */ n.jsx("span", { "data-testid": "button-postfix", className: W.postfix, children: i })
|
|
750
750
|
] })
|
|
751
751
|
] }),
|
|
752
|
-
!
|
|
752
|
+
!f && !s && /* @__PURE__ */ n.jsx("span", { "data-testid": "button-icon", className: W.icon, children: r })
|
|
753
753
|
] });
|
|
754
|
-
},
|
|
754
|
+
}, ga = K((e, r) => {
|
|
755
755
|
const {
|
|
756
756
|
mode: a = "primary",
|
|
757
|
-
size:
|
|
757
|
+
size: s = "m",
|
|
758
758
|
buttonStyle: i = Ne(e) ? "neutral" : "accent",
|
|
759
|
-
disabled:
|
|
759
|
+
disabled: o = !1,
|
|
760
760
|
displayAs: l = "button",
|
|
761
761
|
iconRight: c,
|
|
762
762
|
className: _,
|
|
763
|
-
children:
|
|
764
|
-
tabIndex:
|
|
765
|
-
} = e, h = Ne(e) ? e.subcaption : void 0, m = Ne(e) ? e.postfix : void 0,
|
|
763
|
+
children: f,
|
|
764
|
+
tabIndex: p
|
|
765
|
+
} = e, h = Ne(e) ? e.subcaption : void 0, m = Ne(e) ? e.postfix : void 0, g = Ne(e) ? e.stretched : void 0, y = !(ot(e) && e.size === void 0), C = ot(e) && y ? e.iconLeft : void 0, v = !!(l === "button" && "loading" in e && e.loading), x = Ne(e) ? o : o || v, u = !x && !v, w = y ? c : void 0, j = !!(w && !f), M = typeof g == "object" ? g.justify === "space-between" : void 0, E = ot(e) ? fa(e.size ?? "m") : void 0, I = E ? ce[E] : void 0, A = x || v ? -1 : p, D = k(
|
|
766
766
|
W.button,
|
|
767
|
-
W[
|
|
767
|
+
W[s],
|
|
768
768
|
W[a],
|
|
769
769
|
W[i],
|
|
770
770
|
I,
|
|
771
771
|
{
|
|
772
|
-
[W.disabled]:
|
|
772
|
+
[W.disabled]: x,
|
|
773
773
|
[W.loading]: l === "button" && "loading" in e && e.loading,
|
|
774
|
-
[W.stretched]:
|
|
774
|
+
[W.stretched]: g,
|
|
775
775
|
[W.spaceBetween]: M,
|
|
776
|
-
[W.withSubcaption]: h &&
|
|
777
|
-
[W.iconOnly]:
|
|
776
|
+
[W.withSubcaption]: h && s !== "s" && s !== "xs",
|
|
777
|
+
[W.iconOnly]: j,
|
|
778
778
|
[W.link]: l === "link",
|
|
779
779
|
[W.underline]: l === "link" && "showUnderline" in e && e.showUnderline
|
|
780
780
|
},
|
|
781
781
|
_
|
|
782
782
|
), U = {
|
|
783
|
-
isLoading:
|
|
783
|
+
isLoading: v,
|
|
784
784
|
iconRight: w,
|
|
785
|
-
iconLeft:
|
|
786
|
-
children:
|
|
785
|
+
iconLeft: C,
|
|
786
|
+
children: f,
|
|
787
787
|
postfix: m,
|
|
788
788
|
subcaption: h,
|
|
789
|
-
size:
|
|
789
|
+
size: s,
|
|
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) => {
|
|
800
|
-
if (!
|
|
800
|
+
if (!u) {
|
|
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:
|
|
811
|
-
href:
|
|
810
|
+
className: D,
|
|
811
|
+
href: u ? q : void 0,
|
|
812
812
|
tabIndex: A,
|
|
813
813
|
onClick: ue,
|
|
814
814
|
"data-testid": F,
|
|
815
|
-
"aria-disabled":
|
|
815
|
+
"aria-disabled": x || v,
|
|
816
816
|
style: S,
|
|
817
817
|
target: ie,
|
|
818
818
|
rel: Y,
|
|
@@ -822,20 +822,20 @@ const ce = {
|
|
|
822
822
|
);
|
|
823
823
|
}
|
|
824
824
|
if (Nr(e)) {
|
|
825
|
-
const { type: q = "button", onClick:
|
|
826
|
-
|
|
825
|
+
const { type: q = "button", onClick: O, style: S, "data-testid": T, ...B } = e, F = $t(B), H = (Q) => {
|
|
826
|
+
u && 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:
|
|
834
|
-
disabled:
|
|
833
|
+
className: D,
|
|
834
|
+
disabled: x,
|
|
835
835
|
tabIndex: A,
|
|
836
836
|
onClick: H,
|
|
837
837
|
"data-testid": T,
|
|
838
|
-
"aria-disabled":
|
|
838
|
+
"aria-disabled": x || v,
|
|
839
839
|
style: S,
|
|
840
840
|
...F,
|
|
841
841
|
children: /* @__PURE__ */ n.jsx(Tt, { ...U })
|
|
@@ -856,35 +856,35 @@ function ba() {
|
|
|
856
856
|
(function() {
|
|
857
857
|
var r = {}.hasOwnProperty;
|
|
858
858
|
function a() {
|
|
859
|
-
for (var
|
|
859
|
+
for (var o = "", l = 0; l < arguments.length; l++) {
|
|
860
860
|
var c = arguments[l];
|
|
861
|
-
c && (
|
|
861
|
+
c && (o = i(o, s(c)));
|
|
862
862
|
}
|
|
863
|
-
return
|
|
863
|
+
return o;
|
|
864
864
|
}
|
|
865
|
-
function o
|
|
866
|
-
if (typeof
|
|
867
|
-
return
|
|
868
|
-
if (typeof
|
|
865
|
+
function s(o) {
|
|
866
|
+
if (typeof o == "string" || typeof o == "number")
|
|
867
|
+
return o;
|
|
868
|
+
if (typeof o != "object")
|
|
869
869
|
return "";
|
|
870
|
-
if (Array.isArray(
|
|
871
|
-
return a.apply(null,
|
|
872
|
-
if (
|
|
873
|
-
return
|
|
870
|
+
if (Array.isArray(o))
|
|
871
|
+
return a.apply(null, o);
|
|
872
|
+
if (o.toString !== Object.prototype.toString && !o.toString.toString().includes("[native code]"))
|
|
873
|
+
return o.toString();
|
|
874
874
|
var l = "";
|
|
875
|
-
for (var c in
|
|
876
|
-
r.call(
|
|
875
|
+
for (var c in o)
|
|
876
|
+
r.call(o, c) && o[c] && (l = i(l, c));
|
|
877
877
|
return l;
|
|
878
878
|
}
|
|
879
|
-
function i(
|
|
880
|
-
return l ?
|
|
879
|
+
function i(o, l) {
|
|
880
|
+
return l ? o ? o + " " + l : o + l : o;
|
|
881
881
|
}
|
|
882
882
|
e.exports ? (a.default = a, e.exports = a) : window.classNames = a;
|
|
883
883
|
})();
|
|
884
884
|
}(it)), it.exports;
|
|
885
885
|
}
|
|
886
|
-
var
|
|
887
|
-
const
|
|
886
|
+
var ha = ba();
|
|
887
|
+
const je = /* @__PURE__ */ Mr(ha), ma = "_avatar_47gdj_18", ya = "_clickable_47gdj_42", va = "_icon_47gdj_59", xa = "_disabled_47gdj_64", wa = "_loading_47gdj_69", Ca = "_image_47gdj_75", Sa = "_name_47gdj_75", he = {
|
|
888
888
|
avatar: ma,
|
|
889
889
|
clickable: ya,
|
|
890
890
|
icon: va,
|
|
@@ -892,33 +892,33 @@ 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_47gdj_127",
|
|
896
|
+
"color-brand": "_color-brand_47gdj_132",
|
|
897
|
+
"color-red": "_color-red_47gdj_136",
|
|
898
|
+
"color-orange": "_color-orange_47gdj_140",
|
|
899
|
+
"color-yellow": "_color-yellow_47gdj_144",
|
|
900
|
+
"color-green": "_color-green_47gdj_148",
|
|
901
|
+
"color-blue": "_color-blue_47gdj_152",
|
|
902
|
+
"color-lightblue": "_color-lightblue_47gdj_156",
|
|
903
|
+
"color-purple": "_color-purple_47gdj_160",
|
|
904
|
+
"color-gray": "_color-gray_47gdj_164",
|
|
905
|
+
"color-contrast": "_color-contrast_47gdj_168",
|
|
906
|
+
"variant-light": "_variant-light_47gdj_174",
|
|
907
|
+
"variant-outline": "_variant-outline_47gdj_246"
|
|
908
908
|
}, Nt = 99;
|
|
909
|
-
function
|
|
909
|
+
function ja(e) {
|
|
910
910
|
return e < Nt ? `+${e}` : `${Nt}+`;
|
|
911
911
|
}
|
|
912
912
|
function Je(e) {
|
|
913
913
|
const r = typeof e == "string" ? e : JSON.stringify(e);
|
|
914
914
|
let a = 5381;
|
|
915
|
-
for (let
|
|
916
|
-
const i = r.charCodeAt(
|
|
915
|
+
for (let s = 0; s < r.length; s++) {
|
|
916
|
+
const i = r.charCodeAt(s);
|
|
917
917
|
a = (a << 5) + a + i;
|
|
918
918
|
}
|
|
919
919
|
return a >>> 0;
|
|
920
920
|
}
|
|
921
|
-
const Ea = [
|
|
921
|
+
const La = (e, r, a) => Math.min(Math.max(e, r), a), Ea = [
|
|
922
922
|
"red",
|
|
923
923
|
"orange",
|
|
924
924
|
"yellow",
|
|
@@ -927,18 +927,18 @@ const Ea = [
|
|
|
927
927
|
"lightblue",
|
|
928
928
|
"purple"
|
|
929
929
|
];
|
|
930
|
-
function
|
|
930
|
+
function ka(e, r = Ea) {
|
|
931
931
|
if (!e) return "gray";
|
|
932
|
-
const a = Je(e),
|
|
933
|
-
return r[
|
|
932
|
+
const a = Je(e), s = Math.abs(a) % r.length;
|
|
933
|
+
return r[s];
|
|
934
934
|
}
|
|
935
935
|
const At = 2;
|
|
936
|
-
function
|
|
936
|
+
function Ma(e) {
|
|
937
937
|
if (!e) return "";
|
|
938
938
|
const r = e.trim().split(/\s+/);
|
|
939
939
|
return r.length === 1 ? e.slice(0, At).toUpperCase() : r.map((a) => a[0]).slice(0, At).join("").toUpperCase();
|
|
940
940
|
}
|
|
941
|
-
const
|
|
941
|
+
const Ia = {
|
|
942
942
|
24: 8,
|
|
943
943
|
32: 12,
|
|
944
944
|
40: 12,
|
|
@@ -949,10 +949,10 @@ const Ma = {
|
|
|
949
949
|
96: 24,
|
|
950
950
|
208: 8
|
|
951
951
|
};
|
|
952
|
-
function
|
|
953
|
-
return r === "circle" ? e / 2 :
|
|
952
|
+
function $a(e, r) {
|
|
953
|
+
return r === "circle" ? e / 2 : Ia[e] || 12;
|
|
954
954
|
}
|
|
955
|
-
const
|
|
955
|
+
const Ta = {
|
|
956
956
|
24: "typography-subtitle-4-semibold",
|
|
957
957
|
32: "typography-subtitle-2-semibold",
|
|
958
958
|
40: "typography-subtitle-1-semibold",
|
|
@@ -963,70 +963,70 @@ const $a = {
|
|
|
963
963
|
96: "typography-title-3-semibold",
|
|
964
964
|
208: "typography-title-1-semibold"
|
|
965
965
|
};
|
|
966
|
-
function
|
|
967
|
-
return
|
|
966
|
+
function Ra(e) {
|
|
967
|
+
return Ta[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 = {
|
|
970
|
-
male:
|
|
971
|
-
female:
|
|
972
|
-
org:
|
|
973
|
-
neutral:
|
|
969
|
+
const Na = "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", Aa = "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", Da = "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", Oa = "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", Pa = {
|
|
970
|
+
male: Na,
|
|
971
|
+
female: Aa,
|
|
972
|
+
org: Oa,
|
|
973
|
+
neutral: Da
|
|
974
974
|
}, Ze = K((e, r) => {
|
|
975
975
|
const {
|
|
976
976
|
style: a,
|
|
977
|
-
size:
|
|
977
|
+
size: s = 40,
|
|
978
978
|
isLoading: i = !1,
|
|
979
|
-
isDisabled:
|
|
979
|
+
isDisabled: o = !1,
|
|
980
980
|
shape: l = "circle",
|
|
981
981
|
variant: c = "filled",
|
|
982
982
|
placeholderType: _ = "neutral",
|
|
983
|
-
name:
|
|
984
|
-
imgSrc:
|
|
983
|
+
name: f,
|
|
984
|
+
imgSrc: p,
|
|
985
985
|
imgAlt: h,
|
|
986
986
|
icon: m,
|
|
987
|
-
imgProps:
|
|
987
|
+
imgProps: g,
|
|
988
988
|
colorScheme: y,
|
|
989
|
-
className:
|
|
990
|
-
"data-testid":
|
|
991
|
-
...
|
|
992
|
-
} = e, { onClick:
|
|
989
|
+
className: C,
|
|
990
|
+
"data-testid": v,
|
|
991
|
+
...x
|
|
992
|
+
} = e, { onClick: u, onPointerDown: w } = x, M = !o && !i && (!!u || !!w), [E, I] = de(!1);
|
|
993
993
|
oe(() => {
|
|
994
|
-
|
|
995
|
-
}, [
|
|
996
|
-
const A =
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
994
|
+
p && I(!1);
|
|
995
|
+
}, [p]);
|
|
996
|
+
const A = p && !E ? "image" : m ? "icon" : f ? "name" : "placeholder", D = y || A === "name" && ka(f) || "gray", U = Ra(s), q = $a(s, l), O = k(
|
|
997
|
+
C,
|
|
998
|
+
he.avatar,
|
|
999
|
+
he[`variant-${c}`],
|
|
1000
|
+
he[`color-${D}`],
|
|
1001
1001
|
ce[U],
|
|
1002
1002
|
{
|
|
1003
|
-
[
|
|
1004
|
-
[
|
|
1005
|
-
[
|
|
1003
|
+
[he.disabled]: o,
|
|
1004
|
+
[he.loading]: i,
|
|
1005
|
+
[he.clickable]: M
|
|
1006
1006
|
}
|
|
1007
1007
|
), S = {
|
|
1008
|
-
"--avatar-size": `${
|
|
1008
|
+
"--avatar-size": `${s}px`,
|
|
1009
1009
|
"--avatar-border-radius": `${q}px`,
|
|
1010
1010
|
...a
|
|
1011
1011
|
}, T = {
|
|
1012
|
-
icon: () => /* @__PURE__ */ n.jsx("span", { "data-testid": "avatar-icon", title: h || void 0, role: "img", className:
|
|
1012
|
+
icon: () => /* @__PURE__ */ n.jsx("span", { "data-testid": "avatar-icon", title: h || void 0, role: "img", className: he.icon, children: m == null ? void 0 : m({}) }),
|
|
1013
1013
|
name: () => /* @__PURE__ */ n.jsx(
|
|
1014
1014
|
"span",
|
|
1015
1015
|
{
|
|
1016
1016
|
role: "textbox",
|
|
1017
1017
|
"data-testid": "avatar-name",
|
|
1018
|
-
className:
|
|
1018
|
+
className: he.name,
|
|
1019
1019
|
title: h || void 0,
|
|
1020
|
-
children:
|
|
1020
|
+
children: Ma(f || "")
|
|
1021
1021
|
}
|
|
1022
1022
|
),
|
|
1023
1023
|
placeholder: () => /* @__PURE__ */ n.jsx(
|
|
1024
1024
|
"img",
|
|
1025
1025
|
{
|
|
1026
|
-
...
|
|
1026
|
+
...g,
|
|
1027
1027
|
"data-testid": "avatar-placeholder",
|
|
1028
|
-
className:
|
|
1029
|
-
src:
|
|
1028
|
+
className: he.image,
|
|
1029
|
+
src: Pa[_],
|
|
1030
1030
|
alt: h || void 0
|
|
1031
1031
|
}
|
|
1032
1032
|
),
|
|
@@ -1034,58 +1034,56 @@ const Ra = "data:image/svg+xml,%3csvg%20opacity='0.9'%20preserveAspectRatio='xMi
|
|
|
1034
1034
|
"img",
|
|
1035
1035
|
{
|
|
1036
1036
|
"data-testid": "avatar-image",
|
|
1037
|
-
...
|
|
1038
|
-
className:
|
|
1039
|
-
src:
|
|
1037
|
+
...g,
|
|
1038
|
+
className: he.image,
|
|
1039
|
+
src: p || void 0,
|
|
1040
1040
|
alt: h || void 0,
|
|
1041
1041
|
onLoad: () => I(!1),
|
|
1042
1042
|
onError: (F) => {
|
|
1043
1043
|
var H;
|
|
1044
|
-
I(!0), (H =
|
|
1044
|
+
I(!0), (H = g == null ? void 0 : g.onError) == null || H.call(g, F);
|
|
1045
1045
|
}
|
|
1046
1046
|
}
|
|
1047
1047
|
)
|
|
1048
|
-
},
|
|
1049
|
-
M && (
|
|
1048
|
+
}, B = (F) => {
|
|
1049
|
+
M && (u == null || u(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
|
-
"data-testid":
|
|
1059
|
-
"aria-disabled":
|
|
1058
|
+
"data-testid": v,
|
|
1059
|
+
"aria-disabled": o || i,
|
|
1060
1060
|
children: T[A](null)
|
|
1061
1061
|
}
|
|
1062
1062
|
);
|
|
1063
|
-
}),
|
|
1064
|
-
avatarGroup:
|
|
1065
|
-
}
|
|
1066
|
-
let Ba = (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
|
-
const Ua = (e) => e === "rgba(0, 0, 0, 0)" || e === "transparent" || e.startsWith("rgba") && e.endsWith(", 0)"), Fa = (e) => {
|
|
1063
|
+
}), Ba = "_avatarGroup_157g4_1", za = {
|
|
1064
|
+
avatarGroup: Ba
|
|
1065
|
+
}, Ua = (e) => e === "rgba(0, 0, 0, 0)" || e === "transparent" || e.startsWith("rgba") && e.endsWith(", 0)"), Fa = (e) => {
|
|
1068
1066
|
if (!e) return null;
|
|
1069
1067
|
let r = e;
|
|
1070
1068
|
for (; r; ) {
|
|
1071
|
-
const
|
|
1072
|
-
if (!Ua(
|
|
1069
|
+
const s = window.getComputedStyle(r).backgroundColor;
|
|
1070
|
+
if (!Ua(s)) return s;
|
|
1073
1071
|
r = r.parentElement;
|
|
1074
1072
|
}
|
|
1075
1073
|
return null;
|
|
1076
1074
|
}, ft = () => {
|
|
1077
|
-
const e =
|
|
1075
|
+
const e = qe(null), [r, a] = de(null);
|
|
1078
1076
|
return oe(() => {
|
|
1079
1077
|
if (e.current) {
|
|
1080
|
-
const
|
|
1081
|
-
a(
|
|
1078
|
+
const s = Fa(e.current);
|
|
1079
|
+
a(s);
|
|
1082
1080
|
}
|
|
1083
1081
|
}, []), { ref: e, bgColor: r };
|
|
1084
1082
|
};
|
|
1085
|
-
function
|
|
1083
|
+
function Dt(e, r, a) {
|
|
1086
1084
|
oe(() => (window.addEventListener(e, r, a), () => window.removeEventListener(e, r, a)), [e, r]);
|
|
1087
1085
|
}
|
|
1088
|
-
const
|
|
1086
|
+
const Ot = {
|
|
1089
1087
|
passive: !0
|
|
1090
1088
|
};
|
|
1091
1089
|
function qa() {
|
|
@@ -1095,68 +1093,63 @@ function qa() {
|
|
|
1095
1093
|
}), a = Se(() => {
|
|
1096
1094
|
r({ width: window.innerWidth || 0, height: window.innerHeight || 0 });
|
|
1097
1095
|
}, []);
|
|
1098
|
-
return
|
|
1096
|
+
return Dt("resize", a, Ot), Dt("orientationchange", a, Ot), oe(a, []), e;
|
|
1099
1097
|
}
|
|
1100
1098
|
function Wa(e = 768) {
|
|
1101
1099
|
const { width: r } = qa();
|
|
1102
|
-
return
|
|
1100
|
+
return jr(() => r <= e, [r, e]);
|
|
1103
1101
|
}
|
|
1104
1102
|
const Ha = 2, Va = (e) => {
|
|
1105
1103
|
const {
|
|
1106
1104
|
avatars: r = [],
|
|
1107
1105
|
size: a = 40,
|
|
1108
|
-
overlap:
|
|
1106
|
+
overlap: s = 0.3,
|
|
1109
1107
|
shape: i = "circle",
|
|
1110
|
-
overflowCount:
|
|
1108
|
+
overflowCount: o = 0,
|
|
1111
1109
|
overflowProps: l,
|
|
1112
1110
|
cutoutBackground: c
|
|
1113
|
-
} = e,
|
|
1114
|
-
|
|
1111
|
+
} = e, f = -(a * s) + Ha, { ref: p, bgColor: h } = ft(), m = c || h || "#ffffff", g = je(za.avatarGroup), y = {
|
|
1112
|
+
"--avatar-cutout-bg": m
|
|
1115
1113
|
};
|
|
1116
|
-
return r.length === 0 ? null : /* @__PURE__ */ n.jsxs("div", { className:
|
|
1117
|
-
r.map((
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
const M = v.wrapper;
|
|
1114
|
+
return r.length === 0 ? null : /* @__PURE__ */ n.jsxs("div", { className: g, ref: p, style: y, children: [
|
|
1115
|
+
r.map((C, v) => {
|
|
1116
|
+
if (C.wrapper) {
|
|
1117
|
+
const x = C.wrapper;
|
|
1121
1118
|
return /* @__PURE__ */ n.jsx(
|
|
1122
1119
|
"div",
|
|
1123
1120
|
{
|
|
1124
1121
|
style: {
|
|
1125
|
-
|
|
1126
|
-
clipPath: C && !s ? void 0 : `url(#${h})`,
|
|
1127
|
-
marginRight: p
|
|
1122
|
+
marginRight: f
|
|
1128
1123
|
},
|
|
1129
|
-
children: /* @__PURE__ */ n.jsx(
|
|
1124
|
+
children: /* @__PURE__ */ n.jsx(x, { children: /* @__PURE__ */ n.jsx(Ze, { size: a, shape: i, ...C }) })
|
|
1130
1125
|
},
|
|
1131
|
-
Je(
|
|
1126
|
+
Je(C) + v
|
|
1132
1127
|
);
|
|
1133
1128
|
}
|
|
1134
1129
|
return /* @__PURE__ */ n.jsx(
|
|
1135
1130
|
"div",
|
|
1136
1131
|
{
|
|
1137
1132
|
style: {
|
|
1138
|
-
|
|
1139
|
-
clipPath: C && !s ? void 0 : `url(#${h})`,
|
|
1140
|
-
marginRight: p
|
|
1133
|
+
marginRight: f
|
|
1141
1134
|
},
|
|
1142
|
-
children: /* @__PURE__ */ n.jsx(Ze, { size: a, shape: i, ...
|
|
1135
|
+
children: /* @__PURE__ */ n.jsx(Ze, { size: a, shape: i, ...C })
|
|
1143
1136
|
},
|
|
1144
|
-
Je(
|
|
1137
|
+
Je(C) + v
|
|
1145
1138
|
);
|
|
1146
1139
|
}),
|
|
1147
|
-
|
|
1140
|
+
o > 0 && /* @__PURE__ */ n.jsx("div", { style: { marginRight: f }, children: /* @__PURE__ */ n.jsx(
|
|
1148
1141
|
Ze,
|
|
1149
1142
|
{
|
|
1150
1143
|
size: a,
|
|
1151
1144
|
shape: i,
|
|
1152
|
-
icon: () =>
|
|
1145
|
+
icon: () => ja(o),
|
|
1153
1146
|
colorScheme: "gray",
|
|
1154
1147
|
variant: "light",
|
|
1155
1148
|
...l
|
|
1156
1149
|
}
|
|
1157
1150
|
) })
|
|
1158
1151
|
] });
|
|
1159
|
-
},
|
|
1152
|
+
}, Wi = Object.assign(Ze, {
|
|
1160
1153
|
Group: Va
|
|
1161
1154
|
}), Ga = "_wrapper_ecbsu_5", Ya = "_badge__container_ecbsu_6", Za = "_badge__content_ecbsu_7", Xa = "_interactive_ecbsu_20", Ja = "_disabled_ecbsu_21", Ka = "_icon_ecbsu_22", ye = {
|
|
1162
1155
|
wrapper: Ga,
|
|
@@ -1199,50 +1192,50 @@ const Ha = 2, Va = (e) => {
|
|
|
1199
1192
|
}, Qa = K((e, r) => {
|
|
1200
1193
|
const {
|
|
1201
1194
|
icon: a,
|
|
1202
|
-
children:
|
|
1195
|
+
children: s,
|
|
1203
1196
|
variant: i = "filled",
|
|
1204
|
-
label:
|
|
1197
|
+
label: o,
|
|
1205
1198
|
isHidden: l = !1,
|
|
1206
1199
|
colorScheme: c = "red",
|
|
1207
1200
|
size: _ = 20,
|
|
1208
|
-
position:
|
|
1209
|
-
positionOffset:
|
|
1201
|
+
position: f = "top-right",
|
|
1202
|
+
positionOffset: p = { x: 0, y: 0 },
|
|
1210
1203
|
cutoutBackground: h,
|
|
1211
1204
|
isDisabled: m,
|
|
1212
|
-
className:
|
|
1205
|
+
className: g,
|
|
1213
1206
|
"data-testid": y = "badge",
|
|
1214
|
-
...
|
|
1215
|
-
} = e, { onClick:
|
|
1216
|
-
|
|
1207
|
+
...C
|
|
1208
|
+
} = e, { onClick: v, onPointerDown: x } = C, { ref: u, bgColor: w } = ft(), j = h || w, E = !m && (!!v || !!x), I = je(ye.badge__container, ye[`position-${f}`]), A = je(
|
|
1209
|
+
g,
|
|
1217
1210
|
ye.badge__content,
|
|
1218
1211
|
ye[`color-${c}`],
|
|
1219
1212
|
ye[`variant-${i}`],
|
|
1220
1213
|
{
|
|
1221
1214
|
[ye.disabled]: m,
|
|
1222
1215
|
[ye.icon]: !!a,
|
|
1223
|
-
[ye.interactive]:
|
|
1216
|
+
[ye.interactive]: E
|
|
1224
1217
|
}
|
|
1225
|
-
),
|
|
1218
|
+
), D = {
|
|
1226
1219
|
"--badge-height": `${_}px`,
|
|
1227
|
-
"--badge-offset-x": `${
|
|
1228
|
-
"--badge-offset-y": `${
|
|
1229
|
-
...
|
|
1220
|
+
"--badge-offset-x": `${p.x}px`,
|
|
1221
|
+
"--badge-offset-y": `${p.y}px`,
|
|
1222
|
+
...j && { "--badge-cutout-bg": j },
|
|
1230
1223
|
...i === "transparent" && { "--badge-cutout-bg": "transparent" }
|
|
1231
|
-
}, U = (a == null ? void 0 : a({})) ||
|
|
1232
|
-
|
|
1224
|
+
}, U = (a == null ? void 0 : a({})) || o, q = (O) => {
|
|
1225
|
+
E && (v == null || v(O));
|
|
1233
1226
|
};
|
|
1234
|
-
return /* @__PURE__ */ n.jsxs("div", { className: ye.wrapper, ref:
|
|
1235
|
-
|
|
1227
|
+
return /* @__PURE__ */ n.jsxs("div", { className: ye.wrapper, ref: u, "data-testid": y + "-wrapper", children: [
|
|
1228
|
+
s,
|
|
1236
1229
|
!l && /* @__PURE__ */ n.jsx(
|
|
1237
1230
|
"span",
|
|
1238
1231
|
{
|
|
1239
1232
|
className: I,
|
|
1240
|
-
style:
|
|
1233
|
+
style: D,
|
|
1241
1234
|
"data-testid": y + "-container",
|
|
1242
1235
|
children: /* @__PURE__ */ n.jsx(
|
|
1243
1236
|
"span",
|
|
1244
1237
|
{
|
|
1245
|
-
...
|
|
1238
|
+
...C,
|
|
1246
1239
|
onClick: q,
|
|
1247
1240
|
className: A,
|
|
1248
1241
|
"data-testid": y + "-content",
|
|
@@ -1258,7 +1251,7 @@ const Ha = 2, Va = (e) => {
|
|
|
1258
1251
|
container: en,
|
|
1259
1252
|
image: tn,
|
|
1260
1253
|
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", _n = "_contrast_isv17_43", pn = "_container_isv17_47", fn = "_overlay_isv17_57",
|
|
1254
|
+
}, 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", _n = "_contrast_isv17_43", pn = "_container_isv17_47", fn = "_overlay_isv17_57", Fe = {
|
|
1262
1255
|
loader: an,
|
|
1263
1256
|
spin: nn,
|
|
1264
1257
|
accent: sn,
|
|
@@ -1280,14 +1273,14 @@ const Ha = 2, Va = (e) => {
|
|
|
1280
1273
|
size: e = 24,
|
|
1281
1274
|
variant: r = "accent",
|
|
1282
1275
|
className: a,
|
|
1283
|
-
"data-testid":
|
|
1276
|
+
"data-testid": s = "loader",
|
|
1284
1277
|
style: i,
|
|
1285
|
-
...
|
|
1278
|
+
...o
|
|
1286
1279
|
}, l) => {
|
|
1287
|
-
const c =
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1280
|
+
const c = je(
|
|
1281
|
+
Fe.loader,
|
|
1282
|
+
Fe[r],
|
|
1283
|
+
Fe[`size-${e}`],
|
|
1291
1284
|
a
|
|
1292
1285
|
);
|
|
1293
1286
|
return /* @__PURE__ */ n.jsx(
|
|
@@ -1298,9 +1291,9 @@ const Ha = 2, Va = (e) => {
|
|
|
1298
1291
|
fill: "none",
|
|
1299
1292
|
viewBox: "0 0 16 16",
|
|
1300
1293
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1301
|
-
"data-testid":
|
|
1294
|
+
"data-testid": s,
|
|
1302
1295
|
style: i,
|
|
1303
|
-
...
|
|
1296
|
+
...o,
|
|
1304
1297
|
children: /* @__PURE__ */ n.jsx(
|
|
1305
1298
|
"path",
|
|
1306
1299
|
{
|
|
@@ -1313,28 +1306,28 @@ const Ha = 2, Va = (e) => {
|
|
|
1313
1306
|
}
|
|
1314
1307
|
);
|
|
1315
1308
|
}
|
|
1316
|
-
),
|
|
1309
|
+
), gn = K((e, r) => {
|
|
1317
1310
|
const {
|
|
1318
1311
|
loading: a = !1,
|
|
1319
|
-
size:
|
|
1312
|
+
size: s = 24,
|
|
1320
1313
|
variant: i = "accent",
|
|
1321
|
-
children:
|
|
1314
|
+
children: o,
|
|
1322
1315
|
className: l,
|
|
1323
1316
|
style: c,
|
|
1324
1317
|
"data-testid": _,
|
|
1325
|
-
...
|
|
1326
|
-
} = e,
|
|
1327
|
-
return /* @__PURE__ */ n.jsxs("div", { ref: r, className:
|
|
1328
|
-
|
|
1329
|
-
a && /* @__PURE__ */ n.jsx("div", { className:
|
|
1318
|
+
...f
|
|
1319
|
+
} = e, p = je(Fe.container, l);
|
|
1320
|
+
return /* @__PURE__ */ n.jsxs("div", { ref: r, className: p, style: c, "data-testid": _, ...f, children: [
|
|
1321
|
+
o,
|
|
1322
|
+
a && /* @__PURE__ */ n.jsx("div", { className: Fe.overlay, children: /* @__PURE__ */ n.jsx(Zt, { size: s, variant: i, "data-testid": `${_}-spinner` }) })
|
|
1330
1323
|
] });
|
|
1331
1324
|
}), bn = K((e, r) => e.children ? /* @__PURE__ */ n.jsx(
|
|
1332
|
-
|
|
1325
|
+
gn,
|
|
1333
1326
|
{
|
|
1334
1327
|
ref: r,
|
|
1335
1328
|
...e
|
|
1336
1329
|
}
|
|
1337
|
-
) : /* @__PURE__ */ n.jsx(Zt, { ref: r, ...e })),
|
|
1330
|
+
) : /* @__PURE__ */ n.jsx(Zt, { ref: r, ...e })), hn = ({ width: e = 48, height: r = 48, className: a, "data-testid": s }) => /* @__PURE__ */ n.jsx(
|
|
1338
1331
|
"svg",
|
|
1339
1332
|
{
|
|
1340
1333
|
width: e,
|
|
@@ -1343,7 +1336,7 @@ const Ha = 2, Va = (e) => {
|
|
|
1343
1336
|
fill: "none",
|
|
1344
1337
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1345
1338
|
className: a,
|
|
1346
|
-
"data-testid":
|
|
1339
|
+
"data-testid": s,
|
|
1347
1340
|
children: /* @__PURE__ */ n.jsx(
|
|
1348
1341
|
"path",
|
|
1349
1342
|
{
|
|
@@ -1355,57 +1348,57 @@ const Ha = 2, Va = (e) => {
|
|
|
1355
1348
|
}
|
|
1356
1349
|
)
|
|
1357
1350
|
}
|
|
1358
|
-
),
|
|
1351
|
+
), Hi = K((e, r) => {
|
|
1359
1352
|
const {
|
|
1360
1353
|
alt: a = "",
|
|
1361
|
-
loading:
|
|
1354
|
+
loading: s = "lazy",
|
|
1362
1355
|
src: i,
|
|
1363
|
-
isLoading:
|
|
1356
|
+
isLoading: o = !1,
|
|
1364
1357
|
className: l,
|
|
1365
1358
|
"data-testid": c = "image",
|
|
1366
1359
|
onError: _,
|
|
1367
|
-
onLoad:
|
|
1368
|
-
...
|
|
1369
|
-
} = e, [h, m] = de("loading"),
|
|
1360
|
+
onLoad: f,
|
|
1361
|
+
...p
|
|
1362
|
+
} = e, [h, m] = de("loading"), g = h === "error", y = (o || h === "loading") && !g, C = h === "loaded" && !o, v = je(
|
|
1370
1363
|
lt.image,
|
|
1371
1364
|
{
|
|
1372
1365
|
[lt.loading]: y
|
|
1373
1366
|
},
|
|
1374
1367
|
l
|
|
1375
|
-
),
|
|
1376
|
-
(
|
|
1377
|
-
m("loaded"),
|
|
1368
|
+
), x = Se(
|
|
1369
|
+
(j) => {
|
|
1370
|
+
m("loaded"), f == null || f(j);
|
|
1378
1371
|
},
|
|
1379
|
-
[
|
|
1380
|
-
),
|
|
1381
|
-
(
|
|
1382
|
-
m("error"), _ == null || _(
|
|
1372
|
+
[f]
|
|
1373
|
+
), u = Se(
|
|
1374
|
+
(j) => {
|
|
1375
|
+
m("error"), _ == null || _(j);
|
|
1383
1376
|
},
|
|
1384
1377
|
[_]
|
|
1385
1378
|
), w = {
|
|
1386
|
-
loader: /* @__PURE__ */ n.jsxs(
|
|
1379
|
+
loader: /* @__PURE__ */ n.jsxs(Oe, { children: [
|
|
1387
1380
|
/* @__PURE__ */ n.jsx(bn, { size: 48, variant: "special", "data-testid": `${c}-loader` }),
|
|
1388
1381
|
/* @__PURE__ */ n.jsx(
|
|
1389
1382
|
"img",
|
|
1390
1383
|
{
|
|
1391
1384
|
alt: a,
|
|
1392
1385
|
src: i,
|
|
1393
|
-
onLoad:
|
|
1394
|
-
onError:
|
|
1386
|
+
onLoad: x,
|
|
1387
|
+
onError: u,
|
|
1395
1388
|
style: { display: "none" }
|
|
1396
1389
|
}
|
|
1397
1390
|
)
|
|
1398
1391
|
] }),
|
|
1399
|
-
error: /* @__PURE__ */ n.jsx(
|
|
1392
|
+
error: /* @__PURE__ */ n.jsx(hn, { "data-testid": `${c}-fallback` }),
|
|
1400
1393
|
image: /* @__PURE__ */ n.jsx(
|
|
1401
1394
|
"img",
|
|
1402
1395
|
{
|
|
1403
1396
|
ref: r,
|
|
1404
1397
|
alt: a,
|
|
1405
1398
|
"data-testid": c,
|
|
1406
|
-
loading:
|
|
1399
|
+
loading: s,
|
|
1407
1400
|
src: i,
|
|
1408
|
-
className:
|
|
1401
|
+
className: v
|
|
1409
1402
|
}
|
|
1410
1403
|
)
|
|
1411
1404
|
};
|
|
@@ -1415,10 +1408,10 @@ const Ha = 2, Va = (e) => {
|
|
|
1415
1408
|
return;
|
|
1416
1409
|
}
|
|
1417
1410
|
m("loading");
|
|
1418
|
-
}, [i]), /* @__PURE__ */ n.jsxs("div", { className: lt.container, "data-testid": `${c}-container`, ...
|
|
1411
|
+
}, [i]), /* @__PURE__ */ n.jsxs("div", { className: lt.container, "data-testid": `${c}-container`, ...p, children: [
|
|
1419
1412
|
y && w.loader,
|
|
1420
|
-
|
|
1421
|
-
|
|
1413
|
+
g && w.error,
|
|
1414
|
+
C && w.image
|
|
1422
1415
|
] });
|
|
1423
1416
|
}), mn = {}, Xt = Gt({
|
|
1424
1417
|
locale: mn
|
|
@@ -1427,36 +1420,36 @@ const Ha = 2, Va = (e) => {
|
|
|
1427
1420
|
if (!e)
|
|
1428
1421
|
throw new Error("useConfig must be used within a ConfigProvider");
|
|
1429
1422
|
return e;
|
|
1430
|
-
},
|
|
1423
|
+
}, Vi = () => {
|
|
1431
1424
|
const { locale: e } = yn();
|
|
1432
1425
|
return e;
|
|
1433
|
-
}, vn = {}, xn = {}, wn = {},
|
|
1426
|
+
}, vn = {}, xn = {}, wn = {}, Gi = ({
|
|
1434
1427
|
locale: e = {},
|
|
1435
1428
|
theme: r,
|
|
1436
1429
|
children: a,
|
|
1437
|
-
className:
|
|
1438
|
-
}) => (
|
|
1430
|
+
className: s
|
|
1431
|
+
}) => (Lr(() => {
|
|
1439
1432
|
if (r) {
|
|
1440
1433
|
const i = document.documentElement;
|
|
1441
|
-
Object.entries(r).forEach(([
|
|
1442
|
-
i.style.setProperty(
|
|
1434
|
+
Object.entries(r).forEach(([o, l]) => {
|
|
1435
|
+
i.style.setProperty(o, l);
|
|
1443
1436
|
});
|
|
1444
1437
|
}
|
|
1445
|
-
}, [r]), /* @__PURE__ */ n.jsxs(
|
|
1438
|
+
}, [r]), /* @__PURE__ */ n.jsxs(Oe, { children: [
|
|
1446
1439
|
/* @__PURE__ */ n.jsx(
|
|
1447
1440
|
"div",
|
|
1448
1441
|
{
|
|
1449
1442
|
"data-testid": "ConfigProvider-component",
|
|
1450
|
-
className: k(vn, xn, wn,
|
|
1443
|
+
className: k(vn, xn, wn, s)
|
|
1451
1444
|
}
|
|
1452
1445
|
),
|
|
1453
1446
|
/* @__PURE__ */ n.jsx(Xt.Provider, { value: { locale: e }, children: a })
|
|
1454
|
-
] })),
|
|
1447
|
+
] })), Yi = {}, Cn = "_tag_1llsi_1", Sn = "_label_1llsi_16", jn = "_iconWrapper_1llsi_20", Ln = "_medium_1llsi_27", En = "_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
1448
|
tag: Cn,
|
|
1456
1449
|
label: Sn,
|
|
1457
|
-
iconWrapper:
|
|
1458
|
-
medium:
|
|
1459
|
-
large:
|
|
1450
|
+
iconWrapper: jn,
|
|
1451
|
+
medium: Ln,
|
|
1452
|
+
large: En,
|
|
1460
1453
|
disabled: kn,
|
|
1461
1454
|
neutral: Mn,
|
|
1462
1455
|
positive: In,
|
|
@@ -1465,49 +1458,49 @@ const Ha = 2, Va = (e) => {
|
|
|
1465
1458
|
vivid: Rn,
|
|
1466
1459
|
special: Nn,
|
|
1467
1460
|
accent: An,
|
|
1468
|
-
blue:
|
|
1469
|
-
lovely:
|
|
1470
|
-
dreamy:
|
|
1471
|
-
},
|
|
1461
|
+
blue: Dn,
|
|
1462
|
+
lovely: On,
|
|
1463
|
+
dreamy: Pn
|
|
1464
|
+
}, Zi = K((e, r) => {
|
|
1472
1465
|
const {
|
|
1473
1466
|
className: a,
|
|
1474
|
-
children:
|
|
1467
|
+
children: s,
|
|
1475
1468
|
componentStyle: i = "neutral",
|
|
1476
|
-
size:
|
|
1469
|
+
size: o = "medium",
|
|
1477
1470
|
disabled: l = !1,
|
|
1478
|
-
showLabel: c = !!
|
|
1471
|
+
showLabel: c = !!s,
|
|
1479
1472
|
slotStart: _,
|
|
1480
|
-
slotEnd:
|
|
1481
|
-
slotStartWrapperProps:
|
|
1473
|
+
slotEnd: f,
|
|
1474
|
+
slotStartWrapperProps: p = {},
|
|
1482
1475
|
slotEndWrapperProps: h = {},
|
|
1483
1476
|
"data-testid": m
|
|
1484
|
-
} = e, { className:
|
|
1477
|
+
} = e, { className: g, ...y } = p, { className: C, ...v } = h;
|
|
1485
1478
|
return /* @__PURE__ */ n.jsxs(
|
|
1486
1479
|
"div",
|
|
1487
1480
|
{
|
|
1488
1481
|
className: k(
|
|
1489
1482
|
ke.tag,
|
|
1490
|
-
ke[
|
|
1483
|
+
ke[o],
|
|
1491
1484
|
ke[i],
|
|
1492
1485
|
{
|
|
1493
1486
|
[ke.disabled]: l,
|
|
1494
|
-
[ce["typography-label-3-regular"]]:
|
|
1495
|
-
[ce["typography-subtitle-1-semibold"]]:
|
|
1487
|
+
[ce["typography-label-3-regular"]]: o === "medium",
|
|
1488
|
+
[ce["typography-subtitle-1-semibold"]]: o === "large"
|
|
1496
1489
|
},
|
|
1497
1490
|
a
|
|
1498
1491
|
),
|
|
1499
1492
|
"data-testid": m || "tag-component",
|
|
1500
1493
|
ref: r,
|
|
1501
1494
|
children: [
|
|
1502
|
-
_ && /* @__PURE__ */ n.jsx("span", { className: k([ke.iconWrapper,
|
|
1503
|
-
c && /* @__PURE__ */ n.jsx("span", { className: k([ke.label]), children:
|
|
1504
|
-
|
|
1495
|
+
_ && /* @__PURE__ */ n.jsx("span", { className: k([ke.iconWrapper, g]), ...y, children: _ }),
|
|
1496
|
+
c && /* @__PURE__ */ n.jsx("span", { className: k([ke.label]), children: s }),
|
|
1497
|
+
f && /* @__PURE__ */ n.jsx("span", { className: k([ke.iconWrapper, C]), ...v, children: f })
|
|
1505
1498
|
]
|
|
1506
1499
|
}
|
|
1507
1500
|
);
|
|
1508
|
-
}),
|
|
1509
|
-
checkbox:
|
|
1510
|
-
input:
|
|
1501
|
+
}), 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 = {
|
|
1502
|
+
checkbox: Bn,
|
|
1503
|
+
input: zn,
|
|
1511
1504
|
icon: Un,
|
|
1512
1505
|
container: Fn,
|
|
1513
1506
|
error: qn,
|
|
@@ -1519,7 +1512,7 @@ const Ha = 2, Va = (e) => {
|
|
|
1519
1512
|
width: e = 12,
|
|
1520
1513
|
height: r = 9,
|
|
1521
1514
|
className: a = "",
|
|
1522
|
-
color:
|
|
1515
|
+
color: s = "currentColor",
|
|
1523
1516
|
...i
|
|
1524
1517
|
}) => /* @__PURE__ */ n.jsx(
|
|
1525
1518
|
"svg",
|
|
@@ -1537,7 +1530,7 @@ const Ha = 2, Va = (e) => {
|
|
|
1537
1530
|
fillRule: "evenodd",
|
|
1538
1531
|
clipRule: "evenodd",
|
|
1539
1532
|
d: "M13.0001 2.49999C13.3906 2.10946 13.3906 1.4763 13.0001 1.08578C12.6095 0.695251 11.9764 0.695251 11.5859 1.08578L5.29296 7.37867L2.00007 4.08578C1.60954 3.69525 0.976378 3.69525 0.585855 4.08578C0.19533 4.4763 0.19533 5.10946 0.585855 5.49999L4.58585 9.49999C4.97638 9.89051 5.60954 9.89051 6.00007 9.49999L13.0001 2.49999Z",
|
|
1540
|
-
fill:
|
|
1533
|
+
fill: s
|
|
1541
1534
|
}
|
|
1542
1535
|
)
|
|
1543
1536
|
}
|
|
@@ -1545,7 +1538,7 @@ const Ha = 2, Va = (e) => {
|
|
|
1545
1538
|
width: e = 12,
|
|
1546
1539
|
height: r = 2,
|
|
1547
1540
|
className: a = "",
|
|
1548
|
-
color:
|
|
1541
|
+
color: s = "currentColor",
|
|
1549
1542
|
...i
|
|
1550
1543
|
}) => /* @__PURE__ */ n.jsx(
|
|
1551
1544
|
"svg",
|
|
@@ -1563,7 +1556,7 @@ const Ha = 2, Va = (e) => {
|
|
|
1563
1556
|
fillRule: "evenodd",
|
|
1564
1557
|
clipRule: "evenodd",
|
|
1565
1558
|
d: "M0 1C0 0.447715 0.447715 0 1 0H11C11.5523 0 12 0.447715 12 1C12 1.55228 11.5523 2 11 2H1C0.447715 2 0 1.55228 0 1Z",
|
|
1566
|
-
fill:
|
|
1559
|
+
fill: s
|
|
1567
1560
|
}
|
|
1568
1561
|
)
|
|
1569
1562
|
}
|
|
@@ -1574,10 +1567,10 @@ const Ha = 2, Va = (e) => {
|
|
|
1574
1567
|
size: e,
|
|
1575
1568
|
isChecked: r,
|
|
1576
1569
|
isDisabled: a,
|
|
1577
|
-
indeterminate:
|
|
1570
|
+
indeterminate: s,
|
|
1578
1571
|
dataTestId: i
|
|
1579
1572
|
}) => {
|
|
1580
|
-
const { width:
|
|
1573
|
+
const { width: o, height: l } = Xn[e];
|
|
1581
1574
|
return /* @__PURE__ */ n.jsx(
|
|
1582
1575
|
"div",
|
|
1583
1576
|
{
|
|
@@ -1585,44 +1578,44 @@ const Ha = 2, Va = (e) => {
|
|
|
1585
1578
|
"data-testid": `${i}-icon`,
|
|
1586
1579
|
"data-checked": r,
|
|
1587
1580
|
"data-disabled": a,
|
|
1588
|
-
"data-indeterminate":
|
|
1589
|
-
children:
|
|
1581
|
+
"data-indeterminate": s,
|
|
1582
|
+
children: s ? /* @__PURE__ */ n.jsx(Zn, { width: o, height: l }) : /* @__PURE__ */ n.jsx(Yn, { width: o, height: l })
|
|
1590
1583
|
}
|
|
1591
1584
|
);
|
|
1592
|
-
},
|
|
1585
|
+
}, Xi = K((e, r) => {
|
|
1593
1586
|
const {
|
|
1594
1587
|
name: a,
|
|
1595
|
-
value:
|
|
1588
|
+
value: s,
|
|
1596
1589
|
size: i = "medium",
|
|
1597
|
-
indeterminate:
|
|
1590
|
+
indeterminate: o = !1,
|
|
1598
1591
|
loading: l = !1,
|
|
1599
1592
|
error: c,
|
|
1600
1593
|
disabled: _ = !1,
|
|
1601
|
-
containerClassName:
|
|
1602
|
-
className:
|
|
1594
|
+
containerClassName: f,
|
|
1595
|
+
className: p,
|
|
1603
1596
|
containerStyle: h,
|
|
1604
1597
|
style: m,
|
|
1605
|
-
children:
|
|
1598
|
+
children: g,
|
|
1606
1599
|
clickableLabel: y = !0,
|
|
1607
|
-
tabIndex:
|
|
1608
|
-
onChange:
|
|
1609
|
-
"data-testid":
|
|
1610
|
-
} = e, [
|
|
1600
|
+
tabIndex: C,
|
|
1601
|
+
onChange: v,
|
|
1602
|
+
"data-testid": x = "checkbox"
|
|
1603
|
+
} = e, [u, w] = de(!1), j = s ?? u, M = _ || l, E = !!c, I = j || o, A = k(xe.container, xe[i], f), D = k(
|
|
1611
1604
|
xe.checkbox,
|
|
1612
1605
|
xe[i],
|
|
1613
1606
|
{
|
|
1614
|
-
[xe.error]:
|
|
1607
|
+
[xe.error]: E
|
|
1615
1608
|
},
|
|
1616
|
-
|
|
1609
|
+
p
|
|
1617
1610
|
), U = (T) => {
|
|
1618
|
-
M || (w(T.target.checked),
|
|
1611
|
+
M || (w(T.target.checked), v == null || v(T.target.checked, T));
|
|
1619
1612
|
}, q = (T) => {
|
|
1620
1613
|
if (T.key === "Enter" && !M) {
|
|
1621
1614
|
T.preventDefault();
|
|
1622
|
-
const
|
|
1623
|
-
w(
|
|
1615
|
+
const B = !I;
|
|
1616
|
+
w(B), v == null || v(B);
|
|
1624
1617
|
}
|
|
1625
|
-
},
|
|
1618
|
+
}, O = (T) => {
|
|
1626
1619
|
y || T.preventDefault();
|
|
1627
1620
|
}, S = (T) => T.stopPropagation();
|
|
1628
1621
|
return /* @__PURE__ */ n.jsxs(
|
|
@@ -1631,21 +1624,21 @@ const Ha = 2, Va = (e) => {
|
|
|
1631
1624
|
className: A,
|
|
1632
1625
|
htmlFor: a,
|
|
1633
1626
|
style: h,
|
|
1634
|
-
"data-testid":
|
|
1627
|
+
"data-testid": x,
|
|
1635
1628
|
"data-clickable-label": y,
|
|
1636
1629
|
children: [
|
|
1637
1630
|
/* @__PURE__ */ n.jsx("div", { className: xe.checkboxWrapper, children: /* @__PURE__ */ n.jsxs(
|
|
1638
1631
|
"div",
|
|
1639
1632
|
{
|
|
1640
|
-
tabIndex:
|
|
1641
|
-
className:
|
|
1633
|
+
tabIndex: C || 0,
|
|
1634
|
+
className: D,
|
|
1642
1635
|
style: m,
|
|
1643
1636
|
onKeyDown: q,
|
|
1644
1637
|
"aria-checked": I,
|
|
1645
1638
|
"aria-disabled": M,
|
|
1646
|
-
"aria-invalid":
|
|
1639
|
+
"aria-invalid": E,
|
|
1647
1640
|
"aria-describedby": c ? `${a}-error` : void 0,
|
|
1648
|
-
"data-testid": `${
|
|
1641
|
+
"data-testid": `${x}-label`,
|
|
1649
1642
|
children: [
|
|
1650
1643
|
/* @__PURE__ */ n.jsx(
|
|
1651
1644
|
"input",
|
|
@@ -1660,9 +1653,9 @@ const Ha = 2, Va = (e) => {
|
|
|
1660
1653
|
onChange: U,
|
|
1661
1654
|
onClick: S,
|
|
1662
1655
|
"aria-checked": I,
|
|
1663
|
-
"aria-invalid":
|
|
1656
|
+
"aria-invalid": E,
|
|
1664
1657
|
"aria-describedby": c ? `${a}-error` : void 0,
|
|
1665
|
-
"data-testid": `${
|
|
1658
|
+
"data-testid": `${x}-input`
|
|
1666
1659
|
}
|
|
1667
1660
|
),
|
|
1668
1661
|
/* @__PURE__ */ n.jsx(
|
|
@@ -1672,27 +1665,27 @@ const Ha = 2, Va = (e) => {
|
|
|
1672
1665
|
size: i,
|
|
1673
1666
|
isChecked: I,
|
|
1674
1667
|
isDisabled: M,
|
|
1675
|
-
indeterminate:
|
|
1676
|
-
dataTestId:
|
|
1668
|
+
indeterminate: o,
|
|
1669
|
+
dataTestId: x
|
|
1677
1670
|
}
|
|
1678
1671
|
)
|
|
1679
1672
|
]
|
|
1680
1673
|
}
|
|
1681
1674
|
) }),
|
|
1682
|
-
|
|
1675
|
+
g && /* @__PURE__ */ n.jsx(
|
|
1683
1676
|
"span",
|
|
1684
1677
|
{
|
|
1685
|
-
"data-testid": `${
|
|
1678
|
+
"data-testid": `${x}-label-text`,
|
|
1686
1679
|
"data-clickable-label": y,
|
|
1687
1680
|
className: xe.label,
|
|
1688
|
-
onClick:
|
|
1689
|
-
children:
|
|
1681
|
+
onClick: O,
|
|
1682
|
+
children: g
|
|
1690
1683
|
}
|
|
1691
1684
|
)
|
|
1692
1685
|
]
|
|
1693
1686
|
}
|
|
1694
1687
|
);
|
|
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",
|
|
1688
|
+
}), 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
1689
|
typography: Kn,
|
|
1697
1690
|
disabled: Qn,
|
|
1698
1691
|
primary: es,
|
|
@@ -1716,82 +1709,82 @@ const Ha = 2, Va = (e) => {
|
|
|
1716
1709
|
3: "h3",
|
|
1717
1710
|
4: "h4",
|
|
1718
1711
|
5: "h5"
|
|
1719
|
-
},
|
|
1712
|
+
}, Pt = (e) => {
|
|
1720
1713
|
const r = Vt.forwardRef(
|
|
1721
1714
|
({
|
|
1722
1715
|
size: a = 3,
|
|
1723
|
-
children:
|
|
1716
|
+
children: s,
|
|
1724
1717
|
className: i,
|
|
1725
|
-
"data-testid":
|
|
1718
|
+
"data-testid": o,
|
|
1726
1719
|
as: l,
|
|
1727
1720
|
fontWeight: c = "semibold",
|
|
1728
1721
|
disabled: _ = !1,
|
|
1729
|
-
typographyStyle:
|
|
1730
|
-
...
|
|
1722
|
+
typographyStyle: f = "primary",
|
|
1723
|
+
...p
|
|
1731
1724
|
}, h) => {
|
|
1732
|
-
const m = l || cs[a],
|
|
1733
|
-
|
|
1725
|
+
const m = l || cs[a], g = k(
|
|
1726
|
+
Pe.typography,
|
|
1734
1727
|
ce[`typography-${e}-${a}-${c}`],
|
|
1735
|
-
|
|
1728
|
+
Pe[f],
|
|
1736
1729
|
{
|
|
1737
|
-
[
|
|
1730
|
+
[Pe.disabled]: _
|
|
1738
1731
|
},
|
|
1739
1732
|
i
|
|
1740
1733
|
);
|
|
1741
|
-
return
|
|
1734
|
+
return s ? /* @__PURE__ */ n.jsx(m, { ref: h, className: g, "data-testid": o, ...p, children: s }) : null;
|
|
1742
1735
|
}
|
|
1743
1736
|
);
|
|
1744
1737
|
return r.displayName = `Typography.${e === "title" ? "Title" : "Subtitle"}`, r;
|
|
1745
|
-
},
|
|
1738
|
+
}, Bt = (e) => {
|
|
1746
1739
|
const r = Vt.forwardRef(
|
|
1747
1740
|
({
|
|
1748
1741
|
size: a = 3,
|
|
1749
|
-
children:
|
|
1742
|
+
children: s,
|
|
1750
1743
|
className: i,
|
|
1751
|
-
"data-testid":
|
|
1744
|
+
"data-testid": o,
|
|
1752
1745
|
as: l = "p",
|
|
1753
1746
|
fontWeight: c = "regular",
|
|
1754
1747
|
disabled: _ = !1,
|
|
1755
|
-
typographyStyle:
|
|
1756
|
-
...
|
|
1748
|
+
typographyStyle: f = "primary",
|
|
1749
|
+
...p
|
|
1757
1750
|
}, h) => {
|
|
1758
|
-
const m = l,
|
|
1759
|
-
|
|
1751
|
+
const m = l, g = k(
|
|
1752
|
+
Pe.typography,
|
|
1760
1753
|
ce[`typography-${e}-${a}-${c}`],
|
|
1761
|
-
|
|
1754
|
+
Pe[f],
|
|
1762
1755
|
{
|
|
1763
|
-
[
|
|
1756
|
+
[Pe.disabled]: _
|
|
1764
1757
|
},
|
|
1765
1758
|
i
|
|
1766
1759
|
);
|
|
1767
|
-
return
|
|
1760
|
+
return s ? /* @__PURE__ */ n.jsx(
|
|
1768
1761
|
m,
|
|
1769
1762
|
{
|
|
1770
1763
|
ref: h,
|
|
1771
|
-
className:
|
|
1772
|
-
"data-testid":
|
|
1773
|
-
...
|
|
1774
|
-
children:
|
|
1764
|
+
className: g,
|
|
1765
|
+
"data-testid": o,
|
|
1766
|
+
...p,
|
|
1767
|
+
children: s
|
|
1775
1768
|
}
|
|
1776
1769
|
) : null;
|
|
1777
1770
|
}
|
|
1778
1771
|
);
|
|
1779
1772
|
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", _s = "_gripHandle_1q54n_172", ps = "_error_1q54n_238", fs = "_tabFocused_1q54n_245",
|
|
1773
|
+
}, zt = {
|
|
1774
|
+
Title: Pt("title"),
|
|
1775
|
+
Subtitle: Pt("subtitle"),
|
|
1776
|
+
Label: Bt("label"),
|
|
1777
|
+
Paragraph: Bt("paragraph")
|
|
1778
|
+
}, ds = "_inputBase_1q54n_82", us = "_wrapper_1q54n_92", _s = "_gripHandle_1q54n_172", ps = "_error_1q54n_238", fs = "_tabFocused_1q54n_245", gs = "_disabled_1q54n_270", bs = "_loading_1q54n_277", hs = "_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", js = "_filled_1q54n_462", Ls = "_medium_1q54n_503", Es = "_characterLimit_1q54n_545", ks = "_input_1q54n_82", Ms = "_textarea_1q54n_110", Is = "_truncate_1q54n_678", $s = "_hint_1q54n_765", N = {
|
|
1786
1779
|
inputBase: ds,
|
|
1787
1780
|
wrapper: us,
|
|
1788
1781
|
"textarea-wrapper": "_textarea-wrapper_1q54n_110",
|
|
1789
1782
|
gripHandle: _s,
|
|
1790
1783
|
error: ps,
|
|
1791
1784
|
tabFocused: fs,
|
|
1792
|
-
disabled:
|
|
1785
|
+
disabled: gs,
|
|
1793
1786
|
loading: bs,
|
|
1794
|
-
label:
|
|
1787
|
+
label: hs,
|
|
1795
1788
|
small: ms,
|
|
1796
1789
|
large: ys,
|
|
1797
1790
|
leftSection: vs,
|
|
@@ -1799,9 +1792,9 @@ const Ha = 2, Va = (e) => {
|
|
|
1799
1792
|
helper: ws,
|
|
1800
1793
|
floatingLabel: Cs,
|
|
1801
1794
|
focused: Ss,
|
|
1802
|
-
filled:
|
|
1803
|
-
medium:
|
|
1804
|
-
characterLimit:
|
|
1795
|
+
filled: js,
|
|
1796
|
+
medium: Ls,
|
|
1797
|
+
characterLimit: Es,
|
|
1805
1798
|
input: ks,
|
|
1806
1799
|
textarea: Ms,
|
|
1807
1800
|
"size-small": "_size-small_1q54n_627",
|
|
@@ -1817,7 +1810,7 @@ const Ha = 2, Va = (e) => {
|
|
|
1817
1810
|
width: e = 8,
|
|
1818
1811
|
height: r = 8,
|
|
1819
1812
|
className: a,
|
|
1820
|
-
color:
|
|
1813
|
+
color: s = "#AABBCA"
|
|
1821
1814
|
}) => /* @__PURE__ */ n.jsx(
|
|
1822
1815
|
"svg",
|
|
1823
1816
|
{
|
|
@@ -1833,7 +1826,7 @@ const Ha = 2, Va = (e) => {
|
|
|
1833
1826
|
fillRule: "evenodd",
|
|
1834
1827
|
clipRule: "evenodd",
|
|
1835
1828
|
d: "M6.10178 0.236172C6.41679 -0.0787239 6.93824 -0.0787239 7.25325 0.236172C7.56826 0.551067 7.56826 1.07227 7.25325 1.38717L1.38772 7.25074C1.22479 7.41362 1.01837 7.48963 0.811988 7.48963C0.605604 7.48963 0.399189 7.41362 0.236255 7.25074C-0.0787516 6.93584 -0.0787516 6.41464 0.236255 6.09974L6.10178 0.236172ZM6.61276 4.19954C6.92777 3.88464 7.44895 3.88464 7.76396 4.19954C8.07897 4.52529 8.07897 5.03564 7.76396 5.35053L5.35256 7.76111C5.18963 7.92399 4.98321 8 4.77683 8C4.57045 8 4.36403 7.92399 4.2011 7.76111C3.88609 7.44622 3.88609 6.92501 4.2011 6.61012L6.61276 4.19954Z",
|
|
1836
|
-
fill:
|
|
1829
|
+
fill: s
|
|
1837
1830
|
}
|
|
1838
1831
|
)
|
|
1839
1832
|
}
|
|
@@ -1841,13 +1834,13 @@ const Ha = 2, Va = (e) => {
|
|
|
1841
1834
|
className: e = "",
|
|
1842
1835
|
style: r,
|
|
1843
1836
|
size: a = "md",
|
|
1844
|
-
color:
|
|
1837
|
+
color: s = "currentColor",
|
|
1845
1838
|
onClick: i,
|
|
1846
|
-
...
|
|
1839
|
+
...o
|
|
1847
1840
|
}) => {
|
|
1848
1841
|
const c = {
|
|
1849
1842
|
display: "inline-block",
|
|
1850
|
-
color:
|
|
1843
|
+
color: s,
|
|
1851
1844
|
...{
|
|
1852
1845
|
xxxs: { width: "8px", height: "8px" },
|
|
1853
1846
|
xxs: { width: "12px", height: "12px" },
|
|
@@ -1867,7 +1860,7 @@ const Ha = 2, Va = (e) => {
|
|
|
1867
1860
|
fill: "none",
|
|
1868
1861
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1869
1862
|
onClick: i,
|
|
1870
|
-
...
|
|
1863
|
+
...o,
|
|
1871
1864
|
children: /* @__PURE__ */ n.jsx(
|
|
1872
1865
|
"path",
|
|
1873
1866
|
{
|
|
@@ -1881,96 +1874,96 @@ const Ha = 2, Va = (e) => {
|
|
|
1881
1874
|
}
|
|
1882
1875
|
);
|
|
1883
1876
|
}, Rs = (e, r) => {
|
|
1884
|
-
const a =
|
|
1877
|
+
const a = qe(null), s = qe(null);
|
|
1885
1878
|
return oe(() => {
|
|
1886
|
-
const i = r === "textarea" ? a.current :
|
|
1879
|
+
const i = r === "textarea" ? a.current : s.current;
|
|
1887
1880
|
i && i.value !== e && (i.value = e || "");
|
|
1888
1881
|
}, [e, r]), {
|
|
1889
1882
|
textareaRef: a,
|
|
1890
|
-
inputRef:
|
|
1891
|
-
currentRef: r === "textarea" ? a :
|
|
1883
|
+
inputRef: s,
|
|
1884
|
+
currentRef: r === "textarea" ? a : s
|
|
1892
1885
|
};
|
|
1893
1886
|
}, Ns = (e, r, a) => {
|
|
1894
|
-
const
|
|
1887
|
+
const s = () => {
|
|
1895
1888
|
if (!a.current || r !== "hug") return;
|
|
1896
1889
|
const i = a.current.scrollTop;
|
|
1897
1890
|
if (a.current.style.setProperty("height", "auto", "important"), !e) return;
|
|
1898
|
-
const
|
|
1899
|
-
a.current.style.setProperty("height",
|
|
1891
|
+
const o = a.current.scrollHeight + "px";
|
|
1892
|
+
a.current.style.setProperty("height", o, "important"), a.current.scrollTop = i;
|
|
1900
1893
|
const l = a.current.closest(`.${N.wrapper}`);
|
|
1901
1894
|
l && (l.setAttribute("data-resize", "hug"), l.setAttribute("data-show-grip", "false"));
|
|
1902
1895
|
};
|
|
1903
|
-
return oe(
|
|
1904
|
-
r === "hug" && a.current &&
|
|
1905
|
-
}, []), { resizeTextArea:
|
|
1906
|
-
}, As = (e, r, a,
|
|
1907
|
-
(
|
|
1908
|
-
if (!e || r || a || !(
|
|
1909
|
-
|
|
1910
|
-
const l =
|
|
1896
|
+
return oe(s, [e, r]), oe(() => {
|
|
1897
|
+
r === "hug" && a.current && s();
|
|
1898
|
+
}, []), { resizeTextArea: s };
|
|
1899
|
+
}, As = (e, r, a, s) => ({ handleGripMouseDown: Se(
|
|
1900
|
+
(o) => {
|
|
1901
|
+
if (!e || r || a || !(s === "fixed" || !s)) return;
|
|
1902
|
+
o.preventDefault(), o.stopPropagation();
|
|
1903
|
+
const l = o.currentTarget.closest(`.${N.wrapper}`);
|
|
1911
1904
|
if (!l) return;
|
|
1912
|
-
const c =
|
|
1913
|
-
const m = h.clientY - c,
|
|
1905
|
+
const c = o.clientY, _ = l.clientHeight, f = (h) => {
|
|
1906
|
+
const m = h.clientY - c, g = Math.min(100, _), y = Math.max(g, _ + m);
|
|
1914
1907
|
l.style.height = `${y}px`;
|
|
1915
|
-
},
|
|
1916
|
-
document.removeEventListener("mousemove",
|
|
1908
|
+
}, p = () => {
|
|
1909
|
+
document.removeEventListener("mousemove", f), document.removeEventListener("mouseup", p);
|
|
1917
1910
|
};
|
|
1918
|
-
document.addEventListener("mousemove",
|
|
1911
|
+
document.addEventListener("mousemove", f), document.addEventListener("mouseup", p);
|
|
1919
1912
|
},
|
|
1920
|
-
[e, r, a,
|
|
1921
|
-
) }), Ut = 30,
|
|
1913
|
+
[e, r, a, s]
|
|
1914
|
+
) }), Ut = 30, Ds = K(
|
|
1922
1915
|
({
|
|
1923
1916
|
component: e = "input",
|
|
1924
1917
|
size: r = "medium",
|
|
1925
1918
|
value: a = "",
|
|
1926
|
-
placeholder:
|
|
1919
|
+
placeholder: s,
|
|
1927
1920
|
disabled: i = !1,
|
|
1928
|
-
loading:
|
|
1921
|
+
loading: o = !1,
|
|
1929
1922
|
onFocus: l,
|
|
1930
1923
|
onBlur: c,
|
|
1931
1924
|
onChange: _,
|
|
1932
|
-
onKeyDown:
|
|
1933
|
-
onKeyUp:
|
|
1925
|
+
onKeyDown: f,
|
|
1926
|
+
onKeyUp: p,
|
|
1934
1927
|
maxLength: h,
|
|
1935
1928
|
className: m,
|
|
1936
|
-
style:
|
|
1929
|
+
style: g,
|
|
1937
1930
|
truncate: y = !1,
|
|
1938
|
-
shouldShowFloatingLabelClass:
|
|
1939
|
-
"aria-invalid":
|
|
1940
|
-
"aria-errormessage":
|
|
1941
|
-
id:
|
|
1931
|
+
shouldShowFloatingLabelClass: C = !1,
|
|
1932
|
+
"aria-invalid": v,
|
|
1933
|
+
"aria-errormessage": x,
|
|
1934
|
+
id: u,
|
|
1942
1935
|
resize: w,
|
|
1943
|
-
...
|
|
1936
|
+
...j
|
|
1944
1937
|
}, M) => {
|
|
1945
|
-
const { textareaRef:
|
|
1946
|
-
if (Ns(a, w,
|
|
1938
|
+
const { textareaRef: E, inputRef: I, currentRef: A } = Rs(a, e);
|
|
1939
|
+
if (Ns(a, w, E), Er(M, () => A.current, [A]), e === "textarea")
|
|
1947
1940
|
return /* @__PURE__ */ n.jsx(
|
|
1948
1941
|
"textarea",
|
|
1949
1942
|
{
|
|
1950
|
-
ref:
|
|
1951
|
-
id:
|
|
1943
|
+
ref: E,
|
|
1944
|
+
id: u,
|
|
1952
1945
|
value: a,
|
|
1953
|
-
placeholder:
|
|
1954
|
-
disabled: i ||
|
|
1946
|
+
placeholder: s,
|
|
1947
|
+
disabled: i || o,
|
|
1955
1948
|
onFocus: l,
|
|
1956
1949
|
onBlur: c,
|
|
1957
1950
|
onChange: _,
|
|
1958
|
-
onKeyDown:
|
|
1959
|
-
onKeyUp:
|
|
1951
|
+
onKeyDown: f,
|
|
1952
|
+
onKeyUp: p,
|
|
1960
1953
|
maxLength: h,
|
|
1961
1954
|
className: k(
|
|
1962
1955
|
N.textarea,
|
|
1963
1956
|
N[`size-${r}`],
|
|
1964
|
-
|
|
1957
|
+
C && N["with-floating-label"],
|
|
1965
1958
|
m
|
|
1966
1959
|
),
|
|
1967
|
-
style:
|
|
1968
|
-
"aria-invalid":
|
|
1969
|
-
"aria-errormessage":
|
|
1970
|
-
"aria-describedby":
|
|
1960
|
+
style: g,
|
|
1961
|
+
"aria-invalid": v,
|
|
1962
|
+
"aria-errormessage": x,
|
|
1963
|
+
"aria-describedby": x ? `${u}-error` : void 0,
|
|
1971
1964
|
tabIndex: 0,
|
|
1972
1965
|
"data-resize": w,
|
|
1973
|
-
...
|
|
1966
|
+
...j
|
|
1974
1967
|
}
|
|
1975
1968
|
);
|
|
1976
1969
|
if (e === "input")
|
|
@@ -1978,29 +1971,29 @@ const Ha = 2, Va = (e) => {
|
|
|
1978
1971
|
"input",
|
|
1979
1972
|
{
|
|
1980
1973
|
ref: I,
|
|
1981
|
-
id:
|
|
1974
|
+
id: u,
|
|
1982
1975
|
value: a,
|
|
1983
|
-
placeholder:
|
|
1984
|
-
disabled: i ||
|
|
1976
|
+
placeholder: s,
|
|
1977
|
+
disabled: i || o,
|
|
1985
1978
|
onFocus: l,
|
|
1986
1979
|
onBlur: c,
|
|
1987
1980
|
onChange: _,
|
|
1988
|
-
onKeyDown:
|
|
1989
|
-
onKeyUp:
|
|
1981
|
+
onKeyDown: f,
|
|
1982
|
+
onKeyUp: p,
|
|
1990
1983
|
maxLength: h,
|
|
1991
1984
|
className: k(
|
|
1992
1985
|
N.input,
|
|
1993
1986
|
N[`size-${r}`],
|
|
1994
|
-
|
|
1987
|
+
C && N["with-floating-label"],
|
|
1995
1988
|
y && N.truncate,
|
|
1996
1989
|
m
|
|
1997
1990
|
),
|
|
1998
|
-
style:
|
|
1999
|
-
"aria-invalid":
|
|
2000
|
-
"aria-errormessage":
|
|
2001
|
-
"aria-describedby":
|
|
1991
|
+
style: g,
|
|
1992
|
+
"aria-invalid": v,
|
|
1993
|
+
"aria-errormessage": x,
|
|
1994
|
+
"aria-describedby": x ? `${u}-error` : void 0,
|
|
2002
1995
|
tabIndex: 0,
|
|
2003
|
-
...
|
|
1996
|
+
...j
|
|
2004
1997
|
}
|
|
2005
1998
|
);
|
|
2006
1999
|
if (e !== "input" && e !== "textarea")
|
|
@@ -2013,72 +2006,72 @@ const Ha = 2, Va = (e) => {
|
|
|
2013
2006
|
children: e,
|
|
2014
2007
|
size: r = "medium",
|
|
2015
2008
|
error: a = !1,
|
|
2016
|
-
disabled:
|
|
2009
|
+
disabled: s = !1,
|
|
2017
2010
|
loading: i = !1,
|
|
2018
|
-
className:
|
|
2011
|
+
className: o,
|
|
2019
2012
|
wrapperProps: l,
|
|
2020
2013
|
wrapperStyles: c,
|
|
2021
2014
|
floatingLabelStyles: _,
|
|
2022
|
-
prefixStyles:
|
|
2023
|
-
suffixStyles:
|
|
2015
|
+
prefixStyles: f,
|
|
2016
|
+
suffixStyles: p,
|
|
2024
2017
|
labelProps: h,
|
|
2025
2018
|
helperProps: m,
|
|
2026
|
-
showLimit:
|
|
2019
|
+
showLimit: g = !1,
|
|
2027
2020
|
maxLength: y,
|
|
2028
|
-
hint:
|
|
2029
|
-
showHint:
|
|
2030
|
-
showHintOnEmpty:
|
|
2031
|
-
prefix:
|
|
2021
|
+
hint: C,
|
|
2022
|
+
showHint: v = !1,
|
|
2023
|
+
showHintOnEmpty: x = !1,
|
|
2024
|
+
prefix: u,
|
|
2032
2025
|
suffix: w,
|
|
2033
|
-
onSuffixClick:
|
|
2026
|
+
onSuffixClick: j,
|
|
2034
2027
|
placeholder: M,
|
|
2035
|
-
showLabel:
|
|
2028
|
+
showLabel: E = !0,
|
|
2036
2029
|
labelClassName: I,
|
|
2037
2030
|
hasValue: A = !1,
|
|
2038
|
-
helper:
|
|
2031
|
+
helper: D,
|
|
2039
2032
|
id: U,
|
|
2040
2033
|
value: q = "",
|
|
2041
|
-
resize:
|
|
2034
|
+
resize: O,
|
|
2042
2035
|
showGrip: S = !1,
|
|
2043
2036
|
...T
|
|
2044
|
-
},
|
|
2045
|
-
const F = pt(), H = U || F, Q =
|
|
2037
|
+
}, B) => {
|
|
2038
|
+
const F = pt(), H = U || F, Q = v && C && (A || x), ie = C && C.length > Ut ? C.substring(0, Ut) + "..." : C, Y = k(
|
|
2046
2039
|
N.wrapper,
|
|
2047
2040
|
a && N.error,
|
|
2048
|
-
|
|
2041
|
+
s && N.disabled,
|
|
2049
2042
|
i && N.loading,
|
|
2050
2043
|
Q && N["has-hint"],
|
|
2051
2044
|
w && N["has-suffix"],
|
|
2052
|
-
|
|
2053
|
-
|
|
2045
|
+
g && N["has-limit"],
|
|
2046
|
+
o
|
|
2054
2047
|
), ue = k(
|
|
2055
2048
|
N.floatingLabel,
|
|
2056
2049
|
N[r],
|
|
2057
2050
|
A && N.filled,
|
|
2058
2051
|
I
|
|
2059
|
-
), { handleGripMouseDown: ee } = As(S,
|
|
2060
|
-
return /* @__PURE__ */ n.jsxs("div", { ref:
|
|
2052
|
+
), { handleGripMouseDown: ee } = As(S, s, i, O);
|
|
2053
|
+
return /* @__PURE__ */ n.jsxs("div", { ref: B, className: N.inputBase, "data-testid": "input-base-wrapper", ...T, children: [
|
|
2061
2054
|
/* @__PURE__ */ n.jsxs(
|
|
2062
2055
|
"div",
|
|
2063
2056
|
{
|
|
2064
2057
|
className: Y,
|
|
2065
2058
|
style: c,
|
|
2066
|
-
"data-resize":
|
|
2059
|
+
"data-resize": O,
|
|
2067
2060
|
"data-show-grip": S ? "true" : "false",
|
|
2068
2061
|
...l,
|
|
2069
2062
|
children: [
|
|
2070
|
-
|
|
2063
|
+
u && /* @__PURE__ */ n.jsx("label", { htmlFor: H, className: N.leftSection, style: f, children: u }),
|
|
2071
2064
|
w && /* @__PURE__ */ n.jsx(
|
|
2072
2065
|
"label",
|
|
2073
2066
|
{
|
|
2074
2067
|
htmlFor: H,
|
|
2075
2068
|
className: N.rightSection,
|
|
2076
|
-
style:
|
|
2077
|
-
onClick:
|
|
2069
|
+
style: p,
|
|
2070
|
+
onClick: j,
|
|
2078
2071
|
children: w
|
|
2079
2072
|
}
|
|
2080
2073
|
),
|
|
2081
|
-
M &&
|
|
2074
|
+
M && E && /* @__PURE__ */ n.jsx(
|
|
2082
2075
|
"label",
|
|
2083
2076
|
{
|
|
2084
2077
|
htmlFor: H,
|
|
@@ -2089,7 +2082,7 @@ const Ha = 2, Va = (e) => {
|
|
|
2089
2082
|
}
|
|
2090
2083
|
),
|
|
2091
2084
|
e,
|
|
2092
|
-
S && !
|
|
2085
|
+
S && !g && (O === "fixed" || !O) && /* @__PURE__ */ n.jsx(
|
|
2093
2086
|
"div",
|
|
2094
2087
|
{
|
|
2095
2088
|
className: N.gripHandle,
|
|
@@ -2104,11 +2097,11 @@ const Ha = 2, Va = (e) => {
|
|
|
2104
2097
|
"div",
|
|
2105
2098
|
{
|
|
2106
2099
|
className: k(N.hint, A && N.truncate),
|
|
2107
|
-
"data-disabled":
|
|
2100
|
+
"data-disabled": s || i,
|
|
2108
2101
|
children: ie
|
|
2109
2102
|
}
|
|
2110
2103
|
),
|
|
2111
|
-
|
|
2104
|
+
g && y && /* @__PURE__ */ n.jsxs("div", { className: N.characterLimit, children: [
|
|
2112
2105
|
(q || "").length,
|
|
2113
2106
|
" из ",
|
|
2114
2107
|
y
|
|
@@ -2116,74 +2109,74 @@ const Ha = 2, Va = (e) => {
|
|
|
2116
2109
|
]
|
|
2117
2110
|
}
|
|
2118
2111
|
),
|
|
2119
|
-
|
|
2112
|
+
D && /* @__PURE__ */ n.jsx(
|
|
2120
2113
|
"div",
|
|
2121
2114
|
{
|
|
2122
2115
|
className: k(
|
|
2123
2116
|
N.helper,
|
|
2124
2117
|
a && N.error,
|
|
2125
|
-
(
|
|
2118
|
+
(s || i) && N.disabled
|
|
2126
2119
|
),
|
|
2127
2120
|
...m,
|
|
2128
2121
|
id: a ? `${H}-error` : void 0,
|
|
2129
|
-
children:
|
|
2122
|
+
children: D
|
|
2130
2123
|
}
|
|
2131
2124
|
)
|
|
2132
2125
|
] });
|
|
2133
2126
|
}
|
|
2134
2127
|
);
|
|
2135
2128
|
Kt.displayName = "InputWrapperComponent";
|
|
2136
|
-
const Ft = Object.assign(
|
|
2129
|
+
const Ft = Object.assign(Ds, {
|
|
2137
2130
|
Wrapper: Kt
|
|
2138
2131
|
}), Qt = K(
|
|
2139
2132
|
({
|
|
2140
2133
|
component: e = "input",
|
|
2141
2134
|
size: r = "medium",
|
|
2142
2135
|
className: a,
|
|
2143
|
-
error:
|
|
2136
|
+
error: s = !1,
|
|
2144
2137
|
disabled: i = !1,
|
|
2145
|
-
loading:
|
|
2138
|
+
loading: o = !1,
|
|
2146
2139
|
placeholder: l,
|
|
2147
2140
|
showLabel: c = !0,
|
|
2148
2141
|
labelClassName: _,
|
|
2149
|
-
helper:
|
|
2150
|
-
prefix:
|
|
2142
|
+
helper: f,
|
|
2143
|
+
prefix: p,
|
|
2151
2144
|
suffix: h,
|
|
2152
2145
|
id: m,
|
|
2153
|
-
onFocus:
|
|
2146
|
+
onFocus: g,
|
|
2154
2147
|
onBlur: y,
|
|
2155
|
-
onKeyDown:
|
|
2156
|
-
onSuffixClick:
|
|
2157
|
-
onChange:
|
|
2158
|
-
value:
|
|
2148
|
+
onKeyDown: C,
|
|
2149
|
+
onSuffixClick: v,
|
|
2150
|
+
onChange: x,
|
|
2151
|
+
value: u = "",
|
|
2159
2152
|
wrapperProps: w,
|
|
2160
|
-
wrapperStyles:
|
|
2153
|
+
wrapperStyles: j,
|
|
2161
2154
|
floatingLabelStyles: M,
|
|
2162
|
-
prefixStyles:
|
|
2155
|
+
prefixStyles: E,
|
|
2163
2156
|
suffixStyles: I,
|
|
2164
2157
|
textareaStyles: A,
|
|
2165
|
-
labelProps:
|
|
2158
|
+
labelProps: D,
|
|
2166
2159
|
helperProps: U,
|
|
2167
2160
|
showLimit: q = !1,
|
|
2168
|
-
maxLength:
|
|
2161
|
+
maxLength: O,
|
|
2169
2162
|
inputProps: S,
|
|
2170
2163
|
hint: T,
|
|
2171
|
-
showHint:
|
|
2164
|
+
showHint: B = !1,
|
|
2172
2165
|
showHintOnEmpty: F = !1,
|
|
2173
2166
|
truncate: H = !1,
|
|
2174
2167
|
resize: Q,
|
|
2175
2168
|
showGrip: ie = !1,
|
|
2176
2169
|
...Y
|
|
2177
2170
|
}, ue) => {
|
|
2178
|
-
const ee = pt(), Ce = m || ee, [Be, me] = de(
|
|
2171
|
+
const ee = pt(), Ce = m || ee, [Be, me] = de(u), Me = u !== void 0 ? u : Be, Ie = (Me || "").length > 0, Le = Me || "", $e = c && (r === "large" || e === "textarea") && !p, Ke = Se(
|
|
2179
2172
|
(Z) => {
|
|
2180
2173
|
var X;
|
|
2181
|
-
i ||
|
|
2174
|
+
i || o || (g == null || g(), (X = S == null ? void 0 : S.onFocus) == null || X.call(
|
|
2182
2175
|
S,
|
|
2183
2176
|
Z
|
|
2184
2177
|
));
|
|
2185
2178
|
},
|
|
2186
|
-
[
|
|
2179
|
+
[g, S, i, o]
|
|
2187
2180
|
), He = Se(
|
|
2188
2181
|
(Z) => {
|
|
2189
2182
|
var X;
|
|
@@ -2210,48 +2203,48 @@ const Ft = Object.assign(zs, {
|
|
|
2210
2203
|
), et = Se(
|
|
2211
2204
|
(Z) => {
|
|
2212
2205
|
var be;
|
|
2213
|
-
if (i ||
|
|
2206
|
+
if (i || o) return;
|
|
2214
2207
|
const X = Z.target.value;
|
|
2215
|
-
me(X),
|
|
2208
|
+
me(X), x == null || x(X, Z), (be = S == null ? void 0 : S.onChange) == null || be.call(
|
|
2216
2209
|
S,
|
|
2217
2210
|
Z
|
|
2218
2211
|
);
|
|
2219
2212
|
},
|
|
2220
|
-
[
|
|
2213
|
+
[x, S, i, o]
|
|
2221
2214
|
);
|
|
2222
2215
|
return oe(() => {
|
|
2223
|
-
me(
|
|
2224
|
-
}, [
|
|
2216
|
+
me(u || "");
|
|
2217
|
+
}, [u]), /* @__PURE__ */ n.jsx(
|
|
2225
2218
|
Ft.Wrapper,
|
|
2226
2219
|
{
|
|
2227
2220
|
ref: ue,
|
|
2228
2221
|
size: r,
|
|
2229
|
-
error:
|
|
2230
|
-
disabled: i ||
|
|
2231
|
-
loading:
|
|
2222
|
+
error: s,
|
|
2223
|
+
disabled: i || o,
|
|
2224
|
+
loading: o,
|
|
2232
2225
|
className: k(a, e === "textarea" && N["textarea-wrapper"]),
|
|
2233
2226
|
wrapperProps: w,
|
|
2234
|
-
wrapperStyles:
|
|
2227
|
+
wrapperStyles: j,
|
|
2235
2228
|
floatingLabelStyles: M,
|
|
2236
|
-
prefixStyles:
|
|
2229
|
+
prefixStyles: E,
|
|
2237
2230
|
suffixStyles: I,
|
|
2238
|
-
labelProps:
|
|
2231
|
+
labelProps: D,
|
|
2239
2232
|
helperProps: U,
|
|
2240
2233
|
showLimit: q,
|
|
2241
|
-
maxLength:
|
|
2234
|
+
maxLength: O,
|
|
2242
2235
|
hint: T,
|
|
2243
|
-
showHint:
|
|
2236
|
+
showHint: B,
|
|
2244
2237
|
showHintOnEmpty: F,
|
|
2245
|
-
prefix:
|
|
2238
|
+
prefix: p,
|
|
2246
2239
|
suffix: h,
|
|
2247
|
-
onSuffixClick:
|
|
2240
|
+
onSuffixClick: v,
|
|
2248
2241
|
placeholder: l,
|
|
2249
2242
|
showLabel: c,
|
|
2250
2243
|
labelClassName: _,
|
|
2251
2244
|
hasValue: Ie,
|
|
2252
|
-
helper:
|
|
2245
|
+
helper: f,
|
|
2253
2246
|
id: Ce,
|
|
2254
|
-
value:
|
|
2247
|
+
value: Le,
|
|
2255
2248
|
showGrip: ie,
|
|
2256
2249
|
resize: Q,
|
|
2257
2250
|
...Y,
|
|
@@ -2260,22 +2253,22 @@ const Ft = Object.assign(zs, {
|
|
|
2260
2253
|
{
|
|
2261
2254
|
component: e,
|
|
2262
2255
|
size: r,
|
|
2263
|
-
value:
|
|
2256
|
+
value: Le,
|
|
2264
2257
|
placeholder: l,
|
|
2265
2258
|
disabled: i,
|
|
2266
|
-
loading:
|
|
2259
|
+
loading: o,
|
|
2267
2260
|
onFocus: Ke,
|
|
2268
2261
|
onBlur: Qe,
|
|
2269
2262
|
onChange: et,
|
|
2270
|
-
onKeyDown:
|
|
2263
|
+
onKeyDown: C,
|
|
2271
2264
|
onKeyUp: He,
|
|
2272
|
-
maxLength:
|
|
2265
|
+
maxLength: O,
|
|
2273
2266
|
truncate: H,
|
|
2274
2267
|
"data-empty": !Ie,
|
|
2275
2268
|
shouldShowFloatingLabelClass: $e,
|
|
2276
2269
|
style: e === "textarea" ? A : void 0,
|
|
2277
|
-
"aria-invalid": !!
|
|
2278
|
-
"aria-errormessage":
|
|
2270
|
+
"aria-invalid": !!s,
|
|
2271
|
+
"aria-errormessage": s ? `${Ce}-error` : void 0,
|
|
2279
2272
|
id: Ce,
|
|
2280
2273
|
resize: Q,
|
|
2281
2274
|
...S
|
|
@@ -2288,18 +2281,18 @@ const Ft = Object.assign(zs, {
|
|
|
2288
2281
|
SMALL: "small",
|
|
2289
2282
|
MEDIUM: "medium",
|
|
2290
2283
|
LARGE: "large"
|
|
2291
|
-
},
|
|
2284
|
+
}, Os = (e, r, a, s) => {
|
|
2292
2285
|
switch (e) {
|
|
2293
2286
|
case re.LARGE:
|
|
2294
2287
|
return r && a ? "8px 16px 8px 16px" : "16px 16px 16px 16px";
|
|
2295
2288
|
case re.MEDIUM:
|
|
2296
|
-
return
|
|
2289
|
+
return s ? "12px 12px 12px 12px" : "12px 12px 12px 16px";
|
|
2297
2290
|
case re.SMALL:
|
|
2298
2291
|
return "10px 12px 10px 12px";
|
|
2299
2292
|
default:
|
|
2300
2293
|
return "12px 16px 12px 16px";
|
|
2301
2294
|
}
|
|
2302
|
-
},
|
|
2295
|
+
}, Ps = (e) => {
|
|
2303
2296
|
switch (e) {
|
|
2304
2297
|
case re.LARGE:
|
|
2305
2298
|
return "56px";
|
|
@@ -2310,7 +2303,7 @@ const Ft = Object.assign(zs, {
|
|
|
2310
2303
|
default:
|
|
2311
2304
|
return "48px";
|
|
2312
2305
|
}
|
|
2313
|
-
},
|
|
2306
|
+
}, Bs = (e) => {
|
|
2314
2307
|
switch (e) {
|
|
2315
2308
|
case re.SMALL:
|
|
2316
2309
|
return 8;
|
|
@@ -2322,7 +2315,7 @@ const Ft = Object.assign(zs, {
|
|
|
2322
2315
|
default:
|
|
2323
2316
|
return 12;
|
|
2324
2317
|
}
|
|
2325
|
-
},
|
|
2318
|
+
}, zs = (e, r, a) => ({
|
|
2326
2319
|
wrapperStyles: {
|
|
2327
2320
|
height: e,
|
|
2328
2321
|
minHeight: e,
|
|
@@ -2372,15 +2365,15 @@ const Ft = Object.assign(zs, {
|
|
|
2372
2365
|
suffixStyles: {
|
|
2373
2366
|
right: `${a}px`
|
|
2374
2367
|
}
|
|
2375
|
-
}), qs = (e, r, a,
|
|
2376
|
-
const i =
|
|
2368
|
+
}), qs = (e, r, a, s) => {
|
|
2369
|
+
const i = Ps(e), o = Os(e, r, a, s), l = Bs(e);
|
|
2377
2370
|
switch (e) {
|
|
2378
2371
|
case re.LARGE:
|
|
2379
|
-
return
|
|
2372
|
+
return zs(i, o, l);
|
|
2380
2373
|
case re.MEDIUM:
|
|
2381
|
-
return Us(i,
|
|
2374
|
+
return Us(i, o, l);
|
|
2382
2375
|
case re.SMALL:
|
|
2383
|
-
return Fs(i,
|
|
2376
|
+
return Fs(i, o, l);
|
|
2384
2377
|
default:
|
|
2385
2378
|
return {
|
|
2386
2379
|
wrapperStyles: {},
|
|
@@ -2389,43 +2382,43 @@ const Ft = Object.assign(zs, {
|
|
|
2389
2382
|
suffixStyles: {}
|
|
2390
2383
|
};
|
|
2391
2384
|
}
|
|
2392
|
-
},
|
|
2385
|
+
}, Ji = K(
|
|
2393
2386
|
({
|
|
2394
2387
|
value: e = "",
|
|
2395
2388
|
onChange: r,
|
|
2396
2389
|
type: a = "text",
|
|
2397
|
-
placeholder:
|
|
2390
|
+
placeholder: s,
|
|
2398
2391
|
maxLength: i,
|
|
2399
|
-
minLength:
|
|
2392
|
+
minLength: o,
|
|
2400
2393
|
autoComplete: l,
|
|
2401
2394
|
autoFocus: c,
|
|
2402
2395
|
size: _ = re.MEDIUM,
|
|
2403
|
-
inputProps:
|
|
2404
|
-
error:
|
|
2396
|
+
inputProps: f,
|
|
2397
|
+
error: p,
|
|
2405
2398
|
disabled: h,
|
|
2406
2399
|
loading: m,
|
|
2407
|
-
helper:
|
|
2400
|
+
helper: g,
|
|
2408
2401
|
prefix: y,
|
|
2409
|
-
suffix:
|
|
2410
|
-
clearable:
|
|
2411
|
-
id:
|
|
2412
|
-
showLabel:
|
|
2402
|
+
suffix: C,
|
|
2403
|
+
clearable: v = !1,
|
|
2404
|
+
id: x,
|
|
2405
|
+
showLabel: u = !0,
|
|
2413
2406
|
onFocus: w,
|
|
2414
|
-
onBlur:
|
|
2407
|
+
onBlur: j,
|
|
2415
2408
|
onSuffixClick: M,
|
|
2416
|
-
onClear:
|
|
2409
|
+
onClear: E,
|
|
2417
2410
|
className: I,
|
|
2418
2411
|
truncate: A = !0,
|
|
2419
|
-
hint:
|
|
2412
|
+
hint: D,
|
|
2420
2413
|
showHint: U = !1,
|
|
2421
2414
|
showHintOnEmpty: q = !1,
|
|
2422
|
-
wrapperProps:
|
|
2415
|
+
wrapperProps: O,
|
|
2423
2416
|
labelProps: S,
|
|
2424
2417
|
helperProps: T,
|
|
2425
|
-
...
|
|
2418
|
+
...B
|
|
2426
2419
|
}, F) => {
|
|
2427
|
-
const H = (e || "").length > 0, Q = _ === re.LARGE, ie = !!y, Y = Q &&
|
|
2428
|
-
r == null || r(""),
|
|
2420
|
+
const H = (e || "").length > 0, Q = _ === re.LARGE, ie = !!y, Y = Q && u && !y, ue = v && H && !(h || m), ee = () => {
|
|
2421
|
+
r == null || r(""), E == null || E();
|
|
2429
2422
|
}, Ce = ue ? /* @__PURE__ */ n.jsx(
|
|
2430
2423
|
Jt,
|
|
2431
2424
|
{
|
|
@@ -2435,51 +2428,51 @@ const Ft = Object.assign(zs, {
|
|
|
2435
2428
|
style: { cursor: "pointer" },
|
|
2436
2429
|
"data-testid": "x-icon"
|
|
2437
2430
|
}
|
|
2438
|
-
) :
|
|
2431
|
+
) : C, Be = {
|
|
2439
2432
|
type: a,
|
|
2440
|
-
minLength:
|
|
2433
|
+
minLength: o,
|
|
2441
2434
|
autoComplete: l,
|
|
2442
2435
|
autoFocus: c,
|
|
2443
|
-
...
|
|
2436
|
+
...f
|
|
2444
2437
|
}, me = qs(_, Y, H, ie);
|
|
2445
2438
|
return /* @__PURE__ */ n.jsx(
|
|
2446
2439
|
Qt,
|
|
2447
2440
|
{
|
|
2448
2441
|
size: _,
|
|
2449
|
-
error:
|
|
2442
|
+
error: p,
|
|
2450
2443
|
disabled: h || m,
|
|
2451
2444
|
loading: m,
|
|
2452
|
-
helper:
|
|
2445
|
+
helper: g,
|
|
2453
2446
|
prefix: y,
|
|
2454
2447
|
suffix: Ce,
|
|
2455
|
-
id:
|
|
2448
|
+
id: x,
|
|
2456
2449
|
showLabel: Y,
|
|
2457
2450
|
onFocus: w,
|
|
2458
|
-
onBlur:
|
|
2451
|
+
onBlur: j,
|
|
2459
2452
|
onSuffixClick: M,
|
|
2460
2453
|
onChange: r,
|
|
2461
2454
|
value: e,
|
|
2462
|
-
placeholder:
|
|
2455
|
+
placeholder: s,
|
|
2463
2456
|
className: I,
|
|
2464
2457
|
wrapperStyles: me.wrapperStyles,
|
|
2465
2458
|
floatingLabelStyles: me.floatingLabelStyles,
|
|
2466
2459
|
prefixStyles: me.prefixStyles,
|
|
2467
2460
|
suffixStyles: me.suffixStyles,
|
|
2468
|
-
wrapperProps:
|
|
2461
|
+
wrapperProps: O,
|
|
2469
2462
|
labelProps: S,
|
|
2470
2463
|
helperProps: T,
|
|
2471
2464
|
showLimit: !1,
|
|
2472
2465
|
maxLength: i,
|
|
2473
2466
|
inputProps: Be,
|
|
2474
|
-
hint:
|
|
2467
|
+
hint: D,
|
|
2475
2468
|
showHint: U,
|
|
2476
2469
|
showHintOnEmpty: q,
|
|
2477
2470
|
truncate: A,
|
|
2478
|
-
...
|
|
2471
|
+
...B
|
|
2479
2472
|
}
|
|
2480
2473
|
);
|
|
2481
2474
|
}
|
|
2482
|
-
),
|
|
2475
|
+
), ge = {
|
|
2483
2476
|
SMALL: "small",
|
|
2484
2477
|
MEDIUM: "medium"
|
|
2485
2478
|
}, Xe = {
|
|
@@ -2507,18 +2500,18 @@ const Ft = Object.assign(zs, {
|
|
|
2507
2500
|
MEDIUM: 56,
|
|
2508
2501
|
LARGE: 112
|
|
2509
2502
|
}, Hs = (e, r) => {
|
|
2510
|
-
if (e ===
|
|
2503
|
+
if (e === ge.SMALL)
|
|
2511
2504
|
return ct.SMALL;
|
|
2512
2505
|
if (r)
|
|
2513
2506
|
return `${r}px`;
|
|
2514
2507
|
switch (e) {
|
|
2515
|
-
case
|
|
2508
|
+
case ge.MEDIUM:
|
|
2516
2509
|
return ct.MEDIUM;
|
|
2517
2510
|
default:
|
|
2518
2511
|
return ct.MEDIUM;
|
|
2519
2512
|
}
|
|
2520
2513
|
}, Vs = (e, r) => {
|
|
2521
|
-
if (e ===
|
|
2514
|
+
if (e === ge.SMALL)
|
|
2522
2515
|
return Ae.SMALL;
|
|
2523
2516
|
if (r)
|
|
2524
2517
|
switch (r) {
|
|
@@ -2531,13 +2524,13 @@ const Ft = Object.assign(zs, {
|
|
|
2531
2524
|
return Ae.MEDIUM;
|
|
2532
2525
|
}
|
|
2533
2526
|
switch (e) {
|
|
2534
|
-
case
|
|
2527
|
+
case ge.MEDIUM:
|
|
2535
2528
|
return Ae.MEDIUM;
|
|
2536
2529
|
default:
|
|
2537
2530
|
return Ae.MEDIUM;
|
|
2538
2531
|
}
|
|
2539
2532
|
}, Gs = (e, r, a) => {
|
|
2540
|
-
if (e ===
|
|
2533
|
+
if (e === ge.SMALL)
|
|
2541
2534
|
return ve.SMALL;
|
|
2542
2535
|
if (r)
|
|
2543
2536
|
switch (r) {
|
|
@@ -2551,13 +2544,13 @@ const Ft = Object.assign(zs, {
|
|
|
2551
2544
|
return ve.MEDIUM;
|
|
2552
2545
|
}
|
|
2553
2546
|
switch (e) {
|
|
2554
|
-
case
|
|
2547
|
+
case ge.MEDIUM:
|
|
2555
2548
|
return a ? ve.MEDIUM_FLOATING_LABEL : ve.MEDIUM;
|
|
2556
2549
|
default:
|
|
2557
2550
|
return ve.MEDIUM;
|
|
2558
2551
|
}
|
|
2559
2552
|
}, Ys = (e, r) => {
|
|
2560
|
-
if (e ===
|
|
2553
|
+
if (e === ge.SMALL)
|
|
2561
2554
|
return "small";
|
|
2562
2555
|
if (r)
|
|
2563
2556
|
switch (r) {
|
|
@@ -2571,69 +2564,69 @@ const Ft = Object.assign(zs, {
|
|
|
2571
2564
|
return "medium";
|
|
2572
2565
|
}
|
|
2573
2566
|
return e;
|
|
2574
|
-
}, Zs = (e) => Ws[e.toUpperCase()], Xs = (e) => Xe[e.toUpperCase()], Js = (e, r, a,
|
|
2575
|
-
const i = Hs(e, r),
|
|
2567
|
+
}, Zs = (e) => Ws[e.toUpperCase()], Xs = (e) => Xe[e.toUpperCase()], Js = (e, r, a, s) => {
|
|
2568
|
+
const i = Hs(e, r), o = Vs(e, r), l = Gs(e, r, a);
|
|
2576
2569
|
return {
|
|
2577
2570
|
wrapperStyles: {
|
|
2578
2571
|
minHeight: i,
|
|
2579
2572
|
// Для fill resize устанавливаем height: 100%
|
|
2580
|
-
...
|
|
2573
|
+
...s === Ye.FILL && { height: "100%" },
|
|
2581
2574
|
// Для fixed resize устанавливаем фиксированную высоту
|
|
2582
|
-
...
|
|
2575
|
+
...s === Ye.FIXED && r && { height: i },
|
|
2583
2576
|
boxSizing: "border-box",
|
|
2584
2577
|
padding: l
|
|
2585
2578
|
},
|
|
2586
2579
|
floatingLabelStyles: {
|
|
2587
|
-
left: e ===
|
|
2580
|
+
left: e === ge.SMALL ? Xe.SMALL : Xe.MEDIUM,
|
|
2588
2581
|
transformOrigin: "left top",
|
|
2589
|
-
top: r === 112 && a && e ===
|
|
2582
|
+
top: r === 112 && a && e === ge.MEDIUM ? Xe.MEDIUM : void 0
|
|
2590
2583
|
},
|
|
2591
2584
|
suffixStyles: {
|
|
2592
2585
|
right: Xs(e)
|
|
2593
2586
|
},
|
|
2594
2587
|
textareaStyles: {
|
|
2595
|
-
minHeight:
|
|
2588
|
+
minHeight: o,
|
|
2596
2589
|
// Для fill resize flex: 1
|
|
2597
|
-
...
|
|
2590
|
+
...s === Ye.FILL && { flex: 1, minHeight: 0 },
|
|
2598
2591
|
// Для fixed resize фиксированная высота
|
|
2599
|
-
...
|
|
2592
|
+
...s === Ye.FIXED && r && { height: o }
|
|
2600
2593
|
}
|
|
2601
2594
|
};
|
|
2602
|
-
},
|
|
2595
|
+
}, Ki = K(
|
|
2603
2596
|
({
|
|
2604
2597
|
value: e = "",
|
|
2605
2598
|
onChange: r,
|
|
2606
2599
|
placeholder: a,
|
|
2607
|
-
maxLength:
|
|
2600
|
+
maxLength: s,
|
|
2608
2601
|
minLength: i,
|
|
2609
|
-
autoFocus:
|
|
2610
|
-
size: l =
|
|
2602
|
+
autoFocus: o,
|
|
2603
|
+
size: l = ge.MEDIUM,
|
|
2611
2604
|
textareaProps: c,
|
|
2612
2605
|
error: _,
|
|
2613
|
-
disabled:
|
|
2614
|
-
loading:
|
|
2606
|
+
disabled: f,
|
|
2607
|
+
loading: p,
|
|
2615
2608
|
helper: h,
|
|
2616
2609
|
suffix: m,
|
|
2617
|
-
clearable:
|
|
2610
|
+
clearable: g = !1,
|
|
2618
2611
|
id: y,
|
|
2619
|
-
showLabel:
|
|
2620
|
-
onFocus:
|
|
2621
|
-
onBlur:
|
|
2622
|
-
onClear:
|
|
2612
|
+
showLabel: C = !0,
|
|
2613
|
+
onFocus: v,
|
|
2614
|
+
onBlur: x,
|
|
2615
|
+
onClear: u,
|
|
2623
2616
|
onKeyDown: w,
|
|
2624
|
-
className:
|
|
2617
|
+
className: j,
|
|
2625
2618
|
rows: M = 1,
|
|
2626
|
-
showLimit:
|
|
2619
|
+
showLimit: E = !1,
|
|
2627
2620
|
wrapperProps: I,
|
|
2628
2621
|
labelProps: A,
|
|
2629
|
-
helperProps:
|
|
2622
|
+
helperProps: D,
|
|
2630
2623
|
showGrip: U,
|
|
2631
2624
|
minHeight: q,
|
|
2632
|
-
resize:
|
|
2625
|
+
resize: O,
|
|
2633
2626
|
...S
|
|
2634
2627
|
}, T) => {
|
|
2635
|
-
const
|
|
2636
|
-
r == null || r(""),
|
|
2628
|
+
const B = (e || "").length > 0, F = C && !!a && (l === ge.SMALL || q !== 48), H = g && B && !(f || p), Q = () => {
|
|
2629
|
+
r == null || r(""), u == null || u();
|
|
2637
2630
|
}, ie = H ? /* @__PURE__ */ n.jsx(
|
|
2638
2631
|
Jt,
|
|
2639
2632
|
{
|
|
@@ -2643,11 +2636,11 @@ const Ft = Object.assign(zs, {
|
|
|
2643
2636
|
style: { cursor: "pointer" },
|
|
2644
2637
|
"data-testid": "x-icon"
|
|
2645
2638
|
}
|
|
2646
|
-
) : m, Y = Js(l, q, F &&
|
|
2639
|
+
) : m, Y = Js(l, q, F && B, O), ue = Ys(l, q), ee = {
|
|
2647
2640
|
rows: M,
|
|
2648
2641
|
minLength: i,
|
|
2649
|
-
autoFocus:
|
|
2650
|
-
resize:
|
|
2642
|
+
autoFocus: o,
|
|
2643
|
+
resize: O,
|
|
2651
2644
|
...c
|
|
2652
2645
|
};
|
|
2653
2646
|
return /* @__PURE__ */ n.jsx(
|
|
@@ -2657,19 +2650,19 @@ const Ft = Object.assign(zs, {
|
|
|
2657
2650
|
component: "textarea",
|
|
2658
2651
|
size: ue,
|
|
2659
2652
|
error: _,
|
|
2660
|
-
disabled:
|
|
2661
|
-
loading:
|
|
2653
|
+
disabled: f || p,
|
|
2654
|
+
loading: p,
|
|
2662
2655
|
helper: h,
|
|
2663
2656
|
suffix: ie,
|
|
2664
2657
|
id: y,
|
|
2665
2658
|
showLabel: F,
|
|
2666
|
-
onFocus:
|
|
2667
|
-
onBlur:
|
|
2659
|
+
onFocus: v,
|
|
2660
|
+
onBlur: x,
|
|
2668
2661
|
onKeyDown: w,
|
|
2669
2662
|
onChange: r,
|
|
2670
2663
|
value: e || "",
|
|
2671
2664
|
placeholder: a,
|
|
2672
|
-
className:
|
|
2665
|
+
className: j,
|
|
2673
2666
|
"data-floating-label": F,
|
|
2674
2667
|
wrapperStyles: Y.wrapperStyles,
|
|
2675
2668
|
floatingLabelStyles: Y.floatingLabelStyles,
|
|
@@ -2677,11 +2670,11 @@ const Ft = Object.assign(zs, {
|
|
|
2677
2670
|
textareaStyles: Y.textareaStyles,
|
|
2678
2671
|
wrapperProps: I,
|
|
2679
2672
|
labelProps: A,
|
|
2680
|
-
helperProps:
|
|
2681
|
-
showLimit:
|
|
2682
|
-
maxLength:
|
|
2673
|
+
helperProps: D,
|
|
2674
|
+
showLimit: E && (q === 112 || l === ge.SMALL),
|
|
2675
|
+
maxLength: s,
|
|
2683
2676
|
inputProps: ee,
|
|
2684
|
-
resize:
|
|
2677
|
+
resize: O,
|
|
2685
2678
|
showGrip: U,
|
|
2686
2679
|
...S
|
|
2687
2680
|
}
|
|
@@ -2691,31 +2684,31 @@ const Ft = Object.assign(zs, {
|
|
|
2691
2684
|
helper: Ks,
|
|
2692
2685
|
"helper--error": "_helper--error_1jq7j_28",
|
|
2693
2686
|
"helper--disabled": "_helper--disabled_1jq7j_33"
|
|
2694
|
-
},
|
|
2687
|
+
}, Qi = ({
|
|
2695
2688
|
title: e,
|
|
2696
2689
|
error: r,
|
|
2697
2690
|
className: a = "",
|
|
2698
|
-
style:
|
|
2691
|
+
style: s,
|
|
2699
2692
|
disabled: i = !1,
|
|
2700
|
-
"data-testid":
|
|
2693
|
+
"data-testid": o,
|
|
2701
2694
|
"aria-label": l,
|
|
2702
2695
|
"aria-describedby": c
|
|
2703
2696
|
}) => {
|
|
2704
|
-
const _ = !!r,
|
|
2697
|
+
const _ = !!r, f = k(
|
|
2705
2698
|
dt.helper,
|
|
2706
2699
|
_ && dt["helper--error"],
|
|
2707
2700
|
i && dt["helper--disabled"],
|
|
2708
2701
|
a
|
|
2709
|
-
),
|
|
2702
|
+
), p = i ? e : r || e;
|
|
2710
2703
|
return /* @__PURE__ */ n.jsx(
|
|
2711
2704
|
"div",
|
|
2712
2705
|
{
|
|
2713
|
-
className:
|
|
2714
|
-
style:
|
|
2715
|
-
"data-testid":
|
|
2706
|
+
className: f,
|
|
2707
|
+
style: s,
|
|
2708
|
+
"data-testid": o,
|
|
2716
2709
|
"aria-label": l,
|
|
2717
2710
|
"aria-describedby": c,
|
|
2718
|
-
children: /* @__PURE__ */ n.jsx("p", { children:
|
|
2711
|
+
children: /* @__PURE__ */ n.jsx("p", { children: p })
|
|
2719
2712
|
}
|
|
2720
2713
|
);
|
|
2721
2714
|
}, 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", _o = "_smallCard_1q34w_206", po = "_mediumCard_1q34w_210", fo = "_largeCard_1q34w_214", le = {
|
|
@@ -2734,58 +2727,58 @@ const Ft = Object.assign(zs, {
|
|
|
2734
2727
|
smallCard: _o,
|
|
2735
2728
|
mediumCard: po,
|
|
2736
2729
|
largeCard: fo
|
|
2737
|
-
},
|
|
2730
|
+
}, go = "radio-container-", bo = "radio-label", er = K(
|
|
2738
2731
|
(e, r) => {
|
|
2739
2732
|
const {
|
|
2740
2733
|
name: a,
|
|
2741
|
-
id:
|
|
2734
|
+
id: s,
|
|
2742
2735
|
value: i,
|
|
2743
|
-
size:
|
|
2736
|
+
size: o = "large",
|
|
2744
2737
|
loading: l = !1,
|
|
2745
2738
|
error: c,
|
|
2746
2739
|
disabled: _ = !1,
|
|
2747
|
-
checked:
|
|
2748
|
-
containerClassName:
|
|
2740
|
+
checked: f = !1,
|
|
2741
|
+
containerClassName: p,
|
|
2749
2742
|
className: h,
|
|
2750
2743
|
children: m,
|
|
2751
|
-
clickable:
|
|
2744
|
+
clickable: g = "all",
|
|
2752
2745
|
mode: y = "default",
|
|
2753
|
-
tabIndex:
|
|
2754
|
-
style:
|
|
2755
|
-
containerStyle:
|
|
2756
|
-
onChange:
|
|
2746
|
+
tabIndex: C,
|
|
2747
|
+
style: v,
|
|
2748
|
+
containerStyle: x,
|
|
2749
|
+
onChange: u,
|
|
2757
2750
|
"data-testid": w,
|
|
2758
|
-
...
|
|
2759
|
-
} = e, M = !!c,
|
|
2760
|
-
|
|
2761
|
-
},
|
|
2762
|
-
F.key === "Enter" && !
|
|
2751
|
+
...j
|
|
2752
|
+
} = e, M = !!c, E = _ || l, I = g === "all", A = y === "card", D = le[`${o}Card`], U = s ?? a, q = (F) => {
|
|
2753
|
+
E || u == null || u(i, F);
|
|
2754
|
+
}, O = (F) => {
|
|
2755
|
+
F.key === "Enter" && !E && (F.preventDefault(), u == null || u(i));
|
|
2763
2756
|
}, S = (F) => F.stopPropagation(), T = () => /* @__PURE__ */ n.jsxs(
|
|
2764
2757
|
"div",
|
|
2765
2758
|
{
|
|
2766
2759
|
className: k(
|
|
2767
2760
|
le.radio,
|
|
2768
|
-
le[
|
|
2761
|
+
le[o],
|
|
2769
2762
|
{
|
|
2770
|
-
[le.checked]:
|
|
2771
|
-
[le.disabled]:
|
|
2772
|
-
[le.error]: M && !
|
|
2763
|
+
[le.checked]: f,
|
|
2764
|
+
[le.disabled]: E,
|
|
2765
|
+
[le.error]: M && !E
|
|
2773
2766
|
},
|
|
2774
2767
|
h
|
|
2775
2768
|
),
|
|
2776
|
-
style:
|
|
2777
|
-
tabIndex:
|
|
2778
|
-
"data-testid": `${
|
|
2769
|
+
style: v,
|
|
2770
|
+
tabIndex: C || 1,
|
|
2771
|
+
"data-testid": `${go}${U}`,
|
|
2779
2772
|
children: [
|
|
2780
2773
|
/* @__PURE__ */ n.jsx(
|
|
2781
2774
|
"input",
|
|
2782
2775
|
{
|
|
2783
2776
|
"aria-errormessage": c,
|
|
2784
2777
|
"aria-invalid": M,
|
|
2785
|
-
checked:
|
|
2778
|
+
checked: f,
|
|
2786
2779
|
className: le.input,
|
|
2787
2780
|
"data-testid": `radio-${U}`,
|
|
2788
|
-
disabled:
|
|
2781
|
+
disabled: E,
|
|
2789
2782
|
id: U,
|
|
2790
2783
|
name: a,
|
|
2791
2784
|
ref: r,
|
|
@@ -2798,106 +2791,106 @@ const Ft = Object.assign(zs, {
|
|
|
2798
2791
|
/* @__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
2792
|
]
|
|
2800
2793
|
}
|
|
2801
|
-
),
|
|
2794
|
+
), B = () => /* @__PURE__ */ n.jsxs(
|
|
2802
2795
|
"label",
|
|
2803
2796
|
{
|
|
2804
|
-
"aria-checked":
|
|
2805
|
-
"aria-disabled":
|
|
2797
|
+
"aria-checked": f,
|
|
2798
|
+
"aria-disabled": E,
|
|
2806
2799
|
"data-testid": I ? w : bo,
|
|
2807
2800
|
htmlFor: U,
|
|
2808
|
-
style:
|
|
2801
|
+
style: x,
|
|
2809
2802
|
className: k(le.label, {
|
|
2810
|
-
[k(le.container, le[y],
|
|
2811
|
-
[
|
|
2803
|
+
[k(le.container, le[y], p)]: I,
|
|
2804
|
+
[D]: I && A
|
|
2812
2805
|
}),
|
|
2813
|
-
onKeyDown:
|
|
2814
|
-
...
|
|
2806
|
+
onKeyDown: O,
|
|
2807
|
+
...j,
|
|
2815
2808
|
children: [
|
|
2816
2809
|
T(),
|
|
2817
2810
|
I && m
|
|
2818
2811
|
]
|
|
2819
2812
|
}
|
|
2820
2813
|
);
|
|
2821
|
-
return I ?
|
|
2814
|
+
return I ? B() : /* @__PURE__ */ n.jsxs(
|
|
2822
2815
|
"div",
|
|
2823
2816
|
{
|
|
2824
|
-
className: k(le.container, le[y],
|
|
2825
|
-
[
|
|
2817
|
+
className: k(le.container, le[y], p, {
|
|
2818
|
+
[D]: A
|
|
2826
2819
|
}),
|
|
2827
2820
|
"data-testid": w,
|
|
2828
2821
|
children: [
|
|
2829
|
-
|
|
2822
|
+
B(),
|
|
2830
2823
|
m
|
|
2831
2824
|
]
|
|
2832
2825
|
}
|
|
2833
2826
|
);
|
|
2834
2827
|
}
|
|
2835
|
-
),
|
|
2836
|
-
group:
|
|
2828
|
+
), ho = "_group_o6mjt_7", mo = "_vertical_o6mjt_12", yo = "_horizontal_o6mjt_16", qt = {
|
|
2829
|
+
group: ho,
|
|
2837
2830
|
vertical: mo,
|
|
2838
2831
|
horizontal: yo
|
|
2839
2832
|
}, vo = K(
|
|
2840
2833
|
(e, r) => {
|
|
2841
2834
|
const {
|
|
2842
2835
|
id: a,
|
|
2843
|
-
name:
|
|
2836
|
+
name: s,
|
|
2844
2837
|
value: i,
|
|
2845
|
-
options:
|
|
2838
|
+
options: o,
|
|
2846
2839
|
className: l,
|
|
2847
2840
|
radioClassName: c,
|
|
2848
2841
|
disabled: _ = !1,
|
|
2849
|
-
layout:
|
|
2850
|
-
"data-testid":
|
|
2842
|
+
layout: f = "vertical",
|
|
2843
|
+
"data-testid": p,
|
|
2851
2844
|
...h
|
|
2852
2845
|
} = e;
|
|
2853
2846
|
return /* @__PURE__ */ n.jsx(
|
|
2854
2847
|
"div",
|
|
2855
2848
|
{
|
|
2856
|
-
className:
|
|
2857
|
-
"data-testid":
|
|
2849
|
+
className: je(qt.group, qt[f], l),
|
|
2850
|
+
"data-testid": p ?? `radio-group-${s}`,
|
|
2858
2851
|
id: a,
|
|
2859
2852
|
ref: r,
|
|
2860
|
-
children:
|
|
2861
|
-
const
|
|
2853
|
+
children: o.map(({ label: m, value: g, disabled: y }) => {
|
|
2854
|
+
const C = `${s}-${String(g)}`, v = String(g) === String(i);
|
|
2862
2855
|
return /* @__PURE__ */ n.jsx(
|
|
2863
2856
|
er,
|
|
2864
2857
|
{
|
|
2865
|
-
id:
|
|
2866
|
-
checked:
|
|
2867
|
-
"data-testid":
|
|
2858
|
+
id: C,
|
|
2859
|
+
checked: v,
|
|
2860
|
+
"data-testid": C,
|
|
2868
2861
|
disabled: _ || y,
|
|
2869
|
-
name:
|
|
2870
|
-
value:
|
|
2862
|
+
name: s,
|
|
2863
|
+
value: g,
|
|
2871
2864
|
className: c,
|
|
2872
2865
|
...h,
|
|
2873
2866
|
children: m
|
|
2874
2867
|
},
|
|
2875
|
-
|
|
2868
|
+
C
|
|
2876
2869
|
);
|
|
2877
2870
|
})
|
|
2878
2871
|
}
|
|
2879
2872
|
);
|
|
2880
2873
|
}
|
|
2881
|
-
),
|
|
2874
|
+
), el = Object.assign(er, {
|
|
2882
2875
|
Group: vo
|
|
2883
|
-
}), xo = "_root_1jj3e_25", wo = "_unordered_1jj3e_39", Co = "_ordered_1jj3e_43", So = "_sm_1jj3e_48",
|
|
2876
|
+
}), xo = "_root_1jj3e_25", wo = "_unordered_1jj3e_39", Co = "_ordered_1jj3e_43", So = "_sm_1jj3e_48", jo = "_md_1jj3e_59", Lo = "_lg_1jj3e_70", Eo = "_xl_1jj3e_81", ut = {
|
|
2884
2877
|
root: xo,
|
|
2885
2878
|
unordered: wo,
|
|
2886
2879
|
ordered: Co,
|
|
2887
2880
|
sm: So,
|
|
2888
|
-
md:
|
|
2889
|
-
lg:
|
|
2890
|
-
xl:
|
|
2881
|
+
md: jo,
|
|
2882
|
+
lg: Lo,
|
|
2883
|
+
xl: Eo
|
|
2891
2884
|
}, ko = (e) => {
|
|
2892
|
-
const { children: r, className: a, "data-testid":
|
|
2893
|
-
return /* @__PURE__ */ n.jsx("li", { "data-testid":
|
|
2894
|
-
},
|
|
2885
|
+
const { children: r, className: a, "data-testid": s = "list-item" } = e;
|
|
2886
|
+
return /* @__PURE__ */ n.jsx("li", { "data-testid": s, className: a, children: r });
|
|
2887
|
+
}, tl = Object.assign(
|
|
2895
2888
|
K((e, r) => {
|
|
2896
2889
|
const {
|
|
2897
2890
|
variant: a = "unordered",
|
|
2898
|
-
className:
|
|
2891
|
+
className: s,
|
|
2899
2892
|
children: i,
|
|
2900
|
-
size:
|
|
2893
|
+
size: o = "md",
|
|
2901
2894
|
"data-testid": l = "list",
|
|
2902
2895
|
...c
|
|
2903
2896
|
} = e, _ = a === "ordered" ? "ol" : "ul";
|
|
@@ -2906,14 +2899,14 @@ const Ft = Object.assign(zs, {
|
|
|
2906
2899
|
{
|
|
2907
2900
|
"data-testid": l,
|
|
2908
2901
|
ref: r,
|
|
2909
|
-
className:
|
|
2902
|
+
className: je(ut.root, ut[a], ut[o], s),
|
|
2910
2903
|
...a === "ordered" && c,
|
|
2911
2904
|
children: i
|
|
2912
2905
|
}
|
|
2913
2906
|
);
|
|
2914
2907
|
}),
|
|
2915
2908
|
{ 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",
|
|
2909
|
+
), 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
2910
|
wrapper: Mo,
|
|
2918
2911
|
viewport: Io,
|
|
2919
2912
|
mask: $o,
|
|
@@ -2921,25 +2914,25 @@ const Ft = Object.assign(zs, {
|
|
|
2921
2914
|
maskRight: Ro,
|
|
2922
2915
|
visible: No,
|
|
2923
2916
|
control: Ao,
|
|
2924
|
-
xs:
|
|
2925
|
-
sm:
|
|
2926
|
-
md:
|
|
2927
|
-
left:
|
|
2928
|
-
right:
|
|
2917
|
+
xs: Do,
|
|
2918
|
+
sm: Oo,
|
|
2919
|
+
md: Po,
|
|
2920
|
+
left: Bo,
|
|
2921
|
+
right: zo
|
|
2929
2922
|
}, Uo = "white", Fo = ({
|
|
2930
2923
|
children: e,
|
|
2931
2924
|
withControls: r = !0,
|
|
2932
2925
|
className: a,
|
|
2933
|
-
size:
|
|
2926
|
+
size: s
|
|
2934
2927
|
}) => {
|
|
2935
|
-
const i =
|
|
2928
|
+
const i = qe(null), [o, l] = de(!1), [c, _] = de(!1), { ref: f, bgColor: p } = ft(), h = f ?? { current: null }, m = p ?? Uo, g = r && o, y = r && c, C = ({ direction: u }) => /* @__PURE__ */ n.jsx(
|
|
2936
2929
|
"svg",
|
|
2937
2930
|
{
|
|
2938
2931
|
height: "12px",
|
|
2939
2932
|
width: "12px",
|
|
2940
2933
|
viewBox: "0 0 185.343 185.343",
|
|
2941
2934
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2942
|
-
children: /* @__PURE__ */ n.jsx("g", { transform:
|
|
2935
|
+
children: /* @__PURE__ */ n.jsx("g", { transform: u === "left" ? "scale(-1,1) translate(-185.343,0)" : void 0, children: /* @__PURE__ */ n.jsx(
|
|
2943
2936
|
"path",
|
|
2944
2937
|
{
|
|
2945
2938
|
fill: "currentColor",
|
|
@@ -2947,36 +2940,36 @@ const Ft = Object.assign(zs, {
|
|
|
2947
2940
|
}
|
|
2948
2941
|
) })
|
|
2949
2942
|
}
|
|
2950
|
-
),
|
|
2951
|
-
const
|
|
2952
|
-
if (!
|
|
2953
|
-
const w = Math.round(
|
|
2954
|
-
l(w > 0), _(
|
|
2955
|
-
},
|
|
2943
|
+
), v = () => {
|
|
2944
|
+
const u = i.current;
|
|
2945
|
+
if (!u) return;
|
|
2946
|
+
const w = Math.round(u.scrollLeft), j = Math.round(u.scrollLeft + u.clientWidth), M = Math.round(u.scrollWidth);
|
|
2947
|
+
l(w > 0), _(j < M);
|
|
2948
|
+
}, x = (u) => {
|
|
2956
2949
|
const w = i.current;
|
|
2957
2950
|
if (!w) return;
|
|
2958
|
-
const
|
|
2959
|
-
w.scrollBy({ left:
|
|
2951
|
+
const j = w.clientWidth;
|
|
2952
|
+
w.scrollBy({ left: u === "left" ? -j : j, behavior: "smooth" });
|
|
2960
2953
|
};
|
|
2961
2954
|
return oe(() => {
|
|
2962
|
-
const
|
|
2963
|
-
if (!
|
|
2964
|
-
const w = (
|
|
2965
|
-
Math.abs(
|
|
2955
|
+
const u = i.current;
|
|
2956
|
+
if (!u) return;
|
|
2957
|
+
const w = (j) => {
|
|
2958
|
+
Math.abs(j.deltaX) > Math.abs(j.deltaY) || u.scrollWidth > u.clientWidth && (j.preventDefault(), u.scrollBy({ left: j.deltaY, behavior: "auto" }));
|
|
2966
2959
|
};
|
|
2967
|
-
return
|
|
2960
|
+
return u.addEventListener("wheel", w, { passive: !1 }), () => u.removeEventListener("wheel", w);
|
|
2968
2961
|
}, []), oe(() => {
|
|
2969
|
-
|
|
2970
|
-
const
|
|
2971
|
-
if (
|
|
2972
|
-
return
|
|
2973
|
-
|
|
2962
|
+
v();
|
|
2963
|
+
const u = i.current;
|
|
2964
|
+
if (u)
|
|
2965
|
+
return u.addEventListener("scroll", v, { passive: !0 }), window.addEventListener("resize", v), () => {
|
|
2966
|
+
u.removeEventListener("scroll", v), window.removeEventListener("resize", v);
|
|
2974
2967
|
};
|
|
2975
2968
|
}, []), /* @__PURE__ */ n.jsxs("div", { ref: h, className: k(ne.wrapper, a), children: [
|
|
2976
|
-
|
|
2969
|
+
g && /* @__PURE__ */ n.jsx(
|
|
2977
2970
|
"div",
|
|
2978
2971
|
{
|
|
2979
|
-
className: k(ne.mask, ne.maskLeft,
|
|
2972
|
+
className: k(ne.mask, ne.maskLeft, o && ne.visible),
|
|
2980
2973
|
style: {
|
|
2981
2974
|
background: `linear-gradient(to right, ${m} 17%, transparent 80%)`
|
|
2982
2975
|
}
|
|
@@ -2992,15 +2985,15 @@ const Ft = Object.assign(zs, {
|
|
|
2992
2985
|
}
|
|
2993
2986
|
),
|
|
2994
2987
|
/* @__PURE__ */ n.jsx("div", { ref: i, className: ne.viewport, children: e }),
|
|
2995
|
-
|
|
2988
|
+
g && /* @__PURE__ */ n.jsx(
|
|
2996
2989
|
"button",
|
|
2997
2990
|
{
|
|
2998
2991
|
type: "button",
|
|
2999
2992
|
tabIndex: -1,
|
|
3000
2993
|
"aria-hidden": "true",
|
|
3001
|
-
className: k(ne.control, ne.left, ne[
|
|
3002
|
-
onClick: () =>
|
|
3003
|
-
children: /* @__PURE__ */ n.jsx(
|
|
2994
|
+
className: k(ne.control, ne.left, ne[s]),
|
|
2995
|
+
onClick: () => x("left"),
|
|
2996
|
+
children: /* @__PURE__ */ n.jsx(C, { direction: "left" })
|
|
3004
2997
|
}
|
|
3005
2998
|
),
|
|
3006
2999
|
y && /* @__PURE__ */ n.jsx(
|
|
@@ -3009,9 +3002,9 @@ const Ft = Object.assign(zs, {
|
|
|
3009
3002
|
type: "button",
|
|
3010
3003
|
tabIndex: -1,
|
|
3011
3004
|
"aria-hidden": "true",
|
|
3012
|
-
className: k(ne.control, ne.right, ne[
|
|
3013
|
-
onClick: () =>
|
|
3014
|
-
children: /* @__PURE__ */ n.jsx(
|
|
3005
|
+
className: k(ne.control, ne.right, ne[s]),
|
|
3006
|
+
onClick: () => x("right"),
|
|
3007
|
+
children: /* @__PURE__ */ n.jsx(C, { direction: "right" })
|
|
3015
3008
|
}
|
|
3016
3009
|
)
|
|
3017
3010
|
] });
|
|
@@ -3036,30 +3029,30 @@ const Ft = Object.assign(zs, {
|
|
|
3036
3029
|
children: e,
|
|
3037
3030
|
defaultActiveTab: r,
|
|
3038
3031
|
activeTab: a,
|
|
3039
|
-
onChange:
|
|
3032
|
+
onChange: s
|
|
3040
3033
|
}) => {
|
|
3041
|
-
const [i,
|
|
3042
|
-
l ||
|
|
3034
|
+
const [i, o] = de(r), l = a !== void 0, c = l ? a : i, _ = (f) => {
|
|
3035
|
+
l || o(f), s && s(f);
|
|
3043
3036
|
};
|
|
3044
3037
|
return /* @__PURE__ */ n.jsx(tr.Provider, { value: { activeTab: c, setTab: _ }, children: e });
|
|
3045
3038
|
}, oi = ({
|
|
3046
3039
|
mode: e,
|
|
3047
3040
|
item: r,
|
|
3048
3041
|
isActive: a,
|
|
3049
|
-
showBadge:
|
|
3042
|
+
showBadge: s,
|
|
3050
3043
|
badgeProps: i,
|
|
3051
|
-
size:
|
|
3044
|
+
size: o,
|
|
3052
3045
|
isDisabled: l,
|
|
3053
3046
|
onSelectTab: c
|
|
3054
3047
|
}) => {
|
|
3055
3048
|
const {
|
|
3056
3049
|
value: _,
|
|
3057
|
-
label:
|
|
3058
|
-
prefix:
|
|
3050
|
+
label: f,
|
|
3051
|
+
prefix: p,
|
|
3059
3052
|
prefixWrapperProps: h = {},
|
|
3060
3053
|
postfix: m,
|
|
3061
|
-
postfixWrapperProps:
|
|
3062
|
-
} = r, { className: y, ...
|
|
3054
|
+
postfixWrapperProps: g = {}
|
|
3055
|
+
} = r, { className: y, ...C } = h, { className: v, ...x } = g, u = {
|
|
3063
3056
|
primary: ce["typography-label-3-medium"],
|
|
3064
3057
|
secondary: ce["typography-label-3-regular"],
|
|
3065
3058
|
prefix: ce["typography-label-3-medium"],
|
|
@@ -3068,56 +3061,56 @@ const Ft = Object.assign(zs, {
|
|
|
3068
3061
|
size: ai,
|
|
3069
3062
|
position: ni,
|
|
3070
3063
|
...i
|
|
3071
|
-
},
|
|
3064
|
+
}, j = k(J.tab, J[e], J[o], {
|
|
3072
3065
|
[J.selected]: a,
|
|
3073
3066
|
[J.disabled]: l
|
|
3074
3067
|
}), M = k(
|
|
3075
3068
|
J.tabPrefix,
|
|
3076
3069
|
y,
|
|
3077
3070
|
J[e],
|
|
3078
|
-
|
|
3071
|
+
u.prefix,
|
|
3079
3072
|
{
|
|
3080
3073
|
[J.selected]: a,
|
|
3081
3074
|
[J.disabled]: l
|
|
3082
3075
|
}
|
|
3083
|
-
),
|
|
3076
|
+
), E = k(
|
|
3084
3077
|
J.tabPostfix,
|
|
3085
|
-
|
|
3078
|
+
v,
|
|
3086
3079
|
J[e],
|
|
3087
|
-
|
|
3080
|
+
u.postfix,
|
|
3088
3081
|
{
|
|
3089
3082
|
[J.selected]: a,
|
|
3090
3083
|
[J.disabled]: l
|
|
3091
3084
|
}
|
|
3092
|
-
), I = k(J.tabLabel, J[e],
|
|
3085
|
+
), I = k(J.tabLabel, J[e], u[e]), A = (U) => {
|
|
3093
3086
|
a || l || (c(_), U.currentTarget.scrollIntoView({ behavior: "smooth", inline: "center", block: "nearest" }));
|
|
3094
|
-
},
|
|
3087
|
+
}, D = /* @__PURE__ */ n.jsxs(
|
|
3095
3088
|
"button",
|
|
3096
3089
|
{
|
|
3097
|
-
className:
|
|
3090
|
+
className: j,
|
|
3098
3091
|
role: "tab",
|
|
3099
|
-
"aria-label":
|
|
3092
|
+
"aria-label": f,
|
|
3100
3093
|
"aria-selected": a,
|
|
3101
3094
|
"aria-disabled": l,
|
|
3102
3095
|
"aria-controls": `tab-panel-${_}`,
|
|
3103
3096
|
"data-testid": `tab-item-${_}`,
|
|
3104
3097
|
onClick: A,
|
|
3105
3098
|
children: [
|
|
3106
|
-
|
|
3099
|
+
p && /* @__PURE__ */ n.jsx(
|
|
3107
3100
|
"span",
|
|
3108
3101
|
{
|
|
3109
3102
|
className: M,
|
|
3110
|
-
...
|
|
3103
|
+
...C,
|
|
3111
3104
|
"data-testid": `tab-prefix-${_}`,
|
|
3112
|
-
children:
|
|
3105
|
+
children: p
|
|
3113
3106
|
}
|
|
3114
3107
|
),
|
|
3115
|
-
/* @__PURE__ */ n.jsx("span", { className: I, "data-testid": `tab-label-${_}`, children:
|
|
3108
|
+
/* @__PURE__ */ n.jsx("span", { className: I, "data-testid": `tab-label-${_}`, children: f }),
|
|
3116
3109
|
m && /* @__PURE__ */ n.jsx(
|
|
3117
3110
|
"span",
|
|
3118
3111
|
{
|
|
3119
|
-
className:
|
|
3120
|
-
...
|
|
3112
|
+
className: E,
|
|
3113
|
+
...x,
|
|
3121
3114
|
"data-testid": `tab-postfix-${_}`,
|
|
3122
3115
|
children: m
|
|
3123
3116
|
}
|
|
@@ -3125,14 +3118,14 @@ const Ft = Object.assign(zs, {
|
|
|
3125
3118
|
]
|
|
3126
3119
|
}
|
|
3127
3120
|
);
|
|
3128
|
-
return
|
|
3121
|
+
return s ? /* @__PURE__ */ n.jsx(Qa, { ...w, "data-testid": `tab-badge-${_}`, children: D }) : D;
|
|
3129
3122
|
}, ii = ({
|
|
3130
3123
|
mode: e,
|
|
3131
3124
|
items: r,
|
|
3132
3125
|
size: a = ti,
|
|
3133
|
-
isAllItemsDisabled:
|
|
3126
|
+
isAllItemsDisabled: s = ri
|
|
3134
3127
|
}) => {
|
|
3135
|
-
const { activeTab: i, setTab:
|
|
3128
|
+
const { activeTab: i, setTab: o } = rr(), l = Wa();
|
|
3136
3129
|
return /* @__PURE__ */ n.jsx(Fo, { size: a, withControls: l, children: /* @__PURE__ */ n.jsx(
|
|
3137
3130
|
"div",
|
|
3138
3131
|
{
|
|
@@ -3149,8 +3142,8 @@ const Ft = Object.assign(zs, {
|
|
|
3149
3142
|
showBadge: c.showBadge,
|
|
3150
3143
|
badgeProps: c.badgeProps,
|
|
3151
3144
|
isActive: i === c.value,
|
|
3152
|
-
isDisabled:
|
|
3153
|
-
onSelectTab:
|
|
3145
|
+
isDisabled: s || c.isDisabled,
|
|
3146
|
+
onSelectTab: o
|
|
3154
3147
|
},
|
|
3155
3148
|
c.value
|
|
3156
3149
|
))
|
|
@@ -3166,22 +3159,22 @@ const Ft = Object.assign(zs, {
|
|
|
3166
3159
|
children: r
|
|
3167
3160
|
}
|
|
3168
3161
|
), ci = ({ children: e, ...r }) => {
|
|
3169
|
-
const { activeTab: a } = rr(),
|
|
3170
|
-
return /* @__PURE__ */ n.jsx("div", { "data-testid": "tab-content", ...r, children:
|
|
3171
|
-
},
|
|
3162
|
+
const { activeTab: a } = rr(), s = Array.isArray(e) ? e : [e], i = (o, l) => _t.isValidElement(o) && typeof o.props == "object" && o.props !== null && l in o.props;
|
|
3163
|
+
return /* @__PURE__ */ n.jsx("div", { "data-testid": "tab-content", ...r, children: s.map((o) => i(o, "tabValue") && String(o.props.tabValue) === a ? o : null) });
|
|
3164
|
+
}, rl = {
|
|
3172
3165
|
Provider: si,
|
|
3173
3166
|
Content: ci,
|
|
3174
3167
|
Panel: li,
|
|
3175
3168
|
Bar: ii
|
|
3176
|
-
}, di = "_root_1fbbw_34", ui = "_open_1fbbw_51", _i = "_xs_1fbbw_55", pi = "_s_1fbbw_61", fi = "_m_1fbbw_67",
|
|
3169
|
+
}, di = "_root_1fbbw_34", ui = "_open_1fbbw_51", _i = "_xs_1fbbw_55", pi = "_s_1fbbw_61", fi = "_m_1fbbw_67", gi = "_neutral_1fbbw_73", bi = "_contrast_1fbbw_78", hi = "_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", ji = "_buttonStack_1fbbw_148", se = {
|
|
3177
3170
|
root: di,
|
|
3178
3171
|
open: ui,
|
|
3179
3172
|
xs: _i,
|
|
3180
3173
|
s: pi,
|
|
3181
3174
|
m: fi,
|
|
3182
|
-
neutral:
|
|
3175
|
+
neutral: gi,
|
|
3183
3176
|
contrast: bi,
|
|
3184
|
-
accent:
|
|
3177
|
+
accent: hi,
|
|
3185
3178
|
typography: mi,
|
|
3186
3179
|
title: yi,
|
|
3187
3180
|
text: vi,
|
|
@@ -3189,8 +3182,8 @@ const Ft = Object.assign(zs, {
|
|
|
3189
3182
|
content: wi,
|
|
3190
3183
|
closeButton: Ci,
|
|
3191
3184
|
hasMedia: Si,
|
|
3192
|
-
buttonStack:
|
|
3193
|
-
},
|
|
3185
|
+
buttonStack: ji
|
|
3186
|
+
}, Li = () => /* @__PURE__ */ n.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", stroke: "currentColor", children: /* @__PURE__ */ n.jsx("path", { d: "M18 6 6 18M6 6l12 12" }) }), Ei = () => /* @__PURE__ */ n.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 9", fill: "currentColor", children: [
|
|
3194
3187
|
/* @__PURE__ */ n.jsx(
|
|
3195
3188
|
"path",
|
|
3196
3189
|
{
|
|
@@ -3360,247 +3353,240 @@ const Ft = Object.assign(zs, {
|
|
|
3360
3353
|
{ mode: "primary", buttonStyle: "accent", size: "s" }
|
|
3361
3354
|
]
|
|
3362
3355
|
}
|
|
3363
|
-
}, $i = (e, r, a) =>
|
|
3364
|
-
const
|
|
3356
|
+
}, $i = (e, r, a) => {
|
|
3357
|
+
const s = La(r, 1, 3), i = Ii[a][s];
|
|
3365
3358
|
return i[Math.min(e, i.length - 1)];
|
|
3366
3359
|
}, Wt = ({
|
|
3367
3360
|
text: e,
|
|
3368
3361
|
title: r,
|
|
3369
3362
|
media: a,
|
|
3370
|
-
variant:
|
|
3363
|
+
variant: s = "neutral",
|
|
3371
3364
|
size: i,
|
|
3372
|
-
classNames:
|
|
3365
|
+
classNames: o = {},
|
|
3373
3366
|
onClose: l,
|
|
3374
3367
|
buttons: c,
|
|
3375
3368
|
buttonProps: _,
|
|
3376
|
-
showClose:
|
|
3369
|
+
showClose: f
|
|
3377
3370
|
}) => {
|
|
3378
|
-
const
|
|
3371
|
+
const p = ["neutral", "accent"].includes(s) ? "contrast" : "primary", h = i === "m", m = !!(r && h), g = !!(a && h), y = c && !!c.length, C = !!(f && h) || !f && h && !y, v = i === "xs" ? 4 : 3;
|
|
3379
3372
|
return /* @__PURE__ */ n.jsxs("div", { className: se.content, children: [
|
|
3380
|
-
|
|
3381
|
-
/* @__PURE__ */ n.jsxs("div", { className:
|
|
3373
|
+
g && /* @__PURE__ */ n.jsx("div", { className: k(se.mediaWrapper, o.mediaWrapper), children: a }),
|
|
3374
|
+
/* @__PURE__ */ n.jsxs("div", { className: o.textWrapper, children: [
|
|
3382
3375
|
m && /* @__PURE__ */ n.jsx(
|
|
3383
|
-
|
|
3376
|
+
zt.Subtitle,
|
|
3384
3377
|
{
|
|
3385
|
-
className: k(se.typography, se.title,
|
|
3378
|
+
className: k(se.typography, se.title, o.typography),
|
|
3386
3379
|
size: 1,
|
|
3387
3380
|
as: "h3",
|
|
3388
|
-
typographyStyle:
|
|
3381
|
+
typographyStyle: p,
|
|
3389
3382
|
children: r
|
|
3390
3383
|
}
|
|
3391
3384
|
),
|
|
3392
3385
|
/* @__PURE__ */ n.jsx(
|
|
3393
|
-
|
|
3386
|
+
zt.Label,
|
|
3394
3387
|
{
|
|
3395
|
-
className: k(se.typography, se.text,
|
|
3396
|
-
typographyStyle:
|
|
3397
|
-
size:
|
|
3388
|
+
className: k(se.typography, se.text, o.typography),
|
|
3389
|
+
typographyStyle: p,
|
|
3390
|
+
size: v,
|
|
3398
3391
|
children: e
|
|
3399
3392
|
}
|
|
3400
3393
|
)
|
|
3401
3394
|
] }),
|
|
3402
|
-
|
|
3395
|
+
C && /* @__PURE__ */ n.jsx(
|
|
3403
3396
|
"button",
|
|
3404
3397
|
{
|
|
3405
3398
|
type: "button",
|
|
3406
|
-
className: k(se.closeButton, se[
|
|
3407
|
-
[se.hasMedia]:
|
|
3399
|
+
className: k(se.closeButton, se[s], o.closeButton, {
|
|
3400
|
+
[se.hasMedia]: g
|
|
3408
3401
|
}),
|
|
3409
3402
|
onClick: l,
|
|
3410
3403
|
"aria-label": "Закрыть подсказку",
|
|
3411
3404
|
"data-testid": "tooltip-close-button",
|
|
3412
|
-
children: /* @__PURE__ */ n.jsx(
|
|
3405
|
+
children: /* @__PURE__ */ n.jsx(Li, {})
|
|
3413
3406
|
}
|
|
3414
3407
|
),
|
|
3415
|
-
h && y && /* @__PURE__ */ n.jsx("div", { className: se.buttonStack, children: c.map((
|
|
3416
|
-
const
|
|
3417
|
-
|
|
3408
|
+
h && y && /* @__PURE__ */ n.jsx("div", { className: se.buttonStack, children: c.map((x, u) => {
|
|
3409
|
+
const j = {
|
|
3410
|
+
...$i(u, c.length, s),
|
|
3418
3411
|
..._,
|
|
3419
|
-
...
|
|
3420
|
-
}, { closeOnClick: M, ...
|
|
3421
|
-
var
|
|
3422
|
-
(
|
|
3412
|
+
...x
|
|
3413
|
+
}, { closeOnClick: M, ...E } = j, I = (A) => {
|
|
3414
|
+
var D;
|
|
3415
|
+
(D = E.onClick) == null || D.call(E, A), M && (l == null || l());
|
|
3423
3416
|
};
|
|
3424
|
-
return /* @__PURE__ */ n.jsx(
|
|
3425
|
-
ha,
|
|
3426
|
-
{
|
|
3427
|
-
...j,
|
|
3428
|
-
onClick: I
|
|
3429
|
-
},
|
|
3430
|
-
d
|
|
3431
|
-
);
|
|
3417
|
+
return /* @__PURE__ */ n.jsx(ga, { ...E, onClick: I }, u);
|
|
3432
3418
|
}) })
|
|
3433
3419
|
] });
|
|
3434
|
-
},
|
|
3420
|
+
}, al = ({
|
|
3435
3421
|
customContent: e,
|
|
3436
3422
|
children: r,
|
|
3437
3423
|
placement: a = "top",
|
|
3438
|
-
contentClassNames:
|
|
3424
|
+
contentClassNames: s,
|
|
3439
3425
|
mouseEnterDelay: i = 0,
|
|
3440
|
-
mouseLeaveDelay:
|
|
3426
|
+
mouseLeaveDelay: o = 0.1,
|
|
3441
3427
|
showArrow: l = !0,
|
|
3442
3428
|
showClose: c = !0,
|
|
3443
3429
|
trigger: _ = "hover",
|
|
3444
|
-
variant:
|
|
3445
|
-
size:
|
|
3430
|
+
variant: f = "neutral",
|
|
3431
|
+
size: p = "s",
|
|
3446
3432
|
text: h,
|
|
3447
3433
|
title: m,
|
|
3448
|
-
media:
|
|
3434
|
+
media: g,
|
|
3449
3435
|
buttons: y,
|
|
3450
|
-
buttonProps:
|
|
3451
|
-
onClose:
|
|
3452
|
-
...
|
|
3436
|
+
buttonProps: C,
|
|
3437
|
+
onClose: v,
|
|
3438
|
+
...x
|
|
3453
3439
|
}) => {
|
|
3454
|
-
const [
|
|
3455
|
-
w(!1),
|
|
3456
|
-
}, A = e || (
|
|
3440
|
+
const [u, w] = de(!1), [j, M] = de(!1), E = p === "m" ? ki : Mi, I = () => {
|
|
3441
|
+
w(!1), v == null || v();
|
|
3442
|
+
}, A = e || (p === "m" ? /* @__PURE__ */ n.jsx(
|
|
3457
3443
|
Wt,
|
|
3458
3444
|
{
|
|
3459
|
-
classNames:
|
|
3445
|
+
classNames: s,
|
|
3460
3446
|
text: h,
|
|
3461
|
-
variant:
|
|
3462
|
-
size:
|
|
3447
|
+
variant: f,
|
|
3448
|
+
size: p,
|
|
3463
3449
|
onClose: I,
|
|
3464
3450
|
title: m,
|
|
3465
|
-
media:
|
|
3451
|
+
media: g,
|
|
3466
3452
|
showClose: c,
|
|
3467
3453
|
buttons: y,
|
|
3468
|
-
buttonProps:
|
|
3454
|
+
buttonProps: C
|
|
3469
3455
|
}
|
|
3470
3456
|
) : /* @__PURE__ */ n.jsx(
|
|
3471
3457
|
Wt,
|
|
3472
3458
|
{
|
|
3473
|
-
classNames:
|
|
3459
|
+
classNames: s,
|
|
3474
3460
|
text: h,
|
|
3475
|
-
variant:
|
|
3476
|
-
size:
|
|
3461
|
+
variant: f,
|
|
3462
|
+
size: p,
|
|
3477
3463
|
onClose: I
|
|
3478
3464
|
}
|
|
3479
3465
|
));
|
|
3480
3466
|
return oe(() => {
|
|
3481
|
-
if (
|
|
3482
|
-
const
|
|
3483
|
-
return () => cancelAnimationFrame(
|
|
3467
|
+
if (u) {
|
|
3468
|
+
const D = requestAnimationFrame(() => M(!0));
|
|
3469
|
+
return () => cancelAnimationFrame(D);
|
|
3484
3470
|
}
|
|
3485
3471
|
M(!1);
|
|
3486
|
-
}, [
|
|
3472
|
+
}, [u]), /* @__PURE__ */ n.jsx(
|
|
3487
3473
|
kr,
|
|
3488
3474
|
{
|
|
3489
|
-
visible:
|
|
3475
|
+
visible: u,
|
|
3490
3476
|
onVisibleChange: w,
|
|
3491
3477
|
classNames: {
|
|
3492
|
-
root: k(se.root, se[
|
|
3493
|
-
...
|
|
3478
|
+
root: k(se.root, se[f], se[p], j && se.open),
|
|
3479
|
+
...x.classNames
|
|
3494
3480
|
},
|
|
3495
3481
|
placement: a,
|
|
3496
3482
|
overlay: () => A,
|
|
3497
3483
|
trigger: _,
|
|
3498
3484
|
mouseEnterDelay: i,
|
|
3499
|
-
mouseLeaveDelay:
|
|
3485
|
+
mouseLeaveDelay: o,
|
|
3500
3486
|
motion: { motionName: "tooltipMotion" },
|
|
3501
|
-
builtinPlacements:
|
|
3487
|
+
builtinPlacements: E,
|
|
3502
3488
|
showArrow: l ? {
|
|
3503
|
-
content: /* @__PURE__ */ n.jsx(
|
|
3504
|
-
className: `tooltipArrow tooltipArrow-${
|
|
3489
|
+
content: /* @__PURE__ */ n.jsx(Ei, {}),
|
|
3490
|
+
className: `tooltipArrow tooltipArrow-${p}`
|
|
3505
3491
|
} : !1,
|
|
3506
3492
|
destroyTooltipOnHide: !0,
|
|
3507
|
-
...
|
|
3493
|
+
...x,
|
|
3508
3494
|
children: r
|
|
3509
3495
|
}
|
|
3510
3496
|
);
|
|
3511
|
-
},
|
|
3512
|
-
segmentedControl:
|
|
3513
|
-
segment:
|
|
3514
|
-
activeSegmentIndicator:
|
|
3515
|
-
stretched:
|
|
3497
|
+
}, Ti = "_segmentedControl_1yvz7_5", Ri = "_segment_1yvz7_5", Ni = "_activeSegmentIndicator_1yvz7_51", Ai = "_stretched_1yvz7_82", Di = "_s_1yvz7_5", Oi = "_icon_1yvz7_90", Pi = "_label_1yvz7_94", Bi = "_m_1yvz7_98", zi = "_l_1yvz7_94", De = {
|
|
3498
|
+
segmentedControl: Ti,
|
|
3499
|
+
segment: Ri,
|
|
3500
|
+
activeSegmentIndicator: Ni,
|
|
3501
|
+
stretched: Ai,
|
|
3516
3502
|
s: Di,
|
|
3517
3503
|
icon: Oi,
|
|
3518
3504
|
label: Pi,
|
|
3519
3505
|
m: Bi,
|
|
3520
|
-
l:
|
|
3506
|
+
l: zi
|
|
3521
3507
|
}, Ht = {
|
|
3522
3508
|
s: ce["typography-label-3-regular"],
|
|
3523
3509
|
m: ce["typography-label-2-regular"],
|
|
3524
3510
|
l: ce["typography-label-2-regular"]
|
|
3525
|
-
},
|
|
3526
|
-
var
|
|
3511
|
+
}, nl = (e) => {
|
|
3512
|
+
var u;
|
|
3527
3513
|
const {
|
|
3528
3514
|
className: r,
|
|
3529
3515
|
defaultValue: a,
|
|
3530
|
-
value:
|
|
3516
|
+
value: s,
|
|
3531
3517
|
size: i = "m",
|
|
3532
|
-
segments:
|
|
3518
|
+
segments: o,
|
|
3533
3519
|
stretched: l,
|
|
3534
3520
|
mode: c = "label",
|
|
3535
3521
|
onChange: _
|
|
3536
|
-
} = e,
|
|
3522
|
+
} = e, f = pt(), [p, h] = de(a || o[0].value), [m, g] = de({ width: 0, left: 0 }), y = qe(null);
|
|
3537
3523
|
oe(() => {
|
|
3538
|
-
|
|
3539
|
-
}, [
|
|
3540
|
-
|
|
3541
|
-
}, [
|
|
3542
|
-
const
|
|
3524
|
+
s && h(s);
|
|
3525
|
+
}, [s]), oe(() => {
|
|
3526
|
+
C();
|
|
3527
|
+
}, [p, o, i, l, c]);
|
|
3528
|
+
const C = () => {
|
|
3543
3529
|
if (!(y != null && y.current)) return;
|
|
3544
3530
|
const w = y.current.querySelector(
|
|
3545
3531
|
'[data-is-active-segment="true"]'
|
|
3546
3532
|
);
|
|
3547
|
-
w &&
|
|
3533
|
+
w && g({
|
|
3548
3534
|
width: w.offsetWidth,
|
|
3549
3535
|
left: w.offsetLeft
|
|
3550
3536
|
});
|
|
3551
|
-
},
|
|
3537
|
+
}, v = (u = o.find((w) => w.value === p)) == null ? void 0 : u.label, x = (w) => {
|
|
3552
3538
|
h(w), _ == null || _(w);
|
|
3553
3539
|
};
|
|
3554
|
-
return (
|
|
3540
|
+
return (o == null ? void 0 : o.length) === 0 ? null : /* @__PURE__ */ n.jsxs(
|
|
3555
3541
|
"div",
|
|
3556
3542
|
{
|
|
3557
3543
|
className: k(
|
|
3558
|
-
|
|
3559
|
-
|
|
3560
|
-
|
|
3544
|
+
De.segmentedControl,
|
|
3545
|
+
De[i],
|
|
3546
|
+
De[c],
|
|
3561
3547
|
{
|
|
3562
|
-
[
|
|
3548
|
+
[De.stretched]: l
|
|
3563
3549
|
},
|
|
3564
3550
|
r
|
|
3565
3551
|
),
|
|
3566
3552
|
"data-testid": "segmented-control-container",
|
|
3567
3553
|
ref: y,
|
|
3568
3554
|
children: [
|
|
3569
|
-
|
|
3570
|
-
const
|
|
3571
|
-
return /* @__PURE__ */ n.jsxs(
|
|
3555
|
+
o == null ? void 0 : o.map(({ label: w, value: j }, M) => {
|
|
3556
|
+
const E = () => x(j);
|
|
3557
|
+
return /* @__PURE__ */ n.jsxs(Oe, { children: [
|
|
3572
3558
|
/* @__PURE__ */ n.jsx(
|
|
3573
3559
|
"input",
|
|
3574
3560
|
{
|
|
3575
|
-
id:
|
|
3576
|
-
value: JSON.stringify(
|
|
3561
|
+
id: f + JSON.stringify(j),
|
|
3562
|
+
value: JSON.stringify(j),
|
|
3577
3563
|
type: "radio",
|
|
3578
|
-
checked:
|
|
3579
|
-
onClick:
|
|
3564
|
+
checked: p === j,
|
|
3565
|
+
onClick: E
|
|
3580
3566
|
}
|
|
3581
3567
|
),
|
|
3582
3568
|
/* @__PURE__ */ n.jsx(
|
|
3583
3569
|
"label",
|
|
3584
3570
|
{
|
|
3585
|
-
"data-is-active-segment":
|
|
3586
|
-
className: k(
|
|
3587
|
-
htmlFor:
|
|
3571
|
+
"data-is-active-segment": p === j,
|
|
3572
|
+
className: k(De.segment, Ht[i]),
|
|
3573
|
+
htmlFor: f + JSON.stringify(j),
|
|
3588
3574
|
"data-testid": "segmented-control-segment",
|
|
3589
3575
|
children: w
|
|
3590
3576
|
}
|
|
3591
3577
|
)
|
|
3592
|
-
] }, Je(JSON.stringify(
|
|
3578
|
+
] }, Je(JSON.stringify(j)) + M);
|
|
3593
3579
|
}),
|
|
3594
3580
|
/* @__PURE__ */ n.jsx(
|
|
3595
3581
|
"div",
|
|
3596
3582
|
{
|
|
3597
|
-
className: k(
|
|
3583
|
+
className: k(De.activeSegmentIndicator, Ht[i]),
|
|
3598
3584
|
"data-testid": "segmented-control-active-segment",
|
|
3599
3585
|
style: {
|
|
3600
3586
|
width: m.width,
|
|
3601
3587
|
left: m.left
|
|
3602
3588
|
},
|
|
3603
|
-
children:
|
|
3589
|
+
children: v
|
|
3604
3590
|
}
|
|
3605
3591
|
)
|
|
3606
3592
|
]
|
|
@@ -3608,25 +3594,25 @@ const Ft = Object.assign(zs, {
|
|
|
3608
3594
|
);
|
|
3609
3595
|
};
|
|
3610
3596
|
export {
|
|
3611
|
-
|
|
3597
|
+
Wi as Avatar,
|
|
3612
3598
|
Qa as Badge,
|
|
3613
|
-
|
|
3614
|
-
|
|
3615
|
-
|
|
3616
|
-
|
|
3617
|
-
|
|
3618
|
-
|
|
3599
|
+
ga as Button,
|
|
3600
|
+
Xi as Checkbox,
|
|
3601
|
+
Gi as ConfigProvider,
|
|
3602
|
+
Qi as Helper,
|
|
3603
|
+
Hi as Image,
|
|
3604
|
+
tl as List,
|
|
3619
3605
|
bn as Loader,
|
|
3620
|
-
|
|
3621
|
-
|
|
3622
|
-
|
|
3623
|
-
|
|
3624
|
-
|
|
3625
|
-
|
|
3626
|
-
|
|
3627
|
-
|
|
3606
|
+
el as Radio,
|
|
3607
|
+
nl as SegmentedControl,
|
|
3608
|
+
rl as Tabs,
|
|
3609
|
+
Zi as Tag,
|
|
3610
|
+
Ki as TextArea,
|
|
3611
|
+
Ji as TextInput,
|
|
3612
|
+
al as Tooltip,
|
|
3613
|
+
zt as Typography,
|
|
3628
3614
|
mn as enUS,
|
|
3629
|
-
|
|
3615
|
+
Yi as ruRU,
|
|
3630
3616
|
yn as useConfig,
|
|
3631
|
-
|
|
3617
|
+
Vi as useLocale
|
|
3632
3618
|
};
|