skillgrid 0.0.25-dev-38682-image.1172030 → 0.0.26
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/Image/Image.type.d.ts +0 -4
- package/dist/components/Loader/Loader.type.d.ts +1 -1
- 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 +13 -0
- package/dist/components/Tabs/Tabs.d.ts +27 -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 +1 -0
- package/dist/index.cjs.js +11 -11
- package/dist/index.css +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.es.js +1861 -1694
- package/dist/types/common.d.ts +1 -0
- package/dist/types/index.d.ts +1 -0
- package/package.json +3 -2
package/dist/index.es.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import
|
|
1
|
+
import * as It from "react";
|
|
2
|
+
import Tt, { forwardRef as J, Fragment as Ae, useState as De, useEffect as xe, useRef as We, useCallback as ve, createContext as dr, useContext as ur, useLayoutEffect as _r, useImperativeHandle as pr, useId as At } from "react";
|
|
3
3
|
import { clsx as B } from "clsx";
|
|
4
|
-
import './index.css';function
|
|
5
|
-
return
|
|
4
|
+
import './index.css';function fr(e) {
|
|
5
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
6
6
|
}
|
|
7
|
-
var
|
|
7
|
+
var Pe = { exports: {} }, Ie = {};
|
|
8
8
|
/**
|
|
9
9
|
* @license React
|
|
10
10
|
* react-jsx-runtime.production.min.js
|
|
@@ -14,21 +14,21 @@ var Be = { exports: {} }, Ie = {};
|
|
|
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 c(
|
|
23
|
-
var
|
|
24
|
-
|
|
25
|
-
for (
|
|
26
|
-
if (
|
|
27
|
-
return { $$typeof:
|
|
17
|
+
var bt;
|
|
18
|
+
function gr() {
|
|
19
|
+
if (bt) return Ie;
|
|
20
|
+
bt = 1;
|
|
21
|
+
var e = Tt, a = Symbol.for("react.element"), r = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, i = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, s = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
22
|
+
function c(u, d, p) {
|
|
23
|
+
var f, y = {}, m = null, h = null;
|
|
24
|
+
p !== void 0 && (m = "" + p), d.key !== void 0 && (m = "" + d.key), d.ref !== void 0 && (h = d.ref);
|
|
25
|
+
for (f in d) n.call(d, f) && !s.hasOwnProperty(f) && (y[f] = d[f]);
|
|
26
|
+
if (u && u.defaultProps) for (f in d = u.defaultProps, d) y[f] === void 0 && (y[f] = d[f]);
|
|
27
|
+
return { $$typeof: a, type: u, key: m, ref: h, props: y, _owner: i.current };
|
|
28
28
|
}
|
|
29
|
-
return Ie.Fragment =
|
|
29
|
+
return Ie.Fragment = r, Ie.jsx = c, Ie.jsxs = c, Ie;
|
|
30
30
|
}
|
|
31
|
-
var
|
|
31
|
+
var Te = {};
|
|
32
32
|
/**
|
|
33
33
|
* @license React
|
|
34
34
|
* react-jsx-runtime.development.js
|
|
@@ -38,91 +38,91 @@ var Re = {};
|
|
|
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 w(
|
|
46
|
-
if (
|
|
41
|
+
var vt;
|
|
42
|
+
function hr() {
|
|
43
|
+
return vt || (vt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
44
|
+
var e = Tt, a = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), c = Symbol.for("react.provider"), u = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), p = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), y = Symbol.for("react.memo"), m = Symbol.for("react.lazy"), h = Symbol.for("react.offscreen"), v = Symbol.iterator, S = "@@iterator";
|
|
45
|
+
function w(t) {
|
|
46
|
+
if (t === null || typeof t != "object")
|
|
47
47
|
return null;
|
|
48
|
-
var l = v &&
|
|
48
|
+
var l = v && t[v] || t[S];
|
|
49
49
|
return typeof l == "function" ? l : null;
|
|
50
50
|
}
|
|
51
|
-
var
|
|
52
|
-
function g(
|
|
51
|
+
var x = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
52
|
+
function g(t) {
|
|
53
53
|
{
|
|
54
|
-
for (var l = arguments.length,
|
|
55
|
-
|
|
56
|
-
|
|
54
|
+
for (var l = arguments.length, _ = new Array(l > 1 ? l - 1 : 0), C = 1; C < l; C++)
|
|
55
|
+
_[C - 1] = arguments[C];
|
|
56
|
+
M("error", t, _);
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
|
-
function
|
|
59
|
+
function M(t, l, _) {
|
|
60
60
|
{
|
|
61
|
-
var
|
|
62
|
-
|
|
63
|
-
var
|
|
64
|
-
return String(
|
|
61
|
+
var C = x.ReactDebugCurrentFrame, T = C.getStackAddendum();
|
|
62
|
+
T !== "" && (l += "%s", _ = _.concat([T]));
|
|
63
|
+
var O = _.map(function(k) {
|
|
64
|
+
return String(k);
|
|
65
65
|
});
|
|
66
|
-
|
|
66
|
+
O.unshift("Warning: " + l), Function.prototype.apply.call(console[t], console, O);
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
|
-
var
|
|
70
|
-
|
|
71
|
-
function
|
|
72
|
-
return !!(typeof
|
|
69
|
+
var q = !1, A = !1, $ = !1, R = !1, N = !1, z;
|
|
70
|
+
z = Symbol.for("react.module.reference");
|
|
71
|
+
function P(t) {
|
|
72
|
+
return !!(typeof t == "string" || typeof t == "function" || t === n || t === s || N || t === i || t === p || t === f || R || t === h || q || A || $ || typeof t == "object" && t !== null && (t.$$typeof === m || t.$$typeof === y || t.$$typeof === c || t.$$typeof === u || t.$$typeof === d || // 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 === z || t.getModuleId !== void 0));
|
|
77
77
|
}
|
|
78
|
-
function
|
|
79
|
-
var
|
|
80
|
-
if (
|
|
81
|
-
return
|
|
82
|
-
var
|
|
83
|
-
return
|
|
78
|
+
function F(t, l, _) {
|
|
79
|
+
var C = t.displayName;
|
|
80
|
+
if (C)
|
|
81
|
+
return C;
|
|
82
|
+
var T = l.displayName || l.name || "";
|
|
83
|
+
return T !== "" ? _ + "(" + T + ")" : _;
|
|
84
84
|
}
|
|
85
|
-
function
|
|
86
|
-
return
|
|
85
|
+
function I(t) {
|
|
86
|
+
return t.displayName || "Context";
|
|
87
87
|
}
|
|
88
|
-
function
|
|
89
|
-
if (
|
|
88
|
+
function b(t) {
|
|
89
|
+
if (t == null)
|
|
90
90
|
return null;
|
|
91
|
-
if (typeof
|
|
92
|
-
return
|
|
93
|
-
if (typeof
|
|
94
|
-
return
|
|
95
|
-
switch (
|
|
96
|
-
case
|
|
91
|
+
if (typeof t.tag == "number" && g("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
|
+
case n:
|
|
97
97
|
return "Fragment";
|
|
98
|
-
case
|
|
98
|
+
case r:
|
|
99
99
|
return "Portal";
|
|
100
|
-
case
|
|
100
|
+
case s:
|
|
101
101
|
return "Profiler";
|
|
102
102
|
case i:
|
|
103
103
|
return "StrictMode";
|
|
104
|
-
case
|
|
104
|
+
case p:
|
|
105
105
|
return "Suspense";
|
|
106
|
-
case
|
|
106
|
+
case f:
|
|
107
107
|
return "SuspenseList";
|
|
108
108
|
}
|
|
109
|
-
if (typeof
|
|
110
|
-
switch (
|
|
111
|
-
case
|
|
112
|
-
var l =
|
|
113
|
-
return
|
|
109
|
+
if (typeof t == "object")
|
|
110
|
+
switch (t.$$typeof) {
|
|
111
|
+
case u:
|
|
112
|
+
var l = t;
|
|
113
|
+
return I(l) + ".Consumer";
|
|
114
114
|
case c:
|
|
115
|
-
var
|
|
116
|
-
return
|
|
115
|
+
var _ = t;
|
|
116
|
+
return I(_._context) + ".Provider";
|
|
117
117
|
case d:
|
|
118
|
-
return
|
|
119
|
-
case
|
|
120
|
-
var
|
|
121
|
-
return
|
|
122
|
-
case
|
|
123
|
-
var
|
|
118
|
+
return F(t, t.render, "ForwardRef");
|
|
119
|
+
case y:
|
|
120
|
+
var C = t.displayName || null;
|
|
121
|
+
return C !== null ? C : b(t.type) || "Memo";
|
|
122
|
+
case m: {
|
|
123
|
+
var T = t, O = T._payload, k = T._init;
|
|
124
124
|
try {
|
|
125
|
-
return
|
|
125
|
+
return b(k(O));
|
|
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
|
|
133
|
+
var L = Object.assign, D = 0, U, H, X, ae, Z, se, Q;
|
|
134
|
+
function ge() {
|
|
135
135
|
}
|
|
136
|
-
|
|
137
|
-
function
|
|
136
|
+
ge.__reactDisabledLog = !0;
|
|
137
|
+
function Re() {
|
|
138
138
|
{
|
|
139
|
-
if (
|
|
140
|
-
|
|
141
|
-
var
|
|
139
|
+
if (D === 0) {
|
|
140
|
+
U = console.log, H = console.info, X = console.warn, ae = console.error, Z = console.group, se = console.groupCollapsed, Q = console.groupEnd;
|
|
141
|
+
var t = {
|
|
142
142
|
configurable: !0,
|
|
143
143
|
enumerable: !0,
|
|
144
|
-
value:
|
|
144
|
+
value: ge,
|
|
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
|
+
D++;
|
|
158
158
|
}
|
|
159
159
|
}
|
|
160
|
-
function
|
|
160
|
+
function de() {
|
|
161
161
|
{
|
|
162
|
-
if (
|
|
163
|
-
var
|
|
162
|
+
if (D--, D === 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: L({}, t, {
|
|
170
|
+
value: U
|
|
171
171
|
}),
|
|
172
|
-
info:
|
|
172
|
+
info: L({}, t, {
|
|
173
173
|
value: H
|
|
174
174
|
}),
|
|
175
|
-
warn:
|
|
176
|
-
value:
|
|
175
|
+
warn: L({}, t, {
|
|
176
|
+
value: X
|
|
177
177
|
}),
|
|
178
|
-
error:
|
|
178
|
+
error: L({}, t, {
|
|
179
179
|
value: ae
|
|
180
180
|
}),
|
|
181
|
-
group:
|
|
182
|
-
value:
|
|
181
|
+
group: L({}, t, {
|
|
182
|
+
value: Z
|
|
183
183
|
}),
|
|
184
|
-
groupCollapsed:
|
|
185
|
-
value: re
|
|
186
|
-
}),
|
|
187
|
-
groupEnd: j({}, e, {
|
|
184
|
+
groupCollapsed: L({}, t, {
|
|
188
185
|
value: se
|
|
186
|
+
}),
|
|
187
|
+
groupEnd: L({}, t, {
|
|
188
|
+
value: Q
|
|
189
189
|
})
|
|
190
190
|
});
|
|
191
191
|
}
|
|
192
|
-
|
|
192
|
+
D < 0 && g("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
193
193
|
}
|
|
194
194
|
}
|
|
195
|
-
var
|
|
196
|
-
function
|
|
195
|
+
var Ce = x.ReactCurrentDispatcher, we;
|
|
196
|
+
function ye(t, l, _) {
|
|
197
197
|
{
|
|
198
|
-
if (
|
|
198
|
+
if (we === void 0)
|
|
199
199
|
try {
|
|
200
200
|
throw Error();
|
|
201
|
-
} catch (
|
|
202
|
-
var
|
|
203
|
-
|
|
201
|
+
} catch (T) {
|
|
202
|
+
var C = T.stack.trim().match(/\n( *(at )?)/);
|
|
203
|
+
we = C && C[1] || "";
|
|
204
204
|
}
|
|
205
205
|
return `
|
|
206
|
-
` +
|
|
206
|
+
` + we + t;
|
|
207
207
|
}
|
|
208
208
|
}
|
|
209
|
-
var
|
|
209
|
+
var Oe = !1, Se;
|
|
210
210
|
{
|
|
211
|
-
var
|
|
212
|
-
|
|
211
|
+
var He = typeof WeakMap == "function" ? WeakMap : Map;
|
|
212
|
+
Se = new He();
|
|
213
213
|
}
|
|
214
|
-
function
|
|
215
|
-
if (!
|
|
214
|
+
function qe(t, l) {
|
|
215
|
+
if (!t || Oe)
|
|
216
216
|
return "";
|
|
217
217
|
{
|
|
218
|
-
var
|
|
219
|
-
if (
|
|
220
|
-
return
|
|
218
|
+
var _ = Se.get(t);
|
|
219
|
+
if (_ !== void 0)
|
|
220
|
+
return _;
|
|
221
221
|
}
|
|
222
|
-
var
|
|
223
|
-
|
|
224
|
-
var
|
|
222
|
+
var C;
|
|
223
|
+
Oe = !0;
|
|
224
|
+
var T = Error.prepareStackTrace;
|
|
225
225
|
Error.prepareStackTrace = void 0;
|
|
226
|
-
var
|
|
227
|
-
|
|
226
|
+
var O;
|
|
227
|
+
O = Ce.current, Ce.current = null, Re();
|
|
228
228
|
try {
|
|
229
229
|
if (l) {
|
|
230
|
-
var
|
|
230
|
+
var k = function() {
|
|
231
231
|
throw Error();
|
|
232
232
|
};
|
|
233
|
-
if (Object.defineProperty(
|
|
233
|
+
if (Object.defineProperty(k.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(k, []);
|
|
240
|
+
} catch (re) {
|
|
241
|
+
C = re;
|
|
242
242
|
}
|
|
243
|
-
Reflect.construct(
|
|
243
|
+
Reflect.construct(t, [], k);
|
|
244
244
|
} else {
|
|
245
245
|
try {
|
|
246
|
-
|
|
247
|
-
} catch (
|
|
248
|
-
|
|
246
|
+
k.call();
|
|
247
|
+
} catch (re) {
|
|
248
|
+
C = re;
|
|
249
249
|
}
|
|
250
|
-
|
|
250
|
+
t.call(k.prototype);
|
|
251
251
|
}
|
|
252
252
|
} else {
|
|
253
253
|
try {
|
|
254
254
|
throw Error();
|
|
255
|
-
} catch (
|
|
256
|
-
|
|
255
|
+
} catch (re) {
|
|
256
|
+
C = re;
|
|
257
257
|
}
|
|
258
|
-
|
|
258
|
+
t();
|
|
259
259
|
}
|
|
260
|
-
} catch (
|
|
261
|
-
if (
|
|
262
|
-
for (var
|
|
263
|
-
`),
|
|
264
|
-
`),
|
|
260
|
+
} catch (re) {
|
|
261
|
+
if (re && C && typeof re.stack == "string") {
|
|
262
|
+
for (var E = re.stack.split(`
|
|
263
|
+
`), ee = C.stack.split(`
|
|
264
|
+
`), G = E.length - 1, V = ee.length - 1; G >= 1 && V >= 0 && E[G] !== ee[V]; )
|
|
265
265
|
V--;
|
|
266
|
-
for (;
|
|
267
|
-
if (
|
|
268
|
-
if (
|
|
266
|
+
for (; G >= 1 && V >= 0; G--, V--)
|
|
267
|
+
if (E[G] !== ee[V]) {
|
|
268
|
+
if (G !== 1 || V !== 1)
|
|
269
269
|
do
|
|
270
|
-
if (
|
|
271
|
-
var
|
|
272
|
-
` +
|
|
273
|
-
return
|
|
270
|
+
if (G--, V--, V < 0 || E[G] !== ee[V]) {
|
|
271
|
+
var oe = `
|
|
272
|
+
` + E[G].replace(" at new ", " at ");
|
|
273
|
+
return t.displayName && oe.includes("<anonymous>") && (oe = oe.replace("<anonymous>", t.displayName)), typeof t == "function" && Se.set(t, oe), oe;
|
|
274
274
|
}
|
|
275
|
-
while (
|
|
275
|
+
while (G >= 1 && V >= 0);
|
|
276
276
|
break;
|
|
277
277
|
}
|
|
278
278
|
}
|
|
279
279
|
} finally {
|
|
280
|
-
|
|
280
|
+
Oe = !1, Ce.current = O, de(), Error.prepareStackTrace = T;
|
|
281
281
|
}
|
|
282
|
-
var
|
|
283
|
-
return typeof
|
|
282
|
+
var Le = t ? t.displayName || t.name : "", me = Le ? ye(Le) : "";
|
|
283
|
+
return typeof t == "function" && Se.set(t, me), me;
|
|
284
284
|
}
|
|
285
|
-
function
|
|
286
|
-
return
|
|
285
|
+
function Ge(t, l, _) {
|
|
286
|
+
return qe(t, !1);
|
|
287
287
|
}
|
|
288
|
-
function
|
|
289
|
-
var l =
|
|
288
|
+
function Ve(t) {
|
|
289
|
+
var l = t.prototype;
|
|
290
290
|
return !!(l && l.isReactComponent);
|
|
291
291
|
}
|
|
292
|
-
function
|
|
293
|
-
if (
|
|
292
|
+
function Y(t, l, _) {
|
|
293
|
+
if (t == null)
|
|
294
294
|
return "";
|
|
295
|
-
if (typeof
|
|
296
|
-
return
|
|
297
|
-
if (typeof
|
|
298
|
-
return
|
|
299
|
-
switch (
|
|
295
|
+
if (typeof t == "function")
|
|
296
|
+
return qe(t, Ve(t));
|
|
297
|
+
if (typeof t == "string")
|
|
298
|
+
return ye(t);
|
|
299
|
+
switch (t) {
|
|
300
|
+
case p:
|
|
301
|
+
return ye("Suspense");
|
|
300
302
|
case f:
|
|
301
|
-
return
|
|
302
|
-
case _:
|
|
303
|
-
return le("SuspenseList");
|
|
303
|
+
return ye("SuspenseList");
|
|
304
304
|
}
|
|
305
|
-
if (typeof
|
|
306
|
-
switch (
|
|
305
|
+
if (typeof t == "object")
|
|
306
|
+
switch (t.$$typeof) {
|
|
307
307
|
case d:
|
|
308
|
-
return
|
|
309
|
-
case
|
|
310
|
-
return
|
|
311
|
-
case
|
|
312
|
-
var
|
|
308
|
+
return Ge(t.render);
|
|
309
|
+
case y:
|
|
310
|
+
return Y(t.type, l, _);
|
|
311
|
+
case m: {
|
|
312
|
+
var C = t, T = C._payload, O = C._init;
|
|
313
313
|
try {
|
|
314
|
-
return
|
|
314
|
+
return Y(O(T), l, _);
|
|
315
315
|
} catch {
|
|
316
316
|
}
|
|
317
317
|
}
|
|
318
318
|
}
|
|
319
319
|
return "";
|
|
320
320
|
}
|
|
321
|
-
var
|
|
322
|
-
function Ue(
|
|
323
|
-
if (
|
|
324
|
-
var l =
|
|
325
|
-
|
|
321
|
+
var K = Object.prototype.hasOwnProperty, le = {}, ot = x.ReactDebugCurrentFrame;
|
|
322
|
+
function Ue(t) {
|
|
323
|
+
if (t) {
|
|
324
|
+
var l = t._owner, _ = Y(t.type, t._source, l ? l.type : null);
|
|
325
|
+
ot.setExtraStackFrame(_);
|
|
326
326
|
} else
|
|
327
|
-
|
|
327
|
+
ot.setExtraStackFrame(null);
|
|
328
328
|
}
|
|
329
|
-
function
|
|
329
|
+
function Bt(t, l, _, C, T) {
|
|
330
330
|
{
|
|
331
|
-
var
|
|
332
|
-
for (var
|
|
333
|
-
if (
|
|
334
|
-
var
|
|
331
|
+
var O = Function.call.bind(K);
|
|
332
|
+
for (var k in t)
|
|
333
|
+
if (O(t, k)) {
|
|
334
|
+
var E = void 0;
|
|
335
335
|
try {
|
|
336
|
-
if (typeof
|
|
337
|
-
var
|
|
338
|
-
throw
|
|
336
|
+
if (typeof t[k] != "function") {
|
|
337
|
+
var ee = Error((C || "React class") + ": " + _ + " type `" + k + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof t[k] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
338
|
+
throw ee.name = "Invariant Violation", ee;
|
|
339
339
|
}
|
|
340
|
-
|
|
341
|
-
} catch (
|
|
342
|
-
|
|
340
|
+
E = t[k](l, k, C, _, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
341
|
+
} catch (G) {
|
|
342
|
+
E = G;
|
|
343
343
|
}
|
|
344
|
-
|
|
344
|
+
E && !(E instanceof Error) && (Ue(T), g("%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).", C || "React class", _, k, typeof E), Ue(null)), E instanceof Error && !(E.message in le) && (le[E.message] = !0, Ue(T), g("Failed %s type: %s", _, E.message), Ue(null));
|
|
345
345
|
}
|
|
346
346
|
}
|
|
347
347
|
}
|
|
348
|
-
var
|
|
349
|
-
function
|
|
350
|
-
return
|
|
348
|
+
var zt = Array.isArray;
|
|
349
|
+
function Ze(t) {
|
|
350
|
+
return zt(t);
|
|
351
351
|
}
|
|
352
|
-
function
|
|
352
|
+
function Wt(t) {
|
|
353
353
|
{
|
|
354
|
-
var l = typeof Symbol == "function" && Symbol.toStringTag,
|
|
355
|
-
return
|
|
354
|
+
var l = typeof Symbol == "function" && Symbol.toStringTag, _ = l && t[Symbol.toStringTag] || t.constructor.name || "Object";
|
|
355
|
+
return _;
|
|
356
356
|
}
|
|
357
357
|
}
|
|
358
|
-
function
|
|
358
|
+
function Ht(t) {
|
|
359
359
|
try {
|
|
360
|
-
return
|
|
360
|
+
return it(t), !1;
|
|
361
361
|
} catch {
|
|
362
362
|
return !0;
|
|
363
363
|
}
|
|
364
364
|
}
|
|
365
|
-
function
|
|
366
|
-
return "" +
|
|
365
|
+
function it(t) {
|
|
366
|
+
return "" + t;
|
|
367
367
|
}
|
|
368
|
-
function
|
|
369
|
-
if (
|
|
370
|
-
return g("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",
|
|
368
|
+
function lt(t) {
|
|
369
|
+
if (Ht(t))
|
|
370
|
+
return g("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Wt(t)), it(t);
|
|
371
371
|
}
|
|
372
|
-
var
|
|
372
|
+
var ct = x.ReactCurrentOwner, Gt = {
|
|
373
373
|
key: !0,
|
|
374
374
|
ref: !0,
|
|
375
375
|
__self: !0,
|
|
376
376
|
__source: !0
|
|
377
|
-
},
|
|
378
|
-
function
|
|
379
|
-
if (
|
|
380
|
-
var l = Object.getOwnPropertyDescriptor(
|
|
377
|
+
}, dt, ut;
|
|
378
|
+
function Vt(t) {
|
|
379
|
+
if (K.call(t, "ref")) {
|
|
380
|
+
var l = Object.getOwnPropertyDescriptor(t, "ref").get;
|
|
381
381
|
if (l && l.isReactWarning)
|
|
382
382
|
return !1;
|
|
383
383
|
}
|
|
384
|
-
return
|
|
384
|
+
return t.ref !== void 0;
|
|
385
385
|
}
|
|
386
|
-
function
|
|
387
|
-
if (
|
|
388
|
-
var l = Object.getOwnPropertyDescriptor(
|
|
386
|
+
function Zt(t) {
|
|
387
|
+
if (K.call(t, "key")) {
|
|
388
|
+
var l = Object.getOwnPropertyDescriptor(t, "key").get;
|
|
389
389
|
if (l && l.isReactWarning)
|
|
390
390
|
return !1;
|
|
391
391
|
}
|
|
392
|
-
return
|
|
392
|
+
return t.key !== void 0;
|
|
393
393
|
}
|
|
394
|
-
function
|
|
395
|
-
typeof
|
|
394
|
+
function Yt(t, l) {
|
|
395
|
+
typeof t.ref == "string" && ct.current;
|
|
396
396
|
}
|
|
397
|
-
function
|
|
397
|
+
function Kt(t, l) {
|
|
398
398
|
{
|
|
399
|
-
var
|
|
400
|
-
|
|
399
|
+
var _ = function() {
|
|
400
|
+
dt || (dt = !0, g("%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)", l));
|
|
401
401
|
};
|
|
402
|
-
|
|
403
|
-
get:
|
|
402
|
+
_.isReactWarning = !0, Object.defineProperty(t, "key", {
|
|
403
|
+
get: _,
|
|
404
404
|
configurable: !0
|
|
405
405
|
});
|
|
406
406
|
}
|
|
407
407
|
}
|
|
408
|
-
function
|
|
408
|
+
function Jt(t, l) {
|
|
409
409
|
{
|
|
410
|
-
var
|
|
411
|
-
|
|
410
|
+
var _ = function() {
|
|
411
|
+
ut || (ut = !0, g("%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)", l));
|
|
412
412
|
};
|
|
413
|
-
|
|
414
|
-
get:
|
|
413
|
+
_.isReactWarning = !0, Object.defineProperty(t, "ref", {
|
|
414
|
+
get: _,
|
|
415
415
|
configurable: !0
|
|
416
416
|
});
|
|
417
417
|
}
|
|
418
418
|
}
|
|
419
|
-
var
|
|
420
|
-
var
|
|
419
|
+
var Xt = function(t, l, _, C, T, O, k) {
|
|
420
|
+
var E = {
|
|
421
421
|
// This tag allows us to uniquely identify this as a React Element
|
|
422
|
-
$$typeof:
|
|
422
|
+
$$typeof: a,
|
|
423
423
|
// Built-in properties that belong on the element
|
|
424
|
-
type:
|
|
424
|
+
type: t,
|
|
425
425
|
key: l,
|
|
426
|
-
ref:
|
|
427
|
-
props:
|
|
426
|
+
ref: _,
|
|
427
|
+
props: k,
|
|
428
428
|
// Record the component responsible for creating this element.
|
|
429
|
-
_owner:
|
|
429
|
+
_owner: O
|
|
430
430
|
};
|
|
431
|
-
return
|
|
431
|
+
return E._store = {}, Object.defineProperty(E._store, "validated", {
|
|
432
432
|
configurable: !1,
|
|
433
433
|
enumerable: !1,
|
|
434
434
|
writable: !0,
|
|
435
435
|
value: !1
|
|
436
|
-
}), Object.defineProperty(
|
|
436
|
+
}), Object.defineProperty(E, "_self", {
|
|
437
437
|
configurable: !1,
|
|
438
438
|
enumerable: !1,
|
|
439
439
|
writable: !1,
|
|
440
|
-
value:
|
|
441
|
-
}), Object.defineProperty(
|
|
440
|
+
value: C
|
|
441
|
+
}), Object.defineProperty(E, "_source", {
|
|
442
442
|
configurable: !1,
|
|
443
443
|
enumerable: !1,
|
|
444
444
|
writable: !1,
|
|
445
|
-
value:
|
|
446
|
-
}), Object.freeze && (Object.freeze(
|
|
445
|
+
value: T
|
|
446
|
+
}), Object.freeze && (Object.freeze(E.props), Object.freeze(E)), E;
|
|
447
447
|
};
|
|
448
|
-
function
|
|
448
|
+
function Qt(t, l, _, C, T) {
|
|
449
449
|
{
|
|
450
|
-
var
|
|
451
|
-
|
|
452
|
-
for (
|
|
453
|
-
|
|
454
|
-
if (
|
|
455
|
-
var
|
|
456
|
-
for (
|
|
457
|
-
|
|
450
|
+
var O, k = {}, E = null, ee = null;
|
|
451
|
+
_ !== void 0 && (lt(_), E = "" + _), Zt(l) && (lt(l.key), E = "" + l.key), Vt(l) && (ee = l.ref, Yt(l, T));
|
|
452
|
+
for (O in l)
|
|
453
|
+
K.call(l, O) && !Gt.hasOwnProperty(O) && (k[O] = l[O]);
|
|
454
|
+
if (t && t.defaultProps) {
|
|
455
|
+
var G = t.defaultProps;
|
|
456
|
+
for (O in G)
|
|
457
|
+
k[O] === void 0 && (k[O] = G[O]);
|
|
458
458
|
}
|
|
459
|
-
if (
|
|
460
|
-
var V = typeof
|
|
461
|
-
|
|
459
|
+
if (E || ee) {
|
|
460
|
+
var V = typeof t == "function" ? t.displayName || t.name || "Unknown" : t;
|
|
461
|
+
E && Kt(k, V), ee && Jt(k, V);
|
|
462
462
|
}
|
|
463
|
-
return
|
|
463
|
+
return Xt(t, E, ee, T, C, ct.current, k);
|
|
464
464
|
}
|
|
465
465
|
}
|
|
466
|
-
var
|
|
467
|
-
function
|
|
468
|
-
if (
|
|
469
|
-
var l =
|
|
470
|
-
|
|
466
|
+
var Ye = x.ReactCurrentOwner, _t = x.ReactDebugCurrentFrame;
|
|
467
|
+
function Ee(t) {
|
|
468
|
+
if (t) {
|
|
469
|
+
var l = t._owner, _ = Y(t.type, t._source, l ? l.type : null);
|
|
470
|
+
_t.setExtraStackFrame(_);
|
|
471
471
|
} else
|
|
472
|
-
|
|
472
|
+
_t.setExtraStackFrame(null);
|
|
473
473
|
}
|
|
474
|
-
var
|
|
475
|
-
|
|
476
|
-
function
|
|
477
|
-
return typeof
|
|
474
|
+
var Ke;
|
|
475
|
+
Ke = !1;
|
|
476
|
+
function Je(t) {
|
|
477
|
+
return typeof t == "object" && t !== null && t.$$typeof === a;
|
|
478
478
|
}
|
|
479
|
-
function
|
|
479
|
+
function pt() {
|
|
480
480
|
{
|
|
481
|
-
if (
|
|
482
|
-
var
|
|
483
|
-
if (
|
|
481
|
+
if (Ye.current) {
|
|
482
|
+
var t = b(Ye.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 er(t) {
|
|
492
492
|
return "";
|
|
493
493
|
}
|
|
494
|
-
var
|
|
495
|
-
function
|
|
494
|
+
var ft = {};
|
|
495
|
+
function tr(t) {
|
|
496
496
|
{
|
|
497
|
-
var l =
|
|
497
|
+
var l = pt();
|
|
498
498
|
if (!l) {
|
|
499
|
-
var
|
|
500
|
-
|
|
499
|
+
var _ = typeof t == "string" ? t : t.displayName || t.name;
|
|
500
|
+
_ && (l = `
|
|
501
501
|
|
|
502
|
-
Check the top-level render call using <` +
|
|
502
|
+
Check the top-level render call using <` + _ + ">.");
|
|
503
503
|
}
|
|
504
504
|
return l;
|
|
505
505
|
}
|
|
506
506
|
}
|
|
507
|
-
function
|
|
507
|
+
function gt(t, l) {
|
|
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 _ = tr(l);
|
|
513
|
+
if (ft[_])
|
|
514
514
|
return;
|
|
515
|
-
|
|
516
|
-
var
|
|
517
|
-
|
|
515
|
+
ft[_] = !0;
|
|
516
|
+
var C = "";
|
|
517
|
+
t && t._owner && t._owner !== Ye.current && (C = " It was passed a child from " + b(t._owner.type) + "."), Ee(t), g('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', _, C), Ee(null);
|
|
518
518
|
}
|
|
519
519
|
}
|
|
520
|
-
function
|
|
520
|
+
function ht(t, l) {
|
|
521
521
|
{
|
|
522
|
-
if (typeof
|
|
522
|
+
if (typeof t != "object")
|
|
523
523
|
return;
|
|
524
|
-
if (
|
|
525
|
-
for (var
|
|
526
|
-
var
|
|
527
|
-
|
|
524
|
+
if (Ze(t))
|
|
525
|
+
for (var _ = 0; _ < t.length; _++) {
|
|
526
|
+
var C = t[_];
|
|
527
|
+
Je(C) && gt(C, l);
|
|
528
528
|
}
|
|
529
|
-
else if (
|
|
530
|
-
|
|
531
|
-
else if (
|
|
532
|
-
var
|
|
533
|
-
if (typeof
|
|
534
|
-
for (var
|
|
535
|
-
|
|
529
|
+
else if (Je(t))
|
|
530
|
+
t._store && (t._store.validated = !0);
|
|
531
|
+
else if (t) {
|
|
532
|
+
var T = w(t);
|
|
533
|
+
if (typeof T == "function" && T !== t.entries)
|
|
534
|
+
for (var O = T.call(t), k; !(k = O.next()).done; )
|
|
535
|
+
Je(k.value) && gt(k.value, l);
|
|
536
536
|
}
|
|
537
537
|
}
|
|
538
538
|
}
|
|
539
|
-
function
|
|
539
|
+
function rr(t) {
|
|
540
540
|
{
|
|
541
|
-
var l =
|
|
541
|
+
var l = t.type;
|
|
542
542
|
if (l == null || typeof l == "string")
|
|
543
543
|
return;
|
|
544
|
-
var
|
|
544
|
+
var _;
|
|
545
545
|
if (typeof l == "function")
|
|
546
|
-
|
|
546
|
+
_ = l.propTypes;
|
|
547
547
|
else if (typeof l == "object" && (l.$$typeof === d || // Note: Memo only checks outer props here.
|
|
548
548
|
// Inner props are checked in the reconciler.
|
|
549
|
-
l.$$typeof ===
|
|
550
|
-
|
|
549
|
+
l.$$typeof === y))
|
|
550
|
+
_ = l.propTypes;
|
|
551
551
|
else
|
|
552
552
|
return;
|
|
553
|
-
if (
|
|
554
|
-
var
|
|
555
|
-
|
|
556
|
-
} else if (l.PropTypes !== void 0 && !
|
|
557
|
-
|
|
558
|
-
var
|
|
559
|
-
g("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",
|
|
553
|
+
if (_) {
|
|
554
|
+
var C = b(l);
|
|
555
|
+
Bt(_, t.props, "prop", C, t);
|
|
556
|
+
} else if (l.PropTypes !== void 0 && !Ke) {
|
|
557
|
+
Ke = !0;
|
|
558
|
+
var T = b(l);
|
|
559
|
+
g("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", T || "Unknown");
|
|
560
560
|
}
|
|
561
561
|
typeof l.getDefaultProps == "function" && !l.getDefaultProps.isReactClassApproved && g("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
562
562
|
}
|
|
563
563
|
}
|
|
564
|
-
function
|
|
564
|
+
function ar(t) {
|
|
565
565
|
{
|
|
566
|
-
for (var l = Object.keys(
|
|
567
|
-
var
|
|
568
|
-
if (
|
|
569
|
-
|
|
566
|
+
for (var l = Object.keys(t.props), _ = 0; _ < l.length; _++) {
|
|
567
|
+
var C = l[_];
|
|
568
|
+
if (C !== "children" && C !== "key") {
|
|
569
|
+
Ee(t), g("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", C), Ee(null);
|
|
570
570
|
break;
|
|
571
571
|
}
|
|
572
572
|
}
|
|
573
|
-
|
|
573
|
+
t.ref !== null && (Ee(t), g("Invalid attribute `ref` supplied to `React.Fragment`."), Ee(null));
|
|
574
574
|
}
|
|
575
575
|
}
|
|
576
|
-
var
|
|
577
|
-
function
|
|
576
|
+
var yt = {};
|
|
577
|
+
function mt(t, l, _, C, T, O) {
|
|
578
578
|
{
|
|
579
|
-
var
|
|
580
|
-
if (!
|
|
581
|
-
var
|
|
582
|
-
(
|
|
583
|
-
var
|
|
584
|
-
|
|
585
|
-
var
|
|
586
|
-
|
|
579
|
+
var k = P(t);
|
|
580
|
+
if (!k) {
|
|
581
|
+
var E = "";
|
|
582
|
+
(t === void 0 || typeof t == "object" && t !== null && Object.keys(t).length === 0) && (E += " 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 ee = er();
|
|
584
|
+
ee ? E += ee : E += pt();
|
|
585
|
+
var G;
|
|
586
|
+
t === null ? G = "null" : Ze(t) ? G = "array" : t !== void 0 && t.$$typeof === a ? (G = "<" + (b(t.type) || "Unknown") + " />", E = " Did you accidentally export a JSX literal instead of a component?") : G = typeof t, g("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", G, E);
|
|
587
587
|
}
|
|
588
|
-
var V =
|
|
588
|
+
var V = Qt(t, l, _, T, O);
|
|
589
589
|
if (V == null)
|
|
590
590
|
return V;
|
|
591
|
-
if (
|
|
592
|
-
var
|
|
593
|
-
if (
|
|
594
|
-
if (
|
|
595
|
-
if (
|
|
596
|
-
for (var
|
|
597
|
-
|
|
598
|
-
Object.freeze && Object.freeze(
|
|
591
|
+
if (k) {
|
|
592
|
+
var oe = l.children;
|
|
593
|
+
if (oe !== void 0)
|
|
594
|
+
if (C)
|
|
595
|
+
if (Ze(oe)) {
|
|
596
|
+
for (var Le = 0; Le < oe.length; Le++)
|
|
597
|
+
ht(oe[Le], t);
|
|
598
|
+
Object.freeze && Object.freeze(oe);
|
|
599
599
|
} else
|
|
600
600
|
g("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
|
+
ht(oe, t);
|
|
603
603
|
}
|
|
604
|
-
if (
|
|
605
|
-
var
|
|
606
|
-
return
|
|
607
|
-
}),
|
|
608
|
-
if (!
|
|
609
|
-
var
|
|
604
|
+
if (K.call(l, "key")) {
|
|
605
|
+
var me = b(t), re = Object.keys(l).filter(function(cr) {
|
|
606
|
+
return cr !== "key";
|
|
607
|
+
}), Xe = re.length > 0 ? "{key: someKey, " + re.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
608
|
+
if (!yt[me + Xe]) {
|
|
609
|
+
var lr = re.length > 0 ? "{" + re.join(": ..., ") + ": ...}" : "{}";
|
|
610
610
|
g(`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} />`, Xe, me, lr, me), yt[me + Xe] = !0;
|
|
616
616
|
}
|
|
617
617
|
}
|
|
618
|
-
return
|
|
618
|
+
return t === n ? ar(V) : rr(V), V;
|
|
619
619
|
}
|
|
620
620
|
}
|
|
621
|
-
function
|
|
622
|
-
return
|
|
621
|
+
function nr(t, l, _) {
|
|
622
|
+
return mt(t, l, _, !0);
|
|
623
623
|
}
|
|
624
|
-
function
|
|
625
|
-
return
|
|
624
|
+
function sr(t, l, _) {
|
|
625
|
+
return mt(t, l, _, !1);
|
|
626
626
|
}
|
|
627
|
-
var
|
|
628
|
-
|
|
629
|
-
}()),
|
|
627
|
+
var or = sr, ir = nr;
|
|
628
|
+
Te.Fragment = n, Te.jsx = or, Te.jsxs = ir;
|
|
629
|
+
}()), Te;
|
|
630
|
+
}
|
|
631
|
+
var xt;
|
|
632
|
+
function yr() {
|
|
633
|
+
return xt || (xt = 1, process.env.NODE_ENV === "production" ? Pe.exports = gr() : Pe.exports = hr()), Pe.exports;
|
|
630
634
|
}
|
|
631
|
-
var
|
|
632
|
-
|
|
633
|
-
|
|
635
|
+
var o = yr();
|
|
636
|
+
const mr = (e) => e.as === "a", br = (e) => e.as === void 0 || e.as === "button", ke = (e) => e.displayAs === void 0 || e.displayAs === "button", Qe = (e) => e.displayAs === "link", vr = "_button_6bymk_1", xr = "_link_6bymk_17", Cr = "_disabled_6bymk_22", wr = "_loading_6bymk_22", Sr = "_neutral_6bymk_50", Er = "_accent_6bymk_54", Lr = "_positive_6bymk_58", kr = "_negative_6bymk_62", jr = "_contrast_6bymk_66", $r = "_special_6bymk_70", Mr = "_primary_6bymk_74", Rr = "_secondary_6bymk_75", Ir = "_tertiary_6bymk_76", Tr = "_spaceBetween_6bymk_116", Ar = "_rightGroup_6bymk_116", Nr = "_label_6bymk_136", Dr = "_iconOnly_6bymk_155", Or = "_stretched_6bymk_171", qr = "_icon_6bymk_155", Ur = "_postfix_6bymk_176", Pr = "_underline_6bymk_202", Fr = "_warning_6bymk_1082", Br = "_withSubcaption_6bymk_1268", zr = "_subcaption_6bymk_1273", Wr = "_loader_6bymk_1279", Hr = "_spin_6bymk_1", Gr = "_l_6bymk_17", Vr = "_m_6bymk_1318", Zr = "_s_6bymk_70", Yr = "_xs_6bymk_1364", Kr = "_iconRight_6bymk_1410", W = {
|
|
637
|
+
button: vr,
|
|
638
|
+
link: xr,
|
|
639
|
+
disabled: Cr,
|
|
640
|
+
loading: wr,
|
|
641
|
+
neutral: Sr,
|
|
642
|
+
accent: Er,
|
|
643
|
+
positive: Lr,
|
|
644
|
+
negative: kr,
|
|
645
|
+
contrast: jr,
|
|
646
|
+
special: $r,
|
|
647
|
+
primary: Mr,
|
|
648
|
+
secondary: Rr,
|
|
649
|
+
tertiary: Ir,
|
|
650
|
+
spaceBetween: Tr,
|
|
651
|
+
rightGroup: Ar,
|
|
652
|
+
label: Nr,
|
|
653
|
+
iconOnly: Dr,
|
|
654
|
+
stretched: Or,
|
|
655
|
+
icon: qr,
|
|
656
|
+
postfix: Ur,
|
|
657
|
+
underline: Pr,
|
|
658
|
+
warning: Fr,
|
|
659
|
+
withSubcaption: Br,
|
|
660
|
+
subcaption: zr,
|
|
661
|
+
loader: Wr,
|
|
662
|
+
spin: Hr,
|
|
663
|
+
l: Gr,
|
|
664
|
+
m: Vr,
|
|
665
|
+
s: Zr,
|
|
666
|
+
xs: Yr,
|
|
667
|
+
iconRight: Kr
|
|
668
|
+
}, Jr = /* @__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
|
+
]), Ct = (e) => {
|
|
686
|
+
const a = {};
|
|
687
|
+
for (const r in e)
|
|
688
|
+
Jr.has(r) || (a[r] = e[r]);
|
|
689
|
+
return a;
|
|
690
|
+
}, Xr = {
|
|
691
|
+
l: "typography-subtitle-1-semibold",
|
|
692
|
+
m: "typography-label-2-regular",
|
|
693
|
+
s: "typography-label-3-regular"
|
|
694
|
+
};
|
|
695
|
+
function Qr(e) {
|
|
696
|
+
return Xr[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
|
-
withSubcaption: Ba,
|
|
664
|
-
subcaption: Fa,
|
|
665
|
-
loader: Pa,
|
|
666
|
-
spin: za,
|
|
667
|
-
l: Wa,
|
|
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,
|
|
698
|
+
const Me = {
|
|
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
|
+
}, wt = ({
|
|
723
|
+
isLoading: e,
|
|
724
|
+
iconRight: a,
|
|
725
|
+
iconLeft: r,
|
|
677
726
|
children: n,
|
|
678
|
-
postfix:
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
727
|
+
postfix: i,
|
|
728
|
+
subcaption: s,
|
|
729
|
+
size: c,
|
|
730
|
+
isAsButton: u
|
|
682
731
|
}) => {
|
|
683
|
-
if (
|
|
684
|
-
return /* @__PURE__ */ o.jsx("span", { className:
|
|
685
|
-
const
|
|
686
|
-
return /* @__PURE__ */ o.jsxs(
|
|
687
|
-
|
|
688
|
-
"span",
|
|
689
|
-
{
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
),
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
/* @__PURE__ */ o.jsx("span", { "data-testid": "button-label", className: z.label, children: n }),
|
|
701
|
-
/* @__PURE__ */ o.jsx("span", { "data-testid": "button-subcaption", className: z.subcaption, children: d })
|
|
702
|
-
] }) : n ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
703
|
-
/* @__PURE__ */ o.jsx("span", { "data-testid": "button-label", className: z.label, children: n }),
|
|
704
|
-
/* @__PURE__ */ o.jsxs("div", { "data-testid": "button-right-group", className: z.rightGroup, children: [
|
|
705
|
-
i && /* @__PURE__ */ o.jsx("span", { "data-testid": "button-icon", className: z.icon, children: i }),
|
|
706
|
-
c && /* @__PURE__ */ o.jsx("span", { "data-testid": "button-postfix", className: z.postfix, children: c })
|
|
732
|
+
if (e && u)
|
|
733
|
+
return /* @__PURE__ */ o.jsx("span", { className: W.loader, "data-testid": "button-loader", "aria-hidden": "true" });
|
|
734
|
+
const d = a && u || a && !u && c, p = s && u && c !== "s" && c !== "xs";
|
|
735
|
+
return /* @__PURE__ */ o.jsxs(Ae, { children: [
|
|
736
|
+
p && /* @__PURE__ */ o.jsxs(Ae, { children: [
|
|
737
|
+
/* @__PURE__ */ o.jsx("span", { "data-testid": "button-label", className: W.label, children: n }),
|
|
738
|
+
/* @__PURE__ */ o.jsx("span", { "data-testid": "button-subcaption", className: W.subcaption, children: s })
|
|
739
|
+
] }),
|
|
740
|
+
!p && n && /* @__PURE__ */ o.jsxs(Ae, { children: [
|
|
741
|
+
/* @__PURE__ */ o.jsxs("span", { "data-testid": "button-label", className: W.label, children: [
|
|
742
|
+
!u && r && /* @__PURE__ */ o.jsx("span", { "data-testid": "button-left-icon", className: W.icon, children: r }),
|
|
743
|
+
n,
|
|
744
|
+
!u && a && /* @__PURE__ */ o.jsx("span", { "data-testid": "button-icon", className: B(W.icon, W.iconRight), children: a })
|
|
745
|
+
] }),
|
|
746
|
+
u && /* @__PURE__ */ o.jsxs("div", { "data-testid": "button-right-group", className: W.rightGroup, children: [
|
|
747
|
+
d && /* @__PURE__ */ o.jsx("span", { "data-testid": "button-icon", className: W.icon, children: a }),
|
|
748
|
+
i && u && /* @__PURE__ */ o.jsx("span", { "data-testid": "button-postfix", className: W.postfix, children: i })
|
|
707
749
|
] })
|
|
708
|
-
] })
|
|
750
|
+
] }),
|
|
751
|
+
!p && !n && /* @__PURE__ */ o.jsx("span", { "data-testid": "button-icon", className: W.icon, children: a })
|
|
709
752
|
] });
|
|
710
|
-
},
|
|
753
|
+
}, po = J((e, a) => {
|
|
711
754
|
const {
|
|
712
|
-
mode:
|
|
713
|
-
size:
|
|
714
|
-
buttonStyle: i = "neutral",
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
children: C
|
|
728
|
-
} = t, g = c, R = n, D = !g && !R, k = !!v && !C, $ = B(
|
|
729
|
-
z.button,
|
|
730
|
-
z[s],
|
|
731
|
-
z[a],
|
|
732
|
-
z[i],
|
|
755
|
+
mode: r = "primary",
|
|
756
|
+
size: n = "m",
|
|
757
|
+
buttonStyle: i = ke(e) ? "neutral" : "accent",
|
|
758
|
+
disabled: s = !1,
|
|
759
|
+
displayAs: c = "button",
|
|
760
|
+
iconRight: u,
|
|
761
|
+
className: d,
|
|
762
|
+
children: p,
|
|
763
|
+
tabIndex: f
|
|
764
|
+
} = e, y = ke(e) ? e.subcaption : void 0, m = ke(e) ? e.postfix : void 0, h = ke(e) ? e.stretched : void 0, v = !(Qe(e) && e.size === void 0), S = Qe(e) && v ? e.iconLeft : void 0, w = !!(c === "button" && "loading" in e && e.loading), x = ke(e) ? s : s || w, g = !x && !w, M = v ? u : void 0, q = !!(M && !p), A = typeof h == "object" ? h.justify === "space-between" : void 0, $ = Qe(e) ? Qr(e.size ?? "m") : void 0, R = $ ? Me[$] : void 0, N = x || w ? -1 : f, z = B(
|
|
765
|
+
W.button,
|
|
766
|
+
W[n],
|
|
767
|
+
W[r],
|
|
768
|
+
W[i],
|
|
769
|
+
R,
|
|
733
770
|
{
|
|
734
|
-
[
|
|
735
|
-
[
|
|
736
|
-
[
|
|
737
|
-
[
|
|
738
|
-
[
|
|
739
|
-
[
|
|
771
|
+
[W.disabled]: x,
|
|
772
|
+
[W.loading]: c === "button" && "loading" in e && e.loading,
|
|
773
|
+
[W.stretched]: h,
|
|
774
|
+
[W.spaceBetween]: A,
|
|
775
|
+
[W.withSubcaption]: y && n !== "s" && n !== "xs",
|
|
776
|
+
[W.iconOnly]: q,
|
|
777
|
+
[W.link]: c === "link",
|
|
778
|
+
[W.underline]: c === "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
|
+
d
|
|
781
|
+
), P = {
|
|
782
|
+
isLoading: w,
|
|
783
|
+
iconRight: M,
|
|
784
|
+
iconLeft: S,
|
|
785
|
+
children: p,
|
|
786
|
+
postfix: m,
|
|
787
|
+
subcaption: y,
|
|
788
|
+
size: n,
|
|
789
|
+
isAsButton: ke(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
|
-
D && U && U(xe);
|
|
791
|
+
if (mr(e)) {
|
|
792
|
+
const { href: F, onClick: I, style: b, target: L, rel: D, "data-testid": U, ...H } = e, X = Ct(H), ae = L ?? (e.isExternal ? "_blank" : void 0);
|
|
793
|
+
let Z = D;
|
|
794
|
+
if (ae === "_blank") {
|
|
795
|
+
const Q = new Set((D ?? "").split(/\s+/).filter(Boolean));
|
|
796
|
+
Q.add("noopener").add("noreferrer"), Z = Array.from(Q).join(" ");
|
|
797
|
+
}
|
|
798
|
+
const se = (Q) => {
|
|
799
|
+
if (!g) {
|
|
800
|
+
Q.preventDefault();
|
|
801
|
+
return;
|
|
802
|
+
}
|
|
803
|
+
I == null || I(Q);
|
|
780
804
|
};
|
|
781
805
|
return /* @__PURE__ */ o.jsx(
|
|
782
806
|
"a",
|
|
783
807
|
{
|
|
784
|
-
ref:
|
|
785
|
-
className:
|
|
786
|
-
href:
|
|
787
|
-
tabIndex:
|
|
788
|
-
onClick:
|
|
789
|
-
"data-testid":
|
|
790
|
-
"aria-disabled":
|
|
791
|
-
style:
|
|
792
|
-
|
|
793
|
-
|
|
808
|
+
ref: a,
|
|
809
|
+
className: z,
|
|
810
|
+
href: g ? F : void 0,
|
|
811
|
+
tabIndex: N,
|
|
812
|
+
onClick: se,
|
|
813
|
+
"data-testid": U,
|
|
814
|
+
"aria-disabled": x || w,
|
|
815
|
+
style: b,
|
|
816
|
+
target: ae,
|
|
817
|
+
rel: Z,
|
|
818
|
+
...X,
|
|
819
|
+
children: /* @__PURE__ */ o.jsx(wt, { ...P })
|
|
794
820
|
}
|
|
795
821
|
);
|
|
796
822
|
}
|
|
797
|
-
if (
|
|
798
|
-
const {
|
|
799
|
-
|
|
800
|
-
onClick: U,
|
|
801
|
-
mode: q,
|
|
802
|
-
size: W,
|
|
803
|
-
buttonStyle: O,
|
|
804
|
-
loading: m,
|
|
805
|
-
disabled: j,
|
|
806
|
-
showBadge: F,
|
|
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
|
-
D && U && U(xe);
|
|
823
|
+
if (br(e)) {
|
|
824
|
+
const { type: F = "button", onClick: I, style: b, "data-testid": L, ...D } = e, U = Ct(D), H = (X) => {
|
|
825
|
+
g && I && I(X);
|
|
823
826
|
};
|
|
824
827
|
return /* @__PURE__ */ o.jsx(
|
|
825
828
|
"button",
|
|
826
829
|
{
|
|
827
|
-
ref:
|
|
828
|
-
type:
|
|
829
|
-
className:
|
|
830
|
-
disabled:
|
|
831
|
-
tabIndex:
|
|
832
|
-
onClick:
|
|
833
|
-
"data-testid":
|
|
834
|
-
"aria-disabled":
|
|
835
|
-
style:
|
|
836
|
-
...
|
|
837
|
-
children: /* @__PURE__ */ o.jsx(
|
|
830
|
+
ref: a,
|
|
831
|
+
type: F,
|
|
832
|
+
className: z,
|
|
833
|
+
disabled: x,
|
|
834
|
+
tabIndex: N,
|
|
835
|
+
onClick: H,
|
|
836
|
+
"data-testid": L,
|
|
837
|
+
"aria-disabled": x || w,
|
|
838
|
+
style: b,
|
|
839
|
+
...U,
|
|
840
|
+
children: /* @__PURE__ */ o.jsx(wt, { ...P })
|
|
838
841
|
}
|
|
839
842
|
);
|
|
840
843
|
}
|
|
841
844
|
return null;
|
|
842
845
|
});
|
|
843
|
-
var
|
|
846
|
+
var et = { 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 St;
|
|
853
|
+
function ea() {
|
|
854
|
+
return St || (St = 1, function(e) {
|
|
852
855
|
(function() {
|
|
853
|
-
var
|
|
854
|
-
function
|
|
855
|
-
for (var
|
|
856
|
-
var
|
|
857
|
-
|
|
856
|
+
var a = {}.hasOwnProperty;
|
|
857
|
+
function r() {
|
|
858
|
+
for (var s = "", c = 0; c < arguments.length; c++) {
|
|
859
|
+
var u = arguments[c];
|
|
860
|
+
u && (s = i(s, n(u)));
|
|
858
861
|
}
|
|
859
|
-
return
|
|
862
|
+
return s;
|
|
860
863
|
}
|
|
861
|
-
function s
|
|
862
|
-
if (typeof
|
|
863
|
-
return
|
|
864
|
-
if (typeof
|
|
864
|
+
function n(s) {
|
|
865
|
+
if (typeof s == "string" || typeof s == "number")
|
|
866
|
+
return s;
|
|
867
|
+
if (typeof s != "object")
|
|
865
868
|
return "";
|
|
866
|
-
if (Array.isArray(
|
|
867
|
-
return
|
|
868
|
-
if (
|
|
869
|
-
return
|
|
869
|
+
if (Array.isArray(s))
|
|
870
|
+
return r.apply(null, s);
|
|
871
|
+
if (s.toString !== Object.prototype.toString && !s.toString.toString().includes("[native code]"))
|
|
872
|
+
return s.toString();
|
|
870
873
|
var c = "";
|
|
871
|
-
for (var
|
|
872
|
-
|
|
874
|
+
for (var u in s)
|
|
875
|
+
a.call(s, u) && s[u] && (c = i(c, u));
|
|
873
876
|
return c;
|
|
874
877
|
}
|
|
875
|
-
function i(
|
|
876
|
-
return c ?
|
|
878
|
+
function i(s, c) {
|
|
879
|
+
return c ? s ? s + " " + c : s + c : s;
|
|
877
880
|
}
|
|
878
|
-
|
|
881
|
+
e.exports ? (r.default = r, e.exports = r) : window.classNames = r;
|
|
879
882
|
})();
|
|
880
|
-
}(
|
|
883
|
+
}(et)), et.exports;
|
|
881
884
|
}
|
|
882
|
-
var
|
|
883
|
-
const
|
|
884
|
-
avatar:
|
|
885
|
-
clickable:
|
|
886
|
-
icon:
|
|
887
|
-
disabled:
|
|
888
|
-
loading:
|
|
889
|
-
image:
|
|
890
|
-
name:
|
|
885
|
+
var ta = ea();
|
|
886
|
+
const he = /* @__PURE__ */ fr(ta), ra = "_avatar_1kyiq_17", aa = "_clickable_1kyiq_41", na = "_icon_1kyiq_58", sa = "_disabled_1kyiq_63", oa = "_loading_1kyiq_68", ia = "_image_1kyiq_74", la = "_name_1kyiq_74", ce = {
|
|
887
|
+
avatar: ra,
|
|
888
|
+
clickable: aa,
|
|
889
|
+
icon: na,
|
|
890
|
+
disabled: sa,
|
|
891
|
+
loading: oa,
|
|
892
|
+
image: ia,
|
|
893
|
+
name: la,
|
|
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,44 +904,20 @@ const Ae = /* @__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
|
+
}, Et = 99;
|
|
908
|
+
function ca(e) {
|
|
909
|
+
return e < Et ? `+${e}` : `${Et}+`;
|
|
931
910
|
}
|
|
932
|
-
function
|
|
933
|
-
const
|
|
934
|
-
let
|
|
935
|
-
for (let
|
|
936
|
-
const i =
|
|
937
|
-
|
|
911
|
+
function st(e) {
|
|
912
|
+
const a = typeof e == "string" ? e : JSON.stringify(e);
|
|
913
|
+
let r = 5381;
|
|
914
|
+
for (let n = 0; n < a.length; n++) {
|
|
915
|
+
const i = a.charCodeAt(n);
|
|
916
|
+
r = (r << 5) + r + i;
|
|
938
917
|
}
|
|
939
|
-
return
|
|
918
|
+
return r >>> 0;
|
|
940
919
|
}
|
|
941
|
-
const
|
|
920
|
+
const da = [
|
|
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
|
|
953
|
-
return
|
|
929
|
+
function ua(e, a = da) {
|
|
930
|
+
if (!e) return "gray";
|
|
931
|
+
const r = st(e), n = Math.abs(r) % a.length;
|
|
932
|
+
return a[n];
|
|
954
933
|
}
|
|
955
|
-
const
|
|
956
|
-
function
|
|
957
|
-
if (!
|
|
958
|
-
const
|
|
959
|
-
return
|
|
934
|
+
const Lt = 2;
|
|
935
|
+
function _a(e) {
|
|
936
|
+
if (!e) return "";
|
|
937
|
+
const a = e.trim().split(/\s+/);
|
|
938
|
+
return a.length === 1 ? e.slice(0, Lt).toUpperCase() : a.map((r) => r[0]).slice(0, Lt).join("").toUpperCase();
|
|
960
939
|
}
|
|
961
|
-
const
|
|
940
|
+
const pa = {
|
|
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
|
|
951
|
+
function Nt(e, a) {
|
|
952
|
+
return a === "circle" ? e / 2 : pa[e] || 12;
|
|
974
953
|
}
|
|
975
|
-
const
|
|
954
|
+
const fa = {
|
|
976
955
|
24: "typography-subtitle-4-semibold",
|
|
977
956
|
32: "typography-subtitle-2-semibold",
|
|
978
957
|
40: "typography-subtitle-1-semibold",
|
|
@@ -983,148 +962,148 @@ const ir = {
|
|
|
983
962
|
96: "typography-title-3-semibold",
|
|
984
963
|
208: "typography-title-1-semibold"
|
|
985
964
|
};
|
|
986
|
-
function
|
|
987
|
-
return
|
|
965
|
+
function ga(e) {
|
|
966
|
+
return fa[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 ha = "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", ya = "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", ma = "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", ba = "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", va = {
|
|
969
|
+
male: ha,
|
|
970
|
+
female: ya,
|
|
971
|
+
org: ba,
|
|
972
|
+
neutral: ma
|
|
973
|
+
}, Be = J((e, a) => {
|
|
995
974
|
const {
|
|
996
|
-
style:
|
|
997
|
-
size:
|
|
975
|
+
style: r,
|
|
976
|
+
size: n = 40,
|
|
998
977
|
isLoading: i = !1,
|
|
999
|
-
isDisabled:
|
|
978
|
+
isDisabled: s = !1,
|
|
1000
979
|
shape: c = "circle",
|
|
1001
|
-
variant:
|
|
980
|
+
variant: u = "filled",
|
|
1002
981
|
placeholderType: d = "neutral",
|
|
1003
|
-
name:
|
|
1004
|
-
imgSrc:
|
|
1005
|
-
imgAlt:
|
|
1006
|
-
icon:
|
|
1007
|
-
imgProps:
|
|
982
|
+
name: p,
|
|
983
|
+
imgSrc: f,
|
|
984
|
+
imgAlt: y,
|
|
985
|
+
icon: m,
|
|
986
|
+
imgProps: h,
|
|
1008
987
|
colorScheme: v,
|
|
1009
|
-
className:
|
|
988
|
+
className: S,
|
|
1010
989
|
"data-testid": w,
|
|
1011
|
-
...
|
|
1012
|
-
} =
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
}, [
|
|
1016
|
-
const N =
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
990
|
+
...x
|
|
991
|
+
} = e, { onClick: g, onPointerDown: M } = x, A = !s && !i && (!!g || !!M), [$, R] = De(!1);
|
|
992
|
+
xe(() => {
|
|
993
|
+
f && R(!1);
|
|
994
|
+
}, [f]);
|
|
995
|
+
const N = f && !$ ? "image" : m ? "icon" : p ? "name" : "placeholder", z = v || N === "name" && ua(p) || "gray", P = ga(n), F = Nt(n, c), I = B(
|
|
996
|
+
S,
|
|
997
|
+
ce.avatar,
|
|
998
|
+
ce[`variant-${u}`],
|
|
999
|
+
ce[`color-${z}`],
|
|
1000
|
+
Me[P],
|
|
1022
1001
|
{
|
|
1023
|
-
[
|
|
1024
|
-
[
|
|
1025
|
-
[
|
|
1002
|
+
[ce.disabled]: s,
|
|
1003
|
+
[ce.loading]: i,
|
|
1004
|
+
[ce.clickable]: A
|
|
1026
1005
|
}
|
|
1027
|
-
),
|
|
1028
|
-
"--avatar-size": `${
|
|
1029
|
-
"--avatar-border-radius": `${
|
|
1030
|
-
...
|
|
1031
|
-
},
|
|
1032
|
-
icon: () => /* @__PURE__ */ o.jsx("span", { "data-testid": "avatar-icon", title:
|
|
1006
|
+
), b = {
|
|
1007
|
+
"--avatar-size": `${n}px`,
|
|
1008
|
+
"--avatar-border-radius": `${F}px`,
|
|
1009
|
+
...r
|
|
1010
|
+
}, L = {
|
|
1011
|
+
icon: () => /* @__PURE__ */ o.jsx("span", { "data-testid": "avatar-icon", title: y || void 0, role: "img", className: ce.icon, children: m == null ? void 0 : m({}) }),
|
|
1033
1012
|
name: () => /* @__PURE__ */ o.jsx(
|
|
1034
1013
|
"span",
|
|
1035
1014
|
{
|
|
1036
1015
|
role: "textbox",
|
|
1037
1016
|
"data-testid": "avatar-name",
|
|
1038
|
-
className:
|
|
1039
|
-
title:
|
|
1040
|
-
children:
|
|
1017
|
+
className: ce.name,
|
|
1018
|
+
title: y || void 0,
|
|
1019
|
+
children: _a(p || "")
|
|
1041
1020
|
}
|
|
1042
1021
|
),
|
|
1043
1022
|
placeholder: () => /* @__PURE__ */ o.jsx(
|
|
1044
1023
|
"img",
|
|
1045
1024
|
{
|
|
1046
|
-
...
|
|
1025
|
+
...h,
|
|
1047
1026
|
"data-testid": "avatar-placeholder",
|
|
1048
|
-
className:
|
|
1049
|
-
src:
|
|
1050
|
-
alt:
|
|
1027
|
+
className: ce.image,
|
|
1028
|
+
src: va[d],
|
|
1029
|
+
alt: y || void 0
|
|
1051
1030
|
}
|
|
1052
1031
|
),
|
|
1053
1032
|
image: () => /* @__PURE__ */ o.jsx(
|
|
1054
1033
|
"img",
|
|
1055
1034
|
{
|
|
1056
1035
|
"data-testid": "avatar-image",
|
|
1057
|
-
...
|
|
1058
|
-
className:
|
|
1059
|
-
src:
|
|
1060
|
-
alt:
|
|
1061
|
-
onLoad: () =>
|
|
1062
|
-
onError: (
|
|
1036
|
+
...h,
|
|
1037
|
+
className: ce.image,
|
|
1038
|
+
src: f || void 0,
|
|
1039
|
+
alt: y || void 0,
|
|
1040
|
+
onLoad: () => R(!1),
|
|
1041
|
+
onError: (U) => {
|
|
1063
1042
|
var H;
|
|
1064
|
-
|
|
1043
|
+
R(!0), (H = h == null ? void 0 : h.onError) == null || H.call(h, U);
|
|
1065
1044
|
}
|
|
1066
1045
|
}
|
|
1067
1046
|
)
|
|
1068
|
-
},
|
|
1069
|
-
|
|
1047
|
+
}, D = (U) => {
|
|
1048
|
+
A && (g == null || g(U));
|
|
1070
1049
|
};
|
|
1071
1050
|
return /* @__PURE__ */ o.jsx(
|
|
1072
1051
|
"div",
|
|
1073
1052
|
{
|
|
1074
|
-
ref:
|
|
1075
|
-
onClick:
|
|
1076
|
-
className:
|
|
1077
|
-
style:
|
|
1053
|
+
ref: a,
|
|
1054
|
+
onClick: D,
|
|
1055
|
+
className: I,
|
|
1056
|
+
style: b,
|
|
1078
1057
|
"data-testid": w,
|
|
1079
|
-
"aria-disabled":
|
|
1080
|
-
children:
|
|
1058
|
+
"aria-disabled": s || i,
|
|
1059
|
+
children: L[N](null)
|
|
1081
1060
|
}
|
|
1082
1061
|
);
|
|
1083
|
-
}),
|
|
1084
|
-
avatarGroup:
|
|
1062
|
+
}), xa = "_avatarGroup_157g4_1", Ca = {
|
|
1063
|
+
avatarGroup: xa
|
|
1085
1064
|
};
|
|
1086
|
-
let
|
|
1087
|
-
function
|
|
1088
|
-
const
|
|
1089
|
-
`M${
|
|
1090
|
-
`L${
|
|
1065
|
+
let wa = (e = 21) => crypto.getRandomValues(new Uint8Array(e)).reduce((a, r) => (r &= 63, r < 36 ? a += r.toString(36) : r < 62 ? a += (r - 26).toString(36).toUpperCase() : r > 62 ? a += "-" : a += "_", a), "");
|
|
1066
|
+
function Sa(e, a, r, n, i, s, c) {
|
|
1067
|
+
const u = Math.min(i, s) / 2, d = Math.min(c, u), p = ["M0,0", `H${e}`, `V${a}`, "H0", "V0", "Z"].join(" "), f = [
|
|
1068
|
+
`M${r + d},${n}`,
|
|
1069
|
+
`L${r + i - d},${n}`,
|
|
1091
1070
|
// Верхний правый угол
|
|
1092
|
-
`A${d},${d} 0 0 1 ${
|
|
1093
|
-
`L${
|
|
1071
|
+
`A${d},${d} 0 0 1 ${r + i},${n + d}`,
|
|
1072
|
+
`L${r + i},${n + s - d}`,
|
|
1094
1073
|
// Нижний правый угол
|
|
1095
|
-
`A${d},${d} 0 0 1 ${
|
|
1096
|
-
`L${
|
|
1074
|
+
`A${d},${d} 0 0 1 ${r + i - d},${n + s}`,
|
|
1075
|
+
`L${r + d},${n + s}`,
|
|
1097
1076
|
// Нижний левый угол
|
|
1098
|
-
`A${d},${d} 0 0 1 ${
|
|
1099
|
-
`L${
|
|
1077
|
+
`A${d},${d} 0 0 1 ${r},${n + s - d}`,
|
|
1078
|
+
`L${r},${n + d}`,
|
|
1100
1079
|
// Верхний левый угол
|
|
1101
|
-
`A${d},${d} 0 0 1 ${
|
|
1080
|
+
`A${d},${d} 0 0 1 ${r + d},${n}`,
|
|
1102
1081
|
"Z"
|
|
1103
1082
|
].join(" ");
|
|
1104
|
-
return `${
|
|
1083
|
+
return `${p} ${f}`;
|
|
1105
1084
|
}
|
|
1106
|
-
const
|
|
1085
|
+
const Ea = 3, La = (e) => {
|
|
1107
1086
|
const {
|
|
1108
|
-
avatars:
|
|
1109
|
-
size:
|
|
1110
|
-
overlap:
|
|
1087
|
+
avatars: a = [],
|
|
1088
|
+
size: r = 40,
|
|
1089
|
+
overlap: n = 0.3,
|
|
1111
1090
|
shape: i = "circle",
|
|
1112
|
-
overflowCount:
|
|
1091
|
+
overflowCount: s = 0,
|
|
1113
1092
|
overflowProps: c
|
|
1114
|
-
} =
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1093
|
+
} = e, u = r * n, d = -u + Ea, p = Nt(r, i), y = We(wa()).current.toString(), m = he(Ca.avatarGroup), h = Sa(
|
|
1094
|
+
r,
|
|
1095
|
+
r,
|
|
1096
|
+
r - u,
|
|
1118
1097
|
// X-координата начала выреза
|
|
1119
1098
|
0,
|
|
1120
1099
|
// Y-координата начала выреза
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1100
|
+
r,
|
|
1101
|
+
r,
|
|
1102
|
+
p
|
|
1124
1103
|
);
|
|
1125
|
-
return
|
|
1126
|
-
|
|
1127
|
-
const
|
|
1104
|
+
return a.length === 0 ? null : /* @__PURE__ */ o.jsxs("div", { className: m, children: [
|
|
1105
|
+
a.map((v, S, w) => {
|
|
1106
|
+
const x = S + 1 >= w.length;
|
|
1128
1107
|
if (v.wrapper) {
|
|
1129
1108
|
const g = v.wrapper;
|
|
1130
1109
|
return /* @__PURE__ */ o.jsx(
|
|
@@ -1132,12 +1111,12 @@ const yr = 3, mr = (t) => {
|
|
|
1132
1111
|
{
|
|
1133
1112
|
style: {
|
|
1134
1113
|
// Для последнего видимого аватара без overflowCount не применяем обрезку
|
|
1135
|
-
clipPath:
|
|
1114
|
+
clipPath: x && !s ? void 0 : `url(#${y})`,
|
|
1136
1115
|
marginRight: d
|
|
1137
1116
|
},
|
|
1138
|
-
children: /* @__PURE__ */ o.jsx(g, { children: /* @__PURE__ */ o.jsx(
|
|
1117
|
+
children: /* @__PURE__ */ o.jsx(g, { children: /* @__PURE__ */ o.jsx(Be, { size: r, shape: i, ...v }) })
|
|
1139
1118
|
},
|
|
1140
|
-
|
|
1119
|
+
st(v) + S
|
|
1141
1120
|
);
|
|
1142
1121
|
}
|
|
1143
1122
|
return /* @__PURE__ */ o.jsx(
|
|
@@ -1145,36 +1124,36 @@ const yr = 3, mr = (t) => {
|
|
|
1145
1124
|
{
|
|
1146
1125
|
style: {
|
|
1147
1126
|
// Для последнего видимого аватара без overflowCount не применяем обрезку
|
|
1148
|
-
clipPath:
|
|
1127
|
+
clipPath: x && !s ? void 0 : `url(#${y})`,
|
|
1149
1128
|
marginRight: d
|
|
1150
1129
|
},
|
|
1151
|
-
children: /* @__PURE__ */ o.jsx(
|
|
1130
|
+
children: /* @__PURE__ */ o.jsx(Be, { size: r, shape: i, ...v })
|
|
1152
1131
|
},
|
|
1153
|
-
|
|
1132
|
+
st(v) + S
|
|
1154
1133
|
);
|
|
1155
1134
|
}),
|
|
1156
|
-
|
|
1157
|
-
|
|
1135
|
+
s > 0 && /* @__PURE__ */ o.jsx("div", { style: { marginRight: d }, children: /* @__PURE__ */ o.jsx(
|
|
1136
|
+
Be,
|
|
1158
1137
|
{
|
|
1159
|
-
size:
|
|
1138
|
+
size: r,
|
|
1160
1139
|
shape: i,
|
|
1161
|
-
icon: () =>
|
|
1140
|
+
icon: () => ca(s),
|
|
1162
1141
|
colorScheme: "gray",
|
|
1163
1142
|
variant: "light",
|
|
1164
1143
|
...c
|
|
1165
1144
|
}
|
|
1166
1145
|
) }),
|
|
1167
|
-
/* @__PURE__ */ o.jsx("svg", { width: "0", height: "0", children: /* @__PURE__ */ o.jsx("clipPath", { id: `${
|
|
1146
|
+
/* @__PURE__ */ o.jsx("svg", { width: "0", height: "0", children: /* @__PURE__ */ o.jsx("clipPath", { id: `${y}`, children: /* @__PURE__ */ o.jsx("path", { clipPathUnits: "objectBoundingBox", d: h, clipRule: "evenodd" }) }) })
|
|
1168
1147
|
] });
|
|
1169
|
-
},
|
|
1170
|
-
Group:
|
|
1171
|
-
}),
|
|
1172
|
-
wrapper:
|
|
1173
|
-
badge__container:
|
|
1174
|
-
badge__content:
|
|
1175
|
-
interactive:
|
|
1176
|
-
disabled:
|
|
1177
|
-
icon:
|
|
1148
|
+
}, fo = Object.assign(Be, {
|
|
1149
|
+
Group: La
|
|
1150
|
+
}), ka = "_wrapper_ecbsu_5", ja = "_badge__container_ecbsu_6", $a = "_badge__content_ecbsu_7", Ma = "_interactive_ecbsu_20", Ra = "_disabled_ecbsu_21", Ia = "_icon_ecbsu_22", ue = {
|
|
1151
|
+
wrapper: ka,
|
|
1152
|
+
badge__container: ja,
|
|
1153
|
+
badge__content: $a,
|
|
1154
|
+
interactive: Ma,
|
|
1155
|
+
disabled: Ra,
|
|
1156
|
+
icon: Ia,
|
|
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,128 @@ 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
|
|
1212
|
-
for (;
|
|
1213
|
-
const
|
|
1214
|
-
if (!
|
|
1215
|
-
|
|
1188
|
+
}, Ta = (e) => e === "rgba(0, 0, 0, 0)" || e === "transparent" || e.startsWith("rgba") && e.endsWith(", 0)"), Aa = (e) => {
|
|
1189
|
+
if (!e) return null;
|
|
1190
|
+
let a = e;
|
|
1191
|
+
for (; a; ) {
|
|
1192
|
+
const n = window.getComputedStyle(a).backgroundColor;
|
|
1193
|
+
if (!Ta(n)) return n;
|
|
1194
|
+
a = a.parentElement;
|
|
1216
1195
|
}
|
|
1217
1196
|
return null;
|
|
1218
|
-
},
|
|
1219
|
-
const
|
|
1220
|
-
return
|
|
1221
|
-
if (
|
|
1222
|
-
const
|
|
1223
|
-
|
|
1197
|
+
}, Na = () => {
|
|
1198
|
+
const e = We(null), [a, r] = De(null);
|
|
1199
|
+
return xe(() => {
|
|
1200
|
+
if (e.current) {
|
|
1201
|
+
const n = Aa(e.current);
|
|
1202
|
+
r(n);
|
|
1224
1203
|
}
|
|
1225
|
-
}, []), { ref:
|
|
1226
|
-
},
|
|
1204
|
+
}, []), { ref: e, bgColor: a };
|
|
1205
|
+
}, go = J((e, a) => {
|
|
1227
1206
|
const {
|
|
1228
|
-
icon:
|
|
1229
|
-
children:
|
|
1207
|
+
icon: r,
|
|
1208
|
+
children: n,
|
|
1230
1209
|
variant: i = "filled",
|
|
1231
|
-
label:
|
|
1210
|
+
label: s,
|
|
1232
1211
|
isHidden: c = !1,
|
|
1233
|
-
colorScheme:
|
|
1212
|
+
colorScheme: u = "red",
|
|
1234
1213
|
size: d = 20,
|
|
1235
|
-
position:
|
|
1236
|
-
positionOffset:
|
|
1237
|
-
cutoutBackground:
|
|
1238
|
-
isDisabled:
|
|
1239
|
-
className:
|
|
1214
|
+
position: p = "top-right",
|
|
1215
|
+
positionOffset: f = { x: 0, y: 0 },
|
|
1216
|
+
cutoutBackground: y,
|
|
1217
|
+
isDisabled: m,
|
|
1218
|
+
className: h,
|
|
1240
1219
|
"data-testid": v = "badge",
|
|
1241
|
-
...
|
|
1242
|
-
} =
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1220
|
+
...S
|
|
1221
|
+
} = e, { onClick: w, onPointerDown: x } = S, { ref: g, bgColor: M } = Na(), q = y || M, $ = !m && (!!w || !!x), R = he(ue.badge__container, ue[`position-${p}`]), N = he(
|
|
1222
|
+
h,
|
|
1223
|
+
ue.badge__content,
|
|
1224
|
+
ue[`color-${u}`],
|
|
1225
|
+
ue[`variant-${i}`],
|
|
1247
1226
|
{
|
|
1248
|
-
[
|
|
1249
|
-
[
|
|
1250
|
-
[
|
|
1227
|
+
[ue.disabled]: m,
|
|
1228
|
+
[ue.icon]: !!r,
|
|
1229
|
+
[ue.interactive]: $
|
|
1251
1230
|
}
|
|
1252
|
-
),
|
|
1231
|
+
), z = {
|
|
1253
1232
|
"--badge-height": `${d}px`,
|
|
1254
|
-
"--badge-offset-x": `${
|
|
1255
|
-
"--badge-offset-y": `${
|
|
1256
|
-
...
|
|
1233
|
+
"--badge-offset-x": `${f.x}px`,
|
|
1234
|
+
"--badge-offset-y": `${f.y}px`,
|
|
1235
|
+
...q && { "--badge-cutout-bg": q },
|
|
1257
1236
|
...i === "transparent" && { "--badge-cutout-bg": "transparent" }
|
|
1258
|
-
},
|
|
1259
|
-
$ && (w == null || w(
|
|
1237
|
+
}, P = (r == null ? void 0 : r({})) || s, F = (I) => {
|
|
1238
|
+
$ && (w == null || w(I));
|
|
1260
1239
|
};
|
|
1261
|
-
return /* @__PURE__ */ o.jsxs("div", { className:
|
|
1262
|
-
|
|
1240
|
+
return /* @__PURE__ */ o.jsxs("div", { className: ue.wrapper, ref: g, "data-testid": v + "-wrapper", children: [
|
|
1241
|
+
n,
|
|
1263
1242
|
!c && /* @__PURE__ */ o.jsx(
|
|
1264
1243
|
"span",
|
|
1265
1244
|
{
|
|
1266
|
-
className:
|
|
1267
|
-
style:
|
|
1245
|
+
className: R,
|
|
1246
|
+
style: z,
|
|
1268
1247
|
"data-testid": v + "-container",
|
|
1269
1248
|
children: /* @__PURE__ */ o.jsx(
|
|
1270
1249
|
"span",
|
|
1271
1250
|
{
|
|
1272
|
-
...
|
|
1273
|
-
onClick:
|
|
1251
|
+
...S,
|
|
1252
|
+
onClick: F,
|
|
1274
1253
|
className: N,
|
|
1275
1254
|
"data-testid": v + "-content",
|
|
1276
|
-
ref:
|
|
1277
|
-
"aria-disabled":
|
|
1278
|
-
children:
|
|
1255
|
+
ref: a,
|
|
1256
|
+
"aria-disabled": m,
|
|
1257
|
+
children: P
|
|
1279
1258
|
}
|
|
1280
1259
|
)
|
|
1281
1260
|
}
|
|
1282
1261
|
)
|
|
1283
1262
|
] });
|
|
1284
|
-
}),
|
|
1285
|
-
container:
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
overlay: Wr,
|
|
1263
|
+
}), Da = "_container_op5yl_7", Oa = "_image_op5yl_22", qa = "_loading_op5yl_34", tt = {
|
|
1264
|
+
container: Da,
|
|
1265
|
+
image: Oa,
|
|
1266
|
+
loading: qa
|
|
1267
|
+
}, Ua = "_loader_isv17_1", Pa = "_spin_isv17_1", Fa = "_accent_isv17_19", Ba = "_neutral_isv17_23", za = "_positive_isv17_27", Wa = "_negative_isv17_31", Ha = "_gray_isv17_35", Ga = "_special_isv17_39", Va = "_contrast_isv17_43", Za = "_container_isv17_47", Ya = "_overlay_isv17_57", Ne = {
|
|
1268
|
+
loader: Ua,
|
|
1269
|
+
spin: Pa,
|
|
1270
|
+
accent: Fa,
|
|
1271
|
+
neutral: Ba,
|
|
1272
|
+
positive: za,
|
|
1273
|
+
negative: Wa,
|
|
1274
|
+
gray: Ha,
|
|
1275
|
+
special: Ga,
|
|
1276
|
+
contrast: Va,
|
|
1277
|
+
container: Za,
|
|
1278
|
+
overlay: Ya,
|
|
1301
1279
|
"size-16": "_size-16_isv17_72",
|
|
1302
1280
|
"size-24": "_size-24_isv17_76",
|
|
1303
1281
|
"size-48": "_size-48_isv17_80",
|
|
1304
1282
|
"size-64": "_size-64_isv17_84",
|
|
1305
1283
|
"size-96": "_size-96_isv17_88"
|
|
1306
|
-
},
|
|
1284
|
+
}, Dt = J(
|
|
1307
1285
|
({
|
|
1308
|
-
size:
|
|
1309
|
-
variant:
|
|
1310
|
-
className:
|
|
1311
|
-
"data-testid":
|
|
1286
|
+
size: e = 24,
|
|
1287
|
+
variant: a = "accent",
|
|
1288
|
+
className: r,
|
|
1289
|
+
"data-testid": n = "loader",
|
|
1312
1290
|
style: i,
|
|
1313
|
-
...
|
|
1291
|
+
...s
|
|
1314
1292
|
}, c) => {
|
|
1315
|
-
const
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1293
|
+
const u = he(
|
|
1294
|
+
Ne.loader,
|
|
1295
|
+
Ne[a],
|
|
1296
|
+
Ne[`size-${e}`],
|
|
1297
|
+
r
|
|
1320
1298
|
);
|
|
1321
1299
|
return /* @__PURE__ */ o.jsx(
|
|
1322
1300
|
"svg",
|
|
1323
1301
|
{
|
|
1324
1302
|
ref: c,
|
|
1325
|
-
className:
|
|
1303
|
+
className: u,
|
|
1326
1304
|
fill: "none",
|
|
1327
1305
|
viewBox: "0 0 16 16",
|
|
1328
1306
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1329
|
-
"data-testid":
|
|
1307
|
+
"data-testid": n,
|
|
1330
1308
|
style: i,
|
|
1331
|
-
...
|
|
1309
|
+
...s,
|
|
1332
1310
|
children: /* @__PURE__ */ o.jsx(
|
|
1333
1311
|
"path",
|
|
1334
1312
|
{
|
|
@@ -1341,37 +1319,37 @@ const yr = 3, mr = (t) => {
|
|
|
1341
1319
|
}
|
|
1342
1320
|
);
|
|
1343
1321
|
}
|
|
1344
|
-
),
|
|
1322
|
+
), Ka = J((e, a) => {
|
|
1345
1323
|
const {
|
|
1346
|
-
loading:
|
|
1347
|
-
size:
|
|
1324
|
+
loading: r = !1,
|
|
1325
|
+
size: n = 24,
|
|
1348
1326
|
variant: i = "accent",
|
|
1349
|
-
children:
|
|
1327
|
+
children: s,
|
|
1350
1328
|
className: c,
|
|
1351
|
-
style:
|
|
1329
|
+
style: u,
|
|
1352
1330
|
"data-testid": d,
|
|
1353
|
-
...
|
|
1354
|
-
} =
|
|
1355
|
-
return /* @__PURE__ */ o.jsxs("div", { ref:
|
|
1356
|
-
|
|
1357
|
-
|
|
1331
|
+
...p
|
|
1332
|
+
} = e, f = he(Ne.container, c);
|
|
1333
|
+
return /* @__PURE__ */ o.jsxs("div", { ref: a, className: f, style: u, "data-testid": d, ...p, children: [
|
|
1334
|
+
s,
|
|
1335
|
+
r && /* @__PURE__ */ o.jsx("div", { className: Ne.overlay, children: /* @__PURE__ */ o.jsx(Dt, { size: n, variant: i, "data-testid": `${d}-spinner` }) })
|
|
1358
1336
|
] });
|
|
1359
|
-
}),
|
|
1360
|
-
|
|
1337
|
+
}), Ja = J((e, a) => e.children ? /* @__PURE__ */ o.jsx(
|
|
1338
|
+
Ka,
|
|
1361
1339
|
{
|
|
1362
|
-
ref:
|
|
1363
|
-
...
|
|
1340
|
+
ref: a,
|
|
1341
|
+
...e
|
|
1364
1342
|
}
|
|
1365
|
-
) : /* @__PURE__ */ o.jsx(
|
|
1343
|
+
) : /* @__PURE__ */ o.jsx(Dt, { ref: a, ...e })), Xa = ({ width: e = 48, height: a = 48, className: r, "data-testid": n }) => /* @__PURE__ */ o.jsx(
|
|
1366
1344
|
"svg",
|
|
1367
1345
|
{
|
|
1368
|
-
width:
|
|
1369
|
-
height:
|
|
1346
|
+
width: e,
|
|
1347
|
+
height: a,
|
|
1370
1348
|
viewBox: "0 0 48 48",
|
|
1371
1349
|
fill: "none",
|
|
1372
1350
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1373
|
-
className:
|
|
1374
|
-
"data-testid":
|
|
1351
|
+
className: r,
|
|
1352
|
+
"data-testid": n,
|
|
1375
1353
|
children: /* @__PURE__ */ o.jsx(
|
|
1376
1354
|
"path",
|
|
1377
1355
|
{
|
|
@@ -1383,186 +1361,178 @@ const yr = 3, mr = (t) => {
|
|
|
1383
1361
|
}
|
|
1384
1362
|
)
|
|
1385
1363
|
}
|
|
1386
|
-
),
|
|
1364
|
+
), ho = J((e, a) => {
|
|
1387
1365
|
const {
|
|
1388
|
-
alt:
|
|
1389
|
-
loading:
|
|
1366
|
+
alt: r = "",
|
|
1367
|
+
loading: n = "lazy",
|
|
1390
1368
|
src: i,
|
|
1391
|
-
isLoading:
|
|
1369
|
+
isLoading: s = !1,
|
|
1392
1370
|
className: c,
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
ke.container,
|
|
1400
|
-
{
|
|
1401
|
-
[ke.loading]: E && !w,
|
|
1402
|
-
[ke.error]: v && !w
|
|
1403
|
-
},
|
|
1404
|
-
p
|
|
1405
|
-
), g = B(
|
|
1406
|
-
ke.image,
|
|
1371
|
+
"data-testid": u = "image",
|
|
1372
|
+
onError: d,
|
|
1373
|
+
onLoad: p,
|
|
1374
|
+
...f
|
|
1375
|
+
} = e, [y, m] = De("loading"), h = y === "error", v = (s || y === "loading") && !h, S = y === "loaded" && !s, w = he(
|
|
1376
|
+
tt.image,
|
|
1407
1377
|
{
|
|
1408
|
-
[
|
|
1378
|
+
[tt.loading]: v
|
|
1409
1379
|
},
|
|
1410
1380
|
c
|
|
1411
|
-
),
|
|
1412
|
-
(
|
|
1413
|
-
|
|
1381
|
+
), x = ve(
|
|
1382
|
+
(q) => {
|
|
1383
|
+
m("loaded"), p == null || p(q);
|
|
1414
1384
|
},
|
|
1415
|
-
[
|
|
1416
|
-
),
|
|
1417
|
-
(
|
|
1418
|
-
|
|
1385
|
+
[p]
|
|
1386
|
+
), g = ve(
|
|
1387
|
+
(q) => {
|
|
1388
|
+
m("error"), d == null || d(q);
|
|
1419
1389
|
},
|
|
1420
|
-
[
|
|
1421
|
-
),
|
|
1422
|
-
loader: /* @__PURE__ */ o.jsxs(
|
|
1423
|
-
/* @__PURE__ */ o.jsx(
|
|
1390
|
+
[d]
|
|
1391
|
+
), M = {
|
|
1392
|
+
loader: /* @__PURE__ */ o.jsxs(Ae, { children: [
|
|
1393
|
+
/* @__PURE__ */ o.jsx(Ja, { size: 48, variant: "special", "data-testid": `${u}-loader` }),
|
|
1424
1394
|
/* @__PURE__ */ o.jsx(
|
|
1425
1395
|
"img",
|
|
1426
1396
|
{
|
|
1427
|
-
alt:
|
|
1397
|
+
alt: r,
|
|
1428
1398
|
src: i,
|
|
1429
|
-
onLoad:
|
|
1430
|
-
onError:
|
|
1399
|
+
onLoad: x,
|
|
1400
|
+
onError: g,
|
|
1431
1401
|
style: { display: "none" }
|
|
1432
1402
|
}
|
|
1433
1403
|
)
|
|
1434
1404
|
] }),
|
|
1435
|
-
error: /* @__PURE__ */ o.jsx(
|
|
1405
|
+
error: /* @__PURE__ */ o.jsx(Xa, { "data-testid": `${u}-fallback` }),
|
|
1436
1406
|
image: /* @__PURE__ */ o.jsx(
|
|
1437
1407
|
"img",
|
|
1438
1408
|
{
|
|
1439
|
-
ref:
|
|
1440
|
-
alt:
|
|
1441
|
-
"data-testid":
|
|
1442
|
-
loading:
|
|
1409
|
+
ref: a,
|
|
1410
|
+
alt: r,
|
|
1411
|
+
"data-testid": u,
|
|
1412
|
+
loading: n,
|
|
1443
1413
|
src: i,
|
|
1444
|
-
className:
|
|
1414
|
+
className: w
|
|
1445
1415
|
}
|
|
1446
1416
|
)
|
|
1447
1417
|
};
|
|
1448
|
-
return
|
|
1418
|
+
return xe(() => {
|
|
1449
1419
|
if (!i) {
|
|
1450
|
-
|
|
1420
|
+
m("error");
|
|
1451
1421
|
return;
|
|
1452
1422
|
}
|
|
1453
|
-
|
|
1454
|
-
}, [i]), /* @__PURE__ */ o.jsxs("div", { className:
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1423
|
+
m("loading");
|
|
1424
|
+
}, [i]), /* @__PURE__ */ o.jsxs("div", { className: tt.container, "data-testid": `${u}-container`, ...f, children: [
|
|
1425
|
+
v && M.loader,
|
|
1426
|
+
h && M.error,
|
|
1427
|
+
S && M.image
|
|
1458
1428
|
] });
|
|
1459
|
-
}),
|
|
1460
|
-
locale:
|
|
1461
|
-
}),
|
|
1462
|
-
const
|
|
1463
|
-
if (!
|
|
1429
|
+
}), Qa = {}, Ot = dr({
|
|
1430
|
+
locale: Qa
|
|
1431
|
+
}), en = () => {
|
|
1432
|
+
const e = ur(Ot);
|
|
1433
|
+
if (!e)
|
|
1464
1434
|
throw new Error("useConfig must be used within a ConfigProvider");
|
|
1465
|
-
return
|
|
1466
|
-
},
|
|
1467
|
-
const { locale:
|
|
1468
|
-
return
|
|
1469
|
-
},
|
|
1470
|
-
locale:
|
|
1471
|
-
theme:
|
|
1472
|
-
children:
|
|
1473
|
-
className:
|
|
1474
|
-
}) => (
|
|
1475
|
-
if (
|
|
1435
|
+
return e;
|
|
1436
|
+
}, yo = () => {
|
|
1437
|
+
const { locale: e } = en();
|
|
1438
|
+
return e;
|
|
1439
|
+
}, tn = {}, rn = {}, an = {}, mo = ({
|
|
1440
|
+
locale: e = {},
|
|
1441
|
+
theme: a,
|
|
1442
|
+
children: r,
|
|
1443
|
+
className: n
|
|
1444
|
+
}) => (_r(() => {
|
|
1445
|
+
if (a) {
|
|
1476
1446
|
const i = document.documentElement;
|
|
1477
|
-
Object.entries(
|
|
1478
|
-
i.style.setProperty(
|
|
1447
|
+
Object.entries(a).forEach(([s, c]) => {
|
|
1448
|
+
i.style.setProperty(s, c);
|
|
1479
1449
|
});
|
|
1480
1450
|
}
|
|
1481
|
-
}, [
|
|
1451
|
+
}, [a]), /* @__PURE__ */ o.jsxs(Ae, { children: [
|
|
1482
1452
|
/* @__PURE__ */ o.jsx(
|
|
1483
1453
|
"div",
|
|
1484
1454
|
{
|
|
1485
1455
|
"data-testid": "ConfigProvider-component",
|
|
1486
|
-
className: B(
|
|
1456
|
+
className: B(tn, rn, an, n)
|
|
1487
1457
|
}
|
|
1488
1458
|
),
|
|
1489
|
-
/* @__PURE__ */ o.jsx(
|
|
1490
|
-
] })),
|
|
1491
|
-
tag:
|
|
1492
|
-
label:
|
|
1493
|
-
iconWrapper:
|
|
1494
|
-
medium:
|
|
1495
|
-
large:
|
|
1496
|
-
disabled:
|
|
1497
|
-
neutral:
|
|
1498
|
-
positive:
|
|
1499
|
-
negative:
|
|
1500
|
-
warning:
|
|
1501
|
-
vivid:
|
|
1502
|
-
special:
|
|
1503
|
-
accent:
|
|
1504
|
-
blue:
|
|
1505
|
-
lovely:
|
|
1506
|
-
dreamy:
|
|
1507
|
-
},
|
|
1459
|
+
/* @__PURE__ */ o.jsx(Ot.Provider, { value: { locale: e }, children: r })
|
|
1460
|
+
] })), bo = {}, nn = "_tag_1llsi_1", sn = "_label_1llsi_16", on = "_iconWrapper_1llsi_20", ln = "_medium_1llsi_27", cn = "_large_1llsi_33", dn = "_disabled_1llsi_43", un = "_neutral_1llsi_47", _n = "_positive_1llsi_53", pn = "_negative_1llsi_59", fn = "_warning_1llsi_65", gn = "_vivid_1llsi_71", hn = "_special_1llsi_77", yn = "_accent_1llsi_84", mn = "_blue_1llsi_90", bn = "_lovely_1llsi_96", vn = "_dreamy_1llsi_102", be = {
|
|
1461
|
+
tag: nn,
|
|
1462
|
+
label: sn,
|
|
1463
|
+
iconWrapper: on,
|
|
1464
|
+
medium: ln,
|
|
1465
|
+
large: cn,
|
|
1466
|
+
disabled: dn,
|
|
1467
|
+
neutral: un,
|
|
1468
|
+
positive: _n,
|
|
1469
|
+
negative: pn,
|
|
1470
|
+
warning: fn,
|
|
1471
|
+
vivid: gn,
|
|
1472
|
+
special: hn,
|
|
1473
|
+
accent: yn,
|
|
1474
|
+
blue: mn,
|
|
1475
|
+
lovely: bn,
|
|
1476
|
+
dreamy: vn
|
|
1477
|
+
}, vo = J((e, a) => {
|
|
1508
1478
|
const {
|
|
1509
|
-
className:
|
|
1510
|
-
children:
|
|
1479
|
+
className: r,
|
|
1480
|
+
children: n,
|
|
1511
1481
|
componentStyle: i = "neutral",
|
|
1512
|
-
size:
|
|
1482
|
+
size: s = "medium",
|
|
1513
1483
|
disabled: c = !1,
|
|
1514
|
-
showLabel:
|
|
1484
|
+
showLabel: u = !!n,
|
|
1515
1485
|
slotStart: d,
|
|
1516
|
-
slotEnd:
|
|
1517
|
-
slotStartWrapperProps:
|
|
1518
|
-
slotEndWrapperProps:
|
|
1519
|
-
"data-testid":
|
|
1520
|
-
} =
|
|
1486
|
+
slotEnd: p,
|
|
1487
|
+
slotStartWrapperProps: f = {},
|
|
1488
|
+
slotEndWrapperProps: y = {},
|
|
1489
|
+
"data-testid": m
|
|
1490
|
+
} = e, { className: h, ...v } = f, { className: S, ...w } = y;
|
|
1521
1491
|
return /* @__PURE__ */ o.jsxs(
|
|
1522
1492
|
"div",
|
|
1523
1493
|
{
|
|
1524
1494
|
className: B(
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1495
|
+
be.tag,
|
|
1496
|
+
be[s],
|
|
1497
|
+
be[i],
|
|
1528
1498
|
{
|
|
1529
|
-
[
|
|
1530
|
-
[
|
|
1531
|
-
[
|
|
1499
|
+
[be.disabled]: c,
|
|
1500
|
+
[Me["typography-label-3-regular"]]: s === "medium",
|
|
1501
|
+
[Me["typography-subtitle-1-semibold"]]: s === "large"
|
|
1532
1502
|
},
|
|
1533
|
-
|
|
1503
|
+
r
|
|
1534
1504
|
),
|
|
1535
|
-
"data-testid":
|
|
1536
|
-
ref:
|
|
1505
|
+
"data-testid": m || "tag-component",
|
|
1506
|
+
ref: a,
|
|
1537
1507
|
children: [
|
|
1538
|
-
d && /* @__PURE__ */ o.jsx("span", { className: B([
|
|
1539
|
-
|
|
1540
|
-
|
|
1508
|
+
d && /* @__PURE__ */ o.jsx("span", { className: B([be.iconWrapper, h]), ...v, children: d }),
|
|
1509
|
+
u && /* @__PURE__ */ o.jsx("span", { className: B([be.label]), children: n }),
|
|
1510
|
+
p && /* @__PURE__ */ o.jsx("span", { className: B([be.iconWrapper, S]), ...w, children: p })
|
|
1541
1511
|
]
|
|
1542
1512
|
}
|
|
1543
1513
|
);
|
|
1544
|
-
}),
|
|
1545
|
-
checkbox:
|
|
1546
|
-
input:
|
|
1547
|
-
icon:
|
|
1548
|
-
container:
|
|
1549
|
-
error:
|
|
1550
|
-
checkboxWrapper:
|
|
1551
|
-
medium:
|
|
1552
|
-
large:
|
|
1553
|
-
label:
|
|
1554
|
-
},
|
|
1555
|
-
width:
|
|
1556
|
-
height:
|
|
1557
|
-
className:
|
|
1558
|
-
color:
|
|
1514
|
+
}), xn = "_checkbox_17txq_43", Cn = "_input_17txq_64", wn = "_icon_17txq_72", Sn = "_container_17txq_92", En = "_error_17txq_143", Ln = "_checkboxWrapper_17txq_156", kn = "_medium_17txq_211", jn = "_large_17txq_216", $n = "_label_17txq_258", pe = {
|
|
1515
|
+
checkbox: xn,
|
|
1516
|
+
input: Cn,
|
|
1517
|
+
icon: wn,
|
|
1518
|
+
container: Sn,
|
|
1519
|
+
error: En,
|
|
1520
|
+
checkboxWrapper: Ln,
|
|
1521
|
+
medium: kn,
|
|
1522
|
+
large: jn,
|
|
1523
|
+
label: $n
|
|
1524
|
+
}, Mn = ({
|
|
1525
|
+
width: e = 12,
|
|
1526
|
+
height: a = 9,
|
|
1527
|
+
className: r = "",
|
|
1528
|
+
color: n = "currentColor",
|
|
1559
1529
|
...i
|
|
1560
1530
|
}) => /* @__PURE__ */ o.jsx(
|
|
1561
1531
|
"svg",
|
|
1562
1532
|
{
|
|
1563
|
-
className:
|
|
1564
|
-
width:
|
|
1565
|
-
height:
|
|
1533
|
+
className: r,
|
|
1534
|
+
width: e,
|
|
1535
|
+
height: a,
|
|
1566
1536
|
viewBox: "0 0 14 10",
|
|
1567
1537
|
fill: "none",
|
|
1568
1538
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1573,22 +1543,22 @@ const yr = 3, mr = (t) => {
|
|
|
1573
1543
|
fillRule: "evenodd",
|
|
1574
1544
|
clipRule: "evenodd",
|
|
1575
1545
|
d: "M13.0001 2.49999C13.3906 2.10946 13.3906 1.4763 13.0001 1.08578C12.6095 0.695251 11.9764 0.695251 11.5859 1.08578L5.29296 7.37867L2.00007 4.08578C1.60954 3.69525 0.976378 3.69525 0.585855 4.08578C0.19533 4.4763 0.19533 5.10946 0.585855 5.49999L4.58585 9.49999C4.97638 9.89051 5.60954 9.89051 6.00007 9.49999L13.0001 2.49999Z",
|
|
1576
|
-
fill:
|
|
1546
|
+
fill: n
|
|
1577
1547
|
}
|
|
1578
1548
|
)
|
|
1579
1549
|
}
|
|
1580
|
-
),
|
|
1581
|
-
width:
|
|
1582
|
-
height:
|
|
1583
|
-
className:
|
|
1584
|
-
color:
|
|
1550
|
+
), Rn = ({
|
|
1551
|
+
width: e = 12,
|
|
1552
|
+
height: a = 2,
|
|
1553
|
+
className: r = "",
|
|
1554
|
+
color: n = "currentColor",
|
|
1585
1555
|
...i
|
|
1586
1556
|
}) => /* @__PURE__ */ o.jsx(
|
|
1587
1557
|
"svg",
|
|
1588
1558
|
{
|
|
1589
|
-
className:
|
|
1590
|
-
width:
|
|
1591
|
-
height:
|
|
1559
|
+
className: r,
|
|
1560
|
+
width: e,
|
|
1561
|
+
height: a,
|
|
1592
1562
|
viewBox: "0 0 12 2",
|
|
1593
1563
|
fill: "none",
|
|
1594
1564
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1599,291 +1569,291 @@ const yr = 3, mr = (t) => {
|
|
|
1599
1569
|
fillRule: "evenodd",
|
|
1600
1570
|
clipRule: "evenodd",
|
|
1601
1571
|
d: "M0 1C0 0.447715 0.447715 0 1 0H11C11.5523 0 12 0.447715 12 1C12 1.55228 11.5523 2 11 2H1C0.447715 2 0 1.55228 0 1Z",
|
|
1602
|
-
fill:
|
|
1572
|
+
fill: n
|
|
1603
1573
|
}
|
|
1604
1574
|
)
|
|
1605
1575
|
}
|
|
1606
|
-
),
|
|
1576
|
+
), In = {
|
|
1607
1577
|
medium: { width: 10.83, height: 7.5 },
|
|
1608
1578
|
large: { width: 13, height: 9 }
|
|
1609
|
-
},
|
|
1610
|
-
size:
|
|
1611
|
-
isChecked:
|
|
1612
|
-
isDisabled:
|
|
1613
|
-
indeterminate:
|
|
1579
|
+
}, Tn = ({
|
|
1580
|
+
size: e,
|
|
1581
|
+
isChecked: a,
|
|
1582
|
+
isDisabled: r,
|
|
1583
|
+
indeterminate: n,
|
|
1614
1584
|
dataTestId: i
|
|
1615
1585
|
}) => {
|
|
1616
|
-
const { width:
|
|
1586
|
+
const { width: s, height: c } = In[e];
|
|
1617
1587
|
return /* @__PURE__ */ o.jsx(
|
|
1618
1588
|
"div",
|
|
1619
1589
|
{
|
|
1620
|
-
className:
|
|
1590
|
+
className: pe.icon,
|
|
1621
1591
|
"data-testid": `${i}-icon`,
|
|
1622
|
-
"data-checked":
|
|
1623
|
-
"data-disabled":
|
|
1624
|
-
"data-indeterminate":
|
|
1625
|
-
children:
|
|
1592
|
+
"data-checked": a,
|
|
1593
|
+
"data-disabled": r,
|
|
1594
|
+
"data-indeterminate": n,
|
|
1595
|
+
children: n ? /* @__PURE__ */ o.jsx(Rn, { width: s, height: c }) : /* @__PURE__ */ o.jsx(Mn, { width: s, height: c })
|
|
1626
1596
|
}
|
|
1627
1597
|
);
|
|
1628
|
-
},
|
|
1598
|
+
}, xo = J((e, a) => {
|
|
1629
1599
|
const {
|
|
1630
|
-
name:
|
|
1631
|
-
value:
|
|
1600
|
+
name: r,
|
|
1601
|
+
value: n,
|
|
1632
1602
|
size: i = "medium",
|
|
1633
|
-
indeterminate:
|
|
1603
|
+
indeterminate: s = !1,
|
|
1634
1604
|
loading: c = !1,
|
|
1635
|
-
error:
|
|
1605
|
+
error: u,
|
|
1636
1606
|
disabled: d = !1,
|
|
1637
|
-
containerClassName:
|
|
1638
|
-
className:
|
|
1639
|
-
containerStyle:
|
|
1640
|
-
style:
|
|
1641
|
-
children:
|
|
1607
|
+
containerClassName: p,
|
|
1608
|
+
className: f,
|
|
1609
|
+
containerStyle: y,
|
|
1610
|
+
style: m,
|
|
1611
|
+
children: h,
|
|
1642
1612
|
clickableLabel: v = !0,
|
|
1643
|
-
tabIndex:
|
|
1613
|
+
tabIndex: S,
|
|
1644
1614
|
onChange: w,
|
|
1645
|
-
"data-testid":
|
|
1646
|
-
} =
|
|
1647
|
-
|
|
1648
|
-
|
|
1615
|
+
"data-testid": x = "checkbox"
|
|
1616
|
+
} = e, [g, M] = De(!1), q = n ?? g, A = d || c, $ = !!u, R = q || s, N = B(pe.container, pe[i], p), z = B(
|
|
1617
|
+
pe.checkbox,
|
|
1618
|
+
pe[i],
|
|
1649
1619
|
{
|
|
1650
|
-
[
|
|
1620
|
+
[pe.error]: $
|
|
1651
1621
|
},
|
|
1652
|
-
|
|
1653
|
-
),
|
|
1654
|
-
|
|
1655
|
-
},
|
|
1656
|
-
if (
|
|
1657
|
-
|
|
1658
|
-
const
|
|
1659
|
-
|
|
1622
|
+
f
|
|
1623
|
+
), P = (L) => {
|
|
1624
|
+
A || (M(L.target.checked), w == null || w(L.target.checked, L));
|
|
1625
|
+
}, F = (L) => {
|
|
1626
|
+
if (L.key === "Enter" && !A) {
|
|
1627
|
+
L.preventDefault();
|
|
1628
|
+
const D = !R;
|
|
1629
|
+
M(D), w == null || w(D);
|
|
1660
1630
|
}
|
|
1661
|
-
},
|
|
1662
|
-
v ||
|
|
1663
|
-
},
|
|
1631
|
+
}, I = (L) => {
|
|
1632
|
+
v || L.preventDefault();
|
|
1633
|
+
}, b = (L) => L.stopPropagation();
|
|
1664
1634
|
return /* @__PURE__ */ o.jsxs(
|
|
1665
1635
|
"label",
|
|
1666
1636
|
{
|
|
1667
1637
|
className: N,
|
|
1668
|
-
htmlFor:
|
|
1669
|
-
style:
|
|
1670
|
-
"data-testid":
|
|
1638
|
+
htmlFor: r,
|
|
1639
|
+
style: y,
|
|
1640
|
+
"data-testid": x,
|
|
1671
1641
|
"data-clickable-label": v,
|
|
1672
1642
|
children: [
|
|
1673
|
-
/* @__PURE__ */ o.jsx("div", { className:
|
|
1643
|
+
/* @__PURE__ */ o.jsx("div", { className: pe.checkboxWrapper, children: /* @__PURE__ */ o.jsxs(
|
|
1674
1644
|
"div",
|
|
1675
1645
|
{
|
|
1676
|
-
tabIndex:
|
|
1677
|
-
className:
|
|
1678
|
-
style:
|
|
1679
|
-
onKeyDown:
|
|
1680
|
-
"aria-checked":
|
|
1681
|
-
"aria-disabled":
|
|
1646
|
+
tabIndex: S || 0,
|
|
1647
|
+
className: z,
|
|
1648
|
+
style: m,
|
|
1649
|
+
onKeyDown: F,
|
|
1650
|
+
"aria-checked": R,
|
|
1651
|
+
"aria-disabled": A,
|
|
1682
1652
|
"aria-invalid": $,
|
|
1683
|
-
"aria-describedby":
|
|
1684
|
-
"data-testid": `${
|
|
1653
|
+
"aria-describedby": u ? `${r}-error` : void 0,
|
|
1654
|
+
"data-testid": `${x}-label`,
|
|
1685
1655
|
children: [
|
|
1686
1656
|
/* @__PURE__ */ o.jsx(
|
|
1687
1657
|
"input",
|
|
1688
1658
|
{
|
|
1689
|
-
ref:
|
|
1659
|
+
ref: a,
|
|
1690
1660
|
type: "checkbox",
|
|
1691
|
-
id:
|
|
1692
|
-
name:
|
|
1693
|
-
checked:
|
|
1694
|
-
disabled:
|
|
1695
|
-
className:
|
|
1696
|
-
onChange:
|
|
1697
|
-
onClick:
|
|
1698
|
-
"aria-checked":
|
|
1661
|
+
id: r,
|
|
1662
|
+
name: r,
|
|
1663
|
+
checked: R,
|
|
1664
|
+
disabled: A,
|
|
1665
|
+
className: pe.input,
|
|
1666
|
+
onChange: P,
|
|
1667
|
+
onClick: b,
|
|
1668
|
+
"aria-checked": R,
|
|
1699
1669
|
"aria-invalid": $,
|
|
1700
|
-
"aria-describedby":
|
|
1701
|
-
"data-testid": `${
|
|
1670
|
+
"aria-describedby": u ? `${r}-error` : void 0,
|
|
1671
|
+
"data-testid": `${x}-input`
|
|
1702
1672
|
}
|
|
1703
1673
|
),
|
|
1704
1674
|
/* @__PURE__ */ o.jsx(
|
|
1705
|
-
|
|
1675
|
+
Tn,
|
|
1706
1676
|
{
|
|
1707
|
-
name:
|
|
1677
|
+
name: r,
|
|
1708
1678
|
size: i,
|
|
1709
|
-
isChecked:
|
|
1710
|
-
isDisabled:
|
|
1711
|
-
indeterminate:
|
|
1712
|
-
dataTestId:
|
|
1679
|
+
isChecked: R,
|
|
1680
|
+
isDisabled: A,
|
|
1681
|
+
indeterminate: s,
|
|
1682
|
+
dataTestId: x
|
|
1713
1683
|
}
|
|
1714
1684
|
)
|
|
1715
1685
|
]
|
|
1716
1686
|
}
|
|
1717
1687
|
) }),
|
|
1718
|
-
|
|
1688
|
+
h && /* @__PURE__ */ o.jsx(
|
|
1719
1689
|
"span",
|
|
1720
1690
|
{
|
|
1721
|
-
"data-testid": `${
|
|
1691
|
+
"data-testid": `${x}-label-text`,
|
|
1722
1692
|
"data-clickable-label": v,
|
|
1723
|
-
className:
|
|
1724
|
-
onClick:
|
|
1725
|
-
children:
|
|
1693
|
+
className: pe.label,
|
|
1694
|
+
onClick: I,
|
|
1695
|
+
children: h
|
|
1726
1696
|
}
|
|
1727
1697
|
)
|
|
1728
1698
|
]
|
|
1729
1699
|
}
|
|
1730
1700
|
);
|
|
1731
|
-
}),
|
|
1732
|
-
typography:
|
|
1733
|
-
disabled:
|
|
1734
|
-
primary:
|
|
1735
|
-
secondary:
|
|
1736
|
-
tertiary:
|
|
1737
|
-
accent:
|
|
1701
|
+
}), An = "_typography_zt7xg_1", Nn = "_disabled_zt7xg_8", Dn = "_primary_zt7xg_13", On = "_secondary_zt7xg_18", qn = "_tertiary_zt7xg_23", Un = "_accent_zt7xg_28", Pn = "_positive_zt7xg_38", Fn = "_negative_zt7xg_48", Bn = "_warning_zt7xg_58", zn = "_special_zt7xg_68", Wn = "_contrast_zt7xg_78", $e = {
|
|
1702
|
+
typography: An,
|
|
1703
|
+
disabled: Nn,
|
|
1704
|
+
primary: Dn,
|
|
1705
|
+
secondary: On,
|
|
1706
|
+
tertiary: qn,
|
|
1707
|
+
accent: Un,
|
|
1738
1708
|
"accent-secondary": "_accent-secondary_zt7xg_33",
|
|
1739
|
-
positive:
|
|
1709
|
+
positive: Pn,
|
|
1740
1710
|
"positive-secondary": "_positive-secondary_zt7xg_43",
|
|
1741
|
-
negative:
|
|
1711
|
+
negative: Fn,
|
|
1742
1712
|
"negative-secondary": "_negative-secondary_zt7xg_53",
|
|
1743
|
-
warning:
|
|
1713
|
+
warning: Bn,
|
|
1744
1714
|
"warning-secondary": "_warning-secondary_zt7xg_63",
|
|
1745
|
-
special:
|
|
1715
|
+
special: zn,
|
|
1746
1716
|
"special-secondary": "_special-secondary_zt7xg_73",
|
|
1747
|
-
contrast:
|
|
1717
|
+
contrast: Wn,
|
|
1748
1718
|
"contrast-secondary": "_contrast-secondary_zt7xg_83"
|
|
1749
|
-
},
|
|
1719
|
+
}, Hn = {
|
|
1750
1720
|
1: "h1",
|
|
1751
1721
|
2: "h2",
|
|
1752
1722
|
3: "h3",
|
|
1753
1723
|
4: "h4",
|
|
1754
1724
|
5: "h5"
|
|
1755
|
-
},
|
|
1756
|
-
const
|
|
1725
|
+
}, kt = (e) => {
|
|
1726
|
+
const a = It.forwardRef(
|
|
1757
1727
|
({
|
|
1758
|
-
size:
|
|
1759
|
-
children:
|
|
1728
|
+
size: r = 3,
|
|
1729
|
+
children: n,
|
|
1760
1730
|
className: i,
|
|
1761
|
-
"data-testid":
|
|
1731
|
+
"data-testid": s,
|
|
1762
1732
|
as: c,
|
|
1763
|
-
fontWeight:
|
|
1733
|
+
fontWeight: u = "semibold",
|
|
1764
1734
|
disabled: d = !1,
|
|
1765
|
-
typographyStyle:
|
|
1766
|
-
...
|
|
1767
|
-
},
|
|
1768
|
-
const
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1735
|
+
typographyStyle: p = "primary",
|
|
1736
|
+
...f
|
|
1737
|
+
}, y) => {
|
|
1738
|
+
const m = c || Hn[r], h = B(
|
|
1739
|
+
$e.typography,
|
|
1740
|
+
Me[`typography-${e}-${r}-${u}`],
|
|
1741
|
+
$e[p],
|
|
1772
1742
|
{
|
|
1773
|
-
[
|
|
1743
|
+
[$e.disabled]: d
|
|
1774
1744
|
},
|
|
1775
1745
|
i
|
|
1776
1746
|
);
|
|
1777
|
-
return
|
|
1747
|
+
return n ? /* @__PURE__ */ o.jsx(m, { ref: y, className: h, "data-testid": s, ...f, children: n }) : null;
|
|
1778
1748
|
}
|
|
1779
1749
|
);
|
|
1780
|
-
return
|
|
1781
|
-
},
|
|
1782
|
-
const
|
|
1750
|
+
return a.displayName = `Typography.${e === "title" ? "Title" : "Subtitle"}`, a;
|
|
1751
|
+
}, jt = (e) => {
|
|
1752
|
+
const a = It.forwardRef(
|
|
1783
1753
|
({
|
|
1784
|
-
size:
|
|
1785
|
-
children:
|
|
1754
|
+
size: r = 3,
|
|
1755
|
+
children: n,
|
|
1786
1756
|
className: i,
|
|
1787
|
-
"data-testid":
|
|
1757
|
+
"data-testid": s,
|
|
1788
1758
|
as: c = "p",
|
|
1789
|
-
fontWeight:
|
|
1759
|
+
fontWeight: u = "regular",
|
|
1790
1760
|
disabled: d = !1,
|
|
1791
|
-
typographyStyle:
|
|
1792
|
-
...
|
|
1793
|
-
},
|
|
1794
|
-
const
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1761
|
+
typographyStyle: p = "primary",
|
|
1762
|
+
...f
|
|
1763
|
+
}, y) => {
|
|
1764
|
+
const m = c, h = B(
|
|
1765
|
+
$e.typography,
|
|
1766
|
+
Me[`typography-${e}-${r}-${u}`],
|
|
1767
|
+
$e[p],
|
|
1798
1768
|
{
|
|
1799
|
-
[
|
|
1769
|
+
[$e.disabled]: d
|
|
1800
1770
|
},
|
|
1801
1771
|
i
|
|
1802
1772
|
);
|
|
1803
|
-
return
|
|
1804
|
-
|
|
1773
|
+
return n ? /* @__PURE__ */ o.jsx(
|
|
1774
|
+
m,
|
|
1805
1775
|
{
|
|
1806
|
-
ref:
|
|
1807
|
-
className:
|
|
1808
|
-
"data-testid":
|
|
1809
|
-
...
|
|
1810
|
-
children:
|
|
1776
|
+
ref: y,
|
|
1777
|
+
className: h,
|
|
1778
|
+
"data-testid": s,
|
|
1779
|
+
...f,
|
|
1780
|
+
children: n
|
|
1811
1781
|
}
|
|
1812
1782
|
) : null;
|
|
1813
1783
|
}
|
|
1814
1784
|
);
|
|
1815
|
-
return
|
|
1816
|
-
},
|
|
1817
|
-
Title:
|
|
1818
|
-
Subtitle:
|
|
1819
|
-
Label:
|
|
1820
|
-
Paragraph:
|
|
1821
|
-
},
|
|
1822
|
-
inputBase:
|
|
1823
|
-
wrapper:
|
|
1824
|
-
"textarea-wrapper": "_textarea-
|
|
1825
|
-
gripHandle:
|
|
1826
|
-
error:
|
|
1827
|
-
tabFocused:
|
|
1828
|
-
disabled:
|
|
1829
|
-
loading:
|
|
1830
|
-
label:
|
|
1831
|
-
small:
|
|
1832
|
-
large:
|
|
1833
|
-
leftSection:
|
|
1834
|
-
rightSection:
|
|
1835
|
-
helper:
|
|
1836
|
-
floatingLabel:
|
|
1837
|
-
focused:
|
|
1838
|
-
filled:
|
|
1839
|
-
medium:
|
|
1840
|
-
characterLimit:
|
|
1841
|
-
input:
|
|
1842
|
-
textarea:
|
|
1843
|
-
"size-small": "_size-
|
|
1844
|
-
"size-medium": "_size-
|
|
1845
|
-
"size-large": "_size-
|
|
1846
|
-
"with-floating-label": "_with-floating-
|
|
1847
|
-
truncate:
|
|
1848
|
-
hint:
|
|
1849
|
-
"has-hint": "_has-
|
|
1850
|
-
"has-suffix": "_has-
|
|
1851
|
-
"has-limit": "_has-
|
|
1852
|
-
},
|
|
1853
|
-
width:
|
|
1854
|
-
height:
|
|
1855
|
-
className:
|
|
1856
|
-
color:
|
|
1785
|
+
return a.displayName = `Typography.${e.charAt(0).toUpperCase() + e.slice(1)}`, a;
|
|
1786
|
+
}, Co = {
|
|
1787
|
+
Title: kt("title"),
|
|
1788
|
+
Subtitle: kt("subtitle"),
|
|
1789
|
+
Label: jt("label"),
|
|
1790
|
+
Paragraph: jt("paragraph")
|
|
1791
|
+
}, Gn = "_inputBase_1q54n_82", Vn = "_wrapper_1q54n_92", Zn = "_gripHandle_1q54n_172", Yn = "_error_1q54n_238", Kn = "_tabFocused_1q54n_245", Jn = "_disabled_1q54n_270", Xn = "_loading_1q54n_277", Qn = "_label_1q54n_287", es = "_small_1q54n_301", ts = "_large_1q54n_308", rs = "_leftSection_1q54n_315", as = "_rightSection_1q54n_327", ns = "_helper_1q54n_365", ss = "_floatingLabel_1q54n_393", os = "_focused_1q54n_461", is = "_filled_1q54n_462", ls = "_medium_1q54n_503", cs = "_characterLimit_1q54n_545", ds = "_input_1q54n_82", us = "_textarea_1q54n_110", _s = "_truncate_1q54n_678", ps = "_hint_1q54n_765", j = {
|
|
1792
|
+
inputBase: Gn,
|
|
1793
|
+
wrapper: Vn,
|
|
1794
|
+
"textarea-wrapper": "_textarea-wrapper_1q54n_110",
|
|
1795
|
+
gripHandle: Zn,
|
|
1796
|
+
error: Yn,
|
|
1797
|
+
tabFocused: Kn,
|
|
1798
|
+
disabled: Jn,
|
|
1799
|
+
loading: Xn,
|
|
1800
|
+
label: Qn,
|
|
1801
|
+
small: es,
|
|
1802
|
+
large: ts,
|
|
1803
|
+
leftSection: rs,
|
|
1804
|
+
rightSection: as,
|
|
1805
|
+
helper: ns,
|
|
1806
|
+
floatingLabel: ss,
|
|
1807
|
+
focused: os,
|
|
1808
|
+
filled: is,
|
|
1809
|
+
medium: ls,
|
|
1810
|
+
characterLimit: cs,
|
|
1811
|
+
input: ds,
|
|
1812
|
+
textarea: us,
|
|
1813
|
+
"size-small": "_size-small_1q54n_627",
|
|
1814
|
+
"size-medium": "_size-medium_1q54n_633",
|
|
1815
|
+
"size-large": "_size-large_1q54n_639",
|
|
1816
|
+
"with-floating-label": "_with-floating-label_1q54n_646",
|
|
1817
|
+
truncate: _s,
|
|
1818
|
+
hint: ps,
|
|
1819
|
+
"has-hint": "_has-hint_1q54n_786",
|
|
1820
|
+
"has-suffix": "_has-suffix_1q54n_792",
|
|
1821
|
+
"has-limit": "_has-limit_1q54n_798"
|
|
1822
|
+
}, fs = ({
|
|
1823
|
+
width: e = 8,
|
|
1824
|
+
height: a = 8,
|
|
1825
|
+
className: r,
|
|
1826
|
+
color: n = "#AABBCA"
|
|
1857
1827
|
}) => /* @__PURE__ */ o.jsx(
|
|
1858
1828
|
"svg",
|
|
1859
1829
|
{
|
|
1860
|
-
width:
|
|
1861
|
-
height:
|
|
1830
|
+
width: e,
|
|
1831
|
+
height: a,
|
|
1862
1832
|
viewBox: "0 0 8 8",
|
|
1863
1833
|
fill: "none",
|
|
1864
1834
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1865
|
-
className:
|
|
1835
|
+
className: r,
|
|
1866
1836
|
children: /* @__PURE__ */ o.jsx(
|
|
1867
1837
|
"path",
|
|
1868
1838
|
{
|
|
1869
1839
|
fillRule: "evenodd",
|
|
1870
1840
|
clipRule: "evenodd",
|
|
1871
1841
|
d: "M6.10178 0.236172C6.41679 -0.0787239 6.93824 -0.0787239 7.25325 0.236172C7.56826 0.551067 7.56826 1.07227 7.25325 1.38717L1.38772 7.25074C1.22479 7.41362 1.01837 7.48963 0.811988 7.48963C0.605604 7.48963 0.399189 7.41362 0.236255 7.25074C-0.0787516 6.93584 -0.0787516 6.41464 0.236255 6.09974L6.10178 0.236172ZM6.61276 4.19954C6.92777 3.88464 7.44895 3.88464 7.76396 4.19954C8.07897 4.52529 8.07897 5.03564 7.76396 5.35053L5.35256 7.76111C5.18963 7.92399 4.98321 8 4.77683 8C4.57045 8 4.36403 7.92399 4.2011 7.76111C3.88609 7.44622 3.88609 6.92501 4.2011 6.61012L6.61276 4.19954Z",
|
|
1872
|
-
fill:
|
|
1842
|
+
fill: n
|
|
1873
1843
|
}
|
|
1874
1844
|
)
|
|
1875
1845
|
}
|
|
1876
|
-
),
|
|
1877
|
-
className:
|
|
1878
|
-
style:
|
|
1879
|
-
size:
|
|
1880
|
-
color:
|
|
1846
|
+
), qt = ({
|
|
1847
|
+
className: e = "",
|
|
1848
|
+
style: a,
|
|
1849
|
+
size: r = "md",
|
|
1850
|
+
color: n = "currentColor",
|
|
1881
1851
|
onClick: i,
|
|
1882
|
-
...
|
|
1852
|
+
...s
|
|
1883
1853
|
}) => {
|
|
1884
|
-
const
|
|
1854
|
+
const u = {
|
|
1885
1855
|
display: "inline-block",
|
|
1886
|
-
color:
|
|
1856
|
+
color: n,
|
|
1887
1857
|
...{
|
|
1888
1858
|
xxxs: { width: "8px", height: "8px" },
|
|
1889
1859
|
xxs: { width: "12px", height: "12px" },
|
|
@@ -1891,19 +1861,19 @@ const yr = 3, mr = (t) => {
|
|
|
1891
1861
|
sm: { width: "24px", height: "24px" },
|
|
1892
1862
|
md: { width: "32px", height: "32px" },
|
|
1893
1863
|
lg: { width: "40px", height: "40px" }
|
|
1894
|
-
}[
|
|
1895
|
-
...
|
|
1864
|
+
}[r],
|
|
1865
|
+
...a
|
|
1896
1866
|
};
|
|
1897
1867
|
return /* @__PURE__ */ o.jsx(
|
|
1898
1868
|
"svg",
|
|
1899
1869
|
{
|
|
1900
|
-
className:
|
|
1901
|
-
style:
|
|
1870
|
+
className: e,
|
|
1871
|
+
style: u,
|
|
1902
1872
|
viewBox: "0 0 16 16",
|
|
1903
1873
|
fill: "none",
|
|
1904
1874
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1905
1875
|
onClick: i,
|
|
1906
|
-
...
|
|
1876
|
+
...s,
|
|
1907
1877
|
children: /* @__PURE__ */ o.jsx(
|
|
1908
1878
|
"path",
|
|
1909
1879
|
{
|
|
@@ -1916,507 +1886,507 @@ const yr = 3, mr = (t) => {
|
|
|
1916
1886
|
)
|
|
1917
1887
|
}
|
|
1918
1888
|
);
|
|
1919
|
-
},
|
|
1920
|
-
const
|
|
1921
|
-
return
|
|
1922
|
-
const i =
|
|
1923
|
-
i && i.value !==
|
|
1924
|
-
}, [
|
|
1925
|
-
textareaRef:
|
|
1926
|
-
inputRef:
|
|
1927
|
-
currentRef:
|
|
1889
|
+
}, gs = (e, a) => {
|
|
1890
|
+
const r = We(null), n = We(null);
|
|
1891
|
+
return xe(() => {
|
|
1892
|
+
const i = a === "textarea" ? r.current : n.current;
|
|
1893
|
+
i && i.value !== e && (i.value = e || "");
|
|
1894
|
+
}, [e, a]), {
|
|
1895
|
+
textareaRef: r,
|
|
1896
|
+
inputRef: n,
|
|
1897
|
+
currentRef: a === "textarea" ? r : n
|
|
1928
1898
|
};
|
|
1929
|
-
},
|
|
1930
|
-
const
|
|
1931
|
-
if (!
|
|
1932
|
-
const i =
|
|
1933
|
-
if (
|
|
1934
|
-
const
|
|
1935
|
-
|
|
1936
|
-
const c =
|
|
1899
|
+
}, hs = (e, a, r) => {
|
|
1900
|
+
const n = () => {
|
|
1901
|
+
if (!r.current || a !== "hug") return;
|
|
1902
|
+
const i = r.current.scrollTop;
|
|
1903
|
+
if (r.current.style.setProperty("height", "auto", "important"), !e) return;
|
|
1904
|
+
const s = r.current.scrollHeight + "px";
|
|
1905
|
+
r.current.style.setProperty("height", s, "important"), r.current.scrollTop = i;
|
|
1906
|
+
const c = r.current.closest(`.${j.wrapper}`);
|
|
1937
1907
|
c && (c.setAttribute("data-resize", "hug"), c.setAttribute("data-show-grip", "false"));
|
|
1938
1908
|
};
|
|
1939
|
-
return
|
|
1940
|
-
|
|
1941
|
-
}, []), { resizeTextArea:
|
|
1942
|
-
},
|
|
1943
|
-
(
|
|
1944
|
-
if (!
|
|
1945
|
-
|
|
1946
|
-
const c =
|
|
1909
|
+
return xe(n, [e, a]), xe(() => {
|
|
1910
|
+
a === "hug" && r.current && n();
|
|
1911
|
+
}, []), { resizeTextArea: n };
|
|
1912
|
+
}, ys = (e, a, r, n) => ({ handleGripMouseDown: ve(
|
|
1913
|
+
(s) => {
|
|
1914
|
+
if (!e || a || r || !(n === "fixed" || !n)) return;
|
|
1915
|
+
s.preventDefault(), s.stopPropagation();
|
|
1916
|
+
const c = s.currentTarget.closest(`.${j.wrapper}`);
|
|
1947
1917
|
if (!c) return;
|
|
1948
|
-
const
|
|
1949
|
-
const
|
|
1918
|
+
const u = s.clientY, d = c.clientHeight, p = (y) => {
|
|
1919
|
+
const m = y.clientY - u, h = Math.min(100, d), v = Math.max(h, d + m);
|
|
1950
1920
|
c.style.height = `${v}px`;
|
|
1951
|
-
},
|
|
1952
|
-
document.removeEventListener("mousemove",
|
|
1921
|
+
}, f = () => {
|
|
1922
|
+
document.removeEventListener("mousemove", p), document.removeEventListener("mouseup", f);
|
|
1953
1923
|
};
|
|
1954
|
-
document.addEventListener("mousemove",
|
|
1924
|
+
document.addEventListener("mousemove", p), document.addEventListener("mouseup", f);
|
|
1955
1925
|
},
|
|
1956
|
-
[
|
|
1957
|
-
) }),
|
|
1926
|
+
[e, a, r, n]
|
|
1927
|
+
) }), $t = 30, ms = J(
|
|
1958
1928
|
({
|
|
1959
|
-
component:
|
|
1960
|
-
size:
|
|
1961
|
-
value:
|
|
1962
|
-
placeholder:
|
|
1929
|
+
component: e = "input",
|
|
1930
|
+
size: a = "medium",
|
|
1931
|
+
value: r = "",
|
|
1932
|
+
placeholder: n,
|
|
1963
1933
|
disabled: i = !1,
|
|
1964
|
-
loading:
|
|
1934
|
+
loading: s = !1,
|
|
1965
1935
|
onFocus: c,
|
|
1966
|
-
onBlur:
|
|
1936
|
+
onBlur: u,
|
|
1967
1937
|
onChange: d,
|
|
1968
|
-
onKeyDown:
|
|
1969
|
-
onKeyUp:
|
|
1970
|
-
maxLength:
|
|
1971
|
-
className:
|
|
1972
|
-
style:
|
|
1938
|
+
onKeyDown: p,
|
|
1939
|
+
onKeyUp: f,
|
|
1940
|
+
maxLength: y,
|
|
1941
|
+
className: m,
|
|
1942
|
+
style: h,
|
|
1973
1943
|
truncate: v = !1,
|
|
1974
|
-
shouldShowFloatingLabelClass:
|
|
1944
|
+
shouldShowFloatingLabelClass: S = !1,
|
|
1975
1945
|
"aria-invalid": w,
|
|
1976
|
-
"aria-errormessage":
|
|
1946
|
+
"aria-errormessage": x,
|
|
1977
1947
|
id: g,
|
|
1978
|
-
resize:
|
|
1979
|
-
...
|
|
1980
|
-
},
|
|
1981
|
-
const { textareaRef: $, inputRef:
|
|
1982
|
-
if (
|
|
1948
|
+
resize: M,
|
|
1949
|
+
...q
|
|
1950
|
+
}, A) => {
|
|
1951
|
+
const { textareaRef: $, inputRef: R, currentRef: N } = gs(r, e);
|
|
1952
|
+
if (hs(r, M, $), pr(A, () => N.current, [N]), e === "textarea")
|
|
1983
1953
|
return /* @__PURE__ */ o.jsx(
|
|
1984
1954
|
"textarea",
|
|
1985
1955
|
{
|
|
1986
1956
|
ref: $,
|
|
1987
1957
|
id: g,
|
|
1988
|
-
value:
|
|
1989
|
-
placeholder:
|
|
1990
|
-
disabled: i ||
|
|
1958
|
+
value: r,
|
|
1959
|
+
placeholder: n,
|
|
1960
|
+
disabled: i || s,
|
|
1991
1961
|
onFocus: c,
|
|
1992
|
-
onBlur:
|
|
1962
|
+
onBlur: u,
|
|
1993
1963
|
onChange: d,
|
|
1994
|
-
onKeyDown:
|
|
1995
|
-
onKeyUp:
|
|
1996
|
-
maxLength:
|
|
1964
|
+
onKeyDown: p,
|
|
1965
|
+
onKeyUp: f,
|
|
1966
|
+
maxLength: y,
|
|
1997
1967
|
className: B(
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
1968
|
+
j.textarea,
|
|
1969
|
+
j[`size-${a}`],
|
|
1970
|
+
S && j["with-floating-label"],
|
|
1971
|
+
m
|
|
2002
1972
|
),
|
|
2003
|
-
style:
|
|
1973
|
+
style: h,
|
|
2004
1974
|
"aria-invalid": w,
|
|
2005
|
-
"aria-errormessage":
|
|
2006
|
-
"aria-describedby":
|
|
1975
|
+
"aria-errormessage": x,
|
|
1976
|
+
"aria-describedby": x ? `${g}-error` : void 0,
|
|
2007
1977
|
tabIndex: 0,
|
|
2008
|
-
"data-resize":
|
|
2009
|
-
...
|
|
1978
|
+
"data-resize": M,
|
|
1979
|
+
...q
|
|
2010
1980
|
}
|
|
2011
1981
|
);
|
|
2012
|
-
if (
|
|
1982
|
+
if (e === "input")
|
|
2013
1983
|
return /* @__PURE__ */ o.jsx(
|
|
2014
1984
|
"input",
|
|
2015
1985
|
{
|
|
2016
|
-
ref:
|
|
1986
|
+
ref: R,
|
|
2017
1987
|
id: g,
|
|
2018
|
-
value:
|
|
2019
|
-
placeholder:
|
|
2020
|
-
disabled: i ||
|
|
1988
|
+
value: r,
|
|
1989
|
+
placeholder: n,
|
|
1990
|
+
disabled: i || s,
|
|
2021
1991
|
onFocus: c,
|
|
2022
|
-
onBlur:
|
|
1992
|
+
onBlur: u,
|
|
2023
1993
|
onChange: d,
|
|
2024
|
-
onKeyDown:
|
|
2025
|
-
onKeyUp:
|
|
2026
|
-
maxLength:
|
|
1994
|
+
onKeyDown: p,
|
|
1995
|
+
onKeyUp: f,
|
|
1996
|
+
maxLength: y,
|
|
2027
1997
|
className: B(
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
v &&
|
|
2032
|
-
|
|
1998
|
+
j.input,
|
|
1999
|
+
j[`size-${a}`],
|
|
2000
|
+
S && j["with-floating-label"],
|
|
2001
|
+
v && j.truncate,
|
|
2002
|
+
m
|
|
2033
2003
|
),
|
|
2034
|
-
style:
|
|
2004
|
+
style: h,
|
|
2035
2005
|
"aria-invalid": w,
|
|
2036
|
-
"aria-errormessage":
|
|
2037
|
-
"aria-describedby":
|
|
2006
|
+
"aria-errormessage": x,
|
|
2007
|
+
"aria-describedby": x ? `${g}-error` : void 0,
|
|
2038
2008
|
tabIndex: 0,
|
|
2039
|
-
...
|
|
2009
|
+
...q
|
|
2040
2010
|
}
|
|
2041
2011
|
);
|
|
2042
|
-
if (
|
|
2012
|
+
if (e !== "input" && e !== "textarea")
|
|
2043
2013
|
return console.error(
|
|
2044
|
-
`[Input] Недопустимое значение prop 'component': "${String(
|
|
2014
|
+
`[Input] Недопустимое значение prop 'component': "${String(e)}". Допустимые значения: 'input', 'textarea'`
|
|
2045
2015
|
), null;
|
|
2046
2016
|
}
|
|
2047
|
-
),
|
|
2017
|
+
), Ut = J(
|
|
2048
2018
|
({
|
|
2049
|
-
children:
|
|
2050
|
-
size:
|
|
2051
|
-
error:
|
|
2052
|
-
disabled:
|
|
2019
|
+
children: e,
|
|
2020
|
+
size: a = "medium",
|
|
2021
|
+
error: r = !1,
|
|
2022
|
+
disabled: n = !1,
|
|
2053
2023
|
loading: i = !1,
|
|
2054
|
-
className:
|
|
2024
|
+
className: s,
|
|
2055
2025
|
wrapperProps: c,
|
|
2056
|
-
wrapperStyles:
|
|
2026
|
+
wrapperStyles: u,
|
|
2057
2027
|
floatingLabelStyles: d,
|
|
2058
|
-
prefixStyles:
|
|
2059
|
-
suffixStyles:
|
|
2060
|
-
labelProps:
|
|
2061
|
-
helperProps:
|
|
2062
|
-
showLimit:
|
|
2028
|
+
prefixStyles: p,
|
|
2029
|
+
suffixStyles: f,
|
|
2030
|
+
labelProps: y,
|
|
2031
|
+
helperProps: m,
|
|
2032
|
+
showLimit: h = !1,
|
|
2063
2033
|
maxLength: v,
|
|
2064
|
-
hint:
|
|
2034
|
+
hint: S,
|
|
2065
2035
|
showHint: w = !1,
|
|
2066
|
-
showHintOnEmpty:
|
|
2036
|
+
showHintOnEmpty: x = !1,
|
|
2067
2037
|
prefix: g,
|
|
2068
|
-
suffix:
|
|
2069
|
-
onSuffixClick:
|
|
2070
|
-
placeholder:
|
|
2038
|
+
suffix: M,
|
|
2039
|
+
onSuffixClick: q,
|
|
2040
|
+
placeholder: A,
|
|
2071
2041
|
showLabel: $ = !0,
|
|
2072
|
-
labelClassName:
|
|
2042
|
+
labelClassName: R,
|
|
2073
2043
|
hasValue: N = !1,
|
|
2074
|
-
helper:
|
|
2075
|
-
id:
|
|
2076
|
-
value:
|
|
2077
|
-
resize:
|
|
2078
|
-
showGrip:
|
|
2079
|
-
...
|
|
2080
|
-
},
|
|
2081
|
-
const
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
i &&
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
),
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
N &&
|
|
2094
|
-
|
|
2095
|
-
), { handleGripMouseDown:
|
|
2096
|
-
return /* @__PURE__ */ o.jsxs("div", { ref:
|
|
2044
|
+
helper: z,
|
|
2045
|
+
id: P,
|
|
2046
|
+
value: F = "",
|
|
2047
|
+
resize: I,
|
|
2048
|
+
showGrip: b = !1,
|
|
2049
|
+
...L
|
|
2050
|
+
}, D) => {
|
|
2051
|
+
const U = At(), H = P || U, X = w && S && (N || x), ae = S && S.length > $t ? S.substring(0, $t) + "..." : S, Z = B(
|
|
2052
|
+
j.wrapper,
|
|
2053
|
+
r && j.error,
|
|
2054
|
+
n && j.disabled,
|
|
2055
|
+
i && j.loading,
|
|
2056
|
+
X && j["has-hint"],
|
|
2057
|
+
M && j["has-suffix"],
|
|
2058
|
+
h && j["has-limit"],
|
|
2059
|
+
s
|
|
2060
|
+
), se = B(
|
|
2061
|
+
j.floatingLabel,
|
|
2062
|
+
j[a],
|
|
2063
|
+
N && j.filled,
|
|
2064
|
+
R
|
|
2065
|
+
), { handleGripMouseDown: Q } = ys(b, n, i, I);
|
|
2066
|
+
return /* @__PURE__ */ o.jsxs("div", { ref: D, className: j.inputBase, "data-testid": "input-base-wrapper", ...L, children: [
|
|
2097
2067
|
/* @__PURE__ */ o.jsxs(
|
|
2098
2068
|
"div",
|
|
2099
2069
|
{
|
|
2100
|
-
className:
|
|
2101
|
-
style:
|
|
2102
|
-
"data-resize":
|
|
2103
|
-
"data-show-grip":
|
|
2070
|
+
className: Z,
|
|
2071
|
+
style: u,
|
|
2072
|
+
"data-resize": I,
|
|
2073
|
+
"data-show-grip": b ? "true" : "false",
|
|
2104
2074
|
...c,
|
|
2105
2075
|
children: [
|
|
2106
|
-
g && /* @__PURE__ */ o.jsx("label", { htmlFor: H, className:
|
|
2107
|
-
|
|
2076
|
+
g && /* @__PURE__ */ o.jsx("label", { htmlFor: H, className: j.leftSection, style: p, children: g }),
|
|
2077
|
+
M && /* @__PURE__ */ o.jsx(
|
|
2108
2078
|
"label",
|
|
2109
2079
|
{
|
|
2110
2080
|
htmlFor: H,
|
|
2111
|
-
className:
|
|
2112
|
-
style:
|
|
2113
|
-
onClick:
|
|
2114
|
-
children:
|
|
2081
|
+
className: j.rightSection,
|
|
2082
|
+
style: f,
|
|
2083
|
+
onClick: q,
|
|
2084
|
+
children: M
|
|
2115
2085
|
}
|
|
2116
2086
|
),
|
|
2117
|
-
|
|
2087
|
+
A && $ && /* @__PURE__ */ o.jsx(
|
|
2118
2088
|
"label",
|
|
2119
2089
|
{
|
|
2120
2090
|
htmlFor: H,
|
|
2121
|
-
className:
|
|
2091
|
+
className: se,
|
|
2122
2092
|
style: d,
|
|
2123
|
-
...
|
|
2124
|
-
children:
|
|
2093
|
+
...y,
|
|
2094
|
+
children: A
|
|
2125
2095
|
}
|
|
2126
2096
|
),
|
|
2127
|
-
|
|
2128
|
-
|
|
2097
|
+
e,
|
|
2098
|
+
b && !h && (I === "fixed" || !I) && /* @__PURE__ */ o.jsx(
|
|
2129
2099
|
"div",
|
|
2130
2100
|
{
|
|
2131
|
-
className:
|
|
2132
|
-
onMouseDown:
|
|
2101
|
+
className: j.gripHandle,
|
|
2102
|
+
onMouseDown: Q,
|
|
2133
2103
|
role: "button",
|
|
2134
2104
|
tabIndex: -1,
|
|
2135
2105
|
"aria-label": "Изменить размер",
|
|
2136
|
-
children: /* @__PURE__ */ o.jsx(
|
|
2106
|
+
children: /* @__PURE__ */ o.jsx(fs, {})
|
|
2137
2107
|
}
|
|
2138
2108
|
),
|
|
2139
|
-
|
|
2109
|
+
X && /* @__PURE__ */ o.jsx(
|
|
2140
2110
|
"div",
|
|
2141
2111
|
{
|
|
2142
|
-
className: B(
|
|
2143
|
-
"data-disabled":
|
|
2112
|
+
className: B(j.hint, N && j.truncate),
|
|
2113
|
+
"data-disabled": n || i,
|
|
2144
2114
|
children: ae
|
|
2145
2115
|
}
|
|
2146
2116
|
),
|
|
2147
|
-
|
|
2148
|
-
(
|
|
2117
|
+
h && v && /* @__PURE__ */ o.jsxs("div", { className: j.characterLimit, children: [
|
|
2118
|
+
(F || "").length,
|
|
2149
2119
|
" из ",
|
|
2150
2120
|
v
|
|
2151
2121
|
] })
|
|
2152
2122
|
]
|
|
2153
2123
|
}
|
|
2154
2124
|
),
|
|
2155
|
-
|
|
2125
|
+
z && /* @__PURE__ */ o.jsx(
|
|
2156
2126
|
"div",
|
|
2157
2127
|
{
|
|
2158
2128
|
className: B(
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
(
|
|
2129
|
+
j.helper,
|
|
2130
|
+
r && j.error,
|
|
2131
|
+
(n || i) && j.disabled
|
|
2162
2132
|
),
|
|
2163
|
-
...
|
|
2164
|
-
id:
|
|
2165
|
-
children:
|
|
2133
|
+
...m,
|
|
2134
|
+
id: r ? `${H}-error` : void 0,
|
|
2135
|
+
children: z
|
|
2166
2136
|
}
|
|
2167
2137
|
)
|
|
2168
2138
|
] });
|
|
2169
2139
|
}
|
|
2170
2140
|
);
|
|
2171
|
-
|
|
2172
|
-
const
|
|
2173
|
-
Wrapper:
|
|
2174
|
-
}),
|
|
2141
|
+
Ut.displayName = "InputWrapperComponent";
|
|
2142
|
+
const Mt = Object.assign(ms, {
|
|
2143
|
+
Wrapper: Ut
|
|
2144
|
+
}), Pt = J(
|
|
2175
2145
|
({
|
|
2176
|
-
component:
|
|
2177
|
-
size:
|
|
2178
|
-
className:
|
|
2179
|
-
error:
|
|
2146
|
+
component: e = "input",
|
|
2147
|
+
size: a = "medium",
|
|
2148
|
+
className: r,
|
|
2149
|
+
error: n = !1,
|
|
2180
2150
|
disabled: i = !1,
|
|
2181
|
-
loading:
|
|
2151
|
+
loading: s = !1,
|
|
2182
2152
|
placeholder: c,
|
|
2183
|
-
showLabel:
|
|
2153
|
+
showLabel: u = !0,
|
|
2184
2154
|
labelClassName: d,
|
|
2185
|
-
helper:
|
|
2186
|
-
prefix:
|
|
2187
|
-
suffix:
|
|
2188
|
-
id:
|
|
2189
|
-
onFocus:
|
|
2155
|
+
helper: p,
|
|
2156
|
+
prefix: f,
|
|
2157
|
+
suffix: y,
|
|
2158
|
+
id: m,
|
|
2159
|
+
onFocus: h,
|
|
2190
2160
|
onBlur: v,
|
|
2191
|
-
onKeyDown:
|
|
2161
|
+
onKeyDown: S,
|
|
2192
2162
|
onSuffixClick: w,
|
|
2193
|
-
onChange:
|
|
2163
|
+
onChange: x,
|
|
2194
2164
|
value: g = "",
|
|
2195
|
-
wrapperProps:
|
|
2196
|
-
wrapperStyles:
|
|
2197
|
-
floatingLabelStyles:
|
|
2165
|
+
wrapperProps: M,
|
|
2166
|
+
wrapperStyles: q,
|
|
2167
|
+
floatingLabelStyles: A,
|
|
2198
2168
|
prefixStyles: $,
|
|
2199
|
-
suffixStyles:
|
|
2169
|
+
suffixStyles: R,
|
|
2200
2170
|
textareaStyles: N,
|
|
2201
|
-
labelProps:
|
|
2202
|
-
helperProps:
|
|
2203
|
-
showLimit:
|
|
2204
|
-
maxLength:
|
|
2205
|
-
inputProps:
|
|
2206
|
-
hint:
|
|
2207
|
-
showHint:
|
|
2208
|
-
showHintOnEmpty:
|
|
2171
|
+
labelProps: z,
|
|
2172
|
+
helperProps: P,
|
|
2173
|
+
showLimit: F = !1,
|
|
2174
|
+
maxLength: I,
|
|
2175
|
+
inputProps: b,
|
|
2176
|
+
hint: L,
|
|
2177
|
+
showHint: D = !1,
|
|
2178
|
+
showHintOnEmpty: U = !1,
|
|
2209
2179
|
truncate: H = !1,
|
|
2210
|
-
resize:
|
|
2180
|
+
resize: X,
|
|
2211
2181
|
showGrip: ae = !1,
|
|
2212
|
-
...
|
|
2213
|
-
},
|
|
2214
|
-
const
|
|
2215
|
-
(
|
|
2216
|
-
var
|
|
2217
|
-
i ||
|
|
2218
|
-
|
|
2219
|
-
|
|
2182
|
+
...Z
|
|
2183
|
+
}, se) => {
|
|
2184
|
+
const Q = At(), ge = m || Q, [Re, de] = De(g), Ce = g !== void 0 ? g : Re, we = (Ce || "").length > 0, ye = Ce || "", Se = u && (a === "large" || e === "textarea") && !f, He = ve(
|
|
2185
|
+
(Y) => {
|
|
2186
|
+
var K;
|
|
2187
|
+
i || s || (h == null || h(), (K = b == null ? void 0 : b.onFocus) == null || K.call(
|
|
2188
|
+
b,
|
|
2189
|
+
Y
|
|
2220
2190
|
));
|
|
2221
2191
|
},
|
|
2222
|
-
[
|
|
2223
|
-
),
|
|
2224
|
-
(
|
|
2225
|
-
var
|
|
2226
|
-
if (
|
|
2227
|
-
const
|
|
2228
|
-
|
|
2192
|
+
[h, b, i, s]
|
|
2193
|
+
), qe = ve(
|
|
2194
|
+
(Y) => {
|
|
2195
|
+
var K;
|
|
2196
|
+
if (Y.key === "Tab") {
|
|
2197
|
+
const le = Y.target.closest(`.${j.wrapper}`);
|
|
2198
|
+
le && le.classList.add(j.tabFocused);
|
|
2229
2199
|
}
|
|
2230
|
-
(
|
|
2231
|
-
|
|
2232
|
-
|
|
2200
|
+
(K = b == null ? void 0 : b.onKeyUp) == null || K.call(
|
|
2201
|
+
b,
|
|
2202
|
+
Y
|
|
2233
2203
|
);
|
|
2234
2204
|
},
|
|
2235
|
-
[
|
|
2236
|
-
),
|
|
2237
|
-
(
|
|
2238
|
-
var
|
|
2239
|
-
const
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
|
|
2205
|
+
[b]
|
|
2206
|
+
), Ge = ve(
|
|
2207
|
+
(Y) => {
|
|
2208
|
+
var le;
|
|
2209
|
+
const K = Y.target.closest(`.${j.wrapper}`);
|
|
2210
|
+
K && K.classList.remove(j.tabFocused), v == null || v(), (le = b == null ? void 0 : b.onBlur) == null || le.call(
|
|
2211
|
+
b,
|
|
2212
|
+
Y
|
|
2243
2213
|
);
|
|
2244
2214
|
},
|
|
2245
|
-
[v,
|
|
2246
|
-
),
|
|
2247
|
-
(
|
|
2248
|
-
var
|
|
2249
|
-
if (i ||
|
|
2250
|
-
const
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2215
|
+
[v, b]
|
|
2216
|
+
), Ve = ve(
|
|
2217
|
+
(Y) => {
|
|
2218
|
+
var le;
|
|
2219
|
+
if (i || s) return;
|
|
2220
|
+
const K = Y.target.value;
|
|
2221
|
+
de(K), x == null || x(K, Y), (le = b == null ? void 0 : b.onChange) == null || le.call(
|
|
2222
|
+
b,
|
|
2223
|
+
Y
|
|
2254
2224
|
);
|
|
2255
2225
|
},
|
|
2256
|
-
[
|
|
2226
|
+
[x, b, i, s]
|
|
2257
2227
|
);
|
|
2258
|
-
return
|
|
2259
|
-
|
|
2228
|
+
return xe(() => {
|
|
2229
|
+
de(g || "");
|
|
2260
2230
|
}, [g]), /* @__PURE__ */ o.jsx(
|
|
2261
|
-
|
|
2231
|
+
Mt.Wrapper,
|
|
2262
2232
|
{
|
|
2263
|
-
ref:
|
|
2264
|
-
size:
|
|
2265
|
-
error:
|
|
2266
|
-
disabled: i ||
|
|
2267
|
-
loading:
|
|
2268
|
-
className: B(
|
|
2269
|
-
wrapperProps:
|
|
2270
|
-
wrapperStyles:
|
|
2271
|
-
floatingLabelStyles:
|
|
2233
|
+
ref: se,
|
|
2234
|
+
size: a,
|
|
2235
|
+
error: n,
|
|
2236
|
+
disabled: i || s,
|
|
2237
|
+
loading: s,
|
|
2238
|
+
className: B(r, e === "textarea" && j["textarea-wrapper"]),
|
|
2239
|
+
wrapperProps: M,
|
|
2240
|
+
wrapperStyles: q,
|
|
2241
|
+
floatingLabelStyles: A,
|
|
2272
2242
|
prefixStyles: $,
|
|
2273
|
-
suffixStyles:
|
|
2274
|
-
labelProps:
|
|
2275
|
-
helperProps:
|
|
2276
|
-
showLimit:
|
|
2277
|
-
maxLength:
|
|
2278
|
-
hint:
|
|
2279
|
-
showHint:
|
|
2280
|
-
showHintOnEmpty:
|
|
2281
|
-
prefix:
|
|
2282
|
-
suffix:
|
|
2243
|
+
suffixStyles: R,
|
|
2244
|
+
labelProps: z,
|
|
2245
|
+
helperProps: P,
|
|
2246
|
+
showLimit: F,
|
|
2247
|
+
maxLength: I,
|
|
2248
|
+
hint: L,
|
|
2249
|
+
showHint: D,
|
|
2250
|
+
showHintOnEmpty: U,
|
|
2251
|
+
prefix: f,
|
|
2252
|
+
suffix: y,
|
|
2283
2253
|
onSuffixClick: w,
|
|
2284
2254
|
placeholder: c,
|
|
2285
|
-
showLabel:
|
|
2255
|
+
showLabel: u,
|
|
2286
2256
|
labelClassName: d,
|
|
2287
|
-
hasValue:
|
|
2288
|
-
helper:
|
|
2289
|
-
id:
|
|
2290
|
-
value:
|
|
2257
|
+
hasValue: we,
|
|
2258
|
+
helper: p,
|
|
2259
|
+
id: ge,
|
|
2260
|
+
value: ye,
|
|
2291
2261
|
showGrip: ae,
|
|
2292
|
-
resize:
|
|
2293
|
-
...
|
|
2262
|
+
resize: X,
|
|
2263
|
+
...Z,
|
|
2294
2264
|
children: /* @__PURE__ */ o.jsx(
|
|
2295
|
-
|
|
2265
|
+
Mt,
|
|
2296
2266
|
{
|
|
2297
|
-
component:
|
|
2298
|
-
size:
|
|
2299
|
-
value:
|
|
2267
|
+
component: e,
|
|
2268
|
+
size: a,
|
|
2269
|
+
value: ye,
|
|
2300
2270
|
placeholder: c,
|
|
2301
2271
|
disabled: i,
|
|
2302
|
-
loading:
|
|
2303
|
-
onFocus:
|
|
2304
|
-
onBlur:
|
|
2305
|
-
onChange:
|
|
2306
|
-
onKeyDown:
|
|
2307
|
-
onKeyUp:
|
|
2308
|
-
maxLength:
|
|
2272
|
+
loading: s,
|
|
2273
|
+
onFocus: He,
|
|
2274
|
+
onBlur: Ge,
|
|
2275
|
+
onChange: Ve,
|
|
2276
|
+
onKeyDown: S,
|
|
2277
|
+
onKeyUp: qe,
|
|
2278
|
+
maxLength: I,
|
|
2309
2279
|
truncate: H,
|
|
2310
|
-
"data-empty": !
|
|
2311
|
-
shouldShowFloatingLabelClass:
|
|
2312
|
-
style:
|
|
2313
|
-
"aria-invalid": !!
|
|
2314
|
-
"aria-errormessage":
|
|
2315
|
-
id:
|
|
2316
|
-
resize:
|
|
2317
|
-
...
|
|
2280
|
+
"data-empty": !we,
|
|
2281
|
+
shouldShowFloatingLabelClass: Se,
|
|
2282
|
+
style: e === "textarea" ? N : void 0,
|
|
2283
|
+
"aria-invalid": !!n,
|
|
2284
|
+
"aria-errormessage": n ? `${ge}-error` : void 0,
|
|
2285
|
+
id: ge,
|
|
2286
|
+
resize: X,
|
|
2287
|
+
...b
|
|
2318
2288
|
}
|
|
2319
2289
|
)
|
|
2320
2290
|
}
|
|
2321
2291
|
);
|
|
2322
2292
|
}
|
|
2323
|
-
),
|
|
2293
|
+
), te = {
|
|
2324
2294
|
SMALL: "small",
|
|
2325
2295
|
MEDIUM: "medium",
|
|
2326
2296
|
LARGE: "large"
|
|
2327
|
-
},
|
|
2328
|
-
switch (
|
|
2329
|
-
case
|
|
2330
|
-
return
|
|
2331
|
-
case
|
|
2332
|
-
return
|
|
2333
|
-
case
|
|
2297
|
+
}, bs = (e, a, r, n) => {
|
|
2298
|
+
switch (e) {
|
|
2299
|
+
case te.LARGE:
|
|
2300
|
+
return a && r ? "8px 16px 8px 16px" : "16px 16px 16px 16px";
|
|
2301
|
+
case te.MEDIUM:
|
|
2302
|
+
return n ? "12px 12px 12px 12px" : "12px 12px 12px 16px";
|
|
2303
|
+
case te.SMALL:
|
|
2334
2304
|
return "10px 12px 10px 12px";
|
|
2335
2305
|
default:
|
|
2336
2306
|
return "12px 16px 12px 16px";
|
|
2337
2307
|
}
|
|
2338
|
-
},
|
|
2339
|
-
switch (
|
|
2340
|
-
case
|
|
2308
|
+
}, vs = (e) => {
|
|
2309
|
+
switch (e) {
|
|
2310
|
+
case te.LARGE:
|
|
2341
2311
|
return "56px";
|
|
2342
|
-
case
|
|
2312
|
+
case te.MEDIUM:
|
|
2343
2313
|
return "48px";
|
|
2344
|
-
case
|
|
2314
|
+
case te.SMALL:
|
|
2345
2315
|
return "40px";
|
|
2346
2316
|
default:
|
|
2347
2317
|
return "48px";
|
|
2348
2318
|
}
|
|
2349
|
-
},
|
|
2350
|
-
switch (
|
|
2351
|
-
case
|
|
2319
|
+
}, xs = (e) => {
|
|
2320
|
+
switch (e) {
|
|
2321
|
+
case te.SMALL:
|
|
2352
2322
|
return 8;
|
|
2353
2323
|
// 8px для small
|
|
2354
|
-
case
|
|
2355
|
-
case
|
|
2324
|
+
case te.MEDIUM:
|
|
2325
|
+
case te.LARGE:
|
|
2356
2326
|
return 12;
|
|
2357
2327
|
// 12px для medium и large
|
|
2358
2328
|
default:
|
|
2359
2329
|
return 12;
|
|
2360
2330
|
}
|
|
2361
|
-
},
|
|
2331
|
+
}, Cs = (e, a, r) => ({
|
|
2362
2332
|
wrapperStyles: {
|
|
2363
|
-
height:
|
|
2364
|
-
minHeight:
|
|
2365
|
-
maxHeight:
|
|
2333
|
+
height: e,
|
|
2334
|
+
minHeight: e,
|
|
2335
|
+
maxHeight: e,
|
|
2366
2336
|
boxSizing: "border-box",
|
|
2367
|
-
padding:
|
|
2337
|
+
padding: a
|
|
2368
2338
|
},
|
|
2369
2339
|
floatingLabelStyles: {
|
|
2370
2340
|
left: "16px",
|
|
2371
2341
|
transformOrigin: "left top"
|
|
2372
2342
|
},
|
|
2373
2343
|
prefixStyles: {
|
|
2374
|
-
paddingRight: `${
|
|
2344
|
+
paddingRight: `${r}px`
|
|
2375
2345
|
},
|
|
2376
2346
|
suffixStyles: {
|
|
2377
|
-
right: `${
|
|
2347
|
+
right: `${r}px`
|
|
2378
2348
|
}
|
|
2379
|
-
}),
|
|
2349
|
+
}), ws = (e, a, r) => ({
|
|
2380
2350
|
wrapperStyles: {
|
|
2381
|
-
minHeight:
|
|
2382
|
-
maxHeight:
|
|
2351
|
+
minHeight: e,
|
|
2352
|
+
maxHeight: e,
|
|
2383
2353
|
boxSizing: "border-box",
|
|
2384
|
-
padding:
|
|
2354
|
+
padding: a
|
|
2385
2355
|
},
|
|
2386
2356
|
floatingLabelStyles: {
|
|
2387
2357
|
left: "16px"
|
|
2388
2358
|
},
|
|
2389
2359
|
prefixStyles: {
|
|
2390
|
-
paddingRight: `${
|
|
2360
|
+
paddingRight: `${r}px`
|
|
2391
2361
|
},
|
|
2392
2362
|
suffixStyles: {
|
|
2393
|
-
right: `${
|
|
2363
|
+
right: `${r}px`
|
|
2394
2364
|
}
|
|
2395
|
-
}),
|
|
2365
|
+
}), Ss = (e, a, r) => ({
|
|
2396
2366
|
wrapperStyles: {
|
|
2397
|
-
minHeight:
|
|
2398
|
-
maxHeight:
|
|
2367
|
+
minHeight: e,
|
|
2368
|
+
maxHeight: e,
|
|
2399
2369
|
boxSizing: "border-box",
|
|
2400
|
-
padding:
|
|
2370
|
+
padding: a
|
|
2401
2371
|
},
|
|
2402
2372
|
floatingLabelStyles: {
|
|
2403
2373
|
left: "12px"
|
|
2404
2374
|
},
|
|
2405
2375
|
prefixStyles: {
|
|
2406
|
-
paddingRight: `${
|
|
2376
|
+
paddingRight: `${r}px`
|
|
2407
2377
|
},
|
|
2408
2378
|
suffixStyles: {
|
|
2409
|
-
right: `${
|
|
2379
|
+
right: `${r}px`
|
|
2410
2380
|
}
|
|
2411
|
-
}),
|
|
2412
|
-
const i =
|
|
2413
|
-
switch (
|
|
2414
|
-
case
|
|
2415
|
-
return
|
|
2416
|
-
case
|
|
2417
|
-
return
|
|
2418
|
-
case
|
|
2419
|
-
return
|
|
2381
|
+
}), Es = (e, a, r, n) => {
|
|
2382
|
+
const i = vs(e), s = bs(e, a, r, n), c = xs(e);
|
|
2383
|
+
switch (e) {
|
|
2384
|
+
case te.LARGE:
|
|
2385
|
+
return Cs(i, s, c);
|
|
2386
|
+
case te.MEDIUM:
|
|
2387
|
+
return ws(i, s, c);
|
|
2388
|
+
case te.SMALL:
|
|
2389
|
+
return Ss(i, s, c);
|
|
2420
2390
|
default:
|
|
2421
2391
|
return {
|
|
2422
2392
|
wrapperStyles: {},
|
|
@@ -2425,351 +2395,548 @@ const St = Object.assign(_n, {
|
|
|
2425
2395
|
suffixStyles: {}
|
|
2426
2396
|
};
|
|
2427
2397
|
}
|
|
2428
|
-
},
|
|
2398
|
+
}, wo = J(
|
|
2429
2399
|
({
|
|
2430
|
-
value:
|
|
2431
|
-
onChange:
|
|
2432
|
-
type:
|
|
2433
|
-
placeholder:
|
|
2400
|
+
value: e = "",
|
|
2401
|
+
onChange: a,
|
|
2402
|
+
type: r = "text",
|
|
2403
|
+
placeholder: n,
|
|
2434
2404
|
maxLength: i,
|
|
2435
|
-
minLength:
|
|
2405
|
+
minLength: s,
|
|
2436
2406
|
autoComplete: c,
|
|
2437
|
-
autoFocus:
|
|
2438
|
-
size: d =
|
|
2439
|
-
inputProps:
|
|
2440
|
-
error:
|
|
2441
|
-
disabled:
|
|
2442
|
-
loading:
|
|
2443
|
-
helper:
|
|
2407
|
+
autoFocus: u,
|
|
2408
|
+
size: d = te.MEDIUM,
|
|
2409
|
+
inputProps: p,
|
|
2410
|
+
error: f,
|
|
2411
|
+
disabled: y,
|
|
2412
|
+
loading: m,
|
|
2413
|
+
helper: h,
|
|
2444
2414
|
prefix: v,
|
|
2445
|
-
suffix:
|
|
2415
|
+
suffix: S,
|
|
2446
2416
|
clearable: w = !1,
|
|
2447
|
-
id:
|
|
2417
|
+
id: x,
|
|
2448
2418
|
showLabel: g = !0,
|
|
2449
|
-
onFocus:
|
|
2450
|
-
onBlur:
|
|
2451
|
-
onSuffixClick:
|
|
2419
|
+
onFocus: M,
|
|
2420
|
+
onBlur: q,
|
|
2421
|
+
onSuffixClick: A,
|
|
2452
2422
|
onClear: $,
|
|
2453
|
-
className:
|
|
2423
|
+
className: R,
|
|
2454
2424
|
truncate: N = !0,
|
|
2455
|
-
hint:
|
|
2456
|
-
showHint:
|
|
2457
|
-
showHintOnEmpty:
|
|
2458
|
-
wrapperProps:
|
|
2459
|
-
labelProps:
|
|
2460
|
-
helperProps:
|
|
2461
|
-
...
|
|
2462
|
-
},
|
|
2463
|
-
const H = (
|
|
2464
|
-
|
|
2465
|
-
},
|
|
2466
|
-
|
|
2425
|
+
hint: z,
|
|
2426
|
+
showHint: P = !1,
|
|
2427
|
+
showHintOnEmpty: F = !1,
|
|
2428
|
+
wrapperProps: I,
|
|
2429
|
+
labelProps: b,
|
|
2430
|
+
helperProps: L,
|
|
2431
|
+
...D
|
|
2432
|
+
}, U) => {
|
|
2433
|
+
const H = (e || "").length > 0, X = d === te.LARGE, ae = !!v, Z = X && g && !v, se = w && H && !(y || m), Q = () => {
|
|
2434
|
+
a == null || a(""), $ == null || $();
|
|
2435
|
+
}, ge = se ? /* @__PURE__ */ o.jsx(
|
|
2436
|
+
qt,
|
|
2467
2437
|
{
|
|
2468
|
-
size: d ===
|
|
2438
|
+
size: d === te.SMALL ? "xs" : "sm",
|
|
2469
2439
|
color: "var(--icon-secondary)",
|
|
2470
|
-
onClick:
|
|
2440
|
+
onClick: Q,
|
|
2471
2441
|
style: { cursor: "pointer" },
|
|
2472
2442
|
"data-testid": "x-icon"
|
|
2473
2443
|
}
|
|
2474
|
-
) :
|
|
2475
|
-
type:
|
|
2476
|
-
minLength:
|
|
2444
|
+
) : S, Re = {
|
|
2445
|
+
type: r,
|
|
2446
|
+
minLength: s,
|
|
2477
2447
|
autoComplete: c,
|
|
2478
|
-
autoFocus:
|
|
2479
|
-
...
|
|
2480
|
-
},
|
|
2448
|
+
autoFocus: u,
|
|
2449
|
+
...p
|
|
2450
|
+
}, de = Es(d, Z, H, ae);
|
|
2481
2451
|
return /* @__PURE__ */ o.jsx(
|
|
2482
|
-
|
|
2452
|
+
Pt,
|
|
2483
2453
|
{
|
|
2484
2454
|
size: d,
|
|
2485
|
-
error:
|
|
2486
|
-
disabled:
|
|
2487
|
-
loading:
|
|
2488
|
-
helper:
|
|
2455
|
+
error: f,
|
|
2456
|
+
disabled: y || m,
|
|
2457
|
+
loading: m,
|
|
2458
|
+
helper: h,
|
|
2489
2459
|
prefix: v,
|
|
2490
|
-
suffix:
|
|
2491
|
-
id:
|
|
2492
|
-
showLabel:
|
|
2493
|
-
onFocus:
|
|
2494
|
-
onBlur:
|
|
2495
|
-
onSuffixClick:
|
|
2496
|
-
onChange:
|
|
2497
|
-
value:
|
|
2498
|
-
placeholder:
|
|
2499
|
-
className:
|
|
2500
|
-
wrapperStyles:
|
|
2501
|
-
floatingLabelStyles:
|
|
2502
|
-
prefixStyles:
|
|
2503
|
-
suffixStyles:
|
|
2504
|
-
wrapperProps:
|
|
2505
|
-
labelProps:
|
|
2506
|
-
helperProps:
|
|
2460
|
+
suffix: ge,
|
|
2461
|
+
id: x,
|
|
2462
|
+
showLabel: Z,
|
|
2463
|
+
onFocus: M,
|
|
2464
|
+
onBlur: q,
|
|
2465
|
+
onSuffixClick: A,
|
|
2466
|
+
onChange: a,
|
|
2467
|
+
value: e,
|
|
2468
|
+
placeholder: n,
|
|
2469
|
+
className: R,
|
|
2470
|
+
wrapperStyles: de.wrapperStyles,
|
|
2471
|
+
floatingLabelStyles: de.floatingLabelStyles,
|
|
2472
|
+
prefixStyles: de.prefixStyles,
|
|
2473
|
+
suffixStyles: de.suffixStyles,
|
|
2474
|
+
wrapperProps: I,
|
|
2475
|
+
labelProps: b,
|
|
2476
|
+
helperProps: L,
|
|
2507
2477
|
showLimit: !1,
|
|
2508
2478
|
maxLength: i,
|
|
2509
|
-
inputProps:
|
|
2510
|
-
hint:
|
|
2511
|
-
showHint:
|
|
2512
|
-
showHintOnEmpty:
|
|
2479
|
+
inputProps: Re,
|
|
2480
|
+
hint: z,
|
|
2481
|
+
showHint: P,
|
|
2482
|
+
showHintOnEmpty: F,
|
|
2513
2483
|
truncate: N,
|
|
2514
|
-
...
|
|
2484
|
+
...D
|
|
2515
2485
|
}
|
|
2516
2486
|
);
|
|
2517
2487
|
}
|
|
2518
|
-
),
|
|
2488
|
+
), ie = {
|
|
2519
2489
|
SMALL: "small",
|
|
2520
2490
|
MEDIUM: "medium"
|
|
2521
2491
|
}, ze = {
|
|
2522
2492
|
SMALL: "12px",
|
|
2523
2493
|
MEDIUM: "16px"
|
|
2524
|
-
},
|
|
2494
|
+
}, Ls = {
|
|
2525
2495
|
SMALL: "xs",
|
|
2526
2496
|
MEDIUM: "sm"
|
|
2527
2497
|
}, Fe = {
|
|
2528
2498
|
FILL: "fill",
|
|
2529
2499
|
FIXED: "fixed"
|
|
2530
|
-
},
|
|
2500
|
+
}, rt = {
|
|
2531
2501
|
SMALL: "112px",
|
|
2532
2502
|
MEDIUM: "56px"
|
|
2533
|
-
},
|
|
2503
|
+
}, je = {
|
|
2534
2504
|
SMALL: "48px",
|
|
2535
2505
|
MEDIUM: "22px"
|
|
2536
|
-
},
|
|
2506
|
+
}, _e = {
|
|
2537
2507
|
SMALL: "12px 12px 12px 12px",
|
|
2538
2508
|
MEDIUM: "16px 16px 16px 16px",
|
|
2539
2509
|
MEDIUM_WITH_PREFIX: "12px 16px 12px 16px",
|
|
2540
2510
|
MEDIUM_FLOATING_LABEL: "8px 16px 8px 16px"
|
|
2541
|
-
},
|
|
2511
|
+
}, fe = {
|
|
2542
2512
|
SMALL: 48,
|
|
2543
2513
|
MEDIUM: 56,
|
|
2544
2514
|
LARGE: 112
|
|
2545
|
-
},
|
|
2546
|
-
if (
|
|
2547
|
-
return
|
|
2548
|
-
if (
|
|
2549
|
-
return `${
|
|
2550
|
-
switch (
|
|
2551
|
-
case
|
|
2552
|
-
return
|
|
2515
|
+
}, ks = (e, a) => {
|
|
2516
|
+
if (e === ie.SMALL)
|
|
2517
|
+
return rt.SMALL;
|
|
2518
|
+
if (a)
|
|
2519
|
+
return `${a}px`;
|
|
2520
|
+
switch (e) {
|
|
2521
|
+
case ie.MEDIUM:
|
|
2522
|
+
return rt.MEDIUM;
|
|
2553
2523
|
default:
|
|
2554
|
-
return
|
|
2524
|
+
return rt.MEDIUM;
|
|
2555
2525
|
}
|
|
2556
|
-
},
|
|
2557
|
-
if (
|
|
2558
|
-
return
|
|
2559
|
-
if (
|
|
2560
|
-
switch (
|
|
2561
|
-
case
|
|
2562
|
-
case
|
|
2563
|
-
return
|
|
2564
|
-
case
|
|
2565
|
-
return
|
|
2526
|
+
}, js = (e, a) => {
|
|
2527
|
+
if (e === ie.SMALL)
|
|
2528
|
+
return je.SMALL;
|
|
2529
|
+
if (a)
|
|
2530
|
+
switch (a) {
|
|
2531
|
+
case fe.SMALL:
|
|
2532
|
+
case fe.MEDIUM:
|
|
2533
|
+
return je.MEDIUM;
|
|
2534
|
+
case fe.LARGE:
|
|
2535
|
+
return je.SMALL;
|
|
2566
2536
|
default:
|
|
2567
|
-
return
|
|
2537
|
+
return je.MEDIUM;
|
|
2568
2538
|
}
|
|
2569
|
-
switch (
|
|
2570
|
-
case
|
|
2571
|
-
return
|
|
2539
|
+
switch (e) {
|
|
2540
|
+
case ie.MEDIUM:
|
|
2541
|
+
return je.MEDIUM;
|
|
2572
2542
|
default:
|
|
2573
|
-
return
|
|
2543
|
+
return je.MEDIUM;
|
|
2574
2544
|
}
|
|
2575
|
-
},
|
|
2576
|
-
if (
|
|
2577
|
-
return
|
|
2578
|
-
if (
|
|
2579
|
-
switch (
|
|
2580
|
-
case
|
|
2581
|
-
return
|
|
2582
|
-
case
|
|
2583
|
-
return
|
|
2584
|
-
case
|
|
2585
|
-
return
|
|
2545
|
+
}, $s = (e, a, r) => {
|
|
2546
|
+
if (e === ie.SMALL)
|
|
2547
|
+
return _e.SMALL;
|
|
2548
|
+
if (a)
|
|
2549
|
+
switch (a) {
|
|
2550
|
+
case fe.SMALL:
|
|
2551
|
+
return _e.MEDIUM_WITH_PREFIX;
|
|
2552
|
+
case fe.MEDIUM:
|
|
2553
|
+
return r ? _e.MEDIUM_FLOATING_LABEL : _e.MEDIUM;
|
|
2554
|
+
case fe.LARGE:
|
|
2555
|
+
return _e.MEDIUM;
|
|
2586
2556
|
default:
|
|
2587
|
-
return
|
|
2557
|
+
return _e.MEDIUM;
|
|
2588
2558
|
}
|
|
2589
|
-
switch (
|
|
2590
|
-
case
|
|
2591
|
-
return
|
|
2559
|
+
switch (e) {
|
|
2560
|
+
case ie.MEDIUM:
|
|
2561
|
+
return r ? _e.MEDIUM_FLOATING_LABEL : _e.MEDIUM;
|
|
2592
2562
|
default:
|
|
2593
|
-
return
|
|
2563
|
+
return _e.MEDIUM;
|
|
2594
2564
|
}
|
|
2595
|
-
},
|
|
2596
|
-
if (
|
|
2565
|
+
}, Ms = (e, a) => {
|
|
2566
|
+
if (e === ie.SMALL)
|
|
2597
2567
|
return "small";
|
|
2598
|
-
if (
|
|
2599
|
-
switch (
|
|
2600
|
-
case
|
|
2568
|
+
if (a)
|
|
2569
|
+
switch (a) {
|
|
2570
|
+
case fe.SMALL:
|
|
2601
2571
|
return "small";
|
|
2602
|
-
case
|
|
2572
|
+
case fe.MEDIUM:
|
|
2603
2573
|
return "medium";
|
|
2604
|
-
case
|
|
2574
|
+
case fe.LARGE:
|
|
2605
2575
|
return "medium";
|
|
2606
2576
|
default:
|
|
2607
2577
|
return "medium";
|
|
2608
2578
|
}
|
|
2609
|
-
return
|
|
2610
|
-
},
|
|
2611
|
-
const i =
|
|
2579
|
+
return e;
|
|
2580
|
+
}, Rs = (e) => Ls[e.toUpperCase()], Is = (e) => ze[e.toUpperCase()], Ts = (e, a, r, n) => {
|
|
2581
|
+
const i = ks(e, a), s = js(e, a), c = $s(e, a, r);
|
|
2612
2582
|
return {
|
|
2613
2583
|
wrapperStyles: {
|
|
2614
2584
|
minHeight: i,
|
|
2615
2585
|
// Для fill resize устанавливаем height: 100%
|
|
2616
|
-
...
|
|
2586
|
+
...n === Fe.FILL && { height: "100%" },
|
|
2617
2587
|
// Для fixed resize устанавливаем фиксированную высоту
|
|
2618
|
-
...
|
|
2588
|
+
...n === Fe.FIXED && a && { height: i },
|
|
2619
2589
|
boxSizing: "border-box",
|
|
2620
2590
|
padding: c
|
|
2621
2591
|
},
|
|
2622
2592
|
floatingLabelStyles: {
|
|
2623
|
-
left:
|
|
2593
|
+
left: e === ie.SMALL ? ze.SMALL : ze.MEDIUM,
|
|
2624
2594
|
transformOrigin: "left top",
|
|
2625
|
-
top:
|
|
2595
|
+
top: a === 112 && r && e === ie.MEDIUM ? ze.MEDIUM : void 0
|
|
2626
2596
|
},
|
|
2627
2597
|
suffixStyles: {
|
|
2628
|
-
right:
|
|
2598
|
+
right: Is(e)
|
|
2629
2599
|
},
|
|
2630
2600
|
textareaStyles: {
|
|
2631
|
-
minHeight:
|
|
2601
|
+
minHeight: s,
|
|
2632
2602
|
// Для fill resize flex: 1
|
|
2633
|
-
...
|
|
2603
|
+
...n === Fe.FILL && { flex: 1, minHeight: 0 },
|
|
2634
2604
|
// Для fixed resize фиксированная высота
|
|
2635
|
-
...
|
|
2605
|
+
...n === Fe.FIXED && a && { height: s }
|
|
2636
2606
|
}
|
|
2637
2607
|
};
|
|
2638
|
-
},
|
|
2608
|
+
}, So = J(
|
|
2639
2609
|
({
|
|
2640
|
-
value:
|
|
2641
|
-
onChange:
|
|
2642
|
-
placeholder:
|
|
2643
|
-
maxLength:
|
|
2610
|
+
value: e = "",
|
|
2611
|
+
onChange: a,
|
|
2612
|
+
placeholder: r,
|
|
2613
|
+
maxLength: n,
|
|
2644
2614
|
minLength: i,
|
|
2645
|
-
autoFocus:
|
|
2646
|
-
size: c =
|
|
2647
|
-
textareaProps:
|
|
2615
|
+
autoFocus: s,
|
|
2616
|
+
size: c = ie.MEDIUM,
|
|
2617
|
+
textareaProps: u,
|
|
2648
2618
|
error: d,
|
|
2649
|
-
disabled:
|
|
2650
|
-
loading:
|
|
2651
|
-
helper:
|
|
2652
|
-
suffix:
|
|
2653
|
-
clearable:
|
|
2619
|
+
disabled: p,
|
|
2620
|
+
loading: f,
|
|
2621
|
+
helper: y,
|
|
2622
|
+
suffix: m,
|
|
2623
|
+
clearable: h = !1,
|
|
2654
2624
|
id: v,
|
|
2655
|
-
showLabel:
|
|
2625
|
+
showLabel: S = !0,
|
|
2656
2626
|
onFocus: w,
|
|
2657
|
-
onBlur:
|
|
2627
|
+
onBlur: x,
|
|
2658
2628
|
onClear: g,
|
|
2659
|
-
onKeyDown:
|
|
2660
|
-
className:
|
|
2661
|
-
rows:
|
|
2629
|
+
onKeyDown: M,
|
|
2630
|
+
className: q,
|
|
2631
|
+
rows: A = 1,
|
|
2662
2632
|
showLimit: $ = !1,
|
|
2663
|
-
wrapperProps:
|
|
2633
|
+
wrapperProps: R,
|
|
2664
2634
|
labelProps: N,
|
|
2665
|
-
helperProps:
|
|
2666
|
-
showGrip:
|
|
2667
|
-
minHeight:
|
|
2668
|
-
resize:
|
|
2669
|
-
...
|
|
2670
|
-
},
|
|
2671
|
-
const
|
|
2672
|
-
|
|
2635
|
+
helperProps: z,
|
|
2636
|
+
showGrip: P,
|
|
2637
|
+
minHeight: F,
|
|
2638
|
+
resize: I,
|
|
2639
|
+
...b
|
|
2640
|
+
}, L) => {
|
|
2641
|
+
const D = (e || "").length > 0, U = S && !!r && (c === ie.SMALL || F !== 48), H = h && D && !(p || f), X = () => {
|
|
2642
|
+
a == null || a(""), g == null || g();
|
|
2673
2643
|
}, ae = H ? /* @__PURE__ */ o.jsx(
|
|
2674
|
-
|
|
2644
|
+
qt,
|
|
2675
2645
|
{
|
|
2676
|
-
size:
|
|
2646
|
+
size: Rs(c),
|
|
2677
2647
|
color: "var(--icon-secondary)",
|
|
2678
|
-
onClick:
|
|
2648
|
+
onClick: X,
|
|
2679
2649
|
style: { cursor: "pointer" },
|
|
2680
2650
|
"data-testid": "x-icon"
|
|
2681
2651
|
}
|
|
2682
|
-
) :
|
|
2683
|
-
rows:
|
|
2652
|
+
) : m, Z = Ts(c, F, U && D, I), se = Ms(c, F), Q = {
|
|
2653
|
+
rows: A,
|
|
2684
2654
|
minLength: i,
|
|
2685
|
-
autoFocus:
|
|
2686
|
-
resize:
|
|
2687
|
-
...
|
|
2655
|
+
autoFocus: s,
|
|
2656
|
+
resize: I,
|
|
2657
|
+
...u
|
|
2688
2658
|
};
|
|
2689
2659
|
return /* @__PURE__ */ o.jsx(
|
|
2690
|
-
|
|
2660
|
+
Pt,
|
|
2691
2661
|
{
|
|
2692
|
-
ref:
|
|
2662
|
+
ref: L,
|
|
2693
2663
|
component: "textarea",
|
|
2694
|
-
size:
|
|
2664
|
+
size: se,
|
|
2695
2665
|
error: d,
|
|
2696
|
-
disabled:
|
|
2697
|
-
loading:
|
|
2698
|
-
helper:
|
|
2666
|
+
disabled: p || f,
|
|
2667
|
+
loading: f,
|
|
2668
|
+
helper: y,
|
|
2699
2669
|
suffix: ae,
|
|
2700
2670
|
id: v,
|
|
2701
|
-
showLabel:
|
|
2671
|
+
showLabel: U,
|
|
2702
2672
|
onFocus: w,
|
|
2703
|
-
onBlur:
|
|
2704
|
-
onKeyDown:
|
|
2705
|
-
onChange:
|
|
2706
|
-
value:
|
|
2707
|
-
placeholder:
|
|
2708
|
-
className:
|
|
2709
|
-
"data-floating-label":
|
|
2710
|
-
wrapperStyles:
|
|
2711
|
-
floatingLabelStyles:
|
|
2712
|
-
suffixStyles:
|
|
2713
|
-
textareaStyles:
|
|
2714
|
-
wrapperProps:
|
|
2673
|
+
onBlur: x,
|
|
2674
|
+
onKeyDown: M,
|
|
2675
|
+
onChange: a,
|
|
2676
|
+
value: e || "",
|
|
2677
|
+
placeholder: r,
|
|
2678
|
+
className: q,
|
|
2679
|
+
"data-floating-label": U,
|
|
2680
|
+
wrapperStyles: Z.wrapperStyles,
|
|
2681
|
+
floatingLabelStyles: Z.floatingLabelStyles,
|
|
2682
|
+
suffixStyles: Z.suffixStyles,
|
|
2683
|
+
textareaStyles: Z.textareaStyles,
|
|
2684
|
+
wrapperProps: R,
|
|
2715
2685
|
labelProps: N,
|
|
2716
|
-
helperProps:
|
|
2717
|
-
showLimit: $ && (
|
|
2718
|
-
maxLength:
|
|
2719
|
-
inputProps:
|
|
2720
|
-
resize:
|
|
2721
|
-
showGrip:
|
|
2722
|
-
...
|
|
2686
|
+
helperProps: z,
|
|
2687
|
+
showLimit: $ && (F === 112 || c === ie.SMALL),
|
|
2688
|
+
maxLength: n,
|
|
2689
|
+
inputProps: Q,
|
|
2690
|
+
resize: I,
|
|
2691
|
+
showGrip: P,
|
|
2692
|
+
...b
|
|
2723
2693
|
}
|
|
2724
2694
|
);
|
|
2725
2695
|
}
|
|
2726
|
-
),
|
|
2727
|
-
helper:
|
|
2728
|
-
"helper--error": "_helper--
|
|
2729
|
-
"helper--disabled": "_helper--
|
|
2730
|
-
},
|
|
2731
|
-
title:
|
|
2732
|
-
error:
|
|
2733
|
-
className:
|
|
2734
|
-
style:
|
|
2696
|
+
), As = "_helper_1jq7j_16", at = {
|
|
2697
|
+
helper: As,
|
|
2698
|
+
"helper--error": "_helper--error_1jq7j_28",
|
|
2699
|
+
"helper--disabled": "_helper--disabled_1jq7j_33"
|
|
2700
|
+
}, Eo = ({
|
|
2701
|
+
title: e,
|
|
2702
|
+
error: a,
|
|
2703
|
+
className: r = "",
|
|
2704
|
+
style: n,
|
|
2735
2705
|
disabled: i = !1,
|
|
2736
|
-
"data-testid":
|
|
2706
|
+
"data-testid": s,
|
|
2737
2707
|
"aria-label": c,
|
|
2738
|
-
"aria-describedby":
|
|
2708
|
+
"aria-describedby": u
|
|
2739
2709
|
}) => {
|
|
2740
|
-
const d = !!
|
|
2741
|
-
|
|
2742
|
-
d &&
|
|
2743
|
-
i &&
|
|
2744
|
-
|
|
2745
|
-
),
|
|
2710
|
+
const d = !!a, p = B(
|
|
2711
|
+
at.helper,
|
|
2712
|
+
d && at["helper--error"],
|
|
2713
|
+
i && at["helper--disabled"],
|
|
2714
|
+
r
|
|
2715
|
+
), f = i ? e : a || e;
|
|
2746
2716
|
return /* @__PURE__ */ o.jsx(
|
|
2747
2717
|
"div",
|
|
2748
2718
|
{
|
|
2749
|
-
className:
|
|
2750
|
-
style:
|
|
2751
|
-
"data-testid":
|
|
2719
|
+
className: p,
|
|
2720
|
+
style: n,
|
|
2721
|
+
"data-testid": s,
|
|
2752
2722
|
"aria-label": c,
|
|
2753
|
-
"aria-describedby":
|
|
2754
|
-
children: /* @__PURE__ */ o.jsx("p", { children:
|
|
2723
|
+
"aria-describedby": u,
|
|
2724
|
+
children: /* @__PURE__ */ o.jsx("p", { children: f })
|
|
2755
2725
|
}
|
|
2756
2726
|
);
|
|
2757
|
-
}
|
|
2727
|
+
}, Ns = "_radio_1q34w_54", Ds = "_checked_1q34w_75", Os = "_error_1q34w_80", qs = "_disabled_1q34w_89", Us = "_icon_1q34w_125", Ps = "_small_1q34w_133", Fs = "_medium_1q34w_140", Bs = "_large_1q34w_147", zs = "_label_1q34w_154", Ws = "_container_1q34w_180", Hs = "_input_1q34w_193", Gs = "_card_1q34w_200", Vs = "_smallCard_1q34w_206", Zs = "_mediumCard_1q34w_210", Ys = "_largeCard_1q34w_214", ne = {
|
|
2728
|
+
radio: Ns,
|
|
2729
|
+
checked: Ds,
|
|
2730
|
+
error: Os,
|
|
2731
|
+
disabled: qs,
|
|
2732
|
+
icon: Us,
|
|
2733
|
+
small: Ps,
|
|
2734
|
+
medium: Fs,
|
|
2735
|
+
large: Bs,
|
|
2736
|
+
label: zs,
|
|
2737
|
+
container: Ws,
|
|
2738
|
+
input: Hs,
|
|
2739
|
+
card: Gs,
|
|
2740
|
+
smallCard: Vs,
|
|
2741
|
+
mediumCard: Zs,
|
|
2742
|
+
largeCard: Ys
|
|
2743
|
+
}, Ks = "radio-container-", Js = "radio-label", Ft = J(
|
|
2744
|
+
(e, a) => {
|
|
2745
|
+
const {
|
|
2746
|
+
name: r,
|
|
2747
|
+
id: n,
|
|
2748
|
+
value: i,
|
|
2749
|
+
size: s = "large",
|
|
2750
|
+
loading: c = !1,
|
|
2751
|
+
error: u,
|
|
2752
|
+
disabled: d = !1,
|
|
2753
|
+
checked: p = !1,
|
|
2754
|
+
containerClassName: f,
|
|
2755
|
+
className: y,
|
|
2756
|
+
children: m,
|
|
2757
|
+
clickable: h = "all",
|
|
2758
|
+
mode: v = "default",
|
|
2759
|
+
tabIndex: S,
|
|
2760
|
+
style: w,
|
|
2761
|
+
containerStyle: x,
|
|
2762
|
+
onChange: g,
|
|
2763
|
+
"data-testid": M,
|
|
2764
|
+
...q
|
|
2765
|
+
} = e, A = !!u, $ = d || c, R = h === "all", N = v === "card", z = ne[`${s}Card`], P = n ?? r, F = (U) => {
|
|
2766
|
+
$ || g == null || g(i, U);
|
|
2767
|
+
}, I = (U) => {
|
|
2768
|
+
U.key === "Enter" && !$ && (U.preventDefault(), g == null || g(i));
|
|
2769
|
+
}, b = (U) => U.stopPropagation(), L = () => /* @__PURE__ */ o.jsxs(
|
|
2770
|
+
"div",
|
|
2771
|
+
{
|
|
2772
|
+
className: B(
|
|
2773
|
+
ne.radio,
|
|
2774
|
+
ne[s],
|
|
2775
|
+
{
|
|
2776
|
+
[ne.checked]: p,
|
|
2777
|
+
[ne.disabled]: $,
|
|
2778
|
+
[ne.error]: A && !$
|
|
2779
|
+
},
|
|
2780
|
+
y
|
|
2781
|
+
),
|
|
2782
|
+
style: w,
|
|
2783
|
+
tabIndex: S || 1,
|
|
2784
|
+
"data-testid": `${Ks}${P}`,
|
|
2785
|
+
children: [
|
|
2786
|
+
/* @__PURE__ */ o.jsx(
|
|
2787
|
+
"input",
|
|
2788
|
+
{
|
|
2789
|
+
"aria-errormessage": u,
|
|
2790
|
+
"aria-invalid": A,
|
|
2791
|
+
checked: p,
|
|
2792
|
+
className: ne.input,
|
|
2793
|
+
"data-testid": `radio-${P}`,
|
|
2794
|
+
disabled: $,
|
|
2795
|
+
id: P,
|
|
2796
|
+
name: r,
|
|
2797
|
+
ref: a,
|
|
2798
|
+
type: "radio",
|
|
2799
|
+
value: i,
|
|
2800
|
+
onChange: F,
|
|
2801
|
+
onClick: b
|
|
2802
|
+
}
|
|
2803
|
+
),
|
|
2804
|
+
/* @__PURE__ */ o.jsx("svg", { "data-testid": `radio-icon-${P}`, viewBox: "0 0 8 8", className: ne.icon, children: /* @__PURE__ */ o.jsx("circle", { cx: 4, cy: 4, fill: "current", r: 4 }) })
|
|
2805
|
+
]
|
|
2806
|
+
}
|
|
2807
|
+
), D = () => /* @__PURE__ */ o.jsxs(
|
|
2808
|
+
"label",
|
|
2809
|
+
{
|
|
2810
|
+
"aria-checked": p,
|
|
2811
|
+
"aria-disabled": $,
|
|
2812
|
+
"data-testid": R ? M : Js,
|
|
2813
|
+
htmlFor: P,
|
|
2814
|
+
style: x,
|
|
2815
|
+
className: B(ne.label, {
|
|
2816
|
+
[B(ne.container, ne[v], f)]: R,
|
|
2817
|
+
[z]: R && N
|
|
2818
|
+
}),
|
|
2819
|
+
onKeyDown: I,
|
|
2820
|
+
...q,
|
|
2821
|
+
children: [
|
|
2822
|
+
L(),
|
|
2823
|
+
R && m
|
|
2824
|
+
]
|
|
2825
|
+
}
|
|
2826
|
+
);
|
|
2827
|
+
return R ? D() : /* @__PURE__ */ o.jsxs(
|
|
2828
|
+
"div",
|
|
2829
|
+
{
|
|
2830
|
+
className: B(ne.container, ne[v], f, {
|
|
2831
|
+
[z]: N
|
|
2832
|
+
}),
|
|
2833
|
+
"data-testid": M,
|
|
2834
|
+
children: [
|
|
2835
|
+
D(),
|
|
2836
|
+
m
|
|
2837
|
+
]
|
|
2838
|
+
}
|
|
2839
|
+
);
|
|
2840
|
+
}
|
|
2841
|
+
), Xs = "_group_o6mjt_7", Qs = "_vertical_o6mjt_12", eo = "_horizontal_o6mjt_16", Rt = {
|
|
2842
|
+
group: Xs,
|
|
2843
|
+
vertical: Qs,
|
|
2844
|
+
horizontal: eo
|
|
2845
|
+
}, to = J(
|
|
2846
|
+
(e, a) => {
|
|
2847
|
+
const {
|
|
2848
|
+
id: r,
|
|
2849
|
+
name: n,
|
|
2850
|
+
value: i,
|
|
2851
|
+
options: s,
|
|
2852
|
+
className: c,
|
|
2853
|
+
radioClassName: u,
|
|
2854
|
+
disabled: d = !1,
|
|
2855
|
+
layout: p = "vertical",
|
|
2856
|
+
"data-testid": f,
|
|
2857
|
+
...y
|
|
2858
|
+
} = e;
|
|
2859
|
+
return /* @__PURE__ */ o.jsx(
|
|
2860
|
+
"div",
|
|
2861
|
+
{
|
|
2862
|
+
className: he(Rt.group, Rt[p], c),
|
|
2863
|
+
"data-testid": f ?? `radio-group-${n}`,
|
|
2864
|
+
id: r,
|
|
2865
|
+
ref: a,
|
|
2866
|
+
children: s.map(({ label: m, value: h, disabled: v }) => {
|
|
2867
|
+
const S = `${n}-${String(h)}`, w = String(h) === String(i);
|
|
2868
|
+
return /* @__PURE__ */ o.jsx(
|
|
2869
|
+
Ft,
|
|
2870
|
+
{
|
|
2871
|
+
id: S,
|
|
2872
|
+
checked: w,
|
|
2873
|
+
"data-testid": S,
|
|
2874
|
+
disabled: d || v,
|
|
2875
|
+
name: n,
|
|
2876
|
+
value: h,
|
|
2877
|
+
className: u,
|
|
2878
|
+
...y,
|
|
2879
|
+
children: m
|
|
2880
|
+
},
|
|
2881
|
+
S
|
|
2882
|
+
);
|
|
2883
|
+
})
|
|
2884
|
+
}
|
|
2885
|
+
);
|
|
2886
|
+
}
|
|
2887
|
+
), Lo = Object.assign(Ft, {
|
|
2888
|
+
Group: to
|
|
2889
|
+
}), ro = "_root_1jj3e_25", ao = "_unordered_1jj3e_39", no = "_ordered_1jj3e_43", so = "_sm_1jj3e_48", oo = "_md_1jj3e_59", io = "_lg_1jj3e_70", lo = "_xl_1jj3e_81", nt = {
|
|
2890
|
+
root: ro,
|
|
2891
|
+
unordered: ao,
|
|
2892
|
+
ordered: no,
|
|
2893
|
+
sm: so,
|
|
2894
|
+
md: oo,
|
|
2895
|
+
lg: io,
|
|
2896
|
+
xl: lo
|
|
2897
|
+
}, co = (e) => {
|
|
2898
|
+
const { children: a, className: r, "data-testid": n = "list-item" } = e;
|
|
2899
|
+
return /* @__PURE__ */ o.jsx("li", { "data-testid": n, className: r, children: a });
|
|
2900
|
+
}, ko = Object.assign(
|
|
2901
|
+
J((e, a) => {
|
|
2902
|
+
const {
|
|
2903
|
+
variant: r = "unordered",
|
|
2904
|
+
className: n,
|
|
2905
|
+
children: i,
|
|
2906
|
+
size: s = "md",
|
|
2907
|
+
"data-testid": c = "list",
|
|
2908
|
+
...u
|
|
2909
|
+
} = e, d = r === "ordered" ? "ol" : "ul";
|
|
2910
|
+
return /* @__PURE__ */ o.jsx(
|
|
2911
|
+
d,
|
|
2912
|
+
{
|
|
2913
|
+
"data-testid": c,
|
|
2914
|
+
ref: a,
|
|
2915
|
+
className: he(nt.root, nt[r], nt[s], n),
|
|
2916
|
+
...r === "ordered" && u,
|
|
2917
|
+
children: i
|
|
2918
|
+
}
|
|
2919
|
+
);
|
|
2920
|
+
}),
|
|
2921
|
+
{ Item: co }
|
|
2922
|
+
);
|
|
2758
2923
|
export {
|
|
2759
|
-
|
|
2760
|
-
|
|
2761
|
-
|
|
2762
|
-
|
|
2763
|
-
|
|
2764
|
-
|
|
2765
|
-
|
|
2766
|
-
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
-
|
|
2770
|
-
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
|
|
2774
|
-
|
|
2924
|
+
fo as Avatar,
|
|
2925
|
+
go as Badge,
|
|
2926
|
+
po as Button,
|
|
2927
|
+
xo as Checkbox,
|
|
2928
|
+
mo as ConfigProvider,
|
|
2929
|
+
Eo as Helper,
|
|
2930
|
+
ho as Image,
|
|
2931
|
+
ko as List,
|
|
2932
|
+
Ja as Loader,
|
|
2933
|
+
Lo as Radio,
|
|
2934
|
+
vo as Tag,
|
|
2935
|
+
So as TextArea,
|
|
2936
|
+
wo as TextInput,
|
|
2937
|
+
Co as Typography,
|
|
2938
|
+
Qa as enUS,
|
|
2939
|
+
bo as ruRU,
|
|
2940
|
+
en as useConfig,
|
|
2941
|
+
yo as useLocale
|
|
2775
2942
|
};
|