skillgrid 0.0.24 → 0.0.25
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/components/InputBase/Input.type.d.ts +4 -0
- package/dist/components/InputBase/InputBase.type.d.ts +7 -3
- package/dist/components/TextArea/TextArea.type.d.ts +6 -2
- package/dist/components/TextInput/TextInput.type.d.ts +6 -2
- package/dist/index.cjs.js +11 -11
- package/dist/index.css +1 -1
- package/dist/index.es.js +957 -930
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as Et from "react";
|
|
2
|
-
import Lt, { forwardRef as
|
|
3
|
-
import { clsx as
|
|
2
|
+
import Lt, { forwardRef as te, useState as Ne, useEffect as Ee, useRef as ze, useCallback as Se, Fragment as Mt, createContext as ra, useContext as sa, useLayoutEffect as na, useImperativeHandle as oa, useId as $t } from "react";
|
|
3
|
+
import { clsx as V } from "clsx";
|
|
4
4
|
import './index.css';function ia(t) {
|
|
5
5
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
6
6
|
}
|
|
7
|
-
var
|
|
7
|
+
var Ue = { exports: {} }, Re = {};
|
|
8
8
|
/**
|
|
9
9
|
* @license React
|
|
10
10
|
* react-jsx-runtime.production.min.js
|
|
@@ -16,19 +16,19 @@ var Be = { exports: {} }, ke = {};
|
|
|
16
16
|
*/
|
|
17
17
|
var ft;
|
|
18
18
|
function la() {
|
|
19
|
-
if (ft) return
|
|
19
|
+
if (ft) return Re;
|
|
20
20
|
ft = 1;
|
|
21
21
|
var t = Lt, r = Symbol.for("react.element"), a = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, i = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, n = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
22
|
-
function c(
|
|
23
|
-
var
|
|
24
|
-
f !== void 0 && (
|
|
25
|
-
for (
|
|
26
|
-
if (
|
|
27
|
-
return { $$typeof: r, type:
|
|
22
|
+
function c(_, d, f) {
|
|
23
|
+
var p, h = {}, b = null, y = null;
|
|
24
|
+
f !== void 0 && (b = "" + f), d.key !== void 0 && (b = "" + d.key), d.ref !== void 0 && (y = d.ref);
|
|
25
|
+
for (p in d) s.call(d, p) && !n.hasOwnProperty(p) && (h[p] = d[p]);
|
|
26
|
+
if (_ && _.defaultProps) for (p in d = _.defaultProps, d) h[p] === void 0 && (h[p] = d[p]);
|
|
27
|
+
return { $$typeof: r, type: _, key: b, ref: y, props: h, _owner: i.current };
|
|
28
28
|
}
|
|
29
|
-
return
|
|
29
|
+
return Re.Fragment = a, Re.jsx = c, Re.jsxs = c, Re;
|
|
30
30
|
}
|
|
31
|
-
var
|
|
31
|
+
var ke = {};
|
|
32
32
|
/**
|
|
33
33
|
* @license React
|
|
34
34
|
* react-jsx-runtime.development.js
|
|
@@ -41,54 +41,54 @@ var Te = {};
|
|
|
41
41
|
var gt;
|
|
42
42
|
function ca() {
|
|
43
43
|
return gt || (gt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
44
|
-
var t = Lt, r = Symbol.for("react.element"), a = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), n = Symbol.for("react.profiler"), c = Symbol.for("react.provider"),
|
|
45
|
-
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"), _ = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), b = Symbol.for("react.lazy"), y = Symbol.for("react.offscreen"), x = Symbol.iterator, M = "@@iterator";
|
|
45
|
+
function S(e) {
|
|
46
46
|
if (e === null || typeof e != "object")
|
|
47
47
|
return null;
|
|
48
|
-
var l =
|
|
48
|
+
var l = x && e[x] || e[M];
|
|
49
49
|
return typeof l == "function" ? l : null;
|
|
50
50
|
}
|
|
51
|
-
var
|
|
52
|
-
function
|
|
51
|
+
var C = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
52
|
+
function g(e) {
|
|
53
53
|
{
|
|
54
54
|
for (var l = arguments.length, u = new Array(l > 1 ? l - 1 : 0), v = 1; v < l; v++)
|
|
55
55
|
u[v - 1] = arguments[v];
|
|
56
|
-
|
|
56
|
+
$("error", e, u);
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
|
-
function
|
|
59
|
+
function $(e, l, u) {
|
|
60
60
|
{
|
|
61
|
-
var v =
|
|
61
|
+
var v = C.ReactDebugCurrentFrame, I = v.getStackAddendum();
|
|
62
62
|
I !== "" && (l += "%s", u = u.concat([I]));
|
|
63
|
-
var
|
|
64
|
-
return String(
|
|
63
|
+
var R = u.map(function(E) {
|
|
64
|
+
return String(E);
|
|
65
65
|
});
|
|
66
|
-
|
|
66
|
+
R.unshift("Warning: " + l), Function.prototype.apply.call(console[e], console, R);
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
|
-
var
|
|
70
|
-
|
|
71
|
-
function
|
|
72
|
-
return !!(typeof e == "string" || typeof e == "function" || e === s || e === n ||
|
|
69
|
+
var k = !1, D = !1, T = !1, A = !1, N = !1, U;
|
|
70
|
+
U = Symbol.for("react.module.reference");
|
|
71
|
+
function q(e) {
|
|
72
|
+
return !!(typeof e == "string" || typeof e == "function" || e === s || e === n || N || e === i || e === f || e === p || A || e === y || k || D || T || typeof e == "object" && e !== null && (e.$$typeof === b || e.$$typeof === h || e.$$typeof === c || e.$$typeof === _ || e.$$typeof === d || // This needs to include all possible module reference object
|
|
73
73
|
// types supported by any Flight configuration anywhere since
|
|
74
74
|
// we don't know which Flight build this will end up being used
|
|
75
75
|
// with.
|
|
76
|
-
e.$$typeof ===
|
|
76
|
+
e.$$typeof === U || e.getModuleId !== void 0));
|
|
77
77
|
}
|
|
78
|
-
function
|
|
78
|
+
function z(e, l, u) {
|
|
79
79
|
var v = e.displayName;
|
|
80
80
|
if (v)
|
|
81
81
|
return v;
|
|
82
82
|
var I = l.displayName || l.name || "";
|
|
83
83
|
return I !== "" ? u + "(" + I + ")" : u;
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function O(e) {
|
|
86
86
|
return e.displayName || "Context";
|
|
87
87
|
}
|
|
88
|
-
function
|
|
88
|
+
function m(e) {
|
|
89
89
|
if (e == null)
|
|
90
90
|
return null;
|
|
91
|
-
if (typeof e.tag == "number" &&
|
|
91
|
+
if (typeof e.tag == "number" && g("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
92
92
|
return e.displayName || e.name || null;
|
|
93
93
|
if (typeof e == "string")
|
|
94
94
|
return e;
|
|
@@ -103,26 +103,26 @@ function ca() {
|
|
|
103
103
|
return "StrictMode";
|
|
104
104
|
case f:
|
|
105
105
|
return "Suspense";
|
|
106
|
-
case
|
|
106
|
+
case p:
|
|
107
107
|
return "SuspenseList";
|
|
108
108
|
}
|
|
109
109
|
if (typeof e == "object")
|
|
110
110
|
switch (e.$$typeof) {
|
|
111
|
-
case
|
|
111
|
+
case _:
|
|
112
112
|
var l = e;
|
|
113
|
-
return
|
|
113
|
+
return O(l) + ".Consumer";
|
|
114
114
|
case c:
|
|
115
115
|
var u = e;
|
|
116
|
-
return
|
|
116
|
+
return O(u._context) + ".Provider";
|
|
117
117
|
case d:
|
|
118
|
-
return
|
|
119
|
-
case
|
|
118
|
+
return z(e, e.render, "ForwardRef");
|
|
119
|
+
case h:
|
|
120
120
|
var v = e.displayName || null;
|
|
121
|
-
return v !== null ? v :
|
|
122
|
-
case
|
|
123
|
-
var I = e,
|
|
121
|
+
return v !== null ? v : m(e.type) || "Memo";
|
|
122
|
+
case b: {
|
|
123
|
+
var I = e, R = I._payload, E = I._init;
|
|
124
124
|
try {
|
|
125
|
-
return
|
|
125
|
+
return m(E(R));
|
|
126
126
|
} catch {
|
|
127
127
|
return null;
|
|
128
128
|
}
|
|
@@ -130,18 +130,18 @@ function ca() {
|
|
|
130
130
|
}
|
|
131
131
|
return null;
|
|
132
132
|
}
|
|
133
|
-
var
|
|
134
|
-
function
|
|
133
|
+
var j = Object.assign, B = 0, G, H, Q, ae, J, re, se;
|
|
134
|
+
function de() {
|
|
135
135
|
}
|
|
136
|
-
|
|
137
|
-
function
|
|
136
|
+
de.__reactDisabledLog = !0;
|
|
137
|
+
function ve() {
|
|
138
138
|
{
|
|
139
139
|
if (B === 0) {
|
|
140
|
-
|
|
140
|
+
G = console.log, H = console.info, Q = console.warn, ae = console.error, J = console.group, re = console.groupCollapsed, se = console.groupEnd;
|
|
141
141
|
var e = {
|
|
142
142
|
configurable: !0,
|
|
143
143
|
enumerable: !0,
|
|
144
|
-
value:
|
|
144
|
+
value: de,
|
|
145
145
|
writable: !0
|
|
146
146
|
};
|
|
147
147
|
Object.defineProperties(console, {
|
|
@@ -157,7 +157,7 @@ function ca() {
|
|
|
157
157
|
B++;
|
|
158
158
|
}
|
|
159
159
|
}
|
|
160
|
-
function
|
|
160
|
+
function ie() {
|
|
161
161
|
{
|
|
162
162
|
if (B--, B === 0) {
|
|
163
163
|
var e = {
|
|
@@ -166,34 +166,34 @@ function ca() {
|
|
|
166
166
|
writable: !0
|
|
167
167
|
};
|
|
168
168
|
Object.defineProperties(console, {
|
|
169
|
-
log:
|
|
170
|
-
value: V
|
|
171
|
-
}),
|
|
172
|
-
info: $({}, e, {
|
|
169
|
+
log: j({}, e, {
|
|
173
170
|
value: G
|
|
174
171
|
}),
|
|
175
|
-
|
|
176
|
-
value:
|
|
172
|
+
info: j({}, e, {
|
|
173
|
+
value: H
|
|
177
174
|
}),
|
|
178
|
-
|
|
179
|
-
value:
|
|
175
|
+
warn: j({}, e, {
|
|
176
|
+
value: Q
|
|
180
177
|
}),
|
|
181
|
-
|
|
178
|
+
error: j({}, e, {
|
|
182
179
|
value: ae
|
|
183
180
|
}),
|
|
184
|
-
|
|
181
|
+
group: j({}, e, {
|
|
182
|
+
value: J
|
|
183
|
+
}),
|
|
184
|
+
groupCollapsed: j({}, e, {
|
|
185
185
|
value: re
|
|
186
186
|
}),
|
|
187
|
-
groupEnd:
|
|
188
|
-
value:
|
|
187
|
+
groupEnd: j({}, e, {
|
|
188
|
+
value: se
|
|
189
189
|
})
|
|
190
190
|
});
|
|
191
191
|
}
|
|
192
|
-
B < 0 &&
|
|
192
|
+
B < 0 && g("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
193
193
|
}
|
|
194
194
|
}
|
|
195
|
-
var
|
|
196
|
-
function
|
|
195
|
+
var ye = C.ReactCurrentDispatcher, ue;
|
|
196
|
+
function le(e, l, u) {
|
|
197
197
|
{
|
|
198
198
|
if (ue === void 0)
|
|
199
199
|
try {
|
|
@@ -206,147 +206,147 @@ function ca() {
|
|
|
206
206
|
` + ue + e;
|
|
207
207
|
}
|
|
208
208
|
}
|
|
209
|
-
var
|
|
209
|
+
var me = !1, _e;
|
|
210
210
|
{
|
|
211
|
-
var
|
|
212
|
-
|
|
211
|
+
var xe = typeof WeakMap == "function" ? WeakMap : Map;
|
|
212
|
+
_e = new xe();
|
|
213
213
|
}
|
|
214
|
-
function
|
|
215
|
-
if (!e ||
|
|
214
|
+
function De(e, l) {
|
|
215
|
+
if (!e || me)
|
|
216
216
|
return "";
|
|
217
217
|
{
|
|
218
|
-
var u =
|
|
218
|
+
var u = _e.get(e);
|
|
219
219
|
if (u !== void 0)
|
|
220
220
|
return u;
|
|
221
221
|
}
|
|
222
222
|
var v;
|
|
223
|
-
|
|
223
|
+
me = !0;
|
|
224
224
|
var I = Error.prepareStackTrace;
|
|
225
225
|
Error.prepareStackTrace = void 0;
|
|
226
|
-
var
|
|
227
|
-
|
|
226
|
+
var R;
|
|
227
|
+
R = ye.current, ye.current = null, ve();
|
|
228
228
|
try {
|
|
229
229
|
if (l) {
|
|
230
|
-
var
|
|
230
|
+
var E = function() {
|
|
231
231
|
throw Error();
|
|
232
232
|
};
|
|
233
|
-
if (Object.defineProperty(
|
|
233
|
+
if (Object.defineProperty(E.prototype, "props", {
|
|
234
234
|
set: function() {
|
|
235
235
|
throw Error();
|
|
236
236
|
}
|
|
237
237
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
238
238
|
try {
|
|
239
|
-
Reflect.construct(
|
|
240
|
-
} catch (
|
|
241
|
-
v =
|
|
239
|
+
Reflect.construct(E, []);
|
|
240
|
+
} catch (ee) {
|
|
241
|
+
v = ee;
|
|
242
242
|
}
|
|
243
|
-
Reflect.construct(e, [],
|
|
243
|
+
Reflect.construct(e, [], E);
|
|
244
244
|
} else {
|
|
245
245
|
try {
|
|
246
|
-
|
|
247
|
-
} catch (
|
|
248
|
-
v =
|
|
246
|
+
E.call();
|
|
247
|
+
} catch (ee) {
|
|
248
|
+
v = ee;
|
|
249
249
|
}
|
|
250
|
-
e.call(
|
|
250
|
+
e.call(E.prototype);
|
|
251
251
|
}
|
|
252
252
|
} else {
|
|
253
253
|
try {
|
|
254
254
|
throw Error();
|
|
255
|
-
} catch (
|
|
256
|
-
v =
|
|
255
|
+
} catch (ee) {
|
|
256
|
+
v = ee;
|
|
257
257
|
}
|
|
258
258
|
e();
|
|
259
259
|
}
|
|
260
|
-
} catch (
|
|
261
|
-
if (
|
|
262
|
-
for (var
|
|
263
|
-
`),
|
|
264
|
-
`), F =
|
|
265
|
-
|
|
266
|
-
for (; F >= 1 &&
|
|
267
|
-
if (
|
|
268
|
-
if (F !== 1 ||
|
|
260
|
+
} catch (ee) {
|
|
261
|
+
if (ee && v && typeof ee.stack == "string") {
|
|
262
|
+
for (var w = ee.stack.split(`
|
|
263
|
+
`), K = v.stack.split(`
|
|
264
|
+
`), F = w.length - 1, W = K.length - 1; F >= 1 && W >= 0 && w[F] !== K[W]; )
|
|
265
|
+
W--;
|
|
266
|
+
for (; F >= 1 && W >= 0; F--, W--)
|
|
267
|
+
if (w[F] !== K[W]) {
|
|
268
|
+
if (F !== 1 || W !== 1)
|
|
269
269
|
do
|
|
270
|
-
if (F--,
|
|
270
|
+
if (F--, W--, W < 0 || w[F] !== K[W]) {
|
|
271
271
|
var ne = `
|
|
272
|
-
` +
|
|
273
|
-
return e.displayName && ne.includes("<anonymous>") && (ne = ne.replace("<anonymous>", e.displayName)), typeof e == "function" &&
|
|
272
|
+
` + w[F].replace(" at new ", " at ");
|
|
273
|
+
return e.displayName && ne.includes("<anonymous>") && (ne = ne.replace("<anonymous>", e.displayName)), typeof e == "function" && _e.set(e, ne), ne;
|
|
274
274
|
}
|
|
275
|
-
while (F >= 1 &&
|
|
275
|
+
while (F >= 1 && W >= 0);
|
|
276
276
|
break;
|
|
277
277
|
}
|
|
278
278
|
}
|
|
279
279
|
} finally {
|
|
280
|
-
|
|
280
|
+
me = !1, ye.current = R, ie(), Error.prepareStackTrace = I;
|
|
281
281
|
}
|
|
282
|
-
var Me = e ? e.displayName || e.name : "",
|
|
283
|
-
return typeof e == "function" &&
|
|
282
|
+
var Me = e ? e.displayName || e.name : "", Ce = Me ? le(Me) : "";
|
|
283
|
+
return typeof e == "function" && _e.set(e, Ce), Ce;
|
|
284
284
|
}
|
|
285
|
-
function
|
|
286
|
-
return
|
|
285
|
+
function We(e, l, u) {
|
|
286
|
+
return De(e, !1);
|
|
287
287
|
}
|
|
288
|
-
function
|
|
288
|
+
function Ve(e) {
|
|
289
289
|
var l = e.prototype;
|
|
290
290
|
return !!(l && l.isReactComponent);
|
|
291
291
|
}
|
|
292
|
-
function
|
|
292
|
+
function Z(e, l, u) {
|
|
293
293
|
if (e == null)
|
|
294
294
|
return "";
|
|
295
295
|
if (typeof e == "function")
|
|
296
|
-
return
|
|
296
|
+
return De(e, Ve(e));
|
|
297
297
|
if (typeof e == "string")
|
|
298
|
-
return
|
|
298
|
+
return le(e);
|
|
299
299
|
switch (e) {
|
|
300
300
|
case f:
|
|
301
|
-
return
|
|
302
|
-
case
|
|
303
|
-
return
|
|
301
|
+
return le("Suspense");
|
|
302
|
+
case p:
|
|
303
|
+
return le("SuspenseList");
|
|
304
304
|
}
|
|
305
305
|
if (typeof e == "object")
|
|
306
306
|
switch (e.$$typeof) {
|
|
307
307
|
case d:
|
|
308
|
-
return
|
|
309
|
-
case
|
|
310
|
-
return
|
|
311
|
-
case
|
|
312
|
-
var v = e, I = v._payload,
|
|
308
|
+
return We(e.render);
|
|
309
|
+
case h:
|
|
310
|
+
return Z(e.type, l, u);
|
|
311
|
+
case b: {
|
|
312
|
+
var v = e, I = v._payload, R = v._init;
|
|
313
313
|
try {
|
|
314
|
-
return
|
|
314
|
+
return Z(R(I), l, u);
|
|
315
315
|
} catch {
|
|
316
316
|
}
|
|
317
317
|
}
|
|
318
318
|
}
|
|
319
319
|
return "";
|
|
320
320
|
}
|
|
321
|
-
var
|
|
322
|
-
function
|
|
321
|
+
var Y = Object.prototype.hasOwnProperty, ce = {}, tt = C.ReactDebugCurrentFrame;
|
|
322
|
+
function Oe(e) {
|
|
323
323
|
if (e) {
|
|
324
|
-
var l = e._owner, u =
|
|
324
|
+
var l = e._owner, u = Z(e.type, e._source, l ? l.type : null);
|
|
325
325
|
tt.setExtraStackFrame(u);
|
|
326
326
|
} else
|
|
327
327
|
tt.setExtraStackFrame(null);
|
|
328
328
|
}
|
|
329
329
|
function Nt(e, l, u, v, I) {
|
|
330
330
|
{
|
|
331
|
-
var
|
|
332
|
-
for (var
|
|
333
|
-
if (
|
|
334
|
-
var
|
|
331
|
+
var R = Function.call.bind(Y);
|
|
332
|
+
for (var E in e)
|
|
333
|
+
if (R(e, E)) {
|
|
334
|
+
var w = void 0;
|
|
335
335
|
try {
|
|
336
|
-
if (typeof e[
|
|
337
|
-
var
|
|
338
|
-
throw
|
|
336
|
+
if (typeof e[E] != "function") {
|
|
337
|
+
var K = Error((v || "React class") + ": " + u + " type `" + E + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[E] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
338
|
+
throw K.name = "Invariant Violation", K;
|
|
339
339
|
}
|
|
340
|
-
|
|
340
|
+
w = e[E](l, E, v, u, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
341
341
|
} catch (F) {
|
|
342
|
-
|
|
342
|
+
w = F;
|
|
343
343
|
}
|
|
344
|
-
|
|
344
|
+
w && !(w instanceof Error) && (Oe(I), g("%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, E, typeof w), Oe(null)), w instanceof Error && !(w.message in ce) && (ce[w.message] = !0, Oe(I), g("Failed %s type: %s", u, w.message), Oe(null));
|
|
345
345
|
}
|
|
346
346
|
}
|
|
347
347
|
}
|
|
348
348
|
var Dt = Array.isArray;
|
|
349
|
-
function
|
|
349
|
+
function He(e) {
|
|
350
350
|
return Dt(e);
|
|
351
351
|
}
|
|
352
352
|
function Ot(e) {
|
|
@@ -367,16 +367,16 @@ function ca() {
|
|
|
367
367
|
}
|
|
368
368
|
function rt(e) {
|
|
369
369
|
if (Ut(e))
|
|
370
|
-
return
|
|
370
|
+
return g("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ot(e)), at(e);
|
|
371
371
|
}
|
|
372
|
-
var st =
|
|
372
|
+
var st = C.ReactCurrentOwner, Bt = {
|
|
373
373
|
key: !0,
|
|
374
374
|
ref: !0,
|
|
375
375
|
__self: !0,
|
|
376
376
|
__source: !0
|
|
377
377
|
}, nt, ot;
|
|
378
378
|
function Ft(e) {
|
|
379
|
-
if (
|
|
379
|
+
if (Y.call(e, "ref")) {
|
|
380
380
|
var l = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
381
381
|
if (l && l.isReactWarning)
|
|
382
382
|
return !1;
|
|
@@ -384,7 +384,7 @@ function ca() {
|
|
|
384
384
|
return e.ref !== void 0;
|
|
385
385
|
}
|
|
386
386
|
function Pt(e) {
|
|
387
|
-
if (
|
|
387
|
+
if (Y.call(e, "key")) {
|
|
388
388
|
var l = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
389
389
|
if (l && l.isReactWarning)
|
|
390
390
|
return !1;
|
|
@@ -397,7 +397,7 @@ function ca() {
|
|
|
397
397
|
function Wt(e, l) {
|
|
398
398
|
{
|
|
399
399
|
var u = function() {
|
|
400
|
-
nt || (nt = !0,
|
|
400
|
+
nt || (nt = !0, g("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", l));
|
|
401
401
|
};
|
|
402
402
|
u.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
403
403
|
get: u,
|
|
@@ -408,7 +408,7 @@ function ca() {
|
|
|
408
408
|
function Vt(e, l) {
|
|
409
409
|
{
|
|
410
410
|
var u = function() {
|
|
411
|
-
ot || (ot = !0,
|
|
411
|
+
ot || (ot = !0, g("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", l));
|
|
412
412
|
};
|
|
413
413
|
u.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
414
414
|
get: u,
|
|
@@ -416,70 +416,70 @@ function ca() {
|
|
|
416
416
|
});
|
|
417
417
|
}
|
|
418
418
|
}
|
|
419
|
-
var Ht = function(e, l, u, v, I,
|
|
420
|
-
var
|
|
419
|
+
var Ht = function(e, l, u, v, I, R, E) {
|
|
420
|
+
var w = {
|
|
421
421
|
// This tag allows us to uniquely identify this as a React Element
|
|
422
422
|
$$typeof: r,
|
|
423
423
|
// Built-in properties that belong on the element
|
|
424
424
|
type: e,
|
|
425
425
|
key: l,
|
|
426
426
|
ref: u,
|
|
427
|
-
props:
|
|
427
|
+
props: E,
|
|
428
428
|
// Record the component responsible for creating this element.
|
|
429
|
-
_owner:
|
|
429
|
+
_owner: R
|
|
430
430
|
};
|
|
431
|
-
return
|
|
431
|
+
return w._store = {}, Object.defineProperty(w._store, "validated", {
|
|
432
432
|
configurable: !1,
|
|
433
433
|
enumerable: !1,
|
|
434
434
|
writable: !0,
|
|
435
435
|
value: !1
|
|
436
|
-
}), Object.defineProperty(
|
|
436
|
+
}), Object.defineProperty(w, "_self", {
|
|
437
437
|
configurable: !1,
|
|
438
438
|
enumerable: !1,
|
|
439
439
|
writable: !1,
|
|
440
440
|
value: v
|
|
441
|
-
}), Object.defineProperty(
|
|
441
|
+
}), Object.defineProperty(w, "_source", {
|
|
442
442
|
configurable: !1,
|
|
443
443
|
enumerable: !1,
|
|
444
444
|
writable: !1,
|
|
445
445
|
value: I
|
|
446
|
-
}), Object.freeze && (Object.freeze(
|
|
446
|
+
}), Object.freeze && (Object.freeze(w.props), Object.freeze(w)), w;
|
|
447
447
|
};
|
|
448
448
|
function qt(e, l, u, v, I) {
|
|
449
449
|
{
|
|
450
|
-
var
|
|
451
|
-
u !== void 0 && (rt(u),
|
|
452
|
-
for (
|
|
453
|
-
|
|
450
|
+
var R, E = {}, w = null, K = null;
|
|
451
|
+
u !== void 0 && (rt(u), w = "" + u), Pt(l) && (rt(l.key), w = "" + l.key), Ft(l) && (K = l.ref, zt(l, I));
|
|
452
|
+
for (R in l)
|
|
453
|
+
Y.call(l, R) && !Bt.hasOwnProperty(R) && (E[R] = l[R]);
|
|
454
454
|
if (e && e.defaultProps) {
|
|
455
455
|
var F = e.defaultProps;
|
|
456
|
-
for (
|
|
457
|
-
|
|
456
|
+
for (R in F)
|
|
457
|
+
E[R] === void 0 && (E[R] = F[R]);
|
|
458
458
|
}
|
|
459
|
-
if (
|
|
460
|
-
var
|
|
461
|
-
|
|
459
|
+
if (w || K) {
|
|
460
|
+
var W = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
461
|
+
w && Wt(E, W), K && Vt(E, W);
|
|
462
462
|
}
|
|
463
|
-
return Ht(e,
|
|
463
|
+
return Ht(e, w, K, I, v, st.current, E);
|
|
464
464
|
}
|
|
465
465
|
}
|
|
466
|
-
var
|
|
466
|
+
var qe = C.ReactCurrentOwner, it = C.ReactDebugCurrentFrame;
|
|
467
467
|
function Le(e) {
|
|
468
468
|
if (e) {
|
|
469
|
-
var l = e._owner, u =
|
|
469
|
+
var l = e._owner, u = Z(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 =
|
|
481
|
+
if (qe.current) {
|
|
482
|
+
var e = m(qe.current.type);
|
|
483
483
|
if (e)
|
|
484
484
|
return `
|
|
485
485
|
|
|
@@ -514,25 +514,25 @@ Check the top-level render call using <` + 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 " + m(e._owner.type) + "."), Le(e), g('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
|
-
var I =
|
|
532
|
+
var I = S(e);
|
|
533
533
|
if (typeof I == "function" && I !== e.entries)
|
|
534
|
-
for (var
|
|
535
|
-
|
|
534
|
+
for (var R = I.call(e), E; !(E = R.next()).done; )
|
|
535
|
+
Ze(E.value) && dt(E.value, l);
|
|
536
536
|
}
|
|
537
537
|
}
|
|
538
538
|
}
|
|
@@ -546,19 +546,19 @@ Check the top-level render call using <` + u + ">.");
|
|
|
546
546
|
u = l.propTypes;
|
|
547
547
|
else if (typeof l == "object" && (l.$$typeof === d || // Note: Memo only checks outer props here.
|
|
548
548
|
// Inner props are checked in the reconciler.
|
|
549
|
-
l.$$typeof ===
|
|
549
|
+
l.$$typeof === h))
|
|
550
550
|
u = l.propTypes;
|
|
551
551
|
else
|
|
552
552
|
return;
|
|
553
553
|
if (u) {
|
|
554
|
-
var v =
|
|
554
|
+
var v = m(l);
|
|
555
555
|
Nt(u, e.props, "prop", v, e);
|
|
556
|
-
} else if (l.PropTypes !== void 0 && !
|
|
557
|
-
|
|
558
|
-
var I =
|
|
559
|
-
|
|
556
|
+
} else if (l.PropTypes !== void 0 && !Ge) {
|
|
557
|
+
Ge = !0;
|
|
558
|
+
var I = m(l);
|
|
559
|
+
g("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", I || "Unknown");
|
|
560
560
|
}
|
|
561
|
-
typeof l.getDefaultProps == "function" && !l.getDefaultProps.isReactClassApproved &&
|
|
561
|
+
typeof l.getDefaultProps == "function" && !l.getDefaultProps.isReactClassApproved && g("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
562
562
|
}
|
|
563
563
|
}
|
|
564
564
|
function Jt(e) {
|
|
@@ -566,75 +566,75 @@ Check the top-level render call using <` + u + ">.");
|
|
|
566
566
|
for (var l = Object.keys(e.props), u = 0; u < l.length; u++) {
|
|
567
567
|
var v = l[u];
|
|
568
568
|
if (v !== "children" && v !== "key") {
|
|
569
|
-
Le(e),
|
|
569
|
+
Le(e), g("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", v), Le(null);
|
|
570
570
|
break;
|
|
571
571
|
}
|
|
572
572
|
}
|
|
573
|
-
e.ref !== null && (Le(e),
|
|
573
|
+
e.ref !== null && (Le(e), g("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, I, R) {
|
|
578
578
|
{
|
|
579
|
-
var
|
|
580
|
-
if (!
|
|
581
|
-
var
|
|
582
|
-
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (
|
|
583
|
-
var
|
|
584
|
-
|
|
579
|
+
var E = q(e);
|
|
580
|
+
if (!E) {
|
|
581
|
+
var w = "";
|
|
582
|
+
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (w += " 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 K = Gt();
|
|
584
|
+
K ? w += K : w += lt();
|
|
585
585
|
var F;
|
|
586
|
-
e === null ? F = "null" :
|
|
586
|
+
e === null ? F = "null" : He(e) ? F = "array" : e !== void 0 && e.$$typeof === r ? (F = "<" + (m(e.type) || "Unknown") + " />", w = " Did you accidentally export a JSX literal instead of a component?") : F = typeof e, g("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", F, w);
|
|
587
587
|
}
|
|
588
|
-
var
|
|
589
|
-
if (
|
|
590
|
-
return
|
|
591
|
-
if (
|
|
588
|
+
var W = qt(e, l, u, I, R);
|
|
589
|
+
if (W == null)
|
|
590
|
+
return W;
|
|
591
|
+
if (E) {
|
|
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);
|
|
599
599
|
} else
|
|
600
|
-
|
|
600
|
+
g("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
601
601
|
else
|
|
602
602
|
ut(ne, e);
|
|
603
603
|
}
|
|
604
|
-
if (
|
|
605
|
-
var
|
|
604
|
+
if (Y.call(l, "key")) {
|
|
605
|
+
var Ce = m(e), ee = Object.keys(l).filter(function(aa) {
|
|
606
606
|
return aa !== "key";
|
|
607
|
-
}),
|
|
608
|
-
if (!
|
|
609
|
-
var ta =
|
|
610
|
-
|
|
607
|
+
}), Ye = ee.length > 0 ? "{key: someKey, " + ee.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
608
|
+
if (!_t[Ce + Ye]) {
|
|
609
|
+
var ta = ee.length > 0 ? "{" + ee.join(": ..., ") + ": ...}" : "{}";
|
|
610
|
+
g(`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, Ce, ta, Ce), _t[Ce + Ye] = !0;
|
|
616
616
|
}
|
|
617
617
|
}
|
|
618
|
-
return e === s ? Jt(
|
|
618
|
+
return e === s ? Jt(W) : Yt(W), W;
|
|
619
619
|
}
|
|
620
620
|
}
|
|
621
621
|
function Kt(e, l, u) {
|
|
622
|
-
return
|
|
622
|
+
return pt(e, l, u, !0);
|
|
623
623
|
}
|
|
624
624
|
function Xt(e, l, u) {
|
|
625
|
-
return
|
|
625
|
+
return pt(e, l, u, !1);
|
|
626
626
|
}
|
|
627
627
|
var Qt = Xt, ea = Kt;
|
|
628
|
-
|
|
629
|
-
}()),
|
|
628
|
+
ke.Fragment = s, ke.jsx = Qt, ke.jsxs = ea;
|
|
629
|
+
}()), ke;
|
|
630
630
|
}
|
|
631
631
|
var ht;
|
|
632
632
|
function da() {
|
|
633
|
-
return ht || (ht = 1, process.env.NODE_ENV === "production" ?
|
|
633
|
+
return ht || (ht = 1, process.env.NODE_ENV === "production" ? Ue.exports = la() : Ue.exports = ca()), Ue.exports;
|
|
634
634
|
}
|
|
635
635
|
var o = da();
|
|
636
|
-
const ua = (t) => t.as === "a",
|
|
637
|
-
button:
|
|
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", P = {
|
|
637
|
+
button: pa,
|
|
638
638
|
disabled: fa,
|
|
639
639
|
loading: ga,
|
|
640
640
|
neutral: ha,
|
|
@@ -676,27 +676,27 @@ const ua = (t) => t.as === "a", pa = (t) => t.as === void 0 || t.as === "button"
|
|
|
676
676
|
icon: i,
|
|
677
677
|
children: n,
|
|
678
678
|
postfix: c,
|
|
679
|
-
showSubcaption:
|
|
679
|
+
showSubcaption: _,
|
|
680
680
|
subcaption: d,
|
|
681
681
|
size: f
|
|
682
682
|
}) => {
|
|
683
683
|
if (t)
|
|
684
684
|
return /* @__PURE__ */ o.jsx("span", { className: P.loader, "data-testid": "button-loader", "aria-hidden": "true" });
|
|
685
|
-
const
|
|
685
|
+
const p = s === "extra-small", h = parseInt(String(a), 10), b = !isNaN(h) && h >= 0 && h <= 9;
|
|
686
686
|
return /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
687
|
-
r && (a ||
|
|
687
|
+
r && (a || p) && /* @__PURE__ */ o.jsx(
|
|
688
688
|
"span",
|
|
689
689
|
{
|
|
690
690
|
"data-testid": "button-badge",
|
|
691
|
-
className:
|
|
691
|
+
className: V(
|
|
692
692
|
P.badge,
|
|
693
|
-
P[`badge${
|
|
694
|
-
{ [P.circular]:
|
|
693
|
+
P[`badge${p ? "ExtraSmall" : s === "medium" ? "Medium" : "Small"}`],
|
|
694
|
+
{ [P.circular]: b && !p }
|
|
695
695
|
),
|
|
696
|
-
children: !
|
|
696
|
+
children: !p && a
|
|
697
697
|
}
|
|
698
698
|
),
|
|
699
|
-
|
|
699
|
+
_ && f !== "s" && f !== "xs" ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
700
700
|
/* @__PURE__ */ o.jsx("span", { "data-testid": "button-label", className: P.label, children: n }),
|
|
701
701
|
/* @__PURE__ */ o.jsx("span", { "data-testid": "button-subcaption", className: P.subcaption, children: d })
|
|
702
702
|
] }) : n ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
@@ -707,140 +707,140 @@ const ua = (t) => t.as === "a", pa = (t) => t.as === void 0 || t.as === "button"
|
|
|
707
707
|
] })
|
|
708
708
|
] }) : /* @__PURE__ */ o.jsx("span", { "data-testid": "button-icon", className: P.icon, children: i })
|
|
709
709
|
] });
|
|
710
|
-
}, In =
|
|
710
|
+
}, In = te((t, r) => {
|
|
711
711
|
const {
|
|
712
712
|
mode: a = "primary",
|
|
713
713
|
size: s = "m",
|
|
714
714
|
buttonStyle: i = "neutral",
|
|
715
715
|
loading: n = !1,
|
|
716
716
|
disabled: c = !1,
|
|
717
|
-
showBadge:
|
|
717
|
+
showBadge: _ = !1,
|
|
718
718
|
badgeSize: d = "small",
|
|
719
719
|
badgeValue: f,
|
|
720
|
-
showSubcaption:
|
|
721
|
-
subcaption:
|
|
722
|
-
stretched:
|
|
723
|
-
spaceBetween:
|
|
724
|
-
icon:
|
|
725
|
-
postfix:
|
|
726
|
-
className:
|
|
727
|
-
children:
|
|
728
|
-
} = t,
|
|
720
|
+
showSubcaption: p = !1,
|
|
721
|
+
subcaption: h,
|
|
722
|
+
stretched: b = !1,
|
|
723
|
+
spaceBetween: y = !1,
|
|
724
|
+
icon: x,
|
|
725
|
+
postfix: M,
|
|
726
|
+
className: S,
|
|
727
|
+
children: C
|
|
728
|
+
} = t, g = c, $ = n, k = !g && !$, D = !!x && !C, T = V(
|
|
729
729
|
P.button,
|
|
730
730
|
P[s],
|
|
731
731
|
P[a],
|
|
732
732
|
P[i],
|
|
733
733
|
{
|
|
734
|
-
[P.disabled]:
|
|
735
|
-
[P.loading]:
|
|
736
|
-
[P.stretched]:
|
|
737
|
-
[P.spaceBetween]:
|
|
738
|
-
[P.withSubcaption]:
|
|
739
|
-
[P.iconOnly]:
|
|
734
|
+
[P.disabled]: g,
|
|
735
|
+
[P.loading]: $,
|
|
736
|
+
[P.stretched]: b,
|
|
737
|
+
[P.spaceBetween]: y && b,
|
|
738
|
+
[P.withSubcaption]: p && h && s !== "s" && s !== "xs",
|
|
739
|
+
[P.iconOnly]: D
|
|
740
740
|
},
|
|
741
|
-
|
|
742
|
-
),
|
|
743
|
-
isLoading:
|
|
744
|
-
showBadge:
|
|
741
|
+
S
|
|
742
|
+
), A = {
|
|
743
|
+
isLoading: $,
|
|
744
|
+
showBadge: _,
|
|
745
745
|
badgeValue: f,
|
|
746
746
|
badgeSize: d,
|
|
747
|
-
icon:
|
|
748
|
-
children:
|
|
749
|
-
postfix:
|
|
750
|
-
showSubcaption:
|
|
751
|
-
subcaption:
|
|
747
|
+
icon: x,
|
|
748
|
+
children: C,
|
|
749
|
+
postfix: M,
|
|
750
|
+
showSubcaption: p,
|
|
751
|
+
subcaption: h,
|
|
752
752
|
size: s
|
|
753
753
|
};
|
|
754
754
|
if (ua(t)) {
|
|
755
755
|
const {
|
|
756
|
-
href:
|
|
757
|
-
onClick:
|
|
758
|
-
mode:
|
|
759
|
-
size:
|
|
760
|
-
buttonStyle:
|
|
761
|
-
loading:
|
|
762
|
-
disabled:
|
|
756
|
+
href: N,
|
|
757
|
+
onClick: U,
|
|
758
|
+
mode: q,
|
|
759
|
+
size: z,
|
|
760
|
+
buttonStyle: O,
|
|
761
|
+
loading: m,
|
|
762
|
+
disabled: j,
|
|
763
763
|
showBadge: B,
|
|
764
|
-
badgeSize:
|
|
765
|
-
badgeValue:
|
|
766
|
-
showSubcaption:
|
|
767
|
-
subcaption:
|
|
768
|
-
stretched:
|
|
764
|
+
badgeSize: G,
|
|
765
|
+
badgeValue: H,
|
|
766
|
+
showSubcaption: Q,
|
|
767
|
+
subcaption: ae,
|
|
768
|
+
stretched: J,
|
|
769
769
|
spaceBetween: re,
|
|
770
|
-
icon:
|
|
771
|
-
postfix:
|
|
772
|
-
className:
|
|
773
|
-
tabIndex:
|
|
774
|
-
children:
|
|
770
|
+
icon: se,
|
|
771
|
+
postfix: de,
|
|
772
|
+
className: ve,
|
|
773
|
+
tabIndex: ie,
|
|
774
|
+
children: ye,
|
|
775
775
|
"data-testid": ue,
|
|
776
|
-
style:
|
|
777
|
-
...
|
|
778
|
-
} = t,
|
|
779
|
-
|
|
776
|
+
style: le,
|
|
777
|
+
...me
|
|
778
|
+
} = t, _e = (xe) => {
|
|
779
|
+
k && U && U(xe);
|
|
780
780
|
};
|
|
781
781
|
return /* @__PURE__ */ o.jsx(
|
|
782
782
|
"a",
|
|
783
783
|
{
|
|
784
784
|
ref: r,
|
|
785
|
-
className:
|
|
786
|
-
href:
|
|
785
|
+
className: T,
|
|
786
|
+
href: k ? N : void 0,
|
|
787
787
|
tabIndex: t.tabIndex,
|
|
788
|
-
onClick:
|
|
788
|
+
onClick: _e,
|
|
789
789
|
"data-testid": ue,
|
|
790
|
-
"aria-disabled":
|
|
791
|
-
style:
|
|
792
|
-
...
|
|
793
|
-
children: /* @__PURE__ */ o.jsx(bt, { ...
|
|
790
|
+
"aria-disabled": g || $,
|
|
791
|
+
style: le,
|
|
792
|
+
...me,
|
|
793
|
+
children: /* @__PURE__ */ o.jsx(bt, { ...A })
|
|
794
794
|
}
|
|
795
795
|
);
|
|
796
796
|
}
|
|
797
|
-
if (
|
|
797
|
+
if (_a(t)) {
|
|
798
798
|
const {
|
|
799
|
-
type:
|
|
800
|
-
onClick:
|
|
801
|
-
mode:
|
|
802
|
-
size:
|
|
803
|
-
buttonStyle:
|
|
804
|
-
loading:
|
|
805
|
-
disabled:
|
|
799
|
+
type: N = "button",
|
|
800
|
+
onClick: U,
|
|
801
|
+
mode: q,
|
|
802
|
+
size: z,
|
|
803
|
+
buttonStyle: O,
|
|
804
|
+
loading: m,
|
|
805
|
+
disabled: j,
|
|
806
806
|
showBadge: B,
|
|
807
|
-
badgeSize:
|
|
808
|
-
badgeValue:
|
|
809
|
-
showSubcaption:
|
|
810
|
-
subcaption:
|
|
811
|
-
stretched:
|
|
807
|
+
badgeSize: G,
|
|
808
|
+
badgeValue: H,
|
|
809
|
+
showSubcaption: Q,
|
|
810
|
+
subcaption: ae,
|
|
811
|
+
stretched: J,
|
|
812
812
|
spaceBetween: re,
|
|
813
|
-
icon:
|
|
814
|
-
postfix:
|
|
815
|
-
className:
|
|
816
|
-
tabIndex:
|
|
817
|
-
children:
|
|
813
|
+
icon: se,
|
|
814
|
+
postfix: de,
|
|
815
|
+
className: ve,
|
|
816
|
+
tabIndex: ie,
|
|
817
|
+
children: ye,
|
|
818
818
|
"data-testid": ue,
|
|
819
|
-
style:
|
|
820
|
-
...
|
|
821
|
-
} = t,
|
|
822
|
-
|
|
819
|
+
style: le,
|
|
820
|
+
...me
|
|
821
|
+
} = t, _e = (xe) => {
|
|
822
|
+
k && U && U(xe);
|
|
823
823
|
};
|
|
824
824
|
return /* @__PURE__ */ o.jsx(
|
|
825
825
|
"button",
|
|
826
826
|
{
|
|
827
827
|
ref: r,
|
|
828
|
-
type:
|
|
829
|
-
className:
|
|
830
|
-
disabled:
|
|
828
|
+
type: N,
|
|
829
|
+
className: T,
|
|
830
|
+
disabled: g,
|
|
831
831
|
tabIndex: t.tabIndex,
|
|
832
|
-
onClick:
|
|
832
|
+
onClick: _e,
|
|
833
833
|
"data-testid": ue,
|
|
834
|
-
"aria-disabled":
|
|
835
|
-
style:
|
|
836
|
-
...
|
|
837
|
-
children: /* @__PURE__ */ o.jsx(bt, { ...
|
|
834
|
+
"aria-disabled": g || $,
|
|
835
|
+
style: le,
|
|
836
|
+
...me,
|
|
837
|
+
children: /* @__PURE__ */ o.jsx(bt, { ...A })
|
|
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
|
|
@@ -853,8 +853,8 @@ function Ga() {
|
|
|
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 _ = arguments[c];
|
|
857
|
+
_ && (n = i(n, s(_)));
|
|
858
858
|
}
|
|
859
859
|
return n;
|
|
860
860
|
}
|
|
@@ -868,8 +868,8 @@ function Ga() {
|
|
|
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 _ in n)
|
|
872
|
+
r.call(n, _) && n[_] && (c = i(c, _));
|
|
873
873
|
return c;
|
|
874
874
|
}
|
|
875
875
|
function i(n, c) {
|
|
@@ -877,10 +877,10 @@ function Ga() {
|
|
|
877
877
|
}
|
|
878
878
|
t.exports ? (a.default = a, t.exports = a) : window.classNames = a;
|
|
879
879
|
})();
|
|
880
|
-
}(
|
|
880
|
+
}(Je)), Je.exports;
|
|
881
881
|
}
|
|
882
882
|
var Za = Ga();
|
|
883
|
-
const Ie = /* @__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",
|
|
883
|
+
const Ie = /* @__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", pe = {
|
|
884
884
|
avatar: Ya,
|
|
885
885
|
clickable: Ja,
|
|
886
886
|
icon: Ka,
|
|
@@ -901,7 +901,7 @@ const Ie = /* @__PURE__ */ ia(Za), Ya = "_avatar_1kyiq_17", Ja = "_clickable_1ky
|
|
|
901
901
|
"color-contrast": "_color-contrast_1kyiq_167",
|
|
902
902
|
"variant-light": "_variant-light_1kyiq_173",
|
|
903
903
|
"variant-outline": "_variant-outline_1kyiq_245"
|
|
904
|
-
},
|
|
904
|
+
}, Ae = {
|
|
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",
|
|
@@ -929,7 +929,7 @@ const Ie = /* @__PURE__ */ ia(Za), Ya = "_avatar_1kyiq_17", Ja = "_clickable_1ky
|
|
|
929
929
|
function ar(t) {
|
|
930
930
|
return t < mt ? `+${t}` : `${mt}+`;
|
|
931
931
|
}
|
|
932
|
-
function
|
|
932
|
+
function et(t) {
|
|
933
933
|
const r = typeof t == "string" ? t : JSON.stringify(t);
|
|
934
934
|
let a = 5381;
|
|
935
935
|
for (let s = 0; s < r.length; s++) {
|
|
@@ -949,7 +949,7 @@ const rr = [
|
|
|
949
949
|
];
|
|
950
950
|
function sr(t, r = rr) {
|
|
951
951
|
if (!t) return "gray";
|
|
952
|
-
const a =
|
|
952
|
+
const a = et(t), s = Math.abs(a) % r.length;
|
|
953
953
|
return r[s];
|
|
954
954
|
}
|
|
955
955
|
const vt = 2;
|
|
@@ -986,98 +986,98 @@ const ir = {
|
|
|
986
986
|
function lr(t) {
|
|
987
987
|
return ir[t] || "typography-subtitle-1-semibold";
|
|
988
988
|
}
|
|
989
|
-
const cr = "data:image/svg+xml,%3csvg%20opacity='0.9'%20preserveAspectRatio='xMinYMin%20meet'%20viewBox='0%200%20208%20208'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cdefs%3e%3cfilter%20id='shadowW'%20filterUnits='userSpaceOnUse'%3e%3cfeDropShadow%20dx='-2'%20dy='-1'%20stdDeviation='5'%20flood-color='rgba(0,0,0,0.5)'/%3e%3c/filter%3e%3c/defs%3e%3cg%20filter='url(%23shadowW)'%3e%3cpath%20d='M23.9835%20174.59L113.41%20157.735L225.224%20191.671C225.224%20191.671%20250.259%20479.463%20243.525%20478.31C236.655%20477.167%20-7.79434%20482.039%20-8.17876%20476.943C-8.56308%20471.849%20-34.4445%20341.701%20-34.4445%20341.701L23.9835%20174.59Z'%20fill='darkgrey'/%3e%3cpath%20d='M-54.5558%20212.781C-85.688%20282.842%20-94.2122%20303.839%20-94.2122%20303.839L-213.504%20213.002C-214.953%20197.465%20-218.637%20181.68%20-225.636%20167.806C-234.412%20150.606%20-246.154%20149.138%20-259.595%20136.166C-267.368%20128.583%20-275.073%20140.242%20-267.3%20147.825L-259.338%20156.087C-258.869%20160.482%20-255.518%20171.861%20-254.634%20176.226C-267.475%20165.702%20-284.704%20150.246%20-300.665%20144.25C-305.079%20142.644%20-308.958%20144.46%20-311.08%20147.528C-314.628%20148.211%20-317.292%20151.458%20-317.858%20154.963C-321.103%20157.839%20-322.625%20163.354%20-319.254%20167.67C-321.407%20170.323%20-322.376%20173.998%20-320.433%20177.728C-320.274%20177.993%20-320.127%20178.12%20-320.106%20178.395C-320.997%20179.432%20-319.498%20182.78%20-320.337%20184.506C-324.035%20192.401%20-309.357%20221.757%20-285.221%20235.167C-277.291%20250.355%20-262.477%20259.485%20-261.354%20259.677C-234.512%20290.608%20-141.301%20400.999%20-97.2451%20436.169C-47.2868%20476.158%20-12.9855%20418.735%2010.6424%20317.115C34.2598%20215.358%2037.6457%20181.315%2037.6457%20181.315L116.374%20158.482C14.4423%20160.079%20-23.2964%20142.572%20-54.5558%20212.781Z'%20fill='darkgrey'/%3e%3cpath%20d='M116.781%20158.313L114.885%20158.871L61.4974%20174.391L38.0516%20181.145C38.0516%20181.145%2034.6758%20215.325%2011.0481%20316.945C9.47097%20323.572%207.88344%20330.061%206.27525%20336.275C-22.5942%20315.191%20-52.217%20295.131%20-82.0946%20275.368C-75.9632%20261.197%20-67.1116%20240.867%20-54.4359%20212.493C-30.4015%20158.477%20-2.57835%20156.516%2055.793%20157.512C72.5674%20157.77%2091.7239%20158.403%20114.133%20158.096C114.98%20158.309%20115.807%20158.247%20116.781%20158.313Z'%20fill='darkgrey'/%3e%3cpath%20d='M113.269%20157.745C175.26%20159.023%20252.771%20143.897%20266.382%20199.504C279.867%20255.26%20288.576%20280.774%20295.899%20320.932C303.221%20361.091%20322.043%20408.689%20271.897%20417.595C221.75%20426.502%20106.238%20444.495%20106.238%20444.495L78.8767%20384.662C78.8767%20384.662%20170.648%20343.813%20200.242%20332.303L185.17%20211.448L113.269%20157.745Z'%20fill='darkgrey'/%3e%3cpath%20d='M292.122%20302.108C260.506%20305.187%20228.942%20308.953%20198.219%20316.533L185.178%20211.585L140.855%20178.374L114.874%20158.871L114.144%20158.372L113.266%20157.746C127.138%20158.084%20141.774%20157.534%20156.283%20157.131C206.726%20155.818%20255.78%20156.271%20266.252%20199.654C277.643%20246.012%20285.665%20271.578%20292.122%20302.108Z'%20fill='darkgrey'/%3e%3cpath%20d='M108.001%20172.269C119.623%20168.485%20130.939%20164.308%20142.395%20160.12L112.224%20101.608L68.8441%20124.959C69.7222%20125.585%2079.0944%20154.372%2086.547%20177.904C93.7406%20175.977%20100.965%20174.463%20108.001%20172.269Z'%20fill='white'/%3e%3cpath%20d='M99.3655%20112.96C99.0934%20111.18%2098.8213%20109.401%2098.2722%20107.642L68.9864%20125.083C69.5682%20125.455%2073.8492%20138.148%2078.7406%20153.426C89.4856%20141.676%2097.5757%20127.773%2099.3655%20112.96Z'%20fill='darkgrey'/%3e%3cpath%20d='M144.524%2069.1209C143.075%2053.5829%20118.601%2039.3668%2099.9856%2038.5556C91.9262%2038.1943%2089.5107%2031.8684%2086.0605%2037.5291C77.5782%2051.7392%2049.6837%2094.9694%2052.2654%20110.837C56.0862%20133.951%2084.5691%20137.063%20102.228%20127.008C120.022%20116.942%20146.6%2091.1195%20144.524%2069.1209Z'%20fill='white'/%3e%3cpath%20d='M145.753%2072.4915C147.93%2068.3116%20146.317%2063.4483%20142.804%2060.944C142.656%2060.8166%20142.656%2060.8166%20142.507%2060.6894C143.028%2052.8957%20136.915%2047.1257%20129.979%2046.9567C129.007%2045.0914%20127.379%2043.691%20125.24%2042.883C124.903%2042.0778%20124.575%2041.4101%20123.982%2040.9009C122.651%2039.7551%20121.095%2039.3187%20119.441%2039.4435C118.081%2036.0843%20115.925%2033.2005%20112.495%2031.7977C110.348%2030.8519%20108.027%2031.304%20106.311%2032.4027C102.006%2028.5734%2096.789%2025.5051%2091.8112%2025.6038C89.736%2025.6218%2085.678%2026.8973%2084.2724%2032.1268C82.1968%2032.1449%2080.3522%2033.3917%2079.5546%2035.6676C78.427%2039.0759%2080.339%2042.3935%2083.1109%2044.2613C84.719%2045.3863%2086.9841%2046.0462%2089.0391%2045.7526C95.9026%2052.2969%20114.028%2063.1149%20118.148%2062.6657C115.532%2070.202%20113.218%2087.2698%20122.007%2088.1299C124.21%2095.3028%20116.99%20107.894%20121.368%20112.688C129.639%20104.863%20137.246%2095.5655%20141.359%2085.8391C141.496%2085.8288%20141.772%2085.808%20142.047%2085.7872C148.14%2083.9429%20149.527%2076.6377%20145.753%2072.4915Z'%20fill='darkgrey'/%3e%3cpath%20d='M140.151%20104.76C141.594%2096.3432%20132.67%2086.3542%20121.049%2088.3387C116.251%2096.3166%20111.305%20104.167%20106.21%20111.89C109.317%20116.364%20118.141%20121.376%20125.535%20120.264C133.872%20118.804%20138.613%20113.738%20140.151%20104.76Z'%20fill='white'/%3e%3cpath%20d='M156.755%20156.883C153.217%20165.043%20147.805%20172.237%20141.188%20178.136C133.925%20184.639%20125.011%20189.465%20114.809%20191.896C95.2214%20196.558%2072.2825%20189.842%2061.6836%20174.164C58.5559%20169.414%2056.4778%20163.894%2056%20157.561C72.7744%20157.818%2091.9311%20158.451%20114.34%20158.144L113.462%20157.519C127.463%20157.709%20142.098%20157.159%20156.755%20156.883Z'%20fill='white'/%3e%3c/g%3e%3c/svg%3e", dr = "data:image/svg+xml,%3csvg%20viewBox='0%200%20208%20208'%20opacity='0.9'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20filter='url(%23shadow)'%3e%3cpath%20filter='url(%23shadow)'%20d='M127.173%2079.8894C127.189%2079.1933%20128.026%2079.1201%20128.436%2079.4316C128.754%2079.6091%20128.895%2080.1021%20128.809%2080.5518C129.241%2083.1982%20129.581%2085.7106%20130.013%2088.357C136.835%2079.7558%20149.235%2076.9989%20158.979%2083.174C168.086%2088.9941%20171.001%20111.745%20135.501%20120.502C131.5%20123.502%20117%20125.002%20111.753%20103.279C111.682%2093.2427%20118.526%2084.529%20127.173%2079.8894Z'%20fill='darkgrey'/%3e%3cpath%20d='M28.0441%20167.788C21.826%20195.052%2018.7311%20223.361%2014.1881%20250.885C9.42226%20279.982%204.68042%20308.967%20-0.0853729%20338.064L-1.00047%20342.848C14.5039%20346.419%2030.8401%20350.407%2046.3671%20353.868C90.9428%20363.918%20134.837%20376.598%20179.293%20387.201C200.345%20337.142%20219.778%20286.027%20235.82%20234.041C243.806%20208.213%20244.758%20181.282%20225.443%20160.043C216.099%20149.841%20204.347%20143.858%20191.629%20140.212C188.924%20139.377%20186.108%20138.517%20183.355%20137.905C179.635%20136.959%20175.781%20136.1%20171.989%20135.487C167.45%20134.592%20162.753%20133.893%20158.277%20133.243L127.871%20128.671L116.251%20126.895C115.457%20126.833%20114.686%20126.662%20113.915%20126.49C102.87%20124.724%2091.7381%20122.824%2080.6188%20123.013C69.1682%20123.13%2056.9012%20125.964%2047.8363%20133.224C36.9821%20141.825%2031.1109%20154.087%2028.0441%20167.788Z'%20fill='darkgrey'/%3e%3cpath%20d='M103.74%20123.732L95.6984%20197.532C95.6984%20197.532%20137.13%20157.315%20158.742%20133.268C155.051%20132.316%20151.227%20131.449%20147.465%20130.831C142.962%20129.929%20138.302%20129.224%20133.861%20128.569L103.74%20123.732Z'%20fill='white'/%3e%3cpath%20d='M97.8143%20115.298C99.0227%20116.625%20108.229%20179.332%20108.229%20179.332L148.012%20142.157L129%20100L97.8143%20115.298Z'%20fill='white'/%3e%3cpath%20d='M101.71%20148.534C100.068%20137.868%2098.402%20127.706%2098.0001%20127.274L112.673%20122C113.831%20131.449%20108.467%20141.173%20101.71%20148.534Z'%20fill='grey'/%3e%3cpath%20d='M121.545%2040.7383C111.161%2030.599%2085.3871%2035.4814%2071.93%2046.2862C66.0912%2051.0172%2060.5415%2047.9025%2061.6427%2054.0842C64.3767%2069.3597%2074.0239%20120.283%2082.7631%20126.794C100.374%20139.728%20121.191%20125.699%20127.329%20107.658C133.554%2089.7517%20136.293%2055.2372%20121.545%2040.7383Z'%20fill='white'/%3e%3cpath%20d='M56.0176%2041.9837C61.9834%2036.7831%2074.9427%2037.4243%2081.3074%2039.639C95.1733%2033.9235%20112.672%2032.6801%20120.968%2040.1438C131.22%2049.4771%20133.446%2067.5345%20132.042%2083.8281C125.848%2083.0025%20122.779%2078.6471%20116.718%2075.0286C97.7466%2073.2611%2084.9353%2061.0313%2082.042%2054.2301C78.3492%2058.2067%2063.3398%2059.3993%2058.12%2055.1646C51.1278%2048.7596%2054.1283%2043.6248%2056.0176%2041.9837Z'%20fill='darkgrey'/%3e%3cpath%20d='M142.838%2074.8316C138.561%2067.841%20123.674%2066.785%20116.5%2075.5006C118.078%2084.3219%20121.503%2092.5524%20122.726%20101.41C127.77%20102.657%20137.388%20100.869%20141.908%2095.386C147.168%2089.1414%20147.462%2082.3637%20142.838%2074.8316Z'%20fill='white'/%3e%3c/g%3e%3cdefs%3e%3cfilter%20id='shadow'%3e%3cfeDropShadow%20dx='0'%20dy='0'%20stdDeviation='3'%20flood-color='rgba(0,0,0,0.3)'/%3e%3c/filter%3e%3c/defs%3e%3c/svg%3e", ur = "data:image/svg+xml,%3csvg%20opacity='0.9'%20viewBox='0%200%20208%20208'%20fill='currentColor'%20xmlns='http://www.w3.org/2000/svg'%3e%3cdefs%3e%3cmask%20id='hole'%3e%3crect%20width='100%25'%20height='100%25'%20fill='white'/%3e%3ccircle%20cx='121.333'%20cy='121.333'%20r='52'%20fill='black'/%3e%3c/mask%3e%3cfilter%20id='shadow'%3e%3cfeDropShadow%20dx='-2'%20dy='-1'%20stdDeviation='10'%20flood-color='rgba(0,0,0,0.2)'/%3e%3c/filter%3e%3c/defs%3e%3cg%20filter='url(%23shadow)'%3e%3ccircle%20cx='104'%20cy='225.333'%20r='95.3333'%20fill='darkgray'/%3e%3ccircle%20cx='104'%20cy='225.333'%20r='95.3333'%20fill='white'%20mask='url(%23hole)'/%3e%3ccircle%20cx='104'%20cy='86.6666'%20r='52'%20fill='white'/%3e%3c/g%3e%3c/svg%3e", pr = "data:image/svg+xml,%3csvg%20opacity='0.9'%20viewBox='0%200%20208%20208'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20filter='url(%23shadow)'%3e%3cpath%20d='M168%20208V118.053C168%20113.824%20165.34%20110.052%20161.356%20108.633L134%2098.885V208H168Z'%20fill='darkgrey'/%3e%3cpath%20d='M40%2072.3726C40%2070.7381%2040.9944%2069.268%2042.5116%2068.6598L111.951%2040.8215C113.226%2040.3102%20114.675%2040.4893%20115.787%2041.2958L129.87%2051.5056C132.464%2053.3866%20134%2056.397%20134%2059.6017V208H40V72.3726Z'%20fill='white'/%3e%3cpath%20d='M114%2047.5001L126.325%2056.3036C127.376%2057.0544%20128%2058.2667%20128%2059.5585V208H114V47.5001Z'%20fill='darkgrey'/%3e%3c/g%3e%3cdefs%3e%3cfilter%20id='shadow'%3e%3cfeDropShadow%20dx='-2'%20dy='-1'%20stdDeviation='7'%20flood-color='rgba(0,0,0,0.2)'/%3e%3c/filter%3e%3c/defs%3e%3c/svg%3e", _r = {
|
|
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
990
|
male: cr,
|
|
991
991
|
female: dr,
|
|
992
|
-
org:
|
|
992
|
+
org: _r,
|
|
993
993
|
neutral: ur
|
|
994
|
-
},
|
|
994
|
+
}, Fe = te((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: _ = "filled",
|
|
1002
1002
|
placeholderType: d = "neutral",
|
|
1003
1003
|
name: f,
|
|
1004
|
-
imgSrc:
|
|
1005
|
-
imgAlt:
|
|
1006
|
-
icon:
|
|
1007
|
-
imgProps:
|
|
1008
|
-
colorScheme:
|
|
1009
|
-
className:
|
|
1010
|
-
"data-testid":
|
|
1011
|
-
...
|
|
1012
|
-
} = t, { onClick:
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
}, [
|
|
1016
|
-
const
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1004
|
+
imgSrc: p,
|
|
1005
|
+
imgAlt: h,
|
|
1006
|
+
icon: b,
|
|
1007
|
+
imgProps: y,
|
|
1008
|
+
colorScheme: x,
|
|
1009
|
+
className: M,
|
|
1010
|
+
"data-testid": S,
|
|
1011
|
+
...C
|
|
1012
|
+
} = t, { onClick: g, onPointerDown: $ } = C, D = !n && !i && (!!g || !!$), [T, A] = Ne(!1);
|
|
1013
|
+
Ee(() => {
|
|
1014
|
+
p && A(!1);
|
|
1015
|
+
}, [p]);
|
|
1016
|
+
const N = p && !T ? "image" : b ? "icon" : f ? "name" : "placeholder", U = x || N === "name" && sr(f) || "gray", q = lr(s), z = jt(s, c), O = V(
|
|
1017
|
+
M,
|
|
1018
|
+
pe.avatar,
|
|
1019
|
+
pe[`variant-${_}`],
|
|
1020
|
+
pe[`color-${U}`],
|
|
1021
|
+
Ae[q],
|
|
1022
1022
|
{
|
|
1023
|
-
[
|
|
1024
|
-
[
|
|
1025
|
-
[
|
|
1023
|
+
[pe.disabled]: n,
|
|
1024
|
+
[pe.loading]: i,
|
|
1025
|
+
[pe.clickable]: D
|
|
1026
1026
|
}
|
|
1027
|
-
),
|
|
1027
|
+
), m = {
|
|
1028
1028
|
"--avatar-size": `${s}px`,
|
|
1029
|
-
"--avatar-border-radius": `${
|
|
1029
|
+
"--avatar-border-radius": `${z}px`,
|
|
1030
1030
|
...a
|
|
1031
|
-
},
|
|
1032
|
-
icon: () => /* @__PURE__ */ o.jsx("span", { "data-testid": "avatar-icon", title:
|
|
1031
|
+
}, j = {
|
|
1032
|
+
icon: () => /* @__PURE__ */ o.jsx("span", { "data-testid": "avatar-icon", title: h || void 0, role: "img", className: pe.icon, children: b == null ? void 0 : b({}) }),
|
|
1033
1033
|
name: () => /* @__PURE__ */ o.jsx(
|
|
1034
1034
|
"span",
|
|
1035
1035
|
{
|
|
1036
1036
|
role: "textbox",
|
|
1037
1037
|
"data-testid": "avatar-name",
|
|
1038
|
-
className:
|
|
1039
|
-
title:
|
|
1038
|
+
className: pe.name,
|
|
1039
|
+
title: h || void 0,
|
|
1040
1040
|
children: nr(f || "")
|
|
1041
1041
|
}
|
|
1042
1042
|
),
|
|
1043
1043
|
placeholder: () => /* @__PURE__ */ o.jsx(
|
|
1044
1044
|
"img",
|
|
1045
1045
|
{
|
|
1046
|
-
...
|
|
1046
|
+
...y,
|
|
1047
1047
|
"data-testid": "avatar-placeholder",
|
|
1048
|
-
className:
|
|
1049
|
-
src:
|
|
1050
|
-
alt:
|
|
1048
|
+
className: pe.image,
|
|
1049
|
+
src: pr[d],
|
|
1050
|
+
alt: h || void 0
|
|
1051
1051
|
}
|
|
1052
1052
|
),
|
|
1053
1053
|
image: () => /* @__PURE__ */ o.jsx(
|
|
1054
1054
|
"img",
|
|
1055
1055
|
{
|
|
1056
1056
|
"data-testid": "avatar-image",
|
|
1057
|
-
...
|
|
1058
|
-
className:
|
|
1059
|
-
src:
|
|
1060
|
-
alt:
|
|
1061
|
-
onLoad: () =>
|
|
1062
|
-
onError: (
|
|
1063
|
-
var
|
|
1064
|
-
|
|
1057
|
+
...y,
|
|
1058
|
+
className: pe.image,
|
|
1059
|
+
src: p || void 0,
|
|
1060
|
+
alt: h || void 0,
|
|
1061
|
+
onLoad: () => A(!1),
|
|
1062
|
+
onError: (G) => {
|
|
1063
|
+
var H;
|
|
1064
|
+
A(!0), (H = y == null ? void 0 : y.onError) == null || H.call(y, G);
|
|
1065
1065
|
}
|
|
1066
1066
|
}
|
|
1067
1067
|
)
|
|
1068
|
-
}, B = (
|
|
1069
|
-
|
|
1068
|
+
}, B = (G) => {
|
|
1069
|
+
D && (g == null || g(G));
|
|
1070
1070
|
};
|
|
1071
1071
|
return /* @__PURE__ */ o.jsx(
|
|
1072
1072
|
"div",
|
|
1073
1073
|
{
|
|
1074
1074
|
ref: r,
|
|
1075
1075
|
onClick: B,
|
|
1076
|
-
className:
|
|
1077
|
-
style:
|
|
1078
|
-
"data-testid":
|
|
1076
|
+
className: O,
|
|
1077
|
+
style: m,
|
|
1078
|
+
"data-testid": S,
|
|
1079
1079
|
"aria-disabled": n || i,
|
|
1080
|
-
children:
|
|
1080
|
+
children: j[N](null)
|
|
1081
1081
|
}
|
|
1082
1082
|
);
|
|
1083
1083
|
}), fr = "_avatarGroup_157g4_1", gr = {
|
|
@@ -1085,7 +1085,7 @@ const cr = "data:image/svg+xml,%3csvg%20opacity='0.9'%20preserveAspectRatio='xMi
|
|
|
1085
1085
|
};
|
|
1086
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
1087
|
function br(t, r, a, s, i, n, c) {
|
|
1088
|
-
const
|
|
1088
|
+
const _ = Math.min(i, n) / 2, d = Math.min(c, _), f = ["M0,0", `H${t}`, `V${r}`, "H0", "V0", "Z"].join(" "), p = [
|
|
1089
1089
|
`M${a + d},${s}`,
|
|
1090
1090
|
`L${a + i - d},${s}`,
|
|
1091
1091
|
// Верхний правый угол
|
|
@@ -1101,7 +1101,7 @@ function br(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} ${p}`;
|
|
1105
1105
|
}
|
|
1106
1106
|
const yr = 3, mr = (t) => {
|
|
1107
1107
|
const {
|
|
@@ -1111,10 +1111,10 @@ const yr = 3, mr = (t) => {
|
|
|
1111
1111
|
shape: i = "circle",
|
|
1112
1112
|
overflowCount: n = 0,
|
|
1113
1113
|
overflowProps: c
|
|
1114
|
-
} = t,
|
|
1114
|
+
} = t, _ = a * s, d = -_ + yr, f = jt(a, i), h = ze(hr()).current.toString(), b = Ie(gr.avatarGroup), y = br(
|
|
1115
1115
|
a,
|
|
1116
1116
|
a,
|
|
1117
|
-
a -
|
|
1117
|
+
a - _,
|
|
1118
1118
|
// X-координата начала выреза
|
|
1119
1119
|
0,
|
|
1120
1120
|
// Y-координата начала выреза
|
|
@@ -1122,22 +1122,22 @@ const yr = 3, mr = (t) => {
|
|
|
1122
1122
|
a,
|
|
1123
1123
|
f
|
|
1124
1124
|
);
|
|
1125
|
-
return r.length === 0 ? null : /* @__PURE__ */ o.jsxs("div", { className:
|
|
1126
|
-
r.map((
|
|
1127
|
-
const
|
|
1128
|
-
if (
|
|
1129
|
-
const
|
|
1125
|
+
return r.length === 0 ? null : /* @__PURE__ */ o.jsxs("div", { className: b, children: [
|
|
1126
|
+
r.map((x, M, S) => {
|
|
1127
|
+
const C = M + 1 >= S.length;
|
|
1128
|
+
if (x.wrapper) {
|
|
1129
|
+
const g = x.wrapper;
|
|
1130
1130
|
return /* @__PURE__ */ o.jsx(
|
|
1131
1131
|
"div",
|
|
1132
1132
|
{
|
|
1133
1133
|
style: {
|
|
1134
1134
|
// Для последнего видимого аватара без overflowCount не применяем обрезку
|
|
1135
|
-
clipPath:
|
|
1135
|
+
clipPath: C && !n ? void 0 : `url(#${h})`,
|
|
1136
1136
|
marginRight: d
|
|
1137
1137
|
},
|
|
1138
|
-
children: /* @__PURE__ */ o.jsx(
|
|
1138
|
+
children: /* @__PURE__ */ o.jsx(g, { children: /* @__PURE__ */ o.jsx(Fe, { size: a, shape: i, ...x }) })
|
|
1139
1139
|
},
|
|
1140
|
-
|
|
1140
|
+
et(x) + M
|
|
1141
1141
|
);
|
|
1142
1142
|
}
|
|
1143
1143
|
return /* @__PURE__ */ o.jsx(
|
|
@@ -1145,16 +1145,16 @@ const yr = 3, mr = (t) => {
|
|
|
1145
1145
|
{
|
|
1146
1146
|
style: {
|
|
1147
1147
|
// Для последнего видимого аватара без overflowCount не применяем обрезку
|
|
1148
|
-
clipPath:
|
|
1148
|
+
clipPath: C && !n ? void 0 : `url(#${h})`,
|
|
1149
1149
|
marginRight: d
|
|
1150
1150
|
},
|
|
1151
|
-
children: /* @__PURE__ */ o.jsx(
|
|
1151
|
+
children: /* @__PURE__ */ o.jsx(Fe, { size: a, shape: i, ...x })
|
|
1152
1152
|
},
|
|
1153
|
-
|
|
1153
|
+
et(x) + M
|
|
1154
1154
|
);
|
|
1155
1155
|
}),
|
|
1156
1156
|
n > 0 && /* @__PURE__ */ o.jsx("div", { style: { marginRight: d }, children: /* @__PURE__ */ o.jsx(
|
|
1157
|
-
|
|
1157
|
+
Fe,
|
|
1158
1158
|
{
|
|
1159
1159
|
size: a,
|
|
1160
1160
|
shape: i,
|
|
@@ -1164,11 +1164,11 @@ const yr = 3, mr = (t) => {
|
|
|
1164
1164
|
...c
|
|
1165
1165
|
}
|
|
1166
1166
|
) }),
|
|
1167
|
-
/* @__PURE__ */ o.jsx("svg", { width: "0", height: "0", children: /* @__PURE__ */ o.jsx("clipPath", { id: `${
|
|
1167
|
+
/* @__PURE__ */ o.jsx("svg", { width: "0", height: "0", children: /* @__PURE__ */ o.jsx("clipPath", { id: `${h}`, children: /* @__PURE__ */ o.jsx("path", { clipPathUnits: "objectBoundingBox", d: y, clipRule: "evenodd" }) }) })
|
|
1168
1168
|
] });
|
|
1169
|
-
}, Rn = Object.assign(
|
|
1169
|
+
}, Rn = Object.assign(Fe, {
|
|
1170
1170
|
Group: mr
|
|
1171
|
-
}), vr = "_wrapper_ecbsu_5", xr = "_badge__container_ecbsu_6", Cr = "_badge__content_ecbsu_7", wr = "_interactive_ecbsu_20", Sr = "_disabled_ecbsu_21", Er = "_icon_ecbsu_22",
|
|
1171
|
+
}), vr = "_wrapper_ecbsu_5", xr = "_badge__container_ecbsu_6", Cr = "_badge__content_ecbsu_7", wr = "_interactive_ecbsu_20", Sr = "_disabled_ecbsu_21", Er = "_icon_ecbsu_22", fe = {
|
|
1172
1172
|
wrapper: vr,
|
|
1173
1173
|
badge__container: xr,
|
|
1174
1174
|
badge__content: Cr,
|
|
@@ -1216,76 +1216,76 @@ const yr = 3, mr = (t) => {
|
|
|
1216
1216
|
}
|
|
1217
1217
|
return null;
|
|
1218
1218
|
}, $r = () => {
|
|
1219
|
-
const t =
|
|
1220
|
-
return
|
|
1219
|
+
const t = ze(null), [r, a] = Ne(null);
|
|
1220
|
+
return Ee(() => {
|
|
1221
1221
|
if (t.current) {
|
|
1222
1222
|
const s = Mr(t.current);
|
|
1223
1223
|
a(s);
|
|
1224
1224
|
}
|
|
1225
1225
|
}, []), { ref: t, bgColor: r };
|
|
1226
|
-
}, kn =
|
|
1226
|
+
}, kn = te((t, r) => {
|
|
1227
1227
|
const {
|
|
1228
1228
|
icon: a,
|
|
1229
1229
|
children: s,
|
|
1230
1230
|
variant: i = "filled",
|
|
1231
1231
|
label: n,
|
|
1232
1232
|
isHidden: c = !1,
|
|
1233
|
-
colorScheme:
|
|
1233
|
+
colorScheme: _ = "red",
|
|
1234
1234
|
size: d = 20,
|
|
1235
1235
|
position: f = "top-right",
|
|
1236
|
-
positionOffset:
|
|
1237
|
-
cutoutBackground:
|
|
1238
|
-
isDisabled:
|
|
1239
|
-
className:
|
|
1240
|
-
"data-testid":
|
|
1241
|
-
...
|
|
1242
|
-
} = t, { onClick:
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1236
|
+
positionOffset: p = { x: 0, y: 0 },
|
|
1237
|
+
cutoutBackground: h,
|
|
1238
|
+
isDisabled: b,
|
|
1239
|
+
className: y,
|
|
1240
|
+
"data-testid": x = "badge",
|
|
1241
|
+
...M
|
|
1242
|
+
} = t, { onClick: S, onPointerDown: C } = M, { ref: g, bgColor: $ } = $r(), k = h || $, T = !b && (!!S || !!C), A = Ie(fe.badge__container, fe[`position-${f}`]), N = Ie(
|
|
1243
|
+
y,
|
|
1244
|
+
fe.badge__content,
|
|
1245
|
+
fe[`color-${_}`],
|
|
1246
|
+
fe[`variant-${i}`],
|
|
1247
1247
|
{
|
|
1248
|
-
[
|
|
1249
|
-
[
|
|
1250
|
-
[
|
|
1248
|
+
[fe.disabled]: b,
|
|
1249
|
+
[fe.icon]: !!a,
|
|
1250
|
+
[fe.interactive]: T
|
|
1251
1251
|
}
|
|
1252
|
-
),
|
|
1252
|
+
), U = {
|
|
1253
1253
|
"--badge-height": `${d}px`,
|
|
1254
|
-
"--badge-offset-x": `${
|
|
1255
|
-
"--badge-offset-y": `${
|
|
1256
|
-
...
|
|
1254
|
+
"--badge-offset-x": `${p.x}px`,
|
|
1255
|
+
"--badge-offset-y": `${p.y}px`,
|
|
1256
|
+
...k && { "--badge-cutout-bg": k },
|
|
1257
1257
|
...i === "transparent" && { "--badge-cutout-bg": "transparent" }
|
|
1258
|
-
},
|
|
1259
|
-
|
|
1258
|
+
}, q = (a == null ? void 0 : a({})) || n, z = (O) => {
|
|
1259
|
+
T && (S == null || S(O));
|
|
1260
1260
|
};
|
|
1261
|
-
return /* @__PURE__ */ o.jsxs("div", { className:
|
|
1261
|
+
return /* @__PURE__ */ o.jsxs("div", { className: fe.wrapper, ref: g, "data-testid": x + "-wrapper", children: [
|
|
1262
1262
|
s,
|
|
1263
1263
|
!c && /* @__PURE__ */ o.jsx(
|
|
1264
1264
|
"span",
|
|
1265
1265
|
{
|
|
1266
|
-
className:
|
|
1267
|
-
style:
|
|
1268
|
-
"data-testid":
|
|
1266
|
+
className: A,
|
|
1267
|
+
style: U,
|
|
1268
|
+
"data-testid": x + "-container",
|
|
1269
1269
|
children: /* @__PURE__ */ o.jsx(
|
|
1270
1270
|
"span",
|
|
1271
1271
|
{
|
|
1272
|
-
...
|
|
1273
|
-
onClick:
|
|
1274
|
-
className:
|
|
1275
|
-
"data-testid":
|
|
1272
|
+
...M,
|
|
1273
|
+
onClick: z,
|
|
1274
|
+
className: N,
|
|
1275
|
+
"data-testid": x + "-content",
|
|
1276
1276
|
ref: r,
|
|
1277
|
-
"aria-disabled":
|
|
1278
|
-
children:
|
|
1277
|
+
"aria-disabled": b,
|
|
1278
|
+
children: q
|
|
1279
1279
|
}
|
|
1280
1280
|
)
|
|
1281
1281
|
}
|
|
1282
1282
|
)
|
|
1283
1283
|
] });
|
|
1284
|
-
}), jr = "_container_op5yl_7", Ir = "_image_op5yl_22", Rr = "_loading_op5yl_34",
|
|
1284
|
+
}), jr = "_container_op5yl_7", Ir = "_image_op5yl_22", Rr = "_loading_op5yl_34", Ke = {
|
|
1285
1285
|
container: jr,
|
|
1286
1286
|
image: Ir,
|
|
1287
1287
|
loading: Rr
|
|
1288
|
-
}, kr = "_loader_isv17_1", Tr = "_spin_isv17_1", Ar = "_accent_isv17_19", Nr = "_neutral_isv17_23", Dr = "_positive_isv17_27", Or = "_negative_isv17_31", Ur = "_gray_isv17_35", Br = "_special_isv17_39", Fr = "_contrast_isv17_43", Pr = "_container_isv17_47", zr = "_overlay_isv17_57",
|
|
1288
|
+
}, kr = "_loader_isv17_1", Tr = "_spin_isv17_1", Ar = "_accent_isv17_19", Nr = "_neutral_isv17_23", Dr = "_positive_isv17_27", Or = "_negative_isv17_31", Ur = "_gray_isv17_35", Br = "_special_isv17_39", Fr = "_contrast_isv17_43", Pr = "_container_isv17_47", zr = "_overlay_isv17_57", Te = {
|
|
1289
1289
|
loader: kr,
|
|
1290
1290
|
spin: Tr,
|
|
1291
1291
|
accent: Ar,
|
|
@@ -1302,7 +1302,7 @@ const yr = 3, mr = (t) => {
|
|
|
1302
1302
|
"size-48": "_size-48_isv17_80",
|
|
1303
1303
|
"size-64": "_size-64_isv17_84",
|
|
1304
1304
|
"size-96": "_size-96_isv17_88"
|
|
1305
|
-
}, It =
|
|
1305
|
+
}, It = te(
|
|
1306
1306
|
({
|
|
1307
1307
|
size: t = 24,
|
|
1308
1308
|
variant: r = "accent",
|
|
@@ -1311,17 +1311,17 @@ const yr = 3, mr = (t) => {
|
|
|
1311
1311
|
style: i,
|
|
1312
1312
|
...n
|
|
1313
1313
|
}, c) => {
|
|
1314
|
-
const
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1314
|
+
const _ = Ie(
|
|
1315
|
+
Te.loader,
|
|
1316
|
+
Te[r],
|
|
1317
|
+
Te[`size-${t}`],
|
|
1318
1318
|
a
|
|
1319
1319
|
);
|
|
1320
1320
|
return /* @__PURE__ */ o.jsx(
|
|
1321
1321
|
"svg",
|
|
1322
1322
|
{
|
|
1323
1323
|
ref: c,
|
|
1324
|
-
className:
|
|
1324
|
+
className: _,
|
|
1325
1325
|
fill: "none",
|
|
1326
1326
|
viewBox: "0 0 16 16",
|
|
1327
1327
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1340,22 +1340,22 @@ const yr = 3, mr = (t) => {
|
|
|
1340
1340
|
}
|
|
1341
1341
|
);
|
|
1342
1342
|
}
|
|
1343
|
-
), Wr =
|
|
1343
|
+
), Wr = te((t, r) => {
|
|
1344
1344
|
const {
|
|
1345
1345
|
loading: a = !1,
|
|
1346
1346
|
size: s = 24,
|
|
1347
1347
|
variant: i = "accent",
|
|
1348
1348
|
children: n,
|
|
1349
1349
|
className: c,
|
|
1350
|
-
style:
|
|
1350
|
+
style: _,
|
|
1351
1351
|
"data-testid": d,
|
|
1352
1352
|
...f
|
|
1353
|
-
} = t,
|
|
1354
|
-
return /* @__PURE__ */ o.jsxs("div", { ref: r, className:
|
|
1353
|
+
} = t, p = Ie(Te.container, c);
|
|
1354
|
+
return /* @__PURE__ */ o.jsxs("div", { ref: r, className: p, style: _, "data-testid": d, ...f, children: [
|
|
1355
1355
|
n,
|
|
1356
|
-
a && /* @__PURE__ */ o.jsx("div", { className:
|
|
1356
|
+
a && /* @__PURE__ */ o.jsx("div", { className: Te.overlay, children: /* @__PURE__ */ o.jsx(It, { size: s, variant: i, "data-testid": `${d}-spinner` }) })
|
|
1357
1357
|
] });
|
|
1358
|
-
}), Vr =
|
|
1358
|
+
}), Vr = te((t, r) => t.children ? /* @__PURE__ */ o.jsx(
|
|
1359
1359
|
Wr,
|
|
1360
1360
|
{
|
|
1361
1361
|
ref: r,
|
|
@@ -1382,70 +1382,70 @@ const yr = 3, mr = (t) => {
|
|
|
1382
1382
|
}
|
|
1383
1383
|
)
|
|
1384
1384
|
}
|
|
1385
|
-
), Tn =
|
|
1385
|
+
), Tn = te((t, r) => {
|
|
1386
1386
|
const {
|
|
1387
1387
|
alt: a = "",
|
|
1388
1388
|
loading: s = "lazy",
|
|
1389
1389
|
src: i,
|
|
1390
1390
|
isLoading: n = !1,
|
|
1391
1391
|
className: c,
|
|
1392
|
-
"data-testid":
|
|
1392
|
+
"data-testid": _ = "image",
|
|
1393
1393
|
onError: d,
|
|
1394
1394
|
onLoad: f,
|
|
1395
|
-
...
|
|
1396
|
-
} = t, [
|
|
1397
|
-
|
|
1395
|
+
...p
|
|
1396
|
+
} = t, [h, b] = Ne("loading"), y = h === "error", x = (n || h === "loading") && !y, M = h === "loaded" && !n, S = Ie(
|
|
1397
|
+
Ke.image,
|
|
1398
1398
|
{
|
|
1399
|
-
[
|
|
1399
|
+
[Ke.loading]: x
|
|
1400
1400
|
},
|
|
1401
1401
|
c
|
|
1402
|
-
),
|
|
1403
|
-
(
|
|
1404
|
-
|
|
1402
|
+
), C = Se(
|
|
1403
|
+
(k) => {
|
|
1404
|
+
b("loaded"), f == null || f(k);
|
|
1405
1405
|
},
|
|
1406
1406
|
[f]
|
|
1407
|
-
),
|
|
1408
|
-
(
|
|
1409
|
-
|
|
1407
|
+
), g = Se(
|
|
1408
|
+
(k) => {
|
|
1409
|
+
b("error"), d == null || d(k);
|
|
1410
1410
|
},
|
|
1411
1411
|
[d]
|
|
1412
|
-
),
|
|
1412
|
+
), $ = {
|
|
1413
1413
|
loader: /* @__PURE__ */ o.jsxs(Mt, { children: [
|
|
1414
|
-
/* @__PURE__ */ o.jsx(Vr, { size: 48, variant: "special", "data-testid": `${
|
|
1414
|
+
/* @__PURE__ */ o.jsx(Vr, { size: 48, variant: "special", "data-testid": `${_}-loader` }),
|
|
1415
1415
|
/* @__PURE__ */ o.jsx(
|
|
1416
1416
|
"img",
|
|
1417
1417
|
{
|
|
1418
1418
|
alt: a,
|
|
1419
1419
|
src: i,
|
|
1420
|
-
onLoad:
|
|
1421
|
-
onError:
|
|
1420
|
+
onLoad: C,
|
|
1421
|
+
onError: g,
|
|
1422
1422
|
style: { display: "none" }
|
|
1423
1423
|
}
|
|
1424
1424
|
)
|
|
1425
1425
|
] }),
|
|
1426
|
-
error: /* @__PURE__ */ o.jsx(Hr, { "data-testid": `${
|
|
1426
|
+
error: /* @__PURE__ */ o.jsx(Hr, { "data-testid": `${_}-fallback` }),
|
|
1427
1427
|
image: /* @__PURE__ */ o.jsx(
|
|
1428
1428
|
"img",
|
|
1429
1429
|
{
|
|
1430
1430
|
ref: r,
|
|
1431
1431
|
alt: a,
|
|
1432
|
-
"data-testid":
|
|
1432
|
+
"data-testid": _,
|
|
1433
1433
|
loading: s,
|
|
1434
1434
|
src: i,
|
|
1435
|
-
className:
|
|
1435
|
+
className: S
|
|
1436
1436
|
}
|
|
1437
1437
|
)
|
|
1438
1438
|
};
|
|
1439
|
-
return
|
|
1439
|
+
return Ee(() => {
|
|
1440
1440
|
if (!i) {
|
|
1441
|
-
|
|
1441
|
+
b("error");
|
|
1442
1442
|
return;
|
|
1443
1443
|
}
|
|
1444
|
-
|
|
1445
|
-
}, [i]), /* @__PURE__ */ o.jsxs("div", { className:
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1444
|
+
b("loading");
|
|
1445
|
+
}, [i]), /* @__PURE__ */ o.jsxs("div", { className: Ke.container, "data-testid": `${_}-container`, ...p, children: [
|
|
1446
|
+
x && $.loader,
|
|
1447
|
+
y && $.error,
|
|
1448
|
+
M && $.image
|
|
1449
1449
|
] });
|
|
1450
1450
|
}), qr = {}, Rt = ra({
|
|
1451
1451
|
locale: qr
|
|
@@ -1474,11 +1474,11 @@ const yr = 3, mr = (t) => {
|
|
|
1474
1474
|
"div",
|
|
1475
1475
|
{
|
|
1476
1476
|
"data-testid": "ConfigProvider-component",
|
|
1477
|
-
className:
|
|
1477
|
+
className: V(Zr, Yr, Jr, s)
|
|
1478
1478
|
}
|
|
1479
1479
|
),
|
|
1480
1480
|
/* @__PURE__ */ o.jsx(Rt.Provider, { value: { locale: t }, children: a })
|
|
1481
|
-
] })), Dn = {}, Kr = "_tag_1llsi_1", Xr = "_label_1llsi_16", Qr = "_iconWrapper_1llsi_20", es = "_medium_1llsi_27", ts = "_large_1llsi_33", as = "_disabled_1llsi_43", rs = "_neutral_1llsi_47", ss = "_positive_1llsi_53", ns = "_negative_1llsi_59", os = "_warning_1llsi_65", is = "_vivid_1llsi_71", ls = "_special_1llsi_77", cs = "_accent_1llsi_84", ds = "_blue_1llsi_90", us = "_lovely_1llsi_96",
|
|
1481
|
+
] })), Dn = {}, Kr = "_tag_1llsi_1", Xr = "_label_1llsi_16", Qr = "_iconWrapper_1llsi_20", es = "_medium_1llsi_27", ts = "_large_1llsi_33", as = "_disabled_1llsi_43", rs = "_neutral_1llsi_47", ss = "_positive_1llsi_53", ns = "_negative_1llsi_59", os = "_warning_1llsi_65", is = "_vivid_1llsi_71", ls = "_special_1llsi_77", cs = "_accent_1llsi_84", ds = "_blue_1llsi_90", us = "_lovely_1llsi_96", _s = "_dreamy_1llsi_102", we = {
|
|
1482
1482
|
tag: Kr,
|
|
1483
1483
|
label: Xr,
|
|
1484
1484
|
iconWrapper: Qr,
|
|
@@ -1494,46 +1494,46 @@ const yr = 3, mr = (t) => {
|
|
|
1494
1494
|
accent: cs,
|
|
1495
1495
|
blue: ds,
|
|
1496
1496
|
lovely: us,
|
|
1497
|
-
dreamy:
|
|
1498
|
-
}, On =
|
|
1497
|
+
dreamy: _s
|
|
1498
|
+
}, On = te((t, r) => {
|
|
1499
1499
|
const {
|
|
1500
1500
|
className: a,
|
|
1501
1501
|
children: s,
|
|
1502
1502
|
componentStyle: i = "neutral",
|
|
1503
1503
|
size: n = "medium",
|
|
1504
1504
|
disabled: c = !1,
|
|
1505
|
-
showLabel:
|
|
1505
|
+
showLabel: _ = !!s,
|
|
1506
1506
|
slotStart: d,
|
|
1507
1507
|
slotEnd: f,
|
|
1508
|
-
slotStartWrapperProps:
|
|
1509
|
-
slotEndWrapperProps:
|
|
1510
|
-
"data-testid":
|
|
1511
|
-
} = t, { className:
|
|
1508
|
+
slotStartWrapperProps: p = {},
|
|
1509
|
+
slotEndWrapperProps: h = {},
|
|
1510
|
+
"data-testid": b
|
|
1511
|
+
} = t, { className: y, ...x } = p, { className: M, ...S } = h;
|
|
1512
1512
|
return /* @__PURE__ */ o.jsxs(
|
|
1513
1513
|
"div",
|
|
1514
1514
|
{
|
|
1515
|
-
className:
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1515
|
+
className: V(
|
|
1516
|
+
we.tag,
|
|
1517
|
+
we[n],
|
|
1518
|
+
we[i],
|
|
1519
1519
|
{
|
|
1520
|
-
[
|
|
1521
|
-
[
|
|
1522
|
-
[
|
|
1520
|
+
[we.disabled]: c,
|
|
1521
|
+
[Ae["typography-label-3-regular"]]: n === "medium",
|
|
1522
|
+
[Ae["typography-subtitle-1-semibold"]]: n === "large"
|
|
1523
1523
|
},
|
|
1524
1524
|
a
|
|
1525
1525
|
),
|
|
1526
|
-
"data-testid":
|
|
1526
|
+
"data-testid": b || "tag-component",
|
|
1527
1527
|
ref: r,
|
|
1528
1528
|
children: [
|
|
1529
|
-
d && /* @__PURE__ */ o.jsx("span", { className:
|
|
1530
|
-
|
|
1531
|
-
f && /* @__PURE__ */ o.jsx("span", { className:
|
|
1529
|
+
d && /* @__PURE__ */ o.jsx("span", { className: V([we.iconWrapper, y]), ...x, children: d }),
|
|
1530
|
+
_ && /* @__PURE__ */ o.jsx("span", { className: V([we.label]), children: s }),
|
|
1531
|
+
f && /* @__PURE__ */ o.jsx("span", { className: V([we.iconWrapper, M]), ...S, children: f })
|
|
1532
1532
|
]
|
|
1533
1533
|
}
|
|
1534
1534
|
);
|
|
1535
|
-
}),
|
|
1536
|
-
checkbox:
|
|
1535
|
+
}), ps = "_checkbox_qo5f5_43", fs = "_input_qo5f5_59", gs = "_icon_qo5f5_67", hs = "_container_qo5f5_84", bs = "_error_qo5f5_135", ys = "_checkboxWrapper_qo5f5_147", ms = "_medium_qo5f5_201", vs = "_large_qo5f5_206", xs = "_label_qo5f5_247", he = {
|
|
1536
|
+
checkbox: ps,
|
|
1537
1537
|
input: fs,
|
|
1538
1538
|
icon: gs,
|
|
1539
1539
|
container: hs,
|
|
@@ -1608,7 +1608,7 @@ const yr = 3, mr = (t) => {
|
|
|
1608
1608
|
return /* @__PURE__ */ o.jsx(
|
|
1609
1609
|
"div",
|
|
1610
1610
|
{
|
|
1611
|
-
className:
|
|
1611
|
+
className: he.icon,
|
|
1612
1612
|
"data-testid": `${i}-icon`,
|
|
1613
1613
|
"data-checked": r,
|
|
1614
1614
|
"data-disabled": a,
|
|
@@ -1616,63 +1616,63 @@ const yr = 3, mr = (t) => {
|
|
|
1616
1616
|
children: s ? /* @__PURE__ */ o.jsx(ws, { width: n, height: c }) : /* @__PURE__ */ o.jsx(Cs, { width: n, height: c })
|
|
1617
1617
|
}
|
|
1618
1618
|
);
|
|
1619
|
-
}, Un =
|
|
1619
|
+
}, Un = te((t, r) => {
|
|
1620
1620
|
const {
|
|
1621
1621
|
name: a,
|
|
1622
1622
|
value: s,
|
|
1623
1623
|
size: i = "medium",
|
|
1624
1624
|
indeterminate: n = !1,
|
|
1625
1625
|
loading: c = !1,
|
|
1626
|
-
error:
|
|
1626
|
+
error: _,
|
|
1627
1627
|
disabled: d = !1,
|
|
1628
1628
|
containerClassName: f,
|
|
1629
|
-
className:
|
|
1630
|
-
containerStyle:
|
|
1631
|
-
style:
|
|
1632
|
-
children:
|
|
1633
|
-
clickableLabel:
|
|
1634
|
-
tabIndex:
|
|
1635
|
-
onChange:
|
|
1636
|
-
"data-testid":
|
|
1637
|
-
} = t, [
|
|
1638
|
-
|
|
1639
|
-
|
|
1629
|
+
className: p,
|
|
1630
|
+
containerStyle: h,
|
|
1631
|
+
style: b,
|
|
1632
|
+
children: y,
|
|
1633
|
+
clickableLabel: x = !0,
|
|
1634
|
+
tabIndex: M,
|
|
1635
|
+
onChange: S,
|
|
1636
|
+
"data-testid": C = "checkbox"
|
|
1637
|
+
} = t, [g, $] = Ne(!1), k = s ?? g, D = d || c, T = !!_, A = k || n, N = V(he.container, he[i], f), U = V(
|
|
1638
|
+
he.checkbox,
|
|
1639
|
+
he[i],
|
|
1640
1640
|
{
|
|
1641
|
-
[
|
|
1641
|
+
[he.error]: T
|
|
1642
1642
|
},
|
|
1643
|
-
|
|
1644
|
-
),
|
|
1645
|
-
|
|
1646
|
-
},
|
|
1647
|
-
if (
|
|
1648
|
-
|
|
1649
|
-
const B = !
|
|
1650
|
-
|
|
1643
|
+
p
|
|
1644
|
+
), q = (j) => {
|
|
1645
|
+
D || ($(j.target.checked), S == null || S(j.target.checked, j));
|
|
1646
|
+
}, z = (j) => {
|
|
1647
|
+
if (j.key === "Enter" && !D) {
|
|
1648
|
+
j.preventDefault();
|
|
1649
|
+
const B = !A;
|
|
1650
|
+
$(B), S == null || S(B);
|
|
1651
1651
|
}
|
|
1652
|
-
},
|
|
1653
|
-
|
|
1654
|
-
},
|
|
1652
|
+
}, O = (j) => {
|
|
1653
|
+
x || j.preventDefault();
|
|
1654
|
+
}, m = (j) => j.stopPropagation();
|
|
1655
1655
|
return /* @__PURE__ */ o.jsxs(
|
|
1656
1656
|
"label",
|
|
1657
1657
|
{
|
|
1658
|
-
className:
|
|
1658
|
+
className: N,
|
|
1659
1659
|
htmlFor: a,
|
|
1660
|
-
style:
|
|
1661
|
-
"data-testid":
|
|
1662
|
-
"data-clickable-label":
|
|
1660
|
+
style: h,
|
|
1661
|
+
"data-testid": C,
|
|
1662
|
+
"data-clickable-label": x,
|
|
1663
1663
|
children: [
|
|
1664
|
-
/* @__PURE__ */ o.jsx("div", { className:
|
|
1664
|
+
/* @__PURE__ */ o.jsx("div", { className: he.checkboxWrapper, children: /* @__PURE__ */ o.jsxs(
|
|
1665
1665
|
"div",
|
|
1666
1666
|
{
|
|
1667
|
-
tabIndex:
|
|
1668
|
-
className:
|
|
1669
|
-
style:
|
|
1670
|
-
onKeyDown:
|
|
1671
|
-
"aria-checked":
|
|
1672
|
-
"aria-disabled":
|
|
1673
|
-
"aria-invalid":
|
|
1674
|
-
"aria-describedby":
|
|
1675
|
-
"data-testid": `${
|
|
1667
|
+
tabIndex: M || 0,
|
|
1668
|
+
className: U,
|
|
1669
|
+
style: b,
|
|
1670
|
+
onKeyDown: z,
|
|
1671
|
+
"aria-checked": A,
|
|
1672
|
+
"aria-disabled": D,
|
|
1673
|
+
"aria-invalid": T,
|
|
1674
|
+
"aria-describedby": _ ? `${a}-error` : void 0,
|
|
1675
|
+
"data-testid": `${C}-label`,
|
|
1676
1676
|
children: [
|
|
1677
1677
|
/* @__PURE__ */ o.jsx(
|
|
1678
1678
|
"input",
|
|
@@ -1681,15 +1681,15 @@ const yr = 3, mr = (t) => {
|
|
|
1681
1681
|
type: "checkbox",
|
|
1682
1682
|
id: a,
|
|
1683
1683
|
name: a,
|
|
1684
|
-
checked:
|
|
1685
|
-
disabled:
|
|
1686
|
-
className:
|
|
1687
|
-
onChange:
|
|
1688
|
-
onClick:
|
|
1689
|
-
"aria-checked":
|
|
1690
|
-
"aria-invalid":
|
|
1691
|
-
"aria-describedby":
|
|
1692
|
-
"data-testid": `${
|
|
1684
|
+
checked: A,
|
|
1685
|
+
disabled: D,
|
|
1686
|
+
className: he.input,
|
|
1687
|
+
onChange: q,
|
|
1688
|
+
onClick: m,
|
|
1689
|
+
"aria-checked": A,
|
|
1690
|
+
"aria-invalid": T,
|
|
1691
|
+
"aria-describedby": _ ? `${a}-error` : void 0,
|
|
1692
|
+
"data-testid": `${C}-input`
|
|
1693
1693
|
}
|
|
1694
1694
|
),
|
|
1695
1695
|
/* @__PURE__ */ o.jsx(
|
|
@@ -1697,23 +1697,23 @@ const yr = 3, mr = (t) => {
|
|
|
1697
1697
|
{
|
|
1698
1698
|
name: a,
|
|
1699
1699
|
size: i,
|
|
1700
|
-
isChecked:
|
|
1701
|
-
isDisabled:
|
|
1700
|
+
isChecked: A,
|
|
1701
|
+
isDisabled: D,
|
|
1702
1702
|
indeterminate: n,
|
|
1703
|
-
dataTestId:
|
|
1703
|
+
dataTestId: C
|
|
1704
1704
|
}
|
|
1705
1705
|
)
|
|
1706
1706
|
]
|
|
1707
1707
|
}
|
|
1708
1708
|
) }),
|
|
1709
|
-
|
|
1709
|
+
y && /* @__PURE__ */ o.jsx(
|
|
1710
1710
|
"span",
|
|
1711
1711
|
{
|
|
1712
|
-
"data-testid": `${
|
|
1713
|
-
"data-clickable-label":
|
|
1714
|
-
className:
|
|
1715
|
-
onClick:
|
|
1716
|
-
children:
|
|
1712
|
+
"data-testid": `${C}-label-text`,
|
|
1713
|
+
"data-clickable-label": x,
|
|
1714
|
+
className: he.label,
|
|
1715
|
+
onClick: O,
|
|
1716
|
+
children: y
|
|
1717
1717
|
}
|
|
1718
1718
|
)
|
|
1719
1719
|
]
|
|
@@ -1751,21 +1751,21 @@ const yr = 3, mr = (t) => {
|
|
|
1751
1751
|
className: i,
|
|
1752
1752
|
"data-testid": n,
|
|
1753
1753
|
as: c,
|
|
1754
|
-
fontWeight:
|
|
1754
|
+
fontWeight: _ = "semibold",
|
|
1755
1755
|
disabled: d = !1,
|
|
1756
1756
|
typographyStyle: f = "primary",
|
|
1757
|
-
...
|
|
1758
|
-
},
|
|
1759
|
-
const
|
|
1757
|
+
...p
|
|
1758
|
+
}, h) => {
|
|
1759
|
+
const b = c || Os[a], y = V(
|
|
1760
1760
|
je.typography,
|
|
1761
|
-
|
|
1761
|
+
Ae[`typography-${t}-${a}-${_}`],
|
|
1762
1762
|
je[f],
|
|
1763
1763
|
{
|
|
1764
1764
|
[je.disabled]: d
|
|
1765
1765
|
},
|
|
1766
1766
|
i
|
|
1767
1767
|
);
|
|
1768
|
-
return s ? /* @__PURE__ */ o.jsx(
|
|
1768
|
+
return s ? /* @__PURE__ */ o.jsx(b, { ref: h, className: y, "data-testid": n, ...p, children: s }) : null;
|
|
1769
1769
|
}
|
|
1770
1770
|
);
|
|
1771
1771
|
return r.displayName = `Typography.${t === "title" ? "Title" : "Subtitle"}`, r;
|
|
@@ -1777,14 +1777,14 @@ const yr = 3, mr = (t) => {
|
|
|
1777
1777
|
className: i,
|
|
1778
1778
|
"data-testid": n,
|
|
1779
1779
|
as: c = "p",
|
|
1780
|
-
fontWeight:
|
|
1780
|
+
fontWeight: _ = "regular",
|
|
1781
1781
|
disabled: d = !1,
|
|
1782
1782
|
typographyStyle: f = "primary",
|
|
1783
|
-
...
|
|
1784
|
-
},
|
|
1785
|
-
const
|
|
1783
|
+
...p
|
|
1784
|
+
}, h) => {
|
|
1785
|
+
const b = c, y = V(
|
|
1786
1786
|
je.typography,
|
|
1787
|
-
|
|
1787
|
+
Ae[`typography-${t}-${a}-${_}`],
|
|
1788
1788
|
je[f],
|
|
1789
1789
|
{
|
|
1790
1790
|
[je.disabled]: d
|
|
@@ -1792,12 +1792,12 @@ const yr = 3, mr = (t) => {
|
|
|
1792
1792
|
i
|
|
1793
1793
|
);
|
|
1794
1794
|
return s ? /* @__PURE__ */ o.jsx(
|
|
1795
|
-
|
|
1795
|
+
b,
|
|
1796
1796
|
{
|
|
1797
|
-
ref:
|
|
1798
|
-
className:
|
|
1797
|
+
ref: h,
|
|
1798
|
+
className: y,
|
|
1799
1799
|
"data-testid": n,
|
|
1800
|
-
...
|
|
1800
|
+
...p,
|
|
1801
1801
|
children: s
|
|
1802
1802
|
}
|
|
1803
1803
|
) : null;
|
|
@@ -1809,10 +1809,10 @@ const yr = 3, mr = (t) => {
|
|
|
1809
1809
|
Subtitle: xt("subtitle"),
|
|
1810
1810
|
Label: Ct("label"),
|
|
1811
1811
|
Paragraph: Ct("paragraph")
|
|
1812
|
-
}, Us = "
|
|
1812
|
+
}, Us = "_inputBase_2vlla_85", Bs = "_wrapper_2vlla_95", Fs = "_gripHandle_2vlla_169", Ps = "_error_2vlla_230", zs = "_tabFocused_2vlla_237", Ws = "_disabled_2vlla_262", Vs = "_loading_2vlla_269", Hs = "_label_2vlla_279", qs = "_small_2vlla_292", Gs = "_large_2vlla_299", Zs = "_leftSection_2vlla_306", Ys = "_rightSection_2vlla_315", Js = "_helper_2vlla_351", Ks = "_floatingLabel_2vlla_376", Xs = "_focused_2vlla_434", Qs = "_filled_2vlla_435", en = "_medium_2vlla_469", tn = "_characterLimit_2vlla_510", an = "_input_2vlla_85", rn = "_textarea_2vlla_109", sn = "_truncate_2vlla_637", nn = "_hint_2vlla_719", L = {
|
|
1813
1813
|
inputBase: Us,
|
|
1814
1814
|
wrapper: Bs,
|
|
1815
|
-
"textarea-wrapper": "_textarea-
|
|
1815
|
+
"textarea-wrapper": "_textarea-wrapper_2vlla_109",
|
|
1816
1816
|
gripHandle: Fs,
|
|
1817
1817
|
error: Ps,
|
|
1818
1818
|
tabFocused: zs,
|
|
@@ -1831,13 +1831,15 @@ const yr = 3, mr = (t) => {
|
|
|
1831
1831
|
characterLimit: tn,
|
|
1832
1832
|
input: an,
|
|
1833
1833
|
textarea: rn,
|
|
1834
|
-
"size-small": "_size-
|
|
1835
|
-
"size-medium": "_size-
|
|
1836
|
-
"size-large": "_size-
|
|
1837
|
-
"with-floating-label": "_with-floating-
|
|
1834
|
+
"size-small": "_size-small_2vlla_586",
|
|
1835
|
+
"size-medium": "_size-medium_2vlla_592",
|
|
1836
|
+
"size-large": "_size-large_2vlla_598",
|
|
1837
|
+
"with-floating-label": "_with-floating-label_2vlla_605",
|
|
1838
1838
|
truncate: sn,
|
|
1839
1839
|
hint: nn,
|
|
1840
|
-
"has-hint": "_has-
|
|
1840
|
+
"has-hint": "_has-hint_2vlla_736",
|
|
1841
|
+
"has-suffix": "_has-suffix_2vlla_742",
|
|
1842
|
+
"has-limit": "_has-limit_2vlla_748"
|
|
1841
1843
|
}, on = ({
|
|
1842
1844
|
width: t = 8,
|
|
1843
1845
|
height: r = 8,
|
|
@@ -1870,7 +1872,7 @@ const yr = 3, mr = (t) => {
|
|
|
1870
1872
|
onClick: i,
|
|
1871
1873
|
...n
|
|
1872
1874
|
}) => {
|
|
1873
|
-
const
|
|
1875
|
+
const _ = {
|
|
1874
1876
|
display: "inline-block",
|
|
1875
1877
|
color: s,
|
|
1876
1878
|
...{
|
|
@@ -1887,7 +1889,7 @@ const yr = 3, mr = (t) => {
|
|
|
1887
1889
|
"svg",
|
|
1888
1890
|
{
|
|
1889
1891
|
className: t,
|
|
1890
|
-
style:
|
|
1892
|
+
style: _,
|
|
1891
1893
|
viewBox: "0 0 16 16",
|
|
1892
1894
|
fill: "none",
|
|
1893
1895
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1906,8 +1908,8 @@ const yr = 3, mr = (t) => {
|
|
|
1906
1908
|
}
|
|
1907
1909
|
);
|
|
1908
1910
|
}, ln = (t, r) => {
|
|
1909
|
-
const a =
|
|
1910
|
-
return
|
|
1911
|
+
const a = ze(null), s = ze(null);
|
|
1912
|
+
return Ee(() => {
|
|
1911
1913
|
const i = r === "textarea" ? a.current : s.current;
|
|
1912
1914
|
i && i.value !== t && (i.value = t || "");
|
|
1913
1915
|
}, [t, r]), {
|
|
@@ -1922,28 +1924,28 @@ const yr = 3, mr = (t) => {
|
|
|
1922
1924
|
if (a.current.style.setProperty("height", "auto", "important"), !t) return;
|
|
1923
1925
|
const n = a.current.scrollHeight + "px";
|
|
1924
1926
|
a.current.style.setProperty("height", n, "important"), a.current.scrollTop = i;
|
|
1925
|
-
const c = a.current.closest(`.${
|
|
1927
|
+
const c = a.current.closest(`.${L.wrapper}`);
|
|
1926
1928
|
c && (c.setAttribute("data-resize", "hug"), c.setAttribute("data-show-grip", "false"));
|
|
1927
1929
|
};
|
|
1928
|
-
return
|
|
1930
|
+
return Ee(s, [t, r]), Ee(() => {
|
|
1929
1931
|
r === "hug" && a.current && s();
|
|
1930
1932
|
}, []), { resizeTextArea: s };
|
|
1931
|
-
}, dn = (t, r, a, s) => ({ handleGripMouseDown:
|
|
1933
|
+
}, dn = (t, r, a, s) => ({ handleGripMouseDown: Se(
|
|
1932
1934
|
(n) => {
|
|
1933
1935
|
if (!t || r || a || !(s === "fixed" || !s)) return;
|
|
1934
1936
|
n.preventDefault(), n.stopPropagation();
|
|
1935
|
-
const c = n.currentTarget.closest(`.${
|
|
1937
|
+
const c = n.currentTarget.closest(`.${L.wrapper}`);
|
|
1936
1938
|
if (!c) return;
|
|
1937
|
-
const
|
|
1938
|
-
const
|
|
1939
|
-
c.style.height = `${
|
|
1940
|
-
},
|
|
1941
|
-
document.removeEventListener("mousemove", f), document.removeEventListener("mouseup",
|
|
1939
|
+
const _ = n.clientY, d = c.clientHeight, f = (h) => {
|
|
1940
|
+
const b = h.clientY - _, y = Math.min(100, d), x = Math.max(y, d + b);
|
|
1941
|
+
c.style.height = `${x}px`;
|
|
1942
|
+
}, p = () => {
|
|
1943
|
+
document.removeEventListener("mousemove", f), document.removeEventListener("mouseup", p);
|
|
1942
1944
|
};
|
|
1943
|
-
document.addEventListener("mousemove", f), document.addEventListener("mouseup",
|
|
1945
|
+
document.addEventListener("mousemove", f), document.addEventListener("mouseup", p);
|
|
1944
1946
|
},
|
|
1945
1947
|
[t, r, a, s]
|
|
1946
|
-
) }), wt = 30, un =
|
|
1948
|
+
) }), wt = 30, un = te(
|
|
1947
1949
|
({
|
|
1948
1950
|
component: t = "input",
|
|
1949
1951
|
size: r = "medium",
|
|
@@ -1952,77 +1954,80 @@ const yr = 3, mr = (t) => {
|
|
|
1952
1954
|
disabled: i = !1,
|
|
1953
1955
|
loading: n = !1,
|
|
1954
1956
|
onFocus: c,
|
|
1955
|
-
onBlur:
|
|
1957
|
+
onBlur: _,
|
|
1956
1958
|
onChange: d,
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
1959
|
+
onKeyDown: f,
|
|
1960
|
+
onKeyUp: p,
|
|
1961
|
+
maxLength: h,
|
|
1962
|
+
className: b,
|
|
1963
|
+
style: y,
|
|
1964
|
+
truncate: x = !1,
|
|
1965
|
+
shouldShowFloatingLabelClass: M = !1,
|
|
1963
1966
|
"aria-invalid": S,
|
|
1964
1967
|
"aria-errormessage": C,
|
|
1965
|
-
id:
|
|
1966
|
-
resize:
|
|
1967
|
-
...
|
|
1968
|
-
},
|
|
1969
|
-
const { textareaRef:
|
|
1970
|
-
if (cn(a,
|
|
1968
|
+
id: g,
|
|
1969
|
+
resize: $,
|
|
1970
|
+
...k
|
|
1971
|
+
}, D) => {
|
|
1972
|
+
const { textareaRef: T, inputRef: A, currentRef: N } = ln(a, t);
|
|
1973
|
+
if (cn(a, $, T), oa(D, () => N.current, [N]), t === "textarea")
|
|
1971
1974
|
return /* @__PURE__ */ o.jsx(
|
|
1972
1975
|
"textarea",
|
|
1973
1976
|
{
|
|
1974
|
-
ref:
|
|
1975
|
-
id:
|
|
1977
|
+
ref: T,
|
|
1978
|
+
id: g,
|
|
1976
1979
|
value: a,
|
|
1977
1980
|
placeholder: s,
|
|
1978
1981
|
disabled: i || n,
|
|
1979
1982
|
onFocus: c,
|
|
1980
|
-
onBlur:
|
|
1983
|
+
onBlur: _,
|
|
1981
1984
|
onChange: d,
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
1985
|
+
onKeyDown: f,
|
|
1986
|
+
onKeyUp: p,
|
|
1987
|
+
maxLength: h,
|
|
1988
|
+
className: V(
|
|
1989
|
+
L.textarea,
|
|
1990
|
+
L[`size-${r}`],
|
|
1991
|
+
M && L["with-floating-label"],
|
|
1992
|
+
b
|
|
1989
1993
|
),
|
|
1990
|
-
style:
|
|
1994
|
+
style: y,
|
|
1991
1995
|
"aria-invalid": S,
|
|
1992
1996
|
"aria-errormessage": C,
|
|
1993
|
-
"aria-describedby": C ? `${
|
|
1997
|
+
"aria-describedby": C ? `${g}-error` : void 0,
|
|
1994
1998
|
tabIndex: 0,
|
|
1995
|
-
"data-resize":
|
|
1996
|
-
...
|
|
1999
|
+
"data-resize": $,
|
|
2000
|
+
...k
|
|
1997
2001
|
}
|
|
1998
2002
|
);
|
|
1999
2003
|
if (t === "input")
|
|
2000
2004
|
return /* @__PURE__ */ o.jsx(
|
|
2001
2005
|
"input",
|
|
2002
2006
|
{
|
|
2003
|
-
ref:
|
|
2004
|
-
id:
|
|
2007
|
+
ref: A,
|
|
2008
|
+
id: g,
|
|
2005
2009
|
value: a,
|
|
2006
2010
|
placeholder: s,
|
|
2007
2011
|
disabled: i || n,
|
|
2008
2012
|
onFocus: c,
|
|
2009
|
-
onBlur:
|
|
2013
|
+
onBlur: _,
|
|
2010
2014
|
onChange: d,
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2015
|
+
onKeyDown: f,
|
|
2016
|
+
onKeyUp: p,
|
|
2017
|
+
maxLength: h,
|
|
2018
|
+
className: V(
|
|
2019
|
+
L.input,
|
|
2020
|
+
L[`size-${r}`],
|
|
2021
|
+
M && L["with-floating-label"],
|
|
2022
|
+
x && L.truncate,
|
|
2023
|
+
b
|
|
2019
2024
|
),
|
|
2020
|
-
style:
|
|
2025
|
+
style: y,
|
|
2021
2026
|
"aria-invalid": S,
|
|
2022
2027
|
"aria-errormessage": C,
|
|
2023
|
-
"aria-describedby": C ? `${
|
|
2028
|
+
"aria-describedby": C ? `${g}-error` : void 0,
|
|
2024
2029
|
tabIndex: 0,
|
|
2025
|
-
...
|
|
2030
|
+
...k
|
|
2026
2031
|
}
|
|
2027
2032
|
);
|
|
2028
2033
|
if (t !== "input" && t !== "textarea")
|
|
@@ -2030,7 +2035,7 @@ const yr = 3, mr = (t) => {
|
|
|
2030
2035
|
`[Input] Недопустимое значение prop 'component': "${String(t)}". Допустимые значения: 'input', 'textarea'`
|
|
2031
2036
|
), null;
|
|
2032
2037
|
}
|
|
2033
|
-
), Tt =
|
|
2038
|
+
), Tt = te(
|
|
2034
2039
|
({
|
|
2035
2040
|
children: t,
|
|
2036
2041
|
size: r = "medium",
|
|
@@ -2039,89 +2044,101 @@ const yr = 3, mr = (t) => {
|
|
|
2039
2044
|
loading: i = !1,
|
|
2040
2045
|
className: n,
|
|
2041
2046
|
wrapperProps: c,
|
|
2042
|
-
wrapperStyles:
|
|
2047
|
+
wrapperStyles: _,
|
|
2043
2048
|
floatingLabelStyles: d,
|
|
2044
2049
|
prefixStyles: f,
|
|
2045
|
-
suffixStyles:
|
|
2046
|
-
labelProps:
|
|
2047
|
-
helperProps:
|
|
2048
|
-
showLimit:
|
|
2049
|
-
maxLength:
|
|
2050
|
-
hint:
|
|
2051
|
-
showHint:
|
|
2052
|
-
showHintOnEmpty:
|
|
2053
|
-
prefix:
|
|
2054
|
-
suffix:
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2050
|
+
suffixStyles: p,
|
|
2051
|
+
labelProps: h,
|
|
2052
|
+
helperProps: b,
|
|
2053
|
+
showLimit: y = !1,
|
|
2054
|
+
maxLength: x,
|
|
2055
|
+
hint: M,
|
|
2056
|
+
showHint: S = !1,
|
|
2057
|
+
showHintOnEmpty: C = !1,
|
|
2058
|
+
prefix: g,
|
|
2059
|
+
suffix: $,
|
|
2060
|
+
onSuffixClick: k,
|
|
2061
|
+
placeholder: D,
|
|
2062
|
+
showLabel: T = !0,
|
|
2063
|
+
labelClassName: A,
|
|
2064
|
+
hasValue: N = !1,
|
|
2059
2065
|
helper: U,
|
|
2060
|
-
id:
|
|
2066
|
+
id: q,
|
|
2061
2067
|
value: z = "",
|
|
2062
|
-
resize:
|
|
2063
|
-
showGrip:
|
|
2064
|
-
...
|
|
2065
|
-
},
|
|
2066
|
-
const
|
|
2067
|
-
|
|
2068
|
-
a &&
|
|
2069
|
-
s &&
|
|
2070
|
-
i &&
|
|
2071
|
-
|
|
2068
|
+
resize: O,
|
|
2069
|
+
showGrip: m = !1,
|
|
2070
|
+
...j
|
|
2071
|
+
}, B) => {
|
|
2072
|
+
const G = $t(), H = q || G, Q = S && M && (N || C), ae = M && M.length > wt ? M.substring(0, wt) + "..." : M, J = V(
|
|
2073
|
+
L.wrapper,
|
|
2074
|
+
a && L.error,
|
|
2075
|
+
s && L.disabled,
|
|
2076
|
+
i && L.loading,
|
|
2077
|
+
Q && L["has-hint"],
|
|
2078
|
+
$ && L["has-suffix"],
|
|
2079
|
+
y && L["has-limit"],
|
|
2072
2080
|
n
|
|
2073
|
-
),
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
), { handleGripMouseDown:
|
|
2079
|
-
return /* @__PURE__ */ o.jsxs("div", { ref:
|
|
2081
|
+
), re = V(
|
|
2082
|
+
L.floatingLabel,
|
|
2083
|
+
L[r],
|
|
2084
|
+
N && L.filled,
|
|
2085
|
+
A
|
|
2086
|
+
), { handleGripMouseDown: se } = dn(m, s, i, O);
|
|
2087
|
+
return /* @__PURE__ */ o.jsxs("div", { ref: B, className: L.inputBase, "data-testid": "input-base-wrapper", ...j, children: [
|
|
2080
2088
|
/* @__PURE__ */ o.jsxs(
|
|
2081
2089
|
"div",
|
|
2082
2090
|
{
|
|
2083
|
-
className:
|
|
2084
|
-
style:
|
|
2085
|
-
"data-resize":
|
|
2086
|
-
"data-show-grip":
|
|
2091
|
+
className: J,
|
|
2092
|
+
style: _,
|
|
2093
|
+
"data-resize": O,
|
|
2094
|
+
"data-show-grip": m ? "true" : "false",
|
|
2087
2095
|
...c,
|
|
2088
2096
|
children: [
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
T && N && /* @__PURE__ */ o.jsx(
|
|
2097
|
+
g && /* @__PURE__ */ o.jsx("label", { htmlFor: H, className: L.leftSection, style: f, children: g }),
|
|
2098
|
+
$ && /* @__PURE__ */ o.jsx(
|
|
2092
2099
|
"label",
|
|
2093
2100
|
{
|
|
2094
|
-
htmlFor:
|
|
2095
|
-
className:
|
|
2101
|
+
htmlFor: H,
|
|
2102
|
+
className: L.rightSection,
|
|
2103
|
+
style: p,
|
|
2104
|
+
onClick: k,
|
|
2105
|
+
children: $
|
|
2106
|
+
}
|
|
2107
|
+
),
|
|
2108
|
+
D && T && /* @__PURE__ */ o.jsx(
|
|
2109
|
+
"label",
|
|
2110
|
+
{
|
|
2111
|
+
htmlFor: H,
|
|
2112
|
+
className: re,
|
|
2096
2113
|
style: d,
|
|
2097
|
-
...
|
|
2098
|
-
children:
|
|
2114
|
+
...h,
|
|
2115
|
+
children: D
|
|
2099
2116
|
}
|
|
2100
2117
|
),
|
|
2101
2118
|
t,
|
|
2102
|
-
|
|
2119
|
+
m && !y && (O === "fixed" || !O) && /* @__PURE__ */ o.jsx(
|
|
2103
2120
|
"div",
|
|
2104
2121
|
{
|
|
2105
|
-
className:
|
|
2106
|
-
onMouseDown:
|
|
2122
|
+
className: L.gripHandle,
|
|
2123
|
+
onMouseDown: se,
|
|
2107
2124
|
role: "button",
|
|
2108
2125
|
tabIndex: -1,
|
|
2109
2126
|
"aria-label": "Изменить размер",
|
|
2110
2127
|
children: /* @__PURE__ */ o.jsx(on, {})
|
|
2111
2128
|
}
|
|
2112
2129
|
),
|
|
2113
|
-
|
|
2130
|
+
Q && /* @__PURE__ */ o.jsx(
|
|
2114
2131
|
"div",
|
|
2115
2132
|
{
|
|
2116
|
-
className:
|
|
2133
|
+
className: V(L.hint, N && L.truncate),
|
|
2117
2134
|
"data-disabled": s || i,
|
|
2118
|
-
children:
|
|
2135
|
+
children: ae
|
|
2119
2136
|
}
|
|
2120
2137
|
),
|
|
2121
|
-
|
|
2138
|
+
y && x && /* @__PURE__ */ o.jsxs("div", { className: L.characterLimit, children: [
|
|
2122
2139
|
(z || "").length,
|
|
2123
2140
|
" из ",
|
|
2124
|
-
|
|
2141
|
+
x
|
|
2125
2142
|
] })
|
|
2126
2143
|
]
|
|
2127
2144
|
}
|
|
@@ -2129,13 +2146,13 @@ const yr = 3, mr = (t) => {
|
|
|
2129
2146
|
U && /* @__PURE__ */ o.jsx(
|
|
2130
2147
|
"div",
|
|
2131
2148
|
{
|
|
2132
|
-
className:
|
|
2133
|
-
|
|
2134
|
-
a &&
|
|
2135
|
-
(s || i) &&
|
|
2149
|
+
className: V(
|
|
2150
|
+
L.helper,
|
|
2151
|
+
a && L.error,
|
|
2152
|
+
(s || i) && L.disabled
|
|
2136
2153
|
),
|
|
2137
|
-
...
|
|
2138
|
-
id: a ? `${
|
|
2154
|
+
...b,
|
|
2155
|
+
id: a ? `${H}-error` : void 0,
|
|
2139
2156
|
children: U
|
|
2140
2157
|
}
|
|
2141
2158
|
)
|
|
@@ -2145,7 +2162,7 @@ const yr = 3, mr = (t) => {
|
|
|
2145
2162
|
Tt.displayName = "InputWrapperComponent";
|
|
2146
2163
|
const St = Object.assign(un, {
|
|
2147
2164
|
Wrapper: Tt
|
|
2148
|
-
}), At =
|
|
2165
|
+
}), At = te(
|
|
2149
2166
|
({
|
|
2150
2167
|
component: t = "input",
|
|
2151
2168
|
size: r = "medium",
|
|
@@ -2154,175 +2171,179 @@ const St = Object.assign(un, {
|
|
|
2154
2171
|
disabled: i = !1,
|
|
2155
2172
|
loading: n = !1,
|
|
2156
2173
|
placeholder: c,
|
|
2157
|
-
showLabel:
|
|
2174
|
+
showLabel: _ = !0,
|
|
2158
2175
|
labelClassName: d,
|
|
2159
2176
|
helper: f,
|
|
2160
|
-
prefix:
|
|
2161
|
-
suffix:
|
|
2162
|
-
id:
|
|
2163
|
-
onFocus:
|
|
2164
|
-
onBlur:
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2177
|
+
prefix: p,
|
|
2178
|
+
suffix: h,
|
|
2179
|
+
id: b,
|
|
2180
|
+
onFocus: y,
|
|
2181
|
+
onBlur: x,
|
|
2182
|
+
onKeyDown: M,
|
|
2183
|
+
onSuffixClick: S,
|
|
2184
|
+
onChange: C,
|
|
2185
|
+
value: g = "",
|
|
2186
|
+
wrapperProps: $,
|
|
2187
|
+
wrapperStyles: k,
|
|
2188
|
+
floatingLabelStyles: D,
|
|
2170
2189
|
prefixStyles: T,
|
|
2171
|
-
suffixStyles:
|
|
2172
|
-
textareaStyles:
|
|
2173
|
-
labelProps:
|
|
2174
|
-
helperProps:
|
|
2175
|
-
showLimit:
|
|
2176
|
-
maxLength:
|
|
2177
|
-
inputProps:
|
|
2178
|
-
hint:
|
|
2179
|
-
showHint:
|
|
2180
|
-
showHintOnEmpty:
|
|
2181
|
-
truncate:
|
|
2182
|
-
resize:
|
|
2183
|
-
showGrip:
|
|
2184
|
-
...
|
|
2185
|
-
},
|
|
2186
|
-
const
|
|
2187
|
-
(
|
|
2188
|
-
var
|
|
2189
|
-
i || n || (
|
|
2190
|
-
|
|
2191
|
-
|
|
2190
|
+
suffixStyles: A,
|
|
2191
|
+
textareaStyles: N,
|
|
2192
|
+
labelProps: U,
|
|
2193
|
+
helperProps: q,
|
|
2194
|
+
showLimit: z = !1,
|
|
2195
|
+
maxLength: O,
|
|
2196
|
+
inputProps: m,
|
|
2197
|
+
hint: j,
|
|
2198
|
+
showHint: B = !1,
|
|
2199
|
+
showHintOnEmpty: G = !1,
|
|
2200
|
+
truncate: H = !1,
|
|
2201
|
+
resize: Q,
|
|
2202
|
+
showGrip: ae = !1,
|
|
2203
|
+
...J
|
|
2204
|
+
}, re) => {
|
|
2205
|
+
const se = $t(), de = b || se, [ve, ie] = Ne(g), ye = g !== void 0 ? g : ve, ue = (ye || "").length > 0, le = ye || "", _e = _ && (r === "large" || t === "textarea") && !p, xe = Se(
|
|
2206
|
+
(Z) => {
|
|
2207
|
+
var Y;
|
|
2208
|
+
i || n || (y == null || y(), (Y = m == null ? void 0 : m.onFocus) == null || Y.call(
|
|
2209
|
+
m,
|
|
2210
|
+
Z
|
|
2192
2211
|
));
|
|
2193
2212
|
},
|
|
2194
|
-
[
|
|
2195
|
-
),
|
|
2196
|
-
(
|
|
2197
|
-
var
|
|
2198
|
-
if (
|
|
2199
|
-
const ce =
|
|
2200
|
-
ce && ce.classList.add(
|
|
2213
|
+
[y, m, i, n]
|
|
2214
|
+
), De = Se(
|
|
2215
|
+
(Z) => {
|
|
2216
|
+
var Y;
|
|
2217
|
+
if (Z.key === "Tab") {
|
|
2218
|
+
const ce = Z.target.closest(`.${L.wrapper}`);
|
|
2219
|
+
ce && ce.classList.add(L.tabFocused);
|
|
2201
2220
|
}
|
|
2202
|
-
(
|
|
2203
|
-
|
|
2204
|
-
|
|
2221
|
+
(Y = m == null ? void 0 : m.onKeyUp) == null || Y.call(
|
|
2222
|
+
m,
|
|
2223
|
+
Z
|
|
2205
2224
|
);
|
|
2206
2225
|
},
|
|
2207
|
-
[
|
|
2208
|
-
),
|
|
2209
|
-
(
|
|
2226
|
+
[m]
|
|
2227
|
+
), We = Se(
|
|
2228
|
+
(Z) => {
|
|
2210
2229
|
var ce;
|
|
2211
|
-
const
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2230
|
+
const Y = Z.target.closest(`.${L.wrapper}`);
|
|
2231
|
+
Y && Y.classList.remove(L.tabFocused), x == null || x(), (ce = m == null ? void 0 : m.onBlur) == null || ce.call(
|
|
2232
|
+
m,
|
|
2233
|
+
Z
|
|
2215
2234
|
);
|
|
2216
2235
|
},
|
|
2217
|
-
[
|
|
2218
|
-
),
|
|
2219
|
-
(
|
|
2236
|
+
[x, m]
|
|
2237
|
+
), Ve = Se(
|
|
2238
|
+
(Z) => {
|
|
2220
2239
|
var ce;
|
|
2221
2240
|
if (i || n) return;
|
|
2222
|
-
const
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2241
|
+
const Y = Z.target.value;
|
|
2242
|
+
ie(Y), C == null || C(Y, Z), (ce = m == null ? void 0 : m.onChange) == null || ce.call(
|
|
2243
|
+
m,
|
|
2244
|
+
Z
|
|
2226
2245
|
);
|
|
2227
2246
|
},
|
|
2228
|
-
[
|
|
2247
|
+
[C, m, i, n]
|
|
2229
2248
|
);
|
|
2230
|
-
return
|
|
2231
|
-
|
|
2232
|
-
}, [
|
|
2249
|
+
return Ee(() => {
|
|
2250
|
+
ie(g || "");
|
|
2251
|
+
}, [g]), /* @__PURE__ */ o.jsx(
|
|
2233
2252
|
St.Wrapper,
|
|
2234
2253
|
{
|
|
2235
|
-
ref:
|
|
2254
|
+
ref: re,
|
|
2236
2255
|
size: r,
|
|
2237
2256
|
error: s,
|
|
2238
2257
|
disabled: i || n,
|
|
2239
2258
|
loading: n,
|
|
2240
|
-
className:
|
|
2241
|
-
wrapperProps:
|
|
2242
|
-
wrapperStyles:
|
|
2243
|
-
floatingLabelStyles:
|
|
2259
|
+
className: V(a, t === "textarea" && L["textarea-wrapper"]),
|
|
2260
|
+
wrapperProps: $,
|
|
2261
|
+
wrapperStyles: k,
|
|
2262
|
+
floatingLabelStyles: D,
|
|
2244
2263
|
prefixStyles: T,
|
|
2245
|
-
suffixStyles:
|
|
2246
|
-
labelProps:
|
|
2247
|
-
helperProps:
|
|
2248
|
-
showLimit:
|
|
2249
|
-
maxLength:
|
|
2250
|
-
hint:
|
|
2251
|
-
showHint:
|
|
2252
|
-
showHintOnEmpty:
|
|
2253
|
-
prefix:
|
|
2254
|
-
suffix:
|
|
2264
|
+
suffixStyles: A,
|
|
2265
|
+
labelProps: U,
|
|
2266
|
+
helperProps: q,
|
|
2267
|
+
showLimit: z,
|
|
2268
|
+
maxLength: O,
|
|
2269
|
+
hint: j,
|
|
2270
|
+
showHint: B,
|
|
2271
|
+
showHintOnEmpty: G,
|
|
2272
|
+
prefix: p,
|
|
2273
|
+
suffix: h,
|
|
2274
|
+
onSuffixClick: S,
|
|
2255
2275
|
placeholder: c,
|
|
2256
|
-
showLabel:
|
|
2276
|
+
showLabel: _,
|
|
2257
2277
|
labelClassName: d,
|
|
2258
|
-
hasValue:
|
|
2278
|
+
hasValue: ue,
|
|
2259
2279
|
helper: f,
|
|
2260
|
-
id:
|
|
2261
|
-
value:
|
|
2262
|
-
showGrip:
|
|
2263
|
-
resize:
|
|
2264
|
-
...
|
|
2280
|
+
id: de,
|
|
2281
|
+
value: le,
|
|
2282
|
+
showGrip: ae,
|
|
2283
|
+
resize: Q,
|
|
2284
|
+
...J,
|
|
2265
2285
|
children: /* @__PURE__ */ o.jsx(
|
|
2266
2286
|
St,
|
|
2267
2287
|
{
|
|
2268
2288
|
component: t,
|
|
2269
2289
|
size: r,
|
|
2270
|
-
value:
|
|
2290
|
+
value: le,
|
|
2271
2291
|
placeholder: c,
|
|
2272
2292
|
disabled: i,
|
|
2273
2293
|
loading: n,
|
|
2274
|
-
onFocus:
|
|
2275
|
-
onBlur:
|
|
2276
|
-
onChange:
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
2294
|
+
onFocus: xe,
|
|
2295
|
+
onBlur: We,
|
|
2296
|
+
onChange: Ve,
|
|
2297
|
+
onKeyDown: M,
|
|
2298
|
+
onKeyUp: De,
|
|
2299
|
+
maxLength: O,
|
|
2300
|
+
truncate: H,
|
|
2301
|
+
"data-empty": !ue,
|
|
2302
|
+
shouldShowFloatingLabelClass: _e,
|
|
2303
|
+
style: t === "textarea" ? N : void 0,
|
|
2283
2304
|
"aria-invalid": !!s,
|
|
2284
|
-
"aria-errormessage": s ? `${
|
|
2285
|
-
id:
|
|
2286
|
-
resize:
|
|
2287
|
-
...
|
|
2305
|
+
"aria-errormessage": s ? `${de}-error` : void 0,
|
|
2306
|
+
id: de,
|
|
2307
|
+
resize: Q,
|
|
2308
|
+
...m
|
|
2288
2309
|
}
|
|
2289
2310
|
)
|
|
2290
2311
|
}
|
|
2291
2312
|
);
|
|
2292
2313
|
}
|
|
2293
|
-
),
|
|
2314
|
+
), X = {
|
|
2294
2315
|
SMALL: "small",
|
|
2295
2316
|
MEDIUM: "medium",
|
|
2296
2317
|
LARGE: "large"
|
|
2297
|
-
},
|
|
2318
|
+
}, _n = (t, r, a, s) => {
|
|
2298
2319
|
switch (t) {
|
|
2299
|
-
case
|
|
2320
|
+
case X.LARGE:
|
|
2300
2321
|
return r && a ? "8px 16px 8px 16px" : "16px 16px 16px 16px";
|
|
2301
|
-
case
|
|
2322
|
+
case X.MEDIUM:
|
|
2302
2323
|
return s ? "12px 12px 12px 12px" : "12px 12px 12px 16px";
|
|
2303
|
-
case
|
|
2324
|
+
case X.SMALL:
|
|
2304
2325
|
return "10px 12px 10px 12px";
|
|
2305
2326
|
default:
|
|
2306
2327
|
return "12px 16px 12px 16px";
|
|
2307
2328
|
}
|
|
2308
|
-
},
|
|
2329
|
+
}, pn = (t) => {
|
|
2309
2330
|
switch (t) {
|
|
2310
|
-
case
|
|
2331
|
+
case X.LARGE:
|
|
2311
2332
|
return "56px";
|
|
2312
|
-
case
|
|
2333
|
+
case X.MEDIUM:
|
|
2313
2334
|
return "48px";
|
|
2314
|
-
case
|
|
2335
|
+
case X.SMALL:
|
|
2315
2336
|
return "40px";
|
|
2316
2337
|
default:
|
|
2317
2338
|
return "48px";
|
|
2318
2339
|
}
|
|
2319
2340
|
}, fn = (t) => {
|
|
2320
2341
|
switch (t) {
|
|
2321
|
-
case
|
|
2342
|
+
case X.SMALL:
|
|
2322
2343
|
return 8;
|
|
2323
2344
|
// 8px для small
|
|
2324
|
-
case
|
|
2325
|
-
case
|
|
2345
|
+
case X.MEDIUM:
|
|
2346
|
+
case X.LARGE:
|
|
2326
2347
|
return 12;
|
|
2327
2348
|
// 12px для medium и large
|
|
2328
2349
|
default:
|
|
@@ -2379,13 +2400,13 @@ const St = Object.assign(un, {
|
|
|
2379
2400
|
right: `${a}px`
|
|
2380
2401
|
}
|
|
2381
2402
|
}), yn = (t, r, a, s) => {
|
|
2382
|
-
const i =
|
|
2403
|
+
const i = pn(t), n = _n(t, r, a, s), c = fn(t);
|
|
2383
2404
|
switch (t) {
|
|
2384
|
-
case
|
|
2405
|
+
case X.LARGE:
|
|
2385
2406
|
return gn(i, n, c);
|
|
2386
|
-
case
|
|
2407
|
+
case X.MEDIUM:
|
|
2387
2408
|
return hn(i, n, c);
|
|
2388
|
-
case
|
|
2409
|
+
case X.SMALL:
|
|
2389
2410
|
return bn(i, n, c);
|
|
2390
2411
|
default:
|
|
2391
2412
|
return {
|
|
@@ -2395,7 +2416,7 @@ const St = Object.assign(un, {
|
|
|
2395
2416
|
suffixStyles: {}
|
|
2396
2417
|
};
|
|
2397
2418
|
}
|
|
2398
|
-
}, Fn =
|
|
2419
|
+
}, Fn = te(
|
|
2399
2420
|
({
|
|
2400
2421
|
value: t = "",
|
|
2401
2422
|
onChange: r,
|
|
@@ -2404,131 +2425,134 @@ const St = Object.assign(un, {
|
|
|
2404
2425
|
maxLength: i,
|
|
2405
2426
|
minLength: n,
|
|
2406
2427
|
autoComplete: c,
|
|
2407
|
-
autoFocus:
|
|
2408
|
-
size: d =
|
|
2428
|
+
autoFocus: _,
|
|
2429
|
+
size: d = X.MEDIUM,
|
|
2409
2430
|
inputProps: f,
|
|
2410
|
-
error:
|
|
2411
|
-
disabled:
|
|
2412
|
-
loading:
|
|
2413
|
-
helper:
|
|
2414
|
-
prefix:
|
|
2415
|
-
suffix:
|
|
2416
|
-
clearable:
|
|
2417
|
-
id:
|
|
2418
|
-
showLabel:
|
|
2419
|
-
onFocus:
|
|
2420
|
-
onBlur:
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
|
|
2426
|
-
|
|
2427
|
-
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
|
|
2431
|
+
error: p,
|
|
2432
|
+
disabled: h,
|
|
2433
|
+
loading: b,
|
|
2434
|
+
helper: y,
|
|
2435
|
+
prefix: x,
|
|
2436
|
+
suffix: M,
|
|
2437
|
+
clearable: S = !1,
|
|
2438
|
+
id: C,
|
|
2439
|
+
showLabel: g = !0,
|
|
2440
|
+
onFocus: $,
|
|
2441
|
+
onBlur: k,
|
|
2442
|
+
onSuffixClick: D,
|
|
2443
|
+
onClear: T,
|
|
2444
|
+
className: A,
|
|
2445
|
+
truncate: N = !0,
|
|
2446
|
+
hint: U,
|
|
2447
|
+
showHint: q = !1,
|
|
2448
|
+
showHintOnEmpty: z = !1,
|
|
2449
|
+
wrapperProps: O,
|
|
2450
|
+
labelProps: m,
|
|
2451
|
+
helperProps: j,
|
|
2452
|
+
...B
|
|
2453
|
+
}, G) => {
|
|
2454
|
+
const H = (t || "").length > 0, Q = d === X.LARGE, ae = !!x, J = Q && g && !x, re = S && H && !(h || b), se = () => {
|
|
2455
|
+
r == null || r(""), T == null || T();
|
|
2456
|
+
}, de = re ? /* @__PURE__ */ o.jsx(
|
|
2434
2457
|
kt,
|
|
2435
2458
|
{
|
|
2436
|
-
size: d ===
|
|
2459
|
+
size: d === X.SMALL ? "xs" : "sm",
|
|
2437
2460
|
color: "var(--icon-secondary)",
|
|
2438
|
-
onClick:
|
|
2461
|
+
onClick: se,
|
|
2439
2462
|
style: { cursor: "pointer" },
|
|
2440
2463
|
"data-testid": "x-icon"
|
|
2441
2464
|
}
|
|
2442
|
-
) :
|
|
2465
|
+
) : M, ve = {
|
|
2443
2466
|
type: a,
|
|
2444
2467
|
minLength: n,
|
|
2445
2468
|
autoComplete: c,
|
|
2446
|
-
autoFocus:
|
|
2469
|
+
autoFocus: _,
|
|
2447
2470
|
...f
|
|
2448
|
-
},
|
|
2471
|
+
}, ie = yn(d, J, H, ae);
|
|
2449
2472
|
return /* @__PURE__ */ o.jsx(
|
|
2450
2473
|
At,
|
|
2451
2474
|
{
|
|
2452
2475
|
size: d,
|
|
2453
|
-
error:
|
|
2454
|
-
disabled:
|
|
2455
|
-
loading:
|
|
2456
|
-
helper:
|
|
2457
|
-
prefix:
|
|
2458
|
-
suffix:
|
|
2459
|
-
id:
|
|
2460
|
-
showLabel:
|
|
2461
|
-
onFocus:
|
|
2462
|
-
onBlur:
|
|
2476
|
+
error: p,
|
|
2477
|
+
disabled: h || b,
|
|
2478
|
+
loading: b,
|
|
2479
|
+
helper: y,
|
|
2480
|
+
prefix: x,
|
|
2481
|
+
suffix: de,
|
|
2482
|
+
id: C,
|
|
2483
|
+
showLabel: J,
|
|
2484
|
+
onFocus: $,
|
|
2485
|
+
onBlur: k,
|
|
2486
|
+
onSuffixClick: D,
|
|
2463
2487
|
onChange: r,
|
|
2464
|
-
value: t
|
|
2488
|
+
value: t,
|
|
2465
2489
|
placeholder: s,
|
|
2466
|
-
className:
|
|
2467
|
-
wrapperStyles:
|
|
2468
|
-
floatingLabelStyles:
|
|
2469
|
-
prefixStyles:
|
|
2470
|
-
suffixStyles:
|
|
2471
|
-
wrapperProps:
|
|
2472
|
-
labelProps:
|
|
2473
|
-
helperProps:
|
|
2490
|
+
className: A,
|
|
2491
|
+
wrapperStyles: ie.wrapperStyles,
|
|
2492
|
+
floatingLabelStyles: ie.floatingLabelStyles,
|
|
2493
|
+
prefixStyles: ie.prefixStyles,
|
|
2494
|
+
suffixStyles: ie.suffixStyles,
|
|
2495
|
+
wrapperProps: O,
|
|
2496
|
+
labelProps: m,
|
|
2497
|
+
helperProps: j,
|
|
2474
2498
|
showLimit: !1,
|
|
2475
2499
|
maxLength: i,
|
|
2476
|
-
inputProps:
|
|
2477
|
-
hint:
|
|
2478
|
-
showHint:
|
|
2479
|
-
showHintOnEmpty:
|
|
2480
|
-
truncate:
|
|
2481
|
-
...
|
|
2500
|
+
inputProps: ve,
|
|
2501
|
+
hint: U,
|
|
2502
|
+
showHint: q,
|
|
2503
|
+
showHintOnEmpty: z,
|
|
2504
|
+
truncate: N,
|
|
2505
|
+
...B
|
|
2482
2506
|
}
|
|
2483
2507
|
);
|
|
2484
2508
|
}
|
|
2485
2509
|
), oe = {
|
|
2486
2510
|
SMALL: "small",
|
|
2487
2511
|
MEDIUM: "medium"
|
|
2488
|
-
},
|
|
2512
|
+
}, Pe = {
|
|
2489
2513
|
SMALL: "12px",
|
|
2490
2514
|
MEDIUM: "16px"
|
|
2491
2515
|
}, mn = {
|
|
2492
2516
|
SMALL: "xs",
|
|
2493
2517
|
MEDIUM: "sm"
|
|
2494
|
-
},
|
|
2518
|
+
}, Be = {
|
|
2495
2519
|
FILL: "fill",
|
|
2496
2520
|
FIXED: "fixed"
|
|
2497
|
-
},
|
|
2521
|
+
}, Xe = {
|
|
2498
2522
|
SMALL: "112px",
|
|
2499
2523
|
MEDIUM: "56px"
|
|
2500
2524
|
}, $e = {
|
|
2501
2525
|
SMALL: "48px",
|
|
2502
2526
|
MEDIUM: "22px"
|
|
2503
|
-
},
|
|
2527
|
+
}, ge = {
|
|
2504
2528
|
SMALL: "12px 12px 12px 12px",
|
|
2505
2529
|
MEDIUM: "16px 16px 16px 16px",
|
|
2506
2530
|
MEDIUM_WITH_PREFIX: "12px 16px 12px 16px",
|
|
2507
2531
|
MEDIUM_FLOATING_LABEL: "8px 16px 8px 16px"
|
|
2508
|
-
},
|
|
2532
|
+
}, be = {
|
|
2509
2533
|
SMALL: 48,
|
|
2510
2534
|
MEDIUM: 56,
|
|
2511
2535
|
LARGE: 112
|
|
2512
2536
|
}, vn = (t, r) => {
|
|
2513
2537
|
if (t === oe.SMALL)
|
|
2514
|
-
return
|
|
2538
|
+
return Xe.SMALL;
|
|
2515
2539
|
if (r)
|
|
2516
2540
|
return `${r}px`;
|
|
2517
2541
|
switch (t) {
|
|
2518
2542
|
case oe.MEDIUM:
|
|
2519
|
-
return
|
|
2543
|
+
return Xe.MEDIUM;
|
|
2520
2544
|
default:
|
|
2521
|
-
return
|
|
2545
|
+
return Xe.MEDIUM;
|
|
2522
2546
|
}
|
|
2523
2547
|
}, xn = (t, r) => {
|
|
2524
2548
|
if (t === oe.SMALL)
|
|
2525
2549
|
return $e.SMALL;
|
|
2526
2550
|
if (r)
|
|
2527
2551
|
switch (r) {
|
|
2528
|
-
case
|
|
2529
|
-
case
|
|
2552
|
+
case be.SMALL:
|
|
2553
|
+
case be.MEDIUM:
|
|
2530
2554
|
return $e.MEDIUM;
|
|
2531
|
-
case
|
|
2555
|
+
case be.LARGE:
|
|
2532
2556
|
return $e.SMALL;
|
|
2533
2557
|
default:
|
|
2534
2558
|
return $e.MEDIUM;
|
|
@@ -2541,55 +2565,55 @@ const St = Object.assign(un, {
|
|
|
2541
2565
|
}
|
|
2542
2566
|
}, Cn = (t, r, a) => {
|
|
2543
2567
|
if (t === oe.SMALL)
|
|
2544
|
-
return
|
|
2568
|
+
return ge.SMALL;
|
|
2545
2569
|
if (r)
|
|
2546
2570
|
switch (r) {
|
|
2547
|
-
case
|
|
2548
|
-
return
|
|
2549
|
-
case
|
|
2550
|
-
return a ?
|
|
2551
|
-
case
|
|
2552
|
-
return
|
|
2571
|
+
case be.SMALL:
|
|
2572
|
+
return ge.MEDIUM_WITH_PREFIX;
|
|
2573
|
+
case be.MEDIUM:
|
|
2574
|
+
return a ? ge.MEDIUM_FLOATING_LABEL : ge.MEDIUM;
|
|
2575
|
+
case be.LARGE:
|
|
2576
|
+
return ge.MEDIUM;
|
|
2553
2577
|
default:
|
|
2554
|
-
return
|
|
2578
|
+
return ge.MEDIUM;
|
|
2555
2579
|
}
|
|
2556
2580
|
switch (t) {
|
|
2557
2581
|
case oe.MEDIUM:
|
|
2558
|
-
return a ?
|
|
2582
|
+
return a ? ge.MEDIUM_FLOATING_LABEL : ge.MEDIUM;
|
|
2559
2583
|
default:
|
|
2560
|
-
return
|
|
2584
|
+
return ge.MEDIUM;
|
|
2561
2585
|
}
|
|
2562
2586
|
}, wn = (t, r) => {
|
|
2563
2587
|
if (t === oe.SMALL)
|
|
2564
2588
|
return "small";
|
|
2565
2589
|
if (r)
|
|
2566
2590
|
switch (r) {
|
|
2567
|
-
case
|
|
2591
|
+
case be.SMALL:
|
|
2568
2592
|
return "small";
|
|
2569
|
-
case
|
|
2593
|
+
case be.MEDIUM:
|
|
2570
2594
|
return "medium";
|
|
2571
|
-
case
|
|
2595
|
+
case be.LARGE:
|
|
2572
2596
|
return "medium";
|
|
2573
2597
|
default:
|
|
2574
2598
|
return "medium";
|
|
2575
2599
|
}
|
|
2576
2600
|
return t;
|
|
2577
|
-
}, Sn = (t) => mn[t.toUpperCase()], En = (t) =>
|
|
2601
|
+
}, Sn = (t) => mn[t.toUpperCase()], En = (t) => Pe[t.toUpperCase()], Ln = (t, r, a, s) => {
|
|
2578
2602
|
const i = vn(t, r), n = xn(t, r), c = Cn(t, r, a);
|
|
2579
2603
|
return {
|
|
2580
2604
|
wrapperStyles: {
|
|
2581
2605
|
minHeight: i,
|
|
2582
2606
|
// Для fill resize устанавливаем height: 100%
|
|
2583
|
-
...s ===
|
|
2607
|
+
...s === Be.FILL && { height: "100%" },
|
|
2584
2608
|
// Для fixed resize устанавливаем фиксированную высоту
|
|
2585
|
-
...s ===
|
|
2609
|
+
...s === Be.FIXED && r && { height: i },
|
|
2586
2610
|
boxSizing: "border-box",
|
|
2587
2611
|
padding: c
|
|
2588
2612
|
},
|
|
2589
2613
|
floatingLabelStyles: {
|
|
2590
|
-
left: t === oe.SMALL ?
|
|
2614
|
+
left: t === oe.SMALL ? Pe.SMALL : Pe.MEDIUM,
|
|
2591
2615
|
transformOrigin: "left top",
|
|
2592
|
-
top: r === 112 && a && t === oe.MEDIUM ?
|
|
2616
|
+
top: r === 112 && a && t === oe.MEDIUM ? Pe.MEDIUM : void 0
|
|
2593
2617
|
},
|
|
2594
2618
|
suffixStyles: {
|
|
2595
2619
|
right: En(t)
|
|
@@ -2597,12 +2621,12 @@ const St = Object.assign(un, {
|
|
|
2597
2621
|
textareaStyles: {
|
|
2598
2622
|
minHeight: n,
|
|
2599
2623
|
// Для fill resize flex: 1
|
|
2600
|
-
...s ===
|
|
2624
|
+
...s === Be.FILL && { flex: 1, minHeight: 0 },
|
|
2601
2625
|
// Для fixed resize фиксированная высота
|
|
2602
|
-
...s ===
|
|
2626
|
+
...s === Be.FIXED && r && { height: n }
|
|
2603
2627
|
}
|
|
2604
2628
|
};
|
|
2605
|
-
}, Pn =
|
|
2629
|
+
}, Pn = te(
|
|
2606
2630
|
({
|
|
2607
2631
|
value: t = "",
|
|
2608
2632
|
onChange: r,
|
|
@@ -2611,83 +2635,86 @@ const St = Object.assign(un, {
|
|
|
2611
2635
|
minLength: i,
|
|
2612
2636
|
autoFocus: n,
|
|
2613
2637
|
size: c = oe.MEDIUM,
|
|
2614
|
-
textareaProps:
|
|
2638
|
+
textareaProps: _,
|
|
2615
2639
|
error: d,
|
|
2616
2640
|
disabled: f,
|
|
2617
|
-
loading:
|
|
2618
|
-
helper:
|
|
2619
|
-
suffix:
|
|
2620
|
-
clearable:
|
|
2621
|
-
id:
|
|
2622
|
-
showLabel:
|
|
2623
|
-
onFocus:
|
|
2624
|
-
onBlur:
|
|
2625
|
-
|
|
2626
|
-
|
|
2641
|
+
loading: p,
|
|
2642
|
+
helper: h,
|
|
2643
|
+
suffix: b,
|
|
2644
|
+
clearable: y = !1,
|
|
2645
|
+
id: x,
|
|
2646
|
+
showLabel: M = !0,
|
|
2647
|
+
onFocus: S,
|
|
2648
|
+
onBlur: C,
|
|
2649
|
+
onClear: g,
|
|
2650
|
+
onKeyDown: $,
|
|
2651
|
+
className: k,
|
|
2652
|
+
rows: D = 1,
|
|
2627
2653
|
showLimit: T = !1,
|
|
2628
|
-
wrapperProps:
|
|
2629
|
-
labelProps:
|
|
2630
|
-
helperProps:
|
|
2631
|
-
showGrip:
|
|
2632
|
-
minHeight:
|
|
2633
|
-
resize:
|
|
2634
|
-
...
|
|
2635
|
-
},
|
|
2636
|
-
const
|
|
2637
|
-
r == null || r("");
|
|
2638
|
-
},
|
|
2654
|
+
wrapperProps: A,
|
|
2655
|
+
labelProps: N,
|
|
2656
|
+
helperProps: U,
|
|
2657
|
+
showGrip: q,
|
|
2658
|
+
minHeight: z,
|
|
2659
|
+
resize: O,
|
|
2660
|
+
...m
|
|
2661
|
+
}, j) => {
|
|
2662
|
+
const B = (t || "").length > 0, G = M && !!a && (c === oe.SMALL || z !== 48), H = y && B && !(f || p), Q = () => {
|
|
2663
|
+
r == null || r(""), g == null || g();
|
|
2664
|
+
}, ae = H ? /* @__PURE__ */ o.jsx(
|
|
2639
2665
|
kt,
|
|
2640
2666
|
{
|
|
2641
2667
|
size: Sn(c),
|
|
2642
2668
|
color: "var(--icon-secondary)",
|
|
2643
|
-
onClick:
|
|
2669
|
+
onClick: Q,
|
|
2644
2670
|
style: { cursor: "pointer" },
|
|
2645
2671
|
"data-testid": "x-icon"
|
|
2646
2672
|
}
|
|
2647
|
-
) :
|
|
2648
|
-
rows:
|
|
2673
|
+
) : b, J = Ln(c, z, G && B, O), re = wn(c, z), se = {
|
|
2674
|
+
rows: D,
|
|
2649
2675
|
minLength: i,
|
|
2650
2676
|
autoFocus: n,
|
|
2651
|
-
resize:
|
|
2652
|
-
...
|
|
2677
|
+
resize: O,
|
|
2678
|
+
..._
|
|
2653
2679
|
};
|
|
2654
2680
|
return /* @__PURE__ */ o.jsx(
|
|
2655
2681
|
At,
|
|
2656
2682
|
{
|
|
2657
|
-
ref:
|
|
2683
|
+
ref: j,
|
|
2658
2684
|
component: "textarea",
|
|
2659
|
-
size:
|
|
2685
|
+
size: re,
|
|
2660
2686
|
error: d,
|
|
2661
|
-
disabled: f ||
|
|
2662
|
-
loading:
|
|
2663
|
-
helper:
|
|
2664
|
-
suffix:
|
|
2665
|
-
id:
|
|
2666
|
-
showLabel:
|
|
2667
|
-
onFocus:
|
|
2668
|
-
onBlur:
|
|
2687
|
+
disabled: f || p,
|
|
2688
|
+
loading: p,
|
|
2689
|
+
helper: h,
|
|
2690
|
+
suffix: ae,
|
|
2691
|
+
id: x,
|
|
2692
|
+
showLabel: G,
|
|
2693
|
+
onFocus: S,
|
|
2694
|
+
onBlur: C,
|
|
2695
|
+
onKeyDown: $,
|
|
2669
2696
|
onChange: r,
|
|
2670
2697
|
value: t || "",
|
|
2671
2698
|
placeholder: a,
|
|
2672
|
-
className:
|
|
2673
|
-
"data-floating-label":
|
|
2674
|
-
wrapperStyles:
|
|
2675
|
-
floatingLabelStyles:
|
|
2676
|
-
suffixStyles:
|
|
2677
|
-
textareaStyles:
|
|
2678
|
-
wrapperProps:
|
|
2679
|
-
labelProps:
|
|
2680
|
-
helperProps:
|
|
2681
|
-
showLimit: T && (
|
|
2699
|
+
className: k,
|
|
2700
|
+
"data-floating-label": G,
|
|
2701
|
+
wrapperStyles: J.wrapperStyles,
|
|
2702
|
+
floatingLabelStyles: J.floatingLabelStyles,
|
|
2703
|
+
suffixStyles: J.suffixStyles,
|
|
2704
|
+
textareaStyles: J.textareaStyles,
|
|
2705
|
+
wrapperProps: A,
|
|
2706
|
+
labelProps: N,
|
|
2707
|
+
helperProps: U,
|
|
2708
|
+
showLimit: T && (z === 112 || c === oe.SMALL),
|
|
2682
2709
|
maxLength: s,
|
|
2683
|
-
inputProps:
|
|
2684
|
-
resize:
|
|
2685
|
-
showGrip:
|
|
2686
|
-
...
|
|
2710
|
+
inputProps: se,
|
|
2711
|
+
resize: O,
|
|
2712
|
+
showGrip: q,
|
|
2713
|
+
...m
|
|
2687
2714
|
}
|
|
2688
2715
|
);
|
|
2689
2716
|
}
|
|
2690
|
-
), Mn = "_helper_1vhgl_16",
|
|
2717
|
+
), Mn = "_helper_1vhgl_16", Qe = {
|
|
2691
2718
|
helper: Mn,
|
|
2692
2719
|
"helper--error": "_helper--error_1vhgl_27",
|
|
2693
2720
|
"helper--disabled": "_helper--disabled_1vhgl_32"
|
|
@@ -2699,14 +2726,14 @@ const St = Object.assign(un, {
|
|
|
2699
2726
|
disabled: i = !1,
|
|
2700
2727
|
"data-testid": n,
|
|
2701
2728
|
"aria-label": c,
|
|
2702
|
-
"aria-describedby":
|
|
2729
|
+
"aria-describedby": _
|
|
2703
2730
|
}) => {
|
|
2704
|
-
const d = !!r, f =
|
|
2705
|
-
|
|
2706
|
-
d &&
|
|
2707
|
-
i &&
|
|
2731
|
+
const d = !!r, f = V(
|
|
2732
|
+
Qe.helper,
|
|
2733
|
+
d && Qe["helper--error"],
|
|
2734
|
+
i && Qe["helper--disabled"],
|
|
2708
2735
|
a
|
|
2709
|
-
),
|
|
2736
|
+
), p = i ? t : r || t;
|
|
2710
2737
|
return /* @__PURE__ */ o.jsx(
|
|
2711
2738
|
"div",
|
|
2712
2739
|
{
|
|
@@ -2714,8 +2741,8 @@ const St = Object.assign(un, {
|
|
|
2714
2741
|
style: s,
|
|
2715
2742
|
"data-testid": n,
|
|
2716
2743
|
"aria-label": c,
|
|
2717
|
-
"aria-describedby":
|
|
2718
|
-
children: /* @__PURE__ */ o.jsx("p", { children:
|
|
2744
|
+
"aria-describedby": _,
|
|
2745
|
+
children: /* @__PURE__ */ o.jsx("p", { children: p })
|
|
2719
2746
|
}
|
|
2720
2747
|
);
|
|
2721
2748
|
};
|