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