@emporix/component-library 1.4.3 → 1.5.0
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 +82 -0
- package/dist/components/accordion/Accordion.d.ts +71 -0
- package/dist/components/accordion/Accordion.d.ts.map +1 -0
- package/dist/components/accordion/AccordionTab.d.ts +100 -0
- package/dist/components/accordion/AccordionTab.d.ts.map +1 -0
- package/dist/components/dropdown/Dropdown.d.ts.map +1 -1
- package/dist/components/input/InputText.d.ts.map +1 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.es.js +833 -1052
- package/dist/index.umd.js +7 -15
- package/dist/style.css +1 -1
- package/package.json +31 -32
package/dist/index.es.js
CHANGED
|
@@ -1,1292 +1,1073 @@
|
|
|
1
|
-
import
|
|
2
|
-
var
|
|
1
|
+
import Y, { useState as ce, useRef as le, useMemo as ke, useEffect as de, useId as we } from "react";
|
|
2
|
+
var ve = { exports: {} }, fe = {};
|
|
3
3
|
/**
|
|
4
4
|
* @license React
|
|
5
|
-
* react-jsx-runtime.production.
|
|
5
|
+
* react-jsx-runtime.production.js
|
|
6
6
|
*
|
|
7
|
-
* Copyright (c)
|
|
7
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
8
8
|
*
|
|
9
9
|
* This source code is licensed under the MIT license found in the
|
|
10
10
|
* LICENSE file in the root directory of this source tree.
|
|
11
11
|
*/
|
|
12
|
-
var
|
|
13
|
-
function
|
|
14
|
-
if (
|
|
15
|
-
|
|
16
|
-
var
|
|
17
|
-
function
|
|
18
|
-
var
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
12
|
+
var Ee;
|
|
13
|
+
function qe() {
|
|
14
|
+
if (Ee) return fe;
|
|
15
|
+
Ee = 1;
|
|
16
|
+
var e = Symbol.for("react.transitional.element"), r = Symbol.for("react.fragment");
|
|
17
|
+
function n(o, a, c) {
|
|
18
|
+
var u = null;
|
|
19
|
+
if (c !== void 0 && (u = "" + c), a.key !== void 0 && (u = "" + a.key), "key" in a) {
|
|
20
|
+
c = {};
|
|
21
|
+
for (var g in a)
|
|
22
|
+
g !== "key" && (c[g] = a[g]);
|
|
23
|
+
} else c = a;
|
|
24
|
+
return a = c.ref, {
|
|
25
|
+
$$typeof: e,
|
|
26
|
+
type: o,
|
|
27
|
+
key: u,
|
|
28
|
+
ref: a !== void 0 ? a : null,
|
|
29
|
+
props: c
|
|
30
|
+
};
|
|
23
31
|
}
|
|
24
|
-
return
|
|
32
|
+
return fe.Fragment = r, fe.jsx = n, fe.jsxs = n, fe;
|
|
25
33
|
}
|
|
26
|
-
var
|
|
34
|
+
var pe = {};
|
|
27
35
|
/**
|
|
28
36
|
* @license React
|
|
29
37
|
* react-jsx-runtime.development.js
|
|
30
38
|
*
|
|
31
|
-
* Copyright (c)
|
|
39
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
32
40
|
*
|
|
33
41
|
* This source code is licensed under the MIT license found in the
|
|
34
42
|
* LICENSE file in the root directory of this source tree.
|
|
35
43
|
*/
|
|
36
|
-
var
|
|
37
|
-
function
|
|
38
|
-
return
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
if (
|
|
42
|
-
return null;
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
var P = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
47
|
-
function d(e) {
|
|
48
|
-
{
|
|
49
|
-
for (var r = arguments.length, i = new Array(r > 1 ? r - 1 : 0), l = 1; l < r; l++)
|
|
50
|
-
i[l - 1] = arguments[l];
|
|
51
|
-
N("error", e, i);
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
function N(e, r, i) {
|
|
55
|
-
{
|
|
56
|
-
var l = P.ReactDebugCurrentFrame, g = l.getStackAddendum();
|
|
57
|
-
g !== "" && (r += "%s", i = i.concat([g]));
|
|
58
|
-
var x = i.map(function(p) {
|
|
59
|
-
return String(p);
|
|
60
|
-
});
|
|
61
|
-
x.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, x);
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
var W = !1, j = !1, ee = !1, M = !1, Oe = !1, ie;
|
|
65
|
-
ie = Symbol.for("react.module.reference");
|
|
66
|
-
function Ee(e) {
|
|
67
|
-
return !!(typeof e == "string" || typeof e == "function" || e === s || e === b || Oe || e === u || e === _ || e === h || M || e === q || W || j || ee || typeof e == "object" && e !== null && (e.$$typeof === D || e.$$typeof === T || e.$$typeof === m || e.$$typeof === C || e.$$typeof === c || // 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 === ie || e.getModuleId !== void 0));
|
|
72
|
-
}
|
|
73
|
-
function oe(e, r, i) {
|
|
74
|
-
var l = e.displayName;
|
|
75
|
-
if (l)
|
|
76
|
-
return l;
|
|
77
|
-
var g = r.displayName || r.name || "";
|
|
78
|
-
return g !== "" ? i + "(" + g + ")" : i;
|
|
79
|
-
}
|
|
80
|
-
function H(e) {
|
|
81
|
-
return e.displayName || "Context";
|
|
82
|
-
}
|
|
83
|
-
function V(e) {
|
|
84
|
-
if (e == null)
|
|
85
|
-
return null;
|
|
86
|
-
if (typeof e.tag == "number" && d("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 s:
|
|
44
|
+
var Ne;
|
|
45
|
+
function Fe() {
|
|
46
|
+
return Ne || (Ne = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
47
|
+
function e(t) {
|
|
48
|
+
if (t == null) return null;
|
|
49
|
+
if (typeof t == "function")
|
|
50
|
+
return t.$$typeof === Z ? null : t.displayName || t.name || null;
|
|
51
|
+
if (typeof t == "string") return t;
|
|
52
|
+
switch (t) {
|
|
53
|
+
case v:
|
|
92
54
|
return "Fragment";
|
|
93
|
-
case
|
|
94
|
-
return "Portal";
|
|
95
|
-
case b:
|
|
55
|
+
case k:
|
|
96
56
|
return "Profiler";
|
|
97
|
-
case
|
|
57
|
+
case O:
|
|
98
58
|
return "StrictMode";
|
|
99
|
-
case
|
|
59
|
+
case T:
|
|
100
60
|
return "Suspense";
|
|
101
|
-
case
|
|
61
|
+
case I:
|
|
102
62
|
return "SuspenseList";
|
|
63
|
+
case oe:
|
|
64
|
+
return "Activity";
|
|
103
65
|
}
|
|
104
|
-
if (typeof
|
|
105
|
-
switch (
|
|
66
|
+
if (typeof t == "object")
|
|
67
|
+
switch (typeof t.tag == "number" && console.error(
|
|
68
|
+
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
69
|
+
), t.$$typeof) {
|
|
70
|
+
case b:
|
|
71
|
+
return "Portal";
|
|
106
72
|
case C:
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
case D: {
|
|
118
|
-
var g = e, x = g._payload, p = g._init;
|
|
73
|
+
return t.displayName || "Context";
|
|
74
|
+
case P:
|
|
75
|
+
return (t._context.displayName || "Context") + ".Consumer";
|
|
76
|
+
case f:
|
|
77
|
+
var l = t.render;
|
|
78
|
+
return t = t.displayName, t || (t = l.displayName || l.name || "", t = t !== "" ? "ForwardRef(" + t + ")" : "ForwardRef"), t;
|
|
79
|
+
case ne:
|
|
80
|
+
return l = t.displayName || null, l !== null ? l : e(t.type) || "Memo";
|
|
81
|
+
case M:
|
|
82
|
+
l = t._payload, t = t._init;
|
|
119
83
|
try {
|
|
120
|
-
return
|
|
84
|
+
return e(t(l));
|
|
121
85
|
} catch {
|
|
122
|
-
return null;
|
|
123
86
|
}
|
|
124
|
-
}
|
|
125
87
|
}
|
|
126
88
|
return null;
|
|
127
89
|
}
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
}
|
|
131
|
-
ke.__reactDisabledLog = !0;
|
|
132
|
-
function Te() {
|
|
133
|
-
{
|
|
134
|
-
if (J === 0) {
|
|
135
|
-
Pe = console.log, ye = console.info, Se = console.warn, me = console.error, se = console.group, F = console.groupCollapsed, le = console.groupEnd;
|
|
136
|
-
var e = {
|
|
137
|
-
configurable: !0,
|
|
138
|
-
enumerable: !0,
|
|
139
|
-
value: ke,
|
|
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
|
-
J++;
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
function ge() {
|
|
156
|
-
{
|
|
157
|
-
if (J--, J === 0) {
|
|
158
|
-
var e = {
|
|
159
|
-
configurable: !0,
|
|
160
|
-
enumerable: !0,
|
|
161
|
-
writable: !0
|
|
162
|
-
};
|
|
163
|
-
Object.defineProperties(console, {
|
|
164
|
-
log: B({}, e, {
|
|
165
|
-
value: Pe
|
|
166
|
-
}),
|
|
167
|
-
info: B({}, e, {
|
|
168
|
-
value: ye
|
|
169
|
-
}),
|
|
170
|
-
warn: B({}, e, {
|
|
171
|
-
value: Se
|
|
172
|
-
}),
|
|
173
|
-
error: B({}, e, {
|
|
174
|
-
value: me
|
|
175
|
-
}),
|
|
176
|
-
group: B({}, e, {
|
|
177
|
-
value: se
|
|
178
|
-
}),
|
|
179
|
-
groupCollapsed: B({}, e, {
|
|
180
|
-
value: F
|
|
181
|
-
}),
|
|
182
|
-
groupEnd: B({}, e, {
|
|
183
|
-
value: le
|
|
184
|
-
})
|
|
185
|
-
});
|
|
186
|
-
}
|
|
187
|
-
J < 0 && d("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
var ce = P.ReactCurrentDispatcher, be;
|
|
191
|
-
function ue(e, r, i) {
|
|
192
|
-
{
|
|
193
|
-
if (be === void 0)
|
|
194
|
-
try {
|
|
195
|
-
throw Error();
|
|
196
|
-
} catch (g) {
|
|
197
|
-
var l = g.stack.trim().match(/\n( *(at )?)/);
|
|
198
|
-
be = l && l[1] || "";
|
|
199
|
-
}
|
|
200
|
-
return `
|
|
201
|
-
` + be + e;
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
var he = !1, G;
|
|
205
|
-
{
|
|
206
|
-
var xe = typeof WeakMap == "function" ? WeakMap : Map;
|
|
207
|
-
G = new xe();
|
|
90
|
+
function r(t) {
|
|
91
|
+
return "" + t;
|
|
208
92
|
}
|
|
209
|
-
function
|
|
210
|
-
if (!e || he)
|
|
211
|
-
return "";
|
|
212
|
-
{
|
|
213
|
-
var i = G.get(e);
|
|
214
|
-
if (i !== void 0)
|
|
215
|
-
return i;
|
|
216
|
-
}
|
|
217
|
-
var l;
|
|
218
|
-
he = !0;
|
|
219
|
-
var g = Error.prepareStackTrace;
|
|
220
|
-
Error.prepareStackTrace = void 0;
|
|
221
|
-
var x;
|
|
222
|
-
x = ce.current, ce.current = null, Te();
|
|
93
|
+
function n(t) {
|
|
223
94
|
try {
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
if (Object.defineProperty(p.prototype, "props", {
|
|
229
|
-
set: function() {
|
|
230
|
-
throw Error();
|
|
231
|
-
}
|
|
232
|
-
}), typeof Reflect == "object" && Reflect.construct) {
|
|
233
|
-
try {
|
|
234
|
-
Reflect.construct(p, []);
|
|
235
|
-
} catch (L) {
|
|
236
|
-
l = L;
|
|
237
|
-
}
|
|
238
|
-
Reflect.construct(e, [], p);
|
|
239
|
-
} else {
|
|
240
|
-
try {
|
|
241
|
-
p.call();
|
|
242
|
-
} catch (L) {
|
|
243
|
-
l = L;
|
|
244
|
-
}
|
|
245
|
-
e.call(p.prototype);
|
|
246
|
-
}
|
|
247
|
-
} else {
|
|
248
|
-
try {
|
|
249
|
-
throw Error();
|
|
250
|
-
} catch (L) {
|
|
251
|
-
l = L;
|
|
252
|
-
}
|
|
253
|
-
e();
|
|
254
|
-
}
|
|
255
|
-
} catch (L) {
|
|
256
|
-
if (L && l && typeof L.stack == "string") {
|
|
257
|
-
for (var f = L.stack.split(`
|
|
258
|
-
`), $ = l.stack.split(`
|
|
259
|
-
`), S = f.length - 1, k = $.length - 1; S >= 1 && k >= 0 && f[S] !== $[k]; )
|
|
260
|
-
k--;
|
|
261
|
-
for (; S >= 1 && k >= 0; S--, k--)
|
|
262
|
-
if (f[S] !== $[k]) {
|
|
263
|
-
if (S !== 1 || k !== 1)
|
|
264
|
-
do
|
|
265
|
-
if (S--, k--, k < 0 || f[S] !== $[k]) {
|
|
266
|
-
var Y = `
|
|
267
|
-
` + f[S].replace(" at new ", " at ");
|
|
268
|
-
return e.displayName && Y.includes("<anonymous>") && (Y = Y.replace("<anonymous>", e.displayName)), typeof e == "function" && G.set(e, Y), Y;
|
|
269
|
-
}
|
|
270
|
-
while (S >= 1 && k >= 0);
|
|
271
|
-
break;
|
|
272
|
-
}
|
|
273
|
-
}
|
|
274
|
-
} finally {
|
|
275
|
-
he = !1, ce.current = x, ge(), Error.prepareStackTrace = g;
|
|
276
|
-
}
|
|
277
|
-
var pe = e ? e.displayName || e.name : "", te = pe ? ue(pe) : "";
|
|
278
|
-
return typeof e == "function" && G.set(e, te), te;
|
|
279
|
-
}
|
|
280
|
-
function y(e, r, i) {
|
|
281
|
-
return o(e, !1);
|
|
282
|
-
}
|
|
283
|
-
function R(e) {
|
|
284
|
-
var r = e.prototype;
|
|
285
|
-
return !!(r && r.isReactComponent);
|
|
286
|
-
}
|
|
287
|
-
function O(e, r, i) {
|
|
288
|
-
if (e == null)
|
|
289
|
-
return "";
|
|
290
|
-
if (typeof e == "function")
|
|
291
|
-
return o(e, R(e));
|
|
292
|
-
if (typeof e == "string")
|
|
293
|
-
return ue(e);
|
|
294
|
-
switch (e) {
|
|
295
|
-
case _:
|
|
296
|
-
return ue("Suspense");
|
|
297
|
-
case h:
|
|
298
|
-
return ue("SuspenseList");
|
|
299
|
-
}
|
|
300
|
-
if (typeof e == "object")
|
|
301
|
-
switch (e.$$typeof) {
|
|
302
|
-
case c:
|
|
303
|
-
return y(e.render);
|
|
304
|
-
case T:
|
|
305
|
-
return O(e.type, r, i);
|
|
306
|
-
case D: {
|
|
307
|
-
var l = e, g = l._payload, x = l._init;
|
|
308
|
-
try {
|
|
309
|
-
return O(x(g), r, i);
|
|
310
|
-
} catch {
|
|
311
|
-
}
|
|
312
|
-
}
|
|
313
|
-
}
|
|
314
|
-
return "";
|
|
315
|
-
}
|
|
316
|
-
var A = Object.prototype.hasOwnProperty, X = {}, U = P.ReactDebugCurrentFrame;
|
|
317
|
-
function fe(e) {
|
|
318
|
-
if (e) {
|
|
319
|
-
var r = e._owner, i = O(e.type, e._source, r ? r.type : null);
|
|
320
|
-
U.setExtraStackFrame(i);
|
|
321
|
-
} else
|
|
322
|
-
U.setExtraStackFrame(null);
|
|
323
|
-
}
|
|
324
|
-
function $e(e, r, i, l, g) {
|
|
325
|
-
{
|
|
326
|
-
var x = Function.call.bind(A);
|
|
327
|
-
for (var p in e)
|
|
328
|
-
if (x(e, p)) {
|
|
329
|
-
var f = void 0;
|
|
330
|
-
try {
|
|
331
|
-
if (typeof e[p] != "function") {
|
|
332
|
-
var $ = Error((l || "React class") + ": " + i + " type `" + p + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[p] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
333
|
-
throw $.name = "Invariant Violation", $;
|
|
334
|
-
}
|
|
335
|
-
f = e[p](r, p, l, i, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
336
|
-
} catch (S) {
|
|
337
|
-
f = S;
|
|
338
|
-
}
|
|
339
|
-
f && !(f instanceof Error) && (fe(g), d("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", l || "React class", i, p, typeof f), fe(null)), f instanceof Error && !(f.message in X) && (X[f.message] = !0, fe(g), d("Failed %s type: %s", i, f.message), fe(null));
|
|
340
|
-
}
|
|
95
|
+
r(t);
|
|
96
|
+
var l = !1;
|
|
97
|
+
} catch {
|
|
98
|
+
l = !0;
|
|
341
99
|
}
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
return i;
|
|
100
|
+
if (l) {
|
|
101
|
+
l = console;
|
|
102
|
+
var h = l.error, x = typeof Symbol == "function" && Symbol.toStringTag && t[Symbol.toStringTag] || t.constructor.name || "Object";
|
|
103
|
+
return h.call(
|
|
104
|
+
l,
|
|
105
|
+
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
106
|
+
x
|
|
107
|
+
), r(t);
|
|
351
108
|
}
|
|
352
109
|
}
|
|
353
|
-
function
|
|
110
|
+
function o(t) {
|
|
111
|
+
if (t === v) return "<>";
|
|
112
|
+
if (typeof t == "object" && t !== null && t.$$typeof === M)
|
|
113
|
+
return "<...>";
|
|
354
114
|
try {
|
|
355
|
-
|
|
115
|
+
var l = e(t);
|
|
116
|
+
return l ? "<" + l + ">" : "<...>";
|
|
356
117
|
} catch {
|
|
357
|
-
return
|
|
118
|
+
return "<...>";
|
|
358
119
|
}
|
|
359
120
|
}
|
|
360
|
-
function
|
|
361
|
-
|
|
121
|
+
function a() {
|
|
122
|
+
var t = w.A;
|
|
123
|
+
return t === null ? null : t.getOwner();
|
|
362
124
|
}
|
|
363
|
-
function
|
|
364
|
-
|
|
365
|
-
return d("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", pt(e)), qe(e);
|
|
125
|
+
function c() {
|
|
126
|
+
return Error("react-stack-top-frame");
|
|
366
127
|
}
|
|
367
|
-
|
|
368
|
-
key
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
__source: !0
|
|
372
|
-
}, Ke, He;
|
|
373
|
-
function yt(e) {
|
|
374
|
-
if (A.call(e, "ref")) {
|
|
375
|
-
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
376
|
-
if (r && r.isReactWarning)
|
|
377
|
-
return !1;
|
|
128
|
+
function u(t) {
|
|
129
|
+
if (y.call(t, "key")) {
|
|
130
|
+
var l = Object.getOwnPropertyDescriptor(t, "key").get;
|
|
131
|
+
if (l && l.isReactWarning) return !1;
|
|
378
132
|
}
|
|
379
|
-
return
|
|
133
|
+
return t.key !== void 0;
|
|
380
134
|
}
|
|
381
|
-
function
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
135
|
+
function g(t, l) {
|
|
136
|
+
function h() {
|
|
137
|
+
L || (L = !0, console.error(
|
|
138
|
+
"%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://react.dev/link/special-props)",
|
|
139
|
+
l
|
|
140
|
+
));
|
|
386
141
|
}
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
142
|
+
h.isReactWarning = !0, Object.defineProperty(t, "key", {
|
|
143
|
+
get: h,
|
|
144
|
+
configurable: !0
|
|
145
|
+
});
|
|
391
146
|
}
|
|
392
|
-
function
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
i.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
398
|
-
get: i,
|
|
399
|
-
configurable: !0
|
|
400
|
-
});
|
|
401
|
-
}
|
|
147
|
+
function d() {
|
|
148
|
+
var t = e(this.type);
|
|
149
|
+
return q[t] || (q[t] = !0, console.error(
|
|
150
|
+
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
151
|
+
)), t = this.props.ref, t !== void 0 ? t : null;
|
|
402
152
|
}
|
|
403
|
-
function
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
configurable: !0
|
|
411
|
-
});
|
|
412
|
-
}
|
|
413
|
-
}
|
|
414
|
-
var xt = function(e, r, i, l, g, x, p) {
|
|
415
|
-
var f = {
|
|
416
|
-
// This tag allows us to uniquely identify this as a React Element
|
|
417
|
-
$$typeof: n,
|
|
418
|
-
// Built-in properties that belong on the element
|
|
419
|
-
type: e,
|
|
420
|
-
key: r,
|
|
421
|
-
ref: i,
|
|
422
|
-
props: p,
|
|
423
|
-
// Record the component responsible for creating this element.
|
|
153
|
+
function m(t, l, h, x, z, se) {
|
|
154
|
+
var N = h.ref;
|
|
155
|
+
return t = {
|
|
156
|
+
$$typeof: W,
|
|
157
|
+
type: t,
|
|
158
|
+
key: l,
|
|
159
|
+
props: h,
|
|
424
160
|
_owner: x
|
|
425
|
-
}
|
|
426
|
-
|
|
161
|
+
}, (N !== void 0 ? N : null) !== null ? Object.defineProperty(t, "ref", {
|
|
162
|
+
enumerable: !1,
|
|
163
|
+
get: d
|
|
164
|
+
}) : Object.defineProperty(t, "ref", { enumerable: !1, value: null }), t._store = {}, Object.defineProperty(t._store, "validated", {
|
|
427
165
|
configurable: !1,
|
|
428
166
|
enumerable: !1,
|
|
429
167
|
writable: !0,
|
|
430
|
-
value:
|
|
431
|
-
}), Object.defineProperty(
|
|
168
|
+
value: 0
|
|
169
|
+
}), Object.defineProperty(t, "_debugInfo", {
|
|
432
170
|
configurable: !1,
|
|
433
171
|
enumerable: !1,
|
|
434
|
-
writable: !
|
|
435
|
-
value:
|
|
436
|
-
}), Object.defineProperty(
|
|
172
|
+
writable: !0,
|
|
173
|
+
value: null
|
|
174
|
+
}), Object.defineProperty(t, "_debugStack", {
|
|
437
175
|
configurable: !1,
|
|
438
176
|
enumerable: !1,
|
|
439
|
-
writable: !
|
|
440
|
-
value:
|
|
441
|
-
}), Object.
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
for (x in r)
|
|
448
|
-
A.call(r, x) && !_t.hasOwnProperty(x) && (p[x] = r[x]);
|
|
449
|
-
if (e && e.defaultProps) {
|
|
450
|
-
var S = e.defaultProps;
|
|
451
|
-
for (x in S)
|
|
452
|
-
p[x] === void 0 && (p[x] = S[x]);
|
|
453
|
-
}
|
|
454
|
-
if (f || $) {
|
|
455
|
-
var k = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
456
|
-
f && bt(p, k), $ && ht(p, k);
|
|
457
|
-
}
|
|
458
|
-
return xt(e, f, $, g, l, Ue.current, p);
|
|
459
|
-
}
|
|
460
|
-
}
|
|
461
|
-
var Ae = P.ReactCurrentOwner, Je = P.ReactDebugCurrentFrame;
|
|
462
|
-
function de(e) {
|
|
463
|
-
if (e) {
|
|
464
|
-
var r = e._owner, i = O(e.type, e._source, r ? r.type : null);
|
|
465
|
-
Je.setExtraStackFrame(i);
|
|
466
|
-
} else
|
|
467
|
-
Je.setExtraStackFrame(null);
|
|
468
|
-
}
|
|
469
|
-
var Le;
|
|
470
|
-
Le = !1;
|
|
471
|
-
function We(e) {
|
|
472
|
-
return typeof e == "object" && e !== null && e.$$typeof === n;
|
|
473
|
-
}
|
|
474
|
-
function Ge() {
|
|
475
|
-
{
|
|
476
|
-
if (Ae.current) {
|
|
477
|
-
var e = V(Ae.current.type);
|
|
478
|
-
if (e)
|
|
479
|
-
return `
|
|
480
|
-
|
|
481
|
-
Check the render method of \`` + e + "`.";
|
|
482
|
-
}
|
|
483
|
-
return "";
|
|
484
|
-
}
|
|
485
|
-
}
|
|
486
|
-
function Rt(e) {
|
|
487
|
-
return "";
|
|
488
|
-
}
|
|
489
|
-
var Xe = {};
|
|
490
|
-
function Ct(e) {
|
|
491
|
-
{
|
|
492
|
-
var r = Ge();
|
|
493
|
-
if (!r) {
|
|
494
|
-
var i = typeof e == "string" ? e : e.displayName || e.name;
|
|
495
|
-
i && (r = `
|
|
496
|
-
|
|
497
|
-
Check the top-level render call using <` + i + ">.");
|
|
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 i = Ct(r);
|
|
508
|
-
if (Xe[i])
|
|
509
|
-
return;
|
|
510
|
-
Xe[i] = !0;
|
|
511
|
-
var l = "";
|
|
512
|
-
e && e._owner && e._owner !== Ae.current && (l = " It was passed a child from " + V(e._owner.type) + "."), de(e), d('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', i, l), de(null);
|
|
513
|
-
}
|
|
514
|
-
}
|
|
515
|
-
function Qe(e, r) {
|
|
516
|
-
{
|
|
517
|
-
if (typeof e != "object")
|
|
518
|
-
return;
|
|
519
|
-
if (Fe(e))
|
|
520
|
-
for (var i = 0; i < e.length; i++) {
|
|
521
|
-
var l = e[i];
|
|
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 g = I(e);
|
|
528
|
-
if (typeof g == "function" && g !== e.entries)
|
|
529
|
-
for (var x = g.call(e), p; !(p = x.next()).done; )
|
|
530
|
-
We(p.value) && Ze(p.value, r);
|
|
531
|
-
}
|
|
532
|
-
}
|
|
533
|
-
}
|
|
534
|
-
function wt(e) {
|
|
535
|
-
{
|
|
536
|
-
var r = e.type;
|
|
537
|
-
if (r == null || typeof r == "string")
|
|
538
|
-
return;
|
|
539
|
-
var i;
|
|
540
|
-
if (typeof r == "function")
|
|
541
|
-
i = r.propTypes;
|
|
542
|
-
else if (typeof r == "object" && (r.$$typeof === c || // Note: Memo only checks outer props here.
|
|
543
|
-
// Inner props are checked in the reconciler.
|
|
544
|
-
r.$$typeof === T))
|
|
545
|
-
i = r.propTypes;
|
|
546
|
-
else
|
|
547
|
-
return;
|
|
548
|
-
if (i) {
|
|
549
|
-
var l = V(r);
|
|
550
|
-
$e(i, e.props, "prop", l, e);
|
|
551
|
-
} else if (r.PropTypes !== void 0 && !Le) {
|
|
552
|
-
Le = !0;
|
|
553
|
-
var g = V(r);
|
|
554
|
-
d("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", g || "Unknown");
|
|
555
|
-
}
|
|
556
|
-
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && d("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
557
|
-
}
|
|
558
|
-
}
|
|
559
|
-
function Ot(e) {
|
|
560
|
-
{
|
|
561
|
-
for (var r = Object.keys(e.props), i = 0; i < r.length; i++) {
|
|
562
|
-
var l = r[i];
|
|
563
|
-
if (l !== "children" && l !== "key") {
|
|
564
|
-
de(e), d("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", l), de(null);
|
|
565
|
-
break;
|
|
566
|
-
}
|
|
567
|
-
}
|
|
568
|
-
e.ref !== null && (de(e), d("Invalid attribute `ref` supplied to `React.Fragment`."), de(null));
|
|
569
|
-
}
|
|
177
|
+
writable: !0,
|
|
178
|
+
value: z
|
|
179
|
+
}), Object.defineProperty(t, "_debugTask", {
|
|
180
|
+
configurable: !1,
|
|
181
|
+
enumerable: !1,
|
|
182
|
+
writable: !0,
|
|
183
|
+
value: se
|
|
184
|
+
}), Object.freeze && (Object.freeze(t.props), Object.freeze(t)), t;
|
|
570
185
|
}
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
for (var pe = 0; pe < Y.length; pe++)
|
|
592
|
-
Qe(Y[pe], e);
|
|
593
|
-
Object.freeze && Object.freeze(Y);
|
|
594
|
-
} else
|
|
595
|
-
d("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
|
-
Qe(Y, e);
|
|
598
|
-
}
|
|
599
|
-
if (A.call(r, "key")) {
|
|
600
|
-
var te = V(e), L = Object.keys(r).filter(function(Dt) {
|
|
601
|
-
return Dt !== "key";
|
|
602
|
-
}), Ve = L.length > 0 ? "{key: someKey, " + L.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
603
|
-
if (!et[te + Ve]) {
|
|
604
|
-
var Tt = L.length > 0 ? "{" + L.join(": ..., ") + ": ...}" : "{}";
|
|
605
|
-
d(`A props object containing a "key" prop is being spread into JSX:
|
|
186
|
+
function S(t, l, h, x, z, se) {
|
|
187
|
+
var N = l.children;
|
|
188
|
+
if (N !== void 0)
|
|
189
|
+
if (x)
|
|
190
|
+
if (p(N)) {
|
|
191
|
+
for (x = 0; x < N.length; x++)
|
|
192
|
+
$(N[x]);
|
|
193
|
+
Object.freeze && Object.freeze(N);
|
|
194
|
+
} else
|
|
195
|
+
console.error(
|
|
196
|
+
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
197
|
+
);
|
|
198
|
+
else $(N);
|
|
199
|
+
if (y.call(l, "key")) {
|
|
200
|
+
N = e(t);
|
|
201
|
+
var K = Object.keys(l).filter(function(ge) {
|
|
202
|
+
return ge !== "key";
|
|
203
|
+
});
|
|
204
|
+
x = 0 < K.length ? "{key: someKey, " + K.join(": ..., ") + ": ...}" : "{key: someKey}", G[N + x] || (K = 0 < K.length ? "{" + K.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
205
|
+
`A props object containing a "key" prop is being spread into JSX:
|
|
606
206
|
let props = %s;
|
|
607
207
|
<%s {...props} />
|
|
608
208
|
React keys must be passed directly to JSX without using spread:
|
|
609
209
|
let props = %s;
|
|
610
|
-
<%s key={someKey} {...props} />`,
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
210
|
+
<%s key={someKey} {...props} />`,
|
|
211
|
+
x,
|
|
212
|
+
N,
|
|
213
|
+
K,
|
|
214
|
+
N
|
|
215
|
+
), G[N + x] = !0);
|
|
614
216
|
}
|
|
217
|
+
if (N = null, h !== void 0 && (n(h), N = "" + h), u(l) && (n(l.key), N = "" + l.key), "key" in l) {
|
|
218
|
+
h = {};
|
|
219
|
+
for (var ue in l)
|
|
220
|
+
ue !== "key" && (h[ue] = l[ue]);
|
|
221
|
+
} else h = l;
|
|
222
|
+
return N && g(
|
|
223
|
+
h,
|
|
224
|
+
typeof t == "function" ? t.displayName || t.name || "Unknown" : t
|
|
225
|
+
), m(
|
|
226
|
+
t,
|
|
227
|
+
N,
|
|
228
|
+
h,
|
|
229
|
+
a(),
|
|
230
|
+
z,
|
|
231
|
+
se
|
|
232
|
+
);
|
|
615
233
|
}
|
|
616
|
-
function
|
|
617
|
-
|
|
234
|
+
function $(t) {
|
|
235
|
+
A(t) ? t._store && (t._store.validated = 1) : typeof t == "object" && t !== null && t.$$typeof === M && (t._payload.status === "fulfilled" ? A(t._payload.value) && t._payload.value._store && (t._payload.value._store.validated = 1) : t._store && (t._store.validated = 1));
|
|
618
236
|
}
|
|
619
|
-
function
|
|
620
|
-
return
|
|
237
|
+
function A(t) {
|
|
238
|
+
return typeof t == "object" && t !== null && t.$$typeof === W;
|
|
621
239
|
}
|
|
622
|
-
var
|
|
623
|
-
|
|
624
|
-
|
|
240
|
+
var D = Y, W = Symbol.for("react.transitional.element"), b = Symbol.for("react.portal"), v = Symbol.for("react.fragment"), O = Symbol.for("react.strict_mode"), k = Symbol.for("react.profiler"), P = Symbol.for("react.consumer"), C = Symbol.for("react.context"), f = Symbol.for("react.forward_ref"), T = Symbol.for("react.suspense"), I = Symbol.for("react.suspense_list"), ne = Symbol.for("react.memo"), M = Symbol.for("react.lazy"), oe = Symbol.for("react.activity"), Z = Symbol.for("react.client.reference"), w = D.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, y = Object.prototype.hasOwnProperty, p = Array.isArray, B = console.createTask ? console.createTask : function() {
|
|
241
|
+
return null;
|
|
242
|
+
};
|
|
243
|
+
D = {
|
|
244
|
+
react_stack_bottom_frame: function(t) {
|
|
245
|
+
return t();
|
|
246
|
+
}
|
|
247
|
+
};
|
|
248
|
+
var L, q = {}, H = D.react_stack_bottom_frame.bind(
|
|
249
|
+
D,
|
|
250
|
+
c
|
|
251
|
+
)(), U = B(o(c)), G = {};
|
|
252
|
+
pe.Fragment = v, pe.jsx = function(t, l, h) {
|
|
253
|
+
var x = 1e4 > w.recentlyCreatedOwnerStacks++;
|
|
254
|
+
return S(
|
|
255
|
+
t,
|
|
256
|
+
l,
|
|
257
|
+
h,
|
|
258
|
+
!1,
|
|
259
|
+
x ? Error("react-stack-top-frame") : H,
|
|
260
|
+
x ? B(o(t)) : U
|
|
261
|
+
);
|
|
262
|
+
}, pe.jsxs = function(t, l, h) {
|
|
263
|
+
var x = 1e4 > w.recentlyCreatedOwnerStacks++;
|
|
264
|
+
return S(
|
|
265
|
+
t,
|
|
266
|
+
l,
|
|
267
|
+
h,
|
|
268
|
+
!0,
|
|
269
|
+
x ? Error("react-stack-top-frame") : H,
|
|
270
|
+
x ? B(o(t)) : U
|
|
271
|
+
);
|
|
272
|
+
};
|
|
273
|
+
})()), pe;
|
|
625
274
|
}
|
|
626
|
-
var
|
|
627
|
-
function
|
|
628
|
-
return
|
|
275
|
+
var Oe;
|
|
276
|
+
function We() {
|
|
277
|
+
return Oe || (Oe = 1, process.env.NODE_ENV === "production" ? ve.exports = qe() : ve.exports = Fe()), ve.exports;
|
|
629
278
|
}
|
|
630
|
-
var
|
|
631
|
-
const
|
|
632
|
-
primaryButton:
|
|
633
|
-
primaryButtonDisabled:
|
|
634
|
-
spinner:
|
|
279
|
+
var i = We();
|
|
280
|
+
const ze = "_primaryButton_uyzzr_1", Ve = "_primaryButtonDisabled_uyzzr_34", Ye = "_spinner_uyzzr_42", xe = {
|
|
281
|
+
primaryButton: ze,
|
|
282
|
+
primaryButtonDisabled: Ve,
|
|
283
|
+
spinner: Ye
|
|
635
284
|
};
|
|
636
|
-
var
|
|
285
|
+
var Ae = {
|
|
637
286
|
color: void 0,
|
|
638
287
|
size: void 0,
|
|
639
288
|
className: void 0,
|
|
640
289
|
style: void 0,
|
|
641
290
|
attr: void 0
|
|
642
|
-
},
|
|
643
|
-
function
|
|
644
|
-
if (
|
|
645
|
-
var a =
|
|
291
|
+
}, Ce = Y.createContext && /* @__PURE__ */ Y.createContext(Ae), Me = ["attr", "size", "title"];
|
|
292
|
+
function He(e, r) {
|
|
293
|
+
if (e == null) return {};
|
|
294
|
+
var n, o, a = Ue(e, r);
|
|
646
295
|
if (Object.getOwnPropertySymbols) {
|
|
647
|
-
var
|
|
648
|
-
for (
|
|
649
|
-
s = b[u], !(n.indexOf(s) >= 0) && Object.prototype.propertyIsEnumerable.call(t, s) && (a[s] = t[s]);
|
|
296
|
+
var c = Object.getOwnPropertySymbols(e);
|
|
297
|
+
for (o = 0; o < c.length; o++) n = c[o], r.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (a[n] = e[n]);
|
|
650
298
|
}
|
|
651
299
|
return a;
|
|
652
300
|
}
|
|
653
|
-
function
|
|
654
|
-
if (
|
|
655
|
-
var
|
|
656
|
-
for (var
|
|
657
|
-
if (
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
return a;
|
|
301
|
+
function Ue(e, r) {
|
|
302
|
+
if (e == null) return {};
|
|
303
|
+
var n = {};
|
|
304
|
+
for (var o in e) if ({}.hasOwnProperty.call(e, o)) {
|
|
305
|
+
if (r.indexOf(o) !== -1) continue;
|
|
306
|
+
n[o] = e[o];
|
|
307
|
+
}
|
|
308
|
+
return n;
|
|
662
309
|
}
|
|
663
|
-
function
|
|
664
|
-
return
|
|
665
|
-
for (var
|
|
666
|
-
var
|
|
667
|
-
for (var
|
|
668
|
-
Object.prototype.hasOwnProperty.call(a, s) && (t[s] = a[s]);
|
|
310
|
+
function ye() {
|
|
311
|
+
return ye = Object.assign ? Object.assign.bind() : function(e) {
|
|
312
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
313
|
+
var n = arguments[r];
|
|
314
|
+
for (var o in n) ({}).hasOwnProperty.call(n, o) && (e[o] = n[o]);
|
|
669
315
|
}
|
|
670
|
-
return
|
|
671
|
-
},
|
|
316
|
+
return e;
|
|
317
|
+
}, ye.apply(null, arguments);
|
|
672
318
|
}
|
|
673
|
-
function
|
|
674
|
-
var
|
|
319
|
+
function Re(e, r) {
|
|
320
|
+
var n = Object.keys(e);
|
|
675
321
|
if (Object.getOwnPropertySymbols) {
|
|
676
|
-
var
|
|
677
|
-
|
|
678
|
-
return Object.getOwnPropertyDescriptor(
|
|
679
|
-
})),
|
|
322
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
323
|
+
r && (o = o.filter(function(a) {
|
|
324
|
+
return Object.getOwnPropertyDescriptor(e, a).enumerable;
|
|
325
|
+
})), n.push.apply(n, o);
|
|
680
326
|
}
|
|
681
|
-
return
|
|
327
|
+
return n;
|
|
682
328
|
}
|
|
683
|
-
function
|
|
684
|
-
for (var
|
|
685
|
-
var
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(
|
|
689
|
-
Object.defineProperty(
|
|
329
|
+
function he(e) {
|
|
330
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
331
|
+
var n = arguments[r] != null ? arguments[r] : {};
|
|
332
|
+
r % 2 ? Re(Object(n), !0).forEach(function(o) {
|
|
333
|
+
Je(e, o, n[o]);
|
|
334
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Re(Object(n)).forEach(function(o) {
|
|
335
|
+
Object.defineProperty(e, o, Object.getOwnPropertyDescriptor(n, o));
|
|
690
336
|
});
|
|
691
337
|
}
|
|
692
|
-
return
|
|
338
|
+
return e;
|
|
693
339
|
}
|
|
694
|
-
function
|
|
695
|
-
return
|
|
340
|
+
function Je(e, r, n) {
|
|
341
|
+
return (r = Ze(r)) in e ? Object.defineProperty(e, r, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = n, e;
|
|
696
342
|
}
|
|
697
|
-
function
|
|
698
|
-
var
|
|
699
|
-
return typeof
|
|
343
|
+
function Ze(e) {
|
|
344
|
+
var r = Ge(e, "string");
|
|
345
|
+
return typeof r == "symbol" ? r : r + "";
|
|
700
346
|
}
|
|
701
|
-
function
|
|
702
|
-
if (typeof
|
|
703
|
-
var
|
|
704
|
-
if (
|
|
705
|
-
var
|
|
706
|
-
if (typeof
|
|
347
|
+
function Ge(e, r) {
|
|
348
|
+
if (typeof e != "object" || !e) return e;
|
|
349
|
+
var n = e[Symbol.toPrimitive];
|
|
350
|
+
if (n !== void 0) {
|
|
351
|
+
var o = n.call(e, r);
|
|
352
|
+
if (typeof o != "object") return o;
|
|
707
353
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
708
354
|
}
|
|
709
|
-
return (
|
|
355
|
+
return (r === "string" ? String : Number)(e);
|
|
710
356
|
}
|
|
711
|
-
function
|
|
712
|
-
return
|
|
713
|
-
key:
|
|
714
|
-
},
|
|
357
|
+
function De(e) {
|
|
358
|
+
return e && e.map((r, n) => /* @__PURE__ */ Y.createElement(r.tag, he({
|
|
359
|
+
key: n
|
|
360
|
+
}, r.attr), De(r.child)));
|
|
715
361
|
}
|
|
716
|
-
function
|
|
717
|
-
return (
|
|
718
|
-
attr:
|
|
719
|
-
},
|
|
362
|
+
function _e(e) {
|
|
363
|
+
return (r) => /* @__PURE__ */ Y.createElement(Ke, ye({
|
|
364
|
+
attr: he({}, e.attr)
|
|
365
|
+
}, r), De(e.child));
|
|
720
366
|
}
|
|
721
|
-
function
|
|
722
|
-
var
|
|
367
|
+
function Ke(e) {
|
|
368
|
+
var r = (n) => {
|
|
723
369
|
var {
|
|
724
|
-
attr:
|
|
725
|
-
size:
|
|
726
|
-
title:
|
|
727
|
-
} =
|
|
728
|
-
return
|
|
370
|
+
attr: o,
|
|
371
|
+
size: a,
|
|
372
|
+
title: c
|
|
373
|
+
} = e, u = He(e, Me), g = a || n.size || "1em", d;
|
|
374
|
+
return n.className && (d = n.className), e.className && (d = (d ? d + " " : "") + e.className), /* @__PURE__ */ Y.createElement("svg", ye({
|
|
729
375
|
stroke: "currentColor",
|
|
730
376
|
fill: "currentColor",
|
|
731
377
|
strokeWidth: "0"
|
|
732
|
-
},
|
|
733
|
-
className:
|
|
734
|
-
style:
|
|
735
|
-
color:
|
|
736
|
-
},
|
|
737
|
-
height:
|
|
738
|
-
width:
|
|
378
|
+
}, n.attr, o, u, {
|
|
379
|
+
className: d,
|
|
380
|
+
style: he(he({
|
|
381
|
+
color: e.color || n.color
|
|
382
|
+
}, n.style), e.style),
|
|
383
|
+
height: g,
|
|
384
|
+
width: g,
|
|
739
385
|
xmlns: "http://www.w3.org/2000/svg"
|
|
740
|
-
}),
|
|
386
|
+
}), c && /* @__PURE__ */ Y.createElement("title", null, c), e.children);
|
|
741
387
|
};
|
|
742
|
-
return
|
|
388
|
+
return Ce !== void 0 ? /* @__PURE__ */ Y.createElement(Ce.Consumer, null, (n) => r(n)) : r(Ae);
|
|
743
389
|
}
|
|
744
|
-
function
|
|
745
|
-
return
|
|
390
|
+
function Xe(e) {
|
|
391
|
+
return _e({ 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: [] }] })(e);
|
|
746
392
|
}
|
|
747
|
-
const
|
|
748
|
-
children:
|
|
749
|
-
disabled:
|
|
750
|
-
loading:
|
|
751
|
-
onClick:
|
|
752
|
-
className:
|
|
753
|
-
"data-testid":
|
|
754
|
-
...
|
|
393
|
+
const cr = ({
|
|
394
|
+
children: e,
|
|
395
|
+
disabled: r = !1,
|
|
396
|
+
loading: n = !1,
|
|
397
|
+
onClick: o,
|
|
398
|
+
className: a = "",
|
|
399
|
+
"data-testid": c,
|
|
400
|
+
...u
|
|
755
401
|
}) => {
|
|
756
|
-
const
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
402
|
+
const g = [
|
|
403
|
+
xe.primaryButton,
|
|
404
|
+
r ? xe.primaryButtonDisabled : "",
|
|
405
|
+
a
|
|
760
406
|
].filter(Boolean).join(" ");
|
|
761
|
-
return /* @__PURE__ */
|
|
407
|
+
return /* @__PURE__ */ i.jsxs(
|
|
762
408
|
"button",
|
|
763
409
|
{
|
|
764
410
|
type: "button",
|
|
765
|
-
className:
|
|
766
|
-
disabled:
|
|
767
|
-
onClick:
|
|
768
|
-
"data-testid":
|
|
769
|
-
...
|
|
411
|
+
className: g,
|
|
412
|
+
disabled: r || n,
|
|
413
|
+
onClick: o,
|
|
414
|
+
"data-testid": c,
|
|
415
|
+
...u,
|
|
770
416
|
children: [
|
|
771
|
-
|
|
772
|
-
|
|
417
|
+
n && /* @__PURE__ */ i.jsx(Xe, { className: xe.spinner, size: 12 }),
|
|
418
|
+
e
|
|
773
419
|
]
|
|
774
420
|
}
|
|
775
421
|
);
|
|
776
|
-
},
|
|
777
|
-
secondaryButton:
|
|
778
|
-
secondaryButtonDisabled:
|
|
779
|
-
},
|
|
780
|
-
children:
|
|
781
|
-
disabled:
|
|
782
|
-
onClick:
|
|
783
|
-
className:
|
|
784
|
-
"data-testid":
|
|
785
|
-
...
|
|
422
|
+
}, Qe = "_secondaryButton_1s7ft_1", et = "_secondaryButtonDisabled_1s7ft_33", Se = {
|
|
423
|
+
secondaryButton: Qe,
|
|
424
|
+
secondaryButtonDisabled: et
|
|
425
|
+
}, ur = ({
|
|
426
|
+
children: e,
|
|
427
|
+
disabled: r = !1,
|
|
428
|
+
onClick: n,
|
|
429
|
+
className: o = "",
|
|
430
|
+
"data-testid": a,
|
|
431
|
+
...c
|
|
786
432
|
}) => {
|
|
787
|
-
const
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
433
|
+
const u = [
|
|
434
|
+
Se.secondaryButton,
|
|
435
|
+
r ? Se.secondaryButtonDisabled : "",
|
|
436
|
+
o
|
|
791
437
|
].filter(Boolean).join(" ");
|
|
792
|
-
return /* @__PURE__ */
|
|
438
|
+
return /* @__PURE__ */ i.jsx(
|
|
793
439
|
"button",
|
|
794
440
|
{
|
|
795
441
|
type: "button",
|
|
796
|
-
className:
|
|
797
|
-
disabled:
|
|
798
|
-
onClick:
|
|
799
|
-
"data-testid":
|
|
800
|
-
...
|
|
801
|
-
children:
|
|
442
|
+
className: u,
|
|
443
|
+
disabled: r,
|
|
444
|
+
onClick: n,
|
|
445
|
+
"data-testid": a,
|
|
446
|
+
...c,
|
|
447
|
+
children: e
|
|
802
448
|
}
|
|
803
449
|
);
|
|
804
|
-
},
|
|
805
|
-
tabsContainer:
|
|
806
|
-
tabsHeader:
|
|
807
|
-
tabItem:
|
|
808
|
-
tabContent:
|
|
809
|
-
tabLabel:
|
|
810
|
-
tabLine:
|
|
811
|
-
active:
|
|
812
|
-
inactive:
|
|
813
|
-
tabPanels:
|
|
814
|
-
},
|
|
815
|
-
tabs:
|
|
816
|
-
activeTabId:
|
|
817
|
-
onTabChange:
|
|
818
|
-
className:
|
|
819
|
-
"data-testid":
|
|
820
|
-
...
|
|
450
|
+
}, tt = "_tabsContainer_m3c4e_1", rt = "_tabsHeader_m3c4e_7", nt = "_tabItem_m3c4e_13", ot = "_tabContent_m3c4e_29", st = "_tabLabel_m3c4e_51", at = "_tabLine_m3c4e_61", lt = "_active_m3c4e_68", it = "_inactive_m3c4e_76", ct = "_tabPanels_m3c4e_84", J = {
|
|
451
|
+
tabsContainer: tt,
|
|
452
|
+
tabsHeader: rt,
|
|
453
|
+
tabItem: nt,
|
|
454
|
+
tabContent: ot,
|
|
455
|
+
tabLabel: st,
|
|
456
|
+
tabLine: at,
|
|
457
|
+
active: lt,
|
|
458
|
+
inactive: it,
|
|
459
|
+
tabPanels: ct
|
|
460
|
+
}, dr = ({
|
|
461
|
+
tabs: e,
|
|
462
|
+
activeTabId: r,
|
|
463
|
+
onTabChange: n,
|
|
464
|
+
className: o = "",
|
|
465
|
+
"data-testid": a,
|
|
466
|
+
...c
|
|
821
467
|
}) => {
|
|
822
|
-
var
|
|
823
|
-
const
|
|
824
|
-
return /* @__PURE__ */
|
|
825
|
-
/* @__PURE__ */
|
|
826
|
-
const
|
|
827
|
-
|
|
828
|
-
|
|
468
|
+
var g;
|
|
469
|
+
const u = [J.tabsContainer, o].filter(Boolean).join(" ");
|
|
470
|
+
return /* @__PURE__ */ i.jsxs("div", { className: u, "data-testid": a, ...c, children: [
|
|
471
|
+
/* @__PURE__ */ i.jsx("div", { className: J.tabsHeader, children: e.map((d) => {
|
|
472
|
+
const m = d.id === r, S = [
|
|
473
|
+
J.tabItem,
|
|
474
|
+
m ? J.active : J.inactive
|
|
829
475
|
].filter(Boolean).join(" ");
|
|
830
|
-
return /* @__PURE__ */
|
|
476
|
+
return /* @__PURE__ */ i.jsxs(
|
|
831
477
|
"button",
|
|
832
478
|
{
|
|
833
479
|
type: "button",
|
|
834
|
-
className:
|
|
835
|
-
onClick: () =>
|
|
836
|
-
"data-testid": `${
|
|
480
|
+
className: S,
|
|
481
|
+
onClick: () => n(d.id),
|
|
482
|
+
"data-testid": `${a}-tab-${d.id}`,
|
|
837
483
|
children: [
|
|
838
|
-
/* @__PURE__ */
|
|
839
|
-
/* @__PURE__ */
|
|
484
|
+
/* @__PURE__ */ i.jsx("div", { className: J.tabContent, children: /* @__PURE__ */ i.jsx("span", { className: J.tabLabel, children: d.label }) }),
|
|
485
|
+
/* @__PURE__ */ i.jsx("div", { className: J.tabLine })
|
|
840
486
|
]
|
|
841
487
|
},
|
|
842
|
-
|
|
488
|
+
d.id
|
|
843
489
|
);
|
|
844
490
|
}) }),
|
|
845
|
-
/* @__PURE__ */
|
|
491
|
+
/* @__PURE__ */ i.jsx("div", { className: J.tabPanels, children: (g = e.find((d) => d.id === r)) == null ? void 0 : g.content })
|
|
846
492
|
] });
|
|
847
493
|
};
|
|
848
|
-
function
|
|
849
|
-
return
|
|
494
|
+
function ut(e) {
|
|
495
|
+
return _e({ 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: [] }] })(e);
|
|
496
|
+
}
|
|
497
|
+
function dt(e) {
|
|
498
|
+
return _e({ attr: { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "circle", attr: { cx: "12", cy: "12", r: "10" }, child: [] }, { tag: "line", attr: { x1: "12", y1: "16", x2: "12", y2: "12" }, child: [] }, { tag: "line", attr: { x1: "12", y1: "8", x2: "12.01", y2: "8" }, child: [] }] })(e);
|
|
850
499
|
}
|
|
851
|
-
function
|
|
852
|
-
return
|
|
500
|
+
function ft(e) {
|
|
501
|
+
return _e({ attr: { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "polyline", attr: { points: "9 18 15 12 9 6" }, child: [] }] })(e);
|
|
853
502
|
}
|
|
854
|
-
function
|
|
855
|
-
return
|
|
503
|
+
function Ie(e) {
|
|
504
|
+
return _e({ 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: [] }] })(e);
|
|
856
505
|
}
|
|
857
|
-
const
|
|
858
|
-
dropdown:
|
|
859
|
-
label:
|
|
860
|
-
required:
|
|
861
|
-
trigger:
|
|
862
|
-
triggerDisabled:
|
|
863
|
-
triggerInput:
|
|
864
|
-
value:
|
|
865
|
-
placeholder:
|
|
866
|
-
chevron:
|
|
867
|
-
open:
|
|
868
|
-
panel:
|
|
869
|
-
panelClosing:
|
|
870
|
-
filterWrapper:
|
|
871
|
-
filterInput:
|
|
872
|
-
filterIcon:
|
|
873
|
-
list:
|
|
874
|
-
option:
|
|
875
|
-
optionSelected:
|
|
876
|
-
optionHighlighted:
|
|
877
|
-
optionDisabled:
|
|
878
|
-
empty:
|
|
879
|
-
disabled:
|
|
880
|
-
},
|
|
881
|
-
const
|
|
882
|
-
return
|
|
883
|
-
},
|
|
884
|
-
value:
|
|
885
|
-
onChange:
|
|
886
|
-
onEditEnd:
|
|
887
|
-
options:
|
|
888
|
-
optionLabel:
|
|
889
|
-
optionValue:
|
|
890
|
-
optionDisabled:
|
|
891
|
-
placeholder:
|
|
892
|
-
filter:
|
|
893
|
-
editable:
|
|
894
|
-
disabled:
|
|
895
|
-
required:
|
|
896
|
-
label:
|
|
897
|
-
inputId:
|
|
898
|
-
className:
|
|
899
|
-
panelClassName:
|
|
900
|
-
valueTemplate:
|
|
901
|
-
itemTemplate:
|
|
902
|
-
"data-testid":
|
|
506
|
+
const pt = "_dropdown_1xupi_1", _t = "_label_1xupi_9", mt = "_required_1xupi_18", vt = "_trigger_1xupi_23", yt = "_triggerDisabled_1xupi_47", ht = "_triggerInput_1xupi_56", gt = "_value_1xupi_74", bt = "_placeholder_1xupi_82", xt = "_chevron_1xupi_86", jt = "_open_1xupi_93", kt = "_panel_1xupi_117", wt = "_panelClosing_1xupi_134", Et = "_filterWrapper_1xupi_138", Nt = "_filterInput_1xupi_145", Ot = "_filterIcon_1xupi_164", Ct = "_list_1xupi_175", Rt = "_option_1xupi_184", St = "_optionSelected_1xupi_196", Pt = "_optionHighlighted_1xupi_200", Bt = "_optionDisabled_1xupi_204", At = "_empty_1xupi_213", Dt = "_disabled_1xupi_220", E = {
|
|
507
|
+
dropdown: pt,
|
|
508
|
+
label: _t,
|
|
509
|
+
required: mt,
|
|
510
|
+
trigger: vt,
|
|
511
|
+
triggerDisabled: yt,
|
|
512
|
+
triggerInput: ht,
|
|
513
|
+
value: gt,
|
|
514
|
+
placeholder: bt,
|
|
515
|
+
chevron: xt,
|
|
516
|
+
open: jt,
|
|
517
|
+
panel: kt,
|
|
518
|
+
panelClosing: wt,
|
|
519
|
+
filterWrapper: Et,
|
|
520
|
+
filterInput: Nt,
|
|
521
|
+
filterIcon: Ot,
|
|
522
|
+
list: Ct,
|
|
523
|
+
option: Rt,
|
|
524
|
+
optionSelected: St,
|
|
525
|
+
optionHighlighted: Pt,
|
|
526
|
+
optionDisabled: Bt,
|
|
527
|
+
empty: At,
|
|
528
|
+
disabled: Dt
|
|
529
|
+
}, ee = (e, r) => {
|
|
530
|
+
const o = e[r];
|
|
531
|
+
return o != null ? String(o) : "";
|
|
532
|
+
}, ie = (e, r) => e[r], F = (e, r) => r == null ? !1 : !!e[r], fr = ({
|
|
533
|
+
value: e,
|
|
534
|
+
onChange: r,
|
|
535
|
+
onEditEnd: n,
|
|
536
|
+
options: o,
|
|
537
|
+
optionLabel: a = "label",
|
|
538
|
+
optionValue: c = "value",
|
|
539
|
+
optionDisabled: u,
|
|
540
|
+
placeholder: g = "Select",
|
|
541
|
+
filter: d = !1,
|
|
542
|
+
editable: m = !1,
|
|
543
|
+
disabled: S = !1,
|
|
544
|
+
required: $ = !1,
|
|
545
|
+
label: A,
|
|
546
|
+
inputId: D,
|
|
547
|
+
className: W = "",
|
|
548
|
+
panelClassName: b = "",
|
|
549
|
+
valueTemplate: v,
|
|
550
|
+
itemTemplate: O,
|
|
551
|
+
"data-testid": k
|
|
903
552
|
}) => {
|
|
904
|
-
const
|
|
905
|
-
(
|
|
906
|
-
),
|
|
907
|
-
() =>
|
|
908
|
-
(
|
|
909
|
-
) :
|
|
910
|
-
[
|
|
553
|
+
const P = o.find(
|
|
554
|
+
(s) => ie(s, c) === e
|
|
555
|
+
), C = P ? ee(P, a) : "", [f, T] = ce(!1), [I, ne] = ce(!1), [M, oe] = ce(""), [Z, w] = ce(C), [y, p] = ce(0), B = le(null), L = le(null), q = le(null), H = le(null), U = le(null), G = le(!1), t = ke(
|
|
556
|
+
() => d && !m ? o.filter(
|
|
557
|
+
(s) => ee(s, a).toLowerCase().includes(M.toLowerCase())
|
|
558
|
+
) : o,
|
|
559
|
+
[d, m, o, a, M]
|
|
911
560
|
);
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
}, [
|
|
915
|
-
|
|
916
|
-
var
|
|
917
|
-
return (
|
|
561
|
+
de(() => {
|
|
562
|
+
m && w(C);
|
|
563
|
+
}, [m, e, C]), de(() => {
|
|
564
|
+
f && d && !m && (oe(""), p(0), setTimeout(() => {
|
|
565
|
+
var s;
|
|
566
|
+
return (s = q.current) == null ? void 0 : s.focus();
|
|
918
567
|
}, 0));
|
|
919
|
-
}, [
|
|
920
|
-
if (!
|
|
921
|
-
const
|
|
922
|
-
(
|
|
923
|
-
),
|
|
924
|
-
(
|
|
925
|
-
),
|
|
926
|
-
|
|
927
|
-
}, [
|
|
928
|
-
const
|
|
929
|
-
|
|
930
|
-
}, [
|
|
931
|
-
const
|
|
932
|
-
|
|
933
|
-
},
|
|
934
|
-
var
|
|
935
|
-
(
|
|
568
|
+
}, [f, d, m]), de(() => {
|
|
569
|
+
if (!f) return;
|
|
570
|
+
const s = t.findIndex(
|
|
571
|
+
(R) => ie(R, c) === e
|
|
572
|
+
), _ = t.findIndex(
|
|
573
|
+
(R) => !F(R, u)
|
|
574
|
+
), j = s >= 0 && !F(t[s], u);
|
|
575
|
+
p(j ? s : _ >= 0 ? _ : 0);
|
|
576
|
+
}, [f, e, t, c, u]), de(() => {
|
|
577
|
+
const s = U.current;
|
|
578
|
+
s != null && s.scrollIntoView && typeof s.scrollIntoView == "function" && s.scrollIntoView({ block: "nearest" });
|
|
579
|
+
}, [y]);
|
|
580
|
+
const l = () => {
|
|
581
|
+
G.current = !0, ne(!0);
|
|
582
|
+
}, h = (s) => {
|
|
583
|
+
var _;
|
|
584
|
+
(G.current || (_ = s.animationName) != null && _.includes("menuOut")) && (G.current = !1, T(!1), ne(!1), m && w(C));
|
|
936
585
|
};
|
|
937
|
-
|
|
938
|
-
if (!
|
|
939
|
-
const
|
|
940
|
-
|
|
586
|
+
de(() => {
|
|
587
|
+
if (!f && !I) return;
|
|
588
|
+
const s = (_) => {
|
|
589
|
+
B.current && !B.current.contains(_.target) && (m && w(C), l());
|
|
941
590
|
};
|
|
942
|
-
return document.addEventListener("mousedown",
|
|
943
|
-
}, [
|
|
944
|
-
const
|
|
945
|
-
|
|
946
|
-
},
|
|
947
|
-
if (
|
|
948
|
-
const
|
|
949
|
-
|
|
950
|
-
value:
|
|
951
|
-
originalEvent:
|
|
952
|
-
}),
|
|
953
|
-
},
|
|
954
|
-
if (!
|
|
955
|
-
if (
|
|
956
|
-
|
|
957
|
-
const
|
|
958
|
-
const
|
|
959
|
-
return
|
|
960
|
-
}),
|
|
961
|
-
|
|
962
|
-
value:
|
|
963
|
-
originalEvent:
|
|
964
|
-
})),
|
|
965
|
-
value:
|
|
966
|
-
selectedValue:
|
|
967
|
-
originalEvent:
|
|
591
|
+
return document.addEventListener("mousedown", s), () => document.removeEventListener("mousedown", s);
|
|
592
|
+
}, [f, I, m, C]);
|
|
593
|
+
const x = () => {
|
|
594
|
+
S || T((s) => !s);
|
|
595
|
+
}, z = (s, _) => {
|
|
596
|
+
if (F(s, u)) return;
|
|
597
|
+
const j = ie(s, c);
|
|
598
|
+
m && w(ee(s, a)), r == null || r({
|
|
599
|
+
value: j ?? null,
|
|
600
|
+
originalEvent: _
|
|
601
|
+
}), l();
|
|
602
|
+
}, se = (s) => {
|
|
603
|
+
if (!f) {
|
|
604
|
+
if (s.key === "Enter" && m && Z.trim()) {
|
|
605
|
+
s.preventDefault();
|
|
606
|
+
const _ = Z.trim(), j = _.toLowerCase(), R = o.find((ae) => {
|
|
607
|
+
const Q = ee(ae, a).toLowerCase();
|
|
608
|
+
return Q === j || Q.startsWith(j);
|
|
609
|
+
}), X = R && !F(R, u) ? ie(R, c) : null;
|
|
610
|
+
R && !F(R, u) && (w(ee(R, a)), r == null || r({
|
|
611
|
+
value: X,
|
|
612
|
+
originalEvent: s
|
|
613
|
+
})), n == null || n({
|
|
614
|
+
value: _,
|
|
615
|
+
selectedValue: X,
|
|
616
|
+
originalEvent: s
|
|
968
617
|
});
|
|
969
618
|
return;
|
|
970
619
|
}
|
|
971
|
-
(
|
|
620
|
+
(s.key === "Enter" || s.key === " " || s.key === "ArrowDown") && (s.preventDefault(), T(!0));
|
|
972
621
|
return;
|
|
973
622
|
}
|
|
974
|
-
if (
|
|
975
|
-
|
|
623
|
+
if (s.key === "Escape") {
|
|
624
|
+
s.preventDefault(), l();
|
|
976
625
|
return;
|
|
977
626
|
}
|
|
978
|
-
if (
|
|
979
|
-
|
|
980
|
-
for (let
|
|
981
|
-
if (!
|
|
982
|
-
return
|
|
983
|
-
return
|
|
627
|
+
if (s.key === "ArrowDown") {
|
|
628
|
+
s.preventDefault(), p((_) => {
|
|
629
|
+
for (let j = _ + 1; j < t.length; j++)
|
|
630
|
+
if (!F(t[j], u))
|
|
631
|
+
return j;
|
|
632
|
+
return _;
|
|
984
633
|
});
|
|
985
634
|
return;
|
|
986
635
|
}
|
|
987
|
-
if (
|
|
988
|
-
|
|
989
|
-
for (let
|
|
990
|
-
if (!
|
|
991
|
-
return
|
|
992
|
-
return
|
|
636
|
+
if (s.key === "ArrowUp") {
|
|
637
|
+
s.preventDefault(), p((_) => {
|
|
638
|
+
for (let j = _ - 1; j >= 0; j--)
|
|
639
|
+
if (!F(t[j], u))
|
|
640
|
+
return j;
|
|
641
|
+
return _;
|
|
993
642
|
});
|
|
994
643
|
return;
|
|
995
644
|
}
|
|
996
|
-
if (
|
|
997
|
-
if (
|
|
998
|
-
const
|
|
999
|
-
if (
|
|
1000
|
-
const
|
|
1001
|
-
const
|
|
1002
|
-
return
|
|
1003
|
-
}),
|
|
1004
|
-
|
|
1005
|
-
value:
|
|
1006
|
-
selectedValue:
|
|
1007
|
-
originalEvent:
|
|
645
|
+
if (s.key === "Enter") {
|
|
646
|
+
if (s.preventDefault(), m) {
|
|
647
|
+
const _ = Z.trim();
|
|
648
|
+
if (_) {
|
|
649
|
+
const j = _.toLowerCase(), R = o.find((ae) => {
|
|
650
|
+
const Q = ee(ae, a).toLowerCase();
|
|
651
|
+
return Q === j || Q.startsWith(j);
|
|
652
|
+
}), X = R && !F(R, u) ? ie(R, c) : null;
|
|
653
|
+
R && !F(R, u) && z(R, s), n == null || n({
|
|
654
|
+
value: _,
|
|
655
|
+
selectedValue: X,
|
|
656
|
+
originalEvent: s
|
|
1008
657
|
});
|
|
1009
658
|
} else
|
|
1010
|
-
|
|
1011
|
-
} else if (
|
|
1012
|
-
const
|
|
1013
|
-
|
|
659
|
+
n == null || n({ value: "", selectedValue: null, originalEvent: s });
|
|
660
|
+
} else if (t[y]) {
|
|
661
|
+
const _ = t[y];
|
|
662
|
+
F(_, u) || z(_, s);
|
|
1014
663
|
}
|
|
1015
664
|
}
|
|
1016
|
-
},
|
|
665
|
+
}, N = [
|
|
1017
666
|
E.dropdown,
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
].filter(Boolean).join(" "),
|
|
667
|
+
S ? E.disabled : "",
|
|
668
|
+
f ? E.open : "",
|
|
669
|
+
W
|
|
670
|
+
].filter(Boolean).join(" "), K = [
|
|
1022
671
|
E.trigger,
|
|
1023
|
-
|
|
1024
|
-
].filter(Boolean).join(" "),
|
|
672
|
+
S ? E.triggerDisabled : ""
|
|
673
|
+
].filter(Boolean).join(" "), ue = [
|
|
1025
674
|
E.panel,
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
].filter(Boolean).join(" "),
|
|
1029
|
-
return /* @__PURE__ */
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
675
|
+
I ? E.panelClosing : "",
|
|
676
|
+
b
|
|
677
|
+
].filter(Boolean).join(" "), ge = we(), me = D ?? `dropdown-${ge.replace(/[^a-zA-Z0-9_-]/g, "")}`, be = `${me}-panel`;
|
|
678
|
+
return /* @__PURE__ */ i.jsxs("div", { className: N, ref: B, "data-testid": k, children: [
|
|
679
|
+
A != null && /* @__PURE__ */ i.jsxs("label", { htmlFor: me, className: E.label, children: [
|
|
680
|
+
A,
|
|
681
|
+
$ && /* @__PURE__ */ i.jsx("span", { className: E.required, children: "*" })
|
|
1033
682
|
] }),
|
|
1034
|
-
/* @__PURE__ */
|
|
683
|
+
/* @__PURE__ */ i.jsxs(
|
|
1035
684
|
"div",
|
|
1036
685
|
{
|
|
1037
|
-
id:
|
|
686
|
+
id: m ? void 0 : me,
|
|
1038
687
|
role: "combobox",
|
|
1039
|
-
"aria-expanded":
|
|
688
|
+
"aria-expanded": f || I,
|
|
1040
689
|
"aria-haspopup": "listbox",
|
|
1041
|
-
"aria-controls":
|
|
1042
|
-
"aria-disabled":
|
|
1043
|
-
"aria-label": typeof
|
|
1044
|
-
tabIndex:
|
|
1045
|
-
className:
|
|
1046
|
-
onClick:
|
|
1047
|
-
onKeyDown:
|
|
1048
|
-
"data-testid":
|
|
690
|
+
"aria-controls": f || I ? be : void 0,
|
|
691
|
+
"aria-disabled": S,
|
|
692
|
+
"aria-label": typeof A == "string" ? A : void 0,
|
|
693
|
+
tabIndex: m || S ? -1 : 0,
|
|
694
|
+
className: K,
|
|
695
|
+
onClick: m ? void 0 : x,
|
|
696
|
+
onKeyDown: m ? void 0 : se,
|
|
697
|
+
"data-testid": k && !m ? `${k}-trigger` : void 0,
|
|
1049
698
|
children: [
|
|
1050
|
-
|
|
699
|
+
m ? /* @__PURE__ */ i.jsx(
|
|
1051
700
|
"input",
|
|
1052
701
|
{
|
|
1053
|
-
ref:
|
|
1054
|
-
id:
|
|
702
|
+
ref: H,
|
|
703
|
+
id: me,
|
|
1055
704
|
type: "text",
|
|
1056
705
|
className: E.triggerInput,
|
|
1057
|
-
value:
|
|
1058
|
-
onChange: (
|
|
1059
|
-
|
|
706
|
+
value: Z,
|
|
707
|
+
onChange: (s) => {
|
|
708
|
+
w(s.target.value), !f && !I && T(!0), p(0);
|
|
1060
709
|
},
|
|
1061
710
|
onFocus: () => {
|
|
1062
|
-
!
|
|
711
|
+
!S && !f && !I && T(!0);
|
|
1063
712
|
},
|
|
1064
|
-
onKeyDown:
|
|
1065
|
-
placeholder:
|
|
1066
|
-
disabled:
|
|
713
|
+
onKeyDown: se,
|
|
714
|
+
placeholder: g,
|
|
715
|
+
disabled: S,
|
|
1067
716
|
"aria-autocomplete": "list",
|
|
1068
|
-
"aria-controls":
|
|
1069
|
-
"aria-expanded":
|
|
1070
|
-
"data-testid":
|
|
717
|
+
"aria-controls": f || I ? be : void 0,
|
|
718
|
+
"aria-expanded": f || I,
|
|
719
|
+
"data-testid": k ? `${k}-trigger` : void 0
|
|
1071
720
|
}
|
|
1072
|
-
) : /* @__PURE__ */
|
|
1073
|
-
/* @__PURE__ */
|
|
1074
|
-
|
|
721
|
+
) : /* @__PURE__ */ i.jsx("span", { className: E.value, children: v ? v(P ?? null) : C || /* @__PURE__ */ i.jsx("span", { className: E.placeholder, children: g }) }),
|
|
722
|
+
/* @__PURE__ */ i.jsx(
|
|
723
|
+
Ie,
|
|
1075
724
|
{
|
|
1076
725
|
className: E.chevron,
|
|
1077
726
|
"aria-hidden": !0,
|
|
1078
|
-
onClick:
|
|
727
|
+
onClick: m ? x : void 0
|
|
1079
728
|
}
|
|
1080
729
|
)
|
|
1081
730
|
]
|
|
1082
731
|
}
|
|
1083
732
|
),
|
|
1084
|
-
(
|
|
733
|
+
(f || I) && /* @__PURE__ */ i.jsxs(
|
|
1085
734
|
"div",
|
|
1086
735
|
{
|
|
1087
|
-
ref:
|
|
1088
|
-
id:
|
|
1089
|
-
className:
|
|
736
|
+
ref: L,
|
|
737
|
+
id: be,
|
|
738
|
+
className: ue,
|
|
1090
739
|
role: "presentation",
|
|
1091
|
-
onAnimationEnd:
|
|
1092
|
-
"data-testid":
|
|
740
|
+
onAnimationEnd: h,
|
|
741
|
+
"data-testid": k ? `${k}-panel` : void 0,
|
|
1093
742
|
children: [
|
|
1094
|
-
|
|
1095
|
-
/* @__PURE__ */
|
|
743
|
+
d && !m && /* @__PURE__ */ i.jsxs("div", { className: E.filterWrapper, children: [
|
|
744
|
+
/* @__PURE__ */ i.jsx(
|
|
1096
745
|
"input",
|
|
1097
746
|
{
|
|
1098
|
-
ref:
|
|
747
|
+
ref: q,
|
|
1099
748
|
type: "text",
|
|
1100
749
|
className: E.filterInput,
|
|
1101
|
-
value:
|
|
1102
|
-
onChange: (
|
|
1103
|
-
|
|
750
|
+
value: M,
|
|
751
|
+
onChange: (s) => {
|
|
752
|
+
oe(s.target.value), p(0);
|
|
1104
753
|
},
|
|
1105
|
-
onKeyDown: (
|
|
1106
|
-
|
|
754
|
+
onKeyDown: (s) => {
|
|
755
|
+
s.key === "Escape" && T(!1), s.stopPropagation();
|
|
1107
756
|
},
|
|
1108
757
|
placeholder: "Search...",
|
|
1109
758
|
"aria-label": "Filter options",
|
|
1110
759
|
title: "Filter options",
|
|
1111
|
-
"data-testid":
|
|
760
|
+
"data-testid": k ? `${k}-filter` : void 0
|
|
1112
761
|
}
|
|
1113
762
|
),
|
|
1114
|
-
/* @__PURE__ */
|
|
763
|
+
/* @__PURE__ */ i.jsx(ut, { className: E.filterIcon, "aria-hidden": !0 })
|
|
1115
764
|
] }),
|
|
1116
|
-
/* @__PURE__ */
|
|
1117
|
-
const
|
|
1118
|
-
return /* @__PURE__ */
|
|
765
|
+
/* @__PURE__ */ i.jsx("ul", { className: E.list, role: "listbox", "aria-label": "Options", children: t.length === 0 ? /* @__PURE__ */ i.jsx("li", { className: E.empty, children: "No results" }) : t.map((s, _) => {
|
|
766
|
+
const j = ie(s, c), R = ee(s, a), X = F(s, u), ae = e === j, Q = _ === y, Te = j != null ? String(j) : `option-${_}`;
|
|
767
|
+
return /* @__PURE__ */ i.jsx(
|
|
1119
768
|
"li",
|
|
1120
769
|
{
|
|
1121
|
-
ref:
|
|
770
|
+
ref: Q ? U : void 0,
|
|
1122
771
|
role: "option",
|
|
1123
|
-
"aria-selected":
|
|
1124
|
-
"aria-disabled":
|
|
772
|
+
"aria-selected": ae,
|
|
773
|
+
"aria-disabled": X,
|
|
1125
774
|
className: [
|
|
1126
775
|
E.option,
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
776
|
+
ae ? E.optionSelected : "",
|
|
777
|
+
Q ? E.optionHighlighted : "",
|
|
778
|
+
X ? E.optionDisabled : ""
|
|
1130
779
|
].filter(Boolean).join(" "),
|
|
1131
|
-
onMouseEnter: () => !
|
|
1132
|
-
onClick: (
|
|
1133
|
-
"data-testid":
|
|
1134
|
-
children:
|
|
780
|
+
onMouseEnter: () => !X && p(_),
|
|
781
|
+
onClick: (Le) => z(s, Le),
|
|
782
|
+
"data-testid": k ? `${k}-option-${_}` : void 0,
|
|
783
|
+
children: O ? O(s) : R
|
|
1135
784
|
},
|
|
1136
|
-
|
|
785
|
+
Te
|
|
1137
786
|
);
|
|
1138
787
|
}) })
|
|
1139
788
|
]
|
|
1140
789
|
}
|
|
1141
790
|
)
|
|
1142
791
|
] });
|
|
1143
|
-
},
|
|
1144
|
-
inputText:
|
|
1145
|
-
label:
|
|
1146
|
-
required:
|
|
1147
|
-
tooltipIcon:
|
|
1148
|
-
input:
|
|
1149
|
-
inputTextarea:
|
|
1150
|
-
inputTextDisabled:
|
|
1151
|
-
},
|
|
1152
|
-
label:
|
|
1153
|
-
tooltip:
|
|
1154
|
-
required:
|
|
1155
|
-
inputId:
|
|
1156
|
-
textarea:
|
|
1157
|
-
rows:
|
|
1158
|
-
className:
|
|
1159
|
-
"data-testid":
|
|
1160
|
-
disabled:
|
|
1161
|
-
...
|
|
792
|
+
}, It = "_inputText_1crp5_1", $t = "_label_1crp5_9", Tt = "_required_1crp5_20", Lt = "_tooltipIcon_1crp5_25", qt = "_input_1crp5_1", Ft = "_inputTextarea_1crp5_72", Wt = "_inputTextDisabled_1crp5_79", te = {
|
|
793
|
+
inputText: It,
|
|
794
|
+
label: $t,
|
|
795
|
+
required: Tt,
|
|
796
|
+
tooltipIcon: Lt,
|
|
797
|
+
input: qt,
|
|
798
|
+
inputTextarea: Ft,
|
|
799
|
+
inputTextDisabled: Wt
|
|
800
|
+
}, pr = ({
|
|
801
|
+
label: e,
|
|
802
|
+
tooltip: r,
|
|
803
|
+
required: n = !1,
|
|
804
|
+
inputId: o,
|
|
805
|
+
textarea: a = !1,
|
|
806
|
+
rows: c,
|
|
807
|
+
className: u = "",
|
|
808
|
+
"data-testid": g,
|
|
809
|
+
disabled: d = !1,
|
|
810
|
+
...m
|
|
1162
811
|
}) => {
|
|
1163
|
-
const { type:
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
].filter(Boolean).join(" "),
|
|
1168
|
-
let
|
|
1169
|
-
|
|
1170
|
-
const
|
|
812
|
+
const { type: S = "text", ...$ } = m, A = we(), D = o || `input-text-${A.replace(/[^a-zA-Z0-9_-]/g, "")}`, W = [
|
|
813
|
+
te.inputText,
|
|
814
|
+
d ? te.inputTextDisabled : "",
|
|
815
|
+
u
|
|
816
|
+
].filter(Boolean).join(" "), b = $["aria-invalid"];
|
|
817
|
+
let v;
|
|
818
|
+
b === void 0 ? v = void 0 : b === !0 ? v = "true" : b === !1 ? v = "false" : v = b;
|
|
819
|
+
const O = n ? { "aria-required": "true" } : { "aria-required": "false" }, k = v === void 0 ? {} : { "aria-invalid": v }, P = [te.input, a ? te.inputTextarea : ""].filter(Boolean).join(" "), C = {
|
|
1171
820
|
id: D,
|
|
1172
|
-
className:
|
|
1173
|
-
disabled:
|
|
1174
|
-
...
|
|
1175
|
-
...
|
|
1176
|
-
"data-testid":
|
|
821
|
+
className: P,
|
|
822
|
+
disabled: d,
|
|
823
|
+
...O,
|
|
824
|
+
...k,
|
|
825
|
+
"data-testid": g ? `${g}-input` : void 0
|
|
1177
826
|
};
|
|
1178
|
-
return /* @__PURE__ */
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
827
|
+
return /* @__PURE__ */ i.jsxs("div", { className: W, "data-testid": g, children: [
|
|
828
|
+
e != null && /* @__PURE__ */ i.jsxs("label", { htmlFor: D, className: te.label, children: [
|
|
829
|
+
e,
|
|
830
|
+
n && /* @__PURE__ */ i.jsx("span", { className: te.required, children: "*" }),
|
|
831
|
+
r != null && /* @__PURE__ */ i.jsx(
|
|
1183
832
|
"span",
|
|
1184
833
|
{
|
|
1185
|
-
className:
|
|
1186
|
-
title:
|
|
1187
|
-
"aria-label":
|
|
1188
|
-
children: /* @__PURE__ */
|
|
834
|
+
className: te.tooltipIcon,
|
|
835
|
+
title: r,
|
|
836
|
+
"aria-label": r,
|
|
837
|
+
children: /* @__PURE__ */ i.jsx(dt, { "aria-hidden": !0 })
|
|
1189
838
|
}
|
|
1190
839
|
)
|
|
1191
840
|
] }),
|
|
1192
|
-
|
|
841
|
+
a ? /* @__PURE__ */ i.jsx(
|
|
1193
842
|
"textarea",
|
|
1194
843
|
{
|
|
1195
|
-
|
|
1196
|
-
...
|
|
1197
|
-
rows:
|
|
844
|
+
...$,
|
|
845
|
+
...C,
|
|
846
|
+
rows: c ?? 3
|
|
1198
847
|
}
|
|
1199
|
-
) : /* @__PURE__ */
|
|
848
|
+
) : /* @__PURE__ */ i.jsx("input", { ...$, ...C, type: S })
|
|
1200
849
|
] });
|
|
1201
|
-
},
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
},
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
850
|
+
}, zt = "_accordion_l1hoq_1", Vt = "_tab_l1hoq_6", Yt = "_headerButton_l1hoq_11", Mt = "_headerContent_l1hoq_39", Ht = "_icon_l1hoq_45", Ut = "_panel_l1hoq_53", Jt = "_panelCollapsed_l1hoq_58", Zt = "_panelOpen_l1hoq_64", Gt = "_panelContent_l1hoq_70", Kt = "_noBorderLast_l1hoq_74", V = {
|
|
851
|
+
accordion: zt,
|
|
852
|
+
tab: Vt,
|
|
853
|
+
headerButton: Yt,
|
|
854
|
+
headerContent: Mt,
|
|
855
|
+
icon: Ht,
|
|
856
|
+
panel: Ut,
|
|
857
|
+
panelCollapsed: Jt,
|
|
858
|
+
panelOpen: Zt,
|
|
859
|
+
panelContent: Gt,
|
|
860
|
+
noBorderLast: Kt
|
|
861
|
+
}, $e = (e) => null;
|
|
862
|
+
$e.displayName = "AccordionTab";
|
|
863
|
+
const Xt = (e, r) => e == null ? [] : Array.isArray(e) ? r ? e : e.slice(0, 1) : [e], Qt = (e) => e.replace(/[^a-zA-Z0-9_-]/g, ""), er = ({
|
|
864
|
+
activeIndex: e,
|
|
865
|
+
multiple: r = !1,
|
|
866
|
+
expandIcon: n,
|
|
867
|
+
collapseIcon: o,
|
|
868
|
+
onTabChange: a,
|
|
869
|
+
onTabOpen: c,
|
|
870
|
+
onTabClose: u,
|
|
871
|
+
className: g = "",
|
|
872
|
+
transitionOptions: d,
|
|
873
|
+
pt: m,
|
|
874
|
+
ptOptions: S,
|
|
875
|
+
unstyled: $,
|
|
876
|
+
children: A,
|
|
877
|
+
...D
|
|
878
|
+
}) => {
|
|
879
|
+
const W = we(), b = Qt(W), v = ke(() => Y.Children.toArray(A).filter(
|
|
880
|
+
(y) => Y.isValidElement(y) && y.type === $e
|
|
881
|
+
), [A]), O = e !== void 0, k = ke(() => Xt(e, r), [e, r]), [P, C] = ce([]), f = O ? k : P, T = typeof d == "object" && d != null && typeof d.timeout == "number" ? d.timeout : void 0, I = /* @__PURE__ */ i.jsx(ft, { "aria-hidden": !0 }), ne = /* @__PURE__ */ i.jsx(Ie, { "aria-hidden": !0 }), M = n ?? I, oe = o ?? ne, Z = (w, y) => {
|
|
882
|
+
const p = f.includes(w);
|
|
883
|
+
if (r) {
|
|
884
|
+
const q = p ? f.filter((H) => H !== w) : [...f, w];
|
|
885
|
+
O || C(q), a == null || a({ index: q, originalEvent: y }), p ? u == null || u({ index: w, originalEvent: y }) : c == null || c({ index: w, originalEvent: y });
|
|
886
|
+
return;
|
|
887
|
+
}
|
|
888
|
+
const B = f.length ? f[0] : null, L = p ? [] : [w];
|
|
889
|
+
if (O || C(L), a == null || a({ index: L, originalEvent: y }), p) {
|
|
890
|
+
u == null || u({ index: w, originalEvent: y });
|
|
891
|
+
return;
|
|
892
|
+
}
|
|
893
|
+
B != null && (u == null || u({ index: B, originalEvent: y })), c == null || c({ index: w, originalEvent: y });
|
|
894
|
+
};
|
|
895
|
+
return /* @__PURE__ */ i.jsx(
|
|
896
|
+
"div",
|
|
897
|
+
{
|
|
898
|
+
className: [V.accordion, g].filter(Boolean).join(" "),
|
|
899
|
+
...D,
|
|
900
|
+
children: v.map((w, y) => {
|
|
901
|
+
var x;
|
|
902
|
+
const p = w.props, B = f.includes(y), L = !!p.disabled, q = `${b}-header-${y}`, H = `${b}-content-${y}`, U = p.headerTemplate != null ? typeof p.headerTemplate == "function" ? p.headerTemplate({
|
|
903
|
+
index: y,
|
|
904
|
+
selected: B,
|
|
905
|
+
disabled: L,
|
|
906
|
+
count: v.length,
|
|
907
|
+
first: y === 0,
|
|
908
|
+
last: y === v.length - 1
|
|
909
|
+
}) : p.headerTemplate : p.header, G = B ? oe : M, t = [
|
|
910
|
+
V.headerButton,
|
|
911
|
+
p.headerClassName ?? ""
|
|
912
|
+
].filter(Boolean).join(" "), l = [
|
|
913
|
+
V.tab,
|
|
914
|
+
p.className ?? "",
|
|
915
|
+
y === v.length - 1 ? V.noBorderLast : ""
|
|
916
|
+
].filter(Boolean).join(" "), h = typeof U == "string" ? U : void 0;
|
|
917
|
+
return /* @__PURE__ */ i.jsxs(
|
|
918
|
+
"div",
|
|
919
|
+
{
|
|
920
|
+
className: l,
|
|
921
|
+
style: p.style,
|
|
922
|
+
children: [
|
|
923
|
+
/* @__PURE__ */ i.jsxs(
|
|
924
|
+
"button",
|
|
925
|
+
{
|
|
926
|
+
id: q,
|
|
927
|
+
type: "button",
|
|
928
|
+
disabled: L,
|
|
929
|
+
className: t,
|
|
930
|
+
style: p.headerStyle,
|
|
931
|
+
"aria-controls": H,
|
|
932
|
+
"aria-expanded": B,
|
|
933
|
+
"aria-disabled": L,
|
|
934
|
+
tabIndex: p.tabIndex,
|
|
935
|
+
onClick: (z) => Z(y, z),
|
|
936
|
+
...p.headerProps,
|
|
937
|
+
"aria-label": ((x = p.headerProps) == null ? void 0 : x["aria-label"]) ?? h,
|
|
938
|
+
children: [
|
|
939
|
+
/* @__PURE__ */ i.jsx("span", { className: V.headerContent, children: U }),
|
|
940
|
+
/* @__PURE__ */ i.jsx("span", { className: V.icon, "aria-hidden": !0, children: G })
|
|
941
|
+
]
|
|
942
|
+
}
|
|
943
|
+
),
|
|
944
|
+
/* @__PURE__ */ i.jsx(
|
|
945
|
+
"div",
|
|
946
|
+
{
|
|
947
|
+
id: H,
|
|
948
|
+
role: "region",
|
|
949
|
+
"aria-labelledby": q,
|
|
950
|
+
"aria-hidden": !B,
|
|
951
|
+
className: [
|
|
952
|
+
V.panel,
|
|
953
|
+
B ? V.panelOpen : V.panelCollapsed
|
|
954
|
+
].join(" "),
|
|
955
|
+
style: {
|
|
956
|
+
transitionDuration: T ? `${T}ms` : void 0
|
|
957
|
+
},
|
|
958
|
+
children: /* @__PURE__ */ i.jsx(
|
|
959
|
+
"div",
|
|
960
|
+
{
|
|
961
|
+
className: [
|
|
962
|
+
V.panelContent,
|
|
963
|
+
p.contentClassName ?? ""
|
|
964
|
+
].filter(Boolean).join(" "),
|
|
965
|
+
style: p.contentStyle,
|
|
966
|
+
children: p.children
|
|
967
|
+
}
|
|
968
|
+
)
|
|
969
|
+
}
|
|
970
|
+
)
|
|
971
|
+
]
|
|
972
|
+
},
|
|
973
|
+
y
|
|
974
|
+
);
|
|
975
|
+
})
|
|
976
|
+
}
|
|
977
|
+
);
|
|
978
|
+
};
|
|
979
|
+
er.displayName = "Accordion";
|
|
980
|
+
const tr = "_selectButton_1u3fo_1", rr = "_selectButtonDisabled_1u3fo_9", nr = "_selectButtonInvalid_1u3fo_14", or = "_button_1u3fo_14", sr = "_buttonFirst_1u3fo_47", ar = "_buttonLast_1u3fo_51", lr = "_buttonSelected_1u3fo_59", re = {
|
|
981
|
+
selectButton: tr,
|
|
982
|
+
selectButtonDisabled: rr,
|
|
983
|
+
selectButtonInvalid: nr,
|
|
984
|
+
button: or,
|
|
985
|
+
buttonFirst: sr,
|
|
986
|
+
buttonLast: ar,
|
|
987
|
+
buttonSelected: lr
|
|
988
|
+
}, Pe = (e, r) => {
|
|
989
|
+
const o = e[r];
|
|
990
|
+
return o != null ? String(o) : "";
|
|
991
|
+
}, je = (e, r) => e[r], Be = (e, r) => r == null ? !1 : !!e[r], _r = ({
|
|
992
|
+
value: e,
|
|
993
|
+
onChange: r,
|
|
994
|
+
options: n,
|
|
995
|
+
optionLabel: o = "label",
|
|
996
|
+
optionValue: a = "value",
|
|
997
|
+
optionDisabled: c,
|
|
998
|
+
multiple: u = !1,
|
|
999
|
+
itemTemplate: g,
|
|
1000
|
+
disabled: d = !1,
|
|
1001
|
+
invalid: m = !1,
|
|
1002
|
+
className: S = "",
|
|
1003
|
+
"data-testid": $
|
|
1225
1004
|
}) => {
|
|
1226
|
-
const
|
|
1227
|
-
const
|
|
1228
|
-
return
|
|
1229
|
-
},
|
|
1230
|
-
if (
|
|
1231
|
-
const
|
|
1232
|
-
if (
|
|
1233
|
-
let
|
|
1234
|
-
if (
|
|
1235
|
-
const
|
|
1236
|
-
|
|
1005
|
+
const A = (b) => {
|
|
1006
|
+
const v = je(b, a);
|
|
1007
|
+
return u && Array.isArray(e) ? e.includes(v) : e === v;
|
|
1008
|
+
}, D = (b, v) => {
|
|
1009
|
+
if (d || Be(b, c)) return;
|
|
1010
|
+
const O = je(b, a);
|
|
1011
|
+
if (O === void 0) return;
|
|
1012
|
+
let k;
|
|
1013
|
+
if (u) {
|
|
1014
|
+
const P = Array.isArray(e) ? e : [];
|
|
1015
|
+
k = P.includes(O) ? P.filter((f) => f !== O) : [...P, O];
|
|
1237
1016
|
} else
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
value:
|
|
1241
|
-
originalEvent:
|
|
1017
|
+
k = e === O ? null : O;
|
|
1018
|
+
r == null || r({
|
|
1019
|
+
value: k,
|
|
1020
|
+
originalEvent: v
|
|
1242
1021
|
});
|
|
1243
|
-
},
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1022
|
+
}, W = [
|
|
1023
|
+
re.selectButton,
|
|
1024
|
+
d ? re.selectButtonDisabled : "",
|
|
1025
|
+
m ? re.selectButtonInvalid : "",
|
|
1026
|
+
S
|
|
1248
1027
|
].filter(Boolean).join(" ");
|
|
1249
|
-
return /* @__PURE__ */
|
|
1028
|
+
return /* @__PURE__ */ i.jsx(
|
|
1250
1029
|
"div",
|
|
1251
1030
|
{
|
|
1252
|
-
className:
|
|
1031
|
+
className: W,
|
|
1253
1032
|
role: "group",
|
|
1254
|
-
"aria-disabled":
|
|
1255
|
-
"data-testid":
|
|
1256
|
-
children:
|
|
1257
|
-
const
|
|
1258
|
-
return /* @__PURE__ */
|
|
1033
|
+
"aria-disabled": d,
|
|
1034
|
+
"data-testid": $,
|
|
1035
|
+
children: n.map((b, v) => {
|
|
1036
|
+
const O = je(b, a), k = O != null ? String(O) : `option-${v}`, P = Be(b, c), C = A(b);
|
|
1037
|
+
return /* @__PURE__ */ i.jsx(
|
|
1259
1038
|
"button",
|
|
1260
1039
|
{
|
|
1261
1040
|
type: "button",
|
|
1262
|
-
"aria-pressed":
|
|
1263
|
-
"aria-disabled":
|
|
1264
|
-
"aria-label":
|
|
1265
|
-
disabled:
|
|
1041
|
+
"aria-pressed": C,
|
|
1042
|
+
"aria-disabled": P || d,
|
|
1043
|
+
"aria-label": Pe(b, o),
|
|
1044
|
+
disabled: d || P,
|
|
1266
1045
|
className: [
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1046
|
+
re.button,
|
|
1047
|
+
C ? re.buttonSelected : "",
|
|
1048
|
+
v === 0 ? re.buttonFirst : "",
|
|
1049
|
+
v === n.length - 1 ? re.buttonLast : ""
|
|
1271
1050
|
].filter(Boolean).join(" "),
|
|
1272
|
-
onClick: (
|
|
1273
|
-
onKeyDown: (
|
|
1274
|
-
(
|
|
1051
|
+
onClick: (f) => D(b, f),
|
|
1052
|
+
onKeyDown: (f) => {
|
|
1053
|
+
(f.key === " " || f.key === "Enter") && (f.preventDefault(), D(b, f));
|
|
1275
1054
|
},
|
|
1276
|
-
"data-testid":
|
|
1277
|
-
children:
|
|
1055
|
+
"data-testid": $ ? `${$}-option-${v}` : void 0,
|
|
1056
|
+
children: g ? g(b) : Pe(b, o)
|
|
1278
1057
|
},
|
|
1279
|
-
|
|
1058
|
+
k
|
|
1280
1059
|
);
|
|
1281
1060
|
})
|
|
1282
1061
|
}
|
|
1283
1062
|
);
|
|
1284
1063
|
};
|
|
1285
1064
|
export {
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1065
|
+
er as Accordion,
|
|
1066
|
+
$e as AccordionTab,
|
|
1067
|
+
fr as Dropdown,
|
|
1068
|
+
pr as InputText,
|
|
1069
|
+
cr as PrimaryButton,
|
|
1070
|
+
ur as SecondaryButton,
|
|
1071
|
+
_r as SelectButton,
|
|
1072
|
+
dr as Tabs
|
|
1292
1073
|
};
|