skillgrid 0.0.31-dev-40201-checkbox.1191463 → 0.0.31-dev-38682-image.1191562
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as Xt from "react";
|
|
2
|
-
import _t, { forwardRef as K, Fragment as Pe, useState as _e, useEffect as le, useRef as
|
|
2
|
+
import _t, { forwardRef as K, Fragment as Pe, useState as _e, useEffect as le, useRef as He, useCallback as Se, useMemo as Lr, createContext as Yt, useContext as Zt, useLayoutEffect as jr, useImperativeHandle as kr, useId as pt } from "react";
|
|
3
3
|
import { clsx as $ } from "clsx";
|
|
4
4
|
import $r from "rc-tooltip";
|
|
5
5
|
import './index.css';function Er(e) {
|
|
6
6
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
7
7
|
}
|
|
8
|
-
var
|
|
8
|
+
var Ze = { exports: {} }, De = {};
|
|
9
9
|
/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.production.min.js
|
|
@@ -19,13 +19,13 @@ var $t;
|
|
|
19
19
|
function Tr() {
|
|
20
20
|
if ($t) return De;
|
|
21
21
|
$t = 1;
|
|
22
|
-
var e = _t, r = Symbol.for("react.element"), a = Symbol.for("react.fragment"),
|
|
22
|
+
var e = _t, r = Symbol.for("react.element"), a = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, i = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, s = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
23
23
|
function l(c, _, f) {
|
|
24
|
-
var p,
|
|
25
|
-
f !== void 0 && (m = "" + f), _.key !== void 0 && (m = "" + _.key), _.ref !== void 0 && (
|
|
26
|
-
for (p in _)
|
|
27
|
-
if (c && c.defaultProps) for (p in _ = c.defaultProps, _)
|
|
28
|
-
return { $$typeof: r, type: c, key: m, ref:
|
|
24
|
+
var p, g = {}, m = null, h = null;
|
|
25
|
+
f !== void 0 && (m = "" + f), _.key !== void 0 && (m = "" + _.key), _.ref !== void 0 && (h = _.ref);
|
|
26
|
+
for (p in _) n.call(_, p) && !s.hasOwnProperty(p) && (g[p] = _[p]);
|
|
27
|
+
if (c && c.defaultProps) for (p in _ = c.defaultProps, _) g[p] === void 0 && (g[p] = _[p]);
|
|
28
|
+
return { $$typeof: r, type: c, key: m, ref: h, props: g, _owner: i.current };
|
|
29
29
|
}
|
|
30
30
|
return De.Fragment = a, De.jsx = l, De.jsxs = l, De;
|
|
31
31
|
}
|
|
@@ -42,45 +42,45 @@ var We = {};
|
|
|
42
42
|
var Et;
|
|
43
43
|
function Rr() {
|
|
44
44
|
return Et || (Et = 1, process.env.NODE_ENV !== "production" && function() {
|
|
45
|
-
var e = _t, r = Symbol.for("react.element"), a = Symbol.for("react.portal"),
|
|
46
|
-
function
|
|
45
|
+
var e = _t, r = Symbol.for("react.element"), a = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), c = Symbol.for("react.context"), _ = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), g = Symbol.for("react.memo"), m = Symbol.for("react.lazy"), h = Symbol.for("react.offscreen"), x = Symbol.iterator, C = "@@iterator";
|
|
46
|
+
function y(t) {
|
|
47
47
|
if (t === null || typeof t != "object")
|
|
48
48
|
return null;
|
|
49
|
-
var
|
|
50
|
-
return typeof
|
|
49
|
+
var d = x && t[x] || t[C];
|
|
50
|
+
return typeof d == "function" ? d : null;
|
|
51
51
|
}
|
|
52
|
-
var
|
|
53
|
-
function
|
|
52
|
+
var v = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
53
|
+
function u(t) {
|
|
54
54
|
{
|
|
55
|
-
for (var
|
|
55
|
+
for (var d = arguments.length, b = new Array(d > 1 ? d - 1 : 0), k = 1; k < d; k++)
|
|
56
56
|
b[k - 1] = arguments[k];
|
|
57
|
-
|
|
57
|
+
w("error", t, b);
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function w(t, d, b) {
|
|
61
61
|
{
|
|
62
|
-
var k =
|
|
63
|
-
B !== "" && (
|
|
64
|
-
var D = b.map(function(
|
|
65
|
-
return String(
|
|
62
|
+
var k = v.ReactDebugCurrentFrame, B = k.getStackAddendum();
|
|
63
|
+
B !== "" && (d += "%s", b = b.concat([B]));
|
|
64
|
+
var D = b.map(function(A) {
|
|
65
|
+
return String(A);
|
|
66
66
|
});
|
|
67
|
-
D.unshift("Warning: " +
|
|
67
|
+
D.unshift("Warning: " + d), Function.prototype.apply.call(console[t], console, D);
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
|
-
var L = !1,
|
|
71
|
-
|
|
70
|
+
var L = !1, E = !1, j = !1, T = !1, R = !1, I;
|
|
71
|
+
I = Symbol.for("react.module.reference");
|
|
72
72
|
function W(t) {
|
|
73
|
-
return !!(typeof t == "string" || typeof t == "function" || t ===
|
|
73
|
+
return !!(typeof t == "string" || typeof t == "function" || t === n || t === s || R || t === i || t === f || t === p || T || t === h || L || E || j || typeof t == "object" && t !== null && (t.$$typeof === m || t.$$typeof === g || t.$$typeof === l || t.$$typeof === c || t.$$typeof === _ || // This needs to include all possible module reference object
|
|
74
74
|
// types supported by any Flight configuration anywhere since
|
|
75
75
|
// we don't know which Flight build this will end up being used
|
|
76
76
|
// with.
|
|
77
|
-
t.$$typeof ===
|
|
77
|
+
t.$$typeof === I || t.getModuleId !== void 0));
|
|
78
78
|
}
|
|
79
|
-
function q(t,
|
|
79
|
+
function q(t, d, b) {
|
|
80
80
|
var k = t.displayName;
|
|
81
81
|
if (k)
|
|
82
82
|
return k;
|
|
83
|
-
var B =
|
|
83
|
+
var B = d.displayName || d.name || "";
|
|
84
84
|
return B !== "" ? b + "(" + B + ")" : b;
|
|
85
85
|
}
|
|
86
86
|
function P(t) {
|
|
@@ -89,12 +89,12 @@ function Rr() {
|
|
|
89
89
|
function S(t) {
|
|
90
90
|
if (t == null)
|
|
91
91
|
return null;
|
|
92
|
-
if (typeof t.tag == "number" &&
|
|
92
|
+
if (typeof t.tag == "number" && u("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof t == "function")
|
|
93
93
|
return t.displayName || t.name || null;
|
|
94
94
|
if (typeof t == "string")
|
|
95
95
|
return t;
|
|
96
96
|
switch (t) {
|
|
97
|
-
case
|
|
97
|
+
case n:
|
|
98
98
|
return "Fragment";
|
|
99
99
|
case a:
|
|
100
100
|
return "Portal";
|
|
@@ -110,20 +110,20 @@ function Rr() {
|
|
|
110
110
|
if (typeof t == "object")
|
|
111
111
|
switch (t.$$typeof) {
|
|
112
112
|
case c:
|
|
113
|
-
var
|
|
114
|
-
return P(
|
|
113
|
+
var d = t;
|
|
114
|
+
return P(d) + ".Consumer";
|
|
115
115
|
case l:
|
|
116
116
|
var b = t;
|
|
117
117
|
return P(b._context) + ".Provider";
|
|
118
118
|
case _:
|
|
119
119
|
return q(t, t.render, "ForwardRef");
|
|
120
|
-
case
|
|
120
|
+
case g:
|
|
121
121
|
var k = t.displayName || null;
|
|
122
122
|
return k !== null ? k : S(t.type) || "Memo";
|
|
123
123
|
case m: {
|
|
124
|
-
var B = t, D = B._payload,
|
|
124
|
+
var B = t, D = B._payload, A = B._init;
|
|
125
125
|
try {
|
|
126
|
-
return S(
|
|
126
|
+
return S(A(D));
|
|
127
127
|
} catch {
|
|
128
128
|
return null;
|
|
129
129
|
}
|
|
@@ -190,11 +190,11 @@ function Rr() {
|
|
|
190
190
|
})
|
|
191
191
|
});
|
|
192
192
|
}
|
|
193
|
-
z < 0 &&
|
|
193
|
+
z < 0 && u("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
194
194
|
}
|
|
195
195
|
}
|
|
196
|
-
var be =
|
|
197
|
-
function
|
|
196
|
+
var be = v.ReactCurrentDispatcher, Te;
|
|
197
|
+
function Le(t, d, b) {
|
|
198
198
|
{
|
|
199
199
|
if (Te === void 0)
|
|
200
200
|
try {
|
|
@@ -207,13 +207,13 @@ function Rr() {
|
|
|
207
207
|
` + Te + t;
|
|
208
208
|
}
|
|
209
209
|
}
|
|
210
|
-
var
|
|
210
|
+
var Ve = !1, Re;
|
|
211
211
|
{
|
|
212
|
-
var
|
|
213
|
-
Re = new
|
|
212
|
+
var Qe = typeof WeakMap == "function" ? WeakMap : Map;
|
|
213
|
+
Re = new Qe();
|
|
214
214
|
}
|
|
215
|
-
function
|
|
216
|
-
if (!t ||
|
|
215
|
+
function Xe(t, d) {
|
|
216
|
+
if (!t || Ve)
|
|
217
217
|
return "";
|
|
218
218
|
{
|
|
219
219
|
var b = Re.get(t);
|
|
@@ -221,46 +221,46 @@ function Rr() {
|
|
|
221
221
|
return b;
|
|
222
222
|
}
|
|
223
223
|
var k;
|
|
224
|
-
|
|
224
|
+
Ve = !0;
|
|
225
225
|
var B = Error.prepareStackTrace;
|
|
226
226
|
Error.prepareStackTrace = void 0;
|
|
227
227
|
var D;
|
|
228
228
|
D = be.current, be.current = null, ze();
|
|
229
229
|
try {
|
|
230
|
-
if (
|
|
231
|
-
var
|
|
230
|
+
if (d) {
|
|
231
|
+
var A = function() {
|
|
232
232
|
throw Error();
|
|
233
233
|
};
|
|
234
|
-
if (Object.defineProperty(
|
|
234
|
+
if (Object.defineProperty(A.prototype, "props", {
|
|
235
235
|
set: function() {
|
|
236
236
|
throw Error();
|
|
237
237
|
}
|
|
238
238
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
239
239
|
try {
|
|
240
|
-
Reflect.construct(
|
|
241
|
-
} catch (
|
|
242
|
-
k =
|
|
240
|
+
Reflect.construct(A, []);
|
|
241
|
+
} catch (ne) {
|
|
242
|
+
k = ne;
|
|
243
243
|
}
|
|
244
|
-
Reflect.construct(t, [],
|
|
244
|
+
Reflect.construct(t, [], A);
|
|
245
245
|
} else {
|
|
246
246
|
try {
|
|
247
|
-
|
|
248
|
-
} catch (
|
|
249
|
-
k =
|
|
247
|
+
A.call();
|
|
248
|
+
} catch (ne) {
|
|
249
|
+
k = ne;
|
|
250
250
|
}
|
|
251
|
-
t.call(
|
|
251
|
+
t.call(A.prototype);
|
|
252
252
|
}
|
|
253
253
|
} else {
|
|
254
254
|
try {
|
|
255
255
|
throw Error();
|
|
256
|
-
} catch (
|
|
257
|
-
k =
|
|
256
|
+
} catch (ne) {
|
|
257
|
+
k = ne;
|
|
258
258
|
}
|
|
259
259
|
t();
|
|
260
260
|
}
|
|
261
|
-
} catch (
|
|
262
|
-
if (
|
|
263
|
-
for (var N =
|
|
261
|
+
} catch (ne) {
|
|
262
|
+
if (ne && k && typeof ne.stack == "string") {
|
|
263
|
+
for (var N = ne.stack.split(`
|
|
264
264
|
`), re = k.stack.split(`
|
|
265
265
|
`), Y = N.length - 1, Z = re.length - 1; Y >= 1 && Z >= 0 && N[Y] !== re[Z]; )
|
|
266
266
|
Z--;
|
|
@@ -278,81 +278,81 @@ function Rr() {
|
|
|
278
278
|
}
|
|
279
279
|
}
|
|
280
280
|
} finally {
|
|
281
|
-
|
|
281
|
+
Ve = !1, be.current = D, Ee(), Error.prepareStackTrace = B;
|
|
282
282
|
}
|
|
283
|
-
var Ie = t ? t.displayName || t.name : "",
|
|
284
|
-
return typeof t == "function" && Re.set(t,
|
|
283
|
+
var Ie = t ? t.displayName || t.name : "", je = Ie ? Le(Ie) : "";
|
|
284
|
+
return typeof t == "function" && Re.set(t, je), je;
|
|
285
285
|
}
|
|
286
|
-
function
|
|
287
|
-
return
|
|
286
|
+
function et(t, d, b) {
|
|
287
|
+
return Xe(t, !1);
|
|
288
288
|
}
|
|
289
|
-
function
|
|
290
|
-
var
|
|
291
|
-
return !!(
|
|
289
|
+
function tt(t) {
|
|
290
|
+
var d = t.prototype;
|
|
291
|
+
return !!(d && d.isReactComponent);
|
|
292
292
|
}
|
|
293
|
-
function G(t,
|
|
293
|
+
function G(t, d, b) {
|
|
294
294
|
if (t == null)
|
|
295
295
|
return "";
|
|
296
296
|
if (typeof t == "function")
|
|
297
|
-
return
|
|
297
|
+
return Xe(t, tt(t));
|
|
298
298
|
if (typeof t == "string")
|
|
299
|
-
return
|
|
299
|
+
return Le(t);
|
|
300
300
|
switch (t) {
|
|
301
301
|
case f:
|
|
302
|
-
return
|
|
302
|
+
return Le("Suspense");
|
|
303
303
|
case p:
|
|
304
|
-
return
|
|
304
|
+
return Le("SuspenseList");
|
|
305
305
|
}
|
|
306
306
|
if (typeof t == "object")
|
|
307
307
|
switch (t.$$typeof) {
|
|
308
308
|
case _:
|
|
309
|
-
return
|
|
310
|
-
case
|
|
311
|
-
return G(t.type,
|
|
309
|
+
return et(t.render);
|
|
310
|
+
case g:
|
|
311
|
+
return G(t.type, d, b);
|
|
312
312
|
case m: {
|
|
313
313
|
var k = t, B = k._payload, D = k._init;
|
|
314
314
|
try {
|
|
315
|
-
return G(D(B),
|
|
315
|
+
return G(D(B), d, b);
|
|
316
316
|
} catch {
|
|
317
317
|
}
|
|
318
318
|
}
|
|
319
319
|
}
|
|
320
320
|
return "";
|
|
321
321
|
}
|
|
322
|
-
var U = Object.prototype.hasOwnProperty, he = {}, gt =
|
|
323
|
-
function
|
|
322
|
+
var U = Object.prototype.hasOwnProperty, he = {}, gt = v.ReactDebugCurrentFrame;
|
|
323
|
+
function Ye(t) {
|
|
324
324
|
if (t) {
|
|
325
|
-
var
|
|
325
|
+
var d = t._owner, b = G(t.type, t._source, d ? d.type : null);
|
|
326
326
|
gt.setExtraStackFrame(b);
|
|
327
327
|
} else
|
|
328
328
|
gt.setExtraStackFrame(null);
|
|
329
329
|
}
|
|
330
|
-
function ar(t,
|
|
330
|
+
function ar(t, d, b, k, B) {
|
|
331
331
|
{
|
|
332
332
|
var D = Function.call.bind(U);
|
|
333
|
-
for (var
|
|
334
|
-
if (D(t,
|
|
333
|
+
for (var A in t)
|
|
334
|
+
if (D(t, A)) {
|
|
335
335
|
var N = void 0;
|
|
336
336
|
try {
|
|
337
|
-
if (typeof t[
|
|
338
|
-
var re = Error((k || "React class") + ": " + b + " type `" +
|
|
337
|
+
if (typeof t[A] != "function") {
|
|
338
|
+
var re = Error((k || "React class") + ": " + b + " type `" + A + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof t[A] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
339
339
|
throw re.name = "Invariant Violation", re;
|
|
340
340
|
}
|
|
341
|
-
N = t[
|
|
341
|
+
N = t[A](d, A, k, b, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
342
342
|
} catch (Y) {
|
|
343
343
|
N = Y;
|
|
344
344
|
}
|
|
345
|
-
N && !(N instanceof Error) && (
|
|
345
|
+
N && !(N instanceof Error) && (Ye(B), u("%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).", k || "React class", b, A, typeof N), Ye(null)), N instanceof Error && !(N.message in he) && (he[N.message] = !0, Ye(B), u("Failed %s type: %s", b, N.message), Ye(null));
|
|
346
346
|
}
|
|
347
347
|
}
|
|
348
348
|
}
|
|
349
|
-
var
|
|
350
|
-
function
|
|
351
|
-
return
|
|
349
|
+
var nr = Array.isArray;
|
|
350
|
+
function rt(t) {
|
|
351
|
+
return nr(t);
|
|
352
352
|
}
|
|
353
|
-
function
|
|
353
|
+
function or(t) {
|
|
354
354
|
{
|
|
355
|
-
var
|
|
355
|
+
var d = typeof Symbol == "function" && Symbol.toStringTag, b = d && t[Symbol.toStringTag] || t.constructor.name || "Object";
|
|
356
356
|
return b;
|
|
357
357
|
}
|
|
358
358
|
}
|
|
@@ -368,9 +368,9 @@ function Rr() {
|
|
|
368
368
|
}
|
|
369
369
|
function ht(t) {
|
|
370
370
|
if (sr(t))
|
|
371
|
-
return
|
|
371
|
+
return u("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", or(t)), bt(t);
|
|
372
372
|
}
|
|
373
|
-
var mt =
|
|
373
|
+
var mt = v.ReactCurrentOwner, ir = {
|
|
374
374
|
key: !0,
|
|
375
375
|
ref: !0,
|
|
376
376
|
__self: !0,
|
|
@@ -378,27 +378,27 @@ function Rr() {
|
|
|
378
378
|
}, yt, xt;
|
|
379
379
|
function lr(t) {
|
|
380
380
|
if (U.call(t, "ref")) {
|
|
381
|
-
var
|
|
382
|
-
if (
|
|
381
|
+
var d = Object.getOwnPropertyDescriptor(t, "ref").get;
|
|
382
|
+
if (d && d.isReactWarning)
|
|
383
383
|
return !1;
|
|
384
384
|
}
|
|
385
385
|
return t.ref !== void 0;
|
|
386
386
|
}
|
|
387
387
|
function cr(t) {
|
|
388
388
|
if (U.call(t, "key")) {
|
|
389
|
-
var
|
|
390
|
-
if (
|
|
389
|
+
var d = Object.getOwnPropertyDescriptor(t, "key").get;
|
|
390
|
+
if (d && d.isReactWarning)
|
|
391
391
|
return !1;
|
|
392
392
|
}
|
|
393
393
|
return t.key !== void 0;
|
|
394
394
|
}
|
|
395
|
-
function dr(t,
|
|
395
|
+
function dr(t, d) {
|
|
396
396
|
typeof t.ref == "string" && mt.current;
|
|
397
397
|
}
|
|
398
|
-
function ur(t,
|
|
398
|
+
function ur(t, d) {
|
|
399
399
|
{
|
|
400
400
|
var b = function() {
|
|
401
|
-
yt || (yt = !0,
|
|
401
|
+
yt || (yt = !0, u("%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)", d));
|
|
402
402
|
};
|
|
403
403
|
b.isReactWarning = !0, Object.defineProperty(t, "key", {
|
|
404
404
|
get: b,
|
|
@@ -406,10 +406,10 @@ function Rr() {
|
|
|
406
406
|
});
|
|
407
407
|
}
|
|
408
408
|
}
|
|
409
|
-
function _r(t,
|
|
409
|
+
function _r(t, d) {
|
|
410
410
|
{
|
|
411
411
|
var b = function() {
|
|
412
|
-
xt || (xt = !0,
|
|
412
|
+
xt || (xt = !0, u("%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)", d));
|
|
413
413
|
};
|
|
414
414
|
b.isReactWarning = !0, Object.defineProperty(t, "ref", {
|
|
415
415
|
get: b,
|
|
@@ -417,15 +417,15 @@ function Rr() {
|
|
|
417
417
|
});
|
|
418
418
|
}
|
|
419
419
|
}
|
|
420
|
-
var pr = function(t,
|
|
420
|
+
var pr = function(t, d, b, k, B, D, A) {
|
|
421
421
|
var N = {
|
|
422
422
|
// This tag allows us to uniquely identify this as a React Element
|
|
423
423
|
$$typeof: r,
|
|
424
424
|
// Built-in properties that belong on the element
|
|
425
425
|
type: t,
|
|
426
|
-
key:
|
|
426
|
+
key: d,
|
|
427
427
|
ref: b,
|
|
428
|
-
props:
|
|
428
|
+
props: A,
|
|
429
429
|
// Record the component responsible for creating this element.
|
|
430
430
|
_owner: D
|
|
431
431
|
};
|
|
@@ -446,41 +446,41 @@ function Rr() {
|
|
|
446
446
|
value: B
|
|
447
447
|
}), Object.freeze && (Object.freeze(N.props), Object.freeze(N)), N;
|
|
448
448
|
};
|
|
449
|
-
function fr(t,
|
|
449
|
+
function fr(t, d, b, k, B) {
|
|
450
450
|
{
|
|
451
|
-
var D,
|
|
452
|
-
b !== void 0 && (ht(b), N = "" + b), cr(
|
|
453
|
-
for (D in
|
|
454
|
-
U.call(
|
|
451
|
+
var D, A = {}, N = null, re = null;
|
|
452
|
+
b !== void 0 && (ht(b), N = "" + b), cr(d) && (ht(d.key), N = "" + d.key), lr(d) && (re = d.ref, dr(d, B));
|
|
453
|
+
for (D in d)
|
|
454
|
+
U.call(d, D) && !ir.hasOwnProperty(D) && (A[D] = d[D]);
|
|
455
455
|
if (t && t.defaultProps) {
|
|
456
456
|
var Y = t.defaultProps;
|
|
457
457
|
for (D in Y)
|
|
458
|
-
|
|
458
|
+
A[D] === void 0 && (A[D] = Y[D]);
|
|
459
459
|
}
|
|
460
460
|
if (N || re) {
|
|
461
461
|
var Z = typeof t == "function" ? t.displayName || t.name || "Unknown" : t;
|
|
462
|
-
N && ur(
|
|
462
|
+
N && ur(A, Z), re && _r(A, Z);
|
|
463
463
|
}
|
|
464
|
-
return pr(t, N, re, B, k, mt.current,
|
|
464
|
+
return pr(t, N, re, B, k, mt.current, A);
|
|
465
465
|
}
|
|
466
466
|
}
|
|
467
|
-
var
|
|
467
|
+
var at = v.ReactCurrentOwner, vt = v.ReactDebugCurrentFrame;
|
|
468
468
|
function Ne(t) {
|
|
469
469
|
if (t) {
|
|
470
|
-
var
|
|
470
|
+
var d = t._owner, b = G(t.type, t._source, d ? d.type : null);
|
|
471
471
|
vt.setExtraStackFrame(b);
|
|
472
472
|
} else
|
|
473
473
|
vt.setExtraStackFrame(null);
|
|
474
474
|
}
|
|
475
|
-
var
|
|
476
|
-
|
|
475
|
+
var nt;
|
|
476
|
+
nt = !1;
|
|
477
477
|
function ot(t) {
|
|
478
478
|
return typeof t == "object" && t !== null && t.$$typeof === r;
|
|
479
479
|
}
|
|
480
480
|
function wt() {
|
|
481
481
|
{
|
|
482
|
-
if (
|
|
483
|
-
var t = S(
|
|
482
|
+
if (at.current) {
|
|
483
|
+
var t = S(at.current.type);
|
|
484
484
|
if (t)
|
|
485
485
|
return `
|
|
486
486
|
|
|
@@ -495,146 +495,146 @@ Check the render method of \`` + t + "`.";
|
|
|
495
495
|
var Ct = {};
|
|
496
496
|
function br(t) {
|
|
497
497
|
{
|
|
498
|
-
var
|
|
499
|
-
if (!
|
|
498
|
+
var d = wt();
|
|
499
|
+
if (!d) {
|
|
500
500
|
var b = typeof t == "string" ? t : t.displayName || t.name;
|
|
501
|
-
b && (
|
|
501
|
+
b && (d = `
|
|
502
502
|
|
|
503
503
|
Check the top-level render call using <` + b + ">.");
|
|
504
504
|
}
|
|
505
|
-
return
|
|
505
|
+
return d;
|
|
506
506
|
}
|
|
507
507
|
}
|
|
508
|
-
function St(t,
|
|
508
|
+
function St(t, d) {
|
|
509
509
|
{
|
|
510
510
|
if (!t._store || t._store.validated || t.key != null)
|
|
511
511
|
return;
|
|
512
512
|
t._store.validated = !0;
|
|
513
|
-
var b = br(
|
|
513
|
+
var b = br(d);
|
|
514
514
|
if (Ct[b])
|
|
515
515
|
return;
|
|
516
516
|
Ct[b] = !0;
|
|
517
517
|
var k = "";
|
|
518
|
-
t && t._owner && t._owner !==
|
|
518
|
+
t && t._owner && t._owner !== at.current && (k = " It was passed a child from " + S(t._owner.type) + "."), Ne(t), u('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', b, k), Ne(null);
|
|
519
519
|
}
|
|
520
520
|
}
|
|
521
|
-
function Lt(t,
|
|
521
|
+
function Lt(t, d) {
|
|
522
522
|
{
|
|
523
523
|
if (typeof t != "object")
|
|
524
524
|
return;
|
|
525
|
-
if (
|
|
525
|
+
if (rt(t))
|
|
526
526
|
for (var b = 0; b < t.length; b++) {
|
|
527
527
|
var k = t[b];
|
|
528
|
-
ot(k) && St(k,
|
|
528
|
+
ot(k) && St(k, d);
|
|
529
529
|
}
|
|
530
530
|
else if (ot(t))
|
|
531
531
|
t._store && (t._store.validated = !0);
|
|
532
532
|
else if (t) {
|
|
533
|
-
var B =
|
|
533
|
+
var B = y(t);
|
|
534
534
|
if (typeof B == "function" && B !== t.entries)
|
|
535
|
-
for (var D = B.call(t),
|
|
536
|
-
ot(
|
|
535
|
+
for (var D = B.call(t), A; !(A = D.next()).done; )
|
|
536
|
+
ot(A.value) && St(A.value, d);
|
|
537
537
|
}
|
|
538
538
|
}
|
|
539
539
|
}
|
|
540
540
|
function hr(t) {
|
|
541
541
|
{
|
|
542
|
-
var
|
|
543
|
-
if (
|
|
542
|
+
var d = t.type;
|
|
543
|
+
if (d == null || typeof d == "string")
|
|
544
544
|
return;
|
|
545
545
|
var b;
|
|
546
|
-
if (typeof
|
|
547
|
-
b =
|
|
548
|
-
else if (typeof
|
|
546
|
+
if (typeof d == "function")
|
|
547
|
+
b = d.propTypes;
|
|
548
|
+
else if (typeof d == "object" && (d.$$typeof === _ || // Note: Memo only checks outer props here.
|
|
549
549
|
// Inner props are checked in the reconciler.
|
|
550
|
-
|
|
551
|
-
b =
|
|
550
|
+
d.$$typeof === g))
|
|
551
|
+
b = d.propTypes;
|
|
552
552
|
else
|
|
553
553
|
return;
|
|
554
554
|
if (b) {
|
|
555
|
-
var k = S(
|
|
555
|
+
var k = S(d);
|
|
556
556
|
ar(b, t.props, "prop", k, t);
|
|
557
|
-
} else if (
|
|
558
|
-
|
|
559
|
-
var B = S(
|
|
560
|
-
|
|
557
|
+
} else if (d.PropTypes !== void 0 && !nt) {
|
|
558
|
+
nt = !0;
|
|
559
|
+
var B = S(d);
|
|
560
|
+
u("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", B || "Unknown");
|
|
561
561
|
}
|
|
562
|
-
typeof
|
|
562
|
+
typeof d.getDefaultProps == "function" && !d.getDefaultProps.isReactClassApproved && u("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
563
563
|
}
|
|
564
564
|
}
|
|
565
565
|
function mr(t) {
|
|
566
566
|
{
|
|
567
|
-
for (var
|
|
568
|
-
var k =
|
|
567
|
+
for (var d = Object.keys(t.props), b = 0; b < d.length; b++) {
|
|
568
|
+
var k = d[b];
|
|
569
569
|
if (k !== "children" && k !== "key") {
|
|
570
|
-
Ne(t),
|
|
570
|
+
Ne(t), u("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", k), Ne(null);
|
|
571
571
|
break;
|
|
572
572
|
}
|
|
573
573
|
}
|
|
574
|
-
t.ref !== null && (Ne(t),
|
|
574
|
+
t.ref !== null && (Ne(t), u("Invalid attribute `ref` supplied to `React.Fragment`."), Ne(null));
|
|
575
575
|
}
|
|
576
576
|
}
|
|
577
577
|
var jt = {};
|
|
578
|
-
function kt(t,
|
|
578
|
+
function kt(t, d, b, k, B, D) {
|
|
579
579
|
{
|
|
580
|
-
var
|
|
581
|
-
if (!
|
|
580
|
+
var A = W(t);
|
|
581
|
+
if (!A) {
|
|
582
582
|
var N = "";
|
|
583
583
|
(t === void 0 || typeof t == "object" && t !== null && Object.keys(t).length === 0) && (N += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
584
584
|
var re = gr();
|
|
585
585
|
re ? N += re : N += wt();
|
|
586
586
|
var Y;
|
|
587
|
-
t === null ? Y = "null" :
|
|
587
|
+
t === null ? Y = "null" : rt(t) ? Y = "array" : t !== void 0 && t.$$typeof === r ? (Y = "<" + (S(t.type) || "Unknown") + " />", N = " Did you accidentally export a JSX literal instead of a component?") : Y = typeof t, u("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Y, N);
|
|
588
588
|
}
|
|
589
|
-
var Z = fr(t,
|
|
589
|
+
var Z = fr(t, d, b, B, D);
|
|
590
590
|
if (Z == null)
|
|
591
591
|
return Z;
|
|
592
|
-
if (
|
|
593
|
-
var pe =
|
|
592
|
+
if (A) {
|
|
593
|
+
var pe = d.children;
|
|
594
594
|
if (pe !== void 0)
|
|
595
595
|
if (k)
|
|
596
|
-
if (
|
|
596
|
+
if (rt(pe)) {
|
|
597
597
|
for (var Ie = 0; Ie < pe.length; Ie++)
|
|
598
598
|
Lt(pe[Ie], t);
|
|
599
599
|
Object.freeze && Object.freeze(pe);
|
|
600
600
|
} else
|
|
601
|
-
|
|
601
|
+
u("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
602
602
|
else
|
|
603
603
|
Lt(pe, t);
|
|
604
604
|
}
|
|
605
|
-
if (U.call(
|
|
606
|
-
var
|
|
605
|
+
if (U.call(d, "key")) {
|
|
606
|
+
var je = S(t), ne = Object.keys(d).filter(function(Sr) {
|
|
607
607
|
return Sr !== "key";
|
|
608
|
-
}),
|
|
609
|
-
if (!jt[
|
|
610
|
-
var Cr =
|
|
611
|
-
|
|
608
|
+
}), st = ne.length > 0 ? "{key: someKey, " + ne.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
609
|
+
if (!jt[je + st]) {
|
|
610
|
+
var Cr = ne.length > 0 ? "{" + ne.join(": ..., ") + ": ...}" : "{}";
|
|
611
|
+
u(`A props object containing a "key" prop is being spread into JSX:
|
|
612
612
|
let props = %s;
|
|
613
613
|
<%s {...props} />
|
|
614
614
|
React keys must be passed directly to JSX without using spread:
|
|
615
615
|
let props = %s;
|
|
616
|
-
<%s key={someKey} {...props} />`,
|
|
616
|
+
<%s key={someKey} {...props} />`, st, je, Cr, je), jt[je + st] = !0;
|
|
617
617
|
}
|
|
618
618
|
}
|
|
619
|
-
return t ===
|
|
619
|
+
return t === n ? mr(Z) : hr(Z), Z;
|
|
620
620
|
}
|
|
621
621
|
}
|
|
622
|
-
function yr(t,
|
|
623
|
-
return kt(t,
|
|
622
|
+
function yr(t, d, b) {
|
|
623
|
+
return kt(t, d, b, !0);
|
|
624
624
|
}
|
|
625
|
-
function xr(t,
|
|
626
|
-
return kt(t,
|
|
625
|
+
function xr(t, d, b) {
|
|
626
|
+
return kt(t, d, b, !1);
|
|
627
627
|
}
|
|
628
628
|
var vr = xr, wr = yr;
|
|
629
|
-
We.Fragment =
|
|
629
|
+
We.Fragment = n, We.jsx = vr, We.jsxs = wr;
|
|
630
630
|
}()), We;
|
|
631
631
|
}
|
|
632
632
|
var Tt;
|
|
633
633
|
function Nr() {
|
|
634
|
-
return Tt || (Tt = 1, process.env.NODE_ENV === "production" ?
|
|
634
|
+
return Tt || (Tt = 1, process.env.NODE_ENV === "production" ? Ze.exports = Tr() : Ze.exports = Rr()), Ze.exports;
|
|
635
635
|
}
|
|
636
|
-
var
|
|
637
|
-
const Ir = (e) => e.as === "a", Mr = (e) => e.as === void 0 || e.as === "button", Me = (e) => e.displayAs === void 0 || e.displayAs === "button",
|
|
636
|
+
var o = Nr();
|
|
637
|
+
const Ir = (e) => e.as === "a", Mr = (e) => e.as === void 0 || e.as === "button", Me = (e) => e.displayAs === void 0 || e.displayAs === "button", it = (e) => e.displayAs === "link", Or = "_button_6bymk_1", Ar = "_link_6bymk_17", Pr = "_disabled_6bymk_22", Br = "_loading_6bymk_22", zr = "_neutral_6bymk_50", Dr = "_accent_6bymk_54", Wr = "_positive_6bymk_58", Fr = "_negative_6bymk_62", qr = "_contrast_6bymk_66", Hr = "_special_6bymk_70", Vr = "_primary_6bymk_74", Xr = "_secondary_6bymk_75", Yr = "_tertiary_6bymk_76", Zr = "_spaceBetween_6bymk_116", Gr = "_rightGroup_6bymk_116", Ur = "_label_6bymk_136", Jr = "_iconOnly_6bymk_155", Kr = "_stretched_6bymk_171", Qr = "_icon_6bymk_155", ea = "_postfix_6bymk_176", ta = "_underline_6bymk_202", ra = "_warning_6bymk_1082", aa = "_withSubcaption_6bymk_1268", na = "_subcaption_6bymk_1273", oa = "_loader_6bymk_1279", sa = "_spin_6bymk_1", ia = "_l_6bymk_17", la = "_m_6bymk_1318", ca = "_s_6bymk_70", da = "_xs_6bymk_1364", ua = "_iconRight_6bymk_1410", V = {
|
|
638
638
|
button: Or,
|
|
639
639
|
link: Ar,
|
|
640
640
|
disabled: Pr,
|
|
@@ -658,8 +658,8 @@ const Ir = (e) => e.as === "a", Mr = (e) => e.as === void 0 || e.as === "button"
|
|
|
658
658
|
underline: ta,
|
|
659
659
|
warning: ra,
|
|
660
660
|
withSubcaption: aa,
|
|
661
|
-
subcaption:
|
|
662
|
-
loader:
|
|
661
|
+
subcaption: na,
|
|
662
|
+
loader: oa,
|
|
663
663
|
spin: sa,
|
|
664
664
|
l: ia,
|
|
665
665
|
m: la,
|
|
@@ -724,37 +724,37 @@ const ie = {
|
|
|
724
724
|
isLoading: e,
|
|
725
725
|
iconRight: r,
|
|
726
726
|
iconLeft: a,
|
|
727
|
-
children:
|
|
727
|
+
children: n,
|
|
728
728
|
postfix: i,
|
|
729
729
|
subcaption: s,
|
|
730
730
|
size: l,
|
|
731
731
|
isAsButton: c
|
|
732
732
|
}) => {
|
|
733
733
|
if (e && c)
|
|
734
|
-
return /* @__PURE__ */
|
|
734
|
+
return /* @__PURE__ */ o.jsx("span", { className: V.loader, "data-testid": "button-loader", "aria-hidden": "true" });
|
|
735
735
|
const _ = r && c || r && !c && l, f = s && c && l !== "s" && l !== "xs";
|
|
736
|
-
return /* @__PURE__ */
|
|
737
|
-
f && /* @__PURE__ */
|
|
738
|
-
/* @__PURE__ */
|
|
739
|
-
/* @__PURE__ */
|
|
736
|
+
return /* @__PURE__ */ o.jsxs(Pe, { children: [
|
|
737
|
+
f && /* @__PURE__ */ o.jsxs(Pe, { children: [
|
|
738
|
+
/* @__PURE__ */ o.jsx("span", { "data-testid": "button-label", className: V.label, children: n }),
|
|
739
|
+
/* @__PURE__ */ o.jsx("span", { "data-testid": "button-subcaption", className: V.subcaption, children: s })
|
|
740
740
|
] }),
|
|
741
|
-
!f &&
|
|
742
|
-
/* @__PURE__ */
|
|
743
|
-
!c && a && /* @__PURE__ */
|
|
744
|
-
|
|
745
|
-
!c && r && /* @__PURE__ */
|
|
741
|
+
!f && n && /* @__PURE__ */ o.jsxs(Pe, { children: [
|
|
742
|
+
/* @__PURE__ */ o.jsxs("span", { "data-testid": "button-label", className: V.label, children: [
|
|
743
|
+
!c && a && /* @__PURE__ */ o.jsx("span", { "data-testid": "button-left-icon", className: V.icon, children: a }),
|
|
744
|
+
n,
|
|
745
|
+
!c && r && /* @__PURE__ */ o.jsx("span", { "data-testid": "button-icon", className: $(V.icon, V.iconRight), children: r })
|
|
746
746
|
] }),
|
|
747
|
-
c && /* @__PURE__ */
|
|
748
|
-
_ && /* @__PURE__ */
|
|
749
|
-
i && c && /* @__PURE__ */
|
|
747
|
+
c && /* @__PURE__ */ o.jsxs("div", { "data-testid": "button-right-group", className: V.rightGroup, children: [
|
|
748
|
+
_ && /* @__PURE__ */ o.jsx("span", { "data-testid": "button-icon", className: V.icon, children: r }),
|
|
749
|
+
i && c && /* @__PURE__ */ o.jsx("span", { "data-testid": "button-postfix", className: V.postfix, children: i })
|
|
750
750
|
] })
|
|
751
751
|
] }),
|
|
752
|
-
!f && !
|
|
752
|
+
!f && !n && /* @__PURE__ */ o.jsx("span", { "data-testid": "button-icon", className: V.icon, children: r })
|
|
753
753
|
] });
|
|
754
754
|
}, ga = K((e, r) => {
|
|
755
755
|
const {
|
|
756
756
|
mode: a = "primary",
|
|
757
|
-
size:
|
|
757
|
+
size: n = "m",
|
|
758
758
|
buttonStyle: i = Me(e) ? "neutral" : "accent",
|
|
759
759
|
disabled: s = !1,
|
|
760
760
|
displayAs: l = "button",
|
|
@@ -762,31 +762,31 @@ const ie = {
|
|
|
762
762
|
className: _,
|
|
763
763
|
children: f,
|
|
764
764
|
tabIndex: p
|
|
765
|
-
} = e,
|
|
765
|
+
} = e, g = Me(e) ? e.subcaption : void 0, m = Me(e) ? e.postfix : void 0, h = Me(e) ? e.stretched : void 0, x = !(it(e) && e.size === void 0), C = it(e) && x ? e.iconLeft : void 0, y = !!(l === "button" && "loading" in e && e.loading), v = Me(e) ? s : s || y, u = !v && !y, w = x ? c : void 0, L = !!(w && !f), E = typeof h == "object" ? h.justify === "space-between" : void 0, j = it(e) ? fa(e.size ?? "m") : void 0, T = j ? ie[j] : void 0, R = v || y ? -1 : p, I = $(
|
|
766
766
|
V.button,
|
|
767
|
-
V[
|
|
767
|
+
V[n],
|
|
768
768
|
V[a],
|
|
769
769
|
V[i],
|
|
770
|
-
|
|
770
|
+
T,
|
|
771
771
|
{
|
|
772
|
-
[V.disabled]:
|
|
772
|
+
[V.disabled]: v,
|
|
773
773
|
[V.loading]: l === "button" && "loading" in e && e.loading,
|
|
774
|
-
[V.stretched]:
|
|
775
|
-
[V.spaceBetween]:
|
|
776
|
-
[V.withSubcaption]:
|
|
774
|
+
[V.stretched]: h,
|
|
775
|
+
[V.spaceBetween]: E,
|
|
776
|
+
[V.withSubcaption]: g && n !== "s" && n !== "xs",
|
|
777
777
|
[V.iconOnly]: L,
|
|
778
778
|
[V.link]: l === "link",
|
|
779
779
|
[V.underline]: l === "link" && "showUnderline" in e && e.showUnderline
|
|
780
780
|
},
|
|
781
781
|
_
|
|
782
782
|
), W = {
|
|
783
|
-
isLoading:
|
|
784
|
-
iconRight:
|
|
783
|
+
isLoading: y,
|
|
784
|
+
iconRight: w,
|
|
785
785
|
iconLeft: C,
|
|
786
786
|
children: f,
|
|
787
787
|
postfix: m,
|
|
788
|
-
subcaption:
|
|
789
|
-
size:
|
|
788
|
+
subcaption: g,
|
|
789
|
+
size: n,
|
|
790
790
|
isAsButton: Me(e)
|
|
791
791
|
};
|
|
792
792
|
if (Ir(e)) {
|
|
@@ -797,54 +797,54 @@ const ie = {
|
|
|
797
797
|
te.add("noopener").add("noreferrer"), ae = Array.from(te).join(" ");
|
|
798
798
|
}
|
|
799
799
|
const ee = (te) => {
|
|
800
|
-
if (!
|
|
800
|
+
if (!u) {
|
|
801
801
|
te.preventDefault();
|
|
802
802
|
return;
|
|
803
803
|
}
|
|
804
804
|
P == null || P(te);
|
|
805
805
|
};
|
|
806
|
-
return /* @__PURE__ */
|
|
806
|
+
return /* @__PURE__ */ o.jsx(
|
|
807
807
|
"a",
|
|
808
808
|
{
|
|
809
809
|
ref: r,
|
|
810
|
-
className:
|
|
811
|
-
href:
|
|
812
|
-
tabIndex:
|
|
810
|
+
className: I,
|
|
811
|
+
href: u ? q : void 0,
|
|
812
|
+
tabIndex: R,
|
|
813
813
|
onClick: ee,
|
|
814
814
|
"data-testid": F,
|
|
815
|
-
"aria-disabled":
|
|
815
|
+
"aria-disabled": v || y,
|
|
816
816
|
style: S,
|
|
817
817
|
target: ce,
|
|
818
818
|
rel: ae,
|
|
819
819
|
...Q,
|
|
820
|
-
children: /* @__PURE__ */
|
|
820
|
+
children: /* @__PURE__ */ o.jsx(Nt, { ...W })
|
|
821
821
|
}
|
|
822
822
|
);
|
|
823
823
|
}
|
|
824
824
|
if (Mr(e)) {
|
|
825
825
|
const { type: q = "button", onClick: P, style: S, "data-testid": O, ...z } = e, F = Rt(z), X = (Q) => {
|
|
826
|
-
|
|
826
|
+
u && P && P(Q);
|
|
827
827
|
};
|
|
828
|
-
return /* @__PURE__ */
|
|
828
|
+
return /* @__PURE__ */ o.jsx(
|
|
829
829
|
"button",
|
|
830
830
|
{
|
|
831
831
|
ref: r,
|
|
832
832
|
type: q,
|
|
833
|
-
className:
|
|
834
|
-
disabled:
|
|
835
|
-
tabIndex:
|
|
833
|
+
className: I,
|
|
834
|
+
disabled: v,
|
|
835
|
+
tabIndex: R,
|
|
836
836
|
onClick: X,
|
|
837
837
|
"data-testid": O,
|
|
838
|
-
"aria-disabled":
|
|
838
|
+
"aria-disabled": v || y,
|
|
839
839
|
style: S,
|
|
840
840
|
...F,
|
|
841
|
-
children: /* @__PURE__ */
|
|
841
|
+
children: /* @__PURE__ */ o.jsx(Nt, { ...W })
|
|
842
842
|
}
|
|
843
843
|
);
|
|
844
844
|
}
|
|
845
845
|
return null;
|
|
846
846
|
});
|
|
847
|
-
var
|
|
847
|
+
var lt = { exports: {} };
|
|
848
848
|
/*!
|
|
849
849
|
Copyright (c) 2018 Jed Watson.
|
|
850
850
|
Licensed under the MIT License (MIT), see
|
|
@@ -858,11 +858,11 @@ function ba() {
|
|
|
858
858
|
function a() {
|
|
859
859
|
for (var s = "", l = 0; l < arguments.length; l++) {
|
|
860
860
|
var c = arguments[l];
|
|
861
|
-
c && (s = i(s,
|
|
861
|
+
c && (s = i(s, n(c)));
|
|
862
862
|
}
|
|
863
863
|
return s;
|
|
864
864
|
}
|
|
865
|
-
function
|
|
865
|
+
function n(s) {
|
|
866
866
|
if (typeof s == "string" || typeof s == "number")
|
|
867
867
|
return s;
|
|
868
868
|
if (typeof s != "object")
|
|
@@ -881,10 +881,10 @@ function ba() {
|
|
|
881
881
|
}
|
|
882
882
|
e.exports ? (a.default = a, e.exports = a) : window.classNames = a;
|
|
883
883
|
})();
|
|
884
|
-
}(
|
|
884
|
+
}(lt)), lt.exports;
|
|
885
885
|
}
|
|
886
886
|
var ha = ba();
|
|
887
|
-
const
|
|
887
|
+
const $e = /* @__PURE__ */ Er(ha), ma = "_avatar_19ug4_18", ya = "_clickable_19ug4_40", xa = "_icon_19ug4_57", va = "_disabled_19ug4_62", wa = "_loading_19ug4_67", Ca = "_image_19ug4_73", Sa = "_name_19ug4_73", ye = {
|
|
888
888
|
avatar: ma,
|
|
889
889
|
clickable: ya,
|
|
890
890
|
icon: xa,
|
|
@@ -909,11 +909,11 @@ const Le = /* @__PURE__ */ Er(ha), ma = "_avatar_19ug4_18", ya = "_clickable_19u
|
|
|
909
909
|
function La(e) {
|
|
910
910
|
return e < Mt ? `+${e}` : `${Mt}+`;
|
|
911
911
|
}
|
|
912
|
-
function
|
|
912
|
+
function Ke(e) {
|
|
913
913
|
const r = typeof e == "string" ? e : JSON.stringify(e);
|
|
914
914
|
let a = 5381;
|
|
915
|
-
for (let
|
|
916
|
-
const i = r.charCodeAt(
|
|
915
|
+
for (let n = 0; n < r.length; n++) {
|
|
916
|
+
const i = r.charCodeAt(n);
|
|
917
917
|
a = (a << 5) + a + i;
|
|
918
918
|
}
|
|
919
919
|
return a >>> 0;
|
|
@@ -929,8 +929,8 @@ const ja = (e, r, a) => Math.min(Math.max(e, r), a), ka = [
|
|
|
929
929
|
];
|
|
930
930
|
function $a(e, r = ka) {
|
|
931
931
|
if (!e) return "gray";
|
|
932
|
-
const a =
|
|
933
|
-
return r[
|
|
932
|
+
const a = Ke(e), n = Math.abs(a) % r.length;
|
|
933
|
+
return r[n];
|
|
934
934
|
}
|
|
935
935
|
const Ot = 2;
|
|
936
936
|
function Ea(e) {
|
|
@@ -971,10 +971,10 @@ const Ma = "data:image/svg+xml,%3csvg%20opacity='0.9'%20preserveAspectRatio='xMi
|
|
|
971
971
|
female: Oa,
|
|
972
972
|
org: Pa,
|
|
973
973
|
neutral: Aa
|
|
974
|
-
},
|
|
974
|
+
}, Ue = K((e, r) => {
|
|
975
975
|
const {
|
|
976
976
|
style: a,
|
|
977
|
-
size:
|
|
977
|
+
size: n = 40,
|
|
978
978
|
isLoading: i = !1,
|
|
979
979
|
isDisabled: s = !1,
|
|
980
980
|
shape: l = "circle",
|
|
@@ -982,82 +982,82 @@ const Ma = "data:image/svg+xml,%3csvg%20opacity='0.9'%20preserveAspectRatio='xMi
|
|
|
982
982
|
placeholderType: _ = "neutral",
|
|
983
983
|
name: f,
|
|
984
984
|
imgSrc: p,
|
|
985
|
-
imgAlt:
|
|
985
|
+
imgAlt: g,
|
|
986
986
|
icon: m,
|
|
987
|
-
imgProps:
|
|
988
|
-
colorScheme:
|
|
987
|
+
imgProps: h,
|
|
988
|
+
colorScheme: x,
|
|
989
989
|
className: C,
|
|
990
|
-
"data-testid":
|
|
991
|
-
...
|
|
992
|
-
} = e, { onClick:
|
|
990
|
+
"data-testid": y,
|
|
991
|
+
...v
|
|
992
|
+
} = e, { onClick: u, onPointerDown: w } = v, E = !s && !i && (!!u || !!w), [j, T] = _e(!1);
|
|
993
993
|
le(() => {
|
|
994
|
-
p &&
|
|
994
|
+
p && T(!1);
|
|
995
995
|
}, [p]);
|
|
996
|
-
const
|
|
996
|
+
const R = p && !j ? "image" : m ? "icon" : f ? "name" : "placeholder", I = x || R === "name" && $a(f) || "gray", W = Ia(n), q = Ra(n, l), P = $(
|
|
997
997
|
C,
|
|
998
998
|
ye.avatar,
|
|
999
999
|
ye[`variant-${c}`],
|
|
1000
|
-
ye[`color-${
|
|
1000
|
+
ye[`color-${I}`],
|
|
1001
1001
|
ie[W],
|
|
1002
1002
|
{
|
|
1003
1003
|
[ye.disabled]: s,
|
|
1004
1004
|
[ye.loading]: i,
|
|
1005
|
-
[ye.clickable]:
|
|
1005
|
+
[ye.clickable]: E
|
|
1006
1006
|
}
|
|
1007
1007
|
), S = {
|
|
1008
|
-
"--avatar-size": `${
|
|
1008
|
+
"--avatar-size": `${n}px`,
|
|
1009
1009
|
"--avatar-border-radius": `${q}px`,
|
|
1010
1010
|
...a
|
|
1011
1011
|
}, O = {
|
|
1012
|
-
icon: () => /* @__PURE__ */
|
|
1013
|
-
name: () => /* @__PURE__ */
|
|
1012
|
+
icon: () => /* @__PURE__ */ o.jsx("span", { "data-testid": "avatar-icon", title: g || void 0, role: "img", className: ye.icon, children: m == null ? void 0 : m({}) }),
|
|
1013
|
+
name: () => /* @__PURE__ */ o.jsx(
|
|
1014
1014
|
"span",
|
|
1015
1015
|
{
|
|
1016
1016
|
role: "textbox",
|
|
1017
1017
|
"data-testid": "avatar-name",
|
|
1018
1018
|
className: ye.name,
|
|
1019
|
-
title:
|
|
1019
|
+
title: g || void 0,
|
|
1020
1020
|
children: Ea(f || "")
|
|
1021
1021
|
}
|
|
1022
1022
|
),
|
|
1023
|
-
placeholder: () => /* @__PURE__ */
|
|
1023
|
+
placeholder: () => /* @__PURE__ */ o.jsx(
|
|
1024
1024
|
"img",
|
|
1025
1025
|
{
|
|
1026
|
-
...
|
|
1026
|
+
...h,
|
|
1027
1027
|
"data-testid": "avatar-placeholder",
|
|
1028
1028
|
className: ye.image,
|
|
1029
1029
|
src: Ba[_],
|
|
1030
|
-
alt:
|
|
1030
|
+
alt: g || void 0
|
|
1031
1031
|
}
|
|
1032
1032
|
),
|
|
1033
|
-
image: () => /* @__PURE__ */
|
|
1033
|
+
image: () => /* @__PURE__ */ o.jsx(
|
|
1034
1034
|
"img",
|
|
1035
1035
|
{
|
|
1036
1036
|
"data-testid": "avatar-image",
|
|
1037
|
-
...
|
|
1037
|
+
...h,
|
|
1038
1038
|
className: ye.image,
|
|
1039
1039
|
src: p || void 0,
|
|
1040
|
-
alt:
|
|
1041
|
-
onLoad: () =>
|
|
1040
|
+
alt: g || void 0,
|
|
1041
|
+
onLoad: () => T(!1),
|
|
1042
1042
|
onError: (F) => {
|
|
1043
1043
|
var X;
|
|
1044
|
-
|
|
1044
|
+
T(!0), (X = h == null ? void 0 : h.onError) == null || X.call(h, F);
|
|
1045
1045
|
}
|
|
1046
1046
|
}
|
|
1047
1047
|
)
|
|
1048
1048
|
}, z = (F) => {
|
|
1049
|
-
|
|
1049
|
+
E && (u == null || u(F));
|
|
1050
1050
|
};
|
|
1051
|
-
return /* @__PURE__ */
|
|
1051
|
+
return /* @__PURE__ */ o.jsx(
|
|
1052
1052
|
"div",
|
|
1053
1053
|
{
|
|
1054
1054
|
ref: r,
|
|
1055
1055
|
onClick: z,
|
|
1056
1056
|
className: P,
|
|
1057
1057
|
style: S,
|
|
1058
|
-
"data-testid":
|
|
1058
|
+
"data-testid": y,
|
|
1059
1059
|
"aria-disabled": s || i,
|
|
1060
|
-
children: O[
|
|
1060
|
+
children: O[R](null)
|
|
1061
1061
|
}
|
|
1062
1062
|
);
|
|
1063
1063
|
}), za = "_avatarGroup_157g4_1", Da = {
|
|
@@ -1066,17 +1066,17 @@ const Ma = "data:image/svg+xml,%3csvg%20opacity='0.9'%20preserveAspectRatio='xMi
|
|
|
1066
1066
|
if (!e) return null;
|
|
1067
1067
|
let r = e;
|
|
1068
1068
|
for (; r; ) {
|
|
1069
|
-
const
|
|
1070
|
-
if (!Wa(
|
|
1069
|
+
const n = window.getComputedStyle(r).backgroundColor;
|
|
1070
|
+
if (!Wa(n)) return n;
|
|
1071
1071
|
r = r.parentElement;
|
|
1072
1072
|
}
|
|
1073
1073
|
return null;
|
|
1074
1074
|
}, ft = () => {
|
|
1075
|
-
const e =
|
|
1075
|
+
const e = He(null), [r, a] = _e(null);
|
|
1076
1076
|
return le(() => {
|
|
1077
1077
|
if (e.current) {
|
|
1078
|
-
const
|
|
1079
|
-
a(
|
|
1078
|
+
const n = Fa(e.current);
|
|
1079
|
+
a(n);
|
|
1080
1080
|
}
|
|
1081
1081
|
}, []), { ref: e, bgColor: r };
|
|
1082
1082
|
};
|
|
@@ -1103,42 +1103,42 @@ const Va = 2, Xa = (e) => {
|
|
|
1103
1103
|
const {
|
|
1104
1104
|
avatars: r = [],
|
|
1105
1105
|
size: a = 40,
|
|
1106
|
-
overlap:
|
|
1106
|
+
overlap: n = 0.3,
|
|
1107
1107
|
shape: i = "circle",
|
|
1108
1108
|
overflowCount: s = 0,
|
|
1109
1109
|
overflowProps: l,
|
|
1110
1110
|
cutoutBackground: c
|
|
1111
|
-
} = e, f = -(a *
|
|
1111
|
+
} = e, f = -(a * n) + Va, { ref: p, bgColor: g } = ft(), m = c || g || "#ffffff", h = $e(Da.avatarGroup), x = {
|
|
1112
1112
|
"--avatar-cutout-bg": m
|
|
1113
1113
|
};
|
|
1114
|
-
return r.length === 0 ? null : /* @__PURE__ */
|
|
1115
|
-
r.map((C,
|
|
1114
|
+
return r.length === 0 ? null : /* @__PURE__ */ o.jsxs("div", { className: h, ref: p, style: x, children: [
|
|
1115
|
+
r.map((C, y) => {
|
|
1116
1116
|
if (C.wrapper) {
|
|
1117
|
-
const
|
|
1118
|
-
return /* @__PURE__ */
|
|
1117
|
+
const v = C.wrapper;
|
|
1118
|
+
return /* @__PURE__ */ o.jsx(
|
|
1119
1119
|
"div",
|
|
1120
1120
|
{
|
|
1121
1121
|
style: {
|
|
1122
1122
|
marginRight: f
|
|
1123
1123
|
},
|
|
1124
|
-
children: /* @__PURE__ */
|
|
1124
|
+
children: /* @__PURE__ */ o.jsx(v, { children: /* @__PURE__ */ o.jsx(Ue, { size: a, shape: i, ...C }) })
|
|
1125
1125
|
},
|
|
1126
|
-
|
|
1126
|
+
Ke(C) + y
|
|
1127
1127
|
);
|
|
1128
1128
|
}
|
|
1129
|
-
return /* @__PURE__ */
|
|
1129
|
+
return /* @__PURE__ */ o.jsx(
|
|
1130
1130
|
"div",
|
|
1131
1131
|
{
|
|
1132
1132
|
style: {
|
|
1133
1133
|
marginRight: f
|
|
1134
1134
|
},
|
|
1135
|
-
children: /* @__PURE__ */
|
|
1135
|
+
children: /* @__PURE__ */ o.jsx(Ue, { size: a, shape: i, ...C })
|
|
1136
1136
|
},
|
|
1137
|
-
|
|
1137
|
+
Ke(C) + y
|
|
1138
1138
|
);
|
|
1139
1139
|
}),
|
|
1140
|
-
s > 0 && /* @__PURE__ */
|
|
1141
|
-
|
|
1140
|
+
s > 0 && /* @__PURE__ */ o.jsx("div", { style: { marginRight: f }, children: /* @__PURE__ */ o.jsx(
|
|
1141
|
+
Ue,
|
|
1142
1142
|
{
|
|
1143
1143
|
size: a,
|
|
1144
1144
|
shape: i,
|
|
@@ -1149,7 +1149,7 @@ const Va = 2, Xa = (e) => {
|
|
|
1149
1149
|
}
|
|
1150
1150
|
) })
|
|
1151
1151
|
] });
|
|
1152
|
-
},
|
|
1152
|
+
}, Pl = Object.assign(Ue, {
|
|
1153
1153
|
Group: Xa
|
|
1154
1154
|
}), Ya = "_wrapper_ecbsu_5", Za = "_badge__container_ecbsu_6", Ga = "_badge__content_ecbsu_7", Ua = "_interactive_ecbsu_20", Ja = "_disabled_ecbsu_21", Ka = "_icon_ecbsu_22", xe = {
|
|
1155
1155
|
wrapper: Ya,
|
|
@@ -1192,7 +1192,7 @@ const Va = 2, Xa = (e) => {
|
|
|
1192
1192
|
}, Qa = K((e, r) => {
|
|
1193
1193
|
const {
|
|
1194
1194
|
icon: a,
|
|
1195
|
-
children:
|
|
1195
|
+
children: n,
|
|
1196
1196
|
variant: i = "filled",
|
|
1197
1197
|
label: s,
|
|
1198
1198
|
isHidden: l = !1,
|
|
@@ -1200,13 +1200,13 @@ const Va = 2, Xa = (e) => {
|
|
|
1200
1200
|
size: _ = 20,
|
|
1201
1201
|
position: f = "top-right",
|
|
1202
1202
|
positionOffset: p = { x: 0, y: 0 },
|
|
1203
|
-
cutoutBackground:
|
|
1203
|
+
cutoutBackground: g,
|
|
1204
1204
|
isDisabled: m,
|
|
1205
|
-
className:
|
|
1206
|
-
"data-testid":
|
|
1205
|
+
className: h,
|
|
1206
|
+
"data-testid": x = "badge",
|
|
1207
1207
|
...C
|
|
1208
|
-
} = e, { onClick:
|
|
1209
|
-
|
|
1208
|
+
} = e, { onClick: y, onPointerDown: v } = C, { ref: u, bgColor: w } = ft(), L = g || w, j = !m && (!!y || !!v), T = $e(xe.badge__container, xe[`position-${f}`]), R = $e(
|
|
1209
|
+
h,
|
|
1210
1210
|
xe.badge__content,
|
|
1211
1211
|
xe[`color-${c}`],
|
|
1212
1212
|
xe[`variant-${i}`],
|
|
@@ -1215,30 +1215,30 @@ const Va = 2, Xa = (e) => {
|
|
|
1215
1215
|
[xe.icon]: !!a,
|
|
1216
1216
|
[xe.interactive]: j
|
|
1217
1217
|
}
|
|
1218
|
-
),
|
|
1218
|
+
), I = {
|
|
1219
1219
|
"--badge-height": `${_}px`,
|
|
1220
1220
|
"--badge-offset-x": `${p.x}px`,
|
|
1221
1221
|
"--badge-offset-y": `${p.y}px`,
|
|
1222
1222
|
...L && { "--badge-cutout-bg": L },
|
|
1223
1223
|
...i === "transparent" && { "--badge-cutout-bg": "transparent" }
|
|
1224
1224
|
}, W = (a == null ? void 0 : a({})) || s, q = (P) => {
|
|
1225
|
-
j && (
|
|
1225
|
+
j && (y == null || y(P));
|
|
1226
1226
|
};
|
|
1227
|
-
return /* @__PURE__ */
|
|
1228
|
-
|
|
1229
|
-
!l && /* @__PURE__ */
|
|
1227
|
+
return /* @__PURE__ */ o.jsxs("div", { className: xe.wrapper, ref: u, "data-testid": x + "-wrapper", children: [
|
|
1228
|
+
n,
|
|
1229
|
+
!l && /* @__PURE__ */ o.jsx(
|
|
1230
1230
|
"span",
|
|
1231
1231
|
{
|
|
1232
|
-
className:
|
|
1233
|
-
style:
|
|
1234
|
-
"data-testid":
|
|
1235
|
-
children: /* @__PURE__ */
|
|
1232
|
+
className: T,
|
|
1233
|
+
style: I,
|
|
1234
|
+
"data-testid": x + "-container",
|
|
1235
|
+
children: /* @__PURE__ */ o.jsx(
|
|
1236
1236
|
"span",
|
|
1237
1237
|
{
|
|
1238
1238
|
...C,
|
|
1239
1239
|
onClick: q,
|
|
1240
|
-
className:
|
|
1241
|
-
"data-testid":
|
|
1240
|
+
className: R,
|
|
1241
|
+
"data-testid": x + "-content",
|
|
1242
1242
|
ref: r,
|
|
1243
1243
|
"aria-disabled": m,
|
|
1244
1244
|
children: W
|
|
@@ -1247,22 +1247,23 @@ const Va = 2, Xa = (e) => {
|
|
|
1247
1247
|
}
|
|
1248
1248
|
)
|
|
1249
1249
|
] });
|
|
1250
|
-
}),
|
|
1251
|
-
container:
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1250
|
+
}), en = "_container_yn8yz_7", tn = "_loading_yn8yz_17", rn = "_error_yn8yz_18", an = "_image_yn8yz_22", Fe = {
|
|
1251
|
+
container: en,
|
|
1252
|
+
loading: tn,
|
|
1253
|
+
error: rn,
|
|
1254
|
+
image: an
|
|
1255
|
+
}, nn = "_loader_isv17_1", on = "_spin_isv17_1", sn = "_accent_isv17_19", ln = "_neutral_isv17_23", cn = "_positive_isv17_27", dn = "_negative_isv17_31", un = "_gray_isv17_35", _n = "_special_isv17_39", pn = "_contrast_isv17_43", fn = "_container_isv17_47", gn = "_overlay_isv17_57", qe = {
|
|
1256
|
+
loader: nn,
|
|
1257
|
+
spin: on,
|
|
1258
|
+
accent: sn,
|
|
1259
|
+
neutral: ln,
|
|
1260
|
+
positive: cn,
|
|
1261
|
+
negative: dn,
|
|
1262
|
+
gray: un,
|
|
1263
|
+
special: _n,
|
|
1264
|
+
contrast: pn,
|
|
1265
|
+
container: fn,
|
|
1266
|
+
overlay: gn,
|
|
1266
1267
|
"size-16": "_size-16_isv17_72",
|
|
1267
1268
|
"size-24": "_size-24_isv17_76",
|
|
1268
1269
|
"size-48": "_size-48_isv17_80",
|
|
@@ -1273,17 +1274,17 @@ const Va = 2, Xa = (e) => {
|
|
|
1273
1274
|
size: e = 24,
|
|
1274
1275
|
variant: r = "accent",
|
|
1275
1276
|
className: a,
|
|
1276
|
-
"data-testid":
|
|
1277
|
+
"data-testid": n = "loader",
|
|
1277
1278
|
style: i,
|
|
1278
1279
|
...s
|
|
1279
1280
|
}, l) => {
|
|
1280
|
-
const c =
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1281
|
+
const c = $e(
|
|
1282
|
+
qe.loader,
|
|
1283
|
+
qe[r],
|
|
1284
|
+
qe[`size-${e}`],
|
|
1284
1285
|
a
|
|
1285
1286
|
);
|
|
1286
|
-
return /* @__PURE__ */
|
|
1287
|
+
return /* @__PURE__ */ o.jsx(
|
|
1287
1288
|
"svg",
|
|
1288
1289
|
{
|
|
1289
1290
|
ref: l,
|
|
@@ -1291,10 +1292,10 @@ const Va = 2, Xa = (e) => {
|
|
|
1291
1292
|
fill: "none",
|
|
1292
1293
|
viewBox: "0 0 16 16",
|
|
1293
1294
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1294
|
-
"data-testid":
|
|
1295
|
+
"data-testid": n,
|
|
1295
1296
|
style: i,
|
|
1296
1297
|
...s,
|
|
1297
|
-
children: /* @__PURE__ */
|
|
1298
|
+
children: /* @__PURE__ */ o.jsx(
|
|
1298
1299
|
"path",
|
|
1299
1300
|
{
|
|
1300
1301
|
d: "M14 8C14 11.3137 11.3137 14 8 14C4.68629 14 2 11.3137 2 8C2 4.68629 4.68629 2 8 2",
|
|
@@ -1306,28 +1307,28 @@ const Va = 2, Xa = (e) => {
|
|
|
1306
1307
|
}
|
|
1307
1308
|
);
|
|
1308
1309
|
}
|
|
1309
|
-
),
|
|
1310
|
+
), bn = K((e, r) => {
|
|
1310
1311
|
const {
|
|
1311
1312
|
loading: a = !1,
|
|
1312
|
-
size:
|
|
1313
|
+
size: n = 24,
|
|
1313
1314
|
variant: i = "accent",
|
|
1314
1315
|
children: s,
|
|
1315
1316
|
className: l,
|
|
1316
1317
|
style: c,
|
|
1317
1318
|
"data-testid": _,
|
|
1318
1319
|
...f
|
|
1319
|
-
} = e, p =
|
|
1320
|
-
return /* @__PURE__ */
|
|
1320
|
+
} = e, p = $e(qe.container, l);
|
|
1321
|
+
return /* @__PURE__ */ o.jsxs("div", { ref: r, className: p, style: c, "data-testid": _, ...f, children: [
|
|
1321
1322
|
s,
|
|
1322
|
-
a && /* @__PURE__ */
|
|
1323
|
+
a && /* @__PURE__ */ o.jsx("div", { className: qe.overlay, children: /* @__PURE__ */ o.jsx(Gt, { size: n, variant: i, "data-testid": `${_}-spinner` }) })
|
|
1323
1324
|
] });
|
|
1324
|
-
}),
|
|
1325
|
-
|
|
1325
|
+
}), hn = K((e, r) => e.children ? /* @__PURE__ */ o.jsx(
|
|
1326
|
+
bn,
|
|
1326
1327
|
{
|
|
1327
1328
|
ref: r,
|
|
1328
1329
|
...e
|
|
1329
1330
|
}
|
|
1330
|
-
) : /* @__PURE__ */
|
|
1331
|
+
) : /* @__PURE__ */ o.jsx(Gt, { ref: r, ...e })), mn = ({ width: e = 48, height: r = 48, className: a, "data-testid": n }) => /* @__PURE__ */ o.jsx(
|
|
1331
1332
|
"svg",
|
|
1332
1333
|
{
|
|
1333
1334
|
width: e,
|
|
@@ -1336,8 +1337,8 @@ const Va = 2, Xa = (e) => {
|
|
|
1336
1337
|
fill: "none",
|
|
1337
1338
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1338
1339
|
className: a,
|
|
1339
|
-
"data-testid":
|
|
1340
|
-
children: /* @__PURE__ */
|
|
1340
|
+
"data-testid": n,
|
|
1341
|
+
children: /* @__PURE__ */ o.jsx(
|
|
1341
1342
|
"path",
|
|
1342
1343
|
{
|
|
1343
1344
|
d: "M32.4 42H13.8627C12.6511 42 12.0453 42 11.7648 41.7604C11.5214 41.5525 11.3922 41.2407 11.4173 40.9215C11.4462 40.5538 11.8746 40.1254 12.7314 39.2686L29.7373 22.2627C30.5293 21.4707 30.9253 21.0747 31.382 20.9263C31.7837 20.7958 32.2163 20.7958 32.618 20.9263C33.0747 21.0747 33.4707 21.4707 34.2627 22.2627L42 30V32.4M32.4 42C35.7603 42 37.4405 42 38.7239 41.346C39.8529 40.7708 40.7708 39.8529 41.346 38.7239C42 37.4405 42 35.7603 42 32.4M32.4 42H15.6C12.2397 42 10.5595 42 9.27606 41.346C8.14708 40.7708 7.2292 39.8529 6.65396 38.7239C6 37.4405 6 35.7603 6 32.4V15.6C6 12.2397 6 10.5595 6.65396 9.27606C7.2292 8.14708 8.14708 7.2292 9.27606 6.65396C10.5595 6 12.2397 6 15.6 6H32.4C35.7603 6 37.4405 6 38.7239 6.65396C39.8529 7.2292 40.7708 8.14708 41.346 9.27606C42 10.5595 42 12.2397 42 15.6V32.4M21 17C21 19.2091 19.2091 21 17 21C14.7909 21 13 19.2091 13 17C13 14.7909 14.7909 13 17 13C19.2091 13 21 14.7909 21 17Z",
|
|
@@ -1348,109 +1349,125 @@ const Va = 2, Xa = (e) => {
|
|
|
1348
1349
|
}
|
|
1349
1350
|
)
|
|
1350
1351
|
}
|
|
1351
|
-
),
|
|
1352
|
+
), Bl = K((e, r) => {
|
|
1352
1353
|
const {
|
|
1353
1354
|
alt: a = "",
|
|
1354
|
-
loading:
|
|
1355
|
+
loading: n = "lazy",
|
|
1355
1356
|
src: i,
|
|
1356
1357
|
isLoading: s = !1,
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1358
|
+
style: l,
|
|
1359
|
+
className: c,
|
|
1360
|
+
containerProps: _,
|
|
1361
|
+
"data-testid": f = "image",
|
|
1362
|
+
onError: p,
|
|
1363
|
+
onLoad: g,
|
|
1364
|
+
...m
|
|
1365
|
+
} = e, { className: h, ...x } = _ ?? {}, [C, y] = _e("loading"), v = C === "error", u = (s || C === "loading") && !v, w = C === "loaded" && !s, L = $(
|
|
1366
|
+
Fe.container,
|
|
1367
|
+
{ [Fe.loading]: u && !w, [Fe.error]: v && !w },
|
|
1368
|
+
h
|
|
1369
|
+
), E = $(
|
|
1370
|
+
Fe.image,
|
|
1364
1371
|
{
|
|
1365
|
-
[
|
|
1372
|
+
[Fe.loading]: u
|
|
1366
1373
|
},
|
|
1367
|
-
|
|
1368
|
-
),
|
|
1369
|
-
(
|
|
1370
|
-
|
|
1374
|
+
c
|
|
1375
|
+
), j = Se(
|
|
1376
|
+
(I) => {
|
|
1377
|
+
y("loaded"), g == null || g(I);
|
|
1371
1378
|
},
|
|
1372
|
-
[
|
|
1373
|
-
),
|
|
1374
|
-
(
|
|
1375
|
-
|
|
1379
|
+
[g]
|
|
1380
|
+
), T = Se(
|
|
1381
|
+
(I) => {
|
|
1382
|
+
y("error"), p == null || p(I);
|
|
1376
1383
|
},
|
|
1377
|
-
[
|
|
1378
|
-
),
|
|
1379
|
-
loader: /* @__PURE__ */
|
|
1380
|
-
/* @__PURE__ */
|
|
1381
|
-
/* @__PURE__ */
|
|
1384
|
+
[p]
|
|
1385
|
+
), R = {
|
|
1386
|
+
loader: /* @__PURE__ */ o.jsxs(Pe, { children: [
|
|
1387
|
+
/* @__PURE__ */ o.jsx(hn, { size: 48, variant: "special", "data-testid": `${f}-loader` }),
|
|
1388
|
+
/* @__PURE__ */ o.jsx(
|
|
1382
1389
|
"img",
|
|
1383
1390
|
{
|
|
1384
1391
|
alt: a,
|
|
1385
1392
|
src: i,
|
|
1386
|
-
onLoad:
|
|
1387
|
-
onError:
|
|
1393
|
+
onLoad: j,
|
|
1394
|
+
onError: T,
|
|
1388
1395
|
style: { display: "none" }
|
|
1389
1396
|
}
|
|
1390
1397
|
)
|
|
1391
1398
|
] }),
|
|
1392
|
-
error: /* @__PURE__ */
|
|
1393
|
-
image: /* @__PURE__ */
|
|
1399
|
+
error: /* @__PURE__ */ o.jsx(mn, { "data-testid": `${f}-fallback` }),
|
|
1400
|
+
image: /* @__PURE__ */ o.jsx(
|
|
1394
1401
|
"img",
|
|
1395
1402
|
{
|
|
1396
1403
|
ref: r,
|
|
1397
1404
|
alt: a,
|
|
1398
|
-
"data-testid":
|
|
1399
|
-
loading:
|
|
1405
|
+
"data-testid": f,
|
|
1406
|
+
loading: n,
|
|
1400
1407
|
src: i,
|
|
1401
|
-
className:
|
|
1408
|
+
className: E,
|
|
1409
|
+
...m
|
|
1402
1410
|
}
|
|
1403
1411
|
)
|
|
1404
1412
|
};
|
|
1405
1413
|
return le(() => {
|
|
1406
1414
|
if (!i) {
|
|
1407
|
-
|
|
1415
|
+
y("error");
|
|
1408
1416
|
return;
|
|
1409
1417
|
}
|
|
1410
|
-
|
|
1411
|
-
}, [i]), /* @__PURE__ */
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1418
|
+
y("loading");
|
|
1419
|
+
}, [i]), /* @__PURE__ */ o.jsxs(
|
|
1420
|
+
"div",
|
|
1421
|
+
{
|
|
1422
|
+
className: L,
|
|
1423
|
+
"data-testid": `${f}-container`,
|
|
1424
|
+
style: l,
|
|
1425
|
+
...x,
|
|
1426
|
+
children: [
|
|
1427
|
+
u && R.loader,
|
|
1428
|
+
v && R.error,
|
|
1429
|
+
w && R.image
|
|
1430
|
+
]
|
|
1431
|
+
}
|
|
1432
|
+
);
|
|
1433
|
+
}), yn = {}, Ut = Yt({
|
|
1434
|
+
locale: yn
|
|
1435
|
+
}), xn = () => {
|
|
1419
1436
|
const e = Zt(Ut);
|
|
1420
1437
|
if (!e)
|
|
1421
1438
|
throw new Error("useConfig must be used within a ConfigProvider");
|
|
1422
1439
|
return e;
|
|
1423
|
-
},
|
|
1424
|
-
const { locale: e } =
|
|
1440
|
+
}, zl = () => {
|
|
1441
|
+
const { locale: e } = xn();
|
|
1425
1442
|
return e;
|
|
1426
|
-
},
|
|
1427
|
-
base:
|
|
1428
|
-
content:
|
|
1429
|
-
background:
|
|
1430
|
-
button:
|
|
1431
|
-
link:
|
|
1432
|
-
input:
|
|
1433
|
-
suffix:
|
|
1434
|
-
prefix:
|
|
1435
|
-
tooltip:
|
|
1436
|
-
hint:
|
|
1437
|
-
dropdown:
|
|
1438
|
-
popover:
|
|
1439
|
-
modalBackdrop:
|
|
1440
|
-
modal:
|
|
1441
|
-
overlay:
|
|
1442
|
-
drawer:
|
|
1443
|
-
notification:
|
|
1444
|
-
alert:
|
|
1445
|
-
toast:
|
|
1446
|
-
loading:
|
|
1447
|
-
error:
|
|
1448
|
-
critical:
|
|
1449
|
-
},
|
|
1443
|
+
}, vn = {}, wn = {}, Cn = {}, Sn = {}, Ln = {}, jn = "_base_1p0qo_50", kn = "_content_1p0qo_54", $n = "_background_1p0qo_58", En = "_button_1p0qo_62", Tn = "_link_1p0qo_66", Rn = "_input_1p0qo_70", Nn = "_suffix_1p0qo_74", In = "_prefix_1p0qo_78", Mn = "_tooltip_1p0qo_82", On = "_hint_1p0qo_86", An = "_dropdown_1p0qo_90", Pn = "_popover_1p0qo_94", Bn = "_modalBackdrop_1p0qo_98", zn = "_modal_1p0qo_98", Dn = "_overlay_1p0qo_106", Wn = "_drawer_1p0qo_110", Fn = "_notification_1p0qo_114", qn = "_alert_1p0qo_118", Hn = "_toast_1p0qo_122", Vn = "_loading_1p0qo_126", Xn = "_error_1p0qo_130", Yn = "_critical_1p0qo_134", Zn = {
|
|
1444
|
+
base: jn,
|
|
1445
|
+
content: kn,
|
|
1446
|
+
background: $n,
|
|
1447
|
+
button: En,
|
|
1448
|
+
link: Tn,
|
|
1449
|
+
input: Rn,
|
|
1450
|
+
suffix: Nn,
|
|
1451
|
+
prefix: In,
|
|
1452
|
+
tooltip: Mn,
|
|
1453
|
+
hint: On,
|
|
1454
|
+
dropdown: An,
|
|
1455
|
+
popover: Pn,
|
|
1456
|
+
modalBackdrop: Bn,
|
|
1457
|
+
modal: zn,
|
|
1458
|
+
overlay: Dn,
|
|
1459
|
+
drawer: Wn,
|
|
1460
|
+
notification: Fn,
|
|
1461
|
+
alert: qn,
|
|
1462
|
+
toast: Hn,
|
|
1463
|
+
loading: Vn,
|
|
1464
|
+
error: Xn,
|
|
1465
|
+
critical: Yn
|
|
1466
|
+
}, Dl = ({
|
|
1450
1467
|
locale: e = {},
|
|
1451
1468
|
theme: r,
|
|
1452
1469
|
children: a,
|
|
1453
|
-
className:
|
|
1470
|
+
className: n
|
|
1454
1471
|
}) => (jr(() => {
|
|
1455
1472
|
if (r) {
|
|
1456
1473
|
const i = document.documentElement;
|
|
@@ -1458,55 +1475,55 @@ const Va = 2, Xa = (e) => {
|
|
|
1458
1475
|
i.style.setProperty(s, l);
|
|
1459
1476
|
});
|
|
1460
1477
|
}
|
|
1461
|
-
}, [r]), /* @__PURE__ */
|
|
1462
|
-
/* @__PURE__ */
|
|
1478
|
+
}, [r]), /* @__PURE__ */ o.jsxs(Pe, { children: [
|
|
1479
|
+
/* @__PURE__ */ o.jsx(
|
|
1463
1480
|
"div",
|
|
1464
1481
|
{
|
|
1465
1482
|
"data-testid": "ConfigProvider-component",
|
|
1466
|
-
className: $(
|
|
1483
|
+
className: $(vn, wn, Cn, Sn, Ln, Zn, ie, n)
|
|
1467
1484
|
}
|
|
1468
1485
|
),
|
|
1469
|
-
/* @__PURE__ */
|
|
1470
|
-
] })),
|
|
1471
|
-
tag:
|
|
1472
|
-
label:
|
|
1473
|
-
iconWrapper:
|
|
1474
|
-
medium:
|
|
1475
|
-
large:
|
|
1476
|
-
disabled:
|
|
1477
|
-
neutral:
|
|
1478
|
-
positive:
|
|
1479
|
-
negative:
|
|
1480
|
-
warning:
|
|
1481
|
-
vivid:
|
|
1482
|
-
special:
|
|
1483
|
-
accent:
|
|
1484
|
-
blue:
|
|
1485
|
-
lovely:
|
|
1486
|
-
dreamy:
|
|
1487
|
-
},
|
|
1486
|
+
/* @__PURE__ */ o.jsx(Ut.Provider, { value: { locale: e }, children: a })
|
|
1487
|
+
] })), Wl = {}, Gn = "_tag_1llsi_1", Un = "_label_1llsi_16", Jn = "_iconWrapper_1llsi_20", Kn = "_medium_1llsi_27", Qn = "_large_1llsi_33", eo = "_disabled_1llsi_43", to = "_neutral_1llsi_47", ro = "_positive_1llsi_53", ao = "_negative_1llsi_59", no = "_warning_1llsi_65", oo = "_vivid_1llsi_71", so = "_special_1llsi_77", io = "_accent_1llsi_84", lo = "_blue_1llsi_90", co = "_lovely_1llsi_96", uo = "_dreamy_1llsi_102", ke = {
|
|
1488
|
+
tag: Gn,
|
|
1489
|
+
label: Un,
|
|
1490
|
+
iconWrapper: Jn,
|
|
1491
|
+
medium: Kn,
|
|
1492
|
+
large: Qn,
|
|
1493
|
+
disabled: eo,
|
|
1494
|
+
neutral: to,
|
|
1495
|
+
positive: ro,
|
|
1496
|
+
negative: ao,
|
|
1497
|
+
warning: no,
|
|
1498
|
+
vivid: oo,
|
|
1499
|
+
special: so,
|
|
1500
|
+
accent: io,
|
|
1501
|
+
blue: lo,
|
|
1502
|
+
lovely: co,
|
|
1503
|
+
dreamy: uo
|
|
1504
|
+
}, Fl = K((e, r) => {
|
|
1488
1505
|
const {
|
|
1489
1506
|
className: a,
|
|
1490
|
-
children:
|
|
1507
|
+
children: n,
|
|
1491
1508
|
componentStyle: i = "neutral",
|
|
1492
1509
|
size: s = "medium",
|
|
1493
1510
|
disabled: l = !1,
|
|
1494
|
-
showLabel: c = !!
|
|
1511
|
+
showLabel: c = !!n,
|
|
1495
1512
|
slotStart: _,
|
|
1496
1513
|
slotEnd: f,
|
|
1497
1514
|
slotStartWrapperProps: p = {},
|
|
1498
|
-
slotEndWrapperProps:
|
|
1515
|
+
slotEndWrapperProps: g = {},
|
|
1499
1516
|
"data-testid": m
|
|
1500
|
-
} = e, { className:
|
|
1501
|
-
return /* @__PURE__ */
|
|
1517
|
+
} = e, { className: h, ...x } = p, { className: C, ...y } = g;
|
|
1518
|
+
return /* @__PURE__ */ o.jsxs(
|
|
1502
1519
|
"div",
|
|
1503
1520
|
{
|
|
1504
1521
|
className: $(
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1522
|
+
ke.tag,
|
|
1523
|
+
ke[s],
|
|
1524
|
+
ke[i],
|
|
1508
1525
|
{
|
|
1509
|
-
[
|
|
1526
|
+
[ke.disabled]: l,
|
|
1510
1527
|
[ie["typography-label-3-regular"]]: s === "medium",
|
|
1511
1528
|
[ie["typography-subtitle-1-semibold"]]: s === "large"
|
|
1512
1529
|
},
|
|
@@ -1515,29 +1532,29 @@ const Va = 2, Xa = (e) => {
|
|
|
1515
1532
|
"data-testid": m || "tag-component",
|
|
1516
1533
|
ref: r,
|
|
1517
1534
|
children: [
|
|
1518
|
-
_ && /* @__PURE__ */
|
|
1519
|
-
c && /* @__PURE__ */
|
|
1520
|
-
f && /* @__PURE__ */
|
|
1535
|
+
_ && /* @__PURE__ */ o.jsx("span", { className: $([ke.iconWrapper, h]), ...x, children: _ }),
|
|
1536
|
+
c && /* @__PURE__ */ o.jsx("span", { className: $([ke.label]), children: n }),
|
|
1537
|
+
f && /* @__PURE__ */ o.jsx("span", { className: $([ke.iconWrapper, C]), ...y, children: f })
|
|
1521
1538
|
]
|
|
1522
1539
|
}
|
|
1523
1540
|
);
|
|
1524
|
-
}),
|
|
1525
|
-
checkbox:
|
|
1526
|
-
input:
|
|
1527
|
-
icon:
|
|
1528
|
-
container:
|
|
1529
|
-
error:
|
|
1530
|
-
checkboxWrapper:
|
|
1531
|
-
medium:
|
|
1532
|
-
large:
|
|
1533
|
-
label:
|
|
1534
|
-
},
|
|
1541
|
+
}), _o = "_checkbox_17txq_43", po = "_input_17txq_64", fo = "_icon_17txq_72", go = "_container_17txq_92", bo = "_error_17txq_143", ho = "_checkboxWrapper_17txq_156", mo = "_medium_17txq_211", yo = "_large_17txq_216", xo = "_label_17txq_258", we = {
|
|
1542
|
+
checkbox: _o,
|
|
1543
|
+
input: po,
|
|
1544
|
+
icon: fo,
|
|
1545
|
+
container: go,
|
|
1546
|
+
error: bo,
|
|
1547
|
+
checkboxWrapper: ho,
|
|
1548
|
+
medium: mo,
|
|
1549
|
+
large: yo,
|
|
1550
|
+
label: xo
|
|
1551
|
+
}, vo = ({
|
|
1535
1552
|
width: e = 12,
|
|
1536
1553
|
height: r = 9,
|
|
1537
1554
|
className: a = "",
|
|
1538
|
-
color:
|
|
1555
|
+
color: n = "currentColor",
|
|
1539
1556
|
...i
|
|
1540
|
-
}) => /* @__PURE__ */
|
|
1557
|
+
}) => /* @__PURE__ */ o.jsx(
|
|
1541
1558
|
"svg",
|
|
1542
1559
|
{
|
|
1543
1560
|
className: a,
|
|
@@ -1547,23 +1564,23 @@ const Va = 2, Xa = (e) => {
|
|
|
1547
1564
|
fill: "none",
|
|
1548
1565
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1549
1566
|
...i,
|
|
1550
|
-
children: /* @__PURE__ */
|
|
1567
|
+
children: /* @__PURE__ */ o.jsx(
|
|
1551
1568
|
"path",
|
|
1552
1569
|
{
|
|
1553
1570
|
fillRule: "evenodd",
|
|
1554
1571
|
clipRule: "evenodd",
|
|
1555
1572
|
d: "M13.0001 2.49999C13.3906 2.10946 13.3906 1.4763 13.0001 1.08578C12.6095 0.695251 11.9764 0.695251 11.5859 1.08578L5.29296 7.37867L2.00007 4.08578C1.60954 3.69525 0.976378 3.69525 0.585855 4.08578C0.19533 4.4763 0.19533 5.10946 0.585855 5.49999L4.58585 9.49999C4.97638 9.89051 5.60954 9.89051 6.00007 9.49999L13.0001 2.49999Z",
|
|
1556
|
-
fill:
|
|
1573
|
+
fill: n
|
|
1557
1574
|
}
|
|
1558
1575
|
)
|
|
1559
1576
|
}
|
|
1560
|
-
),
|
|
1577
|
+
), wo = ({
|
|
1561
1578
|
width: e = 12,
|
|
1562
1579
|
height: r = 2,
|
|
1563
1580
|
className: a = "",
|
|
1564
|
-
color:
|
|
1581
|
+
color: n = "currentColor",
|
|
1565
1582
|
...i
|
|
1566
|
-
}) => /* @__PURE__ */
|
|
1583
|
+
}) => /* @__PURE__ */ o.jsx(
|
|
1567
1584
|
"svg",
|
|
1568
1585
|
{
|
|
1569
1586
|
className: a,
|
|
@@ -1573,42 +1590,42 @@ const Va = 2, Xa = (e) => {
|
|
|
1573
1590
|
fill: "none",
|
|
1574
1591
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1575
1592
|
...i,
|
|
1576
|
-
children: /* @__PURE__ */
|
|
1593
|
+
children: /* @__PURE__ */ o.jsx(
|
|
1577
1594
|
"path",
|
|
1578
1595
|
{
|
|
1579
1596
|
fillRule: "evenodd",
|
|
1580
1597
|
clipRule: "evenodd",
|
|
1581
1598
|
d: "M0 1C0 0.447715 0.447715 0 1 0H11C11.5523 0 12 0.447715 12 1C12 1.55228 11.5523 2 11 2H1C0.447715 2 0 1.55228 0 1Z",
|
|
1582
|
-
fill:
|
|
1599
|
+
fill: n
|
|
1583
1600
|
}
|
|
1584
1601
|
)
|
|
1585
1602
|
}
|
|
1586
|
-
),
|
|
1603
|
+
), Co = {
|
|
1587
1604
|
medium: { width: 10.83, height: 7.5 },
|
|
1588
1605
|
large: { width: 13, height: 9 }
|
|
1589
|
-
},
|
|
1606
|
+
}, So = ({
|
|
1590
1607
|
size: e,
|
|
1591
1608
|
isChecked: r,
|
|
1592
1609
|
isDisabled: a,
|
|
1593
|
-
indeterminate:
|
|
1610
|
+
indeterminate: n,
|
|
1594
1611
|
dataTestId: i
|
|
1595
1612
|
}) => {
|
|
1596
|
-
const { width: s, height: l } =
|
|
1597
|
-
return /* @__PURE__ */
|
|
1613
|
+
const { width: s, height: l } = Co[e];
|
|
1614
|
+
return /* @__PURE__ */ o.jsx(
|
|
1598
1615
|
"div",
|
|
1599
1616
|
{
|
|
1600
1617
|
className: we.icon,
|
|
1601
1618
|
"data-testid": `${i}-icon`,
|
|
1602
1619
|
"data-checked": r,
|
|
1603
1620
|
"data-disabled": a,
|
|
1604
|
-
"data-indeterminate":
|
|
1605
|
-
children:
|
|
1621
|
+
"data-indeterminate": n,
|
|
1622
|
+
children: n ? /* @__PURE__ */ o.jsx(wo, { width: s, height: l }) : /* @__PURE__ */ o.jsx(vo, { width: s, height: l })
|
|
1606
1623
|
}
|
|
1607
1624
|
);
|
|
1608
|
-
},
|
|
1625
|
+
}, ql = K((e, r) => {
|
|
1609
1626
|
const {
|
|
1610
1627
|
name: a,
|
|
1611
|
-
value:
|
|
1628
|
+
value: n,
|
|
1612
1629
|
size: i = "medium",
|
|
1613
1630
|
indeterminate: s = !1,
|
|
1614
1631
|
loading: l = !1,
|
|
@@ -1616,117 +1633,117 @@ const Va = 2, Xa = (e) => {
|
|
|
1616
1633
|
disabled: _ = !1,
|
|
1617
1634
|
containerClassName: f,
|
|
1618
1635
|
className: p,
|
|
1619
|
-
containerStyle:
|
|
1636
|
+
containerStyle: g,
|
|
1620
1637
|
style: m,
|
|
1621
|
-
children:
|
|
1622
|
-
clickableLabel:
|
|
1638
|
+
children: h,
|
|
1639
|
+
clickableLabel: x = !0,
|
|
1623
1640
|
tabIndex: C,
|
|
1624
|
-
onChange:
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
} = e, [v, L] = _e(!1), T = o ?? v, j = _ || l, R = !!c, E = T || s, A = $(we.container, we[i], f), W = $(
|
|
1641
|
+
onChange: y,
|
|
1642
|
+
"data-testid": v = "checkbox"
|
|
1643
|
+
} = e, [u, w] = _e(!1), L = n ?? u, E = _ || l, j = !!c, T = L || s, R = $(we.container, we[i], f), I = $(
|
|
1628
1644
|
we.checkbox,
|
|
1629
1645
|
we[i],
|
|
1630
1646
|
{
|
|
1631
|
-
[we.error]:
|
|
1647
|
+
[we.error]: j
|
|
1632
1648
|
},
|
|
1633
1649
|
p
|
|
1634
|
-
),
|
|
1635
|
-
|
|
1636
|
-
},
|
|
1637
|
-
if (O.key === "Enter" && !
|
|
1650
|
+
), W = (O) => {
|
|
1651
|
+
E || (w(O.target.checked), y == null || y(O.target.checked, O));
|
|
1652
|
+
}, q = (O) => {
|
|
1653
|
+
if (O.key === "Enter" && !E) {
|
|
1638
1654
|
O.preventDefault();
|
|
1639
|
-
const z = !
|
|
1640
|
-
|
|
1655
|
+
const z = !T;
|
|
1656
|
+
w(z), y == null || y(z);
|
|
1641
1657
|
}
|
|
1642
|
-
},
|
|
1643
|
-
|
|
1644
|
-
};
|
|
1645
|
-
return /* @__PURE__ */
|
|
1658
|
+
}, P = (O) => {
|
|
1659
|
+
x || O.preventDefault();
|
|
1660
|
+
}, S = (O) => O.stopPropagation();
|
|
1661
|
+
return /* @__PURE__ */ o.jsxs(
|
|
1646
1662
|
"label",
|
|
1647
1663
|
{
|
|
1648
|
-
className:
|
|
1664
|
+
className: R,
|
|
1649
1665
|
htmlFor: a,
|
|
1650
|
-
style:
|
|
1651
|
-
"data-testid":
|
|
1652
|
-
"data-clickable-label":
|
|
1666
|
+
style: g,
|
|
1667
|
+
"data-testid": v,
|
|
1668
|
+
"data-clickable-label": x,
|
|
1653
1669
|
children: [
|
|
1654
|
-
/* @__PURE__ */
|
|
1670
|
+
/* @__PURE__ */ o.jsx("div", { className: we.checkboxWrapper, children: /* @__PURE__ */ o.jsxs(
|
|
1655
1671
|
"div",
|
|
1656
1672
|
{
|
|
1657
1673
|
tabIndex: C || 0,
|
|
1658
|
-
className:
|
|
1674
|
+
className: I,
|
|
1659
1675
|
style: m,
|
|
1660
|
-
onKeyDown:
|
|
1661
|
-
"aria-checked":
|
|
1662
|
-
"aria-disabled":
|
|
1663
|
-
"aria-invalid":
|
|
1676
|
+
onKeyDown: q,
|
|
1677
|
+
"aria-checked": T,
|
|
1678
|
+
"aria-disabled": E,
|
|
1679
|
+
"aria-invalid": j,
|
|
1664
1680
|
"aria-describedby": c ? `${a}-error` : void 0,
|
|
1665
|
-
"data-testid": `${
|
|
1681
|
+
"data-testid": `${v}-label`,
|
|
1666
1682
|
children: [
|
|
1667
|
-
/* @__PURE__ */
|
|
1683
|
+
/* @__PURE__ */ o.jsx(
|
|
1668
1684
|
"input",
|
|
1669
1685
|
{
|
|
1670
1686
|
ref: r,
|
|
1671
1687
|
type: "checkbox",
|
|
1672
1688
|
id: a,
|
|
1673
1689
|
name: a,
|
|
1674
|
-
checked:
|
|
1675
|
-
disabled:
|
|
1690
|
+
checked: T,
|
|
1691
|
+
disabled: E,
|
|
1676
1692
|
className: we.input,
|
|
1677
|
-
onChange:
|
|
1678
|
-
|
|
1679
|
-
"aria-
|
|
1693
|
+
onChange: W,
|
|
1694
|
+
onClick: S,
|
|
1695
|
+
"aria-checked": T,
|
|
1696
|
+
"aria-invalid": j,
|
|
1680
1697
|
"aria-describedby": c ? `${a}-error` : void 0,
|
|
1681
|
-
"data-testid": `${
|
|
1698
|
+
"data-testid": `${v}-input`
|
|
1682
1699
|
}
|
|
1683
1700
|
),
|
|
1684
|
-
/* @__PURE__ */
|
|
1685
|
-
|
|
1701
|
+
/* @__PURE__ */ o.jsx(
|
|
1702
|
+
So,
|
|
1686
1703
|
{
|
|
1687
1704
|
name: a,
|
|
1688
1705
|
size: i,
|
|
1689
|
-
isChecked:
|
|
1690
|
-
isDisabled:
|
|
1706
|
+
isChecked: T,
|
|
1707
|
+
isDisabled: E,
|
|
1691
1708
|
indeterminate: s,
|
|
1692
|
-
dataTestId:
|
|
1709
|
+
dataTestId: v
|
|
1693
1710
|
}
|
|
1694
1711
|
)
|
|
1695
1712
|
]
|
|
1696
1713
|
}
|
|
1697
1714
|
) }),
|
|
1698
|
-
|
|
1715
|
+
h && /* @__PURE__ */ o.jsx(
|
|
1699
1716
|
"span",
|
|
1700
1717
|
{
|
|
1701
|
-
"data-testid": `${
|
|
1702
|
-
"data-clickable-label":
|
|
1718
|
+
"data-testid": `${v}-label-text`,
|
|
1719
|
+
"data-clickable-label": x,
|
|
1703
1720
|
className: we.label,
|
|
1704
|
-
onClick:
|
|
1705
|
-
children:
|
|
1721
|
+
onClick: P,
|
|
1722
|
+
children: h
|
|
1706
1723
|
}
|
|
1707
1724
|
)
|
|
1708
1725
|
]
|
|
1709
1726
|
}
|
|
1710
1727
|
);
|
|
1711
|
-
}),
|
|
1712
|
-
typography:
|
|
1713
|
-
disabled:
|
|
1714
|
-
primary:
|
|
1715
|
-
secondary:
|
|
1716
|
-
tertiary:
|
|
1717
|
-
accent:
|
|
1728
|
+
}), Lo = "_typography_zt7xg_1", jo = "_disabled_zt7xg_8", ko = "_primary_zt7xg_13", $o = "_secondary_zt7xg_18", Eo = "_tertiary_zt7xg_23", To = "_accent_zt7xg_28", Ro = "_positive_zt7xg_38", No = "_negative_zt7xg_48", Io = "_warning_zt7xg_58", Mo = "_special_zt7xg_68", Oo = "_contrast_zt7xg_78", Be = {
|
|
1729
|
+
typography: Lo,
|
|
1730
|
+
disabled: jo,
|
|
1731
|
+
primary: ko,
|
|
1732
|
+
secondary: $o,
|
|
1733
|
+
tertiary: Eo,
|
|
1734
|
+
accent: To,
|
|
1718
1735
|
"accent-secondary": "_accent-secondary_zt7xg_33",
|
|
1719
|
-
positive:
|
|
1736
|
+
positive: Ro,
|
|
1720
1737
|
"positive-secondary": "_positive-secondary_zt7xg_43",
|
|
1721
|
-
negative:
|
|
1738
|
+
negative: No,
|
|
1722
1739
|
"negative-secondary": "_negative-secondary_zt7xg_53",
|
|
1723
|
-
warning:
|
|
1740
|
+
warning: Io,
|
|
1724
1741
|
"warning-secondary": "_warning-secondary_zt7xg_63",
|
|
1725
|
-
special:
|
|
1742
|
+
special: Mo,
|
|
1726
1743
|
"special-secondary": "_special-secondary_zt7xg_73",
|
|
1727
|
-
contrast:
|
|
1744
|
+
contrast: Oo,
|
|
1728
1745
|
"contrast-secondary": "_contrast-secondary_zt7xg_83"
|
|
1729
|
-
},
|
|
1746
|
+
}, Ao = {
|
|
1730
1747
|
1: "h1",
|
|
1731
1748
|
2: "h2",
|
|
1732
1749
|
3: "h3",
|
|
@@ -1736,7 +1753,7 @@ const Va = 2, Xa = (e) => {
|
|
|
1736
1753
|
const r = Xt.forwardRef(
|
|
1737
1754
|
({
|
|
1738
1755
|
size: a = 3,
|
|
1739
|
-
children:
|
|
1756
|
+
children: n,
|
|
1740
1757
|
className: i,
|
|
1741
1758
|
"data-testid": s,
|
|
1742
1759
|
as: l,
|
|
@@ -1744,8 +1761,8 @@ const Va = 2, Xa = (e) => {
|
|
|
1744
1761
|
disabled: _ = !1,
|
|
1745
1762
|
typographyStyle: f = "primary",
|
|
1746
1763
|
...p
|
|
1747
|
-
},
|
|
1748
|
-
const m = l ||
|
|
1764
|
+
}, g) => {
|
|
1765
|
+
const m = l || Ao[a], h = $(
|
|
1749
1766
|
Be.typography,
|
|
1750
1767
|
ie[`typography-${e}-${a}-${c}`],
|
|
1751
1768
|
Be[f],
|
|
@@ -1754,7 +1771,7 @@ const Va = 2, Xa = (e) => {
|
|
|
1754
1771
|
},
|
|
1755
1772
|
i
|
|
1756
1773
|
);
|
|
1757
|
-
return
|
|
1774
|
+
return n ? /* @__PURE__ */ o.jsx(m, { ref: g, className: h, "data-testid": s, ...p, children: n }) : null;
|
|
1758
1775
|
}
|
|
1759
1776
|
);
|
|
1760
1777
|
return r.displayName = `Typography.${e === "title" ? "Title" : "Subtitle"}`, r;
|
|
@@ -1762,7 +1779,7 @@ const Va = 2, Xa = (e) => {
|
|
|
1762
1779
|
const r = Xt.forwardRef(
|
|
1763
1780
|
({
|
|
1764
1781
|
size: a = 3,
|
|
1765
|
-
children:
|
|
1782
|
+
children: n,
|
|
1766
1783
|
className: i,
|
|
1767
1784
|
"data-testid": s,
|
|
1768
1785
|
as: l = "p",
|
|
@@ -1770,8 +1787,8 @@ const Va = 2, Xa = (e) => {
|
|
|
1770
1787
|
disabled: _ = !1,
|
|
1771
1788
|
typographyStyle: f = "primary",
|
|
1772
1789
|
...p
|
|
1773
|
-
},
|
|
1774
|
-
const m = l,
|
|
1790
|
+
}, g) => {
|
|
1791
|
+
const m = l, h = $(
|
|
1775
1792
|
Be.typography,
|
|
1776
1793
|
ie[`typography-${e}-${a}-${c}`],
|
|
1777
1794
|
Be[f],
|
|
@@ -1780,14 +1797,14 @@ const Va = 2, Xa = (e) => {
|
|
|
1780
1797
|
},
|
|
1781
1798
|
i
|
|
1782
1799
|
);
|
|
1783
|
-
return
|
|
1800
|
+
return n ? /* @__PURE__ */ o.jsx(
|
|
1784
1801
|
m,
|
|
1785
1802
|
{
|
|
1786
|
-
ref:
|
|
1787
|
-
className:
|
|
1803
|
+
ref: g,
|
|
1804
|
+
className: h,
|
|
1788
1805
|
"data-testid": s,
|
|
1789
1806
|
...p,
|
|
1790
|
-
children:
|
|
1807
|
+
children: n
|
|
1791
1808
|
}
|
|
1792
1809
|
) : null;
|
|
1793
1810
|
}
|
|
@@ -1798,63 +1815,63 @@ const Va = 2, Xa = (e) => {
|
|
|
1798
1815
|
Subtitle: Bt("subtitle"),
|
|
1799
1816
|
Label: zt("label"),
|
|
1800
1817
|
Paragraph: zt("paragraph")
|
|
1801
|
-
},
|
|
1802
|
-
base:
|
|
1803
|
-
content:
|
|
1804
|
-
background:
|
|
1805
|
-
button:
|
|
1806
|
-
link:
|
|
1807
|
-
input:
|
|
1808
|
-
suffix:
|
|
1809
|
-
prefix:
|
|
1810
|
-
tooltip:
|
|
1811
|
-
hint:
|
|
1812
|
-
dropdown:
|
|
1813
|
-
popover:
|
|
1814
|
-
modalBackdrop:
|
|
1815
|
-
modal:
|
|
1816
|
-
overlay:
|
|
1817
|
-
drawer:
|
|
1818
|
-
notification:
|
|
1819
|
-
alert:
|
|
1820
|
-
toast:
|
|
1821
|
-
loading:
|
|
1822
|
-
error:
|
|
1823
|
-
critical:
|
|
1818
|
+
}, Po = "_base_10oxr_1", Bo = "_content_10oxr_1", zo = "_background_10oxr_1", Do = "_button_10oxr_1", Wo = "_link_10oxr_1", Fo = "_input_10oxr_96", qo = "_suffix_10oxr_1", Ho = "_prefix_10oxr_1", Vo = "_tooltip_10oxr_1", Xo = "_hint_10oxr_794", Yo = "_dropdown_10oxr_1", Zo = "_popover_10oxr_1", Go = "_modalBackdrop_10oxr_1", Uo = "_modal_10oxr_1", Jo = "_overlay_10oxr_1", Ko = "_drawer_10oxr_1", Qo = "_notification_10oxr_1", es = "_alert_10oxr_1", ts = "_toast_10oxr_1", rs = "_loading_10oxr_291", as = "_error_10oxr_252", ns = "_critical_10oxr_1", os = "_inputBase_10oxr_96", ss = "_wrapper_10oxr_106", is = "_gripHandle_10oxr_186", ls = "_tabFocused_10oxr_259", cs = "_disabled_10oxr_284", ds = "_label_10oxr_301", us = "_S_10oxr_315", _s = "_M_10oxr_321", ps = "_XL_10oxr_328", fs = "_leftSection_10oxr_335", gs = "_rightSection_10oxr_347", bs = "_helper_10oxr_385", hs = "_floatingLabel_10oxr_415", ms = "_focused_10oxr_481", ys = "_filled_10oxr_482", xs = "_L_10oxr_522", vs = "_characterLimit_10oxr_564", ws = "_textarea_10oxr_124", Cs = "_truncate_10oxr_707", M = {
|
|
1819
|
+
base: Po,
|
|
1820
|
+
content: Bo,
|
|
1821
|
+
background: zo,
|
|
1822
|
+
button: Do,
|
|
1823
|
+
link: Wo,
|
|
1824
|
+
input: Fo,
|
|
1825
|
+
suffix: qo,
|
|
1826
|
+
prefix: Ho,
|
|
1827
|
+
tooltip: Vo,
|
|
1828
|
+
hint: Xo,
|
|
1829
|
+
dropdown: Yo,
|
|
1830
|
+
popover: Zo,
|
|
1831
|
+
modalBackdrop: Go,
|
|
1832
|
+
modal: Uo,
|
|
1833
|
+
overlay: Jo,
|
|
1834
|
+
drawer: Ko,
|
|
1835
|
+
notification: Qo,
|
|
1836
|
+
alert: es,
|
|
1837
|
+
toast: ts,
|
|
1838
|
+
loading: rs,
|
|
1839
|
+
error: as,
|
|
1840
|
+
critical: ns,
|
|
1824
1841
|
inputBase: os,
|
|
1825
|
-
wrapper:
|
|
1842
|
+
wrapper: ss,
|
|
1826
1843
|
"textarea-wrapper": "_textarea-wrapper_10oxr_124",
|
|
1827
|
-
gripHandle:
|
|
1828
|
-
tabFocused:
|
|
1829
|
-
disabled:
|
|
1830
|
-
label:
|
|
1831
|
-
S:
|
|
1832
|
-
M:
|
|
1833
|
-
XL:
|
|
1834
|
-
leftSection:
|
|
1835
|
-
rightSection:
|
|
1836
|
-
helper:
|
|
1837
|
-
floatingLabel:
|
|
1838
|
-
focused:
|
|
1839
|
-
filled:
|
|
1840
|
-
L:
|
|
1841
|
-
characterLimit:
|
|
1842
|
-
textarea:
|
|
1844
|
+
gripHandle: is,
|
|
1845
|
+
tabFocused: ls,
|
|
1846
|
+
disabled: cs,
|
|
1847
|
+
label: ds,
|
|
1848
|
+
S: us,
|
|
1849
|
+
M: _s,
|
|
1850
|
+
XL: ps,
|
|
1851
|
+
leftSection: fs,
|
|
1852
|
+
rightSection: gs,
|
|
1853
|
+
helper: bs,
|
|
1854
|
+
floatingLabel: hs,
|
|
1855
|
+
focused: ms,
|
|
1856
|
+
filled: ys,
|
|
1857
|
+
L: xs,
|
|
1858
|
+
characterLimit: vs,
|
|
1859
|
+
textarea: ws,
|
|
1843
1860
|
"size-S": "_size-S_10oxr_646",
|
|
1844
1861
|
"size-M": "_size-M_10oxr_656",
|
|
1845
1862
|
"size-L": "_size-L_10oxr_662",
|
|
1846
1863
|
"size-XL": "_size-XL_10oxr_668",
|
|
1847
1864
|
"with-floating-label": "_with-floating-label_10oxr_675",
|
|
1848
|
-
truncate:
|
|
1865
|
+
truncate: Cs,
|
|
1849
1866
|
"has-hint": "_has-hint_10oxr_815",
|
|
1850
1867
|
"has-suffix": "_has-suffix_10oxr_821",
|
|
1851
1868
|
"has-limit": "_has-limit_10oxr_844"
|
|
1852
|
-
},
|
|
1869
|
+
}, Ss = ({
|
|
1853
1870
|
width: e = 8,
|
|
1854
1871
|
height: r = 8,
|
|
1855
1872
|
className: a,
|
|
1856
|
-
color:
|
|
1857
|
-
}) => /* @__PURE__ */
|
|
1873
|
+
color: n = "#AABBCA"
|
|
1874
|
+
}) => /* @__PURE__ */ o.jsx(
|
|
1858
1875
|
"svg",
|
|
1859
1876
|
{
|
|
1860
1877
|
width: e,
|
|
@@ -1863,13 +1880,13 @@ const Va = 2, Xa = (e) => {
|
|
|
1863
1880
|
fill: "none",
|
|
1864
1881
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1865
1882
|
className: a,
|
|
1866
|
-
children: /* @__PURE__ */
|
|
1883
|
+
children: /* @__PURE__ */ o.jsx(
|
|
1867
1884
|
"path",
|
|
1868
1885
|
{
|
|
1869
1886
|
fillRule: "evenodd",
|
|
1870
1887
|
clipRule: "evenodd",
|
|
1871
1888
|
d: "M6.10178 0.236172C6.41679 -0.0787239 6.93824 -0.0787239 7.25325 0.236172C7.56826 0.551067 7.56826 1.07227 7.25325 1.38717L1.38772 7.25074C1.22479 7.41362 1.01837 7.48963 0.811988 7.48963C0.605604 7.48963 0.399189 7.41362 0.236255 7.25074C-0.0787516 6.93584 -0.0787516 6.41464 0.236255 6.09974L6.10178 0.236172ZM6.61276 4.19954C6.92777 3.88464 7.44895 3.88464 7.76396 4.19954C8.07897 4.52529 8.07897 5.03564 7.76396 5.35053L5.35256 7.76111C5.18963 7.92399 4.98321 8 4.77683 8C4.57045 8 4.36403 7.92399 4.2011 7.76111C3.88609 7.44622 3.88609 6.92501 4.2011 6.61012L6.61276 4.19954Z",
|
|
1872
|
-
fill:
|
|
1889
|
+
fill: n
|
|
1873
1890
|
}
|
|
1874
1891
|
)
|
|
1875
1892
|
}
|
|
@@ -1877,13 +1894,13 @@ const Va = 2, Xa = (e) => {
|
|
|
1877
1894
|
className: e = "",
|
|
1878
1895
|
style: r,
|
|
1879
1896
|
size: a = "md",
|
|
1880
|
-
color:
|
|
1897
|
+
color: n = "currentColor",
|
|
1881
1898
|
onClick: i,
|
|
1882
1899
|
...s
|
|
1883
1900
|
}) => {
|
|
1884
1901
|
const c = {
|
|
1885
1902
|
display: "inline-block",
|
|
1886
|
-
color:
|
|
1903
|
+
color: n,
|
|
1887
1904
|
...{
|
|
1888
1905
|
xxxs: { width: "8px", height: "8px" },
|
|
1889
1906
|
xxs: { width: "12px", height: "12px" },
|
|
@@ -1894,7 +1911,7 @@ const Va = 2, Xa = (e) => {
|
|
|
1894
1911
|
}[a],
|
|
1895
1912
|
...r
|
|
1896
1913
|
};
|
|
1897
|
-
return /* @__PURE__ */
|
|
1914
|
+
return /* @__PURE__ */ o.jsx(
|
|
1898
1915
|
"svg",
|
|
1899
1916
|
{
|
|
1900
1917
|
className: e,
|
|
@@ -1904,7 +1921,7 @@ const Va = 2, Xa = (e) => {
|
|
|
1904
1921
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1905
1922
|
onClick: i,
|
|
1906
1923
|
...s,
|
|
1907
|
-
children: /* @__PURE__ */
|
|
1924
|
+
children: /* @__PURE__ */ o.jsx(
|
|
1908
1925
|
"path",
|
|
1909
1926
|
{
|
|
1910
1927
|
d: "M12 4L4 12M4 4L12 12",
|
|
@@ -1916,50 +1933,50 @@ const Va = 2, Xa = (e) => {
|
|
|
1916
1933
|
)
|
|
1917
1934
|
}
|
|
1918
1935
|
);
|
|
1919
|
-
},
|
|
1920
|
-
const a =
|
|
1936
|
+
}, Ls = (e, r) => {
|
|
1937
|
+
const a = He(null), n = He(null);
|
|
1921
1938
|
return le(() => {
|
|
1922
|
-
const i = r === "textarea" ? a.current :
|
|
1939
|
+
const i = r === "textarea" ? a.current : n.current;
|
|
1923
1940
|
i && i.value !== e && (i.value = e || "");
|
|
1924
1941
|
}, [e, r]), {
|
|
1925
1942
|
textareaRef: a,
|
|
1926
|
-
inputRef:
|
|
1927
|
-
currentRef: r === "textarea" ? a :
|
|
1943
|
+
inputRef: n,
|
|
1944
|
+
currentRef: r === "textarea" ? a : n
|
|
1928
1945
|
};
|
|
1929
|
-
},
|
|
1930
|
-
const
|
|
1946
|
+
}, js = (e, r, a) => {
|
|
1947
|
+
const n = () => {
|
|
1931
1948
|
if (!a.current || r !== "hug") return;
|
|
1932
1949
|
const i = a.current.scrollTop;
|
|
1933
1950
|
if (a.current.style.setProperty("height", "auto", "important"), !e) return;
|
|
1934
1951
|
const s = a.current.scrollHeight + "px";
|
|
1935
1952
|
a.current.style.setProperty("height", s, "important"), a.current.scrollTop = i;
|
|
1936
|
-
const l = a.current.closest(`.${
|
|
1953
|
+
const l = a.current.closest(`.${M.wrapper}`);
|
|
1937
1954
|
l && (l.setAttribute("data-resize", "hug"), l.setAttribute("data-show-grip", "false"));
|
|
1938
1955
|
};
|
|
1939
|
-
return le(
|
|
1940
|
-
r === "hug" && a.current &&
|
|
1941
|
-
}, []), { resizeTextArea:
|
|
1942
|
-
},
|
|
1956
|
+
return le(n, [e, r]), le(() => {
|
|
1957
|
+
r === "hug" && a.current && n();
|
|
1958
|
+
}, []), { resizeTextArea: n };
|
|
1959
|
+
}, ks = (e, r, a, n) => ({ handleGripMouseDown: Se(
|
|
1943
1960
|
(s) => {
|
|
1944
|
-
if (!e || r || a || !(
|
|
1961
|
+
if (!e || r || a || !(n === "fixed" || !n)) return;
|
|
1945
1962
|
s.preventDefault(), s.stopPropagation();
|
|
1946
|
-
const l = s.currentTarget.closest(`.${
|
|
1963
|
+
const l = s.currentTarget.closest(`.${M.wrapper}`);
|
|
1947
1964
|
if (!l) return;
|
|
1948
|
-
const c = s.clientY, _ = l.clientHeight, f = (
|
|
1949
|
-
const m =
|
|
1950
|
-
l.style.height = `${
|
|
1965
|
+
const c = s.clientY, _ = l.clientHeight, f = (g) => {
|
|
1966
|
+
const m = g.clientY - c, h = Math.min(100, _), x = Math.max(h, _ + m);
|
|
1967
|
+
l.style.height = `${x}px`;
|
|
1951
1968
|
}, p = () => {
|
|
1952
1969
|
document.removeEventListener("mousemove", f), document.removeEventListener("mouseup", p);
|
|
1953
1970
|
};
|
|
1954
1971
|
document.addEventListener("mousemove", f), document.addEventListener("mouseup", p);
|
|
1955
1972
|
},
|
|
1956
|
-
[e, r, a,
|
|
1957
|
-
) }), Wt = 30,
|
|
1973
|
+
[e, r, a, n]
|
|
1974
|
+
) }), Wt = 30, $s = K(
|
|
1958
1975
|
({
|
|
1959
1976
|
component: e = "input",
|
|
1960
1977
|
size: r = "L",
|
|
1961
1978
|
value: a = "",
|
|
1962
|
-
placeholder:
|
|
1979
|
+
placeholder: n,
|
|
1963
1980
|
disabled: i = !1,
|
|
1964
1981
|
loading: s = !1,
|
|
1965
1982
|
onFocus: l,
|
|
@@ -1967,74 +1984,74 @@ const Va = 2, Xa = (e) => {
|
|
|
1967
1984
|
onChange: _,
|
|
1968
1985
|
onKeyDown: f,
|
|
1969
1986
|
onKeyUp: p,
|
|
1970
|
-
maxLength:
|
|
1987
|
+
maxLength: g,
|
|
1971
1988
|
className: m,
|
|
1972
|
-
style:
|
|
1973
|
-
truncate:
|
|
1989
|
+
style: h,
|
|
1990
|
+
truncate: x = !1,
|
|
1974
1991
|
shouldShowFloatingLabelClass: C = !1,
|
|
1975
|
-
"aria-invalid":
|
|
1976
|
-
"aria-errormessage":
|
|
1977
|
-
id:
|
|
1978
|
-
resize:
|
|
1992
|
+
"aria-invalid": y,
|
|
1993
|
+
"aria-errormessage": v,
|
|
1994
|
+
id: u,
|
|
1995
|
+
resize: w,
|
|
1979
1996
|
...L
|
|
1980
|
-
},
|
|
1981
|
-
const { textareaRef: j, inputRef:
|
|
1982
|
-
if (
|
|
1983
|
-
return /* @__PURE__ */
|
|
1997
|
+
}, E) => {
|
|
1998
|
+
const { textareaRef: j, inputRef: T, currentRef: R } = Ls(a, e);
|
|
1999
|
+
if (js(a, w, j), kr(E, () => R.current, [R]), e === "textarea")
|
|
2000
|
+
return /* @__PURE__ */ o.jsx(
|
|
1984
2001
|
"textarea",
|
|
1985
2002
|
{
|
|
1986
2003
|
ref: j,
|
|
1987
|
-
id:
|
|
2004
|
+
id: u,
|
|
1988
2005
|
value: a,
|
|
1989
|
-
placeholder:
|
|
2006
|
+
placeholder: n,
|
|
1990
2007
|
disabled: i || s,
|
|
1991
2008
|
onFocus: l,
|
|
1992
2009
|
onBlur: c,
|
|
1993
2010
|
onChange: _,
|
|
1994
2011
|
onKeyDown: f,
|
|
1995
2012
|
onKeyUp: p,
|
|
1996
|
-
maxLength:
|
|
2013
|
+
maxLength: g,
|
|
1997
2014
|
className: $(
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
C &&
|
|
2015
|
+
M.textarea,
|
|
2016
|
+
M[`size-${r}`],
|
|
2017
|
+
C && M["with-floating-label"],
|
|
2001
2018
|
m
|
|
2002
2019
|
),
|
|
2003
|
-
style:
|
|
2004
|
-
"aria-invalid":
|
|
2005
|
-
"aria-errormessage":
|
|
2006
|
-
"aria-describedby":
|
|
2020
|
+
style: h,
|
|
2021
|
+
"aria-invalid": y,
|
|
2022
|
+
"aria-errormessage": v,
|
|
2023
|
+
"aria-describedby": v ? `${u}-error` : void 0,
|
|
2007
2024
|
tabIndex: 0,
|
|
2008
|
-
"data-resize":
|
|
2025
|
+
"data-resize": w,
|
|
2009
2026
|
...L
|
|
2010
2027
|
}
|
|
2011
2028
|
);
|
|
2012
2029
|
if (e === "input")
|
|
2013
|
-
return /* @__PURE__ */
|
|
2030
|
+
return /* @__PURE__ */ o.jsx(
|
|
2014
2031
|
"input",
|
|
2015
2032
|
{
|
|
2016
|
-
ref:
|
|
2017
|
-
id:
|
|
2033
|
+
ref: T,
|
|
2034
|
+
id: u,
|
|
2018
2035
|
value: a,
|
|
2019
|
-
placeholder:
|
|
2036
|
+
placeholder: n,
|
|
2020
2037
|
disabled: i || s,
|
|
2021
2038
|
onFocus: l,
|
|
2022
2039
|
onBlur: c,
|
|
2023
2040
|
onChange: _,
|
|
2024
2041
|
onKeyDown: f,
|
|
2025
2042
|
onKeyUp: p,
|
|
2026
|
-
maxLength:
|
|
2043
|
+
maxLength: g,
|
|
2027
2044
|
className: $(
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
C &&
|
|
2031
|
-
|
|
2045
|
+
M.input,
|
|
2046
|
+
M[`size-${r}`],
|
|
2047
|
+
C && M["with-floating-label"],
|
|
2048
|
+
x && M.truncate,
|
|
2032
2049
|
m
|
|
2033
2050
|
),
|
|
2034
|
-
style:
|
|
2035
|
-
"aria-invalid":
|
|
2036
|
-
"aria-errormessage":
|
|
2037
|
-
"aria-describedby":
|
|
2051
|
+
style: h,
|
|
2052
|
+
"aria-invalid": y,
|
|
2053
|
+
"aria-errormessage": v,
|
|
2054
|
+
"aria-describedby": v ? `${u}-error` : void 0,
|
|
2038
2055
|
tabIndex: 0,
|
|
2039
2056
|
...L
|
|
2040
2057
|
}
|
|
@@ -2049,7 +2066,7 @@ const Va = 2, Xa = (e) => {
|
|
|
2049
2066
|
children: e,
|
|
2050
2067
|
size: r = "L",
|
|
2051
2068
|
error: a = !1,
|
|
2052
|
-
disabled:
|
|
2069
|
+
disabled: n = !1,
|
|
2053
2070
|
loading: i = !1,
|
|
2054
2071
|
className: s,
|
|
2055
2072
|
wrapperProps: l,
|
|
@@ -2057,45 +2074,45 @@ const Va = 2, Xa = (e) => {
|
|
|
2057
2074
|
floatingLabelStyles: _,
|
|
2058
2075
|
prefixStyles: f,
|
|
2059
2076
|
suffixStyles: p,
|
|
2060
|
-
labelProps:
|
|
2077
|
+
labelProps: g,
|
|
2061
2078
|
helperProps: m,
|
|
2062
|
-
showLimit:
|
|
2063
|
-
maxLength:
|
|
2079
|
+
showLimit: h = !1,
|
|
2080
|
+
maxLength: x,
|
|
2064
2081
|
hint: C,
|
|
2065
|
-
showHint:
|
|
2066
|
-
showHintOnEmpty:
|
|
2067
|
-
prefix:
|
|
2068
|
-
suffix:
|
|
2082
|
+
showHint: y = !1,
|
|
2083
|
+
showHintOnEmpty: v = !1,
|
|
2084
|
+
prefix: u,
|
|
2085
|
+
suffix: w,
|
|
2069
2086
|
onSuffixClick: L,
|
|
2070
|
-
placeholder:
|
|
2087
|
+
placeholder: E,
|
|
2071
2088
|
showLabel: j = !0,
|
|
2072
|
-
labelClassName:
|
|
2073
|
-
hasValue:
|
|
2074
|
-
helper:
|
|
2089
|
+
labelClassName: T,
|
|
2090
|
+
hasValue: R = !1,
|
|
2091
|
+
helper: I,
|
|
2075
2092
|
id: W,
|
|
2076
2093
|
value: q = "",
|
|
2077
2094
|
resize: P,
|
|
2078
2095
|
showGrip: S = !1,
|
|
2079
2096
|
...O
|
|
2080
2097
|
}, z) => {
|
|
2081
|
-
const F = pt(), X = W || F, Q =
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
a &&
|
|
2085
|
-
|
|
2086
|
-
i &&
|
|
2087
|
-
Q &&
|
|
2088
|
-
|
|
2089
|
-
|
|
2098
|
+
const F = pt(), X = W || F, Q = y && C && (R || v), ce = C && C.length > Wt ? C.substring(0, Wt) + "..." : C, ae = $(
|
|
2099
|
+
M.wrapper,
|
|
2100
|
+
M[`size-${r}`],
|
|
2101
|
+
a && M.error,
|
|
2102
|
+
n && M.disabled,
|
|
2103
|
+
i && M.loading,
|
|
2104
|
+
Q && M["has-hint"],
|
|
2105
|
+
w && M["has-suffix"],
|
|
2106
|
+
h && M["has-limit"],
|
|
2090
2107
|
s
|
|
2091
2108
|
), ee = $(
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
), { handleGripMouseDown: te } =
|
|
2097
|
-
return /* @__PURE__ */
|
|
2098
|
-
/* @__PURE__ */
|
|
2109
|
+
M.floatingLabel,
|
|
2110
|
+
M[r],
|
|
2111
|
+
R && M.filled,
|
|
2112
|
+
T
|
|
2113
|
+
), { handleGripMouseDown: te } = ks(S, n, i, P);
|
|
2114
|
+
return /* @__PURE__ */ o.jsxs("div", { ref: z, className: M.inputBase, "data-testid": "input-base-wrapper", ...O, children: [
|
|
2115
|
+
/* @__PURE__ */ o.jsxs(
|
|
2099
2116
|
"div",
|
|
2100
2117
|
{
|
|
2101
2118
|
className: ae,
|
|
@@ -2104,80 +2121,80 @@ const Va = 2, Xa = (e) => {
|
|
|
2104
2121
|
"data-show-grip": S ? "true" : "false",
|
|
2105
2122
|
...l,
|
|
2106
2123
|
children: [
|
|
2107
|
-
|
|
2108
|
-
|
|
2124
|
+
u && /* @__PURE__ */ o.jsx("label", { htmlFor: X, className: M.leftSection, style: f, children: u }),
|
|
2125
|
+
w && /* @__PURE__ */ o.jsx(
|
|
2109
2126
|
"label",
|
|
2110
2127
|
{
|
|
2111
2128
|
htmlFor: X,
|
|
2112
|
-
className:
|
|
2129
|
+
className: M.rightSection,
|
|
2113
2130
|
style: p,
|
|
2114
2131
|
onClick: L,
|
|
2115
|
-
children:
|
|
2132
|
+
children: w
|
|
2116
2133
|
}
|
|
2117
2134
|
),
|
|
2118
|
-
|
|
2135
|
+
E && j && /* @__PURE__ */ o.jsx(
|
|
2119
2136
|
"label",
|
|
2120
2137
|
{
|
|
2121
2138
|
htmlFor: X,
|
|
2122
2139
|
className: ee,
|
|
2123
2140
|
style: _,
|
|
2124
|
-
...
|
|
2125
|
-
children:
|
|
2141
|
+
...g,
|
|
2142
|
+
children: E
|
|
2126
2143
|
}
|
|
2127
2144
|
),
|
|
2128
2145
|
e,
|
|
2129
|
-
S && !
|
|
2146
|
+
S && !h && (P === "fixed" || !P) && /* @__PURE__ */ o.jsx(
|
|
2130
2147
|
"div",
|
|
2131
2148
|
{
|
|
2132
|
-
className:
|
|
2149
|
+
className: M.gripHandle,
|
|
2133
2150
|
onMouseDown: te,
|
|
2134
2151
|
role: "button",
|
|
2135
2152
|
tabIndex: -1,
|
|
2136
2153
|
"aria-label": "Изменить размер",
|
|
2137
|
-
children: /* @__PURE__ */
|
|
2154
|
+
children: /* @__PURE__ */ o.jsx(Ss, {})
|
|
2138
2155
|
}
|
|
2139
2156
|
),
|
|
2140
|
-
Q && /* @__PURE__ */
|
|
2157
|
+
Q && /* @__PURE__ */ o.jsx(
|
|
2141
2158
|
"div",
|
|
2142
2159
|
{
|
|
2143
|
-
className: $(
|
|
2144
|
-
"data-disabled":
|
|
2160
|
+
className: $(M.hint, R && M.truncate),
|
|
2161
|
+
"data-disabled": n || i,
|
|
2145
2162
|
children: ce
|
|
2146
2163
|
}
|
|
2147
2164
|
),
|
|
2148
|
-
|
|
2165
|
+
h && x && /* @__PURE__ */ o.jsxs("div", { className: M.characterLimit, children: [
|
|
2149
2166
|
(q || "").length,
|
|
2150
2167
|
" из ",
|
|
2151
|
-
|
|
2168
|
+
x
|
|
2152
2169
|
] })
|
|
2153
2170
|
]
|
|
2154
2171
|
}
|
|
2155
2172
|
),
|
|
2156
|
-
|
|
2173
|
+
I && /* @__PURE__ */ o.jsx(
|
|
2157
2174
|
"div",
|
|
2158
2175
|
{
|
|
2159
2176
|
className: $(
|
|
2160
|
-
|
|
2161
|
-
a &&
|
|
2162
|
-
(
|
|
2177
|
+
M.helper,
|
|
2178
|
+
a && M.error,
|
|
2179
|
+
(n || i) && M.disabled
|
|
2163
2180
|
),
|
|
2164
2181
|
...m,
|
|
2165
2182
|
id: a ? `${X}-error` : void 0,
|
|
2166
|
-
children:
|
|
2183
|
+
children: I
|
|
2167
2184
|
}
|
|
2168
2185
|
)
|
|
2169
2186
|
] });
|
|
2170
2187
|
}
|
|
2171
2188
|
);
|
|
2172
2189
|
Kt.displayName = "InputWrapperComponent";
|
|
2173
|
-
const Ft = Object.assign(
|
|
2190
|
+
const Ft = Object.assign($s, {
|
|
2174
2191
|
Wrapper: Kt
|
|
2175
2192
|
}), Qt = K(
|
|
2176
2193
|
({
|
|
2177
2194
|
component: e = "input",
|
|
2178
2195
|
size: r = "L",
|
|
2179
2196
|
className: a,
|
|
2180
|
-
error:
|
|
2197
|
+
error: n = !1,
|
|
2181
2198
|
disabled: i = !1,
|
|
2182
2199
|
loading: s = !1,
|
|
2183
2200
|
placeholder: l,
|
|
@@ -2185,21 +2202,21 @@ const Ft = Object.assign(ks, {
|
|
|
2185
2202
|
labelClassName: _,
|
|
2186
2203
|
helper: f,
|
|
2187
2204
|
prefix: p,
|
|
2188
|
-
suffix:
|
|
2205
|
+
suffix: g,
|
|
2189
2206
|
id: m,
|
|
2190
|
-
onFocus:
|
|
2191
|
-
onBlur:
|
|
2207
|
+
onFocus: h,
|
|
2208
|
+
onBlur: x,
|
|
2192
2209
|
onKeyDown: C,
|
|
2193
|
-
onSuffixClick:
|
|
2194
|
-
onChange:
|
|
2195
|
-
value:
|
|
2196
|
-
wrapperProps:
|
|
2210
|
+
onSuffixClick: y,
|
|
2211
|
+
onChange: v,
|
|
2212
|
+
value: u = "",
|
|
2213
|
+
wrapperProps: w,
|
|
2197
2214
|
wrapperStyles: L,
|
|
2198
|
-
floatingLabelStyles:
|
|
2215
|
+
floatingLabelStyles: E,
|
|
2199
2216
|
prefixStyles: j,
|
|
2200
|
-
suffixStyles:
|
|
2201
|
-
textareaStyles:
|
|
2202
|
-
labelProps:
|
|
2217
|
+
suffixStyles: T,
|
|
2218
|
+
textareaStyles: R,
|
|
2219
|
+
labelProps: I,
|
|
2203
2220
|
helperProps: W,
|
|
2204
2221
|
showLimit: q = !1,
|
|
2205
2222
|
maxLength: P,
|
|
@@ -2212,21 +2229,21 @@ const Ft = Object.assign(ks, {
|
|
|
2212
2229
|
showGrip: ce = !1,
|
|
2213
2230
|
...ae
|
|
2214
2231
|
}, ee) => {
|
|
2215
|
-
const te = pt(), me = m || te, [ze, Ee] = _e(
|
|
2232
|
+
const te = pt(), me = m || te, [ze, Ee] = _e(u), be = u !== void 0 ? u : ze, Te = (be || "").length > 0, Le = be || "", Re = c && (r === "XL" || e === "textarea") && !p, Qe = Se(
|
|
2216
2233
|
(G) => {
|
|
2217
2234
|
var U;
|
|
2218
|
-
i || s || (
|
|
2235
|
+
i || s || (h == null || h(), (U = S == null ? void 0 : S.onFocus) == null || U.call(
|
|
2219
2236
|
S,
|
|
2220
2237
|
G
|
|
2221
2238
|
));
|
|
2222
2239
|
},
|
|
2223
|
-
[
|
|
2224
|
-
),
|
|
2240
|
+
[h, S, i, s]
|
|
2241
|
+
), Xe = Se(
|
|
2225
2242
|
(G) => {
|
|
2226
2243
|
var U;
|
|
2227
2244
|
if (G.key === "Tab") {
|
|
2228
|
-
const he = G.target.closest(`.${
|
|
2229
|
-
he && he.classList.add(
|
|
2245
|
+
const he = G.target.closest(`.${M.wrapper}`);
|
|
2246
|
+
he && he.classList.add(M.tabFocused);
|
|
2230
2247
|
}
|
|
2231
2248
|
(U = S == null ? void 0 : S.onKeyUp) == null || U.call(
|
|
2232
2249
|
S,
|
|
@@ -2234,45 +2251,45 @@ const Ft = Object.assign(ks, {
|
|
|
2234
2251
|
);
|
|
2235
2252
|
},
|
|
2236
2253
|
[S]
|
|
2237
|
-
),
|
|
2254
|
+
), et = Se(
|
|
2238
2255
|
(G) => {
|
|
2239
2256
|
var he;
|
|
2240
|
-
const U = G.target.closest(`.${
|
|
2241
|
-
U && U.classList.remove(
|
|
2257
|
+
const U = G.target.closest(`.${M.wrapper}`);
|
|
2258
|
+
U && U.classList.remove(M.tabFocused), x == null || x(), (he = S == null ? void 0 : S.onBlur) == null || he.call(
|
|
2242
2259
|
S,
|
|
2243
2260
|
G
|
|
2244
2261
|
);
|
|
2245
2262
|
},
|
|
2246
|
-
[
|
|
2247
|
-
),
|
|
2263
|
+
[x, S]
|
|
2264
|
+
), tt = Se(
|
|
2248
2265
|
(G) => {
|
|
2249
2266
|
var he;
|
|
2250
2267
|
if (i || s) return;
|
|
2251
2268
|
const U = G.target.value;
|
|
2252
|
-
Ee(U),
|
|
2269
|
+
Ee(U), v == null || v(U, G), (he = S == null ? void 0 : S.onChange) == null || he.call(
|
|
2253
2270
|
S,
|
|
2254
2271
|
G
|
|
2255
2272
|
);
|
|
2256
2273
|
},
|
|
2257
|
-
[
|
|
2274
|
+
[v, S, i, s]
|
|
2258
2275
|
);
|
|
2259
2276
|
return le(() => {
|
|
2260
|
-
Ee(
|
|
2261
|
-
}, [
|
|
2277
|
+
Ee(u || "");
|
|
2278
|
+
}, [u]), /* @__PURE__ */ o.jsx(
|
|
2262
2279
|
Ft.Wrapper,
|
|
2263
2280
|
{
|
|
2264
2281
|
ref: ee,
|
|
2265
2282
|
size: r,
|
|
2266
|
-
error:
|
|
2283
|
+
error: n,
|
|
2267
2284
|
disabled: i || s,
|
|
2268
2285
|
loading: s,
|
|
2269
|
-
className: $(a, e === "textarea" &&
|
|
2270
|
-
wrapperProps:
|
|
2286
|
+
className: $(a, e === "textarea" && M["textarea-wrapper"]),
|
|
2287
|
+
wrapperProps: w,
|
|
2271
2288
|
wrapperStyles: L,
|
|
2272
|
-
floatingLabelStyles:
|
|
2289
|
+
floatingLabelStyles: E,
|
|
2273
2290
|
prefixStyles: j,
|
|
2274
|
-
suffixStyles:
|
|
2275
|
-
labelProps:
|
|
2291
|
+
suffixStyles: T,
|
|
2292
|
+
labelProps: I,
|
|
2276
2293
|
helperProps: W,
|
|
2277
2294
|
showLimit: q,
|
|
2278
2295
|
maxLength: P,
|
|
@@ -2280,39 +2297,39 @@ const Ft = Object.assign(ks, {
|
|
|
2280
2297
|
showHint: z,
|
|
2281
2298
|
showHintOnEmpty: F,
|
|
2282
2299
|
prefix: p,
|
|
2283
|
-
suffix:
|
|
2284
|
-
onSuffixClick:
|
|
2300
|
+
suffix: g,
|
|
2301
|
+
onSuffixClick: y,
|
|
2285
2302
|
placeholder: l,
|
|
2286
2303
|
showLabel: c,
|
|
2287
2304
|
labelClassName: _,
|
|
2288
2305
|
hasValue: Te,
|
|
2289
2306
|
helper: f,
|
|
2290
2307
|
id: me,
|
|
2291
|
-
value:
|
|
2308
|
+
value: Le,
|
|
2292
2309
|
showGrip: ce,
|
|
2293
2310
|
resize: Q,
|
|
2294
2311
|
...ae,
|
|
2295
|
-
children: /* @__PURE__ */
|
|
2312
|
+
children: /* @__PURE__ */ o.jsx(
|
|
2296
2313
|
Ft,
|
|
2297
2314
|
{
|
|
2298
2315
|
component: e,
|
|
2299
2316
|
size: r,
|
|
2300
|
-
value:
|
|
2317
|
+
value: Le,
|
|
2301
2318
|
placeholder: l,
|
|
2302
2319
|
disabled: i,
|
|
2303
2320
|
loading: s,
|
|
2304
|
-
onFocus:
|
|
2305
|
-
onBlur:
|
|
2306
|
-
onChange:
|
|
2321
|
+
onFocus: Qe,
|
|
2322
|
+
onBlur: et,
|
|
2323
|
+
onChange: tt,
|
|
2307
2324
|
onKeyDown: C,
|
|
2308
|
-
onKeyUp:
|
|
2325
|
+
onKeyUp: Xe,
|
|
2309
2326
|
maxLength: P,
|
|
2310
2327
|
truncate: X,
|
|
2311
2328
|
"data-empty": !Te,
|
|
2312
2329
|
shouldShowFloatingLabelClass: Re,
|
|
2313
|
-
style: e === "textarea" ?
|
|
2314
|
-
"aria-invalid": !!
|
|
2315
|
-
"aria-errormessage":
|
|
2330
|
+
style: e === "textarea" ? R : void 0,
|
|
2331
|
+
"aria-invalid": !!n,
|
|
2332
|
+
"aria-errormessage": n ? `${me}-error` : void 0,
|
|
2316
2333
|
id: me,
|
|
2317
2334
|
resize: Q,
|
|
2318
2335
|
...S
|
|
@@ -2326,12 +2343,12 @@ const Ft = Object.assign(ks, {
|
|
|
2326
2343
|
M: "M",
|
|
2327
2344
|
L: "L",
|
|
2328
2345
|
XL: "XL"
|
|
2329
|
-
},
|
|
2346
|
+
}, Es = (e, r, a, n) => {
|
|
2330
2347
|
switch (e) {
|
|
2331
2348
|
case H.XL:
|
|
2332
2349
|
return r && a ? "8px 16px 8px 16px" : "16px 16px 16px 16px";
|
|
2333
2350
|
case H.L:
|
|
2334
|
-
return
|
|
2351
|
+
return n ? "12px 12px 12px 12px" : "12px 16px 12px 16px";
|
|
2335
2352
|
case H.M:
|
|
2336
2353
|
return "10px 12px 10px 12px";
|
|
2337
2354
|
case H.S:
|
|
@@ -2339,7 +2356,7 @@ const Ft = Object.assign(ks, {
|
|
|
2339
2356
|
default:
|
|
2340
2357
|
return "12px 16px 12px 16px";
|
|
2341
2358
|
}
|
|
2342
|
-
},
|
|
2359
|
+
}, Ts = (e) => {
|
|
2343
2360
|
switch (e) {
|
|
2344
2361
|
case H.XL:
|
|
2345
2362
|
return "56px";
|
|
@@ -2352,7 +2369,7 @@ const Ft = Object.assign(ks, {
|
|
|
2352
2369
|
default:
|
|
2353
2370
|
return "48px";
|
|
2354
2371
|
}
|
|
2355
|
-
},
|
|
2372
|
+
}, Rs = (e) => {
|
|
2356
2373
|
switch (e) {
|
|
2357
2374
|
case H.S:
|
|
2358
2375
|
case H.M:
|
|
@@ -2363,7 +2380,7 @@ const Ft = Object.assign(ks, {
|
|
|
2363
2380
|
default:
|
|
2364
2381
|
return 8;
|
|
2365
2382
|
}
|
|
2366
|
-
},
|
|
2383
|
+
}, Ns = (e) => {
|
|
2367
2384
|
switch (e) {
|
|
2368
2385
|
case H.S:
|
|
2369
2386
|
case H.M:
|
|
@@ -2374,7 +2391,7 @@ const Ft = Object.assign(ks, {
|
|
|
2374
2391
|
default:
|
|
2375
2392
|
return 12;
|
|
2376
2393
|
}
|
|
2377
|
-
},
|
|
2394
|
+
}, Is = (e, r, a, n) => ({
|
|
2378
2395
|
wrapperStyles: {
|
|
2379
2396
|
minHeight: e,
|
|
2380
2397
|
maxHeight: e,
|
|
@@ -2388,13 +2405,13 @@ const Ft = Object.assign(ks, {
|
|
|
2388
2405
|
paddingRight: `${a}px`
|
|
2389
2406
|
},
|
|
2390
2407
|
suffixStyles: {
|
|
2391
|
-
right: `${
|
|
2408
|
+
right: `${n}px`,
|
|
2392
2409
|
maxWidth: "32px",
|
|
2393
2410
|
maxHeight: "32px",
|
|
2394
2411
|
padding: "6px",
|
|
2395
2412
|
cursor: "pointer"
|
|
2396
2413
|
}
|
|
2397
|
-
}),
|
|
2414
|
+
}), Ms = (e, r, a, n) => ({
|
|
2398
2415
|
wrapperStyles: {
|
|
2399
2416
|
height: e,
|
|
2400
2417
|
minHeight: e,
|
|
@@ -2410,13 +2427,13 @@ const Ft = Object.assign(ks, {
|
|
|
2410
2427
|
paddingRight: `${a}px`
|
|
2411
2428
|
},
|
|
2412
2429
|
suffixStyles: {
|
|
2413
|
-
right: `${
|
|
2430
|
+
right: `${n}px`,
|
|
2414
2431
|
maxWidth: "40px",
|
|
2415
2432
|
maxHeight: "40px",
|
|
2416
2433
|
padding: "8px",
|
|
2417
2434
|
cursor: "pointer"
|
|
2418
2435
|
}
|
|
2419
|
-
}),
|
|
2436
|
+
}), Os = (e, r, a, n) => ({
|
|
2420
2437
|
wrapperStyles: {
|
|
2421
2438
|
minHeight: e,
|
|
2422
2439
|
maxHeight: e,
|
|
@@ -2430,7 +2447,7 @@ const Ft = Object.assign(ks, {
|
|
|
2430
2447
|
paddingRight: `${a}px`
|
|
2431
2448
|
},
|
|
2432
2449
|
suffixStyles: {
|
|
2433
|
-
right: `${
|
|
2450
|
+
right: `${n}px`,
|
|
2434
2451
|
maxWidth: "40px",
|
|
2435
2452
|
maxHeight: "40px",
|
|
2436
2453
|
padding: "8px",
|
|
@@ -2439,7 +2456,7 @@ const Ft = Object.assign(ks, {
|
|
|
2439
2456
|
alignItems: "center",
|
|
2440
2457
|
justifyContent: "center"
|
|
2441
2458
|
}
|
|
2442
|
-
}),
|
|
2459
|
+
}), As = (e, r, a, n) => ({
|
|
2443
2460
|
wrapperStyles: {
|
|
2444
2461
|
minHeight: e,
|
|
2445
2462
|
maxHeight: e,
|
|
@@ -2453,23 +2470,23 @@ const Ft = Object.assign(ks, {
|
|
|
2453
2470
|
paddingRight: `${a}px`
|
|
2454
2471
|
},
|
|
2455
2472
|
suffixStyles: {
|
|
2456
|
-
right: `${
|
|
2473
|
+
right: `${n}px`,
|
|
2457
2474
|
maxWidth: "32px",
|
|
2458
2475
|
maxHeight: "32px",
|
|
2459
2476
|
padding: "6px",
|
|
2460
2477
|
cursor: "pointer"
|
|
2461
2478
|
}
|
|
2462
|
-
}),
|
|
2463
|
-
const i =
|
|
2479
|
+
}), Ps = (e, r, a, n) => {
|
|
2480
|
+
const i = Ts(e), s = Es(e, r, a, n), l = Ns(e), c = Rs(e);
|
|
2464
2481
|
switch (e) {
|
|
2465
2482
|
case H.XL:
|
|
2466
|
-
return Is(i, s, l, c);
|
|
2467
|
-
case H.L:
|
|
2468
2483
|
return Ms(i, s, l, c);
|
|
2469
|
-
case H.
|
|
2484
|
+
case H.L:
|
|
2470
2485
|
return Os(i, s, l, c);
|
|
2486
|
+
case H.M:
|
|
2487
|
+
return As(i, s, l, c);
|
|
2471
2488
|
case H.S:
|
|
2472
|
-
return
|
|
2489
|
+
return Is(i, s, l, c);
|
|
2473
2490
|
default:
|
|
2474
2491
|
return {
|
|
2475
2492
|
wrapperStyles: {},
|
|
@@ -2478,12 +2495,12 @@ const Ft = Object.assign(ks, {
|
|
|
2478
2495
|
suffixStyles: {}
|
|
2479
2496
|
};
|
|
2480
2497
|
}
|
|
2481
|
-
},
|
|
2498
|
+
}, Hl = K(
|
|
2482
2499
|
({
|
|
2483
2500
|
value: e = "",
|
|
2484
2501
|
onChange: r,
|
|
2485
2502
|
type: a = "text",
|
|
2486
|
-
placeholder:
|
|
2503
|
+
placeholder: n,
|
|
2487
2504
|
maxLength: i,
|
|
2488
2505
|
minLength: s,
|
|
2489
2506
|
autoComplete: l,
|
|
@@ -2491,21 +2508,21 @@ const Ft = Object.assign(ks, {
|
|
|
2491
2508
|
size: _ = H.L,
|
|
2492
2509
|
inputProps: f,
|
|
2493
2510
|
error: p,
|
|
2494
|
-
disabled:
|
|
2511
|
+
disabled: g,
|
|
2495
2512
|
loading: m,
|
|
2496
|
-
helper:
|
|
2497
|
-
prefix:
|
|
2513
|
+
helper: h,
|
|
2514
|
+
prefix: x,
|
|
2498
2515
|
suffix: C,
|
|
2499
|
-
clearable:
|
|
2500
|
-
id:
|
|
2501
|
-
showLabel:
|
|
2502
|
-
onFocus:
|
|
2516
|
+
clearable: y = !1,
|
|
2517
|
+
id: v,
|
|
2518
|
+
showLabel: u = !0,
|
|
2519
|
+
onFocus: w,
|
|
2503
2520
|
onBlur: L,
|
|
2504
|
-
onSuffixClick:
|
|
2521
|
+
onSuffixClick: E,
|
|
2505
2522
|
onClear: j,
|
|
2506
|
-
className:
|
|
2507
|
-
truncate:
|
|
2508
|
-
hint:
|
|
2523
|
+
className: T,
|
|
2524
|
+
truncate: R = !0,
|
|
2525
|
+
hint: I,
|
|
2509
2526
|
showHint: W = !1,
|
|
2510
2527
|
showHintOnEmpty: q = !1,
|
|
2511
2528
|
wrapperProps: P,
|
|
@@ -2513,11 +2530,11 @@ const Ft = Object.assign(ks, {
|
|
|
2513
2530
|
helperProps: O,
|
|
2514
2531
|
...z
|
|
2515
2532
|
}, F) => {
|
|
2516
|
-
const X = (e || "").length > 0, Q = _ === H.XL, ce = !!
|
|
2533
|
+
const X = (e || "").length > 0, Q = _ === H.XL, ce = !!x, ae = Q && u && !x, ee = y && X && !(g || m), te = () => {
|
|
2517
2534
|
r == null || r(""), j == null || j();
|
|
2518
2535
|
}, me = () => {
|
|
2519
|
-
ee && te(),
|
|
2520
|
-
}, ze = ee ? /* @__PURE__ */
|
|
2536
|
+
ee && te(), E == null || E();
|
|
2537
|
+
}, ze = ee ? /* @__PURE__ */ o.jsx(
|
|
2521
2538
|
Jt,
|
|
2522
2539
|
{
|
|
2523
2540
|
size: _ === H.S || _ === H.M ? "xs" : "sm",
|
|
@@ -2531,26 +2548,26 @@ const Ft = Object.assign(ks, {
|
|
|
2531
2548
|
autoComplete: l,
|
|
2532
2549
|
autoFocus: c,
|
|
2533
2550
|
...f
|
|
2534
|
-
}, be =
|
|
2535
|
-
return /* @__PURE__ */
|
|
2551
|
+
}, be = Ps(_, ae, X, ce);
|
|
2552
|
+
return /* @__PURE__ */ o.jsx(
|
|
2536
2553
|
Qt,
|
|
2537
2554
|
{
|
|
2538
2555
|
size: _,
|
|
2539
2556
|
error: p,
|
|
2540
|
-
disabled:
|
|
2557
|
+
disabled: g || m,
|
|
2541
2558
|
loading: m,
|
|
2542
|
-
helper:
|
|
2543
|
-
prefix:
|
|
2559
|
+
helper: h,
|
|
2560
|
+
prefix: x,
|
|
2544
2561
|
suffix: ze,
|
|
2545
|
-
id:
|
|
2562
|
+
id: v,
|
|
2546
2563
|
showLabel: ae,
|
|
2547
|
-
onFocus:
|
|
2564
|
+
onFocus: w,
|
|
2548
2565
|
onBlur: L,
|
|
2549
2566
|
onSuffixClick: me,
|
|
2550
2567
|
onChange: r,
|
|
2551
2568
|
value: e,
|
|
2552
|
-
placeholder:
|
|
2553
|
-
className:
|
|
2569
|
+
placeholder: n,
|
|
2570
|
+
className: T,
|
|
2554
2571
|
wrapperStyles: be.wrapperStyles,
|
|
2555
2572
|
floatingLabelStyles: be.floatingLabelStyles,
|
|
2556
2573
|
prefixStyles: be.prefixStyles,
|
|
@@ -2561,10 +2578,10 @@ const Ft = Object.assign(ks, {
|
|
|
2561
2578
|
showLimit: !1,
|
|
2562
2579
|
maxLength: i,
|
|
2563
2580
|
inputProps: Ee,
|
|
2564
|
-
hint:
|
|
2581
|
+
hint: I,
|
|
2565
2582
|
showHint: W,
|
|
2566
2583
|
showHintOnEmpty: q,
|
|
2567
|
-
truncate:
|
|
2584
|
+
truncate: R,
|
|
2568
2585
|
...z
|
|
2569
2586
|
}
|
|
2570
2587
|
);
|
|
@@ -2572,13 +2589,13 @@ const Ft = Object.assign(ks, {
|
|
|
2572
2589
|
), ue = {
|
|
2573
2590
|
M: "M",
|
|
2574
2591
|
L: "L"
|
|
2575
|
-
},
|
|
2592
|
+
}, Je = {
|
|
2576
2593
|
M: "12px",
|
|
2577
2594
|
L: "16px"
|
|
2578
|
-
},
|
|
2595
|
+
}, Bs = {
|
|
2579
2596
|
M: "xs",
|
|
2580
2597
|
L: "sm"
|
|
2581
|
-
},
|
|
2598
|
+
}, Ge = {
|
|
2582
2599
|
FILL: "fill",
|
|
2583
2600
|
FIXED: "fixed"
|
|
2584
2601
|
}, ct = {
|
|
@@ -2596,7 +2613,7 @@ const Ft = Object.assign(ks, {
|
|
|
2596
2613
|
M: 48,
|
|
2597
2614
|
L: 56,
|
|
2598
2615
|
XL: 112
|
|
2599
|
-
},
|
|
2616
|
+
}, zs = (e, r) => {
|
|
2600
2617
|
if (e === ue.M)
|
|
2601
2618
|
return ct.M;
|
|
2602
2619
|
if (r)
|
|
@@ -2607,7 +2624,7 @@ const Ft = Object.assign(ks, {
|
|
|
2607
2624
|
default:
|
|
2608
2625
|
return ct.L;
|
|
2609
2626
|
}
|
|
2610
|
-
},
|
|
2627
|
+
}, Ds = (e, r) => {
|
|
2611
2628
|
if (e === ue.M)
|
|
2612
2629
|
return Oe.M;
|
|
2613
2630
|
if (r)
|
|
@@ -2626,7 +2643,7 @@ const Ft = Object.assign(ks, {
|
|
|
2626
2643
|
default:
|
|
2627
2644
|
return Oe.L;
|
|
2628
2645
|
}
|
|
2629
|
-
},
|
|
2646
|
+
}, Ws = (e, r, a) => {
|
|
2630
2647
|
if (e === ue.M)
|
|
2631
2648
|
return ve.M;
|
|
2632
2649
|
if (r)
|
|
@@ -2646,7 +2663,7 @@ const Ft = Object.assign(ks, {
|
|
|
2646
2663
|
default:
|
|
2647
2664
|
return ve.L;
|
|
2648
2665
|
}
|
|
2649
|
-
},
|
|
2666
|
+
}, Fs = (e, r) => {
|
|
2650
2667
|
if (e === ue.M)
|
|
2651
2668
|
return "M";
|
|
2652
2669
|
if (r)
|
|
@@ -2661,42 +2678,42 @@ const Ft = Object.assign(ks, {
|
|
|
2661
2678
|
return "L";
|
|
2662
2679
|
}
|
|
2663
2680
|
return e;
|
|
2664
|
-
},
|
|
2665
|
-
const i =
|
|
2681
|
+
}, qs = (e) => Bs[e], Hs = (e) => Je[e], Vs = (e, r, a, n) => {
|
|
2682
|
+
const i = zs(e, r), s = Ds(e, r), l = Ws(e, r, a);
|
|
2666
2683
|
return {
|
|
2667
2684
|
wrapperStyles: {
|
|
2668
2685
|
minHeight: i,
|
|
2669
2686
|
// Для fill resize устанавливаем height: 100%
|
|
2670
|
-
...
|
|
2687
|
+
...n === Ge.FILL && { height: "100%" },
|
|
2671
2688
|
// Для fixed resize устанавливаем фиксированную высоту
|
|
2672
|
-
...
|
|
2689
|
+
...n === Ge.FIXED && r && { height: i },
|
|
2673
2690
|
boxSizing: "border-box",
|
|
2674
2691
|
padding: l
|
|
2675
2692
|
},
|
|
2676
2693
|
floatingLabelStyles: {
|
|
2677
|
-
left: e === ue.M ?
|
|
2694
|
+
left: e === ue.M ? Je.M : Je.L,
|
|
2678
2695
|
transformOrigin: "left top",
|
|
2679
|
-
top: r === 112 && a && e === ue.L ?
|
|
2696
|
+
top: r === 112 && a && e === ue.L ? Je.L : void 0
|
|
2680
2697
|
},
|
|
2681
2698
|
suffixStyles: {
|
|
2682
|
-
right:
|
|
2699
|
+
right: Hs(e),
|
|
2683
2700
|
top: r === 48 && e === ue.L ? "11px" : void 0,
|
|
2684
2701
|
boxSizing: "border-box"
|
|
2685
2702
|
},
|
|
2686
2703
|
textareaStyles: {
|
|
2687
2704
|
minHeight: s,
|
|
2688
2705
|
// Для fill resize flex: 1
|
|
2689
|
-
...
|
|
2706
|
+
...n === Ge.FILL && { flex: 1, minHeight: 0 },
|
|
2690
2707
|
// Для fixed resize фиксированная высота
|
|
2691
|
-
...
|
|
2708
|
+
...n === Ge.FIXED && r && { height: s }
|
|
2692
2709
|
}
|
|
2693
2710
|
};
|
|
2694
|
-
},
|
|
2711
|
+
}, Vl = K(
|
|
2695
2712
|
({
|
|
2696
2713
|
value: e = "",
|
|
2697
2714
|
onChange: r,
|
|
2698
2715
|
placeholder: a,
|
|
2699
|
-
maxLength:
|
|
2716
|
+
maxLength: n,
|
|
2700
2717
|
minLength: i,
|
|
2701
2718
|
autoFocus: s,
|
|
2702
2719
|
size: l = ue.L,
|
|
@@ -2704,46 +2721,46 @@ const Ft = Object.assign(ks, {
|
|
|
2704
2721
|
error: _,
|
|
2705
2722
|
disabled: f,
|
|
2706
2723
|
loading: p,
|
|
2707
|
-
helper:
|
|
2724
|
+
helper: g,
|
|
2708
2725
|
suffix: m,
|
|
2709
|
-
clearable:
|
|
2710
|
-
id:
|
|
2726
|
+
clearable: h = !1,
|
|
2727
|
+
id: x,
|
|
2711
2728
|
showLabel: C = !0,
|
|
2712
|
-
onFocus:
|
|
2713
|
-
onBlur:
|
|
2714
|
-
onClear:
|
|
2715
|
-
onKeyDown:
|
|
2729
|
+
onFocus: y,
|
|
2730
|
+
onBlur: v,
|
|
2731
|
+
onClear: u,
|
|
2732
|
+
onKeyDown: w,
|
|
2716
2733
|
className: L,
|
|
2717
|
-
rows:
|
|
2734
|
+
rows: E = 1,
|
|
2718
2735
|
showLimit: j = !1,
|
|
2719
|
-
wrapperProps:
|
|
2720
|
-
labelProps:
|
|
2721
|
-
helperProps:
|
|
2736
|
+
wrapperProps: T,
|
|
2737
|
+
labelProps: R,
|
|
2738
|
+
helperProps: I,
|
|
2722
2739
|
showGrip: W,
|
|
2723
2740
|
minHeight: q,
|
|
2724
2741
|
resize: P,
|
|
2725
2742
|
...S
|
|
2726
2743
|
}, O) => {
|
|
2727
|
-
const z = (e || "").length > 0, F = C && !!a && (l === ue.M || q !== 48), X =
|
|
2728
|
-
r == null || r(""),
|
|
2744
|
+
const z = (e || "").length > 0, F = C && !!a && (l === ue.M || q !== 48), X = h && z && !(f || p), Q = () => {
|
|
2745
|
+
r == null || r(""), u == null || u();
|
|
2729
2746
|
}, ce = () => {
|
|
2730
2747
|
X && Q();
|
|
2731
|
-
}, ae = X ? /* @__PURE__ */
|
|
2748
|
+
}, ae = X ? /* @__PURE__ */ o.jsx(
|
|
2732
2749
|
Jt,
|
|
2733
2750
|
{
|
|
2734
|
-
size:
|
|
2751
|
+
size: qs(l),
|
|
2735
2752
|
color: "var(--icon-secondary)",
|
|
2736
2753
|
style: { cursor: "pointer" },
|
|
2737
2754
|
"data-testid": "x-icon"
|
|
2738
2755
|
}
|
|
2739
|
-
) : m, ee =
|
|
2740
|
-
rows:
|
|
2756
|
+
) : m, ee = Vs(l, q, F && z, P), te = Fs(l, q), me = {
|
|
2757
|
+
rows: E,
|
|
2741
2758
|
minLength: i,
|
|
2742
2759
|
autoFocus: s,
|
|
2743
2760
|
resize: P,
|
|
2744
2761
|
...c
|
|
2745
2762
|
};
|
|
2746
|
-
return /* @__PURE__ */
|
|
2763
|
+
return /* @__PURE__ */ o.jsx(
|
|
2747
2764
|
Qt,
|
|
2748
2765
|
{
|
|
2749
2766
|
ref: O,
|
|
@@ -2753,13 +2770,13 @@ const Ft = Object.assign(ks, {
|
|
|
2753
2770
|
disabled: f || p,
|
|
2754
2771
|
loading: p,
|
|
2755
2772
|
onSuffixClick: ce,
|
|
2756
|
-
helper:
|
|
2773
|
+
helper: g,
|
|
2757
2774
|
suffix: ae,
|
|
2758
|
-
id:
|
|
2775
|
+
id: x,
|
|
2759
2776
|
showLabel: F,
|
|
2760
|
-
onFocus:
|
|
2761
|
-
onBlur:
|
|
2762
|
-
onKeyDown:
|
|
2777
|
+
onFocus: y,
|
|
2778
|
+
onBlur: v,
|
|
2779
|
+
onKeyDown: w,
|
|
2763
2780
|
onChange: r,
|
|
2764
2781
|
value: e || "",
|
|
2765
2782
|
placeholder: a,
|
|
@@ -2769,11 +2786,11 @@ const Ft = Object.assign(ks, {
|
|
|
2769
2786
|
floatingLabelStyles: ee.floatingLabelStyles,
|
|
2770
2787
|
suffixStyles: ee.suffixStyles,
|
|
2771
2788
|
textareaStyles: ee.textareaStyles,
|
|
2772
|
-
wrapperProps:
|
|
2773
|
-
labelProps:
|
|
2774
|
-
helperProps:
|
|
2789
|
+
wrapperProps: T,
|
|
2790
|
+
labelProps: R,
|
|
2791
|
+
helperProps: I,
|
|
2775
2792
|
showLimit: j && (q === 112 || l === ue.M),
|
|
2776
|
-
maxLength:
|
|
2793
|
+
maxLength: n,
|
|
2777
2794
|
inputProps: me,
|
|
2778
2795
|
resize: P,
|
|
2779
2796
|
showGrip: W,
|
|
@@ -2781,15 +2798,15 @@ const Ft = Object.assign(ks, {
|
|
|
2781
2798
|
}
|
|
2782
2799
|
);
|
|
2783
2800
|
}
|
|
2784
|
-
),
|
|
2785
|
-
helper:
|
|
2801
|
+
), Xs = "_helper_1jq7j_16", dt = {
|
|
2802
|
+
helper: Xs,
|
|
2786
2803
|
"helper--error": "_helper--error_1jq7j_28",
|
|
2787
2804
|
"helper--disabled": "_helper--disabled_1jq7j_33"
|
|
2788
|
-
},
|
|
2805
|
+
}, Xl = ({
|
|
2789
2806
|
title: e,
|
|
2790
2807
|
error: r,
|
|
2791
2808
|
className: a = "",
|
|
2792
|
-
style:
|
|
2809
|
+
style: n,
|
|
2793
2810
|
disabled: i = !1,
|
|
2794
2811
|
"data-testid": s,
|
|
2795
2812
|
"aria-label": l,
|
|
@@ -2801,38 +2818,38 @@ const Ft = Object.assign(ks, {
|
|
|
2801
2818
|
i && dt["helper--disabled"],
|
|
2802
2819
|
a
|
|
2803
2820
|
), p = i ? e : r || e;
|
|
2804
|
-
return /* @__PURE__ */
|
|
2821
|
+
return /* @__PURE__ */ o.jsx(
|
|
2805
2822
|
"div",
|
|
2806
2823
|
{
|
|
2807
2824
|
className: f,
|
|
2808
|
-
style:
|
|
2825
|
+
style: n,
|
|
2809
2826
|
"data-testid": s,
|
|
2810
2827
|
"aria-label": l,
|
|
2811
2828
|
"aria-describedby": c,
|
|
2812
|
-
children: /* @__PURE__ */
|
|
2829
|
+
children: /* @__PURE__ */ o.jsx("p", { children: p })
|
|
2813
2830
|
}
|
|
2814
2831
|
);
|
|
2815
|
-
},
|
|
2816
|
-
radio:
|
|
2817
|
-
checked:
|
|
2818
|
-
error:
|
|
2819
|
-
disabled:
|
|
2820
|
-
icon:
|
|
2821
|
-
small:
|
|
2822
|
-
medium:
|
|
2823
|
-
large:
|
|
2824
|
-
label:
|
|
2825
|
-
container:
|
|
2826
|
-
input:
|
|
2827
|
-
card:
|
|
2832
|
+
}, Ys = "_radio_1q34w_54", Zs = "_checked_1q34w_75", Gs = "_error_1q34w_80", Us = "_disabled_1q34w_89", Js = "_icon_1q34w_125", Ks = "_small_1q34w_133", Qs = "_medium_1q34w_140", ei = "_large_1q34w_147", ti = "_label_1q34w_154", ri = "_container_1q34w_180", ai = "_input_1q34w_193", ni = "_card_1q34w_200", oi = "_smallCard_1q34w_206", si = "_mediumCard_1q34w_210", ii = "_largeCard_1q34w_214", de = {
|
|
2833
|
+
radio: Ys,
|
|
2834
|
+
checked: Zs,
|
|
2835
|
+
error: Gs,
|
|
2836
|
+
disabled: Us,
|
|
2837
|
+
icon: Js,
|
|
2838
|
+
small: Ks,
|
|
2839
|
+
medium: Qs,
|
|
2840
|
+
large: ei,
|
|
2841
|
+
label: ti,
|
|
2842
|
+
container: ri,
|
|
2843
|
+
input: ai,
|
|
2844
|
+
card: ni,
|
|
2828
2845
|
smallCard: oi,
|
|
2829
|
-
mediumCard:
|
|
2830
|
-
largeCard:
|
|
2831
|
-
},
|
|
2846
|
+
mediumCard: si,
|
|
2847
|
+
largeCard: ii
|
|
2848
|
+
}, li = "radio-container-", ci = "radio-label", er = K(
|
|
2832
2849
|
(e, r) => {
|
|
2833
2850
|
const {
|
|
2834
2851
|
name: a,
|
|
2835
|
-
id:
|
|
2852
|
+
id: n,
|
|
2836
2853
|
value: i,
|
|
2837
2854
|
size: s = "large",
|
|
2838
2855
|
loading: l = !1,
|
|
@@ -2840,21 +2857,21 @@ const Ft = Object.assign(ks, {
|
|
|
2840
2857
|
disabled: _ = !1,
|
|
2841
2858
|
checked: f = !1,
|
|
2842
2859
|
containerClassName: p,
|
|
2843
|
-
className:
|
|
2860
|
+
className: g,
|
|
2844
2861
|
children: m,
|
|
2845
|
-
clickable:
|
|
2846
|
-
mode:
|
|
2862
|
+
clickable: h = "all",
|
|
2863
|
+
mode: x = "default",
|
|
2847
2864
|
tabIndex: C,
|
|
2848
|
-
style:
|
|
2849
|
-
containerStyle:
|
|
2850
|
-
onChange:
|
|
2851
|
-
"data-testid":
|
|
2865
|
+
style: y,
|
|
2866
|
+
containerStyle: v,
|
|
2867
|
+
onChange: u,
|
|
2868
|
+
"data-testid": w,
|
|
2852
2869
|
...L
|
|
2853
|
-
} = e,
|
|
2854
|
-
j ||
|
|
2870
|
+
} = e, E = !!c, j = _ || l, T = h === "all", R = x === "card", I = de[`${s}Card`], W = n ?? a, q = (F) => {
|
|
2871
|
+
j || u == null || u(i, F);
|
|
2855
2872
|
}, P = (F) => {
|
|
2856
|
-
F.key === "Enter" && !j && (F.preventDefault(),
|
|
2857
|
-
}, S = (F) => F.stopPropagation(), O = () => /* @__PURE__ */
|
|
2873
|
+
F.key === "Enter" && !j && (F.preventDefault(), u == null || u(i));
|
|
2874
|
+
}, S = (F) => F.stopPropagation(), O = () => /* @__PURE__ */ o.jsxs(
|
|
2858
2875
|
"div",
|
|
2859
2876
|
{
|
|
2860
2877
|
className: $(
|
|
@@ -2863,19 +2880,19 @@ const Ft = Object.assign(ks, {
|
|
|
2863
2880
|
{
|
|
2864
2881
|
[de.checked]: f,
|
|
2865
2882
|
[de.disabled]: j,
|
|
2866
|
-
[de.error]:
|
|
2883
|
+
[de.error]: E && !j
|
|
2867
2884
|
},
|
|
2868
|
-
|
|
2885
|
+
g
|
|
2869
2886
|
),
|
|
2870
|
-
style:
|
|
2887
|
+
style: y,
|
|
2871
2888
|
tabIndex: C || 1,
|
|
2872
|
-
"data-testid": `${
|
|
2889
|
+
"data-testid": `${li}${W}`,
|
|
2873
2890
|
children: [
|
|
2874
|
-
/* @__PURE__ */
|
|
2891
|
+
/* @__PURE__ */ o.jsx(
|
|
2875
2892
|
"input",
|
|
2876
2893
|
{
|
|
2877
2894
|
"aria-errormessage": c,
|
|
2878
|
-
"aria-invalid":
|
|
2895
|
+
"aria-invalid": E,
|
|
2879
2896
|
checked: f,
|
|
2880
2897
|
className: de.input,
|
|
2881
2898
|
"data-testid": `radio-${W}`,
|
|
@@ -2889,36 +2906,36 @@ const Ft = Object.assign(ks, {
|
|
|
2889
2906
|
onClick: S
|
|
2890
2907
|
}
|
|
2891
2908
|
),
|
|
2892
|
-
/* @__PURE__ */
|
|
2909
|
+
/* @__PURE__ */ o.jsx("svg", { "data-testid": `radio-icon-${W}`, viewBox: "0 0 8 8", className: de.icon, children: /* @__PURE__ */ o.jsx("circle", { cx: 4, cy: 4, fill: "current", r: 4 }) })
|
|
2893
2910
|
]
|
|
2894
2911
|
}
|
|
2895
|
-
), z = () => /* @__PURE__ */
|
|
2912
|
+
), z = () => /* @__PURE__ */ o.jsxs(
|
|
2896
2913
|
"label",
|
|
2897
2914
|
{
|
|
2898
2915
|
"aria-checked": f,
|
|
2899
2916
|
"aria-disabled": j,
|
|
2900
|
-
"data-testid":
|
|
2917
|
+
"data-testid": T ? w : ci,
|
|
2901
2918
|
htmlFor: W,
|
|
2902
|
-
style:
|
|
2919
|
+
style: v,
|
|
2903
2920
|
className: $(de.label, {
|
|
2904
|
-
[$(de.container, de[
|
|
2905
|
-
[
|
|
2921
|
+
[$(de.container, de[x], p)]: T,
|
|
2922
|
+
[I]: T && R
|
|
2906
2923
|
}),
|
|
2907
2924
|
onKeyDown: P,
|
|
2908
2925
|
...L,
|
|
2909
2926
|
children: [
|
|
2910
2927
|
O(),
|
|
2911
|
-
|
|
2928
|
+
T && m
|
|
2912
2929
|
]
|
|
2913
2930
|
}
|
|
2914
2931
|
);
|
|
2915
|
-
return
|
|
2932
|
+
return T ? z() : /* @__PURE__ */ o.jsxs(
|
|
2916
2933
|
"div",
|
|
2917
2934
|
{
|
|
2918
|
-
className: $(de.container, de[
|
|
2919
|
-
[
|
|
2935
|
+
className: $(de.container, de[x], p, {
|
|
2936
|
+
[I]: R
|
|
2920
2937
|
}),
|
|
2921
|
-
"data-testid":
|
|
2938
|
+
"data-testid": w,
|
|
2922
2939
|
children: [
|
|
2923
2940
|
z(),
|
|
2924
2941
|
m
|
|
@@ -2926,15 +2943,15 @@ const Ft = Object.assign(ks, {
|
|
|
2926
2943
|
}
|
|
2927
2944
|
);
|
|
2928
2945
|
}
|
|
2929
|
-
),
|
|
2930
|
-
group:
|
|
2931
|
-
vertical:
|
|
2932
|
-
horizontal:
|
|
2933
|
-
},
|
|
2946
|
+
), di = "_group_o6mjt_7", ui = "_vertical_o6mjt_12", _i = "_horizontal_o6mjt_16", qt = {
|
|
2947
|
+
group: di,
|
|
2948
|
+
vertical: ui,
|
|
2949
|
+
horizontal: _i
|
|
2950
|
+
}, pi = K(
|
|
2934
2951
|
(e, r) => {
|
|
2935
2952
|
const {
|
|
2936
2953
|
id: a,
|
|
2937
|
-
name:
|
|
2954
|
+
name: n,
|
|
2938
2955
|
value: i,
|
|
2939
2956
|
options: s,
|
|
2940
2957
|
className: l,
|
|
@@ -2942,28 +2959,28 @@ const Ft = Object.assign(ks, {
|
|
|
2942
2959
|
disabled: _ = !1,
|
|
2943
2960
|
layout: f = "vertical",
|
|
2944
2961
|
"data-testid": p,
|
|
2945
|
-
...
|
|
2962
|
+
...g
|
|
2946
2963
|
} = e;
|
|
2947
|
-
return /* @__PURE__ */
|
|
2964
|
+
return /* @__PURE__ */ o.jsx(
|
|
2948
2965
|
"div",
|
|
2949
2966
|
{
|
|
2950
|
-
className:
|
|
2951
|
-
"data-testid": p ?? `radio-group-${
|
|
2967
|
+
className: $e(qt.group, qt[f], l),
|
|
2968
|
+
"data-testid": p ?? `radio-group-${n}`,
|
|
2952
2969
|
id: a,
|
|
2953
2970
|
ref: r,
|
|
2954
|
-
children: s.map(({ label: m, value:
|
|
2955
|
-
const C = `${
|
|
2956
|
-
return /* @__PURE__ */
|
|
2971
|
+
children: s.map(({ label: m, value: h, disabled: x }) => {
|
|
2972
|
+
const C = `${n}-${String(h)}`, y = String(h) === String(i);
|
|
2973
|
+
return /* @__PURE__ */ o.jsx(
|
|
2957
2974
|
er,
|
|
2958
2975
|
{
|
|
2959
2976
|
id: C,
|
|
2960
|
-
checked:
|
|
2977
|
+
checked: y,
|
|
2961
2978
|
"data-testid": C,
|
|
2962
|
-
disabled: _ ||
|
|
2963
|
-
name:
|
|
2964
|
-
value:
|
|
2979
|
+
disabled: _ || x,
|
|
2980
|
+
name: n,
|
|
2981
|
+
value: h,
|
|
2965
2982
|
className: c,
|
|
2966
|
-
...
|
|
2983
|
+
...g,
|
|
2967
2984
|
children: m
|
|
2968
2985
|
},
|
|
2969
2986
|
C
|
|
@@ -2972,68 +2989,68 @@ const Ft = Object.assign(ks, {
|
|
|
2972
2989
|
}
|
|
2973
2990
|
);
|
|
2974
2991
|
}
|
|
2975
|
-
),
|
|
2976
|
-
Group:
|
|
2977
|
-
}),
|
|
2978
|
-
root:
|
|
2979
|
-
unordered:
|
|
2980
|
-
ordered:
|
|
2981
|
-
sm:
|
|
2982
|
-
md:
|
|
2983
|
-
lg:
|
|
2984
|
-
xl:
|
|
2985
|
-
},
|
|
2986
|
-
const { children: r, className: a, "data-testid":
|
|
2987
|
-
return /* @__PURE__ */
|
|
2988
|
-
},
|
|
2992
|
+
), Yl = Object.assign(er, {
|
|
2993
|
+
Group: pi
|
|
2994
|
+
}), fi = "_root_1jj3e_25", gi = "_unordered_1jj3e_39", bi = "_ordered_1jj3e_43", hi = "_sm_1jj3e_48", mi = "_md_1jj3e_59", yi = "_lg_1jj3e_70", xi = "_xl_1jj3e_81", ut = {
|
|
2995
|
+
root: fi,
|
|
2996
|
+
unordered: gi,
|
|
2997
|
+
ordered: bi,
|
|
2998
|
+
sm: hi,
|
|
2999
|
+
md: mi,
|
|
3000
|
+
lg: yi,
|
|
3001
|
+
xl: xi
|
|
3002
|
+
}, vi = (e) => {
|
|
3003
|
+
const { children: r, className: a, "data-testid": n = "list-item" } = e;
|
|
3004
|
+
return /* @__PURE__ */ o.jsx("li", { "data-testid": n, className: a, children: r });
|
|
3005
|
+
}, Zl = Object.assign(
|
|
2989
3006
|
K((e, r) => {
|
|
2990
3007
|
const {
|
|
2991
3008
|
variant: a = "unordered",
|
|
2992
|
-
className:
|
|
3009
|
+
className: n,
|
|
2993
3010
|
children: i,
|
|
2994
3011
|
size: s = "md",
|
|
2995
3012
|
"data-testid": l = "list",
|
|
2996
3013
|
...c
|
|
2997
3014
|
} = e, _ = a === "ordered" ? "ol" : "ul";
|
|
2998
|
-
return /* @__PURE__ */
|
|
3015
|
+
return /* @__PURE__ */ o.jsx(
|
|
2999
3016
|
_,
|
|
3000
3017
|
{
|
|
3001
3018
|
"data-testid": l,
|
|
3002
3019
|
ref: r,
|
|
3003
|
-
className:
|
|
3020
|
+
className: $e(ut.root, ut[a], ut[s], n),
|
|
3004
3021
|
...a === "ordered" && c,
|
|
3005
3022
|
children: i
|
|
3006
3023
|
}
|
|
3007
3024
|
);
|
|
3008
3025
|
}),
|
|
3009
|
-
{ Item:
|
|
3010
|
-
),
|
|
3011
|
-
wrapper:
|
|
3012
|
-
viewport:
|
|
3013
|
-
mask:
|
|
3014
|
-
maskLeft:
|
|
3015
|
-
maskRight:
|
|
3016
|
-
visible:
|
|
3017
|
-
control:
|
|
3018
|
-
xs:
|
|
3019
|
-
sm:
|
|
3020
|
-
md:
|
|
3021
|
-
left:
|
|
3022
|
-
right:
|
|
3023
|
-
},
|
|
3026
|
+
{ Item: vi }
|
|
3027
|
+
), wi = "_wrapper_1v8xn_5", Ci = "_viewport_1v8xn_12", Si = "_mask_1v8xn_26", Li = "_maskLeft_1v8xn_37", ji = "_maskRight_1v8xn_42", ki = "_visible_1v8xn_46", $i = "_control_1v8xn_51", Ei = "_xs_1v8xn_70", Ti = "_sm_1v8xn_73", Ri = "_md_1v8xn_76", Ni = "_left_1v8xn_80", Ii = "_right_1v8xn_83", oe = {
|
|
3028
|
+
wrapper: wi,
|
|
3029
|
+
viewport: Ci,
|
|
3030
|
+
mask: Si,
|
|
3031
|
+
maskLeft: Li,
|
|
3032
|
+
maskRight: ji,
|
|
3033
|
+
visible: ki,
|
|
3034
|
+
control: $i,
|
|
3035
|
+
xs: Ei,
|
|
3036
|
+
sm: Ti,
|
|
3037
|
+
md: Ri,
|
|
3038
|
+
left: Ni,
|
|
3039
|
+
right: Ii
|
|
3040
|
+
}, Mi = "white", Oi = ({
|
|
3024
3041
|
children: e,
|
|
3025
3042
|
withControls: r = !0,
|
|
3026
3043
|
className: a,
|
|
3027
|
-
size:
|
|
3044
|
+
size: n
|
|
3028
3045
|
}) => {
|
|
3029
|
-
const i =
|
|
3046
|
+
const i = He(null), [s, l] = _e(!1), [c, _] = _e(!1), { ref: f, bgColor: p } = ft(), g = f ?? { current: null }, m = p ?? Mi, h = r && s, x = r && c, C = ({ direction: u }) => /* @__PURE__ */ o.jsx(
|
|
3030
3047
|
"svg",
|
|
3031
3048
|
{
|
|
3032
3049
|
height: "12px",
|
|
3033
3050
|
width: "12px",
|
|
3034
3051
|
viewBox: "0 0 185.343 185.343",
|
|
3035
3052
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3036
|
-
children: /* @__PURE__ */
|
|
3053
|
+
children: /* @__PURE__ */ o.jsx("g", { transform: u === "left" ? "scale(-1,1) translate(-185.343,0)" : void 0, children: /* @__PURE__ */ o.jsx(
|
|
3037
3054
|
"path",
|
|
3038
3055
|
{
|
|
3039
3056
|
fill: "currentColor",
|
|
@@ -3041,106 +3058,106 @@ const Ft = Object.assign(ks, {
|
|
|
3041
3058
|
}
|
|
3042
3059
|
) })
|
|
3043
3060
|
}
|
|
3044
|
-
),
|
|
3045
|
-
const
|
|
3046
|
-
if (!
|
|
3047
|
-
const
|
|
3048
|
-
l(
|
|
3049
|
-
},
|
|
3050
|
-
const
|
|
3051
|
-
if (!
|
|
3052
|
-
const L =
|
|
3053
|
-
|
|
3061
|
+
), y = () => {
|
|
3062
|
+
const u = i.current;
|
|
3063
|
+
if (!u) return;
|
|
3064
|
+
const w = Math.round(u.scrollLeft), L = Math.round(u.scrollLeft + u.clientWidth), E = Math.round(u.scrollWidth);
|
|
3065
|
+
l(w > 0), _(L < E);
|
|
3066
|
+
}, v = (u) => {
|
|
3067
|
+
const w = i.current;
|
|
3068
|
+
if (!w) return;
|
|
3069
|
+
const L = w.clientWidth;
|
|
3070
|
+
w.scrollBy({ left: u === "left" ? -L : L, behavior: "smooth" });
|
|
3054
3071
|
};
|
|
3055
3072
|
return le(() => {
|
|
3056
|
-
const
|
|
3057
|
-
if (!
|
|
3058
|
-
const
|
|
3059
|
-
Math.abs(L.deltaX) > Math.abs(L.deltaY) ||
|
|
3073
|
+
const u = i.current;
|
|
3074
|
+
if (!u) return;
|
|
3075
|
+
const w = (L) => {
|
|
3076
|
+
Math.abs(L.deltaX) > Math.abs(L.deltaY) || u.scrollWidth > u.clientWidth && (L.preventDefault(), u.scrollBy({ left: L.deltaY, behavior: "auto" }));
|
|
3060
3077
|
};
|
|
3061
|
-
return
|
|
3078
|
+
return u.addEventListener("wheel", w, { passive: !1 }), () => u.removeEventListener("wheel", w);
|
|
3062
3079
|
}, []), le(() => {
|
|
3063
|
-
|
|
3064
|
-
const
|
|
3065
|
-
if (
|
|
3066
|
-
return
|
|
3067
|
-
|
|
3080
|
+
y();
|
|
3081
|
+
const u = i.current;
|
|
3082
|
+
if (u)
|
|
3083
|
+
return u.addEventListener("scroll", y, { passive: !0 }), window.addEventListener("resize", y), () => {
|
|
3084
|
+
u.removeEventListener("scroll", y), window.removeEventListener("resize", y);
|
|
3068
3085
|
};
|
|
3069
|
-
}, []), /* @__PURE__ */
|
|
3070
|
-
|
|
3086
|
+
}, []), /* @__PURE__ */ o.jsxs("div", { ref: g, className: $(oe.wrapper, a), children: [
|
|
3087
|
+
h && /* @__PURE__ */ o.jsx(
|
|
3071
3088
|
"div",
|
|
3072
3089
|
{
|
|
3073
|
-
className: $(
|
|
3090
|
+
className: $(oe.mask, oe.maskLeft, s && oe.visible),
|
|
3074
3091
|
style: {
|
|
3075
3092
|
background: `linear-gradient(to right, ${m} 17%, transparent 80%)`
|
|
3076
3093
|
}
|
|
3077
3094
|
}
|
|
3078
3095
|
),
|
|
3079
|
-
|
|
3096
|
+
x && /* @__PURE__ */ o.jsx(
|
|
3080
3097
|
"div",
|
|
3081
3098
|
{
|
|
3082
|
-
className: $(
|
|
3099
|
+
className: $(oe.mask, oe.maskRight, c && oe.visible),
|
|
3083
3100
|
style: {
|
|
3084
3101
|
background: `linear-gradient(to left, ${m} 17%, transparent 80%)`
|
|
3085
3102
|
}
|
|
3086
3103
|
}
|
|
3087
3104
|
),
|
|
3088
|
-
/* @__PURE__ */
|
|
3089
|
-
|
|
3105
|
+
/* @__PURE__ */ o.jsx("div", { ref: i, className: oe.viewport, children: e }),
|
|
3106
|
+
h && /* @__PURE__ */ o.jsx(
|
|
3090
3107
|
"button",
|
|
3091
3108
|
{
|
|
3092
3109
|
type: "button",
|
|
3093
3110
|
tabIndex: -1,
|
|
3094
3111
|
"aria-hidden": "true",
|
|
3095
|
-
className: $(
|
|
3096
|
-
onClick: () =>
|
|
3097
|
-
children: /* @__PURE__ */
|
|
3112
|
+
className: $(oe.control, oe.left, oe[n]),
|
|
3113
|
+
onClick: () => v("left"),
|
|
3114
|
+
children: /* @__PURE__ */ o.jsx(C, { direction: "left" })
|
|
3098
3115
|
}
|
|
3099
3116
|
),
|
|
3100
|
-
|
|
3117
|
+
x && /* @__PURE__ */ o.jsx(
|
|
3101
3118
|
"button",
|
|
3102
3119
|
{
|
|
3103
3120
|
type: "button",
|
|
3104
3121
|
tabIndex: -1,
|
|
3105
3122
|
"aria-hidden": "true",
|
|
3106
|
-
className: $(
|
|
3107
|
-
onClick: () =>
|
|
3108
|
-
children: /* @__PURE__ */
|
|
3123
|
+
className: $(oe.control, oe.right, oe[n]),
|
|
3124
|
+
onClick: () => v("right"),
|
|
3125
|
+
children: /* @__PURE__ */ o.jsx(C, { direction: "right" })
|
|
3109
3126
|
}
|
|
3110
3127
|
)
|
|
3111
3128
|
] });
|
|
3112
|
-
},
|
|
3113
|
-
tabBar:
|
|
3114
|
-
primary:
|
|
3115
|
-
secondary:
|
|
3116
|
-
tab:
|
|
3117
|
-
md:
|
|
3118
|
-
sm:
|
|
3119
|
-
xs:
|
|
3120
|
-
disabled:
|
|
3121
|
-
selected:
|
|
3122
|
-
tabLabel:
|
|
3123
|
-
tabPrefix:
|
|
3124
|
-
tabPostfix:
|
|
3125
|
-
},
|
|
3129
|
+
}, Ai = "_tabBar_1ndpm_82", Pi = "_primary_1ndpm_88", Bi = "_secondary_1ndpm_93", zi = "_tab_1ndpm_82", Di = "_md_1ndpm_125", Wi = "_sm_1ndpm_129", Fi = "_xs_1ndpm_133", qi = "_disabled_1ndpm_137", Hi = "_selected_1ndpm_143", Vi = "_tabLabel_1ndpm_222", Xi = "_tabPrefix_1ndpm_234", Yi = "_tabPostfix_1ndpm_270", J = {
|
|
3130
|
+
tabBar: Ai,
|
|
3131
|
+
primary: Pi,
|
|
3132
|
+
secondary: Bi,
|
|
3133
|
+
tab: zi,
|
|
3134
|
+
md: Di,
|
|
3135
|
+
sm: Wi,
|
|
3136
|
+
xs: Fi,
|
|
3137
|
+
disabled: qi,
|
|
3138
|
+
selected: Hi,
|
|
3139
|
+
tabLabel: Vi,
|
|
3140
|
+
tabPrefix: Xi,
|
|
3141
|
+
tabPostfix: Yi
|
|
3142
|
+
}, Zi = "md", Gi = !1, Ui = 8, Ji = "top-right-inside", tr = Yt(null), rr = () => {
|
|
3126
3143
|
const e = Zt(tr);
|
|
3127
3144
|
if (!e) throw new Error("useTabs должен использоваться внутри TabsProvider");
|
|
3128
3145
|
return e;
|
|
3129
|
-
},
|
|
3146
|
+
}, Ki = ({
|
|
3130
3147
|
children: e,
|
|
3131
3148
|
defaultActiveTab: r,
|
|
3132
3149
|
activeTab: a,
|
|
3133
|
-
onChange:
|
|
3150
|
+
onChange: n
|
|
3134
3151
|
}) => {
|
|
3135
3152
|
const [i, s] = _e(r), l = a !== void 0, c = l ? a : i, _ = (f) => {
|
|
3136
|
-
l || s(f),
|
|
3153
|
+
l || s(f), n && n(f);
|
|
3137
3154
|
};
|
|
3138
|
-
return /* @__PURE__ */
|
|
3139
|
-
},
|
|
3155
|
+
return /* @__PURE__ */ o.jsx(tr.Provider, { value: { activeTab: c, setTab: _ }, children: e });
|
|
3156
|
+
}, Qi = ({
|
|
3140
3157
|
mode: e,
|
|
3141
3158
|
item: r,
|
|
3142
3159
|
isActive: a,
|
|
3143
|
-
showBadge:
|
|
3160
|
+
showBadge: n,
|
|
3144
3161
|
badgeProps: i,
|
|
3145
3162
|
size: s,
|
|
3146
3163
|
isDisabled: l,
|
|
@@ -3150,42 +3167,42 @@ const Ft = Object.assign(ks, {
|
|
|
3150
3167
|
value: _,
|
|
3151
3168
|
label: f,
|
|
3152
3169
|
prefix: p,
|
|
3153
|
-
prefixWrapperProps:
|
|
3170
|
+
prefixWrapperProps: g = {},
|
|
3154
3171
|
postfix: m,
|
|
3155
|
-
postfixWrapperProps:
|
|
3156
|
-
} = r, { className:
|
|
3172
|
+
postfixWrapperProps: h = {}
|
|
3173
|
+
} = r, { className: x, ...C } = g, { className: y, ...v } = h, u = {
|
|
3157
3174
|
primary: ie["typography-label-3-medium"],
|
|
3158
3175
|
secondary: ie["typography-label-3-regular"],
|
|
3159
3176
|
prefix: ie["typography-label-3-medium"],
|
|
3160
3177
|
postfix: ie["typography-label-3-medium"]
|
|
3161
|
-
},
|
|
3162
|
-
size:
|
|
3163
|
-
position:
|
|
3178
|
+
}, w = {
|
|
3179
|
+
size: Ui,
|
|
3180
|
+
position: Ji,
|
|
3164
3181
|
...i
|
|
3165
3182
|
}, L = $(J.tab, J[e], J[s], {
|
|
3166
3183
|
[J.selected]: a,
|
|
3167
3184
|
[J.disabled]: l
|
|
3168
|
-
}),
|
|
3185
|
+
}), E = $(
|
|
3169
3186
|
J.tabPrefix,
|
|
3170
|
-
|
|
3187
|
+
x,
|
|
3171
3188
|
J[e],
|
|
3172
|
-
|
|
3189
|
+
u.prefix,
|
|
3173
3190
|
{
|
|
3174
3191
|
[J.selected]: a,
|
|
3175
3192
|
[J.disabled]: l
|
|
3176
3193
|
}
|
|
3177
3194
|
), j = $(
|
|
3178
3195
|
J.tabPostfix,
|
|
3179
|
-
|
|
3196
|
+
y,
|
|
3180
3197
|
J[e],
|
|
3181
|
-
|
|
3198
|
+
u.postfix,
|
|
3182
3199
|
{
|
|
3183
3200
|
[J.selected]: a,
|
|
3184
3201
|
[J.disabled]: l
|
|
3185
3202
|
}
|
|
3186
|
-
),
|
|
3203
|
+
), T = $(J.tabLabel, J[e], u[e]), R = (W) => {
|
|
3187
3204
|
a || l || (c(_), W.currentTarget.scrollIntoView({ behavior: "smooth", inline: "center", block: "nearest" }));
|
|
3188
|
-
},
|
|
3205
|
+
}, I = /* @__PURE__ */ o.jsxs(
|
|
3189
3206
|
"button",
|
|
3190
3207
|
{
|
|
3191
3208
|
className: L,
|
|
@@ -3195,23 +3212,23 @@ const Ft = Object.assign(ks, {
|
|
|
3195
3212
|
"aria-disabled": l,
|
|
3196
3213
|
"aria-controls": `tab-panel-${_}`,
|
|
3197
3214
|
"data-testid": `tab-item-${_}`,
|
|
3198
|
-
onClick:
|
|
3215
|
+
onClick: R,
|
|
3199
3216
|
children: [
|
|
3200
|
-
p && /* @__PURE__ */
|
|
3217
|
+
p && /* @__PURE__ */ o.jsx(
|
|
3201
3218
|
"span",
|
|
3202
3219
|
{
|
|
3203
|
-
className:
|
|
3220
|
+
className: E,
|
|
3204
3221
|
...C,
|
|
3205
3222
|
"data-testid": `tab-prefix-${_}`,
|
|
3206
3223
|
children: p
|
|
3207
3224
|
}
|
|
3208
3225
|
),
|
|
3209
|
-
/* @__PURE__ */
|
|
3210
|
-
m && /* @__PURE__ */
|
|
3226
|
+
/* @__PURE__ */ o.jsx("span", { className: T, "data-testid": `tab-label-${_}`, children: f }),
|
|
3227
|
+
m && /* @__PURE__ */ o.jsx(
|
|
3211
3228
|
"span",
|
|
3212
3229
|
{
|
|
3213
3230
|
className: j,
|
|
3214
|
-
...
|
|
3231
|
+
...v,
|
|
3215
3232
|
"data-testid": `tab-postfix-${_}`,
|
|
3216
3233
|
children: m
|
|
3217
3234
|
}
|
|
@@ -3219,23 +3236,23 @@ const Ft = Object.assign(ks, {
|
|
|
3219
3236
|
]
|
|
3220
3237
|
}
|
|
3221
3238
|
);
|
|
3222
|
-
return
|
|
3223
|
-
},
|
|
3239
|
+
return n ? /* @__PURE__ */ o.jsx(Qa, { ...w, "data-testid": `tab-badge-${_}`, children: I }) : I;
|
|
3240
|
+
}, el = ({
|
|
3224
3241
|
mode: e,
|
|
3225
3242
|
items: r,
|
|
3226
|
-
size: a =
|
|
3227
|
-
isAllItemsDisabled:
|
|
3243
|
+
size: a = Zi,
|
|
3244
|
+
isAllItemsDisabled: n = Gi
|
|
3228
3245
|
}) => {
|
|
3229
3246
|
const { activeTab: i, setTab: s } = rr(), l = Ha();
|
|
3230
|
-
return /* @__PURE__ */
|
|
3247
|
+
return /* @__PURE__ */ o.jsx(Oi, { size: a, withControls: l, children: /* @__PURE__ */ o.jsx(
|
|
3231
3248
|
"div",
|
|
3232
3249
|
{
|
|
3233
3250
|
role: "tablist",
|
|
3234
3251
|
"data-testid": "tabs-bar",
|
|
3235
3252
|
"aria-orientation": "horizontal",
|
|
3236
3253
|
className: $(J.tabBar, J[e]),
|
|
3237
|
-
children: r.map((c) => /* @__PURE__ */
|
|
3238
|
-
|
|
3254
|
+
children: r.map((c) => /* @__PURE__ */ o.jsx(
|
|
3255
|
+
Qi,
|
|
3239
3256
|
{
|
|
3240
3257
|
size: a,
|
|
3241
3258
|
item: c,
|
|
@@ -3243,14 +3260,14 @@ const Ft = Object.assign(ks, {
|
|
|
3243
3260
|
showBadge: c.showBadge,
|
|
3244
3261
|
badgeProps: c.badgeProps,
|
|
3245
3262
|
isActive: i === c.value,
|
|
3246
|
-
isDisabled:
|
|
3263
|
+
isDisabled: n || c.isDisabled,
|
|
3247
3264
|
onSelectTab: s
|
|
3248
3265
|
},
|
|
3249
3266
|
c.value
|
|
3250
3267
|
))
|
|
3251
3268
|
}
|
|
3252
3269
|
) });
|
|
3253
|
-
},
|
|
3270
|
+
}, tl = ({ tabValue: e, children: r, ...a }) => /* @__PURE__ */ o.jsx(
|
|
3254
3271
|
"div",
|
|
3255
3272
|
{
|
|
3256
3273
|
role: "tabpanel",
|
|
@@ -3259,43 +3276,43 @@ const Ft = Object.assign(ks, {
|
|
|
3259
3276
|
...a,
|
|
3260
3277
|
children: r
|
|
3261
3278
|
}
|
|
3262
|
-
),
|
|
3263
|
-
const { activeTab: a } = rr(),
|
|
3264
|
-
return /* @__PURE__ */
|
|
3265
|
-
},
|
|
3266
|
-
Provider:
|
|
3267
|
-
Content:
|
|
3268
|
-
Panel:
|
|
3269
|
-
Bar:
|
|
3270
|
-
},
|
|
3271
|
-
root:
|
|
3272
|
-
open:
|
|
3279
|
+
), rl = ({ children: e, ...r }) => {
|
|
3280
|
+
const { activeTab: a } = rr(), n = Array.isArray(e) ? e : [e], i = (s, l) => _t.isValidElement(s) && typeof s.props == "object" && s.props !== null && l in s.props;
|
|
3281
|
+
return /* @__PURE__ */ o.jsx("div", { "data-testid": "tab-content", ...r, children: n.map((s) => i(s, "tabValue") && String(s.props.tabValue) === a ? s : null) });
|
|
3282
|
+
}, Gl = {
|
|
3283
|
+
Provider: Ki,
|
|
3284
|
+
Content: rl,
|
|
3285
|
+
Panel: tl,
|
|
3286
|
+
Bar: el
|
|
3287
|
+
}, al = "_root_1fbbw_34", nl = "_open_1fbbw_51", ol = "_xs_1fbbw_55", sl = "_s_1fbbw_61", il = "_m_1fbbw_67", ll = "_neutral_1fbbw_73", cl = "_contrast_1fbbw_78", dl = "_accent_1fbbw_84", ul = "_typography_1fbbw_89", _l = "_title_1fbbw_89", pl = "_text_1fbbw_93", fl = "_mediaWrapper_1fbbw_97", gl = "_content_1fbbw_112", bl = "_closeButton_1fbbw_116", hl = "_hasMedia_1fbbw_142", ml = "_buttonStack_1fbbw_148", se = {
|
|
3288
|
+
root: al,
|
|
3289
|
+
open: nl,
|
|
3273
3290
|
xs: ol,
|
|
3274
|
-
s:
|
|
3275
|
-
m:
|
|
3276
|
-
neutral:
|
|
3277
|
-
contrast:
|
|
3278
|
-
accent:
|
|
3279
|
-
typography:
|
|
3280
|
-
title:
|
|
3281
|
-
text:
|
|
3282
|
-
mediaWrapper:
|
|
3283
|
-
content:
|
|
3284
|
-
closeButton:
|
|
3285
|
-
hasMedia:
|
|
3286
|
-
buttonStack:
|
|
3287
|
-
},
|
|
3288
|
-
/* @__PURE__ */
|
|
3291
|
+
s: sl,
|
|
3292
|
+
m: il,
|
|
3293
|
+
neutral: ll,
|
|
3294
|
+
contrast: cl,
|
|
3295
|
+
accent: dl,
|
|
3296
|
+
typography: ul,
|
|
3297
|
+
title: _l,
|
|
3298
|
+
text: pl,
|
|
3299
|
+
mediaWrapper: fl,
|
|
3300
|
+
content: gl,
|
|
3301
|
+
closeButton: bl,
|
|
3302
|
+
hasMedia: hl,
|
|
3303
|
+
buttonStack: ml
|
|
3304
|
+
}, yl = () => /* @__PURE__ */ o.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", stroke: "currentColor", children: /* @__PURE__ */ o.jsx("path", { d: "M18 6 6 18M6 6l12 12" }) }), xl = () => /* @__PURE__ */ o.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 9", fill: "currentColor", children: [
|
|
3305
|
+
/* @__PURE__ */ o.jsx(
|
|
3289
3306
|
"path",
|
|
3290
3307
|
{
|
|
3291
3308
|
d: "M0.155001 0.000390053L23.845 0.000390053C21.4147 0.000390053 19.1162 1.10511 17.598 3.00283L13.5617 8.04822C12.7611 9.04903 11.2389 9.04903 10.4383 8.04822L6.40195 3.00283C4.88377 1.10511 2.58527 0.000390053 0.155001 0.000390053Z"
|
|
3292
3309
|
}
|
|
3293
3310
|
),
|
|
3294
|
-
/* @__PURE__ */
|
|
3311
|
+
/* @__PURE__ */ o.jsx("path", { d: "M-2 0.000390053L26 0.000390053V-1L-2 -1L-2 0.000390053Z" })
|
|
3295
3312
|
] }), fe = {
|
|
3296
3313
|
shiftX: 64,
|
|
3297
3314
|
adjustY: 1
|
|
3298
|
-
}, ge = { adjustX: 1, shiftY: !0 },
|
|
3315
|
+
}, ge = { adjustX: 1, shiftY: !0 }, vl = {
|
|
3299
3316
|
left: {
|
|
3300
3317
|
points: ["cr", "cl"],
|
|
3301
3318
|
overflow: ge,
|
|
@@ -3356,7 +3373,7 @@ const Ft = Object.assign(ks, {
|
|
|
3356
3373
|
overflow: ge,
|
|
3357
3374
|
offset: [-22, 0]
|
|
3358
3375
|
}
|
|
3359
|
-
},
|
|
3376
|
+
}, wl = {
|
|
3360
3377
|
left: {
|
|
3361
3378
|
points: ["cr", "cl"],
|
|
3362
3379
|
overflow: ge,
|
|
@@ -3417,7 +3434,7 @@ const Ft = Object.assign(ks, {
|
|
|
3417
3434
|
overflow: ge,
|
|
3418
3435
|
offset: [-16, 0]
|
|
3419
3436
|
}
|
|
3420
|
-
},
|
|
3437
|
+
}, Cl = {
|
|
3421
3438
|
neutral: {
|
|
3422
3439
|
1: [{ mode: "secondary", buttonStyle: "neutral", size: "s" }],
|
|
3423
3440
|
2: [
|
|
@@ -3454,14 +3471,14 @@ const Ft = Object.assign(ks, {
|
|
|
3454
3471
|
{ mode: "primary", buttonStyle: "accent", size: "s" }
|
|
3455
3472
|
]
|
|
3456
3473
|
}
|
|
3457
|
-
},
|
|
3458
|
-
const
|
|
3474
|
+
}, Sl = (e, r, a) => {
|
|
3475
|
+
const n = ja(r, 1, 3), i = Cl[a][n];
|
|
3459
3476
|
return i[Math.min(e, i.length - 1)];
|
|
3460
3477
|
}, Ht = ({
|
|
3461
3478
|
text: e,
|
|
3462
3479
|
title: r,
|
|
3463
3480
|
media: a,
|
|
3464
|
-
variant:
|
|
3481
|
+
variant: n = "neutral",
|
|
3465
3482
|
size: i,
|
|
3466
3483
|
classNames: s = {},
|
|
3467
3484
|
onClose: l,
|
|
@@ -3469,11 +3486,11 @@ const Ft = Object.assign(ks, {
|
|
|
3469
3486
|
buttonProps: _,
|
|
3470
3487
|
showClose: f
|
|
3471
3488
|
}) => {
|
|
3472
|
-
const p = ["neutral", "accent"].includes(
|
|
3473
|
-
return /* @__PURE__ */
|
|
3474
|
-
|
|
3475
|
-
/* @__PURE__ */
|
|
3476
|
-
m && /* @__PURE__ */
|
|
3489
|
+
const p = ["neutral", "accent"].includes(n) ? "contrast" : "primary", g = i === "m", m = !!(r && g), h = !!(a && g), x = c && !!c.length, C = !!(f && g) || !f && g && !x, y = i === "xs" ? 4 : 3;
|
|
3490
|
+
return /* @__PURE__ */ o.jsxs("div", { className: se.content, children: [
|
|
3491
|
+
h && /* @__PURE__ */ o.jsx("div", { className: $(se.mediaWrapper, s.mediaWrapper), children: a }),
|
|
3492
|
+
/* @__PURE__ */ o.jsxs("div", { className: s.textWrapper, children: [
|
|
3493
|
+
m && /* @__PURE__ */ o.jsx(
|
|
3477
3494
|
Dt.Subtitle,
|
|
3478
3495
|
{
|
|
3479
3496
|
className: $(se.typography, se.title, s.typography),
|
|
@@ -3483,46 +3500,46 @@ const Ft = Object.assign(ks, {
|
|
|
3483
3500
|
children: r
|
|
3484
3501
|
}
|
|
3485
3502
|
),
|
|
3486
|
-
/* @__PURE__ */
|
|
3503
|
+
/* @__PURE__ */ o.jsx(
|
|
3487
3504
|
Dt.Label,
|
|
3488
3505
|
{
|
|
3489
3506
|
className: $(se.typography, se.text, s.typography),
|
|
3490
3507
|
typographyStyle: p,
|
|
3491
|
-
size:
|
|
3508
|
+
size: y,
|
|
3492
3509
|
children: e
|
|
3493
3510
|
}
|
|
3494
3511
|
)
|
|
3495
3512
|
] }),
|
|
3496
|
-
C && /* @__PURE__ */
|
|
3513
|
+
C && /* @__PURE__ */ o.jsx(
|
|
3497
3514
|
"button",
|
|
3498
3515
|
{
|
|
3499
3516
|
type: "button",
|
|
3500
|
-
className: $(se.closeButton, se[
|
|
3501
|
-
[se.hasMedia]:
|
|
3517
|
+
className: $(se.closeButton, se[n], s.closeButton, {
|
|
3518
|
+
[se.hasMedia]: h
|
|
3502
3519
|
}),
|
|
3503
3520
|
onClick: l,
|
|
3504
3521
|
"aria-label": "Закрыть подсказку",
|
|
3505
3522
|
"data-testid": "tooltip-close-button",
|
|
3506
|
-
children: /* @__PURE__ */
|
|
3523
|
+
children: /* @__PURE__ */ o.jsx(yl, {})
|
|
3507
3524
|
}
|
|
3508
3525
|
),
|
|
3509
|
-
|
|
3526
|
+
g && x && /* @__PURE__ */ o.jsx("div", { className: se.buttonStack, children: c.map((v, u) => {
|
|
3510
3527
|
const L = {
|
|
3511
|
-
...
|
|
3528
|
+
...Sl(u, c.length, n),
|
|
3512
3529
|
..._,
|
|
3513
|
-
...
|
|
3514
|
-
}, { closeOnClick:
|
|
3515
|
-
var
|
|
3516
|
-
(
|
|
3530
|
+
...v
|
|
3531
|
+
}, { closeOnClick: E, ...j } = L, T = (R) => {
|
|
3532
|
+
var I;
|
|
3533
|
+
(I = j.onClick) == null || I.call(j, R), E && (l == null || l());
|
|
3517
3534
|
};
|
|
3518
|
-
return /* @__PURE__ */
|
|
3535
|
+
return /* @__PURE__ */ o.jsx(ga, { ...j, onClick: T }, u);
|
|
3519
3536
|
}) })
|
|
3520
3537
|
] });
|
|
3521
|
-
},
|
|
3538
|
+
}, Ul = ({
|
|
3522
3539
|
customContent: e,
|
|
3523
3540
|
children: r,
|
|
3524
3541
|
placement: a = "top",
|
|
3525
|
-
contentClassNames:
|
|
3542
|
+
contentClassNames: n,
|
|
3526
3543
|
mouseEnterDelay: i = 0,
|
|
3527
3544
|
mouseLeaveDelay: s = 0.1,
|
|
3528
3545
|
showArrow: l = !0,
|
|
@@ -3530,115 +3547,115 @@ const Ft = Object.assign(ks, {
|
|
|
3530
3547
|
trigger: _ = "hover",
|
|
3531
3548
|
variant: f = "neutral",
|
|
3532
3549
|
size: p = "s",
|
|
3533
|
-
text:
|
|
3550
|
+
text: g,
|
|
3534
3551
|
title: m,
|
|
3535
|
-
media:
|
|
3536
|
-
buttons:
|
|
3552
|
+
media: h,
|
|
3553
|
+
buttons: x,
|
|
3537
3554
|
buttonProps: C,
|
|
3538
|
-
onClose:
|
|
3539
|
-
...
|
|
3555
|
+
onClose: y,
|
|
3556
|
+
...v
|
|
3540
3557
|
}) => {
|
|
3541
|
-
const [
|
|
3542
|
-
|
|
3543
|
-
},
|
|
3558
|
+
const [u, w] = _e(!1), [L, E] = _e(!1), j = p === "m" ? vl : wl, T = () => {
|
|
3559
|
+
w(!1), y == null || y();
|
|
3560
|
+
}, R = e || (p === "m" ? /* @__PURE__ */ o.jsx(
|
|
3544
3561
|
Ht,
|
|
3545
3562
|
{
|
|
3546
|
-
classNames:
|
|
3547
|
-
text:
|
|
3563
|
+
classNames: n,
|
|
3564
|
+
text: g,
|
|
3548
3565
|
variant: f,
|
|
3549
3566
|
size: p,
|
|
3550
|
-
onClose:
|
|
3567
|
+
onClose: T,
|
|
3551
3568
|
title: m,
|
|
3552
|
-
media:
|
|
3569
|
+
media: h,
|
|
3553
3570
|
showClose: c,
|
|
3554
|
-
buttons:
|
|
3571
|
+
buttons: x,
|
|
3555
3572
|
buttonProps: C
|
|
3556
3573
|
}
|
|
3557
|
-
) : /* @__PURE__ */
|
|
3574
|
+
) : /* @__PURE__ */ o.jsx(
|
|
3558
3575
|
Ht,
|
|
3559
3576
|
{
|
|
3560
|
-
classNames:
|
|
3561
|
-
text:
|
|
3577
|
+
classNames: n,
|
|
3578
|
+
text: g,
|
|
3562
3579
|
variant: f,
|
|
3563
3580
|
size: p,
|
|
3564
|
-
onClose:
|
|
3581
|
+
onClose: T
|
|
3565
3582
|
}
|
|
3566
3583
|
));
|
|
3567
3584
|
return le(() => {
|
|
3568
|
-
if (
|
|
3569
|
-
const
|
|
3570
|
-
return () => cancelAnimationFrame(
|
|
3585
|
+
if (u) {
|
|
3586
|
+
const I = requestAnimationFrame(() => E(!0));
|
|
3587
|
+
return () => cancelAnimationFrame(I);
|
|
3571
3588
|
}
|
|
3572
|
-
|
|
3573
|
-
}, [
|
|
3589
|
+
E(!1);
|
|
3590
|
+
}, [u]), /* @__PURE__ */ o.jsx(
|
|
3574
3591
|
$r,
|
|
3575
3592
|
{
|
|
3576
|
-
visible:
|
|
3577
|
-
onVisibleChange:
|
|
3593
|
+
visible: u,
|
|
3594
|
+
onVisibleChange: w,
|
|
3578
3595
|
classNames: {
|
|
3579
3596
|
root: $(se.root, se[f], se[p], L && se.open),
|
|
3580
|
-
...
|
|
3597
|
+
...v.classNames
|
|
3581
3598
|
},
|
|
3582
3599
|
placement: a,
|
|
3583
|
-
overlay: () =>
|
|
3600
|
+
overlay: () => R,
|
|
3584
3601
|
trigger: _,
|
|
3585
3602
|
mouseEnterDelay: i,
|
|
3586
3603
|
mouseLeaveDelay: s,
|
|
3587
3604
|
motion: { motionName: "tooltipMotion" },
|
|
3588
3605
|
builtinPlacements: j,
|
|
3589
3606
|
showArrow: l ? {
|
|
3590
|
-
content: /* @__PURE__ */
|
|
3607
|
+
content: /* @__PURE__ */ o.jsx(xl, {}),
|
|
3591
3608
|
className: `tooltipArrow tooltipArrow-${p}`
|
|
3592
3609
|
} : !1,
|
|
3593
3610
|
destroyTooltipOnHide: !0,
|
|
3594
|
-
...
|
|
3611
|
+
...v,
|
|
3595
3612
|
children: r
|
|
3596
3613
|
}
|
|
3597
3614
|
);
|
|
3598
|
-
},
|
|
3599
|
-
segmentedControl:
|
|
3600
|
-
segment:
|
|
3601
|
-
activeSegmentIndicator:
|
|
3602
|
-
stretched:
|
|
3603
|
-
s:
|
|
3604
|
-
icon:
|
|
3605
|
-
label:
|
|
3606
|
-
m:
|
|
3607
|
-
l:
|
|
3615
|
+
}, Ll = "_segmentedControl_1yvz7_5", jl = "_segment_1yvz7_5", kl = "_activeSegmentIndicator_1yvz7_51", $l = "_stretched_1yvz7_82", El = "_s_1yvz7_5", Tl = "_icon_1yvz7_90", Rl = "_label_1yvz7_94", Nl = "_m_1yvz7_98", Il = "_l_1yvz7_94", Ae = {
|
|
3616
|
+
segmentedControl: Ll,
|
|
3617
|
+
segment: jl,
|
|
3618
|
+
activeSegmentIndicator: kl,
|
|
3619
|
+
stretched: $l,
|
|
3620
|
+
s: El,
|
|
3621
|
+
icon: Tl,
|
|
3622
|
+
label: Rl,
|
|
3623
|
+
m: Nl,
|
|
3624
|
+
l: Il
|
|
3608
3625
|
}, Vt = {
|
|
3609
3626
|
s: ie["typography-label-3-regular"],
|
|
3610
3627
|
m: ie["typography-label-2-regular"],
|
|
3611
3628
|
l: ie["typography-label-2-regular"]
|
|
3612
|
-
},
|
|
3613
|
-
var
|
|
3629
|
+
}, Jl = (e) => {
|
|
3630
|
+
var u;
|
|
3614
3631
|
const {
|
|
3615
3632
|
className: r,
|
|
3616
3633
|
defaultValue: a,
|
|
3617
|
-
value:
|
|
3634
|
+
value: n,
|
|
3618
3635
|
size: i = "m",
|
|
3619
3636
|
segments: s,
|
|
3620
3637
|
stretched: l,
|
|
3621
3638
|
mode: c = "label",
|
|
3622
3639
|
onChange: _
|
|
3623
|
-
} = e, f = pt(), [p,
|
|
3640
|
+
} = e, f = pt(), [p, g] = _e(a || s[0].value), [m, h] = _e({ width: 0, left: 0 }), x = He(null);
|
|
3624
3641
|
le(() => {
|
|
3625
|
-
|
|
3626
|
-
}, [
|
|
3642
|
+
n && g(n);
|
|
3643
|
+
}, [n]), le(() => {
|
|
3627
3644
|
C();
|
|
3628
3645
|
}, [p, s, i, l, c]);
|
|
3629
3646
|
const C = () => {
|
|
3630
|
-
if (!(
|
|
3631
|
-
const
|
|
3647
|
+
if (!(x != null && x.current)) return;
|
|
3648
|
+
const w = x.current.querySelector(
|
|
3632
3649
|
'[data-is-active-segment="true"]'
|
|
3633
3650
|
);
|
|
3634
|
-
|
|
3635
|
-
width:
|
|
3636
|
-
left:
|
|
3651
|
+
w && h({
|
|
3652
|
+
width: w.offsetWidth,
|
|
3653
|
+
left: w.offsetLeft
|
|
3637
3654
|
});
|
|
3638
|
-
},
|
|
3639
|
-
|
|
3655
|
+
}, y = (u = s.find((w) => w.value === p)) == null ? void 0 : u.label, v = (w) => {
|
|
3656
|
+
g(w), _ == null || _(w);
|
|
3640
3657
|
};
|
|
3641
|
-
return (s == null ? void 0 : s.length) === 0 ? null : /* @__PURE__ */
|
|
3658
|
+
return (s == null ? void 0 : s.length) === 0 ? null : /* @__PURE__ */ o.jsxs(
|
|
3642
3659
|
"div",
|
|
3643
3660
|
{
|
|
3644
3661
|
className: $(
|
|
@@ -3651,12 +3668,12 @@ const Ft = Object.assign(ks, {
|
|
|
3651
3668
|
r
|
|
3652
3669
|
),
|
|
3653
3670
|
"data-testid": "segmented-control-container",
|
|
3654
|
-
ref:
|
|
3671
|
+
ref: x,
|
|
3655
3672
|
children: [
|
|
3656
|
-
s == null ? void 0 : s.map(({ label:
|
|
3657
|
-
const j = () =>
|
|
3658
|
-
return /* @__PURE__ */
|
|
3659
|
-
/* @__PURE__ */
|
|
3673
|
+
s == null ? void 0 : s.map(({ label: w, value: L }, E) => {
|
|
3674
|
+
const j = () => v(L);
|
|
3675
|
+
return /* @__PURE__ */ o.jsxs(Pe, { children: [
|
|
3676
|
+
/* @__PURE__ */ o.jsx(
|
|
3660
3677
|
"input",
|
|
3661
3678
|
{
|
|
3662
3679
|
id: f + JSON.stringify(L),
|
|
@@ -3666,19 +3683,19 @@ const Ft = Object.assign(ks, {
|
|
|
3666
3683
|
onClick: j
|
|
3667
3684
|
}
|
|
3668
3685
|
),
|
|
3669
|
-
/* @__PURE__ */
|
|
3686
|
+
/* @__PURE__ */ o.jsx(
|
|
3670
3687
|
"label",
|
|
3671
3688
|
{
|
|
3672
3689
|
"data-is-active-segment": p === L,
|
|
3673
3690
|
className: $(Ae.segment, Vt[i]),
|
|
3674
3691
|
htmlFor: f + JSON.stringify(L),
|
|
3675
3692
|
"data-testid": "segmented-control-segment",
|
|
3676
|
-
children:
|
|
3693
|
+
children: w
|
|
3677
3694
|
}
|
|
3678
3695
|
)
|
|
3679
|
-
] },
|
|
3696
|
+
] }, Ke(JSON.stringify(L)) + E);
|
|
3680
3697
|
}),
|
|
3681
|
-
/* @__PURE__ */
|
|
3698
|
+
/* @__PURE__ */ o.jsx(
|
|
3682
3699
|
"div",
|
|
3683
3700
|
{
|
|
3684
3701
|
className: $(Ae.activeSegmentIndicator, Vt[i]),
|
|
@@ -3687,7 +3704,7 @@ const Ft = Object.assign(ks, {
|
|
|
3687
3704
|
width: m.width,
|
|
3688
3705
|
left: m.left
|
|
3689
3706
|
},
|
|
3690
|
-
children:
|
|
3707
|
+
children: y
|
|
3691
3708
|
}
|
|
3692
3709
|
)
|
|
3693
3710
|
]
|
|
@@ -3695,25 +3712,25 @@ const Ft = Object.assign(ks, {
|
|
|
3695
3712
|
);
|
|
3696
3713
|
};
|
|
3697
3714
|
export {
|
|
3698
|
-
|
|
3715
|
+
Pl as Avatar,
|
|
3699
3716
|
Qa as Badge,
|
|
3700
3717
|
ga as Button,
|
|
3701
|
-
|
|
3702
|
-
|
|
3703
|
-
|
|
3704
|
-
|
|
3705
|
-
|
|
3706
|
-
|
|
3707
|
-
|
|
3708
|
-
|
|
3709
|
-
|
|
3710
|
-
|
|
3711
|
-
|
|
3712
|
-
|
|
3713
|
-
|
|
3718
|
+
ql as Checkbox,
|
|
3719
|
+
Dl as ConfigProvider,
|
|
3720
|
+
Xl as Helper,
|
|
3721
|
+
Bl as Image,
|
|
3722
|
+
Zl as List,
|
|
3723
|
+
hn as Loader,
|
|
3724
|
+
Yl as Radio,
|
|
3725
|
+
Jl as SegmentedControl,
|
|
3726
|
+
Gl as Tabs,
|
|
3727
|
+
Fl as Tag,
|
|
3728
|
+
Vl as TextArea,
|
|
3729
|
+
Hl as TextInput,
|
|
3730
|
+
Ul as Tooltip,
|
|
3714
3731
|
Dt as Typography,
|
|
3715
|
-
|
|
3716
|
-
|
|
3717
|
-
|
|
3718
|
-
|
|
3732
|
+
yn as enUS,
|
|
3733
|
+
Wl as ruRU,
|
|
3734
|
+
xn as useConfig,
|
|
3735
|
+
zl as useLocale
|
|
3719
3736
|
};
|