skillgrid 0.0.24-dev-38682-image.1169070 → 0.0.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Image/Image.type.d.ts +0 -4
- 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 +914 -888
- 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 Ne, useEffect as Ee, useRef as ze, useCallback as Se, Fragment as Mt, createContext as ra, useContext as sa, useLayoutEffect as na, useImperativeHandle as oa, useId as $t } from "react";
|
|
3
|
+
import { clsx as V } from "clsx";
|
|
4
4
|
import './index.css';function ia(t) {
|
|
5
5
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
6
6
|
}
|
|
7
|
-
var
|
|
7
|
+
var Ue = { exports: {} }, Re = {};
|
|
8
8
|
/**
|
|
9
9
|
* @license React
|
|
10
10
|
* react-jsx-runtime.production.min.js
|
|
@@ -16,19 +16,19 @@ var Be = { exports: {} }, ke = {};
|
|
|
16
16
|
*/
|
|
17
17
|
var ft;
|
|
18
18
|
function la() {
|
|
19
|
-
if (ft) return
|
|
19
|
+
if (ft) return Re;
|
|
20
20
|
ft = 1;
|
|
21
21
|
var t = Lt, r = Symbol.for("react.element"), a = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, i = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, n = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
22
22
|
function c(_, d, f) {
|
|
23
|
-
var p,
|
|
24
|
-
f !== void 0 && (
|
|
25
|
-
for (p in d) s.call(d, p) && !n.hasOwnProperty(p) && (
|
|
26
|
-
if (_ && _.defaultProps) for (p in d = _.defaultProps, d)
|
|
27
|
-
return { $$typeof: r, type: _, key:
|
|
23
|
+
var p, h = {}, b = null, y = null;
|
|
24
|
+
f !== void 0 && (b = "" + f), d.key !== void 0 && (b = "" + d.key), d.ref !== void 0 && (y = d.ref);
|
|
25
|
+
for (p in d) s.call(d, p) && !n.hasOwnProperty(p) && (h[p] = d[p]);
|
|
26
|
+
if (_ && _.defaultProps) for (p in d = _.defaultProps, d) h[p] === void 0 && (h[p] = d[p]);
|
|
27
|
+
return { $$typeof: r, type: _, key: b, ref: y, props: h, _owner: i.current };
|
|
28
28
|
}
|
|
29
|
-
return
|
|
29
|
+
return Re.Fragment = a, Re.jsx = c, Re.jsxs = c, Re;
|
|
30
30
|
}
|
|
31
|
-
var
|
|
31
|
+
var ke = {};
|
|
32
32
|
/**
|
|
33
33
|
* @license React
|
|
34
34
|
* react-jsx-runtime.development.js
|
|
@@ -41,54 +41,54 @@ var Te = {};
|
|
|
41
41
|
var gt;
|
|
42
42
|
function ca() {
|
|
43
43
|
return gt || (gt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
44
|
-
var t = Lt, r = Symbol.for("react.element"), a = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), n = Symbol.for("react.profiler"), c = Symbol.for("react.provider"), _ = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), p = 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"), _ = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), b = Symbol.for("react.lazy"), y = Symbol.for("react.offscreen"), x = Symbol.iterator, M = "@@iterator";
|
|
45
|
+
function S(e) {
|
|
46
46
|
if (e === null || typeof e != "object")
|
|
47
47
|
return null;
|
|
48
|
-
var l =
|
|
48
|
+
var l = x && e[x] || e[M];
|
|
49
49
|
return typeof l == "function" ? l : null;
|
|
50
50
|
}
|
|
51
|
-
var
|
|
52
|
-
function
|
|
51
|
+
var C = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
52
|
+
function g(e) {
|
|
53
53
|
{
|
|
54
54
|
for (var l = arguments.length, u = new Array(l > 1 ? l - 1 : 0), v = 1; v < l; v++)
|
|
55
55
|
u[v - 1] = arguments[v];
|
|
56
|
-
|
|
56
|
+
$("error", e, u);
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
|
-
function
|
|
59
|
+
function $(e, l, u) {
|
|
60
60
|
{
|
|
61
|
-
var v =
|
|
62
|
-
|
|
63
|
-
var
|
|
64
|
-
return String(
|
|
61
|
+
var v = C.ReactDebugCurrentFrame, I = v.getStackAddendum();
|
|
62
|
+
I !== "" && (l += "%s", u = u.concat([I]));
|
|
63
|
+
var R = u.map(function(E) {
|
|
64
|
+
return String(E);
|
|
65
65
|
});
|
|
66
|
-
|
|
66
|
+
R.unshift("Warning: " + l), Function.prototype.apply.call(console[e], console, R);
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
|
-
var
|
|
70
|
-
|
|
71
|
-
function
|
|
72
|
-
return !!(typeof e == "string" || typeof e == "function" || e === s || e === n ||
|
|
69
|
+
var k = !1, D = !1, T = !1, A = !1, N = !1, U;
|
|
70
|
+
U = Symbol.for("react.module.reference");
|
|
71
|
+
function q(e) {
|
|
72
|
+
return !!(typeof e == "string" || typeof e == "function" || e === s || e === n || N || e === i || e === f || e === p || A || e === y || k || D || T || typeof e == "object" && e !== null && (e.$$typeof === b || e.$$typeof === h || e.$$typeof === c || e.$$typeof === _ || e.$$typeof === d || // This needs to include all possible module reference object
|
|
73
73
|
// types supported by any Flight configuration anywhere since
|
|
74
74
|
// we don't know which Flight build this will end up being used
|
|
75
75
|
// with.
|
|
76
|
-
e.$$typeof ===
|
|
76
|
+
e.$$typeof === U || e.getModuleId !== void 0));
|
|
77
77
|
}
|
|
78
|
-
function
|
|
78
|
+
function z(e, l, u) {
|
|
79
79
|
var v = e.displayName;
|
|
80
80
|
if (v)
|
|
81
81
|
return v;
|
|
82
|
-
var
|
|
83
|
-
return
|
|
82
|
+
var I = l.displayName || l.name || "";
|
|
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 _:
|
|
112
112
|
var l = e;
|
|
113
|
-
return
|
|
113
|
+
return O(l) + ".Consumer";
|
|
114
114
|
case c:
|
|
115
115
|
var u = e;
|
|
116
|
-
return
|
|
116
|
+
return O(u._context) + ".Provider";
|
|
117
117
|
case d:
|
|
118
|
-
return
|
|
119
|
-
case
|
|
118
|
+
return z(e, e.render, "ForwardRef");
|
|
119
|
+
case h:
|
|
120
120
|
var v = e.displayName || null;
|
|
121
|
-
return v !== null ? v :
|
|
122
|
-
case
|
|
123
|
-
var
|
|
121
|
+
return v !== null ? v : m(e.type) || "Memo";
|
|
122
|
+
case b: {
|
|
123
|
+
var I = e, R = I._payload, E = I._init;
|
|
124
124
|
try {
|
|
125
|
-
return
|
|
125
|
+
return m(E(R));
|
|
126
126
|
} catch {
|
|
127
127
|
return null;
|
|
128
128
|
}
|
|
@@ -130,18 +130,18 @@ function ca() {
|
|
|
130
130
|
}
|
|
131
131
|
return null;
|
|
132
132
|
}
|
|
133
|
-
var
|
|
134
|
-
function
|
|
133
|
+
var j = Object.assign, B = 0, G, H, Q, ae, J, re, se;
|
|
134
|
+
function de() {
|
|
135
135
|
}
|
|
136
|
-
|
|
137
|
-
function
|
|
136
|
+
de.__reactDisabledLog = !0;
|
|
137
|
+
function ve() {
|
|
138
138
|
{
|
|
139
139
|
if (B === 0) {
|
|
140
|
-
|
|
140
|
+
G = console.log, H = console.info, Q = console.warn, ae = console.error, J = console.group, re = console.groupCollapsed, se = console.groupEnd;
|
|
141
141
|
var e = {
|
|
142
142
|
configurable: !0,
|
|
143
143
|
enumerable: !0,
|
|
144
|
-
value:
|
|
144
|
+
value: de,
|
|
145
145
|
writable: !0
|
|
146
146
|
};
|
|
147
147
|
Object.defineProperties(console, {
|
|
@@ -157,7 +157,7 @@ function ca() {
|
|
|
157
157
|
B++;
|
|
158
158
|
}
|
|
159
159
|
}
|
|
160
|
-
function
|
|
160
|
+
function ie() {
|
|
161
161
|
{
|
|
162
162
|
if (B--, B === 0) {
|
|
163
163
|
var e = {
|
|
@@ -166,187 +166,187 @@ function ca() {
|
|
|
166
166
|
writable: !0
|
|
167
167
|
};
|
|
168
168
|
Object.defineProperties(console, {
|
|
169
|
-
log:
|
|
170
|
-
value: V
|
|
171
|
-
}),
|
|
172
|
-
info: $({}, e, {
|
|
169
|
+
log: j({}, e, {
|
|
173
170
|
value: G
|
|
174
171
|
}),
|
|
175
|
-
|
|
176
|
-
value:
|
|
172
|
+
info: j({}, e, {
|
|
173
|
+
value: H
|
|
177
174
|
}),
|
|
178
|
-
|
|
179
|
-
value:
|
|
175
|
+
warn: j({}, e, {
|
|
176
|
+
value: Q
|
|
180
177
|
}),
|
|
181
|
-
|
|
178
|
+
error: j({}, e, {
|
|
182
179
|
value: ae
|
|
183
180
|
}),
|
|
184
|
-
|
|
181
|
+
group: j({}, e, {
|
|
182
|
+
value: J
|
|
183
|
+
}),
|
|
184
|
+
groupCollapsed: j({}, e, {
|
|
185
185
|
value: re
|
|
186
186
|
}),
|
|
187
|
-
groupEnd:
|
|
188
|
-
value:
|
|
187
|
+
groupEnd: j({}, e, {
|
|
188
|
+
value: se
|
|
189
189
|
})
|
|
190
190
|
});
|
|
191
191
|
}
|
|
192
|
-
B < 0 &&
|
|
192
|
+
B < 0 && g("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
193
193
|
}
|
|
194
194
|
}
|
|
195
|
-
var
|
|
196
|
-
function
|
|
195
|
+
var ye = C.ReactCurrentDispatcher, ue;
|
|
196
|
+
function le(e, l, u) {
|
|
197
197
|
{
|
|
198
198
|
if (ue === void 0)
|
|
199
199
|
try {
|
|
200
200
|
throw Error();
|
|
201
|
-
} catch (
|
|
202
|
-
var v =
|
|
201
|
+
} catch (I) {
|
|
202
|
+
var v = I.stack.trim().match(/\n( *(at )?)/);
|
|
203
203
|
ue = v && v[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 De(e, l) {
|
|
215
|
+
if (!e || me)
|
|
216
216
|
return "";
|
|
217
217
|
{
|
|
218
|
-
var u =
|
|
218
|
+
var u = _e.get(e);
|
|
219
219
|
if (u !== void 0)
|
|
220
220
|
return u;
|
|
221
221
|
}
|
|
222
222
|
var v;
|
|
223
|
-
|
|
224
|
-
var
|
|
223
|
+
me = !0;
|
|
224
|
+
var I = Error.prepareStackTrace;
|
|
225
225
|
Error.prepareStackTrace = void 0;
|
|
226
|
-
var
|
|
227
|
-
|
|
226
|
+
var R;
|
|
227
|
+
R = ye.current, ye.current = null, ve();
|
|
228
228
|
try {
|
|
229
229
|
if (l) {
|
|
230
|
-
var
|
|
230
|
+
var E = function() {
|
|
231
231
|
throw Error();
|
|
232
232
|
};
|
|
233
|
-
if (Object.defineProperty(
|
|
233
|
+
if (Object.defineProperty(E.prototype, "props", {
|
|
234
234
|
set: function() {
|
|
235
235
|
throw Error();
|
|
236
236
|
}
|
|
237
237
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
238
238
|
try {
|
|
239
|
-
Reflect.construct(
|
|
240
|
-
} catch (
|
|
241
|
-
v =
|
|
239
|
+
Reflect.construct(E, []);
|
|
240
|
+
} catch (ee) {
|
|
241
|
+
v = ee;
|
|
242
242
|
}
|
|
243
|
-
Reflect.construct(e, [],
|
|
243
|
+
Reflect.construct(e, [], E);
|
|
244
244
|
} else {
|
|
245
245
|
try {
|
|
246
|
-
|
|
247
|
-
} catch (
|
|
248
|
-
v =
|
|
246
|
+
E.call();
|
|
247
|
+
} catch (ee) {
|
|
248
|
+
v = ee;
|
|
249
249
|
}
|
|
250
|
-
e.call(
|
|
250
|
+
e.call(E.prototype);
|
|
251
251
|
}
|
|
252
252
|
} else {
|
|
253
253
|
try {
|
|
254
254
|
throw Error();
|
|
255
|
-
} catch (
|
|
256
|
-
v =
|
|
255
|
+
} catch (ee) {
|
|
256
|
+
v = ee;
|
|
257
257
|
}
|
|
258
258
|
e();
|
|
259
259
|
}
|
|
260
|
-
} catch (
|
|
261
|
-
if (
|
|
262
|
-
for (var
|
|
263
|
-
`),
|
|
264
|
-
`), F =
|
|
265
|
-
|
|
266
|
-
for (; F >= 1 &&
|
|
267
|
-
if (
|
|
268
|
-
if (F !== 1 ||
|
|
260
|
+
} catch (ee) {
|
|
261
|
+
if (ee && v && typeof ee.stack == "string") {
|
|
262
|
+
for (var w = ee.stack.split(`
|
|
263
|
+
`), K = v.stack.split(`
|
|
264
|
+
`), F = w.length - 1, W = K.length - 1; F >= 1 && W >= 0 && w[F] !== K[W]; )
|
|
265
|
+
W--;
|
|
266
|
+
for (; F >= 1 && W >= 0; F--, W--)
|
|
267
|
+
if (w[F] !== K[W]) {
|
|
268
|
+
if (F !== 1 || W !== 1)
|
|
269
269
|
do
|
|
270
|
-
if (F--,
|
|
270
|
+
if (F--, W--, W < 0 || w[F] !== K[W]) {
|
|
271
271
|
var ne = `
|
|
272
|
-
` +
|
|
273
|
-
return e.displayName && ne.includes("<anonymous>") && (ne = ne.replace("<anonymous>", e.displayName)), typeof e == "function" &&
|
|
272
|
+
` + w[F].replace(" at new ", " at ");
|
|
273
|
+
return e.displayName && ne.includes("<anonymous>") && (ne = ne.replace("<anonymous>", e.displayName)), typeof e == "function" && _e.set(e, ne), ne;
|
|
274
274
|
}
|
|
275
|
-
while (F >= 1 &&
|
|
275
|
+
while (F >= 1 && W >= 0);
|
|
276
276
|
break;
|
|
277
277
|
}
|
|
278
278
|
}
|
|
279
279
|
} finally {
|
|
280
|
-
|
|
280
|
+
me = !1, ye.current = R, ie(), Error.prepareStackTrace = I;
|
|
281
281
|
}
|
|
282
|
-
var
|
|
283
|
-
return typeof e == "function" &&
|
|
282
|
+
var Me = e ? e.displayName || e.name : "", Ce = Me ? le(Me) : "";
|
|
283
|
+
return typeof e == "function" && _e.set(e, Ce), Ce;
|
|
284
284
|
}
|
|
285
|
-
function
|
|
286
|
-
return
|
|
285
|
+
function We(e, l, u) {
|
|
286
|
+
return De(e, !1);
|
|
287
287
|
}
|
|
288
|
-
function
|
|
288
|
+
function Ve(e) {
|
|
289
289
|
var l = e.prototype;
|
|
290
290
|
return !!(l && l.isReactComponent);
|
|
291
291
|
}
|
|
292
|
-
function
|
|
292
|
+
function Z(e, l, u) {
|
|
293
293
|
if (e == null)
|
|
294
294
|
return "";
|
|
295
295
|
if (typeof e == "function")
|
|
296
|
-
return
|
|
296
|
+
return De(e, Ve(e));
|
|
297
297
|
if (typeof e == "string")
|
|
298
|
-
return
|
|
298
|
+
return le(e);
|
|
299
299
|
switch (e) {
|
|
300
300
|
case f:
|
|
301
|
-
return
|
|
301
|
+
return le("Suspense");
|
|
302
302
|
case p:
|
|
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 v = e,
|
|
308
|
+
return We(e.render);
|
|
309
|
+
case h:
|
|
310
|
+
return Z(e.type, l, u);
|
|
311
|
+
case b: {
|
|
312
|
+
var v = e, I = v._payload, R = v._init;
|
|
313
313
|
try {
|
|
314
|
-
return
|
|
314
|
+
return Z(R(I), l, u);
|
|
315
315
|
} catch {
|
|
316
316
|
}
|
|
317
317
|
}
|
|
318
318
|
}
|
|
319
319
|
return "";
|
|
320
320
|
}
|
|
321
|
-
var
|
|
322
|
-
function
|
|
321
|
+
var Y = Object.prototype.hasOwnProperty, ce = {}, tt = C.ReactDebugCurrentFrame;
|
|
322
|
+
function Oe(e) {
|
|
323
323
|
if (e) {
|
|
324
|
-
var l = e._owner, u =
|
|
324
|
+
var l = e._owner, u = Z(e.type, e._source, l ? l.type : null);
|
|
325
325
|
tt.setExtraStackFrame(u);
|
|
326
326
|
} else
|
|
327
327
|
tt.setExtraStackFrame(null);
|
|
328
328
|
}
|
|
329
|
-
function Nt(e, l, u, v,
|
|
329
|
+
function Nt(e, l, u, v, I) {
|
|
330
330
|
{
|
|
331
|
-
var
|
|
332
|
-
for (var
|
|
333
|
-
if (
|
|
334
|
-
var
|
|
331
|
+
var R = Function.call.bind(Y);
|
|
332
|
+
for (var E in e)
|
|
333
|
+
if (R(e, E)) {
|
|
334
|
+
var w = void 0;
|
|
335
335
|
try {
|
|
336
|
-
if (typeof e[
|
|
337
|
-
var
|
|
338
|
-
throw
|
|
336
|
+
if (typeof e[E] != "function") {
|
|
337
|
+
var K = Error((v || "React class") + ": " + u + " type `" + E + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[E] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
338
|
+
throw K.name = "Invariant Violation", K;
|
|
339
339
|
}
|
|
340
|
-
|
|
340
|
+
w = e[E](l, E, v, u, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
341
341
|
} catch (F) {
|
|
342
|
-
|
|
342
|
+
w = F;
|
|
343
343
|
}
|
|
344
|
-
|
|
344
|
+
w && !(w instanceof Error) && (Oe(I), g("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", v || "React class", u, E, typeof w), Oe(null)), w instanceof Error && !(w.message in ce) && (ce[w.message] = !0, Oe(I), g("Failed %s type: %s", u, w.message), Oe(null));
|
|
345
345
|
}
|
|
346
346
|
}
|
|
347
347
|
}
|
|
348
348
|
var Dt = Array.isArray;
|
|
349
|
-
function
|
|
349
|
+
function He(e) {
|
|
350
350
|
return Dt(e);
|
|
351
351
|
}
|
|
352
352
|
function Ot(e) {
|
|
@@ -367,16 +367,16 @@ function ca() {
|
|
|
367
367
|
}
|
|
368
368
|
function rt(e) {
|
|
369
369
|
if (Ut(e))
|
|
370
|
-
return
|
|
370
|
+
return g("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ot(e)), at(e);
|
|
371
371
|
}
|
|
372
|
-
var st =
|
|
372
|
+
var st = C.ReactCurrentOwner, Bt = {
|
|
373
373
|
key: !0,
|
|
374
374
|
ref: !0,
|
|
375
375
|
__self: !0,
|
|
376
376
|
__source: !0
|
|
377
377
|
}, nt, ot;
|
|
378
378
|
function Ft(e) {
|
|
379
|
-
if (
|
|
379
|
+
if (Y.call(e, "ref")) {
|
|
380
380
|
var l = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
381
381
|
if (l && l.isReactWarning)
|
|
382
382
|
return !1;
|
|
@@ -384,7 +384,7 @@ function ca() {
|
|
|
384
384
|
return e.ref !== void 0;
|
|
385
385
|
}
|
|
386
386
|
function Pt(e) {
|
|
387
|
-
if (
|
|
387
|
+
if (Y.call(e, "key")) {
|
|
388
388
|
var l = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
389
389
|
if (l && l.isReactWarning)
|
|
390
390
|
return !1;
|
|
@@ -397,7 +397,7 @@ function ca() {
|
|
|
397
397
|
function Wt(e, l) {
|
|
398
398
|
{
|
|
399
399
|
var u = function() {
|
|
400
|
-
nt || (nt = !0,
|
|
400
|
+
nt || (nt = !0, g("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", l));
|
|
401
401
|
};
|
|
402
402
|
u.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
403
403
|
get: u,
|
|
@@ -408,7 +408,7 @@ function ca() {
|
|
|
408
408
|
function Vt(e, l) {
|
|
409
409
|
{
|
|
410
410
|
var u = function() {
|
|
411
|
-
ot || (ot = !0,
|
|
411
|
+
ot || (ot = !0, g("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", l));
|
|
412
412
|
};
|
|
413
413
|
u.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
414
414
|
get: u,
|
|
@@ -416,70 +416,70 @@ function ca() {
|
|
|
416
416
|
});
|
|
417
417
|
}
|
|
418
418
|
}
|
|
419
|
-
var Ht = function(e, l, u, v,
|
|
420
|
-
var
|
|
419
|
+
var Ht = function(e, l, u, v, I, R, E) {
|
|
420
|
+
var w = {
|
|
421
421
|
// This tag allows us to uniquely identify this as a React Element
|
|
422
422
|
$$typeof: r,
|
|
423
423
|
// Built-in properties that belong on the element
|
|
424
424
|
type: e,
|
|
425
425
|
key: l,
|
|
426
426
|
ref: u,
|
|
427
|
-
props:
|
|
427
|
+
props: E,
|
|
428
428
|
// Record the component responsible for creating this element.
|
|
429
|
-
_owner:
|
|
429
|
+
_owner: R
|
|
430
430
|
};
|
|
431
|
-
return
|
|
431
|
+
return w._store = {}, Object.defineProperty(w._store, "validated", {
|
|
432
432
|
configurable: !1,
|
|
433
433
|
enumerable: !1,
|
|
434
434
|
writable: !0,
|
|
435
435
|
value: !1
|
|
436
|
-
}), Object.defineProperty(
|
|
436
|
+
}), Object.defineProperty(w, "_self", {
|
|
437
437
|
configurable: !1,
|
|
438
438
|
enumerable: !1,
|
|
439
439
|
writable: !1,
|
|
440
440
|
value: v
|
|
441
|
-
}), Object.defineProperty(
|
|
441
|
+
}), Object.defineProperty(w, "_source", {
|
|
442
442
|
configurable: !1,
|
|
443
443
|
enumerable: !1,
|
|
444
444
|
writable: !1,
|
|
445
|
-
value:
|
|
446
|
-
}), Object.freeze && (Object.freeze(
|
|
445
|
+
value: I
|
|
446
|
+
}), Object.freeze && (Object.freeze(w.props), Object.freeze(w)), w;
|
|
447
447
|
};
|
|
448
|
-
function qt(e, l, u, v,
|
|
448
|
+
function qt(e, l, u, v, I) {
|
|
449
449
|
{
|
|
450
|
-
var
|
|
451
|
-
u !== void 0 && (rt(u),
|
|
452
|
-
for (
|
|
453
|
-
|
|
450
|
+
var R, E = {}, w = null, K = null;
|
|
451
|
+
u !== void 0 && (rt(u), w = "" + u), Pt(l) && (rt(l.key), w = "" + l.key), Ft(l) && (K = l.ref, zt(l, I));
|
|
452
|
+
for (R in l)
|
|
453
|
+
Y.call(l, R) && !Bt.hasOwnProperty(R) && (E[R] = l[R]);
|
|
454
454
|
if (e && e.defaultProps) {
|
|
455
455
|
var F = e.defaultProps;
|
|
456
|
-
for (
|
|
457
|
-
|
|
456
|
+
for (R in F)
|
|
457
|
+
E[R] === void 0 && (E[R] = F[R]);
|
|
458
458
|
}
|
|
459
|
-
if (
|
|
460
|
-
var
|
|
461
|
-
|
|
459
|
+
if (w || K) {
|
|
460
|
+
var W = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
461
|
+
w && Wt(E, W), K && Vt(E, W);
|
|
462
462
|
}
|
|
463
|
-
return Ht(e,
|
|
463
|
+
return Ht(e, w, K, I, v, st.current, E);
|
|
464
464
|
}
|
|
465
465
|
}
|
|
466
|
-
var
|
|
467
|
-
function
|
|
466
|
+
var qe = C.ReactCurrentOwner, it = C.ReactDebugCurrentFrame;
|
|
467
|
+
function Le(e) {
|
|
468
468
|
if (e) {
|
|
469
|
-
var l = e._owner, u =
|
|
469
|
+
var l = e._owner, u = Z(e.type, e._source, l ? l.type : null);
|
|
470
470
|
it.setExtraStackFrame(u);
|
|
471
471
|
} else
|
|
472
472
|
it.setExtraStackFrame(null);
|
|
473
473
|
}
|
|
474
|
-
var
|
|
475
|
-
|
|
476
|
-
function
|
|
474
|
+
var Ge;
|
|
475
|
+
Ge = !1;
|
|
476
|
+
function Ze(e) {
|
|
477
477
|
return typeof e == "object" && e !== null && e.$$typeof === r;
|
|
478
478
|
}
|
|
479
479
|
function lt() {
|
|
480
480
|
{
|
|
481
|
-
if (
|
|
482
|
-
var e =
|
|
481
|
+
if (qe.current) {
|
|
482
|
+
var e = m(qe.current.type);
|
|
483
483
|
if (e)
|
|
484
484
|
return `
|
|
485
485
|
|
|
@@ -514,25 +514,25 @@ Check the top-level render call using <` + u + ">.");
|
|
|
514
514
|
return;
|
|
515
515
|
ct[u] = !0;
|
|
516
516
|
var v = "";
|
|
517
|
-
e && e._owner && e._owner !==
|
|
517
|
+
e && e._owner && e._owner !== qe.current && (v = " It was passed a child from " + m(e._owner.type) + "."), Le(e), g('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', u, v), Le(null);
|
|
518
518
|
}
|
|
519
519
|
}
|
|
520
520
|
function ut(e, l) {
|
|
521
521
|
{
|
|
522
522
|
if (typeof e != "object")
|
|
523
523
|
return;
|
|
524
|
-
if (
|
|
524
|
+
if (He(e))
|
|
525
525
|
for (var u = 0; u < e.length; u++) {
|
|
526
526
|
var v = e[u];
|
|
527
|
-
|
|
527
|
+
Ze(v) && dt(v, l);
|
|
528
528
|
}
|
|
529
|
-
else if (
|
|
529
|
+
else if (Ze(e))
|
|
530
530
|
e._store && (e._store.validated = !0);
|
|
531
531
|
else if (e) {
|
|
532
|
-
var
|
|
533
|
-
if (typeof
|
|
534
|
-
for (var
|
|
535
|
-
|
|
532
|
+
var I = S(e);
|
|
533
|
+
if (typeof I == "function" && I !== e.entries)
|
|
534
|
+
for (var R = I.call(e), E; !(E = R.next()).done; )
|
|
535
|
+
Ze(E.value) && dt(E.value, l);
|
|
536
536
|
}
|
|
537
537
|
}
|
|
538
538
|
}
|
|
@@ -546,19 +546,19 @@ Check the top-level render call using <` + u + ">.");
|
|
|
546
546
|
u = l.propTypes;
|
|
547
547
|
else if (typeof l == "object" && (l.$$typeof === d || // Note: Memo only checks outer props here.
|
|
548
548
|
// Inner props are checked in the reconciler.
|
|
549
|
-
l.$$typeof ===
|
|
549
|
+
l.$$typeof === h))
|
|
550
550
|
u = l.propTypes;
|
|
551
551
|
else
|
|
552
552
|
return;
|
|
553
553
|
if (u) {
|
|
554
|
-
var v =
|
|
554
|
+
var v = m(l);
|
|
555
555
|
Nt(u, e.props, "prop", v, e);
|
|
556
|
-
} else if (l.PropTypes !== void 0 && !
|
|
557
|
-
|
|
558
|
-
var
|
|
559
|
-
|
|
556
|
+
} else if (l.PropTypes !== void 0 && !Ge) {
|
|
557
|
+
Ge = !0;
|
|
558
|
+
var I = m(l);
|
|
559
|
+
g("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", I || "Unknown");
|
|
560
560
|
}
|
|
561
|
-
typeof l.getDefaultProps == "function" && !l.getDefaultProps.isReactClassApproved &&
|
|
561
|
+
typeof l.getDefaultProps == "function" && !l.getDefaultProps.isReactClassApproved && g("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
562
562
|
}
|
|
563
563
|
}
|
|
564
564
|
function Jt(e) {
|
|
@@ -566,75 +566,75 @@ Check the top-level render call using <` + u + ">.");
|
|
|
566
566
|
for (var l = Object.keys(e.props), u = 0; u < l.length; u++) {
|
|
567
567
|
var v = l[u];
|
|
568
568
|
if (v !== "children" && v !== "key") {
|
|
569
|
-
|
|
569
|
+
Le(e), g("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", v), Le(null);
|
|
570
570
|
break;
|
|
571
571
|
}
|
|
572
572
|
}
|
|
573
|
-
e.ref !== null && (
|
|
573
|
+
e.ref !== null && (Le(e), g("Invalid attribute `ref` supplied to `React.Fragment`."), Le(null));
|
|
574
574
|
}
|
|
575
575
|
}
|
|
576
|
-
var
|
|
577
|
-
function
|
|
576
|
+
var _t = {};
|
|
577
|
+
function pt(e, l, u, v, I, R) {
|
|
578
578
|
{
|
|
579
|
-
var
|
|
580
|
-
if (!
|
|
581
|
-
var
|
|
582
|
-
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (
|
|
583
|
-
var
|
|
584
|
-
|
|
579
|
+
var E = q(e);
|
|
580
|
+
if (!E) {
|
|
581
|
+
var w = "";
|
|
582
|
+
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (w += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
583
|
+
var K = Gt();
|
|
584
|
+
K ? w += K : w += lt();
|
|
585
585
|
var F;
|
|
586
|
-
e === null ? F = "null" :
|
|
586
|
+
e === null ? F = "null" : He(e) ? F = "array" : e !== void 0 && e.$$typeof === r ? (F = "<" + (m(e.type) || "Unknown") + " />", w = " Did you accidentally export a JSX literal instead of a component?") : F = typeof e, g("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", F, w);
|
|
587
587
|
}
|
|
588
|
-
var
|
|
589
|
-
if (
|
|
590
|
-
return
|
|
591
|
-
if (
|
|
588
|
+
var W = qt(e, l, u, I, R);
|
|
589
|
+
if (W == null)
|
|
590
|
+
return W;
|
|
591
|
+
if (E) {
|
|
592
592
|
var ne = l.children;
|
|
593
593
|
if (ne !== void 0)
|
|
594
594
|
if (v)
|
|
595
|
-
if (
|
|
596
|
-
for (var
|
|
597
|
-
ut(ne[
|
|
595
|
+
if (He(ne)) {
|
|
596
|
+
for (var Me = 0; Me < ne.length; Me++)
|
|
597
|
+
ut(ne[Me], e);
|
|
598
598
|
Object.freeze && Object.freeze(ne);
|
|
599
599
|
} else
|
|
600
|
-
|
|
600
|
+
g("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
601
601
|
else
|
|
602
602
|
ut(ne, e);
|
|
603
603
|
}
|
|
604
|
-
if (
|
|
605
|
-
var
|
|
604
|
+
if (Y.call(l, "key")) {
|
|
605
|
+
var Ce = m(e), ee = Object.keys(l).filter(function(aa) {
|
|
606
606
|
return aa !== "key";
|
|
607
|
-
}),
|
|
608
|
-
if (!
|
|
609
|
-
var ta =
|
|
610
|
-
|
|
607
|
+
}), Ye = ee.length > 0 ? "{key: someKey, " + ee.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
608
|
+
if (!_t[Ce + Ye]) {
|
|
609
|
+
var ta = ee.length > 0 ? "{" + ee.join(": ..., ") + ": ...}" : "{}";
|
|
610
|
+
g(`A props object containing a "key" prop is being spread into JSX:
|
|
611
611
|
let props = %s;
|
|
612
612
|
<%s {...props} />
|
|
613
613
|
React keys must be passed directly to JSX without using spread:
|
|
614
614
|
let props = %s;
|
|
615
|
-
<%s key={someKey} {...props} />`,
|
|
615
|
+
<%s key={someKey} {...props} />`, Ye, Ce, ta, Ce), _t[Ce + Ye] = !0;
|
|
616
616
|
}
|
|
617
617
|
}
|
|
618
|
-
return e === s ? Jt(
|
|
618
|
+
return e === s ? Jt(W) : Yt(W), W;
|
|
619
619
|
}
|
|
620
620
|
}
|
|
621
621
|
function Kt(e, l, u) {
|
|
622
|
-
return
|
|
622
|
+
return pt(e, l, u, !0);
|
|
623
623
|
}
|
|
624
624
|
function Xt(e, l, u) {
|
|
625
|
-
return
|
|
625
|
+
return pt(e, l, u, !1);
|
|
626
626
|
}
|
|
627
627
|
var Qt = Xt, ea = Kt;
|
|
628
|
-
|
|
629
|
-
}()),
|
|
628
|
+
ke.Fragment = s, ke.jsx = Qt, ke.jsxs = ea;
|
|
629
|
+
}()), ke;
|
|
630
630
|
}
|
|
631
631
|
var ht;
|
|
632
632
|
function da() {
|
|
633
|
-
return ht || (ht = 1, process.env.NODE_ENV === "production" ?
|
|
633
|
+
return ht || (ht = 1, process.env.NODE_ENV === "production" ? Ue.exports = la() : Ue.exports = ca()), Ue.exports;
|
|
634
634
|
}
|
|
635
635
|
var o = da();
|
|
636
|
-
const ua = (t) => t.as === "a",
|
|
637
|
-
button:
|
|
636
|
+
const ua = (t) => t.as === "a", _a = (t) => t.as === void 0 || t.as === "button", pa = "_button_1abee_213", fa = "_disabled_1abee_237", ga = "_loading_1abee_237", ha = "_neutral_1abee_259", ba = "_accent_1abee_263", ya = "_positive_1abee_267", ma = "_negative_1abee_271", va = "_contrast_1abee_275", xa = "_special_1abee_279", Ca = "_primary_1abee_284", wa = "_secondary_1abee_285", Sa = "_tertiary_1abee_286", Ea = "_label_1abee_321", La = "_rightGroup_1abee_333", Ma = "_iconOnly_1abee_349", $a = "_large_1abee_357", ja = "_medium_1abee_361", Ia = "_small_1abee_365", Ra = "_spaceBetween_1abee_370", ka = "_stretched_1abee_384", Ta = "_icon_1abee_349", Aa = "_badge_1abee_705", Na = "_badgeMedium_1abee_721", Da = "_circular_1abee_738", Oa = "_badgeSmall_1abee_743", Ua = "_badgeExtraSmall_1abee_765", Ba = "_withSubcaption_1abee_784", Fa = "_subcaption_1abee_797", Pa = "_loader_1abee_804", za = "_spin_1abee_1", Wa = "_l_1abee_237", Va = "_m_1abee_361", Ha = "_s_1abee_279", qa = "_xs_1abee_869", P = {
|
|
637
|
+
button: pa,
|
|
638
638
|
disabled: fa,
|
|
639
639
|
loading: ga,
|
|
640
640
|
neutral: ha,
|
|
@@ -682,16 +682,16 @@ const ua = (t) => t.as === "a", pa = (t) => t.as === void 0 || t.as === "button"
|
|
|
682
682
|
}) => {
|
|
683
683
|
if (t)
|
|
684
684
|
return /* @__PURE__ */ o.jsx("span", { className: P.loader, "data-testid": "button-loader", "aria-hidden": "true" });
|
|
685
|
-
const p = s === "extra-small",
|
|
685
|
+
const p = s === "extra-small", h = parseInt(String(a), 10), b = !isNaN(h) && h >= 0 && h <= 9;
|
|
686
686
|
return /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
687
687
|
r && (a || p) && /* @__PURE__ */ o.jsx(
|
|
688
688
|
"span",
|
|
689
689
|
{
|
|
690
690
|
"data-testid": "button-badge",
|
|
691
|
-
className:
|
|
691
|
+
className: V(
|
|
692
692
|
P.badge,
|
|
693
693
|
P[`badge${p ? "ExtraSmall" : s === "medium" ? "Medium" : "Small"}`],
|
|
694
|
-
{ [P.circular]:
|
|
694
|
+
{ [P.circular]: b && !p }
|
|
695
695
|
),
|
|
696
696
|
children: !p && a
|
|
697
697
|
}
|
|
@@ -707,7 +707,7 @@ const ua = (t) => t.as === "a", pa = (t) => t.as === void 0 || t.as === "button"
|
|
|
707
707
|
] })
|
|
708
708
|
] }) : /* @__PURE__ */ o.jsx("span", { "data-testid": "button-icon", className: P.icon, children: i })
|
|
709
709
|
] });
|
|
710
|
-
}, In =
|
|
710
|
+
}, In = te((t, r) => {
|
|
711
711
|
const {
|
|
712
712
|
mode: a = "primary",
|
|
713
713
|
size: s = "m",
|
|
@@ -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: p = !1,
|
|
721
|
-
subcaption:
|
|
722
|
-
stretched:
|
|
723
|
-
spaceBetween:
|
|
724
|
-
icon:
|
|
725
|
-
postfix:
|
|
726
|
-
className:
|
|
727
|
-
children:
|
|
728
|
-
} = t,
|
|
721
|
+
subcaption: h,
|
|
722
|
+
stretched: b = !1,
|
|
723
|
+
spaceBetween: y = !1,
|
|
724
|
+
icon: x,
|
|
725
|
+
postfix: M,
|
|
726
|
+
className: S,
|
|
727
|
+
children: C
|
|
728
|
+
} = t, g = c, $ = n, k = !g && !$, D = !!x && !C, T = V(
|
|
729
729
|
P.button,
|
|
730
730
|
P[s],
|
|
731
731
|
P[a],
|
|
732
732
|
P[i],
|
|
733
733
|
{
|
|
734
|
-
[P.disabled]:
|
|
735
|
-
[P.loading]:
|
|
736
|
-
[P.stretched]:
|
|
737
|
-
[P.spaceBetween]:
|
|
738
|
-
[P.withSubcaption]: p &&
|
|
739
|
-
[P.iconOnly]:
|
|
734
|
+
[P.disabled]: g,
|
|
735
|
+
[P.loading]: $,
|
|
736
|
+
[P.stretched]: b,
|
|
737
|
+
[P.spaceBetween]: y && b,
|
|
738
|
+
[P.withSubcaption]: p && h && s !== "s" && s !== "xs",
|
|
739
|
+
[P.iconOnly]: D
|
|
740
740
|
},
|
|
741
|
-
|
|
742
|
-
),
|
|
743
|
-
isLoading:
|
|
741
|
+
S
|
|
742
|
+
), A = {
|
|
743
|
+
isLoading: $,
|
|
744
744
|
showBadge: _,
|
|
745
745
|
badgeValue: f,
|
|
746
746
|
badgeSize: d,
|
|
747
|
-
icon:
|
|
748
|
-
children:
|
|
749
|
-
postfix:
|
|
747
|
+
icon: x,
|
|
748
|
+
children: C,
|
|
749
|
+
postfix: M,
|
|
750
750
|
showSubcaption: p,
|
|
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:
|
|
756
|
+
href: N,
|
|
757
|
+
onClick: U,
|
|
758
|
+
mode: q,
|
|
759
|
+
size: z,
|
|
760
|
+
buttonStyle: O,
|
|
761
|
+
loading: m,
|
|
762
|
+
disabled: j,
|
|
763
763
|
showBadge: B,
|
|
764
|
-
badgeSize:
|
|
765
|
-
badgeValue:
|
|
766
|
-
showSubcaption:
|
|
767
|
-
subcaption:
|
|
768
|
-
stretched:
|
|
764
|
+
badgeSize: G,
|
|
765
|
+
badgeValue: H,
|
|
766
|
+
showSubcaption: Q,
|
|
767
|
+
subcaption: ae,
|
|
768
|
+
stretched: J,
|
|
769
769
|
spaceBetween: re,
|
|
770
|
-
icon:
|
|
771
|
-
postfix:
|
|
772
|
-
className:
|
|
773
|
-
tabIndex:
|
|
774
|
-
children:
|
|
770
|
+
icon: se,
|
|
771
|
+
postfix: de,
|
|
772
|
+
className: ve,
|
|
773
|
+
tabIndex: ie,
|
|
774
|
+
children: ye,
|
|
775
775
|
"data-testid": ue,
|
|
776
|
-
style:
|
|
777
|
-
...
|
|
778
|
-
} = t,
|
|
779
|
-
|
|
776
|
+
style: le,
|
|
777
|
+
...me
|
|
778
|
+
} = t, _e = (xe) => {
|
|
779
|
+
k && U && U(xe);
|
|
780
780
|
};
|
|
781
781
|
return /* @__PURE__ */ o.jsx(
|
|
782
782
|
"a",
|
|
783
783
|
{
|
|
784
784
|
ref: r,
|
|
785
785
|
className: T,
|
|
786
|
-
href:
|
|
786
|
+
href: k ? N : void 0,
|
|
787
787
|
tabIndex: t.tabIndex,
|
|
788
|
-
onClick:
|
|
788
|
+
onClick: _e,
|
|
789
789
|
"data-testid": ue,
|
|
790
|
-
"aria-disabled":
|
|
791
|
-
style:
|
|
792
|
-
...
|
|
793
|
-
children: /* @__PURE__ */ o.jsx(bt, { ...
|
|
790
|
+
"aria-disabled": g || $,
|
|
791
|
+
style: le,
|
|
792
|
+
...me,
|
|
793
|
+
children: /* @__PURE__ */ o.jsx(bt, { ...A })
|
|
794
794
|
}
|
|
795
795
|
);
|
|
796
796
|
}
|
|
797
|
-
if (
|
|
797
|
+
if (_a(t)) {
|
|
798
798
|
const {
|
|
799
|
-
type:
|
|
800
|
-
onClick:
|
|
801
|
-
mode:
|
|
802
|
-
size:
|
|
803
|
-
buttonStyle:
|
|
804
|
-
loading:
|
|
805
|
-
disabled:
|
|
799
|
+
type: N = "button",
|
|
800
|
+
onClick: U,
|
|
801
|
+
mode: q,
|
|
802
|
+
size: z,
|
|
803
|
+
buttonStyle: O,
|
|
804
|
+
loading: m,
|
|
805
|
+
disabled: j,
|
|
806
806
|
showBadge: B,
|
|
807
|
-
badgeSize:
|
|
808
|
-
badgeValue:
|
|
809
|
-
showSubcaption:
|
|
810
|
-
subcaption:
|
|
811
|
-
stretched:
|
|
807
|
+
badgeSize: G,
|
|
808
|
+
badgeValue: H,
|
|
809
|
+
showSubcaption: Q,
|
|
810
|
+
subcaption: ae,
|
|
811
|
+
stretched: J,
|
|
812
812
|
spaceBetween: re,
|
|
813
|
-
icon:
|
|
814
|
-
postfix:
|
|
815
|
-
className:
|
|
816
|
-
tabIndex:
|
|
817
|
-
children:
|
|
813
|
+
icon: se,
|
|
814
|
+
postfix: de,
|
|
815
|
+
className: ve,
|
|
816
|
+
tabIndex: ie,
|
|
817
|
+
children: ye,
|
|
818
818
|
"data-testid": ue,
|
|
819
|
-
style:
|
|
820
|
-
...
|
|
821
|
-
} = t,
|
|
822
|
-
|
|
819
|
+
style: le,
|
|
820
|
+
...me
|
|
821
|
+
} = t, _e = (xe) => {
|
|
822
|
+
k && U && U(xe);
|
|
823
823
|
};
|
|
824
824
|
return /* @__PURE__ */ o.jsx(
|
|
825
825
|
"button",
|
|
826
826
|
{
|
|
827
827
|
ref: r,
|
|
828
|
-
type:
|
|
828
|
+
type: N,
|
|
829
829
|
className: T,
|
|
830
|
-
disabled:
|
|
830
|
+
disabled: g,
|
|
831
831
|
tabIndex: t.tabIndex,
|
|
832
|
-
onClick:
|
|
832
|
+
onClick: _e,
|
|
833
833
|
"data-testid": ue,
|
|
834
|
-
"aria-disabled":
|
|
835
|
-
style:
|
|
836
|
-
...
|
|
837
|
-
children: /* @__PURE__ */ o.jsx(bt, { ...
|
|
834
|
+
"aria-disabled": g || $,
|
|
835
|
+
style: le,
|
|
836
|
+
...me,
|
|
837
|
+
children: /* @__PURE__ */ o.jsx(bt, { ...A })
|
|
838
838
|
}
|
|
839
839
|
);
|
|
840
840
|
}
|
|
841
841
|
return null;
|
|
842
842
|
});
|
|
843
|
-
var
|
|
843
|
+
var Je = { exports: {} };
|
|
844
844
|
/*!
|
|
845
845
|
Copyright (c) 2018 Jed Watson.
|
|
846
846
|
Licensed under the MIT License (MIT), see
|
|
@@ -877,10 +877,10 @@ function Ga() {
|
|
|
877
877
|
}
|
|
878
878
|
t.exports ? (a.default = a, t.exports = a) : window.classNames = a;
|
|
879
879
|
})();
|
|
880
|
-
}(
|
|
880
|
+
}(Je)), Je.exports;
|
|
881
881
|
}
|
|
882
882
|
var Za = Ga();
|
|
883
|
-
const
|
|
883
|
+
const Ie = /* @__PURE__ */ ia(Za), Ya = "_avatar_1kyiq_17", Ja = "_clickable_1kyiq_41", Ka = "_icon_1kyiq_58", Xa = "_disabled_1kyiq_63", Qa = "_loading_1kyiq_68", er = "_image_1kyiq_74", tr = "_name_1kyiq_74", pe = {
|
|
884
884
|
avatar: Ya,
|
|
885
885
|
clickable: Ja,
|
|
886
886
|
icon: Ka,
|
|
@@ -901,7 +901,7 @@ const Se = /* @__PURE__ */ ia(Za), Ya = "_avatar_1kyiq_17", Ja = "_clickable_1ky
|
|
|
901
901
|
"color-contrast": "_color-contrast_1kyiq_167",
|
|
902
902
|
"variant-light": "_variant-light_1kyiq_173",
|
|
903
903
|
"variant-outline": "_variant-outline_1kyiq_245"
|
|
904
|
-
},
|
|
904
|
+
}, Ae = {
|
|
905
905
|
"typography-title-1-semibold": "_typography-title-1-semibold_1lyxn_1",
|
|
906
906
|
"typography-title-2-semibold": "_typography-title-2-semibold_1lyxn_10",
|
|
907
907
|
"typography-title-3-semibold": "_typography-title-3-semibold_1lyxn_19",
|
|
@@ -929,7 +929,7 @@ const Se = /* @__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
|
-
},
|
|
994
|
+
}, Fe = 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: p,
|
|
1005
|
-
imgAlt:
|
|
1006
|
-
icon:
|
|
1007
|
-
imgProps:
|
|
1008
|
-
colorScheme:
|
|
1009
|
-
className:
|
|
1010
|
-
"data-testid":
|
|
1011
|
-
...
|
|
1012
|
-
} = t, { onClick:
|
|
1013
|
-
|
|
1014
|
-
p &&
|
|
1005
|
+
imgAlt: h,
|
|
1006
|
+
icon: b,
|
|
1007
|
+
imgProps: y,
|
|
1008
|
+
colorScheme: x,
|
|
1009
|
+
className: M,
|
|
1010
|
+
"data-testid": S,
|
|
1011
|
+
...C
|
|
1012
|
+
} = t, { onClick: g, onPointerDown: $ } = C, D = !n && !i && (!!g || !!$), [T, A] = Ne(!1);
|
|
1013
|
+
Ee(() => {
|
|
1014
|
+
p && A(!1);
|
|
1015
1015
|
}, [p]);
|
|
1016
|
-
const
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1016
|
+
const N = p && !T ? "image" : b ? "icon" : f ? "name" : "placeholder", U = x || N === "name" && sr(f) || "gray", q = lr(s), z = jt(s, c), O = V(
|
|
1017
|
+
M,
|
|
1018
|
+
pe.avatar,
|
|
1019
|
+
pe[`variant-${_}`],
|
|
1020
|
+
pe[`color-${U}`],
|
|
1021
|
+
Ae[q],
|
|
1022
1022
|
{
|
|
1023
|
-
[
|
|
1024
|
-
[
|
|
1025
|
-
[
|
|
1023
|
+
[pe.disabled]: n,
|
|
1024
|
+
[pe.loading]: i,
|
|
1025
|
+
[pe.clickable]: D
|
|
1026
1026
|
}
|
|
1027
|
-
),
|
|
1027
|
+
), m = {
|
|
1028
1028
|
"--avatar-size": `${s}px`,
|
|
1029
|
-
"--avatar-border-radius": `${
|
|
1029
|
+
"--avatar-border-radius": `${z}px`,
|
|
1030
1030
|
...a
|
|
1031
|
-
},
|
|
1032
|
-
icon: () => /* @__PURE__ */ o.jsx("span", { "data-testid": "avatar-icon", title:
|
|
1031
|
+
}, j = {
|
|
1032
|
+
icon: () => /* @__PURE__ */ o.jsx("span", { "data-testid": "avatar-icon", title: h || void 0, role: "img", className: pe.icon, children: b == null ? void 0 : b({}) }),
|
|
1033
1033
|
name: () => /* @__PURE__ */ o.jsx(
|
|
1034
1034
|
"span",
|
|
1035
1035
|
{
|
|
1036
1036
|
role: "textbox",
|
|
1037
1037
|
"data-testid": "avatar-name",
|
|
1038
|
-
className:
|
|
1039
|
-
title:
|
|
1038
|
+
className: pe.name,
|
|
1039
|
+
title: h || void 0,
|
|
1040
1040
|
children: nr(f || "")
|
|
1041
1041
|
}
|
|
1042
1042
|
),
|
|
1043
1043
|
placeholder: () => /* @__PURE__ */ o.jsx(
|
|
1044
1044
|
"img",
|
|
1045
1045
|
{
|
|
1046
|
-
...
|
|
1046
|
+
...y,
|
|
1047
1047
|
"data-testid": "avatar-placeholder",
|
|
1048
|
-
className:
|
|
1049
|
-
src:
|
|
1050
|
-
alt:
|
|
1048
|
+
className: pe.image,
|
|
1049
|
+
src: pr[d],
|
|
1050
|
+
alt: h || void 0
|
|
1051
1051
|
}
|
|
1052
1052
|
),
|
|
1053
1053
|
image: () => /* @__PURE__ */ o.jsx(
|
|
1054
1054
|
"img",
|
|
1055
1055
|
{
|
|
1056
1056
|
"data-testid": "avatar-image",
|
|
1057
|
-
...
|
|
1058
|
-
className:
|
|
1057
|
+
...y,
|
|
1058
|
+
className: pe.image,
|
|
1059
1059
|
src: p || 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
|
-
}, B = (
|
|
1069
|
-
|
|
1068
|
+
}, B = (G) => {
|
|
1069
|
+
D && (g == null || g(G));
|
|
1070
1070
|
};
|
|
1071
1071
|
return /* @__PURE__ */ o.jsx(
|
|
1072
1072
|
"div",
|
|
1073
1073
|
{
|
|
1074
1074
|
ref: r,
|
|
1075
1075
|
onClick: B,
|
|
1076
|
-
className:
|
|
1077
|
-
style:
|
|
1078
|
-
"data-testid":
|
|
1076
|
+
className: O,
|
|
1077
|
+
style: m,
|
|
1078
|
+
"data-testid": S,
|
|
1079
1079
|
"aria-disabled": n || i,
|
|
1080
|
-
children:
|
|
1080
|
+
children: j[N](null)
|
|
1081
1081
|
}
|
|
1082
1082
|
);
|
|
1083
1083
|
}), fr = "_avatarGroup_157g4_1", gr = {
|
|
@@ -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, _ = a * s, d = -_ + yr, f = jt(a, i),
|
|
1114
|
+
} = t, _ = a * s, d = -_ + yr, f = jt(a, i), h = ze(hr()).current.toString(), b = Ie(gr.avatarGroup), y = br(
|
|
1115
1115
|
a,
|
|
1116
1116
|
a,
|
|
1117
1117
|
a - _,
|
|
@@ -1122,22 +1122,22 @@ const yr = 3, mr = (t) => {
|
|
|
1122
1122
|
a,
|
|
1123
1123
|
f
|
|
1124
1124
|
);
|
|
1125
|
-
return r.length === 0 ? null : /* @__PURE__ */ o.jsxs("div", { className:
|
|
1126
|
-
r.map((
|
|
1127
|
-
const
|
|
1128
|
-
if (
|
|
1129
|
-
const
|
|
1125
|
+
return r.length === 0 ? null : /* @__PURE__ */ o.jsxs("div", { className: b, children: [
|
|
1126
|
+
r.map((x, M, S) => {
|
|
1127
|
+
const C = M + 1 >= S.length;
|
|
1128
|
+
if (x.wrapper) {
|
|
1129
|
+
const g = x.wrapper;
|
|
1130
1130
|
return /* @__PURE__ */ o.jsx(
|
|
1131
1131
|
"div",
|
|
1132
1132
|
{
|
|
1133
1133
|
style: {
|
|
1134
1134
|
// Для последнего видимого аватара без overflowCount не применяем обрезку
|
|
1135
|
-
clipPath:
|
|
1135
|
+
clipPath: C && !n ? void 0 : `url(#${h})`,
|
|
1136
1136
|
marginRight: d
|
|
1137
1137
|
},
|
|
1138
|
-
children: /* @__PURE__ */ o.jsx(
|
|
1138
|
+
children: /* @__PURE__ */ o.jsx(g, { children: /* @__PURE__ */ o.jsx(Fe, { size: a, shape: i, ...x }) })
|
|
1139
1139
|
},
|
|
1140
|
-
|
|
1140
|
+
et(x) + M
|
|
1141
1141
|
);
|
|
1142
1142
|
}
|
|
1143
1143
|
return /* @__PURE__ */ o.jsx(
|
|
@@ -1145,16 +1145,16 @@ const yr = 3, mr = (t) => {
|
|
|
1145
1145
|
{
|
|
1146
1146
|
style: {
|
|
1147
1147
|
// Для последнего видимого аватара без overflowCount не применяем обрезку
|
|
1148
|
-
clipPath:
|
|
1148
|
+
clipPath: C && !n ? void 0 : `url(#${h})`,
|
|
1149
1149
|
marginRight: d
|
|
1150
1150
|
},
|
|
1151
|
-
children: /* @__PURE__ */ o.jsx(
|
|
1151
|
+
children: /* @__PURE__ */ o.jsx(Fe, { size: a, shape: i, ...x })
|
|
1152
1152
|
},
|
|
1153
|
-
|
|
1153
|
+
et(x) + M
|
|
1154
1154
|
);
|
|
1155
1155
|
}),
|
|
1156
1156
|
n > 0 && /* @__PURE__ */ o.jsx("div", { style: { marginRight: d }, children: /* @__PURE__ */ o.jsx(
|
|
1157
|
-
|
|
1157
|
+
Fe,
|
|
1158
1158
|
{
|
|
1159
1159
|
size: a,
|
|
1160
1160
|
shape: i,
|
|
@@ -1164,11 +1164,11 @@ const yr = 3, mr = (t) => {
|
|
|
1164
1164
|
...c
|
|
1165
1165
|
}
|
|
1166
1166
|
) }),
|
|
1167
|
-
/* @__PURE__ */ o.jsx("svg", { width: "0", height: "0", children: /* @__PURE__ */ o.jsx("clipPath", { id: `${
|
|
1167
|
+
/* @__PURE__ */ o.jsx("svg", { width: "0", height: "0", children: /* @__PURE__ */ o.jsx("clipPath", { id: `${h}`, children: /* @__PURE__ */ o.jsx("path", { clipPathUnits: "objectBoundingBox", d: y, clipRule: "evenodd" }) }) })
|
|
1168
1168
|
] });
|
|
1169
|
-
}, Rn = Object.assign(
|
|
1169
|
+
}, Rn = Object.assign(Fe, {
|
|
1170
1170
|
Group: mr
|
|
1171
|
-
}), vr = "_wrapper_ecbsu_5", xr = "_badge__container_ecbsu_6", Cr = "_badge__content_ecbsu_7", wr = "_interactive_ecbsu_20", Sr = "_disabled_ecbsu_21", Er = "_icon_ecbsu_22",
|
|
1171
|
+
}), vr = "_wrapper_ecbsu_5", xr = "_badge__container_ecbsu_6", Cr = "_badge__content_ecbsu_7", wr = "_interactive_ecbsu_20", Sr = "_disabled_ecbsu_21", Er = "_icon_ecbsu_22", fe = {
|
|
1172
1172
|
wrapper: vr,
|
|
1173
1173
|
badge__container: xr,
|
|
1174
1174
|
badge__content: Cr,
|
|
@@ -1216,14 +1216,14 @@ const yr = 3, mr = (t) => {
|
|
|
1216
1216
|
}
|
|
1217
1217
|
return null;
|
|
1218
1218
|
}, $r = () => {
|
|
1219
|
-
const t =
|
|
1220
|
-
return
|
|
1219
|
+
const t = ze(null), [r, a] = Ne(null);
|
|
1220
|
+
return Ee(() => {
|
|
1221
1221
|
if (t.current) {
|
|
1222
1222
|
const s = Mr(t.current);
|
|
1223
1223
|
a(s);
|
|
1224
1224
|
}
|
|
1225
1225
|
}, []), { ref: t, bgColor: r };
|
|
1226
|
-
}, kn =
|
|
1226
|
+
}, kn = te((t, r) => {
|
|
1227
1227
|
const {
|
|
1228
1228
|
icon: a,
|
|
1229
1229
|
children: s,
|
|
@@ -1234,58 +1234,58 @@ const yr = 3, mr = (t) => {
|
|
|
1234
1234
|
size: d = 20,
|
|
1235
1235
|
position: f = "top-right",
|
|
1236
1236
|
positionOffset: p = { 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": x = "badge",
|
|
1241
|
+
...M
|
|
1242
|
+
} = t, { onClick: S, onPointerDown: C } = M, { ref: g, bgColor: $ } = $r(), k = h || $, T = !b && (!!S || !!C), A = Ie(fe.badge__container, fe[`position-${f}`]), N = Ie(
|
|
1243
|
+
y,
|
|
1244
|
+
fe.badge__content,
|
|
1245
|
+
fe[`color-${_}`],
|
|
1246
|
+
fe[`variant-${i}`],
|
|
1247
1247
|
{
|
|
1248
|
-
[
|
|
1249
|
-
[
|
|
1250
|
-
[
|
|
1248
|
+
[fe.disabled]: b,
|
|
1249
|
+
[fe.icon]: !!a,
|
|
1250
|
+
[fe.interactive]: T
|
|
1251
1251
|
}
|
|
1252
|
-
),
|
|
1252
|
+
), U = {
|
|
1253
1253
|
"--badge-height": `${d}px`,
|
|
1254
1254
|
"--badge-offset-x": `${p.x}px`,
|
|
1255
1255
|
"--badge-offset-y": `${p.y}px`,
|
|
1256
|
-
...
|
|
1256
|
+
...k && { "--badge-cutout-bg": k },
|
|
1257
1257
|
...i === "transparent" && { "--badge-cutout-bg": "transparent" }
|
|
1258
|
-
},
|
|
1259
|
-
T && (
|
|
1258
|
+
}, q = (a == null ? void 0 : a({})) || n, z = (O) => {
|
|
1259
|
+
T && (S == null || S(O));
|
|
1260
1260
|
};
|
|
1261
|
-
return /* @__PURE__ */ o.jsxs("div", { className:
|
|
1261
|
+
return /* @__PURE__ */ o.jsxs("div", { className: fe.wrapper, ref: g, "data-testid": x + "-wrapper", children: [
|
|
1262
1262
|
s,
|
|
1263
1263
|
!c && /* @__PURE__ */ o.jsx(
|
|
1264
1264
|
"span",
|
|
1265
1265
|
{
|
|
1266
|
-
className:
|
|
1267
|
-
style:
|
|
1268
|
-
"data-testid":
|
|
1266
|
+
className: A,
|
|
1267
|
+
style: U,
|
|
1268
|
+
"data-testid": x + "-container",
|
|
1269
1269
|
children: /* @__PURE__ */ o.jsx(
|
|
1270
1270
|
"span",
|
|
1271
1271
|
{
|
|
1272
|
-
...
|
|
1273
|
-
onClick:
|
|
1274
|
-
className:
|
|
1275
|
-
"data-testid":
|
|
1272
|
+
...M,
|
|
1273
|
+
onClick: z,
|
|
1274
|
+
className: N,
|
|
1275
|
+
"data-testid": x + "-content",
|
|
1276
1276
|
ref: r,
|
|
1277
|
-
"aria-disabled":
|
|
1278
|
-
children:
|
|
1277
|
+
"aria-disabled": b,
|
|
1278
|
+
children: q
|
|
1279
1279
|
}
|
|
1280
1280
|
)
|
|
1281
1281
|
}
|
|
1282
1282
|
)
|
|
1283
1283
|
] });
|
|
1284
|
-
}), jr = "_container_op5yl_7", Ir = "_image_op5yl_22", Rr = "_loading_op5yl_34",
|
|
1284
|
+
}), jr = "_container_op5yl_7", Ir = "_image_op5yl_22", Rr = "_loading_op5yl_34", Ke = {
|
|
1285
1285
|
container: jr,
|
|
1286
1286
|
image: Ir,
|
|
1287
1287
|
loading: Rr
|
|
1288
|
-
}, kr = "_loader_isv17_1", Tr = "_spin_isv17_1", Ar = "_accent_isv17_19", Nr = "_neutral_isv17_23", Dr = "_positive_isv17_27", Or = "_negative_isv17_31", Ur = "_gray_isv17_35", Br = "_special_isv17_39", Fr = "_contrast_isv17_43", Pr = "_container_isv17_47", zr = "_overlay_isv17_57",
|
|
1288
|
+
}, kr = "_loader_isv17_1", Tr = "_spin_isv17_1", Ar = "_accent_isv17_19", Nr = "_neutral_isv17_23", Dr = "_positive_isv17_27", Or = "_negative_isv17_31", Ur = "_gray_isv17_35", Br = "_special_isv17_39", Fr = "_contrast_isv17_43", Pr = "_container_isv17_47", zr = "_overlay_isv17_57", Te = {
|
|
1289
1289
|
loader: kr,
|
|
1290
1290
|
spin: Tr,
|
|
1291
1291
|
accent: Ar,
|
|
@@ -1302,7 +1302,7 @@ const yr = 3, mr = (t) => {
|
|
|
1302
1302
|
"size-48": "_size-48_isv17_80",
|
|
1303
1303
|
"size-64": "_size-64_isv17_84",
|
|
1304
1304
|
"size-96": "_size-96_isv17_88"
|
|
1305
|
-
}, It =
|
|
1305
|
+
}, It = te(
|
|
1306
1306
|
({
|
|
1307
1307
|
size: t = 24,
|
|
1308
1308
|
variant: r = "accent",
|
|
@@ -1311,10 +1311,10 @@ const yr = 3, mr = (t) => {
|
|
|
1311
1311
|
style: i,
|
|
1312
1312
|
...n
|
|
1313
1313
|
}, c) => {
|
|
1314
|
-
const _ =
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1314
|
+
const _ = Ie(
|
|
1315
|
+
Te.loader,
|
|
1316
|
+
Te[r],
|
|
1317
|
+
Te[`size-${t}`],
|
|
1318
1318
|
a
|
|
1319
1319
|
);
|
|
1320
1320
|
return /* @__PURE__ */ o.jsx(
|
|
@@ -1340,7 +1340,7 @@ const yr = 3, mr = (t) => {
|
|
|
1340
1340
|
}
|
|
1341
1341
|
);
|
|
1342
1342
|
}
|
|
1343
|
-
), Wr =
|
|
1343
|
+
), Wr = te((t, r) => {
|
|
1344
1344
|
const {
|
|
1345
1345
|
loading: a = !1,
|
|
1346
1346
|
size: s = 24,
|
|
@@ -1350,12 +1350,12 @@ const yr = 3, mr = (t) => {
|
|
|
1350
1350
|
style: _,
|
|
1351
1351
|
"data-testid": d,
|
|
1352
1352
|
...f
|
|
1353
|
-
} = t, p =
|
|
1353
|
+
} = t, p = Ie(Te.container, c);
|
|
1354
1354
|
return /* @__PURE__ */ o.jsxs("div", { ref: r, className: p, style: _, "data-testid": d, ...f, children: [
|
|
1355
1355
|
n,
|
|
1356
|
-
a && /* @__PURE__ */ o.jsx("div", { className:
|
|
1356
|
+
a && /* @__PURE__ */ o.jsx("div", { className: Te.overlay, children: /* @__PURE__ */ o.jsx(It, { size: s, variant: i, "data-testid": `${d}-spinner` }) })
|
|
1357
1357
|
] });
|
|
1358
|
-
}), Vr =
|
|
1358
|
+
}), Vr = te((t, r) => t.children ? /* @__PURE__ */ o.jsx(
|
|
1359
1359
|
Wr,
|
|
1360
1360
|
{
|
|
1361
1361
|
ref: r,
|
|
@@ -1382,71 +1382,70 @@ const yr = 3, mr = (t) => {
|
|
|
1382
1382
|
}
|
|
1383
1383
|
)
|
|
1384
1384
|
}
|
|
1385
|
-
), Tn =
|
|
1385
|
+
), Tn = te((t, r) => {
|
|
1386
1386
|
const {
|
|
1387
1387
|
alt: a = "",
|
|
1388
1388
|
loading: s = "lazy",
|
|
1389
1389
|
src: i,
|
|
1390
1390
|
isLoading: n = !1,
|
|
1391
1391
|
className: c,
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
Je.image,
|
|
1392
|
+
"data-testid": _ = "image",
|
|
1393
|
+
onError: d,
|
|
1394
|
+
onLoad: f,
|
|
1395
|
+
...p
|
|
1396
|
+
} = t, [h, b] = Ne("loading"), y = h === "error", x = (n || h === "loading") && !y, M = h === "loaded" && !n, S = Ie(
|
|
1397
|
+
Ke.image,
|
|
1399
1398
|
{
|
|
1400
|
-
[
|
|
1399
|
+
[Ke.loading]: x
|
|
1401
1400
|
},
|
|
1402
1401
|
c
|
|
1403
|
-
),
|
|
1404
|
-
(
|
|
1405
|
-
b("loaded"),
|
|
1406
|
-
},
|
|
1407
|
-
[p]
|
|
1408
|
-
), D = Ce(
|
|
1409
|
-
(T) => {
|
|
1410
|
-
b("error"), f == null || f(T);
|
|
1402
|
+
), C = Se(
|
|
1403
|
+
(k) => {
|
|
1404
|
+
b("loaded"), f == null || f(k);
|
|
1411
1405
|
},
|
|
1412
1406
|
[f]
|
|
1413
|
-
),
|
|
1407
|
+
), g = Se(
|
|
1408
|
+
(k) => {
|
|
1409
|
+
b("error"), d == null || d(k);
|
|
1410
|
+
},
|
|
1411
|
+
[d]
|
|
1412
|
+
), $ = {
|
|
1414
1413
|
loader: /* @__PURE__ */ o.jsxs(Mt, { children: [
|
|
1415
|
-
/* @__PURE__ */ o.jsx(Vr, { size: 48, variant: "special", "data-testid": `${
|
|
1414
|
+
/* @__PURE__ */ o.jsx(Vr, { size: 48, variant: "special", "data-testid": `${_}-loader` }),
|
|
1416
1415
|
/* @__PURE__ */ o.jsx(
|
|
1417
1416
|
"img",
|
|
1418
1417
|
{
|
|
1419
1418
|
alt: a,
|
|
1420
1419
|
src: i,
|
|
1421
|
-
onLoad:
|
|
1422
|
-
onError:
|
|
1420
|
+
onLoad: C,
|
|
1421
|
+
onError: g,
|
|
1423
1422
|
style: { display: "none" }
|
|
1424
1423
|
}
|
|
1425
1424
|
)
|
|
1426
1425
|
] }),
|
|
1427
|
-
error: /* @__PURE__ */ o.jsx(Hr, { "data-testid": `${
|
|
1426
|
+
error: /* @__PURE__ */ o.jsx(Hr, { "data-testid": `${_}-fallback` }),
|
|
1428
1427
|
image: /* @__PURE__ */ o.jsx(
|
|
1429
1428
|
"img",
|
|
1430
1429
|
{
|
|
1431
1430
|
ref: r,
|
|
1432
1431
|
alt: a,
|
|
1433
|
-
"data-testid":
|
|
1432
|
+
"data-testid": _,
|
|
1434
1433
|
loading: s,
|
|
1435
1434
|
src: i,
|
|
1436
|
-
className:
|
|
1435
|
+
className: S
|
|
1437
1436
|
}
|
|
1438
1437
|
)
|
|
1439
1438
|
};
|
|
1440
|
-
return
|
|
1439
|
+
return Ee(() => {
|
|
1441
1440
|
if (!i) {
|
|
1442
1441
|
b("error");
|
|
1443
1442
|
return;
|
|
1444
1443
|
}
|
|
1445
1444
|
b("loading");
|
|
1446
|
-
}, [i]), /* @__PURE__ */ o.jsxs("div", { className:
|
|
1447
|
-
|
|
1448
|
-
y &&
|
|
1449
|
-
|
|
1445
|
+
}, [i]), /* @__PURE__ */ o.jsxs("div", { className: Ke.container, "data-testid": `${_}-container`, ...p, children: [
|
|
1446
|
+
x && $.loader,
|
|
1447
|
+
y && $.error,
|
|
1448
|
+
M && $.image
|
|
1450
1449
|
] });
|
|
1451
1450
|
}), qr = {}, Rt = ra({
|
|
1452
1451
|
locale: qr
|
|
@@ -1475,11 +1474,11 @@ const yr = 3, mr = (t) => {
|
|
|
1475
1474
|
"div",
|
|
1476
1475
|
{
|
|
1477
1476
|
"data-testid": "ConfigProvider-component",
|
|
1478
|
-
className:
|
|
1477
|
+
className: V(Zr, Yr, Jr, s)
|
|
1479
1478
|
}
|
|
1480
1479
|
),
|
|
1481
1480
|
/* @__PURE__ */ o.jsx(Rt.Provider, { value: { locale: t }, children: a })
|
|
1482
|
-
] })), Dn = {}, Kr = "_tag_1llsi_1", Xr = "_label_1llsi_16", Qr = "_iconWrapper_1llsi_20", es = "_medium_1llsi_27", ts = "_large_1llsi_33", as = "_disabled_1llsi_43", rs = "_neutral_1llsi_47", ss = "_positive_1llsi_53", ns = "_negative_1llsi_59", os = "_warning_1llsi_65", is = "_vivid_1llsi_71", ls = "_special_1llsi_77", cs = "_accent_1llsi_84", ds = "_blue_1llsi_90", us = "_lovely_1llsi_96",
|
|
1481
|
+
] })), Dn = {}, Kr = "_tag_1llsi_1", Xr = "_label_1llsi_16", Qr = "_iconWrapper_1llsi_20", es = "_medium_1llsi_27", ts = "_large_1llsi_33", as = "_disabled_1llsi_43", rs = "_neutral_1llsi_47", ss = "_positive_1llsi_53", ns = "_negative_1llsi_59", os = "_warning_1llsi_65", is = "_vivid_1llsi_71", ls = "_special_1llsi_77", cs = "_accent_1llsi_84", ds = "_blue_1llsi_90", us = "_lovely_1llsi_96", _s = "_dreamy_1llsi_102", we = {
|
|
1483
1482
|
tag: Kr,
|
|
1484
1483
|
label: Xr,
|
|
1485
1484
|
iconWrapper: Qr,
|
|
@@ -1495,8 +1494,8 @@ const yr = 3, mr = (t) => {
|
|
|
1495
1494
|
accent: cs,
|
|
1496
1495
|
blue: ds,
|
|
1497
1496
|
lovely: us,
|
|
1498
|
-
dreamy:
|
|
1499
|
-
}, On =
|
|
1497
|
+
dreamy: _s
|
|
1498
|
+
}, On = te((t, r) => {
|
|
1500
1499
|
const {
|
|
1501
1500
|
className: a,
|
|
1502
1501
|
children: s,
|
|
@@ -1507,34 +1506,34 @@ const yr = 3, mr = (t) => {
|
|
|
1507
1506
|
slotStart: d,
|
|
1508
1507
|
slotEnd: f,
|
|
1509
1508
|
slotStartWrapperProps: p = {},
|
|
1510
|
-
slotEndWrapperProps:
|
|
1511
|
-
"data-testid":
|
|
1512
|
-
} = t, { className:
|
|
1509
|
+
slotEndWrapperProps: h = {},
|
|
1510
|
+
"data-testid": b
|
|
1511
|
+
} = t, { className: y, ...x } = p, { className: M, ...S } = h;
|
|
1513
1512
|
return /* @__PURE__ */ o.jsxs(
|
|
1514
1513
|
"div",
|
|
1515
1514
|
{
|
|
1516
|
-
className:
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1515
|
+
className: V(
|
|
1516
|
+
we.tag,
|
|
1517
|
+
we[n],
|
|
1518
|
+
we[i],
|
|
1520
1519
|
{
|
|
1521
|
-
[
|
|
1522
|
-
[
|
|
1523
|
-
[
|
|
1520
|
+
[we.disabled]: c,
|
|
1521
|
+
[Ae["typography-label-3-regular"]]: n === "medium",
|
|
1522
|
+
[Ae["typography-subtitle-1-semibold"]]: n === "large"
|
|
1524
1523
|
},
|
|
1525
1524
|
a
|
|
1526
1525
|
),
|
|
1527
|
-
"data-testid":
|
|
1526
|
+
"data-testid": b || "tag-component",
|
|
1528
1527
|
ref: r,
|
|
1529
1528
|
children: [
|
|
1530
|
-
d && /* @__PURE__ */ o.jsx("span", { className:
|
|
1531
|
-
_ && /* @__PURE__ */ o.jsx("span", { className:
|
|
1532
|
-
f && /* @__PURE__ */ o.jsx("span", { className:
|
|
1529
|
+
d && /* @__PURE__ */ o.jsx("span", { className: V([we.iconWrapper, y]), ...x, children: d }),
|
|
1530
|
+
_ && /* @__PURE__ */ o.jsx("span", { className: V([we.label]), children: s }),
|
|
1531
|
+
f && /* @__PURE__ */ o.jsx("span", { className: V([we.iconWrapper, M]), ...S, children: f })
|
|
1533
1532
|
]
|
|
1534
1533
|
}
|
|
1535
1534
|
);
|
|
1536
|
-
}),
|
|
1537
|
-
checkbox:
|
|
1535
|
+
}), ps = "_checkbox_qo5f5_43", fs = "_input_qo5f5_59", gs = "_icon_qo5f5_67", hs = "_container_qo5f5_84", bs = "_error_qo5f5_135", ys = "_checkboxWrapper_qo5f5_147", ms = "_medium_qo5f5_201", vs = "_large_qo5f5_206", xs = "_label_qo5f5_247", he = {
|
|
1536
|
+
checkbox: ps,
|
|
1538
1537
|
input: fs,
|
|
1539
1538
|
icon: gs,
|
|
1540
1539
|
container: hs,
|
|
@@ -1609,7 +1608,7 @@ const yr = 3, mr = (t) => {
|
|
|
1609
1608
|
return /* @__PURE__ */ o.jsx(
|
|
1610
1609
|
"div",
|
|
1611
1610
|
{
|
|
1612
|
-
className:
|
|
1611
|
+
className: he.icon,
|
|
1613
1612
|
"data-testid": `${i}-icon`,
|
|
1614
1613
|
"data-checked": r,
|
|
1615
1614
|
"data-disabled": a,
|
|
@@ -1617,7 +1616,7 @@ const yr = 3, mr = (t) => {
|
|
|
1617
1616
|
children: s ? /* @__PURE__ */ o.jsx(ws, { width: n, height: c }) : /* @__PURE__ */ o.jsx(Cs, { width: n, height: c })
|
|
1618
1617
|
}
|
|
1619
1618
|
);
|
|
1620
|
-
}, Un =
|
|
1619
|
+
}, Un = te((t, r) => {
|
|
1621
1620
|
const {
|
|
1622
1621
|
name: a,
|
|
1623
1622
|
value: s,
|
|
@@ -1628,52 +1627,52 @@ const yr = 3, mr = (t) => {
|
|
|
1628
1627
|
disabled: d = !1,
|
|
1629
1628
|
containerClassName: f,
|
|
1630
1629
|
className: p,
|
|
1631
|
-
containerStyle:
|
|
1632
|
-
style:
|
|
1633
|
-
children:
|
|
1634
|
-
clickableLabel:
|
|
1635
|
-
tabIndex:
|
|
1636
|
-
onChange:
|
|
1637
|
-
"data-testid":
|
|
1638
|
-
} = t, [
|
|
1639
|
-
|
|
1640
|
-
|
|
1630
|
+
containerStyle: h,
|
|
1631
|
+
style: b,
|
|
1632
|
+
children: y,
|
|
1633
|
+
clickableLabel: x = !0,
|
|
1634
|
+
tabIndex: M,
|
|
1635
|
+
onChange: S,
|
|
1636
|
+
"data-testid": C = "checkbox"
|
|
1637
|
+
} = t, [g, $] = Ne(!1), k = s ?? g, D = d || c, T = !!_, A = k || n, N = V(he.container, he[i], f), U = V(
|
|
1638
|
+
he.checkbox,
|
|
1639
|
+
he[i],
|
|
1641
1640
|
{
|
|
1642
|
-
[
|
|
1641
|
+
[he.error]: T
|
|
1643
1642
|
},
|
|
1644
1643
|
p
|
|
1645
|
-
),
|
|
1646
|
-
|
|
1647
|
-
},
|
|
1648
|
-
if (
|
|
1649
|
-
|
|
1650
|
-
const B = !
|
|
1651
|
-
|
|
1644
|
+
), q = (j) => {
|
|
1645
|
+
D || ($(j.target.checked), S == null || S(j.target.checked, j));
|
|
1646
|
+
}, z = (j) => {
|
|
1647
|
+
if (j.key === "Enter" && !D) {
|
|
1648
|
+
j.preventDefault();
|
|
1649
|
+
const B = !A;
|
|
1650
|
+
$(B), S == null || S(B);
|
|
1652
1651
|
}
|
|
1653
|
-
},
|
|
1654
|
-
|
|
1655
|
-
},
|
|
1652
|
+
}, O = (j) => {
|
|
1653
|
+
x || j.preventDefault();
|
|
1654
|
+
}, m = (j) => j.stopPropagation();
|
|
1656
1655
|
return /* @__PURE__ */ o.jsxs(
|
|
1657
1656
|
"label",
|
|
1658
1657
|
{
|
|
1659
|
-
className:
|
|
1658
|
+
className: N,
|
|
1660
1659
|
htmlFor: a,
|
|
1661
|
-
style:
|
|
1662
|
-
"data-testid":
|
|
1663
|
-
"data-clickable-label":
|
|
1660
|
+
style: h,
|
|
1661
|
+
"data-testid": C,
|
|
1662
|
+
"data-clickable-label": x,
|
|
1664
1663
|
children: [
|
|
1665
|
-
/* @__PURE__ */ o.jsx("div", { className:
|
|
1664
|
+
/* @__PURE__ */ o.jsx("div", { className: he.checkboxWrapper, children: /* @__PURE__ */ o.jsxs(
|
|
1666
1665
|
"div",
|
|
1667
1666
|
{
|
|
1668
|
-
tabIndex:
|
|
1669
|
-
className:
|
|
1670
|
-
style:
|
|
1671
|
-
onKeyDown:
|
|
1672
|
-
"aria-checked":
|
|
1673
|
-
"aria-disabled":
|
|
1667
|
+
tabIndex: M || 0,
|
|
1668
|
+
className: U,
|
|
1669
|
+
style: b,
|
|
1670
|
+
onKeyDown: z,
|
|
1671
|
+
"aria-checked": A,
|
|
1672
|
+
"aria-disabled": D,
|
|
1674
1673
|
"aria-invalid": T,
|
|
1675
1674
|
"aria-describedby": _ ? `${a}-error` : void 0,
|
|
1676
|
-
"data-testid": `${
|
|
1675
|
+
"data-testid": `${C}-label`,
|
|
1677
1676
|
children: [
|
|
1678
1677
|
/* @__PURE__ */ o.jsx(
|
|
1679
1678
|
"input",
|
|
@@ -1682,15 +1681,15 @@ const yr = 3, mr = (t) => {
|
|
|
1682
1681
|
type: "checkbox",
|
|
1683
1682
|
id: a,
|
|
1684
1683
|
name: a,
|
|
1685
|
-
checked:
|
|
1686
|
-
disabled:
|
|
1687
|
-
className:
|
|
1688
|
-
onChange:
|
|
1689
|
-
onClick:
|
|
1690
|
-
"aria-checked":
|
|
1684
|
+
checked: A,
|
|
1685
|
+
disabled: D,
|
|
1686
|
+
className: he.input,
|
|
1687
|
+
onChange: q,
|
|
1688
|
+
onClick: m,
|
|
1689
|
+
"aria-checked": A,
|
|
1691
1690
|
"aria-invalid": T,
|
|
1692
1691
|
"aria-describedby": _ ? `${a}-error` : void 0,
|
|
1693
|
-
"data-testid": `${
|
|
1692
|
+
"data-testid": `${C}-input`
|
|
1694
1693
|
}
|
|
1695
1694
|
),
|
|
1696
1695
|
/* @__PURE__ */ o.jsx(
|
|
@@ -1698,29 +1697,29 @@ const yr = 3, mr = (t) => {
|
|
|
1698
1697
|
{
|
|
1699
1698
|
name: a,
|
|
1700
1699
|
size: i,
|
|
1701
|
-
isChecked:
|
|
1702
|
-
isDisabled:
|
|
1700
|
+
isChecked: A,
|
|
1701
|
+
isDisabled: D,
|
|
1703
1702
|
indeterminate: n,
|
|
1704
|
-
dataTestId:
|
|
1703
|
+
dataTestId: C
|
|
1705
1704
|
}
|
|
1706
1705
|
)
|
|
1707
1706
|
]
|
|
1708
1707
|
}
|
|
1709
1708
|
) }),
|
|
1710
|
-
|
|
1709
|
+
y && /* @__PURE__ */ o.jsx(
|
|
1711
1710
|
"span",
|
|
1712
1711
|
{
|
|
1713
|
-
"data-testid": `${
|
|
1714
|
-
"data-clickable-label":
|
|
1715
|
-
className:
|
|
1716
|
-
onClick:
|
|
1717
|
-
children:
|
|
1712
|
+
"data-testid": `${C}-label-text`,
|
|
1713
|
+
"data-clickable-label": x,
|
|
1714
|
+
className: he.label,
|
|
1715
|
+
onClick: O,
|
|
1716
|
+
children: y
|
|
1718
1717
|
}
|
|
1719
1718
|
)
|
|
1720
1719
|
]
|
|
1721
1720
|
}
|
|
1722
1721
|
);
|
|
1723
|
-
}), Ls = "_typography_zt7xg_1", Ms = "_disabled_zt7xg_8", $s = "_primary_zt7xg_13", js = "_secondary_zt7xg_18", Is = "_tertiary_zt7xg_23", Rs = "_accent_zt7xg_28", ks = "_positive_zt7xg_38", Ts = "_negative_zt7xg_48", As = "_warning_zt7xg_58", Ns = "_special_zt7xg_68", Ds = "_contrast_zt7xg_78",
|
|
1722
|
+
}), Ls = "_typography_zt7xg_1", Ms = "_disabled_zt7xg_8", $s = "_primary_zt7xg_13", js = "_secondary_zt7xg_18", Is = "_tertiary_zt7xg_23", Rs = "_accent_zt7xg_28", ks = "_positive_zt7xg_38", Ts = "_negative_zt7xg_48", As = "_warning_zt7xg_58", Ns = "_special_zt7xg_68", Ds = "_contrast_zt7xg_78", je = {
|
|
1724
1723
|
typography: Ls,
|
|
1725
1724
|
disabled: Ms,
|
|
1726
1725
|
primary: $s,
|
|
@@ -1756,17 +1755,17 @@ const yr = 3, mr = (t) => {
|
|
|
1756
1755
|
disabled: d = !1,
|
|
1757
1756
|
typographyStyle: f = "primary",
|
|
1758
1757
|
...p
|
|
1759
|
-
},
|
|
1760
|
-
const
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1758
|
+
}, h) => {
|
|
1759
|
+
const b = c || Os[a], y = V(
|
|
1760
|
+
je.typography,
|
|
1761
|
+
Ae[`typography-${t}-${a}-${_}`],
|
|
1762
|
+
je[f],
|
|
1764
1763
|
{
|
|
1765
|
-
[
|
|
1764
|
+
[je.disabled]: d
|
|
1766
1765
|
},
|
|
1767
1766
|
i
|
|
1768
1767
|
);
|
|
1769
|
-
return s ? /* @__PURE__ */ o.jsx(
|
|
1768
|
+
return s ? /* @__PURE__ */ o.jsx(b, { ref: h, className: y, "data-testid": n, ...p, children: s }) : null;
|
|
1770
1769
|
}
|
|
1771
1770
|
);
|
|
1772
1771
|
return r.displayName = `Typography.${t === "title" ? "Title" : "Subtitle"}`, r;
|
|
@@ -1782,21 +1781,21 @@ const yr = 3, mr = (t) => {
|
|
|
1782
1781
|
disabled: d = !1,
|
|
1783
1782
|
typographyStyle: f = "primary",
|
|
1784
1783
|
...p
|
|
1785
|
-
},
|
|
1786
|
-
const
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1784
|
+
}, h) => {
|
|
1785
|
+
const b = c, y = V(
|
|
1786
|
+
je.typography,
|
|
1787
|
+
Ae[`typography-${t}-${a}-${_}`],
|
|
1788
|
+
je[f],
|
|
1790
1789
|
{
|
|
1791
|
-
[
|
|
1790
|
+
[je.disabled]: d
|
|
1792
1791
|
},
|
|
1793
1792
|
i
|
|
1794
1793
|
);
|
|
1795
1794
|
return s ? /* @__PURE__ */ o.jsx(
|
|
1796
|
-
|
|
1795
|
+
b,
|
|
1797
1796
|
{
|
|
1798
|
-
ref:
|
|
1799
|
-
className:
|
|
1797
|
+
ref: h,
|
|
1798
|
+
className: y,
|
|
1800
1799
|
"data-testid": n,
|
|
1801
1800
|
...p,
|
|
1802
1801
|
children: s
|
|
@@ -1810,10 +1809,10 @@ const yr = 3, mr = (t) => {
|
|
|
1810
1809
|
Subtitle: xt("subtitle"),
|
|
1811
1810
|
Label: Ct("label"),
|
|
1812
1811
|
Paragraph: Ct("paragraph")
|
|
1813
|
-
}, Us = "
|
|
1812
|
+
}, Us = "_inputBase_2vlla_85", Bs = "_wrapper_2vlla_95", Fs = "_gripHandle_2vlla_169", Ps = "_error_2vlla_230", zs = "_tabFocused_2vlla_237", Ws = "_disabled_2vlla_262", Vs = "_loading_2vlla_269", Hs = "_label_2vlla_279", qs = "_small_2vlla_292", Gs = "_large_2vlla_299", Zs = "_leftSection_2vlla_306", Ys = "_rightSection_2vlla_315", Js = "_helper_2vlla_351", Ks = "_floatingLabel_2vlla_376", Xs = "_focused_2vlla_434", Qs = "_filled_2vlla_435", en = "_medium_2vlla_469", tn = "_characterLimit_2vlla_510", an = "_input_2vlla_85", rn = "_textarea_2vlla_109", sn = "_truncate_2vlla_637", nn = "_hint_2vlla_719", L = {
|
|
1814
1813
|
inputBase: Us,
|
|
1815
1814
|
wrapper: Bs,
|
|
1816
|
-
"textarea-wrapper": "_textarea-
|
|
1815
|
+
"textarea-wrapper": "_textarea-wrapper_2vlla_109",
|
|
1817
1816
|
gripHandle: Fs,
|
|
1818
1817
|
error: Ps,
|
|
1819
1818
|
tabFocused: zs,
|
|
@@ -1832,13 +1831,15 @@ const yr = 3, mr = (t) => {
|
|
|
1832
1831
|
characterLimit: tn,
|
|
1833
1832
|
input: an,
|
|
1834
1833
|
textarea: rn,
|
|
1835
|
-
"size-small": "_size-
|
|
1836
|
-
"size-medium": "_size-
|
|
1837
|
-
"size-large": "_size-
|
|
1838
|
-
"with-floating-label": "_with-floating-
|
|
1834
|
+
"size-small": "_size-small_2vlla_586",
|
|
1835
|
+
"size-medium": "_size-medium_2vlla_592",
|
|
1836
|
+
"size-large": "_size-large_2vlla_598",
|
|
1837
|
+
"with-floating-label": "_with-floating-label_2vlla_605",
|
|
1839
1838
|
truncate: sn,
|
|
1840
1839
|
hint: nn,
|
|
1841
|
-
"has-hint": "_has-
|
|
1840
|
+
"has-hint": "_has-hint_2vlla_736",
|
|
1841
|
+
"has-suffix": "_has-suffix_2vlla_742",
|
|
1842
|
+
"has-limit": "_has-limit_2vlla_748"
|
|
1842
1843
|
}, on = ({
|
|
1843
1844
|
width: t = 8,
|
|
1844
1845
|
height: r = 8,
|
|
@@ -1907,8 +1908,8 @@ const yr = 3, mr = (t) => {
|
|
|
1907
1908
|
}
|
|
1908
1909
|
);
|
|
1909
1910
|
}, ln = (t, r) => {
|
|
1910
|
-
const a =
|
|
1911
|
-
return
|
|
1911
|
+
const a = ze(null), s = ze(null);
|
|
1912
|
+
return Ee(() => {
|
|
1912
1913
|
const i = r === "textarea" ? a.current : s.current;
|
|
1913
1914
|
i && i.value !== t && (i.value = t || "");
|
|
1914
1915
|
}, [t, r]), {
|
|
@@ -1923,28 +1924,28 @@ const yr = 3, mr = (t) => {
|
|
|
1923
1924
|
if (a.current.style.setProperty("height", "auto", "important"), !t) return;
|
|
1924
1925
|
const n = a.current.scrollHeight + "px";
|
|
1925
1926
|
a.current.style.setProperty("height", n, "important"), a.current.scrollTop = i;
|
|
1926
|
-
const c = a.current.closest(`.${
|
|
1927
|
+
const c = a.current.closest(`.${L.wrapper}`);
|
|
1927
1928
|
c && (c.setAttribute("data-resize", "hug"), c.setAttribute("data-show-grip", "false"));
|
|
1928
1929
|
};
|
|
1929
|
-
return
|
|
1930
|
+
return Ee(s, [t, r]), Ee(() => {
|
|
1930
1931
|
r === "hug" && a.current && s();
|
|
1931
1932
|
}, []), { resizeTextArea: s };
|
|
1932
|
-
}, dn = (t, r, a, s) => ({ handleGripMouseDown:
|
|
1933
|
+
}, dn = (t, r, a, s) => ({ handleGripMouseDown: Se(
|
|
1933
1934
|
(n) => {
|
|
1934
1935
|
if (!t || r || a || !(s === "fixed" || !s)) return;
|
|
1935
1936
|
n.preventDefault(), n.stopPropagation();
|
|
1936
|
-
const c = n.currentTarget.closest(`.${
|
|
1937
|
+
const c = n.currentTarget.closest(`.${L.wrapper}`);
|
|
1937
1938
|
if (!c) return;
|
|
1938
|
-
const _ = n.clientY, d = c.clientHeight, f = (
|
|
1939
|
-
const
|
|
1940
|
-
c.style.height = `${
|
|
1939
|
+
const _ = n.clientY, d = c.clientHeight, f = (h) => {
|
|
1940
|
+
const b = h.clientY - _, y = Math.min(100, d), x = Math.max(y, d + b);
|
|
1941
|
+
c.style.height = `${x}px`;
|
|
1941
1942
|
}, p = () => {
|
|
1942
1943
|
document.removeEventListener("mousemove", f), document.removeEventListener("mouseup", p);
|
|
1943
1944
|
};
|
|
1944
1945
|
document.addEventListener("mousemove", f), document.addEventListener("mouseup", p);
|
|
1945
1946
|
},
|
|
1946
1947
|
[t, r, a, s]
|
|
1947
|
-
) }), wt = 30, un =
|
|
1948
|
+
) }), wt = 30, un = te(
|
|
1948
1949
|
({
|
|
1949
1950
|
component: t = "input",
|
|
1950
1951
|
size: r = "medium",
|
|
@@ -1955,75 +1956,78 @@ const yr = 3, mr = (t) => {
|
|
|
1955
1956
|
onFocus: c,
|
|
1956
1957
|
onBlur: _,
|
|
1957
1958
|
onChange: d,
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1959
|
+
onKeyDown: f,
|
|
1960
|
+
onKeyUp: p,
|
|
1961
|
+
maxLength: h,
|
|
1962
|
+
className: b,
|
|
1963
|
+
style: y,
|
|
1964
|
+
truncate: x = !1,
|
|
1965
|
+
shouldShowFloatingLabelClass: M = !1,
|
|
1966
|
+
"aria-invalid": S,
|
|
1965
1967
|
"aria-errormessage": C,
|
|
1966
|
-
id:
|
|
1967
|
-
resize:
|
|
1968
|
-
...
|
|
1968
|
+
id: g,
|
|
1969
|
+
resize: $,
|
|
1970
|
+
...k
|
|
1969
1971
|
}, D) => {
|
|
1970
|
-
const { textareaRef:
|
|
1971
|
-
if (cn(a,
|
|
1972
|
+
const { textareaRef: T, inputRef: A, currentRef: N } = ln(a, t);
|
|
1973
|
+
if (cn(a, $, T), oa(D, () => N.current, [N]), t === "textarea")
|
|
1972
1974
|
return /* @__PURE__ */ o.jsx(
|
|
1973
1975
|
"textarea",
|
|
1974
1976
|
{
|
|
1975
|
-
ref:
|
|
1976
|
-
id:
|
|
1977
|
+
ref: T,
|
|
1978
|
+
id: g,
|
|
1977
1979
|
value: a,
|
|
1978
1980
|
placeholder: s,
|
|
1979
1981
|
disabled: i || n,
|
|
1980
1982
|
onFocus: c,
|
|
1981
1983
|
onBlur: _,
|
|
1982
1984
|
onChange: d,
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
1985
|
+
onKeyDown: f,
|
|
1986
|
+
onKeyUp: p,
|
|
1987
|
+
maxLength: h,
|
|
1988
|
+
className: V(
|
|
1989
|
+
L.textarea,
|
|
1990
|
+
L[`size-${r}`],
|
|
1991
|
+
M && L["with-floating-label"],
|
|
1992
|
+
b
|
|
1990
1993
|
),
|
|
1991
|
-
style:
|
|
1992
|
-
"aria-invalid":
|
|
1994
|
+
style: y,
|
|
1995
|
+
"aria-invalid": S,
|
|
1993
1996
|
"aria-errormessage": C,
|
|
1994
|
-
"aria-describedby": C ? `${
|
|
1997
|
+
"aria-describedby": C ? `${g}-error` : void 0,
|
|
1995
1998
|
tabIndex: 0,
|
|
1996
|
-
"data-resize":
|
|
1997
|
-
...
|
|
1999
|
+
"data-resize": $,
|
|
2000
|
+
...k
|
|
1998
2001
|
}
|
|
1999
2002
|
);
|
|
2000
2003
|
if (t === "input")
|
|
2001
2004
|
return /* @__PURE__ */ o.jsx(
|
|
2002
2005
|
"input",
|
|
2003
2006
|
{
|
|
2004
|
-
ref:
|
|
2005
|
-
id:
|
|
2007
|
+
ref: A,
|
|
2008
|
+
id: g,
|
|
2006
2009
|
value: a,
|
|
2007
2010
|
placeholder: s,
|
|
2008
2011
|
disabled: i || n,
|
|
2009
2012
|
onFocus: c,
|
|
2010
2013
|
onBlur: _,
|
|
2011
2014
|
onChange: d,
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
|
|
2015
|
+
onKeyDown: f,
|
|
2016
|
+
onKeyUp: p,
|
|
2017
|
+
maxLength: h,
|
|
2018
|
+
className: V(
|
|
2019
|
+
L.input,
|
|
2020
|
+
L[`size-${r}`],
|
|
2021
|
+
M && L["with-floating-label"],
|
|
2022
|
+
x && L.truncate,
|
|
2023
|
+
b
|
|
2020
2024
|
),
|
|
2021
|
-
style:
|
|
2022
|
-
"aria-invalid":
|
|
2025
|
+
style: y,
|
|
2026
|
+
"aria-invalid": S,
|
|
2023
2027
|
"aria-errormessage": C,
|
|
2024
|
-
"aria-describedby": C ? `${
|
|
2028
|
+
"aria-describedby": C ? `${g}-error` : void 0,
|
|
2025
2029
|
tabIndex: 0,
|
|
2026
|
-
...
|
|
2030
|
+
...k
|
|
2027
2031
|
}
|
|
2028
2032
|
);
|
|
2029
2033
|
if (t !== "input" && t !== "textarea")
|
|
@@ -2031,7 +2035,7 @@ const yr = 3, mr = (t) => {
|
|
|
2031
2035
|
`[Input] Недопустимое значение prop 'component': "${String(t)}". Допустимые значения: 'input', 'textarea'`
|
|
2032
2036
|
), null;
|
|
2033
2037
|
}
|
|
2034
|
-
), Tt =
|
|
2038
|
+
), Tt = te(
|
|
2035
2039
|
({
|
|
2036
2040
|
children: t,
|
|
2037
2041
|
size: r = "medium",
|
|
@@ -2044,85 +2048,97 @@ const yr = 3, mr = (t) => {
|
|
|
2044
2048
|
floatingLabelStyles: d,
|
|
2045
2049
|
prefixStyles: f,
|
|
2046
2050
|
suffixStyles: p,
|
|
2047
|
-
labelProps:
|
|
2048
|
-
helperProps:
|
|
2049
|
-
showLimit:
|
|
2050
|
-
maxLength:
|
|
2051
|
-
hint:
|
|
2052
|
-
showHint:
|
|
2053
|
-
showHintOnEmpty:
|
|
2054
|
-
prefix:
|
|
2055
|
-
suffix:
|
|
2051
|
+
labelProps: h,
|
|
2052
|
+
helperProps: b,
|
|
2053
|
+
showLimit: y = !1,
|
|
2054
|
+
maxLength: x,
|
|
2055
|
+
hint: M,
|
|
2056
|
+
showHint: S = !1,
|
|
2057
|
+
showHintOnEmpty: C = !1,
|
|
2058
|
+
prefix: g,
|
|
2059
|
+
suffix: $,
|
|
2060
|
+
onSuffixClick: k,
|
|
2056
2061
|
placeholder: D,
|
|
2057
|
-
showLabel:
|
|
2058
|
-
labelClassName:
|
|
2059
|
-
hasValue:
|
|
2062
|
+
showLabel: T = !0,
|
|
2063
|
+
labelClassName: A,
|
|
2064
|
+
hasValue: N = !1,
|
|
2060
2065
|
helper: U,
|
|
2061
|
-
id:
|
|
2066
|
+
id: q,
|
|
2062
2067
|
value: z = "",
|
|
2063
|
-
resize:
|
|
2064
|
-
showGrip:
|
|
2065
|
-
...
|
|
2066
|
-
},
|
|
2067
|
-
const
|
|
2068
|
-
|
|
2069
|
-
a &&
|
|
2070
|
-
s &&
|
|
2071
|
-
i &&
|
|
2072
|
-
|
|
2068
|
+
resize: O,
|
|
2069
|
+
showGrip: m = !1,
|
|
2070
|
+
...j
|
|
2071
|
+
}, B) => {
|
|
2072
|
+
const G = $t(), H = q || G, Q = S && M && (N || C), ae = M && M.length > wt ? M.substring(0, wt) + "..." : M, J = V(
|
|
2073
|
+
L.wrapper,
|
|
2074
|
+
a && L.error,
|
|
2075
|
+
s && L.disabled,
|
|
2076
|
+
i && L.loading,
|
|
2077
|
+
Q && L["has-hint"],
|
|
2078
|
+
$ && L["has-suffix"],
|
|
2079
|
+
y && L["has-limit"],
|
|
2073
2080
|
n
|
|
2074
|
-
),
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
), { handleGripMouseDown:
|
|
2080
|
-
return /* @__PURE__ */ o.jsxs("div", { ref:
|
|
2081
|
+
), re = V(
|
|
2082
|
+
L.floatingLabel,
|
|
2083
|
+
L[r],
|
|
2084
|
+
N && L.filled,
|
|
2085
|
+
A
|
|
2086
|
+
), { handleGripMouseDown: se } = dn(m, s, i, O);
|
|
2087
|
+
return /* @__PURE__ */ o.jsxs("div", { ref: B, className: L.inputBase, "data-testid": "input-base-wrapper", ...j, children: [
|
|
2081
2088
|
/* @__PURE__ */ o.jsxs(
|
|
2082
2089
|
"div",
|
|
2083
2090
|
{
|
|
2084
|
-
className:
|
|
2091
|
+
className: J,
|
|
2085
2092
|
style: _,
|
|
2086
|
-
"data-resize":
|
|
2087
|
-
"data-show-grip":
|
|
2093
|
+
"data-resize": O,
|
|
2094
|
+
"data-show-grip": m ? "true" : "false",
|
|
2088
2095
|
...c,
|
|
2089
2096
|
children: [
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2097
|
+
g && /* @__PURE__ */ o.jsx("label", { htmlFor: H, className: L.leftSection, style: f, children: g }),
|
|
2098
|
+
$ && /* @__PURE__ */ o.jsx(
|
|
2099
|
+
"label",
|
|
2100
|
+
{
|
|
2101
|
+
htmlFor: H,
|
|
2102
|
+
className: L.rightSection,
|
|
2103
|
+
style: p,
|
|
2104
|
+
onClick: k,
|
|
2105
|
+
children: $
|
|
2106
|
+
}
|
|
2107
|
+
),
|
|
2108
|
+
D && T && /* @__PURE__ */ o.jsx(
|
|
2093
2109
|
"label",
|
|
2094
2110
|
{
|
|
2095
|
-
htmlFor:
|
|
2096
|
-
className:
|
|
2111
|
+
htmlFor: H,
|
|
2112
|
+
className: re,
|
|
2097
2113
|
style: d,
|
|
2098
|
-
...
|
|
2114
|
+
...h,
|
|
2099
2115
|
children: D
|
|
2100
2116
|
}
|
|
2101
2117
|
),
|
|
2102
2118
|
t,
|
|
2103
|
-
|
|
2119
|
+
m && !y && (O === "fixed" || !O) && /* @__PURE__ */ o.jsx(
|
|
2104
2120
|
"div",
|
|
2105
2121
|
{
|
|
2106
|
-
className:
|
|
2107
|
-
onMouseDown:
|
|
2122
|
+
className: L.gripHandle,
|
|
2123
|
+
onMouseDown: se,
|
|
2108
2124
|
role: "button",
|
|
2109
2125
|
tabIndex: -1,
|
|
2110
2126
|
"aria-label": "Изменить размер",
|
|
2111
2127
|
children: /* @__PURE__ */ o.jsx(on, {})
|
|
2112
2128
|
}
|
|
2113
2129
|
),
|
|
2114
|
-
|
|
2130
|
+
Q && /* @__PURE__ */ o.jsx(
|
|
2115
2131
|
"div",
|
|
2116
2132
|
{
|
|
2117
|
-
className:
|
|
2133
|
+
className: V(L.hint, N && L.truncate),
|
|
2118
2134
|
"data-disabled": s || i,
|
|
2119
|
-
children:
|
|
2135
|
+
children: ae
|
|
2120
2136
|
}
|
|
2121
2137
|
),
|
|
2122
|
-
|
|
2138
|
+
y && x && /* @__PURE__ */ o.jsxs("div", { className: L.characterLimit, children: [
|
|
2123
2139
|
(z || "").length,
|
|
2124
2140
|
" из ",
|
|
2125
|
-
|
|
2141
|
+
x
|
|
2126
2142
|
] })
|
|
2127
2143
|
]
|
|
2128
2144
|
}
|
|
@@ -2130,13 +2146,13 @@ const yr = 3, mr = (t) => {
|
|
|
2130
2146
|
U && /* @__PURE__ */ o.jsx(
|
|
2131
2147
|
"div",
|
|
2132
2148
|
{
|
|
2133
|
-
className:
|
|
2134
|
-
|
|
2135
|
-
a &&
|
|
2136
|
-
(s || i) &&
|
|
2149
|
+
className: V(
|
|
2150
|
+
L.helper,
|
|
2151
|
+
a && L.error,
|
|
2152
|
+
(s || i) && L.disabled
|
|
2137
2153
|
),
|
|
2138
|
-
...
|
|
2139
|
-
id: a ? `${
|
|
2154
|
+
...b,
|
|
2155
|
+
id: a ? `${H}-error` : void 0,
|
|
2140
2156
|
children: U
|
|
2141
2157
|
}
|
|
2142
2158
|
)
|
|
@@ -2146,7 +2162,7 @@ const yr = 3, mr = (t) => {
|
|
|
2146
2162
|
Tt.displayName = "InputWrapperComponent";
|
|
2147
2163
|
const St = Object.assign(un, {
|
|
2148
2164
|
Wrapper: Tt
|
|
2149
|
-
}), At =
|
|
2165
|
+
}), At = te(
|
|
2150
2166
|
({
|
|
2151
2167
|
component: t = "input",
|
|
2152
2168
|
size: r = "medium",
|
|
@@ -2159,171 +2175,175 @@ const St = Object.assign(un, {
|
|
|
2159
2175
|
labelClassName: d,
|
|
2160
2176
|
helper: f,
|
|
2161
2177
|
prefix: p,
|
|
2162
|
-
suffix:
|
|
2163
|
-
id:
|
|
2164
|
-
onFocus:
|
|
2165
|
-
onBlur:
|
|
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
|
-
|
|
2192
|
-
|
|
2178
|
+
suffix: h,
|
|
2179
|
+
id: b,
|
|
2180
|
+
onFocus: y,
|
|
2181
|
+
onBlur: x,
|
|
2182
|
+
onKeyDown: M,
|
|
2183
|
+
onSuffixClick: S,
|
|
2184
|
+
onChange: C,
|
|
2185
|
+
value: g = "",
|
|
2186
|
+
wrapperProps: $,
|
|
2187
|
+
wrapperStyles: k,
|
|
2188
|
+
floatingLabelStyles: D,
|
|
2189
|
+
prefixStyles: T,
|
|
2190
|
+
suffixStyles: A,
|
|
2191
|
+
textareaStyles: N,
|
|
2192
|
+
labelProps: U,
|
|
2193
|
+
helperProps: q,
|
|
2194
|
+
showLimit: z = !1,
|
|
2195
|
+
maxLength: O,
|
|
2196
|
+
inputProps: m,
|
|
2197
|
+
hint: j,
|
|
2198
|
+
showHint: B = !1,
|
|
2199
|
+
showHintOnEmpty: G = !1,
|
|
2200
|
+
truncate: H = !1,
|
|
2201
|
+
resize: Q,
|
|
2202
|
+
showGrip: ae = !1,
|
|
2203
|
+
...J
|
|
2204
|
+
}, re) => {
|
|
2205
|
+
const se = $t(), de = b || se, [ve, ie] = Ne(g), ye = g !== void 0 ? g : ve, ue = (ye || "").length > 0, le = ye || "", _e = _ && (r === "large" || t === "textarea") && !p, xe = Se(
|
|
2206
|
+
(Z) => {
|
|
2207
|
+
var Y;
|
|
2208
|
+
i || n || (y == null || y(), (Y = m == null ? void 0 : m.onFocus) == null || Y.call(
|
|
2209
|
+
m,
|
|
2210
|
+
Z
|
|
2193
2211
|
));
|
|
2194
2212
|
},
|
|
2195
|
-
[
|
|
2196
|
-
),
|
|
2197
|
-
(
|
|
2198
|
-
var
|
|
2199
|
-
if (
|
|
2200
|
-
const ce =
|
|
2201
|
-
ce && ce.classList.add(
|
|
2213
|
+
[y, m, i, n]
|
|
2214
|
+
), De = Se(
|
|
2215
|
+
(Z) => {
|
|
2216
|
+
var Y;
|
|
2217
|
+
if (Z.key === "Tab") {
|
|
2218
|
+
const ce = Z.target.closest(`.${L.wrapper}`);
|
|
2219
|
+
ce && ce.classList.add(L.tabFocused);
|
|
2202
2220
|
}
|
|
2203
|
-
(
|
|
2204
|
-
|
|
2205
|
-
|
|
2221
|
+
(Y = m == null ? void 0 : m.onKeyUp) == null || Y.call(
|
|
2222
|
+
m,
|
|
2223
|
+
Z
|
|
2206
2224
|
);
|
|
2207
2225
|
},
|
|
2208
|
-
[
|
|
2209
|
-
),
|
|
2210
|
-
(
|
|
2226
|
+
[m]
|
|
2227
|
+
), We = Se(
|
|
2228
|
+
(Z) => {
|
|
2211
2229
|
var ce;
|
|
2212
|
-
const
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2230
|
+
const Y = Z.target.closest(`.${L.wrapper}`);
|
|
2231
|
+
Y && Y.classList.remove(L.tabFocused), x == null || x(), (ce = m == null ? void 0 : m.onBlur) == null || ce.call(
|
|
2232
|
+
m,
|
|
2233
|
+
Z
|
|
2216
2234
|
);
|
|
2217
2235
|
},
|
|
2218
|
-
[
|
|
2219
|
-
),
|
|
2220
|
-
(
|
|
2236
|
+
[x, m]
|
|
2237
|
+
), Ve = Se(
|
|
2238
|
+
(Z) => {
|
|
2221
2239
|
var ce;
|
|
2222
2240
|
if (i || n) return;
|
|
2223
|
-
const
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2241
|
+
const Y = Z.target.value;
|
|
2242
|
+
ie(Y), C == null || C(Y, Z), (ce = m == null ? void 0 : m.onChange) == null || ce.call(
|
|
2243
|
+
m,
|
|
2244
|
+
Z
|
|
2227
2245
|
);
|
|
2228
2246
|
},
|
|
2229
|
-
[
|
|
2247
|
+
[C, m, i, n]
|
|
2230
2248
|
);
|
|
2231
|
-
return
|
|
2232
|
-
|
|
2233
|
-
}, [
|
|
2249
|
+
return Ee(() => {
|
|
2250
|
+
ie(g || "");
|
|
2251
|
+
}, [g]), /* @__PURE__ */ o.jsx(
|
|
2234
2252
|
St.Wrapper,
|
|
2235
2253
|
{
|
|
2236
|
-
ref:
|
|
2254
|
+
ref: re,
|
|
2237
2255
|
size: r,
|
|
2238
2256
|
error: s,
|
|
2239
2257
|
disabled: i || n,
|
|
2240
2258
|
loading: n,
|
|
2241
|
-
className:
|
|
2242
|
-
wrapperProps:
|
|
2243
|
-
wrapperStyles:
|
|
2244
|
-
floatingLabelStyles:
|
|
2245
|
-
prefixStyles:
|
|
2246
|
-
suffixStyles:
|
|
2247
|
-
labelProps:
|
|
2248
|
-
helperProps:
|
|
2249
|
-
showLimit:
|
|
2250
|
-
maxLength:
|
|
2251
|
-
hint:
|
|
2252
|
-
showHint:
|
|
2253
|
-
showHintOnEmpty:
|
|
2259
|
+
className: V(a, t === "textarea" && L["textarea-wrapper"]),
|
|
2260
|
+
wrapperProps: $,
|
|
2261
|
+
wrapperStyles: k,
|
|
2262
|
+
floatingLabelStyles: D,
|
|
2263
|
+
prefixStyles: T,
|
|
2264
|
+
suffixStyles: A,
|
|
2265
|
+
labelProps: U,
|
|
2266
|
+
helperProps: q,
|
|
2267
|
+
showLimit: z,
|
|
2268
|
+
maxLength: O,
|
|
2269
|
+
hint: j,
|
|
2270
|
+
showHint: B,
|
|
2271
|
+
showHintOnEmpty: G,
|
|
2254
2272
|
prefix: p,
|
|
2255
|
-
suffix:
|
|
2273
|
+
suffix: h,
|
|
2274
|
+
onSuffixClick: S,
|
|
2256
2275
|
placeholder: c,
|
|
2257
2276
|
showLabel: _,
|
|
2258
2277
|
labelClassName: d,
|
|
2259
|
-
hasValue:
|
|
2278
|
+
hasValue: ue,
|
|
2260
2279
|
helper: f,
|
|
2261
|
-
id:
|
|
2262
|
-
value:
|
|
2263
|
-
showGrip:
|
|
2264
|
-
resize:
|
|
2265
|
-
...
|
|
2280
|
+
id: de,
|
|
2281
|
+
value: le,
|
|
2282
|
+
showGrip: ae,
|
|
2283
|
+
resize: Q,
|
|
2284
|
+
...J,
|
|
2266
2285
|
children: /* @__PURE__ */ o.jsx(
|
|
2267
2286
|
St,
|
|
2268
2287
|
{
|
|
2269
2288
|
component: t,
|
|
2270
2289
|
size: r,
|
|
2271
|
-
value:
|
|
2290
|
+
value: le,
|
|
2272
2291
|
placeholder: c,
|
|
2273
2292
|
disabled: i,
|
|
2274
2293
|
loading: n,
|
|
2275
|
-
onFocus:
|
|
2276
|
-
onBlur:
|
|
2277
|
-
onChange:
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
2294
|
+
onFocus: xe,
|
|
2295
|
+
onBlur: We,
|
|
2296
|
+
onChange: Ve,
|
|
2297
|
+
onKeyDown: M,
|
|
2298
|
+
onKeyUp: De,
|
|
2299
|
+
maxLength: O,
|
|
2300
|
+
truncate: H,
|
|
2301
|
+
"data-empty": !ue,
|
|
2302
|
+
shouldShowFloatingLabelClass: _e,
|
|
2303
|
+
style: t === "textarea" ? N : void 0,
|
|
2284
2304
|
"aria-invalid": !!s,
|
|
2285
|
-
"aria-errormessage": s ? `${
|
|
2286
|
-
id:
|
|
2287
|
-
resize:
|
|
2288
|
-
...
|
|
2305
|
+
"aria-errormessage": s ? `${de}-error` : void 0,
|
|
2306
|
+
id: de,
|
|
2307
|
+
resize: Q,
|
|
2308
|
+
...m
|
|
2289
2309
|
}
|
|
2290
2310
|
)
|
|
2291
2311
|
}
|
|
2292
2312
|
);
|
|
2293
2313
|
}
|
|
2294
|
-
),
|
|
2314
|
+
), X = {
|
|
2295
2315
|
SMALL: "small",
|
|
2296
2316
|
MEDIUM: "medium",
|
|
2297
2317
|
LARGE: "large"
|
|
2298
|
-
},
|
|
2318
|
+
}, _n = (t, r, a, s) => {
|
|
2299
2319
|
switch (t) {
|
|
2300
|
-
case
|
|
2320
|
+
case X.LARGE:
|
|
2301
2321
|
return r && a ? "8px 16px 8px 16px" : "16px 16px 16px 16px";
|
|
2302
|
-
case
|
|
2322
|
+
case X.MEDIUM:
|
|
2303
2323
|
return s ? "12px 12px 12px 12px" : "12px 12px 12px 16px";
|
|
2304
|
-
case
|
|
2324
|
+
case X.SMALL:
|
|
2305
2325
|
return "10px 12px 10px 12px";
|
|
2306
2326
|
default:
|
|
2307
2327
|
return "12px 16px 12px 16px";
|
|
2308
2328
|
}
|
|
2309
|
-
},
|
|
2329
|
+
}, pn = (t) => {
|
|
2310
2330
|
switch (t) {
|
|
2311
|
-
case
|
|
2331
|
+
case X.LARGE:
|
|
2312
2332
|
return "56px";
|
|
2313
|
-
case
|
|
2333
|
+
case X.MEDIUM:
|
|
2314
2334
|
return "48px";
|
|
2315
|
-
case
|
|
2335
|
+
case X.SMALL:
|
|
2316
2336
|
return "40px";
|
|
2317
2337
|
default:
|
|
2318
2338
|
return "48px";
|
|
2319
2339
|
}
|
|
2320
2340
|
}, fn = (t) => {
|
|
2321
2341
|
switch (t) {
|
|
2322
|
-
case
|
|
2342
|
+
case X.SMALL:
|
|
2323
2343
|
return 8;
|
|
2324
2344
|
// 8px для small
|
|
2325
|
-
case
|
|
2326
|
-
case
|
|
2345
|
+
case X.MEDIUM:
|
|
2346
|
+
case X.LARGE:
|
|
2327
2347
|
return 12;
|
|
2328
2348
|
// 12px для medium и large
|
|
2329
2349
|
default:
|
|
@@ -2380,13 +2400,13 @@ const St = Object.assign(un, {
|
|
|
2380
2400
|
right: `${a}px`
|
|
2381
2401
|
}
|
|
2382
2402
|
}), yn = (t, r, a, s) => {
|
|
2383
|
-
const i =
|
|
2403
|
+
const i = pn(t), n = _n(t, r, a, s), c = fn(t);
|
|
2384
2404
|
switch (t) {
|
|
2385
|
-
case
|
|
2405
|
+
case X.LARGE:
|
|
2386
2406
|
return gn(i, n, c);
|
|
2387
|
-
case
|
|
2407
|
+
case X.MEDIUM:
|
|
2388
2408
|
return hn(i, n, c);
|
|
2389
|
-
case
|
|
2409
|
+
case X.SMALL:
|
|
2390
2410
|
return bn(i, n, c);
|
|
2391
2411
|
default:
|
|
2392
2412
|
return {
|
|
@@ -2396,7 +2416,7 @@ const St = Object.assign(un, {
|
|
|
2396
2416
|
suffixStyles: {}
|
|
2397
2417
|
};
|
|
2398
2418
|
}
|
|
2399
|
-
}, Fn =
|
|
2419
|
+
}, Fn = te(
|
|
2400
2420
|
({
|
|
2401
2421
|
value: t = "",
|
|
2402
2422
|
onChange: r,
|
|
@@ -2406,191 +2426,194 @@ const St = Object.assign(un, {
|
|
|
2406
2426
|
minLength: n,
|
|
2407
2427
|
autoComplete: c,
|
|
2408
2428
|
autoFocus: _,
|
|
2409
|
-
size: d =
|
|
2429
|
+
size: d = X.MEDIUM,
|
|
2410
2430
|
inputProps: f,
|
|
2411
2431
|
error: p,
|
|
2412
|
-
disabled:
|
|
2413
|
-
loading:
|
|
2414
|
-
helper:
|
|
2415
|
-
prefix:
|
|
2416
|
-
suffix:
|
|
2417
|
-
clearable:
|
|
2418
|
-
id:
|
|
2419
|
-
showLabel:
|
|
2420
|
-
onFocus:
|
|
2421
|
-
onBlur:
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
|
|
2426
|
-
|
|
2427
|
-
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
|
|
2432
|
+
disabled: h,
|
|
2433
|
+
loading: b,
|
|
2434
|
+
helper: y,
|
|
2435
|
+
prefix: x,
|
|
2436
|
+
suffix: M,
|
|
2437
|
+
clearable: S = !1,
|
|
2438
|
+
id: C,
|
|
2439
|
+
showLabel: g = !0,
|
|
2440
|
+
onFocus: $,
|
|
2441
|
+
onBlur: k,
|
|
2442
|
+
onSuffixClick: D,
|
|
2443
|
+
onClear: T,
|
|
2444
|
+
className: A,
|
|
2445
|
+
truncate: N = !0,
|
|
2446
|
+
hint: U,
|
|
2447
|
+
showHint: q = !1,
|
|
2448
|
+
showHintOnEmpty: z = !1,
|
|
2449
|
+
wrapperProps: O,
|
|
2450
|
+
labelProps: m,
|
|
2451
|
+
helperProps: j,
|
|
2452
|
+
...B
|
|
2453
|
+
}, G) => {
|
|
2454
|
+
const H = (t || "").length > 0, Q = d === X.LARGE, ae = !!x, J = Q && g && !x, re = S && H && !(h || b), se = () => {
|
|
2455
|
+
r == null || r(""), T == null || T();
|
|
2456
|
+
}, de = re ? /* @__PURE__ */ o.jsx(
|
|
2435
2457
|
kt,
|
|
2436
2458
|
{
|
|
2437
|
-
size: d ===
|
|
2459
|
+
size: d === X.SMALL ? "xs" : "sm",
|
|
2438
2460
|
color: "var(--icon-secondary)",
|
|
2439
|
-
onClick:
|
|
2461
|
+
onClick: se,
|
|
2440
2462
|
style: { cursor: "pointer" },
|
|
2441
2463
|
"data-testid": "x-icon"
|
|
2442
2464
|
}
|
|
2443
|
-
) :
|
|
2465
|
+
) : M, ve = {
|
|
2444
2466
|
type: a,
|
|
2445
2467
|
minLength: n,
|
|
2446
2468
|
autoComplete: c,
|
|
2447
2469
|
autoFocus: _,
|
|
2448
2470
|
...f
|
|
2449
|
-
},
|
|
2471
|
+
}, ie = yn(d, J, H, ae);
|
|
2450
2472
|
return /* @__PURE__ */ o.jsx(
|
|
2451
2473
|
At,
|
|
2452
2474
|
{
|
|
2453
2475
|
size: d,
|
|
2454
2476
|
error: p,
|
|
2455
|
-
disabled:
|
|
2456
|
-
loading:
|
|
2457
|
-
helper:
|
|
2458
|
-
prefix:
|
|
2459
|
-
suffix:
|
|
2460
|
-
id:
|
|
2461
|
-
showLabel:
|
|
2462
|
-
onFocus:
|
|
2463
|
-
onBlur:
|
|
2477
|
+
disabled: h || b,
|
|
2478
|
+
loading: b,
|
|
2479
|
+
helper: y,
|
|
2480
|
+
prefix: x,
|
|
2481
|
+
suffix: de,
|
|
2482
|
+
id: C,
|
|
2483
|
+
showLabel: J,
|
|
2484
|
+
onFocus: $,
|
|
2485
|
+
onBlur: k,
|
|
2486
|
+
onSuffixClick: D,
|
|
2464
2487
|
onChange: r,
|
|
2465
|
-
value: t
|
|
2488
|
+
value: t,
|
|
2466
2489
|
placeholder: s,
|
|
2467
|
-
className:
|
|
2468
|
-
wrapperStyles:
|
|
2469
|
-
floatingLabelStyles:
|
|
2470
|
-
prefixStyles:
|
|
2471
|
-
suffixStyles:
|
|
2472
|
-
wrapperProps:
|
|
2473
|
-
labelProps:
|
|
2474
|
-
helperProps:
|
|
2490
|
+
className: A,
|
|
2491
|
+
wrapperStyles: ie.wrapperStyles,
|
|
2492
|
+
floatingLabelStyles: ie.floatingLabelStyles,
|
|
2493
|
+
prefixStyles: ie.prefixStyles,
|
|
2494
|
+
suffixStyles: ie.suffixStyles,
|
|
2495
|
+
wrapperProps: O,
|
|
2496
|
+
labelProps: m,
|
|
2497
|
+
helperProps: j,
|
|
2475
2498
|
showLimit: !1,
|
|
2476
2499
|
maxLength: i,
|
|
2477
|
-
inputProps:
|
|
2478
|
-
hint:
|
|
2479
|
-
showHint:
|
|
2480
|
-
showHintOnEmpty:
|
|
2481
|
-
truncate:
|
|
2482
|
-
...
|
|
2500
|
+
inputProps: ve,
|
|
2501
|
+
hint: U,
|
|
2502
|
+
showHint: q,
|
|
2503
|
+
showHintOnEmpty: z,
|
|
2504
|
+
truncate: N,
|
|
2505
|
+
...B
|
|
2483
2506
|
}
|
|
2484
2507
|
);
|
|
2485
2508
|
}
|
|
2486
2509
|
), oe = {
|
|
2487
2510
|
SMALL: "small",
|
|
2488
2511
|
MEDIUM: "medium"
|
|
2489
|
-
},
|
|
2512
|
+
}, Pe = {
|
|
2490
2513
|
SMALL: "12px",
|
|
2491
2514
|
MEDIUM: "16px"
|
|
2492
2515
|
}, mn = {
|
|
2493
2516
|
SMALL: "xs",
|
|
2494
2517
|
MEDIUM: "sm"
|
|
2495
|
-
},
|
|
2518
|
+
}, Be = {
|
|
2496
2519
|
FILL: "fill",
|
|
2497
2520
|
FIXED: "fixed"
|
|
2498
|
-
},
|
|
2521
|
+
}, Xe = {
|
|
2499
2522
|
SMALL: "112px",
|
|
2500
2523
|
MEDIUM: "56px"
|
|
2501
|
-
},
|
|
2524
|
+
}, $e = {
|
|
2502
2525
|
SMALL: "48px",
|
|
2503
2526
|
MEDIUM: "22px"
|
|
2504
|
-
},
|
|
2527
|
+
}, ge = {
|
|
2505
2528
|
SMALL: "12px 12px 12px 12px",
|
|
2506
2529
|
MEDIUM: "16px 16px 16px 16px",
|
|
2507
2530
|
MEDIUM_WITH_PREFIX: "12px 16px 12px 16px",
|
|
2508
2531
|
MEDIUM_FLOATING_LABEL: "8px 16px 8px 16px"
|
|
2509
|
-
},
|
|
2532
|
+
}, be = {
|
|
2510
2533
|
SMALL: 48,
|
|
2511
2534
|
MEDIUM: 56,
|
|
2512
2535
|
LARGE: 112
|
|
2513
2536
|
}, vn = (t, r) => {
|
|
2514
2537
|
if (t === oe.SMALL)
|
|
2515
|
-
return
|
|
2538
|
+
return Xe.SMALL;
|
|
2516
2539
|
if (r)
|
|
2517
2540
|
return `${r}px`;
|
|
2518
2541
|
switch (t) {
|
|
2519
2542
|
case oe.MEDIUM:
|
|
2520
|
-
return
|
|
2543
|
+
return Xe.MEDIUM;
|
|
2521
2544
|
default:
|
|
2522
|
-
return
|
|
2545
|
+
return Xe.MEDIUM;
|
|
2523
2546
|
}
|
|
2524
2547
|
}, xn = (t, r) => {
|
|
2525
2548
|
if (t === oe.SMALL)
|
|
2526
|
-
return
|
|
2549
|
+
return $e.SMALL;
|
|
2527
2550
|
if (r)
|
|
2528
2551
|
switch (r) {
|
|
2529
|
-
case
|
|
2530
|
-
case
|
|
2531
|
-
return
|
|
2532
|
-
case
|
|
2533
|
-
return
|
|
2552
|
+
case be.SMALL:
|
|
2553
|
+
case be.MEDIUM:
|
|
2554
|
+
return $e.MEDIUM;
|
|
2555
|
+
case be.LARGE:
|
|
2556
|
+
return $e.SMALL;
|
|
2534
2557
|
default:
|
|
2535
|
-
return
|
|
2558
|
+
return $e.MEDIUM;
|
|
2536
2559
|
}
|
|
2537
2560
|
switch (t) {
|
|
2538
2561
|
case oe.MEDIUM:
|
|
2539
|
-
return
|
|
2562
|
+
return $e.MEDIUM;
|
|
2540
2563
|
default:
|
|
2541
|
-
return
|
|
2564
|
+
return $e.MEDIUM;
|
|
2542
2565
|
}
|
|
2543
2566
|
}, Cn = (t, r, a) => {
|
|
2544
2567
|
if (t === oe.SMALL)
|
|
2545
|
-
return
|
|
2568
|
+
return ge.SMALL;
|
|
2546
2569
|
if (r)
|
|
2547
2570
|
switch (r) {
|
|
2548
|
-
case
|
|
2549
|
-
return
|
|
2550
|
-
case
|
|
2551
|
-
return a ?
|
|
2552
|
-
case
|
|
2553
|
-
return
|
|
2571
|
+
case be.SMALL:
|
|
2572
|
+
return ge.MEDIUM_WITH_PREFIX;
|
|
2573
|
+
case be.MEDIUM:
|
|
2574
|
+
return a ? ge.MEDIUM_FLOATING_LABEL : ge.MEDIUM;
|
|
2575
|
+
case be.LARGE:
|
|
2576
|
+
return ge.MEDIUM;
|
|
2554
2577
|
default:
|
|
2555
|
-
return
|
|
2578
|
+
return ge.MEDIUM;
|
|
2556
2579
|
}
|
|
2557
2580
|
switch (t) {
|
|
2558
2581
|
case oe.MEDIUM:
|
|
2559
|
-
return a ?
|
|
2582
|
+
return a ? ge.MEDIUM_FLOATING_LABEL : ge.MEDIUM;
|
|
2560
2583
|
default:
|
|
2561
|
-
return
|
|
2584
|
+
return ge.MEDIUM;
|
|
2562
2585
|
}
|
|
2563
2586
|
}, wn = (t, r) => {
|
|
2564
2587
|
if (t === oe.SMALL)
|
|
2565
2588
|
return "small";
|
|
2566
2589
|
if (r)
|
|
2567
2590
|
switch (r) {
|
|
2568
|
-
case
|
|
2591
|
+
case be.SMALL:
|
|
2569
2592
|
return "small";
|
|
2570
|
-
case
|
|
2593
|
+
case be.MEDIUM:
|
|
2571
2594
|
return "medium";
|
|
2572
|
-
case
|
|
2595
|
+
case be.LARGE:
|
|
2573
2596
|
return "medium";
|
|
2574
2597
|
default:
|
|
2575
2598
|
return "medium";
|
|
2576
2599
|
}
|
|
2577
2600
|
return t;
|
|
2578
|
-
}, Sn = (t) => mn[t.toUpperCase()], En = (t) =>
|
|
2601
|
+
}, Sn = (t) => mn[t.toUpperCase()], En = (t) => Pe[t.toUpperCase()], Ln = (t, r, a, s) => {
|
|
2579
2602
|
const i = vn(t, r), n = xn(t, r), c = Cn(t, r, a);
|
|
2580
2603
|
return {
|
|
2581
2604
|
wrapperStyles: {
|
|
2582
2605
|
minHeight: i,
|
|
2583
2606
|
// Для fill resize устанавливаем height: 100%
|
|
2584
|
-
...s ===
|
|
2607
|
+
...s === Be.FILL && { height: "100%" },
|
|
2585
2608
|
// Для fixed resize устанавливаем фиксированную высоту
|
|
2586
|
-
...s ===
|
|
2609
|
+
...s === Be.FIXED && r && { height: i },
|
|
2587
2610
|
boxSizing: "border-box",
|
|
2588
2611
|
padding: c
|
|
2589
2612
|
},
|
|
2590
2613
|
floatingLabelStyles: {
|
|
2591
|
-
left: t === oe.SMALL ?
|
|
2614
|
+
left: t === oe.SMALL ? Pe.SMALL : Pe.MEDIUM,
|
|
2592
2615
|
transformOrigin: "left top",
|
|
2593
|
-
top: r === 112 && a && t === oe.MEDIUM ?
|
|
2616
|
+
top: r === 112 && a && t === oe.MEDIUM ? Pe.MEDIUM : void 0
|
|
2594
2617
|
},
|
|
2595
2618
|
suffixStyles: {
|
|
2596
2619
|
right: En(t)
|
|
@@ -2598,12 +2621,12 @@ const St = Object.assign(un, {
|
|
|
2598
2621
|
textareaStyles: {
|
|
2599
2622
|
minHeight: n,
|
|
2600
2623
|
// Для fill resize flex: 1
|
|
2601
|
-
...s ===
|
|
2624
|
+
...s === Be.FILL && { flex: 1, minHeight: 0 },
|
|
2602
2625
|
// Для fixed resize фиксированная высота
|
|
2603
|
-
...s ===
|
|
2626
|
+
...s === Be.FIXED && r && { height: n }
|
|
2604
2627
|
}
|
|
2605
2628
|
};
|
|
2606
|
-
}, Pn =
|
|
2629
|
+
}, Pn = te(
|
|
2607
2630
|
({
|
|
2608
2631
|
value: t = "",
|
|
2609
2632
|
onChange: r,
|
|
@@ -2616,79 +2639,82 @@ const St = Object.assign(un, {
|
|
|
2616
2639
|
error: d,
|
|
2617
2640
|
disabled: f,
|
|
2618
2641
|
loading: p,
|
|
2619
|
-
helper:
|
|
2620
|
-
suffix:
|
|
2621
|
-
clearable:
|
|
2622
|
-
id:
|
|
2623
|
-
showLabel:
|
|
2624
|
-
onFocus:
|
|
2625
|
-
onBlur:
|
|
2626
|
-
|
|
2627
|
-
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
|
|
2631
|
-
|
|
2632
|
-
|
|
2633
|
-
|
|
2634
|
-
|
|
2635
|
-
|
|
2636
|
-
|
|
2637
|
-
|
|
2638
|
-
|
|
2639
|
-
|
|
2642
|
+
helper: h,
|
|
2643
|
+
suffix: b,
|
|
2644
|
+
clearable: y = !1,
|
|
2645
|
+
id: x,
|
|
2646
|
+
showLabel: M = !0,
|
|
2647
|
+
onFocus: S,
|
|
2648
|
+
onBlur: C,
|
|
2649
|
+
onClear: g,
|
|
2650
|
+
onKeyDown: $,
|
|
2651
|
+
className: k,
|
|
2652
|
+
rows: D = 1,
|
|
2653
|
+
showLimit: T = !1,
|
|
2654
|
+
wrapperProps: A,
|
|
2655
|
+
labelProps: N,
|
|
2656
|
+
helperProps: U,
|
|
2657
|
+
showGrip: q,
|
|
2658
|
+
minHeight: z,
|
|
2659
|
+
resize: O,
|
|
2660
|
+
...m
|
|
2661
|
+
}, j) => {
|
|
2662
|
+
const B = (t || "").length > 0, G = M && !!a && (c === oe.SMALL || z !== 48), H = y && B && !(f || p), Q = () => {
|
|
2663
|
+
r == null || r(""), g == null || g();
|
|
2664
|
+
}, ae = H ? /* @__PURE__ */ o.jsx(
|
|
2640
2665
|
kt,
|
|
2641
2666
|
{
|
|
2642
2667
|
size: Sn(c),
|
|
2643
2668
|
color: "var(--icon-secondary)",
|
|
2644
|
-
onClick:
|
|
2669
|
+
onClick: Q,
|
|
2645
2670
|
style: { cursor: "pointer" },
|
|
2646
2671
|
"data-testid": "x-icon"
|
|
2647
2672
|
}
|
|
2648
|
-
) :
|
|
2649
|
-
rows:
|
|
2673
|
+
) : b, J = Ln(c, z, G && B, O), re = wn(c, z), se = {
|
|
2674
|
+
rows: D,
|
|
2650
2675
|
minLength: i,
|
|
2651
2676
|
autoFocus: n,
|
|
2652
|
-
resize:
|
|
2677
|
+
resize: O,
|
|
2653
2678
|
..._
|
|
2654
2679
|
};
|
|
2655
2680
|
return /* @__PURE__ */ o.jsx(
|
|
2656
2681
|
At,
|
|
2657
2682
|
{
|
|
2658
|
-
ref:
|
|
2683
|
+
ref: j,
|
|
2659
2684
|
component: "textarea",
|
|
2660
|
-
size:
|
|
2685
|
+
size: re,
|
|
2661
2686
|
error: d,
|
|
2662
2687
|
disabled: f || p,
|
|
2663
2688
|
loading: p,
|
|
2664
|
-
helper:
|
|
2665
|
-
suffix:
|
|
2666
|
-
id:
|
|
2667
|
-
showLabel:
|
|
2668
|
-
onFocus:
|
|
2669
|
-
onBlur:
|
|
2689
|
+
helper: h,
|
|
2690
|
+
suffix: ae,
|
|
2691
|
+
id: x,
|
|
2692
|
+
showLabel: G,
|
|
2693
|
+
onFocus: S,
|
|
2694
|
+
onBlur: C,
|
|
2695
|
+
onKeyDown: $,
|
|
2670
2696
|
onChange: r,
|
|
2671
2697
|
value: t || "",
|
|
2672
2698
|
placeholder: a,
|
|
2673
|
-
className:
|
|
2674
|
-
"data-floating-label":
|
|
2675
|
-
wrapperStyles:
|
|
2676
|
-
floatingLabelStyles:
|
|
2677
|
-
suffixStyles:
|
|
2678
|
-
textareaStyles:
|
|
2679
|
-
wrapperProps:
|
|
2680
|
-
labelProps:
|
|
2681
|
-
helperProps:
|
|
2682
|
-
showLimit:
|
|
2699
|
+
className: k,
|
|
2700
|
+
"data-floating-label": G,
|
|
2701
|
+
wrapperStyles: J.wrapperStyles,
|
|
2702
|
+
floatingLabelStyles: J.floatingLabelStyles,
|
|
2703
|
+
suffixStyles: J.suffixStyles,
|
|
2704
|
+
textareaStyles: J.textareaStyles,
|
|
2705
|
+
wrapperProps: A,
|
|
2706
|
+
labelProps: N,
|
|
2707
|
+
helperProps: U,
|
|
2708
|
+
showLimit: T && (z === 112 || c === oe.SMALL),
|
|
2683
2709
|
maxLength: s,
|
|
2684
|
-
inputProps:
|
|
2685
|
-
resize:
|
|
2686
|
-
showGrip:
|
|
2687
|
-
...
|
|
2710
|
+
inputProps: se,
|
|
2711
|
+
resize: O,
|
|
2712
|
+
showGrip: q,
|
|
2713
|
+
...m
|
|
2688
2714
|
}
|
|
2689
2715
|
);
|
|
2690
2716
|
}
|
|
2691
|
-
), Mn = "_helper_1vhgl_16",
|
|
2717
|
+
), Mn = "_helper_1vhgl_16", Qe = {
|
|
2692
2718
|
helper: Mn,
|
|
2693
2719
|
"helper--error": "_helper--error_1vhgl_27",
|
|
2694
2720
|
"helper--disabled": "_helper--disabled_1vhgl_32"
|
|
@@ -2702,10 +2728,10 @@ const St = Object.assign(un, {
|
|
|
2702
2728
|
"aria-label": c,
|
|
2703
2729
|
"aria-describedby": _
|
|
2704
2730
|
}) => {
|
|
2705
|
-
const d = !!r, f =
|
|
2706
|
-
|
|
2707
|
-
d &&
|
|
2708
|
-
i &&
|
|
2731
|
+
const d = !!r, f = V(
|
|
2732
|
+
Qe.helper,
|
|
2733
|
+
d && Qe["helper--error"],
|
|
2734
|
+
i && Qe["helper--disabled"],
|
|
2709
2735
|
a
|
|
2710
2736
|
), p = i ? t : r || t;
|
|
2711
2737
|
return /* @__PURE__ */ o.jsx(
|