skillgrid 0.0.31-dev-38682-image.1191562 → 0.0.31-dev-41848-badge.1194176
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/Image/Image.type.d.ts +1 -10
- package/dist/components/Loader/Loader.type.d.ts +1 -1
- package/dist/index.cjs.js +11 -11
- package/dist/index.css +1 -1
- package/dist/index.es.js +1413 -1430
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import
|
|
1
|
+
import * as Xe from "react";
|
|
2
|
+
import _e, { forwardRef as K, Fragment as Pt, useState as _t, useEffect as lt, useRef as qt, useCallback as St, useMemo as Lr, createContext as Ye, useContext as Ze, useLayoutEffect as jr, useImperativeHandle as kr, useId as pe } from "react";
|
|
3
3
|
import { clsx as $ } from "clsx";
|
|
4
4
|
import $r from "rc-tooltip";
|
|
5
|
-
import './index.css';function Er(
|
|
6
|
-
return
|
|
5
|
+
import './index.css';function Er(t) {
|
|
6
|
+
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
7
7
|
}
|
|
8
|
-
var
|
|
8
|
+
var Yt = { exports: {} }, Dt = {};
|
|
9
9
|
/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.production.min.js
|
|
@@ -15,21 +15,21 @@ var Ze = { exports: {} }, De = {};
|
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
17
|
*/
|
|
18
|
-
var $
|
|
18
|
+
var $e;
|
|
19
19
|
function Tr() {
|
|
20
|
-
if ($
|
|
21
|
-
$
|
|
22
|
-
var
|
|
20
|
+
if ($e) return Dt;
|
|
21
|
+
$e = 1;
|
|
22
|
+
var t = _e, r = Symbol.for("react.element"), a = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, i = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, s = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
23
23
|
function l(c, _, f) {
|
|
24
|
-
var p,
|
|
25
|
-
f !== void 0 && (
|
|
26
|
-
for (p in _) n.call(_, p) && !s.hasOwnProperty(p) && (
|
|
27
|
-
if (c && c.defaultProps) for (p in _ = c.defaultProps, _)
|
|
28
|
-
return { $$typeof: r, type: c, key:
|
|
24
|
+
var p, m = {}, b = null, g = null;
|
|
25
|
+
f !== void 0 && (b = "" + f), _.key !== void 0 && (b = "" + _.key), _.ref !== void 0 && (g = _.ref);
|
|
26
|
+
for (p in _) n.call(_, p) && !s.hasOwnProperty(p) && (m[p] = _[p]);
|
|
27
|
+
if (c && c.defaultProps) for (p in _ = c.defaultProps, _) m[p] === void 0 && (m[p] = _[p]);
|
|
28
|
+
return { $$typeof: r, type: c, key: b, ref: g, props: m, _owner: i.current };
|
|
29
29
|
}
|
|
30
|
-
return
|
|
30
|
+
return Dt.Fragment = a, Dt.jsx = l, Dt.jsxs = l, Dt;
|
|
31
31
|
}
|
|
32
|
-
var
|
|
32
|
+
var Wt = {};
|
|
33
33
|
/**
|
|
34
34
|
* @license React
|
|
35
35
|
* react-jsx-runtime.development.js
|
|
@@ -39,61 +39,61 @@ var We = {};
|
|
|
39
39
|
* This source code is licensed under the MIT license found in the
|
|
40
40
|
* LICENSE file in the root directory of this source tree.
|
|
41
41
|
*/
|
|
42
|
-
var
|
|
42
|
+
var Ee;
|
|
43
43
|
function Rr() {
|
|
44
|
-
return
|
|
45
|
-
var
|
|
46
|
-
function
|
|
47
|
-
if (
|
|
44
|
+
return Ee || (Ee = 1, process.env.NODE_ENV !== "production" && function() {
|
|
45
|
+
var t = _e, r = Symbol.for("react.element"), a = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), c = Symbol.for("react.context"), _ = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), m = Symbol.for("react.memo"), b = Symbol.for("react.lazy"), g = Symbol.for("react.offscreen"), y = Symbol.iterator, C = "@@iterator";
|
|
46
|
+
function x(e) {
|
|
47
|
+
if (e === null || typeof e != "object")
|
|
48
48
|
return null;
|
|
49
|
-
var d =
|
|
49
|
+
var d = y && e[y] || e[C];
|
|
50
50
|
return typeof d == "function" ? d : null;
|
|
51
51
|
}
|
|
52
|
-
var v =
|
|
53
|
-
function u(
|
|
52
|
+
var v = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
53
|
+
function u(e) {
|
|
54
54
|
{
|
|
55
|
-
for (var d = arguments.length,
|
|
56
|
-
|
|
57
|
-
w("error",
|
|
55
|
+
for (var d = arguments.length, h = new Array(d > 1 ? d - 1 : 0), j = 1; j < d; j++)
|
|
56
|
+
h[j - 1] = arguments[j];
|
|
57
|
+
w("error", e, h);
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
|
-
function w(
|
|
60
|
+
function w(e, d, h) {
|
|
61
61
|
{
|
|
62
|
-
var
|
|
63
|
-
B !== "" && (d += "%s",
|
|
64
|
-
var D =
|
|
65
|
-
return String(
|
|
62
|
+
var j = v.ReactDebugCurrentFrame, B = j.getStackAddendum();
|
|
63
|
+
B !== "" && (d += "%s", h = h.concat([B]));
|
|
64
|
+
var D = h.map(function(M) {
|
|
65
|
+
return String(M);
|
|
66
66
|
});
|
|
67
|
-
D.unshift("Warning: " + d), Function.prototype.apply.call(console[
|
|
67
|
+
D.unshift("Warning: " + d), Function.prototype.apply.call(console[e], console, D);
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
|
-
var L = !1, E = !1,
|
|
71
|
-
|
|
72
|
-
function W(
|
|
73
|
-
return !!(typeof
|
|
70
|
+
var L = !1, E = !1, k = !1, T = !1, O = !1, A;
|
|
71
|
+
A = Symbol.for("react.module.reference");
|
|
72
|
+
function W(e) {
|
|
73
|
+
return !!(typeof e == "string" || typeof e == "function" || e === n || e === s || O || e === i || e === f || e === p || T || e === g || L || E || k || typeof e == "object" && e !== null && (e.$$typeof === b || e.$$typeof === m || e.$$typeof === l || e.$$typeof === c || e.$$typeof === _ || // This needs to include all possible module reference object
|
|
74
74
|
// types supported by any Flight configuration anywhere since
|
|
75
75
|
// we don't know which Flight build this will end up being used
|
|
76
76
|
// with.
|
|
77
|
-
|
|
77
|
+
e.$$typeof === A || e.getModuleId !== void 0));
|
|
78
78
|
}
|
|
79
|
-
function q(
|
|
80
|
-
var
|
|
81
|
-
if (
|
|
82
|
-
return
|
|
79
|
+
function q(e, d, h) {
|
|
80
|
+
var j = e.displayName;
|
|
81
|
+
if (j)
|
|
82
|
+
return j;
|
|
83
83
|
var B = d.displayName || d.name || "";
|
|
84
|
-
return B !== "" ?
|
|
84
|
+
return B !== "" ? h + "(" + B + ")" : h;
|
|
85
85
|
}
|
|
86
|
-
function P(
|
|
87
|
-
return
|
|
86
|
+
function P(e) {
|
|
87
|
+
return e.displayName || "Context";
|
|
88
88
|
}
|
|
89
|
-
function S(
|
|
90
|
-
if (
|
|
89
|
+
function S(e) {
|
|
90
|
+
if (e == null)
|
|
91
91
|
return null;
|
|
92
|
-
if (typeof
|
|
93
|
-
return
|
|
94
|
-
if (typeof
|
|
95
|
-
return
|
|
96
|
-
switch (
|
|
92
|
+
if (typeof e.tag == "number" && u("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
93
|
+
return e.displayName || e.name || null;
|
|
94
|
+
if (typeof e == "string")
|
|
95
|
+
return e;
|
|
96
|
+
switch (e) {
|
|
97
97
|
case n:
|
|
98
98
|
return "Fragment";
|
|
99
99
|
case a:
|
|
@@ -107,23 +107,23 @@ function Rr() {
|
|
|
107
107
|
case p:
|
|
108
108
|
return "SuspenseList";
|
|
109
109
|
}
|
|
110
|
-
if (typeof
|
|
111
|
-
switch (
|
|
110
|
+
if (typeof e == "object")
|
|
111
|
+
switch (e.$$typeof) {
|
|
112
112
|
case c:
|
|
113
|
-
var d =
|
|
113
|
+
var d = e;
|
|
114
114
|
return P(d) + ".Consumer";
|
|
115
115
|
case l:
|
|
116
|
-
var
|
|
117
|
-
return P(
|
|
116
|
+
var h = e;
|
|
117
|
+
return P(h._context) + ".Provider";
|
|
118
118
|
case _:
|
|
119
|
-
return q(
|
|
120
|
-
case
|
|
121
|
-
var
|
|
122
|
-
return
|
|
123
|
-
case
|
|
124
|
-
var B =
|
|
119
|
+
return q(e, e.render, "ForwardRef");
|
|
120
|
+
case m:
|
|
121
|
+
var j = e.displayName || null;
|
|
122
|
+
return j !== null ? j : S(e.type) || "Memo";
|
|
123
|
+
case b: {
|
|
124
|
+
var B = e, D = B._payload, M = B._init;
|
|
125
125
|
try {
|
|
126
|
-
return S(
|
|
126
|
+
return S(M(D));
|
|
127
127
|
} catch {
|
|
128
128
|
return null;
|
|
129
129
|
}
|
|
@@ -131,510 +131,510 @@ function Rr() {
|
|
|
131
131
|
}
|
|
132
132
|
return null;
|
|
133
133
|
}
|
|
134
|
-
var
|
|
135
|
-
function
|
|
134
|
+
var I = Object.assign, z = 0, F, X, Q, ct, at, tt, et;
|
|
135
|
+
function bt() {
|
|
136
136
|
}
|
|
137
|
-
|
|
138
|
-
function
|
|
137
|
+
bt.__reactDisabledLog = !0;
|
|
138
|
+
function zt() {
|
|
139
139
|
{
|
|
140
140
|
if (z === 0) {
|
|
141
|
-
F = console.log, X = console.info, Q = console.warn,
|
|
142
|
-
var
|
|
141
|
+
F = console.log, X = console.info, Q = console.warn, ct = console.error, at = console.group, tt = console.groupCollapsed, et = console.groupEnd;
|
|
142
|
+
var e = {
|
|
143
143
|
configurable: !0,
|
|
144
144
|
enumerable: !0,
|
|
145
|
-
value:
|
|
145
|
+
value: bt,
|
|
146
146
|
writable: !0
|
|
147
147
|
};
|
|
148
148
|
Object.defineProperties(console, {
|
|
149
|
-
info:
|
|
150
|
-
log:
|
|
151
|
-
warn:
|
|
152
|
-
error:
|
|
153
|
-
group:
|
|
154
|
-
groupCollapsed:
|
|
155
|
-
groupEnd:
|
|
149
|
+
info: e,
|
|
150
|
+
log: e,
|
|
151
|
+
warn: e,
|
|
152
|
+
error: e,
|
|
153
|
+
group: e,
|
|
154
|
+
groupCollapsed: e,
|
|
155
|
+
groupEnd: e
|
|
156
156
|
});
|
|
157
157
|
}
|
|
158
158
|
z++;
|
|
159
159
|
}
|
|
160
160
|
}
|
|
161
|
-
function
|
|
161
|
+
function Et() {
|
|
162
162
|
{
|
|
163
163
|
if (z--, z === 0) {
|
|
164
|
-
var
|
|
164
|
+
var e = {
|
|
165
165
|
configurable: !0,
|
|
166
166
|
enumerable: !0,
|
|
167
167
|
writable: !0
|
|
168
168
|
};
|
|
169
169
|
Object.defineProperties(console, {
|
|
170
|
-
log:
|
|
170
|
+
log: I({}, e, {
|
|
171
171
|
value: F
|
|
172
172
|
}),
|
|
173
|
-
info:
|
|
173
|
+
info: I({}, e, {
|
|
174
174
|
value: X
|
|
175
175
|
}),
|
|
176
|
-
warn:
|
|
176
|
+
warn: I({}, e, {
|
|
177
177
|
value: Q
|
|
178
178
|
}),
|
|
179
|
-
error:
|
|
180
|
-
value:
|
|
179
|
+
error: I({}, e, {
|
|
180
|
+
value: ct
|
|
181
181
|
}),
|
|
182
|
-
group:
|
|
183
|
-
value:
|
|
182
|
+
group: I({}, e, {
|
|
183
|
+
value: at
|
|
184
184
|
}),
|
|
185
|
-
groupCollapsed:
|
|
186
|
-
value:
|
|
185
|
+
groupCollapsed: I({}, e, {
|
|
186
|
+
value: tt
|
|
187
187
|
}),
|
|
188
|
-
groupEnd:
|
|
189
|
-
value:
|
|
188
|
+
groupEnd: I({}, e, {
|
|
189
|
+
value: et
|
|
190
190
|
})
|
|
191
191
|
});
|
|
192
192
|
}
|
|
193
193
|
z < 0 && u("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
194
194
|
}
|
|
195
195
|
}
|
|
196
|
-
var
|
|
197
|
-
function
|
|
196
|
+
var ht = v.ReactCurrentDispatcher, Tt;
|
|
197
|
+
function jt(e, d, h) {
|
|
198
198
|
{
|
|
199
|
-
if (
|
|
199
|
+
if (Tt === void 0)
|
|
200
200
|
try {
|
|
201
201
|
throw Error();
|
|
202
202
|
} catch (B) {
|
|
203
|
-
var
|
|
204
|
-
|
|
203
|
+
var j = B.stack.trim().match(/\n( *(at )?)/);
|
|
204
|
+
Tt = j && j[1] || "";
|
|
205
205
|
}
|
|
206
206
|
return `
|
|
207
|
-
` +
|
|
207
|
+
` + Tt + e;
|
|
208
208
|
}
|
|
209
209
|
}
|
|
210
|
-
var
|
|
210
|
+
var Ht = !1, Rt;
|
|
211
211
|
{
|
|
212
|
-
var
|
|
213
|
-
|
|
212
|
+
var Kt = typeof WeakMap == "function" ? WeakMap : Map;
|
|
213
|
+
Rt = new Kt();
|
|
214
214
|
}
|
|
215
|
-
function
|
|
216
|
-
if (!
|
|
215
|
+
function Vt(e, d) {
|
|
216
|
+
if (!e || Ht)
|
|
217
217
|
return "";
|
|
218
218
|
{
|
|
219
|
-
var
|
|
220
|
-
if (
|
|
221
|
-
return
|
|
219
|
+
var h = Rt.get(e);
|
|
220
|
+
if (h !== void 0)
|
|
221
|
+
return h;
|
|
222
222
|
}
|
|
223
|
-
var
|
|
224
|
-
|
|
223
|
+
var j;
|
|
224
|
+
Ht = !0;
|
|
225
225
|
var B = Error.prepareStackTrace;
|
|
226
226
|
Error.prepareStackTrace = void 0;
|
|
227
227
|
var D;
|
|
228
|
-
D =
|
|
228
|
+
D = ht.current, ht.current = null, zt();
|
|
229
229
|
try {
|
|
230
230
|
if (d) {
|
|
231
|
-
var
|
|
231
|
+
var M = function() {
|
|
232
232
|
throw Error();
|
|
233
233
|
};
|
|
234
|
-
if (Object.defineProperty(
|
|
234
|
+
if (Object.defineProperty(M.prototype, "props", {
|
|
235
235
|
set: function() {
|
|
236
236
|
throw Error();
|
|
237
237
|
}
|
|
238
238
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
239
239
|
try {
|
|
240
|
-
Reflect.construct(
|
|
241
|
-
} catch (
|
|
242
|
-
|
|
240
|
+
Reflect.construct(M, []);
|
|
241
|
+
} catch (nt) {
|
|
242
|
+
j = nt;
|
|
243
243
|
}
|
|
244
|
-
Reflect.construct(
|
|
244
|
+
Reflect.construct(e, [], M);
|
|
245
245
|
} else {
|
|
246
246
|
try {
|
|
247
|
-
|
|
248
|
-
} catch (
|
|
249
|
-
|
|
247
|
+
M.call();
|
|
248
|
+
} catch (nt) {
|
|
249
|
+
j = nt;
|
|
250
250
|
}
|
|
251
|
-
|
|
251
|
+
e.call(M.prototype);
|
|
252
252
|
}
|
|
253
253
|
} else {
|
|
254
254
|
try {
|
|
255
255
|
throw Error();
|
|
256
|
-
} catch (
|
|
257
|
-
|
|
256
|
+
} catch (nt) {
|
|
257
|
+
j = nt;
|
|
258
258
|
}
|
|
259
|
-
|
|
259
|
+
e();
|
|
260
260
|
}
|
|
261
|
-
} catch (
|
|
262
|
-
if (
|
|
263
|
-
for (var
|
|
264
|
-
`),
|
|
265
|
-
`), Y =
|
|
261
|
+
} catch (nt) {
|
|
262
|
+
if (nt && j && typeof nt.stack == "string") {
|
|
263
|
+
for (var R = nt.stack.split(`
|
|
264
|
+
`), rt = j.stack.split(`
|
|
265
|
+
`), Y = R.length - 1, Z = rt.length - 1; Y >= 1 && Z >= 0 && R[Y] !== rt[Z]; )
|
|
266
266
|
Z--;
|
|
267
267
|
for (; Y >= 1 && Z >= 0; Y--, Z--)
|
|
268
|
-
if (
|
|
268
|
+
if (R[Y] !== rt[Z]) {
|
|
269
269
|
if (Y !== 1 || Z !== 1)
|
|
270
270
|
do
|
|
271
|
-
if (Y--, Z--, Z < 0 ||
|
|
272
|
-
var
|
|
273
|
-
` +
|
|
274
|
-
return
|
|
271
|
+
if (Y--, Z--, Z < 0 || R[Y] !== rt[Z]) {
|
|
272
|
+
var pt = `
|
|
273
|
+
` + R[Y].replace(" at new ", " at ");
|
|
274
|
+
return e.displayName && pt.includes("<anonymous>") && (pt = pt.replace("<anonymous>", e.displayName)), typeof e == "function" && Rt.set(e, pt), pt;
|
|
275
275
|
}
|
|
276
276
|
while (Y >= 1 && Z >= 0);
|
|
277
277
|
break;
|
|
278
278
|
}
|
|
279
279
|
}
|
|
280
280
|
} finally {
|
|
281
|
-
|
|
281
|
+
Ht = !1, ht.current = D, Et(), Error.prepareStackTrace = B;
|
|
282
282
|
}
|
|
283
|
-
var
|
|
284
|
-
return typeof
|
|
283
|
+
var It = e ? e.displayName || e.name : "", kt = It ? jt(It) : "";
|
|
284
|
+
return typeof e == "function" && Rt.set(e, kt), kt;
|
|
285
285
|
}
|
|
286
|
-
function
|
|
287
|
-
return
|
|
286
|
+
function Qt(e, d, h) {
|
|
287
|
+
return Vt(e, !1);
|
|
288
288
|
}
|
|
289
|
-
function
|
|
290
|
-
var d =
|
|
289
|
+
function te(e) {
|
|
290
|
+
var d = e.prototype;
|
|
291
291
|
return !!(d && d.isReactComponent);
|
|
292
292
|
}
|
|
293
|
-
function G(
|
|
294
|
-
if (
|
|
293
|
+
function G(e, d, h) {
|
|
294
|
+
if (e == null)
|
|
295
295
|
return "";
|
|
296
|
-
if (typeof
|
|
297
|
-
return
|
|
298
|
-
if (typeof
|
|
299
|
-
return
|
|
300
|
-
switch (
|
|
296
|
+
if (typeof e == "function")
|
|
297
|
+
return Vt(e, te(e));
|
|
298
|
+
if (typeof e == "string")
|
|
299
|
+
return jt(e);
|
|
300
|
+
switch (e) {
|
|
301
301
|
case f:
|
|
302
|
-
return
|
|
302
|
+
return jt("Suspense");
|
|
303
303
|
case p:
|
|
304
|
-
return
|
|
304
|
+
return jt("SuspenseList");
|
|
305
305
|
}
|
|
306
|
-
if (typeof
|
|
307
|
-
switch (
|
|
306
|
+
if (typeof e == "object")
|
|
307
|
+
switch (e.$$typeof) {
|
|
308
308
|
case _:
|
|
309
|
-
return
|
|
310
|
-
case
|
|
311
|
-
return G(
|
|
312
|
-
case
|
|
313
|
-
var
|
|
309
|
+
return Qt(e.render);
|
|
310
|
+
case m:
|
|
311
|
+
return G(e.type, d, h);
|
|
312
|
+
case b: {
|
|
313
|
+
var j = e, B = j._payload, D = j._init;
|
|
314
314
|
try {
|
|
315
|
-
return G(D(B), d,
|
|
315
|
+
return G(D(B), d, h);
|
|
316
316
|
} catch {
|
|
317
317
|
}
|
|
318
318
|
}
|
|
319
319
|
}
|
|
320
320
|
return "";
|
|
321
321
|
}
|
|
322
|
-
var U = Object.prototype.hasOwnProperty,
|
|
323
|
-
function
|
|
324
|
-
if (
|
|
325
|
-
var d =
|
|
326
|
-
|
|
322
|
+
var U = Object.prototype.hasOwnProperty, mt = {}, ge = v.ReactDebugCurrentFrame;
|
|
323
|
+
function Xt(e) {
|
|
324
|
+
if (e) {
|
|
325
|
+
var d = e._owner, h = G(e.type, e._source, d ? d.type : null);
|
|
326
|
+
ge.setExtraStackFrame(h);
|
|
327
327
|
} else
|
|
328
|
-
|
|
328
|
+
ge.setExtraStackFrame(null);
|
|
329
329
|
}
|
|
330
|
-
function ar(
|
|
330
|
+
function ar(e, d, h, j, B) {
|
|
331
331
|
{
|
|
332
332
|
var D = Function.call.bind(U);
|
|
333
|
-
for (var
|
|
334
|
-
if (D(
|
|
335
|
-
var
|
|
333
|
+
for (var M in e)
|
|
334
|
+
if (D(e, M)) {
|
|
335
|
+
var R = void 0;
|
|
336
336
|
try {
|
|
337
|
-
if (typeof
|
|
338
|
-
var
|
|
339
|
-
throw
|
|
337
|
+
if (typeof e[M] != "function") {
|
|
338
|
+
var rt = Error((j || "React class") + ": " + h + " type `" + M + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[M] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
339
|
+
throw rt.name = "Invariant Violation", rt;
|
|
340
340
|
}
|
|
341
|
-
|
|
341
|
+
R = e[M](d, M, j, h, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
342
342
|
} catch (Y) {
|
|
343
|
-
|
|
343
|
+
R = Y;
|
|
344
344
|
}
|
|
345
|
-
|
|
345
|
+
R && !(R instanceof Error) && (Xt(B), u("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", j || "React class", h, M, typeof R), Xt(null)), R instanceof Error && !(R.message in mt) && (mt[R.message] = !0, Xt(B), u("Failed %s type: %s", h, R.message), Xt(null));
|
|
346
346
|
}
|
|
347
347
|
}
|
|
348
348
|
}
|
|
349
349
|
var nr = Array.isArray;
|
|
350
|
-
function
|
|
351
|
-
return nr(
|
|
350
|
+
function ee(e) {
|
|
351
|
+
return nr(e);
|
|
352
352
|
}
|
|
353
|
-
function or(
|
|
353
|
+
function or(e) {
|
|
354
354
|
{
|
|
355
|
-
var d = typeof Symbol == "function" && Symbol.toStringTag,
|
|
356
|
-
return
|
|
355
|
+
var d = typeof Symbol == "function" && Symbol.toStringTag, h = d && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
356
|
+
return h;
|
|
357
357
|
}
|
|
358
358
|
}
|
|
359
|
-
function sr(
|
|
359
|
+
function sr(e) {
|
|
360
360
|
try {
|
|
361
|
-
return
|
|
361
|
+
return he(e), !1;
|
|
362
362
|
} catch {
|
|
363
363
|
return !0;
|
|
364
364
|
}
|
|
365
365
|
}
|
|
366
|
-
function
|
|
367
|
-
return "" +
|
|
366
|
+
function he(e) {
|
|
367
|
+
return "" + e;
|
|
368
368
|
}
|
|
369
|
-
function
|
|
370
|
-
if (sr(
|
|
371
|
-
return u("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", or(
|
|
369
|
+
function me(e) {
|
|
370
|
+
if (sr(e))
|
|
371
|
+
return u("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", or(e)), he(e);
|
|
372
372
|
}
|
|
373
|
-
var
|
|
373
|
+
var be = v.ReactCurrentOwner, ir = {
|
|
374
374
|
key: !0,
|
|
375
375
|
ref: !0,
|
|
376
376
|
__self: !0,
|
|
377
377
|
__source: !0
|
|
378
|
-
},
|
|
379
|
-
function lr(
|
|
380
|
-
if (U.call(
|
|
381
|
-
var d = Object.getOwnPropertyDescriptor(
|
|
378
|
+
}, ye, xe;
|
|
379
|
+
function lr(e) {
|
|
380
|
+
if (U.call(e, "ref")) {
|
|
381
|
+
var d = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
382
382
|
if (d && d.isReactWarning)
|
|
383
383
|
return !1;
|
|
384
384
|
}
|
|
385
|
-
return
|
|
385
|
+
return e.ref !== void 0;
|
|
386
386
|
}
|
|
387
|
-
function cr(
|
|
388
|
-
if (U.call(
|
|
389
|
-
var d = Object.getOwnPropertyDescriptor(
|
|
387
|
+
function cr(e) {
|
|
388
|
+
if (U.call(e, "key")) {
|
|
389
|
+
var d = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
390
390
|
if (d && d.isReactWarning)
|
|
391
391
|
return !1;
|
|
392
392
|
}
|
|
393
|
-
return
|
|
393
|
+
return e.key !== void 0;
|
|
394
394
|
}
|
|
395
|
-
function dr(
|
|
396
|
-
typeof
|
|
395
|
+
function dr(e, d) {
|
|
396
|
+
typeof e.ref == "string" && be.current;
|
|
397
397
|
}
|
|
398
|
-
function ur(
|
|
398
|
+
function ur(e, d) {
|
|
399
399
|
{
|
|
400
|
-
var
|
|
401
|
-
|
|
400
|
+
var h = function() {
|
|
401
|
+
ye || (ye = !0, u("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", d));
|
|
402
402
|
};
|
|
403
|
-
|
|
404
|
-
get:
|
|
403
|
+
h.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
404
|
+
get: h,
|
|
405
405
|
configurable: !0
|
|
406
406
|
});
|
|
407
407
|
}
|
|
408
408
|
}
|
|
409
|
-
function _r(
|
|
409
|
+
function _r(e, d) {
|
|
410
410
|
{
|
|
411
|
-
var
|
|
412
|
-
|
|
411
|
+
var h = function() {
|
|
412
|
+
xe || (xe = !0, u("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", d));
|
|
413
413
|
};
|
|
414
|
-
|
|
415
|
-
get:
|
|
414
|
+
h.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
415
|
+
get: h,
|
|
416
416
|
configurable: !0
|
|
417
417
|
});
|
|
418
418
|
}
|
|
419
419
|
}
|
|
420
|
-
var pr = function(
|
|
421
|
-
var
|
|
420
|
+
var pr = function(e, d, h, j, B, D, M) {
|
|
421
|
+
var R = {
|
|
422
422
|
// This tag allows us to uniquely identify this as a React Element
|
|
423
423
|
$$typeof: r,
|
|
424
424
|
// Built-in properties that belong on the element
|
|
425
|
-
type:
|
|
425
|
+
type: e,
|
|
426
426
|
key: d,
|
|
427
|
-
ref:
|
|
428
|
-
props:
|
|
427
|
+
ref: h,
|
|
428
|
+
props: M,
|
|
429
429
|
// Record the component responsible for creating this element.
|
|
430
430
|
_owner: D
|
|
431
431
|
};
|
|
432
|
-
return
|
|
432
|
+
return R._store = {}, Object.defineProperty(R._store, "validated", {
|
|
433
433
|
configurable: !1,
|
|
434
434
|
enumerable: !1,
|
|
435
435
|
writable: !0,
|
|
436
436
|
value: !1
|
|
437
|
-
}), Object.defineProperty(
|
|
437
|
+
}), Object.defineProperty(R, "_self", {
|
|
438
438
|
configurable: !1,
|
|
439
439
|
enumerable: !1,
|
|
440
440
|
writable: !1,
|
|
441
|
-
value:
|
|
442
|
-
}), Object.defineProperty(
|
|
441
|
+
value: j
|
|
442
|
+
}), Object.defineProperty(R, "_source", {
|
|
443
443
|
configurable: !1,
|
|
444
444
|
enumerable: !1,
|
|
445
445
|
writable: !1,
|
|
446
446
|
value: B
|
|
447
|
-
}), Object.freeze && (Object.freeze(
|
|
447
|
+
}), Object.freeze && (Object.freeze(R.props), Object.freeze(R)), R;
|
|
448
448
|
};
|
|
449
|
-
function fr(
|
|
449
|
+
function fr(e, d, h, j, B) {
|
|
450
450
|
{
|
|
451
|
-
var D,
|
|
452
|
-
|
|
451
|
+
var D, M = {}, R = null, rt = null;
|
|
452
|
+
h !== void 0 && (me(h), R = "" + h), cr(d) && (me(d.key), R = "" + d.key), lr(d) && (rt = d.ref, dr(d, B));
|
|
453
453
|
for (D in d)
|
|
454
|
-
U.call(d, D) && !ir.hasOwnProperty(D) && (
|
|
455
|
-
if (
|
|
456
|
-
var Y =
|
|
454
|
+
U.call(d, D) && !ir.hasOwnProperty(D) && (M[D] = d[D]);
|
|
455
|
+
if (e && e.defaultProps) {
|
|
456
|
+
var Y = e.defaultProps;
|
|
457
457
|
for (D in Y)
|
|
458
|
-
|
|
458
|
+
M[D] === void 0 && (M[D] = Y[D]);
|
|
459
459
|
}
|
|
460
|
-
if (
|
|
461
|
-
var Z = typeof
|
|
462
|
-
|
|
460
|
+
if (R || rt) {
|
|
461
|
+
var Z = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
462
|
+
R && ur(M, Z), rt && _r(M, Z);
|
|
463
463
|
}
|
|
464
|
-
return pr(
|
|
464
|
+
return pr(e, R, rt, B, j, be.current, M);
|
|
465
465
|
}
|
|
466
466
|
}
|
|
467
|
-
var
|
|
468
|
-
function
|
|
469
|
-
if (
|
|
470
|
-
var d =
|
|
471
|
-
|
|
467
|
+
var re = v.ReactCurrentOwner, ve = v.ReactDebugCurrentFrame;
|
|
468
|
+
function Nt(e) {
|
|
469
|
+
if (e) {
|
|
470
|
+
var d = e._owner, h = G(e.type, e._source, d ? d.type : null);
|
|
471
|
+
ve.setExtraStackFrame(h);
|
|
472
472
|
} else
|
|
473
|
-
|
|
473
|
+
ve.setExtraStackFrame(null);
|
|
474
474
|
}
|
|
475
|
-
var
|
|
476
|
-
|
|
477
|
-
function
|
|
478
|
-
return typeof
|
|
475
|
+
var ae;
|
|
476
|
+
ae = !1;
|
|
477
|
+
function ne(e) {
|
|
478
|
+
return typeof e == "object" && e !== null && e.$$typeof === r;
|
|
479
479
|
}
|
|
480
|
-
function
|
|
480
|
+
function we() {
|
|
481
481
|
{
|
|
482
|
-
if (
|
|
483
|
-
var
|
|
484
|
-
if (
|
|
482
|
+
if (re.current) {
|
|
483
|
+
var e = S(re.current.type);
|
|
484
|
+
if (e)
|
|
485
485
|
return `
|
|
486
486
|
|
|
487
|
-
Check the render method of \`` +
|
|
487
|
+
Check the render method of \`` + e + "`.";
|
|
488
488
|
}
|
|
489
489
|
return "";
|
|
490
490
|
}
|
|
491
491
|
}
|
|
492
|
-
function gr(
|
|
492
|
+
function gr(e) {
|
|
493
493
|
return "";
|
|
494
494
|
}
|
|
495
|
-
var
|
|
496
|
-
function
|
|
495
|
+
var Ce = {};
|
|
496
|
+
function hr(e) {
|
|
497
497
|
{
|
|
498
|
-
var d =
|
|
498
|
+
var d = we();
|
|
499
499
|
if (!d) {
|
|
500
|
-
var
|
|
501
|
-
|
|
500
|
+
var h = typeof e == "string" ? e : e.displayName || e.name;
|
|
501
|
+
h && (d = `
|
|
502
502
|
|
|
503
|
-
Check the top-level render call using <` +
|
|
503
|
+
Check the top-level render call using <` + h + ">.");
|
|
504
504
|
}
|
|
505
505
|
return d;
|
|
506
506
|
}
|
|
507
507
|
}
|
|
508
|
-
function
|
|
508
|
+
function Se(e, d) {
|
|
509
509
|
{
|
|
510
|
-
if (!
|
|
510
|
+
if (!e._store || e._store.validated || e.key != null)
|
|
511
511
|
return;
|
|
512
|
-
|
|
513
|
-
var
|
|
514
|
-
if (
|
|
512
|
+
e._store.validated = !0;
|
|
513
|
+
var h = hr(d);
|
|
514
|
+
if (Ce[h])
|
|
515
515
|
return;
|
|
516
|
-
|
|
517
|
-
var
|
|
518
|
-
|
|
516
|
+
Ce[h] = !0;
|
|
517
|
+
var j = "";
|
|
518
|
+
e && e._owner && e._owner !== re.current && (j = " It was passed a child from " + S(e._owner.type) + "."), Nt(e), u('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', h, j), Nt(null);
|
|
519
519
|
}
|
|
520
520
|
}
|
|
521
|
-
function
|
|
521
|
+
function Le(e, d) {
|
|
522
522
|
{
|
|
523
|
-
if (typeof
|
|
523
|
+
if (typeof e != "object")
|
|
524
524
|
return;
|
|
525
|
-
if (
|
|
526
|
-
for (var
|
|
527
|
-
var
|
|
528
|
-
|
|
525
|
+
if (ee(e))
|
|
526
|
+
for (var h = 0; h < e.length; h++) {
|
|
527
|
+
var j = e[h];
|
|
528
|
+
ne(j) && Se(j, d);
|
|
529
529
|
}
|
|
530
|
-
else if (
|
|
531
|
-
|
|
532
|
-
else if (
|
|
533
|
-
var B =
|
|
534
|
-
if (typeof B == "function" && B !==
|
|
535
|
-
for (var D = B.call(
|
|
536
|
-
|
|
530
|
+
else if (ne(e))
|
|
531
|
+
e._store && (e._store.validated = !0);
|
|
532
|
+
else if (e) {
|
|
533
|
+
var B = x(e);
|
|
534
|
+
if (typeof B == "function" && B !== e.entries)
|
|
535
|
+
for (var D = B.call(e), M; !(M = D.next()).done; )
|
|
536
|
+
ne(M.value) && Se(M.value, d);
|
|
537
537
|
}
|
|
538
538
|
}
|
|
539
539
|
}
|
|
540
|
-
function
|
|
540
|
+
function mr(e) {
|
|
541
541
|
{
|
|
542
|
-
var d =
|
|
542
|
+
var d = e.type;
|
|
543
543
|
if (d == null || typeof d == "string")
|
|
544
544
|
return;
|
|
545
|
-
var
|
|
545
|
+
var h;
|
|
546
546
|
if (typeof d == "function")
|
|
547
|
-
|
|
547
|
+
h = d.propTypes;
|
|
548
548
|
else if (typeof d == "object" && (d.$$typeof === _ || // Note: Memo only checks outer props here.
|
|
549
549
|
// Inner props are checked in the reconciler.
|
|
550
|
-
d.$$typeof ===
|
|
551
|
-
|
|
550
|
+
d.$$typeof === m))
|
|
551
|
+
h = d.propTypes;
|
|
552
552
|
else
|
|
553
553
|
return;
|
|
554
|
-
if (
|
|
555
|
-
var
|
|
556
|
-
ar(
|
|
557
|
-
} else if (d.PropTypes !== void 0 && !
|
|
558
|
-
|
|
554
|
+
if (h) {
|
|
555
|
+
var j = S(d);
|
|
556
|
+
ar(h, e.props, "prop", j, e);
|
|
557
|
+
} else if (d.PropTypes !== void 0 && !ae) {
|
|
558
|
+
ae = !0;
|
|
559
559
|
var B = S(d);
|
|
560
560
|
u("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", B || "Unknown");
|
|
561
561
|
}
|
|
562
562
|
typeof d.getDefaultProps == "function" && !d.getDefaultProps.isReactClassApproved && u("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
563
563
|
}
|
|
564
564
|
}
|
|
565
|
-
function
|
|
565
|
+
function br(e) {
|
|
566
566
|
{
|
|
567
|
-
for (var d = Object.keys(
|
|
568
|
-
var
|
|
569
|
-
if (
|
|
570
|
-
|
|
567
|
+
for (var d = Object.keys(e.props), h = 0; h < d.length; h++) {
|
|
568
|
+
var j = d[h];
|
|
569
|
+
if (j !== "children" && j !== "key") {
|
|
570
|
+
Nt(e), u("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", j), Nt(null);
|
|
571
571
|
break;
|
|
572
572
|
}
|
|
573
573
|
}
|
|
574
|
-
|
|
574
|
+
e.ref !== null && (Nt(e), u("Invalid attribute `ref` supplied to `React.Fragment`."), Nt(null));
|
|
575
575
|
}
|
|
576
576
|
}
|
|
577
|
-
var
|
|
578
|
-
function
|
|
577
|
+
var je = {};
|
|
578
|
+
function ke(e, d, h, j, B, D) {
|
|
579
579
|
{
|
|
580
|
-
var
|
|
581
|
-
if (!
|
|
582
|
-
var
|
|
583
|
-
(
|
|
584
|
-
var
|
|
585
|
-
|
|
580
|
+
var M = W(e);
|
|
581
|
+
if (!M) {
|
|
582
|
+
var R = "";
|
|
583
|
+
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (R += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
584
|
+
var rt = gr();
|
|
585
|
+
rt ? R += rt : R += we();
|
|
586
586
|
var Y;
|
|
587
|
-
|
|
587
|
+
e === null ? Y = "null" : ee(e) ? Y = "array" : e !== void 0 && e.$$typeof === r ? (Y = "<" + (S(e.type) || "Unknown") + " />", R = " Did you accidentally export a JSX literal instead of a component?") : Y = typeof e, u("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Y, R);
|
|
588
588
|
}
|
|
589
|
-
var Z = fr(
|
|
589
|
+
var Z = fr(e, d, h, B, D);
|
|
590
590
|
if (Z == null)
|
|
591
591
|
return Z;
|
|
592
|
-
if (
|
|
593
|
-
var
|
|
594
|
-
if (
|
|
595
|
-
if (
|
|
596
|
-
if (
|
|
597
|
-
for (var
|
|
598
|
-
|
|
599
|
-
Object.freeze && Object.freeze(
|
|
592
|
+
if (M) {
|
|
593
|
+
var pt = d.children;
|
|
594
|
+
if (pt !== void 0)
|
|
595
|
+
if (j)
|
|
596
|
+
if (ee(pt)) {
|
|
597
|
+
for (var It = 0; It < pt.length; It++)
|
|
598
|
+
Le(pt[It], e);
|
|
599
|
+
Object.freeze && Object.freeze(pt);
|
|
600
600
|
} else
|
|
601
601
|
u("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
602
602
|
else
|
|
603
|
-
|
|
603
|
+
Le(pt, e);
|
|
604
604
|
}
|
|
605
605
|
if (U.call(d, "key")) {
|
|
606
|
-
var
|
|
606
|
+
var kt = S(e), nt = Object.keys(d).filter(function(Sr) {
|
|
607
607
|
return Sr !== "key";
|
|
608
|
-
}),
|
|
609
|
-
if (!
|
|
610
|
-
var Cr =
|
|
608
|
+
}), oe = nt.length > 0 ? "{key: someKey, " + nt.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
609
|
+
if (!je[kt + oe]) {
|
|
610
|
+
var Cr = nt.length > 0 ? "{" + nt.join(": ..., ") + ": ...}" : "{}";
|
|
611
611
|
u(`A props object containing a "key" prop is being spread into JSX:
|
|
612
612
|
let props = %s;
|
|
613
613
|
<%s {...props} />
|
|
614
614
|
React keys must be passed directly to JSX without using spread:
|
|
615
615
|
let props = %s;
|
|
616
|
-
<%s key={someKey} {...props} />`,
|
|
616
|
+
<%s key={someKey} {...props} />`, oe, kt, Cr, kt), je[kt + oe] = !0;
|
|
617
617
|
}
|
|
618
618
|
}
|
|
619
|
-
return
|
|
619
|
+
return e === n ? br(Z) : mr(Z), Z;
|
|
620
620
|
}
|
|
621
621
|
}
|
|
622
|
-
function yr(
|
|
623
|
-
return
|
|
622
|
+
function yr(e, d, h) {
|
|
623
|
+
return ke(e, d, h, !0);
|
|
624
624
|
}
|
|
625
|
-
function xr(
|
|
626
|
-
return
|
|
625
|
+
function xr(e, d, h) {
|
|
626
|
+
return ke(e, d, h, !1);
|
|
627
627
|
}
|
|
628
628
|
var vr = xr, wr = yr;
|
|
629
|
-
|
|
630
|
-
}()),
|
|
629
|
+
Wt.Fragment = n, Wt.jsx = vr, Wt.jsxs = wr;
|
|
630
|
+
}()), Wt;
|
|
631
631
|
}
|
|
632
|
-
var
|
|
632
|
+
var Te;
|
|
633
633
|
function Nr() {
|
|
634
|
-
return
|
|
634
|
+
return Te || (Te = 1, process.env.NODE_ENV === "production" ? Yt.exports = Tr() : Yt.exports = Rr()), Yt.exports;
|
|
635
635
|
}
|
|
636
636
|
var o = Nr();
|
|
637
|
-
const Ir = (
|
|
637
|
+
const Ir = (t) => t.as === "a", Mr = (t) => t.as === void 0 || t.as === "button", Mt = (t) => t.displayAs === void 0 || t.displayAs === "button", se = (t) => t.displayAs === "link", Or = "_button_6bymk_1", Ar = "_link_6bymk_17", Pr = "_disabled_6bymk_22", Br = "_loading_6bymk_22", zr = "_neutral_6bymk_50", Dr = "_accent_6bymk_54", Wr = "_positive_6bymk_58", Fr = "_negative_6bymk_62", qr = "_contrast_6bymk_66", Hr = "_special_6bymk_70", Vr = "_primary_6bymk_74", Xr = "_secondary_6bymk_75", Yr = "_tertiary_6bymk_76", Zr = "_spaceBetween_6bymk_116", Gr = "_rightGroup_6bymk_116", Ur = "_label_6bymk_136", Jr = "_iconOnly_6bymk_155", Kr = "_stretched_6bymk_171", Qr = "_icon_6bymk_155", ta = "_postfix_6bymk_176", ea = "_underline_6bymk_202", ra = "_warning_6bymk_1082", aa = "_withSubcaption_6bymk_1268", na = "_subcaption_6bymk_1273", oa = "_loader_6bymk_1279", sa = "_spin_6bymk_1", ia = "_l_6bymk_17", la = "_m_6bymk_1318", ca = "_s_6bymk_70", da = "_xs_6bymk_1364", ua = "_iconRight_6bymk_1410", V = {
|
|
638
638
|
button: Or,
|
|
639
639
|
link: Ar,
|
|
640
640
|
disabled: Pr,
|
|
@@ -654,8 +654,8 @@ const Ir = (e) => e.as === "a", Mr = (e) => e.as === void 0 || e.as === "button"
|
|
|
654
654
|
iconOnly: Jr,
|
|
655
655
|
stretched: Kr,
|
|
656
656
|
icon: Qr,
|
|
657
|
-
postfix:
|
|
658
|
-
underline:
|
|
657
|
+
postfix: ta,
|
|
658
|
+
underline: ea,
|
|
659
659
|
warning: ra,
|
|
660
660
|
withSubcaption: aa,
|
|
661
661
|
subcaption: na,
|
|
@@ -683,20 +683,20 @@ const Ir = (e) => e.as === "a", Mr = (e) => e.as === void 0 || e.as === "button"
|
|
|
683
683
|
"as",
|
|
684
684
|
"showUnderline",
|
|
685
685
|
"isExternal"
|
|
686
|
-
]),
|
|
686
|
+
]), Re = (t) => {
|
|
687
687
|
const r = {};
|
|
688
|
-
for (const a in
|
|
689
|
-
_a.has(a) || (r[a] =
|
|
688
|
+
for (const a in t)
|
|
689
|
+
_a.has(a) || (r[a] = t[a]);
|
|
690
690
|
return r;
|
|
691
691
|
}, pa = {
|
|
692
692
|
l: "typography-subtitle-1-semibold",
|
|
693
693
|
m: "typography-label-2-regular",
|
|
694
694
|
s: "typography-label-3-regular"
|
|
695
695
|
};
|
|
696
|
-
function fa(
|
|
697
|
-
return pa[
|
|
696
|
+
function fa(t) {
|
|
697
|
+
return pa[t] || "typography-label-2-regular";
|
|
698
698
|
}
|
|
699
|
-
const
|
|
699
|
+
const it = {
|
|
700
700
|
"typography-title-1-semibold": "_typography-title-1-semibold_1lyxn_1",
|
|
701
701
|
"typography-title-2-semibold": "_typography-title-2-semibold_1lyxn_10",
|
|
702
702
|
"typography-title-3-semibold": "_typography-title-3-semibold_1lyxn_19",
|
|
@@ -720,8 +720,8 @@ const ie = {
|
|
|
720
720
|
"typography-paragraph-2-regular": "_typography-paragraph-2-regular_1lyxn_176",
|
|
721
721
|
"typography-paragraph-3-regular": "_typography-paragraph-3-regular_1lyxn_185",
|
|
722
722
|
"typography-paragraph-4-regular": "_typography-paragraph-4-regular_1lyxn_194"
|
|
723
|
-
},
|
|
724
|
-
isLoading:
|
|
723
|
+
}, Ne = ({
|
|
724
|
+
isLoading: t,
|
|
725
725
|
iconRight: r,
|
|
726
726
|
iconLeft: a,
|
|
727
727
|
children: n,
|
|
@@ -730,15 +730,15 @@ const ie = {
|
|
|
730
730
|
size: l,
|
|
731
731
|
isAsButton: c
|
|
732
732
|
}) => {
|
|
733
|
-
if (
|
|
733
|
+
if (t && c)
|
|
734
734
|
return /* @__PURE__ */ o.jsx("span", { className: V.loader, "data-testid": "button-loader", "aria-hidden": "true" });
|
|
735
735
|
const _ = r && c || r && !c && l, f = s && c && l !== "s" && l !== "xs";
|
|
736
|
-
return /* @__PURE__ */ o.jsxs(
|
|
737
|
-
f && /* @__PURE__ */ o.jsxs(
|
|
736
|
+
return /* @__PURE__ */ o.jsxs(Pt, { children: [
|
|
737
|
+
f && /* @__PURE__ */ o.jsxs(Pt, { children: [
|
|
738
738
|
/* @__PURE__ */ o.jsx("span", { "data-testid": "button-label", className: V.label, children: n }),
|
|
739
739
|
/* @__PURE__ */ o.jsx("span", { "data-testid": "button-subcaption", className: V.subcaption, children: s })
|
|
740
740
|
] }),
|
|
741
|
-
!f && n && /* @__PURE__ */ o.jsxs(
|
|
741
|
+
!f && n && /* @__PURE__ */ o.jsxs(Pt, { children: [
|
|
742
742
|
/* @__PURE__ */ o.jsxs("span", { "data-testid": "button-label", className: V.label, children: [
|
|
743
743
|
!c && a && /* @__PURE__ */ o.jsx("span", { "data-testid": "button-left-icon", className: V.icon, children: a }),
|
|
744
744
|
n,
|
|
@@ -751,18 +751,18 @@ const ie = {
|
|
|
751
751
|
] }),
|
|
752
752
|
!f && !n && /* @__PURE__ */ o.jsx("span", { "data-testid": "button-icon", className: V.icon, children: r })
|
|
753
753
|
] });
|
|
754
|
-
}, ga = K((
|
|
754
|
+
}, ga = K((t, r) => {
|
|
755
755
|
const {
|
|
756
756
|
mode: a = "primary",
|
|
757
757
|
size: n = "m",
|
|
758
|
-
buttonStyle: i =
|
|
758
|
+
buttonStyle: i = Mt(t) ? "neutral" : "accent",
|
|
759
759
|
disabled: s = !1,
|
|
760
760
|
displayAs: l = "button",
|
|
761
761
|
iconRight: c,
|
|
762
762
|
className: _,
|
|
763
763
|
children: f,
|
|
764
764
|
tabIndex: p
|
|
765
|
-
} =
|
|
765
|
+
} = t, m = Mt(t) ? t.subcaption : void 0, b = Mt(t) ? t.postfix : void 0, g = Mt(t) ? t.stretched : void 0, y = !(se(t) && t.size === void 0), C = se(t) && y ? t.iconLeft : void 0, x = !!(l === "button" && "loading" in t && t.loading), v = Mt(t) ? s : s || x, u = !v && !x, w = y ? c : void 0, L = !!(w && !f), E = typeof g == "object" ? g.justify === "space-between" : void 0, k = se(t) ? fa(t.size ?? "m") : void 0, T = k ? it[k] : void 0, O = v || x ? -1 : p, A = $(
|
|
766
766
|
V.button,
|
|
767
767
|
V[n],
|
|
768
768
|
V[a],
|
|
@@ -770,59 +770,59 @@ const ie = {
|
|
|
770
770
|
T,
|
|
771
771
|
{
|
|
772
772
|
[V.disabled]: v,
|
|
773
|
-
[V.loading]: l === "button" && "loading" in
|
|
774
|
-
[V.stretched]:
|
|
773
|
+
[V.loading]: l === "button" && "loading" in t && t.loading,
|
|
774
|
+
[V.stretched]: g,
|
|
775
775
|
[V.spaceBetween]: E,
|
|
776
|
-
[V.withSubcaption]:
|
|
776
|
+
[V.withSubcaption]: m && n !== "s" && n !== "xs",
|
|
777
777
|
[V.iconOnly]: L,
|
|
778
778
|
[V.link]: l === "link",
|
|
779
|
-
[V.underline]: l === "link" && "showUnderline" in
|
|
779
|
+
[V.underline]: l === "link" && "showUnderline" in t && t.showUnderline
|
|
780
780
|
},
|
|
781
781
|
_
|
|
782
782
|
), W = {
|
|
783
|
-
isLoading:
|
|
783
|
+
isLoading: x,
|
|
784
784
|
iconRight: w,
|
|
785
785
|
iconLeft: C,
|
|
786
786
|
children: f,
|
|
787
|
-
postfix:
|
|
788
|
-
subcaption:
|
|
787
|
+
postfix: b,
|
|
788
|
+
subcaption: m,
|
|
789
789
|
size: n,
|
|
790
|
-
isAsButton:
|
|
790
|
+
isAsButton: Mt(t)
|
|
791
791
|
};
|
|
792
|
-
if (Ir(
|
|
793
|
-
const { href: q, onClick: P, style: S, target:
|
|
794
|
-
let
|
|
795
|
-
if (
|
|
796
|
-
const
|
|
797
|
-
|
|
798
|
-
}
|
|
799
|
-
const
|
|
792
|
+
if (Ir(t)) {
|
|
793
|
+
const { href: q, onClick: P, style: S, target: I, rel: z, "data-testid": F, ...X } = t, Q = Re(X), ct = I ?? (t.isExternal ? "_blank" : void 0);
|
|
794
|
+
let at = z;
|
|
795
|
+
if (ct === "_blank") {
|
|
796
|
+
const et = new Set((z ?? "").split(/\s+/).filter(Boolean));
|
|
797
|
+
et.add("noopener").add("noreferrer"), at = Array.from(et).join(" ");
|
|
798
|
+
}
|
|
799
|
+
const tt = (et) => {
|
|
800
800
|
if (!u) {
|
|
801
|
-
|
|
801
|
+
et.preventDefault();
|
|
802
802
|
return;
|
|
803
803
|
}
|
|
804
|
-
P == null || P(
|
|
804
|
+
P == null || P(et);
|
|
805
805
|
};
|
|
806
806
|
return /* @__PURE__ */ o.jsx(
|
|
807
807
|
"a",
|
|
808
808
|
{
|
|
809
809
|
ref: r,
|
|
810
|
-
className:
|
|
810
|
+
className: A,
|
|
811
811
|
href: u ? q : void 0,
|
|
812
|
-
tabIndex:
|
|
813
|
-
onClick:
|
|
812
|
+
tabIndex: O,
|
|
813
|
+
onClick: tt,
|
|
814
814
|
"data-testid": F,
|
|
815
|
-
"aria-disabled": v ||
|
|
815
|
+
"aria-disabled": v || x,
|
|
816
816
|
style: S,
|
|
817
|
-
target:
|
|
818
|
-
rel:
|
|
817
|
+
target: ct,
|
|
818
|
+
rel: at,
|
|
819
819
|
...Q,
|
|
820
|
-
children: /* @__PURE__ */ o.jsx(
|
|
820
|
+
children: /* @__PURE__ */ o.jsx(Ne, { ...W })
|
|
821
821
|
}
|
|
822
822
|
);
|
|
823
823
|
}
|
|
824
|
-
if (Mr(
|
|
825
|
-
const { type: q = "button", onClick: P, style: S, "data-testid":
|
|
824
|
+
if (Mr(t)) {
|
|
825
|
+
const { type: q = "button", onClick: P, style: S, "data-testid": I, ...z } = t, F = Re(z), X = (Q) => {
|
|
826
826
|
u && P && P(Q);
|
|
827
827
|
};
|
|
828
828
|
return /* @__PURE__ */ o.jsx(
|
|
@@ -830,29 +830,29 @@ const ie = {
|
|
|
830
830
|
{
|
|
831
831
|
ref: r,
|
|
832
832
|
type: q,
|
|
833
|
-
className:
|
|
833
|
+
className: A,
|
|
834
834
|
disabled: v,
|
|
835
|
-
tabIndex:
|
|
835
|
+
tabIndex: O,
|
|
836
836
|
onClick: X,
|
|
837
|
-
"data-testid":
|
|
838
|
-
"aria-disabled": v ||
|
|
837
|
+
"data-testid": I,
|
|
838
|
+
"aria-disabled": v || x,
|
|
839
839
|
style: S,
|
|
840
840
|
...F,
|
|
841
|
-
children: /* @__PURE__ */ o.jsx(
|
|
841
|
+
children: /* @__PURE__ */ o.jsx(Ne, { ...W })
|
|
842
842
|
}
|
|
843
843
|
);
|
|
844
844
|
}
|
|
845
845
|
return null;
|
|
846
846
|
});
|
|
847
|
-
var
|
|
847
|
+
var ie = { exports: {} };
|
|
848
848
|
/*!
|
|
849
849
|
Copyright (c) 2018 Jed Watson.
|
|
850
850
|
Licensed under the MIT License (MIT), see
|
|
851
851
|
http://jedwatson.github.io/classnames
|
|
852
852
|
*/
|
|
853
|
-
var
|
|
854
|
-
function
|
|
855
|
-
return
|
|
853
|
+
var Ie;
|
|
854
|
+
function ha() {
|
|
855
|
+
return Ie || (Ie = 1, function(t) {
|
|
856
856
|
(function() {
|
|
857
857
|
var r = {}.hasOwnProperty;
|
|
858
858
|
function a() {
|
|
@@ -879,13 +879,13 @@ function ba() {
|
|
|
879
879
|
function i(s, l) {
|
|
880
880
|
return l ? s ? s + " " + l : s + l : s;
|
|
881
881
|
}
|
|
882
|
-
|
|
882
|
+
t.exports ? (a.default = a, t.exports = a) : window.classNames = a;
|
|
883
883
|
})();
|
|
884
|
-
}(
|
|
884
|
+
}(ie)), ie.exports;
|
|
885
885
|
}
|
|
886
|
-
var
|
|
887
|
-
const
|
|
888
|
-
avatar:
|
|
886
|
+
var ma = ha();
|
|
887
|
+
const Lt = /* @__PURE__ */ Er(ma), ba = "_avatar_19ug4_18", ya = "_clickable_19ug4_40", xa = "_icon_19ug4_57", va = "_disabled_19ug4_62", wa = "_loading_19ug4_67", Ca = "_image_19ug4_73", Sa = "_name_19ug4_73", yt = {
|
|
888
|
+
avatar: ba,
|
|
889
889
|
clickable: ya,
|
|
890
890
|
icon: xa,
|
|
891
891
|
disabled: va,
|
|
@@ -905,12 +905,12 @@ const $e = /* @__PURE__ */ Er(ha), ma = "_avatar_19ug4_18", ya = "_clickable_19u
|
|
|
905
905
|
"color-contrast": "_color-contrast_19ug4_166",
|
|
906
906
|
"variant-light": "_variant-light_19ug4_172",
|
|
907
907
|
"variant-outline": "_variant-outline_19ug4_244"
|
|
908
|
-
},
|
|
909
|
-
function La(
|
|
910
|
-
return
|
|
908
|
+
}, Me = 99;
|
|
909
|
+
function La(t) {
|
|
910
|
+
return t < Me ? `+${t}` : `${Me}+`;
|
|
911
911
|
}
|
|
912
|
-
function
|
|
913
|
-
const r = typeof
|
|
912
|
+
function Jt(t) {
|
|
913
|
+
const r = typeof t == "string" ? t : JSON.stringify(t);
|
|
914
914
|
let a = 5381;
|
|
915
915
|
for (let n = 0; n < r.length; n++) {
|
|
916
916
|
const i = r.charCodeAt(n);
|
|
@@ -918,7 +918,7 @@ function Ke(e) {
|
|
|
918
918
|
}
|
|
919
919
|
return a >>> 0;
|
|
920
920
|
}
|
|
921
|
-
const ja = (
|
|
921
|
+
const ja = (t, r, a) => Math.min(Math.max(t, r), a), ka = [
|
|
922
922
|
"red",
|
|
923
923
|
"orange",
|
|
924
924
|
"yellow",
|
|
@@ -927,16 +927,16 @@ const ja = (e, r, a) => Math.min(Math.max(e, r), a), ka = [
|
|
|
927
927
|
"lightblue",
|
|
928
928
|
"purple"
|
|
929
929
|
];
|
|
930
|
-
function $a(
|
|
931
|
-
if (!
|
|
932
|
-
const a =
|
|
930
|
+
function $a(t, r = ka) {
|
|
931
|
+
if (!t) return "gray";
|
|
932
|
+
const a = Jt(t), n = Math.abs(a) % r.length;
|
|
933
933
|
return r[n];
|
|
934
934
|
}
|
|
935
|
-
const
|
|
936
|
-
function Ea(
|
|
937
|
-
if (!
|
|
938
|
-
const r =
|
|
939
|
-
return r.length === 1 ?
|
|
935
|
+
const Oe = 2;
|
|
936
|
+
function Ea(t) {
|
|
937
|
+
if (!t) return "";
|
|
938
|
+
const r = t.trim().split(/\s+/);
|
|
939
|
+
return r.length === 1 ? t.slice(0, Oe).toUpperCase() : r.map((a) => a[0]).slice(0, Oe).join("").toUpperCase();
|
|
940
940
|
}
|
|
941
941
|
const Ta = {
|
|
942
942
|
24: 8,
|
|
@@ -949,8 +949,8 @@ const Ta = {
|
|
|
949
949
|
96: 24,
|
|
950
950
|
208: 8
|
|
951
951
|
};
|
|
952
|
-
function Ra(
|
|
953
|
-
return r === "circle" ?
|
|
952
|
+
function Ra(t, r) {
|
|
953
|
+
return r === "circle" ? t / 2 : Ta[t] || 12;
|
|
954
954
|
}
|
|
955
955
|
const Na = {
|
|
956
956
|
24: "typography-subtitle-4-semibold",
|
|
@@ -963,15 +963,15 @@ const Na = {
|
|
|
963
963
|
96: "typography-title-3-semibold",
|
|
964
964
|
208: "typography-title-1-semibold"
|
|
965
965
|
};
|
|
966
|
-
function Ia(
|
|
967
|
-
return Na[
|
|
966
|
+
function Ia(t) {
|
|
967
|
+
return Na[t] || "typography-subtitle-1-semibold";
|
|
968
968
|
}
|
|
969
969
|
const Ma = "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", Oa = "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", Aa = "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", Pa = "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", Ba = {
|
|
970
970
|
male: Ma,
|
|
971
971
|
female: Oa,
|
|
972
972
|
org: Pa,
|
|
973
973
|
neutral: Aa
|
|
974
|
-
},
|
|
974
|
+
}, Gt = K((t, r) => {
|
|
975
975
|
const {
|
|
976
976
|
style: a,
|
|
977
977
|
size: n = 40,
|
|
@@ -982,66 +982,66 @@ const Ma = "data:image/svg+xml,%3csvg%20opacity='0.9'%20preserveAspectRatio='xMi
|
|
|
982
982
|
placeholderType: _ = "neutral",
|
|
983
983
|
name: f,
|
|
984
984
|
imgSrc: p,
|
|
985
|
-
imgAlt:
|
|
986
|
-
icon:
|
|
987
|
-
imgProps:
|
|
988
|
-
colorScheme:
|
|
985
|
+
imgAlt: m,
|
|
986
|
+
icon: b,
|
|
987
|
+
imgProps: g,
|
|
988
|
+
colorScheme: y,
|
|
989
989
|
className: C,
|
|
990
|
-
"data-testid":
|
|
990
|
+
"data-testid": x,
|
|
991
991
|
...v
|
|
992
|
-
} =
|
|
993
|
-
|
|
992
|
+
} = t, { onClick: u, onPointerDown: w } = v, E = !s && !i && (!!u || !!w), [k, T] = _t(!1);
|
|
993
|
+
lt(() => {
|
|
994
994
|
p && T(!1);
|
|
995
995
|
}, [p]);
|
|
996
|
-
const
|
|
996
|
+
const O = p && !k ? "image" : b ? "icon" : f ? "name" : "placeholder", A = y || O === "name" && $a(f) || "gray", W = Ia(n), q = Ra(n, l), P = $(
|
|
997
997
|
C,
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
998
|
+
yt.avatar,
|
|
999
|
+
yt[`variant-${c}`],
|
|
1000
|
+
yt[`color-${A}`],
|
|
1001
|
+
it[W],
|
|
1002
1002
|
{
|
|
1003
|
-
[
|
|
1004
|
-
[
|
|
1005
|
-
[
|
|
1003
|
+
[yt.disabled]: s,
|
|
1004
|
+
[yt.loading]: i,
|
|
1005
|
+
[yt.clickable]: E
|
|
1006
1006
|
}
|
|
1007
1007
|
), S = {
|
|
1008
1008
|
"--avatar-size": `${n}px`,
|
|
1009
1009
|
"--avatar-border-radius": `${q}px`,
|
|
1010
1010
|
...a
|
|
1011
|
-
},
|
|
1012
|
-
icon: () => /* @__PURE__ */ o.jsx("span", { "data-testid": "avatar-icon", title:
|
|
1011
|
+
}, I = {
|
|
1012
|
+
icon: () => /* @__PURE__ */ o.jsx("span", { "data-testid": "avatar-icon", title: m || void 0, role: "img", className: yt.icon, children: b == null ? void 0 : b({}) }),
|
|
1013
1013
|
name: () => /* @__PURE__ */ o.jsx(
|
|
1014
1014
|
"span",
|
|
1015
1015
|
{
|
|
1016
1016
|
role: "textbox",
|
|
1017
1017
|
"data-testid": "avatar-name",
|
|
1018
|
-
className:
|
|
1019
|
-
title:
|
|
1018
|
+
className: yt.name,
|
|
1019
|
+
title: m || void 0,
|
|
1020
1020
|
children: Ea(f || "")
|
|
1021
1021
|
}
|
|
1022
1022
|
),
|
|
1023
1023
|
placeholder: () => /* @__PURE__ */ o.jsx(
|
|
1024
1024
|
"img",
|
|
1025
1025
|
{
|
|
1026
|
-
...
|
|
1026
|
+
...g,
|
|
1027
1027
|
"data-testid": "avatar-placeholder",
|
|
1028
|
-
className:
|
|
1028
|
+
className: yt.image,
|
|
1029
1029
|
src: Ba[_],
|
|
1030
|
-
alt:
|
|
1030
|
+
alt: m || void 0
|
|
1031
1031
|
}
|
|
1032
1032
|
),
|
|
1033
1033
|
image: () => /* @__PURE__ */ o.jsx(
|
|
1034
1034
|
"img",
|
|
1035
1035
|
{
|
|
1036
1036
|
"data-testid": "avatar-image",
|
|
1037
|
-
...
|
|
1038
|
-
className:
|
|
1037
|
+
...g,
|
|
1038
|
+
className: yt.image,
|
|
1039
1039
|
src: p || void 0,
|
|
1040
|
-
alt:
|
|
1040
|
+
alt: m || void 0,
|
|
1041
1041
|
onLoad: () => T(!1),
|
|
1042
1042
|
onError: (F) => {
|
|
1043
1043
|
var X;
|
|
1044
|
-
T(!0), (X =
|
|
1044
|
+
T(!0), (X = g == null ? void 0 : g.onError) == null || X.call(g, F);
|
|
1045
1045
|
}
|
|
1046
1046
|
}
|
|
1047
1047
|
)
|
|
@@ -1055,51 +1055,51 @@ const Ma = "data:image/svg+xml,%3csvg%20opacity='0.9'%20preserveAspectRatio='xMi
|
|
|
1055
1055
|
onClick: z,
|
|
1056
1056
|
className: P,
|
|
1057
1057
|
style: S,
|
|
1058
|
-
"data-testid":
|
|
1058
|
+
"data-testid": x,
|
|
1059
1059
|
"aria-disabled": s || i,
|
|
1060
|
-
children: O
|
|
1060
|
+
children: I[O](null)
|
|
1061
1061
|
}
|
|
1062
1062
|
);
|
|
1063
1063
|
}), za = "_avatarGroup_157g4_1", Da = {
|
|
1064
1064
|
avatarGroup: za
|
|
1065
|
-
}, Wa = (
|
|
1066
|
-
if (!
|
|
1067
|
-
let r =
|
|
1065
|
+
}, Wa = (t) => t === "rgba(0, 0, 0, 0)" || t === "transparent" || t.startsWith("rgba") && t.endsWith(", 0)"), Fa = (t) => {
|
|
1066
|
+
if (!t) return null;
|
|
1067
|
+
let r = t;
|
|
1068
1068
|
for (; r; ) {
|
|
1069
1069
|
const n = window.getComputedStyle(r).backgroundColor;
|
|
1070
1070
|
if (!Wa(n)) return n;
|
|
1071
1071
|
r = r.parentElement;
|
|
1072
1072
|
}
|
|
1073
1073
|
return null;
|
|
1074
|
-
},
|
|
1075
|
-
const
|
|
1076
|
-
return
|
|
1077
|
-
if (
|
|
1078
|
-
const n = Fa(
|
|
1074
|
+
}, fe = () => {
|
|
1075
|
+
const t = qt(null), [r, a] = _t(null);
|
|
1076
|
+
return lt(() => {
|
|
1077
|
+
if (t.current) {
|
|
1078
|
+
const n = Fa(t.current);
|
|
1079
1079
|
a(n);
|
|
1080
1080
|
}
|
|
1081
|
-
}, []), { ref:
|
|
1081
|
+
}, []), { ref: t, bgColor: r };
|
|
1082
1082
|
};
|
|
1083
|
-
function
|
|
1084
|
-
|
|
1083
|
+
function Ae(t, r, a) {
|
|
1084
|
+
lt(() => (window.addEventListener(t, r, a), () => window.removeEventListener(t, r, a)), [t, r]);
|
|
1085
1085
|
}
|
|
1086
|
-
const
|
|
1086
|
+
const Pe = {
|
|
1087
1087
|
passive: !0
|
|
1088
1088
|
};
|
|
1089
1089
|
function qa() {
|
|
1090
|
-
const [
|
|
1090
|
+
const [t, r] = _t({
|
|
1091
1091
|
width: 0,
|
|
1092
1092
|
height: 0
|
|
1093
|
-
}), a =
|
|
1093
|
+
}), a = St(() => {
|
|
1094
1094
|
r({ width: window.innerWidth || 0, height: window.innerHeight || 0 });
|
|
1095
1095
|
}, []);
|
|
1096
|
-
return
|
|
1096
|
+
return Ae("resize", a, Pe), Ae("orientationchange", a, Pe), lt(a, []), t;
|
|
1097
1097
|
}
|
|
1098
|
-
function Ha(
|
|
1098
|
+
function Ha(t = 768) {
|
|
1099
1099
|
const { width: r } = qa();
|
|
1100
|
-
return Lr(() => r <=
|
|
1100
|
+
return Lr(() => r <= t, [r, t]);
|
|
1101
1101
|
}
|
|
1102
|
-
const Va = 2, Xa = (
|
|
1102
|
+
const Va = 2, Xa = (t) => {
|
|
1103
1103
|
const {
|
|
1104
1104
|
avatars: r = [],
|
|
1105
1105
|
size: a = 40,
|
|
@@ -1108,11 +1108,11 @@ const Va = 2, Xa = (e) => {
|
|
|
1108
1108
|
overflowCount: s = 0,
|
|
1109
1109
|
overflowProps: l,
|
|
1110
1110
|
cutoutBackground: c
|
|
1111
|
-
} =
|
|
1112
|
-
"--avatar-cutout-bg":
|
|
1111
|
+
} = t, f = -(a * n) + Va, { ref: p, bgColor: m } = fe(), b = c || m || "#ffffff", g = Lt(Da.avatarGroup), y = {
|
|
1112
|
+
"--avatar-cutout-bg": b
|
|
1113
1113
|
};
|
|
1114
|
-
return r.length === 0 ? null : /* @__PURE__ */ o.jsxs("div", { className:
|
|
1115
|
-
r.map((C,
|
|
1114
|
+
return r.length === 0 ? null : /* @__PURE__ */ o.jsxs("div", { className: g, ref: p, style: y, children: [
|
|
1115
|
+
r.map((C, x) => {
|
|
1116
1116
|
if (C.wrapper) {
|
|
1117
1117
|
const v = C.wrapper;
|
|
1118
1118
|
return /* @__PURE__ */ o.jsx(
|
|
@@ -1121,9 +1121,9 @@ const Va = 2, Xa = (e) => {
|
|
|
1121
1121
|
style: {
|
|
1122
1122
|
marginRight: f
|
|
1123
1123
|
},
|
|
1124
|
-
children: /* @__PURE__ */ o.jsx(v, { children: /* @__PURE__ */ o.jsx(
|
|
1124
|
+
children: /* @__PURE__ */ o.jsx(v, { children: /* @__PURE__ */ o.jsx(Gt, { size: a, shape: i, ...C }) })
|
|
1125
1125
|
},
|
|
1126
|
-
|
|
1126
|
+
Jt(C) + x
|
|
1127
1127
|
);
|
|
1128
1128
|
}
|
|
1129
1129
|
return /* @__PURE__ */ o.jsx(
|
|
@@ -1132,13 +1132,13 @@ const Va = 2, Xa = (e) => {
|
|
|
1132
1132
|
style: {
|
|
1133
1133
|
marginRight: f
|
|
1134
1134
|
},
|
|
1135
|
-
children: /* @__PURE__ */ o.jsx(
|
|
1135
|
+
children: /* @__PURE__ */ o.jsx(Gt, { size: a, shape: i, ...C })
|
|
1136
1136
|
},
|
|
1137
|
-
|
|
1137
|
+
Jt(C) + x
|
|
1138
1138
|
);
|
|
1139
1139
|
}),
|
|
1140
1140
|
s > 0 && /* @__PURE__ */ o.jsx("div", { style: { marginRight: f }, children: /* @__PURE__ */ o.jsx(
|
|
1141
|
-
|
|
1141
|
+
Gt,
|
|
1142
1142
|
{
|
|
1143
1143
|
size: a,
|
|
1144
1144
|
shape: i,
|
|
@@ -1149,47 +1149,47 @@ const Va = 2, Xa = (e) => {
|
|
|
1149
1149
|
}
|
|
1150
1150
|
) })
|
|
1151
1151
|
] });
|
|
1152
|
-
},
|
|
1152
|
+
}, Al = Object.assign(Gt, {
|
|
1153
1153
|
Group: Xa
|
|
1154
|
-
}), Ya = "
|
|
1154
|
+
}), Ya = "_wrapper_1mnix_5", Za = "_badge__container_1mnix_6", Ga = "_badge__content_1mnix_7", Ua = "_interactive_1mnix_20", Ja = "_disabled_1mnix_21", Ka = "_icon_1mnix_22", xt = {
|
|
1155
1155
|
wrapper: Ya,
|
|
1156
1156
|
badge__container: Za,
|
|
1157
1157
|
badge__content: Ga,
|
|
1158
1158
|
interactive: Ua,
|
|
1159
1159
|
disabled: Ja,
|
|
1160
1160
|
icon: Ka,
|
|
1161
|
-
"variant-filled": "_variant-
|
|
1162
|
-
"color-brand": "_color-
|
|
1163
|
-
"color-red": "_color-
|
|
1164
|
-
"color-orange": "_color-
|
|
1165
|
-
"color-yellow": "_color-
|
|
1166
|
-
"color-green": "_color-
|
|
1167
|
-
"color-blue": "_color-
|
|
1168
|
-
"color-lightblue": "_color-
|
|
1169
|
-
"color-purple": "_color-
|
|
1170
|
-
"color-gray": "_color-
|
|
1171
|
-
"color-contrast": "_color-
|
|
1172
|
-
"variant-light": "_variant-
|
|
1173
|
-
"variant-outline": "_variant-
|
|
1174
|
-
"variant-transparent": "_variant-
|
|
1175
|
-
"position-top-left": "_position-top-
|
|
1176
|
-
"position-top-right": "_position-top-
|
|
1177
|
-
"position-bottom-left": "_position-bottom-
|
|
1178
|
-
"position-bottom-right": "_position-bottom-
|
|
1179
|
-
"position-top-center": "_position-top-
|
|
1180
|
-
"position-bottom-center": "_position-bottom-
|
|
1181
|
-
"position-middle-left": "_position-middle-
|
|
1182
|
-
"position-middle-right": "_position-middle-
|
|
1183
|
-
"position-middle-center": "_position-middle-
|
|
1184
|
-
"position-top-left-inside": "_position-top-left-
|
|
1185
|
-
"position-top-right-inside": "_position-top-right-
|
|
1186
|
-
"position-bottom-left-inside": "_position-bottom-left-
|
|
1187
|
-
"position-bottom-right-inside": "_position-bottom-right-
|
|
1188
|
-
"position-top-center-inside": "_position-top-center-
|
|
1189
|
-
"position-bottom-center-inside": "_position-bottom-center-
|
|
1190
|
-
"position-middle-left-inside": "_position-middle-left-
|
|
1191
|
-
"position-middle-right-inside": "_position-middle-right-
|
|
1192
|
-
}, Qa = K((
|
|
1161
|
+
"variant-filled": "_variant-filled_1mnix_98",
|
|
1162
|
+
"color-brand": "_color-brand_1mnix_103",
|
|
1163
|
+
"color-red": "_color-red_1mnix_111",
|
|
1164
|
+
"color-orange": "_color-orange_1mnix_119",
|
|
1165
|
+
"color-yellow": "_color-yellow_1mnix_127",
|
|
1166
|
+
"color-green": "_color-green_1mnix_135",
|
|
1167
|
+
"color-blue": "_color-blue_1mnix_143",
|
|
1168
|
+
"color-lightblue": "_color-lightblue_1mnix_151",
|
|
1169
|
+
"color-purple": "_color-purple_1mnix_159",
|
|
1170
|
+
"color-gray": "_color-gray_1mnix_167",
|
|
1171
|
+
"color-contrast": "_color-contrast_1mnix_175",
|
|
1172
|
+
"variant-light": "_variant-light_1mnix_184",
|
|
1173
|
+
"variant-outline": "_variant-outline_1mnix_260",
|
|
1174
|
+
"variant-transparent": "_variant-transparent_1mnix_338",
|
|
1175
|
+
"position-top-left": "_position-top-left_1mnix_409",
|
|
1176
|
+
"position-top-right": "_position-top-right_1mnix_415",
|
|
1177
|
+
"position-bottom-left": "_position-bottom-left_1mnix_421",
|
|
1178
|
+
"position-bottom-right": "_position-bottom-right_1mnix_427",
|
|
1179
|
+
"position-top-center": "_position-top-center_1mnix_433",
|
|
1180
|
+
"position-bottom-center": "_position-bottom-center_1mnix_439",
|
|
1181
|
+
"position-middle-left": "_position-middle-left_1mnix_445",
|
|
1182
|
+
"position-middle-right": "_position-middle-right_1mnix_451",
|
|
1183
|
+
"position-middle-center": "_position-middle-center_1mnix_457",
|
|
1184
|
+
"position-top-left-inside": "_position-top-left-inside_1mnix_464",
|
|
1185
|
+
"position-top-right-inside": "_position-top-right-inside_1mnix_470",
|
|
1186
|
+
"position-bottom-left-inside": "_position-bottom-left-inside_1mnix_476",
|
|
1187
|
+
"position-bottom-right-inside": "_position-bottom-right-inside_1mnix_482",
|
|
1188
|
+
"position-top-center-inside": "_position-top-center-inside_1mnix_488",
|
|
1189
|
+
"position-bottom-center-inside": "_position-bottom-center-inside_1mnix_494",
|
|
1190
|
+
"position-middle-left-inside": "_position-middle-left-inside_1mnix_500",
|
|
1191
|
+
"position-middle-right-inside": "_position-middle-right-inside_1mnix_506"
|
|
1192
|
+
}, Qa = K((t, r) => {
|
|
1193
1193
|
const {
|
|
1194
1194
|
icon: a,
|
|
1195
1195
|
children: n,
|
|
@@ -1200,88 +1200,87 @@ const Va = 2, Xa = (e) => {
|
|
|
1200
1200
|
size: _ = 20,
|
|
1201
1201
|
position: f = "top-right",
|
|
1202
1202
|
positionOffset: p = { x: 0, y: 0 },
|
|
1203
|
-
cutoutBackground:
|
|
1204
|
-
isDisabled:
|
|
1205
|
-
className:
|
|
1206
|
-
"data-testid":
|
|
1203
|
+
cutoutBackground: m,
|
|
1204
|
+
isDisabled: b,
|
|
1205
|
+
className: g,
|
|
1206
|
+
"data-testid": y = "badge",
|
|
1207
1207
|
...C
|
|
1208
|
-
} =
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1208
|
+
} = t, { onClick: x, onPointerDown: v } = C, { ref: u, bgColor: w } = fe(), L = m || w, k = !b && (!!x || !!v), T = Lt(xt.badge__container, xt[`position-${f}`]), O = Lt(
|
|
1209
|
+
g,
|
|
1210
|
+
xt.badge__content,
|
|
1211
|
+
xt[`color-${c}`],
|
|
1212
|
+
xt[`variant-${i}`],
|
|
1213
1213
|
{
|
|
1214
|
-
[
|
|
1215
|
-
[
|
|
1216
|
-
[
|
|
1214
|
+
[xt.disabled]: b,
|
|
1215
|
+
[xt.icon]: !!a,
|
|
1216
|
+
[xt.interactive]: k
|
|
1217
1217
|
}
|
|
1218
|
-
),
|
|
1218
|
+
), A = {
|
|
1219
1219
|
"--badge-height": `${_}px`,
|
|
1220
1220
|
"--badge-offset-x": `${p.x}px`,
|
|
1221
1221
|
"--badge-offset-y": `${p.y}px`,
|
|
1222
1222
|
...L && { "--badge-cutout-bg": L },
|
|
1223
1223
|
...i === "transparent" && { "--badge-cutout-bg": "transparent" }
|
|
1224
1224
|
}, W = (a == null ? void 0 : a({})) || s, q = (P) => {
|
|
1225
|
-
|
|
1225
|
+
k && (x == null || x(P));
|
|
1226
1226
|
};
|
|
1227
|
-
return /* @__PURE__ */ o.jsxs("div", { className:
|
|
1227
|
+
return /* @__PURE__ */ o.jsxs("div", { className: xt.wrapper, ref: u, "data-testid": y + "-wrapper", children: [
|
|
1228
1228
|
n,
|
|
1229
1229
|
!l && /* @__PURE__ */ o.jsx(
|
|
1230
1230
|
"span",
|
|
1231
1231
|
{
|
|
1232
1232
|
className: T,
|
|
1233
|
-
style:
|
|
1234
|
-
"data-testid":
|
|
1233
|
+
style: A,
|
|
1234
|
+
"data-testid": y + "-container",
|
|
1235
1235
|
children: /* @__PURE__ */ o.jsx(
|
|
1236
1236
|
"span",
|
|
1237
1237
|
{
|
|
1238
1238
|
...C,
|
|
1239
1239
|
onClick: q,
|
|
1240
|
-
className:
|
|
1241
|
-
"data-testid":
|
|
1240
|
+
className: O,
|
|
1241
|
+
"data-testid": y + "-content",
|
|
1242
1242
|
ref: r,
|
|
1243
|
-
"aria-disabled":
|
|
1243
|
+
"aria-disabled": b,
|
|
1244
1244
|
children: W
|
|
1245
1245
|
}
|
|
1246
1246
|
)
|
|
1247
1247
|
}
|
|
1248
1248
|
)
|
|
1249
1249
|
] });
|
|
1250
|
-
}),
|
|
1251
|
-
container:
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
overlay: gn,
|
|
1250
|
+
}), tn = "_container_op5yl_7", en = "_image_op5yl_22", rn = "_loading_op5yl_34", le = {
|
|
1251
|
+
container: tn,
|
|
1252
|
+
image: en,
|
|
1253
|
+
loading: rn
|
|
1254
|
+
}, an = "_loader_isv17_1", nn = "_spin_isv17_1", on = "_accent_isv17_19", sn = "_neutral_isv17_23", ln = "_positive_isv17_27", cn = "_negative_isv17_31", dn = "_gray_isv17_35", un = "_special_isv17_39", _n = "_contrast_isv17_43", pn = "_container_isv17_47", fn = "_overlay_isv17_57", Ft = {
|
|
1255
|
+
loader: an,
|
|
1256
|
+
spin: nn,
|
|
1257
|
+
accent: on,
|
|
1258
|
+
neutral: sn,
|
|
1259
|
+
positive: ln,
|
|
1260
|
+
negative: cn,
|
|
1261
|
+
gray: dn,
|
|
1262
|
+
special: un,
|
|
1263
|
+
contrast: _n,
|
|
1264
|
+
container: pn,
|
|
1265
|
+
overlay: fn,
|
|
1267
1266
|
"size-16": "_size-16_isv17_72",
|
|
1268
1267
|
"size-24": "_size-24_isv17_76",
|
|
1269
1268
|
"size-48": "_size-48_isv17_80",
|
|
1270
1269
|
"size-64": "_size-64_isv17_84",
|
|
1271
1270
|
"size-96": "_size-96_isv17_88"
|
|
1272
|
-
},
|
|
1271
|
+
}, Ge = K(
|
|
1273
1272
|
({
|
|
1274
|
-
size:
|
|
1273
|
+
size: t = 24,
|
|
1275
1274
|
variant: r = "accent",
|
|
1276
1275
|
className: a,
|
|
1277
1276
|
"data-testid": n = "loader",
|
|
1278
1277
|
style: i,
|
|
1279
1278
|
...s
|
|
1280
1279
|
}, l) => {
|
|
1281
|
-
const c =
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1280
|
+
const c = Lt(
|
|
1281
|
+
Ft.loader,
|
|
1282
|
+
Ft[r],
|
|
1283
|
+
Ft[`size-${t}`],
|
|
1285
1284
|
a
|
|
1286
1285
|
);
|
|
1287
1286
|
return /* @__PURE__ */ o.jsx(
|
|
@@ -1307,7 +1306,7 @@ const Va = 2, Xa = (e) => {
|
|
|
1307
1306
|
}
|
|
1308
1307
|
);
|
|
1309
1308
|
}
|
|
1310
|
-
),
|
|
1309
|
+
), gn = K((t, r) => {
|
|
1311
1310
|
const {
|
|
1312
1311
|
loading: a = !1,
|
|
1313
1312
|
size: n = 24,
|
|
@@ -1317,21 +1316,21 @@ const Va = 2, Xa = (e) => {
|
|
|
1317
1316
|
style: c,
|
|
1318
1317
|
"data-testid": _,
|
|
1319
1318
|
...f
|
|
1320
|
-
} =
|
|
1319
|
+
} = t, p = Lt(Ft.container, l);
|
|
1321
1320
|
return /* @__PURE__ */ o.jsxs("div", { ref: r, className: p, style: c, "data-testid": _, ...f, children: [
|
|
1322
1321
|
s,
|
|
1323
|
-
a && /* @__PURE__ */ o.jsx("div", { className:
|
|
1322
|
+
a && /* @__PURE__ */ o.jsx("div", { className: Ft.overlay, children: /* @__PURE__ */ o.jsx(Ge, { size: n, variant: i, "data-testid": `${_}-spinner` }) })
|
|
1324
1323
|
] });
|
|
1325
|
-
}), hn = K((
|
|
1326
|
-
|
|
1324
|
+
}), hn = K((t, r) => t.children ? /* @__PURE__ */ o.jsx(
|
|
1325
|
+
gn,
|
|
1327
1326
|
{
|
|
1328
1327
|
ref: r,
|
|
1329
|
-
...
|
|
1328
|
+
...t
|
|
1330
1329
|
}
|
|
1331
|
-
) : /* @__PURE__ */ o.jsx(
|
|
1330
|
+
) : /* @__PURE__ */ o.jsx(Ge, { ref: r, ...t })), mn = ({ width: t = 48, height: r = 48, className: a, "data-testid": n }) => /* @__PURE__ */ o.jsx(
|
|
1332
1331
|
"svg",
|
|
1333
1332
|
{
|
|
1334
|
-
width:
|
|
1333
|
+
width: t,
|
|
1335
1334
|
height: r,
|
|
1336
1335
|
viewBox: "0 0 48 48",
|
|
1337
1336
|
fill: "none",
|
|
@@ -1349,122 +1348,106 @@ const Va = 2, Xa = (e) => {
|
|
|
1349
1348
|
}
|
|
1350
1349
|
)
|
|
1351
1350
|
}
|
|
1352
|
-
),
|
|
1351
|
+
), Pl = K((t, r) => {
|
|
1353
1352
|
const {
|
|
1354
1353
|
alt: a = "",
|
|
1355
1354
|
loading: n = "lazy",
|
|
1356
1355
|
src: i,
|
|
1357
1356
|
isLoading: s = !1,
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
} = e, { className: h, ...x } = _ ?? {}, [C, y] = _e("loading"), v = C === "error", u = (s || C === "loading") && !v, w = C === "loaded" && !s, L = $(
|
|
1366
|
-
Fe.container,
|
|
1367
|
-
{ [Fe.loading]: u && !w, [Fe.error]: v && !w },
|
|
1368
|
-
h
|
|
1369
|
-
), E = $(
|
|
1370
|
-
Fe.image,
|
|
1357
|
+
className: l,
|
|
1358
|
+
"data-testid": c = "image",
|
|
1359
|
+
onError: _,
|
|
1360
|
+
onLoad: f,
|
|
1361
|
+
...p
|
|
1362
|
+
} = t, [m, b] = _t("loading"), g = m === "error", y = (s || m === "loading") && !g, C = m === "loaded" && !s, x = Lt(
|
|
1363
|
+
le.image,
|
|
1371
1364
|
{
|
|
1372
|
-
[
|
|
1365
|
+
[le.loading]: y
|
|
1373
1366
|
},
|
|
1374
|
-
|
|
1375
|
-
),
|
|
1376
|
-
(
|
|
1377
|
-
|
|
1367
|
+
l
|
|
1368
|
+
), v = St(
|
|
1369
|
+
(L) => {
|
|
1370
|
+
b("loaded"), f == null || f(L);
|
|
1378
1371
|
},
|
|
1379
|
-
[
|
|
1380
|
-
),
|
|
1381
|
-
(
|
|
1382
|
-
|
|
1372
|
+
[f]
|
|
1373
|
+
), u = St(
|
|
1374
|
+
(L) => {
|
|
1375
|
+
b("error"), _ == null || _(L);
|
|
1383
1376
|
},
|
|
1384
|
-
[
|
|
1385
|
-
),
|
|
1386
|
-
loader: /* @__PURE__ */ o.jsxs(
|
|
1387
|
-
/* @__PURE__ */ o.jsx(hn, { size: 48, variant: "special", "data-testid": `${
|
|
1377
|
+
[_]
|
|
1378
|
+
), w = {
|
|
1379
|
+
loader: /* @__PURE__ */ o.jsxs(Pt, { children: [
|
|
1380
|
+
/* @__PURE__ */ o.jsx(hn, { size: 48, variant: "special", "data-testid": `${c}-loader` }),
|
|
1388
1381
|
/* @__PURE__ */ o.jsx(
|
|
1389
1382
|
"img",
|
|
1390
1383
|
{
|
|
1391
1384
|
alt: a,
|
|
1392
1385
|
src: i,
|
|
1393
|
-
onLoad:
|
|
1394
|
-
onError:
|
|
1386
|
+
onLoad: v,
|
|
1387
|
+
onError: u,
|
|
1395
1388
|
style: { display: "none" }
|
|
1396
1389
|
}
|
|
1397
1390
|
)
|
|
1398
1391
|
] }),
|
|
1399
|
-
error: /* @__PURE__ */ o.jsx(mn, { "data-testid": `${
|
|
1392
|
+
error: /* @__PURE__ */ o.jsx(mn, { "data-testid": `${c}-fallback` }),
|
|
1400
1393
|
image: /* @__PURE__ */ o.jsx(
|
|
1401
1394
|
"img",
|
|
1402
1395
|
{
|
|
1403
1396
|
ref: r,
|
|
1404
1397
|
alt: a,
|
|
1405
|
-
"data-testid":
|
|
1398
|
+
"data-testid": c,
|
|
1406
1399
|
loading: n,
|
|
1407
1400
|
src: i,
|
|
1408
|
-
className:
|
|
1409
|
-
...m
|
|
1401
|
+
className: x
|
|
1410
1402
|
}
|
|
1411
1403
|
)
|
|
1412
1404
|
};
|
|
1413
|
-
return
|
|
1405
|
+
return lt(() => {
|
|
1414
1406
|
if (!i) {
|
|
1415
|
-
|
|
1407
|
+
b("error");
|
|
1416
1408
|
return;
|
|
1417
1409
|
}
|
|
1418
|
-
|
|
1419
|
-
}, [i]), /* @__PURE__ */ o.jsxs(
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
w && R.image
|
|
1430
|
-
]
|
|
1431
|
-
}
|
|
1432
|
-
);
|
|
1433
|
-
}), yn = {}, Ut = Yt({
|
|
1434
|
-
locale: yn
|
|
1435
|
-
}), xn = () => {
|
|
1436
|
-
const e = Zt(Ut);
|
|
1437
|
-
if (!e)
|
|
1410
|
+
b("loading");
|
|
1411
|
+
}, [i]), /* @__PURE__ */ o.jsxs("div", { className: le.container, "data-testid": `${c}-container`, ...p, children: [
|
|
1412
|
+
y && w.loader,
|
|
1413
|
+
g && w.error,
|
|
1414
|
+
C && w.image
|
|
1415
|
+
] });
|
|
1416
|
+
}), bn = {}, Ue = Ye({
|
|
1417
|
+
locale: bn
|
|
1418
|
+
}), yn = () => {
|
|
1419
|
+
const t = Ze(Ue);
|
|
1420
|
+
if (!t)
|
|
1438
1421
|
throw new Error("useConfig must be used within a ConfigProvider");
|
|
1439
|
-
return
|
|
1440
|
-
},
|
|
1441
|
-
const { locale:
|
|
1442
|
-
return
|
|
1443
|
-
},
|
|
1444
|
-
base:
|
|
1445
|
-
content:
|
|
1446
|
-
background:
|
|
1447
|
-
button:
|
|
1448
|
-
link:
|
|
1449
|
-
input:
|
|
1450
|
-
suffix:
|
|
1451
|
-
prefix:
|
|
1452
|
-
tooltip:
|
|
1453
|
-
hint:
|
|
1454
|
-
dropdown:
|
|
1455
|
-
popover:
|
|
1456
|
-
modalBackdrop:
|
|
1457
|
-
modal:
|
|
1458
|
-
overlay:
|
|
1459
|
-
drawer:
|
|
1460
|
-
notification:
|
|
1461
|
-
alert:
|
|
1462
|
-
toast:
|
|
1463
|
-
loading:
|
|
1464
|
-
error:
|
|
1465
|
-
critical:
|
|
1466
|
-
},
|
|
1467
|
-
locale:
|
|
1422
|
+
return t;
|
|
1423
|
+
}, Bl = () => {
|
|
1424
|
+
const { locale: t } = yn();
|
|
1425
|
+
return t;
|
|
1426
|
+
}, xn = {}, vn = {}, wn = {}, Cn = {}, Sn = {}, Ln = "_base_1p0qo_50", jn = "_content_1p0qo_54", kn = "_background_1p0qo_58", $n = "_button_1p0qo_62", En = "_link_1p0qo_66", Tn = "_input_1p0qo_70", Rn = "_suffix_1p0qo_74", Nn = "_prefix_1p0qo_78", In = "_tooltip_1p0qo_82", Mn = "_hint_1p0qo_86", On = "_dropdown_1p0qo_90", An = "_popover_1p0qo_94", Pn = "_modalBackdrop_1p0qo_98", Bn = "_modal_1p0qo_98", zn = "_overlay_1p0qo_106", Dn = "_drawer_1p0qo_110", Wn = "_notification_1p0qo_114", Fn = "_alert_1p0qo_118", qn = "_toast_1p0qo_122", Hn = "_loading_1p0qo_126", Vn = "_error_1p0qo_130", Xn = "_critical_1p0qo_134", Yn = {
|
|
1427
|
+
base: Ln,
|
|
1428
|
+
content: jn,
|
|
1429
|
+
background: kn,
|
|
1430
|
+
button: $n,
|
|
1431
|
+
link: En,
|
|
1432
|
+
input: Tn,
|
|
1433
|
+
suffix: Rn,
|
|
1434
|
+
prefix: Nn,
|
|
1435
|
+
tooltip: In,
|
|
1436
|
+
hint: Mn,
|
|
1437
|
+
dropdown: On,
|
|
1438
|
+
popover: An,
|
|
1439
|
+
modalBackdrop: Pn,
|
|
1440
|
+
modal: Bn,
|
|
1441
|
+
overlay: zn,
|
|
1442
|
+
drawer: Dn,
|
|
1443
|
+
notification: Wn,
|
|
1444
|
+
alert: Fn,
|
|
1445
|
+
toast: qn,
|
|
1446
|
+
loading: Hn,
|
|
1447
|
+
error: Vn,
|
|
1448
|
+
critical: Xn
|
|
1449
|
+
}, zl = ({
|
|
1450
|
+
locale: t = {},
|
|
1468
1451
|
theme: r,
|
|
1469
1452
|
children: a,
|
|
1470
1453
|
className: n
|
|
@@ -1475,33 +1458,33 @@ const Va = 2, Xa = (e) => {
|
|
|
1475
1458
|
i.style.setProperty(s, l);
|
|
1476
1459
|
});
|
|
1477
1460
|
}
|
|
1478
|
-
}, [r]), /* @__PURE__ */ o.jsxs(
|
|
1461
|
+
}, [r]), /* @__PURE__ */ o.jsxs(Pt, { children: [
|
|
1479
1462
|
/* @__PURE__ */ o.jsx(
|
|
1480
1463
|
"div",
|
|
1481
1464
|
{
|
|
1482
1465
|
"data-testid": "ConfigProvider-component",
|
|
1483
|
-
className: $(vn, wn, Cn, Sn,
|
|
1466
|
+
className: $(xn, vn, wn, Cn, Sn, Yn, it, n)
|
|
1484
1467
|
}
|
|
1485
1468
|
),
|
|
1486
|
-
/* @__PURE__ */ o.jsx(
|
|
1487
|
-
] })),
|
|
1488
|
-
tag:
|
|
1489
|
-
label:
|
|
1490
|
-
iconWrapper:
|
|
1491
|
-
medium:
|
|
1492
|
-
large:
|
|
1493
|
-
disabled:
|
|
1469
|
+
/* @__PURE__ */ o.jsx(Ue.Provider, { value: { locale: t }, children: a })
|
|
1470
|
+
] })), Dl = {}, Zn = "_tag_1llsi_1", Gn = "_label_1llsi_16", Un = "_iconWrapper_1llsi_20", Jn = "_medium_1llsi_27", Kn = "_large_1llsi_33", Qn = "_disabled_1llsi_43", to = "_neutral_1llsi_47", eo = "_positive_1llsi_53", ro = "_negative_1llsi_59", ao = "_warning_1llsi_65", no = "_vivid_1llsi_71", oo = "_special_1llsi_77", so = "_accent_1llsi_84", io = "_blue_1llsi_90", lo = "_lovely_1llsi_96", co = "_dreamy_1llsi_102", $t = {
|
|
1471
|
+
tag: Zn,
|
|
1472
|
+
label: Gn,
|
|
1473
|
+
iconWrapper: Un,
|
|
1474
|
+
medium: Jn,
|
|
1475
|
+
large: Kn,
|
|
1476
|
+
disabled: Qn,
|
|
1494
1477
|
neutral: to,
|
|
1495
|
-
positive:
|
|
1496
|
-
negative:
|
|
1497
|
-
warning:
|
|
1498
|
-
vivid:
|
|
1499
|
-
special:
|
|
1500
|
-
accent:
|
|
1501
|
-
blue:
|
|
1502
|
-
lovely:
|
|
1503
|
-
dreamy:
|
|
1504
|
-
},
|
|
1478
|
+
positive: eo,
|
|
1479
|
+
negative: ro,
|
|
1480
|
+
warning: ao,
|
|
1481
|
+
vivid: no,
|
|
1482
|
+
special: oo,
|
|
1483
|
+
accent: so,
|
|
1484
|
+
blue: io,
|
|
1485
|
+
lovely: lo,
|
|
1486
|
+
dreamy: co
|
|
1487
|
+
}, Wl = K((t, r) => {
|
|
1505
1488
|
const {
|
|
1506
1489
|
className: a,
|
|
1507
1490
|
children: n,
|
|
@@ -1512,44 +1495,44 @@ const Va = 2, Xa = (e) => {
|
|
|
1512
1495
|
slotStart: _,
|
|
1513
1496
|
slotEnd: f,
|
|
1514
1497
|
slotStartWrapperProps: p = {},
|
|
1515
|
-
slotEndWrapperProps:
|
|
1516
|
-
"data-testid":
|
|
1517
|
-
} =
|
|
1498
|
+
slotEndWrapperProps: m = {},
|
|
1499
|
+
"data-testid": b
|
|
1500
|
+
} = t, { className: g, ...y } = p, { className: C, ...x } = m;
|
|
1518
1501
|
return /* @__PURE__ */ o.jsxs(
|
|
1519
1502
|
"div",
|
|
1520
1503
|
{
|
|
1521
1504
|
className: $(
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1505
|
+
$t.tag,
|
|
1506
|
+
$t[s],
|
|
1507
|
+
$t[i],
|
|
1525
1508
|
{
|
|
1526
|
-
[
|
|
1527
|
-
[
|
|
1528
|
-
[
|
|
1509
|
+
[$t.disabled]: l,
|
|
1510
|
+
[it["typography-label-3-regular"]]: s === "medium",
|
|
1511
|
+
[it["typography-subtitle-1-semibold"]]: s === "large"
|
|
1529
1512
|
},
|
|
1530
1513
|
a
|
|
1531
1514
|
),
|
|
1532
|
-
"data-testid":
|
|
1515
|
+
"data-testid": b || "tag-component",
|
|
1533
1516
|
ref: r,
|
|
1534
1517
|
children: [
|
|
1535
|
-
_ && /* @__PURE__ */ o.jsx("span", { className: $([
|
|
1536
|
-
c && /* @__PURE__ */ o.jsx("span", { className: $([
|
|
1537
|
-
f && /* @__PURE__ */ o.jsx("span", { className: $([
|
|
1518
|
+
_ && /* @__PURE__ */ o.jsx("span", { className: $([$t.iconWrapper, g]), ...y, children: _ }),
|
|
1519
|
+
c && /* @__PURE__ */ o.jsx("span", { className: $([$t.label]), children: n }),
|
|
1520
|
+
f && /* @__PURE__ */ o.jsx("span", { className: $([$t.iconWrapper, C]), ...x, children: f })
|
|
1538
1521
|
]
|
|
1539
1522
|
}
|
|
1540
1523
|
);
|
|
1541
|
-
}),
|
|
1542
|
-
checkbox:
|
|
1543
|
-
input:
|
|
1544
|
-
icon:
|
|
1545
|
-
container:
|
|
1546
|
-
error:
|
|
1524
|
+
}), uo = "_checkbox_17txq_43", _o = "_input_17txq_64", po = "_icon_17txq_72", fo = "_container_17txq_92", go = "_error_17txq_143", ho = "_checkboxWrapper_17txq_156", mo = "_medium_17txq_211", bo = "_large_17txq_216", yo = "_label_17txq_258", wt = {
|
|
1525
|
+
checkbox: uo,
|
|
1526
|
+
input: _o,
|
|
1527
|
+
icon: po,
|
|
1528
|
+
container: fo,
|
|
1529
|
+
error: go,
|
|
1547
1530
|
checkboxWrapper: ho,
|
|
1548
1531
|
medium: mo,
|
|
1549
|
-
large:
|
|
1550
|
-
label:
|
|
1551
|
-
},
|
|
1552
|
-
width:
|
|
1532
|
+
large: bo,
|
|
1533
|
+
label: yo
|
|
1534
|
+
}, xo = ({
|
|
1535
|
+
width: t = 12,
|
|
1553
1536
|
height: r = 9,
|
|
1554
1537
|
className: a = "",
|
|
1555
1538
|
color: n = "currentColor",
|
|
@@ -1558,7 +1541,7 @@ const Va = 2, Xa = (e) => {
|
|
|
1558
1541
|
"svg",
|
|
1559
1542
|
{
|
|
1560
1543
|
className: a,
|
|
1561
|
-
width:
|
|
1544
|
+
width: t,
|
|
1562
1545
|
height: r,
|
|
1563
1546
|
viewBox: "0 0 14 10",
|
|
1564
1547
|
fill: "none",
|
|
@@ -1574,8 +1557,8 @@ const Va = 2, Xa = (e) => {
|
|
|
1574
1557
|
}
|
|
1575
1558
|
)
|
|
1576
1559
|
}
|
|
1577
|
-
),
|
|
1578
|
-
width:
|
|
1560
|
+
), vo = ({
|
|
1561
|
+
width: t = 12,
|
|
1579
1562
|
height: r = 2,
|
|
1580
1563
|
className: a = "",
|
|
1581
1564
|
color: n = "currentColor",
|
|
@@ -1584,7 +1567,7 @@ const Va = 2, Xa = (e) => {
|
|
|
1584
1567
|
"svg",
|
|
1585
1568
|
{
|
|
1586
1569
|
className: a,
|
|
1587
|
-
width:
|
|
1570
|
+
width: t,
|
|
1588
1571
|
height: r,
|
|
1589
1572
|
viewBox: "0 0 12 2",
|
|
1590
1573
|
fill: "none",
|
|
@@ -1600,29 +1583,29 @@ const Va = 2, Xa = (e) => {
|
|
|
1600
1583
|
}
|
|
1601
1584
|
)
|
|
1602
1585
|
}
|
|
1603
|
-
),
|
|
1586
|
+
), wo = {
|
|
1604
1587
|
medium: { width: 10.83, height: 7.5 },
|
|
1605
1588
|
large: { width: 13, height: 9 }
|
|
1606
|
-
},
|
|
1607
|
-
size:
|
|
1589
|
+
}, Co = ({
|
|
1590
|
+
size: t,
|
|
1608
1591
|
isChecked: r,
|
|
1609
1592
|
isDisabled: a,
|
|
1610
1593
|
indeterminate: n,
|
|
1611
1594
|
dataTestId: i
|
|
1612
1595
|
}) => {
|
|
1613
|
-
const { width: s, height: l } =
|
|
1596
|
+
const { width: s, height: l } = wo[t];
|
|
1614
1597
|
return /* @__PURE__ */ o.jsx(
|
|
1615
1598
|
"div",
|
|
1616
1599
|
{
|
|
1617
|
-
className:
|
|
1600
|
+
className: wt.icon,
|
|
1618
1601
|
"data-testid": `${i}-icon`,
|
|
1619
1602
|
"data-checked": r,
|
|
1620
1603
|
"data-disabled": a,
|
|
1621
1604
|
"data-indeterminate": n,
|
|
1622
|
-
children: n ? /* @__PURE__ */ o.jsx(
|
|
1605
|
+
children: n ? /* @__PURE__ */ o.jsx(vo, { width: s, height: l }) : /* @__PURE__ */ o.jsx(xo, { width: s, height: l })
|
|
1623
1606
|
}
|
|
1624
1607
|
);
|
|
1625
|
-
},
|
|
1608
|
+
}, Fl = K((t, r) => {
|
|
1626
1609
|
const {
|
|
1627
1610
|
name: a,
|
|
1628
1611
|
value: n,
|
|
@@ -1633,50 +1616,50 @@ const Va = 2, Xa = (e) => {
|
|
|
1633
1616
|
disabled: _ = !1,
|
|
1634
1617
|
containerClassName: f,
|
|
1635
1618
|
className: p,
|
|
1636
|
-
containerStyle:
|
|
1637
|
-
style:
|
|
1638
|
-
children:
|
|
1639
|
-
clickableLabel:
|
|
1619
|
+
containerStyle: m,
|
|
1620
|
+
style: b,
|
|
1621
|
+
children: g,
|
|
1622
|
+
clickableLabel: y = !0,
|
|
1640
1623
|
tabIndex: C,
|
|
1641
|
-
onChange:
|
|
1624
|
+
onChange: x,
|
|
1642
1625
|
"data-testid": v = "checkbox"
|
|
1643
|
-
} =
|
|
1644
|
-
|
|
1645
|
-
|
|
1626
|
+
} = t, [u, w] = _t(!1), L = n ?? u, E = _ || l, k = !!c, T = L || s, O = $(wt.container, wt[i], f), A = $(
|
|
1627
|
+
wt.checkbox,
|
|
1628
|
+
wt[i],
|
|
1646
1629
|
{
|
|
1647
|
-
[
|
|
1630
|
+
[wt.error]: k
|
|
1648
1631
|
},
|
|
1649
1632
|
p
|
|
1650
|
-
), W = (
|
|
1651
|
-
E || (w(
|
|
1652
|
-
}, q = (
|
|
1653
|
-
if (
|
|
1654
|
-
|
|
1633
|
+
), W = (I) => {
|
|
1634
|
+
E || (w(I.target.checked), x == null || x(I.target.checked, I));
|
|
1635
|
+
}, q = (I) => {
|
|
1636
|
+
if (I.key === "Enter" && !E) {
|
|
1637
|
+
I.preventDefault();
|
|
1655
1638
|
const z = !T;
|
|
1656
|
-
w(z),
|
|
1639
|
+
w(z), x == null || x(z);
|
|
1657
1640
|
}
|
|
1658
|
-
}, P = (
|
|
1659
|
-
|
|
1660
|
-
}, S = (
|
|
1641
|
+
}, P = (I) => {
|
|
1642
|
+
y || I.preventDefault();
|
|
1643
|
+
}, S = (I) => I.stopPropagation();
|
|
1661
1644
|
return /* @__PURE__ */ o.jsxs(
|
|
1662
1645
|
"label",
|
|
1663
1646
|
{
|
|
1664
|
-
className:
|
|
1647
|
+
className: O,
|
|
1665
1648
|
htmlFor: a,
|
|
1666
|
-
style:
|
|
1649
|
+
style: m,
|
|
1667
1650
|
"data-testid": v,
|
|
1668
|
-
"data-clickable-label":
|
|
1651
|
+
"data-clickable-label": y,
|
|
1669
1652
|
children: [
|
|
1670
|
-
/* @__PURE__ */ o.jsx("div", { className:
|
|
1653
|
+
/* @__PURE__ */ o.jsx("div", { className: wt.checkboxWrapper, children: /* @__PURE__ */ o.jsxs(
|
|
1671
1654
|
"div",
|
|
1672
1655
|
{
|
|
1673
1656
|
tabIndex: C || 0,
|
|
1674
|
-
className:
|
|
1675
|
-
style:
|
|
1657
|
+
className: A,
|
|
1658
|
+
style: b,
|
|
1676
1659
|
onKeyDown: q,
|
|
1677
1660
|
"aria-checked": T,
|
|
1678
1661
|
"aria-disabled": E,
|
|
1679
|
-
"aria-invalid":
|
|
1662
|
+
"aria-invalid": k,
|
|
1680
1663
|
"aria-describedby": c ? `${a}-error` : void 0,
|
|
1681
1664
|
"data-testid": `${v}-label`,
|
|
1682
1665
|
children: [
|
|
@@ -1689,17 +1672,17 @@ const Va = 2, Xa = (e) => {
|
|
|
1689
1672
|
name: a,
|
|
1690
1673
|
checked: T,
|
|
1691
1674
|
disabled: E,
|
|
1692
|
-
className:
|
|
1675
|
+
className: wt.input,
|
|
1693
1676
|
onChange: W,
|
|
1694
1677
|
onClick: S,
|
|
1695
1678
|
"aria-checked": T,
|
|
1696
|
-
"aria-invalid":
|
|
1679
|
+
"aria-invalid": k,
|
|
1697
1680
|
"aria-describedby": c ? `${a}-error` : void 0,
|
|
1698
1681
|
"data-testid": `${v}-input`
|
|
1699
1682
|
}
|
|
1700
1683
|
),
|
|
1701
1684
|
/* @__PURE__ */ o.jsx(
|
|
1702
|
-
|
|
1685
|
+
Co,
|
|
1703
1686
|
{
|
|
1704
1687
|
name: a,
|
|
1705
1688
|
size: i,
|
|
@@ -1712,45 +1695,45 @@ const Va = 2, Xa = (e) => {
|
|
|
1712
1695
|
]
|
|
1713
1696
|
}
|
|
1714
1697
|
) }),
|
|
1715
|
-
|
|
1698
|
+
g && /* @__PURE__ */ o.jsx(
|
|
1716
1699
|
"span",
|
|
1717
1700
|
{
|
|
1718
1701
|
"data-testid": `${v}-label-text`,
|
|
1719
|
-
"data-clickable-label":
|
|
1720
|
-
className:
|
|
1702
|
+
"data-clickable-label": y,
|
|
1703
|
+
className: wt.label,
|
|
1721
1704
|
onClick: P,
|
|
1722
|
-
children:
|
|
1705
|
+
children: g
|
|
1723
1706
|
}
|
|
1724
1707
|
)
|
|
1725
1708
|
]
|
|
1726
1709
|
}
|
|
1727
1710
|
);
|
|
1728
|
-
}),
|
|
1729
|
-
typography:
|
|
1730
|
-
disabled:
|
|
1731
|
-
primary:
|
|
1732
|
-
secondary:
|
|
1733
|
-
tertiary:
|
|
1734
|
-
accent:
|
|
1711
|
+
}), So = "_typography_zt7xg_1", Lo = "_disabled_zt7xg_8", jo = "_primary_zt7xg_13", ko = "_secondary_zt7xg_18", $o = "_tertiary_zt7xg_23", Eo = "_accent_zt7xg_28", To = "_positive_zt7xg_38", Ro = "_negative_zt7xg_48", No = "_warning_zt7xg_58", Io = "_special_zt7xg_68", Mo = "_contrast_zt7xg_78", Bt = {
|
|
1712
|
+
typography: So,
|
|
1713
|
+
disabled: Lo,
|
|
1714
|
+
primary: jo,
|
|
1715
|
+
secondary: ko,
|
|
1716
|
+
tertiary: $o,
|
|
1717
|
+
accent: Eo,
|
|
1735
1718
|
"accent-secondary": "_accent-secondary_zt7xg_33",
|
|
1736
|
-
positive:
|
|
1719
|
+
positive: To,
|
|
1737
1720
|
"positive-secondary": "_positive-secondary_zt7xg_43",
|
|
1738
|
-
negative:
|
|
1721
|
+
negative: Ro,
|
|
1739
1722
|
"negative-secondary": "_negative-secondary_zt7xg_53",
|
|
1740
|
-
warning:
|
|
1723
|
+
warning: No,
|
|
1741
1724
|
"warning-secondary": "_warning-secondary_zt7xg_63",
|
|
1742
|
-
special:
|
|
1725
|
+
special: Io,
|
|
1743
1726
|
"special-secondary": "_special-secondary_zt7xg_73",
|
|
1744
|
-
contrast:
|
|
1727
|
+
contrast: Mo,
|
|
1745
1728
|
"contrast-secondary": "_contrast-secondary_zt7xg_83"
|
|
1746
|
-
},
|
|
1729
|
+
}, Oo = {
|
|
1747
1730
|
1: "h1",
|
|
1748
1731
|
2: "h2",
|
|
1749
1732
|
3: "h3",
|
|
1750
1733
|
4: "h4",
|
|
1751
1734
|
5: "h5"
|
|
1752
|
-
},
|
|
1753
|
-
const r =
|
|
1735
|
+
}, Be = (t) => {
|
|
1736
|
+
const r = Xe.forwardRef(
|
|
1754
1737
|
({
|
|
1755
1738
|
size: a = 3,
|
|
1756
1739
|
children: n,
|
|
@@ -1761,22 +1744,22 @@ const Va = 2, Xa = (e) => {
|
|
|
1761
1744
|
disabled: _ = !1,
|
|
1762
1745
|
typographyStyle: f = "primary",
|
|
1763
1746
|
...p
|
|
1764
|
-
},
|
|
1765
|
-
const
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1747
|
+
}, m) => {
|
|
1748
|
+
const b = l || Oo[a], g = $(
|
|
1749
|
+
Bt.typography,
|
|
1750
|
+
it[`typography-${t}-${a}-${c}`],
|
|
1751
|
+
Bt[f],
|
|
1769
1752
|
{
|
|
1770
|
-
[
|
|
1753
|
+
[Bt.disabled]: _
|
|
1771
1754
|
},
|
|
1772
1755
|
i
|
|
1773
1756
|
);
|
|
1774
|
-
return n ? /* @__PURE__ */ o.jsx(
|
|
1757
|
+
return n ? /* @__PURE__ */ o.jsx(b, { ref: m, className: g, "data-testid": s, ...p, children: n }) : null;
|
|
1775
1758
|
}
|
|
1776
1759
|
);
|
|
1777
|
-
return r.displayName = `Typography.${
|
|
1778
|
-
},
|
|
1779
|
-
const r =
|
|
1760
|
+
return r.displayName = `Typography.${t === "title" ? "Title" : "Subtitle"}`, r;
|
|
1761
|
+
}, ze = (t) => {
|
|
1762
|
+
const r = Xe.forwardRef(
|
|
1780
1763
|
({
|
|
1781
1764
|
size: a = 3,
|
|
1782
1765
|
children: n,
|
|
@@ -1787,21 +1770,21 @@ const Va = 2, Xa = (e) => {
|
|
|
1787
1770
|
disabled: _ = !1,
|
|
1788
1771
|
typographyStyle: f = "primary",
|
|
1789
1772
|
...p
|
|
1790
|
-
},
|
|
1791
|
-
const
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1773
|
+
}, m) => {
|
|
1774
|
+
const b = l, g = $(
|
|
1775
|
+
Bt.typography,
|
|
1776
|
+
it[`typography-${t}-${a}-${c}`],
|
|
1777
|
+
Bt[f],
|
|
1795
1778
|
{
|
|
1796
|
-
[
|
|
1779
|
+
[Bt.disabled]: _
|
|
1797
1780
|
},
|
|
1798
1781
|
i
|
|
1799
1782
|
);
|
|
1800
1783
|
return n ? /* @__PURE__ */ o.jsx(
|
|
1801
|
-
|
|
1784
|
+
b,
|
|
1802
1785
|
{
|
|
1803
|
-
ref:
|
|
1804
|
-
className:
|
|
1786
|
+
ref: m,
|
|
1787
|
+
className: g,
|
|
1805
1788
|
"data-testid": s,
|
|
1806
1789
|
...p,
|
|
1807
1790
|
children: n
|
|
@@ -1809,72 +1792,72 @@ const Va = 2, Xa = (e) => {
|
|
|
1809
1792
|
) : null;
|
|
1810
1793
|
}
|
|
1811
1794
|
);
|
|
1812
|
-
return r.displayName = `Typography.${
|
|
1813
|
-
},
|
|
1814
|
-
Title:
|
|
1815
|
-
Subtitle:
|
|
1816
|
-
Label:
|
|
1817
|
-
Paragraph:
|
|
1818
|
-
},
|
|
1819
|
-
base:
|
|
1820
|
-
content:
|
|
1821
|
-
background:
|
|
1822
|
-
button:
|
|
1823
|
-
link:
|
|
1824
|
-
input:
|
|
1825
|
-
suffix:
|
|
1826
|
-
prefix:
|
|
1827
|
-
tooltip:
|
|
1828
|
-
hint:
|
|
1829
|
-
dropdown:
|
|
1830
|
-
popover:
|
|
1831
|
-
modalBackdrop:
|
|
1832
|
-
modal:
|
|
1833
|
-
overlay:
|
|
1834
|
-
drawer:
|
|
1835
|
-
notification:
|
|
1836
|
-
alert:
|
|
1795
|
+
return r.displayName = `Typography.${t.charAt(0).toUpperCase() + t.slice(1)}`, r;
|
|
1796
|
+
}, De = {
|
|
1797
|
+
Title: Be("title"),
|
|
1798
|
+
Subtitle: Be("subtitle"),
|
|
1799
|
+
Label: ze("label"),
|
|
1800
|
+
Paragraph: ze("paragraph")
|
|
1801
|
+
}, Ao = "_base_10oxr_1", Po = "_content_10oxr_1", Bo = "_background_10oxr_1", zo = "_button_10oxr_1", Do = "_link_10oxr_1", Wo = "_input_10oxr_96", Fo = "_suffix_10oxr_1", qo = "_prefix_10oxr_1", Ho = "_tooltip_10oxr_1", Vo = "_hint_10oxr_794", Xo = "_dropdown_10oxr_1", Yo = "_popover_10oxr_1", Zo = "_modalBackdrop_10oxr_1", Go = "_modal_10oxr_1", Uo = "_overlay_10oxr_1", Jo = "_drawer_10oxr_1", Ko = "_notification_10oxr_1", Qo = "_alert_10oxr_1", ts = "_toast_10oxr_1", es = "_loading_10oxr_291", rs = "_error_10oxr_252", as = "_critical_10oxr_1", ns = "_inputBase_10oxr_96", os = "_wrapper_10oxr_106", ss = "_gripHandle_10oxr_186", is = "_tabFocused_10oxr_259", ls = "_disabled_10oxr_284", cs = "_label_10oxr_301", ds = "_S_10oxr_315", us = "_M_10oxr_321", _s = "_XL_10oxr_328", ps = "_leftSection_10oxr_335", fs = "_rightSection_10oxr_347", gs = "_helper_10oxr_385", hs = "_floatingLabel_10oxr_415", ms = "_focused_10oxr_481", bs = "_filled_10oxr_482", ys = "_L_10oxr_522", xs = "_characterLimit_10oxr_564", vs = "_textarea_10oxr_124", ws = "_truncate_10oxr_707", N = {
|
|
1802
|
+
base: Ao,
|
|
1803
|
+
content: Po,
|
|
1804
|
+
background: Bo,
|
|
1805
|
+
button: zo,
|
|
1806
|
+
link: Do,
|
|
1807
|
+
input: Wo,
|
|
1808
|
+
suffix: Fo,
|
|
1809
|
+
prefix: qo,
|
|
1810
|
+
tooltip: Ho,
|
|
1811
|
+
hint: Vo,
|
|
1812
|
+
dropdown: Xo,
|
|
1813
|
+
popover: Yo,
|
|
1814
|
+
modalBackdrop: Zo,
|
|
1815
|
+
modal: Go,
|
|
1816
|
+
overlay: Uo,
|
|
1817
|
+
drawer: Jo,
|
|
1818
|
+
notification: Ko,
|
|
1819
|
+
alert: Qo,
|
|
1837
1820
|
toast: ts,
|
|
1838
|
-
loading:
|
|
1839
|
-
error:
|
|
1840
|
-
critical:
|
|
1841
|
-
inputBase:
|
|
1842
|
-
wrapper:
|
|
1821
|
+
loading: es,
|
|
1822
|
+
error: rs,
|
|
1823
|
+
critical: as,
|
|
1824
|
+
inputBase: ns,
|
|
1825
|
+
wrapper: os,
|
|
1843
1826
|
"textarea-wrapper": "_textarea-wrapper_10oxr_124",
|
|
1844
|
-
gripHandle:
|
|
1845
|
-
tabFocused:
|
|
1846
|
-
disabled:
|
|
1847
|
-
label:
|
|
1848
|
-
S:
|
|
1849
|
-
M:
|
|
1850
|
-
XL:
|
|
1851
|
-
leftSection:
|
|
1852
|
-
rightSection:
|
|
1853
|
-
helper:
|
|
1827
|
+
gripHandle: ss,
|
|
1828
|
+
tabFocused: is,
|
|
1829
|
+
disabled: ls,
|
|
1830
|
+
label: cs,
|
|
1831
|
+
S: ds,
|
|
1832
|
+
M: us,
|
|
1833
|
+
XL: _s,
|
|
1834
|
+
leftSection: ps,
|
|
1835
|
+
rightSection: fs,
|
|
1836
|
+
helper: gs,
|
|
1854
1837
|
floatingLabel: hs,
|
|
1855
1838
|
focused: ms,
|
|
1856
|
-
filled:
|
|
1857
|
-
L:
|
|
1858
|
-
characterLimit:
|
|
1859
|
-
textarea:
|
|
1839
|
+
filled: bs,
|
|
1840
|
+
L: ys,
|
|
1841
|
+
characterLimit: xs,
|
|
1842
|
+
textarea: vs,
|
|
1860
1843
|
"size-S": "_size-S_10oxr_646",
|
|
1861
1844
|
"size-M": "_size-M_10oxr_656",
|
|
1862
1845
|
"size-L": "_size-L_10oxr_662",
|
|
1863
1846
|
"size-XL": "_size-XL_10oxr_668",
|
|
1864
1847
|
"with-floating-label": "_with-floating-label_10oxr_675",
|
|
1865
|
-
truncate:
|
|
1848
|
+
truncate: ws,
|
|
1866
1849
|
"has-hint": "_has-hint_10oxr_815",
|
|
1867
1850
|
"has-suffix": "_has-suffix_10oxr_821",
|
|
1868
1851
|
"has-limit": "_has-limit_10oxr_844"
|
|
1869
|
-
},
|
|
1870
|
-
width:
|
|
1852
|
+
}, Cs = ({
|
|
1853
|
+
width: t = 8,
|
|
1871
1854
|
height: r = 8,
|
|
1872
1855
|
className: a,
|
|
1873
1856
|
color: n = "#AABBCA"
|
|
1874
1857
|
}) => /* @__PURE__ */ o.jsx(
|
|
1875
1858
|
"svg",
|
|
1876
1859
|
{
|
|
1877
|
-
width:
|
|
1860
|
+
width: t,
|
|
1878
1861
|
height: r,
|
|
1879
1862
|
viewBox: "0 0 8 8",
|
|
1880
1863
|
fill: "none",
|
|
@@ -1890,8 +1873,8 @@ const Va = 2, Xa = (e) => {
|
|
|
1890
1873
|
}
|
|
1891
1874
|
)
|
|
1892
1875
|
}
|
|
1893
|
-
),
|
|
1894
|
-
className:
|
|
1876
|
+
), Je = ({
|
|
1877
|
+
className: t = "",
|
|
1895
1878
|
style: r,
|
|
1896
1879
|
size: a = "md",
|
|
1897
1880
|
color: n = "currentColor",
|
|
@@ -1914,7 +1897,7 @@ const Va = 2, Xa = (e) => {
|
|
|
1914
1897
|
return /* @__PURE__ */ o.jsx(
|
|
1915
1898
|
"svg",
|
|
1916
1899
|
{
|
|
1917
|
-
className:
|
|
1900
|
+
className: t,
|
|
1918
1901
|
style: c,
|
|
1919
1902
|
viewBox: "0 0 16 16",
|
|
1920
1903
|
fill: "none",
|
|
@@ -1933,47 +1916,47 @@ const Va = 2, Xa = (e) => {
|
|
|
1933
1916
|
)
|
|
1934
1917
|
}
|
|
1935
1918
|
);
|
|
1936
|
-
},
|
|
1937
|
-
const a =
|
|
1938
|
-
return
|
|
1919
|
+
}, Ss = (t, r) => {
|
|
1920
|
+
const a = qt(null), n = qt(null);
|
|
1921
|
+
return lt(() => {
|
|
1939
1922
|
const i = r === "textarea" ? a.current : n.current;
|
|
1940
|
-
i && i.value !==
|
|
1941
|
-
}, [
|
|
1923
|
+
i && i.value !== t && (i.value = t || "");
|
|
1924
|
+
}, [t, r]), {
|
|
1942
1925
|
textareaRef: a,
|
|
1943
1926
|
inputRef: n,
|
|
1944
1927
|
currentRef: r === "textarea" ? a : n
|
|
1945
1928
|
};
|
|
1946
|
-
},
|
|
1929
|
+
}, Ls = (t, r, a) => {
|
|
1947
1930
|
const n = () => {
|
|
1948
1931
|
if (!a.current || r !== "hug") return;
|
|
1949
1932
|
const i = a.current.scrollTop;
|
|
1950
|
-
if (a.current.style.setProperty("height", "auto", "important"), !
|
|
1933
|
+
if (a.current.style.setProperty("height", "auto", "important"), !t) return;
|
|
1951
1934
|
const s = a.current.scrollHeight + "px";
|
|
1952
1935
|
a.current.style.setProperty("height", s, "important"), a.current.scrollTop = i;
|
|
1953
|
-
const l = a.current.closest(`.${
|
|
1936
|
+
const l = a.current.closest(`.${N.wrapper}`);
|
|
1954
1937
|
l && (l.setAttribute("data-resize", "hug"), l.setAttribute("data-show-grip", "false"));
|
|
1955
1938
|
};
|
|
1956
|
-
return
|
|
1939
|
+
return lt(n, [t, r]), lt(() => {
|
|
1957
1940
|
r === "hug" && a.current && n();
|
|
1958
1941
|
}, []), { resizeTextArea: n };
|
|
1959
|
-
},
|
|
1942
|
+
}, js = (t, r, a, n) => ({ handleGripMouseDown: St(
|
|
1960
1943
|
(s) => {
|
|
1961
|
-
if (!
|
|
1944
|
+
if (!t || r || a || !(n === "fixed" || !n)) return;
|
|
1962
1945
|
s.preventDefault(), s.stopPropagation();
|
|
1963
|
-
const l = s.currentTarget.closest(`.${
|
|
1946
|
+
const l = s.currentTarget.closest(`.${N.wrapper}`);
|
|
1964
1947
|
if (!l) return;
|
|
1965
|
-
const c = s.clientY, _ = l.clientHeight, f = (
|
|
1966
|
-
const
|
|
1967
|
-
l.style.height = `${
|
|
1948
|
+
const c = s.clientY, _ = l.clientHeight, f = (m) => {
|
|
1949
|
+
const b = m.clientY - c, g = Math.min(100, _), y = Math.max(g, _ + b);
|
|
1950
|
+
l.style.height = `${y}px`;
|
|
1968
1951
|
}, p = () => {
|
|
1969
1952
|
document.removeEventListener("mousemove", f), document.removeEventListener("mouseup", p);
|
|
1970
1953
|
};
|
|
1971
1954
|
document.addEventListener("mousemove", f), document.addEventListener("mouseup", p);
|
|
1972
1955
|
},
|
|
1973
|
-
[
|
|
1974
|
-
) }),
|
|
1956
|
+
[t, r, a, n]
|
|
1957
|
+
) }), We = 30, ks = K(
|
|
1975
1958
|
({
|
|
1976
|
-
component:
|
|
1959
|
+
component: t = "input",
|
|
1977
1960
|
size: r = "L",
|
|
1978
1961
|
value: a = "",
|
|
1979
1962
|
placeholder: n,
|
|
@@ -1984,23 +1967,23 @@ const Va = 2, Xa = (e) => {
|
|
|
1984
1967
|
onChange: _,
|
|
1985
1968
|
onKeyDown: f,
|
|
1986
1969
|
onKeyUp: p,
|
|
1987
|
-
maxLength:
|
|
1988
|
-
className:
|
|
1989
|
-
style:
|
|
1990
|
-
truncate:
|
|
1970
|
+
maxLength: m,
|
|
1971
|
+
className: b,
|
|
1972
|
+
style: g,
|
|
1973
|
+
truncate: y = !1,
|
|
1991
1974
|
shouldShowFloatingLabelClass: C = !1,
|
|
1992
|
-
"aria-invalid":
|
|
1975
|
+
"aria-invalid": x,
|
|
1993
1976
|
"aria-errormessage": v,
|
|
1994
1977
|
id: u,
|
|
1995
1978
|
resize: w,
|
|
1996
1979
|
...L
|
|
1997
1980
|
}, E) => {
|
|
1998
|
-
const { textareaRef:
|
|
1999
|
-
if (
|
|
1981
|
+
const { textareaRef: k, inputRef: T, currentRef: O } = Ss(a, t);
|
|
1982
|
+
if (Ls(a, w, k), kr(E, () => O.current, [O]), t === "textarea")
|
|
2000
1983
|
return /* @__PURE__ */ o.jsx(
|
|
2001
1984
|
"textarea",
|
|
2002
1985
|
{
|
|
2003
|
-
ref:
|
|
1986
|
+
ref: k,
|
|
2004
1987
|
id: u,
|
|
2005
1988
|
value: a,
|
|
2006
1989
|
placeholder: n,
|
|
@@ -2010,15 +1993,15 @@ const Va = 2, Xa = (e) => {
|
|
|
2010
1993
|
onChange: _,
|
|
2011
1994
|
onKeyDown: f,
|
|
2012
1995
|
onKeyUp: p,
|
|
2013
|
-
maxLength:
|
|
1996
|
+
maxLength: m,
|
|
2014
1997
|
className: $(
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
C &&
|
|
2018
|
-
|
|
1998
|
+
N.textarea,
|
|
1999
|
+
N[`size-${r}`],
|
|
2000
|
+
C && N["with-floating-label"],
|
|
2001
|
+
b
|
|
2019
2002
|
),
|
|
2020
|
-
style:
|
|
2021
|
-
"aria-invalid":
|
|
2003
|
+
style: g,
|
|
2004
|
+
"aria-invalid": x,
|
|
2022
2005
|
"aria-errormessage": v,
|
|
2023
2006
|
"aria-describedby": v ? `${u}-error` : void 0,
|
|
2024
2007
|
tabIndex: 0,
|
|
@@ -2026,7 +2009,7 @@ const Va = 2, Xa = (e) => {
|
|
|
2026
2009
|
...L
|
|
2027
2010
|
}
|
|
2028
2011
|
);
|
|
2029
|
-
if (
|
|
2012
|
+
if (t === "input")
|
|
2030
2013
|
return /* @__PURE__ */ o.jsx(
|
|
2031
2014
|
"input",
|
|
2032
2015
|
{
|
|
@@ -2040,30 +2023,30 @@ const Va = 2, Xa = (e) => {
|
|
|
2040
2023
|
onChange: _,
|
|
2041
2024
|
onKeyDown: f,
|
|
2042
2025
|
onKeyUp: p,
|
|
2043
|
-
maxLength:
|
|
2026
|
+
maxLength: m,
|
|
2044
2027
|
className: $(
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
C &&
|
|
2048
|
-
|
|
2049
|
-
|
|
2028
|
+
N.input,
|
|
2029
|
+
N[`size-${r}`],
|
|
2030
|
+
C && N["with-floating-label"],
|
|
2031
|
+
y && N.truncate,
|
|
2032
|
+
b
|
|
2050
2033
|
),
|
|
2051
|
-
style:
|
|
2052
|
-
"aria-invalid":
|
|
2034
|
+
style: g,
|
|
2035
|
+
"aria-invalid": x,
|
|
2053
2036
|
"aria-errormessage": v,
|
|
2054
2037
|
"aria-describedby": v ? `${u}-error` : void 0,
|
|
2055
2038
|
tabIndex: 0,
|
|
2056
2039
|
...L
|
|
2057
2040
|
}
|
|
2058
2041
|
);
|
|
2059
|
-
if (
|
|
2042
|
+
if (t !== "input" && t !== "textarea")
|
|
2060
2043
|
return console.error(
|
|
2061
|
-
`[Input] Недопустимое значение prop 'component': "${String(
|
|
2044
|
+
`[Input] Недопустимое значение prop 'component': "${String(t)}". Допустимые значения: 'input', 'textarea'`
|
|
2062
2045
|
), null;
|
|
2063
2046
|
}
|
|
2064
|
-
),
|
|
2047
|
+
), Ke = K(
|
|
2065
2048
|
({
|
|
2066
|
-
children:
|
|
2049
|
+
children: t,
|
|
2067
2050
|
size: r = "L",
|
|
2068
2051
|
error: a = !1,
|
|
2069
2052
|
disabled: n = !1,
|
|
@@ -2074,124 +2057,124 @@ const Va = 2, Xa = (e) => {
|
|
|
2074
2057
|
floatingLabelStyles: _,
|
|
2075
2058
|
prefixStyles: f,
|
|
2076
2059
|
suffixStyles: p,
|
|
2077
|
-
labelProps:
|
|
2078
|
-
helperProps:
|
|
2079
|
-
showLimit:
|
|
2080
|
-
maxLength:
|
|
2060
|
+
labelProps: m,
|
|
2061
|
+
helperProps: b,
|
|
2062
|
+
showLimit: g = !1,
|
|
2063
|
+
maxLength: y,
|
|
2081
2064
|
hint: C,
|
|
2082
|
-
showHint:
|
|
2065
|
+
showHint: x = !1,
|
|
2083
2066
|
showHintOnEmpty: v = !1,
|
|
2084
2067
|
prefix: u,
|
|
2085
2068
|
suffix: w,
|
|
2086
2069
|
onSuffixClick: L,
|
|
2087
2070
|
placeholder: E,
|
|
2088
|
-
showLabel:
|
|
2071
|
+
showLabel: k = !0,
|
|
2089
2072
|
labelClassName: T,
|
|
2090
|
-
hasValue:
|
|
2091
|
-
helper:
|
|
2073
|
+
hasValue: O = !1,
|
|
2074
|
+
helper: A,
|
|
2092
2075
|
id: W,
|
|
2093
2076
|
value: q = "",
|
|
2094
2077
|
resize: P,
|
|
2095
2078
|
showGrip: S = !1,
|
|
2096
|
-
...
|
|
2079
|
+
...I
|
|
2097
2080
|
}, z) => {
|
|
2098
|
-
const F =
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
a &&
|
|
2102
|
-
n &&
|
|
2103
|
-
i &&
|
|
2104
|
-
Q &&
|
|
2105
|
-
w &&
|
|
2106
|
-
|
|
2081
|
+
const F = pe(), X = W || F, Q = x && C && (O || v), ct = C && C.length > We ? C.substring(0, We) + "..." : C, at = $(
|
|
2082
|
+
N.wrapper,
|
|
2083
|
+
N[`size-${r}`],
|
|
2084
|
+
a && N.error,
|
|
2085
|
+
n && N.disabled,
|
|
2086
|
+
i && N.loading,
|
|
2087
|
+
Q && N["has-hint"],
|
|
2088
|
+
w && N["has-suffix"],
|
|
2089
|
+
g && N["has-limit"],
|
|
2107
2090
|
s
|
|
2108
|
-
),
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2091
|
+
), tt = $(
|
|
2092
|
+
N.floatingLabel,
|
|
2093
|
+
N[r],
|
|
2094
|
+
O && N.filled,
|
|
2112
2095
|
T
|
|
2113
|
-
), { handleGripMouseDown:
|
|
2114
|
-
return /* @__PURE__ */ o.jsxs("div", { ref: z, className:
|
|
2096
|
+
), { handleGripMouseDown: et } = js(S, n, i, P);
|
|
2097
|
+
return /* @__PURE__ */ o.jsxs("div", { ref: z, className: N.inputBase, "data-testid": "input-base-wrapper", ...I, children: [
|
|
2115
2098
|
/* @__PURE__ */ o.jsxs(
|
|
2116
2099
|
"div",
|
|
2117
2100
|
{
|
|
2118
|
-
className:
|
|
2101
|
+
className: at,
|
|
2119
2102
|
style: c,
|
|
2120
2103
|
"data-resize": P,
|
|
2121
2104
|
"data-show-grip": S ? "true" : "false",
|
|
2122
2105
|
...l,
|
|
2123
2106
|
children: [
|
|
2124
|
-
u && /* @__PURE__ */ o.jsx("label", { htmlFor: X, className:
|
|
2107
|
+
u && /* @__PURE__ */ o.jsx("label", { htmlFor: X, className: N.leftSection, style: f, children: u }),
|
|
2125
2108
|
w && /* @__PURE__ */ o.jsx(
|
|
2126
2109
|
"label",
|
|
2127
2110
|
{
|
|
2128
2111
|
htmlFor: X,
|
|
2129
|
-
className:
|
|
2112
|
+
className: N.rightSection,
|
|
2130
2113
|
style: p,
|
|
2131
2114
|
onClick: L,
|
|
2132
2115
|
children: w
|
|
2133
2116
|
}
|
|
2134
2117
|
),
|
|
2135
|
-
E &&
|
|
2118
|
+
E && k && /* @__PURE__ */ o.jsx(
|
|
2136
2119
|
"label",
|
|
2137
2120
|
{
|
|
2138
2121
|
htmlFor: X,
|
|
2139
|
-
className:
|
|
2122
|
+
className: tt,
|
|
2140
2123
|
style: _,
|
|
2141
|
-
...
|
|
2124
|
+
...m,
|
|
2142
2125
|
children: E
|
|
2143
2126
|
}
|
|
2144
2127
|
),
|
|
2145
|
-
|
|
2146
|
-
S && !
|
|
2128
|
+
t,
|
|
2129
|
+
S && !g && (P === "fixed" || !P) && /* @__PURE__ */ o.jsx(
|
|
2147
2130
|
"div",
|
|
2148
2131
|
{
|
|
2149
|
-
className:
|
|
2150
|
-
onMouseDown:
|
|
2132
|
+
className: N.gripHandle,
|
|
2133
|
+
onMouseDown: et,
|
|
2151
2134
|
role: "button",
|
|
2152
2135
|
tabIndex: -1,
|
|
2153
2136
|
"aria-label": "Изменить размер",
|
|
2154
|
-
children: /* @__PURE__ */ o.jsx(
|
|
2137
|
+
children: /* @__PURE__ */ o.jsx(Cs, {})
|
|
2155
2138
|
}
|
|
2156
2139
|
),
|
|
2157
2140
|
Q && /* @__PURE__ */ o.jsx(
|
|
2158
2141
|
"div",
|
|
2159
2142
|
{
|
|
2160
|
-
className: $(
|
|
2143
|
+
className: $(N.hint, O && N.truncate),
|
|
2161
2144
|
"data-disabled": n || i,
|
|
2162
|
-
children:
|
|
2145
|
+
children: ct
|
|
2163
2146
|
}
|
|
2164
2147
|
),
|
|
2165
|
-
|
|
2148
|
+
g && y && /* @__PURE__ */ o.jsxs("div", { className: N.characterLimit, children: [
|
|
2166
2149
|
(q || "").length,
|
|
2167
2150
|
" из ",
|
|
2168
|
-
|
|
2151
|
+
y
|
|
2169
2152
|
] })
|
|
2170
2153
|
]
|
|
2171
2154
|
}
|
|
2172
2155
|
),
|
|
2173
|
-
|
|
2156
|
+
A && /* @__PURE__ */ o.jsx(
|
|
2174
2157
|
"div",
|
|
2175
2158
|
{
|
|
2176
2159
|
className: $(
|
|
2177
|
-
|
|
2178
|
-
a &&
|
|
2179
|
-
(n || i) &&
|
|
2160
|
+
N.helper,
|
|
2161
|
+
a && N.error,
|
|
2162
|
+
(n || i) && N.disabled
|
|
2180
2163
|
),
|
|
2181
|
-
...
|
|
2164
|
+
...b,
|
|
2182
2165
|
id: a ? `${X}-error` : void 0,
|
|
2183
|
-
children:
|
|
2166
|
+
children: A
|
|
2184
2167
|
}
|
|
2185
2168
|
)
|
|
2186
2169
|
] });
|
|
2187
2170
|
}
|
|
2188
2171
|
);
|
|
2189
|
-
|
|
2190
|
-
const
|
|
2191
|
-
Wrapper:
|
|
2192
|
-
}),
|
|
2172
|
+
Ke.displayName = "InputWrapperComponent";
|
|
2173
|
+
const Fe = Object.assign(ks, {
|
|
2174
|
+
Wrapper: Ke
|
|
2175
|
+
}), Qe = K(
|
|
2193
2176
|
({
|
|
2194
|
-
component:
|
|
2177
|
+
component: t = "input",
|
|
2195
2178
|
size: r = "L",
|
|
2196
2179
|
className: a,
|
|
2197
2180
|
error: n = !1,
|
|
@@ -2202,48 +2185,48 @@ const Ft = Object.assign($s, {
|
|
|
2202
2185
|
labelClassName: _,
|
|
2203
2186
|
helper: f,
|
|
2204
2187
|
prefix: p,
|
|
2205
|
-
suffix:
|
|
2206
|
-
id:
|
|
2207
|
-
onFocus:
|
|
2208
|
-
onBlur:
|
|
2188
|
+
suffix: m,
|
|
2189
|
+
id: b,
|
|
2190
|
+
onFocus: g,
|
|
2191
|
+
onBlur: y,
|
|
2209
2192
|
onKeyDown: C,
|
|
2210
|
-
onSuffixClick:
|
|
2193
|
+
onSuffixClick: x,
|
|
2211
2194
|
onChange: v,
|
|
2212
2195
|
value: u = "",
|
|
2213
2196
|
wrapperProps: w,
|
|
2214
2197
|
wrapperStyles: L,
|
|
2215
2198
|
floatingLabelStyles: E,
|
|
2216
|
-
prefixStyles:
|
|
2199
|
+
prefixStyles: k,
|
|
2217
2200
|
suffixStyles: T,
|
|
2218
|
-
textareaStyles:
|
|
2219
|
-
labelProps:
|
|
2201
|
+
textareaStyles: O,
|
|
2202
|
+
labelProps: A,
|
|
2220
2203
|
helperProps: W,
|
|
2221
2204
|
showLimit: q = !1,
|
|
2222
2205
|
maxLength: P,
|
|
2223
2206
|
inputProps: S,
|
|
2224
|
-
hint:
|
|
2207
|
+
hint: I,
|
|
2225
2208
|
showHint: z = !1,
|
|
2226
2209
|
showHintOnEmpty: F = !1,
|
|
2227
2210
|
truncate: X = !1,
|
|
2228
2211
|
resize: Q,
|
|
2229
|
-
showGrip:
|
|
2230
|
-
...
|
|
2231
|
-
},
|
|
2232
|
-
const
|
|
2212
|
+
showGrip: ct = !1,
|
|
2213
|
+
...at
|
|
2214
|
+
}, tt) => {
|
|
2215
|
+
const et = pe(), bt = b || et, [zt, Et] = _t(u), ht = u !== void 0 ? u : zt, Tt = (ht || "").length > 0, jt = ht || "", Rt = c && (r === "XL" || t === "textarea") && !p, Kt = St(
|
|
2233
2216
|
(G) => {
|
|
2234
2217
|
var U;
|
|
2235
|
-
i || s || (
|
|
2218
|
+
i || s || (g == null || g(), (U = S == null ? void 0 : S.onFocus) == null || U.call(
|
|
2236
2219
|
S,
|
|
2237
2220
|
G
|
|
2238
2221
|
));
|
|
2239
2222
|
},
|
|
2240
|
-
[
|
|
2241
|
-
),
|
|
2223
|
+
[g, S, i, s]
|
|
2224
|
+
), Vt = St(
|
|
2242
2225
|
(G) => {
|
|
2243
2226
|
var U;
|
|
2244
2227
|
if (G.key === "Tab") {
|
|
2245
|
-
const
|
|
2246
|
-
|
|
2228
|
+
const mt = G.target.closest(`.${N.wrapper}`);
|
|
2229
|
+
mt && mt.classList.add(N.tabFocused);
|
|
2247
2230
|
}
|
|
2248
2231
|
(U = S == null ? void 0 : S.onKeyUp) == null || U.call(
|
|
2249
2232
|
S,
|
|
@@ -2251,86 +2234,86 @@ const Ft = Object.assign($s, {
|
|
|
2251
2234
|
);
|
|
2252
2235
|
},
|
|
2253
2236
|
[S]
|
|
2254
|
-
),
|
|
2237
|
+
), Qt = St(
|
|
2255
2238
|
(G) => {
|
|
2256
|
-
var
|
|
2257
|
-
const U = G.target.closest(`.${
|
|
2258
|
-
U && U.classList.remove(
|
|
2239
|
+
var mt;
|
|
2240
|
+
const U = G.target.closest(`.${N.wrapper}`);
|
|
2241
|
+
U && U.classList.remove(N.tabFocused), y == null || y(), (mt = S == null ? void 0 : S.onBlur) == null || mt.call(
|
|
2259
2242
|
S,
|
|
2260
2243
|
G
|
|
2261
2244
|
);
|
|
2262
2245
|
},
|
|
2263
|
-
[
|
|
2264
|
-
),
|
|
2246
|
+
[y, S]
|
|
2247
|
+
), te = St(
|
|
2265
2248
|
(G) => {
|
|
2266
|
-
var
|
|
2249
|
+
var mt;
|
|
2267
2250
|
if (i || s) return;
|
|
2268
2251
|
const U = G.target.value;
|
|
2269
|
-
|
|
2252
|
+
Et(U), v == null || v(U, G), (mt = S == null ? void 0 : S.onChange) == null || mt.call(
|
|
2270
2253
|
S,
|
|
2271
2254
|
G
|
|
2272
2255
|
);
|
|
2273
2256
|
},
|
|
2274
2257
|
[v, S, i, s]
|
|
2275
2258
|
);
|
|
2276
|
-
return
|
|
2277
|
-
|
|
2259
|
+
return lt(() => {
|
|
2260
|
+
Et(u || "");
|
|
2278
2261
|
}, [u]), /* @__PURE__ */ o.jsx(
|
|
2279
|
-
|
|
2262
|
+
Fe.Wrapper,
|
|
2280
2263
|
{
|
|
2281
|
-
ref:
|
|
2264
|
+
ref: tt,
|
|
2282
2265
|
size: r,
|
|
2283
2266
|
error: n,
|
|
2284
2267
|
disabled: i || s,
|
|
2285
2268
|
loading: s,
|
|
2286
|
-
className: $(a,
|
|
2269
|
+
className: $(a, t === "textarea" && N["textarea-wrapper"]),
|
|
2287
2270
|
wrapperProps: w,
|
|
2288
2271
|
wrapperStyles: L,
|
|
2289
2272
|
floatingLabelStyles: E,
|
|
2290
|
-
prefixStyles:
|
|
2273
|
+
prefixStyles: k,
|
|
2291
2274
|
suffixStyles: T,
|
|
2292
|
-
labelProps:
|
|
2275
|
+
labelProps: A,
|
|
2293
2276
|
helperProps: W,
|
|
2294
2277
|
showLimit: q,
|
|
2295
2278
|
maxLength: P,
|
|
2296
|
-
hint:
|
|
2279
|
+
hint: I,
|
|
2297
2280
|
showHint: z,
|
|
2298
2281
|
showHintOnEmpty: F,
|
|
2299
2282
|
prefix: p,
|
|
2300
|
-
suffix:
|
|
2301
|
-
onSuffixClick:
|
|
2283
|
+
suffix: m,
|
|
2284
|
+
onSuffixClick: x,
|
|
2302
2285
|
placeholder: l,
|
|
2303
2286
|
showLabel: c,
|
|
2304
2287
|
labelClassName: _,
|
|
2305
|
-
hasValue:
|
|
2288
|
+
hasValue: Tt,
|
|
2306
2289
|
helper: f,
|
|
2307
|
-
id:
|
|
2308
|
-
value:
|
|
2309
|
-
showGrip:
|
|
2290
|
+
id: bt,
|
|
2291
|
+
value: jt,
|
|
2292
|
+
showGrip: ct,
|
|
2310
2293
|
resize: Q,
|
|
2311
|
-
...
|
|
2294
|
+
...at,
|
|
2312
2295
|
children: /* @__PURE__ */ o.jsx(
|
|
2313
|
-
|
|
2296
|
+
Fe,
|
|
2314
2297
|
{
|
|
2315
|
-
component:
|
|
2298
|
+
component: t,
|
|
2316
2299
|
size: r,
|
|
2317
|
-
value:
|
|
2300
|
+
value: jt,
|
|
2318
2301
|
placeholder: l,
|
|
2319
2302
|
disabled: i,
|
|
2320
2303
|
loading: s,
|
|
2321
|
-
onFocus:
|
|
2322
|
-
onBlur:
|
|
2323
|
-
onChange:
|
|
2304
|
+
onFocus: Kt,
|
|
2305
|
+
onBlur: Qt,
|
|
2306
|
+
onChange: te,
|
|
2324
2307
|
onKeyDown: C,
|
|
2325
|
-
onKeyUp:
|
|
2308
|
+
onKeyUp: Vt,
|
|
2326
2309
|
maxLength: P,
|
|
2327
2310
|
truncate: X,
|
|
2328
|
-
"data-empty": !
|
|
2329
|
-
shouldShowFloatingLabelClass:
|
|
2330
|
-
style:
|
|
2311
|
+
"data-empty": !Tt,
|
|
2312
|
+
shouldShowFloatingLabelClass: Rt,
|
|
2313
|
+
style: t === "textarea" ? O : void 0,
|
|
2331
2314
|
"aria-invalid": !!n,
|
|
2332
|
-
"aria-errormessage": n ? `${
|
|
2333
|
-
id:
|
|
2315
|
+
"aria-errormessage": n ? `${bt}-error` : void 0,
|
|
2316
|
+
id: bt,
|
|
2334
2317
|
resize: Q,
|
|
2335
2318
|
...S
|
|
2336
2319
|
}
|
|
@@ -2343,8 +2326,8 @@ const Ft = Object.assign($s, {
|
|
|
2343
2326
|
M: "M",
|
|
2344
2327
|
L: "L",
|
|
2345
2328
|
XL: "XL"
|
|
2346
|
-
},
|
|
2347
|
-
switch (
|
|
2329
|
+
}, $s = (t, r, a, n) => {
|
|
2330
|
+
switch (t) {
|
|
2348
2331
|
case H.XL:
|
|
2349
2332
|
return r && a ? "8px 16px 8px 16px" : "16px 16px 16px 16px";
|
|
2350
2333
|
case H.L:
|
|
@@ -2356,8 +2339,8 @@ const Ft = Object.assign($s, {
|
|
|
2356
2339
|
default:
|
|
2357
2340
|
return "12px 16px 12px 16px";
|
|
2358
2341
|
}
|
|
2359
|
-
},
|
|
2360
|
-
switch (
|
|
2342
|
+
}, Es = (t) => {
|
|
2343
|
+
switch (t) {
|
|
2361
2344
|
case H.XL:
|
|
2362
2345
|
return "56px";
|
|
2363
2346
|
case H.L:
|
|
@@ -2369,8 +2352,8 @@ const Ft = Object.assign($s, {
|
|
|
2369
2352
|
default:
|
|
2370
2353
|
return "48px";
|
|
2371
2354
|
}
|
|
2372
|
-
},
|
|
2373
|
-
switch (
|
|
2355
|
+
}, Ts = (t) => {
|
|
2356
|
+
switch (t) {
|
|
2374
2357
|
case H.S:
|
|
2375
2358
|
case H.M:
|
|
2376
2359
|
case H.L:
|
|
@@ -2380,8 +2363,8 @@ const Ft = Object.assign($s, {
|
|
|
2380
2363
|
default:
|
|
2381
2364
|
return 8;
|
|
2382
2365
|
}
|
|
2383
|
-
},
|
|
2384
|
-
switch (
|
|
2366
|
+
}, Rs = (t) => {
|
|
2367
|
+
switch (t) {
|
|
2385
2368
|
case H.S:
|
|
2386
2369
|
case H.M:
|
|
2387
2370
|
return 8;
|
|
@@ -2391,10 +2374,10 @@ const Ft = Object.assign($s, {
|
|
|
2391
2374
|
default:
|
|
2392
2375
|
return 12;
|
|
2393
2376
|
}
|
|
2394
|
-
},
|
|
2377
|
+
}, Ns = (t, r, a, n) => ({
|
|
2395
2378
|
wrapperStyles: {
|
|
2396
|
-
minHeight:
|
|
2397
|
-
maxHeight:
|
|
2379
|
+
minHeight: t,
|
|
2380
|
+
maxHeight: t,
|
|
2398
2381
|
boxSizing: "border-box",
|
|
2399
2382
|
padding: r
|
|
2400
2383
|
},
|
|
@@ -2411,11 +2394,11 @@ const Ft = Object.assign($s, {
|
|
|
2411
2394
|
padding: "6px",
|
|
2412
2395
|
cursor: "pointer"
|
|
2413
2396
|
}
|
|
2414
|
-
}),
|
|
2397
|
+
}), Is = (t, r, a, n) => ({
|
|
2415
2398
|
wrapperStyles: {
|
|
2416
|
-
height:
|
|
2417
|
-
minHeight:
|
|
2418
|
-
maxHeight:
|
|
2399
|
+
height: t,
|
|
2400
|
+
minHeight: t,
|
|
2401
|
+
maxHeight: t,
|
|
2419
2402
|
boxSizing: "border-box",
|
|
2420
2403
|
padding: r
|
|
2421
2404
|
},
|
|
@@ -2433,10 +2416,10 @@ const Ft = Object.assign($s, {
|
|
|
2433
2416
|
padding: "8px",
|
|
2434
2417
|
cursor: "pointer"
|
|
2435
2418
|
}
|
|
2436
|
-
}),
|
|
2419
|
+
}), Ms = (t, r, a, n) => ({
|
|
2437
2420
|
wrapperStyles: {
|
|
2438
|
-
minHeight:
|
|
2439
|
-
maxHeight:
|
|
2421
|
+
minHeight: t,
|
|
2422
|
+
maxHeight: t,
|
|
2440
2423
|
boxSizing: "border-box",
|
|
2441
2424
|
padding: r
|
|
2442
2425
|
},
|
|
@@ -2456,10 +2439,10 @@ const Ft = Object.assign($s, {
|
|
|
2456
2439
|
alignItems: "center",
|
|
2457
2440
|
justifyContent: "center"
|
|
2458
2441
|
}
|
|
2459
|
-
}),
|
|
2442
|
+
}), Os = (t, r, a, n) => ({
|
|
2460
2443
|
wrapperStyles: {
|
|
2461
|
-
minHeight:
|
|
2462
|
-
maxHeight:
|
|
2444
|
+
minHeight: t,
|
|
2445
|
+
maxHeight: t,
|
|
2463
2446
|
boxSizing: "border-box",
|
|
2464
2447
|
padding: r
|
|
2465
2448
|
},
|
|
@@ -2476,17 +2459,17 @@ const Ft = Object.assign($s, {
|
|
|
2476
2459
|
padding: "6px",
|
|
2477
2460
|
cursor: "pointer"
|
|
2478
2461
|
}
|
|
2479
|
-
}),
|
|
2480
|
-
const i =
|
|
2481
|
-
switch (
|
|
2462
|
+
}), As = (t, r, a, n) => {
|
|
2463
|
+
const i = Es(t), s = $s(t, r, a, n), l = Rs(t), c = Ts(t);
|
|
2464
|
+
switch (t) {
|
|
2482
2465
|
case H.XL:
|
|
2483
|
-
return
|
|
2466
|
+
return Is(i, s, l, c);
|
|
2484
2467
|
case H.L:
|
|
2485
|
-
return
|
|
2468
|
+
return Ms(i, s, l, c);
|
|
2486
2469
|
case H.M:
|
|
2487
|
-
return
|
|
2470
|
+
return Os(i, s, l, c);
|
|
2488
2471
|
case H.S:
|
|
2489
|
-
return
|
|
2472
|
+
return Ns(i, s, l, c);
|
|
2490
2473
|
default:
|
|
2491
2474
|
return {
|
|
2492
2475
|
wrapperStyles: {},
|
|
@@ -2495,9 +2478,9 @@ const Ft = Object.assign($s, {
|
|
|
2495
2478
|
suffixStyles: {}
|
|
2496
2479
|
};
|
|
2497
2480
|
}
|
|
2498
|
-
},
|
|
2481
|
+
}, ql = K(
|
|
2499
2482
|
({
|
|
2500
|
-
value:
|
|
2483
|
+
value: t = "",
|
|
2501
2484
|
onChange: r,
|
|
2502
2485
|
type: a = "text",
|
|
2503
2486
|
placeholder: n,
|
|
@@ -2508,252 +2491,252 @@ const Ft = Object.assign($s, {
|
|
|
2508
2491
|
size: _ = H.L,
|
|
2509
2492
|
inputProps: f,
|
|
2510
2493
|
error: p,
|
|
2511
|
-
disabled:
|
|
2512
|
-
loading:
|
|
2513
|
-
helper:
|
|
2514
|
-
prefix:
|
|
2494
|
+
disabled: m,
|
|
2495
|
+
loading: b,
|
|
2496
|
+
helper: g,
|
|
2497
|
+
prefix: y,
|
|
2515
2498
|
suffix: C,
|
|
2516
|
-
clearable:
|
|
2499
|
+
clearable: x = !1,
|
|
2517
2500
|
id: v,
|
|
2518
2501
|
showLabel: u = !0,
|
|
2519
2502
|
onFocus: w,
|
|
2520
2503
|
onBlur: L,
|
|
2521
2504
|
onSuffixClick: E,
|
|
2522
|
-
onClear:
|
|
2505
|
+
onClear: k,
|
|
2523
2506
|
className: T,
|
|
2524
|
-
truncate:
|
|
2525
|
-
hint:
|
|
2507
|
+
truncate: O = !0,
|
|
2508
|
+
hint: A,
|
|
2526
2509
|
showHint: W = !1,
|
|
2527
2510
|
showHintOnEmpty: q = !1,
|
|
2528
2511
|
wrapperProps: P,
|
|
2529
2512
|
labelProps: S,
|
|
2530
|
-
helperProps:
|
|
2513
|
+
helperProps: I,
|
|
2531
2514
|
...z
|
|
2532
2515
|
}, F) => {
|
|
2533
|
-
const X = (
|
|
2534
|
-
r == null || r(""),
|
|
2535
|
-
},
|
|
2536
|
-
|
|
2537
|
-
},
|
|
2538
|
-
|
|
2516
|
+
const X = (t || "").length > 0, Q = _ === H.XL, ct = !!y, at = Q && u && !y, tt = x && X && !(m || b), et = () => {
|
|
2517
|
+
r == null || r(""), k == null || k();
|
|
2518
|
+
}, bt = () => {
|
|
2519
|
+
tt && et(), E == null || E();
|
|
2520
|
+
}, zt = tt ? /* @__PURE__ */ o.jsx(
|
|
2521
|
+
Je,
|
|
2539
2522
|
{
|
|
2540
2523
|
size: _ === H.S || _ === H.M ? "xs" : "sm",
|
|
2541
2524
|
color: "var(--icon-secondary)",
|
|
2542
2525
|
style: { cursor: "pointer" },
|
|
2543
2526
|
"data-testid": "x-icon"
|
|
2544
2527
|
}
|
|
2545
|
-
) : C,
|
|
2528
|
+
) : C, Et = {
|
|
2546
2529
|
type: a,
|
|
2547
2530
|
minLength: s,
|
|
2548
2531
|
autoComplete: l,
|
|
2549
2532
|
autoFocus: c,
|
|
2550
2533
|
...f
|
|
2551
|
-
},
|
|
2534
|
+
}, ht = As(_, at, X, ct);
|
|
2552
2535
|
return /* @__PURE__ */ o.jsx(
|
|
2553
|
-
|
|
2536
|
+
Qe,
|
|
2554
2537
|
{
|
|
2555
2538
|
size: _,
|
|
2556
2539
|
error: p,
|
|
2557
|
-
disabled:
|
|
2558
|
-
loading:
|
|
2559
|
-
helper:
|
|
2560
|
-
prefix:
|
|
2561
|
-
suffix:
|
|
2540
|
+
disabled: m || b,
|
|
2541
|
+
loading: b,
|
|
2542
|
+
helper: g,
|
|
2543
|
+
prefix: y,
|
|
2544
|
+
suffix: zt,
|
|
2562
2545
|
id: v,
|
|
2563
|
-
showLabel:
|
|
2546
|
+
showLabel: at,
|
|
2564
2547
|
onFocus: w,
|
|
2565
2548
|
onBlur: L,
|
|
2566
|
-
onSuffixClick:
|
|
2549
|
+
onSuffixClick: bt,
|
|
2567
2550
|
onChange: r,
|
|
2568
|
-
value:
|
|
2551
|
+
value: t,
|
|
2569
2552
|
placeholder: n,
|
|
2570
2553
|
className: T,
|
|
2571
|
-
wrapperStyles:
|
|
2572
|
-
floatingLabelStyles:
|
|
2573
|
-
prefixStyles:
|
|
2574
|
-
suffixStyles:
|
|
2554
|
+
wrapperStyles: ht.wrapperStyles,
|
|
2555
|
+
floatingLabelStyles: ht.floatingLabelStyles,
|
|
2556
|
+
prefixStyles: ht.prefixStyles,
|
|
2557
|
+
suffixStyles: ht.suffixStyles,
|
|
2575
2558
|
wrapperProps: P,
|
|
2576
2559
|
labelProps: S,
|
|
2577
|
-
helperProps:
|
|
2560
|
+
helperProps: I,
|
|
2578
2561
|
showLimit: !1,
|
|
2579
2562
|
maxLength: i,
|
|
2580
|
-
inputProps:
|
|
2581
|
-
hint:
|
|
2563
|
+
inputProps: Et,
|
|
2564
|
+
hint: A,
|
|
2582
2565
|
showHint: W,
|
|
2583
2566
|
showHintOnEmpty: q,
|
|
2584
|
-
truncate:
|
|
2567
|
+
truncate: O,
|
|
2585
2568
|
...z
|
|
2586
2569
|
}
|
|
2587
2570
|
);
|
|
2588
2571
|
}
|
|
2589
|
-
),
|
|
2572
|
+
), ut = {
|
|
2590
2573
|
M: "M",
|
|
2591
2574
|
L: "L"
|
|
2592
|
-
},
|
|
2575
|
+
}, Ut = {
|
|
2593
2576
|
M: "12px",
|
|
2594
2577
|
L: "16px"
|
|
2595
|
-
},
|
|
2578
|
+
}, Ps = {
|
|
2596
2579
|
M: "xs",
|
|
2597
2580
|
L: "sm"
|
|
2598
|
-
},
|
|
2581
|
+
}, Zt = {
|
|
2599
2582
|
FILL: "fill",
|
|
2600
2583
|
FIXED: "fixed"
|
|
2601
|
-
},
|
|
2584
|
+
}, ce = {
|
|
2602
2585
|
M: "112px",
|
|
2603
2586
|
L: "56px"
|
|
2604
|
-
},
|
|
2587
|
+
}, Ot = {
|
|
2605
2588
|
M: "48px",
|
|
2606
2589
|
L: "22px"
|
|
2607
|
-
},
|
|
2590
|
+
}, vt = {
|
|
2608
2591
|
M: "12px 12px 12px 12px",
|
|
2609
2592
|
L: "16px 16px 16px 16px",
|
|
2610
2593
|
L_WITH_PREFIX: "12px 16px 12px 16px",
|
|
2611
2594
|
L_FLOATING_LABEL: "8px 16px 8px 16px"
|
|
2612
|
-
},
|
|
2595
|
+
}, Ct = {
|
|
2613
2596
|
M: 48,
|
|
2614
2597
|
L: 56,
|
|
2615
2598
|
XL: 112
|
|
2616
|
-
},
|
|
2617
|
-
if (
|
|
2618
|
-
return
|
|
2599
|
+
}, Bs = (t, r) => {
|
|
2600
|
+
if (t === ut.M)
|
|
2601
|
+
return ce.M;
|
|
2619
2602
|
if (r)
|
|
2620
2603
|
return `${r}px`;
|
|
2621
|
-
switch (
|
|
2622
|
-
case
|
|
2623
|
-
return
|
|
2604
|
+
switch (t) {
|
|
2605
|
+
case ut.L:
|
|
2606
|
+
return ce.L;
|
|
2624
2607
|
default:
|
|
2625
|
-
return
|
|
2608
|
+
return ce.L;
|
|
2626
2609
|
}
|
|
2627
|
-
},
|
|
2628
|
-
if (
|
|
2629
|
-
return
|
|
2610
|
+
}, zs = (t, r) => {
|
|
2611
|
+
if (t === ut.M)
|
|
2612
|
+
return Ot.M;
|
|
2630
2613
|
if (r)
|
|
2631
2614
|
switch (r) {
|
|
2632
|
-
case
|
|
2633
|
-
case
|
|
2634
|
-
return
|
|
2635
|
-
case
|
|
2636
|
-
return
|
|
2615
|
+
case Ct.M:
|
|
2616
|
+
case Ct.L:
|
|
2617
|
+
return Ot.L;
|
|
2618
|
+
case Ct.XL:
|
|
2619
|
+
return Ot.M;
|
|
2637
2620
|
default:
|
|
2638
|
-
return
|
|
2621
|
+
return Ot.L;
|
|
2639
2622
|
}
|
|
2640
|
-
switch (
|
|
2641
|
-
case
|
|
2642
|
-
return
|
|
2623
|
+
switch (t) {
|
|
2624
|
+
case ut.L:
|
|
2625
|
+
return Ot.L;
|
|
2643
2626
|
default:
|
|
2644
|
-
return
|
|
2627
|
+
return Ot.L;
|
|
2645
2628
|
}
|
|
2646
|
-
},
|
|
2647
|
-
if (
|
|
2648
|
-
return
|
|
2629
|
+
}, Ds = (t, r, a) => {
|
|
2630
|
+
if (t === ut.M)
|
|
2631
|
+
return vt.M;
|
|
2649
2632
|
if (r)
|
|
2650
2633
|
switch (r) {
|
|
2651
|
-
case
|
|
2652
|
-
return
|
|
2653
|
-
case
|
|
2654
|
-
return a ?
|
|
2655
|
-
case
|
|
2656
|
-
return
|
|
2634
|
+
case Ct.M:
|
|
2635
|
+
return vt.L_WITH_PREFIX;
|
|
2636
|
+
case Ct.L:
|
|
2637
|
+
return a ? vt.L_FLOATING_LABEL : vt.L;
|
|
2638
|
+
case Ct.XL:
|
|
2639
|
+
return vt.L;
|
|
2657
2640
|
default:
|
|
2658
|
-
return
|
|
2641
|
+
return vt.L;
|
|
2659
2642
|
}
|
|
2660
|
-
switch (
|
|
2661
|
-
case
|
|
2662
|
-
return a ?
|
|
2643
|
+
switch (t) {
|
|
2644
|
+
case ut.L:
|
|
2645
|
+
return a ? vt.L_FLOATING_LABEL : vt.L;
|
|
2663
2646
|
default:
|
|
2664
|
-
return
|
|
2647
|
+
return vt.L;
|
|
2665
2648
|
}
|
|
2666
|
-
},
|
|
2667
|
-
if (
|
|
2649
|
+
}, Ws = (t, r) => {
|
|
2650
|
+
if (t === ut.M)
|
|
2668
2651
|
return "M";
|
|
2669
2652
|
if (r)
|
|
2670
2653
|
switch (r) {
|
|
2671
|
-
case
|
|
2654
|
+
case Ct.M:
|
|
2672
2655
|
return "M";
|
|
2673
|
-
case
|
|
2656
|
+
case Ct.L:
|
|
2674
2657
|
return "L";
|
|
2675
|
-
case
|
|
2658
|
+
case Ct.XL:
|
|
2676
2659
|
return "L";
|
|
2677
2660
|
default:
|
|
2678
2661
|
return "L";
|
|
2679
2662
|
}
|
|
2680
|
-
return
|
|
2681
|
-
},
|
|
2682
|
-
const i =
|
|
2663
|
+
return t;
|
|
2664
|
+
}, Fs = (t) => Ps[t], qs = (t) => Ut[t], Hs = (t, r, a, n) => {
|
|
2665
|
+
const i = Bs(t, r), s = zs(t, r), l = Ds(t, r, a);
|
|
2683
2666
|
return {
|
|
2684
2667
|
wrapperStyles: {
|
|
2685
2668
|
minHeight: i,
|
|
2686
2669
|
// Для fill resize устанавливаем height: 100%
|
|
2687
|
-
...n ===
|
|
2670
|
+
...n === Zt.FILL && { height: "100%" },
|
|
2688
2671
|
// Для fixed resize устанавливаем фиксированную высоту
|
|
2689
|
-
...n ===
|
|
2672
|
+
...n === Zt.FIXED && r && { height: i },
|
|
2690
2673
|
boxSizing: "border-box",
|
|
2691
2674
|
padding: l
|
|
2692
2675
|
},
|
|
2693
2676
|
floatingLabelStyles: {
|
|
2694
|
-
left:
|
|
2677
|
+
left: t === ut.M ? Ut.M : Ut.L,
|
|
2695
2678
|
transformOrigin: "left top",
|
|
2696
|
-
top: r === 112 && a &&
|
|
2679
|
+
top: r === 112 && a && t === ut.L ? Ut.L : void 0
|
|
2697
2680
|
},
|
|
2698
2681
|
suffixStyles: {
|
|
2699
|
-
right:
|
|
2700
|
-
top: r === 48 &&
|
|
2682
|
+
right: qs(t),
|
|
2683
|
+
top: r === 48 && t === ut.L ? "11px" : void 0,
|
|
2701
2684
|
boxSizing: "border-box"
|
|
2702
2685
|
},
|
|
2703
2686
|
textareaStyles: {
|
|
2704
2687
|
minHeight: s,
|
|
2705
2688
|
// Для fill resize flex: 1
|
|
2706
|
-
...n ===
|
|
2689
|
+
...n === Zt.FILL && { flex: 1, minHeight: 0 },
|
|
2707
2690
|
// Для fixed resize фиксированная высота
|
|
2708
|
-
...n ===
|
|
2691
|
+
...n === Zt.FIXED && r && { height: s }
|
|
2709
2692
|
}
|
|
2710
2693
|
};
|
|
2711
|
-
},
|
|
2694
|
+
}, Hl = K(
|
|
2712
2695
|
({
|
|
2713
|
-
value:
|
|
2696
|
+
value: t = "",
|
|
2714
2697
|
onChange: r,
|
|
2715
2698
|
placeholder: a,
|
|
2716
2699
|
maxLength: n,
|
|
2717
2700
|
minLength: i,
|
|
2718
2701
|
autoFocus: s,
|
|
2719
|
-
size: l =
|
|
2702
|
+
size: l = ut.L,
|
|
2720
2703
|
textareaProps: c,
|
|
2721
2704
|
error: _,
|
|
2722
2705
|
disabled: f,
|
|
2723
2706
|
loading: p,
|
|
2724
|
-
helper:
|
|
2725
|
-
suffix:
|
|
2726
|
-
clearable:
|
|
2727
|
-
id:
|
|
2707
|
+
helper: m,
|
|
2708
|
+
suffix: b,
|
|
2709
|
+
clearable: g = !1,
|
|
2710
|
+
id: y,
|
|
2728
2711
|
showLabel: C = !0,
|
|
2729
|
-
onFocus:
|
|
2712
|
+
onFocus: x,
|
|
2730
2713
|
onBlur: v,
|
|
2731
2714
|
onClear: u,
|
|
2732
2715
|
onKeyDown: w,
|
|
2733
2716
|
className: L,
|
|
2734
2717
|
rows: E = 1,
|
|
2735
|
-
showLimit:
|
|
2718
|
+
showLimit: k = !1,
|
|
2736
2719
|
wrapperProps: T,
|
|
2737
|
-
labelProps:
|
|
2738
|
-
helperProps:
|
|
2720
|
+
labelProps: O,
|
|
2721
|
+
helperProps: A,
|
|
2739
2722
|
showGrip: W,
|
|
2740
2723
|
minHeight: q,
|
|
2741
2724
|
resize: P,
|
|
2742
2725
|
...S
|
|
2743
|
-
},
|
|
2744
|
-
const z = (
|
|
2726
|
+
}, I) => {
|
|
2727
|
+
const z = (t || "").length > 0, F = C && !!a && (l === ut.M || q !== 48), X = g && z && !(f || p), Q = () => {
|
|
2745
2728
|
r == null || r(""), u == null || u();
|
|
2746
|
-
},
|
|
2729
|
+
}, ct = () => {
|
|
2747
2730
|
X && Q();
|
|
2748
|
-
},
|
|
2749
|
-
|
|
2731
|
+
}, at = X ? /* @__PURE__ */ o.jsx(
|
|
2732
|
+
Je,
|
|
2750
2733
|
{
|
|
2751
|
-
size:
|
|
2734
|
+
size: Fs(l),
|
|
2752
2735
|
color: "var(--icon-secondary)",
|
|
2753
2736
|
style: { cursor: "pointer" },
|
|
2754
2737
|
"data-testid": "x-icon"
|
|
2755
2738
|
}
|
|
2756
|
-
) :
|
|
2739
|
+
) : b, tt = Hs(l, q, F && z, P), et = Ws(l, q), bt = {
|
|
2757
2740
|
rows: E,
|
|
2758
2741
|
minLength: i,
|
|
2759
2742
|
autoFocus: s,
|
|
@@ -2761,49 +2744,49 @@ const Ft = Object.assign($s, {
|
|
|
2761
2744
|
...c
|
|
2762
2745
|
};
|
|
2763
2746
|
return /* @__PURE__ */ o.jsx(
|
|
2764
|
-
|
|
2747
|
+
Qe,
|
|
2765
2748
|
{
|
|
2766
|
-
ref:
|
|
2749
|
+
ref: I,
|
|
2767
2750
|
component: "textarea",
|
|
2768
|
-
size:
|
|
2751
|
+
size: et,
|
|
2769
2752
|
error: _,
|
|
2770
2753
|
disabled: f || p,
|
|
2771
2754
|
loading: p,
|
|
2772
|
-
onSuffixClick:
|
|
2773
|
-
helper:
|
|
2774
|
-
suffix:
|
|
2775
|
-
id:
|
|
2755
|
+
onSuffixClick: ct,
|
|
2756
|
+
helper: m,
|
|
2757
|
+
suffix: at,
|
|
2758
|
+
id: y,
|
|
2776
2759
|
showLabel: F,
|
|
2777
|
-
onFocus:
|
|
2760
|
+
onFocus: x,
|
|
2778
2761
|
onBlur: v,
|
|
2779
2762
|
onKeyDown: w,
|
|
2780
2763
|
onChange: r,
|
|
2781
|
-
value:
|
|
2764
|
+
value: t || "",
|
|
2782
2765
|
placeholder: a,
|
|
2783
2766
|
className: L,
|
|
2784
2767
|
"data-floating-label": F,
|
|
2785
|
-
wrapperStyles:
|
|
2786
|
-
floatingLabelStyles:
|
|
2787
|
-
suffixStyles:
|
|
2788
|
-
textareaStyles:
|
|
2768
|
+
wrapperStyles: tt.wrapperStyles,
|
|
2769
|
+
floatingLabelStyles: tt.floatingLabelStyles,
|
|
2770
|
+
suffixStyles: tt.suffixStyles,
|
|
2771
|
+
textareaStyles: tt.textareaStyles,
|
|
2789
2772
|
wrapperProps: T,
|
|
2790
|
-
labelProps:
|
|
2791
|
-
helperProps:
|
|
2792
|
-
showLimit:
|
|
2773
|
+
labelProps: O,
|
|
2774
|
+
helperProps: A,
|
|
2775
|
+
showLimit: k && (q === 112 || l === ut.M),
|
|
2793
2776
|
maxLength: n,
|
|
2794
|
-
inputProps:
|
|
2777
|
+
inputProps: bt,
|
|
2795
2778
|
resize: P,
|
|
2796
2779
|
showGrip: W,
|
|
2797
2780
|
...S
|
|
2798
2781
|
}
|
|
2799
2782
|
);
|
|
2800
2783
|
}
|
|
2801
|
-
),
|
|
2802
|
-
helper:
|
|
2784
|
+
), Vs = "_helper_1jq7j_16", de = {
|
|
2785
|
+
helper: Vs,
|
|
2803
2786
|
"helper--error": "_helper--error_1jq7j_28",
|
|
2804
2787
|
"helper--disabled": "_helper--disabled_1jq7j_33"
|
|
2805
|
-
},
|
|
2806
|
-
title:
|
|
2788
|
+
}, Vl = ({
|
|
2789
|
+
title: t,
|
|
2807
2790
|
error: r,
|
|
2808
2791
|
className: a = "",
|
|
2809
2792
|
style: n,
|
|
@@ -2813,11 +2796,11 @@ const Ft = Object.assign($s, {
|
|
|
2813
2796
|
"aria-describedby": c
|
|
2814
2797
|
}) => {
|
|
2815
2798
|
const _ = !!r, f = $(
|
|
2816
|
-
|
|
2817
|
-
_ &&
|
|
2818
|
-
i &&
|
|
2799
|
+
de.helper,
|
|
2800
|
+
_ && de["helper--error"],
|
|
2801
|
+
i && de["helper--disabled"],
|
|
2819
2802
|
a
|
|
2820
|
-
), p = i ?
|
|
2803
|
+
), p = i ? t : r || t;
|
|
2821
2804
|
return /* @__PURE__ */ o.jsx(
|
|
2822
2805
|
"div",
|
|
2823
2806
|
{
|
|
@@ -2829,24 +2812,24 @@ const Ft = Object.assign($s, {
|
|
|
2829
2812
|
children: /* @__PURE__ */ o.jsx("p", { children: p })
|
|
2830
2813
|
}
|
|
2831
2814
|
);
|
|
2832
|
-
},
|
|
2833
|
-
radio:
|
|
2834
|
-
checked:
|
|
2835
|
-
error:
|
|
2836
|
-
disabled:
|
|
2837
|
-
icon:
|
|
2838
|
-
small:
|
|
2839
|
-
medium:
|
|
2840
|
-
large:
|
|
2815
|
+
}, Xs = "_radio_1q34w_54", Ys = "_checked_1q34w_75", Zs = "_error_1q34w_80", Gs = "_disabled_1q34w_89", Us = "_icon_1q34w_125", Js = "_small_1q34w_133", Ks = "_medium_1q34w_140", Qs = "_large_1q34w_147", ti = "_label_1q34w_154", ei = "_container_1q34w_180", ri = "_input_1q34w_193", ai = "_card_1q34w_200", ni = "_smallCard_1q34w_206", oi = "_mediumCard_1q34w_210", si = "_largeCard_1q34w_214", dt = {
|
|
2816
|
+
radio: Xs,
|
|
2817
|
+
checked: Ys,
|
|
2818
|
+
error: Zs,
|
|
2819
|
+
disabled: Gs,
|
|
2820
|
+
icon: Us,
|
|
2821
|
+
small: Js,
|
|
2822
|
+
medium: Ks,
|
|
2823
|
+
large: Qs,
|
|
2841
2824
|
label: ti,
|
|
2842
|
-
container:
|
|
2843
|
-
input:
|
|
2844
|
-
card:
|
|
2845
|
-
smallCard:
|
|
2846
|
-
mediumCard:
|
|
2847
|
-
largeCard:
|
|
2848
|
-
},
|
|
2849
|
-
(
|
|
2825
|
+
container: ei,
|
|
2826
|
+
input: ri,
|
|
2827
|
+
card: ai,
|
|
2828
|
+
smallCard: ni,
|
|
2829
|
+
mediumCard: oi,
|
|
2830
|
+
largeCard: si
|
|
2831
|
+
}, ii = "radio-container-", li = "radio-label", tr = K(
|
|
2832
|
+
(t, r) => {
|
|
2850
2833
|
const {
|
|
2851
2834
|
name: a,
|
|
2852
2835
|
id: n,
|
|
@@ -2857,36 +2840,36 @@ const Ft = Object.assign($s, {
|
|
|
2857
2840
|
disabled: _ = !1,
|
|
2858
2841
|
checked: f = !1,
|
|
2859
2842
|
containerClassName: p,
|
|
2860
|
-
className:
|
|
2861
|
-
children:
|
|
2862
|
-
clickable:
|
|
2863
|
-
mode:
|
|
2843
|
+
className: m,
|
|
2844
|
+
children: b,
|
|
2845
|
+
clickable: g = "all",
|
|
2846
|
+
mode: y = "default",
|
|
2864
2847
|
tabIndex: C,
|
|
2865
|
-
style:
|
|
2848
|
+
style: x,
|
|
2866
2849
|
containerStyle: v,
|
|
2867
2850
|
onChange: u,
|
|
2868
2851
|
"data-testid": w,
|
|
2869
2852
|
...L
|
|
2870
|
-
} =
|
|
2871
|
-
|
|
2853
|
+
} = t, E = !!c, k = _ || l, T = g === "all", O = y === "card", A = dt[`${s}Card`], W = n ?? a, q = (F) => {
|
|
2854
|
+
k || u == null || u(i, F);
|
|
2872
2855
|
}, P = (F) => {
|
|
2873
|
-
F.key === "Enter" && !
|
|
2874
|
-
}, S = (F) => F.stopPropagation(),
|
|
2856
|
+
F.key === "Enter" && !k && (F.preventDefault(), u == null || u(i));
|
|
2857
|
+
}, S = (F) => F.stopPropagation(), I = () => /* @__PURE__ */ o.jsxs(
|
|
2875
2858
|
"div",
|
|
2876
2859
|
{
|
|
2877
2860
|
className: $(
|
|
2878
|
-
|
|
2879
|
-
|
|
2861
|
+
dt.radio,
|
|
2862
|
+
dt[s],
|
|
2880
2863
|
{
|
|
2881
|
-
[
|
|
2882
|
-
[
|
|
2883
|
-
[
|
|
2864
|
+
[dt.checked]: f,
|
|
2865
|
+
[dt.disabled]: k,
|
|
2866
|
+
[dt.error]: E && !k
|
|
2884
2867
|
},
|
|
2885
|
-
|
|
2868
|
+
m
|
|
2886
2869
|
),
|
|
2887
|
-
style:
|
|
2870
|
+
style: x,
|
|
2888
2871
|
tabIndex: C || 1,
|
|
2889
|
-
"data-testid": `${
|
|
2872
|
+
"data-testid": `${ii}${W}`,
|
|
2890
2873
|
children: [
|
|
2891
2874
|
/* @__PURE__ */ o.jsx(
|
|
2892
2875
|
"input",
|
|
@@ -2894,9 +2877,9 @@ const Ft = Object.assign($s, {
|
|
|
2894
2877
|
"aria-errormessage": c,
|
|
2895
2878
|
"aria-invalid": E,
|
|
2896
2879
|
checked: f,
|
|
2897
|
-
className:
|
|
2880
|
+
className: dt.input,
|
|
2898
2881
|
"data-testid": `radio-${W}`,
|
|
2899
|
-
disabled:
|
|
2882
|
+
disabled: k,
|
|
2900
2883
|
id: W,
|
|
2901
2884
|
name: a,
|
|
2902
2885
|
ref: r,
|
|
@@ -2906,49 +2889,49 @@ const Ft = Object.assign($s, {
|
|
|
2906
2889
|
onClick: S
|
|
2907
2890
|
}
|
|
2908
2891
|
),
|
|
2909
|
-
/* @__PURE__ */ o.jsx("svg", { "data-testid": `radio-icon-${W}`, viewBox: "0 0 8 8", className:
|
|
2892
|
+
/* @__PURE__ */ o.jsx("svg", { "data-testid": `radio-icon-${W}`, viewBox: "0 0 8 8", className: dt.icon, children: /* @__PURE__ */ o.jsx("circle", { cx: 4, cy: 4, fill: "current", r: 4 }) })
|
|
2910
2893
|
]
|
|
2911
2894
|
}
|
|
2912
2895
|
), z = () => /* @__PURE__ */ o.jsxs(
|
|
2913
2896
|
"label",
|
|
2914
2897
|
{
|
|
2915
2898
|
"aria-checked": f,
|
|
2916
|
-
"aria-disabled":
|
|
2917
|
-
"data-testid": T ? w :
|
|
2899
|
+
"aria-disabled": k,
|
|
2900
|
+
"data-testid": T ? w : li,
|
|
2918
2901
|
htmlFor: W,
|
|
2919
2902
|
style: v,
|
|
2920
|
-
className: $(
|
|
2921
|
-
[$(
|
|
2922
|
-
[
|
|
2903
|
+
className: $(dt.label, {
|
|
2904
|
+
[$(dt.container, dt[y], p)]: T,
|
|
2905
|
+
[A]: T && O
|
|
2923
2906
|
}),
|
|
2924
2907
|
onKeyDown: P,
|
|
2925
2908
|
...L,
|
|
2926
2909
|
children: [
|
|
2927
|
-
|
|
2928
|
-
T &&
|
|
2910
|
+
I(),
|
|
2911
|
+
T && b
|
|
2929
2912
|
]
|
|
2930
2913
|
}
|
|
2931
2914
|
);
|
|
2932
2915
|
return T ? z() : /* @__PURE__ */ o.jsxs(
|
|
2933
2916
|
"div",
|
|
2934
2917
|
{
|
|
2935
|
-
className: $(
|
|
2936
|
-
[
|
|
2918
|
+
className: $(dt.container, dt[y], p, {
|
|
2919
|
+
[A]: O
|
|
2937
2920
|
}),
|
|
2938
2921
|
"data-testid": w,
|
|
2939
2922
|
children: [
|
|
2940
2923
|
z(),
|
|
2941
|
-
|
|
2924
|
+
b
|
|
2942
2925
|
]
|
|
2943
2926
|
}
|
|
2944
2927
|
);
|
|
2945
2928
|
}
|
|
2946
|
-
),
|
|
2947
|
-
group:
|
|
2948
|
-
vertical:
|
|
2949
|
-
horizontal:
|
|
2950
|
-
},
|
|
2951
|
-
(
|
|
2929
|
+
), ci = "_group_o6mjt_7", di = "_vertical_o6mjt_12", ui = "_horizontal_o6mjt_16", qe = {
|
|
2930
|
+
group: ci,
|
|
2931
|
+
vertical: di,
|
|
2932
|
+
horizontal: ui
|
|
2933
|
+
}, _i = K(
|
|
2934
|
+
(t, r) => {
|
|
2952
2935
|
const {
|
|
2953
2936
|
id: a,
|
|
2954
2937
|
name: n,
|
|
@@ -2959,29 +2942,29 @@ const Ft = Object.assign($s, {
|
|
|
2959
2942
|
disabled: _ = !1,
|
|
2960
2943
|
layout: f = "vertical",
|
|
2961
2944
|
"data-testid": p,
|
|
2962
|
-
...
|
|
2963
|
-
} =
|
|
2945
|
+
...m
|
|
2946
|
+
} = t;
|
|
2964
2947
|
return /* @__PURE__ */ o.jsx(
|
|
2965
2948
|
"div",
|
|
2966
2949
|
{
|
|
2967
|
-
className:
|
|
2950
|
+
className: Lt(qe.group, qe[f], l),
|
|
2968
2951
|
"data-testid": p ?? `radio-group-${n}`,
|
|
2969
2952
|
id: a,
|
|
2970
2953
|
ref: r,
|
|
2971
|
-
children: s.map(({ label:
|
|
2972
|
-
const C = `${n}-${String(
|
|
2954
|
+
children: s.map(({ label: b, value: g, disabled: y }) => {
|
|
2955
|
+
const C = `${n}-${String(g)}`, x = String(g) === String(i);
|
|
2973
2956
|
return /* @__PURE__ */ o.jsx(
|
|
2974
|
-
|
|
2957
|
+
tr,
|
|
2975
2958
|
{
|
|
2976
2959
|
id: C,
|
|
2977
|
-
checked:
|
|
2960
|
+
checked: x,
|
|
2978
2961
|
"data-testid": C,
|
|
2979
|
-
disabled: _ ||
|
|
2962
|
+
disabled: _ || y,
|
|
2980
2963
|
name: n,
|
|
2981
|
-
value:
|
|
2964
|
+
value: g,
|
|
2982
2965
|
className: c,
|
|
2983
|
-
...
|
|
2984
|
-
children:
|
|
2966
|
+
...m,
|
|
2967
|
+
children: b
|
|
2985
2968
|
},
|
|
2986
2969
|
C
|
|
2987
2970
|
);
|
|
@@ -2989,21 +2972,21 @@ const Ft = Object.assign($s, {
|
|
|
2989
2972
|
}
|
|
2990
2973
|
);
|
|
2991
2974
|
}
|
|
2992
|
-
),
|
|
2993
|
-
Group:
|
|
2994
|
-
}),
|
|
2995
|
-
root:
|
|
2996
|
-
unordered:
|
|
2997
|
-
ordered:
|
|
2975
|
+
), Xl = Object.assign(tr, {
|
|
2976
|
+
Group: _i
|
|
2977
|
+
}), pi = "_root_1jj3e_25", fi = "_unordered_1jj3e_39", gi = "_ordered_1jj3e_43", hi = "_sm_1jj3e_48", mi = "_md_1jj3e_59", bi = "_lg_1jj3e_70", yi = "_xl_1jj3e_81", ue = {
|
|
2978
|
+
root: pi,
|
|
2979
|
+
unordered: fi,
|
|
2980
|
+
ordered: gi,
|
|
2998
2981
|
sm: hi,
|
|
2999
2982
|
md: mi,
|
|
3000
|
-
lg:
|
|
3001
|
-
xl:
|
|
3002
|
-
},
|
|
3003
|
-
const { children: r, className: a, "data-testid": n = "list-item" } =
|
|
2983
|
+
lg: bi,
|
|
2984
|
+
xl: yi
|
|
2985
|
+
}, xi = (t) => {
|
|
2986
|
+
const { children: r, className: a, "data-testid": n = "list-item" } = t;
|
|
3004
2987
|
return /* @__PURE__ */ o.jsx("li", { "data-testid": n, className: a, children: r });
|
|
3005
|
-
},
|
|
3006
|
-
K((
|
|
2988
|
+
}, Yl = Object.assign(
|
|
2989
|
+
K((t, r) => {
|
|
3007
2990
|
const {
|
|
3008
2991
|
variant: a = "unordered",
|
|
3009
2992
|
className: n,
|
|
@@ -3011,39 +2994,39 @@ const Ft = Object.assign($s, {
|
|
|
3011
2994
|
size: s = "md",
|
|
3012
2995
|
"data-testid": l = "list",
|
|
3013
2996
|
...c
|
|
3014
|
-
} =
|
|
2997
|
+
} = t, _ = a === "ordered" ? "ol" : "ul";
|
|
3015
2998
|
return /* @__PURE__ */ o.jsx(
|
|
3016
2999
|
_,
|
|
3017
3000
|
{
|
|
3018
3001
|
"data-testid": l,
|
|
3019
3002
|
ref: r,
|
|
3020
|
-
className:
|
|
3003
|
+
className: Lt(ue.root, ue[a], ue[s], n),
|
|
3021
3004
|
...a === "ordered" && c,
|
|
3022
3005
|
children: i
|
|
3023
3006
|
}
|
|
3024
3007
|
);
|
|
3025
3008
|
}),
|
|
3026
|
-
{ Item:
|
|
3027
|
-
),
|
|
3028
|
-
wrapper:
|
|
3029
|
-
viewport:
|
|
3030
|
-
mask:
|
|
3031
|
-
maskLeft:
|
|
3032
|
-
maskRight:
|
|
3033
|
-
visible:
|
|
3034
|
-
control:
|
|
3035
|
-
xs:
|
|
3036
|
-
sm:
|
|
3037
|
-
md:
|
|
3038
|
-
left:
|
|
3039
|
-
right:
|
|
3040
|
-
},
|
|
3041
|
-
children:
|
|
3009
|
+
{ Item: xi }
|
|
3010
|
+
), vi = "_wrapper_1v8xn_5", wi = "_viewport_1v8xn_12", Ci = "_mask_1v8xn_26", Si = "_maskLeft_1v8xn_37", Li = "_maskRight_1v8xn_42", ji = "_visible_1v8xn_46", ki = "_control_1v8xn_51", $i = "_xs_1v8xn_70", Ei = "_sm_1v8xn_73", Ti = "_md_1v8xn_76", Ri = "_left_1v8xn_80", Ni = "_right_1v8xn_83", ot = {
|
|
3011
|
+
wrapper: vi,
|
|
3012
|
+
viewport: wi,
|
|
3013
|
+
mask: Ci,
|
|
3014
|
+
maskLeft: Si,
|
|
3015
|
+
maskRight: Li,
|
|
3016
|
+
visible: ji,
|
|
3017
|
+
control: ki,
|
|
3018
|
+
xs: $i,
|
|
3019
|
+
sm: Ei,
|
|
3020
|
+
md: Ti,
|
|
3021
|
+
left: Ri,
|
|
3022
|
+
right: Ni
|
|
3023
|
+
}, Ii = "white", Mi = ({
|
|
3024
|
+
children: t,
|
|
3042
3025
|
withControls: r = !0,
|
|
3043
3026
|
className: a,
|
|
3044
3027
|
size: n
|
|
3045
3028
|
}) => {
|
|
3046
|
-
const i =
|
|
3029
|
+
const i = qt(null), [s, l] = _t(!1), [c, _] = _t(!1), { ref: f, bgColor: p } = fe(), m = f ?? { current: null }, b = p ?? Ii, g = r && s, y = r && c, C = ({ direction: u }) => /* @__PURE__ */ o.jsx(
|
|
3047
3030
|
"svg",
|
|
3048
3031
|
{
|
|
3049
3032
|
height: "12px",
|
|
@@ -3058,7 +3041,7 @@ const Ft = Object.assign($s, {
|
|
|
3058
3041
|
}
|
|
3059
3042
|
) })
|
|
3060
3043
|
}
|
|
3061
|
-
),
|
|
3044
|
+
), x = () => {
|
|
3062
3045
|
const u = i.current;
|
|
3063
3046
|
if (!u) return;
|
|
3064
3047
|
const w = Math.round(u.scrollLeft), L = Math.round(u.scrollLeft + u.clientWidth), E = Math.round(u.scrollWidth);
|
|
@@ -3069,92 +3052,92 @@ const Ft = Object.assign($s, {
|
|
|
3069
3052
|
const L = w.clientWidth;
|
|
3070
3053
|
w.scrollBy({ left: u === "left" ? -L : L, behavior: "smooth" });
|
|
3071
3054
|
};
|
|
3072
|
-
return
|
|
3055
|
+
return lt(() => {
|
|
3073
3056
|
const u = i.current;
|
|
3074
3057
|
if (!u) return;
|
|
3075
3058
|
const w = (L) => {
|
|
3076
3059
|
Math.abs(L.deltaX) > Math.abs(L.deltaY) || u.scrollWidth > u.clientWidth && (L.preventDefault(), u.scrollBy({ left: L.deltaY, behavior: "auto" }));
|
|
3077
3060
|
};
|
|
3078
3061
|
return u.addEventListener("wheel", w, { passive: !1 }), () => u.removeEventListener("wheel", w);
|
|
3079
|
-
}, []),
|
|
3080
|
-
|
|
3062
|
+
}, []), lt(() => {
|
|
3063
|
+
x();
|
|
3081
3064
|
const u = i.current;
|
|
3082
3065
|
if (u)
|
|
3083
|
-
return u.addEventListener("scroll",
|
|
3084
|
-
u.removeEventListener("scroll",
|
|
3066
|
+
return u.addEventListener("scroll", x, { passive: !0 }), window.addEventListener("resize", x), () => {
|
|
3067
|
+
u.removeEventListener("scroll", x), window.removeEventListener("resize", x);
|
|
3085
3068
|
};
|
|
3086
|
-
}, []), /* @__PURE__ */ o.jsxs("div", { ref:
|
|
3087
|
-
|
|
3069
|
+
}, []), /* @__PURE__ */ o.jsxs("div", { ref: m, className: $(ot.wrapper, a), children: [
|
|
3070
|
+
g && /* @__PURE__ */ o.jsx(
|
|
3088
3071
|
"div",
|
|
3089
3072
|
{
|
|
3090
|
-
className: $(
|
|
3073
|
+
className: $(ot.mask, ot.maskLeft, s && ot.visible),
|
|
3091
3074
|
style: {
|
|
3092
|
-
background: `linear-gradient(to right, ${
|
|
3075
|
+
background: `linear-gradient(to right, ${b} 17%, transparent 80%)`
|
|
3093
3076
|
}
|
|
3094
3077
|
}
|
|
3095
3078
|
),
|
|
3096
|
-
|
|
3079
|
+
y && /* @__PURE__ */ o.jsx(
|
|
3097
3080
|
"div",
|
|
3098
3081
|
{
|
|
3099
|
-
className: $(
|
|
3082
|
+
className: $(ot.mask, ot.maskRight, c && ot.visible),
|
|
3100
3083
|
style: {
|
|
3101
|
-
background: `linear-gradient(to left, ${
|
|
3084
|
+
background: `linear-gradient(to left, ${b} 17%, transparent 80%)`
|
|
3102
3085
|
}
|
|
3103
3086
|
}
|
|
3104
3087
|
),
|
|
3105
|
-
/* @__PURE__ */ o.jsx("div", { ref: i, className:
|
|
3106
|
-
|
|
3088
|
+
/* @__PURE__ */ o.jsx("div", { ref: i, className: ot.viewport, children: t }),
|
|
3089
|
+
g && /* @__PURE__ */ o.jsx(
|
|
3107
3090
|
"button",
|
|
3108
3091
|
{
|
|
3109
3092
|
type: "button",
|
|
3110
3093
|
tabIndex: -1,
|
|
3111
3094
|
"aria-hidden": "true",
|
|
3112
|
-
className: $(
|
|
3095
|
+
className: $(ot.control, ot.left, ot[n]),
|
|
3113
3096
|
onClick: () => v("left"),
|
|
3114
3097
|
children: /* @__PURE__ */ o.jsx(C, { direction: "left" })
|
|
3115
3098
|
}
|
|
3116
3099
|
),
|
|
3117
|
-
|
|
3100
|
+
y && /* @__PURE__ */ o.jsx(
|
|
3118
3101
|
"button",
|
|
3119
3102
|
{
|
|
3120
3103
|
type: "button",
|
|
3121
3104
|
tabIndex: -1,
|
|
3122
3105
|
"aria-hidden": "true",
|
|
3123
|
-
className: $(
|
|
3106
|
+
className: $(ot.control, ot.right, ot[n]),
|
|
3124
3107
|
onClick: () => v("right"),
|
|
3125
3108
|
children: /* @__PURE__ */ o.jsx(C, { direction: "right" })
|
|
3126
3109
|
}
|
|
3127
3110
|
)
|
|
3128
3111
|
] });
|
|
3129
|
-
},
|
|
3130
|
-
tabBar:
|
|
3131
|
-
primary:
|
|
3132
|
-
secondary:
|
|
3133
|
-
tab:
|
|
3134
|
-
md:
|
|
3135
|
-
sm:
|
|
3136
|
-
xs:
|
|
3137
|
-
disabled:
|
|
3138
|
-
selected:
|
|
3139
|
-
tabLabel:
|
|
3140
|
-
tabPrefix:
|
|
3141
|
-
tabPostfix:
|
|
3142
|
-
},
|
|
3143
|
-
const
|
|
3144
|
-
if (!
|
|
3145
|
-
return
|
|
3146
|
-
},
|
|
3147
|
-
children:
|
|
3112
|
+
}, Oi = "_tabBar_1ndpm_82", Ai = "_primary_1ndpm_88", Pi = "_secondary_1ndpm_93", Bi = "_tab_1ndpm_82", zi = "_md_1ndpm_125", Di = "_sm_1ndpm_129", Wi = "_xs_1ndpm_133", Fi = "_disabled_1ndpm_137", qi = "_selected_1ndpm_143", Hi = "_tabLabel_1ndpm_222", Vi = "_tabPrefix_1ndpm_234", Xi = "_tabPostfix_1ndpm_270", J = {
|
|
3113
|
+
tabBar: Oi,
|
|
3114
|
+
primary: Ai,
|
|
3115
|
+
secondary: Pi,
|
|
3116
|
+
tab: Bi,
|
|
3117
|
+
md: zi,
|
|
3118
|
+
sm: Di,
|
|
3119
|
+
xs: Wi,
|
|
3120
|
+
disabled: Fi,
|
|
3121
|
+
selected: qi,
|
|
3122
|
+
tabLabel: Hi,
|
|
3123
|
+
tabPrefix: Vi,
|
|
3124
|
+
tabPostfix: Xi
|
|
3125
|
+
}, Yi = "md", Zi = !1, Gi = 8, Ui = "top-right-inside", er = Ye(null), rr = () => {
|
|
3126
|
+
const t = Ze(er);
|
|
3127
|
+
if (!t) throw new Error("useTabs должен использоваться внутри TabsProvider");
|
|
3128
|
+
return t;
|
|
3129
|
+
}, Ji = ({
|
|
3130
|
+
children: t,
|
|
3148
3131
|
defaultActiveTab: r,
|
|
3149
3132
|
activeTab: a,
|
|
3150
3133
|
onChange: n
|
|
3151
3134
|
}) => {
|
|
3152
|
-
const [i, s] =
|
|
3135
|
+
const [i, s] = _t(r), l = a !== void 0, c = l ? a : i, _ = (f) => {
|
|
3153
3136
|
l || s(f), n && n(f);
|
|
3154
3137
|
};
|
|
3155
|
-
return /* @__PURE__ */ o.jsx(
|
|
3156
|
-
},
|
|
3157
|
-
mode:
|
|
3138
|
+
return /* @__PURE__ */ o.jsx(er.Provider, { value: { activeTab: c, setTab: _ }, children: t });
|
|
3139
|
+
}, Ki = ({
|
|
3140
|
+
mode: t,
|
|
3158
3141
|
item: r,
|
|
3159
3142
|
isActive: a,
|
|
3160
3143
|
showBadge: n,
|
|
@@ -3167,42 +3150,42 @@ const Ft = Object.assign($s, {
|
|
|
3167
3150
|
value: _,
|
|
3168
3151
|
label: f,
|
|
3169
3152
|
prefix: p,
|
|
3170
|
-
prefixWrapperProps:
|
|
3171
|
-
postfix:
|
|
3172
|
-
postfixWrapperProps:
|
|
3173
|
-
} = r, { className:
|
|
3174
|
-
primary:
|
|
3175
|
-
secondary:
|
|
3176
|
-
prefix:
|
|
3177
|
-
postfix:
|
|
3153
|
+
prefixWrapperProps: m = {},
|
|
3154
|
+
postfix: b,
|
|
3155
|
+
postfixWrapperProps: g = {}
|
|
3156
|
+
} = r, { className: y, ...C } = m, { className: x, ...v } = g, u = {
|
|
3157
|
+
primary: it["typography-label-3-medium"],
|
|
3158
|
+
secondary: it["typography-label-3-regular"],
|
|
3159
|
+
prefix: it["typography-label-3-medium"],
|
|
3160
|
+
postfix: it["typography-label-3-medium"]
|
|
3178
3161
|
}, w = {
|
|
3179
|
-
size:
|
|
3180
|
-
position:
|
|
3162
|
+
size: Gi,
|
|
3163
|
+
position: Ui,
|
|
3181
3164
|
...i
|
|
3182
|
-
}, L = $(J.tab, J[
|
|
3165
|
+
}, L = $(J.tab, J[t], J[s], {
|
|
3183
3166
|
[J.selected]: a,
|
|
3184
3167
|
[J.disabled]: l
|
|
3185
3168
|
}), E = $(
|
|
3186
3169
|
J.tabPrefix,
|
|
3187
|
-
|
|
3188
|
-
J[
|
|
3170
|
+
y,
|
|
3171
|
+
J[t],
|
|
3189
3172
|
u.prefix,
|
|
3190
3173
|
{
|
|
3191
3174
|
[J.selected]: a,
|
|
3192
3175
|
[J.disabled]: l
|
|
3193
3176
|
}
|
|
3194
|
-
),
|
|
3177
|
+
), k = $(
|
|
3195
3178
|
J.tabPostfix,
|
|
3196
|
-
|
|
3197
|
-
J[
|
|
3179
|
+
x,
|
|
3180
|
+
J[t],
|
|
3198
3181
|
u.postfix,
|
|
3199
3182
|
{
|
|
3200
3183
|
[J.selected]: a,
|
|
3201
3184
|
[J.disabled]: l
|
|
3202
3185
|
}
|
|
3203
|
-
), T = $(J.tabLabel, J[
|
|
3186
|
+
), T = $(J.tabLabel, J[t], u[t]), O = (W) => {
|
|
3204
3187
|
a || l || (c(_), W.currentTarget.scrollIntoView({ behavior: "smooth", inline: "center", block: "nearest" }));
|
|
3205
|
-
},
|
|
3188
|
+
}, A = /* @__PURE__ */ o.jsxs(
|
|
3206
3189
|
"button",
|
|
3207
3190
|
{
|
|
3208
3191
|
className: L,
|
|
@@ -3212,7 +3195,7 @@ const Ft = Object.assign($s, {
|
|
|
3212
3195
|
"aria-disabled": l,
|
|
3213
3196
|
"aria-controls": `tab-panel-${_}`,
|
|
3214
3197
|
"data-testid": `tab-item-${_}`,
|
|
3215
|
-
onClick:
|
|
3198
|
+
onClick: O,
|
|
3216
3199
|
children: [
|
|
3217
3200
|
p && /* @__PURE__ */ o.jsx(
|
|
3218
3201
|
"span",
|
|
@@ -3224,39 +3207,39 @@ const Ft = Object.assign($s, {
|
|
|
3224
3207
|
}
|
|
3225
3208
|
),
|
|
3226
3209
|
/* @__PURE__ */ o.jsx("span", { className: T, "data-testid": `tab-label-${_}`, children: f }),
|
|
3227
|
-
|
|
3210
|
+
b && /* @__PURE__ */ o.jsx(
|
|
3228
3211
|
"span",
|
|
3229
3212
|
{
|
|
3230
|
-
className:
|
|
3213
|
+
className: k,
|
|
3231
3214
|
...v,
|
|
3232
3215
|
"data-testid": `tab-postfix-${_}`,
|
|
3233
|
-
children:
|
|
3216
|
+
children: b
|
|
3234
3217
|
}
|
|
3235
3218
|
)
|
|
3236
3219
|
]
|
|
3237
3220
|
}
|
|
3238
3221
|
);
|
|
3239
|
-
return n ? /* @__PURE__ */ o.jsx(Qa, { ...w, "data-testid": `tab-badge-${_}`, children:
|
|
3240
|
-
},
|
|
3241
|
-
mode:
|
|
3222
|
+
return n ? /* @__PURE__ */ o.jsx(Qa, { ...w, "data-testid": `tab-badge-${_}`, children: A }) : A;
|
|
3223
|
+
}, Qi = ({
|
|
3224
|
+
mode: t,
|
|
3242
3225
|
items: r,
|
|
3243
|
-
size: a =
|
|
3244
|
-
isAllItemsDisabled: n =
|
|
3226
|
+
size: a = Yi,
|
|
3227
|
+
isAllItemsDisabled: n = Zi
|
|
3245
3228
|
}) => {
|
|
3246
3229
|
const { activeTab: i, setTab: s } = rr(), l = Ha();
|
|
3247
|
-
return /* @__PURE__ */ o.jsx(
|
|
3230
|
+
return /* @__PURE__ */ o.jsx(Mi, { size: a, withControls: l, children: /* @__PURE__ */ o.jsx(
|
|
3248
3231
|
"div",
|
|
3249
3232
|
{
|
|
3250
3233
|
role: "tablist",
|
|
3251
3234
|
"data-testid": "tabs-bar",
|
|
3252
3235
|
"aria-orientation": "horizontal",
|
|
3253
|
-
className: $(J.tabBar, J[
|
|
3236
|
+
className: $(J.tabBar, J[t]),
|
|
3254
3237
|
children: r.map((c) => /* @__PURE__ */ o.jsx(
|
|
3255
|
-
|
|
3238
|
+
Ki,
|
|
3256
3239
|
{
|
|
3257
3240
|
size: a,
|
|
3258
3241
|
item: c,
|
|
3259
|
-
mode:
|
|
3242
|
+
mode: t,
|
|
3260
3243
|
showBadge: c.showBadge,
|
|
3261
3244
|
badgeProps: c.badgeProps,
|
|
3262
3245
|
isActive: i === c.value,
|
|
@@ -3267,41 +3250,41 @@ const Ft = Object.assign($s, {
|
|
|
3267
3250
|
))
|
|
3268
3251
|
}
|
|
3269
3252
|
) });
|
|
3270
|
-
}, tl = ({ tabValue:
|
|
3253
|
+
}, tl = ({ tabValue: t, children: r, ...a }) => /* @__PURE__ */ o.jsx(
|
|
3271
3254
|
"div",
|
|
3272
3255
|
{
|
|
3273
3256
|
role: "tabpanel",
|
|
3274
|
-
"data-testid": `tab-panel-${
|
|
3275
|
-
"aria-labelledby": `tab-item-${
|
|
3257
|
+
"data-testid": `tab-panel-${t}`,
|
|
3258
|
+
"aria-labelledby": `tab-item-${t}`,
|
|
3276
3259
|
...a,
|
|
3277
3260
|
children: r
|
|
3278
3261
|
}
|
|
3279
|
-
),
|
|
3280
|
-
const { activeTab: a } = rr(), n = Array.isArray(
|
|
3262
|
+
), el = ({ children: t, ...r }) => {
|
|
3263
|
+
const { activeTab: a } = rr(), n = Array.isArray(t) ? t : [t], i = (s, l) => _e.isValidElement(s) && typeof s.props == "object" && s.props !== null && l in s.props;
|
|
3281
3264
|
return /* @__PURE__ */ o.jsx("div", { "data-testid": "tab-content", ...r, children: n.map((s) => i(s, "tabValue") && String(s.props.tabValue) === a ? s : null) });
|
|
3282
|
-
},
|
|
3283
|
-
Provider:
|
|
3284
|
-
Content:
|
|
3265
|
+
}, Zl = {
|
|
3266
|
+
Provider: Ji,
|
|
3267
|
+
Content: el,
|
|
3285
3268
|
Panel: tl,
|
|
3286
|
-
Bar:
|
|
3287
|
-
},
|
|
3288
|
-
root:
|
|
3289
|
-
open:
|
|
3290
|
-
xs:
|
|
3291
|
-
s:
|
|
3292
|
-
m:
|
|
3293
|
-
neutral:
|
|
3294
|
-
contrast:
|
|
3295
|
-
accent:
|
|
3296
|
-
typography:
|
|
3297
|
-
title:
|
|
3298
|
-
text:
|
|
3299
|
-
mediaWrapper:
|
|
3300
|
-
content:
|
|
3301
|
-
closeButton:
|
|
3269
|
+
Bar: Qi
|
|
3270
|
+
}, rl = "_root_1fbbw_34", al = "_open_1fbbw_51", nl = "_xs_1fbbw_55", ol = "_s_1fbbw_61", sl = "_m_1fbbw_67", il = "_neutral_1fbbw_73", ll = "_contrast_1fbbw_78", cl = "_accent_1fbbw_84", dl = "_typography_1fbbw_89", ul = "_title_1fbbw_89", _l = "_text_1fbbw_93", pl = "_mediaWrapper_1fbbw_97", fl = "_content_1fbbw_112", gl = "_closeButton_1fbbw_116", hl = "_hasMedia_1fbbw_142", ml = "_buttonStack_1fbbw_148", st = {
|
|
3271
|
+
root: rl,
|
|
3272
|
+
open: al,
|
|
3273
|
+
xs: nl,
|
|
3274
|
+
s: ol,
|
|
3275
|
+
m: sl,
|
|
3276
|
+
neutral: il,
|
|
3277
|
+
contrast: ll,
|
|
3278
|
+
accent: cl,
|
|
3279
|
+
typography: dl,
|
|
3280
|
+
title: ul,
|
|
3281
|
+
text: _l,
|
|
3282
|
+
mediaWrapper: pl,
|
|
3283
|
+
content: fl,
|
|
3284
|
+
closeButton: gl,
|
|
3302
3285
|
hasMedia: hl,
|
|
3303
3286
|
buttonStack: ml
|
|
3304
|
-
},
|
|
3287
|
+
}, bl = () => /* @__PURE__ */ o.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", stroke: "currentColor", children: /* @__PURE__ */ o.jsx("path", { d: "M18 6 6 18M6 6l12 12" }) }), yl = () => /* @__PURE__ */ o.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 9", fill: "currentColor", children: [
|
|
3305
3288
|
/* @__PURE__ */ o.jsx(
|
|
3306
3289
|
"path",
|
|
3307
3290
|
{
|
|
@@ -3309,132 +3292,132 @@ const Ft = Object.assign($s, {
|
|
|
3309
3292
|
}
|
|
3310
3293
|
),
|
|
3311
3294
|
/* @__PURE__ */ o.jsx("path", { d: "M-2 0.000390053L26 0.000390053V-1L-2 -1L-2 0.000390053Z" })
|
|
3312
|
-
] }),
|
|
3295
|
+
] }), ft = {
|
|
3313
3296
|
shiftX: 64,
|
|
3314
3297
|
adjustY: 1
|
|
3315
|
-
},
|
|
3298
|
+
}, gt = { adjustX: 1, shiftY: !0 }, xl = {
|
|
3316
3299
|
left: {
|
|
3317
3300
|
points: ["cr", "cl"],
|
|
3318
|
-
overflow:
|
|
3301
|
+
overflow: gt,
|
|
3319
3302
|
offset: [-22, 0]
|
|
3320
3303
|
},
|
|
3321
3304
|
right: {
|
|
3322
3305
|
points: ["cl", "cr"],
|
|
3323
|
-
overflow:
|
|
3306
|
+
overflow: gt,
|
|
3324
3307
|
offset: [22, 0]
|
|
3325
3308
|
},
|
|
3326
3309
|
top: {
|
|
3327
3310
|
points: ["bc", "tc"],
|
|
3328
|
-
overflow:
|
|
3311
|
+
overflow: ft,
|
|
3329
3312
|
offset: [0, -22]
|
|
3330
3313
|
},
|
|
3331
3314
|
bottom: {
|
|
3332
3315
|
points: ["tc", "bc"],
|
|
3333
|
-
overflow:
|
|
3316
|
+
overflow: ft,
|
|
3334
3317
|
offset: [0, 22]
|
|
3335
3318
|
},
|
|
3336
3319
|
topLeft: {
|
|
3337
3320
|
points: ["bl", "tl"],
|
|
3338
|
-
overflow:
|
|
3321
|
+
overflow: ft,
|
|
3339
3322
|
offset: [0, -22]
|
|
3340
3323
|
},
|
|
3341
3324
|
leftTop: {
|
|
3342
3325
|
points: ["tr", "tl"],
|
|
3343
|
-
overflow:
|
|
3326
|
+
overflow: gt,
|
|
3344
3327
|
offset: [-22, 0]
|
|
3345
3328
|
},
|
|
3346
3329
|
topRight: {
|
|
3347
3330
|
points: ["br", "tr"],
|
|
3348
|
-
overflow:
|
|
3331
|
+
overflow: ft,
|
|
3349
3332
|
offset: [0, -22]
|
|
3350
3333
|
},
|
|
3351
3334
|
rightTop: {
|
|
3352
3335
|
points: ["tl", "tr"],
|
|
3353
|
-
overflow:
|
|
3336
|
+
overflow: gt,
|
|
3354
3337
|
offset: [22, 0]
|
|
3355
3338
|
},
|
|
3356
3339
|
bottomRight: {
|
|
3357
3340
|
points: ["tr", "br"],
|
|
3358
|
-
overflow:
|
|
3341
|
+
overflow: ft,
|
|
3359
3342
|
offset: [0, 22]
|
|
3360
3343
|
},
|
|
3361
3344
|
rightBottom: {
|
|
3362
3345
|
points: ["bl", "br"],
|
|
3363
|
-
overflow:
|
|
3346
|
+
overflow: gt,
|
|
3364
3347
|
offset: [22, 0]
|
|
3365
3348
|
},
|
|
3366
3349
|
bottomLeft: {
|
|
3367
3350
|
points: ["tl", "bl"],
|
|
3368
|
-
overflow:
|
|
3351
|
+
overflow: ft,
|
|
3369
3352
|
offset: [0, 22]
|
|
3370
3353
|
},
|
|
3371
3354
|
leftBottom: {
|
|
3372
3355
|
points: ["br", "bl"],
|
|
3373
|
-
overflow:
|
|
3356
|
+
overflow: gt,
|
|
3374
3357
|
offset: [-22, 0]
|
|
3375
3358
|
}
|
|
3376
|
-
},
|
|
3359
|
+
}, vl = {
|
|
3377
3360
|
left: {
|
|
3378
3361
|
points: ["cr", "cl"],
|
|
3379
|
-
overflow:
|
|
3362
|
+
overflow: gt,
|
|
3380
3363
|
offset: [-16, 0]
|
|
3381
3364
|
},
|
|
3382
3365
|
right: {
|
|
3383
3366
|
points: ["cl", "cr"],
|
|
3384
|
-
overflow:
|
|
3367
|
+
overflow: gt,
|
|
3385
3368
|
offset: [16, 0]
|
|
3386
3369
|
},
|
|
3387
3370
|
top: {
|
|
3388
3371
|
points: ["bc", "tc"],
|
|
3389
|
-
overflow:
|
|
3372
|
+
overflow: ft,
|
|
3390
3373
|
offset: [0, -16]
|
|
3391
3374
|
},
|
|
3392
3375
|
bottom: {
|
|
3393
3376
|
points: ["tc", "bc"],
|
|
3394
|
-
overflow:
|
|
3377
|
+
overflow: ft,
|
|
3395
3378
|
offset: [0, 16]
|
|
3396
3379
|
},
|
|
3397
3380
|
topLeft: {
|
|
3398
3381
|
points: ["bl", "tl"],
|
|
3399
|
-
overflow:
|
|
3382
|
+
overflow: ft,
|
|
3400
3383
|
offset: [0, -16]
|
|
3401
3384
|
},
|
|
3402
3385
|
leftTop: {
|
|
3403
3386
|
points: ["tr", "tl"],
|
|
3404
|
-
overflow:
|
|
3387
|
+
overflow: gt,
|
|
3405
3388
|
offset: [-16, 0]
|
|
3406
3389
|
},
|
|
3407
3390
|
topRight: {
|
|
3408
3391
|
points: ["br", "tr"],
|
|
3409
|
-
overflow:
|
|
3392
|
+
overflow: ft,
|
|
3410
3393
|
offset: [0, -16]
|
|
3411
3394
|
},
|
|
3412
3395
|
rightTop: {
|
|
3413
3396
|
points: ["tl", "tr"],
|
|
3414
|
-
overflow:
|
|
3397
|
+
overflow: gt,
|
|
3415
3398
|
offset: [16, 0]
|
|
3416
3399
|
},
|
|
3417
3400
|
bottomRight: {
|
|
3418
3401
|
points: ["tr", "br"],
|
|
3419
|
-
overflow:
|
|
3402
|
+
overflow: ft,
|
|
3420
3403
|
offset: [0, 16]
|
|
3421
3404
|
},
|
|
3422
3405
|
rightBottom: {
|
|
3423
3406
|
points: ["bl", "br"],
|
|
3424
|
-
overflow:
|
|
3407
|
+
overflow: gt,
|
|
3425
3408
|
offset: [16, 0]
|
|
3426
3409
|
},
|
|
3427
3410
|
bottomLeft: {
|
|
3428
3411
|
points: ["tl", "bl"],
|
|
3429
|
-
overflow:
|
|
3412
|
+
overflow: ft,
|
|
3430
3413
|
offset: [0, 16]
|
|
3431
3414
|
},
|
|
3432
3415
|
leftBottom: {
|
|
3433
3416
|
points: ["br", "bl"],
|
|
3434
|
-
overflow:
|
|
3417
|
+
overflow: gt,
|
|
3435
3418
|
offset: [-16, 0]
|
|
3436
3419
|
}
|
|
3437
|
-
},
|
|
3420
|
+
}, wl = {
|
|
3438
3421
|
neutral: {
|
|
3439
3422
|
1: [{ mode: "secondary", buttonStyle: "neutral", size: "s" }],
|
|
3440
3423
|
2: [
|
|
@@ -3471,11 +3454,11 @@ const Ft = Object.assign($s, {
|
|
|
3471
3454
|
{ mode: "primary", buttonStyle: "accent", size: "s" }
|
|
3472
3455
|
]
|
|
3473
3456
|
}
|
|
3474
|
-
},
|
|
3475
|
-
const n = ja(r, 1, 3), i =
|
|
3476
|
-
return i[Math.min(
|
|
3477
|
-
},
|
|
3478
|
-
text:
|
|
3457
|
+
}, Cl = (t, r, a) => {
|
|
3458
|
+
const n = ja(r, 1, 3), i = wl[a][n];
|
|
3459
|
+
return i[Math.min(t, i.length - 1)];
|
|
3460
|
+
}, He = ({
|
|
3461
|
+
text: t,
|
|
3479
3462
|
title: r,
|
|
3480
3463
|
media: a,
|
|
3481
3464
|
variant: n = "neutral",
|
|
@@ -3486,14 +3469,14 @@ const Ft = Object.assign($s, {
|
|
|
3486
3469
|
buttonProps: _,
|
|
3487
3470
|
showClose: f
|
|
3488
3471
|
}) => {
|
|
3489
|
-
const p = ["neutral", "accent"].includes(n) ? "contrast" : "primary",
|
|
3490
|
-
return /* @__PURE__ */ o.jsxs("div", { className:
|
|
3491
|
-
|
|
3472
|
+
const p = ["neutral", "accent"].includes(n) ? "contrast" : "primary", m = i === "m", b = !!(r && m), g = !!(a && m), y = c && !!c.length, C = !!(f && m) || !f && m && !y, x = i === "xs" ? 4 : 3;
|
|
3473
|
+
return /* @__PURE__ */ o.jsxs("div", { className: st.content, children: [
|
|
3474
|
+
g && /* @__PURE__ */ o.jsx("div", { className: $(st.mediaWrapper, s.mediaWrapper), children: a }),
|
|
3492
3475
|
/* @__PURE__ */ o.jsxs("div", { className: s.textWrapper, children: [
|
|
3493
|
-
|
|
3494
|
-
|
|
3476
|
+
b && /* @__PURE__ */ o.jsx(
|
|
3477
|
+
De.Subtitle,
|
|
3495
3478
|
{
|
|
3496
|
-
className: $(
|
|
3479
|
+
className: $(st.typography, st.title, s.typography),
|
|
3497
3480
|
size: 1,
|
|
3498
3481
|
as: "h3",
|
|
3499
3482
|
typographyStyle: p,
|
|
@@ -3501,12 +3484,12 @@ const Ft = Object.assign($s, {
|
|
|
3501
3484
|
}
|
|
3502
3485
|
),
|
|
3503
3486
|
/* @__PURE__ */ o.jsx(
|
|
3504
|
-
|
|
3487
|
+
De.Label,
|
|
3505
3488
|
{
|
|
3506
|
-
className: $(
|
|
3489
|
+
className: $(st.typography, st.text, s.typography),
|
|
3507
3490
|
typographyStyle: p,
|
|
3508
|
-
size:
|
|
3509
|
-
children:
|
|
3491
|
+
size: x,
|
|
3492
|
+
children: t
|
|
3510
3493
|
}
|
|
3511
3494
|
)
|
|
3512
3495
|
] }),
|
|
@@ -3514,29 +3497,29 @@ const Ft = Object.assign($s, {
|
|
|
3514
3497
|
"button",
|
|
3515
3498
|
{
|
|
3516
3499
|
type: "button",
|
|
3517
|
-
className: $(
|
|
3518
|
-
[
|
|
3500
|
+
className: $(st.closeButton, st[n], s.closeButton, {
|
|
3501
|
+
[st.hasMedia]: g
|
|
3519
3502
|
}),
|
|
3520
3503
|
onClick: l,
|
|
3521
3504
|
"aria-label": "Закрыть подсказку",
|
|
3522
3505
|
"data-testid": "tooltip-close-button",
|
|
3523
|
-
children: /* @__PURE__ */ o.jsx(
|
|
3506
|
+
children: /* @__PURE__ */ o.jsx(bl, {})
|
|
3524
3507
|
}
|
|
3525
3508
|
),
|
|
3526
|
-
|
|
3509
|
+
m && y && /* @__PURE__ */ o.jsx("div", { className: st.buttonStack, children: c.map((v, u) => {
|
|
3527
3510
|
const L = {
|
|
3528
|
-
...
|
|
3511
|
+
...Cl(u, c.length, n),
|
|
3529
3512
|
..._,
|
|
3530
3513
|
...v
|
|
3531
|
-
}, { closeOnClick: E, ...
|
|
3532
|
-
var
|
|
3533
|
-
(
|
|
3514
|
+
}, { closeOnClick: E, ...k } = L, T = (O) => {
|
|
3515
|
+
var A;
|
|
3516
|
+
(A = k.onClick) == null || A.call(k, O), E && (l == null || l());
|
|
3534
3517
|
};
|
|
3535
|
-
return /* @__PURE__ */ o.jsx(ga, { ...
|
|
3518
|
+
return /* @__PURE__ */ o.jsx(ga, { ...k, onClick: T }, u);
|
|
3536
3519
|
}) })
|
|
3537
3520
|
] });
|
|
3538
|
-
},
|
|
3539
|
-
customContent:
|
|
3521
|
+
}, Gl = ({
|
|
3522
|
+
customContent: t,
|
|
3540
3523
|
children: r,
|
|
3541
3524
|
placement: a = "top",
|
|
3542
3525
|
contentClassNames: n,
|
|
@@ -3547,44 +3530,44 @@ const Ft = Object.assign($s, {
|
|
|
3547
3530
|
trigger: _ = "hover",
|
|
3548
3531
|
variant: f = "neutral",
|
|
3549
3532
|
size: p = "s",
|
|
3550
|
-
text:
|
|
3551
|
-
title:
|
|
3552
|
-
media:
|
|
3553
|
-
buttons:
|
|
3533
|
+
text: m,
|
|
3534
|
+
title: b,
|
|
3535
|
+
media: g,
|
|
3536
|
+
buttons: y,
|
|
3554
3537
|
buttonProps: C,
|
|
3555
|
-
onClose:
|
|
3538
|
+
onClose: x,
|
|
3556
3539
|
...v
|
|
3557
3540
|
}) => {
|
|
3558
|
-
const [u, w] =
|
|
3559
|
-
w(!1),
|
|
3560
|
-
},
|
|
3561
|
-
|
|
3541
|
+
const [u, w] = _t(!1), [L, E] = _t(!1), k = p === "m" ? xl : vl, T = () => {
|
|
3542
|
+
w(!1), x == null || x();
|
|
3543
|
+
}, O = t || (p === "m" ? /* @__PURE__ */ o.jsx(
|
|
3544
|
+
He,
|
|
3562
3545
|
{
|
|
3563
3546
|
classNames: n,
|
|
3564
|
-
text:
|
|
3547
|
+
text: m,
|
|
3565
3548
|
variant: f,
|
|
3566
3549
|
size: p,
|
|
3567
3550
|
onClose: T,
|
|
3568
|
-
title:
|
|
3569
|
-
media:
|
|
3551
|
+
title: b,
|
|
3552
|
+
media: g,
|
|
3570
3553
|
showClose: c,
|
|
3571
|
-
buttons:
|
|
3554
|
+
buttons: y,
|
|
3572
3555
|
buttonProps: C
|
|
3573
3556
|
}
|
|
3574
3557
|
) : /* @__PURE__ */ o.jsx(
|
|
3575
|
-
|
|
3558
|
+
He,
|
|
3576
3559
|
{
|
|
3577
3560
|
classNames: n,
|
|
3578
|
-
text:
|
|
3561
|
+
text: m,
|
|
3579
3562
|
variant: f,
|
|
3580
3563
|
size: p,
|
|
3581
3564
|
onClose: T
|
|
3582
3565
|
}
|
|
3583
3566
|
));
|
|
3584
|
-
return
|
|
3567
|
+
return lt(() => {
|
|
3585
3568
|
if (u) {
|
|
3586
|
-
const
|
|
3587
|
-
return () => cancelAnimationFrame(
|
|
3569
|
+
const A = requestAnimationFrame(() => E(!0));
|
|
3570
|
+
return () => cancelAnimationFrame(A);
|
|
3588
3571
|
}
|
|
3589
3572
|
E(!1);
|
|
3590
3573
|
}, [u]), /* @__PURE__ */ o.jsx(
|
|
@@ -3593,18 +3576,18 @@ const Ft = Object.assign($s, {
|
|
|
3593
3576
|
visible: u,
|
|
3594
3577
|
onVisibleChange: w,
|
|
3595
3578
|
classNames: {
|
|
3596
|
-
root: $(
|
|
3579
|
+
root: $(st.root, st[f], st[p], L && st.open),
|
|
3597
3580
|
...v.classNames
|
|
3598
3581
|
},
|
|
3599
3582
|
placement: a,
|
|
3600
|
-
overlay: () =>
|
|
3583
|
+
overlay: () => O,
|
|
3601
3584
|
trigger: _,
|
|
3602
3585
|
mouseEnterDelay: i,
|
|
3603
3586
|
mouseLeaveDelay: s,
|
|
3604
3587
|
motion: { motionName: "tooltipMotion" },
|
|
3605
|
-
builtinPlacements:
|
|
3588
|
+
builtinPlacements: k,
|
|
3606
3589
|
showArrow: l ? {
|
|
3607
|
-
content: /* @__PURE__ */ o.jsx(
|
|
3590
|
+
content: /* @__PURE__ */ o.jsx(yl, {}),
|
|
3608
3591
|
className: `tooltipArrow tooltipArrow-${p}`
|
|
3609
3592
|
} : !1,
|
|
3610
3593
|
destroyTooltipOnHide: !0,
|
|
@@ -3612,21 +3595,21 @@ const Ft = Object.assign($s, {
|
|
|
3612
3595
|
children: r
|
|
3613
3596
|
}
|
|
3614
3597
|
);
|
|
3615
|
-
},
|
|
3616
|
-
segmentedControl:
|
|
3617
|
-
segment:
|
|
3618
|
-
activeSegmentIndicator:
|
|
3619
|
-
stretched:
|
|
3620
|
-
s:
|
|
3621
|
-
icon:
|
|
3622
|
-
label:
|
|
3623
|
-
m:
|
|
3624
|
-
l:
|
|
3625
|
-
},
|
|
3626
|
-
s:
|
|
3627
|
-
m:
|
|
3628
|
-
l:
|
|
3629
|
-
},
|
|
3598
|
+
}, Sl = "_segmentedControl_1yvz7_5", Ll = "_segment_1yvz7_5", jl = "_activeSegmentIndicator_1yvz7_51", kl = "_stretched_1yvz7_82", $l = "_s_1yvz7_5", El = "_icon_1yvz7_90", Tl = "_label_1yvz7_94", Rl = "_m_1yvz7_98", Nl = "_l_1yvz7_94", At = {
|
|
3599
|
+
segmentedControl: Sl,
|
|
3600
|
+
segment: Ll,
|
|
3601
|
+
activeSegmentIndicator: jl,
|
|
3602
|
+
stretched: kl,
|
|
3603
|
+
s: $l,
|
|
3604
|
+
icon: El,
|
|
3605
|
+
label: Tl,
|
|
3606
|
+
m: Rl,
|
|
3607
|
+
l: Nl
|
|
3608
|
+
}, Ve = {
|
|
3609
|
+
s: it["typography-label-3-regular"],
|
|
3610
|
+
m: it["typography-label-2-regular"],
|
|
3611
|
+
l: it["typography-label-2-regular"]
|
|
3612
|
+
}, Ul = (t) => {
|
|
3630
3613
|
var u;
|
|
3631
3614
|
const {
|
|
3632
3615
|
className: r,
|
|
@@ -3637,42 +3620,42 @@ const Ft = Object.assign($s, {
|
|
|
3637
3620
|
stretched: l,
|
|
3638
3621
|
mode: c = "label",
|
|
3639
3622
|
onChange: _
|
|
3640
|
-
} =
|
|
3641
|
-
|
|
3642
|
-
n &&
|
|
3643
|
-
}, [n]),
|
|
3623
|
+
} = t, f = pe(), [p, m] = _t(a || s[0].value), [b, g] = _t({ width: 0, left: 0 }), y = qt(null);
|
|
3624
|
+
lt(() => {
|
|
3625
|
+
n && m(n);
|
|
3626
|
+
}, [n]), lt(() => {
|
|
3644
3627
|
C();
|
|
3645
3628
|
}, [p, s, i, l, c]);
|
|
3646
3629
|
const C = () => {
|
|
3647
|
-
if (!(
|
|
3648
|
-
const w =
|
|
3630
|
+
if (!(y != null && y.current)) return;
|
|
3631
|
+
const w = y.current.querySelector(
|
|
3649
3632
|
'[data-is-active-segment="true"]'
|
|
3650
3633
|
);
|
|
3651
|
-
w &&
|
|
3634
|
+
w && g({
|
|
3652
3635
|
width: w.offsetWidth,
|
|
3653
3636
|
left: w.offsetLeft
|
|
3654
3637
|
});
|
|
3655
|
-
},
|
|
3656
|
-
|
|
3638
|
+
}, x = (u = s.find((w) => w.value === p)) == null ? void 0 : u.label, v = (w) => {
|
|
3639
|
+
m(w), _ == null || _(w);
|
|
3657
3640
|
};
|
|
3658
3641
|
return (s == null ? void 0 : s.length) === 0 ? null : /* @__PURE__ */ o.jsxs(
|
|
3659
3642
|
"div",
|
|
3660
3643
|
{
|
|
3661
3644
|
className: $(
|
|
3662
|
-
|
|
3663
|
-
|
|
3664
|
-
|
|
3645
|
+
At.segmentedControl,
|
|
3646
|
+
At[i],
|
|
3647
|
+
At[c],
|
|
3665
3648
|
{
|
|
3666
|
-
[
|
|
3649
|
+
[At.stretched]: l
|
|
3667
3650
|
},
|
|
3668
3651
|
r
|
|
3669
3652
|
),
|
|
3670
3653
|
"data-testid": "segmented-control-container",
|
|
3671
|
-
ref:
|
|
3654
|
+
ref: y,
|
|
3672
3655
|
children: [
|
|
3673
3656
|
s == null ? void 0 : s.map(({ label: w, value: L }, E) => {
|
|
3674
|
-
const
|
|
3675
|
-
return /* @__PURE__ */ o.jsxs(
|
|
3657
|
+
const k = () => v(L);
|
|
3658
|
+
return /* @__PURE__ */ o.jsxs(Pt, { children: [
|
|
3676
3659
|
/* @__PURE__ */ o.jsx(
|
|
3677
3660
|
"input",
|
|
3678
3661
|
{
|
|
@@ -3680,31 +3663,31 @@ const Ft = Object.assign($s, {
|
|
|
3680
3663
|
value: JSON.stringify(L),
|
|
3681
3664
|
type: "radio",
|
|
3682
3665
|
checked: p === L,
|
|
3683
|
-
onClick:
|
|
3666
|
+
onClick: k
|
|
3684
3667
|
}
|
|
3685
3668
|
),
|
|
3686
3669
|
/* @__PURE__ */ o.jsx(
|
|
3687
3670
|
"label",
|
|
3688
3671
|
{
|
|
3689
3672
|
"data-is-active-segment": p === L,
|
|
3690
|
-
className: $(
|
|
3673
|
+
className: $(At.segment, Ve[i]),
|
|
3691
3674
|
htmlFor: f + JSON.stringify(L),
|
|
3692
3675
|
"data-testid": "segmented-control-segment",
|
|
3693
3676
|
children: w
|
|
3694
3677
|
}
|
|
3695
3678
|
)
|
|
3696
|
-
] },
|
|
3679
|
+
] }, Jt(JSON.stringify(L)) + E);
|
|
3697
3680
|
}),
|
|
3698
3681
|
/* @__PURE__ */ o.jsx(
|
|
3699
3682
|
"div",
|
|
3700
3683
|
{
|
|
3701
|
-
className: $(
|
|
3684
|
+
className: $(At.activeSegmentIndicator, Ve[i]),
|
|
3702
3685
|
"data-testid": "segmented-control-active-segment",
|
|
3703
3686
|
style: {
|
|
3704
|
-
width:
|
|
3705
|
-
left:
|
|
3687
|
+
width: b.width,
|
|
3688
|
+
left: b.left
|
|
3706
3689
|
},
|
|
3707
|
-
children:
|
|
3690
|
+
children: x
|
|
3708
3691
|
}
|
|
3709
3692
|
)
|
|
3710
3693
|
]
|
|
@@ -3712,25 +3695,25 @@ const Ft = Object.assign($s, {
|
|
|
3712
3695
|
);
|
|
3713
3696
|
};
|
|
3714
3697
|
export {
|
|
3715
|
-
|
|
3698
|
+
Al as Avatar,
|
|
3716
3699
|
Qa as Badge,
|
|
3717
3700
|
ga as Button,
|
|
3718
|
-
|
|
3719
|
-
|
|
3720
|
-
|
|
3721
|
-
|
|
3722
|
-
|
|
3701
|
+
Fl as Checkbox,
|
|
3702
|
+
zl as ConfigProvider,
|
|
3703
|
+
Vl as Helper,
|
|
3704
|
+
Pl as Image,
|
|
3705
|
+
Yl as List,
|
|
3723
3706
|
hn as Loader,
|
|
3724
|
-
|
|
3725
|
-
|
|
3726
|
-
|
|
3727
|
-
|
|
3728
|
-
|
|
3729
|
-
|
|
3730
|
-
|
|
3731
|
-
|
|
3732
|
-
|
|
3733
|
-
|
|
3734
|
-
|
|
3735
|
-
|
|
3707
|
+
Xl as Radio,
|
|
3708
|
+
Ul as SegmentedControl,
|
|
3709
|
+
Zl as Tabs,
|
|
3710
|
+
Wl as Tag,
|
|
3711
|
+
Hl as TextArea,
|
|
3712
|
+
ql as TextInput,
|
|
3713
|
+
Gl as Tooltip,
|
|
3714
|
+
De as Typography,
|
|
3715
|
+
bn as enUS,
|
|
3716
|
+
Dl as ruRU,
|
|
3717
|
+
yn as useConfig,
|
|
3718
|
+
Bl as useLocale
|
|
3736
3719
|
};
|