skillgrid 0.0.28-dev-41308-avatar-group.1182116 → 0.0.28-dev-41308-avatar-group.1182312
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +11 -11
- package/dist/index.es.js +1559 -1589
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import _t, { forwardRef as
|
|
3
|
-
import { clsx as
|
|
1
|
+
import * as Vt from "react";
|
|
2
|
+
import _t, { forwardRef as K, Fragment as De, useState as de, useEffect as oe, useRef as Pe, useCallback as Se, useMemo as Lr, createContext as Gt, useContext as Yt, useLayoutEffect as Er, useImperativeHandle as jr, useId as pt } from "react";
|
|
3
|
+
import { clsx as k } from "clsx";
|
|
4
4
|
import kr from "rc-tooltip";
|
|
5
5
|
import './index.css';function Mr(e) {
|
|
6
6
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
@@ -15,19 +15,19 @@ var Ge = { exports: {} }, Ue = {};
|
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
17
|
*/
|
|
18
|
-
var
|
|
18
|
+
var kt;
|
|
19
19
|
function Ir() {
|
|
20
|
-
if (
|
|
21
|
-
|
|
22
|
-
var e = _t,
|
|
23
|
-
function l(
|
|
24
|
-
var
|
|
25
|
-
|
|
26
|
-
for (
|
|
27
|
-
if (
|
|
28
|
-
return { $$typeof:
|
|
20
|
+
if (kt) return Ue;
|
|
21
|
+
kt = 1;
|
|
22
|
+
var e = _t, r = Symbol.for("react.element"), a = Symbol.for("react.fragment"), o = 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
|
+
function l(c, _, p) {
|
|
24
|
+
var f, h = {}, m = null, b = null;
|
|
25
|
+
p !== void 0 && (m = "" + p), _.key !== void 0 && (m = "" + _.key), _.ref !== void 0 && (b = _.ref);
|
|
26
|
+
for (f in _) o.call(_, f) && !s.hasOwnProperty(f) && (h[f] = _[f]);
|
|
27
|
+
if (c && c.defaultProps) for (f in _ = c.defaultProps, _) h[f] === void 0 && (h[f] = _[f]);
|
|
28
|
+
return { $$typeof: r, type: c, key: m, ref: b, props: h, _owner: i.current };
|
|
29
29
|
}
|
|
30
|
-
return Ue.Fragment =
|
|
30
|
+
return Ue.Fragment = a, Ue.jsx = l, Ue.jsxs = l, Ue;
|
|
31
31
|
}
|
|
32
32
|
var Fe = {};
|
|
33
33
|
/**
|
|
@@ -39,47 +39,47 @@ var Fe = {};
|
|
|
39
39
|
* This source code is licensed under the MIT license found in the
|
|
40
40
|
* LICENSE file in the root directory of this source tree.
|
|
41
41
|
*/
|
|
42
|
-
var
|
|
43
|
-
function
|
|
44
|
-
return
|
|
45
|
-
var e = _t,
|
|
42
|
+
var Mt;
|
|
43
|
+
function $r() {
|
|
44
|
+
return Mt || (Mt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
45
|
+
var e = _t, r = Symbol.for("react.element"), a = Symbol.for("react.portal"), o = 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"), p = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), m = Symbol.for("react.lazy"), b = Symbol.for("react.offscreen"), y = Symbol.iterator, L = "@@iterator";
|
|
46
46
|
function x(t) {
|
|
47
47
|
if (t === null || typeof t != "object")
|
|
48
48
|
return null;
|
|
49
|
-
var u =
|
|
49
|
+
var u = y && t[y] || t[L];
|
|
50
50
|
return typeof u == "function" ? u : null;
|
|
51
51
|
}
|
|
52
|
-
var
|
|
53
|
-
function
|
|
52
|
+
var v = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
53
|
+
function d(t) {
|
|
54
54
|
{
|
|
55
|
-
for (var u = arguments.length, g = new Array(u > 1 ? u - 1 : 0),
|
|
56
|
-
g[
|
|
57
|
-
|
|
55
|
+
for (var u = arguments.length, g = new Array(u > 1 ? u - 1 : 0), E = 1; E < u; E++)
|
|
56
|
+
g[E - 1] = arguments[E];
|
|
57
|
+
w("error", t, g);
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function w(t, u, g) {
|
|
61
61
|
{
|
|
62
|
-
var
|
|
62
|
+
var E = v.ReactDebugCurrentFrame, O = E.getStackAddendum();
|
|
63
63
|
O !== "" && (u += "%s", g = g.concat([O]));
|
|
64
|
-
var B = g.map(function(
|
|
65
|
-
return String(
|
|
64
|
+
var B = g.map(function(R) {
|
|
65
|
+
return String(R);
|
|
66
66
|
});
|
|
67
67
|
B.unshift("Warning: " + u), Function.prototype.apply.call(console[t], console, B);
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
|
-
var C = !1,
|
|
70
|
+
var C = !1, M = !1, j = !1, I = !1, A = !1, z;
|
|
71
71
|
z = Symbol.for("react.module.reference");
|
|
72
72
|
function U(t) {
|
|
73
|
-
return !!(typeof t == "string" || typeof t == "function" || t ===
|
|
73
|
+
return !!(typeof t == "string" || typeof t == "function" || t === o || t === s || A || t === i || t === p || t === f || I || t === b || C || M || j || typeof t == "object" && t !== null && (t.$$typeof === m || t.$$typeof === h || 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
77
|
t.$$typeof === z || t.getModuleId !== void 0));
|
|
78
78
|
}
|
|
79
79
|
function q(t, u, g) {
|
|
80
|
-
var
|
|
81
|
-
if (
|
|
82
|
-
return
|
|
80
|
+
var E = t.displayName;
|
|
81
|
+
if (E)
|
|
82
|
+
return E;
|
|
83
83
|
var O = u.displayName || u.name || "";
|
|
84
84
|
return O !== "" ? g + "(" + O + ")" : g;
|
|
85
85
|
}
|
|
@@ -89,41 +89,41 @@ 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" && d("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 o:
|
|
98
98
|
return "Fragment";
|
|
99
|
-
case
|
|
99
|
+
case a:
|
|
100
100
|
return "Portal";
|
|
101
|
-
case
|
|
101
|
+
case s:
|
|
102
102
|
return "Profiler";
|
|
103
103
|
case i:
|
|
104
104
|
return "StrictMode";
|
|
105
|
-
case f:
|
|
106
|
-
return "Suspense";
|
|
107
105
|
case p:
|
|
106
|
+
return "Suspense";
|
|
107
|
+
case f:
|
|
108
108
|
return "SuspenseList";
|
|
109
109
|
}
|
|
110
110
|
if (typeof t == "object")
|
|
111
111
|
switch (t.$$typeof) {
|
|
112
|
-
case
|
|
112
|
+
case c:
|
|
113
113
|
var u = t;
|
|
114
114
|
return D(u) + ".Consumer";
|
|
115
115
|
case l:
|
|
116
116
|
var g = t;
|
|
117
117
|
return D(g._context) + ".Provider";
|
|
118
|
-
case
|
|
118
|
+
case _:
|
|
119
119
|
return q(t, t.render, "ForwardRef");
|
|
120
|
-
case
|
|
121
|
-
var
|
|
122
|
-
return
|
|
123
|
-
case
|
|
124
|
-
var O = t, B = O._payload,
|
|
120
|
+
case h:
|
|
121
|
+
var E = t.displayName || null;
|
|
122
|
+
return E !== null ? E : S(t.type) || "Memo";
|
|
123
|
+
case m: {
|
|
124
|
+
var O = t, B = O._payload, R = O._init;
|
|
125
125
|
try {
|
|
126
|
-
return S(
|
|
126
|
+
return S(R(B));
|
|
127
127
|
} catch {
|
|
128
128
|
return null;
|
|
129
129
|
}
|
|
@@ -131,14 +131,14 @@ function Rr() {
|
|
|
131
131
|
}
|
|
132
132
|
return null;
|
|
133
133
|
}
|
|
134
|
-
var
|
|
134
|
+
var T = Object.assign, P = 0, F, H, Q, ie, Y, ue, ee;
|
|
135
135
|
function Ce() {
|
|
136
136
|
}
|
|
137
137
|
Ce.__reactDisabledLog = !0;
|
|
138
138
|
function Be() {
|
|
139
139
|
{
|
|
140
140
|
if (P === 0) {
|
|
141
|
-
F = console.log,
|
|
141
|
+
F = console.log, H = console.info, Q = console.warn, ie = console.error, Y = console.group, ue = console.groupCollapsed, ee = console.groupEnd;
|
|
142
142
|
var t = {
|
|
143
143
|
configurable: !0,
|
|
144
144
|
enumerable: !0,
|
|
@@ -167,182 +167,182 @@ function Rr() {
|
|
|
167
167
|
writable: !0
|
|
168
168
|
};
|
|
169
169
|
Object.defineProperties(console, {
|
|
170
|
-
log:
|
|
170
|
+
log: T({}, t, {
|
|
171
171
|
value: F
|
|
172
172
|
}),
|
|
173
|
-
info:
|
|
174
|
-
value:
|
|
173
|
+
info: T({}, t, {
|
|
174
|
+
value: H
|
|
175
175
|
}),
|
|
176
|
-
warn:
|
|
176
|
+
warn: T({}, t, {
|
|
177
177
|
value: Q
|
|
178
178
|
}),
|
|
179
|
-
error:
|
|
179
|
+
error: T({}, t, {
|
|
180
180
|
value: ie
|
|
181
181
|
}),
|
|
182
|
-
group:
|
|
183
|
-
value:
|
|
182
|
+
group: T({}, t, {
|
|
183
|
+
value: Y
|
|
184
184
|
}),
|
|
185
|
-
groupCollapsed:
|
|
185
|
+
groupCollapsed: T({}, t, {
|
|
186
186
|
value: ue
|
|
187
187
|
}),
|
|
188
|
-
groupEnd:
|
|
188
|
+
groupEnd: T({}, t, {
|
|
189
189
|
value: ee
|
|
190
190
|
})
|
|
191
191
|
});
|
|
192
192
|
}
|
|
193
|
-
P < 0 &&
|
|
193
|
+
P < 0 && d("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
194
194
|
}
|
|
195
195
|
}
|
|
196
|
-
var
|
|
196
|
+
var Me = v.ReactCurrentDispatcher, Ie;
|
|
197
197
|
function Ee(t, u, g) {
|
|
198
198
|
{
|
|
199
|
-
if (
|
|
199
|
+
if (Ie === void 0)
|
|
200
200
|
try {
|
|
201
201
|
throw Error();
|
|
202
202
|
} catch (O) {
|
|
203
|
-
var
|
|
204
|
-
|
|
203
|
+
var E = O.stack.trim().match(/\n( *(at )?)/);
|
|
204
|
+
Ie = E && E[1] || "";
|
|
205
205
|
}
|
|
206
206
|
return `
|
|
207
|
-
` +
|
|
207
|
+
` + Ie + t;
|
|
208
208
|
}
|
|
209
209
|
}
|
|
210
|
-
var We = !1,
|
|
210
|
+
var We = !1, $e;
|
|
211
211
|
{
|
|
212
|
-
var
|
|
213
|
-
|
|
212
|
+
var Ke = typeof WeakMap == "function" ? WeakMap : Map;
|
|
213
|
+
$e = new Ke();
|
|
214
214
|
}
|
|
215
|
-
function
|
|
215
|
+
function He(t, u) {
|
|
216
216
|
if (!t || We)
|
|
217
217
|
return "";
|
|
218
218
|
{
|
|
219
|
-
var g =
|
|
219
|
+
var g = $e.get(t);
|
|
220
220
|
if (g !== void 0)
|
|
221
221
|
return g;
|
|
222
222
|
}
|
|
223
|
-
var
|
|
223
|
+
var E;
|
|
224
224
|
We = !0;
|
|
225
225
|
var O = Error.prepareStackTrace;
|
|
226
226
|
Error.prepareStackTrace = void 0;
|
|
227
227
|
var B;
|
|
228
|
-
B =
|
|
228
|
+
B = Me.current, Me.current = null, Be();
|
|
229
229
|
try {
|
|
230
230
|
if (u) {
|
|
231
|
-
var
|
|
231
|
+
var R = function() {
|
|
232
232
|
throw Error();
|
|
233
233
|
};
|
|
234
|
-
if (Object.defineProperty(
|
|
234
|
+
if (Object.defineProperty(R.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(
|
|
240
|
+
Reflect.construct(R, []);
|
|
241
241
|
} catch (ae) {
|
|
242
|
-
|
|
242
|
+
E = ae;
|
|
243
243
|
}
|
|
244
|
-
Reflect.construct(t, [],
|
|
244
|
+
Reflect.construct(t, [], R);
|
|
245
245
|
} else {
|
|
246
246
|
try {
|
|
247
|
-
|
|
247
|
+
R.call();
|
|
248
248
|
} catch (ae) {
|
|
249
|
-
|
|
249
|
+
E = ae;
|
|
250
250
|
}
|
|
251
|
-
t.call(
|
|
251
|
+
t.call(R.prototype);
|
|
252
252
|
}
|
|
253
253
|
} else {
|
|
254
254
|
try {
|
|
255
255
|
throw Error();
|
|
256
256
|
} catch (ae) {
|
|
257
|
-
|
|
257
|
+
E = ae;
|
|
258
258
|
}
|
|
259
259
|
t();
|
|
260
260
|
}
|
|
261
261
|
} catch (ae) {
|
|
262
|
-
if (ae &&
|
|
263
|
-
for (var
|
|
264
|
-
`), te =
|
|
265
|
-
`),
|
|
262
|
+
if (ae && E && typeof ae.stack == "string") {
|
|
263
|
+
for (var $ = ae.stack.split(`
|
|
264
|
+
`), te = E.stack.split(`
|
|
265
|
+
`), V = $.length - 1, G = te.length - 1; V >= 1 && G >= 0 && $[V] !== te[G]; )
|
|
266
266
|
G--;
|
|
267
|
-
for (;
|
|
268
|
-
if (
|
|
269
|
-
if (
|
|
267
|
+
for (; V >= 1 && G >= 0; V--, G--)
|
|
268
|
+
if ($[V] !== te[G]) {
|
|
269
|
+
if (V !== 1 || G !== 1)
|
|
270
270
|
do
|
|
271
|
-
if (
|
|
271
|
+
if (V--, G--, G < 0 || $[V] !== te[G]) {
|
|
272
272
|
var _e = `
|
|
273
|
-
` +
|
|
274
|
-
return t.displayName && _e.includes("<anonymous>") && (_e = _e.replace("<anonymous>", t.displayName)), typeof t == "function" &&
|
|
273
|
+
` + $[V].replace(" at new ", " at ");
|
|
274
|
+
return t.displayName && _e.includes("<anonymous>") && (_e = _e.replace("<anonymous>", t.displayName)), typeof t == "function" && $e.set(t, _e), _e;
|
|
275
275
|
}
|
|
276
|
-
while (
|
|
276
|
+
while (V >= 1 && G >= 0);
|
|
277
277
|
break;
|
|
278
278
|
}
|
|
279
279
|
}
|
|
280
280
|
} finally {
|
|
281
|
-
We = !1,
|
|
281
|
+
We = !1, Me.current = B, me(), Error.prepareStackTrace = O;
|
|
282
282
|
}
|
|
283
|
-
var
|
|
284
|
-
return typeof t == "function" &&
|
|
283
|
+
var Re = t ? t.displayName || t.name : "", je = Re ? Ee(Re) : "";
|
|
284
|
+
return typeof t == "function" && $e.set(t, je), je;
|
|
285
285
|
}
|
|
286
286
|
function Qe(t, u, g) {
|
|
287
|
-
return
|
|
287
|
+
return He(t, !1);
|
|
288
288
|
}
|
|
289
289
|
function et(t) {
|
|
290
290
|
var u = t.prototype;
|
|
291
291
|
return !!(u && u.isReactComponent);
|
|
292
292
|
}
|
|
293
|
-
function
|
|
293
|
+
function Z(t, u, g) {
|
|
294
294
|
if (t == null)
|
|
295
295
|
return "";
|
|
296
296
|
if (typeof t == "function")
|
|
297
|
-
return
|
|
297
|
+
return He(t, et(t));
|
|
298
298
|
if (typeof t == "string")
|
|
299
299
|
return Ee(t);
|
|
300
300
|
switch (t) {
|
|
301
|
-
case f:
|
|
302
|
-
return Ee("Suspense");
|
|
303
301
|
case p:
|
|
302
|
+
return Ee("Suspense");
|
|
303
|
+
case f:
|
|
304
304
|
return Ee("SuspenseList");
|
|
305
305
|
}
|
|
306
306
|
if (typeof t == "object")
|
|
307
307
|
switch (t.$$typeof) {
|
|
308
|
-
case
|
|
308
|
+
case _:
|
|
309
309
|
return Qe(t.render);
|
|
310
|
-
case
|
|
311
|
-
return
|
|
312
|
-
case
|
|
313
|
-
var
|
|
310
|
+
case h:
|
|
311
|
+
return Z(t.type, u, g);
|
|
312
|
+
case m: {
|
|
313
|
+
var E = t, O = E._payload, B = E._init;
|
|
314
314
|
try {
|
|
315
|
-
return
|
|
315
|
+
return Z(B(O), u, g);
|
|
316
316
|
} catch {
|
|
317
317
|
}
|
|
318
318
|
}
|
|
319
319
|
}
|
|
320
320
|
return "";
|
|
321
321
|
}
|
|
322
|
-
var
|
|
323
|
-
function
|
|
322
|
+
var X = Object.prototype.hasOwnProperty, be = {}, ht = v.ReactDebugCurrentFrame;
|
|
323
|
+
function Ve(t) {
|
|
324
324
|
if (t) {
|
|
325
|
-
var u = t._owner, g =
|
|
325
|
+
var u = t._owner, g = Z(t.type, t._source, u ? u.type : null);
|
|
326
326
|
ht.setExtraStackFrame(g);
|
|
327
327
|
} else
|
|
328
328
|
ht.setExtraStackFrame(null);
|
|
329
329
|
}
|
|
330
|
-
function
|
|
330
|
+
function ar(t, u, g, E, O) {
|
|
331
331
|
{
|
|
332
|
-
var B = Function.call.bind(
|
|
333
|
-
for (var
|
|
334
|
-
if (B(t,
|
|
335
|
-
var
|
|
332
|
+
var B = Function.call.bind(X);
|
|
333
|
+
for (var R in t)
|
|
334
|
+
if (B(t, R)) {
|
|
335
|
+
var $ = void 0;
|
|
336
336
|
try {
|
|
337
|
-
if (typeof t[
|
|
338
|
-
var te = Error((
|
|
337
|
+
if (typeof t[R] != "function") {
|
|
338
|
+
var te = Error((E || "React class") + ": " + g + " type `" + R + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof t[R] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
339
339
|
throw te.name = "Invariant Violation", te;
|
|
340
340
|
}
|
|
341
|
-
|
|
342
|
-
} catch (
|
|
343
|
-
|
|
341
|
+
$ = t[R](u, R, E, g, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
342
|
+
} catch (V) {
|
|
343
|
+
$ = V;
|
|
344
344
|
}
|
|
345
|
-
|
|
345
|
+
$ && !($ instanceof Error) && (Ve(O), d("%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).", E || "React class", g, R, typeof $), Ve(null)), $ instanceof Error && !($.message in be) && (be[$.message] = !0, Ve(O), d("Failed %s type: %s", g, $.message), Ve(null));
|
|
346
346
|
}
|
|
347
347
|
}
|
|
348
348
|
}
|
|
@@ -350,13 +350,13 @@ function Rr() {
|
|
|
350
350
|
function tt(t) {
|
|
351
351
|
return nr(t);
|
|
352
352
|
}
|
|
353
|
-
function
|
|
353
|
+
function sr(t) {
|
|
354
354
|
{
|
|
355
355
|
var u = typeof Symbol == "function" && Symbol.toStringTag, g = u && t[Symbol.toStringTag] || t.constructor.name || "Object";
|
|
356
356
|
return g;
|
|
357
357
|
}
|
|
358
358
|
}
|
|
359
|
-
function
|
|
359
|
+
function or(t) {
|
|
360
360
|
try {
|
|
361
361
|
return bt(t), !1;
|
|
362
362
|
} catch {
|
|
@@ -367,38 +367,38 @@ function Rr() {
|
|
|
367
367
|
return "" + t;
|
|
368
368
|
}
|
|
369
369
|
function gt(t) {
|
|
370
|
-
if (
|
|
371
|
-
return
|
|
370
|
+
if (or(t))
|
|
371
|
+
return d("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", sr(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,
|
|
377
377
|
__source: !0
|
|
378
378
|
}, yt, vt;
|
|
379
|
-
function
|
|
380
|
-
if (
|
|
379
|
+
function lr(t) {
|
|
380
|
+
if (X.call(t, "ref")) {
|
|
381
381
|
var u = Object.getOwnPropertyDescriptor(t, "ref").get;
|
|
382
382
|
if (u && u.isReactWarning)
|
|
383
383
|
return !1;
|
|
384
384
|
}
|
|
385
385
|
return t.ref !== void 0;
|
|
386
386
|
}
|
|
387
|
-
function
|
|
388
|
-
if (
|
|
387
|
+
function cr(t) {
|
|
388
|
+
if (X.call(t, "key")) {
|
|
389
389
|
var u = Object.getOwnPropertyDescriptor(t, "key").get;
|
|
390
390
|
if (u && u.isReactWarning)
|
|
391
391
|
return !1;
|
|
392
392
|
}
|
|
393
393
|
return t.key !== void 0;
|
|
394
394
|
}
|
|
395
|
-
function
|
|
395
|
+
function dr(t, u) {
|
|
396
396
|
typeof t.ref == "string" && mt.current;
|
|
397
397
|
}
|
|
398
|
-
function
|
|
398
|
+
function ur(t, u) {
|
|
399
399
|
{
|
|
400
400
|
var g = function() {
|
|
401
|
-
yt || (yt = !0,
|
|
401
|
+
yt || (yt = !0, d("%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)", u));
|
|
402
402
|
};
|
|
403
403
|
g.isReactWarning = !0, Object.defineProperty(t, "key", {
|
|
404
404
|
get: g,
|
|
@@ -406,10 +406,10 @@ function Rr() {
|
|
|
406
406
|
});
|
|
407
407
|
}
|
|
408
408
|
}
|
|
409
|
-
function
|
|
409
|
+
function _r(t, u) {
|
|
410
410
|
{
|
|
411
411
|
var g = function() {
|
|
412
|
-
vt || (vt = !0,
|
|
412
|
+
vt || (vt = !0, d("%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)", u));
|
|
413
413
|
};
|
|
414
414
|
g.isReactWarning = !0, Object.defineProperty(t, "ref", {
|
|
415
415
|
get: g,
|
|
@@ -417,65 +417,65 @@ function Rr() {
|
|
|
417
417
|
});
|
|
418
418
|
}
|
|
419
419
|
}
|
|
420
|
-
var
|
|
421
|
-
var
|
|
420
|
+
var pr = function(t, u, g, E, O, B, R) {
|
|
421
|
+
var $ = {
|
|
422
422
|
// This tag allows us to uniquely identify this as a React Element
|
|
423
|
-
$$typeof:
|
|
423
|
+
$$typeof: r,
|
|
424
424
|
// Built-in properties that belong on the element
|
|
425
425
|
type: t,
|
|
426
426
|
key: u,
|
|
427
427
|
ref: g,
|
|
428
|
-
props:
|
|
428
|
+
props: R,
|
|
429
429
|
// Record the component responsible for creating this element.
|
|
430
430
|
_owner: B
|
|
431
431
|
};
|
|
432
|
-
return
|
|
432
|
+
return $._store = {}, Object.defineProperty($._store, "validated", {
|
|
433
433
|
configurable: !1,
|
|
434
434
|
enumerable: !1,
|
|
435
435
|
writable: !0,
|
|
436
436
|
value: !1
|
|
437
|
-
}), Object.defineProperty(
|
|
437
|
+
}), Object.defineProperty($, "_self", {
|
|
438
438
|
configurable: !1,
|
|
439
439
|
enumerable: !1,
|
|
440
440
|
writable: !1,
|
|
441
|
-
value:
|
|
442
|
-
}), Object.defineProperty(
|
|
441
|
+
value: E
|
|
442
|
+
}), Object.defineProperty($, "_source", {
|
|
443
443
|
configurable: !1,
|
|
444
444
|
enumerable: !1,
|
|
445
445
|
writable: !1,
|
|
446
446
|
value: O
|
|
447
|
-
}), Object.freeze && (Object.freeze(
|
|
447
|
+
}), Object.freeze && (Object.freeze($.props), Object.freeze($)), $;
|
|
448
448
|
};
|
|
449
|
-
function
|
|
449
|
+
function fr(t, u, g, E, O) {
|
|
450
450
|
{
|
|
451
|
-
var B,
|
|
452
|
-
g !== void 0 && (gt(g),
|
|
451
|
+
var B, R = {}, $ = null, te = null;
|
|
452
|
+
g !== void 0 && (gt(g), $ = "" + g), cr(u) && (gt(u.key), $ = "" + u.key), lr(u) && (te = u.ref, dr(u, O));
|
|
453
453
|
for (B in u)
|
|
454
|
-
|
|
454
|
+
X.call(u, B) && !ir.hasOwnProperty(B) && (R[B] = u[B]);
|
|
455
455
|
if (t && t.defaultProps) {
|
|
456
|
-
var
|
|
457
|
-
for (B in
|
|
458
|
-
|
|
456
|
+
var V = t.defaultProps;
|
|
457
|
+
for (B in V)
|
|
458
|
+
R[B] === void 0 && (R[B] = V[B]);
|
|
459
459
|
}
|
|
460
|
-
if (
|
|
460
|
+
if ($ || te) {
|
|
461
461
|
var G = typeof t == "function" ? t.displayName || t.name || "Unknown" : t;
|
|
462
|
-
|
|
462
|
+
$ && ur(R, G), te && _r(R, G);
|
|
463
463
|
}
|
|
464
|
-
return
|
|
464
|
+
return pr(t, $, te, O, E, mt.current, R);
|
|
465
465
|
}
|
|
466
466
|
}
|
|
467
|
-
var rt =
|
|
468
|
-
function
|
|
467
|
+
var rt = v.ReactCurrentOwner, xt = v.ReactDebugCurrentFrame;
|
|
468
|
+
function Te(t) {
|
|
469
469
|
if (t) {
|
|
470
|
-
var u = t._owner, g =
|
|
470
|
+
var u = t._owner, g = Z(t.type, t._source, u ? u.type : null);
|
|
471
471
|
xt.setExtraStackFrame(g);
|
|
472
472
|
} else
|
|
473
473
|
xt.setExtraStackFrame(null);
|
|
474
474
|
}
|
|
475
475
|
var at;
|
|
476
476
|
at = !1;
|
|
477
|
-
function
|
|
478
|
-
return typeof t == "object" && t !== null && t.$$typeof ===
|
|
477
|
+
function nt(t) {
|
|
478
|
+
return typeof t == "object" && t !== null && t.$$typeof === r;
|
|
479
479
|
}
|
|
480
480
|
function wt() {
|
|
481
481
|
{
|
|
@@ -489,11 +489,11 @@ Check the render method of \`` + t + "`.";
|
|
|
489
489
|
return "";
|
|
490
490
|
}
|
|
491
491
|
}
|
|
492
|
-
function
|
|
492
|
+
function hr(t) {
|
|
493
493
|
return "";
|
|
494
494
|
}
|
|
495
495
|
var Ct = {};
|
|
496
|
-
function
|
|
496
|
+
function br(t) {
|
|
497
497
|
{
|
|
498
498
|
var u = wt();
|
|
499
499
|
if (!u) {
|
|
@@ -510,12 +510,12 @@ Check the top-level render call using <` + g + ">.");
|
|
|
510
510
|
if (!t._store || t._store.validated || t.key != null)
|
|
511
511
|
return;
|
|
512
512
|
t._store.validated = !0;
|
|
513
|
-
var g =
|
|
513
|
+
var g = br(u);
|
|
514
514
|
if (Ct[g])
|
|
515
515
|
return;
|
|
516
516
|
Ct[g] = !0;
|
|
517
|
-
var
|
|
518
|
-
t && t._owner && t._owner !== rt.current && (
|
|
517
|
+
var E = "";
|
|
518
|
+
t && t._owner && t._owner !== rt.current && (E = " It was passed a child from " + S(t._owner.type) + "."), Te(t), d('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', g, E), Te(null);
|
|
519
519
|
}
|
|
520
520
|
}
|
|
521
521
|
function Lt(t, u) {
|
|
@@ -524,20 +524,20 @@ Check the top-level render call using <` + g + ">.");
|
|
|
524
524
|
return;
|
|
525
525
|
if (tt(t))
|
|
526
526
|
for (var g = 0; g < t.length; g++) {
|
|
527
|
-
var
|
|
528
|
-
|
|
527
|
+
var E = t[g];
|
|
528
|
+
nt(E) && St(E, u);
|
|
529
529
|
}
|
|
530
|
-
else if (
|
|
530
|
+
else if (nt(t))
|
|
531
531
|
t._store && (t._store.validated = !0);
|
|
532
532
|
else if (t) {
|
|
533
533
|
var O = x(t);
|
|
534
534
|
if (typeof O == "function" && O !== t.entries)
|
|
535
|
-
for (var B = O.call(t),
|
|
536
|
-
|
|
535
|
+
for (var B = O.call(t), R; !(R = B.next()).done; )
|
|
536
|
+
nt(R.value) && St(R.value, u);
|
|
537
537
|
}
|
|
538
538
|
}
|
|
539
539
|
}
|
|
540
|
-
function
|
|
540
|
+
function gr(t) {
|
|
541
541
|
{
|
|
542
542
|
var u = t.type;
|
|
543
543
|
if (u == null || typeof u == "string")
|
|
@@ -545,128 +545,128 @@ Check the top-level render call using <` + g + ">.");
|
|
|
545
545
|
var g;
|
|
546
546
|
if (typeof u == "function")
|
|
547
547
|
g = u.propTypes;
|
|
548
|
-
else if (typeof u == "object" && (u.$$typeof ===
|
|
548
|
+
else if (typeof u == "object" && (u.$$typeof === _ || // Note: Memo only checks outer props here.
|
|
549
549
|
// Inner props are checked in the reconciler.
|
|
550
|
-
u.$$typeof ===
|
|
550
|
+
u.$$typeof === h))
|
|
551
551
|
g = u.propTypes;
|
|
552
552
|
else
|
|
553
553
|
return;
|
|
554
554
|
if (g) {
|
|
555
|
-
var
|
|
556
|
-
|
|
555
|
+
var E = S(u);
|
|
556
|
+
ar(g, t.props, "prop", E, t);
|
|
557
557
|
} else if (u.PropTypes !== void 0 && !at) {
|
|
558
558
|
at = !0;
|
|
559
559
|
var O = S(u);
|
|
560
|
-
|
|
560
|
+
d("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", O || "Unknown");
|
|
561
561
|
}
|
|
562
|
-
typeof u.getDefaultProps == "function" && !u.getDefaultProps.isReactClassApproved &&
|
|
562
|
+
typeof u.getDefaultProps == "function" && !u.getDefaultProps.isReactClassApproved && d("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
563
563
|
}
|
|
564
564
|
}
|
|
565
|
-
function
|
|
565
|
+
function mr(t) {
|
|
566
566
|
{
|
|
567
567
|
for (var u = Object.keys(t.props), g = 0; g < u.length; g++) {
|
|
568
|
-
var
|
|
569
|
-
if (
|
|
570
|
-
|
|
568
|
+
var E = u[g];
|
|
569
|
+
if (E !== "children" && E !== "key") {
|
|
570
|
+
Te(t), d("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", E), Te(null);
|
|
571
571
|
break;
|
|
572
572
|
}
|
|
573
573
|
}
|
|
574
|
-
t.ref !== null && (
|
|
574
|
+
t.ref !== null && (Te(t), d("Invalid attribute `ref` supplied to `React.Fragment`."), Te(null));
|
|
575
575
|
}
|
|
576
576
|
}
|
|
577
577
|
var Et = {};
|
|
578
|
-
function jt(t, u, g,
|
|
578
|
+
function jt(t, u, g, E, O, B) {
|
|
579
579
|
{
|
|
580
|
-
var
|
|
581
|
-
if (!
|
|
582
|
-
var
|
|
583
|
-
(t === void 0 || typeof t == "object" && t !== null && Object.keys(t).length === 0) && (
|
|
584
|
-
var te =
|
|
585
|
-
te ?
|
|
586
|
-
var
|
|
587
|
-
t === null ?
|
|
580
|
+
var R = U(t);
|
|
581
|
+
if (!R) {
|
|
582
|
+
var $ = "";
|
|
583
|
+
(t === void 0 || typeof t == "object" && t !== null && Object.keys(t).length === 0) && ($ += " 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
|
+
var te = hr();
|
|
585
|
+
te ? $ += te : $ += wt();
|
|
586
|
+
var V;
|
|
587
|
+
t === null ? V = "null" : tt(t) ? V = "array" : t !== void 0 && t.$$typeof === r ? (V = "<" + (S(t.type) || "Unknown") + " />", $ = " Did you accidentally export a JSX literal instead of a component?") : V = typeof t, d("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", V, $);
|
|
588
588
|
}
|
|
589
|
-
var G =
|
|
589
|
+
var G = fr(t, u, g, O, B);
|
|
590
590
|
if (G == null)
|
|
591
591
|
return G;
|
|
592
|
-
if (
|
|
592
|
+
if (R) {
|
|
593
593
|
var _e = u.children;
|
|
594
594
|
if (_e !== void 0)
|
|
595
|
-
if (
|
|
595
|
+
if (E)
|
|
596
596
|
if (tt(_e)) {
|
|
597
|
-
for (var
|
|
598
|
-
Lt(_e[
|
|
597
|
+
for (var Re = 0; Re < _e.length; Re++)
|
|
598
|
+
Lt(_e[Re], t);
|
|
599
599
|
Object.freeze && Object.freeze(_e);
|
|
600
600
|
} else
|
|
601
|
-
|
|
601
|
+
d("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(_e, t);
|
|
604
604
|
}
|
|
605
|
-
if (
|
|
606
|
-
var je = S(t), ae = Object.keys(u).filter(function(
|
|
607
|
-
return
|
|
608
|
-
}),
|
|
609
|
-
if (!Et[je +
|
|
610
|
-
var
|
|
611
|
-
|
|
605
|
+
if (X.call(u, "key")) {
|
|
606
|
+
var je = S(t), ae = Object.keys(u).filter(function(Sr) {
|
|
607
|
+
return Sr !== "key";
|
|
608
|
+
}), st = ae.length > 0 ? "{key: someKey, " + ae.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
609
|
+
if (!Et[je + st]) {
|
|
610
|
+
var Cr = ae.length > 0 ? "{" + ae.join(": ..., ") + ": ...}" : "{}";
|
|
611
|
+
d(`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), Et[je + st] = !0;
|
|
617
617
|
}
|
|
618
618
|
}
|
|
619
|
-
return t ===
|
|
619
|
+
return t === o ? mr(G) : gr(G), G;
|
|
620
620
|
}
|
|
621
621
|
}
|
|
622
|
-
function
|
|
622
|
+
function yr(t, u, g) {
|
|
623
623
|
return jt(t, u, g, !0);
|
|
624
624
|
}
|
|
625
|
-
function
|
|
625
|
+
function vr(t, u, g) {
|
|
626
626
|
return jt(t, u, g, !1);
|
|
627
627
|
}
|
|
628
|
-
var
|
|
629
|
-
Fe.Fragment =
|
|
628
|
+
var xr = vr, wr = yr;
|
|
629
|
+
Fe.Fragment = o, Fe.jsx = xr, Fe.jsxs = wr;
|
|
630
630
|
}()), Fe;
|
|
631
631
|
}
|
|
632
|
-
var
|
|
632
|
+
var It;
|
|
633
633
|
function Tr() {
|
|
634
|
-
return
|
|
634
|
+
return It || (It = 1, process.env.NODE_ENV === "production" ? Ge.exports = Ir() : Ge.exports = $r()), Ge.exports;
|
|
635
635
|
}
|
|
636
636
|
var n = Tr();
|
|
637
|
-
const
|
|
638
|
-
button:
|
|
639
|
-
link:
|
|
640
|
-
disabled:
|
|
641
|
-
loading:
|
|
642
|
-
neutral:
|
|
643
|
-
accent:
|
|
644
|
-
positive:
|
|
645
|
-
negative:
|
|
646
|
-
contrast:
|
|
647
|
-
special:
|
|
637
|
+
const Rr = (e) => e.as === "a", Nr = (e) => e.as === void 0 || e.as === "button", Ne = (e) => e.displayAs === void 0 || e.displayAs === "button", ot = (e) => e.displayAs === "link", Ar = "_button_6bymk_1", zr = "_link_6bymk_17", Dr = "_disabled_6bymk_22", Or = "_loading_6bymk_22", Pr = "_neutral_6bymk_50", Br = "_accent_6bymk_54", Ur = "_positive_6bymk_58", Fr = "_negative_6bymk_62", qr = "_contrast_6bymk_66", Wr = "_special_6bymk_70", Hr = "_primary_6bymk_74", Vr = "_secondary_6bymk_75", Gr = "_tertiary_6bymk_76", Yr = "_spaceBetween_6bymk_116", Zr = "_rightGroup_6bymk_116", Xr = "_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", sa = "_loader_6bymk_1279", oa = "_spin_6bymk_1", ia = "_l_6bymk_17", la = "_m_6bymk_1318", ca = "_s_6bymk_70", da = "_xs_6bymk_1364", ua = "_iconRight_6bymk_1410", W = {
|
|
638
|
+
button: Ar,
|
|
639
|
+
link: zr,
|
|
640
|
+
disabled: Dr,
|
|
641
|
+
loading: Or,
|
|
642
|
+
neutral: Pr,
|
|
643
|
+
accent: Br,
|
|
644
|
+
positive: Ur,
|
|
645
|
+
negative: Fr,
|
|
646
|
+
contrast: qr,
|
|
647
|
+
special: Wr,
|
|
648
648
|
primary: Hr,
|
|
649
|
-
secondary:
|
|
650
|
-
tertiary:
|
|
649
|
+
secondary: Vr,
|
|
650
|
+
tertiary: Gr,
|
|
651
651
|
spaceBetween: Yr,
|
|
652
|
-
rightGroup:
|
|
653
|
-
label:
|
|
654
|
-
iconOnly:
|
|
655
|
-
stretched:
|
|
656
|
-
icon:
|
|
657
|
-
postfix:
|
|
658
|
-
underline:
|
|
659
|
-
warning:
|
|
660
|
-
withSubcaption:
|
|
652
|
+
rightGroup: Zr,
|
|
653
|
+
label: Xr,
|
|
654
|
+
iconOnly: Jr,
|
|
655
|
+
stretched: Kr,
|
|
656
|
+
icon: Qr,
|
|
657
|
+
postfix: ea,
|
|
658
|
+
underline: ta,
|
|
659
|
+
warning: ra,
|
|
660
|
+
withSubcaption: aa,
|
|
661
661
|
subcaption: na,
|
|
662
|
-
loader:
|
|
663
|
-
spin:
|
|
664
|
-
l:
|
|
665
|
-
m:
|
|
666
|
-
s:
|
|
667
|
-
xs:
|
|
668
|
-
iconRight:
|
|
669
|
-
},
|
|
662
|
+
loader: sa,
|
|
663
|
+
spin: oa,
|
|
664
|
+
l: ia,
|
|
665
|
+
m: la,
|
|
666
|
+
s: ca,
|
|
667
|
+
xs: da,
|
|
668
|
+
iconRight: ua
|
|
669
|
+
}, _a = /* @__PURE__ */ new Set([
|
|
670
670
|
"mode",
|
|
671
671
|
"size",
|
|
672
672
|
"buttonStyle",
|
|
@@ -683,18 +683,18 @@ const Nr = (e) => e.as === "a", Ar = (e) => e.as === void 0 || e.as === "button"
|
|
|
683
683
|
"as",
|
|
684
684
|
"showUnderline",
|
|
685
685
|
"isExternal"
|
|
686
|
-
]),
|
|
687
|
-
const
|
|
688
|
-
for (const
|
|
689
|
-
|
|
690
|
-
return
|
|
691
|
-
},
|
|
686
|
+
]), $t = (e) => {
|
|
687
|
+
const r = {};
|
|
688
|
+
for (const a in e)
|
|
689
|
+
_a.has(a) || (r[a] = e[a]);
|
|
690
|
+
return r;
|
|
691
|
+
}, pa = {
|
|
692
692
|
l: "typography-subtitle-1-semibold",
|
|
693
693
|
m: "typography-label-2-regular",
|
|
694
694
|
s: "typography-label-3-regular"
|
|
695
695
|
};
|
|
696
|
-
function
|
|
697
|
-
return
|
|
696
|
+
function fa(e) {
|
|
697
|
+
return pa[e] || "typography-label-2-regular";
|
|
698
698
|
}
|
|
699
699
|
const ce = {
|
|
700
700
|
"typography-title-1-semibold": "_typography-title-1-semibold_1lyxn_1",
|
|
@@ -720,84 +720,84 @@ const ce = {
|
|
|
720
720
|
"typography-paragraph-2-regular": "_typography-paragraph-2-regular_1lyxn_176",
|
|
721
721
|
"typography-paragraph-3-regular": "_typography-paragraph-3-regular_1lyxn_185",
|
|
722
722
|
"typography-paragraph-4-regular": "_typography-paragraph-4-regular_1lyxn_194"
|
|
723
|
-
},
|
|
723
|
+
}, Tt = ({
|
|
724
724
|
isLoading: e,
|
|
725
|
-
iconRight:
|
|
726
|
-
iconLeft:
|
|
727
|
-
children:
|
|
725
|
+
iconRight: r,
|
|
726
|
+
iconLeft: a,
|
|
727
|
+
children: o,
|
|
728
728
|
postfix: i,
|
|
729
|
-
subcaption:
|
|
729
|
+
subcaption: s,
|
|
730
730
|
size: l,
|
|
731
|
-
isAsButton:
|
|
731
|
+
isAsButton: c
|
|
732
732
|
}) => {
|
|
733
|
-
if (e &&
|
|
733
|
+
if (e && c)
|
|
734
734
|
return /* @__PURE__ */ n.jsx("span", { className: W.loader, "data-testid": "button-loader", "aria-hidden": "true" });
|
|
735
|
-
const
|
|
735
|
+
const _ = r && c || r && !c && l, p = s && c && l !== "s" && l !== "xs";
|
|
736
736
|
return /* @__PURE__ */ n.jsxs(De, { children: [
|
|
737
|
-
|
|
738
|
-
/* @__PURE__ */ n.jsx("span", { "data-testid": "button-label", className: W.label, children:
|
|
739
|
-
/* @__PURE__ */ n.jsx("span", { "data-testid": "button-subcaption", className: W.subcaption, children:
|
|
737
|
+
p && /* @__PURE__ */ n.jsxs(De, { children: [
|
|
738
|
+
/* @__PURE__ */ n.jsx("span", { "data-testid": "button-label", className: W.label, children: o }),
|
|
739
|
+
/* @__PURE__ */ n.jsx("span", { "data-testid": "button-subcaption", className: W.subcaption, children: s })
|
|
740
740
|
] }),
|
|
741
|
-
!
|
|
741
|
+
!p && o && /* @__PURE__ */ n.jsxs(De, { children: [
|
|
742
742
|
/* @__PURE__ */ n.jsxs("span", { "data-testid": "button-label", className: W.label, children: [
|
|
743
|
-
!
|
|
744
|
-
|
|
745
|
-
!
|
|
743
|
+
!c && a && /* @__PURE__ */ n.jsx("span", { "data-testid": "button-left-icon", className: W.icon, children: a }),
|
|
744
|
+
o,
|
|
745
|
+
!c && r && /* @__PURE__ */ n.jsx("span", { "data-testid": "button-icon", className: k(W.icon, W.iconRight), children: r })
|
|
746
746
|
] }),
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
i &&
|
|
747
|
+
c && /* @__PURE__ */ n.jsxs("div", { "data-testid": "button-right-group", className: W.rightGroup, children: [
|
|
748
|
+
_ && /* @__PURE__ */ n.jsx("span", { "data-testid": "button-icon", className: W.icon, children: r }),
|
|
749
|
+
i && c && /* @__PURE__ */ n.jsx("span", { "data-testid": "button-postfix", className: W.postfix, children: i })
|
|
750
750
|
] })
|
|
751
751
|
] }),
|
|
752
|
-
!
|
|
752
|
+
!p && !o && /* @__PURE__ */ n.jsx("span", { "data-testid": "button-icon", className: W.icon, children: r })
|
|
753
753
|
] });
|
|
754
|
-
},
|
|
754
|
+
}, ha = K((e, r) => {
|
|
755
755
|
const {
|
|
756
|
-
mode:
|
|
757
|
-
size:
|
|
756
|
+
mode: a = "primary",
|
|
757
|
+
size: o = "m",
|
|
758
758
|
buttonStyle: i = Ne(e) ? "neutral" : "accent",
|
|
759
|
-
disabled:
|
|
759
|
+
disabled: s = !1,
|
|
760
760
|
displayAs: l = "button",
|
|
761
|
-
iconRight:
|
|
762
|
-
className:
|
|
763
|
-
children:
|
|
764
|
-
tabIndex:
|
|
765
|
-
} = e,
|
|
761
|
+
iconRight: c,
|
|
762
|
+
className: _,
|
|
763
|
+
children: p,
|
|
764
|
+
tabIndex: f
|
|
765
|
+
} = e, h = Ne(e) ? e.subcaption : void 0, m = Ne(e) ? e.postfix : void 0, b = Ne(e) ? e.stretched : void 0, y = !(ot(e) && e.size === void 0), L = ot(e) && y ? e.iconLeft : void 0, x = !!(l === "button" && "loading" in e && e.loading), v = Ne(e) ? s : s || x, d = !v && !x, w = y ? c : void 0, C = !!(w && !p), M = typeof b == "object" ? b.justify === "space-between" : void 0, j = ot(e) ? fa(e.size ?? "m") : void 0, I = j ? ce[j] : void 0, A = v || x ? -1 : f, z = k(
|
|
766
766
|
W.button,
|
|
767
|
-
W[
|
|
768
|
-
W[
|
|
767
|
+
W[o],
|
|
768
|
+
W[a],
|
|
769
769
|
W[i],
|
|
770
|
-
|
|
770
|
+
I,
|
|
771
771
|
{
|
|
772
|
-
[W.disabled]:
|
|
772
|
+
[W.disabled]: v,
|
|
773
773
|
[W.loading]: l === "button" && "loading" in e && e.loading,
|
|
774
774
|
[W.stretched]: b,
|
|
775
|
-
[W.spaceBetween]:
|
|
776
|
-
[W.withSubcaption]:
|
|
775
|
+
[W.spaceBetween]: M,
|
|
776
|
+
[W.withSubcaption]: h && o !== "s" && o !== "xs",
|
|
777
777
|
[W.iconOnly]: C,
|
|
778
778
|
[W.link]: l === "link",
|
|
779
779
|
[W.underline]: l === "link" && "showUnderline" in e && e.showUnderline
|
|
780
780
|
},
|
|
781
|
-
|
|
781
|
+
_
|
|
782
782
|
), U = {
|
|
783
783
|
isLoading: x,
|
|
784
|
-
iconRight:
|
|
784
|
+
iconRight: w,
|
|
785
785
|
iconLeft: L,
|
|
786
|
-
children:
|
|
787
|
-
postfix:
|
|
788
|
-
subcaption:
|
|
789
|
-
size:
|
|
786
|
+
children: p,
|
|
787
|
+
postfix: m,
|
|
788
|
+
subcaption: h,
|
|
789
|
+
size: o,
|
|
790
790
|
isAsButton: Ne(e)
|
|
791
791
|
};
|
|
792
|
-
if (
|
|
793
|
-
const { href: q, onClick: D, style: S, target:
|
|
794
|
-
let
|
|
792
|
+
if (Rr(e)) {
|
|
793
|
+
const { href: q, onClick: D, style: S, target: T, rel: P, "data-testid": F, ...H } = e, Q = $t(H), ie = T ?? (e.isExternal ? "_blank" : void 0);
|
|
794
|
+
let Y = P;
|
|
795
795
|
if (ie === "_blank") {
|
|
796
796
|
const ee = new Set((P ?? "").split(/\s+/).filter(Boolean));
|
|
797
|
-
ee.add("noopener").add("noreferrer"),
|
|
797
|
+
ee.add("noopener").add("noreferrer"), Y = Array.from(ee).join(" ");
|
|
798
798
|
}
|
|
799
799
|
const ue = (ee) => {
|
|
800
|
-
if (!
|
|
800
|
+
if (!d) {
|
|
801
801
|
ee.preventDefault();
|
|
802
802
|
return;
|
|
803
803
|
}
|
|
@@ -806,39 +806,39 @@ const ce = {
|
|
|
806
806
|
return /* @__PURE__ */ n.jsx(
|
|
807
807
|
"a",
|
|
808
808
|
{
|
|
809
|
-
ref:
|
|
809
|
+
ref: r,
|
|
810
810
|
className: z,
|
|
811
|
-
href:
|
|
811
|
+
href: d ? q : void 0,
|
|
812
812
|
tabIndex: A,
|
|
813
813
|
onClick: ue,
|
|
814
814
|
"data-testid": F,
|
|
815
|
-
"aria-disabled":
|
|
815
|
+
"aria-disabled": v || x,
|
|
816
816
|
style: S,
|
|
817
817
|
target: ie,
|
|
818
|
-
rel:
|
|
818
|
+
rel: Y,
|
|
819
819
|
...Q,
|
|
820
|
-
children: /* @__PURE__ */ n.jsx(
|
|
820
|
+
children: /* @__PURE__ */ n.jsx(Tt, { ...U })
|
|
821
821
|
}
|
|
822
822
|
);
|
|
823
823
|
}
|
|
824
|
-
if (
|
|
825
|
-
const { type: q = "button", onClick: D, style: S, "data-testid":
|
|
826
|
-
|
|
824
|
+
if (Nr(e)) {
|
|
825
|
+
const { type: q = "button", onClick: D, style: S, "data-testid": T, ...P } = e, F = $t(P), H = (Q) => {
|
|
826
|
+
d && D && D(Q);
|
|
827
827
|
};
|
|
828
828
|
return /* @__PURE__ */ n.jsx(
|
|
829
829
|
"button",
|
|
830
830
|
{
|
|
831
|
-
ref:
|
|
831
|
+
ref: r,
|
|
832
832
|
type: q,
|
|
833
833
|
className: z,
|
|
834
|
-
disabled:
|
|
834
|
+
disabled: v,
|
|
835
835
|
tabIndex: A,
|
|
836
|
-
onClick:
|
|
837
|
-
"data-testid":
|
|
838
|
-
"aria-disabled":
|
|
836
|
+
onClick: H,
|
|
837
|
+
"data-testid": T,
|
|
838
|
+
"aria-disabled": v || x,
|
|
839
839
|
style: S,
|
|
840
840
|
...F,
|
|
841
|
-
children: /* @__PURE__ */ n.jsx(
|
|
841
|
+
children: /* @__PURE__ */ n.jsx(Tt, { ...U })
|
|
842
842
|
}
|
|
843
843
|
);
|
|
844
844
|
}
|
|
@@ -850,48 +850,48 @@ var it = { exports: {} };
|
|
|
850
850
|
Licensed under the MIT License (MIT), see
|
|
851
851
|
http://jedwatson.github.io/classnames
|
|
852
852
|
*/
|
|
853
|
-
var
|
|
854
|
-
function
|
|
855
|
-
return
|
|
853
|
+
var Rt;
|
|
854
|
+
function ba() {
|
|
855
|
+
return Rt || (Rt = 1, function(e) {
|
|
856
856
|
(function() {
|
|
857
|
-
var
|
|
858
|
-
function
|
|
859
|
-
for (var
|
|
860
|
-
var
|
|
861
|
-
|
|
857
|
+
var r = {}.hasOwnProperty;
|
|
858
|
+
function a() {
|
|
859
|
+
for (var s = "", l = 0; l < arguments.length; l++) {
|
|
860
|
+
var c = arguments[l];
|
|
861
|
+
c && (s = i(s, o(c)));
|
|
862
862
|
}
|
|
863
|
-
return
|
|
863
|
+
return s;
|
|
864
864
|
}
|
|
865
|
-
function s
|
|
866
|
-
if (typeof
|
|
867
|
-
return
|
|
868
|
-
if (typeof
|
|
865
|
+
function o(s) {
|
|
866
|
+
if (typeof s == "string" || typeof s == "number")
|
|
867
|
+
return s;
|
|
868
|
+
if (typeof s != "object")
|
|
869
869
|
return "";
|
|
870
|
-
if (Array.isArray(
|
|
871
|
-
return
|
|
872
|
-
if (
|
|
873
|
-
return
|
|
870
|
+
if (Array.isArray(s))
|
|
871
|
+
return a.apply(null, s);
|
|
872
|
+
if (s.toString !== Object.prototype.toString && !s.toString.toString().includes("[native code]"))
|
|
873
|
+
return s.toString();
|
|
874
874
|
var l = "";
|
|
875
|
-
for (var
|
|
876
|
-
|
|
875
|
+
for (var c in s)
|
|
876
|
+
r.call(s, c) && s[c] && (l = i(l, c));
|
|
877
877
|
return l;
|
|
878
878
|
}
|
|
879
|
-
function i(
|
|
880
|
-
return l ?
|
|
879
|
+
function i(s, l) {
|
|
880
|
+
return l ? s ? s + " " + l : s + l : s;
|
|
881
881
|
}
|
|
882
|
-
e.exports ? (
|
|
882
|
+
e.exports ? (a.default = a, e.exports = a) : window.classNames = a;
|
|
883
883
|
})();
|
|
884
884
|
}(it)), it.exports;
|
|
885
885
|
}
|
|
886
|
-
var
|
|
887
|
-
const Le = /* @__PURE__ */ Mr(
|
|
888
|
-
avatar:
|
|
889
|
-
clickable:
|
|
890
|
-
icon:
|
|
891
|
-
disabled:
|
|
892
|
-
loading:
|
|
893
|
-
image:
|
|
894
|
-
name:
|
|
886
|
+
var ga = ba();
|
|
887
|
+
const Le = /* @__PURE__ */ Mr(ga), ma = "_avatar_zfczn_17", ya = "_clickable_zfczn_40", va = "_icon_zfczn_57", xa = "_disabled_zfczn_62", wa = "_loading_zfczn_67", Ca = "_image_zfczn_73", Sa = "_name_zfczn_73", ge = {
|
|
888
|
+
avatar: ma,
|
|
889
|
+
clickable: ya,
|
|
890
|
+
icon: va,
|
|
891
|
+
disabled: xa,
|
|
892
|
+
loading: wa,
|
|
893
|
+
image: Ca,
|
|
894
|
+
name: Sa,
|
|
895
895
|
"variant-filled": "_variant-filled_zfczn_125",
|
|
896
896
|
"color-brand": "_color-brand_zfczn_130",
|
|
897
897
|
"color-red": "_color-red_zfczn_134",
|
|
@@ -906,19 +906,19 @@ const Le = /* @__PURE__ */ Mr(ma), ya = "_avatar_zfczn_17", va = "_clickable_zfc
|
|
|
906
906
|
"variant-light": "_variant-light_zfczn_172",
|
|
907
907
|
"variant-outline": "_variant-outline_zfczn_244"
|
|
908
908
|
}, Nt = 99;
|
|
909
|
-
function
|
|
909
|
+
function La(e) {
|
|
910
910
|
return e < Nt ? `+${e}` : `${Nt}+`;
|
|
911
911
|
}
|
|
912
|
-
function
|
|
913
|
-
const
|
|
914
|
-
let
|
|
915
|
-
for (let
|
|
916
|
-
const i =
|
|
917
|
-
|
|
912
|
+
function Je(e) {
|
|
913
|
+
const r = typeof e == "string" ? e : JSON.stringify(e);
|
|
914
|
+
let a = 5381;
|
|
915
|
+
for (let o = 0; o < r.length; o++) {
|
|
916
|
+
const i = r.charCodeAt(o);
|
|
917
|
+
a = (a << 5) + a + i;
|
|
918
918
|
}
|
|
919
|
-
return
|
|
919
|
+
return a >>> 0;
|
|
920
920
|
}
|
|
921
|
-
const
|
|
921
|
+
const Ea = [
|
|
922
922
|
"red",
|
|
923
923
|
"orange",
|
|
924
924
|
"yellow",
|
|
@@ -927,16 +927,16 @@ const ja = [
|
|
|
927
927
|
"lightblue",
|
|
928
928
|
"purple"
|
|
929
929
|
];
|
|
930
|
-
function
|
|
930
|
+
function ja(e, r = Ea) {
|
|
931
931
|
if (!e) return "gray";
|
|
932
|
-
const
|
|
933
|
-
return
|
|
932
|
+
const a = Je(e), o = Math.abs(a) % r.length;
|
|
933
|
+
return r[o];
|
|
934
934
|
}
|
|
935
935
|
const At = 2;
|
|
936
936
|
function ka(e) {
|
|
937
937
|
if (!e) return "";
|
|
938
|
-
const
|
|
939
|
-
return
|
|
938
|
+
const r = e.trim().split(/\s+/);
|
|
939
|
+
return r.length === 1 ? e.slice(0, At).toUpperCase() : r.map((a) => a[0]).slice(0, At).join("").toUpperCase();
|
|
940
940
|
}
|
|
941
941
|
const Ma = {
|
|
942
942
|
24: 8,
|
|
@@ -949,10 +949,10 @@ const Ma = {
|
|
|
949
949
|
96: 24,
|
|
950
950
|
208: 8
|
|
951
951
|
};
|
|
952
|
-
function
|
|
953
|
-
return
|
|
952
|
+
function Ia(e, r) {
|
|
953
|
+
return r === "circle" ? e / 2 : Ma[e] || 12;
|
|
954
954
|
}
|
|
955
|
-
const
|
|
955
|
+
const $a = {
|
|
956
956
|
24: "typography-subtitle-4-semibold",
|
|
957
957
|
32: "typography-subtitle-2-semibold",
|
|
958
958
|
40: "typography-subtitle-1-semibold",
|
|
@@ -963,61 +963,61 @@ const Ia = {
|
|
|
963
963
|
96: "typography-title-3-semibold",
|
|
964
964
|
208: "typography-title-1-semibold"
|
|
965
965
|
};
|
|
966
|
-
function
|
|
967
|
-
return
|
|
966
|
+
function Ta(e) {
|
|
967
|
+
return $a[e] || "typography-subtitle-1-semibold";
|
|
968
968
|
}
|
|
969
|
-
const Ta = "data:image/svg+xml,%3csvg%20opacity='0.9'%20preserveAspectRatio='xMinYMin%20meet'%20viewBox='0%200%20208%20208'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cdefs%3e%3cfilter%20id='shadowW'%20filterUnits='userSpaceOnUse'%3e%3cfeDropShadow%20dx='-2'%20dy='-1'%20stdDeviation='5'%20flood-color='rgba(0,0,0,0.5)'/%3e%3c/filter%3e%3c/defs%3e%3cg%20filter='url(%23shadowW)'%3e%3cpath%20d='M23.9835%20174.59L113.41%20157.735L225.224%20191.671C225.224%20191.671%20250.259%20479.463%20243.525%20478.31C236.655%20477.167%20-7.79434%20482.039%20-8.17876%20476.943C-8.56308%20471.849%20-34.4445%20341.701%20-34.4445%20341.701L23.9835%20174.59Z'%20fill='darkgrey'/%3e%3cpath%20d='M-54.5558%20212.781C-85.688%20282.842%20-94.2122%20303.839%20-94.2122%20303.839L-213.504%20213.002C-214.953%20197.465%20-218.637%20181.68%20-225.636%20167.806C-234.412%20150.606%20-246.154%20149.138%20-259.595%20136.166C-267.368%20128.583%20-275.073%20140.242%20-267.3%20147.825L-259.338%20156.087C-258.869%20160.482%20-255.518%20171.861%20-254.634%20176.226C-267.475%20165.702%20-284.704%20150.246%20-300.665%20144.25C-305.079%20142.644%20-308.958%20144.46%20-311.08%20147.528C-314.628%20148.211%20-317.292%20151.458%20-317.858%20154.963C-321.103%20157.839%20-322.625%20163.354%20-319.254%20167.67C-321.407%20170.323%20-322.376%20173.998%20-320.433%20177.728C-320.274%20177.993%20-320.127%20178.12%20-320.106%20178.395C-320.997%20179.432%20-319.498%20182.78%20-320.337%20184.506C-324.035%20192.401%20-309.357%20221.757%20-285.221%20235.167C-277.291%20250.355%20-262.477%20259.485%20-261.354%20259.677C-234.512%20290.608%20-141.301%20400.999%20-97.2451%20436.169C-47.2868%20476.158%20-12.9855%20418.735%2010.6424%20317.115C34.2598%20215.358%2037.6457%20181.315%2037.6457%20181.315L116.374%20158.482C14.4423%20160.079%20-23.2964%20142.572%20-54.5558%20212.781Z'%20fill='darkgrey'/%3e%3cpath%20d='M116.781%20158.313L114.885%20158.871L61.4974%20174.391L38.0516%20181.145C38.0516%20181.145%2034.6758%20215.325%2011.0481%20316.945C9.47097%20323.572%207.88344%20330.061%206.27525%20336.275C-22.5942%20315.191%20-52.217%20295.131%20-82.0946%20275.368C-75.9632%20261.197%20-67.1116%20240.867%20-54.4359%20212.493C-30.4015%20158.477%20-2.57835%20156.516%2055.793%20157.512C72.5674%20157.77%2091.7239%20158.403%20114.133%20158.096C114.98%20158.309%20115.807%20158.247%20116.781%20158.313Z'%20fill='darkgrey'/%3e%3cpath%20d='M113.269%20157.745C175.26%20159.023%20252.771%20143.897%20266.382%20199.504C279.867%20255.26%20288.576%20280.774%20295.899%20320.932C303.221%20361.091%20322.043%20408.689%20271.897%20417.595C221.75%20426.502%20106.238%20444.495%20106.238%20444.495L78.8767%20384.662C78.8767%20384.662%20170.648%20343.813%20200.242%20332.303L185.17%20211.448L113.269%20157.745Z'%20fill='darkgrey'/%3e%3cpath%20d='M292.122%20302.108C260.506%20305.187%20228.942%20308.953%20198.219%20316.533L185.178%20211.585L140.855%20178.374L114.874%20158.871L114.144%20158.372L113.266%20157.746C127.138%20158.084%20141.774%20157.534%20156.283%20157.131C206.726%20155.818%20255.78%20156.271%20266.252%20199.654C277.643%20246.012%20285.665%20271.578%20292.122%20302.108Z'%20fill='darkgrey'/%3e%3cpath%20d='M108.001%20172.269C119.623%20168.485%20130.939%20164.308%20142.395%20160.12L112.224%20101.608L68.8441%20124.959C69.7222%20125.585%2079.0944%20154.372%2086.547%20177.904C93.7406%20175.977%20100.965%20174.463%20108.001%20172.269Z'%20fill='white'/%3e%3cpath%20d='M99.3655%20112.96C99.0934%20111.18%2098.8213%20109.401%2098.2722%20107.642L68.9864%20125.083C69.5682%20125.455%2073.8492%20138.148%2078.7406%20153.426C89.4856%20141.676%2097.5757%20127.773%2099.3655%20112.96Z'%20fill='darkgrey'/%3e%3cpath%20d='M144.524%2069.1209C143.075%2053.5829%20118.601%2039.3668%2099.9856%2038.5556C91.9262%2038.1943%2089.5107%2031.8684%2086.0605%2037.5291C77.5782%2051.7392%2049.6837%2094.9694%2052.2654%20110.837C56.0862%20133.951%2084.5691%20137.063%20102.228%20127.008C120.022%20116.942%20146.6%2091.1195%20144.524%2069.1209Z'%20fill='white'/%3e%3cpath%20d='M145.753%2072.4915C147.93%2068.3116%20146.317%2063.4483%20142.804%2060.944C142.656%2060.8166%20142.656%2060.8166%20142.507%2060.6894C143.028%2052.8957%20136.915%2047.1257%20129.979%2046.9567C129.007%2045.0914%20127.379%2043.691%20125.24%2042.883C124.903%2042.0778%20124.575%2041.4101%20123.982%2040.9009C122.651%2039.7551%20121.095%2039.3187%20119.441%2039.4435C118.081%2036.0843%20115.925%2033.2005%20112.495%2031.7977C110.348%2030.8519%20108.027%2031.304%20106.311%2032.4027C102.006%2028.5734%2096.789%2025.5051%2091.8112%2025.6038C89.736%2025.6218%2085.678%2026.8973%2084.2724%2032.1268C82.1968%2032.1449%2080.3522%2033.3917%2079.5546%2035.6676C78.427%2039.0759%2080.339%2042.3935%2083.1109%2044.2613C84.719%2045.3863%2086.9841%2046.0462%2089.0391%2045.7526C95.9026%2052.2969%20114.028%2063.1149%20118.148%2062.6657C115.532%2070.202%20113.218%2087.2698%20122.007%2088.1299C124.21%2095.3028%20116.99%20107.894%20121.368%20112.688C129.639%20104.863%20137.246%2095.5655%20141.359%2085.8391C141.496%2085.8288%20141.772%2085.808%20142.047%2085.7872C148.14%2083.9429%20149.527%2076.6377%20145.753%2072.4915Z'%20fill='darkgrey'/%3e%3cpath%20d='M140.151%20104.76C141.594%2096.3432%20132.67%2086.3542%20121.049%2088.3387C116.251%2096.3166%20111.305%20104.167%20106.21%20111.89C109.317%20116.364%20118.141%20121.376%20125.535%20120.264C133.872%20118.804%20138.613%20113.738%20140.151%20104.76Z'%20fill='white'/%3e%3cpath%20d='M156.755%20156.883C153.217%20165.043%20147.805%20172.237%20141.188%20178.136C133.925%20184.639%20125.011%20189.465%20114.809%20191.896C95.2214%20196.558%2072.2825%20189.842%2061.6836%20174.164C58.5559%20169.414%2056.4778%20163.894%2056%20157.561C72.7744%20157.818%2091.9311%20158.451%20114.34%20158.144L113.462%20157.519C127.463%20157.709%20142.098%20157.159%20156.755%20156.883Z'%20fill='white'/%3e%3c/g%3e%3c/svg%3e", Na = "data:image/svg+xml,%3csvg%20viewBox='0%200%20208%20208'%20opacity='0.9'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20filter='url(%23shadow)'%3e%3cpath%20filter='url(%23shadow)'%20d='M127.173%2079.8894C127.189%2079.1933%20128.026%2079.1201%20128.436%2079.4316C128.754%2079.6091%20128.895%2080.1021%20128.809%2080.5518C129.241%2083.1982%20129.581%2085.7106%20130.013%2088.357C136.835%2079.7558%20149.235%2076.9989%20158.979%2083.174C168.086%2088.9941%20171.001%20111.745%20135.501%20120.502C131.5%20123.502%20117%20125.002%20111.753%20103.279C111.682%2093.2427%20118.526%2084.529%20127.173%2079.8894Z'%20fill='darkgrey'/%3e%3cpath%20d='M28.0441%20167.788C21.826%20195.052%2018.7311%20223.361%2014.1881%20250.885C9.42226%20279.982%204.68042%20308.967%20-0.0853729%20338.064L-1.00047%20342.848C14.5039%20346.419%2030.8401%20350.407%2046.3671%20353.868C90.9428%20363.918%20134.837%20376.598%20179.293%20387.201C200.345%20337.142%20219.778%20286.027%20235.82%20234.041C243.806%20208.213%20244.758%20181.282%20225.443%20160.043C216.099%20149.841%20204.347%20143.858%20191.629%20140.212C188.924%20139.377%20186.108%20138.517%20183.355%20137.905C179.635%20136.959%20175.781%20136.1%20171.989%20135.487C167.45%20134.592%20162.753%20133.893%20158.277%20133.243L127.871%20128.671L116.251%20126.895C115.457%20126.833%20114.686%20126.662%20113.915%20126.49C102.87%20124.724%2091.7381%20122.824%2080.6188%20123.013C69.1682%20123.13%2056.9012%20125.964%2047.8363%20133.224C36.9821%20141.825%2031.1109%20154.087%2028.0441%20167.788Z'%20fill='darkgrey'/%3e%3cpath%20d='M103.74%20123.732L95.6984%20197.532C95.6984%20197.532%20137.13%20157.315%20158.742%20133.268C155.051%20132.316%20151.227%20131.449%20147.465%20130.831C142.962%20129.929%20138.302%20129.224%20133.861%20128.569L103.74%20123.732Z'%20fill='white'/%3e%3cpath%20d='M97.8143%20115.298C99.0227%20116.625%20108.229%20179.332%20108.229%20179.332L148.012%20142.157L129%20100L97.8143%20115.298Z'%20fill='white'/%3e%3cpath%20d='M101.71%20148.534C100.068%20137.868%2098.402%20127.706%2098.0001%20127.274L112.673%20122C113.831%20131.449%20108.467%20141.173%20101.71%20148.534Z'%20fill='grey'/%3e%3cpath%20d='M121.545%2040.7383C111.161%2030.599%2085.3871%2035.4814%2071.93%2046.2862C66.0912%2051.0172%2060.5415%2047.9025%2061.6427%2054.0842C64.3767%2069.3597%2074.0239%20120.283%2082.7631%20126.794C100.374%20139.728%20121.191%20125.699%20127.329%20107.658C133.554%2089.7517%20136.293%2055.2372%20121.545%2040.7383Z'%20fill='white'/%3e%3cpath%20d='M56.0176%2041.9837C61.9834%2036.7831%2074.9427%2037.4243%2081.3074%2039.639C95.1733%2033.9235%20112.672%2032.6801%20120.968%2040.1438C131.22%2049.4771%20133.446%2067.5345%20132.042%2083.8281C125.848%2083.0025%20122.779%2078.6471%20116.718%2075.0286C97.7466%2073.2611%2084.9353%2061.0313%2082.042%2054.2301C78.3492%2058.2067%2063.3398%2059.3993%2058.12%2055.1646C51.1278%2048.7596%2054.1283%2043.6248%2056.0176%2041.9837Z'%20fill='darkgrey'/%3e%3cpath%20d='M142.838%2074.8316C138.561%2067.841%20123.674%2066.785%20116.5%2075.5006C118.078%2084.3219%20121.503%2092.5524%20122.726%20101.41C127.77%20102.657%20137.388%20100.869%20141.908%2095.386C147.168%2089.1414%20147.462%2082.3637%20142.838%2074.8316Z'%20fill='white'/%3e%3c/g%3e%3cdefs%3e%3cfilter%20id='shadow'%3e%3cfeDropShadow%20dx='0'%20dy='0'%20stdDeviation='3'%20flood-color='rgba(0,0,0,0.3)'/%3e%3c/filter%3e%3c/defs%3e%3c/svg%3e", Aa = "data:image/svg+xml,%3csvg%20opacity='0.9'%20viewBox='0%200%20208%20208'%20fill='currentColor'%20xmlns='http://www.w3.org/2000/svg'%3e%3cdefs%3e%3cmask%20id='hole'%3e%3crect%20width='100%25'%20height='100%25'%20fill='white'/%3e%3ccircle%20cx='121.333'%20cy='121.333'%20r='52'%20fill='black'/%3e%3c/mask%3e%3cfilter%20id='shadow'%3e%3cfeDropShadow%20dx='-2'%20dy='-1'%20stdDeviation='10'%20flood-color='rgba(0,0,0,0.2)'/%3e%3c/filter%3e%3c/defs%3e%3cg%20filter='url(%23shadow)'%3e%3ccircle%20cx='104'%20cy='225.333'%20r='95.3333'%20fill='darkgray'/%3e%3ccircle%20cx='104'%20cy='225.333'%20r='95.3333'%20fill='white'%20mask='url(%23hole)'/%3e%3ccircle%20cx='104'%20cy='86.6666'%20r='52'%20fill='white'/%3e%3c/g%3e%3c/svg%3e", za = "data:image/svg+xml,%3csvg%20opacity='0.9'%20viewBox='0%200%20208%20208'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20filter='url(%23shadow)'%3e%3cpath%20d='M168%20208V118.053C168%20113.824%20165.34%20110.052%20161.356%20108.633L134%2098.885V208H168Z'%20fill='darkgrey'/%3e%3cpath%20d='M40%2072.3726C40%2070.7381%2040.9944%2069.268%2042.5116%2068.6598L111.951%2040.8215C113.226%2040.3102%20114.675%2040.4893%20115.787%2041.2958L129.87%2051.5056C132.464%2053.3866%20134%2056.397%20134%2059.6017V208H40V72.3726Z'%20fill='white'/%3e%3cpath%20d='M114%2047.5001L126.325%2056.3036C127.376%2057.0544%20128%2058.2667%20128%2059.5585V208H114V47.5001Z'%20fill='darkgrey'/%3e%3c/g%3e%3cdefs%3e%3cfilter%20id='shadow'%3e%3cfeDropShadow%20dx='-2'%20dy='-1'%20stdDeviation='7'%20flood-color='rgba(0,0,0,0.2)'/%3e%3c/filter%3e%3c/defs%3e%3c/svg%3e", Da = {
|
|
970
|
-
male:
|
|
969
|
+
const Ra = "data:image/svg+xml,%3csvg%20opacity='0.9'%20preserveAspectRatio='xMinYMin%20meet'%20viewBox='0%200%20208%20208'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cdefs%3e%3cfilter%20id='shadowW'%20filterUnits='userSpaceOnUse'%3e%3cfeDropShadow%20dx='-2'%20dy='-1'%20stdDeviation='5'%20flood-color='rgba(0,0,0,0.5)'/%3e%3c/filter%3e%3c/defs%3e%3cg%20filter='url(%23shadowW)'%3e%3cpath%20d='M23.9835%20174.59L113.41%20157.735L225.224%20191.671C225.224%20191.671%20250.259%20479.463%20243.525%20478.31C236.655%20477.167%20-7.79434%20482.039%20-8.17876%20476.943C-8.56308%20471.849%20-34.4445%20341.701%20-34.4445%20341.701L23.9835%20174.59Z'%20fill='darkgrey'/%3e%3cpath%20d='M-54.5558%20212.781C-85.688%20282.842%20-94.2122%20303.839%20-94.2122%20303.839L-213.504%20213.002C-214.953%20197.465%20-218.637%20181.68%20-225.636%20167.806C-234.412%20150.606%20-246.154%20149.138%20-259.595%20136.166C-267.368%20128.583%20-275.073%20140.242%20-267.3%20147.825L-259.338%20156.087C-258.869%20160.482%20-255.518%20171.861%20-254.634%20176.226C-267.475%20165.702%20-284.704%20150.246%20-300.665%20144.25C-305.079%20142.644%20-308.958%20144.46%20-311.08%20147.528C-314.628%20148.211%20-317.292%20151.458%20-317.858%20154.963C-321.103%20157.839%20-322.625%20163.354%20-319.254%20167.67C-321.407%20170.323%20-322.376%20173.998%20-320.433%20177.728C-320.274%20177.993%20-320.127%20178.12%20-320.106%20178.395C-320.997%20179.432%20-319.498%20182.78%20-320.337%20184.506C-324.035%20192.401%20-309.357%20221.757%20-285.221%20235.167C-277.291%20250.355%20-262.477%20259.485%20-261.354%20259.677C-234.512%20290.608%20-141.301%20400.999%20-97.2451%20436.169C-47.2868%20476.158%20-12.9855%20418.735%2010.6424%20317.115C34.2598%20215.358%2037.6457%20181.315%2037.6457%20181.315L116.374%20158.482C14.4423%20160.079%20-23.2964%20142.572%20-54.5558%20212.781Z'%20fill='darkgrey'/%3e%3cpath%20d='M116.781%20158.313L114.885%20158.871L61.4974%20174.391L38.0516%20181.145C38.0516%20181.145%2034.6758%20215.325%2011.0481%20316.945C9.47097%20323.572%207.88344%20330.061%206.27525%20336.275C-22.5942%20315.191%20-52.217%20295.131%20-82.0946%20275.368C-75.9632%20261.197%20-67.1116%20240.867%20-54.4359%20212.493C-30.4015%20158.477%20-2.57835%20156.516%2055.793%20157.512C72.5674%20157.77%2091.7239%20158.403%20114.133%20158.096C114.98%20158.309%20115.807%20158.247%20116.781%20158.313Z'%20fill='darkgrey'/%3e%3cpath%20d='M113.269%20157.745C175.26%20159.023%20252.771%20143.897%20266.382%20199.504C279.867%20255.26%20288.576%20280.774%20295.899%20320.932C303.221%20361.091%20322.043%20408.689%20271.897%20417.595C221.75%20426.502%20106.238%20444.495%20106.238%20444.495L78.8767%20384.662C78.8767%20384.662%20170.648%20343.813%20200.242%20332.303L185.17%20211.448L113.269%20157.745Z'%20fill='darkgrey'/%3e%3cpath%20d='M292.122%20302.108C260.506%20305.187%20228.942%20308.953%20198.219%20316.533L185.178%20211.585L140.855%20178.374L114.874%20158.871L114.144%20158.372L113.266%20157.746C127.138%20158.084%20141.774%20157.534%20156.283%20157.131C206.726%20155.818%20255.78%20156.271%20266.252%20199.654C277.643%20246.012%20285.665%20271.578%20292.122%20302.108Z'%20fill='darkgrey'/%3e%3cpath%20d='M108.001%20172.269C119.623%20168.485%20130.939%20164.308%20142.395%20160.12L112.224%20101.608L68.8441%20124.959C69.7222%20125.585%2079.0944%20154.372%2086.547%20177.904C93.7406%20175.977%20100.965%20174.463%20108.001%20172.269Z'%20fill='white'/%3e%3cpath%20d='M99.3655%20112.96C99.0934%20111.18%2098.8213%20109.401%2098.2722%20107.642L68.9864%20125.083C69.5682%20125.455%2073.8492%20138.148%2078.7406%20153.426C89.4856%20141.676%2097.5757%20127.773%2099.3655%20112.96Z'%20fill='darkgrey'/%3e%3cpath%20d='M144.524%2069.1209C143.075%2053.5829%20118.601%2039.3668%2099.9856%2038.5556C91.9262%2038.1943%2089.5107%2031.8684%2086.0605%2037.5291C77.5782%2051.7392%2049.6837%2094.9694%2052.2654%20110.837C56.0862%20133.951%2084.5691%20137.063%20102.228%20127.008C120.022%20116.942%20146.6%2091.1195%20144.524%2069.1209Z'%20fill='white'/%3e%3cpath%20d='M145.753%2072.4915C147.93%2068.3116%20146.317%2063.4483%20142.804%2060.944C142.656%2060.8166%20142.656%2060.8166%20142.507%2060.6894C143.028%2052.8957%20136.915%2047.1257%20129.979%2046.9567C129.007%2045.0914%20127.379%2043.691%20125.24%2042.883C124.903%2042.0778%20124.575%2041.4101%20123.982%2040.9009C122.651%2039.7551%20121.095%2039.3187%20119.441%2039.4435C118.081%2036.0843%20115.925%2033.2005%20112.495%2031.7977C110.348%2030.8519%20108.027%2031.304%20106.311%2032.4027C102.006%2028.5734%2096.789%2025.5051%2091.8112%2025.6038C89.736%2025.6218%2085.678%2026.8973%2084.2724%2032.1268C82.1968%2032.1449%2080.3522%2033.3917%2079.5546%2035.6676C78.427%2039.0759%2080.339%2042.3935%2083.1109%2044.2613C84.719%2045.3863%2086.9841%2046.0462%2089.0391%2045.7526C95.9026%2052.2969%20114.028%2063.1149%20118.148%2062.6657C115.532%2070.202%20113.218%2087.2698%20122.007%2088.1299C124.21%2095.3028%20116.99%20107.894%20121.368%20112.688C129.639%20104.863%20137.246%2095.5655%20141.359%2085.8391C141.496%2085.8288%20141.772%2085.808%20142.047%2085.7872C148.14%2083.9429%20149.527%2076.6377%20145.753%2072.4915Z'%20fill='darkgrey'/%3e%3cpath%20d='M140.151%20104.76C141.594%2096.3432%20132.67%2086.3542%20121.049%2088.3387C116.251%2096.3166%20111.305%20104.167%20106.21%20111.89C109.317%20116.364%20118.141%20121.376%20125.535%20120.264C133.872%20118.804%20138.613%20113.738%20140.151%20104.76Z'%20fill='white'/%3e%3cpath%20d='M156.755%20156.883C153.217%20165.043%20147.805%20172.237%20141.188%20178.136C133.925%20184.639%20125.011%20189.465%20114.809%20191.896C95.2214%20196.558%2072.2825%20189.842%2061.6836%20174.164C58.5559%20169.414%2056.4778%20163.894%2056%20157.561C72.7744%20157.818%2091.9311%20158.451%20114.34%20158.144L113.462%20157.519C127.463%20157.709%20142.098%20157.159%20156.755%20156.883Z'%20fill='white'/%3e%3c/g%3e%3c/svg%3e", Na = "data:image/svg+xml,%3csvg%20viewBox='0%200%20208%20208'%20opacity='0.9'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20filter='url(%23shadow)'%3e%3cpath%20filter='url(%23shadow)'%20d='M127.173%2079.8894C127.189%2079.1933%20128.026%2079.1201%20128.436%2079.4316C128.754%2079.6091%20128.895%2080.1021%20128.809%2080.5518C129.241%2083.1982%20129.581%2085.7106%20130.013%2088.357C136.835%2079.7558%20149.235%2076.9989%20158.979%2083.174C168.086%2088.9941%20171.001%20111.745%20135.501%20120.502C131.5%20123.502%20117%20125.002%20111.753%20103.279C111.682%2093.2427%20118.526%2084.529%20127.173%2079.8894Z'%20fill='darkgrey'/%3e%3cpath%20d='M28.0441%20167.788C21.826%20195.052%2018.7311%20223.361%2014.1881%20250.885C9.42226%20279.982%204.68042%20308.967%20-0.0853729%20338.064L-1.00047%20342.848C14.5039%20346.419%2030.8401%20350.407%2046.3671%20353.868C90.9428%20363.918%20134.837%20376.598%20179.293%20387.201C200.345%20337.142%20219.778%20286.027%20235.82%20234.041C243.806%20208.213%20244.758%20181.282%20225.443%20160.043C216.099%20149.841%20204.347%20143.858%20191.629%20140.212C188.924%20139.377%20186.108%20138.517%20183.355%20137.905C179.635%20136.959%20175.781%20136.1%20171.989%20135.487C167.45%20134.592%20162.753%20133.893%20158.277%20133.243L127.871%20128.671L116.251%20126.895C115.457%20126.833%20114.686%20126.662%20113.915%20126.49C102.87%20124.724%2091.7381%20122.824%2080.6188%20123.013C69.1682%20123.13%2056.9012%20125.964%2047.8363%20133.224C36.9821%20141.825%2031.1109%20154.087%2028.0441%20167.788Z'%20fill='darkgrey'/%3e%3cpath%20d='M103.74%20123.732L95.6984%20197.532C95.6984%20197.532%20137.13%20157.315%20158.742%20133.268C155.051%20132.316%20151.227%20131.449%20147.465%20130.831C142.962%20129.929%20138.302%20129.224%20133.861%20128.569L103.74%20123.732Z'%20fill='white'/%3e%3cpath%20d='M97.8143%20115.298C99.0227%20116.625%20108.229%20179.332%20108.229%20179.332L148.012%20142.157L129%20100L97.8143%20115.298Z'%20fill='white'/%3e%3cpath%20d='M101.71%20148.534C100.068%20137.868%2098.402%20127.706%2098.0001%20127.274L112.673%20122C113.831%20131.449%20108.467%20141.173%20101.71%20148.534Z'%20fill='grey'/%3e%3cpath%20d='M121.545%2040.7383C111.161%2030.599%2085.3871%2035.4814%2071.93%2046.2862C66.0912%2051.0172%2060.5415%2047.9025%2061.6427%2054.0842C64.3767%2069.3597%2074.0239%20120.283%2082.7631%20126.794C100.374%20139.728%20121.191%20125.699%20127.329%20107.658C133.554%2089.7517%20136.293%2055.2372%20121.545%2040.7383Z'%20fill='white'/%3e%3cpath%20d='M56.0176%2041.9837C61.9834%2036.7831%2074.9427%2037.4243%2081.3074%2039.639C95.1733%2033.9235%20112.672%2032.6801%20120.968%2040.1438C131.22%2049.4771%20133.446%2067.5345%20132.042%2083.8281C125.848%2083.0025%20122.779%2078.6471%20116.718%2075.0286C97.7466%2073.2611%2084.9353%2061.0313%2082.042%2054.2301C78.3492%2058.2067%2063.3398%2059.3993%2058.12%2055.1646C51.1278%2048.7596%2054.1283%2043.6248%2056.0176%2041.9837Z'%20fill='darkgrey'/%3e%3cpath%20d='M142.838%2074.8316C138.561%2067.841%20123.674%2066.785%20116.5%2075.5006C118.078%2084.3219%20121.503%2092.5524%20122.726%20101.41C127.77%20102.657%20137.388%20100.869%20141.908%2095.386C147.168%2089.1414%20147.462%2082.3637%20142.838%2074.8316Z'%20fill='white'/%3e%3c/g%3e%3cdefs%3e%3cfilter%20id='shadow'%3e%3cfeDropShadow%20dx='0'%20dy='0'%20stdDeviation='3'%20flood-color='rgba(0,0,0,0.3)'/%3e%3c/filter%3e%3c/defs%3e%3c/svg%3e", Aa = "data:image/svg+xml,%3csvg%20opacity='0.9'%20viewBox='0%200%20208%20208'%20fill='currentColor'%20xmlns='http://www.w3.org/2000/svg'%3e%3cdefs%3e%3cmask%20id='hole'%3e%3crect%20width='100%25'%20height='100%25'%20fill='white'/%3e%3ccircle%20cx='121.333'%20cy='121.333'%20r='52'%20fill='black'/%3e%3c/mask%3e%3cfilter%20id='shadow'%3e%3cfeDropShadow%20dx='-2'%20dy='-1'%20stdDeviation='10'%20flood-color='rgba(0,0,0,0.2)'/%3e%3c/filter%3e%3c/defs%3e%3cg%20filter='url(%23shadow)'%3e%3ccircle%20cx='104'%20cy='225.333'%20r='95.3333'%20fill='darkgray'/%3e%3ccircle%20cx='104'%20cy='225.333'%20r='95.3333'%20fill='white'%20mask='url(%23hole)'/%3e%3ccircle%20cx='104'%20cy='86.6666'%20r='52'%20fill='white'/%3e%3c/g%3e%3c/svg%3e", za = "data:image/svg+xml,%3csvg%20opacity='0.9'%20viewBox='0%200%20208%20208'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20filter='url(%23shadow)'%3e%3cpath%20d='M168%20208V118.053C168%20113.824%20165.34%20110.052%20161.356%20108.633L134%2098.885V208H168Z'%20fill='darkgrey'/%3e%3cpath%20d='M40%2072.3726C40%2070.7381%2040.9944%2069.268%2042.5116%2068.6598L111.951%2040.8215C113.226%2040.3102%20114.675%2040.4893%20115.787%2041.2958L129.87%2051.5056C132.464%2053.3866%20134%2056.397%20134%2059.6017V208H40V72.3726Z'%20fill='white'/%3e%3cpath%20d='M114%2047.5001L126.325%2056.3036C127.376%2057.0544%20128%2058.2667%20128%2059.5585V208H114V47.5001Z'%20fill='darkgrey'/%3e%3c/g%3e%3cdefs%3e%3cfilter%20id='shadow'%3e%3cfeDropShadow%20dx='-2'%20dy='-1'%20stdDeviation='7'%20flood-color='rgba(0,0,0,0.2)'/%3e%3c/filter%3e%3c/defs%3e%3c/svg%3e", Da = {
|
|
970
|
+
male: Ra,
|
|
971
971
|
female: Na,
|
|
972
972
|
org: za,
|
|
973
973
|
neutral: Aa
|
|
974
|
-
},
|
|
974
|
+
}, Ze = K((e, r) => {
|
|
975
975
|
const {
|
|
976
|
-
style:
|
|
977
|
-
size:
|
|
976
|
+
style: a,
|
|
977
|
+
size: o = 40,
|
|
978
978
|
isLoading: i = !1,
|
|
979
|
-
isDisabled:
|
|
979
|
+
isDisabled: s = !1,
|
|
980
980
|
shape: l = "circle",
|
|
981
|
-
variant:
|
|
982
|
-
placeholderType:
|
|
983
|
-
name:
|
|
984
|
-
imgSrc:
|
|
985
|
-
imgAlt:
|
|
986
|
-
icon:
|
|
981
|
+
variant: c = "filled",
|
|
982
|
+
placeholderType: _ = "neutral",
|
|
983
|
+
name: p,
|
|
984
|
+
imgSrc: f,
|
|
985
|
+
imgAlt: h,
|
|
986
|
+
icon: m,
|
|
987
987
|
imgProps: b,
|
|
988
|
-
colorScheme:
|
|
988
|
+
colorScheme: y,
|
|
989
989
|
className: L,
|
|
990
990
|
"data-testid": x,
|
|
991
|
-
...
|
|
992
|
-
} = e, { onClick:
|
|
991
|
+
...v
|
|
992
|
+
} = e, { onClick: d, onPointerDown: w } = v, M = !s && !i && (!!d || !!w), [j, I] = de(!1);
|
|
993
993
|
oe(() => {
|
|
994
|
-
|
|
995
|
-
}, [
|
|
996
|
-
const A =
|
|
994
|
+
f && I(!1);
|
|
995
|
+
}, [f]);
|
|
996
|
+
const A = f && !j ? "image" : m ? "icon" : p ? "name" : "placeholder", z = y || A === "name" && ja(p) || "gray", U = Ta(o), q = Ia(o, l), D = k(
|
|
997
997
|
L,
|
|
998
998
|
ge.avatar,
|
|
999
|
-
ge[`variant-${
|
|
999
|
+
ge[`variant-${c}`],
|
|
1000
1000
|
ge[`color-${z}`],
|
|
1001
1001
|
ce[U],
|
|
1002
1002
|
{
|
|
1003
|
-
[ge.disabled]:
|
|
1003
|
+
[ge.disabled]: s,
|
|
1004
1004
|
[ge.loading]: i,
|
|
1005
|
-
[ge.clickable]:
|
|
1005
|
+
[ge.clickable]: M
|
|
1006
1006
|
}
|
|
1007
1007
|
), S = {
|
|
1008
|
-
"--avatar-size": `${
|
|
1008
|
+
"--avatar-size": `${o}px`,
|
|
1009
1009
|
"--avatar-border-radius": `${q}px`,
|
|
1010
|
-
...
|
|
1011
|
-
},
|
|
1012
|
-
icon: () => /* @__PURE__ */ n.jsx("span", { "data-testid": "avatar-icon", title:
|
|
1010
|
+
...a
|
|
1011
|
+
}, T = {
|
|
1012
|
+
icon: () => /* @__PURE__ */ n.jsx("span", { "data-testid": "avatar-icon", title: h || void 0, role: "img", className: ge.icon, children: m == null ? void 0 : m({}) }),
|
|
1013
1013
|
name: () => /* @__PURE__ */ n.jsx(
|
|
1014
1014
|
"span",
|
|
1015
1015
|
{
|
|
1016
1016
|
role: "textbox",
|
|
1017
1017
|
"data-testid": "avatar-name",
|
|
1018
1018
|
className: ge.name,
|
|
1019
|
-
title:
|
|
1020
|
-
children: ka(
|
|
1019
|
+
title: h || void 0,
|
|
1020
|
+
children: ka(p || "")
|
|
1021
1021
|
}
|
|
1022
1022
|
),
|
|
1023
1023
|
placeholder: () => /* @__PURE__ */ n.jsx(
|
|
@@ -1026,8 +1026,8 @@ const Ta = "data:image/svg+xml,%3csvg%20opacity='0.9'%20preserveAspectRatio='xMi
|
|
|
1026
1026
|
...b,
|
|
1027
1027
|
"data-testid": "avatar-placeholder",
|
|
1028
1028
|
className: ge.image,
|
|
1029
|
-
src: Da[
|
|
1030
|
-
alt:
|
|
1029
|
+
src: Da[_],
|
|
1030
|
+
alt: h || void 0
|
|
1031
1031
|
}
|
|
1032
1032
|
),
|
|
1033
1033
|
image: () => /* @__PURE__ */ n.jsx(
|
|
@@ -1036,128 +1036,99 @@ const Ta = "data:image/svg+xml,%3csvg%20opacity='0.9'%20preserveAspectRatio='xMi
|
|
|
1036
1036
|
"data-testid": "avatar-image",
|
|
1037
1037
|
...b,
|
|
1038
1038
|
className: ge.image,
|
|
1039
|
-
src:
|
|
1040
|
-
alt:
|
|
1041
|
-
onLoad: () =>
|
|
1039
|
+
src: f || void 0,
|
|
1040
|
+
alt: h || void 0,
|
|
1041
|
+
onLoad: () => I(!1),
|
|
1042
1042
|
onError: (F) => {
|
|
1043
|
-
var
|
|
1044
|
-
|
|
1043
|
+
var H;
|
|
1044
|
+
I(!0), (H = b == null ? void 0 : b.onError) == null || H.call(b, F);
|
|
1045
1045
|
}
|
|
1046
1046
|
}
|
|
1047
1047
|
)
|
|
1048
1048
|
}, P = (F) => {
|
|
1049
|
-
|
|
1049
|
+
M && (d == null || d(F));
|
|
1050
1050
|
};
|
|
1051
1051
|
return /* @__PURE__ */ n.jsx(
|
|
1052
1052
|
"div",
|
|
1053
1053
|
{
|
|
1054
|
-
ref:
|
|
1054
|
+
ref: r,
|
|
1055
1055
|
onClick: P,
|
|
1056
1056
|
className: D,
|
|
1057
1057
|
style: S,
|
|
1058
1058
|
"data-testid": x,
|
|
1059
|
-
"aria-disabled":
|
|
1060
|
-
children:
|
|
1059
|
+
"aria-disabled": s || i,
|
|
1060
|
+
children: T[A](null)
|
|
1061
1061
|
}
|
|
1062
1062
|
);
|
|
1063
1063
|
}), Oa = "_avatarGroup_1nhee_1", Pa = {
|
|
1064
1064
|
avatarGroup: Oa
|
|
1065
1065
|
};
|
|
1066
|
-
let Ba = (e = 21) => crypto.getRandomValues(new Uint8Array(e)).reduce((
|
|
1067
|
-
|
|
1068
|
-
const d = Math.min(i, o) / 2, c = Math.min(l, d), f = ["M0,0", `H${e}`, `V${a}`, "H0", "V0", "Z"].join(" "), p = [
|
|
1069
|
-
`M${r + c},${s}`,
|
|
1070
|
-
`L${r + i - c},${s}`,
|
|
1071
|
-
// Верхний правый угол
|
|
1072
|
-
`A${c},${c} 0 0 1 ${r + i},${s + c}`,
|
|
1073
|
-
`L${r + i},${s + o - c}`,
|
|
1074
|
-
// Нижний правый угол
|
|
1075
|
-
`A${c},${c} 0 0 1 ${r + i - c},${s + o}`,
|
|
1076
|
-
`L${r + c},${s + o}`,
|
|
1077
|
-
// Нижний левый угол
|
|
1078
|
-
`A${c},${c} 0 0 1 ${r},${s + o - c}`,
|
|
1079
|
-
`L${r},${s + c}`,
|
|
1080
|
-
// Верхний левый угол
|
|
1081
|
-
`A${c},${c} 0 0 1 ${r + c},${s}`,
|
|
1082
|
-
"Z"
|
|
1083
|
-
].join(" ");
|
|
1084
|
-
return `${f} ${p}`;
|
|
1085
|
-
}
|
|
1086
|
-
const Fa = (e) => e === "rgba(0, 0, 0, 0)" || e === "transparent" || e.startsWith("rgba") && e.endsWith(", 0)"), qa = (e) => {
|
|
1066
|
+
let Ba = (e = 21) => crypto.getRandomValues(new Uint8Array(e)).reduce((r, a) => (a &= 63, a < 36 ? r += a.toString(36) : a < 62 ? r += (a - 26).toString(36).toUpperCase() : a > 62 ? r += "-" : r += "_", r), "");
|
|
1067
|
+
const Ua = (e) => e === "rgba(0, 0, 0, 0)" || e === "transparent" || e.startsWith("rgba") && e.endsWith(", 0)"), Fa = (e) => {
|
|
1087
1068
|
if (!e) return null;
|
|
1088
|
-
let
|
|
1089
|
-
for (;
|
|
1090
|
-
const
|
|
1091
|
-
if (!
|
|
1092
|
-
|
|
1069
|
+
let r = e;
|
|
1070
|
+
for (; r; ) {
|
|
1071
|
+
const o = window.getComputedStyle(r).backgroundColor;
|
|
1072
|
+
if (!Ua(o)) return o;
|
|
1073
|
+
r = r.parentElement;
|
|
1093
1074
|
}
|
|
1094
1075
|
return null;
|
|
1095
1076
|
}, ft = () => {
|
|
1096
|
-
const e = Pe(null), [
|
|
1077
|
+
const e = Pe(null), [r, a] = de(null);
|
|
1097
1078
|
return oe(() => {
|
|
1098
1079
|
if (e.current) {
|
|
1099
|
-
const
|
|
1100
|
-
|
|
1080
|
+
const o = Fa(e.current);
|
|
1081
|
+
a(o);
|
|
1101
1082
|
}
|
|
1102
|
-
}, []), { ref: e, bgColor:
|
|
1083
|
+
}, []), { ref: e, bgColor: r };
|
|
1103
1084
|
};
|
|
1104
|
-
function zt(e,
|
|
1105
|
-
oe(() => (window.addEventListener(e,
|
|
1085
|
+
function zt(e, r, a) {
|
|
1086
|
+
oe(() => (window.addEventListener(e, r, a), () => window.removeEventListener(e, r, a)), [e, r]);
|
|
1106
1087
|
}
|
|
1107
1088
|
const Dt = {
|
|
1108
1089
|
passive: !0
|
|
1109
1090
|
};
|
|
1110
|
-
function
|
|
1111
|
-
const [e,
|
|
1091
|
+
function qa() {
|
|
1092
|
+
const [e, r] = de({
|
|
1112
1093
|
width: 0,
|
|
1113
1094
|
height: 0
|
|
1114
|
-
}),
|
|
1115
|
-
|
|
1095
|
+
}), a = Se(() => {
|
|
1096
|
+
r({ width: window.innerWidth || 0, height: window.innerHeight || 0 });
|
|
1116
1097
|
}, []);
|
|
1117
|
-
return zt("resize",
|
|
1098
|
+
return zt("resize", a, Dt), zt("orientationchange", a, Dt), oe(a, []), e;
|
|
1118
1099
|
}
|
|
1119
|
-
function
|
|
1120
|
-
const { width:
|
|
1121
|
-
return
|
|
1100
|
+
function Wa(e = 768) {
|
|
1101
|
+
const { width: r } = qa();
|
|
1102
|
+
return Lr(() => r <= e, [r, e]);
|
|
1122
1103
|
}
|
|
1123
|
-
const Ha = 2,
|
|
1104
|
+
const Ha = 2, Va = (e) => {
|
|
1124
1105
|
const {
|
|
1125
|
-
avatars:
|
|
1126
|
-
size:
|
|
1127
|
-
overlap:
|
|
1106
|
+
avatars: r = [],
|
|
1107
|
+
size: a = 40,
|
|
1108
|
+
overlap: o = 0.3,
|
|
1128
1109
|
shape: i = "circle",
|
|
1129
|
-
overflowCount:
|
|
1110
|
+
overflowCount: s = 0,
|
|
1130
1111
|
overflowProps: l,
|
|
1131
|
-
cutoutBackground:
|
|
1132
|
-
} = e,
|
|
1133
|
-
...
|
|
1134
|
-
}
|
|
1135
|
-
|
|
1136
|
-
r,
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
// Y-координата начала выреза
|
|
1141
|
-
r,
|
|
1142
|
-
r,
|
|
1143
|
-
p
|
|
1144
|
-
);
|
|
1145
|
-
return a.length === 0 ? null : /* @__PURE__ */ n.jsxs("div", { className: x, ref: b, style: w, children: [
|
|
1146
|
-
a.map((y, C, k) => {
|
|
1147
|
-
const E = C + 1 >= k.length;
|
|
1148
|
-
if (y.wrapper) {
|
|
1149
|
-
const M = y.wrapper;
|
|
1112
|
+
cutoutBackground: c
|
|
1113
|
+
} = e, p = -(a * o) + Ha, h = Pe(Ba()).current.toString(), { ref: m, bgColor: b } = ft(), y = c || b, L = Le(Pa.avatarGroup), x = {
|
|
1114
|
+
...y && { "--avatar-cutout-bg": y }
|
|
1115
|
+
};
|
|
1116
|
+
return r.length === 0 ? null : /* @__PURE__ */ n.jsxs("div", { className: L, ref: m, style: x, children: [
|
|
1117
|
+
r.map((v, d, w) => {
|
|
1118
|
+
const C = d + 1 >= w.length;
|
|
1119
|
+
if (v.wrapper) {
|
|
1120
|
+
const M = v.wrapper;
|
|
1150
1121
|
return /* @__PURE__ */ n.jsx(
|
|
1151
1122
|
"div",
|
|
1152
1123
|
{
|
|
1153
1124
|
style: {
|
|
1154
1125
|
// Для последнего видимого аватара без overflowCount не применяем обрезку
|
|
1155
|
-
clipPath:
|
|
1156
|
-
marginRight:
|
|
1126
|
+
clipPath: C && !s ? void 0 : `url(#${h})`,
|
|
1127
|
+
marginRight: p
|
|
1157
1128
|
},
|
|
1158
|
-
children: /* @__PURE__ */ n.jsx(M, { children: /* @__PURE__ */ n.jsx(
|
|
1129
|
+
children: /* @__PURE__ */ n.jsx(M, { children: /* @__PURE__ */ n.jsx(Ze, { size: a, shape: i, ...v }) })
|
|
1159
1130
|
},
|
|
1160
|
-
|
|
1131
|
+
Je(v) + d
|
|
1161
1132
|
);
|
|
1162
1133
|
}
|
|
1163
1134
|
return /* @__PURE__ */ n.jsx(
|
|
@@ -1165,36 +1136,35 @@ const Ha = 2, Ga = (e) => {
|
|
|
1165
1136
|
{
|
|
1166
1137
|
style: {
|
|
1167
1138
|
// Для последнего видимого аватара без overflowCount не применяем обрезку
|
|
1168
|
-
clipPath:
|
|
1169
|
-
marginRight:
|
|
1139
|
+
clipPath: C && !s ? void 0 : `url(#${h})`,
|
|
1140
|
+
marginRight: p
|
|
1170
1141
|
},
|
|
1171
|
-
children: /* @__PURE__ */ n.jsx(
|
|
1142
|
+
children: /* @__PURE__ */ n.jsx(Ze, { size: a, shape: i, ...v })
|
|
1172
1143
|
},
|
|
1173
|
-
|
|
1144
|
+
Je(v) + d
|
|
1174
1145
|
);
|
|
1175
1146
|
}),
|
|
1176
|
-
|
|
1177
|
-
|
|
1147
|
+
s > 0 && /* @__PURE__ */ n.jsx("div", { style: { marginRight: p }, children: /* @__PURE__ */ n.jsx(
|
|
1148
|
+
Ze,
|
|
1178
1149
|
{
|
|
1179
|
-
size:
|
|
1150
|
+
size: a,
|
|
1180
1151
|
shape: i,
|
|
1181
|
-
icon: () =>
|
|
1152
|
+
icon: () => La(s),
|
|
1182
1153
|
colorScheme: "gray",
|
|
1183
1154
|
variant: "light",
|
|
1184
1155
|
...l
|
|
1185
1156
|
}
|
|
1186
|
-
) })
|
|
1187
|
-
/* @__PURE__ */ n.jsx("svg", { width: "0", height: "0", children: /* @__PURE__ */ n.jsx("clipPath", { id: `${h}`, children: /* @__PURE__ */ n.jsx("path", { clipPathUnits: "objectBoundingBox", d: _, clipRule: "evenodd" }) }) })
|
|
1157
|
+
) })
|
|
1188
1158
|
] });
|
|
1189
|
-
}, Hi = Object.assign(
|
|
1190
|
-
Group:
|
|
1191
|
-
}),
|
|
1192
|
-
wrapper:
|
|
1159
|
+
}, Hi = Object.assign(Ze, {
|
|
1160
|
+
Group: Va
|
|
1161
|
+
}), Ga = "_wrapper_ecbsu_5", Ya = "_badge__container_ecbsu_6", Za = "_badge__content_ecbsu_7", Xa = "_interactive_ecbsu_20", Ja = "_disabled_ecbsu_21", Ka = "_icon_ecbsu_22", ye = {
|
|
1162
|
+
wrapper: Ga,
|
|
1193
1163
|
badge__container: Ya,
|
|
1194
|
-
badge__content:
|
|
1195
|
-
interactive:
|
|
1196
|
-
disabled:
|
|
1197
|
-
icon:
|
|
1164
|
+
badge__content: Za,
|
|
1165
|
+
interactive: Xa,
|
|
1166
|
+
disabled: Ja,
|
|
1167
|
+
icon: Ka,
|
|
1198
1168
|
"variant-filled": "_variant-filled_ecbsu_102",
|
|
1199
1169
|
"color-brand": "_color-brand_ecbsu_107",
|
|
1200
1170
|
"color-red": "_color-red_ecbsu_111",
|
|
@@ -1226,111 +1196,111 @@ const Ha = 2, Ga = (e) => {
|
|
|
1226
1196
|
"position-bottom-center-inside": "_position-bottom-center-inside_ecbsu_447",
|
|
1227
1197
|
"position-middle-left-inside": "_position-middle-left-inside_ecbsu_453",
|
|
1228
1198
|
"position-middle-right-inside": "_position-middle-right-inside_ecbsu_459"
|
|
1229
|
-
},
|
|
1199
|
+
}, Qa = K((e, r) => {
|
|
1230
1200
|
const {
|
|
1231
|
-
icon:
|
|
1232
|
-
children:
|
|
1201
|
+
icon: a,
|
|
1202
|
+
children: o,
|
|
1233
1203
|
variant: i = "filled",
|
|
1234
|
-
label:
|
|
1204
|
+
label: s,
|
|
1235
1205
|
isHidden: l = !1,
|
|
1236
|
-
colorScheme:
|
|
1237
|
-
size:
|
|
1238
|
-
position:
|
|
1239
|
-
positionOffset:
|
|
1240
|
-
cutoutBackground:
|
|
1241
|
-
isDisabled:
|
|
1206
|
+
colorScheme: c = "red",
|
|
1207
|
+
size: _ = 20,
|
|
1208
|
+
position: p = "top-right",
|
|
1209
|
+
positionOffset: f = { x: 0, y: 0 },
|
|
1210
|
+
cutoutBackground: h,
|
|
1211
|
+
isDisabled: m,
|
|
1242
1212
|
className: b,
|
|
1243
|
-
"data-testid":
|
|
1213
|
+
"data-testid": y = "badge",
|
|
1244
1214
|
...L
|
|
1245
|
-
} = e, { onClick: x, onPointerDown:
|
|
1215
|
+
} = e, { onClick: x, onPointerDown: v } = L, { ref: d, bgColor: w } = ft(), C = h || w, j = !m && (!!x || !!v), I = Le(ye.badge__container, ye[`position-${p}`]), A = Le(
|
|
1246
1216
|
b,
|
|
1247
1217
|
ye.badge__content,
|
|
1248
|
-
ye[`color-${
|
|
1218
|
+
ye[`color-${c}`],
|
|
1249
1219
|
ye[`variant-${i}`],
|
|
1250
1220
|
{
|
|
1251
|
-
[ye.disabled]:
|
|
1252
|
-
[ye.icon]: !!
|
|
1253
|
-
[ye.interactive]:
|
|
1221
|
+
[ye.disabled]: m,
|
|
1222
|
+
[ye.icon]: !!a,
|
|
1223
|
+
[ye.interactive]: j
|
|
1254
1224
|
}
|
|
1255
1225
|
), z = {
|
|
1256
|
-
"--badge-height": `${
|
|
1257
|
-
"--badge-offset-x": `${
|
|
1258
|
-
"--badge-offset-y": `${
|
|
1226
|
+
"--badge-height": `${_}px`,
|
|
1227
|
+
"--badge-offset-x": `${f.x}px`,
|
|
1228
|
+
"--badge-offset-y": `${f.y}px`,
|
|
1259
1229
|
...C && { "--badge-cutout-bg": C },
|
|
1260
1230
|
...i === "transparent" && { "--badge-cutout-bg": "transparent" }
|
|
1261
|
-
}, U = (
|
|
1262
|
-
|
|
1231
|
+
}, U = (a == null ? void 0 : a({})) || s, q = (D) => {
|
|
1232
|
+
j && (x == null || x(D));
|
|
1263
1233
|
};
|
|
1264
|
-
return /* @__PURE__ */ n.jsxs("div", { className: ye.wrapper, ref:
|
|
1265
|
-
|
|
1234
|
+
return /* @__PURE__ */ n.jsxs("div", { className: ye.wrapper, ref: d, "data-testid": y + "-wrapper", children: [
|
|
1235
|
+
o,
|
|
1266
1236
|
!l && /* @__PURE__ */ n.jsx(
|
|
1267
1237
|
"span",
|
|
1268
1238
|
{
|
|
1269
|
-
className:
|
|
1239
|
+
className: I,
|
|
1270
1240
|
style: z,
|
|
1271
|
-
"data-testid":
|
|
1241
|
+
"data-testid": y + "-container",
|
|
1272
1242
|
children: /* @__PURE__ */ n.jsx(
|
|
1273
1243
|
"span",
|
|
1274
1244
|
{
|
|
1275
1245
|
...L,
|
|
1276
1246
|
onClick: q,
|
|
1277
1247
|
className: A,
|
|
1278
|
-
"data-testid":
|
|
1279
|
-
ref:
|
|
1280
|
-
"aria-disabled":
|
|
1248
|
+
"data-testid": y + "-content",
|
|
1249
|
+
ref: r,
|
|
1250
|
+
"aria-disabled": m,
|
|
1281
1251
|
children: U
|
|
1282
1252
|
}
|
|
1283
1253
|
)
|
|
1284
1254
|
}
|
|
1285
1255
|
)
|
|
1286
1256
|
] });
|
|
1287
|
-
}),
|
|
1288
|
-
container:
|
|
1289
|
-
image:
|
|
1290
|
-
loading:
|
|
1291
|
-
},
|
|
1292
|
-
loader:
|
|
1293
|
-
spin:
|
|
1294
|
-
accent:
|
|
1295
|
-
neutral:
|
|
1296
|
-
positive:
|
|
1297
|
-
negative:
|
|
1298
|
-
gray:
|
|
1299
|
-
special:
|
|
1300
|
-
contrast:
|
|
1301
|
-
container:
|
|
1302
|
-
overlay:
|
|
1257
|
+
}), en = "_container_op5yl_7", tn = "_image_op5yl_22", rn = "_loading_op5yl_34", lt = {
|
|
1258
|
+
container: en,
|
|
1259
|
+
image: tn,
|
|
1260
|
+
loading: rn
|
|
1261
|
+
}, an = "_loader_isv17_1", nn = "_spin_isv17_1", sn = "_accent_isv17_19", on = "_neutral_isv17_23", ln = "_positive_isv17_27", cn = "_negative_isv17_31", dn = "_gray_isv17_35", un = "_special_isv17_39", _n = "_contrast_isv17_43", pn = "_container_isv17_47", fn = "_overlay_isv17_57", qe = {
|
|
1262
|
+
loader: an,
|
|
1263
|
+
spin: nn,
|
|
1264
|
+
accent: sn,
|
|
1265
|
+
neutral: on,
|
|
1266
|
+
positive: ln,
|
|
1267
|
+
negative: cn,
|
|
1268
|
+
gray: dn,
|
|
1269
|
+
special: un,
|
|
1270
|
+
contrast: _n,
|
|
1271
|
+
container: pn,
|
|
1272
|
+
overlay: fn,
|
|
1303
1273
|
"size-16": "_size-16_isv17_72",
|
|
1304
1274
|
"size-24": "_size-24_isv17_76",
|
|
1305
1275
|
"size-48": "_size-48_isv17_80",
|
|
1306
1276
|
"size-64": "_size-64_isv17_84",
|
|
1307
1277
|
"size-96": "_size-96_isv17_88"
|
|
1308
|
-
},
|
|
1278
|
+
}, Zt = K(
|
|
1309
1279
|
({
|
|
1310
1280
|
size: e = 24,
|
|
1311
|
-
variant:
|
|
1312
|
-
className:
|
|
1313
|
-
"data-testid":
|
|
1281
|
+
variant: r = "accent",
|
|
1282
|
+
className: a,
|
|
1283
|
+
"data-testid": o = "loader",
|
|
1314
1284
|
style: i,
|
|
1315
|
-
...
|
|
1285
|
+
...s
|
|
1316
1286
|
}, l) => {
|
|
1317
|
-
const
|
|
1287
|
+
const c = Le(
|
|
1318
1288
|
qe.loader,
|
|
1319
|
-
qe[
|
|
1289
|
+
qe[r],
|
|
1320
1290
|
qe[`size-${e}`],
|
|
1321
|
-
|
|
1291
|
+
a
|
|
1322
1292
|
);
|
|
1323
1293
|
return /* @__PURE__ */ n.jsx(
|
|
1324
1294
|
"svg",
|
|
1325
1295
|
{
|
|
1326
1296
|
ref: l,
|
|
1327
|
-
className:
|
|
1297
|
+
className: c,
|
|
1328
1298
|
fill: "none",
|
|
1329
1299
|
viewBox: "0 0 16 16",
|
|
1330
1300
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1331
|
-
"data-testid":
|
|
1301
|
+
"data-testid": o,
|
|
1332
1302
|
style: i,
|
|
1333
|
-
...
|
|
1303
|
+
...s,
|
|
1334
1304
|
children: /* @__PURE__ */ n.jsx(
|
|
1335
1305
|
"path",
|
|
1336
1306
|
{
|
|
@@ -1343,37 +1313,37 @@ const Ha = 2, Ga = (e) => {
|
|
|
1343
1313
|
}
|
|
1344
1314
|
);
|
|
1345
1315
|
}
|
|
1346
|
-
),
|
|
1316
|
+
), hn = K((e, r) => {
|
|
1347
1317
|
const {
|
|
1348
|
-
loading:
|
|
1349
|
-
size:
|
|
1318
|
+
loading: a = !1,
|
|
1319
|
+
size: o = 24,
|
|
1350
1320
|
variant: i = "accent",
|
|
1351
|
-
children:
|
|
1321
|
+
children: s,
|
|
1352
1322
|
className: l,
|
|
1353
|
-
style:
|
|
1354
|
-
"data-testid":
|
|
1355
|
-
...
|
|
1356
|
-
} = e,
|
|
1357
|
-
return /* @__PURE__ */ n.jsxs("div", { ref:
|
|
1358
|
-
|
|
1359
|
-
|
|
1323
|
+
style: c,
|
|
1324
|
+
"data-testid": _,
|
|
1325
|
+
...p
|
|
1326
|
+
} = e, f = Le(qe.container, l);
|
|
1327
|
+
return /* @__PURE__ */ n.jsxs("div", { ref: r, className: f, style: c, "data-testid": _, ...p, children: [
|
|
1328
|
+
s,
|
|
1329
|
+
a && /* @__PURE__ */ n.jsx("div", { className: qe.overlay, children: /* @__PURE__ */ n.jsx(Zt, { size: o, variant: i, "data-testid": `${_}-spinner` }) })
|
|
1360
1330
|
] });
|
|
1361
|
-
}),
|
|
1362
|
-
|
|
1331
|
+
}), bn = K((e, r) => e.children ? /* @__PURE__ */ n.jsx(
|
|
1332
|
+
hn,
|
|
1363
1333
|
{
|
|
1364
|
-
ref:
|
|
1334
|
+
ref: r,
|
|
1365
1335
|
...e
|
|
1366
1336
|
}
|
|
1367
|
-
) : /* @__PURE__ */ n.jsx(
|
|
1337
|
+
) : /* @__PURE__ */ n.jsx(Zt, { ref: r, ...e })), gn = ({ width: e = 48, height: r = 48, className: a, "data-testid": o }) => /* @__PURE__ */ n.jsx(
|
|
1368
1338
|
"svg",
|
|
1369
1339
|
{
|
|
1370
1340
|
width: e,
|
|
1371
|
-
height:
|
|
1341
|
+
height: r,
|
|
1372
1342
|
viewBox: "0 0 48 48",
|
|
1373
1343
|
fill: "none",
|
|
1374
1344
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1375
|
-
className:
|
|
1376
|
-
"data-testid":
|
|
1345
|
+
className: a,
|
|
1346
|
+
"data-testid": o,
|
|
1377
1347
|
children: /* @__PURE__ */ n.jsx(
|
|
1378
1348
|
"path",
|
|
1379
1349
|
{
|
|
@@ -1385,55 +1355,55 @@ const Ha = 2, Ga = (e) => {
|
|
|
1385
1355
|
}
|
|
1386
1356
|
)
|
|
1387
1357
|
}
|
|
1388
|
-
),
|
|
1358
|
+
), Vi = K((e, r) => {
|
|
1389
1359
|
const {
|
|
1390
|
-
alt:
|
|
1391
|
-
loading:
|
|
1360
|
+
alt: a = "",
|
|
1361
|
+
loading: o = "lazy",
|
|
1392
1362
|
src: i,
|
|
1393
|
-
isLoading:
|
|
1363
|
+
isLoading: s = !1,
|
|
1394
1364
|
className: l,
|
|
1395
|
-
"data-testid":
|
|
1396
|
-
onError:
|
|
1397
|
-
onLoad:
|
|
1398
|
-
...
|
|
1399
|
-
} = e, [
|
|
1365
|
+
"data-testid": c = "image",
|
|
1366
|
+
onError: _,
|
|
1367
|
+
onLoad: p,
|
|
1368
|
+
...f
|
|
1369
|
+
} = e, [h, m] = de("loading"), b = h === "error", y = (s || h === "loading") && !b, L = h === "loaded" && !s, x = Le(
|
|
1400
1370
|
lt.image,
|
|
1401
1371
|
{
|
|
1402
|
-
[lt.loading]:
|
|
1372
|
+
[lt.loading]: y
|
|
1403
1373
|
},
|
|
1404
1374
|
l
|
|
1405
|
-
),
|
|
1375
|
+
), v = Se(
|
|
1406
1376
|
(C) => {
|
|
1407
|
-
|
|
1377
|
+
m("loaded"), p == null || p(C);
|
|
1408
1378
|
},
|
|
1409
|
-
[
|
|
1410
|
-
),
|
|
1379
|
+
[p]
|
|
1380
|
+
), d = Se(
|
|
1411
1381
|
(C) => {
|
|
1412
|
-
|
|
1382
|
+
m("error"), _ == null || _(C);
|
|
1413
1383
|
},
|
|
1414
|
-
[
|
|
1415
|
-
),
|
|
1384
|
+
[_]
|
|
1385
|
+
), w = {
|
|
1416
1386
|
loader: /* @__PURE__ */ n.jsxs(De, { children: [
|
|
1417
|
-
/* @__PURE__ */ n.jsx(
|
|
1387
|
+
/* @__PURE__ */ n.jsx(bn, { size: 48, variant: "special", "data-testid": `${c}-loader` }),
|
|
1418
1388
|
/* @__PURE__ */ n.jsx(
|
|
1419
1389
|
"img",
|
|
1420
1390
|
{
|
|
1421
|
-
alt:
|
|
1391
|
+
alt: a,
|
|
1422
1392
|
src: i,
|
|
1423
|
-
onLoad:
|
|
1424
|
-
onError:
|
|
1393
|
+
onLoad: v,
|
|
1394
|
+
onError: d,
|
|
1425
1395
|
style: { display: "none" }
|
|
1426
1396
|
}
|
|
1427
1397
|
)
|
|
1428
1398
|
] }),
|
|
1429
|
-
error: /* @__PURE__ */ n.jsx(
|
|
1399
|
+
error: /* @__PURE__ */ n.jsx(gn, { "data-testid": `${c}-fallback` }),
|
|
1430
1400
|
image: /* @__PURE__ */ n.jsx(
|
|
1431
1401
|
"img",
|
|
1432
1402
|
{
|
|
1433
|
-
ref:
|
|
1434
|
-
alt:
|
|
1435
|
-
"data-testid":
|
|
1436
|
-
loading:
|
|
1403
|
+
ref: r,
|
|
1404
|
+
alt: a,
|
|
1405
|
+
"data-testid": c,
|
|
1406
|
+
loading: o,
|
|
1437
1407
|
src: i,
|
|
1438
1408
|
className: x
|
|
1439
1409
|
}
|
|
@@ -1441,122 +1411,122 @@ const Ha = 2, Ga = (e) => {
|
|
|
1441
1411
|
};
|
|
1442
1412
|
return oe(() => {
|
|
1443
1413
|
if (!i) {
|
|
1444
|
-
|
|
1414
|
+
m("error");
|
|
1445
1415
|
return;
|
|
1446
1416
|
}
|
|
1447
|
-
|
|
1448
|
-
}, [i]), /* @__PURE__ */ n.jsxs("div", { className: lt.container, "data-testid": `${
|
|
1449
|
-
|
|
1450
|
-
b &&
|
|
1451
|
-
L &&
|
|
1417
|
+
m("loading");
|
|
1418
|
+
}, [i]), /* @__PURE__ */ n.jsxs("div", { className: lt.container, "data-testid": `${c}-container`, ...f, children: [
|
|
1419
|
+
y && w.loader,
|
|
1420
|
+
b && w.error,
|
|
1421
|
+
L && w.image
|
|
1452
1422
|
] });
|
|
1453
|
-
}),
|
|
1454
|
-
locale:
|
|
1455
|
-
}),
|
|
1456
|
-
const e =
|
|
1423
|
+
}), mn = {}, Xt = Gt({
|
|
1424
|
+
locale: mn
|
|
1425
|
+
}), yn = () => {
|
|
1426
|
+
const e = Yt(Xt);
|
|
1457
1427
|
if (!e)
|
|
1458
1428
|
throw new Error("useConfig must be used within a ConfigProvider");
|
|
1459
1429
|
return e;
|
|
1460
|
-
},
|
|
1461
|
-
const { locale: e } =
|
|
1430
|
+
}, Gi = () => {
|
|
1431
|
+
const { locale: e } = yn();
|
|
1462
1432
|
return e;
|
|
1463
|
-
},
|
|
1433
|
+
}, vn = {}, xn = {}, wn = {}, Yi = ({
|
|
1464
1434
|
locale: e = {},
|
|
1465
|
-
theme:
|
|
1466
|
-
children:
|
|
1467
|
-
className:
|
|
1468
|
-
}) => (
|
|
1469
|
-
if (
|
|
1435
|
+
theme: r,
|
|
1436
|
+
children: a,
|
|
1437
|
+
className: o
|
|
1438
|
+
}) => (Er(() => {
|
|
1439
|
+
if (r) {
|
|
1470
1440
|
const i = document.documentElement;
|
|
1471
|
-
Object.entries(
|
|
1472
|
-
i.style.setProperty(
|
|
1441
|
+
Object.entries(r).forEach(([s, l]) => {
|
|
1442
|
+
i.style.setProperty(s, l);
|
|
1473
1443
|
});
|
|
1474
1444
|
}
|
|
1475
|
-
}, [
|
|
1445
|
+
}, [r]), /* @__PURE__ */ n.jsxs(De, { children: [
|
|
1476
1446
|
/* @__PURE__ */ n.jsx(
|
|
1477
1447
|
"div",
|
|
1478
1448
|
{
|
|
1479
1449
|
"data-testid": "ConfigProvider-component",
|
|
1480
|
-
className:
|
|
1450
|
+
className: k(vn, xn, wn, o)
|
|
1481
1451
|
}
|
|
1482
1452
|
),
|
|
1483
|
-
/* @__PURE__ */ n.jsx(
|
|
1484
|
-
] })),
|
|
1485
|
-
tag:
|
|
1486
|
-
label:
|
|
1487
|
-
iconWrapper:
|
|
1488
|
-
medium:
|
|
1489
|
-
large:
|
|
1490
|
-
disabled:
|
|
1491
|
-
neutral:
|
|
1492
|
-
positive:
|
|
1493
|
-
negative:
|
|
1494
|
-
warning:
|
|
1495
|
-
vivid:
|
|
1496
|
-
special:
|
|
1497
|
-
accent:
|
|
1498
|
-
blue:
|
|
1499
|
-
lovely:
|
|
1500
|
-
dreamy:
|
|
1501
|
-
},
|
|
1453
|
+
/* @__PURE__ */ n.jsx(Xt.Provider, { value: { locale: e }, children: a })
|
|
1454
|
+
] })), Zi = {}, Cn = "_tag_1llsi_1", Sn = "_label_1llsi_16", Ln = "_iconWrapper_1llsi_20", En = "_medium_1llsi_27", jn = "_large_1llsi_33", kn = "_disabled_1llsi_43", Mn = "_neutral_1llsi_47", In = "_positive_1llsi_53", $n = "_negative_1llsi_59", Tn = "_warning_1llsi_65", Rn = "_vivid_1llsi_71", Nn = "_special_1llsi_77", An = "_accent_1llsi_84", zn = "_blue_1llsi_90", Dn = "_lovely_1llsi_96", On = "_dreamy_1llsi_102", ke = {
|
|
1455
|
+
tag: Cn,
|
|
1456
|
+
label: Sn,
|
|
1457
|
+
iconWrapper: Ln,
|
|
1458
|
+
medium: En,
|
|
1459
|
+
large: jn,
|
|
1460
|
+
disabled: kn,
|
|
1461
|
+
neutral: Mn,
|
|
1462
|
+
positive: In,
|
|
1463
|
+
negative: $n,
|
|
1464
|
+
warning: Tn,
|
|
1465
|
+
vivid: Rn,
|
|
1466
|
+
special: Nn,
|
|
1467
|
+
accent: An,
|
|
1468
|
+
blue: zn,
|
|
1469
|
+
lovely: Dn,
|
|
1470
|
+
dreamy: On
|
|
1471
|
+
}, Xi = K((e, r) => {
|
|
1502
1472
|
const {
|
|
1503
|
-
className:
|
|
1504
|
-
children:
|
|
1473
|
+
className: a,
|
|
1474
|
+
children: o,
|
|
1505
1475
|
componentStyle: i = "neutral",
|
|
1506
|
-
size:
|
|
1476
|
+
size: s = "medium",
|
|
1507
1477
|
disabled: l = !1,
|
|
1508
|
-
showLabel:
|
|
1509
|
-
slotStart:
|
|
1510
|
-
slotEnd:
|
|
1511
|
-
slotStartWrapperProps:
|
|
1512
|
-
slotEndWrapperProps:
|
|
1513
|
-
"data-testid":
|
|
1514
|
-
} = e, { className: b, ...
|
|
1478
|
+
showLabel: c = !!o,
|
|
1479
|
+
slotStart: _,
|
|
1480
|
+
slotEnd: p,
|
|
1481
|
+
slotStartWrapperProps: f = {},
|
|
1482
|
+
slotEndWrapperProps: h = {},
|
|
1483
|
+
"data-testid": m
|
|
1484
|
+
} = e, { className: b, ...y } = f, { className: L, ...x } = h;
|
|
1515
1485
|
return /* @__PURE__ */ n.jsxs(
|
|
1516
1486
|
"div",
|
|
1517
1487
|
{
|
|
1518
|
-
className:
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1488
|
+
className: k(
|
|
1489
|
+
ke.tag,
|
|
1490
|
+
ke[s],
|
|
1491
|
+
ke[i],
|
|
1522
1492
|
{
|
|
1523
|
-
[
|
|
1524
|
-
[ce["typography-label-3-regular"]]:
|
|
1525
|
-
[ce["typography-subtitle-1-semibold"]]:
|
|
1493
|
+
[ke.disabled]: l,
|
|
1494
|
+
[ce["typography-label-3-regular"]]: s === "medium",
|
|
1495
|
+
[ce["typography-subtitle-1-semibold"]]: s === "large"
|
|
1526
1496
|
},
|
|
1527
|
-
|
|
1497
|
+
a
|
|
1528
1498
|
),
|
|
1529
|
-
"data-testid":
|
|
1530
|
-
ref:
|
|
1499
|
+
"data-testid": m || "tag-component",
|
|
1500
|
+
ref: r,
|
|
1531
1501
|
children: [
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1502
|
+
_ && /* @__PURE__ */ n.jsx("span", { className: k([ke.iconWrapper, b]), ...y, children: _ }),
|
|
1503
|
+
c && /* @__PURE__ */ n.jsx("span", { className: k([ke.label]), children: o }),
|
|
1504
|
+
p && /* @__PURE__ */ n.jsx("span", { className: k([ke.iconWrapper, L]), ...x, children: p })
|
|
1535
1505
|
]
|
|
1536
1506
|
}
|
|
1537
1507
|
);
|
|
1538
|
-
}),
|
|
1539
|
-
checkbox:
|
|
1540
|
-
input:
|
|
1541
|
-
icon:
|
|
1542
|
-
container:
|
|
1543
|
-
error:
|
|
1544
|
-
checkboxWrapper:
|
|
1545
|
-
medium:
|
|
1546
|
-
large:
|
|
1547
|
-
label:
|
|
1548
|
-
},
|
|
1508
|
+
}), Pn = "_checkbox_17txq_43", Bn = "_input_17txq_64", Un = "_icon_17txq_72", Fn = "_container_17txq_92", qn = "_error_17txq_143", Wn = "_checkboxWrapper_17txq_156", Hn = "_medium_17txq_211", Vn = "_large_17txq_216", Gn = "_label_17txq_258", xe = {
|
|
1509
|
+
checkbox: Pn,
|
|
1510
|
+
input: Bn,
|
|
1511
|
+
icon: Un,
|
|
1512
|
+
container: Fn,
|
|
1513
|
+
error: qn,
|
|
1514
|
+
checkboxWrapper: Wn,
|
|
1515
|
+
medium: Hn,
|
|
1516
|
+
large: Vn,
|
|
1517
|
+
label: Gn
|
|
1518
|
+
}, Yn = ({
|
|
1549
1519
|
width: e = 12,
|
|
1550
|
-
height:
|
|
1551
|
-
className:
|
|
1552
|
-
color:
|
|
1520
|
+
height: r = 9,
|
|
1521
|
+
className: a = "",
|
|
1522
|
+
color: o = "currentColor",
|
|
1553
1523
|
...i
|
|
1554
1524
|
}) => /* @__PURE__ */ n.jsx(
|
|
1555
1525
|
"svg",
|
|
1556
1526
|
{
|
|
1557
|
-
className:
|
|
1527
|
+
className: a,
|
|
1558
1528
|
width: e,
|
|
1559
|
-
height:
|
|
1529
|
+
height: r,
|
|
1560
1530
|
viewBox: "0 0 14 10",
|
|
1561
1531
|
fill: "none",
|
|
1562
1532
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1567,22 +1537,22 @@ const Ha = 2, Ga = (e) => {
|
|
|
1567
1537
|
fillRule: "evenodd",
|
|
1568
1538
|
clipRule: "evenodd",
|
|
1569
1539
|
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",
|
|
1570
|
-
fill:
|
|
1540
|
+
fill: o
|
|
1571
1541
|
}
|
|
1572
1542
|
)
|
|
1573
1543
|
}
|
|
1574
|
-
),
|
|
1544
|
+
), Zn = ({
|
|
1575
1545
|
width: e = 12,
|
|
1576
|
-
height:
|
|
1577
|
-
className:
|
|
1578
|
-
color:
|
|
1546
|
+
height: r = 2,
|
|
1547
|
+
className: a = "",
|
|
1548
|
+
color: o = "currentColor",
|
|
1579
1549
|
...i
|
|
1580
1550
|
}) => /* @__PURE__ */ n.jsx(
|
|
1581
1551
|
"svg",
|
|
1582
1552
|
{
|
|
1583
|
-
className:
|
|
1553
|
+
className: a,
|
|
1584
1554
|
width: e,
|
|
1585
|
-
height:
|
|
1555
|
+
height: r,
|
|
1586
1556
|
viewBox: "0 0 12 2",
|
|
1587
1557
|
fill: "none",
|
|
1588
1558
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1593,117 +1563,117 @@ const Ha = 2, Ga = (e) => {
|
|
|
1593
1563
|
fillRule: "evenodd",
|
|
1594
1564
|
clipRule: "evenodd",
|
|
1595
1565
|
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",
|
|
1596
|
-
fill:
|
|
1566
|
+
fill: o
|
|
1597
1567
|
}
|
|
1598
1568
|
)
|
|
1599
1569
|
}
|
|
1600
|
-
),
|
|
1570
|
+
), Xn = {
|
|
1601
1571
|
medium: { width: 10.83, height: 7.5 },
|
|
1602
1572
|
large: { width: 13, height: 9 }
|
|
1603
|
-
},
|
|
1573
|
+
}, Jn = ({
|
|
1604
1574
|
size: e,
|
|
1605
|
-
isChecked:
|
|
1606
|
-
isDisabled:
|
|
1607
|
-
indeterminate:
|
|
1575
|
+
isChecked: r,
|
|
1576
|
+
isDisabled: a,
|
|
1577
|
+
indeterminate: o,
|
|
1608
1578
|
dataTestId: i
|
|
1609
1579
|
}) => {
|
|
1610
|
-
const { width:
|
|
1580
|
+
const { width: s, height: l } = Xn[e];
|
|
1611
1581
|
return /* @__PURE__ */ n.jsx(
|
|
1612
1582
|
"div",
|
|
1613
1583
|
{
|
|
1614
1584
|
className: xe.icon,
|
|
1615
1585
|
"data-testid": `${i}-icon`,
|
|
1616
|
-
"data-checked":
|
|
1617
|
-
"data-disabled":
|
|
1618
|
-
"data-indeterminate":
|
|
1619
|
-
children:
|
|
1586
|
+
"data-checked": r,
|
|
1587
|
+
"data-disabled": a,
|
|
1588
|
+
"data-indeterminate": o,
|
|
1589
|
+
children: o ? /* @__PURE__ */ n.jsx(Zn, { width: s, height: l }) : /* @__PURE__ */ n.jsx(Yn, { width: s, height: l })
|
|
1620
1590
|
}
|
|
1621
1591
|
);
|
|
1622
|
-
},
|
|
1592
|
+
}, Ji = K((e, r) => {
|
|
1623
1593
|
const {
|
|
1624
|
-
name:
|
|
1625
|
-
value:
|
|
1594
|
+
name: a,
|
|
1595
|
+
value: o,
|
|
1626
1596
|
size: i = "medium",
|
|
1627
|
-
indeterminate:
|
|
1597
|
+
indeterminate: s = !1,
|
|
1628
1598
|
loading: l = !1,
|
|
1629
|
-
error:
|
|
1630
|
-
disabled:
|
|
1631
|
-
containerClassName:
|
|
1632
|
-
className:
|
|
1633
|
-
containerStyle:
|
|
1634
|
-
style:
|
|
1599
|
+
error: c,
|
|
1600
|
+
disabled: _ = !1,
|
|
1601
|
+
containerClassName: p,
|
|
1602
|
+
className: f,
|
|
1603
|
+
containerStyle: h,
|
|
1604
|
+
style: m,
|
|
1635
1605
|
children: b,
|
|
1636
|
-
clickableLabel:
|
|
1606
|
+
clickableLabel: y = !0,
|
|
1637
1607
|
tabIndex: L,
|
|
1638
1608
|
onChange: x,
|
|
1639
|
-
"data-testid":
|
|
1640
|
-
} = e, [
|
|
1609
|
+
"data-testid": v = "checkbox"
|
|
1610
|
+
} = e, [d, w] = de(!1), C = o ?? d, M = _ || l, j = !!c, I = C || s, A = k(xe.container, xe[i], p), z = k(
|
|
1641
1611
|
xe.checkbox,
|
|
1642
1612
|
xe[i],
|
|
1643
1613
|
{
|
|
1644
|
-
[xe.error]:
|
|
1614
|
+
[xe.error]: j
|
|
1645
1615
|
},
|
|
1646
|
-
|
|
1647
|
-
), U = (
|
|
1648
|
-
|
|
1649
|
-
}, q = (
|
|
1650
|
-
if (
|
|
1651
|
-
|
|
1652
|
-
const P = !
|
|
1653
|
-
|
|
1654
|
-
}
|
|
1655
|
-
}, D = (
|
|
1656
|
-
|
|
1657
|
-
}, S = (
|
|
1616
|
+
f
|
|
1617
|
+
), U = (T) => {
|
|
1618
|
+
M || (w(T.target.checked), x == null || x(T.target.checked, T));
|
|
1619
|
+
}, q = (T) => {
|
|
1620
|
+
if (T.key === "Enter" && !M) {
|
|
1621
|
+
T.preventDefault();
|
|
1622
|
+
const P = !I;
|
|
1623
|
+
w(P), x == null || x(P);
|
|
1624
|
+
}
|
|
1625
|
+
}, D = (T) => {
|
|
1626
|
+
y || T.preventDefault();
|
|
1627
|
+
}, S = (T) => T.stopPropagation();
|
|
1658
1628
|
return /* @__PURE__ */ n.jsxs(
|
|
1659
1629
|
"label",
|
|
1660
1630
|
{
|
|
1661
1631
|
className: A,
|
|
1662
|
-
htmlFor:
|
|
1663
|
-
style:
|
|
1664
|
-
"data-testid":
|
|
1665
|
-
"data-clickable-label":
|
|
1632
|
+
htmlFor: a,
|
|
1633
|
+
style: h,
|
|
1634
|
+
"data-testid": v,
|
|
1635
|
+
"data-clickable-label": y,
|
|
1666
1636
|
children: [
|
|
1667
1637
|
/* @__PURE__ */ n.jsx("div", { className: xe.checkboxWrapper, children: /* @__PURE__ */ n.jsxs(
|
|
1668
1638
|
"div",
|
|
1669
1639
|
{
|
|
1670
1640
|
tabIndex: L || 0,
|
|
1671
1641
|
className: z,
|
|
1672
|
-
style:
|
|
1642
|
+
style: m,
|
|
1673
1643
|
onKeyDown: q,
|
|
1674
|
-
"aria-checked":
|
|
1675
|
-
"aria-disabled":
|
|
1676
|
-
"aria-invalid":
|
|
1677
|
-
"aria-describedby":
|
|
1678
|
-
"data-testid": `${
|
|
1644
|
+
"aria-checked": I,
|
|
1645
|
+
"aria-disabled": M,
|
|
1646
|
+
"aria-invalid": j,
|
|
1647
|
+
"aria-describedby": c ? `${a}-error` : void 0,
|
|
1648
|
+
"data-testid": `${v}-label`,
|
|
1679
1649
|
children: [
|
|
1680
1650
|
/* @__PURE__ */ n.jsx(
|
|
1681
1651
|
"input",
|
|
1682
1652
|
{
|
|
1683
|
-
ref:
|
|
1653
|
+
ref: r,
|
|
1684
1654
|
type: "checkbox",
|
|
1685
|
-
id:
|
|
1686
|
-
name:
|
|
1687
|
-
checked:
|
|
1688
|
-
disabled:
|
|
1655
|
+
id: a,
|
|
1656
|
+
name: a,
|
|
1657
|
+
checked: I,
|
|
1658
|
+
disabled: M,
|
|
1689
1659
|
className: xe.input,
|
|
1690
1660
|
onChange: U,
|
|
1691
1661
|
onClick: S,
|
|
1692
|
-
"aria-checked":
|
|
1693
|
-
"aria-invalid":
|
|
1694
|
-
"aria-describedby":
|
|
1695
|
-
"data-testid": `${
|
|
1662
|
+
"aria-checked": I,
|
|
1663
|
+
"aria-invalid": j,
|
|
1664
|
+
"aria-describedby": c ? `${a}-error` : void 0,
|
|
1665
|
+
"data-testid": `${v}-input`
|
|
1696
1666
|
}
|
|
1697
1667
|
),
|
|
1698
1668
|
/* @__PURE__ */ n.jsx(
|
|
1699
|
-
|
|
1669
|
+
Jn,
|
|
1700
1670
|
{
|
|
1701
|
-
name:
|
|
1671
|
+
name: a,
|
|
1702
1672
|
size: i,
|
|
1703
|
-
isChecked:
|
|
1704
|
-
isDisabled:
|
|
1705
|
-
indeterminate:
|
|
1706
|
-
dataTestId:
|
|
1673
|
+
isChecked: I,
|
|
1674
|
+
isDisabled: M,
|
|
1675
|
+
indeterminate: s,
|
|
1676
|
+
dataTestId: v
|
|
1707
1677
|
}
|
|
1708
1678
|
)
|
|
1709
1679
|
]
|
|
@@ -1712,8 +1682,8 @@ const Ha = 2, Ga = (e) => {
|
|
|
1712
1682
|
b && /* @__PURE__ */ n.jsx(
|
|
1713
1683
|
"span",
|
|
1714
1684
|
{
|
|
1715
|
-
"data-testid": `${
|
|
1716
|
-
"data-clickable-label":
|
|
1685
|
+
"data-testid": `${v}-label-text`,
|
|
1686
|
+
"data-clickable-label": y,
|
|
1717
1687
|
className: xe.label,
|
|
1718
1688
|
onClick: D,
|
|
1719
1689
|
children: b
|
|
@@ -1722,162 +1692,162 @@ const Ha = 2, Ga = (e) => {
|
|
|
1722
1692
|
]
|
|
1723
1693
|
}
|
|
1724
1694
|
);
|
|
1725
|
-
}),
|
|
1726
|
-
typography:
|
|
1727
|
-
disabled:
|
|
1728
|
-
primary:
|
|
1729
|
-
secondary:
|
|
1730
|
-
tertiary:
|
|
1731
|
-
accent:
|
|
1695
|
+
}), Kn = "_typography_zt7xg_1", Qn = "_disabled_zt7xg_8", es = "_primary_zt7xg_13", ts = "_secondary_zt7xg_18", rs = "_tertiary_zt7xg_23", as = "_accent_zt7xg_28", ns = "_positive_zt7xg_38", ss = "_negative_zt7xg_48", os = "_warning_zt7xg_58", is = "_special_zt7xg_68", ls = "_contrast_zt7xg_78", Oe = {
|
|
1696
|
+
typography: Kn,
|
|
1697
|
+
disabled: Qn,
|
|
1698
|
+
primary: es,
|
|
1699
|
+
secondary: ts,
|
|
1700
|
+
tertiary: rs,
|
|
1701
|
+
accent: as,
|
|
1732
1702
|
"accent-secondary": "_accent-secondary_zt7xg_33",
|
|
1733
|
-
positive:
|
|
1703
|
+
positive: ns,
|
|
1734
1704
|
"positive-secondary": "_positive-secondary_zt7xg_43",
|
|
1735
|
-
negative:
|
|
1705
|
+
negative: ss,
|
|
1736
1706
|
"negative-secondary": "_negative-secondary_zt7xg_53",
|
|
1737
|
-
warning:
|
|
1707
|
+
warning: os,
|
|
1738
1708
|
"warning-secondary": "_warning-secondary_zt7xg_63",
|
|
1739
|
-
special:
|
|
1709
|
+
special: is,
|
|
1740
1710
|
"special-secondary": "_special-secondary_zt7xg_73",
|
|
1741
|
-
contrast:
|
|
1711
|
+
contrast: ls,
|
|
1742
1712
|
"contrast-secondary": "_contrast-secondary_zt7xg_83"
|
|
1743
|
-
},
|
|
1713
|
+
}, cs = {
|
|
1744
1714
|
1: "h1",
|
|
1745
1715
|
2: "h2",
|
|
1746
1716
|
3: "h3",
|
|
1747
1717
|
4: "h4",
|
|
1748
1718
|
5: "h5"
|
|
1749
1719
|
}, Ot = (e) => {
|
|
1750
|
-
const
|
|
1720
|
+
const r = Vt.forwardRef(
|
|
1751
1721
|
({
|
|
1752
|
-
size:
|
|
1753
|
-
children:
|
|
1722
|
+
size: a = 3,
|
|
1723
|
+
children: o,
|
|
1754
1724
|
className: i,
|
|
1755
|
-
"data-testid":
|
|
1725
|
+
"data-testid": s,
|
|
1756
1726
|
as: l,
|
|
1757
|
-
fontWeight:
|
|
1758
|
-
disabled:
|
|
1759
|
-
typographyStyle:
|
|
1760
|
-
...
|
|
1761
|
-
},
|
|
1762
|
-
const
|
|
1727
|
+
fontWeight: c = "semibold",
|
|
1728
|
+
disabled: _ = !1,
|
|
1729
|
+
typographyStyle: p = "primary",
|
|
1730
|
+
...f
|
|
1731
|
+
}, h) => {
|
|
1732
|
+
const m = l || cs[a], b = k(
|
|
1763
1733
|
Oe.typography,
|
|
1764
|
-
ce[`typography-${e}-${
|
|
1765
|
-
Oe[
|
|
1734
|
+
ce[`typography-${e}-${a}-${c}`],
|
|
1735
|
+
Oe[p],
|
|
1766
1736
|
{
|
|
1767
|
-
[Oe.disabled]:
|
|
1737
|
+
[Oe.disabled]: _
|
|
1768
1738
|
},
|
|
1769
1739
|
i
|
|
1770
1740
|
);
|
|
1771
|
-
return
|
|
1741
|
+
return o ? /* @__PURE__ */ n.jsx(m, { ref: h, className: b, "data-testid": s, ...f, children: o }) : null;
|
|
1772
1742
|
}
|
|
1773
1743
|
);
|
|
1774
|
-
return
|
|
1744
|
+
return r.displayName = `Typography.${e === "title" ? "Title" : "Subtitle"}`, r;
|
|
1775
1745
|
}, Pt = (e) => {
|
|
1776
|
-
const
|
|
1746
|
+
const r = Vt.forwardRef(
|
|
1777
1747
|
({
|
|
1778
|
-
size:
|
|
1779
|
-
children:
|
|
1748
|
+
size: a = 3,
|
|
1749
|
+
children: o,
|
|
1780
1750
|
className: i,
|
|
1781
|
-
"data-testid":
|
|
1751
|
+
"data-testid": s,
|
|
1782
1752
|
as: l = "p",
|
|
1783
|
-
fontWeight:
|
|
1784
|
-
disabled:
|
|
1785
|
-
typographyStyle:
|
|
1786
|
-
...
|
|
1787
|
-
},
|
|
1788
|
-
const
|
|
1753
|
+
fontWeight: c = "regular",
|
|
1754
|
+
disabled: _ = !1,
|
|
1755
|
+
typographyStyle: p = "primary",
|
|
1756
|
+
...f
|
|
1757
|
+
}, h) => {
|
|
1758
|
+
const m = l, b = k(
|
|
1789
1759
|
Oe.typography,
|
|
1790
|
-
ce[`typography-${e}-${
|
|
1791
|
-
Oe[
|
|
1760
|
+
ce[`typography-${e}-${a}-${c}`],
|
|
1761
|
+
Oe[p],
|
|
1792
1762
|
{
|
|
1793
|
-
[Oe.disabled]:
|
|
1763
|
+
[Oe.disabled]: _
|
|
1794
1764
|
},
|
|
1795
1765
|
i
|
|
1796
1766
|
);
|
|
1797
|
-
return
|
|
1798
|
-
|
|
1767
|
+
return o ? /* @__PURE__ */ n.jsx(
|
|
1768
|
+
m,
|
|
1799
1769
|
{
|
|
1800
|
-
ref:
|
|
1770
|
+
ref: h,
|
|
1801
1771
|
className: b,
|
|
1802
|
-
"data-testid":
|
|
1803
|
-
...
|
|
1804
|
-
children:
|
|
1772
|
+
"data-testid": s,
|
|
1773
|
+
...f,
|
|
1774
|
+
children: o
|
|
1805
1775
|
}
|
|
1806
1776
|
) : null;
|
|
1807
1777
|
}
|
|
1808
1778
|
);
|
|
1809
|
-
return
|
|
1779
|
+
return r.displayName = `Typography.${e.charAt(0).toUpperCase() + e.slice(1)}`, r;
|
|
1810
1780
|
}, Bt = {
|
|
1811
1781
|
Title: Ot("title"),
|
|
1812
1782
|
Subtitle: Ot("subtitle"),
|
|
1813
1783
|
Label: Pt("label"),
|
|
1814
1784
|
Paragraph: Pt("paragraph")
|
|
1815
|
-
},
|
|
1816
|
-
inputBase:
|
|
1817
|
-
wrapper:
|
|
1785
|
+
}, ds = "_inputBase_1q54n_82", us = "_wrapper_1q54n_92", _s = "_gripHandle_1q54n_172", ps = "_error_1q54n_238", fs = "_tabFocused_1q54n_245", hs = "_disabled_1q54n_270", bs = "_loading_1q54n_277", gs = "_label_1q54n_287", ms = "_small_1q54n_301", ys = "_large_1q54n_308", vs = "_leftSection_1q54n_315", xs = "_rightSection_1q54n_327", ws = "_helper_1q54n_365", Cs = "_floatingLabel_1q54n_393", Ss = "_focused_1q54n_461", Ls = "_filled_1q54n_462", Es = "_medium_1q54n_503", js = "_characterLimit_1q54n_545", ks = "_input_1q54n_82", Ms = "_textarea_1q54n_110", Is = "_truncate_1q54n_678", $s = "_hint_1q54n_765", N = {
|
|
1786
|
+
inputBase: ds,
|
|
1787
|
+
wrapper: us,
|
|
1818
1788
|
"textarea-wrapper": "_textarea-wrapper_1q54n_110",
|
|
1819
|
-
gripHandle:
|
|
1820
|
-
error:
|
|
1821
|
-
tabFocused:
|
|
1822
|
-
disabled:
|
|
1823
|
-
loading:
|
|
1824
|
-
label:
|
|
1825
|
-
small:
|
|
1826
|
-
large:
|
|
1827
|
-
leftSection:
|
|
1828
|
-
rightSection:
|
|
1829
|
-
helper:
|
|
1830
|
-
floatingLabel:
|
|
1831
|
-
focused:
|
|
1832
|
-
filled:
|
|
1833
|
-
medium:
|
|
1834
|
-
characterLimit:
|
|
1835
|
-
input:
|
|
1836
|
-
textarea:
|
|
1789
|
+
gripHandle: _s,
|
|
1790
|
+
error: ps,
|
|
1791
|
+
tabFocused: fs,
|
|
1792
|
+
disabled: hs,
|
|
1793
|
+
loading: bs,
|
|
1794
|
+
label: gs,
|
|
1795
|
+
small: ms,
|
|
1796
|
+
large: ys,
|
|
1797
|
+
leftSection: vs,
|
|
1798
|
+
rightSection: xs,
|
|
1799
|
+
helper: ws,
|
|
1800
|
+
floatingLabel: Cs,
|
|
1801
|
+
focused: Ss,
|
|
1802
|
+
filled: Ls,
|
|
1803
|
+
medium: Es,
|
|
1804
|
+
characterLimit: js,
|
|
1805
|
+
input: ks,
|
|
1806
|
+
textarea: Ms,
|
|
1837
1807
|
"size-small": "_size-small_1q54n_627",
|
|
1838
1808
|
"size-medium": "_size-medium_1q54n_633",
|
|
1839
1809
|
"size-large": "_size-large_1q54n_639",
|
|
1840
1810
|
"with-floating-label": "_with-floating-label_1q54n_646",
|
|
1841
|
-
truncate:
|
|
1842
|
-
hint:
|
|
1811
|
+
truncate: Is,
|
|
1812
|
+
hint: $s,
|
|
1843
1813
|
"has-hint": "_has-hint_1q54n_786",
|
|
1844
1814
|
"has-suffix": "_has-suffix_1q54n_792",
|
|
1845
1815
|
"has-limit": "_has-limit_1q54n_798"
|
|
1846
|
-
},
|
|
1816
|
+
}, Ts = ({
|
|
1847
1817
|
width: e = 8,
|
|
1848
|
-
height:
|
|
1849
|
-
className:
|
|
1850
|
-
color:
|
|
1818
|
+
height: r = 8,
|
|
1819
|
+
className: a,
|
|
1820
|
+
color: o = "#AABBCA"
|
|
1851
1821
|
}) => /* @__PURE__ */ n.jsx(
|
|
1852
1822
|
"svg",
|
|
1853
1823
|
{
|
|
1854
1824
|
width: e,
|
|
1855
|
-
height:
|
|
1825
|
+
height: r,
|
|
1856
1826
|
viewBox: "0 0 8 8",
|
|
1857
1827
|
fill: "none",
|
|
1858
1828
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1859
|
-
className:
|
|
1829
|
+
className: a,
|
|
1860
1830
|
children: /* @__PURE__ */ n.jsx(
|
|
1861
1831
|
"path",
|
|
1862
1832
|
{
|
|
1863
1833
|
fillRule: "evenodd",
|
|
1864
1834
|
clipRule: "evenodd",
|
|
1865
1835
|
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",
|
|
1866
|
-
fill:
|
|
1836
|
+
fill: o
|
|
1867
1837
|
}
|
|
1868
1838
|
)
|
|
1869
1839
|
}
|
|
1870
|
-
),
|
|
1840
|
+
), Jt = ({
|
|
1871
1841
|
className: e = "",
|
|
1872
|
-
style:
|
|
1873
|
-
size:
|
|
1874
|
-
color:
|
|
1842
|
+
style: r,
|
|
1843
|
+
size: a = "md",
|
|
1844
|
+
color: o = "currentColor",
|
|
1875
1845
|
onClick: i,
|
|
1876
|
-
...
|
|
1846
|
+
...s
|
|
1877
1847
|
}) => {
|
|
1878
|
-
const
|
|
1848
|
+
const c = {
|
|
1879
1849
|
display: "inline-block",
|
|
1880
|
-
color:
|
|
1850
|
+
color: o,
|
|
1881
1851
|
...{
|
|
1882
1852
|
xxxs: { width: "8px", height: "8px" },
|
|
1883
1853
|
xxs: { width: "12px", height: "12px" },
|
|
@@ -1885,19 +1855,19 @@ const Ha = 2, Ga = (e) => {
|
|
|
1885
1855
|
sm: { width: "24px", height: "24px" },
|
|
1886
1856
|
md: { width: "32px", height: "32px" },
|
|
1887
1857
|
lg: { width: "40px", height: "40px" }
|
|
1888
|
-
}[
|
|
1889
|
-
...
|
|
1858
|
+
}[a],
|
|
1859
|
+
...r
|
|
1890
1860
|
};
|
|
1891
1861
|
return /* @__PURE__ */ n.jsx(
|
|
1892
1862
|
"svg",
|
|
1893
1863
|
{
|
|
1894
1864
|
className: e,
|
|
1895
|
-
style:
|
|
1865
|
+
style: c,
|
|
1896
1866
|
viewBox: "0 0 16 16",
|
|
1897
1867
|
fill: "none",
|
|
1898
1868
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1899
1869
|
onClick: i,
|
|
1900
|
-
...
|
|
1870
|
+
...s,
|
|
1901
1871
|
children: /* @__PURE__ */ n.jsx(
|
|
1902
1872
|
"path",
|
|
1903
1873
|
{
|
|
@@ -1910,96 +1880,96 @@ const Ha = 2, Ga = (e) => {
|
|
|
1910
1880
|
)
|
|
1911
1881
|
}
|
|
1912
1882
|
);
|
|
1913
|
-
},
|
|
1914
|
-
const
|
|
1883
|
+
}, Rs = (e, r) => {
|
|
1884
|
+
const a = Pe(null), o = Pe(null);
|
|
1915
1885
|
return oe(() => {
|
|
1916
|
-
const i =
|
|
1886
|
+
const i = r === "textarea" ? a.current : o.current;
|
|
1917
1887
|
i && i.value !== e && (i.value = e || "");
|
|
1918
|
-
}, [e,
|
|
1919
|
-
textareaRef:
|
|
1920
|
-
inputRef:
|
|
1921
|
-
currentRef:
|
|
1888
|
+
}, [e, r]), {
|
|
1889
|
+
textareaRef: a,
|
|
1890
|
+
inputRef: o,
|
|
1891
|
+
currentRef: r === "textarea" ? a : o
|
|
1922
1892
|
};
|
|
1923
|
-
},
|
|
1924
|
-
const
|
|
1925
|
-
if (!
|
|
1926
|
-
const i =
|
|
1927
|
-
if (
|
|
1928
|
-
const
|
|
1929
|
-
|
|
1930
|
-
const l =
|
|
1893
|
+
}, Ns = (e, r, a) => {
|
|
1894
|
+
const o = () => {
|
|
1895
|
+
if (!a.current || r !== "hug") return;
|
|
1896
|
+
const i = a.current.scrollTop;
|
|
1897
|
+
if (a.current.style.setProperty("height", "auto", "important"), !e) return;
|
|
1898
|
+
const s = a.current.scrollHeight + "px";
|
|
1899
|
+
a.current.style.setProperty("height", s, "important"), a.current.scrollTop = i;
|
|
1900
|
+
const l = a.current.closest(`.${N.wrapper}`);
|
|
1931
1901
|
l && (l.setAttribute("data-resize", "hug"), l.setAttribute("data-show-grip", "false"));
|
|
1932
1902
|
};
|
|
1933
|
-
return oe(
|
|
1934
|
-
|
|
1935
|
-
}, []), { resizeTextArea:
|
|
1936
|
-
},
|
|
1937
|
-
(
|
|
1938
|
-
if (!e ||
|
|
1939
|
-
|
|
1940
|
-
const l =
|
|
1903
|
+
return oe(o, [e, r]), oe(() => {
|
|
1904
|
+
r === "hug" && a.current && o();
|
|
1905
|
+
}, []), { resizeTextArea: o };
|
|
1906
|
+
}, As = (e, r, a, o) => ({ handleGripMouseDown: Se(
|
|
1907
|
+
(s) => {
|
|
1908
|
+
if (!e || r || a || !(o === "fixed" || !o)) return;
|
|
1909
|
+
s.preventDefault(), s.stopPropagation();
|
|
1910
|
+
const l = s.currentTarget.closest(`.${N.wrapper}`);
|
|
1941
1911
|
if (!l) return;
|
|
1942
|
-
const
|
|
1943
|
-
const
|
|
1944
|
-
l.style.height = `${
|
|
1945
|
-
},
|
|
1946
|
-
document.removeEventListener("mousemove",
|
|
1912
|
+
const c = s.clientY, _ = l.clientHeight, p = (h) => {
|
|
1913
|
+
const m = h.clientY - c, b = Math.min(100, _), y = Math.max(b, _ + m);
|
|
1914
|
+
l.style.height = `${y}px`;
|
|
1915
|
+
}, f = () => {
|
|
1916
|
+
document.removeEventListener("mousemove", p), document.removeEventListener("mouseup", f);
|
|
1947
1917
|
};
|
|
1948
|
-
document.addEventListener("mousemove",
|
|
1918
|
+
document.addEventListener("mousemove", p), document.addEventListener("mouseup", f);
|
|
1949
1919
|
},
|
|
1950
|
-
[e,
|
|
1951
|
-
) }), Ut = 30,
|
|
1920
|
+
[e, r, a, o]
|
|
1921
|
+
) }), Ut = 30, zs = K(
|
|
1952
1922
|
({
|
|
1953
1923
|
component: e = "input",
|
|
1954
|
-
size:
|
|
1955
|
-
value:
|
|
1956
|
-
placeholder:
|
|
1924
|
+
size: r = "medium",
|
|
1925
|
+
value: a = "",
|
|
1926
|
+
placeholder: o,
|
|
1957
1927
|
disabled: i = !1,
|
|
1958
|
-
loading:
|
|
1928
|
+
loading: s = !1,
|
|
1959
1929
|
onFocus: l,
|
|
1960
|
-
onBlur:
|
|
1961
|
-
onChange:
|
|
1962
|
-
onKeyDown:
|
|
1963
|
-
onKeyUp:
|
|
1964
|
-
maxLength:
|
|
1965
|
-
className:
|
|
1930
|
+
onBlur: c,
|
|
1931
|
+
onChange: _,
|
|
1932
|
+
onKeyDown: p,
|
|
1933
|
+
onKeyUp: f,
|
|
1934
|
+
maxLength: h,
|
|
1935
|
+
className: m,
|
|
1966
1936
|
style: b,
|
|
1967
|
-
truncate:
|
|
1937
|
+
truncate: y = !1,
|
|
1968
1938
|
shouldShowFloatingLabelClass: L = !1,
|
|
1969
1939
|
"aria-invalid": x,
|
|
1970
|
-
"aria-errormessage":
|
|
1971
|
-
id:
|
|
1972
|
-
resize:
|
|
1940
|
+
"aria-errormessage": v,
|
|
1941
|
+
id: d,
|
|
1942
|
+
resize: w,
|
|
1973
1943
|
...C
|
|
1974
|
-
},
|
|
1975
|
-
const { textareaRef:
|
|
1976
|
-
if (
|
|
1944
|
+
}, M) => {
|
|
1945
|
+
const { textareaRef: j, inputRef: I, currentRef: A } = Rs(a, e);
|
|
1946
|
+
if (Ns(a, w, j), jr(M, () => A.current, [A]), e === "textarea")
|
|
1977
1947
|
return /* @__PURE__ */ n.jsx(
|
|
1978
1948
|
"textarea",
|
|
1979
1949
|
{
|
|
1980
|
-
ref:
|
|
1981
|
-
id:
|
|
1982
|
-
value:
|
|
1983
|
-
placeholder:
|
|
1984
|
-
disabled: i ||
|
|
1950
|
+
ref: j,
|
|
1951
|
+
id: d,
|
|
1952
|
+
value: a,
|
|
1953
|
+
placeholder: o,
|
|
1954
|
+
disabled: i || s,
|
|
1985
1955
|
onFocus: l,
|
|
1986
|
-
onBlur:
|
|
1987
|
-
onChange:
|
|
1988
|
-
onKeyDown:
|
|
1989
|
-
onKeyUp:
|
|
1990
|
-
maxLength:
|
|
1991
|
-
className:
|
|
1956
|
+
onBlur: c,
|
|
1957
|
+
onChange: _,
|
|
1958
|
+
onKeyDown: p,
|
|
1959
|
+
onKeyUp: f,
|
|
1960
|
+
maxLength: h,
|
|
1961
|
+
className: k(
|
|
1992
1962
|
N.textarea,
|
|
1993
|
-
N[`size-${
|
|
1963
|
+
N[`size-${r}`],
|
|
1994
1964
|
L && N["with-floating-label"],
|
|
1995
|
-
|
|
1965
|
+
m
|
|
1996
1966
|
),
|
|
1997
1967
|
style: b,
|
|
1998
1968
|
"aria-invalid": x,
|
|
1999
|
-
"aria-errormessage":
|
|
2000
|
-
"aria-describedby":
|
|
1969
|
+
"aria-errormessage": v,
|
|
1970
|
+
"aria-describedby": v ? `${d}-error` : void 0,
|
|
2001
1971
|
tabIndex: 0,
|
|
2002
|
-
"data-resize":
|
|
1972
|
+
"data-resize": w,
|
|
2003
1973
|
...C
|
|
2004
1974
|
}
|
|
2005
1975
|
);
|
|
@@ -2007,28 +1977,28 @@ const Ha = 2, Ga = (e) => {
|
|
|
2007
1977
|
return /* @__PURE__ */ n.jsx(
|
|
2008
1978
|
"input",
|
|
2009
1979
|
{
|
|
2010
|
-
ref:
|
|
2011
|
-
id:
|
|
2012
|
-
value:
|
|
2013
|
-
placeholder:
|
|
2014
|
-
disabled: i ||
|
|
1980
|
+
ref: I,
|
|
1981
|
+
id: d,
|
|
1982
|
+
value: a,
|
|
1983
|
+
placeholder: o,
|
|
1984
|
+
disabled: i || s,
|
|
2015
1985
|
onFocus: l,
|
|
2016
|
-
onBlur:
|
|
2017
|
-
onChange:
|
|
2018
|
-
onKeyDown:
|
|
2019
|
-
onKeyUp:
|
|
2020
|
-
maxLength:
|
|
2021
|
-
className:
|
|
1986
|
+
onBlur: c,
|
|
1987
|
+
onChange: _,
|
|
1988
|
+
onKeyDown: p,
|
|
1989
|
+
onKeyUp: f,
|
|
1990
|
+
maxLength: h,
|
|
1991
|
+
className: k(
|
|
2022
1992
|
N.input,
|
|
2023
|
-
N[`size-${
|
|
1993
|
+
N[`size-${r}`],
|
|
2024
1994
|
L && N["with-floating-label"],
|
|
2025
|
-
|
|
2026
|
-
|
|
1995
|
+
y && N.truncate,
|
|
1996
|
+
m
|
|
2027
1997
|
),
|
|
2028
1998
|
style: b,
|
|
2029
1999
|
"aria-invalid": x,
|
|
2030
|
-
"aria-errormessage":
|
|
2031
|
-
"aria-describedby":
|
|
2000
|
+
"aria-errormessage": v,
|
|
2001
|
+
"aria-describedby": v ? `${d}-error` : void 0,
|
|
2032
2002
|
tabIndex: 0,
|
|
2033
2003
|
...C
|
|
2034
2004
|
}
|
|
@@ -2038,84 +2008,84 @@ const Ha = 2, Ga = (e) => {
|
|
|
2038
2008
|
`[Input] Недопустимое значение prop 'component': "${String(e)}". Допустимые значения: 'input', 'textarea'`
|
|
2039
2009
|
), null;
|
|
2040
2010
|
}
|
|
2041
|
-
),
|
|
2011
|
+
), Kt = K(
|
|
2042
2012
|
({
|
|
2043
2013
|
children: e,
|
|
2044
|
-
size:
|
|
2045
|
-
error:
|
|
2046
|
-
disabled:
|
|
2014
|
+
size: r = "medium",
|
|
2015
|
+
error: a = !1,
|
|
2016
|
+
disabled: o = !1,
|
|
2047
2017
|
loading: i = !1,
|
|
2048
|
-
className:
|
|
2018
|
+
className: s,
|
|
2049
2019
|
wrapperProps: l,
|
|
2050
|
-
wrapperStyles:
|
|
2051
|
-
floatingLabelStyles:
|
|
2052
|
-
prefixStyles:
|
|
2053
|
-
suffixStyles:
|
|
2054
|
-
labelProps:
|
|
2055
|
-
helperProps:
|
|
2020
|
+
wrapperStyles: c,
|
|
2021
|
+
floatingLabelStyles: _,
|
|
2022
|
+
prefixStyles: p,
|
|
2023
|
+
suffixStyles: f,
|
|
2024
|
+
labelProps: h,
|
|
2025
|
+
helperProps: m,
|
|
2056
2026
|
showLimit: b = !1,
|
|
2057
|
-
maxLength:
|
|
2027
|
+
maxLength: y,
|
|
2058
2028
|
hint: L,
|
|
2059
2029
|
showHint: x = !1,
|
|
2060
|
-
showHintOnEmpty:
|
|
2061
|
-
prefix:
|
|
2062
|
-
suffix:
|
|
2030
|
+
showHintOnEmpty: v = !1,
|
|
2031
|
+
prefix: d,
|
|
2032
|
+
suffix: w,
|
|
2063
2033
|
onSuffixClick: C,
|
|
2064
|
-
placeholder:
|
|
2065
|
-
showLabel:
|
|
2066
|
-
labelClassName:
|
|
2034
|
+
placeholder: M,
|
|
2035
|
+
showLabel: j = !0,
|
|
2036
|
+
labelClassName: I,
|
|
2067
2037
|
hasValue: A = !1,
|
|
2068
2038
|
helper: z,
|
|
2069
2039
|
id: U,
|
|
2070
2040
|
value: q = "",
|
|
2071
2041
|
resize: D,
|
|
2072
2042
|
showGrip: S = !1,
|
|
2073
|
-
...
|
|
2043
|
+
...T
|
|
2074
2044
|
}, P) => {
|
|
2075
|
-
const F = pt(),
|
|
2045
|
+
const F = pt(), H = U || F, Q = x && L && (A || v), ie = L && L.length > Ut ? L.substring(0, Ut) + "..." : L, Y = k(
|
|
2076
2046
|
N.wrapper,
|
|
2077
|
-
|
|
2078
|
-
|
|
2047
|
+
a && N.error,
|
|
2048
|
+
o && N.disabled,
|
|
2079
2049
|
i && N.loading,
|
|
2080
2050
|
Q && N["has-hint"],
|
|
2081
|
-
|
|
2051
|
+
w && N["has-suffix"],
|
|
2082
2052
|
b && N["has-limit"],
|
|
2083
|
-
|
|
2084
|
-
), ue =
|
|
2053
|
+
s
|
|
2054
|
+
), ue = k(
|
|
2085
2055
|
N.floatingLabel,
|
|
2086
|
-
N[
|
|
2056
|
+
N[r],
|
|
2087
2057
|
A && N.filled,
|
|
2088
|
-
|
|
2089
|
-
), { handleGripMouseDown: ee } =
|
|
2090
|
-
return /* @__PURE__ */ n.jsxs("div", { ref: P, className: N.inputBase, "data-testid": "input-base-wrapper", ...
|
|
2058
|
+
I
|
|
2059
|
+
), { handleGripMouseDown: ee } = As(S, o, i, D);
|
|
2060
|
+
return /* @__PURE__ */ n.jsxs("div", { ref: P, className: N.inputBase, "data-testid": "input-base-wrapper", ...T, children: [
|
|
2091
2061
|
/* @__PURE__ */ n.jsxs(
|
|
2092
2062
|
"div",
|
|
2093
2063
|
{
|
|
2094
|
-
className:
|
|
2095
|
-
style:
|
|
2064
|
+
className: Y,
|
|
2065
|
+
style: c,
|
|
2096
2066
|
"data-resize": D,
|
|
2097
2067
|
"data-show-grip": S ? "true" : "false",
|
|
2098
2068
|
...l,
|
|
2099
2069
|
children: [
|
|
2100
|
-
|
|
2101
|
-
|
|
2070
|
+
d && /* @__PURE__ */ n.jsx("label", { htmlFor: H, className: N.leftSection, style: p, children: d }),
|
|
2071
|
+
w && /* @__PURE__ */ n.jsx(
|
|
2102
2072
|
"label",
|
|
2103
2073
|
{
|
|
2104
|
-
htmlFor:
|
|
2074
|
+
htmlFor: H,
|
|
2105
2075
|
className: N.rightSection,
|
|
2106
|
-
style:
|
|
2076
|
+
style: f,
|
|
2107
2077
|
onClick: C,
|
|
2108
|
-
children:
|
|
2078
|
+
children: w
|
|
2109
2079
|
}
|
|
2110
2080
|
),
|
|
2111
|
-
|
|
2081
|
+
M && j && /* @__PURE__ */ n.jsx(
|
|
2112
2082
|
"label",
|
|
2113
2083
|
{
|
|
2114
|
-
htmlFor:
|
|
2084
|
+
htmlFor: H,
|
|
2115
2085
|
className: ue,
|
|
2116
|
-
style:
|
|
2117
|
-
...
|
|
2118
|
-
children:
|
|
2086
|
+
style: _,
|
|
2087
|
+
...h,
|
|
2088
|
+
children: M
|
|
2119
2089
|
}
|
|
2120
2090
|
),
|
|
2121
2091
|
e,
|
|
@@ -2127,21 +2097,21 @@ const Ha = 2, Ga = (e) => {
|
|
|
2127
2097
|
role: "button",
|
|
2128
2098
|
tabIndex: -1,
|
|
2129
2099
|
"aria-label": "Изменить размер",
|
|
2130
|
-
children: /* @__PURE__ */ n.jsx(
|
|
2100
|
+
children: /* @__PURE__ */ n.jsx(Ts, {})
|
|
2131
2101
|
}
|
|
2132
2102
|
),
|
|
2133
2103
|
Q && /* @__PURE__ */ n.jsx(
|
|
2134
2104
|
"div",
|
|
2135
2105
|
{
|
|
2136
|
-
className:
|
|
2137
|
-
"data-disabled":
|
|
2106
|
+
className: k(N.hint, A && N.truncate),
|
|
2107
|
+
"data-disabled": o || i,
|
|
2138
2108
|
children: ie
|
|
2139
2109
|
}
|
|
2140
2110
|
),
|
|
2141
|
-
b &&
|
|
2111
|
+
b && y && /* @__PURE__ */ n.jsxs("div", { className: N.characterLimit, children: [
|
|
2142
2112
|
(q || "").length,
|
|
2143
2113
|
" из ",
|
|
2144
|
-
|
|
2114
|
+
y
|
|
2145
2115
|
] })
|
|
2146
2116
|
]
|
|
2147
2117
|
}
|
|
@@ -2149,163 +2119,163 @@ const Ha = 2, Ga = (e) => {
|
|
|
2149
2119
|
z && /* @__PURE__ */ n.jsx(
|
|
2150
2120
|
"div",
|
|
2151
2121
|
{
|
|
2152
|
-
className:
|
|
2122
|
+
className: k(
|
|
2153
2123
|
N.helper,
|
|
2154
|
-
|
|
2155
|
-
(
|
|
2124
|
+
a && N.error,
|
|
2125
|
+
(o || i) && N.disabled
|
|
2156
2126
|
),
|
|
2157
|
-
...
|
|
2158
|
-
id:
|
|
2127
|
+
...m,
|
|
2128
|
+
id: a ? `${H}-error` : void 0,
|
|
2159
2129
|
children: z
|
|
2160
2130
|
}
|
|
2161
2131
|
)
|
|
2162
2132
|
] });
|
|
2163
2133
|
}
|
|
2164
2134
|
);
|
|
2165
|
-
|
|
2166
|
-
const Ft = Object.assign(
|
|
2167
|
-
Wrapper:
|
|
2168
|
-
}),
|
|
2135
|
+
Kt.displayName = "InputWrapperComponent";
|
|
2136
|
+
const Ft = Object.assign(zs, {
|
|
2137
|
+
Wrapper: Kt
|
|
2138
|
+
}), Qt = K(
|
|
2169
2139
|
({
|
|
2170
2140
|
component: e = "input",
|
|
2171
|
-
size:
|
|
2172
|
-
className:
|
|
2173
|
-
error:
|
|
2141
|
+
size: r = "medium",
|
|
2142
|
+
className: a,
|
|
2143
|
+
error: o = !1,
|
|
2174
2144
|
disabled: i = !1,
|
|
2175
|
-
loading:
|
|
2145
|
+
loading: s = !1,
|
|
2176
2146
|
placeholder: l,
|
|
2177
|
-
showLabel:
|
|
2178
|
-
labelClassName:
|
|
2179
|
-
helper:
|
|
2180
|
-
prefix:
|
|
2181
|
-
suffix:
|
|
2182
|
-
id:
|
|
2147
|
+
showLabel: c = !0,
|
|
2148
|
+
labelClassName: _,
|
|
2149
|
+
helper: p,
|
|
2150
|
+
prefix: f,
|
|
2151
|
+
suffix: h,
|
|
2152
|
+
id: m,
|
|
2183
2153
|
onFocus: b,
|
|
2184
|
-
onBlur:
|
|
2154
|
+
onBlur: y,
|
|
2185
2155
|
onKeyDown: L,
|
|
2186
2156
|
onSuffixClick: x,
|
|
2187
|
-
onChange:
|
|
2188
|
-
value:
|
|
2189
|
-
wrapperProps:
|
|
2157
|
+
onChange: v,
|
|
2158
|
+
value: d = "",
|
|
2159
|
+
wrapperProps: w,
|
|
2190
2160
|
wrapperStyles: C,
|
|
2191
|
-
floatingLabelStyles:
|
|
2192
|
-
prefixStyles:
|
|
2193
|
-
suffixStyles:
|
|
2161
|
+
floatingLabelStyles: M,
|
|
2162
|
+
prefixStyles: j,
|
|
2163
|
+
suffixStyles: I,
|
|
2194
2164
|
textareaStyles: A,
|
|
2195
2165
|
labelProps: z,
|
|
2196
2166
|
helperProps: U,
|
|
2197
2167
|
showLimit: q = !1,
|
|
2198
2168
|
maxLength: D,
|
|
2199
2169
|
inputProps: S,
|
|
2200
|
-
hint:
|
|
2170
|
+
hint: T,
|
|
2201
2171
|
showHint: P = !1,
|
|
2202
2172
|
showHintOnEmpty: F = !1,
|
|
2203
|
-
truncate:
|
|
2173
|
+
truncate: H = !1,
|
|
2204
2174
|
resize: Q,
|
|
2205
2175
|
showGrip: ie = !1,
|
|
2206
|
-
...
|
|
2176
|
+
...Y
|
|
2207
2177
|
}, ue) => {
|
|
2208
|
-
const ee = pt(), Ce =
|
|
2209
|
-
(
|
|
2210
|
-
var
|
|
2211
|
-
i ||
|
|
2178
|
+
const ee = pt(), Ce = m || ee, [Be, me] = de(d), Me = d !== void 0 ? d : Be, Ie = (Me || "").length > 0, Ee = Me || "", $e = c && (r === "large" || e === "textarea") && !f, Ke = Se(
|
|
2179
|
+
(Z) => {
|
|
2180
|
+
var X;
|
|
2181
|
+
i || s || (b == null || b(), (X = S == null ? void 0 : S.onFocus) == null || X.call(
|
|
2212
2182
|
S,
|
|
2213
|
-
|
|
2183
|
+
Z
|
|
2214
2184
|
));
|
|
2215
2185
|
},
|
|
2216
|
-
[b, S, i,
|
|
2217
|
-
),
|
|
2218
|
-
(
|
|
2219
|
-
var
|
|
2220
|
-
if (
|
|
2221
|
-
const be =
|
|
2186
|
+
[b, S, i, s]
|
|
2187
|
+
), He = Se(
|
|
2188
|
+
(Z) => {
|
|
2189
|
+
var X;
|
|
2190
|
+
if (Z.key === "Tab") {
|
|
2191
|
+
const be = Z.target.closest(`.${N.wrapper}`);
|
|
2222
2192
|
be && be.classList.add(N.tabFocused);
|
|
2223
2193
|
}
|
|
2224
|
-
(
|
|
2194
|
+
(X = S == null ? void 0 : S.onKeyUp) == null || X.call(
|
|
2225
2195
|
S,
|
|
2226
|
-
|
|
2196
|
+
Z
|
|
2227
2197
|
);
|
|
2228
2198
|
},
|
|
2229
2199
|
[S]
|
|
2230
2200
|
), Qe = Se(
|
|
2231
|
-
(
|
|
2201
|
+
(Z) => {
|
|
2232
2202
|
var be;
|
|
2233
|
-
const
|
|
2234
|
-
|
|
2203
|
+
const X = Z.target.closest(`.${N.wrapper}`);
|
|
2204
|
+
X && X.classList.remove(N.tabFocused), y == null || y(), (be = S == null ? void 0 : S.onBlur) == null || be.call(
|
|
2235
2205
|
S,
|
|
2236
|
-
|
|
2206
|
+
Z
|
|
2237
2207
|
);
|
|
2238
2208
|
},
|
|
2239
|
-
[
|
|
2209
|
+
[y, S]
|
|
2240
2210
|
), et = Se(
|
|
2241
|
-
(
|
|
2211
|
+
(Z) => {
|
|
2242
2212
|
var be;
|
|
2243
|
-
if (i ||
|
|
2244
|
-
const
|
|
2245
|
-
me(
|
|
2213
|
+
if (i || s) return;
|
|
2214
|
+
const X = Z.target.value;
|
|
2215
|
+
me(X), v == null || v(X, Z), (be = S == null ? void 0 : S.onChange) == null || be.call(
|
|
2246
2216
|
S,
|
|
2247
|
-
|
|
2217
|
+
Z
|
|
2248
2218
|
);
|
|
2249
2219
|
},
|
|
2250
|
-
[
|
|
2220
|
+
[v, S, i, s]
|
|
2251
2221
|
);
|
|
2252
2222
|
return oe(() => {
|
|
2253
|
-
me(
|
|
2254
|
-
}, [
|
|
2223
|
+
me(d || "");
|
|
2224
|
+
}, [d]), /* @__PURE__ */ n.jsx(
|
|
2255
2225
|
Ft.Wrapper,
|
|
2256
2226
|
{
|
|
2257
2227
|
ref: ue,
|
|
2258
|
-
size:
|
|
2259
|
-
error:
|
|
2260
|
-
disabled: i ||
|
|
2261
|
-
loading:
|
|
2262
|
-
className:
|
|
2263
|
-
wrapperProps:
|
|
2228
|
+
size: r,
|
|
2229
|
+
error: o,
|
|
2230
|
+
disabled: i || s,
|
|
2231
|
+
loading: s,
|
|
2232
|
+
className: k(a, e === "textarea" && N["textarea-wrapper"]),
|
|
2233
|
+
wrapperProps: w,
|
|
2264
2234
|
wrapperStyles: C,
|
|
2265
|
-
floatingLabelStyles:
|
|
2266
|
-
prefixStyles:
|
|
2267
|
-
suffixStyles:
|
|
2235
|
+
floatingLabelStyles: M,
|
|
2236
|
+
prefixStyles: j,
|
|
2237
|
+
suffixStyles: I,
|
|
2268
2238
|
labelProps: z,
|
|
2269
2239
|
helperProps: U,
|
|
2270
2240
|
showLimit: q,
|
|
2271
2241
|
maxLength: D,
|
|
2272
|
-
hint:
|
|
2242
|
+
hint: T,
|
|
2273
2243
|
showHint: P,
|
|
2274
2244
|
showHintOnEmpty: F,
|
|
2275
|
-
prefix:
|
|
2276
|
-
suffix:
|
|
2245
|
+
prefix: f,
|
|
2246
|
+
suffix: h,
|
|
2277
2247
|
onSuffixClick: x,
|
|
2278
2248
|
placeholder: l,
|
|
2279
|
-
showLabel:
|
|
2280
|
-
labelClassName:
|
|
2281
|
-
hasValue:
|
|
2282
|
-
helper:
|
|
2249
|
+
showLabel: c,
|
|
2250
|
+
labelClassName: _,
|
|
2251
|
+
hasValue: Ie,
|
|
2252
|
+
helper: p,
|
|
2283
2253
|
id: Ce,
|
|
2284
2254
|
value: Ee,
|
|
2285
2255
|
showGrip: ie,
|
|
2286
2256
|
resize: Q,
|
|
2287
|
-
...
|
|
2257
|
+
...Y,
|
|
2288
2258
|
children: /* @__PURE__ */ n.jsx(
|
|
2289
2259
|
Ft,
|
|
2290
2260
|
{
|
|
2291
2261
|
component: e,
|
|
2292
|
-
size:
|
|
2262
|
+
size: r,
|
|
2293
2263
|
value: Ee,
|
|
2294
2264
|
placeholder: l,
|
|
2295
2265
|
disabled: i,
|
|
2296
|
-
loading:
|
|
2297
|
-
onFocus:
|
|
2266
|
+
loading: s,
|
|
2267
|
+
onFocus: Ke,
|
|
2298
2268
|
onBlur: Qe,
|
|
2299
2269
|
onChange: et,
|
|
2300
2270
|
onKeyDown: L,
|
|
2301
|
-
onKeyUp:
|
|
2271
|
+
onKeyUp: He,
|
|
2302
2272
|
maxLength: D,
|
|
2303
|
-
truncate:
|
|
2304
|
-
"data-empty": !
|
|
2305
|
-
shouldShowFloatingLabelClass:
|
|
2273
|
+
truncate: H,
|
|
2274
|
+
"data-empty": !Ie,
|
|
2275
|
+
shouldShowFloatingLabelClass: $e,
|
|
2306
2276
|
style: e === "textarea" ? A : void 0,
|
|
2307
|
-
"aria-invalid": !!
|
|
2308
|
-
"aria-errormessage":
|
|
2277
|
+
"aria-invalid": !!o,
|
|
2278
|
+
"aria-errormessage": o ? `${Ce}-error` : void 0,
|
|
2309
2279
|
id: Ce,
|
|
2310
2280
|
resize: Q,
|
|
2311
2281
|
...S
|
|
@@ -2318,18 +2288,18 @@ const Ft = Object.assign(Dn, {
|
|
|
2318
2288
|
SMALL: "small",
|
|
2319
2289
|
MEDIUM: "medium",
|
|
2320
2290
|
LARGE: "large"
|
|
2321
|
-
},
|
|
2291
|
+
}, Ds = (e, r, a, o) => {
|
|
2322
2292
|
switch (e) {
|
|
2323
2293
|
case re.LARGE:
|
|
2324
|
-
return
|
|
2294
|
+
return r && a ? "8px 16px 8px 16px" : "16px 16px 16px 16px";
|
|
2325
2295
|
case re.MEDIUM:
|
|
2326
|
-
return
|
|
2296
|
+
return o ? "12px 12px 12px 12px" : "12px 12px 12px 16px";
|
|
2327
2297
|
case re.SMALL:
|
|
2328
2298
|
return "10px 12px 10px 12px";
|
|
2329
2299
|
default:
|
|
2330
2300
|
return "12px 16px 12px 16px";
|
|
2331
2301
|
}
|
|
2332
|
-
},
|
|
2302
|
+
}, Os = (e) => {
|
|
2333
2303
|
switch (e) {
|
|
2334
2304
|
case re.LARGE:
|
|
2335
2305
|
return "56px";
|
|
@@ -2340,7 +2310,7 @@ const Ft = Object.assign(Dn, {
|
|
|
2340
2310
|
default:
|
|
2341
2311
|
return "48px";
|
|
2342
2312
|
}
|
|
2343
|
-
},
|
|
2313
|
+
}, Ps = (e) => {
|
|
2344
2314
|
switch (e) {
|
|
2345
2315
|
case re.SMALL:
|
|
2346
2316
|
return 8;
|
|
@@ -2352,65 +2322,65 @@ const Ft = Object.assign(Dn, {
|
|
|
2352
2322
|
default:
|
|
2353
2323
|
return 12;
|
|
2354
2324
|
}
|
|
2355
|
-
},
|
|
2325
|
+
}, Bs = (e, r, a) => ({
|
|
2356
2326
|
wrapperStyles: {
|
|
2357
2327
|
height: e,
|
|
2358
2328
|
minHeight: e,
|
|
2359
2329
|
maxHeight: e,
|
|
2360
2330
|
boxSizing: "border-box",
|
|
2361
|
-
padding:
|
|
2331
|
+
padding: r
|
|
2362
2332
|
},
|
|
2363
2333
|
floatingLabelStyles: {
|
|
2364
2334
|
left: "16px",
|
|
2365
2335
|
transformOrigin: "left top"
|
|
2366
2336
|
},
|
|
2367
2337
|
prefixStyles: {
|
|
2368
|
-
paddingRight: `${
|
|
2338
|
+
paddingRight: `${a}px`
|
|
2369
2339
|
},
|
|
2370
2340
|
suffixStyles: {
|
|
2371
|
-
right: `${
|
|
2341
|
+
right: `${a}px`
|
|
2372
2342
|
}
|
|
2373
|
-
}),
|
|
2343
|
+
}), Us = (e, r, a) => ({
|
|
2374
2344
|
wrapperStyles: {
|
|
2375
2345
|
minHeight: e,
|
|
2376
2346
|
maxHeight: e,
|
|
2377
2347
|
boxSizing: "border-box",
|
|
2378
|
-
padding:
|
|
2348
|
+
padding: r
|
|
2379
2349
|
},
|
|
2380
2350
|
floatingLabelStyles: {
|
|
2381
2351
|
left: "16px"
|
|
2382
2352
|
},
|
|
2383
2353
|
prefixStyles: {
|
|
2384
|
-
paddingRight: `${
|
|
2354
|
+
paddingRight: `${a}px`
|
|
2385
2355
|
},
|
|
2386
2356
|
suffixStyles: {
|
|
2387
|
-
right: `${
|
|
2357
|
+
right: `${a}px`
|
|
2388
2358
|
}
|
|
2389
|
-
}),
|
|
2359
|
+
}), Fs = (e, r, a) => ({
|
|
2390
2360
|
wrapperStyles: {
|
|
2391
2361
|
minHeight: e,
|
|
2392
2362
|
maxHeight: e,
|
|
2393
2363
|
boxSizing: "border-box",
|
|
2394
|
-
padding:
|
|
2364
|
+
padding: r
|
|
2395
2365
|
},
|
|
2396
2366
|
floatingLabelStyles: {
|
|
2397
2367
|
left: "12px"
|
|
2398
2368
|
},
|
|
2399
2369
|
prefixStyles: {
|
|
2400
|
-
paddingRight: `${
|
|
2370
|
+
paddingRight: `${a}px`
|
|
2401
2371
|
},
|
|
2402
2372
|
suffixStyles: {
|
|
2403
|
-
right: `${
|
|
2373
|
+
right: `${a}px`
|
|
2404
2374
|
}
|
|
2405
|
-
}),
|
|
2406
|
-
const i =
|
|
2375
|
+
}), qs = (e, r, a, o) => {
|
|
2376
|
+
const i = Os(e), s = Ds(e, r, a, o), l = Ps(e);
|
|
2407
2377
|
switch (e) {
|
|
2408
2378
|
case re.LARGE:
|
|
2409
|
-
return
|
|
2379
|
+
return Bs(i, s, l);
|
|
2410
2380
|
case re.MEDIUM:
|
|
2411
|
-
return
|
|
2381
|
+
return Us(i, s, l);
|
|
2412
2382
|
case re.SMALL:
|
|
2413
|
-
return
|
|
2383
|
+
return Fs(i, s, l);
|
|
2414
2384
|
default:
|
|
2415
2385
|
return {
|
|
2416
2386
|
wrapperStyles: {},
|
|
@@ -2419,85 +2389,85 @@ const Ft = Object.assign(Dn, {
|
|
|
2419
2389
|
suffixStyles: {}
|
|
2420
2390
|
};
|
|
2421
2391
|
}
|
|
2422
|
-
},
|
|
2392
|
+
}, Ki = K(
|
|
2423
2393
|
({
|
|
2424
2394
|
value: e = "",
|
|
2425
|
-
onChange:
|
|
2426
|
-
type:
|
|
2427
|
-
placeholder:
|
|
2395
|
+
onChange: r,
|
|
2396
|
+
type: a = "text",
|
|
2397
|
+
placeholder: o,
|
|
2428
2398
|
maxLength: i,
|
|
2429
|
-
minLength:
|
|
2399
|
+
minLength: s,
|
|
2430
2400
|
autoComplete: l,
|
|
2431
|
-
autoFocus:
|
|
2432
|
-
size:
|
|
2433
|
-
inputProps:
|
|
2434
|
-
error:
|
|
2435
|
-
disabled:
|
|
2436
|
-
loading:
|
|
2401
|
+
autoFocus: c,
|
|
2402
|
+
size: _ = re.MEDIUM,
|
|
2403
|
+
inputProps: p,
|
|
2404
|
+
error: f,
|
|
2405
|
+
disabled: h,
|
|
2406
|
+
loading: m,
|
|
2437
2407
|
helper: b,
|
|
2438
|
-
prefix:
|
|
2408
|
+
prefix: y,
|
|
2439
2409
|
suffix: L,
|
|
2440
2410
|
clearable: x = !1,
|
|
2441
|
-
id:
|
|
2442
|
-
showLabel:
|
|
2443
|
-
onFocus:
|
|
2411
|
+
id: v,
|
|
2412
|
+
showLabel: d = !0,
|
|
2413
|
+
onFocus: w,
|
|
2444
2414
|
onBlur: C,
|
|
2445
|
-
onSuffixClick:
|
|
2446
|
-
onClear:
|
|
2447
|
-
className:
|
|
2415
|
+
onSuffixClick: M,
|
|
2416
|
+
onClear: j,
|
|
2417
|
+
className: I,
|
|
2448
2418
|
truncate: A = !0,
|
|
2449
2419
|
hint: z,
|
|
2450
2420
|
showHint: U = !1,
|
|
2451
2421
|
showHintOnEmpty: q = !1,
|
|
2452
2422
|
wrapperProps: D,
|
|
2453
2423
|
labelProps: S,
|
|
2454
|
-
helperProps:
|
|
2424
|
+
helperProps: T,
|
|
2455
2425
|
...P
|
|
2456
2426
|
}, F) => {
|
|
2457
|
-
const
|
|
2458
|
-
|
|
2427
|
+
const H = (e || "").length > 0, Q = _ === re.LARGE, ie = !!y, Y = Q && d && !y, ue = x && H && !(h || m), ee = () => {
|
|
2428
|
+
r == null || r(""), j == null || j();
|
|
2459
2429
|
}, Ce = ue ? /* @__PURE__ */ n.jsx(
|
|
2460
|
-
|
|
2430
|
+
Jt,
|
|
2461
2431
|
{
|
|
2462
|
-
size:
|
|
2432
|
+
size: _ === re.SMALL ? "xs" : "sm",
|
|
2463
2433
|
color: "var(--icon-secondary)",
|
|
2464
2434
|
onClick: ee,
|
|
2465
2435
|
style: { cursor: "pointer" },
|
|
2466
2436
|
"data-testid": "x-icon"
|
|
2467
2437
|
}
|
|
2468
2438
|
) : L, Be = {
|
|
2469
|
-
type:
|
|
2470
|
-
minLength:
|
|
2439
|
+
type: a,
|
|
2440
|
+
minLength: s,
|
|
2471
2441
|
autoComplete: l,
|
|
2472
|
-
autoFocus:
|
|
2473
|
-
...
|
|
2474
|
-
}, me =
|
|
2442
|
+
autoFocus: c,
|
|
2443
|
+
...p
|
|
2444
|
+
}, me = qs(_, Y, H, ie);
|
|
2475
2445
|
return /* @__PURE__ */ n.jsx(
|
|
2476
|
-
|
|
2446
|
+
Qt,
|
|
2477
2447
|
{
|
|
2478
|
-
size:
|
|
2479
|
-
error:
|
|
2480
|
-
disabled:
|
|
2481
|
-
loading:
|
|
2448
|
+
size: _,
|
|
2449
|
+
error: f,
|
|
2450
|
+
disabled: h || m,
|
|
2451
|
+
loading: m,
|
|
2482
2452
|
helper: b,
|
|
2483
|
-
prefix:
|
|
2453
|
+
prefix: y,
|
|
2484
2454
|
suffix: Ce,
|
|
2485
|
-
id:
|
|
2486
|
-
showLabel:
|
|
2487
|
-
onFocus:
|
|
2455
|
+
id: v,
|
|
2456
|
+
showLabel: Y,
|
|
2457
|
+
onFocus: w,
|
|
2488
2458
|
onBlur: C,
|
|
2489
|
-
onSuffixClick:
|
|
2490
|
-
onChange:
|
|
2459
|
+
onSuffixClick: M,
|
|
2460
|
+
onChange: r,
|
|
2491
2461
|
value: e,
|
|
2492
|
-
placeholder:
|
|
2493
|
-
className:
|
|
2462
|
+
placeholder: o,
|
|
2463
|
+
className: I,
|
|
2494
2464
|
wrapperStyles: me.wrapperStyles,
|
|
2495
2465
|
floatingLabelStyles: me.floatingLabelStyles,
|
|
2496
2466
|
prefixStyles: me.prefixStyles,
|
|
2497
2467
|
suffixStyles: me.suffixStyles,
|
|
2498
2468
|
wrapperProps: D,
|
|
2499
2469
|
labelProps: S,
|
|
2500
|
-
helperProps:
|
|
2470
|
+
helperProps: T,
|
|
2501
2471
|
showLimit: !1,
|
|
2502
2472
|
maxLength: i,
|
|
2503
2473
|
inputProps: Be,
|
|
@@ -2512,13 +2482,13 @@ const Ft = Object.assign(Dn, {
|
|
|
2512
2482
|
), he = {
|
|
2513
2483
|
SMALL: "small",
|
|
2514
2484
|
MEDIUM: "medium"
|
|
2515
|
-
},
|
|
2485
|
+
}, Xe = {
|
|
2516
2486
|
SMALL: "12px",
|
|
2517
2487
|
MEDIUM: "16px"
|
|
2518
|
-
},
|
|
2488
|
+
}, Ws = {
|
|
2519
2489
|
SMALL: "xs",
|
|
2520
2490
|
MEDIUM: "sm"
|
|
2521
|
-
},
|
|
2491
|
+
}, Ye = {
|
|
2522
2492
|
FILL: "fill",
|
|
2523
2493
|
FIXED: "fixed"
|
|
2524
2494
|
}, ct = {
|
|
@@ -2536,22 +2506,22 @@ const Ft = Object.assign(Dn, {
|
|
|
2536
2506
|
SMALL: 48,
|
|
2537
2507
|
MEDIUM: 56,
|
|
2538
2508
|
LARGE: 112
|
|
2539
|
-
},
|
|
2509
|
+
}, Hs = (e, r) => {
|
|
2540
2510
|
if (e === he.SMALL)
|
|
2541
2511
|
return ct.SMALL;
|
|
2542
|
-
if (
|
|
2543
|
-
return `${
|
|
2512
|
+
if (r)
|
|
2513
|
+
return `${r}px`;
|
|
2544
2514
|
switch (e) {
|
|
2545
2515
|
case he.MEDIUM:
|
|
2546
2516
|
return ct.MEDIUM;
|
|
2547
2517
|
default:
|
|
2548
2518
|
return ct.MEDIUM;
|
|
2549
2519
|
}
|
|
2550
|
-
},
|
|
2520
|
+
}, Vs = (e, r) => {
|
|
2551
2521
|
if (e === he.SMALL)
|
|
2552
2522
|
return Ae.SMALL;
|
|
2553
|
-
if (
|
|
2554
|
-
switch (
|
|
2523
|
+
if (r)
|
|
2524
|
+
switch (r) {
|
|
2555
2525
|
case we.SMALL:
|
|
2556
2526
|
case we.MEDIUM:
|
|
2557
2527
|
return Ae.MEDIUM;
|
|
@@ -2566,15 +2536,15 @@ const Ft = Object.assign(Dn, {
|
|
|
2566
2536
|
default:
|
|
2567
2537
|
return Ae.MEDIUM;
|
|
2568
2538
|
}
|
|
2569
|
-
},
|
|
2539
|
+
}, Gs = (e, r, a) => {
|
|
2570
2540
|
if (e === he.SMALL)
|
|
2571
2541
|
return ve.SMALL;
|
|
2572
|
-
if (
|
|
2573
|
-
switch (
|
|
2542
|
+
if (r)
|
|
2543
|
+
switch (r) {
|
|
2574
2544
|
case we.SMALL:
|
|
2575
2545
|
return ve.MEDIUM_WITH_PREFIX;
|
|
2576
2546
|
case we.MEDIUM:
|
|
2577
|
-
return
|
|
2547
|
+
return a ? ve.MEDIUM_FLOATING_LABEL : ve.MEDIUM;
|
|
2578
2548
|
case we.LARGE:
|
|
2579
2549
|
return ve.MEDIUM;
|
|
2580
2550
|
default:
|
|
@@ -2582,15 +2552,15 @@ const Ft = Object.assign(Dn, {
|
|
|
2582
2552
|
}
|
|
2583
2553
|
switch (e) {
|
|
2584
2554
|
case he.MEDIUM:
|
|
2585
|
-
return
|
|
2555
|
+
return a ? ve.MEDIUM_FLOATING_LABEL : ve.MEDIUM;
|
|
2586
2556
|
default:
|
|
2587
2557
|
return ve.MEDIUM;
|
|
2588
2558
|
}
|
|
2589
|
-
},
|
|
2559
|
+
}, Ys = (e, r) => {
|
|
2590
2560
|
if (e === he.SMALL)
|
|
2591
2561
|
return "small";
|
|
2592
|
-
if (
|
|
2593
|
-
switch (
|
|
2562
|
+
if (r)
|
|
2563
|
+
switch (r) {
|
|
2594
2564
|
case we.SMALL:
|
|
2595
2565
|
return "small";
|
|
2596
2566
|
case we.MEDIUM:
|
|
@@ -2601,115 +2571,115 @@ const Ft = Object.assign(Dn, {
|
|
|
2601
2571
|
return "medium";
|
|
2602
2572
|
}
|
|
2603
2573
|
return e;
|
|
2604
|
-
},
|
|
2605
|
-
const i =
|
|
2574
|
+
}, Zs = (e) => Ws[e.toUpperCase()], Xs = (e) => Xe[e.toUpperCase()], Js = (e, r, a, o) => {
|
|
2575
|
+
const i = Hs(e, r), s = Vs(e, r), l = Gs(e, r, a);
|
|
2606
2576
|
return {
|
|
2607
2577
|
wrapperStyles: {
|
|
2608
2578
|
minHeight: i,
|
|
2609
2579
|
// Для fill resize устанавливаем height: 100%
|
|
2610
|
-
...
|
|
2580
|
+
...o === Ye.FILL && { height: "100%" },
|
|
2611
2581
|
// Для fixed resize устанавливаем фиксированную высоту
|
|
2612
|
-
...
|
|
2582
|
+
...o === Ye.FIXED && r && { height: i },
|
|
2613
2583
|
boxSizing: "border-box",
|
|
2614
2584
|
padding: l
|
|
2615
2585
|
},
|
|
2616
2586
|
floatingLabelStyles: {
|
|
2617
|
-
left: e === he.SMALL ?
|
|
2587
|
+
left: e === he.SMALL ? Xe.SMALL : Xe.MEDIUM,
|
|
2618
2588
|
transformOrigin: "left top",
|
|
2619
|
-
top:
|
|
2589
|
+
top: r === 112 && a && e === he.MEDIUM ? Xe.MEDIUM : void 0
|
|
2620
2590
|
},
|
|
2621
2591
|
suffixStyles: {
|
|
2622
|
-
right:
|
|
2592
|
+
right: Xs(e)
|
|
2623
2593
|
},
|
|
2624
2594
|
textareaStyles: {
|
|
2625
|
-
minHeight:
|
|
2595
|
+
minHeight: s,
|
|
2626
2596
|
// Для fill resize flex: 1
|
|
2627
|
-
...
|
|
2597
|
+
...o === Ye.FILL && { flex: 1, minHeight: 0 },
|
|
2628
2598
|
// Для fixed resize фиксированная высота
|
|
2629
|
-
...
|
|
2599
|
+
...o === Ye.FIXED && r && { height: s }
|
|
2630
2600
|
}
|
|
2631
2601
|
};
|
|
2632
|
-
},
|
|
2602
|
+
}, Qi = K(
|
|
2633
2603
|
({
|
|
2634
2604
|
value: e = "",
|
|
2635
|
-
onChange:
|
|
2636
|
-
placeholder:
|
|
2637
|
-
maxLength:
|
|
2605
|
+
onChange: r,
|
|
2606
|
+
placeholder: a,
|
|
2607
|
+
maxLength: o,
|
|
2638
2608
|
minLength: i,
|
|
2639
|
-
autoFocus:
|
|
2609
|
+
autoFocus: s,
|
|
2640
2610
|
size: l = he.MEDIUM,
|
|
2641
|
-
textareaProps:
|
|
2642
|
-
error:
|
|
2643
|
-
disabled:
|
|
2644
|
-
loading:
|
|
2645
|
-
helper:
|
|
2646
|
-
suffix:
|
|
2611
|
+
textareaProps: c,
|
|
2612
|
+
error: _,
|
|
2613
|
+
disabled: p,
|
|
2614
|
+
loading: f,
|
|
2615
|
+
helper: h,
|
|
2616
|
+
suffix: m,
|
|
2647
2617
|
clearable: b = !1,
|
|
2648
|
-
id:
|
|
2618
|
+
id: y,
|
|
2649
2619
|
showLabel: L = !0,
|
|
2650
2620
|
onFocus: x,
|
|
2651
|
-
onBlur:
|
|
2652
|
-
onClear:
|
|
2653
|
-
onKeyDown:
|
|
2621
|
+
onBlur: v,
|
|
2622
|
+
onClear: d,
|
|
2623
|
+
onKeyDown: w,
|
|
2654
2624
|
className: C,
|
|
2655
|
-
rows:
|
|
2656
|
-
showLimit:
|
|
2657
|
-
wrapperProps:
|
|
2625
|
+
rows: M = 1,
|
|
2626
|
+
showLimit: j = !1,
|
|
2627
|
+
wrapperProps: I,
|
|
2658
2628
|
labelProps: A,
|
|
2659
2629
|
helperProps: z,
|
|
2660
2630
|
showGrip: U,
|
|
2661
2631
|
minHeight: q,
|
|
2662
2632
|
resize: D,
|
|
2663
2633
|
...S
|
|
2664
|
-
},
|
|
2665
|
-
const P = (e || "").length > 0, F = L && !!
|
|
2666
|
-
|
|
2667
|
-
}, ie =
|
|
2668
|
-
|
|
2634
|
+
}, T) => {
|
|
2635
|
+
const P = (e || "").length > 0, F = L && !!a && (l === he.SMALL || q !== 48), H = b && P && !(p || f), Q = () => {
|
|
2636
|
+
r == null || r(""), d == null || d();
|
|
2637
|
+
}, ie = H ? /* @__PURE__ */ n.jsx(
|
|
2638
|
+
Jt,
|
|
2669
2639
|
{
|
|
2670
|
-
size:
|
|
2640
|
+
size: Zs(l),
|
|
2671
2641
|
color: "var(--icon-secondary)",
|
|
2672
2642
|
onClick: Q,
|
|
2673
2643
|
style: { cursor: "pointer" },
|
|
2674
2644
|
"data-testid": "x-icon"
|
|
2675
2645
|
}
|
|
2676
|
-
) :
|
|
2677
|
-
rows:
|
|
2646
|
+
) : m, Y = Js(l, q, F && P, D), ue = Ys(l, q), ee = {
|
|
2647
|
+
rows: M,
|
|
2678
2648
|
minLength: i,
|
|
2679
|
-
autoFocus:
|
|
2649
|
+
autoFocus: s,
|
|
2680
2650
|
resize: D,
|
|
2681
|
-
...
|
|
2651
|
+
...c
|
|
2682
2652
|
};
|
|
2683
2653
|
return /* @__PURE__ */ n.jsx(
|
|
2684
|
-
|
|
2654
|
+
Qt,
|
|
2685
2655
|
{
|
|
2686
|
-
ref:
|
|
2656
|
+
ref: T,
|
|
2687
2657
|
component: "textarea",
|
|
2688
2658
|
size: ue,
|
|
2689
|
-
error:
|
|
2690
|
-
disabled:
|
|
2691
|
-
loading:
|
|
2692
|
-
helper:
|
|
2659
|
+
error: _,
|
|
2660
|
+
disabled: p || f,
|
|
2661
|
+
loading: f,
|
|
2662
|
+
helper: h,
|
|
2693
2663
|
suffix: ie,
|
|
2694
|
-
id:
|
|
2664
|
+
id: y,
|
|
2695
2665
|
showLabel: F,
|
|
2696
2666
|
onFocus: x,
|
|
2697
|
-
onBlur:
|
|
2698
|
-
onKeyDown:
|
|
2699
|
-
onChange:
|
|
2667
|
+
onBlur: v,
|
|
2668
|
+
onKeyDown: w,
|
|
2669
|
+
onChange: r,
|
|
2700
2670
|
value: e || "",
|
|
2701
|
-
placeholder:
|
|
2671
|
+
placeholder: a,
|
|
2702
2672
|
className: C,
|
|
2703
2673
|
"data-floating-label": F,
|
|
2704
|
-
wrapperStyles:
|
|
2705
|
-
floatingLabelStyles:
|
|
2706
|
-
suffixStyles:
|
|
2707
|
-
textareaStyles:
|
|
2708
|
-
wrapperProps:
|
|
2674
|
+
wrapperStyles: Y.wrapperStyles,
|
|
2675
|
+
floatingLabelStyles: Y.floatingLabelStyles,
|
|
2676
|
+
suffixStyles: Y.suffixStyles,
|
|
2677
|
+
textareaStyles: Y.textareaStyles,
|
|
2678
|
+
wrapperProps: I,
|
|
2709
2679
|
labelProps: A,
|
|
2710
2680
|
helperProps: z,
|
|
2711
|
-
showLimit:
|
|
2712
|
-
maxLength:
|
|
2681
|
+
showLimit: j && (q === 112 || l === he.SMALL),
|
|
2682
|
+
maxLength: o,
|
|
2713
2683
|
inputProps: ee,
|
|
2714
2684
|
resize: D,
|
|
2715
2685
|
showGrip: U,
|
|
@@ -2717,108 +2687,108 @@ const Ft = Object.assign(Dn, {
|
|
|
2717
2687
|
}
|
|
2718
2688
|
);
|
|
2719
2689
|
}
|
|
2720
|
-
),
|
|
2721
|
-
helper:
|
|
2690
|
+
), Ks = "_helper_1jq7j_16", dt = {
|
|
2691
|
+
helper: Ks,
|
|
2722
2692
|
"helper--error": "_helper--error_1jq7j_28",
|
|
2723
2693
|
"helper--disabled": "_helper--disabled_1jq7j_33"
|
|
2724
|
-
},
|
|
2694
|
+
}, el = ({
|
|
2725
2695
|
title: e,
|
|
2726
|
-
error:
|
|
2727
|
-
className:
|
|
2728
|
-
style:
|
|
2696
|
+
error: r,
|
|
2697
|
+
className: a = "",
|
|
2698
|
+
style: o,
|
|
2729
2699
|
disabled: i = !1,
|
|
2730
|
-
"data-testid":
|
|
2700
|
+
"data-testid": s,
|
|
2731
2701
|
"aria-label": l,
|
|
2732
|
-
"aria-describedby":
|
|
2702
|
+
"aria-describedby": c
|
|
2733
2703
|
}) => {
|
|
2734
|
-
const
|
|
2704
|
+
const _ = !!r, p = k(
|
|
2735
2705
|
dt.helper,
|
|
2736
|
-
|
|
2706
|
+
_ && dt["helper--error"],
|
|
2737
2707
|
i && dt["helper--disabled"],
|
|
2738
|
-
|
|
2739
|
-
),
|
|
2708
|
+
a
|
|
2709
|
+
), f = i ? e : r || e;
|
|
2740
2710
|
return /* @__PURE__ */ n.jsx(
|
|
2741
2711
|
"div",
|
|
2742
2712
|
{
|
|
2743
|
-
className:
|
|
2744
|
-
style:
|
|
2745
|
-
"data-testid":
|
|
2713
|
+
className: p,
|
|
2714
|
+
style: o,
|
|
2715
|
+
"data-testid": s,
|
|
2746
2716
|
"aria-label": l,
|
|
2747
|
-
"aria-describedby":
|
|
2748
|
-
children: /* @__PURE__ */ n.jsx("p", { children:
|
|
2717
|
+
"aria-describedby": c,
|
|
2718
|
+
children: /* @__PURE__ */ n.jsx("p", { children: f })
|
|
2749
2719
|
}
|
|
2750
2720
|
);
|
|
2751
|
-
},
|
|
2752
|
-
radio:
|
|
2753
|
-
checked:
|
|
2754
|
-
error:
|
|
2755
|
-
disabled:
|
|
2756
|
-
icon:
|
|
2721
|
+
}, Qs = "_radio_1q34w_54", eo = "_checked_1q34w_75", to = "_error_1q34w_80", ro = "_disabled_1q34w_89", ao = "_icon_1q34w_125", no = "_small_1q34w_133", so = "_medium_1q34w_140", oo = "_large_1q34w_147", io = "_label_1q34w_154", lo = "_container_1q34w_180", co = "_input_1q34w_193", uo = "_card_1q34w_200", _o = "_smallCard_1q34w_206", po = "_mediumCard_1q34w_210", fo = "_largeCard_1q34w_214", le = {
|
|
2722
|
+
radio: Qs,
|
|
2723
|
+
checked: eo,
|
|
2724
|
+
error: to,
|
|
2725
|
+
disabled: ro,
|
|
2726
|
+
icon: ao,
|
|
2757
2727
|
small: no,
|
|
2758
|
-
medium:
|
|
2759
|
-
large:
|
|
2760
|
-
label:
|
|
2761
|
-
container:
|
|
2762
|
-
input:
|
|
2763
|
-
card:
|
|
2764
|
-
smallCard:
|
|
2765
|
-
mediumCard:
|
|
2766
|
-
largeCard:
|
|
2767
|
-
},
|
|
2768
|
-
(e,
|
|
2728
|
+
medium: so,
|
|
2729
|
+
large: oo,
|
|
2730
|
+
label: io,
|
|
2731
|
+
container: lo,
|
|
2732
|
+
input: co,
|
|
2733
|
+
card: uo,
|
|
2734
|
+
smallCard: _o,
|
|
2735
|
+
mediumCard: po,
|
|
2736
|
+
largeCard: fo
|
|
2737
|
+
}, ho = "radio-container-", bo = "radio-label", er = K(
|
|
2738
|
+
(e, r) => {
|
|
2769
2739
|
const {
|
|
2770
|
-
name:
|
|
2771
|
-
id:
|
|
2740
|
+
name: a,
|
|
2741
|
+
id: o,
|
|
2772
2742
|
value: i,
|
|
2773
|
-
size:
|
|
2743
|
+
size: s = "large",
|
|
2774
2744
|
loading: l = !1,
|
|
2775
|
-
error:
|
|
2776
|
-
disabled:
|
|
2777
|
-
checked:
|
|
2778
|
-
containerClassName:
|
|
2779
|
-
className:
|
|
2780
|
-
children:
|
|
2745
|
+
error: c,
|
|
2746
|
+
disabled: _ = !1,
|
|
2747
|
+
checked: p = !1,
|
|
2748
|
+
containerClassName: f,
|
|
2749
|
+
className: h,
|
|
2750
|
+
children: m,
|
|
2781
2751
|
clickable: b = "all",
|
|
2782
|
-
mode:
|
|
2752
|
+
mode: y = "default",
|
|
2783
2753
|
tabIndex: L,
|
|
2784
2754
|
style: x,
|
|
2785
|
-
containerStyle:
|
|
2786
|
-
onChange:
|
|
2787
|
-
"data-testid":
|
|
2755
|
+
containerStyle: v,
|
|
2756
|
+
onChange: d,
|
|
2757
|
+
"data-testid": w,
|
|
2788
2758
|
...C
|
|
2789
|
-
} = e,
|
|
2790
|
-
|
|
2759
|
+
} = e, M = !!c, j = _ || l, I = b === "all", A = y === "card", z = le[`${s}Card`], U = o ?? a, q = (F) => {
|
|
2760
|
+
j || d == null || d(i, F);
|
|
2791
2761
|
}, D = (F) => {
|
|
2792
|
-
F.key === "Enter" && !
|
|
2793
|
-
}, S = (F) => F.stopPropagation(),
|
|
2762
|
+
F.key === "Enter" && !j && (F.preventDefault(), d == null || d(i));
|
|
2763
|
+
}, S = (F) => F.stopPropagation(), T = () => /* @__PURE__ */ n.jsxs(
|
|
2794
2764
|
"div",
|
|
2795
2765
|
{
|
|
2796
|
-
className:
|
|
2766
|
+
className: k(
|
|
2797
2767
|
le.radio,
|
|
2798
|
-
le[
|
|
2768
|
+
le[s],
|
|
2799
2769
|
{
|
|
2800
|
-
[le.checked]:
|
|
2801
|
-
[le.disabled]:
|
|
2802
|
-
[le.error]:
|
|
2770
|
+
[le.checked]: p,
|
|
2771
|
+
[le.disabled]: j,
|
|
2772
|
+
[le.error]: M && !j
|
|
2803
2773
|
},
|
|
2804
|
-
|
|
2774
|
+
h
|
|
2805
2775
|
),
|
|
2806
2776
|
style: x,
|
|
2807
2777
|
tabIndex: L || 1,
|
|
2808
|
-
"data-testid": `${
|
|
2778
|
+
"data-testid": `${ho}${U}`,
|
|
2809
2779
|
children: [
|
|
2810
2780
|
/* @__PURE__ */ n.jsx(
|
|
2811
2781
|
"input",
|
|
2812
2782
|
{
|
|
2813
|
-
"aria-errormessage":
|
|
2814
|
-
"aria-invalid":
|
|
2815
|
-
checked:
|
|
2783
|
+
"aria-errormessage": c,
|
|
2784
|
+
"aria-invalid": M,
|
|
2785
|
+
checked: p,
|
|
2816
2786
|
className: le.input,
|
|
2817
2787
|
"data-testid": `radio-${U}`,
|
|
2818
|
-
disabled:
|
|
2788
|
+
disabled: j,
|
|
2819
2789
|
id: U,
|
|
2820
|
-
name:
|
|
2821
|
-
ref:
|
|
2790
|
+
name: a,
|
|
2791
|
+
ref: r,
|
|
2822
2792
|
type: "radio",
|
|
2823
2793
|
value: i,
|
|
2824
2794
|
onChange: q,
|
|
@@ -2831,76 +2801,76 @@ const Ft = Object.assign(Dn, {
|
|
|
2831
2801
|
), P = () => /* @__PURE__ */ n.jsxs(
|
|
2832
2802
|
"label",
|
|
2833
2803
|
{
|
|
2834
|
-
"aria-checked":
|
|
2835
|
-
"aria-disabled":
|
|
2836
|
-
"data-testid":
|
|
2804
|
+
"aria-checked": p,
|
|
2805
|
+
"aria-disabled": j,
|
|
2806
|
+
"data-testid": I ? w : bo,
|
|
2837
2807
|
htmlFor: U,
|
|
2838
|
-
style:
|
|
2839
|
-
className:
|
|
2840
|
-
[
|
|
2841
|
-
[z]:
|
|
2808
|
+
style: v,
|
|
2809
|
+
className: k(le.label, {
|
|
2810
|
+
[k(le.container, le[y], f)]: I,
|
|
2811
|
+
[z]: I && A
|
|
2842
2812
|
}),
|
|
2843
2813
|
onKeyDown: D,
|
|
2844
2814
|
...C,
|
|
2845
2815
|
children: [
|
|
2846
|
-
|
|
2847
|
-
|
|
2816
|
+
T(),
|
|
2817
|
+
I && m
|
|
2848
2818
|
]
|
|
2849
2819
|
}
|
|
2850
2820
|
);
|
|
2851
|
-
return
|
|
2821
|
+
return I ? P() : /* @__PURE__ */ n.jsxs(
|
|
2852
2822
|
"div",
|
|
2853
2823
|
{
|
|
2854
|
-
className:
|
|
2824
|
+
className: k(le.container, le[y], f, {
|
|
2855
2825
|
[z]: A
|
|
2856
2826
|
}),
|
|
2857
|
-
"data-testid":
|
|
2827
|
+
"data-testid": w,
|
|
2858
2828
|
children: [
|
|
2859
2829
|
P(),
|
|
2860
|
-
|
|
2830
|
+
m
|
|
2861
2831
|
]
|
|
2862
2832
|
}
|
|
2863
2833
|
);
|
|
2864
2834
|
}
|
|
2865
|
-
),
|
|
2866
|
-
group:
|
|
2867
|
-
vertical:
|
|
2868
|
-
horizontal:
|
|
2869
|
-
},
|
|
2870
|
-
(e,
|
|
2835
|
+
), go = "_group_o6mjt_7", mo = "_vertical_o6mjt_12", yo = "_horizontal_o6mjt_16", qt = {
|
|
2836
|
+
group: go,
|
|
2837
|
+
vertical: mo,
|
|
2838
|
+
horizontal: yo
|
|
2839
|
+
}, vo = K(
|
|
2840
|
+
(e, r) => {
|
|
2871
2841
|
const {
|
|
2872
|
-
id:
|
|
2873
|
-
name:
|
|
2842
|
+
id: a,
|
|
2843
|
+
name: o,
|
|
2874
2844
|
value: i,
|
|
2875
|
-
options:
|
|
2845
|
+
options: s,
|
|
2876
2846
|
className: l,
|
|
2877
|
-
radioClassName:
|
|
2878
|
-
disabled:
|
|
2879
|
-
layout:
|
|
2880
|
-
"data-testid":
|
|
2881
|
-
...
|
|
2847
|
+
radioClassName: c,
|
|
2848
|
+
disabled: _ = !1,
|
|
2849
|
+
layout: p = "vertical",
|
|
2850
|
+
"data-testid": f,
|
|
2851
|
+
...h
|
|
2882
2852
|
} = e;
|
|
2883
2853
|
return /* @__PURE__ */ n.jsx(
|
|
2884
2854
|
"div",
|
|
2885
2855
|
{
|
|
2886
|
-
className: Le(qt.group, qt[
|
|
2887
|
-
"data-testid":
|
|
2888
|
-
id:
|
|
2889
|
-
ref:
|
|
2890
|
-
children:
|
|
2891
|
-
const L = `${
|
|
2856
|
+
className: Le(qt.group, qt[p], l),
|
|
2857
|
+
"data-testid": f ?? `radio-group-${o}`,
|
|
2858
|
+
id: a,
|
|
2859
|
+
ref: r,
|
|
2860
|
+
children: s.map(({ label: m, value: b, disabled: y }) => {
|
|
2861
|
+
const L = `${o}-${String(b)}`, x = String(b) === String(i);
|
|
2892
2862
|
return /* @__PURE__ */ n.jsx(
|
|
2893
|
-
|
|
2863
|
+
er,
|
|
2894
2864
|
{
|
|
2895
2865
|
id: L,
|
|
2896
2866
|
checked: x,
|
|
2897
2867
|
"data-testid": L,
|
|
2898
|
-
disabled:
|
|
2899
|
-
name:
|
|
2868
|
+
disabled: _ || y,
|
|
2869
|
+
name: o,
|
|
2900
2870
|
value: b,
|
|
2901
|
-
className:
|
|
2902
|
-
...
|
|
2903
|
-
children:
|
|
2871
|
+
className: c,
|
|
2872
|
+
...h,
|
|
2873
|
+
children: m
|
|
2904
2874
|
},
|
|
2905
2875
|
L
|
|
2906
2876
|
);
|
|
@@ -2908,68 +2878,68 @@ const Ft = Object.assign(Dn, {
|
|
|
2908
2878
|
}
|
|
2909
2879
|
);
|
|
2910
2880
|
}
|
|
2911
|
-
),
|
|
2912
|
-
Group:
|
|
2913
|
-
}),
|
|
2914
|
-
root:
|
|
2915
|
-
unordered:
|
|
2916
|
-
ordered:
|
|
2917
|
-
sm:
|
|
2918
|
-
md:
|
|
2919
|
-
lg:
|
|
2920
|
-
xl:
|
|
2881
|
+
), tl = Object.assign(er, {
|
|
2882
|
+
Group: vo
|
|
2883
|
+
}), xo = "_root_1jj3e_25", wo = "_unordered_1jj3e_39", Co = "_ordered_1jj3e_43", So = "_sm_1jj3e_48", Lo = "_md_1jj3e_59", Eo = "_lg_1jj3e_70", jo = "_xl_1jj3e_81", ut = {
|
|
2884
|
+
root: xo,
|
|
2885
|
+
unordered: wo,
|
|
2886
|
+
ordered: Co,
|
|
2887
|
+
sm: So,
|
|
2888
|
+
md: Lo,
|
|
2889
|
+
lg: Eo,
|
|
2890
|
+
xl: jo
|
|
2921
2891
|
}, ko = (e) => {
|
|
2922
|
-
const { children:
|
|
2923
|
-
return /* @__PURE__ */ n.jsx("li", { "data-testid":
|
|
2924
|
-
},
|
|
2925
|
-
|
|
2892
|
+
const { children: r, className: a, "data-testid": o = "list-item" } = e;
|
|
2893
|
+
return /* @__PURE__ */ n.jsx("li", { "data-testid": o, className: a, children: r });
|
|
2894
|
+
}, rl = Object.assign(
|
|
2895
|
+
K((e, r) => {
|
|
2926
2896
|
const {
|
|
2927
|
-
variant:
|
|
2928
|
-
className:
|
|
2897
|
+
variant: a = "unordered",
|
|
2898
|
+
className: o,
|
|
2929
2899
|
children: i,
|
|
2930
|
-
size:
|
|
2900
|
+
size: s = "md",
|
|
2931
2901
|
"data-testid": l = "list",
|
|
2932
|
-
...
|
|
2933
|
-
} = e,
|
|
2902
|
+
...c
|
|
2903
|
+
} = e, _ = a === "ordered" ? "ol" : "ul";
|
|
2934
2904
|
return /* @__PURE__ */ n.jsx(
|
|
2935
|
-
|
|
2905
|
+
_,
|
|
2936
2906
|
{
|
|
2937
2907
|
"data-testid": l,
|
|
2938
|
-
ref:
|
|
2939
|
-
className: Le(ut.root, ut[
|
|
2940
|
-
...
|
|
2908
|
+
ref: r,
|
|
2909
|
+
className: Le(ut.root, ut[a], ut[s], o),
|
|
2910
|
+
...a === "ordered" && c,
|
|
2941
2911
|
children: i
|
|
2942
2912
|
}
|
|
2943
2913
|
);
|
|
2944
2914
|
}),
|
|
2945
2915
|
{ Item: ko }
|
|
2946
|
-
), Mo = "_wrapper_1v8xn_5", Io = "_viewport_1v8xn_12",
|
|
2916
|
+
), Mo = "_wrapper_1v8xn_5", Io = "_viewport_1v8xn_12", $o = "_mask_1v8xn_26", To = "_maskLeft_1v8xn_37", Ro = "_maskRight_1v8xn_42", No = "_visible_1v8xn_46", Ao = "_control_1v8xn_51", zo = "_xs_1v8xn_70", Do = "_sm_1v8xn_73", Oo = "_md_1v8xn_76", Po = "_left_1v8xn_80", Bo = "_right_1v8xn_83", ne = {
|
|
2947
2917
|
wrapper: Mo,
|
|
2948
2918
|
viewport: Io,
|
|
2949
|
-
mask:
|
|
2919
|
+
mask: $o,
|
|
2950
2920
|
maskLeft: To,
|
|
2951
|
-
maskRight:
|
|
2952
|
-
visible:
|
|
2953
|
-
control:
|
|
2954
|
-
xs:
|
|
2955
|
-
sm:
|
|
2956
|
-
md:
|
|
2957
|
-
left:
|
|
2958
|
-
right:
|
|
2959
|
-
},
|
|
2921
|
+
maskRight: Ro,
|
|
2922
|
+
visible: No,
|
|
2923
|
+
control: Ao,
|
|
2924
|
+
xs: zo,
|
|
2925
|
+
sm: Do,
|
|
2926
|
+
md: Oo,
|
|
2927
|
+
left: Po,
|
|
2928
|
+
right: Bo
|
|
2929
|
+
}, Uo = "white", Fo = ({
|
|
2960
2930
|
children: e,
|
|
2961
|
-
withControls:
|
|
2962
|
-
className:
|
|
2963
|
-
size:
|
|
2931
|
+
withControls: r = !0,
|
|
2932
|
+
className: a,
|
|
2933
|
+
size: o
|
|
2964
2934
|
}) => {
|
|
2965
|
-
const i = Pe(null), [
|
|
2935
|
+
const i = Pe(null), [s, l] = de(!1), [c, _] = de(!1), { ref: p, bgColor: f } = ft(), h = p ?? { current: null }, m = f ?? Uo, b = r && s, y = r && c, L = ({ direction: d }) => /* @__PURE__ */ n.jsx(
|
|
2966
2936
|
"svg",
|
|
2967
2937
|
{
|
|
2968
2938
|
height: "12px",
|
|
2969
2939
|
width: "12px",
|
|
2970
2940
|
viewBox: "0 0 185.343 185.343",
|
|
2971
2941
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2972
|
-
children: /* @__PURE__ */ n.jsx("g", { transform:
|
|
2942
|
+
children: /* @__PURE__ */ n.jsx("g", { transform: d === "left" ? "scale(-1,1) translate(-185.343,0)" : void 0, children: /* @__PURE__ */ n.jsx(
|
|
2973
2943
|
"path",
|
|
2974
2944
|
{
|
|
2975
2945
|
fill: "currentColor",
|
|
@@ -2978,249 +2948,249 @@ const Ft = Object.assign(Dn, {
|
|
|
2978
2948
|
) })
|
|
2979
2949
|
}
|
|
2980
2950
|
), x = () => {
|
|
2981
|
-
const
|
|
2982
|
-
if (!
|
|
2983
|
-
const
|
|
2984
|
-
l(
|
|
2985
|
-
},
|
|
2986
|
-
const
|
|
2987
|
-
if (!
|
|
2988
|
-
const C =
|
|
2989
|
-
|
|
2951
|
+
const d = i.current;
|
|
2952
|
+
if (!d) return;
|
|
2953
|
+
const w = Math.round(d.scrollLeft), C = Math.round(d.scrollLeft + d.clientWidth), M = Math.round(d.scrollWidth);
|
|
2954
|
+
l(w > 0), _(C < M);
|
|
2955
|
+
}, v = (d) => {
|
|
2956
|
+
const w = i.current;
|
|
2957
|
+
if (!w) return;
|
|
2958
|
+
const C = w.clientWidth;
|
|
2959
|
+
w.scrollBy({ left: d === "left" ? -C : C, behavior: "smooth" });
|
|
2990
2960
|
};
|
|
2991
2961
|
return oe(() => {
|
|
2992
|
-
const
|
|
2993
|
-
if (!
|
|
2994
|
-
const
|
|
2995
|
-
Math.abs(C.deltaX) > Math.abs(C.deltaY) ||
|
|
2962
|
+
const d = i.current;
|
|
2963
|
+
if (!d) return;
|
|
2964
|
+
const w = (C) => {
|
|
2965
|
+
Math.abs(C.deltaX) > Math.abs(C.deltaY) || d.scrollWidth > d.clientWidth && (C.preventDefault(), d.scrollBy({ left: C.deltaY, behavior: "auto" }));
|
|
2996
2966
|
};
|
|
2997
|
-
return
|
|
2967
|
+
return d.addEventListener("wheel", w, { passive: !1 }), () => d.removeEventListener("wheel", w);
|
|
2998
2968
|
}, []), oe(() => {
|
|
2999
2969
|
x();
|
|
3000
|
-
const
|
|
3001
|
-
if (
|
|
3002
|
-
return
|
|
3003
|
-
|
|
2970
|
+
const d = i.current;
|
|
2971
|
+
if (d)
|
|
2972
|
+
return d.addEventListener("scroll", x, { passive: !0 }), window.addEventListener("resize", x), () => {
|
|
2973
|
+
d.removeEventListener("scroll", x), window.removeEventListener("resize", x);
|
|
3004
2974
|
};
|
|
3005
|
-
}, []), /* @__PURE__ */ n.jsxs("div", { ref:
|
|
2975
|
+
}, []), /* @__PURE__ */ n.jsxs("div", { ref: h, className: k(ne.wrapper, a), children: [
|
|
3006
2976
|
b && /* @__PURE__ */ n.jsx(
|
|
3007
2977
|
"div",
|
|
3008
2978
|
{
|
|
3009
|
-
className:
|
|
2979
|
+
className: k(ne.mask, ne.maskLeft, s && ne.visible),
|
|
3010
2980
|
style: {
|
|
3011
|
-
background: `linear-gradient(to right, ${
|
|
2981
|
+
background: `linear-gradient(to right, ${m} 17%, transparent 80%)`
|
|
3012
2982
|
}
|
|
3013
2983
|
}
|
|
3014
2984
|
),
|
|
3015
|
-
|
|
2985
|
+
y && /* @__PURE__ */ n.jsx(
|
|
3016
2986
|
"div",
|
|
3017
2987
|
{
|
|
3018
|
-
className:
|
|
2988
|
+
className: k(ne.mask, ne.maskRight, c && ne.visible),
|
|
3019
2989
|
style: {
|
|
3020
|
-
background: `linear-gradient(to left, ${
|
|
2990
|
+
background: `linear-gradient(to left, ${m} 17%, transparent 80%)`
|
|
3021
2991
|
}
|
|
3022
2992
|
}
|
|
3023
2993
|
),
|
|
3024
|
-
/* @__PURE__ */ n.jsx("div", { ref: i, className:
|
|
2994
|
+
/* @__PURE__ */ n.jsx("div", { ref: i, className: ne.viewport, children: e }),
|
|
3025
2995
|
b && /* @__PURE__ */ n.jsx(
|
|
3026
2996
|
"button",
|
|
3027
2997
|
{
|
|
3028
2998
|
type: "button",
|
|
3029
2999
|
tabIndex: -1,
|
|
3030
3000
|
"aria-hidden": "true",
|
|
3031
|
-
className:
|
|
3032
|
-
onClick: () =>
|
|
3001
|
+
className: k(ne.control, ne.left, ne[o]),
|
|
3002
|
+
onClick: () => v("left"),
|
|
3033
3003
|
children: /* @__PURE__ */ n.jsx(L, { direction: "left" })
|
|
3034
3004
|
}
|
|
3035
3005
|
),
|
|
3036
|
-
|
|
3006
|
+
y && /* @__PURE__ */ n.jsx(
|
|
3037
3007
|
"button",
|
|
3038
3008
|
{
|
|
3039
3009
|
type: "button",
|
|
3040
3010
|
tabIndex: -1,
|
|
3041
3011
|
"aria-hidden": "true",
|
|
3042
|
-
className:
|
|
3043
|
-
onClick: () =>
|
|
3012
|
+
className: k(ne.control, ne.right, ne[o]),
|
|
3013
|
+
onClick: () => v("right"),
|
|
3044
3014
|
children: /* @__PURE__ */ n.jsx(L, { direction: "right" })
|
|
3045
3015
|
}
|
|
3046
3016
|
)
|
|
3047
3017
|
] });
|
|
3048
|
-
},
|
|
3049
|
-
tabBar:
|
|
3050
|
-
primary:
|
|
3018
|
+
}, qo = "_tabBar_1ndpm_82", Wo = "_primary_1ndpm_88", Ho = "_secondary_1ndpm_93", Vo = "_tab_1ndpm_82", Go = "_md_1ndpm_125", Yo = "_sm_1ndpm_129", Zo = "_xs_1ndpm_133", Xo = "_disabled_1ndpm_137", Jo = "_selected_1ndpm_143", Ko = "_tabLabel_1ndpm_222", Qo = "_tabPrefix_1ndpm_234", ei = "_tabPostfix_1ndpm_270", J = {
|
|
3019
|
+
tabBar: qo,
|
|
3020
|
+
primary: Wo,
|
|
3051
3021
|
secondary: Ho,
|
|
3052
|
-
tab:
|
|
3053
|
-
md:
|
|
3022
|
+
tab: Vo,
|
|
3023
|
+
md: Go,
|
|
3054
3024
|
sm: Yo,
|
|
3055
|
-
xs:
|
|
3056
|
-
disabled:
|
|
3057
|
-
selected:
|
|
3058
|
-
tabLabel:
|
|
3059
|
-
tabPrefix:
|
|
3060
|
-
tabPostfix:
|
|
3061
|
-
},
|
|
3062
|
-
const e =
|
|
3025
|
+
xs: Zo,
|
|
3026
|
+
disabled: Xo,
|
|
3027
|
+
selected: Jo,
|
|
3028
|
+
tabLabel: Ko,
|
|
3029
|
+
tabPrefix: Qo,
|
|
3030
|
+
tabPostfix: ei
|
|
3031
|
+
}, ti = "md", ri = !1, ai = 8, ni = "top-right-inside", tr = Gt(null), rr = () => {
|
|
3032
|
+
const e = Yt(tr);
|
|
3063
3033
|
if (!e) throw new Error("useTabs должен использоваться внутри TabsProvider");
|
|
3064
3034
|
return e;
|
|
3065
|
-
},
|
|
3035
|
+
}, si = ({
|
|
3066
3036
|
children: e,
|
|
3067
|
-
defaultActiveTab:
|
|
3068
|
-
activeTab:
|
|
3069
|
-
onChange:
|
|
3037
|
+
defaultActiveTab: r,
|
|
3038
|
+
activeTab: a,
|
|
3039
|
+
onChange: o
|
|
3070
3040
|
}) => {
|
|
3071
|
-
const [i,
|
|
3072
|
-
l ||
|
|
3041
|
+
const [i, s] = de(r), l = a !== void 0, c = l ? a : i, _ = (p) => {
|
|
3042
|
+
l || s(p), o && o(p);
|
|
3073
3043
|
};
|
|
3074
|
-
return /* @__PURE__ */ n.jsx(
|
|
3075
|
-
},
|
|
3044
|
+
return /* @__PURE__ */ n.jsx(tr.Provider, { value: { activeTab: c, setTab: _ }, children: e });
|
|
3045
|
+
}, oi = ({
|
|
3076
3046
|
mode: e,
|
|
3077
|
-
item:
|
|
3078
|
-
isActive:
|
|
3079
|
-
showBadge:
|
|
3047
|
+
item: r,
|
|
3048
|
+
isActive: a,
|
|
3049
|
+
showBadge: o,
|
|
3080
3050
|
badgeProps: i,
|
|
3081
|
-
size:
|
|
3051
|
+
size: s,
|
|
3082
3052
|
isDisabled: l,
|
|
3083
|
-
onSelectTab:
|
|
3053
|
+
onSelectTab: c
|
|
3084
3054
|
}) => {
|
|
3085
3055
|
const {
|
|
3086
|
-
value:
|
|
3087
|
-
label:
|
|
3088
|
-
prefix:
|
|
3089
|
-
prefixWrapperProps:
|
|
3090
|
-
postfix:
|
|
3056
|
+
value: _,
|
|
3057
|
+
label: p,
|
|
3058
|
+
prefix: f,
|
|
3059
|
+
prefixWrapperProps: h = {},
|
|
3060
|
+
postfix: m,
|
|
3091
3061
|
postfixWrapperProps: b = {}
|
|
3092
|
-
} =
|
|
3062
|
+
} = r, { className: y, ...L } = h, { className: x, ...v } = b, d = {
|
|
3093
3063
|
primary: ce["typography-label-3-medium"],
|
|
3094
3064
|
secondary: ce["typography-label-3-regular"],
|
|
3095
3065
|
prefix: ce["typography-label-3-medium"],
|
|
3096
3066
|
postfix: ce["typography-label-3-medium"]
|
|
3097
|
-
},
|
|
3098
|
-
size:
|
|
3067
|
+
}, w = {
|
|
3068
|
+
size: ai,
|
|
3099
3069
|
position: ni,
|
|
3100
3070
|
...i
|
|
3101
|
-
}, C =
|
|
3102
|
-
[
|
|
3103
|
-
[
|
|
3104
|
-
}),
|
|
3105
|
-
|
|
3106
|
-
|
|
3107
|
-
|
|
3108
|
-
|
|
3071
|
+
}, C = k(J.tab, J[e], J[s], {
|
|
3072
|
+
[J.selected]: a,
|
|
3073
|
+
[J.disabled]: l
|
|
3074
|
+
}), M = k(
|
|
3075
|
+
J.tabPrefix,
|
|
3076
|
+
y,
|
|
3077
|
+
J[e],
|
|
3078
|
+
d.prefix,
|
|
3109
3079
|
{
|
|
3110
|
-
[
|
|
3111
|
-
[
|
|
3080
|
+
[J.selected]: a,
|
|
3081
|
+
[J.disabled]: l
|
|
3112
3082
|
}
|
|
3113
|
-
),
|
|
3114
|
-
|
|
3083
|
+
), j = k(
|
|
3084
|
+
J.tabPostfix,
|
|
3115
3085
|
x,
|
|
3116
|
-
|
|
3117
|
-
|
|
3086
|
+
J[e],
|
|
3087
|
+
d.postfix,
|
|
3118
3088
|
{
|
|
3119
|
-
[
|
|
3120
|
-
[
|
|
3089
|
+
[J.selected]: a,
|
|
3090
|
+
[J.disabled]: l
|
|
3121
3091
|
}
|
|
3122
|
-
),
|
|
3123
|
-
|
|
3092
|
+
), I = k(J.tabLabel, J[e], d[e]), A = (U) => {
|
|
3093
|
+
a || l || (c(_), U.currentTarget.scrollIntoView({ behavior: "smooth", inline: "center", block: "nearest" }));
|
|
3124
3094
|
}, z = /* @__PURE__ */ n.jsxs(
|
|
3125
3095
|
"button",
|
|
3126
3096
|
{
|
|
3127
3097
|
className: C,
|
|
3128
3098
|
role: "tab",
|
|
3129
|
-
"aria-label":
|
|
3130
|
-
"aria-selected":
|
|
3099
|
+
"aria-label": p,
|
|
3100
|
+
"aria-selected": a,
|
|
3131
3101
|
"aria-disabled": l,
|
|
3132
|
-
"aria-controls": `tab-panel-${
|
|
3133
|
-
"data-testid": `tab-item-${
|
|
3102
|
+
"aria-controls": `tab-panel-${_}`,
|
|
3103
|
+
"data-testid": `tab-item-${_}`,
|
|
3134
3104
|
onClick: A,
|
|
3135
3105
|
children: [
|
|
3136
|
-
|
|
3106
|
+
f && /* @__PURE__ */ n.jsx(
|
|
3137
3107
|
"span",
|
|
3138
3108
|
{
|
|
3139
|
-
className:
|
|
3109
|
+
className: M,
|
|
3140
3110
|
...L,
|
|
3141
|
-
"data-testid": `tab-prefix-${
|
|
3142
|
-
children:
|
|
3111
|
+
"data-testid": `tab-prefix-${_}`,
|
|
3112
|
+
children: f
|
|
3143
3113
|
}
|
|
3144
3114
|
),
|
|
3145
|
-
/* @__PURE__ */ n.jsx("span", { className:
|
|
3146
|
-
|
|
3115
|
+
/* @__PURE__ */ n.jsx("span", { className: I, "data-testid": `tab-label-${_}`, children: p }),
|
|
3116
|
+
m && /* @__PURE__ */ n.jsx(
|
|
3147
3117
|
"span",
|
|
3148
3118
|
{
|
|
3149
|
-
className:
|
|
3150
|
-
...
|
|
3151
|
-
"data-testid": `tab-postfix-${
|
|
3152
|
-
children:
|
|
3119
|
+
className: j,
|
|
3120
|
+
...v,
|
|
3121
|
+
"data-testid": `tab-postfix-${_}`,
|
|
3122
|
+
children: m
|
|
3153
3123
|
}
|
|
3154
3124
|
)
|
|
3155
3125
|
]
|
|
3156
3126
|
}
|
|
3157
3127
|
);
|
|
3158
|
-
return
|
|
3159
|
-
},
|
|
3128
|
+
return o ? /* @__PURE__ */ n.jsx(Qa, { ...w, "data-testid": `tab-badge-${_}`, children: z }) : z;
|
|
3129
|
+
}, ii = ({
|
|
3160
3130
|
mode: e,
|
|
3161
|
-
items:
|
|
3162
|
-
size:
|
|
3163
|
-
isAllItemsDisabled:
|
|
3131
|
+
items: r,
|
|
3132
|
+
size: a = ti,
|
|
3133
|
+
isAllItemsDisabled: o = ri
|
|
3164
3134
|
}) => {
|
|
3165
|
-
const { activeTab: i, setTab:
|
|
3166
|
-
return /* @__PURE__ */ n.jsx(
|
|
3135
|
+
const { activeTab: i, setTab: s } = rr(), l = Wa();
|
|
3136
|
+
return /* @__PURE__ */ n.jsx(Fo, { size: a, withControls: l, children: /* @__PURE__ */ n.jsx(
|
|
3167
3137
|
"div",
|
|
3168
3138
|
{
|
|
3169
3139
|
role: "tablist",
|
|
3170
3140
|
"data-testid": "tabs-bar",
|
|
3171
3141
|
"aria-orientation": "horizontal",
|
|
3172
|
-
className:
|
|
3173
|
-
children:
|
|
3174
|
-
|
|
3142
|
+
className: k(J.tabBar, J[e]),
|
|
3143
|
+
children: r.map((c) => /* @__PURE__ */ n.jsx(
|
|
3144
|
+
oi,
|
|
3175
3145
|
{
|
|
3176
|
-
size:
|
|
3177
|
-
item:
|
|
3146
|
+
size: a,
|
|
3147
|
+
item: c,
|
|
3178
3148
|
mode: e,
|
|
3179
|
-
showBadge:
|
|
3180
|
-
badgeProps:
|
|
3181
|
-
isActive: i ===
|
|
3182
|
-
isDisabled:
|
|
3183
|
-
onSelectTab:
|
|
3149
|
+
showBadge: c.showBadge,
|
|
3150
|
+
badgeProps: c.badgeProps,
|
|
3151
|
+
isActive: i === c.value,
|
|
3152
|
+
isDisabled: o || c.isDisabled,
|
|
3153
|
+
onSelectTab: s
|
|
3184
3154
|
},
|
|
3185
|
-
|
|
3155
|
+
c.value
|
|
3186
3156
|
))
|
|
3187
3157
|
}
|
|
3188
3158
|
) });
|
|
3189
|
-
},
|
|
3159
|
+
}, li = ({ tabValue: e, children: r, ...a }) => /* @__PURE__ */ n.jsx(
|
|
3190
3160
|
"div",
|
|
3191
3161
|
{
|
|
3192
3162
|
role: "tabpanel",
|
|
3193
3163
|
"data-testid": `tab-panel-${e}`,
|
|
3194
3164
|
"aria-labelledby": `tab-item-${e}`,
|
|
3195
|
-
...
|
|
3196
|
-
children:
|
|
3165
|
+
...a,
|
|
3166
|
+
children: r
|
|
3197
3167
|
}
|
|
3198
|
-
),
|
|
3199
|
-
const { activeTab:
|
|
3200
|
-
return /* @__PURE__ */ n.jsx("div", { "data-testid": "tab-content", ...
|
|
3201
|
-
},
|
|
3202
|
-
Provider:
|
|
3203
|
-
Content:
|
|
3204
|
-
Panel:
|
|
3205
|
-
Bar:
|
|
3206
|
-
},
|
|
3207
|
-
root:
|
|
3208
|
-
open:
|
|
3209
|
-
xs:
|
|
3210
|
-
s:
|
|
3211
|
-
m:
|
|
3212
|
-
neutral:
|
|
3213
|
-
contrast:
|
|
3214
|
-
accent:
|
|
3215
|
-
typography:
|
|
3216
|
-
title:
|
|
3217
|
-
text:
|
|
3218
|
-
mediaWrapper:
|
|
3219
|
-
content:
|
|
3220
|
-
closeButton:
|
|
3221
|
-
hasMedia:
|
|
3222
|
-
buttonStack:
|
|
3223
|
-
},
|
|
3168
|
+
), ci = ({ children: e, ...r }) => {
|
|
3169
|
+
const { activeTab: a } = rr(), o = Array.isArray(e) ? e : [e], i = (s, l) => _t.isValidElement(s) && typeof s.props == "object" && s.props !== null && l in s.props;
|
|
3170
|
+
return /* @__PURE__ */ n.jsx("div", { "data-testid": "tab-content", ...r, children: o.map((s) => i(s, "tabValue") && String(s.props.tabValue) === a ? s : null) });
|
|
3171
|
+
}, al = {
|
|
3172
|
+
Provider: si,
|
|
3173
|
+
Content: ci,
|
|
3174
|
+
Panel: li,
|
|
3175
|
+
Bar: ii
|
|
3176
|
+
}, di = "_root_1fbbw_34", ui = "_open_1fbbw_51", _i = "_xs_1fbbw_55", pi = "_s_1fbbw_61", fi = "_m_1fbbw_67", hi = "_neutral_1fbbw_73", bi = "_contrast_1fbbw_78", gi = "_accent_1fbbw_84", mi = "_typography_1fbbw_89", yi = "_title_1fbbw_89", vi = "_text_1fbbw_93", xi = "_mediaWrapper_1fbbw_97", wi = "_content_1fbbw_112", Ci = "_closeButton_1fbbw_116", Si = "_hasMedia_1fbbw_142", Li = "_buttonStack_1fbbw_148", se = {
|
|
3177
|
+
root: di,
|
|
3178
|
+
open: ui,
|
|
3179
|
+
xs: _i,
|
|
3180
|
+
s: pi,
|
|
3181
|
+
m: fi,
|
|
3182
|
+
neutral: hi,
|
|
3183
|
+
contrast: bi,
|
|
3184
|
+
accent: gi,
|
|
3185
|
+
typography: mi,
|
|
3186
|
+
title: yi,
|
|
3187
|
+
text: vi,
|
|
3188
|
+
mediaWrapper: xi,
|
|
3189
|
+
content: wi,
|
|
3190
|
+
closeButton: Ci,
|
|
3191
|
+
hasMedia: Si,
|
|
3192
|
+
buttonStack: Li
|
|
3193
|
+
}, Ei = () => /* @__PURE__ */ n.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", stroke: "currentColor", children: /* @__PURE__ */ n.jsx("path", { d: "M18 6 6 18M6 6l12 12" }) }), ji = () => /* @__PURE__ */ n.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 9", fill: "currentColor", children: [
|
|
3224
3194
|
/* @__PURE__ */ n.jsx(
|
|
3225
3195
|
"path",
|
|
3226
3196
|
{
|
|
@@ -3390,40 +3360,40 @@ const Ft = Object.assign(Dn, {
|
|
|
3390
3360
|
{ mode: "primary", buttonStyle: "accent", size: "s" }
|
|
3391
3361
|
]
|
|
3392
3362
|
}
|
|
3393
|
-
},
|
|
3394
|
-
const
|
|
3363
|
+
}, $i = (e, r, a) => Math.min(Math.max(e, r), a), Ti = (e, r, a) => {
|
|
3364
|
+
const o = $i(r, 1, 3), i = Ii[a][o];
|
|
3395
3365
|
return i[Math.min(e, i.length - 1)];
|
|
3396
3366
|
}, Wt = ({
|
|
3397
3367
|
text: e,
|
|
3398
|
-
title:
|
|
3399
|
-
media:
|
|
3400
|
-
variant:
|
|
3368
|
+
title: r,
|
|
3369
|
+
media: a,
|
|
3370
|
+
variant: o = "neutral",
|
|
3401
3371
|
size: i,
|
|
3402
|
-
classNames:
|
|
3372
|
+
classNames: s = {},
|
|
3403
3373
|
onClose: l,
|
|
3404
|
-
buttons:
|
|
3405
|
-
buttonProps:
|
|
3406
|
-
showClose:
|
|
3374
|
+
buttons: c,
|
|
3375
|
+
buttonProps: _,
|
|
3376
|
+
showClose: p
|
|
3407
3377
|
}) => {
|
|
3408
|
-
const
|
|
3409
|
-
return /* @__PURE__ */ n.jsxs("div", { className:
|
|
3410
|
-
b && /* @__PURE__ */ n.jsx("div", { className:
|
|
3411
|
-
/* @__PURE__ */ n.jsxs("div", { className:
|
|
3412
|
-
|
|
3378
|
+
const f = ["neutral", "accent"].includes(o) ? "contrast" : "primary", h = i === "m", m = !!(r && h), b = !!(a && h), y = c && !!c.length, L = !!(p && h) || !p && h && !y, x = i === "xs" ? 4 : 3;
|
|
3379
|
+
return /* @__PURE__ */ n.jsxs("div", { className: se.content, children: [
|
|
3380
|
+
b && /* @__PURE__ */ n.jsx("div", { className: k(se.mediaWrapper, s.mediaWrapper), children: a }),
|
|
3381
|
+
/* @__PURE__ */ n.jsxs("div", { className: s.textWrapper, children: [
|
|
3382
|
+
m && /* @__PURE__ */ n.jsx(
|
|
3413
3383
|
Bt.Subtitle,
|
|
3414
3384
|
{
|
|
3415
|
-
className:
|
|
3385
|
+
className: k(se.typography, se.title, s.typography),
|
|
3416
3386
|
size: 1,
|
|
3417
3387
|
as: "h3",
|
|
3418
|
-
typographyStyle:
|
|
3419
|
-
children:
|
|
3388
|
+
typographyStyle: f,
|
|
3389
|
+
children: r
|
|
3420
3390
|
}
|
|
3421
3391
|
),
|
|
3422
3392
|
/* @__PURE__ */ n.jsx(
|
|
3423
3393
|
Bt.Label,
|
|
3424
3394
|
{
|
|
3425
|
-
className:
|
|
3426
|
-
typographyStyle:
|
|
3395
|
+
className: k(se.typography, se.text, s.typography),
|
|
3396
|
+
typographyStyle: f,
|
|
3427
3397
|
size: x,
|
|
3428
3398
|
children: e
|
|
3429
3399
|
}
|
|
@@ -3433,202 +3403,202 @@ const Ft = Object.assign(Dn, {
|
|
|
3433
3403
|
"button",
|
|
3434
3404
|
{
|
|
3435
3405
|
type: "button",
|
|
3436
|
-
className:
|
|
3437
|
-
[
|
|
3406
|
+
className: k(se.closeButton, se[o], s.closeButton, {
|
|
3407
|
+
[se.hasMedia]: b
|
|
3438
3408
|
}),
|
|
3439
3409
|
onClick: l,
|
|
3440
3410
|
"aria-label": "Закрыть подсказку",
|
|
3441
3411
|
"data-testid": "tooltip-close-button",
|
|
3442
|
-
children: /* @__PURE__ */ n.jsx(
|
|
3412
|
+
children: /* @__PURE__ */ n.jsx(Ei, {})
|
|
3443
3413
|
}
|
|
3444
3414
|
),
|
|
3445
|
-
|
|
3415
|
+
h && y && /* @__PURE__ */ n.jsx("div", { className: se.buttonStack, children: c.map((v, d) => {
|
|
3446
3416
|
const C = {
|
|
3447
|
-
...Ti(
|
|
3448
|
-
...
|
|
3449
|
-
...
|
|
3450
|
-
}, { closeOnClick:
|
|
3417
|
+
...Ti(d, c.length, o),
|
|
3418
|
+
..._,
|
|
3419
|
+
...v
|
|
3420
|
+
}, { closeOnClick: M, ...j } = C, I = (A) => {
|
|
3451
3421
|
var z;
|
|
3452
|
-
(z =
|
|
3422
|
+
(z = j.onClick) == null || z.call(j, A), M && (l == null || l());
|
|
3453
3423
|
};
|
|
3454
3424
|
return /* @__PURE__ */ n.jsx(
|
|
3455
|
-
|
|
3425
|
+
ha,
|
|
3456
3426
|
{
|
|
3457
|
-
...
|
|
3458
|
-
onClick:
|
|
3427
|
+
...j,
|
|
3428
|
+
onClick: I
|
|
3459
3429
|
},
|
|
3460
|
-
|
|
3430
|
+
d
|
|
3461
3431
|
);
|
|
3462
3432
|
}) })
|
|
3463
3433
|
] });
|
|
3464
3434
|
}, nl = ({
|
|
3465
3435
|
customContent: e,
|
|
3466
|
-
children:
|
|
3467
|
-
placement:
|
|
3468
|
-
contentClassNames:
|
|
3436
|
+
children: r,
|
|
3437
|
+
placement: a = "top",
|
|
3438
|
+
contentClassNames: o,
|
|
3469
3439
|
mouseEnterDelay: i = 0,
|
|
3470
|
-
mouseLeaveDelay:
|
|
3440
|
+
mouseLeaveDelay: s = 0.1,
|
|
3471
3441
|
showArrow: l = !0,
|
|
3472
|
-
showClose:
|
|
3473
|
-
trigger:
|
|
3474
|
-
variant:
|
|
3475
|
-
size:
|
|
3476
|
-
text:
|
|
3477
|
-
title:
|
|
3442
|
+
showClose: c = !0,
|
|
3443
|
+
trigger: _ = "hover",
|
|
3444
|
+
variant: p = "neutral",
|
|
3445
|
+
size: f = "s",
|
|
3446
|
+
text: h,
|
|
3447
|
+
title: m,
|
|
3478
3448
|
media: b,
|
|
3479
|
-
buttons:
|
|
3449
|
+
buttons: y,
|
|
3480
3450
|
buttonProps: L,
|
|
3481
3451
|
onClose: x,
|
|
3482
|
-
...
|
|
3452
|
+
...v
|
|
3483
3453
|
}) => {
|
|
3484
|
-
const [
|
|
3485
|
-
|
|
3486
|
-
}, A = e || (
|
|
3454
|
+
const [d, w] = de(!1), [C, M] = de(!1), j = f === "m" ? ki : Mi, I = () => {
|
|
3455
|
+
w(!1), x == null || x();
|
|
3456
|
+
}, A = e || (f === "m" ? /* @__PURE__ */ n.jsx(
|
|
3487
3457
|
Wt,
|
|
3488
3458
|
{
|
|
3489
|
-
classNames:
|
|
3490
|
-
text:
|
|
3491
|
-
variant:
|
|
3492
|
-
size:
|
|
3493
|
-
onClose:
|
|
3494
|
-
title:
|
|
3459
|
+
classNames: o,
|
|
3460
|
+
text: h,
|
|
3461
|
+
variant: p,
|
|
3462
|
+
size: f,
|
|
3463
|
+
onClose: I,
|
|
3464
|
+
title: m,
|
|
3495
3465
|
media: b,
|
|
3496
|
-
showClose:
|
|
3497
|
-
buttons:
|
|
3466
|
+
showClose: c,
|
|
3467
|
+
buttons: y,
|
|
3498
3468
|
buttonProps: L
|
|
3499
3469
|
}
|
|
3500
3470
|
) : /* @__PURE__ */ n.jsx(
|
|
3501
3471
|
Wt,
|
|
3502
3472
|
{
|
|
3503
|
-
classNames:
|
|
3504
|
-
text:
|
|
3505
|
-
variant:
|
|
3506
|
-
size:
|
|
3507
|
-
onClose:
|
|
3473
|
+
classNames: o,
|
|
3474
|
+
text: h,
|
|
3475
|
+
variant: p,
|
|
3476
|
+
size: f,
|
|
3477
|
+
onClose: I
|
|
3508
3478
|
}
|
|
3509
3479
|
));
|
|
3510
3480
|
return oe(() => {
|
|
3511
|
-
if (
|
|
3512
|
-
const z = requestAnimationFrame(() =>
|
|
3481
|
+
if (d) {
|
|
3482
|
+
const z = requestAnimationFrame(() => M(!0));
|
|
3513
3483
|
return () => cancelAnimationFrame(z);
|
|
3514
3484
|
}
|
|
3515
|
-
|
|
3516
|
-
}, [
|
|
3485
|
+
M(!1);
|
|
3486
|
+
}, [d]), /* @__PURE__ */ n.jsx(
|
|
3517
3487
|
kr,
|
|
3518
3488
|
{
|
|
3519
|
-
visible:
|
|
3520
|
-
onVisibleChange:
|
|
3489
|
+
visible: d,
|
|
3490
|
+
onVisibleChange: w,
|
|
3521
3491
|
classNames: {
|
|
3522
|
-
root:
|
|
3523
|
-
...
|
|
3492
|
+
root: k(se.root, se[p], se[f], C && se.open),
|
|
3493
|
+
...v.classNames
|
|
3524
3494
|
},
|
|
3525
|
-
placement:
|
|
3495
|
+
placement: a,
|
|
3526
3496
|
overlay: () => A,
|
|
3527
|
-
trigger:
|
|
3497
|
+
trigger: _,
|
|
3528
3498
|
mouseEnterDelay: i,
|
|
3529
|
-
mouseLeaveDelay:
|
|
3499
|
+
mouseLeaveDelay: s,
|
|
3530
3500
|
motion: { motionName: "tooltipMotion" },
|
|
3531
|
-
builtinPlacements:
|
|
3501
|
+
builtinPlacements: j,
|
|
3532
3502
|
showArrow: l ? {
|
|
3533
|
-
content: /* @__PURE__ */ n.jsx(
|
|
3534
|
-
className: `tooltipArrow tooltipArrow-${
|
|
3503
|
+
content: /* @__PURE__ */ n.jsx(ji, {}),
|
|
3504
|
+
className: `tooltipArrow tooltipArrow-${f}`
|
|
3535
3505
|
} : !1,
|
|
3536
3506
|
destroyTooltipOnHide: !0,
|
|
3537
|
-
...
|
|
3538
|
-
children:
|
|
3507
|
+
...v,
|
|
3508
|
+
children: r
|
|
3539
3509
|
}
|
|
3540
3510
|
);
|
|
3541
|
-
},
|
|
3542
|
-
segmentedControl:
|
|
3543
|
-
segment:
|
|
3544
|
-
activeSegmentIndicator:
|
|
3545
|
-
stretched:
|
|
3546
|
-
s:
|
|
3547
|
-
icon:
|
|
3548
|
-
label:
|
|
3549
|
-
m:
|
|
3550
|
-
l:
|
|
3551
|
-
},
|
|
3511
|
+
}, Ri = "_segmentedControl_1yvz7_5", Ni = "_segment_1yvz7_5", Ai = "_activeSegmentIndicator_1yvz7_51", zi = "_stretched_1yvz7_82", Di = "_s_1yvz7_5", Oi = "_icon_1yvz7_90", Pi = "_label_1yvz7_94", Bi = "_m_1yvz7_98", Ui = "_l_1yvz7_94", ze = {
|
|
3512
|
+
segmentedControl: Ri,
|
|
3513
|
+
segment: Ni,
|
|
3514
|
+
activeSegmentIndicator: Ai,
|
|
3515
|
+
stretched: zi,
|
|
3516
|
+
s: Di,
|
|
3517
|
+
icon: Oi,
|
|
3518
|
+
label: Pi,
|
|
3519
|
+
m: Bi,
|
|
3520
|
+
l: Ui
|
|
3521
|
+
}, Ht = {
|
|
3552
3522
|
s: ce["typography-label-3-regular"],
|
|
3553
3523
|
m: ce["typography-label-2-regular"],
|
|
3554
3524
|
l: ce["typography-label-2-regular"]
|
|
3555
|
-
},
|
|
3556
|
-
var
|
|
3525
|
+
}, sl = (e) => {
|
|
3526
|
+
var d;
|
|
3557
3527
|
const {
|
|
3558
|
-
className:
|
|
3559
|
-
defaultValue:
|
|
3560
|
-
value:
|
|
3528
|
+
className: r,
|
|
3529
|
+
defaultValue: a,
|
|
3530
|
+
value: o,
|
|
3561
3531
|
size: i = "m",
|
|
3562
|
-
segments:
|
|
3532
|
+
segments: s,
|
|
3563
3533
|
stretched: l,
|
|
3564
|
-
mode:
|
|
3565
|
-
onChange:
|
|
3566
|
-
} = e,
|
|
3534
|
+
mode: c = "label",
|
|
3535
|
+
onChange: _
|
|
3536
|
+
} = e, p = pt(), [f, h] = de(a || s[0].value), [m, b] = de({ width: 0, left: 0 }), y = Pe(null);
|
|
3567
3537
|
oe(() => {
|
|
3568
|
-
|
|
3569
|
-
}, [
|
|
3538
|
+
o && h(o);
|
|
3539
|
+
}, [o]), oe(() => {
|
|
3570
3540
|
L();
|
|
3571
|
-
}, [
|
|
3541
|
+
}, [f, s, i, l, c]);
|
|
3572
3542
|
const L = () => {
|
|
3573
|
-
if (!(
|
|
3574
|
-
const
|
|
3543
|
+
if (!(y != null && y.current)) return;
|
|
3544
|
+
const w = y.current.querySelector(
|
|
3575
3545
|
'[data-is-active-segment="true"]'
|
|
3576
3546
|
);
|
|
3577
|
-
|
|
3578
|
-
width:
|
|
3579
|
-
left:
|
|
3547
|
+
w && b({
|
|
3548
|
+
width: w.offsetWidth,
|
|
3549
|
+
left: w.offsetLeft
|
|
3580
3550
|
});
|
|
3581
|
-
}, x = (
|
|
3582
|
-
|
|
3551
|
+
}, x = (d = s.find((w) => w.value === f)) == null ? void 0 : d.label, v = (w) => {
|
|
3552
|
+
h(w), _ == null || _(w);
|
|
3583
3553
|
};
|
|
3584
|
-
return (
|
|
3554
|
+
return (s == null ? void 0 : s.length) === 0 ? null : /* @__PURE__ */ n.jsxs(
|
|
3585
3555
|
"div",
|
|
3586
3556
|
{
|
|
3587
|
-
className:
|
|
3557
|
+
className: k(
|
|
3588
3558
|
ze.segmentedControl,
|
|
3589
3559
|
ze[i],
|
|
3590
|
-
ze[
|
|
3560
|
+
ze[c],
|
|
3591
3561
|
{
|
|
3592
3562
|
[ze.stretched]: l
|
|
3593
3563
|
},
|
|
3594
|
-
|
|
3564
|
+
r
|
|
3595
3565
|
),
|
|
3596
3566
|
"data-testid": "segmented-control-container",
|
|
3597
|
-
ref:
|
|
3567
|
+
ref: y,
|
|
3598
3568
|
children: [
|
|
3599
|
-
|
|
3600
|
-
const
|
|
3569
|
+
s == null ? void 0 : s.map(({ label: w, value: C }, M) => {
|
|
3570
|
+
const j = () => v(C);
|
|
3601
3571
|
return /* @__PURE__ */ n.jsxs(De, { children: [
|
|
3602
3572
|
/* @__PURE__ */ n.jsx(
|
|
3603
3573
|
"input",
|
|
3604
3574
|
{
|
|
3605
|
-
id:
|
|
3575
|
+
id: p + JSON.stringify(C),
|
|
3606
3576
|
value: JSON.stringify(C),
|
|
3607
3577
|
type: "radio",
|
|
3608
|
-
checked:
|
|
3609
|
-
onClick:
|
|
3578
|
+
checked: f === C,
|
|
3579
|
+
onClick: j
|
|
3610
3580
|
}
|
|
3611
3581
|
),
|
|
3612
3582
|
/* @__PURE__ */ n.jsx(
|
|
3613
3583
|
"label",
|
|
3614
3584
|
{
|
|
3615
|
-
"data-is-active-segment":
|
|
3616
|
-
className:
|
|
3617
|
-
htmlFor:
|
|
3585
|
+
"data-is-active-segment": f === C,
|
|
3586
|
+
className: k(ze.segment, Ht[i]),
|
|
3587
|
+
htmlFor: p + JSON.stringify(C),
|
|
3618
3588
|
"data-testid": "segmented-control-segment",
|
|
3619
|
-
children:
|
|
3589
|
+
children: w
|
|
3620
3590
|
}
|
|
3621
3591
|
)
|
|
3622
|
-
] },
|
|
3592
|
+
] }, Je(JSON.stringify(C)) + M);
|
|
3623
3593
|
}),
|
|
3624
3594
|
/* @__PURE__ */ n.jsx(
|
|
3625
3595
|
"div",
|
|
3626
3596
|
{
|
|
3627
|
-
className:
|
|
3597
|
+
className: k(ze.activeSegmentIndicator, Ht[i]),
|
|
3628
3598
|
"data-testid": "segmented-control-active-segment",
|
|
3629
3599
|
style: {
|
|
3630
|
-
width:
|
|
3631
|
-
left:
|
|
3600
|
+
width: m.width,
|
|
3601
|
+
left: m.left
|
|
3632
3602
|
},
|
|
3633
3603
|
children: x
|
|
3634
3604
|
}
|
|
@@ -3639,24 +3609,24 @@ const Ft = Object.assign(Dn, {
|
|
|
3639
3609
|
};
|
|
3640
3610
|
export {
|
|
3641
3611
|
Hi as Avatar,
|
|
3642
|
-
|
|
3643
|
-
|
|
3644
|
-
|
|
3612
|
+
Qa as Badge,
|
|
3613
|
+
ha as Button,
|
|
3614
|
+
Ji as Checkbox,
|
|
3645
3615
|
Yi as ConfigProvider,
|
|
3646
|
-
|
|
3647
|
-
|
|
3648
|
-
|
|
3649
|
-
|
|
3650
|
-
|
|
3651
|
-
|
|
3652
|
-
|
|
3653
|
-
|
|
3654
|
-
|
|
3655
|
-
|
|
3616
|
+
el as Helper,
|
|
3617
|
+
Vi as Image,
|
|
3618
|
+
rl as List,
|
|
3619
|
+
bn as Loader,
|
|
3620
|
+
tl as Radio,
|
|
3621
|
+
sl as SegmentedControl,
|
|
3622
|
+
al as Tabs,
|
|
3623
|
+
Xi as Tag,
|
|
3624
|
+
Qi as TextArea,
|
|
3625
|
+
Ki as TextInput,
|
|
3656
3626
|
nl as Tooltip,
|
|
3657
3627
|
Bt as Typography,
|
|
3658
|
-
|
|
3659
|
-
|
|
3660
|
-
|
|
3661
|
-
|
|
3628
|
+
mn as enUS,
|
|
3629
|
+
Zi as ruRU,
|
|
3630
|
+
yn as useConfig,
|
|
3631
|
+
Gi as useLocale
|
|
3662
3632
|
};
|