skillgrid 0.0.24 → 0.0.25-dev-38682-image.1172030
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/Image/Image.type.d.ts +4 -0
- package/dist/components/InputBase/Input.type.d.ts +4 -0
- package/dist/components/InputBase/InputBase.type.d.ts +7 -3
- package/dist/components/Loader/Loader.type.d.ts +1 -1
- 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 +1023 -987
- package/package.json +2 -2
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 De, useEffect as Ee, useRef as We, 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 B } 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 Be = { exports: {} },
|
|
7
|
+
var Be = { exports: {} }, Ie = {};
|
|
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 Ie;
|
|
20
20
|
ft = 1;
|
|
21
21
|
var t = Lt, r = Symbol.for("react.element"), a = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, i = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, n = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
22
22
|
function c(p, d, f) {
|
|
23
|
-
var _,
|
|
24
|
-
f !== void 0 && (
|
|
25
|
-
for (_ in d) s.call(d, _) && !n.hasOwnProperty(_) && (
|
|
26
|
-
if (p && p.defaultProps) for (_ in d = p.defaultProps, d)
|
|
27
|
-
return { $$typeof: r, type: p, key:
|
|
23
|
+
var _, 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 (_ in d) s.call(d, _) && !n.hasOwnProperty(_) && (h[_] = d[_]);
|
|
26
|
+
if (p && p.defaultProps) for (_ in d = p.defaultProps, d) h[_] === void 0 && (h[_] = d[_]);
|
|
27
|
+
return { $$typeof: r, type: p, key: b, ref: y, props: h, _owner: i.current };
|
|
28
28
|
}
|
|
29
|
-
return
|
|
29
|
+
return Ie.Fragment = a, Ie.jsx = c, Ie.jsxs = c, Ie;
|
|
30
30
|
}
|
|
31
|
-
var
|
|
31
|
+
var Re = {};
|
|
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"), p = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), _ = Symbol.for("react.suspense_list"),
|
|
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"), p = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), _ = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), b = Symbol.for("react.lazy"), y = Symbol.for("react.offscreen"), v = Symbol.iterator, E = "@@iterator";
|
|
45
|
+
function w(e) {
|
|
46
46
|
if (e === null || typeof e != "object")
|
|
47
47
|
return null;
|
|
48
|
-
var l =
|
|
48
|
+
var l = v && e[v] || e[E];
|
|
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
|
-
for (var l = arguments.length, u = new Array(l > 1 ? l - 1 : 0),
|
|
55
|
-
u[
|
|
56
|
-
|
|
54
|
+
for (var l = arguments.length, u = new Array(l > 1 ? l - 1 : 0), x = 1; x < l; x++)
|
|
55
|
+
u[x - 1] = arguments[x];
|
|
56
|
+
R("error", e, u);
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
|
-
function
|
|
59
|
+
function R(e, l, u) {
|
|
60
60
|
{
|
|
61
|
-
var
|
|
61
|
+
var x = C.ReactDebugCurrentFrame, I = x.getStackAddendum();
|
|
62
62
|
I !== "" && (l += "%s", u = u.concat([I]));
|
|
63
|
-
var
|
|
63
|
+
var T = u.map(function(L) {
|
|
64
64
|
return String(L);
|
|
65
65
|
});
|
|
66
|
-
|
|
66
|
+
T.unshift("Warning: " + l), Function.prototype.apply.call(console[e], console, T);
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
|
-
var
|
|
70
|
-
|
|
71
|
-
function
|
|
72
|
-
return !!(typeof e == "string" || typeof e == "function" || e === s || e === n ||
|
|
69
|
+
var D = !1, k = !1, $ = !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 === _ || A || e === y || D || k || $ || typeof e == "object" && e !== null && (e.$$typeof === b || e.$$typeof === h || e.$$typeof === c || e.$$typeof === p || e.$$typeof === d || // This needs to include all possible module reference object
|
|
73
73
|
// types supported by any Flight configuration anywhere since
|
|
74
74
|
// we don't know which Flight build this will end up being used
|
|
75
75
|
// with.
|
|
76
|
-
e.$$typeof ===
|
|
76
|
+
e.$$typeof === U || e.getModuleId !== void 0));
|
|
77
77
|
}
|
|
78
|
-
function
|
|
79
|
-
var
|
|
80
|
-
if (
|
|
81
|
-
return
|
|
78
|
+
function W(e, l, u) {
|
|
79
|
+
var x = e.displayName;
|
|
80
|
+
if (x)
|
|
81
|
+
return x;
|
|
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;
|
|
@@ -110,19 +110,19 @@ function ca() {
|
|
|
110
110
|
switch (e.$$typeof) {
|
|
111
111
|
case p:
|
|
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
|
|
120
|
-
var
|
|
121
|
-
return
|
|
122
|
-
case
|
|
123
|
-
var I = e,
|
|
118
|
+
return W(e, e.render, "ForwardRef");
|
|
119
|
+
case h:
|
|
120
|
+
var x = e.displayName || null;
|
|
121
|
+
return x !== null ? x : m(e.type) || "Memo";
|
|
122
|
+
case b: {
|
|
123
|
+
var I = e, T = I._payload, L = I._init;
|
|
124
124
|
try {
|
|
125
|
-
return
|
|
125
|
+
return m(L(T));
|
|
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, F = 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
|
-
if (
|
|
140
|
-
|
|
139
|
+
if (F === 0) {
|
|
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, {
|
|
@@ -154,77 +154,77 @@ function ca() {
|
|
|
154
154
|
groupEnd: e
|
|
155
155
|
});
|
|
156
156
|
}
|
|
157
|
-
|
|
157
|
+
F++;
|
|
158
158
|
}
|
|
159
159
|
}
|
|
160
|
-
function
|
|
160
|
+
function ie() {
|
|
161
161
|
{
|
|
162
|
-
if (
|
|
162
|
+
if (F--, F === 0) {
|
|
163
163
|
var e = {
|
|
164
164
|
configurable: !0,
|
|
165
165
|
enumerable: !0,
|
|
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
|
-
|
|
192
|
+
F < 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 {
|
|
200
200
|
throw Error();
|
|
201
201
|
} catch (I) {
|
|
202
|
-
var
|
|
203
|
-
ue =
|
|
202
|
+
var x = I.stack.trim().match(/\n( *(at )?)/);
|
|
203
|
+
ue = x && x[1] || "";
|
|
204
204
|
}
|
|
205
205
|
return `
|
|
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 Oe(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
|
-
var
|
|
223
|
-
|
|
222
|
+
var x;
|
|
223
|
+
me = !0;
|
|
224
224
|
var I = Error.prepareStackTrace;
|
|
225
225
|
Error.prepareStackTrace = void 0;
|
|
226
|
-
var
|
|
227
|
-
|
|
226
|
+
var T;
|
|
227
|
+
T = ye.current, ye.current = null, ve();
|
|
228
228
|
try {
|
|
229
229
|
if (l) {
|
|
230
230
|
var L = function() {
|
|
@@ -237,116 +237,116 @@ function ca() {
|
|
|
237
237
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
238
238
|
try {
|
|
239
239
|
Reflect.construct(L, []);
|
|
240
|
-
} catch (
|
|
241
|
-
|
|
240
|
+
} catch (ee) {
|
|
241
|
+
x = ee;
|
|
242
242
|
}
|
|
243
243
|
Reflect.construct(e, [], L);
|
|
244
244
|
} else {
|
|
245
245
|
try {
|
|
246
246
|
L.call();
|
|
247
|
-
} catch (
|
|
248
|
-
|
|
247
|
+
} catch (ee) {
|
|
248
|
+
x = ee;
|
|
249
249
|
}
|
|
250
250
|
e.call(L.prototype);
|
|
251
251
|
}
|
|
252
252
|
} else {
|
|
253
253
|
try {
|
|
254
254
|
throw Error();
|
|
255
|
-
} catch (
|
|
256
|
-
|
|
255
|
+
} catch (ee) {
|
|
256
|
+
x = ee;
|
|
257
257
|
}
|
|
258
258
|
e();
|
|
259
259
|
}
|
|
260
|
-
} catch (
|
|
261
|
-
if (
|
|
262
|
-
for (var
|
|
263
|
-
`),
|
|
264
|
-
`),
|
|
265
|
-
|
|
266
|
-
for (;
|
|
267
|
-
if (
|
|
268
|
-
if (
|
|
260
|
+
} catch (ee) {
|
|
261
|
+
if (ee && x && typeof ee.stack == "string") {
|
|
262
|
+
for (var S = ee.stack.split(`
|
|
263
|
+
`), K = x.stack.split(`
|
|
264
|
+
`), P = S.length - 1, V = K.length - 1; P >= 1 && V >= 0 && S[P] !== K[V]; )
|
|
265
|
+
V--;
|
|
266
|
+
for (; P >= 1 && V >= 0; P--, V--)
|
|
267
|
+
if (S[P] !== K[V]) {
|
|
268
|
+
if (P !== 1 || V !== 1)
|
|
269
269
|
do
|
|
270
|
-
if (
|
|
270
|
+
if (P--, V--, V < 0 || S[P] !== K[V]) {
|
|
271
271
|
var ne = `
|
|
272
|
-
` +
|
|
273
|
-
return e.displayName && ne.includes("<anonymous>") && (ne = ne.replace("<anonymous>", e.displayName)), typeof e == "function" &&
|
|
272
|
+
` + S[P].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 (
|
|
275
|
+
while (P >= 1 && V >= 0);
|
|
276
276
|
break;
|
|
277
277
|
}
|
|
278
278
|
}
|
|
279
279
|
} finally {
|
|
280
|
-
|
|
280
|
+
me = !1, ye.current = T, 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 Ve(e, l, u) {
|
|
286
|
+
return Oe(e, !1);
|
|
287
287
|
}
|
|
288
|
-
function
|
|
288
|
+
function He(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 Oe(e, He(e));
|
|
297
297
|
if (typeof e == "string")
|
|
298
|
-
return
|
|
298
|
+
return le(e);
|
|
299
299
|
switch (e) {
|
|
300
300
|
case f:
|
|
301
|
-
return
|
|
301
|
+
return le("Suspense");
|
|
302
302
|
case _:
|
|
303
|
-
return
|
|
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
|
|
308
|
+
return Ve(e.render);
|
|
309
|
+
case h:
|
|
310
|
+
return Z(e.type, l, u);
|
|
311
|
+
case b: {
|
|
312
|
+
var x = e, I = x._payload, T = x._init;
|
|
313
313
|
try {
|
|
314
|
-
return
|
|
314
|
+
return Z(T(I), l, u);
|
|
315
315
|
} catch {
|
|
316
316
|
}
|
|
317
317
|
}
|
|
318
318
|
}
|
|
319
319
|
return "";
|
|
320
320
|
}
|
|
321
|
-
var
|
|
321
|
+
var Y = Object.prototype.hasOwnProperty, ce = {}, tt = C.ReactDebugCurrentFrame;
|
|
322
322
|
function Ue(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
|
-
function Nt(e, l, u,
|
|
329
|
+
function Nt(e, l, u, x, I) {
|
|
330
330
|
{
|
|
331
|
-
var
|
|
331
|
+
var T = Function.call.bind(Y);
|
|
332
332
|
for (var L in e)
|
|
333
|
-
if (
|
|
334
|
-
var
|
|
333
|
+
if (T(e, L)) {
|
|
334
|
+
var S = void 0;
|
|
335
335
|
try {
|
|
336
336
|
if (typeof e[L] != "function") {
|
|
337
|
-
var
|
|
338
|
-
throw
|
|
337
|
+
var K = Error((x || "React class") + ": " + u + " type `" + L + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[L] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
338
|
+
throw K.name = "Invariant Violation", K;
|
|
339
339
|
}
|
|
340
|
-
|
|
341
|
-
} catch (
|
|
342
|
-
|
|
340
|
+
S = e[L](l, L, x, u, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
341
|
+
} catch (P) {
|
|
342
|
+
S = P;
|
|
343
343
|
}
|
|
344
|
-
|
|
344
|
+
S && !(S instanceof Error) && (Ue(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).", x || "React class", u, L, typeof S), Ue(null)), S instanceof Error && !(S.message in ce) && (ce[S.message] = !0, Ue(I), g("Failed %s type: %s", u, S.message), Ue(null));
|
|
345
345
|
}
|
|
346
346
|
}
|
|
347
347
|
}
|
|
348
348
|
var Dt = Array.isArray;
|
|
349
|
-
function
|
|
349
|
+
function qe(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,8 +416,8 @@ function ca() {
|
|
|
416
416
|
});
|
|
417
417
|
}
|
|
418
418
|
}
|
|
419
|
-
var Ht = function(e, l, u,
|
|
420
|
-
var
|
|
419
|
+
var Ht = function(e, l, u, x, I, T, L) {
|
|
420
|
+
var S = {
|
|
421
421
|
// This tag allows us to uniquely identify this as a React Element
|
|
422
422
|
$$typeof: r,
|
|
423
423
|
// Built-in properties that belong on the element
|
|
@@ -426,60 +426,60 @@ function ca() {
|
|
|
426
426
|
ref: u,
|
|
427
427
|
props: L,
|
|
428
428
|
// Record the component responsible for creating this element.
|
|
429
|
-
_owner:
|
|
429
|
+
_owner: T
|
|
430
430
|
};
|
|
431
|
-
return
|
|
431
|
+
return S._store = {}, Object.defineProperty(S._store, "validated", {
|
|
432
432
|
configurable: !1,
|
|
433
433
|
enumerable: !1,
|
|
434
434
|
writable: !0,
|
|
435
435
|
value: !1
|
|
436
|
-
}), Object.defineProperty(
|
|
436
|
+
}), Object.defineProperty(S, "_self", {
|
|
437
437
|
configurable: !1,
|
|
438
438
|
enumerable: !1,
|
|
439
439
|
writable: !1,
|
|
440
|
-
value:
|
|
441
|
-
}), Object.defineProperty(
|
|
440
|
+
value: x
|
|
441
|
+
}), Object.defineProperty(S, "_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(S.props), Object.freeze(S)), S;
|
|
447
447
|
};
|
|
448
|
-
function qt(e, l, u,
|
|
448
|
+
function qt(e, l, u, x, I) {
|
|
449
449
|
{
|
|
450
|
-
var
|
|
451
|
-
u !== void 0 && (rt(u),
|
|
452
|
-
for (
|
|
453
|
-
|
|
450
|
+
var T, L = {}, S = null, K = null;
|
|
451
|
+
u !== void 0 && (rt(u), S = "" + u), Pt(l) && (rt(l.key), S = "" + l.key), Ft(l) && (K = l.ref, zt(l, I));
|
|
452
|
+
for (T in l)
|
|
453
|
+
Y.call(l, T) && !Bt.hasOwnProperty(T) && (L[T] = l[T]);
|
|
454
454
|
if (e && e.defaultProps) {
|
|
455
|
-
var
|
|
456
|
-
for (
|
|
457
|
-
L[
|
|
455
|
+
var P = e.defaultProps;
|
|
456
|
+
for (T in P)
|
|
457
|
+
L[T] === void 0 && (L[T] = P[T]);
|
|
458
458
|
}
|
|
459
|
-
if (
|
|
460
|
-
var
|
|
461
|
-
|
|
459
|
+
if (S || K) {
|
|
460
|
+
var V = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
461
|
+
S && Wt(L, V), K && Vt(L, V);
|
|
462
462
|
}
|
|
463
|
-
return Ht(e,
|
|
463
|
+
return Ht(e, S, K, I, x, st.current, L);
|
|
464
464
|
}
|
|
465
465
|
}
|
|
466
|
-
var
|
|
466
|
+
var Ge = 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 Ze;
|
|
475
|
+
Ze = !1;
|
|
476
|
+
function Ye(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 (Ge.current) {
|
|
482
|
+
var e = m(Ge.current.type);
|
|
483
483
|
if (e)
|
|
484
484
|
return `
|
|
485
485
|
|
|
@@ -513,26 +513,26 @@ Check the top-level render call using <` + u + ">.");
|
|
|
513
513
|
if (ct[u])
|
|
514
514
|
return;
|
|
515
515
|
ct[u] = !0;
|
|
516
|
-
var
|
|
517
|
-
e && e._owner && e._owner !==
|
|
516
|
+
var x = "";
|
|
517
|
+
e && e._owner && e._owner !== Ge.current && (x = " 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, x), 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 (qe(e))
|
|
525
525
|
for (var u = 0; u < e.length; u++) {
|
|
526
|
-
var
|
|
527
|
-
|
|
526
|
+
var x = e[u];
|
|
527
|
+
Ye(x) && dt(x, l);
|
|
528
528
|
}
|
|
529
|
-
else if (
|
|
529
|
+
else if (Ye(e))
|
|
530
530
|
e._store && (e._store.validated = !0);
|
|
531
531
|
else if (e) {
|
|
532
|
-
var I =
|
|
532
|
+
var I = w(e);
|
|
533
533
|
if (typeof I == "function" && I !== e.entries)
|
|
534
|
-
for (var
|
|
535
|
-
|
|
534
|
+
for (var T = I.call(e), L; !(L = T.next()).done; )
|
|
535
|
+
Ye(L.value) && dt(L.value, l);
|
|
536
536
|
}
|
|
537
537
|
}
|
|
538
538
|
}
|
|
@@ -546,95 +546,95 @@ 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
|
|
555
|
-
Nt(u, e.props, "prop",
|
|
556
|
-
} else if (l.PropTypes !== void 0 && !
|
|
557
|
-
|
|
558
|
-
var I =
|
|
559
|
-
|
|
554
|
+
var x = m(l);
|
|
555
|
+
Nt(u, e.props, "prop", x, e);
|
|
556
|
+
} else if (l.PropTypes !== void 0 && !Ze) {
|
|
557
|
+
Ze = !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) {
|
|
565
565
|
{
|
|
566
566
|
for (var l = Object.keys(e.props), u = 0; u < l.length; u++) {
|
|
567
|
-
var
|
|
568
|
-
if (
|
|
569
|
-
Le(e),
|
|
567
|
+
var x = l[u];
|
|
568
|
+
if (x !== "children" && x !== "key") {
|
|
569
|
+
Le(e), g("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", x), 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, x, I, T) {
|
|
578
578
|
{
|
|
579
|
-
var L =
|
|
579
|
+
var L = q(e);
|
|
580
580
|
if (!L) {
|
|
581
|
-
var
|
|
582
|
-
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (
|
|
583
|
-
var
|
|
584
|
-
|
|
585
|
-
var
|
|
586
|
-
e === null ?
|
|
581
|
+
var S = "";
|
|
582
|
+
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (S += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
583
|
+
var K = Gt();
|
|
584
|
+
K ? S += K : S += lt();
|
|
585
|
+
var P;
|
|
586
|
+
e === null ? P = "null" : qe(e) ? P = "array" : e !== void 0 && e.$$typeof === r ? (P = "<" + (m(e.type) || "Unknown") + " />", S = " Did you accidentally export a JSX literal instead of a component?") : P = 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", P, S);
|
|
587
587
|
}
|
|
588
|
-
var
|
|
589
|
-
if (
|
|
590
|
-
return
|
|
588
|
+
var V = qt(e, l, u, I, T);
|
|
589
|
+
if (V == null)
|
|
590
|
+
return V;
|
|
591
591
|
if (L) {
|
|
592
592
|
var ne = l.children;
|
|
593
593
|
if (ne !== void 0)
|
|
594
|
-
if (
|
|
595
|
-
if (
|
|
594
|
+
if (x)
|
|
595
|
+
if (qe(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
|
+
}), Je = ee.length > 0 ? "{key: someKey, " + ee.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
608
|
+
if (!_t[Ce + Je]) {
|
|
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} />`, Je, Ce, ta, Ce), _t[Ce + Je] = !0;
|
|
616
616
|
}
|
|
617
617
|
}
|
|
618
|
-
return e === s ? Jt(
|
|
618
|
+
return e === s ? Jt(V) : Yt(V), V;
|
|
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
|
+
Re.Fragment = s, Re.jsx = Qt, Re.jsxs = ea;
|
|
629
|
+
}()), Re;
|
|
630
630
|
}
|
|
631
631
|
var ht;
|
|
632
632
|
function da() {
|
|
633
633
|
return ht || (ht = 1, process.env.NODE_ENV === "production" ? Be.exports = la() : Be.exports = ca()), Be.exports;
|
|
634
634
|
}
|
|
635
635
|
var o = da();
|
|
636
|
-
const ua = (t) => t.as === "a",
|
|
637
|
-
button:
|
|
636
|
+
const ua = (t) => t.as === "a", _a = (t) => t.as === void 0 || t.as === "button", pa = "_button_1abee_213", fa = "_disabled_1abee_237", ga = "_loading_1abee_237", ha = "_neutral_1abee_259", ba = "_accent_1abee_263", ya = "_positive_1abee_267", ma = "_negative_1abee_271", va = "_contrast_1abee_275", xa = "_special_1abee_279", Ca = "_primary_1abee_284", wa = "_secondary_1abee_285", Sa = "_tertiary_1abee_286", Ea = "_label_1abee_321", La = "_rightGroup_1abee_333", Ma = "_iconOnly_1abee_349", $a = "_large_1abee_357", ja = "_medium_1abee_361", Ia = "_small_1abee_365", Ra = "_spaceBetween_1abee_370", ka = "_stretched_1abee_384", Ta = "_icon_1abee_349", Aa = "_badge_1abee_705", Na = "_badgeMedium_1abee_721", Da = "_circular_1abee_738", Oa = "_badgeSmall_1abee_743", Ua = "_badgeExtraSmall_1abee_765", Ba = "_withSubcaption_1abee_784", Fa = "_subcaption_1abee_797", Pa = "_loader_1abee_804", za = "_spin_1abee_1", Wa = "_l_1abee_237", Va = "_m_1abee_361", Ha = "_s_1abee_279", qa = "_xs_1abee_869", z = {
|
|
637
|
+
button: pa,
|
|
638
638
|
disabled: fa,
|
|
639
639
|
loading: ga,
|
|
640
640
|
neutral: ha,
|
|
@@ -681,33 +681,33 @@ const ua = (t) => t.as === "a", pa = (t) => t.as === void 0 || t.as === "button"
|
|
|
681
681
|
size: f
|
|
682
682
|
}) => {
|
|
683
683
|
if (t)
|
|
684
|
-
return /* @__PURE__ */ o.jsx("span", { className:
|
|
685
|
-
const _ = s === "extra-small",
|
|
684
|
+
return /* @__PURE__ */ o.jsx("span", { className: z.loader, "data-testid": "button-loader", "aria-hidden": "true" });
|
|
685
|
+
const _ = 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
687
|
r && (a || _) && /* @__PURE__ */ o.jsx(
|
|
688
688
|
"span",
|
|
689
689
|
{
|
|
690
690
|
"data-testid": "button-badge",
|
|
691
|
-
className:
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
{ [
|
|
691
|
+
className: B(
|
|
692
|
+
z.badge,
|
|
693
|
+
z[`badge${_ ? "ExtraSmall" : s === "medium" ? "Medium" : "Small"}`],
|
|
694
|
+
{ [z.circular]: b && !_ }
|
|
695
695
|
),
|
|
696
696
|
children: !_ && a
|
|
697
697
|
}
|
|
698
698
|
),
|
|
699
699
|
p && f !== "s" && f !== "xs" ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
700
|
-
/* @__PURE__ */ o.jsx("span", { "data-testid": "button-label", className:
|
|
701
|
-
/* @__PURE__ */ o.jsx("span", { "data-testid": "button-subcaption", className:
|
|
700
|
+
/* @__PURE__ */ o.jsx("span", { "data-testid": "button-label", className: z.label, children: n }),
|
|
701
|
+
/* @__PURE__ */ o.jsx("span", { "data-testid": "button-subcaption", className: z.subcaption, children: d })
|
|
702
702
|
] }) : n ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
703
|
-
/* @__PURE__ */ o.jsx("span", { "data-testid": "button-label", className:
|
|
704
|
-
/* @__PURE__ */ o.jsxs("div", { "data-testid": "button-right-group", className:
|
|
705
|
-
i && /* @__PURE__ */ o.jsx("span", { "data-testid": "button-icon", className:
|
|
706
|
-
c && /* @__PURE__ */ o.jsx("span", { "data-testid": "button-postfix", className:
|
|
703
|
+
/* @__PURE__ */ o.jsx("span", { "data-testid": "button-label", className: z.label, children: n }),
|
|
704
|
+
/* @__PURE__ */ o.jsxs("div", { "data-testid": "button-right-group", className: z.rightGroup, children: [
|
|
705
|
+
i && /* @__PURE__ */ o.jsx("span", { "data-testid": "button-icon", className: z.icon, children: i }),
|
|
706
|
+
c && /* @__PURE__ */ o.jsx("span", { "data-testid": "button-postfix", className: z.postfix, children: c })
|
|
707
707
|
] })
|
|
708
|
-
] }) : /* @__PURE__ */ o.jsx("span", { "data-testid": "button-icon", className:
|
|
708
|
+
] }) : /* @__PURE__ */ o.jsx("span", { "data-testid": "button-icon", className: z.icon, children: i })
|
|
709
709
|
] });
|
|
710
|
-
},
|
|
710
|
+
}, Rn = te((t, r) => {
|
|
711
711
|
const {
|
|
712
712
|
mode: a = "primary",
|
|
713
713
|
size: s = "m",
|
|
@@ -718,129 +718,129 @@ const ua = (t) => t.as === "a", pa = (t) => t.as === void 0 || t.as === "button"
|
|
|
718
718
|
badgeSize: d = "small",
|
|
719
719
|
badgeValue: f,
|
|
720
720
|
showSubcaption: _ = !1,
|
|
721
|
-
subcaption:
|
|
722
|
-
stretched:
|
|
723
|
-
spaceBetween:
|
|
724
|
-
icon:
|
|
725
|
-
postfix:
|
|
726
|
-
className:
|
|
727
|
-
children:
|
|
728
|
-
} = t,
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
721
|
+
subcaption: h,
|
|
722
|
+
stretched: b = !1,
|
|
723
|
+
spaceBetween: y = !1,
|
|
724
|
+
icon: v,
|
|
725
|
+
postfix: E,
|
|
726
|
+
className: w,
|
|
727
|
+
children: C
|
|
728
|
+
} = t, g = c, R = n, D = !g && !R, k = !!v && !C, $ = B(
|
|
729
|
+
z.button,
|
|
730
|
+
z[s],
|
|
731
|
+
z[a],
|
|
732
|
+
z[i],
|
|
733
733
|
{
|
|
734
|
-
[
|
|
735
|
-
[
|
|
736
|
-
[
|
|
737
|
-
[
|
|
738
|
-
[
|
|
739
|
-
[
|
|
734
|
+
[z.disabled]: g,
|
|
735
|
+
[z.loading]: R,
|
|
736
|
+
[z.stretched]: b,
|
|
737
|
+
[z.spaceBetween]: y && b,
|
|
738
|
+
[z.withSubcaption]: _ && h && s !== "s" && s !== "xs",
|
|
739
|
+
[z.iconOnly]: k
|
|
740
740
|
},
|
|
741
|
-
|
|
742
|
-
),
|
|
743
|
-
isLoading:
|
|
741
|
+
w
|
|
742
|
+
), A = {
|
|
743
|
+
isLoading: R,
|
|
744
744
|
showBadge: p,
|
|
745
745
|
badgeValue: f,
|
|
746
746
|
badgeSize: d,
|
|
747
|
-
icon:
|
|
748
|
-
children:
|
|
749
|
-
postfix:
|
|
747
|
+
icon: v,
|
|
748
|
+
children: C,
|
|
749
|
+
postfix: E,
|
|
750
750
|
showSubcaption: _,
|
|
751
|
-
subcaption:
|
|
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:
|
|
763
|
-
showBadge:
|
|
764
|
-
badgeSize:
|
|
765
|
-
badgeValue:
|
|
766
|
-
showSubcaption:
|
|
767
|
-
subcaption:
|
|
768
|
-
stretched:
|
|
756
|
+
href: N,
|
|
757
|
+
onClick: U,
|
|
758
|
+
mode: q,
|
|
759
|
+
size: W,
|
|
760
|
+
buttonStyle: O,
|
|
761
|
+
loading: m,
|
|
762
|
+
disabled: j,
|
|
763
|
+
showBadge: F,
|
|
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
|
+
D && 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: $,
|
|
786
|
+
href: D ? 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 || R,
|
|
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:
|
|
806
|
-
showBadge:
|
|
807
|
-
badgeSize:
|
|
808
|
-
badgeValue:
|
|
809
|
-
showSubcaption:
|
|
810
|
-
subcaption:
|
|
811
|
-
stretched:
|
|
799
|
+
type: N = "button",
|
|
800
|
+
onClick: U,
|
|
801
|
+
mode: q,
|
|
802
|
+
size: W,
|
|
803
|
+
buttonStyle: O,
|
|
804
|
+
loading: m,
|
|
805
|
+
disabled: j,
|
|
806
|
+
showBadge: F,
|
|
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
|
+
D && 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: $,
|
|
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 || R,
|
|
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 Ke = { exports: {} };
|
|
844
844
|
/*!
|
|
845
845
|
Copyright (c) 2018 Jed Watson.
|
|
846
846
|
Licensed under the MIT License (MIT), see
|
|
@@ -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
|
+
}(Ke)), Ke.exports;
|
|
881
881
|
}
|
|
882
882
|
var Za = Ga();
|
|
883
|
-
const
|
|
883
|
+
const Ae = /* @__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,
|
|
@@ -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,12 +986,12 @@ const ir = {
|
|
|
986
986
|
function lr(t) {
|
|
987
987
|
return ir[t] || "typography-subtitle-1-semibold";
|
|
988
988
|
}
|
|
989
|
-
const cr = "data:image/svg+xml,%3csvg%20opacity='0.9'%20preserveAspectRatio='xMinYMin%20meet'%20viewBox='0%200%20208%20208'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cdefs%3e%3cfilter%20id='shadowW'%20filterUnits='userSpaceOnUse'%3e%3cfeDropShadow%20dx='-2'%20dy='-1'%20stdDeviation='5'%20flood-color='rgba(0,0,0,0.5)'/%3e%3c/filter%3e%3c/defs%3e%3cg%20filter='url(%23shadowW)'%3e%3cpath%20d='M23.9835%20174.59L113.41%20157.735L225.224%20191.671C225.224%20191.671%20250.259%20479.463%20243.525%20478.31C236.655%20477.167%20-7.79434%20482.039%20-8.17876%20476.943C-8.56308%20471.849%20-34.4445%20341.701%20-34.4445%20341.701L23.9835%20174.59Z'%20fill='darkgrey'/%3e%3cpath%20d='M-54.5558%20212.781C-85.688%20282.842%20-94.2122%20303.839%20-94.2122%20303.839L-213.504%20213.002C-214.953%20197.465%20-218.637%20181.68%20-225.636%20167.806C-234.412%20150.606%20-246.154%20149.138%20-259.595%20136.166C-267.368%20128.583%20-275.073%20140.242%20-267.3%20147.825L-259.338%20156.087C-258.869%20160.482%20-255.518%20171.861%20-254.634%20176.226C-267.475%20165.702%20-284.704%20150.246%20-300.665%20144.25C-305.079%20142.644%20-308.958%20144.46%20-311.08%20147.528C-314.628%20148.211%20-317.292%20151.458%20-317.858%20154.963C-321.103%20157.839%20-322.625%20163.354%20-319.254%20167.67C-321.407%20170.323%20-322.376%20173.998%20-320.433%20177.728C-320.274%20177.993%20-320.127%20178.12%20-320.106%20178.395C-320.997%20179.432%20-319.498%20182.78%20-320.337%20184.506C-324.035%20192.401%20-309.357%20221.757%20-285.221%20235.167C-277.291%20250.355%20-262.477%20259.485%20-261.354%20259.677C-234.512%20290.608%20-141.301%20400.999%20-97.2451%20436.169C-47.2868%20476.158%20-12.9855%20418.735%2010.6424%20317.115C34.2598%20215.358%2037.6457%20181.315%2037.6457%20181.315L116.374%20158.482C14.4423%20160.079%20-23.2964%20142.572%20-54.5558%20212.781Z'%20fill='darkgrey'/%3e%3cpath%20d='M116.781%20158.313L114.885%20158.871L61.4974%20174.391L38.0516%20181.145C38.0516%20181.145%2034.6758%20215.325%2011.0481%20316.945C9.47097%20323.572%207.88344%20330.061%206.27525%20336.275C-22.5942%20315.191%20-52.217%20295.131%20-82.0946%20275.368C-75.9632%20261.197%20-67.1116%20240.867%20-54.4359%20212.493C-30.4015%20158.477%20-2.57835%20156.516%2055.793%20157.512C72.5674%20157.77%2091.7239%20158.403%20114.133%20158.096C114.98%20158.309%20115.807%20158.247%20116.781%20158.313Z'%20fill='darkgrey'/%3e%3cpath%20d='M113.269%20157.745C175.26%20159.023%20252.771%20143.897%20266.382%20199.504C279.867%20255.26%20288.576%20280.774%20295.899%20320.932C303.221%20361.091%20322.043%20408.689%20271.897%20417.595C221.75%20426.502%20106.238%20444.495%20106.238%20444.495L78.8767%20384.662C78.8767%20384.662%20170.648%20343.813%20200.242%20332.303L185.17%20211.448L113.269%20157.745Z'%20fill='darkgrey'/%3e%3cpath%20d='M292.122%20302.108C260.506%20305.187%20228.942%20308.953%20198.219%20316.533L185.178%20211.585L140.855%20178.374L114.874%20158.871L114.144%20158.372L113.266%20157.746C127.138%20158.084%20141.774%20157.534%20156.283%20157.131C206.726%20155.818%20255.78%20156.271%20266.252%20199.654C277.643%20246.012%20285.665%20271.578%20292.122%20302.108Z'%20fill='darkgrey'/%3e%3cpath%20d='M108.001%20172.269C119.623%20168.485%20130.939%20164.308%20142.395%20160.12L112.224%20101.608L68.8441%20124.959C69.7222%20125.585%2079.0944%20154.372%2086.547%20177.904C93.7406%20175.977%20100.965%20174.463%20108.001%20172.269Z'%20fill='white'/%3e%3cpath%20d='M99.3655%20112.96C99.0934%20111.18%2098.8213%20109.401%2098.2722%20107.642L68.9864%20125.083C69.5682%20125.455%2073.8492%20138.148%2078.7406%20153.426C89.4856%20141.676%2097.5757%20127.773%2099.3655%20112.96Z'%20fill='darkgrey'/%3e%3cpath%20d='M144.524%2069.1209C143.075%2053.5829%20118.601%2039.3668%2099.9856%2038.5556C91.9262%2038.1943%2089.5107%2031.8684%2086.0605%2037.5291C77.5782%2051.7392%2049.6837%2094.9694%2052.2654%20110.837C56.0862%20133.951%2084.5691%20137.063%20102.228%20127.008C120.022%20116.942%20146.6%2091.1195%20144.524%2069.1209Z'%20fill='white'/%3e%3cpath%20d='M145.753%2072.4915C147.93%2068.3116%20146.317%2063.4483%20142.804%2060.944C142.656%2060.8166%20142.656%2060.8166%20142.507%2060.6894C143.028%2052.8957%20136.915%2047.1257%20129.979%2046.9567C129.007%2045.0914%20127.379%2043.691%20125.24%2042.883C124.903%2042.0778%20124.575%2041.4101%20123.982%2040.9009C122.651%2039.7551%20121.095%2039.3187%20119.441%2039.4435C118.081%2036.0843%20115.925%2033.2005%20112.495%2031.7977C110.348%2030.8519%20108.027%2031.304%20106.311%2032.4027C102.006%2028.5734%2096.789%2025.5051%2091.8112%2025.6038C89.736%2025.6218%2085.678%2026.8973%2084.2724%2032.1268C82.1968%2032.1449%2080.3522%2033.3917%2079.5546%2035.6676C78.427%2039.0759%2080.339%2042.3935%2083.1109%2044.2613C84.719%2045.3863%2086.9841%2046.0462%2089.0391%2045.7526C95.9026%2052.2969%20114.028%2063.1149%20118.148%2062.6657C115.532%2070.202%20113.218%2087.2698%20122.007%2088.1299C124.21%2095.3028%20116.99%20107.894%20121.368%20112.688C129.639%20104.863%20137.246%2095.5655%20141.359%2085.8391C141.496%2085.8288%20141.772%2085.808%20142.047%2085.7872C148.14%2083.9429%20149.527%2076.6377%20145.753%2072.4915Z'%20fill='darkgrey'/%3e%3cpath%20d='M140.151%20104.76C141.594%2096.3432%20132.67%2086.3542%20121.049%2088.3387C116.251%2096.3166%20111.305%20104.167%20106.21%20111.89C109.317%20116.364%20118.141%20121.376%20125.535%20120.264C133.872%20118.804%20138.613%20113.738%20140.151%20104.76Z'%20fill='white'/%3e%3cpath%20d='M156.755%20156.883C153.217%20165.043%20147.805%20172.237%20141.188%20178.136C133.925%20184.639%20125.011%20189.465%20114.809%20191.896C95.2214%20196.558%2072.2825%20189.842%2061.6836%20174.164C58.5559%20169.414%2056.4778%20163.894%2056%20157.561C72.7744%20157.818%2091.9311%20158.451%20114.34%20158.144L113.462%20157.519C127.463%20157.709%20142.098%20157.159%20156.755%20156.883Z'%20fill='white'/%3e%3c/g%3e%3c/svg%3e", dr = "data:image/svg+xml,%3csvg%20viewBox='0%200%20208%20208'%20opacity='0.9'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20filter='url(%23shadow)'%3e%3cpath%20filter='url(%23shadow)'%20d='M127.173%2079.8894C127.189%2079.1933%20128.026%2079.1201%20128.436%2079.4316C128.754%2079.6091%20128.895%2080.1021%20128.809%2080.5518C129.241%2083.1982%20129.581%2085.7106%20130.013%2088.357C136.835%2079.7558%20149.235%2076.9989%20158.979%2083.174C168.086%2088.9941%20171.001%20111.745%20135.501%20120.502C131.5%20123.502%20117%20125.002%20111.753%20103.279C111.682%2093.2427%20118.526%2084.529%20127.173%2079.8894Z'%20fill='darkgrey'/%3e%3cpath%20d='M28.0441%20167.788C21.826%20195.052%2018.7311%20223.361%2014.1881%20250.885C9.42226%20279.982%204.68042%20308.967%20-0.0853729%20338.064L-1.00047%20342.848C14.5039%20346.419%2030.8401%20350.407%2046.3671%20353.868C90.9428%20363.918%20134.837%20376.598%20179.293%20387.201C200.345%20337.142%20219.778%20286.027%20235.82%20234.041C243.806%20208.213%20244.758%20181.282%20225.443%20160.043C216.099%20149.841%20204.347%20143.858%20191.629%20140.212C188.924%20139.377%20186.108%20138.517%20183.355%20137.905C179.635%20136.959%20175.781%20136.1%20171.989%20135.487C167.45%20134.592%20162.753%20133.893%20158.277%20133.243L127.871%20128.671L116.251%20126.895C115.457%20126.833%20114.686%20126.662%20113.915%20126.49C102.87%20124.724%2091.7381%20122.824%2080.6188%20123.013C69.1682%20123.13%2056.9012%20125.964%2047.8363%20133.224C36.9821%20141.825%2031.1109%20154.087%2028.0441%20167.788Z'%20fill='darkgrey'/%3e%3cpath%20d='M103.74%20123.732L95.6984%20197.532C95.6984%20197.532%20137.13%20157.315%20158.742%20133.268C155.051%20132.316%20151.227%20131.449%20147.465%20130.831C142.962%20129.929%20138.302%20129.224%20133.861%20128.569L103.74%20123.732Z'%20fill='white'/%3e%3cpath%20d='M97.8143%20115.298C99.0227%20116.625%20108.229%20179.332%20108.229%20179.332L148.012%20142.157L129%20100L97.8143%20115.298Z'%20fill='white'/%3e%3cpath%20d='M101.71%20148.534C100.068%20137.868%2098.402%20127.706%2098.0001%20127.274L112.673%20122C113.831%20131.449%20108.467%20141.173%20101.71%20148.534Z'%20fill='grey'/%3e%3cpath%20d='M121.545%2040.7383C111.161%2030.599%2085.3871%2035.4814%2071.93%2046.2862C66.0912%2051.0172%2060.5415%2047.9025%2061.6427%2054.0842C64.3767%2069.3597%2074.0239%20120.283%2082.7631%20126.794C100.374%20139.728%20121.191%20125.699%20127.329%20107.658C133.554%2089.7517%20136.293%2055.2372%20121.545%2040.7383Z'%20fill='white'/%3e%3cpath%20d='M56.0176%2041.9837C61.9834%2036.7831%2074.9427%2037.4243%2081.3074%2039.639C95.1733%2033.9235%20112.672%2032.6801%20120.968%2040.1438C131.22%2049.4771%20133.446%2067.5345%20132.042%2083.8281C125.848%2083.0025%20122.779%2078.6471%20116.718%2075.0286C97.7466%2073.2611%2084.9353%2061.0313%2082.042%2054.2301C78.3492%2058.2067%2063.3398%2059.3993%2058.12%2055.1646C51.1278%2048.7596%2054.1283%2043.6248%2056.0176%2041.9837Z'%20fill='darkgrey'/%3e%3cpath%20d='M142.838%2074.8316C138.561%2067.841%20123.674%2066.785%20116.5%2075.5006C118.078%2084.3219%20121.503%2092.5524%20122.726%20101.41C127.77%20102.657%20137.388%20100.869%20141.908%2095.386C147.168%2089.1414%20147.462%2082.3637%20142.838%2074.8316Z'%20fill='white'/%3e%3c/g%3e%3cdefs%3e%3cfilter%20id='shadow'%3e%3cfeDropShadow%20dx='0'%20dy='0'%20stdDeviation='3'%20flood-color='rgba(0,0,0,0.3)'/%3e%3c/filter%3e%3c/defs%3e%3c/svg%3e", ur = "data:image/svg+xml,%3csvg%20opacity='0.9'%20viewBox='0%200%20208%20208'%20fill='currentColor'%20xmlns='http://www.w3.org/2000/svg'%3e%3cdefs%3e%3cmask%20id='hole'%3e%3crect%20width='100%25'%20height='100%25'%20fill='white'/%3e%3ccircle%20cx='121.333'%20cy='121.333'%20r='52'%20fill='black'/%3e%3c/mask%3e%3cfilter%20id='shadow'%3e%3cfeDropShadow%20dx='-2'%20dy='-1'%20stdDeviation='10'%20flood-color='rgba(0,0,0,0.2)'/%3e%3c/filter%3e%3c/defs%3e%3cg%20filter='url(%23shadow)'%3e%3ccircle%20cx='104'%20cy='225.333'%20r='95.3333'%20fill='darkgray'/%3e%3ccircle%20cx='104'%20cy='225.333'%20r='95.3333'%20fill='white'%20mask='url(%23hole)'/%3e%3ccircle%20cx='104'%20cy='86.6666'%20r='52'%20fill='white'/%3e%3c/g%3e%3c/svg%3e", 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
|
-
}, Pe =
|
|
994
|
+
}, Pe = te((t, r) => {
|
|
995
995
|
const {
|
|
996
996
|
style: a,
|
|
997
997
|
size: s = 40,
|
|
@@ -1002,82 +1002,82 @@ const cr = "data:image/svg+xml,%3csvg%20opacity='0.9'%20preserveAspectRatio='xMi
|
|
|
1002
1002
|
placeholderType: d = "neutral",
|
|
1003
1003
|
name: f,
|
|
1004
1004
|
imgSrc: _,
|
|
1005
|
-
imgAlt:
|
|
1006
|
-
icon:
|
|
1007
|
-
imgProps:
|
|
1008
|
-
colorScheme:
|
|
1009
|
-
className:
|
|
1010
|
-
"data-testid":
|
|
1011
|
-
...
|
|
1012
|
-
} = t, { onClick:
|
|
1013
|
-
|
|
1014
|
-
_ &&
|
|
1005
|
+
imgAlt: h,
|
|
1006
|
+
icon: b,
|
|
1007
|
+
imgProps: y,
|
|
1008
|
+
colorScheme: v,
|
|
1009
|
+
className: E,
|
|
1010
|
+
"data-testid": w,
|
|
1011
|
+
...C
|
|
1012
|
+
} = t, { onClick: g, onPointerDown: R } = C, k = !n && !i && (!!g || !!R), [$, A] = De(!1);
|
|
1013
|
+
Ee(() => {
|
|
1014
|
+
_ && A(!1);
|
|
1015
1015
|
}, [_]);
|
|
1016
|
-
const
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
Ne[
|
|
1016
|
+
const N = _ && !$ ? "image" : b ? "icon" : f ? "name" : "placeholder", U = v || N === "name" && sr(f) || "gray", q = lr(s), W = jt(s, c), O = B(
|
|
1017
|
+
E,
|
|
1018
|
+
pe.avatar,
|
|
1019
|
+
pe[`variant-${p}`],
|
|
1020
|
+
pe[`color-${U}`],
|
|
1021
|
+
Ne[q],
|
|
1022
1022
|
{
|
|
1023
|
-
[
|
|
1024
|
-
[
|
|
1025
|
-
[
|
|
1023
|
+
[pe.disabled]: n,
|
|
1024
|
+
[pe.loading]: i,
|
|
1025
|
+
[pe.clickable]: k
|
|
1026
1026
|
}
|
|
1027
|
-
),
|
|
1027
|
+
), m = {
|
|
1028
1028
|
"--avatar-size": `${s}px`,
|
|
1029
|
-
"--avatar-border-radius": `${
|
|
1029
|
+
"--avatar-border-radius": `${W}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:
|
|
1057
|
+
...y,
|
|
1058
|
+
className: pe.image,
|
|
1059
1059
|
src: _ || void 0,
|
|
1060
|
-
alt:
|
|
1061
|
-
onLoad: () =>
|
|
1062
|
-
onError: (
|
|
1063
|
-
var
|
|
1064
|
-
|
|
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
|
-
},
|
|
1069
|
-
|
|
1068
|
+
}, F = (G) => {
|
|
1069
|
+
k && (g == null || g(G));
|
|
1070
1070
|
};
|
|
1071
1071
|
return /* @__PURE__ */ o.jsx(
|
|
1072
1072
|
"div",
|
|
1073
1073
|
{
|
|
1074
1074
|
ref: r,
|
|
1075
|
-
onClick:
|
|
1076
|
-
className:
|
|
1077
|
-
style:
|
|
1078
|
-
"data-testid":
|
|
1075
|
+
onClick: F,
|
|
1076
|
+
className: O,
|
|
1077
|
+
style: m,
|
|
1078
|
+
"data-testid": w,
|
|
1079
1079
|
"aria-disabled": n || i,
|
|
1080
|
-
children:
|
|
1080
|
+
children: j[N](null)
|
|
1081
1081
|
}
|
|
1082
1082
|
);
|
|
1083
1083
|
}), fr = "_avatarGroup_157g4_1", gr = {
|
|
@@ -1111,7 +1111,7 @@ const yr = 3, mr = (t) => {
|
|
|
1111
1111
|
shape: i = "circle",
|
|
1112
1112
|
overflowCount: n = 0,
|
|
1113
1113
|
overflowProps: c
|
|
1114
|
-
} = t, p = a * s, d = -p + yr, f = jt(a, i),
|
|
1114
|
+
} = t, p = a * s, d = -p + yr, f = jt(a, i), h = We(hr()).current.toString(), b = Ae(gr.avatarGroup), y = br(
|
|
1115
1115
|
a,
|
|
1116
1116
|
a,
|
|
1117
1117
|
a - p,
|
|
@@ -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((v, E, w) => {
|
|
1127
|
+
const C = E + 1 >= w.length;
|
|
1128
|
+
if (v.wrapper) {
|
|
1129
|
+
const g = v.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(Pe, { size: a, shape: i, ...v }) })
|
|
1139
1139
|
},
|
|
1140
|
-
|
|
1140
|
+
et(v) + E
|
|
1141
1141
|
);
|
|
1142
1142
|
}
|
|
1143
1143
|
return /* @__PURE__ */ o.jsx(
|
|
@@ -1145,12 +1145,12 @@ 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(Pe, { size: a, shape: i, ...
|
|
1151
|
+
children: /* @__PURE__ */ o.jsx(Pe, { size: a, shape: i, ...v })
|
|
1152
1152
|
},
|
|
1153
|
-
|
|
1153
|
+
et(v) + E
|
|
1154
1154
|
);
|
|
1155
1155
|
}),
|
|
1156
1156
|
n > 0 && /* @__PURE__ */ o.jsx("div", { style: { marginRight: d }, children: /* @__PURE__ */ o.jsx(
|
|
@@ -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
|
-
},
|
|
1169
|
+
}, kn = Object.assign(Pe, {
|
|
1170
1170
|
Group: mr
|
|
1171
|
-
}), vr = "_wrapper_ecbsu_5", xr = "_badge__container_ecbsu_6", Cr = "_badge__content_ecbsu_7", wr = "_interactive_ecbsu_20", Sr = "_disabled_ecbsu_21", Er = "_icon_ecbsu_22",
|
|
1171
|
+
}), vr = "_wrapper_ecbsu_5", xr = "_badge__container_ecbsu_6", Cr = "_badge__content_ecbsu_7", wr = "_interactive_ecbsu_20", Sr = "_disabled_ecbsu_21", Er = "_icon_ecbsu_22", fe = {
|
|
1172
1172
|
wrapper: vr,
|
|
1173
1173
|
badge__container: xr,
|
|
1174
1174
|
badge__content: Cr,
|
|
@@ -1217,13 +1217,13 @@ const yr = 3, mr = (t) => {
|
|
|
1217
1217
|
return null;
|
|
1218
1218
|
}, $r = () => {
|
|
1219
1219
|
const t = We(null), [r, a] = De(null);
|
|
1220
|
-
return
|
|
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
|
-
},
|
|
1226
|
+
}, Tn = te((t, r) => {
|
|
1227
1227
|
const {
|
|
1228
1228
|
icon: a,
|
|
1229
1229
|
children: s,
|
|
@@ -1234,75 +1234,76 @@ const yr = 3, mr = (t) => {
|
|
|
1234
1234
|
size: d = 20,
|
|
1235
1235
|
position: f = "top-right",
|
|
1236
1236
|
positionOffset: _ = { x: 0, y: 0 },
|
|
1237
|
-
cutoutBackground:
|
|
1238
|
-
isDisabled:
|
|
1239
|
-
className:
|
|
1240
|
-
"data-testid":
|
|
1241
|
-
...
|
|
1242
|
-
} = t, { onClick:
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1237
|
+
cutoutBackground: h,
|
|
1238
|
+
isDisabled: b,
|
|
1239
|
+
className: y,
|
|
1240
|
+
"data-testid": v = "badge",
|
|
1241
|
+
...E
|
|
1242
|
+
} = t, { onClick: w, onPointerDown: C } = E, { ref: g, bgColor: R } = $r(), D = h || R, $ = !b && (!!w || !!C), A = Ae(fe.badge__container, fe[`position-${f}`]), N = Ae(
|
|
1243
|
+
y,
|
|
1244
|
+
fe.badge__content,
|
|
1245
|
+
fe[`color-${p}`],
|
|
1246
|
+
fe[`variant-${i}`],
|
|
1247
1247
|
{
|
|
1248
|
-
[
|
|
1249
|
-
[
|
|
1250
|
-
[
|
|
1248
|
+
[fe.disabled]: b,
|
|
1249
|
+
[fe.icon]: !!a,
|
|
1250
|
+
[fe.interactive]: $
|
|
1251
1251
|
}
|
|
1252
|
-
),
|
|
1252
|
+
), U = {
|
|
1253
1253
|
"--badge-height": `${d}px`,
|
|
1254
1254
|
"--badge-offset-x": `${_.x}px`,
|
|
1255
1255
|
"--badge-offset-y": `${_.y}px`,
|
|
1256
|
-
...
|
|
1256
|
+
...D && { "--badge-cutout-bg": D },
|
|
1257
1257
|
...i === "transparent" && { "--badge-cutout-bg": "transparent" }
|
|
1258
|
-
},
|
|
1259
|
-
|
|
1258
|
+
}, q = (a == null ? void 0 : a({})) || n, W = (O) => {
|
|
1259
|
+
$ && (w == null || w(O));
|
|
1260
1260
|
};
|
|
1261
|
-
return /* @__PURE__ */ o.jsxs("div", { className:
|
|
1261
|
+
return /* @__PURE__ */ o.jsxs("div", { className: fe.wrapper, ref: g, "data-testid": v + "-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": v + "-container",
|
|
1269
1269
|
children: /* @__PURE__ */ o.jsx(
|
|
1270
1270
|
"span",
|
|
1271
1271
|
{
|
|
1272
|
-
...
|
|
1273
|
-
onClick:
|
|
1274
|
-
className:
|
|
1275
|
-
"data-testid":
|
|
1272
|
+
...E,
|
|
1273
|
+
onClick: W,
|
|
1274
|
+
className: N,
|
|
1275
|
+
"data-testid": v + "-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 = "
|
|
1284
|
+
}), jr = "_container_1gkrm_7", Ir = "_loading_1gkrm_17", Rr = "_error_1gkrm_18", kr = "_image_1gkrm_22", ke = {
|
|
1285
1285
|
container: jr,
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1286
|
+
loading: Ir,
|
|
1287
|
+
error: Rr,
|
|
1288
|
+
image: kr
|
|
1289
|
+
}, Tr = "_loader_isv17_1", Ar = "_spin_isv17_1", Nr = "_accent_isv17_19", Dr = "_neutral_isv17_23", Or = "_positive_isv17_27", Ur = "_negative_isv17_31", Br = "_gray_isv17_35", Fr = "_special_isv17_39", Pr = "_contrast_isv17_43", zr = "_container_isv17_47", Wr = "_overlay_isv17_57", Te = {
|
|
1290
|
+
loader: Tr,
|
|
1291
|
+
spin: Ar,
|
|
1292
|
+
accent: Nr,
|
|
1293
|
+
neutral: Dr,
|
|
1294
|
+
positive: Or,
|
|
1295
|
+
negative: Ur,
|
|
1296
|
+
gray: Br,
|
|
1297
|
+
special: Fr,
|
|
1298
|
+
contrast: Pr,
|
|
1299
|
+
container: zr,
|
|
1300
|
+
overlay: Wr,
|
|
1300
1301
|
"size-16": "_size-16_isv17_72",
|
|
1301
1302
|
"size-24": "_size-24_isv17_76",
|
|
1302
1303
|
"size-48": "_size-48_isv17_80",
|
|
1303
1304
|
"size-64": "_size-64_isv17_84",
|
|
1304
1305
|
"size-96": "_size-96_isv17_88"
|
|
1305
|
-
}, It =
|
|
1306
|
+
}, It = te(
|
|
1306
1307
|
({
|
|
1307
1308
|
size: t = 24,
|
|
1308
1309
|
variant: r = "accent",
|
|
@@ -1311,10 +1312,10 @@ const yr = 3, mr = (t) => {
|
|
|
1311
1312
|
style: i,
|
|
1312
1313
|
...n
|
|
1313
1314
|
}, c) => {
|
|
1314
|
-
const p =
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1315
|
+
const p = Ae(
|
|
1316
|
+
Te.loader,
|
|
1317
|
+
Te[r],
|
|
1318
|
+
Te[`size-${t}`],
|
|
1318
1319
|
a
|
|
1319
1320
|
);
|
|
1320
1321
|
return /* @__PURE__ */ o.jsx(
|
|
@@ -1340,7 +1341,7 @@ const yr = 3, mr = (t) => {
|
|
|
1340
1341
|
}
|
|
1341
1342
|
);
|
|
1342
1343
|
}
|
|
1343
|
-
),
|
|
1344
|
+
), Vr = te((t, r) => {
|
|
1344
1345
|
const {
|
|
1345
1346
|
loading: a = !1,
|
|
1346
1347
|
size: s = 24,
|
|
@@ -1350,18 +1351,18 @@ const yr = 3, mr = (t) => {
|
|
|
1350
1351
|
style: p,
|
|
1351
1352
|
"data-testid": d,
|
|
1352
1353
|
...f
|
|
1353
|
-
} = t, _ =
|
|
1354
|
+
} = t, _ = Ae(Te.container, c);
|
|
1354
1355
|
return /* @__PURE__ */ o.jsxs("div", { ref: r, className: _, style: p, "data-testid": d, ...f, children: [
|
|
1355
1356
|
n,
|
|
1356
|
-
a && /* @__PURE__ */ o.jsx("div", { className:
|
|
1357
|
+
a && /* @__PURE__ */ o.jsx("div", { className: Te.overlay, children: /* @__PURE__ */ o.jsx(It, { size: s, variant: i, "data-testid": `${d}-spinner` }) })
|
|
1357
1358
|
] });
|
|
1358
|
-
}),
|
|
1359
|
-
|
|
1359
|
+
}), Hr = te((t, r) => t.children ? /* @__PURE__ */ o.jsx(
|
|
1360
|
+
Vr,
|
|
1360
1361
|
{
|
|
1361
1362
|
ref: r,
|
|
1362
1363
|
...t
|
|
1363
1364
|
}
|
|
1364
|
-
) : /* @__PURE__ */ o.jsx(It, { ref: r, ...t })),
|
|
1365
|
+
) : /* @__PURE__ */ o.jsx(It, { ref: r, ...t })), qr = ({ width: t = 48, height: r = 48, className: a, "data-testid": s }) => /* @__PURE__ */ o.jsx(
|
|
1365
1366
|
"svg",
|
|
1366
1367
|
{
|
|
1367
1368
|
width: t,
|
|
@@ -1382,82 +1383,90 @@ const yr = 3, mr = (t) => {
|
|
|
1382
1383
|
}
|
|
1383
1384
|
)
|
|
1384
1385
|
}
|
|
1385
|
-
),
|
|
1386
|
+
), An = te((t, r) => {
|
|
1386
1387
|
const {
|
|
1387
1388
|
alt: a = "",
|
|
1388
1389
|
loading: s = "lazy",
|
|
1389
1390
|
src: i,
|
|
1390
1391
|
isLoading: n = !1,
|
|
1391
1392
|
className: c,
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1393
|
+
containerClassName: p,
|
|
1394
|
+
"data-testid": d = "image",
|
|
1395
|
+
onError: f,
|
|
1396
|
+
onLoad: _,
|
|
1397
|
+
...h
|
|
1398
|
+
} = t, [b, y] = De("loading"), v = b === "error", E = (n || b === "loading") && !v, w = b === "loaded" && !n, C = B(
|
|
1399
|
+
ke.container,
|
|
1398
1400
|
{
|
|
1399
|
-
[
|
|
1401
|
+
[ke.loading]: E && !w,
|
|
1402
|
+
[ke.error]: v && !w
|
|
1403
|
+
},
|
|
1404
|
+
p
|
|
1405
|
+
), g = B(
|
|
1406
|
+
ke.image,
|
|
1407
|
+
{
|
|
1408
|
+
[ke.loading]: E
|
|
1400
1409
|
},
|
|
1401
1410
|
c
|
|
1402
|
-
),
|
|
1403
|
-
(
|
|
1404
|
-
|
|
1411
|
+
), R = Se(
|
|
1412
|
+
($) => {
|
|
1413
|
+
y("loaded"), _ == null || _($);
|
|
1405
1414
|
},
|
|
1406
|
-
[
|
|
1407
|
-
),
|
|
1408
|
-
(
|
|
1409
|
-
|
|
1415
|
+
[_]
|
|
1416
|
+
), D = Se(
|
|
1417
|
+
($) => {
|
|
1418
|
+
y("error"), f == null || f($);
|
|
1410
1419
|
},
|
|
1411
|
-
[
|
|
1412
|
-
),
|
|
1420
|
+
[f]
|
|
1421
|
+
), k = {
|
|
1413
1422
|
loader: /* @__PURE__ */ o.jsxs(Mt, { children: [
|
|
1414
|
-
/* @__PURE__ */ o.jsx(
|
|
1423
|
+
/* @__PURE__ */ o.jsx(Hr, { size: 48, variant: "special", "data-testid": `${d}-loader` }),
|
|
1415
1424
|
/* @__PURE__ */ o.jsx(
|
|
1416
1425
|
"img",
|
|
1417
1426
|
{
|
|
1418
1427
|
alt: a,
|
|
1419
1428
|
src: i,
|
|
1420
|
-
onLoad:
|
|
1421
|
-
onError:
|
|
1429
|
+
onLoad: R,
|
|
1430
|
+
onError: D,
|
|
1422
1431
|
style: { display: "none" }
|
|
1423
1432
|
}
|
|
1424
1433
|
)
|
|
1425
1434
|
] }),
|
|
1426
|
-
error: /* @__PURE__ */ o.jsx(
|
|
1435
|
+
error: /* @__PURE__ */ o.jsx(qr, { "data-testid": `${d}-fallback` }),
|
|
1427
1436
|
image: /* @__PURE__ */ o.jsx(
|
|
1428
1437
|
"img",
|
|
1429
1438
|
{
|
|
1430
1439
|
ref: r,
|
|
1431
1440
|
alt: a,
|
|
1432
|
-
"data-testid":
|
|
1441
|
+
"data-testid": d,
|
|
1433
1442
|
loading: s,
|
|
1434
1443
|
src: i,
|
|
1435
|
-
className:
|
|
1444
|
+
className: g
|
|
1436
1445
|
}
|
|
1437
1446
|
)
|
|
1438
1447
|
};
|
|
1439
|
-
return
|
|
1448
|
+
return Ee(() => {
|
|
1440
1449
|
if (!i) {
|
|
1441
|
-
|
|
1450
|
+
y("error");
|
|
1442
1451
|
return;
|
|
1443
1452
|
}
|
|
1444
|
-
|
|
1445
|
-
}, [i]), /* @__PURE__ */ o.jsxs("div", { className:
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1453
|
+
y("loading");
|
|
1454
|
+
}, [i]), /* @__PURE__ */ o.jsxs("div", { className: C, "data-testid": `${d}-container`, ...h, children: [
|
|
1455
|
+
E && k.loader,
|
|
1456
|
+
v && k.error,
|
|
1457
|
+
w && k.image
|
|
1449
1458
|
] });
|
|
1450
|
-
}),
|
|
1451
|
-
locale:
|
|
1452
|
-
}),
|
|
1459
|
+
}), Gr = {}, Rt = ra({
|
|
1460
|
+
locale: Gr
|
|
1461
|
+
}), Zr = () => {
|
|
1453
1462
|
const t = sa(Rt);
|
|
1454
1463
|
if (!t)
|
|
1455
1464
|
throw new Error("useConfig must be used within a ConfigProvider");
|
|
1456
1465
|
return t;
|
|
1457
|
-
},
|
|
1458
|
-
const { locale: t } =
|
|
1466
|
+
}, Nn = () => {
|
|
1467
|
+
const { locale: t } = Zr();
|
|
1459
1468
|
return t;
|
|
1460
|
-
},
|
|
1469
|
+
}, Yr = {}, Jr = {}, Kr = {}, Dn = ({
|
|
1461
1470
|
locale: t = {},
|
|
1462
1471
|
theme: r,
|
|
1463
1472
|
children: a,
|
|
@@ -1474,28 +1483,28 @@ const yr = 3, mr = (t) => {
|
|
|
1474
1483
|
"div",
|
|
1475
1484
|
{
|
|
1476
1485
|
"data-testid": "ConfigProvider-component",
|
|
1477
|
-
className:
|
|
1486
|
+
className: B(Yr, Jr, Kr, s)
|
|
1478
1487
|
}
|
|
1479
1488
|
),
|
|
1480
1489
|
/* @__PURE__ */ o.jsx(Rt.Provider, { value: { locale: t }, children: a })
|
|
1481
|
-
] })),
|
|
1482
|
-
tag:
|
|
1483
|
-
label:
|
|
1484
|
-
iconWrapper:
|
|
1485
|
-
medium:
|
|
1486
|
-
large:
|
|
1487
|
-
disabled:
|
|
1488
|
-
neutral:
|
|
1489
|
-
positive:
|
|
1490
|
-
negative:
|
|
1491
|
-
warning:
|
|
1492
|
-
vivid:
|
|
1493
|
-
special:
|
|
1494
|
-
accent:
|
|
1495
|
-
blue:
|
|
1496
|
-
lovely:
|
|
1490
|
+
] })), On = {}, Xr = "_tag_1llsi_1", Qr = "_label_1llsi_16", es = "_iconWrapper_1llsi_20", ts = "_medium_1llsi_27", as = "_large_1llsi_33", rs = "_disabled_1llsi_43", ss = "_neutral_1llsi_47", ns = "_positive_1llsi_53", os = "_negative_1llsi_59", is = "_warning_1llsi_65", ls = "_vivid_1llsi_71", cs = "_special_1llsi_77", ds = "_accent_1llsi_84", us = "_blue_1llsi_90", _s = "_lovely_1llsi_96", ps = "_dreamy_1llsi_102", we = {
|
|
1491
|
+
tag: Xr,
|
|
1492
|
+
label: Qr,
|
|
1493
|
+
iconWrapper: es,
|
|
1494
|
+
medium: ts,
|
|
1495
|
+
large: as,
|
|
1496
|
+
disabled: rs,
|
|
1497
|
+
neutral: ss,
|
|
1498
|
+
positive: ns,
|
|
1499
|
+
negative: os,
|
|
1500
|
+
warning: is,
|
|
1501
|
+
vivid: ls,
|
|
1502
|
+
special: cs,
|
|
1503
|
+
accent: ds,
|
|
1504
|
+
blue: us,
|
|
1505
|
+
lovely: _s,
|
|
1497
1506
|
dreamy: ps
|
|
1498
|
-
},
|
|
1507
|
+
}, Un = te((t, r) => {
|
|
1499
1508
|
const {
|
|
1500
1509
|
className: a,
|
|
1501
1510
|
children: s,
|
|
@@ -1506,43 +1515,43 @@ const yr = 3, mr = (t) => {
|
|
|
1506
1515
|
slotStart: d,
|
|
1507
1516
|
slotEnd: f,
|
|
1508
1517
|
slotStartWrapperProps: _ = {},
|
|
1509
|
-
slotEndWrapperProps:
|
|
1510
|
-
"data-testid":
|
|
1511
|
-
} = t, { className:
|
|
1518
|
+
slotEndWrapperProps: h = {},
|
|
1519
|
+
"data-testid": b
|
|
1520
|
+
} = t, { className: y, ...v } = _, { className: E, ...w } = h;
|
|
1512
1521
|
return /* @__PURE__ */ o.jsxs(
|
|
1513
1522
|
"div",
|
|
1514
1523
|
{
|
|
1515
|
-
className:
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1524
|
+
className: B(
|
|
1525
|
+
we.tag,
|
|
1526
|
+
we[n],
|
|
1527
|
+
we[i],
|
|
1519
1528
|
{
|
|
1520
|
-
[
|
|
1529
|
+
[we.disabled]: c,
|
|
1521
1530
|
[Ne["typography-label-3-regular"]]: n === "medium",
|
|
1522
1531
|
[Ne["typography-subtitle-1-semibold"]]: n === "large"
|
|
1523
1532
|
},
|
|
1524
1533
|
a
|
|
1525
1534
|
),
|
|
1526
|
-
"data-testid":
|
|
1535
|
+
"data-testid": b || "tag-component",
|
|
1527
1536
|
ref: r,
|
|
1528
1537
|
children: [
|
|
1529
|
-
d && /* @__PURE__ */ o.jsx("span", { className:
|
|
1530
|
-
p && /* @__PURE__ */ o.jsx("span", { className:
|
|
1531
|
-
f && /* @__PURE__ */ o.jsx("span", { className:
|
|
1538
|
+
d && /* @__PURE__ */ o.jsx("span", { className: B([we.iconWrapper, y]), ...v, children: d }),
|
|
1539
|
+
p && /* @__PURE__ */ o.jsx("span", { className: B([we.label]), children: s }),
|
|
1540
|
+
f && /* @__PURE__ */ o.jsx("span", { className: B([we.iconWrapper, E]), ...w, children: f })
|
|
1532
1541
|
]
|
|
1533
1542
|
}
|
|
1534
1543
|
);
|
|
1535
|
-
}),
|
|
1536
|
-
checkbox:
|
|
1537
|
-
input:
|
|
1538
|
-
icon:
|
|
1539
|
-
container:
|
|
1540
|
-
error:
|
|
1541
|
-
checkboxWrapper:
|
|
1542
|
-
medium:
|
|
1543
|
-
large:
|
|
1544
|
-
label:
|
|
1545
|
-
},
|
|
1544
|
+
}), fs = "_checkbox_qo5f5_43", gs = "_input_qo5f5_59", hs = "_icon_qo5f5_67", bs = "_container_qo5f5_84", ys = "_error_qo5f5_135", ms = "_checkboxWrapper_qo5f5_147", vs = "_medium_qo5f5_201", xs = "_large_qo5f5_206", Cs = "_label_qo5f5_247", he = {
|
|
1545
|
+
checkbox: fs,
|
|
1546
|
+
input: gs,
|
|
1547
|
+
icon: hs,
|
|
1548
|
+
container: bs,
|
|
1549
|
+
error: ys,
|
|
1550
|
+
checkboxWrapper: ms,
|
|
1551
|
+
medium: vs,
|
|
1552
|
+
large: xs,
|
|
1553
|
+
label: Cs
|
|
1554
|
+
}, ws = ({
|
|
1546
1555
|
width: t = 12,
|
|
1547
1556
|
height: r = 9,
|
|
1548
1557
|
className: a = "",
|
|
@@ -1568,7 +1577,7 @@ const yr = 3, mr = (t) => {
|
|
|
1568
1577
|
}
|
|
1569
1578
|
)
|
|
1570
1579
|
}
|
|
1571
|
-
),
|
|
1580
|
+
), Ss = ({
|
|
1572
1581
|
width: t = 12,
|
|
1573
1582
|
height: r = 2,
|
|
1574
1583
|
className: a = "",
|
|
@@ -1594,29 +1603,29 @@ const yr = 3, mr = (t) => {
|
|
|
1594
1603
|
}
|
|
1595
1604
|
)
|
|
1596
1605
|
}
|
|
1597
|
-
),
|
|
1606
|
+
), Es = {
|
|
1598
1607
|
medium: { width: 10.83, height: 7.5 },
|
|
1599
1608
|
large: { width: 13, height: 9 }
|
|
1600
|
-
},
|
|
1609
|
+
}, Ls = ({
|
|
1601
1610
|
size: t,
|
|
1602
1611
|
isChecked: r,
|
|
1603
1612
|
isDisabled: a,
|
|
1604
1613
|
indeterminate: s,
|
|
1605
1614
|
dataTestId: i
|
|
1606
1615
|
}) => {
|
|
1607
|
-
const { width: n, height: c } =
|
|
1616
|
+
const { width: n, height: c } = Es[t];
|
|
1608
1617
|
return /* @__PURE__ */ o.jsx(
|
|
1609
1618
|
"div",
|
|
1610
1619
|
{
|
|
1611
|
-
className:
|
|
1620
|
+
className: he.icon,
|
|
1612
1621
|
"data-testid": `${i}-icon`,
|
|
1613
1622
|
"data-checked": r,
|
|
1614
1623
|
"data-disabled": a,
|
|
1615
1624
|
"data-indeterminate": s,
|
|
1616
|
-
children: s ? /* @__PURE__ */ o.jsx(
|
|
1625
|
+
children: s ? /* @__PURE__ */ o.jsx(Ss, { width: n, height: c }) : /* @__PURE__ */ o.jsx(ws, { width: n, height: c })
|
|
1617
1626
|
}
|
|
1618
1627
|
);
|
|
1619
|
-
},
|
|
1628
|
+
}, Bn = te((t, r) => {
|
|
1620
1629
|
const {
|
|
1621
1630
|
name: a,
|
|
1622
1631
|
value: s,
|
|
@@ -1627,52 +1636,52 @@ const yr = 3, mr = (t) => {
|
|
|
1627
1636
|
disabled: d = !1,
|
|
1628
1637
|
containerClassName: f,
|
|
1629
1638
|
className: _,
|
|
1630
|
-
containerStyle:
|
|
1631
|
-
style:
|
|
1632
|
-
children:
|
|
1633
|
-
clickableLabel:
|
|
1634
|
-
tabIndex:
|
|
1635
|
-
onChange:
|
|
1636
|
-
"data-testid":
|
|
1637
|
-
} = t, [
|
|
1638
|
-
|
|
1639
|
-
|
|
1639
|
+
containerStyle: h,
|
|
1640
|
+
style: b,
|
|
1641
|
+
children: y,
|
|
1642
|
+
clickableLabel: v = !0,
|
|
1643
|
+
tabIndex: E,
|
|
1644
|
+
onChange: w,
|
|
1645
|
+
"data-testid": C = "checkbox"
|
|
1646
|
+
} = t, [g, R] = De(!1), D = s ?? g, k = d || c, $ = !!p, A = D || n, N = B(he.container, he[i], f), U = B(
|
|
1647
|
+
he.checkbox,
|
|
1648
|
+
he[i],
|
|
1640
1649
|
{
|
|
1641
|
-
[
|
|
1650
|
+
[he.error]: $
|
|
1642
1651
|
},
|
|
1643
1652
|
_
|
|
1644
|
-
),
|
|
1645
|
-
|
|
1646
|
-
},
|
|
1647
|
-
if (
|
|
1648
|
-
|
|
1649
|
-
const
|
|
1650
|
-
|
|
1653
|
+
), q = (j) => {
|
|
1654
|
+
k || (R(j.target.checked), w == null || w(j.target.checked, j));
|
|
1655
|
+
}, W = (j) => {
|
|
1656
|
+
if (j.key === "Enter" && !k) {
|
|
1657
|
+
j.preventDefault();
|
|
1658
|
+
const F = !A;
|
|
1659
|
+
R(F), w == null || w(F);
|
|
1651
1660
|
}
|
|
1652
|
-
},
|
|
1653
|
-
|
|
1654
|
-
},
|
|
1661
|
+
}, O = (j) => {
|
|
1662
|
+
v || j.preventDefault();
|
|
1663
|
+
}, m = (j) => j.stopPropagation();
|
|
1655
1664
|
return /* @__PURE__ */ o.jsxs(
|
|
1656
1665
|
"label",
|
|
1657
1666
|
{
|
|
1658
|
-
className:
|
|
1667
|
+
className: N,
|
|
1659
1668
|
htmlFor: a,
|
|
1660
|
-
style:
|
|
1661
|
-
"data-testid":
|
|
1662
|
-
"data-clickable-label":
|
|
1669
|
+
style: h,
|
|
1670
|
+
"data-testid": C,
|
|
1671
|
+
"data-clickable-label": v,
|
|
1663
1672
|
children: [
|
|
1664
|
-
/* @__PURE__ */ o.jsx("div", { className:
|
|
1673
|
+
/* @__PURE__ */ o.jsx("div", { className: he.checkboxWrapper, children: /* @__PURE__ */ o.jsxs(
|
|
1665
1674
|
"div",
|
|
1666
1675
|
{
|
|
1667
|
-
tabIndex:
|
|
1668
|
-
className:
|
|
1669
|
-
style:
|
|
1670
|
-
onKeyDown:
|
|
1671
|
-
"aria-checked":
|
|
1672
|
-
"aria-disabled":
|
|
1673
|
-
"aria-invalid":
|
|
1676
|
+
tabIndex: E || 0,
|
|
1677
|
+
className: U,
|
|
1678
|
+
style: b,
|
|
1679
|
+
onKeyDown: W,
|
|
1680
|
+
"aria-checked": A,
|
|
1681
|
+
"aria-disabled": k,
|
|
1682
|
+
"aria-invalid": $,
|
|
1674
1683
|
"aria-describedby": p ? `${a}-error` : void 0,
|
|
1675
|
-
"data-testid": `${
|
|
1684
|
+
"data-testid": `${C}-label`,
|
|
1676
1685
|
children: [
|
|
1677
1686
|
/* @__PURE__ */ o.jsx(
|
|
1678
1687
|
"input",
|
|
@@ -1681,63 +1690,63 @@ const yr = 3, mr = (t) => {
|
|
|
1681
1690
|
type: "checkbox",
|
|
1682
1691
|
id: a,
|
|
1683
1692
|
name: a,
|
|
1684
|
-
checked:
|
|
1685
|
-
disabled:
|
|
1686
|
-
className:
|
|
1687
|
-
onChange:
|
|
1688
|
-
onClick:
|
|
1689
|
-
"aria-checked":
|
|
1690
|
-
"aria-invalid":
|
|
1693
|
+
checked: A,
|
|
1694
|
+
disabled: k,
|
|
1695
|
+
className: he.input,
|
|
1696
|
+
onChange: q,
|
|
1697
|
+
onClick: m,
|
|
1698
|
+
"aria-checked": A,
|
|
1699
|
+
"aria-invalid": $,
|
|
1691
1700
|
"aria-describedby": p ? `${a}-error` : void 0,
|
|
1692
|
-
"data-testid": `${
|
|
1701
|
+
"data-testid": `${C}-input`
|
|
1693
1702
|
}
|
|
1694
1703
|
),
|
|
1695
1704
|
/* @__PURE__ */ o.jsx(
|
|
1696
|
-
|
|
1705
|
+
Ls,
|
|
1697
1706
|
{
|
|
1698
1707
|
name: a,
|
|
1699
1708
|
size: i,
|
|
1700
|
-
isChecked:
|
|
1701
|
-
isDisabled:
|
|
1709
|
+
isChecked: A,
|
|
1710
|
+
isDisabled: k,
|
|
1702
1711
|
indeterminate: n,
|
|
1703
|
-
dataTestId:
|
|
1712
|
+
dataTestId: C
|
|
1704
1713
|
}
|
|
1705
1714
|
)
|
|
1706
1715
|
]
|
|
1707
1716
|
}
|
|
1708
1717
|
) }),
|
|
1709
|
-
|
|
1718
|
+
y && /* @__PURE__ */ o.jsx(
|
|
1710
1719
|
"span",
|
|
1711
1720
|
{
|
|
1712
|
-
"data-testid": `${
|
|
1713
|
-
"data-clickable-label":
|
|
1714
|
-
className:
|
|
1715
|
-
onClick:
|
|
1716
|
-
children:
|
|
1721
|
+
"data-testid": `${C}-label-text`,
|
|
1722
|
+
"data-clickable-label": v,
|
|
1723
|
+
className: he.label,
|
|
1724
|
+
onClick: O,
|
|
1725
|
+
children: y
|
|
1717
1726
|
}
|
|
1718
1727
|
)
|
|
1719
1728
|
]
|
|
1720
1729
|
}
|
|
1721
1730
|
);
|
|
1722
|
-
}),
|
|
1723
|
-
typography:
|
|
1724
|
-
disabled:
|
|
1725
|
-
primary:
|
|
1726
|
-
secondary:
|
|
1727
|
-
tertiary:
|
|
1728
|
-
accent:
|
|
1731
|
+
}), Ms = "_typography_zt7xg_1", $s = "_disabled_zt7xg_8", js = "_primary_zt7xg_13", Is = "_secondary_zt7xg_18", Rs = "_tertiary_zt7xg_23", ks = "_accent_zt7xg_28", Ts = "_positive_zt7xg_38", As = "_negative_zt7xg_48", Ns = "_warning_zt7xg_58", Ds = "_special_zt7xg_68", Os = "_contrast_zt7xg_78", je = {
|
|
1732
|
+
typography: Ms,
|
|
1733
|
+
disabled: $s,
|
|
1734
|
+
primary: js,
|
|
1735
|
+
secondary: Is,
|
|
1736
|
+
tertiary: Rs,
|
|
1737
|
+
accent: ks,
|
|
1729
1738
|
"accent-secondary": "_accent-secondary_zt7xg_33",
|
|
1730
|
-
positive:
|
|
1739
|
+
positive: Ts,
|
|
1731
1740
|
"positive-secondary": "_positive-secondary_zt7xg_43",
|
|
1732
|
-
negative:
|
|
1741
|
+
negative: As,
|
|
1733
1742
|
"negative-secondary": "_negative-secondary_zt7xg_53",
|
|
1734
|
-
warning:
|
|
1743
|
+
warning: Ns,
|
|
1735
1744
|
"warning-secondary": "_warning-secondary_zt7xg_63",
|
|
1736
|
-
special:
|
|
1745
|
+
special: Ds,
|
|
1737
1746
|
"special-secondary": "_special-secondary_zt7xg_73",
|
|
1738
|
-
contrast:
|
|
1747
|
+
contrast: Os,
|
|
1739
1748
|
"contrast-secondary": "_contrast-secondary_zt7xg_83"
|
|
1740
|
-
},
|
|
1749
|
+
}, Us = {
|
|
1741
1750
|
1: "h1",
|
|
1742
1751
|
2: "h2",
|
|
1743
1752
|
3: "h3",
|
|
@@ -1755,8 +1764,8 @@ const yr = 3, mr = (t) => {
|
|
|
1755
1764
|
disabled: d = !1,
|
|
1756
1765
|
typographyStyle: f = "primary",
|
|
1757
1766
|
..._
|
|
1758
|
-
},
|
|
1759
|
-
const
|
|
1767
|
+
}, h) => {
|
|
1768
|
+
const b = c || Us[a], y = B(
|
|
1760
1769
|
je.typography,
|
|
1761
1770
|
Ne[`typography-${t}-${a}-${p}`],
|
|
1762
1771
|
je[f],
|
|
@@ -1765,7 +1774,7 @@ const yr = 3, mr = (t) => {
|
|
|
1765
1774
|
},
|
|
1766
1775
|
i
|
|
1767
1776
|
);
|
|
1768
|
-
return s ? /* @__PURE__ */ o.jsx(
|
|
1777
|
+
return s ? /* @__PURE__ */ o.jsx(b, { ref: h, className: y, "data-testid": n, ..._, children: s }) : null;
|
|
1769
1778
|
}
|
|
1770
1779
|
);
|
|
1771
1780
|
return r.displayName = `Typography.${t === "title" ? "Title" : "Subtitle"}`, r;
|
|
@@ -1781,8 +1790,8 @@ const yr = 3, mr = (t) => {
|
|
|
1781
1790
|
disabled: d = !1,
|
|
1782
1791
|
typographyStyle: f = "primary",
|
|
1783
1792
|
..._
|
|
1784
|
-
},
|
|
1785
|
-
const
|
|
1793
|
+
}, h) => {
|
|
1794
|
+
const b = c, y = B(
|
|
1786
1795
|
je.typography,
|
|
1787
1796
|
Ne[`typography-${t}-${a}-${p}`],
|
|
1788
1797
|
je[f],
|
|
@@ -1792,10 +1801,10 @@ const yr = 3, mr = (t) => {
|
|
|
1792
1801
|
i
|
|
1793
1802
|
);
|
|
1794
1803
|
return s ? /* @__PURE__ */ o.jsx(
|
|
1795
|
-
|
|
1804
|
+
b,
|
|
1796
1805
|
{
|
|
1797
|
-
ref:
|
|
1798
|
-
className:
|
|
1806
|
+
ref: h,
|
|
1807
|
+
className: y,
|
|
1799
1808
|
"data-testid": n,
|
|
1800
1809
|
..._,
|
|
1801
1810
|
children: s
|
|
@@ -1804,41 +1813,43 @@ const yr = 3, mr = (t) => {
|
|
|
1804
1813
|
}
|
|
1805
1814
|
);
|
|
1806
1815
|
return r.displayName = `Typography.${t.charAt(0).toUpperCase() + t.slice(1)}`, r;
|
|
1807
|
-
},
|
|
1816
|
+
}, Fn = {
|
|
1808
1817
|
Title: xt("title"),
|
|
1809
1818
|
Subtitle: xt("subtitle"),
|
|
1810
1819
|
Label: Ct("label"),
|
|
1811
1820
|
Paragraph: Ct("paragraph")
|
|
1812
|
-
},
|
|
1813
|
-
inputBase:
|
|
1814
|
-
wrapper:
|
|
1815
|
-
"textarea-wrapper": "_textarea-
|
|
1816
|
-
gripHandle:
|
|
1817
|
-
error:
|
|
1818
|
-
tabFocused:
|
|
1819
|
-
disabled:
|
|
1820
|
-
loading:
|
|
1821
|
-
label:
|
|
1822
|
-
small:
|
|
1823
|
-
large:
|
|
1824
|
-
leftSection:
|
|
1825
|
-
rightSection:
|
|
1826
|
-
helper:
|
|
1827
|
-
floatingLabel:
|
|
1828
|
-
focused:
|
|
1829
|
-
filled:
|
|
1830
|
-
medium:
|
|
1831
|
-
characterLimit:
|
|
1832
|
-
input:
|
|
1833
|
-
textarea:
|
|
1834
|
-
"size-small": "_size-
|
|
1835
|
-
"size-medium": "_size-
|
|
1836
|
-
"size-large": "_size-
|
|
1837
|
-
"with-floating-label": "_with-floating-
|
|
1838
|
-
truncate:
|
|
1839
|
-
hint:
|
|
1840
|
-
"has-hint": "_has-
|
|
1841
|
-
|
|
1821
|
+
}, Bs = "_inputBase_2vlla_85", Fs = "_wrapper_2vlla_95", Ps = "_gripHandle_2vlla_169", zs = "_error_2vlla_230", Ws = "_tabFocused_2vlla_237", Vs = "_disabled_2vlla_262", Hs = "_loading_2vlla_269", qs = "_label_2vlla_279", Gs = "_small_2vlla_292", Zs = "_large_2vlla_299", Ys = "_leftSection_2vlla_306", Js = "_rightSection_2vlla_315", Ks = "_helper_2vlla_351", Xs = "_floatingLabel_2vlla_376", Qs = "_focused_2vlla_434", en = "_filled_2vlla_435", tn = "_medium_2vlla_469", an = "_characterLimit_2vlla_510", rn = "_input_2vlla_85", sn = "_textarea_2vlla_109", nn = "_truncate_2vlla_637", on = "_hint_2vlla_719", M = {
|
|
1822
|
+
inputBase: Bs,
|
|
1823
|
+
wrapper: Fs,
|
|
1824
|
+
"textarea-wrapper": "_textarea-wrapper_2vlla_109",
|
|
1825
|
+
gripHandle: Ps,
|
|
1826
|
+
error: zs,
|
|
1827
|
+
tabFocused: Ws,
|
|
1828
|
+
disabled: Vs,
|
|
1829
|
+
loading: Hs,
|
|
1830
|
+
label: qs,
|
|
1831
|
+
small: Gs,
|
|
1832
|
+
large: Zs,
|
|
1833
|
+
leftSection: Ys,
|
|
1834
|
+
rightSection: Js,
|
|
1835
|
+
helper: Ks,
|
|
1836
|
+
floatingLabel: Xs,
|
|
1837
|
+
focused: Qs,
|
|
1838
|
+
filled: en,
|
|
1839
|
+
medium: tn,
|
|
1840
|
+
characterLimit: an,
|
|
1841
|
+
input: rn,
|
|
1842
|
+
textarea: sn,
|
|
1843
|
+
"size-small": "_size-small_2vlla_586",
|
|
1844
|
+
"size-medium": "_size-medium_2vlla_592",
|
|
1845
|
+
"size-large": "_size-large_2vlla_598",
|
|
1846
|
+
"with-floating-label": "_with-floating-label_2vlla_605",
|
|
1847
|
+
truncate: nn,
|
|
1848
|
+
hint: on,
|
|
1849
|
+
"has-hint": "_has-hint_2vlla_736",
|
|
1850
|
+
"has-suffix": "_has-suffix_2vlla_742",
|
|
1851
|
+
"has-limit": "_has-limit_2vlla_748"
|
|
1852
|
+
}, ln = ({
|
|
1842
1853
|
width: t = 8,
|
|
1843
1854
|
height: r = 8,
|
|
1844
1855
|
className: a,
|
|
@@ -1905,9 +1916,9 @@ const yr = 3, mr = (t) => {
|
|
|
1905
1916
|
)
|
|
1906
1917
|
}
|
|
1907
1918
|
);
|
|
1908
|
-
},
|
|
1919
|
+
}, cn = (t, r) => {
|
|
1909
1920
|
const a = We(null), s = We(null);
|
|
1910
|
-
return
|
|
1921
|
+
return Ee(() => {
|
|
1911
1922
|
const i = r === "textarea" ? a.current : s.current;
|
|
1912
1923
|
i && i.value !== t && (i.value = t || "");
|
|
1913
1924
|
}, [t, r]), {
|
|
@@ -1915,7 +1926,7 @@ const yr = 3, mr = (t) => {
|
|
|
1915
1926
|
inputRef: s,
|
|
1916
1927
|
currentRef: r === "textarea" ? a : s
|
|
1917
1928
|
};
|
|
1918
|
-
},
|
|
1929
|
+
}, dn = (t, r, a) => {
|
|
1919
1930
|
const s = () => {
|
|
1920
1931
|
if (!a.current || r !== "hug") return;
|
|
1921
1932
|
const i = a.current.scrollTop;
|
|
@@ -1925,25 +1936,25 @@ const yr = 3, mr = (t) => {
|
|
|
1925
1936
|
const c = a.current.closest(`.${M.wrapper}`);
|
|
1926
1937
|
c && (c.setAttribute("data-resize", "hug"), c.setAttribute("data-show-grip", "false"));
|
|
1927
1938
|
};
|
|
1928
|
-
return
|
|
1939
|
+
return Ee(s, [t, r]), Ee(() => {
|
|
1929
1940
|
r === "hug" && a.current && s();
|
|
1930
1941
|
}, []), { resizeTextArea: s };
|
|
1931
|
-
},
|
|
1942
|
+
}, un = (t, r, a, s) => ({ handleGripMouseDown: Se(
|
|
1932
1943
|
(n) => {
|
|
1933
1944
|
if (!t || r || a || !(s === "fixed" || !s)) return;
|
|
1934
1945
|
n.preventDefault(), n.stopPropagation();
|
|
1935
1946
|
const c = n.currentTarget.closest(`.${M.wrapper}`);
|
|
1936
1947
|
if (!c) return;
|
|
1937
|
-
const p = n.clientY, d = c.clientHeight, f = (
|
|
1938
|
-
const
|
|
1939
|
-
c.style.height = `${
|
|
1948
|
+
const p = n.clientY, d = c.clientHeight, f = (h) => {
|
|
1949
|
+
const b = h.clientY - p, y = Math.min(100, d), v = Math.max(y, d + b);
|
|
1950
|
+
c.style.height = `${v}px`;
|
|
1940
1951
|
}, _ = () => {
|
|
1941
1952
|
document.removeEventListener("mousemove", f), document.removeEventListener("mouseup", _);
|
|
1942
1953
|
};
|
|
1943
1954
|
document.addEventListener("mousemove", f), document.addEventListener("mouseup", _);
|
|
1944
1955
|
},
|
|
1945
1956
|
[t, r, a, s]
|
|
1946
|
-
) }), wt = 30,
|
|
1957
|
+
) }), wt = 30, _n = te(
|
|
1947
1958
|
({
|
|
1948
1959
|
component: t = "input",
|
|
1949
1960
|
size: r = "medium",
|
|
@@ -1954,75 +1965,78 @@ const yr = 3, mr = (t) => {
|
|
|
1954
1965
|
onFocus: c,
|
|
1955
1966
|
onBlur: p,
|
|
1956
1967
|
onChange: d,
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
1968
|
+
onKeyDown: f,
|
|
1969
|
+
onKeyUp: _,
|
|
1970
|
+
maxLength: h,
|
|
1971
|
+
className: b,
|
|
1972
|
+
style: y,
|
|
1973
|
+
truncate: v = !1,
|
|
1974
|
+
shouldShowFloatingLabelClass: E = !1,
|
|
1975
|
+
"aria-invalid": w,
|
|
1964
1976
|
"aria-errormessage": C,
|
|
1965
|
-
id:
|
|
1966
|
-
resize:
|
|
1967
|
-
...
|
|
1968
|
-
},
|
|
1969
|
-
const { textareaRef:
|
|
1970
|
-
if (
|
|
1977
|
+
id: g,
|
|
1978
|
+
resize: R,
|
|
1979
|
+
...D
|
|
1980
|
+
}, k) => {
|
|
1981
|
+
const { textareaRef: $, inputRef: A, currentRef: N } = cn(a, t);
|
|
1982
|
+
if (dn(a, R, $), oa(k, () => N.current, [N]), t === "textarea")
|
|
1971
1983
|
return /* @__PURE__ */ o.jsx(
|
|
1972
1984
|
"textarea",
|
|
1973
1985
|
{
|
|
1974
|
-
ref:
|
|
1975
|
-
id:
|
|
1986
|
+
ref: $,
|
|
1987
|
+
id: g,
|
|
1976
1988
|
value: a,
|
|
1977
1989
|
placeholder: s,
|
|
1978
1990
|
disabled: i || n,
|
|
1979
1991
|
onFocus: c,
|
|
1980
1992
|
onBlur: p,
|
|
1981
1993
|
onChange: d,
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1994
|
+
onKeyDown: f,
|
|
1995
|
+
onKeyUp: _,
|
|
1996
|
+
maxLength: h,
|
|
1997
|
+
className: B(
|
|
1985
1998
|
M.textarea,
|
|
1986
1999
|
M[`size-${r}`],
|
|
1987
|
-
|
|
1988
|
-
|
|
2000
|
+
E && M["with-floating-label"],
|
|
2001
|
+
b
|
|
1989
2002
|
),
|
|
1990
|
-
style:
|
|
1991
|
-
"aria-invalid":
|
|
2003
|
+
style: y,
|
|
2004
|
+
"aria-invalid": w,
|
|
1992
2005
|
"aria-errormessage": C,
|
|
1993
|
-
"aria-describedby": C ? `${
|
|
2006
|
+
"aria-describedby": C ? `${g}-error` : void 0,
|
|
1994
2007
|
tabIndex: 0,
|
|
1995
|
-
"data-resize":
|
|
1996
|
-
...
|
|
2008
|
+
"data-resize": R,
|
|
2009
|
+
...D
|
|
1997
2010
|
}
|
|
1998
2011
|
);
|
|
1999
2012
|
if (t === "input")
|
|
2000
2013
|
return /* @__PURE__ */ o.jsx(
|
|
2001
2014
|
"input",
|
|
2002
2015
|
{
|
|
2003
|
-
ref:
|
|
2004
|
-
id:
|
|
2016
|
+
ref: A,
|
|
2017
|
+
id: g,
|
|
2005
2018
|
value: a,
|
|
2006
2019
|
placeholder: s,
|
|
2007
2020
|
disabled: i || n,
|
|
2008
2021
|
onFocus: c,
|
|
2009
2022
|
onBlur: p,
|
|
2010
2023
|
onChange: d,
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
|
|
2024
|
+
onKeyDown: f,
|
|
2025
|
+
onKeyUp: _,
|
|
2026
|
+
maxLength: h,
|
|
2027
|
+
className: B(
|
|
2014
2028
|
M.input,
|
|
2015
2029
|
M[`size-${r}`],
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2030
|
+
E && M["with-floating-label"],
|
|
2031
|
+
v && M.truncate,
|
|
2032
|
+
b
|
|
2019
2033
|
),
|
|
2020
|
-
style:
|
|
2021
|
-
"aria-invalid":
|
|
2034
|
+
style: y,
|
|
2035
|
+
"aria-invalid": w,
|
|
2022
2036
|
"aria-errormessage": C,
|
|
2023
|
-
"aria-describedby": C ? `${
|
|
2037
|
+
"aria-describedby": C ? `${g}-error` : void 0,
|
|
2024
2038
|
tabIndex: 0,
|
|
2025
|
-
...
|
|
2039
|
+
...D
|
|
2026
2040
|
}
|
|
2027
2041
|
);
|
|
2028
2042
|
if (t !== "input" && t !== "textarea")
|
|
@@ -2030,7 +2044,7 @@ const yr = 3, mr = (t) => {
|
|
|
2030
2044
|
`[Input] Недопустимое значение prop 'component': "${String(t)}". Допустимые значения: 'input', 'textarea'`
|
|
2031
2045
|
), null;
|
|
2032
2046
|
}
|
|
2033
|
-
), Tt =
|
|
2047
|
+
), Tt = te(
|
|
2034
2048
|
({
|
|
2035
2049
|
children: t,
|
|
2036
2050
|
size: r = "medium",
|
|
@@ -2043,85 +2057,97 @@ const yr = 3, mr = (t) => {
|
|
|
2043
2057
|
floatingLabelStyles: d,
|
|
2044
2058
|
prefixStyles: f,
|
|
2045
2059
|
suffixStyles: _,
|
|
2046
|
-
labelProps:
|
|
2047
|
-
helperProps:
|
|
2048
|
-
showLimit:
|
|
2049
|
-
maxLength:
|
|
2050
|
-
hint:
|
|
2051
|
-
showHint:
|
|
2052
|
-
showHintOnEmpty:
|
|
2053
|
-
prefix:
|
|
2054
|
-
suffix:
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2060
|
+
labelProps: h,
|
|
2061
|
+
helperProps: b,
|
|
2062
|
+
showLimit: y = !1,
|
|
2063
|
+
maxLength: v,
|
|
2064
|
+
hint: E,
|
|
2065
|
+
showHint: w = !1,
|
|
2066
|
+
showHintOnEmpty: C = !1,
|
|
2067
|
+
prefix: g,
|
|
2068
|
+
suffix: R,
|
|
2069
|
+
onSuffixClick: D,
|
|
2070
|
+
placeholder: k,
|
|
2071
|
+
showLabel: $ = !0,
|
|
2072
|
+
labelClassName: A,
|
|
2073
|
+
hasValue: N = !1,
|
|
2059
2074
|
helper: U,
|
|
2060
|
-
id:
|
|
2061
|
-
value:
|
|
2062
|
-
resize:
|
|
2063
|
-
showGrip:
|
|
2064
|
-
...
|
|
2065
|
-
},
|
|
2066
|
-
const
|
|
2075
|
+
id: q,
|
|
2076
|
+
value: W = "",
|
|
2077
|
+
resize: O,
|
|
2078
|
+
showGrip: m = !1,
|
|
2079
|
+
...j
|
|
2080
|
+
}, F) => {
|
|
2081
|
+
const G = $t(), H = q || G, Q = w && E && (N || C), ae = E && E.length > wt ? E.substring(0, wt) + "..." : E, J = B(
|
|
2067
2082
|
M.wrapper,
|
|
2068
2083
|
a && M.error,
|
|
2069
2084
|
s && M.disabled,
|
|
2070
2085
|
i && M.loading,
|
|
2071
|
-
|
|
2086
|
+
Q && M["has-hint"],
|
|
2087
|
+
R && M["has-suffix"],
|
|
2088
|
+
y && M["has-limit"],
|
|
2072
2089
|
n
|
|
2073
|
-
),
|
|
2090
|
+
), re = B(
|
|
2074
2091
|
M.floatingLabel,
|
|
2075
2092
|
M[r],
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
), { handleGripMouseDown:
|
|
2079
|
-
return /* @__PURE__ */ o.jsxs("div", { ref:
|
|
2093
|
+
N && M.filled,
|
|
2094
|
+
A
|
|
2095
|
+
), { handleGripMouseDown: se } = un(m, s, i, O);
|
|
2096
|
+
return /* @__PURE__ */ o.jsxs("div", { ref: F, className: M.inputBase, "data-testid": "input-base-wrapper", ...j, children: [
|
|
2080
2097
|
/* @__PURE__ */ o.jsxs(
|
|
2081
2098
|
"div",
|
|
2082
2099
|
{
|
|
2083
|
-
className:
|
|
2100
|
+
className: J,
|
|
2084
2101
|
style: p,
|
|
2085
|
-
"data-resize":
|
|
2086
|
-
"data-show-grip":
|
|
2102
|
+
"data-resize": O,
|
|
2103
|
+
"data-show-grip": m ? "true" : "false",
|
|
2087
2104
|
...c,
|
|
2088
2105
|
children: [
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2106
|
+
g && /* @__PURE__ */ o.jsx("label", { htmlFor: H, className: M.leftSection, style: f, children: g }),
|
|
2107
|
+
R && /* @__PURE__ */ o.jsx(
|
|
2108
|
+
"label",
|
|
2109
|
+
{
|
|
2110
|
+
htmlFor: H,
|
|
2111
|
+
className: M.rightSection,
|
|
2112
|
+
style: _,
|
|
2113
|
+
onClick: D,
|
|
2114
|
+
children: R
|
|
2115
|
+
}
|
|
2116
|
+
),
|
|
2117
|
+
k && $ && /* @__PURE__ */ o.jsx(
|
|
2092
2118
|
"label",
|
|
2093
2119
|
{
|
|
2094
|
-
htmlFor:
|
|
2095
|
-
className:
|
|
2120
|
+
htmlFor: H,
|
|
2121
|
+
className: re,
|
|
2096
2122
|
style: d,
|
|
2097
|
-
...
|
|
2098
|
-
children:
|
|
2123
|
+
...h,
|
|
2124
|
+
children: k
|
|
2099
2125
|
}
|
|
2100
2126
|
),
|
|
2101
2127
|
t,
|
|
2102
|
-
|
|
2128
|
+
m && !y && (O === "fixed" || !O) && /* @__PURE__ */ o.jsx(
|
|
2103
2129
|
"div",
|
|
2104
2130
|
{
|
|
2105
2131
|
className: M.gripHandle,
|
|
2106
|
-
onMouseDown:
|
|
2132
|
+
onMouseDown: se,
|
|
2107
2133
|
role: "button",
|
|
2108
2134
|
tabIndex: -1,
|
|
2109
2135
|
"aria-label": "Изменить размер",
|
|
2110
|
-
children: /* @__PURE__ */ o.jsx(
|
|
2136
|
+
children: /* @__PURE__ */ o.jsx(ln, {})
|
|
2111
2137
|
}
|
|
2112
2138
|
),
|
|
2113
|
-
|
|
2139
|
+
Q && /* @__PURE__ */ o.jsx(
|
|
2114
2140
|
"div",
|
|
2115
2141
|
{
|
|
2116
|
-
className:
|
|
2142
|
+
className: B(M.hint, N && M.truncate),
|
|
2117
2143
|
"data-disabled": s || i,
|
|
2118
|
-
children:
|
|
2144
|
+
children: ae
|
|
2119
2145
|
}
|
|
2120
2146
|
),
|
|
2121
|
-
|
|
2122
|
-
(
|
|
2147
|
+
y && v && /* @__PURE__ */ o.jsxs("div", { className: M.characterLimit, children: [
|
|
2148
|
+
(W || "").length,
|
|
2123
2149
|
" из ",
|
|
2124
|
-
|
|
2150
|
+
v
|
|
2125
2151
|
] })
|
|
2126
2152
|
]
|
|
2127
2153
|
}
|
|
@@ -2129,13 +2155,13 @@ const yr = 3, mr = (t) => {
|
|
|
2129
2155
|
U && /* @__PURE__ */ o.jsx(
|
|
2130
2156
|
"div",
|
|
2131
2157
|
{
|
|
2132
|
-
className:
|
|
2158
|
+
className: B(
|
|
2133
2159
|
M.helper,
|
|
2134
2160
|
a && M.error,
|
|
2135
2161
|
(s || i) && M.disabled
|
|
2136
2162
|
),
|
|
2137
|
-
...
|
|
2138
|
-
id: a ? `${
|
|
2163
|
+
...b,
|
|
2164
|
+
id: a ? `${H}-error` : void 0,
|
|
2139
2165
|
children: U
|
|
2140
2166
|
}
|
|
2141
2167
|
)
|
|
@@ -2143,9 +2169,9 @@ const yr = 3, mr = (t) => {
|
|
|
2143
2169
|
}
|
|
2144
2170
|
);
|
|
2145
2171
|
Tt.displayName = "InputWrapperComponent";
|
|
2146
|
-
const St = Object.assign(
|
|
2172
|
+
const St = Object.assign(_n, {
|
|
2147
2173
|
Wrapper: Tt
|
|
2148
|
-
}), At =
|
|
2174
|
+
}), At = te(
|
|
2149
2175
|
({
|
|
2150
2176
|
component: t = "input",
|
|
2151
2177
|
size: r = "medium",
|
|
@@ -2158,177 +2184,181 @@ const St = Object.assign(un, {
|
|
|
2158
2184
|
labelClassName: d,
|
|
2159
2185
|
helper: f,
|
|
2160
2186
|
prefix: _,
|
|
2161
|
-
suffix:
|
|
2162
|
-
id:
|
|
2163
|
-
onFocus:
|
|
2164
|
-
onBlur:
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
2187
|
+
suffix: h,
|
|
2188
|
+
id: b,
|
|
2189
|
+
onFocus: y,
|
|
2190
|
+
onBlur: v,
|
|
2191
|
+
onKeyDown: E,
|
|
2192
|
+
onSuffixClick: w,
|
|
2193
|
+
onChange: C,
|
|
2194
|
+
value: g = "",
|
|
2195
|
+
wrapperProps: R,
|
|
2196
|
+
wrapperStyles: D,
|
|
2197
|
+
floatingLabelStyles: k,
|
|
2198
|
+
prefixStyles: $,
|
|
2199
|
+
suffixStyles: A,
|
|
2200
|
+
textareaStyles: N,
|
|
2201
|
+
labelProps: U,
|
|
2202
|
+
helperProps: q,
|
|
2203
|
+
showLimit: W = !1,
|
|
2204
|
+
maxLength: O,
|
|
2205
|
+
inputProps: m,
|
|
2206
|
+
hint: j,
|
|
2207
|
+
showHint: F = !1,
|
|
2208
|
+
showHintOnEmpty: G = !1,
|
|
2209
|
+
truncate: H = !1,
|
|
2210
|
+
resize: Q,
|
|
2211
|
+
showGrip: ae = !1,
|
|
2212
|
+
...J
|
|
2213
|
+
}, re) => {
|
|
2214
|
+
const se = $t(), de = b || se, [ve, ie] = De(g), ye = g !== void 0 ? g : ve, ue = (ye || "").length > 0, le = ye || "", _e = p && (r === "large" || t === "textarea") && !_, xe = Se(
|
|
2215
|
+
(Z) => {
|
|
2216
|
+
var Y;
|
|
2217
|
+
i || n || (y == null || y(), (Y = m == null ? void 0 : m.onFocus) == null || Y.call(
|
|
2218
|
+
m,
|
|
2219
|
+
Z
|
|
2192
2220
|
));
|
|
2193
2221
|
},
|
|
2194
|
-
[
|
|
2195
|
-
),
|
|
2196
|
-
(
|
|
2197
|
-
var
|
|
2198
|
-
if (
|
|
2199
|
-
const ce =
|
|
2222
|
+
[y, m, i, n]
|
|
2223
|
+
), Oe = Se(
|
|
2224
|
+
(Z) => {
|
|
2225
|
+
var Y;
|
|
2226
|
+
if (Z.key === "Tab") {
|
|
2227
|
+
const ce = Z.target.closest(`.${M.wrapper}`);
|
|
2200
2228
|
ce && ce.classList.add(M.tabFocused);
|
|
2201
2229
|
}
|
|
2202
|
-
(
|
|
2203
|
-
|
|
2204
|
-
|
|
2230
|
+
(Y = m == null ? void 0 : m.onKeyUp) == null || Y.call(
|
|
2231
|
+
m,
|
|
2232
|
+
Z
|
|
2205
2233
|
);
|
|
2206
2234
|
},
|
|
2207
|
-
[
|
|
2208
|
-
),
|
|
2209
|
-
(
|
|
2235
|
+
[m]
|
|
2236
|
+
), Ve = Se(
|
|
2237
|
+
(Z) => {
|
|
2210
2238
|
var ce;
|
|
2211
|
-
const
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2239
|
+
const Y = Z.target.closest(`.${M.wrapper}`);
|
|
2240
|
+
Y && Y.classList.remove(M.tabFocused), v == null || v(), (ce = m == null ? void 0 : m.onBlur) == null || ce.call(
|
|
2241
|
+
m,
|
|
2242
|
+
Z
|
|
2215
2243
|
);
|
|
2216
2244
|
},
|
|
2217
|
-
[
|
|
2218
|
-
),
|
|
2219
|
-
(
|
|
2245
|
+
[v, m]
|
|
2246
|
+
), He = Se(
|
|
2247
|
+
(Z) => {
|
|
2220
2248
|
var ce;
|
|
2221
2249
|
if (i || n) return;
|
|
2222
|
-
const
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2250
|
+
const Y = Z.target.value;
|
|
2251
|
+
ie(Y), C == null || C(Y, Z), (ce = m == null ? void 0 : m.onChange) == null || ce.call(
|
|
2252
|
+
m,
|
|
2253
|
+
Z
|
|
2226
2254
|
);
|
|
2227
2255
|
},
|
|
2228
|
-
[
|
|
2256
|
+
[C, m, i, n]
|
|
2229
2257
|
);
|
|
2230
|
-
return
|
|
2231
|
-
|
|
2232
|
-
}, [
|
|
2258
|
+
return Ee(() => {
|
|
2259
|
+
ie(g || "");
|
|
2260
|
+
}, [g]), /* @__PURE__ */ o.jsx(
|
|
2233
2261
|
St.Wrapper,
|
|
2234
2262
|
{
|
|
2235
|
-
ref:
|
|
2263
|
+
ref: re,
|
|
2236
2264
|
size: r,
|
|
2237
2265
|
error: s,
|
|
2238
2266
|
disabled: i || n,
|
|
2239
2267
|
loading: n,
|
|
2240
|
-
className:
|
|
2241
|
-
wrapperProps:
|
|
2242
|
-
wrapperStyles:
|
|
2243
|
-
floatingLabelStyles:
|
|
2244
|
-
prefixStyles:
|
|
2245
|
-
suffixStyles:
|
|
2246
|
-
labelProps:
|
|
2247
|
-
helperProps:
|
|
2248
|
-
showLimit:
|
|
2249
|
-
maxLength:
|
|
2250
|
-
hint:
|
|
2251
|
-
showHint:
|
|
2252
|
-
showHintOnEmpty:
|
|
2268
|
+
className: B(a, t === "textarea" && M["textarea-wrapper"]),
|
|
2269
|
+
wrapperProps: R,
|
|
2270
|
+
wrapperStyles: D,
|
|
2271
|
+
floatingLabelStyles: k,
|
|
2272
|
+
prefixStyles: $,
|
|
2273
|
+
suffixStyles: A,
|
|
2274
|
+
labelProps: U,
|
|
2275
|
+
helperProps: q,
|
|
2276
|
+
showLimit: W,
|
|
2277
|
+
maxLength: O,
|
|
2278
|
+
hint: j,
|
|
2279
|
+
showHint: F,
|
|
2280
|
+
showHintOnEmpty: G,
|
|
2253
2281
|
prefix: _,
|
|
2254
|
-
suffix:
|
|
2282
|
+
suffix: h,
|
|
2283
|
+
onSuffixClick: w,
|
|
2255
2284
|
placeholder: c,
|
|
2256
2285
|
showLabel: p,
|
|
2257
2286
|
labelClassName: d,
|
|
2258
|
-
hasValue:
|
|
2287
|
+
hasValue: ue,
|
|
2259
2288
|
helper: f,
|
|
2260
|
-
id:
|
|
2261
|
-
value:
|
|
2262
|
-
showGrip:
|
|
2263
|
-
resize:
|
|
2264
|
-
...
|
|
2289
|
+
id: de,
|
|
2290
|
+
value: le,
|
|
2291
|
+
showGrip: ae,
|
|
2292
|
+
resize: Q,
|
|
2293
|
+
...J,
|
|
2265
2294
|
children: /* @__PURE__ */ o.jsx(
|
|
2266
2295
|
St,
|
|
2267
2296
|
{
|
|
2268
2297
|
component: t,
|
|
2269
2298
|
size: r,
|
|
2270
|
-
value:
|
|
2299
|
+
value: le,
|
|
2271
2300
|
placeholder: c,
|
|
2272
2301
|
disabled: i,
|
|
2273
2302
|
loading: n,
|
|
2274
|
-
onFocus:
|
|
2275
|
-
onBlur:
|
|
2276
|
-
onChange:
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
2303
|
+
onFocus: xe,
|
|
2304
|
+
onBlur: Ve,
|
|
2305
|
+
onChange: He,
|
|
2306
|
+
onKeyDown: E,
|
|
2307
|
+
onKeyUp: Oe,
|
|
2308
|
+
maxLength: O,
|
|
2309
|
+
truncate: H,
|
|
2310
|
+
"data-empty": !ue,
|
|
2311
|
+
shouldShowFloatingLabelClass: _e,
|
|
2312
|
+
style: t === "textarea" ? N : void 0,
|
|
2283
2313
|
"aria-invalid": !!s,
|
|
2284
|
-
"aria-errormessage": s ? `${
|
|
2285
|
-
id:
|
|
2286
|
-
resize:
|
|
2287
|
-
...
|
|
2314
|
+
"aria-errormessage": s ? `${de}-error` : void 0,
|
|
2315
|
+
id: de,
|
|
2316
|
+
resize: Q,
|
|
2317
|
+
...m
|
|
2288
2318
|
}
|
|
2289
2319
|
)
|
|
2290
2320
|
}
|
|
2291
2321
|
);
|
|
2292
2322
|
}
|
|
2293
|
-
),
|
|
2323
|
+
), X = {
|
|
2294
2324
|
SMALL: "small",
|
|
2295
2325
|
MEDIUM: "medium",
|
|
2296
2326
|
LARGE: "large"
|
|
2297
2327
|
}, pn = (t, r, a, s) => {
|
|
2298
2328
|
switch (t) {
|
|
2299
|
-
case
|
|
2329
|
+
case X.LARGE:
|
|
2300
2330
|
return r && a ? "8px 16px 8px 16px" : "16px 16px 16px 16px";
|
|
2301
|
-
case
|
|
2331
|
+
case X.MEDIUM:
|
|
2302
2332
|
return s ? "12px 12px 12px 12px" : "12px 12px 12px 16px";
|
|
2303
|
-
case
|
|
2333
|
+
case X.SMALL:
|
|
2304
2334
|
return "10px 12px 10px 12px";
|
|
2305
2335
|
default:
|
|
2306
2336
|
return "12px 16px 12px 16px";
|
|
2307
2337
|
}
|
|
2308
|
-
},
|
|
2338
|
+
}, fn = (t) => {
|
|
2309
2339
|
switch (t) {
|
|
2310
|
-
case
|
|
2340
|
+
case X.LARGE:
|
|
2311
2341
|
return "56px";
|
|
2312
|
-
case
|
|
2342
|
+
case X.MEDIUM:
|
|
2313
2343
|
return "48px";
|
|
2314
|
-
case
|
|
2344
|
+
case X.SMALL:
|
|
2315
2345
|
return "40px";
|
|
2316
2346
|
default:
|
|
2317
2347
|
return "48px";
|
|
2318
2348
|
}
|
|
2319
|
-
},
|
|
2349
|
+
}, gn = (t) => {
|
|
2320
2350
|
switch (t) {
|
|
2321
|
-
case
|
|
2351
|
+
case X.SMALL:
|
|
2322
2352
|
return 8;
|
|
2323
2353
|
// 8px для small
|
|
2324
|
-
case
|
|
2325
|
-
case
|
|
2354
|
+
case X.MEDIUM:
|
|
2355
|
+
case X.LARGE:
|
|
2326
2356
|
return 12;
|
|
2327
2357
|
// 12px для medium и large
|
|
2328
2358
|
default:
|
|
2329
2359
|
return 12;
|
|
2330
2360
|
}
|
|
2331
|
-
},
|
|
2361
|
+
}, hn = (t, r, a) => ({
|
|
2332
2362
|
wrapperStyles: {
|
|
2333
2363
|
height: t,
|
|
2334
2364
|
minHeight: t,
|
|
@@ -2346,7 +2376,7 @@ const St = Object.assign(un, {
|
|
|
2346
2376
|
suffixStyles: {
|
|
2347
2377
|
right: `${a}px`
|
|
2348
2378
|
}
|
|
2349
|
-
}),
|
|
2379
|
+
}), bn = (t, r, a) => ({
|
|
2350
2380
|
wrapperStyles: {
|
|
2351
2381
|
minHeight: t,
|
|
2352
2382
|
maxHeight: t,
|
|
@@ -2362,7 +2392,7 @@ const St = Object.assign(un, {
|
|
|
2362
2392
|
suffixStyles: {
|
|
2363
2393
|
right: `${a}px`
|
|
2364
2394
|
}
|
|
2365
|
-
}),
|
|
2395
|
+
}), yn = (t, r, a) => ({
|
|
2366
2396
|
wrapperStyles: {
|
|
2367
2397
|
minHeight: t,
|
|
2368
2398
|
maxHeight: t,
|
|
@@ -2378,15 +2408,15 @@ const St = Object.assign(un, {
|
|
|
2378
2408
|
suffixStyles: {
|
|
2379
2409
|
right: `${a}px`
|
|
2380
2410
|
}
|
|
2381
|
-
}),
|
|
2382
|
-
const i =
|
|
2411
|
+
}), mn = (t, r, a, s) => {
|
|
2412
|
+
const i = fn(t), n = pn(t, r, a, s), c = gn(t);
|
|
2383
2413
|
switch (t) {
|
|
2384
|
-
case
|
|
2385
|
-
return gn(i, n, c);
|
|
2386
|
-
case J.MEDIUM:
|
|
2414
|
+
case X.LARGE:
|
|
2387
2415
|
return hn(i, n, c);
|
|
2388
|
-
case
|
|
2416
|
+
case X.MEDIUM:
|
|
2389
2417
|
return bn(i, n, c);
|
|
2418
|
+
case X.SMALL:
|
|
2419
|
+
return yn(i, n, c);
|
|
2390
2420
|
default:
|
|
2391
2421
|
return {
|
|
2392
2422
|
wrapperStyles: {},
|
|
@@ -2395,7 +2425,7 @@ const St = Object.assign(un, {
|
|
|
2395
2425
|
suffixStyles: {}
|
|
2396
2426
|
};
|
|
2397
2427
|
}
|
|
2398
|
-
},
|
|
2428
|
+
}, Pn = te(
|
|
2399
2429
|
({
|
|
2400
2430
|
value: t = "",
|
|
2401
2431
|
onChange: r,
|
|
@@ -2405,80 +2435,83 @@ const St = Object.assign(un, {
|
|
|
2405
2435
|
minLength: n,
|
|
2406
2436
|
autoComplete: c,
|
|
2407
2437
|
autoFocus: p,
|
|
2408
|
-
size: d =
|
|
2438
|
+
size: d = X.MEDIUM,
|
|
2409
2439
|
inputProps: f,
|
|
2410
2440
|
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
|
-
|
|
2441
|
+
disabled: h,
|
|
2442
|
+
loading: b,
|
|
2443
|
+
helper: y,
|
|
2444
|
+
prefix: v,
|
|
2445
|
+
suffix: E,
|
|
2446
|
+
clearable: w = !1,
|
|
2447
|
+
id: C,
|
|
2448
|
+
showLabel: g = !0,
|
|
2449
|
+
onFocus: R,
|
|
2450
|
+
onBlur: D,
|
|
2451
|
+
onSuffixClick: k,
|
|
2452
|
+
onClear: $,
|
|
2453
|
+
className: A,
|
|
2454
|
+
truncate: N = !0,
|
|
2455
|
+
hint: U,
|
|
2456
|
+
showHint: q = !1,
|
|
2457
|
+
showHintOnEmpty: W = !1,
|
|
2458
|
+
wrapperProps: O,
|
|
2459
|
+
labelProps: m,
|
|
2460
|
+
helperProps: j,
|
|
2461
|
+
...F
|
|
2462
|
+
}, G) => {
|
|
2463
|
+
const H = (t || "").length > 0, Q = d === X.LARGE, ae = !!v, J = Q && g && !v, re = w && H && !(h || b), se = () => {
|
|
2464
|
+
r == null || r(""), $ == null || $();
|
|
2465
|
+
}, de = re ? /* @__PURE__ */ o.jsx(
|
|
2434
2466
|
kt,
|
|
2435
2467
|
{
|
|
2436
|
-
size: d ===
|
|
2468
|
+
size: d === X.SMALL ? "xs" : "sm",
|
|
2437
2469
|
color: "var(--icon-secondary)",
|
|
2438
|
-
onClick:
|
|
2470
|
+
onClick: se,
|
|
2439
2471
|
style: { cursor: "pointer" },
|
|
2440
2472
|
"data-testid": "x-icon"
|
|
2441
2473
|
}
|
|
2442
|
-
) :
|
|
2474
|
+
) : E, ve = {
|
|
2443
2475
|
type: a,
|
|
2444
2476
|
minLength: n,
|
|
2445
2477
|
autoComplete: c,
|
|
2446
2478
|
autoFocus: p,
|
|
2447
2479
|
...f
|
|
2448
|
-
},
|
|
2480
|
+
}, ie = mn(d, J, H, ae);
|
|
2449
2481
|
return /* @__PURE__ */ o.jsx(
|
|
2450
2482
|
At,
|
|
2451
2483
|
{
|
|
2452
2484
|
size: d,
|
|
2453
2485
|
error: _,
|
|
2454
|
-
disabled:
|
|
2455
|
-
loading:
|
|
2456
|
-
helper:
|
|
2457
|
-
prefix:
|
|
2458
|
-
suffix:
|
|
2459
|
-
id:
|
|
2460
|
-
showLabel:
|
|
2461
|
-
onFocus:
|
|
2462
|
-
onBlur:
|
|
2486
|
+
disabled: h || b,
|
|
2487
|
+
loading: b,
|
|
2488
|
+
helper: y,
|
|
2489
|
+
prefix: v,
|
|
2490
|
+
suffix: de,
|
|
2491
|
+
id: C,
|
|
2492
|
+
showLabel: J,
|
|
2493
|
+
onFocus: R,
|
|
2494
|
+
onBlur: D,
|
|
2495
|
+
onSuffixClick: k,
|
|
2463
2496
|
onChange: r,
|
|
2464
|
-
value: t
|
|
2497
|
+
value: t,
|
|
2465
2498
|
placeholder: s,
|
|
2466
|
-
className:
|
|
2467
|
-
wrapperStyles:
|
|
2468
|
-
floatingLabelStyles:
|
|
2469
|
-
prefixStyles:
|
|
2470
|
-
suffixStyles:
|
|
2471
|
-
wrapperProps:
|
|
2472
|
-
labelProps:
|
|
2473
|
-
helperProps:
|
|
2499
|
+
className: A,
|
|
2500
|
+
wrapperStyles: ie.wrapperStyles,
|
|
2501
|
+
floatingLabelStyles: ie.floatingLabelStyles,
|
|
2502
|
+
prefixStyles: ie.prefixStyles,
|
|
2503
|
+
suffixStyles: ie.suffixStyles,
|
|
2504
|
+
wrapperProps: O,
|
|
2505
|
+
labelProps: m,
|
|
2506
|
+
helperProps: j,
|
|
2474
2507
|
showLimit: !1,
|
|
2475
2508
|
maxLength: i,
|
|
2476
|
-
inputProps:
|
|
2477
|
-
hint:
|
|
2478
|
-
showHint:
|
|
2479
|
-
showHintOnEmpty:
|
|
2480
|
-
truncate:
|
|
2481
|
-
...
|
|
2509
|
+
inputProps: ve,
|
|
2510
|
+
hint: U,
|
|
2511
|
+
showHint: q,
|
|
2512
|
+
showHintOnEmpty: W,
|
|
2513
|
+
truncate: N,
|
|
2514
|
+
...F
|
|
2482
2515
|
}
|
|
2483
2516
|
);
|
|
2484
2517
|
}
|
|
@@ -2488,47 +2521,47 @@ const St = Object.assign(un, {
|
|
|
2488
2521
|
}, ze = {
|
|
2489
2522
|
SMALL: "12px",
|
|
2490
2523
|
MEDIUM: "16px"
|
|
2491
|
-
},
|
|
2524
|
+
}, vn = {
|
|
2492
2525
|
SMALL: "xs",
|
|
2493
2526
|
MEDIUM: "sm"
|
|
2494
2527
|
}, Fe = {
|
|
2495
2528
|
FILL: "fill",
|
|
2496
2529
|
FIXED: "fixed"
|
|
2497
|
-
},
|
|
2530
|
+
}, Xe = {
|
|
2498
2531
|
SMALL: "112px",
|
|
2499
2532
|
MEDIUM: "56px"
|
|
2500
2533
|
}, $e = {
|
|
2501
2534
|
SMALL: "48px",
|
|
2502
2535
|
MEDIUM: "22px"
|
|
2503
|
-
},
|
|
2536
|
+
}, ge = {
|
|
2504
2537
|
SMALL: "12px 12px 12px 12px",
|
|
2505
2538
|
MEDIUM: "16px 16px 16px 16px",
|
|
2506
2539
|
MEDIUM_WITH_PREFIX: "12px 16px 12px 16px",
|
|
2507
2540
|
MEDIUM_FLOATING_LABEL: "8px 16px 8px 16px"
|
|
2508
|
-
},
|
|
2541
|
+
}, be = {
|
|
2509
2542
|
SMALL: 48,
|
|
2510
2543
|
MEDIUM: 56,
|
|
2511
2544
|
LARGE: 112
|
|
2512
|
-
},
|
|
2545
|
+
}, xn = (t, r) => {
|
|
2513
2546
|
if (t === oe.SMALL)
|
|
2514
|
-
return
|
|
2547
|
+
return Xe.SMALL;
|
|
2515
2548
|
if (r)
|
|
2516
2549
|
return `${r}px`;
|
|
2517
2550
|
switch (t) {
|
|
2518
2551
|
case oe.MEDIUM:
|
|
2519
|
-
return
|
|
2552
|
+
return Xe.MEDIUM;
|
|
2520
2553
|
default:
|
|
2521
|
-
return
|
|
2554
|
+
return Xe.MEDIUM;
|
|
2522
2555
|
}
|
|
2523
|
-
},
|
|
2556
|
+
}, Cn = (t, r) => {
|
|
2524
2557
|
if (t === oe.SMALL)
|
|
2525
2558
|
return $e.SMALL;
|
|
2526
2559
|
if (r)
|
|
2527
2560
|
switch (r) {
|
|
2528
|
-
case
|
|
2529
|
-
case
|
|
2561
|
+
case be.SMALL:
|
|
2562
|
+
case be.MEDIUM:
|
|
2530
2563
|
return $e.MEDIUM;
|
|
2531
|
-
case
|
|
2564
|
+
case be.LARGE:
|
|
2532
2565
|
return $e.SMALL;
|
|
2533
2566
|
default:
|
|
2534
2567
|
return $e.MEDIUM;
|
|
@@ -2539,43 +2572,43 @@ const St = Object.assign(un, {
|
|
|
2539
2572
|
default:
|
|
2540
2573
|
return $e.MEDIUM;
|
|
2541
2574
|
}
|
|
2542
|
-
},
|
|
2575
|
+
}, wn = (t, r, a) => {
|
|
2543
2576
|
if (t === oe.SMALL)
|
|
2544
|
-
return
|
|
2577
|
+
return ge.SMALL;
|
|
2545
2578
|
if (r)
|
|
2546
2579
|
switch (r) {
|
|
2547
|
-
case
|
|
2548
|
-
return
|
|
2549
|
-
case
|
|
2550
|
-
return a ?
|
|
2551
|
-
case
|
|
2552
|
-
return
|
|
2580
|
+
case be.SMALL:
|
|
2581
|
+
return ge.MEDIUM_WITH_PREFIX;
|
|
2582
|
+
case be.MEDIUM:
|
|
2583
|
+
return a ? ge.MEDIUM_FLOATING_LABEL : ge.MEDIUM;
|
|
2584
|
+
case be.LARGE:
|
|
2585
|
+
return ge.MEDIUM;
|
|
2553
2586
|
default:
|
|
2554
|
-
return
|
|
2587
|
+
return ge.MEDIUM;
|
|
2555
2588
|
}
|
|
2556
2589
|
switch (t) {
|
|
2557
2590
|
case oe.MEDIUM:
|
|
2558
|
-
return a ?
|
|
2591
|
+
return a ? ge.MEDIUM_FLOATING_LABEL : ge.MEDIUM;
|
|
2559
2592
|
default:
|
|
2560
|
-
return
|
|
2593
|
+
return ge.MEDIUM;
|
|
2561
2594
|
}
|
|
2562
|
-
},
|
|
2595
|
+
}, Sn = (t, r) => {
|
|
2563
2596
|
if (t === oe.SMALL)
|
|
2564
2597
|
return "small";
|
|
2565
2598
|
if (r)
|
|
2566
2599
|
switch (r) {
|
|
2567
|
-
case
|
|
2600
|
+
case be.SMALL:
|
|
2568
2601
|
return "small";
|
|
2569
|
-
case
|
|
2602
|
+
case be.MEDIUM:
|
|
2570
2603
|
return "medium";
|
|
2571
|
-
case
|
|
2604
|
+
case be.LARGE:
|
|
2572
2605
|
return "medium";
|
|
2573
2606
|
default:
|
|
2574
2607
|
return "medium";
|
|
2575
2608
|
}
|
|
2576
2609
|
return t;
|
|
2577
|
-
},
|
|
2578
|
-
const i =
|
|
2610
|
+
}, En = (t) => vn[t.toUpperCase()], Ln = (t) => ze[t.toUpperCase()], Mn = (t, r, a, s) => {
|
|
2611
|
+
const i = xn(t, r), n = Cn(t, r), c = wn(t, r, a);
|
|
2579
2612
|
return {
|
|
2580
2613
|
wrapperStyles: {
|
|
2581
2614
|
minHeight: i,
|
|
@@ -2592,7 +2625,7 @@ const St = Object.assign(un, {
|
|
|
2592
2625
|
top: r === 112 && a && t === oe.MEDIUM ? ze.MEDIUM : void 0
|
|
2593
2626
|
},
|
|
2594
2627
|
suffixStyles: {
|
|
2595
|
-
right:
|
|
2628
|
+
right: Ln(t)
|
|
2596
2629
|
},
|
|
2597
2630
|
textareaStyles: {
|
|
2598
2631
|
minHeight: n,
|
|
@@ -2602,7 +2635,7 @@ const St = Object.assign(un, {
|
|
|
2602
2635
|
...s === Fe.FIXED && r && { height: n }
|
|
2603
2636
|
}
|
|
2604
2637
|
};
|
|
2605
|
-
},
|
|
2638
|
+
}, zn = te(
|
|
2606
2639
|
({
|
|
2607
2640
|
value: t = "",
|
|
2608
2641
|
onChange: r,
|
|
@@ -2615,83 +2648,86 @@ const St = Object.assign(un, {
|
|
|
2615
2648
|
error: d,
|
|
2616
2649
|
disabled: f,
|
|
2617
2650
|
loading: _,
|
|
2618
|
-
helper:
|
|
2619
|
-
suffix:
|
|
2620
|
-
clearable:
|
|
2621
|
-
id:
|
|
2622
|
-
showLabel:
|
|
2623
|
-
onFocus:
|
|
2624
|
-
onBlur:
|
|
2625
|
-
|
|
2626
|
-
|
|
2627
|
-
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
|
|
2631
|
-
|
|
2632
|
-
|
|
2633
|
-
|
|
2634
|
-
|
|
2635
|
-
|
|
2636
|
-
|
|
2637
|
-
|
|
2638
|
-
|
|
2651
|
+
helper: h,
|
|
2652
|
+
suffix: b,
|
|
2653
|
+
clearable: y = !1,
|
|
2654
|
+
id: v,
|
|
2655
|
+
showLabel: E = !0,
|
|
2656
|
+
onFocus: w,
|
|
2657
|
+
onBlur: C,
|
|
2658
|
+
onClear: g,
|
|
2659
|
+
onKeyDown: R,
|
|
2660
|
+
className: D,
|
|
2661
|
+
rows: k = 1,
|
|
2662
|
+
showLimit: $ = !1,
|
|
2663
|
+
wrapperProps: A,
|
|
2664
|
+
labelProps: N,
|
|
2665
|
+
helperProps: U,
|
|
2666
|
+
showGrip: q,
|
|
2667
|
+
minHeight: W,
|
|
2668
|
+
resize: O,
|
|
2669
|
+
...m
|
|
2670
|
+
}, j) => {
|
|
2671
|
+
const F = (t || "").length > 0, G = E && !!a && (c === oe.SMALL || W !== 48), H = y && F && !(f || _), Q = () => {
|
|
2672
|
+
r == null || r(""), g == null || g();
|
|
2673
|
+
}, ae = H ? /* @__PURE__ */ o.jsx(
|
|
2639
2674
|
kt,
|
|
2640
2675
|
{
|
|
2641
|
-
size:
|
|
2676
|
+
size: En(c),
|
|
2642
2677
|
color: "var(--icon-secondary)",
|
|
2643
|
-
onClick:
|
|
2678
|
+
onClick: Q,
|
|
2644
2679
|
style: { cursor: "pointer" },
|
|
2645
2680
|
"data-testid": "x-icon"
|
|
2646
2681
|
}
|
|
2647
|
-
) :
|
|
2648
|
-
rows:
|
|
2682
|
+
) : b, J = Mn(c, W, G && F, O), re = Sn(c, W), se = {
|
|
2683
|
+
rows: k,
|
|
2649
2684
|
minLength: i,
|
|
2650
2685
|
autoFocus: n,
|
|
2651
|
-
resize:
|
|
2686
|
+
resize: O,
|
|
2652
2687
|
...p
|
|
2653
2688
|
};
|
|
2654
2689
|
return /* @__PURE__ */ o.jsx(
|
|
2655
2690
|
At,
|
|
2656
2691
|
{
|
|
2657
|
-
ref:
|
|
2692
|
+
ref: j,
|
|
2658
2693
|
component: "textarea",
|
|
2659
|
-
size:
|
|
2694
|
+
size: re,
|
|
2660
2695
|
error: d,
|
|
2661
2696
|
disabled: f || _,
|
|
2662
2697
|
loading: _,
|
|
2663
|
-
helper:
|
|
2664
|
-
suffix:
|
|
2665
|
-
id:
|
|
2666
|
-
showLabel:
|
|
2667
|
-
onFocus:
|
|
2668
|
-
onBlur:
|
|
2698
|
+
helper: h,
|
|
2699
|
+
suffix: ae,
|
|
2700
|
+
id: v,
|
|
2701
|
+
showLabel: G,
|
|
2702
|
+
onFocus: w,
|
|
2703
|
+
onBlur: C,
|
|
2704
|
+
onKeyDown: R,
|
|
2669
2705
|
onChange: r,
|
|
2670
2706
|
value: t || "",
|
|
2671
2707
|
placeholder: a,
|
|
2672
|
-
className:
|
|
2673
|
-
"data-floating-label":
|
|
2674
|
-
wrapperStyles:
|
|
2675
|
-
floatingLabelStyles:
|
|
2676
|
-
suffixStyles:
|
|
2677
|
-
textareaStyles:
|
|
2678
|
-
wrapperProps:
|
|
2679
|
-
labelProps:
|
|
2680
|
-
helperProps:
|
|
2681
|
-
showLimit:
|
|
2708
|
+
className: D,
|
|
2709
|
+
"data-floating-label": G,
|
|
2710
|
+
wrapperStyles: J.wrapperStyles,
|
|
2711
|
+
floatingLabelStyles: J.floatingLabelStyles,
|
|
2712
|
+
suffixStyles: J.suffixStyles,
|
|
2713
|
+
textareaStyles: J.textareaStyles,
|
|
2714
|
+
wrapperProps: A,
|
|
2715
|
+
labelProps: N,
|
|
2716
|
+
helperProps: U,
|
|
2717
|
+
showLimit: $ && (W === 112 || c === oe.SMALL),
|
|
2682
2718
|
maxLength: s,
|
|
2683
|
-
inputProps:
|
|
2684
|
-
resize:
|
|
2685
|
-
showGrip:
|
|
2686
|
-
...
|
|
2719
|
+
inputProps: se,
|
|
2720
|
+
resize: O,
|
|
2721
|
+
showGrip: q,
|
|
2722
|
+
...m
|
|
2687
2723
|
}
|
|
2688
2724
|
);
|
|
2689
2725
|
}
|
|
2690
|
-
),
|
|
2691
|
-
helper:
|
|
2726
|
+
), $n = "_helper_1vhgl_16", Qe = {
|
|
2727
|
+
helper: $n,
|
|
2692
2728
|
"helper--error": "_helper--error_1vhgl_27",
|
|
2693
2729
|
"helper--disabled": "_helper--disabled_1vhgl_32"
|
|
2694
|
-
},
|
|
2730
|
+
}, Wn = ({
|
|
2695
2731
|
title: t,
|
|
2696
2732
|
error: r,
|
|
2697
2733
|
className: a = "",
|
|
@@ -2701,10 +2737,10 @@ const St = Object.assign(un, {
|
|
|
2701
2737
|
"aria-label": c,
|
|
2702
2738
|
"aria-describedby": p
|
|
2703
2739
|
}) => {
|
|
2704
|
-
const d = !!r, f =
|
|
2705
|
-
|
|
2706
|
-
d &&
|
|
2707
|
-
i &&
|
|
2740
|
+
const d = !!r, f = B(
|
|
2741
|
+
Qe.helper,
|
|
2742
|
+
d && Qe["helper--error"],
|
|
2743
|
+
i && Qe["helper--disabled"],
|
|
2708
2744
|
a
|
|
2709
2745
|
), _ = i ? t : r || t;
|
|
2710
2746
|
return /* @__PURE__ */ o.jsx(
|
|
@@ -2720,20 +2756,20 @@ const St = Object.assign(un, {
|
|
|
2720
2756
|
);
|
|
2721
2757
|
};
|
|
2722
2758
|
export {
|
|
2723
|
-
|
|
2724
|
-
|
|
2725
|
-
|
|
2726
|
-
|
|
2727
|
-
|
|
2728
|
-
|
|
2729
|
-
|
|
2730
|
-
|
|
2731
|
-
|
|
2732
|
-
|
|
2733
|
-
|
|
2734
|
-
|
|
2735
|
-
|
|
2736
|
-
|
|
2737
|
-
|
|
2738
|
-
|
|
2759
|
+
kn as Avatar,
|
|
2760
|
+
Tn as Badge,
|
|
2761
|
+
Rn as Button,
|
|
2762
|
+
Bn as Checkbox,
|
|
2763
|
+
Dn as ConfigProvider,
|
|
2764
|
+
Wn as Helper,
|
|
2765
|
+
An as Image,
|
|
2766
|
+
Hr as Loader,
|
|
2767
|
+
Un as Tag,
|
|
2768
|
+
zn as TextArea,
|
|
2769
|
+
Pn as TextInput,
|
|
2770
|
+
Fn as Typography,
|
|
2771
|
+
Gr as enUS,
|
|
2772
|
+
On as ruRU,
|
|
2773
|
+
Zr as useConfig,
|
|
2774
|
+
Nn as useLocale
|
|
2739
2775
|
};
|