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