skillgrid 0.0.24-dev-38682-image.1170743 → 0.0.24-dev-40201-checkbox.1178431
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,10 +1,10 @@
|
|
|
1
1
|
import * as Et from "react";
|
|
2
|
-
import Lt, { forwardRef as Q, useState as
|
|
3
|
-
import { clsx as
|
|
2
|
+
import Lt, { forwardRef as Q, useState as De, useEffect as we, useRef as We, useCallback as Ce, Fragment as Mt, createContext as ra, useContext as sa, useLayoutEffect as na, useImperativeHandle as oa, useId as $t } from "react";
|
|
3
|
+
import { clsx as G } from "clsx";
|
|
4
4
|
import './index.css';function ia(t) {
|
|
5
5
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
6
6
|
}
|
|
7
|
-
var
|
|
7
|
+
var Be = { exports: {} }, ke = {};
|
|
8
8
|
/**
|
|
9
9
|
* @license React
|
|
10
10
|
* react-jsx-runtime.production.min.js
|
|
@@ -16,19 +16,19 @@ var Fe = { exports: {} }, Re = {};
|
|
|
16
16
|
*/
|
|
17
17
|
var ft;
|
|
18
18
|
function la() {
|
|
19
|
-
if (ft) return
|
|
19
|
+
if (ft) return ke;
|
|
20
20
|
ft = 1;
|
|
21
21
|
var t = Lt, r = Symbol.for("react.element"), a = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, i = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, n = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
22
22
|
function c(p, d, f) {
|
|
23
|
-
var _, g = {}, h = null,
|
|
24
|
-
f !== void 0 && (h = "" + f), d.key !== void 0 && (h = "" + d.key), d.ref !== void 0 && (
|
|
23
|
+
var _, g = {}, h = null, y = null;
|
|
24
|
+
f !== void 0 && (h = "" + f), d.key !== void 0 && (h = "" + d.key), d.ref !== void 0 && (y = d.ref);
|
|
25
25
|
for (_ in d) s.call(d, _) && !n.hasOwnProperty(_) && (g[_] = d[_]);
|
|
26
26
|
if (p && p.defaultProps) for (_ in d = p.defaultProps, d) g[_] === void 0 && (g[_] = d[_]);
|
|
27
|
-
return { $$typeof: r, type: p, key: h, ref:
|
|
27
|
+
return { $$typeof: r, type: p, key: h, ref: y, props: g, _owner: i.current };
|
|
28
28
|
}
|
|
29
|
-
return
|
|
29
|
+
return ke.Fragment = a, ke.jsx = c, ke.jsxs = c, ke;
|
|
30
30
|
}
|
|
31
|
-
var
|
|
31
|
+
var Te = {};
|
|
32
32
|
/**
|
|
33
33
|
* @license React
|
|
34
34
|
* react-jsx-runtime.development.js
|
|
@@ -41,39 +41,39 @@ var ke = {};
|
|
|
41
41
|
var gt;
|
|
42
42
|
function ca() {
|
|
43
43
|
return gt || (gt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
44
|
-
var t = Lt, r = Symbol.for("react.element"), a = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), n = Symbol.for("react.profiler"), c = Symbol.for("react.provider"), p = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), _ = Symbol.for("react.suspense_list"), g = Symbol.for("react.memo"), h = Symbol.for("react.lazy"),
|
|
44
|
+
var t = Lt, r = Symbol.for("react.element"), a = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), n = Symbol.for("react.profiler"), c = Symbol.for("react.provider"), p = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), _ = Symbol.for("react.suspense_list"), g = Symbol.for("react.memo"), h = Symbol.for("react.lazy"), y = Symbol.for("react.offscreen"), m = Symbol.iterator, w = "@@iterator";
|
|
45
45
|
function C(e) {
|
|
46
46
|
if (e === null || typeof e != "object")
|
|
47
47
|
return null;
|
|
48
|
-
var l =
|
|
48
|
+
var l = m && e[m] || e[w];
|
|
49
49
|
return typeof l == "function" ? l : null;
|
|
50
50
|
}
|
|
51
|
-
var
|
|
52
|
-
function
|
|
51
|
+
var E = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
52
|
+
function b(e) {
|
|
53
53
|
{
|
|
54
54
|
for (var l = arguments.length, u = new Array(l > 1 ? l - 1 : 0), v = 1; v < l; v++)
|
|
55
55
|
u[v - 1] = arguments[v];
|
|
56
|
-
|
|
56
|
+
I("error", e, u);
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
|
-
function
|
|
59
|
+
function I(e, l, u) {
|
|
60
60
|
{
|
|
61
|
-
var v =
|
|
61
|
+
var v = E.ReactDebugCurrentFrame, j = v.getStackAddendum();
|
|
62
62
|
j !== "" && (l += "%s", u = u.concat([j]));
|
|
63
|
-
var
|
|
63
|
+
var T = u.map(function(L) {
|
|
64
64
|
return String(L);
|
|
65
65
|
});
|
|
66
|
-
|
|
66
|
+
T.unshift("Warning: " + l), Function.prototype.apply.call(console[e], console, T);
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
|
-
var
|
|
70
|
-
|
|
71
|
-
function
|
|
72
|
-
return !!(typeof e == "string" || typeof e == "function" || e === s || e === n ||
|
|
69
|
+
var R = !1, P = !1, A = !1, k = !1, N = !1, D;
|
|
70
|
+
D = Symbol.for("react.module.reference");
|
|
71
|
+
function z(e) {
|
|
72
|
+
return !!(typeof e == "string" || typeof e == "function" || e === s || e === n || N || e === i || e === f || e === _ || k || e === y || R || P || A || typeof e == "object" && e !== null && (e.$$typeof === h || e.$$typeof === g || e.$$typeof === c || e.$$typeof === p || e.$$typeof === d || // This needs to include all possible module reference object
|
|
73
73
|
// types supported by any Flight configuration anywhere since
|
|
74
74
|
// we don't know which Flight build this will end up being used
|
|
75
75
|
// with.
|
|
76
|
-
e.$$typeof ===
|
|
76
|
+
e.$$typeof === D || e.getModuleId !== void 0));
|
|
77
77
|
}
|
|
78
78
|
function x(e, l, u) {
|
|
79
79
|
var v = e.displayName;
|
|
@@ -82,13 +82,13 @@ function ca() {
|
|
|
82
82
|
var j = l.displayName || l.name || "";
|
|
83
83
|
return j !== "" ? u + "(" + j + ")" : u;
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function W(e) {
|
|
86
86
|
return e.displayName || "Context";
|
|
87
87
|
}
|
|
88
88
|
function O(e) {
|
|
89
89
|
if (e == null)
|
|
90
90
|
return null;
|
|
91
|
-
if (typeof e.tag == "number" &&
|
|
91
|
+
if (typeof e.tag == "number" && b("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
92
92
|
return e.displayName || e.name || null;
|
|
93
93
|
if (typeof e == "string")
|
|
94
94
|
return e;
|
|
@@ -110,19 +110,19 @@ function ca() {
|
|
|
110
110
|
switch (e.$$typeof) {
|
|
111
111
|
case p:
|
|
112
112
|
var l = e;
|
|
113
|
-
return
|
|
113
|
+
return W(l) + ".Consumer";
|
|
114
114
|
case c:
|
|
115
115
|
var u = e;
|
|
116
|
-
return
|
|
116
|
+
return W(u._context) + ".Provider";
|
|
117
117
|
case d:
|
|
118
118
|
return x(e, e.render, "ForwardRef");
|
|
119
119
|
case g:
|
|
120
120
|
var v = e.displayName || null;
|
|
121
121
|
return v !== null ? v : O(e.type) || "Memo";
|
|
122
122
|
case h: {
|
|
123
|
-
var j = e,
|
|
123
|
+
var j = e, T = j._payload, L = j._init;
|
|
124
124
|
try {
|
|
125
|
-
return O(L(
|
|
125
|
+
return O(L(T));
|
|
126
126
|
} catch {
|
|
127
127
|
return null;
|
|
128
128
|
}
|
|
@@ -130,14 +130,14 @@ function ca() {
|
|
|
130
130
|
}
|
|
131
131
|
return null;
|
|
132
132
|
}
|
|
133
|
-
var $ = Object.assign,
|
|
133
|
+
var $ = Object.assign, U = 0, V, Z, q, te, ae, re, be;
|
|
134
134
|
function se() {
|
|
135
135
|
}
|
|
136
136
|
se.__reactDisabledLog = !0;
|
|
137
137
|
function ye() {
|
|
138
138
|
{
|
|
139
|
-
if (
|
|
140
|
-
|
|
139
|
+
if (U === 0) {
|
|
140
|
+
V = console.log, Z = console.info, q = console.warn, te = console.error, ae = console.group, re = console.groupCollapsed, be = console.groupEnd;
|
|
141
141
|
var e = {
|
|
142
142
|
configurable: !0,
|
|
143
143
|
enumerable: !0,
|
|
@@ -154,12 +154,12 @@ function ca() {
|
|
|
154
154
|
groupEnd: e
|
|
155
155
|
});
|
|
156
156
|
}
|
|
157
|
-
|
|
157
|
+
U++;
|
|
158
158
|
}
|
|
159
159
|
}
|
|
160
160
|
function Se() {
|
|
161
161
|
{
|
|
162
|
-
if (
|
|
162
|
+
if (U--, U === 0) {
|
|
163
163
|
var e = {
|
|
164
164
|
configurable: !0,
|
|
165
165
|
enumerable: !0,
|
|
@@ -167,13 +167,13 @@ function ca() {
|
|
|
167
167
|
};
|
|
168
168
|
Object.defineProperties(console, {
|
|
169
169
|
log: $({}, e, {
|
|
170
|
-
value:
|
|
170
|
+
value: V
|
|
171
171
|
}),
|
|
172
172
|
info: $({}, e, {
|
|
173
|
-
value:
|
|
173
|
+
value: Z
|
|
174
174
|
}),
|
|
175
175
|
warn: $({}, e, {
|
|
176
|
-
value:
|
|
176
|
+
value: q
|
|
177
177
|
}),
|
|
178
178
|
error: $({}, e, {
|
|
179
179
|
value: te
|
|
@@ -189,10 +189,10 @@ function ca() {
|
|
|
189
189
|
})
|
|
190
190
|
});
|
|
191
191
|
}
|
|
192
|
-
|
|
192
|
+
U < 0 && b("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
193
193
|
}
|
|
194
194
|
}
|
|
195
|
-
var Ee =
|
|
195
|
+
var Ee = E.ReactCurrentDispatcher, ue;
|
|
196
196
|
function ie(e, l, u) {
|
|
197
197
|
{
|
|
198
198
|
if (ue === void 0)
|
|
@@ -206,13 +206,13 @@ function ca() {
|
|
|
206
206
|
` + ue + e;
|
|
207
207
|
}
|
|
208
208
|
}
|
|
209
|
-
var
|
|
209
|
+
var pe = !1, le;
|
|
210
210
|
{
|
|
211
211
|
var me = typeof WeakMap == "function" ? WeakMap : Map;
|
|
212
212
|
le = new me();
|
|
213
213
|
}
|
|
214
214
|
function K(e, l) {
|
|
215
|
-
if (!e ||
|
|
215
|
+
if (!e || pe)
|
|
216
216
|
return "";
|
|
217
217
|
{
|
|
218
218
|
var u = le.get(e);
|
|
@@ -220,11 +220,11 @@ function ca() {
|
|
|
220
220
|
return u;
|
|
221
221
|
}
|
|
222
222
|
var v;
|
|
223
|
-
|
|
223
|
+
pe = !0;
|
|
224
224
|
var j = Error.prepareStackTrace;
|
|
225
225
|
Error.prepareStackTrace = void 0;
|
|
226
|
-
var
|
|
227
|
-
|
|
226
|
+
var T;
|
|
227
|
+
T = Ee.current, Ee.current = null, ye();
|
|
228
228
|
try {
|
|
229
229
|
if (l) {
|
|
230
230
|
var L = function() {
|
|
@@ -259,25 +259,25 @@ function ca() {
|
|
|
259
259
|
}
|
|
260
260
|
} catch (X) {
|
|
261
261
|
if (X && v && typeof X.stack == "string") {
|
|
262
|
-
for (var
|
|
262
|
+
for (var S = X.stack.split(`
|
|
263
263
|
`), Y = v.stack.split(`
|
|
264
|
-
`),
|
|
265
|
-
|
|
266
|
-
for (;
|
|
267
|
-
if (
|
|
268
|
-
if (
|
|
264
|
+
`), B = S.length - 1, H = Y.length - 1; B >= 1 && H >= 0 && S[B] !== Y[H]; )
|
|
265
|
+
H--;
|
|
266
|
+
for (; B >= 1 && H >= 0; B--, H--)
|
|
267
|
+
if (S[B] !== Y[H]) {
|
|
268
|
+
if (B !== 1 || H !== 1)
|
|
269
269
|
do
|
|
270
|
-
if (
|
|
270
|
+
if (B--, H--, H < 0 || S[B] !== Y[H]) {
|
|
271
271
|
var ne = `
|
|
272
|
-
` +
|
|
272
|
+
` + S[B].replace(" at new ", " at ");
|
|
273
273
|
return e.displayName && ne.includes("<anonymous>") && (ne = ne.replace("<anonymous>", e.displayName)), typeof e == "function" && le.set(e, ne), ne;
|
|
274
274
|
}
|
|
275
|
-
while (
|
|
275
|
+
while (B >= 1 && H >= 0);
|
|
276
276
|
break;
|
|
277
277
|
}
|
|
278
278
|
}
|
|
279
279
|
} finally {
|
|
280
|
-
|
|
280
|
+
pe = !1, Ee.current = T, Se(), Error.prepareStackTrace = j;
|
|
281
281
|
}
|
|
282
282
|
var Me = e ? e.displayName || e.name : "", ve = Me ? ie(Me) : "";
|
|
283
283
|
return typeof e == "function" && le.set(e, ve), ve;
|
|
@@ -289,7 +289,7 @@ function ca() {
|
|
|
289
289
|
var l = e.prototype;
|
|
290
290
|
return !!(l && l.isReactComponent);
|
|
291
291
|
}
|
|
292
|
-
function
|
|
292
|
+
function Oe(e, l, u) {
|
|
293
293
|
if (e == null)
|
|
294
294
|
return "";
|
|
295
295
|
if (typeof e == "function")
|
|
@@ -307,46 +307,46 @@ function ca() {
|
|
|
307
307
|
case d:
|
|
308
308
|
return ee(e.render);
|
|
309
309
|
case g:
|
|
310
|
-
return
|
|
310
|
+
return Oe(e.type, l, u);
|
|
311
311
|
case h: {
|
|
312
|
-
var v = e, j = v._payload,
|
|
312
|
+
var v = e, j = v._payload, T = v._init;
|
|
313
313
|
try {
|
|
314
|
-
return
|
|
314
|
+
return Oe(T(j), l, u);
|
|
315
315
|
} catch {
|
|
316
316
|
}
|
|
317
317
|
}
|
|
318
318
|
}
|
|
319
319
|
return "";
|
|
320
320
|
}
|
|
321
|
-
var
|
|
322
|
-
function
|
|
321
|
+
var Re = Object.prototype.hasOwnProperty, et = {}, tt = E.ReactDebugCurrentFrame;
|
|
322
|
+
function Ue(e) {
|
|
323
323
|
if (e) {
|
|
324
|
-
var l = e._owner, u =
|
|
324
|
+
var l = e._owner, u = Oe(e.type, e._source, l ? l.type : null);
|
|
325
325
|
tt.setExtraStackFrame(u);
|
|
326
326
|
} else
|
|
327
327
|
tt.setExtraStackFrame(null);
|
|
328
328
|
}
|
|
329
329
|
function Nt(e, l, u, v, j) {
|
|
330
330
|
{
|
|
331
|
-
var
|
|
331
|
+
var T = Function.call.bind(Re);
|
|
332
332
|
for (var L in e)
|
|
333
|
-
if (
|
|
334
|
-
var
|
|
333
|
+
if (T(e, L)) {
|
|
334
|
+
var S = void 0;
|
|
335
335
|
try {
|
|
336
336
|
if (typeof e[L] != "function") {
|
|
337
337
|
var Y = Error((v || "React class") + ": " + u + " type `" + L + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[L] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
338
338
|
throw Y.name = "Invariant Violation", Y;
|
|
339
339
|
}
|
|
340
|
-
|
|
341
|
-
} catch (
|
|
342
|
-
|
|
340
|
+
S = e[L](l, L, v, u, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
341
|
+
} catch (B) {
|
|
342
|
+
S = B;
|
|
343
343
|
}
|
|
344
|
-
|
|
344
|
+
S && !(S instanceof Error) && (Ue(j), b("%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).", v || "React class", u, L, typeof S), Ue(null)), S instanceof Error && !(S.message in et) && (et[S.message] = !0, Ue(j), b("Failed %s type: %s", u, S.message), Ue(null));
|
|
345
345
|
}
|
|
346
346
|
}
|
|
347
347
|
}
|
|
348
348
|
var Dt = Array.isArray;
|
|
349
|
-
function
|
|
349
|
+
function Ve(e) {
|
|
350
350
|
return Dt(e);
|
|
351
351
|
}
|
|
352
352
|
function Ot(e) {
|
|
@@ -367,16 +367,16 @@ function ca() {
|
|
|
367
367
|
}
|
|
368
368
|
function rt(e) {
|
|
369
369
|
if (Ut(e))
|
|
370
|
-
return
|
|
370
|
+
return b("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ot(e)), at(e);
|
|
371
371
|
}
|
|
372
|
-
var st =
|
|
372
|
+
var st = E.ReactCurrentOwner, Bt = {
|
|
373
373
|
key: !0,
|
|
374
374
|
ref: !0,
|
|
375
375
|
__self: !0,
|
|
376
376
|
__source: !0
|
|
377
377
|
}, nt, ot;
|
|
378
378
|
function Ft(e) {
|
|
379
|
-
if (
|
|
379
|
+
if (Re.call(e, "ref")) {
|
|
380
380
|
var l = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
381
381
|
if (l && l.isReactWarning)
|
|
382
382
|
return !1;
|
|
@@ -384,7 +384,7 @@ function ca() {
|
|
|
384
384
|
return e.ref !== void 0;
|
|
385
385
|
}
|
|
386
386
|
function Pt(e) {
|
|
387
|
-
if (
|
|
387
|
+
if (Re.call(e, "key")) {
|
|
388
388
|
var l = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
389
389
|
if (l && l.isReactWarning)
|
|
390
390
|
return !1;
|
|
@@ -397,7 +397,7 @@ function ca() {
|
|
|
397
397
|
function Wt(e, l) {
|
|
398
398
|
{
|
|
399
399
|
var u = function() {
|
|
400
|
-
nt || (nt = !0,
|
|
400
|
+
nt || (nt = !0, b("%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)", l));
|
|
401
401
|
};
|
|
402
402
|
u.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
403
403
|
get: u,
|
|
@@ -408,7 +408,7 @@ function ca() {
|
|
|
408
408
|
function Vt(e, l) {
|
|
409
409
|
{
|
|
410
410
|
var u = function() {
|
|
411
|
-
ot || (ot = !0,
|
|
411
|
+
ot || (ot = !0, b("%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)", l));
|
|
412
412
|
};
|
|
413
413
|
u.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
414
414
|
get: u,
|
|
@@ -416,8 +416,8 @@ function ca() {
|
|
|
416
416
|
});
|
|
417
417
|
}
|
|
418
418
|
}
|
|
419
|
-
var Ht = function(e, l, u, v, j,
|
|
420
|
-
var
|
|
419
|
+
var Ht = function(e, l, u, v, j, T, L) {
|
|
420
|
+
var S = {
|
|
421
421
|
// This tag allows us to uniquely identify this as a React Element
|
|
422
422
|
$$typeof: r,
|
|
423
423
|
// Built-in properties that belong on the element
|
|
@@ -426,47 +426,47 @@ function ca() {
|
|
|
426
426
|
ref: u,
|
|
427
427
|
props: L,
|
|
428
428
|
// Record the component responsible for creating this element.
|
|
429
|
-
_owner:
|
|
429
|
+
_owner: T
|
|
430
430
|
};
|
|
431
|
-
return
|
|
431
|
+
return S._store = {}, Object.defineProperty(S._store, "validated", {
|
|
432
432
|
configurable: !1,
|
|
433
433
|
enumerable: !1,
|
|
434
434
|
writable: !0,
|
|
435
435
|
value: !1
|
|
436
|
-
}), Object.defineProperty(
|
|
436
|
+
}), Object.defineProperty(S, "_self", {
|
|
437
437
|
configurable: !1,
|
|
438
438
|
enumerable: !1,
|
|
439
439
|
writable: !1,
|
|
440
440
|
value: v
|
|
441
|
-
}), Object.defineProperty(
|
|
441
|
+
}), Object.defineProperty(S, "_source", {
|
|
442
442
|
configurable: !1,
|
|
443
443
|
enumerable: !1,
|
|
444
444
|
writable: !1,
|
|
445
445
|
value: j
|
|
446
|
-
}), Object.freeze && (Object.freeze(
|
|
446
|
+
}), Object.freeze && (Object.freeze(S.props), Object.freeze(S)), S;
|
|
447
447
|
};
|
|
448
|
-
function
|
|
448
|
+
function Gt(e, l, u, v, j) {
|
|
449
449
|
{
|
|
450
|
-
var
|
|
451
|
-
u !== void 0 && (rt(u),
|
|
452
|
-
for (
|
|
453
|
-
|
|
450
|
+
var T, L = {}, S = null, Y = null;
|
|
451
|
+
u !== void 0 && (rt(u), S = "" + u), Pt(l) && (rt(l.key), S = "" + l.key), Ft(l) && (Y = l.ref, zt(l, j));
|
|
452
|
+
for (T in l)
|
|
453
|
+
Re.call(l, T) && !Bt.hasOwnProperty(T) && (L[T] = l[T]);
|
|
454
454
|
if (e && e.defaultProps) {
|
|
455
|
-
var
|
|
456
|
-
for (
|
|
457
|
-
L[
|
|
455
|
+
var B = e.defaultProps;
|
|
456
|
+
for (T in B)
|
|
457
|
+
L[T] === void 0 && (L[T] = B[T]);
|
|
458
458
|
}
|
|
459
|
-
if (
|
|
460
|
-
var
|
|
461
|
-
|
|
459
|
+
if (S || Y) {
|
|
460
|
+
var H = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
461
|
+
S && Wt(L, H), Y && Vt(L, H);
|
|
462
462
|
}
|
|
463
|
-
return Ht(e,
|
|
463
|
+
return Ht(e, S, Y, j, v, st.current, L);
|
|
464
464
|
}
|
|
465
465
|
}
|
|
466
|
-
var
|
|
466
|
+
var He = E.ReactCurrentOwner, it = E.ReactDebugCurrentFrame;
|
|
467
467
|
function Le(e) {
|
|
468
468
|
if (e) {
|
|
469
|
-
var l = e._owner, u =
|
|
469
|
+
var l = e._owner, u = Oe(e.type, e._source, l ? l.type : null);
|
|
470
470
|
it.setExtraStackFrame(u);
|
|
471
471
|
} else
|
|
472
472
|
it.setExtraStackFrame(null);
|
|
@@ -478,8 +478,8 @@ function ca() {
|
|
|
478
478
|
}
|
|
479
479
|
function lt() {
|
|
480
480
|
{
|
|
481
|
-
if (
|
|
482
|
-
var e = O(
|
|
481
|
+
if (He.current) {
|
|
482
|
+
var e = O(He.current.type);
|
|
483
483
|
if (e)
|
|
484
484
|
return `
|
|
485
485
|
|
|
@@ -488,11 +488,11 @@ Check the render method of \`` + e + "`.";
|
|
|
488
488
|
return "";
|
|
489
489
|
}
|
|
490
490
|
}
|
|
491
|
-
function
|
|
491
|
+
function Zt(e) {
|
|
492
492
|
return "";
|
|
493
493
|
}
|
|
494
494
|
var ct = {};
|
|
495
|
-
function
|
|
495
|
+
function qt(e) {
|
|
496
496
|
{
|
|
497
497
|
var l = lt();
|
|
498
498
|
if (!l) {
|
|
@@ -509,19 +509,19 @@ Check the top-level render call using <` + u + ">.");
|
|
|
509
509
|
if (!e._store || e._store.validated || e.key != null)
|
|
510
510
|
return;
|
|
511
511
|
e._store.validated = !0;
|
|
512
|
-
var u =
|
|
512
|
+
var u = qt(l);
|
|
513
513
|
if (ct[u])
|
|
514
514
|
return;
|
|
515
515
|
ct[u] = !0;
|
|
516
516
|
var v = "";
|
|
517
|
-
e && e._owner && e._owner !==
|
|
517
|
+
e && e._owner && e._owner !== He.current && (v = " It was passed a child from " + O(e._owner.type) + "."), Le(e), b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', u, v), Le(null);
|
|
518
518
|
}
|
|
519
519
|
}
|
|
520
520
|
function ut(e, l) {
|
|
521
521
|
{
|
|
522
522
|
if (typeof e != "object")
|
|
523
523
|
return;
|
|
524
|
-
if (
|
|
524
|
+
if (Ve(e))
|
|
525
525
|
for (var u = 0; u < e.length; u++) {
|
|
526
526
|
var v = e[u];
|
|
527
527
|
Ze(v) && dt(v, l);
|
|
@@ -531,7 +531,7 @@ Check the top-level render call using <` + u + ">.");
|
|
|
531
531
|
else if (e) {
|
|
532
532
|
var j = C(e);
|
|
533
533
|
if (typeof j == "function" && j !== e.entries)
|
|
534
|
-
for (var
|
|
534
|
+
for (var T = j.call(e), L; !(L = T.next()).done; )
|
|
535
535
|
Ze(L.value) && dt(L.value, l);
|
|
536
536
|
}
|
|
537
537
|
}
|
|
@@ -556,9 +556,9 @@ Check the top-level render call using <` + u + ">.");
|
|
|
556
556
|
} else if (l.PropTypes !== void 0 && !Ge) {
|
|
557
557
|
Ge = !0;
|
|
558
558
|
var j = O(l);
|
|
559
|
-
|
|
559
|
+
b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", j || "Unknown");
|
|
560
560
|
}
|
|
561
|
-
typeof l.getDefaultProps == "function" && !l.getDefaultProps.isReactClassApproved &&
|
|
561
|
+
typeof l.getDefaultProps == "function" && !l.getDefaultProps.isReactClassApproved && b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
562
562
|
}
|
|
563
563
|
}
|
|
564
564
|
function Jt(e) {
|
|
@@ -566,75 +566,75 @@ Check the top-level render call using <` + u + ">.");
|
|
|
566
566
|
for (var l = Object.keys(e.props), u = 0; u < l.length; u++) {
|
|
567
567
|
var v = l[u];
|
|
568
568
|
if (v !== "children" && v !== "key") {
|
|
569
|
-
Le(e),
|
|
569
|
+
Le(e), b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", v), Le(null);
|
|
570
570
|
break;
|
|
571
571
|
}
|
|
572
572
|
}
|
|
573
|
-
e.ref !== null && (Le(e),
|
|
573
|
+
e.ref !== null && (Le(e), b("Invalid attribute `ref` supplied to `React.Fragment`."), Le(null));
|
|
574
574
|
}
|
|
575
575
|
}
|
|
576
|
-
var
|
|
577
|
-
function
|
|
576
|
+
var pt = {};
|
|
577
|
+
function _t(e, l, u, v, j, T) {
|
|
578
578
|
{
|
|
579
|
-
var L =
|
|
579
|
+
var L = z(e);
|
|
580
580
|
if (!L) {
|
|
581
|
-
var
|
|
582
|
-
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (
|
|
583
|
-
var Y =
|
|
584
|
-
Y ?
|
|
585
|
-
var
|
|
586
|
-
e === null ?
|
|
581
|
+
var S = "";
|
|
582
|
+
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (S += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
583
|
+
var Y = Zt();
|
|
584
|
+
Y ? S += Y : S += lt();
|
|
585
|
+
var B;
|
|
586
|
+
e === null ? B = "null" : Ve(e) ? B = "array" : e !== void 0 && e.$$typeof === r ? (B = "<" + (O(e.type) || "Unknown") + " />", S = " Did you accidentally export a JSX literal instead of a component?") : B = typeof e, b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", B, S);
|
|
587
587
|
}
|
|
588
|
-
var
|
|
589
|
-
if (
|
|
590
|
-
return
|
|
588
|
+
var H = Gt(e, l, u, j, T);
|
|
589
|
+
if (H == null)
|
|
590
|
+
return H;
|
|
591
591
|
if (L) {
|
|
592
592
|
var ne = l.children;
|
|
593
593
|
if (ne !== void 0)
|
|
594
594
|
if (v)
|
|
595
|
-
if (
|
|
595
|
+
if (Ve(ne)) {
|
|
596
596
|
for (var Me = 0; Me < ne.length; Me++)
|
|
597
597
|
ut(ne[Me], e);
|
|
598
598
|
Object.freeze && Object.freeze(ne);
|
|
599
599
|
} else
|
|
600
|
-
|
|
600
|
+
b("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
601
601
|
else
|
|
602
602
|
ut(ne, e);
|
|
603
603
|
}
|
|
604
|
-
if (
|
|
604
|
+
if (Re.call(l, "key")) {
|
|
605
605
|
var ve = O(e), X = Object.keys(l).filter(function(aa) {
|
|
606
606
|
return aa !== "key";
|
|
607
|
-
}),
|
|
608
|
-
if (!
|
|
607
|
+
}), qe = X.length > 0 ? "{key: someKey, " + X.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
608
|
+
if (!pt[ve + qe]) {
|
|
609
609
|
var ta = X.length > 0 ? "{" + X.join(": ..., ") + ": ...}" : "{}";
|
|
610
|
-
|
|
610
|
+
b(`A props object containing a "key" prop is being spread into JSX:
|
|
611
611
|
let props = %s;
|
|
612
612
|
<%s {...props} />
|
|
613
613
|
React keys must be passed directly to JSX without using spread:
|
|
614
614
|
let props = %s;
|
|
615
|
-
<%s key={someKey} {...props} />`,
|
|
615
|
+
<%s key={someKey} {...props} />`, qe, ve, ta, ve), pt[ve + qe] = !0;
|
|
616
616
|
}
|
|
617
617
|
}
|
|
618
|
-
return e === s ? Jt(
|
|
618
|
+
return e === s ? Jt(H) : Yt(H), H;
|
|
619
619
|
}
|
|
620
620
|
}
|
|
621
621
|
function Kt(e, l, u) {
|
|
622
|
-
return
|
|
622
|
+
return _t(e, l, u, !0);
|
|
623
623
|
}
|
|
624
624
|
function Xt(e, l, u) {
|
|
625
|
-
return
|
|
625
|
+
return _t(e, l, u, !1);
|
|
626
626
|
}
|
|
627
627
|
var Qt = Xt, ea = Kt;
|
|
628
|
-
|
|
629
|
-
}()),
|
|
628
|
+
Te.Fragment = s, Te.jsx = Qt, Te.jsxs = ea;
|
|
629
|
+
}()), Te;
|
|
630
630
|
}
|
|
631
631
|
var ht;
|
|
632
632
|
function da() {
|
|
633
|
-
return ht || (ht = 1, process.env.NODE_ENV === "production" ?
|
|
633
|
+
return ht || (ht = 1, process.env.NODE_ENV === "production" ? Be.exports = la() : Be.exports = ca()), Be.exports;
|
|
634
634
|
}
|
|
635
635
|
var o = da();
|
|
636
|
-
const ua = (t) => t.as === "a",
|
|
637
|
-
button:
|
|
636
|
+
const ua = (t) => t.as === "a", pa = (t) => t.as === void 0 || t.as === "button", _a = "_button_1abee_213", fa = "_disabled_1abee_237", ga = "_loading_1abee_237", ha = "_neutral_1abee_259", ba = "_accent_1abee_263", ya = "_positive_1abee_267", ma = "_negative_1abee_271", va = "_contrast_1abee_275", xa = "_special_1abee_279", Ca = "_primary_1abee_284", wa = "_secondary_1abee_285", Sa = "_tertiary_1abee_286", Ea = "_label_1abee_321", La = "_rightGroup_1abee_333", Ma = "_iconOnly_1abee_349", $a = "_large_1abee_357", ja = "_medium_1abee_361", Ia = "_small_1abee_365", Ra = "_spaceBetween_1abee_370", ka = "_stretched_1abee_384", Ta = "_icon_1abee_349", Aa = "_badge_1abee_705", Na = "_badgeMedium_1abee_721", Da = "_circular_1abee_738", Oa = "_badgeSmall_1abee_743", Ua = "_badgeExtraSmall_1abee_765", Ba = "_withSubcaption_1abee_784", Fa = "_subcaption_1abee_797", Pa = "_loader_1abee_804", za = "_spin_1abee_1", Wa = "_l_1abee_237", Va = "_m_1abee_361", Ha = "_s_1abee_279", Ga = "_xs_1abee_869", F = {
|
|
637
|
+
button: _a,
|
|
638
638
|
disabled: fa,
|
|
639
639
|
loading: ga,
|
|
640
640
|
neutral: ha,
|
|
@@ -667,7 +667,7 @@ const ua = (t) => t.as === "a", _a = (t) => t.as === void 0 || t.as === "button"
|
|
|
667
667
|
l: Wa,
|
|
668
668
|
m: Va,
|
|
669
669
|
s: Ha,
|
|
670
|
-
xs:
|
|
670
|
+
xs: Ga
|
|
671
671
|
}, bt = ({
|
|
672
672
|
isLoading: t,
|
|
673
673
|
showBadge: r,
|
|
@@ -681,33 +681,33 @@ const ua = (t) => t.as === "a", _a = (t) => t.as === void 0 || t.as === "button"
|
|
|
681
681
|
size: f
|
|
682
682
|
}) => {
|
|
683
683
|
if (t)
|
|
684
|
-
return /* @__PURE__ */ o.jsx("span", { className:
|
|
684
|
+
return /* @__PURE__ */ o.jsx("span", { className: F.loader, "data-testid": "button-loader", "aria-hidden": "true" });
|
|
685
685
|
const _ = s === "extra-small", g = parseInt(String(a), 10), h = !isNaN(g) && g >= 0 && g <= 9;
|
|
686
686
|
return /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
687
687
|
r && (a || _) && /* @__PURE__ */ o.jsx(
|
|
688
688
|
"span",
|
|
689
689
|
{
|
|
690
690
|
"data-testid": "button-badge",
|
|
691
|
-
className:
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
{ [
|
|
691
|
+
className: G(
|
|
692
|
+
F.badge,
|
|
693
|
+
F[`badge${_ ? "ExtraSmall" : s === "medium" ? "Medium" : "Small"}`],
|
|
694
|
+
{ [F.circular]: h && !_ }
|
|
695
695
|
),
|
|
696
696
|
children: !_ && a
|
|
697
697
|
}
|
|
698
698
|
),
|
|
699
699
|
p && f !== "s" && f !== "xs" ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
700
|
-
/* @__PURE__ */ o.jsx("span", { "data-testid": "button-label", className:
|
|
701
|
-
/* @__PURE__ */ o.jsx("span", { "data-testid": "button-subcaption", className:
|
|
700
|
+
/* @__PURE__ */ o.jsx("span", { "data-testid": "button-label", className: F.label, children: n }),
|
|
701
|
+
/* @__PURE__ */ o.jsx("span", { "data-testid": "button-subcaption", className: F.subcaption, children: d })
|
|
702
702
|
] }) : n ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
703
|
-
/* @__PURE__ */ o.jsx("span", { "data-testid": "button-label", className:
|
|
704
|
-
/* @__PURE__ */ o.jsxs("div", { "data-testid": "button-right-group", className:
|
|
705
|
-
i && /* @__PURE__ */ o.jsx("span", { "data-testid": "button-icon", className:
|
|
706
|
-
c && /* @__PURE__ */ o.jsx("span", { "data-testid": "button-postfix", className:
|
|
703
|
+
/* @__PURE__ */ o.jsx("span", { "data-testid": "button-label", className: F.label, children: n }),
|
|
704
|
+
/* @__PURE__ */ o.jsxs("div", { "data-testid": "button-right-group", className: F.rightGroup, children: [
|
|
705
|
+
i && /* @__PURE__ */ o.jsx("span", { "data-testid": "button-icon", className: F.icon, children: i }),
|
|
706
|
+
c && /* @__PURE__ */ o.jsx("span", { "data-testid": "button-postfix", className: F.postfix, children: c })
|
|
707
707
|
] })
|
|
708
|
-
] }) : /* @__PURE__ */ o.jsx("span", { "data-testid": "button-icon", className:
|
|
708
|
+
] }) : /* @__PURE__ */ o.jsx("span", { "data-testid": "button-icon", className: F.icon, children: i })
|
|
709
709
|
] });
|
|
710
|
-
},
|
|
710
|
+
}, In = Q((t, r) => {
|
|
711
711
|
const {
|
|
712
712
|
mode: a = "primary",
|
|
713
713
|
size: s = "m",
|
|
@@ -720,32 +720,32 @@ const ua = (t) => t.as === "a", _a = (t) => t.as === void 0 || t.as === "button"
|
|
|
720
720
|
showSubcaption: _ = !1,
|
|
721
721
|
subcaption: g,
|
|
722
722
|
stretched: h = !1,
|
|
723
|
-
spaceBetween:
|
|
724
|
-
icon:
|
|
723
|
+
spaceBetween: y = !1,
|
|
724
|
+
icon: m,
|
|
725
725
|
postfix: w,
|
|
726
726
|
className: C,
|
|
727
|
-
children:
|
|
728
|
-
} = t,
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
727
|
+
children: E
|
|
728
|
+
} = t, b = c, I = n, R = !b && !I, P = !!m && !E, A = G(
|
|
729
|
+
F.button,
|
|
730
|
+
F[s],
|
|
731
|
+
F[a],
|
|
732
|
+
F[i],
|
|
733
733
|
{
|
|
734
|
-
[
|
|
735
|
-
[
|
|
736
|
-
[
|
|
737
|
-
[
|
|
738
|
-
[
|
|
739
|
-
[
|
|
734
|
+
[F.disabled]: b,
|
|
735
|
+
[F.loading]: I,
|
|
736
|
+
[F.stretched]: h,
|
|
737
|
+
[F.spaceBetween]: y && h,
|
|
738
|
+
[F.withSubcaption]: _ && g && s !== "s" && s !== "xs",
|
|
739
|
+
[F.iconOnly]: P
|
|
740
740
|
},
|
|
741
741
|
C
|
|
742
|
-
),
|
|
743
|
-
isLoading:
|
|
742
|
+
), k = {
|
|
743
|
+
isLoading: I,
|
|
744
744
|
showBadge: p,
|
|
745
745
|
badgeValue: f,
|
|
746
746
|
badgeSize: d,
|
|
747
|
-
icon:
|
|
748
|
-
children:
|
|
747
|
+
icon: m,
|
|
748
|
+
children: E,
|
|
749
749
|
postfix: w,
|
|
750
750
|
showSubcaption: _,
|
|
751
751
|
subcaption: g,
|
|
@@ -753,17 +753,17 @@ const ua = (t) => t.as === "a", _a = (t) => t.as === void 0 || t.as === "button"
|
|
|
753
753
|
};
|
|
754
754
|
if (ua(t)) {
|
|
755
755
|
const {
|
|
756
|
-
href:
|
|
757
|
-
onClick:
|
|
758
|
-
mode:
|
|
756
|
+
href: N,
|
|
757
|
+
onClick: D,
|
|
758
|
+
mode: z,
|
|
759
759
|
size: x,
|
|
760
|
-
buttonStyle:
|
|
760
|
+
buttonStyle: W,
|
|
761
761
|
loading: O,
|
|
762
762
|
disabled: $,
|
|
763
|
-
showBadge:
|
|
764
|
-
badgeSize:
|
|
765
|
-
badgeValue:
|
|
766
|
-
showSubcaption:
|
|
763
|
+
showBadge: U,
|
|
764
|
+
badgeSize: V,
|
|
765
|
+
badgeValue: Z,
|
|
766
|
+
showSubcaption: q,
|
|
767
767
|
subcaption: te,
|
|
768
768
|
stretched: ae,
|
|
769
769
|
spaceBetween: re,
|
|
@@ -774,39 +774,39 @@ const ua = (t) => t.as === "a", _a = (t) => t.as === void 0 || t.as === "button"
|
|
|
774
774
|
children: Ee,
|
|
775
775
|
"data-testid": ue,
|
|
776
776
|
style: ie,
|
|
777
|
-
...
|
|
777
|
+
...pe
|
|
778
778
|
} = t, le = (me) => {
|
|
779
|
-
|
|
779
|
+
R && D && D(me);
|
|
780
780
|
};
|
|
781
781
|
return /* @__PURE__ */ o.jsx(
|
|
782
782
|
"a",
|
|
783
783
|
{
|
|
784
784
|
ref: r,
|
|
785
|
-
className:
|
|
786
|
-
href:
|
|
785
|
+
className: A,
|
|
786
|
+
href: R ? N : void 0,
|
|
787
787
|
tabIndex: t.tabIndex,
|
|
788
788
|
onClick: le,
|
|
789
789
|
"data-testid": ue,
|
|
790
|
-
"aria-disabled":
|
|
790
|
+
"aria-disabled": b || I,
|
|
791
791
|
style: ie,
|
|
792
|
-
...
|
|
793
|
-
children: /* @__PURE__ */ o.jsx(bt, { ...
|
|
792
|
+
...pe,
|
|
793
|
+
children: /* @__PURE__ */ o.jsx(bt, { ...k })
|
|
794
794
|
}
|
|
795
795
|
);
|
|
796
796
|
}
|
|
797
|
-
if (
|
|
797
|
+
if (pa(t)) {
|
|
798
798
|
const {
|
|
799
|
-
type:
|
|
800
|
-
onClick:
|
|
801
|
-
mode:
|
|
799
|
+
type: N = "button",
|
|
800
|
+
onClick: D,
|
|
801
|
+
mode: z,
|
|
802
802
|
size: x,
|
|
803
|
-
buttonStyle:
|
|
803
|
+
buttonStyle: W,
|
|
804
804
|
loading: O,
|
|
805
805
|
disabled: $,
|
|
806
|
-
showBadge:
|
|
807
|
-
badgeSize:
|
|
808
|
-
badgeValue:
|
|
809
|
-
showSubcaption:
|
|
806
|
+
showBadge: U,
|
|
807
|
+
badgeSize: V,
|
|
808
|
+
badgeValue: Z,
|
|
809
|
+
showSubcaption: q,
|
|
810
810
|
subcaption: te,
|
|
811
811
|
stretched: ae,
|
|
812
812
|
spaceBetween: re,
|
|
@@ -817,37 +817,37 @@ const ua = (t) => t.as === "a", _a = (t) => t.as === void 0 || t.as === "button"
|
|
|
817
817
|
children: Ee,
|
|
818
818
|
"data-testid": ue,
|
|
819
819
|
style: ie,
|
|
820
|
-
...
|
|
820
|
+
...pe
|
|
821
821
|
} = t, le = (me) => {
|
|
822
|
-
|
|
822
|
+
R && D && D(me);
|
|
823
823
|
};
|
|
824
824
|
return /* @__PURE__ */ o.jsx(
|
|
825
825
|
"button",
|
|
826
826
|
{
|
|
827
827
|
ref: r,
|
|
828
|
-
type:
|
|
829
|
-
className:
|
|
830
|
-
disabled:
|
|
828
|
+
type: N,
|
|
829
|
+
className: A,
|
|
830
|
+
disabled: b,
|
|
831
831
|
tabIndex: t.tabIndex,
|
|
832
832
|
onClick: le,
|
|
833
833
|
"data-testid": ue,
|
|
834
|
-
"aria-disabled":
|
|
834
|
+
"aria-disabled": b || I,
|
|
835
835
|
style: ie,
|
|
836
|
-
...
|
|
837
|
-
children: /* @__PURE__ */ o.jsx(bt, { ...
|
|
836
|
+
...pe,
|
|
837
|
+
children: /* @__PURE__ */ o.jsx(bt, { ...k })
|
|
838
838
|
}
|
|
839
839
|
);
|
|
840
840
|
}
|
|
841
841
|
return null;
|
|
842
842
|
});
|
|
843
|
-
var
|
|
843
|
+
var Ye = { exports: {} };
|
|
844
844
|
/*!
|
|
845
845
|
Copyright (c) 2018 Jed Watson.
|
|
846
846
|
Licensed under the MIT License (MIT), see
|
|
847
847
|
http://jedwatson.github.io/classnames
|
|
848
848
|
*/
|
|
849
849
|
var yt;
|
|
850
|
-
function
|
|
850
|
+
function Za() {
|
|
851
851
|
return yt || (yt = 1, function(t) {
|
|
852
852
|
(function() {
|
|
853
853
|
var r = {}.hasOwnProperty;
|
|
@@ -877,10 +877,10 @@ function Ga() {
|
|
|
877
877
|
}
|
|
878
878
|
t.exports ? (a.default = a, t.exports = a) : window.classNames = a;
|
|
879
879
|
})();
|
|
880
|
-
}(
|
|
880
|
+
}(Ye)), Ye.exports;
|
|
881
881
|
}
|
|
882
|
-
var
|
|
883
|
-
const
|
|
882
|
+
var qa = Za();
|
|
883
|
+
const Ie = /* @__PURE__ */ ia(qa), Ya = "_avatar_1kyiq_17", Ja = "_clickable_1kyiq_41", Ka = "_icon_1kyiq_58", Xa = "_disabled_1kyiq_63", Qa = "_loading_1kyiq_68", er = "_image_1kyiq_74", tr = "_name_1kyiq_74", de = {
|
|
884
884
|
avatar: Ya,
|
|
885
885
|
clickable: Ja,
|
|
886
886
|
icon: Ka,
|
|
@@ -901,7 +901,7 @@ const Ne = /* @__PURE__ */ ia(Za), Ya = "_avatar_1kyiq_17", Ja = "_clickable_1ky
|
|
|
901
901
|
"color-contrast": "_color-contrast_1kyiq_167",
|
|
902
902
|
"variant-light": "_variant-light_1kyiq_173",
|
|
903
903
|
"variant-outline": "_variant-outline_1kyiq_245"
|
|
904
|
-
},
|
|
904
|
+
}, Ne = {
|
|
905
905
|
"typography-title-1-semibold": "_typography-title-1-semibold_1lyxn_1",
|
|
906
906
|
"typography-title-2-semibold": "_typography-title-2-semibold_1lyxn_10",
|
|
907
907
|
"typography-title-3-semibold": "_typography-title-3-semibold_1lyxn_19",
|
|
@@ -986,12 +986,12 @@ const ir = {
|
|
|
986
986
|
function lr(t) {
|
|
987
987
|
return ir[t] || "typography-subtitle-1-semibold";
|
|
988
988
|
}
|
|
989
|
-
const cr = "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", dr = "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", ur = "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", _r = "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", pr = {
|
|
989
|
+
const cr = "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", dr = "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", ur = "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", pr = "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", _r = {
|
|
990
990
|
male: cr,
|
|
991
991
|
female: dr,
|
|
992
|
-
org:
|
|
992
|
+
org: pr,
|
|
993
993
|
neutral: ur
|
|
994
|
-
},
|
|
994
|
+
}, Pe = Q((t, r) => {
|
|
995
995
|
const {
|
|
996
996
|
style: a,
|
|
997
997
|
size: s = 40,
|
|
@@ -1004,25 +1004,25 @@ const cr = "data:image/svg+xml,%3csvg%20opacity='0.9'%20preserveAspectRatio='xMi
|
|
|
1004
1004
|
imgSrc: _,
|
|
1005
1005
|
imgAlt: g,
|
|
1006
1006
|
icon: h,
|
|
1007
|
-
imgProps:
|
|
1008
|
-
colorScheme:
|
|
1007
|
+
imgProps: y,
|
|
1008
|
+
colorScheme: m,
|
|
1009
1009
|
className: w,
|
|
1010
1010
|
"data-testid": C,
|
|
1011
|
-
...
|
|
1012
|
-
} = t, { onClick:
|
|
1011
|
+
...E
|
|
1012
|
+
} = t, { onClick: b, onPointerDown: I } = E, P = !n && !i && (!!b || !!I), [A, k] = De(!1);
|
|
1013
1013
|
we(() => {
|
|
1014
|
-
_ &&
|
|
1014
|
+
_ && k(!1);
|
|
1015
1015
|
}, [_]);
|
|
1016
|
-
const
|
|
1016
|
+
const N = _ && !A ? "image" : h ? "icon" : f ? "name" : "placeholder", D = m || N === "name" && sr(f) || "gray", z = lr(s), x = jt(s, c), W = G(
|
|
1017
1017
|
w,
|
|
1018
1018
|
de.avatar,
|
|
1019
1019
|
de[`variant-${p}`],
|
|
1020
|
-
de[`color-${
|
|
1021
|
-
|
|
1020
|
+
de[`color-${D}`],
|
|
1021
|
+
Ne[z],
|
|
1022
1022
|
{
|
|
1023
1023
|
[de.disabled]: n,
|
|
1024
1024
|
[de.loading]: i,
|
|
1025
|
-
[de.clickable]:
|
|
1025
|
+
[de.clickable]: P
|
|
1026
1026
|
}
|
|
1027
1027
|
), O = {
|
|
1028
1028
|
"--avatar-size": `${s}px`,
|
|
@@ -1043,10 +1043,10 @@ const cr = "data:image/svg+xml,%3csvg%20opacity='0.9'%20preserveAspectRatio='xMi
|
|
|
1043
1043
|
placeholder: () => /* @__PURE__ */ o.jsx(
|
|
1044
1044
|
"img",
|
|
1045
1045
|
{
|
|
1046
|
-
...
|
|
1046
|
+
...y,
|
|
1047
1047
|
"data-testid": "avatar-placeholder",
|
|
1048
1048
|
className: de.image,
|
|
1049
|
-
src:
|
|
1049
|
+
src: _r[d],
|
|
1050
1050
|
alt: g || void 0
|
|
1051
1051
|
}
|
|
1052
1052
|
),
|
|
@@ -1054,30 +1054,30 @@ const cr = "data:image/svg+xml,%3csvg%20opacity='0.9'%20preserveAspectRatio='xMi
|
|
|
1054
1054
|
"img",
|
|
1055
1055
|
{
|
|
1056
1056
|
"data-testid": "avatar-image",
|
|
1057
|
-
...
|
|
1057
|
+
...y,
|
|
1058
1058
|
className: de.image,
|
|
1059
1059
|
src: _ || void 0,
|
|
1060
1060
|
alt: g || void 0,
|
|
1061
|
-
onLoad: () =>
|
|
1062
|
-
onError: (
|
|
1063
|
-
var
|
|
1064
|
-
|
|
1061
|
+
onLoad: () => k(!1),
|
|
1062
|
+
onError: (V) => {
|
|
1063
|
+
var Z;
|
|
1064
|
+
k(!0), (Z = y == null ? void 0 : y.onError) == null || Z.call(y, V);
|
|
1065
1065
|
}
|
|
1066
1066
|
}
|
|
1067
1067
|
)
|
|
1068
|
-
},
|
|
1069
|
-
|
|
1068
|
+
}, U = (V) => {
|
|
1069
|
+
P && (b == null || b(V));
|
|
1070
1070
|
};
|
|
1071
1071
|
return /* @__PURE__ */ o.jsx(
|
|
1072
1072
|
"div",
|
|
1073
1073
|
{
|
|
1074
1074
|
ref: r,
|
|
1075
|
-
onClick:
|
|
1076
|
-
className:
|
|
1075
|
+
onClick: U,
|
|
1076
|
+
className: W,
|
|
1077
1077
|
style: O,
|
|
1078
1078
|
"data-testid": C,
|
|
1079
1079
|
"aria-disabled": n || i,
|
|
1080
|
-
children: $[
|
|
1080
|
+
children: $[N](null)
|
|
1081
1081
|
}
|
|
1082
1082
|
);
|
|
1083
1083
|
}), fr = "_avatarGroup_157g4_1", gr = {
|
|
@@ -1111,7 +1111,7 @@ const yr = 3, mr = (t) => {
|
|
|
1111
1111
|
shape: i = "circle",
|
|
1112
1112
|
overflowCount: n = 0,
|
|
1113
1113
|
overflowProps: c
|
|
1114
|
-
} = t, p = a * s, d = -p + yr, f = jt(a, i), g =
|
|
1114
|
+
} = t, p = a * s, d = -p + yr, f = jt(a, i), g = We(hr()).current.toString(), h = Ie(gr.avatarGroup), y = br(
|
|
1115
1115
|
a,
|
|
1116
1116
|
a,
|
|
1117
1117
|
a - p,
|
|
@@ -1123,21 +1123,21 @@ const yr = 3, mr = (t) => {
|
|
|
1123
1123
|
f
|
|
1124
1124
|
);
|
|
1125
1125
|
return r.length === 0 ? null : /* @__PURE__ */ o.jsxs("div", { className: h, children: [
|
|
1126
|
-
r.map((
|
|
1127
|
-
const
|
|
1128
|
-
if (
|
|
1129
|
-
const
|
|
1126
|
+
r.map((m, w, C) => {
|
|
1127
|
+
const E = w + 1 >= C.length;
|
|
1128
|
+
if (m.wrapper) {
|
|
1129
|
+
const b = m.wrapper;
|
|
1130
1130
|
return /* @__PURE__ */ o.jsx(
|
|
1131
1131
|
"div",
|
|
1132
1132
|
{
|
|
1133
1133
|
style: {
|
|
1134
1134
|
// Для последнего видимого аватара без overflowCount не применяем обрезку
|
|
1135
|
-
clipPath:
|
|
1135
|
+
clipPath: E && !n ? void 0 : `url(#${g})`,
|
|
1136
1136
|
marginRight: d
|
|
1137
1137
|
},
|
|
1138
|
-
children: /* @__PURE__ */ o.jsx(
|
|
1138
|
+
children: /* @__PURE__ */ o.jsx(b, { children: /* @__PURE__ */ o.jsx(Pe, { size: a, shape: i, ...m }) })
|
|
1139
1139
|
},
|
|
1140
|
-
Qe(
|
|
1140
|
+
Qe(m) + w
|
|
1141
1141
|
);
|
|
1142
1142
|
}
|
|
1143
1143
|
return /* @__PURE__ */ o.jsx(
|
|
@@ -1145,16 +1145,16 @@ const yr = 3, mr = (t) => {
|
|
|
1145
1145
|
{
|
|
1146
1146
|
style: {
|
|
1147
1147
|
// Для последнего видимого аватара без overflowCount не применяем обрезку
|
|
1148
|
-
clipPath:
|
|
1148
|
+
clipPath: E && !n ? void 0 : `url(#${g})`,
|
|
1149
1149
|
marginRight: d
|
|
1150
1150
|
},
|
|
1151
|
-
children: /* @__PURE__ */ o.jsx(
|
|
1151
|
+
children: /* @__PURE__ */ o.jsx(Pe, { size: a, shape: i, ...m })
|
|
1152
1152
|
},
|
|
1153
|
-
Qe(
|
|
1153
|
+
Qe(m) + w
|
|
1154
1154
|
);
|
|
1155
1155
|
}),
|
|
1156
1156
|
n > 0 && /* @__PURE__ */ o.jsx("div", { style: { marginRight: d }, children: /* @__PURE__ */ o.jsx(
|
|
1157
|
-
|
|
1157
|
+
Pe,
|
|
1158
1158
|
{
|
|
1159
1159
|
size: a,
|
|
1160
1160
|
shape: i,
|
|
@@ -1164,11 +1164,11 @@ const yr = 3, mr = (t) => {
|
|
|
1164
1164
|
...c
|
|
1165
1165
|
}
|
|
1166
1166
|
) }),
|
|
1167
|
-
/* @__PURE__ */ o.jsx("svg", { width: "0", height: "0", children: /* @__PURE__ */ o.jsx("clipPath", { id: `${g}`, children: /* @__PURE__ */ o.jsx("path", { clipPathUnits: "objectBoundingBox", d:
|
|
1167
|
+
/* @__PURE__ */ o.jsx("svg", { width: "0", height: "0", children: /* @__PURE__ */ o.jsx("clipPath", { id: `${g}`, children: /* @__PURE__ */ o.jsx("path", { clipPathUnits: "objectBoundingBox", d: y, clipRule: "evenodd" }) }) })
|
|
1168
1168
|
] });
|
|
1169
|
-
},
|
|
1169
|
+
}, Rn = Object.assign(Pe, {
|
|
1170
1170
|
Group: mr
|
|
1171
|
-
}), vr = "_wrapper_ecbsu_5", xr = "_badge__container_ecbsu_6", Cr = "_badge__content_ecbsu_7", wr = "_interactive_ecbsu_20", Sr = "_disabled_ecbsu_21", Er = "_icon_ecbsu_22",
|
|
1171
|
+
}), vr = "_wrapper_ecbsu_5", xr = "_badge__container_ecbsu_6", Cr = "_badge__content_ecbsu_7", wr = "_interactive_ecbsu_20", Sr = "_disabled_ecbsu_21", Er = "_icon_ecbsu_22", _e = {
|
|
1172
1172
|
wrapper: vr,
|
|
1173
1173
|
badge__container: xr,
|
|
1174
1174
|
badge__content: Cr,
|
|
@@ -1216,14 +1216,14 @@ const yr = 3, mr = (t) => {
|
|
|
1216
1216
|
}
|
|
1217
1217
|
return null;
|
|
1218
1218
|
}, $r = () => {
|
|
1219
|
-
const t =
|
|
1219
|
+
const t = We(null), [r, a] = De(null);
|
|
1220
1220
|
return we(() => {
|
|
1221
1221
|
if (t.current) {
|
|
1222
1222
|
const s = Mr(t.current);
|
|
1223
1223
|
a(s);
|
|
1224
1224
|
}
|
|
1225
1225
|
}, []), { ref: t, bgColor: r };
|
|
1226
|
-
},
|
|
1226
|
+
}, kn = Q((t, r) => {
|
|
1227
1227
|
const {
|
|
1228
1228
|
icon: a,
|
|
1229
1229
|
children: s,
|
|
@@ -1236,68 +1236,67 @@ const yr = 3, mr = (t) => {
|
|
|
1236
1236
|
positionOffset: _ = { x: 0, y: 0 },
|
|
1237
1237
|
cutoutBackground: g,
|
|
1238
1238
|
isDisabled: h,
|
|
1239
|
-
className:
|
|
1240
|
-
"data-testid":
|
|
1239
|
+
className: y,
|
|
1240
|
+
"data-testid": m = "badge",
|
|
1241
1241
|
...w
|
|
1242
|
-
} = t, { onClick: C, onPointerDown:
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1242
|
+
} = t, { onClick: C, onPointerDown: E } = w, { ref: b, bgColor: I } = $r(), R = g || I, A = !h && (!!C || !!E), k = Ie(_e.badge__container, _e[`position-${f}`]), N = Ie(
|
|
1243
|
+
y,
|
|
1244
|
+
_e.badge__content,
|
|
1245
|
+
_e[`color-${p}`],
|
|
1246
|
+
_e[`variant-${i}`],
|
|
1247
1247
|
{
|
|
1248
|
-
[
|
|
1249
|
-
[
|
|
1250
|
-
[
|
|
1248
|
+
[_e.disabled]: h,
|
|
1249
|
+
[_e.icon]: !!a,
|
|
1250
|
+
[_e.interactive]: A
|
|
1251
1251
|
}
|
|
1252
|
-
),
|
|
1252
|
+
), D = {
|
|
1253
1253
|
"--badge-height": `${d}px`,
|
|
1254
1254
|
"--badge-offset-x": `${_.x}px`,
|
|
1255
1255
|
"--badge-offset-y": `${_.y}px`,
|
|
1256
|
-
...
|
|
1256
|
+
...R && { "--badge-cutout-bg": R },
|
|
1257
1257
|
...i === "transparent" && { "--badge-cutout-bg": "transparent" }
|
|
1258
|
-
},
|
|
1259
|
-
|
|
1258
|
+
}, z = (a == null ? void 0 : a({})) || n, x = (W) => {
|
|
1259
|
+
A && (C == null || C(W));
|
|
1260
1260
|
};
|
|
1261
|
-
return /* @__PURE__ */ o.jsxs("div", { className:
|
|
1261
|
+
return /* @__PURE__ */ o.jsxs("div", { className: _e.wrapper, ref: b, "data-testid": m + "-wrapper", children: [
|
|
1262
1262
|
s,
|
|
1263
1263
|
!c && /* @__PURE__ */ o.jsx(
|
|
1264
1264
|
"span",
|
|
1265
1265
|
{
|
|
1266
|
-
className:
|
|
1267
|
-
style:
|
|
1268
|
-
"data-testid":
|
|
1266
|
+
className: k,
|
|
1267
|
+
style: D,
|
|
1268
|
+
"data-testid": m + "-container",
|
|
1269
1269
|
children: /* @__PURE__ */ o.jsx(
|
|
1270
1270
|
"span",
|
|
1271
1271
|
{
|
|
1272
1272
|
...w,
|
|
1273
1273
|
onClick: x,
|
|
1274
|
-
className:
|
|
1275
|
-
"data-testid":
|
|
1274
|
+
className: N,
|
|
1275
|
+
"data-testid": m + "-content",
|
|
1276
1276
|
ref: r,
|
|
1277
1277
|
"aria-disabled": h,
|
|
1278
|
-
children:
|
|
1278
|
+
children: z
|
|
1279
1279
|
}
|
|
1280
1280
|
)
|
|
1281
1281
|
}
|
|
1282
1282
|
)
|
|
1283
1283
|
] });
|
|
1284
|
-
}), jr = "
|
|
1284
|
+
}), jr = "_container_op5yl_7", Ir = "_image_op5yl_22", Rr = "_loading_op5yl_34", Je = {
|
|
1285
1285
|
container: jr,
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
overlay: Wr,
|
|
1286
|
+
image: Ir,
|
|
1287
|
+
loading: Rr
|
|
1288
|
+
}, kr = "_loader_isv17_1", Tr = "_spin_isv17_1", Ar = "_accent_isv17_19", Nr = "_neutral_isv17_23", Dr = "_positive_isv17_27", Or = "_negative_isv17_31", Ur = "_gray_isv17_35", Br = "_special_isv17_39", Fr = "_contrast_isv17_43", Pr = "_container_isv17_47", zr = "_overlay_isv17_57", Ae = {
|
|
1289
|
+
loader: kr,
|
|
1290
|
+
spin: Tr,
|
|
1291
|
+
accent: Ar,
|
|
1292
|
+
neutral: Nr,
|
|
1293
|
+
positive: Dr,
|
|
1294
|
+
negative: Or,
|
|
1295
|
+
gray: Ur,
|
|
1296
|
+
special: Br,
|
|
1297
|
+
contrast: Fr,
|
|
1298
|
+
container: Pr,
|
|
1299
|
+
overlay: zr,
|
|
1301
1300
|
"size-16": "_size-16_isv17_72",
|
|
1302
1301
|
"size-24": "_size-24_isv17_76",
|
|
1303
1302
|
"size-48": "_size-48_isv17_80",
|
|
@@ -1312,7 +1311,7 @@ const yr = 3, mr = (t) => {
|
|
|
1312
1311
|
style: i,
|
|
1313
1312
|
...n
|
|
1314
1313
|
}, c) => {
|
|
1315
|
-
const p =
|
|
1314
|
+
const p = Ie(
|
|
1316
1315
|
Ae.loader,
|
|
1317
1316
|
Ae[r],
|
|
1318
1317
|
Ae[`size-${t}`],
|
|
@@ -1341,7 +1340,7 @@ const yr = 3, mr = (t) => {
|
|
|
1341
1340
|
}
|
|
1342
1341
|
);
|
|
1343
1342
|
}
|
|
1344
|
-
),
|
|
1343
|
+
), Wr = Q((t, r) => {
|
|
1345
1344
|
const {
|
|
1346
1345
|
loading: a = !1,
|
|
1347
1346
|
size: s = 24,
|
|
@@ -1351,18 +1350,18 @@ const yr = 3, mr = (t) => {
|
|
|
1351
1350
|
style: p,
|
|
1352
1351
|
"data-testid": d,
|
|
1353
1352
|
...f
|
|
1354
|
-
} = t, _ =
|
|
1353
|
+
} = t, _ = Ie(Ae.container, c);
|
|
1355
1354
|
return /* @__PURE__ */ o.jsxs("div", { ref: r, className: _, style: p, "data-testid": d, ...f, children: [
|
|
1356
1355
|
n,
|
|
1357
1356
|
a && /* @__PURE__ */ o.jsx("div", { className: Ae.overlay, children: /* @__PURE__ */ o.jsx(It, { size: s, variant: i, "data-testid": `${d}-spinner` }) })
|
|
1358
1357
|
] });
|
|
1359
|
-
}),
|
|
1360
|
-
|
|
1358
|
+
}), Vr = Q((t, r) => t.children ? /* @__PURE__ */ o.jsx(
|
|
1359
|
+
Wr,
|
|
1361
1360
|
{
|
|
1362
1361
|
ref: r,
|
|
1363
1362
|
...t
|
|
1364
1363
|
}
|
|
1365
|
-
) : /* @__PURE__ */ o.jsx(It, { ref: r, ...t })),
|
|
1364
|
+
) : /* @__PURE__ */ o.jsx(It, { ref: r, ...t })), Hr = ({ width: t = 48, height: r = 48, className: a, "data-testid": s }) => /* @__PURE__ */ o.jsx(
|
|
1366
1365
|
"svg",
|
|
1367
1366
|
{
|
|
1368
1367
|
width: t,
|
|
@@ -1383,78 +1382,70 @@ const yr = 3, mr = (t) => {
|
|
|
1383
1382
|
}
|
|
1384
1383
|
)
|
|
1385
1384
|
}
|
|
1386
|
-
),
|
|
1385
|
+
), Tn = Q((t, r) => {
|
|
1387
1386
|
const {
|
|
1388
1387
|
alt: a = "",
|
|
1389
1388
|
loading: s = "lazy",
|
|
1390
1389
|
src: i,
|
|
1391
1390
|
isLoading: n = !1,
|
|
1392
1391
|
className: c,
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
Te.container,
|
|
1400
|
-
{
|
|
1401
|
-
[Te.loading]: w,
|
|
1402
|
-
[Te.error]: y
|
|
1403
|
-
},
|
|
1404
|
-
p
|
|
1405
|
-
), m = U(
|
|
1406
|
-
Te.image,
|
|
1392
|
+
"data-testid": p = "image",
|
|
1393
|
+
onError: d,
|
|
1394
|
+
onLoad: f,
|
|
1395
|
+
..._
|
|
1396
|
+
} = t, [g, h] = De("loading"), y = g === "error", m = (n || g === "loading") && !y, w = g === "loaded" && !n, C = Ie(
|
|
1397
|
+
Je.image,
|
|
1407
1398
|
{
|
|
1408
|
-
[
|
|
1399
|
+
[Je.loading]: m
|
|
1409
1400
|
},
|
|
1410
1401
|
c
|
|
1411
|
-
),
|
|
1412
|
-
(
|
|
1413
|
-
|
|
1414
|
-
},
|
|
1415
|
-
[_]
|
|
1416
|
-
), D = Ce(
|
|
1417
|
-
(T) => {
|
|
1418
|
-
b("error"), f == null || f(T);
|
|
1402
|
+
), E = Ce(
|
|
1403
|
+
(R) => {
|
|
1404
|
+
h("loaded"), f == null || f(R);
|
|
1419
1405
|
},
|
|
1420
1406
|
[f]
|
|
1421
|
-
),
|
|
1407
|
+
), b = Ce(
|
|
1408
|
+
(R) => {
|
|
1409
|
+
h("error"), d == null || d(R);
|
|
1410
|
+
},
|
|
1411
|
+
[d]
|
|
1412
|
+
), I = {
|
|
1422
1413
|
loader: /* @__PURE__ */ o.jsxs(Mt, { children: [
|
|
1423
|
-
/* @__PURE__ */ o.jsx(
|
|
1414
|
+
/* @__PURE__ */ o.jsx(Vr, { size: 48, variant: "special", "data-testid": `${p}-loader` }),
|
|
1424
1415
|
/* @__PURE__ */ o.jsx(
|
|
1425
1416
|
"img",
|
|
1426
1417
|
{
|
|
1427
1418
|
alt: a,
|
|
1428
1419
|
src: i,
|
|
1429
|
-
onLoad:
|
|
1430
|
-
onError:
|
|
1420
|
+
onLoad: E,
|
|
1421
|
+
onError: b,
|
|
1431
1422
|
style: { display: "none" }
|
|
1432
1423
|
}
|
|
1433
1424
|
)
|
|
1434
1425
|
] }),
|
|
1435
|
-
error: /* @__PURE__ */ o.jsx(
|
|
1426
|
+
error: /* @__PURE__ */ o.jsx(Hr, { "data-testid": `${p}-fallback` }),
|
|
1436
1427
|
image: /* @__PURE__ */ o.jsx(
|
|
1437
1428
|
"img",
|
|
1438
1429
|
{
|
|
1439
1430
|
ref: r,
|
|
1440
1431
|
alt: a,
|
|
1441
|
-
"data-testid":
|
|
1432
|
+
"data-testid": p,
|
|
1442
1433
|
loading: s,
|
|
1443
1434
|
src: i,
|
|
1444
|
-
className:
|
|
1435
|
+
className: C
|
|
1445
1436
|
}
|
|
1446
1437
|
)
|
|
1447
1438
|
};
|
|
1448
1439
|
return we(() => {
|
|
1449
1440
|
if (!i) {
|
|
1450
|
-
|
|
1441
|
+
h("error");
|
|
1451
1442
|
return;
|
|
1452
1443
|
}
|
|
1453
|
-
|
|
1454
|
-
}, [i]), /* @__PURE__ */ o.jsxs("div", { className:
|
|
1455
|
-
|
|
1456
|
-
y &&
|
|
1457
|
-
|
|
1444
|
+
h("loading");
|
|
1445
|
+
}, [i]), /* @__PURE__ */ o.jsxs("div", { className: Je.container, "data-testid": `${p}-container`, ..._, children: [
|
|
1446
|
+
m && I.loader,
|
|
1447
|
+
y && I.error,
|
|
1448
|
+
w && I.image
|
|
1458
1449
|
] });
|
|
1459
1450
|
}), Gr = {}, Rt = ra({
|
|
1460
1451
|
locale: Gr
|
|
@@ -1463,10 +1454,10 @@ const yr = 3, mr = (t) => {
|
|
|
1463
1454
|
if (!t)
|
|
1464
1455
|
throw new Error("useConfig must be used within a ConfigProvider");
|
|
1465
1456
|
return t;
|
|
1466
|
-
},
|
|
1457
|
+
}, An = () => {
|
|
1467
1458
|
const { locale: t } = Zr();
|
|
1468
1459
|
return t;
|
|
1469
|
-
},
|
|
1460
|
+
}, qr = {}, Yr = {}, Jr = {}, Nn = ({
|
|
1470
1461
|
locale: t = {},
|
|
1471
1462
|
theme: r,
|
|
1472
1463
|
children: a,
|
|
@@ -1483,28 +1474,28 @@ const yr = 3, mr = (t) => {
|
|
|
1483
1474
|
"div",
|
|
1484
1475
|
{
|
|
1485
1476
|
"data-testid": "ConfigProvider-component",
|
|
1486
|
-
className:
|
|
1477
|
+
className: G(qr, Yr, Jr, s)
|
|
1487
1478
|
}
|
|
1488
1479
|
),
|
|
1489
1480
|
/* @__PURE__ */ o.jsx(Rt.Provider, { value: { locale: t }, children: a })
|
|
1490
|
-
] })),
|
|
1491
|
-
tag:
|
|
1492
|
-
label:
|
|
1493
|
-
iconWrapper:
|
|
1494
|
-
medium:
|
|
1495
|
-
large:
|
|
1496
|
-
disabled:
|
|
1497
|
-
neutral:
|
|
1498
|
-
positive:
|
|
1499
|
-
negative:
|
|
1500
|
-
warning:
|
|
1501
|
-
vivid:
|
|
1502
|
-
special:
|
|
1503
|
-
accent:
|
|
1504
|
-
blue:
|
|
1505
|
-
lovely:
|
|
1481
|
+
] })), Dn = {}, Kr = "_tag_1llsi_1", Xr = "_label_1llsi_16", Qr = "_iconWrapper_1llsi_20", es = "_medium_1llsi_27", ts = "_large_1llsi_33", as = "_disabled_1llsi_43", rs = "_neutral_1llsi_47", ss = "_positive_1llsi_53", ns = "_negative_1llsi_59", os = "_warning_1llsi_65", is = "_vivid_1llsi_71", ls = "_special_1llsi_77", cs = "_accent_1llsi_84", ds = "_blue_1llsi_90", us = "_lovely_1llsi_96", ps = "_dreamy_1llsi_102", xe = {
|
|
1482
|
+
tag: Kr,
|
|
1483
|
+
label: Xr,
|
|
1484
|
+
iconWrapper: Qr,
|
|
1485
|
+
medium: es,
|
|
1486
|
+
large: ts,
|
|
1487
|
+
disabled: as,
|
|
1488
|
+
neutral: rs,
|
|
1489
|
+
positive: ss,
|
|
1490
|
+
negative: ns,
|
|
1491
|
+
warning: os,
|
|
1492
|
+
vivid: is,
|
|
1493
|
+
special: ls,
|
|
1494
|
+
accent: cs,
|
|
1495
|
+
blue: ds,
|
|
1496
|
+
lovely: us,
|
|
1506
1497
|
dreamy: ps
|
|
1507
|
-
},
|
|
1498
|
+
}, On = Q((t, r) => {
|
|
1508
1499
|
const {
|
|
1509
1500
|
className: a,
|
|
1510
1501
|
children: s,
|
|
@@ -1517,41 +1508,41 @@ const yr = 3, mr = (t) => {
|
|
|
1517
1508
|
slotStartWrapperProps: _ = {},
|
|
1518
1509
|
slotEndWrapperProps: g = {},
|
|
1519
1510
|
"data-testid": h
|
|
1520
|
-
} = t, { className:
|
|
1511
|
+
} = t, { className: y, ...m } = _, { className: w, ...C } = g;
|
|
1521
1512
|
return /* @__PURE__ */ o.jsxs(
|
|
1522
1513
|
"div",
|
|
1523
1514
|
{
|
|
1524
|
-
className:
|
|
1515
|
+
className: G(
|
|
1525
1516
|
xe.tag,
|
|
1526
1517
|
xe[n],
|
|
1527
1518
|
xe[i],
|
|
1528
1519
|
{
|
|
1529
1520
|
[xe.disabled]: c,
|
|
1530
|
-
[
|
|
1531
|
-
[
|
|
1521
|
+
[Ne["typography-label-3-regular"]]: n === "medium",
|
|
1522
|
+
[Ne["typography-subtitle-1-semibold"]]: n === "large"
|
|
1532
1523
|
},
|
|
1533
1524
|
a
|
|
1534
1525
|
),
|
|
1535
1526
|
"data-testid": h || "tag-component",
|
|
1536
1527
|
ref: r,
|
|
1537
1528
|
children: [
|
|
1538
|
-
d && /* @__PURE__ */ o.jsx("span", { className:
|
|
1539
|
-
p && /* @__PURE__ */ o.jsx("span", { className:
|
|
1540
|
-
f && /* @__PURE__ */ o.jsx("span", { className:
|
|
1529
|
+
d && /* @__PURE__ */ o.jsx("span", { className: G([xe.iconWrapper, y]), ...m, children: d }),
|
|
1530
|
+
p && /* @__PURE__ */ o.jsx("span", { className: G([xe.label]), children: s }),
|
|
1531
|
+
f && /* @__PURE__ */ o.jsx("span", { className: G([xe.iconWrapper, w]), ...C, children: f })
|
|
1541
1532
|
]
|
|
1542
1533
|
}
|
|
1543
1534
|
);
|
|
1544
|
-
}), fs = "
|
|
1545
|
-
checkbox:
|
|
1546
|
-
input:
|
|
1547
|
-
icon:
|
|
1548
|
-
container:
|
|
1549
|
-
error:
|
|
1550
|
-
checkboxWrapper:
|
|
1551
|
-
medium:
|
|
1552
|
-
large:
|
|
1553
|
-
label:
|
|
1554
|
-
},
|
|
1535
|
+
}), _s = "_checkbox_15onj_43", fs = "_input_15onj_59", gs = "_icon_15onj_67", hs = "_container_15onj_84", bs = "_error_15onj_135", ys = "_checkboxWrapper_15onj_147", ms = "_medium_15onj_201", vs = "_large_15onj_206", xs = "_label_15onj_247", ge = {
|
|
1536
|
+
checkbox: _s,
|
|
1537
|
+
input: fs,
|
|
1538
|
+
icon: gs,
|
|
1539
|
+
container: hs,
|
|
1540
|
+
error: bs,
|
|
1541
|
+
checkboxWrapper: ys,
|
|
1542
|
+
medium: ms,
|
|
1543
|
+
large: vs,
|
|
1544
|
+
label: xs
|
|
1545
|
+
}, Cs = ({
|
|
1555
1546
|
width: t = 12,
|
|
1556
1547
|
height: r = 9,
|
|
1557
1548
|
className: a = "",
|
|
@@ -1577,7 +1568,7 @@ const yr = 3, mr = (t) => {
|
|
|
1577
1568
|
}
|
|
1578
1569
|
)
|
|
1579
1570
|
}
|
|
1580
|
-
),
|
|
1571
|
+
), ws = ({
|
|
1581
1572
|
width: t = 12,
|
|
1582
1573
|
height: r = 2,
|
|
1583
1574
|
className: a = "",
|
|
@@ -1603,17 +1594,17 @@ const yr = 3, mr = (t) => {
|
|
|
1603
1594
|
}
|
|
1604
1595
|
)
|
|
1605
1596
|
}
|
|
1606
|
-
),
|
|
1597
|
+
), Ss = {
|
|
1607
1598
|
medium: { width: 10.83, height: 7.5 },
|
|
1608
1599
|
large: { width: 13, height: 9 }
|
|
1609
|
-
},
|
|
1600
|
+
}, Es = ({
|
|
1610
1601
|
size: t,
|
|
1611
1602
|
isChecked: r,
|
|
1612
1603
|
isDisabled: a,
|
|
1613
1604
|
indeterminate: s,
|
|
1614
1605
|
dataTestId: i
|
|
1615
1606
|
}) => {
|
|
1616
|
-
const { width: n, height: c } =
|
|
1607
|
+
const { width: n, height: c } = Ss[t];
|
|
1617
1608
|
return /* @__PURE__ */ o.jsx(
|
|
1618
1609
|
"div",
|
|
1619
1610
|
{
|
|
@@ -1622,10 +1613,10 @@ const yr = 3, mr = (t) => {
|
|
|
1622
1613
|
"data-checked": r,
|
|
1623
1614
|
"data-disabled": a,
|
|
1624
1615
|
"data-indeterminate": s,
|
|
1625
|
-
children: s ? /* @__PURE__ */ o.jsx(
|
|
1616
|
+
children: s ? /* @__PURE__ */ o.jsx(ws, { width: n, height: c }) : /* @__PURE__ */ o.jsx(Cs, { width: n, height: c })
|
|
1626
1617
|
}
|
|
1627
1618
|
);
|
|
1628
|
-
},
|
|
1619
|
+
}, Un = Q((t, r) => {
|
|
1629
1620
|
const {
|
|
1630
1621
|
name: a,
|
|
1631
1622
|
value: s,
|
|
@@ -1638,50 +1629,51 @@ const yr = 3, mr = (t) => {
|
|
|
1638
1629
|
className: _,
|
|
1639
1630
|
containerStyle: g,
|
|
1640
1631
|
style: h,
|
|
1641
|
-
children:
|
|
1642
|
-
clickableLabel:
|
|
1632
|
+
children: y,
|
|
1633
|
+
clickableLabel: m = !0,
|
|
1643
1634
|
tabIndex: w,
|
|
1644
1635
|
onChange: C,
|
|
1645
|
-
|
|
1646
|
-
|
|
1636
|
+
onClick: E,
|
|
1637
|
+
"data-testid": b = "checkbox"
|
|
1638
|
+
} = t, [I, R] = De(!1), P = s ?? I, A = d || c, k = !!p, N = P || n, D = G(ge.container, ge[i], f), z = G(
|
|
1647
1639
|
ge.checkbox,
|
|
1648
1640
|
ge[i],
|
|
1649
1641
|
{
|
|
1650
|
-
[ge.error]:
|
|
1642
|
+
[ge.error]: k
|
|
1651
1643
|
},
|
|
1652
1644
|
_
|
|
1653
|
-
),
|
|
1654
|
-
|
|
1655
|
-
},
|
|
1656
|
-
if ($.key === "Enter" && !
|
|
1645
|
+
), x = ($) => {
|
|
1646
|
+
A || (R($.target.checked), C == null || C($.target.checked, $));
|
|
1647
|
+
}, W = ($) => {
|
|
1648
|
+
if ($.key === "Enter" && !A) {
|
|
1657
1649
|
$.preventDefault();
|
|
1658
|
-
const
|
|
1659
|
-
R(
|
|
1650
|
+
const U = !N;
|
|
1651
|
+
R(U), C == null || C(U);
|
|
1660
1652
|
}
|
|
1661
|
-
},
|
|
1662
|
-
|
|
1663
|
-
}
|
|
1653
|
+
}, O = ($) => {
|
|
1654
|
+
m || $.preventDefault(), E == null || E($);
|
|
1655
|
+
};
|
|
1664
1656
|
return /* @__PURE__ */ o.jsxs(
|
|
1665
1657
|
"label",
|
|
1666
1658
|
{
|
|
1667
|
-
className:
|
|
1659
|
+
className: D,
|
|
1668
1660
|
htmlFor: a,
|
|
1669
1661
|
style: g,
|
|
1670
|
-
"data-testid":
|
|
1671
|
-
"data-clickable-label":
|
|
1662
|
+
"data-testid": b,
|
|
1663
|
+
"data-clickable-label": m,
|
|
1672
1664
|
children: [
|
|
1673
1665
|
/* @__PURE__ */ o.jsx("div", { className: ge.checkboxWrapper, children: /* @__PURE__ */ o.jsxs(
|
|
1674
1666
|
"div",
|
|
1675
1667
|
{
|
|
1676
1668
|
tabIndex: w || 0,
|
|
1677
|
-
className:
|
|
1669
|
+
className: z,
|
|
1678
1670
|
style: h,
|
|
1679
|
-
onKeyDown:
|
|
1680
|
-
"aria-checked":
|
|
1681
|
-
"aria-disabled":
|
|
1682
|
-
"aria-invalid":
|
|
1671
|
+
onKeyDown: W,
|
|
1672
|
+
"aria-checked": N,
|
|
1673
|
+
"aria-disabled": A,
|
|
1674
|
+
"aria-invalid": k,
|
|
1683
1675
|
"aria-describedby": p ? `${a}-error` : void 0,
|
|
1684
|
-
"data-testid": `${
|
|
1676
|
+
"data-testid": `${b}-label`,
|
|
1685
1677
|
children: [
|
|
1686
1678
|
/* @__PURE__ */ o.jsx(
|
|
1687
1679
|
"input",
|
|
@@ -1690,63 +1682,62 @@ const yr = 3, mr = (t) => {
|
|
|
1690
1682
|
type: "checkbox",
|
|
1691
1683
|
id: a,
|
|
1692
1684
|
name: a,
|
|
1693
|
-
checked:
|
|
1694
|
-
disabled:
|
|
1685
|
+
checked: N,
|
|
1686
|
+
disabled: A,
|
|
1695
1687
|
className: ge.input,
|
|
1696
|
-
onChange:
|
|
1697
|
-
|
|
1698
|
-
"aria-
|
|
1699
|
-
"aria-invalid": T,
|
|
1688
|
+
onChange: x,
|
|
1689
|
+
"aria-checked": N,
|
|
1690
|
+
"aria-invalid": k,
|
|
1700
1691
|
"aria-describedby": p ? `${a}-error` : void 0,
|
|
1701
|
-
"data-testid": `${
|
|
1692
|
+
"data-testid": `${b}-input`
|
|
1702
1693
|
}
|
|
1703
1694
|
),
|
|
1704
1695
|
/* @__PURE__ */ o.jsx(
|
|
1705
|
-
|
|
1696
|
+
Es,
|
|
1706
1697
|
{
|
|
1707
1698
|
name: a,
|
|
1708
1699
|
size: i,
|
|
1709
|
-
isChecked:
|
|
1710
|
-
isDisabled:
|
|
1700
|
+
isChecked: N,
|
|
1701
|
+
isDisabled: A,
|
|
1711
1702
|
indeterminate: n,
|
|
1712
|
-
dataTestId:
|
|
1703
|
+
dataTestId: b
|
|
1713
1704
|
}
|
|
1714
1705
|
)
|
|
1715
1706
|
]
|
|
1716
1707
|
}
|
|
1717
1708
|
) }),
|
|
1718
|
-
|
|
1709
|
+
y && /* @__PURE__ */ o.jsx(
|
|
1719
1710
|
"span",
|
|
1720
1711
|
{
|
|
1721
|
-
"data-testid": `${
|
|
1722
|
-
"data-clickable-label":
|
|
1712
|
+
"data-testid": `${b}-label-text`,
|
|
1713
|
+
"data-clickable-label": m,
|
|
1723
1714
|
className: ge.label,
|
|
1724
|
-
onClick:
|
|
1725
|
-
children:
|
|
1715
|
+
onClick: O,
|
|
1716
|
+
children: y
|
|
1726
1717
|
}
|
|
1727
1718
|
)
|
|
1728
1719
|
]
|
|
1729
1720
|
}
|
|
1730
1721
|
);
|
|
1731
|
-
}),
|
|
1732
|
-
typography:
|
|
1733
|
-
disabled:
|
|
1734
|
-
primary:
|
|
1735
|
-
secondary:
|
|
1736
|
-
tertiary:
|
|
1737
|
-
accent:
|
|
1722
|
+
}), Ls = "_typography_zt7xg_1", Ms = "_disabled_zt7xg_8", $s = "_primary_zt7xg_13", js = "_secondary_zt7xg_18", Is = "_tertiary_zt7xg_23", Rs = "_accent_zt7xg_28", ks = "_positive_zt7xg_38", Ts = "_negative_zt7xg_48", As = "_warning_zt7xg_58", Ns = "_special_zt7xg_68", Ds = "_contrast_zt7xg_78", je = {
|
|
1723
|
+
typography: Ls,
|
|
1724
|
+
disabled: Ms,
|
|
1725
|
+
primary: $s,
|
|
1726
|
+
secondary: js,
|
|
1727
|
+
tertiary: Is,
|
|
1728
|
+
accent: Rs,
|
|
1738
1729
|
"accent-secondary": "_accent-secondary_zt7xg_33",
|
|
1739
|
-
positive:
|
|
1730
|
+
positive: ks,
|
|
1740
1731
|
"positive-secondary": "_positive-secondary_zt7xg_43",
|
|
1741
|
-
negative:
|
|
1732
|
+
negative: Ts,
|
|
1742
1733
|
"negative-secondary": "_negative-secondary_zt7xg_53",
|
|
1743
|
-
warning:
|
|
1734
|
+
warning: As,
|
|
1744
1735
|
"warning-secondary": "_warning-secondary_zt7xg_63",
|
|
1745
|
-
special:
|
|
1736
|
+
special: Ns,
|
|
1746
1737
|
"special-secondary": "_special-secondary_zt7xg_73",
|
|
1747
|
-
contrast:
|
|
1738
|
+
contrast: Ds,
|
|
1748
1739
|
"contrast-secondary": "_contrast-secondary_zt7xg_83"
|
|
1749
|
-
},
|
|
1740
|
+
}, Os = {
|
|
1750
1741
|
1: "h1",
|
|
1751
1742
|
2: "h2",
|
|
1752
1743
|
3: "h3",
|
|
@@ -1765,16 +1756,16 @@ const yr = 3, mr = (t) => {
|
|
|
1765
1756
|
typographyStyle: f = "primary",
|
|
1766
1757
|
..._
|
|
1767
1758
|
}, g) => {
|
|
1768
|
-
const h = c ||
|
|
1759
|
+
const h = c || Os[a], y = G(
|
|
1769
1760
|
je.typography,
|
|
1770
|
-
|
|
1761
|
+
Ne[`typography-${t}-${a}-${p}`],
|
|
1771
1762
|
je[f],
|
|
1772
1763
|
{
|
|
1773
1764
|
[je.disabled]: d
|
|
1774
1765
|
},
|
|
1775
1766
|
i
|
|
1776
1767
|
);
|
|
1777
|
-
return s ? /* @__PURE__ */ o.jsx(h, { ref: g, className:
|
|
1768
|
+
return s ? /* @__PURE__ */ o.jsx(h, { ref: g, className: y, "data-testid": n, ..._, children: s }) : null;
|
|
1778
1769
|
}
|
|
1779
1770
|
);
|
|
1780
1771
|
return r.displayName = `Typography.${t === "title" ? "Title" : "Subtitle"}`, r;
|
|
@@ -1791,9 +1782,9 @@ const yr = 3, mr = (t) => {
|
|
|
1791
1782
|
typographyStyle: f = "primary",
|
|
1792
1783
|
..._
|
|
1793
1784
|
}, g) => {
|
|
1794
|
-
const h = c,
|
|
1785
|
+
const h = c, y = G(
|
|
1795
1786
|
je.typography,
|
|
1796
|
-
|
|
1787
|
+
Ne[`typography-${t}-${a}-${p}`],
|
|
1797
1788
|
je[f],
|
|
1798
1789
|
{
|
|
1799
1790
|
[je.disabled]: d
|
|
@@ -1804,7 +1795,7 @@ const yr = 3, mr = (t) => {
|
|
|
1804
1795
|
h,
|
|
1805
1796
|
{
|
|
1806
1797
|
ref: g,
|
|
1807
|
-
className:
|
|
1798
|
+
className: y,
|
|
1808
1799
|
"data-testid": n,
|
|
1809
1800
|
..._,
|
|
1810
1801
|
children: s
|
|
@@ -1813,41 +1804,41 @@ const yr = 3, mr = (t) => {
|
|
|
1813
1804
|
}
|
|
1814
1805
|
);
|
|
1815
1806
|
return r.displayName = `Typography.${t.charAt(0).toUpperCase() + t.slice(1)}`, r;
|
|
1816
|
-
},
|
|
1807
|
+
}, Bn = {
|
|
1817
1808
|
Title: xt("title"),
|
|
1818
1809
|
Subtitle: xt("subtitle"),
|
|
1819
1810
|
Label: Ct("label"),
|
|
1820
1811
|
Paragraph: Ct("paragraph")
|
|
1821
|
-
},
|
|
1822
|
-
inputBase:
|
|
1823
|
-
wrapper:
|
|
1812
|
+
}, Us = "_inputBase_1m6fe_85", Bs = "_wrapper_1m6fe_95", Fs = "_gripHandle_1m6fe_169", Ps = "_error_1m6fe_230", zs = "_tabFocused_1m6fe_237", Ws = "_disabled_1m6fe_262", Vs = "_loading_1m6fe_269", Hs = "_label_1m6fe_279", Gs = "_small_1m6fe_292", Zs = "_large_1m6fe_299", qs = "_leftSection_1m6fe_306", Ys = "_rightSection_1m6fe_315", Js = "_helper_1m6fe_351", Ks = "_floatingLabel_1m6fe_376", Xs = "_focused_1m6fe_434", Qs = "_filled_1m6fe_435", en = "_medium_1m6fe_469", tn = "_characterLimit_1m6fe_510", an = "_input_1m6fe_85", rn = "_textarea_1m6fe_109", sn = "_truncate_1m6fe_637", nn = "_hint_1m6fe_719", M = {
|
|
1813
|
+
inputBase: Us,
|
|
1814
|
+
wrapper: Bs,
|
|
1824
1815
|
"textarea-wrapper": "_textarea-wrapper_1m6fe_109",
|
|
1825
|
-
gripHandle:
|
|
1826
|
-
error:
|
|
1827
|
-
tabFocused:
|
|
1828
|
-
disabled:
|
|
1829
|
-
loading:
|
|
1830
|
-
label:
|
|
1816
|
+
gripHandle: Fs,
|
|
1817
|
+
error: Ps,
|
|
1818
|
+
tabFocused: zs,
|
|
1819
|
+
disabled: Ws,
|
|
1820
|
+
loading: Vs,
|
|
1821
|
+
label: Hs,
|
|
1831
1822
|
small: Gs,
|
|
1832
1823
|
large: Zs,
|
|
1833
|
-
leftSection:
|
|
1834
|
-
rightSection:
|
|
1835
|
-
helper:
|
|
1836
|
-
floatingLabel:
|
|
1837
|
-
focused:
|
|
1838
|
-
filled:
|
|
1839
|
-
medium:
|
|
1840
|
-
characterLimit:
|
|
1841
|
-
input:
|
|
1842
|
-
textarea:
|
|
1824
|
+
leftSection: qs,
|
|
1825
|
+
rightSection: Ys,
|
|
1826
|
+
helper: Js,
|
|
1827
|
+
floatingLabel: Ks,
|
|
1828
|
+
focused: Xs,
|
|
1829
|
+
filled: Qs,
|
|
1830
|
+
medium: en,
|
|
1831
|
+
characterLimit: tn,
|
|
1832
|
+
input: an,
|
|
1833
|
+
textarea: rn,
|
|
1843
1834
|
"size-small": "_size-small_1m6fe_586",
|
|
1844
1835
|
"size-medium": "_size-medium_1m6fe_592",
|
|
1845
1836
|
"size-large": "_size-large_1m6fe_598",
|
|
1846
1837
|
"with-floating-label": "_with-floating-label_1m6fe_605",
|
|
1847
|
-
truncate:
|
|
1848
|
-
hint:
|
|
1838
|
+
truncate: sn,
|
|
1839
|
+
hint: nn,
|
|
1849
1840
|
"has-hint": "_has-hint_1m6fe_736"
|
|
1850
|
-
},
|
|
1841
|
+
}, on = ({
|
|
1851
1842
|
width: t = 8,
|
|
1852
1843
|
height: r = 8,
|
|
1853
1844
|
className: a,
|
|
@@ -1914,8 +1905,8 @@ const yr = 3, mr = (t) => {
|
|
|
1914
1905
|
)
|
|
1915
1906
|
}
|
|
1916
1907
|
);
|
|
1917
|
-
},
|
|
1918
|
-
const a =
|
|
1908
|
+
}, ln = (t, r) => {
|
|
1909
|
+
const a = We(null), s = We(null);
|
|
1919
1910
|
return we(() => {
|
|
1920
1911
|
const i = r === "textarea" ? a.current : s.current;
|
|
1921
1912
|
i && i.value !== t && (i.value = t || "");
|
|
@@ -1924,7 +1915,7 @@ const yr = 3, mr = (t) => {
|
|
|
1924
1915
|
inputRef: s,
|
|
1925
1916
|
currentRef: r === "textarea" ? a : s
|
|
1926
1917
|
};
|
|
1927
|
-
},
|
|
1918
|
+
}, cn = (t, r, a) => {
|
|
1928
1919
|
const s = () => {
|
|
1929
1920
|
if (!a.current || r !== "hug") return;
|
|
1930
1921
|
const i = a.current.scrollTop;
|
|
@@ -1937,22 +1928,22 @@ const yr = 3, mr = (t) => {
|
|
|
1937
1928
|
return we(s, [t, r]), we(() => {
|
|
1938
1929
|
r === "hug" && a.current && s();
|
|
1939
1930
|
}, []), { resizeTextArea: s };
|
|
1940
|
-
},
|
|
1931
|
+
}, dn = (t, r, a, s) => ({ handleGripMouseDown: Ce(
|
|
1941
1932
|
(n) => {
|
|
1942
1933
|
if (!t || r || a || !(s === "fixed" || !s)) return;
|
|
1943
1934
|
n.preventDefault(), n.stopPropagation();
|
|
1944
1935
|
const c = n.currentTarget.closest(`.${M.wrapper}`);
|
|
1945
1936
|
if (!c) return;
|
|
1946
1937
|
const p = n.clientY, d = c.clientHeight, f = (g) => {
|
|
1947
|
-
const h = g.clientY - p,
|
|
1948
|
-
c.style.height = `${
|
|
1938
|
+
const h = g.clientY - p, y = Math.min(100, d), m = Math.max(y, d + h);
|
|
1939
|
+
c.style.height = `${m}px`;
|
|
1949
1940
|
}, _ = () => {
|
|
1950
1941
|
document.removeEventListener("mousemove", f), document.removeEventListener("mouseup", _);
|
|
1951
1942
|
};
|
|
1952
1943
|
document.addEventListener("mousemove", f), document.addEventListener("mouseup", _);
|
|
1953
1944
|
},
|
|
1954
1945
|
[t, r, a, s]
|
|
1955
|
-
) }), wt = 30,
|
|
1946
|
+
) }), wt = 30, un = Q(
|
|
1956
1947
|
({
|
|
1957
1948
|
component: t = "input",
|
|
1958
1949
|
size: r = "medium",
|
|
@@ -1967,21 +1958,21 @@ const yr = 3, mr = (t) => {
|
|
|
1967
1958
|
maxLength: _,
|
|
1968
1959
|
className: g,
|
|
1969
1960
|
style: h,
|
|
1970
|
-
truncate:
|
|
1971
|
-
shouldShowFloatingLabelClass:
|
|
1961
|
+
truncate: y = !1,
|
|
1962
|
+
shouldShowFloatingLabelClass: m = !1,
|
|
1972
1963
|
"aria-invalid": w,
|
|
1973
1964
|
"aria-errormessage": C,
|
|
1974
|
-
id:
|
|
1975
|
-
resize:
|
|
1976
|
-
...
|
|
1977
|
-
},
|
|
1978
|
-
const { textareaRef:
|
|
1979
|
-
if (
|
|
1965
|
+
id: E,
|
|
1966
|
+
resize: b,
|
|
1967
|
+
...I
|
|
1968
|
+
}, R) => {
|
|
1969
|
+
const { textareaRef: P, inputRef: A, currentRef: k } = ln(a, t);
|
|
1970
|
+
if (cn(a, b, P), oa(R, () => k.current, [k]), t === "textarea")
|
|
1980
1971
|
return /* @__PURE__ */ o.jsx(
|
|
1981
1972
|
"textarea",
|
|
1982
1973
|
{
|
|
1983
|
-
ref:
|
|
1984
|
-
id:
|
|
1974
|
+
ref: P,
|
|
1975
|
+
id: E,
|
|
1985
1976
|
value: a,
|
|
1986
1977
|
placeholder: s,
|
|
1987
1978
|
disabled: i || n,
|
|
@@ -1990,27 +1981,27 @@ const yr = 3, mr = (t) => {
|
|
|
1990
1981
|
onChange: d,
|
|
1991
1982
|
onKeyUp: f,
|
|
1992
1983
|
maxLength: _,
|
|
1993
|
-
className:
|
|
1984
|
+
className: G(
|
|
1994
1985
|
M.textarea,
|
|
1995
1986
|
M[`size-${r}`],
|
|
1996
|
-
|
|
1987
|
+
m && M["with-floating-label"],
|
|
1997
1988
|
g
|
|
1998
1989
|
),
|
|
1999
1990
|
style: h,
|
|
2000
1991
|
"aria-invalid": w,
|
|
2001
1992
|
"aria-errormessage": C,
|
|
2002
|
-
"aria-describedby": C ? `${
|
|
1993
|
+
"aria-describedby": C ? `${E}-error` : void 0,
|
|
2003
1994
|
tabIndex: 0,
|
|
2004
|
-
"data-resize":
|
|
2005
|
-
...
|
|
1995
|
+
"data-resize": b,
|
|
1996
|
+
...I
|
|
2006
1997
|
}
|
|
2007
1998
|
);
|
|
2008
1999
|
if (t === "input")
|
|
2009
2000
|
return /* @__PURE__ */ o.jsx(
|
|
2010
2001
|
"input",
|
|
2011
2002
|
{
|
|
2012
|
-
ref:
|
|
2013
|
-
id:
|
|
2003
|
+
ref: A,
|
|
2004
|
+
id: E,
|
|
2014
2005
|
value: a,
|
|
2015
2006
|
placeholder: s,
|
|
2016
2007
|
disabled: i || n,
|
|
@@ -2019,19 +2010,19 @@ const yr = 3, mr = (t) => {
|
|
|
2019
2010
|
onChange: d,
|
|
2020
2011
|
onKeyUp: f,
|
|
2021
2012
|
maxLength: _,
|
|
2022
|
-
className:
|
|
2013
|
+
className: G(
|
|
2023
2014
|
M.input,
|
|
2024
2015
|
M[`size-${r}`],
|
|
2025
|
-
|
|
2026
|
-
|
|
2016
|
+
m && M["with-floating-label"],
|
|
2017
|
+
y && M.truncate,
|
|
2027
2018
|
g
|
|
2028
2019
|
),
|
|
2029
2020
|
style: h,
|
|
2030
2021
|
"aria-invalid": w,
|
|
2031
2022
|
"aria-errormessage": C,
|
|
2032
|
-
"aria-describedby": C ? `${
|
|
2023
|
+
"aria-describedby": C ? `${E}-error` : void 0,
|
|
2033
2024
|
tabIndex: 0,
|
|
2034
|
-
...
|
|
2025
|
+
...I
|
|
2035
2026
|
}
|
|
2036
2027
|
);
|
|
2037
2028
|
if (t !== "input" && t !== "textarea")
|
|
@@ -2054,37 +2045,37 @@ const yr = 3, mr = (t) => {
|
|
|
2054
2045
|
suffixStyles: _,
|
|
2055
2046
|
labelProps: g,
|
|
2056
2047
|
helperProps: h,
|
|
2057
|
-
showLimit:
|
|
2058
|
-
maxLength:
|
|
2048
|
+
showLimit: y = !1,
|
|
2049
|
+
maxLength: m,
|
|
2059
2050
|
hint: w,
|
|
2060
2051
|
showHint: C = !1,
|
|
2061
|
-
showHintOnEmpty:
|
|
2062
|
-
prefix:
|
|
2063
|
-
suffix:
|
|
2064
|
-
placeholder:
|
|
2065
|
-
showLabel:
|
|
2066
|
-
labelClassName:
|
|
2067
|
-
hasValue:
|
|
2068
|
-
helper:
|
|
2069
|
-
id:
|
|
2070
|
-
value:
|
|
2052
|
+
showHintOnEmpty: E = !1,
|
|
2053
|
+
prefix: b,
|
|
2054
|
+
suffix: I,
|
|
2055
|
+
placeholder: R,
|
|
2056
|
+
showLabel: P = !0,
|
|
2057
|
+
labelClassName: A,
|
|
2058
|
+
hasValue: k = !1,
|
|
2059
|
+
helper: N,
|
|
2060
|
+
id: D,
|
|
2061
|
+
value: z = "",
|
|
2071
2062
|
resize: x,
|
|
2072
|
-
showGrip:
|
|
2063
|
+
showGrip: W = !1,
|
|
2073
2064
|
...O
|
|
2074
2065
|
}, $) => {
|
|
2075
|
-
const
|
|
2066
|
+
const U = $t(), V = D || U, Z = C && w && (k || E), q = w && w.length > wt ? w.substring(0, wt) + "..." : w, te = G(
|
|
2076
2067
|
M.wrapper,
|
|
2077
2068
|
a && M.error,
|
|
2078
2069
|
s && M.disabled,
|
|
2079
2070
|
i && M.loading,
|
|
2080
|
-
|
|
2071
|
+
Z && M["has-hint"],
|
|
2081
2072
|
n
|
|
2082
|
-
), ae =
|
|
2073
|
+
), ae = G(
|
|
2083
2074
|
M.floatingLabel,
|
|
2084
2075
|
M[r],
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
), { handleGripMouseDown: re } =
|
|
2076
|
+
k && M.filled,
|
|
2077
|
+
A
|
|
2078
|
+
), { handleGripMouseDown: re } = dn(W, s, i, x);
|
|
2088
2079
|
return /* @__PURE__ */ o.jsxs("div", { ref: $, className: M.inputBase, "data-testid": "input-base-wrapper", ...O, children: [
|
|
2089
2080
|
/* @__PURE__ */ o.jsxs(
|
|
2090
2081
|
"div",
|
|
@@ -2092,23 +2083,23 @@ const yr = 3, mr = (t) => {
|
|
|
2092
2083
|
className: te,
|
|
2093
2084
|
style: p,
|
|
2094
2085
|
"data-resize": x,
|
|
2095
|
-
"data-show-grip":
|
|
2086
|
+
"data-show-grip": W ? "true" : "false",
|
|
2096
2087
|
...c,
|
|
2097
2088
|
children: [
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2089
|
+
b && /* @__PURE__ */ o.jsx("label", { htmlFor: V, className: M.leftSection, style: f, children: b }),
|
|
2090
|
+
I && /* @__PURE__ */ o.jsx("label", { htmlFor: V, className: M.rightSection, style: _, children: I }),
|
|
2091
|
+
R && P && /* @__PURE__ */ o.jsx(
|
|
2101
2092
|
"label",
|
|
2102
2093
|
{
|
|
2103
|
-
htmlFor:
|
|
2094
|
+
htmlFor: V,
|
|
2104
2095
|
className: ae,
|
|
2105
2096
|
style: d,
|
|
2106
2097
|
...g,
|
|
2107
|
-
children:
|
|
2098
|
+
children: R
|
|
2108
2099
|
}
|
|
2109
2100
|
),
|
|
2110
2101
|
t,
|
|
2111
|
-
|
|
2102
|
+
W && !y && (x === "fixed" || !x) && /* @__PURE__ */ o.jsx(
|
|
2112
2103
|
"div",
|
|
2113
2104
|
{
|
|
2114
2105
|
className: M.gripHandle,
|
|
@@ -2116,43 +2107,43 @@ const yr = 3, mr = (t) => {
|
|
|
2116
2107
|
role: "button",
|
|
2117
2108
|
tabIndex: -1,
|
|
2118
2109
|
"aria-label": "Изменить размер",
|
|
2119
|
-
children: /* @__PURE__ */ o.jsx(
|
|
2110
|
+
children: /* @__PURE__ */ o.jsx(on, {})
|
|
2120
2111
|
}
|
|
2121
2112
|
),
|
|
2122
|
-
|
|
2113
|
+
Z && /* @__PURE__ */ o.jsx(
|
|
2123
2114
|
"div",
|
|
2124
2115
|
{
|
|
2125
|
-
className:
|
|
2116
|
+
className: G(M.hint, k && M.truncate),
|
|
2126
2117
|
"data-disabled": s || i,
|
|
2127
|
-
children:
|
|
2118
|
+
children: q
|
|
2128
2119
|
}
|
|
2129
2120
|
),
|
|
2130
|
-
|
|
2131
|
-
(
|
|
2121
|
+
y && m && /* @__PURE__ */ o.jsxs("div", { className: M.characterLimit, children: [
|
|
2122
|
+
(z || "").length,
|
|
2132
2123
|
" из ",
|
|
2133
|
-
|
|
2124
|
+
m
|
|
2134
2125
|
] })
|
|
2135
2126
|
]
|
|
2136
2127
|
}
|
|
2137
2128
|
),
|
|
2138
|
-
|
|
2129
|
+
N && /* @__PURE__ */ o.jsx(
|
|
2139
2130
|
"div",
|
|
2140
2131
|
{
|
|
2141
|
-
className:
|
|
2132
|
+
className: G(
|
|
2142
2133
|
M.helper,
|
|
2143
2134
|
a && M.error,
|
|
2144
2135
|
(s || i) && M.disabled
|
|
2145
2136
|
),
|
|
2146
2137
|
...h,
|
|
2147
|
-
id: a ? `${
|
|
2148
|
-
children:
|
|
2138
|
+
id: a ? `${V}-error` : void 0,
|
|
2139
|
+
children: N
|
|
2149
2140
|
}
|
|
2150
2141
|
)
|
|
2151
2142
|
] });
|
|
2152
2143
|
}
|
|
2153
2144
|
);
|
|
2154
2145
|
Tt.displayName = "InputWrapperComponent";
|
|
2155
|
-
const St = Object.assign(
|
|
2146
|
+
const St = Object.assign(un, {
|
|
2156
2147
|
Wrapper: Tt
|
|
2157
2148
|
}), At = Q(
|
|
2158
2149
|
({
|
|
@@ -2169,39 +2160,39 @@ const St = Object.assign(_n, {
|
|
|
2169
2160
|
prefix: _,
|
|
2170
2161
|
suffix: g,
|
|
2171
2162
|
id: h,
|
|
2172
|
-
onFocus:
|
|
2173
|
-
onBlur:
|
|
2163
|
+
onFocus: y,
|
|
2164
|
+
onBlur: m,
|
|
2174
2165
|
onChange: w,
|
|
2175
2166
|
value: C = "",
|
|
2176
|
-
wrapperProps:
|
|
2177
|
-
wrapperStyles:
|
|
2178
|
-
floatingLabelStyles:
|
|
2179
|
-
prefixStyles:
|
|
2180
|
-
suffixStyles:
|
|
2181
|
-
textareaStyles:
|
|
2182
|
-
labelProps:
|
|
2183
|
-
helperProps:
|
|
2184
|
-
showLimit:
|
|
2185
|
-
maxLength:
|
|
2167
|
+
wrapperProps: E,
|
|
2168
|
+
wrapperStyles: b,
|
|
2169
|
+
floatingLabelStyles: I,
|
|
2170
|
+
prefixStyles: R,
|
|
2171
|
+
suffixStyles: P,
|
|
2172
|
+
textareaStyles: A,
|
|
2173
|
+
labelProps: k,
|
|
2174
|
+
helperProps: N,
|
|
2175
|
+
showLimit: D = !1,
|
|
2176
|
+
maxLength: z,
|
|
2186
2177
|
inputProps: x,
|
|
2187
|
-
hint:
|
|
2178
|
+
hint: W,
|
|
2188
2179
|
showHint: O = !1,
|
|
2189
2180
|
showHintOnEmpty: $ = !1,
|
|
2190
|
-
truncate:
|
|
2191
|
-
resize:
|
|
2192
|
-
showGrip:
|
|
2193
|
-
...
|
|
2181
|
+
truncate: U = !1,
|
|
2182
|
+
resize: V,
|
|
2183
|
+
showGrip: Z = !1,
|
|
2184
|
+
...q
|
|
2194
2185
|
}, te) => {
|
|
2195
|
-
const ae = $t(), re = h || ae, [be, se] =
|
|
2186
|
+
const ae = $t(), re = h || ae, [be, se] = De(C), ye = C !== void 0 ? C : be, Se = (ye || "").length > 0, ue = p && (r === "large" || t === "textarea") && !_, ie = Ce(
|
|
2196
2187
|
(K) => {
|
|
2197
2188
|
var ee;
|
|
2198
|
-
i || n || (
|
|
2189
|
+
i || n || (y == null || y(), (ee = x == null ? void 0 : x.onFocus) == null || ee.call(
|
|
2199
2190
|
x,
|
|
2200
2191
|
K
|
|
2201
2192
|
));
|
|
2202
2193
|
},
|
|
2203
|
-
[
|
|
2204
|
-
),
|
|
2194
|
+
[y, x, i, n]
|
|
2195
|
+
), pe = Ce(
|
|
2205
2196
|
(K) => {
|
|
2206
2197
|
var ee;
|
|
2207
2198
|
if (K.key === "Tab") {
|
|
@@ -2218,12 +2209,12 @@ const St = Object.assign(_n, {
|
|
|
2218
2209
|
(K) => {
|
|
2219
2210
|
var ce;
|
|
2220
2211
|
const ee = K.target.closest(`.${M.wrapper}`);
|
|
2221
|
-
ee && ee.classList.remove(M.tabFocused),
|
|
2212
|
+
ee && ee.classList.remove(M.tabFocused), m == null || m(), (ce = x == null ? void 0 : x.onBlur) == null || ce.call(
|
|
2222
2213
|
x,
|
|
2223
2214
|
K
|
|
2224
2215
|
);
|
|
2225
2216
|
},
|
|
2226
|
-
[
|
|
2217
|
+
[m, x]
|
|
2227
2218
|
), me = Ce(
|
|
2228
2219
|
(K) => {
|
|
2229
2220
|
var ce;
|
|
@@ -2246,17 +2237,17 @@ const St = Object.assign(_n, {
|
|
|
2246
2237
|
error: s,
|
|
2247
2238
|
disabled: i || n,
|
|
2248
2239
|
loading: n,
|
|
2249
|
-
className:
|
|
2250
|
-
wrapperProps:
|
|
2251
|
-
wrapperStyles:
|
|
2252
|
-
floatingLabelStyles:
|
|
2253
|
-
prefixStyles:
|
|
2254
|
-
suffixStyles:
|
|
2255
|
-
labelProps:
|
|
2256
|
-
helperProps:
|
|
2257
|
-
showLimit:
|
|
2258
|
-
maxLength:
|
|
2259
|
-
hint:
|
|
2240
|
+
className: G(a, t === "textarea" && M["textarea-wrapper"]),
|
|
2241
|
+
wrapperProps: E,
|
|
2242
|
+
wrapperStyles: b,
|
|
2243
|
+
floatingLabelStyles: I,
|
|
2244
|
+
prefixStyles: R,
|
|
2245
|
+
suffixStyles: P,
|
|
2246
|
+
labelProps: k,
|
|
2247
|
+
helperProps: N,
|
|
2248
|
+
showLimit: D,
|
|
2249
|
+
maxLength: z,
|
|
2250
|
+
hint: W,
|
|
2260
2251
|
showHint: O,
|
|
2261
2252
|
showHintOnEmpty: $,
|
|
2262
2253
|
prefix: _,
|
|
@@ -2268,9 +2259,9 @@ const St = Object.assign(_n, {
|
|
|
2268
2259
|
helper: f,
|
|
2269
2260
|
id: re,
|
|
2270
2261
|
value: ye,
|
|
2271
|
-
showGrip:
|
|
2272
|
-
resize:
|
|
2273
|
-
...
|
|
2262
|
+
showGrip: Z,
|
|
2263
|
+
resize: V,
|
|
2264
|
+
...q,
|
|
2274
2265
|
children: /* @__PURE__ */ o.jsx(
|
|
2275
2266
|
St,
|
|
2276
2267
|
{
|
|
@@ -2283,16 +2274,16 @@ const St = Object.assign(_n, {
|
|
|
2283
2274
|
onFocus: ie,
|
|
2284
2275
|
onBlur: le,
|
|
2285
2276
|
onChange: me,
|
|
2286
|
-
onKeyUp:
|
|
2287
|
-
maxLength:
|
|
2288
|
-
truncate:
|
|
2277
|
+
onKeyUp: pe,
|
|
2278
|
+
maxLength: z,
|
|
2279
|
+
truncate: U,
|
|
2289
2280
|
"data-empty": !Se,
|
|
2290
2281
|
shouldShowFloatingLabelClass: ue,
|
|
2291
|
-
style: t === "textarea" ?
|
|
2282
|
+
style: t === "textarea" ? A : void 0,
|
|
2292
2283
|
"aria-invalid": !!s,
|
|
2293
2284
|
"aria-errormessage": s ? `${re}-error` : void 0,
|
|
2294
2285
|
id: re,
|
|
2295
|
-
resize:
|
|
2286
|
+
resize: V,
|
|
2296
2287
|
...x
|
|
2297
2288
|
}
|
|
2298
2289
|
)
|
|
@@ -2314,7 +2305,7 @@ const St = Object.assign(_n, {
|
|
|
2314
2305
|
default:
|
|
2315
2306
|
return "12px 16px 12px 16px";
|
|
2316
2307
|
}
|
|
2317
|
-
},
|
|
2308
|
+
}, _n = (t) => {
|
|
2318
2309
|
switch (t) {
|
|
2319
2310
|
case J.LARGE:
|
|
2320
2311
|
return "56px";
|
|
@@ -2325,7 +2316,7 @@ const St = Object.assign(_n, {
|
|
|
2325
2316
|
default:
|
|
2326
2317
|
return "48px";
|
|
2327
2318
|
}
|
|
2328
|
-
},
|
|
2319
|
+
}, fn = (t) => {
|
|
2329
2320
|
switch (t) {
|
|
2330
2321
|
case J.SMALL:
|
|
2331
2322
|
return 8;
|
|
@@ -2337,7 +2328,7 @@ const St = Object.assign(_n, {
|
|
|
2337
2328
|
default:
|
|
2338
2329
|
return 12;
|
|
2339
2330
|
}
|
|
2340
|
-
},
|
|
2331
|
+
}, gn = (t, r, a) => ({
|
|
2341
2332
|
wrapperStyles: {
|
|
2342
2333
|
height: t,
|
|
2343
2334
|
minHeight: t,
|
|
@@ -2355,7 +2346,7 @@ const St = Object.assign(_n, {
|
|
|
2355
2346
|
suffixStyles: {
|
|
2356
2347
|
right: `${a}px`
|
|
2357
2348
|
}
|
|
2358
|
-
}),
|
|
2349
|
+
}), hn = (t, r, a) => ({
|
|
2359
2350
|
wrapperStyles: {
|
|
2360
2351
|
minHeight: t,
|
|
2361
2352
|
maxHeight: t,
|
|
@@ -2371,7 +2362,7 @@ const St = Object.assign(_n, {
|
|
|
2371
2362
|
suffixStyles: {
|
|
2372
2363
|
right: `${a}px`
|
|
2373
2364
|
}
|
|
2374
|
-
}),
|
|
2365
|
+
}), bn = (t, r, a) => ({
|
|
2375
2366
|
wrapperStyles: {
|
|
2376
2367
|
minHeight: t,
|
|
2377
2368
|
maxHeight: t,
|
|
@@ -2387,15 +2378,15 @@ const St = Object.assign(_n, {
|
|
|
2387
2378
|
suffixStyles: {
|
|
2388
2379
|
right: `${a}px`
|
|
2389
2380
|
}
|
|
2390
|
-
}),
|
|
2391
|
-
const i =
|
|
2381
|
+
}), yn = (t, r, a, s) => {
|
|
2382
|
+
const i = _n(t), n = pn(t, r, a, s), c = fn(t);
|
|
2392
2383
|
switch (t) {
|
|
2393
2384
|
case J.LARGE:
|
|
2394
|
-
return
|
|
2385
|
+
return gn(i, n, c);
|
|
2395
2386
|
case J.MEDIUM:
|
|
2396
|
-
return
|
|
2387
|
+
return hn(i, n, c);
|
|
2397
2388
|
case J.SMALL:
|
|
2398
|
-
return
|
|
2389
|
+
return bn(i, n, c);
|
|
2399
2390
|
default:
|
|
2400
2391
|
return {
|
|
2401
2392
|
wrapperStyles: {},
|
|
@@ -2404,7 +2395,7 @@ const St = Object.assign(_n, {
|
|
|
2404
2395
|
suffixStyles: {}
|
|
2405
2396
|
};
|
|
2406
2397
|
}
|
|
2407
|
-
},
|
|
2398
|
+
}, Fn = Q(
|
|
2408
2399
|
({
|
|
2409
2400
|
value: t = "",
|
|
2410
2401
|
onChange: r,
|
|
@@ -2419,25 +2410,25 @@ const St = Object.assign(_n, {
|
|
|
2419
2410
|
error: _,
|
|
2420
2411
|
disabled: g,
|
|
2421
2412
|
loading: h,
|
|
2422
|
-
helper:
|
|
2423
|
-
prefix:
|
|
2413
|
+
helper: y,
|
|
2414
|
+
prefix: m,
|
|
2424
2415
|
suffix: w,
|
|
2425
2416
|
clearable: C = !1,
|
|
2426
|
-
id:
|
|
2427
|
-
showLabel:
|
|
2428
|
-
onFocus:
|
|
2429
|
-
onBlur:
|
|
2430
|
-
className:
|
|
2431
|
-
truncate:
|
|
2432
|
-
hint:
|
|
2433
|
-
showHint:
|
|
2434
|
-
showHintOnEmpty:
|
|
2435
|
-
wrapperProps:
|
|
2417
|
+
id: E,
|
|
2418
|
+
showLabel: b = !0,
|
|
2419
|
+
onFocus: I,
|
|
2420
|
+
onBlur: R,
|
|
2421
|
+
className: P,
|
|
2422
|
+
truncate: A = !0,
|
|
2423
|
+
hint: k,
|
|
2424
|
+
showHint: N = !1,
|
|
2425
|
+
showHintOnEmpty: D = !1,
|
|
2426
|
+
wrapperProps: z,
|
|
2436
2427
|
labelProps: x,
|
|
2437
|
-
helperProps:
|
|
2428
|
+
helperProps: W,
|
|
2438
2429
|
...O
|
|
2439
2430
|
}, $) => {
|
|
2440
|
-
const
|
|
2431
|
+
const U = (t || "").length > 0, V = d === J.LARGE, Z = !!m, q = V && b && !m, te = C && U && !(g || h), ae = () => {
|
|
2441
2432
|
r == null || r("");
|
|
2442
2433
|
}, re = te ? /* @__PURE__ */ o.jsx(
|
|
2443
2434
|
kt,
|
|
@@ -2454,7 +2445,7 @@ const St = Object.assign(_n, {
|
|
|
2454
2445
|
autoComplete: c,
|
|
2455
2446
|
autoFocus: p,
|
|
2456
2447
|
...f
|
|
2457
|
-
}, se =
|
|
2448
|
+
}, se = yn(d, q, U, Z);
|
|
2458
2449
|
return /* @__PURE__ */ o.jsx(
|
|
2459
2450
|
At,
|
|
2460
2451
|
{
|
|
@@ -2462,31 +2453,31 @@ const St = Object.assign(_n, {
|
|
|
2462
2453
|
error: _,
|
|
2463
2454
|
disabled: g || h,
|
|
2464
2455
|
loading: h,
|
|
2465
|
-
helper:
|
|
2466
|
-
prefix:
|
|
2456
|
+
helper: y,
|
|
2457
|
+
prefix: m,
|
|
2467
2458
|
suffix: re,
|
|
2468
|
-
id:
|
|
2469
|
-
showLabel:
|
|
2470
|
-
onFocus:
|
|
2471
|
-
onBlur:
|
|
2459
|
+
id: E,
|
|
2460
|
+
showLabel: q,
|
|
2461
|
+
onFocus: I,
|
|
2462
|
+
onBlur: R,
|
|
2472
2463
|
onChange: r,
|
|
2473
2464
|
value: t || "",
|
|
2474
2465
|
placeholder: s,
|
|
2475
|
-
className:
|
|
2466
|
+
className: P,
|
|
2476
2467
|
wrapperStyles: se.wrapperStyles,
|
|
2477
2468
|
floatingLabelStyles: se.floatingLabelStyles,
|
|
2478
2469
|
prefixStyles: se.prefixStyles,
|
|
2479
2470
|
suffixStyles: se.suffixStyles,
|
|
2480
|
-
wrapperProps:
|
|
2471
|
+
wrapperProps: z,
|
|
2481
2472
|
labelProps: x,
|
|
2482
|
-
helperProps:
|
|
2473
|
+
helperProps: W,
|
|
2483
2474
|
showLimit: !1,
|
|
2484
2475
|
maxLength: i,
|
|
2485
2476
|
inputProps: be,
|
|
2486
|
-
hint:
|
|
2487
|
-
showHint:
|
|
2488
|
-
showHintOnEmpty:
|
|
2489
|
-
truncate:
|
|
2477
|
+
hint: k,
|
|
2478
|
+
showHint: N,
|
|
2479
|
+
showHintOnEmpty: D,
|
|
2480
|
+
truncate: A,
|
|
2490
2481
|
...O
|
|
2491
2482
|
}
|
|
2492
2483
|
);
|
|
@@ -2494,13 +2485,13 @@ const St = Object.assign(_n, {
|
|
|
2494
2485
|
), oe = {
|
|
2495
2486
|
SMALL: "small",
|
|
2496
2487
|
MEDIUM: "medium"
|
|
2497
|
-
},
|
|
2488
|
+
}, ze = {
|
|
2498
2489
|
SMALL: "12px",
|
|
2499
2490
|
MEDIUM: "16px"
|
|
2500
|
-
},
|
|
2491
|
+
}, mn = {
|
|
2501
2492
|
SMALL: "xs",
|
|
2502
2493
|
MEDIUM: "sm"
|
|
2503
|
-
},
|
|
2494
|
+
}, Fe = {
|
|
2504
2495
|
FILL: "fill",
|
|
2505
2496
|
FIXED: "fixed"
|
|
2506
2497
|
}, Ke = {
|
|
@@ -2518,7 +2509,7 @@ const St = Object.assign(_n, {
|
|
|
2518
2509
|
SMALL: 48,
|
|
2519
2510
|
MEDIUM: 56,
|
|
2520
2511
|
LARGE: 112
|
|
2521
|
-
},
|
|
2512
|
+
}, vn = (t, r) => {
|
|
2522
2513
|
if (t === oe.SMALL)
|
|
2523
2514
|
return Ke.SMALL;
|
|
2524
2515
|
if (r)
|
|
@@ -2529,7 +2520,7 @@ const St = Object.assign(_n, {
|
|
|
2529
2520
|
default:
|
|
2530
2521
|
return Ke.MEDIUM;
|
|
2531
2522
|
}
|
|
2532
|
-
},
|
|
2523
|
+
}, xn = (t, r) => {
|
|
2533
2524
|
if (t === oe.SMALL)
|
|
2534
2525
|
return $e.SMALL;
|
|
2535
2526
|
if (r)
|
|
@@ -2548,7 +2539,7 @@ const St = Object.assign(_n, {
|
|
|
2548
2539
|
default:
|
|
2549
2540
|
return $e.MEDIUM;
|
|
2550
2541
|
}
|
|
2551
|
-
},
|
|
2542
|
+
}, Cn = (t, r, a) => {
|
|
2552
2543
|
if (t === oe.SMALL)
|
|
2553
2544
|
return fe.SMALL;
|
|
2554
2545
|
if (r)
|
|
@@ -2568,7 +2559,7 @@ const St = Object.assign(_n, {
|
|
|
2568
2559
|
default:
|
|
2569
2560
|
return fe.MEDIUM;
|
|
2570
2561
|
}
|
|
2571
|
-
},
|
|
2562
|
+
}, wn = (t, r) => {
|
|
2572
2563
|
if (t === oe.SMALL)
|
|
2573
2564
|
return "small";
|
|
2574
2565
|
if (r)
|
|
@@ -2583,35 +2574,35 @@ const St = Object.assign(_n, {
|
|
|
2583
2574
|
return "medium";
|
|
2584
2575
|
}
|
|
2585
2576
|
return t;
|
|
2586
|
-
},
|
|
2587
|
-
const i =
|
|
2577
|
+
}, Sn = (t) => mn[t.toUpperCase()], En = (t) => ze[t.toUpperCase()], Ln = (t, r, a, s) => {
|
|
2578
|
+
const i = vn(t, r), n = xn(t, r), c = Cn(t, r, a);
|
|
2588
2579
|
return {
|
|
2589
2580
|
wrapperStyles: {
|
|
2590
2581
|
minHeight: i,
|
|
2591
2582
|
// Для fill resize устанавливаем height: 100%
|
|
2592
|
-
...s ===
|
|
2583
|
+
...s === Fe.FILL && { height: "100%" },
|
|
2593
2584
|
// Для fixed resize устанавливаем фиксированную высоту
|
|
2594
|
-
...s ===
|
|
2585
|
+
...s === Fe.FIXED && r && { height: i },
|
|
2595
2586
|
boxSizing: "border-box",
|
|
2596
2587
|
padding: c
|
|
2597
2588
|
},
|
|
2598
2589
|
floatingLabelStyles: {
|
|
2599
|
-
left: t === oe.SMALL ?
|
|
2590
|
+
left: t === oe.SMALL ? ze.SMALL : ze.MEDIUM,
|
|
2600
2591
|
transformOrigin: "left top",
|
|
2601
|
-
top: r === 112 && a && t === oe.MEDIUM ?
|
|
2592
|
+
top: r === 112 && a && t === oe.MEDIUM ? ze.MEDIUM : void 0
|
|
2602
2593
|
},
|
|
2603
2594
|
suffixStyles: {
|
|
2604
|
-
right:
|
|
2595
|
+
right: En(t)
|
|
2605
2596
|
},
|
|
2606
2597
|
textareaStyles: {
|
|
2607
2598
|
minHeight: n,
|
|
2608
2599
|
// Для fill resize flex: 1
|
|
2609
|
-
...s ===
|
|
2600
|
+
...s === Fe.FILL && { flex: 1, minHeight: 0 },
|
|
2610
2601
|
// Для fixed resize фиксированная высота
|
|
2611
|
-
...s ===
|
|
2602
|
+
...s === Fe.FIXED && r && { height: n }
|
|
2612
2603
|
}
|
|
2613
2604
|
};
|
|
2614
|
-
},
|
|
2605
|
+
}, Pn = Q(
|
|
2615
2606
|
({
|
|
2616
2607
|
value: t = "",
|
|
2617
2608
|
onChange: r,
|
|
@@ -2626,81 +2617,81 @@ const St = Object.assign(_n, {
|
|
|
2626
2617
|
loading: _,
|
|
2627
2618
|
helper: g,
|
|
2628
2619
|
suffix: h,
|
|
2629
|
-
clearable:
|
|
2630
|
-
id:
|
|
2620
|
+
clearable: y = !1,
|
|
2621
|
+
id: m,
|
|
2631
2622
|
showLabel: w = !0,
|
|
2632
2623
|
onFocus: C,
|
|
2633
|
-
onBlur:
|
|
2634
|
-
className:
|
|
2635
|
-
rows:
|
|
2636
|
-
showLimit:
|
|
2637
|
-
wrapperProps:
|
|
2638
|
-
labelProps:
|
|
2639
|
-
helperProps:
|
|
2640
|
-
showGrip:
|
|
2641
|
-
minHeight:
|
|
2642
|
-
resize:
|
|
2624
|
+
onBlur: E,
|
|
2625
|
+
className: b,
|
|
2626
|
+
rows: I = 1,
|
|
2627
|
+
showLimit: R = !1,
|
|
2628
|
+
wrapperProps: P,
|
|
2629
|
+
labelProps: A,
|
|
2630
|
+
helperProps: k,
|
|
2631
|
+
showGrip: N,
|
|
2632
|
+
minHeight: D,
|
|
2633
|
+
resize: z,
|
|
2643
2634
|
...x
|
|
2644
|
-
},
|
|
2645
|
-
const O = (t || "").length > 0, $ = w && !!a && (c === oe.SMALL ||
|
|
2635
|
+
}, W) => {
|
|
2636
|
+
const O = (t || "").length > 0, $ = w && !!a && (c === oe.SMALL || D !== 48), U = y && O && !(f || _), V = () => {
|
|
2646
2637
|
r == null || r("");
|
|
2647
|
-
},
|
|
2638
|
+
}, Z = U ? /* @__PURE__ */ o.jsx(
|
|
2648
2639
|
kt,
|
|
2649
2640
|
{
|
|
2650
|
-
size:
|
|
2641
|
+
size: Sn(c),
|
|
2651
2642
|
color: "var(--icon-secondary)",
|
|
2652
|
-
onClick:
|
|
2643
|
+
onClick: V,
|
|
2653
2644
|
style: { cursor: "pointer" },
|
|
2654
2645
|
"data-testid": "x-icon"
|
|
2655
2646
|
}
|
|
2656
|
-
) : h,
|
|
2657
|
-
rows:
|
|
2647
|
+
) : h, q = Ln(c, D, $ && O, z), te = wn(c, D), ae = {
|
|
2648
|
+
rows: I,
|
|
2658
2649
|
minLength: i,
|
|
2659
2650
|
autoFocus: n,
|
|
2660
|
-
resize:
|
|
2651
|
+
resize: z,
|
|
2661
2652
|
...p
|
|
2662
2653
|
};
|
|
2663
2654
|
return /* @__PURE__ */ o.jsx(
|
|
2664
2655
|
At,
|
|
2665
2656
|
{
|
|
2666
|
-
ref:
|
|
2657
|
+
ref: W,
|
|
2667
2658
|
component: "textarea",
|
|
2668
2659
|
size: te,
|
|
2669
2660
|
error: d,
|
|
2670
2661
|
disabled: f || _,
|
|
2671
2662
|
loading: _,
|
|
2672
2663
|
helper: g,
|
|
2673
|
-
suffix:
|
|
2674
|
-
id:
|
|
2664
|
+
suffix: Z,
|
|
2665
|
+
id: m,
|
|
2675
2666
|
showLabel: $,
|
|
2676
2667
|
onFocus: C,
|
|
2677
|
-
onBlur:
|
|
2668
|
+
onBlur: E,
|
|
2678
2669
|
onChange: r,
|
|
2679
2670
|
value: t || "",
|
|
2680
2671
|
placeholder: a,
|
|
2681
|
-
className:
|
|
2672
|
+
className: b,
|
|
2682
2673
|
"data-floating-label": $,
|
|
2683
|
-
wrapperStyles:
|
|
2684
|
-
floatingLabelStyles:
|
|
2685
|
-
suffixStyles:
|
|
2686
|
-
textareaStyles:
|
|
2687
|
-
wrapperProps:
|
|
2688
|
-
labelProps:
|
|
2689
|
-
helperProps:
|
|
2690
|
-
showLimit:
|
|
2674
|
+
wrapperStyles: q.wrapperStyles,
|
|
2675
|
+
floatingLabelStyles: q.floatingLabelStyles,
|
|
2676
|
+
suffixStyles: q.suffixStyles,
|
|
2677
|
+
textareaStyles: q.textareaStyles,
|
|
2678
|
+
wrapperProps: P,
|
|
2679
|
+
labelProps: A,
|
|
2680
|
+
helperProps: k,
|
|
2681
|
+
showLimit: R && (D === 112 || c === oe.SMALL),
|
|
2691
2682
|
maxLength: s,
|
|
2692
2683
|
inputProps: ae,
|
|
2693
|
-
resize:
|
|
2694
|
-
showGrip:
|
|
2684
|
+
resize: z,
|
|
2685
|
+
showGrip: N,
|
|
2695
2686
|
...x
|
|
2696
2687
|
}
|
|
2697
2688
|
);
|
|
2698
2689
|
}
|
|
2699
|
-
),
|
|
2700
|
-
helper:
|
|
2690
|
+
), Mn = "_helper_1vhgl_16", Xe = {
|
|
2691
|
+
helper: Mn,
|
|
2701
2692
|
"helper--error": "_helper--error_1vhgl_27",
|
|
2702
2693
|
"helper--disabled": "_helper--disabled_1vhgl_32"
|
|
2703
|
-
},
|
|
2694
|
+
}, zn = ({
|
|
2704
2695
|
title: t,
|
|
2705
2696
|
error: r,
|
|
2706
2697
|
className: a = "",
|
|
@@ -2710,7 +2701,7 @@ const St = Object.assign(_n, {
|
|
|
2710
2701
|
"aria-label": c,
|
|
2711
2702
|
"aria-describedby": p
|
|
2712
2703
|
}) => {
|
|
2713
|
-
const d = !!r, f =
|
|
2704
|
+
const d = !!r, f = G(
|
|
2714
2705
|
Xe.helper,
|
|
2715
2706
|
d && Xe["helper--error"],
|
|
2716
2707
|
i && Xe["helper--disabled"],
|
|
@@ -2729,20 +2720,20 @@ const St = Object.assign(_n, {
|
|
|
2729
2720
|
);
|
|
2730
2721
|
};
|
|
2731
2722
|
export {
|
|
2732
|
-
|
|
2733
|
-
|
|
2734
|
-
|
|
2735
|
-
|
|
2736
|
-
|
|
2737
|
-
|
|
2738
|
-
|
|
2739
|
-
|
|
2740
|
-
|
|
2741
|
-
|
|
2742
|
-
|
|
2743
|
-
|
|
2723
|
+
Rn as Avatar,
|
|
2724
|
+
kn as Badge,
|
|
2725
|
+
In as Button,
|
|
2726
|
+
Un as Checkbox,
|
|
2727
|
+
Nn as ConfigProvider,
|
|
2728
|
+
zn as Helper,
|
|
2729
|
+
Tn as Image,
|
|
2730
|
+
Vr as Loader,
|
|
2731
|
+
On as Tag,
|
|
2732
|
+
Pn as TextArea,
|
|
2733
|
+
Fn as TextInput,
|
|
2734
|
+
Bn as Typography,
|
|
2744
2735
|
Gr as enUS,
|
|
2745
|
-
|
|
2736
|
+
Dn as ruRU,
|
|
2746
2737
|
Zr as useConfig,
|
|
2747
|
-
|
|
2738
|
+
An as useLocale
|
|
2748
2739
|
};
|