@emporix/cockpit-component-library 0.0.3 → 0.0.5

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,783 +1,1152 @@
1
- import q, { useState as ae, useRef as ee, useMemo as Ie, useEffect as se, useId as Te } from "react";
2
- var _e = { 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 je;
13
- function De() {
14
- if (je) return le;
15
- je = 1;
16
- var t = Symbol.for("react.transitional.element"), r = Symbol.for("react.fragment");
17
- function n(a, l, i) {
18
- var u = null;
19
- if (i !== void 0 && (u = "" + i), l.key !== void 0 && (u = "" + l.key), "key" in l) {
20
- i = {};
21
- for (var b in l)
22
- b !== "key" && (i[b] = l[b]);
23
- } else i = l;
24
- return l = i.ref, {
25
- $$typeof: t,
26
- type: a,
27
- key: u,
28
- ref: l !== void 0 ? l : null,
29
- props: i
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 ie = {};
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 ke;
45
- function $e() {
46
- return ke || (ke = 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 === Z ? 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 y:
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 E:
97
+ case f:
58
98
  return "StrictMode";
59
- case L:
99
+ case d:
60
100
  return "Suspense";
61
- case P:
101
+ case b:
62
102
  return "SuspenseList";
63
- case ue:
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 g:
71
- return "Portal";
72
- case R:
73
- return e.displayName || "Context";
74
- case C:
75
- return (e._context.displayName || "Context") + ".Consumer";
76
- case _:
77
- var s = e.render;
78
- return e = e.displayName, e || (e = s.displayName || s.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
79
- case ce:
80
- return s = e.displayName || null, s !== null ? s : t(e.type) || "Memo";
81
- case V:
82
- s = 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(s));
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() {
92
130
  }
93
- function n(e) {
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
+ }
203
+ }
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 s = !1;
97
- } catch {
98
- s = !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 (s) {
101
- s = console;
102
- var m = s.error, x = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
103
- return m.call(
104
- s,
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(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 a(e) {
111
- if (e === y) return "<>";
112
- if (typeof e == "object" && e !== null && e.$$typeof === V)
113
- return "<...>";
353
+ function ht(e) {
114
354
  try {
115
- var s = t(e);
116
- return s ? "<" + s + ">" : "<...>";
355
+ return Ke(e), !1;
117
356
  } catch {
118
- return "<...>";
357
+ return !0;
119
358
  }
120
359
  }
121
- function l() {
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 i() {
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 u(e) {
129
- if (M.call(e, "key")) {
130
- var s = Object.getOwnPropertyDescriptor(e, "key").get;
131
- if (s && s.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 b(e, s) {
136
- function m() {
137
- fe || (fe = !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
- s
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
- m.isReactWarning = !0, Object.defineProperty(e, "key", {
143
- get: m,
144
- configurable: !0
145
- });
146
402
  }
147
- function f() {
148
- var e = t(this.type);
149
- return re[e] || (re[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 p(e, s, m, x, F, X) {
154
- var k = m.ref;
155
- return e = {
156
- $$typeof: $,
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: s,
159
- props: m,
160
- _owner: x
161
- }, (k !== void 0 ? k : null) !== null ? Object.defineProperty(e, "ref", {
162
- enumerable: !1,
163
- get: f
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: X
184
- }), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
185
- }
186
- function O(e, s, m, x, F, X) {
187
- var k = s.children;
188
- if (k !== void 0)
189
- if (x)
190
- if (I(k)) {
191
- for (x = 0; x < k.length; x++)
192
- N(k[x]);
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 N(k);
199
- if (M.call(s, "key")) {
200
- k = t(e);
201
- var W = Object.keys(s).filter(function(ye) {
202
- return ye !== "key";
203
- });
204
- x = 0 < W.length ? "{key: someKey, " + W.join(": ..., ") + ": ...}" : "{key: someKey}", K[k + x] || (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
- x,
212
- k,
213
- W,
214
- k
215
- ), K[k + x] = !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, m !== void 0 && (n(m), k = "" + m), u(s) && (n(s.key), k = "" + s.key), "key" in s) {
218
- m = {};
219
- for (var oe in s)
220
- oe !== "key" && (m[oe] = s[oe]);
221
- } else m = s;
222
- return k && b(
223
- m,
224
- typeof e == "function" ? e.displayName || e.name || "Unknown" : e
225
- ), p(
226
- e,
227
- k,
228
- m,
229
- l(),
230
- F,
231
- X
232
- );
233
615
  }
234
- function N(e) {
235
- S(e) ? e._store && (e._store.validated = 1) : typeof e == "object" && e !== null && e.$$typeof === V && (e._payload.status === "fulfilled" ? S(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 S(e) {
238
- return typeof e == "object" && e !== null && e.$$typeof === $;
619
+ function Pt(e, r, o) {
620
+ return at(e, r, o, !1);
239
621
  }
240
- var T = q, $ = Symbol.for("react.transitional.element"), g = Symbol.for("react.portal"), y = Symbol.for("react.fragment"), E = Symbol.for("react.strict_mode"), j = Symbol.for("react.profiler"), C = Symbol.for("react.consumer"), R = Symbol.for("react.context"), _ = Symbol.for("react.forward_ref"), L = Symbol.for("react.suspense"), P = Symbol.for("react.suspense_list"), ce = Symbol.for("react.memo"), V = Symbol.for("react.lazy"), ue = Symbol.for("react.activity"), Z = Symbol.for("react.client.reference"), B = T.__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
- T = {
244
- react_stack_bottom_frame: function(e) {
245
- return e();
246
- }
247
- };
248
- var fe, re = {}, de = T.react_stack_bottom_frame.bind(
249
- T,
250
- i
251
- )(), ne = H(a(i)), K = {};
252
- ie.Fragment = y, ie.jsx = function(e, s, m) {
253
- var x = 1e4 > B.recentlyCreatedOwnerStacks++;
254
- return O(
255
- e,
256
- s,
257
- m,
258
- !1,
259
- x ? Error("react-stack-top-frame") : de,
260
- x ? H(a(e)) : ne
261
- );
262
- }, ie.jsxs = function(e, s, m) {
263
- var x = 1e4 > B.recentlyCreatedOwnerStacks++;
264
- return O(
265
- e,
266
- s,
267
- m,
268
- !0,
269
- x ? Error("react-stack-top-frame") : de,
270
- x ? H(a(e)) : ne
271
- );
272
- };
273
- })()), ie;
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 Le() {
277
- return we || (we = 1, process.env.NODE_ENV === "production" ? _e.exports = De() : _e.exports = $e()), _e.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 c = Le();
280
- const Fe = "_primaryButton_uyzzr_1", We = "_primaryButtonDisabled_uyzzr_34", ze = "_spinner_uyzzr_42", xe = {
281
- primaryButton: Fe,
282
- primaryButtonDisabled: We,
283
- spinner: ze
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
284
638
  };
285
- var Pe = {
639
+ var pt = {
286
640
  color: void 0,
287
641
  size: void 0,
288
642
  className: void 0,
289
643
  style: void 0,
290
644
  attr: void 0
291
- }, Oe = q.createContext && /* @__PURE__ */ q.createContext(Pe), Ye = ["attr", "size", "title"];
292
- function qe(t, r) {
645
+ }, lt = X.createContext && /* @__PURE__ */ X.createContext(pt), Mt = ["attr", "size", "title"];
646
+ function Ut(t, n) {
293
647
  if (t == null) return {};
294
- var n, a, l = Ve(t, r);
648
+ var a, i, f = Kt(t, n);
295
649
  if (Object.getOwnPropertySymbols) {
296
- var i = Object.getOwnPropertySymbols(t);
297
- for (a = 0; a < i.length; a++) n = i[a], r.indexOf(n) === -1 && {}.propertyIsEnumerable.call(t, n) && (l[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]);
298
652
  }
299
- return l;
653
+ return f;
300
654
  }
301
- function Ve(t, r) {
655
+ function Kt(t, n) {
302
656
  if (t == null) return {};
303
- var n = {};
304
- for (var a in t) if ({}.hasOwnProperty.call(t, a)) {
305
- if (r.indexOf(a) !== -1) continue;
306
- n[a] = t[a];
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];
307
661
  }
308
- return n;
662
+ return a;
309
663
  }
310
- function me() {
311
- return me = Object.assign ? Object.assign.bind() : function(t) {
312
- for (var r = 1; r < arguments.length; r++) {
313
- var n = arguments[r];
314
- for (var a in n) ({}).hasOwnProperty.call(n, a) && (t[a] = n[a]);
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]);
315
669
  }
316
670
  return t;
317
- }, me.apply(null, arguments);
671
+ }, $e.apply(null, arguments);
318
672
  }
319
- function Ee(t, r) {
320
- var n = Object.keys(t);
673
+ function ct(t, n) {
674
+ var a = Object.keys(t);
321
675
  if (Object.getOwnPropertySymbols) {
322
- var a = Object.getOwnPropertySymbols(t);
323
- r && (a = a.filter(function(l) {
324
- return Object.getOwnPropertyDescriptor(t, l).enumerable;
325
- })), n.push.apply(n, a);
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);
326
680
  }
327
- return n;
681
+ return a;
328
682
  }
329
- function ve(t) {
330
- for (var r = 1; r < arguments.length; r++) {
331
- var n = arguments[r] != null ? arguments[r] : {};
332
- r % 2 ? Ee(Object(n), !0).forEach(function(a) {
333
- Me(t, a, n[a]);
334
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : Ee(Object(n)).forEach(function(a) {
335
- Object.defineProperty(t, a, Object.getOwnPropertyDescriptor(n, a));
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));
336
690
  });
337
691
  }
338
692
  return t;
339
693
  }
340
- function Me(t, r, n) {
341
- return (r = He(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;
342
696
  }
343
- function He(t) {
344
- var r = Ue(t, "string");
345
- return typeof r == "symbol" ? r : r + "";
697
+ function Jt(t) {
698
+ var n = Gt(t, "string");
699
+ return typeof n == "symbol" ? n : n + "";
346
700
  }
347
- function Ue(t, r) {
701
+ function Gt(t, n) {
348
702
  if (typeof t != "object" || !t) return t;
349
- var n = t[Symbol.toPrimitive];
350
- if (n !== void 0) {
351
- var a = n.call(t, r);
352
- if (typeof a != "object") return a;
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;
353
707
  throw new TypeError("@@toPrimitive must return a primitive value.");
354
708
  }
355
- return (r === "string" ? String : Number)(t);
709
+ return (n === "string" ? String : Number)(t);
356
710
  }
357
- function Se(t) {
358
- return t && t.map((r, n) => /* @__PURE__ */ q.createElement(r.tag, ve({
359
- key: n
360
- }, r.attr), Se(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)));
361
715
  }
362
- function be(t) {
363
- return (r) => /* @__PURE__ */ q.createElement(Je, me({
364
- attr: ve({}, t.attr)
365
- }, r), Se(t.child));
716
+ function Le(t) {
717
+ return (n) => /* @__PURE__ */ X.createElement(Xt, $e({
718
+ attr: Fe({}, t.attr)
719
+ }, n), vt(t.child));
366
720
  }
367
- function Je(t) {
368
- var r = (n) => {
721
+ function Xt(t) {
722
+ var n = (a) => {
369
723
  var {
370
- attr: a,
371
- size: l,
372
- title: i
373
- } = t, u = qe(t, Ye), b = l || n.size || "1em", f;
374
- return n.className && (f = n.className), t.className && (f = (f ? f + " " : "") + t.className), /* @__PURE__ */ q.createElement("svg", me({
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({
375
729
  stroke: "currentColor",
376
730
  fill: "currentColor",
377
731
  strokeWidth: "0"
378
- }, n.attr, a, u, {
379
- className: f,
380
- style: ve(ve({
381
- color: t.color || n.color
382
- }, n.style), t.style),
383
- height: b,
384
- width: b,
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,
385
739
  xmlns: "http://www.w3.org/2000/svg"
386
- }), i && /* @__PURE__ */ q.createElement("title", null, i), t.children);
740
+ }), m && /* @__PURE__ */ X.createElement("title", null, m), t.children);
387
741
  };
388
- return Oe !== void 0 ? /* @__PURE__ */ q.createElement(Oe.Consumer, null, (n) => r(n)) : r(Pe);
742
+ return lt !== void 0 ? /* @__PURE__ */ X.createElement(lt.Consumer, null, (a) => n(a)) : n(pt);
389
743
  }
390
- function Ge(t) {
391
- return be({ attr: { viewBox: "0 0 24 24", fill: "none" }, child: [{ tag: "path", attr: { opacity: "0.2", fillRule: "evenodd", clipRule: "evenodd", d: "M12 19C15.866 19 19 15.866 19 12C19 8.13401 15.866 5 12 5C8.13401 5 5 8.13401 5 12C5 15.866 8.13401 19 12 19ZM12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z", fill: "currentColor" }, child: [] }, { tag: "path", attr: { d: "M2 12C2 6.47715 6.47715 2 12 2V5C8.13401 5 5 8.13401 5 12H2Z", fill: "currentColor" }, child: [] }] })(t);
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);
392
746
  }
393
- const Ut = ({
394
- children: t,
395
- disabled: r = !1,
396
- loading: n = !1,
397
- onClick: a,
398
- className: l = "",
399
- "data-testid": i,
400
- ...u
747
+ const ln = ({
748
+ label: t,
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
401
757
  }) => {
402
- const b = [
403
- xe.primaryButton,
404
- r ? xe.primaryButtonDisabled : "",
405
- l
406
- ].filter(Boolean).join(" ");
407
- return /* @__PURE__ */ c.jsxs(
758
+ const d = [
759
+ he.primaryButton,
760
+ n ? he.primaryButtonDisabled : "",
761
+ y
762
+ ].filter(Boolean).join(" "), b = !!t;
763
+ return /* @__PURE__ */ u.jsxs(
408
764
  "button",
409
765
  {
410
766
  type: "button",
411
- className: b,
412
- disabled: r || n,
413
- onClick: a,
414
- "data-testid": i,
415
- ...u,
767
+ className: d,
768
+ disabled: n || a,
769
+ onClick: m,
770
+ "data-testid": j,
771
+ ...l,
416
772
  children: [
417
- n && /* @__PURE__ */ c.jsx(Ge, { className: xe.spinner, size: 12 }),
418
- t
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 }),
776
+ t,
777
+ i && f === "right" && /* @__PURE__ */ u.jsx("span", { className: he.iconRight, children: i })
778
+ ] }) : i && /* @__PURE__ */ u.jsx("span", { className: he.iconOnly, children: i })
419
779
  ]
420
780
  }
421
781
  );
422
- }, Ze = "_secondaryButton_1s7ft_1", Ke = "_secondaryButtonDisabled_1s7ft_33", Re = {
423
- secondaryButton: Ze,
424
- secondaryButtonDisabled: Ke
425
- }, Jt = ({
426
- children: t,
427
- disabled: r = !1,
428
- onClick: n,
429
- className: a = "",
430
- "data-testid": l,
431
- ...i
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 = ({
789
+ label: t,
790
+ disabled: n = !1,
791
+ icon: a,
792
+ iconPos: i = "left",
793
+ onClick: f,
794
+ className: m = "",
795
+ "data-testid": y,
796
+ ...j
432
797
  }) => {
433
- const u = [
434
- Re.secondaryButton,
435
- r ? Re.secondaryButtonDisabled : "",
436
- a
437
- ].filter(Boolean).join(" ");
438
- return /* @__PURE__ */ c.jsx(
798
+ const l = [
799
+ Ee.secondaryButton,
800
+ n ? Ee.secondaryButtonDisabled : "",
801
+ m
802
+ ].filter(Boolean).join(" "), d = !!t;
803
+ return /* @__PURE__ */ u.jsx(
439
804
  "button",
440
805
  {
441
806
  type: "button",
442
- className: u,
443
- disabled: r,
444
- onClick: n,
445
- "data-testid": l,
446
- ...i,
447
- children: t
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 }),
814
+ t,
815
+ a && i === "right" && /* @__PURE__ */ u.jsx("span", { className: Ee.iconRight, children: a })
816
+ ] }) : a && /* @__PURE__ */ u.jsx("span", { className: Ee.iconOnly, children: a })
448
817
  }
449
818
  );
450
- }, Xe = "_tabsContainer_m3c4e_1", Qe = "_tabsHeader_m3c4e_7", et = "_tabItem_m3c4e_13", tt = "_tabContent_m3c4e_29", rt = "_tabLabel_m3c4e_51", nt = "_tabLine_m3c4e_61", ot = "_active_m3c4e_68", at = "_inactive_m3c4e_76", st = "_tabPanels_m3c4e_84", D = {
451
- tabsContainer: Xe,
452
- tabsHeader: Qe,
453
- tabItem: et,
454
- tabContent: tt,
455
- tabLabel: rt,
456
- tabLine: nt,
457
- active: ot,
458
- inactive: at,
459
- tabPanels: st
460
- }, Gt = ({
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 = ({
461
830
  tabs: t,
462
- activeTabId: r,
463
- onTabChange: n,
464
- className: a = "",
465
- "data-testid": l,
466
- ...i
831
+ activeTabId: n,
832
+ onTabChange: a,
833
+ className: i = "",
834
+ "data-testid": f,
835
+ ...m
467
836
  }) => {
468
- var b;
469
- const u = [D.tabsContainer, a].filter(Boolean).join(" ");
470
- return /* @__PURE__ */ c.jsxs("div", { className: u, "data-testid": l, ...i, children: [
471
- /* @__PURE__ */ c.jsx("div", { className: D.tabsHeader, children: t.map((f) => {
472
- const p = f.id === r, O = [
473
- D.tabItem,
474
- p ? 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
475
844
  ].filter(Boolean).join(" ");
476
- return /* @__PURE__ */ c.jsxs(
845
+ return /* @__PURE__ */ u.jsxs(
477
846
  "button",
478
847
  {
479
848
  type: "button",
480
- className: O,
481
- onClick: () => n(f.id),
482
- "data-testid": `${l}-tab-${f.id}`,
849
+ className: b,
850
+ onClick: () => a(l.id),
851
+ "data-testid": `${f}-tab-${l.id}`,
483
852
  children: [
484
- /* @__PURE__ */ c.jsx("div", { className: D.tabContent, children: /* @__PURE__ */ c.jsx("span", { className: D.tabLabel, children: f.label }) }),
485
- /* @__PURE__ */ c.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 })
486
855
  ]
487
856
  },
488
- f.id
857
+ l.id
489
858
  );
490
859
  }) }),
491
- /* @__PURE__ */ c.jsx("div", { className: D.tabPanels, children: (b = t.find((f) => f.id === r)) == null ? void 0 : b.content })
860
+ /* @__PURE__ */ u.jsx("div", { className: G.tabPanels, children: (j = t.find((l) => l.id === n)) == null ? void 0 : j.content })
492
861
  ] });
493
862
  };
494
- function lt(t) {
495
- 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);
496
865
  }
497
- function it(t) {
498
- 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);
499
868
  }
500
- function ct(t) {
501
- 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);
502
871
  }
503
- const ut = "_dropdown_1xupi_1", ft = "_label_1xupi_9", dt = "_required_1xupi_18", pt = "_trigger_1xupi_23", _t = "_triggerDisabled_1xupi_47", mt = "_triggerInput_1xupi_56", vt = "_value_1xupi_74", bt = "_placeholder_1xupi_82", yt = "_chevron_1xupi_86", gt = "_open_1xupi_93", xt = "_panel_1xupi_117", ht = "_panelClosing_1xupi_134", jt = "_filterWrapper_1xupi_138", kt = "_filterInput_1xupi_145", wt = "_filterIcon_1xupi_164", Ot = "_list_1xupi_175", Et = "_option_1xupi_184", Rt = "_optionSelected_1xupi_196", Ct = "_optionHighlighted_1xupi_200", Nt = "_optionDisabled_1xupi_204", Tt = "_empty_1xupi_213", Pt = "_disabled_1xupi_220", h = {
504
- dropdown: ut,
505
- label: ft,
506
- required: dt,
507
- trigger: pt,
508
- triggerDisabled: _t,
509
- triggerInput: mt,
510
- value: vt,
511
- placeholder: bt,
512
- chevron: yt,
513
- open: gt,
514
- panel: xt,
515
- panelClosing: ht,
516
- filterWrapper: jt,
517
- filterInput: kt,
518
- filterIcon: wt,
519
- list: Ot,
520
- option: Et,
521
- optionSelected: Rt,
522
- optionHighlighted: Ct,
523
- optionDisabled: Nt,
524
- empty: Tt,
525
- disabled: Pt
526
- }, U = (t, r) => {
527
- const a = t[r];
528
- return a != null ? String(a) : "";
529
- }, te = (t, r) => t[r], A = (t, r) => r == null ? !1 : !!t[r], Zt = ({
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 = ({
530
899
  value: t,
531
- onChange: r,
532
- onEditEnd: n,
533
- options: a,
534
- optionLabel: l = "label",
535
- optionValue: i = "value",
536
- optionDisabled: u,
537
- placeholder: b = "Select",
538
- filter: f = !1,
539
- editable: p = !1,
540
- disabled: O = !1,
541
- required: N = !1,
542
- label: S,
543
- inputId: T,
544
- className: $ = "",
545
- panelClassName: g = "",
546
- valueTemplate: y,
547
- itemTemplate: E,
548
- "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
549
918
  }) => {
550
- const C = a.find(
551
- (o) => te(o, i) === t
552
- ), R = C ? U(C, l) : "", [_, L] = ae(!1), [P, ce] = ae(!1), [V, ue] = ae(""), [Z, B] = ae(R), [M, I] = ae(0), H = ee(null), fe = ee(null), re = ee(null), de = ee(null), ne = ee(null), K = ee(!1), e = Ie(
553
- () => f && !p ? a.filter(
554
- (o) => U(o, l).toLowerCase().includes(V.toLowerCase())
555
- ) : a,
556
- [f, p, a, l, 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]
557
926
  );
558
- se(() => {
559
- p && B(R);
560
- }, [p, t, R]), se(() => {
561
- _ && f && !p && (ue(""), I(0), setTimeout(() => {
562
- var o;
563
- return (o = re.current) == null ? void 0 : o.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();
564
933
  }, 0));
565
- }, [_, f, p]), se(() => {
566
- if (!_) return;
567
- const o = e.findIndex(
568
- (w) => te(w, i) === t
569
- ), d = e.findIndex(
570
- (w) => !A(w, u)
571
- ), v = o >= 0 && !A(e[o], u);
572
- I(v ? o : d >= 0 ? d : 0);
573
- }, [_, t, e, i, u]), se(() => {
574
- const o = ne.current;
575
- o != null && o.scrollIntoView && typeof o.scrollIntoView == "function" && o.scrollIntoView({ block: "nearest" });
576
- }, [M]);
577
- const s = () => {
578
- K.current = !0, ce(!0);
579
- }, m = (o) => {
580
- var d;
581
- (K.current || (d = o.animationName) != null && d.includes("menuOut")) && (K.current = !1, L(!1), ce(!1), p && B(R));
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));
582
951
  };
583
- se(() => {
584
- if (!_ && !P) return;
585
- const o = (d) => {
586
- H.current && !H.current.contains(d.target) && (p && B(R), s());
952
+ Oe(() => {
953
+ if (!O && !q) return;
954
+ const s = (h) => {
955
+ H.current && !H.current.contains(h.target) && (d && K(N), se());
587
956
  };
588
- return document.addEventListener("mousedown", o), () => document.removeEventListener("mousedown", o);
589
- }, [_, P, p, R]);
590
- const x = () => {
591
- O || L((o) => !o);
592
- }, F = (o, d) => {
593
- if (A(o, u)) return;
594
- const v = te(o, i);
595
- p && B(U(o, l)), r == null || r({
596
- value: v ?? null,
597
- originalEvent: d
598
- }), s();
599
- }, X = (o) => {
600
- if (!_) {
601
- if (o.key === "Enter" && p && Z.trim()) {
602
- o.preventDefault();
603
- const d = Z.trim(), v = d.toLowerCase(), w = a.find((Q) => {
604
- const Y = U(Q, l).toLowerCase();
605
- return Y === v || Y.startsWith(v);
606
- }), z = w && !A(w, u) ? te(w, i) : null;
607
- w && !A(w, u) && (B(U(w, l)), r == null || r({
608
- value: z,
609
- originalEvent: o
610
- })), n == null || n({
611
- value: d,
612
- selectedValue: z,
613
- originalEvent: o
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
614
983
  });
615
984
  return;
616
985
  }
617
- (o.key === "Enter" || o.key === " " || o.key === "ArrowDown") && (o.preventDefault(), L(!0));
986
+ (s.key === "Enter" || s.key === " " || s.key === "ArrowDown") && (s.preventDefault(), Z(!0));
618
987
  return;
619
988
  }
620
- if (o.key === "Escape") {
621
- o.preventDefault(), s();
989
+ if (s.key === "Escape") {
990
+ s.preventDefault(), se();
622
991
  return;
623
992
  }
624
- if (o.key === "ArrowDown") {
625
- o.preventDefault(), I((d) => {
626
- for (let v = d + 1; v < e.length; v++)
627
- if (!A(e[v], u))
628
- return v;
629
- return d;
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;
630
999
  });
631
1000
  return;
632
1001
  }
633
- if (o.key === "ArrowUp") {
634
- o.preventDefault(), I((d) => {
635
- for (let v = d - 1; v >= 0; v--)
636
- if (!A(e[v], u))
637
- return v;
638
- return d;
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;
639
1008
  });
640
1009
  return;
641
1010
  }
642
- if (o.key === "Enter") {
643
- if (o.preventDefault(), p) {
644
- const d = Z.trim();
645
- if (d) {
646
- const v = d.toLowerCase(), w = a.find((Q) => {
647
- const Y = U(Q, l).toLowerCase();
648
- return Y === v || Y.startsWith(v);
649
- }), z = w && !A(w, u) ? te(w, i) : null;
650
- w && !A(w, u) && F(w, o), n == null || n({
651
- value: d,
652
- selectedValue: z,
653
- originalEvent: o
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
654
1023
  });
655
1024
  } else
656
- n == null || n({ value: "", selectedValue: null, originalEvent: o });
657
- } else if (e[M]) {
658
- const d = e[M];
659
- A(d, u) || F(d, o);
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);
660
1029
  }
661
1030
  }
662
- }, k = [
663
- h.dropdown,
664
- O ? h.disabled : "",
665
- _ ? h.open : "",
666
- $
667
- ].filter(Boolean).join(" "), W = [
668
- h.trigger,
669
- O ? h.triggerDisabled : ""
670
- ].filter(Boolean).join(" "), oe = [
671
- h.panel,
672
- P ? h.panelClosing : "",
673
- g
674
- ].filter(Boolean).join(" "), ye = Te(), pe = T ?? `dropdown-${ye.replace(/[^a-zA-Z0-9_-]/g, "")}`, ge = `${pe}-panel`;
675
- return /* @__PURE__ */ c.jsxs("div", { className: k, ref: H, "data-testid": j, children: [
676
- S != null && /* @__PURE__ */ c.jsxs("label", { htmlFor: pe, className: h.label, children: [
677
- S,
678
- N && /* @__PURE__ */ c.jsx("span", { className: h.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: "*" })
679
1048
  ] }),
680
- /* @__PURE__ */ c.jsxs(
1049
+ /* @__PURE__ */ u.jsxs(
681
1050
  "div",
682
1051
  {
683
- id: p ? void 0 : pe,
1052
+ id: d ? void 0 : fe,
684
1053
  role: "combobox",
685
- "aria-expanded": _ || P,
1054
+ "aria-expanded": O || q,
686
1055
  "aria-haspopup": "listbox",
687
- "aria-controls": _ || P ? ge : void 0,
688
- "aria-disabled": O,
689
- "aria-label": typeof S == "string" ? S : void 0,
690
- tabIndex: p || O ? -1 : 0,
691
- className: W,
692
- onClick: p ? void 0 : x,
693
- onKeyDown: p ? void 0 : X,
694
- "data-testid": j && !p ? `${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,
695
1064
  children: [
696
- p ? /* @__PURE__ */ c.jsx(
1065
+ d ? /* @__PURE__ */ u.jsx(
697
1066
  "input",
698
1067
  {
699
- ref: de,
700
- id: pe,
1068
+ ref: De,
1069
+ id: fe,
701
1070
  type: "text",
702
- className: h.triggerInput,
703
- value: Z,
704
- onChange: (o) => {
705
- B(o.target.value), !_ && !P && L(!0), I(0);
1071
+ className: E.triggerInput,
1072
+ value: ie,
1073
+ onChange: (s) => {
1074
+ K(s.target.value), !O && !q && Z(!0), B(0);
706
1075
  },
707
1076
  onFocus: () => {
708
- !O && !_ && !P && L(!0);
1077
+ !b && !O && !q && Z(!0);
709
1078
  },
710
- onKeyDown: X,
711
- placeholder: b,
712
- disabled: O,
1079
+ onKeyDown: le,
1080
+ placeholder: j,
1081
+ disabled: b,
713
1082
  "aria-autocomplete": "list",
714
- "aria-controls": _ || P ? ge : void 0,
715
- "aria-expanded": _ || P,
716
- "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
717
1086
  }
718
- ) : /* @__PURE__ */ c.jsx("span", { className: h.value, children: y ? y(C ?? null) : R || /* @__PURE__ */ c.jsx("span", { className: h.placeholder, children: b }) }),
719
- /* @__PURE__ */ c.jsx(
720
- ct,
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,
721
1090
  {
722
- className: h.chevron,
1091
+ className: E.chevron,
723
1092
  "aria-hidden": !0,
724
- onClick: p ? x : void 0
1093
+ onClick: d ? Ne : void 0
725
1094
  }
726
1095
  )
727
1096
  ]
728
1097
  }
729
1098
  ),
730
- (_ || P) && /* @__PURE__ */ c.jsxs(
1099
+ (O || q) && /* @__PURE__ */ u.jsxs(
731
1100
  "div",
732
1101
  {
733
- ref: fe,
734
- id: ge,
735
- className: oe,
1102
+ ref: Te,
1103
+ id: de,
1104
+ className: je,
736
1105
  role: "presentation",
737
- onAnimationEnd: m,
738
- "data-testid": j ? `${j}-panel` : void 0,
1106
+ onAnimationEnd: Ie,
1107
+ "data-testid": v ? `${v}-panel` : void 0,
739
1108
  children: [
740
- f && !p && /* @__PURE__ */ c.jsxs("div", { className: h.filterWrapper, children: [
741
- /* @__PURE__ */ c.jsx(
1109
+ l && !d && /* @__PURE__ */ u.jsxs("div", { className: E.filterWrapper, children: [
1110
+ /* @__PURE__ */ u.jsx(
742
1111
  "input",
743
1112
  {
744
- ref: re,
1113
+ ref: ye,
745
1114
  type: "text",
746
- className: h.filterInput,
747
- value: V,
748
- onChange: (o) => {
749
- ue(o.target.value), I(0);
1115
+ className: E.filterInput,
1116
+ value: ae,
1117
+ onChange: (s) => {
1118
+ Pe(s.target.value), B(0);
750
1119
  },
751
- onKeyDown: (o) => {
752
- o.key === "Escape" && L(!1), o.stopPropagation();
1120
+ onKeyDown: (s) => {
1121
+ s.key === "Escape" && Z(!1), s.stopPropagation();
753
1122
  },
754
1123
  placeholder: "Search...",
755
1124
  "aria-label": "Filter options",
756
1125
  title: "Filter options",
757
- "data-testid": j ? `${j}-filter` : void 0
1126
+ "data-testid": v ? `${v}-filter` : void 0
758
1127
  }
759
1128
  ),
760
- /* @__PURE__ */ c.jsx(lt, { className: h.filterIcon, "aria-hidden": !0 })
1129
+ /* @__PURE__ */ u.jsx(pr, { className: E.filterIcon, "aria-hidden": !0 })
761
1130
  ] }),
762
- /* @__PURE__ */ c.jsx("ul", { className: h.list, role: "listbox", "aria-label": "Options", children: e.length === 0 ? /* @__PURE__ */ c.jsx("li", { className: h.empty, children: "No results" }) : e.map((o, d) => {
763
- const v = te(o, i), w = U(o, l), z = A(o, u), Q = t === v, Y = d === M, Ae = v != null ? String(v) : `option-${d}`;
764
- return /* @__PURE__ */ c.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(
765
1134
  "li",
766
1135
  {
767
- ref: Y ? ne : void 0,
1136
+ ref: V ? ge : void 0,
768
1137
  role: "option",
769
- "aria-selected": Q,
770
- "aria-disabled": z,
1138
+ "aria-selected": J,
1139
+ "aria-disabled": M,
771
1140
  className: [
772
- h.option,
773
- Q ? h.optionSelected : "",
774
- Y ? h.optionHighlighted : "",
775
- z ? h.optionDisabled : ""
1141
+ E.option,
1142
+ J ? E.optionSelected : "",
1143
+ V ? E.optionHighlighted : "",
1144
+ M ? E.optionDisabled : ""
776
1145
  ].filter(Boolean).join(" "),
777
- onMouseEnter: () => !z && I(d),
778
- onClick: (Be) => F(o, Be),
779
- "data-testid": j ? `${j}-option-${d}` : void 0,
780
- children: E ? E(o) : w
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
781
1150
  },
782
1151
  Ae
783
1152
  );
@@ -786,153 +1155,185 @@ const ut = "_dropdown_1xupi_1", ft = "_label_1xupi_9", dt = "_required_1xupi_18"
786
1155
  }
787
1156
  )
788
1157
  ] });
789
- }, St = "_inputText_1crp5_1", At = "_label_1crp5_9", Bt = "_required_1crp5_20", It = "_tooltipIcon_1crp5_25", Dt = "_input_1crp5_1", $t = "_inputTextarea_1crp5_72", Lt = "_inputTextDisabled_1crp5_79", J = {
790
- inputText: St,
791
- label: At,
792
- required: Bt,
793
- tooltipIcon: It,
794
- input: Dt,
795
- inputTextarea: $t,
796
- inputTextDisabled: Lt
797
- }, Kt = ({
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 = ({
798
1167
  label: t,
799
- tooltip: r,
800
- required: n = !1,
801
- inputId: a,
802
- textarea: l = !1,
803
- rows: i,
804
- className: u = "",
805
- "data-testid": b,
806
- disabled: f = !1,
807
- ...p
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
808
1177
  }) => {
809
- const { type: O = "text", ...N } = p, S = Te(), T = a || `input-text-${S.replace(/[^a-zA-Z0-9_-]/g, "")}`, $ = [
810
- J.inputText,
811
- f ? J.inputTextDisabled : "",
812
- u
813
- ].filter(Boolean).join(" "), g = N["aria-invalid"];
814
- let y;
815
- g === void 0 ? y = void 0 : g === !0 ? y = "true" : g === !1 ? y = "false" : y = g;
816
- const E = n ? { "aria-required": "true" } : { "aria-required": "false" }, j = y === void 0 ? {} : { "aria-invalid": y }, C = [J.input, l ? J.inputTextarea : ""].filter(Boolean).join(" "), R = {
817
- id: T,
818
- className: C,
819
- disabled: f,
820
- ...E,
821
- ...j,
822
- "data-testid": b ? `${b}-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
823
1192
  };
824
- return /* @__PURE__ */ c.jsxs("div", { className: $, "data-testid": b, children: [
825
- t != null && /* @__PURE__ */ c.jsxs("label", { htmlFor: T, 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: [
826
1195
  t,
827
- n && /* @__PURE__ */ c.jsx("span", { className: J.required, children: "*" }),
828
- r != null && /* @__PURE__ */ c.jsx(
1196
+ a && /* @__PURE__ */ u.jsx("span", { className: re.required, children: "*" }),
1197
+ n != null && /* @__PURE__ */ u.jsx(
829
1198
  "span",
830
1199
  {
831
- className: J.tooltipIcon,
832
- title: r,
833
- "aria-label": r,
834
- children: /* @__PURE__ */ c.jsx(it, { "aria-hidden": !0 })
1200
+ className: re.tooltipIcon,
1201
+ title: n,
1202
+ "aria-label": n,
1203
+ children: /* @__PURE__ */ u.jsx(vr, { "aria-hidden": !0 })
835
1204
  }
836
1205
  )
837
1206
  ] }),
838
- l ? /* @__PURE__ */ c.jsx(
1207
+ f ? /* @__PURE__ */ u.jsx(
839
1208
  "textarea",
840
1209
  {
1210
+ ...D,
841
1211
  ...N,
842
- ...R,
843
- rows: i ?? 3
1212
+ rows: m ?? 3
844
1213
  }
845
- ) : /* @__PURE__ */ c.jsx("input", { ...N, ...R, type: O })
1214
+ ) : /* @__PURE__ */ u.jsx("input", { ...D, ...N, type: b })
846
1215
  ] });
847
- }, Ft = "_selectButton_1u3fo_1", Wt = "_selectButtonDisabled_1u3fo_9", zt = "_selectButtonInvalid_1u3fo_14", Yt = "_button_1u3fo_14", qt = "_buttonFirst_1u3fo_47", Vt = "_buttonLast_1u3fo_51", Mt = "_buttonSelected_1u3fo_59", G = {
848
- selectButton: Ft,
849
- selectButtonDisabled: Wt,
850
- selectButtonInvalid: zt,
851
- button: Yt,
852
- buttonFirst: qt,
853
- buttonLast: Vt,
854
- buttonSelected: Mt
855
- }, Ce = (t, r) => {
856
- const a = t[r];
857
- return a != null ? String(a) : "";
858
- }, he = (t, r) => t[r], Ne = (t, r) => r == null ? !1 : !!t[r], Xt = ({
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 = ({
859
1228
  value: t,
860
- onChange: r,
861
- options: n,
862
- optionLabel: a = "label",
863
- optionValue: l = "value",
864
- optionDisabled: i,
865
- multiple: u = !1,
866
- itemTemplate: b,
867
- disabled: f = !1,
868
- invalid: p = !1,
869
- className: O = "",
870
- "data-testid": N
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
871
1240
  }) => {
872
- const S = (g) => {
873
- const y = he(g, l);
874
- return u && Array.isArray(t) ? t.includes(y) : t === y;
875
- }, T = (g, y) => {
876
- if (f || Ne(g, i)) return;
877
- const E = he(g, l);
878
- if (E === void 0) return;
879
- let j;
880
- if (u) {
881
- const C = Array.isArray(t) ? t : [];
882
- j = C.includes(E) ? C.filter((_) => _ !== E) : [...C, E];
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];
883
1252
  } else
884
- j = t === E ? null : E;
885
- r == null || r({
886
- value: j,
887
- originalEvent: y
1253
+ v = t === S ? null : S;
1254
+ n == null || n({
1255
+ value: v,
1256
+ originalEvent: k
888
1257
  });
889
- }, $ = [
890
- G.selectButton,
891
- f ? G.selectButtonDisabled : "",
892
- p ? G.selectButtonInvalid : "",
893
- O
1258
+ }, Q = [
1259
+ ne.selectButton,
1260
+ l ? ne.selectButtonDisabled : "",
1261
+ d ? ne.selectButtonInvalid : "",
1262
+ b
894
1263
  ].filter(Boolean).join(" ");
895
- return /* @__PURE__ */ c.jsx(
1264
+ return /* @__PURE__ */ u.jsx(
896
1265
  "div",
897
1266
  {
898
- className: $,
1267
+ className: Q,
899
1268
  role: "group",
900
- "aria-disabled": f,
901
- "data-testid": N,
902
- children: n.map((g, y) => {
903
- const E = he(g, l), j = E != null ? String(E) : `option-${y}`, C = Ne(g, i), R = S(g);
904
- return /* @__PURE__ */ c.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(
905
1274
  "button",
906
1275
  {
907
1276
  type: "button",
908
- "aria-pressed": R,
909
- "aria-disabled": C || f,
910
- "aria-label": Ce(g, a),
911
- disabled: f || C,
1277
+ "aria-pressed": N,
1278
+ "aria-disabled": F || l,
1279
+ "aria-label": ut(C, i),
1280
+ disabled: l || F,
912
1281
  className: [
913
- G.button,
914
- R ? G.buttonSelected : "",
915
- y === 0 ? G.buttonFirst : "",
916
- y === n.length - 1 ? G.buttonLast : ""
1282
+ ne.button,
1283
+ N ? ne.buttonSelected : "",
1284
+ k === 0 ? ne.buttonFirst : "",
1285
+ k === a.length - 1 ? ne.buttonLast : ""
917
1286
  ].filter(Boolean).join(" "),
918
- onClick: (_) => T(g, _),
919
- onKeyDown: (_) => {
920
- (_.key === " " || _.key === "Enter") && (_.preventDefault(), T(g, _));
1287
+ onClick: (O) => Y(C, O),
1288
+ onKeyDown: (O) => {
1289
+ (O.key === " " || O.key === "Enter") && (O.preventDefault(), Y(C, O));
921
1290
  },
922
- "data-testid": N ? `${N}-option-${y}` : void 0,
923
- children: b ? b(g) : Ce(g, a)
1291
+ "data-testid": D ? `${D}-option-${k}` : void 0,
1292
+ children: j ? j(C) : ut(C, i)
924
1293
  },
925
- j
1294
+ v
926
1295
  );
927
1296
  })
928
1297
  }
929
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 });
930
1329
  };
931
1330
  export {
932
- Zt as Dropdown,
933
- Kt as InputText,
934
- Ut as PrimaryButton,
935
- Jt as SecondaryButton,
936
- Xt as SelectButton,
937
- Gt 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
938
1339
  };