skillgrid 0.0.34 → 0.0.36
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/Checkbox/Checkbox.type.d.ts +5 -0
- package/dist/components/Image/Image.type.d.ts +10 -1
- package/dist/components/Loader/Loader.type.d.ts +1 -1
- package/dist/components/SegmentedControl/SegmentedControl.type.d.ts +8 -4
- package/dist/components/SegmentedControl/index.d.ts +1 -1
- package/dist/components/Tabs/Tabs.type.d.ts +1 -1
- package/dist/index.cjs.js +11 -11
- package/dist/index.css +1 -1
- package/dist/index.es.js +1386 -1340
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import * as Je from "react";
|
|
2
|
-
import
|
|
2
|
+
import me, { forwardRef as U, Fragment as Ht, useState as ft, useEffect as gt, useRef as Vt, useCallback as jt, useMemo as Qe, createContext as tr, useContext as er, useLayoutEffect as rr, useImperativeHandle as Ar, useId as be } from "react";
|
|
3
3
|
import { clsx as k } from "clsx";
|
|
4
|
-
import { useFloating as Or, useTransitionStyles as
|
|
5
|
-
import
|
|
4
|
+
import { useFloating as Or, useTransitionStyles as Pr, useDismiss as zr, useRole as Dr, useInteractions as Fr, useMergeRefs as Wr, FloatingPortal as qr, FloatingOverlay as Hr, FloatingFocusManager as Vr } from "@floating-ui/react";
|
|
5
|
+
import Zr from "rc-tooltip";
|
|
6
6
|
import './index.css';function Xr(t) {
|
|
7
7
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
8
8
|
}
|
|
9
|
-
var
|
|
9
|
+
var Gt = { exports: {} }, zt = {};
|
|
10
10
|
/**
|
|
11
11
|
* @license React
|
|
12
12
|
* react-jsx-runtime.production.min.js
|
|
@@ -18,17 +18,17 @@ var Yt = { exports: {} }, Pt = {};
|
|
|
18
18
|
*/
|
|
19
19
|
var Me;
|
|
20
20
|
function Yr() {
|
|
21
|
-
if (Me) return
|
|
21
|
+
if (Me) return zt;
|
|
22
22
|
Me = 1;
|
|
23
|
-
var t =
|
|
24
|
-
function l(c,
|
|
25
|
-
var d, g = {}, b = null,
|
|
26
|
-
f !== void 0 && (b = "" + f),
|
|
27
|
-
for (d in
|
|
28
|
-
if (c && c.defaultProps) for (d in
|
|
29
|
-
return { $$typeof: r, type: c, key: b, ref:
|
|
23
|
+
var t = me, r = Symbol.for("react.element"), n = Symbol.for("react.fragment"), a = 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 };
|
|
24
|
+
function l(c, _, f) {
|
|
25
|
+
var d, g = {}, b = null, m = null;
|
|
26
|
+
f !== void 0 && (b = "" + f), _.key !== void 0 && (b = "" + _.key), _.ref !== void 0 && (m = _.ref);
|
|
27
|
+
for (d in _) a.call(_, d) && !s.hasOwnProperty(d) && (g[d] = _[d]);
|
|
28
|
+
if (c && c.defaultProps) for (d in _ = c.defaultProps, _) g[d] === void 0 && (g[d] = _[d]);
|
|
29
|
+
return { $$typeof: r, type: c, key: b, ref: m, props: g, _owner: i.current };
|
|
30
30
|
}
|
|
31
|
-
return
|
|
31
|
+
return zt.Fragment = n, zt.jsx = l, zt.jsxs = l, zt;
|
|
32
32
|
}
|
|
33
33
|
var Dt = {};
|
|
34
34
|
/**
|
|
@@ -43,54 +43,54 @@ var Dt = {};
|
|
|
43
43
|
var Be;
|
|
44
44
|
function Gr() {
|
|
45
45
|
return Be || (Be = 1, process.env.NODE_ENV !== "production" && function() {
|
|
46
|
-
var t =
|
|
47
|
-
function
|
|
46
|
+
var t = me, r = Symbol.for("react.element"), n = Symbol.for("react.portal"), a = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), c = Symbol.for("react.context"), _ = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), g = Symbol.for("react.memo"), b = Symbol.for("react.lazy"), m = Symbol.for("react.offscreen"), C = Symbol.iterator, y = "@@iterator";
|
|
47
|
+
function h(e) {
|
|
48
48
|
if (e === null || typeof e != "object")
|
|
49
49
|
return null;
|
|
50
|
-
var
|
|
51
|
-
return typeof
|
|
50
|
+
var p = C && e[C] || e[y];
|
|
51
|
+
return typeof p == "function" ? p : null;
|
|
52
52
|
}
|
|
53
53
|
var x = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
54
|
-
function
|
|
54
|
+
function u(e) {
|
|
55
55
|
{
|
|
56
|
-
for (var
|
|
57
|
-
v[
|
|
56
|
+
for (var p = arguments.length, v = new Array(p > 1 ? p - 1 : 0), $ = 1; $ < p; $++)
|
|
57
|
+
v[$ - 1] = arguments[$];
|
|
58
58
|
w("error", e, v);
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
|
-
function w(e,
|
|
61
|
+
function w(e, p, v) {
|
|
62
62
|
{
|
|
63
|
-
var
|
|
64
|
-
|
|
65
|
-
var
|
|
66
|
-
return String(
|
|
63
|
+
var $ = x.ReactDebugCurrentFrame, P = $.getStackAddendum();
|
|
64
|
+
P !== "" && (p += "%s", v = v.concat([P]));
|
|
65
|
+
var F = v.map(function(B) {
|
|
66
|
+
return String(B);
|
|
67
67
|
});
|
|
68
|
-
|
|
68
|
+
F.unshift("Warning: " + p), Function.prototype.apply.call(console[e], console, F);
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
|
-
var S = !1,
|
|
72
|
-
|
|
73
|
-
function
|
|
74
|
-
return !!(typeof e == "string" || typeof e == "function" || e === a || e === s ||
|
|
71
|
+
var S = !1, E = !1, j = !1, N = !1, T = !1, R;
|
|
72
|
+
R = Symbol.for("react.module.reference");
|
|
73
|
+
function O(e) {
|
|
74
|
+
return !!(typeof e == "string" || typeof e == "function" || e === a || e === s || T || e === i || e === f || e === d || N || e === m || S || E || j || typeof e == "object" && e !== null && (e.$$typeof === b || e.$$typeof === g || e.$$typeof === l || e.$$typeof === c || e.$$typeof === _ || // This needs to include all possible module reference object
|
|
75
75
|
// types supported by any Flight configuration anywhere since
|
|
76
76
|
// we don't know which Flight build this will end up being used
|
|
77
77
|
// with.
|
|
78
|
-
e.$$typeof ===
|
|
78
|
+
e.$$typeof === R || e.getModuleId !== void 0));
|
|
79
79
|
}
|
|
80
|
-
function
|
|
81
|
-
var
|
|
82
|
-
if (
|
|
83
|
-
return
|
|
84
|
-
var
|
|
85
|
-
return
|
|
80
|
+
function D(e, p, v) {
|
|
81
|
+
var $ = e.displayName;
|
|
82
|
+
if ($)
|
|
83
|
+
return $;
|
|
84
|
+
var P = p.displayName || p.name || "";
|
|
85
|
+
return P !== "" ? v + "(" + P + ")" : v;
|
|
86
86
|
}
|
|
87
|
-
function
|
|
87
|
+
function W(e) {
|
|
88
88
|
return e.displayName || "Context";
|
|
89
89
|
}
|
|
90
90
|
function L(e) {
|
|
91
91
|
if (e == null)
|
|
92
92
|
return null;
|
|
93
|
-
if (typeof e.tag == "number" &&
|
|
93
|
+
if (typeof e.tag == "number" && u("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
94
94
|
return e.displayName || e.name || null;
|
|
95
95
|
if (typeof e == "string")
|
|
96
96
|
return e;
|
|
@@ -111,20 +111,20 @@ function Gr() {
|
|
|
111
111
|
if (typeof e == "object")
|
|
112
112
|
switch (e.$$typeof) {
|
|
113
113
|
case c:
|
|
114
|
-
var
|
|
115
|
-
return
|
|
114
|
+
var p = e;
|
|
115
|
+
return W(p) + ".Consumer";
|
|
116
116
|
case l:
|
|
117
117
|
var v = e;
|
|
118
|
-
return
|
|
119
|
-
case
|
|
120
|
-
return
|
|
118
|
+
return W(v._context) + ".Provider";
|
|
119
|
+
case _:
|
|
120
|
+
return D(e, e.render, "ForwardRef");
|
|
121
121
|
case g:
|
|
122
|
-
var
|
|
123
|
-
return
|
|
122
|
+
var $ = e.displayName || null;
|
|
123
|
+
return $ !== null ? $ : L(e.type) || "Memo";
|
|
124
124
|
case b: {
|
|
125
|
-
var
|
|
125
|
+
var P = e, F = P._payload, B = P._init;
|
|
126
126
|
try {
|
|
127
|
-
return L(
|
|
127
|
+
return L(B(F));
|
|
128
128
|
} catch {
|
|
129
129
|
return null;
|
|
130
130
|
}
|
|
@@ -132,14 +132,14 @@ function Gr() {
|
|
|
132
132
|
}
|
|
133
133
|
return null;
|
|
134
134
|
}
|
|
135
|
-
var
|
|
135
|
+
var A = Object.assign, q = 0, H, Z, K, ot, rt, J, at;
|
|
136
136
|
function st() {
|
|
137
137
|
}
|
|
138
138
|
st.__reactDisabledLog = !0;
|
|
139
139
|
function wt() {
|
|
140
140
|
{
|
|
141
|
-
if (
|
|
142
|
-
H = console.log,
|
|
141
|
+
if (q === 0) {
|
|
142
|
+
H = console.log, Z = console.info, K = console.warn, ot = console.error, rt = console.group, J = console.groupCollapsed, at = console.groupEnd;
|
|
143
143
|
var e = {
|
|
144
144
|
configurable: !0,
|
|
145
145
|
enumerable: !0,
|
|
@@ -156,164 +156,164 @@ function Gr() {
|
|
|
156
156
|
groupEnd: e
|
|
157
157
|
});
|
|
158
158
|
}
|
|
159
|
-
|
|
159
|
+
q++;
|
|
160
160
|
}
|
|
161
161
|
}
|
|
162
|
-
function
|
|
162
|
+
function yt() {
|
|
163
163
|
{
|
|
164
|
-
if (
|
|
164
|
+
if (q--, q === 0) {
|
|
165
165
|
var e = {
|
|
166
166
|
configurable: !0,
|
|
167
167
|
enumerable: !0,
|
|
168
168
|
writable: !0
|
|
169
169
|
};
|
|
170
170
|
Object.defineProperties(console, {
|
|
171
|
-
log:
|
|
171
|
+
log: A({}, e, {
|
|
172
172
|
value: H
|
|
173
173
|
}),
|
|
174
|
-
info:
|
|
175
|
-
value:
|
|
174
|
+
info: A({}, e, {
|
|
175
|
+
value: Z
|
|
176
176
|
}),
|
|
177
|
-
warn:
|
|
177
|
+
warn: A({}, e, {
|
|
178
178
|
value: K
|
|
179
179
|
}),
|
|
180
|
-
error:
|
|
180
|
+
error: A({}, e, {
|
|
181
181
|
value: ot
|
|
182
182
|
}),
|
|
183
|
-
group:
|
|
183
|
+
group: A({}, e, {
|
|
184
184
|
value: rt
|
|
185
185
|
}),
|
|
186
|
-
groupCollapsed:
|
|
186
|
+
groupCollapsed: A({}, e, {
|
|
187
187
|
value: J
|
|
188
188
|
}),
|
|
189
|
-
groupEnd:
|
|
189
|
+
groupEnd: A({}, e, {
|
|
190
190
|
value: at
|
|
191
191
|
})
|
|
192
192
|
});
|
|
193
193
|
}
|
|
194
|
-
|
|
194
|
+
q < 0 && u("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
195
195
|
}
|
|
196
196
|
}
|
|
197
197
|
var it = x.ReactCurrentDispatcher, Tt;
|
|
198
|
-
function
|
|
198
|
+
function ut(e, p, v) {
|
|
199
199
|
{
|
|
200
200
|
if (Tt === void 0)
|
|
201
201
|
try {
|
|
202
202
|
throw Error();
|
|
203
|
-
} catch (
|
|
204
|
-
var
|
|
205
|
-
Tt =
|
|
203
|
+
} catch (P) {
|
|
204
|
+
var $ = P.stack.trim().match(/\n( *(at )?)/);
|
|
205
|
+
Tt = $ && $[1] || "";
|
|
206
206
|
}
|
|
207
207
|
return `
|
|
208
208
|
` + Tt + e;
|
|
209
209
|
}
|
|
210
210
|
}
|
|
211
|
-
var Zt = !1,
|
|
211
|
+
var Zt = !1, Mt;
|
|
212
212
|
{
|
|
213
|
-
var
|
|
214
|
-
|
|
213
|
+
var re = typeof WeakMap == "function" ? WeakMap : Map;
|
|
214
|
+
Mt = new re();
|
|
215
215
|
}
|
|
216
|
-
function
|
|
216
|
+
function Xt(e, p) {
|
|
217
217
|
if (!e || Zt)
|
|
218
218
|
return "";
|
|
219
219
|
{
|
|
220
|
-
var v =
|
|
220
|
+
var v = Mt.get(e);
|
|
221
221
|
if (v !== void 0)
|
|
222
222
|
return v;
|
|
223
223
|
}
|
|
224
|
-
var
|
|
224
|
+
var $;
|
|
225
225
|
Zt = !0;
|
|
226
|
-
var
|
|
226
|
+
var P = Error.prepareStackTrace;
|
|
227
227
|
Error.prepareStackTrace = void 0;
|
|
228
|
-
var
|
|
229
|
-
|
|
228
|
+
var F;
|
|
229
|
+
F = it.current, it.current = null, wt();
|
|
230
230
|
try {
|
|
231
|
-
if (
|
|
232
|
-
var
|
|
231
|
+
if (p) {
|
|
232
|
+
var B = function() {
|
|
233
233
|
throw Error();
|
|
234
234
|
};
|
|
235
|
-
if (Object.defineProperty(
|
|
235
|
+
if (Object.defineProperty(B.prototype, "props", {
|
|
236
236
|
set: function() {
|
|
237
237
|
throw Error();
|
|
238
238
|
}
|
|
239
239
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
240
240
|
try {
|
|
241
|
-
Reflect.construct(
|
|
241
|
+
Reflect.construct(B, []);
|
|
242
242
|
} catch (lt) {
|
|
243
|
-
|
|
243
|
+
$ = lt;
|
|
244
244
|
}
|
|
245
|
-
Reflect.construct(e, [],
|
|
245
|
+
Reflect.construct(e, [], B);
|
|
246
246
|
} else {
|
|
247
247
|
try {
|
|
248
|
-
|
|
248
|
+
B.call();
|
|
249
249
|
} catch (lt) {
|
|
250
|
-
|
|
250
|
+
$ = lt;
|
|
251
251
|
}
|
|
252
|
-
e.call(
|
|
252
|
+
e.call(B.prototype);
|
|
253
253
|
}
|
|
254
254
|
} else {
|
|
255
255
|
try {
|
|
256
256
|
throw Error();
|
|
257
257
|
} catch (lt) {
|
|
258
|
-
|
|
258
|
+
$ = lt;
|
|
259
259
|
}
|
|
260
260
|
e();
|
|
261
261
|
}
|
|
262
262
|
} catch (lt) {
|
|
263
|
-
if (lt &&
|
|
264
|
-
for (var
|
|
265
|
-
`), nt =
|
|
266
|
-
`), X =
|
|
263
|
+
if (lt && $ && typeof lt.stack == "string") {
|
|
264
|
+
for (var I = lt.stack.split(`
|
|
265
|
+
`), nt = $.stack.split(`
|
|
266
|
+
`), X = I.length - 1, Y = nt.length - 1; X >= 1 && Y >= 0 && I[X] !== nt[Y]; )
|
|
267
267
|
Y--;
|
|
268
268
|
for (; X >= 1 && Y >= 0; X--, Y--)
|
|
269
|
-
if (
|
|
269
|
+
if (I[X] !== nt[Y]) {
|
|
270
270
|
if (X !== 1 || Y !== 1)
|
|
271
271
|
do
|
|
272
|
-
if (X--, Y--, Y < 0 ||
|
|
272
|
+
if (X--, Y--, Y < 0 || I[X] !== nt[Y]) {
|
|
273
273
|
var ht = `
|
|
274
|
-
` +
|
|
275
|
-
return e.displayName && ht.includes("<anonymous>") && (ht = ht.replace("<anonymous>", e.displayName)), typeof e == "function" &&
|
|
274
|
+
` + I[X].replace(" at new ", " at ");
|
|
275
|
+
return e.displayName && ht.includes("<anonymous>") && (ht = ht.replace("<anonymous>", e.displayName)), typeof e == "function" && Mt.set(e, ht), ht;
|
|
276
276
|
}
|
|
277
277
|
while (X >= 1 && Y >= 0);
|
|
278
278
|
break;
|
|
279
279
|
}
|
|
280
280
|
}
|
|
281
281
|
} finally {
|
|
282
|
-
Zt = !1, it.current =
|
|
282
|
+
Zt = !1, it.current = F, yt(), Error.prepareStackTrace = P;
|
|
283
283
|
}
|
|
284
|
-
var
|
|
285
|
-
return typeof e == "function" &&
|
|
284
|
+
var At = e ? e.displayName || e.name : "", Nt = At ? ut(At) : "";
|
|
285
|
+
return typeof e == "function" && Mt.set(e, Nt), Nt;
|
|
286
286
|
}
|
|
287
|
-
function
|
|
288
|
-
return
|
|
287
|
+
function ne(e, p, v) {
|
|
288
|
+
return Xt(e, !1);
|
|
289
289
|
}
|
|
290
|
-
function
|
|
291
|
-
var
|
|
292
|
-
return !!(
|
|
290
|
+
function oe(e) {
|
|
291
|
+
var p = e.prototype;
|
|
292
|
+
return !!(p && p.isReactComponent);
|
|
293
293
|
}
|
|
294
|
-
function Q(e,
|
|
294
|
+
function Q(e, p, v) {
|
|
295
295
|
if (e == null)
|
|
296
296
|
return "";
|
|
297
297
|
if (typeof e == "function")
|
|
298
|
-
return
|
|
298
|
+
return Xt(e, oe(e));
|
|
299
299
|
if (typeof e == "string")
|
|
300
|
-
return
|
|
300
|
+
return ut(e);
|
|
301
301
|
switch (e) {
|
|
302
302
|
case f:
|
|
303
|
-
return
|
|
303
|
+
return ut("Suspense");
|
|
304
304
|
case d:
|
|
305
|
-
return
|
|
305
|
+
return ut("SuspenseList");
|
|
306
306
|
}
|
|
307
307
|
if (typeof e == "object")
|
|
308
308
|
switch (e.$$typeof) {
|
|
309
|
-
case
|
|
310
|
-
return
|
|
309
|
+
case _:
|
|
310
|
+
return ne(e.render);
|
|
311
311
|
case g:
|
|
312
|
-
return Q(e.type,
|
|
312
|
+
return Q(e.type, p, v);
|
|
313
313
|
case b: {
|
|
314
|
-
var
|
|
314
|
+
var $ = e, P = $._payload, F = $._init;
|
|
315
315
|
try {
|
|
316
|
-
return Q(P
|
|
316
|
+
return Q(F(P), p, v);
|
|
317
317
|
} catch {
|
|
318
318
|
}
|
|
319
319
|
}
|
|
@@ -321,43 +321,43 @@ function Gr() {
|
|
|
321
321
|
return "";
|
|
322
322
|
}
|
|
323
323
|
var tt = Object.prototype.hasOwnProperty, vt = {}, ve = x.ReactDebugCurrentFrame;
|
|
324
|
-
function
|
|
324
|
+
function Yt(e) {
|
|
325
325
|
if (e) {
|
|
326
|
-
var
|
|
326
|
+
var p = e._owner, v = Q(e.type, e._source, p ? p.type : null);
|
|
327
327
|
ve.setExtraStackFrame(v);
|
|
328
328
|
} else
|
|
329
329
|
ve.setExtraStackFrame(null);
|
|
330
330
|
}
|
|
331
|
-
function
|
|
331
|
+
function fr(e, p, v, $, P) {
|
|
332
332
|
{
|
|
333
|
-
var
|
|
334
|
-
for (var
|
|
335
|
-
if (
|
|
336
|
-
var
|
|
333
|
+
var F = Function.call.bind(tt);
|
|
334
|
+
for (var B in e)
|
|
335
|
+
if (F(e, B)) {
|
|
336
|
+
var I = void 0;
|
|
337
337
|
try {
|
|
338
|
-
if (typeof e[
|
|
339
|
-
var nt = Error((
|
|
338
|
+
if (typeof e[B] != "function") {
|
|
339
|
+
var nt = Error(($ || "React class") + ": " + v + " type `" + B + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[B] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
340
340
|
throw nt.name = "Invariant Violation", nt;
|
|
341
341
|
}
|
|
342
|
-
|
|
342
|
+
I = e[B](p, B, $, v, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
343
343
|
} catch (X) {
|
|
344
|
-
|
|
344
|
+
I = X;
|
|
345
345
|
}
|
|
346
|
-
|
|
346
|
+
I && !(I instanceof Error) && (Yt(P), u("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", $ || "React class", v, B, typeof I), Yt(null)), I instanceof Error && !(I.message in vt) && (vt[I.message] = !0, Yt(P), u("Failed %s type: %s", v, I.message), Yt(null));
|
|
347
347
|
}
|
|
348
348
|
}
|
|
349
349
|
}
|
|
350
|
-
var
|
|
351
|
-
function
|
|
352
|
-
return
|
|
350
|
+
var gr = Array.isArray;
|
|
351
|
+
function ae(e) {
|
|
352
|
+
return gr(e);
|
|
353
353
|
}
|
|
354
|
-
function
|
|
354
|
+
function hr(e) {
|
|
355
355
|
{
|
|
356
|
-
var
|
|
356
|
+
var p = typeof Symbol == "function" && Symbol.toStringTag, v = p && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
357
357
|
return v;
|
|
358
358
|
}
|
|
359
359
|
}
|
|
360
|
-
function
|
|
360
|
+
function mr(e) {
|
|
361
361
|
try {
|
|
362
362
|
return Ce(e), !1;
|
|
363
363
|
} catch {
|
|
@@ -368,38 +368,38 @@ function Gr() {
|
|
|
368
368
|
return "" + e;
|
|
369
369
|
}
|
|
370
370
|
function we(e) {
|
|
371
|
-
if (
|
|
372
|
-
return
|
|
371
|
+
if (mr(e))
|
|
372
|
+
return u("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", hr(e)), Ce(e);
|
|
373
373
|
}
|
|
374
|
-
var
|
|
374
|
+
var ke = x.ReactCurrentOwner, br = {
|
|
375
375
|
key: !0,
|
|
376
376
|
ref: !0,
|
|
377
377
|
__self: !0,
|
|
378
378
|
__source: !0
|
|
379
|
-
},
|
|
380
|
-
function
|
|
379
|
+
}, Se, Le;
|
|
380
|
+
function xr(e) {
|
|
381
381
|
if (tt.call(e, "ref")) {
|
|
382
|
-
var
|
|
383
|
-
if (
|
|
382
|
+
var p = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
383
|
+
if (p && p.isReactWarning)
|
|
384
384
|
return !1;
|
|
385
385
|
}
|
|
386
386
|
return e.ref !== void 0;
|
|
387
387
|
}
|
|
388
388
|
function yr(e) {
|
|
389
389
|
if (tt.call(e, "key")) {
|
|
390
|
-
var
|
|
391
|
-
if (
|
|
390
|
+
var p = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
391
|
+
if (p && p.isReactWarning)
|
|
392
392
|
return !1;
|
|
393
393
|
}
|
|
394
394
|
return e.key !== void 0;
|
|
395
395
|
}
|
|
396
|
-
function
|
|
397
|
-
typeof e.ref == "string" &&
|
|
396
|
+
function vr(e, p) {
|
|
397
|
+
typeof e.ref == "string" && ke.current;
|
|
398
398
|
}
|
|
399
|
-
function
|
|
399
|
+
function Cr(e, p) {
|
|
400
400
|
{
|
|
401
401
|
var v = function() {
|
|
402
|
-
|
|
402
|
+
Se || (Se = !0, u("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", p));
|
|
403
403
|
};
|
|
404
404
|
v.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
405
405
|
get: v,
|
|
@@ -407,10 +407,10 @@ function Gr() {
|
|
|
407
407
|
});
|
|
408
408
|
}
|
|
409
409
|
}
|
|
410
|
-
function
|
|
410
|
+
function wr(e, p) {
|
|
411
411
|
{
|
|
412
412
|
var v = function() {
|
|
413
|
-
Le || (Le = !0,
|
|
413
|
+
Le || (Le = !0, u("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", p));
|
|
414
414
|
};
|
|
415
415
|
v.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
416
416
|
get: v,
|
|
@@ -418,70 +418,70 @@ function Gr() {
|
|
|
418
418
|
});
|
|
419
419
|
}
|
|
420
420
|
}
|
|
421
|
-
var
|
|
422
|
-
var
|
|
421
|
+
var kr = function(e, p, v, $, P, F, B) {
|
|
422
|
+
var I = {
|
|
423
423
|
// This tag allows us to uniquely identify this as a React Element
|
|
424
424
|
$$typeof: r,
|
|
425
425
|
// Built-in properties that belong on the element
|
|
426
426
|
type: e,
|
|
427
|
-
key:
|
|
427
|
+
key: p,
|
|
428
428
|
ref: v,
|
|
429
|
-
props:
|
|
429
|
+
props: B,
|
|
430
430
|
// Record the component responsible for creating this element.
|
|
431
|
-
_owner:
|
|
431
|
+
_owner: F
|
|
432
432
|
};
|
|
433
|
-
return
|
|
433
|
+
return I._store = {}, Object.defineProperty(I._store, "validated", {
|
|
434
434
|
configurable: !1,
|
|
435
435
|
enumerable: !1,
|
|
436
436
|
writable: !0,
|
|
437
437
|
value: !1
|
|
438
|
-
}), Object.defineProperty(
|
|
438
|
+
}), Object.defineProperty(I, "_self", {
|
|
439
439
|
configurable: !1,
|
|
440
440
|
enumerable: !1,
|
|
441
441
|
writable: !1,
|
|
442
|
-
value:
|
|
443
|
-
}), Object.defineProperty(
|
|
442
|
+
value: $
|
|
443
|
+
}), Object.defineProperty(I, "_source", {
|
|
444
444
|
configurable: !1,
|
|
445
445
|
enumerable: !1,
|
|
446
446
|
writable: !1,
|
|
447
|
-
value:
|
|
448
|
-
}), Object.freeze && (Object.freeze(
|
|
447
|
+
value: P
|
|
448
|
+
}), Object.freeze && (Object.freeze(I.props), Object.freeze(I)), I;
|
|
449
449
|
};
|
|
450
|
-
function Sr(e,
|
|
450
|
+
function Sr(e, p, v, $, P) {
|
|
451
451
|
{
|
|
452
|
-
var
|
|
453
|
-
v !== void 0 && (we(v),
|
|
454
|
-
for (
|
|
455
|
-
tt.call(
|
|
452
|
+
var F, B = {}, I = null, nt = null;
|
|
453
|
+
v !== void 0 && (we(v), I = "" + v), yr(p) && (we(p.key), I = "" + p.key), xr(p) && (nt = p.ref, vr(p, P));
|
|
454
|
+
for (F in p)
|
|
455
|
+
tt.call(p, F) && !br.hasOwnProperty(F) && (B[F] = p[F]);
|
|
456
456
|
if (e && e.defaultProps) {
|
|
457
457
|
var X = e.defaultProps;
|
|
458
|
-
for (
|
|
459
|
-
|
|
458
|
+
for (F in X)
|
|
459
|
+
B[F] === void 0 && (B[F] = X[F]);
|
|
460
460
|
}
|
|
461
|
-
if (
|
|
461
|
+
if (I || nt) {
|
|
462
462
|
var Y = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
463
|
-
|
|
463
|
+
I && Cr(B, Y), nt && wr(B, Y);
|
|
464
464
|
}
|
|
465
|
-
return
|
|
465
|
+
return kr(e, I, nt, P, $, ke.current, B);
|
|
466
466
|
}
|
|
467
467
|
}
|
|
468
|
-
var
|
|
469
|
-
function
|
|
468
|
+
var se = x.ReactCurrentOwner, je = x.ReactDebugCurrentFrame;
|
|
469
|
+
function Bt(e) {
|
|
470
470
|
if (e) {
|
|
471
|
-
var
|
|
471
|
+
var p = e._owner, v = Q(e.type, e._source, p ? p.type : null);
|
|
472
472
|
je.setExtraStackFrame(v);
|
|
473
473
|
} else
|
|
474
474
|
je.setExtraStackFrame(null);
|
|
475
475
|
}
|
|
476
|
-
var
|
|
477
|
-
|
|
478
|
-
function
|
|
476
|
+
var ie;
|
|
477
|
+
ie = !1;
|
|
478
|
+
function le(e) {
|
|
479
479
|
return typeof e == "object" && e !== null && e.$$typeof === r;
|
|
480
480
|
}
|
|
481
481
|
function $e() {
|
|
482
482
|
{
|
|
483
|
-
if (
|
|
484
|
-
var e = L(
|
|
483
|
+
if (se.current) {
|
|
484
|
+
var e = L(se.current.type);
|
|
485
485
|
if (e)
|
|
486
486
|
return `
|
|
487
487
|
|
|
@@ -490,152 +490,152 @@ Check the render method of \`` + e + "`.";
|
|
|
490
490
|
return "";
|
|
491
491
|
}
|
|
492
492
|
}
|
|
493
|
-
function
|
|
493
|
+
function Lr(e) {
|
|
494
494
|
return "";
|
|
495
495
|
}
|
|
496
496
|
var Te = {};
|
|
497
|
-
function
|
|
497
|
+
function jr(e) {
|
|
498
498
|
{
|
|
499
|
-
var
|
|
500
|
-
if (!
|
|
499
|
+
var p = $e();
|
|
500
|
+
if (!p) {
|
|
501
501
|
var v = typeof e == "string" ? e : e.displayName || e.name;
|
|
502
|
-
v && (
|
|
502
|
+
v && (p = `
|
|
503
503
|
|
|
504
504
|
Check the top-level render call using <` + v + ">.");
|
|
505
505
|
}
|
|
506
|
-
return
|
|
506
|
+
return p;
|
|
507
507
|
}
|
|
508
508
|
}
|
|
509
|
-
function Ee(e,
|
|
509
|
+
function Ee(e, p) {
|
|
510
510
|
{
|
|
511
511
|
if (!e._store || e._store.validated || e.key != null)
|
|
512
512
|
return;
|
|
513
513
|
e._store.validated = !0;
|
|
514
|
-
var v =
|
|
514
|
+
var v = jr(p);
|
|
515
515
|
if (Te[v])
|
|
516
516
|
return;
|
|
517
517
|
Te[v] = !0;
|
|
518
|
-
var
|
|
519
|
-
e && e._owner && e._owner !==
|
|
518
|
+
var $ = "";
|
|
519
|
+
e && e._owner && e._owner !== se.current && ($ = " It was passed a child from " + L(e._owner.type) + "."), Bt(e), u('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', v, $), Bt(null);
|
|
520
520
|
}
|
|
521
521
|
}
|
|
522
|
-
function
|
|
522
|
+
function Ne(e, p) {
|
|
523
523
|
{
|
|
524
524
|
if (typeof e != "object")
|
|
525
525
|
return;
|
|
526
|
-
if (
|
|
526
|
+
if (ae(e))
|
|
527
527
|
for (var v = 0; v < e.length; v++) {
|
|
528
|
-
var
|
|
529
|
-
|
|
528
|
+
var $ = e[v];
|
|
529
|
+
le($) && Ee($, p);
|
|
530
530
|
}
|
|
531
|
-
else if (
|
|
531
|
+
else if (le(e))
|
|
532
532
|
e._store && (e._store.validated = !0);
|
|
533
533
|
else if (e) {
|
|
534
|
-
var
|
|
535
|
-
if (typeof
|
|
536
|
-
for (var
|
|
537
|
-
|
|
534
|
+
var P = h(e);
|
|
535
|
+
if (typeof P == "function" && P !== e.entries)
|
|
536
|
+
for (var F = P.call(e), B; !(B = F.next()).done; )
|
|
537
|
+
le(B.value) && Ee(B.value, p);
|
|
538
538
|
}
|
|
539
539
|
}
|
|
540
540
|
}
|
|
541
|
-
function
|
|
541
|
+
function $r(e) {
|
|
542
542
|
{
|
|
543
|
-
var
|
|
544
|
-
if (
|
|
543
|
+
var p = e.type;
|
|
544
|
+
if (p == null || typeof p == "string")
|
|
545
545
|
return;
|
|
546
546
|
var v;
|
|
547
|
-
if (typeof
|
|
548
|
-
v =
|
|
549
|
-
else if (typeof
|
|
547
|
+
if (typeof p == "function")
|
|
548
|
+
v = p.propTypes;
|
|
549
|
+
else if (typeof p == "object" && (p.$$typeof === _ || // Note: Memo only checks outer props here.
|
|
550
550
|
// Inner props are checked in the reconciler.
|
|
551
|
-
|
|
552
|
-
v =
|
|
551
|
+
p.$$typeof === g))
|
|
552
|
+
v = p.propTypes;
|
|
553
553
|
else
|
|
554
554
|
return;
|
|
555
555
|
if (v) {
|
|
556
|
-
var
|
|
557
|
-
|
|
558
|
-
} else if (
|
|
559
|
-
|
|
560
|
-
var
|
|
561
|
-
|
|
556
|
+
var $ = L(p);
|
|
557
|
+
fr(v, e.props, "prop", $, e);
|
|
558
|
+
} else if (p.PropTypes !== void 0 && !ie) {
|
|
559
|
+
ie = !0;
|
|
560
|
+
var P = L(p);
|
|
561
|
+
u("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", P || "Unknown");
|
|
562
562
|
}
|
|
563
|
-
typeof
|
|
563
|
+
typeof p.getDefaultProps == "function" && !p.getDefaultProps.isReactClassApproved && u("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
564
564
|
}
|
|
565
565
|
}
|
|
566
|
-
function
|
|
566
|
+
function Tr(e) {
|
|
567
567
|
{
|
|
568
|
-
for (var
|
|
569
|
-
var
|
|
570
|
-
if (
|
|
571
|
-
|
|
568
|
+
for (var p = Object.keys(e.props), v = 0; v < p.length; v++) {
|
|
569
|
+
var $ = p[v];
|
|
570
|
+
if ($ !== "children" && $ !== "key") {
|
|
571
|
+
Bt(e), u("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", $), Bt(null);
|
|
572
572
|
break;
|
|
573
573
|
}
|
|
574
574
|
}
|
|
575
|
-
e.ref !== null && (
|
|
575
|
+
e.ref !== null && (Bt(e), u("Invalid attribute `ref` supplied to `React.Fragment`."), Bt(null));
|
|
576
576
|
}
|
|
577
577
|
}
|
|
578
|
-
var
|
|
579
|
-
function Ie(e,
|
|
578
|
+
var Re = {};
|
|
579
|
+
function Ie(e, p, v, $, P, F) {
|
|
580
580
|
{
|
|
581
|
-
var
|
|
582
|
-
if (!
|
|
583
|
-
var
|
|
584
|
-
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (
|
|
585
|
-
var nt =
|
|
586
|
-
nt ?
|
|
581
|
+
var B = O(e);
|
|
582
|
+
if (!B) {
|
|
583
|
+
var I = "";
|
|
584
|
+
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (I += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
585
|
+
var nt = Lr();
|
|
586
|
+
nt ? I += nt : I += $e();
|
|
587
587
|
var X;
|
|
588
|
-
e === null ? X = "null" :
|
|
588
|
+
e === null ? X = "null" : ae(e) ? X = "array" : e !== void 0 && e.$$typeof === r ? (X = "<" + (L(e.type) || "Unknown") + " />", I = " Did you accidentally export a JSX literal instead of a component?") : X = typeof e, u("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", X, I);
|
|
589
589
|
}
|
|
590
|
-
var Y = Sr(e,
|
|
590
|
+
var Y = Sr(e, p, v, P, F);
|
|
591
591
|
if (Y == null)
|
|
592
592
|
return Y;
|
|
593
|
-
if (
|
|
594
|
-
var ht =
|
|
593
|
+
if (B) {
|
|
594
|
+
var ht = p.children;
|
|
595
595
|
if (ht !== void 0)
|
|
596
|
-
if (
|
|
597
|
-
if (
|
|
598
|
-
for (var
|
|
599
|
-
|
|
596
|
+
if ($)
|
|
597
|
+
if (ae(ht)) {
|
|
598
|
+
for (var At = 0; At < ht.length; At++)
|
|
599
|
+
Ne(ht[At], e);
|
|
600
600
|
Object.freeze && Object.freeze(ht);
|
|
601
601
|
} else
|
|
602
|
-
|
|
602
|
+
u("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
603
603
|
else
|
|
604
|
-
|
|
604
|
+
Ne(ht, e);
|
|
605
605
|
}
|
|
606
|
-
if (tt.call(
|
|
607
|
-
var
|
|
608
|
-
return
|
|
609
|
-
}),
|
|
610
|
-
if (!
|
|
611
|
-
var
|
|
612
|
-
|
|
606
|
+
if (tt.call(p, "key")) {
|
|
607
|
+
var Nt = L(e), lt = Object.keys(p).filter(function(Br) {
|
|
608
|
+
return Br !== "key";
|
|
609
|
+
}), ce = lt.length > 0 ? "{key: someKey, " + lt.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
610
|
+
if (!Re[Nt + ce]) {
|
|
611
|
+
var Mr = lt.length > 0 ? "{" + lt.join(": ..., ") + ": ...}" : "{}";
|
|
612
|
+
u(`A props object containing a "key" prop is being spread into JSX:
|
|
613
613
|
let props = %s;
|
|
614
614
|
<%s {...props} />
|
|
615
615
|
React keys must be passed directly to JSX without using spread:
|
|
616
616
|
let props = %s;
|
|
617
|
-
<%s key={someKey} {...props} />`,
|
|
617
|
+
<%s key={someKey} {...props} />`, ce, Nt, Mr, Nt), Re[Nt + ce] = !0;
|
|
618
618
|
}
|
|
619
619
|
}
|
|
620
|
-
return e === a ?
|
|
620
|
+
return e === a ? Tr(Y) : $r(Y), Y;
|
|
621
621
|
}
|
|
622
622
|
}
|
|
623
|
-
function
|
|
624
|
-
return Ie(e,
|
|
623
|
+
function Er(e, p, v) {
|
|
624
|
+
return Ie(e, p, v, !0);
|
|
625
625
|
}
|
|
626
|
-
function
|
|
627
|
-
return Ie(e,
|
|
626
|
+
function Nr(e, p, v) {
|
|
627
|
+
return Ie(e, p, v, !1);
|
|
628
628
|
}
|
|
629
|
-
var Rr =
|
|
630
|
-
Dt.Fragment = a, Dt.jsx = Rr, Dt.jsxs =
|
|
629
|
+
var Rr = Nr, Ir = Er;
|
|
630
|
+
Dt.Fragment = a, Dt.jsx = Rr, Dt.jsxs = Ir;
|
|
631
631
|
}()), Dt;
|
|
632
632
|
}
|
|
633
633
|
var Ae;
|
|
634
634
|
function Ur() {
|
|
635
|
-
return Ae || (Ae = 1, process.env.NODE_ENV === "production" ?
|
|
635
|
+
return Ae || (Ae = 1, process.env.NODE_ENV === "production" ? Gt.exports = Yr() : Gt.exports = Gr()), Gt.exports;
|
|
636
636
|
}
|
|
637
637
|
var o = Ur();
|
|
638
|
-
const Kr = (t) => t.as === "a", Jr = (t) => t.as === void 0 || t.as === "button", Oe = (t) => t.displayAs === void 0 || t.displayAs === "button", Qr = (t) => t.displayAs === "link", tn = "_button_11kkg_1", en = "_link_11kkg_22", rn = "_disabled_11kkg_27", nn = "_loading_11kkg_27", on = "_neutral_11kkg_59", an = "_accent_11kkg_63", sn = "_positive_11kkg_67", ln = "_negative_11kkg_71", cn = "_contrast_11kkg_75", dn = "_primary_11kkg_79", un = "_secondary_11kkg_80",
|
|
638
|
+
const Kr = (t) => t.as === "a", Jr = (t) => t.as === void 0 || t.as === "button", Oe = (t) => t.displayAs === void 0 || t.displayAs === "button", Qr = (t) => t.displayAs === "link", tn = "_button_11kkg_1", en = "_link_11kkg_22", rn = "_disabled_11kkg_27", nn = "_loading_11kkg_27", on = "_neutral_11kkg_59", an = "_accent_11kkg_63", sn = "_positive_11kkg_67", ln = "_negative_11kkg_71", cn = "_contrast_11kkg_75", dn = "_primary_11kkg_79", un = "_secondary_11kkg_80", _n = "_tertiary_11kkg_81", pn = "_gray_11kkg_91", fn = "_spaceBetween_11kkg_119", gn = "_rightGroup_11kkg_119", hn = "_withSubcaption_11kkg_127", mn = "_label_11kkg_139", bn = "_icon_11kkg_148", xn = "_labelText_11kkg_153", yn = "_isLink_11kkg_159", vn = "_iconOnly_11kkg_174", Cn = "_stretched_11kkg_190", wn = "_postfix_11kkg_195", kn = "_underline_11kkg_225", Sn = "_backButton_11kkg_428", Ln = "_warning_11kkg_1159", jn = "_subcaption_11kkg_1389", $n = "_content_11kkg_1394", Tn = "_contentHidden_11kkg_1398", En = "_loaderWrapper_11kkg_1402", Nn = "_l_11kkg_22", Rn = "_m_11kkg_1441", In = "_s_11kkg_80", Mn = "_xs_11kkg_1484", Bn = "_noPaddings_11kkg_1506", An = "_iconRight_11kkg_1542", On = "_spin_11kkg_1", z = {
|
|
639
639
|
button: tn,
|
|
640
640
|
link: en,
|
|
641
641
|
disabled: rn,
|
|
@@ -647,33 +647,33 @@ const Kr = (t) => t.as === "a", Jr = (t) => t.as === void 0 || t.as === "button"
|
|
|
647
647
|
contrast: cn,
|
|
648
648
|
primary: dn,
|
|
649
649
|
secondary: un,
|
|
650
|
-
tertiary:
|
|
651
|
-
gray:
|
|
650
|
+
tertiary: _n,
|
|
651
|
+
gray: pn,
|
|
652
652
|
spaceBetween: fn,
|
|
653
653
|
rightGroup: gn,
|
|
654
654
|
withSubcaption: hn,
|
|
655
|
-
label:
|
|
656
|
-
icon:
|
|
657
|
-
labelText:
|
|
658
|
-
isLink:
|
|
655
|
+
label: mn,
|
|
656
|
+
icon: bn,
|
|
657
|
+
labelText: xn,
|
|
658
|
+
isLink: yn,
|
|
659
659
|
iconOnly: vn,
|
|
660
660
|
stretched: Cn,
|
|
661
661
|
postfix: wn,
|
|
662
|
-
underline:
|
|
663
|
-
backButton:
|
|
662
|
+
underline: kn,
|
|
663
|
+
backButton: Sn,
|
|
664
664
|
warning: Ln,
|
|
665
665
|
subcaption: jn,
|
|
666
666
|
content: $n,
|
|
667
667
|
contentHidden: Tn,
|
|
668
668
|
loaderWrapper: En,
|
|
669
|
-
l:
|
|
670
|
-
m:
|
|
669
|
+
l: Nn,
|
|
670
|
+
m: Rn,
|
|
671
671
|
s: In,
|
|
672
672
|
xs: Mn,
|
|
673
673
|
noPaddings: Bn,
|
|
674
674
|
iconRight: An,
|
|
675
675
|
spin: On
|
|
676
|
-
},
|
|
676
|
+
}, Pn = /* @__PURE__ */ new Set([
|
|
677
677
|
"mode",
|
|
678
678
|
"size",
|
|
679
679
|
"buttonStyle",
|
|
@@ -692,18 +692,18 @@ const Kr = (t) => t.as === "a", Jr = (t) => t.as === void 0 || t.as === "button"
|
|
|
692
692
|
"isExternal",
|
|
693
693
|
"asBackButton",
|
|
694
694
|
"paddings"
|
|
695
|
-
]),
|
|
695
|
+
]), Pe = (t) => {
|
|
696
696
|
const r = {};
|
|
697
697
|
for (const n in t)
|
|
698
|
-
|
|
698
|
+
Pn.has(n) || (r[n] = t[n]);
|
|
699
699
|
return r;
|
|
700
|
-
},
|
|
700
|
+
}, zn = {
|
|
701
701
|
l: "typography-subtitle-1-semibold",
|
|
702
702
|
m: "typography-label-2-regular",
|
|
703
703
|
s: "typography-label-3-regular"
|
|
704
704
|
};
|
|
705
705
|
function Dn(t) {
|
|
706
|
-
return
|
|
706
|
+
return zn[t] || "typography-label-2-regular";
|
|
707
707
|
}
|
|
708
708
|
const Fn = (t, r, n) => t ? "gray" : r === "primary" ? {
|
|
709
709
|
contrast: "neutral",
|
|
@@ -732,12 +732,12 @@ const Fn = (t, r, n) => t ? "gray" : r === "primary" ? {
|
|
|
732
732
|
"typography-paragraph-2-regular": "_typography-paragraph-2-regular_1lyxn_176",
|
|
733
733
|
"typography-paragraph-3-regular": "_typography-paragraph-3-regular_1lyxn_185",
|
|
734
734
|
"typography-paragraph-4-regular": "_typography-paragraph-4-regular_1lyxn_194"
|
|
735
|
-
}, Wn = "_loader_isv17_1",
|
|
735
|
+
}, Wn = "_loader_isv17_1", qn = "_spin_isv17_1", Hn = "_accent_isv17_19", Vn = "_neutral_isv17_23", Zn = "_positive_isv17_27", Xn = "_negative_isv17_31", Yn = "_gray_isv17_35", Gn = "_special_isv17_39", Un = "_contrast_isv17_43", Kn = "_container_isv17_47", Jn = "_overlay_isv17_57", qt = {
|
|
736
736
|
loader: Wn,
|
|
737
|
-
spin:
|
|
738
|
-
accent:
|
|
739
|
-
neutral:
|
|
740
|
-
positive:
|
|
737
|
+
spin: qn,
|
|
738
|
+
accent: Hn,
|
|
739
|
+
neutral: Vn,
|
|
740
|
+
positive: Zn,
|
|
741
741
|
negative: Xn,
|
|
742
742
|
gray: Yn,
|
|
743
743
|
special: Gn,
|
|
@@ -750,15 +750,15 @@ const Fn = (t, r, n) => t ? "gray" : r === "primary" ? {
|
|
|
750
750
|
"size-64": "_size-64_isv17_84",
|
|
751
751
|
"size-96": "_size-96_isv17_88"
|
|
752
752
|
};
|
|
753
|
-
var
|
|
753
|
+
var de = { exports: {} };
|
|
754
754
|
/*!
|
|
755
755
|
Copyright (c) 2018 Jed Watson.
|
|
756
756
|
Licensed under the MIT License (MIT), see
|
|
757
757
|
http://jedwatson.github.io/classnames
|
|
758
758
|
*/
|
|
759
|
-
var
|
|
759
|
+
var ze;
|
|
760
760
|
function Qn() {
|
|
761
|
-
return
|
|
761
|
+
return ze || (ze = 1, function(t) {
|
|
762
762
|
(function() {
|
|
763
763
|
var r = {}.hasOwnProperty;
|
|
764
764
|
function n() {
|
|
@@ -787,10 +787,10 @@ function Qn() {
|
|
|
787
787
|
}
|
|
788
788
|
t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
|
|
789
789
|
})();
|
|
790
|
-
}(
|
|
790
|
+
}(de)), de.exports;
|
|
791
791
|
}
|
|
792
792
|
var to = Qn();
|
|
793
|
-
const
|
|
793
|
+
const It = /* @__PURE__ */ Xr(to), nr = U(
|
|
794
794
|
({
|
|
795
795
|
size: t = 24,
|
|
796
796
|
variant: r = "accent",
|
|
@@ -799,10 +799,10 @@ const Et = /* @__PURE__ */ Xr(to), rr = U(
|
|
|
799
799
|
style: i,
|
|
800
800
|
...s
|
|
801
801
|
}, l) => {
|
|
802
|
-
const c =
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
802
|
+
const c = It(
|
|
803
|
+
qt.loader,
|
|
804
|
+
qt[r],
|
|
805
|
+
qt[`size-${t}`],
|
|
806
806
|
n
|
|
807
807
|
);
|
|
808
808
|
return /* @__PURE__ */ o.jsx(
|
|
@@ -836,20 +836,20 @@ const Et = /* @__PURE__ */ Xr(to), rr = U(
|
|
|
836
836
|
children: s,
|
|
837
837
|
className: l,
|
|
838
838
|
style: c,
|
|
839
|
-
"data-testid":
|
|
839
|
+
"data-testid": _,
|
|
840
840
|
...f
|
|
841
|
-
} = t, d =
|
|
842
|
-
return /* @__PURE__ */ o.jsxs("div", { ref: r, className: d, style: c, "data-testid":
|
|
841
|
+
} = t, d = It(qt.container, l);
|
|
842
|
+
return /* @__PURE__ */ o.jsxs("div", { ref: r, className: d, style: c, "data-testid": _, ...f, children: [
|
|
843
843
|
s,
|
|
844
|
-
n && /* @__PURE__ */ o.jsx("div", { className:
|
|
844
|
+
n && /* @__PURE__ */ o.jsx("div", { className: qt.overlay, children: /* @__PURE__ */ o.jsx(nr, { size: a, variant: i, "data-testid": `${_}-spinner` }) })
|
|
845
845
|
] });
|
|
846
|
-
}),
|
|
846
|
+
}), or = U((t, r) => t.children ? /* @__PURE__ */ o.jsx(
|
|
847
847
|
eo,
|
|
848
848
|
{
|
|
849
849
|
ref: r,
|
|
850
850
|
...t
|
|
851
851
|
}
|
|
852
|
-
) : /* @__PURE__ */ o.jsx(
|
|
852
|
+
) : /* @__PURE__ */ o.jsx(nr, { ref: r, ...t })), ro = (t) => /* @__PURE__ */ o.jsx(
|
|
853
853
|
"svg",
|
|
854
854
|
{
|
|
855
855
|
width: "100%",
|
|
@@ -908,7 +908,7 @@ const Et = /* @__PURE__ */ Xr(to), rr = U(
|
|
|
908
908
|
size: s,
|
|
909
909
|
isAsButton: l
|
|
910
910
|
}) => {
|
|
911
|
-
const c = !!(i && l && s === "l"),
|
|
911
|
+
const c = !!(i && l && s === "l"), _ = !!(!n && l && r), f = l && !!(c && !n && a || a && !c);
|
|
912
912
|
return /* @__PURE__ */ o.jsxs(Ht, { children: [
|
|
913
913
|
c && n && /* @__PURE__ */ o.jsxs(Ht, { children: [
|
|
914
914
|
/* @__PURE__ */ o.jsx("span", { "data-testid": "button-label", className: k(z.label, z.labelText), children: n }),
|
|
@@ -926,7 +926,7 @@ const Et = /* @__PURE__ */ Xr(to), rr = U(
|
|
|
926
926
|
/* @__PURE__ */ o.jsx("span", { className: k(z.labelText, { [z.isLink]: !l }), children: n }),
|
|
927
927
|
!l && t && /* @__PURE__ */ o.jsx("span", { "data-testid": "button-icon", className: k(z.icon, z.iconRight), children: t })
|
|
928
928
|
] }),
|
|
929
|
-
|
|
929
|
+
_ && /* @__PURE__ */ o.jsx("span", { "data-testid": "button-icon", className: z.icon, children: l ? r : t }),
|
|
930
930
|
f && /* @__PURE__ */ o.jsx("div", { "data-testid": "button-right-group", className: z.rightGroup, children: /* @__PURE__ */ o.jsx(
|
|
931
931
|
"span",
|
|
932
932
|
{
|
|
@@ -936,7 +936,7 @@ const Et = /* @__PURE__ */ Xr(to), rr = U(
|
|
|
936
936
|
}
|
|
937
937
|
) })
|
|
938
938
|
] });
|
|
939
|
-
},
|
|
939
|
+
}, xe = U((t, r) => {
|
|
940
940
|
const {
|
|
941
941
|
mode: n = "primary",
|
|
942
942
|
size: a = "m",
|
|
@@ -944,61 +944,61 @@ const Et = /* @__PURE__ */ Xr(to), rr = U(
|
|
|
944
944
|
disabled: s = !1,
|
|
945
945
|
className: l,
|
|
946
946
|
children: c,
|
|
947
|
-
tabIndex:
|
|
948
|
-
} = t, f = n === "tertiary", d = Oe(t), g = Qr(t), b = f && "paddings" in t ? t.paddings ?? !0 : !0,
|
|
947
|
+
tabIndex: _
|
|
948
|
+
} = t, f = n === "tertiary", d = Oe(t), g = Qr(t), b = f && "paddings" in t ? t.paddings ?? !0 : !0, m = d ? t.subcaption : void 0, C = d ? t.postfix : void 0, y = d ? t.stretched : void 0, h = !(g && t.size === void 0), x = g && h ? t.iconLeft : void 0, u = g && h ? t.iconRight : void 0, w = !!(d && "loading" in t && t.loading), S = d ? s : s || w, E = !S && !w, j = d ? t.iconLeft : void 0, N = !!(!c && (d && j && !C || g && u)), T = typeof y == "object" ? y.justify === "space-between" : void 0, R = ao(a), O = G[R], D = g ? Dn(t.size ?? "m") : void 0, W = D ? G[D] : void 0, L = Fn(S, n, i), A = S || w ? -1 : _, q = k(
|
|
949
949
|
z.button,
|
|
950
950
|
z[a],
|
|
951
951
|
z[n],
|
|
952
952
|
z[i],
|
|
953
|
-
g &&
|
|
954
|
-
d &&
|
|
953
|
+
g && W,
|
|
954
|
+
d && O,
|
|
955
955
|
{
|
|
956
956
|
[z.disabled]: S,
|
|
957
957
|
[z.loading]: d && "loading" in t && t.loading,
|
|
958
|
-
[z.stretched]:
|
|
959
|
-
[z.spaceBetween]:
|
|
960
|
-
[z.withSubcaption]: !!(
|
|
961
|
-
[z.iconOnly]:
|
|
958
|
+
[z.stretched]: y,
|
|
959
|
+
[z.spaceBetween]: T,
|
|
960
|
+
[z.withSubcaption]: !!(m && a === "l" && c),
|
|
961
|
+
[z.iconOnly]: N,
|
|
962
962
|
[z.link]: g,
|
|
963
963
|
[z.underline]: g && "showUnderline" in t && t.showUnderline,
|
|
964
964
|
[z.noPaddings]: f && d && !b
|
|
965
965
|
},
|
|
966
966
|
l
|
|
967
967
|
), H = {
|
|
968
|
-
iconRight:
|
|
969
|
-
iconLeft: d ?
|
|
968
|
+
iconRight: u,
|
|
969
|
+
iconLeft: d ? j : x,
|
|
970
970
|
children: c,
|
|
971
|
-
postfix:
|
|
972
|
-
subcaption:
|
|
971
|
+
postfix: C,
|
|
972
|
+
subcaption: m,
|
|
973
973
|
size: a,
|
|
974
974
|
isAsButton: d
|
|
975
975
|
};
|
|
976
976
|
if (Kr(t)) {
|
|
977
|
-
const { href:
|
|
977
|
+
const { href: Z, onClick: K, style: ot, target: rt, rel: J, "data-testid": at, ...st } = t, wt = Pe(st), yt = rt ?? (t.isExternal ? "_blank" : void 0);
|
|
978
978
|
let it = J;
|
|
979
|
-
if (
|
|
980
|
-
const
|
|
981
|
-
|
|
979
|
+
if (yt === "_blank") {
|
|
980
|
+
const ut = new Set((J ?? "").split(/\s+/).filter(Boolean));
|
|
981
|
+
ut.add("noopener").add("noreferrer"), it = Array.from(ut).join(" ");
|
|
982
982
|
}
|
|
983
|
-
const Tt = (
|
|
984
|
-
if (!
|
|
985
|
-
|
|
983
|
+
const Tt = (ut) => {
|
|
984
|
+
if (!E) {
|
|
985
|
+
ut.preventDefault();
|
|
986
986
|
return;
|
|
987
987
|
}
|
|
988
|
-
K == null || K(
|
|
988
|
+
K == null || K(ut);
|
|
989
989
|
};
|
|
990
990
|
return /* @__PURE__ */ o.jsx(
|
|
991
991
|
"a",
|
|
992
992
|
{
|
|
993
993
|
ref: r,
|
|
994
|
-
className:
|
|
995
|
-
href:
|
|
996
|
-
tabIndex:
|
|
994
|
+
className: q,
|
|
995
|
+
href: E ? Z : void 0,
|
|
996
|
+
tabIndex: A,
|
|
997
997
|
onClick: Tt,
|
|
998
998
|
"data-testid": at,
|
|
999
999
|
"aria-disabled": S || w,
|
|
1000
1000
|
style: ot,
|
|
1001
|
-
target:
|
|
1001
|
+
target: yt,
|
|
1002
1002
|
rel: it,
|
|
1003
1003
|
...wt,
|
|
1004
1004
|
children: /* @__PURE__ */ o.jsx(De, { ...H })
|
|
@@ -1006,17 +1006,17 @@ const Et = /* @__PURE__ */ Xr(to), rr = U(
|
|
|
1006
1006
|
);
|
|
1007
1007
|
}
|
|
1008
1008
|
if (Jr(t)) {
|
|
1009
|
-
const { type:
|
|
1010
|
-
|
|
1009
|
+
const { type: Z = "button", onClick: K, style: ot, "data-testid": rt, ...J } = t, at = Pe(J), st = a === "l" ? 24 : 16, wt = (yt) => {
|
|
1010
|
+
E && K && K(yt);
|
|
1011
1011
|
};
|
|
1012
1012
|
return /* @__PURE__ */ o.jsxs(
|
|
1013
1013
|
"button",
|
|
1014
1014
|
{
|
|
1015
1015
|
ref: r,
|
|
1016
|
-
type:
|
|
1017
|
-
className:
|
|
1016
|
+
type: Z,
|
|
1017
|
+
className: q,
|
|
1018
1018
|
disabled: S,
|
|
1019
|
-
tabIndex:
|
|
1019
|
+
tabIndex: A,
|
|
1020
1020
|
onClick: wt,
|
|
1021
1021
|
"data-testid": rt,
|
|
1022
1022
|
"aria-disabled": S || w,
|
|
@@ -1025,7 +1025,7 @@ const Et = /* @__PURE__ */ Xr(to), rr = U(
|
|
|
1025
1025
|
children: [
|
|
1026
1026
|
/* @__PURE__ */ o.jsx("div", { className: k(z.content, { [z.contentHidden]: w }), children: /* @__PURE__ */ o.jsx(De, { ...H }) }),
|
|
1027
1027
|
w && /* @__PURE__ */ o.jsx("div", { className: z.loaderWrapper, children: /* @__PURE__ */ o.jsx(
|
|
1028
|
-
|
|
1028
|
+
or,
|
|
1029
1029
|
{
|
|
1030
1030
|
variant: L,
|
|
1031
1031
|
"aria-hidden": "true",
|
|
@@ -1039,8 +1039,8 @@ const Et = /* @__PURE__ */ Xr(to), rr = U(
|
|
|
1039
1039
|
}
|
|
1040
1040
|
return null;
|
|
1041
1041
|
});
|
|
1042
|
-
|
|
1043
|
-
const
|
|
1042
|
+
xe.displayName = "Button";
|
|
1043
|
+
const ar = U(
|
|
1044
1044
|
(t, r) => {
|
|
1045
1045
|
const { iconLeft: n, className: a, ...i } = t, l = {
|
|
1046
1046
|
...i,
|
|
@@ -1051,20 +1051,20 @@ const or = U(
|
|
|
1051
1051
|
iconLeft: n ?? /* @__PURE__ */ o.jsx(no, {}),
|
|
1052
1052
|
className: k(z.backButton, G["typography-subtitle-1-semibold"], a)
|
|
1053
1053
|
};
|
|
1054
|
-
return /* @__PURE__ */ o.jsx(
|
|
1054
|
+
return /* @__PURE__ */ o.jsx(xe, { ref: r, ...l });
|
|
1055
1055
|
}
|
|
1056
1056
|
);
|
|
1057
|
-
|
|
1058
|
-
const ge = Object.assign(
|
|
1059
|
-
Back:
|
|
1060
|
-
}), so = "_avatar_19ug4_18", io = "_clickable_19ug4_40", lo = "_icon_19ug4_57", co = "_disabled_19ug4_62", uo = "_loading_19ug4_67",
|
|
1057
|
+
ar.displayName = "Button.Back";
|
|
1058
|
+
const ge = Object.assign(xe, {
|
|
1059
|
+
Back: ar
|
|
1060
|
+
}), so = "_avatar_19ug4_18", io = "_clickable_19ug4_40", lo = "_icon_19ug4_57", co = "_disabled_19ug4_62", uo = "_loading_19ug4_67", _o = "_image_19ug4_73", po = "_name_19ug4_73", Ct = {
|
|
1061
1061
|
avatar: so,
|
|
1062
1062
|
clickable: io,
|
|
1063
1063
|
icon: lo,
|
|
1064
1064
|
disabled: co,
|
|
1065
1065
|
loading: uo,
|
|
1066
|
-
image:
|
|
1067
|
-
name:
|
|
1066
|
+
image: _o,
|
|
1067
|
+
name: po,
|
|
1068
1068
|
"variant-filled": "_variant-filled_19ug4_125",
|
|
1069
1069
|
"color-brand": "_color-brand_19ug4_130",
|
|
1070
1070
|
"color-red": "_color-red_19ug4_134",
|
|
@@ -1082,7 +1082,7 @@ const ge = Object.assign(ye, {
|
|
|
1082
1082
|
function fo(t) {
|
|
1083
1083
|
return t < Fe ? `+${t}` : `${Fe}+`;
|
|
1084
1084
|
}
|
|
1085
|
-
function
|
|
1085
|
+
function ee(t) {
|
|
1086
1086
|
const r = typeof t == "string" ? t : JSON.stringify(t);
|
|
1087
1087
|
let n = 5381;
|
|
1088
1088
|
for (let a = 0; a < r.length; a++) {
|
|
@@ -1100,18 +1100,18 @@ const go = (t, r, n) => Math.min(Math.max(t, r), n), ho = [
|
|
|
1100
1100
|
"lightblue",
|
|
1101
1101
|
"purple"
|
|
1102
1102
|
];
|
|
1103
|
-
function
|
|
1103
|
+
function mo(t, r = ho) {
|
|
1104
1104
|
if (!t) return "gray";
|
|
1105
|
-
const n =
|
|
1105
|
+
const n = ee(t), a = Math.abs(n) % r.length;
|
|
1106
1106
|
return r[a];
|
|
1107
1107
|
}
|
|
1108
1108
|
const We = 2;
|
|
1109
|
-
function
|
|
1109
|
+
function bo(t) {
|
|
1110
1110
|
if (!t) return "";
|
|
1111
1111
|
const r = t.trim().split(/\s+/);
|
|
1112
1112
|
return r.length === 1 ? t.slice(0, We).toUpperCase() : r.map((n) => n[0]).slice(0, We).join("").toUpperCase();
|
|
1113
1113
|
}
|
|
1114
|
-
const
|
|
1114
|
+
const xo = {
|
|
1115
1115
|
24: 8,
|
|
1116
1116
|
32: 12,
|
|
1117
1117
|
40: 12,
|
|
@@ -1122,8 +1122,8 @@ const yo = {
|
|
|
1122
1122
|
96: 24,
|
|
1123
1123
|
208: 8
|
|
1124
1124
|
};
|
|
1125
|
-
function
|
|
1126
|
-
return r === "circle" ? t / 2 :
|
|
1125
|
+
function yo(t, r) {
|
|
1126
|
+
return r === "circle" ? t / 2 : xo[t] || 12;
|
|
1127
1127
|
}
|
|
1128
1128
|
const vo = {
|
|
1129
1129
|
24: "typography-subtitle-4-semibold",
|
|
@@ -1139,12 +1139,12 @@ const vo = {
|
|
|
1139
1139
|
function Co(t) {
|
|
1140
1140
|
return vo[t] || "typography-subtitle-1-semibold";
|
|
1141
1141
|
}
|
|
1142
|
-
const wo = "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", So = "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", ko = "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", Lo = "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", jo = {
|
|
1142
|
+
const wo = "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", ko = "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", So = "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", Lo = "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", jo = {
|
|
1143
1143
|
male: wo,
|
|
1144
|
-
female:
|
|
1144
|
+
female: ko,
|
|
1145
1145
|
org: Lo,
|
|
1146
|
-
neutral:
|
|
1147
|
-
},
|
|
1146
|
+
neutral: So
|
|
1147
|
+
}, Qt = U((t, r) => {
|
|
1148
1148
|
const {
|
|
1149
1149
|
style: n,
|
|
1150
1150
|
size: a = 40,
|
|
@@ -1152,36 +1152,36 @@ const wo = "data:image/svg+xml,%3csvg%20opacity='0.9'%20preserveAspectRatio='xMi
|
|
|
1152
1152
|
isDisabled: s = !1,
|
|
1153
1153
|
shape: l = "circle",
|
|
1154
1154
|
variant: c = "filled",
|
|
1155
|
-
placeholderType:
|
|
1155
|
+
placeholderType: _ = "neutral",
|
|
1156
1156
|
name: f,
|
|
1157
1157
|
imgSrc: d,
|
|
1158
1158
|
imgAlt: g,
|
|
1159
1159
|
icon: b,
|
|
1160
|
-
imgProps:
|
|
1161
|
-
colorScheme:
|
|
1162
|
-
className:
|
|
1163
|
-
"data-testid":
|
|
1160
|
+
imgProps: m,
|
|
1161
|
+
colorScheme: C,
|
|
1162
|
+
className: y,
|
|
1163
|
+
"data-testid": h,
|
|
1164
1164
|
...x
|
|
1165
|
-
} = t, { onClick:
|
|
1166
|
-
|
|
1167
|
-
d &&
|
|
1165
|
+
} = t, { onClick: u, onPointerDown: w } = x, E = !s && !i && (!!u || !!w), [j, N] = ft(!1);
|
|
1166
|
+
gt(() => {
|
|
1167
|
+
d && N(!1);
|
|
1168
1168
|
}, [d]);
|
|
1169
|
-
const
|
|
1170
|
-
|
|
1169
|
+
const T = d && !j ? "image" : b ? "icon" : f ? "name" : "placeholder", R = C || T === "name" && mo(f) || "gray", O = Co(a), D = yo(a, l), W = k(
|
|
1170
|
+
y,
|
|
1171
1171
|
Ct.avatar,
|
|
1172
1172
|
Ct[`variant-${c}`],
|
|
1173
|
-
Ct[`color-${
|
|
1174
|
-
G[
|
|
1173
|
+
Ct[`color-${R}`],
|
|
1174
|
+
G[O],
|
|
1175
1175
|
{
|
|
1176
1176
|
[Ct.disabled]: s,
|
|
1177
1177
|
[Ct.loading]: i,
|
|
1178
|
-
[Ct.clickable]:
|
|
1178
|
+
[Ct.clickable]: E
|
|
1179
1179
|
}
|
|
1180
1180
|
), L = {
|
|
1181
1181
|
"--avatar-size": `${a}px`,
|
|
1182
|
-
"--avatar-border-radius": `${
|
|
1182
|
+
"--avatar-border-radius": `${D}px`,
|
|
1183
1183
|
...n
|
|
1184
|
-
},
|
|
1184
|
+
}, A = {
|
|
1185
1185
|
icon: () => /* @__PURE__ */ o.jsx("span", { "data-testid": "avatar-icon", title: g || void 0, role: "img", className: Ct.icon, children: b == null ? void 0 : b({}) }),
|
|
1186
1186
|
name: () => /* @__PURE__ */ o.jsx(
|
|
1187
1187
|
"span",
|
|
@@ -1190,16 +1190,16 @@ const wo = "data:image/svg+xml,%3csvg%20opacity='0.9'%20preserveAspectRatio='xMi
|
|
|
1190
1190
|
"data-testid": "avatar-name",
|
|
1191
1191
|
className: Ct.name,
|
|
1192
1192
|
title: g || void 0,
|
|
1193
|
-
children:
|
|
1193
|
+
children: bo(f || "")
|
|
1194
1194
|
}
|
|
1195
1195
|
),
|
|
1196
1196
|
placeholder: () => /* @__PURE__ */ o.jsx(
|
|
1197
1197
|
"img",
|
|
1198
1198
|
{
|
|
1199
|
-
...
|
|
1199
|
+
...m,
|
|
1200
1200
|
"data-testid": "avatar-placeholder",
|
|
1201
1201
|
className: Ct.image,
|
|
1202
|
-
src: jo[
|
|
1202
|
+
src: jo[_],
|
|
1203
1203
|
alt: g || void 0
|
|
1204
1204
|
}
|
|
1205
1205
|
),
|
|
@@ -1207,35 +1207,35 @@ const wo = "data:image/svg+xml,%3csvg%20opacity='0.9'%20preserveAspectRatio='xMi
|
|
|
1207
1207
|
"img",
|
|
1208
1208
|
{
|
|
1209
1209
|
"data-testid": "avatar-image",
|
|
1210
|
-
...
|
|
1210
|
+
...m,
|
|
1211
1211
|
className: Ct.image,
|
|
1212
1212
|
src: d || void 0,
|
|
1213
1213
|
alt: g || void 0,
|
|
1214
|
-
onLoad: () =>
|
|
1214
|
+
onLoad: () => N(!1),
|
|
1215
1215
|
onError: (H) => {
|
|
1216
|
-
var
|
|
1217
|
-
|
|
1216
|
+
var Z;
|
|
1217
|
+
N(!0), (Z = m == null ? void 0 : m.onError) == null || Z.call(m, H);
|
|
1218
1218
|
}
|
|
1219
1219
|
}
|
|
1220
1220
|
)
|
|
1221
|
-
},
|
|
1222
|
-
|
|
1221
|
+
}, q = (H) => {
|
|
1222
|
+
E && (u == null || u(H));
|
|
1223
1223
|
};
|
|
1224
1224
|
return /* @__PURE__ */ o.jsx(
|
|
1225
1225
|
"div",
|
|
1226
1226
|
{
|
|
1227
1227
|
ref: r,
|
|
1228
|
-
onClick:
|
|
1229
|
-
className:
|
|
1228
|
+
onClick: q,
|
|
1229
|
+
className: W,
|
|
1230
1230
|
style: L,
|
|
1231
|
-
"data-testid":
|
|
1231
|
+
"data-testid": h,
|
|
1232
1232
|
"aria-disabled": s || i,
|
|
1233
|
-
children:
|
|
1233
|
+
children: A[T](null)
|
|
1234
1234
|
}
|
|
1235
1235
|
);
|
|
1236
1236
|
}), $o = "_avatarGroup_157g4_1", To = {
|
|
1237
1237
|
avatarGroup: $o
|
|
1238
|
-
}, Eo = (t) => t === "rgba(0, 0, 0, 0)" || t === "transparent" || t.startsWith("rgba") && t.endsWith(", 0)"),
|
|
1238
|
+
}, Eo = (t) => t === "rgba(0, 0, 0, 0)" || t === "transparent" || t.startsWith("rgba") && t.endsWith(", 0)"), No = (t) => {
|
|
1239
1239
|
if (!t) return null;
|
|
1240
1240
|
let r = t;
|
|
1241
1241
|
for (; r; ) {
|
|
@@ -1244,32 +1244,32 @@ const wo = "data:image/svg+xml,%3csvg%20opacity='0.9'%20preserveAspectRatio='xMi
|
|
|
1244
1244
|
r = r.parentElement;
|
|
1245
1245
|
}
|
|
1246
1246
|
return null;
|
|
1247
|
-
},
|
|
1248
|
-
const t = Vt(null), [r, n] =
|
|
1249
|
-
return
|
|
1247
|
+
}, ye = () => {
|
|
1248
|
+
const t = Vt(null), [r, n] = ft(null);
|
|
1249
|
+
return gt(() => {
|
|
1250
1250
|
if (t.current) {
|
|
1251
|
-
const a =
|
|
1251
|
+
const a = No(t.current);
|
|
1252
1252
|
n(a);
|
|
1253
1253
|
}
|
|
1254
1254
|
}, []), { ref: t, bgColor: r };
|
|
1255
1255
|
};
|
|
1256
|
-
function
|
|
1257
|
-
|
|
1256
|
+
function qe(t, r, n) {
|
|
1257
|
+
gt(() => (window.addEventListener(t, r, n), () => window.removeEventListener(t, r, n)), [t, r]);
|
|
1258
1258
|
}
|
|
1259
|
-
const
|
|
1259
|
+
const He = {
|
|
1260
1260
|
passive: !0
|
|
1261
1261
|
};
|
|
1262
|
-
function
|
|
1263
|
-
const [t, r] =
|
|
1262
|
+
function Ro() {
|
|
1263
|
+
const [t, r] = ft({
|
|
1264
1264
|
width: 0,
|
|
1265
1265
|
height: 0
|
|
1266
1266
|
}), n = jt(() => {
|
|
1267
1267
|
r({ width: window.innerWidth || 0, height: window.innerHeight || 0 });
|
|
1268
1268
|
}, []);
|
|
1269
|
-
return
|
|
1269
|
+
return qe("resize", n, He), qe("orientationchange", n, He), gt(n, []), t;
|
|
1270
1270
|
}
|
|
1271
1271
|
function Io(t = 768) {
|
|
1272
|
-
const { width: r } =
|
|
1272
|
+
const { width: r } = Ro();
|
|
1273
1273
|
return Qe(() => r <= t, [r, t]);
|
|
1274
1274
|
}
|
|
1275
1275
|
const Mo = 2, Bo = (t) => {
|
|
@@ -1281,22 +1281,22 @@ const Mo = 2, Bo = (t) => {
|
|
|
1281
1281
|
overflowCount: s = 0,
|
|
1282
1282
|
overflowProps: l,
|
|
1283
1283
|
cutoutBackground: c
|
|
1284
|
-
} = t, f = -(n * a) + Mo, { ref: d, bgColor: g } =
|
|
1284
|
+
} = t, f = -(n * a) + Mo, { ref: d, bgColor: g } = ye(), b = c || g || "#ffffff", m = It(To.avatarGroup), C = {
|
|
1285
1285
|
"--avatar-cutout-bg": b
|
|
1286
1286
|
};
|
|
1287
|
-
return r.length === 0 ? null : /* @__PURE__ */ o.jsxs("div", { className:
|
|
1288
|
-
r.map((
|
|
1289
|
-
if (
|
|
1290
|
-
const x =
|
|
1287
|
+
return r.length === 0 ? null : /* @__PURE__ */ o.jsxs("div", { className: m, ref: d, style: C, children: [
|
|
1288
|
+
r.map((y, h) => {
|
|
1289
|
+
if (y.wrapper) {
|
|
1290
|
+
const x = y.wrapper;
|
|
1291
1291
|
return /* @__PURE__ */ o.jsx(
|
|
1292
1292
|
"div",
|
|
1293
1293
|
{
|
|
1294
1294
|
style: {
|
|
1295
1295
|
marginRight: f
|
|
1296
1296
|
},
|
|
1297
|
-
children: /* @__PURE__ */ o.jsx(x, { children: /* @__PURE__ */ o.jsx(
|
|
1297
|
+
children: /* @__PURE__ */ o.jsx(x, { children: /* @__PURE__ */ o.jsx(Qt, { size: n, shape: i, ...y }) })
|
|
1298
1298
|
},
|
|
1299
|
-
|
|
1299
|
+
ee(y) + h
|
|
1300
1300
|
);
|
|
1301
1301
|
}
|
|
1302
1302
|
return /* @__PURE__ */ o.jsx(
|
|
@@ -1305,13 +1305,13 @@ const Mo = 2, Bo = (t) => {
|
|
|
1305
1305
|
style: {
|
|
1306
1306
|
marginRight: f
|
|
1307
1307
|
},
|
|
1308
|
-
children: /* @__PURE__ */ o.jsx(
|
|
1308
|
+
children: /* @__PURE__ */ o.jsx(Qt, { size: n, shape: i, ...y })
|
|
1309
1309
|
},
|
|
1310
|
-
|
|
1310
|
+
ee(y) + h
|
|
1311
1311
|
);
|
|
1312
1312
|
}),
|
|
1313
1313
|
s > 0 && /* @__PURE__ */ o.jsx("div", { style: { marginRight: f }, children: /* @__PURE__ */ o.jsx(
|
|
1314
|
-
|
|
1314
|
+
Qt,
|
|
1315
1315
|
{
|
|
1316
1316
|
size: n,
|
|
1317
1317
|
shape: i,
|
|
@@ -1322,11 +1322,11 @@ const Mo = 2, Bo = (t) => {
|
|
|
1322
1322
|
}
|
|
1323
1323
|
) })
|
|
1324
1324
|
] });
|
|
1325
|
-
}, Ao = Object.assign(
|
|
1325
|
+
}, Ao = Object.assign(Qt, {
|
|
1326
1326
|
Group: Bo
|
|
1327
|
-
}), Oo = "_overlay_g6rp8_6",
|
|
1327
|
+
}), Oo = "_overlay_g6rp8_6", Po = "_container_g6rp8_20", ue = {
|
|
1328
1328
|
overlay: Oo,
|
|
1329
|
-
container:
|
|
1329
|
+
container: Po,
|
|
1330
1330
|
"placement-default": "_placement-default_g6rp8_34",
|
|
1331
1331
|
"placement-default-stretched": "_placement-default-stretched_g6rp8_41",
|
|
1332
1332
|
"placement-center": "_placement-center_g6rp8_48",
|
|
@@ -1335,7 +1335,7 @@ const Mo = 2, Bo = (t) => {
|
|
|
1335
1335
|
"placement-right-drawer": "_placement-right-drawer_g6rp8_66",
|
|
1336
1336
|
"placement-mobile": "_placement-mobile_g6rp8_71"
|
|
1337
1337
|
};
|
|
1338
|
-
function
|
|
1338
|
+
function zo(t) {
|
|
1339
1339
|
switch (t) {
|
|
1340
1340
|
case "default":
|
|
1341
1341
|
return "top";
|
|
@@ -1384,15 +1384,15 @@ function Fo({
|
|
|
1384
1384
|
disableEscapeKey: i = !1
|
|
1385
1385
|
}) {
|
|
1386
1386
|
const s = jt(
|
|
1387
|
-
(
|
|
1388
|
-
r == null || r(
|
|
1387
|
+
(y) => {
|
|
1388
|
+
r == null || r(y);
|
|
1389
1389
|
},
|
|
1390
1390
|
[r]
|
|
1391
|
-
), l =
|
|
1391
|
+
), l = zo(n), { context: c, refs: _ } = Or({
|
|
1392
1392
|
open: t,
|
|
1393
1393
|
onOpenChange: s,
|
|
1394
1394
|
placement: l
|
|
1395
|
-
}), f = Do(n), { isMounted: d, styles: g } =
|
|
1395
|
+
}), f = Do(n), { isMounted: d, styles: g } = Pr(c, {
|
|
1396
1396
|
duration: 200,
|
|
1397
1397
|
common: {
|
|
1398
1398
|
transitionProperty: "opacity, transform",
|
|
@@ -1402,11 +1402,11 @@ function Fo({
|
|
|
1402
1402
|
opacity: 0
|
|
1403
1403
|
},
|
|
1404
1404
|
...f
|
|
1405
|
-
}), b =
|
|
1405
|
+
}), b = zr(c, {
|
|
1406
1406
|
outsidePress: !a,
|
|
1407
1407
|
outsidePressEvent: "mousedown",
|
|
1408
1408
|
escapeKey: !i
|
|
1409
|
-
}),
|
|
1409
|
+
}), m = Dr(c, { role: "dialog" }), { getFloatingProps: C } = Fr([b, m]);
|
|
1410
1410
|
return Qe(
|
|
1411
1411
|
() => ({
|
|
1412
1412
|
/** Состояние для условного рендеринга с поддержкой анимации закрытия. */
|
|
@@ -1416,14 +1416,14 @@ function Fo({
|
|
|
1416
1416
|
/** Контекст Floating UI. */
|
|
1417
1417
|
context: c,
|
|
1418
1418
|
/** Ссылки на элементы для Floating UI. */
|
|
1419
|
-
refs:
|
|
1419
|
+
refs: _,
|
|
1420
1420
|
/** Пропсы для плавающего элемента. */
|
|
1421
|
-
getFloatingProps:
|
|
1421
|
+
getFloatingProps: C
|
|
1422
1422
|
}),
|
|
1423
|
-
[d, g, c,
|
|
1423
|
+
[d, g, c, _, C]
|
|
1424
1424
|
);
|
|
1425
1425
|
}
|
|
1426
|
-
const
|
|
1426
|
+
const sr = U((t, r) => {
|
|
1427
1427
|
const {
|
|
1428
1428
|
placement: n = "default",
|
|
1429
1429
|
open: a,
|
|
@@ -1431,7 +1431,7 @@ const ar = U((t, r) => {
|
|
|
1431
1431
|
overlayClassName: s,
|
|
1432
1432
|
children: l,
|
|
1433
1433
|
disableOutsideClick: c = !1,
|
|
1434
|
-
disableEscapeKey:
|
|
1434
|
+
disableEscapeKey: _ = !1,
|
|
1435
1435
|
className: f,
|
|
1436
1436
|
style: d,
|
|
1437
1437
|
"data-testid": g,
|
|
@@ -1440,50 +1440,50 @@ const ar = U((t, r) => {
|
|
|
1440
1440
|
a === void 0 && console.error(
|
|
1441
1441
|
"Dialog: компонент должен быть контролируемым. Используйте пропсы open и onOpenChange."
|
|
1442
1442
|
);
|
|
1443
|
-
const
|
|
1443
|
+
const m = Fo({
|
|
1444
1444
|
open: a,
|
|
1445
1445
|
onOpenChange: i,
|
|
1446
1446
|
placement: n,
|
|
1447
1447
|
disableOutsideClick: c,
|
|
1448
|
-
disableEscapeKey:
|
|
1449
|
-
}), { isMounted:
|
|
1450
|
-
return
|
|
1448
|
+
disableEscapeKey: _
|
|
1449
|
+
}), { isMounted: C, transitionStyles: y } = m, h = Wr([r, m.refs.setFloating]);
|
|
1450
|
+
return C ? /* @__PURE__ */ o.jsxs(qr, { children: [
|
|
1451
1451
|
/* @__PURE__ */ o.jsx(
|
|
1452
|
-
|
|
1452
|
+
Hr,
|
|
1453
1453
|
{
|
|
1454
1454
|
"data-testid": "dialog-overlay",
|
|
1455
|
-
className: k(
|
|
1455
|
+
className: k(ue.overlay, s),
|
|
1456
1456
|
lockScroll: !0,
|
|
1457
|
-
style: { opacity:
|
|
1457
|
+
style: { opacity: y == null ? void 0 : y.opacity, transition: y == null ? void 0 : y.transition }
|
|
1458
1458
|
}
|
|
1459
1459
|
),
|
|
1460
|
-
/* @__PURE__ */ o.jsx(
|
|
1460
|
+
/* @__PURE__ */ o.jsx(Vr, { context: m.context, children: /* @__PURE__ */ o.jsx(
|
|
1461
1461
|
"div",
|
|
1462
1462
|
{
|
|
1463
|
-
ref:
|
|
1463
|
+
ref: h,
|
|
1464
1464
|
"aria-modal": "true",
|
|
1465
1465
|
role: "dialog",
|
|
1466
|
-
className: k(f,
|
|
1467
|
-
style: { ...d, ...
|
|
1466
|
+
className: k(f, ue.container, ue[`placement-${n}`]),
|
|
1467
|
+
style: { ...d, ...y },
|
|
1468
1468
|
"data-testid": g,
|
|
1469
|
-
...
|
|
1469
|
+
...m.getFloatingProps(b),
|
|
1470
1470
|
children: l
|
|
1471
1471
|
}
|
|
1472
1472
|
) })
|
|
1473
1473
|
] }) : null;
|
|
1474
|
-
}), Wo = "_container_e56bn_5",
|
|
1474
|
+
}), Wo = "_container_e56bn_5", qo = "_header_e56bn_22", Ho = "_title_e56bn_32", Vo = "_subTitle_e56bn_36", Zo = "_actions_e56bn_40", Xo = "_content_e56bn_62", Yo = "_footer_e56bn_75", Go = "_divider_e56bn_82", mt = {
|
|
1475
1475
|
container: Wo,
|
|
1476
|
-
header:
|
|
1477
|
-
title:
|
|
1478
|
-
subTitle:
|
|
1479
|
-
actions:
|
|
1476
|
+
header: qo,
|
|
1477
|
+
title: Ho,
|
|
1478
|
+
subTitle: Vo,
|
|
1479
|
+
actions: Zo,
|
|
1480
1480
|
"title-text": "_title-text_e56bn_46",
|
|
1481
1481
|
"description-text": "_description-text_e56bn_54",
|
|
1482
1482
|
content: Xo,
|
|
1483
1483
|
"content-for-side-drawer": "_content-for-side-drawer_e56bn_69",
|
|
1484
1484
|
footer: Yo,
|
|
1485
1485
|
divider: Go
|
|
1486
|
-
}, Uo = "_typography_zt7xg_1", Ko = "_disabled_zt7xg_8", Jo = "_primary_zt7xg_13", Qo = "_secondary_zt7xg_18", ta = "_tertiary_zt7xg_23", ea = "_accent_zt7xg_28", ra = "_positive_zt7xg_38", na = "_negative_zt7xg_48", oa = "_warning_zt7xg_58", aa = "_special_zt7xg_68", sa = "_contrast_zt7xg_78",
|
|
1486
|
+
}, Uo = "_typography_zt7xg_1", Ko = "_disabled_zt7xg_8", Jo = "_primary_zt7xg_13", Qo = "_secondary_zt7xg_18", ta = "_tertiary_zt7xg_23", ea = "_accent_zt7xg_28", ra = "_positive_zt7xg_38", na = "_negative_zt7xg_48", oa = "_warning_zt7xg_58", aa = "_special_zt7xg_68", sa = "_contrast_zt7xg_78", Pt = {
|
|
1487
1487
|
typography: Uo,
|
|
1488
1488
|
disabled: Ko,
|
|
1489
1489
|
primary: Jo,
|
|
@@ -1507,7 +1507,7 @@ const ar = U((t, r) => {
|
|
|
1507
1507
|
3: "h3",
|
|
1508
1508
|
4: "h4",
|
|
1509
1509
|
5: "h5"
|
|
1510
|
-
},
|
|
1510
|
+
}, Ve = (t) => {
|
|
1511
1511
|
const r = Je.forwardRef(
|
|
1512
1512
|
({
|
|
1513
1513
|
size: n = 3,
|
|
@@ -1516,24 +1516,24 @@ const ar = U((t, r) => {
|
|
|
1516
1516
|
"data-testid": s,
|
|
1517
1517
|
as: l,
|
|
1518
1518
|
fontWeight: c = "semibold",
|
|
1519
|
-
disabled:
|
|
1519
|
+
disabled: _ = !1,
|
|
1520
1520
|
typographyStyle: f = "primary",
|
|
1521
1521
|
...d
|
|
1522
1522
|
}, g) => {
|
|
1523
|
-
const b = l || ia[n],
|
|
1524
|
-
|
|
1523
|
+
const b = l || ia[n], m = k(
|
|
1524
|
+
Pt.typography,
|
|
1525
1525
|
G[`typography-${t}-${n}-${c}`],
|
|
1526
|
-
|
|
1526
|
+
Pt[f],
|
|
1527
1527
|
{
|
|
1528
|
-
[
|
|
1528
|
+
[Pt.disabled]: _
|
|
1529
1529
|
},
|
|
1530
1530
|
i
|
|
1531
1531
|
);
|
|
1532
|
-
return a ? /* @__PURE__ */ o.jsx(b, { ref: g, className:
|
|
1532
|
+
return a ? /* @__PURE__ */ o.jsx(b, { ref: g, className: m, "data-testid": s, ...d, children: a }) : null;
|
|
1533
1533
|
}
|
|
1534
1534
|
);
|
|
1535
1535
|
return r.displayName = `Typography.${t === "title" ? "Title" : "Subtitle"}`, r;
|
|
1536
|
-
},
|
|
1536
|
+
}, Ze = (t) => {
|
|
1537
1537
|
const r = Je.forwardRef(
|
|
1538
1538
|
({
|
|
1539
1539
|
size: n = 3,
|
|
@@ -1542,16 +1542,16 @@ const ar = U((t, r) => {
|
|
|
1542
1542
|
"data-testid": s,
|
|
1543
1543
|
as: l = "p",
|
|
1544
1544
|
fontWeight: c = "regular",
|
|
1545
|
-
disabled:
|
|
1545
|
+
disabled: _ = !1,
|
|
1546
1546
|
typographyStyle: f = "primary",
|
|
1547
1547
|
...d
|
|
1548
1548
|
}, g) => {
|
|
1549
|
-
const b = l,
|
|
1550
|
-
|
|
1549
|
+
const b = l, m = k(
|
|
1550
|
+
Pt.typography,
|
|
1551
1551
|
G[`typography-${t}-${n}-${c}`],
|
|
1552
|
-
|
|
1552
|
+
Pt[f],
|
|
1553
1553
|
{
|
|
1554
|
-
[
|
|
1554
|
+
[Pt.disabled]: _
|
|
1555
1555
|
},
|
|
1556
1556
|
i
|
|
1557
1557
|
);
|
|
@@ -1559,7 +1559,7 @@ const ar = U((t, r) => {
|
|
|
1559
1559
|
b,
|
|
1560
1560
|
{
|
|
1561
1561
|
ref: g,
|
|
1562
|
-
className:
|
|
1562
|
+
className: m,
|
|
1563
1563
|
"data-testid": s,
|
|
1564
1564
|
...d,
|
|
1565
1565
|
children: a
|
|
@@ -1569,10 +1569,10 @@ const ar = U((t, r) => {
|
|
|
1569
1569
|
);
|
|
1570
1570
|
return r.displayName = `Typography.${t.charAt(0).toUpperCase() + t.slice(1)}`, r;
|
|
1571
1571
|
}, he = {
|
|
1572
|
-
Title:
|
|
1573
|
-
Subtitle:
|
|
1574
|
-
Label:
|
|
1575
|
-
Paragraph:
|
|
1572
|
+
Title: Ve("title"),
|
|
1573
|
+
Subtitle: Ve("subtitle"),
|
|
1574
|
+
Label: Ze("label"),
|
|
1575
|
+
Paragraph: Ze("paragraph")
|
|
1576
1576
|
}, { Paragraph: la, Title: ca } = he, da = [
|
|
1577
1577
|
"right-drawer",
|
|
1578
1578
|
"left-drawer"
|
|
@@ -1587,7 +1587,7 @@ const ar = U((t, r) => {
|
|
|
1587
1587
|
...i
|
|
1588
1588
|
};
|
|
1589
1589
|
return a ? /* @__PURE__ */ o.jsx(a, { children: /* @__PURE__ */ o.jsx(ge, { ...s }) }) : /* @__PURE__ */ o.jsx(ge, { ...s });
|
|
1590
|
-
},
|
|
1590
|
+
}, gc = U((t, r) => {
|
|
1591
1591
|
const {
|
|
1592
1592
|
open: n,
|
|
1593
1593
|
onOpenChange: a,
|
|
@@ -1595,73 +1595,73 @@ const ar = U((t, r) => {
|
|
|
1595
1595
|
placement: s = "default",
|
|
1596
1596
|
showCloseButton: l = !0,
|
|
1597
1597
|
closeButtonProps: c,
|
|
1598
|
-
title:
|
|
1598
|
+
title: _,
|
|
1599
1599
|
subTitle: f,
|
|
1600
1600
|
actions: d,
|
|
1601
1601
|
children: g,
|
|
1602
1602
|
footer: b,
|
|
1603
|
-
hideHeaderDivider:
|
|
1604
|
-
hideFooterDivider:
|
|
1605
|
-
className:
|
|
1606
|
-
classNames:
|
|
1603
|
+
hideHeaderDivider: m,
|
|
1604
|
+
hideFooterDivider: C,
|
|
1605
|
+
className: y,
|
|
1606
|
+
classNames: h,
|
|
1607
1607
|
styles: x,
|
|
1608
|
-
...
|
|
1609
|
-
} = t, w = da.includes(s), S = !!(
|
|
1608
|
+
...u
|
|
1609
|
+
} = t, w = da.includes(s), S = !!(_ || f || d);
|
|
1610
1610
|
return /* @__PURE__ */ o.jsx(
|
|
1611
|
-
|
|
1611
|
+
sr,
|
|
1612
1612
|
{
|
|
1613
1613
|
open: n,
|
|
1614
1614
|
onOpenChange: a,
|
|
1615
1615
|
placement: s,
|
|
1616
1616
|
ref: r,
|
|
1617
1617
|
style: { width: i },
|
|
1618
|
-
...
|
|
1618
|
+
...u,
|
|
1619
1619
|
children: /* @__PURE__ */ o.jsxs(
|
|
1620
1620
|
"div",
|
|
1621
1621
|
{
|
|
1622
|
-
className: k(
|
|
1622
|
+
className: k(mt.container, y, h == null ? void 0 : h.container),
|
|
1623
1623
|
style: { width: i, ...x == null ? void 0 : x.container },
|
|
1624
|
-
"data-testid":
|
|
1624
|
+
"data-testid": u["data-testid"] ? `${u["data-testid"]}-container` : void 0,
|
|
1625
1625
|
children: [
|
|
1626
|
-
S && /* @__PURE__ */ o.jsxs("div", { className:
|
|
1627
|
-
/* @__PURE__ */ o.jsx("div", { className: k(
|
|
1628
|
-
/* @__PURE__ */ o.jsxs("div", { className:
|
|
1626
|
+
S && /* @__PURE__ */ o.jsxs("div", { className: mt.header, children: [
|
|
1627
|
+
/* @__PURE__ */ o.jsx("div", { className: k(mt.title, h == null ? void 0 : h.title), style: x == null ? void 0 : x.title, children: typeof _ == "string" ? /* @__PURE__ */ o.jsx(ca, { size: 5, className: mt["title-text"], children: _ }) : _ }),
|
|
1628
|
+
/* @__PURE__ */ o.jsxs("div", { className: mt.actions, children: [
|
|
1629
1629
|
d,
|
|
1630
1630
|
l && /* @__PURE__ */ o.jsx(ua, { closeButtonProps: c, onOpenChange: a })
|
|
1631
1631
|
] }),
|
|
1632
|
-
f && /* @__PURE__ */ o.jsx("div", { className: k(
|
|
1632
|
+
f && /* @__PURE__ */ o.jsx("div", { className: k(mt.subTitle, h == null ? void 0 : h.subTitle), style: x == null ? void 0 : x.subTitle, children: typeof f == "string" ? /* @__PURE__ */ o.jsx(
|
|
1633
1633
|
la,
|
|
1634
1634
|
{
|
|
1635
1635
|
size: 2,
|
|
1636
1636
|
typographyStyle: "secondary",
|
|
1637
|
-
className:
|
|
1637
|
+
className: mt["description-text"],
|
|
1638
1638
|
children: f
|
|
1639
1639
|
}
|
|
1640
1640
|
) : f })
|
|
1641
1641
|
] }),
|
|
1642
|
-
!
|
|
1642
|
+
!m && S && /* @__PURE__ */ o.jsx("hr", { className: mt.divider }),
|
|
1643
1643
|
/* @__PURE__ */ o.jsx(
|
|
1644
1644
|
"div",
|
|
1645
1645
|
{
|
|
1646
1646
|
className: k(
|
|
1647
|
-
w ?
|
|
1648
|
-
|
|
1647
|
+
w ? mt["content-for-side-drawer"] : mt.content,
|
|
1648
|
+
h == null ? void 0 : h.content
|
|
1649
1649
|
),
|
|
1650
1650
|
style: {
|
|
1651
1651
|
...x == null ? void 0 : x.content
|
|
1652
1652
|
},
|
|
1653
|
-
"data-testid":
|
|
1653
|
+
"data-testid": u["data-testid"] ? `${u["data-testid"]}-content` : void 0,
|
|
1654
1654
|
children: g
|
|
1655
1655
|
}
|
|
1656
1656
|
),
|
|
1657
|
-
!
|
|
1658
|
-
b && /* @__PURE__ */ o.jsx("div", { className: k(
|
|
1657
|
+
!C && b && /* @__PURE__ */ o.jsx("hr", { className: mt.divider }),
|
|
1658
|
+
b && /* @__PURE__ */ o.jsx("div", { className: k(mt.footer, h == null ? void 0 : h.footer), style: x == null ? void 0 : x.footer, children: b })
|
|
1659
1659
|
]
|
|
1660
1660
|
}
|
|
1661
1661
|
)
|
|
1662
1662
|
}
|
|
1663
1663
|
);
|
|
1664
|
-
}),
|
|
1664
|
+
}), _a = () => /* @__PURE__ */ o.jsx(
|
|
1665
1665
|
"svg",
|
|
1666
1666
|
{
|
|
1667
1667
|
width: "24",
|
|
@@ -1679,7 +1679,7 @@ const ar = U((t, r) => {
|
|
|
1679
1679
|
}
|
|
1680
1680
|
)
|
|
1681
1681
|
}
|
|
1682
|
-
),
|
|
1682
|
+
), pa = () => /* @__PURE__ */ o.jsx(
|
|
1683
1683
|
"svg",
|
|
1684
1684
|
{
|
|
1685
1685
|
width: "23",
|
|
@@ -1752,29 +1752,29 @@ const ar = U((t, r) => {
|
|
|
1752
1752
|
}
|
|
1753
1753
|
)
|
|
1754
1754
|
}
|
|
1755
|
-
),
|
|
1755
|
+
), Ut = {
|
|
1756
1756
|
avatar: { icon: null, colorScheme: "gray" },
|
|
1757
|
-
info: { icon:
|
|
1757
|
+
info: { icon: _a, colorScheme: "gray" },
|
|
1758
1758
|
success: { icon: fa, colorScheme: "green" },
|
|
1759
1759
|
warning: { icon: ha, colorScheme: "yellow" },
|
|
1760
1760
|
error: { icon: ga, colorScheme: "red" },
|
|
1761
|
-
dialog: { icon:
|
|
1762
|
-
},
|
|
1763
|
-
container:
|
|
1764
|
-
},
|
|
1765
|
-
container:
|
|
1766
|
-
iconContainer:
|
|
1761
|
+
dialog: { icon: pa, colorScheme: "blue" }
|
|
1762
|
+
}, ma = "_container_dd9oq_1", ba = {
|
|
1763
|
+
container: ma
|
|
1764
|
+
}, xa = "_container_r24j4_1", ya = "_iconContainer_r24j4_11", va = "_textContainer_r24j4_18", Ca = "_title_r24j4_27", wa = "_subtitle_r24j4_27", Ft = {
|
|
1765
|
+
container: xa,
|
|
1766
|
+
iconContainer: ya,
|
|
1767
1767
|
textContainer: va,
|
|
1768
1768
|
title: Ca,
|
|
1769
1769
|
subtitle: wa
|
|
1770
|
-
},
|
|
1770
|
+
}, Kt = {
|
|
1771
1771
|
m: { title: "typography-subtitle-1-semibold", subtitle: "typography-paragraph-3-regular" },
|
|
1772
1772
|
l: { title: "typography-title-5-semibold", subtitle: "typography-paragraph-2-regular" }
|
|
1773
1773
|
};
|
|
1774
|
-
function
|
|
1775
|
-
return (
|
|
1774
|
+
function ka(t) {
|
|
1775
|
+
return (Kt == null ? void 0 : Kt[t]) || Kt.m;
|
|
1776
1776
|
}
|
|
1777
|
-
const
|
|
1777
|
+
const Sa = (t) => {
|
|
1778
1778
|
const {
|
|
1779
1779
|
iconSlot: r,
|
|
1780
1780
|
title: n,
|
|
@@ -1783,11 +1783,11 @@ const ka = (t) => {
|
|
|
1783
1783
|
subTitleProps: s,
|
|
1784
1784
|
className: l,
|
|
1785
1785
|
children: c,
|
|
1786
|
-
"data-testid":
|
|
1786
|
+
"data-testid": _,
|
|
1787
1787
|
size: f = "m",
|
|
1788
1788
|
style: d
|
|
1789
|
-
} = t, g =
|
|
1790
|
-
return /* @__PURE__ */ o.jsxs("div", { className: k(Ft.container, l), "data-testid":
|
|
1789
|
+
} = t, g = ka(f);
|
|
1790
|
+
return /* @__PURE__ */ o.jsxs("div", { className: k(Ft.container, l), "data-testid": _, style: d, children: [
|
|
1791
1791
|
!!r && /* @__PURE__ */ o.jsx("div", { className: Ft.iconContainer, children: r }),
|
|
1792
1792
|
(n || a) && /* @__PURE__ */ o.jsxs("div", { className: Ft.textContainer, children: [
|
|
1793
1793
|
n && /* @__PURE__ */ o.jsx(
|
|
@@ -1809,7 +1809,7 @@ const ka = (t) => {
|
|
|
1809
1809
|
] }),
|
|
1810
1810
|
c
|
|
1811
1811
|
] });
|
|
1812
|
-
},
|
|
1812
|
+
}, hc = (t) => {
|
|
1813
1813
|
const {
|
|
1814
1814
|
open: r,
|
|
1815
1815
|
onOpenChange: n,
|
|
@@ -1818,14 +1818,14 @@ const ka = (t) => {
|
|
|
1818
1818
|
title: s,
|
|
1819
1819
|
description: l,
|
|
1820
1820
|
children: c,
|
|
1821
|
-
variantAvatarProps:
|
|
1821
|
+
variantAvatarProps: _,
|
|
1822
1822
|
"data-testid": f
|
|
1823
|
-
} = t, { icon: d, colorScheme: g } = (
|
|
1823
|
+
} = t, { icon: d, colorScheme: g } = (Ut == null ? void 0 : Ut[i]) || Ut.info, m = i === "avatar" ? {
|
|
1824
1824
|
size: 48,
|
|
1825
1825
|
colorScheme: "gray",
|
|
1826
1826
|
variant: "light",
|
|
1827
1827
|
"data-testid": "alert-avatar",
|
|
1828
|
-
...
|
|
1828
|
+
..._
|
|
1829
1829
|
} : {
|
|
1830
1830
|
size: 48,
|
|
1831
1831
|
icon: d,
|
|
@@ -1835,64 +1835,64 @@ const ka = (t) => {
|
|
|
1835
1835
|
"data-testid": "alert-icon"
|
|
1836
1836
|
};
|
|
1837
1837
|
return /* @__PURE__ */ o.jsx(
|
|
1838
|
-
|
|
1838
|
+
sr,
|
|
1839
1839
|
{
|
|
1840
1840
|
open: r,
|
|
1841
1841
|
onOpenChange: n,
|
|
1842
1842
|
placement: a,
|
|
1843
1843
|
"data-testid": f,
|
|
1844
|
-
className:
|
|
1844
|
+
className: ba.container,
|
|
1845
1845
|
children: /* @__PURE__ */ o.jsx(
|
|
1846
|
-
|
|
1846
|
+
Sa,
|
|
1847
1847
|
{
|
|
1848
1848
|
title: s,
|
|
1849
1849
|
subTitle: l,
|
|
1850
1850
|
size: "m",
|
|
1851
|
-
iconSlot: /* @__PURE__ */ o.jsx(Ao, { ...
|
|
1851
|
+
iconSlot: /* @__PURE__ */ o.jsx(Ao, { ...m }),
|
|
1852
1852
|
children: c
|
|
1853
1853
|
}
|
|
1854
1854
|
)
|
|
1855
1855
|
}
|
|
1856
1856
|
);
|
|
1857
|
-
}, La = "
|
|
1857
|
+
}, La = "_wrapper_1mnix_5", ja = "_badge__container_1mnix_6", $a = "_badge__content_1mnix_7", Ta = "_interactive_1mnix_20", Ea = "_disabled_1mnix_21", Na = "_icon_1mnix_22", kt = {
|
|
1858
1858
|
wrapper: La,
|
|
1859
1859
|
badge__container: ja,
|
|
1860
1860
|
badge__content: $a,
|
|
1861
1861
|
interactive: Ta,
|
|
1862
1862
|
disabled: Ea,
|
|
1863
|
-
icon:
|
|
1864
|
-
"variant-filled": "_variant-
|
|
1865
|
-
"color-brand": "_color-
|
|
1866
|
-
"color-red": "_color-
|
|
1867
|
-
"color-orange": "_color-
|
|
1868
|
-
"color-yellow": "_color-
|
|
1869
|
-
"color-green": "_color-
|
|
1870
|
-
"color-blue": "_color-
|
|
1871
|
-
"color-lightblue": "_color-
|
|
1872
|
-
"color-purple": "_color-
|
|
1873
|
-
"color-gray": "_color-
|
|
1874
|
-
"color-contrast": "_color-
|
|
1875
|
-
"variant-light": "_variant-
|
|
1876
|
-
"variant-outline": "_variant-
|
|
1877
|
-
"variant-transparent": "_variant-
|
|
1878
|
-
"position-top-left": "_position-top-
|
|
1879
|
-
"position-top-right": "_position-top-
|
|
1880
|
-
"position-bottom-left": "_position-bottom-
|
|
1881
|
-
"position-bottom-right": "_position-bottom-
|
|
1882
|
-
"position-top-center": "_position-top-
|
|
1883
|
-
"position-bottom-center": "_position-bottom-
|
|
1884
|
-
"position-middle-left": "_position-middle-
|
|
1885
|
-
"position-middle-right": "_position-middle-
|
|
1886
|
-
"position-middle-center": "_position-middle-
|
|
1887
|
-
"position-top-left-inside": "_position-top-left-
|
|
1888
|
-
"position-top-right-inside": "_position-top-right-
|
|
1889
|
-
"position-bottom-left-inside": "_position-bottom-left-
|
|
1890
|
-
"position-bottom-right-inside": "_position-bottom-right-
|
|
1891
|
-
"position-top-center-inside": "_position-top-center-
|
|
1892
|
-
"position-bottom-center-inside": "_position-bottom-center-
|
|
1893
|
-
"position-middle-left-inside": "_position-middle-left-
|
|
1894
|
-
"position-middle-right-inside": "_position-middle-right-
|
|
1895
|
-
},
|
|
1863
|
+
icon: Na,
|
|
1864
|
+
"variant-filled": "_variant-filled_1mnix_98",
|
|
1865
|
+
"color-brand": "_color-brand_1mnix_103",
|
|
1866
|
+
"color-red": "_color-red_1mnix_111",
|
|
1867
|
+
"color-orange": "_color-orange_1mnix_119",
|
|
1868
|
+
"color-yellow": "_color-yellow_1mnix_127",
|
|
1869
|
+
"color-green": "_color-green_1mnix_135",
|
|
1870
|
+
"color-blue": "_color-blue_1mnix_143",
|
|
1871
|
+
"color-lightblue": "_color-lightblue_1mnix_151",
|
|
1872
|
+
"color-purple": "_color-purple_1mnix_159",
|
|
1873
|
+
"color-gray": "_color-gray_1mnix_167",
|
|
1874
|
+
"color-contrast": "_color-contrast_1mnix_175",
|
|
1875
|
+
"variant-light": "_variant-light_1mnix_184",
|
|
1876
|
+
"variant-outline": "_variant-outline_1mnix_260",
|
|
1877
|
+
"variant-transparent": "_variant-transparent_1mnix_338",
|
|
1878
|
+
"position-top-left": "_position-top-left_1mnix_409",
|
|
1879
|
+
"position-top-right": "_position-top-right_1mnix_415",
|
|
1880
|
+
"position-bottom-left": "_position-bottom-left_1mnix_421",
|
|
1881
|
+
"position-bottom-right": "_position-bottom-right_1mnix_427",
|
|
1882
|
+
"position-top-center": "_position-top-center_1mnix_433",
|
|
1883
|
+
"position-bottom-center": "_position-bottom-center_1mnix_439",
|
|
1884
|
+
"position-middle-left": "_position-middle-left_1mnix_445",
|
|
1885
|
+
"position-middle-right": "_position-middle-right_1mnix_451",
|
|
1886
|
+
"position-middle-center": "_position-middle-center_1mnix_457",
|
|
1887
|
+
"position-top-left-inside": "_position-top-left-inside_1mnix_464",
|
|
1888
|
+
"position-top-right-inside": "_position-top-right-inside_1mnix_470",
|
|
1889
|
+
"position-bottom-left-inside": "_position-bottom-left-inside_1mnix_476",
|
|
1890
|
+
"position-bottom-right-inside": "_position-bottom-right-inside_1mnix_482",
|
|
1891
|
+
"position-top-center-inside": "_position-top-center-inside_1mnix_488",
|
|
1892
|
+
"position-bottom-center-inside": "_position-bottom-center-inside_1mnix_494",
|
|
1893
|
+
"position-middle-left-inside": "_position-middle-left-inside_1mnix_500",
|
|
1894
|
+
"position-middle-right-inside": "_position-middle-right-inside_1mnix_506"
|
|
1895
|
+
}, Ra = U((t, r) => {
|
|
1896
1896
|
const {
|
|
1897
1897
|
icon: n,
|
|
1898
1898
|
children: a,
|
|
@@ -1900,61 +1900,62 @@ const ka = (t) => {
|
|
|
1900
1900
|
label: s,
|
|
1901
1901
|
isHidden: l = !1,
|
|
1902
1902
|
colorScheme: c = "red",
|
|
1903
|
-
size:
|
|
1903
|
+
size: _ = 20,
|
|
1904
1904
|
position: f = "top-right",
|
|
1905
1905
|
positionOffset: d = { x: 0, y: 0 },
|
|
1906
1906
|
cutoutBackground: g,
|
|
1907
1907
|
isDisabled: b,
|
|
1908
|
-
className:
|
|
1909
|
-
"data-testid":
|
|
1910
|
-
...
|
|
1911
|
-
} = t, { onClick:
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1908
|
+
className: m,
|
|
1909
|
+
"data-testid": C = "badge",
|
|
1910
|
+
...y
|
|
1911
|
+
} = t, { onClick: h, onPointerDown: x } = y, { ref: u, bgColor: w } = ye(), S = g || w, j = !b && (!!h || !!x), N = It(kt.badge__container, kt[`position-${f}`]), T = It(
|
|
1912
|
+
m,
|
|
1913
|
+
kt.badge__content,
|
|
1914
|
+
kt[`color-${c}`],
|
|
1915
|
+
kt[`variant-${i}`],
|
|
1916
1916
|
{
|
|
1917
|
-
[
|
|
1918
|
-
[
|
|
1919
|
-
[
|
|
1917
|
+
[kt.disabled]: b,
|
|
1918
|
+
[kt.icon]: !!n,
|
|
1919
|
+
[kt.interactive]: j
|
|
1920
1920
|
}
|
|
1921
|
-
),
|
|
1922
|
-
"--badge-height": `${
|
|
1921
|
+
), R = {
|
|
1922
|
+
"--badge-height": `${_}px`,
|
|
1923
1923
|
"--badge-offset-x": `${d.x}px`,
|
|
1924
1924
|
"--badge-offset-y": `${d.y}px`,
|
|
1925
1925
|
...S && { "--badge-cutout-bg": S },
|
|
1926
1926
|
...i === "transparent" && { "--badge-cutout-bg": "transparent" }
|
|
1927
|
-
},
|
|
1928
|
-
|
|
1927
|
+
}, O = (n == null ? void 0 : n({})) || s, D = (W) => {
|
|
1928
|
+
j && (h == null || h(W));
|
|
1929
1929
|
};
|
|
1930
|
-
return /* @__PURE__ */ o.jsxs("div", { className:
|
|
1930
|
+
return /* @__PURE__ */ o.jsxs("div", { className: kt.wrapper, ref: u, "data-testid": C + "-wrapper", children: [
|
|
1931
1931
|
a,
|
|
1932
1932
|
!l && /* @__PURE__ */ o.jsx(
|
|
1933
1933
|
"span",
|
|
1934
1934
|
{
|
|
1935
|
-
className:
|
|
1936
|
-
style:
|
|
1937
|
-
"data-testid":
|
|
1935
|
+
className: N,
|
|
1936
|
+
style: R,
|
|
1937
|
+
"data-testid": C + "-container",
|
|
1938
1938
|
children: /* @__PURE__ */ o.jsx(
|
|
1939
1939
|
"span",
|
|
1940
1940
|
{
|
|
1941
|
-
...
|
|
1942
|
-
onClick:
|
|
1943
|
-
className:
|
|
1944
|
-
"data-testid":
|
|
1941
|
+
...y,
|
|
1942
|
+
onClick: D,
|
|
1943
|
+
className: T,
|
|
1944
|
+
"data-testid": C + "-content",
|
|
1945
1945
|
ref: r,
|
|
1946
1946
|
"aria-disabled": b,
|
|
1947
|
-
children:
|
|
1947
|
+
children: O
|
|
1948
1948
|
}
|
|
1949
1949
|
)
|
|
1950
1950
|
}
|
|
1951
1951
|
)
|
|
1952
1952
|
] });
|
|
1953
|
-
}), Ia = "
|
|
1953
|
+
}), Ia = "_container_yn8yz_7", Ma = "_loading_yn8yz_17", Ba = "_error_yn8yz_18", Aa = "_image_yn8yz_22", Wt = {
|
|
1954
1954
|
container: Ia,
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1955
|
+
loading: Ma,
|
|
1956
|
+
error: Ba,
|
|
1957
|
+
image: Aa
|
|
1958
|
+
}, Oa = ({ width: t = 48, height: r = 48, className: n, "data-testid": a }) => /* @__PURE__ */ o.jsx(
|
|
1958
1959
|
"svg",
|
|
1959
1960
|
{
|
|
1960
1961
|
width: t,
|
|
@@ -1975,110 +1976,126 @@ const ka = (t) => {
|
|
|
1975
1976
|
}
|
|
1976
1977
|
)
|
|
1977
1978
|
}
|
|
1978
|
-
),
|
|
1979
|
+
), mc = U((t, r) => {
|
|
1979
1980
|
const {
|
|
1980
1981
|
alt: n = "",
|
|
1981
1982
|
loading: a = "lazy",
|
|
1982
1983
|
src: i,
|
|
1983
1984
|
isLoading: s = !1,
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1985
|
+
style: l,
|
|
1986
|
+
className: c,
|
|
1987
|
+
containerProps: _,
|
|
1988
|
+
"data-testid": f = "image",
|
|
1989
|
+
onError: d,
|
|
1990
|
+
onLoad: g,
|
|
1991
|
+
...b
|
|
1992
|
+
} = t, { className: m, ...C } = _ ?? {}, [y, h] = ft("loading"), x = y === "error", u = (s || y === "loading") && !x, w = y === "loaded" && !s, S = k(
|
|
1993
|
+
Wt.container,
|
|
1994
|
+
{ [Wt.loading]: u && !w, [Wt.error]: x && !w },
|
|
1995
|
+
m
|
|
1996
|
+
), E = k(
|
|
1997
|
+
Wt.image,
|
|
1991
1998
|
{
|
|
1992
|
-
[
|
|
1999
|
+
[Wt.loading]: u
|
|
1993
2000
|
},
|
|
1994
|
-
|
|
1995
|
-
),
|
|
1996
|
-
(
|
|
1997
|
-
|
|
2001
|
+
c
|
|
2002
|
+
), j = jt(
|
|
2003
|
+
(R) => {
|
|
2004
|
+
h("loaded"), g == null || g(R);
|
|
1998
2005
|
},
|
|
1999
|
-
[
|
|
2000
|
-
),
|
|
2001
|
-
(
|
|
2002
|
-
|
|
2006
|
+
[g]
|
|
2007
|
+
), N = jt(
|
|
2008
|
+
(R) => {
|
|
2009
|
+
h("error"), d == null || d(R);
|
|
2003
2010
|
},
|
|
2004
|
-
[
|
|
2005
|
-
),
|
|
2011
|
+
[d]
|
|
2012
|
+
), T = {
|
|
2006
2013
|
loader: /* @__PURE__ */ o.jsxs(Ht, { children: [
|
|
2007
|
-
/* @__PURE__ */ o.jsx(
|
|
2014
|
+
/* @__PURE__ */ o.jsx(or, { size: 48, variant: "special", "data-testid": `${f}-loader` }),
|
|
2008
2015
|
/* @__PURE__ */ o.jsx(
|
|
2009
2016
|
"img",
|
|
2010
2017
|
{
|
|
2011
2018
|
alt: n,
|
|
2012
2019
|
src: i,
|
|
2013
|
-
onLoad:
|
|
2014
|
-
onError:
|
|
2020
|
+
onLoad: j,
|
|
2021
|
+
onError: N,
|
|
2015
2022
|
style: { display: "none" }
|
|
2016
2023
|
}
|
|
2017
2024
|
)
|
|
2018
2025
|
] }),
|
|
2019
|
-
error: /* @__PURE__ */ o.jsx(
|
|
2026
|
+
error: /* @__PURE__ */ o.jsx(Oa, { "data-testid": `${f}-fallback` }),
|
|
2020
2027
|
image: /* @__PURE__ */ o.jsx(
|
|
2021
2028
|
"img",
|
|
2022
2029
|
{
|
|
2023
2030
|
ref: r,
|
|
2024
2031
|
alt: n,
|
|
2025
|
-
"data-testid":
|
|
2032
|
+
"data-testid": f,
|
|
2026
2033
|
loading: a,
|
|
2027
2034
|
src: i,
|
|
2028
|
-
className:
|
|
2035
|
+
className: E,
|
|
2036
|
+
...b
|
|
2029
2037
|
}
|
|
2030
2038
|
)
|
|
2031
2039
|
};
|
|
2032
|
-
return
|
|
2040
|
+
return gt(() => {
|
|
2033
2041
|
if (!i) {
|
|
2034
|
-
|
|
2042
|
+
h("error");
|
|
2035
2043
|
return;
|
|
2036
2044
|
}
|
|
2037
|
-
|
|
2038
|
-
}, [i]), /* @__PURE__ */ o.jsxs(
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
+
h("loading");
|
|
2046
|
+
}, [i]), /* @__PURE__ */ o.jsxs(
|
|
2047
|
+
"div",
|
|
2048
|
+
{
|
|
2049
|
+
className: S,
|
|
2050
|
+
"data-testid": `${f}-container`,
|
|
2051
|
+
style: l,
|
|
2052
|
+
...C,
|
|
2053
|
+
children: [
|
|
2054
|
+
u && T.loader,
|
|
2055
|
+
x && T.error,
|
|
2056
|
+
w && T.image
|
|
2057
|
+
]
|
|
2058
|
+
}
|
|
2059
|
+
);
|
|
2060
|
+
}), Pa = {}, ir = tr({
|
|
2061
|
+
locale: Pa
|
|
2045
2062
|
}), za = () => {
|
|
2046
|
-
const t = er(
|
|
2063
|
+
const t = er(ir);
|
|
2047
2064
|
if (!t)
|
|
2048
2065
|
throw new Error("useConfig must be used within a ConfigProvider");
|
|
2049
2066
|
return t;
|
|
2050
|
-
},
|
|
2067
|
+
}, bc = () => {
|
|
2051
2068
|
const { locale: t } = za();
|
|
2052
2069
|
return t;
|
|
2053
|
-
},
|
|
2070
|
+
}, Da = {}, Fa = {}, Wa = {}, qa = {}, Ha = {}, Va = "_base_1p0qo_50", Za = "_content_1p0qo_54", Xa = "_background_1p0qo_58", Ya = "_button_1p0qo_62", Ga = "_link_1p0qo_66", Ua = "_input_1p0qo_70", Ka = "_suffix_1p0qo_74", Ja = "_prefix_1p0qo_78", Qa = "_tooltip_1p0qo_82", ts = "_hint_1p0qo_86", es = "_dropdown_1p0qo_90", rs = "_popover_1p0qo_94", ns = "_modalBackdrop_1p0qo_98", os = "_modal_1p0qo_98", as = "_overlay_1p0qo_106", ss = "_drawer_1p0qo_110", is = "_notification_1p0qo_114", ls = "_alert_1p0qo_118", cs = "_toast_1p0qo_122", ds = "_loading_1p0qo_126", us = "_error_1p0qo_130", _s = "_critical_1p0qo_134", ps = {
|
|
2054
2071
|
base: Va,
|
|
2055
2072
|
content: Za,
|
|
2056
|
-
background:
|
|
2057
|
-
button:
|
|
2058
|
-
link:
|
|
2059
|
-
input:
|
|
2060
|
-
suffix:
|
|
2061
|
-
prefix:
|
|
2062
|
-
tooltip:
|
|
2063
|
-
hint:
|
|
2064
|
-
dropdown:
|
|
2065
|
-
popover:
|
|
2066
|
-
modalBackdrop:
|
|
2067
|
-
modal:
|
|
2068
|
-
overlay:
|
|
2069
|
-
drawer:
|
|
2070
|
-
notification:
|
|
2071
|
-
alert:
|
|
2072
|
-
toast:
|
|
2073
|
-
loading:
|
|
2074
|
-
error:
|
|
2075
|
-
critical:
|
|
2076
|
-
},
|
|
2073
|
+
background: Xa,
|
|
2074
|
+
button: Ya,
|
|
2075
|
+
link: Ga,
|
|
2076
|
+
input: Ua,
|
|
2077
|
+
suffix: Ka,
|
|
2078
|
+
prefix: Ja,
|
|
2079
|
+
tooltip: Qa,
|
|
2080
|
+
hint: ts,
|
|
2081
|
+
dropdown: es,
|
|
2082
|
+
popover: rs,
|
|
2083
|
+
modalBackdrop: ns,
|
|
2084
|
+
modal: os,
|
|
2085
|
+
overlay: as,
|
|
2086
|
+
drawer: ss,
|
|
2087
|
+
notification: is,
|
|
2088
|
+
alert: ls,
|
|
2089
|
+
toast: cs,
|
|
2090
|
+
loading: ds,
|
|
2091
|
+
error: us,
|
|
2092
|
+
critical: _s
|
|
2093
|
+
}, xc = ({
|
|
2077
2094
|
locale: t = {},
|
|
2078
2095
|
theme: r,
|
|
2079
2096
|
children: n,
|
|
2080
2097
|
className: a
|
|
2081
|
-
}) => (
|
|
2098
|
+
}) => (rr(() => {
|
|
2082
2099
|
if (r) {
|
|
2083
2100
|
const i = document.documentElement;
|
|
2084
2101
|
Object.entries(r).forEach(([s, l]) => {
|
|
@@ -2090,28 +2107,28 @@ const ka = (t) => {
|
|
|
2090
2107
|
"div",
|
|
2091
2108
|
{
|
|
2092
2109
|
"data-testid": "ConfigProvider-component",
|
|
2093
|
-
className: k(
|
|
2110
|
+
className: k(Da, Fa, Wa, qa, Ha, ps, G, a)
|
|
2094
2111
|
}
|
|
2095
2112
|
),
|
|
2096
|
-
/* @__PURE__ */ o.jsx(
|
|
2097
|
-
] })),
|
|
2098
|
-
tag:
|
|
2099
|
-
label:
|
|
2100
|
-
iconWrapper:
|
|
2101
|
-
medium:
|
|
2113
|
+
/* @__PURE__ */ o.jsx(ir.Provider, { value: { locale: t }, children: n })
|
|
2114
|
+
] })), yc = {}, fs = "_tag_1llsi_1", gs = "_label_1llsi_16", hs = "_iconWrapper_1llsi_20", ms = "_medium_1llsi_27", bs = "_large_1llsi_33", xs = "_disabled_1llsi_43", ys = "_neutral_1llsi_47", vs = "_positive_1llsi_53", Cs = "_negative_1llsi_59", ws = "_warning_1llsi_65", ks = "_vivid_1llsi_71", Ss = "_special_1llsi_77", Ls = "_accent_1llsi_84", js = "_blue_1llsi_90", $s = "_lovely_1llsi_96", Ts = "_dreamy_1llsi_102", Rt = {
|
|
2115
|
+
tag: fs,
|
|
2116
|
+
label: gs,
|
|
2117
|
+
iconWrapper: hs,
|
|
2118
|
+
medium: ms,
|
|
2102
2119
|
large: bs,
|
|
2103
|
-
disabled:
|
|
2120
|
+
disabled: xs,
|
|
2104
2121
|
neutral: ys,
|
|
2105
|
-
positive:
|
|
2106
|
-
negative:
|
|
2107
|
-
warning:
|
|
2108
|
-
vivid:
|
|
2122
|
+
positive: vs,
|
|
2123
|
+
negative: Cs,
|
|
2124
|
+
warning: ws,
|
|
2125
|
+
vivid: ks,
|
|
2109
2126
|
special: Ss,
|
|
2110
|
-
accent:
|
|
2111
|
-
blue:
|
|
2112
|
-
lovely:
|
|
2113
|
-
dreamy:
|
|
2114
|
-
},
|
|
2127
|
+
accent: Ls,
|
|
2128
|
+
blue: js,
|
|
2129
|
+
lovely: $s,
|
|
2130
|
+
dreamy: Ts
|
|
2131
|
+
}, vc = U((t, r) => {
|
|
2115
2132
|
const {
|
|
2116
2133
|
className: n,
|
|
2117
2134
|
children: a,
|
|
@@ -2119,21 +2136,22 @@ const ka = (t) => {
|
|
|
2119
2136
|
size: s = "medium",
|
|
2120
2137
|
disabled: l = !1,
|
|
2121
2138
|
showLabel: c = !!a,
|
|
2122
|
-
slotStart:
|
|
2139
|
+
slotStart: _,
|
|
2123
2140
|
slotEnd: f,
|
|
2124
2141
|
slotStartWrapperProps: d = {},
|
|
2125
2142
|
slotEndWrapperProps: g = {},
|
|
2126
|
-
"data-testid": b
|
|
2127
|
-
|
|
2143
|
+
"data-testid": b,
|
|
2144
|
+
...m
|
|
2145
|
+
} = t, { className: C, ...y } = d, { className: h, ...x } = g;
|
|
2128
2146
|
return /* @__PURE__ */ o.jsxs(
|
|
2129
2147
|
"div",
|
|
2130
2148
|
{
|
|
2131
2149
|
className: k(
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2150
|
+
Rt.tag,
|
|
2151
|
+
Rt[s],
|
|
2152
|
+
Rt[i],
|
|
2135
2153
|
{
|
|
2136
|
-
[
|
|
2154
|
+
[Rt.disabled]: l,
|
|
2137
2155
|
[G["typography-label-3-regular"]]: s === "medium",
|
|
2138
2156
|
[G["typography-subtitle-1-semibold"]]: s === "large"
|
|
2139
2157
|
},
|
|
@@ -2141,23 +2159,24 @@ const ka = (t) => {
|
|
|
2141
2159
|
),
|
|
2142
2160
|
"data-testid": b || "tag-component",
|
|
2143
2161
|
ref: r,
|
|
2162
|
+
...m,
|
|
2144
2163
|
children: [
|
|
2145
|
-
|
|
2146
|
-
c && /* @__PURE__ */ o.jsx("span", { className: k([
|
|
2147
|
-
f && /* @__PURE__ */ o.jsx("span", { className: k([
|
|
2164
|
+
_ && /* @__PURE__ */ o.jsx("span", { className: k([Rt.iconWrapper, C]), ...y, children: _ }),
|
|
2165
|
+
c && /* @__PURE__ */ o.jsx("span", { className: k([Rt.label]), children: a }),
|
|
2166
|
+
f && /* @__PURE__ */ o.jsx("span", { className: k([Rt.iconWrapper, h]), ...x, children: f })
|
|
2148
2167
|
]
|
|
2149
2168
|
}
|
|
2150
2169
|
);
|
|
2151
|
-
}),
|
|
2152
|
-
checkbox:
|
|
2153
|
-
input:
|
|
2170
|
+
}), Es = "_checkbox_gtrs6_43", Ns = "_input_gtrs6_64", Rs = "_icon_gtrs6_72", Is = "_container_gtrs6_92", Ms = "_error_gtrs6_143", Bs = "_checkboxWrapper_gtrs6_156", As = "_medium_gtrs6_211", Os = "_large_gtrs6_216", Ps = "_label_gtrs6_258", Lt = {
|
|
2171
|
+
checkbox: Es,
|
|
2172
|
+
input: Ns,
|
|
2154
2173
|
icon: Rs,
|
|
2155
|
-
container:
|
|
2156
|
-
error:
|
|
2157
|
-
checkboxWrapper:
|
|
2158
|
-
medium:
|
|
2159
|
-
large:
|
|
2160
|
-
label:
|
|
2174
|
+
container: Is,
|
|
2175
|
+
error: Ms,
|
|
2176
|
+
checkboxWrapper: Bs,
|
|
2177
|
+
medium: As,
|
|
2178
|
+
large: Os,
|
|
2179
|
+
label: Ps
|
|
2161
2180
|
}, zs = ({
|
|
2162
2181
|
width: t = 12,
|
|
2163
2182
|
height: r = 9,
|
|
@@ -2184,7 +2203,7 @@ const ka = (t) => {
|
|
|
2184
2203
|
}
|
|
2185
2204
|
)
|
|
2186
2205
|
}
|
|
2187
|
-
),
|
|
2206
|
+
), Ds = ({
|
|
2188
2207
|
width: t = 12,
|
|
2189
2208
|
height: r = 2,
|
|
2190
2209
|
className: n = "",
|
|
@@ -2210,17 +2229,17 @@ const ka = (t) => {
|
|
|
2210
2229
|
}
|
|
2211
2230
|
)
|
|
2212
2231
|
}
|
|
2213
|
-
),
|
|
2232
|
+
), Fs = {
|
|
2214
2233
|
medium: { width: 10.83, height: 7.5 },
|
|
2215
2234
|
large: { width: 13, height: 9 }
|
|
2216
|
-
},
|
|
2235
|
+
}, Ws = ({
|
|
2217
2236
|
size: t,
|
|
2218
2237
|
isChecked: r,
|
|
2219
2238
|
isDisabled: n,
|
|
2220
2239
|
indeterminate: a,
|
|
2221
2240
|
dataTestId: i
|
|
2222
2241
|
}) => {
|
|
2223
|
-
const { width: s, height: l } =
|
|
2242
|
+
const { width: s, height: l } = Fs[t];
|
|
2224
2243
|
return /* @__PURE__ */ o.jsx(
|
|
2225
2244
|
"div",
|
|
2226
2245
|
{
|
|
@@ -2229,10 +2248,10 @@ const ka = (t) => {
|
|
|
2229
2248
|
"data-checked": r,
|
|
2230
2249
|
"data-disabled": n,
|
|
2231
2250
|
"data-indeterminate": a,
|
|
2232
|
-
children: a ? /* @__PURE__ */ o.jsx(
|
|
2251
|
+
children: a ? /* @__PURE__ */ o.jsx(Ds, { width: s, height: l }) : /* @__PURE__ */ o.jsx(zs, { width: s, height: l })
|
|
2233
2252
|
}
|
|
2234
2253
|
);
|
|
2235
|
-
},
|
|
2254
|
+
}, Cc = U((t, r) => {
|
|
2236
2255
|
const {
|
|
2237
2256
|
name: n,
|
|
2238
2257
|
value: a,
|
|
@@ -2240,55 +2259,56 @@ const ka = (t) => {
|
|
|
2240
2259
|
indeterminate: s = !1,
|
|
2241
2260
|
loading: l = !1,
|
|
2242
2261
|
error: c,
|
|
2243
|
-
disabled:
|
|
2262
|
+
disabled: _ = !1,
|
|
2244
2263
|
containerClassName: f,
|
|
2245
2264
|
className: d,
|
|
2246
2265
|
containerStyle: g,
|
|
2247
2266
|
style: b,
|
|
2248
|
-
children:
|
|
2249
|
-
clickableLabel:
|
|
2250
|
-
tabIndex:
|
|
2251
|
-
onChange:
|
|
2252
|
-
|
|
2253
|
-
|
|
2267
|
+
children: m,
|
|
2268
|
+
clickableLabel: C = !0,
|
|
2269
|
+
tabIndex: y,
|
|
2270
|
+
onChange: h,
|
|
2271
|
+
onClick: x,
|
|
2272
|
+
"data-testid": u = "checkbox"
|
|
2273
|
+
} = t, [w, S] = ft(!1), E = a ?? w, j = _ || l, N = !!c, T = E || s, R = k(Lt.container, Lt[i], f), O = k(
|
|
2254
2274
|
Lt.checkbox,
|
|
2255
2275
|
Lt[i],
|
|
2256
2276
|
{
|
|
2257
|
-
[Lt.error]:
|
|
2277
|
+
[Lt.error]: N
|
|
2258
2278
|
},
|
|
2259
2279
|
d
|
|
2260
|
-
),
|
|
2261
|
-
|
|
2262
|
-
},
|
|
2263
|
-
if (
|
|
2264
|
-
|
|
2265
|
-
const
|
|
2266
|
-
|
|
2280
|
+
), D = (A) => {
|
|
2281
|
+
j || (S(A.target.checked), h == null || h(A.target.checked, A));
|
|
2282
|
+
}, W = (A) => {
|
|
2283
|
+
if (A.key === "Enter" && !j) {
|
|
2284
|
+
A.preventDefault();
|
|
2285
|
+
const q = !T;
|
|
2286
|
+
S(q), h == null || h(q);
|
|
2267
2287
|
}
|
|
2268
|
-
},
|
|
2269
|
-
|
|
2270
|
-
}
|
|
2288
|
+
}, L = (A) => {
|
|
2289
|
+
C || A.preventDefault(), x == null || x(A);
|
|
2290
|
+
};
|
|
2271
2291
|
return /* @__PURE__ */ o.jsxs(
|
|
2272
2292
|
"label",
|
|
2273
2293
|
{
|
|
2274
|
-
className:
|
|
2294
|
+
className: R,
|
|
2275
2295
|
htmlFor: n,
|
|
2276
2296
|
style: g,
|
|
2277
|
-
"data-testid":
|
|
2278
|
-
"data-clickable-label":
|
|
2297
|
+
"data-testid": u,
|
|
2298
|
+
"data-clickable-label": C,
|
|
2279
2299
|
children: [
|
|
2280
2300
|
/* @__PURE__ */ o.jsx("div", { className: Lt.checkboxWrapper, children: /* @__PURE__ */ o.jsxs(
|
|
2281
2301
|
"div",
|
|
2282
2302
|
{
|
|
2283
|
-
tabIndex:
|
|
2284
|
-
className:
|
|
2303
|
+
tabIndex: y || 0,
|
|
2304
|
+
className: O,
|
|
2285
2305
|
style: b,
|
|
2286
|
-
onKeyDown:
|
|
2287
|
-
"aria-checked":
|
|
2288
|
-
"aria-disabled":
|
|
2289
|
-
"aria-invalid":
|
|
2306
|
+
onKeyDown: W,
|
|
2307
|
+
"aria-checked": T,
|
|
2308
|
+
"aria-disabled": j,
|
|
2309
|
+
"aria-invalid": N,
|
|
2290
2310
|
"aria-describedby": c ? `${n}-error` : void 0,
|
|
2291
|
-
"data-testid": `${
|
|
2311
|
+
"data-testid": `${u}-label`,
|
|
2292
2312
|
children: [
|
|
2293
2313
|
/* @__PURE__ */ o.jsx(
|
|
2294
2314
|
"input",
|
|
@@ -2297,96 +2317,95 @@ const ka = (t) => {
|
|
|
2297
2317
|
type: "checkbox",
|
|
2298
2318
|
id: n,
|
|
2299
2319
|
name: n,
|
|
2300
|
-
checked:
|
|
2301
|
-
disabled:
|
|
2320
|
+
checked: T,
|
|
2321
|
+
disabled: j,
|
|
2302
2322
|
className: Lt.input,
|
|
2303
|
-
onChange:
|
|
2304
|
-
|
|
2305
|
-
"aria-
|
|
2306
|
-
"aria-invalid": $,
|
|
2323
|
+
onChange: D,
|
|
2324
|
+
"aria-checked": T,
|
|
2325
|
+
"aria-invalid": N,
|
|
2307
2326
|
"aria-describedby": c ? `${n}-error` : void 0,
|
|
2308
|
-
"data-testid": `${
|
|
2327
|
+
"data-testid": `${u}-input`
|
|
2309
2328
|
}
|
|
2310
2329
|
),
|
|
2311
2330
|
/* @__PURE__ */ o.jsx(
|
|
2312
|
-
|
|
2331
|
+
Ws,
|
|
2313
2332
|
{
|
|
2314
2333
|
name: n,
|
|
2315
2334
|
size: i,
|
|
2316
|
-
isChecked:
|
|
2317
|
-
isDisabled:
|
|
2335
|
+
isChecked: T,
|
|
2336
|
+
isDisabled: j,
|
|
2318
2337
|
indeterminate: s,
|
|
2319
|
-
dataTestId:
|
|
2338
|
+
dataTestId: u
|
|
2320
2339
|
}
|
|
2321
2340
|
)
|
|
2322
2341
|
]
|
|
2323
2342
|
}
|
|
2324
2343
|
) }),
|
|
2325
|
-
|
|
2344
|
+
m && /* @__PURE__ */ o.jsx(
|
|
2326
2345
|
"span",
|
|
2327
2346
|
{
|
|
2328
|
-
"data-testid": `${
|
|
2329
|
-
"data-clickable-label":
|
|
2347
|
+
"data-testid": `${u}-label-text`,
|
|
2348
|
+
"data-clickable-label": C,
|
|
2330
2349
|
className: Lt.label,
|
|
2331
|
-
onClick:
|
|
2332
|
-
children:
|
|
2350
|
+
onClick: L,
|
|
2351
|
+
children: m
|
|
2333
2352
|
}
|
|
2334
2353
|
)
|
|
2335
2354
|
]
|
|
2336
2355
|
}
|
|
2337
2356
|
);
|
|
2338
|
-
}),
|
|
2339
|
-
base:
|
|
2357
|
+
}), qs = "_base_10oxr_1", Hs = "_content_10oxr_1", Vs = "_background_10oxr_1", Zs = "_button_10oxr_1", Xs = "_link_10oxr_1", Ys = "_input_10oxr_96", Gs = "_suffix_10oxr_1", Us = "_prefix_10oxr_1", Ks = "_tooltip_10oxr_1", Js = "_hint_10oxr_794", Qs = "_dropdown_10oxr_1", ti = "_popover_10oxr_1", ei = "_modalBackdrop_10oxr_1", ri = "_modal_10oxr_1", ni = "_overlay_10oxr_1", oi = "_drawer_10oxr_1", ai = "_notification_10oxr_1", si = "_alert_10oxr_1", ii = "_toast_10oxr_1", li = "_loading_10oxr_291", ci = "_error_10oxr_252", di = "_critical_10oxr_1", ui = "_inputBase_10oxr_96", _i = "_wrapper_10oxr_106", pi = "_gripHandle_10oxr_186", fi = "_tabFocused_10oxr_259", gi = "_disabled_10oxr_284", hi = "_label_10oxr_301", mi = "_S_10oxr_315", bi = "_M_10oxr_321", xi = "_XL_10oxr_328", yi = "_leftSection_10oxr_335", vi = "_rightSection_10oxr_347", Ci = "_helper_10oxr_385", wi = "_floatingLabel_10oxr_415", ki = "_focused_10oxr_481", Si = "_filled_10oxr_482", Li = "_L_10oxr_522", ji = "_characterLimit_10oxr_564", $i = "_textarea_10oxr_124", Ti = "_truncate_10oxr_707", M = {
|
|
2358
|
+
base: qs,
|
|
2340
2359
|
content: Hs,
|
|
2341
2360
|
background: Vs,
|
|
2342
2361
|
button: Zs,
|
|
2343
|
-
link:
|
|
2344
|
-
input:
|
|
2345
|
-
suffix:
|
|
2346
|
-
prefix:
|
|
2347
|
-
tooltip:
|
|
2348
|
-
hint:
|
|
2349
|
-
dropdown:
|
|
2350
|
-
popover:
|
|
2351
|
-
modalBackdrop:
|
|
2352
|
-
modal:
|
|
2353
|
-
overlay:
|
|
2354
|
-
drawer:
|
|
2355
|
-
notification:
|
|
2356
|
-
alert:
|
|
2357
|
-
toast:
|
|
2358
|
-
loading:
|
|
2359
|
-
error:
|
|
2360
|
-
critical:
|
|
2361
|
-
inputBase:
|
|
2362
|
-
wrapper:
|
|
2362
|
+
link: Xs,
|
|
2363
|
+
input: Ys,
|
|
2364
|
+
suffix: Gs,
|
|
2365
|
+
prefix: Us,
|
|
2366
|
+
tooltip: Ks,
|
|
2367
|
+
hint: Js,
|
|
2368
|
+
dropdown: Qs,
|
|
2369
|
+
popover: ti,
|
|
2370
|
+
modalBackdrop: ei,
|
|
2371
|
+
modal: ri,
|
|
2372
|
+
overlay: ni,
|
|
2373
|
+
drawer: oi,
|
|
2374
|
+
notification: ai,
|
|
2375
|
+
alert: si,
|
|
2376
|
+
toast: ii,
|
|
2377
|
+
loading: li,
|
|
2378
|
+
error: ci,
|
|
2379
|
+
critical: di,
|
|
2380
|
+
inputBase: ui,
|
|
2381
|
+
wrapper: _i,
|
|
2363
2382
|
"textarea-wrapper": "_textarea-wrapper_10oxr_124",
|
|
2364
2383
|
gripHandle: pi,
|
|
2365
|
-
tabFocused:
|
|
2366
|
-
disabled:
|
|
2367
|
-
label:
|
|
2368
|
-
S:
|
|
2384
|
+
tabFocused: fi,
|
|
2385
|
+
disabled: gi,
|
|
2386
|
+
label: hi,
|
|
2387
|
+
S: mi,
|
|
2369
2388
|
M: bi,
|
|
2370
|
-
XL:
|
|
2389
|
+
XL: xi,
|
|
2371
2390
|
leftSection: yi,
|
|
2372
|
-
rightSection:
|
|
2373
|
-
helper:
|
|
2374
|
-
floatingLabel:
|
|
2375
|
-
focused:
|
|
2391
|
+
rightSection: vi,
|
|
2392
|
+
helper: Ci,
|
|
2393
|
+
floatingLabel: wi,
|
|
2394
|
+
focused: ki,
|
|
2376
2395
|
filled: Si,
|
|
2377
|
-
L:
|
|
2378
|
-
characterLimit:
|
|
2379
|
-
textarea:
|
|
2396
|
+
L: Li,
|
|
2397
|
+
characterLimit: ji,
|
|
2398
|
+
textarea: $i,
|
|
2380
2399
|
"size-S": "_size-S_10oxr_646",
|
|
2381
2400
|
"size-M": "_size-M_10oxr_656",
|
|
2382
2401
|
"size-L": "_size-L_10oxr_662",
|
|
2383
2402
|
"size-XL": "_size-XL_10oxr_668",
|
|
2384
2403
|
"with-floating-label": "_with-floating-label_10oxr_675",
|
|
2385
|
-
truncate:
|
|
2404
|
+
truncate: Ti,
|
|
2386
2405
|
"has-hint": "_has-hint_10oxr_815",
|
|
2387
2406
|
"has-suffix": "_has-suffix_10oxr_821",
|
|
2388
2407
|
"has-limit": "_has-limit_10oxr_844"
|
|
2389
|
-
},
|
|
2408
|
+
}, Ei = ({
|
|
2390
2409
|
width: t = 8,
|
|
2391
2410
|
height: r = 8,
|
|
2392
2411
|
className: n,
|
|
@@ -2410,7 +2429,7 @@ const ka = (t) => {
|
|
|
2410
2429
|
}
|
|
2411
2430
|
)
|
|
2412
2431
|
}
|
|
2413
|
-
),
|
|
2432
|
+
), lr = ({
|
|
2414
2433
|
className: t = "",
|
|
2415
2434
|
style: r,
|
|
2416
2435
|
size: n = "md",
|
|
@@ -2424,7 +2443,7 @@ const ka = (t) => {
|
|
|
2424
2443
|
...{
|
|
2425
2444
|
xxxs: { width: "8px", height: "8px" },
|
|
2426
2445
|
xxs: { width: "12px", height: "12px" },
|
|
2427
|
-
xs: { width: "
|
|
2446
|
+
xs: { width: "20px", height: "20px" },
|
|
2428
2447
|
sm: { width: "24px", height: "24px" },
|
|
2429
2448
|
md: { width: "32px", height: "32px" },
|
|
2430
2449
|
lg: { width: "40px", height: "40px" }
|
|
@@ -2453,9 +2472,9 @@ const ka = (t) => {
|
|
|
2453
2472
|
)
|
|
2454
2473
|
}
|
|
2455
2474
|
);
|
|
2456
|
-
},
|
|
2475
|
+
}, Ni = (t, r) => {
|
|
2457
2476
|
const n = Vt(null), a = Vt(null);
|
|
2458
|
-
return
|
|
2477
|
+
return gt(() => {
|
|
2459
2478
|
const i = r === "textarea" ? n.current : a.current;
|
|
2460
2479
|
i && i.value !== t && (i.value = t || "");
|
|
2461
2480
|
}, [t, r]), {
|
|
@@ -2470,28 +2489,28 @@ const ka = (t) => {
|
|
|
2470
2489
|
if (n.current.style.setProperty("height", "auto", "important"), !t) return;
|
|
2471
2490
|
const s = n.current.scrollHeight + "px";
|
|
2472
2491
|
n.current.style.setProperty("height", s, "important"), n.current.scrollTop = i;
|
|
2473
|
-
const l = n.current.closest(`.${
|
|
2492
|
+
const l = n.current.closest(`.${M.wrapper}`);
|
|
2474
2493
|
l && (l.setAttribute("data-resize", "hug"), l.setAttribute("data-show-grip", "false"));
|
|
2475
2494
|
};
|
|
2476
|
-
return
|
|
2495
|
+
return gt(a, [t, r]), gt(() => {
|
|
2477
2496
|
r === "hug" && n.current && a();
|
|
2478
2497
|
}, []), { resizeTextArea: a };
|
|
2479
|
-
},
|
|
2498
|
+
}, Ii = (t, r, n, a) => ({ handleGripMouseDown: jt(
|
|
2480
2499
|
(s) => {
|
|
2481
2500
|
if (!t || r || n || !(a === "fixed" || !a)) return;
|
|
2482
2501
|
s.preventDefault(), s.stopPropagation();
|
|
2483
|
-
const l = s.currentTarget.closest(`.${
|
|
2502
|
+
const l = s.currentTarget.closest(`.${M.wrapper}`);
|
|
2484
2503
|
if (!l) return;
|
|
2485
|
-
const c = s.clientY,
|
|
2486
|
-
const b = g.clientY - c,
|
|
2487
|
-
l.style.height = `${
|
|
2504
|
+
const c = s.clientY, _ = l.clientHeight, f = (g) => {
|
|
2505
|
+
const b = g.clientY - c, m = Math.min(100, _), C = Math.max(m, _ + b);
|
|
2506
|
+
l.style.height = `${C}px`;
|
|
2488
2507
|
}, d = () => {
|
|
2489
2508
|
document.removeEventListener("mousemove", f), document.removeEventListener("mouseup", d);
|
|
2490
2509
|
};
|
|
2491
2510
|
document.addEventListener("mousemove", f), document.addEventListener("mouseup", d);
|
|
2492
2511
|
},
|
|
2493
2512
|
[t, r, n, a]
|
|
2494
|
-
) }), Xe = 30,
|
|
2513
|
+
) }), Xe = 30, Mi = U(
|
|
2495
2514
|
({
|
|
2496
2515
|
component: t = "input",
|
|
2497
2516
|
size: r = "L",
|
|
@@ -2501,46 +2520,46 @@ const ka = (t) => {
|
|
|
2501
2520
|
loading: s = !1,
|
|
2502
2521
|
onFocus: l,
|
|
2503
2522
|
onBlur: c,
|
|
2504
|
-
onChange:
|
|
2523
|
+
onChange: _,
|
|
2505
2524
|
onKeyDown: f,
|
|
2506
2525
|
onKeyUp: d,
|
|
2507
2526
|
maxLength: g,
|
|
2508
2527
|
className: b,
|
|
2509
|
-
style:
|
|
2510
|
-
truncate:
|
|
2511
|
-
shouldShowFloatingLabelClass:
|
|
2512
|
-
"aria-invalid":
|
|
2528
|
+
style: m,
|
|
2529
|
+
truncate: C = !1,
|
|
2530
|
+
shouldShowFloatingLabelClass: y = !1,
|
|
2531
|
+
"aria-invalid": h,
|
|
2513
2532
|
"aria-errormessage": x,
|
|
2514
|
-
id:
|
|
2533
|
+
id: u,
|
|
2515
2534
|
resize: w,
|
|
2516
2535
|
...S
|
|
2517
|
-
},
|
|
2518
|
-
const { textareaRef:
|
|
2519
|
-
if (Ri(n, w,
|
|
2536
|
+
}, E) => {
|
|
2537
|
+
const { textareaRef: j, inputRef: N, currentRef: T } = Ni(n, t);
|
|
2538
|
+
if (Ri(n, w, j), Ar(E, () => T.current, [T]), t === "textarea")
|
|
2520
2539
|
return /* @__PURE__ */ o.jsx(
|
|
2521
2540
|
"textarea",
|
|
2522
2541
|
{
|
|
2523
|
-
ref:
|
|
2524
|
-
id:
|
|
2542
|
+
ref: j,
|
|
2543
|
+
id: u,
|
|
2525
2544
|
value: n,
|
|
2526
2545
|
placeholder: a,
|
|
2527
2546
|
disabled: i || s,
|
|
2528
2547
|
onFocus: l,
|
|
2529
2548
|
onBlur: c,
|
|
2530
|
-
onChange:
|
|
2549
|
+
onChange: _,
|
|
2531
2550
|
onKeyDown: f,
|
|
2532
2551
|
onKeyUp: d,
|
|
2533
2552
|
maxLength: g,
|
|
2534
2553
|
className: k(
|
|
2535
|
-
|
|
2536
|
-
|
|
2537
|
-
|
|
2554
|
+
M.textarea,
|
|
2555
|
+
M[`size-${r}`],
|
|
2556
|
+
y && M["with-floating-label"],
|
|
2538
2557
|
b
|
|
2539
2558
|
),
|
|
2540
|
-
style:
|
|
2541
|
-
"aria-invalid":
|
|
2559
|
+
style: m,
|
|
2560
|
+
"aria-invalid": h,
|
|
2542
2561
|
"aria-errormessage": x,
|
|
2543
|
-
"aria-describedby": x ? `${
|
|
2562
|
+
"aria-describedby": x ? `${u}-error` : void 0,
|
|
2544
2563
|
tabIndex: 0,
|
|
2545
2564
|
"data-resize": w,
|
|
2546
2565
|
...S
|
|
@@ -2550,28 +2569,28 @@ const ka = (t) => {
|
|
|
2550
2569
|
return /* @__PURE__ */ o.jsx(
|
|
2551
2570
|
"input",
|
|
2552
2571
|
{
|
|
2553
|
-
ref:
|
|
2554
|
-
id:
|
|
2572
|
+
ref: N,
|
|
2573
|
+
id: u,
|
|
2555
2574
|
value: n,
|
|
2556
2575
|
placeholder: a,
|
|
2557
2576
|
disabled: i || s,
|
|
2558
2577
|
onFocus: l,
|
|
2559
2578
|
onBlur: c,
|
|
2560
|
-
onChange:
|
|
2579
|
+
onChange: _,
|
|
2561
2580
|
onKeyDown: f,
|
|
2562
2581
|
onKeyUp: d,
|
|
2563
2582
|
maxLength: g,
|
|
2564
2583
|
className: k(
|
|
2565
|
-
|
|
2566
|
-
|
|
2567
|
-
|
|
2568
|
-
|
|
2584
|
+
M.input,
|
|
2585
|
+
M[`size-${r}`],
|
|
2586
|
+
y && M["with-floating-label"],
|
|
2587
|
+
C && M.truncate,
|
|
2569
2588
|
b
|
|
2570
2589
|
),
|
|
2571
|
-
style:
|
|
2572
|
-
"aria-invalid":
|
|
2590
|
+
style: m,
|
|
2591
|
+
"aria-invalid": h,
|
|
2573
2592
|
"aria-errormessage": x,
|
|
2574
|
-
"aria-describedby": x ? `${
|
|
2593
|
+
"aria-describedby": x ? `${u}-error` : void 0,
|
|
2575
2594
|
tabIndex: 0,
|
|
2576
2595
|
...S
|
|
2577
2596
|
}
|
|
@@ -2581,7 +2600,7 @@ const ka = (t) => {
|
|
|
2581
2600
|
`[Input] Недопустимое значение prop 'component': "${String(t)}". Допустимые значения: 'input', 'textarea'`
|
|
2582
2601
|
), null;
|
|
2583
2602
|
}
|
|
2584
|
-
),
|
|
2603
|
+
), cr = U(
|
|
2585
2604
|
({
|
|
2586
2605
|
children: t,
|
|
2587
2606
|
size: r = "L",
|
|
@@ -2591,125 +2610,125 @@ const ka = (t) => {
|
|
|
2591
2610
|
className: s,
|
|
2592
2611
|
wrapperProps: l,
|
|
2593
2612
|
wrapperStyles: c,
|
|
2594
|
-
floatingLabelStyles:
|
|
2613
|
+
floatingLabelStyles: _,
|
|
2595
2614
|
prefixStyles: f,
|
|
2596
2615
|
suffixStyles: d,
|
|
2597
2616
|
labelProps: g,
|
|
2598
2617
|
helperProps: b,
|
|
2599
|
-
showLimit:
|
|
2600
|
-
maxLength:
|
|
2601
|
-
hint:
|
|
2602
|
-
showHint:
|
|
2618
|
+
showLimit: m = !1,
|
|
2619
|
+
maxLength: C,
|
|
2620
|
+
hint: y,
|
|
2621
|
+
showHint: h = !1,
|
|
2603
2622
|
showHintOnEmpty: x = !1,
|
|
2604
|
-
prefix:
|
|
2623
|
+
prefix: u,
|
|
2605
2624
|
suffix: w,
|
|
2606
2625
|
onSuffixClick: S,
|
|
2607
|
-
placeholder:
|
|
2608
|
-
showLabel:
|
|
2609
|
-
labelClassName:
|
|
2610
|
-
hasValue:
|
|
2611
|
-
helper:
|
|
2612
|
-
id:
|
|
2613
|
-
value:
|
|
2614
|
-
resize:
|
|
2626
|
+
placeholder: E,
|
|
2627
|
+
showLabel: j = !0,
|
|
2628
|
+
labelClassName: N,
|
|
2629
|
+
hasValue: T = !1,
|
|
2630
|
+
helper: R,
|
|
2631
|
+
id: O,
|
|
2632
|
+
value: D = "",
|
|
2633
|
+
resize: W,
|
|
2615
2634
|
showGrip: L = !1,
|
|
2616
|
-
...
|
|
2617
|
-
},
|
|
2618
|
-
const H =
|
|
2619
|
-
|
|
2620
|
-
|
|
2621
|
-
n &&
|
|
2622
|
-
a &&
|
|
2623
|
-
i &&
|
|
2624
|
-
K &&
|
|
2625
|
-
w &&
|
|
2626
|
-
|
|
2635
|
+
...A
|
|
2636
|
+
}, q) => {
|
|
2637
|
+
const H = be(), Z = O || H, K = h && y && (T || x), ot = y && y.length > Xe ? y.substring(0, Xe) + "..." : y, rt = k(
|
|
2638
|
+
M.wrapper,
|
|
2639
|
+
M[`size-${r}`],
|
|
2640
|
+
n && M.error,
|
|
2641
|
+
a && M.disabled,
|
|
2642
|
+
i && M.loading,
|
|
2643
|
+
K && M["has-hint"],
|
|
2644
|
+
w && M["has-suffix"],
|
|
2645
|
+
m && M["has-limit"],
|
|
2627
2646
|
s
|
|
2628
2647
|
), J = k(
|
|
2629
|
-
|
|
2630
|
-
|
|
2631
|
-
|
|
2632
|
-
|
|
2633
|
-
), { handleGripMouseDown: at } =
|
|
2634
|
-
return /* @__PURE__ */ o.jsxs("div", { ref:
|
|
2648
|
+
M.floatingLabel,
|
|
2649
|
+
M[r],
|
|
2650
|
+
T && M.filled,
|
|
2651
|
+
N
|
|
2652
|
+
), { handleGripMouseDown: at } = Ii(L, a, i, W);
|
|
2653
|
+
return /* @__PURE__ */ o.jsxs("div", { ref: q, className: M.inputBase, "data-testid": "input-base-wrapper", ...A, children: [
|
|
2635
2654
|
/* @__PURE__ */ o.jsxs(
|
|
2636
2655
|
"div",
|
|
2637
2656
|
{
|
|
2638
2657
|
className: rt,
|
|
2639
2658
|
style: c,
|
|
2640
|
-
"data-resize":
|
|
2659
|
+
"data-resize": W,
|
|
2641
2660
|
"data-show-grip": L ? "true" : "false",
|
|
2642
2661
|
...l,
|
|
2643
2662
|
children: [
|
|
2644
|
-
|
|
2663
|
+
u && /* @__PURE__ */ o.jsx("label", { htmlFor: Z, className: M.leftSection, style: f, children: u }),
|
|
2645
2664
|
w && /* @__PURE__ */ o.jsx(
|
|
2646
2665
|
"label",
|
|
2647
2666
|
{
|
|
2648
|
-
htmlFor:
|
|
2649
|
-
className:
|
|
2667
|
+
htmlFor: Z,
|
|
2668
|
+
className: M.rightSection,
|
|
2650
2669
|
style: d,
|
|
2651
2670
|
onClick: S,
|
|
2652
2671
|
children: w
|
|
2653
2672
|
}
|
|
2654
2673
|
),
|
|
2655
|
-
|
|
2674
|
+
E && j && /* @__PURE__ */ o.jsx(
|
|
2656
2675
|
"label",
|
|
2657
2676
|
{
|
|
2658
|
-
htmlFor:
|
|
2677
|
+
htmlFor: Z,
|
|
2659
2678
|
className: J,
|
|
2660
|
-
style:
|
|
2679
|
+
style: _,
|
|
2661
2680
|
...g,
|
|
2662
|
-
children:
|
|
2681
|
+
children: E
|
|
2663
2682
|
}
|
|
2664
2683
|
),
|
|
2665
2684
|
t,
|
|
2666
|
-
L && !
|
|
2685
|
+
L && !m && (W === "fixed" || !W) && /* @__PURE__ */ o.jsx(
|
|
2667
2686
|
"div",
|
|
2668
2687
|
{
|
|
2669
|
-
className:
|
|
2688
|
+
className: M.gripHandle,
|
|
2670
2689
|
onMouseDown: at,
|
|
2671
2690
|
role: "button",
|
|
2672
2691
|
tabIndex: -1,
|
|
2673
2692
|
"aria-label": "Изменить размер",
|
|
2674
|
-
children: /* @__PURE__ */ o.jsx(
|
|
2693
|
+
children: /* @__PURE__ */ o.jsx(Ei, {})
|
|
2675
2694
|
}
|
|
2676
2695
|
),
|
|
2677
2696
|
K && /* @__PURE__ */ o.jsx(
|
|
2678
2697
|
"div",
|
|
2679
2698
|
{
|
|
2680
|
-
className: k(
|
|
2699
|
+
className: k(M.hint, T && M.truncate),
|
|
2681
2700
|
"data-disabled": a || i,
|
|
2682
2701
|
children: ot
|
|
2683
2702
|
}
|
|
2684
2703
|
),
|
|
2685
|
-
|
|
2686
|
-
(
|
|
2704
|
+
m && C && /* @__PURE__ */ o.jsxs("div", { className: M.characterLimit, children: [
|
|
2705
|
+
(D || "").length,
|
|
2687
2706
|
" из ",
|
|
2688
|
-
|
|
2707
|
+
C
|
|
2689
2708
|
] })
|
|
2690
2709
|
]
|
|
2691
2710
|
}
|
|
2692
2711
|
),
|
|
2693
|
-
|
|
2712
|
+
R && /* @__PURE__ */ o.jsx(
|
|
2694
2713
|
"div",
|
|
2695
2714
|
{
|
|
2696
2715
|
className: k(
|
|
2697
|
-
|
|
2698
|
-
n &&
|
|
2699
|
-
(a || i) &&
|
|
2716
|
+
M.helper,
|
|
2717
|
+
n && M.error,
|
|
2718
|
+
(a || i) && M.disabled
|
|
2700
2719
|
),
|
|
2701
2720
|
...b,
|
|
2702
|
-
id: n ? `${
|
|
2703
|
-
children:
|
|
2721
|
+
id: n ? `${Z}-error` : void 0,
|
|
2722
|
+
children: R
|
|
2704
2723
|
}
|
|
2705
2724
|
)
|
|
2706
2725
|
] });
|
|
2707
2726
|
}
|
|
2708
2727
|
);
|
|
2709
|
-
|
|
2710
|
-
const Ye = Object.assign(
|
|
2711
|
-
Wrapper:
|
|
2712
|
-
}),
|
|
2728
|
+
cr.displayName = "InputWrapperComponent";
|
|
2729
|
+
const Ye = Object.assign(Mi, {
|
|
2730
|
+
Wrapper: cr
|
|
2731
|
+
}), dr = U(
|
|
2713
2732
|
({
|
|
2714
2733
|
component: t = "input",
|
|
2715
2734
|
size: r = "L",
|
|
@@ -2719,51 +2738,51 @@ const Ye = Object.assign(Ii, {
|
|
|
2719
2738
|
loading: s = !1,
|
|
2720
2739
|
placeholder: l,
|
|
2721
2740
|
showLabel: c = !0,
|
|
2722
|
-
labelClassName:
|
|
2741
|
+
labelClassName: _,
|
|
2723
2742
|
helper: f,
|
|
2724
2743
|
prefix: d,
|
|
2725
2744
|
suffix: g,
|
|
2726
2745
|
id: b,
|
|
2727
|
-
onFocus:
|
|
2728
|
-
onBlur:
|
|
2729
|
-
onKeyDown:
|
|
2730
|
-
onSuffixClick:
|
|
2746
|
+
onFocus: m,
|
|
2747
|
+
onBlur: C,
|
|
2748
|
+
onKeyDown: y,
|
|
2749
|
+
onSuffixClick: h,
|
|
2731
2750
|
onChange: x,
|
|
2732
|
-
value:
|
|
2751
|
+
value: u = "",
|
|
2733
2752
|
wrapperProps: w,
|
|
2734
2753
|
wrapperStyles: S,
|
|
2735
|
-
floatingLabelStyles:
|
|
2736
|
-
prefixStyles:
|
|
2737
|
-
suffixStyles:
|
|
2738
|
-
textareaStyles:
|
|
2739
|
-
labelProps:
|
|
2740
|
-
helperProps:
|
|
2741
|
-
showLimit:
|
|
2742
|
-
maxLength:
|
|
2754
|
+
floatingLabelStyles: E,
|
|
2755
|
+
prefixStyles: j,
|
|
2756
|
+
suffixStyles: N,
|
|
2757
|
+
textareaStyles: T,
|
|
2758
|
+
labelProps: R,
|
|
2759
|
+
helperProps: O,
|
|
2760
|
+
showLimit: D = !1,
|
|
2761
|
+
maxLength: W,
|
|
2743
2762
|
inputProps: L,
|
|
2744
|
-
hint:
|
|
2745
|
-
showHint:
|
|
2763
|
+
hint: A,
|
|
2764
|
+
showHint: q = !1,
|
|
2746
2765
|
showHintOnEmpty: H = !1,
|
|
2747
|
-
truncate:
|
|
2766
|
+
truncate: Z = !1,
|
|
2748
2767
|
resize: K,
|
|
2749
2768
|
showGrip: ot = !1,
|
|
2750
2769
|
...rt
|
|
2751
2770
|
}, J) => {
|
|
2752
|
-
const at =
|
|
2771
|
+
const at = be(), st = b || at, [wt, yt] = ft(u), it = u !== void 0 ? u : wt, Tt = (it || "").length > 0, ut = it || "", Mt = c && (r === "XL" || t === "textarea") && !d, re = jt(
|
|
2753
2772
|
(Q) => {
|
|
2754
2773
|
var tt;
|
|
2755
|
-
i || s || (
|
|
2774
|
+
i || s || (m == null || m(), (tt = L == null ? void 0 : L.onFocus) == null || tt.call(
|
|
2756
2775
|
L,
|
|
2757
2776
|
Q
|
|
2758
2777
|
));
|
|
2759
2778
|
},
|
|
2760
|
-
[
|
|
2761
|
-
),
|
|
2779
|
+
[m, L, i, s]
|
|
2780
|
+
), Xt = jt(
|
|
2762
2781
|
(Q) => {
|
|
2763
2782
|
var tt;
|
|
2764
2783
|
if (Q.key === "Tab") {
|
|
2765
|
-
const vt = Q.target.closest(`.${
|
|
2766
|
-
vt && vt.classList.add(
|
|
2784
|
+
const vt = Q.target.closest(`.${M.wrapper}`);
|
|
2785
|
+
vt && vt.classList.add(M.tabFocused);
|
|
2767
2786
|
}
|
|
2768
2787
|
(tt = L == null ? void 0 : L.onKeyUp) == null || tt.call(
|
|
2769
2788
|
L,
|
|
@@ -2771,31 +2790,31 @@ const Ye = Object.assign(Ii, {
|
|
|
2771
2790
|
);
|
|
2772
2791
|
},
|
|
2773
2792
|
[L]
|
|
2774
|
-
),
|
|
2793
|
+
), ne = jt(
|
|
2775
2794
|
(Q) => {
|
|
2776
2795
|
var vt;
|
|
2777
|
-
const tt = Q.target.closest(`.${
|
|
2778
|
-
tt && tt.classList.remove(
|
|
2796
|
+
const tt = Q.target.closest(`.${M.wrapper}`);
|
|
2797
|
+
tt && tt.classList.remove(M.tabFocused), C == null || C(), (vt = L == null ? void 0 : L.onBlur) == null || vt.call(
|
|
2779
2798
|
L,
|
|
2780
2799
|
Q
|
|
2781
2800
|
);
|
|
2782
2801
|
},
|
|
2783
|
-
[
|
|
2784
|
-
),
|
|
2802
|
+
[C, L]
|
|
2803
|
+
), oe = jt(
|
|
2785
2804
|
(Q) => {
|
|
2786
2805
|
var vt;
|
|
2787
2806
|
if (i || s) return;
|
|
2788
2807
|
const tt = Q.target.value;
|
|
2789
|
-
|
|
2808
|
+
yt(tt), x == null || x(tt, Q), (vt = L == null ? void 0 : L.onChange) == null || vt.call(
|
|
2790
2809
|
L,
|
|
2791
2810
|
Q
|
|
2792
2811
|
);
|
|
2793
2812
|
},
|
|
2794
2813
|
[x, L, i, s]
|
|
2795
2814
|
);
|
|
2796
|
-
return
|
|
2797
|
-
|
|
2798
|
-
}, [
|
|
2815
|
+
return gt(() => {
|
|
2816
|
+
yt(u || "");
|
|
2817
|
+
}, [u]), /* @__PURE__ */ o.jsx(
|
|
2799
2818
|
Ye.Wrapper,
|
|
2800
2819
|
{
|
|
2801
2820
|
ref: J,
|
|
@@ -2803,29 +2822,29 @@ const Ye = Object.assign(Ii, {
|
|
|
2803
2822
|
error: a,
|
|
2804
2823
|
disabled: i || s,
|
|
2805
2824
|
loading: s,
|
|
2806
|
-
className: k(n, t === "textarea" &&
|
|
2825
|
+
className: k(n, t === "textarea" && M["textarea-wrapper"]),
|
|
2807
2826
|
wrapperProps: w,
|
|
2808
2827
|
wrapperStyles: S,
|
|
2809
|
-
floatingLabelStyles:
|
|
2810
|
-
prefixStyles:
|
|
2811
|
-
suffixStyles:
|
|
2812
|
-
labelProps:
|
|
2813
|
-
helperProps:
|
|
2814
|
-
showLimit:
|
|
2815
|
-
maxLength:
|
|
2816
|
-
hint:
|
|
2817
|
-
showHint:
|
|
2828
|
+
floatingLabelStyles: E,
|
|
2829
|
+
prefixStyles: j,
|
|
2830
|
+
suffixStyles: N,
|
|
2831
|
+
labelProps: R,
|
|
2832
|
+
helperProps: O,
|
|
2833
|
+
showLimit: D,
|
|
2834
|
+
maxLength: W,
|
|
2835
|
+
hint: A,
|
|
2836
|
+
showHint: q,
|
|
2818
2837
|
showHintOnEmpty: H,
|
|
2819
2838
|
prefix: d,
|
|
2820
2839
|
suffix: g,
|
|
2821
|
-
onSuffixClick:
|
|
2840
|
+
onSuffixClick: h,
|
|
2822
2841
|
placeholder: l,
|
|
2823
2842
|
showLabel: c,
|
|
2824
|
-
labelClassName:
|
|
2843
|
+
labelClassName: _,
|
|
2825
2844
|
hasValue: Tt,
|
|
2826
2845
|
helper: f,
|
|
2827
2846
|
id: st,
|
|
2828
|
-
value:
|
|
2847
|
+
value: ut,
|
|
2829
2848
|
showGrip: ot,
|
|
2830
2849
|
resize: K,
|
|
2831
2850
|
...rt,
|
|
@@ -2834,20 +2853,20 @@ const Ye = Object.assign(Ii, {
|
|
|
2834
2853
|
{
|
|
2835
2854
|
component: t,
|
|
2836
2855
|
size: r,
|
|
2837
|
-
value:
|
|
2856
|
+
value: ut,
|
|
2838
2857
|
placeholder: l,
|
|
2839
2858
|
disabled: i,
|
|
2840
2859
|
loading: s,
|
|
2841
|
-
onFocus:
|
|
2842
|
-
onBlur:
|
|
2843
|
-
onChange:
|
|
2844
|
-
onKeyDown:
|
|
2845
|
-
onKeyUp:
|
|
2846
|
-
maxLength:
|
|
2847
|
-
truncate:
|
|
2860
|
+
onFocus: re,
|
|
2861
|
+
onBlur: ne,
|
|
2862
|
+
onChange: oe,
|
|
2863
|
+
onKeyDown: y,
|
|
2864
|
+
onKeyUp: Xt,
|
|
2865
|
+
maxLength: W,
|
|
2866
|
+
truncate: Z,
|
|
2848
2867
|
"data-empty": !Tt,
|
|
2849
|
-
shouldShowFloatingLabelClass:
|
|
2850
|
-
style: t === "textarea" ?
|
|
2868
|
+
shouldShowFloatingLabelClass: Mt,
|
|
2869
|
+
style: t === "textarea" ? T : void 0,
|
|
2851
2870
|
"aria-invalid": !!a,
|
|
2852
2871
|
"aria-errormessage": a ? `${st}-error` : void 0,
|
|
2853
2872
|
id: st,
|
|
@@ -2863,7 +2882,7 @@ const Ye = Object.assign(Ii, {
|
|
|
2863
2882
|
M: "M",
|
|
2864
2883
|
L: "L",
|
|
2865
2884
|
XL: "XL"
|
|
2866
|
-
},
|
|
2885
|
+
}, Bi = (t, r, n, a) => {
|
|
2867
2886
|
switch (t) {
|
|
2868
2887
|
case V.XL:
|
|
2869
2888
|
return r && n ? "8px 16px 8px 16px" : "16px 16px 16px 16px";
|
|
@@ -2876,7 +2895,7 @@ const Ye = Object.assign(Ii, {
|
|
|
2876
2895
|
default:
|
|
2877
2896
|
return "12px 16px 12px 16px";
|
|
2878
2897
|
}
|
|
2879
|
-
},
|
|
2898
|
+
}, Ai = (t) => {
|
|
2880
2899
|
switch (t) {
|
|
2881
2900
|
case V.XL:
|
|
2882
2901
|
return "56px";
|
|
@@ -2889,7 +2908,7 @@ const Ye = Object.assign(Ii, {
|
|
|
2889
2908
|
default:
|
|
2890
2909
|
return "48px";
|
|
2891
2910
|
}
|
|
2892
|
-
},
|
|
2911
|
+
}, Oi = (t) => {
|
|
2893
2912
|
switch (t) {
|
|
2894
2913
|
case V.S:
|
|
2895
2914
|
case V.M:
|
|
@@ -2900,7 +2919,7 @@ const Ye = Object.assign(Ii, {
|
|
|
2900
2919
|
default:
|
|
2901
2920
|
return 8;
|
|
2902
2921
|
}
|
|
2903
|
-
},
|
|
2922
|
+
}, Pi = (t) => {
|
|
2904
2923
|
switch (t) {
|
|
2905
2924
|
case V.S:
|
|
2906
2925
|
case V.M:
|
|
@@ -2931,7 +2950,7 @@ const Ye = Object.assign(Ii, {
|
|
|
2931
2950
|
padding: "6px",
|
|
2932
2951
|
cursor: "pointer"
|
|
2933
2952
|
}
|
|
2934
|
-
}),
|
|
2953
|
+
}), Di = (t, r, n, a) => ({
|
|
2935
2954
|
wrapperStyles: {
|
|
2936
2955
|
height: t,
|
|
2937
2956
|
minHeight: t,
|
|
@@ -2953,7 +2972,7 @@ const Ye = Object.assign(Ii, {
|
|
|
2953
2972
|
padding: "8px",
|
|
2954
2973
|
cursor: "pointer"
|
|
2955
2974
|
}
|
|
2956
|
-
}),
|
|
2975
|
+
}), Fi = (t, r, n, a) => ({
|
|
2957
2976
|
wrapperStyles: {
|
|
2958
2977
|
minHeight: t,
|
|
2959
2978
|
maxHeight: t,
|
|
@@ -2976,7 +2995,7 @@ const Ye = Object.assign(Ii, {
|
|
|
2976
2995
|
alignItems: "center",
|
|
2977
2996
|
justifyContent: "center"
|
|
2978
2997
|
}
|
|
2979
|
-
}),
|
|
2998
|
+
}), Wi = (t, r, n, a) => ({
|
|
2980
2999
|
wrapperStyles: {
|
|
2981
3000
|
minHeight: t,
|
|
2982
3001
|
maxHeight: t,
|
|
@@ -2996,15 +3015,15 @@ const Ye = Object.assign(Ii, {
|
|
|
2996
3015
|
padding: "6px",
|
|
2997
3016
|
cursor: "pointer"
|
|
2998
3017
|
}
|
|
2999
|
-
}),
|
|
3000
|
-
const i =
|
|
3018
|
+
}), qi = (t, r, n, a) => {
|
|
3019
|
+
const i = Ai(t), s = Bi(t, r, n, a), l = Pi(t), c = Oi(t);
|
|
3001
3020
|
switch (t) {
|
|
3002
3021
|
case V.XL:
|
|
3003
|
-
return Pi(i, s, l, c);
|
|
3004
|
-
case V.L:
|
|
3005
3022
|
return Di(i, s, l, c);
|
|
3006
|
-
case V.
|
|
3023
|
+
case V.L:
|
|
3007
3024
|
return Fi(i, s, l, c);
|
|
3025
|
+
case V.M:
|
|
3026
|
+
return Wi(i, s, l, c);
|
|
3008
3027
|
case V.S:
|
|
3009
3028
|
return zi(i, s, l, c);
|
|
3010
3029
|
default:
|
|
@@ -3015,7 +3034,7 @@ const Ye = Object.assign(Ii, {
|
|
|
3015
3034
|
suffixStyles: {}
|
|
3016
3035
|
};
|
|
3017
3036
|
}
|
|
3018
|
-
},
|
|
3037
|
+
}, wc = U(
|
|
3019
3038
|
({
|
|
3020
3039
|
value: t = "",
|
|
3021
3040
|
onChange: r,
|
|
@@ -3025,59 +3044,59 @@ const Ye = Object.assign(Ii, {
|
|
|
3025
3044
|
minLength: s,
|
|
3026
3045
|
autoComplete: l,
|
|
3027
3046
|
autoFocus: c,
|
|
3028
|
-
size:
|
|
3047
|
+
size: _ = V.L,
|
|
3029
3048
|
inputProps: f,
|
|
3030
3049
|
error: d,
|
|
3031
3050
|
disabled: g,
|
|
3032
3051
|
loading: b,
|
|
3033
|
-
helper:
|
|
3034
|
-
prefix:
|
|
3035
|
-
suffix:
|
|
3036
|
-
clearable:
|
|
3052
|
+
helper: m,
|
|
3053
|
+
prefix: C,
|
|
3054
|
+
suffix: y,
|
|
3055
|
+
clearable: h = !1,
|
|
3037
3056
|
id: x,
|
|
3038
|
-
showLabel:
|
|
3057
|
+
showLabel: u = !0,
|
|
3039
3058
|
onFocus: w,
|
|
3040
3059
|
onBlur: S,
|
|
3041
|
-
onSuffixClick:
|
|
3042
|
-
onClear:
|
|
3043
|
-
className:
|
|
3044
|
-
truncate:
|
|
3045
|
-
hint:
|
|
3046
|
-
showHint:
|
|
3047
|
-
showHintOnEmpty:
|
|
3048
|
-
wrapperProps:
|
|
3060
|
+
onSuffixClick: E,
|
|
3061
|
+
onClear: j,
|
|
3062
|
+
className: N,
|
|
3063
|
+
truncate: T = !0,
|
|
3064
|
+
hint: R,
|
|
3065
|
+
showHint: O = !1,
|
|
3066
|
+
showHintOnEmpty: D = !1,
|
|
3067
|
+
wrapperProps: W,
|
|
3049
3068
|
labelProps: L,
|
|
3050
|
-
helperProps:
|
|
3051
|
-
...
|
|
3069
|
+
helperProps: A,
|
|
3070
|
+
...q
|
|
3052
3071
|
}, H) => {
|
|
3053
|
-
const
|
|
3054
|
-
r == null || r(""),
|
|
3072
|
+
const Z = (t || "").length > 0, K = _ === V.XL, ot = !!C, rt = K && u && !C, J = h && Z && !(g || b), at = () => {
|
|
3073
|
+
r == null || r(""), j == null || j();
|
|
3055
3074
|
}, st = () => {
|
|
3056
|
-
J && at(),
|
|
3075
|
+
J && at(), E == null || E();
|
|
3057
3076
|
}, wt = J ? /* @__PURE__ */ o.jsx(
|
|
3058
|
-
|
|
3077
|
+
lr,
|
|
3059
3078
|
{
|
|
3060
|
-
size:
|
|
3079
|
+
size: _ === V.S || _ === V.M ? "xs" : "sm",
|
|
3061
3080
|
color: "var(--icon-secondary)",
|
|
3062
3081
|
style: { cursor: "pointer" },
|
|
3063
3082
|
"data-testid": "x-icon"
|
|
3064
3083
|
}
|
|
3065
|
-
) :
|
|
3084
|
+
) : y, yt = {
|
|
3066
3085
|
type: n,
|
|
3067
3086
|
minLength: s,
|
|
3068
3087
|
autoComplete: l,
|
|
3069
3088
|
autoFocus: c,
|
|
3070
3089
|
...f
|
|
3071
|
-
}, it =
|
|
3090
|
+
}, it = qi(_, rt, Z, ot);
|
|
3072
3091
|
return /* @__PURE__ */ o.jsx(
|
|
3073
|
-
|
|
3092
|
+
dr,
|
|
3074
3093
|
{
|
|
3075
|
-
size:
|
|
3094
|
+
size: _,
|
|
3076
3095
|
error: d,
|
|
3077
3096
|
disabled: g || b,
|
|
3078
3097
|
loading: b,
|
|
3079
|
-
helper:
|
|
3080
|
-
prefix:
|
|
3098
|
+
helper: m,
|
|
3099
|
+
prefix: C,
|
|
3081
3100
|
suffix: wt,
|
|
3082
3101
|
id: x,
|
|
3083
3102
|
showLabel: rt,
|
|
@@ -3087,44 +3106,44 @@ const Ye = Object.assign(Ii, {
|
|
|
3087
3106
|
onChange: r,
|
|
3088
3107
|
value: t,
|
|
3089
3108
|
placeholder: a,
|
|
3090
|
-
className:
|
|
3109
|
+
className: N,
|
|
3091
3110
|
wrapperStyles: it.wrapperStyles,
|
|
3092
3111
|
floatingLabelStyles: it.floatingLabelStyles,
|
|
3093
3112
|
prefixStyles: it.prefixStyles,
|
|
3094
3113
|
suffixStyles: it.suffixStyles,
|
|
3095
|
-
wrapperProps:
|
|
3114
|
+
wrapperProps: W,
|
|
3096
3115
|
labelProps: L,
|
|
3097
|
-
helperProps:
|
|
3116
|
+
helperProps: A,
|
|
3098
3117
|
showLimit: !1,
|
|
3099
3118
|
maxLength: i,
|
|
3100
|
-
inputProps:
|
|
3101
|
-
hint:
|
|
3102
|
-
showHint:
|
|
3103
|
-
showHintOnEmpty:
|
|
3104
|
-
truncate:
|
|
3105
|
-
...
|
|
3119
|
+
inputProps: yt,
|
|
3120
|
+
hint: R,
|
|
3121
|
+
showHint: O,
|
|
3122
|
+
showHintOnEmpty: D,
|
|
3123
|
+
truncate: T,
|
|
3124
|
+
...q
|
|
3106
3125
|
}
|
|
3107
3126
|
);
|
|
3108
3127
|
}
|
|
3109
|
-
),
|
|
3128
|
+
), pt = {
|
|
3110
3129
|
M: "M",
|
|
3111
3130
|
L: "L"
|
|
3112
|
-
},
|
|
3131
|
+
}, te = {
|
|
3113
3132
|
M: "12px",
|
|
3114
3133
|
L: "16px"
|
|
3115
3134
|
}, Hi = {
|
|
3116
3135
|
M: "xs",
|
|
3117
3136
|
L: "sm"
|
|
3118
|
-
},
|
|
3137
|
+
}, Jt = {
|
|
3119
3138
|
FILL: "fill",
|
|
3120
3139
|
FIXED: "fixed"
|
|
3121
|
-
},
|
|
3140
|
+
}, _e = {
|
|
3122
3141
|
M: "112px",
|
|
3123
3142
|
L: "56px"
|
|
3124
|
-
},
|
|
3143
|
+
}, Ot = {
|
|
3125
3144
|
M: "48px",
|
|
3126
3145
|
L: "22px"
|
|
3127
|
-
},
|
|
3146
|
+
}, St = {
|
|
3128
3147
|
M: "12px 12px 12px 12px",
|
|
3129
3148
|
L: "16px 16px 16px 16px",
|
|
3130
3149
|
L_WITH_PREFIX: "12px 16px 12px 16px",
|
|
@@ -3134,57 +3153,57 @@ const Ye = Object.assign(Ii, {
|
|
|
3134
3153
|
L: 56,
|
|
3135
3154
|
XL: 112
|
|
3136
3155
|
}, Vi = (t, r) => {
|
|
3137
|
-
if (t ===
|
|
3138
|
-
return
|
|
3156
|
+
if (t === pt.M)
|
|
3157
|
+
return _e.M;
|
|
3139
3158
|
if (r)
|
|
3140
3159
|
return `${r}px`;
|
|
3141
3160
|
switch (t) {
|
|
3142
|
-
case
|
|
3143
|
-
return
|
|
3161
|
+
case pt.L:
|
|
3162
|
+
return _e.L;
|
|
3144
3163
|
default:
|
|
3145
|
-
return
|
|
3164
|
+
return _e.L;
|
|
3146
3165
|
}
|
|
3147
3166
|
}, Zi = (t, r) => {
|
|
3148
|
-
if (t ===
|
|
3149
|
-
return
|
|
3167
|
+
if (t === pt.M)
|
|
3168
|
+
return Ot.M;
|
|
3150
3169
|
if (r)
|
|
3151
3170
|
switch (r) {
|
|
3152
3171
|
case $t.M:
|
|
3153
3172
|
case $t.L:
|
|
3154
|
-
return
|
|
3173
|
+
return Ot.L;
|
|
3155
3174
|
case $t.XL:
|
|
3156
|
-
return
|
|
3175
|
+
return Ot.M;
|
|
3157
3176
|
default:
|
|
3158
|
-
return
|
|
3177
|
+
return Ot.L;
|
|
3159
3178
|
}
|
|
3160
3179
|
switch (t) {
|
|
3161
|
-
case
|
|
3162
|
-
return
|
|
3180
|
+
case pt.L:
|
|
3181
|
+
return Ot.L;
|
|
3163
3182
|
default:
|
|
3164
|
-
return
|
|
3183
|
+
return Ot.L;
|
|
3165
3184
|
}
|
|
3166
|
-
},
|
|
3167
|
-
if (t ===
|
|
3168
|
-
return
|
|
3185
|
+
}, Xi = (t, r, n) => {
|
|
3186
|
+
if (t === pt.M)
|
|
3187
|
+
return St.M;
|
|
3169
3188
|
if (r)
|
|
3170
3189
|
switch (r) {
|
|
3171
3190
|
case $t.M:
|
|
3172
|
-
return
|
|
3191
|
+
return St.L_WITH_PREFIX;
|
|
3173
3192
|
case $t.L:
|
|
3174
|
-
return n ?
|
|
3193
|
+
return n ? St.L_FLOATING_LABEL : St.L;
|
|
3175
3194
|
case $t.XL:
|
|
3176
|
-
return
|
|
3195
|
+
return St.L;
|
|
3177
3196
|
default:
|
|
3178
|
-
return
|
|
3197
|
+
return St.L;
|
|
3179
3198
|
}
|
|
3180
3199
|
switch (t) {
|
|
3181
|
-
case
|
|
3182
|
-
return n ?
|
|
3200
|
+
case pt.L:
|
|
3201
|
+
return n ? St.L_FLOATING_LABEL : St.L;
|
|
3183
3202
|
default:
|
|
3184
|
-
return
|
|
3203
|
+
return St.L;
|
|
3185
3204
|
}
|
|
3186
|
-
},
|
|
3187
|
-
if (t ===
|
|
3205
|
+
}, Yi = (t, r) => {
|
|
3206
|
+
if (t === pt.M)
|
|
3188
3207
|
return "M";
|
|
3189
3208
|
if (r)
|
|
3190
3209
|
switch (r) {
|
|
@@ -3198,37 +3217,37 @@ const Ye = Object.assign(Ii, {
|
|
|
3198
3217
|
return "L";
|
|
3199
3218
|
}
|
|
3200
3219
|
return t;
|
|
3201
|
-
},
|
|
3202
|
-
const i = Vi(t, r), s = Zi(t, r), l =
|
|
3220
|
+
}, Gi = (t) => Hi[t], Ui = (t) => te[t], Ki = (t, r, n, a) => {
|
|
3221
|
+
const i = Vi(t, r), s = Zi(t, r), l = Xi(t, r, n);
|
|
3203
3222
|
return {
|
|
3204
3223
|
wrapperStyles: {
|
|
3205
3224
|
minHeight: i,
|
|
3206
3225
|
// Для fill resize устанавливаем height: 100%
|
|
3207
|
-
...a ===
|
|
3226
|
+
...a === Jt.FILL && { height: "100%" },
|
|
3208
3227
|
// Для fixed resize устанавливаем фиксированную высоту
|
|
3209
|
-
...a ===
|
|
3228
|
+
...a === Jt.FIXED && r && { height: i },
|
|
3210
3229
|
boxSizing: "border-box",
|
|
3211
3230
|
padding: l
|
|
3212
3231
|
},
|
|
3213
3232
|
floatingLabelStyles: {
|
|
3214
|
-
left: t ===
|
|
3233
|
+
left: t === pt.M ? te.M : te.L,
|
|
3215
3234
|
transformOrigin: "left top",
|
|
3216
|
-
top: r === 112 && n && t ===
|
|
3235
|
+
top: r === 112 && n && t === pt.L ? te.L : void 0
|
|
3217
3236
|
},
|
|
3218
3237
|
suffixStyles: {
|
|
3219
|
-
right:
|
|
3220
|
-
top: r === 48 && t ===
|
|
3238
|
+
right: Ui(t),
|
|
3239
|
+
top: r === 48 && t === pt.L ? "11px" : void 0,
|
|
3221
3240
|
boxSizing: "border-box"
|
|
3222
3241
|
},
|
|
3223
3242
|
textareaStyles: {
|
|
3224
3243
|
minHeight: s,
|
|
3225
3244
|
// Для fill resize flex: 1
|
|
3226
|
-
...a ===
|
|
3245
|
+
...a === Jt.FILL && { flex: 1, minHeight: 0 },
|
|
3227
3246
|
// Для fixed resize фиксированная высота
|
|
3228
|
-
...a ===
|
|
3247
|
+
...a === Jt.FIXED && r && { height: s }
|
|
3229
3248
|
}
|
|
3230
3249
|
};
|
|
3231
|
-
},
|
|
3250
|
+
}, kc = U(
|
|
3232
3251
|
({
|
|
3233
3252
|
value: t = "",
|
|
3234
3253
|
onChange: r,
|
|
@@ -3236,65 +3255,65 @@ const Ye = Object.assign(Ii, {
|
|
|
3236
3255
|
maxLength: a,
|
|
3237
3256
|
minLength: i,
|
|
3238
3257
|
autoFocus: s,
|
|
3239
|
-
size: l =
|
|
3258
|
+
size: l = pt.L,
|
|
3240
3259
|
textareaProps: c,
|
|
3241
|
-
error:
|
|
3260
|
+
error: _,
|
|
3242
3261
|
disabled: f,
|
|
3243
3262
|
loading: d,
|
|
3244
3263
|
helper: g,
|
|
3245
3264
|
suffix: b,
|
|
3246
|
-
clearable:
|
|
3247
|
-
id:
|
|
3248
|
-
showLabel:
|
|
3249
|
-
onFocus:
|
|
3265
|
+
clearable: m = !1,
|
|
3266
|
+
id: C,
|
|
3267
|
+
showLabel: y = !0,
|
|
3268
|
+
onFocus: h,
|
|
3250
3269
|
onBlur: x,
|
|
3251
|
-
onClear:
|
|
3270
|
+
onClear: u,
|
|
3252
3271
|
onKeyDown: w,
|
|
3253
3272
|
className: S,
|
|
3254
|
-
rows:
|
|
3255
|
-
showLimit:
|
|
3256
|
-
wrapperProps:
|
|
3257
|
-
labelProps:
|
|
3258
|
-
helperProps:
|
|
3259
|
-
showGrip:
|
|
3260
|
-
minHeight:
|
|
3261
|
-
resize:
|
|
3273
|
+
rows: E = 1,
|
|
3274
|
+
showLimit: j = !1,
|
|
3275
|
+
wrapperProps: N,
|
|
3276
|
+
labelProps: T,
|
|
3277
|
+
helperProps: R,
|
|
3278
|
+
showGrip: O,
|
|
3279
|
+
minHeight: D,
|
|
3280
|
+
resize: W,
|
|
3262
3281
|
...L
|
|
3263
|
-
},
|
|
3264
|
-
const
|
|
3265
|
-
r == null || r(""),
|
|
3282
|
+
}, A) => {
|
|
3283
|
+
const q = (t || "").length > 0, H = y && !!n && (l === pt.M || D !== 48), Z = m && q && !(f || d), K = () => {
|
|
3284
|
+
r == null || r(""), u == null || u();
|
|
3266
3285
|
}, ot = () => {
|
|
3267
|
-
|
|
3268
|
-
}, rt =
|
|
3269
|
-
|
|
3286
|
+
Z && K();
|
|
3287
|
+
}, rt = Z ? /* @__PURE__ */ o.jsx(
|
|
3288
|
+
lr,
|
|
3270
3289
|
{
|
|
3271
|
-
size:
|
|
3290
|
+
size: Gi(l),
|
|
3272
3291
|
color: "var(--icon-secondary)",
|
|
3273
3292
|
style: { cursor: "pointer" },
|
|
3274
3293
|
"data-testid": "x-icon"
|
|
3275
3294
|
}
|
|
3276
|
-
) : b, J =
|
|
3277
|
-
rows:
|
|
3295
|
+
) : b, J = Ki(l, D, H && q, W), at = Yi(l, D), st = {
|
|
3296
|
+
rows: E,
|
|
3278
3297
|
minLength: i,
|
|
3279
3298
|
autoFocus: s,
|
|
3280
|
-
resize:
|
|
3299
|
+
resize: W,
|
|
3281
3300
|
...c
|
|
3282
3301
|
};
|
|
3283
3302
|
return /* @__PURE__ */ o.jsx(
|
|
3284
|
-
|
|
3303
|
+
dr,
|
|
3285
3304
|
{
|
|
3286
|
-
ref:
|
|
3305
|
+
ref: A,
|
|
3287
3306
|
component: "textarea",
|
|
3288
3307
|
size: at,
|
|
3289
|
-
error:
|
|
3308
|
+
error: _,
|
|
3290
3309
|
disabled: f || d,
|
|
3291
3310
|
loading: d,
|
|
3292
3311
|
onSuffixClick: ot,
|
|
3293
3312
|
helper: g,
|
|
3294
3313
|
suffix: rt,
|
|
3295
|
-
id:
|
|
3314
|
+
id: C,
|
|
3296
3315
|
showLabel: H,
|
|
3297
|
-
onFocus:
|
|
3316
|
+
onFocus: h,
|
|
3298
3317
|
onBlur: x,
|
|
3299
3318
|
onKeyDown: w,
|
|
3300
3319
|
onChange: r,
|
|
@@ -3306,23 +3325,23 @@ const Ye = Object.assign(Ii, {
|
|
|
3306
3325
|
floatingLabelStyles: J.floatingLabelStyles,
|
|
3307
3326
|
suffixStyles: J.suffixStyles,
|
|
3308
3327
|
textareaStyles: J.textareaStyles,
|
|
3309
|
-
wrapperProps:
|
|
3310
|
-
labelProps:
|
|
3311
|
-
helperProps:
|
|
3312
|
-
showLimit:
|
|
3328
|
+
wrapperProps: N,
|
|
3329
|
+
labelProps: T,
|
|
3330
|
+
helperProps: R,
|
|
3331
|
+
showLimit: j && (D === 112 || l === pt.M),
|
|
3313
3332
|
maxLength: a,
|
|
3314
3333
|
inputProps: st,
|
|
3315
|
-
resize:
|
|
3316
|
-
showGrip:
|
|
3334
|
+
resize: W,
|
|
3335
|
+
showGrip: O,
|
|
3317
3336
|
...L
|
|
3318
3337
|
}
|
|
3319
3338
|
);
|
|
3320
3339
|
}
|
|
3321
|
-
),
|
|
3322
|
-
helper:
|
|
3340
|
+
), Ji = "_helper_1jq7j_16", pe = {
|
|
3341
|
+
helper: Ji,
|
|
3323
3342
|
"helper--error": "_helper--error_1jq7j_28",
|
|
3324
3343
|
"helper--disabled": "_helper--disabled_1jq7j_33"
|
|
3325
|
-
},
|
|
3344
|
+
}, Sc = ({
|
|
3326
3345
|
title: t,
|
|
3327
3346
|
error: r,
|
|
3328
3347
|
className: n = "",
|
|
@@ -3332,10 +3351,10 @@ const Ye = Object.assign(Ii, {
|
|
|
3332
3351
|
"aria-label": l,
|
|
3333
3352
|
"aria-describedby": c
|
|
3334
3353
|
}) => {
|
|
3335
|
-
const
|
|
3336
|
-
|
|
3337
|
-
|
|
3338
|
-
i &&
|
|
3354
|
+
const _ = !!r, f = k(
|
|
3355
|
+
pe.helper,
|
|
3356
|
+
_ && pe["helper--error"],
|
|
3357
|
+
i && pe["helper--disabled"],
|
|
3339
3358
|
n
|
|
3340
3359
|
), d = i ? t : r || t;
|
|
3341
3360
|
return /* @__PURE__ */ o.jsx(
|
|
@@ -3349,24 +3368,24 @@ const Ye = Object.assign(Ii, {
|
|
|
3349
3368
|
children: /* @__PURE__ */ o.jsx("p", { children: d })
|
|
3350
3369
|
}
|
|
3351
3370
|
);
|
|
3352
|
-
},
|
|
3371
|
+
}, Qi = "_radio_1n8zx_59", tl = "_checked_1n8zx_80", el = "_error_1n8zx_85", rl = "_disabled_1n8zx_94", nl = "_icon_1n8zx_130", ol = "_small_1n8zx_138", al = "_medium_1n8zx_145", sl = "_large_1n8zx_152", il = "_label_1n8zx_159", ll = "_container_1n8zx_185", cl = "_input_1n8zx_198", dl = "_card_1n8zx_205", ul = "_smallCard_1n8zx_211", _l = "_mediumCard_1n8zx_215", pl = "_largeCard_1n8zx_219", _t = {
|
|
3353
3372
|
default: "_default_1n8zx_53",
|
|
3354
|
-
radio:
|
|
3355
|
-
checked:
|
|
3356
|
-
error:
|
|
3357
|
-
disabled:
|
|
3358
|
-
icon:
|
|
3359
|
-
small:
|
|
3360
|
-
medium:
|
|
3361
|
-
large:
|
|
3362
|
-
label:
|
|
3363
|
-
container:
|
|
3364
|
-
input:
|
|
3365
|
-
card:
|
|
3366
|
-
smallCard:
|
|
3367
|
-
mediumCard:
|
|
3373
|
+
radio: Qi,
|
|
3374
|
+
checked: tl,
|
|
3375
|
+
error: el,
|
|
3376
|
+
disabled: rl,
|
|
3377
|
+
icon: nl,
|
|
3378
|
+
small: ol,
|
|
3379
|
+
medium: al,
|
|
3380
|
+
large: sl,
|
|
3381
|
+
label: il,
|
|
3382
|
+
container: ll,
|
|
3383
|
+
input: cl,
|
|
3384
|
+
card: dl,
|
|
3385
|
+
smallCard: ul,
|
|
3386
|
+
mediumCard: _l,
|
|
3368
3387
|
largeCard: pl
|
|
3369
|
-
},
|
|
3388
|
+
}, fl = "radio-container-", gl = "radio-label", ur = U(
|
|
3370
3389
|
(t, r) => {
|
|
3371
3390
|
const {
|
|
3372
3391
|
name: n,
|
|
@@ -3375,24 +3394,24 @@ const Ye = Object.assign(Ii, {
|
|
|
3375
3394
|
size: s = "large",
|
|
3376
3395
|
loading: l = !1,
|
|
3377
3396
|
error: c,
|
|
3378
|
-
disabled:
|
|
3397
|
+
disabled: _ = !1,
|
|
3379
3398
|
checked: f = !1,
|
|
3380
3399
|
containerClassName: d,
|
|
3381
3400
|
className: g,
|
|
3382
3401
|
children: b,
|
|
3383
|
-
clickable:
|
|
3384
|
-
mode:
|
|
3385
|
-
tabIndex:
|
|
3386
|
-
style:
|
|
3402
|
+
clickable: m = "all",
|
|
3403
|
+
mode: C = "default",
|
|
3404
|
+
tabIndex: y,
|
|
3405
|
+
style: h,
|
|
3387
3406
|
containerStyle: x,
|
|
3388
|
-
onChange:
|
|
3407
|
+
onChange: u,
|
|
3389
3408
|
"data-testid": w,
|
|
3390
3409
|
...S
|
|
3391
|
-
} = t,
|
|
3392
|
-
|
|
3393
|
-
},
|
|
3394
|
-
H.key === "Enter" &&
|
|
3395
|
-
}, L = (H) => H.stopPropagation(),
|
|
3410
|
+
} = t, E = !!c, j = _ || l, N = m === "all", T = C === "card", R = _t[`${s}Card`], O = a ?? n, D = (H) => {
|
|
3411
|
+
j || u == null || u(i, H);
|
|
3412
|
+
}, W = (H) => {
|
|
3413
|
+
H.key === "Enter" && !j && (H.preventDefault(), u == null || u(i));
|
|
3414
|
+
}, L = (H) => H.stopPropagation(), A = () => /* @__PURE__ */ o.jsxs(
|
|
3396
3415
|
"div",
|
|
3397
3416
|
{
|
|
3398
3417
|
className: k(
|
|
@@ -3400,75 +3419,75 @@ const Ye = Object.assign(Ii, {
|
|
|
3400
3419
|
_t[s],
|
|
3401
3420
|
{
|
|
3402
3421
|
[_t.checked]: f,
|
|
3403
|
-
[_t.disabled]:
|
|
3404
|
-
[_t.error]:
|
|
3422
|
+
[_t.disabled]: j,
|
|
3423
|
+
[_t.error]: E && !j
|
|
3405
3424
|
},
|
|
3406
3425
|
g
|
|
3407
3426
|
),
|
|
3408
|
-
style:
|
|
3409
|
-
tabIndex:
|
|
3410
|
-
"data-testid": `${
|
|
3427
|
+
style: h,
|
|
3428
|
+
tabIndex: y || 1,
|
|
3429
|
+
"data-testid": `${fl}${O}`,
|
|
3411
3430
|
children: [
|
|
3412
3431
|
/* @__PURE__ */ o.jsx(
|
|
3413
3432
|
"input",
|
|
3414
3433
|
{
|
|
3415
3434
|
"aria-errormessage": c,
|
|
3416
|
-
"aria-invalid":
|
|
3435
|
+
"aria-invalid": E,
|
|
3417
3436
|
checked: f,
|
|
3418
3437
|
className: _t.input,
|
|
3419
|
-
"data-testid": `radio-${
|
|
3420
|
-
disabled:
|
|
3421
|
-
id:
|
|
3438
|
+
"data-testid": `radio-${O}`,
|
|
3439
|
+
disabled: j,
|
|
3440
|
+
id: O,
|
|
3422
3441
|
name: n,
|
|
3423
3442
|
ref: r,
|
|
3424
3443
|
type: "radio",
|
|
3425
3444
|
value: i,
|
|
3426
|
-
onChange:
|
|
3445
|
+
onChange: D,
|
|
3427
3446
|
onClick: L
|
|
3428
3447
|
}
|
|
3429
3448
|
),
|
|
3430
|
-
/* @__PURE__ */ o.jsx("svg", { "data-testid": `radio-icon-${
|
|
3449
|
+
/* @__PURE__ */ o.jsx("svg", { "data-testid": `radio-icon-${O}`, viewBox: "0 0 8 8", className: _t.icon, children: /* @__PURE__ */ o.jsx("circle", { cx: 4, cy: 4, fill: "current", r: 4 }) })
|
|
3431
3450
|
]
|
|
3432
3451
|
}
|
|
3433
|
-
),
|
|
3452
|
+
), q = () => /* @__PURE__ */ o.jsxs(
|
|
3434
3453
|
"label",
|
|
3435
3454
|
{
|
|
3436
3455
|
"aria-checked": f,
|
|
3437
|
-
"aria-disabled":
|
|
3438
|
-
"data-testid":
|
|
3439
|
-
htmlFor:
|
|
3456
|
+
"aria-disabled": j,
|
|
3457
|
+
"data-testid": N ? w : gl,
|
|
3458
|
+
htmlFor: O,
|
|
3440
3459
|
style: x,
|
|
3441
3460
|
className: k(_t.label, {
|
|
3442
|
-
[k(_t.container, _t[
|
|
3443
|
-
[
|
|
3461
|
+
[k(_t.container, _t[C], d)]: N,
|
|
3462
|
+
[R]: N && T
|
|
3444
3463
|
}),
|
|
3445
|
-
onKeyDown:
|
|
3464
|
+
onKeyDown: W,
|
|
3446
3465
|
...S,
|
|
3447
3466
|
children: [
|
|
3448
|
-
|
|
3449
|
-
|
|
3467
|
+
A(),
|
|
3468
|
+
N && b
|
|
3450
3469
|
]
|
|
3451
3470
|
}
|
|
3452
3471
|
);
|
|
3453
|
-
return
|
|
3472
|
+
return N ? q() : /* @__PURE__ */ o.jsxs(
|
|
3454
3473
|
"div",
|
|
3455
3474
|
{
|
|
3456
|
-
className: k(_t.container, _t[
|
|
3457
|
-
[
|
|
3475
|
+
className: k(_t.container, _t[C], d, {
|
|
3476
|
+
[R]: T
|
|
3458
3477
|
}),
|
|
3459
3478
|
"data-testid": w,
|
|
3460
3479
|
children: [
|
|
3461
|
-
|
|
3480
|
+
q(),
|
|
3462
3481
|
b
|
|
3463
3482
|
]
|
|
3464
3483
|
}
|
|
3465
3484
|
);
|
|
3466
3485
|
}
|
|
3467
|
-
),
|
|
3468
|
-
group:
|
|
3469
|
-
vertical:
|
|
3486
|
+
), hl = "_group_tnviu_7", ml = "_vertical_tnviu_12", bl = "_horizontal_tnviu_16", Ge = {
|
|
3487
|
+
group: hl,
|
|
3488
|
+
vertical: ml,
|
|
3470
3489
|
horizontal: bl
|
|
3471
|
-
},
|
|
3490
|
+
}, xl = U(
|
|
3472
3491
|
(t, r) => {
|
|
3473
3492
|
const {
|
|
3474
3493
|
id: n,
|
|
@@ -3477,7 +3496,7 @@ const Ye = Object.assign(Ii, {
|
|
|
3477
3496
|
options: s,
|
|
3478
3497
|
className: l,
|
|
3479
3498
|
radioClassName: c,
|
|
3480
|
-
disabled:
|
|
3499
|
+
disabled: _ = !1,
|
|
3481
3500
|
layout: f = "vertical",
|
|
3482
3501
|
"data-testid": d,
|
|
3483
3502
|
...g
|
|
@@ -3485,45 +3504,45 @@ const Ye = Object.assign(Ii, {
|
|
|
3485
3504
|
return /* @__PURE__ */ o.jsx(
|
|
3486
3505
|
"div",
|
|
3487
3506
|
{
|
|
3488
|
-
className:
|
|
3507
|
+
className: It(Ge.group, Ge[f], l),
|
|
3489
3508
|
"data-testid": d ?? `radio-group-${a}`,
|
|
3490
3509
|
id: n,
|
|
3491
3510
|
ref: r,
|
|
3492
|
-
children: s.map(({ label: b, value:
|
|
3493
|
-
const
|
|
3511
|
+
children: s.map(({ label: b, value: m, disabled: C }) => {
|
|
3512
|
+
const y = `${a}-${String(m)}`, h = String(m) === String(i);
|
|
3494
3513
|
return /* @__PURE__ */ o.jsx(
|
|
3495
|
-
|
|
3514
|
+
ur,
|
|
3496
3515
|
{
|
|
3497
|
-
id:
|
|
3498
|
-
checked:
|
|
3499
|
-
"data-testid":
|
|
3500
|
-
disabled:
|
|
3516
|
+
id: y,
|
|
3517
|
+
checked: h,
|
|
3518
|
+
"data-testid": y,
|
|
3519
|
+
disabled: _ || C,
|
|
3501
3520
|
name: a,
|
|
3502
|
-
value:
|
|
3521
|
+
value: m,
|
|
3503
3522
|
className: c,
|
|
3504
3523
|
...g,
|
|
3505
3524
|
children: b
|
|
3506
3525
|
},
|
|
3507
|
-
|
|
3526
|
+
y
|
|
3508
3527
|
);
|
|
3509
3528
|
})
|
|
3510
3529
|
}
|
|
3511
3530
|
);
|
|
3512
3531
|
}
|
|
3513
|
-
),
|
|
3514
|
-
Group:
|
|
3515
|
-
}), yl = "_root_1jj3e_25",
|
|
3532
|
+
), Lc = Object.assign(ur, {
|
|
3533
|
+
Group: xl
|
|
3534
|
+
}), yl = "_root_1jj3e_25", vl = "_unordered_1jj3e_39", Cl = "_ordered_1jj3e_43", wl = "_sm_1jj3e_48", kl = "_md_1jj3e_59", Sl = "_lg_1jj3e_70", Ll = "_xl_1jj3e_81", fe = {
|
|
3516
3535
|
root: yl,
|
|
3517
|
-
unordered:
|
|
3518
|
-
ordered:
|
|
3519
|
-
sm:
|
|
3520
|
-
md:
|
|
3536
|
+
unordered: vl,
|
|
3537
|
+
ordered: Cl,
|
|
3538
|
+
sm: wl,
|
|
3539
|
+
md: kl,
|
|
3521
3540
|
lg: Sl,
|
|
3522
|
-
xl:
|
|
3523
|
-
},
|
|
3541
|
+
xl: Ll
|
|
3542
|
+
}, jl = (t) => {
|
|
3524
3543
|
const { children: r, className: n, "data-testid": a = "list-item" } = t;
|
|
3525
3544
|
return /* @__PURE__ */ o.jsx("li", { "data-testid": a, className: n, children: r });
|
|
3526
|
-
},
|
|
3545
|
+
}, jc = Object.assign(
|
|
3527
3546
|
U((t, r) => {
|
|
3528
3547
|
const {
|
|
3529
3548
|
variant: n = "unordered",
|
|
@@ -3532,46 +3551,46 @@ const Ye = Object.assign(Ii, {
|
|
|
3532
3551
|
size: s = "md",
|
|
3533
3552
|
"data-testid": l = "list",
|
|
3534
3553
|
...c
|
|
3535
|
-
} = t,
|
|
3554
|
+
} = t, _ = n === "ordered" ? "ol" : "ul";
|
|
3536
3555
|
return /* @__PURE__ */ o.jsx(
|
|
3537
|
-
|
|
3556
|
+
_,
|
|
3538
3557
|
{
|
|
3539
3558
|
"data-testid": l,
|
|
3540
3559
|
ref: r,
|
|
3541
|
-
className:
|
|
3560
|
+
className: It(fe.root, fe[n], fe[s], a),
|
|
3542
3561
|
...n === "ordered" && c,
|
|
3543
3562
|
children: i
|
|
3544
3563
|
}
|
|
3545
3564
|
);
|
|
3546
3565
|
}),
|
|
3547
|
-
{ Item:
|
|
3548
|
-
),
|
|
3549
|
-
wrapper:
|
|
3550
|
-
viewport:
|
|
3551
|
-
mask:
|
|
3552
|
-
maskLeft:
|
|
3566
|
+
{ Item: jl }
|
|
3567
|
+
), $l = "_wrapper_1v8xn_5", Tl = "_viewport_1v8xn_12", El = "_mask_1v8xn_26", Nl = "_maskLeft_1v8xn_37", Rl = "_maskRight_1v8xn_42", Il = "_visible_1v8xn_46", Ml = "_control_1v8xn_51", Bl = "_xs_1v8xn_70", Al = "_sm_1v8xn_73", Ol = "_md_1v8xn_76", Pl = "_left_1v8xn_80", zl = "_right_1v8xn_83", ct = {
|
|
3568
|
+
wrapper: $l,
|
|
3569
|
+
viewport: Tl,
|
|
3570
|
+
mask: El,
|
|
3571
|
+
maskLeft: Nl,
|
|
3553
3572
|
maskRight: Rl,
|
|
3554
|
-
visible:
|
|
3555
|
-
control:
|
|
3556
|
-
xs:
|
|
3557
|
-
sm:
|
|
3558
|
-
md:
|
|
3559
|
-
left:
|
|
3573
|
+
visible: Il,
|
|
3574
|
+
control: Ml,
|
|
3575
|
+
xs: Bl,
|
|
3576
|
+
sm: Al,
|
|
3577
|
+
md: Ol,
|
|
3578
|
+
left: Pl,
|
|
3560
3579
|
right: zl
|
|
3561
|
-
},
|
|
3580
|
+
}, Dl = "white", Fl = ({
|
|
3562
3581
|
children: t,
|
|
3563
3582
|
withControls: r = !0,
|
|
3564
3583
|
className: n,
|
|
3565
3584
|
size: a
|
|
3566
3585
|
}) => {
|
|
3567
|
-
const i = Vt(null), [s, l] =
|
|
3586
|
+
const i = Vt(null), [s, l] = ft(!1), [c, _] = ft(!1), { ref: f, bgColor: d } = ye(), g = f ?? { current: null }, b = d ?? Dl, m = r && s, C = r && c, y = ({ direction: u }) => /* @__PURE__ */ o.jsx(
|
|
3568
3587
|
"svg",
|
|
3569
3588
|
{
|
|
3570
3589
|
height: "12px",
|
|
3571
3590
|
width: "12px",
|
|
3572
3591
|
viewBox: "0 0 185.343 185.343",
|
|
3573
3592
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3574
|
-
children: /* @__PURE__ */ o.jsx("g", { transform:
|
|
3593
|
+
children: /* @__PURE__ */ o.jsx("g", { transform: u === "left" ? "scale(-1,1) translate(-185.343,0)" : void 0, children: /* @__PURE__ */ o.jsx(
|
|
3575
3594
|
"path",
|
|
3576
3595
|
{
|
|
3577
3596
|
fill: "currentColor",
|
|
@@ -3579,33 +3598,33 @@ const Ye = Object.assign(Ii, {
|
|
|
3579
3598
|
}
|
|
3580
3599
|
) })
|
|
3581
3600
|
}
|
|
3582
|
-
),
|
|
3583
|
-
const
|
|
3584
|
-
if (!
|
|
3585
|
-
const w = Math.round(
|
|
3586
|
-
l(w > 0),
|
|
3587
|
-
}, x = (
|
|
3601
|
+
), h = () => {
|
|
3602
|
+
const u = i.current;
|
|
3603
|
+
if (!u) return;
|
|
3604
|
+
const w = Math.round(u.scrollLeft), S = Math.round(u.scrollLeft + u.clientWidth), E = Math.round(u.scrollWidth);
|
|
3605
|
+
l(w > 0), _(S < E);
|
|
3606
|
+
}, x = (u) => {
|
|
3588
3607
|
const w = i.current;
|
|
3589
3608
|
if (!w) return;
|
|
3590
3609
|
const S = w.clientWidth;
|
|
3591
|
-
w.scrollBy({ left:
|
|
3610
|
+
w.scrollBy({ left: u === "left" ? -S : S, behavior: "smooth" });
|
|
3592
3611
|
};
|
|
3593
|
-
return
|
|
3594
|
-
const
|
|
3595
|
-
if (!
|
|
3612
|
+
return gt(() => {
|
|
3613
|
+
const u = i.current;
|
|
3614
|
+
if (!u) return;
|
|
3596
3615
|
const w = (S) => {
|
|
3597
|
-
Math.abs(S.deltaX) > Math.abs(S.deltaY) ||
|
|
3616
|
+
Math.abs(S.deltaX) > Math.abs(S.deltaY) || u.scrollWidth > u.clientWidth && (S.preventDefault(), u.scrollBy({ left: S.deltaY, behavior: "auto" }));
|
|
3598
3617
|
};
|
|
3599
|
-
return
|
|
3600
|
-
}, []),
|
|
3601
|
-
|
|
3602
|
-
const
|
|
3603
|
-
if (
|
|
3604
|
-
return
|
|
3605
|
-
|
|
3618
|
+
return u.addEventListener("wheel", w, { passive: !1 }), () => u.removeEventListener("wheel", w);
|
|
3619
|
+
}, []), gt(() => {
|
|
3620
|
+
h();
|
|
3621
|
+
const u = i.current;
|
|
3622
|
+
if (u)
|
|
3623
|
+
return u.addEventListener("scroll", h, { passive: !0 }), window.addEventListener("resize", h), () => {
|
|
3624
|
+
u.removeEventListener("scroll", h), window.removeEventListener("resize", h);
|
|
3606
3625
|
};
|
|
3607
3626
|
}, []), /* @__PURE__ */ o.jsxs("div", { ref: g, className: k(ct.wrapper, n), children: [
|
|
3608
|
-
|
|
3627
|
+
m && /* @__PURE__ */ o.jsx(
|
|
3609
3628
|
"div",
|
|
3610
3629
|
{
|
|
3611
3630
|
className: k(ct.mask, ct.maskLeft, s && ct.visible),
|
|
@@ -3614,7 +3633,7 @@ const Ye = Object.assign(Ii, {
|
|
|
3614
3633
|
}
|
|
3615
3634
|
}
|
|
3616
3635
|
),
|
|
3617
|
-
|
|
3636
|
+
C && /* @__PURE__ */ o.jsx(
|
|
3618
3637
|
"div",
|
|
3619
3638
|
{
|
|
3620
3639
|
className: k(ct.mask, ct.maskRight, c && ct.visible),
|
|
@@ -3624,7 +3643,7 @@ const Ye = Object.assign(Ii, {
|
|
|
3624
3643
|
}
|
|
3625
3644
|
),
|
|
3626
3645
|
/* @__PURE__ */ o.jsx("div", { ref: i, className: ct.viewport, children: t }),
|
|
3627
|
-
|
|
3646
|
+
m && /* @__PURE__ */ o.jsx(
|
|
3628
3647
|
"button",
|
|
3629
3648
|
{
|
|
3630
3649
|
type: "button",
|
|
@@ -3632,10 +3651,10 @@ const Ye = Object.assign(Ii, {
|
|
|
3632
3651
|
"aria-hidden": "true",
|
|
3633
3652
|
className: k(ct.control, ct.left, ct[a]),
|
|
3634
3653
|
onClick: () => x("left"),
|
|
3635
|
-
children: /* @__PURE__ */ o.jsx(
|
|
3654
|
+
children: /* @__PURE__ */ o.jsx(y, { direction: "left" })
|
|
3636
3655
|
}
|
|
3637
3656
|
),
|
|
3638
|
-
|
|
3657
|
+
C && /* @__PURE__ */ o.jsx(
|
|
3639
3658
|
"button",
|
|
3640
3659
|
{
|
|
3641
3660
|
type: "button",
|
|
@@ -3643,38 +3662,38 @@ const Ye = Object.assign(Ii, {
|
|
|
3643
3662
|
"aria-hidden": "true",
|
|
3644
3663
|
className: k(ct.control, ct.right, ct[a]),
|
|
3645
3664
|
onClick: () => x("right"),
|
|
3646
|
-
children: /* @__PURE__ */ o.jsx(
|
|
3665
|
+
children: /* @__PURE__ */ o.jsx(y, { direction: "right" })
|
|
3647
3666
|
}
|
|
3648
3667
|
)
|
|
3649
3668
|
] });
|
|
3650
|
-
},
|
|
3651
|
-
tabBar:
|
|
3652
|
-
primary:
|
|
3669
|
+
}, Wl = "_tabBar_1ndpm_82", ql = "_primary_1ndpm_88", Hl = "_secondary_1ndpm_93", Vl = "_tab_1ndpm_82", Zl = "_md_1ndpm_125", Xl = "_sm_1ndpm_129", Yl = "_xs_1ndpm_133", Gl = "_disabled_1ndpm_137", Ul = "_selected_1ndpm_143", Kl = "_tabLabel_1ndpm_222", Jl = "_tabPrefix_1ndpm_234", Ql = "_tabPostfix_1ndpm_270", et = {
|
|
3670
|
+
tabBar: Wl,
|
|
3671
|
+
primary: ql,
|
|
3653
3672
|
secondary: Hl,
|
|
3654
3673
|
tab: Vl,
|
|
3655
3674
|
md: Zl,
|
|
3656
|
-
sm:
|
|
3657
|
-
xs:
|
|
3658
|
-
disabled:
|
|
3659
|
-
selected:
|
|
3660
|
-
tabLabel:
|
|
3661
|
-
tabPrefix:
|
|
3662
|
-
tabPostfix:
|
|
3663
|
-
},
|
|
3664
|
-
const t = er(
|
|
3675
|
+
sm: Xl,
|
|
3676
|
+
xs: Yl,
|
|
3677
|
+
disabled: Gl,
|
|
3678
|
+
selected: Ul,
|
|
3679
|
+
tabLabel: Kl,
|
|
3680
|
+
tabPrefix: Jl,
|
|
3681
|
+
tabPostfix: Ql
|
|
3682
|
+
}, t1 = "md", e1 = !1, r1 = 8, n1 = "top-right-inside", _r = tr(null), pr = () => {
|
|
3683
|
+
const t = er(_r);
|
|
3665
3684
|
if (!t) throw new Error("useTabs должен использоваться внутри TabsProvider");
|
|
3666
3685
|
return t;
|
|
3667
|
-
},
|
|
3686
|
+
}, o1 = ({
|
|
3668
3687
|
children: t,
|
|
3669
3688
|
defaultActiveTab: r,
|
|
3670
3689
|
activeTab: n,
|
|
3671
3690
|
onChange: a
|
|
3672
3691
|
}) => {
|
|
3673
|
-
const [i, s] =
|
|
3692
|
+
const [i, s] = ft(r), l = n !== void 0, c = l ? n : i, _ = (f) => {
|
|
3674
3693
|
l || s(f), a && a(f);
|
|
3675
3694
|
};
|
|
3676
|
-
return /* @__PURE__ */ o.jsx(
|
|
3677
|
-
},
|
|
3695
|
+
return /* @__PURE__ */ o.jsx(_r.Provider, { value: { activeTab: c, setTab: _ }, children: t });
|
|
3696
|
+
}, a1 = ({
|
|
3678
3697
|
mode: t,
|
|
3679
3698
|
item: r,
|
|
3680
3699
|
isActive: n,
|
|
@@ -3685,45 +3704,45 @@ const Ye = Object.assign(Ii, {
|
|
|
3685
3704
|
onSelectTab: c
|
|
3686
3705
|
}) => {
|
|
3687
3706
|
const {
|
|
3688
|
-
value:
|
|
3707
|
+
value: _,
|
|
3689
3708
|
label: f,
|
|
3690
3709
|
prefix: d,
|
|
3691
3710
|
prefixWrapperProps: g = {},
|
|
3692
3711
|
postfix: b,
|
|
3693
|
-
postfixWrapperProps:
|
|
3694
|
-
} = r, { className:
|
|
3712
|
+
postfixWrapperProps: m = {}
|
|
3713
|
+
} = r, { className: C, ...y } = g, { className: h, ...x } = m, u = {
|
|
3695
3714
|
primary: G["typography-label-3-medium"],
|
|
3696
3715
|
secondary: G["typography-label-3-regular"],
|
|
3697
3716
|
prefix: G["typography-label-3-medium"],
|
|
3698
3717
|
postfix: G["typography-label-3-medium"]
|
|
3699
3718
|
}, w = {
|
|
3700
|
-
size:
|
|
3701
|
-
position:
|
|
3719
|
+
size: r1,
|
|
3720
|
+
position: n1,
|
|
3702
3721
|
...i
|
|
3703
3722
|
}, S = k(et.tab, et[t], et[s], {
|
|
3704
3723
|
[et.selected]: n,
|
|
3705
3724
|
[et.disabled]: l
|
|
3706
|
-
}),
|
|
3725
|
+
}), E = k(
|
|
3707
3726
|
et.tabPrefix,
|
|
3708
|
-
|
|
3727
|
+
C,
|
|
3709
3728
|
et[t],
|
|
3710
|
-
|
|
3729
|
+
u.prefix,
|
|
3711
3730
|
{
|
|
3712
3731
|
[et.selected]: n,
|
|
3713
3732
|
[et.disabled]: l
|
|
3714
3733
|
}
|
|
3715
|
-
),
|
|
3734
|
+
), j = k(
|
|
3716
3735
|
et.tabPostfix,
|
|
3717
|
-
|
|
3736
|
+
h,
|
|
3718
3737
|
et[t],
|
|
3719
|
-
|
|
3738
|
+
u.postfix,
|
|
3720
3739
|
{
|
|
3721
3740
|
[et.selected]: n,
|
|
3722
3741
|
[et.disabled]: l
|
|
3723
3742
|
}
|
|
3724
|
-
),
|
|
3725
|
-
n || l || (c(
|
|
3726
|
-
},
|
|
3743
|
+
), N = k(et.tabLabel, et[t], u[t]), T = (O) => {
|
|
3744
|
+
n || l || (c(_), O.currentTarget.scrollIntoView({ behavior: "smooth", inline: "center", block: "nearest" }));
|
|
3745
|
+
}, R = /* @__PURE__ */ o.jsxs(
|
|
3727
3746
|
"button",
|
|
3728
3747
|
{
|
|
3729
3748
|
className: S,
|
|
@@ -3731,41 +3750,41 @@ const Ye = Object.assign(Ii, {
|
|
|
3731
3750
|
"aria-label": f,
|
|
3732
3751
|
"aria-selected": n,
|
|
3733
3752
|
"aria-disabled": l,
|
|
3734
|
-
"aria-controls": `tab-panel-${
|
|
3735
|
-
"data-testid": `tab-item-${
|
|
3736
|
-
onClick:
|
|
3753
|
+
"aria-controls": `tab-panel-${_}`,
|
|
3754
|
+
"data-testid": `tab-item-${_}`,
|
|
3755
|
+
onClick: T,
|
|
3737
3756
|
children: [
|
|
3738
3757
|
d && /* @__PURE__ */ o.jsx(
|
|
3739
3758
|
"span",
|
|
3740
3759
|
{
|
|
3741
|
-
className:
|
|
3742
|
-
...
|
|
3743
|
-
"data-testid": `tab-prefix-${
|
|
3760
|
+
className: E,
|
|
3761
|
+
...y,
|
|
3762
|
+
"data-testid": `tab-prefix-${_}`,
|
|
3744
3763
|
children: d
|
|
3745
3764
|
}
|
|
3746
3765
|
),
|
|
3747
|
-
/* @__PURE__ */ o.jsx("span", { className:
|
|
3766
|
+
/* @__PURE__ */ o.jsx("span", { className: N, "data-testid": `tab-label-${_}`, children: f }),
|
|
3748
3767
|
b && /* @__PURE__ */ o.jsx(
|
|
3749
3768
|
"span",
|
|
3750
3769
|
{
|
|
3751
|
-
className:
|
|
3770
|
+
className: j,
|
|
3752
3771
|
...x,
|
|
3753
|
-
"data-testid": `tab-postfix-${
|
|
3772
|
+
"data-testid": `tab-postfix-${_}`,
|
|
3754
3773
|
children: b
|
|
3755
3774
|
}
|
|
3756
3775
|
)
|
|
3757
3776
|
]
|
|
3758
3777
|
}
|
|
3759
3778
|
);
|
|
3760
|
-
return a ? /* @__PURE__ */ o.jsx(
|
|
3761
|
-
},
|
|
3779
|
+
return a ? /* @__PURE__ */ o.jsx(Ra, { ...w, "data-testid": `tab-badge-${_}`, children: R }) : R;
|
|
3780
|
+
}, s1 = ({
|
|
3762
3781
|
mode: t,
|
|
3763
3782
|
items: r,
|
|
3764
|
-
size: n =
|
|
3765
|
-
isAllItemsDisabled: a =
|
|
3783
|
+
size: n = t1,
|
|
3784
|
+
isAllItemsDisabled: a = e1
|
|
3766
3785
|
}) => {
|
|
3767
3786
|
const { activeTab: i, setTab: s } = pr(), l = Io();
|
|
3768
|
-
return /* @__PURE__ */ o.jsx(
|
|
3787
|
+
return /* @__PURE__ */ o.jsx(Fl, { size: n, withControls: l, children: /* @__PURE__ */ o.jsx(
|
|
3769
3788
|
"div",
|
|
3770
3789
|
{
|
|
3771
3790
|
role: "tablist",
|
|
@@ -3773,7 +3792,7 @@ const Ye = Object.assign(Ii, {
|
|
|
3773
3792
|
"aria-orientation": "horizontal",
|
|
3774
3793
|
className: k(et.tabBar, et[t]),
|
|
3775
3794
|
children: r.map((c) => /* @__PURE__ */ o.jsx(
|
|
3776
|
-
|
|
3795
|
+
a1,
|
|
3777
3796
|
{
|
|
3778
3797
|
size: n,
|
|
3779
3798
|
item: c,
|
|
@@ -3788,7 +3807,7 @@ const Ye = Object.assign(Ii, {
|
|
|
3788
3807
|
))
|
|
3789
3808
|
}
|
|
3790
3809
|
) });
|
|
3791
|
-
},
|
|
3810
|
+
}, i1 = ({ tabValue: t, children: r, ...n }) => /* @__PURE__ */ o.jsx(
|
|
3792
3811
|
"div",
|
|
3793
3812
|
{
|
|
3794
3813
|
role: "tabpanel",
|
|
@@ -3797,32 +3816,32 @@ const Ye = Object.assign(Ii, {
|
|
|
3797
3816
|
...n,
|
|
3798
3817
|
children: r
|
|
3799
3818
|
}
|
|
3800
|
-
),
|
|
3801
|
-
const { activeTab: n } = pr(), a = Array.isArray(t) ? t : [t], i = (s, l) =>
|
|
3819
|
+
), l1 = ({ children: t, ...r }) => {
|
|
3820
|
+
const { activeTab: n } = pr(), a = Array.isArray(t) ? t : [t], i = (s, l) => me.isValidElement(s) && typeof s.props == "object" && s.props !== null && l in s.props;
|
|
3802
3821
|
return /* @__PURE__ */ o.jsx("div", { "data-testid": "tab-content", ...r, children: a.map((s) => i(s, "tabValue") && String(s.props.tabValue) === n ? s : null) });
|
|
3803
|
-
},
|
|
3804
|
-
Provider:
|
|
3805
|
-
Content:
|
|
3806
|
-
Panel:
|
|
3807
|
-
Bar:
|
|
3808
|
-
},
|
|
3809
|
-
root:
|
|
3810
|
-
open:
|
|
3811
|
-
xs:
|
|
3812
|
-
s:
|
|
3822
|
+
}, $c = {
|
|
3823
|
+
Provider: o1,
|
|
3824
|
+
Content: l1,
|
|
3825
|
+
Panel: i1,
|
|
3826
|
+
Bar: s1
|
|
3827
|
+
}, c1 = "_root_1fbbw_34", d1 = "_open_1fbbw_51", u1 = "_xs_1fbbw_55", _1 = "_s_1fbbw_61", p1 = "_m_1fbbw_67", f1 = "_neutral_1fbbw_73", g1 = "_contrast_1fbbw_78", h1 = "_accent_1fbbw_84", m1 = "_typography_1fbbw_89", b1 = "_title_1fbbw_89", x1 = "_text_1fbbw_93", y1 = "_mediaWrapper_1fbbw_97", v1 = "_content_1fbbw_112", C1 = "_closeButton_1fbbw_116", w1 = "_hasMedia_1fbbw_142", k1 = "_buttonStack_1fbbw_148", dt = {
|
|
3828
|
+
root: c1,
|
|
3829
|
+
open: d1,
|
|
3830
|
+
xs: u1,
|
|
3831
|
+
s: _1,
|
|
3813
3832
|
m: p1,
|
|
3814
|
-
neutral:
|
|
3815
|
-
contrast:
|
|
3816
|
-
accent:
|
|
3817
|
-
typography:
|
|
3833
|
+
neutral: f1,
|
|
3834
|
+
contrast: g1,
|
|
3835
|
+
accent: h1,
|
|
3836
|
+
typography: m1,
|
|
3818
3837
|
title: b1,
|
|
3819
|
-
text:
|
|
3838
|
+
text: x1,
|
|
3820
3839
|
mediaWrapper: y1,
|
|
3821
|
-
content:
|
|
3822
|
-
closeButton:
|
|
3823
|
-
hasMedia:
|
|
3824
|
-
buttonStack:
|
|
3825
|
-
}, S1 = () => /* @__PURE__ */ o.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", stroke: "currentColor", children: /* @__PURE__ */ o.jsx("path", { d: "M18 6 6 18M6 6l12 12" }) }),
|
|
3840
|
+
content: v1,
|
|
3841
|
+
closeButton: C1,
|
|
3842
|
+
hasMedia: w1,
|
|
3843
|
+
buttonStack: k1
|
|
3844
|
+
}, S1 = () => /* @__PURE__ */ o.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", stroke: "currentColor", children: /* @__PURE__ */ o.jsx("path", { d: "M18 6 6 18M6 6l12 12" }) }), L1 = () => /* @__PURE__ */ o.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 9", fill: "currentColor", children: [
|
|
3826
3845
|
/* @__PURE__ */ o.jsx(
|
|
3827
3846
|
"path",
|
|
3828
3847
|
{
|
|
@@ -3830,132 +3849,132 @@ const Ye = Object.assign(Ii, {
|
|
|
3830
3849
|
}
|
|
3831
3850
|
),
|
|
3832
3851
|
/* @__PURE__ */ o.jsx("path", { d: "M-2 0.000390053L26 0.000390053V-1L-2 -1L-2 0.000390053Z" })
|
|
3833
|
-
] }),
|
|
3852
|
+
] }), bt = {
|
|
3834
3853
|
shiftX: 64,
|
|
3835
3854
|
adjustY: 1
|
|
3836
|
-
},
|
|
3855
|
+
}, xt = { adjustX: 1, shiftY: !0 }, j1 = {
|
|
3837
3856
|
left: {
|
|
3838
3857
|
points: ["cr", "cl"],
|
|
3839
|
-
overflow:
|
|
3858
|
+
overflow: xt,
|
|
3840
3859
|
offset: [-22, 0]
|
|
3841
3860
|
},
|
|
3842
3861
|
right: {
|
|
3843
3862
|
points: ["cl", "cr"],
|
|
3844
|
-
overflow:
|
|
3863
|
+
overflow: xt,
|
|
3845
3864
|
offset: [22, 0]
|
|
3846
3865
|
},
|
|
3847
3866
|
top: {
|
|
3848
3867
|
points: ["bc", "tc"],
|
|
3849
|
-
overflow:
|
|
3868
|
+
overflow: bt,
|
|
3850
3869
|
offset: [0, -22]
|
|
3851
3870
|
},
|
|
3852
3871
|
bottom: {
|
|
3853
3872
|
points: ["tc", "bc"],
|
|
3854
|
-
overflow:
|
|
3873
|
+
overflow: bt,
|
|
3855
3874
|
offset: [0, 22]
|
|
3856
3875
|
},
|
|
3857
3876
|
topLeft: {
|
|
3858
3877
|
points: ["bl", "tl"],
|
|
3859
|
-
overflow:
|
|
3878
|
+
overflow: bt,
|
|
3860
3879
|
offset: [0, -22]
|
|
3861
3880
|
},
|
|
3862
3881
|
leftTop: {
|
|
3863
3882
|
points: ["tr", "tl"],
|
|
3864
|
-
overflow:
|
|
3883
|
+
overflow: xt,
|
|
3865
3884
|
offset: [-22, 0]
|
|
3866
3885
|
},
|
|
3867
3886
|
topRight: {
|
|
3868
3887
|
points: ["br", "tr"],
|
|
3869
|
-
overflow:
|
|
3888
|
+
overflow: bt,
|
|
3870
3889
|
offset: [0, -22]
|
|
3871
3890
|
},
|
|
3872
3891
|
rightTop: {
|
|
3873
3892
|
points: ["tl", "tr"],
|
|
3874
|
-
overflow:
|
|
3893
|
+
overflow: xt,
|
|
3875
3894
|
offset: [22, 0]
|
|
3876
3895
|
},
|
|
3877
3896
|
bottomRight: {
|
|
3878
3897
|
points: ["tr", "br"],
|
|
3879
|
-
overflow:
|
|
3898
|
+
overflow: bt,
|
|
3880
3899
|
offset: [0, 22]
|
|
3881
3900
|
},
|
|
3882
3901
|
rightBottom: {
|
|
3883
3902
|
points: ["bl", "br"],
|
|
3884
|
-
overflow:
|
|
3903
|
+
overflow: xt,
|
|
3885
3904
|
offset: [22, 0]
|
|
3886
3905
|
},
|
|
3887
3906
|
bottomLeft: {
|
|
3888
3907
|
points: ["tl", "bl"],
|
|
3889
|
-
overflow:
|
|
3908
|
+
overflow: bt,
|
|
3890
3909
|
offset: [0, 22]
|
|
3891
3910
|
},
|
|
3892
3911
|
leftBottom: {
|
|
3893
3912
|
points: ["br", "bl"],
|
|
3894
|
-
overflow:
|
|
3913
|
+
overflow: xt,
|
|
3895
3914
|
offset: [-22, 0]
|
|
3896
3915
|
}
|
|
3897
|
-
},
|
|
3916
|
+
}, $1 = {
|
|
3898
3917
|
left: {
|
|
3899
3918
|
points: ["cr", "cl"],
|
|
3900
|
-
overflow:
|
|
3919
|
+
overflow: xt,
|
|
3901
3920
|
offset: [-16, 0]
|
|
3902
3921
|
},
|
|
3903
3922
|
right: {
|
|
3904
3923
|
points: ["cl", "cr"],
|
|
3905
|
-
overflow:
|
|
3924
|
+
overflow: xt,
|
|
3906
3925
|
offset: [16, 0]
|
|
3907
3926
|
},
|
|
3908
3927
|
top: {
|
|
3909
3928
|
points: ["bc", "tc"],
|
|
3910
|
-
overflow:
|
|
3929
|
+
overflow: bt,
|
|
3911
3930
|
offset: [0, -16]
|
|
3912
3931
|
},
|
|
3913
3932
|
bottom: {
|
|
3914
3933
|
points: ["tc", "bc"],
|
|
3915
|
-
overflow:
|
|
3934
|
+
overflow: bt,
|
|
3916
3935
|
offset: [0, 16]
|
|
3917
3936
|
},
|
|
3918
3937
|
topLeft: {
|
|
3919
3938
|
points: ["bl", "tl"],
|
|
3920
|
-
overflow:
|
|
3939
|
+
overflow: bt,
|
|
3921
3940
|
offset: [0, -16]
|
|
3922
3941
|
},
|
|
3923
3942
|
leftTop: {
|
|
3924
3943
|
points: ["tr", "tl"],
|
|
3925
|
-
overflow:
|
|
3944
|
+
overflow: xt,
|
|
3926
3945
|
offset: [-16, 0]
|
|
3927
3946
|
},
|
|
3928
3947
|
topRight: {
|
|
3929
3948
|
points: ["br", "tr"],
|
|
3930
|
-
overflow:
|
|
3949
|
+
overflow: bt,
|
|
3931
3950
|
offset: [0, -16]
|
|
3932
3951
|
},
|
|
3933
3952
|
rightTop: {
|
|
3934
3953
|
points: ["tl", "tr"],
|
|
3935
|
-
overflow:
|
|
3954
|
+
overflow: xt,
|
|
3936
3955
|
offset: [16, 0]
|
|
3937
3956
|
},
|
|
3938
3957
|
bottomRight: {
|
|
3939
3958
|
points: ["tr", "br"],
|
|
3940
|
-
overflow:
|
|
3959
|
+
overflow: bt,
|
|
3941
3960
|
offset: [0, 16]
|
|
3942
3961
|
},
|
|
3943
3962
|
rightBottom: {
|
|
3944
3963
|
points: ["bl", "br"],
|
|
3945
|
-
overflow:
|
|
3964
|
+
overflow: xt,
|
|
3946
3965
|
offset: [16, 0]
|
|
3947
3966
|
},
|
|
3948
3967
|
bottomLeft: {
|
|
3949
3968
|
points: ["tl", "bl"],
|
|
3950
|
-
overflow:
|
|
3969
|
+
overflow: bt,
|
|
3951
3970
|
offset: [0, 16]
|
|
3952
3971
|
},
|
|
3953
3972
|
leftBottom: {
|
|
3954
3973
|
points: ["br", "bl"],
|
|
3955
|
-
overflow:
|
|
3974
|
+
overflow: xt,
|
|
3956
3975
|
offset: [-16, 0]
|
|
3957
3976
|
}
|
|
3958
|
-
},
|
|
3977
|
+
}, T1 = {
|
|
3959
3978
|
neutral: {
|
|
3960
3979
|
1: [{ mode: "secondary", buttonStyle: "neutral", size: "s" }],
|
|
3961
3980
|
2: [
|
|
@@ -3992,8 +4011,8 @@ const Ye = Object.assign(Ii, {
|
|
|
3992
4011
|
{ mode: "primary", buttonStyle: "accent", size: "s" }
|
|
3993
4012
|
]
|
|
3994
4013
|
}
|
|
3995
|
-
},
|
|
3996
|
-
const a = go(r, 1, 3), i =
|
|
4014
|
+
}, E1 = (t, r, n) => ({ ...r, ...n ?? {}, ...t }), N1 = (t, r, n) => {
|
|
4015
|
+
const a = go(r, 1, 3), i = T1[n][a];
|
|
3997
4016
|
return i[Math.min(t, i.length - 1)];
|
|
3998
4017
|
}, Ue = ({
|
|
3999
4018
|
text: t,
|
|
@@ -4004,12 +4023,12 @@ const Ye = Object.assign(Ii, {
|
|
|
4004
4023
|
classNames: s = {},
|
|
4005
4024
|
onClose: l,
|
|
4006
4025
|
buttons: c,
|
|
4007
|
-
buttonProps:
|
|
4026
|
+
buttonProps: _,
|
|
4008
4027
|
showClose: f
|
|
4009
4028
|
}) => {
|
|
4010
|
-
const d = ["neutral", "accent"].includes(a) ? "contrast" : "primary", g = i === "m", b = !!(r && g),
|
|
4029
|
+
const d = ["neutral", "accent"].includes(a) ? "contrast" : "primary", g = i === "m", b = !!(r && g), m = !!(n && g), C = c && !!c.length, y = !!(f && g) || !f && g && !C, h = i === "xs" ? 4 : 3;
|
|
4011
4030
|
return /* @__PURE__ */ o.jsxs("div", { className: dt.content, children: [
|
|
4012
|
-
|
|
4031
|
+
m && /* @__PURE__ */ o.jsx("div", { className: k(dt.mediaWrapper, s.mediaWrapper), children: n }),
|
|
4013
4032
|
/* @__PURE__ */ o.jsxs("div", { className: s.textWrapper, children: [
|
|
4014
4033
|
b && /* @__PURE__ */ o.jsx(
|
|
4015
4034
|
he.Subtitle,
|
|
@@ -4026,17 +4045,17 @@ const Ye = Object.assign(Ii, {
|
|
|
4026
4045
|
{
|
|
4027
4046
|
className: k(dt.typography, dt.text, s.typography),
|
|
4028
4047
|
typographyStyle: d,
|
|
4029
|
-
size:
|
|
4048
|
+
size: h,
|
|
4030
4049
|
children: t
|
|
4031
4050
|
}
|
|
4032
4051
|
)
|
|
4033
4052
|
] }),
|
|
4034
|
-
|
|
4053
|
+
y && /* @__PURE__ */ o.jsx(
|
|
4035
4054
|
"button",
|
|
4036
4055
|
{
|
|
4037
4056
|
type: "button",
|
|
4038
4057
|
className: k(dt.closeButton, dt[a], s.closeButton, {
|
|
4039
|
-
[dt.hasMedia]:
|
|
4058
|
+
[dt.hasMedia]: m
|
|
4040
4059
|
}),
|
|
4041
4060
|
onClick: l,
|
|
4042
4061
|
"aria-label": "Закрыть подсказку",
|
|
@@ -4044,15 +4063,15 @@ const Ye = Object.assign(Ii, {
|
|
|
4044
4063
|
children: /* @__PURE__ */ o.jsx(S1, {})
|
|
4045
4064
|
}
|
|
4046
4065
|
),
|
|
4047
|
-
g &&
|
|
4048
|
-
const w =
|
|
4049
|
-
var
|
|
4050
|
-
(
|
|
4066
|
+
g && C && /* @__PURE__ */ o.jsx("div", { className: dt.buttonStack, children: c.map((x, u) => {
|
|
4067
|
+
const w = N1(u, c.length, a), S = E1(x, w, _), { closeOnClick: E, ...j } = S, N = (T) => {
|
|
4068
|
+
var R;
|
|
4069
|
+
(R = j.onClick) == null || R.call(j, T), E && (l == null || l());
|
|
4051
4070
|
};
|
|
4052
|
-
return /* @__PURE__ */ o.jsx(ge, {
|
|
4071
|
+
return /* @__PURE__ */ o.jsx(ge, { ...j, onClick: N }, u);
|
|
4053
4072
|
}) })
|
|
4054
4073
|
] });
|
|
4055
|
-
},
|
|
4074
|
+
}, Tc = ({
|
|
4056
4075
|
customContent: t,
|
|
4057
4076
|
children: r,
|
|
4058
4077
|
placement: n = "top",
|
|
@@ -4061,32 +4080,32 @@ const Ye = Object.assign(Ii, {
|
|
|
4061
4080
|
mouseLeaveDelay: s = 0.1,
|
|
4062
4081
|
showArrow: l = !0,
|
|
4063
4082
|
showClose: c = !0,
|
|
4064
|
-
trigger:
|
|
4083
|
+
trigger: _ = "hover",
|
|
4065
4084
|
variant: f = "neutral",
|
|
4066
4085
|
size: d = "s",
|
|
4067
4086
|
text: g,
|
|
4068
4087
|
title: b,
|
|
4069
|
-
media:
|
|
4070
|
-
buttons:
|
|
4071
|
-
buttonProps:
|
|
4072
|
-
onClose:
|
|
4088
|
+
media: m,
|
|
4089
|
+
buttons: C,
|
|
4090
|
+
buttonProps: y,
|
|
4091
|
+
onClose: h,
|
|
4073
4092
|
...x
|
|
4074
4093
|
}) => {
|
|
4075
|
-
const [
|
|
4076
|
-
w(!1),
|
|
4077
|
-
},
|
|
4094
|
+
const [u, w] = ft(!1), [S, E] = ft(!1), j = d === "m" ? j1 : $1, N = () => {
|
|
4095
|
+
w(!1), h == null || h();
|
|
4096
|
+
}, T = t || (d === "m" ? /* @__PURE__ */ o.jsx(
|
|
4078
4097
|
Ue,
|
|
4079
4098
|
{
|
|
4080
4099
|
classNames: a,
|
|
4081
4100
|
text: g,
|
|
4082
4101
|
variant: f,
|
|
4083
4102
|
size: d,
|
|
4084
|
-
onClose:
|
|
4103
|
+
onClose: N,
|
|
4085
4104
|
title: b,
|
|
4086
|
-
media:
|
|
4105
|
+
media: m,
|
|
4087
4106
|
showClose: c,
|
|
4088
|
-
buttons:
|
|
4089
|
-
buttonProps:
|
|
4107
|
+
buttons: C,
|
|
4108
|
+
buttonProps: y
|
|
4090
4109
|
}
|
|
4091
4110
|
) : /* @__PURE__ */ o.jsx(
|
|
4092
4111
|
Ue,
|
|
@@ -4095,33 +4114,33 @@ const Ye = Object.assign(Ii, {
|
|
|
4095
4114
|
text: g,
|
|
4096
4115
|
variant: f,
|
|
4097
4116
|
size: d,
|
|
4098
|
-
onClose:
|
|
4117
|
+
onClose: N
|
|
4099
4118
|
}
|
|
4100
4119
|
));
|
|
4101
|
-
return
|
|
4102
|
-
if (
|
|
4103
|
-
const
|
|
4104
|
-
return () => cancelAnimationFrame(
|
|
4120
|
+
return gt(() => {
|
|
4121
|
+
if (u) {
|
|
4122
|
+
const R = requestAnimationFrame(() => E(!0));
|
|
4123
|
+
return () => cancelAnimationFrame(R);
|
|
4105
4124
|
}
|
|
4106
|
-
|
|
4107
|
-
}, [
|
|
4108
|
-
|
|
4125
|
+
E(!1);
|
|
4126
|
+
}, [u]), /* @__PURE__ */ o.jsx(
|
|
4127
|
+
Zr,
|
|
4109
4128
|
{
|
|
4110
|
-
visible:
|
|
4129
|
+
visible: u,
|
|
4111
4130
|
onVisibleChange: w,
|
|
4112
4131
|
classNames: {
|
|
4113
4132
|
root: k(dt.root, dt[f], dt[d], S && dt.open),
|
|
4114
4133
|
...x.classNames
|
|
4115
4134
|
},
|
|
4116
4135
|
placement: n,
|
|
4117
|
-
overlay: () =>
|
|
4118
|
-
trigger:
|
|
4136
|
+
overlay: () => T,
|
|
4137
|
+
trigger: _,
|
|
4119
4138
|
mouseEnterDelay: i,
|
|
4120
4139
|
mouseLeaveDelay: s,
|
|
4121
4140
|
motion: { motionName: "tooltipMotion" },
|
|
4122
|
-
builtinPlacements:
|
|
4141
|
+
builtinPlacements: j,
|
|
4123
4142
|
showArrow: l ? {
|
|
4124
|
-
content: /* @__PURE__ */ o.jsx(
|
|
4143
|
+
content: /* @__PURE__ */ o.jsx(L1, {}),
|
|
4125
4144
|
className: `tooltipArrow tooltipArrow-${d}`
|
|
4126
4145
|
} : !1,
|
|
4127
4146
|
destroyTooltipOnHide: !0,
|
|
@@ -4129,22 +4148,45 @@ const Ye = Object.assign(Ii, {
|
|
|
4129
4148
|
children: r
|
|
4130
4149
|
}
|
|
4131
4150
|
);
|
|
4132
|
-
}, R1 = "
|
|
4133
|
-
|
|
4134
|
-
|
|
4135
|
-
|
|
4136
|
-
|
|
4137
|
-
|
|
4138
|
-
|
|
4139
|
-
|
|
4140
|
-
|
|
4141
|
-
|
|
4151
|
+
}, R1 = "_base_4dkq5_1", I1 = "_content_4dkq5_1", M1 = "_background_4dkq5_1", B1 = "_button_4dkq5_1", A1 = "_link_4dkq5_1", O1 = "_input_4dkq5_1", P1 = "_suffix_4dkq5_1", z1 = "_prefix_4dkq5_1", D1 = "_tooltip_4dkq5_1", F1 = "_hint_4dkq5_1", W1 = "_dropdown_4dkq5_1", q1 = "_popover_4dkq5_1", H1 = "_modalBackdrop_4dkq5_1", V1 = "_modal_4dkq5_1", Z1 = "_overlay_4dkq5_1", X1 = "_drawer_4dkq5_1", Y1 = "_notification_4dkq5_1", G1 = "_alert_4dkq5_1", U1 = "_toast_4dkq5_1", K1 = "_loading_4dkq5_1", J1 = "_error_4dkq5_1", Q1 = "_critical_4dkq5_1", tc = "_segmentedControl_4dkq5_7", ec = "_segment_4dkq5_7", rc = "_activeSegmentIndicator_4dkq5_61", nc = "_selected_4dkq5_80", oc = "_stretched_4dkq5_89", ac = "_disabled_4dkq5_97", sc = "_s_4dkq5_7", ic = "_icon_4dkq5_110", lc = "_label_4dkq5_114", cc = "_m_4dkq5_1", dc = "_l_4dkq5_114", Et = {
|
|
4152
|
+
base: R1,
|
|
4153
|
+
content: I1,
|
|
4154
|
+
background: M1,
|
|
4155
|
+
button: B1,
|
|
4156
|
+
link: A1,
|
|
4157
|
+
input: O1,
|
|
4158
|
+
suffix: P1,
|
|
4159
|
+
prefix: z1,
|
|
4160
|
+
tooltip: D1,
|
|
4161
|
+
hint: F1,
|
|
4162
|
+
dropdown: W1,
|
|
4163
|
+
popover: q1,
|
|
4164
|
+
modalBackdrop: H1,
|
|
4165
|
+
modal: V1,
|
|
4166
|
+
overlay: Z1,
|
|
4167
|
+
drawer: X1,
|
|
4168
|
+
notification: Y1,
|
|
4169
|
+
alert: G1,
|
|
4170
|
+
toast: U1,
|
|
4171
|
+
loading: K1,
|
|
4172
|
+
error: J1,
|
|
4173
|
+
critical: Q1,
|
|
4174
|
+
segmentedControl: tc,
|
|
4175
|
+
segment: ec,
|
|
4176
|
+
activeSegmentIndicator: rc,
|
|
4177
|
+
selected: nc,
|
|
4178
|
+
stretched: oc,
|
|
4179
|
+
disabled: ac,
|
|
4180
|
+
s: sc,
|
|
4181
|
+
icon: ic,
|
|
4182
|
+
label: lc,
|
|
4183
|
+
m: cc,
|
|
4184
|
+
l: dc
|
|
4142
4185
|
}, Ke = {
|
|
4143
4186
|
s: G["typography-label-3-regular"],
|
|
4144
4187
|
m: G["typography-label-2-regular"],
|
|
4145
4188
|
l: G["typography-label-2-regular"]
|
|
4146
|
-
},
|
|
4147
|
-
var p;
|
|
4189
|
+
}, Ec = (t) => {
|
|
4148
4190
|
const {
|
|
4149
4191
|
className: r,
|
|
4150
4192
|
defaultValue: n,
|
|
@@ -4152,76 +4194,80 @@ const Ye = Object.assign(Ii, {
|
|
|
4152
4194
|
size: i = "m",
|
|
4153
4195
|
segments: s,
|
|
4154
4196
|
stretched: l,
|
|
4155
|
-
|
|
4156
|
-
|
|
4157
|
-
|
|
4158
|
-
|
|
4159
|
-
|
|
4160
|
-
|
|
4161
|
-
|
|
4162
|
-
}, [
|
|
4163
|
-
|
|
4164
|
-
|
|
4165
|
-
|
|
4197
|
+
disabled: c = !1,
|
|
4198
|
+
mode: _ = "label",
|
|
4199
|
+
onChange: f,
|
|
4200
|
+
...d
|
|
4201
|
+
} = t, g = be(), [b, m] = ft(n || s[0].value), [C, y] = ft({ width: 0, left: 0, height: 0 }), h = Vt(null);
|
|
4202
|
+
gt(() => {
|
|
4203
|
+
a != null && m(a);
|
|
4204
|
+
}, [a]), rr(() => {
|
|
4205
|
+
x();
|
|
4206
|
+
}, [b, s, i, l, _]);
|
|
4207
|
+
const x = () => {
|
|
4208
|
+
if (!(h != null && h.current)) return;
|
|
4209
|
+
const w = h.current.querySelector(
|
|
4166
4210
|
'[data-is-active-segment="true"]'
|
|
4167
4211
|
);
|
|
4168
|
-
w &&
|
|
4212
|
+
w && y({
|
|
4169
4213
|
width: w.offsetWidth,
|
|
4170
|
-
left: w.offsetLeft
|
|
4214
|
+
left: w.offsetLeft,
|
|
4215
|
+
height: w.offsetHeight
|
|
4171
4216
|
});
|
|
4172
|
-
},
|
|
4173
|
-
|
|
4217
|
+
}, u = (w) => {
|
|
4218
|
+
c || (m(w), f == null || f(w));
|
|
4174
4219
|
};
|
|
4175
4220
|
return (s == null ? void 0 : s.length) === 0 ? null : /* @__PURE__ */ o.jsxs(
|
|
4176
|
-
"
|
|
4221
|
+
"fieldset",
|
|
4177
4222
|
{
|
|
4178
4223
|
className: k(
|
|
4179
|
-
|
|
4180
|
-
|
|
4181
|
-
|
|
4224
|
+
Et.segmentedControl,
|
|
4225
|
+
Et[i],
|
|
4226
|
+
Et[_],
|
|
4182
4227
|
{
|
|
4183
|
-
[
|
|
4228
|
+
[Et.stretched]: l,
|
|
4229
|
+
[Et.disabled]: c
|
|
4184
4230
|
},
|
|
4185
4231
|
r
|
|
4186
4232
|
),
|
|
4187
4233
|
"data-testid": "segmented-control-container",
|
|
4188
|
-
ref:
|
|
4234
|
+
ref: h,
|
|
4235
|
+
disabled: c,
|
|
4236
|
+
...d,
|
|
4189
4237
|
children: [
|
|
4190
|
-
s == null ? void 0 : s.map(({ label: w, value: S },
|
|
4191
|
-
const
|
|
4238
|
+
s == null ? void 0 : s.map(({ label: w, value: S, containerProps: E = {} }, j) => {
|
|
4239
|
+
const { className: N, ...T } = E, R = () => u(S), O = JSON.stringify(S), D = b === S;
|
|
4192
4240
|
return /* @__PURE__ */ o.jsxs(Ht, { children: [
|
|
4193
4241
|
/* @__PURE__ */ o.jsx(
|
|
4194
4242
|
"input",
|
|
4195
4243
|
{
|
|
4196
|
-
id:
|
|
4197
|
-
value:
|
|
4244
|
+
id: g + O,
|
|
4245
|
+
value: O,
|
|
4198
4246
|
type: "radio",
|
|
4199
|
-
checked:
|
|
4200
|
-
|
|
4247
|
+
checked: D,
|
|
4248
|
+
readOnly: !0
|
|
4201
4249
|
}
|
|
4202
4250
|
),
|
|
4203
4251
|
/* @__PURE__ */ o.jsx(
|
|
4204
4252
|
"label",
|
|
4205
4253
|
{
|
|
4206
|
-
"data-is-active-segment":
|
|
4207
|
-
className: k(
|
|
4208
|
-
htmlFor:
|
|
4254
|
+
"data-is-active-segment": D,
|
|
4255
|
+
className: k(Et.segment, Ke[i], { [Et.selected]: D }, N),
|
|
4256
|
+
htmlFor: g + O,
|
|
4209
4257
|
"data-testid": "segmented-control-segment",
|
|
4258
|
+
onClick: R,
|
|
4259
|
+
...T,
|
|
4210
4260
|
children: w
|
|
4211
4261
|
}
|
|
4212
4262
|
)
|
|
4213
|
-
] },
|
|
4263
|
+
] }, ee(O) + j);
|
|
4214
4264
|
}),
|
|
4215
4265
|
/* @__PURE__ */ o.jsx(
|
|
4216
4266
|
"div",
|
|
4217
4267
|
{
|
|
4218
|
-
className: k(
|
|
4219
|
-
"data-testid": "segmented-control-active-
|
|
4220
|
-
style:
|
|
4221
|
-
width: b.width,
|
|
4222
|
-
left: b.left
|
|
4223
|
-
},
|
|
4224
|
-
children: m
|
|
4268
|
+
className: k(Et.activeSegmentIndicator, Ke[i]),
|
|
4269
|
+
"data-testid": "segmented-control-segment-active-indicator",
|
|
4270
|
+
style: C
|
|
4225
4271
|
}
|
|
4226
4272
|
)
|
|
4227
4273
|
]
|
|
@@ -4229,28 +4275,28 @@ const Ye = Object.assign(Ii, {
|
|
|
4229
4275
|
);
|
|
4230
4276
|
};
|
|
4231
4277
|
export {
|
|
4232
|
-
|
|
4278
|
+
hc as Alert,
|
|
4233
4279
|
Ao as Avatar,
|
|
4234
|
-
|
|
4280
|
+
Ra as Badge,
|
|
4235
4281
|
ge as Button,
|
|
4236
|
-
|
|
4237
|
-
|
|
4238
|
-
|
|
4239
|
-
|
|
4240
|
-
|
|
4241
|
-
|
|
4242
|
-
|
|
4243
|
-
|
|
4244
|
-
|
|
4245
|
-
|
|
4246
|
-
|
|
4247
|
-
|
|
4248
|
-
|
|
4249
|
-
|
|
4250
|
-
|
|
4282
|
+
Cc as Checkbox,
|
|
4283
|
+
xc as ConfigProvider,
|
|
4284
|
+
Sc as Helper,
|
|
4285
|
+
mc as Image,
|
|
4286
|
+
jc as List,
|
|
4287
|
+
or as Loader,
|
|
4288
|
+
gc as Modal,
|
|
4289
|
+
Sa as Placeholder,
|
|
4290
|
+
Lc as Radio,
|
|
4291
|
+
Ec as SegmentedControl,
|
|
4292
|
+
$c as Tabs,
|
|
4293
|
+
vc as Tag,
|
|
4294
|
+
kc as TextArea,
|
|
4295
|
+
wc as TextInput,
|
|
4296
|
+
Tc as Tooltip,
|
|
4251
4297
|
he as Typography,
|
|
4252
|
-
|
|
4253
|
-
|
|
4298
|
+
Pa as enUS,
|
|
4299
|
+
yc as ruRU,
|
|
4254
4300
|
za as useConfig,
|
|
4255
|
-
|
|
4301
|
+
bc as useLocale
|
|
4256
4302
|
};
|