skillgrid 0.0.25 → 0.0.27
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/Button/Button.d.ts +1 -1
- package/dist/components/Button/Button.type.d.ts +121 -43
- package/dist/components/Button/assets/ArrowIcon.d.ts +5 -0
- package/dist/components/Button/assets/ArrowRightIcon.d.ts +5 -0
- package/dist/components/Button/assets/CrossIcon.d.ts +5 -0
- package/dist/components/Button/assets/DownloadIcon.d.ts +5 -0
- package/dist/components/Button/assets/FollowIcon.d.ts +5 -0
- package/dist/components/Button/assets/HeartIcon.d.ts +5 -0
- package/dist/components/Button/assets/LocationIcon.d.ts +5 -0
- package/dist/components/Button/assets/MapMarkerIcon.d.ts +5 -0
- package/dist/components/Button/assets/index.d.ts +9 -0
- package/dist/components/Button/assets/types.d.ts +7 -0
- package/dist/components/Button/lib/get-safe-props.d.ts +8 -0
- package/dist/components/Button/lib/get-safe-props.test.d.ts +1 -0
- package/dist/components/Button/lib/get-typography.d.ts +11 -0
- package/dist/components/Button/lib/get-typography.test.d.ts +1 -0
- package/dist/components/Button/preview/index.d.ts +8 -0
- package/dist/components/Radio/Radio.type.d.ts +14 -2
- package/dist/components/Radio/RadioGroup/RadioGroup.d.ts +2 -1
- package/dist/components/Radio/RadioGroup/RadioGroup.type.d.ts +1 -1
- package/dist/components/Radio/index.d.ts +4 -2
- package/dist/components/Tabs/ScrollWrapper.d.ts +9 -0
- package/dist/components/Tabs/Tabs.d.ts +99 -0
- package/dist/components/Tabs/Tabs.type.d.ts +199 -0
- package/dist/components/Tabs/index.d.ts +2 -0
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/useIsMobile.d.ts +1 -0
- package/dist/hooks/useViewPortSize.d.ts +4 -0
- package/dist/hooks/useWindowEvent.d.ts +3 -0
- package/dist/index.cjs.js +13 -11
- package/dist/index.css +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.es.js +2089 -1625
- package/dist/types/common.d.ts +1 -0
- package/dist/types/index.d.ts +1 -0
- package/package.json +2 -1
package/dist/index.es.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import
|
|
3
|
-
import { clsx as
|
|
4
|
-
import './index.css';function
|
|
5
|
-
return
|
|
1
|
+
import * as Ot from "react";
|
|
2
|
+
import lt, { forwardRef as X, Fragment as Oe, useState as ye, useEffect as ue, useRef as qe, useCallback as xe, useMemo as ya, createContext as Pt, useContext as qt, useLayoutEffect as va, useImperativeHandle as xa, useId as Ut } from "react";
|
|
3
|
+
import { clsx as I } from "clsx";
|
|
4
|
+
import './index.css';function Ca(e) {
|
|
5
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
6
6
|
}
|
|
7
|
-
var
|
|
7
|
+
var ze = { exports: {} }, Ne = {};
|
|
8
8
|
/**
|
|
9
9
|
* @license React
|
|
10
10
|
* react-jsx-runtime.production.min.js
|
|
@@ -14,21 +14,21 @@ var Ue = { exports: {} }, Re = {};
|
|
|
14
14
|
* This source code is licensed under the MIT license found in the
|
|
15
15
|
* LICENSE file in the root directory of this source tree.
|
|
16
16
|
*/
|
|
17
|
-
var
|
|
18
|
-
function
|
|
19
|
-
if (
|
|
20
|
-
|
|
21
|
-
var
|
|
22
|
-
function
|
|
23
|
-
var
|
|
24
|
-
|
|
25
|
-
for (
|
|
26
|
-
if (
|
|
27
|
-
return { $$typeof: r, type:
|
|
17
|
+
var Ct;
|
|
18
|
+
function wa() {
|
|
19
|
+
if (Ct) return Ne;
|
|
20
|
+
Ct = 1;
|
|
21
|
+
var e = lt, r = Symbol.for("react.element"), a = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, i = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, o = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
22
|
+
function l(u, c, p) {
|
|
23
|
+
var h, m = {}, b = null, g = null;
|
|
24
|
+
p !== void 0 && (b = "" + p), c.key !== void 0 && (b = "" + c.key), c.ref !== void 0 && (g = c.ref);
|
|
25
|
+
for (h in c) s.call(c, h) && !o.hasOwnProperty(h) && (m[h] = c[h]);
|
|
26
|
+
if (u && u.defaultProps) for (h in c = u.defaultProps, c) m[h] === void 0 && (m[h] = c[h]);
|
|
27
|
+
return { $$typeof: r, type: u, key: b, ref: g, props: m, _owner: i.current };
|
|
28
28
|
}
|
|
29
|
-
return
|
|
29
|
+
return Ne.Fragment = a, Ne.jsx = l, Ne.jsxs = l, Ne;
|
|
30
30
|
}
|
|
31
|
-
var
|
|
31
|
+
var De = {};
|
|
32
32
|
/**
|
|
33
33
|
* @license React
|
|
34
34
|
* react-jsx-runtime.development.js
|
|
@@ -38,91 +38,91 @@ var ke = {};
|
|
|
38
38
|
* This source code is licensed under the MIT license found in the
|
|
39
39
|
* LICENSE file in the root directory of this source tree.
|
|
40
40
|
*/
|
|
41
|
-
var
|
|
42
|
-
function
|
|
43
|
-
return
|
|
44
|
-
var
|
|
45
|
-
function
|
|
46
|
-
if (
|
|
41
|
+
var wt;
|
|
42
|
+
function Sa() {
|
|
43
|
+
return wt || (wt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
44
|
+
var e = lt, r = Symbol.for("react.element"), a = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), u = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), p = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), m = Symbol.for("react.memo"), b = Symbol.for("react.lazy"), g = Symbol.for("react.offscreen"), y = Symbol.iterator, S = "@@iterator";
|
|
45
|
+
function x(t) {
|
|
46
|
+
if (t === null || typeof t != "object")
|
|
47
47
|
return null;
|
|
48
|
-
var
|
|
49
|
-
return typeof
|
|
48
|
+
var d = y && t[y] || t[S];
|
|
49
|
+
return typeof d == "function" ? d : null;
|
|
50
50
|
}
|
|
51
|
-
var C =
|
|
52
|
-
function
|
|
51
|
+
var C = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
52
|
+
function _(t) {
|
|
53
53
|
{
|
|
54
|
-
for (var
|
|
55
|
-
|
|
56
|
-
|
|
54
|
+
for (var d = arguments.length, f = new Array(d > 1 ? d - 1 : 0), w = 1; w < d; w++)
|
|
55
|
+
f[w - 1] = arguments[w];
|
|
56
|
+
L("error", t, f);
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
|
-
function
|
|
59
|
+
function L(t, d, f) {
|
|
60
60
|
{
|
|
61
|
-
var
|
|
62
|
-
|
|
63
|
-
var
|
|
64
|
-
return String(
|
|
61
|
+
var w = C.ReactDebugCurrentFrame, D = w.getStackAddendum();
|
|
62
|
+
D !== "" && (d += "%s", f = f.concat([D]));
|
|
63
|
+
var q = f.map(function(R) {
|
|
64
|
+
return String(R);
|
|
65
65
|
});
|
|
66
|
-
|
|
66
|
+
q.unshift("Warning: " + d), Function.prototype.apply.call(console[t], console, q);
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
|
-
var
|
|
69
|
+
var E = !1, A = !1, j = !1, T = !1, O = !1, U;
|
|
70
70
|
U = Symbol.for("react.module.reference");
|
|
71
|
-
function
|
|
72
|
-
return !!(typeof
|
|
71
|
+
function B(t) {
|
|
72
|
+
return !!(typeof t == "string" || typeof t == "function" || t === s || t === o || O || t === i || t === p || t === h || T || t === g || E || A || j || typeof t == "object" && t !== null && (t.$$typeof === b || t.$$typeof === m || t.$$typeof === l || t.$$typeof === u || t.$$typeof === c || // This needs to include all possible module reference object
|
|
73
73
|
// types supported by any Flight configuration anywhere since
|
|
74
74
|
// we don't know which Flight build this will end up being used
|
|
75
75
|
// with.
|
|
76
|
-
|
|
76
|
+
t.$$typeof === U || t.getModuleId !== void 0));
|
|
77
77
|
}
|
|
78
|
-
function z(
|
|
79
|
-
var
|
|
80
|
-
if (
|
|
81
|
-
return
|
|
82
|
-
var
|
|
83
|
-
return
|
|
78
|
+
function z(t, d, f) {
|
|
79
|
+
var w = t.displayName;
|
|
80
|
+
if (w)
|
|
81
|
+
return w;
|
|
82
|
+
var D = d.displayName || d.name || "";
|
|
83
|
+
return D !== "" ? f + "(" + D + ")" : f;
|
|
84
84
|
}
|
|
85
|
-
function
|
|
86
|
-
return
|
|
85
|
+
function N(t) {
|
|
86
|
+
return t.displayName || "Context";
|
|
87
87
|
}
|
|
88
|
-
function
|
|
89
|
-
if (
|
|
88
|
+
function v(t) {
|
|
89
|
+
if (t == null)
|
|
90
90
|
return null;
|
|
91
|
-
if (typeof
|
|
92
|
-
return
|
|
93
|
-
if (typeof
|
|
94
|
-
return
|
|
95
|
-
switch (
|
|
91
|
+
if (typeof t.tag == "number" && _("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof t == "function")
|
|
92
|
+
return t.displayName || t.name || null;
|
|
93
|
+
if (typeof t == "string")
|
|
94
|
+
return t;
|
|
95
|
+
switch (t) {
|
|
96
96
|
case s:
|
|
97
97
|
return "Fragment";
|
|
98
98
|
case a:
|
|
99
99
|
return "Portal";
|
|
100
|
-
case
|
|
100
|
+
case o:
|
|
101
101
|
return "Profiler";
|
|
102
102
|
case i:
|
|
103
103
|
return "StrictMode";
|
|
104
|
-
case f:
|
|
105
|
-
return "Suspense";
|
|
106
104
|
case p:
|
|
105
|
+
return "Suspense";
|
|
106
|
+
case h:
|
|
107
107
|
return "SuspenseList";
|
|
108
108
|
}
|
|
109
|
-
if (typeof
|
|
110
|
-
switch (
|
|
111
|
-
case
|
|
112
|
-
var
|
|
113
|
-
return
|
|
109
|
+
if (typeof t == "object")
|
|
110
|
+
switch (t.$$typeof) {
|
|
111
|
+
case u:
|
|
112
|
+
var d = t;
|
|
113
|
+
return N(d) + ".Consumer";
|
|
114
|
+
case l:
|
|
115
|
+
var f = t;
|
|
116
|
+
return N(f._context) + ".Provider";
|
|
114
117
|
case c:
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
return
|
|
119
|
-
case h:
|
|
120
|
-
var v = e.displayName || null;
|
|
121
|
-
return v !== null ? v : m(e.type) || "Memo";
|
|
118
|
+
return z(t, t.render, "ForwardRef");
|
|
119
|
+
case m:
|
|
120
|
+
var w = t.displayName || null;
|
|
121
|
+
return w !== null ? w : v(t.type) || "Memo";
|
|
122
122
|
case b: {
|
|
123
|
-
var
|
|
123
|
+
var D = t, q = D._payload, R = D._init;
|
|
124
124
|
try {
|
|
125
|
-
return
|
|
125
|
+
return v(R(q));
|
|
126
126
|
} catch {
|
|
127
127
|
return null;
|
|
128
128
|
}
|
|
@@ -130,764 +130,767 @@ function ca() {
|
|
|
130
130
|
}
|
|
131
131
|
return null;
|
|
132
132
|
}
|
|
133
|
-
var
|
|
134
|
-
function de() {
|
|
135
|
-
}
|
|
136
|
-
de.__reactDisabledLog = !0;
|
|
133
|
+
var $ = Object.assign, P = 0, F, G, Q, ne, Z, ie, ee;
|
|
137
134
|
function ve() {
|
|
135
|
+
}
|
|
136
|
+
ve.__reactDisabledLog = !0;
|
|
137
|
+
function Ae() {
|
|
138
138
|
{
|
|
139
|
-
if (
|
|
140
|
-
|
|
141
|
-
var
|
|
139
|
+
if (P === 0) {
|
|
140
|
+
F = console.log, G = console.info, Q = console.warn, ne = console.error, Z = console.group, ie = console.groupCollapsed, ee = console.groupEnd;
|
|
141
|
+
var t = {
|
|
142
142
|
configurable: !0,
|
|
143
143
|
enumerable: !0,
|
|
144
|
-
value:
|
|
144
|
+
value: ve,
|
|
145
145
|
writable: !0
|
|
146
146
|
};
|
|
147
147
|
Object.defineProperties(console, {
|
|
148
|
-
info:
|
|
149
|
-
log:
|
|
150
|
-
warn:
|
|
151
|
-
error:
|
|
152
|
-
group:
|
|
153
|
-
groupCollapsed:
|
|
154
|
-
groupEnd:
|
|
148
|
+
info: t,
|
|
149
|
+
log: t,
|
|
150
|
+
warn: t,
|
|
151
|
+
error: t,
|
|
152
|
+
group: t,
|
|
153
|
+
groupCollapsed: t,
|
|
154
|
+
groupEnd: t
|
|
155
155
|
});
|
|
156
156
|
}
|
|
157
|
-
|
|
157
|
+
P++;
|
|
158
158
|
}
|
|
159
159
|
}
|
|
160
|
-
function
|
|
160
|
+
function fe() {
|
|
161
161
|
{
|
|
162
|
-
if (
|
|
163
|
-
var
|
|
162
|
+
if (P--, P === 0) {
|
|
163
|
+
var t = {
|
|
164
164
|
configurable: !0,
|
|
165
165
|
enumerable: !0,
|
|
166
166
|
writable: !0
|
|
167
167
|
};
|
|
168
168
|
Object.defineProperties(console, {
|
|
169
|
-
log:
|
|
170
|
-
value:
|
|
169
|
+
log: $({}, t, {
|
|
170
|
+
value: F
|
|
171
171
|
}),
|
|
172
|
-
info:
|
|
173
|
-
value:
|
|
172
|
+
info: $({}, t, {
|
|
173
|
+
value: G
|
|
174
174
|
}),
|
|
175
|
-
warn:
|
|
175
|
+
warn: $({}, t, {
|
|
176
176
|
value: Q
|
|
177
177
|
}),
|
|
178
|
-
error:
|
|
179
|
-
value:
|
|
178
|
+
error: $({}, t, {
|
|
179
|
+
value: ne
|
|
180
180
|
}),
|
|
181
|
-
group:
|
|
182
|
-
value:
|
|
181
|
+
group: $({}, t, {
|
|
182
|
+
value: Z
|
|
183
183
|
}),
|
|
184
|
-
groupCollapsed:
|
|
185
|
-
value:
|
|
184
|
+
groupCollapsed: $({}, t, {
|
|
185
|
+
value: ie
|
|
186
186
|
}),
|
|
187
|
-
groupEnd:
|
|
188
|
-
value:
|
|
187
|
+
groupEnd: $({}, t, {
|
|
188
|
+
value: ee
|
|
189
189
|
})
|
|
190
190
|
});
|
|
191
191
|
}
|
|
192
|
-
|
|
192
|
+
P < 0 && _("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
193
193
|
}
|
|
194
194
|
}
|
|
195
|
-
var
|
|
196
|
-
function
|
|
195
|
+
var Ee = C.ReactCurrentDispatcher, ke;
|
|
196
|
+
function we(t, d, f) {
|
|
197
197
|
{
|
|
198
|
-
if (
|
|
198
|
+
if (ke === void 0)
|
|
199
199
|
try {
|
|
200
200
|
throw Error();
|
|
201
|
-
} catch (
|
|
202
|
-
var
|
|
203
|
-
|
|
201
|
+
} catch (D) {
|
|
202
|
+
var w = D.stack.trim().match(/\n( *(at )?)/);
|
|
203
|
+
ke = w && w[1] || "";
|
|
204
204
|
}
|
|
205
205
|
return `
|
|
206
|
-
` +
|
|
206
|
+
` + ke + t;
|
|
207
207
|
}
|
|
208
208
|
}
|
|
209
|
-
var
|
|
209
|
+
var Ue = !1, je;
|
|
210
210
|
{
|
|
211
|
-
var
|
|
212
|
-
|
|
211
|
+
var Ve = typeof WeakMap == "function" ? WeakMap : Map;
|
|
212
|
+
je = new Ve();
|
|
213
213
|
}
|
|
214
|
-
function
|
|
215
|
-
if (!
|
|
214
|
+
function Be(t, d) {
|
|
215
|
+
if (!t || Ue)
|
|
216
216
|
return "";
|
|
217
217
|
{
|
|
218
|
-
var
|
|
219
|
-
if (
|
|
220
|
-
return
|
|
218
|
+
var f = je.get(t);
|
|
219
|
+
if (f !== void 0)
|
|
220
|
+
return f;
|
|
221
221
|
}
|
|
222
|
-
var
|
|
223
|
-
|
|
224
|
-
var
|
|
222
|
+
var w;
|
|
223
|
+
Ue = !0;
|
|
224
|
+
var D = Error.prepareStackTrace;
|
|
225
225
|
Error.prepareStackTrace = void 0;
|
|
226
|
-
var
|
|
227
|
-
|
|
226
|
+
var q;
|
|
227
|
+
q = Ee.current, Ee.current = null, Ae();
|
|
228
228
|
try {
|
|
229
|
-
if (
|
|
230
|
-
var
|
|
229
|
+
if (d) {
|
|
230
|
+
var R = function() {
|
|
231
231
|
throw Error();
|
|
232
232
|
};
|
|
233
|
-
if (Object.defineProperty(
|
|
233
|
+
if (Object.defineProperty(R.prototype, "props", {
|
|
234
234
|
set: function() {
|
|
235
235
|
throw Error();
|
|
236
236
|
}
|
|
237
237
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
238
238
|
try {
|
|
239
|
-
Reflect.construct(
|
|
240
|
-
} catch (
|
|
241
|
-
|
|
239
|
+
Reflect.construct(R, []);
|
|
240
|
+
} catch (re) {
|
|
241
|
+
w = re;
|
|
242
242
|
}
|
|
243
|
-
Reflect.construct(
|
|
243
|
+
Reflect.construct(t, [], R);
|
|
244
244
|
} else {
|
|
245
245
|
try {
|
|
246
|
-
|
|
247
|
-
} catch (
|
|
248
|
-
|
|
246
|
+
R.call();
|
|
247
|
+
} catch (re) {
|
|
248
|
+
w = re;
|
|
249
249
|
}
|
|
250
|
-
|
|
250
|
+
t.call(R.prototype);
|
|
251
251
|
}
|
|
252
252
|
} else {
|
|
253
253
|
try {
|
|
254
254
|
throw Error();
|
|
255
|
-
} catch (
|
|
256
|
-
|
|
255
|
+
} catch (re) {
|
|
256
|
+
w = re;
|
|
257
257
|
}
|
|
258
|
-
|
|
258
|
+
t();
|
|
259
259
|
}
|
|
260
|
-
} catch (
|
|
261
|
-
if (
|
|
262
|
-
for (var
|
|
263
|
-
`),
|
|
264
|
-
`),
|
|
265
|
-
|
|
266
|
-
for (;
|
|
267
|
-
if (
|
|
268
|
-
if (
|
|
260
|
+
} catch (re) {
|
|
261
|
+
if (re && w && typeof re.stack == "string") {
|
|
262
|
+
for (var k = re.stack.split(`
|
|
263
|
+
`), te = w.stack.split(`
|
|
264
|
+
`), H = k.length - 1, V = te.length - 1; H >= 1 && V >= 0 && k[H] !== te[V]; )
|
|
265
|
+
V--;
|
|
266
|
+
for (; H >= 1 && V >= 0; H--, V--)
|
|
267
|
+
if (k[H] !== te[V]) {
|
|
268
|
+
if (H !== 1 || V !== 1)
|
|
269
269
|
do
|
|
270
|
-
if (
|
|
271
|
-
var
|
|
272
|
-
` +
|
|
273
|
-
return
|
|
270
|
+
if (H--, V--, V < 0 || k[H] !== te[V]) {
|
|
271
|
+
var le = `
|
|
272
|
+
` + k[H].replace(" at new ", " at ");
|
|
273
|
+
return t.displayName && le.includes("<anonymous>") && (le = le.replace("<anonymous>", t.displayName)), typeof t == "function" && je.set(t, le), le;
|
|
274
274
|
}
|
|
275
|
-
while (
|
|
275
|
+
while (H >= 1 && V >= 0);
|
|
276
276
|
break;
|
|
277
277
|
}
|
|
278
278
|
}
|
|
279
279
|
} finally {
|
|
280
|
-
|
|
280
|
+
Ue = !1, Ee.current = q, fe(), Error.prepareStackTrace = D;
|
|
281
281
|
}
|
|
282
|
-
var
|
|
283
|
-
return typeof
|
|
282
|
+
var Re = t ? t.displayName || t.name : "", Se = Re ? we(Re) : "";
|
|
283
|
+
return typeof t == "function" && je.set(t, Se), Se;
|
|
284
284
|
}
|
|
285
|
-
function
|
|
286
|
-
return
|
|
285
|
+
function Ze(t, d, f) {
|
|
286
|
+
return Be(t, !1);
|
|
287
287
|
}
|
|
288
|
-
function
|
|
289
|
-
var
|
|
290
|
-
return !!(
|
|
288
|
+
function Ye(t) {
|
|
289
|
+
var d = t.prototype;
|
|
290
|
+
return !!(d && d.isReactComponent);
|
|
291
291
|
}
|
|
292
|
-
function
|
|
293
|
-
if (
|
|
292
|
+
function Y(t, d, f) {
|
|
293
|
+
if (t == null)
|
|
294
294
|
return "";
|
|
295
|
-
if (typeof
|
|
296
|
-
return
|
|
297
|
-
if (typeof
|
|
298
|
-
return
|
|
299
|
-
switch (
|
|
300
|
-
case f:
|
|
301
|
-
return le("Suspense");
|
|
295
|
+
if (typeof t == "function")
|
|
296
|
+
return Be(t, Ye(t));
|
|
297
|
+
if (typeof t == "string")
|
|
298
|
+
return we(t);
|
|
299
|
+
switch (t) {
|
|
302
300
|
case p:
|
|
303
|
-
return
|
|
301
|
+
return we("Suspense");
|
|
302
|
+
case h:
|
|
303
|
+
return we("SuspenseList");
|
|
304
304
|
}
|
|
305
|
-
if (typeof
|
|
306
|
-
switch (
|
|
307
|
-
case
|
|
308
|
-
return
|
|
309
|
-
case
|
|
310
|
-
return
|
|
305
|
+
if (typeof t == "object")
|
|
306
|
+
switch (t.$$typeof) {
|
|
307
|
+
case c:
|
|
308
|
+
return Ze(t.render);
|
|
309
|
+
case m:
|
|
310
|
+
return Y(t.type, d, f);
|
|
311
311
|
case b: {
|
|
312
|
-
var
|
|
312
|
+
var w = t, D = w._payload, q = w._init;
|
|
313
313
|
try {
|
|
314
|
-
return
|
|
314
|
+
return Y(q(D), d, f);
|
|
315
315
|
} catch {
|
|
316
316
|
}
|
|
317
317
|
}
|
|
318
318
|
}
|
|
319
319
|
return "";
|
|
320
320
|
}
|
|
321
|
-
var
|
|
322
|
-
function
|
|
323
|
-
if (
|
|
324
|
-
var
|
|
325
|
-
|
|
321
|
+
var K = Object.prototype.hasOwnProperty, de = {}, ct = C.ReactDebugCurrentFrame;
|
|
322
|
+
function Fe(t) {
|
|
323
|
+
if (t) {
|
|
324
|
+
var d = t._owner, f = Y(t.type, t._source, d ? d.type : null);
|
|
325
|
+
ct.setExtraStackFrame(f);
|
|
326
326
|
} else
|
|
327
|
-
|
|
327
|
+
ct.setExtraStackFrame(null);
|
|
328
328
|
}
|
|
329
|
-
function
|
|
329
|
+
function Jt(t, d, f, w, D) {
|
|
330
330
|
{
|
|
331
|
-
var
|
|
332
|
-
for (var
|
|
333
|
-
if (
|
|
334
|
-
var
|
|
331
|
+
var q = Function.call.bind(K);
|
|
332
|
+
for (var R in t)
|
|
333
|
+
if (q(t, R)) {
|
|
334
|
+
var k = void 0;
|
|
335
335
|
try {
|
|
336
|
-
if (typeof
|
|
337
|
-
var
|
|
338
|
-
throw
|
|
336
|
+
if (typeof t[R] != "function") {
|
|
337
|
+
var te = Error((w || "React class") + ": " + f + " type `" + R + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof t[R] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
338
|
+
throw te.name = "Invariant Violation", te;
|
|
339
339
|
}
|
|
340
|
-
|
|
341
|
-
} catch (
|
|
342
|
-
|
|
340
|
+
k = t[R](d, R, w, f, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
341
|
+
} catch (H) {
|
|
342
|
+
k = H;
|
|
343
343
|
}
|
|
344
|
-
|
|
344
|
+
k && !(k instanceof Error) && (Fe(D), _("%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).", w || "React class", f, R, typeof k), Fe(null)), k instanceof Error && !(k.message in de) && (de[k.message] = !0, Fe(D), _("Failed %s type: %s", f, k.message), Fe(null));
|
|
345
345
|
}
|
|
346
346
|
}
|
|
347
347
|
}
|
|
348
|
-
var
|
|
349
|
-
function
|
|
350
|
-
return
|
|
348
|
+
var Xt = Array.isArray;
|
|
349
|
+
function Ke(t) {
|
|
350
|
+
return Xt(t);
|
|
351
351
|
}
|
|
352
|
-
function
|
|
352
|
+
function Qt(t) {
|
|
353
353
|
{
|
|
354
|
-
var
|
|
355
|
-
return
|
|
354
|
+
var d = typeof Symbol == "function" && Symbol.toStringTag, f = d && t[Symbol.toStringTag] || t.constructor.name || "Object";
|
|
355
|
+
return f;
|
|
356
356
|
}
|
|
357
357
|
}
|
|
358
|
-
function
|
|
358
|
+
function ea(t) {
|
|
359
359
|
try {
|
|
360
|
-
return
|
|
360
|
+
return dt(t), !1;
|
|
361
361
|
} catch {
|
|
362
362
|
return !0;
|
|
363
363
|
}
|
|
364
364
|
}
|
|
365
|
-
function
|
|
366
|
-
return "" +
|
|
365
|
+
function dt(t) {
|
|
366
|
+
return "" + t;
|
|
367
367
|
}
|
|
368
|
-
function
|
|
369
|
-
if (
|
|
370
|
-
return
|
|
368
|
+
function ut(t) {
|
|
369
|
+
if (ea(t))
|
|
370
|
+
return _("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Qt(t)), dt(t);
|
|
371
371
|
}
|
|
372
|
-
var
|
|
372
|
+
var _t = C.ReactCurrentOwner, ta = {
|
|
373
373
|
key: !0,
|
|
374
374
|
ref: !0,
|
|
375
375
|
__self: !0,
|
|
376
376
|
__source: !0
|
|
377
|
-
},
|
|
378
|
-
function
|
|
379
|
-
if (
|
|
380
|
-
var
|
|
381
|
-
if (
|
|
377
|
+
}, pt, ft;
|
|
378
|
+
function aa(t) {
|
|
379
|
+
if (K.call(t, "ref")) {
|
|
380
|
+
var d = Object.getOwnPropertyDescriptor(t, "ref").get;
|
|
381
|
+
if (d && d.isReactWarning)
|
|
382
382
|
return !1;
|
|
383
383
|
}
|
|
384
|
-
return
|
|
384
|
+
return t.ref !== void 0;
|
|
385
385
|
}
|
|
386
|
-
function
|
|
387
|
-
if (
|
|
388
|
-
var
|
|
389
|
-
if (
|
|
386
|
+
function ra(t) {
|
|
387
|
+
if (K.call(t, "key")) {
|
|
388
|
+
var d = Object.getOwnPropertyDescriptor(t, "key").get;
|
|
389
|
+
if (d && d.isReactWarning)
|
|
390
390
|
return !1;
|
|
391
391
|
}
|
|
392
|
-
return
|
|
392
|
+
return t.key !== void 0;
|
|
393
393
|
}
|
|
394
|
-
function
|
|
395
|
-
typeof
|
|
394
|
+
function sa(t, d) {
|
|
395
|
+
typeof t.ref == "string" && _t.current;
|
|
396
396
|
}
|
|
397
|
-
function
|
|
397
|
+
function na(t, d) {
|
|
398
398
|
{
|
|
399
|
-
var
|
|
400
|
-
|
|
399
|
+
var f = function() {
|
|
400
|
+
pt || (pt = !0, _("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", d));
|
|
401
401
|
};
|
|
402
|
-
|
|
403
|
-
get:
|
|
402
|
+
f.isReactWarning = !0, Object.defineProperty(t, "key", {
|
|
403
|
+
get: f,
|
|
404
404
|
configurable: !0
|
|
405
405
|
});
|
|
406
406
|
}
|
|
407
407
|
}
|
|
408
|
-
function
|
|
408
|
+
function oa(t, d) {
|
|
409
409
|
{
|
|
410
|
-
var
|
|
411
|
-
|
|
410
|
+
var f = function() {
|
|
411
|
+
ft || (ft = !0, _("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", d));
|
|
412
412
|
};
|
|
413
|
-
|
|
414
|
-
get:
|
|
413
|
+
f.isReactWarning = !0, Object.defineProperty(t, "ref", {
|
|
414
|
+
get: f,
|
|
415
415
|
configurable: !0
|
|
416
416
|
});
|
|
417
417
|
}
|
|
418
418
|
}
|
|
419
|
-
var
|
|
420
|
-
var
|
|
419
|
+
var ia = function(t, d, f, w, D, q, R) {
|
|
420
|
+
var k = {
|
|
421
421
|
// This tag allows us to uniquely identify this as a React Element
|
|
422
422
|
$$typeof: r,
|
|
423
423
|
// Built-in properties that belong on the element
|
|
424
|
-
type:
|
|
425
|
-
key:
|
|
426
|
-
ref:
|
|
427
|
-
props:
|
|
424
|
+
type: t,
|
|
425
|
+
key: d,
|
|
426
|
+
ref: f,
|
|
427
|
+
props: R,
|
|
428
428
|
// Record the component responsible for creating this element.
|
|
429
|
-
_owner:
|
|
429
|
+
_owner: q
|
|
430
430
|
};
|
|
431
|
-
return
|
|
431
|
+
return k._store = {}, Object.defineProperty(k._store, "validated", {
|
|
432
432
|
configurable: !1,
|
|
433
433
|
enumerable: !1,
|
|
434
434
|
writable: !0,
|
|
435
435
|
value: !1
|
|
436
|
-
}), Object.defineProperty(
|
|
436
|
+
}), Object.defineProperty(k, "_self", {
|
|
437
437
|
configurable: !1,
|
|
438
438
|
enumerable: !1,
|
|
439
439
|
writable: !1,
|
|
440
|
-
value:
|
|
441
|
-
}), Object.defineProperty(
|
|
440
|
+
value: w
|
|
441
|
+
}), Object.defineProperty(k, "_source", {
|
|
442
442
|
configurable: !1,
|
|
443
443
|
enumerable: !1,
|
|
444
444
|
writable: !1,
|
|
445
|
-
value:
|
|
446
|
-
}), Object.freeze && (Object.freeze(
|
|
445
|
+
value: D
|
|
446
|
+
}), Object.freeze && (Object.freeze(k.props), Object.freeze(k)), k;
|
|
447
447
|
};
|
|
448
|
-
function
|
|
448
|
+
function la(t, d, f, w, D) {
|
|
449
449
|
{
|
|
450
|
-
var
|
|
451
|
-
|
|
452
|
-
for (
|
|
453
|
-
|
|
454
|
-
if (
|
|
455
|
-
var
|
|
456
|
-
for (
|
|
457
|
-
|
|
450
|
+
var q, R = {}, k = null, te = null;
|
|
451
|
+
f !== void 0 && (ut(f), k = "" + f), ra(d) && (ut(d.key), k = "" + d.key), aa(d) && (te = d.ref, sa(d, D));
|
|
452
|
+
for (q in d)
|
|
453
|
+
K.call(d, q) && !ta.hasOwnProperty(q) && (R[q] = d[q]);
|
|
454
|
+
if (t && t.defaultProps) {
|
|
455
|
+
var H = t.defaultProps;
|
|
456
|
+
for (q in H)
|
|
457
|
+
R[q] === void 0 && (R[q] = H[q]);
|
|
458
458
|
}
|
|
459
|
-
if (
|
|
460
|
-
var
|
|
461
|
-
|
|
459
|
+
if (k || te) {
|
|
460
|
+
var V = typeof t == "function" ? t.displayName || t.name || "Unknown" : t;
|
|
461
|
+
k && na(R, V), te && oa(R, V);
|
|
462
462
|
}
|
|
463
|
-
return
|
|
463
|
+
return ia(t, k, te, D, w, _t.current, R);
|
|
464
464
|
}
|
|
465
465
|
}
|
|
466
|
-
var
|
|
467
|
-
function
|
|
468
|
-
if (
|
|
469
|
-
var
|
|
470
|
-
|
|
466
|
+
var Je = C.ReactCurrentOwner, ht = C.ReactDebugCurrentFrame;
|
|
467
|
+
function $e(t) {
|
|
468
|
+
if (t) {
|
|
469
|
+
var d = t._owner, f = Y(t.type, t._source, d ? d.type : null);
|
|
470
|
+
ht.setExtraStackFrame(f);
|
|
471
471
|
} else
|
|
472
|
-
|
|
472
|
+
ht.setExtraStackFrame(null);
|
|
473
473
|
}
|
|
474
|
-
var
|
|
475
|
-
|
|
476
|
-
function
|
|
477
|
-
return typeof
|
|
474
|
+
var Xe;
|
|
475
|
+
Xe = !1;
|
|
476
|
+
function Qe(t) {
|
|
477
|
+
return typeof t == "object" && t !== null && t.$$typeof === r;
|
|
478
478
|
}
|
|
479
|
-
function
|
|
479
|
+
function gt() {
|
|
480
480
|
{
|
|
481
|
-
if (
|
|
482
|
-
var
|
|
483
|
-
if (
|
|
481
|
+
if (Je.current) {
|
|
482
|
+
var t = v(Je.current.type);
|
|
483
|
+
if (t)
|
|
484
484
|
return `
|
|
485
485
|
|
|
486
|
-
Check the render method of \`` +
|
|
486
|
+
Check the render method of \`` + t + "`.";
|
|
487
487
|
}
|
|
488
488
|
return "";
|
|
489
489
|
}
|
|
490
490
|
}
|
|
491
|
-
function
|
|
491
|
+
function ca(t) {
|
|
492
492
|
return "";
|
|
493
493
|
}
|
|
494
|
-
var
|
|
495
|
-
function
|
|
494
|
+
var bt = {};
|
|
495
|
+
function da(t) {
|
|
496
496
|
{
|
|
497
|
-
var
|
|
498
|
-
if (!
|
|
499
|
-
var
|
|
500
|
-
|
|
497
|
+
var d = gt();
|
|
498
|
+
if (!d) {
|
|
499
|
+
var f = typeof t == "string" ? t : t.displayName || t.name;
|
|
500
|
+
f && (d = `
|
|
501
501
|
|
|
502
|
-
Check the top-level render call using <` +
|
|
502
|
+
Check the top-level render call using <` + f + ">.");
|
|
503
503
|
}
|
|
504
|
-
return
|
|
504
|
+
return d;
|
|
505
505
|
}
|
|
506
506
|
}
|
|
507
|
-
function
|
|
507
|
+
function mt(t, d) {
|
|
508
508
|
{
|
|
509
|
-
if (!
|
|
509
|
+
if (!t._store || t._store.validated || t.key != null)
|
|
510
510
|
return;
|
|
511
|
-
|
|
512
|
-
var
|
|
513
|
-
if (
|
|
511
|
+
t._store.validated = !0;
|
|
512
|
+
var f = da(d);
|
|
513
|
+
if (bt[f])
|
|
514
514
|
return;
|
|
515
|
-
|
|
516
|
-
var
|
|
517
|
-
|
|
515
|
+
bt[f] = !0;
|
|
516
|
+
var w = "";
|
|
517
|
+
t && t._owner && t._owner !== Je.current && (w = " It was passed a child from " + v(t._owner.type) + "."), $e(t), _('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', f, w), $e(null);
|
|
518
518
|
}
|
|
519
519
|
}
|
|
520
|
-
function
|
|
520
|
+
function yt(t, d) {
|
|
521
521
|
{
|
|
522
|
-
if (typeof
|
|
522
|
+
if (typeof t != "object")
|
|
523
523
|
return;
|
|
524
|
-
if (
|
|
525
|
-
for (var
|
|
526
|
-
var
|
|
527
|
-
|
|
524
|
+
if (Ke(t))
|
|
525
|
+
for (var f = 0; f < t.length; f++) {
|
|
526
|
+
var w = t[f];
|
|
527
|
+
Qe(w) && mt(w, d);
|
|
528
528
|
}
|
|
529
|
-
else if (
|
|
530
|
-
|
|
531
|
-
else if (
|
|
532
|
-
var
|
|
533
|
-
if (typeof
|
|
534
|
-
for (var
|
|
535
|
-
|
|
529
|
+
else if (Qe(t))
|
|
530
|
+
t._store && (t._store.validated = !0);
|
|
531
|
+
else if (t) {
|
|
532
|
+
var D = x(t);
|
|
533
|
+
if (typeof D == "function" && D !== t.entries)
|
|
534
|
+
for (var q = D.call(t), R; !(R = q.next()).done; )
|
|
535
|
+
Qe(R.value) && mt(R.value, d);
|
|
536
536
|
}
|
|
537
537
|
}
|
|
538
538
|
}
|
|
539
|
-
function
|
|
539
|
+
function ua(t) {
|
|
540
540
|
{
|
|
541
|
-
var
|
|
542
|
-
if (
|
|
541
|
+
var d = t.type;
|
|
542
|
+
if (d == null || typeof d == "string")
|
|
543
543
|
return;
|
|
544
|
-
var
|
|
545
|
-
if (typeof
|
|
546
|
-
|
|
547
|
-
else if (typeof
|
|
544
|
+
var f;
|
|
545
|
+
if (typeof d == "function")
|
|
546
|
+
f = d.propTypes;
|
|
547
|
+
else if (typeof d == "object" && (d.$$typeof === c || // Note: Memo only checks outer props here.
|
|
548
548
|
// Inner props are checked in the reconciler.
|
|
549
|
-
|
|
550
|
-
|
|
549
|
+
d.$$typeof === m))
|
|
550
|
+
f = d.propTypes;
|
|
551
551
|
else
|
|
552
552
|
return;
|
|
553
|
-
if (
|
|
554
|
-
var
|
|
555
|
-
|
|
556
|
-
} else if (
|
|
557
|
-
|
|
558
|
-
var
|
|
559
|
-
|
|
553
|
+
if (f) {
|
|
554
|
+
var w = v(d);
|
|
555
|
+
Jt(f, t.props, "prop", w, t);
|
|
556
|
+
} else if (d.PropTypes !== void 0 && !Xe) {
|
|
557
|
+
Xe = !0;
|
|
558
|
+
var D = v(d);
|
|
559
|
+
_("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", D || "Unknown");
|
|
560
560
|
}
|
|
561
|
-
typeof
|
|
561
|
+
typeof d.getDefaultProps == "function" && !d.getDefaultProps.isReactClassApproved && _("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
562
562
|
}
|
|
563
563
|
}
|
|
564
|
-
function
|
|
564
|
+
function _a(t) {
|
|
565
565
|
{
|
|
566
|
-
for (var
|
|
567
|
-
var
|
|
568
|
-
if (
|
|
569
|
-
|
|
566
|
+
for (var d = Object.keys(t.props), f = 0; f < d.length; f++) {
|
|
567
|
+
var w = d[f];
|
|
568
|
+
if (w !== "children" && w !== "key") {
|
|
569
|
+
$e(t), _("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", w), $e(null);
|
|
570
570
|
break;
|
|
571
571
|
}
|
|
572
572
|
}
|
|
573
|
-
|
|
573
|
+
t.ref !== null && ($e(t), _("Invalid attribute `ref` supplied to `React.Fragment`."), $e(null));
|
|
574
574
|
}
|
|
575
575
|
}
|
|
576
|
-
var
|
|
577
|
-
function
|
|
576
|
+
var vt = {};
|
|
577
|
+
function xt(t, d, f, w, D, q) {
|
|
578
578
|
{
|
|
579
|
-
var
|
|
580
|
-
if (!
|
|
581
|
-
var
|
|
582
|
-
(
|
|
583
|
-
var
|
|
584
|
-
|
|
585
|
-
var
|
|
586
|
-
|
|
579
|
+
var R = B(t);
|
|
580
|
+
if (!R) {
|
|
581
|
+
var k = "";
|
|
582
|
+
(t === void 0 || typeof t == "object" && t !== null && Object.keys(t).length === 0) && (k += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
583
|
+
var te = ca();
|
|
584
|
+
te ? k += te : k += gt();
|
|
585
|
+
var H;
|
|
586
|
+
t === null ? H = "null" : Ke(t) ? H = "array" : t !== void 0 && t.$$typeof === r ? (H = "<" + (v(t.type) || "Unknown") + " />", k = " Did you accidentally export a JSX literal instead of a component?") : H = typeof t, _("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", H, k);
|
|
587
587
|
}
|
|
588
|
-
var
|
|
589
|
-
if (
|
|
590
|
-
return
|
|
591
|
-
if (
|
|
592
|
-
var
|
|
593
|
-
if (
|
|
594
|
-
if (
|
|
595
|
-
if (
|
|
596
|
-
for (var
|
|
597
|
-
|
|
598
|
-
Object.freeze && Object.freeze(
|
|
588
|
+
var V = la(t, d, f, D, q);
|
|
589
|
+
if (V == null)
|
|
590
|
+
return V;
|
|
591
|
+
if (R) {
|
|
592
|
+
var le = d.children;
|
|
593
|
+
if (le !== void 0)
|
|
594
|
+
if (w)
|
|
595
|
+
if (Ke(le)) {
|
|
596
|
+
for (var Re = 0; Re < le.length; Re++)
|
|
597
|
+
yt(le[Re], t);
|
|
598
|
+
Object.freeze && Object.freeze(le);
|
|
599
599
|
} else
|
|
600
|
-
|
|
600
|
+
_("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
601
601
|
else
|
|
602
|
-
|
|
602
|
+
yt(le, t);
|
|
603
603
|
}
|
|
604
|
-
if (
|
|
605
|
-
var
|
|
606
|
-
return
|
|
607
|
-
}),
|
|
608
|
-
if (!
|
|
609
|
-
var
|
|
610
|
-
|
|
604
|
+
if (K.call(d, "key")) {
|
|
605
|
+
var Se = v(t), re = Object.keys(d).filter(function(ma) {
|
|
606
|
+
return ma !== "key";
|
|
607
|
+
}), et = re.length > 0 ? "{key: someKey, " + re.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
608
|
+
if (!vt[Se + et]) {
|
|
609
|
+
var ba = re.length > 0 ? "{" + re.join(": ..., ") + ": ...}" : "{}";
|
|
610
|
+
_(`A props object containing a "key" prop is being spread into JSX:
|
|
611
611
|
let props = %s;
|
|
612
612
|
<%s {...props} />
|
|
613
613
|
React keys must be passed directly to JSX without using spread:
|
|
614
614
|
let props = %s;
|
|
615
|
-
<%s key={someKey} {...props} />`,
|
|
615
|
+
<%s key={someKey} {...props} />`, et, Se, ba, Se), vt[Se + et] = !0;
|
|
616
616
|
}
|
|
617
617
|
}
|
|
618
|
-
return
|
|
618
|
+
return t === s ? _a(V) : ua(V), V;
|
|
619
619
|
}
|
|
620
620
|
}
|
|
621
|
-
function
|
|
622
|
-
return
|
|
621
|
+
function pa(t, d, f) {
|
|
622
|
+
return xt(t, d, f, !0);
|
|
623
623
|
}
|
|
624
|
-
function
|
|
625
|
-
return
|
|
624
|
+
function fa(t, d, f) {
|
|
625
|
+
return xt(t, d, f, !1);
|
|
626
626
|
}
|
|
627
|
-
var
|
|
628
|
-
|
|
629
|
-
}()),
|
|
627
|
+
var ha = fa, ga = pa;
|
|
628
|
+
De.Fragment = s, De.jsx = ha, De.jsxs = ga;
|
|
629
|
+
}()), De;
|
|
630
|
+
}
|
|
631
|
+
var St;
|
|
632
|
+
function La() {
|
|
633
|
+
return St || (St = 1, process.env.NODE_ENV === "production" ? ze.exports = wa() : ze.exports = Sa()), ze.exports;
|
|
630
634
|
}
|
|
631
|
-
var
|
|
632
|
-
|
|
633
|
-
|
|
635
|
+
var n = La();
|
|
636
|
+
const Ea = (e) => e.as === "a", ka = (e) => e.as === void 0 || e.as === "button", Me = (e) => e.displayAs === void 0 || e.displayAs === "button", tt = (e) => e.displayAs === "link", ja = "_button_6bymk_1", $a = "_link_6bymk_17", Ra = "_disabled_6bymk_22", Ma = "_loading_6bymk_22", Ia = "_neutral_6bymk_50", Ta = "_accent_6bymk_54", Aa = "_positive_6bymk_58", Na = "_negative_6bymk_62", Da = "_contrast_6bymk_66", Oa = "_special_6bymk_70", Pa = "_primary_6bymk_74", qa = "_secondary_6bymk_75", Ua = "_tertiary_6bymk_76", Ba = "_spaceBetween_6bymk_116", Fa = "_rightGroup_6bymk_116", za = "_label_6bymk_136", Wa = "_iconOnly_6bymk_155", Ga = "_stretched_6bymk_171", Ha = "_icon_6bymk_155", Va = "_postfix_6bymk_176", Za = "_underline_6bymk_202", Ya = "_warning_6bymk_1082", Ka = "_withSubcaption_6bymk_1268", Ja = "_subcaption_6bymk_1273", Xa = "_loader_6bymk_1279", Qa = "_spin_6bymk_1", er = "_l_6bymk_17", tr = "_m_6bymk_1318", ar = "_s_6bymk_70", rr = "_xs_6bymk_1364", sr = "_iconRight_6bymk_1410", W = {
|
|
637
|
+
button: ja,
|
|
638
|
+
link: $a,
|
|
639
|
+
disabled: Ra,
|
|
640
|
+
loading: Ma,
|
|
641
|
+
neutral: Ia,
|
|
642
|
+
accent: Ta,
|
|
643
|
+
positive: Aa,
|
|
644
|
+
negative: Na,
|
|
645
|
+
contrast: Da,
|
|
646
|
+
special: Oa,
|
|
647
|
+
primary: Pa,
|
|
648
|
+
secondary: qa,
|
|
649
|
+
tertiary: Ua,
|
|
650
|
+
spaceBetween: Ba,
|
|
651
|
+
rightGroup: Fa,
|
|
652
|
+
label: za,
|
|
653
|
+
iconOnly: Wa,
|
|
654
|
+
stretched: Ga,
|
|
655
|
+
icon: Ha,
|
|
656
|
+
postfix: Va,
|
|
657
|
+
underline: Za,
|
|
658
|
+
warning: Ya,
|
|
659
|
+
withSubcaption: Ka,
|
|
660
|
+
subcaption: Ja,
|
|
661
|
+
loader: Xa,
|
|
662
|
+
spin: Qa,
|
|
663
|
+
l: er,
|
|
664
|
+
m: tr,
|
|
665
|
+
s: ar,
|
|
666
|
+
xs: rr,
|
|
667
|
+
iconRight: sr
|
|
668
|
+
}, nr = /* @__PURE__ */ new Set([
|
|
669
|
+
"mode",
|
|
670
|
+
"size",
|
|
671
|
+
"buttonStyle",
|
|
672
|
+
"loading",
|
|
673
|
+
"disabled",
|
|
674
|
+
"displayAs",
|
|
675
|
+
"stretched",
|
|
676
|
+
"iconRight",
|
|
677
|
+
"className",
|
|
678
|
+
"children",
|
|
679
|
+
"subcaption",
|
|
680
|
+
"postfix",
|
|
681
|
+
"iconLeft",
|
|
682
|
+
"as",
|
|
683
|
+
"showUnderline",
|
|
684
|
+
"isExternal"
|
|
685
|
+
]), Lt = (e) => {
|
|
686
|
+
const r = {};
|
|
687
|
+
for (const a in e)
|
|
688
|
+
nr.has(a) || (r[a] = e[a]);
|
|
689
|
+
return r;
|
|
690
|
+
}, or = {
|
|
691
|
+
l: "typography-subtitle-1-semibold",
|
|
692
|
+
m: "typography-label-2-regular",
|
|
693
|
+
s: "typography-label-3-regular"
|
|
694
|
+
};
|
|
695
|
+
function ir(e) {
|
|
696
|
+
return or[e] || "typography-label-2-regular";
|
|
634
697
|
}
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
label:
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
m: Va,
|
|
669
|
-
s: Ha,
|
|
670
|
-
xs: qa
|
|
671
|
-
}, bt = ({
|
|
672
|
-
isLoading: t,
|
|
673
|
-
showBadge: r,
|
|
674
|
-
badgeValue: a,
|
|
675
|
-
badgeSize: s,
|
|
676
|
-
icon: i,
|
|
677
|
-
children: n,
|
|
678
|
-
postfix: c,
|
|
679
|
-
showSubcaption: _,
|
|
680
|
-
subcaption: d,
|
|
681
|
-
size: f
|
|
698
|
+
const pe = {
|
|
699
|
+
"typography-title-1-semibold": "_typography-title-1-semibold_1lyxn_1",
|
|
700
|
+
"typography-title-2-semibold": "_typography-title-2-semibold_1lyxn_10",
|
|
701
|
+
"typography-title-3-semibold": "_typography-title-3-semibold_1lyxn_19",
|
|
702
|
+
"typography-title-4-semibold": "_typography-title-4-semibold_1lyxn_28",
|
|
703
|
+
"typography-title-5-semibold": "_typography-title-5-semibold_1lyxn_37",
|
|
704
|
+
"typography-subtitle-1-semibold": "_typography-subtitle-1-semibold_1lyxn_45",
|
|
705
|
+
"typography-subtitle-2-semibold": "_typography-subtitle-2-semibold_1lyxn_53",
|
|
706
|
+
"typography-subtitle-3-semibold": "_typography-subtitle-3-semibold_1lyxn_62",
|
|
707
|
+
"typography-subtitle-4-semibold": "_typography-subtitle-4-semibold_1lyxn_71",
|
|
708
|
+
"typography-label-1-medium": "_typography-label-1-medium_1lyxn_80",
|
|
709
|
+
"typography-label-2-medium": "_typography-label-2-medium_1lyxn_89",
|
|
710
|
+
"typography-label-3-medium": "_typography-label-3-medium_1lyxn_97",
|
|
711
|
+
"typography-label-4-medium": "_typography-label-4-medium_1lyxn_106",
|
|
712
|
+
"typography-label-5-medium": "_typography-label-5-medium_1lyxn_115",
|
|
713
|
+
"typography-label-1-regular": "_typography-label-1-regular_1lyxn_124",
|
|
714
|
+
"typography-label-2-regular": "_typography-label-2-regular_1lyxn_133",
|
|
715
|
+
"typography-label-3-regular": "_typography-label-3-regular_1lyxn_141",
|
|
716
|
+
"typography-label-4-regular": "_typography-label-4-regular_1lyxn_150",
|
|
717
|
+
"typography-label-5-regular": "_typography-label-5-regular_1lyxn_159",
|
|
718
|
+
"typography-paragraph-1-regular": "_typography-paragraph-1-regular_1lyxn_168",
|
|
719
|
+
"typography-paragraph-2-regular": "_typography-paragraph-2-regular_1lyxn_176",
|
|
720
|
+
"typography-paragraph-3-regular": "_typography-paragraph-3-regular_1lyxn_185",
|
|
721
|
+
"typography-paragraph-4-regular": "_typography-paragraph-4-regular_1lyxn_194"
|
|
722
|
+
}, Et = ({
|
|
723
|
+
isLoading: e,
|
|
724
|
+
iconRight: r,
|
|
725
|
+
iconLeft: a,
|
|
726
|
+
children: s,
|
|
727
|
+
postfix: i,
|
|
728
|
+
subcaption: o,
|
|
729
|
+
size: l,
|
|
730
|
+
isAsButton: u
|
|
682
731
|
}) => {
|
|
683
|
-
if (
|
|
684
|
-
return /* @__PURE__ */
|
|
685
|
-
const
|
|
686
|
-
return /* @__PURE__ */
|
|
687
|
-
|
|
688
|
-
"span",
|
|
689
|
-
{
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
),
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
/* @__PURE__ */ o.jsx("span", { "data-testid": "button-label", className: P.label, children: n }),
|
|
701
|
-
/* @__PURE__ */ o.jsx("span", { "data-testid": "button-subcaption", className: P.subcaption, children: d })
|
|
702
|
-
] }) : n ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
703
|
-
/* @__PURE__ */ o.jsx("span", { "data-testid": "button-label", className: P.label, children: n }),
|
|
704
|
-
/* @__PURE__ */ o.jsxs("div", { "data-testid": "button-right-group", className: P.rightGroup, children: [
|
|
705
|
-
i && /* @__PURE__ */ o.jsx("span", { "data-testid": "button-icon", className: P.icon, children: i }),
|
|
706
|
-
c && /* @__PURE__ */ o.jsx("span", { "data-testid": "button-postfix", className: P.postfix, children: c })
|
|
732
|
+
if (e && u)
|
|
733
|
+
return /* @__PURE__ */ n.jsx("span", { className: W.loader, "data-testid": "button-loader", "aria-hidden": "true" });
|
|
734
|
+
const c = r && u || r && !u && l, p = o && u && l !== "s" && l !== "xs";
|
|
735
|
+
return /* @__PURE__ */ n.jsxs(Oe, { children: [
|
|
736
|
+
p && /* @__PURE__ */ n.jsxs(Oe, { children: [
|
|
737
|
+
/* @__PURE__ */ n.jsx("span", { "data-testid": "button-label", className: W.label, children: s }),
|
|
738
|
+
/* @__PURE__ */ n.jsx("span", { "data-testid": "button-subcaption", className: W.subcaption, children: o })
|
|
739
|
+
] }),
|
|
740
|
+
!p && s && /* @__PURE__ */ n.jsxs(Oe, { children: [
|
|
741
|
+
/* @__PURE__ */ n.jsxs("span", { "data-testid": "button-label", className: W.label, children: [
|
|
742
|
+
!u && a && /* @__PURE__ */ n.jsx("span", { "data-testid": "button-left-icon", className: W.icon, children: a }),
|
|
743
|
+
s,
|
|
744
|
+
!u && r && /* @__PURE__ */ n.jsx("span", { "data-testid": "button-icon", className: I(W.icon, W.iconRight), children: r })
|
|
745
|
+
] }),
|
|
746
|
+
u && /* @__PURE__ */ n.jsxs("div", { "data-testid": "button-right-group", className: W.rightGroup, children: [
|
|
747
|
+
c && /* @__PURE__ */ n.jsx("span", { "data-testid": "button-icon", className: W.icon, children: r }),
|
|
748
|
+
i && u && /* @__PURE__ */ n.jsx("span", { "data-testid": "button-postfix", className: W.postfix, children: i })
|
|
707
749
|
] })
|
|
708
|
-
] })
|
|
750
|
+
] }),
|
|
751
|
+
!p && !s && /* @__PURE__ */ n.jsx("span", { "data-testid": "button-icon", className: W.icon, children: r })
|
|
709
752
|
] });
|
|
710
|
-
},
|
|
753
|
+
}, si = X((e, r) => {
|
|
711
754
|
const {
|
|
712
755
|
mode: a = "primary",
|
|
713
756
|
size: s = "m",
|
|
714
|
-
buttonStyle: i = "neutral",
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
children: C
|
|
728
|
-
} = t, g = c, $ = n, k = !g && !$, D = !!x && !C, T = V(
|
|
729
|
-
P.button,
|
|
730
|
-
P[s],
|
|
731
|
-
P[a],
|
|
732
|
-
P[i],
|
|
757
|
+
buttonStyle: i = Me(e) ? "neutral" : "accent",
|
|
758
|
+
disabled: o = !1,
|
|
759
|
+
displayAs: l = "button",
|
|
760
|
+
iconRight: u,
|
|
761
|
+
className: c,
|
|
762
|
+
children: p,
|
|
763
|
+
tabIndex: h
|
|
764
|
+
} = e, m = Me(e) ? e.subcaption : void 0, b = Me(e) ? e.postfix : void 0, g = Me(e) ? e.stretched : void 0, y = !(tt(e) && e.size === void 0), S = tt(e) && y ? e.iconLeft : void 0, x = !!(l === "button" && "loading" in e && e.loading), C = Me(e) ? o : o || x, _ = !C && !x, L = y ? u : void 0, E = !!(L && !p), A = typeof g == "object" ? g.justify === "space-between" : void 0, j = tt(e) ? ir(e.size ?? "m") : void 0, T = j ? pe[j] : void 0, O = C || x ? -1 : h, U = I(
|
|
765
|
+
W.button,
|
|
766
|
+
W[s],
|
|
767
|
+
W[a],
|
|
768
|
+
W[i],
|
|
769
|
+
T,
|
|
733
770
|
{
|
|
734
|
-
[
|
|
735
|
-
[
|
|
736
|
-
[
|
|
737
|
-
[
|
|
738
|
-
[
|
|
739
|
-
[
|
|
771
|
+
[W.disabled]: C,
|
|
772
|
+
[W.loading]: l === "button" && "loading" in e && e.loading,
|
|
773
|
+
[W.stretched]: g,
|
|
774
|
+
[W.spaceBetween]: A,
|
|
775
|
+
[W.withSubcaption]: m && s !== "s" && s !== "xs",
|
|
776
|
+
[W.iconOnly]: E,
|
|
777
|
+
[W.link]: l === "link",
|
|
778
|
+
[W.underline]: l === "link" && "showUnderline" in e && e.showUnderline
|
|
740
779
|
},
|
|
741
|
-
|
|
742
|
-
),
|
|
743
|
-
isLoading:
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
subcaption: h,
|
|
752
|
-
size: s
|
|
780
|
+
c
|
|
781
|
+
), B = {
|
|
782
|
+
isLoading: x,
|
|
783
|
+
iconRight: L,
|
|
784
|
+
iconLeft: S,
|
|
785
|
+
children: p,
|
|
786
|
+
postfix: b,
|
|
787
|
+
subcaption: m,
|
|
788
|
+
size: s,
|
|
789
|
+
isAsButton: Me(e)
|
|
753
790
|
};
|
|
754
|
-
if (
|
|
755
|
-
const {
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
subcaption: ae,
|
|
768
|
-
stretched: J,
|
|
769
|
-
spaceBetween: re,
|
|
770
|
-
icon: se,
|
|
771
|
-
postfix: de,
|
|
772
|
-
className: ve,
|
|
773
|
-
tabIndex: ie,
|
|
774
|
-
children: ye,
|
|
775
|
-
"data-testid": ue,
|
|
776
|
-
style: le,
|
|
777
|
-
...me
|
|
778
|
-
} = t, _e = (xe) => {
|
|
779
|
-
k && U && U(xe);
|
|
791
|
+
if (Ea(e)) {
|
|
792
|
+
const { href: z, onClick: N, style: v, target: $, rel: P, "data-testid": F, ...G } = e, Q = Lt(G), ne = $ ?? (e.isExternal ? "_blank" : void 0);
|
|
793
|
+
let Z = P;
|
|
794
|
+
if (ne === "_blank") {
|
|
795
|
+
const ee = new Set((P ?? "").split(/\s+/).filter(Boolean));
|
|
796
|
+
ee.add("noopener").add("noreferrer"), Z = Array.from(ee).join(" ");
|
|
797
|
+
}
|
|
798
|
+
const ie = (ee) => {
|
|
799
|
+
if (!_) {
|
|
800
|
+
ee.preventDefault();
|
|
801
|
+
return;
|
|
802
|
+
}
|
|
803
|
+
N == null || N(ee);
|
|
780
804
|
};
|
|
781
|
-
return /* @__PURE__ */
|
|
805
|
+
return /* @__PURE__ */ n.jsx(
|
|
782
806
|
"a",
|
|
783
807
|
{
|
|
784
808
|
ref: r,
|
|
785
|
-
className:
|
|
786
|
-
href:
|
|
787
|
-
tabIndex:
|
|
788
|
-
onClick:
|
|
789
|
-
"data-testid":
|
|
790
|
-
"aria-disabled":
|
|
791
|
-
style:
|
|
792
|
-
|
|
793
|
-
|
|
809
|
+
className: U,
|
|
810
|
+
href: _ ? z : void 0,
|
|
811
|
+
tabIndex: O,
|
|
812
|
+
onClick: ie,
|
|
813
|
+
"data-testid": F,
|
|
814
|
+
"aria-disabled": C || x,
|
|
815
|
+
style: v,
|
|
816
|
+
target: ne,
|
|
817
|
+
rel: Z,
|
|
818
|
+
...Q,
|
|
819
|
+
children: /* @__PURE__ */ n.jsx(Et, { ...B })
|
|
794
820
|
}
|
|
795
821
|
);
|
|
796
822
|
}
|
|
797
|
-
if (
|
|
798
|
-
const {
|
|
799
|
-
|
|
800
|
-
onClick: U,
|
|
801
|
-
mode: q,
|
|
802
|
-
size: z,
|
|
803
|
-
buttonStyle: O,
|
|
804
|
-
loading: m,
|
|
805
|
-
disabled: j,
|
|
806
|
-
showBadge: B,
|
|
807
|
-
badgeSize: G,
|
|
808
|
-
badgeValue: H,
|
|
809
|
-
showSubcaption: Q,
|
|
810
|
-
subcaption: ae,
|
|
811
|
-
stretched: J,
|
|
812
|
-
spaceBetween: re,
|
|
813
|
-
icon: se,
|
|
814
|
-
postfix: de,
|
|
815
|
-
className: ve,
|
|
816
|
-
tabIndex: ie,
|
|
817
|
-
children: ye,
|
|
818
|
-
"data-testid": ue,
|
|
819
|
-
style: le,
|
|
820
|
-
...me
|
|
821
|
-
} = t, _e = (xe) => {
|
|
822
|
-
k && U && U(xe);
|
|
823
|
+
if (ka(e)) {
|
|
824
|
+
const { type: z = "button", onClick: N, style: v, "data-testid": $, ...P } = e, F = Lt(P), G = (Q) => {
|
|
825
|
+
_ && N && N(Q);
|
|
823
826
|
};
|
|
824
|
-
return /* @__PURE__ */
|
|
827
|
+
return /* @__PURE__ */ n.jsx(
|
|
825
828
|
"button",
|
|
826
829
|
{
|
|
827
830
|
ref: r,
|
|
828
|
-
type:
|
|
829
|
-
className:
|
|
830
|
-
disabled:
|
|
831
|
-
tabIndex:
|
|
832
|
-
onClick:
|
|
833
|
-
"data-testid":
|
|
834
|
-
"aria-disabled":
|
|
835
|
-
style:
|
|
836
|
-
...
|
|
837
|
-
children: /* @__PURE__ */
|
|
831
|
+
type: z,
|
|
832
|
+
className: U,
|
|
833
|
+
disabled: C,
|
|
834
|
+
tabIndex: O,
|
|
835
|
+
onClick: G,
|
|
836
|
+
"data-testid": $,
|
|
837
|
+
"aria-disabled": C || x,
|
|
838
|
+
style: v,
|
|
839
|
+
...F,
|
|
840
|
+
children: /* @__PURE__ */ n.jsx(Et, { ...B })
|
|
838
841
|
}
|
|
839
842
|
);
|
|
840
843
|
}
|
|
841
844
|
return null;
|
|
842
845
|
});
|
|
843
|
-
var
|
|
846
|
+
var at = { exports: {} };
|
|
844
847
|
/*!
|
|
845
848
|
Copyright (c) 2018 Jed Watson.
|
|
846
849
|
Licensed under the MIT License (MIT), see
|
|
847
850
|
http://jedwatson.github.io/classnames
|
|
848
851
|
*/
|
|
849
|
-
var
|
|
850
|
-
function
|
|
851
|
-
return
|
|
852
|
+
var kt;
|
|
853
|
+
function lr() {
|
|
854
|
+
return kt || (kt = 1, function(e) {
|
|
852
855
|
(function() {
|
|
853
856
|
var r = {}.hasOwnProperty;
|
|
854
857
|
function a() {
|
|
855
|
-
for (var
|
|
856
|
-
var
|
|
857
|
-
|
|
858
|
+
for (var o = "", l = 0; l < arguments.length; l++) {
|
|
859
|
+
var u = arguments[l];
|
|
860
|
+
u && (o = i(o, s(u)));
|
|
858
861
|
}
|
|
859
|
-
return
|
|
862
|
+
return o;
|
|
860
863
|
}
|
|
861
|
-
function s(
|
|
862
|
-
if (typeof
|
|
863
|
-
return
|
|
864
|
-
if (typeof
|
|
864
|
+
function s(o) {
|
|
865
|
+
if (typeof o == "string" || typeof o == "number")
|
|
866
|
+
return o;
|
|
867
|
+
if (typeof o != "object")
|
|
865
868
|
return "";
|
|
866
|
-
if (Array.isArray(
|
|
867
|
-
return a.apply(null,
|
|
868
|
-
if (
|
|
869
|
-
return
|
|
870
|
-
var
|
|
871
|
-
for (var
|
|
872
|
-
r.call(
|
|
873
|
-
return
|
|
869
|
+
if (Array.isArray(o))
|
|
870
|
+
return a.apply(null, o);
|
|
871
|
+
if (o.toString !== Object.prototype.toString && !o.toString.toString().includes("[native code]"))
|
|
872
|
+
return o.toString();
|
|
873
|
+
var l = "";
|
|
874
|
+
for (var u in o)
|
|
875
|
+
r.call(o, u) && o[u] && (l = i(l, u));
|
|
876
|
+
return l;
|
|
874
877
|
}
|
|
875
|
-
function i(
|
|
876
|
-
return
|
|
878
|
+
function i(o, l) {
|
|
879
|
+
return l ? o ? o + " " + l : o + l : o;
|
|
877
880
|
}
|
|
878
|
-
|
|
881
|
+
e.exports ? (a.default = a, e.exports = a) : window.classNames = a;
|
|
879
882
|
})();
|
|
880
|
-
}(
|
|
883
|
+
}(at)), at.exports;
|
|
881
884
|
}
|
|
882
|
-
var
|
|
883
|
-
const
|
|
884
|
-
avatar:
|
|
885
|
-
clickable:
|
|
886
|
-
icon:
|
|
887
|
-
disabled:
|
|
888
|
-
loading:
|
|
889
|
-
image:
|
|
890
|
-
name:
|
|
885
|
+
var cr = lr();
|
|
886
|
+
const Ce = /* @__PURE__ */ Ca(cr), dr = "_avatar_1kyiq_17", ur = "_clickable_1kyiq_41", _r = "_icon_1kyiq_58", pr = "_disabled_1kyiq_63", fr = "_loading_1kyiq_68", hr = "_image_1kyiq_74", gr = "_name_1kyiq_74", _e = {
|
|
887
|
+
avatar: dr,
|
|
888
|
+
clickable: ur,
|
|
889
|
+
icon: _r,
|
|
890
|
+
disabled: pr,
|
|
891
|
+
loading: fr,
|
|
892
|
+
image: hr,
|
|
893
|
+
name: gr,
|
|
891
894
|
"variant-filled": "_variant-filled_1kyiq_126",
|
|
892
895
|
"color-brand": "_color-brand_1kyiq_131",
|
|
893
896
|
"color-red": "_color-red_1kyiq_135",
|
|
@@ -901,36 +904,12 @@ const Ie = /* @__PURE__ */ ia(Za), Ya = "_avatar_1kyiq_17", Ja = "_clickable_1ky
|
|
|
901
904
|
"color-contrast": "_color-contrast_1kyiq_167",
|
|
902
905
|
"variant-light": "_variant-light_1kyiq_173",
|
|
903
906
|
"variant-outline": "_variant-outline_1kyiq_245"
|
|
904
|
-
},
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
"typography-title-3-semibold": "_typography-title-3-semibold_1lyxn_19",
|
|
908
|
-
"typography-title-4-semibold": "_typography-title-4-semibold_1lyxn_28",
|
|
909
|
-
"typography-title-5-semibold": "_typography-title-5-semibold_1lyxn_37",
|
|
910
|
-
"typography-subtitle-1-semibold": "_typography-subtitle-1-semibold_1lyxn_45",
|
|
911
|
-
"typography-subtitle-2-semibold": "_typography-subtitle-2-semibold_1lyxn_53",
|
|
912
|
-
"typography-subtitle-3-semibold": "_typography-subtitle-3-semibold_1lyxn_62",
|
|
913
|
-
"typography-subtitle-4-semibold": "_typography-subtitle-4-semibold_1lyxn_71",
|
|
914
|
-
"typography-label-1-medium": "_typography-label-1-medium_1lyxn_80",
|
|
915
|
-
"typography-label-2-medium": "_typography-label-2-medium_1lyxn_89",
|
|
916
|
-
"typography-label-3-medium": "_typography-label-3-medium_1lyxn_97",
|
|
917
|
-
"typography-label-4-medium": "_typography-label-4-medium_1lyxn_106",
|
|
918
|
-
"typography-label-5-medium": "_typography-label-5-medium_1lyxn_115",
|
|
919
|
-
"typography-label-1-regular": "_typography-label-1-regular_1lyxn_124",
|
|
920
|
-
"typography-label-2-regular": "_typography-label-2-regular_1lyxn_133",
|
|
921
|
-
"typography-label-3-regular": "_typography-label-3-regular_1lyxn_141",
|
|
922
|
-
"typography-label-4-regular": "_typography-label-4-regular_1lyxn_150",
|
|
923
|
-
"typography-label-5-regular": "_typography-label-5-regular_1lyxn_159",
|
|
924
|
-
"typography-paragraph-1-regular": "_typography-paragraph-1-regular_1lyxn_168",
|
|
925
|
-
"typography-paragraph-2-regular": "_typography-paragraph-2-regular_1lyxn_176",
|
|
926
|
-
"typography-paragraph-3-regular": "_typography-paragraph-3-regular_1lyxn_185",
|
|
927
|
-
"typography-paragraph-4-regular": "_typography-paragraph-4-regular_1lyxn_194"
|
|
928
|
-
}, mt = 99;
|
|
929
|
-
function ar(t) {
|
|
930
|
-
return t < mt ? `+${t}` : `${mt}+`;
|
|
907
|
+
}, jt = 99;
|
|
908
|
+
function br(e) {
|
|
909
|
+
return e < jt ? `+${e}` : `${jt}+`;
|
|
931
910
|
}
|
|
932
|
-
function
|
|
933
|
-
const r = typeof
|
|
911
|
+
function it(e) {
|
|
912
|
+
const r = typeof e == "string" ? e : JSON.stringify(e);
|
|
934
913
|
let a = 5381;
|
|
935
914
|
for (let s = 0; s < r.length; s++) {
|
|
936
915
|
const i = r.charCodeAt(s);
|
|
@@ -938,7 +917,7 @@ function et(t) {
|
|
|
938
917
|
}
|
|
939
918
|
return a >>> 0;
|
|
940
919
|
}
|
|
941
|
-
const
|
|
920
|
+
const mr = [
|
|
942
921
|
"red",
|
|
943
922
|
"orange",
|
|
944
923
|
"yellow",
|
|
@@ -947,18 +926,18 @@ const rr = [
|
|
|
947
926
|
"lightblue",
|
|
948
927
|
"purple"
|
|
949
928
|
];
|
|
950
|
-
function
|
|
951
|
-
if (!
|
|
952
|
-
const a =
|
|
929
|
+
function yr(e, r = mr) {
|
|
930
|
+
if (!e) return "gray";
|
|
931
|
+
const a = it(e), s = Math.abs(a) % r.length;
|
|
953
932
|
return r[s];
|
|
954
933
|
}
|
|
955
|
-
const
|
|
956
|
-
function
|
|
957
|
-
if (!
|
|
958
|
-
const r =
|
|
959
|
-
return r.length === 1 ?
|
|
934
|
+
const $t = 2;
|
|
935
|
+
function vr(e) {
|
|
936
|
+
if (!e) return "";
|
|
937
|
+
const r = e.trim().split(/\s+/);
|
|
938
|
+
return r.length === 1 ? e.slice(0, $t).toUpperCase() : r.map((a) => a[0]).slice(0, $t).join("").toUpperCase();
|
|
960
939
|
}
|
|
961
|
-
const
|
|
940
|
+
const xr = {
|
|
962
941
|
24: 8,
|
|
963
942
|
32: 12,
|
|
964
943
|
40: 12,
|
|
@@ -969,10 +948,10 @@ const or = {
|
|
|
969
948
|
96: 24,
|
|
970
949
|
208: 8
|
|
971
950
|
};
|
|
972
|
-
function
|
|
973
|
-
return r === "circle" ?
|
|
951
|
+
function Bt(e, r) {
|
|
952
|
+
return r === "circle" ? e / 2 : xr[e] || 12;
|
|
974
953
|
}
|
|
975
|
-
const
|
|
954
|
+
const Cr = {
|
|
976
955
|
24: "typography-subtitle-4-semibold",
|
|
977
956
|
32: "typography-subtitle-2-semibold",
|
|
978
957
|
40: "typography-subtitle-1-semibold",
|
|
@@ -983,198 +962,198 @@ const ir = {
|
|
|
983
962
|
96: "typography-title-3-semibold",
|
|
984
963
|
208: "typography-title-1-semibold"
|
|
985
964
|
};
|
|
986
|
-
function
|
|
987
|
-
return
|
|
965
|
+
function wr(e) {
|
|
966
|
+
return Cr[e] || "typography-subtitle-1-semibold";
|
|
988
967
|
}
|
|
989
|
-
const cr = "data:image/svg+xml,%3csvg%20opacity='0.9'%20preserveAspectRatio='xMinYMin%20meet'%20viewBox='0%200%20208%20208'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cdefs%3e%3cfilter%20id='shadowW'%20filterUnits='userSpaceOnUse'%3e%3cfeDropShadow%20dx='-2'%20dy='-1'%20stdDeviation='5'%20flood-color='rgba(0,0,0,0.5)'/%3e%3c/filter%3e%3c/defs%3e%3cg%20filter='url(%23shadowW)'%3e%3cpath%20d='M23.9835%20174.59L113.41%20157.735L225.224%20191.671C225.224%20191.671%20250.259%20479.463%20243.525%20478.31C236.655%20477.167%20-7.79434%20482.039%20-8.17876%20476.943C-8.56308%20471.849%20-34.4445%20341.701%20-34.4445%20341.701L23.9835%20174.59Z'%20fill='darkgrey'/%3e%3cpath%20d='M-54.5558%20212.781C-85.688%20282.842%20-94.2122%20303.839%20-94.2122%20303.839L-213.504%20213.002C-214.953%20197.465%20-218.637%20181.68%20-225.636%20167.806C-234.412%20150.606%20-246.154%20149.138%20-259.595%20136.166C-267.368%20128.583%20-275.073%20140.242%20-267.3%20147.825L-259.338%20156.087C-258.869%20160.482%20-255.518%20171.861%20-254.634%20176.226C-267.475%20165.702%20-284.704%20150.246%20-300.665%20144.25C-305.079%20142.644%20-308.958%20144.46%20-311.08%20147.528C-314.628%20148.211%20-317.292%20151.458%20-317.858%20154.963C-321.103%20157.839%20-322.625%20163.354%20-319.254%20167.67C-321.407%20170.323%20-322.376%20173.998%20-320.433%20177.728C-320.274%20177.993%20-320.127%20178.12%20-320.106%20178.395C-320.997%20179.432%20-319.498%20182.78%20-320.337%20184.506C-324.035%20192.401%20-309.357%20221.757%20-285.221%20235.167C-277.291%20250.355%20-262.477%20259.485%20-261.354%20259.677C-234.512%20290.608%20-141.301%20400.999%20-97.2451%20436.169C-47.2868%20476.158%20-12.9855%20418.735%2010.6424%20317.115C34.2598%20215.358%2037.6457%20181.315%2037.6457%20181.315L116.374%20158.482C14.4423%20160.079%20-23.2964%20142.572%20-54.5558%20212.781Z'%20fill='darkgrey'/%3e%3cpath%20d='M116.781%20158.313L114.885%20158.871L61.4974%20174.391L38.0516%20181.145C38.0516%20181.145%2034.6758%20215.325%2011.0481%20316.945C9.47097%20323.572%207.88344%20330.061%206.27525%20336.275C-22.5942%20315.191%20-52.217%20295.131%20-82.0946%20275.368C-75.9632%20261.197%20-67.1116%20240.867%20-54.4359%20212.493C-30.4015%20158.477%20-2.57835%20156.516%2055.793%20157.512C72.5674%20157.77%2091.7239%20158.403%20114.133%20158.096C114.98%20158.309%20115.807%20158.247%20116.781%20158.313Z'%20fill='darkgrey'/%3e%3cpath%20d='M113.269%20157.745C175.26%20159.023%20252.771%20143.897%20266.382%20199.504C279.867%20255.26%20288.576%20280.774%20295.899%20320.932C303.221%20361.091%20322.043%20408.689%20271.897%20417.595C221.75%20426.502%20106.238%20444.495%20106.238%20444.495L78.8767%20384.662C78.8767%20384.662%20170.648%20343.813%20200.242%20332.303L185.17%20211.448L113.269%20157.745Z'%20fill='darkgrey'/%3e%3cpath%20d='M292.122%20302.108C260.506%20305.187%20228.942%20308.953%20198.219%20316.533L185.178%20211.585L140.855%20178.374L114.874%20158.871L114.144%20158.372L113.266%20157.746C127.138%20158.084%20141.774%20157.534%20156.283%20157.131C206.726%20155.818%20255.78%20156.271%20266.252%20199.654C277.643%20246.012%20285.665%20271.578%20292.122%20302.108Z'%20fill='darkgrey'/%3e%3cpath%20d='M108.001%20172.269C119.623%20168.485%20130.939%20164.308%20142.395%20160.12L112.224%20101.608L68.8441%20124.959C69.7222%20125.585%2079.0944%20154.372%2086.547%20177.904C93.7406%20175.977%20100.965%20174.463%20108.001%20172.269Z'%20fill='white'/%3e%3cpath%20d='M99.3655%20112.96C99.0934%20111.18%2098.8213%20109.401%2098.2722%20107.642L68.9864%20125.083C69.5682%20125.455%2073.8492%20138.148%2078.7406%20153.426C89.4856%20141.676%2097.5757%20127.773%2099.3655%20112.96Z'%20fill='darkgrey'/%3e%3cpath%20d='M144.524%2069.1209C143.075%2053.5829%20118.601%2039.3668%2099.9856%2038.5556C91.9262%2038.1943%2089.5107%2031.8684%2086.0605%2037.5291C77.5782%2051.7392%2049.6837%2094.9694%2052.2654%20110.837C56.0862%20133.951%2084.5691%20137.063%20102.228%20127.008C120.022%20116.942%20146.6%2091.1195%20144.524%2069.1209Z'%20fill='white'/%3e%3cpath%20d='M145.753%2072.4915C147.93%2068.3116%20146.317%2063.4483%20142.804%2060.944C142.656%2060.8166%20142.656%2060.8166%20142.507%2060.6894C143.028%2052.8957%20136.915%2047.1257%20129.979%2046.9567C129.007%2045.0914%20127.379%2043.691%20125.24%2042.883C124.903%2042.0778%20124.575%2041.4101%20123.982%2040.9009C122.651%2039.7551%20121.095%2039.3187%20119.441%2039.4435C118.081%2036.0843%20115.925%2033.2005%20112.495%2031.7977C110.348%2030.8519%20108.027%2031.304%20106.311%2032.4027C102.006%2028.5734%2096.789%2025.5051%2091.8112%2025.6038C89.736%2025.6218%2085.678%2026.8973%2084.2724%2032.1268C82.1968%2032.1449%2080.3522%2033.3917%2079.5546%2035.6676C78.427%2039.0759%2080.339%2042.3935%2083.1109%2044.2613C84.719%2045.3863%2086.9841%2046.0462%2089.0391%2045.7526C95.9026%2052.2969%20114.028%2063.1149%20118.148%2062.6657C115.532%2070.202%20113.218%2087.2698%20122.007%2088.1299C124.21%2095.3028%20116.99%20107.894%20121.368%20112.688C129.639%20104.863%20137.246%2095.5655%20141.359%2085.8391C141.496%2085.8288%20141.772%2085.808%20142.047%2085.7872C148.14%2083.9429%20149.527%2076.6377%20145.753%2072.4915Z'%20fill='darkgrey'/%3e%3cpath%20d='M140.151%20104.76C141.594%2096.3432%20132.67%2086.3542%20121.049%2088.3387C116.251%2096.3166%20111.305%20104.167%20106.21%20111.89C109.317%20116.364%20118.141%20121.376%20125.535%20120.264C133.872%20118.804%20138.613%20113.738%20140.151%20104.76Z'%20fill='white'/%3e%3cpath%20d='M156.755%20156.883C153.217%20165.043%20147.805%20172.237%20141.188%20178.136C133.925%20184.639%20125.011%20189.465%20114.809%20191.896C95.2214%20196.558%2072.2825%20189.842%2061.6836%20174.164C58.5559%20169.414%2056.4778%20163.894%2056%20157.561C72.7744%20157.818%2091.9311%20158.451%20114.34%20158.144L113.462%20157.519C127.463%20157.709%20142.098%20157.159%20156.755%20156.883Z'%20fill='white'/%3e%3c/g%3e%3c/svg%3e", dr = "data:image/svg+xml,%3csvg%20viewBox='0%200%20208%20208'%20opacity='0.9'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20filter='url(%23shadow)'%3e%3cpath%20filter='url(%23shadow)'%20d='M127.173%2079.8894C127.189%2079.1933%20128.026%2079.1201%20128.436%2079.4316C128.754%2079.6091%20128.895%2080.1021%20128.809%2080.5518C129.241%2083.1982%20129.581%2085.7106%20130.013%2088.357C136.835%2079.7558%20149.235%2076.9989%20158.979%2083.174C168.086%2088.9941%20171.001%20111.745%20135.501%20120.502C131.5%20123.502%20117%20125.002%20111.753%20103.279C111.682%2093.2427%20118.526%2084.529%20127.173%2079.8894Z'%20fill='darkgrey'/%3e%3cpath%20d='M28.0441%20167.788C21.826%20195.052%2018.7311%20223.361%2014.1881%20250.885C9.42226%20279.982%204.68042%20308.967%20-0.0853729%20338.064L-1.00047%20342.848C14.5039%20346.419%2030.8401%20350.407%2046.3671%20353.868C90.9428%20363.918%20134.837%20376.598%20179.293%20387.201C200.345%20337.142%20219.778%20286.027%20235.82%20234.041C243.806%20208.213%20244.758%20181.282%20225.443%20160.043C216.099%20149.841%20204.347%20143.858%20191.629%20140.212C188.924%20139.377%20186.108%20138.517%20183.355%20137.905C179.635%20136.959%20175.781%20136.1%20171.989%20135.487C167.45%20134.592%20162.753%20133.893%20158.277%20133.243L127.871%20128.671L116.251%20126.895C115.457%20126.833%20114.686%20126.662%20113.915%20126.49C102.87%20124.724%2091.7381%20122.824%2080.6188%20123.013C69.1682%20123.13%2056.9012%20125.964%2047.8363%20133.224C36.9821%20141.825%2031.1109%20154.087%2028.0441%20167.788Z'%20fill='darkgrey'/%3e%3cpath%20d='M103.74%20123.732L95.6984%20197.532C95.6984%20197.532%20137.13%20157.315%20158.742%20133.268C155.051%20132.316%20151.227%20131.449%20147.465%20130.831C142.962%20129.929%20138.302%20129.224%20133.861%20128.569L103.74%20123.732Z'%20fill='white'/%3e%3cpath%20d='M97.8143%20115.298C99.0227%20116.625%20108.229%20179.332%20108.229%20179.332L148.012%20142.157L129%20100L97.8143%20115.298Z'%20fill='white'/%3e%3cpath%20d='M101.71%20148.534C100.068%20137.868%2098.402%20127.706%2098.0001%20127.274L112.673%20122C113.831%20131.449%20108.467%20141.173%20101.71%20148.534Z'%20fill='grey'/%3e%3cpath%20d='M121.545%2040.7383C111.161%2030.599%2085.3871%2035.4814%2071.93%2046.2862C66.0912%2051.0172%2060.5415%2047.9025%2061.6427%2054.0842C64.3767%2069.3597%2074.0239%20120.283%2082.7631%20126.794C100.374%20139.728%20121.191%20125.699%20127.329%20107.658C133.554%2089.7517%20136.293%2055.2372%20121.545%2040.7383Z'%20fill='white'/%3e%3cpath%20d='M56.0176%2041.9837C61.9834%2036.7831%2074.9427%2037.4243%2081.3074%2039.639C95.1733%2033.9235%20112.672%2032.6801%20120.968%2040.1438C131.22%2049.4771%20133.446%2067.5345%20132.042%2083.8281C125.848%2083.0025%20122.779%2078.6471%20116.718%2075.0286C97.7466%2073.2611%2084.9353%2061.0313%2082.042%2054.2301C78.3492%2058.2067%2063.3398%2059.3993%2058.12%2055.1646C51.1278%2048.7596%2054.1283%2043.6248%2056.0176%2041.9837Z'%20fill='darkgrey'/%3e%3cpath%20d='M142.838%2074.8316C138.561%2067.841%20123.674%2066.785%20116.5%2075.5006C118.078%2084.3219%20121.503%2092.5524%20122.726%20101.41C127.77%20102.657%20137.388%20100.869%20141.908%2095.386C147.168%2089.1414%20147.462%2082.3637%20142.838%2074.8316Z'%20fill='white'/%3e%3c/g%3e%3cdefs%3e%3cfilter%20id='shadow'%3e%3cfeDropShadow%20dx='0'%20dy='0'%20stdDeviation='3'%20flood-color='rgba(0,0,0,0.3)'/%3e%3c/filter%3e%3c/defs%3e%3c/svg%3e", ur = "data:image/svg+xml,%3csvg%20opacity='0.9'%20viewBox='0%200%20208%20208'%20fill='currentColor'%20xmlns='http://www.w3.org/2000/svg'%3e%3cdefs%3e%3cmask%20id='hole'%3e%3crect%20width='100%25'%20height='100%25'%20fill='white'/%3e%3ccircle%20cx='121.333'%20cy='121.333'%20r='52'%20fill='black'/%3e%3c/mask%3e%3cfilter%20id='shadow'%3e%3cfeDropShadow%20dx='-2'%20dy='-1'%20stdDeviation='10'%20flood-color='rgba(0,0,0,0.2)'/%3e%3c/filter%3e%3c/defs%3e%3cg%20filter='url(%23shadow)'%3e%3ccircle%20cx='104'%20cy='225.333'%20r='95.3333'%20fill='darkgray'/%3e%3ccircle%20cx='104'%20cy='225.333'%20r='95.3333'%20fill='white'%20mask='url(%23hole)'/%3e%3ccircle%20cx='104'%20cy='86.6666'%20r='52'%20fill='white'/%3e%3c/g%3e%3c/svg%3e", _r = "data:image/svg+xml,%3csvg%20opacity='0.9'%20viewBox='0%200%20208%20208'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20filter='url(%23shadow)'%3e%3cpath%20d='M168%20208V118.053C168%20113.824%20165.34%20110.052%20161.356%20108.633L134%2098.885V208H168Z'%20fill='darkgrey'/%3e%3cpath%20d='M40%2072.3726C40%2070.7381%2040.9944%2069.268%2042.5116%2068.6598L111.951%2040.8215C113.226%2040.3102%20114.675%2040.4893%20115.787%2041.2958L129.87%2051.5056C132.464%2053.3866%20134%2056.397%20134%2059.6017V208H40V72.3726Z'%20fill='white'/%3e%3cpath%20d='M114%2047.5001L126.325%2056.3036C127.376%2057.0544%20128%2058.2667%20128%2059.5585V208H114V47.5001Z'%20fill='darkgrey'/%3e%3c/g%3e%3cdefs%3e%3cfilter%20id='shadow'%3e%3cfeDropShadow%20dx='-2'%20dy='-1'%20stdDeviation='7'%20flood-color='rgba(0,0,0,0.2)'/%3e%3c/filter%3e%3c/defs%3e%3c/svg%3e", pr = {
|
|
990
|
-
male:
|
|
991
|
-
female:
|
|
992
|
-
org:
|
|
993
|
-
neutral:
|
|
994
|
-
},
|
|
968
|
+
const Sr = "data:image/svg+xml,%3csvg%20opacity='0.9'%20preserveAspectRatio='xMinYMin%20meet'%20viewBox='0%200%20208%20208'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cdefs%3e%3cfilter%20id='shadowW'%20filterUnits='userSpaceOnUse'%3e%3cfeDropShadow%20dx='-2'%20dy='-1'%20stdDeviation='5'%20flood-color='rgba(0,0,0,0.5)'/%3e%3c/filter%3e%3c/defs%3e%3cg%20filter='url(%23shadowW)'%3e%3cpath%20d='M23.9835%20174.59L113.41%20157.735L225.224%20191.671C225.224%20191.671%20250.259%20479.463%20243.525%20478.31C236.655%20477.167%20-7.79434%20482.039%20-8.17876%20476.943C-8.56308%20471.849%20-34.4445%20341.701%20-34.4445%20341.701L23.9835%20174.59Z'%20fill='darkgrey'/%3e%3cpath%20d='M-54.5558%20212.781C-85.688%20282.842%20-94.2122%20303.839%20-94.2122%20303.839L-213.504%20213.002C-214.953%20197.465%20-218.637%20181.68%20-225.636%20167.806C-234.412%20150.606%20-246.154%20149.138%20-259.595%20136.166C-267.368%20128.583%20-275.073%20140.242%20-267.3%20147.825L-259.338%20156.087C-258.869%20160.482%20-255.518%20171.861%20-254.634%20176.226C-267.475%20165.702%20-284.704%20150.246%20-300.665%20144.25C-305.079%20142.644%20-308.958%20144.46%20-311.08%20147.528C-314.628%20148.211%20-317.292%20151.458%20-317.858%20154.963C-321.103%20157.839%20-322.625%20163.354%20-319.254%20167.67C-321.407%20170.323%20-322.376%20173.998%20-320.433%20177.728C-320.274%20177.993%20-320.127%20178.12%20-320.106%20178.395C-320.997%20179.432%20-319.498%20182.78%20-320.337%20184.506C-324.035%20192.401%20-309.357%20221.757%20-285.221%20235.167C-277.291%20250.355%20-262.477%20259.485%20-261.354%20259.677C-234.512%20290.608%20-141.301%20400.999%20-97.2451%20436.169C-47.2868%20476.158%20-12.9855%20418.735%2010.6424%20317.115C34.2598%20215.358%2037.6457%20181.315%2037.6457%20181.315L116.374%20158.482C14.4423%20160.079%20-23.2964%20142.572%20-54.5558%20212.781Z'%20fill='darkgrey'/%3e%3cpath%20d='M116.781%20158.313L114.885%20158.871L61.4974%20174.391L38.0516%20181.145C38.0516%20181.145%2034.6758%20215.325%2011.0481%20316.945C9.47097%20323.572%207.88344%20330.061%206.27525%20336.275C-22.5942%20315.191%20-52.217%20295.131%20-82.0946%20275.368C-75.9632%20261.197%20-67.1116%20240.867%20-54.4359%20212.493C-30.4015%20158.477%20-2.57835%20156.516%2055.793%20157.512C72.5674%20157.77%2091.7239%20158.403%20114.133%20158.096C114.98%20158.309%20115.807%20158.247%20116.781%20158.313Z'%20fill='darkgrey'/%3e%3cpath%20d='M113.269%20157.745C175.26%20159.023%20252.771%20143.897%20266.382%20199.504C279.867%20255.26%20288.576%20280.774%20295.899%20320.932C303.221%20361.091%20322.043%20408.689%20271.897%20417.595C221.75%20426.502%20106.238%20444.495%20106.238%20444.495L78.8767%20384.662C78.8767%20384.662%20170.648%20343.813%20200.242%20332.303L185.17%20211.448L113.269%20157.745Z'%20fill='darkgrey'/%3e%3cpath%20d='M292.122%20302.108C260.506%20305.187%20228.942%20308.953%20198.219%20316.533L185.178%20211.585L140.855%20178.374L114.874%20158.871L114.144%20158.372L113.266%20157.746C127.138%20158.084%20141.774%20157.534%20156.283%20157.131C206.726%20155.818%20255.78%20156.271%20266.252%20199.654C277.643%20246.012%20285.665%20271.578%20292.122%20302.108Z'%20fill='darkgrey'/%3e%3cpath%20d='M108.001%20172.269C119.623%20168.485%20130.939%20164.308%20142.395%20160.12L112.224%20101.608L68.8441%20124.959C69.7222%20125.585%2079.0944%20154.372%2086.547%20177.904C93.7406%20175.977%20100.965%20174.463%20108.001%20172.269Z'%20fill='white'/%3e%3cpath%20d='M99.3655%20112.96C99.0934%20111.18%2098.8213%20109.401%2098.2722%20107.642L68.9864%20125.083C69.5682%20125.455%2073.8492%20138.148%2078.7406%20153.426C89.4856%20141.676%2097.5757%20127.773%2099.3655%20112.96Z'%20fill='darkgrey'/%3e%3cpath%20d='M144.524%2069.1209C143.075%2053.5829%20118.601%2039.3668%2099.9856%2038.5556C91.9262%2038.1943%2089.5107%2031.8684%2086.0605%2037.5291C77.5782%2051.7392%2049.6837%2094.9694%2052.2654%20110.837C56.0862%20133.951%2084.5691%20137.063%20102.228%20127.008C120.022%20116.942%20146.6%2091.1195%20144.524%2069.1209Z'%20fill='white'/%3e%3cpath%20d='M145.753%2072.4915C147.93%2068.3116%20146.317%2063.4483%20142.804%2060.944C142.656%2060.8166%20142.656%2060.8166%20142.507%2060.6894C143.028%2052.8957%20136.915%2047.1257%20129.979%2046.9567C129.007%2045.0914%20127.379%2043.691%20125.24%2042.883C124.903%2042.0778%20124.575%2041.4101%20123.982%2040.9009C122.651%2039.7551%20121.095%2039.3187%20119.441%2039.4435C118.081%2036.0843%20115.925%2033.2005%20112.495%2031.7977C110.348%2030.8519%20108.027%2031.304%20106.311%2032.4027C102.006%2028.5734%2096.789%2025.5051%2091.8112%2025.6038C89.736%2025.6218%2085.678%2026.8973%2084.2724%2032.1268C82.1968%2032.1449%2080.3522%2033.3917%2079.5546%2035.6676C78.427%2039.0759%2080.339%2042.3935%2083.1109%2044.2613C84.719%2045.3863%2086.9841%2046.0462%2089.0391%2045.7526C95.9026%2052.2969%20114.028%2063.1149%20118.148%2062.6657C115.532%2070.202%20113.218%2087.2698%20122.007%2088.1299C124.21%2095.3028%20116.99%20107.894%20121.368%20112.688C129.639%20104.863%20137.246%2095.5655%20141.359%2085.8391C141.496%2085.8288%20141.772%2085.808%20142.047%2085.7872C148.14%2083.9429%20149.527%2076.6377%20145.753%2072.4915Z'%20fill='darkgrey'/%3e%3cpath%20d='M140.151%20104.76C141.594%2096.3432%20132.67%2086.3542%20121.049%2088.3387C116.251%2096.3166%20111.305%20104.167%20106.21%20111.89C109.317%20116.364%20118.141%20121.376%20125.535%20120.264C133.872%20118.804%20138.613%20113.738%20140.151%20104.76Z'%20fill='white'/%3e%3cpath%20d='M156.755%20156.883C153.217%20165.043%20147.805%20172.237%20141.188%20178.136C133.925%20184.639%20125.011%20189.465%20114.809%20191.896C95.2214%20196.558%2072.2825%20189.842%2061.6836%20174.164C58.5559%20169.414%2056.4778%20163.894%2056%20157.561C72.7744%20157.818%2091.9311%20158.451%20114.34%20158.144L113.462%20157.519C127.463%20157.709%20142.098%20157.159%20156.755%20156.883Z'%20fill='white'/%3e%3c/g%3e%3c/svg%3e", Lr = "data:image/svg+xml,%3csvg%20viewBox='0%200%20208%20208'%20opacity='0.9'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20filter='url(%23shadow)'%3e%3cpath%20filter='url(%23shadow)'%20d='M127.173%2079.8894C127.189%2079.1933%20128.026%2079.1201%20128.436%2079.4316C128.754%2079.6091%20128.895%2080.1021%20128.809%2080.5518C129.241%2083.1982%20129.581%2085.7106%20130.013%2088.357C136.835%2079.7558%20149.235%2076.9989%20158.979%2083.174C168.086%2088.9941%20171.001%20111.745%20135.501%20120.502C131.5%20123.502%20117%20125.002%20111.753%20103.279C111.682%2093.2427%20118.526%2084.529%20127.173%2079.8894Z'%20fill='darkgrey'/%3e%3cpath%20d='M28.0441%20167.788C21.826%20195.052%2018.7311%20223.361%2014.1881%20250.885C9.42226%20279.982%204.68042%20308.967%20-0.0853729%20338.064L-1.00047%20342.848C14.5039%20346.419%2030.8401%20350.407%2046.3671%20353.868C90.9428%20363.918%20134.837%20376.598%20179.293%20387.201C200.345%20337.142%20219.778%20286.027%20235.82%20234.041C243.806%20208.213%20244.758%20181.282%20225.443%20160.043C216.099%20149.841%20204.347%20143.858%20191.629%20140.212C188.924%20139.377%20186.108%20138.517%20183.355%20137.905C179.635%20136.959%20175.781%20136.1%20171.989%20135.487C167.45%20134.592%20162.753%20133.893%20158.277%20133.243L127.871%20128.671L116.251%20126.895C115.457%20126.833%20114.686%20126.662%20113.915%20126.49C102.87%20124.724%2091.7381%20122.824%2080.6188%20123.013C69.1682%20123.13%2056.9012%20125.964%2047.8363%20133.224C36.9821%20141.825%2031.1109%20154.087%2028.0441%20167.788Z'%20fill='darkgrey'/%3e%3cpath%20d='M103.74%20123.732L95.6984%20197.532C95.6984%20197.532%20137.13%20157.315%20158.742%20133.268C155.051%20132.316%20151.227%20131.449%20147.465%20130.831C142.962%20129.929%20138.302%20129.224%20133.861%20128.569L103.74%20123.732Z'%20fill='white'/%3e%3cpath%20d='M97.8143%20115.298C99.0227%20116.625%20108.229%20179.332%20108.229%20179.332L148.012%20142.157L129%20100L97.8143%20115.298Z'%20fill='white'/%3e%3cpath%20d='M101.71%20148.534C100.068%20137.868%2098.402%20127.706%2098.0001%20127.274L112.673%20122C113.831%20131.449%20108.467%20141.173%20101.71%20148.534Z'%20fill='grey'/%3e%3cpath%20d='M121.545%2040.7383C111.161%2030.599%2085.3871%2035.4814%2071.93%2046.2862C66.0912%2051.0172%2060.5415%2047.9025%2061.6427%2054.0842C64.3767%2069.3597%2074.0239%20120.283%2082.7631%20126.794C100.374%20139.728%20121.191%20125.699%20127.329%20107.658C133.554%2089.7517%20136.293%2055.2372%20121.545%2040.7383Z'%20fill='white'/%3e%3cpath%20d='M56.0176%2041.9837C61.9834%2036.7831%2074.9427%2037.4243%2081.3074%2039.639C95.1733%2033.9235%20112.672%2032.6801%20120.968%2040.1438C131.22%2049.4771%20133.446%2067.5345%20132.042%2083.8281C125.848%2083.0025%20122.779%2078.6471%20116.718%2075.0286C97.7466%2073.2611%2084.9353%2061.0313%2082.042%2054.2301C78.3492%2058.2067%2063.3398%2059.3993%2058.12%2055.1646C51.1278%2048.7596%2054.1283%2043.6248%2056.0176%2041.9837Z'%20fill='darkgrey'/%3e%3cpath%20d='M142.838%2074.8316C138.561%2067.841%20123.674%2066.785%20116.5%2075.5006C118.078%2084.3219%20121.503%2092.5524%20122.726%20101.41C127.77%20102.657%20137.388%20100.869%20141.908%2095.386C147.168%2089.1414%20147.462%2082.3637%20142.838%2074.8316Z'%20fill='white'/%3e%3c/g%3e%3cdefs%3e%3cfilter%20id='shadow'%3e%3cfeDropShadow%20dx='0'%20dy='0'%20stdDeviation='3'%20flood-color='rgba(0,0,0,0.3)'/%3e%3c/filter%3e%3c/defs%3e%3c/svg%3e", Er = "data:image/svg+xml,%3csvg%20opacity='0.9'%20viewBox='0%200%20208%20208'%20fill='currentColor'%20xmlns='http://www.w3.org/2000/svg'%3e%3cdefs%3e%3cmask%20id='hole'%3e%3crect%20width='100%25'%20height='100%25'%20fill='white'/%3e%3ccircle%20cx='121.333'%20cy='121.333'%20r='52'%20fill='black'/%3e%3c/mask%3e%3cfilter%20id='shadow'%3e%3cfeDropShadow%20dx='-2'%20dy='-1'%20stdDeviation='10'%20flood-color='rgba(0,0,0,0.2)'/%3e%3c/filter%3e%3c/defs%3e%3cg%20filter='url(%23shadow)'%3e%3ccircle%20cx='104'%20cy='225.333'%20r='95.3333'%20fill='darkgray'/%3e%3ccircle%20cx='104'%20cy='225.333'%20r='95.3333'%20fill='white'%20mask='url(%23hole)'/%3e%3ccircle%20cx='104'%20cy='86.6666'%20r='52'%20fill='white'/%3e%3c/g%3e%3c/svg%3e", kr = "data:image/svg+xml,%3csvg%20opacity='0.9'%20viewBox='0%200%20208%20208'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20filter='url(%23shadow)'%3e%3cpath%20d='M168%20208V118.053C168%20113.824%20165.34%20110.052%20161.356%20108.633L134%2098.885V208H168Z'%20fill='darkgrey'/%3e%3cpath%20d='M40%2072.3726C40%2070.7381%2040.9944%2069.268%2042.5116%2068.6598L111.951%2040.8215C113.226%2040.3102%20114.675%2040.4893%20115.787%2041.2958L129.87%2051.5056C132.464%2053.3866%20134%2056.397%20134%2059.6017V208H40V72.3726Z'%20fill='white'/%3e%3cpath%20d='M114%2047.5001L126.325%2056.3036C127.376%2057.0544%20128%2058.2667%20128%2059.5585V208H114V47.5001Z'%20fill='darkgrey'/%3e%3c/g%3e%3cdefs%3e%3cfilter%20id='shadow'%3e%3cfeDropShadow%20dx='-2'%20dy='-1'%20stdDeviation='7'%20flood-color='rgba(0,0,0,0.2)'/%3e%3c/filter%3e%3c/defs%3e%3c/svg%3e", jr = {
|
|
969
|
+
male: Sr,
|
|
970
|
+
female: Lr,
|
|
971
|
+
org: kr,
|
|
972
|
+
neutral: Er
|
|
973
|
+
}, Ge = X((e, r) => {
|
|
995
974
|
const {
|
|
996
975
|
style: a,
|
|
997
976
|
size: s = 40,
|
|
998
977
|
isLoading: i = !1,
|
|
999
|
-
isDisabled:
|
|
1000
|
-
shape:
|
|
1001
|
-
variant:
|
|
1002
|
-
placeholderType:
|
|
1003
|
-
name:
|
|
1004
|
-
imgSrc:
|
|
1005
|
-
imgAlt:
|
|
978
|
+
isDisabled: o = !1,
|
|
979
|
+
shape: l = "circle",
|
|
980
|
+
variant: u = "filled",
|
|
981
|
+
placeholderType: c = "neutral",
|
|
982
|
+
name: p,
|
|
983
|
+
imgSrc: h,
|
|
984
|
+
imgAlt: m,
|
|
1006
985
|
icon: b,
|
|
1007
|
-
imgProps:
|
|
1008
|
-
colorScheme:
|
|
1009
|
-
className:
|
|
1010
|
-
"data-testid":
|
|
986
|
+
imgProps: g,
|
|
987
|
+
colorScheme: y,
|
|
988
|
+
className: S,
|
|
989
|
+
"data-testid": x,
|
|
1011
990
|
...C
|
|
1012
|
-
} =
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
}, [
|
|
1016
|
-
const
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
991
|
+
} = e, { onClick: _, onPointerDown: L } = C, A = !o && !i && (!!_ || !!L), [j, T] = ye(!1);
|
|
992
|
+
ue(() => {
|
|
993
|
+
h && T(!1);
|
|
994
|
+
}, [h]);
|
|
995
|
+
const O = h && !j ? "image" : b ? "icon" : p ? "name" : "placeholder", U = y || O === "name" && yr(p) || "gray", B = wr(s), z = Bt(s, l), N = I(
|
|
996
|
+
S,
|
|
997
|
+
_e.avatar,
|
|
998
|
+
_e[`variant-${u}`],
|
|
999
|
+
_e[`color-${U}`],
|
|
1000
|
+
pe[B],
|
|
1022
1001
|
{
|
|
1023
|
-
[
|
|
1024
|
-
[
|
|
1025
|
-
[
|
|
1002
|
+
[_e.disabled]: o,
|
|
1003
|
+
[_e.loading]: i,
|
|
1004
|
+
[_e.clickable]: A
|
|
1026
1005
|
}
|
|
1027
|
-
),
|
|
1006
|
+
), v = {
|
|
1028
1007
|
"--avatar-size": `${s}px`,
|
|
1029
1008
|
"--avatar-border-radius": `${z}px`,
|
|
1030
1009
|
...a
|
|
1031
|
-
},
|
|
1032
|
-
icon: () => /* @__PURE__ */
|
|
1033
|
-
name: () => /* @__PURE__ */
|
|
1010
|
+
}, $ = {
|
|
1011
|
+
icon: () => /* @__PURE__ */ n.jsx("span", { "data-testid": "avatar-icon", title: m || void 0, role: "img", className: _e.icon, children: b == null ? void 0 : b({}) }),
|
|
1012
|
+
name: () => /* @__PURE__ */ n.jsx(
|
|
1034
1013
|
"span",
|
|
1035
1014
|
{
|
|
1036
1015
|
role: "textbox",
|
|
1037
1016
|
"data-testid": "avatar-name",
|
|
1038
|
-
className:
|
|
1039
|
-
title:
|
|
1040
|
-
children:
|
|
1017
|
+
className: _e.name,
|
|
1018
|
+
title: m || void 0,
|
|
1019
|
+
children: vr(p || "")
|
|
1041
1020
|
}
|
|
1042
1021
|
),
|
|
1043
|
-
placeholder: () => /* @__PURE__ */
|
|
1022
|
+
placeholder: () => /* @__PURE__ */ n.jsx(
|
|
1044
1023
|
"img",
|
|
1045
1024
|
{
|
|
1046
|
-
...
|
|
1025
|
+
...g,
|
|
1047
1026
|
"data-testid": "avatar-placeholder",
|
|
1048
|
-
className:
|
|
1049
|
-
src:
|
|
1050
|
-
alt:
|
|
1027
|
+
className: _e.image,
|
|
1028
|
+
src: jr[c],
|
|
1029
|
+
alt: m || void 0
|
|
1051
1030
|
}
|
|
1052
1031
|
),
|
|
1053
|
-
image: () => /* @__PURE__ */
|
|
1032
|
+
image: () => /* @__PURE__ */ n.jsx(
|
|
1054
1033
|
"img",
|
|
1055
1034
|
{
|
|
1056
1035
|
"data-testid": "avatar-image",
|
|
1057
|
-
...
|
|
1058
|
-
className:
|
|
1059
|
-
src:
|
|
1060
|
-
alt:
|
|
1061
|
-
onLoad: () =>
|
|
1062
|
-
onError: (
|
|
1063
|
-
var
|
|
1064
|
-
|
|
1036
|
+
...g,
|
|
1037
|
+
className: _e.image,
|
|
1038
|
+
src: h || void 0,
|
|
1039
|
+
alt: m || void 0,
|
|
1040
|
+
onLoad: () => T(!1),
|
|
1041
|
+
onError: (F) => {
|
|
1042
|
+
var G;
|
|
1043
|
+
T(!0), (G = g == null ? void 0 : g.onError) == null || G.call(g, F);
|
|
1065
1044
|
}
|
|
1066
1045
|
}
|
|
1067
1046
|
)
|
|
1068
|
-
},
|
|
1069
|
-
|
|
1047
|
+
}, P = (F) => {
|
|
1048
|
+
A && (_ == null || _(F));
|
|
1070
1049
|
};
|
|
1071
|
-
return /* @__PURE__ */
|
|
1050
|
+
return /* @__PURE__ */ n.jsx(
|
|
1072
1051
|
"div",
|
|
1073
1052
|
{
|
|
1074
1053
|
ref: r,
|
|
1075
|
-
onClick:
|
|
1076
|
-
className:
|
|
1077
|
-
style:
|
|
1078
|
-
"data-testid":
|
|
1079
|
-
"aria-disabled":
|
|
1080
|
-
children:
|
|
1054
|
+
onClick: P,
|
|
1055
|
+
className: N,
|
|
1056
|
+
style: v,
|
|
1057
|
+
"data-testid": x,
|
|
1058
|
+
"aria-disabled": o || i,
|
|
1059
|
+
children: $[O](null)
|
|
1081
1060
|
}
|
|
1082
1061
|
);
|
|
1083
|
-
}),
|
|
1084
|
-
avatarGroup:
|
|
1062
|
+
}), $r = "_avatarGroup_157g4_1", Rr = {
|
|
1063
|
+
avatarGroup: $r
|
|
1085
1064
|
};
|
|
1086
|
-
let
|
|
1087
|
-
function
|
|
1088
|
-
const
|
|
1089
|
-
`M${a +
|
|
1090
|
-
`L${a + i -
|
|
1065
|
+
let Mr = (e = 21) => crypto.getRandomValues(new Uint8Array(e)).reduce((r, a) => (a &= 63, a < 36 ? r += a.toString(36) : a < 62 ? r += (a - 26).toString(36).toUpperCase() : a > 62 ? r += "-" : r += "_", r), "");
|
|
1066
|
+
function Ir(e, r, a, s, i, o, l) {
|
|
1067
|
+
const u = Math.min(i, o) / 2, c = Math.min(l, u), p = ["M0,0", `H${e}`, `V${r}`, "H0", "V0", "Z"].join(" "), h = [
|
|
1068
|
+
`M${a + c},${s}`,
|
|
1069
|
+
`L${a + i - c},${s}`,
|
|
1091
1070
|
// Верхний правый угол
|
|
1092
|
-
`A${
|
|
1093
|
-
`L${a + i},${s +
|
|
1071
|
+
`A${c},${c} 0 0 1 ${a + i},${s + c}`,
|
|
1072
|
+
`L${a + i},${s + o - c}`,
|
|
1094
1073
|
// Нижний правый угол
|
|
1095
|
-
`A${
|
|
1096
|
-
`L${a +
|
|
1074
|
+
`A${c},${c} 0 0 1 ${a + i - c},${s + o}`,
|
|
1075
|
+
`L${a + c},${s + o}`,
|
|
1097
1076
|
// Нижний левый угол
|
|
1098
|
-
`A${
|
|
1099
|
-
`L${a},${s +
|
|
1077
|
+
`A${c},${c} 0 0 1 ${a},${s + o - c}`,
|
|
1078
|
+
`L${a},${s + c}`,
|
|
1100
1079
|
// Верхний левый угол
|
|
1101
|
-
`A${
|
|
1080
|
+
`A${c},${c} 0 0 1 ${a + c},${s}`,
|
|
1102
1081
|
"Z"
|
|
1103
1082
|
].join(" ");
|
|
1104
|
-
return `${
|
|
1083
|
+
return `${p} ${h}`;
|
|
1105
1084
|
}
|
|
1106
|
-
const
|
|
1085
|
+
const Tr = 3, Ar = (e) => {
|
|
1107
1086
|
const {
|
|
1108
1087
|
avatars: r = [],
|
|
1109
1088
|
size: a = 40,
|
|
1110
1089
|
overlap: s = 0.3,
|
|
1111
1090
|
shape: i = "circle",
|
|
1112
|
-
overflowCount:
|
|
1113
|
-
overflowProps:
|
|
1114
|
-
} =
|
|
1091
|
+
overflowCount: o = 0,
|
|
1092
|
+
overflowProps: l
|
|
1093
|
+
} = e, u = a * s, c = -u + Tr, p = Bt(a, i), m = qe(Mr()).current.toString(), b = Ce(Rr.avatarGroup), g = Ir(
|
|
1115
1094
|
a,
|
|
1116
1095
|
a,
|
|
1117
|
-
a -
|
|
1096
|
+
a - u,
|
|
1118
1097
|
// X-координата начала выреза
|
|
1119
1098
|
0,
|
|
1120
1099
|
// Y-координата начала выреза
|
|
1121
1100
|
a,
|
|
1122
1101
|
a,
|
|
1123
|
-
|
|
1102
|
+
p
|
|
1124
1103
|
);
|
|
1125
|
-
return r.length === 0 ? null : /* @__PURE__ */
|
|
1126
|
-
r.map((
|
|
1127
|
-
const C =
|
|
1128
|
-
if (
|
|
1129
|
-
const
|
|
1130
|
-
return /* @__PURE__ */
|
|
1104
|
+
return r.length === 0 ? null : /* @__PURE__ */ n.jsxs("div", { className: b, children: [
|
|
1105
|
+
r.map((y, S, x) => {
|
|
1106
|
+
const C = S + 1 >= x.length;
|
|
1107
|
+
if (y.wrapper) {
|
|
1108
|
+
const _ = y.wrapper;
|
|
1109
|
+
return /* @__PURE__ */ n.jsx(
|
|
1131
1110
|
"div",
|
|
1132
1111
|
{
|
|
1133
1112
|
style: {
|
|
1134
1113
|
// Для последнего видимого аватара без overflowCount не применяем обрезку
|
|
1135
|
-
clipPath: C && !
|
|
1136
|
-
marginRight:
|
|
1114
|
+
clipPath: C && !o ? void 0 : `url(#${m})`,
|
|
1115
|
+
marginRight: c
|
|
1137
1116
|
},
|
|
1138
|
-
children: /* @__PURE__ */
|
|
1117
|
+
children: /* @__PURE__ */ n.jsx(_, { children: /* @__PURE__ */ n.jsx(Ge, { size: a, shape: i, ...y }) })
|
|
1139
1118
|
},
|
|
1140
|
-
|
|
1119
|
+
it(y) + S
|
|
1141
1120
|
);
|
|
1142
1121
|
}
|
|
1143
|
-
return /* @__PURE__ */
|
|
1122
|
+
return /* @__PURE__ */ n.jsx(
|
|
1144
1123
|
"div",
|
|
1145
1124
|
{
|
|
1146
1125
|
style: {
|
|
1147
1126
|
// Для последнего видимого аватара без overflowCount не применяем обрезку
|
|
1148
|
-
clipPath: C && !
|
|
1149
|
-
marginRight:
|
|
1127
|
+
clipPath: C && !o ? void 0 : `url(#${m})`,
|
|
1128
|
+
marginRight: c
|
|
1150
1129
|
},
|
|
1151
|
-
children: /* @__PURE__ */
|
|
1130
|
+
children: /* @__PURE__ */ n.jsx(Ge, { size: a, shape: i, ...y })
|
|
1152
1131
|
},
|
|
1153
|
-
|
|
1132
|
+
it(y) + S
|
|
1154
1133
|
);
|
|
1155
1134
|
}),
|
|
1156
|
-
|
|
1157
|
-
|
|
1135
|
+
o > 0 && /* @__PURE__ */ n.jsx("div", { style: { marginRight: c }, children: /* @__PURE__ */ n.jsx(
|
|
1136
|
+
Ge,
|
|
1158
1137
|
{
|
|
1159
1138
|
size: a,
|
|
1160
1139
|
shape: i,
|
|
1161
|
-
icon: () =>
|
|
1140
|
+
icon: () => br(o),
|
|
1162
1141
|
colorScheme: "gray",
|
|
1163
1142
|
variant: "light",
|
|
1164
|
-
...
|
|
1143
|
+
...l
|
|
1165
1144
|
}
|
|
1166
1145
|
) }),
|
|
1167
|
-
/* @__PURE__ */
|
|
1146
|
+
/* @__PURE__ */ n.jsx("svg", { width: "0", height: "0", children: /* @__PURE__ */ n.jsx("clipPath", { id: `${m}`, children: /* @__PURE__ */ n.jsx("path", { clipPathUnits: "objectBoundingBox", d: g, clipRule: "evenodd" }) }) })
|
|
1168
1147
|
] });
|
|
1169
|
-
},
|
|
1170
|
-
Group:
|
|
1171
|
-
}),
|
|
1172
|
-
wrapper:
|
|
1173
|
-
badge__container:
|
|
1174
|
-
badge__content:
|
|
1175
|
-
interactive:
|
|
1176
|
-
disabled:
|
|
1177
|
-
icon:
|
|
1148
|
+
}, ni = Object.assign(Ge, {
|
|
1149
|
+
Group: Ar
|
|
1150
|
+
}), Nr = "_wrapper_ecbsu_5", Dr = "_badge__container_ecbsu_6", Or = "_badge__content_ecbsu_7", Pr = "_interactive_ecbsu_20", qr = "_disabled_ecbsu_21", Ur = "_icon_ecbsu_22", he = {
|
|
1151
|
+
wrapper: Nr,
|
|
1152
|
+
badge__container: Dr,
|
|
1153
|
+
badge__content: Or,
|
|
1154
|
+
interactive: Pr,
|
|
1155
|
+
disabled: qr,
|
|
1156
|
+
icon: Ur,
|
|
1178
1157
|
"variant-filled": "_variant-filled_ecbsu_102",
|
|
1179
1158
|
"color-brand": "_color-brand_ecbsu_107",
|
|
1180
1159
|
"color-red": "_color-red_ecbsu_111",
|
|
@@ -1206,129 +1185,154 @@ const yr = 3, mr = (t) => {
|
|
|
1206
1185
|
"position-bottom-center-inside": "_position-bottom-center-inside_ecbsu_447",
|
|
1207
1186
|
"position-middle-left-inside": "_position-middle-left-inside_ecbsu_453",
|
|
1208
1187
|
"position-middle-right-inside": "_position-middle-right-inside_ecbsu_459"
|
|
1209
|
-
},
|
|
1210
|
-
if (!
|
|
1211
|
-
let r =
|
|
1188
|
+
}, Br = (e) => e === "rgba(0, 0, 0, 0)" || e === "transparent" || e.startsWith("rgba") && e.endsWith(", 0)"), Fr = (e) => {
|
|
1189
|
+
if (!e) return null;
|
|
1190
|
+
let r = e;
|
|
1212
1191
|
for (; r; ) {
|
|
1213
1192
|
const s = window.getComputedStyle(r).backgroundColor;
|
|
1214
|
-
if (!
|
|
1193
|
+
if (!Br(s)) return s;
|
|
1215
1194
|
r = r.parentElement;
|
|
1216
1195
|
}
|
|
1217
1196
|
return null;
|
|
1218
|
-
},
|
|
1219
|
-
const
|
|
1220
|
-
return
|
|
1221
|
-
if (
|
|
1222
|
-
const s =
|
|
1197
|
+
}, Ft = () => {
|
|
1198
|
+
const e = qe(null), [r, a] = ye(null);
|
|
1199
|
+
return ue(() => {
|
|
1200
|
+
if (e.current) {
|
|
1201
|
+
const s = Fr(e.current);
|
|
1223
1202
|
a(s);
|
|
1224
1203
|
}
|
|
1225
|
-
}, []), { ref:
|
|
1226
|
-
}
|
|
1204
|
+
}, []), { ref: e, bgColor: r };
|
|
1205
|
+
};
|
|
1206
|
+
function Rt(e, r, a) {
|
|
1207
|
+
ue(() => {
|
|
1208
|
+
const s = r;
|
|
1209
|
+
return window.addEventListener(e, s, a), () => {
|
|
1210
|
+
window.removeEventListener(e, s, a);
|
|
1211
|
+
};
|
|
1212
|
+
}, [e, r, a]);
|
|
1213
|
+
}
|
|
1214
|
+
const Mt = {
|
|
1215
|
+
passive: !0
|
|
1216
|
+
};
|
|
1217
|
+
function zr() {
|
|
1218
|
+
const [e, r] = ye({
|
|
1219
|
+
width: 0,
|
|
1220
|
+
height: 0
|
|
1221
|
+
}), a = xe(() => {
|
|
1222
|
+
r({ width: window.innerWidth || 0, height: window.innerHeight || 0 });
|
|
1223
|
+
}, []);
|
|
1224
|
+
return Rt("resize", a, Mt), Rt("orientationchange", a, Mt), ue(a, []), e;
|
|
1225
|
+
}
|
|
1226
|
+
function Wr(e = 768) {
|
|
1227
|
+
const { width: r } = zr();
|
|
1228
|
+
return ya(() => r <= e, [r, e]);
|
|
1229
|
+
}
|
|
1230
|
+
const Gr = X((e, r) => {
|
|
1227
1231
|
const {
|
|
1228
1232
|
icon: a,
|
|
1229
1233
|
children: s,
|
|
1230
1234
|
variant: i = "filled",
|
|
1231
|
-
label:
|
|
1232
|
-
isHidden:
|
|
1233
|
-
colorScheme:
|
|
1234
|
-
size:
|
|
1235
|
-
position:
|
|
1236
|
-
positionOffset:
|
|
1237
|
-
cutoutBackground:
|
|
1235
|
+
label: o,
|
|
1236
|
+
isHidden: l = !1,
|
|
1237
|
+
colorScheme: u = "red",
|
|
1238
|
+
size: c = 20,
|
|
1239
|
+
position: p = "top-right",
|
|
1240
|
+
positionOffset: h = { x: 0, y: 0 },
|
|
1241
|
+
cutoutBackground: m,
|
|
1238
1242
|
isDisabled: b,
|
|
1239
|
-
className:
|
|
1240
|
-
"data-testid":
|
|
1241
|
-
...
|
|
1242
|
-
} =
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1243
|
+
className: g,
|
|
1244
|
+
"data-testid": y = "badge",
|
|
1245
|
+
...S
|
|
1246
|
+
} = e, { onClick: x, onPointerDown: C } = S, { ref: _, bgColor: L } = Ft(), E = m || L, j = !b && (!!x || !!C), T = Ce(he.badge__container, he[`position-${p}`]), O = Ce(
|
|
1247
|
+
g,
|
|
1248
|
+
he.badge__content,
|
|
1249
|
+
he[`color-${u}`],
|
|
1250
|
+
he[`variant-${i}`],
|
|
1247
1251
|
{
|
|
1248
|
-
[
|
|
1249
|
-
[
|
|
1250
|
-
[
|
|
1252
|
+
[he.disabled]: b,
|
|
1253
|
+
[he.icon]: !!a,
|
|
1254
|
+
[he.interactive]: j
|
|
1251
1255
|
}
|
|
1252
1256
|
), U = {
|
|
1253
|
-
"--badge-height": `${
|
|
1254
|
-
"--badge-offset-x": `${
|
|
1255
|
-
"--badge-offset-y": `${
|
|
1256
|
-
...
|
|
1257
|
+
"--badge-height": `${c}px`,
|
|
1258
|
+
"--badge-offset-x": `${h.x}px`,
|
|
1259
|
+
"--badge-offset-y": `${h.y}px`,
|
|
1260
|
+
...E && { "--badge-cutout-bg": E },
|
|
1257
1261
|
...i === "transparent" && { "--badge-cutout-bg": "transparent" }
|
|
1258
|
-
},
|
|
1259
|
-
|
|
1262
|
+
}, B = (a == null ? void 0 : a({})) || o, z = (N) => {
|
|
1263
|
+
j && (x == null || x(N));
|
|
1260
1264
|
};
|
|
1261
|
-
return /* @__PURE__ */
|
|
1265
|
+
return /* @__PURE__ */ n.jsxs("div", { className: he.wrapper, ref: _, "data-testid": y + "-wrapper", children: [
|
|
1262
1266
|
s,
|
|
1263
|
-
!
|
|
1267
|
+
!l && /* @__PURE__ */ n.jsx(
|
|
1264
1268
|
"span",
|
|
1265
1269
|
{
|
|
1266
|
-
className:
|
|
1270
|
+
className: T,
|
|
1267
1271
|
style: U,
|
|
1268
|
-
"data-testid":
|
|
1269
|
-
children: /* @__PURE__ */
|
|
1272
|
+
"data-testid": y + "-container",
|
|
1273
|
+
children: /* @__PURE__ */ n.jsx(
|
|
1270
1274
|
"span",
|
|
1271
1275
|
{
|
|
1272
|
-
...
|
|
1276
|
+
...S,
|
|
1273
1277
|
onClick: z,
|
|
1274
|
-
className:
|
|
1275
|
-
"data-testid":
|
|
1278
|
+
className: O,
|
|
1279
|
+
"data-testid": y + "-content",
|
|
1276
1280
|
ref: r,
|
|
1277
1281
|
"aria-disabled": b,
|
|
1278
|
-
children:
|
|
1282
|
+
children: B
|
|
1279
1283
|
}
|
|
1280
1284
|
)
|
|
1281
1285
|
}
|
|
1282
1286
|
)
|
|
1283
1287
|
] });
|
|
1284
|
-
}),
|
|
1285
|
-
container:
|
|
1286
|
-
image:
|
|
1287
|
-
loading:
|
|
1288
|
-
},
|
|
1289
|
-
loader:
|
|
1290
|
-
spin:
|
|
1291
|
-
accent:
|
|
1292
|
-
neutral:
|
|
1293
|
-
positive:
|
|
1294
|
-
negative:
|
|
1295
|
-
gray:
|
|
1296
|
-
special:
|
|
1297
|
-
contrast:
|
|
1298
|
-
container:
|
|
1299
|
-
overlay:
|
|
1288
|
+
}), Hr = "_container_op5yl_7", Vr = "_image_op5yl_22", Zr = "_loading_op5yl_34", rt = {
|
|
1289
|
+
container: Hr,
|
|
1290
|
+
image: Vr,
|
|
1291
|
+
loading: Zr
|
|
1292
|
+
}, Yr = "_loader_isv17_1", Kr = "_spin_isv17_1", Jr = "_accent_isv17_19", Xr = "_neutral_isv17_23", Qr = "_positive_isv17_27", es = "_negative_isv17_31", ts = "_gray_isv17_35", as = "_special_isv17_39", rs = "_contrast_isv17_43", ss = "_container_isv17_47", ns = "_overlay_isv17_57", Pe = {
|
|
1293
|
+
loader: Yr,
|
|
1294
|
+
spin: Kr,
|
|
1295
|
+
accent: Jr,
|
|
1296
|
+
neutral: Xr,
|
|
1297
|
+
positive: Qr,
|
|
1298
|
+
negative: es,
|
|
1299
|
+
gray: ts,
|
|
1300
|
+
special: as,
|
|
1301
|
+
contrast: rs,
|
|
1302
|
+
container: ss,
|
|
1303
|
+
overlay: ns,
|
|
1300
1304
|
"size-16": "_size-16_isv17_72",
|
|
1301
1305
|
"size-24": "_size-24_isv17_76",
|
|
1302
1306
|
"size-48": "_size-48_isv17_80",
|
|
1303
1307
|
"size-64": "_size-64_isv17_84",
|
|
1304
1308
|
"size-96": "_size-96_isv17_88"
|
|
1305
|
-
},
|
|
1309
|
+
}, zt = X(
|
|
1306
1310
|
({
|
|
1307
|
-
size:
|
|
1311
|
+
size: e = 24,
|
|
1308
1312
|
variant: r = "accent",
|
|
1309
1313
|
className: a,
|
|
1310
1314
|
"data-testid": s = "loader",
|
|
1311
1315
|
style: i,
|
|
1312
|
-
...
|
|
1313
|
-
},
|
|
1314
|
-
const
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1316
|
+
...o
|
|
1317
|
+
}, l) => {
|
|
1318
|
+
const u = Ce(
|
|
1319
|
+
Pe.loader,
|
|
1320
|
+
Pe[r],
|
|
1321
|
+
Pe[`size-${e}`],
|
|
1318
1322
|
a
|
|
1319
1323
|
);
|
|
1320
|
-
return /* @__PURE__ */
|
|
1324
|
+
return /* @__PURE__ */ n.jsx(
|
|
1321
1325
|
"svg",
|
|
1322
1326
|
{
|
|
1323
|
-
ref:
|
|
1324
|
-
className:
|
|
1327
|
+
ref: l,
|
|
1328
|
+
className: u,
|
|
1325
1329
|
fill: "none",
|
|
1326
1330
|
viewBox: "0 0 16 16",
|
|
1327
1331
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1328
1332
|
"data-testid": s,
|
|
1329
1333
|
style: i,
|
|
1330
|
-
...
|
|
1331
|
-
children: /* @__PURE__ */
|
|
1334
|
+
...o,
|
|
1335
|
+
children: /* @__PURE__ */ n.jsx(
|
|
1332
1336
|
"path",
|
|
1333
1337
|
{
|
|
1334
1338
|
d: "M14 8C14 11.3137 11.3137 14 8 14C4.68629 14 2 11.3137 2 8C2 4.68629 4.68629 2 8 2",
|
|
@@ -1340,38 +1344,38 @@ const yr = 3, mr = (t) => {
|
|
|
1340
1344
|
}
|
|
1341
1345
|
);
|
|
1342
1346
|
}
|
|
1343
|
-
),
|
|
1347
|
+
), os = X((e, r) => {
|
|
1344
1348
|
const {
|
|
1345
1349
|
loading: a = !1,
|
|
1346
1350
|
size: s = 24,
|
|
1347
1351
|
variant: i = "accent",
|
|
1348
|
-
children:
|
|
1349
|
-
className:
|
|
1350
|
-
style:
|
|
1351
|
-
"data-testid":
|
|
1352
|
-
...
|
|
1353
|
-
} =
|
|
1354
|
-
return /* @__PURE__ */
|
|
1355
|
-
|
|
1356
|
-
a && /* @__PURE__ */
|
|
1352
|
+
children: o,
|
|
1353
|
+
className: l,
|
|
1354
|
+
style: u,
|
|
1355
|
+
"data-testid": c,
|
|
1356
|
+
...p
|
|
1357
|
+
} = e, h = Ce(Pe.container, l);
|
|
1358
|
+
return /* @__PURE__ */ n.jsxs("div", { ref: r, className: h, style: u, "data-testid": c, ...p, children: [
|
|
1359
|
+
o,
|
|
1360
|
+
a && /* @__PURE__ */ n.jsx("div", { className: Pe.overlay, children: /* @__PURE__ */ n.jsx(zt, { size: s, variant: i, "data-testid": `${c}-spinner` }) })
|
|
1357
1361
|
] });
|
|
1358
|
-
}),
|
|
1359
|
-
|
|
1362
|
+
}), is = X((e, r) => e.children ? /* @__PURE__ */ n.jsx(
|
|
1363
|
+
os,
|
|
1360
1364
|
{
|
|
1361
1365
|
ref: r,
|
|
1362
|
-
...
|
|
1366
|
+
...e
|
|
1363
1367
|
}
|
|
1364
|
-
) : /* @__PURE__ */
|
|
1368
|
+
) : /* @__PURE__ */ n.jsx(zt, { ref: r, ...e })), ls = ({ width: e = 48, height: r = 48, className: a, "data-testid": s }) => /* @__PURE__ */ n.jsx(
|
|
1365
1369
|
"svg",
|
|
1366
1370
|
{
|
|
1367
|
-
width:
|
|
1371
|
+
width: e,
|
|
1368
1372
|
height: r,
|
|
1369
1373
|
viewBox: "0 0 48 48",
|
|
1370
1374
|
fill: "none",
|
|
1371
1375
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1372
1376
|
className: a,
|
|
1373
1377
|
"data-testid": s,
|
|
1374
|
-
children: /* @__PURE__ */
|
|
1378
|
+
children: /* @__PURE__ */ n.jsx(
|
|
1375
1379
|
"path",
|
|
1376
1380
|
{
|
|
1377
1381
|
d: "M32.4 42H13.8627C12.6511 42 12.0453 42 11.7648 41.7604C11.5214 41.5525 11.3922 41.2407 11.4173 40.9215C11.4462 40.5538 11.8746 40.1254 12.7314 39.2686L29.7373 22.2627C30.5293 21.4707 30.9253 21.0747 31.382 20.9263C31.7837 20.7958 32.2163 20.7958 32.618 20.9263C33.0747 21.0747 33.4707 21.4707 34.2627 22.2627L42 30V32.4M32.4 42C35.7603 42 37.4405 42 38.7239 41.346C39.8529 40.7708 40.7708 39.8529 41.346 38.7239C42 37.4405 42 35.7603 42 32.4M32.4 42H15.6C12.2397 42 10.5595 42 9.27606 41.346C8.14708 40.7708 7.2292 39.8529 6.65396 38.7239C6 37.4405 6 35.7603 6 32.4V15.6C6 12.2397 6 10.5595 6.65396 9.27606C7.2292 8.14708 8.14708 7.2292 9.27606 6.65396C10.5595 6 12.2397 6 15.6 6H32.4C35.7603 6 37.4405 6 38.7239 6.65396C39.8529 7.2292 40.7708 8.14708 41.346 9.27606C42 10.5595 42 12.2397 42 15.6V32.4M21 17C21 19.2091 19.2091 21 17 21C14.7909 21 13 19.2091 13 17C13 14.7909 14.7909 13 17 13C19.2091 13 21 14.7909 21 17Z",
|
|
@@ -1382,183 +1386,183 @@ const yr = 3, mr = (t) => {
|
|
|
1382
1386
|
}
|
|
1383
1387
|
)
|
|
1384
1388
|
}
|
|
1385
|
-
),
|
|
1389
|
+
), oi = X((e, r) => {
|
|
1386
1390
|
const {
|
|
1387
1391
|
alt: a = "",
|
|
1388
1392
|
loading: s = "lazy",
|
|
1389
1393
|
src: i,
|
|
1390
|
-
isLoading:
|
|
1391
|
-
className:
|
|
1392
|
-
"data-testid":
|
|
1393
|
-
onError:
|
|
1394
|
-
onLoad:
|
|
1395
|
-
...
|
|
1396
|
-
} =
|
|
1397
|
-
|
|
1394
|
+
isLoading: o = !1,
|
|
1395
|
+
className: l,
|
|
1396
|
+
"data-testid": u = "image",
|
|
1397
|
+
onError: c,
|
|
1398
|
+
onLoad: p,
|
|
1399
|
+
...h
|
|
1400
|
+
} = e, [m, b] = ye("loading"), g = m === "error", y = (o || m === "loading") && !g, S = m === "loaded" && !o, x = Ce(
|
|
1401
|
+
rt.image,
|
|
1398
1402
|
{
|
|
1399
|
-
[
|
|
1403
|
+
[rt.loading]: y
|
|
1400
1404
|
},
|
|
1401
|
-
|
|
1402
|
-
), C =
|
|
1403
|
-
(
|
|
1404
|
-
b("loaded"),
|
|
1405
|
+
l
|
|
1406
|
+
), C = xe(
|
|
1407
|
+
(E) => {
|
|
1408
|
+
b("loaded"), p == null || p(E);
|
|
1405
1409
|
},
|
|
1406
|
-
[
|
|
1407
|
-
),
|
|
1408
|
-
(
|
|
1409
|
-
b("error"),
|
|
1410
|
+
[p]
|
|
1411
|
+
), _ = xe(
|
|
1412
|
+
(E) => {
|
|
1413
|
+
b("error"), c == null || c(E);
|
|
1410
1414
|
},
|
|
1411
|
-
[
|
|
1412
|
-
),
|
|
1413
|
-
loader: /* @__PURE__ */
|
|
1414
|
-
/* @__PURE__ */
|
|
1415
|
-
/* @__PURE__ */
|
|
1415
|
+
[c]
|
|
1416
|
+
), L = {
|
|
1417
|
+
loader: /* @__PURE__ */ n.jsxs(Oe, { children: [
|
|
1418
|
+
/* @__PURE__ */ n.jsx(is, { size: 48, variant: "special", "data-testid": `${u}-loader` }),
|
|
1419
|
+
/* @__PURE__ */ n.jsx(
|
|
1416
1420
|
"img",
|
|
1417
1421
|
{
|
|
1418
1422
|
alt: a,
|
|
1419
1423
|
src: i,
|
|
1420
1424
|
onLoad: C,
|
|
1421
|
-
onError:
|
|
1425
|
+
onError: _,
|
|
1422
1426
|
style: { display: "none" }
|
|
1423
1427
|
}
|
|
1424
1428
|
)
|
|
1425
1429
|
] }),
|
|
1426
|
-
error: /* @__PURE__ */
|
|
1427
|
-
image: /* @__PURE__ */
|
|
1430
|
+
error: /* @__PURE__ */ n.jsx(ls, { "data-testid": `${u}-fallback` }),
|
|
1431
|
+
image: /* @__PURE__ */ n.jsx(
|
|
1428
1432
|
"img",
|
|
1429
1433
|
{
|
|
1430
1434
|
ref: r,
|
|
1431
1435
|
alt: a,
|
|
1432
|
-
"data-testid":
|
|
1436
|
+
"data-testid": u,
|
|
1433
1437
|
loading: s,
|
|
1434
1438
|
src: i,
|
|
1435
|
-
className:
|
|
1439
|
+
className: x
|
|
1436
1440
|
}
|
|
1437
1441
|
)
|
|
1438
1442
|
};
|
|
1439
|
-
return
|
|
1443
|
+
return ue(() => {
|
|
1440
1444
|
if (!i) {
|
|
1441
1445
|
b("error");
|
|
1442
1446
|
return;
|
|
1443
1447
|
}
|
|
1444
1448
|
b("loading");
|
|
1445
|
-
}, [i]), /* @__PURE__ */
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
+
}, [i]), /* @__PURE__ */ n.jsxs("div", { className: rt.container, "data-testid": `${u}-container`, ...h, children: [
|
|
1450
|
+
y && L.loader,
|
|
1451
|
+
g && L.error,
|
|
1452
|
+
S && L.image
|
|
1449
1453
|
] });
|
|
1450
|
-
}),
|
|
1451
|
-
locale:
|
|
1452
|
-
}),
|
|
1453
|
-
const
|
|
1454
|
-
if (!
|
|
1454
|
+
}), cs = {}, Wt = Pt({
|
|
1455
|
+
locale: cs
|
|
1456
|
+
}), ds = () => {
|
|
1457
|
+
const e = qt(Wt);
|
|
1458
|
+
if (!e)
|
|
1455
1459
|
throw new Error("useConfig must be used within a ConfigProvider");
|
|
1456
|
-
return
|
|
1457
|
-
},
|
|
1458
|
-
const { locale:
|
|
1459
|
-
return
|
|
1460
|
-
},
|
|
1461
|
-
locale:
|
|
1460
|
+
return e;
|
|
1461
|
+
}, ii = () => {
|
|
1462
|
+
const { locale: e } = ds();
|
|
1463
|
+
return e;
|
|
1464
|
+
}, us = {}, _s = {}, ps = {}, li = ({
|
|
1465
|
+
locale: e = {},
|
|
1462
1466
|
theme: r,
|
|
1463
1467
|
children: a,
|
|
1464
1468
|
className: s
|
|
1465
|
-
}) => (
|
|
1469
|
+
}) => (va(() => {
|
|
1466
1470
|
if (r) {
|
|
1467
1471
|
const i = document.documentElement;
|
|
1468
|
-
Object.entries(r).forEach(([
|
|
1469
|
-
i.style.setProperty(
|
|
1472
|
+
Object.entries(r).forEach(([o, l]) => {
|
|
1473
|
+
i.style.setProperty(o, l);
|
|
1470
1474
|
});
|
|
1471
1475
|
}
|
|
1472
|
-
}, [r]), /* @__PURE__ */
|
|
1473
|
-
/* @__PURE__ */
|
|
1476
|
+
}, [r]), /* @__PURE__ */ n.jsxs(Oe, { children: [
|
|
1477
|
+
/* @__PURE__ */ n.jsx(
|
|
1474
1478
|
"div",
|
|
1475
1479
|
{
|
|
1476
1480
|
"data-testid": "ConfigProvider-component",
|
|
1477
|
-
className:
|
|
1481
|
+
className: I(us, _s, ps, s)
|
|
1478
1482
|
}
|
|
1479
1483
|
),
|
|
1480
|
-
/* @__PURE__ */
|
|
1481
|
-
] })),
|
|
1482
|
-
tag:
|
|
1483
|
-
label:
|
|
1484
|
-
iconWrapper:
|
|
1485
|
-
medium:
|
|
1486
|
-
large:
|
|
1487
|
-
disabled:
|
|
1488
|
-
neutral:
|
|
1489
|
-
positive:
|
|
1490
|
-
negative:
|
|
1491
|
-
warning:
|
|
1492
|
-
vivid:
|
|
1493
|
-
special:
|
|
1494
|
-
accent:
|
|
1495
|
-
blue:
|
|
1496
|
-
lovely:
|
|
1497
|
-
dreamy:
|
|
1498
|
-
},
|
|
1484
|
+
/* @__PURE__ */ n.jsx(Wt.Provider, { value: { locale: e }, children: a })
|
|
1485
|
+
] })), ci = {}, fs = "_tag_1llsi_1", hs = "_label_1llsi_16", gs = "_iconWrapper_1llsi_20", bs = "_medium_1llsi_27", ms = "_large_1llsi_33", ys = "_disabled_1llsi_43", vs = "_neutral_1llsi_47", xs = "_positive_1llsi_53", Cs = "_negative_1llsi_59", ws = "_warning_1llsi_65", Ss = "_vivid_1llsi_71", Ls = "_special_1llsi_77", Es = "_accent_1llsi_84", ks = "_blue_1llsi_90", js = "_lovely_1llsi_96", $s = "_dreamy_1llsi_102", Le = {
|
|
1486
|
+
tag: fs,
|
|
1487
|
+
label: hs,
|
|
1488
|
+
iconWrapper: gs,
|
|
1489
|
+
medium: bs,
|
|
1490
|
+
large: ms,
|
|
1491
|
+
disabled: ys,
|
|
1492
|
+
neutral: vs,
|
|
1493
|
+
positive: xs,
|
|
1494
|
+
negative: Cs,
|
|
1495
|
+
warning: ws,
|
|
1496
|
+
vivid: Ss,
|
|
1497
|
+
special: Ls,
|
|
1498
|
+
accent: Es,
|
|
1499
|
+
blue: ks,
|
|
1500
|
+
lovely: js,
|
|
1501
|
+
dreamy: $s
|
|
1502
|
+
}, di = X((e, r) => {
|
|
1499
1503
|
const {
|
|
1500
1504
|
className: a,
|
|
1501
1505
|
children: s,
|
|
1502
1506
|
componentStyle: i = "neutral",
|
|
1503
|
-
size:
|
|
1504
|
-
disabled:
|
|
1505
|
-
showLabel:
|
|
1506
|
-
slotStart:
|
|
1507
|
-
slotEnd:
|
|
1508
|
-
slotStartWrapperProps:
|
|
1509
|
-
slotEndWrapperProps:
|
|
1507
|
+
size: o = "medium",
|
|
1508
|
+
disabled: l = !1,
|
|
1509
|
+
showLabel: u = !!s,
|
|
1510
|
+
slotStart: c,
|
|
1511
|
+
slotEnd: p,
|
|
1512
|
+
slotStartWrapperProps: h = {},
|
|
1513
|
+
slotEndWrapperProps: m = {},
|
|
1510
1514
|
"data-testid": b
|
|
1511
|
-
} =
|
|
1512
|
-
return /* @__PURE__ */
|
|
1515
|
+
} = e, { className: g, ...y } = h, { className: S, ...x } = m;
|
|
1516
|
+
return /* @__PURE__ */ n.jsxs(
|
|
1513
1517
|
"div",
|
|
1514
1518
|
{
|
|
1515
|
-
className:
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
+
className: I(
|
|
1520
|
+
Le.tag,
|
|
1521
|
+
Le[o],
|
|
1522
|
+
Le[i],
|
|
1519
1523
|
{
|
|
1520
|
-
[
|
|
1521
|
-
[
|
|
1522
|
-
[
|
|
1524
|
+
[Le.disabled]: l,
|
|
1525
|
+
[pe["typography-label-3-regular"]]: o === "medium",
|
|
1526
|
+
[pe["typography-subtitle-1-semibold"]]: o === "large"
|
|
1523
1527
|
},
|
|
1524
1528
|
a
|
|
1525
1529
|
),
|
|
1526
1530
|
"data-testid": b || "tag-component",
|
|
1527
1531
|
ref: r,
|
|
1528
1532
|
children: [
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1533
|
+
c && /* @__PURE__ */ n.jsx("span", { className: I([Le.iconWrapper, g]), ...y, children: c }),
|
|
1534
|
+
u && /* @__PURE__ */ n.jsx("span", { className: I([Le.label]), children: s }),
|
|
1535
|
+
p && /* @__PURE__ */ n.jsx("span", { className: I([Le.iconWrapper, S]), ...x, children: p })
|
|
1532
1536
|
]
|
|
1533
1537
|
}
|
|
1534
1538
|
);
|
|
1535
|
-
}),
|
|
1536
|
-
checkbox:
|
|
1537
|
-
input:
|
|
1538
|
-
icon:
|
|
1539
|
-
container:
|
|
1540
|
-
error:
|
|
1541
|
-
checkboxWrapper:
|
|
1542
|
-
medium:
|
|
1543
|
-
large:
|
|
1544
|
-
label:
|
|
1545
|
-
},
|
|
1546
|
-
width:
|
|
1539
|
+
}), Rs = "_checkbox_17txq_43", Ms = "_input_17txq_64", Is = "_icon_17txq_72", Ts = "_container_17txq_92", As = "_error_17txq_143", Ns = "_checkboxWrapper_17txq_156", Ds = "_medium_17txq_211", Os = "_large_17txq_216", Ps = "_label_17txq_258", be = {
|
|
1540
|
+
checkbox: Rs,
|
|
1541
|
+
input: Ms,
|
|
1542
|
+
icon: Is,
|
|
1543
|
+
container: Ts,
|
|
1544
|
+
error: As,
|
|
1545
|
+
checkboxWrapper: Ns,
|
|
1546
|
+
medium: Ds,
|
|
1547
|
+
large: Os,
|
|
1548
|
+
label: Ps
|
|
1549
|
+
}, qs = ({
|
|
1550
|
+
width: e = 12,
|
|
1547
1551
|
height: r = 9,
|
|
1548
1552
|
className: a = "",
|
|
1549
1553
|
color: s = "currentColor",
|
|
1550
1554
|
...i
|
|
1551
|
-
}) => /* @__PURE__ */
|
|
1555
|
+
}) => /* @__PURE__ */ n.jsx(
|
|
1552
1556
|
"svg",
|
|
1553
1557
|
{
|
|
1554
1558
|
className: a,
|
|
1555
|
-
width:
|
|
1559
|
+
width: e,
|
|
1556
1560
|
height: r,
|
|
1557
1561
|
viewBox: "0 0 14 10",
|
|
1558
1562
|
fill: "none",
|
|
1559
1563
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1560
1564
|
...i,
|
|
1561
|
-
children: /* @__PURE__ */
|
|
1565
|
+
children: /* @__PURE__ */ n.jsx(
|
|
1562
1566
|
"path",
|
|
1563
1567
|
{
|
|
1564
1568
|
fillRule: "evenodd",
|
|
@@ -1568,23 +1572,23 @@ const yr = 3, mr = (t) => {
|
|
|
1568
1572
|
}
|
|
1569
1573
|
)
|
|
1570
1574
|
}
|
|
1571
|
-
),
|
|
1572
|
-
width:
|
|
1575
|
+
), Us = ({
|
|
1576
|
+
width: e = 12,
|
|
1573
1577
|
height: r = 2,
|
|
1574
1578
|
className: a = "",
|
|
1575
1579
|
color: s = "currentColor",
|
|
1576
1580
|
...i
|
|
1577
|
-
}) => /* @__PURE__ */
|
|
1581
|
+
}) => /* @__PURE__ */ n.jsx(
|
|
1578
1582
|
"svg",
|
|
1579
1583
|
{
|
|
1580
1584
|
className: a,
|
|
1581
|
-
width:
|
|
1585
|
+
width: e,
|
|
1582
1586
|
height: r,
|
|
1583
1587
|
viewBox: "0 0 12 2",
|
|
1584
1588
|
fill: "none",
|
|
1585
1589
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1586
1590
|
...i,
|
|
1587
|
-
children: /* @__PURE__ */
|
|
1591
|
+
children: /* @__PURE__ */ n.jsx(
|
|
1588
1592
|
"path",
|
|
1589
1593
|
{
|
|
1590
1594
|
fillRule: "evenodd",
|
|
@@ -1594,267 +1598,267 @@ const yr = 3, mr = (t) => {
|
|
|
1594
1598
|
}
|
|
1595
1599
|
)
|
|
1596
1600
|
}
|
|
1597
|
-
),
|
|
1601
|
+
), Bs = {
|
|
1598
1602
|
medium: { width: 10.83, height: 7.5 },
|
|
1599
1603
|
large: { width: 13, height: 9 }
|
|
1600
|
-
},
|
|
1601
|
-
size:
|
|
1604
|
+
}, Fs = ({
|
|
1605
|
+
size: e,
|
|
1602
1606
|
isChecked: r,
|
|
1603
1607
|
isDisabled: a,
|
|
1604
1608
|
indeterminate: s,
|
|
1605
1609
|
dataTestId: i
|
|
1606
1610
|
}) => {
|
|
1607
|
-
const { width:
|
|
1608
|
-
return /* @__PURE__ */
|
|
1611
|
+
const { width: o, height: l } = Bs[e];
|
|
1612
|
+
return /* @__PURE__ */ n.jsx(
|
|
1609
1613
|
"div",
|
|
1610
1614
|
{
|
|
1611
|
-
className:
|
|
1615
|
+
className: be.icon,
|
|
1612
1616
|
"data-testid": `${i}-icon`,
|
|
1613
1617
|
"data-checked": r,
|
|
1614
1618
|
"data-disabled": a,
|
|
1615
1619
|
"data-indeterminate": s,
|
|
1616
|
-
children: s ? /* @__PURE__ */
|
|
1620
|
+
children: s ? /* @__PURE__ */ n.jsx(Us, { width: o, height: l }) : /* @__PURE__ */ n.jsx(qs, { width: o, height: l })
|
|
1617
1621
|
}
|
|
1618
1622
|
);
|
|
1619
|
-
},
|
|
1623
|
+
}, ui = X((e, r) => {
|
|
1620
1624
|
const {
|
|
1621
1625
|
name: a,
|
|
1622
1626
|
value: s,
|
|
1623
1627
|
size: i = "medium",
|
|
1624
|
-
indeterminate:
|
|
1625
|
-
loading:
|
|
1626
|
-
error:
|
|
1627
|
-
disabled:
|
|
1628
|
-
containerClassName:
|
|
1629
|
-
className:
|
|
1630
|
-
containerStyle:
|
|
1628
|
+
indeterminate: o = !1,
|
|
1629
|
+
loading: l = !1,
|
|
1630
|
+
error: u,
|
|
1631
|
+
disabled: c = !1,
|
|
1632
|
+
containerClassName: p,
|
|
1633
|
+
className: h,
|
|
1634
|
+
containerStyle: m,
|
|
1631
1635
|
style: b,
|
|
1632
|
-
children:
|
|
1633
|
-
clickableLabel:
|
|
1634
|
-
tabIndex:
|
|
1635
|
-
onChange:
|
|
1636
|
+
children: g,
|
|
1637
|
+
clickableLabel: y = !0,
|
|
1638
|
+
tabIndex: S,
|
|
1639
|
+
onChange: x,
|
|
1636
1640
|
"data-testid": C = "checkbox"
|
|
1637
|
-
} =
|
|
1638
|
-
|
|
1639
|
-
|
|
1641
|
+
} = e, [_, L] = ye(!1), E = s ?? _, A = c || l, j = !!u, T = E || o, O = I(be.container, be[i], p), U = I(
|
|
1642
|
+
be.checkbox,
|
|
1643
|
+
be[i],
|
|
1640
1644
|
{
|
|
1641
|
-
[
|
|
1645
|
+
[be.error]: j
|
|
1642
1646
|
},
|
|
1643
|
-
|
|
1644
|
-
),
|
|
1645
|
-
|
|
1646
|
-
}, z = (
|
|
1647
|
-
if (
|
|
1648
|
-
|
|
1649
|
-
const
|
|
1650
|
-
|
|
1651
|
-
}
|
|
1652
|
-
},
|
|
1653
|
-
|
|
1654
|
-
},
|
|
1655
|
-
return /* @__PURE__ */
|
|
1647
|
+
h
|
|
1648
|
+
), B = ($) => {
|
|
1649
|
+
A || (L($.target.checked), x == null || x($.target.checked, $));
|
|
1650
|
+
}, z = ($) => {
|
|
1651
|
+
if ($.key === "Enter" && !A) {
|
|
1652
|
+
$.preventDefault();
|
|
1653
|
+
const P = !T;
|
|
1654
|
+
L(P), x == null || x(P);
|
|
1655
|
+
}
|
|
1656
|
+
}, N = ($) => {
|
|
1657
|
+
y || $.preventDefault();
|
|
1658
|
+
}, v = ($) => $.stopPropagation();
|
|
1659
|
+
return /* @__PURE__ */ n.jsxs(
|
|
1656
1660
|
"label",
|
|
1657
1661
|
{
|
|
1658
|
-
className:
|
|
1662
|
+
className: O,
|
|
1659
1663
|
htmlFor: a,
|
|
1660
|
-
style:
|
|
1664
|
+
style: m,
|
|
1661
1665
|
"data-testid": C,
|
|
1662
|
-
"data-clickable-label":
|
|
1666
|
+
"data-clickable-label": y,
|
|
1663
1667
|
children: [
|
|
1664
|
-
/* @__PURE__ */
|
|
1668
|
+
/* @__PURE__ */ n.jsx("div", { className: be.checkboxWrapper, children: /* @__PURE__ */ n.jsxs(
|
|
1665
1669
|
"div",
|
|
1666
1670
|
{
|
|
1667
|
-
tabIndex:
|
|
1671
|
+
tabIndex: S || 0,
|
|
1668
1672
|
className: U,
|
|
1669
1673
|
style: b,
|
|
1670
1674
|
onKeyDown: z,
|
|
1671
|
-
"aria-checked":
|
|
1672
|
-
"aria-disabled":
|
|
1673
|
-
"aria-invalid":
|
|
1674
|
-
"aria-describedby":
|
|
1675
|
+
"aria-checked": T,
|
|
1676
|
+
"aria-disabled": A,
|
|
1677
|
+
"aria-invalid": j,
|
|
1678
|
+
"aria-describedby": u ? `${a}-error` : void 0,
|
|
1675
1679
|
"data-testid": `${C}-label`,
|
|
1676
1680
|
children: [
|
|
1677
|
-
/* @__PURE__ */
|
|
1681
|
+
/* @__PURE__ */ n.jsx(
|
|
1678
1682
|
"input",
|
|
1679
1683
|
{
|
|
1680
1684
|
ref: r,
|
|
1681
1685
|
type: "checkbox",
|
|
1682
1686
|
id: a,
|
|
1683
1687
|
name: a,
|
|
1684
|
-
checked:
|
|
1685
|
-
disabled:
|
|
1686
|
-
className:
|
|
1687
|
-
onChange:
|
|
1688
|
-
onClick:
|
|
1689
|
-
"aria-checked":
|
|
1690
|
-
"aria-invalid":
|
|
1691
|
-
"aria-describedby":
|
|
1688
|
+
checked: T,
|
|
1689
|
+
disabled: A,
|
|
1690
|
+
className: be.input,
|
|
1691
|
+
onChange: B,
|
|
1692
|
+
onClick: v,
|
|
1693
|
+
"aria-checked": T,
|
|
1694
|
+
"aria-invalid": j,
|
|
1695
|
+
"aria-describedby": u ? `${a}-error` : void 0,
|
|
1692
1696
|
"data-testid": `${C}-input`
|
|
1693
1697
|
}
|
|
1694
1698
|
),
|
|
1695
|
-
/* @__PURE__ */
|
|
1696
|
-
|
|
1699
|
+
/* @__PURE__ */ n.jsx(
|
|
1700
|
+
Fs,
|
|
1697
1701
|
{
|
|
1698
1702
|
name: a,
|
|
1699
1703
|
size: i,
|
|
1700
|
-
isChecked:
|
|
1701
|
-
isDisabled:
|
|
1702
|
-
indeterminate:
|
|
1704
|
+
isChecked: T,
|
|
1705
|
+
isDisabled: A,
|
|
1706
|
+
indeterminate: o,
|
|
1703
1707
|
dataTestId: C
|
|
1704
1708
|
}
|
|
1705
1709
|
)
|
|
1706
1710
|
]
|
|
1707
1711
|
}
|
|
1708
1712
|
) }),
|
|
1709
|
-
|
|
1713
|
+
g && /* @__PURE__ */ n.jsx(
|
|
1710
1714
|
"span",
|
|
1711
1715
|
{
|
|
1712
1716
|
"data-testid": `${C}-label-text`,
|
|
1713
|
-
"data-clickable-label":
|
|
1714
|
-
className:
|
|
1715
|
-
onClick:
|
|
1716
|
-
children:
|
|
1717
|
+
"data-clickable-label": y,
|
|
1718
|
+
className: be.label,
|
|
1719
|
+
onClick: N,
|
|
1720
|
+
children: g
|
|
1717
1721
|
}
|
|
1718
1722
|
)
|
|
1719
1723
|
]
|
|
1720
1724
|
}
|
|
1721
1725
|
);
|
|
1722
|
-
}),
|
|
1723
|
-
typography:
|
|
1724
|
-
disabled:
|
|
1725
|
-
primary:
|
|
1726
|
-
secondary:
|
|
1727
|
-
tertiary:
|
|
1728
|
-
accent:
|
|
1726
|
+
}), zs = "_typography_zt7xg_1", Ws = "_disabled_zt7xg_8", Gs = "_primary_zt7xg_13", Hs = "_secondary_zt7xg_18", Vs = "_tertiary_zt7xg_23", Zs = "_accent_zt7xg_28", Ys = "_positive_zt7xg_38", Ks = "_negative_zt7xg_48", Js = "_warning_zt7xg_58", Xs = "_special_zt7xg_68", Qs = "_contrast_zt7xg_78", Te = {
|
|
1727
|
+
typography: zs,
|
|
1728
|
+
disabled: Ws,
|
|
1729
|
+
primary: Gs,
|
|
1730
|
+
secondary: Hs,
|
|
1731
|
+
tertiary: Vs,
|
|
1732
|
+
accent: Zs,
|
|
1729
1733
|
"accent-secondary": "_accent-secondary_zt7xg_33",
|
|
1730
|
-
positive:
|
|
1734
|
+
positive: Ys,
|
|
1731
1735
|
"positive-secondary": "_positive-secondary_zt7xg_43",
|
|
1732
|
-
negative:
|
|
1736
|
+
negative: Ks,
|
|
1733
1737
|
"negative-secondary": "_negative-secondary_zt7xg_53",
|
|
1734
|
-
warning:
|
|
1738
|
+
warning: Js,
|
|
1735
1739
|
"warning-secondary": "_warning-secondary_zt7xg_63",
|
|
1736
|
-
special:
|
|
1740
|
+
special: Xs,
|
|
1737
1741
|
"special-secondary": "_special-secondary_zt7xg_73",
|
|
1738
|
-
contrast:
|
|
1742
|
+
contrast: Qs,
|
|
1739
1743
|
"contrast-secondary": "_contrast-secondary_zt7xg_83"
|
|
1740
|
-
},
|
|
1744
|
+
}, en = {
|
|
1741
1745
|
1: "h1",
|
|
1742
1746
|
2: "h2",
|
|
1743
1747
|
3: "h3",
|
|
1744
1748
|
4: "h4",
|
|
1745
1749
|
5: "h5"
|
|
1746
|
-
},
|
|
1747
|
-
const r =
|
|
1750
|
+
}, It = (e) => {
|
|
1751
|
+
const r = Ot.forwardRef(
|
|
1748
1752
|
({
|
|
1749
1753
|
size: a = 3,
|
|
1750
1754
|
children: s,
|
|
1751
1755
|
className: i,
|
|
1752
|
-
"data-testid":
|
|
1753
|
-
as:
|
|
1754
|
-
fontWeight:
|
|
1755
|
-
disabled:
|
|
1756
|
-
typographyStyle:
|
|
1757
|
-
...
|
|
1758
|
-
},
|
|
1759
|
-
const b =
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1756
|
+
"data-testid": o,
|
|
1757
|
+
as: l,
|
|
1758
|
+
fontWeight: u = "semibold",
|
|
1759
|
+
disabled: c = !1,
|
|
1760
|
+
typographyStyle: p = "primary",
|
|
1761
|
+
...h
|
|
1762
|
+
}, m) => {
|
|
1763
|
+
const b = l || en[a], g = I(
|
|
1764
|
+
Te.typography,
|
|
1765
|
+
pe[`typography-${e}-${a}-${u}`],
|
|
1766
|
+
Te[p],
|
|
1763
1767
|
{
|
|
1764
|
-
[
|
|
1768
|
+
[Te.disabled]: c
|
|
1765
1769
|
},
|
|
1766
1770
|
i
|
|
1767
1771
|
);
|
|
1768
|
-
return s ? /* @__PURE__ */
|
|
1772
|
+
return s ? /* @__PURE__ */ n.jsx(b, { ref: m, className: g, "data-testid": o, ...h, children: s }) : null;
|
|
1769
1773
|
}
|
|
1770
1774
|
);
|
|
1771
|
-
return r.displayName = `Typography.${
|
|
1772
|
-
},
|
|
1773
|
-
const r =
|
|
1775
|
+
return r.displayName = `Typography.${e === "title" ? "Title" : "Subtitle"}`, r;
|
|
1776
|
+
}, Tt = (e) => {
|
|
1777
|
+
const r = Ot.forwardRef(
|
|
1774
1778
|
({
|
|
1775
1779
|
size: a = 3,
|
|
1776
1780
|
children: s,
|
|
1777
1781
|
className: i,
|
|
1778
|
-
"data-testid":
|
|
1779
|
-
as:
|
|
1780
|
-
fontWeight:
|
|
1781
|
-
disabled:
|
|
1782
|
-
typographyStyle:
|
|
1783
|
-
...
|
|
1784
|
-
},
|
|
1785
|
-
const b =
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1782
|
+
"data-testid": o,
|
|
1783
|
+
as: l = "p",
|
|
1784
|
+
fontWeight: u = "regular",
|
|
1785
|
+
disabled: c = !1,
|
|
1786
|
+
typographyStyle: p = "primary",
|
|
1787
|
+
...h
|
|
1788
|
+
}, m) => {
|
|
1789
|
+
const b = l, g = I(
|
|
1790
|
+
Te.typography,
|
|
1791
|
+
pe[`typography-${e}-${a}-${u}`],
|
|
1792
|
+
Te[p],
|
|
1789
1793
|
{
|
|
1790
|
-
[
|
|
1794
|
+
[Te.disabled]: c
|
|
1791
1795
|
},
|
|
1792
1796
|
i
|
|
1793
1797
|
);
|
|
1794
|
-
return s ? /* @__PURE__ */
|
|
1798
|
+
return s ? /* @__PURE__ */ n.jsx(
|
|
1795
1799
|
b,
|
|
1796
1800
|
{
|
|
1797
|
-
ref:
|
|
1798
|
-
className:
|
|
1799
|
-
"data-testid":
|
|
1800
|
-
...
|
|
1801
|
+
ref: m,
|
|
1802
|
+
className: g,
|
|
1803
|
+
"data-testid": o,
|
|
1804
|
+
...h,
|
|
1801
1805
|
children: s
|
|
1802
1806
|
}
|
|
1803
1807
|
) : null;
|
|
1804
1808
|
}
|
|
1805
1809
|
);
|
|
1806
|
-
return r.displayName = `Typography.${
|
|
1807
|
-
},
|
|
1808
|
-
Title:
|
|
1809
|
-
Subtitle:
|
|
1810
|
-
Label:
|
|
1811
|
-
Paragraph:
|
|
1812
|
-
},
|
|
1813
|
-
inputBase:
|
|
1814
|
-
wrapper:
|
|
1815
|
-
"textarea-wrapper": "_textarea-
|
|
1816
|
-
gripHandle:
|
|
1817
|
-
error:
|
|
1818
|
-
tabFocused:
|
|
1819
|
-
disabled:
|
|
1820
|
-
loading:
|
|
1821
|
-
label:
|
|
1822
|
-
small:
|
|
1823
|
-
large:
|
|
1824
|
-
leftSection:
|
|
1825
|
-
rightSection:
|
|
1826
|
-
helper:
|
|
1827
|
-
floatingLabel:
|
|
1828
|
-
focused:
|
|
1829
|
-
filled:
|
|
1830
|
-
medium:
|
|
1831
|
-
characterLimit:
|
|
1832
|
-
input:
|
|
1833
|
-
textarea:
|
|
1834
|
-
"size-small": "_size-
|
|
1835
|
-
"size-medium": "_size-
|
|
1836
|
-
"size-large": "_size-
|
|
1837
|
-
"with-floating-label": "_with-floating-
|
|
1838
|
-
truncate:
|
|
1839
|
-
hint:
|
|
1840
|
-
"has-hint": "_has-
|
|
1841
|
-
"has-suffix": "_has-
|
|
1842
|
-
"has-limit": "_has-
|
|
1843
|
-
},
|
|
1844
|
-
width:
|
|
1810
|
+
return r.displayName = `Typography.${e.charAt(0).toUpperCase() + e.slice(1)}`, r;
|
|
1811
|
+
}, _i = {
|
|
1812
|
+
Title: It("title"),
|
|
1813
|
+
Subtitle: It("subtitle"),
|
|
1814
|
+
Label: Tt("label"),
|
|
1815
|
+
Paragraph: Tt("paragraph")
|
|
1816
|
+
}, tn = "_inputBase_1q54n_82", an = "_wrapper_1q54n_92", rn = "_gripHandle_1q54n_172", sn = "_error_1q54n_238", nn = "_tabFocused_1q54n_245", on = "_disabled_1q54n_270", ln = "_loading_1q54n_277", cn = "_label_1q54n_287", dn = "_small_1q54n_301", un = "_large_1q54n_308", _n = "_leftSection_1q54n_315", pn = "_rightSection_1q54n_327", fn = "_helper_1q54n_365", hn = "_floatingLabel_1q54n_393", gn = "_focused_1q54n_461", bn = "_filled_1q54n_462", mn = "_medium_1q54n_503", yn = "_characterLimit_1q54n_545", vn = "_input_1q54n_82", xn = "_textarea_1q54n_110", Cn = "_truncate_1q54n_678", wn = "_hint_1q54n_765", M = {
|
|
1817
|
+
inputBase: tn,
|
|
1818
|
+
wrapper: an,
|
|
1819
|
+
"textarea-wrapper": "_textarea-wrapper_1q54n_110",
|
|
1820
|
+
gripHandle: rn,
|
|
1821
|
+
error: sn,
|
|
1822
|
+
tabFocused: nn,
|
|
1823
|
+
disabled: on,
|
|
1824
|
+
loading: ln,
|
|
1825
|
+
label: cn,
|
|
1826
|
+
small: dn,
|
|
1827
|
+
large: un,
|
|
1828
|
+
leftSection: _n,
|
|
1829
|
+
rightSection: pn,
|
|
1830
|
+
helper: fn,
|
|
1831
|
+
floatingLabel: hn,
|
|
1832
|
+
focused: gn,
|
|
1833
|
+
filled: bn,
|
|
1834
|
+
medium: mn,
|
|
1835
|
+
characterLimit: yn,
|
|
1836
|
+
input: vn,
|
|
1837
|
+
textarea: xn,
|
|
1838
|
+
"size-small": "_size-small_1q54n_627",
|
|
1839
|
+
"size-medium": "_size-medium_1q54n_633",
|
|
1840
|
+
"size-large": "_size-large_1q54n_639",
|
|
1841
|
+
"with-floating-label": "_with-floating-label_1q54n_646",
|
|
1842
|
+
truncate: Cn,
|
|
1843
|
+
hint: wn,
|
|
1844
|
+
"has-hint": "_has-hint_1q54n_786",
|
|
1845
|
+
"has-suffix": "_has-suffix_1q54n_792",
|
|
1846
|
+
"has-limit": "_has-limit_1q54n_798"
|
|
1847
|
+
}, Sn = ({
|
|
1848
|
+
width: e = 8,
|
|
1845
1849
|
height: r = 8,
|
|
1846
1850
|
className: a,
|
|
1847
1851
|
color: s = "#AABBCA"
|
|
1848
|
-
}) => /* @__PURE__ */
|
|
1852
|
+
}) => /* @__PURE__ */ n.jsx(
|
|
1849
1853
|
"svg",
|
|
1850
1854
|
{
|
|
1851
|
-
width:
|
|
1855
|
+
width: e,
|
|
1852
1856
|
height: r,
|
|
1853
1857
|
viewBox: "0 0 8 8",
|
|
1854
1858
|
fill: "none",
|
|
1855
1859
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1856
1860
|
className: a,
|
|
1857
|
-
children: /* @__PURE__ */
|
|
1861
|
+
children: /* @__PURE__ */ n.jsx(
|
|
1858
1862
|
"path",
|
|
1859
1863
|
{
|
|
1860
1864
|
fillRule: "evenodd",
|
|
@@ -1864,15 +1868,15 @@ const yr = 3, mr = (t) => {
|
|
|
1864
1868
|
}
|
|
1865
1869
|
)
|
|
1866
1870
|
}
|
|
1867
|
-
),
|
|
1868
|
-
className:
|
|
1871
|
+
), Gt = ({
|
|
1872
|
+
className: e = "",
|
|
1869
1873
|
style: r,
|
|
1870
1874
|
size: a = "md",
|
|
1871
1875
|
color: s = "currentColor",
|
|
1872
1876
|
onClick: i,
|
|
1873
|
-
...
|
|
1877
|
+
...o
|
|
1874
1878
|
}) => {
|
|
1875
|
-
const
|
|
1879
|
+
const u = {
|
|
1876
1880
|
display: "inline-block",
|
|
1877
1881
|
color: s,
|
|
1878
1882
|
...{
|
|
@@ -1885,17 +1889,17 @@ const yr = 3, mr = (t) => {
|
|
|
1885
1889
|
}[a],
|
|
1886
1890
|
...r
|
|
1887
1891
|
};
|
|
1888
|
-
return /* @__PURE__ */
|
|
1892
|
+
return /* @__PURE__ */ n.jsx(
|
|
1889
1893
|
"svg",
|
|
1890
1894
|
{
|
|
1891
|
-
className:
|
|
1892
|
-
style:
|
|
1895
|
+
className: e,
|
|
1896
|
+
style: u,
|
|
1893
1897
|
viewBox: "0 0 16 16",
|
|
1894
1898
|
fill: "none",
|
|
1895
1899
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1896
1900
|
onClick: i,
|
|
1897
|
-
...
|
|
1898
|
-
children: /* @__PURE__ */
|
|
1901
|
+
...o,
|
|
1902
|
+
children: /* @__PURE__ */ n.jsx(
|
|
1899
1903
|
"path",
|
|
1900
1904
|
{
|
|
1901
1905
|
d: "M12 4L4 12M4 4L12 12",
|
|
@@ -1907,453 +1911,453 @@ const yr = 3, mr = (t) => {
|
|
|
1907
1911
|
)
|
|
1908
1912
|
}
|
|
1909
1913
|
);
|
|
1910
|
-
},
|
|
1911
|
-
const a =
|
|
1912
|
-
return
|
|
1914
|
+
}, Ln = (e, r) => {
|
|
1915
|
+
const a = qe(null), s = qe(null);
|
|
1916
|
+
return ue(() => {
|
|
1913
1917
|
const i = r === "textarea" ? a.current : s.current;
|
|
1914
|
-
i && i.value !==
|
|
1915
|
-
}, [
|
|
1918
|
+
i && i.value !== e && (i.value = e || "");
|
|
1919
|
+
}, [e, r]), {
|
|
1916
1920
|
textareaRef: a,
|
|
1917
1921
|
inputRef: s,
|
|
1918
1922
|
currentRef: r === "textarea" ? a : s
|
|
1919
1923
|
};
|
|
1920
|
-
},
|
|
1924
|
+
}, En = (e, r, a) => {
|
|
1921
1925
|
const s = () => {
|
|
1922
1926
|
if (!a.current || r !== "hug") return;
|
|
1923
1927
|
const i = a.current.scrollTop;
|
|
1924
|
-
if (a.current.style.setProperty("height", "auto", "important"), !
|
|
1925
|
-
const
|
|
1926
|
-
a.current.style.setProperty("height",
|
|
1927
|
-
const
|
|
1928
|
-
|
|
1928
|
+
if (a.current.style.setProperty("height", "auto", "important"), !e) return;
|
|
1929
|
+
const o = a.current.scrollHeight + "px";
|
|
1930
|
+
a.current.style.setProperty("height", o, "important"), a.current.scrollTop = i;
|
|
1931
|
+
const l = a.current.closest(`.${M.wrapper}`);
|
|
1932
|
+
l && (l.setAttribute("data-resize", "hug"), l.setAttribute("data-show-grip", "false"));
|
|
1929
1933
|
};
|
|
1930
|
-
return
|
|
1934
|
+
return ue(s, [e, r]), ue(() => {
|
|
1931
1935
|
r === "hug" && a.current && s();
|
|
1932
1936
|
}, []), { resizeTextArea: s };
|
|
1933
|
-
},
|
|
1934
|
-
(
|
|
1935
|
-
if (!
|
|
1936
|
-
|
|
1937
|
-
const
|
|
1938
|
-
if (!
|
|
1939
|
-
const
|
|
1940
|
-
const b =
|
|
1941
|
-
|
|
1942
|
-
},
|
|
1943
|
-
document.removeEventListener("mousemove",
|
|
1937
|
+
}, kn = (e, r, a, s) => ({ handleGripMouseDown: xe(
|
|
1938
|
+
(o) => {
|
|
1939
|
+
if (!e || r || a || !(s === "fixed" || !s)) return;
|
|
1940
|
+
o.preventDefault(), o.stopPropagation();
|
|
1941
|
+
const l = o.currentTarget.closest(`.${M.wrapper}`);
|
|
1942
|
+
if (!l) return;
|
|
1943
|
+
const u = o.clientY, c = l.clientHeight, p = (m) => {
|
|
1944
|
+
const b = m.clientY - u, g = Math.min(100, c), y = Math.max(g, c + b);
|
|
1945
|
+
l.style.height = `${y}px`;
|
|
1946
|
+
}, h = () => {
|
|
1947
|
+
document.removeEventListener("mousemove", p), document.removeEventListener("mouseup", h);
|
|
1944
1948
|
};
|
|
1945
|
-
document.addEventListener("mousemove",
|
|
1949
|
+
document.addEventListener("mousemove", p), document.addEventListener("mouseup", h);
|
|
1946
1950
|
},
|
|
1947
|
-
[
|
|
1948
|
-
) }),
|
|
1951
|
+
[e, r, a, s]
|
|
1952
|
+
) }), At = 30, jn = X(
|
|
1949
1953
|
({
|
|
1950
|
-
component:
|
|
1954
|
+
component: e = "input",
|
|
1951
1955
|
size: r = "medium",
|
|
1952
1956
|
value: a = "",
|
|
1953
1957
|
placeholder: s,
|
|
1954
1958
|
disabled: i = !1,
|
|
1955
|
-
loading:
|
|
1956
|
-
onFocus:
|
|
1957
|
-
onBlur:
|
|
1958
|
-
onChange:
|
|
1959
|
-
onKeyDown:
|
|
1960
|
-
onKeyUp:
|
|
1961
|
-
maxLength:
|
|
1959
|
+
loading: o = !1,
|
|
1960
|
+
onFocus: l,
|
|
1961
|
+
onBlur: u,
|
|
1962
|
+
onChange: c,
|
|
1963
|
+
onKeyDown: p,
|
|
1964
|
+
onKeyUp: h,
|
|
1965
|
+
maxLength: m,
|
|
1962
1966
|
className: b,
|
|
1963
|
-
style:
|
|
1964
|
-
truncate:
|
|
1965
|
-
shouldShowFloatingLabelClass:
|
|
1966
|
-
"aria-invalid":
|
|
1967
|
+
style: g,
|
|
1968
|
+
truncate: y = !1,
|
|
1969
|
+
shouldShowFloatingLabelClass: S = !1,
|
|
1970
|
+
"aria-invalid": x,
|
|
1967
1971
|
"aria-errormessage": C,
|
|
1968
|
-
id:
|
|
1969
|
-
resize:
|
|
1970
|
-
...
|
|
1971
|
-
},
|
|
1972
|
-
const { textareaRef:
|
|
1973
|
-
if (
|
|
1974
|
-
return /* @__PURE__ */
|
|
1972
|
+
id: _,
|
|
1973
|
+
resize: L,
|
|
1974
|
+
...E
|
|
1975
|
+
}, A) => {
|
|
1976
|
+
const { textareaRef: j, inputRef: T, currentRef: O } = Ln(a, e);
|
|
1977
|
+
if (En(a, L, j), xa(A, () => O.current, [O]), e === "textarea")
|
|
1978
|
+
return /* @__PURE__ */ n.jsx(
|
|
1975
1979
|
"textarea",
|
|
1976
1980
|
{
|
|
1977
|
-
ref:
|
|
1978
|
-
id:
|
|
1981
|
+
ref: j,
|
|
1982
|
+
id: _,
|
|
1979
1983
|
value: a,
|
|
1980
1984
|
placeholder: s,
|
|
1981
|
-
disabled: i ||
|
|
1982
|
-
onFocus:
|
|
1983
|
-
onBlur:
|
|
1984
|
-
onChange:
|
|
1985
|
-
onKeyDown:
|
|
1986
|
-
onKeyUp:
|
|
1987
|
-
maxLength:
|
|
1988
|
-
className:
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1985
|
+
disabled: i || o,
|
|
1986
|
+
onFocus: l,
|
|
1987
|
+
onBlur: u,
|
|
1988
|
+
onChange: c,
|
|
1989
|
+
onKeyDown: p,
|
|
1990
|
+
onKeyUp: h,
|
|
1991
|
+
maxLength: m,
|
|
1992
|
+
className: I(
|
|
1993
|
+
M.textarea,
|
|
1994
|
+
M[`size-${r}`],
|
|
1995
|
+
S && M["with-floating-label"],
|
|
1992
1996
|
b
|
|
1993
1997
|
),
|
|
1994
|
-
style:
|
|
1995
|
-
"aria-invalid":
|
|
1998
|
+
style: g,
|
|
1999
|
+
"aria-invalid": x,
|
|
1996
2000
|
"aria-errormessage": C,
|
|
1997
|
-
"aria-describedby": C ? `${
|
|
2001
|
+
"aria-describedby": C ? `${_}-error` : void 0,
|
|
1998
2002
|
tabIndex: 0,
|
|
1999
|
-
"data-resize":
|
|
2000
|
-
...
|
|
2003
|
+
"data-resize": L,
|
|
2004
|
+
...E
|
|
2001
2005
|
}
|
|
2002
2006
|
);
|
|
2003
|
-
if (
|
|
2004
|
-
return /* @__PURE__ */
|
|
2007
|
+
if (e === "input")
|
|
2008
|
+
return /* @__PURE__ */ n.jsx(
|
|
2005
2009
|
"input",
|
|
2006
2010
|
{
|
|
2007
|
-
ref:
|
|
2008
|
-
id:
|
|
2011
|
+
ref: T,
|
|
2012
|
+
id: _,
|
|
2009
2013
|
value: a,
|
|
2010
2014
|
placeholder: s,
|
|
2011
|
-
disabled: i ||
|
|
2012
|
-
onFocus:
|
|
2013
|
-
onBlur:
|
|
2014
|
-
onChange:
|
|
2015
|
-
onKeyDown:
|
|
2016
|
-
onKeyUp:
|
|
2017
|
-
maxLength:
|
|
2018
|
-
className:
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2015
|
+
disabled: i || o,
|
|
2016
|
+
onFocus: l,
|
|
2017
|
+
onBlur: u,
|
|
2018
|
+
onChange: c,
|
|
2019
|
+
onKeyDown: p,
|
|
2020
|
+
onKeyUp: h,
|
|
2021
|
+
maxLength: m,
|
|
2022
|
+
className: I(
|
|
2023
|
+
M.input,
|
|
2024
|
+
M[`size-${r}`],
|
|
2025
|
+
S && M["with-floating-label"],
|
|
2026
|
+
y && M.truncate,
|
|
2023
2027
|
b
|
|
2024
2028
|
),
|
|
2025
|
-
style:
|
|
2026
|
-
"aria-invalid":
|
|
2029
|
+
style: g,
|
|
2030
|
+
"aria-invalid": x,
|
|
2027
2031
|
"aria-errormessage": C,
|
|
2028
|
-
"aria-describedby": C ? `${
|
|
2032
|
+
"aria-describedby": C ? `${_}-error` : void 0,
|
|
2029
2033
|
tabIndex: 0,
|
|
2030
|
-
...
|
|
2034
|
+
...E
|
|
2031
2035
|
}
|
|
2032
2036
|
);
|
|
2033
|
-
if (
|
|
2037
|
+
if (e !== "input" && e !== "textarea")
|
|
2034
2038
|
return console.error(
|
|
2035
|
-
`[Input] Недопустимое значение prop 'component': "${String(
|
|
2039
|
+
`[Input] Недопустимое значение prop 'component': "${String(e)}". Допустимые значения: 'input', 'textarea'`
|
|
2036
2040
|
), null;
|
|
2037
2041
|
}
|
|
2038
|
-
),
|
|
2042
|
+
), Ht = X(
|
|
2039
2043
|
({
|
|
2040
|
-
children:
|
|
2044
|
+
children: e,
|
|
2041
2045
|
size: r = "medium",
|
|
2042
2046
|
error: a = !1,
|
|
2043
2047
|
disabled: s = !1,
|
|
2044
2048
|
loading: i = !1,
|
|
2045
|
-
className:
|
|
2046
|
-
wrapperProps:
|
|
2047
|
-
wrapperStyles:
|
|
2048
|
-
floatingLabelStyles:
|
|
2049
|
-
prefixStyles:
|
|
2050
|
-
suffixStyles:
|
|
2051
|
-
labelProps:
|
|
2049
|
+
className: o,
|
|
2050
|
+
wrapperProps: l,
|
|
2051
|
+
wrapperStyles: u,
|
|
2052
|
+
floatingLabelStyles: c,
|
|
2053
|
+
prefixStyles: p,
|
|
2054
|
+
suffixStyles: h,
|
|
2055
|
+
labelProps: m,
|
|
2052
2056
|
helperProps: b,
|
|
2053
|
-
showLimit:
|
|
2054
|
-
maxLength:
|
|
2055
|
-
hint:
|
|
2056
|
-
showHint:
|
|
2057
|
+
showLimit: g = !1,
|
|
2058
|
+
maxLength: y,
|
|
2059
|
+
hint: S,
|
|
2060
|
+
showHint: x = !1,
|
|
2057
2061
|
showHintOnEmpty: C = !1,
|
|
2058
|
-
prefix:
|
|
2059
|
-
suffix:
|
|
2060
|
-
onSuffixClick:
|
|
2061
|
-
placeholder:
|
|
2062
|
-
showLabel:
|
|
2063
|
-
labelClassName:
|
|
2064
|
-
hasValue:
|
|
2062
|
+
prefix: _,
|
|
2063
|
+
suffix: L,
|
|
2064
|
+
onSuffixClick: E,
|
|
2065
|
+
placeholder: A,
|
|
2066
|
+
showLabel: j = !0,
|
|
2067
|
+
labelClassName: T,
|
|
2068
|
+
hasValue: O = !1,
|
|
2065
2069
|
helper: U,
|
|
2066
|
-
id:
|
|
2070
|
+
id: B,
|
|
2067
2071
|
value: z = "",
|
|
2068
|
-
resize:
|
|
2069
|
-
showGrip:
|
|
2070
|
-
|
|
2071
|
-
},
|
|
2072
|
-
const
|
|
2073
|
-
|
|
2074
|
-
a &&
|
|
2075
|
-
s &&
|
|
2076
|
-
i &&
|
|
2077
|
-
Q &&
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
),
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
), { handleGripMouseDown:
|
|
2087
|
-
return /* @__PURE__ */
|
|
2088
|
-
/* @__PURE__ */
|
|
2072
|
+
resize: N,
|
|
2073
|
+
showGrip: v = !1,
|
|
2074
|
+
...$
|
|
2075
|
+
}, P) => {
|
|
2076
|
+
const F = Ut(), G = B || F, Q = x && S && (O || C), ne = S && S.length > At ? S.substring(0, At) + "..." : S, Z = I(
|
|
2077
|
+
M.wrapper,
|
|
2078
|
+
a && M.error,
|
|
2079
|
+
s && M.disabled,
|
|
2080
|
+
i && M.loading,
|
|
2081
|
+
Q && M["has-hint"],
|
|
2082
|
+
L && M["has-suffix"],
|
|
2083
|
+
g && M["has-limit"],
|
|
2084
|
+
o
|
|
2085
|
+
), ie = I(
|
|
2086
|
+
M.floatingLabel,
|
|
2087
|
+
M[r],
|
|
2088
|
+
O && M.filled,
|
|
2089
|
+
T
|
|
2090
|
+
), { handleGripMouseDown: ee } = kn(v, s, i, N);
|
|
2091
|
+
return /* @__PURE__ */ n.jsxs("div", { ref: P, className: M.inputBase, "data-testid": "input-base-wrapper", ...$, children: [
|
|
2092
|
+
/* @__PURE__ */ n.jsxs(
|
|
2089
2093
|
"div",
|
|
2090
2094
|
{
|
|
2091
|
-
className:
|
|
2092
|
-
style:
|
|
2093
|
-
"data-resize":
|
|
2094
|
-
"data-show-grip":
|
|
2095
|
-
...
|
|
2095
|
+
className: Z,
|
|
2096
|
+
style: u,
|
|
2097
|
+
"data-resize": N,
|
|
2098
|
+
"data-show-grip": v ? "true" : "false",
|
|
2099
|
+
...l,
|
|
2096
2100
|
children: [
|
|
2097
|
-
|
|
2098
|
-
|
|
2101
|
+
_ && /* @__PURE__ */ n.jsx("label", { htmlFor: G, className: M.leftSection, style: p, children: _ }),
|
|
2102
|
+
L && /* @__PURE__ */ n.jsx(
|
|
2099
2103
|
"label",
|
|
2100
2104
|
{
|
|
2101
|
-
htmlFor:
|
|
2102
|
-
className:
|
|
2103
|
-
style:
|
|
2104
|
-
onClick:
|
|
2105
|
-
children:
|
|
2105
|
+
htmlFor: G,
|
|
2106
|
+
className: M.rightSection,
|
|
2107
|
+
style: h,
|
|
2108
|
+
onClick: E,
|
|
2109
|
+
children: L
|
|
2106
2110
|
}
|
|
2107
2111
|
),
|
|
2108
|
-
|
|
2112
|
+
A && j && /* @__PURE__ */ n.jsx(
|
|
2109
2113
|
"label",
|
|
2110
2114
|
{
|
|
2111
|
-
htmlFor:
|
|
2112
|
-
className:
|
|
2113
|
-
style:
|
|
2114
|
-
...
|
|
2115
|
-
children:
|
|
2115
|
+
htmlFor: G,
|
|
2116
|
+
className: ie,
|
|
2117
|
+
style: c,
|
|
2118
|
+
...m,
|
|
2119
|
+
children: A
|
|
2116
2120
|
}
|
|
2117
2121
|
),
|
|
2118
|
-
|
|
2119
|
-
|
|
2122
|
+
e,
|
|
2123
|
+
v && !g && (N === "fixed" || !N) && /* @__PURE__ */ n.jsx(
|
|
2120
2124
|
"div",
|
|
2121
2125
|
{
|
|
2122
|
-
className:
|
|
2123
|
-
onMouseDown:
|
|
2126
|
+
className: M.gripHandle,
|
|
2127
|
+
onMouseDown: ee,
|
|
2124
2128
|
role: "button",
|
|
2125
2129
|
tabIndex: -1,
|
|
2126
2130
|
"aria-label": "Изменить размер",
|
|
2127
|
-
children: /* @__PURE__ */
|
|
2131
|
+
children: /* @__PURE__ */ n.jsx(Sn, {})
|
|
2128
2132
|
}
|
|
2129
2133
|
),
|
|
2130
|
-
Q && /* @__PURE__ */
|
|
2134
|
+
Q && /* @__PURE__ */ n.jsx(
|
|
2131
2135
|
"div",
|
|
2132
2136
|
{
|
|
2133
|
-
className:
|
|
2137
|
+
className: I(M.hint, O && M.truncate),
|
|
2134
2138
|
"data-disabled": s || i,
|
|
2135
|
-
children:
|
|
2139
|
+
children: ne
|
|
2136
2140
|
}
|
|
2137
2141
|
),
|
|
2138
|
-
|
|
2142
|
+
g && y && /* @__PURE__ */ n.jsxs("div", { className: M.characterLimit, children: [
|
|
2139
2143
|
(z || "").length,
|
|
2140
2144
|
" из ",
|
|
2141
|
-
|
|
2145
|
+
y
|
|
2142
2146
|
] })
|
|
2143
2147
|
]
|
|
2144
2148
|
}
|
|
2145
2149
|
),
|
|
2146
|
-
U && /* @__PURE__ */
|
|
2150
|
+
U && /* @__PURE__ */ n.jsx(
|
|
2147
2151
|
"div",
|
|
2148
2152
|
{
|
|
2149
|
-
className:
|
|
2150
|
-
|
|
2151
|
-
a &&
|
|
2152
|
-
(s || i) &&
|
|
2153
|
+
className: I(
|
|
2154
|
+
M.helper,
|
|
2155
|
+
a && M.error,
|
|
2156
|
+
(s || i) && M.disabled
|
|
2153
2157
|
),
|
|
2154
2158
|
...b,
|
|
2155
|
-
id: a ? `${
|
|
2159
|
+
id: a ? `${G}-error` : void 0,
|
|
2156
2160
|
children: U
|
|
2157
2161
|
}
|
|
2158
2162
|
)
|
|
2159
2163
|
] });
|
|
2160
2164
|
}
|
|
2161
2165
|
);
|
|
2162
|
-
|
|
2163
|
-
const
|
|
2164
|
-
Wrapper:
|
|
2165
|
-
}),
|
|
2166
|
+
Ht.displayName = "InputWrapperComponent";
|
|
2167
|
+
const Nt = Object.assign(jn, {
|
|
2168
|
+
Wrapper: Ht
|
|
2169
|
+
}), Vt = X(
|
|
2166
2170
|
({
|
|
2167
|
-
component:
|
|
2171
|
+
component: e = "input",
|
|
2168
2172
|
size: r = "medium",
|
|
2169
2173
|
className: a,
|
|
2170
2174
|
error: s = !1,
|
|
2171
2175
|
disabled: i = !1,
|
|
2172
|
-
loading:
|
|
2173
|
-
placeholder:
|
|
2174
|
-
showLabel:
|
|
2175
|
-
labelClassName:
|
|
2176
|
-
helper:
|
|
2177
|
-
prefix:
|
|
2178
|
-
suffix:
|
|
2176
|
+
loading: o = !1,
|
|
2177
|
+
placeholder: l,
|
|
2178
|
+
showLabel: u = !0,
|
|
2179
|
+
labelClassName: c,
|
|
2180
|
+
helper: p,
|
|
2181
|
+
prefix: h,
|
|
2182
|
+
suffix: m,
|
|
2179
2183
|
id: b,
|
|
2180
|
-
onFocus:
|
|
2181
|
-
onBlur:
|
|
2182
|
-
onKeyDown:
|
|
2183
|
-
onSuffixClick:
|
|
2184
|
+
onFocus: g,
|
|
2185
|
+
onBlur: y,
|
|
2186
|
+
onKeyDown: S,
|
|
2187
|
+
onSuffixClick: x,
|
|
2184
2188
|
onChange: C,
|
|
2185
|
-
value:
|
|
2186
|
-
wrapperProps:
|
|
2187
|
-
wrapperStyles:
|
|
2188
|
-
floatingLabelStyles:
|
|
2189
|
-
prefixStyles:
|
|
2190
|
-
suffixStyles:
|
|
2191
|
-
textareaStyles:
|
|
2189
|
+
value: _ = "",
|
|
2190
|
+
wrapperProps: L,
|
|
2191
|
+
wrapperStyles: E,
|
|
2192
|
+
floatingLabelStyles: A,
|
|
2193
|
+
prefixStyles: j,
|
|
2194
|
+
suffixStyles: T,
|
|
2195
|
+
textareaStyles: O,
|
|
2192
2196
|
labelProps: U,
|
|
2193
|
-
helperProps:
|
|
2197
|
+
helperProps: B,
|
|
2194
2198
|
showLimit: z = !1,
|
|
2195
|
-
maxLength:
|
|
2196
|
-
inputProps:
|
|
2197
|
-
hint:
|
|
2198
|
-
showHint:
|
|
2199
|
-
showHintOnEmpty:
|
|
2200
|
-
truncate:
|
|
2199
|
+
maxLength: N,
|
|
2200
|
+
inputProps: v,
|
|
2201
|
+
hint: $,
|
|
2202
|
+
showHint: P = !1,
|
|
2203
|
+
showHintOnEmpty: F = !1,
|
|
2204
|
+
truncate: G = !1,
|
|
2201
2205
|
resize: Q,
|
|
2202
|
-
showGrip:
|
|
2203
|
-
...
|
|
2204
|
-
},
|
|
2205
|
-
const
|
|
2206
|
-
(
|
|
2207
|
-
var
|
|
2208
|
-
i ||
|
|
2209
|
-
|
|
2210
|
-
|
|
2206
|
+
showGrip: ne = !1,
|
|
2207
|
+
...Z
|
|
2208
|
+
}, ie) => {
|
|
2209
|
+
const ee = Ut(), ve = b || ee, [Ae, fe] = ye(_), Ee = _ !== void 0 ? _ : Ae, ke = (Ee || "").length > 0, we = Ee || "", je = u && (r === "large" || e === "textarea") && !h, Ve = xe(
|
|
2210
|
+
(Y) => {
|
|
2211
|
+
var K;
|
|
2212
|
+
i || o || (g == null || g(), (K = v == null ? void 0 : v.onFocus) == null || K.call(
|
|
2213
|
+
v,
|
|
2214
|
+
Y
|
|
2211
2215
|
));
|
|
2212
2216
|
},
|
|
2213
|
-
[
|
|
2214
|
-
),
|
|
2215
|
-
(
|
|
2216
|
-
var
|
|
2217
|
-
if (
|
|
2218
|
-
const
|
|
2219
|
-
|
|
2217
|
+
[g, v, i, o]
|
|
2218
|
+
), Be = xe(
|
|
2219
|
+
(Y) => {
|
|
2220
|
+
var K;
|
|
2221
|
+
if (Y.key === "Tab") {
|
|
2222
|
+
const de = Y.target.closest(`.${M.wrapper}`);
|
|
2223
|
+
de && de.classList.add(M.tabFocused);
|
|
2220
2224
|
}
|
|
2221
|
-
(
|
|
2222
|
-
|
|
2223
|
-
|
|
2225
|
+
(K = v == null ? void 0 : v.onKeyUp) == null || K.call(
|
|
2226
|
+
v,
|
|
2227
|
+
Y
|
|
2224
2228
|
);
|
|
2225
2229
|
},
|
|
2226
|
-
[
|
|
2227
|
-
),
|
|
2228
|
-
(
|
|
2229
|
-
var
|
|
2230
|
-
const
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
|
|
2230
|
+
[v]
|
|
2231
|
+
), Ze = xe(
|
|
2232
|
+
(Y) => {
|
|
2233
|
+
var de;
|
|
2234
|
+
const K = Y.target.closest(`.${M.wrapper}`);
|
|
2235
|
+
K && K.classList.remove(M.tabFocused), y == null || y(), (de = v == null ? void 0 : v.onBlur) == null || de.call(
|
|
2236
|
+
v,
|
|
2237
|
+
Y
|
|
2234
2238
|
);
|
|
2235
2239
|
},
|
|
2236
|
-
[
|
|
2237
|
-
),
|
|
2238
|
-
(
|
|
2239
|
-
var
|
|
2240
|
-
if (i ||
|
|
2241
|
-
const
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
|
|
2240
|
+
[y, v]
|
|
2241
|
+
), Ye = xe(
|
|
2242
|
+
(Y) => {
|
|
2243
|
+
var de;
|
|
2244
|
+
if (i || o) return;
|
|
2245
|
+
const K = Y.target.value;
|
|
2246
|
+
fe(K), C == null || C(K, Y), (de = v == null ? void 0 : v.onChange) == null || de.call(
|
|
2247
|
+
v,
|
|
2248
|
+
Y
|
|
2245
2249
|
);
|
|
2246
2250
|
},
|
|
2247
|
-
[C,
|
|
2251
|
+
[C, v, i, o]
|
|
2248
2252
|
);
|
|
2249
|
-
return
|
|
2250
|
-
|
|
2251
|
-
}, [
|
|
2252
|
-
|
|
2253
|
+
return ue(() => {
|
|
2254
|
+
fe(_ || "");
|
|
2255
|
+
}, [_]), /* @__PURE__ */ n.jsx(
|
|
2256
|
+
Nt.Wrapper,
|
|
2253
2257
|
{
|
|
2254
|
-
ref:
|
|
2258
|
+
ref: ie,
|
|
2255
2259
|
size: r,
|
|
2256
2260
|
error: s,
|
|
2257
|
-
disabled: i ||
|
|
2258
|
-
loading:
|
|
2259
|
-
className:
|
|
2260
|
-
wrapperProps:
|
|
2261
|
-
wrapperStyles:
|
|
2262
|
-
floatingLabelStyles:
|
|
2263
|
-
prefixStyles:
|
|
2264
|
-
suffixStyles:
|
|
2261
|
+
disabled: i || o,
|
|
2262
|
+
loading: o,
|
|
2263
|
+
className: I(a, e === "textarea" && M["textarea-wrapper"]),
|
|
2264
|
+
wrapperProps: L,
|
|
2265
|
+
wrapperStyles: E,
|
|
2266
|
+
floatingLabelStyles: A,
|
|
2267
|
+
prefixStyles: j,
|
|
2268
|
+
suffixStyles: T,
|
|
2265
2269
|
labelProps: U,
|
|
2266
|
-
helperProps:
|
|
2270
|
+
helperProps: B,
|
|
2267
2271
|
showLimit: z,
|
|
2268
|
-
maxLength:
|
|
2269
|
-
hint:
|
|
2270
|
-
showHint:
|
|
2271
|
-
showHintOnEmpty:
|
|
2272
|
-
prefix:
|
|
2273
|
-
suffix:
|
|
2274
|
-
onSuffixClick:
|
|
2275
|
-
placeholder:
|
|
2276
|
-
showLabel:
|
|
2277
|
-
labelClassName:
|
|
2278
|
-
hasValue:
|
|
2279
|
-
helper:
|
|
2280
|
-
id:
|
|
2281
|
-
value:
|
|
2282
|
-
showGrip:
|
|
2272
|
+
maxLength: N,
|
|
2273
|
+
hint: $,
|
|
2274
|
+
showHint: P,
|
|
2275
|
+
showHintOnEmpty: F,
|
|
2276
|
+
prefix: h,
|
|
2277
|
+
suffix: m,
|
|
2278
|
+
onSuffixClick: x,
|
|
2279
|
+
placeholder: l,
|
|
2280
|
+
showLabel: u,
|
|
2281
|
+
labelClassName: c,
|
|
2282
|
+
hasValue: ke,
|
|
2283
|
+
helper: p,
|
|
2284
|
+
id: ve,
|
|
2285
|
+
value: we,
|
|
2286
|
+
showGrip: ne,
|
|
2283
2287
|
resize: Q,
|
|
2284
|
-
...
|
|
2285
|
-
children: /* @__PURE__ */
|
|
2286
|
-
|
|
2288
|
+
...Z,
|
|
2289
|
+
children: /* @__PURE__ */ n.jsx(
|
|
2290
|
+
Nt,
|
|
2287
2291
|
{
|
|
2288
|
-
component:
|
|
2292
|
+
component: e,
|
|
2289
2293
|
size: r,
|
|
2290
|
-
value:
|
|
2291
|
-
placeholder:
|
|
2294
|
+
value: we,
|
|
2295
|
+
placeholder: l,
|
|
2292
2296
|
disabled: i,
|
|
2293
|
-
loading:
|
|
2294
|
-
onFocus:
|
|
2295
|
-
onBlur:
|
|
2296
|
-
onChange:
|
|
2297
|
-
onKeyDown:
|
|
2298
|
-
onKeyUp:
|
|
2299
|
-
maxLength:
|
|
2300
|
-
truncate:
|
|
2301
|
-
"data-empty": !
|
|
2302
|
-
shouldShowFloatingLabelClass:
|
|
2303
|
-
style:
|
|
2297
|
+
loading: o,
|
|
2298
|
+
onFocus: Ve,
|
|
2299
|
+
onBlur: Ze,
|
|
2300
|
+
onChange: Ye,
|
|
2301
|
+
onKeyDown: S,
|
|
2302
|
+
onKeyUp: Be,
|
|
2303
|
+
maxLength: N,
|
|
2304
|
+
truncate: G,
|
|
2305
|
+
"data-empty": !ke,
|
|
2306
|
+
shouldShowFloatingLabelClass: je,
|
|
2307
|
+
style: e === "textarea" ? O : void 0,
|
|
2304
2308
|
"aria-invalid": !!s,
|
|
2305
|
-
"aria-errormessage": s ? `${
|
|
2306
|
-
id:
|
|
2309
|
+
"aria-errormessage": s ? `${ve}-error` : void 0,
|
|
2310
|
+
id: ve,
|
|
2307
2311
|
resize: Q,
|
|
2308
|
-
...
|
|
2312
|
+
...v
|
|
2309
2313
|
}
|
|
2310
2314
|
)
|
|
2311
2315
|
}
|
|
2312
2316
|
);
|
|
2313
2317
|
}
|
|
2314
|
-
),
|
|
2318
|
+
), ae = {
|
|
2315
2319
|
SMALL: "small",
|
|
2316
2320
|
MEDIUM: "medium",
|
|
2317
2321
|
LARGE: "large"
|
|
2318
|
-
},
|
|
2319
|
-
switch (
|
|
2320
|
-
case
|
|
2322
|
+
}, $n = (e, r, a, s) => {
|
|
2323
|
+
switch (e) {
|
|
2324
|
+
case ae.LARGE:
|
|
2321
2325
|
return r && a ? "8px 16px 8px 16px" : "16px 16px 16px 16px";
|
|
2322
|
-
case
|
|
2326
|
+
case ae.MEDIUM:
|
|
2323
2327
|
return s ? "12px 12px 12px 12px" : "12px 12px 12px 16px";
|
|
2324
|
-
case
|
|
2328
|
+
case ae.SMALL:
|
|
2325
2329
|
return "10px 12px 10px 12px";
|
|
2326
2330
|
default:
|
|
2327
2331
|
return "12px 16px 12px 16px";
|
|
2328
2332
|
}
|
|
2329
|
-
},
|
|
2330
|
-
switch (
|
|
2331
|
-
case
|
|
2333
|
+
}, Rn = (e) => {
|
|
2334
|
+
switch (e) {
|
|
2335
|
+
case ae.LARGE:
|
|
2332
2336
|
return "56px";
|
|
2333
|
-
case
|
|
2337
|
+
case ae.MEDIUM:
|
|
2334
2338
|
return "48px";
|
|
2335
|
-
case
|
|
2339
|
+
case ae.SMALL:
|
|
2336
2340
|
return "40px";
|
|
2337
2341
|
default:
|
|
2338
2342
|
return "48px";
|
|
2339
2343
|
}
|
|
2340
|
-
},
|
|
2341
|
-
switch (
|
|
2342
|
-
case
|
|
2344
|
+
}, Mn = (e) => {
|
|
2345
|
+
switch (e) {
|
|
2346
|
+
case ae.SMALL:
|
|
2343
2347
|
return 8;
|
|
2344
2348
|
// 8px для small
|
|
2345
|
-
case
|
|
2346
|
-
case
|
|
2349
|
+
case ae.MEDIUM:
|
|
2350
|
+
case ae.LARGE:
|
|
2347
2351
|
return 12;
|
|
2348
2352
|
// 12px для medium и large
|
|
2349
2353
|
default:
|
|
2350
2354
|
return 12;
|
|
2351
2355
|
}
|
|
2352
|
-
},
|
|
2356
|
+
}, In = (e, r, a) => ({
|
|
2353
2357
|
wrapperStyles: {
|
|
2354
|
-
height:
|
|
2355
|
-
minHeight:
|
|
2356
|
-
maxHeight:
|
|
2358
|
+
height: e,
|
|
2359
|
+
minHeight: e,
|
|
2360
|
+
maxHeight: e,
|
|
2357
2361
|
boxSizing: "border-box",
|
|
2358
2362
|
padding: r
|
|
2359
2363
|
},
|
|
@@ -2367,10 +2371,10 @@ const St = Object.assign(un, {
|
|
|
2367
2371
|
suffixStyles: {
|
|
2368
2372
|
right: `${a}px`
|
|
2369
2373
|
}
|
|
2370
|
-
}),
|
|
2374
|
+
}), Tn = (e, r, a) => ({
|
|
2371
2375
|
wrapperStyles: {
|
|
2372
|
-
minHeight:
|
|
2373
|
-
maxHeight:
|
|
2376
|
+
minHeight: e,
|
|
2377
|
+
maxHeight: e,
|
|
2374
2378
|
boxSizing: "border-box",
|
|
2375
2379
|
padding: r
|
|
2376
2380
|
},
|
|
@@ -2383,10 +2387,10 @@ const St = Object.assign(un, {
|
|
|
2383
2387
|
suffixStyles: {
|
|
2384
2388
|
right: `${a}px`
|
|
2385
2389
|
}
|
|
2386
|
-
}),
|
|
2390
|
+
}), An = (e, r, a) => ({
|
|
2387
2391
|
wrapperStyles: {
|
|
2388
|
-
minHeight:
|
|
2389
|
-
maxHeight:
|
|
2392
|
+
minHeight: e,
|
|
2393
|
+
maxHeight: e,
|
|
2390
2394
|
boxSizing: "border-box",
|
|
2391
2395
|
padding: r
|
|
2392
2396
|
},
|
|
@@ -2399,15 +2403,15 @@ const St = Object.assign(un, {
|
|
|
2399
2403
|
suffixStyles: {
|
|
2400
2404
|
right: `${a}px`
|
|
2401
2405
|
}
|
|
2402
|
-
}),
|
|
2403
|
-
const i =
|
|
2404
|
-
switch (
|
|
2405
|
-
case
|
|
2406
|
-
return
|
|
2407
|
-
case
|
|
2408
|
-
return
|
|
2409
|
-
case
|
|
2410
|
-
return
|
|
2406
|
+
}), Nn = (e, r, a, s) => {
|
|
2407
|
+
const i = Rn(e), o = $n(e, r, a, s), l = Mn(e);
|
|
2408
|
+
switch (e) {
|
|
2409
|
+
case ae.LARGE:
|
|
2410
|
+
return In(i, o, l);
|
|
2411
|
+
case ae.MEDIUM:
|
|
2412
|
+
return Tn(i, o, l);
|
|
2413
|
+
case ae.SMALL:
|
|
2414
|
+
return An(i, o, l);
|
|
2411
2415
|
default:
|
|
2412
2416
|
return {
|
|
2413
2417
|
wrapperStyles: {},
|
|
@@ -2416,112 +2420,112 @@ const St = Object.assign(un, {
|
|
|
2416
2420
|
suffixStyles: {}
|
|
2417
2421
|
};
|
|
2418
2422
|
}
|
|
2419
|
-
},
|
|
2423
|
+
}, pi = X(
|
|
2420
2424
|
({
|
|
2421
|
-
value:
|
|
2425
|
+
value: e = "",
|
|
2422
2426
|
onChange: r,
|
|
2423
2427
|
type: a = "text",
|
|
2424
2428
|
placeholder: s,
|
|
2425
2429
|
maxLength: i,
|
|
2426
|
-
minLength:
|
|
2427
|
-
autoComplete:
|
|
2428
|
-
autoFocus:
|
|
2429
|
-
size:
|
|
2430
|
-
inputProps:
|
|
2431
|
-
error:
|
|
2432
|
-
disabled:
|
|
2430
|
+
minLength: o,
|
|
2431
|
+
autoComplete: l,
|
|
2432
|
+
autoFocus: u,
|
|
2433
|
+
size: c = ae.MEDIUM,
|
|
2434
|
+
inputProps: p,
|
|
2435
|
+
error: h,
|
|
2436
|
+
disabled: m,
|
|
2433
2437
|
loading: b,
|
|
2434
|
-
helper:
|
|
2435
|
-
prefix:
|
|
2436
|
-
suffix:
|
|
2437
|
-
clearable:
|
|
2438
|
+
helper: g,
|
|
2439
|
+
prefix: y,
|
|
2440
|
+
suffix: S,
|
|
2441
|
+
clearable: x = !1,
|
|
2438
2442
|
id: C,
|
|
2439
|
-
showLabel:
|
|
2440
|
-
onFocus:
|
|
2441
|
-
onBlur:
|
|
2442
|
-
onSuffixClick:
|
|
2443
|
-
onClear:
|
|
2444
|
-
className:
|
|
2445
|
-
truncate:
|
|
2443
|
+
showLabel: _ = !0,
|
|
2444
|
+
onFocus: L,
|
|
2445
|
+
onBlur: E,
|
|
2446
|
+
onSuffixClick: A,
|
|
2447
|
+
onClear: j,
|
|
2448
|
+
className: T,
|
|
2449
|
+
truncate: O = !0,
|
|
2446
2450
|
hint: U,
|
|
2447
|
-
showHint:
|
|
2451
|
+
showHint: B = !1,
|
|
2448
2452
|
showHintOnEmpty: z = !1,
|
|
2449
|
-
wrapperProps:
|
|
2450
|
-
labelProps:
|
|
2451
|
-
helperProps:
|
|
2452
|
-
...
|
|
2453
|
-
},
|
|
2454
|
-
const
|
|
2455
|
-
r == null || r(""),
|
|
2456
|
-
},
|
|
2457
|
-
|
|
2453
|
+
wrapperProps: N,
|
|
2454
|
+
labelProps: v,
|
|
2455
|
+
helperProps: $,
|
|
2456
|
+
...P
|
|
2457
|
+
}, F) => {
|
|
2458
|
+
const G = (e || "").length > 0, Q = c === ae.LARGE, ne = !!y, Z = Q && _ && !y, ie = x && G && !(m || b), ee = () => {
|
|
2459
|
+
r == null || r(""), j == null || j();
|
|
2460
|
+
}, ve = ie ? /* @__PURE__ */ n.jsx(
|
|
2461
|
+
Gt,
|
|
2458
2462
|
{
|
|
2459
|
-
size:
|
|
2463
|
+
size: c === ae.SMALL ? "xs" : "sm",
|
|
2460
2464
|
color: "var(--icon-secondary)",
|
|
2461
|
-
onClick:
|
|
2465
|
+
onClick: ee,
|
|
2462
2466
|
style: { cursor: "pointer" },
|
|
2463
2467
|
"data-testid": "x-icon"
|
|
2464
2468
|
}
|
|
2465
|
-
) :
|
|
2469
|
+
) : S, Ae = {
|
|
2466
2470
|
type: a,
|
|
2467
|
-
minLength:
|
|
2468
|
-
autoComplete:
|
|
2469
|
-
autoFocus:
|
|
2470
|
-
...
|
|
2471
|
-
},
|
|
2472
|
-
return /* @__PURE__ */
|
|
2473
|
-
|
|
2471
|
+
minLength: o,
|
|
2472
|
+
autoComplete: l,
|
|
2473
|
+
autoFocus: u,
|
|
2474
|
+
...p
|
|
2475
|
+
}, fe = Nn(c, Z, G, ne);
|
|
2476
|
+
return /* @__PURE__ */ n.jsx(
|
|
2477
|
+
Vt,
|
|
2474
2478
|
{
|
|
2475
|
-
size:
|
|
2476
|
-
error:
|
|
2477
|
-
disabled:
|
|
2479
|
+
size: c,
|
|
2480
|
+
error: h,
|
|
2481
|
+
disabled: m || b,
|
|
2478
2482
|
loading: b,
|
|
2479
|
-
helper:
|
|
2480
|
-
prefix:
|
|
2481
|
-
suffix:
|
|
2483
|
+
helper: g,
|
|
2484
|
+
prefix: y,
|
|
2485
|
+
suffix: ve,
|
|
2482
2486
|
id: C,
|
|
2483
|
-
showLabel:
|
|
2484
|
-
onFocus:
|
|
2485
|
-
onBlur:
|
|
2486
|
-
onSuffixClick:
|
|
2487
|
+
showLabel: Z,
|
|
2488
|
+
onFocus: L,
|
|
2489
|
+
onBlur: E,
|
|
2490
|
+
onSuffixClick: A,
|
|
2487
2491
|
onChange: r,
|
|
2488
|
-
value:
|
|
2492
|
+
value: e,
|
|
2489
2493
|
placeholder: s,
|
|
2490
|
-
className:
|
|
2491
|
-
wrapperStyles:
|
|
2492
|
-
floatingLabelStyles:
|
|
2493
|
-
prefixStyles:
|
|
2494
|
-
suffixStyles:
|
|
2495
|
-
wrapperProps:
|
|
2496
|
-
labelProps:
|
|
2497
|
-
helperProps:
|
|
2494
|
+
className: T,
|
|
2495
|
+
wrapperStyles: fe.wrapperStyles,
|
|
2496
|
+
floatingLabelStyles: fe.floatingLabelStyles,
|
|
2497
|
+
prefixStyles: fe.prefixStyles,
|
|
2498
|
+
suffixStyles: fe.suffixStyles,
|
|
2499
|
+
wrapperProps: N,
|
|
2500
|
+
labelProps: v,
|
|
2501
|
+
helperProps: $,
|
|
2498
2502
|
showLimit: !1,
|
|
2499
2503
|
maxLength: i,
|
|
2500
|
-
inputProps:
|
|
2504
|
+
inputProps: Ae,
|
|
2501
2505
|
hint: U,
|
|
2502
|
-
showHint:
|
|
2506
|
+
showHint: B,
|
|
2503
2507
|
showHintOnEmpty: z,
|
|
2504
|
-
truncate:
|
|
2505
|
-
...
|
|
2508
|
+
truncate: O,
|
|
2509
|
+
...P
|
|
2506
2510
|
}
|
|
2507
2511
|
);
|
|
2508
2512
|
}
|
|
2509
|
-
),
|
|
2513
|
+
), ce = {
|
|
2510
2514
|
SMALL: "small",
|
|
2511
2515
|
MEDIUM: "medium"
|
|
2512
|
-
},
|
|
2516
|
+
}, He = {
|
|
2513
2517
|
SMALL: "12px",
|
|
2514
2518
|
MEDIUM: "16px"
|
|
2515
|
-
},
|
|
2519
|
+
}, Dn = {
|
|
2516
2520
|
SMALL: "xs",
|
|
2517
2521
|
MEDIUM: "sm"
|
|
2518
|
-
},
|
|
2522
|
+
}, We = {
|
|
2519
2523
|
FILL: "fill",
|
|
2520
2524
|
FIXED: "fixed"
|
|
2521
|
-
},
|
|
2525
|
+
}, st = {
|
|
2522
2526
|
SMALL: "112px",
|
|
2523
2527
|
MEDIUM: "56px"
|
|
2524
|
-
},
|
|
2528
|
+
}, Ie = {
|
|
2525
2529
|
SMALL: "48px",
|
|
2526
2530
|
MEDIUM: "22px"
|
|
2527
2531
|
}, ge = {
|
|
@@ -2529,238 +2533,698 @@ const St = Object.assign(un, {
|
|
|
2529
2533
|
MEDIUM: "16px 16px 16px 16px",
|
|
2530
2534
|
MEDIUM_WITH_PREFIX: "12px 16px 12px 16px",
|
|
2531
2535
|
MEDIUM_FLOATING_LABEL: "8px 16px 8px 16px"
|
|
2532
|
-
},
|
|
2536
|
+
}, me = {
|
|
2533
2537
|
SMALL: 48,
|
|
2534
2538
|
MEDIUM: 56,
|
|
2535
2539
|
LARGE: 112
|
|
2536
|
-
},
|
|
2537
|
-
if (
|
|
2538
|
-
return
|
|
2540
|
+
}, On = (e, r) => {
|
|
2541
|
+
if (e === ce.SMALL)
|
|
2542
|
+
return st.SMALL;
|
|
2539
2543
|
if (r)
|
|
2540
2544
|
return `${r}px`;
|
|
2541
|
-
switch (
|
|
2542
|
-
case
|
|
2543
|
-
return
|
|
2545
|
+
switch (e) {
|
|
2546
|
+
case ce.MEDIUM:
|
|
2547
|
+
return st.MEDIUM;
|
|
2544
2548
|
default:
|
|
2545
|
-
return
|
|
2549
|
+
return st.MEDIUM;
|
|
2546
2550
|
}
|
|
2547
|
-
},
|
|
2548
|
-
if (
|
|
2549
|
-
return
|
|
2551
|
+
}, Pn = (e, r) => {
|
|
2552
|
+
if (e === ce.SMALL)
|
|
2553
|
+
return Ie.SMALL;
|
|
2550
2554
|
if (r)
|
|
2551
2555
|
switch (r) {
|
|
2552
|
-
case
|
|
2553
|
-
case
|
|
2554
|
-
return
|
|
2555
|
-
case
|
|
2556
|
-
return
|
|
2556
|
+
case me.SMALL:
|
|
2557
|
+
case me.MEDIUM:
|
|
2558
|
+
return Ie.MEDIUM;
|
|
2559
|
+
case me.LARGE:
|
|
2560
|
+
return Ie.SMALL;
|
|
2557
2561
|
default:
|
|
2558
|
-
return
|
|
2562
|
+
return Ie.MEDIUM;
|
|
2559
2563
|
}
|
|
2560
|
-
switch (
|
|
2561
|
-
case
|
|
2562
|
-
return
|
|
2564
|
+
switch (e) {
|
|
2565
|
+
case ce.MEDIUM:
|
|
2566
|
+
return Ie.MEDIUM;
|
|
2563
2567
|
default:
|
|
2564
|
-
return
|
|
2568
|
+
return Ie.MEDIUM;
|
|
2565
2569
|
}
|
|
2566
|
-
},
|
|
2567
|
-
if (
|
|
2570
|
+
}, qn = (e, r, a) => {
|
|
2571
|
+
if (e === ce.SMALL)
|
|
2568
2572
|
return ge.SMALL;
|
|
2569
2573
|
if (r)
|
|
2570
2574
|
switch (r) {
|
|
2571
|
-
case
|
|
2575
|
+
case me.SMALL:
|
|
2572
2576
|
return ge.MEDIUM_WITH_PREFIX;
|
|
2573
|
-
case
|
|
2577
|
+
case me.MEDIUM:
|
|
2574
2578
|
return a ? ge.MEDIUM_FLOATING_LABEL : ge.MEDIUM;
|
|
2575
|
-
case
|
|
2579
|
+
case me.LARGE:
|
|
2576
2580
|
return ge.MEDIUM;
|
|
2577
2581
|
default:
|
|
2578
2582
|
return ge.MEDIUM;
|
|
2579
2583
|
}
|
|
2580
|
-
switch (
|
|
2581
|
-
case
|
|
2584
|
+
switch (e) {
|
|
2585
|
+
case ce.MEDIUM:
|
|
2582
2586
|
return a ? ge.MEDIUM_FLOATING_LABEL : ge.MEDIUM;
|
|
2583
2587
|
default:
|
|
2584
2588
|
return ge.MEDIUM;
|
|
2585
2589
|
}
|
|
2586
|
-
},
|
|
2587
|
-
if (
|
|
2590
|
+
}, Un = (e, r) => {
|
|
2591
|
+
if (e === ce.SMALL)
|
|
2588
2592
|
return "small";
|
|
2589
2593
|
if (r)
|
|
2590
2594
|
switch (r) {
|
|
2591
|
-
case
|
|
2595
|
+
case me.SMALL:
|
|
2592
2596
|
return "small";
|
|
2593
|
-
case
|
|
2597
|
+
case me.MEDIUM:
|
|
2594
2598
|
return "medium";
|
|
2595
|
-
case
|
|
2599
|
+
case me.LARGE:
|
|
2596
2600
|
return "medium";
|
|
2597
2601
|
default:
|
|
2598
2602
|
return "medium";
|
|
2599
2603
|
}
|
|
2600
|
-
return
|
|
2601
|
-
},
|
|
2602
|
-
const i =
|
|
2604
|
+
return e;
|
|
2605
|
+
}, Bn = (e) => Dn[e.toUpperCase()], Fn = (e) => He[e.toUpperCase()], zn = (e, r, a, s) => {
|
|
2606
|
+
const i = On(e, r), o = Pn(e, r), l = qn(e, r, a);
|
|
2603
2607
|
return {
|
|
2604
2608
|
wrapperStyles: {
|
|
2605
2609
|
minHeight: i,
|
|
2606
2610
|
// Для fill resize устанавливаем height: 100%
|
|
2607
|
-
...s ===
|
|
2611
|
+
...s === We.FILL && { height: "100%" },
|
|
2608
2612
|
// Для fixed resize устанавливаем фиксированную высоту
|
|
2609
|
-
...s ===
|
|
2613
|
+
...s === We.FIXED && r && { height: i },
|
|
2610
2614
|
boxSizing: "border-box",
|
|
2611
|
-
padding:
|
|
2615
|
+
padding: l
|
|
2612
2616
|
},
|
|
2613
2617
|
floatingLabelStyles: {
|
|
2614
|
-
left:
|
|
2618
|
+
left: e === ce.SMALL ? He.SMALL : He.MEDIUM,
|
|
2615
2619
|
transformOrigin: "left top",
|
|
2616
|
-
top: r === 112 && a &&
|
|
2620
|
+
top: r === 112 && a && e === ce.MEDIUM ? He.MEDIUM : void 0
|
|
2617
2621
|
},
|
|
2618
2622
|
suffixStyles: {
|
|
2619
|
-
right:
|
|
2623
|
+
right: Fn(e)
|
|
2620
2624
|
},
|
|
2621
2625
|
textareaStyles: {
|
|
2622
|
-
minHeight:
|
|
2626
|
+
minHeight: o,
|
|
2623
2627
|
// Для fill resize flex: 1
|
|
2624
|
-
...s ===
|
|
2628
|
+
...s === We.FILL && { flex: 1, minHeight: 0 },
|
|
2625
2629
|
// Для fixed resize фиксированная высота
|
|
2626
|
-
...s ===
|
|
2630
|
+
...s === We.FIXED && r && { height: o }
|
|
2627
2631
|
}
|
|
2628
2632
|
};
|
|
2629
|
-
},
|
|
2633
|
+
}, fi = X(
|
|
2630
2634
|
({
|
|
2631
|
-
value:
|
|
2635
|
+
value: e = "",
|
|
2632
2636
|
onChange: r,
|
|
2633
2637
|
placeholder: a,
|
|
2634
2638
|
maxLength: s,
|
|
2635
2639
|
minLength: i,
|
|
2636
|
-
autoFocus:
|
|
2637
|
-
size:
|
|
2638
|
-
textareaProps:
|
|
2639
|
-
error:
|
|
2640
|
-
disabled:
|
|
2641
|
-
loading:
|
|
2642
|
-
helper:
|
|
2640
|
+
autoFocus: o,
|
|
2641
|
+
size: l = ce.MEDIUM,
|
|
2642
|
+
textareaProps: u,
|
|
2643
|
+
error: c,
|
|
2644
|
+
disabled: p,
|
|
2645
|
+
loading: h,
|
|
2646
|
+
helper: m,
|
|
2643
2647
|
suffix: b,
|
|
2644
|
-
clearable:
|
|
2645
|
-
id:
|
|
2646
|
-
showLabel:
|
|
2647
|
-
onFocus:
|
|
2648
|
+
clearable: g = !1,
|
|
2649
|
+
id: y,
|
|
2650
|
+
showLabel: S = !0,
|
|
2651
|
+
onFocus: x,
|
|
2648
2652
|
onBlur: C,
|
|
2649
|
-
onClear:
|
|
2650
|
-
onKeyDown:
|
|
2651
|
-
className:
|
|
2652
|
-
rows:
|
|
2653
|
-
showLimit:
|
|
2654
|
-
wrapperProps:
|
|
2655
|
-
labelProps:
|
|
2653
|
+
onClear: _,
|
|
2654
|
+
onKeyDown: L,
|
|
2655
|
+
className: E,
|
|
2656
|
+
rows: A = 1,
|
|
2657
|
+
showLimit: j = !1,
|
|
2658
|
+
wrapperProps: T,
|
|
2659
|
+
labelProps: O,
|
|
2656
2660
|
helperProps: U,
|
|
2657
|
-
showGrip:
|
|
2661
|
+
showGrip: B,
|
|
2658
2662
|
minHeight: z,
|
|
2659
|
-
resize:
|
|
2660
|
-
...
|
|
2661
|
-
},
|
|
2662
|
-
const
|
|
2663
|
-
r == null || r(""),
|
|
2664
|
-
},
|
|
2665
|
-
|
|
2663
|
+
resize: N,
|
|
2664
|
+
...v
|
|
2665
|
+
}, $) => {
|
|
2666
|
+
const P = (e || "").length > 0, F = S && !!a && (l === ce.SMALL || z !== 48), G = g && P && !(p || h), Q = () => {
|
|
2667
|
+
r == null || r(""), _ == null || _();
|
|
2668
|
+
}, ne = G ? /* @__PURE__ */ n.jsx(
|
|
2669
|
+
Gt,
|
|
2666
2670
|
{
|
|
2667
|
-
size:
|
|
2671
|
+
size: Bn(l),
|
|
2668
2672
|
color: "var(--icon-secondary)",
|
|
2669
2673
|
onClick: Q,
|
|
2670
2674
|
style: { cursor: "pointer" },
|
|
2671
2675
|
"data-testid": "x-icon"
|
|
2672
2676
|
}
|
|
2673
|
-
) : b,
|
|
2674
|
-
rows:
|
|
2677
|
+
) : b, Z = zn(l, z, F && P, N), ie = Un(l, z), ee = {
|
|
2678
|
+
rows: A,
|
|
2675
2679
|
minLength: i,
|
|
2676
|
-
autoFocus:
|
|
2677
|
-
resize:
|
|
2678
|
-
...
|
|
2680
|
+
autoFocus: o,
|
|
2681
|
+
resize: N,
|
|
2682
|
+
...u
|
|
2679
2683
|
};
|
|
2680
|
-
return /* @__PURE__ */
|
|
2681
|
-
|
|
2684
|
+
return /* @__PURE__ */ n.jsx(
|
|
2685
|
+
Vt,
|
|
2682
2686
|
{
|
|
2683
|
-
ref:
|
|
2687
|
+
ref: $,
|
|
2684
2688
|
component: "textarea",
|
|
2685
|
-
size:
|
|
2686
|
-
error:
|
|
2687
|
-
disabled:
|
|
2688
|
-
loading:
|
|
2689
|
-
helper:
|
|
2690
|
-
suffix:
|
|
2691
|
-
id:
|
|
2692
|
-
showLabel:
|
|
2693
|
-
onFocus:
|
|
2689
|
+
size: ie,
|
|
2690
|
+
error: c,
|
|
2691
|
+
disabled: p || h,
|
|
2692
|
+
loading: h,
|
|
2693
|
+
helper: m,
|
|
2694
|
+
suffix: ne,
|
|
2695
|
+
id: y,
|
|
2696
|
+
showLabel: F,
|
|
2697
|
+
onFocus: x,
|
|
2694
2698
|
onBlur: C,
|
|
2695
|
-
onKeyDown:
|
|
2699
|
+
onKeyDown: L,
|
|
2696
2700
|
onChange: r,
|
|
2697
|
-
value:
|
|
2701
|
+
value: e || "",
|
|
2698
2702
|
placeholder: a,
|
|
2699
|
-
className:
|
|
2700
|
-
"data-floating-label":
|
|
2701
|
-
wrapperStyles:
|
|
2702
|
-
floatingLabelStyles:
|
|
2703
|
-
suffixStyles:
|
|
2704
|
-
textareaStyles:
|
|
2705
|
-
wrapperProps:
|
|
2706
|
-
labelProps:
|
|
2703
|
+
className: E,
|
|
2704
|
+
"data-floating-label": F,
|
|
2705
|
+
wrapperStyles: Z.wrapperStyles,
|
|
2706
|
+
floatingLabelStyles: Z.floatingLabelStyles,
|
|
2707
|
+
suffixStyles: Z.suffixStyles,
|
|
2708
|
+
textareaStyles: Z.textareaStyles,
|
|
2709
|
+
wrapperProps: T,
|
|
2710
|
+
labelProps: O,
|
|
2707
2711
|
helperProps: U,
|
|
2708
|
-
showLimit:
|
|
2712
|
+
showLimit: j && (z === 112 || l === ce.SMALL),
|
|
2709
2713
|
maxLength: s,
|
|
2710
|
-
inputProps:
|
|
2711
|
-
resize:
|
|
2712
|
-
showGrip:
|
|
2713
|
-
...
|
|
2714
|
+
inputProps: ee,
|
|
2715
|
+
resize: N,
|
|
2716
|
+
showGrip: B,
|
|
2717
|
+
...v
|
|
2714
2718
|
}
|
|
2715
2719
|
);
|
|
2716
2720
|
}
|
|
2717
|
-
),
|
|
2718
|
-
helper:
|
|
2719
|
-
"helper--error": "_helper--
|
|
2720
|
-
"helper--disabled": "_helper--
|
|
2721
|
-
},
|
|
2722
|
-
title:
|
|
2721
|
+
), Wn = "_helper_1jq7j_16", nt = {
|
|
2722
|
+
helper: Wn,
|
|
2723
|
+
"helper--error": "_helper--error_1jq7j_28",
|
|
2724
|
+
"helper--disabled": "_helper--disabled_1jq7j_33"
|
|
2725
|
+
}, hi = ({
|
|
2726
|
+
title: e,
|
|
2723
2727
|
error: r,
|
|
2724
2728
|
className: a = "",
|
|
2725
2729
|
style: s,
|
|
2726
2730
|
disabled: i = !1,
|
|
2727
|
-
"data-testid":
|
|
2728
|
-
"aria-label":
|
|
2729
|
-
"aria-describedby":
|
|
2731
|
+
"data-testid": o,
|
|
2732
|
+
"aria-label": l,
|
|
2733
|
+
"aria-describedby": u
|
|
2730
2734
|
}) => {
|
|
2731
|
-
const
|
|
2732
|
-
|
|
2733
|
-
|
|
2734
|
-
i &&
|
|
2735
|
+
const c = !!r, p = I(
|
|
2736
|
+
nt.helper,
|
|
2737
|
+
c && nt["helper--error"],
|
|
2738
|
+
i && nt["helper--disabled"],
|
|
2735
2739
|
a
|
|
2736
|
-
),
|
|
2737
|
-
return /* @__PURE__ */
|
|
2740
|
+
), h = i ? e : r || e;
|
|
2741
|
+
return /* @__PURE__ */ n.jsx(
|
|
2738
2742
|
"div",
|
|
2739
2743
|
{
|
|
2740
|
-
className:
|
|
2744
|
+
className: p,
|
|
2741
2745
|
style: s,
|
|
2742
|
-
"data-testid":
|
|
2743
|
-
"aria-label":
|
|
2744
|
-
"aria-describedby":
|
|
2745
|
-
children: /* @__PURE__ */
|
|
2746
|
+
"data-testid": o,
|
|
2747
|
+
"aria-label": l,
|
|
2748
|
+
"aria-describedby": u,
|
|
2749
|
+
children: /* @__PURE__ */ n.jsx("p", { children: h })
|
|
2746
2750
|
}
|
|
2747
2751
|
);
|
|
2752
|
+
}, Gn = "_radio_1q34w_54", Hn = "_checked_1q34w_75", Vn = "_error_1q34w_80", Zn = "_disabled_1q34w_89", Yn = "_icon_1q34w_125", Kn = "_small_1q34w_133", Jn = "_medium_1q34w_140", Xn = "_large_1q34w_147", Qn = "_label_1q34w_154", eo = "_container_1q34w_180", to = "_input_1q34w_193", ao = "_card_1q34w_200", ro = "_smallCard_1q34w_206", so = "_mediumCard_1q34w_210", no = "_largeCard_1q34w_214", oe = {
|
|
2753
|
+
radio: Gn,
|
|
2754
|
+
checked: Hn,
|
|
2755
|
+
error: Vn,
|
|
2756
|
+
disabled: Zn,
|
|
2757
|
+
icon: Yn,
|
|
2758
|
+
small: Kn,
|
|
2759
|
+
medium: Jn,
|
|
2760
|
+
large: Xn,
|
|
2761
|
+
label: Qn,
|
|
2762
|
+
container: eo,
|
|
2763
|
+
input: to,
|
|
2764
|
+
card: ao,
|
|
2765
|
+
smallCard: ro,
|
|
2766
|
+
mediumCard: so,
|
|
2767
|
+
largeCard: no
|
|
2768
|
+
}, oo = "radio-container-", io = "radio-label", Zt = X(
|
|
2769
|
+
(e, r) => {
|
|
2770
|
+
const {
|
|
2771
|
+
name: a,
|
|
2772
|
+
id: s,
|
|
2773
|
+
value: i,
|
|
2774
|
+
size: o = "large",
|
|
2775
|
+
loading: l = !1,
|
|
2776
|
+
error: u,
|
|
2777
|
+
disabled: c = !1,
|
|
2778
|
+
checked: p = !1,
|
|
2779
|
+
containerClassName: h,
|
|
2780
|
+
className: m,
|
|
2781
|
+
children: b,
|
|
2782
|
+
clickable: g = "all",
|
|
2783
|
+
mode: y = "default",
|
|
2784
|
+
tabIndex: S,
|
|
2785
|
+
style: x,
|
|
2786
|
+
containerStyle: C,
|
|
2787
|
+
onChange: _,
|
|
2788
|
+
"data-testid": L,
|
|
2789
|
+
...E
|
|
2790
|
+
} = e, A = !!u, j = c || l, T = g === "all", O = y === "card", U = oe[`${o}Card`], B = s ?? a, z = (F) => {
|
|
2791
|
+
j || _ == null || _(i, F);
|
|
2792
|
+
}, N = (F) => {
|
|
2793
|
+
F.key === "Enter" && !j && (F.preventDefault(), _ == null || _(i));
|
|
2794
|
+
}, v = (F) => F.stopPropagation(), $ = () => /* @__PURE__ */ n.jsxs(
|
|
2795
|
+
"div",
|
|
2796
|
+
{
|
|
2797
|
+
className: I(
|
|
2798
|
+
oe.radio,
|
|
2799
|
+
oe[o],
|
|
2800
|
+
{
|
|
2801
|
+
[oe.checked]: p,
|
|
2802
|
+
[oe.disabled]: j,
|
|
2803
|
+
[oe.error]: A && !j
|
|
2804
|
+
},
|
|
2805
|
+
m
|
|
2806
|
+
),
|
|
2807
|
+
style: x,
|
|
2808
|
+
tabIndex: S || 1,
|
|
2809
|
+
"data-testid": `${oo}${B}`,
|
|
2810
|
+
children: [
|
|
2811
|
+
/* @__PURE__ */ n.jsx(
|
|
2812
|
+
"input",
|
|
2813
|
+
{
|
|
2814
|
+
"aria-errormessage": u,
|
|
2815
|
+
"aria-invalid": A,
|
|
2816
|
+
checked: p,
|
|
2817
|
+
className: oe.input,
|
|
2818
|
+
"data-testid": `radio-${B}`,
|
|
2819
|
+
disabled: j,
|
|
2820
|
+
id: B,
|
|
2821
|
+
name: a,
|
|
2822
|
+
ref: r,
|
|
2823
|
+
type: "radio",
|
|
2824
|
+
value: i,
|
|
2825
|
+
onChange: z,
|
|
2826
|
+
onClick: v
|
|
2827
|
+
}
|
|
2828
|
+
),
|
|
2829
|
+
/* @__PURE__ */ n.jsx("svg", { "data-testid": `radio-icon-${B}`, viewBox: "0 0 8 8", className: oe.icon, children: /* @__PURE__ */ n.jsx("circle", { cx: 4, cy: 4, fill: "current", r: 4 }) })
|
|
2830
|
+
]
|
|
2831
|
+
}
|
|
2832
|
+
), P = () => /* @__PURE__ */ n.jsxs(
|
|
2833
|
+
"label",
|
|
2834
|
+
{
|
|
2835
|
+
"aria-checked": p,
|
|
2836
|
+
"aria-disabled": j,
|
|
2837
|
+
"data-testid": T ? L : io,
|
|
2838
|
+
htmlFor: B,
|
|
2839
|
+
style: C,
|
|
2840
|
+
className: I(oe.label, {
|
|
2841
|
+
[I(oe.container, oe[y], h)]: T,
|
|
2842
|
+
[U]: T && O
|
|
2843
|
+
}),
|
|
2844
|
+
onKeyDown: N,
|
|
2845
|
+
...E,
|
|
2846
|
+
children: [
|
|
2847
|
+
$(),
|
|
2848
|
+
T && b
|
|
2849
|
+
]
|
|
2850
|
+
}
|
|
2851
|
+
);
|
|
2852
|
+
return T ? P() : /* @__PURE__ */ n.jsxs(
|
|
2853
|
+
"div",
|
|
2854
|
+
{
|
|
2855
|
+
className: I(oe.container, oe[y], h, {
|
|
2856
|
+
[U]: O
|
|
2857
|
+
}),
|
|
2858
|
+
"data-testid": L,
|
|
2859
|
+
children: [
|
|
2860
|
+
P(),
|
|
2861
|
+
b
|
|
2862
|
+
]
|
|
2863
|
+
}
|
|
2864
|
+
);
|
|
2865
|
+
}
|
|
2866
|
+
), lo = "_group_o6mjt_7", co = "_vertical_o6mjt_12", uo = "_horizontal_o6mjt_16", Dt = {
|
|
2867
|
+
group: lo,
|
|
2868
|
+
vertical: co,
|
|
2869
|
+
horizontal: uo
|
|
2870
|
+
}, _o = X(
|
|
2871
|
+
(e, r) => {
|
|
2872
|
+
const {
|
|
2873
|
+
id: a,
|
|
2874
|
+
name: s,
|
|
2875
|
+
value: i,
|
|
2876
|
+
options: o,
|
|
2877
|
+
className: l,
|
|
2878
|
+
radioClassName: u,
|
|
2879
|
+
disabled: c = !1,
|
|
2880
|
+
layout: p = "vertical",
|
|
2881
|
+
"data-testid": h,
|
|
2882
|
+
...m
|
|
2883
|
+
} = e;
|
|
2884
|
+
return /* @__PURE__ */ n.jsx(
|
|
2885
|
+
"div",
|
|
2886
|
+
{
|
|
2887
|
+
className: Ce(Dt.group, Dt[p], l),
|
|
2888
|
+
"data-testid": h ?? `radio-group-${s}`,
|
|
2889
|
+
id: a,
|
|
2890
|
+
ref: r,
|
|
2891
|
+
children: o.map(({ label: b, value: g, disabled: y }) => {
|
|
2892
|
+
const S = `${s}-${String(g)}`, x = String(g) === String(i);
|
|
2893
|
+
return /* @__PURE__ */ n.jsx(
|
|
2894
|
+
Zt,
|
|
2895
|
+
{
|
|
2896
|
+
id: S,
|
|
2897
|
+
checked: x,
|
|
2898
|
+
"data-testid": S,
|
|
2899
|
+
disabled: c || y,
|
|
2900
|
+
name: s,
|
|
2901
|
+
value: g,
|
|
2902
|
+
className: u,
|
|
2903
|
+
...m,
|
|
2904
|
+
children: b
|
|
2905
|
+
},
|
|
2906
|
+
S
|
|
2907
|
+
);
|
|
2908
|
+
})
|
|
2909
|
+
}
|
|
2910
|
+
);
|
|
2911
|
+
}
|
|
2912
|
+
), gi = Object.assign(Zt, {
|
|
2913
|
+
Group: _o
|
|
2914
|
+
}), po = "_root_1jj3e_25", fo = "_unordered_1jj3e_39", ho = "_ordered_1jj3e_43", go = "_sm_1jj3e_48", bo = "_md_1jj3e_59", mo = "_lg_1jj3e_70", yo = "_xl_1jj3e_81", ot = {
|
|
2915
|
+
root: po,
|
|
2916
|
+
unordered: fo,
|
|
2917
|
+
ordered: ho,
|
|
2918
|
+
sm: go,
|
|
2919
|
+
md: bo,
|
|
2920
|
+
lg: mo,
|
|
2921
|
+
xl: yo
|
|
2922
|
+
}, vo = (e) => {
|
|
2923
|
+
const { children: r, className: a, "data-testid": s = "list-item" } = e;
|
|
2924
|
+
return /* @__PURE__ */ n.jsx("li", { "data-testid": s, className: a, children: r });
|
|
2925
|
+
}, bi = Object.assign(
|
|
2926
|
+
X((e, r) => {
|
|
2927
|
+
const {
|
|
2928
|
+
variant: a = "unordered",
|
|
2929
|
+
className: s,
|
|
2930
|
+
children: i,
|
|
2931
|
+
size: o = "md",
|
|
2932
|
+
"data-testid": l = "list",
|
|
2933
|
+
...u
|
|
2934
|
+
} = e, c = a === "ordered" ? "ol" : "ul";
|
|
2935
|
+
return /* @__PURE__ */ n.jsx(
|
|
2936
|
+
c,
|
|
2937
|
+
{
|
|
2938
|
+
"data-testid": l,
|
|
2939
|
+
ref: r,
|
|
2940
|
+
className: Ce(ot.root, ot[a], ot[o], s),
|
|
2941
|
+
...a === "ordered" && u,
|
|
2942
|
+
children: i
|
|
2943
|
+
}
|
|
2944
|
+
);
|
|
2945
|
+
}),
|
|
2946
|
+
{ Item: vo }
|
|
2947
|
+
), xo = "_wrapper_1v8xn_5", Co = "_viewport_1v8xn_12", wo = "_mask_1v8xn_26", So = "_maskLeft_1v8xn_37", Lo = "_maskRight_1v8xn_42", Eo = "_visible_1v8xn_46", ko = "_control_1v8xn_51", jo = "_xs_1v8xn_70", $o = "_sm_1v8xn_73", Ro = "_md_1v8xn_76", Mo = "_left_1v8xn_80", Io = "_right_1v8xn_83", se = {
|
|
2948
|
+
wrapper: xo,
|
|
2949
|
+
viewport: Co,
|
|
2950
|
+
mask: wo,
|
|
2951
|
+
maskLeft: So,
|
|
2952
|
+
maskRight: Lo,
|
|
2953
|
+
visible: Eo,
|
|
2954
|
+
control: ko,
|
|
2955
|
+
xs: jo,
|
|
2956
|
+
sm: $o,
|
|
2957
|
+
md: Ro,
|
|
2958
|
+
left: Mo,
|
|
2959
|
+
right: Io
|
|
2960
|
+
}, To = "white", Ao = ({
|
|
2961
|
+
children: e,
|
|
2962
|
+
withControls: r = !0,
|
|
2963
|
+
className: a,
|
|
2964
|
+
size: s
|
|
2965
|
+
}) => {
|
|
2966
|
+
const i = qe(null), [o, l] = ye(!1), [u, c] = ye(!1), { ref: p, bgColor: h } = Ft(), m = p ?? { current: null }, b = h ?? To, g = r && o, y = r && u, S = ({ direction: _ }) => /* @__PURE__ */ n.jsx(
|
|
2967
|
+
"svg",
|
|
2968
|
+
{
|
|
2969
|
+
height: "12px",
|
|
2970
|
+
width: "12px",
|
|
2971
|
+
viewBox: "0 0 185.343 185.343",
|
|
2972
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2973
|
+
children: /* @__PURE__ */ n.jsx("g", { transform: _ === "left" ? "scale(-1,1) translate(-185.343,0)" : void 0, children: /* @__PURE__ */ n.jsx(
|
|
2974
|
+
"path",
|
|
2975
|
+
{
|
|
2976
|
+
fill: "currentColor",
|
|
2977
|
+
d: `M51.707,185.343c-2.741,0-5.493-1.044-7.593-3.149c-4.194-4.194-4.194-10.981,0-15.175
|
|
2978
|
+
l74.352-74.347L44.114,18.32c-4.194-4.194-4.194-10.987,0-15.175c4.194-4.194,10.987-4.194,15.18,0l81.934,81.934
|
|
2979
|
+
c4.194,4.194,4.194,10.987,0,15.175l-81.934,81.939C57.201,184.293,54.454,185.343,51.707,185.343z`
|
|
2980
|
+
}
|
|
2981
|
+
) })
|
|
2982
|
+
}
|
|
2983
|
+
), x = () => {
|
|
2984
|
+
const _ = i.current;
|
|
2985
|
+
if (!_) return;
|
|
2986
|
+
const L = Math.round(_.scrollLeft), E = Math.round(_.scrollLeft + _.clientWidth), A = Math.round(_.scrollWidth);
|
|
2987
|
+
l(L > 0), c(E < A);
|
|
2988
|
+
}, C = (_) => {
|
|
2989
|
+
const L = i.current;
|
|
2990
|
+
if (!L) return;
|
|
2991
|
+
const E = L.clientWidth;
|
|
2992
|
+
L.scrollBy({ left: _ === "left" ? -E : E, behavior: "smooth" });
|
|
2993
|
+
};
|
|
2994
|
+
return ue(() => {
|
|
2995
|
+
const _ = i.current;
|
|
2996
|
+
if (!_) return;
|
|
2997
|
+
const L = (E) => {
|
|
2998
|
+
Math.abs(E.deltaX) > Math.abs(E.deltaY) || _.scrollWidth > _.clientWidth && (E.preventDefault(), _.scrollBy({ left: E.deltaY, behavior: "auto" }));
|
|
2999
|
+
};
|
|
3000
|
+
return _.addEventListener("wheel", L, { passive: !1 }), () => _.removeEventListener("wheel", L);
|
|
3001
|
+
}, []), ue(() => {
|
|
3002
|
+
x();
|
|
3003
|
+
const _ = i.current;
|
|
3004
|
+
if (_)
|
|
3005
|
+
return _.addEventListener("scroll", x, { passive: !0 }), window.addEventListener("resize", x), () => {
|
|
3006
|
+
_.removeEventListener("scroll", x), window.removeEventListener("resize", x);
|
|
3007
|
+
};
|
|
3008
|
+
}, []), /* @__PURE__ */ n.jsxs("div", { ref: m, className: I(se.wrapper, a), children: [
|
|
3009
|
+
g && /* @__PURE__ */ n.jsx(
|
|
3010
|
+
"div",
|
|
3011
|
+
{
|
|
3012
|
+
className: I(se.mask, se.maskLeft, o && se.visible),
|
|
3013
|
+
style: {
|
|
3014
|
+
background: `linear-gradient(to right, ${b} 17%, transparent 80%)`
|
|
3015
|
+
}
|
|
3016
|
+
}
|
|
3017
|
+
),
|
|
3018
|
+
y && /* @__PURE__ */ n.jsx(
|
|
3019
|
+
"div",
|
|
3020
|
+
{
|
|
3021
|
+
className: I(se.mask, se.maskRight, u && se.visible),
|
|
3022
|
+
style: {
|
|
3023
|
+
background: `linear-gradient(to left, ${b} 17%, transparent 80%)`
|
|
3024
|
+
}
|
|
3025
|
+
}
|
|
3026
|
+
),
|
|
3027
|
+
/* @__PURE__ */ n.jsx("div", { ref: i, className: se.viewport, children: e }),
|
|
3028
|
+
g && /* @__PURE__ */ n.jsx(
|
|
3029
|
+
"button",
|
|
3030
|
+
{
|
|
3031
|
+
type: "button",
|
|
3032
|
+
tabIndex: -1,
|
|
3033
|
+
"aria-hidden": "true",
|
|
3034
|
+
className: I(se.control, se.left, se[s]),
|
|
3035
|
+
onClick: () => C("left"),
|
|
3036
|
+
children: /* @__PURE__ */ n.jsx(S, { direction: "left" })
|
|
3037
|
+
}
|
|
3038
|
+
),
|
|
3039
|
+
y && /* @__PURE__ */ n.jsx(
|
|
3040
|
+
"button",
|
|
3041
|
+
{
|
|
3042
|
+
type: "button",
|
|
3043
|
+
tabIndex: -1,
|
|
3044
|
+
"aria-hidden": "true",
|
|
3045
|
+
className: I(se.control, se.right, se[s]),
|
|
3046
|
+
onClick: () => C("right"),
|
|
3047
|
+
children: /* @__PURE__ */ n.jsx(S, { direction: "right" })
|
|
3048
|
+
}
|
|
3049
|
+
)
|
|
3050
|
+
] });
|
|
3051
|
+
}, No = "_tabBar_1ndpm_82", Do = "_primary_1ndpm_88", Oo = "_secondary_1ndpm_93", Po = "_tab_1ndpm_82", qo = "_md_1ndpm_125", Uo = "_sm_1ndpm_129", Bo = "_xs_1ndpm_133", Fo = "_disabled_1ndpm_137", zo = "_selected_1ndpm_143", Wo = "_tabLabel_1ndpm_222", Go = "_tabPrefix_1ndpm_234", Ho = "_tabPostfix_1ndpm_270", J = {
|
|
3052
|
+
tabBar: No,
|
|
3053
|
+
primary: Do,
|
|
3054
|
+
secondary: Oo,
|
|
3055
|
+
tab: Po,
|
|
3056
|
+
md: qo,
|
|
3057
|
+
sm: Uo,
|
|
3058
|
+
xs: Bo,
|
|
3059
|
+
disabled: Fo,
|
|
3060
|
+
selected: zo,
|
|
3061
|
+
tabLabel: Wo,
|
|
3062
|
+
tabPrefix: Go,
|
|
3063
|
+
tabPostfix: Ho
|
|
3064
|
+
}, Vo = "md", Zo = !1, Yo = 8, Ko = "top-right-inside", Yt = Pt(null), Kt = () => {
|
|
3065
|
+
const e = qt(Yt);
|
|
3066
|
+
if (!e) throw new Error("useTabs должен использоваться внутри TabsProvider");
|
|
3067
|
+
return e;
|
|
3068
|
+
}, Jo = ({
|
|
3069
|
+
children: e,
|
|
3070
|
+
defaultActiveTab: r,
|
|
3071
|
+
activeTab: a,
|
|
3072
|
+
onChange: s
|
|
3073
|
+
}) => {
|
|
3074
|
+
const [i, o] = ye(r), l = a !== void 0, u = l ? a : i, c = (p) => {
|
|
3075
|
+
l || o(p), s && s(p);
|
|
3076
|
+
};
|
|
3077
|
+
return /* @__PURE__ */ n.jsx(Yt.Provider, { value: { activeTab: u, setTab: c }, children: e });
|
|
3078
|
+
}, Xo = ({
|
|
3079
|
+
mode: e,
|
|
3080
|
+
item: r,
|
|
3081
|
+
isActive: a,
|
|
3082
|
+
showBadge: s,
|
|
3083
|
+
badgeProps: i,
|
|
3084
|
+
size: o,
|
|
3085
|
+
isDisabled: l,
|
|
3086
|
+
onSelectTab: u
|
|
3087
|
+
}) => {
|
|
3088
|
+
const {
|
|
3089
|
+
value: c,
|
|
3090
|
+
label: p,
|
|
3091
|
+
prefix: h,
|
|
3092
|
+
prefixWrapperProps: m = {},
|
|
3093
|
+
postfix: b,
|
|
3094
|
+
postfixWrapperProps: g = {}
|
|
3095
|
+
} = r, { className: y, ...S } = m, { className: x, ...C } = g, _ = {
|
|
3096
|
+
primary: pe["typography-label-3-medium"],
|
|
3097
|
+
secondary: pe["typography-label-3-regular"],
|
|
3098
|
+
prefix: pe["typography-label-3-medium"],
|
|
3099
|
+
postfix: pe["typography-label-3-medium"]
|
|
3100
|
+
}, L = {
|
|
3101
|
+
size: Yo,
|
|
3102
|
+
position: Ko,
|
|
3103
|
+
...i
|
|
3104
|
+
}, E = I(J.tab, J[e], J[o], {
|
|
3105
|
+
[J.selected]: a,
|
|
3106
|
+
[J.disabled]: l
|
|
3107
|
+
}), A = I(
|
|
3108
|
+
J.tabPrefix,
|
|
3109
|
+
y,
|
|
3110
|
+
J[e],
|
|
3111
|
+
_.prefix,
|
|
3112
|
+
{
|
|
3113
|
+
[J.selected]: a,
|
|
3114
|
+
[J.disabled]: l
|
|
3115
|
+
}
|
|
3116
|
+
), j = I(
|
|
3117
|
+
J.tabPostfix,
|
|
3118
|
+
x,
|
|
3119
|
+
J[e],
|
|
3120
|
+
_.postfix,
|
|
3121
|
+
{
|
|
3122
|
+
[J.selected]: a,
|
|
3123
|
+
[J.disabled]: l
|
|
3124
|
+
}
|
|
3125
|
+
), T = I(J.tabLabel, J[e], _[e]), O = (B) => {
|
|
3126
|
+
a || l || (u(c), B.currentTarget.scrollIntoView({ behavior: "smooth", inline: "center", block: "nearest" }));
|
|
3127
|
+
}, U = /* @__PURE__ */ n.jsxs(
|
|
3128
|
+
"button",
|
|
3129
|
+
{
|
|
3130
|
+
className: E,
|
|
3131
|
+
role: "tab",
|
|
3132
|
+
"aria-label": p,
|
|
3133
|
+
"aria-selected": a,
|
|
3134
|
+
"aria-disabled": l,
|
|
3135
|
+
"aria-controls": `tab-panel-${c}`,
|
|
3136
|
+
"data-testid": `tab-item-${c}`,
|
|
3137
|
+
onClick: O,
|
|
3138
|
+
children: [
|
|
3139
|
+
h && /* @__PURE__ */ n.jsx(
|
|
3140
|
+
"span",
|
|
3141
|
+
{
|
|
3142
|
+
className: A,
|
|
3143
|
+
...S,
|
|
3144
|
+
"data-testid": `tab-prefix-${c}`,
|
|
3145
|
+
children: h
|
|
3146
|
+
}
|
|
3147
|
+
),
|
|
3148
|
+
/* @__PURE__ */ n.jsx("span", { className: T, "data-testid": `tab-label-${c}`, children: p }),
|
|
3149
|
+
b && /* @__PURE__ */ n.jsx(
|
|
3150
|
+
"span",
|
|
3151
|
+
{
|
|
3152
|
+
className: j,
|
|
3153
|
+
...C,
|
|
3154
|
+
"data-testid": `tab-postfix-${c}`,
|
|
3155
|
+
children: b
|
|
3156
|
+
}
|
|
3157
|
+
)
|
|
3158
|
+
]
|
|
3159
|
+
}
|
|
3160
|
+
);
|
|
3161
|
+
return s ? /* @__PURE__ */ n.jsx(Gr, { ...L, "data-testid": `tab-badge-${c}`, children: U }) : U;
|
|
3162
|
+
}, Qo = ({
|
|
3163
|
+
mode: e,
|
|
3164
|
+
items: r,
|
|
3165
|
+
size: a = Vo,
|
|
3166
|
+
isAllItemsDisabled: s = Zo
|
|
3167
|
+
}) => {
|
|
3168
|
+
const { activeTab: i, setTab: o } = Kt(), l = Wr();
|
|
3169
|
+
return /* @__PURE__ */ n.jsx(Ao, { size: a, withControls: l, children: /* @__PURE__ */ n.jsx(
|
|
3170
|
+
"div",
|
|
3171
|
+
{
|
|
3172
|
+
role: "tablist",
|
|
3173
|
+
"data-testid": "tabs-bar",
|
|
3174
|
+
"aria-orientation": "horizontal",
|
|
3175
|
+
className: I(J.tabBar, J[e]),
|
|
3176
|
+
children: r.map((u) => /* @__PURE__ */ n.jsx(
|
|
3177
|
+
Xo,
|
|
3178
|
+
{
|
|
3179
|
+
size: a,
|
|
3180
|
+
item: u,
|
|
3181
|
+
mode: e,
|
|
3182
|
+
showBadge: u.showBadge,
|
|
3183
|
+
badgeProps: u.badgeProps,
|
|
3184
|
+
isActive: i === u.value,
|
|
3185
|
+
isDisabled: s || u.isDisabled,
|
|
3186
|
+
onSelectTab: o
|
|
3187
|
+
},
|
|
3188
|
+
u.value
|
|
3189
|
+
))
|
|
3190
|
+
}
|
|
3191
|
+
) });
|
|
3192
|
+
}, ei = ({ tabValue: e, children: r, ...a }) => /* @__PURE__ */ n.jsx(
|
|
3193
|
+
"div",
|
|
3194
|
+
{
|
|
3195
|
+
role: "tabpanel",
|
|
3196
|
+
"data-testid": `tab-panel-${e}`,
|
|
3197
|
+
"aria-labelledby": `tab-item-${e}`,
|
|
3198
|
+
...a,
|
|
3199
|
+
children: r
|
|
3200
|
+
}
|
|
3201
|
+
), ti = ({ children: e, ...r }) => {
|
|
3202
|
+
const { activeTab: a } = Kt(), s = lt.Children.toArray(e);
|
|
3203
|
+
return /* @__PURE__ */ n.jsx("div", { "data-testid": "tab-content", ...r, children: s.map((i) => i.props.tabValue === a ? i : null) });
|
|
3204
|
+
}, mi = {
|
|
3205
|
+
Provider: Jo,
|
|
3206
|
+
Content: ti,
|
|
3207
|
+
Panel: ei,
|
|
3208
|
+
Bar: Qo
|
|
2748
3209
|
};
|
|
2749
3210
|
export {
|
|
2750
|
-
|
|
2751
|
-
|
|
2752
|
-
|
|
2753
|
-
|
|
2754
|
-
|
|
2755
|
-
|
|
2756
|
-
|
|
2757
|
-
|
|
2758
|
-
|
|
2759
|
-
|
|
2760
|
-
|
|
2761
|
-
|
|
2762
|
-
|
|
2763
|
-
|
|
2764
|
-
|
|
2765
|
-
|
|
3211
|
+
ni as Avatar,
|
|
3212
|
+
Gr as Badge,
|
|
3213
|
+
si as Button,
|
|
3214
|
+
ui as Checkbox,
|
|
3215
|
+
li as ConfigProvider,
|
|
3216
|
+
hi as Helper,
|
|
3217
|
+
oi as Image,
|
|
3218
|
+
bi as List,
|
|
3219
|
+
is as Loader,
|
|
3220
|
+
gi as Radio,
|
|
3221
|
+
mi as Tabs,
|
|
3222
|
+
di as Tag,
|
|
3223
|
+
fi as TextArea,
|
|
3224
|
+
pi as TextInput,
|
|
3225
|
+
_i as Typography,
|
|
3226
|
+
cs as enUS,
|
|
3227
|
+
ci as ruRU,
|
|
3228
|
+
ds as useConfig,
|
|
3229
|
+
ii as useLocale
|
|
2766
3230
|
};
|