skillgrid 0.0.24-dev-38682-image.1169156 → 0.0.24-dev-38682-image.1170743
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +7 -7
- package/dist/index.css +1 -1
- package/dist/index.es.js +507 -499
- package/package.json +1 -1
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 Oe, useEffect as we, useRef as Ve, 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 U } 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
|
|
7
|
+
var Fe = { exports: {} }, Re = {};
|
|
8
8
|
/**
|
|
9
9
|
* @license React
|
|
10
10
|
* react-jsx-runtime.production.min.js
|
|
@@ -14,17 +14,17 @@ 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
|
|
17
|
+
var ft;
|
|
18
|
+
function la() {
|
|
19
|
+
if (ft) return Re;
|
|
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, b = null;
|
|
24
24
|
f !== void 0 && (h = "" + f), d.key !== void 0 && (h = "" + d.key), d.ref !== void 0 && (b = d.ref);
|
|
25
|
-
for (
|
|
26
|
-
if (
|
|
27
|
-
return { $$typeof: r, type:
|
|
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: b, props: g, _owner: i.current };
|
|
28
28
|
}
|
|
29
29
|
return Re.Fragment = a, Re.jsx = c, Re.jsxs = c, Re;
|
|
30
30
|
}
|
|
@@ -38,10 +38,10 @@ 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"), b = Symbol.for("react.offscreen"), y = Symbol.iterator, w = "@@iterator";
|
|
45
45
|
function C(e) {
|
|
46
46
|
if (e === null || typeof e != "object")
|
|
47
47
|
return null;
|
|
@@ -66,10 +66,10 @@ function da() {
|
|
|
66
66
|
A.unshift("Warning: " + l), Function.prototype.apply.call(console[e], console, A);
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
|
-
var D = !1, k = !1, T = !1, I = !1,
|
|
69
|
+
var D = !1, k = !1, T = !1, I = !1, B = !1, N;
|
|
70
70
|
N = Symbol.for("react.module.reference");
|
|
71
|
-
function
|
|
72
|
-
return !!(typeof e == "string" || typeof e == "function" || e === s || e === n ||
|
|
71
|
+
function W(e) {
|
|
72
|
+
return !!(typeof e == "string" || typeof e == "function" || e === s || e === n || B || e === i || e === f || e === _ || I || e === b || D || k || T || 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.
|
|
@@ -82,7 +82,7 @@ function da() {
|
|
|
82
82
|
var j = l.displayName || l.name || "";
|
|
83
83
|
return j !== "" ? u + "(" + j + ")" : u;
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function V(e) {
|
|
86
86
|
return e.displayName || "Context";
|
|
87
87
|
}
|
|
88
88
|
function O(e) {
|
|
@@ -103,17 +103,17 @@ 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
|
-
return
|
|
113
|
+
return V(l) + ".Consumer";
|
|
114
114
|
case c:
|
|
115
115
|
var u = e;
|
|
116
|
-
return
|
|
116
|
+
return V(u._context) + ".Provider";
|
|
117
117
|
case d:
|
|
118
118
|
return x(e, e.render, "ForwardRef");
|
|
119
119
|
case g:
|
|
@@ -130,14 +130,14 @@ function da() {
|
|
|
130
130
|
}
|
|
131
131
|
return null;
|
|
132
132
|
}
|
|
133
|
-
var $ = Object.assign,
|
|
133
|
+
var $ = Object.assign, F = 0, H, G, Z, te, ae, re, be;
|
|
134
134
|
function se() {
|
|
135
135
|
}
|
|
136
136
|
se.__reactDisabledLog = !0;
|
|
137
137
|
function ye() {
|
|
138
138
|
{
|
|
139
|
-
if (
|
|
140
|
-
|
|
139
|
+
if (F === 0) {
|
|
140
|
+
H = console.log, G = console.info, Z = 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
|
+
F++;
|
|
158
158
|
}
|
|
159
159
|
}
|
|
160
160
|
function Se() {
|
|
161
161
|
{
|
|
162
|
-
if (
|
|
162
|
+
if (F--, F === 0) {
|
|
163
163
|
var e = {
|
|
164
164
|
configurable: !0,
|
|
165
165
|
enumerable: !0,
|
|
@@ -167,7 +167,7 @@ function da() {
|
|
|
167
167
|
};
|
|
168
168
|
Object.defineProperties(console, {
|
|
169
169
|
log: $({}, e, {
|
|
170
|
-
value:
|
|
170
|
+
value: H
|
|
171
171
|
}),
|
|
172
172
|
info: $({}, e, {
|
|
173
173
|
value: G
|
|
@@ -189,7 +189,7 @@ function da() {
|
|
|
189
189
|
})
|
|
190
190
|
});
|
|
191
191
|
}
|
|
192
|
-
|
|
192
|
+
F < 0 && m("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
193
193
|
}
|
|
194
194
|
}
|
|
195
195
|
var Ee = S.ReactCurrentDispatcher, ue;
|
|
@@ -206,13 +206,13 @@ function da() {
|
|
|
206
206
|
` + ue + e;
|
|
207
207
|
}
|
|
208
208
|
}
|
|
209
|
-
var
|
|
209
|
+
var _e = !1, le;
|
|
210
210
|
{
|
|
211
211
|
var me = typeof WeakMap == "function" ? WeakMap : Map;
|
|
212
212
|
le = new me();
|
|
213
213
|
}
|
|
214
214
|
function K(e, l) {
|
|
215
|
-
if (!e ||
|
|
215
|
+
if (!e || _e)
|
|
216
216
|
return "";
|
|
217
217
|
{
|
|
218
218
|
var u = le.get(e);
|
|
@@ -220,7 +220,7 @@ function da() {
|
|
|
220
220
|
return u;
|
|
221
221
|
}
|
|
222
222
|
var v;
|
|
223
|
-
|
|
223
|
+
_e = !0;
|
|
224
224
|
var j = Error.prepareStackTrace;
|
|
225
225
|
Error.prepareStackTrace = void 0;
|
|
226
226
|
var A;
|
|
@@ -261,23 +261,23 @@ function da() {
|
|
|
261
261
|
if (X && v && typeof X.stack == "string") {
|
|
262
262
|
for (var E = X.stack.split(`
|
|
263
263
|
`), Y = v.stack.split(`
|
|
264
|
-
`),
|
|
265
|
-
|
|
266
|
-
for (;
|
|
267
|
-
if (E[
|
|
268
|
-
if (
|
|
264
|
+
`), P = E.length - 1, q = Y.length - 1; P >= 1 && q >= 0 && E[P] !== Y[q]; )
|
|
265
|
+
q--;
|
|
266
|
+
for (; P >= 1 && q >= 0; P--, q--)
|
|
267
|
+
if (E[P] !== Y[q]) {
|
|
268
|
+
if (P !== 1 || q !== 1)
|
|
269
269
|
do
|
|
270
|
-
if (
|
|
270
|
+
if (P--, q--, q < 0 || E[P] !== Y[q]) {
|
|
271
271
|
var ne = `
|
|
272
|
-
` + E[
|
|
272
|
+
` + E[P].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 (P >= 1 && q >= 0);
|
|
276
276
|
break;
|
|
277
277
|
}
|
|
278
278
|
}
|
|
279
279
|
} finally {
|
|
280
|
-
|
|
280
|
+
_e = !1, Ee.current = A, Se(), Error.prepareStackTrace = j;
|
|
281
281
|
}
|
|
282
282
|
var Me = e ? e.displayName || e.name : "", ve = Me ? ie(Me) : "";
|
|
283
283
|
return typeof e == "function" && le.set(e, ve), ve;
|
|
@@ -289,7 +289,7 @@ function da() {
|
|
|
289
289
|
var l = e.prototype;
|
|
290
290
|
return !!(l && l.isReactComponent);
|
|
291
291
|
}
|
|
292
|
-
function
|
|
292
|
+
function Ue(e, l, u) {
|
|
293
293
|
if (e == null)
|
|
294
294
|
return "";
|
|
295
295
|
if (typeof e == "function")
|
|
@@ -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")
|
|
@@ -307,11 +307,11 @@ function da() {
|
|
|
307
307
|
case d:
|
|
308
308
|
return ee(e.render);
|
|
309
309
|
case g:
|
|
310
|
-
return
|
|
310
|
+
return Ue(e.type, l, u);
|
|
311
311
|
case h: {
|
|
312
312
|
var v = e, j = v._payload, A = v._init;
|
|
313
313
|
try {
|
|
314
|
-
return
|
|
314
|
+
return Ue(A(j), l, u);
|
|
315
315
|
} catch {
|
|
316
316
|
}
|
|
317
317
|
}
|
|
@@ -319,14 +319,14 @@ function da() {
|
|
|
319
319
|
return "";
|
|
320
320
|
}
|
|
321
321
|
var Ie = Object.prototype.hasOwnProperty, et = {}, tt = S.ReactDebugCurrentFrame;
|
|
322
|
-
function
|
|
322
|
+
function Be(e) {
|
|
323
323
|
if (e) {
|
|
324
|
-
var l = e._owner, u =
|
|
324
|
+
var l = e._owner, u = Ue(e.type, e._source, l ? l.type : null);
|
|
325
325
|
tt.setExtraStackFrame(u);
|
|
326
326
|
} else
|
|
327
327
|
tt.setExtraStackFrame(null);
|
|
328
328
|
}
|
|
329
|
-
function
|
|
329
|
+
function Nt(e, l, u, v, j) {
|
|
330
330
|
{
|
|
331
331
|
var A = Function.call.bind(Ie);
|
|
332
332
|
for (var L in e)
|
|
@@ -338,24 +338,24 @@ function da() {
|
|
|
338
338
|
throw Y.name = "Invariant Violation", Y;
|
|
339
339
|
}
|
|
340
340
|
E = e[L](l, L, v, u, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
341
|
-
} catch (
|
|
342
|
-
E =
|
|
341
|
+
} catch (P) {
|
|
342
|
+
E = P;
|
|
343
343
|
}
|
|
344
|
-
E && !(E instanceof Error) && (
|
|
344
|
+
E && !(E instanceof Error) && (Be(j), m("%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 E), Be(null)), E instanceof Error && !(E.message in et) && (et[E.message] = !0, Be(j), m("Failed %s type: %s", u, E.message), Be(null));
|
|
345
345
|
}
|
|
346
346
|
}
|
|
347
347
|
}
|
|
348
|
-
var
|
|
349
|
-
function
|
|
350
|
-
return
|
|
348
|
+
var Dt = Array.isArray;
|
|
349
|
+
function He(e) {
|
|
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,16 +366,16 @@ function da() {
|
|
|
366
366
|
return "" + e;
|
|
367
367
|
}
|
|
368
368
|
function rt(e) {
|
|
369
|
-
if (
|
|
370
|
-
return m("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",
|
|
369
|
+
if (Ut(e))
|
|
370
|
+
return m("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 = S.ReactCurrentOwner,
|
|
372
|
+
var st = S.ReactCurrentOwner, Bt = {
|
|
373
373
|
key: !0,
|
|
374
374
|
ref: !0,
|
|
375
375
|
__self: !0,
|
|
376
376
|
__source: !0
|
|
377
377
|
}, nt, ot;
|
|
378
|
-
function
|
|
378
|
+
function Ft(e) {
|
|
379
379
|
if (Ie.call(e, "ref")) {
|
|
380
380
|
var l = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
381
381
|
if (l && l.isReactWarning)
|
|
@@ -383,7 +383,7 @@ function da() {
|
|
|
383
383
|
}
|
|
384
384
|
return e.ref !== void 0;
|
|
385
385
|
}
|
|
386
|
-
function
|
|
386
|
+
function Pt(e) {
|
|
387
387
|
if (Ie.call(e, "key")) {
|
|
388
388
|
var l = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
389
389
|
if (l && l.isReactWarning)
|
|
@@ -391,10 +391,10 @@ function da() {
|
|
|
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
400
|
nt || (nt = !0, m("%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));
|
|
@@ -405,7 +405,7 @@ function da() {
|
|
|
405
405
|
});
|
|
406
406
|
}
|
|
407
407
|
}
|
|
408
|
-
function
|
|
408
|
+
function Vt(e, l) {
|
|
409
409
|
{
|
|
410
410
|
var u = function() {
|
|
411
411
|
ot || (ot = !0, m("%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));
|
|
@@ -416,7 +416,7 @@ function da() {
|
|
|
416
416
|
});
|
|
417
417
|
}
|
|
418
418
|
}
|
|
419
|
-
var
|
|
419
|
+
var Ht = function(e, l, u, v, j, A, L) {
|
|
420
420
|
var E = {
|
|
421
421
|
// This tag allows us to uniquely identify this as a React Element
|
|
422
422
|
$$typeof: r,
|
|
@@ -445,41 +445,41 @@ function da() {
|
|
|
445
445
|
value: j
|
|
446
446
|
}), Object.freeze && (Object.freeze(E.props), Object.freeze(E)), E;
|
|
447
447
|
};
|
|
448
|
-
function
|
|
448
|
+
function qt(e, l, u, v, j) {
|
|
449
449
|
{
|
|
450
450
|
var A, L = {}, E = null, Y = null;
|
|
451
|
-
u !== void 0 && (rt(u), E = "" + u),
|
|
451
|
+
u !== void 0 && (rt(u), E = "" + u), Pt(l) && (rt(l.key), E = "" + l.key), Ft(l) && (Y = l.ref, zt(l, j));
|
|
452
452
|
for (A in l)
|
|
453
|
-
Ie.call(l, A) && !
|
|
453
|
+
Ie.call(l, A) && !Bt.hasOwnProperty(A) && (L[A] = l[A]);
|
|
454
454
|
if (e && e.defaultProps) {
|
|
455
|
-
var
|
|
456
|
-
for (A in
|
|
457
|
-
L[A] === void 0 && (L[A] =
|
|
455
|
+
var P = e.defaultProps;
|
|
456
|
+
for (A in P)
|
|
457
|
+
L[A] === void 0 && (L[A] = P[A]);
|
|
458
458
|
}
|
|
459
459
|
if (E || Y) {
|
|
460
|
-
var
|
|
461
|
-
E &&
|
|
460
|
+
var q = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
461
|
+
E && Wt(L, q), Y && Vt(L, q);
|
|
462
462
|
}
|
|
463
|
-
return
|
|
463
|
+
return Ht(e, E, Y, j, v, st.current, L);
|
|
464
464
|
}
|
|
465
465
|
}
|
|
466
|
-
var
|
|
466
|
+
var qe = S.ReactCurrentOwner, it = S.ReactDebugCurrentFrame;
|
|
467
467
|
function Le(e) {
|
|
468
468
|
if (e) {
|
|
469
|
-
var l = e._owner, u =
|
|
469
|
+
var l = e._owner, u = Ue(e.type, e._source, l ? l.type : null);
|
|
470
470
|
it.setExtraStackFrame(u);
|
|
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() {
|
|
480
480
|
{
|
|
481
|
-
if (
|
|
482
|
-
var e = O(
|
|
481
|
+
if (qe.current) {
|
|
482
|
+
var e = O(qe.current.type);
|
|
483
483
|
if (e)
|
|
484
484
|
return `
|
|
485
485
|
|
|
@@ -488,11 +488,11 @@ Check the render method of \`` + e + "`.";
|
|
|
488
488
|
return "";
|
|
489
489
|
}
|
|
490
490
|
}
|
|
491
|
-
function
|
|
491
|
+
function Gt(e) {
|
|
492
492
|
return "";
|
|
493
493
|
}
|
|
494
494
|
var ct = {};
|
|
495
|
-
function
|
|
495
|
+
function Zt(e) {
|
|
496
496
|
{
|
|
497
497
|
var l = lt();
|
|
498
498
|
if (!l) {
|
|
@@ -509,34 +509,34 @@ 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 = Zt(l);
|
|
513
513
|
if (ct[u])
|
|
514
514
|
return;
|
|
515
515
|
ct[u] = !0;
|
|
516
516
|
var v = "";
|
|
517
|
-
e && e._owner && e._owner !==
|
|
517
|
+
e && e._owner && e._owner !== qe.current && (v = " It was passed a child from " + O(e._owner.type) + "."), Le(e), m('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', u, v), Le(null);
|
|
518
518
|
}
|
|
519
519
|
}
|
|
520
520
|
function ut(e, l) {
|
|
521
521
|
{
|
|
522
522
|
if (typeof e != "object")
|
|
523
523
|
return;
|
|
524
|
-
if (
|
|
524
|
+
if (He(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
534
|
for (var A = j.call(e), L; !(L = A.next()).done; )
|
|
535
|
-
|
|
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,16 +552,16 @@ 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
|
m("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", j || "Unknown");
|
|
560
560
|
}
|
|
561
561
|
typeof l.getDefaultProps == "function" && !l.getDefaultProps.isReactClassApproved && m("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];
|
|
@@ -573,26 +573,26 @@ Check the top-level render call using <` + u + ">.");
|
|
|
573
573
|
e.ref !== null && (Le(e), m("Invalid attribute `ref` supplied to `React.Fragment`."), Le(null));
|
|
574
574
|
}
|
|
575
575
|
}
|
|
576
|
-
var
|
|
577
|
-
function
|
|
576
|
+
var _t = {};
|
|
577
|
+
function pt(e, l, u, v, j, A) {
|
|
578
578
|
{
|
|
579
|
-
var L =
|
|
579
|
+
var L = W(e);
|
|
580
580
|
if (!L) {
|
|
581
581
|
var E = "";
|
|
582
582
|
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (E += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
583
|
-
var Y =
|
|
583
|
+
var Y = Gt();
|
|
584
584
|
Y ? E += Y : E += lt();
|
|
585
|
-
var
|
|
586
|
-
e === null ?
|
|
585
|
+
var P;
|
|
586
|
+
e === null ? P = "null" : He(e) ? P = "array" : e !== void 0 && e.$$typeof === r ? (P = "<" + (O(e.type) || "Unknown") + " />", E = " Did you accidentally export a JSX literal instead of a component?") : P = typeof e, m("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", P, E);
|
|
587
587
|
}
|
|
588
|
-
var
|
|
589
|
-
if (
|
|
590
|
-
return
|
|
588
|
+
var q = qt(e, l, u, j, A);
|
|
589
|
+
if (q == null)
|
|
590
|
+
return q;
|
|
591
591
|
if (L) {
|
|
592
592
|
var ne = l.children;
|
|
593
593
|
if (ne !== void 0)
|
|
594
594
|
if (v)
|
|
595
|
-
if (
|
|
595
|
+
if (He(ne)) {
|
|
596
596
|
for (var Me = 0; Me < ne.length; Me++)
|
|
597
597
|
ut(ne[Me], e);
|
|
598
598
|
Object.freeze && Object.freeze(ne);
|
|
@@ -602,73 +602,73 @@ Check the top-level render call using <` + u + ">.");
|
|
|
602
602
|
ut(ne, e);
|
|
603
603
|
}
|
|
604
604
|
if (Ie.call(l, "key")) {
|
|
605
|
-
var ve = O(e), X = Object.keys(l).filter(function(
|
|
606
|
-
return
|
|
607
|
-
}),
|
|
608
|
-
if (!
|
|
609
|
-
var
|
|
605
|
+
var ve = O(e), X = Object.keys(l).filter(function(aa) {
|
|
606
|
+
return aa !== "key";
|
|
607
|
+
}), Ye = X.length > 0 ? "{key: someKey, " + X.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
608
|
+
if (!_t[ve + Ye]) {
|
|
609
|
+
var ta = X.length > 0 ? "{" + X.join(": ..., ") + ": ...}" : "{}";
|
|
610
610
|
m(`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} />`, Ye, ve, ta, ve), _t[ve + Ye] = !0;
|
|
616
616
|
}
|
|
617
617
|
}
|
|
618
|
-
return e === s ?
|
|
618
|
+
return e === s ? Jt(q) : Yt(q), q;
|
|
619
619
|
}
|
|
620
620
|
}
|
|
621
|
-
function
|
|
622
|
-
return
|
|
621
|
+
function Kt(e, l, u) {
|
|
622
|
+
return pt(e, l, u, !0);
|
|
623
623
|
}
|
|
624
|
-
function
|
|
625
|
-
return
|
|
624
|
+
function Xt(e, l, u) {
|
|
625
|
+
return pt(e, l, u, !1);
|
|
626
626
|
}
|
|
627
|
-
var
|
|
628
|
-
ke.Fragment = s, ke.jsx =
|
|
627
|
+
var Qt = Xt, ea = Kt;
|
|
628
|
+
ke.Fragment = s, ke.jsx = Qt, ke.jsxs = ea;
|
|
629
629
|
}()), ke;
|
|
630
630
|
}
|
|
631
|
-
var
|
|
632
|
-
function
|
|
633
|
-
return
|
|
631
|
+
var ht;
|
|
632
|
+
function da() {
|
|
633
|
+
return ht || (ht = 1, process.env.NODE_ENV === "production" ? Fe.exports = la() : Fe.exports = ca()), Fe.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:
|
|
670
|
-
xs:
|
|
671
|
-
},
|
|
635
|
+
var o = da();
|
|
636
|
+
const ua = (t) => t.as === "a", _a = (t) => t.as === void 0 || t.as === "button", pa = "_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", qa = "_xs_1abee_869", z = {
|
|
637
|
+
button: pa,
|
|
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
|
+
xs: qa
|
|
671
|
+
}, bt = ({
|
|
672
672
|
isLoading: t,
|
|
673
673
|
showBadge: r,
|
|
674
674
|
badgeValue: a,
|
|
@@ -676,36 +676,36 @@ 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: z.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: U(
|
|
692
|
+
z.badge,
|
|
693
|
+
z[`badge${_ ? "ExtraSmall" : s === "medium" ? "Medium" : "Small"}`],
|
|
694
|
+
{ [z.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: z.label, children: n }),
|
|
701
|
+
/* @__PURE__ */ o.jsx("span", { "data-testid": "button-subcaption", className: z.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: z.label, children: n }),
|
|
704
|
+
/* @__PURE__ */ o.jsxs("div", { "data-testid": "button-right-group", className: z.rightGroup, children: [
|
|
705
|
+
i && /* @__PURE__ */ o.jsx("span", { "data-testid": "button-icon", className: z.icon, children: i }),
|
|
706
|
+
c && /* @__PURE__ */ o.jsx("span", { "data-testid": "button-postfix", className: z.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: z.icon, children: i })
|
|
709
709
|
] });
|
|
710
710
|
}, Rn = Q((t, r) => {
|
|
711
711
|
const {
|
|
@@ -714,10 +714,10 @@ const pa = (t) => t.as === "a", _a = (t) => t.as === void 0 || t.as === "button"
|
|
|
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
723
|
spaceBetween: b = !1,
|
|
@@ -725,43 +725,43 @@ const pa = (t) => t.as === "a", _a = (t) => t.as === void 0 || t.as === "button"
|
|
|
725
725
|
postfix: w,
|
|
726
726
|
className: C,
|
|
727
727
|
children: S
|
|
728
|
-
} = t, m = c, R = n, D = !m && !R, k = !!y && !S, T =
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
728
|
+
} = t, m = c, R = n, D = !m && !R, k = !!y && !S, T = U(
|
|
729
|
+
z.button,
|
|
730
|
+
z[s],
|
|
731
|
+
z[a],
|
|
732
|
+
z[i],
|
|
733
733
|
{
|
|
734
|
-
[
|
|
735
|
-
[
|
|
736
|
-
[
|
|
737
|
-
[
|
|
738
|
-
[
|
|
739
|
-
[
|
|
734
|
+
[z.disabled]: m,
|
|
735
|
+
[z.loading]: R,
|
|
736
|
+
[z.stretched]: h,
|
|
737
|
+
[z.spaceBetween]: b && h,
|
|
738
|
+
[z.withSubcaption]: _ && g && s !== "s" && s !== "xs",
|
|
739
|
+
[z.iconOnly]: k
|
|
740
740
|
},
|
|
741
741
|
C
|
|
742
742
|
), I = {
|
|
743
743
|
isLoading: R,
|
|
744
|
-
showBadge:
|
|
744
|
+
showBadge: p,
|
|
745
745
|
badgeValue: f,
|
|
746
746
|
badgeSize: d,
|
|
747
747
|
icon: y,
|
|
748
748
|
children: S,
|
|
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:
|
|
756
|
+
href: B,
|
|
757
757
|
onClick: N,
|
|
758
|
-
mode:
|
|
758
|
+
mode: W,
|
|
759
759
|
size: x,
|
|
760
|
-
buttonStyle:
|
|
760
|
+
buttonStyle: V,
|
|
761
761
|
loading: O,
|
|
762
762
|
disabled: $,
|
|
763
|
-
showBadge:
|
|
764
|
-
badgeSize:
|
|
763
|
+
showBadge: F,
|
|
764
|
+
badgeSize: H,
|
|
765
765
|
badgeValue: G,
|
|
766
766
|
showSubcaption: Z,
|
|
767
767
|
subcaption: te,
|
|
@@ -774,7 +774,7 @@ const pa = (t) => t.as === "a", _a = (t) => t.as === void 0 || t.as === "button"
|
|
|
774
774
|
children: Ee,
|
|
775
775
|
"data-testid": ue,
|
|
776
776
|
style: ie,
|
|
777
|
-
...
|
|
777
|
+
..._e
|
|
778
778
|
} = t, le = (me) => {
|
|
779
779
|
D && N && N(me);
|
|
780
780
|
};
|
|
@@ -783,28 +783,28 @@ const pa = (t) => t.as === "a", _a = (t) => t.as === void 0 || t.as === "button"
|
|
|
783
783
|
{
|
|
784
784
|
ref: r,
|
|
785
785
|
className: T,
|
|
786
|
-
href: D ?
|
|
786
|
+
href: D ? B : void 0,
|
|
787
787
|
tabIndex: t.tabIndex,
|
|
788
788
|
onClick: le,
|
|
789
789
|
"data-testid": ue,
|
|
790
790
|
"aria-disabled": m || R,
|
|
791
791
|
style: ie,
|
|
792
|
-
...
|
|
793
|
-
children: /* @__PURE__ */ o.jsx(
|
|
792
|
+
..._e,
|
|
793
|
+
children: /* @__PURE__ */ o.jsx(bt, { ...I })
|
|
794
794
|
}
|
|
795
795
|
);
|
|
796
796
|
}
|
|
797
797
|
if (_a(t)) {
|
|
798
798
|
const {
|
|
799
|
-
type:
|
|
799
|
+
type: B = "button",
|
|
800
800
|
onClick: N,
|
|
801
|
-
mode:
|
|
801
|
+
mode: W,
|
|
802
802
|
size: x,
|
|
803
|
-
buttonStyle:
|
|
803
|
+
buttonStyle: V,
|
|
804
804
|
loading: O,
|
|
805
805
|
disabled: $,
|
|
806
|
-
showBadge:
|
|
807
|
-
badgeSize:
|
|
806
|
+
showBadge: F,
|
|
807
|
+
badgeSize: H,
|
|
808
808
|
badgeValue: G,
|
|
809
809
|
showSubcaption: Z,
|
|
810
810
|
subcaption: te,
|
|
@@ -817,7 +817,7 @@ const pa = (t) => t.as === "a", _a = (t) => t.as === void 0 || t.as === "button"
|
|
|
817
817
|
children: Ee,
|
|
818
818
|
"data-testid": ue,
|
|
819
819
|
style: ie,
|
|
820
|
-
...
|
|
820
|
+
..._e
|
|
821
821
|
} = t, le = (me) => {
|
|
822
822
|
D && N && N(me);
|
|
823
823
|
};
|
|
@@ -825,7 +825,7 @@ const pa = (t) => t.as === "a", _a = (t) => t.as === void 0 || t.as === "button"
|
|
|
825
825
|
"button",
|
|
826
826
|
{
|
|
827
827
|
ref: r,
|
|
828
|
-
type:
|
|
828
|
+
type: B,
|
|
829
829
|
className: T,
|
|
830
830
|
disabled: m,
|
|
831
831
|
tabIndex: t.tabIndex,
|
|
@@ -833,28 +833,28 @@ const pa = (t) => t.as === "a", _a = (t) => t.as === void 0 || t.as === "button"
|
|
|
833
833
|
"data-testid": ue,
|
|
834
834
|
"aria-disabled": m || R,
|
|
835
835
|
style: ie,
|
|
836
|
-
...
|
|
837
|
-
children: /* @__PURE__ */ o.jsx(
|
|
836
|
+
..._e,
|
|
837
|
+
children: /* @__PURE__ */ o.jsx(bt, { ...I })
|
|
838
838
|
}
|
|
839
839
|
);
|
|
840
840
|
}
|
|
841
841
|
return null;
|
|
842
842
|
});
|
|
843
|
-
var
|
|
843
|
+
var Je = { exports: {} };
|
|
844
844
|
/*!
|
|
845
845
|
Copyright (c) 2018 Jed Watson.
|
|
846
846
|
Licensed under the MIT License (MIT), see
|
|
847
847
|
http://jedwatson.github.io/classnames
|
|
848
848
|
*/
|
|
849
|
-
var
|
|
850
|
-
function
|
|
851
|
-
return
|
|
849
|
+
var yt;
|
|
850
|
+
function Ga() {
|
|
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) {
|
|
@@ -877,17 +877,17 @@ function Za() {
|
|
|
877
877
|
}
|
|
878
878
|
t.exports ? (a.default = a, t.exports = a) : window.classNames = a;
|
|
879
879
|
})();
|
|
880
|
-
}(
|
|
880
|
+
}(Je)), Je.exports;
|
|
881
881
|
}
|
|
882
|
-
var
|
|
883
|
-
const
|
|
884
|
-
avatar:
|
|
885
|
-
clickable:
|
|
886
|
-
icon:
|
|
887
|
-
disabled:
|
|
888
|
-
loading:
|
|
889
|
-
image:
|
|
890
|
-
name:
|
|
882
|
+
var Za = Ga();
|
|
883
|
+
const Ne = /* @__PURE__ */ ia(Za), 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",
|
|
@@ -901,7 +901,7 @@ const Ae = /* @__PURE__ */ la(Ya), Ja = "_avatar_1kyiq_17", Ka = "_clickable_1ky
|
|
|
901
901
|
"color-contrast": "_color-contrast_1kyiq_167",
|
|
902
902
|
"variant-light": "_variant-light_1kyiq_173",
|
|
903
903
|
"variant-outline": "_variant-outline_1kyiq_245"
|
|
904
|
-
},
|
|
904
|
+
}, De = {
|
|
905
905
|
"typography-title-1-semibold": "_typography-title-1-semibold_1lyxn_1",
|
|
906
906
|
"typography-title-2-semibold": "_typography-title-2-semibold_1lyxn_10",
|
|
907
907
|
"typography-title-3-semibold": "_typography-title-3-semibold_1lyxn_19",
|
|
@@ -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,25 +983,25 @@ 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:
|
|
989
|
+
const cr = "data:image/svg+xml,%3csvg%20opacity='0.9'%20preserveAspectRatio='xMinYMin%20meet'%20viewBox='0%200%20208%20208'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cdefs%3e%3cfilter%20id='shadowW'%20filterUnits='userSpaceOnUse'%3e%3cfeDropShadow%20dx='-2'%20dy='-1'%20stdDeviation='5'%20flood-color='rgba(0,0,0,0.5)'/%3e%3c/filter%3e%3c/defs%3e%3cg%20filter='url(%23shadowW)'%3e%3cpath%20d='M23.9835%20174.59L113.41%20157.735L225.224%20191.671C225.224%20191.671%20250.259%20479.463%20243.525%20478.31C236.655%20477.167%20-7.79434%20482.039%20-8.17876%20476.943C-8.56308%20471.849%20-34.4445%20341.701%20-34.4445%20341.701L23.9835%20174.59Z'%20fill='darkgrey'/%3e%3cpath%20d='M-54.5558%20212.781C-85.688%20282.842%20-94.2122%20303.839%20-94.2122%20303.839L-213.504%20213.002C-214.953%20197.465%20-218.637%20181.68%20-225.636%20167.806C-234.412%20150.606%20-246.154%20149.138%20-259.595%20136.166C-267.368%20128.583%20-275.073%20140.242%20-267.3%20147.825L-259.338%20156.087C-258.869%20160.482%20-255.518%20171.861%20-254.634%20176.226C-267.475%20165.702%20-284.704%20150.246%20-300.665%20144.25C-305.079%20142.644%20-308.958%20144.46%20-311.08%20147.528C-314.628%20148.211%20-317.292%20151.458%20-317.858%20154.963C-321.103%20157.839%20-322.625%20163.354%20-319.254%20167.67C-321.407%20170.323%20-322.376%20173.998%20-320.433%20177.728C-320.274%20177.993%20-320.127%20178.12%20-320.106%20178.395C-320.997%20179.432%20-319.498%20182.78%20-320.337%20184.506C-324.035%20192.401%20-309.357%20221.757%20-285.221%20235.167C-277.291%20250.355%20-262.477%20259.485%20-261.354%20259.677C-234.512%20290.608%20-141.301%20400.999%20-97.2451%20436.169C-47.2868%20476.158%20-12.9855%20418.735%2010.6424%20317.115C34.2598%20215.358%2037.6457%20181.315%2037.6457%20181.315L116.374%20158.482C14.4423%20160.079%20-23.2964%20142.572%20-54.5558%20212.781Z'%20fill='darkgrey'/%3e%3cpath%20d='M116.781%20158.313L114.885%20158.871L61.4974%20174.391L38.0516%20181.145C38.0516%20181.145%2034.6758%20215.325%2011.0481%20316.945C9.47097%20323.572%207.88344%20330.061%206.27525%20336.275C-22.5942%20315.191%20-52.217%20295.131%20-82.0946%20275.368C-75.9632%20261.197%20-67.1116%20240.867%20-54.4359%20212.493C-30.4015%20158.477%20-2.57835%20156.516%2055.793%20157.512C72.5674%20157.77%2091.7239%20158.403%20114.133%20158.096C114.98%20158.309%20115.807%20158.247%20116.781%20158.313Z'%20fill='darkgrey'/%3e%3cpath%20d='M113.269%20157.745C175.26%20159.023%20252.771%20143.897%20266.382%20199.504C279.867%20255.26%20288.576%20280.774%20295.899%20320.932C303.221%20361.091%20322.043%20408.689%20271.897%20417.595C221.75%20426.502%20106.238%20444.495%20106.238%20444.495L78.8767%20384.662C78.8767%20384.662%20170.648%20343.813%20200.242%20332.303L185.17%20211.448L113.269%20157.745Z'%20fill='darkgrey'/%3e%3cpath%20d='M292.122%20302.108C260.506%20305.187%20228.942%20308.953%20198.219%20316.533L185.178%20211.585L140.855%20178.374L114.874%20158.871L114.144%20158.372L113.266%20157.746C127.138%20158.084%20141.774%20157.534%20156.283%20157.131C206.726%20155.818%20255.78%20156.271%20266.252%20199.654C277.643%20246.012%20285.665%20271.578%20292.122%20302.108Z'%20fill='darkgrey'/%3e%3cpath%20d='M108.001%20172.269C119.623%20168.485%20130.939%20164.308%20142.395%20160.12L112.224%20101.608L68.8441%20124.959C69.7222%20125.585%2079.0944%20154.372%2086.547%20177.904C93.7406%20175.977%20100.965%20174.463%20108.001%20172.269Z'%20fill='white'/%3e%3cpath%20d='M99.3655%20112.96C99.0934%20111.18%2098.8213%20109.401%2098.2722%20107.642L68.9864%20125.083C69.5682%20125.455%2073.8492%20138.148%2078.7406%20153.426C89.4856%20141.676%2097.5757%20127.773%2099.3655%20112.96Z'%20fill='darkgrey'/%3e%3cpath%20d='M144.524%2069.1209C143.075%2053.5829%20118.601%2039.3668%2099.9856%2038.5556C91.9262%2038.1943%2089.5107%2031.8684%2086.0605%2037.5291C77.5782%2051.7392%2049.6837%2094.9694%2052.2654%20110.837C56.0862%20133.951%2084.5691%20137.063%20102.228%20127.008C120.022%20116.942%20146.6%2091.1195%20144.524%2069.1209Z'%20fill='white'/%3e%3cpath%20d='M145.753%2072.4915C147.93%2068.3116%20146.317%2063.4483%20142.804%2060.944C142.656%2060.8166%20142.656%2060.8166%20142.507%2060.6894C143.028%2052.8957%20136.915%2047.1257%20129.979%2046.9567C129.007%2045.0914%20127.379%2043.691%20125.24%2042.883C124.903%2042.0778%20124.575%2041.4101%20123.982%2040.9009C122.651%2039.7551%20121.095%2039.3187%20119.441%2039.4435C118.081%2036.0843%20115.925%2033.2005%20112.495%2031.7977C110.348%2030.8519%20108.027%2031.304%20106.311%2032.4027C102.006%2028.5734%2096.789%2025.5051%2091.8112%2025.6038C89.736%2025.6218%2085.678%2026.8973%2084.2724%2032.1268C82.1968%2032.1449%2080.3522%2033.3917%2079.5546%2035.6676C78.427%2039.0759%2080.339%2042.3935%2083.1109%2044.2613C84.719%2045.3863%2086.9841%2046.0462%2089.0391%2045.7526C95.9026%2052.2969%20114.028%2063.1149%20118.148%2062.6657C115.532%2070.202%20113.218%2087.2698%20122.007%2088.1299C124.21%2095.3028%20116.99%20107.894%20121.368%20112.688C129.639%20104.863%20137.246%2095.5655%20141.359%2085.8391C141.496%2085.8288%20141.772%2085.808%20142.047%2085.7872C148.14%2083.9429%20149.527%2076.6377%20145.753%2072.4915Z'%20fill='darkgrey'/%3e%3cpath%20d='M140.151%20104.76C141.594%2096.3432%20132.67%2086.3542%20121.049%2088.3387C116.251%2096.3166%20111.305%20104.167%20106.21%20111.89C109.317%20116.364%20118.141%20121.376%20125.535%20120.264C133.872%20118.804%20138.613%20113.738%20140.151%20104.76Z'%20fill='white'/%3e%3cpath%20d='M156.755%20156.883C153.217%20165.043%20147.805%20172.237%20141.188%20178.136C133.925%20184.639%20125.011%20189.465%20114.809%20191.896C95.2214%20196.558%2072.2825%20189.842%2061.6836%20174.164C58.5559%20169.414%2056.4778%20163.894%2056%20157.561C72.7744%20157.818%2091.9311%20158.451%20114.34%20158.144L113.462%20157.519C127.463%20157.709%20142.098%20157.159%20156.755%20156.883Z'%20fill='white'/%3e%3c/g%3e%3c/svg%3e", dr = "data:image/svg+xml,%3csvg%20viewBox='0%200%20208%20208'%20opacity='0.9'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20filter='url(%23shadow)'%3e%3cpath%20filter='url(%23shadow)'%20d='M127.173%2079.8894C127.189%2079.1933%20128.026%2079.1201%20128.436%2079.4316C128.754%2079.6091%20128.895%2080.1021%20128.809%2080.5518C129.241%2083.1982%20129.581%2085.7106%20130.013%2088.357C136.835%2079.7558%20149.235%2076.9989%20158.979%2083.174C168.086%2088.9941%20171.001%20111.745%20135.501%20120.502C131.5%20123.502%20117%20125.002%20111.753%20103.279C111.682%2093.2427%20118.526%2084.529%20127.173%2079.8894Z'%20fill='darkgrey'/%3e%3cpath%20d='M28.0441%20167.788C21.826%20195.052%2018.7311%20223.361%2014.1881%20250.885C9.42226%20279.982%204.68042%20308.967%20-0.0853729%20338.064L-1.00047%20342.848C14.5039%20346.419%2030.8401%20350.407%2046.3671%20353.868C90.9428%20363.918%20134.837%20376.598%20179.293%20387.201C200.345%20337.142%20219.778%20286.027%20235.82%20234.041C243.806%20208.213%20244.758%20181.282%20225.443%20160.043C216.099%20149.841%20204.347%20143.858%20191.629%20140.212C188.924%20139.377%20186.108%20138.517%20183.355%20137.905C179.635%20136.959%20175.781%20136.1%20171.989%20135.487C167.45%20134.592%20162.753%20133.893%20158.277%20133.243L127.871%20128.671L116.251%20126.895C115.457%20126.833%20114.686%20126.662%20113.915%20126.49C102.87%20124.724%2091.7381%20122.824%2080.6188%20123.013C69.1682%20123.13%2056.9012%20125.964%2047.8363%20133.224C36.9821%20141.825%2031.1109%20154.087%2028.0441%20167.788Z'%20fill='darkgrey'/%3e%3cpath%20d='M103.74%20123.732L95.6984%20197.532C95.6984%20197.532%20137.13%20157.315%20158.742%20133.268C155.051%20132.316%20151.227%20131.449%20147.465%20130.831C142.962%20129.929%20138.302%20129.224%20133.861%20128.569L103.74%20123.732Z'%20fill='white'/%3e%3cpath%20d='M97.8143%20115.298C99.0227%20116.625%20108.229%20179.332%20108.229%20179.332L148.012%20142.157L129%20100L97.8143%20115.298Z'%20fill='white'/%3e%3cpath%20d='M101.71%20148.534C100.068%20137.868%2098.402%20127.706%2098.0001%20127.274L112.673%20122C113.831%20131.449%20108.467%20141.173%20101.71%20148.534Z'%20fill='grey'/%3e%3cpath%20d='M121.545%2040.7383C111.161%2030.599%2085.3871%2035.4814%2071.93%2046.2862C66.0912%2051.0172%2060.5415%2047.9025%2061.6427%2054.0842C64.3767%2069.3597%2074.0239%20120.283%2082.7631%20126.794C100.374%20139.728%20121.191%20125.699%20127.329%20107.658C133.554%2089.7517%20136.293%2055.2372%20121.545%2040.7383Z'%20fill='white'/%3e%3cpath%20d='M56.0176%2041.9837C61.9834%2036.7831%2074.9427%2037.4243%2081.3074%2039.639C95.1733%2033.9235%20112.672%2032.6801%20120.968%2040.1438C131.22%2049.4771%20133.446%2067.5345%20132.042%2083.8281C125.848%2083.0025%20122.779%2078.6471%20116.718%2075.0286C97.7466%2073.2611%2084.9353%2061.0313%2082.042%2054.2301C78.3492%2058.2067%2063.3398%2059.3993%2058.12%2055.1646C51.1278%2048.7596%2054.1283%2043.6248%2056.0176%2041.9837Z'%20fill='darkgrey'/%3e%3cpath%20d='M142.838%2074.8316C138.561%2067.841%20123.674%2066.785%20116.5%2075.5006C118.078%2084.3219%20121.503%2092.5524%20122.726%20101.41C127.77%20102.657%20137.388%20100.869%20141.908%2095.386C147.168%2089.1414%20147.462%2082.3637%20142.838%2074.8316Z'%20fill='white'/%3e%3c/g%3e%3cdefs%3e%3cfilter%20id='shadow'%3e%3cfeDropShadow%20dx='0'%20dy='0'%20stdDeviation='3'%20flood-color='rgba(0,0,0,0.3)'/%3e%3c/filter%3e%3c/defs%3e%3c/svg%3e", ur = "data:image/svg+xml,%3csvg%20opacity='0.9'%20viewBox='0%200%20208%20208'%20fill='currentColor'%20xmlns='http://www.w3.org/2000/svg'%3e%3cdefs%3e%3cmask%20id='hole'%3e%3crect%20width='100%25'%20height='100%25'%20fill='white'/%3e%3ccircle%20cx='121.333'%20cy='121.333'%20r='52'%20fill='black'/%3e%3c/mask%3e%3cfilter%20id='shadow'%3e%3cfeDropShadow%20dx='-2'%20dy='-1'%20stdDeviation='10'%20flood-color='rgba(0,0,0,0.2)'/%3e%3c/filter%3e%3c/defs%3e%3cg%20filter='url(%23shadow)'%3e%3ccircle%20cx='104'%20cy='225.333'%20r='95.3333'%20fill='darkgray'/%3e%3ccircle%20cx='104'%20cy='225.333'%20r='95.3333'%20fill='white'%20mask='url(%23hole)'/%3e%3ccircle%20cx='104'%20cy='86.6666'%20r='52'%20fill='white'/%3e%3c/g%3e%3c/svg%3e", _r = "data:image/svg+xml,%3csvg%20opacity='0.9'%20viewBox='0%200%20208%20208'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20filter='url(%23shadow)'%3e%3cpath%20d='M168%20208V118.053C168%20113.824%20165.34%20110.052%20161.356%20108.633L134%2098.885V208H168Z'%20fill='darkgrey'/%3e%3cpath%20d='M40%2072.3726C40%2070.7381%2040.9944%2069.268%2042.5116%2068.6598L111.951%2040.8215C113.226%2040.3102%20114.675%2040.4893%20115.787%2041.2958L129.87%2051.5056C132.464%2053.3866%20134%2056.397%20134%2059.6017V208H40V72.3726Z'%20fill='white'/%3e%3cpath%20d='M114%2047.5001L126.325%2056.3036C127.376%2057.0544%20128%2058.2667%20128%2059.5585V208H114V47.5001Z'%20fill='darkgrey'/%3e%3c/g%3e%3cdefs%3e%3cfilter%20id='shadow'%3e%3cfeDropShadow%20dx='-2'%20dy='-1'%20stdDeviation='7'%20flood-color='rgba(0,0,0,0.2)'/%3e%3c/filter%3e%3c/defs%3e%3c/svg%3e", pr = {
|
|
990
|
+
male: cr,
|
|
991
|
+
female: dr,
|
|
992
992
|
org: _r,
|
|
993
|
-
neutral:
|
|
994
|
-
},
|
|
993
|
+
neutral: ur
|
|
994
|
+
}, ze = Q((t, r) => {
|
|
995
995
|
const {
|
|
996
996
|
style: a,
|
|
997
997
|
size: s = 40,
|
|
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
1007
|
imgProps: b,
|
|
@@ -1009,16 +1009,16 @@ const dr = "data:image/svg+xml,%3csvg%20opacity='0.9'%20preserveAspectRatio='xMi
|
|
|
1009
1009
|
className: w,
|
|
1010
1010
|
"data-testid": C,
|
|
1011
1011
|
...S
|
|
1012
|
-
} = t, { onClick: m, onPointerDown: R } = S, k = !n && !i && (!!m || !!R), [T, I] =
|
|
1012
|
+
} = t, { onClick: m, onPointerDown: R } = S, k = !n && !i && (!!m || !!R), [T, I] = Oe(!1);
|
|
1013
1013
|
we(() => {
|
|
1014
|
-
|
|
1015
|
-
}, [
|
|
1016
|
-
const
|
|
1014
|
+
_ && I(!1);
|
|
1015
|
+
}, [_]);
|
|
1016
|
+
const B = _ && !T ? "image" : h ? "icon" : f ? "name" : "placeholder", N = y || B === "name" && sr(f) || "gray", W = lr(s), x = jt(s, c), V = U(
|
|
1017
1017
|
w,
|
|
1018
1018
|
de.avatar,
|
|
1019
|
-
de[`variant-${
|
|
1019
|
+
de[`variant-${p}`],
|
|
1020
1020
|
de[`color-${N}`],
|
|
1021
|
-
|
|
1021
|
+
De[W],
|
|
1022
1022
|
{
|
|
1023
1023
|
[de.disabled]: n,
|
|
1024
1024
|
[de.loading]: i,
|
|
@@ -1037,7 +1037,7 @@ 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(
|
|
@@ -1046,7 +1046,7 @@ const dr = "data:image/svg+xml,%3csvg%20opacity='0.9'%20preserveAspectRatio='xMi
|
|
|
1046
1046
|
...b,
|
|
1047
1047
|
"data-testid": "avatar-placeholder",
|
|
1048
1048
|
className: de.image,
|
|
1049
|
-
src:
|
|
1049
|
+
src: pr[d],
|
|
1050
1050
|
alt: g || void 0
|
|
1051
1051
|
}
|
|
1052
1052
|
),
|
|
@@ -1056,36 +1056,36 @@ const dr = "data:image/svg+xml,%3csvg%20opacity='0.9'%20preserveAspectRatio='xMi
|
|
|
1056
1056
|
"data-testid": "avatar-image",
|
|
1057
1057
|
...b,
|
|
1058
1058
|
className: de.image,
|
|
1059
|
-
src:
|
|
1059
|
+
src: _ || void 0,
|
|
1060
1060
|
alt: g || void 0,
|
|
1061
1061
|
onLoad: () => I(!1),
|
|
1062
|
-
onError: (
|
|
1062
|
+
onError: (H) => {
|
|
1063
1063
|
var G;
|
|
1064
|
-
I(!0), (G = b == null ? void 0 : b.onError) == null || G.call(b,
|
|
1064
|
+
I(!0), (G = b == null ? void 0 : b.onError) == null || G.call(b, H);
|
|
1065
1065
|
}
|
|
1066
1066
|
}
|
|
1067
1067
|
)
|
|
1068
|
-
},
|
|
1069
|
-
k && (m == null || m(
|
|
1068
|
+
}, F = (H) => {
|
|
1069
|
+
k && (m == null || m(H));
|
|
1070
1070
|
};
|
|
1071
1071
|
return /* @__PURE__ */ o.jsx(
|
|
1072
1072
|
"div",
|
|
1073
1073
|
{
|
|
1074
1074
|
ref: r,
|
|
1075
|
-
onClick:
|
|
1076
|
-
className:
|
|
1075
|
+
onClick: F,
|
|
1076
|
+
className: V,
|
|
1077
1077
|
style: O,
|
|
1078
1078
|
"data-testid": C,
|
|
1079
1079
|
"aria-disabled": n || i,
|
|
1080
|
-
children: $[
|
|
1080
|
+
children: $[B](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 = Ve(hr()).current.toString(), h = Ne(gr.avatarGroup), b = br(
|
|
1115
1115
|
a,
|
|
1116
1116
|
a,
|
|
1117
|
-
a -
|
|
1117
|
+
a - p,
|
|
1118
1118
|
// X-координата начала выреза
|
|
1119
1119
|
0,
|
|
1120
1120
|
// Y-координата начала выреза
|
|
@@ -1135,7 +1135,7 @@ const mr = 3, vr = (t) => {
|
|
|
1135
1135
|
clipPath: S && !n ? void 0 : `url(#${g})`,
|
|
1136
1136
|
marginRight: d
|
|
1137
1137
|
},
|
|
1138
|
-
children: /* @__PURE__ */ o.jsx(m, { children: /* @__PURE__ */ o.jsx(
|
|
1138
|
+
children: /* @__PURE__ */ o.jsx(m, { children: /* @__PURE__ */ o.jsx(ze, { size: a, shape: i, ...y }) })
|
|
1139
1139
|
},
|
|
1140
1140
|
Qe(y) + w
|
|
1141
1141
|
);
|
|
@@ -1148,17 +1148,17 @@ const mr = 3, vr = (t) => {
|
|
|
1148
1148
|
clipPath: S && !n ? void 0 : `url(#${g})`,
|
|
1149
1149
|
marginRight: d
|
|
1150
1150
|
},
|
|
1151
|
-
children: /* @__PURE__ */ o.jsx(
|
|
1151
|
+
children: /* @__PURE__ */ o.jsx(ze, { size: a, shape: i, ...y })
|
|
1152
1152
|
},
|
|
1153
1153
|
Qe(y) + w
|
|
1154
1154
|
);
|
|
1155
1155
|
}),
|
|
1156
1156
|
n > 0 && /* @__PURE__ */ o.jsx("div", { style: { marginRight: d }, children: /* @__PURE__ */ o.jsx(
|
|
1157
|
-
|
|
1157
|
+
ze,
|
|
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
|
|
@@ -1166,15 +1166,15 @@ const mr = 3, vr = (t) => {
|
|
|
1166
1166
|
) }),
|
|
1167
1167
|
/* @__PURE__ */ o.jsx("svg", { width: "0", height: "0", children: /* @__PURE__ */ o.jsx("clipPath", { id: `${g}`, children: /* @__PURE__ */ o.jsx("path", { clipPathUnits: "objectBoundingBox", d: b, clipRule: "evenodd" }) }) })
|
|
1168
1168
|
] });
|
|
1169
|
-
}, kn = Object.assign(
|
|
1170
|
-
Group:
|
|
1171
|
-
}),
|
|
1172
|
-
wrapper:
|
|
1173
|
-
badge__container:
|
|
1174
|
-
badge__content:
|
|
1175
|
-
interactive:
|
|
1176
|
-
disabled:
|
|
1177
|
-
icon:
|
|
1169
|
+
}, kn = Object.assign(ze, {
|
|
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", pe = {
|
|
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,20 +1206,20 @@ 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
|
-
},
|
|
1219
|
-
const t =
|
|
1218
|
+
}, $r = () => {
|
|
1219
|
+
const t = Ve(null), [r, a] = Oe(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 };
|
|
@@ -1230,35 +1230,35 @@ const mr = 3, vr = (t) => {
|
|
|
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
1239
|
className: b,
|
|
1240
1240
|
"data-testid": y = "badge",
|
|
1241
1241
|
...w
|
|
1242
|
-
} = t, { onClick: C, onPointerDown: S } = w, { ref: m, bgColor: R } =
|
|
1242
|
+
} = t, { onClick: C, onPointerDown: S } = w, { ref: m, bgColor: R } = $r(), D = g || R, T = !h && (!!C || !!S), I = Ne(pe.badge__container, pe[`position-${f}`]), B = Ne(
|
|
1243
1243
|
b,
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1244
|
+
pe.badge__content,
|
|
1245
|
+
pe[`color-${p}`],
|
|
1246
|
+
pe[`variant-${i}`],
|
|
1247
1247
|
{
|
|
1248
|
-
[
|
|
1249
|
-
[
|
|
1250
|
-
[
|
|
1248
|
+
[pe.disabled]: h,
|
|
1249
|
+
[pe.icon]: !!a,
|
|
1250
|
+
[pe.interactive]: T
|
|
1251
1251
|
}
|
|
1252
1252
|
), N = {
|
|
1253
1253
|
"--badge-height": `${d}px`,
|
|
1254
|
-
"--badge-offset-x": `${
|
|
1255
|
-
"--badge-offset-y": `${
|
|
1254
|
+
"--badge-offset-x": `${_.x}px`,
|
|
1255
|
+
"--badge-offset-y": `${_.y}px`,
|
|
1256
1256
|
...D && { "--badge-cutout-bg": D },
|
|
1257
1257
|
...i === "transparent" && { "--badge-cutout-bg": "transparent" }
|
|
1258
|
-
},
|
|
1259
|
-
T && (C == null || C(
|
|
1258
|
+
}, W = (a == null ? void 0 : a({})) || n, x = (V) => {
|
|
1259
|
+
T && (C == null || C(V));
|
|
1260
1260
|
};
|
|
1261
|
-
return /* @__PURE__ */ o.jsxs("div", { className:
|
|
1261
|
+
return /* @__PURE__ */ o.jsxs("div", { className: pe.wrapper, ref: m, "data-testid": y + "-wrapper", children: [
|
|
1262
1262
|
s,
|
|
1263
1263
|
!c && /* @__PURE__ */ o.jsx(
|
|
1264
1264
|
"span",
|
|
@@ -1271,21 +1271,22 @@ const mr = 3, vr = (t) => {
|
|
|
1271
1271
|
{
|
|
1272
1272
|
...w,
|
|
1273
1273
|
onClick: x,
|
|
1274
|
-
className:
|
|
1274
|
+
className: B,
|
|
1275
1275
|
"data-testid": y + "-content",
|
|
1276
1276
|
ref: r,
|
|
1277
1277
|
"aria-disabled": h,
|
|
1278
|
-
children:
|
|
1278
|
+
children: W
|
|
1279
1279
|
}
|
|
1280
1280
|
)
|
|
1281
1281
|
}
|
|
1282
1282
|
)
|
|
1283
1283
|
] });
|
|
1284
|
-
}), Ir = "
|
|
1285
|
-
container:
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1284
|
+
}), jr = "_container_1gkrm_7", Ir = "_loading_1gkrm_17", Rr = "_error_1gkrm_18", kr = "_image_1gkrm_22", Te = {
|
|
1285
|
+
container: jr,
|
|
1286
|
+
loading: Ir,
|
|
1287
|
+
error: Rr,
|
|
1288
|
+
image: kr
|
|
1289
|
+
}, Tr = "_loader_isv17_1", Ar = "_spin_isv17_1", Nr = "_accent_isv17_19", Dr = "_neutral_isv17_23", Or = "_positive_isv17_27", Ur = "_negative_isv17_31", Br = "_gray_isv17_35", Fr = "_special_isv17_39", Pr = "_contrast_isv17_43", zr = "_container_isv17_47", Wr = "_overlay_isv17_57", Ae = {
|
|
1289
1290
|
loader: Tr,
|
|
1290
1291
|
spin: Ar,
|
|
1291
1292
|
accent: Nr,
|
|
@@ -1302,7 +1303,7 @@ const mr = 3, vr = (t) => {
|
|
|
1302
1303
|
"size-48": "_size-48_isv17_80",
|
|
1303
1304
|
"size-64": "_size-64_isv17_84",
|
|
1304
1305
|
"size-96": "_size-96_isv17_88"
|
|
1305
|
-
},
|
|
1306
|
+
}, It = Q(
|
|
1306
1307
|
({
|
|
1307
1308
|
size: t = 24,
|
|
1308
1309
|
variant: r = "accent",
|
|
@@ -1311,17 +1312,17 @@ const mr = 3, vr = (t) => {
|
|
|
1311
1312
|
style: i,
|
|
1312
1313
|
...n
|
|
1313
1314
|
}, c) => {
|
|
1314
|
-
const
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1315
|
+
const p = Ne(
|
|
1316
|
+
Ae.loader,
|
|
1317
|
+
Ae[r],
|
|
1318
|
+
Ae[`size-${t}`],
|
|
1318
1319
|
a
|
|
1319
1320
|
);
|
|
1320
1321
|
return /* @__PURE__ */ o.jsx(
|
|
1321
1322
|
"svg",
|
|
1322
1323
|
{
|
|
1323
1324
|
ref: c,
|
|
1324
|
-
className:
|
|
1325
|
+
className: p,
|
|
1325
1326
|
fill: "none",
|
|
1326
1327
|
viewBox: "0 0 16 16",
|
|
1327
1328
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1347,13 +1348,13 @@ const mr = 3, vr = (t) => {
|
|
|
1347
1348
|
variant: i = "accent",
|
|
1348
1349
|
children: n,
|
|
1349
1350
|
className: c,
|
|
1350
|
-
style:
|
|
1351
|
+
style: p,
|
|
1351
1352
|
"data-testid": d,
|
|
1352
1353
|
...f
|
|
1353
|
-
} = t,
|
|
1354
|
-
return /* @__PURE__ */ o.jsxs("div", { ref: r, className:
|
|
1354
|
+
} = t, _ = Ne(Ae.container, c);
|
|
1355
|
+
return /* @__PURE__ */ o.jsxs("div", { ref: r, className: _, style: p, "data-testid": d, ...f, children: [
|
|
1355
1356
|
n,
|
|
1356
|
-
a && /* @__PURE__ */ o.jsx("div", { className:
|
|
1357
|
+
a && /* @__PURE__ */ o.jsx("div", { className: Ae.overlay, children: /* @__PURE__ */ o.jsx(It, { size: s, variant: i, "data-testid": `${d}-spinner` }) })
|
|
1357
1358
|
] });
|
|
1358
1359
|
}), Hr = Q((t, r) => t.children ? /* @__PURE__ */ o.jsx(
|
|
1359
1360
|
Vr,
|
|
@@ -1361,7 +1362,7 @@ const mr = 3, vr = (t) => {
|
|
|
1361
1362
|
ref: r,
|
|
1362
1363
|
...t
|
|
1363
1364
|
}
|
|
1364
|
-
) : /* @__PURE__ */ o.jsx(
|
|
1365
|
+
) : /* @__PURE__ */ o.jsx(It, { ref: r, ...t })), qr = ({ width: t = 48, height: r = 48, className: a, "data-testid": s }) => /* @__PURE__ */ o.jsx(
|
|
1365
1366
|
"svg",
|
|
1366
1367
|
{
|
|
1367
1368
|
width: t,
|
|
@@ -1389,29 +1390,36 @@ const mr = 3, vr = (t) => {
|
|
|
1389
1390
|
src: i,
|
|
1390
1391
|
isLoading: n = !1,
|
|
1391
1392
|
className: c,
|
|
1392
|
-
containerClassName:
|
|
1393
|
+
containerClassName: p,
|
|
1393
1394
|
"data-testid": d = "image",
|
|
1394
1395
|
onError: f,
|
|
1395
|
-
onLoad:
|
|
1396
|
+
onLoad: _,
|
|
1396
1397
|
...g
|
|
1397
|
-
} = t, [h, b] =
|
|
1398
|
-
|
|
1398
|
+
} = t, [h, b] = Oe("loading"), y = h === "error", w = (n || h === "loading") && !y, C = h === "loaded" && !n, S = U(
|
|
1399
|
+
Te.container,
|
|
1399
1400
|
{
|
|
1400
|
-
[
|
|
1401
|
+
[Te.loading]: w,
|
|
1402
|
+
[Te.error]: y
|
|
1403
|
+
},
|
|
1404
|
+
p
|
|
1405
|
+
), m = U(
|
|
1406
|
+
Te.image,
|
|
1407
|
+
{
|
|
1408
|
+
[Te.loading]: w
|
|
1401
1409
|
},
|
|
1402
1410
|
c
|
|
1403
1411
|
), R = Ce(
|
|
1404
1412
|
(T) => {
|
|
1405
|
-
b("loaded"),
|
|
1413
|
+
b("loaded"), _ == null || _(T);
|
|
1406
1414
|
},
|
|
1407
|
-
[
|
|
1415
|
+
[_]
|
|
1408
1416
|
), D = Ce(
|
|
1409
1417
|
(T) => {
|
|
1410
1418
|
b("error"), f == null || f(T);
|
|
1411
1419
|
},
|
|
1412
1420
|
[f]
|
|
1413
1421
|
), k = {
|
|
1414
|
-
loader: /* @__PURE__ */ o.jsxs(
|
|
1422
|
+
loader: /* @__PURE__ */ o.jsxs(Mt, { children: [
|
|
1415
1423
|
/* @__PURE__ */ o.jsx(Hr, { size: 48, variant: "special", "data-testid": `${d}-loader` }),
|
|
1416
1424
|
/* @__PURE__ */ o.jsx(
|
|
1417
1425
|
"img",
|
|
@@ -1448,10 +1456,10 @@ const mr = 3, vr = (t) => {
|
|
|
1448
1456
|
y && k.error,
|
|
1449
1457
|
C && k.image
|
|
1450
1458
|
] });
|
|
1451
|
-
}), Gr = {},
|
|
1459
|
+
}), Gr = {}, Rt = ra({
|
|
1452
1460
|
locale: Gr
|
|
1453
1461
|
}), Zr = () => {
|
|
1454
|
-
const t =
|
|
1462
|
+
const t = sa(Rt);
|
|
1455
1463
|
if (!t)
|
|
1456
1464
|
throw new Error("useConfig must be used within a ConfigProvider");
|
|
1457
1465
|
return t;
|
|
@@ -1463,23 +1471,23 @@ const mr = 3, vr = (t) => {
|
|
|
1463
1471
|
theme: r,
|
|
1464
1472
|
children: a,
|
|
1465
1473
|
className: s
|
|
1466
|
-
}) => (
|
|
1474
|
+
}) => (na(() => {
|
|
1467
1475
|
if (r) {
|
|
1468
1476
|
const i = document.documentElement;
|
|
1469
1477
|
Object.entries(r).forEach(([n, c]) => {
|
|
1470
1478
|
i.style.setProperty(n, c);
|
|
1471
1479
|
});
|
|
1472
1480
|
}
|
|
1473
|
-
}, [r]), /* @__PURE__ */ o.jsxs(
|
|
1481
|
+
}, [r]), /* @__PURE__ */ o.jsxs(Mt, { children: [
|
|
1474
1482
|
/* @__PURE__ */ o.jsx(
|
|
1475
1483
|
"div",
|
|
1476
1484
|
{
|
|
1477
1485
|
"data-testid": "ConfigProvider-component",
|
|
1478
|
-
className:
|
|
1486
|
+
className: U(Yr, Jr, Kr, s)
|
|
1479
1487
|
}
|
|
1480
1488
|
),
|
|
1481
|
-
/* @__PURE__ */ o.jsx(
|
|
1482
|
-
] })), On = {}, Xr = "_tag_1llsi_1", Qr = "_label_1llsi_16", es = "_iconWrapper_1llsi_20", ts = "_medium_1llsi_27", as = "_large_1llsi_33", rs = "_disabled_1llsi_43", ss = "_neutral_1llsi_47", ns = "_positive_1llsi_53", os = "_negative_1llsi_59", is = "_warning_1llsi_65", ls = "_vivid_1llsi_71", cs = "_special_1llsi_77", ds = "_accent_1llsi_84", us = "_blue_1llsi_90",
|
|
1489
|
+
/* @__PURE__ */ o.jsx(Rt.Provider, { value: { locale: t }, children: a })
|
|
1490
|
+
] })), On = {}, Xr = "_tag_1llsi_1", Qr = "_label_1llsi_16", es = "_iconWrapper_1llsi_20", ts = "_medium_1llsi_27", as = "_large_1llsi_33", rs = "_disabled_1llsi_43", ss = "_neutral_1llsi_47", ns = "_positive_1llsi_53", os = "_negative_1llsi_59", is = "_warning_1llsi_65", ls = "_vivid_1llsi_71", cs = "_special_1llsi_77", ds = "_accent_1llsi_84", us = "_blue_1llsi_90", _s = "_lovely_1llsi_96", ps = "_dreamy_1llsi_102", xe = {
|
|
1483
1491
|
tag: Xr,
|
|
1484
1492
|
label: Qr,
|
|
1485
1493
|
iconWrapper: es,
|
|
@@ -1494,8 +1502,8 @@ const mr = 3, vr = (t) => {
|
|
|
1494
1502
|
special: cs,
|
|
1495
1503
|
accent: ds,
|
|
1496
1504
|
blue: us,
|
|
1497
|
-
lovely:
|
|
1498
|
-
dreamy:
|
|
1505
|
+
lovely: _s,
|
|
1506
|
+
dreamy: ps
|
|
1499
1507
|
}, Un = Q((t, r) => {
|
|
1500
1508
|
const {
|
|
1501
1509
|
className: a,
|
|
@@ -1503,33 +1511,33 @@ const mr = 3, vr = (t) => {
|
|
|
1503
1511
|
componentStyle: i = "neutral",
|
|
1504
1512
|
size: n = "medium",
|
|
1505
1513
|
disabled: c = !1,
|
|
1506
|
-
showLabel:
|
|
1514
|
+
showLabel: p = !!s,
|
|
1507
1515
|
slotStart: d,
|
|
1508
1516
|
slotEnd: f,
|
|
1509
|
-
slotStartWrapperProps:
|
|
1517
|
+
slotStartWrapperProps: _ = {},
|
|
1510
1518
|
slotEndWrapperProps: g = {},
|
|
1511
1519
|
"data-testid": h
|
|
1512
|
-
} = t, { className: b, ...y } =
|
|
1520
|
+
} = t, { className: b, ...y } = _, { className: w, ...C } = g;
|
|
1513
1521
|
return /* @__PURE__ */ o.jsxs(
|
|
1514
1522
|
"div",
|
|
1515
1523
|
{
|
|
1516
|
-
className:
|
|
1524
|
+
className: U(
|
|
1517
1525
|
xe.tag,
|
|
1518
1526
|
xe[n],
|
|
1519
1527
|
xe[i],
|
|
1520
1528
|
{
|
|
1521
1529
|
[xe.disabled]: c,
|
|
1522
|
-
[
|
|
1523
|
-
[
|
|
1530
|
+
[De["typography-label-3-regular"]]: n === "medium",
|
|
1531
|
+
[De["typography-subtitle-1-semibold"]]: n === "large"
|
|
1524
1532
|
},
|
|
1525
1533
|
a
|
|
1526
1534
|
),
|
|
1527
1535
|
"data-testid": h || "tag-component",
|
|
1528
1536
|
ref: r,
|
|
1529
1537
|
children: [
|
|
1530
|
-
d && /* @__PURE__ */ o.jsx("span", { className:
|
|
1531
|
-
|
|
1532
|
-
f && /* @__PURE__ */ o.jsx("span", { className:
|
|
1538
|
+
d && /* @__PURE__ */ o.jsx("span", { className: U([xe.iconWrapper, b]), ...y, children: d }),
|
|
1539
|
+
p && /* @__PURE__ */ o.jsx("span", { className: U([xe.label]), children: s }),
|
|
1540
|
+
f && /* @__PURE__ */ o.jsx("span", { className: U([xe.iconWrapper, w]), ...C, children: f })
|
|
1533
1541
|
]
|
|
1534
1542
|
}
|
|
1535
1543
|
);
|
|
@@ -1624,10 +1632,10 @@ const mr = 3, vr = (t) => {
|
|
|
1624
1632
|
size: i = "medium",
|
|
1625
1633
|
indeterminate: n = !1,
|
|
1626
1634
|
loading: c = !1,
|
|
1627
|
-
error:
|
|
1635
|
+
error: p,
|
|
1628
1636
|
disabled: d = !1,
|
|
1629
1637
|
containerClassName: f,
|
|
1630
|
-
className:
|
|
1638
|
+
className: _,
|
|
1631
1639
|
containerStyle: g,
|
|
1632
1640
|
style: h,
|
|
1633
1641
|
children: b,
|
|
@@ -1635,28 +1643,28 @@ const mr = 3, vr = (t) => {
|
|
|
1635
1643
|
tabIndex: w,
|
|
1636
1644
|
onChange: C,
|
|
1637
1645
|
"data-testid": S = "checkbox"
|
|
1638
|
-
} = t, [m, R] =
|
|
1646
|
+
} = t, [m, R] = Oe(!1), D = s ?? m, k = d || c, T = !!p, I = D || n, B = U(ge.container, ge[i], f), N = U(
|
|
1639
1647
|
ge.checkbox,
|
|
1640
1648
|
ge[i],
|
|
1641
1649
|
{
|
|
1642
1650
|
[ge.error]: T
|
|
1643
1651
|
},
|
|
1644
|
-
|
|
1645
|
-
),
|
|
1652
|
+
_
|
|
1653
|
+
), W = ($) => {
|
|
1646
1654
|
k || (R($.target.checked), C == null || C($.target.checked, $));
|
|
1647
1655
|
}, x = ($) => {
|
|
1648
1656
|
if ($.key === "Enter" && !k) {
|
|
1649
1657
|
$.preventDefault();
|
|
1650
|
-
const
|
|
1651
|
-
R(
|
|
1658
|
+
const F = !I;
|
|
1659
|
+
R(F), C == null || C(F);
|
|
1652
1660
|
}
|
|
1653
|
-
},
|
|
1661
|
+
}, V = ($) => {
|
|
1654
1662
|
y || $.preventDefault();
|
|
1655
1663
|
}, O = ($) => $.stopPropagation();
|
|
1656
1664
|
return /* @__PURE__ */ o.jsxs(
|
|
1657
1665
|
"label",
|
|
1658
1666
|
{
|
|
1659
|
-
className:
|
|
1667
|
+
className: B,
|
|
1660
1668
|
htmlFor: a,
|
|
1661
1669
|
style: g,
|
|
1662
1670
|
"data-testid": S,
|
|
@@ -1672,7 +1680,7 @@ const mr = 3, vr = (t) => {
|
|
|
1672
1680
|
"aria-checked": I,
|
|
1673
1681
|
"aria-disabled": k,
|
|
1674
1682
|
"aria-invalid": T,
|
|
1675
|
-
"aria-describedby":
|
|
1683
|
+
"aria-describedby": p ? `${a}-error` : void 0,
|
|
1676
1684
|
"data-testid": `${S}-label`,
|
|
1677
1685
|
children: [
|
|
1678
1686
|
/* @__PURE__ */ o.jsx(
|
|
@@ -1685,11 +1693,11 @@ const mr = 3, vr = (t) => {
|
|
|
1685
1693
|
checked: I,
|
|
1686
1694
|
disabled: k,
|
|
1687
1695
|
className: ge.input,
|
|
1688
|
-
onChange:
|
|
1696
|
+
onChange: W,
|
|
1689
1697
|
onClick: O,
|
|
1690
1698
|
"aria-checked": I,
|
|
1691
1699
|
"aria-invalid": T,
|
|
1692
|
-
"aria-describedby":
|
|
1700
|
+
"aria-describedby": p ? `${a}-error` : void 0,
|
|
1693
1701
|
"data-testid": `${S}-input`
|
|
1694
1702
|
}
|
|
1695
1703
|
),
|
|
@@ -1713,7 +1721,7 @@ const mr = 3, vr = (t) => {
|
|
|
1713
1721
|
"data-testid": `${S}-label-text`,
|
|
1714
1722
|
"data-clickable-label": y,
|
|
1715
1723
|
className: ge.label,
|
|
1716
|
-
onClick:
|
|
1724
|
+
onClick: V,
|
|
1717
1725
|
children: b
|
|
1718
1726
|
}
|
|
1719
1727
|
)
|
|
@@ -1744,48 +1752,48 @@ const mr = 3, vr = (t) => {
|
|
|
1744
1752
|
3: "h3",
|
|
1745
1753
|
4: "h4",
|
|
1746
1754
|
5: "h5"
|
|
1747
|
-
},
|
|
1748
|
-
const r =
|
|
1755
|
+
}, xt = (t) => {
|
|
1756
|
+
const r = Et.forwardRef(
|
|
1749
1757
|
({
|
|
1750
1758
|
size: a = 3,
|
|
1751
1759
|
children: s,
|
|
1752
1760
|
className: i,
|
|
1753
1761
|
"data-testid": n,
|
|
1754
1762
|
as: c,
|
|
1755
|
-
fontWeight:
|
|
1763
|
+
fontWeight: p = "semibold",
|
|
1756
1764
|
disabled: d = !1,
|
|
1757
1765
|
typographyStyle: f = "primary",
|
|
1758
|
-
...
|
|
1766
|
+
..._
|
|
1759
1767
|
}, g) => {
|
|
1760
|
-
const h = c || Us[a], b =
|
|
1768
|
+
const h = c || Us[a], b = U(
|
|
1761
1769
|
je.typography,
|
|
1762
|
-
|
|
1770
|
+
De[`typography-${t}-${a}-${p}`],
|
|
1763
1771
|
je[f],
|
|
1764
1772
|
{
|
|
1765
1773
|
[je.disabled]: d
|
|
1766
1774
|
},
|
|
1767
1775
|
i
|
|
1768
1776
|
);
|
|
1769
|
-
return s ? /* @__PURE__ */ o.jsx(h, { ref: g, className: b, "data-testid": n, ...
|
|
1777
|
+
return s ? /* @__PURE__ */ o.jsx(h, { ref: g, className: b, "data-testid": n, ..._, children: s }) : null;
|
|
1770
1778
|
}
|
|
1771
1779
|
);
|
|
1772
1780
|
return r.displayName = `Typography.${t === "title" ? "Title" : "Subtitle"}`, r;
|
|
1773
|
-
},
|
|
1774
|
-
const r =
|
|
1781
|
+
}, Ct = (t) => {
|
|
1782
|
+
const r = Et.forwardRef(
|
|
1775
1783
|
({
|
|
1776
1784
|
size: a = 3,
|
|
1777
1785
|
children: s,
|
|
1778
1786
|
className: i,
|
|
1779
1787
|
"data-testid": n,
|
|
1780
1788
|
as: c = "p",
|
|
1781
|
-
fontWeight:
|
|
1789
|
+
fontWeight: p = "regular",
|
|
1782
1790
|
disabled: d = !1,
|
|
1783
1791
|
typographyStyle: f = "primary",
|
|
1784
|
-
...
|
|
1792
|
+
..._
|
|
1785
1793
|
}, g) => {
|
|
1786
|
-
const h = c, b =
|
|
1794
|
+
const h = c, b = U(
|
|
1787
1795
|
je.typography,
|
|
1788
|
-
|
|
1796
|
+
De[`typography-${t}-${a}-${p}`],
|
|
1789
1797
|
je[f],
|
|
1790
1798
|
{
|
|
1791
1799
|
[je.disabled]: d
|
|
@@ -1798,7 +1806,7 @@ const mr = 3, vr = (t) => {
|
|
|
1798
1806
|
ref: g,
|
|
1799
1807
|
className: b,
|
|
1800
1808
|
"data-testid": n,
|
|
1801
|
-
...
|
|
1809
|
+
..._,
|
|
1802
1810
|
children: s
|
|
1803
1811
|
}
|
|
1804
1812
|
) : null;
|
|
@@ -1806,10 +1814,10 @@ const mr = 3, vr = (t) => {
|
|
|
1806
1814
|
);
|
|
1807
1815
|
return r.displayName = `Typography.${t.charAt(0).toUpperCase() + t.slice(1)}`, r;
|
|
1808
1816
|
}, Fn = {
|
|
1809
|
-
Title:
|
|
1810
|
-
Subtitle:
|
|
1811
|
-
Label:
|
|
1812
|
-
Paragraph:
|
|
1817
|
+
Title: xt("title"),
|
|
1818
|
+
Subtitle: xt("subtitle"),
|
|
1819
|
+
Label: Ct("label"),
|
|
1820
|
+
Paragraph: Ct("paragraph")
|
|
1813
1821
|
}, Bs = "_inputBase_1m6fe_85", Fs = "_wrapper_1m6fe_95", Ps = "_gripHandle_1m6fe_169", zs = "_error_1m6fe_230", Ws = "_tabFocused_1m6fe_237", Vs = "_disabled_1m6fe_262", Hs = "_loading_1m6fe_269", qs = "_label_1m6fe_279", Gs = "_small_1m6fe_292", Zs = "_large_1m6fe_299", Ys = "_leftSection_1m6fe_306", Js = "_rightSection_1m6fe_315", Ks = "_helper_1m6fe_351", Xs = "_floatingLabel_1m6fe_376", Qs = "_focused_1m6fe_434", en = "_filled_1m6fe_435", tn = "_medium_1m6fe_469", an = "_characterLimit_1m6fe_510", rn = "_input_1m6fe_85", sn = "_textarea_1m6fe_109", nn = "_truncate_1m6fe_637", on = "_hint_1m6fe_719", M = {
|
|
1814
1822
|
inputBase: Bs,
|
|
1815
1823
|
wrapper: Fs,
|
|
@@ -1863,7 +1871,7 @@ const mr = 3, vr = (t) => {
|
|
|
1863
1871
|
}
|
|
1864
1872
|
)
|
|
1865
1873
|
}
|
|
1866
|
-
),
|
|
1874
|
+
), kt = ({
|
|
1867
1875
|
className: t = "",
|
|
1868
1876
|
style: r,
|
|
1869
1877
|
size: a = "md",
|
|
@@ -1871,7 +1879,7 @@ const mr = 3, vr = (t) => {
|
|
|
1871
1879
|
onClick: i,
|
|
1872
1880
|
...n
|
|
1873
1881
|
}) => {
|
|
1874
|
-
const
|
|
1882
|
+
const p = {
|
|
1875
1883
|
display: "inline-block",
|
|
1876
1884
|
color: s,
|
|
1877
1885
|
...{
|
|
@@ -1888,7 +1896,7 @@ const mr = 3, vr = (t) => {
|
|
|
1888
1896
|
"svg",
|
|
1889
1897
|
{
|
|
1890
1898
|
className: t,
|
|
1891
|
-
style:
|
|
1899
|
+
style: p,
|
|
1892
1900
|
viewBox: "0 0 16 16",
|
|
1893
1901
|
fill: "none",
|
|
1894
1902
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1907,7 +1915,7 @@ const mr = 3, vr = (t) => {
|
|
|
1907
1915
|
}
|
|
1908
1916
|
);
|
|
1909
1917
|
}, cn = (t, r) => {
|
|
1910
|
-
const a =
|
|
1918
|
+
const a = Ve(null), s = Ve(null);
|
|
1911
1919
|
return we(() => {
|
|
1912
1920
|
const i = r === "textarea" ? a.current : s.current;
|
|
1913
1921
|
i && i.value !== t && (i.value = t || "");
|
|
@@ -1935,16 +1943,16 @@ const mr = 3, vr = (t) => {
|
|
|
1935
1943
|
n.preventDefault(), n.stopPropagation();
|
|
1936
1944
|
const c = n.currentTarget.closest(`.${M.wrapper}`);
|
|
1937
1945
|
if (!c) return;
|
|
1938
|
-
const
|
|
1939
|
-
const h = g.clientY -
|
|
1946
|
+
const p = n.clientY, d = c.clientHeight, f = (g) => {
|
|
1947
|
+
const h = g.clientY - p, b = Math.min(100, d), y = Math.max(b, d + h);
|
|
1940
1948
|
c.style.height = `${y}px`;
|
|
1941
|
-
},
|
|
1942
|
-
document.removeEventListener("mousemove", f), document.removeEventListener("mouseup",
|
|
1949
|
+
}, _ = () => {
|
|
1950
|
+
document.removeEventListener("mousemove", f), document.removeEventListener("mouseup", _);
|
|
1943
1951
|
};
|
|
1944
|
-
document.addEventListener("mousemove", f), document.addEventListener("mouseup",
|
|
1952
|
+
document.addEventListener("mousemove", f), document.addEventListener("mouseup", _);
|
|
1945
1953
|
},
|
|
1946
1954
|
[t, r, a, s]
|
|
1947
|
-
) }),
|
|
1955
|
+
) }), wt = 30, _n = Q(
|
|
1948
1956
|
({
|
|
1949
1957
|
component: t = "input",
|
|
1950
1958
|
size: r = "medium",
|
|
@@ -1953,10 +1961,10 @@ const mr = 3, vr = (t) => {
|
|
|
1953
1961
|
disabled: i = !1,
|
|
1954
1962
|
loading: n = !1,
|
|
1955
1963
|
onFocus: c,
|
|
1956
|
-
onBlur:
|
|
1964
|
+
onBlur: p,
|
|
1957
1965
|
onChange: d,
|
|
1958
1966
|
onKeyUp: f,
|
|
1959
|
-
maxLength:
|
|
1967
|
+
maxLength: _,
|
|
1960
1968
|
className: g,
|
|
1961
1969
|
style: h,
|
|
1962
1970
|
truncate: b = !1,
|
|
@@ -1968,7 +1976,7 @@ const mr = 3, vr = (t) => {
|
|
|
1968
1976
|
...R
|
|
1969
1977
|
}, D) => {
|
|
1970
1978
|
const { textareaRef: k, inputRef: T, currentRef: I } = cn(a, t);
|
|
1971
|
-
if (dn(a, m, k),
|
|
1979
|
+
if (dn(a, m, k), oa(D, () => I.current, [I]), t === "textarea")
|
|
1972
1980
|
return /* @__PURE__ */ o.jsx(
|
|
1973
1981
|
"textarea",
|
|
1974
1982
|
{
|
|
@@ -1978,11 +1986,11 @@ const mr = 3, vr = (t) => {
|
|
|
1978
1986
|
placeholder: s,
|
|
1979
1987
|
disabled: i || n,
|
|
1980
1988
|
onFocus: c,
|
|
1981
|
-
onBlur:
|
|
1989
|
+
onBlur: p,
|
|
1982
1990
|
onChange: d,
|
|
1983
1991
|
onKeyUp: f,
|
|
1984
|
-
maxLength:
|
|
1985
|
-
className:
|
|
1992
|
+
maxLength: _,
|
|
1993
|
+
className: U(
|
|
1986
1994
|
M.textarea,
|
|
1987
1995
|
M[`size-${r}`],
|
|
1988
1996
|
y && M["with-floating-label"],
|
|
@@ -2007,11 +2015,11 @@ const mr = 3, vr = (t) => {
|
|
|
2007
2015
|
placeholder: s,
|
|
2008
2016
|
disabled: i || n,
|
|
2009
2017
|
onFocus: c,
|
|
2010
|
-
onBlur:
|
|
2018
|
+
onBlur: p,
|
|
2011
2019
|
onChange: d,
|
|
2012
2020
|
onKeyUp: f,
|
|
2013
|
-
maxLength:
|
|
2014
|
-
className:
|
|
2021
|
+
maxLength: _,
|
|
2022
|
+
className: U(
|
|
2015
2023
|
M.input,
|
|
2016
2024
|
M[`size-${r}`],
|
|
2017
2025
|
y && M["with-floating-label"],
|
|
@@ -2031,7 +2039,7 @@ const mr = 3, vr = (t) => {
|
|
|
2031
2039
|
`[Input] Недопустимое значение prop 'component': "${String(t)}". Допустимые значения: 'input', 'textarea'`
|
|
2032
2040
|
), null;
|
|
2033
2041
|
}
|
|
2034
|
-
),
|
|
2042
|
+
), Tt = Q(
|
|
2035
2043
|
({
|
|
2036
2044
|
children: t,
|
|
2037
2045
|
size: r = "medium",
|
|
@@ -2040,10 +2048,10 @@ const mr = 3, vr = (t) => {
|
|
|
2040
2048
|
loading: i = !1,
|
|
2041
2049
|
className: n,
|
|
2042
2050
|
wrapperProps: c,
|
|
2043
|
-
wrapperStyles:
|
|
2051
|
+
wrapperStyles: p,
|
|
2044
2052
|
floatingLabelStyles: d,
|
|
2045
2053
|
prefixStyles: f,
|
|
2046
|
-
suffixStyles:
|
|
2054
|
+
suffixStyles: _,
|
|
2047
2055
|
labelProps: g,
|
|
2048
2056
|
helperProps: h,
|
|
2049
2057
|
showLimit: b = !1,
|
|
@@ -2057,42 +2065,42 @@ const mr = 3, vr = (t) => {
|
|
|
2057
2065
|
showLabel: k = !0,
|
|
2058
2066
|
labelClassName: T,
|
|
2059
2067
|
hasValue: I = !1,
|
|
2060
|
-
helper:
|
|
2068
|
+
helper: B,
|
|
2061
2069
|
id: N,
|
|
2062
|
-
value:
|
|
2070
|
+
value: W = "",
|
|
2063
2071
|
resize: x,
|
|
2064
|
-
showGrip:
|
|
2072
|
+
showGrip: V = !1,
|
|
2065
2073
|
...O
|
|
2066
2074
|
}, $) => {
|
|
2067
|
-
const
|
|
2075
|
+
const F = $t(), H = N || F, G = C && w && (I || S), Z = w && w.length > wt ? w.substring(0, wt) + "..." : w, te = U(
|
|
2068
2076
|
M.wrapper,
|
|
2069
2077
|
a && M.error,
|
|
2070
2078
|
s && M.disabled,
|
|
2071
2079
|
i && M.loading,
|
|
2072
2080
|
G && M["has-hint"],
|
|
2073
2081
|
n
|
|
2074
|
-
), ae =
|
|
2082
|
+
), ae = U(
|
|
2075
2083
|
M.floatingLabel,
|
|
2076
2084
|
M[r],
|
|
2077
2085
|
I && M.filled,
|
|
2078
2086
|
T
|
|
2079
|
-
), { handleGripMouseDown: re } = un(
|
|
2087
|
+
), { handleGripMouseDown: re } = un(V, s, i, x);
|
|
2080
2088
|
return /* @__PURE__ */ o.jsxs("div", { ref: $, className: M.inputBase, "data-testid": "input-base-wrapper", ...O, children: [
|
|
2081
2089
|
/* @__PURE__ */ o.jsxs(
|
|
2082
2090
|
"div",
|
|
2083
2091
|
{
|
|
2084
2092
|
className: te,
|
|
2085
|
-
style:
|
|
2093
|
+
style: p,
|
|
2086
2094
|
"data-resize": x,
|
|
2087
|
-
"data-show-grip":
|
|
2095
|
+
"data-show-grip": V ? "true" : "false",
|
|
2088
2096
|
...c,
|
|
2089
2097
|
children: [
|
|
2090
|
-
m && /* @__PURE__ */ o.jsx("label", { htmlFor:
|
|
2091
|
-
R && /* @__PURE__ */ o.jsx("label", { htmlFor:
|
|
2098
|
+
m && /* @__PURE__ */ o.jsx("label", { htmlFor: H, className: M.leftSection, style: f, children: m }),
|
|
2099
|
+
R && /* @__PURE__ */ o.jsx("label", { htmlFor: H, className: M.rightSection, style: _, children: R }),
|
|
2092
2100
|
D && k && /* @__PURE__ */ o.jsx(
|
|
2093
2101
|
"label",
|
|
2094
2102
|
{
|
|
2095
|
-
htmlFor:
|
|
2103
|
+
htmlFor: H,
|
|
2096
2104
|
className: ae,
|
|
2097
2105
|
style: d,
|
|
2098
2106
|
...g,
|
|
@@ -2100,7 +2108,7 @@ const mr = 3, vr = (t) => {
|
|
|
2100
2108
|
}
|
|
2101
2109
|
),
|
|
2102
2110
|
t,
|
|
2103
|
-
|
|
2111
|
+
V && !b && (x === "fixed" || !x) && /* @__PURE__ */ o.jsx(
|
|
2104
2112
|
"div",
|
|
2105
2113
|
{
|
|
2106
2114
|
className: M.gripHandle,
|
|
@@ -2114,39 +2122,39 @@ const mr = 3, vr = (t) => {
|
|
|
2114
2122
|
G && /* @__PURE__ */ o.jsx(
|
|
2115
2123
|
"div",
|
|
2116
2124
|
{
|
|
2117
|
-
className:
|
|
2125
|
+
className: U(M.hint, I && M.truncate),
|
|
2118
2126
|
"data-disabled": s || i,
|
|
2119
2127
|
children: Z
|
|
2120
2128
|
}
|
|
2121
2129
|
),
|
|
2122
2130
|
b && y && /* @__PURE__ */ o.jsxs("div", { className: M.characterLimit, children: [
|
|
2123
|
-
(
|
|
2131
|
+
(W || "").length,
|
|
2124
2132
|
" из ",
|
|
2125
2133
|
y
|
|
2126
2134
|
] })
|
|
2127
2135
|
]
|
|
2128
2136
|
}
|
|
2129
2137
|
),
|
|
2130
|
-
|
|
2138
|
+
B && /* @__PURE__ */ o.jsx(
|
|
2131
2139
|
"div",
|
|
2132
2140
|
{
|
|
2133
|
-
className:
|
|
2141
|
+
className: U(
|
|
2134
2142
|
M.helper,
|
|
2135
2143
|
a && M.error,
|
|
2136
2144
|
(s || i) && M.disabled
|
|
2137
2145
|
),
|
|
2138
2146
|
...h,
|
|
2139
|
-
id: a ? `${
|
|
2140
|
-
children:
|
|
2147
|
+
id: a ? `${H}-error` : void 0,
|
|
2148
|
+
children: B
|
|
2141
2149
|
}
|
|
2142
2150
|
)
|
|
2143
2151
|
] });
|
|
2144
2152
|
}
|
|
2145
2153
|
);
|
|
2146
|
-
|
|
2147
|
-
const
|
|
2148
|
-
Wrapper:
|
|
2149
|
-
}),
|
|
2154
|
+
Tt.displayName = "InputWrapperComponent";
|
|
2155
|
+
const St = Object.assign(_n, {
|
|
2156
|
+
Wrapper: Tt
|
|
2157
|
+
}), At = Q(
|
|
2150
2158
|
({
|
|
2151
2159
|
component: t = "input",
|
|
2152
2160
|
size: r = "medium",
|
|
@@ -2155,10 +2163,10 @@ const Et = Object.assign(pn, {
|
|
|
2155
2163
|
disabled: i = !1,
|
|
2156
2164
|
loading: n = !1,
|
|
2157
2165
|
placeholder: c,
|
|
2158
|
-
showLabel:
|
|
2166
|
+
showLabel: p = !0,
|
|
2159
2167
|
labelClassName: d,
|
|
2160
2168
|
helper: f,
|
|
2161
|
-
prefix:
|
|
2169
|
+
prefix: _,
|
|
2162
2170
|
suffix: g,
|
|
2163
2171
|
id: h,
|
|
2164
2172
|
onFocus: b,
|
|
@@ -2172,19 +2180,19 @@ const Et = Object.assign(pn, {
|
|
|
2172
2180
|
suffixStyles: k,
|
|
2173
2181
|
textareaStyles: T,
|
|
2174
2182
|
labelProps: I,
|
|
2175
|
-
helperProps:
|
|
2183
|
+
helperProps: B,
|
|
2176
2184
|
showLimit: N = !1,
|
|
2177
|
-
maxLength:
|
|
2185
|
+
maxLength: W,
|
|
2178
2186
|
inputProps: x,
|
|
2179
|
-
hint:
|
|
2187
|
+
hint: V,
|
|
2180
2188
|
showHint: O = !1,
|
|
2181
2189
|
showHintOnEmpty: $ = !1,
|
|
2182
|
-
truncate:
|
|
2183
|
-
resize:
|
|
2190
|
+
truncate: F = !1,
|
|
2191
|
+
resize: H,
|
|
2184
2192
|
showGrip: G = !1,
|
|
2185
2193
|
...Z
|
|
2186
2194
|
}, te) => {
|
|
2187
|
-
const ae =
|
|
2195
|
+
const ae = $t(), re = h || ae, [be, se] = Oe(C), ye = C !== void 0 ? C : be, Se = (ye || "").length > 0, ue = p && (r === "large" || t === "textarea") && !_, ie = Ce(
|
|
2188
2196
|
(K) => {
|
|
2189
2197
|
var ee;
|
|
2190
2198
|
i || n || (b == null || b(), (ee = x == null ? void 0 : x.onFocus) == null || ee.call(
|
|
@@ -2193,7 +2201,7 @@ const Et = Object.assign(pn, {
|
|
|
2193
2201
|
));
|
|
2194
2202
|
},
|
|
2195
2203
|
[b, x, i, n]
|
|
2196
|
-
),
|
|
2204
|
+
), _e = Ce(
|
|
2197
2205
|
(K) => {
|
|
2198
2206
|
var ee;
|
|
2199
2207
|
if (K.key === "Tab") {
|
|
@@ -2231,40 +2239,40 @@ const Et = Object.assign(pn, {
|
|
|
2231
2239
|
return we(() => {
|
|
2232
2240
|
se(C);
|
|
2233
2241
|
}, [C]), /* @__PURE__ */ o.jsx(
|
|
2234
|
-
|
|
2242
|
+
St.Wrapper,
|
|
2235
2243
|
{
|
|
2236
2244
|
ref: te,
|
|
2237
2245
|
size: r,
|
|
2238
2246
|
error: s,
|
|
2239
2247
|
disabled: i || n,
|
|
2240
2248
|
loading: n,
|
|
2241
|
-
className:
|
|
2249
|
+
className: U(a, t === "textarea" && M["textarea-wrapper"]),
|
|
2242
2250
|
wrapperProps: S,
|
|
2243
2251
|
wrapperStyles: m,
|
|
2244
2252
|
floatingLabelStyles: R,
|
|
2245
2253
|
prefixStyles: D,
|
|
2246
2254
|
suffixStyles: k,
|
|
2247
2255
|
labelProps: I,
|
|
2248
|
-
helperProps:
|
|
2256
|
+
helperProps: B,
|
|
2249
2257
|
showLimit: N,
|
|
2250
|
-
maxLength:
|
|
2251
|
-
hint:
|
|
2258
|
+
maxLength: W,
|
|
2259
|
+
hint: V,
|
|
2252
2260
|
showHint: O,
|
|
2253
2261
|
showHintOnEmpty: $,
|
|
2254
|
-
prefix:
|
|
2262
|
+
prefix: _,
|
|
2255
2263
|
suffix: g,
|
|
2256
2264
|
placeholder: c,
|
|
2257
|
-
showLabel:
|
|
2265
|
+
showLabel: p,
|
|
2258
2266
|
labelClassName: d,
|
|
2259
2267
|
hasValue: Se,
|
|
2260
2268
|
helper: f,
|
|
2261
2269
|
id: re,
|
|
2262
2270
|
value: ye,
|
|
2263
2271
|
showGrip: G,
|
|
2264
|
-
resize:
|
|
2272
|
+
resize: H,
|
|
2265
2273
|
...Z,
|
|
2266
2274
|
children: /* @__PURE__ */ o.jsx(
|
|
2267
|
-
|
|
2275
|
+
St,
|
|
2268
2276
|
{
|
|
2269
2277
|
component: t,
|
|
2270
2278
|
size: r,
|
|
@@ -2275,16 +2283,16 @@ const Et = Object.assign(pn, {
|
|
|
2275
2283
|
onFocus: ie,
|
|
2276
2284
|
onBlur: le,
|
|
2277
2285
|
onChange: me,
|
|
2278
|
-
onKeyUp:
|
|
2279
|
-
maxLength:
|
|
2280
|
-
truncate:
|
|
2286
|
+
onKeyUp: _e,
|
|
2287
|
+
maxLength: W,
|
|
2288
|
+
truncate: F,
|
|
2281
2289
|
"data-empty": !Se,
|
|
2282
2290
|
shouldShowFloatingLabelClass: ue,
|
|
2283
2291
|
style: t === "textarea" ? T : void 0,
|
|
2284
2292
|
"aria-invalid": !!s,
|
|
2285
2293
|
"aria-errormessage": s ? `${re}-error` : void 0,
|
|
2286
2294
|
id: re,
|
|
2287
|
-
resize:
|
|
2295
|
+
resize: H,
|
|
2288
2296
|
...x
|
|
2289
2297
|
}
|
|
2290
2298
|
)
|
|
@@ -2295,7 +2303,7 @@ const Et = Object.assign(pn, {
|
|
|
2295
2303
|
SMALL: "small",
|
|
2296
2304
|
MEDIUM: "medium",
|
|
2297
2305
|
LARGE: "large"
|
|
2298
|
-
},
|
|
2306
|
+
}, pn = (t, r, a, s) => {
|
|
2299
2307
|
switch (t) {
|
|
2300
2308
|
case J.LARGE:
|
|
2301
2309
|
return r && a ? "8px 16px 8px 16px" : "16px 16px 16px 16px";
|
|
@@ -2380,7 +2388,7 @@ const Et = Object.assign(pn, {
|
|
|
2380
2388
|
right: `${a}px`
|
|
2381
2389
|
}
|
|
2382
2390
|
}), mn = (t, r, a, s) => {
|
|
2383
|
-
const i = fn(t), n =
|
|
2391
|
+
const i = fn(t), n = pn(t, r, a, s), c = gn(t);
|
|
2384
2392
|
switch (t) {
|
|
2385
2393
|
case J.LARGE:
|
|
2386
2394
|
return hn(i, n, c);
|
|
@@ -2405,10 +2413,10 @@ const Et = Object.assign(pn, {
|
|
|
2405
2413
|
maxLength: i,
|
|
2406
2414
|
minLength: n,
|
|
2407
2415
|
autoComplete: c,
|
|
2408
|
-
autoFocus:
|
|
2416
|
+
autoFocus: p,
|
|
2409
2417
|
size: d = J.MEDIUM,
|
|
2410
2418
|
inputProps: f,
|
|
2411
|
-
error:
|
|
2419
|
+
error: _,
|
|
2412
2420
|
disabled: g,
|
|
2413
2421
|
loading: h,
|
|
2414
2422
|
helper: b,
|
|
@@ -2422,17 +2430,17 @@ const Et = Object.assign(pn, {
|
|
|
2422
2430
|
className: k,
|
|
2423
2431
|
truncate: T = !0,
|
|
2424
2432
|
hint: I,
|
|
2425
|
-
showHint:
|
|
2433
|
+
showHint: B = !1,
|
|
2426
2434
|
showHintOnEmpty: N = !1,
|
|
2427
|
-
wrapperProps:
|
|
2435
|
+
wrapperProps: W,
|
|
2428
2436
|
labelProps: x,
|
|
2429
|
-
helperProps:
|
|
2437
|
+
helperProps: V,
|
|
2430
2438
|
...O
|
|
2431
2439
|
}, $) => {
|
|
2432
|
-
const
|
|
2440
|
+
const F = (t || "").length > 0, H = d === J.LARGE, G = !!y, Z = H && m && !y, te = C && F && !(g || h), ae = () => {
|
|
2433
2441
|
r == null || r("");
|
|
2434
2442
|
}, re = te ? /* @__PURE__ */ o.jsx(
|
|
2435
|
-
|
|
2443
|
+
kt,
|
|
2436
2444
|
{
|
|
2437
2445
|
size: d === J.SMALL ? "xs" : "sm",
|
|
2438
2446
|
color: "var(--icon-secondary)",
|
|
@@ -2444,14 +2452,14 @@ const Et = Object.assign(pn, {
|
|
|
2444
2452
|
type: a,
|
|
2445
2453
|
minLength: n,
|
|
2446
2454
|
autoComplete: c,
|
|
2447
|
-
autoFocus:
|
|
2455
|
+
autoFocus: p,
|
|
2448
2456
|
...f
|
|
2449
|
-
}, se = mn(d, Z,
|
|
2457
|
+
}, se = mn(d, Z, F, G);
|
|
2450
2458
|
return /* @__PURE__ */ o.jsx(
|
|
2451
|
-
|
|
2459
|
+
At,
|
|
2452
2460
|
{
|
|
2453
2461
|
size: d,
|
|
2454
|
-
error:
|
|
2462
|
+
error: _,
|
|
2455
2463
|
disabled: g || h,
|
|
2456
2464
|
loading: h,
|
|
2457
2465
|
helper: b,
|
|
@@ -2469,14 +2477,14 @@ const Et = Object.assign(pn, {
|
|
|
2469
2477
|
floatingLabelStyles: se.floatingLabelStyles,
|
|
2470
2478
|
prefixStyles: se.prefixStyles,
|
|
2471
2479
|
suffixStyles: se.suffixStyles,
|
|
2472
|
-
wrapperProps:
|
|
2480
|
+
wrapperProps: W,
|
|
2473
2481
|
labelProps: x,
|
|
2474
|
-
helperProps:
|
|
2482
|
+
helperProps: V,
|
|
2475
2483
|
showLimit: !1,
|
|
2476
2484
|
maxLength: i,
|
|
2477
2485
|
inputProps: be,
|
|
2478
2486
|
hint: I,
|
|
2479
|
-
showHint:
|
|
2487
|
+
showHint: B,
|
|
2480
2488
|
showHintOnEmpty: N,
|
|
2481
2489
|
truncate: T,
|
|
2482
2490
|
...O
|
|
@@ -2486,13 +2494,13 @@ const Et = Object.assign(pn, {
|
|
|
2486
2494
|
), oe = {
|
|
2487
2495
|
SMALL: "small",
|
|
2488
2496
|
MEDIUM: "medium"
|
|
2489
|
-
},
|
|
2497
|
+
}, We = {
|
|
2490
2498
|
SMALL: "12px",
|
|
2491
2499
|
MEDIUM: "16px"
|
|
2492
2500
|
}, vn = {
|
|
2493
2501
|
SMALL: "xs",
|
|
2494
2502
|
MEDIUM: "sm"
|
|
2495
|
-
},
|
|
2503
|
+
}, Pe = {
|
|
2496
2504
|
FILL: "fill",
|
|
2497
2505
|
FIXED: "fixed"
|
|
2498
2506
|
}, Ke = {
|
|
@@ -2575,22 +2583,22 @@ const Et = Object.assign(pn, {
|
|
|
2575
2583
|
return "medium";
|
|
2576
2584
|
}
|
|
2577
2585
|
return t;
|
|
2578
|
-
}, En = (t) => vn[t.toUpperCase()], Ln = (t) =>
|
|
2586
|
+
}, En = (t) => vn[t.toUpperCase()], Ln = (t) => We[t.toUpperCase()], Mn = (t, r, a, s) => {
|
|
2579
2587
|
const i = xn(t, r), n = Cn(t, r), c = wn(t, r, a);
|
|
2580
2588
|
return {
|
|
2581
2589
|
wrapperStyles: {
|
|
2582
2590
|
minHeight: i,
|
|
2583
2591
|
// Для fill resize устанавливаем height: 100%
|
|
2584
|
-
...s ===
|
|
2592
|
+
...s === Pe.FILL && { height: "100%" },
|
|
2585
2593
|
// Для fixed resize устанавливаем фиксированную высоту
|
|
2586
|
-
...s ===
|
|
2594
|
+
...s === Pe.FIXED && r && { height: i },
|
|
2587
2595
|
boxSizing: "border-box",
|
|
2588
2596
|
padding: c
|
|
2589
2597
|
},
|
|
2590
2598
|
floatingLabelStyles: {
|
|
2591
|
-
left: t === oe.SMALL ?
|
|
2599
|
+
left: t === oe.SMALL ? We.SMALL : We.MEDIUM,
|
|
2592
2600
|
transformOrigin: "left top",
|
|
2593
|
-
top: r === 112 && a && t === oe.MEDIUM ?
|
|
2601
|
+
top: r === 112 && a && t === oe.MEDIUM ? We.MEDIUM : void 0
|
|
2594
2602
|
},
|
|
2595
2603
|
suffixStyles: {
|
|
2596
2604
|
right: Ln(t)
|
|
@@ -2598,9 +2606,9 @@ const Et = Object.assign(pn, {
|
|
|
2598
2606
|
textareaStyles: {
|
|
2599
2607
|
minHeight: n,
|
|
2600
2608
|
// Для fill resize flex: 1
|
|
2601
|
-
...s ===
|
|
2609
|
+
...s === Pe.FILL && { flex: 1, minHeight: 0 },
|
|
2602
2610
|
// Для fixed resize фиксированная высота
|
|
2603
|
-
...s ===
|
|
2611
|
+
...s === Pe.FIXED && r && { height: n }
|
|
2604
2612
|
}
|
|
2605
2613
|
};
|
|
2606
2614
|
}, zn = Q(
|
|
@@ -2612,10 +2620,10 @@ const Et = Object.assign(pn, {
|
|
|
2612
2620
|
minLength: i,
|
|
2613
2621
|
autoFocus: n,
|
|
2614
2622
|
size: c = oe.MEDIUM,
|
|
2615
|
-
textareaProps:
|
|
2623
|
+
textareaProps: p,
|
|
2616
2624
|
error: d,
|
|
2617
2625
|
disabled: f,
|
|
2618
|
-
loading:
|
|
2626
|
+
loading: _,
|
|
2619
2627
|
helper: g,
|
|
2620
2628
|
suffix: h,
|
|
2621
2629
|
clearable: b = !1,
|
|
@@ -2629,38 +2637,38 @@ const Et = Object.assign(pn, {
|
|
|
2629
2637
|
wrapperProps: k,
|
|
2630
2638
|
labelProps: T,
|
|
2631
2639
|
helperProps: I,
|
|
2632
|
-
showGrip:
|
|
2640
|
+
showGrip: B,
|
|
2633
2641
|
minHeight: N,
|
|
2634
|
-
resize:
|
|
2642
|
+
resize: W,
|
|
2635
2643
|
...x
|
|
2636
|
-
},
|
|
2637
|
-
const O = (t || "").length > 0, $ = w && !!a && (c === oe.SMALL || N !== 48),
|
|
2644
|
+
}, V) => {
|
|
2645
|
+
const O = (t || "").length > 0, $ = w && !!a && (c === oe.SMALL || N !== 48), F = b && O && !(f || _), H = () => {
|
|
2638
2646
|
r == null || r("");
|
|
2639
|
-
}, G =
|
|
2640
|
-
|
|
2647
|
+
}, G = F ? /* @__PURE__ */ o.jsx(
|
|
2648
|
+
kt,
|
|
2641
2649
|
{
|
|
2642
2650
|
size: En(c),
|
|
2643
2651
|
color: "var(--icon-secondary)",
|
|
2644
|
-
onClick:
|
|
2652
|
+
onClick: H,
|
|
2645
2653
|
style: { cursor: "pointer" },
|
|
2646
2654
|
"data-testid": "x-icon"
|
|
2647
2655
|
}
|
|
2648
|
-
) : h, Z = Mn(c, N, $ && O,
|
|
2656
|
+
) : h, Z = Mn(c, N, $ && O, W), te = Sn(c, N), ae = {
|
|
2649
2657
|
rows: R,
|
|
2650
2658
|
minLength: i,
|
|
2651
2659
|
autoFocus: n,
|
|
2652
|
-
resize:
|
|
2653
|
-
...
|
|
2660
|
+
resize: W,
|
|
2661
|
+
...p
|
|
2654
2662
|
};
|
|
2655
2663
|
return /* @__PURE__ */ o.jsx(
|
|
2656
|
-
|
|
2664
|
+
At,
|
|
2657
2665
|
{
|
|
2658
|
-
ref:
|
|
2666
|
+
ref: V,
|
|
2659
2667
|
component: "textarea",
|
|
2660
2668
|
size: te,
|
|
2661
2669
|
error: d,
|
|
2662
|
-
disabled: f ||
|
|
2663
|
-
loading:
|
|
2670
|
+
disabled: f || _,
|
|
2671
|
+
loading: _,
|
|
2664
2672
|
helper: g,
|
|
2665
2673
|
suffix: G,
|
|
2666
2674
|
id: y,
|
|
@@ -2682,8 +2690,8 @@ const Et = Object.assign(pn, {
|
|
|
2682
2690
|
showLimit: D && (N === 112 || c === oe.SMALL),
|
|
2683
2691
|
maxLength: s,
|
|
2684
2692
|
inputProps: ae,
|
|
2685
|
-
resize:
|
|
2686
|
-
showGrip:
|
|
2693
|
+
resize: W,
|
|
2694
|
+
showGrip: B,
|
|
2687
2695
|
...x
|
|
2688
2696
|
}
|
|
2689
2697
|
);
|
|
@@ -2700,14 +2708,14 @@ const Et = Object.assign(pn, {
|
|
|
2700
2708
|
disabled: i = !1,
|
|
2701
2709
|
"data-testid": n,
|
|
2702
2710
|
"aria-label": c,
|
|
2703
|
-
"aria-describedby":
|
|
2711
|
+
"aria-describedby": p
|
|
2704
2712
|
}) => {
|
|
2705
|
-
const d = !!r, f =
|
|
2713
|
+
const d = !!r, f = U(
|
|
2706
2714
|
Xe.helper,
|
|
2707
2715
|
d && Xe["helper--error"],
|
|
2708
2716
|
i && Xe["helper--disabled"],
|
|
2709
2717
|
a
|
|
2710
|
-
),
|
|
2718
|
+
), _ = i ? t : r || t;
|
|
2711
2719
|
return /* @__PURE__ */ o.jsx(
|
|
2712
2720
|
"div",
|
|
2713
2721
|
{
|
|
@@ -2715,8 +2723,8 @@ const Et = Object.assign(pn, {
|
|
|
2715
2723
|
style: s,
|
|
2716
2724
|
"data-testid": n,
|
|
2717
2725
|
"aria-label": c,
|
|
2718
|
-
"aria-describedby":
|
|
2719
|
-
children: /* @__PURE__ */ o.jsx("p", { children:
|
|
2726
|
+
"aria-describedby": p,
|
|
2727
|
+
children: /* @__PURE__ */ o.jsx("p", { children: _ })
|
|
2720
2728
|
}
|
|
2721
2729
|
);
|
|
2722
2730
|
};
|