skillgrid 0.0.36-dev-40511-42085-40506-alert-placeholder-modal-fix.1221738 → 0.0.36-dev-40511-42085-40506-alert-placeholder-modal-fix.1230719
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Alert/Alert.type.d.ts +9 -4
- package/dist/components/Dialog/Dialog.type.d.ts +10 -2
- package/dist/components/Modal/Modal.type.d.ts +9 -6
- package/dist/index.cjs.js +10 -10
- package/dist/index.css +1 -1
- package/dist/index.es.js +1241 -1226
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as tr from "react";
|
|
2
2
|
import be, { forwardRef as G, Fragment as Xt, useState as ut, useEffect as _t, useRef as Dt, useCallback as gt, useMemo as re, createContext as er, useContext as rr, useLayoutEffect as nr, useImperativeHandle as Pr, useId as xe } from "react";
|
|
3
|
-
import { clsx as
|
|
3
|
+
import { clsx as k } from "clsx";
|
|
4
4
|
import { useFloating as Or, useTransitionStyles as zr, useDismiss as Dr, useRole as Fr, useInteractions as Wr, useMergeRefs as qr, FloatingPortal as Hr, FloatingOverlay as Vr, FloatingFocusManager as Xr } from "@floating-ui/react";
|
|
5
5
|
import Yr from "rc-tooltip";
|
|
6
6
|
import './index.css';function Zr(t) {
|
|
@@ -21,12 +21,12 @@ function Ur() {
|
|
|
21
21
|
if (Ae) return Ft;
|
|
22
22
|
Ae = 1;
|
|
23
23
|
var t = be, r = Symbol.for("react.element"), n = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, i = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, a = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
24
|
-
function l(
|
|
25
|
-
var
|
|
26
|
-
|
|
27
|
-
for (
|
|
28
|
-
if (
|
|
29
|
-
return { $$typeof: r, type:
|
|
24
|
+
function l(d, p, f) {
|
|
25
|
+
var c, g = {}, y = null, b = null;
|
|
26
|
+
f !== void 0 && (y = "" + f), p.key !== void 0 && (y = "" + p.key), p.ref !== void 0 && (b = p.ref);
|
|
27
|
+
for (c in p) s.call(p, c) && !a.hasOwnProperty(c) && (g[c] = p[c]);
|
|
28
|
+
if (d && d.defaultProps) for (c in p = d.defaultProps, p) g[c] === void 0 && (g[c] = p[c]);
|
|
29
|
+
return { $$typeof: r, type: d, key: y, ref: b, props: g, _owner: i.current };
|
|
30
30
|
}
|
|
31
31
|
return Ft.Fragment = n, Ft.jsx = l, Ft.jsxs = l, Ft;
|
|
32
32
|
}
|
|
@@ -43,54 +43,54 @@ var Wt = {};
|
|
|
43
43
|
var Be;
|
|
44
44
|
function Gr() {
|
|
45
45
|
return Be || (Be = 1, process.env.NODE_ENV !== "production" && function() {
|
|
46
|
-
var t = be, r = Symbol.for("react.element"), n = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), l = Symbol.for("react.provider"),
|
|
47
|
-
function
|
|
46
|
+
var t = be, r = Symbol.for("react.element"), n = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), d = Symbol.for("react.context"), p = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), c = Symbol.for("react.suspense_list"), g = Symbol.for("react.memo"), y = Symbol.for("react.lazy"), b = Symbol.for("react.offscreen"), w = Symbol.iterator, v = "@@iterator";
|
|
47
|
+
function u(e) {
|
|
48
48
|
if (e === null || typeof e != "object")
|
|
49
49
|
return null;
|
|
50
|
-
var
|
|
51
|
-
return typeof
|
|
50
|
+
var h = w && e[w] || e[v];
|
|
51
|
+
return typeof h == "function" ? h : null;
|
|
52
52
|
}
|
|
53
53
|
var m = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
54
|
-
function
|
|
54
|
+
function _(e) {
|
|
55
55
|
{
|
|
56
|
-
for (var
|
|
57
|
-
|
|
58
|
-
|
|
56
|
+
for (var h = arguments.length, C = new Array(h > 1 ? h - 1 : 0), R = 1; R < h; R++)
|
|
57
|
+
C[R - 1] = arguments[R];
|
|
58
|
+
x("error", e, C);
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
|
-
function
|
|
61
|
+
function x(e, h, C) {
|
|
62
62
|
{
|
|
63
63
|
var R = m.ReactDebugCurrentFrame, O = R.getStackAddendum();
|
|
64
|
-
O !== "" && (
|
|
65
|
-
var
|
|
66
|
-
return String(
|
|
64
|
+
O !== "" && (h += "%s", C = C.concat([O]));
|
|
65
|
+
var F = C.map(function(A) {
|
|
66
|
+
return String(A);
|
|
67
67
|
});
|
|
68
|
-
|
|
68
|
+
F.unshift("Warning: " + h), Function.prototype.apply.call(console[e], console, F);
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
|
-
var
|
|
72
|
-
|
|
73
|
-
function
|
|
74
|
-
return !!(typeof e == "string" || typeof e == "function" || e === s || e === a ||
|
|
71
|
+
var L = !1, E = !1, S = !1, j = !1, $ = !1, I;
|
|
72
|
+
I = Symbol.for("react.module.reference");
|
|
73
|
+
function B(e) {
|
|
74
|
+
return !!(typeof e == "string" || typeof e == "function" || e === s || e === a || $ || e === i || e === f || e === c || j || e === b || L || E || S || typeof e == "object" && e !== null && (e.$$typeof === y || e.$$typeof === g || e.$$typeof === l || e.$$typeof === d || e.$$typeof === p || // This needs to include all possible module reference object
|
|
75
75
|
// types supported by any Flight configuration anywhere since
|
|
76
76
|
// we don't know which Flight build this will end up being used
|
|
77
77
|
// with.
|
|
78
|
-
e.$$typeof ===
|
|
78
|
+
e.$$typeof === I || e.getModuleId !== void 0));
|
|
79
79
|
}
|
|
80
|
-
function
|
|
80
|
+
function D(e, h, C) {
|
|
81
81
|
var R = e.displayName;
|
|
82
82
|
if (R)
|
|
83
83
|
return R;
|
|
84
|
-
var O =
|
|
85
|
-
return O !== "" ?
|
|
84
|
+
var O = h.displayName || h.name || "";
|
|
85
|
+
return O !== "" ? C + "(" + O + ")" : C;
|
|
86
86
|
}
|
|
87
|
-
function
|
|
87
|
+
function W(e) {
|
|
88
88
|
return e.displayName || "Context";
|
|
89
89
|
}
|
|
90
|
-
function
|
|
90
|
+
function T(e) {
|
|
91
91
|
if (e == null)
|
|
92
92
|
return null;
|
|
93
|
-
if (typeof e.tag == "number" &&
|
|
93
|
+
if (typeof e.tag == "number" && _("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
94
94
|
return e.displayName || e.name || null;
|
|
95
95
|
if (typeof e == "string")
|
|
96
96
|
return e;
|
|
@@ -103,28 +103,28 @@ function Gr() {
|
|
|
103
103
|
return "Profiler";
|
|
104
104
|
case i:
|
|
105
105
|
return "StrictMode";
|
|
106
|
-
case
|
|
106
|
+
case f:
|
|
107
107
|
return "Suspense";
|
|
108
|
-
case
|
|
108
|
+
case c:
|
|
109
109
|
return "SuspenseList";
|
|
110
110
|
}
|
|
111
111
|
if (typeof e == "object")
|
|
112
112
|
switch (e.$$typeof) {
|
|
113
|
-
case
|
|
114
|
-
var
|
|
115
|
-
return
|
|
113
|
+
case d:
|
|
114
|
+
var h = e;
|
|
115
|
+
return W(h) + ".Consumer";
|
|
116
116
|
case l:
|
|
117
|
-
var
|
|
118
|
-
return
|
|
119
|
-
case
|
|
120
|
-
return
|
|
121
|
-
case
|
|
117
|
+
var C = e;
|
|
118
|
+
return W(C._context) + ".Provider";
|
|
119
|
+
case p:
|
|
120
|
+
return D(e, e.render, "ForwardRef");
|
|
121
|
+
case g:
|
|
122
122
|
var R = e.displayName || null;
|
|
123
|
-
return R !== null ? R :
|
|
124
|
-
case
|
|
125
|
-
var O = e,
|
|
123
|
+
return R !== null ? R : T(e.type) || "Memo";
|
|
124
|
+
case y: {
|
|
125
|
+
var O = e, F = O._payload, A = O._init;
|
|
126
126
|
try {
|
|
127
|
-
return
|
|
127
|
+
return T(A(F));
|
|
128
128
|
} catch {
|
|
129
129
|
return null;
|
|
130
130
|
}
|
|
@@ -132,7 +132,7 @@ function Gr() {
|
|
|
132
132
|
}
|
|
133
133
|
return null;
|
|
134
134
|
}
|
|
135
|
-
var
|
|
135
|
+
var P = Object.assign, q = 0, H, X, K, ot, rt, J, at;
|
|
136
136
|
function st() {
|
|
137
137
|
}
|
|
138
138
|
st.__reactDisabledLog = !0;
|
|
@@ -168,34 +168,34 @@ function Gr() {
|
|
|
168
168
|
writable: !0
|
|
169
169
|
};
|
|
170
170
|
Object.defineProperties(console, {
|
|
171
|
-
log:
|
|
171
|
+
log: P({}, e, {
|
|
172
172
|
value: H
|
|
173
173
|
}),
|
|
174
|
-
info:
|
|
174
|
+
info: P({}, e, {
|
|
175
175
|
value: X
|
|
176
176
|
}),
|
|
177
|
-
warn:
|
|
177
|
+
warn: P({}, e, {
|
|
178
178
|
value: K
|
|
179
179
|
}),
|
|
180
|
-
error:
|
|
180
|
+
error: P({}, e, {
|
|
181
181
|
value: ot
|
|
182
182
|
}),
|
|
183
|
-
group:
|
|
183
|
+
group: P({}, e, {
|
|
184
184
|
value: rt
|
|
185
185
|
}),
|
|
186
|
-
groupCollapsed:
|
|
186
|
+
groupCollapsed: P({}, e, {
|
|
187
187
|
value: J
|
|
188
188
|
}),
|
|
189
|
-
groupEnd:
|
|
189
|
+
groupEnd: P({}, e, {
|
|
190
190
|
value: at
|
|
191
191
|
})
|
|
192
192
|
});
|
|
193
193
|
}
|
|
194
|
-
q < 0 &&
|
|
194
|
+
q < 0 && _("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
195
195
|
}
|
|
196
196
|
}
|
|
197
197
|
var it = m.ReactCurrentDispatcher, Tt;
|
|
198
|
-
function pt(e,
|
|
198
|
+
function pt(e, h, C) {
|
|
199
199
|
{
|
|
200
200
|
if (Tt === void 0)
|
|
201
201
|
try {
|
|
@@ -213,43 +213,43 @@ function Gr() {
|
|
|
213
213
|
var oe = typeof WeakMap == "function" ? WeakMap : Map;
|
|
214
214
|
Mt = new oe();
|
|
215
215
|
}
|
|
216
|
-
function Zt(e,
|
|
216
|
+
function Zt(e, h) {
|
|
217
217
|
if (!e || Yt)
|
|
218
218
|
return "";
|
|
219
219
|
{
|
|
220
|
-
var
|
|
221
|
-
if (
|
|
222
|
-
return
|
|
220
|
+
var C = Mt.get(e);
|
|
221
|
+
if (C !== void 0)
|
|
222
|
+
return C;
|
|
223
223
|
}
|
|
224
224
|
var R;
|
|
225
225
|
Yt = !0;
|
|
226
226
|
var O = Error.prepareStackTrace;
|
|
227
227
|
Error.prepareStackTrace = void 0;
|
|
228
|
-
var
|
|
229
|
-
|
|
228
|
+
var F;
|
|
229
|
+
F = it.current, it.current = null, kt();
|
|
230
230
|
try {
|
|
231
|
-
if (
|
|
232
|
-
var
|
|
231
|
+
if (h) {
|
|
232
|
+
var A = function() {
|
|
233
233
|
throw Error();
|
|
234
234
|
};
|
|
235
|
-
if (Object.defineProperty(
|
|
235
|
+
if (Object.defineProperty(A.prototype, "props", {
|
|
236
236
|
set: function() {
|
|
237
237
|
throw Error();
|
|
238
238
|
}
|
|
239
239
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
240
240
|
try {
|
|
241
|
-
Reflect.construct(
|
|
241
|
+
Reflect.construct(A, []);
|
|
242
242
|
} catch (lt) {
|
|
243
243
|
R = lt;
|
|
244
244
|
}
|
|
245
|
-
Reflect.construct(e, [],
|
|
245
|
+
Reflect.construct(e, [], A);
|
|
246
246
|
} else {
|
|
247
247
|
try {
|
|
248
|
-
|
|
248
|
+
A.call();
|
|
249
249
|
} catch (lt) {
|
|
250
250
|
R = lt;
|
|
251
251
|
}
|
|
252
|
-
e.call(
|
|
252
|
+
e.call(A.prototype);
|
|
253
253
|
}
|
|
254
254
|
} else {
|
|
255
255
|
try {
|
|
@@ -261,17 +261,17 @@ function Gr() {
|
|
|
261
261
|
}
|
|
262
262
|
} catch (lt) {
|
|
263
263
|
if (lt && R && typeof lt.stack == "string") {
|
|
264
|
-
for (var
|
|
264
|
+
for (var N = lt.stack.split(`
|
|
265
265
|
`), nt = R.stack.split(`
|
|
266
|
-
`), Y =
|
|
266
|
+
`), Y = N.length - 1, Z = nt.length - 1; Y >= 1 && Z >= 0 && N[Y] !== nt[Z]; )
|
|
267
267
|
Z--;
|
|
268
268
|
for (; Y >= 1 && Z >= 0; Y--, Z--)
|
|
269
|
-
if (
|
|
269
|
+
if (N[Y] !== nt[Z]) {
|
|
270
270
|
if (Y !== 1 || Z !== 1)
|
|
271
271
|
do
|
|
272
|
-
if (Y--, Z--, Z < 0 ||
|
|
272
|
+
if (Y--, Z--, Z < 0 || N[Y] !== nt[Z]) {
|
|
273
273
|
var mt = `
|
|
274
|
-
` +
|
|
274
|
+
` + N[Y].replace(" at new ", " at ");
|
|
275
275
|
return e.displayName && mt.includes("<anonymous>") && (mt = mt.replace("<anonymous>", e.displayName)), typeof e == "function" && Mt.set(e, mt), mt;
|
|
276
276
|
}
|
|
277
277
|
while (Y >= 1 && Z >= 0);
|
|
@@ -279,19 +279,19 @@ function Gr() {
|
|
|
279
279
|
}
|
|
280
280
|
}
|
|
281
281
|
} finally {
|
|
282
|
-
Yt = !1, it.current =
|
|
282
|
+
Yt = !1, it.current = F, yt(), Error.prepareStackTrace = O;
|
|
283
283
|
}
|
|
284
284
|
var Bt = e ? e.displayName || e.name : "", Rt = Bt ? pt(Bt) : "";
|
|
285
285
|
return typeof e == "function" && Mt.set(e, Rt), Rt;
|
|
286
286
|
}
|
|
287
|
-
function ae(e,
|
|
287
|
+
function ae(e, h, C) {
|
|
288
288
|
return Zt(e, !1);
|
|
289
289
|
}
|
|
290
290
|
function se(e) {
|
|
291
|
-
var
|
|
292
|
-
return !!(
|
|
291
|
+
var h = e.prototype;
|
|
292
|
+
return !!(h && h.isReactComponent);
|
|
293
293
|
}
|
|
294
|
-
function Q(e,
|
|
294
|
+
function Q(e, h, C) {
|
|
295
295
|
if (e == null)
|
|
296
296
|
return "";
|
|
297
297
|
if (typeof e == "function")
|
|
@@ -299,21 +299,21 @@ function Gr() {
|
|
|
299
299
|
if (typeof e == "string")
|
|
300
300
|
return pt(e);
|
|
301
301
|
switch (e) {
|
|
302
|
-
case
|
|
302
|
+
case f:
|
|
303
303
|
return pt("Suspense");
|
|
304
|
-
case
|
|
304
|
+
case c:
|
|
305
305
|
return pt("SuspenseList");
|
|
306
306
|
}
|
|
307
307
|
if (typeof e == "object")
|
|
308
308
|
switch (e.$$typeof) {
|
|
309
|
-
case
|
|
309
|
+
case p:
|
|
310
310
|
return ae(e.render);
|
|
311
|
-
case
|
|
312
|
-
return Q(e.type,
|
|
313
|
-
case
|
|
314
|
-
var R = e, O = R._payload,
|
|
311
|
+
case g:
|
|
312
|
+
return Q(e.type, h, C);
|
|
313
|
+
case y: {
|
|
314
|
+
var R = e, O = R._payload, F = R._init;
|
|
315
315
|
try {
|
|
316
|
-
return Q(
|
|
316
|
+
return Q(F(O), h, C);
|
|
317
317
|
} catch {
|
|
318
318
|
}
|
|
319
319
|
}
|
|
@@ -323,27 +323,27 @@ function Gr() {
|
|
|
323
323
|
var tt = Object.prototype.hasOwnProperty, vt = {}, we = m.ReactDebugCurrentFrame;
|
|
324
324
|
function Ut(e) {
|
|
325
325
|
if (e) {
|
|
326
|
-
var
|
|
327
|
-
we.setExtraStackFrame(
|
|
326
|
+
var h = e._owner, C = Q(e.type, e._source, h ? h.type : null);
|
|
327
|
+
we.setExtraStackFrame(C);
|
|
328
328
|
} else
|
|
329
329
|
we.setExtraStackFrame(null);
|
|
330
330
|
}
|
|
331
|
-
function gr(e,
|
|
331
|
+
function gr(e, h, C, R, O) {
|
|
332
332
|
{
|
|
333
|
-
var
|
|
334
|
-
for (var
|
|
335
|
-
if (
|
|
336
|
-
var
|
|
333
|
+
var F = Function.call.bind(tt);
|
|
334
|
+
for (var A in e)
|
|
335
|
+
if (F(e, A)) {
|
|
336
|
+
var N = void 0;
|
|
337
337
|
try {
|
|
338
|
-
if (typeof e[
|
|
339
|
-
var nt = Error((R || "React class") + ": " +
|
|
338
|
+
if (typeof e[A] != "function") {
|
|
339
|
+
var nt = Error((R || "React class") + ": " + C + " type `" + A + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[A] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
340
340
|
throw nt.name = "Invariant Violation", nt;
|
|
341
341
|
}
|
|
342
|
-
|
|
342
|
+
N = e[A](h, A, R, C, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
343
343
|
} catch (Y) {
|
|
344
|
-
|
|
344
|
+
N = Y;
|
|
345
345
|
}
|
|
346
|
-
|
|
346
|
+
N && !(N instanceof Error) && (Ut(O), _("%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).", R || "React class", C, A, typeof N), Ut(null)), N instanceof Error && !(N.message in vt) && (vt[N.message] = !0, Ut(O), _("Failed %s type: %s", C, N.message), Ut(null));
|
|
347
347
|
}
|
|
348
348
|
}
|
|
349
349
|
}
|
|
@@ -353,8 +353,8 @@ function Gr() {
|
|
|
353
353
|
}
|
|
354
354
|
function mr(e) {
|
|
355
355
|
{
|
|
356
|
-
var
|
|
357
|
-
return
|
|
356
|
+
var h = typeof Symbol == "function" && Symbol.toStringTag, C = h && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
357
|
+
return C;
|
|
358
358
|
}
|
|
359
359
|
}
|
|
360
360
|
function br(e) {
|
|
@@ -369,107 +369,107 @@ function Gr() {
|
|
|
369
369
|
}
|
|
370
370
|
function ke(e) {
|
|
371
371
|
if (br(e))
|
|
372
|
-
return
|
|
372
|
+
return _("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", mr(e)), Ce(e);
|
|
373
373
|
}
|
|
374
374
|
var Se = m.ReactCurrentOwner, xr = {
|
|
375
375
|
key: !0,
|
|
376
376
|
ref: !0,
|
|
377
377
|
__self: !0,
|
|
378
378
|
__source: !0
|
|
379
|
-
},
|
|
379
|
+
}, Le, je;
|
|
380
380
|
function yr(e) {
|
|
381
381
|
if (tt.call(e, "ref")) {
|
|
382
|
-
var
|
|
383
|
-
if (
|
|
382
|
+
var h = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
383
|
+
if (h && h.isReactWarning)
|
|
384
384
|
return !1;
|
|
385
385
|
}
|
|
386
386
|
return e.ref !== void 0;
|
|
387
387
|
}
|
|
388
388
|
function vr(e) {
|
|
389
389
|
if (tt.call(e, "key")) {
|
|
390
|
-
var
|
|
391
|
-
if (
|
|
390
|
+
var h = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
391
|
+
if (h && h.isReactWarning)
|
|
392
392
|
return !1;
|
|
393
393
|
}
|
|
394
394
|
return e.key !== void 0;
|
|
395
395
|
}
|
|
396
|
-
function wr(e,
|
|
396
|
+
function wr(e, h) {
|
|
397
397
|
typeof e.ref == "string" && Se.current;
|
|
398
398
|
}
|
|
399
|
-
function Cr(e,
|
|
399
|
+
function Cr(e, h) {
|
|
400
400
|
{
|
|
401
|
-
var
|
|
402
|
-
|
|
401
|
+
var C = function() {
|
|
402
|
+
Le || (Le = !0, _("%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)", h));
|
|
403
403
|
};
|
|
404
|
-
|
|
405
|
-
get:
|
|
404
|
+
C.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
405
|
+
get: C,
|
|
406
406
|
configurable: !0
|
|
407
407
|
});
|
|
408
408
|
}
|
|
409
409
|
}
|
|
410
|
-
function kr(e,
|
|
410
|
+
function kr(e, h) {
|
|
411
411
|
{
|
|
412
|
-
var
|
|
413
|
-
|
|
412
|
+
var C = function() {
|
|
413
|
+
je || (je = !0, _("%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)", h));
|
|
414
414
|
};
|
|
415
|
-
|
|
416
|
-
get:
|
|
415
|
+
C.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
416
|
+
get: C,
|
|
417
417
|
configurable: !0
|
|
418
418
|
});
|
|
419
419
|
}
|
|
420
420
|
}
|
|
421
|
-
var Sr = function(e,
|
|
422
|
-
var
|
|
421
|
+
var Sr = function(e, h, C, R, O, F, A) {
|
|
422
|
+
var N = {
|
|
423
423
|
// This tag allows us to uniquely identify this as a React Element
|
|
424
424
|
$$typeof: r,
|
|
425
425
|
// Built-in properties that belong on the element
|
|
426
426
|
type: e,
|
|
427
|
-
key:
|
|
428
|
-
ref:
|
|
429
|
-
props:
|
|
427
|
+
key: h,
|
|
428
|
+
ref: C,
|
|
429
|
+
props: A,
|
|
430
430
|
// Record the component responsible for creating this element.
|
|
431
|
-
_owner:
|
|
431
|
+
_owner: F
|
|
432
432
|
};
|
|
433
|
-
return
|
|
433
|
+
return N._store = {}, Object.defineProperty(N._store, "validated", {
|
|
434
434
|
configurable: !1,
|
|
435
435
|
enumerable: !1,
|
|
436
436
|
writable: !0,
|
|
437
437
|
value: !1
|
|
438
|
-
}), Object.defineProperty(
|
|
438
|
+
}), Object.defineProperty(N, "_self", {
|
|
439
439
|
configurable: !1,
|
|
440
440
|
enumerable: !1,
|
|
441
441
|
writable: !1,
|
|
442
442
|
value: R
|
|
443
|
-
}), Object.defineProperty(
|
|
443
|
+
}), Object.defineProperty(N, "_source", {
|
|
444
444
|
configurable: !1,
|
|
445
445
|
enumerable: !1,
|
|
446
446
|
writable: !1,
|
|
447
447
|
value: O
|
|
448
|
-
}), Object.freeze && (Object.freeze(
|
|
448
|
+
}), Object.freeze && (Object.freeze(N.props), Object.freeze(N)), N;
|
|
449
449
|
};
|
|
450
|
-
function
|
|
450
|
+
function Lr(e, h, C, R, O) {
|
|
451
451
|
{
|
|
452
|
-
var
|
|
453
|
-
|
|
454
|
-
for (
|
|
455
|
-
tt.call(
|
|
452
|
+
var F, A = {}, N = null, nt = null;
|
|
453
|
+
C !== void 0 && (ke(C), N = "" + C), vr(h) && (ke(h.key), N = "" + h.key), yr(h) && (nt = h.ref, wr(h, O));
|
|
454
|
+
for (F in h)
|
|
455
|
+
tt.call(h, F) && !xr.hasOwnProperty(F) && (A[F] = h[F]);
|
|
456
456
|
if (e && e.defaultProps) {
|
|
457
457
|
var Y = e.defaultProps;
|
|
458
|
-
for (
|
|
459
|
-
|
|
458
|
+
for (F in Y)
|
|
459
|
+
A[F] === void 0 && (A[F] = Y[F]);
|
|
460
460
|
}
|
|
461
|
-
if (
|
|
461
|
+
if (N || nt) {
|
|
462
462
|
var Z = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
463
|
-
|
|
463
|
+
N && Cr(A, Z), nt && kr(A, Z);
|
|
464
464
|
}
|
|
465
|
-
return Sr(e,
|
|
465
|
+
return Sr(e, N, nt, O, R, Se.current, A);
|
|
466
466
|
}
|
|
467
467
|
}
|
|
468
468
|
var le = m.ReactCurrentOwner, $e = m.ReactDebugCurrentFrame;
|
|
469
469
|
function At(e) {
|
|
470
470
|
if (e) {
|
|
471
|
-
var
|
|
472
|
-
$e.setExtraStackFrame(
|
|
471
|
+
var h = e._owner, C = Q(e.type, e._source, h ? h.type : null);
|
|
472
|
+
$e.setExtraStackFrame(C);
|
|
473
473
|
} else
|
|
474
474
|
$e.setExtraStackFrame(null);
|
|
475
475
|
}
|
|
@@ -481,7 +481,7 @@ function Gr() {
|
|
|
481
481
|
function Te() {
|
|
482
482
|
{
|
|
483
483
|
if (le.current) {
|
|
484
|
-
var e =
|
|
484
|
+
var e = T(le.current.type);
|
|
485
485
|
if (e)
|
|
486
486
|
return `
|
|
487
487
|
|
|
@@ -490,108 +490,108 @@ Check the render method of \`` + e + "`.";
|
|
|
490
490
|
return "";
|
|
491
491
|
}
|
|
492
492
|
}
|
|
493
|
-
function
|
|
493
|
+
function jr(e) {
|
|
494
494
|
return "";
|
|
495
495
|
}
|
|
496
496
|
var Ee = {};
|
|
497
497
|
function $r(e) {
|
|
498
498
|
{
|
|
499
|
-
var
|
|
500
|
-
if (!
|
|
501
|
-
var
|
|
502
|
-
|
|
499
|
+
var h = Te();
|
|
500
|
+
if (!h) {
|
|
501
|
+
var C = typeof e == "string" ? e : e.displayName || e.name;
|
|
502
|
+
C && (h = `
|
|
503
503
|
|
|
504
|
-
Check the top-level render call using <` +
|
|
504
|
+
Check the top-level render call using <` + C + ">.");
|
|
505
505
|
}
|
|
506
|
-
return
|
|
506
|
+
return h;
|
|
507
507
|
}
|
|
508
508
|
}
|
|
509
|
-
function Re(e,
|
|
509
|
+
function Re(e, h) {
|
|
510
510
|
{
|
|
511
511
|
if (!e._store || e._store.validated || e.key != null)
|
|
512
512
|
return;
|
|
513
513
|
e._store.validated = !0;
|
|
514
|
-
var
|
|
515
|
-
if (Ee[
|
|
514
|
+
var C = $r(h);
|
|
515
|
+
if (Ee[C])
|
|
516
516
|
return;
|
|
517
|
-
Ee[
|
|
517
|
+
Ee[C] = !0;
|
|
518
518
|
var R = "";
|
|
519
|
-
e && e._owner && e._owner !== le.current && (R = " It was passed a child from " +
|
|
519
|
+
e && e._owner && e._owner !== le.current && (R = " It was passed a child from " + T(e._owner.type) + "."), At(e), _('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', C, R), At(null);
|
|
520
520
|
}
|
|
521
521
|
}
|
|
522
|
-
function Ie(e,
|
|
522
|
+
function Ie(e, h) {
|
|
523
523
|
{
|
|
524
524
|
if (typeof e != "object")
|
|
525
525
|
return;
|
|
526
526
|
if (ie(e))
|
|
527
|
-
for (var
|
|
528
|
-
var R = e[
|
|
529
|
-
de(R) && Re(R,
|
|
527
|
+
for (var C = 0; C < e.length; C++) {
|
|
528
|
+
var R = e[C];
|
|
529
|
+
de(R) && Re(R, h);
|
|
530
530
|
}
|
|
531
531
|
else if (de(e))
|
|
532
532
|
e._store && (e._store.validated = !0);
|
|
533
533
|
else if (e) {
|
|
534
|
-
var O =
|
|
534
|
+
var O = u(e);
|
|
535
535
|
if (typeof O == "function" && O !== e.entries)
|
|
536
|
-
for (var
|
|
537
|
-
de(
|
|
536
|
+
for (var F = O.call(e), A; !(A = F.next()).done; )
|
|
537
|
+
de(A.value) && Re(A.value, h);
|
|
538
538
|
}
|
|
539
539
|
}
|
|
540
540
|
}
|
|
541
541
|
function Tr(e) {
|
|
542
542
|
{
|
|
543
|
-
var
|
|
544
|
-
if (
|
|
543
|
+
var h = e.type;
|
|
544
|
+
if (h == null || typeof h == "string")
|
|
545
545
|
return;
|
|
546
|
-
var
|
|
547
|
-
if (typeof
|
|
548
|
-
|
|
549
|
-
else if (typeof
|
|
546
|
+
var C;
|
|
547
|
+
if (typeof h == "function")
|
|
548
|
+
C = h.propTypes;
|
|
549
|
+
else if (typeof h == "object" && (h.$$typeof === p || // Note: Memo only checks outer props here.
|
|
550
550
|
// Inner props are checked in the reconciler.
|
|
551
|
-
|
|
552
|
-
|
|
551
|
+
h.$$typeof === g))
|
|
552
|
+
C = h.propTypes;
|
|
553
553
|
else
|
|
554
554
|
return;
|
|
555
|
-
if (
|
|
556
|
-
var R =
|
|
557
|
-
gr(
|
|
558
|
-
} else if (
|
|
555
|
+
if (C) {
|
|
556
|
+
var R = T(h);
|
|
557
|
+
gr(C, e.props, "prop", R, e);
|
|
558
|
+
} else if (h.PropTypes !== void 0 && !ce) {
|
|
559
559
|
ce = !0;
|
|
560
|
-
var O =
|
|
561
|
-
|
|
560
|
+
var O = T(h);
|
|
561
|
+
_("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", O || "Unknown");
|
|
562
562
|
}
|
|
563
|
-
typeof
|
|
563
|
+
typeof h.getDefaultProps == "function" && !h.getDefaultProps.isReactClassApproved && _("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
564
564
|
}
|
|
565
565
|
}
|
|
566
566
|
function Er(e) {
|
|
567
567
|
{
|
|
568
|
-
for (var
|
|
569
|
-
var R =
|
|
568
|
+
for (var h = Object.keys(e.props), C = 0; C < h.length; C++) {
|
|
569
|
+
var R = h[C];
|
|
570
570
|
if (R !== "children" && R !== "key") {
|
|
571
|
-
At(e),
|
|
571
|
+
At(e), _("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", R), At(null);
|
|
572
572
|
break;
|
|
573
573
|
}
|
|
574
574
|
}
|
|
575
|
-
e.ref !== null && (At(e),
|
|
575
|
+
e.ref !== null && (At(e), _("Invalid attribute `ref` supplied to `React.Fragment`."), At(null));
|
|
576
576
|
}
|
|
577
577
|
}
|
|
578
578
|
var Ne = {};
|
|
579
|
-
function Me(e,
|
|
579
|
+
function Me(e, h, C, R, O, F) {
|
|
580
580
|
{
|
|
581
|
-
var
|
|
582
|
-
if (!
|
|
583
|
-
var
|
|
584
|
-
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (
|
|
585
|
-
var nt =
|
|
586
|
-
nt ?
|
|
581
|
+
var A = B(e);
|
|
582
|
+
if (!A) {
|
|
583
|
+
var N = "";
|
|
584
|
+
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (N += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
585
|
+
var nt = jr();
|
|
586
|
+
nt ? N += nt : N += Te();
|
|
587
587
|
var Y;
|
|
588
|
-
e === null ? Y = "null" : ie(e) ? Y = "array" : e !== void 0 && e.$$typeof === r ? (Y = "<" + (
|
|
588
|
+
e === null ? Y = "null" : ie(e) ? Y = "array" : e !== void 0 && e.$$typeof === r ? (Y = "<" + (T(e.type) || "Unknown") + " />", N = " Did you accidentally export a JSX literal instead of a component?") : Y = typeof e, _("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Y, N);
|
|
589
589
|
}
|
|
590
|
-
var Z =
|
|
590
|
+
var Z = Lr(e, h, C, O, F);
|
|
591
591
|
if (Z == null)
|
|
592
592
|
return Z;
|
|
593
|
-
if (
|
|
594
|
-
var mt =
|
|
593
|
+
if (A) {
|
|
594
|
+
var mt = h.children;
|
|
595
595
|
if (mt !== void 0)
|
|
596
596
|
if (R)
|
|
597
597
|
if (ie(mt)) {
|
|
@@ -599,17 +599,17 @@ Check the top-level render call using <` + w + ">.");
|
|
|
599
599
|
Ie(mt[Bt], e);
|
|
600
600
|
Object.freeze && Object.freeze(mt);
|
|
601
601
|
} else
|
|
602
|
-
|
|
602
|
+
_("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
603
603
|
else
|
|
604
604
|
Ie(mt, e);
|
|
605
605
|
}
|
|
606
|
-
if (tt.call(
|
|
607
|
-
var Rt =
|
|
606
|
+
if (tt.call(h, "key")) {
|
|
607
|
+
var Rt = T(e), lt = Object.keys(h).filter(function(Br) {
|
|
608
608
|
return Br !== "key";
|
|
609
609
|
}), ue = lt.length > 0 ? "{key: someKey, " + lt.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
610
610
|
if (!Ne[Rt + ue]) {
|
|
611
611
|
var Ar = lt.length > 0 ? "{" + lt.join(": ..., ") + ": ...}" : "{}";
|
|
612
|
-
|
|
612
|
+
_(`A props object containing a "key" prop is being spread into JSX:
|
|
613
613
|
let props = %s;
|
|
614
614
|
<%s {...props} />
|
|
615
615
|
React keys must be passed directly to JSX without using spread:
|
|
@@ -620,11 +620,11 @@ React keys must be passed directly to JSX without using spread:
|
|
|
620
620
|
return e === s ? Er(Z) : Tr(Z), Z;
|
|
621
621
|
}
|
|
622
622
|
}
|
|
623
|
-
function Rr(e,
|
|
624
|
-
return Me(e,
|
|
623
|
+
function Rr(e, h, C) {
|
|
624
|
+
return Me(e, h, C, !0);
|
|
625
625
|
}
|
|
626
|
-
function Ir(e,
|
|
627
|
-
return Me(e,
|
|
626
|
+
function Ir(e, h, C) {
|
|
627
|
+
return Me(e, h, C, !1);
|
|
628
628
|
}
|
|
629
629
|
var Nr = Ir, Mr = Rr;
|
|
630
630
|
Wt.Fragment = s, Wt.jsx = Nr, Wt.jsxs = Mr;
|
|
@@ -635,7 +635,7 @@ function Kr() {
|
|
|
635
635
|
return Pe || (Pe = 1, process.env.NODE_ENV === "production" ? Gt.exports = Ur() : Gt.exports = Gr()), Gt.exports;
|
|
636
636
|
}
|
|
637
637
|
var o = Kr();
|
|
638
|
-
const Jr = (t) => t.as === "a", Qr = (t) => t.as === void 0 || t.as === "button", Oe = (t) => t.displayAs === void 0 || t.displayAs === "button", tn = (t) => t.displayAs === "link", en = "_button_11kkg_1", rn = "_link_11kkg_22", nn = "_disabled_11kkg_27", on = "_loading_11kkg_27", an = "_neutral_11kkg_59", sn = "_accent_11kkg_63", ln = "_positive_11kkg_67", cn = "_negative_11kkg_71", dn = "_contrast_11kkg_75", un = "_primary_11kkg_79", _n = "_secondary_11kkg_80", pn = "_tertiary_11kkg_81", fn = "_gray_11kkg_91", gn = "_spaceBetween_11kkg_119", hn = "_rightGroup_11kkg_119", mn = "_withSubcaption_11kkg_127", bn = "_label_11kkg_139", xn = "_icon_11kkg_148", yn = "_labelText_11kkg_153", vn = "_isLink_11kkg_159", wn = "_iconOnly_11kkg_174", Cn = "_stretched_11kkg_190", kn = "_postfix_11kkg_195", Sn = "_underline_11kkg_225",
|
|
638
|
+
const Jr = (t) => t.as === "a", Qr = (t) => t.as === void 0 || t.as === "button", Oe = (t) => t.displayAs === void 0 || t.displayAs === "button", tn = (t) => t.displayAs === "link", en = "_button_11kkg_1", rn = "_link_11kkg_22", nn = "_disabled_11kkg_27", on = "_loading_11kkg_27", an = "_neutral_11kkg_59", sn = "_accent_11kkg_63", ln = "_positive_11kkg_67", cn = "_negative_11kkg_71", dn = "_contrast_11kkg_75", un = "_primary_11kkg_79", _n = "_secondary_11kkg_80", pn = "_tertiary_11kkg_81", fn = "_gray_11kkg_91", gn = "_spaceBetween_11kkg_119", hn = "_rightGroup_11kkg_119", mn = "_withSubcaption_11kkg_127", bn = "_label_11kkg_139", xn = "_icon_11kkg_148", yn = "_labelText_11kkg_153", vn = "_isLink_11kkg_159", wn = "_iconOnly_11kkg_174", Cn = "_stretched_11kkg_190", kn = "_postfix_11kkg_195", Sn = "_underline_11kkg_225", Ln = "_backButton_11kkg_428", jn = "_warning_11kkg_1159", $n = "_subcaption_11kkg_1389", Tn = "_content_11kkg_1394", En = "_contentHidden_11kkg_1398", Rn = "_loaderWrapper_11kkg_1402", In = "_l_11kkg_22", Nn = "_m_11kkg_1441", Mn = "_s_11kkg_80", An = "_xs_11kkg_1484", Bn = "_noPaddings_11kkg_1506", Pn = "_iconRight_11kkg_1542", On = "_spin_11kkg_1", z = {
|
|
639
639
|
button: en,
|
|
640
640
|
link: rn,
|
|
641
641
|
disabled: nn,
|
|
@@ -660,8 +660,8 @@ const Jr = (t) => t.as === "a", Qr = (t) => t.as === void 0 || t.as === "button"
|
|
|
660
660
|
stretched: Cn,
|
|
661
661
|
postfix: kn,
|
|
662
662
|
underline: Sn,
|
|
663
|
-
backButton:
|
|
664
|
-
warning:
|
|
663
|
+
backButton: Ln,
|
|
664
|
+
warning: jn,
|
|
665
665
|
subcaption: $n,
|
|
666
666
|
content: Tn,
|
|
667
667
|
contentHidden: En,
|
|
@@ -763,8 +763,8 @@ function to() {
|
|
|
763
763
|
var r = {}.hasOwnProperty;
|
|
764
764
|
function n() {
|
|
765
765
|
for (var a = "", l = 0; l < arguments.length; l++) {
|
|
766
|
-
var
|
|
767
|
-
|
|
766
|
+
var d = arguments[l];
|
|
767
|
+
d && (a = i(a, s(d)));
|
|
768
768
|
}
|
|
769
769
|
return a;
|
|
770
770
|
}
|
|
@@ -778,8 +778,8 @@ function to() {
|
|
|
778
778
|
if (a.toString !== Object.prototype.toString && !a.toString.toString().includes("[native code]"))
|
|
779
779
|
return a.toString();
|
|
780
780
|
var l = "";
|
|
781
|
-
for (var
|
|
782
|
-
r.call(a,
|
|
781
|
+
for (var d in a)
|
|
782
|
+
r.call(a, d) && a[d] && (l = i(l, d));
|
|
783
783
|
return l;
|
|
784
784
|
}
|
|
785
785
|
function i(a, l) {
|
|
@@ -799,7 +799,7 @@ const Nt = /* @__PURE__ */ Zr(eo), or = G(
|
|
|
799
799
|
style: i,
|
|
800
800
|
...a
|
|
801
801
|
}, l) => {
|
|
802
|
-
const
|
|
802
|
+
const d = Nt(
|
|
803
803
|
Vt.loader,
|
|
804
804
|
Vt[r],
|
|
805
805
|
Vt[`size-${t}`],
|
|
@@ -809,7 +809,7 @@ const Nt = /* @__PURE__ */ Zr(eo), or = G(
|
|
|
809
809
|
"svg",
|
|
810
810
|
{
|
|
811
811
|
ref: l,
|
|
812
|
-
className:
|
|
812
|
+
className: d,
|
|
813
813
|
fill: "none",
|
|
814
814
|
viewBox: "0 0 16 16",
|
|
815
815
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -835,13 +835,13 @@ const Nt = /* @__PURE__ */ Zr(eo), or = G(
|
|
|
835
835
|
variant: i = "accent",
|
|
836
836
|
children: a,
|
|
837
837
|
className: l,
|
|
838
|
-
style:
|
|
839
|
-
"data-testid":
|
|
840
|
-
...
|
|
841
|
-
} = t,
|
|
842
|
-
return /* @__PURE__ */ o.jsxs("div", { ref: r, className:
|
|
838
|
+
style: d,
|
|
839
|
+
"data-testid": p,
|
|
840
|
+
...f
|
|
841
|
+
} = t, c = Nt(Vt.container, l);
|
|
842
|
+
return /* @__PURE__ */ o.jsxs("div", { ref: r, className: c, style: d, "data-testid": p, ...f, children: [
|
|
843
843
|
a,
|
|
844
|
-
n && /* @__PURE__ */ o.jsx("div", { className: Vt.overlay, children: /* @__PURE__ */ o.jsx(or, { size: s, variant: i, "data-testid": `${
|
|
844
|
+
n && /* @__PURE__ */ o.jsx("div", { className: Vt.overlay, children: /* @__PURE__ */ o.jsx(or, { size: s, variant: i, "data-testid": `${p}-spinner` }) })
|
|
845
845
|
] });
|
|
846
846
|
}), ar = G((t, r) => t.children ? /* @__PURE__ */ o.jsx(
|
|
847
847
|
ro,
|
|
@@ -889,30 +889,30 @@ const Nt = /* @__PURE__ */ Zr(eo), or = G(
|
|
|
889
889
|
size: a,
|
|
890
890
|
isAsButton: l
|
|
891
891
|
}) => {
|
|
892
|
-
const
|
|
892
|
+
const d = !!(i && l && a === "l"), p = !!(!n && l && r), f = l && !!(d && !n && s || s && !d);
|
|
893
893
|
return /* @__PURE__ */ o.jsxs(Xt, { children: [
|
|
894
|
-
|
|
895
|
-
/* @__PURE__ */ o.jsx("span", { "data-testid": "button-label", className:
|
|
894
|
+
d && n && /* @__PURE__ */ o.jsxs(Xt, { children: [
|
|
895
|
+
/* @__PURE__ */ o.jsx("span", { "data-testid": "button-label", className: k(z.label, z.labelText), children: n }),
|
|
896
896
|
/* @__PURE__ */ o.jsx(
|
|
897
897
|
"span",
|
|
898
898
|
{
|
|
899
899
|
"data-testid": "button-subcaption",
|
|
900
|
-
className:
|
|
900
|
+
className: k(z.subcaption, U["typography-label-4-regular"]),
|
|
901
901
|
children: i
|
|
902
902
|
}
|
|
903
903
|
)
|
|
904
904
|
] }),
|
|
905
|
-
!
|
|
906
|
-
r && /* @__PURE__ */ o.jsx("span", { "data-testid": "button-left-icon", className:
|
|
907
|
-
/* @__PURE__ */ o.jsx("span", { className:
|
|
908
|
-
!l && t && /* @__PURE__ */ o.jsx("span", { "data-testid": "button-icon", className:
|
|
905
|
+
!d && n && /* @__PURE__ */ o.jsxs("span", { "data-testid": "button-label", className: z.label, children: [
|
|
906
|
+
r && /* @__PURE__ */ o.jsx("span", { "data-testid": "button-left-icon", className: z.icon, children: r }),
|
|
907
|
+
/* @__PURE__ */ o.jsx("span", { className: k(z.labelText, { [z.isLink]: !l }), children: n }),
|
|
908
|
+
!l && t && /* @__PURE__ */ o.jsx("span", { "data-testid": "button-icon", className: k(z.icon, z.iconRight), children: t })
|
|
909
909
|
] }),
|
|
910
|
-
|
|
911
|
-
|
|
910
|
+
p && /* @__PURE__ */ o.jsx("span", { "data-testid": "button-icon", className: z.icon, children: l ? r : t }),
|
|
911
|
+
f && /* @__PURE__ */ o.jsx("div", { "data-testid": "button-right-group", className: z.rightGroup, children: /* @__PURE__ */ o.jsx(
|
|
912
912
|
"span",
|
|
913
913
|
{
|
|
914
914
|
"data-testid": "button-postfix",
|
|
915
|
-
className:
|
|
915
|
+
className: k(z.postfix, U["typography-subtitle-2-semibold"]),
|
|
916
916
|
children: s
|
|
917
917
|
}
|
|
918
918
|
) })
|
|
@@ -924,35 +924,35 @@ const Nt = /* @__PURE__ */ Zr(eo), or = G(
|
|
|
924
924
|
buttonStyle: i = Oe(t) ? "neutral" : "accent",
|
|
925
925
|
disabled: a = !1,
|
|
926
926
|
className: l,
|
|
927
|
-
children:
|
|
928
|
-
tabIndex:
|
|
929
|
-
} = t,
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
927
|
+
children: d,
|
|
928
|
+
tabIndex: p
|
|
929
|
+
} = t, f = n === "tertiary", c = Oe(t), g = tn(t), y = f && "paddings" in t ? t.paddings ?? !0 : !0, b = c ? t.subcaption : void 0, w = c ? t.postfix : void 0, v = c ? t.stretched : void 0, u = !(g && t.size === void 0), m = g && u ? t.iconLeft : void 0, _ = g && u ? t.iconRight : void 0, x = !!(c && "loading" in t && t.loading), L = c ? a : a || x, E = !L && !x, S = c ? t.iconLeft : void 0, j = !!(!d && (c && S && !w || g && _)), $ = typeof v == "object" ? v.justify === "space-between" : void 0, I = ao(s), B = U[I], D = g ? Fn(t.size ?? "m") : void 0, W = D ? U[D] : void 0, T = Wn(L, n, i), P = L || x ? -1 : p, q = k(
|
|
930
|
+
z.button,
|
|
931
|
+
z[s],
|
|
932
|
+
z[n],
|
|
933
|
+
z[i],
|
|
934
|
+
g && W,
|
|
935
|
+
c && B,
|
|
936
936
|
{
|
|
937
|
-
[
|
|
938
|
-
[
|
|
939
|
-
[
|
|
940
|
-
[
|
|
941
|
-
[
|
|
942
|
-
[
|
|
943
|
-
[
|
|
944
|
-
[
|
|
945
|
-
[
|
|
937
|
+
[z.disabled]: L,
|
|
938
|
+
[z.loading]: c && "loading" in t && t.loading,
|
|
939
|
+
[z.stretched]: v,
|
|
940
|
+
[z.spaceBetween]: $,
|
|
941
|
+
[z.withSubcaption]: !!(b && s === "l" && d),
|
|
942
|
+
[z.iconOnly]: j,
|
|
943
|
+
[z.link]: g,
|
|
944
|
+
[z.underline]: g && "showUnderline" in t && t.showUnderline,
|
|
945
|
+
[z.noPaddings]: f && c && !y
|
|
946
946
|
},
|
|
947
947
|
l
|
|
948
948
|
), H = {
|
|
949
|
-
iconRight:
|
|
950
|
-
iconLeft:
|
|
951
|
-
children:
|
|
952
|
-
postfix:
|
|
953
|
-
subcaption:
|
|
949
|
+
iconRight: _,
|
|
950
|
+
iconLeft: c ? S : m,
|
|
951
|
+
children: d,
|
|
952
|
+
postfix: w,
|
|
953
|
+
subcaption: b,
|
|
954
954
|
size: s,
|
|
955
|
-
isAsButton:
|
|
955
|
+
isAsButton: c
|
|
956
956
|
};
|
|
957
957
|
if (Jr(t)) {
|
|
958
958
|
const { href: X, onClick: K, style: ot, target: rt, rel: J, "data-testid": at, ...st } = t, kt = ze(st), yt = rt ?? (t.isExternal ? "_blank" : void 0);
|
|
@@ -962,7 +962,7 @@ const Nt = /* @__PURE__ */ Zr(eo), or = G(
|
|
|
962
962
|
pt.add("noopener").add("noreferrer"), it = Array.from(pt).join(" ");
|
|
963
963
|
}
|
|
964
964
|
const Tt = (pt) => {
|
|
965
|
-
if (!
|
|
965
|
+
if (!E) {
|
|
966
966
|
pt.preventDefault();
|
|
967
967
|
return;
|
|
968
968
|
}
|
|
@@ -973,11 +973,11 @@ const Nt = /* @__PURE__ */ Zr(eo), or = G(
|
|
|
973
973
|
{
|
|
974
974
|
ref: r,
|
|
975
975
|
className: q,
|
|
976
|
-
href:
|
|
977
|
-
tabIndex:
|
|
976
|
+
href: E ? X : void 0,
|
|
977
|
+
tabIndex: P,
|
|
978
978
|
onClick: Tt,
|
|
979
979
|
"data-testid": at,
|
|
980
|
-
"aria-disabled":
|
|
980
|
+
"aria-disabled": L || x,
|
|
981
981
|
style: ot,
|
|
982
982
|
target: yt,
|
|
983
983
|
rel: it,
|
|
@@ -988,7 +988,7 @@ const Nt = /* @__PURE__ */ Zr(eo), or = G(
|
|
|
988
988
|
}
|
|
989
989
|
if (Qr(t)) {
|
|
990
990
|
const { type: X = "button", onClick: K, style: ot, "data-testid": rt, ...J } = t, at = ze(J), st = s === "l" ? 24 : 16, kt = (yt) => {
|
|
991
|
-
|
|
991
|
+
E && K && K(yt);
|
|
992
992
|
};
|
|
993
993
|
return /* @__PURE__ */ o.jsxs(
|
|
994
994
|
"button",
|
|
@@ -996,19 +996,19 @@ const Nt = /* @__PURE__ */ Zr(eo), or = G(
|
|
|
996
996
|
ref: r,
|
|
997
997
|
type: X,
|
|
998
998
|
className: q,
|
|
999
|
-
disabled:
|
|
1000
|
-
tabIndex:
|
|
999
|
+
disabled: L,
|
|
1000
|
+
tabIndex: P,
|
|
1001
1001
|
onClick: kt,
|
|
1002
1002
|
"data-testid": rt,
|
|
1003
|
-
"aria-disabled":
|
|
1003
|
+
"aria-disabled": L || x,
|
|
1004
1004
|
style: ot,
|
|
1005
1005
|
...at,
|
|
1006
1006
|
children: [
|
|
1007
|
-
/* @__PURE__ */ o.jsx("div", { className:
|
|
1008
|
-
|
|
1007
|
+
/* @__PURE__ */ o.jsx("div", { className: k(z.content, { [z.contentHidden]: x }), children: /* @__PURE__ */ o.jsx(Fe, { ...H }) }),
|
|
1008
|
+
x && /* @__PURE__ */ o.jsx("div", { className: z.loaderWrapper, children: /* @__PURE__ */ o.jsx(
|
|
1009
1009
|
ar,
|
|
1010
1010
|
{
|
|
1011
|
-
variant:
|
|
1011
|
+
variant: T,
|
|
1012
1012
|
"aria-hidden": "true",
|
|
1013
1013
|
"data-testid": "button-loader",
|
|
1014
1014
|
size: st
|
|
@@ -1030,7 +1030,7 @@ const sr = G(
|
|
|
1030
1030
|
buttonStyle: "neutral",
|
|
1031
1031
|
size: "m",
|
|
1032
1032
|
iconLeft: n ?? /* @__PURE__ */ o.jsx(no, {}),
|
|
1033
|
-
className:
|
|
1033
|
+
className: k(z.backButton, U["typography-subtitle-1-semibold"], s)
|
|
1034
1034
|
};
|
|
1035
1035
|
return /* @__PURE__ */ o.jsx(ye, { ref: r, ...l });
|
|
1036
1036
|
}
|
|
@@ -1120,10 +1120,10 @@ const vo = {
|
|
|
1120
1120
|
function wo(t) {
|
|
1121
1121
|
return vo[t] || "typography-subtitle-1-semibold";
|
|
1122
1122
|
}
|
|
1123
|
-
const Co = "data:image/svg+xml,%3csvg%20opacity='0.9'%20preserveAspectRatio='xMinYMin%20meet'%20viewBox='0%200%20208%20208'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cdefs%3e%3cfilter%20id='shadowW'%20filterUnits='userSpaceOnUse'%3e%3cfeDropShadow%20dx='-2'%20dy='-1'%20stdDeviation='5'%20flood-color='rgba(0,0,0,0.5)'/%3e%3c/filter%3e%3c/defs%3e%3cg%20filter='url(%23shadowW)'%3e%3cpath%20d='M23.9835%20174.59L113.41%20157.735L225.224%20191.671C225.224%20191.671%20250.259%20479.463%20243.525%20478.31C236.655%20477.167%20-7.79434%20482.039%20-8.17876%20476.943C-8.56308%20471.849%20-34.4445%20341.701%20-34.4445%20341.701L23.9835%20174.59Z'%20fill='darkgrey'/%3e%3cpath%20d='M-54.5558%20212.781C-85.688%20282.842%20-94.2122%20303.839%20-94.2122%20303.839L-213.504%20213.002C-214.953%20197.465%20-218.637%20181.68%20-225.636%20167.806C-234.412%20150.606%20-246.154%20149.138%20-259.595%20136.166C-267.368%20128.583%20-275.073%20140.242%20-267.3%20147.825L-259.338%20156.087C-258.869%20160.482%20-255.518%20171.861%20-254.634%20176.226C-267.475%20165.702%20-284.704%20150.246%20-300.665%20144.25C-305.079%20142.644%20-308.958%20144.46%20-311.08%20147.528C-314.628%20148.211%20-317.292%20151.458%20-317.858%20154.963C-321.103%20157.839%20-322.625%20163.354%20-319.254%20167.67C-321.407%20170.323%20-322.376%20173.998%20-320.433%20177.728C-320.274%20177.993%20-320.127%20178.12%20-320.106%20178.395C-320.997%20179.432%20-319.498%20182.78%20-320.337%20184.506C-324.035%20192.401%20-309.357%20221.757%20-285.221%20235.167C-277.291%20250.355%20-262.477%20259.485%20-261.354%20259.677C-234.512%20290.608%20-141.301%20400.999%20-97.2451%20436.169C-47.2868%20476.158%20-12.9855%20418.735%2010.6424%20317.115C34.2598%20215.358%2037.6457%20181.315%2037.6457%20181.315L116.374%20158.482C14.4423%20160.079%20-23.2964%20142.572%20-54.5558%20212.781Z'%20fill='darkgrey'/%3e%3cpath%20d='M116.781%20158.313L114.885%20158.871L61.4974%20174.391L38.0516%20181.145C38.0516%20181.145%2034.6758%20215.325%2011.0481%20316.945C9.47097%20323.572%207.88344%20330.061%206.27525%20336.275C-22.5942%20315.191%20-52.217%20295.131%20-82.0946%20275.368C-75.9632%20261.197%20-67.1116%20240.867%20-54.4359%20212.493C-30.4015%20158.477%20-2.57835%20156.516%2055.793%20157.512C72.5674%20157.77%2091.7239%20158.403%20114.133%20158.096C114.98%20158.309%20115.807%20158.247%20116.781%20158.313Z'%20fill='darkgrey'/%3e%3cpath%20d='M113.269%20157.745C175.26%20159.023%20252.771%20143.897%20266.382%20199.504C279.867%20255.26%20288.576%20280.774%20295.899%20320.932C303.221%20361.091%20322.043%20408.689%20271.897%20417.595C221.75%20426.502%20106.238%20444.495%20106.238%20444.495L78.8767%20384.662C78.8767%20384.662%20170.648%20343.813%20200.242%20332.303L185.17%20211.448L113.269%20157.745Z'%20fill='darkgrey'/%3e%3cpath%20d='M292.122%20302.108C260.506%20305.187%20228.942%20308.953%20198.219%20316.533L185.178%20211.585L140.855%20178.374L114.874%20158.871L114.144%20158.372L113.266%20157.746C127.138%20158.084%20141.774%20157.534%20156.283%20157.131C206.726%20155.818%20255.78%20156.271%20266.252%20199.654C277.643%20246.012%20285.665%20271.578%20292.122%20302.108Z'%20fill='darkgrey'/%3e%3cpath%20d='M108.001%20172.269C119.623%20168.485%20130.939%20164.308%20142.395%20160.12L112.224%20101.608L68.8441%20124.959C69.7222%20125.585%2079.0944%20154.372%2086.547%20177.904C93.7406%20175.977%20100.965%20174.463%20108.001%20172.269Z'%20fill='white'/%3e%3cpath%20d='M99.3655%20112.96C99.0934%20111.18%2098.8213%20109.401%2098.2722%20107.642L68.9864%20125.083C69.5682%20125.455%2073.8492%20138.148%2078.7406%20153.426C89.4856%20141.676%2097.5757%20127.773%2099.3655%20112.96Z'%20fill='darkgrey'/%3e%3cpath%20d='M144.524%2069.1209C143.075%2053.5829%20118.601%2039.3668%2099.9856%2038.5556C91.9262%2038.1943%2089.5107%2031.8684%2086.0605%2037.5291C77.5782%2051.7392%2049.6837%2094.9694%2052.2654%20110.837C56.0862%20133.951%2084.5691%20137.063%20102.228%20127.008C120.022%20116.942%20146.6%2091.1195%20144.524%2069.1209Z'%20fill='white'/%3e%3cpath%20d='M145.753%2072.4915C147.93%2068.3116%20146.317%2063.4483%20142.804%2060.944C142.656%2060.8166%20142.656%2060.8166%20142.507%2060.6894C143.028%2052.8957%20136.915%2047.1257%20129.979%2046.9567C129.007%2045.0914%20127.379%2043.691%20125.24%2042.883C124.903%2042.0778%20124.575%2041.4101%20123.982%2040.9009C122.651%2039.7551%20121.095%2039.3187%20119.441%2039.4435C118.081%2036.0843%20115.925%2033.2005%20112.495%2031.7977C110.348%2030.8519%20108.027%2031.304%20106.311%2032.4027C102.006%2028.5734%2096.789%2025.5051%2091.8112%2025.6038C89.736%2025.6218%2085.678%2026.8973%2084.2724%2032.1268C82.1968%2032.1449%2080.3522%2033.3917%2079.5546%2035.6676C78.427%2039.0759%2080.339%2042.3935%2083.1109%2044.2613C84.719%2045.3863%2086.9841%2046.0462%2089.0391%2045.7526C95.9026%2052.2969%20114.028%2063.1149%20118.148%2062.6657C115.532%2070.202%20113.218%2087.2698%20122.007%2088.1299C124.21%2095.3028%20116.99%20107.894%20121.368%20112.688C129.639%20104.863%20137.246%2095.5655%20141.359%2085.8391C141.496%2085.8288%20141.772%2085.808%20142.047%2085.7872C148.14%2083.9429%20149.527%2076.6377%20145.753%2072.4915Z'%20fill='darkgrey'/%3e%3cpath%20d='M140.151%20104.76C141.594%2096.3432%20132.67%2086.3542%20121.049%2088.3387C116.251%2096.3166%20111.305%20104.167%20106.21%20111.89C109.317%20116.364%20118.141%20121.376%20125.535%20120.264C133.872%20118.804%20138.613%20113.738%20140.151%20104.76Z'%20fill='white'/%3e%3cpath%20d='M156.755%20156.883C153.217%20165.043%20147.805%20172.237%20141.188%20178.136C133.925%20184.639%20125.011%20189.465%20114.809%20191.896C95.2214%20196.558%2072.2825%20189.842%2061.6836%20174.164C58.5559%20169.414%2056.4778%20163.894%2056%20157.561C72.7744%20157.818%2091.9311%20158.451%20114.34%20158.144L113.462%20157.519C127.463%20157.709%20142.098%20157.159%20156.755%20156.883Z'%20fill='white'/%3e%3c/g%3e%3c/svg%3e", ko = "data:image/svg+xml,%3csvg%20viewBox='0%200%20208%20208'%20opacity='0.9'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20filter='url(%23shadow)'%3e%3cpath%20filter='url(%23shadow)'%20d='M127.173%2079.8894C127.189%2079.1933%20128.026%2079.1201%20128.436%2079.4316C128.754%2079.6091%20128.895%2080.1021%20128.809%2080.5518C129.241%2083.1982%20129.581%2085.7106%20130.013%2088.357C136.835%2079.7558%20149.235%2076.9989%20158.979%2083.174C168.086%2088.9941%20171.001%20111.745%20135.501%20120.502C131.5%20123.502%20117%20125.002%20111.753%20103.279C111.682%2093.2427%20118.526%2084.529%20127.173%2079.8894Z'%20fill='darkgrey'/%3e%3cpath%20d='M28.0441%20167.788C21.826%20195.052%2018.7311%20223.361%2014.1881%20250.885C9.42226%20279.982%204.68042%20308.967%20-0.0853729%20338.064L-1.00047%20342.848C14.5039%20346.419%2030.8401%20350.407%2046.3671%20353.868C90.9428%20363.918%20134.837%20376.598%20179.293%20387.201C200.345%20337.142%20219.778%20286.027%20235.82%20234.041C243.806%20208.213%20244.758%20181.282%20225.443%20160.043C216.099%20149.841%20204.347%20143.858%20191.629%20140.212C188.924%20139.377%20186.108%20138.517%20183.355%20137.905C179.635%20136.959%20175.781%20136.1%20171.989%20135.487C167.45%20134.592%20162.753%20133.893%20158.277%20133.243L127.871%20128.671L116.251%20126.895C115.457%20126.833%20114.686%20126.662%20113.915%20126.49C102.87%20124.724%2091.7381%20122.824%2080.6188%20123.013C69.1682%20123.13%2056.9012%20125.964%2047.8363%20133.224C36.9821%20141.825%2031.1109%20154.087%2028.0441%20167.788Z'%20fill='darkgrey'/%3e%3cpath%20d='M103.74%20123.732L95.6984%20197.532C95.6984%20197.532%20137.13%20157.315%20158.742%20133.268C155.051%20132.316%20151.227%20131.449%20147.465%20130.831C142.962%20129.929%20138.302%20129.224%20133.861%20128.569L103.74%20123.732Z'%20fill='white'/%3e%3cpath%20d='M97.8143%20115.298C99.0227%20116.625%20108.229%20179.332%20108.229%20179.332L148.012%20142.157L129%20100L97.8143%20115.298Z'%20fill='white'/%3e%3cpath%20d='M101.71%20148.534C100.068%20137.868%2098.402%20127.706%2098.0001%20127.274L112.673%20122C113.831%20131.449%20108.467%20141.173%20101.71%20148.534Z'%20fill='grey'/%3e%3cpath%20d='M121.545%2040.7383C111.161%2030.599%2085.3871%2035.4814%2071.93%2046.2862C66.0912%2051.0172%2060.5415%2047.9025%2061.6427%2054.0842C64.3767%2069.3597%2074.0239%20120.283%2082.7631%20126.794C100.374%20139.728%20121.191%20125.699%20127.329%20107.658C133.554%2089.7517%20136.293%2055.2372%20121.545%2040.7383Z'%20fill='white'/%3e%3cpath%20d='M56.0176%2041.9837C61.9834%2036.7831%2074.9427%2037.4243%2081.3074%2039.639C95.1733%2033.9235%20112.672%2032.6801%20120.968%2040.1438C131.22%2049.4771%20133.446%2067.5345%20132.042%2083.8281C125.848%2083.0025%20122.779%2078.6471%20116.718%2075.0286C97.7466%2073.2611%2084.9353%2061.0313%2082.042%2054.2301C78.3492%2058.2067%2063.3398%2059.3993%2058.12%2055.1646C51.1278%2048.7596%2054.1283%2043.6248%2056.0176%2041.9837Z'%20fill='darkgrey'/%3e%3cpath%20d='M142.838%2074.8316C138.561%2067.841%20123.674%2066.785%20116.5%2075.5006C118.078%2084.3219%20121.503%2092.5524%20122.726%20101.41C127.77%20102.657%20137.388%20100.869%20141.908%2095.386C147.168%2089.1414%20147.462%2082.3637%20142.838%2074.8316Z'%20fill='white'/%3e%3c/g%3e%3cdefs%3e%3cfilter%20id='shadow'%3e%3cfeDropShadow%20dx='0'%20dy='0'%20stdDeviation='3'%20flood-color='rgba(0,0,0,0.3)'/%3e%3c/filter%3e%3c/defs%3e%3c/svg%3e", So = "data:image/svg+xml,%3csvg%20opacity='0.9'%20viewBox='0%200%20208%20208'%20fill='currentColor'%20xmlns='http://www.w3.org/2000/svg'%3e%3cdefs%3e%3cmask%20id='hole'%3e%3crect%20width='100%25'%20height='100%25'%20fill='white'/%3e%3ccircle%20cx='121.333'%20cy='121.333'%20r='52'%20fill='black'/%3e%3c/mask%3e%3cfilter%20id='shadow'%3e%3cfeDropShadow%20dx='-2'%20dy='-1'%20stdDeviation='10'%20flood-color='rgba(0,0,0,0.2)'/%3e%3c/filter%3e%3c/defs%3e%3cg%20filter='url(%23shadow)'%3e%3ccircle%20cx='104'%20cy='225.333'%20r='95.3333'%20fill='darkgray'/%3e%3ccircle%20cx='104'%20cy='225.333'%20r='95.3333'%20fill='white'%20mask='url(%23hole)'/%3e%3ccircle%20cx='104'%20cy='86.6666'%20r='52'%20fill='white'/%3e%3c/g%3e%3c/svg%3e", jo = "data:image/svg+xml,%3csvg%20opacity='0.9'%20viewBox='0%200%20208%20208'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20filter='url(%23shadow)'%3e%3cpath%20d='M168%20208V118.053C168%20113.824%20165.34%20110.052%20161.356%20108.633L134%2098.885V208H168Z'%20fill='darkgrey'/%3e%3cpath%20d='M40%2072.3726C40%2070.7381%2040.9944%2069.268%2042.5116%2068.6598L111.951%2040.8215C113.226%2040.3102%20114.675%2040.4893%20115.787%2041.2958L129.87%2051.5056C132.464%2053.3866%20134%2056.397%20134%2059.6017V208H40V72.3726Z'%20fill='white'/%3e%3cpath%20d='M114%2047.5001L126.325%2056.3036C127.376%2057.0544%20128%2058.2667%20128%2059.5585V208H114V47.5001Z'%20fill='darkgrey'/%3e%3c/g%3e%3cdefs%3e%3cfilter%20id='shadow'%3e%3cfeDropShadow%20dx='-2'%20dy='-1'%20stdDeviation='7'%20flood-color='rgba(0,0,0,0.2)'/%3e%3c/filter%3e%3c/defs%3e%3c/svg%3e", Lo = {
|
|
1123
|
+
const Co = "data:image/svg+xml,%3csvg%20opacity='0.9'%20preserveAspectRatio='xMinYMin%20meet'%20viewBox='0%200%20208%20208'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cdefs%3e%3cfilter%20id='shadowW'%20filterUnits='userSpaceOnUse'%3e%3cfeDropShadow%20dx='-2'%20dy='-1'%20stdDeviation='5'%20flood-color='rgba(0,0,0,0.5)'/%3e%3c/filter%3e%3c/defs%3e%3cg%20filter='url(%23shadowW)'%3e%3cpath%20d='M23.9835%20174.59L113.41%20157.735L225.224%20191.671C225.224%20191.671%20250.259%20479.463%20243.525%20478.31C236.655%20477.167%20-7.79434%20482.039%20-8.17876%20476.943C-8.56308%20471.849%20-34.4445%20341.701%20-34.4445%20341.701L23.9835%20174.59Z'%20fill='darkgrey'/%3e%3cpath%20d='M-54.5558%20212.781C-85.688%20282.842%20-94.2122%20303.839%20-94.2122%20303.839L-213.504%20213.002C-214.953%20197.465%20-218.637%20181.68%20-225.636%20167.806C-234.412%20150.606%20-246.154%20149.138%20-259.595%20136.166C-267.368%20128.583%20-275.073%20140.242%20-267.3%20147.825L-259.338%20156.087C-258.869%20160.482%20-255.518%20171.861%20-254.634%20176.226C-267.475%20165.702%20-284.704%20150.246%20-300.665%20144.25C-305.079%20142.644%20-308.958%20144.46%20-311.08%20147.528C-314.628%20148.211%20-317.292%20151.458%20-317.858%20154.963C-321.103%20157.839%20-322.625%20163.354%20-319.254%20167.67C-321.407%20170.323%20-322.376%20173.998%20-320.433%20177.728C-320.274%20177.993%20-320.127%20178.12%20-320.106%20178.395C-320.997%20179.432%20-319.498%20182.78%20-320.337%20184.506C-324.035%20192.401%20-309.357%20221.757%20-285.221%20235.167C-277.291%20250.355%20-262.477%20259.485%20-261.354%20259.677C-234.512%20290.608%20-141.301%20400.999%20-97.2451%20436.169C-47.2868%20476.158%20-12.9855%20418.735%2010.6424%20317.115C34.2598%20215.358%2037.6457%20181.315%2037.6457%20181.315L116.374%20158.482C14.4423%20160.079%20-23.2964%20142.572%20-54.5558%20212.781Z'%20fill='darkgrey'/%3e%3cpath%20d='M116.781%20158.313L114.885%20158.871L61.4974%20174.391L38.0516%20181.145C38.0516%20181.145%2034.6758%20215.325%2011.0481%20316.945C9.47097%20323.572%207.88344%20330.061%206.27525%20336.275C-22.5942%20315.191%20-52.217%20295.131%20-82.0946%20275.368C-75.9632%20261.197%20-67.1116%20240.867%20-54.4359%20212.493C-30.4015%20158.477%20-2.57835%20156.516%2055.793%20157.512C72.5674%20157.77%2091.7239%20158.403%20114.133%20158.096C114.98%20158.309%20115.807%20158.247%20116.781%20158.313Z'%20fill='darkgrey'/%3e%3cpath%20d='M113.269%20157.745C175.26%20159.023%20252.771%20143.897%20266.382%20199.504C279.867%20255.26%20288.576%20280.774%20295.899%20320.932C303.221%20361.091%20322.043%20408.689%20271.897%20417.595C221.75%20426.502%20106.238%20444.495%20106.238%20444.495L78.8767%20384.662C78.8767%20384.662%20170.648%20343.813%20200.242%20332.303L185.17%20211.448L113.269%20157.745Z'%20fill='darkgrey'/%3e%3cpath%20d='M292.122%20302.108C260.506%20305.187%20228.942%20308.953%20198.219%20316.533L185.178%20211.585L140.855%20178.374L114.874%20158.871L114.144%20158.372L113.266%20157.746C127.138%20158.084%20141.774%20157.534%20156.283%20157.131C206.726%20155.818%20255.78%20156.271%20266.252%20199.654C277.643%20246.012%20285.665%20271.578%20292.122%20302.108Z'%20fill='darkgrey'/%3e%3cpath%20d='M108.001%20172.269C119.623%20168.485%20130.939%20164.308%20142.395%20160.12L112.224%20101.608L68.8441%20124.959C69.7222%20125.585%2079.0944%20154.372%2086.547%20177.904C93.7406%20175.977%20100.965%20174.463%20108.001%20172.269Z'%20fill='white'/%3e%3cpath%20d='M99.3655%20112.96C99.0934%20111.18%2098.8213%20109.401%2098.2722%20107.642L68.9864%20125.083C69.5682%20125.455%2073.8492%20138.148%2078.7406%20153.426C89.4856%20141.676%2097.5757%20127.773%2099.3655%20112.96Z'%20fill='darkgrey'/%3e%3cpath%20d='M144.524%2069.1209C143.075%2053.5829%20118.601%2039.3668%2099.9856%2038.5556C91.9262%2038.1943%2089.5107%2031.8684%2086.0605%2037.5291C77.5782%2051.7392%2049.6837%2094.9694%2052.2654%20110.837C56.0862%20133.951%2084.5691%20137.063%20102.228%20127.008C120.022%20116.942%20146.6%2091.1195%20144.524%2069.1209Z'%20fill='white'/%3e%3cpath%20d='M145.753%2072.4915C147.93%2068.3116%20146.317%2063.4483%20142.804%2060.944C142.656%2060.8166%20142.656%2060.8166%20142.507%2060.6894C143.028%2052.8957%20136.915%2047.1257%20129.979%2046.9567C129.007%2045.0914%20127.379%2043.691%20125.24%2042.883C124.903%2042.0778%20124.575%2041.4101%20123.982%2040.9009C122.651%2039.7551%20121.095%2039.3187%20119.441%2039.4435C118.081%2036.0843%20115.925%2033.2005%20112.495%2031.7977C110.348%2030.8519%20108.027%2031.304%20106.311%2032.4027C102.006%2028.5734%2096.789%2025.5051%2091.8112%2025.6038C89.736%2025.6218%2085.678%2026.8973%2084.2724%2032.1268C82.1968%2032.1449%2080.3522%2033.3917%2079.5546%2035.6676C78.427%2039.0759%2080.339%2042.3935%2083.1109%2044.2613C84.719%2045.3863%2086.9841%2046.0462%2089.0391%2045.7526C95.9026%2052.2969%20114.028%2063.1149%20118.148%2062.6657C115.532%2070.202%20113.218%2087.2698%20122.007%2088.1299C124.21%2095.3028%20116.99%20107.894%20121.368%20112.688C129.639%20104.863%20137.246%2095.5655%20141.359%2085.8391C141.496%2085.8288%20141.772%2085.808%20142.047%2085.7872C148.14%2083.9429%20149.527%2076.6377%20145.753%2072.4915Z'%20fill='darkgrey'/%3e%3cpath%20d='M140.151%20104.76C141.594%2096.3432%20132.67%2086.3542%20121.049%2088.3387C116.251%2096.3166%20111.305%20104.167%20106.21%20111.89C109.317%20116.364%20118.141%20121.376%20125.535%20120.264C133.872%20118.804%20138.613%20113.738%20140.151%20104.76Z'%20fill='white'/%3e%3cpath%20d='M156.755%20156.883C153.217%20165.043%20147.805%20172.237%20141.188%20178.136C133.925%20184.639%20125.011%20189.465%20114.809%20191.896C95.2214%20196.558%2072.2825%20189.842%2061.6836%20174.164C58.5559%20169.414%2056.4778%20163.894%2056%20157.561C72.7744%20157.818%2091.9311%20158.451%20114.34%20158.144L113.462%20157.519C127.463%20157.709%20142.098%20157.159%20156.755%20156.883Z'%20fill='white'/%3e%3c/g%3e%3c/svg%3e", ko = "data:image/svg+xml,%3csvg%20viewBox='0%200%20208%20208'%20opacity='0.9'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20filter='url(%23shadow)'%3e%3cpath%20filter='url(%23shadow)'%20d='M127.173%2079.8894C127.189%2079.1933%20128.026%2079.1201%20128.436%2079.4316C128.754%2079.6091%20128.895%2080.1021%20128.809%2080.5518C129.241%2083.1982%20129.581%2085.7106%20130.013%2088.357C136.835%2079.7558%20149.235%2076.9989%20158.979%2083.174C168.086%2088.9941%20171.001%20111.745%20135.501%20120.502C131.5%20123.502%20117%20125.002%20111.753%20103.279C111.682%2093.2427%20118.526%2084.529%20127.173%2079.8894Z'%20fill='darkgrey'/%3e%3cpath%20d='M28.0441%20167.788C21.826%20195.052%2018.7311%20223.361%2014.1881%20250.885C9.42226%20279.982%204.68042%20308.967%20-0.0853729%20338.064L-1.00047%20342.848C14.5039%20346.419%2030.8401%20350.407%2046.3671%20353.868C90.9428%20363.918%20134.837%20376.598%20179.293%20387.201C200.345%20337.142%20219.778%20286.027%20235.82%20234.041C243.806%20208.213%20244.758%20181.282%20225.443%20160.043C216.099%20149.841%20204.347%20143.858%20191.629%20140.212C188.924%20139.377%20186.108%20138.517%20183.355%20137.905C179.635%20136.959%20175.781%20136.1%20171.989%20135.487C167.45%20134.592%20162.753%20133.893%20158.277%20133.243L127.871%20128.671L116.251%20126.895C115.457%20126.833%20114.686%20126.662%20113.915%20126.49C102.87%20124.724%2091.7381%20122.824%2080.6188%20123.013C69.1682%20123.13%2056.9012%20125.964%2047.8363%20133.224C36.9821%20141.825%2031.1109%20154.087%2028.0441%20167.788Z'%20fill='darkgrey'/%3e%3cpath%20d='M103.74%20123.732L95.6984%20197.532C95.6984%20197.532%20137.13%20157.315%20158.742%20133.268C155.051%20132.316%20151.227%20131.449%20147.465%20130.831C142.962%20129.929%20138.302%20129.224%20133.861%20128.569L103.74%20123.732Z'%20fill='white'/%3e%3cpath%20d='M97.8143%20115.298C99.0227%20116.625%20108.229%20179.332%20108.229%20179.332L148.012%20142.157L129%20100L97.8143%20115.298Z'%20fill='white'/%3e%3cpath%20d='M101.71%20148.534C100.068%20137.868%2098.402%20127.706%2098.0001%20127.274L112.673%20122C113.831%20131.449%20108.467%20141.173%20101.71%20148.534Z'%20fill='grey'/%3e%3cpath%20d='M121.545%2040.7383C111.161%2030.599%2085.3871%2035.4814%2071.93%2046.2862C66.0912%2051.0172%2060.5415%2047.9025%2061.6427%2054.0842C64.3767%2069.3597%2074.0239%20120.283%2082.7631%20126.794C100.374%20139.728%20121.191%20125.699%20127.329%20107.658C133.554%2089.7517%20136.293%2055.2372%20121.545%2040.7383Z'%20fill='white'/%3e%3cpath%20d='M56.0176%2041.9837C61.9834%2036.7831%2074.9427%2037.4243%2081.3074%2039.639C95.1733%2033.9235%20112.672%2032.6801%20120.968%2040.1438C131.22%2049.4771%20133.446%2067.5345%20132.042%2083.8281C125.848%2083.0025%20122.779%2078.6471%20116.718%2075.0286C97.7466%2073.2611%2084.9353%2061.0313%2082.042%2054.2301C78.3492%2058.2067%2063.3398%2059.3993%2058.12%2055.1646C51.1278%2048.7596%2054.1283%2043.6248%2056.0176%2041.9837Z'%20fill='darkgrey'/%3e%3cpath%20d='M142.838%2074.8316C138.561%2067.841%20123.674%2066.785%20116.5%2075.5006C118.078%2084.3219%20121.503%2092.5524%20122.726%20101.41C127.77%20102.657%20137.388%20100.869%20141.908%2095.386C147.168%2089.1414%20147.462%2082.3637%20142.838%2074.8316Z'%20fill='white'/%3e%3c/g%3e%3cdefs%3e%3cfilter%20id='shadow'%3e%3cfeDropShadow%20dx='0'%20dy='0'%20stdDeviation='3'%20flood-color='rgba(0,0,0,0.3)'/%3e%3c/filter%3e%3c/defs%3e%3c/svg%3e", So = "data:image/svg+xml,%3csvg%20opacity='0.9'%20viewBox='0%200%20208%20208'%20fill='currentColor'%20xmlns='http://www.w3.org/2000/svg'%3e%3cdefs%3e%3cmask%20id='hole'%3e%3crect%20width='100%25'%20height='100%25'%20fill='white'/%3e%3ccircle%20cx='121.333'%20cy='121.333'%20r='52'%20fill='black'/%3e%3c/mask%3e%3cfilter%20id='shadow'%3e%3cfeDropShadow%20dx='-2'%20dy='-1'%20stdDeviation='10'%20flood-color='rgba(0,0,0,0.2)'/%3e%3c/filter%3e%3c/defs%3e%3cg%20filter='url(%23shadow)'%3e%3ccircle%20cx='104'%20cy='225.333'%20r='95.3333'%20fill='darkgray'/%3e%3ccircle%20cx='104'%20cy='225.333'%20r='95.3333'%20fill='white'%20mask='url(%23hole)'/%3e%3ccircle%20cx='104'%20cy='86.6666'%20r='52'%20fill='white'/%3e%3c/g%3e%3c/svg%3e", Lo = "data:image/svg+xml,%3csvg%20opacity='0.9'%20viewBox='0%200%20208%20208'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20filter='url(%23shadow)'%3e%3cpath%20d='M168%20208V118.053C168%20113.824%20165.34%20110.052%20161.356%20108.633L134%2098.885V208H168Z'%20fill='darkgrey'/%3e%3cpath%20d='M40%2072.3726C40%2070.7381%2040.9944%2069.268%2042.5116%2068.6598L111.951%2040.8215C113.226%2040.3102%20114.675%2040.4893%20115.787%2041.2958L129.87%2051.5056C132.464%2053.3866%20134%2056.397%20134%2059.6017V208H40V72.3726Z'%20fill='white'/%3e%3cpath%20d='M114%2047.5001L126.325%2056.3036C127.376%2057.0544%20128%2058.2667%20128%2059.5585V208H114V47.5001Z'%20fill='darkgrey'/%3e%3c/g%3e%3cdefs%3e%3cfilter%20id='shadow'%3e%3cfeDropShadow%20dx='-2'%20dy='-1'%20stdDeviation='7'%20flood-color='rgba(0,0,0,0.2)'/%3e%3c/filter%3e%3c/defs%3e%3c/svg%3e", jo = {
|
|
1124
1124
|
male: Co,
|
|
1125
1125
|
female: ko,
|
|
1126
|
-
org:
|
|
1126
|
+
org: Lo,
|
|
1127
1127
|
neutral: So
|
|
1128
1128
|
}, te = G((t, r) => {
|
|
1129
1129
|
const {
|
|
@@ -1132,86 +1132,86 @@ const Co = "data:image/svg+xml,%3csvg%20opacity='0.9'%20preserveAspectRatio='xMi
|
|
|
1132
1132
|
isLoading: i = !1,
|
|
1133
1133
|
isDisabled: a = !1,
|
|
1134
1134
|
shape: l = "circle",
|
|
1135
|
-
variant:
|
|
1136
|
-
placeholderType:
|
|
1137
|
-
name:
|
|
1138
|
-
imgSrc:
|
|
1139
|
-
imgAlt:
|
|
1140
|
-
icon:
|
|
1141
|
-
imgProps:
|
|
1142
|
-
colorScheme:
|
|
1143
|
-
className:
|
|
1144
|
-
"data-testid":
|
|
1135
|
+
variant: d = "filled",
|
|
1136
|
+
placeholderType: p = "neutral",
|
|
1137
|
+
name: f,
|
|
1138
|
+
imgSrc: c,
|
|
1139
|
+
imgAlt: g,
|
|
1140
|
+
icon: y,
|
|
1141
|
+
imgProps: b,
|
|
1142
|
+
colorScheme: w,
|
|
1143
|
+
className: v,
|
|
1144
|
+
"data-testid": u,
|
|
1145
1145
|
...m
|
|
1146
|
-
} = t, { onClick:
|
|
1146
|
+
} = t, { onClick: _, onPointerDown: x } = m, E = !a && !i && (!!_ || !!x), [S, j] = ut(!1);
|
|
1147
1147
|
_t(() => {
|
|
1148
|
-
|
|
1149
|
-
}, [
|
|
1150
|
-
const
|
|
1151
|
-
|
|
1148
|
+
c && j(!1);
|
|
1149
|
+
}, [c]);
|
|
1150
|
+
const $ = c && !S ? "image" : y ? "icon" : f ? "name" : "placeholder", I = w || $ === "name" && mo(f) || "gray", B = wo(s), D = yo(s, l), W = k(
|
|
1151
|
+
v,
|
|
1152
1152
|
Ct.avatar,
|
|
1153
|
-
Ct[`variant-${
|
|
1154
|
-
Ct[`color-${
|
|
1155
|
-
U[
|
|
1153
|
+
Ct[`variant-${d}`],
|
|
1154
|
+
Ct[`color-${I}`],
|
|
1155
|
+
U[B],
|
|
1156
1156
|
{
|
|
1157
1157
|
[Ct.disabled]: a,
|
|
1158
1158
|
[Ct.loading]: i,
|
|
1159
|
-
[Ct.clickable]:
|
|
1159
|
+
[Ct.clickable]: E
|
|
1160
1160
|
}
|
|
1161
|
-
),
|
|
1161
|
+
), T = {
|
|
1162
1162
|
"--avatar-size": `${s}px`,
|
|
1163
|
-
"--avatar-border-radius": `${
|
|
1163
|
+
"--avatar-border-radius": `${D}px`,
|
|
1164
1164
|
...n
|
|
1165
|
-
},
|
|
1166
|
-
icon: () => /* @__PURE__ */ o.jsx("span", { "data-testid": "avatar-icon", title:
|
|
1165
|
+
}, P = {
|
|
1166
|
+
icon: () => /* @__PURE__ */ o.jsx("span", { "data-testid": "avatar-icon", title: g || void 0, role: "img", className: Ct.icon, children: y == null ? void 0 : y({}) }),
|
|
1167
1167
|
name: () => /* @__PURE__ */ o.jsx(
|
|
1168
1168
|
"span",
|
|
1169
1169
|
{
|
|
1170
1170
|
role: "textbox",
|
|
1171
1171
|
"data-testid": "avatar-name",
|
|
1172
1172
|
className: Ct.name,
|
|
1173
|
-
title:
|
|
1174
|
-
children: bo(
|
|
1173
|
+
title: g || void 0,
|
|
1174
|
+
children: bo(f || "")
|
|
1175
1175
|
}
|
|
1176
1176
|
),
|
|
1177
1177
|
placeholder: () => /* @__PURE__ */ o.jsx(
|
|
1178
1178
|
"img",
|
|
1179
1179
|
{
|
|
1180
|
-
...
|
|
1180
|
+
...b,
|
|
1181
1181
|
"data-testid": "avatar-placeholder",
|
|
1182
1182
|
className: Ct.image,
|
|
1183
|
-
src:
|
|
1184
|
-
alt:
|
|
1183
|
+
src: jo[p],
|
|
1184
|
+
alt: g || void 0
|
|
1185
1185
|
}
|
|
1186
1186
|
),
|
|
1187
1187
|
image: () => /* @__PURE__ */ o.jsx(
|
|
1188
1188
|
"img",
|
|
1189
1189
|
{
|
|
1190
1190
|
"data-testid": "avatar-image",
|
|
1191
|
-
...
|
|
1191
|
+
...b,
|
|
1192
1192
|
className: Ct.image,
|
|
1193
|
-
src:
|
|
1194
|
-
alt:
|
|
1195
|
-
onLoad: () =>
|
|
1193
|
+
src: c || void 0,
|
|
1194
|
+
alt: g || void 0,
|
|
1195
|
+
onLoad: () => j(!1),
|
|
1196
1196
|
onError: (H) => {
|
|
1197
1197
|
var X;
|
|
1198
|
-
|
|
1198
|
+
j(!0), (X = b == null ? void 0 : b.onError) == null || X.call(b, H);
|
|
1199
1199
|
}
|
|
1200
1200
|
}
|
|
1201
1201
|
)
|
|
1202
1202
|
}, q = (H) => {
|
|
1203
|
-
|
|
1203
|
+
E && (_ == null || _(H));
|
|
1204
1204
|
};
|
|
1205
1205
|
return /* @__PURE__ */ o.jsx(
|
|
1206
1206
|
"div",
|
|
1207
1207
|
{
|
|
1208
1208
|
ref: r,
|
|
1209
1209
|
onClick: q,
|
|
1210
|
-
className:
|
|
1211
|
-
style:
|
|
1212
|
-
"data-testid":
|
|
1210
|
+
className: W,
|
|
1211
|
+
style: T,
|
|
1212
|
+
"data-testid": u,
|
|
1213
1213
|
"aria-disabled": a || i,
|
|
1214
|
-
children:
|
|
1214
|
+
children: P[$](null)
|
|
1215
1215
|
}
|
|
1216
1216
|
);
|
|
1217
1217
|
}), $o = "_avatarGroup_157g4_1", To = {
|
|
@@ -1261,37 +1261,37 @@ const Mo = 2, Ao = (t) => {
|
|
|
1261
1261
|
shape: i = "circle",
|
|
1262
1262
|
overflowCount: a = 0,
|
|
1263
1263
|
overflowProps: l,
|
|
1264
|
-
cutoutBackground:
|
|
1265
|
-
} = t,
|
|
1266
|
-
"--avatar-cutout-bg":
|
|
1264
|
+
cutoutBackground: d
|
|
1265
|
+
} = t, f = -(n * s) + Mo, { ref: c, bgColor: g } = ve(), y = d || g || "#ffffff", b = Nt(To.avatarGroup), w = {
|
|
1266
|
+
"--avatar-cutout-bg": y
|
|
1267
1267
|
};
|
|
1268
|
-
return r.length === 0 ? null : /* @__PURE__ */ o.jsxs("div", { className:
|
|
1269
|
-
r.map((
|
|
1270
|
-
if (
|
|
1271
|
-
const m =
|
|
1268
|
+
return r.length === 0 ? null : /* @__PURE__ */ o.jsxs("div", { className: b, ref: c, style: w, children: [
|
|
1269
|
+
r.map((v, u) => {
|
|
1270
|
+
if (v.wrapper) {
|
|
1271
|
+
const m = v.wrapper;
|
|
1272
1272
|
return /* @__PURE__ */ o.jsx(
|
|
1273
1273
|
"div",
|
|
1274
1274
|
{
|
|
1275
1275
|
style: {
|
|
1276
|
-
marginRight:
|
|
1276
|
+
marginRight: f
|
|
1277
1277
|
},
|
|
1278
|
-
children: /* @__PURE__ */ o.jsx(m, { children: /* @__PURE__ */ o.jsx(te, { size: n, shape: i, ...
|
|
1278
|
+
children: /* @__PURE__ */ o.jsx(m, { children: /* @__PURE__ */ o.jsx(te, { size: n, shape: i, ...v }) })
|
|
1279
1279
|
},
|
|
1280
|
-
ne(
|
|
1280
|
+
ne(v) + u
|
|
1281
1281
|
);
|
|
1282
1282
|
}
|
|
1283
1283
|
return /* @__PURE__ */ o.jsx(
|
|
1284
1284
|
"div",
|
|
1285
1285
|
{
|
|
1286
1286
|
style: {
|
|
1287
|
-
marginRight:
|
|
1287
|
+
marginRight: f
|
|
1288
1288
|
},
|
|
1289
|
-
children: /* @__PURE__ */ o.jsx(te, { size: n, shape: i, ...
|
|
1289
|
+
children: /* @__PURE__ */ o.jsx(te, { size: n, shape: i, ...v })
|
|
1290
1290
|
},
|
|
1291
|
-
ne(
|
|
1291
|
+
ne(v) + u
|
|
1292
1292
|
);
|
|
1293
1293
|
}),
|
|
1294
|
-
a > 0 && /* @__PURE__ */ o.jsx("div", { style: { marginRight:
|
|
1294
|
+
a > 0 && /* @__PURE__ */ o.jsx("div", { style: { marginRight: f }, children: /* @__PURE__ */ o.jsx(
|
|
1295
1295
|
te,
|
|
1296
1296
|
{
|
|
1297
1297
|
size: n,
|
|
@@ -1375,15 +1375,15 @@ function Wo({
|
|
|
1375
1375
|
disableEscapeKey: s = !1
|
|
1376
1376
|
}) {
|
|
1377
1377
|
const i = gt(
|
|
1378
|
-
(
|
|
1379
|
-
r == null || r(
|
|
1378
|
+
(w) => {
|
|
1379
|
+
r == null || r(w);
|
|
1380
1380
|
},
|
|
1381
1381
|
[r]
|
|
1382
|
-
), a = Do(n), { context: l, refs:
|
|
1382
|
+
), a = Do(n), { context: l, refs: d } = Or({
|
|
1383
1383
|
open: t,
|
|
1384
1384
|
onOpenChange: i,
|
|
1385
1385
|
placement: a
|
|
1386
|
-
}),
|
|
1386
|
+
}), p = Fo(n), { isMounted: f, styles: c } = zr(l, {
|
|
1387
1387
|
duration: 200,
|
|
1388
1388
|
common: {
|
|
1389
1389
|
transitionProperty: "opacity, transform",
|
|
@@ -1392,25 +1392,25 @@ function Wo({
|
|
|
1392
1392
|
position: "fixed",
|
|
1393
1393
|
opacity: 0
|
|
1394
1394
|
},
|
|
1395
|
-
...
|
|
1396
|
-
}),
|
|
1395
|
+
...p
|
|
1396
|
+
}), g = Dr(l, {
|
|
1397
1397
|
escapeKey: !s,
|
|
1398
1398
|
outsidePress: !1
|
|
1399
|
-
}),
|
|
1399
|
+
}), y = Fr(l, { role: "dialog" }), { getFloatingProps: b } = Wr([g, y]);
|
|
1400
1400
|
return re(
|
|
1401
1401
|
() => ({
|
|
1402
1402
|
/** `isMounted`: Флаг для условного рендеринга с поддержкой анимации закрытия. */
|
|
1403
|
-
isMounted:
|
|
1403
|
+
isMounted: f,
|
|
1404
1404
|
/** `transitionStyles`: CSS-стили для анимации. */
|
|
1405
|
-
transitionStyles:
|
|
1405
|
+
transitionStyles: c,
|
|
1406
1406
|
/** `context`: Контекст `Floating UI`. */
|
|
1407
1407
|
context: l,
|
|
1408
1408
|
/** `refs`: Ссылки на DOM-элементы для `Floating UI`. */
|
|
1409
|
-
refs:
|
|
1409
|
+
refs: d,
|
|
1410
1410
|
/** `getFloatingProps`: Функция для получения пропсов, которые нужно передать на элемент диалога. */
|
|
1411
|
-
getFloatingProps:
|
|
1411
|
+
getFloatingProps: b
|
|
1412
1412
|
}),
|
|
1413
|
-
[
|
|
1413
|
+
[f, c, l, d, b]
|
|
1414
1414
|
);
|
|
1415
1415
|
}
|
|
1416
1416
|
const qo = 80;
|
|
@@ -1421,88 +1421,88 @@ function Ho({
|
|
|
1421
1421
|
disableEscapeKey: s = !1,
|
|
1422
1422
|
closeOnDrag: i
|
|
1423
1423
|
}) {
|
|
1424
|
-
const { getFloatingProps: a, transitionStyles: l, isMounted:
|
|
1424
|
+
const { getFloatingProps: a, transitionStyles: l, isMounted: d, context: p, refs: f } = Wo({
|
|
1425
1425
|
open: t,
|
|
1426
1426
|
onOpenChange: r,
|
|
1427
1427
|
placement: n,
|
|
1428
1428
|
disableEscapeKey: s
|
|
1429
|
-
}),
|
|
1429
|
+
}), c = Dt({ startX: 0, startY: 0, dragging: !1 }), [g, y] = ut(0), b = i == null ? void 0 : i.direction, w = (i == null ? void 0 : i.threshold) ?? qo, v = b === "top" || b === "bottom", u = t && !!b;
|
|
1430
1430
|
_t(() => {
|
|
1431
|
-
t || (
|
|
1431
|
+
t || (c.current.dragging = !1, y(0));
|
|
1432
1432
|
}, [t]);
|
|
1433
1433
|
const m = gt(
|
|
1434
|
-
(
|
|
1435
|
-
|
|
1434
|
+
(S) => {
|
|
1435
|
+
u && (c.current.dragging = !0, c.current.startX = S.clientX, c.current.startY = S.clientY, y(0));
|
|
1436
1436
|
},
|
|
1437
|
-
[
|
|
1438
|
-
),
|
|
1439
|
-
(
|
|
1440
|
-
if (!
|
|
1441
|
-
const
|
|
1442
|
-
let
|
|
1443
|
-
switch (
|
|
1437
|
+
[u]
|
|
1438
|
+
), _ = gt(
|
|
1439
|
+
(S) => {
|
|
1440
|
+
if (!c.current.dragging || !u) return;
|
|
1441
|
+
const j = S.clientX - c.current.startX, $ = S.clientY - c.current.startY;
|
|
1442
|
+
let I;
|
|
1443
|
+
switch (b) {
|
|
1444
1444
|
case "bottom":
|
|
1445
|
-
|
|
1445
|
+
I = Math.max(0, $);
|
|
1446
1446
|
break;
|
|
1447
1447
|
case "top":
|
|
1448
|
-
|
|
1448
|
+
I = Math.max(0, -$);
|
|
1449
1449
|
break;
|
|
1450
1450
|
case "right":
|
|
1451
|
-
|
|
1451
|
+
I = Math.max(0, j);
|
|
1452
1452
|
break;
|
|
1453
1453
|
case "left":
|
|
1454
|
-
|
|
1454
|
+
I = Math.max(0, -j);
|
|
1455
1455
|
break;
|
|
1456
1456
|
default:
|
|
1457
|
-
|
|
1457
|
+
I = v ? $ : j;
|
|
1458
1458
|
}
|
|
1459
|
-
|
|
1459
|
+
y(I);
|
|
1460
1460
|
},
|
|
1461
|
-
[
|
|
1462
|
-
),
|
|
1463
|
-
(
|
|
1464
|
-
var
|
|
1465
|
-
if (!(!
|
|
1466
|
-
|
|
1461
|
+
[u, b, v]
|
|
1462
|
+
), x = gt(
|
|
1463
|
+
(S) => {
|
|
1464
|
+
var j, $;
|
|
1465
|
+
if (!(!c.current.dragging || !u)) {
|
|
1466
|
+
c.current.dragging = !1;
|
|
1467
1467
|
try {
|
|
1468
|
-
(
|
|
1468
|
+
($ = (j = S.currentTarget).hasPointerCapture) != null && $.call(j, S.pointerId) && S.currentTarget.releasePointerCapture(S.pointerId);
|
|
1469
1469
|
} catch {
|
|
1470
1470
|
}
|
|
1471
|
-
|
|
1471
|
+
g >= w ? r(!1) : y(0);
|
|
1472
1472
|
}
|
|
1473
1473
|
},
|
|
1474
|
-
[
|
|
1475
|
-
),
|
|
1476
|
-
if (!
|
|
1477
|
-
if (
|
|
1478
|
-
const
|
|
1479
|
-
if (
|
|
1480
|
-
const
|
|
1481
|
-
|
|
1474
|
+
[g, w, r, u]
|
|
1475
|
+
), L = re(() => {
|
|
1476
|
+
if (!u) return l;
|
|
1477
|
+
if (c.current.dragging) {
|
|
1478
|
+
const S = { ...l, transitionProperty: "none" };
|
|
1479
|
+
if (g > 0) {
|
|
1480
|
+
const j = b === "left" || b === "top" ? -g : g;
|
|
1481
|
+
S.transform = v ? `translateY(${j}px)` : `translateX(${j}px)`;
|
|
1482
1482
|
}
|
|
1483
|
-
return
|
|
1483
|
+
return S;
|
|
1484
1484
|
}
|
|
1485
1485
|
return l;
|
|
1486
|
-
}, [l,
|
|
1487
|
-
(
|
|
1488
|
-
...
|
|
1486
|
+
}, [l, g, u, v, b]), E = gt(
|
|
1487
|
+
(S) => a(u ? {
|
|
1488
|
+
...S,
|
|
1489
1489
|
onPointerDown: m,
|
|
1490
|
-
onPointerUp:
|
|
1491
|
-
onPointerMove:
|
|
1492
|
-
onPointerCancel:
|
|
1490
|
+
onPointerUp: x,
|
|
1491
|
+
onPointerMove: _,
|
|
1492
|
+
onPointerCancel: x
|
|
1493
1493
|
// Отмена (например, уход фокуса) также завершает перетаскивание
|
|
1494
|
-
} :
|
|
1495
|
-
[a, m,
|
|
1494
|
+
} : S),
|
|
1495
|
+
[a, m, _, x, u]
|
|
1496
1496
|
);
|
|
1497
1497
|
return re(
|
|
1498
1498
|
() => ({
|
|
1499
|
-
isMounted:
|
|
1500
|
-
context:
|
|
1501
|
-
refs:
|
|
1502
|
-
transitionStyles:
|
|
1503
|
-
getFloatingProps:
|
|
1499
|
+
isMounted: d,
|
|
1500
|
+
context: p,
|
|
1501
|
+
refs: f,
|
|
1502
|
+
transitionStyles: L,
|
|
1503
|
+
getFloatingProps: E
|
|
1504
1504
|
}),
|
|
1505
|
-
[
|
|
1505
|
+
[d, L, E, p, f]
|
|
1506
1506
|
);
|
|
1507
1507
|
}
|
|
1508
1508
|
const ir = G((t, r) => {
|
|
@@ -1512,65 +1512,66 @@ const ir = G((t, r) => {
|
|
|
1512
1512
|
onOpenChange: i,
|
|
1513
1513
|
overlayProps: a,
|
|
1514
1514
|
portalProps: l,
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1515
|
+
focusManagement: d,
|
|
1516
|
+
children: p,
|
|
1517
|
+
disableOutsideClick: f = !1,
|
|
1518
|
+
disableEscapeKey: c = !1,
|
|
1519
|
+
disableOverlay: g = !1,
|
|
1520
|
+
closeOnDrag: y,
|
|
1521
|
+
className: b,
|
|
1522
|
+
style: w,
|
|
1522
1523
|
"data-testid": v,
|
|
1523
|
-
...
|
|
1524
|
+
...u
|
|
1524
1525
|
} = t;
|
|
1525
1526
|
s === void 0 && process.env.NODE_ENV !== "production" && console.error(
|
|
1526
1527
|
"Dialog: компонент должен быть контролируемым. Используйте пропсы open и onOpenChange."
|
|
1527
1528
|
);
|
|
1528
|
-
const
|
|
1529
|
+
const m = Ho({
|
|
1529
1530
|
open: s,
|
|
1530
1531
|
onOpenChange: i,
|
|
1531
1532
|
placement: n,
|
|
1532
|
-
disableEscapeKey:
|
|
1533
|
-
closeOnDrag:
|
|
1534
|
-
}), { isMounted:
|
|
1535
|
-
|
|
1533
|
+
disableEscapeKey: c,
|
|
1534
|
+
closeOnDrag: y
|
|
1535
|
+
}), { isMounted: _, transitionStyles: x } = m, L = qr([r, m.refs.setFloating]), E = () => {
|
|
1536
|
+
f || i(!1);
|
|
1536
1537
|
};
|
|
1537
|
-
return
|
|
1538
|
+
return _ ? (
|
|
1538
1539
|
// `FloatingPortal` рендерит диалог в корне `document.body`,
|
|
1539
1540
|
// чтобы избежать проблем с z-index и overflow.
|
|
1540
1541
|
/* @__PURE__ */ o.jsxs(Hr, { ...l, children: [
|
|
1541
|
-
!
|
|
1542
|
+
!g && /* @__PURE__ */ o.jsx(
|
|
1542
1543
|
Vr,
|
|
1543
1544
|
{
|
|
1544
|
-
onPointerDown:
|
|
1545
|
+
onPointerDown: E,
|
|
1545
1546
|
"data-testid": "dialog-overlay",
|
|
1546
|
-
className:
|
|
1547
|
+
className: k(qt.overlay, a == null ? void 0 : a.className),
|
|
1547
1548
|
lockScroll: (a == null ? void 0 : a.lockScroll) ?? !0,
|
|
1548
1549
|
style: {
|
|
1549
1550
|
// Стили для анимации прозрачности оверлея
|
|
1550
|
-
opacity:
|
|
1551
|
-
transition:
|
|
1551
|
+
opacity: x == null ? void 0 : x.opacity,
|
|
1552
|
+
transition: x == null ? void 0 : x.transition,
|
|
1552
1553
|
...a == null ? void 0 : a.style
|
|
1553
1554
|
}
|
|
1554
1555
|
}
|
|
1555
1556
|
),
|
|
1556
|
-
/* @__PURE__ */ o.jsx(Xr, { context:
|
|
1557
|
+
/* @__PURE__ */ o.jsx(Xr, { context: m.context, ...d, children: /* @__PURE__ */ o.jsxs(
|
|
1557
1558
|
"section",
|
|
1558
1559
|
{
|
|
1559
|
-
ref:
|
|
1560
|
+
ref: L,
|
|
1560
1561
|
"aria-modal": "true",
|
|
1561
1562
|
role: "dialog",
|
|
1562
|
-
className:
|
|
1563
|
-
style: { ...
|
|
1563
|
+
className: k(b, qt.container, qt[`placement-${n}`]),
|
|
1564
|
+
style: { ...w, ...x },
|
|
1564
1565
|
"data-testid": v,
|
|
1565
|
-
...
|
|
1566
|
+
...m.getFloatingProps(u),
|
|
1566
1567
|
children: [
|
|
1567
|
-
|
|
1568
|
-
|
|
1568
|
+
p,
|
|
1569
|
+
y && /* @__PURE__ */ o.jsx(
|
|
1569
1570
|
"div",
|
|
1570
1571
|
{
|
|
1571
|
-
className:
|
|
1572
|
+
className: k(
|
|
1572
1573
|
qt.grabber,
|
|
1573
|
-
qt[`grabber-${
|
|
1574
|
+
qt[`grabber-${y.direction}`]
|
|
1574
1575
|
// classNames?.grabber,
|
|
1575
1576
|
),
|
|
1576
1577
|
role: "presentation",
|
|
@@ -1583,11 +1584,11 @@ const ir = G((t, r) => {
|
|
|
1583
1584
|
) })
|
|
1584
1585
|
] })
|
|
1585
1586
|
) : null;
|
|
1586
|
-
}), Vo = "
|
|
1587
|
+
}), Vo = "_container_1dtzw_1", Xo = "_header_1dtzw_20", Yo = "_withBorder_1dtzw_56", Zo = "_title_1dtzw_40", Uo = "_subTitle_1dtzw_71", Go = "_leftActionsStack_1dtzw_82", Ko = "_rightActionsStack_1dtzw_89", Jo = "_content_1dtzw_96", Qo = "_footer_1dtzw_104", wt = {
|
|
1587
1588
|
container: Vo,
|
|
1588
1589
|
header: Xo,
|
|
1589
|
-
"title-actions-actions": "_title-actions-
|
|
1590
|
-
"actions-title-actions": "_actions-title-
|
|
1590
|
+
"title-actions-actions": "_title-actions-actions_1dtzw_40",
|
|
1591
|
+
"actions-title-actions": "_actions-title-actions_1dtzw_48",
|
|
1591
1592
|
withBorder: Yo,
|
|
1592
1593
|
title: Zo,
|
|
1593
1594
|
subTitle: Uo,
|
|
@@ -1627,21 +1628,21 @@ const ir = G((t, r) => {
|
|
|
1627
1628
|
className: i,
|
|
1628
1629
|
"data-testid": a,
|
|
1629
1630
|
as: l,
|
|
1630
|
-
fontWeight:
|
|
1631
|
-
disabled:
|
|
1632
|
-
typographyStyle:
|
|
1633
|
-
...
|
|
1634
|
-
},
|
|
1635
|
-
const
|
|
1631
|
+
fontWeight: d = "semibold",
|
|
1632
|
+
disabled: p = !1,
|
|
1633
|
+
typographyStyle: f = "primary",
|
|
1634
|
+
...c
|
|
1635
|
+
}, g) => {
|
|
1636
|
+
const y = l || ua[n], b = k(
|
|
1636
1637
|
zt.typography,
|
|
1637
|
-
U[`typography-${t}-${n}-${
|
|
1638
|
-
zt[
|
|
1638
|
+
U[`typography-${t}-${n}-${d}`],
|
|
1639
|
+
zt[f],
|
|
1639
1640
|
{
|
|
1640
|
-
[zt.disabled]:
|
|
1641
|
+
[zt.disabled]: p
|
|
1641
1642
|
},
|
|
1642
1643
|
i
|
|
1643
1644
|
);
|
|
1644
|
-
return s ? /* @__PURE__ */ o.jsx(
|
|
1645
|
+
return s ? /* @__PURE__ */ o.jsx(y, { ref: g, className: b, "data-testid": a, ...c, children: s }) : null;
|
|
1645
1646
|
}
|
|
1646
1647
|
);
|
|
1647
1648
|
return r.displayName = `Typography.${t === "title" ? "Title" : "Subtitle"}`, r;
|
|
@@ -1653,27 +1654,27 @@ const ir = G((t, r) => {
|
|
|
1653
1654
|
className: i,
|
|
1654
1655
|
"data-testid": a,
|
|
1655
1656
|
as: l = "p",
|
|
1656
|
-
fontWeight:
|
|
1657
|
-
disabled:
|
|
1658
|
-
typographyStyle:
|
|
1659
|
-
...
|
|
1660
|
-
},
|
|
1661
|
-
const
|
|
1657
|
+
fontWeight: d = "regular",
|
|
1658
|
+
disabled: p = !1,
|
|
1659
|
+
typographyStyle: f = "primary",
|
|
1660
|
+
...c
|
|
1661
|
+
}, g) => {
|
|
1662
|
+
const y = l, b = k(
|
|
1662
1663
|
zt.typography,
|
|
1663
|
-
U[`typography-${t}-${n}-${
|
|
1664
|
-
zt[
|
|
1664
|
+
U[`typography-${t}-${n}-${d}`],
|
|
1665
|
+
zt[f],
|
|
1665
1666
|
{
|
|
1666
|
-
[zt.disabled]:
|
|
1667
|
+
[zt.disabled]: p
|
|
1667
1668
|
},
|
|
1668
1669
|
i
|
|
1669
1670
|
);
|
|
1670
1671
|
return s ? /* @__PURE__ */ o.jsx(
|
|
1671
|
-
|
|
1672
|
+
y,
|
|
1672
1673
|
{
|
|
1673
|
-
ref:
|
|
1674
|
-
className:
|
|
1674
|
+
ref: g,
|
|
1675
|
+
className: b,
|
|
1675
1676
|
"data-testid": a,
|
|
1676
|
-
...
|
|
1677
|
+
...c,
|
|
1677
1678
|
children: s
|
|
1678
1679
|
}
|
|
1679
1680
|
) : null;
|
|
@@ -1741,44 +1742,22 @@ const ir = G((t, r) => {
|
|
|
1741
1742
|
onOpenChange: s,
|
|
1742
1743
|
size: i,
|
|
1743
1744
|
placement: a = "default",
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
closeButton:
|
|
1747
|
-
backButton:
|
|
1748
|
-
title:
|
|
1749
|
-
subTitle:
|
|
1750
|
-
children:
|
|
1751
|
-
footer:
|
|
1752
|
-
hideHeaderDivider:
|
|
1753
|
-
hideFooterDivider:
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
} = t, k = a === "bottom-sheet" ? "actions-title-actions" : "title-actions-actions", T = a === "bottom-sheet" ? { direction: "bottom", threshold: 80 } : t == null ? void 0 : t.closeOnDrag, L = {
|
|
1761
|
-
left: [...u],
|
|
1762
|
-
right: [...l]
|
|
1763
|
-
}, E = () => s(!1);
|
|
1764
|
-
p != null && p.show && L.left.push({
|
|
1765
|
-
wrapper: p.wrapper,
|
|
1766
|
-
props: {
|
|
1767
|
-
iconLeft: /* @__PURE__ */ o.jsx(pa, {}),
|
|
1768
|
-
"aria-label": "Back",
|
|
1769
|
-
onClick: E,
|
|
1770
|
-
...p == null ? void 0 : p.props
|
|
1771
|
-
}
|
|
1772
|
-
}), _ != null && _.show && L.right.push({
|
|
1773
|
-
props: {
|
|
1774
|
-
iconLeft: /* @__PURE__ */ o.jsx(_a, {}),
|
|
1775
|
-
"aria-label": "Close modal",
|
|
1776
|
-
onClick: E,
|
|
1777
|
-
..._ == null ? void 0 : _.props
|
|
1778
|
-
},
|
|
1779
|
-
wrapper: _.wrapper
|
|
1780
|
-
});
|
|
1781
|
-
const P = !!(d || f || L.right.length > 0 || L.left.length > 0), z = d ? `${C || "modal"}-title` : void 0, F = f ? `${C || "modal"}-subtitle` : void 0;
|
|
1745
|
+
rightActionsSlot: l = [],
|
|
1746
|
+
leftActionsSlot: d = [],
|
|
1747
|
+
closeButton: p = { show: !0 },
|
|
1748
|
+
backButton: f = { show: !1 },
|
|
1749
|
+
title: c,
|
|
1750
|
+
subTitle: g,
|
|
1751
|
+
children: y,
|
|
1752
|
+
footer: b,
|
|
1753
|
+
hideHeaderDivider: w = !1,
|
|
1754
|
+
hideFooterDivider: v = !1,
|
|
1755
|
+
classNames: u,
|
|
1756
|
+
styles: m,
|
|
1757
|
+
headerTemplate: _,
|
|
1758
|
+
"data-testid": x,
|
|
1759
|
+
...L
|
|
1760
|
+
} = t, E = a === "bottom-sheet" ? "actions-title-actions" : "title-actions-actions", S = a === "bottom-sheet" ? { direction: "bottom", threshold: 80 } : t == null ? void 0 : t.closeOnDrag, j = () => s(!1), $ = !!(c || g || p.show || f.show || l.length || d.length), I = c ? `${x || "modal"}-title` : void 0, B = g ? `${x || "modal"}-subtitle` : void 0;
|
|
1782
1761
|
return /* @__PURE__ */ o.jsx(
|
|
1783
1762
|
ir,
|
|
1784
1763
|
{
|
|
@@ -1786,52 +1765,81 @@ const ir = G((t, r) => {
|
|
|
1786
1765
|
onOpenChange: s,
|
|
1787
1766
|
placement: a,
|
|
1788
1767
|
ref: r,
|
|
1789
|
-
style: { width: i },
|
|
1790
|
-
closeOnDrag:
|
|
1791
|
-
|
|
1768
|
+
style: { width: i, ...m == null ? void 0 : m.dialog },
|
|
1769
|
+
closeOnDrag: S,
|
|
1770
|
+
className: u == null ? void 0 : u.dialog,
|
|
1771
|
+
...L,
|
|
1792
1772
|
children: /* @__PURE__ */ o.jsxs(
|
|
1793
1773
|
"div",
|
|
1794
1774
|
{
|
|
1795
|
-
className:
|
|
1796
|
-
style: { width: i, ...
|
|
1797
|
-
"data-testid":
|
|
1775
|
+
className: k(wt.container, u == null ? void 0 : u.container),
|
|
1776
|
+
style: { width: i, ...m == null ? void 0 : m.container },
|
|
1777
|
+
"data-testid": x ? `${x}-container` : void 0,
|
|
1798
1778
|
children: [
|
|
1799
|
-
|
|
1779
|
+
$ && /* @__PURE__ */ o.jsxs(
|
|
1800
1780
|
"div",
|
|
1801
1781
|
{
|
|
1802
|
-
"data-testid":
|
|
1803
|
-
className:
|
|
1782
|
+
"data-testid": x ? `${x}-header` : void 0,
|
|
1783
|
+
className: k(
|
|
1804
1784
|
wt.header,
|
|
1805
|
-
!
|
|
1806
|
-
wt[
|
|
1807
|
-
|
|
1785
|
+
!w && wt.withBorder,
|
|
1786
|
+
wt[_ || E],
|
|
1787
|
+
u == null ? void 0 : u.header
|
|
1808
1788
|
),
|
|
1809
|
-
style:
|
|
1789
|
+
style: m == null ? void 0 : m.header,
|
|
1810
1790
|
children: [
|
|
1811
|
-
/* @__PURE__ */ o.
|
|
1791
|
+
/* @__PURE__ */ o.jsxs(
|
|
1812
1792
|
"div",
|
|
1813
1793
|
{
|
|
1814
|
-
className:
|
|
1815
|
-
style:
|
|
1816
|
-
children:
|
|
1794
|
+
className: k(wt.leftActionsStack, u == null ? void 0 : u.leftActionsStack),
|
|
1795
|
+
style: m == null ? void 0 : m.leftActionsStack,
|
|
1796
|
+
children: [
|
|
1797
|
+
f.show && /* @__PURE__ */ o.jsx(
|
|
1798
|
+
Ze,
|
|
1799
|
+
{
|
|
1800
|
+
wrapper: f.wrapper,
|
|
1801
|
+
props: {
|
|
1802
|
+
iconLeft: /* @__PURE__ */ o.jsx(pa, {}),
|
|
1803
|
+
"aria-label": "Back",
|
|
1804
|
+
onClick: j,
|
|
1805
|
+
...f == null ? void 0 : f.props
|
|
1806
|
+
}
|
|
1807
|
+
}
|
|
1808
|
+
),
|
|
1809
|
+
...d
|
|
1810
|
+
]
|
|
1817
1811
|
}
|
|
1818
1812
|
),
|
|
1819
|
-
/* @__PURE__ */ o.jsx("div", { id:
|
|
1820
|
-
/* @__PURE__ */ o.
|
|
1813
|
+
/* @__PURE__ */ o.jsx("div", { id: I, className: k(wt.title, u == null ? void 0 : u.title), style: m == null ? void 0 : m.title, children: typeof c == "string" ? /* @__PURE__ */ o.jsx(ga, { size: 5, children: c }) : c }),
|
|
1814
|
+
/* @__PURE__ */ o.jsxs(
|
|
1821
1815
|
"div",
|
|
1822
1816
|
{
|
|
1823
|
-
className:
|
|
1824
|
-
style:
|
|
1825
|
-
children:
|
|
1817
|
+
className: k(wt.rightActionsStack, u == null ? void 0 : u.rightActionsStack),
|
|
1818
|
+
style: m == null ? void 0 : m.rightActionsStack,
|
|
1819
|
+
children: [
|
|
1820
|
+
...l,
|
|
1821
|
+
p.show && /* @__PURE__ */ o.jsx(
|
|
1822
|
+
Ze,
|
|
1823
|
+
{
|
|
1824
|
+
wrapper: p.wrapper,
|
|
1825
|
+
props: {
|
|
1826
|
+
iconLeft: /* @__PURE__ */ o.jsx(_a, {}),
|
|
1827
|
+
"aria-label": "Close modal",
|
|
1828
|
+
onClick: j,
|
|
1829
|
+
...p == null ? void 0 : p.props
|
|
1830
|
+
}
|
|
1831
|
+
}
|
|
1832
|
+
)
|
|
1833
|
+
]
|
|
1826
1834
|
}
|
|
1827
1835
|
),
|
|
1828
|
-
|
|
1836
|
+
g && /* @__PURE__ */ o.jsx(
|
|
1829
1837
|
"div",
|
|
1830
1838
|
{
|
|
1831
|
-
id:
|
|
1832
|
-
className:
|
|
1833
|
-
style:
|
|
1834
|
-
children: typeof
|
|
1839
|
+
id: B,
|
|
1840
|
+
className: k(wt.subTitle, u == null ? void 0 : u.subTitle),
|
|
1841
|
+
style: m == null ? void 0 : m.subTitle,
|
|
1842
|
+
children: typeof g == "string" ? /* @__PURE__ */ o.jsx(fa, { size: 2, typographyStyle: "secondary", children: g }) : g
|
|
1835
1843
|
}
|
|
1836
1844
|
)
|
|
1837
1845
|
]
|
|
@@ -1840,21 +1848,21 @@ const ir = G((t, r) => {
|
|
|
1840
1848
|
/* @__PURE__ */ o.jsx(
|
|
1841
1849
|
"div",
|
|
1842
1850
|
{
|
|
1843
|
-
className:
|
|
1851
|
+
className: k(wt.content, u == null ? void 0 : u.content),
|
|
1844
1852
|
style: {
|
|
1845
|
-
...
|
|
1853
|
+
...m == null ? void 0 : m.content
|
|
1846
1854
|
},
|
|
1847
|
-
"data-testid":
|
|
1848
|
-
children:
|
|
1855
|
+
"data-testid": x ? `${x}-content` : void 0,
|
|
1856
|
+
children: y
|
|
1849
1857
|
}
|
|
1850
1858
|
),
|
|
1851
|
-
|
|
1859
|
+
b && /* @__PURE__ */ o.jsx(
|
|
1852
1860
|
"div",
|
|
1853
1861
|
{
|
|
1854
|
-
"data-testid":
|
|
1855
|
-
className:
|
|
1856
|
-
style:
|
|
1857
|
-
children:
|
|
1862
|
+
"data-testid": x ? `${x}-footer` : void 0,
|
|
1863
|
+
className: k(wt.footer, !v && wt.withBorder, u == null ? void 0 : u.footer),
|
|
1864
|
+
style: m == null ? void 0 : m.footer,
|
|
1865
|
+
children: b
|
|
1858
1866
|
}
|
|
1859
1867
|
)
|
|
1860
1868
|
]
|
|
@@ -1962,11 +1970,11 @@ const ir = G((t, r) => {
|
|
|
1962
1970
|
dialog: { icon: ba, colorScheme: "blue" }
|
|
1963
1971
|
}, wa = "_container_dd9oq_1", Ca = {
|
|
1964
1972
|
container: wa
|
|
1965
|
-
}, ka = "_container_p9e62_1", Sa = "_children_p9e62_11",
|
|
1973
|
+
}, ka = "_container_p9e62_1", Sa = "_children_p9e62_11", La = "_iconSlot_p9e62_11", ja = "_textBlock_p9e62_18", $a = "_title_p9e62_25", Ta = "_subtitle_p9e62_25", Pt = {
|
|
1966
1974
|
container: ka,
|
|
1967
1975
|
children: Sa,
|
|
1968
|
-
iconSlot:
|
|
1969
|
-
textBlock:
|
|
1976
|
+
iconSlot: La,
|
|
1977
|
+
textBlock: ja,
|
|
1970
1978
|
title: $a,
|
|
1971
1979
|
subtitle: Ta
|
|
1972
1980
|
}, Jt = {
|
|
@@ -1984,23 +1992,23 @@ const Ra = (t) => {
|
|
|
1984
1992
|
styles: i,
|
|
1985
1993
|
classNames: a,
|
|
1986
1994
|
children: l,
|
|
1987
|
-
"data-testid":
|
|
1988
|
-
size:
|
|
1989
|
-
} = t,
|
|
1995
|
+
"data-testid": d,
|
|
1996
|
+
size: p = "m"
|
|
1997
|
+
} = t, f = Ea(p);
|
|
1990
1998
|
return /* @__PURE__ */ o.jsxs(
|
|
1991
1999
|
"div",
|
|
1992
2000
|
{
|
|
1993
|
-
className:
|
|
2001
|
+
className: k(Pt.container, a == null ? void 0 : a.container),
|
|
1994
2002
|
style: i == null ? void 0 : i.container,
|
|
1995
|
-
"data-testid":
|
|
2003
|
+
"data-testid": d,
|
|
1996
2004
|
children: [
|
|
1997
|
-
r && /* @__PURE__ */ o.jsx("div", { style: i == null ? void 0 : i.iconSlot, className:
|
|
1998
|
-
(n || s) && /* @__PURE__ */ o.jsxs("div", { className:
|
|
2005
|
+
r && /* @__PURE__ */ o.jsx("div", { style: i == null ? void 0 : i.iconSlot, className: k(Pt.iconSlot, a == null ? void 0 : a.iconSlot), children: r }),
|
|
2006
|
+
(n || s) && /* @__PURE__ */ o.jsxs("div", { className: k(Pt.textBlock, a == null ? void 0 : a.textBlock), children: [
|
|
1999
2007
|
n && /* @__PURE__ */ o.jsx(
|
|
2000
2008
|
"p",
|
|
2001
2009
|
{
|
|
2002
2010
|
style: i == null ? void 0 : i.title,
|
|
2003
|
-
className:
|
|
2011
|
+
className: k(Pt.title, U[f.title], a == null ? void 0 : a.title),
|
|
2004
2012
|
children: n
|
|
2005
2013
|
}
|
|
2006
2014
|
),
|
|
@@ -2008,12 +2016,12 @@ const Ra = (t) => {
|
|
|
2008
2016
|
"p",
|
|
2009
2017
|
{
|
|
2010
2018
|
style: i == null ? void 0 : i.subTitle,
|
|
2011
|
-
className:
|
|
2019
|
+
className: k(Pt.subtitle, U[f.subtitle], a == null ? void 0 : a.subTitle),
|
|
2012
2020
|
children: s
|
|
2013
2021
|
}
|
|
2014
2022
|
)
|
|
2015
2023
|
] }),
|
|
2016
|
-
l && /* @__PURE__ */ o.jsx("div", { className:
|
|
2024
|
+
l && /* @__PURE__ */ o.jsx("div", { className: k(Pt.children, a == null ? void 0 : a.children), children: l })
|
|
2017
2025
|
]
|
|
2018
2026
|
}
|
|
2019
2027
|
);
|
|
@@ -2025,19 +2033,22 @@ const Ra = (t) => {
|
|
|
2025
2033
|
variant: i = "info",
|
|
2026
2034
|
title: a,
|
|
2027
2035
|
description: l,
|
|
2028
|
-
children:
|
|
2029
|
-
variantAvatarProps:
|
|
2030
|
-
"data-testid":
|
|
2031
|
-
|
|
2036
|
+
children: d,
|
|
2037
|
+
variantAvatarProps: p,
|
|
2038
|
+
"data-testid": f,
|
|
2039
|
+
styles: c,
|
|
2040
|
+
classNames: g,
|
|
2041
|
+
...y
|
|
2042
|
+
} = t, { icon: b, colorScheme: w } = (Kt == null ? void 0 : Kt[i]) || Kt.info, u = i === "avatar" ? {
|
|
2032
2043
|
size: 48,
|
|
2033
2044
|
colorScheme: "gray",
|
|
2034
2045
|
variant: "light",
|
|
2035
2046
|
"data-testid": "alert-avatar",
|
|
2036
|
-
...
|
|
2047
|
+
...p
|
|
2037
2048
|
} : {
|
|
2038
2049
|
size: 48,
|
|
2039
|
-
icon:
|
|
2040
|
-
colorScheme:
|
|
2050
|
+
icon: b,
|
|
2051
|
+
colorScheme: w,
|
|
2041
2052
|
variant: "light",
|
|
2042
2053
|
style: { fontSize: 24, outline: "none" },
|
|
2043
2054
|
"data-testid": "alert-icon"
|
|
@@ -2048,16 +2059,20 @@ const Ra = (t) => {
|
|
|
2048
2059
|
open: r,
|
|
2049
2060
|
onOpenChange: n,
|
|
2050
2061
|
placement: s,
|
|
2051
|
-
"data-testid":
|
|
2052
|
-
className: Ca.container,
|
|
2062
|
+
"data-testid": f,
|
|
2063
|
+
className: k(Ca.container, g == null ? void 0 : g.dialog),
|
|
2064
|
+
style: c == null ? void 0 : c.dialog,
|
|
2065
|
+
...y,
|
|
2053
2066
|
children: /* @__PURE__ */ o.jsx(
|
|
2054
2067
|
Ra,
|
|
2055
2068
|
{
|
|
2056
2069
|
title: a,
|
|
2057
2070
|
subTitle: l,
|
|
2071
|
+
classNames: g,
|
|
2072
|
+
styles: c,
|
|
2058
2073
|
size: "m",
|
|
2059
|
-
iconSlot: /* @__PURE__ */ o.jsx(Bo, { ...
|
|
2060
|
-
children:
|
|
2074
|
+
iconSlot: /* @__PURE__ */ o.jsx(Bo, { ...u }),
|
|
2075
|
+
children: d
|
|
2061
2076
|
}
|
|
2062
2077
|
)
|
|
2063
2078
|
}
|
|
@@ -2107,52 +2122,52 @@ const Ra = (t) => {
|
|
|
2107
2122
|
variant: i = "filled",
|
|
2108
2123
|
label: a,
|
|
2109
2124
|
isHidden: l = !1,
|
|
2110
|
-
colorScheme:
|
|
2111
|
-
size:
|
|
2112
|
-
position:
|
|
2113
|
-
positionOffset:
|
|
2114
|
-
cutoutBackground:
|
|
2115
|
-
isDisabled:
|
|
2116
|
-
className:
|
|
2117
|
-
"data-testid":
|
|
2118
|
-
...
|
|
2119
|
-
} = t, { onClick:
|
|
2120
|
-
|
|
2125
|
+
colorScheme: d = "red",
|
|
2126
|
+
size: p = 20,
|
|
2127
|
+
position: f = "top-right",
|
|
2128
|
+
positionOffset: c = { x: 0, y: 0 },
|
|
2129
|
+
cutoutBackground: g,
|
|
2130
|
+
isDisabled: y,
|
|
2131
|
+
className: b,
|
|
2132
|
+
"data-testid": w = "badge",
|
|
2133
|
+
...v
|
|
2134
|
+
} = t, { onClick: u, onPointerDown: m } = v, { ref: _, bgColor: x } = ve(), L = g || x, S = !y && (!!u || !!m), j = Nt(St.badge__container, St[`position-${f}`]), $ = Nt(
|
|
2135
|
+
b,
|
|
2121
2136
|
St.badge__content,
|
|
2122
|
-
St[`color-${
|
|
2137
|
+
St[`color-${d}`],
|
|
2123
2138
|
St[`variant-${i}`],
|
|
2124
2139
|
{
|
|
2125
|
-
[St.disabled]:
|
|
2140
|
+
[St.disabled]: y,
|
|
2126
2141
|
[St.icon]: !!n,
|
|
2127
|
-
[St.interactive]:
|
|
2142
|
+
[St.interactive]: S
|
|
2128
2143
|
}
|
|
2129
|
-
),
|
|
2130
|
-
"--badge-height": `${
|
|
2131
|
-
"--badge-offset-x": `${
|
|
2132
|
-
"--badge-offset-y": `${
|
|
2133
|
-
...
|
|
2144
|
+
), I = {
|
|
2145
|
+
"--badge-height": `${p}px`,
|
|
2146
|
+
"--badge-offset-x": `${c.x}px`,
|
|
2147
|
+
"--badge-offset-y": `${c.y}px`,
|
|
2148
|
+
...L && { "--badge-cutout-bg": L },
|
|
2134
2149
|
...i === "transparent" && { "--badge-cutout-bg": "transparent" }
|
|
2135
|
-
},
|
|
2136
|
-
|
|
2150
|
+
}, B = (n == null ? void 0 : n({})) || a, D = (W) => {
|
|
2151
|
+
S && (u == null || u(W));
|
|
2137
2152
|
};
|
|
2138
|
-
return /* @__PURE__ */ o.jsxs("div", { className: St.wrapper, ref:
|
|
2153
|
+
return /* @__PURE__ */ o.jsxs("div", { className: St.wrapper, ref: _, "data-testid": w + "-wrapper", children: [
|
|
2139
2154
|
s,
|
|
2140
2155
|
!l && /* @__PURE__ */ o.jsx(
|
|
2141
2156
|
"span",
|
|
2142
2157
|
{
|
|
2143
|
-
className:
|
|
2144
|
-
style:
|
|
2145
|
-
"data-testid":
|
|
2158
|
+
className: j,
|
|
2159
|
+
style: I,
|
|
2160
|
+
"data-testid": w + "-container",
|
|
2146
2161
|
children: /* @__PURE__ */ o.jsx(
|
|
2147
2162
|
"span",
|
|
2148
2163
|
{
|
|
2149
|
-
...
|
|
2150
|
-
onClick:
|
|
2151
|
-
className:
|
|
2152
|
-
"data-testid":
|
|
2164
|
+
...v,
|
|
2165
|
+
onClick: D,
|
|
2166
|
+
className: $,
|
|
2167
|
+
"data-testid": w + "-content",
|
|
2153
2168
|
ref: r,
|
|
2154
|
-
"aria-disabled":
|
|
2155
|
-
children:
|
|
2169
|
+
"aria-disabled": y,
|
|
2170
|
+
children: B
|
|
2156
2171
|
}
|
|
2157
2172
|
)
|
|
2158
2173
|
}
|
|
@@ -2191,77 +2206,77 @@ const Ra = (t) => {
|
|
|
2191
2206
|
src: i,
|
|
2192
2207
|
isLoading: a = !1,
|
|
2193
2208
|
style: l,
|
|
2194
|
-
className:
|
|
2195
|
-
containerProps:
|
|
2196
|
-
"data-testid":
|
|
2197
|
-
onError:
|
|
2198
|
-
onLoad:
|
|
2199
|
-
...
|
|
2200
|
-
} = t, { className:
|
|
2209
|
+
className: d,
|
|
2210
|
+
containerProps: p,
|
|
2211
|
+
"data-testid": f = "image",
|
|
2212
|
+
onError: c,
|
|
2213
|
+
onLoad: g,
|
|
2214
|
+
...y
|
|
2215
|
+
} = t, { className: b, ...w } = p ?? {}, [v, u] = ut("loading"), m = v === "error", _ = (a || v === "loading") && !m, x = v === "loaded" && !a, L = k(
|
|
2201
2216
|
Ht.container,
|
|
2202
|
-
{ [Ht.loading]:
|
|
2203
|
-
|
|
2204
|
-
),
|
|
2217
|
+
{ [Ht.loading]: _ && !x, [Ht.error]: m && !x },
|
|
2218
|
+
b
|
|
2219
|
+
), E = k(
|
|
2205
2220
|
Ht.image,
|
|
2206
2221
|
{
|
|
2207
|
-
[Ht.loading]:
|
|
2222
|
+
[Ht.loading]: _
|
|
2208
2223
|
},
|
|
2209
|
-
|
|
2210
|
-
),
|
|
2211
|
-
(
|
|
2212
|
-
|
|
2224
|
+
d
|
|
2225
|
+
), S = gt(
|
|
2226
|
+
(I) => {
|
|
2227
|
+
u("loaded"), g == null || g(I);
|
|
2213
2228
|
},
|
|
2214
|
-
[
|
|
2215
|
-
),
|
|
2216
|
-
(
|
|
2217
|
-
|
|
2229
|
+
[g]
|
|
2230
|
+
), j = gt(
|
|
2231
|
+
(I) => {
|
|
2232
|
+
u("error"), c == null || c(I);
|
|
2218
2233
|
},
|
|
2219
|
-
[
|
|
2220
|
-
),
|
|
2234
|
+
[c]
|
|
2235
|
+
), $ = {
|
|
2221
2236
|
loader: /* @__PURE__ */ o.jsxs(Xt, { children: [
|
|
2222
|
-
/* @__PURE__ */ o.jsx(ar, { size: 48, variant: "special", "data-testid": `${
|
|
2237
|
+
/* @__PURE__ */ o.jsx(ar, { size: 48, variant: "special", "data-testid": `${f}-loader` }),
|
|
2223
2238
|
/* @__PURE__ */ o.jsx(
|
|
2224
2239
|
"img",
|
|
2225
2240
|
{
|
|
2226
2241
|
alt: n,
|
|
2227
2242
|
src: i,
|
|
2228
|
-
onLoad:
|
|
2229
|
-
onError:
|
|
2243
|
+
onLoad: S,
|
|
2244
|
+
onError: j,
|
|
2230
2245
|
style: { display: "none" }
|
|
2231
2246
|
}
|
|
2232
2247
|
)
|
|
2233
2248
|
] }),
|
|
2234
|
-
error: /* @__PURE__ */ o.jsx(qa, { "data-testid": `${
|
|
2249
|
+
error: /* @__PURE__ */ o.jsx(qa, { "data-testid": `${f}-fallback` }),
|
|
2235
2250
|
image: /* @__PURE__ */ o.jsx(
|
|
2236
2251
|
"img",
|
|
2237
2252
|
{
|
|
2238
2253
|
ref: r,
|
|
2239
2254
|
alt: n,
|
|
2240
|
-
"data-testid":
|
|
2255
|
+
"data-testid": f,
|
|
2241
2256
|
loading: s,
|
|
2242
2257
|
src: i,
|
|
2243
|
-
className:
|
|
2244
|
-
...
|
|
2258
|
+
className: E,
|
|
2259
|
+
...y
|
|
2245
2260
|
}
|
|
2246
2261
|
)
|
|
2247
2262
|
};
|
|
2248
2263
|
return _t(() => {
|
|
2249
2264
|
if (!i) {
|
|
2250
|
-
|
|
2265
|
+
u("error");
|
|
2251
2266
|
return;
|
|
2252
2267
|
}
|
|
2253
|
-
|
|
2268
|
+
u("loading");
|
|
2254
2269
|
}, [i]), /* @__PURE__ */ o.jsxs(
|
|
2255
2270
|
"div",
|
|
2256
2271
|
{
|
|
2257
|
-
className:
|
|
2258
|
-
"data-testid": `${
|
|
2272
|
+
className: L,
|
|
2273
|
+
"data-testid": `${f}-container`,
|
|
2259
2274
|
style: l,
|
|
2260
|
-
...
|
|
2275
|
+
...w,
|
|
2261
2276
|
children: [
|
|
2262
|
-
|
|
2263
|
-
m &&
|
|
2264
|
-
|
|
2277
|
+
_ && $.loader,
|
|
2278
|
+
m && $.error,
|
|
2279
|
+
x && $.image
|
|
2265
2280
|
]
|
|
2266
2281
|
}
|
|
2267
2282
|
);
|
|
@@ -2315,19 +2330,19 @@ const Ra = (t) => {
|
|
|
2315
2330
|
"div",
|
|
2316
2331
|
{
|
|
2317
2332
|
"data-testid": "ConfigProvider-component",
|
|
2318
|
-
className:
|
|
2333
|
+
className: k(Xa, Ya, Za, Ua, Ga, xs, U, s)
|
|
2319
2334
|
}
|
|
2320
2335
|
),
|
|
2321
2336
|
/* @__PURE__ */ o.jsx(lr.Provider, { value: { locale: t }, children: n })
|
|
2322
|
-
] })),
|
|
2337
|
+
] })), Lc = {}, ys = "_tag_1llsi_1", vs = "_label_1llsi_16", ws = "_iconWrapper_1llsi_20", Cs = "_medium_1llsi_27", ks = "_large_1llsi_33", Ss = "_disabled_1llsi_43", Ls = "_neutral_1llsi_47", js = "_positive_1llsi_53", $s = "_negative_1llsi_59", Ts = "_warning_1llsi_65", Es = "_vivid_1llsi_71", Rs = "_special_1llsi_77", Is = "_accent_1llsi_84", Ns = "_blue_1llsi_90", Ms = "_lovely_1llsi_96", As = "_dreamy_1llsi_102", It = {
|
|
2323
2338
|
tag: ys,
|
|
2324
2339
|
label: vs,
|
|
2325
2340
|
iconWrapper: ws,
|
|
2326
2341
|
medium: Cs,
|
|
2327
2342
|
large: ks,
|
|
2328
2343
|
disabled: Ss,
|
|
2329
|
-
neutral:
|
|
2330
|
-
positive:
|
|
2344
|
+
neutral: Ls,
|
|
2345
|
+
positive: js,
|
|
2331
2346
|
negative: $s,
|
|
2332
2347
|
warning: Ts,
|
|
2333
2348
|
vivid: Es,
|
|
@@ -2336,25 +2351,25 @@ const Ra = (t) => {
|
|
|
2336
2351
|
blue: Ns,
|
|
2337
2352
|
lovely: Ms,
|
|
2338
2353
|
dreamy: As
|
|
2339
|
-
},
|
|
2354
|
+
}, jc = G((t, r) => {
|
|
2340
2355
|
const {
|
|
2341
2356
|
className: n,
|
|
2342
2357
|
children: s,
|
|
2343
2358
|
componentStyle: i = "neutral",
|
|
2344
2359
|
size: a = "medium",
|
|
2345
2360
|
disabled: l = !1,
|
|
2346
|
-
showLabel:
|
|
2347
|
-
slotStart:
|
|
2348
|
-
slotEnd:
|
|
2349
|
-
slotStartWrapperProps:
|
|
2350
|
-
slotEndWrapperProps:
|
|
2351
|
-
"data-testid":
|
|
2352
|
-
...
|
|
2353
|
-
} = t, { className:
|
|
2361
|
+
showLabel: d = !!s,
|
|
2362
|
+
slotStart: p,
|
|
2363
|
+
slotEnd: f,
|
|
2364
|
+
slotStartWrapperProps: c = {},
|
|
2365
|
+
slotEndWrapperProps: g = {},
|
|
2366
|
+
"data-testid": y,
|
|
2367
|
+
...b
|
|
2368
|
+
} = t, { className: w, ...v } = c, { className: u, ...m } = g;
|
|
2354
2369
|
return /* @__PURE__ */ o.jsxs(
|
|
2355
2370
|
"div",
|
|
2356
2371
|
{
|
|
2357
|
-
className:
|
|
2372
|
+
className: k(
|
|
2358
2373
|
It.tag,
|
|
2359
2374
|
It[a],
|
|
2360
2375
|
It[i],
|
|
@@ -2365,17 +2380,17 @@ const Ra = (t) => {
|
|
|
2365
2380
|
},
|
|
2366
2381
|
n
|
|
2367
2382
|
),
|
|
2368
|
-
"data-testid":
|
|
2383
|
+
"data-testid": y || "tag-component",
|
|
2369
2384
|
ref: r,
|
|
2370
|
-
...
|
|
2385
|
+
...b,
|
|
2371
2386
|
children: [
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2387
|
+
p && /* @__PURE__ */ o.jsx("span", { className: k([It.iconWrapper, w]), ...v, children: p }),
|
|
2388
|
+
d && /* @__PURE__ */ o.jsx("span", { className: k([It.label]), children: s }),
|
|
2389
|
+
f && /* @__PURE__ */ o.jsx("span", { className: k([It.iconWrapper, u]), ...m, children: f })
|
|
2375
2390
|
]
|
|
2376
2391
|
}
|
|
2377
2392
|
);
|
|
2378
|
-
}), Bs = "_checkbox_gtrs6_43", Ps = "_input_gtrs6_64", Os = "_icon_gtrs6_72", zs = "_container_gtrs6_92", Ds = "_error_gtrs6_143", Fs = "_checkboxWrapper_gtrs6_156", Ws = "_medium_gtrs6_211", qs = "_large_gtrs6_216", Hs = "_label_gtrs6_258",
|
|
2393
|
+
}), Bs = "_checkbox_gtrs6_43", Ps = "_input_gtrs6_64", Os = "_icon_gtrs6_72", zs = "_container_gtrs6_92", Ds = "_error_gtrs6_143", Fs = "_checkboxWrapper_gtrs6_156", Ws = "_medium_gtrs6_211", qs = "_large_gtrs6_216", Hs = "_label_gtrs6_258", jt = {
|
|
2379
2394
|
checkbox: Bs,
|
|
2380
2395
|
input: Ps,
|
|
2381
2396
|
icon: Os,
|
|
@@ -2451,7 +2466,7 @@ const Ra = (t) => {
|
|
|
2451
2466
|
return /* @__PURE__ */ o.jsx(
|
|
2452
2467
|
"div",
|
|
2453
2468
|
{
|
|
2454
|
-
className:
|
|
2469
|
+
className: jt.icon,
|
|
2455
2470
|
"data-testid": `${i}-icon`,
|
|
2456
2471
|
"data-checked": r,
|
|
2457
2472
|
"data-disabled": n,
|
|
@@ -2466,57 +2481,57 @@ const Ra = (t) => {
|
|
|
2466
2481
|
size: i = "medium",
|
|
2467
2482
|
indeterminate: a = !1,
|
|
2468
2483
|
loading: l = !1,
|
|
2469
|
-
error:
|
|
2470
|
-
disabled:
|
|
2471
|
-
containerClassName:
|
|
2472
|
-
className:
|
|
2473
|
-
containerStyle:
|
|
2474
|
-
style:
|
|
2475
|
-
children:
|
|
2476
|
-
clickableLabel:
|
|
2477
|
-
tabIndex:
|
|
2478
|
-
onChange:
|
|
2484
|
+
error: d,
|
|
2485
|
+
disabled: p = !1,
|
|
2486
|
+
containerClassName: f,
|
|
2487
|
+
className: c,
|
|
2488
|
+
containerStyle: g,
|
|
2489
|
+
style: y,
|
|
2490
|
+
children: b,
|
|
2491
|
+
clickableLabel: w = !0,
|
|
2492
|
+
tabIndex: v,
|
|
2493
|
+
onChange: u,
|
|
2479
2494
|
onClick: m,
|
|
2480
|
-
"data-testid":
|
|
2481
|
-
} = t, [
|
|
2482
|
-
|
|
2483
|
-
|
|
2495
|
+
"data-testid": _ = "checkbox"
|
|
2496
|
+
} = t, [x, L] = ut(!1), E = s ?? x, S = p || l, j = !!d, $ = E || a, I = k(jt.container, jt[i], f), B = k(
|
|
2497
|
+
jt.checkbox,
|
|
2498
|
+
jt[i],
|
|
2484
2499
|
{
|
|
2485
|
-
[
|
|
2500
|
+
[jt.error]: j
|
|
2486
2501
|
},
|
|
2487
|
-
|
|
2488
|
-
),
|
|
2489
|
-
|
|
2490
|
-
},
|
|
2491
|
-
if (
|
|
2492
|
-
|
|
2493
|
-
const q =
|
|
2494
|
-
|
|
2502
|
+
c
|
|
2503
|
+
), D = (P) => {
|
|
2504
|
+
S || (L(P.target.checked), u == null || u(P.target.checked, P));
|
|
2505
|
+
}, W = (P) => {
|
|
2506
|
+
if (P.key === "Enter" && !S) {
|
|
2507
|
+
P.preventDefault();
|
|
2508
|
+
const q = !$;
|
|
2509
|
+
L(q), u == null || u(q);
|
|
2495
2510
|
}
|
|
2496
|
-
},
|
|
2497
|
-
|
|
2511
|
+
}, T = (P) => {
|
|
2512
|
+
w || P.preventDefault(), m == null || m(P);
|
|
2498
2513
|
};
|
|
2499
2514
|
return /* @__PURE__ */ o.jsxs(
|
|
2500
2515
|
"label",
|
|
2501
2516
|
{
|
|
2502
|
-
className:
|
|
2517
|
+
className: I,
|
|
2503
2518
|
htmlFor: n,
|
|
2504
|
-
style:
|
|
2505
|
-
"data-testid":
|
|
2506
|
-
"data-clickable-label":
|
|
2519
|
+
style: g,
|
|
2520
|
+
"data-testid": _,
|
|
2521
|
+
"data-clickable-label": w,
|
|
2507
2522
|
children: [
|
|
2508
|
-
/* @__PURE__ */ o.jsx("div", { className:
|
|
2523
|
+
/* @__PURE__ */ o.jsx("div", { className: jt.checkboxWrapper, children: /* @__PURE__ */ o.jsxs(
|
|
2509
2524
|
"div",
|
|
2510
2525
|
{
|
|
2511
|
-
tabIndex:
|
|
2512
|
-
className:
|
|
2513
|
-
style:
|
|
2514
|
-
onKeyDown:
|
|
2515
|
-
"aria-checked":
|
|
2516
|
-
"aria-disabled":
|
|
2517
|
-
"aria-invalid":
|
|
2518
|
-
"aria-describedby":
|
|
2519
|
-
"data-testid": `${
|
|
2526
|
+
tabIndex: v || 0,
|
|
2527
|
+
className: B,
|
|
2528
|
+
style: y,
|
|
2529
|
+
onKeyDown: W,
|
|
2530
|
+
"aria-checked": $,
|
|
2531
|
+
"aria-disabled": S,
|
|
2532
|
+
"aria-invalid": j,
|
|
2533
|
+
"aria-describedby": d ? `${n}-error` : void 0,
|
|
2534
|
+
"data-testid": `${_}-label`,
|
|
2520
2535
|
children: [
|
|
2521
2536
|
/* @__PURE__ */ o.jsx(
|
|
2522
2537
|
"input",
|
|
@@ -2525,14 +2540,14 @@ const Ra = (t) => {
|
|
|
2525
2540
|
type: "checkbox",
|
|
2526
2541
|
id: n,
|
|
2527
2542
|
name: n,
|
|
2528
|
-
checked:
|
|
2529
|
-
disabled:
|
|
2530
|
-
className:
|
|
2531
|
-
onChange:
|
|
2532
|
-
"aria-checked":
|
|
2533
|
-
"aria-invalid":
|
|
2534
|
-
"aria-describedby":
|
|
2535
|
-
"data-testid": `${
|
|
2543
|
+
checked: $,
|
|
2544
|
+
disabled: S,
|
|
2545
|
+
className: jt.input,
|
|
2546
|
+
onChange: D,
|
|
2547
|
+
"aria-checked": $,
|
|
2548
|
+
"aria-invalid": j,
|
|
2549
|
+
"aria-describedby": d ? `${n}-error` : void 0,
|
|
2550
|
+
"data-testid": `${_}-input`
|
|
2536
2551
|
}
|
|
2537
2552
|
),
|
|
2538
2553
|
/* @__PURE__ */ o.jsx(
|
|
@@ -2540,29 +2555,29 @@ const Ra = (t) => {
|
|
|
2540
2555
|
{
|
|
2541
2556
|
name: n,
|
|
2542
2557
|
size: i,
|
|
2543
|
-
isChecked:
|
|
2544
|
-
isDisabled:
|
|
2558
|
+
isChecked: $,
|
|
2559
|
+
isDisabled: S,
|
|
2545
2560
|
indeterminate: a,
|
|
2546
|
-
dataTestId:
|
|
2561
|
+
dataTestId: _
|
|
2547
2562
|
}
|
|
2548
2563
|
)
|
|
2549
2564
|
]
|
|
2550
2565
|
}
|
|
2551
2566
|
) }),
|
|
2552
|
-
|
|
2567
|
+
b && /* @__PURE__ */ o.jsx(
|
|
2553
2568
|
"span",
|
|
2554
2569
|
{
|
|
2555
|
-
"data-testid": `${
|
|
2556
|
-
"data-clickable-label":
|
|
2557
|
-
className:
|
|
2558
|
-
onClick:
|
|
2559
|
-
children:
|
|
2570
|
+
"data-testid": `${_}-label-text`,
|
|
2571
|
+
"data-clickable-label": w,
|
|
2572
|
+
className: jt.label,
|
|
2573
|
+
onClick: T,
|
|
2574
|
+
children: b
|
|
2560
2575
|
}
|
|
2561
2576
|
)
|
|
2562
2577
|
]
|
|
2563
2578
|
}
|
|
2564
2579
|
);
|
|
2565
|
-
}), Us = "_base_10oxr_1", Gs = "_content_10oxr_1", Ks = "_background_10oxr_1", Js = "_button_10oxr_1", Qs = "_link_10oxr_1", ti = "_input_10oxr_96", ei = "_suffix_10oxr_1", ri = "_prefix_10oxr_1", ni = "_tooltip_10oxr_1", oi = "_hint_10oxr_794", ai = "_dropdown_10oxr_1", si = "_popover_10oxr_1", ii = "_modalBackdrop_10oxr_1", li = "_modal_10oxr_1", ci = "_overlay_10oxr_1", di = "_drawer_10oxr_1", ui = "_notification_10oxr_1", _i = "_alert_10oxr_1", pi = "_toast_10oxr_1", fi = "_loading_10oxr_291", gi = "_error_10oxr_252", hi = "_critical_10oxr_1", mi = "_inputBase_10oxr_96", bi = "_wrapper_10oxr_106", xi = "_gripHandle_10oxr_186", yi = "_tabFocused_10oxr_259", vi = "_disabled_10oxr_284", wi = "_label_10oxr_301", Ci = "_S_10oxr_315", ki = "_M_10oxr_321", Si = "_XL_10oxr_328",
|
|
2580
|
+
}), Us = "_base_10oxr_1", Gs = "_content_10oxr_1", Ks = "_background_10oxr_1", Js = "_button_10oxr_1", Qs = "_link_10oxr_1", ti = "_input_10oxr_96", ei = "_suffix_10oxr_1", ri = "_prefix_10oxr_1", ni = "_tooltip_10oxr_1", oi = "_hint_10oxr_794", ai = "_dropdown_10oxr_1", si = "_popover_10oxr_1", ii = "_modalBackdrop_10oxr_1", li = "_modal_10oxr_1", ci = "_overlay_10oxr_1", di = "_drawer_10oxr_1", ui = "_notification_10oxr_1", _i = "_alert_10oxr_1", pi = "_toast_10oxr_1", fi = "_loading_10oxr_291", gi = "_error_10oxr_252", hi = "_critical_10oxr_1", mi = "_inputBase_10oxr_96", bi = "_wrapper_10oxr_106", xi = "_gripHandle_10oxr_186", yi = "_tabFocused_10oxr_259", vi = "_disabled_10oxr_284", wi = "_label_10oxr_301", Ci = "_S_10oxr_315", ki = "_M_10oxr_321", Si = "_XL_10oxr_328", Li = "_leftSection_10oxr_335", ji = "_rightSection_10oxr_347", $i = "_helper_10oxr_385", Ti = "_floatingLabel_10oxr_415", Ei = "_focused_10oxr_481", Ri = "_filled_10oxr_482", Ii = "_L_10oxr_522", Ni = "_characterLimit_10oxr_564", Mi = "_textarea_10oxr_124", Ai = "_truncate_10oxr_707", M = {
|
|
2566
2581
|
base: Us,
|
|
2567
2582
|
content: Gs,
|
|
2568
2583
|
background: Ks,
|
|
@@ -2595,8 +2610,8 @@ const Ra = (t) => {
|
|
|
2595
2610
|
S: Ci,
|
|
2596
2611
|
M: ki,
|
|
2597
2612
|
XL: Si,
|
|
2598
|
-
leftSection:
|
|
2599
|
-
rightSection:
|
|
2613
|
+
leftSection: Li,
|
|
2614
|
+
rightSection: ji,
|
|
2600
2615
|
helper: $i,
|
|
2601
2616
|
floatingLabel: Ti,
|
|
2602
2617
|
focused: Ei,
|
|
@@ -2645,7 +2660,7 @@ const Ra = (t) => {
|
|
|
2645
2660
|
onClick: i,
|
|
2646
2661
|
...a
|
|
2647
2662
|
}) => {
|
|
2648
|
-
const
|
|
2663
|
+
const d = {
|
|
2649
2664
|
display: "inline-block",
|
|
2650
2665
|
color: s,
|
|
2651
2666
|
...{
|
|
@@ -2662,7 +2677,7 @@ const Ra = (t) => {
|
|
|
2662
2677
|
"svg",
|
|
2663
2678
|
{
|
|
2664
2679
|
className: t,
|
|
2665
|
-
style:
|
|
2680
|
+
style: d,
|
|
2666
2681
|
viewBox: "0 0 16 16",
|
|
2667
2682
|
fill: "none",
|
|
2668
2683
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2697,7 +2712,7 @@ const Ra = (t) => {
|
|
|
2697
2712
|
if (n.current.style.setProperty("height", "auto", "important"), !t) return;
|
|
2698
2713
|
const a = n.current.scrollHeight + "px";
|
|
2699
2714
|
n.current.style.setProperty("height", a, "important"), n.current.scrollTop = i;
|
|
2700
|
-
const l = n.current.closest(`.${
|
|
2715
|
+
const l = n.current.closest(`.${M.wrapper}`);
|
|
2701
2716
|
l && (l.setAttribute("data-resize", "hug"), l.setAttribute("data-show-grip", "false"));
|
|
2702
2717
|
};
|
|
2703
2718
|
return _t(s, [t, r]), _t(() => {
|
|
@@ -2707,15 +2722,15 @@ const Ra = (t) => {
|
|
|
2707
2722
|
(a) => {
|
|
2708
2723
|
if (!t || r || n || !(s === "fixed" || !s)) return;
|
|
2709
2724
|
a.preventDefault(), a.stopPropagation();
|
|
2710
|
-
const l = a.currentTarget.closest(`.${
|
|
2725
|
+
const l = a.currentTarget.closest(`.${M.wrapper}`);
|
|
2711
2726
|
if (!l) return;
|
|
2712
|
-
const
|
|
2713
|
-
const
|
|
2714
|
-
l.style.height = `${
|
|
2715
|
-
},
|
|
2716
|
-
document.removeEventListener("mousemove",
|
|
2727
|
+
const d = a.clientY, p = l.clientHeight, f = (g) => {
|
|
2728
|
+
const y = g.clientY - d, b = Math.min(100, p), w = Math.max(b, p + y);
|
|
2729
|
+
l.style.height = `${w}px`;
|
|
2730
|
+
}, c = () => {
|
|
2731
|
+
document.removeEventListener("mousemove", f), document.removeEventListener("mouseup", c);
|
|
2717
2732
|
};
|
|
2718
|
-
document.addEventListener("mousemove",
|
|
2733
|
+
document.addEventListener("mousemove", f), document.addEventListener("mouseup", c);
|
|
2719
2734
|
},
|
|
2720
2735
|
[t, r, n, s]
|
|
2721
2736
|
) }), Ue = 30, Di = G(
|
|
@@ -2727,80 +2742,80 @@ const Ra = (t) => {
|
|
|
2727
2742
|
disabled: i = !1,
|
|
2728
2743
|
loading: a = !1,
|
|
2729
2744
|
onFocus: l,
|
|
2730
|
-
onBlur:
|
|
2731
|
-
onChange:
|
|
2732
|
-
onKeyDown:
|
|
2733
|
-
onKeyUp:
|
|
2734
|
-
maxLength:
|
|
2735
|
-
className:
|
|
2736
|
-
style:
|
|
2737
|
-
truncate:
|
|
2738
|
-
shouldShowFloatingLabelClass:
|
|
2739
|
-
"aria-invalid":
|
|
2745
|
+
onBlur: d,
|
|
2746
|
+
onChange: p,
|
|
2747
|
+
onKeyDown: f,
|
|
2748
|
+
onKeyUp: c,
|
|
2749
|
+
maxLength: g,
|
|
2750
|
+
className: y,
|
|
2751
|
+
style: b,
|
|
2752
|
+
truncate: w = !1,
|
|
2753
|
+
shouldShowFloatingLabelClass: v = !1,
|
|
2754
|
+
"aria-invalid": u,
|
|
2740
2755
|
"aria-errormessage": m,
|
|
2741
|
-
id:
|
|
2742
|
-
resize:
|
|
2743
|
-
...
|
|
2744
|
-
},
|
|
2745
|
-
const { textareaRef:
|
|
2746
|
-
if (Oi(n,
|
|
2756
|
+
id: _,
|
|
2757
|
+
resize: x,
|
|
2758
|
+
...L
|
|
2759
|
+
}, E) => {
|
|
2760
|
+
const { textareaRef: S, inputRef: j, currentRef: $ } = Pi(n, t);
|
|
2761
|
+
if (Oi(n, x, S), Pr(E, () => $.current, [$]), t === "textarea")
|
|
2747
2762
|
return /* @__PURE__ */ o.jsx(
|
|
2748
2763
|
"textarea",
|
|
2749
2764
|
{
|
|
2750
|
-
ref:
|
|
2751
|
-
id:
|
|
2765
|
+
ref: S,
|
|
2766
|
+
id: _,
|
|
2752
2767
|
value: n,
|
|
2753
2768
|
placeholder: s,
|
|
2754
2769
|
disabled: i || a,
|
|
2755
2770
|
onFocus: l,
|
|
2756
|
-
onBlur:
|
|
2757
|
-
onChange:
|
|
2758
|
-
onKeyDown:
|
|
2759
|
-
onKeyUp:
|
|
2760
|
-
maxLength:
|
|
2761
|
-
className:
|
|
2762
|
-
|
|
2763
|
-
|
|
2764
|
-
|
|
2765
|
-
|
|
2771
|
+
onBlur: d,
|
|
2772
|
+
onChange: p,
|
|
2773
|
+
onKeyDown: f,
|
|
2774
|
+
onKeyUp: c,
|
|
2775
|
+
maxLength: g,
|
|
2776
|
+
className: k(
|
|
2777
|
+
M.textarea,
|
|
2778
|
+
M[`size-${r}`],
|
|
2779
|
+
v && M["with-floating-label"],
|
|
2780
|
+
y
|
|
2766
2781
|
),
|
|
2767
|
-
style:
|
|
2768
|
-
"aria-invalid":
|
|
2782
|
+
style: b,
|
|
2783
|
+
"aria-invalid": u,
|
|
2769
2784
|
"aria-errormessage": m,
|
|
2770
|
-
"aria-describedby": m ? `${
|
|
2785
|
+
"aria-describedby": m ? `${_}-error` : void 0,
|
|
2771
2786
|
tabIndex: 0,
|
|
2772
|
-
"data-resize":
|
|
2773
|
-
...
|
|
2787
|
+
"data-resize": x,
|
|
2788
|
+
...L
|
|
2774
2789
|
}
|
|
2775
2790
|
);
|
|
2776
2791
|
if (t === "input")
|
|
2777
2792
|
return /* @__PURE__ */ o.jsx(
|
|
2778
2793
|
"input",
|
|
2779
2794
|
{
|
|
2780
|
-
ref:
|
|
2781
|
-
id:
|
|
2795
|
+
ref: j,
|
|
2796
|
+
id: _,
|
|
2782
2797
|
value: n,
|
|
2783
2798
|
placeholder: s,
|
|
2784
2799
|
disabled: i || a,
|
|
2785
2800
|
onFocus: l,
|
|
2786
|
-
onBlur:
|
|
2787
|
-
onChange:
|
|
2788
|
-
onKeyDown:
|
|
2789
|
-
onKeyUp:
|
|
2790
|
-
maxLength:
|
|
2791
|
-
className:
|
|
2792
|
-
|
|
2793
|
-
|
|
2794
|
-
|
|
2795
|
-
|
|
2796
|
-
|
|
2801
|
+
onBlur: d,
|
|
2802
|
+
onChange: p,
|
|
2803
|
+
onKeyDown: f,
|
|
2804
|
+
onKeyUp: c,
|
|
2805
|
+
maxLength: g,
|
|
2806
|
+
className: k(
|
|
2807
|
+
M.input,
|
|
2808
|
+
M[`size-${r}`],
|
|
2809
|
+
v && M["with-floating-label"],
|
|
2810
|
+
w && M.truncate,
|
|
2811
|
+
y
|
|
2797
2812
|
),
|
|
2798
|
-
style:
|
|
2799
|
-
"aria-invalid":
|
|
2813
|
+
style: b,
|
|
2814
|
+
"aria-invalid": u,
|
|
2800
2815
|
"aria-errormessage": m,
|
|
2801
|
-
"aria-describedby": m ? `${
|
|
2816
|
+
"aria-describedby": m ? `${_}-error` : void 0,
|
|
2802
2817
|
tabIndex: 0,
|
|
2803
|
-
...
|
|
2818
|
+
...L
|
|
2804
2819
|
}
|
|
2805
2820
|
);
|
|
2806
2821
|
if (t !== "input" && t !== "textarea")
|
|
@@ -2817,83 +2832,83 @@ const Ra = (t) => {
|
|
|
2817
2832
|
loading: i = !1,
|
|
2818
2833
|
className: a,
|
|
2819
2834
|
wrapperProps: l,
|
|
2820
|
-
wrapperStyles:
|
|
2821
|
-
floatingLabelStyles:
|
|
2822
|
-
prefixStyles:
|
|
2823
|
-
suffixStyles:
|
|
2824
|
-
labelProps:
|
|
2825
|
-
helperProps:
|
|
2826
|
-
showLimit:
|
|
2827
|
-
maxLength:
|
|
2828
|
-
hint:
|
|
2829
|
-
showHint:
|
|
2835
|
+
wrapperStyles: d,
|
|
2836
|
+
floatingLabelStyles: p,
|
|
2837
|
+
prefixStyles: f,
|
|
2838
|
+
suffixStyles: c,
|
|
2839
|
+
labelProps: g,
|
|
2840
|
+
helperProps: y,
|
|
2841
|
+
showLimit: b = !1,
|
|
2842
|
+
maxLength: w,
|
|
2843
|
+
hint: v,
|
|
2844
|
+
showHint: u = !1,
|
|
2830
2845
|
showHintOnEmpty: m = !1,
|
|
2831
|
-
prefix:
|
|
2832
|
-
suffix:
|
|
2833
|
-
onSuffixClick:
|
|
2834
|
-
placeholder:
|
|
2835
|
-
showLabel:
|
|
2836
|
-
labelClassName:
|
|
2837
|
-
hasValue:
|
|
2838
|
-
helper:
|
|
2839
|
-
id:
|
|
2840
|
-
value:
|
|
2841
|
-
resize:
|
|
2842
|
-
showGrip:
|
|
2843
|
-
...
|
|
2846
|
+
prefix: _,
|
|
2847
|
+
suffix: x,
|
|
2848
|
+
onSuffixClick: L,
|
|
2849
|
+
placeholder: E,
|
|
2850
|
+
showLabel: S = !0,
|
|
2851
|
+
labelClassName: j,
|
|
2852
|
+
hasValue: $ = !1,
|
|
2853
|
+
helper: I,
|
|
2854
|
+
id: B,
|
|
2855
|
+
value: D = "",
|
|
2856
|
+
resize: W,
|
|
2857
|
+
showGrip: T = !1,
|
|
2858
|
+
...P
|
|
2844
2859
|
}, q) => {
|
|
2845
|
-
const H = xe(), X =
|
|
2846
|
-
|
|
2847
|
-
|
|
2848
|
-
n &&
|
|
2849
|
-
s &&
|
|
2850
|
-
i &&
|
|
2851
|
-
K &&
|
|
2852
|
-
|
|
2853
|
-
|
|
2860
|
+
const H = xe(), X = B || H, K = u && v && ($ || m), ot = v && v.length > Ue ? v.substring(0, Ue) + "..." : v, rt = k(
|
|
2861
|
+
M.wrapper,
|
|
2862
|
+
M[`size-${r}`],
|
|
2863
|
+
n && M.error,
|
|
2864
|
+
s && M.disabled,
|
|
2865
|
+
i && M.loading,
|
|
2866
|
+
K && M["has-hint"],
|
|
2867
|
+
x && M["has-suffix"],
|
|
2868
|
+
b && M["has-limit"],
|
|
2854
2869
|
a
|
|
2855
|
-
), J =
|
|
2856
|
-
|
|
2857
|
-
|
|
2858
|
-
|
|
2859
|
-
|
|
2860
|
-
), { handleGripMouseDown: at } = zi(
|
|
2861
|
-
return /* @__PURE__ */ o.jsxs("div", { ref: q, className:
|
|
2870
|
+
), J = k(
|
|
2871
|
+
M.floatingLabel,
|
|
2872
|
+
M[r],
|
|
2873
|
+
$ && M.filled,
|
|
2874
|
+
j
|
|
2875
|
+
), { handleGripMouseDown: at } = zi(T, s, i, W);
|
|
2876
|
+
return /* @__PURE__ */ o.jsxs("div", { ref: q, className: M.inputBase, "data-testid": "input-base-wrapper", ...P, children: [
|
|
2862
2877
|
/* @__PURE__ */ o.jsxs(
|
|
2863
2878
|
"div",
|
|
2864
2879
|
{
|
|
2865
2880
|
className: rt,
|
|
2866
|
-
style:
|
|
2867
|
-
"data-resize":
|
|
2868
|
-
"data-show-grip":
|
|
2881
|
+
style: d,
|
|
2882
|
+
"data-resize": W,
|
|
2883
|
+
"data-show-grip": T ? "true" : "false",
|
|
2869
2884
|
...l,
|
|
2870
2885
|
children: [
|
|
2871
|
-
|
|
2872
|
-
|
|
2886
|
+
_ && /* @__PURE__ */ o.jsx("label", { htmlFor: X, className: M.leftSection, style: f, children: _ }),
|
|
2887
|
+
x && /* @__PURE__ */ o.jsx(
|
|
2873
2888
|
"label",
|
|
2874
2889
|
{
|
|
2875
2890
|
htmlFor: X,
|
|
2876
|
-
className:
|
|
2877
|
-
style:
|
|
2878
|
-
onClick:
|
|
2879
|
-
children:
|
|
2891
|
+
className: M.rightSection,
|
|
2892
|
+
style: c,
|
|
2893
|
+
onClick: L,
|
|
2894
|
+
children: x
|
|
2880
2895
|
}
|
|
2881
2896
|
),
|
|
2882
|
-
|
|
2897
|
+
E && S && /* @__PURE__ */ o.jsx(
|
|
2883
2898
|
"label",
|
|
2884
2899
|
{
|
|
2885
2900
|
htmlFor: X,
|
|
2886
2901
|
className: J,
|
|
2887
|
-
style:
|
|
2888
|
-
...
|
|
2889
|
-
children:
|
|
2902
|
+
style: p,
|
|
2903
|
+
...g,
|
|
2904
|
+
children: E
|
|
2890
2905
|
}
|
|
2891
2906
|
),
|
|
2892
2907
|
t,
|
|
2893
|
-
|
|
2908
|
+
T && !b && (W === "fixed" || !W) && /* @__PURE__ */ o.jsx(
|
|
2894
2909
|
"div",
|
|
2895
2910
|
{
|
|
2896
|
-
className:
|
|
2911
|
+
className: M.gripHandle,
|
|
2897
2912
|
onMouseDown: at,
|
|
2898
2913
|
role: "button",
|
|
2899
2914
|
tabIndex: -1,
|
|
@@ -2904,30 +2919,30 @@ const Ra = (t) => {
|
|
|
2904
2919
|
K && /* @__PURE__ */ o.jsx(
|
|
2905
2920
|
"div",
|
|
2906
2921
|
{
|
|
2907
|
-
className:
|
|
2922
|
+
className: k(M.hint, $ && M.truncate),
|
|
2908
2923
|
"data-disabled": s || i,
|
|
2909
2924
|
children: ot
|
|
2910
2925
|
}
|
|
2911
2926
|
),
|
|
2912
|
-
|
|
2913
|
-
(
|
|
2927
|
+
b && w && /* @__PURE__ */ o.jsxs("div", { className: M.characterLimit, children: [
|
|
2928
|
+
(D || "").length,
|
|
2914
2929
|
" из ",
|
|
2915
|
-
|
|
2930
|
+
w
|
|
2916
2931
|
] })
|
|
2917
2932
|
]
|
|
2918
2933
|
}
|
|
2919
2934
|
),
|
|
2920
|
-
|
|
2935
|
+
I && /* @__PURE__ */ o.jsx(
|
|
2921
2936
|
"div",
|
|
2922
2937
|
{
|
|
2923
|
-
className:
|
|
2924
|
-
|
|
2925
|
-
n &&
|
|
2926
|
-
(s || i) &&
|
|
2938
|
+
className: k(
|
|
2939
|
+
M.helper,
|
|
2940
|
+
n && M.error,
|
|
2941
|
+
(s || i) && M.disabled
|
|
2927
2942
|
),
|
|
2928
|
-
...
|
|
2943
|
+
...y,
|
|
2929
2944
|
id: n ? `${X}-error` : void 0,
|
|
2930
|
-
children:
|
|
2945
|
+
children: I
|
|
2931
2946
|
}
|
|
2932
2947
|
)
|
|
2933
2948
|
] });
|
|
@@ -2945,30 +2960,30 @@ const Ge = Object.assign(Di, {
|
|
|
2945
2960
|
disabled: i = !1,
|
|
2946
2961
|
loading: a = !1,
|
|
2947
2962
|
placeholder: l,
|
|
2948
|
-
showLabel:
|
|
2949
|
-
labelClassName:
|
|
2950
|
-
helper:
|
|
2951
|
-
prefix:
|
|
2952
|
-
suffix:
|
|
2953
|
-
id:
|
|
2954
|
-
onFocus:
|
|
2955
|
-
onBlur:
|
|
2956
|
-
onKeyDown:
|
|
2957
|
-
onSuffixClick:
|
|
2963
|
+
showLabel: d = !0,
|
|
2964
|
+
labelClassName: p,
|
|
2965
|
+
helper: f,
|
|
2966
|
+
prefix: c,
|
|
2967
|
+
suffix: g,
|
|
2968
|
+
id: y,
|
|
2969
|
+
onFocus: b,
|
|
2970
|
+
onBlur: w,
|
|
2971
|
+
onKeyDown: v,
|
|
2972
|
+
onSuffixClick: u,
|
|
2958
2973
|
onChange: m,
|
|
2959
|
-
value:
|
|
2960
|
-
wrapperProps:
|
|
2961
|
-
wrapperStyles:
|
|
2962
|
-
floatingLabelStyles:
|
|
2963
|
-
prefixStyles:
|
|
2964
|
-
suffixStyles:
|
|
2965
|
-
textareaStyles:
|
|
2966
|
-
labelProps:
|
|
2967
|
-
helperProps:
|
|
2968
|
-
showLimit:
|
|
2969
|
-
maxLength:
|
|
2970
|
-
inputProps:
|
|
2971
|
-
hint:
|
|
2974
|
+
value: _ = "",
|
|
2975
|
+
wrapperProps: x,
|
|
2976
|
+
wrapperStyles: L,
|
|
2977
|
+
floatingLabelStyles: E,
|
|
2978
|
+
prefixStyles: S,
|
|
2979
|
+
suffixStyles: j,
|
|
2980
|
+
textareaStyles: $,
|
|
2981
|
+
labelProps: I,
|
|
2982
|
+
helperProps: B,
|
|
2983
|
+
showLimit: D = !1,
|
|
2984
|
+
maxLength: W,
|
|
2985
|
+
inputProps: T,
|
|
2986
|
+
hint: P,
|
|
2972
2987
|
showHint: q = !1,
|
|
2973
2988
|
showHintOnEmpty: H = !1,
|
|
2974
2989
|
truncate: X = !1,
|
|
@@ -2976,53 +2991,53 @@ const Ge = Object.assign(Di, {
|
|
|
2976
2991
|
showGrip: ot = !1,
|
|
2977
2992
|
...rt
|
|
2978
2993
|
}, J) => {
|
|
2979
|
-
const at = xe(), st =
|
|
2994
|
+
const at = xe(), st = y || at, [kt, yt] = ut(_), it = _ !== void 0 ? _ : kt, Tt = (it || "").length > 0, pt = it || "", Mt = d && (r === "XL" || t === "textarea") && !c, oe = gt(
|
|
2980
2995
|
(Q) => {
|
|
2981
2996
|
var tt;
|
|
2982
|
-
i || a || (
|
|
2983
|
-
|
|
2997
|
+
i || a || (b == null || b(), (tt = T == null ? void 0 : T.onFocus) == null || tt.call(
|
|
2998
|
+
T,
|
|
2984
2999
|
Q
|
|
2985
3000
|
));
|
|
2986
3001
|
},
|
|
2987
|
-
[
|
|
3002
|
+
[b, T, i, a]
|
|
2988
3003
|
), Zt = gt(
|
|
2989
3004
|
(Q) => {
|
|
2990
3005
|
var tt;
|
|
2991
3006
|
if (Q.key === "Tab") {
|
|
2992
|
-
const vt = Q.target.closest(`.${
|
|
2993
|
-
vt && vt.classList.add(
|
|
3007
|
+
const vt = Q.target.closest(`.${M.wrapper}`);
|
|
3008
|
+
vt && vt.classList.add(M.tabFocused);
|
|
2994
3009
|
}
|
|
2995
|
-
(tt =
|
|
2996
|
-
|
|
3010
|
+
(tt = T == null ? void 0 : T.onKeyUp) == null || tt.call(
|
|
3011
|
+
T,
|
|
2997
3012
|
Q
|
|
2998
3013
|
);
|
|
2999
3014
|
},
|
|
3000
|
-
[
|
|
3015
|
+
[T]
|
|
3001
3016
|
), ae = gt(
|
|
3002
3017
|
(Q) => {
|
|
3003
3018
|
var vt;
|
|
3004
|
-
const tt = Q.target.closest(`.${
|
|
3005
|
-
tt && tt.classList.remove(
|
|
3006
|
-
|
|
3019
|
+
const tt = Q.target.closest(`.${M.wrapper}`);
|
|
3020
|
+
tt && tt.classList.remove(M.tabFocused), w == null || w(), (vt = T == null ? void 0 : T.onBlur) == null || vt.call(
|
|
3021
|
+
T,
|
|
3007
3022
|
Q
|
|
3008
3023
|
);
|
|
3009
3024
|
},
|
|
3010
|
-
[
|
|
3025
|
+
[w, T]
|
|
3011
3026
|
), se = gt(
|
|
3012
3027
|
(Q) => {
|
|
3013
3028
|
var vt;
|
|
3014
3029
|
if (i || a) return;
|
|
3015
3030
|
const tt = Q.target.value;
|
|
3016
|
-
yt(tt), m == null || m(tt, Q), (vt =
|
|
3017
|
-
|
|
3031
|
+
yt(tt), m == null || m(tt, Q), (vt = T == null ? void 0 : T.onChange) == null || vt.call(
|
|
3032
|
+
T,
|
|
3018
3033
|
Q
|
|
3019
3034
|
);
|
|
3020
3035
|
},
|
|
3021
|
-
[m,
|
|
3036
|
+
[m, T, i, a]
|
|
3022
3037
|
);
|
|
3023
3038
|
return _t(() => {
|
|
3024
|
-
yt(
|
|
3025
|
-
}, [
|
|
3039
|
+
yt(_ || "");
|
|
3040
|
+
}, [_]), /* @__PURE__ */ o.jsx(
|
|
3026
3041
|
Ge.Wrapper,
|
|
3027
3042
|
{
|
|
3028
3043
|
ref: J,
|
|
@@ -3030,27 +3045,27 @@ const Ge = Object.assign(Di, {
|
|
|
3030
3045
|
error: s,
|
|
3031
3046
|
disabled: i || a,
|
|
3032
3047
|
loading: a,
|
|
3033
|
-
className:
|
|
3034
|
-
wrapperProps:
|
|
3035
|
-
wrapperStyles:
|
|
3036
|
-
floatingLabelStyles:
|
|
3037
|
-
prefixStyles:
|
|
3038
|
-
suffixStyles:
|
|
3039
|
-
labelProps:
|
|
3040
|
-
helperProps:
|
|
3041
|
-
showLimit:
|
|
3042
|
-
maxLength:
|
|
3043
|
-
hint:
|
|
3048
|
+
className: k(n, t === "textarea" && M["textarea-wrapper"]),
|
|
3049
|
+
wrapperProps: x,
|
|
3050
|
+
wrapperStyles: L,
|
|
3051
|
+
floatingLabelStyles: E,
|
|
3052
|
+
prefixStyles: S,
|
|
3053
|
+
suffixStyles: j,
|
|
3054
|
+
labelProps: I,
|
|
3055
|
+
helperProps: B,
|
|
3056
|
+
showLimit: D,
|
|
3057
|
+
maxLength: W,
|
|
3058
|
+
hint: P,
|
|
3044
3059
|
showHint: q,
|
|
3045
3060
|
showHintOnEmpty: H,
|
|
3046
|
-
prefix:
|
|
3047
|
-
suffix:
|
|
3048
|
-
onSuffixClick:
|
|
3061
|
+
prefix: c,
|
|
3062
|
+
suffix: g,
|
|
3063
|
+
onSuffixClick: u,
|
|
3049
3064
|
placeholder: l,
|
|
3050
|
-
showLabel:
|
|
3051
|
-
labelClassName:
|
|
3065
|
+
showLabel: d,
|
|
3066
|
+
labelClassName: p,
|
|
3052
3067
|
hasValue: Tt,
|
|
3053
|
-
helper:
|
|
3068
|
+
helper: f,
|
|
3054
3069
|
id: st,
|
|
3055
3070
|
value: pt,
|
|
3056
3071
|
showGrip: ot,
|
|
@@ -3068,18 +3083,18 @@ const Ge = Object.assign(Di, {
|
|
|
3068
3083
|
onFocus: oe,
|
|
3069
3084
|
onBlur: ae,
|
|
3070
3085
|
onChange: se,
|
|
3071
|
-
onKeyDown:
|
|
3086
|
+
onKeyDown: v,
|
|
3072
3087
|
onKeyUp: Zt,
|
|
3073
|
-
maxLength:
|
|
3088
|
+
maxLength: W,
|
|
3074
3089
|
truncate: X,
|
|
3075
3090
|
"data-empty": !Tt,
|
|
3076
3091
|
shouldShowFloatingLabelClass: Mt,
|
|
3077
|
-
style: t === "textarea" ?
|
|
3092
|
+
style: t === "textarea" ? $ : void 0,
|
|
3078
3093
|
"aria-invalid": !!s,
|
|
3079
3094
|
"aria-errormessage": s ? `${st}-error` : void 0,
|
|
3080
3095
|
id: st,
|
|
3081
3096
|
resize: K,
|
|
3082
|
-
|
|
3097
|
+
...T
|
|
3083
3098
|
}
|
|
3084
3099
|
)
|
|
3085
3100
|
}
|
|
@@ -3224,16 +3239,16 @@ const Ge = Object.assign(Di, {
|
|
|
3224
3239
|
cursor: "pointer"
|
|
3225
3240
|
}
|
|
3226
3241
|
}), Ui = (t, r, n, s) => {
|
|
3227
|
-
const i = Wi(t), a = Fi(t, r, n, s), l = Hi(t),
|
|
3242
|
+
const i = Wi(t), a = Fi(t, r, n, s), l = Hi(t), d = qi(t);
|
|
3228
3243
|
switch (t) {
|
|
3229
3244
|
case V.XL:
|
|
3230
|
-
return Xi(i, a, l,
|
|
3245
|
+
return Xi(i, a, l, d);
|
|
3231
3246
|
case V.L:
|
|
3232
|
-
return Yi(i, a, l,
|
|
3247
|
+
return Yi(i, a, l, d);
|
|
3233
3248
|
case V.M:
|
|
3234
|
-
return Zi(i, a, l,
|
|
3249
|
+
return Zi(i, a, l, d);
|
|
3235
3250
|
case V.S:
|
|
3236
|
-
return Vi(i, a, l,
|
|
3251
|
+
return Vi(i, a, l, d);
|
|
3237
3252
|
default:
|
|
3238
3253
|
return {
|
|
3239
3254
|
wrapperStyles: {},
|
|
@@ -3251,84 +3266,84 @@ const Ge = Object.assign(Di, {
|
|
|
3251
3266
|
maxLength: i,
|
|
3252
3267
|
minLength: a,
|
|
3253
3268
|
autoComplete: l,
|
|
3254
|
-
autoFocus:
|
|
3255
|
-
size:
|
|
3256
|
-
inputProps:
|
|
3257
|
-
error:
|
|
3258
|
-
disabled:
|
|
3259
|
-
loading:
|
|
3260
|
-
helper:
|
|
3261
|
-
prefix:
|
|
3262
|
-
suffix:
|
|
3263
|
-
clearable:
|
|
3269
|
+
autoFocus: d,
|
|
3270
|
+
size: p = V.L,
|
|
3271
|
+
inputProps: f,
|
|
3272
|
+
error: c,
|
|
3273
|
+
disabled: g,
|
|
3274
|
+
loading: y,
|
|
3275
|
+
helper: b,
|
|
3276
|
+
prefix: w,
|
|
3277
|
+
suffix: v,
|
|
3278
|
+
clearable: u = !1,
|
|
3264
3279
|
id: m,
|
|
3265
|
-
showLabel:
|
|
3266
|
-
onFocus:
|
|
3267
|
-
onBlur:
|
|
3268
|
-
onSuffixClick:
|
|
3269
|
-
onClear:
|
|
3270
|
-
className:
|
|
3271
|
-
truncate:
|
|
3272
|
-
hint:
|
|
3273
|
-
showHint:
|
|
3274
|
-
showHintOnEmpty:
|
|
3275
|
-
wrapperProps:
|
|
3276
|
-
labelProps:
|
|
3277
|
-
helperProps:
|
|
3280
|
+
showLabel: _ = !0,
|
|
3281
|
+
onFocus: x,
|
|
3282
|
+
onBlur: L,
|
|
3283
|
+
onSuffixClick: E,
|
|
3284
|
+
onClear: S,
|
|
3285
|
+
className: j,
|
|
3286
|
+
truncate: $ = !0,
|
|
3287
|
+
hint: I,
|
|
3288
|
+
showHint: B = !1,
|
|
3289
|
+
showHintOnEmpty: D = !1,
|
|
3290
|
+
wrapperProps: W,
|
|
3291
|
+
labelProps: T,
|
|
3292
|
+
helperProps: P,
|
|
3278
3293
|
...q
|
|
3279
3294
|
}, H) => {
|
|
3280
|
-
const X = (t || "").length > 0, K =
|
|
3281
|
-
r == null || r(""),
|
|
3295
|
+
const X = (t || "").length > 0, K = p === V.XL, ot = !!w, rt = K && _ && !w, J = u && X && !(g || y), at = () => {
|
|
3296
|
+
r == null || r(""), S == null || S();
|
|
3282
3297
|
}, st = () => {
|
|
3283
|
-
J && at(),
|
|
3298
|
+
J && at(), E == null || E();
|
|
3284
3299
|
}, kt = J ? /* @__PURE__ */ o.jsx(
|
|
3285
3300
|
cr,
|
|
3286
3301
|
{
|
|
3287
|
-
size:
|
|
3302
|
+
size: p === V.S || p === V.M ? "xs" : "sm",
|
|
3288
3303
|
color: "var(--icon-secondary)",
|
|
3289
3304
|
style: { cursor: "pointer" },
|
|
3290
3305
|
"data-testid": "x-icon"
|
|
3291
3306
|
}
|
|
3292
|
-
) :
|
|
3307
|
+
) : v, yt = {
|
|
3293
3308
|
type: n,
|
|
3294
3309
|
minLength: a,
|
|
3295
3310
|
autoComplete: l,
|
|
3296
|
-
autoFocus:
|
|
3297
|
-
...
|
|
3298
|
-
}, it = Ui(
|
|
3311
|
+
autoFocus: d,
|
|
3312
|
+
...f
|
|
3313
|
+
}, it = Ui(p, rt, X, ot);
|
|
3299
3314
|
return /* @__PURE__ */ o.jsx(
|
|
3300
3315
|
ur,
|
|
3301
3316
|
{
|
|
3302
|
-
size:
|
|
3303
|
-
error:
|
|
3304
|
-
disabled:
|
|
3305
|
-
loading:
|
|
3306
|
-
helper:
|
|
3307
|
-
prefix:
|
|
3317
|
+
size: p,
|
|
3318
|
+
error: c,
|
|
3319
|
+
disabled: g || y,
|
|
3320
|
+
loading: y,
|
|
3321
|
+
helper: b,
|
|
3322
|
+
prefix: w,
|
|
3308
3323
|
suffix: kt,
|
|
3309
3324
|
id: m,
|
|
3310
3325
|
showLabel: rt,
|
|
3311
|
-
onFocus:
|
|
3312
|
-
onBlur:
|
|
3326
|
+
onFocus: x,
|
|
3327
|
+
onBlur: L,
|
|
3313
3328
|
onSuffixClick: st,
|
|
3314
3329
|
onChange: r,
|
|
3315
3330
|
value: t,
|
|
3316
3331
|
placeholder: s,
|
|
3317
|
-
className:
|
|
3332
|
+
className: j,
|
|
3318
3333
|
wrapperStyles: it.wrapperStyles,
|
|
3319
3334
|
floatingLabelStyles: it.floatingLabelStyles,
|
|
3320
3335
|
prefixStyles: it.prefixStyles,
|
|
3321
3336
|
suffixStyles: it.suffixStyles,
|
|
3322
|
-
wrapperProps:
|
|
3323
|
-
labelProps:
|
|
3324
|
-
helperProps:
|
|
3337
|
+
wrapperProps: W,
|
|
3338
|
+
labelProps: T,
|
|
3339
|
+
helperProps: P,
|
|
3325
3340
|
showLimit: !1,
|
|
3326
3341
|
maxLength: i,
|
|
3327
3342
|
inputProps: yt,
|
|
3328
|
-
hint:
|
|
3329
|
-
showHint:
|
|
3330
|
-
showHintOnEmpty:
|
|
3331
|
-
truncate:
|
|
3343
|
+
hint: I,
|
|
3344
|
+
showHint: B,
|
|
3345
|
+
showHintOnEmpty: D,
|
|
3346
|
+
truncate: $,
|
|
3332
3347
|
...q
|
|
3333
3348
|
}
|
|
3334
3349
|
);
|
|
@@ -3351,7 +3366,7 @@ const Ge = Object.assign(Di, {
|
|
|
3351
3366
|
}, Ot = {
|
|
3352
3367
|
M: "48px",
|
|
3353
3368
|
L: "22px"
|
|
3354
|
-
},
|
|
3369
|
+
}, Lt = {
|
|
3355
3370
|
M: "12px 12px 12px 12px",
|
|
3356
3371
|
L: "16px 16px 16px 16px",
|
|
3357
3372
|
L_WITH_PREFIX: "12px 16px 12px 16px",
|
|
@@ -3392,23 +3407,23 @@ const Ge = Object.assign(Di, {
|
|
|
3392
3407
|
}
|
|
3393
3408
|
}, Qi = (t, r, n) => {
|
|
3394
3409
|
if (t === ht.M)
|
|
3395
|
-
return
|
|
3410
|
+
return Lt.M;
|
|
3396
3411
|
if (r)
|
|
3397
3412
|
switch (r) {
|
|
3398
3413
|
case $t.M:
|
|
3399
|
-
return
|
|
3414
|
+
return Lt.L_WITH_PREFIX;
|
|
3400
3415
|
case $t.L:
|
|
3401
|
-
return n ?
|
|
3416
|
+
return n ? Lt.L_FLOATING_LABEL : Lt.L;
|
|
3402
3417
|
case $t.XL:
|
|
3403
|
-
return
|
|
3418
|
+
return Lt.L;
|
|
3404
3419
|
default:
|
|
3405
|
-
return
|
|
3420
|
+
return Lt.L;
|
|
3406
3421
|
}
|
|
3407
3422
|
switch (t) {
|
|
3408
3423
|
case ht.L:
|
|
3409
|
-
return n ?
|
|
3424
|
+
return n ? Lt.L_FLOATING_LABEL : Lt.L;
|
|
3410
3425
|
default:
|
|
3411
|
-
return
|
|
3426
|
+
return Lt.L;
|
|
3412
3427
|
}
|
|
3413
3428
|
}, tl = (t, r) => {
|
|
3414
3429
|
if (t === ht.M)
|
|
@@ -3464,32 +3479,32 @@ const Ge = Object.assign(Di, {
|
|
|
3464
3479
|
minLength: i,
|
|
3465
3480
|
autoFocus: a,
|
|
3466
3481
|
size: l = ht.L,
|
|
3467
|
-
textareaProps:
|
|
3468
|
-
error:
|
|
3469
|
-
disabled:
|
|
3470
|
-
loading:
|
|
3471
|
-
helper:
|
|
3472
|
-
suffix:
|
|
3473
|
-
clearable:
|
|
3474
|
-
id:
|
|
3475
|
-
showLabel:
|
|
3476
|
-
onFocus:
|
|
3482
|
+
textareaProps: d,
|
|
3483
|
+
error: p,
|
|
3484
|
+
disabled: f,
|
|
3485
|
+
loading: c,
|
|
3486
|
+
helper: g,
|
|
3487
|
+
suffix: y,
|
|
3488
|
+
clearable: b = !1,
|
|
3489
|
+
id: w,
|
|
3490
|
+
showLabel: v = !0,
|
|
3491
|
+
onFocus: u,
|
|
3477
3492
|
onBlur: m,
|
|
3478
|
-
onClear:
|
|
3479
|
-
onKeyDown:
|
|
3480
|
-
className:
|
|
3481
|
-
rows:
|
|
3482
|
-
showLimit:
|
|
3483
|
-
wrapperProps:
|
|
3484
|
-
labelProps:
|
|
3485
|
-
helperProps:
|
|
3486
|
-
showGrip:
|
|
3487
|
-
minHeight:
|
|
3488
|
-
resize:
|
|
3489
|
-
|
|
3490
|
-
},
|
|
3491
|
-
const q = (t || "").length > 0, H =
|
|
3492
|
-
r == null || r(""),
|
|
3493
|
+
onClear: _,
|
|
3494
|
+
onKeyDown: x,
|
|
3495
|
+
className: L,
|
|
3496
|
+
rows: E = 1,
|
|
3497
|
+
showLimit: S = !1,
|
|
3498
|
+
wrapperProps: j,
|
|
3499
|
+
labelProps: $,
|
|
3500
|
+
helperProps: I,
|
|
3501
|
+
showGrip: B,
|
|
3502
|
+
minHeight: D,
|
|
3503
|
+
resize: W,
|
|
3504
|
+
...T
|
|
3505
|
+
}, P) => {
|
|
3506
|
+
const q = (t || "").length > 0, H = v && !!n && (l === ht.M || D !== 48), X = b && q && !(f || c), K = () => {
|
|
3507
|
+
r == null || r(""), _ == null || _();
|
|
3493
3508
|
}, ot = () => {
|
|
3494
3509
|
X && K();
|
|
3495
3510
|
}, rt = X ? /* @__PURE__ */ o.jsx(
|
|
@@ -3500,48 +3515,48 @@ const Ge = Object.assign(Di, {
|
|
|
3500
3515
|
style: { cursor: "pointer" },
|
|
3501
3516
|
"data-testid": "x-icon"
|
|
3502
3517
|
}
|
|
3503
|
-
) :
|
|
3504
|
-
rows:
|
|
3518
|
+
) : y, J = nl(l, D, H && q, W), at = tl(l, D), st = {
|
|
3519
|
+
rows: E,
|
|
3505
3520
|
minLength: i,
|
|
3506
3521
|
autoFocus: a,
|
|
3507
|
-
resize:
|
|
3508
|
-
...
|
|
3522
|
+
resize: W,
|
|
3523
|
+
...d
|
|
3509
3524
|
};
|
|
3510
3525
|
return /* @__PURE__ */ o.jsx(
|
|
3511
3526
|
ur,
|
|
3512
3527
|
{
|
|
3513
|
-
ref:
|
|
3528
|
+
ref: P,
|
|
3514
3529
|
component: "textarea",
|
|
3515
3530
|
size: at,
|
|
3516
|
-
error:
|
|
3517
|
-
disabled:
|
|
3518
|
-
loading:
|
|
3531
|
+
error: p,
|
|
3532
|
+
disabled: f || c,
|
|
3533
|
+
loading: c,
|
|
3519
3534
|
onSuffixClick: ot,
|
|
3520
|
-
helper:
|
|
3535
|
+
helper: g,
|
|
3521
3536
|
suffix: rt,
|
|
3522
|
-
id:
|
|
3537
|
+
id: w,
|
|
3523
3538
|
showLabel: H,
|
|
3524
|
-
onFocus:
|
|
3539
|
+
onFocus: u,
|
|
3525
3540
|
onBlur: m,
|
|
3526
|
-
onKeyDown:
|
|
3541
|
+
onKeyDown: x,
|
|
3527
3542
|
onChange: r,
|
|
3528
3543
|
value: t || "",
|
|
3529
3544
|
placeholder: n,
|
|
3530
|
-
className:
|
|
3545
|
+
className: L,
|
|
3531
3546
|
"data-floating-label": H,
|
|
3532
3547
|
wrapperStyles: J.wrapperStyles,
|
|
3533
3548
|
floatingLabelStyles: J.floatingLabelStyles,
|
|
3534
3549
|
suffixStyles: J.suffixStyles,
|
|
3535
3550
|
textareaStyles: J.textareaStyles,
|
|
3536
|
-
wrapperProps:
|
|
3537
|
-
labelProps:
|
|
3538
|
-
helperProps:
|
|
3539
|
-
showLimit:
|
|
3551
|
+
wrapperProps: j,
|
|
3552
|
+
labelProps: $,
|
|
3553
|
+
helperProps: I,
|
|
3554
|
+
showLimit: S && (D === 112 || l === ht.M),
|
|
3540
3555
|
maxLength: s,
|
|
3541
3556
|
inputProps: st,
|
|
3542
|
-
resize:
|
|
3543
|
-
showGrip:
|
|
3544
|
-
|
|
3557
|
+
resize: W,
|
|
3558
|
+
showGrip: B,
|
|
3559
|
+
...T
|
|
3545
3560
|
}
|
|
3546
3561
|
);
|
|
3547
3562
|
}
|
|
@@ -3557,23 +3572,23 @@ const Ge = Object.assign(Di, {
|
|
|
3557
3572
|
disabled: i = !1,
|
|
3558
3573
|
"data-testid": a,
|
|
3559
3574
|
"aria-label": l,
|
|
3560
|
-
"aria-describedby":
|
|
3575
|
+
"aria-describedby": d
|
|
3561
3576
|
}) => {
|
|
3562
|
-
const
|
|
3577
|
+
const p = !!r, f = k(
|
|
3563
3578
|
fe.helper,
|
|
3564
|
-
|
|
3579
|
+
p && fe["helper--error"],
|
|
3565
3580
|
i && fe["helper--disabled"],
|
|
3566
3581
|
n
|
|
3567
|
-
),
|
|
3582
|
+
), c = i ? t : r || t;
|
|
3568
3583
|
return /* @__PURE__ */ o.jsx(
|
|
3569
3584
|
"div",
|
|
3570
3585
|
{
|
|
3571
|
-
className:
|
|
3586
|
+
className: f,
|
|
3572
3587
|
style: s,
|
|
3573
3588
|
"data-testid": a,
|
|
3574
3589
|
"aria-label": l,
|
|
3575
|
-
"aria-describedby":
|
|
3576
|
-
children: /* @__PURE__ */ o.jsx("p", { children:
|
|
3590
|
+
"aria-describedby": d,
|
|
3591
|
+
children: /* @__PURE__ */ o.jsx("p", { children: c })
|
|
3577
3592
|
}
|
|
3578
3593
|
);
|
|
3579
3594
|
}, al = "_radio_1n8zx_59", sl = "_checked_1n8zx_80", il = "_error_1n8zx_85", ll = "_disabled_1n8zx_94", cl = "_icon_1n8zx_130", dl = "_small_1n8zx_138", ul = "_medium_1n8zx_145", _l = "_large_1n8zx_152", pl = "_label_1n8zx_159", fl = "_container_1n8zx_185", gl = "_input_1n8zx_198", hl = "_card_1n8zx_205", ml = "_smallCard_1n8zx_211", bl = "_mediumCard_1n8zx_215", xl = "_largeCard_1n8zx_219", ft = {
|
|
@@ -3601,92 +3616,92 @@ const Ge = Object.assign(Di, {
|
|
|
3601
3616
|
value: i,
|
|
3602
3617
|
size: a = "large",
|
|
3603
3618
|
loading: l = !1,
|
|
3604
|
-
error:
|
|
3605
|
-
disabled:
|
|
3606
|
-
checked:
|
|
3607
|
-
containerClassName:
|
|
3608
|
-
className:
|
|
3609
|
-
children:
|
|
3610
|
-
clickable:
|
|
3611
|
-
mode:
|
|
3612
|
-
tabIndex:
|
|
3613
|
-
style:
|
|
3619
|
+
error: d,
|
|
3620
|
+
disabled: p = !1,
|
|
3621
|
+
checked: f = !1,
|
|
3622
|
+
containerClassName: c,
|
|
3623
|
+
className: g,
|
|
3624
|
+
children: y,
|
|
3625
|
+
clickable: b = "all",
|
|
3626
|
+
mode: w = "default",
|
|
3627
|
+
tabIndex: v,
|
|
3628
|
+
style: u,
|
|
3614
3629
|
containerStyle: m,
|
|
3615
|
-
onChange:
|
|
3616
|
-
"data-testid":
|
|
3617
|
-
...
|
|
3618
|
-
} = t,
|
|
3619
|
-
|
|
3620
|
-
},
|
|
3621
|
-
H.key === "Enter" && !
|
|
3622
|
-
},
|
|
3630
|
+
onChange: _,
|
|
3631
|
+
"data-testid": x,
|
|
3632
|
+
...L
|
|
3633
|
+
} = t, E = !!d, S = p || l, j = b === "all", $ = w === "card", I = ft[`${a}Card`], B = s ?? n, D = (H) => {
|
|
3634
|
+
S || _ == null || _(i, H);
|
|
3635
|
+
}, W = (H) => {
|
|
3636
|
+
H.key === "Enter" && !S && (H.preventDefault(), _ == null || _(i));
|
|
3637
|
+
}, T = (H) => H.stopPropagation(), P = () => /* @__PURE__ */ o.jsxs(
|
|
3623
3638
|
"div",
|
|
3624
3639
|
{
|
|
3625
|
-
className:
|
|
3640
|
+
className: k(
|
|
3626
3641
|
ft.radio,
|
|
3627
3642
|
ft[a],
|
|
3628
3643
|
{
|
|
3629
|
-
[ft.checked]:
|
|
3630
|
-
[ft.disabled]:
|
|
3631
|
-
[ft.error]:
|
|
3644
|
+
[ft.checked]: f,
|
|
3645
|
+
[ft.disabled]: S,
|
|
3646
|
+
[ft.error]: E && !S
|
|
3632
3647
|
},
|
|
3633
|
-
|
|
3648
|
+
g
|
|
3634
3649
|
),
|
|
3635
|
-
style:
|
|
3636
|
-
tabIndex:
|
|
3637
|
-
"data-testid": `${yl}${
|
|
3650
|
+
style: u,
|
|
3651
|
+
tabIndex: v || 1,
|
|
3652
|
+
"data-testid": `${yl}${B}`,
|
|
3638
3653
|
children: [
|
|
3639
3654
|
/* @__PURE__ */ o.jsx(
|
|
3640
3655
|
"input",
|
|
3641
3656
|
{
|
|
3642
|
-
"aria-errormessage":
|
|
3643
|
-
"aria-invalid":
|
|
3644
|
-
checked:
|
|
3657
|
+
"aria-errormessage": d,
|
|
3658
|
+
"aria-invalid": E,
|
|
3659
|
+
checked: f,
|
|
3645
3660
|
className: ft.input,
|
|
3646
|
-
"data-testid": `radio-${
|
|
3647
|
-
disabled:
|
|
3648
|
-
id:
|
|
3661
|
+
"data-testid": `radio-${B}`,
|
|
3662
|
+
disabled: S,
|
|
3663
|
+
id: B,
|
|
3649
3664
|
name: n,
|
|
3650
3665
|
ref: r,
|
|
3651
3666
|
type: "radio",
|
|
3652
3667
|
value: i,
|
|
3653
|
-
onChange:
|
|
3654
|
-
onClick:
|
|
3668
|
+
onChange: D,
|
|
3669
|
+
onClick: T
|
|
3655
3670
|
}
|
|
3656
3671
|
),
|
|
3657
|
-
/* @__PURE__ */ o.jsx("svg", { "data-testid": `radio-icon-${
|
|
3672
|
+
/* @__PURE__ */ o.jsx("svg", { "data-testid": `radio-icon-${B}`, viewBox: "0 0 8 8", className: ft.icon, children: /* @__PURE__ */ o.jsx("circle", { cx: 4, cy: 4, fill: "current", r: 4 }) })
|
|
3658
3673
|
]
|
|
3659
3674
|
}
|
|
3660
3675
|
), q = () => /* @__PURE__ */ o.jsxs(
|
|
3661
3676
|
"label",
|
|
3662
3677
|
{
|
|
3663
|
-
"aria-checked":
|
|
3664
|
-
"aria-disabled":
|
|
3665
|
-
"data-testid":
|
|
3666
|
-
htmlFor:
|
|
3678
|
+
"aria-checked": f,
|
|
3679
|
+
"aria-disabled": S,
|
|
3680
|
+
"data-testid": j ? x : vl,
|
|
3681
|
+
htmlFor: B,
|
|
3667
3682
|
style: m,
|
|
3668
|
-
className:
|
|
3669
|
-
[
|
|
3670
|
-
[
|
|
3683
|
+
className: k(ft.label, {
|
|
3684
|
+
[k(ft.container, ft[w], c)]: j,
|
|
3685
|
+
[I]: j && $
|
|
3671
3686
|
}),
|
|
3672
|
-
onKeyDown:
|
|
3673
|
-
...
|
|
3687
|
+
onKeyDown: W,
|
|
3688
|
+
...L,
|
|
3674
3689
|
children: [
|
|
3675
|
-
|
|
3676
|
-
|
|
3690
|
+
P(),
|
|
3691
|
+
j && y
|
|
3677
3692
|
]
|
|
3678
3693
|
}
|
|
3679
3694
|
);
|
|
3680
|
-
return
|
|
3695
|
+
return j ? q() : /* @__PURE__ */ o.jsxs(
|
|
3681
3696
|
"div",
|
|
3682
3697
|
{
|
|
3683
|
-
className:
|
|
3684
|
-
[
|
|
3698
|
+
className: k(ft.container, ft[w], c, {
|
|
3699
|
+
[I]: $
|
|
3685
3700
|
}),
|
|
3686
|
-
"data-testid":
|
|
3701
|
+
"data-testid": x,
|
|
3687
3702
|
children: [
|
|
3688
3703
|
q(),
|
|
3689
|
-
|
|
3704
|
+
y
|
|
3690
3705
|
]
|
|
3691
3706
|
}
|
|
3692
3707
|
);
|
|
@@ -3703,35 +3718,35 @@ const Ge = Object.assign(Di, {
|
|
|
3703
3718
|
value: i,
|
|
3704
3719
|
options: a,
|
|
3705
3720
|
className: l,
|
|
3706
|
-
radioClassName:
|
|
3707
|
-
disabled:
|
|
3708
|
-
layout:
|
|
3709
|
-
"data-testid":
|
|
3710
|
-
...
|
|
3721
|
+
radioClassName: d,
|
|
3722
|
+
disabled: p = !1,
|
|
3723
|
+
layout: f = "vertical",
|
|
3724
|
+
"data-testid": c,
|
|
3725
|
+
...g
|
|
3711
3726
|
} = t;
|
|
3712
3727
|
return /* @__PURE__ */ o.jsx(
|
|
3713
3728
|
"div",
|
|
3714
3729
|
{
|
|
3715
|
-
className: Nt(Ke.group, Ke[
|
|
3716
|
-
"data-testid":
|
|
3730
|
+
className: Nt(Ke.group, Ke[f], l),
|
|
3731
|
+
"data-testid": c ?? `radio-group-${s}`,
|
|
3717
3732
|
id: n,
|
|
3718
3733
|
ref: r,
|
|
3719
|
-
children: a.map(({ label:
|
|
3720
|
-
const
|
|
3734
|
+
children: a.map(({ label: y, value: b, disabled: w }) => {
|
|
3735
|
+
const v = `${s}-${String(b)}`, u = String(b) === String(i);
|
|
3721
3736
|
return /* @__PURE__ */ o.jsx(
|
|
3722
3737
|
_r,
|
|
3723
3738
|
{
|
|
3724
|
-
id:
|
|
3725
|
-
checked:
|
|
3726
|
-
"data-testid":
|
|
3727
|
-
disabled:
|
|
3739
|
+
id: v,
|
|
3740
|
+
checked: u,
|
|
3741
|
+
"data-testid": v,
|
|
3742
|
+
disabled: p || w,
|
|
3728
3743
|
name: s,
|
|
3729
|
-
value:
|
|
3730
|
-
className:
|
|
3731
|
-
...
|
|
3732
|
-
children:
|
|
3744
|
+
value: b,
|
|
3745
|
+
className: d,
|
|
3746
|
+
...g,
|
|
3747
|
+
children: y
|
|
3733
3748
|
},
|
|
3734
|
-
|
|
3749
|
+
v
|
|
3735
3750
|
);
|
|
3736
3751
|
})
|
|
3737
3752
|
}
|
|
@@ -3739,9 +3754,9 @@ const Ge = Object.assign(Di, {
|
|
|
3739
3754
|
}
|
|
3740
3755
|
), Ic = Object.assign(_r, {
|
|
3741
3756
|
Group: Sl
|
|
3742
|
-
}),
|
|
3743
|
-
root:
|
|
3744
|
-
unordered:
|
|
3757
|
+
}), Ll = "_root_1jj3e_25", jl = "_unordered_1jj3e_39", $l = "_ordered_1jj3e_43", Tl = "_sm_1jj3e_48", El = "_md_1jj3e_59", Rl = "_lg_1jj3e_70", Il = "_xl_1jj3e_81", ge = {
|
|
3758
|
+
root: Ll,
|
|
3759
|
+
unordered: jl,
|
|
3745
3760
|
ordered: $l,
|
|
3746
3761
|
sm: Tl,
|
|
3747
3762
|
md: El,
|
|
@@ -3758,15 +3773,15 @@ const Ge = Object.assign(Di, {
|
|
|
3758
3773
|
children: i,
|
|
3759
3774
|
size: a = "md",
|
|
3760
3775
|
"data-testid": l = "list",
|
|
3761
|
-
...
|
|
3762
|
-
} = t,
|
|
3776
|
+
...d
|
|
3777
|
+
} = t, p = n === "ordered" ? "ol" : "ul";
|
|
3763
3778
|
return /* @__PURE__ */ o.jsx(
|
|
3764
|
-
|
|
3779
|
+
p,
|
|
3765
3780
|
{
|
|
3766
3781
|
"data-testid": l,
|
|
3767
3782
|
ref: r,
|
|
3768
3783
|
className: Nt(ge.root, ge[n], ge[a], s),
|
|
3769
|
-
...n === "ordered" &&
|
|
3784
|
+
...n === "ordered" && d,
|
|
3770
3785
|
children: i
|
|
3771
3786
|
}
|
|
3772
3787
|
);
|
|
@@ -3791,14 +3806,14 @@ const Ge = Object.assign(Di, {
|
|
|
3791
3806
|
className: n,
|
|
3792
3807
|
size: s
|
|
3793
3808
|
}) => {
|
|
3794
|
-
const i = Dt(null), [a, l] = ut(!1), [
|
|
3809
|
+
const i = Dt(null), [a, l] = ut(!1), [d, p] = ut(!1), { ref: f, bgColor: c } = ve(), g = f ?? { current: null }, y = c ?? Xl, b = r && a, w = r && d, v = ({ direction: _ }) => /* @__PURE__ */ o.jsx(
|
|
3795
3810
|
"svg",
|
|
3796
3811
|
{
|
|
3797
3812
|
height: "12px",
|
|
3798
3813
|
width: "12px",
|
|
3799
3814
|
viewBox: "0 0 185.343 185.343",
|
|
3800
3815
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3801
|
-
children: /* @__PURE__ */ o.jsx("g", { transform:
|
|
3816
|
+
children: /* @__PURE__ */ o.jsx("g", { transform: _ === "left" ? "scale(-1,1) translate(-185.343,0)" : void 0, children: /* @__PURE__ */ o.jsx(
|
|
3802
3817
|
"path",
|
|
3803
3818
|
{
|
|
3804
3819
|
fill: "currentColor",
|
|
@@ -3806,71 +3821,71 @@ const Ge = Object.assign(Di, {
|
|
|
3806
3821
|
}
|
|
3807
3822
|
) })
|
|
3808
3823
|
}
|
|
3809
|
-
),
|
|
3810
|
-
const
|
|
3811
|
-
if (!
|
|
3812
|
-
const
|
|
3813
|
-
l(
|
|
3814
|
-
}, m = (
|
|
3815
|
-
const
|
|
3816
|
-
if (!
|
|
3817
|
-
const
|
|
3818
|
-
|
|
3824
|
+
), u = () => {
|
|
3825
|
+
const _ = i.current;
|
|
3826
|
+
if (!_) return;
|
|
3827
|
+
const x = Math.round(_.scrollLeft), L = Math.round(_.scrollLeft + _.clientWidth), E = Math.round(_.scrollWidth);
|
|
3828
|
+
l(x > 0), p(L < E);
|
|
3829
|
+
}, m = (_) => {
|
|
3830
|
+
const x = i.current;
|
|
3831
|
+
if (!x) return;
|
|
3832
|
+
const L = x.clientWidth;
|
|
3833
|
+
x.scrollBy({ left: _ === "left" ? -L : L, behavior: "smooth" });
|
|
3819
3834
|
};
|
|
3820
3835
|
return _t(() => {
|
|
3821
|
-
const
|
|
3822
|
-
if (!
|
|
3823
|
-
const
|
|
3824
|
-
Math.abs(
|
|
3836
|
+
const _ = i.current;
|
|
3837
|
+
if (!_) return;
|
|
3838
|
+
const x = (L) => {
|
|
3839
|
+
Math.abs(L.deltaX) > Math.abs(L.deltaY) || _.scrollWidth > _.clientWidth && (L.preventDefault(), _.scrollBy({ left: L.deltaY, behavior: "auto" }));
|
|
3825
3840
|
};
|
|
3826
|
-
return
|
|
3841
|
+
return _.addEventListener("wheel", x, { passive: !1 }), () => _.removeEventListener("wheel", x);
|
|
3827
3842
|
}, []), _t(() => {
|
|
3828
|
-
|
|
3829
|
-
const
|
|
3830
|
-
if (
|
|
3831
|
-
return
|
|
3832
|
-
|
|
3843
|
+
u();
|
|
3844
|
+
const _ = i.current;
|
|
3845
|
+
if (_)
|
|
3846
|
+
return _.addEventListener("scroll", u, { passive: !0 }), window.addEventListener("resize", u), () => {
|
|
3847
|
+
_.removeEventListener("scroll", u), window.removeEventListener("resize", u);
|
|
3833
3848
|
};
|
|
3834
|
-
}, []), /* @__PURE__ */ o.jsxs("div", { ref:
|
|
3835
|
-
|
|
3849
|
+
}, []), /* @__PURE__ */ o.jsxs("div", { ref: g, className: k(ct.wrapper, n), children: [
|
|
3850
|
+
b && /* @__PURE__ */ o.jsx(
|
|
3836
3851
|
"div",
|
|
3837
3852
|
{
|
|
3838
|
-
className:
|
|
3853
|
+
className: k(ct.mask, ct.maskLeft, a && ct.visible),
|
|
3839
3854
|
style: {
|
|
3840
|
-
background: `linear-gradient(to right, ${
|
|
3855
|
+
background: `linear-gradient(to right, ${y} 17%, transparent 80%)`
|
|
3841
3856
|
}
|
|
3842
3857
|
}
|
|
3843
3858
|
),
|
|
3844
|
-
|
|
3859
|
+
w && /* @__PURE__ */ o.jsx(
|
|
3845
3860
|
"div",
|
|
3846
3861
|
{
|
|
3847
|
-
className:
|
|
3862
|
+
className: k(ct.mask, ct.maskRight, d && ct.visible),
|
|
3848
3863
|
style: {
|
|
3849
|
-
background: `linear-gradient(to left, ${
|
|
3864
|
+
background: `linear-gradient(to left, ${y} 17%, transparent 80%)`
|
|
3850
3865
|
}
|
|
3851
3866
|
}
|
|
3852
3867
|
),
|
|
3853
3868
|
/* @__PURE__ */ o.jsx("div", { ref: i, className: ct.viewport, children: t }),
|
|
3854
|
-
|
|
3869
|
+
b && /* @__PURE__ */ o.jsx(
|
|
3855
3870
|
"button",
|
|
3856
3871
|
{
|
|
3857
3872
|
type: "button",
|
|
3858
3873
|
tabIndex: -1,
|
|
3859
3874
|
"aria-hidden": "true",
|
|
3860
|
-
className:
|
|
3875
|
+
className: k(ct.control, ct.left, ct[s]),
|
|
3861
3876
|
onClick: () => m("left"),
|
|
3862
|
-
children: /* @__PURE__ */ o.jsx(
|
|
3877
|
+
children: /* @__PURE__ */ o.jsx(v, { direction: "left" })
|
|
3863
3878
|
}
|
|
3864
3879
|
),
|
|
3865
|
-
|
|
3880
|
+
w && /* @__PURE__ */ o.jsx(
|
|
3866
3881
|
"button",
|
|
3867
3882
|
{
|
|
3868
3883
|
type: "button",
|
|
3869
3884
|
tabIndex: -1,
|
|
3870
3885
|
"aria-hidden": "true",
|
|
3871
|
-
className:
|
|
3886
|
+
className: k(ct.control, ct.right, ct[s]),
|
|
3872
3887
|
onClick: () => m("right"),
|
|
3873
|
-
children: /* @__PURE__ */ o.jsx(
|
|
3888
|
+
children: /* @__PURE__ */ o.jsx(v, { direction: "right" })
|
|
3874
3889
|
}
|
|
3875
3890
|
)
|
|
3876
3891
|
] });
|
|
@@ -3897,10 +3912,10 @@ const Ge = Object.assign(Di, {
|
|
|
3897
3912
|
activeTab: n,
|
|
3898
3913
|
onChange: s
|
|
3899
3914
|
}) => {
|
|
3900
|
-
const [i, a] = ut(r), l = n !== void 0,
|
|
3901
|
-
l || a(
|
|
3915
|
+
const [i, a] = ut(r), l = n !== void 0, d = l ? n : i, p = (f) => {
|
|
3916
|
+
l || a(f), s && s(f);
|
|
3902
3917
|
};
|
|
3903
|
-
return /* @__PURE__ */ o.jsx(pr.Provider, { value: { activeTab:
|
|
3918
|
+
return /* @__PURE__ */ o.jsx(pr.Provider, { value: { activeTab: d, setTab: p }, children: t });
|
|
3904
3919
|
}, u1 = ({
|
|
3905
3920
|
mode: t,
|
|
3906
3921
|
item: r,
|
|
@@ -3909,82 +3924,82 @@ const Ge = Object.assign(Di, {
|
|
|
3909
3924
|
badgeProps: i,
|
|
3910
3925
|
size: a,
|
|
3911
3926
|
isDisabled: l,
|
|
3912
|
-
onSelectTab:
|
|
3927
|
+
onSelectTab: d
|
|
3913
3928
|
}) => {
|
|
3914
3929
|
const {
|
|
3915
|
-
value:
|
|
3916
|
-
label:
|
|
3917
|
-
prefix:
|
|
3918
|
-
prefixWrapperProps:
|
|
3919
|
-
postfix:
|
|
3920
|
-
postfixWrapperProps:
|
|
3921
|
-
} = r, { className:
|
|
3930
|
+
value: p,
|
|
3931
|
+
label: f,
|
|
3932
|
+
prefix: c,
|
|
3933
|
+
prefixWrapperProps: g = {},
|
|
3934
|
+
postfix: y,
|
|
3935
|
+
postfixWrapperProps: b = {}
|
|
3936
|
+
} = r, { className: w, ...v } = g, { className: u, ...m } = b, _ = {
|
|
3922
3937
|
primary: U["typography-label-3-medium"],
|
|
3923
3938
|
secondary: U["typography-label-3-regular"],
|
|
3924
3939
|
prefix: U["typography-label-3-medium"],
|
|
3925
3940
|
postfix: U["typography-label-3-medium"]
|
|
3926
|
-
},
|
|
3941
|
+
}, x = {
|
|
3927
3942
|
size: l1,
|
|
3928
3943
|
position: c1,
|
|
3929
3944
|
...i
|
|
3930
|
-
},
|
|
3945
|
+
}, L = k(et.tab, et[t], et[a], {
|
|
3931
3946
|
[et.selected]: n,
|
|
3932
3947
|
[et.disabled]: l
|
|
3933
|
-
}),
|
|
3948
|
+
}), E = k(
|
|
3934
3949
|
et.tabPrefix,
|
|
3935
|
-
|
|
3950
|
+
w,
|
|
3936
3951
|
et[t],
|
|
3937
|
-
|
|
3952
|
+
_.prefix,
|
|
3938
3953
|
{
|
|
3939
3954
|
[et.selected]: n,
|
|
3940
3955
|
[et.disabled]: l
|
|
3941
3956
|
}
|
|
3942
|
-
),
|
|
3957
|
+
), S = k(
|
|
3943
3958
|
et.tabPostfix,
|
|
3944
|
-
|
|
3959
|
+
u,
|
|
3945
3960
|
et[t],
|
|
3946
|
-
|
|
3961
|
+
_.postfix,
|
|
3947
3962
|
{
|
|
3948
3963
|
[et.selected]: n,
|
|
3949
3964
|
[et.disabled]: l
|
|
3950
3965
|
}
|
|
3951
|
-
),
|
|
3952
|
-
n || l || (
|
|
3953
|
-
},
|
|
3966
|
+
), j = k(et.tabLabel, et[t], _[t]), $ = (B) => {
|
|
3967
|
+
n || l || (d(p), B.currentTarget.scrollIntoView({ behavior: "smooth", inline: "center", block: "nearest" }));
|
|
3968
|
+
}, I = /* @__PURE__ */ o.jsxs(
|
|
3954
3969
|
"button",
|
|
3955
3970
|
{
|
|
3956
|
-
className:
|
|
3971
|
+
className: L,
|
|
3957
3972
|
role: "tab",
|
|
3958
|
-
"aria-label":
|
|
3973
|
+
"aria-label": f,
|
|
3959
3974
|
"aria-selected": n,
|
|
3960
3975
|
"aria-disabled": l,
|
|
3961
|
-
"aria-controls": `tab-panel-${
|
|
3962
|
-
"data-testid": `tab-item-${
|
|
3963
|
-
onClick:
|
|
3976
|
+
"aria-controls": `tab-panel-${p}`,
|
|
3977
|
+
"data-testid": `tab-item-${p}`,
|
|
3978
|
+
onClick: $,
|
|
3964
3979
|
children: [
|
|
3965
|
-
|
|
3980
|
+
c && /* @__PURE__ */ o.jsx(
|
|
3966
3981
|
"span",
|
|
3967
3982
|
{
|
|
3968
|
-
className:
|
|
3969
|
-
...
|
|
3970
|
-
"data-testid": `tab-prefix-${
|
|
3971
|
-
children:
|
|
3983
|
+
className: E,
|
|
3984
|
+
...v,
|
|
3985
|
+
"data-testid": `tab-prefix-${p}`,
|
|
3986
|
+
children: c
|
|
3972
3987
|
}
|
|
3973
3988
|
),
|
|
3974
|
-
/* @__PURE__ */ o.jsx("span", { className:
|
|
3975
|
-
|
|
3989
|
+
/* @__PURE__ */ o.jsx("span", { className: j, "data-testid": `tab-label-${p}`, children: f }),
|
|
3990
|
+
y && /* @__PURE__ */ o.jsx(
|
|
3976
3991
|
"span",
|
|
3977
3992
|
{
|
|
3978
|
-
className:
|
|
3993
|
+
className: S,
|
|
3979
3994
|
...m,
|
|
3980
|
-
"data-testid": `tab-postfix-${
|
|
3981
|
-
children:
|
|
3995
|
+
"data-testid": `tab-postfix-${p}`,
|
|
3996
|
+
children: y
|
|
3982
3997
|
}
|
|
3983
3998
|
)
|
|
3984
3999
|
]
|
|
3985
4000
|
}
|
|
3986
4001
|
);
|
|
3987
|
-
return s ? /* @__PURE__ */ o.jsx(Oa, { ...
|
|
4002
|
+
return s ? /* @__PURE__ */ o.jsx(Oa, { ...x, "data-testid": `tab-badge-${p}`, children: I }) : I;
|
|
3988
4003
|
}, _1 = ({
|
|
3989
4004
|
mode: t,
|
|
3990
4005
|
items: r,
|
|
@@ -3998,20 +4013,20 @@ const Ge = Object.assign(Di, {
|
|
|
3998
4013
|
role: "tablist",
|
|
3999
4014
|
"data-testid": "tabs-bar",
|
|
4000
4015
|
"aria-orientation": "horizontal",
|
|
4001
|
-
className:
|
|
4002
|
-
children: r.map((
|
|
4016
|
+
className: k(et.tabBar, et[t]),
|
|
4017
|
+
children: r.map((d) => /* @__PURE__ */ o.jsx(
|
|
4003
4018
|
u1,
|
|
4004
4019
|
{
|
|
4005
4020
|
size: n,
|
|
4006
|
-
item:
|
|
4021
|
+
item: d,
|
|
4007
4022
|
mode: t,
|
|
4008
|
-
showBadge:
|
|
4009
|
-
badgeProps:
|
|
4010
|
-
isActive: i ===
|
|
4011
|
-
isDisabled: s ||
|
|
4023
|
+
showBadge: d.showBadge,
|
|
4024
|
+
badgeProps: d.badgeProps,
|
|
4025
|
+
isActive: i === d.value,
|
|
4026
|
+
isDisabled: s || d.isDisabled,
|
|
4012
4027
|
onSelectTab: a
|
|
4013
4028
|
},
|
|
4014
|
-
|
|
4029
|
+
d.value
|
|
4015
4030
|
))
|
|
4016
4031
|
}
|
|
4017
4032
|
) });
|
|
@@ -4032,7 +4047,7 @@ const Ge = Object.assign(Di, {
|
|
|
4032
4047
|
Content: f1,
|
|
4033
4048
|
Panel: p1,
|
|
4034
4049
|
Bar: _1
|
|
4035
|
-
}, g1 = "_root_1fbbw_34", h1 = "_open_1fbbw_51", m1 = "_xs_1fbbw_55", b1 = "_s_1fbbw_61", x1 = "_m_1fbbw_67", y1 = "_neutral_1fbbw_73", v1 = "_contrast_1fbbw_78", w1 = "_accent_1fbbw_84", C1 = "_typography_1fbbw_89", k1 = "_title_1fbbw_89", S1 = "_text_1fbbw_93",
|
|
4050
|
+
}, g1 = "_root_1fbbw_34", h1 = "_open_1fbbw_51", m1 = "_xs_1fbbw_55", b1 = "_s_1fbbw_61", x1 = "_m_1fbbw_67", y1 = "_neutral_1fbbw_73", v1 = "_contrast_1fbbw_78", w1 = "_accent_1fbbw_84", C1 = "_typography_1fbbw_89", k1 = "_title_1fbbw_89", S1 = "_text_1fbbw_93", L1 = "_mediaWrapper_1fbbw_97", j1 = "_content_1fbbw_112", $1 = "_closeButton_1fbbw_116", T1 = "_hasMedia_1fbbw_142", E1 = "_buttonStack_1fbbw_148", dt = {
|
|
4036
4051
|
root: g1,
|
|
4037
4052
|
open: h1,
|
|
4038
4053
|
xs: m1,
|
|
@@ -4044,8 +4059,8 @@ const Ge = Object.assign(Di, {
|
|
|
4044
4059
|
typography: C1,
|
|
4045
4060
|
title: k1,
|
|
4046
4061
|
text: S1,
|
|
4047
|
-
mediaWrapper:
|
|
4048
|
-
content:
|
|
4062
|
+
mediaWrapper: L1,
|
|
4063
|
+
content: j1,
|
|
4049
4064
|
closeButton: $1,
|
|
4050
4065
|
hasMedia: T1,
|
|
4051
4066
|
buttonStack: E1
|
|
@@ -4230,40 +4245,40 @@ const Ge = Object.assign(Di, {
|
|
|
4230
4245
|
size: i,
|
|
4231
4246
|
classNames: a = {},
|
|
4232
4247
|
onClose: l,
|
|
4233
|
-
buttons:
|
|
4234
|
-
buttonProps:
|
|
4235
|
-
showClose:
|
|
4248
|
+
buttons: d,
|
|
4249
|
+
buttonProps: p,
|
|
4250
|
+
showClose: f
|
|
4236
4251
|
}) => {
|
|
4237
|
-
const
|
|
4252
|
+
const c = ["neutral", "accent"].includes(s) ? "contrast" : "primary", g = i === "m", y = !!(r && g), b = !!(n && g), w = d && !!d.length, v = !!(f && g) || !f && g && !w, u = i === "xs" ? 4 : 3;
|
|
4238
4253
|
return /* @__PURE__ */ o.jsxs("div", { className: dt.content, children: [
|
|
4239
|
-
|
|
4254
|
+
b && /* @__PURE__ */ o.jsx("div", { className: k(dt.mediaWrapper, a.mediaWrapper), children: n }),
|
|
4240
4255
|
/* @__PURE__ */ o.jsxs("div", { className: a.textWrapper, children: [
|
|
4241
|
-
|
|
4256
|
+
y && /* @__PURE__ */ o.jsx(
|
|
4242
4257
|
me.Subtitle,
|
|
4243
4258
|
{
|
|
4244
|
-
className:
|
|
4259
|
+
className: k(dt.typography, dt.title, a.typography),
|
|
4245
4260
|
size: 1,
|
|
4246
4261
|
as: "h3",
|
|
4247
|
-
typographyStyle:
|
|
4262
|
+
typographyStyle: c,
|
|
4248
4263
|
children: r
|
|
4249
4264
|
}
|
|
4250
4265
|
),
|
|
4251
4266
|
/* @__PURE__ */ o.jsx(
|
|
4252
4267
|
me.Label,
|
|
4253
4268
|
{
|
|
4254
|
-
className:
|
|
4255
|
-
typographyStyle:
|
|
4256
|
-
size:
|
|
4269
|
+
className: k(dt.typography, dt.text, a.typography),
|
|
4270
|
+
typographyStyle: c,
|
|
4271
|
+
size: u,
|
|
4257
4272
|
children: t
|
|
4258
4273
|
}
|
|
4259
4274
|
)
|
|
4260
4275
|
] }),
|
|
4261
|
-
|
|
4276
|
+
v && /* @__PURE__ */ o.jsx(
|
|
4262
4277
|
"button",
|
|
4263
4278
|
{
|
|
4264
4279
|
type: "button",
|
|
4265
|
-
className:
|
|
4266
|
-
[dt.hasMedia]:
|
|
4280
|
+
className: k(dt.closeButton, dt[s], a.closeButton, {
|
|
4281
|
+
[dt.hasMedia]: b
|
|
4267
4282
|
}),
|
|
4268
4283
|
onClick: l,
|
|
4269
4284
|
"aria-label": "Закрыть подсказку",
|
|
@@ -4271,12 +4286,12 @@ const Ge = Object.assign(Di, {
|
|
|
4271
4286
|
children: /* @__PURE__ */ o.jsx(R1, {})
|
|
4272
4287
|
}
|
|
4273
4288
|
),
|
|
4274
|
-
|
|
4275
|
-
const
|
|
4276
|
-
var
|
|
4277
|
-
(
|
|
4289
|
+
g && w && /* @__PURE__ */ o.jsx("div", { className: dt.buttonStack, children: d.map((m, _) => {
|
|
4290
|
+
const x = P1(_, d.length, s), L = B1(m, x, p), { closeOnClick: E, ...S } = L, j = ($) => {
|
|
4291
|
+
var I;
|
|
4292
|
+
(I = S.onClick) == null || I.call(S, $), E && (l == null || l());
|
|
4278
4293
|
};
|
|
4279
|
-
return /* @__PURE__ */ o.jsx(he, { ...
|
|
4294
|
+
return /* @__PURE__ */ o.jsx(he, { ...S, onClick: j }, _);
|
|
4280
4295
|
}) })
|
|
4281
4296
|
] });
|
|
4282
4297
|
}, Ac = ({
|
|
@@ -4287,69 +4302,69 @@ const Ge = Object.assign(Di, {
|
|
|
4287
4302
|
mouseEnterDelay: i = 0,
|
|
4288
4303
|
mouseLeaveDelay: a = 0.1,
|
|
4289
4304
|
showArrow: l = !0,
|
|
4290
|
-
showClose:
|
|
4291
|
-
trigger:
|
|
4292
|
-
variant:
|
|
4293
|
-
size:
|
|
4294
|
-
text:
|
|
4295
|
-
title:
|
|
4296
|
-
media:
|
|
4297
|
-
buttons:
|
|
4298
|
-
buttonProps:
|
|
4299
|
-
onClose:
|
|
4305
|
+
showClose: d = !0,
|
|
4306
|
+
trigger: p = "hover",
|
|
4307
|
+
variant: f = "neutral",
|
|
4308
|
+
size: c = "s",
|
|
4309
|
+
text: g,
|
|
4310
|
+
title: y,
|
|
4311
|
+
media: b,
|
|
4312
|
+
buttons: w,
|
|
4313
|
+
buttonProps: v,
|
|
4314
|
+
onClose: u,
|
|
4300
4315
|
...m
|
|
4301
4316
|
}) => {
|
|
4302
|
-
const [
|
|
4303
|
-
|
|
4304
|
-
},
|
|
4317
|
+
const [_, x] = ut(!1), [L, E] = ut(!1), S = c === "m" ? N1 : M1, j = () => {
|
|
4318
|
+
x(!1), u == null || u();
|
|
4319
|
+
}, $ = t || (c === "m" ? /* @__PURE__ */ o.jsx(
|
|
4305
4320
|
Je,
|
|
4306
4321
|
{
|
|
4307
4322
|
classNames: s,
|
|
4308
|
-
text:
|
|
4309
|
-
variant:
|
|
4310
|
-
size:
|
|
4311
|
-
onClose:
|
|
4312
|
-
title:
|
|
4313
|
-
media:
|
|
4314
|
-
showClose:
|
|
4315
|
-
buttons:
|
|
4316
|
-
buttonProps:
|
|
4323
|
+
text: g,
|
|
4324
|
+
variant: f,
|
|
4325
|
+
size: c,
|
|
4326
|
+
onClose: j,
|
|
4327
|
+
title: y,
|
|
4328
|
+
media: b,
|
|
4329
|
+
showClose: d,
|
|
4330
|
+
buttons: w,
|
|
4331
|
+
buttonProps: v
|
|
4317
4332
|
}
|
|
4318
4333
|
) : /* @__PURE__ */ o.jsx(
|
|
4319
4334
|
Je,
|
|
4320
4335
|
{
|
|
4321
4336
|
classNames: s,
|
|
4322
|
-
text:
|
|
4323
|
-
variant:
|
|
4324
|
-
size:
|
|
4325
|
-
onClose:
|
|
4337
|
+
text: g,
|
|
4338
|
+
variant: f,
|
|
4339
|
+
size: c,
|
|
4340
|
+
onClose: j
|
|
4326
4341
|
}
|
|
4327
4342
|
));
|
|
4328
4343
|
return _t(() => {
|
|
4329
|
-
if (
|
|
4330
|
-
const
|
|
4331
|
-
return () => cancelAnimationFrame(
|
|
4344
|
+
if (_) {
|
|
4345
|
+
const I = requestAnimationFrame(() => E(!0));
|
|
4346
|
+
return () => cancelAnimationFrame(I);
|
|
4332
4347
|
}
|
|
4333
|
-
|
|
4334
|
-
}, [
|
|
4348
|
+
E(!1);
|
|
4349
|
+
}, [_]), /* @__PURE__ */ o.jsx(
|
|
4335
4350
|
Yr,
|
|
4336
4351
|
{
|
|
4337
|
-
visible:
|
|
4338
|
-
onVisibleChange:
|
|
4352
|
+
visible: _,
|
|
4353
|
+
onVisibleChange: x,
|
|
4339
4354
|
classNames: {
|
|
4340
|
-
root:
|
|
4355
|
+
root: k(dt.root, dt[f], dt[c], L && dt.open),
|
|
4341
4356
|
...m.classNames
|
|
4342
4357
|
},
|
|
4343
4358
|
placement: n,
|
|
4344
|
-
overlay: () =>
|
|
4345
|
-
trigger:
|
|
4359
|
+
overlay: () => $,
|
|
4360
|
+
trigger: p,
|
|
4346
4361
|
mouseEnterDelay: i,
|
|
4347
4362
|
mouseLeaveDelay: a,
|
|
4348
4363
|
motion: { motionName: "tooltipMotion" },
|
|
4349
|
-
builtinPlacements:
|
|
4364
|
+
builtinPlacements: S,
|
|
4350
4365
|
showArrow: l ? {
|
|
4351
4366
|
content: /* @__PURE__ */ o.jsx(I1, {}),
|
|
4352
|
-
className: `tooltipArrow tooltipArrow-${
|
|
4367
|
+
className: `tooltipArrow tooltipArrow-${c}`
|
|
4353
4368
|
} : !1,
|
|
4354
4369
|
destroyTooltipOnHide: !0,
|
|
4355
4370
|
...m,
|
|
@@ -4402,80 +4417,80 @@ const Ge = Object.assign(Di, {
|
|
|
4402
4417
|
size: i = "m",
|
|
4403
4418
|
segments: a,
|
|
4404
4419
|
stretched: l,
|
|
4405
|
-
disabled:
|
|
4406
|
-
mode:
|
|
4407
|
-
onChange:
|
|
4408
|
-
...
|
|
4409
|
-
} = t,
|
|
4420
|
+
disabled: d = !1,
|
|
4421
|
+
mode: p = "label",
|
|
4422
|
+
onChange: f,
|
|
4423
|
+
...c
|
|
4424
|
+
} = t, g = xe(), [y, b] = ut(n || a[0].value), [w, v] = ut({ width: 0, left: 0, height: 0 }), u = Dt(null);
|
|
4410
4425
|
_t(() => {
|
|
4411
|
-
s != null &&
|
|
4426
|
+
s != null && b(s);
|
|
4412
4427
|
}, [s]), nr(() => {
|
|
4413
4428
|
m();
|
|
4414
|
-
}, [
|
|
4429
|
+
}, [y, a, i, l, p]);
|
|
4415
4430
|
const m = () => {
|
|
4416
|
-
if (!(
|
|
4417
|
-
const
|
|
4431
|
+
if (!(u != null && u.current)) return;
|
|
4432
|
+
const x = u.current.querySelector(
|
|
4418
4433
|
'[data-is-active-segment="true"]'
|
|
4419
4434
|
);
|
|
4420
|
-
|
|
4421
|
-
width:
|
|
4422
|
-
left:
|
|
4423
|
-
height:
|
|
4435
|
+
x && v({
|
|
4436
|
+
width: x.offsetWidth,
|
|
4437
|
+
left: x.offsetLeft,
|
|
4438
|
+
height: x.offsetHeight
|
|
4424
4439
|
});
|
|
4425
|
-
},
|
|
4426
|
-
|
|
4440
|
+
}, _ = (x) => {
|
|
4441
|
+
d || (b(x), f == null || f(x));
|
|
4427
4442
|
};
|
|
4428
4443
|
return (a == null ? void 0 : a.length) === 0 ? null : /* @__PURE__ */ o.jsxs(
|
|
4429
4444
|
"fieldset",
|
|
4430
4445
|
{
|
|
4431
|
-
className:
|
|
4446
|
+
className: k(
|
|
4432
4447
|
Et.segmentedControl,
|
|
4433
4448
|
Et[i],
|
|
4434
|
-
Et[
|
|
4449
|
+
Et[p],
|
|
4435
4450
|
{
|
|
4436
4451
|
[Et.stretched]: l,
|
|
4437
|
-
[Et.disabled]:
|
|
4452
|
+
[Et.disabled]: d
|
|
4438
4453
|
},
|
|
4439
4454
|
r
|
|
4440
4455
|
),
|
|
4441
4456
|
"data-testid": "segmented-control-container",
|
|
4442
|
-
ref:
|
|
4443
|
-
disabled:
|
|
4444
|
-
...
|
|
4457
|
+
ref: u,
|
|
4458
|
+
disabled: d,
|
|
4459
|
+
...c,
|
|
4445
4460
|
children: [
|
|
4446
|
-
a == null ? void 0 : a.map(({ label:
|
|
4447
|
-
const { className:
|
|
4461
|
+
a == null ? void 0 : a.map(({ label: x, value: L, containerProps: E = {} }, S) => {
|
|
4462
|
+
const { className: j, ...$ } = E, I = () => _(L), B = JSON.stringify(L), D = y === L;
|
|
4448
4463
|
return /* @__PURE__ */ o.jsxs(Xt, { children: [
|
|
4449
4464
|
/* @__PURE__ */ o.jsx(
|
|
4450
4465
|
"input",
|
|
4451
4466
|
{
|
|
4452
|
-
id:
|
|
4453
|
-
value:
|
|
4467
|
+
id: g + B,
|
|
4468
|
+
value: B,
|
|
4454
4469
|
type: "radio",
|
|
4455
|
-
checked:
|
|
4470
|
+
checked: D,
|
|
4456
4471
|
readOnly: !0
|
|
4457
4472
|
}
|
|
4458
4473
|
),
|
|
4459
4474
|
/* @__PURE__ */ o.jsx(
|
|
4460
4475
|
"label",
|
|
4461
4476
|
{
|
|
4462
|
-
"data-is-active-segment":
|
|
4463
|
-
className:
|
|
4464
|
-
htmlFor:
|
|
4477
|
+
"data-is-active-segment": D,
|
|
4478
|
+
className: k(Et.segment, Qe[i], { [Et.selected]: D }, j),
|
|
4479
|
+
htmlFor: g + B,
|
|
4465
4480
|
"data-testid": "segmented-control-segment",
|
|
4466
|
-
onClick:
|
|
4467
|
-
|
|
4468
|
-
children:
|
|
4481
|
+
onClick: I,
|
|
4482
|
+
...$,
|
|
4483
|
+
children: x
|
|
4469
4484
|
}
|
|
4470
4485
|
)
|
|
4471
|
-
] }, ne(
|
|
4486
|
+
] }, ne(B) + S);
|
|
4472
4487
|
}),
|
|
4473
4488
|
/* @__PURE__ */ o.jsx(
|
|
4474
4489
|
"div",
|
|
4475
4490
|
{
|
|
4476
|
-
className:
|
|
4491
|
+
className: k(Et.activeSegmentIndicator, Qe[i]),
|
|
4477
4492
|
"data-testid": "segmented-control-segment-active-indicator",
|
|
4478
|
-
style:
|
|
4493
|
+
style: w
|
|
4479
4494
|
}
|
|
4480
4495
|
)
|
|
4481
4496
|
]
|
|
@@ -4498,13 +4513,13 @@ export {
|
|
|
4498
4513
|
Ic as Radio,
|
|
4499
4514
|
Bc as SegmentedControl,
|
|
4500
4515
|
Mc as Tabs,
|
|
4501
|
-
|
|
4516
|
+
jc as Tag,
|
|
4502
4517
|
Ec as TextArea,
|
|
4503
4518
|
Tc as TextInput,
|
|
4504
4519
|
Ac as Tooltip,
|
|
4505
4520
|
me as Typography,
|
|
4506
4521
|
Ha as enUS,
|
|
4507
|
-
|
|
4522
|
+
Lc as ruRU,
|
|
4508
4523
|
Va as useConfig,
|
|
4509
4524
|
kc as useLocale
|
|
4510
4525
|
};
|