@emporix/component-library 1.3.0 → 1.3.1
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/README.md +8 -0
- package/dist/assets/index-CGlMSzXO.js +79 -0
- package/dist/assets/index-CcChJOm6.css +1 -0
- package/dist/index.html +14 -0
- package/package.json +5 -1
- package/dist/components/buttons/PrimaryButton.d.ts +0 -29
- package/dist/components/buttons/PrimaryButton.d.ts.map +0 -1
- package/dist/components/buttons/SecondaryButton.d.ts +0 -25
- package/dist/components/buttons/SecondaryButton.d.ts.map +0 -1
- package/dist/components/dropdown/Dropdown.d.ts +0 -70
- package/dist/components/dropdown/Dropdown.d.ts.map +0 -1
- package/dist/components/tabs/Tabs.d.ts +0 -39
- package/dist/components/tabs/Tabs.d.ts.map +0 -1
- package/dist/index.d.ts +0 -9
- package/dist/index.d.ts.map +0 -1
- package/dist/index.es.js +0 -1043
- package/dist/index.umd.js +0 -30
- package/dist/style.css +0 -1
- package/dist/styles.d.ts +0 -4
package/dist/index.es.js
DELETED
|
@@ -1,1043 +0,0 @@
|
|
|
1
|
-
import L, { useState as Pe, useRef as pe, useEffect as _e } from "react";
|
|
2
|
-
var be = { exports: {} }, Z = {};
|
|
3
|
-
/**
|
|
4
|
-
* @license React
|
|
5
|
-
* react-jsx-runtime.production.min.js
|
|
6
|
-
*
|
|
7
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
8
|
-
*
|
|
9
|
-
* This source code is licensed under the MIT license found in the
|
|
10
|
-
* LICENSE file in the root directory of this source tree.
|
|
11
|
-
*/
|
|
12
|
-
var Ke;
|
|
13
|
-
function xr() {
|
|
14
|
-
if (Ke) return Z;
|
|
15
|
-
Ke = 1;
|
|
16
|
-
var t = L, a = Symbol.for("react.element"), i = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty, p = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, E = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
17
|
-
function R(b, f, S) {
|
|
18
|
-
var O, k = {}, N = null, w = null;
|
|
19
|
-
S !== void 0 && (N = "" + S), f.key !== void 0 && (N = "" + f.key), f.ref !== void 0 && (w = f.ref);
|
|
20
|
-
for (O in f) o.call(f, O) && !E.hasOwnProperty(O) && (k[O] = f[O]);
|
|
21
|
-
if (b && b.defaultProps) for (O in f = b.defaultProps, f) k[O] === void 0 && (k[O] = f[O]);
|
|
22
|
-
return { $$typeof: a, type: b, key: N, ref: w, props: k, _owner: p.current };
|
|
23
|
-
}
|
|
24
|
-
return Z.Fragment = i, Z.jsx = R, Z.jsxs = R, Z;
|
|
25
|
-
}
|
|
26
|
-
var Q = {};
|
|
27
|
-
/**
|
|
28
|
-
* @license React
|
|
29
|
-
* react-jsx-runtime.development.js
|
|
30
|
-
*
|
|
31
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
32
|
-
*
|
|
33
|
-
* This source code is licensed under the MIT license found in the
|
|
34
|
-
* LICENSE file in the root directory of this source tree.
|
|
35
|
-
*/
|
|
36
|
-
var Je;
|
|
37
|
-
function Pr() {
|
|
38
|
-
return Je || (Je = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
39
|
-
var t = L, a = Symbol.for("react.element"), i = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), p = Symbol.for("react.strict_mode"), E = Symbol.for("react.profiler"), R = Symbol.for("react.provider"), b = Symbol.for("react.context"), f = Symbol.for("react.forward_ref"), S = Symbol.for("react.suspense"), O = Symbol.for("react.suspense_list"), k = Symbol.for("react.memo"), N = Symbol.for("react.lazy"), w = Symbol.for("react.offscreen"), x = Symbol.iterator, W = "@@iterator";
|
|
40
|
-
function ee(e) {
|
|
41
|
-
if (e === null || typeof e != "object")
|
|
42
|
-
return null;
|
|
43
|
-
var r = x && e[x] || e[W];
|
|
44
|
-
return typeof r == "function" ? r : null;
|
|
45
|
-
}
|
|
46
|
-
var F = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
47
|
-
function y(e) {
|
|
48
|
-
{
|
|
49
|
-
for (var r = arguments.length, n = new Array(r > 1 ? r - 1 : 0), l = 1; l < r; l++)
|
|
50
|
-
n[l - 1] = arguments[l];
|
|
51
|
-
Y("error", e, n);
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
function Y(e, r, n) {
|
|
55
|
-
{
|
|
56
|
-
var l = F.ReactDebugCurrentFrame, d = l.getStackAddendum();
|
|
57
|
-
d !== "" && (r += "%s", n = n.concat([d]));
|
|
58
|
-
var v = n.map(function(u) {
|
|
59
|
-
return String(u);
|
|
60
|
-
});
|
|
61
|
-
v.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, v);
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
var q = !1, ge = !1, re = !1, te = !1, ne = !1, ae;
|
|
65
|
-
ae = Symbol.for("react.module.reference");
|
|
66
|
-
function De(e) {
|
|
67
|
-
return !!(typeof e == "string" || typeof e == "function" || e === o || e === E || ne || e === p || e === S || e === O || te || e === w || q || ge || re || typeof e == "object" && e !== null && (e.$$typeof === N || e.$$typeof === k || e.$$typeof === R || e.$$typeof === b || e.$$typeof === f || // This needs to include all possible module reference object
|
|
68
|
-
// types supported by any Flight configuration anywhere since
|
|
69
|
-
// we don't know which Flight build this will end up being used
|
|
70
|
-
// with.
|
|
71
|
-
e.$$typeof === ae || e.getModuleId !== void 0));
|
|
72
|
-
}
|
|
73
|
-
function I(e, r, n) {
|
|
74
|
-
var l = e.displayName;
|
|
75
|
-
if (l)
|
|
76
|
-
return l;
|
|
77
|
-
var d = r.displayName || r.name || "";
|
|
78
|
-
return d !== "" ? n + "(" + d + ")" : n;
|
|
79
|
-
}
|
|
80
|
-
function ie(e) {
|
|
81
|
-
return e.displayName || "Context";
|
|
82
|
-
}
|
|
83
|
-
function D(e) {
|
|
84
|
-
if (e == null)
|
|
85
|
-
return null;
|
|
86
|
-
if (typeof e.tag == "number" && y("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
87
|
-
return e.displayName || e.name || null;
|
|
88
|
-
if (typeof e == "string")
|
|
89
|
-
return e;
|
|
90
|
-
switch (e) {
|
|
91
|
-
case o:
|
|
92
|
-
return "Fragment";
|
|
93
|
-
case i:
|
|
94
|
-
return "Portal";
|
|
95
|
-
case E:
|
|
96
|
-
return "Profiler";
|
|
97
|
-
case p:
|
|
98
|
-
return "StrictMode";
|
|
99
|
-
case S:
|
|
100
|
-
return "Suspense";
|
|
101
|
-
case O:
|
|
102
|
-
return "SuspenseList";
|
|
103
|
-
}
|
|
104
|
-
if (typeof e == "object")
|
|
105
|
-
switch (e.$$typeof) {
|
|
106
|
-
case b:
|
|
107
|
-
var r = e;
|
|
108
|
-
return ie(r) + ".Consumer";
|
|
109
|
-
case R:
|
|
110
|
-
var n = e;
|
|
111
|
-
return ie(n._context) + ".Provider";
|
|
112
|
-
case f:
|
|
113
|
-
return I(e, e.render, "ForwardRef");
|
|
114
|
-
case k:
|
|
115
|
-
var l = e.displayName || null;
|
|
116
|
-
return l !== null ? l : D(e.type) || "Memo";
|
|
117
|
-
case N: {
|
|
118
|
-
var d = e, v = d._payload, u = d._init;
|
|
119
|
-
try {
|
|
120
|
-
return D(u(v));
|
|
121
|
-
} catch {
|
|
122
|
-
return null;
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
return null;
|
|
127
|
-
}
|
|
128
|
-
var B = Object.assign, M = 0, oe, se, z, K, s, h, A;
|
|
129
|
-
function le() {
|
|
130
|
-
}
|
|
131
|
-
le.__reactDisabledLog = !0;
|
|
132
|
-
function Ee() {
|
|
133
|
-
{
|
|
134
|
-
if (M === 0) {
|
|
135
|
-
oe = console.log, se = console.info, z = console.warn, K = console.error, s = console.group, h = console.groupCollapsed, A = console.groupEnd;
|
|
136
|
-
var e = {
|
|
137
|
-
configurable: !0,
|
|
138
|
-
enumerable: !0,
|
|
139
|
-
value: le,
|
|
140
|
-
writable: !0
|
|
141
|
-
};
|
|
142
|
-
Object.defineProperties(console, {
|
|
143
|
-
info: e,
|
|
144
|
-
log: e,
|
|
145
|
-
warn: e,
|
|
146
|
-
error: e,
|
|
147
|
-
group: e,
|
|
148
|
-
groupCollapsed: e,
|
|
149
|
-
groupEnd: e
|
|
150
|
-
});
|
|
151
|
-
}
|
|
152
|
-
M++;
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
function ce() {
|
|
156
|
-
{
|
|
157
|
-
if (M--, M === 0) {
|
|
158
|
-
var e = {
|
|
159
|
-
configurable: !0,
|
|
160
|
-
enumerable: !0,
|
|
161
|
-
writable: !0
|
|
162
|
-
};
|
|
163
|
-
Object.defineProperties(console, {
|
|
164
|
-
log: B({}, e, {
|
|
165
|
-
value: oe
|
|
166
|
-
}),
|
|
167
|
-
info: B({}, e, {
|
|
168
|
-
value: se
|
|
169
|
-
}),
|
|
170
|
-
warn: B({}, e, {
|
|
171
|
-
value: z
|
|
172
|
-
}),
|
|
173
|
-
error: B({}, e, {
|
|
174
|
-
value: K
|
|
175
|
-
}),
|
|
176
|
-
group: B({}, e, {
|
|
177
|
-
value: s
|
|
178
|
-
}),
|
|
179
|
-
groupCollapsed: B({}, e, {
|
|
180
|
-
value: h
|
|
181
|
-
}),
|
|
182
|
-
groupEnd: B({}, e, {
|
|
183
|
-
value: A
|
|
184
|
-
})
|
|
185
|
-
});
|
|
186
|
-
}
|
|
187
|
-
M < 0 && y("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
var J = F.ReactCurrentDispatcher, G;
|
|
191
|
-
function ue(e, r, n) {
|
|
192
|
-
{
|
|
193
|
-
if (G === void 0)
|
|
194
|
-
try {
|
|
195
|
-
throw Error();
|
|
196
|
-
} catch (d) {
|
|
197
|
-
var l = d.stack.trim().match(/\n( *(at )?)/);
|
|
198
|
-
G = l && l[1] || "";
|
|
199
|
-
}
|
|
200
|
-
return `
|
|
201
|
-
` + G + e;
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
var Re = !1, fe;
|
|
205
|
-
{
|
|
206
|
-
var tr = typeof WeakMap == "function" ? WeakMap : Map;
|
|
207
|
-
fe = new tr();
|
|
208
|
-
}
|
|
209
|
-
function Ne(e, r) {
|
|
210
|
-
if (!e || Re)
|
|
211
|
-
return "";
|
|
212
|
-
{
|
|
213
|
-
var n = fe.get(e);
|
|
214
|
-
if (n !== void 0)
|
|
215
|
-
return n;
|
|
216
|
-
}
|
|
217
|
-
var l;
|
|
218
|
-
Re = !0;
|
|
219
|
-
var d = Error.prepareStackTrace;
|
|
220
|
-
Error.prepareStackTrace = void 0;
|
|
221
|
-
var v;
|
|
222
|
-
v = J.current, J.current = null, Ee();
|
|
223
|
-
try {
|
|
224
|
-
if (r) {
|
|
225
|
-
var u = function() {
|
|
226
|
-
throw Error();
|
|
227
|
-
};
|
|
228
|
-
if (Object.defineProperty(u.prototype, "props", {
|
|
229
|
-
set: function() {
|
|
230
|
-
throw Error();
|
|
231
|
-
}
|
|
232
|
-
}), typeof Reflect == "object" && Reflect.construct) {
|
|
233
|
-
try {
|
|
234
|
-
Reflect.construct(u, []);
|
|
235
|
-
} catch (P) {
|
|
236
|
-
l = P;
|
|
237
|
-
}
|
|
238
|
-
Reflect.construct(e, [], u);
|
|
239
|
-
} else {
|
|
240
|
-
try {
|
|
241
|
-
u.call();
|
|
242
|
-
} catch (P) {
|
|
243
|
-
l = P;
|
|
244
|
-
}
|
|
245
|
-
e.call(u.prototype);
|
|
246
|
-
}
|
|
247
|
-
} else {
|
|
248
|
-
try {
|
|
249
|
-
throw Error();
|
|
250
|
-
} catch (P) {
|
|
251
|
-
l = P;
|
|
252
|
-
}
|
|
253
|
-
e();
|
|
254
|
-
}
|
|
255
|
-
} catch (P) {
|
|
256
|
-
if (P && l && typeof P.stack == "string") {
|
|
257
|
-
for (var c = P.stack.split(`
|
|
258
|
-
`), C = l.stack.split(`
|
|
259
|
-
`), m = c.length - 1, g = C.length - 1; m >= 1 && g >= 0 && c[m] !== C[g]; )
|
|
260
|
-
g--;
|
|
261
|
-
for (; m >= 1 && g >= 0; m--, g--)
|
|
262
|
-
if (c[m] !== C[g]) {
|
|
263
|
-
if (m !== 1 || g !== 1)
|
|
264
|
-
do
|
|
265
|
-
if (m--, g--, g < 0 || c[m] !== C[g]) {
|
|
266
|
-
var T = `
|
|
267
|
-
` + c[m].replace(" at new ", " at ");
|
|
268
|
-
return e.displayName && T.includes("<anonymous>") && (T = T.replace("<anonymous>", e.displayName)), typeof e == "function" && fe.set(e, T), T;
|
|
269
|
-
}
|
|
270
|
-
while (m >= 1 && g >= 0);
|
|
271
|
-
break;
|
|
272
|
-
}
|
|
273
|
-
}
|
|
274
|
-
} finally {
|
|
275
|
-
Re = !1, J.current = v, ce(), Error.prepareStackTrace = d;
|
|
276
|
-
}
|
|
277
|
-
var H = e ? e.displayName || e.name : "", V = H ? ue(H) : "";
|
|
278
|
-
return typeof e == "function" && fe.set(e, V), V;
|
|
279
|
-
}
|
|
280
|
-
function nr(e, r, n) {
|
|
281
|
-
return Ne(e, !1);
|
|
282
|
-
}
|
|
283
|
-
function ar(e) {
|
|
284
|
-
var r = e.prototype;
|
|
285
|
-
return !!(r && r.isReactComponent);
|
|
286
|
-
}
|
|
287
|
-
function de(e, r, n) {
|
|
288
|
-
if (e == null)
|
|
289
|
-
return "";
|
|
290
|
-
if (typeof e == "function")
|
|
291
|
-
return Ne(e, ar(e));
|
|
292
|
-
if (typeof e == "string")
|
|
293
|
-
return ue(e);
|
|
294
|
-
switch (e) {
|
|
295
|
-
case S:
|
|
296
|
-
return ue("Suspense");
|
|
297
|
-
case O:
|
|
298
|
-
return ue("SuspenseList");
|
|
299
|
-
}
|
|
300
|
-
if (typeof e == "object")
|
|
301
|
-
switch (e.$$typeof) {
|
|
302
|
-
case f:
|
|
303
|
-
return nr(e.render);
|
|
304
|
-
case k:
|
|
305
|
-
return de(e.type, r, n);
|
|
306
|
-
case N: {
|
|
307
|
-
var l = e, d = l._payload, v = l._init;
|
|
308
|
-
try {
|
|
309
|
-
return de(v(d), r, n);
|
|
310
|
-
} catch {
|
|
311
|
-
}
|
|
312
|
-
}
|
|
313
|
-
}
|
|
314
|
-
return "";
|
|
315
|
-
}
|
|
316
|
-
var X = Object.prototype.hasOwnProperty, Fe = {}, Ie = F.ReactDebugCurrentFrame;
|
|
317
|
-
function ve(e) {
|
|
318
|
-
if (e) {
|
|
319
|
-
var r = e._owner, n = de(e.type, e._source, r ? r.type : null);
|
|
320
|
-
Ie.setExtraStackFrame(n);
|
|
321
|
-
} else
|
|
322
|
-
Ie.setExtraStackFrame(null);
|
|
323
|
-
}
|
|
324
|
-
function ir(e, r, n, l, d) {
|
|
325
|
-
{
|
|
326
|
-
var v = Function.call.bind(X);
|
|
327
|
-
for (var u in e)
|
|
328
|
-
if (v(e, u)) {
|
|
329
|
-
var c = void 0;
|
|
330
|
-
try {
|
|
331
|
-
if (typeof e[u] != "function") {
|
|
332
|
-
var C = Error((l || "React class") + ": " + n + " type `" + u + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[u] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
333
|
-
throw C.name = "Invariant Violation", C;
|
|
334
|
-
}
|
|
335
|
-
c = e[u](r, u, l, n, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
336
|
-
} catch (m) {
|
|
337
|
-
c = m;
|
|
338
|
-
}
|
|
339
|
-
c && !(c instanceof Error) && (ve(d), y("%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).", l || "React class", n, u, typeof c), ve(null)), c instanceof Error && !(c.message in Fe) && (Fe[c.message] = !0, ve(d), y("Failed %s type: %s", n, c.message), ve(null));
|
|
340
|
-
}
|
|
341
|
-
}
|
|
342
|
-
}
|
|
343
|
-
var or = Array.isArray;
|
|
344
|
-
function je(e) {
|
|
345
|
-
return or(e);
|
|
346
|
-
}
|
|
347
|
-
function sr(e) {
|
|
348
|
-
{
|
|
349
|
-
var r = typeof Symbol == "function" && Symbol.toStringTag, n = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
350
|
-
return n;
|
|
351
|
-
}
|
|
352
|
-
}
|
|
353
|
-
function lr(e) {
|
|
354
|
-
try {
|
|
355
|
-
return Be(e), !1;
|
|
356
|
-
} catch {
|
|
357
|
-
return !0;
|
|
358
|
-
}
|
|
359
|
-
}
|
|
360
|
-
function Be(e) {
|
|
361
|
-
return "" + e;
|
|
362
|
-
}
|
|
363
|
-
function Ae(e) {
|
|
364
|
-
if (lr(e))
|
|
365
|
-
return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", sr(e)), Be(e);
|
|
366
|
-
}
|
|
367
|
-
var $e = F.ReactCurrentOwner, cr = {
|
|
368
|
-
key: !0,
|
|
369
|
-
ref: !0,
|
|
370
|
-
__self: !0,
|
|
371
|
-
__source: !0
|
|
372
|
-
}, Le, We;
|
|
373
|
-
function ur(e) {
|
|
374
|
-
if (X.call(e, "ref")) {
|
|
375
|
-
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
376
|
-
if (r && r.isReactWarning)
|
|
377
|
-
return !1;
|
|
378
|
-
}
|
|
379
|
-
return e.ref !== void 0;
|
|
380
|
-
}
|
|
381
|
-
function fr(e) {
|
|
382
|
-
if (X.call(e, "key")) {
|
|
383
|
-
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
384
|
-
if (r && r.isReactWarning)
|
|
385
|
-
return !1;
|
|
386
|
-
}
|
|
387
|
-
return e.key !== void 0;
|
|
388
|
-
}
|
|
389
|
-
function dr(e, r) {
|
|
390
|
-
typeof e.ref == "string" && $e.current;
|
|
391
|
-
}
|
|
392
|
-
function vr(e, r) {
|
|
393
|
-
{
|
|
394
|
-
var n = function() {
|
|
395
|
-
Le || (Le = !0, y("%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)", r));
|
|
396
|
-
};
|
|
397
|
-
n.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
398
|
-
get: n,
|
|
399
|
-
configurable: !0
|
|
400
|
-
});
|
|
401
|
-
}
|
|
402
|
-
}
|
|
403
|
-
function pr(e, r) {
|
|
404
|
-
{
|
|
405
|
-
var n = function() {
|
|
406
|
-
We || (We = !0, y("%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)", r));
|
|
407
|
-
};
|
|
408
|
-
n.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
409
|
-
get: n,
|
|
410
|
-
configurable: !0
|
|
411
|
-
});
|
|
412
|
-
}
|
|
413
|
-
}
|
|
414
|
-
var _r = function(e, r, n, l, d, v, u) {
|
|
415
|
-
var c = {
|
|
416
|
-
// This tag allows us to uniquely identify this as a React Element
|
|
417
|
-
$$typeof: a,
|
|
418
|
-
// Built-in properties that belong on the element
|
|
419
|
-
type: e,
|
|
420
|
-
key: r,
|
|
421
|
-
ref: n,
|
|
422
|
-
props: u,
|
|
423
|
-
// Record the component responsible for creating this element.
|
|
424
|
-
_owner: v
|
|
425
|
-
};
|
|
426
|
-
return c._store = {}, Object.defineProperty(c._store, "validated", {
|
|
427
|
-
configurable: !1,
|
|
428
|
-
enumerable: !1,
|
|
429
|
-
writable: !0,
|
|
430
|
-
value: !1
|
|
431
|
-
}), Object.defineProperty(c, "_self", {
|
|
432
|
-
configurable: !1,
|
|
433
|
-
enumerable: !1,
|
|
434
|
-
writable: !1,
|
|
435
|
-
value: l
|
|
436
|
-
}), Object.defineProperty(c, "_source", {
|
|
437
|
-
configurable: !1,
|
|
438
|
-
enumerable: !1,
|
|
439
|
-
writable: !1,
|
|
440
|
-
value: d
|
|
441
|
-
}), Object.freeze && (Object.freeze(c.props), Object.freeze(c)), c;
|
|
442
|
-
};
|
|
443
|
-
function br(e, r, n, l, d) {
|
|
444
|
-
{
|
|
445
|
-
var v, u = {}, c = null, C = null;
|
|
446
|
-
n !== void 0 && (Ae(n), c = "" + n), fr(r) && (Ae(r.key), c = "" + r.key), ur(r) && (C = r.ref, dr(r, d));
|
|
447
|
-
for (v in r)
|
|
448
|
-
X.call(r, v) && !cr.hasOwnProperty(v) && (u[v] = r[v]);
|
|
449
|
-
if (e && e.defaultProps) {
|
|
450
|
-
var m = e.defaultProps;
|
|
451
|
-
for (v in m)
|
|
452
|
-
u[v] === void 0 && (u[v] = m[v]);
|
|
453
|
-
}
|
|
454
|
-
if (c || C) {
|
|
455
|
-
var g = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
456
|
-
c && vr(u, g), C && pr(u, g);
|
|
457
|
-
}
|
|
458
|
-
return _r(e, c, C, d, l, $e.current, u);
|
|
459
|
-
}
|
|
460
|
-
}
|
|
461
|
-
var Oe = F.ReactCurrentOwner, Ye = F.ReactDebugCurrentFrame;
|
|
462
|
-
function U(e) {
|
|
463
|
-
if (e) {
|
|
464
|
-
var r = e._owner, n = de(e.type, e._source, r ? r.type : null);
|
|
465
|
-
Ye.setExtraStackFrame(n);
|
|
466
|
-
} else
|
|
467
|
-
Ye.setExtraStackFrame(null);
|
|
468
|
-
}
|
|
469
|
-
var Ce;
|
|
470
|
-
Ce = !1;
|
|
471
|
-
function we(e) {
|
|
472
|
-
return typeof e == "object" && e !== null && e.$$typeof === a;
|
|
473
|
-
}
|
|
474
|
-
function Me() {
|
|
475
|
-
{
|
|
476
|
-
if (Oe.current) {
|
|
477
|
-
var e = D(Oe.current.type);
|
|
478
|
-
if (e)
|
|
479
|
-
return `
|
|
480
|
-
|
|
481
|
-
Check the render method of \`` + e + "`.";
|
|
482
|
-
}
|
|
483
|
-
return "";
|
|
484
|
-
}
|
|
485
|
-
}
|
|
486
|
-
function mr(e) {
|
|
487
|
-
return "";
|
|
488
|
-
}
|
|
489
|
-
var Ve = {};
|
|
490
|
-
function yr(e) {
|
|
491
|
-
{
|
|
492
|
-
var r = Me();
|
|
493
|
-
if (!r) {
|
|
494
|
-
var n = typeof e == "string" ? e : e.displayName || e.name;
|
|
495
|
-
n && (r = `
|
|
496
|
-
|
|
497
|
-
Check the top-level render call using <` + n + ">.");
|
|
498
|
-
}
|
|
499
|
-
return r;
|
|
500
|
-
}
|
|
501
|
-
}
|
|
502
|
-
function ze(e, r) {
|
|
503
|
-
{
|
|
504
|
-
if (!e._store || e._store.validated || e.key != null)
|
|
505
|
-
return;
|
|
506
|
-
e._store.validated = !0;
|
|
507
|
-
var n = yr(r);
|
|
508
|
-
if (Ve[n])
|
|
509
|
-
return;
|
|
510
|
-
Ve[n] = !0;
|
|
511
|
-
var l = "";
|
|
512
|
-
e && e._owner && e._owner !== Oe.current && (l = " It was passed a child from " + D(e._owner.type) + "."), U(e), y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', n, l), U(null);
|
|
513
|
-
}
|
|
514
|
-
}
|
|
515
|
-
function Ue(e, r) {
|
|
516
|
-
{
|
|
517
|
-
if (typeof e != "object")
|
|
518
|
-
return;
|
|
519
|
-
if (je(e))
|
|
520
|
-
for (var n = 0; n < e.length; n++) {
|
|
521
|
-
var l = e[n];
|
|
522
|
-
we(l) && ze(l, r);
|
|
523
|
-
}
|
|
524
|
-
else if (we(e))
|
|
525
|
-
e._store && (e._store.validated = !0);
|
|
526
|
-
else if (e) {
|
|
527
|
-
var d = ee(e);
|
|
528
|
-
if (typeof d == "function" && d !== e.entries)
|
|
529
|
-
for (var v = d.call(e), u; !(u = v.next()).done; )
|
|
530
|
-
we(u.value) && ze(u.value, r);
|
|
531
|
-
}
|
|
532
|
-
}
|
|
533
|
-
}
|
|
534
|
-
function hr(e) {
|
|
535
|
-
{
|
|
536
|
-
var r = e.type;
|
|
537
|
-
if (r == null || typeof r == "string")
|
|
538
|
-
return;
|
|
539
|
-
var n;
|
|
540
|
-
if (typeof r == "function")
|
|
541
|
-
n = r.propTypes;
|
|
542
|
-
else if (typeof r == "object" && (r.$$typeof === f || // Note: Memo only checks outer props here.
|
|
543
|
-
// Inner props are checked in the reconciler.
|
|
544
|
-
r.$$typeof === k))
|
|
545
|
-
n = r.propTypes;
|
|
546
|
-
else
|
|
547
|
-
return;
|
|
548
|
-
if (n) {
|
|
549
|
-
var l = D(r);
|
|
550
|
-
ir(n, e.props, "prop", l, e);
|
|
551
|
-
} else if (r.PropTypes !== void 0 && !Ce) {
|
|
552
|
-
Ce = !0;
|
|
553
|
-
var d = D(r);
|
|
554
|
-
y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", d || "Unknown");
|
|
555
|
-
}
|
|
556
|
-
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
557
|
-
}
|
|
558
|
-
}
|
|
559
|
-
function gr(e) {
|
|
560
|
-
{
|
|
561
|
-
for (var r = Object.keys(e.props), n = 0; n < r.length; n++) {
|
|
562
|
-
var l = r[n];
|
|
563
|
-
if (l !== "children" && l !== "key") {
|
|
564
|
-
U(e), y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", l), U(null);
|
|
565
|
-
break;
|
|
566
|
-
}
|
|
567
|
-
}
|
|
568
|
-
e.ref !== null && (U(e), y("Invalid attribute `ref` supplied to `React.Fragment`."), U(null));
|
|
569
|
-
}
|
|
570
|
-
}
|
|
571
|
-
var He = {};
|
|
572
|
-
function qe(e, r, n, l, d, v) {
|
|
573
|
-
{
|
|
574
|
-
var u = De(e);
|
|
575
|
-
if (!u) {
|
|
576
|
-
var c = "";
|
|
577
|
-
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (c += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
578
|
-
var C = mr();
|
|
579
|
-
C ? c += C : c += Me();
|
|
580
|
-
var m;
|
|
581
|
-
e === null ? m = "null" : je(e) ? m = "array" : e !== void 0 && e.$$typeof === a ? (m = "<" + (D(e.type) || "Unknown") + " />", c = " Did you accidentally export a JSX literal instead of a component?") : m = typeof e, y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", m, c);
|
|
582
|
-
}
|
|
583
|
-
var g = br(e, r, n, d, v);
|
|
584
|
-
if (g == null)
|
|
585
|
-
return g;
|
|
586
|
-
if (u) {
|
|
587
|
-
var T = r.children;
|
|
588
|
-
if (T !== void 0)
|
|
589
|
-
if (l)
|
|
590
|
-
if (je(T)) {
|
|
591
|
-
for (var H = 0; H < T.length; H++)
|
|
592
|
-
Ue(T[H], e);
|
|
593
|
-
Object.freeze && Object.freeze(T);
|
|
594
|
-
} else
|
|
595
|
-
y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
596
|
-
else
|
|
597
|
-
Ue(T, e);
|
|
598
|
-
}
|
|
599
|
-
if (X.call(r, "key")) {
|
|
600
|
-
var V = D(e), P = Object.keys(r).filter(function(wr) {
|
|
601
|
-
return wr !== "key";
|
|
602
|
-
}), xe = P.length > 0 ? "{key: someKey, " + P.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
603
|
-
if (!He[V + xe]) {
|
|
604
|
-
var Cr = P.length > 0 ? "{" + P.join(": ..., ") + ": ...}" : "{}";
|
|
605
|
-
y(`A props object containing a "key" prop is being spread into JSX:
|
|
606
|
-
let props = %s;
|
|
607
|
-
<%s {...props} />
|
|
608
|
-
React keys must be passed directly to JSX without using spread:
|
|
609
|
-
let props = %s;
|
|
610
|
-
<%s key={someKey} {...props} />`, xe, V, Cr, V), He[V + xe] = !0;
|
|
611
|
-
}
|
|
612
|
-
}
|
|
613
|
-
return e === o ? gr(g) : hr(g), g;
|
|
614
|
-
}
|
|
615
|
-
}
|
|
616
|
-
function Er(e, r, n) {
|
|
617
|
-
return qe(e, r, n, !0);
|
|
618
|
-
}
|
|
619
|
-
function Rr(e, r, n) {
|
|
620
|
-
return qe(e, r, n, !1);
|
|
621
|
-
}
|
|
622
|
-
var jr = Rr, Or = Er;
|
|
623
|
-
Q.Fragment = o, Q.jsx = jr, Q.jsxs = Or;
|
|
624
|
-
})()), Q;
|
|
625
|
-
}
|
|
626
|
-
var Ge;
|
|
627
|
-
function Sr() {
|
|
628
|
-
return Ge || (Ge = 1, process.env.NODE_ENV === "production" ? be.exports = xr() : be.exports = Pr()), be.exports;
|
|
629
|
-
}
|
|
630
|
-
var _ = Sr();
|
|
631
|
-
const Tr = "_primaryButton_uyzzr_1", kr = "_primaryButtonDisabled_uyzzr_34", Dr = "_spinner_uyzzr_42", Se = {
|
|
632
|
-
primaryButton: Tr,
|
|
633
|
-
primaryButtonDisabled: kr,
|
|
634
|
-
spinner: Dr
|
|
635
|
-
};
|
|
636
|
-
var er = {
|
|
637
|
-
color: void 0,
|
|
638
|
-
size: void 0,
|
|
639
|
-
className: void 0,
|
|
640
|
-
style: void 0,
|
|
641
|
-
attr: void 0
|
|
642
|
-
}, Xe = L.createContext && /* @__PURE__ */ L.createContext(er), Nr = ["attr", "size", "title"];
|
|
643
|
-
function Fr(t, a) {
|
|
644
|
-
if (t == null) return {};
|
|
645
|
-
var i = Ir(t, a), o, p;
|
|
646
|
-
if (Object.getOwnPropertySymbols) {
|
|
647
|
-
var E = Object.getOwnPropertySymbols(t);
|
|
648
|
-
for (p = 0; p < E.length; p++)
|
|
649
|
-
o = E[p], !(a.indexOf(o) >= 0) && Object.prototype.propertyIsEnumerable.call(t, o) && (i[o] = t[o]);
|
|
650
|
-
}
|
|
651
|
-
return i;
|
|
652
|
-
}
|
|
653
|
-
function Ir(t, a) {
|
|
654
|
-
if (t == null) return {};
|
|
655
|
-
var i = {};
|
|
656
|
-
for (var o in t)
|
|
657
|
-
if (Object.prototype.hasOwnProperty.call(t, o)) {
|
|
658
|
-
if (a.indexOf(o) >= 0) continue;
|
|
659
|
-
i[o] = t[o];
|
|
660
|
-
}
|
|
661
|
-
return i;
|
|
662
|
-
}
|
|
663
|
-
function ye() {
|
|
664
|
-
return ye = Object.assign ? Object.assign.bind() : function(t) {
|
|
665
|
-
for (var a = 1; a < arguments.length; a++) {
|
|
666
|
-
var i = arguments[a];
|
|
667
|
-
for (var o in i)
|
|
668
|
-
Object.prototype.hasOwnProperty.call(i, o) && (t[o] = i[o]);
|
|
669
|
-
}
|
|
670
|
-
return t;
|
|
671
|
-
}, ye.apply(this, arguments);
|
|
672
|
-
}
|
|
673
|
-
function Ze(t, a) {
|
|
674
|
-
var i = Object.keys(t);
|
|
675
|
-
if (Object.getOwnPropertySymbols) {
|
|
676
|
-
var o = Object.getOwnPropertySymbols(t);
|
|
677
|
-
a && (o = o.filter(function(p) {
|
|
678
|
-
return Object.getOwnPropertyDescriptor(t, p).enumerable;
|
|
679
|
-
})), i.push.apply(i, o);
|
|
680
|
-
}
|
|
681
|
-
return i;
|
|
682
|
-
}
|
|
683
|
-
function he(t) {
|
|
684
|
-
for (var a = 1; a < arguments.length; a++) {
|
|
685
|
-
var i = arguments[a] != null ? arguments[a] : {};
|
|
686
|
-
a % 2 ? Ze(Object(i), !0).forEach(function(o) {
|
|
687
|
-
Br(t, o, i[o]);
|
|
688
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(i)) : Ze(Object(i)).forEach(function(o) {
|
|
689
|
-
Object.defineProperty(t, o, Object.getOwnPropertyDescriptor(i, o));
|
|
690
|
-
});
|
|
691
|
-
}
|
|
692
|
-
return t;
|
|
693
|
-
}
|
|
694
|
-
function Br(t, a, i) {
|
|
695
|
-
return a = Ar(a), a in t ? Object.defineProperty(t, a, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[a] = i, t;
|
|
696
|
-
}
|
|
697
|
-
function Ar(t) {
|
|
698
|
-
var a = $r(t, "string");
|
|
699
|
-
return typeof a == "symbol" ? a : a + "";
|
|
700
|
-
}
|
|
701
|
-
function $r(t, a) {
|
|
702
|
-
if (typeof t != "object" || !t) return t;
|
|
703
|
-
var i = t[Symbol.toPrimitive];
|
|
704
|
-
if (i !== void 0) {
|
|
705
|
-
var o = i.call(t, a);
|
|
706
|
-
if (typeof o != "object") return o;
|
|
707
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
708
|
-
}
|
|
709
|
-
return (a === "string" ? String : Number)(t);
|
|
710
|
-
}
|
|
711
|
-
function rr(t) {
|
|
712
|
-
return t && t.map((a, i) => /* @__PURE__ */ L.createElement(a.tag, he({
|
|
713
|
-
key: i
|
|
714
|
-
}, a.attr), rr(a.child)));
|
|
715
|
-
}
|
|
716
|
-
function ke(t) {
|
|
717
|
-
return (a) => /* @__PURE__ */ L.createElement(Lr, ye({
|
|
718
|
-
attr: he({}, t.attr)
|
|
719
|
-
}, a), rr(t.child));
|
|
720
|
-
}
|
|
721
|
-
function Lr(t) {
|
|
722
|
-
var a = (i) => {
|
|
723
|
-
var {
|
|
724
|
-
attr: o,
|
|
725
|
-
size: p,
|
|
726
|
-
title: E
|
|
727
|
-
} = t, R = Fr(t, Nr), b = p || i.size || "1em", f;
|
|
728
|
-
return i.className && (f = i.className), t.className && (f = (f ? f + " " : "") + t.className), /* @__PURE__ */ L.createElement("svg", ye({
|
|
729
|
-
stroke: "currentColor",
|
|
730
|
-
fill: "currentColor",
|
|
731
|
-
strokeWidth: "0"
|
|
732
|
-
}, i.attr, o, R, {
|
|
733
|
-
className: f,
|
|
734
|
-
style: he(he({
|
|
735
|
-
color: t.color || i.color
|
|
736
|
-
}, i.style), t.style),
|
|
737
|
-
height: b,
|
|
738
|
-
width: b,
|
|
739
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
740
|
-
}), E && /* @__PURE__ */ L.createElement("title", null, E), t.children);
|
|
741
|
-
};
|
|
742
|
-
return Xe !== void 0 ? /* @__PURE__ */ L.createElement(Xe.Consumer, null, (i) => a(i)) : a(er);
|
|
743
|
-
}
|
|
744
|
-
function Wr(t) {
|
|
745
|
-
return ke({ attr: { viewBox: "0 0 24 24", fill: "none" }, child: [{ tag: "path", attr: { opacity: "0.2", fillRule: "evenodd", clipRule: "evenodd", d: "M12 19C15.866 19 19 15.866 19 12C19 8.13401 15.866 5 12 5C8.13401 5 5 8.13401 5 12C5 15.866 8.13401 19 12 19ZM12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z", fill: "currentColor" }, child: [] }, { tag: "path", attr: { d: "M2 12C2 6.47715 6.47715 2 12 2V5C8.13401 5 5 8.13401 5 12H2Z", fill: "currentColor" }, child: [] }] })(t);
|
|
746
|
-
}
|
|
747
|
-
const ht = ({
|
|
748
|
-
children: t,
|
|
749
|
-
disabled: a = !1,
|
|
750
|
-
loading: i = !1,
|
|
751
|
-
onClick: o,
|
|
752
|
-
className: p = "",
|
|
753
|
-
"data-testid": E,
|
|
754
|
-
...R
|
|
755
|
-
}) => {
|
|
756
|
-
const b = [
|
|
757
|
-
Se.primaryButton,
|
|
758
|
-
a ? Se.primaryButtonDisabled : "",
|
|
759
|
-
p
|
|
760
|
-
].filter(Boolean).join(" ");
|
|
761
|
-
return /* @__PURE__ */ _.jsxs(
|
|
762
|
-
"button",
|
|
763
|
-
{
|
|
764
|
-
type: "button",
|
|
765
|
-
className: b,
|
|
766
|
-
disabled: a || i,
|
|
767
|
-
onClick: o,
|
|
768
|
-
"data-testid": E,
|
|
769
|
-
...R,
|
|
770
|
-
children: [
|
|
771
|
-
i && /* @__PURE__ */ _.jsx(Wr, { className: Se.spinner, size: 12 }),
|
|
772
|
-
t
|
|
773
|
-
]
|
|
774
|
-
}
|
|
775
|
-
);
|
|
776
|
-
}, Yr = "_secondaryButton_1s7ft_1", Mr = "_secondaryButtonDisabled_1s7ft_33", Qe = {
|
|
777
|
-
secondaryButton: Yr,
|
|
778
|
-
secondaryButtonDisabled: Mr
|
|
779
|
-
}, gt = ({
|
|
780
|
-
children: t,
|
|
781
|
-
disabled: a = !1,
|
|
782
|
-
onClick: i,
|
|
783
|
-
className: o = "",
|
|
784
|
-
"data-testid": p,
|
|
785
|
-
...E
|
|
786
|
-
}) => {
|
|
787
|
-
const R = [
|
|
788
|
-
Qe.secondaryButton,
|
|
789
|
-
a ? Qe.secondaryButtonDisabled : "",
|
|
790
|
-
o
|
|
791
|
-
].filter(Boolean).join(" ");
|
|
792
|
-
return /* @__PURE__ */ _.jsx(
|
|
793
|
-
"button",
|
|
794
|
-
{
|
|
795
|
-
type: "button",
|
|
796
|
-
className: R,
|
|
797
|
-
disabled: a,
|
|
798
|
-
onClick: i,
|
|
799
|
-
"data-testid": p,
|
|
800
|
-
...E,
|
|
801
|
-
children: t
|
|
802
|
-
}
|
|
803
|
-
);
|
|
804
|
-
}, Vr = "_tabsContainer_m3c4e_1", zr = "_tabsHeader_m3c4e_7", Ur = "_tabItem_m3c4e_13", Hr = "_tabContent_m3c4e_29", qr = "_tabLabel_m3c4e_51", Kr = "_tabLine_m3c4e_61", Jr = "_active_m3c4e_68", Gr = "_inactive_m3c4e_76", Xr = "_tabPanels_m3c4e_84", $ = {
|
|
805
|
-
tabsContainer: Vr,
|
|
806
|
-
tabsHeader: zr,
|
|
807
|
-
tabItem: Ur,
|
|
808
|
-
tabContent: Hr,
|
|
809
|
-
tabLabel: qr,
|
|
810
|
-
tabLine: Kr,
|
|
811
|
-
active: Jr,
|
|
812
|
-
inactive: Gr,
|
|
813
|
-
tabPanels: Xr
|
|
814
|
-
}, Et = ({
|
|
815
|
-
tabs: t,
|
|
816
|
-
activeTabId: a,
|
|
817
|
-
onTabChange: i,
|
|
818
|
-
className: o = "",
|
|
819
|
-
"data-testid": p,
|
|
820
|
-
...E
|
|
821
|
-
}) => {
|
|
822
|
-
var b;
|
|
823
|
-
const R = [$.tabsContainer, o].filter(Boolean).join(" ");
|
|
824
|
-
return /* @__PURE__ */ _.jsxs("div", { className: R, "data-testid": p, ...E, children: [
|
|
825
|
-
/* @__PURE__ */ _.jsx("div", { className: $.tabsHeader, children: t.map((f) => {
|
|
826
|
-
const S = f.id === a, O = [
|
|
827
|
-
$.tabItem,
|
|
828
|
-
S ? $.active : $.inactive
|
|
829
|
-
].filter(Boolean).join(" ");
|
|
830
|
-
return /* @__PURE__ */ _.jsxs(
|
|
831
|
-
"button",
|
|
832
|
-
{
|
|
833
|
-
type: "button",
|
|
834
|
-
className: O,
|
|
835
|
-
onClick: () => i(f.id),
|
|
836
|
-
"data-testid": `${p}-tab-${f.id}`,
|
|
837
|
-
children: [
|
|
838
|
-
/* @__PURE__ */ _.jsx("div", { className: $.tabContent, children: /* @__PURE__ */ _.jsx("span", { className: $.tabLabel, children: f.label }) }),
|
|
839
|
-
/* @__PURE__ */ _.jsx("div", { className: $.tabLine })
|
|
840
|
-
]
|
|
841
|
-
},
|
|
842
|
-
f.id
|
|
843
|
-
);
|
|
844
|
-
}) }),
|
|
845
|
-
/* @__PURE__ */ _.jsx("div", { className: $.tabPanels, children: (b = t.find((f) => f.id === a)) == null ? void 0 : b.content })
|
|
846
|
-
] });
|
|
847
|
-
};
|
|
848
|
-
function Zr(t) {
|
|
849
|
-
return ke({ attr: { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "polyline", attr: { points: "6 9 12 15 18 9" }, child: [] }] })(t);
|
|
850
|
-
}
|
|
851
|
-
function Qr(t) {
|
|
852
|
-
return ke({ attr: { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "circle", attr: { cx: "11", cy: "11", r: "8" }, child: [] }, { tag: "line", attr: { x1: "21", y1: "21", x2: "16.65", y2: "16.65" }, child: [] }] })(t);
|
|
853
|
-
}
|
|
854
|
-
const et = "_root_28cvi_1", rt = "_label_28cvi_8", tt = "_required_28cvi_16", nt = "_trigger_28cvi_21", at = "_triggerDisabled_28cvi_43", it = "_value_28cvi_49", ot = "_placeholder_28cvi_57", st = "_chevron_28cvi_61", lt = "_open_28cvi_68", ct = "_panel_28cvi_72", ut = "_filterWrapper_28cvi_85", ft = "_filterInput_28cvi_91", dt = "_filterIcon_28cvi_109", vt = "_list_28cvi_120", pt = "_option_28cvi_128", _t = "_optionHighlighted_28cvi_139", bt = "_empty_28cvi_143", mt = "_disabled_28cvi_150", j = {
|
|
855
|
-
root: et,
|
|
856
|
-
label: rt,
|
|
857
|
-
required: tt,
|
|
858
|
-
trigger: nt,
|
|
859
|
-
triggerDisabled: at,
|
|
860
|
-
value: it,
|
|
861
|
-
placeholder: ot,
|
|
862
|
-
chevron: st,
|
|
863
|
-
open: lt,
|
|
864
|
-
panel: ct,
|
|
865
|
-
filterWrapper: ut,
|
|
866
|
-
filterInput: ft,
|
|
867
|
-
filterIcon: dt,
|
|
868
|
-
list: vt,
|
|
869
|
-
option: pt,
|
|
870
|
-
optionHighlighted: _t,
|
|
871
|
-
empty: bt,
|
|
872
|
-
disabled: mt
|
|
873
|
-
}, Te = (t, a) => {
|
|
874
|
-
const o = t[a];
|
|
875
|
-
return o != null ? String(o) : "";
|
|
876
|
-
}, me = (t, a) => t[a], Rt = ({
|
|
877
|
-
value: t,
|
|
878
|
-
onChange: a,
|
|
879
|
-
options: i,
|
|
880
|
-
optionLabel: o = "label",
|
|
881
|
-
optionValue: p = "value",
|
|
882
|
-
placeholder: E = "Select",
|
|
883
|
-
filter: R = !1,
|
|
884
|
-
disabled: b = !1,
|
|
885
|
-
required: f = !1,
|
|
886
|
-
label: S,
|
|
887
|
-
inputId: O,
|
|
888
|
-
className: k = "",
|
|
889
|
-
panelClassName: N = "",
|
|
890
|
-
"data-testid": w
|
|
891
|
-
}) => {
|
|
892
|
-
const [x, W] = Pe(!1), [ee, F] = Pe(""), [y, Y] = Pe(0), q = pe(null), ge = pe(null), re = pe(null), te = pe(null), ne = i.find(
|
|
893
|
-
(s) => me(s, p) === t
|
|
894
|
-
), ae = ne ? Te(ne, o) : "", I = R ? i.filter(
|
|
895
|
-
(s) => Te(s, o).toLowerCase().includes(ee.toLowerCase())
|
|
896
|
-
) : i;
|
|
897
|
-
_e(() => {
|
|
898
|
-
x && R && (F(""), Y(0), setTimeout(() => {
|
|
899
|
-
var s;
|
|
900
|
-
return (s = re.current) == null ? void 0 : s.focus();
|
|
901
|
-
}, 0));
|
|
902
|
-
}, [x, R]), _e(() => {
|
|
903
|
-
if (!x) return;
|
|
904
|
-
const s = I.findIndex(
|
|
905
|
-
(h) => me(h, p) === t
|
|
906
|
-
);
|
|
907
|
-
Y(s >= 0 ? s : 0);
|
|
908
|
-
}, [x, t, I, p]), _e(() => {
|
|
909
|
-
const s = te.current;
|
|
910
|
-
s != null && s.scrollIntoView && typeof s.scrollIntoView == "function" && s.scrollIntoView({ block: "nearest" });
|
|
911
|
-
}, [y]), _e(() => {
|
|
912
|
-
if (!x) return;
|
|
913
|
-
const s = (h) => {
|
|
914
|
-
q.current && !q.current.contains(h.target) && W(!1);
|
|
915
|
-
};
|
|
916
|
-
return document.addEventListener("mousedown", s), () => document.removeEventListener("mousedown", s);
|
|
917
|
-
}, [x]);
|
|
918
|
-
const ie = () => {
|
|
919
|
-
b || W((s) => !s);
|
|
920
|
-
}, D = (s, h) => {
|
|
921
|
-
const A = me(s, p);
|
|
922
|
-
a == null || a({
|
|
923
|
-
value: A ?? null,
|
|
924
|
-
originalEvent: h
|
|
925
|
-
}), W(!1);
|
|
926
|
-
}, B = (s) => {
|
|
927
|
-
if (!x) {
|
|
928
|
-
(s.key === "Enter" || s.key === " " || s.key === "ArrowDown") && (s.preventDefault(), W(!0));
|
|
929
|
-
return;
|
|
930
|
-
}
|
|
931
|
-
if (s.key === "Escape") {
|
|
932
|
-
s.preventDefault(), W(!1);
|
|
933
|
-
return;
|
|
934
|
-
}
|
|
935
|
-
if (s.key === "ArrowDown") {
|
|
936
|
-
s.preventDefault(), Y((h) => h < I.length - 1 ? h + 1 : h);
|
|
937
|
-
return;
|
|
938
|
-
}
|
|
939
|
-
if (s.key === "ArrowUp") {
|
|
940
|
-
s.preventDefault(), Y((h) => h > 0 ? h - 1 : 0);
|
|
941
|
-
return;
|
|
942
|
-
}
|
|
943
|
-
s.key === "Enter" && I[y] && (s.preventDefault(), D(
|
|
944
|
-
I[y],
|
|
945
|
-
s
|
|
946
|
-
));
|
|
947
|
-
}, M = [
|
|
948
|
-
j.root,
|
|
949
|
-
b ? j.disabled : "",
|
|
950
|
-
x ? j.open : "",
|
|
951
|
-
k
|
|
952
|
-
].filter(Boolean).join(" "), oe = [
|
|
953
|
-
j.trigger,
|
|
954
|
-
b ? j.triggerDisabled : ""
|
|
955
|
-
].filter(Boolean).join(" "), se = [j.panel, N].filter(Boolean).join(" "), z = O ?? `dropdown-${Math.random().toString(36).slice(2, 9)}`, K = `${z}-panel`;
|
|
956
|
-
return /* @__PURE__ */ _.jsxs("div", { className: M, ref: q, "data-testid": w, children: [
|
|
957
|
-
S != null && /* @__PURE__ */ _.jsxs("label", { htmlFor: z, className: j.label, children: [
|
|
958
|
-
S,
|
|
959
|
-
f && /* @__PURE__ */ _.jsx("span", { className: j.required, children: "*" })
|
|
960
|
-
] }),
|
|
961
|
-
/* @__PURE__ */ _.jsxs(
|
|
962
|
-
"div",
|
|
963
|
-
{
|
|
964
|
-
id: z,
|
|
965
|
-
role: "combobox",
|
|
966
|
-
"aria-expanded": x,
|
|
967
|
-
"aria-haspopup": "listbox",
|
|
968
|
-
"aria-controls": x ? K : void 0,
|
|
969
|
-
"aria-disabled": b,
|
|
970
|
-
"aria-label": typeof S == "string" ? S : void 0,
|
|
971
|
-
tabIndex: b ? -1 : 0,
|
|
972
|
-
className: oe,
|
|
973
|
-
onClick: ie,
|
|
974
|
-
onKeyDown: B,
|
|
975
|
-
"data-testid": w ? `${w}-trigger` : void 0,
|
|
976
|
-
children: [
|
|
977
|
-
/* @__PURE__ */ _.jsx("span", { className: j.value, children: ae || /* @__PURE__ */ _.jsx("span", { className: j.placeholder, children: E }) }),
|
|
978
|
-
/* @__PURE__ */ _.jsx(Zr, { className: j.chevron, "aria-hidden": !0 })
|
|
979
|
-
]
|
|
980
|
-
}
|
|
981
|
-
),
|
|
982
|
-
x && /* @__PURE__ */ _.jsxs(
|
|
983
|
-
"div",
|
|
984
|
-
{
|
|
985
|
-
ref: ge,
|
|
986
|
-
id: K,
|
|
987
|
-
className: se,
|
|
988
|
-
role: "presentation",
|
|
989
|
-
"data-testid": w ? `${w}-panel` : void 0,
|
|
990
|
-
children: [
|
|
991
|
-
R && /* @__PURE__ */ _.jsxs("div", { className: j.filterWrapper, children: [
|
|
992
|
-
/* @__PURE__ */ _.jsx(
|
|
993
|
-
"input",
|
|
994
|
-
{
|
|
995
|
-
ref: re,
|
|
996
|
-
type: "text",
|
|
997
|
-
className: j.filterInput,
|
|
998
|
-
value: ee,
|
|
999
|
-
onChange: (s) => {
|
|
1000
|
-
F(s.target.value), Y(0);
|
|
1001
|
-
},
|
|
1002
|
-
onKeyDown: (s) => {
|
|
1003
|
-
s.key === "Escape" && W(!1), s.stopPropagation();
|
|
1004
|
-
},
|
|
1005
|
-
placeholder: "Search...",
|
|
1006
|
-
"aria-label": "Filter options",
|
|
1007
|
-
title: "Filter options",
|
|
1008
|
-
"data-testid": w ? `${w}-filter` : void 0
|
|
1009
|
-
}
|
|
1010
|
-
),
|
|
1011
|
-
/* @__PURE__ */ _.jsx(Qr, { className: j.filterIcon, "aria-hidden": !0 })
|
|
1012
|
-
] }),
|
|
1013
|
-
/* @__PURE__ */ _.jsx("ul", { className: j.list, role: "listbox", "aria-label": "Options", children: I.length === 0 ? /* @__PURE__ */ _.jsx("li", { className: j.empty, children: "No results" }) : I.map((s, h) => {
|
|
1014
|
-
const A = me(s, p), le = Te(s, o), Ee = t === A, ce = h === y, J = A != null ? String(A) : `option-${h}`;
|
|
1015
|
-
return /* @__PURE__ */ _.jsx(
|
|
1016
|
-
"li",
|
|
1017
|
-
{
|
|
1018
|
-
ref: ce ? te : void 0,
|
|
1019
|
-
role: "option",
|
|
1020
|
-
"aria-selected": Ee,
|
|
1021
|
-
className: [
|
|
1022
|
-
j.option,
|
|
1023
|
-
ce ? j.optionHighlighted : ""
|
|
1024
|
-
].filter(Boolean).join(" "),
|
|
1025
|
-
onMouseEnter: () => Y(h),
|
|
1026
|
-
onClick: (G) => D(s, G),
|
|
1027
|
-
"data-testid": w ? `${w}-option-${h}` : void 0,
|
|
1028
|
-
children: le
|
|
1029
|
-
},
|
|
1030
|
-
J
|
|
1031
|
-
);
|
|
1032
|
-
}) })
|
|
1033
|
-
]
|
|
1034
|
-
}
|
|
1035
|
-
)
|
|
1036
|
-
] });
|
|
1037
|
-
};
|
|
1038
|
-
export {
|
|
1039
|
-
Rt as Dropdown,
|
|
1040
|
-
ht as PrimaryButton,
|
|
1041
|
-
gt as SecondaryButton,
|
|
1042
|
-
Et as Tabs
|
|
1043
|
-
};
|