skillgrid 0.0.24-dev-38682-image.1169156 → 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
|
-
import * as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import './index.css';function
|
|
1
|
+
import * as Et from "react";
|
|
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
|
+
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 Be = { exports: {} },
|
|
7
|
+
var Be = { exports: {} }, ke = {};
|
|
8
8
|
/**
|
|
9
9
|
* @license React
|
|
10
10
|
* react-jsx-runtime.production.min.js
|
|
@@ -14,21 +14,21 @@ var Be = { exports: {} }, Re = {};
|
|
|
14
14
|
* This source code is licensed under the MIT license found in the
|
|
15
15
|
* LICENSE file in the root directory of this source tree.
|
|
16
16
|
*/
|
|
17
|
-
var
|
|
18
|
-
function
|
|
19
|
-
if (
|
|
20
|
-
|
|
21
|
-
var t =
|
|
22
|
-
function c(
|
|
23
|
-
var
|
|
24
|
-
f !== void 0 && (h = "" + f), d.key !== void 0 && (h = "" + d.key), d.ref !== void 0 && (
|
|
25
|
-
for (
|
|
26
|
-
if (
|
|
27
|
-
return { $$typeof: r, type:
|
|
17
|
+
var ft;
|
|
18
|
+
function la() {
|
|
19
|
+
if (ft) return ke;
|
|
20
|
+
ft = 1;
|
|
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
|
+
function c(p, d, f) {
|
|
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
|
+
for (_ in d) s.call(d, _) && !n.hasOwnProperty(_) && (g[_] = d[_]);
|
|
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: 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
|
|
@@ -38,42 +38,42 @@ var ke = {};
|
|
|
38
38
|
* This source code is licensed under the MIT license found in the
|
|
39
39
|
* LICENSE file in the root directory of this source tree.
|
|
40
40
|
*/
|
|
41
|
-
var
|
|
42
|
-
function
|
|
43
|
-
return
|
|
44
|
-
var t =
|
|
41
|
+
var gt;
|
|
42
|
+
function ca() {
|
|
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"), 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
|
-
|
|
69
|
+
var R = !1, P = !1, A = !1, k = !1, N = !1, D;
|
|
70
|
+
D = Symbol.for("react.module.reference");
|
|
71
71
|
function z(e) {
|
|
72
|
-
return !!(typeof e == "string" || typeof e == "function" || e === s || e === n ||
|
|
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;
|
|
@@ -88,7 +88,7 @@ function da() {
|
|
|
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;
|
|
@@ -103,12 +103,12 @@ function da() {
|
|
|
103
103
|
return "StrictMode";
|
|
104
104
|
case f:
|
|
105
105
|
return "Suspense";
|
|
106
|
-
case
|
|
106
|
+
case _:
|
|
107
107
|
return "SuspenseList";
|
|
108
108
|
}
|
|
109
109
|
if (typeof e == "object")
|
|
110
110
|
switch (e.$$typeof) {
|
|
111
|
-
case
|
|
111
|
+
case p:
|
|
112
112
|
var l = e;
|
|
113
113
|
return W(l) + ".Consumer";
|
|
114
114
|
case c:
|
|
@@ -120,9 +120,9 @@ function da() {
|
|
|
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 da() {
|
|
|
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
|
-
V = console.log,
|
|
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 da() {
|
|
|
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,
|
|
@@ -170,10 +170,10 @@ function da() {
|
|
|
170
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 da() {
|
|
|
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)
|
|
@@ -223,8 +223,8 @@ function da() {
|
|
|
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 da() {
|
|
|
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
|
-
`),
|
|
264
|
+
`), B = S.length - 1, H = Y.length - 1; B >= 1 && H >= 0 && S[B] !== Y[H]; )
|
|
265
265
|
H--;
|
|
266
|
-
for (;
|
|
267
|
-
if (
|
|
268
|
-
if (
|
|
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
|
-
pe = !1, Ee.current =
|
|
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;
|
|
@@ -299,7 +299,7 @@ function da() {
|
|
|
299
299
|
switch (e) {
|
|
300
300
|
case f:
|
|
301
301
|
return ie("Suspense");
|
|
302
|
-
case
|
|
302
|
+
case _:
|
|
303
303
|
return ie("SuspenseList");
|
|
304
304
|
}
|
|
305
305
|
if (typeof e == "object")
|
|
@@ -309,16 +309,16 @@ function da() {
|
|
|
309
309
|
case g:
|
|
310
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 Oe(
|
|
314
|
+
return Oe(T(j), l, u);
|
|
315
315
|
} catch {
|
|
316
316
|
}
|
|
317
317
|
}
|
|
318
318
|
}
|
|
319
319
|
return "";
|
|
320
320
|
}
|
|
321
|
-
var
|
|
321
|
+
var Re = Object.prototype.hasOwnProperty, et = {}, tt = E.ReactDebugCurrentFrame;
|
|
322
322
|
function Ue(e) {
|
|
323
323
|
if (e) {
|
|
324
324
|
var l = e._owner, u = Oe(e.type, e._source, l ? l.type : null);
|
|
@@ -326,36 +326,36 @@ function da() {
|
|
|
326
326
|
} else
|
|
327
327
|
tt.setExtraStackFrame(null);
|
|
328
328
|
}
|
|
329
|
-
function
|
|
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
|
-
var
|
|
348
|
+
var Dt = Array.isArray;
|
|
349
349
|
function Ve(e) {
|
|
350
|
-
return
|
|
350
|
+
return Dt(e);
|
|
351
351
|
}
|
|
352
|
-
function
|
|
352
|
+
function Ot(e) {
|
|
353
353
|
{
|
|
354
354
|
var l = typeof Symbol == "function" && Symbol.toStringTag, u = l && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
355
355
|
return u;
|
|
356
356
|
}
|
|
357
357
|
}
|
|
358
|
-
function
|
|
358
|
+
function Ut(e) {
|
|
359
359
|
try {
|
|
360
360
|
return at(e), !1;
|
|
361
361
|
} catch {
|
|
@@ -366,38 +366,38 @@ function da() {
|
|
|
366
366
|
return "" + e;
|
|
367
367
|
}
|
|
368
368
|
function rt(e) {
|
|
369
|
-
if (
|
|
370
|
-
return
|
|
369
|
+
if (Ut(e))
|
|
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
|
-
function
|
|
379
|
-
if (
|
|
378
|
+
function Ft(e) {
|
|
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;
|
|
383
383
|
}
|
|
384
384
|
return e.ref !== void 0;
|
|
385
385
|
}
|
|
386
|
-
function
|
|
387
|
-
if (
|
|
386
|
+
function Pt(e) {
|
|
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;
|
|
391
391
|
}
|
|
392
392
|
return e.key !== void 0;
|
|
393
393
|
}
|
|
394
|
-
function
|
|
394
|
+
function zt(e, l) {
|
|
395
395
|
typeof e.ref == "string" && st.current;
|
|
396
396
|
}
|
|
397
|
-
function
|
|
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,
|
|
@@ -405,10 +405,10 @@ function da() {
|
|
|
405
405
|
});
|
|
406
406
|
}
|
|
407
407
|
}
|
|
408
|
-
function
|
|
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 da() {
|
|
|
416
416
|
});
|
|
417
417
|
}
|
|
418
418
|
}
|
|
419
|
-
var
|
|
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,44 +426,44 @@ function da() {
|
|
|
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
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 (
|
|
459
|
+
if (S || Y) {
|
|
460
460
|
var H = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
461
|
-
|
|
461
|
+
S && Wt(L, H), Y && Vt(L, H);
|
|
462
462
|
}
|
|
463
|
-
return
|
|
463
|
+
return Ht(e, S, Y, j, v, st.current, L);
|
|
464
464
|
}
|
|
465
465
|
}
|
|
466
|
-
var He =
|
|
466
|
+
var He = E.ReactCurrentOwner, it = E.ReactDebugCurrentFrame;
|
|
467
467
|
function Le(e) {
|
|
468
468
|
if (e) {
|
|
469
469
|
var l = e._owner, u = Oe(e.type, e._source, l ? l.type : null);
|
|
@@ -471,9 +471,9 @@ function da() {
|
|
|
471
471
|
} else
|
|
472
472
|
it.setExtraStackFrame(null);
|
|
473
473
|
}
|
|
474
|
-
var
|
|
475
|
-
|
|
476
|
-
function
|
|
474
|
+
var Ge;
|
|
475
|
+
Ge = !1;
|
|
476
|
+
function Ze(e) {
|
|
477
477
|
return typeof e == "object" && e !== null && e.$$typeof === r;
|
|
478
478
|
}
|
|
479
479
|
function lt() {
|
|
@@ -492,7 +492,7 @@ Check the render method of \`` + 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,12 +509,12 @@ 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 !== He.current && (v = " It was passed a child from " + O(e._owner.type) + "."), Le(e),
|
|
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) {
|
|
@@ -524,19 +524,19 @@ Check the top-level render call using <` + u + ">.");
|
|
|
524
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);
|
|
528
528
|
}
|
|
529
|
-
else if (
|
|
529
|
+
else if (Ze(e))
|
|
530
530
|
e._store && (e._store.validated = !0);
|
|
531
531
|
else if (e) {
|
|
532
532
|
var j = C(e);
|
|
533
533
|
if (typeof j == "function" && j !== e.entries)
|
|
534
|
-
for (var
|
|
535
|
-
|
|
534
|
+
for (var T = j.call(e), L; !(L = T.next()).done; )
|
|
535
|
+
Ze(L.value) && dt(L.value, l);
|
|
536
536
|
}
|
|
537
537
|
}
|
|
538
538
|
}
|
|
539
|
-
function
|
|
539
|
+
function Yt(e) {
|
|
540
540
|
{
|
|
541
541
|
var l = e.type;
|
|
542
542
|
if (l == null || typeof l == "string")
|
|
@@ -552,40 +552,40 @@ Check the top-level render call using <` + u + ">.");
|
|
|
552
552
|
return;
|
|
553
553
|
if (u) {
|
|
554
554
|
var v = O(l);
|
|
555
|
-
|
|
556
|
-
} else if (l.PropTypes !== void 0 && !
|
|
557
|
-
|
|
555
|
+
Nt(u, e.props, "prop", v, e);
|
|
556
|
+
} else if (l.PropTypes !== void 0 && !Ge) {
|
|
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
|
-
function
|
|
564
|
+
function Jt(e) {
|
|
565
565
|
{
|
|
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
576
|
var pt = {};
|
|
577
|
-
function _t(e, l, u, v, j,
|
|
577
|
+
function _t(e, l, u, v, j, T) {
|
|
578
578
|
{
|
|
579
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) && (
|
|
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
583
|
var Y = Zt();
|
|
584
|
-
Y ?
|
|
585
|
-
var
|
|
586
|
-
e === null ?
|
|
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 H = Gt(e, l, u, j,
|
|
588
|
+
var H = Gt(e, l, u, j, T);
|
|
589
589
|
if (H == null)
|
|
590
590
|
return H;
|
|
591
591
|
if (L) {
|
|
@@ -597,78 +597,78 @@ Check the top-level render call using <` + u + ">.");
|
|
|
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 (
|
|
605
|
-
var ve = O(e), X = Object.keys(l).filter(function(
|
|
606
|
-
return
|
|
607
|
-
}),
|
|
608
|
-
if (!pt[ve +
|
|
609
|
-
var
|
|
610
|
-
|
|
604
|
+
if (Re.call(l, "key")) {
|
|
605
|
+
var ve = O(e), X = Object.keys(l).filter(function(aa) {
|
|
606
|
+
return aa !== "key";
|
|
607
|
+
}), qe = X.length > 0 ? "{key: someKey, " + X.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
608
|
+
if (!pt[ve + qe]) {
|
|
609
|
+
var ta = X.length > 0 ? "{" + X.join(": ..., ") + ": ...}" : "{}";
|
|
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 ?
|
|
618
|
+
return e === s ? Jt(H) : Yt(H), H;
|
|
619
619
|
}
|
|
620
620
|
}
|
|
621
|
-
function
|
|
621
|
+
function Kt(e, l, u) {
|
|
622
622
|
return _t(e, l, u, !0);
|
|
623
623
|
}
|
|
624
|
-
function
|
|
624
|
+
function Xt(e, l, u) {
|
|
625
625
|
return _t(e, l, u, !1);
|
|
626
626
|
}
|
|
627
|
-
var
|
|
628
|
-
|
|
629
|
-
}()),
|
|
627
|
+
var Qt = Xt, ea = Kt;
|
|
628
|
+
Te.Fragment = s, Te.jsx = Qt, Te.jsxs = ea;
|
|
629
|
+
}()), Te;
|
|
630
630
|
}
|
|
631
|
-
var
|
|
632
|
-
function
|
|
633
|
-
return
|
|
631
|
+
var ht;
|
|
632
|
+
function da() {
|
|
633
|
+
return ht || (ht = 1, process.env.NODE_ENV === "production" ? Be.exports = la() : Be.exports = ca()), Be.exports;
|
|
634
634
|
}
|
|
635
|
-
var o =
|
|
636
|
-
const
|
|
637
|
-
button:
|
|
638
|
-
disabled:
|
|
639
|
-
loading:
|
|
640
|
-
neutral:
|
|
641
|
-
accent:
|
|
642
|
-
positive:
|
|
643
|
-
negative:
|
|
644
|
-
contrast:
|
|
645
|
-
special:
|
|
646
|
-
primary:
|
|
647
|
-
secondary:
|
|
648
|
-
tertiary:
|
|
649
|
-
label:
|
|
650
|
-
rightGroup:
|
|
651
|
-
iconOnly:
|
|
652
|
-
large:
|
|
653
|
-
medium:
|
|
654
|
-
small:
|
|
655
|
-
spaceBetween:
|
|
656
|
-
stretched:
|
|
657
|
-
icon:
|
|
658
|
-
badge:
|
|
659
|
-
badgeMedium:
|
|
660
|
-
circular:
|
|
661
|
-
badgeSmall:
|
|
662
|
-
badgeExtraSmall:
|
|
663
|
-
withSubcaption:
|
|
664
|
-
subcaption:
|
|
665
|
-
loader:
|
|
666
|
-
spin:
|
|
667
|
-
l:
|
|
668
|
-
m:
|
|
669
|
-
s:
|
|
635
|
+
var o = da();
|
|
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
|
+
disabled: fa,
|
|
639
|
+
loading: ga,
|
|
640
|
+
neutral: ha,
|
|
641
|
+
accent: ba,
|
|
642
|
+
positive: ya,
|
|
643
|
+
negative: ma,
|
|
644
|
+
contrast: va,
|
|
645
|
+
special: xa,
|
|
646
|
+
primary: Ca,
|
|
647
|
+
secondary: wa,
|
|
648
|
+
tertiary: Sa,
|
|
649
|
+
label: Ea,
|
|
650
|
+
rightGroup: La,
|
|
651
|
+
iconOnly: Ma,
|
|
652
|
+
large: $a,
|
|
653
|
+
medium: ja,
|
|
654
|
+
small: Ia,
|
|
655
|
+
spaceBetween: Ra,
|
|
656
|
+
stretched: ka,
|
|
657
|
+
icon: Ta,
|
|
658
|
+
badge: Aa,
|
|
659
|
+
badgeMedium: Na,
|
|
660
|
+
circular: Da,
|
|
661
|
+
badgeSmall: Oa,
|
|
662
|
+
badgeExtraSmall: Ua,
|
|
663
|
+
withSubcaption: Ba,
|
|
664
|
+
subcaption: Fa,
|
|
665
|
+
loader: Pa,
|
|
666
|
+
spin: za,
|
|
667
|
+
l: Wa,
|
|
668
|
+
m: Va,
|
|
669
|
+
s: Ha,
|
|
670
670
|
xs: Ga
|
|
671
|
-
},
|
|
671
|
+
}, bt = ({
|
|
672
672
|
isLoading: t,
|
|
673
673
|
showBadge: r,
|
|
674
674
|
badgeValue: a,
|
|
@@ -676,94 +676,94 @@ const pa = (t) => t.as === "a", _a = (t) => t.as === void 0 || t.as === "button"
|
|
|
676
676
|
icon: i,
|
|
677
677
|
children: n,
|
|
678
678
|
postfix: c,
|
|
679
|
-
showSubcaption:
|
|
679
|
+
showSubcaption: p,
|
|
680
680
|
subcaption: d,
|
|
681
681
|
size: f
|
|
682
682
|
}) => {
|
|
683
683
|
if (t)
|
|
684
|
-
return /* @__PURE__ */ o.jsx("span", { className:
|
|
685
|
-
const
|
|
684
|
+
return /* @__PURE__ */ o.jsx("span", { className: F.loader, "data-testid": "button-loader", "aria-hidden": "true" });
|
|
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
|
-
r && (a ||
|
|
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
|
-
children: !
|
|
696
|
+
children: !_ && a
|
|
697
697
|
}
|
|
698
698
|
),
|
|
699
|
-
|
|
700
|
-
/* @__PURE__ */ o.jsx("span", { "data-testid": "button-label", className:
|
|
701
|
-
/* @__PURE__ */ o.jsx("span", { "data-testid": "button-subcaption", className:
|
|
699
|
+
p && f !== "s" && f !== "xs" ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
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",
|
|
714
714
|
buttonStyle: i = "neutral",
|
|
715
715
|
loading: n = !1,
|
|
716
716
|
disabled: c = !1,
|
|
717
|
-
showBadge:
|
|
717
|
+
showBadge: p = !1,
|
|
718
718
|
badgeSize: d = "small",
|
|
719
719
|
badgeValue: f,
|
|
720
|
-
showSubcaption:
|
|
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:
|
|
744
|
-
showBadge:
|
|
742
|
+
), k = {
|
|
743
|
+
isLoading: I,
|
|
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
|
-
showSubcaption:
|
|
750
|
+
showSubcaption: _,
|
|
751
751
|
subcaption: g,
|
|
752
752
|
size: s
|
|
753
753
|
};
|
|
754
|
-
if (
|
|
754
|
+
if (ua(t)) {
|
|
755
755
|
const {
|
|
756
|
-
href:
|
|
757
|
-
onClick:
|
|
756
|
+
href: N,
|
|
757
|
+
onClick: D,
|
|
758
758
|
mode: z,
|
|
759
759
|
size: x,
|
|
760
760
|
buttonStyle: W,
|
|
761
761
|
loading: O,
|
|
762
762
|
disabled: $,
|
|
763
|
-
showBadge:
|
|
763
|
+
showBadge: U,
|
|
764
764
|
badgeSize: V,
|
|
765
|
-
badgeValue:
|
|
766
|
-
showSubcaption:
|
|
765
|
+
badgeValue: Z,
|
|
766
|
+
showSubcaption: q,
|
|
767
767
|
subcaption: te,
|
|
768
768
|
stretched: ae,
|
|
769
769
|
spaceBetween: re,
|
|
@@ -776,37 +776,37 @@ const pa = (t) => t.as === "a", _a = (t) => t.as === void 0 || t.as === "button"
|
|
|
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
792
|
...pe,
|
|
793
|
-
children: /* @__PURE__ */ o.jsx(
|
|
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:
|
|
799
|
+
type: N = "button",
|
|
800
|
+
onClick: D,
|
|
801
801
|
mode: z,
|
|
802
802
|
size: x,
|
|
803
803
|
buttonStyle: W,
|
|
804
804
|
loading: O,
|
|
805
805
|
disabled: $,
|
|
806
|
-
showBadge:
|
|
806
|
+
showBadge: U,
|
|
807
807
|
badgeSize: V,
|
|
808
|
-
badgeValue:
|
|
809
|
-
showSubcaption:
|
|
808
|
+
badgeValue: Z,
|
|
809
|
+
showSubcaption: q,
|
|
810
810
|
subcaption: te,
|
|
811
811
|
stretched: ae,
|
|
812
812
|
spaceBetween: re,
|
|
@@ -819,22 +819,22 @@ const pa = (t) => t.as === "a", _a = (t) => t.as === void 0 || t.as === "button"
|
|
|
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
836
|
...pe,
|
|
837
|
-
children: /* @__PURE__ */ o.jsx(
|
|
837
|
+
children: /* @__PURE__ */ o.jsx(bt, { ...k })
|
|
838
838
|
}
|
|
839
839
|
);
|
|
840
840
|
}
|
|
@@ -846,15 +846,15 @@ var Ye = { exports: {} };
|
|
|
846
846
|
Licensed under the MIT License (MIT), see
|
|
847
847
|
http://jedwatson.github.io/classnames
|
|
848
848
|
*/
|
|
849
|
-
var
|
|
849
|
+
var yt;
|
|
850
850
|
function Za() {
|
|
851
|
-
return
|
|
851
|
+
return yt || (yt = 1, function(t) {
|
|
852
852
|
(function() {
|
|
853
853
|
var r = {}.hasOwnProperty;
|
|
854
854
|
function a() {
|
|
855
855
|
for (var n = "", c = 0; c < arguments.length; c++) {
|
|
856
|
-
var
|
|
857
|
-
|
|
856
|
+
var p = arguments[c];
|
|
857
|
+
p && (n = i(n, s(p)));
|
|
858
858
|
}
|
|
859
859
|
return n;
|
|
860
860
|
}
|
|
@@ -868,8 +868,8 @@ function Za() {
|
|
|
868
868
|
if (n.toString !== Object.prototype.toString && !n.toString.toString().includes("[native code]"))
|
|
869
869
|
return n.toString();
|
|
870
870
|
var c = "";
|
|
871
|
-
for (var
|
|
872
|
-
r.call(n,
|
|
871
|
+
for (var p in n)
|
|
872
|
+
r.call(n, p) && n[p] && (c = i(c, p));
|
|
873
873
|
return c;
|
|
874
874
|
}
|
|
875
875
|
function i(n, c) {
|
|
@@ -879,15 +879,15 @@ function Za() {
|
|
|
879
879
|
})();
|
|
880
880
|
}(Ye)), Ye.exports;
|
|
881
881
|
}
|
|
882
|
-
var
|
|
883
|
-
const
|
|
884
|
-
avatar:
|
|
885
|
-
clickable:
|
|
886
|
-
icon:
|
|
887
|
-
disabled:
|
|
888
|
-
loading:
|
|
889
|
-
image:
|
|
890
|
-
name:
|
|
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
|
+
avatar: Ya,
|
|
885
|
+
clickable: Ja,
|
|
886
|
+
icon: Ka,
|
|
887
|
+
disabled: Xa,
|
|
888
|
+
loading: Qa,
|
|
889
|
+
image: er,
|
|
890
|
+
name: tr,
|
|
891
891
|
"variant-filled": "_variant-filled_1kyiq_126",
|
|
892
892
|
"color-brand": "_color-brand_1kyiq_131",
|
|
893
893
|
"color-red": "_color-red_1kyiq_135",
|
|
@@ -925,9 +925,9 @@ const Ae = /* @__PURE__ */ la(Ya), Ja = "_avatar_1kyiq_17", Ka = "_clickable_1ky
|
|
|
925
925
|
"typography-paragraph-2-regular": "_typography-paragraph-2-regular_1lyxn_176",
|
|
926
926
|
"typography-paragraph-3-regular": "_typography-paragraph-3-regular_1lyxn_185",
|
|
927
927
|
"typography-paragraph-4-regular": "_typography-paragraph-4-regular_1lyxn_194"
|
|
928
|
-
},
|
|
929
|
-
function
|
|
930
|
-
return t <
|
|
928
|
+
}, mt = 99;
|
|
929
|
+
function ar(t) {
|
|
930
|
+
return t < mt ? `+${t}` : `${mt}+`;
|
|
931
931
|
}
|
|
932
932
|
function Qe(t) {
|
|
933
933
|
const r = typeof t == "string" ? t : JSON.stringify(t);
|
|
@@ -938,7 +938,7 @@ function Qe(t) {
|
|
|
938
938
|
}
|
|
939
939
|
return a >>> 0;
|
|
940
940
|
}
|
|
941
|
-
const
|
|
941
|
+
const rr = [
|
|
942
942
|
"red",
|
|
943
943
|
"orange",
|
|
944
944
|
"yellow",
|
|
@@ -947,18 +947,18 @@ const sr = [
|
|
|
947
947
|
"lightblue",
|
|
948
948
|
"purple"
|
|
949
949
|
];
|
|
950
|
-
function
|
|
950
|
+
function sr(t, r = rr) {
|
|
951
951
|
if (!t) return "gray";
|
|
952
952
|
const a = Qe(t), s = Math.abs(a) % r.length;
|
|
953
953
|
return r[s];
|
|
954
954
|
}
|
|
955
|
-
const
|
|
956
|
-
function
|
|
955
|
+
const vt = 2;
|
|
956
|
+
function nr(t) {
|
|
957
957
|
if (!t) return "";
|
|
958
958
|
const r = t.trim().split(/\s+/);
|
|
959
|
-
return r.length === 1 ? t.slice(0,
|
|
959
|
+
return r.length === 1 ? t.slice(0, vt).toUpperCase() : r.map((a) => a[0]).slice(0, vt).join("").toUpperCase();
|
|
960
960
|
}
|
|
961
|
-
const
|
|
961
|
+
const or = {
|
|
962
962
|
24: 8,
|
|
963
963
|
32: 12,
|
|
964
964
|
40: 12,
|
|
@@ -969,10 +969,10 @@ const ir = {
|
|
|
969
969
|
96: 24,
|
|
970
970
|
208: 8
|
|
971
971
|
};
|
|
972
|
-
function
|
|
973
|
-
return r === "circle" ? t / 2 :
|
|
972
|
+
function jt(t, r) {
|
|
973
|
+
return r === "circle" ? t / 2 : or[t] || 12;
|
|
974
974
|
}
|
|
975
|
-
const
|
|
975
|
+
const ir = {
|
|
976
976
|
24: "typography-subtitle-4-semibold",
|
|
977
977
|
32: "typography-subtitle-2-semibold",
|
|
978
978
|
40: "typography-subtitle-1-semibold",
|
|
@@ -983,14 +983,14 @@ const lr = {
|
|
|
983
983
|
96: "typography-title-3-semibold",
|
|
984
984
|
208: "typography-title-1-semibold"
|
|
985
985
|
};
|
|
986
|
-
function
|
|
987
|
-
return
|
|
986
|
+
function lr(t) {
|
|
987
|
+
return ir[t] || "typography-subtitle-1-semibold";
|
|
988
988
|
}
|
|
989
|
-
const dr = "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", ur = "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", pr = "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", fr = {
|
|
990
|
-
male:
|
|
991
|
-
female:
|
|
992
|
-
org:
|
|
993
|
-
neutral:
|
|
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
|
+
male: cr,
|
|
991
|
+
female: dr,
|
|
992
|
+
org: pr,
|
|
993
|
+
neutral: ur
|
|
994
994
|
}, Pe = Q((t, r) => {
|
|
995
995
|
const {
|
|
996
996
|
style: a,
|
|
@@ -998,31 +998,31 @@ const dr = "data:image/svg+xml,%3csvg%20opacity='0.9'%20preserveAspectRatio='xMi
|
|
|
998
998
|
isLoading: i = !1,
|
|
999
999
|
isDisabled: n = !1,
|
|
1000
1000
|
shape: c = "circle",
|
|
1001
|
-
variant:
|
|
1001
|
+
variant: p = "filled",
|
|
1002
1002
|
placeholderType: d = "neutral",
|
|
1003
1003
|
name: f,
|
|
1004
|
-
imgSrc:
|
|
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
|
-
|
|
1015
|
-
}, [
|
|
1016
|
-
const
|
|
1014
|
+
_ && k(!1);
|
|
1015
|
+
}, [_]);
|
|
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
|
-
de[`variant-${
|
|
1020
|
-
de[`color-${
|
|
1019
|
+
de[`variant-${p}`],
|
|
1020
|
+
de[`color-${D}`],
|
|
1021
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`,
|
|
@@ -1037,16 +1037,16 @@ const dr = "data:image/svg+xml,%3csvg%20opacity='0.9'%20preserveAspectRatio='xMi
|
|
|
1037
1037
|
"data-testid": "avatar-name",
|
|
1038
1038
|
className: de.name,
|
|
1039
1039
|
title: g || void 0,
|
|
1040
|
-
children:
|
|
1040
|
+
children: nr(f || "")
|
|
1041
1041
|
}
|
|
1042
1042
|
),
|
|
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,38 +1054,38 @@ const dr = "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
|
-
src:
|
|
1059
|
+
src: _ || void 0,
|
|
1060
1060
|
alt: g || void 0,
|
|
1061
|
-
onLoad: () =>
|
|
1061
|
+
onLoad: () => k(!1),
|
|
1062
1062
|
onError: (V) => {
|
|
1063
|
-
var
|
|
1064
|
-
|
|
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:
|
|
1075
|
+
onClick: U,
|
|
1076
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
|
-
}),
|
|
1084
|
-
avatarGroup:
|
|
1083
|
+
}), fr = "_avatarGroup_157g4_1", gr = {
|
|
1084
|
+
avatarGroup: fr
|
|
1085
1085
|
};
|
|
1086
|
-
let
|
|
1087
|
-
function
|
|
1088
|
-
const
|
|
1086
|
+
let hr = (t = 21) => crypto.getRandomValues(new Uint8Array(t)).reduce((r, a) => (a &= 63, a < 36 ? r += a.toString(36) : a < 62 ? r += (a - 26).toString(36).toUpperCase() : a > 62 ? r += "-" : r += "_", r), "");
|
|
1087
|
+
function br(t, r, a, s, i, n, c) {
|
|
1088
|
+
const p = Math.min(i, n) / 2, d = Math.min(c, p), f = ["M0,0", `H${t}`, `V${r}`, "H0", "V0", "Z"].join(" "), _ = [
|
|
1089
1089
|
`M${a + d},${s}`,
|
|
1090
1090
|
`L${a + i - d},${s}`,
|
|
1091
1091
|
// Верхний правый угол
|
|
@@ -1101,9 +1101,9 @@ function yr(t, r, a, s, i, n, c) {
|
|
|
1101
1101
|
`A${d},${d} 0 0 1 ${a + d},${s}`,
|
|
1102
1102
|
"Z"
|
|
1103
1103
|
].join(" ");
|
|
1104
|
-
return `${f} ${
|
|
1104
|
+
return `${f} ${_}`;
|
|
1105
1105
|
}
|
|
1106
|
-
const
|
|
1106
|
+
const yr = 3, mr = (t) => {
|
|
1107
1107
|
const {
|
|
1108
1108
|
avatars: r = [],
|
|
1109
1109
|
size: a = 40,
|
|
@@ -1111,10 +1111,10 @@ const mr = 3, vr = (t) => {
|
|
|
1111
1111
|
shape: i = "circle",
|
|
1112
1112
|
overflowCount: n = 0,
|
|
1113
1113
|
overflowProps: c
|
|
1114
|
-
} = t,
|
|
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
|
-
a -
|
|
1117
|
+
a - p,
|
|
1118
1118
|
// X-координата начала выреза
|
|
1119
1119
|
0,
|
|
1120
1120
|
// Y-координата начала выреза
|
|
@@ -1123,21 +1123,21 @@ const mr = 3, vr = (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,12 +1145,12 @@ const mr = 3, vr = (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(Pe, { size: a, shape: i, ...
|
|
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(
|
|
@@ -1158,23 +1158,23 @@ const mr = 3, vr = (t) => {
|
|
|
1158
1158
|
{
|
|
1159
1159
|
size: a,
|
|
1160
1160
|
shape: i,
|
|
1161
|
-
icon: () =>
|
|
1161
|
+
icon: () => ar(n),
|
|
1162
1162
|
colorScheme: "gray",
|
|
1163
1163
|
variant: "light",
|
|
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
|
-
},
|
|
1170
|
-
Group:
|
|
1171
|
-
}),
|
|
1172
|
-
wrapper:
|
|
1173
|
-
badge__container:
|
|
1174
|
-
badge__content:
|
|
1175
|
-
interactive:
|
|
1176
|
-
disabled:
|
|
1177
|
-
icon:
|
|
1169
|
+
}, Rn = Object.assign(Pe, {
|
|
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", _e = {
|
|
1172
|
+
wrapper: vr,
|
|
1173
|
+
badge__container: xr,
|
|
1174
|
+
badge__content: Cr,
|
|
1175
|
+
interactive: wr,
|
|
1176
|
+
disabled: Sr,
|
|
1177
|
+
icon: Er,
|
|
1178
1178
|
"variant-filled": "_variant-filled_ecbsu_102",
|
|
1179
1179
|
"color-brand": "_color-brand_ecbsu_107",
|
|
1180
1180
|
"color-red": "_color-red_ecbsu_111",
|
|
@@ -1206,73 +1206,73 @@ const mr = 3, vr = (t) => {
|
|
|
1206
1206
|
"position-bottom-center-inside": "_position-bottom-center-inside_ecbsu_447",
|
|
1207
1207
|
"position-middle-left-inside": "_position-middle-left-inside_ecbsu_453",
|
|
1208
1208
|
"position-middle-right-inside": "_position-middle-right-inside_ecbsu_459"
|
|
1209
|
-
},
|
|
1209
|
+
}, Lr = (t) => t === "rgba(0, 0, 0, 0)" || t === "transparent" || t.startsWith("rgba") && t.endsWith(", 0)"), Mr = (t) => {
|
|
1210
1210
|
if (!t) return null;
|
|
1211
1211
|
let r = t;
|
|
1212
1212
|
for (; r; ) {
|
|
1213
1213
|
const s = window.getComputedStyle(r).backgroundColor;
|
|
1214
|
-
if (!
|
|
1214
|
+
if (!Lr(s)) return s;
|
|
1215
1215
|
r = r.parentElement;
|
|
1216
1216
|
}
|
|
1217
1217
|
return null;
|
|
1218
|
-
},
|
|
1218
|
+
}, $r = () => {
|
|
1219
1219
|
const t = We(null), [r, a] = De(null);
|
|
1220
1220
|
return we(() => {
|
|
1221
1221
|
if (t.current) {
|
|
1222
|
-
const s =
|
|
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,
|
|
1230
1230
|
variant: i = "filled",
|
|
1231
1231
|
label: n,
|
|
1232
1232
|
isHidden: c = !1,
|
|
1233
|
-
colorScheme:
|
|
1233
|
+
colorScheme: p = "red",
|
|
1234
1234
|
size: d = 20,
|
|
1235
1235
|
position: f = "top-right",
|
|
1236
|
-
positionOffset:
|
|
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
|
-
|
|
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
1244
|
_e.badge__content,
|
|
1245
|
-
_e[`color-${
|
|
1245
|
+
_e[`color-${p}`],
|
|
1246
1246
|
_e[`variant-${i}`],
|
|
1247
1247
|
{
|
|
1248
1248
|
[_e.disabled]: h,
|
|
1249
1249
|
[_e.icon]: !!a,
|
|
1250
|
-
[_e.interactive]:
|
|
1250
|
+
[_e.interactive]: A
|
|
1251
1251
|
}
|
|
1252
|
-
),
|
|
1252
|
+
), D = {
|
|
1253
1253
|
"--badge-height": `${d}px`,
|
|
1254
|
-
"--badge-offset-x": `${
|
|
1255
|
-
"--badge-offset-y": `${
|
|
1256
|
-
...
|
|
1254
|
+
"--badge-offset-x": `${_.x}px`,
|
|
1255
|
+
"--badge-offset-y": `${_.y}px`,
|
|
1256
|
+
...R && { "--badge-cutout-bg": R },
|
|
1257
1257
|
...i === "transparent" && { "--badge-cutout-bg": "transparent" }
|
|
1258
1258
|
}, z = (a == null ? void 0 : a({})) || n, x = (W) => {
|
|
1259
|
-
|
|
1259
|
+
A && (C == null || C(W));
|
|
1260
1260
|
};
|
|
1261
|
-
return /* @__PURE__ */ o.jsxs("div", { className: _e.wrapper, ref:
|
|
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
1278
|
children: z
|
|
@@ -1281,28 +1281,28 @@ const mr = 3, vr = (t) => {
|
|
|
1281
1281
|
}
|
|
1282
1282
|
)
|
|
1283
1283
|
] });
|
|
1284
|
-
}),
|
|
1285
|
-
container:
|
|
1286
|
-
image:
|
|
1287
|
-
loading:
|
|
1288
|
-
},
|
|
1289
|
-
loader:
|
|
1290
|
-
spin:
|
|
1291
|
-
accent:
|
|
1292
|
-
neutral:
|
|
1293
|
-
positive:
|
|
1294
|
-
negative:
|
|
1295
|
-
gray:
|
|
1296
|
-
special:
|
|
1297
|
-
contrast:
|
|
1298
|
-
container:
|
|
1299
|
-
overlay:
|
|
1284
|
+
}), jr = "_container_op5yl_7", Ir = "_image_op5yl_22", Rr = "_loading_op5yl_34", Je = {
|
|
1285
|
+
container: jr,
|
|
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,
|
|
1300
1300
|
"size-16": "_size-16_isv17_72",
|
|
1301
1301
|
"size-24": "_size-24_isv17_76",
|
|
1302
1302
|
"size-48": "_size-48_isv17_80",
|
|
1303
1303
|
"size-64": "_size-64_isv17_84",
|
|
1304
1304
|
"size-96": "_size-96_isv17_88"
|
|
1305
|
-
},
|
|
1305
|
+
}, It = Q(
|
|
1306
1306
|
({
|
|
1307
1307
|
size: t = 24,
|
|
1308
1308
|
variant: r = "accent",
|
|
@@ -1311,17 +1311,17 @@ const mr = 3, vr = (t) => {
|
|
|
1311
1311
|
style: i,
|
|
1312
1312
|
...n
|
|
1313
1313
|
}, c) => {
|
|
1314
|
-
const
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1314
|
+
const p = Ie(
|
|
1315
|
+
Ae.loader,
|
|
1316
|
+
Ae[r],
|
|
1317
|
+
Ae[`size-${t}`],
|
|
1318
1318
|
a
|
|
1319
1319
|
);
|
|
1320
1320
|
return /* @__PURE__ */ o.jsx(
|
|
1321
1321
|
"svg",
|
|
1322
1322
|
{
|
|
1323
1323
|
ref: c,
|
|
1324
|
-
className:
|
|
1324
|
+
className: p,
|
|
1325
1325
|
fill: "none",
|
|
1326
1326
|
viewBox: "0 0 16 16",
|
|
1327
1327
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1340,28 +1340,28 @@ const mr = 3, vr = (t) => {
|
|
|
1340
1340
|
}
|
|
1341
1341
|
);
|
|
1342
1342
|
}
|
|
1343
|
-
),
|
|
1343
|
+
), Wr = Q((t, r) => {
|
|
1344
1344
|
const {
|
|
1345
1345
|
loading: a = !1,
|
|
1346
1346
|
size: s = 24,
|
|
1347
1347
|
variant: i = "accent",
|
|
1348
1348
|
children: n,
|
|
1349
1349
|
className: c,
|
|
1350
|
-
style:
|
|
1350
|
+
style: p,
|
|
1351
1351
|
"data-testid": d,
|
|
1352
1352
|
...f
|
|
1353
|
-
} = t,
|
|
1354
|
-
return /* @__PURE__ */ o.jsxs("div", { ref: r, className:
|
|
1353
|
+
} = t, _ = Ie(Ae.container, c);
|
|
1354
|
+
return /* @__PURE__ */ o.jsxs("div", { ref: r, className: _, style: p, "data-testid": d, ...f, children: [
|
|
1355
1355
|
n,
|
|
1356
|
-
a && /* @__PURE__ */ o.jsx("div", { className:
|
|
1356
|
+
a && /* @__PURE__ */ o.jsx("div", { className: Ae.overlay, children: /* @__PURE__ */ o.jsx(It, { size: s, variant: i, "data-testid": `${d}-spinner` }) })
|
|
1357
1357
|
] });
|
|
1358
|
-
}),
|
|
1359
|
-
|
|
1358
|
+
}), Vr = Q((t, r) => t.children ? /* @__PURE__ */ o.jsx(
|
|
1359
|
+
Wr,
|
|
1360
1360
|
{
|
|
1361
1361
|
ref: r,
|
|
1362
1362
|
...t
|
|
1363
1363
|
}
|
|
1364
|
-
) : /* @__PURE__ */ o.jsx(
|
|
1364
|
+
) : /* @__PURE__ */ o.jsx(It, { ref: r, ...t })), Hr = ({ width: t = 48, height: r = 48, className: a, "data-testid": s }) => /* @__PURE__ */ o.jsx(
|
|
1365
1365
|
"svg",
|
|
1366
1366
|
{
|
|
1367
1367
|
width: t,
|
|
@@ -1382,138 +1382,137 @@ const mr = 3, vr = (t) => {
|
|
|
1382
1382
|
}
|
|
1383
1383
|
)
|
|
1384
1384
|
}
|
|
1385
|
-
),
|
|
1385
|
+
), Tn = Q((t, r) => {
|
|
1386
1386
|
const {
|
|
1387
1387
|
alt: a = "",
|
|
1388
1388
|
loading: s = "lazy",
|
|
1389
1389
|
src: i,
|
|
1390
1390
|
isLoading: n = !1,
|
|
1391
1391
|
className: c,
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
} = t, [h, b] = De("loading"), y = h === "error", w = (n || h === "loading") && !y, C = h === "loaded" && !n, S = ft(Je.container, _), m = ft(
|
|
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(
|
|
1398
1397
|
Je.image,
|
|
1399
1398
|
{
|
|
1400
|
-
[Je.loading]:
|
|
1399
|
+
[Je.loading]: m
|
|
1401
1400
|
},
|
|
1402
1401
|
c
|
|
1403
|
-
),
|
|
1404
|
-
(
|
|
1405
|
-
|
|
1406
|
-
},
|
|
1407
|
-
[p]
|
|
1408
|
-
), D = Ce(
|
|
1409
|
-
(T) => {
|
|
1410
|
-
b("error"), f == null || f(T);
|
|
1402
|
+
), E = Ce(
|
|
1403
|
+
(R) => {
|
|
1404
|
+
h("loaded"), f == null || f(R);
|
|
1411
1405
|
},
|
|
1412
1406
|
[f]
|
|
1413
|
-
),
|
|
1414
|
-
|
|
1415
|
-
|
|
1407
|
+
), b = Ce(
|
|
1408
|
+
(R) => {
|
|
1409
|
+
h("error"), d == null || d(R);
|
|
1410
|
+
},
|
|
1411
|
+
[d]
|
|
1412
|
+
), I = {
|
|
1413
|
+
loader: /* @__PURE__ */ o.jsxs(Mt, { children: [
|
|
1414
|
+
/* @__PURE__ */ o.jsx(Vr, { size: 48, variant: "special", "data-testid": `${p}-loader` }),
|
|
1416
1415
|
/* @__PURE__ */ o.jsx(
|
|
1417
1416
|
"img",
|
|
1418
1417
|
{
|
|
1419
1418
|
alt: a,
|
|
1420
1419
|
src: i,
|
|
1421
|
-
onLoad:
|
|
1422
|
-
onError:
|
|
1420
|
+
onLoad: E,
|
|
1421
|
+
onError: b,
|
|
1423
1422
|
style: { display: "none" }
|
|
1424
1423
|
}
|
|
1425
1424
|
)
|
|
1426
1425
|
] }),
|
|
1427
|
-
error: /* @__PURE__ */ o.jsx(
|
|
1426
|
+
error: /* @__PURE__ */ o.jsx(Hr, { "data-testid": `${p}-fallback` }),
|
|
1428
1427
|
image: /* @__PURE__ */ o.jsx(
|
|
1429
1428
|
"img",
|
|
1430
1429
|
{
|
|
1431
1430
|
ref: r,
|
|
1432
1431
|
alt: a,
|
|
1433
|
-
"data-testid":
|
|
1432
|
+
"data-testid": p,
|
|
1434
1433
|
loading: s,
|
|
1435
1434
|
src: i,
|
|
1436
|
-
className:
|
|
1435
|
+
className: C
|
|
1437
1436
|
}
|
|
1438
1437
|
)
|
|
1439
1438
|
};
|
|
1440
1439
|
return we(() => {
|
|
1441
1440
|
if (!i) {
|
|
1442
|
-
|
|
1441
|
+
h("error");
|
|
1443
1442
|
return;
|
|
1444
1443
|
}
|
|
1445
|
-
|
|
1446
|
-
}, [i]), /* @__PURE__ */ o.jsxs("div", { className:
|
|
1447
|
-
|
|
1448
|
-
y &&
|
|
1449
|
-
|
|
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
|
|
1450
1449
|
] });
|
|
1451
|
-
}), Gr = {},
|
|
1450
|
+
}), Gr = {}, Rt = ra({
|
|
1452
1451
|
locale: Gr
|
|
1453
1452
|
}), Zr = () => {
|
|
1454
|
-
const t =
|
|
1453
|
+
const t = sa(Rt);
|
|
1455
1454
|
if (!t)
|
|
1456
1455
|
throw new Error("useConfig must be used within a ConfigProvider");
|
|
1457
1456
|
return t;
|
|
1458
|
-
},
|
|
1457
|
+
}, An = () => {
|
|
1459
1458
|
const { locale: t } = Zr();
|
|
1460
1459
|
return t;
|
|
1461
|
-
},
|
|
1460
|
+
}, qr = {}, Yr = {}, Jr = {}, Nn = ({
|
|
1462
1461
|
locale: t = {},
|
|
1463
1462
|
theme: r,
|
|
1464
1463
|
children: a,
|
|
1465
1464
|
className: s
|
|
1466
|
-
}) => (
|
|
1465
|
+
}) => (na(() => {
|
|
1467
1466
|
if (r) {
|
|
1468
1467
|
const i = document.documentElement;
|
|
1469
1468
|
Object.entries(r).forEach(([n, c]) => {
|
|
1470
1469
|
i.style.setProperty(n, c);
|
|
1471
1470
|
});
|
|
1472
1471
|
}
|
|
1473
|
-
}, [r]), /* @__PURE__ */ o.jsxs(
|
|
1472
|
+
}, [r]), /* @__PURE__ */ o.jsxs(Mt, { children: [
|
|
1474
1473
|
/* @__PURE__ */ o.jsx(
|
|
1475
1474
|
"div",
|
|
1476
1475
|
{
|
|
1477
1476
|
"data-testid": "ConfigProvider-component",
|
|
1478
|
-
className:
|
|
1477
|
+
className: G(qr, Yr, Jr, s)
|
|
1479
1478
|
}
|
|
1480
1479
|
),
|
|
1481
|
-
/* @__PURE__ */ o.jsx(
|
|
1482
|
-
] })),
|
|
1483
|
-
tag:
|
|
1484
|
-
label:
|
|
1485
|
-
iconWrapper:
|
|
1486
|
-
medium:
|
|
1487
|
-
large:
|
|
1488
|
-
disabled:
|
|
1489
|
-
neutral:
|
|
1490
|
-
positive:
|
|
1491
|
-
negative:
|
|
1492
|
-
warning:
|
|
1493
|
-
vivid:
|
|
1494
|
-
special:
|
|
1495
|
-
accent:
|
|
1496
|
-
blue:
|
|
1497
|
-
lovely:
|
|
1498
|
-
dreamy:
|
|
1499
|
-
},
|
|
1480
|
+
/* @__PURE__ */ o.jsx(Rt.Provider, { value: { locale: t }, children: a })
|
|
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,
|
|
1497
|
+
dreamy: ps
|
|
1498
|
+
}, On = Q((t, r) => {
|
|
1500
1499
|
const {
|
|
1501
1500
|
className: a,
|
|
1502
1501
|
children: s,
|
|
1503
1502
|
componentStyle: i = "neutral",
|
|
1504
1503
|
size: n = "medium",
|
|
1505
1504
|
disabled: c = !1,
|
|
1506
|
-
showLabel:
|
|
1505
|
+
showLabel: p = !!s,
|
|
1507
1506
|
slotStart: d,
|
|
1508
1507
|
slotEnd: f,
|
|
1509
|
-
slotStartWrapperProps:
|
|
1508
|
+
slotStartWrapperProps: _ = {},
|
|
1510
1509
|
slotEndWrapperProps: g = {},
|
|
1511
1510
|
"data-testid": h
|
|
1512
|
-
} = t, { className:
|
|
1511
|
+
} = t, { className: y, ...m } = _, { className: w, ...C } = g;
|
|
1513
1512
|
return /* @__PURE__ */ o.jsxs(
|
|
1514
1513
|
"div",
|
|
1515
1514
|
{
|
|
1516
|
-
className:
|
|
1515
|
+
className: G(
|
|
1517
1516
|
xe.tag,
|
|
1518
1517
|
xe[n],
|
|
1519
1518
|
xe[i],
|
|
@@ -1527,23 +1526,23 @@ const mr = 3, vr = (t) => {
|
|
|
1527
1526
|
"data-testid": h || "tag-component",
|
|
1528
1527
|
ref: r,
|
|
1529
1528
|
children: [
|
|
1530
|
-
d && /* @__PURE__ */ o.jsx("span", { className:
|
|
1531
|
-
|
|
1532
|
-
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 })
|
|
1533
1532
|
]
|
|
1534
1533
|
}
|
|
1535
1534
|
);
|
|
1536
|
-
}), fs = "
|
|
1537
|
-
checkbox:
|
|
1538
|
-
input:
|
|
1539
|
-
icon:
|
|
1540
|
-
container:
|
|
1541
|
-
error:
|
|
1542
|
-
checkboxWrapper:
|
|
1543
|
-
medium:
|
|
1544
|
-
large:
|
|
1545
|
-
label:
|
|
1546
|
-
},
|
|
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 = ({
|
|
1547
1546
|
width: t = 12,
|
|
1548
1547
|
height: r = 9,
|
|
1549
1548
|
className: a = "",
|
|
@@ -1569,7 +1568,7 @@ const mr = 3, vr = (t) => {
|
|
|
1569
1568
|
}
|
|
1570
1569
|
)
|
|
1571
1570
|
}
|
|
1572
|
-
),
|
|
1571
|
+
), ws = ({
|
|
1573
1572
|
width: t = 12,
|
|
1574
1573
|
height: r = 2,
|
|
1575
1574
|
className: a = "",
|
|
@@ -1595,17 +1594,17 @@ const mr = 3, vr = (t) => {
|
|
|
1595
1594
|
}
|
|
1596
1595
|
)
|
|
1597
1596
|
}
|
|
1598
|
-
),
|
|
1597
|
+
), Ss = {
|
|
1599
1598
|
medium: { width: 10.83, height: 7.5 },
|
|
1600
1599
|
large: { width: 13, height: 9 }
|
|
1601
|
-
},
|
|
1600
|
+
}, Es = ({
|
|
1602
1601
|
size: t,
|
|
1603
1602
|
isChecked: r,
|
|
1604
1603
|
isDisabled: a,
|
|
1605
1604
|
indeterminate: s,
|
|
1606
1605
|
dataTestId: i
|
|
1607
1606
|
}) => {
|
|
1608
|
-
const { width: n, height: c } =
|
|
1607
|
+
const { width: n, height: c } = Ss[t];
|
|
1609
1608
|
return /* @__PURE__ */ o.jsx(
|
|
1610
1609
|
"div",
|
|
1611
1610
|
{
|
|
@@ -1614,66 +1613,67 @@ const mr = 3, vr = (t) => {
|
|
|
1614
1613
|
"data-checked": r,
|
|
1615
1614
|
"data-disabled": a,
|
|
1616
1615
|
"data-indeterminate": s,
|
|
1617
|
-
children: s ? /* @__PURE__ */ o.jsx(
|
|
1616
|
+
children: s ? /* @__PURE__ */ o.jsx(ws, { width: n, height: c }) : /* @__PURE__ */ o.jsx(Cs, { width: n, height: c })
|
|
1618
1617
|
}
|
|
1619
1618
|
);
|
|
1620
|
-
},
|
|
1619
|
+
}, Un = Q((t, r) => {
|
|
1621
1620
|
const {
|
|
1622
1621
|
name: a,
|
|
1623
1622
|
value: s,
|
|
1624
1623
|
size: i = "medium",
|
|
1625
1624
|
indeterminate: n = !1,
|
|
1626
1625
|
loading: c = !1,
|
|
1627
|
-
error:
|
|
1626
|
+
error: p,
|
|
1628
1627
|
disabled: d = !1,
|
|
1629
1628
|
containerClassName: f,
|
|
1630
|
-
className:
|
|
1629
|
+
className: _,
|
|
1631
1630
|
containerStyle: g,
|
|
1632
1631
|
style: h,
|
|
1633
|
-
children:
|
|
1634
|
-
clickableLabel:
|
|
1632
|
+
children: y,
|
|
1633
|
+
clickableLabel: m = !0,
|
|
1635
1634
|
tabIndex: w,
|
|
1636
1635
|
onChange: C,
|
|
1637
|
-
|
|
1638
|
-
|
|
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(
|
|
1639
1639
|
ge.checkbox,
|
|
1640
1640
|
ge[i],
|
|
1641
1641
|
{
|
|
1642
|
-
[ge.error]:
|
|
1642
|
+
[ge.error]: k
|
|
1643
1643
|
},
|
|
1644
|
-
|
|
1645
|
-
),
|
|
1646
|
-
|
|
1647
|
-
},
|
|
1648
|
-
if ($.key === "Enter" && !
|
|
1644
|
+
_
|
|
1645
|
+
), x = ($) => {
|
|
1646
|
+
A || (R($.target.checked), C == null || C($.target.checked, $));
|
|
1647
|
+
}, W = ($) => {
|
|
1648
|
+
if ($.key === "Enter" && !A) {
|
|
1649
1649
|
$.preventDefault();
|
|
1650
|
-
const
|
|
1651
|
-
R(
|
|
1650
|
+
const U = !N;
|
|
1651
|
+
R(U), C == null || C(U);
|
|
1652
1652
|
}
|
|
1653
|
-
},
|
|
1654
|
-
|
|
1655
|
-
}
|
|
1653
|
+
}, O = ($) => {
|
|
1654
|
+
m || $.preventDefault(), E == null || E($);
|
|
1655
|
+
};
|
|
1656
1656
|
return /* @__PURE__ */ o.jsxs(
|
|
1657
1657
|
"label",
|
|
1658
1658
|
{
|
|
1659
|
-
className:
|
|
1659
|
+
className: D,
|
|
1660
1660
|
htmlFor: a,
|
|
1661
1661
|
style: g,
|
|
1662
|
-
"data-testid":
|
|
1663
|
-
"data-clickable-label":
|
|
1662
|
+
"data-testid": b,
|
|
1663
|
+
"data-clickable-label": m,
|
|
1664
1664
|
children: [
|
|
1665
1665
|
/* @__PURE__ */ o.jsx("div", { className: ge.checkboxWrapper, children: /* @__PURE__ */ o.jsxs(
|
|
1666
1666
|
"div",
|
|
1667
1667
|
{
|
|
1668
1668
|
tabIndex: w || 0,
|
|
1669
|
-
className:
|
|
1669
|
+
className: z,
|
|
1670
1670
|
style: h,
|
|
1671
|
-
onKeyDown:
|
|
1672
|
-
"aria-checked":
|
|
1673
|
-
"aria-disabled":
|
|
1674
|
-
"aria-invalid":
|
|
1675
|
-
"aria-describedby":
|
|
1676
|
-
"data-testid": `${
|
|
1671
|
+
onKeyDown: W,
|
|
1672
|
+
"aria-checked": N,
|
|
1673
|
+
"aria-disabled": A,
|
|
1674
|
+
"aria-invalid": k,
|
|
1675
|
+
"aria-describedby": p ? `${a}-error` : void 0,
|
|
1676
|
+
"data-testid": `${b}-label`,
|
|
1677
1677
|
children: [
|
|
1678
1678
|
/* @__PURE__ */ o.jsx(
|
|
1679
1679
|
"input",
|
|
@@ -1682,110 +1682,109 @@ const mr = 3, vr = (t) => {
|
|
|
1682
1682
|
type: "checkbox",
|
|
1683
1683
|
id: a,
|
|
1684
1684
|
name: a,
|
|
1685
|
-
checked:
|
|
1686
|
-
disabled:
|
|
1685
|
+
checked: N,
|
|
1686
|
+
disabled: A,
|
|
1687
1687
|
className: ge.input,
|
|
1688
|
-
onChange:
|
|
1689
|
-
|
|
1690
|
-
"aria-
|
|
1691
|
-
"aria-
|
|
1692
|
-
"
|
|
1693
|
-
"data-testid": `${S}-input`
|
|
1688
|
+
onChange: x,
|
|
1689
|
+
"aria-checked": N,
|
|
1690
|
+
"aria-invalid": k,
|
|
1691
|
+
"aria-describedby": p ? `${a}-error` : void 0,
|
|
1692
|
+
"data-testid": `${b}-input`
|
|
1694
1693
|
}
|
|
1695
1694
|
),
|
|
1696
1695
|
/* @__PURE__ */ o.jsx(
|
|
1697
|
-
|
|
1696
|
+
Es,
|
|
1698
1697
|
{
|
|
1699
1698
|
name: a,
|
|
1700
1699
|
size: i,
|
|
1701
|
-
isChecked:
|
|
1702
|
-
isDisabled:
|
|
1700
|
+
isChecked: N,
|
|
1701
|
+
isDisabled: A,
|
|
1703
1702
|
indeterminate: n,
|
|
1704
|
-
dataTestId:
|
|
1703
|
+
dataTestId: b
|
|
1705
1704
|
}
|
|
1706
1705
|
)
|
|
1707
1706
|
]
|
|
1708
1707
|
}
|
|
1709
1708
|
) }),
|
|
1710
|
-
|
|
1709
|
+
y && /* @__PURE__ */ o.jsx(
|
|
1711
1710
|
"span",
|
|
1712
1711
|
{
|
|
1713
|
-
"data-testid": `${
|
|
1714
|
-
"data-clickable-label":
|
|
1712
|
+
"data-testid": `${b}-label-text`,
|
|
1713
|
+
"data-clickable-label": m,
|
|
1715
1714
|
className: ge.label,
|
|
1716
|
-
onClick:
|
|
1717
|
-
children:
|
|
1715
|
+
onClick: O,
|
|
1716
|
+
children: y
|
|
1718
1717
|
}
|
|
1719
1718
|
)
|
|
1720
1719
|
]
|
|
1721
1720
|
}
|
|
1722
1721
|
);
|
|
1723
|
-
}),
|
|
1724
|
-
typography:
|
|
1725
|
-
disabled:
|
|
1726
|
-
primary:
|
|
1727
|
-
secondary:
|
|
1728
|
-
tertiary:
|
|
1729
|
-
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,
|
|
1730
1729
|
"accent-secondary": "_accent-secondary_zt7xg_33",
|
|
1731
|
-
positive:
|
|
1730
|
+
positive: ks,
|
|
1732
1731
|
"positive-secondary": "_positive-secondary_zt7xg_43",
|
|
1733
|
-
negative:
|
|
1732
|
+
negative: Ts,
|
|
1734
1733
|
"negative-secondary": "_negative-secondary_zt7xg_53",
|
|
1735
|
-
warning:
|
|
1734
|
+
warning: As,
|
|
1736
1735
|
"warning-secondary": "_warning-secondary_zt7xg_63",
|
|
1737
|
-
special:
|
|
1736
|
+
special: Ns,
|
|
1738
1737
|
"special-secondary": "_special-secondary_zt7xg_73",
|
|
1739
|
-
contrast:
|
|
1738
|
+
contrast: Ds,
|
|
1740
1739
|
"contrast-secondary": "_contrast-secondary_zt7xg_83"
|
|
1741
|
-
},
|
|
1740
|
+
}, Os = {
|
|
1742
1741
|
1: "h1",
|
|
1743
1742
|
2: "h2",
|
|
1744
1743
|
3: "h3",
|
|
1745
1744
|
4: "h4",
|
|
1746
1745
|
5: "h5"
|
|
1747
|
-
},
|
|
1748
|
-
const r =
|
|
1746
|
+
}, xt = (t) => {
|
|
1747
|
+
const r = Et.forwardRef(
|
|
1749
1748
|
({
|
|
1750
1749
|
size: a = 3,
|
|
1751
1750
|
children: s,
|
|
1752
1751
|
className: i,
|
|
1753
1752
|
"data-testid": n,
|
|
1754
1753
|
as: c,
|
|
1755
|
-
fontWeight:
|
|
1754
|
+
fontWeight: p = "semibold",
|
|
1756
1755
|
disabled: d = !1,
|
|
1757
1756
|
typographyStyle: f = "primary",
|
|
1758
|
-
...
|
|
1757
|
+
..._
|
|
1759
1758
|
}, g) => {
|
|
1760
|
-
const h = c ||
|
|
1759
|
+
const h = c || Os[a], y = G(
|
|
1761
1760
|
je.typography,
|
|
1762
|
-
Ne[`typography-${t}-${a}-${
|
|
1761
|
+
Ne[`typography-${t}-${a}-${p}`],
|
|
1763
1762
|
je[f],
|
|
1764
1763
|
{
|
|
1765
1764
|
[je.disabled]: d
|
|
1766
1765
|
},
|
|
1767
1766
|
i
|
|
1768
1767
|
);
|
|
1769
|
-
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;
|
|
1770
1769
|
}
|
|
1771
1770
|
);
|
|
1772
1771
|
return r.displayName = `Typography.${t === "title" ? "Title" : "Subtitle"}`, r;
|
|
1773
|
-
},
|
|
1774
|
-
const r =
|
|
1772
|
+
}, Ct = (t) => {
|
|
1773
|
+
const r = Et.forwardRef(
|
|
1775
1774
|
({
|
|
1776
1775
|
size: a = 3,
|
|
1777
1776
|
children: s,
|
|
1778
1777
|
className: i,
|
|
1779
1778
|
"data-testid": n,
|
|
1780
1779
|
as: c = "p",
|
|
1781
|
-
fontWeight:
|
|
1780
|
+
fontWeight: p = "regular",
|
|
1782
1781
|
disabled: d = !1,
|
|
1783
1782
|
typographyStyle: f = "primary",
|
|
1784
|
-
...
|
|
1783
|
+
..._
|
|
1785
1784
|
}, g) => {
|
|
1786
|
-
const h = c,
|
|
1785
|
+
const h = c, y = G(
|
|
1787
1786
|
je.typography,
|
|
1788
|
-
Ne[`typography-${t}-${a}-${
|
|
1787
|
+
Ne[`typography-${t}-${a}-${p}`],
|
|
1789
1788
|
je[f],
|
|
1790
1789
|
{
|
|
1791
1790
|
[je.disabled]: d
|
|
@@ -1796,50 +1795,50 @@ const mr = 3, vr = (t) => {
|
|
|
1796
1795
|
h,
|
|
1797
1796
|
{
|
|
1798
1797
|
ref: g,
|
|
1799
|
-
className:
|
|
1798
|
+
className: y,
|
|
1800
1799
|
"data-testid": n,
|
|
1801
|
-
...
|
|
1800
|
+
..._,
|
|
1802
1801
|
children: s
|
|
1803
1802
|
}
|
|
1804
1803
|
) : null;
|
|
1805
1804
|
}
|
|
1806
1805
|
);
|
|
1807
1806
|
return r.displayName = `Typography.${t.charAt(0).toUpperCase() + t.slice(1)}`, r;
|
|
1808
|
-
},
|
|
1809
|
-
Title:
|
|
1810
|
-
Subtitle:
|
|
1811
|
-
Label:
|
|
1812
|
-
Paragraph:
|
|
1813
|
-
},
|
|
1814
|
-
inputBase:
|
|
1815
|
-
wrapper:
|
|
1807
|
+
}, Bn = {
|
|
1808
|
+
Title: xt("title"),
|
|
1809
|
+
Subtitle: xt("subtitle"),
|
|
1810
|
+
Label: Ct("label"),
|
|
1811
|
+
Paragraph: Ct("paragraph")
|
|
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,
|
|
1816
1815
|
"textarea-wrapper": "_textarea-wrapper_1m6fe_109",
|
|
1817
|
-
gripHandle:
|
|
1818
|
-
error:
|
|
1819
|
-
tabFocused:
|
|
1820
|
-
disabled:
|
|
1821
|
-
loading:
|
|
1822
|
-
label:
|
|
1816
|
+
gripHandle: Fs,
|
|
1817
|
+
error: Ps,
|
|
1818
|
+
tabFocused: zs,
|
|
1819
|
+
disabled: Ws,
|
|
1820
|
+
loading: Vs,
|
|
1821
|
+
label: Hs,
|
|
1823
1822
|
small: Gs,
|
|
1824
1823
|
large: Zs,
|
|
1825
|
-
leftSection:
|
|
1826
|
-
rightSection:
|
|
1827
|
-
helper:
|
|
1828
|
-
floatingLabel:
|
|
1829
|
-
focused:
|
|
1830
|
-
filled:
|
|
1831
|
-
medium:
|
|
1832
|
-
characterLimit:
|
|
1833
|
-
input:
|
|
1834
|
-
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,
|
|
1835
1834
|
"size-small": "_size-small_1m6fe_586",
|
|
1836
1835
|
"size-medium": "_size-medium_1m6fe_592",
|
|
1837
1836
|
"size-large": "_size-large_1m6fe_598",
|
|
1838
1837
|
"with-floating-label": "_with-floating-label_1m6fe_605",
|
|
1839
|
-
truncate:
|
|
1840
|
-
hint:
|
|
1838
|
+
truncate: sn,
|
|
1839
|
+
hint: nn,
|
|
1841
1840
|
"has-hint": "_has-hint_1m6fe_736"
|
|
1842
|
-
},
|
|
1841
|
+
}, on = ({
|
|
1843
1842
|
width: t = 8,
|
|
1844
1843
|
height: r = 8,
|
|
1845
1844
|
className: a,
|
|
@@ -1863,7 +1862,7 @@ const mr = 3, vr = (t) => {
|
|
|
1863
1862
|
}
|
|
1864
1863
|
)
|
|
1865
1864
|
}
|
|
1866
|
-
),
|
|
1865
|
+
), kt = ({
|
|
1867
1866
|
className: t = "",
|
|
1868
1867
|
style: r,
|
|
1869
1868
|
size: a = "md",
|
|
@@ -1871,7 +1870,7 @@ const mr = 3, vr = (t) => {
|
|
|
1871
1870
|
onClick: i,
|
|
1872
1871
|
...n
|
|
1873
1872
|
}) => {
|
|
1874
|
-
const
|
|
1873
|
+
const p = {
|
|
1875
1874
|
display: "inline-block",
|
|
1876
1875
|
color: s,
|
|
1877
1876
|
...{
|
|
@@ -1888,7 +1887,7 @@ const mr = 3, vr = (t) => {
|
|
|
1888
1887
|
"svg",
|
|
1889
1888
|
{
|
|
1890
1889
|
className: t,
|
|
1891
|
-
style:
|
|
1890
|
+
style: p,
|
|
1892
1891
|
viewBox: "0 0 16 16",
|
|
1893
1892
|
fill: "none",
|
|
1894
1893
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1906,7 +1905,7 @@ const mr = 3, vr = (t) => {
|
|
|
1906
1905
|
)
|
|
1907
1906
|
}
|
|
1908
1907
|
);
|
|
1909
|
-
},
|
|
1908
|
+
}, ln = (t, r) => {
|
|
1910
1909
|
const a = We(null), s = We(null);
|
|
1911
1910
|
return we(() => {
|
|
1912
1911
|
const i = r === "textarea" ? a.current : s.current;
|
|
@@ -1916,7 +1915,7 @@ const mr = 3, vr = (t) => {
|
|
|
1916
1915
|
inputRef: s,
|
|
1917
1916
|
currentRef: r === "textarea" ? a : s
|
|
1918
1917
|
};
|
|
1919
|
-
},
|
|
1918
|
+
}, cn = (t, r, a) => {
|
|
1920
1919
|
const s = () => {
|
|
1921
1920
|
if (!a.current || r !== "hug") return;
|
|
1922
1921
|
const i = a.current.scrollTop;
|
|
@@ -1929,22 +1928,22 @@ const mr = 3, vr = (t) => {
|
|
|
1929
1928
|
return we(s, [t, r]), we(() => {
|
|
1930
1929
|
r === "hug" && a.current && s();
|
|
1931
1930
|
}, []), { resizeTextArea: s };
|
|
1932
|
-
},
|
|
1931
|
+
}, dn = (t, r, a, s) => ({ handleGripMouseDown: Ce(
|
|
1933
1932
|
(n) => {
|
|
1934
1933
|
if (!t || r || a || !(s === "fixed" || !s)) return;
|
|
1935
1934
|
n.preventDefault(), n.stopPropagation();
|
|
1936
1935
|
const c = n.currentTarget.closest(`.${M.wrapper}`);
|
|
1937
1936
|
if (!c) return;
|
|
1938
|
-
const
|
|
1939
|
-
const h = g.clientY -
|
|
1940
|
-
c.style.height = `${
|
|
1941
|
-
},
|
|
1942
|
-
document.removeEventListener("mousemove", f), document.removeEventListener("mouseup",
|
|
1937
|
+
const p = n.clientY, d = c.clientHeight, f = (g) => {
|
|
1938
|
+
const h = g.clientY - p, y = Math.min(100, d), m = Math.max(y, d + h);
|
|
1939
|
+
c.style.height = `${m}px`;
|
|
1940
|
+
}, _ = () => {
|
|
1941
|
+
document.removeEventListener("mousemove", f), document.removeEventListener("mouseup", _);
|
|
1943
1942
|
};
|
|
1944
|
-
document.addEventListener("mousemove", f), document.addEventListener("mouseup",
|
|
1943
|
+
document.addEventListener("mousemove", f), document.addEventListener("mouseup", _);
|
|
1945
1944
|
},
|
|
1946
1945
|
[t, r, a, s]
|
|
1947
|
-
) }),
|
|
1946
|
+
) }), wt = 30, un = Q(
|
|
1948
1947
|
({
|
|
1949
1948
|
component: t = "input",
|
|
1950
1949
|
size: r = "medium",
|
|
@@ -1953,77 +1952,77 @@ const mr = 3, vr = (t) => {
|
|
|
1953
1952
|
disabled: i = !1,
|
|
1954
1953
|
loading: n = !1,
|
|
1955
1954
|
onFocus: c,
|
|
1956
|
-
onBlur:
|
|
1955
|
+
onBlur: p,
|
|
1957
1956
|
onChange: d,
|
|
1958
1957
|
onKeyUp: f,
|
|
1959
|
-
maxLength:
|
|
1958
|
+
maxLength: _,
|
|
1960
1959
|
className: g,
|
|
1961
1960
|
style: h,
|
|
1962
|
-
truncate:
|
|
1963
|
-
shouldShowFloatingLabelClass:
|
|
1961
|
+
truncate: y = !1,
|
|
1962
|
+
shouldShowFloatingLabelClass: m = !1,
|
|
1964
1963
|
"aria-invalid": w,
|
|
1965
1964
|
"aria-errormessage": C,
|
|
1966
|
-
id:
|
|
1967
|
-
resize:
|
|
1968
|
-
...
|
|
1969
|
-
},
|
|
1970
|
-
const { textareaRef:
|
|
1971
|
-
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")
|
|
1972
1971
|
return /* @__PURE__ */ o.jsx(
|
|
1973
1972
|
"textarea",
|
|
1974
1973
|
{
|
|
1975
|
-
ref:
|
|
1976
|
-
id:
|
|
1974
|
+
ref: P,
|
|
1975
|
+
id: E,
|
|
1977
1976
|
value: a,
|
|
1978
1977
|
placeholder: s,
|
|
1979
1978
|
disabled: i || n,
|
|
1980
1979
|
onFocus: c,
|
|
1981
|
-
onBlur:
|
|
1980
|
+
onBlur: p,
|
|
1982
1981
|
onChange: d,
|
|
1983
1982
|
onKeyUp: f,
|
|
1984
|
-
maxLength:
|
|
1985
|
-
className:
|
|
1983
|
+
maxLength: _,
|
|
1984
|
+
className: G(
|
|
1986
1985
|
M.textarea,
|
|
1987
1986
|
M[`size-${r}`],
|
|
1988
|
-
|
|
1987
|
+
m && M["with-floating-label"],
|
|
1989
1988
|
g
|
|
1990
1989
|
),
|
|
1991
1990
|
style: h,
|
|
1992
1991
|
"aria-invalid": w,
|
|
1993
1992
|
"aria-errormessage": C,
|
|
1994
|
-
"aria-describedby": C ? `${
|
|
1993
|
+
"aria-describedby": C ? `${E}-error` : void 0,
|
|
1995
1994
|
tabIndex: 0,
|
|
1996
|
-
"data-resize":
|
|
1997
|
-
...
|
|
1995
|
+
"data-resize": b,
|
|
1996
|
+
...I
|
|
1998
1997
|
}
|
|
1999
1998
|
);
|
|
2000
1999
|
if (t === "input")
|
|
2001
2000
|
return /* @__PURE__ */ o.jsx(
|
|
2002
2001
|
"input",
|
|
2003
2002
|
{
|
|
2004
|
-
ref:
|
|
2005
|
-
id:
|
|
2003
|
+
ref: A,
|
|
2004
|
+
id: E,
|
|
2006
2005
|
value: a,
|
|
2007
2006
|
placeholder: s,
|
|
2008
2007
|
disabled: i || n,
|
|
2009
2008
|
onFocus: c,
|
|
2010
|
-
onBlur:
|
|
2009
|
+
onBlur: p,
|
|
2011
2010
|
onChange: d,
|
|
2012
2011
|
onKeyUp: f,
|
|
2013
|
-
maxLength:
|
|
2014
|
-
className:
|
|
2012
|
+
maxLength: _,
|
|
2013
|
+
className: G(
|
|
2015
2014
|
M.input,
|
|
2016
2015
|
M[`size-${r}`],
|
|
2017
|
-
|
|
2018
|
-
|
|
2016
|
+
m && M["with-floating-label"],
|
|
2017
|
+
y && M.truncate,
|
|
2019
2018
|
g
|
|
2020
2019
|
),
|
|
2021
2020
|
style: h,
|
|
2022
2021
|
"aria-invalid": w,
|
|
2023
2022
|
"aria-errormessage": C,
|
|
2024
|
-
"aria-describedby": C ? `${
|
|
2023
|
+
"aria-describedby": C ? `${E}-error` : void 0,
|
|
2025
2024
|
tabIndex: 0,
|
|
2026
|
-
...
|
|
2025
|
+
...I
|
|
2027
2026
|
}
|
|
2028
2027
|
);
|
|
2029
2028
|
if (t !== "input" && t !== "textarea")
|
|
@@ -2031,7 +2030,7 @@ const mr = 3, vr = (t) => {
|
|
|
2031
2030
|
`[Input] Недопустимое значение prop 'component': "${String(t)}". Допустимые значения: 'input', 'textarea'`
|
|
2032
2031
|
), null;
|
|
2033
2032
|
}
|
|
2034
|
-
),
|
|
2033
|
+
), Tt = Q(
|
|
2035
2034
|
({
|
|
2036
2035
|
children: t,
|
|
2037
2036
|
size: r = "medium",
|
|
@@ -2040,67 +2039,67 @@ const mr = 3, vr = (t) => {
|
|
|
2040
2039
|
loading: i = !1,
|
|
2041
2040
|
className: n,
|
|
2042
2041
|
wrapperProps: c,
|
|
2043
|
-
wrapperStyles:
|
|
2042
|
+
wrapperStyles: p,
|
|
2044
2043
|
floatingLabelStyles: d,
|
|
2045
2044
|
prefixStyles: f,
|
|
2046
|
-
suffixStyles:
|
|
2045
|
+
suffixStyles: _,
|
|
2047
2046
|
labelProps: g,
|
|
2048
2047
|
helperProps: h,
|
|
2049
|
-
showLimit:
|
|
2050
|
-
maxLength:
|
|
2048
|
+
showLimit: y = !1,
|
|
2049
|
+
maxLength: m,
|
|
2051
2050
|
hint: w,
|
|
2052
2051
|
showHint: C = !1,
|
|
2053
|
-
showHintOnEmpty:
|
|
2054
|
-
prefix:
|
|
2055
|
-
suffix:
|
|
2056
|
-
placeholder:
|
|
2057
|
-
showLabel:
|
|
2058
|
-
labelClassName:
|
|
2059
|
-
hasValue:
|
|
2060
|
-
helper:
|
|
2061
|
-
id:
|
|
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,
|
|
2062
2061
|
value: z = "",
|
|
2063
2062
|
resize: x,
|
|
2064
2063
|
showGrip: W = !1,
|
|
2065
2064
|
...O
|
|
2066
2065
|
}, $) => {
|
|
2067
|
-
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(
|
|
2068
2067
|
M.wrapper,
|
|
2069
2068
|
a && M.error,
|
|
2070
2069
|
s && M.disabled,
|
|
2071
2070
|
i && M.loading,
|
|
2072
|
-
|
|
2071
|
+
Z && M["has-hint"],
|
|
2073
2072
|
n
|
|
2074
|
-
), ae =
|
|
2073
|
+
), ae = G(
|
|
2075
2074
|
M.floatingLabel,
|
|
2076
2075
|
M[r],
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
), { handleGripMouseDown: re } =
|
|
2076
|
+
k && M.filled,
|
|
2077
|
+
A
|
|
2078
|
+
), { handleGripMouseDown: re } = dn(W, s, i, x);
|
|
2080
2079
|
return /* @__PURE__ */ o.jsxs("div", { ref: $, className: M.inputBase, "data-testid": "input-base-wrapper", ...O, children: [
|
|
2081
2080
|
/* @__PURE__ */ o.jsxs(
|
|
2082
2081
|
"div",
|
|
2083
2082
|
{
|
|
2084
2083
|
className: te,
|
|
2085
|
-
style:
|
|
2084
|
+
style: p,
|
|
2086
2085
|
"data-resize": x,
|
|
2087
2086
|
"data-show-grip": W ? "true" : "false",
|
|
2088
2087
|
...c,
|
|
2089
2088
|
children: [
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
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(
|
|
2093
2092
|
"label",
|
|
2094
2093
|
{
|
|
2095
2094
|
htmlFor: V,
|
|
2096
2095
|
className: ae,
|
|
2097
2096
|
style: d,
|
|
2098
2097
|
...g,
|
|
2099
|
-
children:
|
|
2098
|
+
children: R
|
|
2100
2099
|
}
|
|
2101
2100
|
),
|
|
2102
2101
|
t,
|
|
2103
|
-
W && !
|
|
2102
|
+
W && !y && (x === "fixed" || !x) && /* @__PURE__ */ o.jsx(
|
|
2104
2103
|
"div",
|
|
2105
2104
|
{
|
|
2106
2105
|
className: M.gripHandle,
|
|
@@ -2108,45 +2107,45 @@ const mr = 3, vr = (t) => {
|
|
|
2108
2107
|
role: "button",
|
|
2109
2108
|
tabIndex: -1,
|
|
2110
2109
|
"aria-label": "Изменить размер",
|
|
2111
|
-
children: /* @__PURE__ */ o.jsx(
|
|
2110
|
+
children: /* @__PURE__ */ o.jsx(on, {})
|
|
2112
2111
|
}
|
|
2113
2112
|
),
|
|
2114
|
-
|
|
2113
|
+
Z && /* @__PURE__ */ o.jsx(
|
|
2115
2114
|
"div",
|
|
2116
2115
|
{
|
|
2117
|
-
className:
|
|
2116
|
+
className: G(M.hint, k && M.truncate),
|
|
2118
2117
|
"data-disabled": s || i,
|
|
2119
|
-
children:
|
|
2118
|
+
children: q
|
|
2120
2119
|
}
|
|
2121
2120
|
),
|
|
2122
|
-
|
|
2121
|
+
y && m && /* @__PURE__ */ o.jsxs("div", { className: M.characterLimit, children: [
|
|
2123
2122
|
(z || "").length,
|
|
2124
2123
|
" из ",
|
|
2125
|
-
|
|
2124
|
+
m
|
|
2126
2125
|
] })
|
|
2127
2126
|
]
|
|
2128
2127
|
}
|
|
2129
2128
|
),
|
|
2130
|
-
|
|
2129
|
+
N && /* @__PURE__ */ o.jsx(
|
|
2131
2130
|
"div",
|
|
2132
2131
|
{
|
|
2133
|
-
className:
|
|
2132
|
+
className: G(
|
|
2134
2133
|
M.helper,
|
|
2135
2134
|
a && M.error,
|
|
2136
2135
|
(s || i) && M.disabled
|
|
2137
2136
|
),
|
|
2138
2137
|
...h,
|
|
2139
2138
|
id: a ? `${V}-error` : void 0,
|
|
2140
|
-
children:
|
|
2139
|
+
children: N
|
|
2141
2140
|
}
|
|
2142
2141
|
)
|
|
2143
2142
|
] });
|
|
2144
2143
|
}
|
|
2145
2144
|
);
|
|
2146
|
-
|
|
2147
|
-
const
|
|
2148
|
-
Wrapper:
|
|
2149
|
-
}),
|
|
2145
|
+
Tt.displayName = "InputWrapperComponent";
|
|
2146
|
+
const St = Object.assign(un, {
|
|
2147
|
+
Wrapper: Tt
|
|
2148
|
+
}), At = Q(
|
|
2150
2149
|
({
|
|
2151
2150
|
component: t = "input",
|
|
2152
2151
|
size: r = "medium",
|
|
@@ -2155,44 +2154,44 @@ const Et = Object.assign(pn, {
|
|
|
2155
2154
|
disabled: i = !1,
|
|
2156
2155
|
loading: n = !1,
|
|
2157
2156
|
placeholder: c,
|
|
2158
|
-
showLabel:
|
|
2157
|
+
showLabel: p = !0,
|
|
2159
2158
|
labelClassName: d,
|
|
2160
2159
|
helper: f,
|
|
2161
|
-
prefix:
|
|
2160
|
+
prefix: _,
|
|
2162
2161
|
suffix: g,
|
|
2163
2162
|
id: h,
|
|
2164
|
-
onFocus:
|
|
2165
|
-
onBlur:
|
|
2163
|
+
onFocus: y,
|
|
2164
|
+
onBlur: m,
|
|
2166
2165
|
onChange: w,
|
|
2167
2166
|
value: C = "",
|
|
2168
|
-
wrapperProps:
|
|
2169
|
-
wrapperStyles:
|
|
2170
|
-
floatingLabelStyles:
|
|
2171
|
-
prefixStyles:
|
|
2172
|
-
suffixStyles:
|
|
2173
|
-
textareaStyles:
|
|
2174
|
-
labelProps:
|
|
2175
|
-
helperProps:
|
|
2176
|
-
showLimit:
|
|
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,
|
|
2177
2176
|
maxLength: z,
|
|
2178
2177
|
inputProps: x,
|
|
2179
2178
|
hint: W,
|
|
2180
2179
|
showHint: O = !1,
|
|
2181
2180
|
showHintOnEmpty: $ = !1,
|
|
2182
|
-
truncate:
|
|
2181
|
+
truncate: U = !1,
|
|
2183
2182
|
resize: V,
|
|
2184
|
-
showGrip:
|
|
2185
|
-
...
|
|
2183
|
+
showGrip: Z = !1,
|
|
2184
|
+
...q
|
|
2186
2185
|
}, te) => {
|
|
2187
|
-
const ae =
|
|
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(
|
|
2188
2187
|
(K) => {
|
|
2189
2188
|
var ee;
|
|
2190
|
-
i || n || (
|
|
2189
|
+
i || n || (y == null || y(), (ee = x == null ? void 0 : x.onFocus) == null || ee.call(
|
|
2191
2190
|
x,
|
|
2192
2191
|
K
|
|
2193
2192
|
));
|
|
2194
2193
|
},
|
|
2195
|
-
[
|
|
2194
|
+
[y, x, i, n]
|
|
2196
2195
|
), pe = Ce(
|
|
2197
2196
|
(K) => {
|
|
2198
2197
|
var ee;
|
|
@@ -2210,12 +2209,12 @@ const Et = Object.assign(pn, {
|
|
|
2210
2209
|
(K) => {
|
|
2211
2210
|
var ce;
|
|
2212
2211
|
const ee = K.target.closest(`.${M.wrapper}`);
|
|
2213
|
-
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(
|
|
2214
2213
|
x,
|
|
2215
2214
|
K
|
|
2216
2215
|
);
|
|
2217
2216
|
},
|
|
2218
|
-
[
|
|
2217
|
+
[m, x]
|
|
2219
2218
|
), me = Ce(
|
|
2220
2219
|
(K) => {
|
|
2221
2220
|
var ce;
|
|
@@ -2231,40 +2230,40 @@ const Et = Object.assign(pn, {
|
|
|
2231
2230
|
return we(() => {
|
|
2232
2231
|
se(C);
|
|
2233
2232
|
}, [C]), /* @__PURE__ */ o.jsx(
|
|
2234
|
-
|
|
2233
|
+
St.Wrapper,
|
|
2235
2234
|
{
|
|
2236
2235
|
ref: te,
|
|
2237
2236
|
size: r,
|
|
2238
2237
|
error: s,
|
|
2239
2238
|
disabled: i || n,
|
|
2240
2239
|
loading: n,
|
|
2241
|
-
className:
|
|
2242
|
-
wrapperProps:
|
|
2243
|
-
wrapperStyles:
|
|
2244
|
-
floatingLabelStyles:
|
|
2245
|
-
prefixStyles:
|
|
2246
|
-
suffixStyles:
|
|
2247
|
-
labelProps:
|
|
2248
|
-
helperProps:
|
|
2249
|
-
showLimit:
|
|
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,
|
|
2250
2249
|
maxLength: z,
|
|
2251
2250
|
hint: W,
|
|
2252
2251
|
showHint: O,
|
|
2253
2252
|
showHintOnEmpty: $,
|
|
2254
|
-
prefix:
|
|
2253
|
+
prefix: _,
|
|
2255
2254
|
suffix: g,
|
|
2256
2255
|
placeholder: c,
|
|
2257
|
-
showLabel:
|
|
2256
|
+
showLabel: p,
|
|
2258
2257
|
labelClassName: d,
|
|
2259
2258
|
hasValue: Se,
|
|
2260
2259
|
helper: f,
|
|
2261
2260
|
id: re,
|
|
2262
2261
|
value: ye,
|
|
2263
|
-
showGrip:
|
|
2262
|
+
showGrip: Z,
|
|
2264
2263
|
resize: V,
|
|
2265
|
-
...
|
|
2264
|
+
...q,
|
|
2266
2265
|
children: /* @__PURE__ */ o.jsx(
|
|
2267
|
-
|
|
2266
|
+
St,
|
|
2268
2267
|
{
|
|
2269
2268
|
component: t,
|
|
2270
2269
|
size: r,
|
|
@@ -2277,10 +2276,10 @@ const Et = Object.assign(pn, {
|
|
|
2277
2276
|
onChange: me,
|
|
2278
2277
|
onKeyUp: pe,
|
|
2279
2278
|
maxLength: z,
|
|
2280
|
-
truncate:
|
|
2279
|
+
truncate: U,
|
|
2281
2280
|
"data-empty": !Se,
|
|
2282
2281
|
shouldShowFloatingLabelClass: ue,
|
|
2283
|
-
style: t === "textarea" ?
|
|
2282
|
+
style: t === "textarea" ? A : void 0,
|
|
2284
2283
|
"aria-invalid": !!s,
|
|
2285
2284
|
"aria-errormessage": s ? `${re}-error` : void 0,
|
|
2286
2285
|
id: re,
|
|
@@ -2295,7 +2294,7 @@ const Et = Object.assign(pn, {
|
|
|
2295
2294
|
SMALL: "small",
|
|
2296
2295
|
MEDIUM: "medium",
|
|
2297
2296
|
LARGE: "large"
|
|
2298
|
-
},
|
|
2297
|
+
}, pn = (t, r, a, s) => {
|
|
2299
2298
|
switch (t) {
|
|
2300
2299
|
case J.LARGE:
|
|
2301
2300
|
return r && a ? "8px 16px 8px 16px" : "16px 16px 16px 16px";
|
|
@@ -2306,7 +2305,7 @@ const Et = Object.assign(pn, {
|
|
|
2306
2305
|
default:
|
|
2307
2306
|
return "12px 16px 12px 16px";
|
|
2308
2307
|
}
|
|
2309
|
-
},
|
|
2308
|
+
}, _n = (t) => {
|
|
2310
2309
|
switch (t) {
|
|
2311
2310
|
case J.LARGE:
|
|
2312
2311
|
return "56px";
|
|
@@ -2317,7 +2316,7 @@ const Et = Object.assign(pn, {
|
|
|
2317
2316
|
default:
|
|
2318
2317
|
return "48px";
|
|
2319
2318
|
}
|
|
2320
|
-
},
|
|
2319
|
+
}, fn = (t) => {
|
|
2321
2320
|
switch (t) {
|
|
2322
2321
|
case J.SMALL:
|
|
2323
2322
|
return 8;
|
|
@@ -2329,7 +2328,7 @@ const Et = Object.assign(pn, {
|
|
|
2329
2328
|
default:
|
|
2330
2329
|
return 12;
|
|
2331
2330
|
}
|
|
2332
|
-
},
|
|
2331
|
+
}, gn = (t, r, a) => ({
|
|
2333
2332
|
wrapperStyles: {
|
|
2334
2333
|
height: t,
|
|
2335
2334
|
minHeight: t,
|
|
@@ -2347,7 +2346,7 @@ const Et = Object.assign(pn, {
|
|
|
2347
2346
|
suffixStyles: {
|
|
2348
2347
|
right: `${a}px`
|
|
2349
2348
|
}
|
|
2350
|
-
}),
|
|
2349
|
+
}), hn = (t, r, a) => ({
|
|
2351
2350
|
wrapperStyles: {
|
|
2352
2351
|
minHeight: t,
|
|
2353
2352
|
maxHeight: t,
|
|
@@ -2363,7 +2362,7 @@ const Et = Object.assign(pn, {
|
|
|
2363
2362
|
suffixStyles: {
|
|
2364
2363
|
right: `${a}px`
|
|
2365
2364
|
}
|
|
2366
|
-
}),
|
|
2365
|
+
}), bn = (t, r, a) => ({
|
|
2367
2366
|
wrapperStyles: {
|
|
2368
2367
|
minHeight: t,
|
|
2369
2368
|
maxHeight: t,
|
|
@@ -2379,15 +2378,15 @@ const Et = Object.assign(pn, {
|
|
|
2379
2378
|
suffixStyles: {
|
|
2380
2379
|
right: `${a}px`
|
|
2381
2380
|
}
|
|
2382
|
-
}),
|
|
2383
|
-
const i =
|
|
2381
|
+
}), yn = (t, r, a, s) => {
|
|
2382
|
+
const i = _n(t), n = pn(t, r, a, s), c = fn(t);
|
|
2384
2383
|
switch (t) {
|
|
2385
2384
|
case J.LARGE:
|
|
2386
|
-
return
|
|
2385
|
+
return gn(i, n, c);
|
|
2387
2386
|
case J.MEDIUM:
|
|
2388
|
-
return
|
|
2387
|
+
return hn(i, n, c);
|
|
2389
2388
|
case J.SMALL:
|
|
2390
|
-
return
|
|
2389
|
+
return bn(i, n, c);
|
|
2391
2390
|
default:
|
|
2392
2391
|
return {
|
|
2393
2392
|
wrapperStyles: {},
|
|
@@ -2396,7 +2395,7 @@ const Et = Object.assign(pn, {
|
|
|
2396
2395
|
suffixStyles: {}
|
|
2397
2396
|
};
|
|
2398
2397
|
}
|
|
2399
|
-
},
|
|
2398
|
+
}, Fn = Q(
|
|
2400
2399
|
({
|
|
2401
2400
|
value: t = "",
|
|
2402
2401
|
onChange: r,
|
|
@@ -2405,34 +2404,34 @@ const Et = Object.assign(pn, {
|
|
|
2405
2404
|
maxLength: i,
|
|
2406
2405
|
minLength: n,
|
|
2407
2406
|
autoComplete: c,
|
|
2408
|
-
autoFocus:
|
|
2407
|
+
autoFocus: p,
|
|
2409
2408
|
size: d = J.MEDIUM,
|
|
2410
2409
|
inputProps: f,
|
|
2411
|
-
error:
|
|
2410
|
+
error: _,
|
|
2412
2411
|
disabled: g,
|
|
2413
2412
|
loading: h,
|
|
2414
|
-
helper:
|
|
2415
|
-
prefix:
|
|
2413
|
+
helper: y,
|
|
2414
|
+
prefix: m,
|
|
2416
2415
|
suffix: w,
|
|
2417
2416
|
clearable: C = !1,
|
|
2418
|
-
id:
|
|
2419
|
-
showLabel:
|
|
2420
|
-
onFocus:
|
|
2421
|
-
onBlur:
|
|
2422
|
-
className:
|
|
2423
|
-
truncate:
|
|
2424
|
-
hint:
|
|
2425
|
-
showHint:
|
|
2426
|
-
showHintOnEmpty:
|
|
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,
|
|
2427
2426
|
wrapperProps: z,
|
|
2428
2427
|
labelProps: x,
|
|
2429
2428
|
helperProps: W,
|
|
2430
2429
|
...O
|
|
2431
2430
|
}, $) => {
|
|
2432
|
-
const
|
|
2431
|
+
const U = (t || "").length > 0, V = d === J.LARGE, Z = !!m, q = V && b && !m, te = C && U && !(g || h), ae = () => {
|
|
2433
2432
|
r == null || r("");
|
|
2434
2433
|
}, re = te ? /* @__PURE__ */ o.jsx(
|
|
2435
|
-
|
|
2434
|
+
kt,
|
|
2436
2435
|
{
|
|
2437
2436
|
size: d === J.SMALL ? "xs" : "sm",
|
|
2438
2437
|
color: "var(--icon-secondary)",
|
|
@@ -2444,27 +2443,27 @@ const Et = Object.assign(pn, {
|
|
|
2444
2443
|
type: a,
|
|
2445
2444
|
minLength: n,
|
|
2446
2445
|
autoComplete: c,
|
|
2447
|
-
autoFocus:
|
|
2446
|
+
autoFocus: p,
|
|
2448
2447
|
...f
|
|
2449
|
-
}, se =
|
|
2448
|
+
}, se = yn(d, q, U, Z);
|
|
2450
2449
|
return /* @__PURE__ */ o.jsx(
|
|
2451
|
-
|
|
2450
|
+
At,
|
|
2452
2451
|
{
|
|
2453
2452
|
size: d,
|
|
2454
|
-
error:
|
|
2453
|
+
error: _,
|
|
2455
2454
|
disabled: g || h,
|
|
2456
2455
|
loading: h,
|
|
2457
|
-
helper:
|
|
2458
|
-
prefix:
|
|
2456
|
+
helper: y,
|
|
2457
|
+
prefix: m,
|
|
2459
2458
|
suffix: re,
|
|
2460
|
-
id:
|
|
2461
|
-
showLabel:
|
|
2462
|
-
onFocus:
|
|
2463
|
-
onBlur:
|
|
2459
|
+
id: E,
|
|
2460
|
+
showLabel: q,
|
|
2461
|
+
onFocus: I,
|
|
2462
|
+
onBlur: R,
|
|
2464
2463
|
onChange: r,
|
|
2465
2464
|
value: t || "",
|
|
2466
2465
|
placeholder: s,
|
|
2467
|
-
className:
|
|
2466
|
+
className: P,
|
|
2468
2467
|
wrapperStyles: se.wrapperStyles,
|
|
2469
2468
|
floatingLabelStyles: se.floatingLabelStyles,
|
|
2470
2469
|
prefixStyles: se.prefixStyles,
|
|
@@ -2475,10 +2474,10 @@ const Et = Object.assign(pn, {
|
|
|
2475
2474
|
showLimit: !1,
|
|
2476
2475
|
maxLength: i,
|
|
2477
2476
|
inputProps: be,
|
|
2478
|
-
hint:
|
|
2479
|
-
showHint:
|
|
2480
|
-
showHintOnEmpty:
|
|
2481
|
-
truncate:
|
|
2477
|
+
hint: k,
|
|
2478
|
+
showHint: N,
|
|
2479
|
+
showHintOnEmpty: D,
|
|
2480
|
+
truncate: A,
|
|
2482
2481
|
...O
|
|
2483
2482
|
}
|
|
2484
2483
|
);
|
|
@@ -2489,7 +2488,7 @@ const Et = Object.assign(pn, {
|
|
|
2489
2488
|
}, ze = {
|
|
2490
2489
|
SMALL: "12px",
|
|
2491
2490
|
MEDIUM: "16px"
|
|
2492
|
-
},
|
|
2491
|
+
}, mn = {
|
|
2493
2492
|
SMALL: "xs",
|
|
2494
2493
|
MEDIUM: "sm"
|
|
2495
2494
|
}, Fe = {
|
|
@@ -2510,7 +2509,7 @@ const Et = Object.assign(pn, {
|
|
|
2510
2509
|
SMALL: 48,
|
|
2511
2510
|
MEDIUM: 56,
|
|
2512
2511
|
LARGE: 112
|
|
2513
|
-
},
|
|
2512
|
+
}, vn = (t, r) => {
|
|
2514
2513
|
if (t === oe.SMALL)
|
|
2515
2514
|
return Ke.SMALL;
|
|
2516
2515
|
if (r)
|
|
@@ -2521,7 +2520,7 @@ const Et = Object.assign(pn, {
|
|
|
2521
2520
|
default:
|
|
2522
2521
|
return Ke.MEDIUM;
|
|
2523
2522
|
}
|
|
2524
|
-
},
|
|
2523
|
+
}, xn = (t, r) => {
|
|
2525
2524
|
if (t === oe.SMALL)
|
|
2526
2525
|
return $e.SMALL;
|
|
2527
2526
|
if (r)
|
|
@@ -2540,7 +2539,7 @@ const Et = Object.assign(pn, {
|
|
|
2540
2539
|
default:
|
|
2541
2540
|
return $e.MEDIUM;
|
|
2542
2541
|
}
|
|
2543
|
-
},
|
|
2542
|
+
}, Cn = (t, r, a) => {
|
|
2544
2543
|
if (t === oe.SMALL)
|
|
2545
2544
|
return fe.SMALL;
|
|
2546
2545
|
if (r)
|
|
@@ -2560,7 +2559,7 @@ const Et = Object.assign(pn, {
|
|
|
2560
2559
|
default:
|
|
2561
2560
|
return fe.MEDIUM;
|
|
2562
2561
|
}
|
|
2563
|
-
},
|
|
2562
|
+
}, wn = (t, r) => {
|
|
2564
2563
|
if (t === oe.SMALL)
|
|
2565
2564
|
return "small";
|
|
2566
2565
|
if (r)
|
|
@@ -2575,8 +2574,8 @@ const Et = Object.assign(pn, {
|
|
|
2575
2574
|
return "medium";
|
|
2576
2575
|
}
|
|
2577
2576
|
return t;
|
|
2578
|
-
},
|
|
2579
|
-
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);
|
|
2580
2579
|
return {
|
|
2581
2580
|
wrapperStyles: {
|
|
2582
2581
|
minHeight: i,
|
|
@@ -2593,7 +2592,7 @@ const Et = Object.assign(pn, {
|
|
|
2593
2592
|
top: r === 112 && a && t === oe.MEDIUM ? ze.MEDIUM : void 0
|
|
2594
2593
|
},
|
|
2595
2594
|
suffixStyles: {
|
|
2596
|
-
right:
|
|
2595
|
+
right: En(t)
|
|
2597
2596
|
},
|
|
2598
2597
|
textareaStyles: {
|
|
2599
2598
|
minHeight: n,
|
|
@@ -2603,7 +2602,7 @@ const Et = Object.assign(pn, {
|
|
|
2603
2602
|
...s === Fe.FIXED && r && { height: n }
|
|
2604
2603
|
}
|
|
2605
2604
|
};
|
|
2606
|
-
},
|
|
2605
|
+
}, Pn = Q(
|
|
2607
2606
|
({
|
|
2608
2607
|
value: t = "",
|
|
2609
2608
|
onChange: r,
|
|
@@ -2612,87 +2611,87 @@ const Et = Object.assign(pn, {
|
|
|
2612
2611
|
minLength: i,
|
|
2613
2612
|
autoFocus: n,
|
|
2614
2613
|
size: c = oe.MEDIUM,
|
|
2615
|
-
textareaProps:
|
|
2614
|
+
textareaProps: p,
|
|
2616
2615
|
error: d,
|
|
2617
2616
|
disabled: f,
|
|
2618
|
-
loading:
|
|
2617
|
+
loading: _,
|
|
2619
2618
|
helper: g,
|
|
2620
2619
|
suffix: h,
|
|
2621
|
-
clearable:
|
|
2622
|
-
id:
|
|
2620
|
+
clearable: y = !1,
|
|
2621
|
+
id: m,
|
|
2623
2622
|
showLabel: w = !0,
|
|
2624
2623
|
onFocus: C,
|
|
2625
|
-
onBlur:
|
|
2626
|
-
className:
|
|
2627
|
-
rows:
|
|
2628
|
-
showLimit:
|
|
2629
|
-
wrapperProps:
|
|
2630
|
-
labelProps:
|
|
2631
|
-
helperProps:
|
|
2632
|
-
showGrip:
|
|
2633
|
-
minHeight:
|
|
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,
|
|
2634
2633
|
resize: z,
|
|
2635
2634
|
...x
|
|
2636
2635
|
}, W) => {
|
|
2637
|
-
const O = (t || "").length > 0, $ = w && !!a && (c === oe.SMALL ||
|
|
2636
|
+
const O = (t || "").length > 0, $ = w && !!a && (c === oe.SMALL || D !== 48), U = y && O && !(f || _), V = () => {
|
|
2638
2637
|
r == null || r("");
|
|
2639
|
-
},
|
|
2640
|
-
|
|
2638
|
+
}, Z = U ? /* @__PURE__ */ o.jsx(
|
|
2639
|
+
kt,
|
|
2641
2640
|
{
|
|
2642
|
-
size:
|
|
2641
|
+
size: Sn(c),
|
|
2643
2642
|
color: "var(--icon-secondary)",
|
|
2644
2643
|
onClick: V,
|
|
2645
2644
|
style: { cursor: "pointer" },
|
|
2646
2645
|
"data-testid": "x-icon"
|
|
2647
2646
|
}
|
|
2648
|
-
) : h,
|
|
2649
|
-
rows:
|
|
2647
|
+
) : h, q = Ln(c, D, $ && O, z), te = wn(c, D), ae = {
|
|
2648
|
+
rows: I,
|
|
2650
2649
|
minLength: i,
|
|
2651
2650
|
autoFocus: n,
|
|
2652
2651
|
resize: z,
|
|
2653
|
-
...
|
|
2652
|
+
...p
|
|
2654
2653
|
};
|
|
2655
2654
|
return /* @__PURE__ */ o.jsx(
|
|
2656
|
-
|
|
2655
|
+
At,
|
|
2657
2656
|
{
|
|
2658
2657
|
ref: W,
|
|
2659
2658
|
component: "textarea",
|
|
2660
2659
|
size: te,
|
|
2661
2660
|
error: d,
|
|
2662
|
-
disabled: f ||
|
|
2663
|
-
loading:
|
|
2661
|
+
disabled: f || _,
|
|
2662
|
+
loading: _,
|
|
2664
2663
|
helper: g,
|
|
2665
|
-
suffix:
|
|
2666
|
-
id:
|
|
2664
|
+
suffix: Z,
|
|
2665
|
+
id: m,
|
|
2667
2666
|
showLabel: $,
|
|
2668
2667
|
onFocus: C,
|
|
2669
|
-
onBlur:
|
|
2668
|
+
onBlur: E,
|
|
2670
2669
|
onChange: r,
|
|
2671
2670
|
value: t || "",
|
|
2672
2671
|
placeholder: a,
|
|
2673
|
-
className:
|
|
2672
|
+
className: b,
|
|
2674
2673
|
"data-floating-label": $,
|
|
2675
|
-
wrapperStyles:
|
|
2676
|
-
floatingLabelStyles:
|
|
2677
|
-
suffixStyles:
|
|
2678
|
-
textareaStyles:
|
|
2679
|
-
wrapperProps:
|
|
2680
|
-
labelProps:
|
|
2681
|
-
helperProps:
|
|
2682
|
-
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),
|
|
2683
2682
|
maxLength: s,
|
|
2684
2683
|
inputProps: ae,
|
|
2685
2684
|
resize: z,
|
|
2686
|
-
showGrip:
|
|
2685
|
+
showGrip: N,
|
|
2687
2686
|
...x
|
|
2688
2687
|
}
|
|
2689
2688
|
);
|
|
2690
2689
|
}
|
|
2691
|
-
),
|
|
2692
|
-
helper:
|
|
2690
|
+
), Mn = "_helper_1vhgl_16", Xe = {
|
|
2691
|
+
helper: Mn,
|
|
2693
2692
|
"helper--error": "_helper--error_1vhgl_27",
|
|
2694
2693
|
"helper--disabled": "_helper--disabled_1vhgl_32"
|
|
2695
|
-
},
|
|
2694
|
+
}, zn = ({
|
|
2696
2695
|
title: t,
|
|
2697
2696
|
error: r,
|
|
2698
2697
|
className: a = "",
|
|
@@ -2700,14 +2699,14 @@ const Et = Object.assign(pn, {
|
|
|
2700
2699
|
disabled: i = !1,
|
|
2701
2700
|
"data-testid": n,
|
|
2702
2701
|
"aria-label": c,
|
|
2703
|
-
"aria-describedby":
|
|
2702
|
+
"aria-describedby": p
|
|
2704
2703
|
}) => {
|
|
2705
|
-
const d = !!r, f =
|
|
2704
|
+
const d = !!r, f = G(
|
|
2706
2705
|
Xe.helper,
|
|
2707
2706
|
d && Xe["helper--error"],
|
|
2708
2707
|
i && Xe["helper--disabled"],
|
|
2709
2708
|
a
|
|
2710
|
-
),
|
|
2709
|
+
), _ = i ? t : r || t;
|
|
2711
2710
|
return /* @__PURE__ */ o.jsx(
|
|
2712
2711
|
"div",
|
|
2713
2712
|
{
|
|
@@ -2715,26 +2714,26 @@ const Et = Object.assign(pn, {
|
|
|
2715
2714
|
style: s,
|
|
2716
2715
|
"data-testid": n,
|
|
2717
2716
|
"aria-label": c,
|
|
2718
|
-
"aria-describedby":
|
|
2719
|
-
children: /* @__PURE__ */ o.jsx("p", { children:
|
|
2717
|
+
"aria-describedby": p,
|
|
2718
|
+
children: /* @__PURE__ */ o.jsx("p", { children: _ })
|
|
2720
2719
|
}
|
|
2721
2720
|
);
|
|
2722
2721
|
};
|
|
2723
2722
|
export {
|
|
2724
|
-
|
|
2725
|
-
|
|
2726
|
-
|
|
2727
|
-
|
|
2728
|
-
|
|
2729
|
-
|
|
2730
|
-
|
|
2731
|
-
|
|
2732
|
-
|
|
2733
|
-
|
|
2734
|
-
|
|
2735
|
-
|
|
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,
|
|
2736
2735
|
Gr as enUS,
|
|
2737
|
-
|
|
2736
|
+
Dn as ruRU,
|
|
2738
2737
|
Zr as useConfig,
|
|
2739
|
-
|
|
2738
|
+
An as useLocale
|
|
2740
2739
|
};
|