skillgrid 0.0.44 → 0.0.45-dev-34237-snackbar.1313454
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/Snackbar/Provider/SnackbarProvider.type.d.ts +1 -1
- package/dist/components/Snackbar/Provider/index.d.ts +1 -1
- package/dist/components/Snackbar/Snackbar.d.ts +2 -1
- package/dist/components/Snackbar/Snackbar.type.d.ts +10 -0
- package/dist/components/Snackbar/index.d.ts +1 -0
- package/dist/index.cjs.js +11 -11
- package/dist/index.css +1 -1
- package/dist/index.es.js +1093 -1056
- package/package.json +2 -2
package/dist/index.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as e from "react";
|
|
2
|
-
import P1, { forwardRef as
|
|
2
|
+
import P1, { forwardRef as o1, Fragment as q1, useState as d1, useEffect as Q, useRef as v1, useCallback as x1, useMemo as t2, createContext as R2, useContext as W2, useLayoutEffect as _9, useImperativeHandle as c3, useId as F2, useReducer as d3 } from "react";
|
|
3
3
|
import { clsx as H } from "clsx";
|
|
4
4
|
import { useFloating as E9, useTransitionStyles as k9, useDismiss as M9, useRole as h3, useInteractions as x9, useMergeRefs as g3, FloatingPortal as H9, FloatingOverlay as m3, FloatingFocusManager as p3, autoUpdate as u3, offset as L3, size as w3, flip as v3, hide as f3, useHover as _3, safePolygon as E3 } from "@floating-ui/react";
|
|
5
5
|
import { useTranslation as k3 } from "react-i18next";
|
|
@@ -8,7 +8,7 @@ import Q2 from "react-dom";
|
|
|
8
8
|
import './index.css';function x3(t) {
|
|
9
9
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
10
10
|
}
|
|
11
|
-
var
|
|
11
|
+
var h2 = { exports: {} }, i2 = {};
|
|
12
12
|
/**
|
|
13
13
|
* @license React
|
|
14
14
|
* react-jsx-runtime.production.min.js
|
|
@@ -24,11 +24,11 @@ function H3() {
|
|
|
24
24
|
e9 = 1;
|
|
25
25
|
var t = P1, o = Symbol.for("react.element"), i = Symbol.for("react.fragment"), C = Object.prototype.hasOwnProperty, s = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, l = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
26
26
|
function c(g, L, v) {
|
|
27
|
-
var d,
|
|
27
|
+
var d, _ = {}, E = null, h = null;
|
|
28
28
|
v !== void 0 && (E = "" + v), L.key !== void 0 && (E = "" + L.key), L.ref !== void 0 && (h = L.ref);
|
|
29
|
-
for (d in L) C.call(L, d) && !l.hasOwnProperty(d) && (
|
|
30
|
-
if (g && g.defaultProps) for (d in L = g.defaultProps, L)
|
|
31
|
-
return { $$typeof: o, type: g, key: E, ref: h, props:
|
|
29
|
+
for (d in L) C.call(L, d) && !l.hasOwnProperty(d) && (_[d] = L[d]);
|
|
30
|
+
if (g && g.defaultProps) for (d in L = g.defaultProps, L) _[d] === void 0 && (_[d] = L[d]);
|
|
31
|
+
return { $$typeof: o, type: g, key: E, ref: h, props: _, _owner: s.current };
|
|
32
32
|
}
|
|
33
33
|
return i2.Fragment = i, i2.jsx = c, i2.jsxs = c, i2;
|
|
34
34
|
}
|
|
@@ -45,51 +45,51 @@ var l2 = {};
|
|
|
45
45
|
var t9;
|
|
46
46
|
function b3() {
|
|
47
47
|
return t9 || (t9 = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
48
|
-
var t = P1, o = Symbol.for("react.element"), i = Symbol.for("react.portal"), C = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), l = Symbol.for("react.profiler"), c = Symbol.for("react.provider"), g = Symbol.for("react.context"), L = Symbol.for("react.forward_ref"), v = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"),
|
|
48
|
+
var t = P1, o = Symbol.for("react.element"), i = Symbol.for("react.portal"), C = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), l = Symbol.for("react.profiler"), c = Symbol.for("react.provider"), g = Symbol.for("react.context"), L = Symbol.for("react.forward_ref"), v = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), _ = Symbol.for("react.memo"), E = Symbol.for("react.lazy"), h = Symbol.for("react.offscreen"), p = Symbol.iterator, f = "@@iterator";
|
|
49
49
|
function m(a) {
|
|
50
50
|
if (a === null || typeof a != "object")
|
|
51
51
|
return null;
|
|
52
|
-
var M = p && a[p] || a[
|
|
52
|
+
var M = p && a[p] || a[f];
|
|
53
53
|
return typeof M == "function" ? M : null;
|
|
54
54
|
}
|
|
55
55
|
var w = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
56
56
|
function u(a) {
|
|
57
57
|
{
|
|
58
|
-
for (var M = arguments.length,
|
|
59
|
-
|
|
60
|
-
k("error", a,
|
|
58
|
+
for (var M = arguments.length, S = new Array(M > 1 ? M - 1 : 0), F = 1; F < M; F++)
|
|
59
|
+
S[F - 1] = arguments[F];
|
|
60
|
+
k("error", a, S);
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
|
-
function k(a, M,
|
|
63
|
+
function k(a, M, S) {
|
|
64
64
|
{
|
|
65
|
-
var
|
|
66
|
-
|
|
67
|
-
var
|
|
65
|
+
var F = w.ReactDebugCurrentFrame, q = F.getStackAddendum();
|
|
66
|
+
q !== "" && (M += "%s", S = S.concat([q]));
|
|
67
|
+
var Y = S.map(function(G) {
|
|
68
68
|
return String(G);
|
|
69
69
|
});
|
|
70
|
-
|
|
70
|
+
Y.unshift("Warning: " + M), Function.prototype.apply.call(console[a], console, Y);
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
|
-
var b = !1,
|
|
73
|
+
var b = !1, B = !1, x = !1, Z = !1, V = !1, j;
|
|
74
74
|
j = Symbol.for("react.module.reference");
|
|
75
75
|
function O(a) {
|
|
76
|
-
return !!(typeof a == "string" || typeof a == "function" || a === C || a === l ||
|
|
76
|
+
return !!(typeof a == "string" || typeof a == "function" || a === C || a === l || V || a === s || a === v || a === d || Z || a === h || b || B || x || typeof a == "object" && a !== null && (a.$$typeof === E || a.$$typeof === _ || a.$$typeof === c || a.$$typeof === g || a.$$typeof === L || // This needs to include all possible module reference object
|
|
77
77
|
// types supported by any Flight configuration anywhere since
|
|
78
78
|
// we don't know which Flight build this will end up being used
|
|
79
79
|
// with.
|
|
80
80
|
a.$$typeof === j || a.getModuleId !== void 0));
|
|
81
81
|
}
|
|
82
|
-
function
|
|
83
|
-
var
|
|
84
|
-
if (
|
|
85
|
-
return
|
|
86
|
-
var
|
|
87
|
-
return
|
|
82
|
+
function D(a, M, S) {
|
|
83
|
+
var F = a.displayName;
|
|
84
|
+
if (F)
|
|
85
|
+
return F;
|
|
86
|
+
var q = M.displayName || M.name || "";
|
|
87
|
+
return q !== "" ? S + "(" + q + ")" : S;
|
|
88
88
|
}
|
|
89
|
-
function
|
|
89
|
+
function A(a) {
|
|
90
90
|
return a.displayName || "Context";
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function y(a) {
|
|
93
93
|
if (a == null)
|
|
94
94
|
return null;
|
|
95
95
|
if (typeof a.tag == "number" && u("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof a == "function")
|
|
@@ -114,19 +114,19 @@ function b3() {
|
|
|
114
114
|
switch (a.$$typeof) {
|
|
115
115
|
case g:
|
|
116
116
|
var M = a;
|
|
117
|
-
return
|
|
117
|
+
return A(M) + ".Consumer";
|
|
118
118
|
case c:
|
|
119
|
-
var
|
|
120
|
-
return
|
|
119
|
+
var S = a;
|
|
120
|
+
return A(S._context) + ".Provider";
|
|
121
121
|
case L:
|
|
122
|
-
return
|
|
123
|
-
case
|
|
124
|
-
var
|
|
125
|
-
return
|
|
122
|
+
return D(a, a.render, "ForwardRef");
|
|
123
|
+
case _:
|
|
124
|
+
var F = a.displayName || null;
|
|
125
|
+
return F !== null ? F : y(a.type) || "Memo";
|
|
126
126
|
case E: {
|
|
127
|
-
var
|
|
127
|
+
var q = a, Y = q._payload, G = q._init;
|
|
128
128
|
try {
|
|
129
|
-
return
|
|
129
|
+
return y(G(Y));
|
|
130
130
|
} catch {
|
|
131
131
|
return null;
|
|
132
132
|
}
|
|
@@ -134,18 +134,18 @@ function b3() {
|
|
|
134
134
|
}
|
|
135
135
|
return null;
|
|
136
136
|
}
|
|
137
|
-
var R = Object.assign,
|
|
138
|
-
function
|
|
137
|
+
var R = Object.assign, I = 0, T, U, N, n1, K, X, W;
|
|
138
|
+
function J() {
|
|
139
139
|
}
|
|
140
|
-
|
|
141
|
-
function
|
|
140
|
+
J.__reactDisabledLog = !0;
|
|
141
|
+
function L1() {
|
|
142
142
|
{
|
|
143
|
-
if (
|
|
144
|
-
|
|
143
|
+
if (I === 0) {
|
|
144
|
+
T = console.log, U = console.info, N = console.warn, n1 = console.error, K = console.group, X = console.groupCollapsed, W = console.groupEnd;
|
|
145
145
|
var a = {
|
|
146
146
|
configurable: !0,
|
|
147
147
|
enumerable: !0,
|
|
148
|
-
value:
|
|
148
|
+
value: J,
|
|
149
149
|
writable: !0
|
|
150
150
|
};
|
|
151
151
|
Object.defineProperties(console, {
|
|
@@ -158,12 +158,12 @@ function b3() {
|
|
|
158
158
|
groupEnd: a
|
|
159
159
|
});
|
|
160
160
|
}
|
|
161
|
-
|
|
161
|
+
I++;
|
|
162
162
|
}
|
|
163
163
|
}
|
|
164
|
-
function
|
|
164
|
+
function p1() {
|
|
165
165
|
{
|
|
166
|
-
if (
|
|
166
|
+
if (I--, I === 0) {
|
|
167
167
|
var a = {
|
|
168
168
|
configurable: !0,
|
|
169
169
|
enumerable: !0,
|
|
@@ -171,7 +171,7 @@ function b3() {
|
|
|
171
171
|
};
|
|
172
172
|
Object.defineProperties(console, {
|
|
173
173
|
log: R({}, a, {
|
|
174
|
-
value:
|
|
174
|
+
value: T
|
|
175
175
|
}),
|
|
176
176
|
info: R({}, a, {
|
|
177
177
|
value: U
|
|
@@ -180,31 +180,31 @@ function b3() {
|
|
|
180
180
|
value: N
|
|
181
181
|
}),
|
|
182
182
|
error: R({}, a, {
|
|
183
|
-
value:
|
|
183
|
+
value: n1
|
|
184
184
|
}),
|
|
185
185
|
group: R({}, a, {
|
|
186
|
-
value:
|
|
186
|
+
value: K
|
|
187
187
|
}),
|
|
188
188
|
groupCollapsed: R({}, a, {
|
|
189
|
-
value:
|
|
189
|
+
value: X
|
|
190
190
|
}),
|
|
191
191
|
groupEnd: R({}, a, {
|
|
192
|
-
value:
|
|
192
|
+
value: W
|
|
193
193
|
})
|
|
194
194
|
});
|
|
195
195
|
}
|
|
196
|
-
|
|
196
|
+
I < 0 && u("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
197
197
|
}
|
|
198
198
|
}
|
|
199
199
|
var h1 = w.ReactCurrentDispatcher, O1;
|
|
200
|
-
function R1(a, M,
|
|
200
|
+
function R1(a, M, S) {
|
|
201
201
|
{
|
|
202
202
|
if (O1 === void 0)
|
|
203
203
|
try {
|
|
204
204
|
throw Error();
|
|
205
|
-
} catch (
|
|
206
|
-
var
|
|
207
|
-
O1 =
|
|
205
|
+
} catch (q) {
|
|
206
|
+
var F = q.stack.trim().match(/\n( *(at )?)/);
|
|
207
|
+
O1 = F && F[1] || "";
|
|
208
208
|
}
|
|
209
209
|
return `
|
|
210
210
|
` + O1 + a;
|
|
@@ -219,16 +219,16 @@ function b3() {
|
|
|
219
219
|
if (!a || e1)
|
|
220
220
|
return "";
|
|
221
221
|
{
|
|
222
|
-
var
|
|
223
|
-
if (
|
|
224
|
-
return
|
|
222
|
+
var S = b1.get(a);
|
|
223
|
+
if (S !== void 0)
|
|
224
|
+
return S;
|
|
225
225
|
}
|
|
226
|
-
var
|
|
226
|
+
var F;
|
|
227
227
|
e1 = !0;
|
|
228
|
-
var
|
|
228
|
+
var q = Error.prepareStackTrace;
|
|
229
229
|
Error.prepareStackTrace = void 0;
|
|
230
|
-
var
|
|
231
|
-
|
|
230
|
+
var Y;
|
|
231
|
+
Y = h1.current, h1.current = null, L1();
|
|
232
232
|
try {
|
|
233
233
|
if (M) {
|
|
234
234
|
var G = function() {
|
|
@@ -241,59 +241,59 @@ function b3() {
|
|
|
241
241
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
242
242
|
try {
|
|
243
243
|
Reflect.construct(G, []);
|
|
244
|
-
} catch (
|
|
245
|
-
|
|
244
|
+
} catch (f1) {
|
|
245
|
+
F = f1;
|
|
246
246
|
}
|
|
247
247
|
Reflect.construct(a, [], G);
|
|
248
248
|
} else {
|
|
249
249
|
try {
|
|
250
250
|
G.call();
|
|
251
|
-
} catch (
|
|
252
|
-
|
|
251
|
+
} catch (f1) {
|
|
252
|
+
F = f1;
|
|
253
253
|
}
|
|
254
254
|
a.call(G.prototype);
|
|
255
255
|
}
|
|
256
256
|
} else {
|
|
257
257
|
try {
|
|
258
258
|
throw Error();
|
|
259
|
-
} catch (
|
|
260
|
-
|
|
259
|
+
} catch (f1) {
|
|
260
|
+
F = f1;
|
|
261
261
|
}
|
|
262
262
|
a();
|
|
263
263
|
}
|
|
264
|
-
} catch (
|
|
265
|
-
if (
|
|
266
|
-
for (var $ =
|
|
267
|
-
`),
|
|
268
|
-
`),
|
|
269
|
-
|
|
270
|
-
for (;
|
|
271
|
-
if ($[
|
|
272
|
-
if (
|
|
264
|
+
} catch (f1) {
|
|
265
|
+
if (f1 && F && typeof f1.stack == "string") {
|
|
266
|
+
for (var $ = f1.stack.split(`
|
|
267
|
+
`), w1 = F.stack.split(`
|
|
268
|
+
`), C1 = $.length - 1, a1 = w1.length - 1; C1 >= 1 && a1 >= 0 && $[C1] !== w1[a1]; )
|
|
269
|
+
a1--;
|
|
270
|
+
for (; C1 >= 1 && a1 >= 0; C1--, a1--)
|
|
271
|
+
if ($[C1] !== w1[a1]) {
|
|
272
|
+
if (C1 !== 1 || a1 !== 1)
|
|
273
273
|
do
|
|
274
|
-
if (
|
|
274
|
+
if (C1--, a1--, a1 < 0 || $[C1] !== w1[a1]) {
|
|
275
275
|
var Z1 = `
|
|
276
|
-
` + $[
|
|
276
|
+
` + $[C1].replace(" at new ", " at ");
|
|
277
277
|
return a.displayName && Z1.includes("<anonymous>") && (Z1 = Z1.replace("<anonymous>", a.displayName)), typeof a == "function" && b1.set(a, Z1), Z1;
|
|
278
278
|
}
|
|
279
|
-
while (
|
|
279
|
+
while (C1 >= 1 && a1 >= 0);
|
|
280
280
|
break;
|
|
281
281
|
}
|
|
282
282
|
}
|
|
283
283
|
} finally {
|
|
284
|
-
e1 = !1, h1.current =
|
|
284
|
+
e1 = !1, h1.current = Y, p1(), Error.prepareStackTrace = q;
|
|
285
285
|
}
|
|
286
286
|
var Y1 = a ? a.displayName || a.name : "", z1 = Y1 ? R1(Y1) : "";
|
|
287
287
|
return typeof a == "function" && b1.set(a, z1), z1;
|
|
288
288
|
}
|
|
289
|
-
function r2(a, M,
|
|
289
|
+
function r2(a, M, S) {
|
|
290
290
|
return $1(a, !1);
|
|
291
291
|
}
|
|
292
292
|
function o2(a) {
|
|
293
293
|
var M = a.prototype;
|
|
294
294
|
return !!(M && M.isReactComponent);
|
|
295
295
|
}
|
|
296
|
-
function
|
|
296
|
+
function i1(a, M, S) {
|
|
297
297
|
if (a == null)
|
|
298
298
|
return "";
|
|
299
299
|
if (typeof a == "function")
|
|
@@ -310,42 +310,42 @@ function b3() {
|
|
|
310
310
|
switch (a.$$typeof) {
|
|
311
311
|
case L:
|
|
312
312
|
return r2(a.render);
|
|
313
|
-
case
|
|
314
|
-
return
|
|
313
|
+
case _:
|
|
314
|
+
return i1(a.type, M, S);
|
|
315
315
|
case E: {
|
|
316
|
-
var
|
|
316
|
+
var F = a, q = F._payload, Y = F._init;
|
|
317
317
|
try {
|
|
318
|
-
return
|
|
318
|
+
return i1(Y(q), M, S);
|
|
319
319
|
} catch {
|
|
320
320
|
}
|
|
321
321
|
}
|
|
322
322
|
}
|
|
323
323
|
return "";
|
|
324
324
|
}
|
|
325
|
-
var
|
|
326
|
-
function
|
|
325
|
+
var l1 = Object.prototype.hasOwnProperty, u1 = {}, N1 = w.ReactDebugCurrentFrame;
|
|
326
|
+
function d2(a) {
|
|
327
327
|
if (a) {
|
|
328
|
-
var M = a._owner,
|
|
329
|
-
N1.setExtraStackFrame(
|
|
328
|
+
var M = a._owner, S = i1(a.type, a._source, M ? M.type : null);
|
|
329
|
+
N1.setExtraStackFrame(S);
|
|
330
330
|
} else
|
|
331
331
|
N1.setExtraStackFrame(null);
|
|
332
332
|
}
|
|
333
|
-
function P9(a, M,
|
|
333
|
+
function P9(a, M, S, F, q) {
|
|
334
334
|
{
|
|
335
|
-
var
|
|
335
|
+
var Y = Function.call.bind(l1);
|
|
336
336
|
for (var G in a)
|
|
337
|
-
if (
|
|
337
|
+
if (Y(a, G)) {
|
|
338
338
|
var $ = void 0;
|
|
339
339
|
try {
|
|
340
340
|
if (typeof a[G] != "function") {
|
|
341
|
-
var
|
|
342
|
-
throw
|
|
341
|
+
var w1 = Error((F || "React class") + ": " + S + " type `" + G + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof a[G] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
342
|
+
throw w1.name = "Invariant Violation", w1;
|
|
343
343
|
}
|
|
344
|
-
$ = a[G](M, G,
|
|
345
|
-
} catch (
|
|
346
|
-
$ =
|
|
344
|
+
$ = a[G](M, G, F, S, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
345
|
+
} catch (C1) {
|
|
346
|
+
$ = C1;
|
|
347
347
|
}
|
|
348
|
-
$ && !($ instanceof Error) && (
|
|
348
|
+
$ && !($ instanceof Error) && (d2(q), u("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", F || "React class", S, G, typeof $), d2(null)), $ instanceof Error && !($.message in u1) && (u1[$.message] = !0, d2(q), u("Failed %s type: %s", S, $.message), d2(null));
|
|
349
349
|
}
|
|
350
350
|
}
|
|
351
351
|
}
|
|
@@ -355,8 +355,8 @@ function b3() {
|
|
|
355
355
|
}
|
|
356
356
|
function N9(a) {
|
|
357
357
|
{
|
|
358
|
-
var M = typeof Symbol == "function" && Symbol.toStringTag,
|
|
359
|
-
return
|
|
358
|
+
var M = typeof Symbol == "function" && Symbol.toStringTag, S = M && a[Symbol.toStringTag] || a.constructor.name || "Object";
|
|
359
|
+
return S;
|
|
360
360
|
}
|
|
361
361
|
}
|
|
362
362
|
function z9(a) {
|
|
@@ -380,7 +380,7 @@ function b3() {
|
|
|
380
380
|
__source: !0
|
|
381
381
|
}, N2, z2;
|
|
382
382
|
function G9(a) {
|
|
383
|
-
if (
|
|
383
|
+
if (l1.call(a, "ref")) {
|
|
384
384
|
var M = Object.getOwnPropertyDescriptor(a, "ref").get;
|
|
385
385
|
if (M && M.isReactWarning)
|
|
386
386
|
return !1;
|
|
@@ -388,7 +388,7 @@ function b3() {
|
|
|
388
388
|
return a.ref !== void 0;
|
|
389
389
|
}
|
|
390
390
|
function q9(a) {
|
|
391
|
-
if (
|
|
391
|
+
if (l1.call(a, "key")) {
|
|
392
392
|
var M = Object.getOwnPropertyDescriptor(a, "key").get;
|
|
393
393
|
if (M && M.isReactWarning)
|
|
394
394
|
return !1;
|
|
@@ -400,37 +400,37 @@ function b3() {
|
|
|
400
400
|
}
|
|
401
401
|
function Y9(a, M) {
|
|
402
402
|
{
|
|
403
|
-
var
|
|
403
|
+
var S = function() {
|
|
404
404
|
N2 || (N2 = !0, u("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", M));
|
|
405
405
|
};
|
|
406
|
-
|
|
407
|
-
get:
|
|
406
|
+
S.isReactWarning = !0, Object.defineProperty(a, "key", {
|
|
407
|
+
get: S,
|
|
408
408
|
configurable: !0
|
|
409
409
|
});
|
|
410
410
|
}
|
|
411
411
|
}
|
|
412
412
|
function K9(a, M) {
|
|
413
413
|
{
|
|
414
|
-
var
|
|
414
|
+
var S = function() {
|
|
415
415
|
z2 || (z2 = !0, u("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", M));
|
|
416
416
|
};
|
|
417
|
-
|
|
418
|
-
get:
|
|
417
|
+
S.isReactWarning = !0, Object.defineProperty(a, "ref", {
|
|
418
|
+
get: S,
|
|
419
419
|
configurable: !0
|
|
420
420
|
});
|
|
421
421
|
}
|
|
422
422
|
}
|
|
423
|
-
var J9 = function(a, M,
|
|
423
|
+
var J9 = function(a, M, S, F, q, Y, G) {
|
|
424
424
|
var $ = {
|
|
425
425
|
// This tag allows us to uniquely identify this as a React Element
|
|
426
426
|
$$typeof: o,
|
|
427
427
|
// Built-in properties that belong on the element
|
|
428
428
|
type: a,
|
|
429
429
|
key: M,
|
|
430
|
-
ref:
|
|
430
|
+
ref: S,
|
|
431
431
|
props: G,
|
|
432
432
|
// Record the component responsible for creating this element.
|
|
433
|
-
_owner:
|
|
433
|
+
_owner: Y
|
|
434
434
|
};
|
|
435
435
|
return $._store = {}, Object.defineProperty($._store, "validated", {
|
|
436
436
|
configurable: !1,
|
|
@@ -441,37 +441,37 @@ function b3() {
|
|
|
441
441
|
configurable: !1,
|
|
442
442
|
enumerable: !1,
|
|
443
443
|
writable: !1,
|
|
444
|
-
value:
|
|
444
|
+
value: F
|
|
445
445
|
}), Object.defineProperty($, "_source", {
|
|
446
446
|
configurable: !1,
|
|
447
447
|
enumerable: !1,
|
|
448
448
|
writable: !1,
|
|
449
|
-
value:
|
|
449
|
+
value: q
|
|
450
450
|
}), Object.freeze && (Object.freeze($.props), Object.freeze($)), $;
|
|
451
451
|
};
|
|
452
|
-
function Q9(a, M,
|
|
452
|
+
function Q9(a, M, S, F, q) {
|
|
453
453
|
{
|
|
454
|
-
var
|
|
455
|
-
|
|
456
|
-
for (
|
|
457
|
-
|
|
454
|
+
var Y, G = {}, $ = null, w1 = null;
|
|
455
|
+
S !== void 0 && (P2(S), $ = "" + S), q9(M) && (P2(M.key), $ = "" + M.key), G9(M) && (w1 = M.ref, X9(M, q));
|
|
456
|
+
for (Y in M)
|
|
457
|
+
l1.call(M, Y) && !U9.hasOwnProperty(Y) && (G[Y] = M[Y]);
|
|
458
458
|
if (a && a.defaultProps) {
|
|
459
|
-
var
|
|
460
|
-
for (
|
|
461
|
-
G[
|
|
459
|
+
var C1 = a.defaultProps;
|
|
460
|
+
for (Y in C1)
|
|
461
|
+
G[Y] === void 0 && (G[Y] = C1[Y]);
|
|
462
462
|
}
|
|
463
|
-
if ($ ||
|
|
464
|
-
var
|
|
465
|
-
$ && Y9(G,
|
|
463
|
+
if ($ || w1) {
|
|
464
|
+
var a1 = typeof a == "function" ? a.displayName || a.name || "Unknown" : a;
|
|
465
|
+
$ && Y9(G, a1), w1 && K9(G, a1);
|
|
466
466
|
}
|
|
467
|
-
return J9(a, $,
|
|
467
|
+
return J9(a, $, w1, q, F, $2.current, G);
|
|
468
468
|
}
|
|
469
469
|
}
|
|
470
470
|
var M2 = w.ReactCurrentOwner, U2 = w.ReactDebugCurrentFrame;
|
|
471
471
|
function X1(a) {
|
|
472
472
|
if (a) {
|
|
473
|
-
var M = a._owner,
|
|
474
|
-
U2.setExtraStackFrame(
|
|
473
|
+
var M = a._owner, S = i1(a.type, a._source, M ? M.type : null);
|
|
474
|
+
U2.setExtraStackFrame(S);
|
|
475
475
|
} else
|
|
476
476
|
U2.setExtraStackFrame(null);
|
|
477
477
|
}
|
|
@@ -483,7 +483,7 @@ function b3() {
|
|
|
483
483
|
function G2() {
|
|
484
484
|
{
|
|
485
485
|
if (M2.current) {
|
|
486
|
-
var a =
|
|
486
|
+
var a = y(M2.current.type);
|
|
487
487
|
if (a)
|
|
488
488
|
return `
|
|
489
489
|
|
|
@@ -500,10 +500,10 @@ Check the render method of \`` + a + "`.";
|
|
|
500
500
|
{
|
|
501
501
|
var M = G2();
|
|
502
502
|
if (!M) {
|
|
503
|
-
var
|
|
504
|
-
|
|
503
|
+
var S = typeof a == "string" ? a : a.displayName || a.name;
|
|
504
|
+
S && (M = `
|
|
505
505
|
|
|
506
|
-
Check the top-level render call using <` +
|
|
506
|
+
Check the top-level render call using <` + S + ">.");
|
|
507
507
|
}
|
|
508
508
|
return M;
|
|
509
509
|
}
|
|
@@ -513,12 +513,12 @@ Check the top-level render call using <` + B + ">.");
|
|
|
513
513
|
if (!a._store || a._store.validated || a.key != null)
|
|
514
514
|
return;
|
|
515
515
|
a._store.validated = !0;
|
|
516
|
-
var
|
|
517
|
-
if (q2[
|
|
516
|
+
var S = t3(M);
|
|
517
|
+
if (q2[S])
|
|
518
518
|
return;
|
|
519
|
-
q2[
|
|
520
|
-
var
|
|
521
|
-
a && a._owner && a._owner !== M2.current && (
|
|
519
|
+
q2[S] = !0;
|
|
520
|
+
var F = "";
|
|
521
|
+
a && a._owner && a._owner !== M2.current && (F = " It was passed a child from " + y(a._owner.type) + "."), X1(a), u('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', S, F), X1(null);
|
|
522
522
|
}
|
|
523
523
|
}
|
|
524
524
|
function Y2(a, M) {
|
|
@@ -526,16 +526,16 @@ Check the top-level render call using <` + B + ">.");
|
|
|
526
526
|
if (typeof a != "object")
|
|
527
527
|
return;
|
|
528
528
|
if (k2(a))
|
|
529
|
-
for (var
|
|
530
|
-
var
|
|
531
|
-
H2(
|
|
529
|
+
for (var S = 0; S < a.length; S++) {
|
|
530
|
+
var F = a[S];
|
|
531
|
+
H2(F) && X2(F, M);
|
|
532
532
|
}
|
|
533
533
|
else if (H2(a))
|
|
534
534
|
a._store && (a._store.validated = !0);
|
|
535
535
|
else if (a) {
|
|
536
|
-
var
|
|
537
|
-
if (typeof
|
|
538
|
-
for (var
|
|
536
|
+
var q = m(a);
|
|
537
|
+
if (typeof q == "function" && q !== a.entries)
|
|
538
|
+
for (var Y = q.call(a), G; !(G = Y.next()).done; )
|
|
539
539
|
H2(G.value) && X2(G.value, M);
|
|
540
540
|
}
|
|
541
541
|
}
|
|
@@ -545,32 +545,32 @@ Check the top-level render call using <` + B + ">.");
|
|
|
545
545
|
var M = a.type;
|
|
546
546
|
if (M == null || typeof M == "string")
|
|
547
547
|
return;
|
|
548
|
-
var
|
|
548
|
+
var S;
|
|
549
549
|
if (typeof M == "function")
|
|
550
|
-
|
|
550
|
+
S = M.propTypes;
|
|
551
551
|
else if (typeof M == "object" && (M.$$typeof === L || // Note: Memo only checks outer props here.
|
|
552
552
|
// Inner props are checked in the reconciler.
|
|
553
|
-
M.$$typeof ===
|
|
554
|
-
|
|
553
|
+
M.$$typeof === _))
|
|
554
|
+
S = M.propTypes;
|
|
555
555
|
else
|
|
556
556
|
return;
|
|
557
|
-
if (
|
|
558
|
-
var
|
|
559
|
-
P9(
|
|
557
|
+
if (S) {
|
|
558
|
+
var F = y(M);
|
|
559
|
+
P9(S, a.props, "prop", F, a);
|
|
560
560
|
} else if (M.PropTypes !== void 0 && !x2) {
|
|
561
561
|
x2 = !0;
|
|
562
|
-
var
|
|
563
|
-
u("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",
|
|
562
|
+
var q = y(M);
|
|
563
|
+
u("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", q || "Unknown");
|
|
564
564
|
}
|
|
565
565
|
typeof M.getDefaultProps == "function" && !M.getDefaultProps.isReactClassApproved && u("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
566
566
|
}
|
|
567
567
|
}
|
|
568
568
|
function r3(a) {
|
|
569
569
|
{
|
|
570
|
-
for (var M = Object.keys(a.props),
|
|
571
|
-
var
|
|
572
|
-
if (
|
|
573
|
-
X1(a), u("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",
|
|
570
|
+
for (var M = Object.keys(a.props), S = 0; S < M.length; S++) {
|
|
571
|
+
var F = M[S];
|
|
572
|
+
if (F !== "children" && F !== "key") {
|
|
573
|
+
X1(a), u("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", F), X1(null);
|
|
574
574
|
break;
|
|
575
575
|
}
|
|
576
576
|
}
|
|
@@ -578,24 +578,24 @@ Check the top-level render call using <` + B + ">.");
|
|
|
578
578
|
}
|
|
579
579
|
}
|
|
580
580
|
var K2 = {};
|
|
581
|
-
function J2(a, M,
|
|
581
|
+
function J2(a, M, S, F, q, Y) {
|
|
582
582
|
{
|
|
583
583
|
var G = O(a);
|
|
584
584
|
if (!G) {
|
|
585
585
|
var $ = "";
|
|
586
586
|
(a === void 0 || typeof a == "object" && a !== null && Object.keys(a).length === 0) && ($ += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
587
|
-
var
|
|
588
|
-
|
|
589
|
-
var
|
|
590
|
-
a === null ?
|
|
587
|
+
var w1 = e3();
|
|
588
|
+
w1 ? $ += w1 : $ += G2();
|
|
589
|
+
var C1;
|
|
590
|
+
a === null ? C1 = "null" : k2(a) ? C1 = "array" : a !== void 0 && a.$$typeof === o ? (C1 = "<" + (y(a.type) || "Unknown") + " />", $ = " Did you accidentally export a JSX literal instead of a component?") : C1 = typeof a, u("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", C1, $);
|
|
591
591
|
}
|
|
592
|
-
var
|
|
593
|
-
if (
|
|
594
|
-
return
|
|
592
|
+
var a1 = Q9(a, M, S, q, Y);
|
|
593
|
+
if (a1 == null)
|
|
594
|
+
return a1;
|
|
595
595
|
if (G) {
|
|
596
596
|
var Z1 = M.children;
|
|
597
597
|
if (Z1 !== void 0)
|
|
598
|
-
if (
|
|
598
|
+
if (F)
|
|
599
599
|
if (k2(Z1)) {
|
|
600
600
|
for (var Y1 = 0; Y1 < Z1.length; Y1++)
|
|
601
601
|
Y2(Z1[Y1], a);
|
|
@@ -605,12 +605,12 @@ Check the top-level render call using <` + B + ">.");
|
|
|
605
605
|
else
|
|
606
606
|
Y2(Z1, a);
|
|
607
607
|
}
|
|
608
|
-
if (
|
|
609
|
-
var z1 =
|
|
608
|
+
if (l1.call(M, "key")) {
|
|
609
|
+
var z1 = y(a), f1 = Object.keys(M).filter(function(s3) {
|
|
610
610
|
return s3 !== "key";
|
|
611
|
-
}), b2 =
|
|
611
|
+
}), b2 = f1.length > 0 ? "{key: someKey, " + f1.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
612
612
|
if (!K2[z1 + b2]) {
|
|
613
|
-
var a3 =
|
|
613
|
+
var a3 = f1.length > 0 ? "{" + f1.join(": ..., ") + ": ...}" : "{}";
|
|
614
614
|
u(`A props object containing a "key" prop is being spread into JSX:
|
|
615
615
|
let props = %s;
|
|
616
616
|
<%s {...props} />
|
|
@@ -619,14 +619,14 @@ React keys must be passed directly to JSX without using spread:
|
|
|
619
619
|
<%s key={someKey} {...props} />`, b2, z1, a3, z1), K2[z1 + b2] = !0;
|
|
620
620
|
}
|
|
621
621
|
}
|
|
622
|
-
return a === C ? r3(
|
|
622
|
+
return a === C ? r3(a1) : n3(a1), a1;
|
|
623
623
|
}
|
|
624
624
|
}
|
|
625
|
-
function o3(a, M,
|
|
626
|
-
return J2(a, M,
|
|
625
|
+
function o3(a, M, S) {
|
|
626
|
+
return J2(a, M, S, !0);
|
|
627
627
|
}
|
|
628
|
-
function i3(a, M,
|
|
629
|
-
return J2(a, M,
|
|
628
|
+
function i3(a, M, S) {
|
|
629
|
+
return J2(a, M, S, !1);
|
|
630
630
|
}
|
|
631
631
|
var l3 = i3, C3 = o3;
|
|
632
632
|
l2.Fragment = C, l2.jsx = l3, l2.jsxs = C3;
|
|
@@ -634,7 +634,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
634
634
|
}
|
|
635
635
|
var n9;
|
|
636
636
|
function Z3() {
|
|
637
|
-
return n9 || (n9 = 1, process.env.NODE_ENV === "production" ?
|
|
637
|
+
return n9 || (n9 = 1, process.env.NODE_ENV === "production" ? h2.exports = H3() : h2.exports = b3()), h2.exports;
|
|
638
638
|
}
|
|
639
639
|
var r = Z3();
|
|
640
640
|
const V3 = (t) => t.as === "a", y3 = (t) => t.as === void 0 || t.as === "button", S3 = "_button_1agz0_1", B3 = "_link_1agz0_22", j3 = "_disabled_1agz0_27", O3 = "_loading_1agz0_27", R3 = "_neutral_1agz0_59", W3 = "_accent_1agz0_63", F3 = "_positive_1agz0_67", I3 = "_negative_1agz0_71", T3 = "_contrast_1agz0_75", D3 = "_primary_1agz0_79", A3 = "_secondary_1agz0_80", P3 = "_tertiary_1agz0_81", $3 = "_gray_1agz0_91", N3 = "_dreamy_1agz0_113", z3 = "_special_1agz0_119", U3 = "_lovely_1agz0_125", G3 = "_warning_1agz0_131", q3 = "_vivid_1agz0_137", X3 = "_blue_1agz0_143", Y3 = "_spaceBetween_1agz0_155", K3 = "_rightGroup_1agz0_155", J3 = "_withSubcaption_1agz0_163", Q3 = "_label_1agz0_175", e4 = "_icon_1agz0_184", t4 = "_labelText_1agz0_189", n4 = "_isLink_1agz0_195", r4 = "_iconOnly_1agz0_210", o4 = "_stretched_1agz0_226", i4 = "_postfix_1agz0_231", l4 = "_underline_1agz0_261", C4 = "_backButton_1agz0_464", a4 = "_subcaption_1agz0_2088", s4 = "_content_1agz0_2093", c4 = "_contentHidden_1agz0_2097", d4 = "_loaderWrapper_1agz0_2101", h4 = "_l_1agz0_22", g4 = "_m_1agz0_2140", m4 = "_s_1agz0_80", p4 = "_xs_1agz0_2183", u4 = "_noPaddings_1agz0_2205", L4 = "_iconRight_1agz0_2241", w4 = "_spin_1agz0_1", P = {
|
|
@@ -698,7 +698,7 @@ const V3 = (t) => t.as === "a", y3 = (t) => t.as === void 0 || t.as === "button"
|
|
|
698
698
|
"isExternal",
|
|
699
699
|
"asBackButton",
|
|
700
700
|
"paddings"
|
|
701
|
-
]),
|
|
701
|
+
]), f2 = (t) => {
|
|
702
702
|
const o = {};
|
|
703
703
|
for (const i in t)
|
|
704
704
|
v4.has(i) || (o[i] = t[i]);
|
|
@@ -721,7 +721,7 @@ const V3 = (t) => t.as === "a", y3 = (t) => t.as === void 0 || t.as === "button"
|
|
|
721
721
|
function E4(t) {
|
|
722
722
|
return _4[t] || "typography-label-2-regular";
|
|
723
723
|
}
|
|
724
|
-
const
|
|
724
|
+
const s1 = {
|
|
725
725
|
"typography-title-1-semibold": "_typography-title-1-semibold_1lyxn_1",
|
|
726
726
|
"typography-title-2-semibold": "_typography-title-2-semibold_1lyxn_10",
|
|
727
727
|
"typography-title-3-semibold": "_typography-title-3-semibold_1lyxn_19",
|
|
@@ -745,7 +745,7 @@ const a1 = {
|
|
|
745
745
|
"typography-paragraph-2-regular": "_typography-paragraph-2-regular_1lyxn_176",
|
|
746
746
|
"typography-paragraph-3-regular": "_typography-paragraph-3-regular_1lyxn_185",
|
|
747
747
|
"typography-paragraph-4-regular": "_typography-paragraph-4-regular_1lyxn_194"
|
|
748
|
-
}, k4 = "
|
|
748
|
+
}, k4 = "_loader_1xslo_1", M4 = "_spin_1xslo_1", x4 = "_accent_1xslo_19", H4 = "_neutral_1xslo_23", b4 = "_positive_1xslo_27", Z4 = "_negative_1xslo_31", V4 = "_gray_1xslo_35", y4 = "_contrast_1xslo_39", S4 = "_container_1xslo_43", B4 = "_overlay_1xslo_53", s2 = {
|
|
749
749
|
loader: k4,
|
|
750
750
|
spin: M4,
|
|
751
751
|
accent: x4,
|
|
@@ -756,11 +756,11 @@ const a1 = {
|
|
|
756
756
|
contrast: y4,
|
|
757
757
|
container: S4,
|
|
758
758
|
overlay: B4,
|
|
759
|
-
"size-16": "_size-
|
|
760
|
-
"size-24": "_size-
|
|
761
|
-
"size-48": "_size-
|
|
762
|
-
"size-64": "_size-
|
|
763
|
-
"size-96": "_size-
|
|
759
|
+
"size-16": "_size-16_1xslo_68",
|
|
760
|
+
"size-24": "_size-24_1xslo_72",
|
|
761
|
+
"size-48": "_size-48_1xslo_76",
|
|
762
|
+
"size-64": "_size-64_1xslo_80",
|
|
763
|
+
"size-96": "_size-96_1xslo_84"
|
|
764
764
|
};
|
|
765
765
|
var Z2 = { exports: {} };
|
|
766
766
|
/*!
|
|
@@ -802,7 +802,7 @@ function j4() {
|
|
|
802
802
|
})(Z2)), Z2.exports;
|
|
803
803
|
}
|
|
804
804
|
var O4 = j4();
|
|
805
|
-
const
|
|
805
|
+
const k1 = /* @__PURE__ */ x3(O4), b9 = o1(
|
|
806
806
|
({
|
|
807
807
|
size: t = 24,
|
|
808
808
|
variant: o = "accent",
|
|
@@ -811,7 +811,7 @@ const x1 = /* @__PURE__ */ x3(O4), b9 = r1(
|
|
|
811
811
|
style: s,
|
|
812
812
|
...l
|
|
813
813
|
}, c) => {
|
|
814
|
-
const g =
|
|
814
|
+
const g = k1(
|
|
815
815
|
s2.loader,
|
|
816
816
|
s2[o],
|
|
817
817
|
s2[`size-${t}`],
|
|
@@ -840,7 +840,7 @@ const x1 = /* @__PURE__ */ x3(O4), b9 = r1(
|
|
|
840
840
|
}
|
|
841
841
|
);
|
|
842
842
|
}
|
|
843
|
-
), R4 =
|
|
843
|
+
), R4 = o1((t, o) => {
|
|
844
844
|
const {
|
|
845
845
|
loading: i = !1,
|
|
846
846
|
size: C = 24,
|
|
@@ -850,12 +850,12 @@ const x1 = /* @__PURE__ */ x3(O4), b9 = r1(
|
|
|
850
850
|
style: g,
|
|
851
851
|
"data-testid": L,
|
|
852
852
|
...v
|
|
853
|
-
} = t, d =
|
|
853
|
+
} = t, d = k1(s2.container, c);
|
|
854
854
|
return /* @__PURE__ */ r.jsxs("div", { ref: o, className: d, style: g, "data-testid": L, ...v, children: [
|
|
855
855
|
l,
|
|
856
856
|
i && /* @__PURE__ */ r.jsx("div", { className: s2.overlay, children: /* @__PURE__ */ r.jsx(b9, { size: C, variant: s, "data-testid": `${L}-spinner` }) })
|
|
857
857
|
] });
|
|
858
|
-
}), E2 =
|
|
858
|
+
}), E2 = o1((t, o) => t.children ? /* @__PURE__ */ r.jsx(
|
|
859
859
|
R4,
|
|
860
860
|
{
|
|
861
861
|
ref: o,
|
|
@@ -915,7 +915,7 @@ const x1 = /* @__PURE__ */ x3(O4), b9 = r1(
|
|
|
915
915
|
"span",
|
|
916
916
|
{
|
|
917
917
|
"data-testid": "button-subcaption",
|
|
918
|
-
className: H(P.subcaption,
|
|
918
|
+
className: H(P.subcaption, s1["typography-label-4-regular"]),
|
|
919
919
|
children: C
|
|
920
920
|
}
|
|
921
921
|
)
|
|
@@ -929,12 +929,12 @@ const x1 = /* @__PURE__ */ x3(O4), b9 = r1(
|
|
|
929
929
|
"span",
|
|
930
930
|
{
|
|
931
931
|
"data-testid": "button-postfix",
|
|
932
|
-
className: H(P.postfix,
|
|
932
|
+
className: H(P.postfix, s1["typography-subtitle-2-semibold"]),
|
|
933
933
|
children: i
|
|
934
934
|
}
|
|
935
935
|
) })
|
|
936
936
|
] });
|
|
937
|
-
}, I2 =
|
|
937
|
+
}, I2 = o1((t, o) => {
|
|
938
938
|
const {
|
|
939
939
|
mode: i = "primary",
|
|
940
940
|
size: C = "m",
|
|
@@ -945,23 +945,23 @@ const x1 = /* @__PURE__ */ x3(O4), b9 = r1(
|
|
|
945
945
|
tabIndex: L,
|
|
946
946
|
subcaption: v,
|
|
947
947
|
postfix: d,
|
|
948
|
-
stretched:
|
|
948
|
+
stretched: _,
|
|
949
949
|
iconLeft: E,
|
|
950
950
|
loading: h
|
|
951
|
-
} = t, p = i === "tertiary",
|
|
951
|
+
} = t, p = i === "tertiary", f = p && "paddings" in t ? t.paddings ?? !0 : !0, m = !!("loading" in t && h), w = !l && !m, u = !!(!g && E && !d), k = typeof _ == "object" ? _.justify === "space-between" : void 0, b = I4(C), B = s1[b], x = f4(l, i, s), Z = l || m ? -1 : L, V = H(
|
|
952
952
|
P.button,
|
|
953
953
|
P[C],
|
|
954
954
|
P[i],
|
|
955
955
|
P[s],
|
|
956
|
-
|
|
956
|
+
B,
|
|
957
957
|
{
|
|
958
958
|
[P.disabled]: l,
|
|
959
959
|
[P.loading]: m,
|
|
960
|
-
[P.stretched]:
|
|
960
|
+
[P.stretched]: _,
|
|
961
961
|
[P.spaceBetween]: k,
|
|
962
962
|
[P.withSubcaption]: !!(v && C === "l" && g),
|
|
963
963
|
[P.iconOnly]: u,
|
|
964
|
-
[P.noPaddings]: p && !
|
|
964
|
+
[P.noPaddings]: p && !f
|
|
965
965
|
},
|
|
966
966
|
c
|
|
967
967
|
), j = {
|
|
@@ -972,48 +972,48 @@ const x1 = /* @__PURE__ */ x3(O4), b9 = r1(
|
|
|
972
972
|
size: C
|
|
973
973
|
};
|
|
974
974
|
if (V3(t)) {
|
|
975
|
-
const { href: O, onClick:
|
|
975
|
+
const { href: O, onClick: D, style: A, target: y, rel: R, "data-testid": I, ...T } = t, U = f2(T), N = y ?? (t.isExternal ? "_blank" : void 0), n1 = Z9({ rel: R, target: N }), K = (X) => {
|
|
976
976
|
if (!w) {
|
|
977
|
-
|
|
977
|
+
X.preventDefault();
|
|
978
978
|
return;
|
|
979
979
|
}
|
|
980
|
-
|
|
980
|
+
D == null || D(X);
|
|
981
981
|
};
|
|
982
982
|
return /* @__PURE__ */ r.jsx(
|
|
983
983
|
"a",
|
|
984
984
|
{
|
|
985
985
|
ref: o,
|
|
986
|
-
className:
|
|
986
|
+
className: V,
|
|
987
987
|
href: w ? O : void 0,
|
|
988
|
-
tabIndex:
|
|
989
|
-
onClick:
|
|
990
|
-
"data-testid":
|
|
988
|
+
tabIndex: Z,
|
|
989
|
+
onClick: K,
|
|
990
|
+
"data-testid": I,
|
|
991
991
|
"aria-disabled": l || m,
|
|
992
|
-
style:
|
|
992
|
+
style: A,
|
|
993
993
|
target: N,
|
|
994
|
-
rel:
|
|
994
|
+
rel: n1,
|
|
995
995
|
...U,
|
|
996
996
|
children: /* @__PURE__ */ r.jsx(o9, { ...j })
|
|
997
997
|
}
|
|
998
998
|
);
|
|
999
999
|
}
|
|
1000
1000
|
if (y3(t)) {
|
|
1001
|
-
const { type: O = "button", onClick:
|
|
1002
|
-
w &&
|
|
1001
|
+
const { type: O = "button", onClick: D, style: A, "data-testid": y, ...R } = t, I = f2(R), T = C === "l" ? 24 : 16, U = (N) => {
|
|
1002
|
+
w && D && D(N);
|
|
1003
1003
|
};
|
|
1004
1004
|
return /* @__PURE__ */ r.jsxs(
|
|
1005
1005
|
"button",
|
|
1006
1006
|
{
|
|
1007
1007
|
ref: o,
|
|
1008
1008
|
type: O,
|
|
1009
|
-
className:
|
|
1009
|
+
className: V,
|
|
1010
1010
|
disabled: l,
|
|
1011
|
-
tabIndex:
|
|
1011
|
+
tabIndex: Z,
|
|
1012
1012
|
onClick: U,
|
|
1013
|
-
"data-testid":
|
|
1013
|
+
"data-testid": y,
|
|
1014
1014
|
"aria-disabled": l || m,
|
|
1015
|
-
style:
|
|
1016
|
-
...
|
|
1015
|
+
style: A,
|
|
1016
|
+
...I,
|
|
1017
1017
|
children: [
|
|
1018
1018
|
/* @__PURE__ */ r.jsx("div", { className: H(P.content, { [P.contentHidden]: m }), children: /* @__PURE__ */ r.jsx(o9, { ...j }) }),
|
|
1019
1019
|
m && /* @__PURE__ */ r.jsx("div", { className: P.loaderWrapper, children: /* @__PURE__ */ r.jsx(
|
|
@@ -1022,7 +1022,7 @@ const x1 = /* @__PURE__ */ x3(O4), b9 = r1(
|
|
|
1022
1022
|
variant: x,
|
|
1023
1023
|
"aria-hidden": "true",
|
|
1024
1024
|
"data-testid": "button-loader",
|
|
1025
|
-
size:
|
|
1025
|
+
size: T
|
|
1026
1026
|
}
|
|
1027
1027
|
) })
|
|
1028
1028
|
]
|
|
@@ -1032,7 +1032,7 @@ const x1 = /* @__PURE__ */ x3(O4), b9 = r1(
|
|
|
1032
1032
|
return null;
|
|
1033
1033
|
});
|
|
1034
1034
|
I2.displayName = "Button";
|
|
1035
|
-
const V9 =
|
|
1035
|
+
const V9 = o1(
|
|
1036
1036
|
(t, o) => {
|
|
1037
1037
|
const { iconLeft: i, className: C, ...s } = t, c = {
|
|
1038
1038
|
...s,
|
|
@@ -1040,7 +1040,7 @@ const V9 = r1(
|
|
|
1040
1040
|
buttonStyle: "neutral",
|
|
1041
1041
|
size: "m",
|
|
1042
1042
|
iconLeft: i ?? /* @__PURE__ */ r.jsx(W4, {}),
|
|
1043
|
-
className: H(P.backButton,
|
|
1043
|
+
className: H(P.backButton, s1["typography-subtitle-1-semibold"], C)
|
|
1044
1044
|
};
|
|
1045
1045
|
return /* @__PURE__ */ r.jsx(I2, { ref: o, ...c });
|
|
1046
1046
|
}
|
|
@@ -1061,7 +1061,7 @@ const i9 = ({
|
|
|
1061
1061
|
] }),
|
|
1062
1062
|
s && C && /* @__PURE__ */ r.jsx("span", { "data-testid": "button-icon", className: P.icon, children: o })
|
|
1063
1063
|
] });
|
|
1064
|
-
}, y9 =
|
|
1064
|
+
}, y9 = o1(
|
|
1065
1065
|
(t, o) => {
|
|
1066
1066
|
const {
|
|
1067
1067
|
mode: i = "primary",
|
|
@@ -1073,8 +1073,8 @@ const i9 = ({
|
|
|
1073
1073
|
tabIndex: L,
|
|
1074
1074
|
showUnderline: v = !1,
|
|
1075
1075
|
iconLeft: d,
|
|
1076
|
-
iconRight:
|
|
1077
|
-
} = t, E = C !== void 0, h = E ? d : void 0, p = E ?
|
|
1076
|
+
iconRight: _
|
|
1077
|
+
} = t, E = C !== void 0, h = E ? d : void 0, p = E ? _ : void 0, f = !l, m = !!(!g && p), w = E4(C ?? "m"), u = s1[w], k = l ? -1 : L, b = H(
|
|
1078
1078
|
P.button,
|
|
1079
1079
|
P[C ?? "m"],
|
|
1080
1080
|
P[i],
|
|
@@ -1087,40 +1087,40 @@ const i9 = ({
|
|
|
1087
1087
|
[P.underline]: v
|
|
1088
1088
|
},
|
|
1089
1089
|
c
|
|
1090
|
-
),
|
|
1090
|
+
), B = {
|
|
1091
1091
|
iconLeft: h,
|
|
1092
1092
|
iconRight: p,
|
|
1093
1093
|
children: g,
|
|
1094
1094
|
showLinkIcons: E
|
|
1095
1095
|
};
|
|
1096
1096
|
if (t.as === "a") {
|
|
1097
|
-
const { href:
|
|
1098
|
-
if (!
|
|
1099
|
-
|
|
1097
|
+
const { href: y, onClick: R, style: I, target: T, rel: U, "data-testid": N, isExternal: n1, ...K } = t, X = f2(K), W = T ?? (n1 ? "_blank" : void 0), J = Z9({ rel: U, target: W }), L1 = (p1) => {
|
|
1098
|
+
if (!f) {
|
|
1099
|
+
p1.preventDefault();
|
|
1100
1100
|
return;
|
|
1101
1101
|
}
|
|
1102
|
-
R == null || R(
|
|
1102
|
+
R == null || R(p1);
|
|
1103
1103
|
};
|
|
1104
1104
|
return /* @__PURE__ */ r.jsx(
|
|
1105
1105
|
"a",
|
|
1106
1106
|
{
|
|
1107
1107
|
ref: o,
|
|
1108
1108
|
className: b,
|
|
1109
|
-
href:
|
|
1109
|
+
href: f ? y : void 0,
|
|
1110
1110
|
tabIndex: k,
|
|
1111
|
-
onClick:
|
|
1111
|
+
onClick: L1,
|
|
1112
1112
|
"data-testid": N,
|
|
1113
1113
|
"aria-disabled": l,
|
|
1114
|
-
style:
|
|
1115
|
-
target:
|
|
1116
|
-
rel:
|
|
1117
|
-
...
|
|
1118
|
-
children: /* @__PURE__ */ r.jsx(i9, { ...
|
|
1114
|
+
style: I,
|
|
1115
|
+
target: W,
|
|
1116
|
+
rel: J,
|
|
1117
|
+
...X,
|
|
1118
|
+
children: /* @__PURE__ */ r.jsx(i9, { ...B })
|
|
1119
1119
|
}
|
|
1120
1120
|
);
|
|
1121
1121
|
}
|
|
1122
|
-
const { type: x = "button", onClick:
|
|
1123
|
-
|
|
1122
|
+
const { type: x = "button", onClick: Z, style: V, "data-testid": j, ...O } = t, D = f2(O), A = (y) => {
|
|
1123
|
+
f && Z && Z(y);
|
|
1124
1124
|
};
|
|
1125
1125
|
return /* @__PURE__ */ r.jsx(
|
|
1126
1126
|
"button",
|
|
@@ -1130,18 +1130,18 @@ const i9 = ({
|
|
|
1130
1130
|
className: b,
|
|
1131
1131
|
disabled: l,
|
|
1132
1132
|
tabIndex: k,
|
|
1133
|
-
onClick:
|
|
1133
|
+
onClick: A,
|
|
1134
1134
|
"data-testid": j,
|
|
1135
1135
|
"aria-disabled": l,
|
|
1136
|
-
style:
|
|
1137
|
-
...
|
|
1138
|
-
children: /* @__PURE__ */ r.jsx(i9, { ...
|
|
1136
|
+
style: V,
|
|
1137
|
+
...D,
|
|
1138
|
+
children: /* @__PURE__ */ r.jsx(i9, { ...B })
|
|
1139
1139
|
}
|
|
1140
1140
|
);
|
|
1141
1141
|
}
|
|
1142
1142
|
);
|
|
1143
1143
|
y9.displayName = "Button.Link";
|
|
1144
|
-
const
|
|
1144
|
+
const c2 = Object.assign(I2, {
|
|
1145
1145
|
Back: V9,
|
|
1146
1146
|
Link: y9
|
|
1147
1147
|
}), A4 = "_avatar_19ug4_18", P4 = "_clickable_19ug4_40", $4 = "_icon_19ug4_57", N4 = "_disabled_19ug4_62", z4 = "_loading_19ug4_67", U4 = "_image_19ug4_73", G4 = "_name_19ug4_73", W1 = {
|
|
@@ -1231,7 +1231,7 @@ const r6 = "data:image/svg+xml,%3csvg%20opacity='0.9'%20preserveAspectRatio='xMi
|
|
|
1231
1231
|
female: o6,
|
|
1232
1232
|
org: l6,
|
|
1233
1233
|
neutral: i6
|
|
1234
|
-
},
|
|
1234
|
+
}, L2 = o1((t, o) => {
|
|
1235
1235
|
const {
|
|
1236
1236
|
style: i,
|
|
1237
1237
|
size: C = 40,
|
|
@@ -1242,41 +1242,41 @@ const r6 = "data:image/svg+xml,%3csvg%20opacity='0.9'%20preserveAspectRatio='xMi
|
|
|
1242
1242
|
placeholderType: L = "neutral",
|
|
1243
1243
|
name: v,
|
|
1244
1244
|
imgSrc: d,
|
|
1245
|
-
imgAlt:
|
|
1245
|
+
imgAlt: _,
|
|
1246
1246
|
icon: E,
|
|
1247
1247
|
imgProps: h,
|
|
1248
1248
|
colorScheme: p,
|
|
1249
|
-
className:
|
|
1249
|
+
className: f,
|
|
1250
1250
|
"data-testid": m,
|
|
1251
1251
|
...w
|
|
1252
|
-
} = t, { onClick: u, onPointerDown: k } = w,
|
|
1253
|
-
|
|
1254
|
-
d &&
|
|
1252
|
+
} = t, { onClick: u, onPointerDown: k } = w, B = !l && !s && (!!u || !!k), [x, Z] = d1(!1);
|
|
1253
|
+
Q(() => {
|
|
1254
|
+
d && Z(!1);
|
|
1255
1255
|
}, [d]);
|
|
1256
|
-
const
|
|
1257
|
-
|
|
1256
|
+
const V = d && !x ? "image" : E ? "icon" : v ? "name" : "placeholder", j = p || V === "name" && K4(v) || "gray", O = n6(C), D = e6(C, c), A = H(
|
|
1257
|
+
f,
|
|
1258
1258
|
W1.avatar,
|
|
1259
1259
|
W1[`variant-${g}`],
|
|
1260
1260
|
W1[`color-${j}`],
|
|
1261
|
-
|
|
1261
|
+
s1[O],
|
|
1262
1262
|
{
|
|
1263
1263
|
[W1.disabled]: l,
|
|
1264
1264
|
[W1.loading]: s,
|
|
1265
|
-
[W1.clickable]:
|
|
1265
|
+
[W1.clickable]: B
|
|
1266
1266
|
}
|
|
1267
|
-
),
|
|
1267
|
+
), y = {
|
|
1268
1268
|
"--avatar-size": `${C}px`,
|
|
1269
|
-
"--avatar-border-radius": `${
|
|
1269
|
+
"--avatar-border-radius": `${D}px`,
|
|
1270
1270
|
...i
|
|
1271
1271
|
}, R = {
|
|
1272
|
-
icon: () => /* @__PURE__ */ r.jsx("span", { "data-testid": "avatar-icon", title:
|
|
1272
|
+
icon: () => /* @__PURE__ */ r.jsx("span", { "data-testid": "avatar-icon", title: _ || void 0, role: "img", className: W1.icon, children: E == null ? void 0 : E({}) }),
|
|
1273
1273
|
name: () => /* @__PURE__ */ r.jsx(
|
|
1274
1274
|
"span",
|
|
1275
1275
|
{
|
|
1276
1276
|
role: "textbox",
|
|
1277
1277
|
"data-testid": "avatar-name",
|
|
1278
1278
|
className: W1.name,
|
|
1279
|
-
title:
|
|
1279
|
+
title: _ || void 0,
|
|
1280
1280
|
children: J4(v || "")
|
|
1281
1281
|
}
|
|
1282
1282
|
),
|
|
@@ -1287,7 +1287,7 @@ const r6 = "data:image/svg+xml,%3csvg%20opacity='0.9'%20preserveAspectRatio='xMi
|
|
|
1287
1287
|
"data-testid": "avatar-placeholder",
|
|
1288
1288
|
className: W1.image,
|
|
1289
1289
|
src: C6[L],
|
|
1290
|
-
alt:
|
|
1290
|
+
alt: _ || void 0
|
|
1291
1291
|
}
|
|
1292
1292
|
),
|
|
1293
1293
|
image: () => /* @__PURE__ */ r.jsx(
|
|
@@ -1297,34 +1297,34 @@ const r6 = "data:image/svg+xml,%3csvg%20opacity='0.9'%20preserveAspectRatio='xMi
|
|
|
1297
1297
|
...h,
|
|
1298
1298
|
className: W1.image,
|
|
1299
1299
|
src: d || void 0,
|
|
1300
|
-
alt:
|
|
1301
|
-
onLoad: () =>
|
|
1302
|
-
onError: (
|
|
1300
|
+
alt: _ || void 0,
|
|
1301
|
+
onLoad: () => Z(!1),
|
|
1302
|
+
onError: (T) => {
|
|
1303
1303
|
var U;
|
|
1304
|
-
|
|
1304
|
+
Z(!0), (U = h == null ? void 0 : h.onError) == null || U.call(h, T);
|
|
1305
1305
|
}
|
|
1306
1306
|
}
|
|
1307
1307
|
)
|
|
1308
|
-
},
|
|
1309
|
-
|
|
1308
|
+
}, I = (T) => {
|
|
1309
|
+
B && (u == null || u(T));
|
|
1310
1310
|
};
|
|
1311
1311
|
return /* @__PURE__ */ r.jsx(
|
|
1312
1312
|
"div",
|
|
1313
1313
|
{
|
|
1314
1314
|
ref: o,
|
|
1315
|
-
onClick:
|
|
1316
|
-
className:
|
|
1317
|
-
style:
|
|
1315
|
+
onClick: I,
|
|
1316
|
+
className: A,
|
|
1317
|
+
style: y,
|
|
1318
1318
|
"data-testid": m,
|
|
1319
1319
|
"aria-disabled": l || s,
|
|
1320
|
-
children: R[
|
|
1320
|
+
children: R[V](null)
|
|
1321
1321
|
}
|
|
1322
1322
|
);
|
|
1323
1323
|
}), a6 = "_avatarGroup_157g4_1", s6 = {
|
|
1324
1324
|
avatarGroup: a6
|
|
1325
1325
|
}, c6 = (t, o) => {
|
|
1326
1326
|
const { t: i, i18n: C } = k3();
|
|
1327
|
-
return
|
|
1327
|
+
return Q(() => {
|
|
1328
1328
|
}, [t, o, C]), i;
|
|
1329
1329
|
}, d6 = (t) => t === "rgba(0, 0, 0, 0)" || t === "transparent" || t.startsWith("rgba") && t.endsWith(", 0)"), h6 = (t) => {
|
|
1330
1330
|
if (!t) return null;
|
|
@@ -1336,8 +1336,8 @@ const r6 = "data:image/svg+xml,%3csvg%20opacity='0.9'%20preserveAspectRatio='xMi
|
|
|
1336
1336
|
}
|
|
1337
1337
|
return null;
|
|
1338
1338
|
}, T2 = () => {
|
|
1339
|
-
const t =
|
|
1340
|
-
return
|
|
1339
|
+
const t = v1(null), [o, i] = d1(null);
|
|
1340
|
+
return Q(() => {
|
|
1341
1341
|
if (t.current) {
|
|
1342
1342
|
const C = h6(t.current);
|
|
1343
1343
|
i(C);
|
|
@@ -1345,19 +1345,19 @@ const r6 = "data:image/svg+xml,%3csvg%20opacity='0.9'%20preserveAspectRatio='xMi
|
|
|
1345
1345
|
}, []), { ref: t, bgColor: o };
|
|
1346
1346
|
};
|
|
1347
1347
|
function a9(t, o, i) {
|
|
1348
|
-
|
|
1348
|
+
Q(() => (window.addEventListener(t, o, i), () => window.removeEventListener(t, o, i)), [t, o]);
|
|
1349
1349
|
}
|
|
1350
1350
|
const s9 = {
|
|
1351
1351
|
passive: !0
|
|
1352
1352
|
};
|
|
1353
1353
|
function g6() {
|
|
1354
|
-
const [t, o] =
|
|
1354
|
+
const [t, o] = d1({
|
|
1355
1355
|
width: 0,
|
|
1356
1356
|
height: 0
|
|
1357
|
-
}), i =
|
|
1357
|
+
}), i = x1(() => {
|
|
1358
1358
|
o({ width: window.innerWidth || 0, height: window.innerHeight || 0 });
|
|
1359
1359
|
}, []);
|
|
1360
|
-
return a9("resize", i, s9), a9("orientationchange", i, s9),
|
|
1360
|
+
return a9("resize", i, s9), a9("orientationchange", i, s9), Q(i, []), t;
|
|
1361
1361
|
}
|
|
1362
1362
|
function m6(t = 768) {
|
|
1363
1363
|
const { width: o } = g6();
|
|
@@ -1372,22 +1372,22 @@ const p6 = 2, u6 = (t) => {
|
|
|
1372
1372
|
overflowCount: l = 0,
|
|
1373
1373
|
overflowProps: c,
|
|
1374
1374
|
cutoutBackground: g
|
|
1375
|
-
} = t, v = -(i * C) + p6, { ref: d, bgColor:
|
|
1375
|
+
} = t, v = -(i * C) + p6, { ref: d, bgColor: _ } = T2(), E = g || _ || "#ffffff", h = k1(s6.avatarGroup), p = {
|
|
1376
1376
|
"--avatar-cutout-bg": E
|
|
1377
1377
|
};
|
|
1378
1378
|
return o.length === 0 ? null : /* @__PURE__ */ r.jsxs("div", { className: h, ref: d, style: p, children: [
|
|
1379
|
-
o.map((
|
|
1380
|
-
if (
|
|
1381
|
-
const w =
|
|
1379
|
+
o.map((f, m) => {
|
|
1380
|
+
if (f.wrapper) {
|
|
1381
|
+
const w = f.wrapper;
|
|
1382
1382
|
return /* @__PURE__ */ r.jsx(
|
|
1383
1383
|
"div",
|
|
1384
1384
|
{
|
|
1385
1385
|
style: {
|
|
1386
1386
|
marginRight: v
|
|
1387
1387
|
},
|
|
1388
|
-
children: /* @__PURE__ */ r.jsx(w, { children: /* @__PURE__ */ r.jsx(
|
|
1388
|
+
children: /* @__PURE__ */ r.jsx(w, { children: /* @__PURE__ */ r.jsx(L2, { size: i, shape: s, ...f }) })
|
|
1389
1389
|
},
|
|
1390
|
-
_2(
|
|
1390
|
+
_2(f) + m
|
|
1391
1391
|
);
|
|
1392
1392
|
}
|
|
1393
1393
|
return /* @__PURE__ */ r.jsx(
|
|
@@ -1396,13 +1396,13 @@ const p6 = 2, u6 = (t) => {
|
|
|
1396
1396
|
style: {
|
|
1397
1397
|
marginRight: v
|
|
1398
1398
|
},
|
|
1399
|
-
children: /* @__PURE__ */ r.jsx(
|
|
1399
|
+
children: /* @__PURE__ */ r.jsx(L2, { size: i, shape: s, ...f })
|
|
1400
1400
|
},
|
|
1401
|
-
_2(
|
|
1401
|
+
_2(f) + m
|
|
1402
1402
|
);
|
|
1403
1403
|
}),
|
|
1404
1404
|
l > 0 && /* @__PURE__ */ r.jsx("div", { style: { marginRight: v }, children: /* @__PURE__ */ r.jsx(
|
|
1405
|
-
|
|
1405
|
+
L2,
|
|
1406
1406
|
{
|
|
1407
1407
|
size: i,
|
|
1408
1408
|
shape: s,
|
|
@@ -1413,7 +1413,7 @@ const p6 = 2, u6 = (t) => {
|
|
|
1413
1413
|
}
|
|
1414
1414
|
) })
|
|
1415
1415
|
] });
|
|
1416
|
-
}, L6 = Object.assign(
|
|
1416
|
+
}, L6 = Object.assign(L2, {
|
|
1417
1417
|
Group: u6
|
|
1418
1418
|
}), w6 = "_overlay_1k1w9_6", v6 = "_container_1k1w9_20", f6 = "_grabber_1k1w9_98", C2 = {
|
|
1419
1419
|
overlay: w6,
|
|
@@ -1484,7 +1484,7 @@ function k6({
|
|
|
1484
1484
|
placement: i = "center",
|
|
1485
1485
|
disableEscapeKey: C = !1
|
|
1486
1486
|
}) {
|
|
1487
|
-
const s =
|
|
1487
|
+
const s = x1(
|
|
1488
1488
|
(p) => {
|
|
1489
1489
|
o == null || o(p);
|
|
1490
1490
|
},
|
|
@@ -1503,10 +1503,10 @@ function k6({
|
|
|
1503
1503
|
opacity: 0
|
|
1504
1504
|
},
|
|
1505
1505
|
...L
|
|
1506
|
-
}),
|
|
1506
|
+
}), _ = M9(c, {
|
|
1507
1507
|
escapeKey: !C,
|
|
1508
1508
|
outsidePress: !1
|
|
1509
|
-
}), E = h3(c, { role: "dialog" }), { getFloatingProps: h } = x9([
|
|
1509
|
+
}), E = h3(c, { role: "dialog" }), { getFloatingProps: h } = x9([_, E]);
|
|
1510
1510
|
return t2(
|
|
1511
1511
|
() => ({
|
|
1512
1512
|
/** `isMounted`: Флаг для условного рендеринга с поддержкой анимации закрытия. */
|
|
@@ -1536,64 +1536,64 @@ function x6({
|
|
|
1536
1536
|
onOpenChange: o,
|
|
1537
1537
|
placement: i,
|
|
1538
1538
|
disableEscapeKey: C
|
|
1539
|
-
}), d =
|
|
1540
|
-
|
|
1539
|
+
}), d = v1({ startX: 0, startY: 0, dragging: !1 }), [_, E] = d1(0), h = s == null ? void 0 : s.direction, p = (s == null ? void 0 : s.threshold) ?? M6, f = h === "top" || h === "bottom", m = t && !!h;
|
|
1540
|
+
Q(() => {
|
|
1541
1541
|
t || (d.current.dragging = !1, E(0));
|
|
1542
1542
|
}, [t]);
|
|
1543
|
-
const w =
|
|
1543
|
+
const w = x1(
|
|
1544
1544
|
(x) => {
|
|
1545
1545
|
m && (d.current.dragging = !0, d.current.startX = x.clientX, d.current.startY = x.clientY, E(0));
|
|
1546
1546
|
},
|
|
1547
1547
|
[m]
|
|
1548
|
-
), u =
|
|
1548
|
+
), u = x1(
|
|
1549
1549
|
(x) => {
|
|
1550
1550
|
if (!d.current.dragging || !m) return;
|
|
1551
|
-
const
|
|
1551
|
+
const Z = x.clientX - d.current.startX, V = x.clientY - d.current.startY;
|
|
1552
1552
|
let j;
|
|
1553
1553
|
switch (h) {
|
|
1554
1554
|
case "bottom":
|
|
1555
|
-
j = Math.max(0,
|
|
1555
|
+
j = Math.max(0, V);
|
|
1556
1556
|
break;
|
|
1557
1557
|
case "top":
|
|
1558
|
-
j = Math.max(0, -
|
|
1558
|
+
j = Math.max(0, -V);
|
|
1559
1559
|
break;
|
|
1560
1560
|
case "right":
|
|
1561
|
-
j = Math.max(0,
|
|
1561
|
+
j = Math.max(0, Z);
|
|
1562
1562
|
break;
|
|
1563
1563
|
case "left":
|
|
1564
|
-
j = Math.max(0, -
|
|
1564
|
+
j = Math.max(0, -Z);
|
|
1565
1565
|
break;
|
|
1566
1566
|
default:
|
|
1567
|
-
j =
|
|
1567
|
+
j = f ? V : Z;
|
|
1568
1568
|
}
|
|
1569
1569
|
E(j);
|
|
1570
1570
|
},
|
|
1571
|
-
[m, h,
|
|
1572
|
-
), k =
|
|
1571
|
+
[m, h, f]
|
|
1572
|
+
), k = x1(
|
|
1573
1573
|
(x) => {
|
|
1574
|
-
var
|
|
1574
|
+
var Z, V;
|
|
1575
1575
|
if (!(!d.current.dragging || !m)) {
|
|
1576
1576
|
d.current.dragging = !1;
|
|
1577
1577
|
try {
|
|
1578
|
-
(
|
|
1578
|
+
(V = (Z = x.currentTarget).hasPointerCapture) != null && V.call(Z, x.pointerId) && x.currentTarget.releasePointerCapture(x.pointerId);
|
|
1579
1579
|
} catch {
|
|
1580
1580
|
}
|
|
1581
|
-
|
|
1581
|
+
_ >= p ? o(!1) : E(0);
|
|
1582
1582
|
}
|
|
1583
1583
|
},
|
|
1584
|
-
[
|
|
1584
|
+
[_, p, o, m]
|
|
1585
1585
|
), b = t2(() => {
|
|
1586
1586
|
if (!m) return c;
|
|
1587
1587
|
if (d.current.dragging) {
|
|
1588
1588
|
const x = { ...c, transitionProperty: "none" };
|
|
1589
|
-
if (
|
|
1590
|
-
const
|
|
1591
|
-
x.transform =
|
|
1589
|
+
if (_ > 0) {
|
|
1590
|
+
const Z = h === "left" || h === "top" ? -_ : _;
|
|
1591
|
+
x.transform = f ? `translateY(${Z}px)` : `translateX(${Z}px)`;
|
|
1592
1592
|
}
|
|
1593
1593
|
return x;
|
|
1594
1594
|
}
|
|
1595
1595
|
return c;
|
|
1596
|
-
}, [c,
|
|
1596
|
+
}, [c, _, m, f, h]), B = x1(
|
|
1597
1597
|
(x) => l(m ? {
|
|
1598
1598
|
...x,
|
|
1599
1599
|
onPointerDown: w,
|
|
@@ -1610,12 +1610,12 @@ function x6({
|
|
|
1610
1610
|
context: L,
|
|
1611
1611
|
refs: v,
|
|
1612
1612
|
transitionStyles: b,
|
|
1613
|
-
getFloatingProps:
|
|
1613
|
+
getFloatingProps: B
|
|
1614
1614
|
}),
|
|
1615
|
-
[g, b,
|
|
1615
|
+
[g, b, B, L, v]
|
|
1616
1616
|
);
|
|
1617
1617
|
}
|
|
1618
|
-
const S9 =
|
|
1618
|
+
const S9 = o1((t, o) => {
|
|
1619
1619
|
const {
|
|
1620
1620
|
placement: i = "default",
|
|
1621
1621
|
open: C,
|
|
@@ -1626,11 +1626,11 @@ const S9 = r1((t, o) => {
|
|
|
1626
1626
|
children: L,
|
|
1627
1627
|
disableOutsideClick: v = !1,
|
|
1628
1628
|
disableEscapeKey: d = !1,
|
|
1629
|
-
disableOverlay:
|
|
1629
|
+
disableOverlay: _ = !1,
|
|
1630
1630
|
closeOnDrag: E,
|
|
1631
1631
|
className: h,
|
|
1632
1632
|
style: p,
|
|
1633
|
-
"data-testid":
|
|
1633
|
+
"data-testid": f,
|
|
1634
1634
|
...m
|
|
1635
1635
|
} = t;
|
|
1636
1636
|
C === void 0 && process.env.NODE_ENV !== "production" && console.error(
|
|
@@ -1642,17 +1642,17 @@ const S9 = r1((t, o) => {
|
|
|
1642
1642
|
placement: i,
|
|
1643
1643
|
disableEscapeKey: d,
|
|
1644
1644
|
closeOnDrag: E
|
|
1645
|
-
}), { isMounted: u, transitionStyles: k } = w, b = g3([o, w.refs.setFloating]),
|
|
1645
|
+
}), { isMounted: u, transitionStyles: k } = w, b = g3([o, w.refs.setFloating]), B = () => {
|
|
1646
1646
|
v || s(!1);
|
|
1647
1647
|
};
|
|
1648
1648
|
return u ? (
|
|
1649
1649
|
// `FloatingPortal` рендерит диалог в корне `document.body`,
|
|
1650
1650
|
// чтобы избежать проблем с z-index и overflow.
|
|
1651
1651
|
/* @__PURE__ */ r.jsxs(H9, { ...c, children: [
|
|
1652
|
-
!
|
|
1652
|
+
!_ && /* @__PURE__ */ r.jsx(
|
|
1653
1653
|
m3,
|
|
1654
1654
|
{
|
|
1655
|
-
onPointerDown:
|
|
1655
|
+
onPointerDown: B,
|
|
1656
1656
|
"data-testid": "dialog-overlay",
|
|
1657
1657
|
className: H(C2.overlay, l == null ? void 0 : l.className),
|
|
1658
1658
|
lockScroll: (l == null ? void 0 : l.lockScroll) ?? !0,
|
|
@@ -1678,7 +1678,7 @@ const S9 = r1((t, o) => {
|
|
|
1678
1678
|
role: "dialog",
|
|
1679
1679
|
className: H(h, C2.container, C2[`placement-${i}`]),
|
|
1680
1680
|
style: { ...p, ...k },
|
|
1681
|
-
"data-testid":
|
|
1681
|
+
"data-testid": f,
|
|
1682
1682
|
...w.getFloatingProps(m),
|
|
1683
1683
|
children: [
|
|
1684
1684
|
L,
|
|
@@ -1692,7 +1692,7 @@ const S9 = r1((t, o) => {
|
|
|
1692
1692
|
),
|
|
1693
1693
|
role: "presentation",
|
|
1694
1694
|
"aria-hidden": "true",
|
|
1695
|
-
"data-testid":
|
|
1695
|
+
"data-testid": f ? `${f}-grabber` : void 0
|
|
1696
1696
|
}
|
|
1697
1697
|
)
|
|
1698
1698
|
]
|
|
@@ -1750,17 +1750,17 @@ const S9 = r1((t, o) => {
|
|
|
1750
1750
|
disabled: L = !1,
|
|
1751
1751
|
typographyStyle: v = "primary",
|
|
1752
1752
|
...d
|
|
1753
|
-
},
|
|
1753
|
+
}, _) => {
|
|
1754
1754
|
const E = c || U6[i], h = H(
|
|
1755
1755
|
Q1.typography,
|
|
1756
|
-
|
|
1756
|
+
s1[`typography-${t}-${i}-${g}`],
|
|
1757
1757
|
Q1[v],
|
|
1758
1758
|
{
|
|
1759
1759
|
[Q1.disabled]: L
|
|
1760
1760
|
},
|
|
1761
1761
|
s
|
|
1762
1762
|
);
|
|
1763
|
-
return C ? /* @__PURE__ */ r.jsx(E, { ref:
|
|
1763
|
+
return C ? /* @__PURE__ */ r.jsx(E, { ref: _, className: h, "data-testid": l, ...d, children: C }) : null;
|
|
1764
1764
|
}
|
|
1765
1765
|
);
|
|
1766
1766
|
return o.displayName = `Typography.${t === "title" ? "Title" : "Subtitle"}`, o;
|
|
@@ -1776,10 +1776,10 @@ const S9 = r1((t, o) => {
|
|
|
1776
1776
|
disabled: L = !1,
|
|
1777
1777
|
typographyStyle: v = "primary",
|
|
1778
1778
|
...d
|
|
1779
|
-
},
|
|
1779
|
+
}, _) => {
|
|
1780
1780
|
const E = c, h = H(
|
|
1781
1781
|
Q1.typography,
|
|
1782
|
-
|
|
1782
|
+
s1[`typography-${t}-${i}-${g}`],
|
|
1783
1783
|
Q1[v],
|
|
1784
1784
|
{
|
|
1785
1785
|
[Q1.disabled]: L
|
|
@@ -1789,7 +1789,7 @@ const S9 = r1((t, o) => {
|
|
|
1789
1789
|
return C ? /* @__PURE__ */ r.jsx(
|
|
1790
1790
|
E,
|
|
1791
1791
|
{
|
|
1792
|
-
ref:
|
|
1792
|
+
ref: _,
|
|
1793
1793
|
className: h,
|
|
1794
1794
|
"data-testid": l,
|
|
1795
1795
|
...d,
|
|
@@ -1853,8 +1853,8 @@ const S9 = r1((t, o) => {
|
|
|
1853
1853
|
...K6,
|
|
1854
1854
|
...o
|
|
1855
1855
|
};
|
|
1856
|
-
return i ? /* @__PURE__ */ r.jsx(i, { children: /* @__PURE__ */ r.jsx(
|
|
1857
|
-
},
|
|
1856
|
+
return i ? /* @__PURE__ */ r.jsx(i, { children: /* @__PURE__ */ r.jsx(c2, { ...C }) }) : /* @__PURE__ */ r.jsx(c2, { ...C });
|
|
1857
|
+
}, Ed = o1((t, o) => {
|
|
1858
1858
|
const {
|
|
1859
1859
|
open: i,
|
|
1860
1860
|
onOpenChange: C,
|
|
@@ -1865,17 +1865,17 @@ const S9 = r1((t, o) => {
|
|
|
1865
1865
|
closeButton: L = { show: !0 },
|
|
1866
1866
|
backButton: v = { show: !1 },
|
|
1867
1867
|
title: d,
|
|
1868
|
-
subTitle:
|
|
1868
|
+
subTitle: _,
|
|
1869
1869
|
children: E,
|
|
1870
1870
|
footer: h,
|
|
1871
1871
|
hideHeaderDivider: p = !1,
|
|
1872
|
-
hideFooterDivider:
|
|
1872
|
+
hideFooterDivider: f = !1,
|
|
1873
1873
|
classNames: m,
|
|
1874
1874
|
styles: w,
|
|
1875
1875
|
headerTemplate: u,
|
|
1876
1876
|
"data-testid": k,
|
|
1877
1877
|
...b
|
|
1878
|
-
} = t,
|
|
1878
|
+
} = t, B = l === "bottom-sheet" ? "actions-title-actions" : "title-actions-actions", x = l === "bottom-sheet" ? { direction: "bottom", threshold: 80 } : t == null ? void 0 : t.closeOnDrag, Z = () => C(!1), V = !!(d || _ || L.show || v.show || c.length || g.length), j = d ? `${k || "modal"}-title` : void 0, O = _ ? `${k || "modal"}-subtitle` : void 0;
|
|
1879
1879
|
return /* @__PURE__ */ r.jsx(
|
|
1880
1880
|
S9,
|
|
1881
1881
|
{
|
|
@@ -1894,14 +1894,14 @@ const S9 = r1((t, o) => {
|
|
|
1894
1894
|
style: { width: s, ...w == null ? void 0 : w.container },
|
|
1895
1895
|
"data-testid": k ? `${k}-container` : void 0,
|
|
1896
1896
|
children: [
|
|
1897
|
-
|
|
1897
|
+
V && /* @__PURE__ */ r.jsxs(
|
|
1898
1898
|
"div",
|
|
1899
1899
|
{
|
|
1900
1900
|
"data-testid": k ? `${k}-header` : void 0,
|
|
1901
1901
|
className: H(
|
|
1902
1902
|
S1.header,
|
|
1903
1903
|
!p && S1.withBorder,
|
|
1904
|
-
S1[u ||
|
|
1904
|
+
S1[u || B],
|
|
1905
1905
|
m == null ? void 0 : m.header
|
|
1906
1906
|
),
|
|
1907
1907
|
style: w == null ? void 0 : w.header,
|
|
@@ -1919,7 +1919,7 @@ const S9 = r1((t, o) => {
|
|
|
1919
1919
|
props: {
|
|
1920
1920
|
iconLeft: /* @__PURE__ */ r.jsx(q6, {}),
|
|
1921
1921
|
"aria-label": "Back",
|
|
1922
|
-
onClick:
|
|
1922
|
+
onClick: Z,
|
|
1923
1923
|
...v == null ? void 0 : v.props
|
|
1924
1924
|
}
|
|
1925
1925
|
}
|
|
@@ -1943,7 +1943,7 @@ const S9 = r1((t, o) => {
|
|
|
1943
1943
|
props: {
|
|
1944
1944
|
iconLeft: /* @__PURE__ */ r.jsx(G6, {}),
|
|
1945
1945
|
"aria-label": "Close modal",
|
|
1946
|
-
onClick:
|
|
1946
|
+
onClick: Z,
|
|
1947
1947
|
...L == null ? void 0 : L.props
|
|
1948
1948
|
}
|
|
1949
1949
|
}
|
|
@@ -1951,13 +1951,13 @@ const S9 = r1((t, o) => {
|
|
|
1951
1951
|
]
|
|
1952
1952
|
}
|
|
1953
1953
|
),
|
|
1954
|
-
|
|
1954
|
+
_ && /* @__PURE__ */ r.jsx(
|
|
1955
1955
|
"div",
|
|
1956
1956
|
{
|
|
1957
1957
|
id: O,
|
|
1958
1958
|
className: H(S1.subTitle, m == null ? void 0 : m.subTitle),
|
|
1959
1959
|
style: w == null ? void 0 : w.subTitle,
|
|
1960
|
-
children: typeof
|
|
1960
|
+
children: typeof _ == "string" ? /* @__PURE__ */ r.jsx(X6, { size: 2, typographyStyle: "secondary", children: _ }) : _
|
|
1961
1961
|
}
|
|
1962
1962
|
)
|
|
1963
1963
|
]
|
|
@@ -1978,7 +1978,7 @@ const S9 = r1((t, o) => {
|
|
|
1978
1978
|
"div",
|
|
1979
1979
|
{
|
|
1980
1980
|
"data-testid": k ? `${k}-footer` : void 0,
|
|
1981
|
-
className: H(S1.footer, !
|
|
1981
|
+
className: H(S1.footer, !f && S1.withBorder, m == null ? void 0 : m.footer),
|
|
1982
1982
|
style: w == null ? void 0 : w.footer,
|
|
1983
1983
|
children: h
|
|
1984
1984
|
}
|
|
@@ -2079,7 +2079,7 @@ const S9 = r1((t, o) => {
|
|
|
2079
2079
|
}
|
|
2080
2080
|
)
|
|
2081
2081
|
}
|
|
2082
|
-
),
|
|
2082
|
+
), g2 = {
|
|
2083
2083
|
avatar: { icon: null, colorScheme: "gray" },
|
|
2084
2084
|
info: { icon: J6, colorScheme: "gray" },
|
|
2085
2085
|
success: { icon: e7, colorScheme: "green" },
|
|
@@ -2095,12 +2095,12 @@ const S9 = r1((t, o) => {
|
|
|
2095
2095
|
textBlock: a7,
|
|
2096
2096
|
title: s7,
|
|
2097
2097
|
subtitle: c7
|
|
2098
|
-
},
|
|
2098
|
+
}, m2 = {
|
|
2099
2099
|
m: { title: "typography-subtitle-1-semibold", subtitle: "typography-paragraph-3-regular" },
|
|
2100
2100
|
l: { title: "typography-title-5-semibold", subtitle: "typography-paragraph-2-regular" }
|
|
2101
2101
|
};
|
|
2102
2102
|
function d7(t) {
|
|
2103
|
-
return (
|
|
2103
|
+
return (m2 == null ? void 0 : m2[t]) || m2.m;
|
|
2104
2104
|
}
|
|
2105
2105
|
const h7 = (t) => {
|
|
2106
2106
|
const {
|
|
@@ -2126,7 +2126,7 @@ const h7 = (t) => {
|
|
|
2126
2126
|
"p",
|
|
2127
2127
|
{
|
|
2128
2128
|
style: s == null ? void 0 : s.title,
|
|
2129
|
-
className: H(K1.title,
|
|
2129
|
+
className: H(K1.title, s1[v.title], l == null ? void 0 : l.title),
|
|
2130
2130
|
children: i
|
|
2131
2131
|
}
|
|
2132
2132
|
),
|
|
@@ -2134,7 +2134,7 @@ const h7 = (t) => {
|
|
|
2134
2134
|
"p",
|
|
2135
2135
|
{
|
|
2136
2136
|
style: s == null ? void 0 : s.subTitle,
|
|
2137
|
-
className: H(K1.subtitle,
|
|
2137
|
+
className: H(K1.subtitle, s1[v.subtitle], l == null ? void 0 : l.subTitle),
|
|
2138
2138
|
children: C
|
|
2139
2139
|
}
|
|
2140
2140
|
)
|
|
@@ -2143,7 +2143,7 @@ const h7 = (t) => {
|
|
|
2143
2143
|
]
|
|
2144
2144
|
}
|
|
2145
2145
|
);
|
|
2146
|
-
},
|
|
2146
|
+
}, kd = (t) => {
|
|
2147
2147
|
const {
|
|
2148
2148
|
open: o,
|
|
2149
2149
|
onOpenChange: i,
|
|
@@ -2155,9 +2155,9 @@ const h7 = (t) => {
|
|
|
2155
2155
|
variantAvatarProps: L,
|
|
2156
2156
|
"data-testid": v,
|
|
2157
2157
|
styles: d,
|
|
2158
|
-
classNames:
|
|
2158
|
+
classNames: _,
|
|
2159
2159
|
...E
|
|
2160
|
-
} = t, { icon: h, colorScheme: p } = (
|
|
2160
|
+
} = t, { icon: h, colorScheme: p } = (g2 == null ? void 0 : g2[s]) || g2.info, m = s === "avatar" ? {
|
|
2161
2161
|
size: 48,
|
|
2162
2162
|
colorScheme: "gray",
|
|
2163
2163
|
variant: "light",
|
|
@@ -2178,7 +2178,7 @@ const h7 = (t) => {
|
|
|
2178
2178
|
onOpenChange: i,
|
|
2179
2179
|
placement: C,
|
|
2180
2180
|
"data-testid": v,
|
|
2181
|
-
className: H(o7.container,
|
|
2181
|
+
className: H(o7.container, _ == null ? void 0 : _.dialog),
|
|
2182
2182
|
style: d == null ? void 0 : d.dialog,
|
|
2183
2183
|
...E,
|
|
2184
2184
|
children: /* @__PURE__ */ r.jsx(
|
|
@@ -2186,7 +2186,7 @@ const h7 = (t) => {
|
|
|
2186
2186
|
{
|
|
2187
2187
|
title: l,
|
|
2188
2188
|
subTitle: c,
|
|
2189
|
-
classNames:
|
|
2189
|
+
classNames: _,
|
|
2190
2190
|
styles: d,
|
|
2191
2191
|
size: "m",
|
|
2192
2192
|
iconSlot: /* @__PURE__ */ r.jsx(L6, { ...m }),
|
|
@@ -2233,7 +2233,7 @@ const h7 = (t) => {
|
|
|
2233
2233
|
"position-bottom-center-inside": "_position-bottom-center-inside_1tbse_495",
|
|
2234
2234
|
"position-middle-left-inside": "_position-middle-left-inside_1tbse_501",
|
|
2235
2235
|
"position-middle-right-inside": "_position-middle-right-inside_1tbse_507"
|
|
2236
|
-
}, j2 =
|
|
2236
|
+
}, j2 = o1((t, o) => {
|
|
2237
2237
|
const {
|
|
2238
2238
|
icon: i,
|
|
2239
2239
|
children: C,
|
|
@@ -2244,12 +2244,12 @@ const h7 = (t) => {
|
|
|
2244
2244
|
size: L = 20,
|
|
2245
2245
|
position: v = "top-right",
|
|
2246
2246
|
positionOffset: d = { x: 0, y: 0 },
|
|
2247
|
-
cutoutBackground:
|
|
2247
|
+
cutoutBackground: _,
|
|
2248
2248
|
isDisabled: E,
|
|
2249
2249
|
className: h,
|
|
2250
2250
|
"data-testid": p = "badge",
|
|
2251
|
-
...
|
|
2252
|
-
} = t, { onClick: m, onPointerDown: w } =
|
|
2251
|
+
...f
|
|
2252
|
+
} = t, { onClick: m, onPointerDown: w } = f, { ref: u, bgColor: k } = T2(), b = _ || k, x = !E && (!!m || !!w), Z = k1(F1.badge__container, F1[`position-${v}`]), V = k1(
|
|
2253
2253
|
h,
|
|
2254
2254
|
F1.badge__content,
|
|
2255
2255
|
F1[`color-${g}`],
|
|
@@ -2265,23 +2265,23 @@ const h7 = (t) => {
|
|
|
2265
2265
|
"--badge-offset-y": `${d.y}px`,
|
|
2266
2266
|
...b && { "--badge-cutout-bg": b },
|
|
2267
2267
|
...s === "transparent" && { "--badge-cutout-bg": "transparent" }
|
|
2268
|
-
}, O = (i == null ? void 0 : i({})) || l,
|
|
2269
|
-
x && (m == null || m(
|
|
2268
|
+
}, O = (i == null ? void 0 : i({})) || l, D = (A) => {
|
|
2269
|
+
x && (m == null || m(A));
|
|
2270
2270
|
};
|
|
2271
2271
|
return /* @__PURE__ */ r.jsxs("div", { className: F1.wrapper, ref: u, "data-testid": p + "-wrapper", children: [
|
|
2272
2272
|
C,
|
|
2273
2273
|
!c && /* @__PURE__ */ r.jsx(
|
|
2274
2274
|
"span",
|
|
2275
2275
|
{
|
|
2276
|
-
className:
|
|
2276
|
+
className: Z,
|
|
2277
2277
|
style: j,
|
|
2278
2278
|
"data-testid": p + "-container",
|
|
2279
2279
|
children: /* @__PURE__ */ r.jsx(
|
|
2280
2280
|
"span",
|
|
2281
2281
|
{
|
|
2282
|
-
...
|
|
2283
|
-
onClick:
|
|
2284
|
-
className:
|
|
2282
|
+
...f,
|
|
2283
|
+
onClick: D,
|
|
2284
|
+
className: V,
|
|
2285
2285
|
"data-testid": p + "-content",
|
|
2286
2286
|
ref: o,
|
|
2287
2287
|
"aria-disabled": E,
|
|
@@ -2317,7 +2317,7 @@ const h7 = (t) => {
|
|
|
2317
2317
|
}
|
|
2318
2318
|
)
|
|
2319
2319
|
}
|
|
2320
|
-
),
|
|
2320
|
+
), Md = o1((t, o) => {
|
|
2321
2321
|
const {
|
|
2322
2322
|
alt: i = "",
|
|
2323
2323
|
loading: C = "lazy",
|
|
@@ -2328,29 +2328,29 @@ const h7 = (t) => {
|
|
|
2328
2328
|
containerProps: L,
|
|
2329
2329
|
"data-testid": v = "image",
|
|
2330
2330
|
onError: d,
|
|
2331
|
-
onLoad:
|
|
2331
|
+
onLoad: _,
|
|
2332
2332
|
...E
|
|
2333
|
-
} = t, { className: h, ...p } = L ?? {}, [
|
|
2333
|
+
} = t, { className: h, ...p } = L ?? {}, [f, m] = d1("loading"), w = f === "error", u = (l || f === "loading") && !w, k = f === "loaded" && !l, b = H(
|
|
2334
2334
|
a2.container,
|
|
2335
2335
|
{ [a2.loading]: u && !k, [a2.error]: w && !k },
|
|
2336
2336
|
h
|
|
2337
|
-
),
|
|
2337
|
+
), B = H(
|
|
2338
2338
|
a2.image,
|
|
2339
2339
|
{
|
|
2340
2340
|
[a2.loading]: u
|
|
2341
2341
|
},
|
|
2342
2342
|
g
|
|
2343
|
-
), x =
|
|
2343
|
+
), x = x1(
|
|
2344
2344
|
(j) => {
|
|
2345
|
-
m("loaded"),
|
|
2345
|
+
m("loaded"), _ == null || _(j);
|
|
2346
2346
|
},
|
|
2347
|
-
[
|
|
2348
|
-
),
|
|
2347
|
+
[_]
|
|
2348
|
+
), Z = x1(
|
|
2349
2349
|
(j) => {
|
|
2350
2350
|
m("error"), d == null || d(j);
|
|
2351
2351
|
},
|
|
2352
2352
|
[d]
|
|
2353
|
-
),
|
|
2353
|
+
), V = {
|
|
2354
2354
|
loader: /* @__PURE__ */ r.jsxs(q1, { children: [
|
|
2355
2355
|
/* @__PURE__ */ r.jsx(E2, { size: 48, variant: "gray", "data-testid": `${v}-loader` }),
|
|
2356
2356
|
/* @__PURE__ */ r.jsx(
|
|
@@ -2359,7 +2359,7 @@ const h7 = (t) => {
|
|
|
2359
2359
|
alt: i,
|
|
2360
2360
|
src: s,
|
|
2361
2361
|
onLoad: x,
|
|
2362
|
-
onError:
|
|
2362
|
+
onError: Z,
|
|
2363
2363
|
style: { display: "none" }
|
|
2364
2364
|
}
|
|
2365
2365
|
)
|
|
@@ -2373,12 +2373,12 @@ const h7 = (t) => {
|
|
|
2373
2373
|
"data-testid": v,
|
|
2374
2374
|
loading: C,
|
|
2375
2375
|
src: s,
|
|
2376
|
-
className:
|
|
2376
|
+
className: B,
|
|
2377
2377
|
...E
|
|
2378
2378
|
}
|
|
2379
2379
|
)
|
|
2380
2380
|
};
|
|
2381
|
-
return
|
|
2381
|
+
return Q(() => {
|
|
2382
2382
|
if (!s) {
|
|
2383
2383
|
m("error");
|
|
2384
2384
|
return;
|
|
@@ -2392,9 +2392,9 @@ const h7 = (t) => {
|
|
|
2392
2392
|
style: c,
|
|
2393
2393
|
...p,
|
|
2394
2394
|
children: [
|
|
2395
|
-
u &&
|
|
2396
|
-
w &&
|
|
2397
|
-
k &&
|
|
2395
|
+
u && V.loader,
|
|
2396
|
+
w && V.error,
|
|
2397
|
+
k && V.image
|
|
2398
2398
|
]
|
|
2399
2399
|
}
|
|
2400
2400
|
);
|
|
@@ -2405,7 +2405,7 @@ const h7 = (t) => {
|
|
|
2405
2405
|
if (!t)
|
|
2406
2406
|
throw new Error("useConfig must be used within a ConfigProvider");
|
|
2407
2407
|
return t;
|
|
2408
|
-
},
|
|
2408
|
+
}, xd = () => {
|
|
2409
2409
|
const { locale: t } = x7();
|
|
2410
2410
|
return t;
|
|
2411
2411
|
}, H7 = {}, b7 = {}, Z7 = {}, V7 = {}, y7 = {}, S7 = "_base_1p0qo_50", B7 = "_content_1p0qo_54", j7 = "_background_1p0qo_58", O7 = "_button_1p0qo_62", R7 = "_link_1p0qo_66", W7 = "_input_1p0qo_70", F7 = "_suffix_1p0qo_74", I7 = "_prefix_1p0qo_78", T7 = "_tooltip_1p0qo_82", D7 = "_hint_1p0qo_86", A7 = "_dropdown_1p0qo_90", P7 = "_popover_1p0qo_94", $7 = "_modalBackdrop_1p0qo_98", N7 = "_modal_1p0qo_98", z7 = "_overlay_1p0qo_106", U7 = "_drawer_1p0qo_110", G7 = "_notification_1p0qo_114", q7 = "_alert_1p0qo_118", X7 = "_toast_1p0qo_122", Y7 = "_loading_1p0qo_126", K7 = "_error_1p0qo_130", J7 = "_critical_1p0qo_134", Q7 = {
|
|
@@ -2437,7 +2437,7 @@ const h7 = (t) => {
|
|
|
2437
2437
|
"semantic-animation--300": "_semantic-animation--300_1fenh_23",
|
|
2438
2438
|
"semantic-animation--400": "_semantic-animation--400_1fenh_27",
|
|
2439
2439
|
"semantic-animation--500": "_semantic-animation--500_1fenh_31"
|
|
2440
|
-
},
|
|
2440
|
+
}, Hd = ({
|
|
2441
2441
|
locale: t = {},
|
|
2442
2442
|
theme: o,
|
|
2443
2443
|
children: i,
|
|
@@ -2461,14 +2461,14 @@ const h7 = (t) => {
|
|
|
2461
2461
|
V7,
|
|
2462
2462
|
y7,
|
|
2463
2463
|
Q7,
|
|
2464
|
-
|
|
2464
|
+
s1,
|
|
2465
2465
|
e5,
|
|
2466
2466
|
C
|
|
2467
2467
|
)
|
|
2468
2468
|
}
|
|
2469
2469
|
),
|
|
2470
2470
|
/* @__PURE__ */ r.jsx(B9.Provider, { value: { locale: t }, children: i })
|
|
2471
|
-
] })), t5 = "_wrapper_1aa6l_2", n5 = "_interactive_1aa6l_23", r5 = "_disabled_1aa6l_26", o5 = "_loading_1aa6l_26", i5 = "_hoverNeutral_1aa6l_38", l5 = "_icon_1aa6l_38", C5 = "_hoverAccent_1aa6l_39", a5 = "_hoverPositive_1aa6l_40", s5 = "_hoverNegative_1aa6l_41", c5 = "_hoverWarning_1aa6l_42", d5 = "_hoverSpecial_1aa6l_43", h5 = "_hoverDreamy_1aa6l_44", g5 = "_hoverLovely_1aa6l_45", m5 = "_hoverVivid_1aa6l_46", p5 = "_hoverConstant_1aa6l_47", u5 = "_hoverInverse_1aa6l_48", L5 = "_pressedNeutral_1aa6l_51", w5 = "_pressedAccent_1aa6l_52", v5 = "_pressedPositive_1aa6l_53", f5 = "_pressedNegative_1aa6l_54", _5 = "_pressedWarning_1aa6l_55", E5 = "_pressedSpecial_1aa6l_56", k5 = "_pressedDreamy_1aa6l_57", M5 = "_pressedLovely_1aa6l_58", x5 = "_pressedVivid_1aa6l_59", H5 = "_pressedConstant_1aa6l_60", b5 = "_pressedInverse_1aa6l_61", Z5 = "_showBackground_1aa6l_64", V5 = "_backgroundPrimary_1aa6l_65", y5 = "_backgroundSecondary_1aa6l_66", S5 = "_backgroundTertiary_1aa6l_67", B5 = "_backgroundOverlay_1aa6l_68", j5 = "_backgroundConstant_1aa6l_69", O5 = "_backgroundInverse_1aa6l_70", R5 = "_backgroundConstantSecondary_1aa6l_71", W5 = "_backgroundInverseSecondary_1aa6l_72", F5 = "_backgroundPositive_1aa6l_73", I5 = "_backgroundWarning_1aa6l_74", T5 = "_backgroundNegative_1aa6l_75", D5 = "_backgroundAccent_1aa6l_76", A5 = "_backgroundPositiveSecondary_1aa6l_77", P5 = "_backgroundWarningSecondary_1aa6l_78", $5 = "_backgroundNegativeSecondary_1aa6l_79", N5 = "_backgroundAccentSecondary_1aa6l_80", z5 = "_backgroundSpecial_1aa6l_81", U5 = "_backgroundDreamy_1aa6l_82", G5 = "_backgroundLovely_1aa6l_83", q5 = "_backgroundVivid_1aa6l_84", X5 = "_backgroundSpecialSecondary_1aa6l_85", Y5 = "_backgroundDreamySecondary_1aa6l_86", K5 = "_backgroundLovelySecondary_1aa6l_87", J5 = "_backgroundVividSecondary_1aa6l_88", Q5 = "_showBorder_1aa6l_92", e0 = "_borderNeutral_1aa6l_93", t0 = "_borderPhantom_1aa6l_94", n0 = "_borderOverlay_1aa6l_95", r0 = "_borderPositive_1aa6l_96", o0 = "_borderWarning_1aa6l_97", i0 = "_borderNegative_1aa6l_98", l0 = "_borderAccent_1aa6l_99", C0 = "_borderSpecial_1aa6l_100", a0 = "_borderDreamy_1aa6l_101", s0 = "_borderLovely_1aa6l_102", c0 = "_borderVivid_1aa6l_103", d0 = "_interactiveWithCustomShadow_1aa6l_108", h0 = "_showPadding_1aa6l_117", g0 = "_borderRadiusCircle_1aa6l_121", m0 = "_iconWrapper_1aa6l_135", p0 = "_iconSize16_1aa6l_144", u0 = "_iconSize24_1aa6l_149", L0 = "_iconSize32_1aa6l_154", w0 = "_neutral_1aa6l_170", v0 = "_primary_1aa6l_171", f0 = "_secondary_1aa6l_172", _0 = "_tertiary_1aa6l_173", E0 = "_accent_1aa6l_177", k0 = "_positive_1aa6l_183", M0 = "_negative_1aa6l_189", x0 = "_warning_1aa6l_195", H0 = "_special_1aa6l_201", b0 = "_dreamy_1aa6l_207", Z0 = "_lovely_1aa6l_212", V0 = "_vivid_1aa6l_217", y0 = "_constant_1aa6l_222", S0 = "_inverse_1aa6l_227", B0 = "_none_1aa6l_233", j0 = "_checked_1aa6l_265", O0 = "_checkedOverlay_1aa6l_269", R0 = "_backgroundTransparent_1aa6l_296", W0 = "_shadowPermanent_1aa6l_344", F0 = "_shadowIncreasesWhenPressed_1aa6l_349",
|
|
2471
|
+
] })), t5 = "_wrapper_1aa6l_2", n5 = "_interactive_1aa6l_23", r5 = "_disabled_1aa6l_26", o5 = "_loading_1aa6l_26", i5 = "_hoverNeutral_1aa6l_38", l5 = "_icon_1aa6l_38", C5 = "_hoverAccent_1aa6l_39", a5 = "_hoverPositive_1aa6l_40", s5 = "_hoverNegative_1aa6l_41", c5 = "_hoverWarning_1aa6l_42", d5 = "_hoverSpecial_1aa6l_43", h5 = "_hoverDreamy_1aa6l_44", g5 = "_hoverLovely_1aa6l_45", m5 = "_hoverVivid_1aa6l_46", p5 = "_hoverConstant_1aa6l_47", u5 = "_hoverInverse_1aa6l_48", L5 = "_pressedNeutral_1aa6l_51", w5 = "_pressedAccent_1aa6l_52", v5 = "_pressedPositive_1aa6l_53", f5 = "_pressedNegative_1aa6l_54", _5 = "_pressedWarning_1aa6l_55", E5 = "_pressedSpecial_1aa6l_56", k5 = "_pressedDreamy_1aa6l_57", M5 = "_pressedLovely_1aa6l_58", x5 = "_pressedVivid_1aa6l_59", H5 = "_pressedConstant_1aa6l_60", b5 = "_pressedInverse_1aa6l_61", Z5 = "_showBackground_1aa6l_64", V5 = "_backgroundPrimary_1aa6l_65", y5 = "_backgroundSecondary_1aa6l_66", S5 = "_backgroundTertiary_1aa6l_67", B5 = "_backgroundOverlay_1aa6l_68", j5 = "_backgroundConstant_1aa6l_69", O5 = "_backgroundInverse_1aa6l_70", R5 = "_backgroundConstantSecondary_1aa6l_71", W5 = "_backgroundInverseSecondary_1aa6l_72", F5 = "_backgroundPositive_1aa6l_73", I5 = "_backgroundWarning_1aa6l_74", T5 = "_backgroundNegative_1aa6l_75", D5 = "_backgroundAccent_1aa6l_76", A5 = "_backgroundPositiveSecondary_1aa6l_77", P5 = "_backgroundWarningSecondary_1aa6l_78", $5 = "_backgroundNegativeSecondary_1aa6l_79", N5 = "_backgroundAccentSecondary_1aa6l_80", z5 = "_backgroundSpecial_1aa6l_81", U5 = "_backgroundDreamy_1aa6l_82", G5 = "_backgroundLovely_1aa6l_83", q5 = "_backgroundVivid_1aa6l_84", X5 = "_backgroundSpecialSecondary_1aa6l_85", Y5 = "_backgroundDreamySecondary_1aa6l_86", K5 = "_backgroundLovelySecondary_1aa6l_87", J5 = "_backgroundVividSecondary_1aa6l_88", Q5 = "_showBorder_1aa6l_92", e0 = "_borderNeutral_1aa6l_93", t0 = "_borderPhantom_1aa6l_94", n0 = "_borderOverlay_1aa6l_95", r0 = "_borderPositive_1aa6l_96", o0 = "_borderWarning_1aa6l_97", i0 = "_borderNegative_1aa6l_98", l0 = "_borderAccent_1aa6l_99", C0 = "_borderSpecial_1aa6l_100", a0 = "_borderDreamy_1aa6l_101", s0 = "_borderLovely_1aa6l_102", c0 = "_borderVivid_1aa6l_103", d0 = "_interactiveWithCustomShadow_1aa6l_108", h0 = "_showPadding_1aa6l_117", g0 = "_borderRadiusCircle_1aa6l_121", m0 = "_iconWrapper_1aa6l_135", p0 = "_iconSize16_1aa6l_144", u0 = "_iconSize24_1aa6l_149", L0 = "_iconSize32_1aa6l_154", w0 = "_neutral_1aa6l_170", v0 = "_primary_1aa6l_171", f0 = "_secondary_1aa6l_172", _0 = "_tertiary_1aa6l_173", E0 = "_accent_1aa6l_177", k0 = "_positive_1aa6l_183", M0 = "_negative_1aa6l_189", x0 = "_warning_1aa6l_195", H0 = "_special_1aa6l_201", b0 = "_dreamy_1aa6l_207", Z0 = "_lovely_1aa6l_212", V0 = "_vivid_1aa6l_217", y0 = "_constant_1aa6l_222", S0 = "_inverse_1aa6l_227", B0 = "_none_1aa6l_233", j0 = "_checked_1aa6l_265", O0 = "_checkedOverlay_1aa6l_269", R0 = "_backgroundTransparent_1aa6l_296", W0 = "_shadowPermanent_1aa6l_344", F0 = "_shadowIncreasesWhenPressed_1aa6l_349", w2 = {
|
|
2472
2472
|
wrapper: t5,
|
|
2473
2473
|
interactive: n5,
|
|
2474
2474
|
disabled: r5,
|
|
@@ -2560,7 +2560,7 @@ const h7 = (t) => {
|
|
|
2560
2560
|
backgroundTransparent: R0,
|
|
2561
2561
|
shadowPermanent: W0,
|
|
2562
2562
|
shadowIncreasesWhenPressed: F0
|
|
2563
|
-
},
|
|
2563
|
+
}, r1 = w2, g9 = (t) => t.charAt(0).toUpperCase() + t.slice(1), I0 = ({
|
|
2564
2564
|
Component: t,
|
|
2565
2565
|
iconSize: o = 24,
|
|
2566
2566
|
mode: i = "primary",
|
|
@@ -2572,114 +2572,114 @@ const h7 = (t) => {
|
|
|
2572
2572
|
shadow: L = !1,
|
|
2573
2573
|
showBorder: v = !1,
|
|
2574
2574
|
borderStyle: d = "neutral",
|
|
2575
|
-
borderRadius:
|
|
2575
|
+
borderRadius: _,
|
|
2576
2576
|
badge: E,
|
|
2577
2577
|
checked: h = !1,
|
|
2578
2578
|
disabled: p = !1,
|
|
2579
|
-
loading:
|
|
2579
|
+
loading: f = !1,
|
|
2580
2580
|
onClick: m,
|
|
2581
2581
|
onMouseEnter: w,
|
|
2582
2582
|
onMouseLeave: u,
|
|
2583
2583
|
className: k,
|
|
2584
2584
|
styles: b,
|
|
2585
|
-
tabIndex:
|
|
2585
|
+
tabIndex: B,
|
|
2586
2586
|
"aria-label": x,
|
|
2587
|
-
role:
|
|
2587
|
+
role: Z
|
|
2588
2588
|
}) => {
|
|
2589
|
-
const [
|
|
2590
|
-
|
|
2589
|
+
const [V, j] = d1(!1), O = P1.isValidElement(h), D = t2(() => p ? "disabled" : f ? "loading" : O && V ? "checked" : "default", [p, f, O, V]), A = t === "button" || !!m, y = b && "boxShadow" in b && b.boxShadow !== void 0, R = k1(
|
|
2590
|
+
r1.wrapper,
|
|
2591
2591
|
// Состояния
|
|
2592
2592
|
{
|
|
2593
|
-
[
|
|
2594
|
-
[
|
|
2595
|
-
[
|
|
2596
|
-
[
|
|
2597
|
-
[
|
|
2593
|
+
[r1.disabled]: p,
|
|
2594
|
+
[r1.loading]: f,
|
|
2595
|
+
[r1.interactive]: A && !p && !f,
|
|
2596
|
+
[r1.interactiveWithCustomShadow]: A && !p && !f && y,
|
|
2597
|
+
[r1.checked]: h
|
|
2598
2598
|
},
|
|
2599
2599
|
// Стили иконки
|
|
2600
|
-
|
|
2601
|
-
|
|
2600
|
+
r1[C],
|
|
2601
|
+
r1[i],
|
|
2602
2602
|
// Hover стили
|
|
2603
2603
|
{
|
|
2604
|
-
...s && s !== "custom" && s !== "none" ? { [
|
|
2605
|
-
[
|
|
2604
|
+
...s && s !== "custom" && s !== "none" ? { [r1[`hover${g9(s)}`]]: !0 } : {},
|
|
2605
|
+
[r1.hoverCustom]: s === "custom"
|
|
2606
2606
|
},
|
|
2607
2607
|
// Pressed стили
|
|
2608
2608
|
{
|
|
2609
|
-
...l && l !== "custom" && l !== "none" ? { [
|
|
2610
|
-
[
|
|
2609
|
+
...l && l !== "custom" && l !== "none" ? { [r1[`pressed${g9(l)}`]]: !0 } : {},
|
|
2610
|
+
[r1.pressedCustom]: l === "custom"
|
|
2611
2611
|
},
|
|
2612
2612
|
// Отступы
|
|
2613
2613
|
{
|
|
2614
|
-
[
|
|
2614
|
+
[r1.showPadding]: c !== !1
|
|
2615
2615
|
},
|
|
2616
2616
|
// Фон
|
|
2617
2617
|
{
|
|
2618
|
-
[
|
|
2619
|
-
[
|
|
2618
|
+
[r1.showBackground]: g !== !1,
|
|
2619
|
+
[r1[`background${g && typeof g == "string" ? g.split("-").map((e1) => e1.charAt(0).toUpperCase() + e1.slice(1)).join("") : "Primary"}`]]: g !== !1
|
|
2620
2620
|
},
|
|
2621
2621
|
// Рамка
|
|
2622
2622
|
{
|
|
2623
|
-
[
|
|
2624
|
-
[
|
|
2623
|
+
[r1.showBorder]: v,
|
|
2624
|
+
[r1[`border${typeof d == "string" ? d.charAt(0).toUpperCase() + d.slice(1) : ""}`]]: v
|
|
2625
2625
|
},
|
|
2626
2626
|
// Радиус скругления (круглый)
|
|
2627
2627
|
{
|
|
2628
|
-
[
|
|
2628
|
+
[r1.borderRadiusCircle]: _ === "50%" || _ === 50
|
|
2629
2629
|
},
|
|
2630
2630
|
// Тени
|
|
2631
2631
|
{
|
|
2632
|
-
[
|
|
2633
|
-
[
|
|
2632
|
+
[r1.shadowPermanent]: L === "permanent",
|
|
2633
|
+
[r1.shadowIncreasesWhenPressed]: L === "increases-when-pressed"
|
|
2634
2634
|
},
|
|
2635
2635
|
k
|
|
2636
|
-
),
|
|
2636
|
+
), I = k1(r1.iconWrapper, r1[`iconSize${o}`]), T = t2(() => {
|
|
2637
2637
|
const e1 = { ...b };
|
|
2638
|
-
return c !== !1 && typeof c == "number" && (e1.padding = `${c}px`), typeof
|
|
2639
|
-
}, [b,
|
|
2640
|
-
!p && !
|
|
2638
|
+
return c !== !1 && typeof c == "number" && (e1.padding = `${c}px`), typeof _ == "number" && _ !== 50 && (e1.borderRadius = `${_}px`), e1;
|
|
2639
|
+
}, [b, _, c]), U = (e1) => {
|
|
2640
|
+
!p && !f && w && w(e1);
|
|
2641
2641
|
}, N = (e1) => {
|
|
2642
|
-
!p && !
|
|
2643
|
-
},
|
|
2644
|
-
!p && !
|
|
2645
|
-
},
|
|
2646
|
-
p ||
|
|
2647
|
-
},
|
|
2642
|
+
!p && !f && u && u(e1);
|
|
2643
|
+
}, n1 = (e1) => {
|
|
2644
|
+
!p && !f && (O && j((b1) => !b1), m && m(e1));
|
|
2645
|
+
}, K = (e1) => {
|
|
2646
|
+
p || f || (e1.key === "Enter" || e1.key === " ") && (e1.preventDefault(), O && j((b1) => !b1), m && m(e1));
|
|
2647
|
+
}, X = E ? E.show && !p : !1;
|
|
2648
2648
|
return {
|
|
2649
2649
|
// Состояние
|
|
2650
|
-
checkedActive:
|
|
2650
|
+
checkedActive: V,
|
|
2651
2651
|
isCheckedNode: O,
|
|
2652
|
-
currentState:
|
|
2653
|
-
isInteractive:
|
|
2654
|
-
shouldHideIcon: !!x &&
|
|
2652
|
+
currentState: D,
|
|
2653
|
+
isInteractive: A,
|
|
2654
|
+
shouldHideIcon: !!x && A,
|
|
2655
2655
|
// Классы
|
|
2656
2656
|
wrapperClasses: R,
|
|
2657
|
-
iconWrapperClasses:
|
|
2657
|
+
iconWrapperClasses: I,
|
|
2658
2658
|
// Стили
|
|
2659
|
-
inlineStyles:
|
|
2659
|
+
inlineStyles: T,
|
|
2660
2660
|
// Обработчики
|
|
2661
2661
|
handleMouseEnter: U,
|
|
2662
2662
|
handleMouseLeave: N,
|
|
2663
|
-
handleClick:
|
|
2664
|
-
handleKeyDown:
|
|
2663
|
+
handleClick: n1,
|
|
2664
|
+
handleKeyDown: K,
|
|
2665
2665
|
// Badge
|
|
2666
|
-
shouldShowBadge:
|
|
2666
|
+
shouldShowBadge: X,
|
|
2667
2667
|
getBadgeSize: () => E && E.size === "extra-small" ? 8 : 16,
|
|
2668
2668
|
// Accessibility
|
|
2669
2669
|
getRole: () => {
|
|
2670
|
-
if (
|
|
2670
|
+
if (Z) return Z;
|
|
2671
2671
|
if (t !== "button")
|
|
2672
2672
|
return m ? "button" : "img";
|
|
2673
2673
|
},
|
|
2674
2674
|
getTabIndex: () => {
|
|
2675
|
-
if (
|
|
2676
|
-
if (t === "button" || m) return p ||
|
|
2675
|
+
if (B !== void 0) return B;
|
|
2676
|
+
if (t === "button" || m) return p || f ? -1 : 0;
|
|
2677
2677
|
},
|
|
2678
2678
|
needsKeyboardHandler: t !== "button" && (!!m || O),
|
|
2679
2679
|
// Props
|
|
2680
2680
|
buttonSpecificProps: t === "button" ? {
|
|
2681
2681
|
type: "button",
|
|
2682
|
-
disabled: p ||
|
|
2682
|
+
disabled: p || f
|
|
2683
2683
|
} : {},
|
|
2684
2684
|
// Другое
|
|
2685
2685
|
iconSize: o
|
|
@@ -2697,36 +2697,36 @@ const h7 = (t) => {
|
|
|
2697
2697
|
background: L = !1,
|
|
2698
2698
|
shadow: v = !1,
|
|
2699
2699
|
showBorder: d = !1,
|
|
2700
|
-
borderStyle:
|
|
2700
|
+
borderStyle: _ = "neutral",
|
|
2701
2701
|
borderRadius: E,
|
|
2702
2702
|
badge: h,
|
|
2703
2703
|
checked: p = !1,
|
|
2704
|
-
disabled:
|
|
2704
|
+
disabled: f = !1,
|
|
2705
2705
|
loading: m = !1,
|
|
2706
2706
|
onClick: w,
|
|
2707
2707
|
onMouseEnter: u,
|
|
2708
2708
|
onMouseLeave: k,
|
|
2709
2709
|
className: b,
|
|
2710
|
-
styles:
|
|
2710
|
+
styles: B,
|
|
2711
2711
|
tabIndex: x,
|
|
2712
|
-
"data-testid":
|
|
2713
|
-
"aria-label":
|
|
2712
|
+
"data-testid": Z,
|
|
2713
|
+
"aria-label": V,
|
|
2714
2714
|
"aria-describedby": j,
|
|
2715
2715
|
role: O,
|
|
2716
|
-
...
|
|
2717
|
-
},
|
|
2718
|
-
const
|
|
2719
|
-
checkedActive:
|
|
2720
|
-
isCheckedNode:
|
|
2716
|
+
...D
|
|
2717
|
+
}, A) => {
|
|
2718
|
+
const y = t || (w ? "button" : "div"), R = c6("icon"), {
|
|
2719
|
+
checkedActive: I,
|
|
2720
|
+
isCheckedNode: T,
|
|
2721
2721
|
currentState: U,
|
|
2722
2722
|
shouldHideIcon: N,
|
|
2723
|
-
wrapperClasses:
|
|
2724
|
-
iconWrapperClasses:
|
|
2725
|
-
inlineStyles:
|
|
2726
|
-
handleMouseEnter:
|
|
2727
|
-
handleMouseLeave:
|
|
2728
|
-
handleClick:
|
|
2729
|
-
handleKeyDown:
|
|
2723
|
+
wrapperClasses: n1,
|
|
2724
|
+
iconWrapperClasses: K,
|
|
2725
|
+
inlineStyles: X,
|
|
2726
|
+
handleMouseEnter: W,
|
|
2727
|
+
handleMouseLeave: J,
|
|
2728
|
+
handleClick: L1,
|
|
2729
|
+
handleKeyDown: p1,
|
|
2730
2730
|
shouldShowBadge: h1,
|
|
2731
2731
|
getBadgeSize: O1,
|
|
2732
2732
|
getRole: R1,
|
|
@@ -2735,7 +2735,7 @@ const h7 = (t) => {
|
|
|
2735
2735
|
buttonSpecificProps: n2,
|
|
2736
2736
|
iconSize: $1
|
|
2737
2737
|
} = I0({
|
|
2738
|
-
Component:
|
|
2738
|
+
Component: y,
|
|
2739
2739
|
iconSize: i,
|
|
2740
2740
|
mode: C,
|
|
2741
2741
|
style: s,
|
|
@@ -2745,22 +2745,22 @@ const h7 = (t) => {
|
|
|
2745
2745
|
background: L,
|
|
2746
2746
|
shadow: v,
|
|
2747
2747
|
showBorder: d,
|
|
2748
|
-
borderStyle:
|
|
2748
|
+
borderStyle: _,
|
|
2749
2749
|
borderRadius: E,
|
|
2750
2750
|
badge: h,
|
|
2751
2751
|
checked: p,
|
|
2752
|
-
disabled:
|
|
2752
|
+
disabled: f,
|
|
2753
2753
|
loading: m,
|
|
2754
2754
|
onClick: w,
|
|
2755
2755
|
onMouseEnter: u,
|
|
2756
2756
|
onMouseLeave: k,
|
|
2757
2757
|
className: b,
|
|
2758
|
-
styles:
|
|
2758
|
+
styles: B,
|
|
2759
2759
|
tabIndex: x,
|
|
2760
|
-
"aria-label":
|
|
2760
|
+
"aria-label": V,
|
|
2761
2761
|
role: O
|
|
2762
2762
|
}), r2 = () => {
|
|
2763
|
-
var
|
|
2763
|
+
var u1;
|
|
2764
2764
|
if (m) {
|
|
2765
2765
|
const N1 = $1 === 32 ? 48 : $1;
|
|
2766
2766
|
return /* @__PURE__ */ r.jsx(
|
|
@@ -2769,20 +2769,20 @@ const h7 = (t) => {
|
|
|
2769
2769
|
size: N1,
|
|
2770
2770
|
"aria-hidden": N ? !0 : void 0,
|
|
2771
2771
|
role: N ? void 0 : "img",
|
|
2772
|
-
"aria-label": N ? void 0 :
|
|
2772
|
+
"aria-label": N ? void 0 : V || R("loading")
|
|
2773
2773
|
}
|
|
2774
2774
|
);
|
|
2775
2775
|
}
|
|
2776
2776
|
if (P1.isValidElement(o)) {
|
|
2777
2777
|
const N1 = o;
|
|
2778
2778
|
return P1.cloneElement(N1, {
|
|
2779
|
-
className:
|
|
2779
|
+
className: k1(w2.icon, (u1 = N1.props) == null ? void 0 : u1.className),
|
|
2780
2780
|
"aria-hidden": N ? !0 : void 0
|
|
2781
2781
|
});
|
|
2782
2782
|
}
|
|
2783
2783
|
return console.warn(
|
|
2784
2784
|
"Icon component now only supports React elements (SVG icons). Use Icon.Category.Name components."
|
|
2785
|
-
), /* @__PURE__ */ r.jsx("div", { className:
|
|
2785
|
+
), /* @__PURE__ */ r.jsx("div", { className: w2.icon, children: /* @__PURE__ */ r.jsx(
|
|
2786
2786
|
"svg",
|
|
2787
2787
|
{
|
|
2788
2788
|
width: "24",
|
|
@@ -2791,32 +2791,32 @@ const h7 = (t) => {
|
|
|
2791
2791
|
fill: "currentColor",
|
|
2792
2792
|
"aria-hidden": N ? !0 : void 0,
|
|
2793
2793
|
role: N ? void 0 : "img",
|
|
2794
|
-
"aria-label": N ? void 0 :
|
|
2794
|
+
"aria-label": N ? void 0 : V || R("placeholder"),
|
|
2795
2795
|
children: /* @__PURE__ */ r.jsx("path", { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z" })
|
|
2796
2796
|
}
|
|
2797
2797
|
) });
|
|
2798
|
-
}, o2 = () =>
|
|
2798
|
+
}, o2 = () => T && I ? /* @__PURE__ */ r.jsx("span", { className: w2.checkedOverlay, children: p }) : null, i1 = /* @__PURE__ */ r.jsxs("div", { className: K, style: { position: "relative" }, children: [
|
|
2799
2799
|
r2(),
|
|
2800
2800
|
o2()
|
|
2801
|
-
] }),
|
|
2802
|
-
ref:
|
|
2803
|
-
className:
|
|
2804
|
-
style:
|
|
2805
|
-
onMouseEnter:
|
|
2806
|
-
onMouseLeave:
|
|
2807
|
-
onClick:
|
|
2808
|
-
onKeyDown: b1 ?
|
|
2809
|
-
"data-testid":
|
|
2810
|
-
"aria-label":
|
|
2801
|
+
] }), l1 = {
|
|
2802
|
+
ref: A,
|
|
2803
|
+
className: n1,
|
|
2804
|
+
style: X,
|
|
2805
|
+
onMouseEnter: W,
|
|
2806
|
+
onMouseLeave: J,
|
|
2807
|
+
onClick: L1,
|
|
2808
|
+
onKeyDown: b1 ? p1 : void 0,
|
|
2809
|
+
"data-testid": Z,
|
|
2810
|
+
"aria-label": V,
|
|
2811
2811
|
"aria-describedby": j,
|
|
2812
2812
|
// Используем aria-pressed для кнопок с состоянием toggle
|
|
2813
|
-
"aria-pressed":
|
|
2814
|
-
"aria-disabled":
|
|
2813
|
+
"aria-pressed": T && (y === "button" || w) ? I : void 0,
|
|
2814
|
+
"aria-disabled": f ? !0 : void 0,
|
|
2815
2815
|
"data-state": U,
|
|
2816
2816
|
role: R1(),
|
|
2817
2817
|
tabIndex: e1(),
|
|
2818
2818
|
...n2,
|
|
2819
|
-
...
|
|
2819
|
+
...D
|
|
2820
2820
|
};
|
|
2821
2821
|
if (h1 && L !== !1)
|
|
2822
2822
|
return /* @__PURE__ */ r.jsx(
|
|
@@ -2826,25 +2826,25 @@ const h7 = (t) => {
|
|
|
2826
2826
|
size: O1(),
|
|
2827
2827
|
colorScheme: "red",
|
|
2828
2828
|
position: "top-right",
|
|
2829
|
-
"data-testid": `${
|
|
2830
|
-
children: /* @__PURE__ */ r.jsx(
|
|
2829
|
+
"data-testid": `${Z || "icon"}-badge`,
|
|
2830
|
+
children: /* @__PURE__ */ r.jsx(y, { ...l1, children: i1 })
|
|
2831
2831
|
}
|
|
2832
2832
|
);
|
|
2833
2833
|
if (h1 && L === !1) {
|
|
2834
|
-
const
|
|
2834
|
+
const u1 = /* @__PURE__ */ r.jsx(
|
|
2835
2835
|
j2,
|
|
2836
2836
|
{
|
|
2837
2837
|
label: (h == null ? void 0 : h.size) !== "extra-small" ? h == null ? void 0 : h.value : void 0,
|
|
2838
2838
|
size: O1(),
|
|
2839
2839
|
colorScheme: "red",
|
|
2840
2840
|
position: "top-right",
|
|
2841
|
-
"data-testid": `${
|
|
2842
|
-
children:
|
|
2841
|
+
"data-testid": `${Z || "icon"}-badge`,
|
|
2842
|
+
children: i1
|
|
2843
2843
|
}
|
|
2844
2844
|
);
|
|
2845
|
-
return /* @__PURE__ */ r.jsx(
|
|
2845
|
+
return /* @__PURE__ */ r.jsx(y, { ...l1, children: u1 });
|
|
2846
2846
|
}
|
|
2847
|
-
return /* @__PURE__ */ r.jsx(
|
|
2847
|
+
return /* @__PURE__ */ r.jsx(y, { ...l1, children: i1 });
|
|
2848
2848
|
}
|
|
2849
2849
|
);
|
|
2850
2850
|
j9.displayName = "Icon";
|
|
@@ -3293,7 +3293,7 @@ j1.Private = _l;
|
|
|
3293
3293
|
j1.Development = El;
|
|
3294
3294
|
j1.Product = kl;
|
|
3295
3295
|
j1.Service = Ml;
|
|
3296
|
-
const
|
|
3296
|
+
const bd = {}, xl = "_tag_1llsi_1", Hl = "_label_1llsi_16", bl = "_iconWrapper_1llsi_20", Zl = "_medium_1llsi_27", Vl = "_large_1llsi_33", yl = "_disabled_1llsi_43", Sl = "_neutral_1llsi_47", Bl = "_positive_1llsi_53", jl = "_negative_1llsi_59", Ol = "_warning_1llsi_65", Rl = "_vivid_1llsi_71", Wl = "_special_1llsi_77", Fl = "_accent_1llsi_84", Il = "_blue_1llsi_90", Tl = "_lovely_1llsi_96", Dl = "_dreamy_1llsi_102", U1 = {
|
|
3297
3297
|
tag: xl,
|
|
3298
3298
|
label: Hl,
|
|
3299
3299
|
iconWrapper: bl,
|
|
@@ -3310,7 +3310,7 @@ const Md = {}, xl = "_tag_1llsi_1", Hl = "_label_1llsi_16", bl = "_iconWrapper_1
|
|
|
3310
3310
|
blue: Il,
|
|
3311
3311
|
lovely: Tl,
|
|
3312
3312
|
dreamy: Dl
|
|
3313
|
-
},
|
|
3313
|
+
}, Zd = o1((t, o) => {
|
|
3314
3314
|
const {
|
|
3315
3315
|
className: i,
|
|
3316
3316
|
children: C,
|
|
@@ -3321,10 +3321,10 @@ const Md = {}, xl = "_tag_1llsi_1", Hl = "_label_1llsi_16", bl = "_iconWrapper_1
|
|
|
3321
3321
|
slotStart: L,
|
|
3322
3322
|
slotEnd: v,
|
|
3323
3323
|
slotStartWrapperProps: d = {},
|
|
3324
|
-
slotEndWrapperProps:
|
|
3324
|
+
slotEndWrapperProps: _ = {},
|
|
3325
3325
|
"data-testid": E,
|
|
3326
3326
|
...h
|
|
3327
|
-
} = t, { className: p, ...
|
|
3327
|
+
} = t, { className: p, ...f } = d, { className: m, ...w } = _;
|
|
3328
3328
|
return /* @__PURE__ */ r.jsxs(
|
|
3329
3329
|
"div",
|
|
3330
3330
|
{
|
|
@@ -3334,8 +3334,8 @@ const Md = {}, xl = "_tag_1llsi_1", Hl = "_label_1llsi_16", bl = "_iconWrapper_1
|
|
|
3334
3334
|
U1[s],
|
|
3335
3335
|
{
|
|
3336
3336
|
[U1.disabled]: c,
|
|
3337
|
-
[
|
|
3338
|
-
[
|
|
3337
|
+
[s1["typography-label-3-regular"]]: l === "medium",
|
|
3338
|
+
[s1["typography-subtitle-1-semibold"]]: l === "large"
|
|
3339
3339
|
},
|
|
3340
3340
|
i
|
|
3341
3341
|
),
|
|
@@ -3343,7 +3343,7 @@ const Md = {}, xl = "_tag_1llsi_1", Hl = "_label_1llsi_16", bl = "_iconWrapper_1
|
|
|
3343
3343
|
ref: o,
|
|
3344
3344
|
...h,
|
|
3345
3345
|
children: [
|
|
3346
|
-
L && /* @__PURE__ */ r.jsx("span", { className: H([U1.iconWrapper, p]), ...
|
|
3346
|
+
L && /* @__PURE__ */ r.jsx("span", { className: H([U1.iconWrapper, p]), ...f, children: L }),
|
|
3347
3347
|
g && /* @__PURE__ */ r.jsx("span", { className: H([U1.label]), children: C }),
|
|
3348
3348
|
v && /* @__PURE__ */ r.jsx("span", { className: H([U1.iconWrapper, m]), ...w, children: v })
|
|
3349
3349
|
]
|
|
@@ -3433,7 +3433,7 @@ const Md = {}, xl = "_tag_1llsi_1", Hl = "_label_1llsi_16", bl = "_iconWrapper_1
|
|
|
3433
3433
|
children: C ? /* @__PURE__ */ r.jsx(Kl, { width: l, height: c }) : /* @__PURE__ */ r.jsx(Yl, { width: l, height: c })
|
|
3434
3434
|
}
|
|
3435
3435
|
);
|
|
3436
|
-
},
|
|
3436
|
+
}, Vd = o1((t, o) => {
|
|
3437
3437
|
const {
|
|
3438
3438
|
name: i,
|
|
3439
3439
|
value: C,
|
|
@@ -3444,30 +3444,30 @@ const Md = {}, xl = "_tag_1llsi_1", Hl = "_label_1llsi_16", bl = "_iconWrapper_1
|
|
|
3444
3444
|
disabled: L = !1,
|
|
3445
3445
|
containerClassName: v,
|
|
3446
3446
|
className: d,
|
|
3447
|
-
containerStyle:
|
|
3447
|
+
containerStyle: _,
|
|
3448
3448
|
style: E,
|
|
3449
3449
|
children: h,
|
|
3450
3450
|
clickableLabel: p = !0,
|
|
3451
|
-
tabIndex:
|
|
3451
|
+
tabIndex: f,
|
|
3452
3452
|
onChange: m,
|
|
3453
3453
|
onClick: w,
|
|
3454
3454
|
"data-testid": u = "checkbox"
|
|
3455
|
-
} = t, [k, b] =
|
|
3455
|
+
} = t, [k, b] = d1(!1), B = C ?? k, x = L || c, Z = !!g, V = B || l, j = H(T1.container, T1[s], v), O = H(
|
|
3456
3456
|
T1.checkbox,
|
|
3457
3457
|
T1[s],
|
|
3458
3458
|
{
|
|
3459
|
-
[T1.error]:
|
|
3459
|
+
[T1.error]: Z
|
|
3460
3460
|
},
|
|
3461
3461
|
d
|
|
3462
|
-
),
|
|
3462
|
+
), D = (R) => {
|
|
3463
3463
|
x || (b(R.target.checked), m == null || m(R.target.checked, R));
|
|
3464
|
-
},
|
|
3464
|
+
}, A = (R) => {
|
|
3465
3465
|
if (R.key === "Enter" && !x) {
|
|
3466
3466
|
R.preventDefault();
|
|
3467
|
-
const
|
|
3468
|
-
b(
|
|
3467
|
+
const I = !V;
|
|
3468
|
+
b(I), m == null || m(I);
|
|
3469
3469
|
}
|
|
3470
|
-
},
|
|
3470
|
+
}, y = (R) => {
|
|
3471
3471
|
p || R.preventDefault(), w == null || w(R);
|
|
3472
3472
|
};
|
|
3473
3473
|
return /* @__PURE__ */ r.jsxs(
|
|
@@ -3475,20 +3475,20 @@ const Md = {}, xl = "_tag_1llsi_1", Hl = "_label_1llsi_16", bl = "_iconWrapper_1
|
|
|
3475
3475
|
{
|
|
3476
3476
|
className: j,
|
|
3477
3477
|
htmlFor: i,
|
|
3478
|
-
style:
|
|
3478
|
+
style: _,
|
|
3479
3479
|
"data-testid": u,
|
|
3480
3480
|
"data-clickable-label": p,
|
|
3481
3481
|
children: [
|
|
3482
3482
|
/* @__PURE__ */ r.jsx("div", { className: T1.checkboxWrapper, children: /* @__PURE__ */ r.jsxs(
|
|
3483
3483
|
"div",
|
|
3484
3484
|
{
|
|
3485
|
-
tabIndex:
|
|
3485
|
+
tabIndex: f || 0,
|
|
3486
3486
|
className: O,
|
|
3487
3487
|
style: E,
|
|
3488
|
-
onKeyDown:
|
|
3489
|
-
"aria-checked":
|
|
3488
|
+
onKeyDown: A,
|
|
3489
|
+
"aria-checked": V,
|
|
3490
3490
|
"aria-disabled": x,
|
|
3491
|
-
"aria-invalid":
|
|
3491
|
+
"aria-invalid": Z,
|
|
3492
3492
|
"aria-describedby": g ? `${i}-error` : void 0,
|
|
3493
3493
|
"data-testid": `${u}-label`,
|
|
3494
3494
|
children: [
|
|
@@ -3499,12 +3499,12 @@ const Md = {}, xl = "_tag_1llsi_1", Hl = "_label_1llsi_16", bl = "_iconWrapper_1
|
|
|
3499
3499
|
type: "checkbox",
|
|
3500
3500
|
id: i,
|
|
3501
3501
|
name: i,
|
|
3502
|
-
checked:
|
|
3502
|
+
checked: V,
|
|
3503
3503
|
disabled: x,
|
|
3504
3504
|
className: T1.input,
|
|
3505
|
-
onChange:
|
|
3506
|
-
"aria-checked":
|
|
3507
|
-
"aria-invalid":
|
|
3505
|
+
onChange: D,
|
|
3506
|
+
"aria-checked": V,
|
|
3507
|
+
"aria-invalid": Z,
|
|
3508
3508
|
"aria-describedby": g ? `${i}-error` : void 0,
|
|
3509
3509
|
"data-testid": `${u}-input`
|
|
3510
3510
|
}
|
|
@@ -3514,7 +3514,7 @@ const Md = {}, xl = "_tag_1llsi_1", Hl = "_label_1llsi_16", bl = "_iconWrapper_1
|
|
|
3514
3514
|
{
|
|
3515
3515
|
name: i,
|
|
3516
3516
|
size: s,
|
|
3517
|
-
isChecked:
|
|
3517
|
+
isChecked: V,
|
|
3518
3518
|
isDisabled: x,
|
|
3519
3519
|
indeterminate: l,
|
|
3520
3520
|
dataTestId: u
|
|
@@ -3529,7 +3529,7 @@ const Md = {}, xl = "_tag_1llsi_1", Hl = "_label_1llsi_16", bl = "_iconWrapper_1
|
|
|
3529
3529
|
"data-testid": `${u}-label-text`,
|
|
3530
3530
|
"data-clickable-label": p,
|
|
3531
3531
|
className: T1.label,
|
|
3532
|
-
onClick:
|
|
3532
|
+
onClick: y,
|
|
3533
3533
|
children: h
|
|
3534
3534
|
}
|
|
3535
3535
|
)
|
|
@@ -3655,8 +3655,8 @@ const Md = {}, xl = "_tag_1llsi_1", Hl = "_label_1llsi_16", bl = "_iconWrapper_1
|
|
|
3655
3655
|
}
|
|
3656
3656
|
);
|
|
3657
3657
|
}, PC = (t, o) => {
|
|
3658
|
-
const i =
|
|
3659
|
-
return
|
|
3658
|
+
const i = v1(null), C = v1(null);
|
|
3659
|
+
return Q(() => {
|
|
3660
3660
|
const s = o === "textarea" ? i.current : C.current;
|
|
3661
3661
|
s && s.value !== t && (s.value = t || "");
|
|
3662
3662
|
}, [t, o]), {
|
|
@@ -3674,17 +3674,17 @@ const Md = {}, xl = "_tag_1llsi_1", Hl = "_label_1llsi_16", bl = "_iconWrapper_1
|
|
|
3674
3674
|
const c = i.current.closest(`.${z.wrapper}`);
|
|
3675
3675
|
c && (c.setAttribute("data-resize", "hug"), c.setAttribute("data-show-grip", "false"));
|
|
3676
3676
|
};
|
|
3677
|
-
return
|
|
3677
|
+
return Q(C, [t, o]), Q(() => {
|
|
3678
3678
|
o === "hug" && i.current && C();
|
|
3679
3679
|
}, []), { resizeTextArea: C };
|
|
3680
|
-
}, NC = (t, o, i, C) => ({ handleGripMouseDown:
|
|
3680
|
+
}, NC = (t, o, i, C) => ({ handleGripMouseDown: x1(
|
|
3681
3681
|
(l) => {
|
|
3682
3682
|
if (!t || o || i || !(C === "fixed" || !C)) return;
|
|
3683
3683
|
l.preventDefault(), l.stopPropagation();
|
|
3684
3684
|
const c = l.currentTarget.closest(`.${z.wrapper}`);
|
|
3685
3685
|
if (!c) return;
|
|
3686
|
-
const g = l.clientY, L = c.clientHeight, v = (
|
|
3687
|
-
const E =
|
|
3686
|
+
const g = l.clientY, L = c.clientHeight, v = (_) => {
|
|
3687
|
+
const E = _.clientY - g, h = Math.min(100, L), p = Math.max(h, L + E);
|
|
3688
3688
|
c.style.height = `${p}px`;
|
|
3689
3689
|
}, d = () => {
|
|
3690
3690
|
document.removeEventListener("mousemove", v), document.removeEventListener("mouseup", d);
|
|
@@ -3692,7 +3692,7 @@ const Md = {}, xl = "_tag_1llsi_1", Hl = "_label_1llsi_16", bl = "_iconWrapper_1
|
|
|
3692
3692
|
document.addEventListener("mousemove", v), document.addEventListener("mouseup", d);
|
|
3693
3693
|
},
|
|
3694
3694
|
[t, o, i, C]
|
|
3695
|
-
) }), m9 = 30, zC =
|
|
3695
|
+
) }), m9 = 30, zC = o1(
|
|
3696
3696
|
({
|
|
3697
3697
|
component: t = "input",
|
|
3698
3698
|
size: o = "L",
|
|
@@ -3705,19 +3705,19 @@ const Md = {}, xl = "_tag_1llsi_1", Hl = "_label_1llsi_16", bl = "_iconWrapper_1
|
|
|
3705
3705
|
onChange: L,
|
|
3706
3706
|
onKeyDown: v,
|
|
3707
3707
|
onKeyUp: d,
|
|
3708
|
-
maxLength:
|
|
3708
|
+
maxLength: _,
|
|
3709
3709
|
className: E,
|
|
3710
3710
|
style: h,
|
|
3711
3711
|
truncate: p = !1,
|
|
3712
|
-
shouldShowFloatingLabelClass:
|
|
3712
|
+
shouldShowFloatingLabelClass: f = !1,
|
|
3713
3713
|
"aria-invalid": m,
|
|
3714
3714
|
"aria-errormessage": w,
|
|
3715
3715
|
id: u,
|
|
3716
3716
|
resize: k,
|
|
3717
3717
|
...b
|
|
3718
|
-
},
|
|
3719
|
-
const { textareaRef: x, inputRef:
|
|
3720
|
-
if ($C(i, k, x), c3(
|
|
3718
|
+
}, B) => {
|
|
3719
|
+
const { textareaRef: x, inputRef: Z, currentRef: V } = PC(i, t);
|
|
3720
|
+
if ($C(i, k, x), c3(B, () => V.current, [V]), t === "textarea")
|
|
3721
3721
|
return /* @__PURE__ */ r.jsx(
|
|
3722
3722
|
"textarea",
|
|
3723
3723
|
{
|
|
@@ -3731,11 +3731,11 @@ const Md = {}, xl = "_tag_1llsi_1", Hl = "_label_1llsi_16", bl = "_iconWrapper_1
|
|
|
3731
3731
|
onChange: L,
|
|
3732
3732
|
onKeyDown: v,
|
|
3733
3733
|
onKeyUp: d,
|
|
3734
|
-
maxLength:
|
|
3734
|
+
maxLength: _,
|
|
3735
3735
|
className: H(
|
|
3736
3736
|
z.textarea,
|
|
3737
3737
|
z[`size-${o}`],
|
|
3738
|
-
|
|
3738
|
+
f && z["with-floating-label"],
|
|
3739
3739
|
E
|
|
3740
3740
|
),
|
|
3741
3741
|
style: h,
|
|
@@ -3751,7 +3751,7 @@ const Md = {}, xl = "_tag_1llsi_1", Hl = "_label_1llsi_16", bl = "_iconWrapper_1
|
|
|
3751
3751
|
return /* @__PURE__ */ r.jsx(
|
|
3752
3752
|
"input",
|
|
3753
3753
|
{
|
|
3754
|
-
ref:
|
|
3754
|
+
ref: Z,
|
|
3755
3755
|
id: u,
|
|
3756
3756
|
value: i,
|
|
3757
3757
|
placeholder: C,
|
|
@@ -3761,11 +3761,11 @@ const Md = {}, xl = "_tag_1llsi_1", Hl = "_label_1llsi_16", bl = "_iconWrapper_1
|
|
|
3761
3761
|
onChange: L,
|
|
3762
3762
|
onKeyDown: v,
|
|
3763
3763
|
onKeyUp: d,
|
|
3764
|
-
maxLength:
|
|
3764
|
+
maxLength: _,
|
|
3765
3765
|
className: H(
|
|
3766
3766
|
z.input,
|
|
3767
3767
|
z[`size-${o}`],
|
|
3768
|
-
|
|
3768
|
+
f && z["with-floating-label"],
|
|
3769
3769
|
p && z.truncate,
|
|
3770
3770
|
E
|
|
3771
3771
|
),
|
|
@@ -3782,7 +3782,7 @@ const Md = {}, xl = "_tag_1llsi_1", Hl = "_label_1llsi_16", bl = "_iconWrapper_1
|
|
|
3782
3782
|
`[Input] Недопустимое значение prop 'component': "${String(t)}". Допустимые значения: 'input', 'textarea'`
|
|
3783
3783
|
), null;
|
|
3784
3784
|
}
|
|
3785
|
-
), R9 =
|
|
3785
|
+
), R9 = o1(
|
|
3786
3786
|
({
|
|
3787
3787
|
children: t,
|
|
3788
3788
|
size: o = "L",
|
|
@@ -3795,28 +3795,28 @@ const Md = {}, xl = "_tag_1llsi_1", Hl = "_label_1llsi_16", bl = "_iconWrapper_1
|
|
|
3795
3795
|
floatingLabelStyles: L,
|
|
3796
3796
|
prefixStyles: v,
|
|
3797
3797
|
suffixStyles: d,
|
|
3798
|
-
labelProps:
|
|
3798
|
+
labelProps: _,
|
|
3799
3799
|
helperProps: E,
|
|
3800
3800
|
showLimit: h = !1,
|
|
3801
3801
|
maxLength: p,
|
|
3802
|
-
hint:
|
|
3802
|
+
hint: f,
|
|
3803
3803
|
showHint: m = !1,
|
|
3804
3804
|
showHintOnEmpty: w = !1,
|
|
3805
3805
|
prefix: u,
|
|
3806
3806
|
suffix: k,
|
|
3807
3807
|
onSuffixClick: b,
|
|
3808
|
-
placeholder:
|
|
3808
|
+
placeholder: B,
|
|
3809
3809
|
showLabel: x = !0,
|
|
3810
|
-
labelClassName:
|
|
3811
|
-
hasValue:
|
|
3810
|
+
labelClassName: Z,
|
|
3811
|
+
hasValue: V = !1,
|
|
3812
3812
|
helper: j,
|
|
3813
3813
|
id: O,
|
|
3814
|
-
value:
|
|
3815
|
-
resize:
|
|
3816
|
-
showGrip:
|
|
3814
|
+
value: D = "",
|
|
3815
|
+
resize: A,
|
|
3816
|
+
showGrip: y = !1,
|
|
3817
3817
|
...R
|
|
3818
|
-
},
|
|
3819
|
-
const
|
|
3818
|
+
}, I) => {
|
|
3819
|
+
const T = F2(), U = O || T, N = m && f && (V || w), n1 = f && f.length > m9 ? f.substring(0, m9) + "..." : f, K = H(
|
|
3820
3820
|
z.wrapper,
|
|
3821
3821
|
z[`size-${o}`],
|
|
3822
3822
|
i && z.error,
|
|
@@ -3826,20 +3826,20 @@ const Md = {}, xl = "_tag_1llsi_1", Hl = "_label_1llsi_16", bl = "_iconWrapper_1
|
|
|
3826
3826
|
k && z["has-suffix"],
|
|
3827
3827
|
h && z["has-limit"],
|
|
3828
3828
|
l
|
|
3829
|
-
),
|
|
3829
|
+
), X = H(
|
|
3830
3830
|
z.floatingLabel,
|
|
3831
3831
|
z[o],
|
|
3832
|
-
|
|
3833
|
-
|
|
3834
|
-
), { handleGripMouseDown:
|
|
3835
|
-
return /* @__PURE__ */ r.jsxs("div", { ref:
|
|
3832
|
+
V && z.filled,
|
|
3833
|
+
Z
|
|
3834
|
+
), { handleGripMouseDown: W } = NC(y, C, s, A);
|
|
3835
|
+
return /* @__PURE__ */ r.jsxs("div", { ref: I, className: z.inputBase, "data-testid": "input-base-wrapper", ...R, children: [
|
|
3836
3836
|
/* @__PURE__ */ r.jsxs(
|
|
3837
3837
|
"div",
|
|
3838
3838
|
{
|
|
3839
|
-
className:
|
|
3839
|
+
className: K,
|
|
3840
3840
|
style: g,
|
|
3841
|
-
"data-resize":
|
|
3842
|
-
"data-show-grip":
|
|
3841
|
+
"data-resize": A,
|
|
3842
|
+
"data-show-grip": y ? "true" : "false",
|
|
3843
3843
|
...c,
|
|
3844
3844
|
children: [
|
|
3845
3845
|
u && /* @__PURE__ */ r.jsx("label", { htmlFor: U, className: z.leftSection, style: v, children: u }),
|
|
@@ -3853,22 +3853,22 @@ const Md = {}, xl = "_tag_1llsi_1", Hl = "_label_1llsi_16", bl = "_iconWrapper_1
|
|
|
3853
3853
|
children: k
|
|
3854
3854
|
}
|
|
3855
3855
|
),
|
|
3856
|
-
|
|
3856
|
+
B && x && /* @__PURE__ */ r.jsx(
|
|
3857
3857
|
"label",
|
|
3858
3858
|
{
|
|
3859
3859
|
htmlFor: U,
|
|
3860
|
-
className:
|
|
3860
|
+
className: X,
|
|
3861
3861
|
style: L,
|
|
3862
|
-
...
|
|
3863
|
-
children:
|
|
3862
|
+
..._,
|
|
3863
|
+
children: B
|
|
3864
3864
|
}
|
|
3865
3865
|
),
|
|
3866
3866
|
t,
|
|
3867
|
-
|
|
3867
|
+
y && !h && (A === "fixed" || !A) && /* @__PURE__ */ r.jsx(
|
|
3868
3868
|
"div",
|
|
3869
3869
|
{
|
|
3870
3870
|
className: z.gripHandle,
|
|
3871
|
-
onMouseDown:
|
|
3871
|
+
onMouseDown: W,
|
|
3872
3872
|
role: "button",
|
|
3873
3873
|
tabIndex: -1,
|
|
3874
3874
|
"aria-label": "Изменить размер",
|
|
@@ -3878,13 +3878,13 @@ const Md = {}, xl = "_tag_1llsi_1", Hl = "_label_1llsi_16", bl = "_iconWrapper_1
|
|
|
3878
3878
|
N && /* @__PURE__ */ r.jsx(
|
|
3879
3879
|
"div",
|
|
3880
3880
|
{
|
|
3881
|
-
className: H(z.hint,
|
|
3881
|
+
className: H(z.hint, V && z.truncate),
|
|
3882
3882
|
"data-disabled": C || s,
|
|
3883
|
-
children:
|
|
3883
|
+
children: n1
|
|
3884
3884
|
}
|
|
3885
3885
|
),
|
|
3886
3886
|
h && p && /* @__PURE__ */ r.jsxs("div", { className: z.characterLimit, children: [
|
|
3887
|
-
(
|
|
3887
|
+
(D || "").length,
|
|
3888
3888
|
" из ",
|
|
3889
3889
|
p
|
|
3890
3890
|
] })
|
|
@@ -3910,7 +3910,7 @@ const Md = {}, xl = "_tag_1llsi_1", Hl = "_label_1llsi_16", bl = "_iconWrapper_1
|
|
|
3910
3910
|
R9.displayName = "InputWrapperComponent";
|
|
3911
3911
|
const p9 = Object.assign(zC, {
|
|
3912
3912
|
Wrapper: R9
|
|
3913
|
-
}), W9 =
|
|
3913
|
+
}), W9 = o1(
|
|
3914
3914
|
({
|
|
3915
3915
|
component: t = "input",
|
|
3916
3916
|
size: o = "L",
|
|
@@ -3923,83 +3923,83 @@ const p9 = Object.assign(zC, {
|
|
|
3923
3923
|
labelClassName: L,
|
|
3924
3924
|
helper: v,
|
|
3925
3925
|
prefix: d,
|
|
3926
|
-
suffix:
|
|
3926
|
+
suffix: _,
|
|
3927
3927
|
id: E,
|
|
3928
3928
|
onFocus: h,
|
|
3929
3929
|
onBlur: p,
|
|
3930
|
-
onKeyDown:
|
|
3930
|
+
onKeyDown: f,
|
|
3931
3931
|
onSuffixClick: m,
|
|
3932
3932
|
onChange: w,
|
|
3933
3933
|
value: u = "",
|
|
3934
3934
|
wrapperProps: k,
|
|
3935
3935
|
wrapperStyles: b,
|
|
3936
|
-
floatingLabelStyles:
|
|
3936
|
+
floatingLabelStyles: B,
|
|
3937
3937
|
prefixStyles: x,
|
|
3938
|
-
suffixStyles:
|
|
3939
|
-
textareaStyles:
|
|
3938
|
+
suffixStyles: Z,
|
|
3939
|
+
textareaStyles: V,
|
|
3940
3940
|
labelProps: j,
|
|
3941
3941
|
helperProps: O,
|
|
3942
|
-
showLimit:
|
|
3943
|
-
maxLength:
|
|
3944
|
-
inputProps:
|
|
3942
|
+
showLimit: D = !1,
|
|
3943
|
+
maxLength: A,
|
|
3944
|
+
inputProps: y,
|
|
3945
3945
|
hint: R,
|
|
3946
|
-
showHint:
|
|
3947
|
-
showHintOnEmpty:
|
|
3946
|
+
showHint: I = !1,
|
|
3947
|
+
showHintOnEmpty: T = !1,
|
|
3948
3948
|
truncate: U = !1,
|
|
3949
3949
|
resize: N,
|
|
3950
|
-
showGrip:
|
|
3951
|
-
...
|
|
3952
|
-
},
|
|
3953
|
-
const
|
|
3954
|
-
(
|
|
3955
|
-
var
|
|
3956
|
-
s || l || (h == null || h(), (
|
|
3957
|
-
|
|
3958
|
-
|
|
3950
|
+
showGrip: n1 = !1,
|
|
3951
|
+
...K
|
|
3952
|
+
}, X) => {
|
|
3953
|
+
const W = F2(), J = E || W, [L1, p1] = d1(u), h1 = u !== void 0 ? u : L1, O1 = (h1 || "").length > 0, R1 = h1 || "", b1 = g && (o === "XL" || t === "textarea") && !d, n2 = x1(
|
|
3954
|
+
(i1) => {
|
|
3955
|
+
var l1;
|
|
3956
|
+
s || l || (h == null || h(), (l1 = y == null ? void 0 : y.onFocus) == null || l1.call(
|
|
3957
|
+
y,
|
|
3958
|
+
i1
|
|
3959
3959
|
));
|
|
3960
3960
|
},
|
|
3961
|
-
[h,
|
|
3962
|
-
), $1 =
|
|
3963
|
-
(
|
|
3964
|
-
var
|
|
3965
|
-
if (
|
|
3966
|
-
const
|
|
3967
|
-
|
|
3961
|
+
[h, y, s, l]
|
|
3962
|
+
), $1 = x1(
|
|
3963
|
+
(i1) => {
|
|
3964
|
+
var l1;
|
|
3965
|
+
if (i1.key === "Tab") {
|
|
3966
|
+
const u1 = i1.target.closest(`.${z.wrapper}`);
|
|
3967
|
+
u1 && u1.classList.add(z.tabFocused);
|
|
3968
3968
|
}
|
|
3969
|
-
(
|
|
3970
|
-
|
|
3971
|
-
|
|
3969
|
+
(l1 = y == null ? void 0 : y.onKeyUp) == null || l1.call(
|
|
3970
|
+
y,
|
|
3971
|
+
i1
|
|
3972
3972
|
);
|
|
3973
3973
|
},
|
|
3974
|
-
[
|
|
3975
|
-
), r2 =
|
|
3976
|
-
(
|
|
3977
|
-
var
|
|
3978
|
-
const
|
|
3979
|
-
|
|
3980
|
-
|
|
3981
|
-
|
|
3974
|
+
[y]
|
|
3975
|
+
), r2 = x1(
|
|
3976
|
+
(i1) => {
|
|
3977
|
+
var u1;
|
|
3978
|
+
const l1 = i1.target.closest(`.${z.wrapper}`);
|
|
3979
|
+
l1 && l1.classList.remove(z.tabFocused), p == null || p(), (u1 = y == null ? void 0 : y.onBlur) == null || u1.call(
|
|
3980
|
+
y,
|
|
3981
|
+
i1
|
|
3982
3982
|
);
|
|
3983
3983
|
},
|
|
3984
|
-
[p,
|
|
3985
|
-
), o2 =
|
|
3986
|
-
(
|
|
3987
|
-
var
|
|
3984
|
+
[p, y]
|
|
3985
|
+
), o2 = x1(
|
|
3986
|
+
(i1) => {
|
|
3987
|
+
var u1;
|
|
3988
3988
|
if (s || l) return;
|
|
3989
|
-
const
|
|
3990
|
-
|
|
3991
|
-
|
|
3992
|
-
|
|
3989
|
+
const l1 = i1.target.value;
|
|
3990
|
+
p1(l1), w == null || w(l1, i1), (u1 = y == null ? void 0 : y.onChange) == null || u1.call(
|
|
3991
|
+
y,
|
|
3992
|
+
i1
|
|
3993
3993
|
);
|
|
3994
3994
|
},
|
|
3995
|
-
[w,
|
|
3995
|
+
[w, y, s, l]
|
|
3996
3996
|
);
|
|
3997
|
-
return
|
|
3998
|
-
|
|
3997
|
+
return Q(() => {
|
|
3998
|
+
p1(u || "");
|
|
3999
3999
|
}, [u]), /* @__PURE__ */ r.jsx(
|
|
4000
4000
|
p9.Wrapper,
|
|
4001
4001
|
{
|
|
4002
|
-
ref:
|
|
4002
|
+
ref: X,
|
|
4003
4003
|
size: o,
|
|
4004
4004
|
error: C,
|
|
4005
4005
|
disabled: s || l,
|
|
@@ -4007,29 +4007,29 @@ const p9 = Object.assign(zC, {
|
|
|
4007
4007
|
className: H(i, t === "textarea" && z["textarea-wrapper"]),
|
|
4008
4008
|
wrapperProps: k,
|
|
4009
4009
|
wrapperStyles: b,
|
|
4010
|
-
floatingLabelStyles:
|
|
4010
|
+
floatingLabelStyles: B,
|
|
4011
4011
|
prefixStyles: x,
|
|
4012
|
-
suffixStyles:
|
|
4012
|
+
suffixStyles: Z,
|
|
4013
4013
|
labelProps: j,
|
|
4014
4014
|
helperProps: O,
|
|
4015
|
-
showLimit:
|
|
4016
|
-
maxLength:
|
|
4015
|
+
showLimit: D,
|
|
4016
|
+
maxLength: A,
|
|
4017
4017
|
hint: R,
|
|
4018
|
-
showHint:
|
|
4019
|
-
showHintOnEmpty:
|
|
4018
|
+
showHint: I,
|
|
4019
|
+
showHintOnEmpty: T,
|
|
4020
4020
|
prefix: d,
|
|
4021
|
-
suffix:
|
|
4021
|
+
suffix: _,
|
|
4022
4022
|
onSuffixClick: m,
|
|
4023
4023
|
placeholder: c,
|
|
4024
4024
|
showLabel: g,
|
|
4025
4025
|
labelClassName: L,
|
|
4026
4026
|
hasValue: O1,
|
|
4027
4027
|
helper: v,
|
|
4028
|
-
id:
|
|
4028
|
+
id: J,
|
|
4029
4029
|
value: R1,
|
|
4030
|
-
showGrip:
|
|
4030
|
+
showGrip: n1,
|
|
4031
4031
|
resize: N,
|
|
4032
|
-
...
|
|
4032
|
+
...K,
|
|
4033
4033
|
children: /* @__PURE__ */ r.jsx(
|
|
4034
4034
|
p9,
|
|
4035
4035
|
{
|
|
@@ -4042,18 +4042,18 @@ const p9 = Object.assign(zC, {
|
|
|
4042
4042
|
onFocus: n2,
|
|
4043
4043
|
onBlur: r2,
|
|
4044
4044
|
onChange: o2,
|
|
4045
|
-
onKeyDown:
|
|
4045
|
+
onKeyDown: f,
|
|
4046
4046
|
onKeyUp: $1,
|
|
4047
|
-
maxLength:
|
|
4047
|
+
maxLength: A,
|
|
4048
4048
|
truncate: U,
|
|
4049
4049
|
"data-empty": !O1,
|
|
4050
4050
|
shouldShowFloatingLabelClass: b1,
|
|
4051
|
-
style: t === "textarea" ?
|
|
4051
|
+
style: t === "textarea" ? V : void 0,
|
|
4052
4052
|
"aria-invalid": !!C,
|
|
4053
|
-
"aria-errormessage": C ? `${
|
|
4054
|
-
id:
|
|
4053
|
+
"aria-errormessage": C ? `${J}-error` : void 0,
|
|
4054
|
+
id: J,
|
|
4055
4055
|
resize: N,
|
|
4056
|
-
...
|
|
4056
|
+
...y
|
|
4057
4057
|
}
|
|
4058
4058
|
)
|
|
4059
4059
|
}
|
|
@@ -4216,7 +4216,7 @@ const p9 = Object.assign(zC, {
|
|
|
4216
4216
|
suffixStyles: {}
|
|
4217
4217
|
};
|
|
4218
4218
|
}
|
|
4219
|
-
},
|
|
4219
|
+
}, yd = o1(
|
|
4220
4220
|
({
|
|
4221
4221
|
value: t = "",
|
|
4222
4222
|
onChange: o,
|
|
@@ -4229,33 +4229,33 @@ const p9 = Object.assign(zC, {
|
|
|
4229
4229
|
size: L = t1.L,
|
|
4230
4230
|
inputProps: v,
|
|
4231
4231
|
error: d,
|
|
4232
|
-
disabled:
|
|
4232
|
+
disabled: _,
|
|
4233
4233
|
loading: E,
|
|
4234
4234
|
helper: h,
|
|
4235
4235
|
prefix: p,
|
|
4236
|
-
suffix:
|
|
4236
|
+
suffix: f,
|
|
4237
4237
|
clearable: m = !1,
|
|
4238
4238
|
id: w,
|
|
4239
4239
|
showLabel: u = !0,
|
|
4240
4240
|
onFocus: k,
|
|
4241
4241
|
onBlur: b,
|
|
4242
|
-
onSuffixClick:
|
|
4242
|
+
onSuffixClick: B,
|
|
4243
4243
|
onClear: x,
|
|
4244
|
-
className:
|
|
4245
|
-
truncate:
|
|
4244
|
+
className: Z,
|
|
4245
|
+
truncate: V = !0,
|
|
4246
4246
|
hint: j,
|
|
4247
4247
|
showHint: O = !1,
|
|
4248
|
-
showHintOnEmpty:
|
|
4249
|
-
wrapperProps:
|
|
4250
|
-
labelProps:
|
|
4248
|
+
showHintOnEmpty: D = !1,
|
|
4249
|
+
wrapperProps: A,
|
|
4250
|
+
labelProps: y,
|
|
4251
4251
|
helperProps: R,
|
|
4252
|
-
...
|
|
4253
|
-
},
|
|
4254
|
-
const U = (t || "").length > 0, N = L === t1.XL,
|
|
4252
|
+
...I
|
|
4253
|
+
}, T) => {
|
|
4254
|
+
const U = (t || "").length > 0, N = L === t1.XL, n1 = !!p, K = N && u && !p, X = m && U && !(_ || E), W = () => {
|
|
4255
4255
|
o == null || o(""), x == null || x();
|
|
4256
|
-
},
|
|
4257
|
-
|
|
4258
|
-
},
|
|
4256
|
+
}, J = () => {
|
|
4257
|
+
X && W(), B == null || B();
|
|
4258
|
+
}, L1 = X ? /* @__PURE__ */ r.jsx(
|
|
4259
4259
|
D2,
|
|
4260
4260
|
{
|
|
4261
4261
|
size: L === t1.S || L === t1.M ? "xs" : "sm",
|
|
@@ -4263,60 +4263,60 @@ const p9 = Object.assign(zC, {
|
|
|
4263
4263
|
style: { cursor: "pointer" },
|
|
4264
4264
|
"data-testid": "x-icon"
|
|
4265
4265
|
}
|
|
4266
|
-
) :
|
|
4266
|
+
) : f, p1 = {
|
|
4267
4267
|
type: i,
|
|
4268
4268
|
minLength: l,
|
|
4269
4269
|
autoComplete: c,
|
|
4270
4270
|
autoFocus: g,
|
|
4271
4271
|
...v
|
|
4272
|
-
}, h1 = ea(L,
|
|
4272
|
+
}, h1 = ea(L, K, U, n1);
|
|
4273
4273
|
return /* @__PURE__ */ r.jsx(
|
|
4274
4274
|
W9,
|
|
4275
4275
|
{
|
|
4276
4276
|
size: L,
|
|
4277
4277
|
error: d,
|
|
4278
|
-
disabled:
|
|
4278
|
+
disabled: _ || E,
|
|
4279
4279
|
loading: E,
|
|
4280
4280
|
helper: h,
|
|
4281
4281
|
prefix: p,
|
|
4282
|
-
suffix:
|
|
4282
|
+
suffix: L1,
|
|
4283
4283
|
id: w,
|
|
4284
|
-
showLabel:
|
|
4284
|
+
showLabel: K,
|
|
4285
4285
|
onFocus: k,
|
|
4286
4286
|
onBlur: b,
|
|
4287
|
-
onSuffixClick:
|
|
4287
|
+
onSuffixClick: J,
|
|
4288
4288
|
onChange: o,
|
|
4289
4289
|
value: t,
|
|
4290
4290
|
placeholder: C,
|
|
4291
|
-
className:
|
|
4291
|
+
className: Z,
|
|
4292
4292
|
wrapperStyles: h1.wrapperStyles,
|
|
4293
4293
|
floatingLabelStyles: h1.floatingLabelStyles,
|
|
4294
4294
|
prefixStyles: h1.prefixStyles,
|
|
4295
4295
|
suffixStyles: h1.suffixStyles,
|
|
4296
|
-
wrapperProps:
|
|
4297
|
-
labelProps:
|
|
4296
|
+
wrapperProps: A,
|
|
4297
|
+
labelProps: y,
|
|
4298
4298
|
helperProps: R,
|
|
4299
4299
|
showLimit: !1,
|
|
4300
4300
|
maxLength: s,
|
|
4301
|
-
inputProps:
|
|
4301
|
+
inputProps: p1,
|
|
4302
4302
|
hint: j,
|
|
4303
4303
|
showHint: O,
|
|
4304
|
-
showHintOnEmpty:
|
|
4305
|
-
truncate:
|
|
4306
|
-
...
|
|
4304
|
+
showHintOnEmpty: D,
|
|
4305
|
+
truncate: V,
|
|
4306
|
+
...I
|
|
4307
4307
|
}
|
|
4308
4308
|
);
|
|
4309
4309
|
}
|
|
4310
|
-
),
|
|
4310
|
+
), H1 = {
|
|
4311
4311
|
M: "M",
|
|
4312
4312
|
L: "L"
|
|
4313
|
-
},
|
|
4313
|
+
}, v2 = {
|
|
4314
4314
|
M: "12px",
|
|
4315
4315
|
L: "16px"
|
|
4316
4316
|
}, ta = {
|
|
4317
4317
|
M: "xs",
|
|
4318
4318
|
L: "sm"
|
|
4319
|
-
},
|
|
4319
|
+
}, p2 = {
|
|
4320
4320
|
FILL: "fill",
|
|
4321
4321
|
FIXED: "fixed"
|
|
4322
4322
|
}, V2 = {
|
|
@@ -4335,18 +4335,18 @@ const p9 = Object.assign(zC, {
|
|
|
4335
4335
|
L: 56,
|
|
4336
4336
|
XL: 112
|
|
4337
4337
|
}, na = (t, o) => {
|
|
4338
|
-
if (t ===
|
|
4338
|
+
if (t === H1.M)
|
|
4339
4339
|
return V2.M;
|
|
4340
4340
|
if (o)
|
|
4341
4341
|
return `${o}px`;
|
|
4342
4342
|
switch (t) {
|
|
4343
|
-
case
|
|
4343
|
+
case H1.L:
|
|
4344
4344
|
return V2.L;
|
|
4345
4345
|
default:
|
|
4346
4346
|
return V2.L;
|
|
4347
4347
|
}
|
|
4348
4348
|
}, ra = (t, o) => {
|
|
4349
|
-
if (t ===
|
|
4349
|
+
if (t === H1.M)
|
|
4350
4350
|
return J1.M;
|
|
4351
4351
|
if (o)
|
|
4352
4352
|
switch (o) {
|
|
@@ -4359,13 +4359,13 @@ const p9 = Object.assign(zC, {
|
|
|
4359
4359
|
return J1.L;
|
|
4360
4360
|
}
|
|
4361
4361
|
switch (t) {
|
|
4362
|
-
case
|
|
4362
|
+
case H1.L:
|
|
4363
4363
|
return J1.L;
|
|
4364
4364
|
default:
|
|
4365
4365
|
return J1.L;
|
|
4366
4366
|
}
|
|
4367
4367
|
}, oa = (t, o, i) => {
|
|
4368
|
-
if (t ===
|
|
4368
|
+
if (t === H1.M)
|
|
4369
4369
|
return I1.M;
|
|
4370
4370
|
if (o)
|
|
4371
4371
|
switch (o) {
|
|
@@ -4379,13 +4379,13 @@ const p9 = Object.assign(zC, {
|
|
|
4379
4379
|
return I1.L;
|
|
4380
4380
|
}
|
|
4381
4381
|
switch (t) {
|
|
4382
|
-
case
|
|
4382
|
+
case H1.L:
|
|
4383
4383
|
return i ? I1.L_FLOATING_LABEL : I1.L;
|
|
4384
4384
|
default:
|
|
4385
4385
|
return I1.L;
|
|
4386
4386
|
}
|
|
4387
4387
|
}, ia = (t, o) => {
|
|
4388
|
-
if (t ===
|
|
4388
|
+
if (t === H1.M)
|
|
4389
4389
|
return "M";
|
|
4390
4390
|
if (o)
|
|
4391
4391
|
switch (o) {
|
|
@@ -4399,37 +4399,37 @@ const p9 = Object.assign(zC, {
|
|
|
4399
4399
|
return "L";
|
|
4400
4400
|
}
|
|
4401
4401
|
return t;
|
|
4402
|
-
}, la = (t) => ta[t], Ca = (t) =>
|
|
4402
|
+
}, la = (t) => ta[t], Ca = (t) => v2[t], aa = (t, o, i, C) => {
|
|
4403
4403
|
const s = na(t, o), l = ra(t, o), c = oa(t, o, i);
|
|
4404
4404
|
return {
|
|
4405
4405
|
wrapperStyles: {
|
|
4406
4406
|
minHeight: s,
|
|
4407
4407
|
// Для fill resize устанавливаем height: 100%
|
|
4408
|
-
...C ===
|
|
4408
|
+
...C === p2.FILL && { height: "100%" },
|
|
4409
4409
|
// Для fixed resize устанавливаем фиксированную высоту
|
|
4410
|
-
...C ===
|
|
4410
|
+
...C === p2.FIXED && o && { height: s },
|
|
4411
4411
|
boxSizing: "border-box",
|
|
4412
4412
|
padding: c
|
|
4413
4413
|
},
|
|
4414
4414
|
floatingLabelStyles: {
|
|
4415
|
-
left: t ===
|
|
4415
|
+
left: t === H1.M ? v2.M : v2.L,
|
|
4416
4416
|
transformOrigin: "left top",
|
|
4417
|
-
top: o === 112 && i && t ===
|
|
4417
|
+
top: o === 112 && i && t === H1.L ? v2.L : void 0
|
|
4418
4418
|
},
|
|
4419
4419
|
suffixStyles: {
|
|
4420
4420
|
right: Ca(t),
|
|
4421
|
-
top: o === 48 && t ===
|
|
4421
|
+
top: o === 48 && t === H1.L ? "11px" : void 0,
|
|
4422
4422
|
boxSizing: "border-box"
|
|
4423
4423
|
},
|
|
4424
4424
|
textareaStyles: {
|
|
4425
4425
|
minHeight: l,
|
|
4426
4426
|
// Для fill resize flex: 1
|
|
4427
|
-
...C ===
|
|
4427
|
+
...C === p2.FILL && { flex: 1, minHeight: 0 },
|
|
4428
4428
|
// Для fixed resize фиксированная высота
|
|
4429
|
-
...C ===
|
|
4429
|
+
...C === p2.FIXED && o && { height: l }
|
|
4430
4430
|
}
|
|
4431
4431
|
};
|
|
4432
|
-
},
|
|
4432
|
+
}, Sd = o1(
|
|
4433
4433
|
({
|
|
4434
4434
|
value: t = "",
|
|
4435
4435
|
onChange: o,
|
|
@@ -4437,36 +4437,36 @@ const p9 = Object.assign(zC, {
|
|
|
4437
4437
|
maxLength: C,
|
|
4438
4438
|
minLength: s,
|
|
4439
4439
|
autoFocus: l,
|
|
4440
|
-
size: c =
|
|
4440
|
+
size: c = H1.L,
|
|
4441
4441
|
textareaProps: g,
|
|
4442
4442
|
error: L,
|
|
4443
4443
|
disabled: v,
|
|
4444
4444
|
loading: d,
|
|
4445
|
-
helper:
|
|
4445
|
+
helper: _,
|
|
4446
4446
|
suffix: E,
|
|
4447
4447
|
clearable: h = !1,
|
|
4448
4448
|
id: p,
|
|
4449
|
-
showLabel:
|
|
4449
|
+
showLabel: f = !0,
|
|
4450
4450
|
onFocus: m,
|
|
4451
4451
|
onBlur: w,
|
|
4452
4452
|
onClear: u,
|
|
4453
4453
|
onKeyDown: k,
|
|
4454
4454
|
className: b,
|
|
4455
|
-
rows:
|
|
4455
|
+
rows: B = 1,
|
|
4456
4456
|
showLimit: x = !1,
|
|
4457
|
-
wrapperProps:
|
|
4458
|
-
labelProps:
|
|
4457
|
+
wrapperProps: Z,
|
|
4458
|
+
labelProps: V,
|
|
4459
4459
|
helperProps: j,
|
|
4460
4460
|
showGrip: O,
|
|
4461
|
-
minHeight:
|
|
4462
|
-
resize:
|
|
4463
|
-
...
|
|
4461
|
+
minHeight: D,
|
|
4462
|
+
resize: A,
|
|
4463
|
+
...y
|
|
4464
4464
|
}, R) => {
|
|
4465
|
-
const
|
|
4465
|
+
const I = (t || "").length > 0, T = f && !!i && (c === H1.M || D !== 48), U = h && I && !(v || d), N = () => {
|
|
4466
4466
|
o == null || o(""), u == null || u();
|
|
4467
|
-
},
|
|
4467
|
+
}, n1 = () => {
|
|
4468
4468
|
U && N();
|
|
4469
|
-
},
|
|
4469
|
+
}, K = U ? /* @__PURE__ */ r.jsx(
|
|
4470
4470
|
D2,
|
|
4471
4471
|
{
|
|
4472
4472
|
size: la(c),
|
|
@@ -4474,11 +4474,11 @@ const p9 = Object.assign(zC, {
|
|
|
4474
4474
|
style: { cursor: "pointer" },
|
|
4475
4475
|
"data-testid": "x-icon"
|
|
4476
4476
|
}
|
|
4477
|
-
) : E,
|
|
4478
|
-
rows:
|
|
4477
|
+
) : E, X = aa(c, D, T && I, A), W = ia(c, D), J = {
|
|
4478
|
+
rows: B,
|
|
4479
4479
|
minLength: s,
|
|
4480
4480
|
autoFocus: l,
|
|
4481
|
-
resize:
|
|
4481
|
+
resize: A,
|
|
4482
4482
|
...g
|
|
4483
4483
|
};
|
|
4484
4484
|
return /* @__PURE__ */ r.jsx(
|
|
@@ -4486,15 +4486,15 @@ const p9 = Object.assign(zC, {
|
|
|
4486
4486
|
{
|
|
4487
4487
|
ref: R,
|
|
4488
4488
|
component: "textarea",
|
|
4489
|
-
size:
|
|
4489
|
+
size: W,
|
|
4490
4490
|
error: L,
|
|
4491
4491
|
disabled: v || d,
|
|
4492
4492
|
loading: d,
|
|
4493
|
-
onSuffixClick:
|
|
4494
|
-
helper:
|
|
4495
|
-
suffix:
|
|
4493
|
+
onSuffixClick: n1,
|
|
4494
|
+
helper: _,
|
|
4495
|
+
suffix: K,
|
|
4496
4496
|
id: p,
|
|
4497
|
-
showLabel:
|
|
4497
|
+
showLabel: T,
|
|
4498
4498
|
onFocus: m,
|
|
4499
4499
|
onBlur: w,
|
|
4500
4500
|
onKeyDown: k,
|
|
@@ -4502,20 +4502,20 @@ const p9 = Object.assign(zC, {
|
|
|
4502
4502
|
value: t || "",
|
|
4503
4503
|
placeholder: i,
|
|
4504
4504
|
className: b,
|
|
4505
|
-
"data-floating-label":
|
|
4506
|
-
wrapperStyles:
|
|
4507
|
-
floatingLabelStyles:
|
|
4508
|
-
suffixStyles:
|
|
4509
|
-
textareaStyles:
|
|
4510
|
-
wrapperProps:
|
|
4511
|
-
labelProps:
|
|
4505
|
+
"data-floating-label": T,
|
|
4506
|
+
wrapperStyles: X.wrapperStyles,
|
|
4507
|
+
floatingLabelStyles: X.floatingLabelStyles,
|
|
4508
|
+
suffixStyles: X.suffixStyles,
|
|
4509
|
+
textareaStyles: X.textareaStyles,
|
|
4510
|
+
wrapperProps: Z,
|
|
4511
|
+
labelProps: V,
|
|
4512
4512
|
helperProps: j,
|
|
4513
|
-
showLimit: x && (
|
|
4513
|
+
showLimit: x && (D === 112 || c === H1.M),
|
|
4514
4514
|
maxLength: C,
|
|
4515
|
-
inputProps:
|
|
4516
|
-
resize:
|
|
4515
|
+
inputProps: J,
|
|
4516
|
+
resize: A,
|
|
4517
4517
|
showGrip: O,
|
|
4518
|
-
...
|
|
4518
|
+
...y
|
|
4519
4519
|
}
|
|
4520
4520
|
);
|
|
4521
4521
|
}
|
|
@@ -4550,7 +4550,7 @@ const p9 = Object.assign(zC, {
|
|
|
4550
4550
|
children: /* @__PURE__ */ r.jsx("p", { children: d })
|
|
4551
4551
|
}
|
|
4552
4552
|
);
|
|
4553
|
-
}, da = "_radio_1n8zx_59", ha = "_checked_1n8zx_80", ga = "_error_1n8zx_85", ma = "_disabled_1n8zx_94", pa = "_icon_1n8zx_130", ua = "_small_1n8zx_138", La = "_medium_1n8zx_145", wa = "_large_1n8zx_152", va = "_label_1n8zx_159", fa = "_container_1n8zx_185", _a = "_input_1n8zx_198", Ea = "_card_1n8zx_205", ka = "_smallCard_1n8zx_211", Ma = "_mediumCard_1n8zx_215", xa = "_largeCard_1n8zx_219",
|
|
4553
|
+
}, da = "_radio_1n8zx_59", ha = "_checked_1n8zx_80", ga = "_error_1n8zx_85", ma = "_disabled_1n8zx_94", pa = "_icon_1n8zx_130", ua = "_small_1n8zx_138", La = "_medium_1n8zx_145", wa = "_large_1n8zx_152", va = "_label_1n8zx_159", fa = "_container_1n8zx_185", _a = "_input_1n8zx_198", Ea = "_card_1n8zx_205", ka = "_smallCard_1n8zx_211", Ma = "_mediumCard_1n8zx_215", xa = "_largeCard_1n8zx_219", M1 = {
|
|
4554
4554
|
default: "_default_1n8zx_53",
|
|
4555
4555
|
radio: da,
|
|
4556
4556
|
checked: ha,
|
|
@@ -4567,7 +4567,7 @@ const p9 = Object.assign(zC, {
|
|
|
4567
4567
|
smallCard: ka,
|
|
4568
4568
|
mediumCard: Ma,
|
|
4569
4569
|
largeCard: xa
|
|
4570
|
-
}, Ha = "radio-container-", ba = "radio-label", F9 =
|
|
4570
|
+
}, Ha = "radio-container-", ba = "radio-label", F9 = o1(
|
|
4571
4571
|
(t, o) => {
|
|
4572
4572
|
const {
|
|
4573
4573
|
name: i,
|
|
@@ -4579,44 +4579,44 @@ const p9 = Object.assign(zC, {
|
|
|
4579
4579
|
disabled: L = !1,
|
|
4580
4580
|
checked: v = !1,
|
|
4581
4581
|
containerClassName: d,
|
|
4582
|
-
className:
|
|
4582
|
+
className: _,
|
|
4583
4583
|
children: E,
|
|
4584
4584
|
clickable: h = "all",
|
|
4585
4585
|
mode: p = "default",
|
|
4586
|
-
tabIndex:
|
|
4586
|
+
tabIndex: f,
|
|
4587
4587
|
style: m,
|
|
4588
4588
|
containerStyle: w,
|
|
4589
4589
|
onChange: u,
|
|
4590
4590
|
"data-testid": k,
|
|
4591
4591
|
...b
|
|
4592
|
-
} = t,
|
|
4593
|
-
x || u == null || u(s,
|
|
4594
|
-
},
|
|
4595
|
-
|
|
4596
|
-
},
|
|
4592
|
+
} = t, B = !!g, x = L || c, Z = h === "all", V = p === "card", j = M1[`${l}Card`], O = C ?? i, D = (T) => {
|
|
4593
|
+
x || u == null || u(s, T);
|
|
4594
|
+
}, A = (T) => {
|
|
4595
|
+
T.key === "Enter" && !x && (T.preventDefault(), u == null || u(s));
|
|
4596
|
+
}, y = (T) => T.stopPropagation(), R = () => /* @__PURE__ */ r.jsxs(
|
|
4597
4597
|
"div",
|
|
4598
4598
|
{
|
|
4599
4599
|
className: H(
|
|
4600
|
-
|
|
4601
|
-
|
|
4600
|
+
M1.radio,
|
|
4601
|
+
M1[l],
|
|
4602
4602
|
{
|
|
4603
|
-
[
|
|
4604
|
-
[
|
|
4605
|
-
[
|
|
4603
|
+
[M1.checked]: v,
|
|
4604
|
+
[M1.disabled]: x,
|
|
4605
|
+
[M1.error]: B && !x
|
|
4606
4606
|
},
|
|
4607
|
-
|
|
4607
|
+
_
|
|
4608
4608
|
),
|
|
4609
4609
|
style: m,
|
|
4610
|
-
tabIndex:
|
|
4610
|
+
tabIndex: f || 1,
|
|
4611
4611
|
"data-testid": `${Ha}${O}`,
|
|
4612
4612
|
children: [
|
|
4613
4613
|
/* @__PURE__ */ r.jsx(
|
|
4614
4614
|
"input",
|
|
4615
4615
|
{
|
|
4616
4616
|
"aria-errormessage": g,
|
|
4617
|
-
"aria-invalid":
|
|
4617
|
+
"aria-invalid": B,
|
|
4618
4618
|
checked: v,
|
|
4619
|
-
className:
|
|
4619
|
+
className: M1.input,
|
|
4620
4620
|
"data-testid": `radio-${O}`,
|
|
4621
4621
|
disabled: x,
|
|
4622
4622
|
id: O,
|
|
@@ -4624,42 +4624,42 @@ const p9 = Object.assign(zC, {
|
|
|
4624
4624
|
ref: o,
|
|
4625
4625
|
type: "radio",
|
|
4626
4626
|
value: s,
|
|
4627
|
-
onChange:
|
|
4628
|
-
onClick:
|
|
4627
|
+
onChange: D,
|
|
4628
|
+
onClick: y
|
|
4629
4629
|
}
|
|
4630
4630
|
),
|
|
4631
|
-
/* @__PURE__ */ r.jsx("svg", { "data-testid": `radio-icon-${O}`, viewBox: "0 0 8 8", className:
|
|
4631
|
+
/* @__PURE__ */ r.jsx("svg", { "data-testid": `radio-icon-${O}`, viewBox: "0 0 8 8", className: M1.icon, children: /* @__PURE__ */ r.jsx("circle", { cx: 4, cy: 4, fill: "current", r: 4 }) })
|
|
4632
4632
|
]
|
|
4633
4633
|
}
|
|
4634
|
-
),
|
|
4634
|
+
), I = () => /* @__PURE__ */ r.jsxs(
|
|
4635
4635
|
"label",
|
|
4636
4636
|
{
|
|
4637
4637
|
"aria-checked": v,
|
|
4638
4638
|
"aria-disabled": x,
|
|
4639
|
-
"data-testid":
|
|
4639
|
+
"data-testid": Z ? k : ba,
|
|
4640
4640
|
htmlFor: O,
|
|
4641
4641
|
style: w,
|
|
4642
|
-
className: H(
|
|
4643
|
-
[H(
|
|
4644
|
-
[j]:
|
|
4642
|
+
className: H(M1.label, {
|
|
4643
|
+
[H(M1.container, M1[p], d)]: Z,
|
|
4644
|
+
[j]: Z && V
|
|
4645
4645
|
}),
|
|
4646
|
-
onKeyDown:
|
|
4646
|
+
onKeyDown: A,
|
|
4647
4647
|
...b,
|
|
4648
4648
|
children: [
|
|
4649
4649
|
R(),
|
|
4650
|
-
|
|
4650
|
+
Z && E
|
|
4651
4651
|
]
|
|
4652
4652
|
}
|
|
4653
4653
|
);
|
|
4654
|
-
return
|
|
4654
|
+
return Z ? I() : /* @__PURE__ */ r.jsxs(
|
|
4655
4655
|
"div",
|
|
4656
4656
|
{
|
|
4657
|
-
className: H(
|
|
4658
|
-
[j]:
|
|
4657
|
+
className: H(M1.container, M1[p], d, {
|
|
4658
|
+
[j]: V
|
|
4659
4659
|
}),
|
|
4660
4660
|
"data-testid": k,
|
|
4661
4661
|
children: [
|
|
4662
|
-
|
|
4662
|
+
I(),
|
|
4663
4663
|
E
|
|
4664
4664
|
]
|
|
4665
4665
|
}
|
|
@@ -4669,7 +4669,7 @@ const p9 = Object.assign(zC, {
|
|
|
4669
4669
|
group: Za,
|
|
4670
4670
|
vertical: Va,
|
|
4671
4671
|
horizontal: ya
|
|
4672
|
-
}, Sa =
|
|
4672
|
+
}, Sa = o1(
|
|
4673
4673
|
(t, o) => {
|
|
4674
4674
|
const {
|
|
4675
4675
|
id: i,
|
|
@@ -4681,37 +4681,37 @@ const p9 = Object.assign(zC, {
|
|
|
4681
4681
|
disabled: L = !1,
|
|
4682
4682
|
layout: v = "vertical",
|
|
4683
4683
|
"data-testid": d,
|
|
4684
|
-
...
|
|
4684
|
+
..._
|
|
4685
4685
|
} = t;
|
|
4686
4686
|
return /* @__PURE__ */ r.jsx(
|
|
4687
4687
|
"div",
|
|
4688
4688
|
{
|
|
4689
|
-
className:
|
|
4689
|
+
className: k1(u9.group, u9[v], c),
|
|
4690
4690
|
"data-testid": d ?? `radio-group-${C}`,
|
|
4691
4691
|
id: i,
|
|
4692
4692
|
ref: o,
|
|
4693
4693
|
children: l.map(({ label: E, value: h, disabled: p }) => {
|
|
4694
|
-
const
|
|
4694
|
+
const f = `${C}-${String(h)}`, m = String(h) === String(s);
|
|
4695
4695
|
return /* @__PURE__ */ r.jsx(
|
|
4696
4696
|
F9,
|
|
4697
4697
|
{
|
|
4698
|
-
id:
|
|
4698
|
+
id: f,
|
|
4699
4699
|
checked: m,
|
|
4700
|
-
"data-testid":
|
|
4700
|
+
"data-testid": f,
|
|
4701
4701
|
disabled: L || p,
|
|
4702
4702
|
name: C,
|
|
4703
4703
|
value: h,
|
|
4704
4704
|
className: g,
|
|
4705
|
-
...
|
|
4705
|
+
..._,
|
|
4706
4706
|
children: E
|
|
4707
4707
|
},
|
|
4708
|
-
|
|
4708
|
+
f
|
|
4709
4709
|
);
|
|
4710
4710
|
})
|
|
4711
4711
|
}
|
|
4712
4712
|
);
|
|
4713
4713
|
}
|
|
4714
|
-
),
|
|
4714
|
+
), Bd = Object.assign(F9, {
|
|
4715
4715
|
Group: Sa
|
|
4716
4716
|
}), Ba = "_root_1jj3e_25", ja = "_unordered_1jj3e_39", Oa = "_ordered_1jj3e_43", Ra = "_sm_1jj3e_48", Wa = "_md_1jj3e_59", Fa = "_lg_1jj3e_70", Ia = "_xl_1jj3e_81", S2 = {
|
|
4717
4717
|
root: Ba,
|
|
@@ -4724,8 +4724,8 @@ const p9 = Object.assign(zC, {
|
|
|
4724
4724
|
}, Ta = (t) => {
|
|
4725
4725
|
const { children: o, className: i, "data-testid": C = "list-item" } = t;
|
|
4726
4726
|
return /* @__PURE__ */ r.jsx("li", { "data-testid": C, className: i, children: o });
|
|
4727
|
-
},
|
|
4728
|
-
|
|
4727
|
+
}, jd = Object.assign(
|
|
4728
|
+
o1((t, o) => {
|
|
4729
4729
|
const {
|
|
4730
4730
|
variant: i = "unordered",
|
|
4731
4731
|
className: C,
|
|
@@ -4739,14 +4739,14 @@ const p9 = Object.assign(zC, {
|
|
|
4739
4739
|
{
|
|
4740
4740
|
"data-testid": c,
|
|
4741
4741
|
ref: o,
|
|
4742
|
-
className:
|
|
4742
|
+
className: k1(S2.root, S2[i], S2[l], C),
|
|
4743
4743
|
...i === "ordered" && g,
|
|
4744
4744
|
children: s
|
|
4745
4745
|
}
|
|
4746
4746
|
);
|
|
4747
4747
|
}),
|
|
4748
4748
|
{ Item: Ta }
|
|
4749
|
-
), Da = "_wrapper_1v8xn_5", Aa = "_viewport_1v8xn_12", Pa = "_mask_1v8xn_26", $a = "_maskLeft_1v8xn_37", Na = "_maskRight_1v8xn_42", za = "_visible_1v8xn_46", Ua = "_control_1v8xn_51", Ga = "_xs_1v8xn_70", qa = "_sm_1v8xn_73", Xa = "_md_1v8xn_76", Ya = "_left_1v8xn_80", Ka = "_right_1v8xn_83",
|
|
4749
|
+
), Da = "_wrapper_1v8xn_5", Aa = "_viewport_1v8xn_12", Pa = "_mask_1v8xn_26", $a = "_maskLeft_1v8xn_37", Na = "_maskRight_1v8xn_42", za = "_visible_1v8xn_46", Ua = "_control_1v8xn_51", Ga = "_xs_1v8xn_70", qa = "_sm_1v8xn_73", Xa = "_md_1v8xn_76", Ya = "_left_1v8xn_80", Ka = "_right_1v8xn_83", _1 = {
|
|
4750
4750
|
wrapper: Da,
|
|
4751
4751
|
viewport: Aa,
|
|
4752
4752
|
mask: Pa,
|
|
@@ -4765,7 +4765,7 @@ const p9 = Object.assign(zC, {
|
|
|
4765
4765
|
className: i,
|
|
4766
4766
|
size: C
|
|
4767
4767
|
}) => {
|
|
4768
|
-
const s =
|
|
4768
|
+
const s = v1(null), [l, c] = d1(!1), [g, L] = d1(!1), { ref: v, bgColor: d } = T2(), _ = v ?? { current: null }, E = d ?? Ja, h = o && l, p = o && g, f = ({ direction: u }) => /* @__PURE__ */ r.jsx(
|
|
4769
4769
|
"svg",
|
|
4770
4770
|
{
|
|
4771
4771
|
height: "12px",
|
|
@@ -4783,33 +4783,33 @@ const p9 = Object.assign(zC, {
|
|
|
4783
4783
|
), m = () => {
|
|
4784
4784
|
const u = s.current;
|
|
4785
4785
|
if (!u) return;
|
|
4786
|
-
const k = Math.round(u.scrollLeft), b = Math.round(u.scrollLeft + u.clientWidth),
|
|
4787
|
-
c(k > 0), L(b <
|
|
4786
|
+
const k = Math.round(u.scrollLeft), b = Math.round(u.scrollLeft + u.clientWidth), B = Math.round(u.scrollWidth);
|
|
4787
|
+
c(k > 0), L(b < B);
|
|
4788
4788
|
}, w = (u) => {
|
|
4789
4789
|
const k = s.current;
|
|
4790
4790
|
if (!k) return;
|
|
4791
4791
|
const b = k.clientWidth;
|
|
4792
4792
|
k.scrollBy({ left: u === "left" ? -b : b, behavior: "smooth" });
|
|
4793
4793
|
};
|
|
4794
|
-
return
|
|
4794
|
+
return Q(() => {
|
|
4795
4795
|
const u = s.current;
|
|
4796
4796
|
if (!u) return;
|
|
4797
4797
|
const k = (b) => {
|
|
4798
4798
|
Math.abs(b.deltaX) > Math.abs(b.deltaY) || u.scrollWidth > u.clientWidth && (b.preventDefault(), u.scrollBy({ left: b.deltaY, behavior: "auto" }));
|
|
4799
4799
|
};
|
|
4800
4800
|
return u.addEventListener("wheel", k, { passive: !1 }), () => u.removeEventListener("wheel", k);
|
|
4801
|
-
}, []),
|
|
4801
|
+
}, []), Q(() => {
|
|
4802
4802
|
m();
|
|
4803
4803
|
const u = s.current;
|
|
4804
4804
|
if (u)
|
|
4805
4805
|
return u.addEventListener("scroll", m, { passive: !0 }), window.addEventListener("resize", m), () => {
|
|
4806
4806
|
u.removeEventListener("scroll", m), window.removeEventListener("resize", m);
|
|
4807
4807
|
};
|
|
4808
|
-
}, []), /* @__PURE__ */ r.jsxs("div", { ref:
|
|
4808
|
+
}, []), /* @__PURE__ */ r.jsxs("div", { ref: _, className: H(_1.wrapper, i), children: [
|
|
4809
4809
|
h && /* @__PURE__ */ r.jsx(
|
|
4810
4810
|
"div",
|
|
4811
4811
|
{
|
|
4812
|
-
className: H(
|
|
4812
|
+
className: H(_1.mask, _1.maskLeft, l && _1.visible),
|
|
4813
4813
|
style: {
|
|
4814
4814
|
background: `linear-gradient(to right, ${E} 17%, transparent 80%)`
|
|
4815
4815
|
}
|
|
@@ -4818,22 +4818,22 @@ const p9 = Object.assign(zC, {
|
|
|
4818
4818
|
p && /* @__PURE__ */ r.jsx(
|
|
4819
4819
|
"div",
|
|
4820
4820
|
{
|
|
4821
|
-
className: H(
|
|
4821
|
+
className: H(_1.mask, _1.maskRight, g && _1.visible),
|
|
4822
4822
|
style: {
|
|
4823
4823
|
background: `linear-gradient(to left, ${E} 17%, transparent 80%)`
|
|
4824
4824
|
}
|
|
4825
4825
|
}
|
|
4826
4826
|
),
|
|
4827
|
-
/* @__PURE__ */ r.jsx("div", { ref: s, className:
|
|
4827
|
+
/* @__PURE__ */ r.jsx("div", { ref: s, className: _1.viewport, children: t }),
|
|
4828
4828
|
h && /* @__PURE__ */ r.jsx(
|
|
4829
4829
|
"button",
|
|
4830
4830
|
{
|
|
4831
4831
|
type: "button",
|
|
4832
4832
|
tabIndex: -1,
|
|
4833
4833
|
"aria-hidden": "true",
|
|
4834
|
-
className: H(
|
|
4834
|
+
className: H(_1.control, _1.left, _1[C]),
|
|
4835
4835
|
onClick: () => w("left"),
|
|
4836
|
-
children: /* @__PURE__ */ r.jsx(
|
|
4836
|
+
children: /* @__PURE__ */ r.jsx(f, { direction: "left" })
|
|
4837
4837
|
}
|
|
4838
4838
|
),
|
|
4839
4839
|
p && /* @__PURE__ */ r.jsx(
|
|
@@ -4842,13 +4842,13 @@ const p9 = Object.assign(zC, {
|
|
|
4842
4842
|
type: "button",
|
|
4843
4843
|
tabIndex: -1,
|
|
4844
4844
|
"aria-hidden": "true",
|
|
4845
|
-
className: H(
|
|
4845
|
+
className: H(_1.control, _1.right, _1[C]),
|
|
4846
4846
|
onClick: () => w("right"),
|
|
4847
|
-
children: /* @__PURE__ */ r.jsx(
|
|
4847
|
+
children: /* @__PURE__ */ r.jsx(f, { direction: "right" })
|
|
4848
4848
|
}
|
|
4849
4849
|
)
|
|
4850
4850
|
] });
|
|
4851
|
-
}, es = "_tabBar_1ndpm_82", ts = "_primary_1ndpm_88", ns = "_secondary_1ndpm_93", rs = "_tab_1ndpm_82", os = "_md_1ndpm_125", is = "_sm_1ndpm_129", ls = "_xs_1ndpm_133", Cs = "_disabled_1ndpm_137", as = "_selected_1ndpm_143", ss = "_tabLabel_1ndpm_222", cs = "_tabPrefix_1ndpm_234", ds = "_tabPostfix_1ndpm_270",
|
|
4851
|
+
}, es = "_tabBar_1ndpm_82", ts = "_primary_1ndpm_88", ns = "_secondary_1ndpm_93", rs = "_tab_1ndpm_82", os = "_md_1ndpm_125", is = "_sm_1ndpm_129", ls = "_xs_1ndpm_133", Cs = "_disabled_1ndpm_137", as = "_selected_1ndpm_143", ss = "_tabLabel_1ndpm_222", cs = "_tabPrefix_1ndpm_234", ds = "_tabPostfix_1ndpm_270", m1 = {
|
|
4852
4852
|
tabBar: es,
|
|
4853
4853
|
primary: ts,
|
|
4854
4854
|
secondary: ns,
|
|
@@ -4871,7 +4871,7 @@ const p9 = Object.assign(zC, {
|
|
|
4871
4871
|
activeTab: i,
|
|
4872
4872
|
onChange: C
|
|
4873
4873
|
}) => {
|
|
4874
|
-
const [s, l] =
|
|
4874
|
+
const [s, l] = d1(o), c = i !== void 0, g = c ? i : s, L = (v) => {
|
|
4875
4875
|
c || l(v), C && C(v);
|
|
4876
4876
|
};
|
|
4877
4877
|
return /* @__PURE__ */ r.jsx(I9.Provider, { value: { activeTab: g, setTab: L }, children: t });
|
|
@@ -4889,40 +4889,40 @@ const p9 = Object.assign(zC, {
|
|
|
4889
4889
|
value: L,
|
|
4890
4890
|
label: v,
|
|
4891
4891
|
prefix: d,
|
|
4892
|
-
prefixWrapperProps:
|
|
4892
|
+
prefixWrapperProps: _ = {},
|
|
4893
4893
|
postfix: E,
|
|
4894
4894
|
postfixWrapperProps: h = {}
|
|
4895
|
-
} = o, { className: p, ...
|
|
4896
|
-
primary:
|
|
4897
|
-
secondary:
|
|
4898
|
-
prefix:
|
|
4899
|
-
postfix:
|
|
4895
|
+
} = o, { className: p, ...f } = _, { className: m, ...w } = h, u = {
|
|
4896
|
+
primary: s1["typography-label-3-medium"],
|
|
4897
|
+
secondary: s1["typography-label-3-regular"],
|
|
4898
|
+
prefix: s1["typography-label-3-medium"],
|
|
4899
|
+
postfix: s1["typography-label-3-medium"]
|
|
4900
4900
|
}, k = {
|
|
4901
4901
|
size: ms,
|
|
4902
4902
|
position: ps,
|
|
4903
4903
|
...s
|
|
4904
|
-
}, b = H(
|
|
4905
|
-
[
|
|
4906
|
-
[
|
|
4907
|
-
}),
|
|
4908
|
-
|
|
4904
|
+
}, b = H(m1.tab, m1[t], m1[l], {
|
|
4905
|
+
[m1.selected]: i,
|
|
4906
|
+
[m1.disabled]: c
|
|
4907
|
+
}), B = H(
|
|
4908
|
+
m1.tabPrefix,
|
|
4909
4909
|
p,
|
|
4910
|
-
|
|
4910
|
+
m1[t],
|
|
4911
4911
|
u.prefix,
|
|
4912
4912
|
{
|
|
4913
|
-
[
|
|
4914
|
-
[
|
|
4913
|
+
[m1.selected]: i,
|
|
4914
|
+
[m1.disabled]: c
|
|
4915
4915
|
}
|
|
4916
4916
|
), x = H(
|
|
4917
|
-
|
|
4917
|
+
m1.tabPostfix,
|
|
4918
4918
|
m,
|
|
4919
|
-
|
|
4919
|
+
m1[t],
|
|
4920
4920
|
u.postfix,
|
|
4921
4921
|
{
|
|
4922
|
-
[
|
|
4923
|
-
[
|
|
4922
|
+
[m1.selected]: i,
|
|
4923
|
+
[m1.disabled]: c
|
|
4924
4924
|
}
|
|
4925
|
-
),
|
|
4925
|
+
), Z = H(m1.tabLabel, m1[t], u[t]), V = (O) => {
|
|
4926
4926
|
i || c || (g(L), O.currentTarget.scrollIntoView({ behavior: "smooth", inline: "center", block: "nearest" }));
|
|
4927
4927
|
}, j = /* @__PURE__ */ r.jsxs(
|
|
4928
4928
|
"button",
|
|
@@ -4934,18 +4934,18 @@ const p9 = Object.assign(zC, {
|
|
|
4934
4934
|
"aria-disabled": c,
|
|
4935
4935
|
"aria-controls": `tab-panel-${L}`,
|
|
4936
4936
|
"data-testid": `tab-item-${L}`,
|
|
4937
|
-
onClick:
|
|
4937
|
+
onClick: V,
|
|
4938
4938
|
children: [
|
|
4939
4939
|
d && /* @__PURE__ */ r.jsx(
|
|
4940
4940
|
"span",
|
|
4941
4941
|
{
|
|
4942
|
-
className:
|
|
4943
|
-
...
|
|
4942
|
+
className: B,
|
|
4943
|
+
...f,
|
|
4944
4944
|
"data-testid": `tab-prefix-${L}`,
|
|
4945
4945
|
children: d
|
|
4946
4946
|
}
|
|
4947
4947
|
),
|
|
4948
|
-
/* @__PURE__ */ r.jsx("span", { className:
|
|
4948
|
+
/* @__PURE__ */ r.jsx("span", { className: Z, "data-testid": `tab-label-${L}`, children: v }),
|
|
4949
4949
|
E && /* @__PURE__ */ r.jsx(
|
|
4950
4950
|
"span",
|
|
4951
4951
|
{
|
|
@@ -4972,7 +4972,7 @@ const p9 = Object.assign(zC, {
|
|
|
4972
4972
|
role: "tablist",
|
|
4973
4973
|
"data-testid": "tabs-bar",
|
|
4974
4974
|
"aria-orientation": "horizontal",
|
|
4975
|
-
className: H(
|
|
4975
|
+
className: H(m1.tabBar, m1[t]),
|
|
4976
4976
|
children: o.map((g) => /* @__PURE__ */ r.jsx(
|
|
4977
4977
|
Ls,
|
|
4978
4978
|
{
|
|
@@ -5001,12 +5001,12 @@ const p9 = Object.assign(zC, {
|
|
|
5001
5001
|
), fs = ({ children: t, ...o }) => {
|
|
5002
5002
|
const { activeTab: i } = T9(), C = Array.isArray(t) ? t : [t], s = (l, c) => P1.isValidElement(l) && typeof l.props == "object" && l.props !== null && c in l.props;
|
|
5003
5003
|
return /* @__PURE__ */ r.jsx("div", { "data-testid": "tab-content", ...o, children: C.map((l) => s(l, "tabValue") && String(l.props.tabValue) === i ? l : null) });
|
|
5004
|
-
},
|
|
5004
|
+
}, Od = {
|
|
5005
5005
|
Provider: us,
|
|
5006
5006
|
Content: fs,
|
|
5007
5007
|
Panel: vs,
|
|
5008
5008
|
Bar: ws
|
|
5009
|
-
}, _s = "_root_1fbbw_34", Es = "_open_1fbbw_51", ks = "_xs_1fbbw_55", Ms = "_s_1fbbw_61", xs = "_m_1fbbw_67", Hs = "_neutral_1fbbw_73", bs = "_contrast_1fbbw_78", Zs = "_accent_1fbbw_84", Vs = "_typography_1fbbw_89", ys = "_title_1fbbw_89", Ss = "_text_1fbbw_93", Bs = "_mediaWrapper_1fbbw_97", js = "_content_1fbbw_112", Os = "_closeButton_1fbbw_116", Rs = "_hasMedia_1fbbw_142", Ws = "_buttonStack_1fbbw_148",
|
|
5009
|
+
}, _s = "_root_1fbbw_34", Es = "_open_1fbbw_51", ks = "_xs_1fbbw_55", Ms = "_s_1fbbw_61", xs = "_m_1fbbw_67", Hs = "_neutral_1fbbw_73", bs = "_contrast_1fbbw_78", Zs = "_accent_1fbbw_84", Vs = "_typography_1fbbw_89", ys = "_title_1fbbw_89", Ss = "_text_1fbbw_93", Bs = "_mediaWrapper_1fbbw_97", js = "_content_1fbbw_112", Os = "_closeButton_1fbbw_116", Rs = "_hasMedia_1fbbw_142", Ws = "_buttonStack_1fbbw_148", E1 = {
|
|
5010
5010
|
root: _s,
|
|
5011
5011
|
open: Es,
|
|
5012
5012
|
xs: ks,
|
|
@@ -5208,14 +5208,14 @@ const p9 = Object.assign(zC, {
|
|
|
5208
5208
|
buttonProps: L,
|
|
5209
5209
|
showClose: v
|
|
5210
5210
|
}) => {
|
|
5211
|
-
const d = ["neutral", "accent"].includes(C) ? "contrast" : "primary",
|
|
5212
|
-
return /* @__PURE__ */ r.jsxs("div", { className:
|
|
5213
|
-
h && /* @__PURE__ */ r.jsx("div", { className: H(
|
|
5211
|
+
const d = ["neutral", "accent"].includes(C) ? "contrast" : "primary", _ = s === "m", E = !!(o && _), h = !!(i && _), p = g && !!g.length, f = !!(v && _) || !v && _ && !p, m = s === "xs" ? 4 : 3;
|
|
5212
|
+
return /* @__PURE__ */ r.jsxs("div", { className: E1.content, children: [
|
|
5213
|
+
h && /* @__PURE__ */ r.jsx("div", { className: H(E1.mediaWrapper, l.mediaWrapper), children: i }),
|
|
5214
5214
|
/* @__PURE__ */ r.jsxs("div", { className: l.textWrapper, children: [
|
|
5215
5215
|
E && /* @__PURE__ */ r.jsx(
|
|
5216
5216
|
G1.Subtitle,
|
|
5217
5217
|
{
|
|
5218
|
-
className: H(
|
|
5218
|
+
className: H(E1.typography, E1.title, l.typography),
|
|
5219
5219
|
size: 1,
|
|
5220
5220
|
as: "h3",
|
|
5221
5221
|
typographyStyle: d,
|
|
@@ -5225,19 +5225,19 @@ const p9 = Object.assign(zC, {
|
|
|
5225
5225
|
/* @__PURE__ */ r.jsx(
|
|
5226
5226
|
G1.Label,
|
|
5227
5227
|
{
|
|
5228
|
-
className: H(
|
|
5228
|
+
className: H(E1.typography, E1.text, l.typography),
|
|
5229
5229
|
typographyStyle: d,
|
|
5230
5230
|
size: m,
|
|
5231
5231
|
children: t
|
|
5232
5232
|
}
|
|
5233
5233
|
)
|
|
5234
5234
|
] }),
|
|
5235
|
-
|
|
5235
|
+
f && /* @__PURE__ */ r.jsx(
|
|
5236
5236
|
"button",
|
|
5237
5237
|
{
|
|
5238
5238
|
type: "button",
|
|
5239
|
-
className: H(
|
|
5240
|
-
[
|
|
5239
|
+
className: H(E1.closeButton, E1[C], l.closeButton, {
|
|
5240
|
+
[E1.hasMedia]: h
|
|
5241
5241
|
}),
|
|
5242
5242
|
onClick: c,
|
|
5243
5243
|
"aria-label": "Закрыть подсказку",
|
|
@@ -5245,15 +5245,15 @@ const p9 = Object.assign(zC, {
|
|
|
5245
5245
|
children: /* @__PURE__ */ r.jsx(Fs, {})
|
|
5246
5246
|
}
|
|
5247
5247
|
),
|
|
5248
|
-
|
|
5249
|
-
const k = $s(u, g.length, C), b = Ps(w, k, L), { closeOnClick:
|
|
5248
|
+
_ && p && /* @__PURE__ */ r.jsx("div", { className: E1.buttonStack, children: g.map((w, u) => {
|
|
5249
|
+
const k = $s(u, g.length, C), b = Ps(w, k, L), { closeOnClick: B, ...x } = b, Z = (V) => {
|
|
5250
5250
|
var j;
|
|
5251
|
-
(j = x.onClick) == null || j.call(x,
|
|
5251
|
+
(j = x.onClick) == null || j.call(x, V), B && (c == null || c());
|
|
5252
5252
|
};
|
|
5253
|
-
return /* @__PURE__ */ r.jsx(
|
|
5253
|
+
return /* @__PURE__ */ r.jsx(c2, { ...x, onClick: Z }, u);
|
|
5254
5254
|
}) })
|
|
5255
5255
|
] });
|
|
5256
|
-
},
|
|
5256
|
+
}, Rd = ({
|
|
5257
5257
|
customContent: t,
|
|
5258
5258
|
children: o,
|
|
5259
5259
|
placement: i = "top",
|
|
@@ -5265,57 +5265,57 @@ const p9 = Object.assign(zC, {
|
|
|
5265
5265
|
trigger: L = "hover",
|
|
5266
5266
|
variant: v = "neutral",
|
|
5267
5267
|
size: d = "s",
|
|
5268
|
-
text:
|
|
5268
|
+
text: _,
|
|
5269
5269
|
title: E,
|
|
5270
5270
|
media: h,
|
|
5271
5271
|
buttons: p,
|
|
5272
|
-
buttonProps:
|
|
5272
|
+
buttonProps: f,
|
|
5273
5273
|
onClose: m,
|
|
5274
5274
|
...w
|
|
5275
5275
|
}) => {
|
|
5276
|
-
const [u, k] =
|
|
5276
|
+
const [u, k] = d1(!1), [b, B] = d1(!1), x = d === "m" ? Ts : Ds, Z = () => {
|
|
5277
5277
|
k(!1), m == null || m();
|
|
5278
|
-
},
|
|
5278
|
+
}, V = t || (d === "m" ? /* @__PURE__ */ r.jsx(
|
|
5279
5279
|
L9,
|
|
5280
5280
|
{
|
|
5281
5281
|
classNames: C,
|
|
5282
|
-
text:
|
|
5282
|
+
text: _,
|
|
5283
5283
|
variant: v,
|
|
5284
5284
|
size: d,
|
|
5285
|
-
onClose:
|
|
5285
|
+
onClose: Z,
|
|
5286
5286
|
title: E,
|
|
5287
5287
|
media: h,
|
|
5288
5288
|
showClose: g,
|
|
5289
5289
|
buttons: p,
|
|
5290
|
-
buttonProps:
|
|
5290
|
+
buttonProps: f
|
|
5291
5291
|
}
|
|
5292
5292
|
) : /* @__PURE__ */ r.jsx(
|
|
5293
5293
|
L9,
|
|
5294
5294
|
{
|
|
5295
5295
|
classNames: C,
|
|
5296
|
-
text:
|
|
5296
|
+
text: _,
|
|
5297
5297
|
variant: v,
|
|
5298
5298
|
size: d,
|
|
5299
|
-
onClose:
|
|
5299
|
+
onClose: Z
|
|
5300
5300
|
}
|
|
5301
5301
|
));
|
|
5302
|
-
return
|
|
5302
|
+
return Q(() => {
|
|
5303
5303
|
if (u) {
|
|
5304
|
-
const j = requestAnimationFrame(() =>
|
|
5304
|
+
const j = requestAnimationFrame(() => B(!0));
|
|
5305
5305
|
return () => cancelAnimationFrame(j);
|
|
5306
5306
|
}
|
|
5307
|
-
|
|
5307
|
+
B(!1);
|
|
5308
5308
|
}, [u]), /* @__PURE__ */ r.jsx(
|
|
5309
5309
|
M3,
|
|
5310
5310
|
{
|
|
5311
5311
|
visible: u,
|
|
5312
5312
|
onVisibleChange: k,
|
|
5313
5313
|
classNames: {
|
|
5314
|
-
root: H(
|
|
5314
|
+
root: H(E1.root, E1[v], E1[d], b && E1.open),
|
|
5315
5315
|
...w.classNames
|
|
5316
5316
|
},
|
|
5317
5317
|
placement: i,
|
|
5318
|
-
overlay: () =>
|
|
5318
|
+
overlay: () => V,
|
|
5319
5319
|
trigger: L,
|
|
5320
5320
|
mouseEnterDelay: s,
|
|
5321
5321
|
mouseLeaveDelay: l,
|
|
@@ -5365,10 +5365,10 @@ const p9 = Object.assign(zC, {
|
|
|
5365
5365
|
m: _c,
|
|
5366
5366
|
l: Ec
|
|
5367
5367
|
}, w9 = {
|
|
5368
|
-
s:
|
|
5369
|
-
m:
|
|
5370
|
-
l:
|
|
5371
|
-
},
|
|
5368
|
+
s: s1["typography-label-3-regular"],
|
|
5369
|
+
m: s1["typography-label-2-regular"],
|
|
5370
|
+
l: s1["typography-label-2-regular"]
|
|
5371
|
+
}, Wd = (t) => {
|
|
5372
5372
|
const {
|
|
5373
5373
|
className: o,
|
|
5374
5374
|
defaultValue: i,
|
|
@@ -5380,8 +5380,8 @@ const p9 = Object.assign(zC, {
|
|
|
5380
5380
|
mode: L = "label",
|
|
5381
5381
|
onChange: v,
|
|
5382
5382
|
...d
|
|
5383
|
-
} = t,
|
|
5384
|
-
|
|
5383
|
+
} = t, _ = F2(), [E, h] = d1(i || l[0].value), [p, f] = d1({ width: 0, left: 0, height: 0 }), m = v1(null);
|
|
5384
|
+
Q(() => {
|
|
5385
5385
|
C != null && h(C);
|
|
5386
5386
|
}, [C]), _9(() => {
|
|
5387
5387
|
w();
|
|
@@ -5391,7 +5391,7 @@ const p9 = Object.assign(zC, {
|
|
|
5391
5391
|
const k = m.current.querySelector(
|
|
5392
5392
|
'[data-is-active-segment="true"]'
|
|
5393
5393
|
);
|
|
5394
|
-
k &&
|
|
5394
|
+
k && f({
|
|
5395
5395
|
width: k.offsetWidth,
|
|
5396
5396
|
left: k.offsetLeft,
|
|
5397
5397
|
height: k.offsetHeight
|
|
@@ -5417,28 +5417,28 @@ const p9 = Object.assign(zC, {
|
|
|
5417
5417
|
disabled: g,
|
|
5418
5418
|
...d,
|
|
5419
5419
|
children: [
|
|
5420
|
-
l == null ? void 0 : l.map(({ label: k, value: b, containerProps:
|
|
5421
|
-
const { className:
|
|
5420
|
+
l == null ? void 0 : l.map(({ label: k, value: b, containerProps: B = {} }, x) => {
|
|
5421
|
+
const { className: Z, ...V } = B, j = () => u(b), O = JSON.stringify(b), D = E === b;
|
|
5422
5422
|
return /* @__PURE__ */ r.jsxs(q1, { children: [
|
|
5423
5423
|
/* @__PURE__ */ r.jsx(
|
|
5424
5424
|
"input",
|
|
5425
5425
|
{
|
|
5426
|
-
id:
|
|
5426
|
+
id: _ + O,
|
|
5427
5427
|
value: O,
|
|
5428
5428
|
type: "radio",
|
|
5429
|
-
checked:
|
|
5429
|
+
checked: D,
|
|
5430
5430
|
readOnly: !0
|
|
5431
5431
|
}
|
|
5432
5432
|
),
|
|
5433
5433
|
/* @__PURE__ */ r.jsx(
|
|
5434
5434
|
"label",
|
|
5435
5435
|
{
|
|
5436
|
-
"data-is-active-segment":
|
|
5437
|
-
className: H(A1.segment, w9[s], { [A1.selected]:
|
|
5438
|
-
htmlFor:
|
|
5436
|
+
"data-is-active-segment": D,
|
|
5437
|
+
className: H(A1.segment, w9[s], { [A1.selected]: D }, Z),
|
|
5438
|
+
htmlFor: _ + O,
|
|
5439
5439
|
"data-testid": "segmented-control-segment",
|
|
5440
5440
|
onClick: j,
|
|
5441
|
-
...
|
|
5441
|
+
...V,
|
|
5442
5442
|
children: k
|
|
5443
5443
|
}
|
|
5444
5444
|
)
|
|
@@ -5457,7 +5457,7 @@ const p9 = Object.assign(zC, {
|
|
|
5457
5457
|
);
|
|
5458
5458
|
};
|
|
5459
5459
|
var e2 = /* @__PURE__ */ ((t) => (t.NORMAL = "normal", t.FLOATING = "floating", t.HIDDEN = "hidden", t))(e2 || {});
|
|
5460
|
-
const
|
|
5460
|
+
const c1 = {
|
|
5461
5461
|
"trigger-wrapper": "_trigger-wrapper_fm9f9_79",
|
|
5462
5462
|
"trigger-container": "_trigger-container_fm9f9_85",
|
|
5463
5463
|
"trigger-container-applied": "_trigger-container-applied_fm9f9_109",
|
|
@@ -5521,7 +5521,7 @@ const s1 = {
|
|
|
5521
5521
|
)
|
|
5522
5522
|
}
|
|
5523
5523
|
);
|
|
5524
|
-
}, Mc = (t, o) => t === "XL" && o ? e2.FLOATING : t !== "XL" && o ? e2.HIDDEN : e2.NORMAL, xc = (t, o) => o ? 3 : t === "XL" || t === "L" ? 2 : 3, v9 = (t) => t === "XL" || t === "L" ? 2 : 3, f9 = (t) => t === "XL" || t === "L" ? "sm" : "xs", Hc = (t) => t.length > 30 ? t.slice(0, 30) + "…" : t,
|
|
5524
|
+
}, Mc = (t, o) => t === "XL" && o ? e2.FLOATING : t !== "XL" && o ? e2.HIDDEN : e2.NORMAL, xc = (t, o) => o ? 3 : t === "XL" || t === "L" ? 2 : 3, v9 = (t) => t === "XL" || t === "L" ? 2 : 3, f9 = (t) => t === "XL" || t === "L" ? "sm" : "xs", Hc = (t) => t.length > 30 ? t.slice(0, 30) + "…" : t, Fd = ({
|
|
5525
5525
|
content: t,
|
|
5526
5526
|
size: o = "XL",
|
|
5527
5527
|
description: i,
|
|
@@ -5533,45 +5533,45 @@ const s1 = {
|
|
|
5533
5533
|
prefixIcon: L,
|
|
5534
5534
|
postfixTitle: v,
|
|
5535
5535
|
disabled: d = !1,
|
|
5536
|
-
open:
|
|
5536
|
+
open: _,
|
|
5537
5537
|
onClear: E,
|
|
5538
5538
|
classNames: h = {},
|
|
5539
5539
|
styles: p = {}
|
|
5540
5540
|
}) => {
|
|
5541
|
-
const
|
|
5542
|
-
|
|
5543
|
-
{ [
|
|
5541
|
+
const f = !!t, m = !!C, w = !!g, u = l === "applied", k = !!i && (!w || d) || w && !d, b = (w && !d ? g : i) || "", B = w && !d, x = Mc(o, f), Z = m && x === e2.FLOATING, V = x === e2.HIDDEN, j = H(
|
|
5542
|
+
c1["trigger-wrapper"],
|
|
5543
|
+
{ [c1["trigger-stretched"]]: s },
|
|
5544
5544
|
h.wrapper
|
|
5545
5545
|
), O = H(
|
|
5546
|
-
|
|
5547
|
-
|
|
5546
|
+
c1["trigger-container"],
|
|
5547
|
+
c1[`trigger-container-size-${o}`],
|
|
5548
5548
|
{
|
|
5549
|
-
[
|
|
5550
|
-
[
|
|
5551
|
-
[
|
|
5552
|
-
[
|
|
5553
|
-
[
|
|
5549
|
+
[c1["trigger-stretched"]]: s,
|
|
5550
|
+
[c1["trigger-container-applied"]]: u && f,
|
|
5551
|
+
[c1["trigger-container-error"]]: w && !d,
|
|
5552
|
+
[c1["trigger-container-open"]]: _,
|
|
5553
|
+
[c1["trigger-container-floating"]]: Z
|
|
5554
5554
|
},
|
|
5555
5555
|
h.triggerContainer
|
|
5556
|
-
),
|
|
5557
|
-
|
|
5556
|
+
), D = H(
|
|
5557
|
+
c1["trigger-content-container"],
|
|
5558
5558
|
{
|
|
5559
|
-
[
|
|
5559
|
+
[c1["trigger-content-container-floating"]]: Z
|
|
5560
5560
|
},
|
|
5561
5561
|
h.triggerContent
|
|
5562
|
-
),
|
|
5563
|
-
|
|
5562
|
+
), A = H(
|
|
5563
|
+
c1["trigger-label"],
|
|
5564
5564
|
{
|
|
5565
|
-
[
|
|
5566
|
-
[
|
|
5565
|
+
[c1["trigger-label-floating"]]: Z,
|
|
5566
|
+
[c1["trigger-label-hidden"]]: V
|
|
5567
5567
|
},
|
|
5568
5568
|
h.label
|
|
5569
|
-
),
|
|
5570
|
-
|
|
5569
|
+
), y = H(c1["trigger-content"], h.content), R = H(c1["trigger-postfix"], h.postfixTitle), I = H(c1["trigger-chevron-icon"], h.chevronIcon), T = H(
|
|
5570
|
+
c1["trigger-prefix-icon"],
|
|
5571
5571
|
h.prefixIconContainer
|
|
5572
|
-
), U = H(
|
|
5573
|
-
|
|
5574
|
-
},
|
|
5572
|
+
), U = H(c1["trigger-clear-icon"], h.clearIcon), N = (W) => {
|
|
5573
|
+
W == null || W.stopPropagation(), E == null || E();
|
|
5574
|
+
}, X = f && _ && (l === "selected" && c || l === "applied") || f && !_ && (u || l === "selected" && c);
|
|
5575
5575
|
return /* @__PURE__ */ r.jsxs("div", { className: j, style: p.wrapper, children: [
|
|
5576
5576
|
/* @__PURE__ */ r.jsxs(
|
|
5577
5577
|
"button",
|
|
@@ -5579,33 +5579,33 @@ const s1 = {
|
|
|
5579
5579
|
"data-testid": "trigger",
|
|
5580
5580
|
"aria-invalid": w,
|
|
5581
5581
|
"aria-haspopup": "listbox",
|
|
5582
|
-
"aria-expanded":
|
|
5582
|
+
"aria-expanded": _,
|
|
5583
5583
|
role: "combobox",
|
|
5584
5584
|
className: O,
|
|
5585
5585
|
style: p.triggerContainer,
|
|
5586
5586
|
disabled: d,
|
|
5587
5587
|
type: "button",
|
|
5588
5588
|
children: [
|
|
5589
|
-
L && o !== "XL" && /* @__PURE__ */ r.jsx("div", { className:
|
|
5590
|
-
/* @__PURE__ */ r.jsxs("div", { className:
|
|
5589
|
+
L && o !== "XL" && /* @__PURE__ */ r.jsx("div", { className: T, style: p.prefixIconContainer, children: L }),
|
|
5590
|
+
/* @__PURE__ */ r.jsxs("div", { className: D, style: p.triggerContent, children: [
|
|
5591
5591
|
m && /* @__PURE__ */ r.jsx(
|
|
5592
5592
|
G1.Label,
|
|
5593
5593
|
{
|
|
5594
5594
|
"data-testid": "trigger-label",
|
|
5595
|
-
className:
|
|
5595
|
+
className: A,
|
|
5596
5596
|
style: p.label,
|
|
5597
|
-
size: xc(o,
|
|
5597
|
+
size: xc(o, Z),
|
|
5598
5598
|
as: "span",
|
|
5599
5599
|
disabled: d,
|
|
5600
|
-
typographyStyle:
|
|
5600
|
+
typographyStyle: Z ? "secondary" : "tertiary",
|
|
5601
5601
|
children: C
|
|
5602
5602
|
}
|
|
5603
5603
|
),
|
|
5604
|
-
|
|
5604
|
+
f && /* @__PURE__ */ r.jsx(
|
|
5605
5605
|
G1.Label,
|
|
5606
5606
|
{
|
|
5607
5607
|
"data-testid": "trigger-content-container",
|
|
5608
|
-
className:
|
|
5608
|
+
className: y,
|
|
5609
5609
|
style: p.content,
|
|
5610
5610
|
size: v9(o),
|
|
5611
5611
|
as: "span",
|
|
@@ -5613,7 +5613,7 @@ const s1 = {
|
|
|
5613
5613
|
children: s ? t : Hc(t)
|
|
5614
5614
|
}
|
|
5615
5615
|
),
|
|
5616
|
-
|
|
5616
|
+
f && !!v && /* @__PURE__ */ r.jsx(
|
|
5617
5617
|
G1.Label,
|
|
5618
5618
|
{
|
|
5619
5619
|
"data-testid": "trigger-postfix",
|
|
@@ -5626,7 +5626,7 @@ const s1 = {
|
|
|
5626
5626
|
}
|
|
5627
5627
|
)
|
|
5628
5628
|
] }),
|
|
5629
|
-
|
|
5629
|
+
X ? /* @__PURE__ */ r.jsx(
|
|
5630
5630
|
D2,
|
|
5631
5631
|
{
|
|
5632
5632
|
className: U,
|
|
@@ -5642,7 +5642,7 @@ const s1 = {
|
|
|
5642
5642
|
{
|
|
5643
5643
|
"data-testid": "trigger-chevron",
|
|
5644
5644
|
size: f9(o),
|
|
5645
|
-
className:
|
|
5645
|
+
className: I,
|
|
5646
5646
|
color: "#AABBCA",
|
|
5647
5647
|
style: p.chevronIcon
|
|
5648
5648
|
}
|
|
@@ -5654,15 +5654,15 @@ const s1 = {
|
|
|
5654
5654
|
ca,
|
|
5655
5655
|
{
|
|
5656
5656
|
title: b,
|
|
5657
|
-
error:
|
|
5658
|
-
className:
|
|
5659
|
-
style:
|
|
5657
|
+
error: B ? g : void 0,
|
|
5658
|
+
className: B ? h.error : h.description,
|
|
5659
|
+
style: B ? p.error : p.description,
|
|
5660
5660
|
disabled: d,
|
|
5661
|
-
"data-testid":
|
|
5661
|
+
"data-testid": B ? "trigger-error" : "trigger-description"
|
|
5662
5662
|
}
|
|
5663
5663
|
)
|
|
5664
5664
|
] });
|
|
5665
|
-
}, D9 = R2(void 0),
|
|
5665
|
+
}, D9 = R2(void 0), Id = () => {
|
|
5666
5666
|
const t = W2(D9);
|
|
5667
5667
|
if (!t) throw new Error("useSnackbar must be used inside SnackbarProvider");
|
|
5668
5668
|
return t;
|
|
@@ -5715,39 +5715,39 @@ const s1 = {
|
|
|
5715
5715
|
currentX: L,
|
|
5716
5716
|
currentY: v
|
|
5717
5717
|
}) => {
|
|
5718
|
-
|
|
5718
|
+
Q(() => {
|
|
5719
5719
|
const d = t.current;
|
|
5720
5720
|
if (!d || !o) return;
|
|
5721
|
-
const
|
|
5721
|
+
const _ = (p) => {
|
|
5722
5722
|
p.target instanceof Element && p.target.closest("button") || (l.current = !0, c.current = p.touches[0].clientX, g.current = p.touches[0].clientY, L.current = c.current, v.current = g.current, d.style.animation = "none", d.style.transition = "none");
|
|
5723
5723
|
}, E = (p) => {
|
|
5724
5724
|
if (!l.current) return;
|
|
5725
5725
|
L.current = p.touches[0].clientX, v.current = p.touches[0].clientY;
|
|
5726
|
-
const
|
|
5726
|
+
const f = L.current - c.current, m = v.current - g.current, w = Math.abs(f), u = Math.abs(m), k = w > u ? f : 0, b = u >= w ? m : 0, B = Math.sqrt(f ** 2 + m ** 2), x = Math.max(1 - B / 300, 0);
|
|
5727
5727
|
d.style.transform = `translate(${k}px, ${b}px)`, d.style.opacity = `${x}`;
|
|
5728
5728
|
}, h = () => {
|
|
5729
5729
|
if (!l.current) return;
|
|
5730
5730
|
l.current = !1;
|
|
5731
|
-
const p = L.current - c.current,
|
|
5731
|
+
const p = L.current - c.current, f = v.current - g.current, m = Math.abs(p), w = Math.abs(f), u = d.offsetWidth, k = d.offsetHeight;
|
|
5732
5732
|
let b = !1;
|
|
5733
|
-
if (m > 2 / 3 * u && (b = !0), b || (
|
|
5733
|
+
if (m > 2 / 3 * u && (b = !0), b || (f < 0 && w > k / 2 && (b = !0), f > 0 && w > k && (b = !0)), b) {
|
|
5734
5734
|
s("swipe"), C(!0), d.style.transition = "";
|
|
5735
|
-
const
|
|
5736
|
-
d.style.transform = `translate(${
|
|
5735
|
+
const B = p > 0 ? u : -u, x = f > 0 ? k : -k;
|
|
5736
|
+
d.style.transform = `translate(${B}px, ${x}px)`, d.style.opacity = "0", setTimeout(() => i("swipe"), A9.swipe);
|
|
5737
5737
|
} else
|
|
5738
5738
|
C(!1), s(void 0), d.style.transition = "", d.style.transform = "translate(0px, 0px)", d.style.opacity = "1";
|
|
5739
5739
|
};
|
|
5740
|
-
return d.addEventListener("touchstart",
|
|
5741
|
-
d.removeEventListener("touchstart",
|
|
5740
|
+
return d.addEventListener("touchstart", _), d.addEventListener("touchmove", E), d.addEventListener("touchend", h), () => {
|
|
5741
|
+
d.removeEventListener("touchstart", _), d.removeEventListener("touchmove", E), d.removeEventListener("touchend", h);
|
|
5742
5742
|
};
|
|
5743
5743
|
}, [t, o, i, C, s]);
|
|
5744
5744
|
};
|
|
5745
5745
|
let Sc = (t = 21) => crypto.getRandomValues(new Uint8Array(t)).reduce((o, i) => (i &= 63, i < 36 ? o += i.toString(36) : i < 62 ? o += (i - 26).toString(36).toUpperCase() : i > 62 ? o += "-" : o += "_", o), "");
|
|
5746
|
-
const Bc = "_stack_1sg4d_1", jc = "_local_1sg4d_19", Oc = "_snackWrapper_1sg4d_27",
|
|
5746
|
+
const Bc = "_stack_1sg4d_1", jc = "_local_1sg4d_19", Oc = "_snackWrapper_1sg4d_27", u2 = {
|
|
5747
5747
|
stack: Bc,
|
|
5748
5748
|
local: jc,
|
|
5749
5749
|
snackWrapper: Oc
|
|
5750
|
-
}, Rc = "
|
|
5750
|
+
}, Rc = "_snackbar_11uit_15", Wc = "_slideIn_11uit_1", Fc = "_snackbarStack_11uit_42", Ic = "_snackbarVertical_11uit_47", Tc = "_fix_11uit_55", Dc = "_fill_11uit_61", Ac = "_hug_11uit_67", Pc = "_content_11uit_73", $c = "_textActionsContainer_11uit_81", Nc = "_textActionsContainerVertical_11uit_88", zc = "_contentVertical_11uit_93", Uc = "_contentText_11uit_97", Gc = "_icon_11uit_102", qc = "_buttonLink_11uit_107", Xc = "_exiting_11uit_113", Yc = "_slideOut_11uit_1", Kc = "_exitingTimeout_11uit_119", Jc = "_exitingClose_11uit_124", Qc = "_exitingStack_11uit_131", ed = "_swipeTransition_11uit_138", td = "_exitingEscape_11uit_144", g1 = {
|
|
5751
5751
|
snackbar: Rc,
|
|
5752
5752
|
slideIn: Wc,
|
|
5753
5753
|
snackbarStack: Fc,
|
|
@@ -5756,52 +5756,54 @@ const Bc = "_stack_1sg4d_1", jc = "_local_1sg4d_19", Oc = "_snackWrapper_1sg4d_2
|
|
|
5756
5756
|
fill: Dc,
|
|
5757
5757
|
hug: Ac,
|
|
5758
5758
|
content: Pc,
|
|
5759
|
-
|
|
5760
|
-
|
|
5761
|
-
|
|
5762
|
-
|
|
5763
|
-
|
|
5764
|
-
|
|
5765
|
-
|
|
5766
|
-
|
|
5767
|
-
|
|
5768
|
-
|
|
5769
|
-
|
|
5770
|
-
|
|
5771
|
-
|
|
5772
|
-
|
|
5773
|
-
|
|
5774
|
-
|
|
5775
|
-
|
|
5776
|
-
|
|
5777
|
-
|
|
5778
|
-
|
|
5779
|
-
|
|
5780
|
-
|
|
5781
|
-
|
|
5782
|
-
|
|
5783
|
-
|
|
5784
|
-
|
|
5785
|
-
|
|
5786
|
-
|
|
5787
|
-
|
|
5788
|
-
|
|
5789
|
-
|
|
5790
|
-
|
|
5791
|
-
|
|
5792
|
-
|
|
5793
|
-
|
|
5794
|
-
|
|
5795
|
-
|
|
5796
|
-
|
|
5797
|
-
|
|
5798
|
-
|
|
5799
|
-
|
|
5800
|
-
|
|
5801
|
-
|
|
5802
|
-
|
|
5803
|
-
|
|
5804
|
-
]
|
|
5759
|
+
textActionsContainer: $c,
|
|
5760
|
+
textActionsContainerVertical: Nc,
|
|
5761
|
+
contentVertical: zc,
|
|
5762
|
+
contentText: Uc,
|
|
5763
|
+
icon: Gc,
|
|
5764
|
+
buttonLink: qc,
|
|
5765
|
+
exiting: Xc,
|
|
5766
|
+
slideOut: Yc,
|
|
5767
|
+
exitingTimeout: Kc,
|
|
5768
|
+
exitingClose: Jc,
|
|
5769
|
+
exitingStack: Qc,
|
|
5770
|
+
swipeTransition: ed,
|
|
5771
|
+
exitingEscape: td
|
|
5772
|
+
}, nd = () => /* @__PURE__ */ r.jsxs(
|
|
5773
|
+
"svg",
|
|
5774
|
+
{
|
|
5775
|
+
width: "20",
|
|
5776
|
+
height: "20",
|
|
5777
|
+
viewBox: "0 0 20 20",
|
|
5778
|
+
fill: "none",
|
|
5779
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
5780
|
+
children: [
|
|
5781
|
+
/* @__PURE__ */ r.jsx(
|
|
5782
|
+
"mask",
|
|
5783
|
+
{
|
|
5784
|
+
id: "mask0_4314_6181",
|
|
5785
|
+
style: { maskType: "alpha" },
|
|
5786
|
+
maskUnits: "userSpaceOnUse",
|
|
5787
|
+
x: "0",
|
|
5788
|
+
y: "0",
|
|
5789
|
+
width: "20",
|
|
5790
|
+
height: "20",
|
|
5791
|
+
children: /* @__PURE__ */ r.jsx(
|
|
5792
|
+
"path",
|
|
5793
|
+
{
|
|
5794
|
+
d: "M15 5L5 15M5 5L15 15",
|
|
5795
|
+
stroke: "black",
|
|
5796
|
+
"stroke-width": "1.7",
|
|
5797
|
+
"stroke-linecap": "round",
|
|
5798
|
+
"stroke-linejoin": "round"
|
|
5799
|
+
}
|
|
5800
|
+
)
|
|
5801
|
+
}
|
|
5802
|
+
),
|
|
5803
|
+
/* @__PURE__ */ r.jsx("g", { mask: "url(#mask0_4314_6181)", children: /* @__PURE__ */ r.jsx("rect", { width: "20", height: "20", fill: "white", "fill-opacity": "0.48" }) })
|
|
5804
|
+
]
|
|
5805
|
+
}
|
|
5806
|
+
), rd = ({ className: t }) => /* @__PURE__ */ r.jsxs(
|
|
5805
5807
|
"svg",
|
|
5806
5808
|
{
|
|
5807
5809
|
width: "25",
|
|
@@ -5836,7 +5838,7 @@ const Bc = "_stack_1sg4d_1", jc = "_local_1sg4d_19", Oc = "_snackWrapper_1sg4d_2
|
|
|
5836
5838
|
/* @__PURE__ */ r.jsx("g", { mask: "url(#mask0_3156_27258)", children: /* @__PURE__ */ r.jsx("rect", { x: "0.5", y: "0.5", width: "24", height: "24", fill: "#FE725F" }) })
|
|
5837
5839
|
]
|
|
5838
5840
|
}
|
|
5839
|
-
),
|
|
5841
|
+
), od = ({ className: t }) => /* @__PURE__ */ r.jsxs(
|
|
5840
5842
|
"svg",
|
|
5841
5843
|
{
|
|
5842
5844
|
width: "24",
|
|
@@ -5874,7 +5876,7 @@ const Bc = "_stack_1sg4d_1", jc = "_local_1sg4d_19", Oc = "_snackWrapper_1sg4d_2
|
|
|
5874
5876
|
/* @__PURE__ */ r.jsx("defs", { children: /* @__PURE__ */ r.jsx("clipPath", { id: "clip0_3031_21000", children: /* @__PURE__ */ r.jsx("rect", { width: "24", height: "24", fill: "white" }) }) })
|
|
5875
5877
|
]
|
|
5876
5878
|
}
|
|
5877
|
-
),
|
|
5879
|
+
), id = ({ className: t }) => /* @__PURE__ */ r.jsx(
|
|
5878
5880
|
"svg",
|
|
5879
5881
|
{
|
|
5880
5882
|
viewBox: "0 0 24 24",
|
|
@@ -5907,7 +5909,7 @@ const Bc = "_stack_1sg4d_1", jc = "_local_1sg4d_19", Oc = "_snackWrapper_1sg4d_2
|
|
|
5907
5909
|
/* @__PURE__ */ r.jsx("g", { mask: "url(#mask0_343_52329)", children: /* @__PURE__ */ r.jsx("rect", { x: "0", y: "0", width: "24", height: "24", fill: "#5BCF83" }) })
|
|
5908
5910
|
] }) })
|
|
5909
5911
|
}
|
|
5910
|
-
),
|
|
5912
|
+
), ld = o1((t, o) => {
|
|
5911
5913
|
const {
|
|
5912
5914
|
open: i,
|
|
5913
5915
|
variant: C = "info",
|
|
@@ -5918,110 +5920,145 @@ const Bc = "_stack_1sg4d_1", jc = "_local_1sg4d_19", Oc = "_snackWrapper_1sg4d_2
|
|
|
5918
5920
|
showButtonClose: L = !0,
|
|
5919
5921
|
showIcon: v = !0,
|
|
5920
5922
|
content: d,
|
|
5921
|
-
classNameSnackbarRoot:
|
|
5923
|
+
classNameSnackbarRoot: _,
|
|
5922
5924
|
icon: E,
|
|
5923
5925
|
isStack: h = !1,
|
|
5924
5926
|
forceClose: p,
|
|
5925
|
-
|
|
5926
|
-
|
|
5927
|
-
|
|
5928
|
-
|
|
5929
|
-
|
|
5930
|
-
|
|
5931
|
-
|
|
5927
|
+
linkButtonProps: f,
|
|
5928
|
+
closeOnLinkClick: m = !0,
|
|
5929
|
+
"data-testid": w = "snackbar"
|
|
5930
|
+
} = t, u = v1(null), k = v1(null), [b, B] = d1(!1), [x, Z] = d1(!1), [V, j] = d1(), O = v1(0), D = v1(0), A = v1(0), y = v1(0), R = v1(!1), I = v1(null), T = (W) => {
|
|
5931
|
+
clearTimeout(I.current || 0), I.current = null;
|
|
5932
|
+
const J = h ? Zc[W] : A9[W];
|
|
5933
|
+
W === "swipe" || (Z(!0), j(W)), I.current = setTimeout(() => {
|
|
5934
|
+
l == null || l(), Z(!1), j(void 0), I.current = null;
|
|
5935
|
+
}, J);
|
|
5932
5936
|
};
|
|
5933
5937
|
yc({
|
|
5934
|
-
ref:
|
|
5938
|
+
ref: k,
|
|
5935
5939
|
open: i,
|
|
5936
|
-
onClose:
|
|
5937
|
-
setExiting:
|
|
5938
|
-
setExitReason:
|
|
5939
|
-
swiping:
|
|
5940
|
-
startX:
|
|
5941
|
-
startY:
|
|
5942
|
-
currentX:
|
|
5943
|
-
currentY:
|
|
5944
|
-
}),
|
|
5945
|
-
p &&
|
|
5946
|
-
}, [p]),
|
|
5940
|
+
onClose: T,
|
|
5941
|
+
setExiting: Z,
|
|
5942
|
+
setExitReason: j,
|
|
5943
|
+
swiping: R,
|
|
5944
|
+
startX: O,
|
|
5945
|
+
startY: D,
|
|
5946
|
+
currentX: A,
|
|
5947
|
+
currentY: y
|
|
5948
|
+
}), Q(() => {
|
|
5949
|
+
p && T("close");
|
|
5950
|
+
}, [p]), Q(() => {
|
|
5947
5951
|
if (i && !g && C !== "loading") {
|
|
5948
|
-
const
|
|
5949
|
-
return () => clearTimeout(
|
|
5952
|
+
const W = setTimeout(() => T("timeout"), c);
|
|
5953
|
+
return () => clearTimeout(W);
|
|
5950
5954
|
}
|
|
5951
|
-
}, [i, g, C, c]),
|
|
5952
|
-
i && (
|
|
5953
|
-
}, [i]),
|
|
5954
|
-
const
|
|
5955
|
-
|
|
5956
|
-
const
|
|
5957
|
-
|
|
5955
|
+
}, [i, g, C, c]), Q(() => {
|
|
5956
|
+
i && (Z(!1), j(void 0));
|
|
5957
|
+
}, [i]), Q(() => {
|
|
5958
|
+
const W = u.current;
|
|
5959
|
+
W && requestAnimationFrame(() => {
|
|
5960
|
+
const J = parseFloat(getComputedStyle(W).lineHeight), L1 = W.offsetHeight, p1 = Math.round(L1 / J);
|
|
5961
|
+
B(p1 > 1);
|
|
5958
5962
|
});
|
|
5959
|
-
}, [d]),
|
|
5963
|
+
}, [d]), Q(() => {
|
|
5960
5964
|
if (!i) return;
|
|
5961
|
-
const
|
|
5962
|
-
|
|
5965
|
+
const W = (J) => {
|
|
5966
|
+
J.key === "Escape" && T("escape");
|
|
5963
5967
|
};
|
|
5964
|
-
return window.addEventListener("keydown",
|
|
5965
|
-
}, [i]),
|
|
5966
|
-
|
|
5968
|
+
return window.addEventListener("keydown", W), () => window.removeEventListener("keydown", W);
|
|
5969
|
+
}, [i]), Q(() => () => {
|
|
5970
|
+
I.current && (clearTimeout(I.current), I.current = null);
|
|
5967
5971
|
}, []);
|
|
5968
|
-
const
|
|
5969
|
-
if (!i && !
|
|
5970
|
-
const
|
|
5971
|
-
success: /* @__PURE__ */ r.jsx(
|
|
5972
|
-
error: /* @__PURE__ */ r.jsx(
|
|
5973
|
-
info: /* @__PURE__ */ r.jsx(
|
|
5972
|
+
const U = x && V && g1[bc[V]];
|
|
5973
|
+
if (!i && !x) return null;
|
|
5974
|
+
const N = {
|
|
5975
|
+
success: /* @__PURE__ */ r.jsx(id, { className: g1.icon }),
|
|
5976
|
+
error: /* @__PURE__ */ r.jsx(rd, { className: g1.icon }),
|
|
5977
|
+
info: /* @__PURE__ */ r.jsx(od, { className: g1.icon }),
|
|
5974
5978
|
loading: /* @__PURE__ */ r.jsx(E2, { "data-testid": "snackbar-icon-loading", variant: "contrast" })
|
|
5975
|
-
},
|
|
5976
|
-
|
|
5977
|
-
|
|
5978
|
-
{ [
|
|
5979
|
-
{ [
|
|
5980
|
-
|
|
5981
|
-
|
|
5979
|
+
}, n1 = k1(
|
|
5980
|
+
g1.snackbar,
|
|
5981
|
+
g1[s],
|
|
5982
|
+
{ [g1.exiting]: x && V },
|
|
5983
|
+
{ [g1.snackbarVertical]: b },
|
|
5984
|
+
_,
|
|
5985
|
+
U,
|
|
5982
5986
|
{
|
|
5983
|
-
[
|
|
5987
|
+
[g1.snackbarStack]: h && !x,
|
|
5984
5988
|
// при появлении стека
|
|
5985
|
-
[
|
|
5989
|
+
[g1.exitingStack]: h && x
|
|
5986
5990
|
// при уходе стека
|
|
5987
5991
|
}
|
|
5988
|
-
),
|
|
5989
|
-
|
|
5992
|
+
), K = (W) => {
|
|
5993
|
+
k.current = W, o && (typeof o == "function" ? o(W) : o.current = W);
|
|
5994
|
+
}, X = (W, J) => {
|
|
5995
|
+
W == null || W(J);
|
|
5990
5996
|
};
|
|
5991
|
-
return /* @__PURE__ */ r.jsxs("div", { ref:
|
|
5997
|
+
return /* @__PURE__ */ r.jsxs("div", { ref: K, "data-testid": w, className: n1, children: [
|
|
5992
5998
|
/* @__PURE__ */ r.jsxs(
|
|
5993
5999
|
"div",
|
|
5994
6000
|
{
|
|
5995
|
-
className:
|
|
5996
|
-
[
|
|
6001
|
+
className: k1(g1.content, {
|
|
6002
|
+
[g1.contentVertical]: b
|
|
5997
6003
|
}),
|
|
5998
6004
|
children: [
|
|
5999
|
-
v && /* @__PURE__ */ r.jsx("div", { className:
|
|
6000
|
-
/* @__PURE__ */ r.
|
|
6005
|
+
v && /* @__PURE__ */ r.jsx("div", { className: g1.icon, children: E || N[C] }),
|
|
6006
|
+
/* @__PURE__ */ r.jsxs(
|
|
6007
|
+
"div",
|
|
6008
|
+
{
|
|
6009
|
+
className: k1(g1.textActionsContainer, {
|
|
6010
|
+
[g1.textActionsContainerVertical]: b
|
|
6011
|
+
}),
|
|
6012
|
+
children: [
|
|
6013
|
+
/* @__PURE__ */ r.jsx(
|
|
6014
|
+
G1.Label,
|
|
6015
|
+
{
|
|
6016
|
+
className: g1.contentText,
|
|
6017
|
+
ref: u,
|
|
6018
|
+
typographyStyle: "contrast",
|
|
6019
|
+
children: d
|
|
6020
|
+
}
|
|
6021
|
+
),
|
|
6022
|
+
f && /* @__PURE__ */ r.jsx(
|
|
6023
|
+
c2.Link,
|
|
6024
|
+
{
|
|
6025
|
+
size: "s",
|
|
6026
|
+
className: g1.buttonLink,
|
|
6027
|
+
buttonStyle: "contrast",
|
|
6028
|
+
...f,
|
|
6029
|
+
onClick: (W) => {
|
|
6030
|
+
X(f.onClick, W), m && T("timeout");
|
|
6031
|
+
}
|
|
6032
|
+
}
|
|
6033
|
+
)
|
|
6034
|
+
]
|
|
6035
|
+
}
|
|
6036
|
+
)
|
|
6001
6037
|
]
|
|
6002
6038
|
}
|
|
6003
6039
|
),
|
|
6004
6040
|
L && /* @__PURE__ */ r.jsx(
|
|
6005
|
-
|
|
6041
|
+
c2,
|
|
6006
6042
|
{
|
|
6007
|
-
iconLeft: /* @__PURE__ */ r.jsx(
|
|
6008
|
-
onClick: () =>
|
|
6043
|
+
iconLeft: /* @__PURE__ */ r.jsx(nd, {}),
|
|
6044
|
+
onClick: () => T("close"),
|
|
6009
6045
|
mode: "tertiary",
|
|
6046
|
+
size: "l",
|
|
6010
6047
|
buttonStyle: "contrast",
|
|
6011
6048
|
style: { padding: "0px" }
|
|
6012
6049
|
}
|
|
6013
6050
|
)
|
|
6014
6051
|
] });
|
|
6015
|
-
}),
|
|
6052
|
+
}), Td = (t) => {
|
|
6016
6053
|
const { children: o, dataTestId: i = "snackbar-wrapper" } = t, [C, s] = d3(Vc, { visible: [], queue: [] }), l = (h) => {
|
|
6017
|
-
const p = Sc(),
|
|
6018
|
-
s({ type: "ENQUEUE", snack:
|
|
6054
|
+
const p = Sc(), f = { ...h, id: p, open: !0 };
|
|
6055
|
+
s({ type: "ENQUEUE", snack: f });
|
|
6019
6056
|
}, c = (h) => {
|
|
6020
6057
|
s({ type: "REMOVE", id: h });
|
|
6021
6058
|
};
|
|
6022
|
-
|
|
6059
|
+
Q(() => {
|
|
6023
6060
|
s({ type: "SHOW_NEXT" });
|
|
6024
|
-
}, [C.queue, C.visible]),
|
|
6061
|
+
}, [C.queue, C.visible]), Q(() => {
|
|
6025
6062
|
if (C.queue.length !== 0)
|
|
6026
6063
|
if (C.visible.length >= O2) {
|
|
6027
6064
|
const h = C.visible[0];
|
|
@@ -6029,20 +6066,20 @@ const Bc = "_stack_1sg4d_1", jc = "_local_1sg4d_19", Oc = "_snackWrapper_1sg4d_2
|
|
|
6029
6066
|
} else
|
|
6030
6067
|
s({ type: "SHOW_NEXT" });
|
|
6031
6068
|
}, [C.queue]);
|
|
6032
|
-
const g = (h) => h.map((p,
|
|
6033
|
-
const m = (h.length - 1 -
|
|
6069
|
+
const g = (h) => h.map((p, f) => {
|
|
6070
|
+
const m = (h.length - 1 - f) * -8, w = h.length > 1;
|
|
6034
6071
|
w && !p.wasInStack && (p.wasInStack = !0);
|
|
6035
6072
|
const u = p.wasInStack || w ? "fix" : p.mode;
|
|
6036
6073
|
return /* @__PURE__ */ r.jsx(
|
|
6037
6074
|
"div",
|
|
6038
6075
|
{
|
|
6039
6076
|
"data-testid": i,
|
|
6040
|
-
className:
|
|
6077
|
+
className: u2.snackWrapper,
|
|
6041
6078
|
style: {
|
|
6042
6079
|
transform: `translateY(${m}px)`
|
|
6043
6080
|
},
|
|
6044
6081
|
children: /* @__PURE__ */ r.jsx(
|
|
6045
|
-
|
|
6082
|
+
ld,
|
|
6046
6083
|
{
|
|
6047
6084
|
...p,
|
|
6048
6085
|
open: !p.exiting,
|
|
@@ -6056,17 +6093,17 @@ const Bc = "_stack_1sg4d_1", jc = "_local_1sg4d_19", Oc = "_snackWrapper_1sg4d_2
|
|
|
6056
6093
|
p.id
|
|
6057
6094
|
);
|
|
6058
6095
|
}), L = C.visible.filter((h) => !h.parent), v = C.visible.filter((h) => h.parent), d = Q2.createPortal(
|
|
6059
|
-
/* @__PURE__ */ r.jsx("div", { className:
|
|
6096
|
+
/* @__PURE__ */ r.jsx("div", { className: u2.stack, children: g(L) }),
|
|
6060
6097
|
document.body
|
|
6061
|
-
),
|
|
6098
|
+
), _ = v.reduce((h, p) => {
|
|
6062
6099
|
if (!p.parent) return h;
|
|
6063
|
-
const
|
|
6064
|
-
return (h[
|
|
6065
|
-
}, {}), E = Object.entries(
|
|
6066
|
-
const
|
|
6067
|
-
return
|
|
6068
|
-
/* @__PURE__ */ r.jsx("div", { className:
|
|
6069
|
-
|
|
6100
|
+
const f = p.parent.id || `parent-${p.parent.className}`;
|
|
6101
|
+
return (h[f] || (h[f] = [])).push(p), h;
|
|
6102
|
+
}, {}), E = Object.entries(_).map(([h, p]) => {
|
|
6103
|
+
const f = p[0];
|
|
6104
|
+
return f.parent ? Q2.createPortal(
|
|
6105
|
+
/* @__PURE__ */ r.jsx("div", { className: k1(u2.stack, u2.local), children: g(p) }, h),
|
|
6106
|
+
f.parent
|
|
6070
6107
|
) : null;
|
|
6071
6108
|
});
|
|
6072
6109
|
return /* @__PURE__ */ r.jsxs(D9.Provider, { value: { show: l }, children: [
|
|
@@ -6074,10 +6111,10 @@ const Bc = "_stack_1sg4d_1", jc = "_local_1sg4d_19", Oc = "_snackWrapper_1sg4d_2
|
|
|
6074
6111
|
d,
|
|
6075
6112
|
E
|
|
6076
6113
|
] });
|
|
6077
|
-
},
|
|
6114
|
+
}, Cd = "_toggle_175ak_46", ad = "_drop_175ak_40", sd = "_divider_175ak_196", B1 = {
|
|
6078
6115
|
"drop-wrapper": "_drop-wrapper_175ak_40",
|
|
6079
|
-
toggle:
|
|
6080
|
-
drop:
|
|
6116
|
+
toggle: Cd,
|
|
6117
|
+
drop: ad,
|
|
6081
6118
|
"drop-content": "_drop-content_175ak_71",
|
|
6082
6119
|
"drop-padding-xl": "_drop-padding-xl_175ak_80",
|
|
6083
6120
|
"drop-padding-lg": "_drop-padding-lg_175ak_83",
|
|
@@ -6114,8 +6151,8 @@ const Bc = "_stack_1sg4d_1", jc = "_local_1sg4d_19", Oc = "_snackWrapper_1sg4d_2
|
|
|
6114
6151
|
"drop-footer-padding-inline-md": "_drop-footer-padding-inline-md_175ak_186",
|
|
6115
6152
|
"drop-footer-padding-inline-sm": "_drop-footer-padding-inline-sm_175ak_189",
|
|
6116
6153
|
"drop-footer-padding-inline-none": "_drop-footer-padding-inline-none_175ak_192",
|
|
6117
|
-
divider:
|
|
6118
|
-
},
|
|
6154
|
+
divider: sd
|
|
6155
|
+
}, cd = 8, B2 = 24, dd = 1, hd = "200ms ease-in-out", gd = "100ms ease-in-out", md = ({
|
|
6119
6156
|
children: t,
|
|
6120
6157
|
padding: o,
|
|
6121
6158
|
hasFooter: i,
|
|
@@ -6123,7 +6160,7 @@ const Bc = "_stack_1sg4d_1", jc = "_local_1sg4d_19", Oc = "_snackWrapper_1sg4d_2
|
|
|
6123
6160
|
style: s,
|
|
6124
6161
|
dividerBehavior: l
|
|
6125
6162
|
}) => {
|
|
6126
|
-
const [c, g] =
|
|
6163
|
+
const [c, g] = d1(!1), L = v1(null), v = H(
|
|
6127
6164
|
B1["drop-content"],
|
|
6128
6165
|
i ? B1[`drop-content-with-footer-padding-${o}`] : B1[`drop-content-padding-${o}`],
|
|
6129
6166
|
C
|
|
@@ -6138,20 +6175,20 @@ const Bc = "_stack_1sg4d_1", jc = "_local_1sg4d_19", Oc = "_snackWrapper_1sg4d_2
|
|
|
6138
6175
|
return !c;
|
|
6139
6176
|
}
|
|
6140
6177
|
})(l);
|
|
6141
|
-
return
|
|
6178
|
+
return Q(() => {
|
|
6142
6179
|
const h = L.current;
|
|
6143
6180
|
if (!h) return;
|
|
6144
6181
|
const p = () => {
|
|
6145
6182
|
if (!h) return;
|
|
6146
|
-
const { scrollTop: m, scrollHeight: w, clientHeight: u } = h, k = m + u >= w -
|
|
6183
|
+
const { scrollTop: m, scrollHeight: w, clientHeight: u } = h, k = m + u >= w - dd;
|
|
6147
6184
|
g(k);
|
|
6148
6185
|
};
|
|
6149
6186
|
h.addEventListener("scroll", p);
|
|
6150
|
-
const
|
|
6187
|
+
const f = requestAnimationFrame(() => {
|
|
6151
6188
|
p();
|
|
6152
6189
|
});
|
|
6153
6190
|
return () => {
|
|
6154
|
-
h.removeEventListener("scroll", p), cancelAnimationFrame(
|
|
6191
|
+
h.removeEventListener("scroll", p), cancelAnimationFrame(f);
|
|
6155
6192
|
};
|
|
6156
6193
|
}, []), /* @__PURE__ */ r.jsxs(q1, { children: [
|
|
6157
6194
|
/* @__PURE__ */ r.jsx(
|
|
@@ -6167,13 +6204,13 @@ const Bc = "_stack_1sg4d_1", jc = "_local_1sg4d_19", Oc = "_snackWrapper_1sg4d_2
|
|
|
6167
6204
|
),
|
|
6168
6205
|
E && /* @__PURE__ */ r.jsx("hr", { className: d, "data-testid": "drop-divider" })
|
|
6169
6206
|
] });
|
|
6170
|
-
},
|
|
6207
|
+
}, pd = ({ children: t, footerPadding: o, className: i, style: C }) => {
|
|
6171
6208
|
const { padding: s, paddingType: l } = o, c = H(
|
|
6172
6209
|
l === "all" ? B1[`drop-footer-padding-${s}`] : B1[`drop-footer-padding-${l}-${s}`],
|
|
6173
6210
|
i
|
|
6174
6211
|
);
|
|
6175
6212
|
return /* @__PURE__ */ r.jsx("div", { className: c, style: C, "data-testid": "drop-footer", children: t });
|
|
6176
|
-
},
|
|
6213
|
+
}, Dd = ({
|
|
6177
6214
|
children: t,
|
|
6178
6215
|
open: o = !1,
|
|
6179
6216
|
onOpenChange: i,
|
|
@@ -6185,33 +6222,33 @@ const Bc = "_stack_1sg4d_1", jc = "_local_1sg4d_19", Oc = "_snackWrapper_1sg4d_2
|
|
|
6185
6222
|
toggleMode: L = "click",
|
|
6186
6223
|
padding: v = "xl",
|
|
6187
6224
|
footerPadding: d = { padding: "xl", paddingType: "inline" },
|
|
6188
|
-
footerContent:
|
|
6225
|
+
footerContent: _,
|
|
6189
6226
|
classNames: E,
|
|
6190
6227
|
styles: h
|
|
6191
6228
|
}) => {
|
|
6192
6229
|
const {
|
|
6193
6230
|
wrapper: p,
|
|
6194
|
-
toggle:
|
|
6231
|
+
toggle: f,
|
|
6195
6232
|
drop: m,
|
|
6196
6233
|
content: w,
|
|
6197
6234
|
footer: u
|
|
6198
6235
|
} = E ?? {}, {
|
|
6199
6236
|
wrapper: k,
|
|
6200
6237
|
toggle: b,
|
|
6201
|
-
drop:
|
|
6238
|
+
drop: B,
|
|
6202
6239
|
content: x,
|
|
6203
|
-
footer:
|
|
6204
|
-
} = h ?? {},
|
|
6240
|
+
footer: Z
|
|
6241
|
+
} = h ?? {}, V = L === "click", j = L === "hover", { refs: O, floatingStyles: D, placement: A, context: y } = E9({
|
|
6205
6242
|
open: o,
|
|
6206
6243
|
onOpenChange: i,
|
|
6207
6244
|
placement: s,
|
|
6208
6245
|
middleware: [
|
|
6209
|
-
L3(
|
|
6246
|
+
L3(cd),
|
|
6210
6247
|
// Отступ между toggle-ом и drop-ом
|
|
6211
6248
|
w3({
|
|
6212
|
-
apply({ availableHeight:
|
|
6249
|
+
apply({ availableHeight: p1, elements: h1 }) {
|
|
6213
6250
|
Object.assign(h1.floating.style, {
|
|
6214
|
-
height: `${
|
|
6251
|
+
height: `${p1 - B2}px`
|
|
6215
6252
|
});
|
|
6216
6253
|
}
|
|
6217
6254
|
}),
|
|
@@ -6230,39 +6267,39 @@ const Bc = "_stack_1sg4d_1", jc = "_local_1sg4d_19", Oc = "_snackWrapper_1sg4d_2
|
|
|
6230
6267
|
],
|
|
6231
6268
|
whileElementsMounted: u3
|
|
6232
6269
|
// Для автоматического обновление позиции при скролле/ресайзе
|
|
6233
|
-
}), R = _3(
|
|
6270
|
+
}), R = _3(y, {
|
|
6234
6271
|
enabled: j,
|
|
6235
6272
|
// Включен только в режиме hover
|
|
6236
6273
|
handleClose: E3()
|
|
6237
6274
|
// Создает зону, по которой курсор может безопасно перемещаться от toggle к drop
|
|
6238
|
-
}), { isMounted:
|
|
6275
|
+
}), { isMounted: I, styles: T } = k9(y, {
|
|
6239
6276
|
initial: {
|
|
6240
6277
|
opacity: 0
|
|
6241
6278
|
},
|
|
6242
6279
|
open: {
|
|
6243
6280
|
opacity: 1,
|
|
6244
|
-
transition: `opacity ${
|
|
6281
|
+
transition: `opacity ${hd}`
|
|
6245
6282
|
},
|
|
6246
6283
|
close: {
|
|
6247
6284
|
opacity: 0,
|
|
6248
|
-
transition: `opacity ${
|
|
6285
|
+
transition: `opacity ${gd}`
|
|
6249
6286
|
}
|
|
6250
|
-
}), U = M9(
|
|
6287
|
+
}), U = M9(y, {
|
|
6251
6288
|
referencePress: !1,
|
|
6252
6289
|
// Не закрывать при клике на триггер
|
|
6253
|
-
outsidePress: c &&
|
|
6290
|
+
outsidePress: c && V,
|
|
6254
6291
|
// Закрывать при клике вне дропа
|
|
6255
6292
|
escapeKey: g,
|
|
6256
6293
|
// Закрывать по ESC
|
|
6257
6294
|
outsidePressEvent: "click"
|
|
6258
|
-
}), { getReferenceProps: N, getFloatingProps:
|
|
6295
|
+
}), { getReferenceProps: N, getFloatingProps: n1 } = x9([U, R]), K = !!_, X = H(B1["drop-wrapper"], p), W = H(B1.toggle, f), J = H(
|
|
6259
6296
|
B1.drop,
|
|
6260
|
-
|
|
6297
|
+
K ? B1[`drop-with-footer-padding-${v}`] : B1[`drop-padding-${v}`],
|
|
6261
6298
|
m
|
|
6262
|
-
),
|
|
6299
|
+
), L1 = () => {
|
|
6263
6300
|
i(!o);
|
|
6264
6301
|
};
|
|
6265
|
-
return /* @__PURE__ */ r.jsxs("div", { "data-testid": "drop-wrapper", className:
|
|
6302
|
+
return /* @__PURE__ */ r.jsxs("div", { "data-testid": "drop-wrapper", className: X, style: k, children: [
|
|
6266
6303
|
/* @__PURE__ */ r.jsx(
|
|
6267
6304
|
"div",
|
|
6268
6305
|
{
|
|
@@ -6272,47 +6309,47 @@ const Bc = "_stack_1sg4d_1", jc = "_local_1sg4d_19", Oc = "_snackWrapper_1sg4d_2
|
|
|
6272
6309
|
"aria-expanded": o,
|
|
6273
6310
|
tabIndex: 0,
|
|
6274
6311
|
"data-testid": "drop-toggle",
|
|
6275
|
-
className:
|
|
6276
|
-
onClick:
|
|
6312
|
+
className: W,
|
|
6313
|
+
onClick: V ? L1 : void 0,
|
|
6277
6314
|
style: b,
|
|
6278
6315
|
...N(),
|
|
6279
6316
|
children: t
|
|
6280
6317
|
}
|
|
6281
6318
|
),
|
|
6282
|
-
|
|
6319
|
+
I && /* @__PURE__ */ r.jsx(H9, { children: /* @__PURE__ */ r.jsxs(
|
|
6283
6320
|
"div",
|
|
6284
6321
|
{
|
|
6285
6322
|
"aria-hidden": !o,
|
|
6286
6323
|
"data-testid": "drop-menu",
|
|
6287
6324
|
"data-drop-state": o ? "open" : "closed",
|
|
6288
|
-
"data-drop-position":
|
|
6289
|
-
className:
|
|
6325
|
+
"data-drop-position": A,
|
|
6326
|
+
className: J,
|
|
6290
6327
|
style: {
|
|
6291
|
-
...
|
|
6292
|
-
...
|
|
6293
|
-
...
|
|
6328
|
+
...B,
|
|
6329
|
+
...D,
|
|
6330
|
+
...T
|
|
6294
6331
|
},
|
|
6295
6332
|
ref: O.setFloating,
|
|
6296
|
-
...
|
|
6333
|
+
...n1(),
|
|
6297
6334
|
children: [
|
|
6298
6335
|
/* @__PURE__ */ r.jsx(
|
|
6299
|
-
|
|
6336
|
+
md,
|
|
6300
6337
|
{
|
|
6301
6338
|
children: C,
|
|
6302
6339
|
padding: v,
|
|
6303
|
-
hasFooter:
|
|
6340
|
+
hasFooter: K,
|
|
6304
6341
|
className: w,
|
|
6305
6342
|
style: x,
|
|
6306
6343
|
dividerBehavior: l
|
|
6307
6344
|
}
|
|
6308
6345
|
),
|
|
6309
|
-
|
|
6310
|
-
|
|
6346
|
+
_ && /* @__PURE__ */ r.jsx(
|
|
6347
|
+
pd,
|
|
6311
6348
|
{
|
|
6312
6349
|
footerPadding: d,
|
|
6313
6350
|
className: u,
|
|
6314
|
-
style:
|
|
6315
|
-
children:
|
|
6351
|
+
style: Z,
|
|
6352
|
+
children: _
|
|
6316
6353
|
}
|
|
6317
6354
|
)
|
|
6318
6355
|
]
|
|
@@ -6321,44 +6358,44 @@ const Bc = "_stack_1sg4d_1", jc = "_local_1sg4d_19", Oc = "_snackWrapper_1sg4d_2
|
|
|
6321
6358
|
] });
|
|
6322
6359
|
};
|
|
6323
6360
|
export {
|
|
6324
|
-
|
|
6361
|
+
kd as Alert,
|
|
6325
6362
|
vl as ArrowsIcons,
|
|
6326
6363
|
L6 as Avatar,
|
|
6327
6364
|
j2 as Badge,
|
|
6328
|
-
|
|
6365
|
+
c2 as Button,
|
|
6329
6366
|
fl as ChartsIcons,
|
|
6330
|
-
|
|
6331
|
-
|
|
6367
|
+
Vd as Checkbox,
|
|
6368
|
+
Hd as ConfigProvider,
|
|
6332
6369
|
ml as CountryIcons,
|
|
6333
6370
|
El as DevelopmentIcons,
|
|
6334
|
-
|
|
6371
|
+
Dd as Drop,
|
|
6335
6372
|
pl as EditorIcons,
|
|
6336
6373
|
wl as GeneralIcons,
|
|
6337
6374
|
ca as Helper,
|
|
6338
6375
|
j1 as Icon,
|
|
6339
|
-
|
|
6376
|
+
Md as Image,
|
|
6340
6377
|
ul as LayoutIcons,
|
|
6341
|
-
|
|
6378
|
+
jd as List,
|
|
6342
6379
|
E2 as Loader,
|
|
6343
|
-
|
|
6380
|
+
Ed as Modal,
|
|
6344
6381
|
h7 as Placeholder,
|
|
6345
6382
|
_l as PrivateIcons,
|
|
6346
6383
|
kl as ProductIcons,
|
|
6347
|
-
|
|
6348
|
-
|
|
6384
|
+
Bd as Radio,
|
|
6385
|
+
Wd as SegmentedControl,
|
|
6349
6386
|
Ml as ServiceIcons,
|
|
6350
|
-
|
|
6351
|
-
|
|
6352
|
-
|
|
6353
|
-
|
|
6354
|
-
|
|
6355
|
-
|
|
6356
|
-
|
|
6387
|
+
Td as SnackbarProvider,
|
|
6388
|
+
Od as Tabs,
|
|
6389
|
+
Zd as Tag,
|
|
6390
|
+
Sd as TextArea,
|
|
6391
|
+
yd as TextInput,
|
|
6392
|
+
Rd as Tooltip,
|
|
6393
|
+
Fd as Trigger,
|
|
6357
6394
|
G1 as Typography,
|
|
6358
6395
|
Ll as UsersIcons,
|
|
6359
6396
|
M7 as enUS,
|
|
6360
|
-
|
|
6397
|
+
bd as ruRU,
|
|
6361
6398
|
x7 as useConfig,
|
|
6362
|
-
|
|
6363
|
-
|
|
6399
|
+
xd as useLocale,
|
|
6400
|
+
Id as useSnackbar
|
|
6364
6401
|
};
|