skillgrid 0.0.21-dev-39472-brand-colors.1146058 → 0.0.21-dev-31775-segmented-control-component.1157511
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/SegmentedControl/SegmentedControl.d.ts +5 -0
- package/dist/components/SegmentedControl/SegmentedControl.type.d.ts +38 -0
- package/dist/components/SegmentedControl/index.d.ts +2 -0
- package/dist/index.cjs.js +11 -11
- package/dist/index.css +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +1324 -1229
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import
|
|
3
|
-
import ye, { clsx as
|
|
4
|
-
import './index.css';function
|
|
1
|
+
import * as jt from "react";
|
|
2
|
+
import Rt, { forwardRef as X, useState as Me, useRef as ze, useEffect as ve, useCallback as Ee, Fragment as tt, createContext as sa, useContext as oa, useLayoutEffect as ia, useImperativeHandle as la, useId as at } from "react";
|
|
3
|
+
import ye, { clsx as K } from "clsx";
|
|
4
|
+
import './index.css';function ca(t) {
|
|
5
5
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
6
6
|
}
|
|
7
|
-
var
|
|
7
|
+
var Fe = { exports: {} }, De = {};
|
|
8
8
|
/**
|
|
9
9
|
* @license React
|
|
10
10
|
* react-jsx-runtime.production.min.js
|
|
@@ -14,21 +14,21 @@ var Pe = { exports: {} }, Te = {};
|
|
|
14
14
|
* This source code is licensed under the MIT license found in the
|
|
15
15
|
* LICENSE file in the root directory of this source tree.
|
|
16
16
|
*/
|
|
17
|
-
var
|
|
18
|
-
function
|
|
19
|
-
if (
|
|
20
|
-
|
|
21
|
-
var t =
|
|
17
|
+
var mt;
|
|
18
|
+
function da() {
|
|
19
|
+
if (mt) return De;
|
|
20
|
+
mt = 1;
|
|
21
|
+
var t = Rt, r = Symbol.for("react.element"), a = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, i = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, s = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
22
22
|
function c(_, d, f) {
|
|
23
23
|
var p, g = {}, h = null, b = null;
|
|
24
24
|
f !== void 0 && (h = "" + f), d.key !== void 0 && (h = "" + d.key), d.ref !== void 0 && (b = d.ref);
|
|
25
25
|
for (p in d) n.call(d, p) && !s.hasOwnProperty(p) && (g[p] = d[p]);
|
|
26
26
|
if (_ && _.defaultProps) for (p in d = _.defaultProps, d) g[p] === void 0 && (g[p] = d[p]);
|
|
27
|
-
return { $$typeof:
|
|
27
|
+
return { $$typeof: r, type: _, key: h, ref: b, props: g, _owner: i.current };
|
|
28
28
|
}
|
|
29
|
-
return
|
|
29
|
+
return De.Fragment = a, De.jsx = c, De.jsxs = c, De;
|
|
30
30
|
}
|
|
31
|
-
var
|
|
31
|
+
var Oe = {};
|
|
32
32
|
/**
|
|
33
33
|
* @license React
|
|
34
34
|
* react-jsx-runtime.development.js
|
|
@@ -38,68 +38,68 @@ var Ae = {};
|
|
|
38
38
|
* This source code is licensed under the MIT license found in the
|
|
39
39
|
* LICENSE file in the root directory of this source tree.
|
|
40
40
|
*/
|
|
41
|
-
var
|
|
42
|
-
function
|
|
43
|
-
return
|
|
44
|
-
var t =
|
|
45
|
-
function
|
|
41
|
+
var yt;
|
|
42
|
+
function ua() {
|
|
43
|
+
return yt || (yt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
44
|
+
var t = Rt, r = Symbol.for("react.element"), a = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), c = Symbol.for("react.provider"), _ = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), g = Symbol.for("react.memo"), h = Symbol.for("react.lazy"), b = Symbol.for("react.offscreen"), m = Symbol.iterator, w = "@@iterator";
|
|
45
|
+
function E(e) {
|
|
46
46
|
if (e === null || typeof e != "object")
|
|
47
47
|
return null;
|
|
48
|
-
var l =
|
|
48
|
+
var l = m && e[m] || e[w];
|
|
49
49
|
return typeof l == "function" ? l : null;
|
|
50
50
|
}
|
|
51
51
|
var C = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
52
|
-
function
|
|
52
|
+
function v(e) {
|
|
53
53
|
{
|
|
54
|
-
for (var l = arguments.length, u = new Array(l > 1 ? l - 1 : 0),
|
|
55
|
-
u[
|
|
56
|
-
|
|
54
|
+
for (var l = arguments.length, u = new Array(l > 1 ? l - 1 : 0), y = 1; y < l; y++)
|
|
55
|
+
u[y - 1] = arguments[y];
|
|
56
|
+
S("error", e, u);
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
|
-
function
|
|
59
|
+
function S(e, l, u) {
|
|
60
60
|
{
|
|
61
|
-
var
|
|
62
|
-
|
|
63
|
-
var
|
|
64
|
-
return String(
|
|
61
|
+
var y = C.ReactDebugCurrentFrame, j = y.getStackAddendum();
|
|
62
|
+
j !== "" && (l += "%s", u = u.concat([j]));
|
|
63
|
+
var A = u.map(function($) {
|
|
64
|
+
return String($);
|
|
65
65
|
});
|
|
66
|
-
|
|
66
|
+
A.unshift("Warning: " + l), Function.prototype.apply.call(console[e], console, A);
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
|
-
var
|
|
70
|
-
|
|
71
|
-
function
|
|
72
|
-
return !!(typeof e == "string" || typeof e == "function" || e === n || e === s ||
|
|
69
|
+
var M = !1, T = !1, N = !1, k = !1, P = !1, D;
|
|
70
|
+
D = Symbol.for("react.module.reference");
|
|
71
|
+
function B(e) {
|
|
72
|
+
return !!(typeof e == "string" || typeof e == "function" || e === n || e === s || P || e === i || e === f || e === p || k || e === b || M || T || N || typeof e == "object" && e !== null && (e.$$typeof === h || e.$$typeof === g || e.$$typeof === c || e.$$typeof === _ || e.$$typeof === d || // This needs to include all possible module reference object
|
|
73
73
|
// types supported by any Flight configuration anywhere since
|
|
74
74
|
// we don't know which Flight build this will end up being used
|
|
75
75
|
// with.
|
|
76
|
-
e.$$typeof ===
|
|
76
|
+
e.$$typeof === D || e.getModuleId !== void 0));
|
|
77
77
|
}
|
|
78
|
-
function
|
|
79
|
-
var
|
|
80
|
-
if (
|
|
81
|
-
return
|
|
82
|
-
var
|
|
83
|
-
return
|
|
78
|
+
function x(e, l, u) {
|
|
79
|
+
var y = e.displayName;
|
|
80
|
+
if (y)
|
|
81
|
+
return y;
|
|
82
|
+
var j = l.displayName || l.name || "";
|
|
83
|
+
return j !== "" ? u + "(" + j + ")" : u;
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function F(e) {
|
|
86
86
|
return e.displayName || "Context";
|
|
87
87
|
}
|
|
88
|
-
function
|
|
88
|
+
function O(e) {
|
|
89
89
|
if (e == null)
|
|
90
90
|
return null;
|
|
91
|
-
if (typeof e.tag == "number" &&
|
|
91
|
+
if (typeof e.tag == "number" && v("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
92
92
|
return e.displayName || e.name || null;
|
|
93
93
|
if (typeof e == "string")
|
|
94
94
|
return e;
|
|
95
95
|
switch (e) {
|
|
96
96
|
case n:
|
|
97
97
|
return "Fragment";
|
|
98
|
-
case
|
|
98
|
+
case a:
|
|
99
99
|
return "Portal";
|
|
100
100
|
case s:
|
|
101
101
|
return "Profiler";
|
|
102
|
-
case
|
|
102
|
+
case i:
|
|
103
103
|
return "StrictMode";
|
|
104
104
|
case f:
|
|
105
105
|
return "Suspense";
|
|
@@ -110,19 +110,19 @@ function ca() {
|
|
|
110
110
|
switch (e.$$typeof) {
|
|
111
111
|
case _:
|
|
112
112
|
var l = e;
|
|
113
|
-
return
|
|
113
|
+
return F(l) + ".Consumer";
|
|
114
114
|
case c:
|
|
115
115
|
var u = e;
|
|
116
|
-
return
|
|
116
|
+
return F(u._context) + ".Provider";
|
|
117
117
|
case d:
|
|
118
|
-
return
|
|
118
|
+
return x(e, e.render, "ForwardRef");
|
|
119
119
|
case g:
|
|
120
|
-
var
|
|
121
|
-
return
|
|
120
|
+
var y = e.displayName || null;
|
|
121
|
+
return y !== null ? y : O(e.type) || "Memo";
|
|
122
122
|
case h: {
|
|
123
|
-
var
|
|
123
|
+
var j = e, A = j._payload, $ = j._init;
|
|
124
124
|
try {
|
|
125
|
-
return
|
|
125
|
+
return O($(A));
|
|
126
126
|
} catch {
|
|
127
127
|
return null;
|
|
128
128
|
}
|
|
@@ -130,18 +130,18 @@ function ca() {
|
|
|
130
130
|
}
|
|
131
131
|
return null;
|
|
132
132
|
}
|
|
133
|
-
var
|
|
134
|
-
function
|
|
133
|
+
var R = Object.assign, W = 0, H, Q, G, te, ae, re, me;
|
|
134
|
+
function ne() {
|
|
135
135
|
}
|
|
136
|
-
|
|
137
|
-
function
|
|
136
|
+
ne.__reactDisabledLog = !0;
|
|
137
|
+
function xe() {
|
|
138
138
|
{
|
|
139
|
-
if (
|
|
140
|
-
H = console.log,
|
|
139
|
+
if (W === 0) {
|
|
140
|
+
H = console.log, Q = console.info, G = console.warn, te = console.error, ae = console.group, re = console.groupCollapsed, me = console.groupEnd;
|
|
141
141
|
var e = {
|
|
142
142
|
configurable: !0,
|
|
143
143
|
enumerable: !0,
|
|
144
|
-
value:
|
|
144
|
+
value: ne,
|
|
145
145
|
writable: !0
|
|
146
146
|
};
|
|
147
147
|
Object.defineProperties(console, {
|
|
@@ -154,53 +154,53 @@ function ca() {
|
|
|
154
154
|
groupEnd: e
|
|
155
155
|
});
|
|
156
156
|
}
|
|
157
|
-
|
|
157
|
+
W++;
|
|
158
158
|
}
|
|
159
159
|
}
|
|
160
|
-
function
|
|
160
|
+
function $e() {
|
|
161
161
|
{
|
|
162
|
-
if (
|
|
162
|
+
if (W--, W === 0) {
|
|
163
163
|
var e = {
|
|
164
164
|
configurable: !0,
|
|
165
165
|
enumerable: !0,
|
|
166
166
|
writable: !0
|
|
167
167
|
};
|
|
168
168
|
Object.defineProperties(console, {
|
|
169
|
-
log:
|
|
169
|
+
log: R({}, e, {
|
|
170
170
|
value: H
|
|
171
171
|
}),
|
|
172
|
-
info:
|
|
173
|
-
value:
|
|
172
|
+
info: R({}, e, {
|
|
173
|
+
value: Q
|
|
174
174
|
}),
|
|
175
|
-
warn:
|
|
175
|
+
warn: R({}, e, {
|
|
176
176
|
value: G
|
|
177
177
|
}),
|
|
178
|
-
error:
|
|
179
|
-
value: ee
|
|
180
|
-
}),
|
|
181
|
-
group: j({}, e, {
|
|
178
|
+
error: R({}, e, {
|
|
182
179
|
value: te
|
|
183
180
|
}),
|
|
184
|
-
|
|
181
|
+
group: R({}, e, {
|
|
185
182
|
value: ae
|
|
186
183
|
}),
|
|
187
|
-
|
|
184
|
+
groupCollapsed: R({}, e, {
|
|
185
|
+
value: re
|
|
186
|
+
}),
|
|
187
|
+
groupEnd: R({}, e, {
|
|
188
188
|
value: me
|
|
189
189
|
})
|
|
190
190
|
});
|
|
191
191
|
}
|
|
192
|
-
|
|
192
|
+
W < 0 && v("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
193
193
|
}
|
|
194
194
|
}
|
|
195
|
-
var
|
|
195
|
+
var Ie = C.ReactCurrentDispatcher, ue;
|
|
196
196
|
function le(e, l, u) {
|
|
197
197
|
{
|
|
198
198
|
if (ue === void 0)
|
|
199
199
|
try {
|
|
200
200
|
throw Error();
|
|
201
|
-
} catch (
|
|
202
|
-
var
|
|
203
|
-
ue =
|
|
201
|
+
} catch (j) {
|
|
202
|
+
var y = j.stack.trim().match(/\n( *(at )?)/);
|
|
203
|
+
ue = y && y[1] || "";
|
|
204
204
|
}
|
|
205
205
|
return `
|
|
206
206
|
` + ue + e;
|
|
@@ -208,8 +208,8 @@ function ca() {
|
|
|
208
208
|
}
|
|
209
209
|
var _e = !1, ce;
|
|
210
210
|
{
|
|
211
|
-
var
|
|
212
|
-
ce = new
|
|
211
|
+
var Ce = typeof WeakMap == "function" ? WeakMap : Map;
|
|
212
|
+
ce = new Ce();
|
|
213
213
|
}
|
|
214
214
|
function Y(e, l) {
|
|
215
215
|
if (!e || _e)
|
|
@@ -219,77 +219,77 @@ function ca() {
|
|
|
219
219
|
if (u !== void 0)
|
|
220
220
|
return u;
|
|
221
221
|
}
|
|
222
|
-
var
|
|
222
|
+
var y;
|
|
223
223
|
_e = !0;
|
|
224
|
-
var
|
|
224
|
+
var j = Error.prepareStackTrace;
|
|
225
225
|
Error.prepareStackTrace = void 0;
|
|
226
|
-
var
|
|
227
|
-
|
|
226
|
+
var A;
|
|
227
|
+
A = Ie.current, Ie.current = null, xe();
|
|
228
228
|
try {
|
|
229
229
|
if (l) {
|
|
230
|
-
var
|
|
230
|
+
var $ = function() {
|
|
231
231
|
throw Error();
|
|
232
232
|
};
|
|
233
|
-
if (Object.defineProperty(
|
|
233
|
+
if (Object.defineProperty($.prototype, "props", {
|
|
234
234
|
set: function() {
|
|
235
235
|
throw Error();
|
|
236
236
|
}
|
|
237
237
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
238
238
|
try {
|
|
239
|
-
Reflect.construct(
|
|
239
|
+
Reflect.construct($, []);
|
|
240
240
|
} catch (J) {
|
|
241
|
-
|
|
241
|
+
y = J;
|
|
242
242
|
}
|
|
243
|
-
Reflect.construct(e, [],
|
|
243
|
+
Reflect.construct(e, [], $);
|
|
244
244
|
} else {
|
|
245
245
|
try {
|
|
246
|
-
|
|
246
|
+
$.call();
|
|
247
247
|
} catch (J) {
|
|
248
|
-
|
|
248
|
+
y = J;
|
|
249
249
|
}
|
|
250
|
-
e.call(
|
|
250
|
+
e.call($.prototype);
|
|
251
251
|
}
|
|
252
252
|
} else {
|
|
253
253
|
try {
|
|
254
254
|
throw Error();
|
|
255
255
|
} catch (J) {
|
|
256
|
-
|
|
256
|
+
y = J;
|
|
257
257
|
}
|
|
258
258
|
e();
|
|
259
259
|
}
|
|
260
260
|
} catch (J) {
|
|
261
|
-
if (J &&
|
|
262
|
-
for (var
|
|
263
|
-
`), Z =
|
|
264
|
-
`), U =
|
|
265
|
-
|
|
266
|
-
for (; U >= 1 &&
|
|
267
|
-
if (
|
|
268
|
-
if (U !== 1 ||
|
|
261
|
+
if (J && y && typeof J.stack == "string") {
|
|
262
|
+
for (var L = J.stack.split(`
|
|
263
|
+
`), Z = y.stack.split(`
|
|
264
|
+
`), U = L.length - 1, V = Z.length - 1; U >= 1 && V >= 0 && L[U] !== Z[V]; )
|
|
265
|
+
V--;
|
|
266
|
+
for (; U >= 1 && V >= 0; U--, V--)
|
|
267
|
+
if (L[U] !== Z[V]) {
|
|
268
|
+
if (U !== 1 || V !== 1)
|
|
269
269
|
do
|
|
270
|
-
if (U--,
|
|
271
|
-
var
|
|
272
|
-
` +
|
|
273
|
-
return e.displayName &&
|
|
270
|
+
if (U--, V--, V < 0 || L[U] !== Z[V]) {
|
|
271
|
+
var se = `
|
|
272
|
+
` + L[U].replace(" at new ", " at ");
|
|
273
|
+
return e.displayName && se.includes("<anonymous>") && (se = se.replace("<anonymous>", e.displayName)), typeof e == "function" && ce.set(e, se), se;
|
|
274
274
|
}
|
|
275
|
-
while (U >= 1 &&
|
|
275
|
+
while (U >= 1 && V >= 0);
|
|
276
276
|
break;
|
|
277
277
|
}
|
|
278
278
|
}
|
|
279
279
|
} finally {
|
|
280
|
-
_e = !1,
|
|
280
|
+
_e = !1, Ie.current = A, $e(), Error.prepareStackTrace = j;
|
|
281
281
|
}
|
|
282
|
-
var
|
|
283
|
-
return typeof e == "function" && ce.set(e,
|
|
282
|
+
var Re = e ? e.displayName || e.name : "", Se = Re ? le(Re) : "";
|
|
283
|
+
return typeof e == "function" && ce.set(e, Se), Se;
|
|
284
284
|
}
|
|
285
|
-
function
|
|
285
|
+
function ee(e, l, u) {
|
|
286
286
|
return Y(e, !1);
|
|
287
287
|
}
|
|
288
288
|
function de(e) {
|
|
289
289
|
var l = e.prototype;
|
|
290
290
|
return !!(l && l.isReactComponent);
|
|
291
291
|
}
|
|
292
|
-
function
|
|
292
|
+
function Pe(e, l, u) {
|
|
293
293
|
if (e == null)
|
|
294
294
|
return "";
|
|
295
295
|
if (typeof e == "function")
|
|
@@ -305,99 +305,99 @@ function ca() {
|
|
|
305
305
|
if (typeof e == "object")
|
|
306
306
|
switch (e.$$typeof) {
|
|
307
307
|
case d:
|
|
308
|
-
return
|
|
308
|
+
return ee(e.render);
|
|
309
309
|
case g:
|
|
310
|
-
return
|
|
310
|
+
return Pe(e.type, l, u);
|
|
311
311
|
case h: {
|
|
312
|
-
var
|
|
312
|
+
var y = e, j = y._payload, A = y._init;
|
|
313
313
|
try {
|
|
314
|
-
return
|
|
314
|
+
return Pe(A(j), l, u);
|
|
315
315
|
} catch {
|
|
316
316
|
}
|
|
317
317
|
}
|
|
318
318
|
}
|
|
319
319
|
return "";
|
|
320
320
|
}
|
|
321
|
-
var
|
|
322
|
-
function
|
|
321
|
+
var Ne = Object.prototype.hasOwnProperty, nt = {}, st = C.ReactDebugCurrentFrame;
|
|
322
|
+
function Be(e) {
|
|
323
323
|
if (e) {
|
|
324
|
-
var l = e._owner, u =
|
|
325
|
-
|
|
324
|
+
var l = e._owner, u = Pe(e.type, e._source, l ? l.type : null);
|
|
325
|
+
st.setExtraStackFrame(u);
|
|
326
326
|
} else
|
|
327
|
-
|
|
327
|
+
st.setExtraStackFrame(null);
|
|
328
328
|
}
|
|
329
|
-
function
|
|
329
|
+
function Ot(e, l, u, y, j) {
|
|
330
330
|
{
|
|
331
|
-
var
|
|
332
|
-
for (var
|
|
333
|
-
if (
|
|
334
|
-
var
|
|
331
|
+
var A = Function.call.bind(Ne);
|
|
332
|
+
for (var $ in e)
|
|
333
|
+
if (A(e, $)) {
|
|
334
|
+
var L = void 0;
|
|
335
335
|
try {
|
|
336
|
-
if (typeof e[
|
|
337
|
-
var Z = Error((
|
|
336
|
+
if (typeof e[$] != "function") {
|
|
337
|
+
var Z = Error((y || "React class") + ": " + u + " type `" + $ + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[$] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
338
338
|
throw Z.name = "Invariant Violation", Z;
|
|
339
339
|
}
|
|
340
|
-
|
|
340
|
+
L = e[$](l, $, y, u, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
341
341
|
} catch (U) {
|
|
342
|
-
|
|
342
|
+
L = U;
|
|
343
343
|
}
|
|
344
|
-
|
|
344
|
+
L && !(L instanceof Error) && (Be(j), v("%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).", y || "React class", u, $, typeof L), Be(null)), L instanceof Error && !(L.message in nt) && (nt[L.message] = !0, Be(j), v("Failed %s type: %s", u, L.message), Be(null));
|
|
345
345
|
}
|
|
346
346
|
}
|
|
347
347
|
}
|
|
348
|
-
var
|
|
349
|
-
function
|
|
350
|
-
return
|
|
348
|
+
var Ut = Array.isArray;
|
|
349
|
+
function He(e) {
|
|
350
|
+
return Ut(e);
|
|
351
351
|
}
|
|
352
|
-
function
|
|
352
|
+
function zt(e) {
|
|
353
353
|
{
|
|
354
354
|
var l = typeof Symbol == "function" && Symbol.toStringTag, u = l && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
355
355
|
return u;
|
|
356
356
|
}
|
|
357
357
|
}
|
|
358
|
-
function
|
|
358
|
+
function Pt(e) {
|
|
359
359
|
try {
|
|
360
|
-
return
|
|
360
|
+
return ot(e), !1;
|
|
361
361
|
} catch {
|
|
362
362
|
return !0;
|
|
363
363
|
}
|
|
364
364
|
}
|
|
365
|
-
function
|
|
365
|
+
function ot(e) {
|
|
366
366
|
return "" + e;
|
|
367
367
|
}
|
|
368
|
-
function
|
|
369
|
-
if (
|
|
370
|
-
return
|
|
368
|
+
function it(e) {
|
|
369
|
+
if (Pt(e))
|
|
370
|
+
return v("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", zt(e)), ot(e);
|
|
371
371
|
}
|
|
372
|
-
var
|
|
372
|
+
var lt = C.ReactCurrentOwner, Bt = {
|
|
373
373
|
key: !0,
|
|
374
374
|
ref: !0,
|
|
375
375
|
__self: !0,
|
|
376
376
|
__source: !0
|
|
377
|
-
},
|
|
378
|
-
function
|
|
379
|
-
if (
|
|
377
|
+
}, ct, dt;
|
|
378
|
+
function Ft(e) {
|
|
379
|
+
if (Ne.call(e, "ref")) {
|
|
380
380
|
var l = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
381
381
|
if (l && l.isReactWarning)
|
|
382
382
|
return !1;
|
|
383
383
|
}
|
|
384
384
|
return e.ref !== void 0;
|
|
385
385
|
}
|
|
386
|
-
function
|
|
387
|
-
if (
|
|
386
|
+
function Vt(e) {
|
|
387
|
+
if (Ne.call(e, "key")) {
|
|
388
388
|
var l = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
389
389
|
if (l && l.isReactWarning)
|
|
390
390
|
return !1;
|
|
391
391
|
}
|
|
392
392
|
return e.key !== void 0;
|
|
393
393
|
}
|
|
394
|
-
function zt(e, l) {
|
|
395
|
-
typeof e.ref == "string" && nt.current;
|
|
396
|
-
}
|
|
397
394
|
function Wt(e, l) {
|
|
395
|
+
typeof e.ref == "string" && lt.current;
|
|
396
|
+
}
|
|
397
|
+
function Ht(e, l) {
|
|
398
398
|
{
|
|
399
399
|
var u = function() {
|
|
400
|
-
|
|
400
|
+
ct || (ct = !0, v("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", l));
|
|
401
401
|
};
|
|
402
402
|
u.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
403
403
|
get: u,
|
|
@@ -405,10 +405,10 @@ function ca() {
|
|
|
405
405
|
});
|
|
406
406
|
}
|
|
407
407
|
}
|
|
408
|
-
function
|
|
408
|
+
function Gt(e, l) {
|
|
409
409
|
{
|
|
410
410
|
var u = function() {
|
|
411
|
-
|
|
411
|
+
dt || (dt = !0, v("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", l));
|
|
412
412
|
};
|
|
413
413
|
u.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
414
414
|
get: u,
|
|
@@ -416,70 +416,70 @@ function ca() {
|
|
|
416
416
|
});
|
|
417
417
|
}
|
|
418
418
|
}
|
|
419
|
-
var
|
|
420
|
-
var
|
|
419
|
+
var Zt = function(e, l, u, y, j, A, $) {
|
|
420
|
+
var L = {
|
|
421
421
|
// This tag allows us to uniquely identify this as a React Element
|
|
422
|
-
$$typeof:
|
|
422
|
+
$$typeof: r,
|
|
423
423
|
// Built-in properties that belong on the element
|
|
424
424
|
type: e,
|
|
425
425
|
key: l,
|
|
426
426
|
ref: u,
|
|
427
|
-
props:
|
|
427
|
+
props: $,
|
|
428
428
|
// Record the component responsible for creating this element.
|
|
429
|
-
_owner:
|
|
429
|
+
_owner: A
|
|
430
430
|
};
|
|
431
|
-
return
|
|
431
|
+
return L._store = {}, Object.defineProperty(L._store, "validated", {
|
|
432
432
|
configurable: !1,
|
|
433
433
|
enumerable: !1,
|
|
434
434
|
writable: !0,
|
|
435
435
|
value: !1
|
|
436
|
-
}), Object.defineProperty(
|
|
436
|
+
}), Object.defineProperty(L, "_self", {
|
|
437
437
|
configurable: !1,
|
|
438
438
|
enumerable: !1,
|
|
439
439
|
writable: !1,
|
|
440
|
-
value:
|
|
441
|
-
}), Object.defineProperty(
|
|
440
|
+
value: y
|
|
441
|
+
}), Object.defineProperty(L, "_source", {
|
|
442
442
|
configurable: !1,
|
|
443
443
|
enumerable: !1,
|
|
444
444
|
writable: !1,
|
|
445
|
-
value:
|
|
446
|
-
}), Object.freeze && (Object.freeze(
|
|
445
|
+
value: j
|
|
446
|
+
}), Object.freeze && (Object.freeze(L.props), Object.freeze(L)), L;
|
|
447
447
|
};
|
|
448
|
-
function
|
|
448
|
+
function qt(e, l, u, y, j) {
|
|
449
449
|
{
|
|
450
|
-
var
|
|
451
|
-
u !== void 0 && (
|
|
452
|
-
for (
|
|
453
|
-
|
|
450
|
+
var A, $ = {}, L = null, Z = null;
|
|
451
|
+
u !== void 0 && (it(u), L = "" + u), Vt(l) && (it(l.key), L = "" + l.key), Ft(l) && (Z = l.ref, Wt(l, j));
|
|
452
|
+
for (A in l)
|
|
453
|
+
Ne.call(l, A) && !Bt.hasOwnProperty(A) && ($[A] = l[A]);
|
|
454
454
|
if (e && e.defaultProps) {
|
|
455
455
|
var U = e.defaultProps;
|
|
456
|
-
for (
|
|
457
|
-
|
|
456
|
+
for (A in U)
|
|
457
|
+
$[A] === void 0 && ($[A] = U[A]);
|
|
458
458
|
}
|
|
459
|
-
if (
|
|
460
|
-
var
|
|
461
|
-
|
|
459
|
+
if (L || Z) {
|
|
460
|
+
var V = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
461
|
+
L && Ht($, V), Z && Gt($, V);
|
|
462
462
|
}
|
|
463
|
-
return
|
|
463
|
+
return Zt(e, L, Z, j, y, lt.current, $);
|
|
464
464
|
}
|
|
465
465
|
}
|
|
466
|
-
var
|
|
467
|
-
function
|
|
466
|
+
var Ge = C.ReactCurrentOwner, ut = C.ReactDebugCurrentFrame;
|
|
467
|
+
function je(e) {
|
|
468
468
|
if (e) {
|
|
469
|
-
var l = e._owner, u =
|
|
470
|
-
|
|
469
|
+
var l = e._owner, u = Pe(e.type, e._source, l ? l.type : null);
|
|
470
|
+
ut.setExtraStackFrame(u);
|
|
471
471
|
} else
|
|
472
|
-
|
|
472
|
+
ut.setExtraStackFrame(null);
|
|
473
473
|
}
|
|
474
|
-
var
|
|
475
|
-
|
|
476
|
-
function
|
|
477
|
-
return typeof e == "object" && e !== null && e.$$typeof ===
|
|
474
|
+
var Ze;
|
|
475
|
+
Ze = !1;
|
|
476
|
+
function qe(e) {
|
|
477
|
+
return typeof e == "object" && e !== null && e.$$typeof === r;
|
|
478
478
|
}
|
|
479
|
-
function
|
|
479
|
+
function _t() {
|
|
480
480
|
{
|
|
481
|
-
if (
|
|
482
|
-
var e =
|
|
481
|
+
if (Ge.current) {
|
|
482
|
+
var e = O(Ge.current.type);
|
|
483
483
|
if (e)
|
|
484
484
|
return `
|
|
485
485
|
|
|
@@ -488,13 +488,13 @@ Check the render method of \`` + e + "`.";
|
|
|
488
488
|
return "";
|
|
489
489
|
}
|
|
490
490
|
}
|
|
491
|
-
function
|
|
491
|
+
function Yt(e) {
|
|
492
492
|
return "";
|
|
493
493
|
}
|
|
494
|
-
var
|
|
495
|
-
function
|
|
494
|
+
var pt = {};
|
|
495
|
+
function Jt(e) {
|
|
496
496
|
{
|
|
497
|
-
var l =
|
|
497
|
+
var l = _t();
|
|
498
498
|
if (!l) {
|
|
499
499
|
var u = typeof e == "string" ? e : e.displayName || e.name;
|
|
500
500
|
u && (l = `
|
|
@@ -504,39 +504,39 @@ Check the top-level render call using <` + u + ">.");
|
|
|
504
504
|
return l;
|
|
505
505
|
}
|
|
506
506
|
}
|
|
507
|
-
function
|
|
507
|
+
function ft(e, l) {
|
|
508
508
|
{
|
|
509
509
|
if (!e._store || e._store.validated || e.key != null)
|
|
510
510
|
return;
|
|
511
511
|
e._store.validated = !0;
|
|
512
|
-
var u =
|
|
513
|
-
if (
|
|
512
|
+
var u = Jt(l);
|
|
513
|
+
if (pt[u])
|
|
514
514
|
return;
|
|
515
|
-
|
|
516
|
-
var
|
|
517
|
-
e && e._owner && e._owner !==
|
|
515
|
+
pt[u] = !0;
|
|
516
|
+
var y = "";
|
|
517
|
+
e && e._owner && e._owner !== Ge.current && (y = " It was passed a child from " + O(e._owner.type) + "."), je(e), v('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', u, y), je(null);
|
|
518
518
|
}
|
|
519
519
|
}
|
|
520
|
-
function
|
|
520
|
+
function gt(e, l) {
|
|
521
521
|
{
|
|
522
522
|
if (typeof e != "object")
|
|
523
523
|
return;
|
|
524
|
-
if (
|
|
524
|
+
if (He(e))
|
|
525
525
|
for (var u = 0; u < e.length; u++) {
|
|
526
|
-
var
|
|
527
|
-
|
|
526
|
+
var y = e[u];
|
|
527
|
+
qe(y) && ft(y, l);
|
|
528
528
|
}
|
|
529
|
-
else if (
|
|
529
|
+
else if (qe(e))
|
|
530
530
|
e._store && (e._store.validated = !0);
|
|
531
531
|
else if (e) {
|
|
532
|
-
var
|
|
533
|
-
if (typeof
|
|
534
|
-
for (var
|
|
535
|
-
|
|
532
|
+
var j = E(e);
|
|
533
|
+
if (typeof j == "function" && j !== e.entries)
|
|
534
|
+
for (var A = j.call(e), $; !($ = A.next()).done; )
|
|
535
|
+
qe($.value) && ft($.value, l);
|
|
536
536
|
}
|
|
537
537
|
}
|
|
538
538
|
}
|
|
539
|
-
function
|
|
539
|
+
function Kt(e) {
|
|
540
540
|
{
|
|
541
541
|
var l = e.type;
|
|
542
542
|
if (l == null || typeof l == "string")
|
|
@@ -551,129 +551,129 @@ Check the top-level render call using <` + u + ">.");
|
|
|
551
551
|
else
|
|
552
552
|
return;
|
|
553
553
|
if (u) {
|
|
554
|
-
var
|
|
555
|
-
|
|
556
|
-
} else if (l.PropTypes !== void 0 && !
|
|
557
|
-
|
|
558
|
-
var
|
|
559
|
-
|
|
554
|
+
var y = O(l);
|
|
555
|
+
Ot(u, e.props, "prop", y, e);
|
|
556
|
+
} else if (l.PropTypes !== void 0 && !Ze) {
|
|
557
|
+
Ze = !0;
|
|
558
|
+
var j = O(l);
|
|
559
|
+
v("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", j || "Unknown");
|
|
560
560
|
}
|
|
561
|
-
typeof l.getDefaultProps == "function" && !l.getDefaultProps.isReactClassApproved &&
|
|
561
|
+
typeof l.getDefaultProps == "function" && !l.getDefaultProps.isReactClassApproved && v("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
562
562
|
}
|
|
563
563
|
}
|
|
564
|
-
function
|
|
564
|
+
function Xt(e) {
|
|
565
565
|
{
|
|
566
566
|
for (var l = Object.keys(e.props), u = 0; u < l.length; u++) {
|
|
567
|
-
var
|
|
568
|
-
if (
|
|
569
|
-
|
|
567
|
+
var y = l[u];
|
|
568
|
+
if (y !== "children" && y !== "key") {
|
|
569
|
+
je(e), v("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", y), je(null);
|
|
570
570
|
break;
|
|
571
571
|
}
|
|
572
572
|
}
|
|
573
|
-
e.ref !== null && (
|
|
573
|
+
e.ref !== null && (je(e), v("Invalid attribute `ref` supplied to `React.Fragment`."), je(null));
|
|
574
574
|
}
|
|
575
575
|
}
|
|
576
|
-
var
|
|
577
|
-
function
|
|
576
|
+
var ht = {};
|
|
577
|
+
function bt(e, l, u, y, j, A) {
|
|
578
578
|
{
|
|
579
|
-
var
|
|
580
|
-
if (
|
|
581
|
-
var
|
|
582
|
-
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (
|
|
583
|
-
var Z =
|
|
584
|
-
Z ?
|
|
579
|
+
var $ = B(e);
|
|
580
|
+
if (!$) {
|
|
581
|
+
var L = "";
|
|
582
|
+
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (L += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
583
|
+
var Z = Yt();
|
|
584
|
+
Z ? L += Z : L += _t();
|
|
585
585
|
var U;
|
|
586
|
-
e === null ? U = "null" :
|
|
586
|
+
e === null ? U = "null" : He(e) ? U = "array" : e !== void 0 && e.$$typeof === r ? (U = "<" + (O(e.type) || "Unknown") + " />", L = " Did you accidentally export a JSX literal instead of a component?") : U = typeof e, v("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", U, L);
|
|
587
587
|
}
|
|
588
|
-
var
|
|
589
|
-
if (
|
|
590
|
-
return
|
|
591
|
-
if (
|
|
592
|
-
var
|
|
593
|
-
if (
|
|
594
|
-
if (
|
|
595
|
-
if (
|
|
596
|
-
for (var
|
|
597
|
-
|
|
598
|
-
Object.freeze && Object.freeze(
|
|
588
|
+
var V = qt(e, l, u, j, A);
|
|
589
|
+
if (V == null)
|
|
590
|
+
return V;
|
|
591
|
+
if ($) {
|
|
592
|
+
var se = l.children;
|
|
593
|
+
if (se !== void 0)
|
|
594
|
+
if (y)
|
|
595
|
+
if (He(se)) {
|
|
596
|
+
for (var Re = 0; Re < se.length; Re++)
|
|
597
|
+
gt(se[Re], e);
|
|
598
|
+
Object.freeze && Object.freeze(se);
|
|
599
599
|
} else
|
|
600
|
-
|
|
600
|
+
v("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
601
601
|
else
|
|
602
|
-
|
|
602
|
+
gt(se, e);
|
|
603
603
|
}
|
|
604
|
-
if (
|
|
605
|
-
var
|
|
606
|
-
return
|
|
607
|
-
}),
|
|
608
|
-
if (!
|
|
609
|
-
var
|
|
610
|
-
|
|
604
|
+
if (Ne.call(l, "key")) {
|
|
605
|
+
var Se = O(e), J = Object.keys(l).filter(function(na) {
|
|
606
|
+
return na !== "key";
|
|
607
|
+
}), Ye = J.length > 0 ? "{key: someKey, " + J.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
608
|
+
if (!ht[Se + Ye]) {
|
|
609
|
+
var ra = J.length > 0 ? "{" + J.join(": ..., ") + ": ...}" : "{}";
|
|
610
|
+
v(`A props object containing a "key" prop is being spread into JSX:
|
|
611
611
|
let props = %s;
|
|
612
612
|
<%s {...props} />
|
|
613
613
|
React keys must be passed directly to JSX without using spread:
|
|
614
614
|
let props = %s;
|
|
615
|
-
<%s key={someKey} {...props} />`,
|
|
615
|
+
<%s key={someKey} {...props} />`, Ye, Se, ra, Se), ht[Se + Ye] = !0;
|
|
616
616
|
}
|
|
617
617
|
}
|
|
618
|
-
return e === n ?
|
|
618
|
+
return e === n ? Xt(V) : Kt(V), V;
|
|
619
619
|
}
|
|
620
620
|
}
|
|
621
|
-
function
|
|
622
|
-
return
|
|
621
|
+
function Qt(e, l, u) {
|
|
622
|
+
return bt(e, l, u, !0);
|
|
623
623
|
}
|
|
624
|
-
function
|
|
625
|
-
return
|
|
624
|
+
function ea(e, l, u) {
|
|
625
|
+
return bt(e, l, u, !1);
|
|
626
626
|
}
|
|
627
|
-
var
|
|
628
|
-
|
|
629
|
-
}()),
|
|
627
|
+
var ta = ea, aa = Qt;
|
|
628
|
+
Oe.Fragment = n, Oe.jsx = ta, Oe.jsxs = aa;
|
|
629
|
+
}()), Oe;
|
|
630
630
|
}
|
|
631
|
-
var
|
|
632
|
-
function
|
|
633
|
-
return
|
|
631
|
+
var vt;
|
|
632
|
+
function _a() {
|
|
633
|
+
return vt || (vt = 1, process.env.NODE_ENV === "production" ? Fe.exports = da() : Fe.exports = ua()), Fe.exports;
|
|
634
634
|
}
|
|
635
|
-
var
|
|
636
|
-
const
|
|
637
|
-
button:
|
|
638
|
-
disabled:
|
|
639
|
-
loading:
|
|
640
|
-
neutral:
|
|
641
|
-
accent:
|
|
642
|
-
positive:
|
|
643
|
-
negative:
|
|
644
|
-
contrast:
|
|
645
|
-
special:
|
|
646
|
-
primary:
|
|
647
|
-
secondary:
|
|
648
|
-
tertiary:
|
|
649
|
-
label:
|
|
650
|
-
rightGroup:
|
|
651
|
-
iconOnly:
|
|
652
|
-
large:
|
|
653
|
-
medium:
|
|
654
|
-
small:
|
|
655
|
-
spaceBetween:
|
|
656
|
-
stretched:
|
|
657
|
-
icon:
|
|
658
|
-
badge:
|
|
659
|
-
badgeMedium:
|
|
660
|
-
circular:
|
|
661
|
-
badgeSmall:
|
|
662
|
-
badgeExtraSmall:
|
|
663
|
-
withSubcaption:
|
|
664
|
-
subcaption:
|
|
665
|
-
loader:
|
|
666
|
-
spin:
|
|
667
|
-
l:
|
|
668
|
-
m:
|
|
669
|
-
s:
|
|
670
|
-
xs:
|
|
671
|
-
},
|
|
635
|
+
var o = _a();
|
|
636
|
+
const pa = (t) => t.as === "a", fa = (t) => t.as === void 0 || t.as === "button", ga = "_button_1abee_213", ha = "_disabled_1abee_237", ba = "_loading_1abee_237", ma = "_neutral_1abee_259", ya = "_accent_1abee_263", va = "_positive_1abee_267", xa = "_negative_1abee_271", Ca = "_contrast_1abee_275", Sa = "_special_1abee_279", wa = "_primary_1abee_284", Ea = "_secondary_1abee_285", La = "_tertiary_1abee_286", Ma = "_label_1abee_321", $a = "_rightGroup_1abee_333", Ia = "_iconOnly_1abee_349", ja = "_large_1abee_357", Ra = "_medium_1abee_361", ka = "_small_1abee_365", Ta = "_spaceBetween_1abee_370", Aa = "_stretched_1abee_384", Na = "_icon_1abee_349", Da = "_badge_1abee_705", Oa = "_badgeMedium_1abee_721", Ua = "_circular_1abee_738", za = "_badgeSmall_1abee_743", Pa = "_badgeExtraSmall_1abee_765", Ba = "_withSubcaption_1abee_784", Fa = "_subcaption_1abee_797", Va = "_loader_1abee_804", Wa = "_spin_1abee_1", Ha = "_l_1abee_237", Ga = "_m_1abee_361", Za = "_s_1abee_279", qa = "_xs_1abee_869", z = {
|
|
637
|
+
button: ga,
|
|
638
|
+
disabled: ha,
|
|
639
|
+
loading: ba,
|
|
640
|
+
neutral: ma,
|
|
641
|
+
accent: ya,
|
|
642
|
+
positive: va,
|
|
643
|
+
negative: xa,
|
|
644
|
+
contrast: Ca,
|
|
645
|
+
special: Sa,
|
|
646
|
+
primary: wa,
|
|
647
|
+
secondary: Ea,
|
|
648
|
+
tertiary: La,
|
|
649
|
+
label: Ma,
|
|
650
|
+
rightGroup: $a,
|
|
651
|
+
iconOnly: Ia,
|
|
652
|
+
large: ja,
|
|
653
|
+
medium: Ra,
|
|
654
|
+
small: ka,
|
|
655
|
+
spaceBetween: Ta,
|
|
656
|
+
stretched: Aa,
|
|
657
|
+
icon: Na,
|
|
658
|
+
badge: Da,
|
|
659
|
+
badgeMedium: Oa,
|
|
660
|
+
circular: Ua,
|
|
661
|
+
badgeSmall: za,
|
|
662
|
+
badgeExtraSmall: Pa,
|
|
663
|
+
withSubcaption: Ba,
|
|
664
|
+
subcaption: Fa,
|
|
665
|
+
loader: Va,
|
|
666
|
+
spin: Wa,
|
|
667
|
+
l: Ha,
|
|
668
|
+
m: Ga,
|
|
669
|
+
s: Za,
|
|
670
|
+
xs: qa
|
|
671
|
+
}, xt = ({
|
|
672
672
|
isLoading: t,
|
|
673
|
-
showBadge:
|
|
674
|
-
badgeValue:
|
|
673
|
+
showBadge: r,
|
|
674
|
+
badgeValue: a,
|
|
675
675
|
badgeSize: n,
|
|
676
|
-
icon:
|
|
676
|
+
icon: i,
|
|
677
677
|
children: s,
|
|
678
678
|
postfix: c,
|
|
679
679
|
showSubcaption: _,
|
|
@@ -681,37 +681,37 @@ const ua = (t) => t.as === "a", _a = (t) => t.as === void 0 || t.as === "button"
|
|
|
681
681
|
size: f
|
|
682
682
|
}) => {
|
|
683
683
|
if (t)
|
|
684
|
-
return /* @__PURE__ */
|
|
685
|
-
const p = n === "extra-small", g = parseInt(String(
|
|
686
|
-
return /* @__PURE__ */
|
|
687
|
-
|
|
684
|
+
return /* @__PURE__ */ o.jsx("span", { className: z.loader, "data-testid": "button-loader", "aria-hidden": "true" });
|
|
685
|
+
const p = n === "extra-small", g = parseInt(String(a), 10), h = !isNaN(g) && g >= 0 && g <= 9;
|
|
686
|
+
return /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
687
|
+
r && (a || p) && /* @__PURE__ */ o.jsx(
|
|
688
688
|
"span",
|
|
689
689
|
{
|
|
690
690
|
"data-testid": "button-badge",
|
|
691
|
-
className:
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
{ [
|
|
691
|
+
className: K(
|
|
692
|
+
z.badge,
|
|
693
|
+
z[`badge${p ? "ExtraSmall" : n === "medium" ? "Medium" : "Small"}`],
|
|
694
|
+
{ [z.circular]: h && !p }
|
|
695
695
|
),
|
|
696
|
-
children: !p &&
|
|
696
|
+
children: !p && a
|
|
697
697
|
}
|
|
698
698
|
),
|
|
699
|
-
_ && f !== "s" && f !== "xs" ? /* @__PURE__ */
|
|
700
|
-
/* @__PURE__ */
|
|
701
|
-
/* @__PURE__ */
|
|
702
|
-
] }) : s ? /* @__PURE__ */
|
|
703
|
-
/* @__PURE__ */
|
|
704
|
-
/* @__PURE__ */
|
|
705
|
-
|
|
706
|
-
c && /* @__PURE__ */
|
|
699
|
+
_ && f !== "s" && f !== "xs" ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
700
|
+
/* @__PURE__ */ o.jsx("span", { "data-testid": "button-label", className: z.label, children: s }),
|
|
701
|
+
/* @__PURE__ */ o.jsx("span", { "data-testid": "button-subcaption", className: z.subcaption, children: d })
|
|
702
|
+
] }) : s ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
703
|
+
/* @__PURE__ */ o.jsx("span", { "data-testid": "button-label", className: z.label, children: s }),
|
|
704
|
+
/* @__PURE__ */ o.jsxs("div", { "data-testid": "button-right-group", className: z.rightGroup, children: [
|
|
705
|
+
i && /* @__PURE__ */ o.jsx("span", { "data-testid": "button-icon", className: z.icon, children: i }),
|
|
706
|
+
c && /* @__PURE__ */ o.jsx("span", { "data-testid": "button-postfix", className: z.postfix, children: c })
|
|
707
707
|
] })
|
|
708
|
-
] }) : /* @__PURE__ */
|
|
708
|
+
] }) : /* @__PURE__ */ o.jsx("span", { "data-testid": "button-icon", className: z.icon, children: i })
|
|
709
709
|
] });
|
|
710
|
-
},
|
|
710
|
+
}, Ps = X((t, r) => {
|
|
711
711
|
const {
|
|
712
|
-
mode:
|
|
712
|
+
mode: a = "primary",
|
|
713
713
|
size: n = "m",
|
|
714
|
-
buttonStyle:
|
|
714
|
+
buttonStyle: i = "neutral",
|
|
715
715
|
loading: s = !1,
|
|
716
716
|
disabled: c = !1,
|
|
717
717
|
showBadge: _ = !1,
|
|
@@ -721,140 +721,140 @@ const ua = (t) => t.as === "a", _a = (t) => t.as === void 0 || t.as === "button"
|
|
|
721
721
|
subcaption: g,
|
|
722
722
|
stretched: h = !1,
|
|
723
723
|
spaceBetween: b = !1,
|
|
724
|
-
icon:
|
|
724
|
+
icon: m,
|
|
725
725
|
postfix: w,
|
|
726
|
-
className:
|
|
726
|
+
className: E,
|
|
727
727
|
children: C
|
|
728
|
-
} = t,
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
728
|
+
} = t, v = c, S = s, M = !v && !S, T = !!m && !C, N = K(
|
|
729
|
+
z.button,
|
|
730
|
+
z[n],
|
|
731
|
+
z[a],
|
|
732
|
+
z[i],
|
|
733
733
|
{
|
|
734
|
-
[
|
|
735
|
-
[
|
|
736
|
-
[
|
|
737
|
-
[
|
|
738
|
-
[
|
|
739
|
-
[
|
|
734
|
+
[z.disabled]: v,
|
|
735
|
+
[z.loading]: S,
|
|
736
|
+
[z.stretched]: h,
|
|
737
|
+
[z.spaceBetween]: b && h,
|
|
738
|
+
[z.withSubcaption]: p && g && n !== "s" && n !== "xs",
|
|
739
|
+
[z.iconOnly]: T
|
|
740
740
|
},
|
|
741
|
-
|
|
742
|
-
),
|
|
743
|
-
isLoading:
|
|
741
|
+
E
|
|
742
|
+
), k = {
|
|
743
|
+
isLoading: S,
|
|
744
744
|
showBadge: _,
|
|
745
745
|
badgeValue: f,
|
|
746
746
|
badgeSize: d,
|
|
747
|
-
icon:
|
|
747
|
+
icon: m,
|
|
748
748
|
children: C,
|
|
749
749
|
postfix: w,
|
|
750
750
|
showSubcaption: p,
|
|
751
751
|
subcaption: g,
|
|
752
752
|
size: n
|
|
753
753
|
};
|
|
754
|
-
if (
|
|
754
|
+
if (pa(t)) {
|
|
755
755
|
const {
|
|
756
|
-
href:
|
|
757
|
-
onClick:
|
|
758
|
-
mode:
|
|
759
|
-
size:
|
|
760
|
-
buttonStyle:
|
|
761
|
-
loading:
|
|
762
|
-
disabled:
|
|
763
|
-
showBadge:
|
|
756
|
+
href: P,
|
|
757
|
+
onClick: D,
|
|
758
|
+
mode: B,
|
|
759
|
+
size: x,
|
|
760
|
+
buttonStyle: F,
|
|
761
|
+
loading: O,
|
|
762
|
+
disabled: R,
|
|
763
|
+
showBadge: W,
|
|
764
764
|
badgeSize: H,
|
|
765
|
-
badgeValue:
|
|
765
|
+
badgeValue: Q,
|
|
766
766
|
showSubcaption: G,
|
|
767
|
-
subcaption:
|
|
768
|
-
stretched:
|
|
769
|
-
spaceBetween:
|
|
767
|
+
subcaption: te,
|
|
768
|
+
stretched: ae,
|
|
769
|
+
spaceBetween: re,
|
|
770
770
|
icon: me,
|
|
771
|
-
postfix:
|
|
772
|
-
className:
|
|
773
|
-
tabIndex:
|
|
774
|
-
children:
|
|
771
|
+
postfix: ne,
|
|
772
|
+
className: xe,
|
|
773
|
+
tabIndex: $e,
|
|
774
|
+
children: Ie,
|
|
775
775
|
"data-testid": ue,
|
|
776
776
|
style: le,
|
|
777
777
|
..._e
|
|
778
|
-
} = t, ce = (
|
|
779
|
-
|
|
778
|
+
} = t, ce = (Ce) => {
|
|
779
|
+
M && D && D(Ce);
|
|
780
780
|
};
|
|
781
|
-
return /* @__PURE__ */
|
|
781
|
+
return /* @__PURE__ */ o.jsx(
|
|
782
782
|
"a",
|
|
783
783
|
{
|
|
784
|
-
ref:
|
|
785
|
-
className:
|
|
786
|
-
href:
|
|
784
|
+
ref: r,
|
|
785
|
+
className: N,
|
|
786
|
+
href: M ? P : void 0,
|
|
787
787
|
tabIndex: t.tabIndex,
|
|
788
788
|
onClick: ce,
|
|
789
789
|
"data-testid": ue,
|
|
790
|
-
"aria-disabled":
|
|
790
|
+
"aria-disabled": v || S,
|
|
791
791
|
style: le,
|
|
792
792
|
..._e,
|
|
793
|
-
children: /* @__PURE__ */
|
|
793
|
+
children: /* @__PURE__ */ o.jsx(xt, { ...k })
|
|
794
794
|
}
|
|
795
795
|
);
|
|
796
796
|
}
|
|
797
|
-
if (
|
|
797
|
+
if (fa(t)) {
|
|
798
798
|
const {
|
|
799
|
-
type:
|
|
800
|
-
onClick:
|
|
801
|
-
mode:
|
|
802
|
-
size:
|
|
803
|
-
buttonStyle:
|
|
804
|
-
loading:
|
|
805
|
-
disabled:
|
|
806
|
-
showBadge:
|
|
799
|
+
type: P = "button",
|
|
800
|
+
onClick: D,
|
|
801
|
+
mode: B,
|
|
802
|
+
size: x,
|
|
803
|
+
buttonStyle: F,
|
|
804
|
+
loading: O,
|
|
805
|
+
disabled: R,
|
|
806
|
+
showBadge: W,
|
|
807
807
|
badgeSize: H,
|
|
808
|
-
badgeValue:
|
|
808
|
+
badgeValue: Q,
|
|
809
809
|
showSubcaption: G,
|
|
810
|
-
subcaption:
|
|
811
|
-
stretched:
|
|
812
|
-
spaceBetween:
|
|
810
|
+
subcaption: te,
|
|
811
|
+
stretched: ae,
|
|
812
|
+
spaceBetween: re,
|
|
813
813
|
icon: me,
|
|
814
|
-
postfix:
|
|
815
|
-
className:
|
|
816
|
-
tabIndex:
|
|
817
|
-
children:
|
|
814
|
+
postfix: ne,
|
|
815
|
+
className: xe,
|
|
816
|
+
tabIndex: $e,
|
|
817
|
+
children: Ie,
|
|
818
818
|
"data-testid": ue,
|
|
819
819
|
style: le,
|
|
820
820
|
..._e
|
|
821
|
-
} = t, ce = (
|
|
822
|
-
|
|
821
|
+
} = t, ce = (Ce) => {
|
|
822
|
+
M && D && D(Ce);
|
|
823
823
|
};
|
|
824
|
-
return /* @__PURE__ */
|
|
824
|
+
return /* @__PURE__ */ o.jsx(
|
|
825
825
|
"button",
|
|
826
826
|
{
|
|
827
|
-
ref:
|
|
828
|
-
type:
|
|
829
|
-
className:
|
|
830
|
-
disabled:
|
|
827
|
+
ref: r,
|
|
828
|
+
type: P,
|
|
829
|
+
className: N,
|
|
830
|
+
disabled: v,
|
|
831
831
|
tabIndex: t.tabIndex,
|
|
832
832
|
onClick: ce,
|
|
833
833
|
"data-testid": ue,
|
|
834
|
-
"aria-disabled":
|
|
834
|
+
"aria-disabled": v || S,
|
|
835
835
|
style: le,
|
|
836
836
|
..._e,
|
|
837
|
-
children: /* @__PURE__ */
|
|
837
|
+
children: /* @__PURE__ */ o.jsx(xt, { ...k })
|
|
838
838
|
}
|
|
839
839
|
);
|
|
840
840
|
}
|
|
841
841
|
return null;
|
|
842
842
|
});
|
|
843
|
-
var
|
|
843
|
+
var Je = { exports: {} };
|
|
844
844
|
/*!
|
|
845
845
|
Copyright (c) 2018 Jed Watson.
|
|
846
846
|
Licensed under the MIT License (MIT), see
|
|
847
847
|
http://jedwatson.github.io/classnames
|
|
848
848
|
*/
|
|
849
|
-
var
|
|
850
|
-
function
|
|
851
|
-
return
|
|
849
|
+
var Ct;
|
|
850
|
+
function Ya() {
|
|
851
|
+
return Ct || (Ct = 1, function(t) {
|
|
852
852
|
(function() {
|
|
853
|
-
var
|
|
854
|
-
function
|
|
853
|
+
var r = {}.hasOwnProperty;
|
|
854
|
+
function a() {
|
|
855
855
|
for (var s = "", c = 0; c < arguments.length; c++) {
|
|
856
856
|
var _ = arguments[c];
|
|
857
|
-
_ && (s =
|
|
857
|
+
_ && (s = i(s, n(_)));
|
|
858
858
|
}
|
|
859
859
|
return s;
|
|
860
860
|
}
|
|
@@ -864,29 +864,29 @@ function Za() {
|
|
|
864
864
|
if (typeof s != "object")
|
|
865
865
|
return "";
|
|
866
866
|
if (Array.isArray(s))
|
|
867
|
-
return
|
|
867
|
+
return a.apply(null, s);
|
|
868
868
|
if (s.toString !== Object.prototype.toString && !s.toString.toString().includes("[native code]"))
|
|
869
869
|
return s.toString();
|
|
870
870
|
var c = "";
|
|
871
871
|
for (var _ in s)
|
|
872
|
-
|
|
872
|
+
r.call(s, _) && s[_] && (c = i(c, _));
|
|
873
873
|
return c;
|
|
874
874
|
}
|
|
875
|
-
function
|
|
875
|
+
function i(s, c) {
|
|
876
876
|
return c ? s ? s + " " + c : s + c : s;
|
|
877
877
|
}
|
|
878
|
-
t.exports ? (
|
|
878
|
+
t.exports ? (a.default = a, t.exports = a) : window.classNames = a;
|
|
879
879
|
})();
|
|
880
|
-
}(
|
|
880
|
+
}(Je)), Je.exports;
|
|
881
881
|
}
|
|
882
|
-
var
|
|
883
|
-
const he = /* @__PURE__ */
|
|
884
|
-
avatar:
|
|
885
|
-
clickable:
|
|
886
|
-
icon:
|
|
887
|
-
disabled:
|
|
888
|
-
image:
|
|
889
|
-
name:
|
|
882
|
+
var Ja = Ya();
|
|
883
|
+
const he = /* @__PURE__ */ ca(Ja), Ka = "_avatar_1ob17_4", Xa = "_clickable_1ob17_23", Qa = "_icon_1ob17_40", er = "_disabled_1ob17_45", tr = "_image_1ob17_51", ar = "_name_1ob17_51", rr = "_circle_1ob17_160", nr = "_square_1ob17_164", oe = {
|
|
884
|
+
avatar: Ka,
|
|
885
|
+
clickable: Xa,
|
|
886
|
+
icon: Qa,
|
|
887
|
+
disabled: er,
|
|
888
|
+
image: tr,
|
|
889
|
+
name: ar,
|
|
890
890
|
"size-208": "_size-208_1ob17_104",
|
|
891
891
|
"size-96": "_size-96_1ob17_111",
|
|
892
892
|
"size-84": "_size-84_1ob17_118",
|
|
@@ -895,8 +895,8 @@ const he = /* @__PURE__ */ ia(qa), Ya = "_avatar_1ob17_4", Ja = "_clickable_1ob1
|
|
|
895
895
|
"size-40": "_size-40_1ob17_139",
|
|
896
896
|
"size-32": "_size-32_1ob17_146",
|
|
897
897
|
"size-24": "_size-24_1ob17_153",
|
|
898
|
-
circle:
|
|
899
|
-
square:
|
|
898
|
+
circle: rr,
|
|
899
|
+
square: nr,
|
|
900
900
|
"variant-filled": "_variant-filled_1ob17_185",
|
|
901
901
|
"color-brand": "_color-brand_1ob17_190",
|
|
902
902
|
"color-red": "_color-red_1ob17_194",
|
|
@@ -910,20 +910,20 @@ const he = /* @__PURE__ */ ia(qa), Ya = "_avatar_1ob17_4", Ja = "_clickable_1ob1
|
|
|
910
910
|
"color-contrast": "_color-contrast_1ob17_226",
|
|
911
911
|
"variant-light": "_variant-light_1ob17_232",
|
|
912
912
|
"variant-outline": "_variant-outline_1ob17_304"
|
|
913
|
-
},
|
|
914
|
-
function
|
|
915
|
-
return t <
|
|
913
|
+
}, St = 99;
|
|
914
|
+
function sr(t) {
|
|
915
|
+
return t < St ? `+${t}` : `${St}+`;
|
|
916
916
|
}
|
|
917
|
-
function
|
|
918
|
-
const
|
|
919
|
-
let
|
|
920
|
-
for (let n = 0; n <
|
|
921
|
-
const
|
|
922
|
-
|
|
917
|
+
function rt(t) {
|
|
918
|
+
const r = typeof t == "string" ? t : JSON.stringify(t);
|
|
919
|
+
let a = 5381;
|
|
920
|
+
for (let n = 0; n < r.length; n++) {
|
|
921
|
+
const i = r.charCodeAt(n);
|
|
922
|
+
a = (a << 5) + a + i;
|
|
923
923
|
}
|
|
924
|
-
return
|
|
924
|
+
return a >>> 0;
|
|
925
925
|
}
|
|
926
|
-
const
|
|
926
|
+
const or = [
|
|
927
927
|
"red",
|
|
928
928
|
"orange",
|
|
929
929
|
"yellow",
|
|
@@ -932,28 +932,28 @@ const nr = [
|
|
|
932
932
|
"lightblue",
|
|
933
933
|
"purple"
|
|
934
934
|
];
|
|
935
|
-
function
|
|
936
|
-
const
|
|
937
|
-
return
|
|
935
|
+
function ir(t, r = or) {
|
|
936
|
+
const a = rt(t), n = Math.abs(a) % r.length;
|
|
937
|
+
return r[n];
|
|
938
938
|
}
|
|
939
|
-
const
|
|
940
|
-
function
|
|
941
|
-
const
|
|
942
|
-
return
|
|
939
|
+
const wt = 2;
|
|
940
|
+
function lr(t) {
|
|
941
|
+
const r = t.split(" ");
|
|
942
|
+
return r.length === 1 ? t.slice(0, wt).toUpperCase() : r.map((a) => a[0]).slice(0, wt).join("").toUpperCase();
|
|
943
943
|
}
|
|
944
|
-
function
|
|
945
|
-
return
|
|
944
|
+
function cr(t, r) {
|
|
945
|
+
return r === "circle" ? t / 2 : t === 24 || t === 208 ? 8 : t === 32 || t === 40 || t === 48 ? 12 : t === 56 ? 16 : t === 84 || t === 96 ? 24 : 12;
|
|
946
946
|
}
|
|
947
|
-
const lr = "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", cr = "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", dr = "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", ur = "data:image/svg+xml,%3csvg%20opacity='0.9'%20viewBox='0%200%20208%20208'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20filter='url(%23shadow)'%3e%3cpath%20d='M168%20208V118.053C168%20113.824%20165.34%20110.052%20161.356%20108.633L134%2098.885V208H168Z'%20fill='darkgrey'/%3e%3cpath%20d='M40%2072.3726C40%2070.7381%2040.9944%2069.268%2042.5116%2068.6598L111.951%2040.8215C113.226%2040.3102%20114.675%2040.4893%20115.787%2041.2958L129.87%2051.5056C132.464%2053.3866%20134%2056.397%20134%2059.6017V208H40V72.3726Z'%20fill='white'/%3e%3cpath%20d='M114%2047.5001L126.325%2056.3036C127.376%2057.0544%20128%2058.2667%20128%2059.5585V208H114V47.5001Z'%20fill='darkgrey'/%3e%3c/g%3e%3cdefs%3e%3cfilter%20id='shadow'%3e%3cfeDropShadow%20dx='-2'%20dy='-1'%20stdDeviation='7'%20flood-color='rgba(0,0,0,0.2)'/%3e%3c/filter%3e%3c/defs%3e%3c/svg%3e", _r = {
|
|
948
|
-
male:
|
|
949
|
-
female:
|
|
950
|
-
org:
|
|
951
|
-
neutral:
|
|
952
|
-
},
|
|
947
|
+
const dr = "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", ur = "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", _r = "data:image/svg+xml,%3csvg%20opacity='0.9'%20viewBox='0%200%20208%20208'%20fill='currentColor'%20xmlns='http://www.w3.org/2000/svg'%3e%3cdefs%3e%3cmask%20id='hole'%3e%3crect%20width='100%25'%20height='100%25'%20fill='white'/%3e%3ccircle%20cx='121.333'%20cy='121.333'%20r='52'%20fill='black'/%3e%3c/mask%3e%3cfilter%20id='shadow'%3e%3cfeDropShadow%20dx='-2'%20dy='-1'%20stdDeviation='10'%20flood-color='rgba(0,0,0,0.2)'/%3e%3c/filter%3e%3c/defs%3e%3cg%20filter='url(%23shadow)'%3e%3ccircle%20cx='104'%20cy='225.333'%20r='95.3333'%20fill='darkgray'/%3e%3ccircle%20cx='104'%20cy='225.333'%20r='95.3333'%20fill='white'%20mask='url(%23hole)'/%3e%3ccircle%20cx='104'%20cy='86.6666'%20r='52'%20fill='white'/%3e%3c/g%3e%3c/svg%3e", pr = "data:image/svg+xml,%3csvg%20opacity='0.9'%20viewBox='0%200%20208%20208'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20filter='url(%23shadow)'%3e%3cpath%20d='M168%20208V118.053C168%20113.824%20165.34%20110.052%20161.356%20108.633L134%2098.885V208H168Z'%20fill='darkgrey'/%3e%3cpath%20d='M40%2072.3726C40%2070.7381%2040.9944%2069.268%2042.5116%2068.6598L111.951%2040.8215C113.226%2040.3102%20114.675%2040.4893%20115.787%2041.2958L129.87%2051.5056C132.464%2053.3866%20134%2056.397%20134%2059.6017V208H40V72.3726Z'%20fill='white'/%3e%3cpath%20d='M114%2047.5001L126.325%2056.3036C127.376%2057.0544%20128%2058.2667%20128%2059.5585V208H114V47.5001Z'%20fill='darkgrey'/%3e%3c/g%3e%3cdefs%3e%3cfilter%20id='shadow'%3e%3cfeDropShadow%20dx='-2'%20dy='-1'%20stdDeviation='7'%20flood-color='rgba(0,0,0,0.2)'/%3e%3c/filter%3e%3c/defs%3e%3c/svg%3e", fr = {
|
|
948
|
+
male: dr,
|
|
949
|
+
female: ur,
|
|
950
|
+
org: pr,
|
|
951
|
+
neutral: _r
|
|
952
|
+
}, et = X((t, r) => {
|
|
953
953
|
const {
|
|
954
|
-
style:
|
|
954
|
+
style: a,
|
|
955
955
|
size: n = 40,
|
|
956
|
-
isLoading:
|
|
956
|
+
isLoading: i = !1,
|
|
957
957
|
isDisabled: s = !1,
|
|
958
958
|
shape: c = "circle",
|
|
959
959
|
variant: _ = "light",
|
|
@@ -963,104 +963,104 @@ const lr = "data:image/svg+xml,%3csvg%20opacity='0.9'%20preserveAspectRatio='xMi
|
|
|
963
963
|
imgAlt: g = "",
|
|
964
964
|
icon: h,
|
|
965
965
|
imgProps: b,
|
|
966
|
-
colorScheme:
|
|
966
|
+
colorScheme: m,
|
|
967
967
|
"data-testid": w,
|
|
968
|
-
...
|
|
969
|
-
} = t, { onClick: C, onPointerDown:
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
968
|
+
...E
|
|
969
|
+
} = t, { onClick: C, onPointerDown: v } = E, M = !s && !i && (!!C || !!v), [T, N] = Me(!p), k = p && !T ? "image" : h ? "icon" : f ? "name" : "placeholder", P = k === "name" ? m || ir(f) : m || "gray", D = he(
|
|
970
|
+
oe.avatar,
|
|
971
|
+
oe[c],
|
|
972
|
+
oe[`size-${n}`],
|
|
973
|
+
oe[`variant-${_}`],
|
|
974
|
+
oe[`color-${P}`],
|
|
975
975
|
{
|
|
976
|
-
[
|
|
977
|
-
[
|
|
978
|
-
[
|
|
976
|
+
[oe.disabled]: s,
|
|
977
|
+
[oe.loading]: i,
|
|
978
|
+
[oe.clickable]: M
|
|
979
979
|
}
|
|
980
|
-
),
|
|
981
|
-
icon: () => /* @__PURE__ */
|
|
982
|
-
name: () => /* @__PURE__ */
|
|
980
|
+
), B = {
|
|
981
|
+
icon: () => /* @__PURE__ */ o.jsx("span", { "data-testid": "avatar-icon", title: g, role: "img", className: he(oe.icon), children: h == null ? void 0 : h({}) }),
|
|
982
|
+
name: () => /* @__PURE__ */ o.jsx(
|
|
983
983
|
"span",
|
|
984
984
|
{
|
|
985
985
|
role: "textbox",
|
|
986
986
|
"data-testid": "avatar-name",
|
|
987
|
-
className: he(
|
|
987
|
+
className: he(oe.name),
|
|
988
988
|
title: g,
|
|
989
|
-
children:
|
|
989
|
+
children: lr(f)
|
|
990
990
|
}
|
|
991
991
|
),
|
|
992
|
-
placeholder: () => /* @__PURE__ */
|
|
992
|
+
placeholder: () => /* @__PURE__ */ o.jsx(
|
|
993
993
|
"img",
|
|
994
994
|
{
|
|
995
995
|
...b,
|
|
996
996
|
"data-testid": "avatar-placeholder",
|
|
997
|
-
className:
|
|
998
|
-
src:
|
|
997
|
+
className: oe.image,
|
|
998
|
+
src: fr[d],
|
|
999
999
|
alt: g
|
|
1000
1000
|
}
|
|
1001
1001
|
),
|
|
1002
|
-
image: () => /* @__PURE__ */
|
|
1002
|
+
image: () => /* @__PURE__ */ o.jsx(
|
|
1003
1003
|
"img",
|
|
1004
1004
|
{
|
|
1005
1005
|
"data-testid": "avatar-image",
|
|
1006
1006
|
...b,
|
|
1007
|
-
className:
|
|
1007
|
+
className: oe.image,
|
|
1008
1008
|
src: p,
|
|
1009
1009
|
alt: g,
|
|
1010
|
-
onLoad: () =>
|
|
1011
|
-
onError: (
|
|
1012
|
-
var
|
|
1013
|
-
|
|
1010
|
+
onLoad: () => N(!1),
|
|
1011
|
+
onError: (F) => {
|
|
1012
|
+
var O;
|
|
1013
|
+
N(!0), (O = b == null ? void 0 : b.onError) == null || O.call(b, F);
|
|
1014
1014
|
}
|
|
1015
1015
|
}
|
|
1016
1016
|
)
|
|
1017
|
-
},
|
|
1018
|
-
|
|
1017
|
+
}, x = (F) => {
|
|
1018
|
+
M && (C == null || C(F));
|
|
1019
1019
|
};
|
|
1020
|
-
return /* @__PURE__ */
|
|
1020
|
+
return /* @__PURE__ */ o.jsx(
|
|
1021
1021
|
"div",
|
|
1022
1022
|
{
|
|
1023
|
-
ref:
|
|
1024
|
-
onClick:
|
|
1025
|
-
className:
|
|
1026
|
-
style:
|
|
1023
|
+
ref: r,
|
|
1024
|
+
onClick: x,
|
|
1025
|
+
className: D,
|
|
1026
|
+
style: a,
|
|
1027
1027
|
"data-testid": w,
|
|
1028
|
-
"aria-disabled": s ||
|
|
1029
|
-
children:
|
|
1028
|
+
"aria-disabled": s || i,
|
|
1029
|
+
children: B[k](null)
|
|
1030
1030
|
}
|
|
1031
1031
|
);
|
|
1032
|
-
}),
|
|
1033
|
-
avatarGroup:
|
|
1032
|
+
}), gr = "_avatarGroup_157g4_1", hr = {
|
|
1033
|
+
avatarGroup: gr
|
|
1034
1034
|
};
|
|
1035
|
-
let
|
|
1036
|
-
function
|
|
1037
|
-
const _ = Math.min(
|
|
1038
|
-
`M${
|
|
1039
|
-
`L${
|
|
1035
|
+
let br = (t = 21) => crypto.getRandomValues(new Uint8Array(t)).reduce((r, a) => (a &= 63, a < 36 ? r += a.toString(36) : a < 62 ? r += (a - 26).toString(36).toUpperCase() : a > 62 ? r += "-" : r += "_", r), "");
|
|
1036
|
+
function mr(t, r, a, n, i, s, c) {
|
|
1037
|
+
const _ = Math.min(i, s) / 2, d = Math.min(c, _), f = ["M0,0", `H${t}`, `V${r}`, "H0", "V0", "Z"].join(" "), p = [
|
|
1038
|
+
`M${a + d},${n}`,
|
|
1039
|
+
`L${a + i - d},${n}`,
|
|
1040
1040
|
// Верхний правый угол
|
|
1041
|
-
`A${d},${d} 0 0 1 ${
|
|
1042
|
-
`L${
|
|
1041
|
+
`A${d},${d} 0 0 1 ${a + i},${n + d}`,
|
|
1042
|
+
`L${a + i},${n + s - d}`,
|
|
1043
1043
|
// Нижний правый угол
|
|
1044
|
-
`A${d},${d} 0 0 1 ${
|
|
1045
|
-
`L${
|
|
1044
|
+
`A${d},${d} 0 0 1 ${a + i - d},${n + s}`,
|
|
1045
|
+
`L${a + d},${n + s}`,
|
|
1046
1046
|
// Нижний левый угол
|
|
1047
|
-
`A${d},${d} 0 0 1 ${
|
|
1048
|
-
`L${
|
|
1047
|
+
`A${d},${d} 0 0 1 ${a},${n + s - d}`,
|
|
1048
|
+
`L${a},${n + d}`,
|
|
1049
1049
|
// Верхний левый угол
|
|
1050
|
-
`A${d},${d} 0 0 1 ${
|
|
1050
|
+
`A${d},${d} 0 0 1 ${a + d},${n}`,
|
|
1051
1051
|
"Z"
|
|
1052
1052
|
].join(" ");
|
|
1053
1053
|
return `${f} ${p}`;
|
|
1054
1054
|
}
|
|
1055
|
-
const
|
|
1055
|
+
const yr = 2, vr = (t) => {
|
|
1056
1056
|
const {
|
|
1057
|
-
avatars:
|
|
1058
|
-
overflowCount:
|
|
1057
|
+
avatars: r = [],
|
|
1058
|
+
overflowCount: a = 0,
|
|
1059
1059
|
size: n = 40,
|
|
1060
|
-
overlap:
|
|
1060
|
+
overlap: i = 0.3,
|
|
1061
1061
|
shape: s = "circle",
|
|
1062
1062
|
overflowOnClick: c
|
|
1063
|
-
} = t, _ = n *
|
|
1063
|
+
} = t, _ = n * i, d = -_ + yr, f = cr(n, s), g = ze(br()).current.toString(), h = he(hr.avatarGroup), b = mr(
|
|
1064
1064
|
n,
|
|
1065
1065
|
n,
|
|
1066
1066
|
n - _,
|
|
@@ -1071,43 +1071,43 @@ const br = 2, mr = (t) => {
|
|
|
1071
1071
|
n,
|
|
1072
1072
|
f
|
|
1073
1073
|
);
|
|
1074
|
-
return
|
|
1075
|
-
|
|
1076
|
-
const C = w + 1 >=
|
|
1077
|
-
return /* @__PURE__ */
|
|
1074
|
+
return r.length === 0 ? null : /* @__PURE__ */ o.jsxs("div", { className: h, children: [
|
|
1075
|
+
r.map((m, w, E) => {
|
|
1076
|
+
const C = w + 1 >= E.length;
|
|
1077
|
+
return /* @__PURE__ */ o.jsx(
|
|
1078
1078
|
"div",
|
|
1079
1079
|
{
|
|
1080
1080
|
style: {
|
|
1081
1081
|
// Для последнего видимого аватара без overflowCount не применяем обрезку
|
|
1082
|
-
clipPath: C && !
|
|
1082
|
+
clipPath: C && !a ? void 0 : `url(#${g})`,
|
|
1083
1083
|
marginRight: d
|
|
1084
1084
|
},
|
|
1085
|
-
children: /* @__PURE__ */
|
|
1085
|
+
children: /* @__PURE__ */ o.jsx(et, { size: n, shape: s, ...m })
|
|
1086
1086
|
},
|
|
1087
|
-
|
|
1087
|
+
rt(m) + w
|
|
1088
1088
|
);
|
|
1089
1089
|
}),
|
|
1090
|
-
|
|
1091
|
-
|
|
1090
|
+
a > 0 && /* @__PURE__ */ o.jsx("div", { style: { marginRight: d }, children: /* @__PURE__ */ o.jsx(
|
|
1091
|
+
et,
|
|
1092
1092
|
{
|
|
1093
1093
|
size: n,
|
|
1094
1094
|
shape: s,
|
|
1095
1095
|
onClick: c,
|
|
1096
|
-
icon: () =>
|
|
1096
|
+
icon: () => sr(a),
|
|
1097
1097
|
colorScheme: "gray"
|
|
1098
1098
|
}
|
|
1099
1099
|
) }),
|
|
1100
|
-
/* @__PURE__ */
|
|
1100
|
+
/* @__PURE__ */ o.jsx("svg", { width: "0", height: "0", children: /* @__PURE__ */ o.jsx("clipPath", { id: `${g}`, children: /* @__PURE__ */ o.jsx("path", { clipPathUnits: "objectBoundingBox", d: b, clipRule: "evenodd" }) }) })
|
|
1101
1101
|
] });
|
|
1102
|
-
},
|
|
1103
|
-
Group:
|
|
1104
|
-
}),
|
|
1105
|
-
wrapper:
|
|
1106
|
-
badge__container:
|
|
1107
|
-
badge__content:
|
|
1108
|
-
interactive:
|
|
1109
|
-
disabled:
|
|
1110
|
-
icon:
|
|
1102
|
+
}, Bs = Object.assign(et, {
|
|
1103
|
+
Group: vr
|
|
1104
|
+
}), xr = "_wrapper_1ncab_5", Cr = "_badge__container_1ncab_6", Sr = "_badge__content_1ncab_7", wr = "_interactive_1ncab_20", Er = "_disabled_1ncab_21", Lr = "_icon_1ncab_22", pe = {
|
|
1105
|
+
wrapper: xr,
|
|
1106
|
+
badge__container: Cr,
|
|
1107
|
+
badge__content: Sr,
|
|
1108
|
+
interactive: wr,
|
|
1109
|
+
disabled: Er,
|
|
1110
|
+
icon: Lr,
|
|
1111
1111
|
"variant-filled": "_variant-filled_1ncab_101",
|
|
1112
1112
|
"color-brand": "_color-brand_1ncab_106",
|
|
1113
1113
|
"color-red": "_color-red_1ncab_110",
|
|
@@ -1139,28 +1139,28 @@ const br = 2, mr = (t) => {
|
|
|
1139
1139
|
"position-bottom-center-inside": "_position-bottom-center-inside_1ncab_446",
|
|
1140
1140
|
"position-middle-left-inside": "_position-middle-left-inside_1ncab_452",
|
|
1141
1141
|
"position-middle-right-inside": "_position-middle-right-inside_1ncab_458"
|
|
1142
|
-
},
|
|
1142
|
+
}, Mr = (t) => t === "rgba(0, 0, 0, 0)" || t === "transparent" || t.startsWith("rgba") && t.endsWith(", 0)"), $r = (t) => {
|
|
1143
1143
|
if (!t) return null;
|
|
1144
|
-
let
|
|
1145
|
-
for (;
|
|
1146
|
-
const n = window.getComputedStyle(
|
|
1147
|
-
if (!
|
|
1148
|
-
|
|
1144
|
+
let r = t;
|
|
1145
|
+
for (; r; ) {
|
|
1146
|
+
const n = window.getComputedStyle(r).backgroundColor;
|
|
1147
|
+
if (!Mr(n)) return n;
|
|
1148
|
+
r = r.parentElement;
|
|
1149
1149
|
}
|
|
1150
1150
|
return null;
|
|
1151
|
-
},
|
|
1152
|
-
const t = ze(null), [
|
|
1153
|
-
return
|
|
1151
|
+
}, Ir = () => {
|
|
1152
|
+
const t = ze(null), [r, a] = Me(null);
|
|
1153
|
+
return ve(() => {
|
|
1154
1154
|
if (t.current) {
|
|
1155
|
-
const n =
|
|
1156
|
-
|
|
1155
|
+
const n = $r(t.current);
|
|
1156
|
+
a(n);
|
|
1157
1157
|
}
|
|
1158
|
-
}, []), { ref: t, bgColor:
|
|
1159
|
-
},
|
|
1158
|
+
}, []), { ref: t, bgColor: r };
|
|
1159
|
+
}, Fs = X((t, r) => {
|
|
1160
1160
|
const {
|
|
1161
|
-
icon:
|
|
1161
|
+
icon: a,
|
|
1162
1162
|
children: n,
|
|
1163
|
-
variant:
|
|
1163
|
+
variant: i = "filled",
|
|
1164
1164
|
label: s,
|
|
1165
1165
|
colorScheme: c = "red",
|
|
1166
1166
|
size: _ = 20,
|
|
@@ -1170,86 +1170,86 @@ const br = 2, mr = (t) => {
|
|
|
1170
1170
|
isDisabled: g,
|
|
1171
1171
|
className: h,
|
|
1172
1172
|
"data-testid": b = "badge",
|
|
1173
|
-
...
|
|
1174
|
-
} = t, { onClick: w, onPointerDown:
|
|
1173
|
+
...m
|
|
1174
|
+
} = t, { onClick: w, onPointerDown: E } = m, { ref: C, bgColor: v } = Ir(), S = p || v, T = !g && (!!w || !!E), N = he(pe.badge__container, pe[`position-${d}`]), k = he(
|
|
1175
1175
|
h,
|
|
1176
1176
|
pe.badge__content,
|
|
1177
1177
|
pe[`color-${c}`],
|
|
1178
|
-
pe[`variant-${
|
|
1178
|
+
pe[`variant-${i}`],
|
|
1179
1179
|
{
|
|
1180
|
-
[pe.icon]: !!
|
|
1181
|
-
[pe.interactive]:
|
|
1180
|
+
[pe.icon]: !!a,
|
|
1181
|
+
[pe.interactive]: T,
|
|
1182
1182
|
[pe.disabled]: g
|
|
1183
1183
|
}
|
|
1184
|
-
),
|
|
1184
|
+
), P = {
|
|
1185
1185
|
"--badge-height": `${_}px`,
|
|
1186
1186
|
"--badge-offset-x": `${f.x}px`,
|
|
1187
1187
|
"--badge-offset-y": `${f.y}px`,
|
|
1188
|
-
|
|
1189
|
-
...
|
|
1190
|
-
},
|
|
1191
|
-
|
|
1188
|
+
...S && { "--badge-cutout-bg": S },
|
|
1189
|
+
...i === "transparent" && { "--badge-cutout-bg": "transparent" }
|
|
1190
|
+
}, D = (a == null ? void 0 : a({})) || s, B = (x) => {
|
|
1191
|
+
T && (w == null || w(x));
|
|
1192
1192
|
};
|
|
1193
|
-
return /* @__PURE__ */
|
|
1193
|
+
return /* @__PURE__ */ o.jsxs("div", { className: pe.wrapper, ref: C, "data-testid": b + "-wrapper", children: [
|
|
1194
1194
|
n,
|
|
1195
|
-
/* @__PURE__ */
|
|
1195
|
+
/* @__PURE__ */ o.jsx(
|
|
1196
1196
|
"span",
|
|
1197
1197
|
{
|
|
1198
|
-
className:
|
|
1199
|
-
style:
|
|
1198
|
+
className: N,
|
|
1199
|
+
style: P,
|
|
1200
1200
|
"data-testid": b + "-container",
|
|
1201
|
-
children: /* @__PURE__ */
|
|
1201
|
+
children: /* @__PURE__ */ o.jsx(
|
|
1202
1202
|
"span",
|
|
1203
1203
|
{
|
|
1204
|
-
...
|
|
1205
|
-
onClick:
|
|
1206
|
-
className:
|
|
1204
|
+
...m,
|
|
1205
|
+
onClick: B,
|
|
1206
|
+
className: k,
|
|
1207
1207
|
"data-testid": b + "-content",
|
|
1208
|
-
ref:
|
|
1208
|
+
ref: r,
|
|
1209
1209
|
"aria-disabled": g,
|
|
1210
|
-
children:
|
|
1210
|
+
children: D
|
|
1211
1211
|
}
|
|
1212
1212
|
)
|
|
1213
1213
|
}
|
|
1214
1214
|
)
|
|
1215
1215
|
] });
|
|
1216
|
-
}),
|
|
1217
|
-
container:
|
|
1218
|
-
image:
|
|
1219
|
-
loading:
|
|
1220
|
-
},
|
|
1221
|
-
loader:
|
|
1222
|
-
spin:
|
|
1223
|
-
accent:
|
|
1224
|
-
neutral:
|
|
1225
|
-
positive:
|
|
1226
|
-
negative:
|
|
1227
|
-
gray:
|
|
1228
|
-
special:
|
|
1229
|
-
contrast:
|
|
1230
|
-
container:
|
|
1231
|
-
overlay:
|
|
1216
|
+
}), jr = "_container_op5yl_7", Rr = "_image_op5yl_22", kr = "_loading_op5yl_34", Ke = {
|
|
1217
|
+
container: jr,
|
|
1218
|
+
image: Rr,
|
|
1219
|
+
loading: kr
|
|
1220
|
+
}, Tr = "_loader_isv17_1", Ar = "_spin_isv17_1", Nr = "_accent_isv17_19", Dr = "_neutral_isv17_23", Or = "_positive_isv17_27", Ur = "_negative_isv17_31", zr = "_gray_isv17_35", Pr = "_special_isv17_39", Br = "_contrast_isv17_43", Fr = "_container_isv17_47", Vr = "_overlay_isv17_57", Ue = {
|
|
1221
|
+
loader: Tr,
|
|
1222
|
+
spin: Ar,
|
|
1223
|
+
accent: Nr,
|
|
1224
|
+
neutral: Dr,
|
|
1225
|
+
positive: Or,
|
|
1226
|
+
negative: Ur,
|
|
1227
|
+
gray: zr,
|
|
1228
|
+
special: Pr,
|
|
1229
|
+
contrast: Br,
|
|
1230
|
+
container: Fr,
|
|
1231
|
+
overlay: Vr,
|
|
1232
1232
|
"size-16": "_size-16_isv17_72",
|
|
1233
1233
|
"size-24": "_size-24_isv17_76",
|
|
1234
1234
|
"size-48": "_size-48_isv17_80",
|
|
1235
1235
|
"size-64": "_size-64_isv17_84",
|
|
1236
1236
|
"size-96": "_size-96_isv17_88"
|
|
1237
|
-
},
|
|
1237
|
+
}, kt = X(
|
|
1238
1238
|
({
|
|
1239
1239
|
size: t = 24,
|
|
1240
|
-
variant:
|
|
1241
|
-
className:
|
|
1240
|
+
variant: r = "accent",
|
|
1241
|
+
className: a,
|
|
1242
1242
|
"data-testid": n = "loader",
|
|
1243
|
-
style:
|
|
1243
|
+
style: i,
|
|
1244
1244
|
...s
|
|
1245
1245
|
}, c) => {
|
|
1246
1246
|
const _ = he(
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1247
|
+
Ue.loader,
|
|
1248
|
+
Ue[r],
|
|
1249
|
+
Ue[`size-${t}`],
|
|
1250
|
+
a
|
|
1251
1251
|
);
|
|
1252
|
-
return /* @__PURE__ */
|
|
1252
|
+
return /* @__PURE__ */ o.jsx(
|
|
1253
1253
|
"svg",
|
|
1254
1254
|
{
|
|
1255
1255
|
ref: c,
|
|
@@ -1258,9 +1258,9 @@ const br = 2, mr = (t) => {
|
|
|
1258
1258
|
viewBox: "0 0 16 16",
|
|
1259
1259
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1260
1260
|
"data-testid": n,
|
|
1261
|
-
style:
|
|
1261
|
+
style: i,
|
|
1262
1262
|
...s,
|
|
1263
|
-
children: /* @__PURE__ */
|
|
1263
|
+
children: /* @__PURE__ */ o.jsx(
|
|
1264
1264
|
"path",
|
|
1265
1265
|
{
|
|
1266
1266
|
d: "M14 8C14 11.3137 11.3137 14 8 14C4.68629 14 2 11.3137 2 8C2 4.68629 4.68629 2 8 2",
|
|
@@ -1272,38 +1272,38 @@ const br = 2, mr = (t) => {
|
|
|
1272
1272
|
}
|
|
1273
1273
|
);
|
|
1274
1274
|
}
|
|
1275
|
-
),
|
|
1275
|
+
), Wr = X((t, r) => {
|
|
1276
1276
|
const {
|
|
1277
|
-
loading:
|
|
1277
|
+
loading: a = !1,
|
|
1278
1278
|
size: n = 24,
|
|
1279
|
-
variant:
|
|
1279
|
+
variant: i = "accent",
|
|
1280
1280
|
children: s,
|
|
1281
1281
|
className: c,
|
|
1282
1282
|
style: _,
|
|
1283
1283
|
"data-testid": d,
|
|
1284
1284
|
...f
|
|
1285
|
-
} = t, p = he(
|
|
1286
|
-
return /* @__PURE__ */
|
|
1285
|
+
} = t, p = he(Ue.container, c);
|
|
1286
|
+
return /* @__PURE__ */ o.jsxs("div", { ref: r, className: p, style: _, "data-testid": d, ...f, children: [
|
|
1287
1287
|
s,
|
|
1288
|
-
|
|
1288
|
+
a && /* @__PURE__ */ o.jsx("div", { className: Ue.overlay, children: /* @__PURE__ */ o.jsx(kt, { size: n, variant: i, "data-testid": `${d}-spinner` }) })
|
|
1289
1289
|
] });
|
|
1290
|
-
}),
|
|
1291
|
-
|
|
1290
|
+
}), Hr = X((t, r) => t.children ? /* @__PURE__ */ o.jsx(
|
|
1291
|
+
Wr,
|
|
1292
1292
|
{
|
|
1293
|
-
ref:
|
|
1293
|
+
ref: r,
|
|
1294
1294
|
...t
|
|
1295
1295
|
}
|
|
1296
|
-
) : /* @__PURE__ */
|
|
1296
|
+
) : /* @__PURE__ */ o.jsx(kt, { ref: r, ...t })), Gr = ({ width: t = 48, height: r = 48, className: a, "data-testid": n }) => /* @__PURE__ */ o.jsx(
|
|
1297
1297
|
"svg",
|
|
1298
1298
|
{
|
|
1299
1299
|
width: t,
|
|
1300
|
-
height:
|
|
1300
|
+
height: r,
|
|
1301
1301
|
viewBox: "0 0 48 48",
|
|
1302
1302
|
fill: "none",
|
|
1303
1303
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1304
|
-
className:
|
|
1304
|
+
className: a,
|
|
1305
1305
|
"data-testid": n,
|
|
1306
|
-
children: /* @__PURE__ */
|
|
1306
|
+
children: /* @__PURE__ */ o.jsx(
|
|
1307
1307
|
"path",
|
|
1308
1308
|
{
|
|
1309
1309
|
d: "M32.4 42H13.8627C12.6511 42 12.0453 42 11.7648 41.7604C11.5214 41.5525 11.3922 41.2407 11.4173 40.9215C11.4462 40.5538 11.8746 40.1254 12.7314 39.2686L29.7373 22.2627C30.5293 21.4707 30.9253 21.0747 31.382 20.9263C31.7837 20.7958 32.2163 20.7958 32.618 20.9263C33.0747 21.0747 33.4707 21.4707 34.2627 22.2627L42 30V32.4M32.4 42C35.7603 42 37.4405 42 38.7239 41.346C39.8529 40.7708 40.7708 39.8529 41.346 38.7239C42 37.4405 42 35.7603 42 32.4M32.4 42H15.6C12.2397 42 10.5595 42 9.27606 41.346C8.14708 40.7708 7.2292 39.8529 6.65396 38.7239C6 37.4405 6 35.7603 6 32.4V15.6C6 12.2397 6 10.5595 6.65396 9.27606C7.2292 8.14708 8.14708 7.2292 9.27606 6.65396C10.5595 6 12.2397 6 15.6 6H32.4C35.7603 6 37.4405 6 38.7239 6.65396C39.8529 7.2292 40.7708 8.14708 41.346 9.27606C42 10.5595 42 12.2397 42 15.6V32.4M21 17C21 19.2091 19.2091 21 17 21C14.7909 21 13 19.2091 13 17C13 14.7909 14.7909 13 17 13C19.2091 13 21 14.7909 21 17Z",
|
|
@@ -1314,124 +1314,120 @@ const br = 2, mr = (t) => {
|
|
|
1314
1314
|
}
|
|
1315
1315
|
)
|
|
1316
1316
|
}
|
|
1317
|
-
),
|
|
1317
|
+
), Vs = X((t, r) => {
|
|
1318
1318
|
const {
|
|
1319
|
-
alt:
|
|
1319
|
+
alt: a = "",
|
|
1320
1320
|
loading: n = "lazy",
|
|
1321
|
-
src:
|
|
1321
|
+
src: i,
|
|
1322
1322
|
isLoading: s = !1,
|
|
1323
1323
|
className: c,
|
|
1324
1324
|
"data-testid": _ = "image",
|
|
1325
1325
|
onError: d,
|
|
1326
1326
|
onLoad: f,
|
|
1327
1327
|
...p
|
|
1328
|
-
} = t, [g, h] =
|
|
1329
|
-
|
|
1328
|
+
} = t, [g, h] = Me("loading"), b = g === "error", m = (s || g === "loading") && !b, w = g === "loaded" && !s, E = he(
|
|
1329
|
+
Ke.image,
|
|
1330
1330
|
{
|
|
1331
|
-
[
|
|
1331
|
+
[Ke.loading]: m
|
|
1332
1332
|
},
|
|
1333
1333
|
c
|
|
1334
|
-
), C =
|
|
1335
|
-
(
|
|
1336
|
-
h("loaded"), f == null || f(
|
|
1334
|
+
), C = Ee(
|
|
1335
|
+
(M) => {
|
|
1336
|
+
h("loaded"), f == null || f(M);
|
|
1337
1337
|
},
|
|
1338
1338
|
[f]
|
|
1339
|
-
),
|
|
1340
|
-
(
|
|
1341
|
-
h("error"), d == null || d(
|
|
1339
|
+
), v = Ee(
|
|
1340
|
+
(M) => {
|
|
1341
|
+
h("error"), d == null || d(M);
|
|
1342
1342
|
},
|
|
1343
1343
|
[d]
|
|
1344
|
-
),
|
|
1345
|
-
loader: /* @__PURE__ */
|
|
1346
|
-
/* @__PURE__ */
|
|
1347
|
-
/* @__PURE__ */
|
|
1344
|
+
), S = {
|
|
1345
|
+
loader: /* @__PURE__ */ o.jsxs(tt, { children: [
|
|
1346
|
+
/* @__PURE__ */ o.jsx(Hr, { size: 48, variant: "special", "data-testid": `${_}-loader` }),
|
|
1347
|
+
/* @__PURE__ */ o.jsx(
|
|
1348
1348
|
"img",
|
|
1349
1349
|
{
|
|
1350
|
-
alt:
|
|
1351
|
-
src:
|
|
1350
|
+
alt: a,
|
|
1351
|
+
src: i,
|
|
1352
1352
|
onLoad: C,
|
|
1353
|
-
onError:
|
|
1353
|
+
onError: v,
|
|
1354
1354
|
style: { display: "none" }
|
|
1355
1355
|
}
|
|
1356
1356
|
)
|
|
1357
1357
|
] }),
|
|
1358
|
-
error: /* @__PURE__ */
|
|
1359
|
-
image: /* @__PURE__ */
|
|
1358
|
+
error: /* @__PURE__ */ o.jsx(Gr, { "data-testid": `${_}-fallback` }),
|
|
1359
|
+
image: /* @__PURE__ */ o.jsx(
|
|
1360
1360
|
"img",
|
|
1361
1361
|
{
|
|
1362
|
-
ref:
|
|
1363
|
-
alt:
|
|
1362
|
+
ref: r,
|
|
1363
|
+
alt: a,
|
|
1364
1364
|
"data-testid": _,
|
|
1365
1365
|
loading: n,
|
|
1366
|
-
src:
|
|
1367
|
-
className:
|
|
1366
|
+
src: i,
|
|
1367
|
+
className: E
|
|
1368
1368
|
}
|
|
1369
1369
|
)
|
|
1370
1370
|
};
|
|
1371
|
-
return
|
|
1372
|
-
if (!
|
|
1371
|
+
return ve(() => {
|
|
1372
|
+
if (!i) {
|
|
1373
1373
|
h("error");
|
|
1374
1374
|
return;
|
|
1375
1375
|
}
|
|
1376
1376
|
h("loading");
|
|
1377
|
-
}, [
|
|
1378
|
-
|
|
1379
|
-
b &&
|
|
1380
|
-
w &&
|
|
1377
|
+
}, [i]), /* @__PURE__ */ o.jsxs("div", { className: Ke.container, "data-testid": `${_}-container`, ...p, children: [
|
|
1378
|
+
m && S.loader,
|
|
1379
|
+
b && S.error,
|
|
1380
|
+
w && S.image
|
|
1381
1381
|
] });
|
|
1382
|
-
}),
|
|
1383
|
-
locale:
|
|
1384
|
-
}),
|
|
1385
|
-
const t =
|
|
1382
|
+
}), Zr = {}, Tt = sa({
|
|
1383
|
+
locale: Zr
|
|
1384
|
+
}), qr = () => {
|
|
1385
|
+
const t = oa(Tt);
|
|
1386
1386
|
if (!t)
|
|
1387
1387
|
throw new Error("useConfig must be used within a ConfigProvider");
|
|
1388
1388
|
return t;
|
|
1389
|
-
},
|
|
1390
|
-
const { locale: t } =
|
|
1389
|
+
}, Ws = () => {
|
|
1390
|
+
const { locale: t } = qr();
|
|
1391
1391
|
return t;
|
|
1392
|
-
},
|
|
1392
|
+
}, Yr = {}, Jr = {}, Kr = {}, Hs = ({
|
|
1393
1393
|
locale: t = {},
|
|
1394
|
-
theme:
|
|
1395
|
-
children:
|
|
1394
|
+
theme: r,
|
|
1395
|
+
children: a,
|
|
1396
1396
|
className: n
|
|
1397
|
-
}) => (
|
|
1398
|
-
if (
|
|
1399
|
-
const
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
})
|
|
1403
|
-
Object.keys(a).forEach((s) => {
|
|
1404
|
-
o.style.removeProperty(s);
|
|
1405
|
-
});
|
|
1406
|
-
};
|
|
1397
|
+
}) => (ia(() => {
|
|
1398
|
+
if (r) {
|
|
1399
|
+
const i = document.documentElement;
|
|
1400
|
+
Object.entries(r).forEach(([s, c]) => {
|
|
1401
|
+
i.style.setProperty(s, c);
|
|
1402
|
+
});
|
|
1407
1403
|
}
|
|
1408
|
-
}, [
|
|
1409
|
-
/* @__PURE__ */
|
|
1404
|
+
}, [r]), /* @__PURE__ */ o.jsxs(tt, { children: [
|
|
1405
|
+
/* @__PURE__ */ o.jsx(
|
|
1410
1406
|
"div",
|
|
1411
1407
|
{
|
|
1412
1408
|
"data-testid": "ConfigProvider-component",
|
|
1413
|
-
className:
|
|
1409
|
+
className: K(Yr, Jr, Kr, n)
|
|
1414
1410
|
}
|
|
1415
1411
|
),
|
|
1416
|
-
/* @__PURE__ */
|
|
1417
|
-
] })),
|
|
1418
|
-
tag:
|
|
1419
|
-
label:
|
|
1420
|
-
iconWrapper:
|
|
1421
|
-
medium:
|
|
1422
|
-
large:
|
|
1423
|
-
disabled:
|
|
1424
|
-
neutral:
|
|
1425
|
-
positive:
|
|
1426
|
-
negative:
|
|
1427
|
-
warning:
|
|
1428
|
-
vivid:
|
|
1429
|
-
special:
|
|
1430
|
-
accent:
|
|
1431
|
-
blue:
|
|
1432
|
-
lovely:
|
|
1433
|
-
dreamy:
|
|
1434
|
-
},
|
|
1412
|
+
/* @__PURE__ */ o.jsx(Tt.Provider, { value: { locale: t }, children: a })
|
|
1413
|
+
] })), Gs = {}, Xr = "_tag_1llsi_1", Qr = "_label_1llsi_16", en = "_iconWrapper_1llsi_20", tn = "_medium_1llsi_27", an = "_large_1llsi_33", rn = "_disabled_1llsi_43", nn = "_neutral_1llsi_47", sn = "_positive_1llsi_53", on = "_negative_1llsi_59", ln = "_warning_1llsi_65", cn = "_vivid_1llsi_71", dn = "_special_1llsi_77", un = "_accent_1llsi_84", _n = "_blue_1llsi_90", pn = "_lovely_1llsi_96", fn = "_dreamy_1llsi_102", we = {
|
|
1414
|
+
tag: Xr,
|
|
1415
|
+
label: Qr,
|
|
1416
|
+
iconWrapper: en,
|
|
1417
|
+
medium: tn,
|
|
1418
|
+
large: an,
|
|
1419
|
+
disabled: rn,
|
|
1420
|
+
neutral: nn,
|
|
1421
|
+
positive: sn,
|
|
1422
|
+
negative: on,
|
|
1423
|
+
warning: ln,
|
|
1424
|
+
vivid: cn,
|
|
1425
|
+
special: dn,
|
|
1426
|
+
accent: un,
|
|
1427
|
+
blue: _n,
|
|
1428
|
+
lovely: pn,
|
|
1429
|
+
dreamy: fn
|
|
1430
|
+
}, Le = {
|
|
1435
1431
|
"typography-title-1-semibold": "_typography-title-1-semibold_1lyxn_1",
|
|
1436
1432
|
"typography-title-2-semibold": "_typography-title-2-semibold_1lyxn_10",
|
|
1437
1433
|
"typography-title-3-semibold": "_typography-title-3-semibold_1lyxn_19",
|
|
@@ -1455,11 +1451,11 @@ const br = 2, mr = (t) => {
|
|
|
1455
1451
|
"typography-paragraph-2-regular": "_typography-paragraph-2-regular_1lyxn_176",
|
|
1456
1452
|
"typography-paragraph-3-regular": "_typography-paragraph-3-regular_1lyxn_185",
|
|
1457
1453
|
"typography-paragraph-4-regular": "_typography-paragraph-4-regular_1lyxn_194"
|
|
1458
|
-
},
|
|
1454
|
+
}, Zs = X((t, r) => {
|
|
1459
1455
|
const {
|
|
1460
|
-
className:
|
|
1456
|
+
className: a,
|
|
1461
1457
|
children: n,
|
|
1462
|
-
componentStyle:
|
|
1458
|
+
componentStyle: i = "neutral",
|
|
1463
1459
|
size: s = "medium",
|
|
1464
1460
|
disabled: c = !1,
|
|
1465
1461
|
showLabel: _ = !!n,
|
|
@@ -1468,57 +1464,57 @@ const br = 2, mr = (t) => {
|
|
|
1468
1464
|
slotStartWrapperProps: p = {},
|
|
1469
1465
|
slotEndWrapperProps: g = {},
|
|
1470
1466
|
"data-testid": h
|
|
1471
|
-
} = t, { className: b, ...
|
|
1472
|
-
return /* @__PURE__ */
|
|
1467
|
+
} = t, { className: b, ...m } = p, { className: w, ...E } = g;
|
|
1468
|
+
return /* @__PURE__ */ o.jsxs(
|
|
1473
1469
|
"div",
|
|
1474
1470
|
{
|
|
1475
|
-
className:
|
|
1471
|
+
className: K(
|
|
1476
1472
|
we.tag,
|
|
1477
1473
|
we[s],
|
|
1478
|
-
we[
|
|
1474
|
+
we[i],
|
|
1479
1475
|
{
|
|
1480
1476
|
[we.disabled]: c,
|
|
1481
|
-
[
|
|
1482
|
-
[
|
|
1477
|
+
[Le["typography-label-3-regular"]]: s === "medium",
|
|
1478
|
+
[Le["typography-subtitle-1-semibold"]]: s === "large"
|
|
1483
1479
|
},
|
|
1484
|
-
|
|
1480
|
+
a
|
|
1485
1481
|
),
|
|
1486
1482
|
"data-testid": h || "tag-component",
|
|
1487
|
-
ref:
|
|
1483
|
+
ref: r,
|
|
1488
1484
|
children: [
|
|
1489
|
-
d && /* @__PURE__ */
|
|
1490
|
-
_ && /* @__PURE__ */
|
|
1491
|
-
f && /* @__PURE__ */
|
|
1485
|
+
d && /* @__PURE__ */ o.jsx("span", { className: K([we.iconWrapper, b]), ...m, children: d }),
|
|
1486
|
+
_ && /* @__PURE__ */ o.jsx("span", { className: K([we.label]), children: n }),
|
|
1487
|
+
f && /* @__PURE__ */ o.jsx("span", { className: K([we.iconWrapper, w]), ...E, children: f })
|
|
1492
1488
|
]
|
|
1493
1489
|
}
|
|
1494
1490
|
);
|
|
1495
|
-
}),
|
|
1496
|
-
checkbox:
|
|
1497
|
-
input:
|
|
1498
|
-
icon:
|
|
1499
|
-
container:
|
|
1500
|
-
error:
|
|
1501
|
-
checkboxWrapper:
|
|
1502
|
-
medium:
|
|
1503
|
-
large:
|
|
1504
|
-
label:
|
|
1505
|
-
},
|
|
1491
|
+
}), gn = "_checkbox_qo5f5_43", hn = "_input_qo5f5_59", bn = "_icon_qo5f5_67", mn = "_container_qo5f5_84", yn = "_error_qo5f5_135", vn = "_checkboxWrapper_qo5f5_147", xn = "_medium_qo5f5_201", Cn = "_large_qo5f5_206", Sn = "_label_qo5f5_247", ge = {
|
|
1492
|
+
checkbox: gn,
|
|
1493
|
+
input: hn,
|
|
1494
|
+
icon: bn,
|
|
1495
|
+
container: mn,
|
|
1496
|
+
error: yn,
|
|
1497
|
+
checkboxWrapper: vn,
|
|
1498
|
+
medium: xn,
|
|
1499
|
+
large: Cn,
|
|
1500
|
+
label: Sn
|
|
1501
|
+
}, wn = ({
|
|
1506
1502
|
width: t = 12,
|
|
1507
|
-
height:
|
|
1508
|
-
className:
|
|
1503
|
+
height: r = 9,
|
|
1504
|
+
className: a = "",
|
|
1509
1505
|
color: n = "currentColor",
|
|
1510
|
-
...
|
|
1511
|
-
}) => /* @__PURE__ */
|
|
1506
|
+
...i
|
|
1507
|
+
}) => /* @__PURE__ */ o.jsx(
|
|
1512
1508
|
"svg",
|
|
1513
1509
|
{
|
|
1514
|
-
className:
|
|
1510
|
+
className: a,
|
|
1515
1511
|
width: t,
|
|
1516
|
-
height:
|
|
1512
|
+
height: r,
|
|
1517
1513
|
viewBox: "0 0 14 10",
|
|
1518
1514
|
fill: "none",
|
|
1519
1515
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1520
|
-
...
|
|
1521
|
-
children: /* @__PURE__ */
|
|
1516
|
+
...i,
|
|
1517
|
+
children: /* @__PURE__ */ o.jsx(
|
|
1522
1518
|
"path",
|
|
1523
1519
|
{
|
|
1524
1520
|
fillRule: "evenodd",
|
|
@@ -1528,23 +1524,23 @@ const br = 2, mr = (t) => {
|
|
|
1528
1524
|
}
|
|
1529
1525
|
)
|
|
1530
1526
|
}
|
|
1531
|
-
),
|
|
1527
|
+
), En = ({
|
|
1532
1528
|
width: t = 12,
|
|
1533
|
-
height:
|
|
1534
|
-
className:
|
|
1529
|
+
height: r = 2,
|
|
1530
|
+
className: a = "",
|
|
1535
1531
|
color: n = "currentColor",
|
|
1536
|
-
...
|
|
1537
|
-
}) => /* @__PURE__ */
|
|
1532
|
+
...i
|
|
1533
|
+
}) => /* @__PURE__ */ o.jsx(
|
|
1538
1534
|
"svg",
|
|
1539
1535
|
{
|
|
1540
|
-
className:
|
|
1536
|
+
className: a,
|
|
1541
1537
|
width: t,
|
|
1542
|
-
height:
|
|
1538
|
+
height: r,
|
|
1543
1539
|
viewBox: "0 0 12 2",
|
|
1544
1540
|
fill: "none",
|
|
1545
1541
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1546
|
-
...
|
|
1547
|
-
children: /* @__PURE__ */
|
|
1542
|
+
...i,
|
|
1543
|
+
children: /* @__PURE__ */ o.jsx(
|
|
1548
1544
|
"path",
|
|
1549
1545
|
{
|
|
1550
1546
|
fillRule: "evenodd",
|
|
@@ -1554,33 +1550,33 @@ const br = 2, mr = (t) => {
|
|
|
1554
1550
|
}
|
|
1555
1551
|
)
|
|
1556
1552
|
}
|
|
1557
|
-
),
|
|
1553
|
+
), Ln = {
|
|
1558
1554
|
medium: { width: 10.83, height: 7.5 },
|
|
1559
1555
|
large: { width: 13, height: 9 }
|
|
1560
|
-
},
|
|
1556
|
+
}, Mn = ({
|
|
1561
1557
|
size: t,
|
|
1562
|
-
isChecked:
|
|
1563
|
-
isDisabled:
|
|
1558
|
+
isChecked: r,
|
|
1559
|
+
isDisabled: a,
|
|
1564
1560
|
indeterminate: n,
|
|
1565
|
-
dataTestId:
|
|
1561
|
+
dataTestId: i
|
|
1566
1562
|
}) => {
|
|
1567
|
-
const { width: s, height: c } =
|
|
1568
|
-
return /* @__PURE__ */
|
|
1563
|
+
const { width: s, height: c } = Ln[t];
|
|
1564
|
+
return /* @__PURE__ */ o.jsx(
|
|
1569
1565
|
"div",
|
|
1570
1566
|
{
|
|
1571
1567
|
className: ge.icon,
|
|
1572
|
-
"data-testid": `${
|
|
1573
|
-
"data-checked":
|
|
1574
|
-
"data-disabled":
|
|
1568
|
+
"data-testid": `${i}-icon`,
|
|
1569
|
+
"data-checked": r,
|
|
1570
|
+
"data-disabled": a,
|
|
1575
1571
|
"data-indeterminate": n,
|
|
1576
|
-
children: n ? /* @__PURE__ */
|
|
1572
|
+
children: n ? /* @__PURE__ */ o.jsx(En, { width: s, height: c }) : /* @__PURE__ */ o.jsx(wn, { width: s, height: c })
|
|
1577
1573
|
}
|
|
1578
1574
|
);
|
|
1579
|
-
},
|
|
1575
|
+
}, qs = X((t, r) => {
|
|
1580
1576
|
const {
|
|
1581
|
-
name:
|
|
1577
|
+
name: a,
|
|
1582
1578
|
value: n,
|
|
1583
|
-
size:
|
|
1579
|
+
size: i = "medium",
|
|
1584
1580
|
indeterminate: s = !1,
|
|
1585
1581
|
loading: c = !1,
|
|
1586
1582
|
error: _,
|
|
@@ -1590,75 +1586,75 @@ const br = 2, mr = (t) => {
|
|
|
1590
1586
|
containerStyle: g,
|
|
1591
1587
|
style: h,
|
|
1592
1588
|
children: b,
|
|
1593
|
-
clickableLabel:
|
|
1589
|
+
clickableLabel: m = !0,
|
|
1594
1590
|
tabIndex: w,
|
|
1595
|
-
onChange:
|
|
1591
|
+
onChange: E,
|
|
1596
1592
|
"data-testid": C = "checkbox"
|
|
1597
|
-
} = t, [
|
|
1593
|
+
} = t, [v, S] = Me(!1), M = n ?? v, T = d || c, N = !!_, k = M || s, P = ye(ge.container, ge[i], f), D = ye(
|
|
1598
1594
|
ge.checkbox,
|
|
1599
|
-
ge[
|
|
1595
|
+
ge[i],
|
|
1600
1596
|
{
|
|
1601
|
-
[ge.error]:
|
|
1597
|
+
[ge.error]: N
|
|
1602
1598
|
},
|
|
1603
1599
|
p
|
|
1604
|
-
),
|
|
1605
|
-
|
|
1606
|
-
},
|
|
1607
|
-
if (
|
|
1608
|
-
|
|
1609
|
-
const
|
|
1610
|
-
|
|
1600
|
+
), B = (R) => {
|
|
1601
|
+
T || (S(R.target.checked), E == null || E(R.target.checked, R));
|
|
1602
|
+
}, x = (R) => {
|
|
1603
|
+
if (R.key === "Enter" && !T) {
|
|
1604
|
+
R.preventDefault();
|
|
1605
|
+
const W = !k;
|
|
1606
|
+
S(W), E == null || E(W);
|
|
1611
1607
|
}
|
|
1612
|
-
},
|
|
1613
|
-
|
|
1614
|
-
},
|
|
1615
|
-
return /* @__PURE__ */
|
|
1608
|
+
}, F = (R) => {
|
|
1609
|
+
m || R.preventDefault();
|
|
1610
|
+
}, O = (R) => R.stopPropagation();
|
|
1611
|
+
return /* @__PURE__ */ o.jsxs(
|
|
1616
1612
|
"label",
|
|
1617
1613
|
{
|
|
1618
|
-
className:
|
|
1619
|
-
htmlFor:
|
|
1614
|
+
className: P,
|
|
1615
|
+
htmlFor: a,
|
|
1620
1616
|
style: g,
|
|
1621
1617
|
"data-testid": C,
|
|
1622
|
-
"data-clickable-label":
|
|
1618
|
+
"data-clickable-label": m,
|
|
1623
1619
|
children: [
|
|
1624
|
-
/* @__PURE__ */
|
|
1620
|
+
/* @__PURE__ */ o.jsx("div", { className: ge.checkboxWrapper, children: /* @__PURE__ */ o.jsxs(
|
|
1625
1621
|
"div",
|
|
1626
1622
|
{
|
|
1627
1623
|
tabIndex: w || 0,
|
|
1628
|
-
className:
|
|
1624
|
+
className: D,
|
|
1629
1625
|
style: h,
|
|
1630
|
-
onKeyDown:
|
|
1631
|
-
"aria-checked":
|
|
1632
|
-
"aria-disabled":
|
|
1633
|
-
"aria-invalid":
|
|
1634
|
-
"aria-describedby": _ ? `${
|
|
1626
|
+
onKeyDown: x,
|
|
1627
|
+
"aria-checked": k,
|
|
1628
|
+
"aria-disabled": T,
|
|
1629
|
+
"aria-invalid": N,
|
|
1630
|
+
"aria-describedby": _ ? `${a}-error` : void 0,
|
|
1635
1631
|
"data-testid": `${C}-label`,
|
|
1636
1632
|
children: [
|
|
1637
|
-
/* @__PURE__ */
|
|
1633
|
+
/* @__PURE__ */ o.jsx(
|
|
1638
1634
|
"input",
|
|
1639
1635
|
{
|
|
1640
|
-
ref:
|
|
1636
|
+
ref: r,
|
|
1641
1637
|
type: "checkbox",
|
|
1642
|
-
id:
|
|
1643
|
-
name:
|
|
1644
|
-
checked:
|
|
1645
|
-
disabled:
|
|
1638
|
+
id: a,
|
|
1639
|
+
name: a,
|
|
1640
|
+
checked: k,
|
|
1641
|
+
disabled: T,
|
|
1646
1642
|
className: ge.input,
|
|
1647
|
-
onChange:
|
|
1648
|
-
onClick:
|
|
1649
|
-
"aria-checked":
|
|
1650
|
-
"aria-invalid":
|
|
1651
|
-
"aria-describedby": _ ? `${
|
|
1643
|
+
onChange: B,
|
|
1644
|
+
onClick: O,
|
|
1645
|
+
"aria-checked": k,
|
|
1646
|
+
"aria-invalid": N,
|
|
1647
|
+
"aria-describedby": _ ? `${a}-error` : void 0,
|
|
1652
1648
|
"data-testid": `${C}-input`
|
|
1653
1649
|
}
|
|
1654
1650
|
),
|
|
1655
|
-
/* @__PURE__ */
|
|
1656
|
-
|
|
1651
|
+
/* @__PURE__ */ o.jsx(
|
|
1652
|
+
Mn,
|
|
1657
1653
|
{
|
|
1658
|
-
name:
|
|
1659
|
-
size:
|
|
1660
|
-
isChecked:
|
|
1661
|
-
isDisabled:
|
|
1654
|
+
name: a,
|
|
1655
|
+
size: i,
|
|
1656
|
+
isChecked: k,
|
|
1657
|
+
isDisabled: T,
|
|
1662
1658
|
indeterminate: s,
|
|
1663
1659
|
dataTestId: C
|
|
1664
1660
|
}
|
|
@@ -1666,49 +1662,49 @@ const br = 2, mr = (t) => {
|
|
|
1666
1662
|
]
|
|
1667
1663
|
}
|
|
1668
1664
|
) }),
|
|
1669
|
-
b && /* @__PURE__ */
|
|
1665
|
+
b && /* @__PURE__ */ o.jsx(
|
|
1670
1666
|
"span",
|
|
1671
1667
|
{
|
|
1672
1668
|
"data-testid": `${C}-label-text`,
|
|
1673
|
-
"data-clickable-label":
|
|
1669
|
+
"data-clickable-label": m,
|
|
1674
1670
|
className: ge.label,
|
|
1675
|
-
onClick:
|
|
1671
|
+
onClick: F,
|
|
1676
1672
|
children: b
|
|
1677
1673
|
}
|
|
1678
1674
|
)
|
|
1679
1675
|
]
|
|
1680
1676
|
}
|
|
1681
1677
|
);
|
|
1682
|
-
}),
|
|
1683
|
-
typography:
|
|
1684
|
-
disabled:
|
|
1685
|
-
primary:
|
|
1686
|
-
secondary:
|
|
1687
|
-
tertiary:
|
|
1688
|
-
accent:
|
|
1678
|
+
}), $n = "_typography_zt7xg_1", In = "_disabled_zt7xg_8", jn = "_primary_zt7xg_13", Rn = "_secondary_zt7xg_18", kn = "_tertiary_zt7xg_23", Tn = "_accent_zt7xg_28", An = "_positive_zt7xg_38", Nn = "_negative_zt7xg_48", Dn = "_warning_zt7xg_58", On = "_special_zt7xg_68", Un = "_contrast_zt7xg_78", Ae = {
|
|
1679
|
+
typography: $n,
|
|
1680
|
+
disabled: In,
|
|
1681
|
+
primary: jn,
|
|
1682
|
+
secondary: Rn,
|
|
1683
|
+
tertiary: kn,
|
|
1684
|
+
accent: Tn,
|
|
1689
1685
|
"accent-secondary": "_accent-secondary_zt7xg_33",
|
|
1690
|
-
positive:
|
|
1686
|
+
positive: An,
|
|
1691
1687
|
"positive-secondary": "_positive-secondary_zt7xg_43",
|
|
1692
|
-
negative:
|
|
1688
|
+
negative: Nn,
|
|
1693
1689
|
"negative-secondary": "_negative-secondary_zt7xg_53",
|
|
1694
|
-
warning:
|
|
1690
|
+
warning: Dn,
|
|
1695
1691
|
"warning-secondary": "_warning-secondary_zt7xg_63",
|
|
1696
|
-
special:
|
|
1692
|
+
special: On,
|
|
1697
1693
|
"special-secondary": "_special-secondary_zt7xg_73",
|
|
1698
|
-
contrast:
|
|
1694
|
+
contrast: Un,
|
|
1699
1695
|
"contrast-secondary": "_contrast-secondary_zt7xg_83"
|
|
1700
|
-
},
|
|
1696
|
+
}, zn = {
|
|
1701
1697
|
1: "h1",
|
|
1702
1698
|
2: "h2",
|
|
1703
1699
|
3: "h3",
|
|
1704
1700
|
4: "h4",
|
|
1705
1701
|
5: "h5"
|
|
1706
|
-
},
|
|
1707
|
-
const
|
|
1702
|
+
}, Et = (t) => {
|
|
1703
|
+
const r = jt.forwardRef(
|
|
1708
1704
|
({
|
|
1709
|
-
size:
|
|
1705
|
+
size: a = 3,
|
|
1710
1706
|
children: n,
|
|
1711
|
-
className:
|
|
1707
|
+
className: i,
|
|
1712
1708
|
"data-testid": s,
|
|
1713
1709
|
as: c,
|
|
1714
1710
|
fontWeight: _ = "semibold",
|
|
@@ -1716,25 +1712,25 @@ const br = 2, mr = (t) => {
|
|
|
1716
1712
|
typographyStyle: f = "primary",
|
|
1717
1713
|
...p
|
|
1718
1714
|
}, g) => {
|
|
1719
|
-
const h = c ||
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1715
|
+
const h = c || zn[a], b = K(
|
|
1716
|
+
Ae.typography,
|
|
1717
|
+
Le[`typography-${t}-${a}-${_}`],
|
|
1718
|
+
Ae[f],
|
|
1723
1719
|
{
|
|
1724
|
-
[
|
|
1720
|
+
[Ae.disabled]: d
|
|
1725
1721
|
},
|
|
1726
|
-
|
|
1722
|
+
i
|
|
1727
1723
|
);
|
|
1728
|
-
return n ? /* @__PURE__ */
|
|
1724
|
+
return n ? /* @__PURE__ */ o.jsx(h, { ref: g, className: b, "data-testid": s, ...p, children: n }) : null;
|
|
1729
1725
|
}
|
|
1730
1726
|
);
|
|
1731
|
-
return
|
|
1732
|
-
},
|
|
1733
|
-
const
|
|
1727
|
+
return r.displayName = `Typography.${t === "title" ? "Title" : "Subtitle"}`, r;
|
|
1728
|
+
}, Lt = (t) => {
|
|
1729
|
+
const r = jt.forwardRef(
|
|
1734
1730
|
({
|
|
1735
|
-
size:
|
|
1731
|
+
size: a = 3,
|
|
1736
1732
|
children: n,
|
|
1737
|
-
className:
|
|
1733
|
+
className: i,
|
|
1738
1734
|
"data-testid": s,
|
|
1739
1735
|
as: c = "p",
|
|
1740
1736
|
fontWeight: _ = "regular",
|
|
@@ -1742,16 +1738,16 @@ const br = 2, mr = (t) => {
|
|
|
1742
1738
|
typographyStyle: f = "primary",
|
|
1743
1739
|
...p
|
|
1744
1740
|
}, g) => {
|
|
1745
|
-
const h = c, b =
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1741
|
+
const h = c, b = K(
|
|
1742
|
+
Ae.typography,
|
|
1743
|
+
Le[`typography-${t}-${a}-${_}`],
|
|
1744
|
+
Ae[f],
|
|
1749
1745
|
{
|
|
1750
|
-
[
|
|
1746
|
+
[Ae.disabled]: d
|
|
1751
1747
|
},
|
|
1752
|
-
|
|
1748
|
+
i
|
|
1753
1749
|
);
|
|
1754
|
-
return n ? /* @__PURE__ */
|
|
1750
|
+
return n ? /* @__PURE__ */ o.jsx(
|
|
1755
1751
|
h,
|
|
1756
1752
|
{
|
|
1757
1753
|
ref: g,
|
|
@@ -1763,56 +1759,56 @@ const br = 2, mr = (t) => {
|
|
|
1763
1759
|
) : null;
|
|
1764
1760
|
}
|
|
1765
1761
|
);
|
|
1766
|
-
return
|
|
1767
|
-
},
|
|
1768
|
-
Title:
|
|
1769
|
-
Subtitle:
|
|
1770
|
-
Label:
|
|
1771
|
-
Paragraph:
|
|
1772
|
-
},
|
|
1773
|
-
inputBase:
|
|
1774
|
-
wrapper:
|
|
1762
|
+
return r.displayName = `Typography.${t.charAt(0).toUpperCase() + t.slice(1)}`, r;
|
|
1763
|
+
}, Ys = {
|
|
1764
|
+
Title: Et("title"),
|
|
1765
|
+
Subtitle: Et("subtitle"),
|
|
1766
|
+
Label: Lt("label"),
|
|
1767
|
+
Paragraph: Lt("paragraph")
|
|
1768
|
+
}, Pn = "_inputBase_1m6fe_85", Bn = "_wrapper_1m6fe_95", Fn = "_gripHandle_1m6fe_169", Vn = "_error_1m6fe_230", Wn = "_tabFocused_1m6fe_237", Hn = "_disabled_1m6fe_262", Gn = "_loading_1m6fe_269", Zn = "_label_1m6fe_279", qn = "_small_1m6fe_292", Yn = "_large_1m6fe_299", Jn = "_leftSection_1m6fe_306", Kn = "_rightSection_1m6fe_315", Xn = "_helper_1m6fe_351", Qn = "_floatingLabel_1m6fe_376", es = "_focused_1m6fe_434", ts = "_filled_1m6fe_435", as = "_medium_1m6fe_469", rs = "_characterLimit_1m6fe_510", ns = "_input_1m6fe_85", ss = "_textarea_1m6fe_109", os = "_truncate_1m6fe_637", is = "_hint_1m6fe_719", I = {
|
|
1769
|
+
inputBase: Pn,
|
|
1770
|
+
wrapper: Bn,
|
|
1775
1771
|
"textarea-wrapper": "_textarea-wrapper_1m6fe_109",
|
|
1776
|
-
gripHandle:
|
|
1777
|
-
error:
|
|
1778
|
-
tabFocused:
|
|
1779
|
-
disabled:
|
|
1780
|
-
loading:
|
|
1781
|
-
label:
|
|
1782
|
-
small:
|
|
1783
|
-
large:
|
|
1784
|
-
leftSection:
|
|
1785
|
-
rightSection:
|
|
1786
|
-
helper:
|
|
1787
|
-
floatingLabel:
|
|
1788
|
-
focused:
|
|
1789
|
-
filled:
|
|
1790
|
-
medium:
|
|
1791
|
-
characterLimit:
|
|
1792
|
-
input:
|
|
1793
|
-
textarea:
|
|
1772
|
+
gripHandle: Fn,
|
|
1773
|
+
error: Vn,
|
|
1774
|
+
tabFocused: Wn,
|
|
1775
|
+
disabled: Hn,
|
|
1776
|
+
loading: Gn,
|
|
1777
|
+
label: Zn,
|
|
1778
|
+
small: qn,
|
|
1779
|
+
large: Yn,
|
|
1780
|
+
leftSection: Jn,
|
|
1781
|
+
rightSection: Kn,
|
|
1782
|
+
helper: Xn,
|
|
1783
|
+
floatingLabel: Qn,
|
|
1784
|
+
focused: es,
|
|
1785
|
+
filled: ts,
|
|
1786
|
+
medium: as,
|
|
1787
|
+
characterLimit: rs,
|
|
1788
|
+
input: ns,
|
|
1789
|
+
textarea: ss,
|
|
1794
1790
|
"size-small": "_size-small_1m6fe_586",
|
|
1795
1791
|
"size-medium": "_size-medium_1m6fe_592",
|
|
1796
1792
|
"size-large": "_size-large_1m6fe_598",
|
|
1797
1793
|
"with-floating-label": "_with-floating-label_1m6fe_605",
|
|
1798
|
-
truncate:
|
|
1799
|
-
hint:
|
|
1794
|
+
truncate: os,
|
|
1795
|
+
hint: is,
|
|
1800
1796
|
"has-hint": "_has-hint_1m6fe_736"
|
|
1801
|
-
},
|
|
1797
|
+
}, ls = ({
|
|
1802
1798
|
width: t = 8,
|
|
1803
|
-
height:
|
|
1804
|
-
className:
|
|
1799
|
+
height: r = 8,
|
|
1800
|
+
className: a,
|
|
1805
1801
|
color: n = "#AABBCA"
|
|
1806
|
-
}) => /* @__PURE__ */
|
|
1802
|
+
}) => /* @__PURE__ */ o.jsx(
|
|
1807
1803
|
"svg",
|
|
1808
1804
|
{
|
|
1809
1805
|
width: t,
|
|
1810
|
-
height:
|
|
1806
|
+
height: r,
|
|
1811
1807
|
viewBox: "0 0 8 8",
|
|
1812
1808
|
fill: "none",
|
|
1813
1809
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1814
|
-
className:
|
|
1815
|
-
children: /* @__PURE__ */
|
|
1810
|
+
className: a,
|
|
1811
|
+
children: /* @__PURE__ */ o.jsx(
|
|
1816
1812
|
"path",
|
|
1817
1813
|
{
|
|
1818
1814
|
fillRule: "evenodd",
|
|
@@ -1822,51 +1818,51 @@ const br = 2, mr = (t) => {
|
|
|
1822
1818
|
}
|
|
1823
1819
|
)
|
|
1824
1820
|
}
|
|
1825
|
-
),
|
|
1826
|
-
const
|
|
1827
|
-
return
|
|
1828
|
-
const
|
|
1829
|
-
|
|
1830
|
-
}, [t,
|
|
1831
|
-
textareaRef:
|
|
1821
|
+
), cs = (t, r) => {
|
|
1822
|
+
const a = ze(null), n = ze(null);
|
|
1823
|
+
return ve(() => {
|
|
1824
|
+
const i = r === "textarea" ? a.current : n.current;
|
|
1825
|
+
i && i.value !== t && (i.value = t || "");
|
|
1826
|
+
}, [t, r]), {
|
|
1827
|
+
textareaRef: a,
|
|
1832
1828
|
inputRef: n,
|
|
1833
|
-
currentRef:
|
|
1829
|
+
currentRef: r === "textarea" ? a : n
|
|
1834
1830
|
};
|
|
1835
|
-
},
|
|
1831
|
+
}, ds = (t, r, a) => {
|
|
1836
1832
|
const n = () => {
|
|
1837
|
-
if (!
|
|
1838
|
-
const
|
|
1839
|
-
if (
|
|
1840
|
-
const s =
|
|
1841
|
-
|
|
1842
|
-
const c =
|
|
1833
|
+
if (!a.current || r !== "hug") return;
|
|
1834
|
+
const i = a.current.scrollTop;
|
|
1835
|
+
if (a.current.style.setProperty("height", "auto", "important"), !t) return;
|
|
1836
|
+
const s = a.current.scrollHeight + "px";
|
|
1837
|
+
a.current.style.setProperty("height", s, "important"), a.current.scrollTop = i;
|
|
1838
|
+
const c = a.current.closest(`.${I.wrapper}`);
|
|
1843
1839
|
c && (c.setAttribute("data-resize", "hug"), c.setAttribute("data-show-grip", "false"));
|
|
1844
1840
|
};
|
|
1845
|
-
return
|
|
1846
|
-
|
|
1841
|
+
return ve(n, [t, r]), ve(() => {
|
|
1842
|
+
r === "hug" && a.current && n();
|
|
1847
1843
|
}, []), { resizeTextArea: n };
|
|
1848
|
-
},
|
|
1844
|
+
}, us = (t, r, a, n) => ({ handleGripMouseDown: Ee(
|
|
1849
1845
|
(s) => {
|
|
1850
|
-
if (!t ||
|
|
1846
|
+
if (!t || r || a || !(n === "fixed" || !n)) return;
|
|
1851
1847
|
s.preventDefault(), s.stopPropagation();
|
|
1852
|
-
const c = s.currentTarget.closest(`.${
|
|
1848
|
+
const c = s.currentTarget.closest(`.${I.wrapper}`);
|
|
1853
1849
|
if (!c) return;
|
|
1854
1850
|
const _ = s.clientY, d = c.clientHeight, f = (g) => {
|
|
1855
|
-
const h = g.clientY - _, b = Math.min(100, d),
|
|
1856
|
-
c.style.height = `${
|
|
1851
|
+
const h = g.clientY - _, b = Math.min(100, d), m = Math.max(b, d + h);
|
|
1852
|
+
c.style.height = `${m}px`;
|
|
1857
1853
|
}, p = () => {
|
|
1858
1854
|
document.removeEventListener("mousemove", f), document.removeEventListener("mouseup", p);
|
|
1859
1855
|
};
|
|
1860
1856
|
document.addEventListener("mousemove", f), document.addEventListener("mouseup", p);
|
|
1861
1857
|
},
|
|
1862
|
-
[t,
|
|
1863
|
-
) }),
|
|
1858
|
+
[t, r, a, n]
|
|
1859
|
+
) }), Mt = 30, _s = X(
|
|
1864
1860
|
({
|
|
1865
1861
|
component: t = "input",
|
|
1866
|
-
size:
|
|
1867
|
-
value:
|
|
1862
|
+
size: r = "medium",
|
|
1863
|
+
value: a = "",
|
|
1868
1864
|
placeholder: n,
|
|
1869
|
-
disabled:
|
|
1865
|
+
disabled: i = !1,
|
|
1870
1866
|
loading: s = !1,
|
|
1871
1867
|
onFocus: c,
|
|
1872
1868
|
onBlur: _,
|
|
@@ -1876,84 +1872,84 @@ const br = 2, mr = (t) => {
|
|
|
1876
1872
|
className: g,
|
|
1877
1873
|
style: h,
|
|
1878
1874
|
truncate: b = !1,
|
|
1879
|
-
shouldShowFloatingLabelClass:
|
|
1875
|
+
shouldShowFloatingLabelClass: m = !1,
|
|
1880
1876
|
"aria-invalid": w,
|
|
1881
|
-
"aria-errormessage":
|
|
1877
|
+
"aria-errormessage": E,
|
|
1882
1878
|
id: C,
|
|
1883
|
-
resize:
|
|
1884
|
-
|
|
1885
|
-
},
|
|
1886
|
-
const { textareaRef:
|
|
1887
|
-
if (
|
|
1888
|
-
return /* @__PURE__ */
|
|
1879
|
+
resize: v,
|
|
1880
|
+
...S
|
|
1881
|
+
}, M) => {
|
|
1882
|
+
const { textareaRef: T, inputRef: N, currentRef: k } = cs(a, t);
|
|
1883
|
+
if (ds(a, v, T), la(M, () => k.current, [k]), t === "textarea")
|
|
1884
|
+
return /* @__PURE__ */ o.jsx(
|
|
1889
1885
|
"textarea",
|
|
1890
1886
|
{
|
|
1891
|
-
ref:
|
|
1887
|
+
ref: T,
|
|
1892
1888
|
id: C,
|
|
1893
|
-
value:
|
|
1889
|
+
value: a,
|
|
1894
1890
|
placeholder: n,
|
|
1895
|
-
disabled:
|
|
1891
|
+
disabled: i || s,
|
|
1896
1892
|
onFocus: c,
|
|
1897
1893
|
onBlur: _,
|
|
1898
1894
|
onChange: d,
|
|
1899
1895
|
onKeyUp: f,
|
|
1900
1896
|
maxLength: p,
|
|
1901
1897
|
className: ye(
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1898
|
+
I.textarea,
|
|
1899
|
+
I[`size-${r}`],
|
|
1900
|
+
m && I["with-floating-label"],
|
|
1905
1901
|
g
|
|
1906
1902
|
),
|
|
1907
1903
|
style: h,
|
|
1908
1904
|
"aria-invalid": w,
|
|
1909
|
-
"aria-errormessage":
|
|
1910
|
-
"aria-describedby":
|
|
1905
|
+
"aria-errormessage": E,
|
|
1906
|
+
"aria-describedby": E ? `${C}-error` : void 0,
|
|
1911
1907
|
tabIndex: 0,
|
|
1912
|
-
"data-resize":
|
|
1913
|
-
|
|
1908
|
+
"data-resize": v,
|
|
1909
|
+
...S
|
|
1914
1910
|
}
|
|
1915
1911
|
);
|
|
1916
1912
|
if (t === "input")
|
|
1917
|
-
return /* @__PURE__ */
|
|
1913
|
+
return /* @__PURE__ */ o.jsx(
|
|
1918
1914
|
"input",
|
|
1919
1915
|
{
|
|
1920
|
-
ref:
|
|
1916
|
+
ref: N,
|
|
1921
1917
|
id: C,
|
|
1922
|
-
value:
|
|
1918
|
+
value: a,
|
|
1923
1919
|
placeholder: n,
|
|
1924
|
-
disabled:
|
|
1920
|
+
disabled: i || s,
|
|
1925
1921
|
onFocus: c,
|
|
1926
1922
|
onBlur: _,
|
|
1927
1923
|
onChange: d,
|
|
1928
1924
|
onKeyUp: f,
|
|
1929
1925
|
maxLength: p,
|
|
1930
1926
|
className: ye(
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
b &&
|
|
1927
|
+
I.input,
|
|
1928
|
+
I[`size-${r}`],
|
|
1929
|
+
m && I["with-floating-label"],
|
|
1930
|
+
b && I.truncate,
|
|
1935
1931
|
g
|
|
1936
1932
|
),
|
|
1937
1933
|
style: h,
|
|
1938
1934
|
"aria-invalid": w,
|
|
1939
|
-
"aria-errormessage":
|
|
1940
|
-
"aria-describedby":
|
|
1935
|
+
"aria-errormessage": E,
|
|
1936
|
+
"aria-describedby": E ? `${C}-error` : void 0,
|
|
1941
1937
|
tabIndex: 0,
|
|
1942
|
-
|
|
1938
|
+
...S
|
|
1943
1939
|
}
|
|
1944
1940
|
);
|
|
1945
1941
|
if (t !== "input" && t !== "textarea")
|
|
1946
1942
|
return console.error(
|
|
1947
|
-
`[Input] Недопустимое значение prop 'component': "${t}". Допустимые значения: 'input', 'textarea'`
|
|
1943
|
+
`[Input] Недопустимое значение prop 'component': "${String(t)}". Допустимые значения: 'input', 'textarea'`
|
|
1948
1944
|
), null;
|
|
1949
1945
|
}
|
|
1950
|
-
),
|
|
1946
|
+
), At = X(
|
|
1951
1947
|
({
|
|
1952
1948
|
children: t,
|
|
1953
|
-
size:
|
|
1954
|
-
error:
|
|
1949
|
+
size: r = "medium",
|
|
1950
|
+
error: a = !1,
|
|
1955
1951
|
disabled: n = !1,
|
|
1956
|
-
loading:
|
|
1952
|
+
loading: i = !1,
|
|
1957
1953
|
className: s,
|
|
1958
1954
|
wrapperProps: c,
|
|
1959
1955
|
wrapperStyles: _,
|
|
@@ -1963,112 +1959,112 @@ const br = 2, mr = (t) => {
|
|
|
1963
1959
|
labelProps: g,
|
|
1964
1960
|
helperProps: h,
|
|
1965
1961
|
showLimit: b = !1,
|
|
1966
|
-
maxLength:
|
|
1962
|
+
maxLength: m,
|
|
1967
1963
|
hint: w,
|
|
1968
|
-
showHint:
|
|
1964
|
+
showHint: E = !1,
|
|
1969
1965
|
showHintOnEmpty: C = !1,
|
|
1970
|
-
prefix:
|
|
1971
|
-
suffix:
|
|
1972
|
-
placeholder:
|
|
1973
|
-
showLabel:
|
|
1974
|
-
labelClassName:
|
|
1975
|
-
hasValue:
|
|
1976
|
-
helper:
|
|
1977
|
-
id:
|
|
1978
|
-
value:
|
|
1979
|
-
resize:
|
|
1980
|
-
showGrip:
|
|
1981
|
-
...
|
|
1982
|
-
},
|
|
1983
|
-
const
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
n &&
|
|
1987
|
-
|
|
1988
|
-
|
|
1966
|
+
prefix: v,
|
|
1967
|
+
suffix: S,
|
|
1968
|
+
placeholder: M,
|
|
1969
|
+
showLabel: T = !0,
|
|
1970
|
+
labelClassName: N,
|
|
1971
|
+
hasValue: k = !1,
|
|
1972
|
+
helper: P,
|
|
1973
|
+
id: D,
|
|
1974
|
+
value: B = "",
|
|
1975
|
+
resize: x,
|
|
1976
|
+
showGrip: F = !1,
|
|
1977
|
+
...O
|
|
1978
|
+
}, R) => {
|
|
1979
|
+
const W = at(), H = D || W, Q = E && w && (k || C), G = w && w.length > Mt ? w.substring(0, Mt) + "..." : w, te = ye(
|
|
1980
|
+
I.wrapper,
|
|
1981
|
+
a && I.error,
|
|
1982
|
+
n && I.disabled,
|
|
1983
|
+
i && I.loading,
|
|
1984
|
+
Q && I["has-hint"],
|
|
1989
1985
|
s
|
|
1990
|
-
),
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
), { handleGripMouseDown:
|
|
1996
|
-
return /* @__PURE__ */
|
|
1997
|
-
/* @__PURE__ */
|
|
1986
|
+
), ae = ye(
|
|
1987
|
+
I.floatingLabel,
|
|
1988
|
+
I[r],
|
|
1989
|
+
k && I.filled,
|
|
1990
|
+
N
|
|
1991
|
+
), { handleGripMouseDown: re } = us(F, n, i, x);
|
|
1992
|
+
return /* @__PURE__ */ o.jsxs("div", { ref: R, className: I.inputBase, "data-testid": "input-base-wrapper", ...O, children: [
|
|
1993
|
+
/* @__PURE__ */ o.jsxs(
|
|
1998
1994
|
"div",
|
|
1999
1995
|
{
|
|
2000
|
-
className:
|
|
1996
|
+
className: te,
|
|
2001
1997
|
style: _,
|
|
2002
|
-
"data-resize":
|
|
2003
|
-
"data-show-grip":
|
|
1998
|
+
"data-resize": x,
|
|
1999
|
+
"data-show-grip": F ? "true" : "false",
|
|
2004
2000
|
...c,
|
|
2005
2001
|
children: [
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2002
|
+
v && /* @__PURE__ */ o.jsx("label", { htmlFor: H, className: I.leftSection, style: f, children: v }),
|
|
2003
|
+
S && /* @__PURE__ */ o.jsx("label", { htmlFor: H, className: I.rightSection, style: p, children: S }),
|
|
2004
|
+
M && T && /* @__PURE__ */ o.jsx(
|
|
2009
2005
|
"label",
|
|
2010
2006
|
{
|
|
2011
2007
|
htmlFor: H,
|
|
2012
|
-
className:
|
|
2008
|
+
className: ae,
|
|
2013
2009
|
style: d,
|
|
2014
2010
|
...g,
|
|
2015
|
-
children:
|
|
2011
|
+
children: M
|
|
2016
2012
|
}
|
|
2017
2013
|
),
|
|
2018
2014
|
t,
|
|
2019
|
-
|
|
2015
|
+
F && !b && (x === "fixed" || !x) && /* @__PURE__ */ o.jsx(
|
|
2020
2016
|
"div",
|
|
2021
2017
|
{
|
|
2022
|
-
className:
|
|
2023
|
-
onMouseDown:
|
|
2018
|
+
className: I.gripHandle,
|
|
2019
|
+
onMouseDown: re,
|
|
2024
2020
|
role: "button",
|
|
2025
2021
|
tabIndex: -1,
|
|
2026
2022
|
"aria-label": "Изменить размер",
|
|
2027
|
-
children: /* @__PURE__ */
|
|
2023
|
+
children: /* @__PURE__ */ o.jsx(ls, {})
|
|
2028
2024
|
}
|
|
2029
2025
|
),
|
|
2030
|
-
|
|
2026
|
+
Q && /* @__PURE__ */ o.jsx(
|
|
2031
2027
|
"div",
|
|
2032
2028
|
{
|
|
2033
|
-
className: ye(
|
|
2034
|
-
"data-disabled": n ||
|
|
2029
|
+
className: ye(I.hint, k && I.truncate),
|
|
2030
|
+
"data-disabled": n || i,
|
|
2035
2031
|
children: G
|
|
2036
2032
|
}
|
|
2037
2033
|
),
|
|
2038
|
-
b &&
|
|
2039
|
-
(
|
|
2034
|
+
b && m && /* @__PURE__ */ o.jsxs("div", { className: I.characterLimit, children: [
|
|
2035
|
+
(B || "").length,
|
|
2040
2036
|
" из ",
|
|
2041
|
-
|
|
2037
|
+
m
|
|
2042
2038
|
] })
|
|
2043
2039
|
]
|
|
2044
2040
|
}
|
|
2045
2041
|
),
|
|
2046
|
-
|
|
2042
|
+
P && /* @__PURE__ */ o.jsx(
|
|
2047
2043
|
"div",
|
|
2048
2044
|
{
|
|
2049
2045
|
className: ye(
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
(n ||
|
|
2046
|
+
I.helper,
|
|
2047
|
+
a && I.error,
|
|
2048
|
+
(n || i) && I.disabled
|
|
2053
2049
|
),
|
|
2054
2050
|
...h,
|
|
2055
|
-
id:
|
|
2056
|
-
children:
|
|
2051
|
+
id: a ? `${H}-error` : void 0,
|
|
2052
|
+
children: P
|
|
2057
2053
|
}
|
|
2058
2054
|
)
|
|
2059
2055
|
] });
|
|
2060
2056
|
}
|
|
2061
2057
|
);
|
|
2062
|
-
|
|
2063
|
-
const
|
|
2064
|
-
Wrapper:
|
|
2065
|
-
}),
|
|
2058
|
+
At.displayName = "InputWrapperComponent";
|
|
2059
|
+
const $t = Object.assign(_s, {
|
|
2060
|
+
Wrapper: At
|
|
2061
|
+
}), Nt = X(
|
|
2066
2062
|
({
|
|
2067
2063
|
component: t = "input",
|
|
2068
|
-
size:
|
|
2069
|
-
className:
|
|
2064
|
+
size: r = "medium",
|
|
2065
|
+
className: a,
|
|
2070
2066
|
error: n = !1,
|
|
2071
|
-
disabled:
|
|
2067
|
+
disabled: i = !1,
|
|
2072
2068
|
loading: s = !1,
|
|
2073
2069
|
placeholder: c,
|
|
2074
2070
|
showLabel: _ = !0,
|
|
@@ -2078,141 +2074,141 @@ const St = Object.assign(ds, {
|
|
|
2078
2074
|
suffix: g,
|
|
2079
2075
|
id: h,
|
|
2080
2076
|
onFocus: b,
|
|
2081
|
-
onBlur:
|
|
2077
|
+
onBlur: m,
|
|
2082
2078
|
onChange: w,
|
|
2083
|
-
value:
|
|
2079
|
+
value: E = "",
|
|
2084
2080
|
wrapperProps: C,
|
|
2085
|
-
wrapperStyles:
|
|
2086
|
-
floatingLabelStyles:
|
|
2087
|
-
prefixStyles:
|
|
2088
|
-
suffixStyles:
|
|
2089
|
-
textareaStyles:
|
|
2090
|
-
labelProps:
|
|
2091
|
-
helperProps:
|
|
2092
|
-
showLimit:
|
|
2093
|
-
maxLength:
|
|
2094
|
-
inputProps:
|
|
2095
|
-
hint:
|
|
2096
|
-
showHint:
|
|
2097
|
-
showHintOnEmpty:
|
|
2098
|
-
truncate:
|
|
2081
|
+
wrapperStyles: v,
|
|
2082
|
+
floatingLabelStyles: S,
|
|
2083
|
+
prefixStyles: M,
|
|
2084
|
+
suffixStyles: T,
|
|
2085
|
+
textareaStyles: N,
|
|
2086
|
+
labelProps: k,
|
|
2087
|
+
helperProps: P,
|
|
2088
|
+
showLimit: D = !1,
|
|
2089
|
+
maxLength: B,
|
|
2090
|
+
inputProps: x,
|
|
2091
|
+
hint: F,
|
|
2092
|
+
showHint: O = !1,
|
|
2093
|
+
showHintOnEmpty: R = !1,
|
|
2094
|
+
truncate: W = !1,
|
|
2099
2095
|
resize: H,
|
|
2100
|
-
showGrip:
|
|
2096
|
+
showGrip: Q = !1,
|
|
2101
2097
|
...G
|
|
2102
|
-
},
|
|
2103
|
-
const
|
|
2098
|
+
}, te) => {
|
|
2099
|
+
const ae = at(), re = h || ae, [me, ne] = Me(E), xe = E !== void 0 ? E : me, $e = (xe || "").length > 0, ue = _ && (r === "large" || t === "textarea") && !p, le = Ee(
|
|
2104
2100
|
(Y) => {
|
|
2105
|
-
var
|
|
2106
|
-
|
|
2107
|
-
|
|
2101
|
+
var ee;
|
|
2102
|
+
i || s || (b == null || b(), (ee = x == null ? void 0 : x.onFocus) == null || ee.call(
|
|
2103
|
+
x,
|
|
2108
2104
|
Y
|
|
2109
2105
|
));
|
|
2110
2106
|
},
|
|
2111
|
-
[b,
|
|
2112
|
-
), _e =
|
|
2107
|
+
[b, x, i, s]
|
|
2108
|
+
), _e = Ee(
|
|
2113
2109
|
(Y) => {
|
|
2114
|
-
var
|
|
2110
|
+
var ee;
|
|
2115
2111
|
if (Y.key === "Tab") {
|
|
2116
|
-
const de = Y.target.closest(`.${
|
|
2117
|
-
de && de.classList.add(
|
|
2112
|
+
const de = Y.target.closest(`.${I.wrapper}`);
|
|
2113
|
+
de && de.classList.add(I.tabFocused);
|
|
2118
2114
|
}
|
|
2119
|
-
(
|
|
2120
|
-
|
|
2115
|
+
(ee = x == null ? void 0 : x.onKeyUp) == null || ee.call(
|
|
2116
|
+
x,
|
|
2121
2117
|
Y
|
|
2122
2118
|
);
|
|
2123
2119
|
},
|
|
2124
|
-
[
|
|
2125
|
-
), ce =
|
|
2120
|
+
[x]
|
|
2121
|
+
), ce = Ee(
|
|
2126
2122
|
(Y) => {
|
|
2127
2123
|
var de;
|
|
2128
|
-
const
|
|
2129
|
-
|
|
2130
|
-
|
|
2124
|
+
const ee = Y.target.closest(`.${I.wrapper}`);
|
|
2125
|
+
ee && ee.classList.remove(I.tabFocused), m == null || m(), (de = x == null ? void 0 : x.onBlur) == null || de.call(
|
|
2126
|
+
x,
|
|
2131
2127
|
Y
|
|
2132
2128
|
);
|
|
2133
2129
|
},
|
|
2134
|
-
[
|
|
2135
|
-
),
|
|
2130
|
+
[m, x]
|
|
2131
|
+
), Ce = Ee(
|
|
2136
2132
|
(Y) => {
|
|
2137
2133
|
var de;
|
|
2138
|
-
if (
|
|
2139
|
-
const
|
|
2140
|
-
|
|
2141
|
-
|
|
2134
|
+
if (i || s) return;
|
|
2135
|
+
const ee = Y.target.value;
|
|
2136
|
+
ne(ee), w == null || w(ee), (de = x == null ? void 0 : x.onChange) == null || de.call(
|
|
2137
|
+
x,
|
|
2142
2138
|
Y
|
|
2143
2139
|
);
|
|
2144
2140
|
},
|
|
2145
|
-
[w,
|
|
2141
|
+
[w, x, i, s]
|
|
2146
2142
|
);
|
|
2147
|
-
return
|
|
2148
|
-
|
|
2149
|
-
}, [
|
|
2150
|
-
|
|
2143
|
+
return ve(() => {
|
|
2144
|
+
ne(E);
|
|
2145
|
+
}, [E]), /* @__PURE__ */ o.jsx(
|
|
2146
|
+
$t.Wrapper,
|
|
2151
2147
|
{
|
|
2152
|
-
ref:
|
|
2153
|
-
size:
|
|
2148
|
+
ref: te,
|
|
2149
|
+
size: r,
|
|
2154
2150
|
error: n,
|
|
2155
|
-
disabled:
|
|
2151
|
+
disabled: i || s,
|
|
2156
2152
|
loading: s,
|
|
2157
|
-
className:
|
|
2153
|
+
className: K(a, t === "textarea" && I["textarea-wrapper"]),
|
|
2158
2154
|
wrapperProps: C,
|
|
2159
|
-
wrapperStyles:
|
|
2160
|
-
floatingLabelStyles:
|
|
2161
|
-
prefixStyles:
|
|
2162
|
-
suffixStyles:
|
|
2163
|
-
labelProps:
|
|
2164
|
-
helperProps:
|
|
2165
|
-
showLimit:
|
|
2166
|
-
maxLength:
|
|
2167
|
-
hint:
|
|
2168
|
-
showHint:
|
|
2169
|
-
showHintOnEmpty:
|
|
2155
|
+
wrapperStyles: v,
|
|
2156
|
+
floatingLabelStyles: S,
|
|
2157
|
+
prefixStyles: M,
|
|
2158
|
+
suffixStyles: T,
|
|
2159
|
+
labelProps: k,
|
|
2160
|
+
helperProps: P,
|
|
2161
|
+
showLimit: D,
|
|
2162
|
+
maxLength: B,
|
|
2163
|
+
hint: F,
|
|
2164
|
+
showHint: O,
|
|
2165
|
+
showHintOnEmpty: R,
|
|
2170
2166
|
prefix: p,
|
|
2171
2167
|
suffix: g,
|
|
2172
2168
|
placeholder: c,
|
|
2173
2169
|
showLabel: _,
|
|
2174
2170
|
labelClassName: d,
|
|
2175
|
-
hasValue:
|
|
2171
|
+
hasValue: $e,
|
|
2176
2172
|
helper: f,
|
|
2177
|
-
id:
|
|
2178
|
-
value:
|
|
2179
|
-
showGrip:
|
|
2173
|
+
id: re,
|
|
2174
|
+
value: xe,
|
|
2175
|
+
showGrip: Q,
|
|
2180
2176
|
resize: H,
|
|
2181
2177
|
...G,
|
|
2182
|
-
children: /* @__PURE__ */
|
|
2183
|
-
|
|
2178
|
+
children: /* @__PURE__ */ o.jsx(
|
|
2179
|
+
$t,
|
|
2184
2180
|
{
|
|
2185
2181
|
component: t,
|
|
2186
|
-
size:
|
|
2187
|
-
value:
|
|
2182
|
+
size: r,
|
|
2183
|
+
value: xe,
|
|
2188
2184
|
placeholder: c,
|
|
2189
|
-
disabled:
|
|
2185
|
+
disabled: i,
|
|
2190
2186
|
loading: s,
|
|
2191
2187
|
onFocus: le,
|
|
2192
2188
|
onBlur: ce,
|
|
2193
|
-
onChange:
|
|
2189
|
+
onChange: Ce,
|
|
2194
2190
|
onKeyUp: _e,
|
|
2195
|
-
maxLength:
|
|
2196
|
-
truncate:
|
|
2197
|
-
"data-empty":
|
|
2191
|
+
maxLength: B,
|
|
2192
|
+
truncate: W,
|
|
2193
|
+
"data-empty": !$e,
|
|
2198
2194
|
shouldShowFloatingLabelClass: ue,
|
|
2199
|
-
style: t === "textarea" ?
|
|
2195
|
+
style: t === "textarea" ? N : void 0,
|
|
2200
2196
|
"aria-invalid": !!n,
|
|
2201
|
-
"aria-errormessage": n ? `${
|
|
2202
|
-
id:
|
|
2197
|
+
"aria-errormessage": n ? `${re}-error` : void 0,
|
|
2198
|
+
id: re,
|
|
2203
2199
|
resize: H,
|
|
2204
|
-
...
|
|
2200
|
+
...x
|
|
2205
2201
|
}
|
|
2206
2202
|
)
|
|
2207
2203
|
}
|
|
2208
2204
|
);
|
|
2209
2205
|
}
|
|
2210
|
-
),
|
|
2206
|
+
), Dt = ({
|
|
2211
2207
|
className: t = "",
|
|
2212
|
-
style:
|
|
2213
|
-
size:
|
|
2208
|
+
style: r,
|
|
2209
|
+
size: a = "md",
|
|
2214
2210
|
color: n = "currentColor",
|
|
2215
|
-
onClick:
|
|
2211
|
+
onClick: i,
|
|
2216
2212
|
...s
|
|
2217
2213
|
}) => {
|
|
2218
2214
|
const _ = {
|
|
@@ -2225,10 +2221,10 @@ const St = Object.assign(ds, {
|
|
|
2225
2221
|
sm: { width: "24px", height: "24px" },
|
|
2226
2222
|
md: { width: "32px", height: "32px" },
|
|
2227
2223
|
lg: { width: "40px", height: "40px" }
|
|
2228
|
-
}[
|
|
2229
|
-
...
|
|
2224
|
+
}[a],
|
|
2225
|
+
...r
|
|
2230
2226
|
};
|
|
2231
|
-
return /* @__PURE__ */
|
|
2227
|
+
return /* @__PURE__ */ o.jsx(
|
|
2232
2228
|
"svg",
|
|
2233
2229
|
{
|
|
2234
2230
|
className: t,
|
|
@@ -2236,9 +2232,9 @@ const St = Object.assign(ds, {
|
|
|
2236
2232
|
viewBox: "0 0 16 16",
|
|
2237
2233
|
fill: "none",
|
|
2238
2234
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2239
|
-
onClick:
|
|
2235
|
+
onClick: i,
|
|
2240
2236
|
...s,
|
|
2241
|
-
children: /* @__PURE__ */
|
|
2237
|
+
children: /* @__PURE__ */ o.jsx(
|
|
2242
2238
|
"path",
|
|
2243
2239
|
{
|
|
2244
2240
|
d: "M12 4L4 12M4 4L12 12",
|
|
@@ -2254,10 +2250,10 @@ const St = Object.assign(ds, {
|
|
|
2254
2250
|
SMALL: "small",
|
|
2255
2251
|
MEDIUM: "medium",
|
|
2256
2252
|
LARGE: "large"
|
|
2257
|
-
},
|
|
2253
|
+
}, ps = (t, r, a, n) => {
|
|
2258
2254
|
switch (t) {
|
|
2259
2255
|
case q.LARGE:
|
|
2260
|
-
return
|
|
2256
|
+
return r && a ? "8px 16px 8px 16px" : "16px 16px 16px 16px";
|
|
2261
2257
|
case q.MEDIUM:
|
|
2262
2258
|
return n ? "12px 12px 12px 12px" : "12px 12px 12px 16px";
|
|
2263
2259
|
case q.SMALL:
|
|
@@ -2265,7 +2261,7 @@ const St = Object.assign(ds, {
|
|
|
2265
2261
|
default:
|
|
2266
2262
|
return "12px 16px 12px 16px";
|
|
2267
2263
|
}
|
|
2268
|
-
},
|
|
2264
|
+
}, fs = (t) => {
|
|
2269
2265
|
switch (t) {
|
|
2270
2266
|
case q.LARGE:
|
|
2271
2267
|
return "56px";
|
|
@@ -2276,7 +2272,7 @@ const St = Object.assign(ds, {
|
|
|
2276
2272
|
default:
|
|
2277
2273
|
return "48px";
|
|
2278
2274
|
}
|
|
2279
|
-
},
|
|
2275
|
+
}, gs = (t) => {
|
|
2280
2276
|
switch (t) {
|
|
2281
2277
|
case q.SMALL:
|
|
2282
2278
|
return 8;
|
|
@@ -2288,65 +2284,65 @@ const St = Object.assign(ds, {
|
|
|
2288
2284
|
default:
|
|
2289
2285
|
return 12;
|
|
2290
2286
|
}
|
|
2291
|
-
},
|
|
2287
|
+
}, hs = (t, r, a) => ({
|
|
2292
2288
|
wrapperStyles: {
|
|
2293
2289
|
height: t,
|
|
2294
2290
|
minHeight: t,
|
|
2295
2291
|
maxHeight: t,
|
|
2296
2292
|
boxSizing: "border-box",
|
|
2297
|
-
padding:
|
|
2293
|
+
padding: r
|
|
2298
2294
|
},
|
|
2299
2295
|
floatingLabelStyles: {
|
|
2300
2296
|
left: "16px",
|
|
2301
2297
|
transformOrigin: "left top"
|
|
2302
2298
|
},
|
|
2303
2299
|
prefixStyles: {
|
|
2304
|
-
paddingRight: `${
|
|
2300
|
+
paddingRight: `${a}px`
|
|
2305
2301
|
},
|
|
2306
2302
|
suffixStyles: {
|
|
2307
|
-
right: `${
|
|
2303
|
+
right: `${a}px`
|
|
2308
2304
|
}
|
|
2309
|
-
}),
|
|
2305
|
+
}), bs = (t, r, a) => ({
|
|
2310
2306
|
wrapperStyles: {
|
|
2311
2307
|
minHeight: t,
|
|
2312
2308
|
maxHeight: t,
|
|
2313
2309
|
boxSizing: "border-box",
|
|
2314
|
-
padding:
|
|
2310
|
+
padding: r
|
|
2315
2311
|
},
|
|
2316
2312
|
floatingLabelStyles: {
|
|
2317
2313
|
left: "16px"
|
|
2318
2314
|
},
|
|
2319
2315
|
prefixStyles: {
|
|
2320
|
-
paddingRight: `${
|
|
2316
|
+
paddingRight: `${a}px`
|
|
2321
2317
|
},
|
|
2322
2318
|
suffixStyles: {
|
|
2323
|
-
right: `${
|
|
2319
|
+
right: `${a}px`
|
|
2324
2320
|
}
|
|
2325
|
-
}),
|
|
2321
|
+
}), ms = (t, r, a) => ({
|
|
2326
2322
|
wrapperStyles: {
|
|
2327
2323
|
minHeight: t,
|
|
2328
2324
|
maxHeight: t,
|
|
2329
2325
|
boxSizing: "border-box",
|
|
2330
|
-
padding:
|
|
2326
|
+
padding: r
|
|
2331
2327
|
},
|
|
2332
2328
|
floatingLabelStyles: {
|
|
2333
2329
|
left: "12px"
|
|
2334
2330
|
},
|
|
2335
2331
|
prefixStyles: {
|
|
2336
|
-
paddingRight: `${
|
|
2332
|
+
paddingRight: `${a}px`
|
|
2337
2333
|
},
|
|
2338
2334
|
suffixStyles: {
|
|
2339
|
-
right: `${
|
|
2335
|
+
right: `${a}px`
|
|
2340
2336
|
}
|
|
2341
|
-
}),
|
|
2342
|
-
const
|
|
2337
|
+
}), ys = (t, r, a, n) => {
|
|
2338
|
+
const i = fs(t), s = ps(t, r, a, n), c = gs(t);
|
|
2343
2339
|
switch (t) {
|
|
2344
2340
|
case q.LARGE:
|
|
2345
|
-
return
|
|
2341
|
+
return hs(i, s, c);
|
|
2346
2342
|
case q.MEDIUM:
|
|
2347
|
-
return
|
|
2343
|
+
return bs(i, s, c);
|
|
2348
2344
|
case q.SMALL:
|
|
2349
|
-
return
|
|
2345
|
+
return ms(i, s, c);
|
|
2350
2346
|
default:
|
|
2351
2347
|
return {
|
|
2352
2348
|
wrapperStyles: {},
|
|
@@ -2355,13 +2351,13 @@ const St = Object.assign(ds, {
|
|
|
2355
2351
|
suffixStyles: {}
|
|
2356
2352
|
};
|
|
2357
2353
|
}
|
|
2358
|
-
},
|
|
2354
|
+
}, Js = X(
|
|
2359
2355
|
({
|
|
2360
2356
|
value: t = "",
|
|
2361
|
-
onChange:
|
|
2362
|
-
type:
|
|
2357
|
+
onChange: r,
|
|
2358
|
+
type: a = "text",
|
|
2363
2359
|
placeholder: n,
|
|
2364
|
-
maxLength:
|
|
2360
|
+
maxLength: i,
|
|
2365
2361
|
minLength: s,
|
|
2366
2362
|
autoComplete: c,
|
|
2367
2363
|
autoFocus: _,
|
|
@@ -2371,93 +2367,93 @@ const St = Object.assign(ds, {
|
|
|
2371
2367
|
disabled: g,
|
|
2372
2368
|
loading: h,
|
|
2373
2369
|
helper: b,
|
|
2374
|
-
prefix:
|
|
2370
|
+
prefix: m,
|
|
2375
2371
|
suffix: w,
|
|
2376
|
-
clearable:
|
|
2372
|
+
clearable: E = !1,
|
|
2377
2373
|
id: C,
|
|
2378
|
-
showLabel:
|
|
2379
|
-
onFocus:
|
|
2380
|
-
onBlur:
|
|
2381
|
-
className:
|
|
2382
|
-
truncate:
|
|
2383
|
-
hint:
|
|
2384
|
-
showHint:
|
|
2385
|
-
showHintOnEmpty:
|
|
2386
|
-
wrapperProps:
|
|
2387
|
-
labelProps:
|
|
2388
|
-
helperProps:
|
|
2389
|
-
...
|
|
2390
|
-
},
|
|
2391
|
-
const
|
|
2392
|
-
|
|
2393
|
-
},
|
|
2394
|
-
|
|
2374
|
+
showLabel: v = !0,
|
|
2375
|
+
onFocus: S,
|
|
2376
|
+
onBlur: M,
|
|
2377
|
+
className: T,
|
|
2378
|
+
truncate: N = !0,
|
|
2379
|
+
hint: k,
|
|
2380
|
+
showHint: P = !1,
|
|
2381
|
+
showHintOnEmpty: D = !1,
|
|
2382
|
+
wrapperProps: B,
|
|
2383
|
+
labelProps: x,
|
|
2384
|
+
helperProps: F,
|
|
2385
|
+
...O
|
|
2386
|
+
}, R) => {
|
|
2387
|
+
const W = (t || "").length > 0, H = d === q.LARGE, Q = !!m, G = H && v && !m, te = E && W && !(g || h), ae = () => {
|
|
2388
|
+
r == null || r("");
|
|
2389
|
+
}, re = te ? /* @__PURE__ */ o.jsx(
|
|
2390
|
+
Dt,
|
|
2395
2391
|
{
|
|
2396
2392
|
size: d === q.SMALL ? "xs" : "sm",
|
|
2397
2393
|
color: "var(--icon-secondary)",
|
|
2398
|
-
onClick:
|
|
2394
|
+
onClick: ae,
|
|
2399
2395
|
style: { cursor: "pointer" },
|
|
2400
2396
|
"data-testid": "x-icon"
|
|
2401
2397
|
}
|
|
2402
2398
|
) : w, me = {
|
|
2403
|
-
type:
|
|
2399
|
+
type: a,
|
|
2404
2400
|
minLength: s,
|
|
2405
2401
|
autoComplete: c,
|
|
2406
2402
|
autoFocus: _,
|
|
2407
2403
|
...f
|
|
2408
|
-
},
|
|
2409
|
-
return /* @__PURE__ */
|
|
2410
|
-
|
|
2404
|
+
}, ne = ys(d, G, W, Q);
|
|
2405
|
+
return /* @__PURE__ */ o.jsx(
|
|
2406
|
+
Nt,
|
|
2411
2407
|
{
|
|
2412
2408
|
size: d,
|
|
2413
2409
|
error: p,
|
|
2414
2410
|
disabled: g || h,
|
|
2415
2411
|
loading: h,
|
|
2416
2412
|
helper: b,
|
|
2417
|
-
prefix:
|
|
2418
|
-
suffix:
|
|
2413
|
+
prefix: m,
|
|
2414
|
+
suffix: re,
|
|
2419
2415
|
id: C,
|
|
2420
2416
|
showLabel: G,
|
|
2421
|
-
onFocus:
|
|
2422
|
-
onBlur:
|
|
2423
|
-
onChange:
|
|
2417
|
+
onFocus: S,
|
|
2418
|
+
onBlur: M,
|
|
2419
|
+
onChange: r,
|
|
2424
2420
|
value: t || "",
|
|
2425
2421
|
placeholder: n,
|
|
2426
|
-
className:
|
|
2427
|
-
wrapperStyles:
|
|
2428
|
-
floatingLabelStyles:
|
|
2429
|
-
prefixStyles:
|
|
2430
|
-
suffixStyles:
|
|
2431
|
-
wrapperProps:
|
|
2432
|
-
labelProps:
|
|
2433
|
-
helperProps:
|
|
2422
|
+
className: T,
|
|
2423
|
+
wrapperStyles: ne.wrapperStyles,
|
|
2424
|
+
floatingLabelStyles: ne.floatingLabelStyles,
|
|
2425
|
+
prefixStyles: ne.prefixStyles,
|
|
2426
|
+
suffixStyles: ne.suffixStyles,
|
|
2427
|
+
wrapperProps: B,
|
|
2428
|
+
labelProps: x,
|
|
2429
|
+
helperProps: F,
|
|
2434
2430
|
showLimit: !1,
|
|
2435
|
-
maxLength:
|
|
2431
|
+
maxLength: i,
|
|
2436
2432
|
inputProps: me,
|
|
2437
|
-
hint:
|
|
2438
|
-
showHint:
|
|
2439
|
-
showHintOnEmpty:
|
|
2440
|
-
truncate:
|
|
2441
|
-
...
|
|
2433
|
+
hint: k,
|
|
2434
|
+
showHint: P,
|
|
2435
|
+
showHintOnEmpty: D,
|
|
2436
|
+
truncate: N,
|
|
2437
|
+
...O
|
|
2442
2438
|
}
|
|
2443
2439
|
);
|
|
2444
2440
|
}
|
|
2445
|
-
),
|
|
2441
|
+
), ie = {
|
|
2446
2442
|
SMALL: "small",
|
|
2447
2443
|
MEDIUM: "medium"
|
|
2448
|
-
},
|
|
2444
|
+
}, We = {
|
|
2449
2445
|
SMALL: "12px",
|
|
2450
2446
|
MEDIUM: "16px"
|
|
2451
|
-
},
|
|
2447
|
+
}, vs = {
|
|
2452
2448
|
SMALL: "xs",
|
|
2453
2449
|
MEDIUM: "sm"
|
|
2454
|
-
},
|
|
2450
|
+
}, Ve = {
|
|
2455
2451
|
FILL: "fill",
|
|
2456
2452
|
FIXED: "fixed"
|
|
2457
|
-
},
|
|
2453
|
+
}, Xe = {
|
|
2458
2454
|
SMALL: "112px",
|
|
2459
2455
|
MEDIUM: "56px"
|
|
2460
|
-
},
|
|
2456
|
+
}, ke = {
|
|
2461
2457
|
SMALL: "48px",
|
|
2462
2458
|
MEDIUM: "22px"
|
|
2463
2459
|
}, fe = {
|
|
@@ -2469,61 +2465,61 @@ const St = Object.assign(ds, {
|
|
|
2469
2465
|
SMALL: 48,
|
|
2470
2466
|
MEDIUM: 56,
|
|
2471
2467
|
LARGE: 112
|
|
2472
|
-
},
|
|
2473
|
-
if (t ===
|
|
2474
|
-
return
|
|
2475
|
-
if (
|
|
2476
|
-
return `${
|
|
2468
|
+
}, xs = (t, r) => {
|
|
2469
|
+
if (t === ie.SMALL)
|
|
2470
|
+
return Xe.SMALL;
|
|
2471
|
+
if (r)
|
|
2472
|
+
return `${r}px`;
|
|
2477
2473
|
switch (t) {
|
|
2478
|
-
case
|
|
2479
|
-
return
|
|
2474
|
+
case ie.MEDIUM:
|
|
2475
|
+
return Xe.MEDIUM;
|
|
2480
2476
|
default:
|
|
2481
|
-
return
|
|
2477
|
+
return Xe.MEDIUM;
|
|
2482
2478
|
}
|
|
2483
|
-
},
|
|
2484
|
-
if (t ===
|
|
2485
|
-
return
|
|
2486
|
-
if (
|
|
2487
|
-
switch (
|
|
2479
|
+
}, Cs = (t, r) => {
|
|
2480
|
+
if (t === ie.SMALL)
|
|
2481
|
+
return ke.SMALL;
|
|
2482
|
+
if (r)
|
|
2483
|
+
switch (r) {
|
|
2488
2484
|
case be.SMALL:
|
|
2489
2485
|
case be.MEDIUM:
|
|
2490
|
-
return
|
|
2486
|
+
return ke.MEDIUM;
|
|
2491
2487
|
case be.LARGE:
|
|
2492
|
-
return
|
|
2488
|
+
return ke.SMALL;
|
|
2493
2489
|
default:
|
|
2494
|
-
return
|
|
2490
|
+
return ke.MEDIUM;
|
|
2495
2491
|
}
|
|
2496
2492
|
switch (t) {
|
|
2497
|
-
case
|
|
2498
|
-
return
|
|
2493
|
+
case ie.MEDIUM:
|
|
2494
|
+
return ke.MEDIUM;
|
|
2499
2495
|
default:
|
|
2500
|
-
return
|
|
2496
|
+
return ke.MEDIUM;
|
|
2501
2497
|
}
|
|
2502
|
-
},
|
|
2503
|
-
if (t ===
|
|
2498
|
+
}, Ss = (t, r, a) => {
|
|
2499
|
+
if (t === ie.SMALL)
|
|
2504
2500
|
return fe.SMALL;
|
|
2505
|
-
if (
|
|
2506
|
-
switch (
|
|
2501
|
+
if (r)
|
|
2502
|
+
switch (r) {
|
|
2507
2503
|
case be.SMALL:
|
|
2508
2504
|
return fe.MEDIUM_WITH_PREFIX;
|
|
2509
2505
|
case be.MEDIUM:
|
|
2510
|
-
return
|
|
2506
|
+
return a ? fe.MEDIUM_FLOATING_LABEL : fe.MEDIUM;
|
|
2511
2507
|
case be.LARGE:
|
|
2512
2508
|
return fe.MEDIUM;
|
|
2513
2509
|
default:
|
|
2514
2510
|
return fe.MEDIUM;
|
|
2515
2511
|
}
|
|
2516
2512
|
switch (t) {
|
|
2517
|
-
case
|
|
2518
|
-
return
|
|
2513
|
+
case ie.MEDIUM:
|
|
2514
|
+
return a ? fe.MEDIUM_FLOATING_LABEL : fe.MEDIUM;
|
|
2519
2515
|
default:
|
|
2520
2516
|
return fe.MEDIUM;
|
|
2521
2517
|
}
|
|
2522
|
-
},
|
|
2523
|
-
if (t ===
|
|
2518
|
+
}, ws = (t, r) => {
|
|
2519
|
+
if (t === ie.SMALL)
|
|
2524
2520
|
return "small";
|
|
2525
|
-
if (
|
|
2526
|
-
switch (
|
|
2521
|
+
if (r)
|
|
2522
|
+
switch (r) {
|
|
2527
2523
|
case be.SMALL:
|
|
2528
2524
|
return "small";
|
|
2529
2525
|
case be.MEDIUM:
|
|
@@ -2534,43 +2530,43 @@ const St = Object.assign(ds, {
|
|
|
2534
2530
|
return "medium";
|
|
2535
2531
|
}
|
|
2536
2532
|
return t;
|
|
2537
|
-
},
|
|
2538
|
-
const
|
|
2533
|
+
}, Es = (t) => vs[t.toUpperCase()], Ls = (t) => We[t.toUpperCase()], Ms = (t, r, a, n) => {
|
|
2534
|
+
const i = xs(t, r), s = Cs(t, r), c = Ss(t, r, a);
|
|
2539
2535
|
return {
|
|
2540
2536
|
wrapperStyles: {
|
|
2541
|
-
minHeight:
|
|
2537
|
+
minHeight: i,
|
|
2542
2538
|
// Для fill resize устанавливаем height: 100%
|
|
2543
|
-
...n ===
|
|
2539
|
+
...n === Ve.FILL && { height: "100%" },
|
|
2544
2540
|
// Для fixed resize устанавливаем фиксированную высоту
|
|
2545
|
-
...n ===
|
|
2541
|
+
...n === Ve.FIXED && r && { height: i },
|
|
2546
2542
|
boxSizing: "border-box",
|
|
2547
2543
|
padding: c
|
|
2548
2544
|
},
|
|
2549
2545
|
floatingLabelStyles: {
|
|
2550
|
-
left: t ===
|
|
2546
|
+
left: t === ie.SMALL ? We.SMALL : We.MEDIUM,
|
|
2551
2547
|
transformOrigin: "left top",
|
|
2552
|
-
top:
|
|
2548
|
+
top: r === 112 && a && t === ie.MEDIUM ? We.MEDIUM : void 0
|
|
2553
2549
|
},
|
|
2554
2550
|
suffixStyles: {
|
|
2555
|
-
right:
|
|
2551
|
+
right: Ls(t)
|
|
2556
2552
|
},
|
|
2557
2553
|
textareaStyles: {
|
|
2558
2554
|
minHeight: s,
|
|
2559
2555
|
// Для fill resize flex: 1
|
|
2560
|
-
...n ===
|
|
2556
|
+
...n === Ve.FILL && { flex: 1, minHeight: 0 },
|
|
2561
2557
|
// Для fixed resize фиксированная высота
|
|
2562
|
-
...n ===
|
|
2558
|
+
...n === Ve.FIXED && r && { height: s }
|
|
2563
2559
|
}
|
|
2564
2560
|
};
|
|
2565
|
-
},
|
|
2561
|
+
}, Ks = X(
|
|
2566
2562
|
({
|
|
2567
2563
|
value: t = "",
|
|
2568
|
-
onChange:
|
|
2569
|
-
placeholder:
|
|
2564
|
+
onChange: r,
|
|
2565
|
+
placeholder: a,
|
|
2570
2566
|
maxLength: n,
|
|
2571
|
-
minLength:
|
|
2567
|
+
minLength: i,
|
|
2572
2568
|
autoFocus: s,
|
|
2573
|
-
size: c =
|
|
2569
|
+
size: c = ie.MEDIUM,
|
|
2574
2570
|
textareaProps: _,
|
|
2575
2571
|
error: d,
|
|
2576
2572
|
disabled: f,
|
|
@@ -2578,96 +2574,96 @@ const St = Object.assign(ds, {
|
|
|
2578
2574
|
helper: g,
|
|
2579
2575
|
suffix: h,
|
|
2580
2576
|
clearable: b = !1,
|
|
2581
|
-
id:
|
|
2577
|
+
id: m,
|
|
2582
2578
|
showLabel: w = !0,
|
|
2583
|
-
onFocus:
|
|
2579
|
+
onFocus: E,
|
|
2584
2580
|
onBlur: C,
|
|
2585
|
-
className:
|
|
2586
|
-
rows:
|
|
2587
|
-
showLimit:
|
|
2588
|
-
wrapperProps:
|
|
2589
|
-
labelProps:
|
|
2590
|
-
helperProps:
|
|
2591
|
-
showGrip:
|
|
2592
|
-
minHeight:
|
|
2593
|
-
resize:
|
|
2594
|
-
...
|
|
2595
|
-
},
|
|
2596
|
-
const
|
|
2597
|
-
|
|
2598
|
-
},
|
|
2599
|
-
|
|
2581
|
+
className: v,
|
|
2582
|
+
rows: S = 1,
|
|
2583
|
+
showLimit: M = !1,
|
|
2584
|
+
wrapperProps: T,
|
|
2585
|
+
labelProps: N,
|
|
2586
|
+
helperProps: k,
|
|
2587
|
+
showGrip: P,
|
|
2588
|
+
minHeight: D,
|
|
2589
|
+
resize: B,
|
|
2590
|
+
...x
|
|
2591
|
+
}, F) => {
|
|
2592
|
+
const O = (t || "").length > 0, R = w && !!a && (c === ie.SMALL || D !== 48), W = b && O && !(f || p), H = () => {
|
|
2593
|
+
r == null || r("");
|
|
2594
|
+
}, Q = W ? /* @__PURE__ */ o.jsx(
|
|
2595
|
+
Dt,
|
|
2600
2596
|
{
|
|
2601
|
-
size:
|
|
2597
|
+
size: Es(c),
|
|
2602
2598
|
color: "var(--icon-secondary)",
|
|
2603
2599
|
onClick: H,
|
|
2604
2600
|
style: { cursor: "pointer" },
|
|
2605
2601
|
"data-testid": "x-icon"
|
|
2606
2602
|
}
|
|
2607
|
-
) : h, G =
|
|
2608
|
-
rows:
|
|
2609
|
-
minLength:
|
|
2603
|
+
) : h, G = Ms(c, D, R && O, B), te = ws(c, D), ae = {
|
|
2604
|
+
rows: S,
|
|
2605
|
+
minLength: i,
|
|
2610
2606
|
autoFocus: s,
|
|
2611
|
-
resize:
|
|
2607
|
+
resize: B,
|
|
2612
2608
|
..._
|
|
2613
2609
|
};
|
|
2614
|
-
return /* @__PURE__ */
|
|
2615
|
-
|
|
2610
|
+
return /* @__PURE__ */ o.jsx(
|
|
2611
|
+
Nt,
|
|
2616
2612
|
{
|
|
2617
|
-
ref:
|
|
2613
|
+
ref: F,
|
|
2618
2614
|
component: "textarea",
|
|
2619
|
-
size:
|
|
2615
|
+
size: te,
|
|
2620
2616
|
error: d,
|
|
2621
2617
|
disabled: f || p,
|
|
2622
2618
|
loading: p,
|
|
2623
2619
|
helper: g,
|
|
2624
|
-
suffix:
|
|
2625
|
-
id:
|
|
2626
|
-
showLabel:
|
|
2627
|
-
onFocus:
|
|
2620
|
+
suffix: Q,
|
|
2621
|
+
id: m,
|
|
2622
|
+
showLabel: R,
|
|
2623
|
+
onFocus: E,
|
|
2628
2624
|
onBlur: C,
|
|
2629
|
-
onChange:
|
|
2625
|
+
onChange: r,
|
|
2630
2626
|
value: t || "",
|
|
2631
|
-
placeholder:
|
|
2632
|
-
className:
|
|
2633
|
-
"data-floating-label":
|
|
2627
|
+
placeholder: a,
|
|
2628
|
+
className: v,
|
|
2629
|
+
"data-floating-label": R,
|
|
2634
2630
|
wrapperStyles: G.wrapperStyles,
|
|
2635
2631
|
floatingLabelStyles: G.floatingLabelStyles,
|
|
2636
2632
|
suffixStyles: G.suffixStyles,
|
|
2637
2633
|
textareaStyles: G.textareaStyles,
|
|
2638
|
-
wrapperProps:
|
|
2639
|
-
labelProps:
|
|
2640
|
-
helperProps:
|
|
2641
|
-
showLimit:
|
|
2634
|
+
wrapperProps: T,
|
|
2635
|
+
labelProps: N,
|
|
2636
|
+
helperProps: k,
|
|
2637
|
+
showLimit: M && (D === 112 || c === ie.SMALL),
|
|
2642
2638
|
maxLength: n,
|
|
2643
|
-
inputProps:
|
|
2644
|
-
resize:
|
|
2645
|
-
showGrip:
|
|
2646
|
-
...
|
|
2639
|
+
inputProps: ae,
|
|
2640
|
+
resize: B,
|
|
2641
|
+
showGrip: P,
|
|
2642
|
+
...x
|
|
2647
2643
|
}
|
|
2648
2644
|
);
|
|
2649
2645
|
}
|
|
2650
|
-
),
|
|
2651
|
-
helper:
|
|
2646
|
+
), $s = "_helper_1vhgl_16", Qe = {
|
|
2647
|
+
helper: $s,
|
|
2652
2648
|
"helper--error": "_helper--error_1vhgl_27",
|
|
2653
2649
|
"helper--disabled": "_helper--disabled_1vhgl_32"
|
|
2654
|
-
},
|
|
2650
|
+
}, Xs = ({
|
|
2655
2651
|
title: t,
|
|
2656
|
-
error:
|
|
2657
|
-
className:
|
|
2652
|
+
error: r,
|
|
2653
|
+
className: a = "",
|
|
2658
2654
|
style: n,
|
|
2659
|
-
disabled:
|
|
2655
|
+
disabled: i = !1,
|
|
2660
2656
|
"data-testid": s,
|
|
2661
2657
|
"aria-label": c,
|
|
2662
2658
|
"aria-describedby": _
|
|
2663
2659
|
}) => {
|
|
2664
|
-
const d = !!
|
|
2665
|
-
|
|
2666
|
-
d &&
|
|
2667
|
-
|
|
2668
|
-
|
|
2669
|
-
), p =
|
|
2670
|
-
return /* @__PURE__ */
|
|
2660
|
+
const d = !!r, f = K(
|
|
2661
|
+
Qe.helper,
|
|
2662
|
+
d && Qe["helper--error"],
|
|
2663
|
+
i && Qe["helper--disabled"],
|
|
2664
|
+
a
|
|
2665
|
+
), p = i ? t : r || t;
|
|
2666
|
+
return /* @__PURE__ */ o.jsx(
|
|
2671
2667
|
"div",
|
|
2672
2668
|
{
|
|
2673
2669
|
className: f,
|
|
@@ -2675,25 +2671,124 @@ const St = Object.assign(ds, {
|
|
|
2675
2671
|
"data-testid": s,
|
|
2676
2672
|
"aria-label": c,
|
|
2677
2673
|
"aria-describedby": _,
|
|
2678
|
-
children: /* @__PURE__ */
|
|
2674
|
+
children: /* @__PURE__ */ o.jsx("p", { children: p })
|
|
2675
|
+
}
|
|
2676
|
+
);
|
|
2677
|
+
}, Is = "_segmentedControl_1yvz7_5", js = "_segment_1yvz7_5", Rs = "_activeSegmentIndicator_1yvz7_51", ks = "_stretched_1yvz7_82", Ts = "_s_1yvz7_5", As = "_icon_1yvz7_90", Ns = "_label_1yvz7_94", Ds = "_m_1yvz7_98", Os = "_l_1yvz7_94", Te = {
|
|
2678
|
+
segmentedControl: Is,
|
|
2679
|
+
segment: js,
|
|
2680
|
+
activeSegmentIndicator: Rs,
|
|
2681
|
+
stretched: ks,
|
|
2682
|
+
s: Ts,
|
|
2683
|
+
icon: As,
|
|
2684
|
+
label: Ns,
|
|
2685
|
+
m: Ds,
|
|
2686
|
+
l: Os
|
|
2687
|
+
}, It = {
|
|
2688
|
+
s: Le["typography-label-3-regular"],
|
|
2689
|
+
m: Le["typography-label-2-regular"],
|
|
2690
|
+
l: Le["typography-label-2-regular"]
|
|
2691
|
+
}, Qs = (t) => {
|
|
2692
|
+
var v;
|
|
2693
|
+
const {
|
|
2694
|
+
className: r,
|
|
2695
|
+
defaultValue: a,
|
|
2696
|
+
value: n,
|
|
2697
|
+
size: i = "m",
|
|
2698
|
+
segments: s,
|
|
2699
|
+
stretched: c,
|
|
2700
|
+
mode: _ = "label",
|
|
2701
|
+
onChange: d
|
|
2702
|
+
} = t, f = at(), [p, g] = Me(a || s[0].value), [h, b] = Me({ width: 0, left: 0 }), m = ze(null);
|
|
2703
|
+
ve(() => {
|
|
2704
|
+
n && g(n);
|
|
2705
|
+
}, [n]), ve(() => {
|
|
2706
|
+
w();
|
|
2707
|
+
}, [p, s, i, c, _]);
|
|
2708
|
+
const w = () => {
|
|
2709
|
+
if (!(m != null && m.current)) return;
|
|
2710
|
+
const S = m.current.querySelector(
|
|
2711
|
+
'[data-is-active-segment="true"]'
|
|
2712
|
+
);
|
|
2713
|
+
S && b({
|
|
2714
|
+
width: S.offsetWidth,
|
|
2715
|
+
left: S.offsetLeft
|
|
2716
|
+
});
|
|
2717
|
+
}, E = (v = s.find((S) => S.value === p)) == null ? void 0 : v.label, C = (S) => {
|
|
2718
|
+
g(S), d == null || d(S);
|
|
2719
|
+
};
|
|
2720
|
+
return (s == null ? void 0 : s.length) === 0 ? null : /* @__PURE__ */ o.jsxs(
|
|
2721
|
+
"div",
|
|
2722
|
+
{
|
|
2723
|
+
className: K(
|
|
2724
|
+
Te.segmentedControl,
|
|
2725
|
+
Te[i],
|
|
2726
|
+
Te[_],
|
|
2727
|
+
{
|
|
2728
|
+
[Te.stretched]: c
|
|
2729
|
+
},
|
|
2730
|
+
r
|
|
2731
|
+
),
|
|
2732
|
+
"data-testid": "segmented-control-container",
|
|
2733
|
+
ref: m,
|
|
2734
|
+
children: [
|
|
2735
|
+
s == null ? void 0 : s.map(({ label: S, value: M }, T) => {
|
|
2736
|
+
const N = () => C(M);
|
|
2737
|
+
return /* @__PURE__ */ o.jsxs(tt, { children: [
|
|
2738
|
+
/* @__PURE__ */ o.jsx(
|
|
2739
|
+
"input",
|
|
2740
|
+
{
|
|
2741
|
+
id: f + JSON.stringify(M),
|
|
2742
|
+
value: JSON.stringify(M),
|
|
2743
|
+
type: "radio",
|
|
2744
|
+
checked: p === M,
|
|
2745
|
+
onClick: N
|
|
2746
|
+
}
|
|
2747
|
+
),
|
|
2748
|
+
/* @__PURE__ */ o.jsx(
|
|
2749
|
+
"label",
|
|
2750
|
+
{
|
|
2751
|
+
"data-is-active-segment": p === M,
|
|
2752
|
+
className: K(Te.segment, It[i]),
|
|
2753
|
+
htmlFor: f + JSON.stringify(M),
|
|
2754
|
+
"data-testid": "segmented-control-segment",
|
|
2755
|
+
children: S
|
|
2756
|
+
}
|
|
2757
|
+
)
|
|
2758
|
+
] }, rt(JSON.stringify(M)) + T);
|
|
2759
|
+
}),
|
|
2760
|
+
/* @__PURE__ */ o.jsx(
|
|
2761
|
+
"div",
|
|
2762
|
+
{
|
|
2763
|
+
className: K(Te.activeSegmentIndicator, It[i]),
|
|
2764
|
+
"data-testid": "segmented-control-active-segment",
|
|
2765
|
+
style: {
|
|
2766
|
+
width: h.width,
|
|
2767
|
+
left: h.left
|
|
2768
|
+
},
|
|
2769
|
+
children: E
|
|
2770
|
+
}
|
|
2771
|
+
)
|
|
2772
|
+
]
|
|
2679
2773
|
}
|
|
2680
2774
|
);
|
|
2681
2775
|
};
|
|
2682
2776
|
export {
|
|
2683
|
-
|
|
2684
|
-
|
|
2685
|
-
|
|
2686
|
-
|
|
2687
|
-
|
|
2688
|
-
|
|
2689
|
-
|
|
2690
|
-
|
|
2691
|
-
|
|
2692
|
-
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
|
|
2696
|
-
|
|
2697
|
-
|
|
2698
|
-
|
|
2777
|
+
Bs as Avatar,
|
|
2778
|
+
Fs as Badge,
|
|
2779
|
+
Ps as Button,
|
|
2780
|
+
qs as Checkbox,
|
|
2781
|
+
Hs as ConfigProvider,
|
|
2782
|
+
Xs as Helper,
|
|
2783
|
+
Vs as Image,
|
|
2784
|
+
Hr as Loader,
|
|
2785
|
+
Qs as SegmentedControl,
|
|
2786
|
+
Zs as Tag,
|
|
2787
|
+
Ks as TextArea,
|
|
2788
|
+
Js as TextInput,
|
|
2789
|
+
Ys as Typography,
|
|
2790
|
+
Zr as enUS,
|
|
2791
|
+
Gs as ruRU,
|
|
2792
|
+
qr as useConfig,
|
|
2793
|
+
Ws as useLocale
|
|
2699
2794
|
};
|