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