@emporix/component-library 1.1.0 → 1.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import we from "react";
1
+ import w from "react";
2
2
  var U = { exports: {} }, $ = {};
3
3
  /**
4
4
  * @license React
@@ -9,19 +9,19 @@ var U = { exports: {} }, $ = {};
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 pr() {
14
- if (je) return $;
15
- je = 1;
16
- var h = we, p = Symbol.for("react.element"), C = Symbol.for("react.fragment"), _ = Object.prototype.hasOwnProperty, m = h.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, E = { key: !0, ref: !0, __self: !0, __source: !0 };
17
- function g(R, u, P) {
18
- var f, T = {}, x = null, W = null;
19
- P !== void 0 && (x = "" + P), u.key !== void 0 && (x = "" + u.key), u.ref !== void 0 && (W = u.ref);
20
- for (f in u) _.call(u, f) && !E.hasOwnProperty(f) && (T[f] = u[f]);
21
- if (R && R.defaultProps) for (f in u = R.defaultProps, u) T[f] === void 0 && (T[f] = u[f]);
22
- return { $$typeof: p, type: R, key: x, ref: W, props: T, _owner: m.current };
12
+ var xe;
13
+ function hr() {
14
+ if (xe) return $;
15
+ xe = 1;
16
+ var n = w, a = Symbol.for("react.element"), i = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, p = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, m = { key: !0, ref: !0, __self: !0, __source: !0 };
17
+ function R(y, f, T) {
18
+ var _, j = {}, S = null, W = null;
19
+ T !== void 0 && (S = "" + T), f.key !== void 0 && (S = "" + f.key), f.ref !== void 0 && (W = f.ref);
20
+ for (_ in f) s.call(f, _) && !m.hasOwnProperty(_) && (j[_] = f[_]);
21
+ if (y && y.defaultProps) for (_ in f = y.defaultProps, f) j[_] === void 0 && (j[_] = f[_]);
22
+ return { $$typeof: a, type: y, key: S, ref: W, props: j, _owner: p.current };
23
23
  }
24
- return $.Fragment = C, $.jsx = g, $.jsxs = g, $;
24
+ return $.Fragment = i, $.jsx = R, $.jsxs = R, $;
25
25
  }
26
26
  var L = {};
27
27
  /**
@@ -33,91 +33,91 @@ var L = {};
33
33
  * This source code is licensed under the MIT license found in the
34
34
  * LICENSE file in the root directory of this source tree.
35
35
  */
36
- var Oe;
37
- function br() {
38
- return Oe || (Oe = 1, process.env.NODE_ENV !== "production" && (function() {
39
- var h = we, p = Symbol.for("react.element"), C = Symbol.for("react.portal"), _ = Symbol.for("react.fragment"), m = Symbol.for("react.strict_mode"), E = Symbol.for("react.profiler"), g = Symbol.for("react.provider"), R = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), P = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), T = Symbol.for("react.memo"), x = Symbol.for("react.lazy"), W = Symbol.for("react.offscreen"), Q = Symbol.iterator, ke = "@@iterator";
40
- function De(e) {
36
+ var Se;
37
+ function Er() {
38
+ return Se || (Se = 1, process.env.NODE_ENV !== "production" && (function() {
39
+ var n = w, a = Symbol.for("react.element"), i = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), p = Symbol.for("react.strict_mode"), m = Symbol.for("react.profiler"), R = Symbol.for("react.provider"), y = Symbol.for("react.context"), f = Symbol.for("react.forward_ref"), T = Symbol.for("react.suspense"), _ = Symbol.for("react.suspense_list"), j = Symbol.for("react.memo"), S = Symbol.for("react.lazy"), W = Symbol.for("react.offscreen"), ne = Symbol.iterator, Ne = "@@iterator";
40
+ function $e(e) {
41
41
  if (e === null || typeof e != "object")
42
42
  return null;
43
- var r = Q && e[Q] || e[ke];
43
+ var r = ne && e[ne] || e[Ne];
44
44
  return typeof r == "function" ? r : null;
45
45
  }
46
- var D = h.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
47
- function d(e) {
46
+ var F = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
47
+ function g(e) {
48
48
  {
49
- for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
50
- t[n - 1] = arguments[n];
51
- Fe("error", e, t);
49
+ for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), o = 1; o < r; o++)
50
+ t[o - 1] = arguments[o];
51
+ Le("error", e, t);
52
52
  }
53
53
  }
54
- function Fe(e, r, t) {
54
+ function Le(e, r, t) {
55
55
  {
56
- var n = D.ReactDebugCurrentFrame, i = n.getStackAddendum();
57
- i !== "" && (r += "%s", t = t.concat([i]));
58
- var s = t.map(function(o) {
59
- return String(o);
56
+ var o = F.ReactDebugCurrentFrame, c = o.getStackAddendum();
57
+ c !== "" && (r += "%s", t = t.concat([c]));
58
+ var d = t.map(function(l) {
59
+ return String(l);
60
60
  });
61
- s.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, s);
61
+ d.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, d);
62
62
  }
63
63
  }
64
- var Ae = !1, Be = !1, Ie = !1, $e = !1, Le = !1, ee;
65
- ee = Symbol.for("react.module.reference");
66
- function We(e) {
67
- return !!(typeof e == "string" || typeof e == "function" || e === _ || e === E || Le || e === m || e === P || e === f || $e || e === W || Ae || Be || Ie || typeof e == "object" && e !== null && (e.$$typeof === x || e.$$typeof === T || e.$$typeof === g || e.$$typeof === R || e.$$typeof === u || // This needs to include all possible module reference object
64
+ var We = !1, Ye = !1, Me = !1, Ve = !1, ze = !1, ae;
65
+ ae = Symbol.for("react.module.reference");
66
+ function Ue(e) {
67
+ return !!(typeof e == "string" || typeof e == "function" || e === s || e === m || ze || e === p || e === T || e === _ || Ve || e === W || We || Ye || Me || typeof e == "object" && e !== null && (e.$$typeof === S || e.$$typeof === j || e.$$typeof === R || e.$$typeof === y || e.$$typeof === f || // This needs to include all possible module reference object
68
68
  // types supported by any Flight configuration anywhere since
69
69
  // we don't know which Flight build this will end up being used
70
70
  // with.
71
- e.$$typeof === ee || e.getModuleId !== void 0));
71
+ e.$$typeof === ae || e.getModuleId !== void 0));
72
72
  }
73
- function Ye(e, r, t) {
74
- var n = e.displayName;
75
- if (n)
76
- return n;
77
- var i = r.displayName || r.name || "";
78
- return i !== "" ? t + "(" + i + ")" : t;
73
+ function Je(e, r, t) {
74
+ var o = e.displayName;
75
+ if (o)
76
+ return o;
77
+ var c = r.displayName || r.name || "";
78
+ return c !== "" ? t + "(" + c + ")" : t;
79
79
  }
80
- function re(e) {
80
+ function ie(e) {
81
81
  return e.displayName || "Context";
82
82
  }
83
- function S(e) {
83
+ function x(e) {
84
84
  if (e == null)
85
85
  return null;
86
- if (typeof e.tag == "number" && d("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
86
+ if (typeof e.tag == "number" && g("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
87
87
  return e.displayName || e.name || null;
88
88
  if (typeof e == "string")
89
89
  return e;
90
90
  switch (e) {
91
- case _:
91
+ case s:
92
92
  return "Fragment";
93
- case C:
93
+ case i:
94
94
  return "Portal";
95
- case E:
96
- return "Profiler";
97
95
  case m:
96
+ return "Profiler";
97
+ case p:
98
98
  return "StrictMode";
99
- case P:
99
+ case T:
100
100
  return "Suspense";
101
- case f:
101
+ case _:
102
102
  return "SuspenseList";
103
103
  }
104
104
  if (typeof e == "object")
105
105
  switch (e.$$typeof) {
106
- case R:
106
+ case y:
107
107
  var r = e;
108
- return re(r) + ".Consumer";
109
- case g:
108
+ return ie(r) + ".Consumer";
109
+ case R:
110
110
  var t = e;
111
- return re(t._context) + ".Provider";
112
- case u:
113
- return Ye(e, e.render, "ForwardRef");
114
- case T:
115
- var n = e.displayName || null;
116
- return n !== null ? n : S(e.type) || "Memo";
117
- case x: {
118
- var i = e, s = i._payload, o = i._init;
111
+ return ie(t._context) + ".Provider";
112
+ case f:
113
+ return Je(e, e.render, "ForwardRef");
114
+ case j:
115
+ var o = e.displayName || null;
116
+ return o !== null ? o : x(e.type) || "Memo";
117
+ case S: {
118
+ var c = e, d = c._payload, l = c._init;
119
119
  try {
120
- return S(o(s));
120
+ return x(l(d));
121
121
  } catch {
122
122
  return null;
123
123
  }
@@ -125,18 +125,18 @@ function br() {
125
125
  }
126
126
  return null;
127
127
  }
128
- var w = Object.assign, B = 0, te, ne, ae, oe, ie, se, ue;
129
- function le() {
128
+ var D = Object.assign, I = 0, oe, se, ue, le, ce, fe, de;
129
+ function ve() {
130
130
  }
131
- le.__reactDisabledLog = !0;
132
- function Ne() {
131
+ ve.__reactDisabledLog = !0;
132
+ function qe() {
133
133
  {
134
- if (B === 0) {
135
- te = console.log, ne = console.info, ae = console.warn, oe = console.error, ie = console.group, se = console.groupCollapsed, ue = console.groupEnd;
134
+ if (I === 0) {
135
+ oe = console.log, se = console.info, ue = console.warn, le = console.error, ce = console.group, fe = console.groupCollapsed, de = console.groupEnd;
136
136
  var e = {
137
137
  configurable: !0,
138
138
  enumerable: !0,
139
- value: le,
139
+ value: ve,
140
140
  writable: !0
141
141
  };
142
142
  Object.defineProperties(console, {
@@ -149,138 +149,138 @@ function br() {
149
149
  groupEnd: e
150
150
  });
151
151
  }
152
- B++;
152
+ I++;
153
153
  }
154
154
  }
155
- function Ve() {
155
+ function Ke() {
156
156
  {
157
- if (B--, B === 0) {
157
+ if (I--, I === 0) {
158
158
  var e = {
159
159
  configurable: !0,
160
160
  enumerable: !0,
161
161
  writable: !0
162
162
  };
163
163
  Object.defineProperties(console, {
164
- log: w({}, e, {
165
- value: te
164
+ log: D({}, e, {
165
+ value: oe
166
166
  }),
167
- info: w({}, e, {
168
- value: ne
167
+ info: D({}, e, {
168
+ value: se
169
169
  }),
170
- warn: w({}, e, {
171
- value: ae
170
+ warn: D({}, e, {
171
+ value: ue
172
172
  }),
173
- error: w({}, e, {
174
- value: oe
173
+ error: D({}, e, {
174
+ value: le
175
175
  }),
176
- group: w({}, e, {
177
- value: ie
176
+ group: D({}, e, {
177
+ value: ce
178
178
  }),
179
- groupCollapsed: w({}, e, {
180
- value: se
179
+ groupCollapsed: D({}, e, {
180
+ value: fe
181
181
  }),
182
- groupEnd: w({}, e, {
183
- value: ue
182
+ groupEnd: D({}, e, {
183
+ value: de
184
184
  })
185
185
  });
186
186
  }
187
- B < 0 && d("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
187
+ I < 0 && g("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
188
188
  }
189
189
  }
190
- var J = D.ReactCurrentDispatcher, q;
190
+ var K = F.ReactCurrentDispatcher, H;
191
191
  function Y(e, r, t) {
192
192
  {
193
- if (q === void 0)
193
+ if (H === void 0)
194
194
  try {
195
195
  throw Error();
196
- } catch (i) {
197
- var n = i.stack.trim().match(/\n( *(at )?)/);
198
- q = n && n[1] || "";
196
+ } catch (c) {
197
+ var o = c.stack.trim().match(/\n( *(at )?)/);
198
+ H = o && o[1] || "";
199
199
  }
200
200
  return `
201
- ` + q + e;
201
+ ` + H + e;
202
202
  }
203
203
  }
204
- var K = !1, N;
204
+ var G = !1, M;
205
205
  {
206
- var Me = typeof WeakMap == "function" ? WeakMap : Map;
207
- N = new Me();
206
+ var He = typeof WeakMap == "function" ? WeakMap : Map;
207
+ M = new He();
208
208
  }
209
- function ce(e, r) {
210
- if (!e || K)
209
+ function pe(e, r) {
210
+ if (!e || G)
211
211
  return "";
212
212
  {
213
- var t = N.get(e);
213
+ var t = M.get(e);
214
214
  if (t !== void 0)
215
215
  return t;
216
216
  }
217
- var n;
218
- K = !0;
219
- var i = Error.prepareStackTrace;
217
+ var o;
218
+ G = !0;
219
+ var c = Error.prepareStackTrace;
220
220
  Error.prepareStackTrace = void 0;
221
- var s;
222
- s = J.current, J.current = null, Ne();
221
+ var d;
222
+ d = K.current, K.current = null, qe();
223
223
  try {
224
224
  if (r) {
225
- var o = function() {
225
+ var l = function() {
226
226
  throw Error();
227
227
  };
228
- if (Object.defineProperty(o.prototype, "props", {
228
+ if (Object.defineProperty(l.prototype, "props", {
229
229
  set: function() {
230
230
  throw Error();
231
231
  }
232
232
  }), typeof Reflect == "object" && Reflect.construct) {
233
233
  try {
234
- Reflect.construct(o, []);
235
- } catch (b) {
236
- n = b;
234
+ Reflect.construct(l, []);
235
+ } catch (E) {
236
+ o = E;
237
237
  }
238
- Reflect.construct(e, [], o);
238
+ Reflect.construct(e, [], l);
239
239
  } else {
240
240
  try {
241
- o.call();
242
- } catch (b) {
243
- n = b;
241
+ l.call();
242
+ } catch (E) {
243
+ o = E;
244
244
  }
245
- e.call(o.prototype);
245
+ e.call(l.prototype);
246
246
  }
247
247
  } else {
248
248
  try {
249
249
  throw Error();
250
- } catch (b) {
251
- n = b;
250
+ } catch (E) {
251
+ o = E;
252
252
  }
253
253
  e();
254
254
  }
255
- } catch (b) {
256
- if (b && n && typeof b.stack == "string") {
257
- for (var a = b.stack.split(`
258
- `), v = n.stack.split(`
259
- `), l = a.length - 1, c = v.length - 1; l >= 1 && c >= 0 && a[l] !== v[c]; )
260
- c--;
261
- for (; l >= 1 && c >= 0; l--, c--)
262
- if (a[l] !== v[c]) {
263
- if (l !== 1 || c !== 1)
255
+ } catch (E) {
256
+ if (E && o && typeof E.stack == "string") {
257
+ for (var u = E.stack.split(`
258
+ `), h = o.stack.split(`
259
+ `), v = u.length - 1, b = h.length - 1; v >= 1 && b >= 0 && u[v] !== h[b]; )
260
+ b--;
261
+ for (; v >= 1 && b >= 0; v--, b--)
262
+ if (u[v] !== h[b]) {
263
+ if (v !== 1 || b !== 1)
264
264
  do
265
- if (l--, c--, c < 0 || a[l] !== v[c]) {
266
- var y = `
267
- ` + a[l].replace(" at new ", " at ");
268
- return e.displayName && y.includes("<anonymous>") && (y = y.replace("<anonymous>", e.displayName)), typeof e == "function" && N.set(e, y), y;
265
+ if (v--, b--, b < 0 || u[v] !== h[b]) {
266
+ var O = `
267
+ ` + u[v].replace(" at new ", " at ");
268
+ return e.displayName && O.includes("<anonymous>") && (O = O.replace("<anonymous>", e.displayName)), typeof e == "function" && M.set(e, O), O;
269
269
  }
270
- while (l >= 1 && c >= 0);
270
+ while (v >= 1 && b >= 0);
271
271
  break;
272
272
  }
273
273
  }
274
274
  } finally {
275
- K = !1, J.current = s, Ve(), Error.prepareStackTrace = i;
275
+ G = !1, K.current = d, Ke(), Error.prepareStackTrace = c;
276
276
  }
277
- var A = e ? e.displayName || e.name : "", k = A ? Y(A) : "";
278
- return typeof e == "function" && N.set(e, k), k;
277
+ var B = e ? e.displayName || e.name : "", k = B ? Y(B) : "";
278
+ return typeof e == "function" && M.set(e, k), k;
279
279
  }
280
- function Ue(e, r, t) {
281
- return ce(e, !1);
280
+ function Ge(e, r, t) {
281
+ return pe(e, !1);
282
282
  }
283
- function Je(e) {
283
+ function Xe(e) {
284
284
  var r = e.prototype;
285
285
  return !!(r && r.isReactComponent);
286
286
  }
@@ -288,111 +288,111 @@ function br() {
288
288
  if (e == null)
289
289
  return "";
290
290
  if (typeof e == "function")
291
- return ce(e, Je(e));
291
+ return pe(e, Xe(e));
292
292
  if (typeof e == "string")
293
293
  return Y(e);
294
294
  switch (e) {
295
- case P:
295
+ case T:
296
296
  return Y("Suspense");
297
- case f:
297
+ case _:
298
298
  return Y("SuspenseList");
299
299
  }
300
300
  if (typeof e == "object")
301
301
  switch (e.$$typeof) {
302
- case u:
303
- return Ue(e.render);
304
- case T:
302
+ case f:
303
+ return Ge(e.render);
304
+ case j:
305
305
  return V(e.type, r, t);
306
- case x: {
307
- var n = e, i = n._payload, s = n._init;
306
+ case S: {
307
+ var o = e, c = o._payload, d = o._init;
308
308
  try {
309
- return V(s(i), r, t);
309
+ return V(d(c), r, t);
310
310
  } catch {
311
311
  }
312
312
  }
313
313
  }
314
314
  return "";
315
315
  }
316
- var I = Object.prototype.hasOwnProperty, fe = {}, de = D.ReactDebugCurrentFrame;
317
- function M(e) {
316
+ var N = Object.prototype.hasOwnProperty, be = {}, me = F.ReactDebugCurrentFrame;
317
+ function z(e) {
318
318
  if (e) {
319
319
  var r = e._owner, t = V(e.type, e._source, r ? r.type : null);
320
- de.setExtraStackFrame(t);
320
+ me.setExtraStackFrame(t);
321
321
  } else
322
- de.setExtraStackFrame(null);
322
+ me.setExtraStackFrame(null);
323
323
  }
324
- function qe(e, r, t, n, i) {
324
+ function Ze(e, r, t, o, c) {
325
325
  {
326
- var s = Function.call.bind(I);
327
- for (var o in e)
328
- if (s(e, o)) {
329
- var a = void 0;
326
+ var d = Function.call.bind(N);
327
+ for (var l in e)
328
+ if (d(e, l)) {
329
+ var u = void 0;
330
330
  try {
331
- if (typeof e[o] != "function") {
332
- var v = Error((n || "React class") + ": " + t + " type `" + o + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[o] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
333
- throw v.name = "Invariant Violation", v;
331
+ if (typeof e[l] != "function") {
332
+ var h = Error((o || "React class") + ": " + t + " type `" + l + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[l] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
333
+ throw h.name = "Invariant Violation", h;
334
334
  }
335
- a = e[o](r, o, n, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
336
- } catch (l) {
337
- a = l;
335
+ u = e[l](r, l, o, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
336
+ } catch (v) {
337
+ u = v;
338
338
  }
339
- a && !(a instanceof Error) && (M(i), d("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", n || "React class", t, o, typeof a), M(null)), a instanceof Error && !(a.message in fe) && (fe[a.message] = !0, M(i), d("Failed %s type: %s", t, a.message), M(null));
339
+ u && !(u instanceof Error) && (z(c), g("%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).", o || "React class", t, l, typeof u), z(null)), u instanceof Error && !(u.message in be) && (be[u.message] = !0, z(c), g("Failed %s type: %s", t, u.message), z(null));
340
340
  }
341
341
  }
342
342
  }
343
- var Ke = Array.isArray;
344
- function H(e) {
345
- return Ke(e);
343
+ var Qe = Array.isArray;
344
+ function X(e) {
345
+ return Qe(e);
346
346
  }
347
- function He(e) {
347
+ function er(e) {
348
348
  {
349
349
  var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
350
350
  return t;
351
351
  }
352
352
  }
353
- function Ge(e) {
353
+ function rr(e) {
354
354
  try {
355
- return ve(e), !1;
355
+ return ye(e), !1;
356
356
  } catch {
357
357
  return !0;
358
358
  }
359
359
  }
360
- function ve(e) {
360
+ function ye(e) {
361
361
  return "" + e;
362
362
  }
363
- function pe(e) {
364
- if (Ge(e))
365
- return d("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", He(e)), ve(e);
363
+ function _e(e) {
364
+ if (rr(e))
365
+ return g("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", er(e)), ye(e);
366
366
  }
367
- var be = D.ReactCurrentOwner, ze = {
367
+ var ge = F.ReactCurrentOwner, tr = {
368
368
  key: !0,
369
369
  ref: !0,
370
370
  __self: !0,
371
371
  __source: !0
372
- }, _e, ye;
373
- function Xe(e) {
374
- if (I.call(e, "ref")) {
372
+ }, he, Ee;
373
+ function nr(e) {
374
+ if (N.call(e, "ref")) {
375
375
  var r = Object.getOwnPropertyDescriptor(e, "ref").get;
376
376
  if (r && r.isReactWarning)
377
377
  return !1;
378
378
  }
379
379
  return e.ref !== void 0;
380
380
  }
381
- function Ze(e) {
382
- if (I.call(e, "key")) {
381
+ function ar(e) {
382
+ if (N.call(e, "key")) {
383
383
  var r = Object.getOwnPropertyDescriptor(e, "key").get;
384
384
  if (r && r.isReactWarning)
385
385
  return !1;
386
386
  }
387
387
  return e.key !== void 0;
388
388
  }
389
- function Qe(e, r) {
390
- typeof e.ref == "string" && be.current;
389
+ function ir(e, r) {
390
+ typeof e.ref == "string" && ge.current;
391
391
  }
392
- function er(e, r) {
392
+ function or(e, r) {
393
393
  {
394
394
  var t = function() {
395
- _e || (_e = !0, d("%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));
395
+ he || (he = !0, g("%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
396
  };
397
397
  t.isReactWarning = !0, Object.defineProperty(e, "key", {
398
398
  get: t,
@@ -400,10 +400,10 @@ function br() {
400
400
  });
401
401
  }
402
402
  }
403
- function rr(e, r) {
403
+ function sr(e, r) {
404
404
  {
405
405
  var t = function() {
406
- ye || (ye = !0, d("%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));
406
+ Ee || (Ee = !0, g("%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
407
  };
408
408
  t.isReactWarning = !0, Object.defineProperty(e, "ref", {
409
409
  get: t,
@@ -411,70 +411,70 @@ function br() {
411
411
  });
412
412
  }
413
413
  }
414
- var tr = function(e, r, t, n, i, s, o) {
415
- var a = {
414
+ var ur = function(e, r, t, o, c, d, l) {
415
+ var u = {
416
416
  // This tag allows us to uniquely identify this as a React Element
417
- $$typeof: p,
417
+ $$typeof: a,
418
418
  // Built-in properties that belong on the element
419
419
  type: e,
420
420
  key: r,
421
421
  ref: t,
422
- props: o,
422
+ props: l,
423
423
  // Record the component responsible for creating this element.
424
- _owner: s
424
+ _owner: d
425
425
  };
426
- return a._store = {}, Object.defineProperty(a._store, "validated", {
426
+ return u._store = {}, Object.defineProperty(u._store, "validated", {
427
427
  configurable: !1,
428
428
  enumerable: !1,
429
429
  writable: !0,
430
430
  value: !1
431
- }), Object.defineProperty(a, "_self", {
431
+ }), Object.defineProperty(u, "_self", {
432
432
  configurable: !1,
433
433
  enumerable: !1,
434
434
  writable: !1,
435
- value: n
436
- }), Object.defineProperty(a, "_source", {
435
+ value: o
436
+ }), Object.defineProperty(u, "_source", {
437
437
  configurable: !1,
438
438
  enumerable: !1,
439
439
  writable: !1,
440
- value: i
441
- }), Object.freeze && (Object.freeze(a.props), Object.freeze(a)), a;
440
+ value: c
441
+ }), Object.freeze && (Object.freeze(u.props), Object.freeze(u)), u;
442
442
  };
443
- function nr(e, r, t, n, i) {
443
+ function lr(e, r, t, o, c) {
444
444
  {
445
- var s, o = {}, a = null, v = null;
446
- t !== void 0 && (pe(t), a = "" + t), Ze(r) && (pe(r.key), a = "" + r.key), Xe(r) && (v = r.ref, Qe(r, i));
447
- for (s in r)
448
- I.call(r, s) && !ze.hasOwnProperty(s) && (o[s] = r[s]);
445
+ var d, l = {}, u = null, h = null;
446
+ t !== void 0 && (_e(t), u = "" + t), ar(r) && (_e(r.key), u = "" + r.key), nr(r) && (h = r.ref, ir(r, c));
447
+ for (d in r)
448
+ N.call(r, d) && !tr.hasOwnProperty(d) && (l[d] = r[d]);
449
449
  if (e && e.defaultProps) {
450
- var l = e.defaultProps;
451
- for (s in l)
452
- o[s] === void 0 && (o[s] = l[s]);
450
+ var v = e.defaultProps;
451
+ for (d in v)
452
+ l[d] === void 0 && (l[d] = v[d]);
453
453
  }
454
- if (a || v) {
455
- var c = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
456
- a && er(o, c), v && rr(o, c);
454
+ if (u || h) {
455
+ var b = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
456
+ u && or(l, b), h && sr(l, b);
457
457
  }
458
- return tr(e, a, v, i, n, be.current, o);
458
+ return ur(e, u, h, c, o, ge.current, l);
459
459
  }
460
460
  }
461
- var G = D.ReactCurrentOwner, me = D.ReactDebugCurrentFrame;
462
- function F(e) {
461
+ var Z = F.ReactCurrentOwner, Re = F.ReactDebugCurrentFrame;
462
+ function A(e) {
463
463
  if (e) {
464
464
  var r = e._owner, t = V(e.type, e._source, r ? r.type : null);
465
- me.setExtraStackFrame(t);
465
+ Re.setExtraStackFrame(t);
466
466
  } else
467
- me.setExtraStackFrame(null);
467
+ Re.setExtraStackFrame(null);
468
468
  }
469
- var z;
470
- z = !1;
471
- function X(e) {
472
- return typeof e == "object" && e !== null && e.$$typeof === p;
469
+ var Q;
470
+ Q = !1;
471
+ function ee(e) {
472
+ return typeof e == "object" && e !== null && e.$$typeof === a;
473
473
  }
474
- function ge() {
474
+ function Oe() {
475
475
  {
476
- if (G.current) {
477
- var e = S(G.current.type);
476
+ if (Z.current) {
477
+ var e = x(Z.current.type);
478
478
  if (e)
479
479
  return `
480
480
 
@@ -483,13 +483,13 @@ Check the render method of \`` + e + "`.";
483
483
  return "";
484
484
  }
485
485
  }
486
- function ar(e) {
486
+ function cr(e) {
487
487
  return "";
488
488
  }
489
- var he = {};
490
- function or(e) {
489
+ var Ce = {};
490
+ function fr(e) {
491
491
  {
492
- var r = ge();
492
+ var r = Oe();
493
493
  if (!r) {
494
494
  var t = typeof e == "string" ? e : e.displayName || e.name;
495
495
  t && (r = `
@@ -499,39 +499,39 @@ Check the top-level render call using <` + t + ">.");
499
499
  return r;
500
500
  }
501
501
  }
502
- function Ee(e, r) {
502
+ function je(e, r) {
503
503
  {
504
504
  if (!e._store || e._store.validated || e.key != null)
505
505
  return;
506
506
  e._store.validated = !0;
507
- var t = or(r);
508
- if (he[t])
507
+ var t = fr(r);
508
+ if (Ce[t])
509
509
  return;
510
- he[t] = !0;
511
- var n = "";
512
- e && e._owner && e._owner !== G.current && (n = " It was passed a child from " + S(e._owner.type) + "."), F(e), d('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, n), F(null);
510
+ Ce[t] = !0;
511
+ var o = "";
512
+ e && e._owner && e._owner !== Z.current && (o = " It was passed a child from " + x(e._owner.type) + "."), A(e), g('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, o), A(null);
513
513
  }
514
514
  }
515
- function Re(e, r) {
515
+ function Pe(e, r) {
516
516
  {
517
517
  if (typeof e != "object")
518
518
  return;
519
- if (H(e))
519
+ if (X(e))
520
520
  for (var t = 0; t < e.length; t++) {
521
- var n = e[t];
522
- X(n) && Ee(n, r);
521
+ var o = e[t];
522
+ ee(o) && je(o, r);
523
523
  }
524
- else if (X(e))
524
+ else if (ee(e))
525
525
  e._store && (e._store.validated = !0);
526
526
  else if (e) {
527
- var i = De(e);
528
- if (typeof i == "function" && i !== e.entries)
529
- for (var s = i.call(e), o; !(o = s.next()).done; )
530
- X(o.value) && Ee(o.value, r);
527
+ var c = $e(e);
528
+ if (typeof c == "function" && c !== e.entries)
529
+ for (var d = c.call(e), l; !(l = d.next()).done; )
530
+ ee(l.value) && je(l.value, r);
531
531
  }
532
532
  }
533
533
  }
534
- function ir(e) {
534
+ function dr(e) {
535
535
  {
536
536
  var r = e.type;
537
537
  if (r == null || typeof r == "string")
@@ -539,197 +539,314 @@ Check the top-level render call using <` + t + ">.");
539
539
  var t;
540
540
  if (typeof r == "function")
541
541
  t = r.propTypes;
542
- else if (typeof r == "object" && (r.$$typeof === u || // Note: Memo only checks outer props here.
542
+ else if (typeof r == "object" && (r.$$typeof === f || // Note: Memo only checks outer props here.
543
543
  // Inner props are checked in the reconciler.
544
- r.$$typeof === T))
544
+ r.$$typeof === j))
545
545
  t = r.propTypes;
546
546
  else
547
547
  return;
548
548
  if (t) {
549
- var n = S(r);
550
- qe(t, e.props, "prop", n, e);
551
- } else if (r.PropTypes !== void 0 && !z) {
552
- z = !0;
553
- var i = S(r);
554
- d("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", i || "Unknown");
549
+ var o = x(r);
550
+ Ze(t, e.props, "prop", o, e);
551
+ } else if (r.PropTypes !== void 0 && !Q) {
552
+ Q = !0;
553
+ var c = x(r);
554
+ g("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", c || "Unknown");
555
555
  }
556
- typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && d("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
556
+ typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && g("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
557
557
  }
558
558
  }
559
- function sr(e) {
559
+ function vr(e) {
560
560
  {
561
561
  for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
562
- var n = r[t];
563
- if (n !== "children" && n !== "key") {
564
- F(e), d("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), F(null);
562
+ var o = r[t];
563
+ if (o !== "children" && o !== "key") {
564
+ A(e), g("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", o), A(null);
565
565
  break;
566
566
  }
567
567
  }
568
- e.ref !== null && (F(e), d("Invalid attribute `ref` supplied to `React.Fragment`."), F(null));
568
+ e.ref !== null && (A(e), g("Invalid attribute `ref` supplied to `React.Fragment`."), A(null));
569
569
  }
570
570
  }
571
- var Ce = {};
572
- function Te(e, r, t, n, i, s) {
571
+ var we = {};
572
+ function Te(e, r, t, o, c, d) {
573
573
  {
574
- var o = We(e);
575
- if (!o) {
576
- var a = "";
577
- (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (a += " 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 v = ar();
579
- v ? a += v : a += ge();
580
- var l;
581
- e === null ? l = "null" : H(e) ? l = "array" : e !== void 0 && e.$$typeof === p ? (l = "<" + (S(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : l = typeof e, d("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", l, a);
574
+ var l = Ue(e);
575
+ if (!l) {
576
+ var u = "";
577
+ (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (u += " 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 h = cr();
579
+ h ? u += h : u += Oe();
580
+ var v;
581
+ e === null ? v = "null" : X(e) ? v = "array" : e !== void 0 && e.$$typeof === a ? (v = "<" + (x(e.type) || "Unknown") + " />", u = " Did you accidentally export a JSX literal instead of a component?") : v = typeof e, g("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", v, u);
582
582
  }
583
- var c = nr(e, r, t, i, s);
584
- if (c == null)
585
- return c;
586
- if (o) {
587
- var y = r.children;
588
- if (y !== void 0)
589
- if (n)
590
- if (H(y)) {
591
- for (var A = 0; A < y.length; A++)
592
- Re(y[A], e);
593
- Object.freeze && Object.freeze(y);
583
+ var b = lr(e, r, t, c, d);
584
+ if (b == null)
585
+ return b;
586
+ if (l) {
587
+ var O = r.children;
588
+ if (O !== void 0)
589
+ if (o)
590
+ if (X(O)) {
591
+ for (var B = 0; B < O.length; B++)
592
+ Pe(O[B], e);
593
+ Object.freeze && Object.freeze(O);
594
594
  } else
595
- d("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
595
+ g("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
596
  else
597
- Re(y, e);
597
+ Pe(O, e);
598
598
  }
599
- if (I.call(r, "key")) {
600
- var k = S(e), b = Object.keys(r).filter(function(vr) {
601
- return vr !== "key";
602
- }), Z = b.length > 0 ? "{key: someKey, " + b.join(": ..., ") + ": ...}" : "{key: someKey}";
603
- if (!Ce[k + Z]) {
604
- var dr = b.length > 0 ? "{" + b.join(": ..., ") + ": ...}" : "{}";
605
- d(`A props object containing a "key" prop is being spread into JSX:
599
+ if (N.call(r, "key")) {
600
+ var k = x(e), E = Object.keys(r).filter(function(gr) {
601
+ return gr !== "key";
602
+ }), re = E.length > 0 ? "{key: someKey, " + E.join(": ..., ") + ": ...}" : "{key: someKey}";
603
+ if (!we[k + re]) {
604
+ var _r = E.length > 0 ? "{" + E.join(": ..., ") + ": ...}" : "{}";
605
+ g(`A props object containing a "key" prop is being spread into JSX:
606
606
  let props = %s;
607
607
  <%s {...props} />
608
608
  React keys must be passed directly to JSX without using spread:
609
609
  let props = %s;
610
- <%s key={someKey} {...props} />`, Z, k, dr, k), Ce[k + Z] = !0;
610
+ <%s key={someKey} {...props} />`, re, k, _r, k), we[k + re] = !0;
611
611
  }
612
612
  }
613
- return e === _ ? sr(c) : ir(c), c;
613
+ return e === s ? vr(b) : dr(b), b;
614
614
  }
615
615
  }
616
- function ur(e, r, t) {
616
+ function pr(e, r, t) {
617
617
  return Te(e, r, t, !0);
618
618
  }
619
- function lr(e, r, t) {
619
+ function br(e, r, t) {
620
620
  return Te(e, r, t, !1);
621
621
  }
622
- var cr = lr, fr = ur;
623
- L.Fragment = _, L.jsx = cr, L.jsxs = fr;
622
+ var mr = br, yr = pr;
623
+ L.Fragment = s, L.jsx = mr, L.jsxs = yr;
624
624
  })()), L;
625
625
  }
626
- var Pe;
627
- function _r() {
628
- return Pe || (Pe = 1, process.env.NODE_ENV === "production" ? U.exports = pr() : U.exports = br()), U.exports;
626
+ var De;
627
+ function Rr() {
628
+ return De || (De = 1, process.env.NODE_ENV === "production" ? U.exports = hr() : U.exports = Er()), U.exports;
629
+ }
630
+ var C = Rr();
631
+ const Or = "_primaryButton_uyzzr_1", Cr = "_primaryButtonDisabled_uyzzr_34", jr = "_spinner_uyzzr_42", te = {
632
+ primaryButton: Or,
633
+ primaryButtonDisabled: Cr,
634
+ spinner: jr
635
+ };
636
+ var Be = {
637
+ color: void 0,
638
+ size: void 0,
639
+ className: void 0,
640
+ style: void 0,
641
+ attr: void 0
642
+ }, ke = w.createContext && /* @__PURE__ */ w.createContext(Be), Pr = ["attr", "size", "title"];
643
+ function wr(n, a) {
644
+ if (n == null) return {};
645
+ var i = Tr(n, a), s, p;
646
+ if (Object.getOwnPropertySymbols) {
647
+ var m = Object.getOwnPropertySymbols(n);
648
+ for (p = 0; p < m.length; p++)
649
+ s = m[p], !(a.indexOf(s) >= 0) && Object.prototype.propertyIsEnumerable.call(n, s) && (i[s] = n[s]);
650
+ }
651
+ return i;
652
+ }
653
+ function Tr(n, a) {
654
+ if (n == null) return {};
655
+ var i = {};
656
+ for (var s in n)
657
+ if (Object.prototype.hasOwnProperty.call(n, s)) {
658
+ if (a.indexOf(s) >= 0) continue;
659
+ i[s] = n[s];
660
+ }
661
+ return i;
662
+ }
663
+ function J() {
664
+ return J = Object.assign ? Object.assign.bind() : function(n) {
665
+ for (var a = 1; a < arguments.length; a++) {
666
+ var i = arguments[a];
667
+ for (var s in i)
668
+ Object.prototype.hasOwnProperty.call(i, s) && (n[s] = i[s]);
669
+ }
670
+ return n;
671
+ }, J.apply(this, arguments);
672
+ }
673
+ function Fe(n, a) {
674
+ var i = Object.keys(n);
675
+ if (Object.getOwnPropertySymbols) {
676
+ var s = Object.getOwnPropertySymbols(n);
677
+ a && (s = s.filter(function(p) {
678
+ return Object.getOwnPropertyDescriptor(n, p).enumerable;
679
+ })), i.push.apply(i, s);
680
+ }
681
+ return i;
682
+ }
683
+ function q(n) {
684
+ for (var a = 1; a < arguments.length; a++) {
685
+ var i = arguments[a] != null ? arguments[a] : {};
686
+ a % 2 ? Fe(Object(i), !0).forEach(function(s) {
687
+ xr(n, s, i[s]);
688
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(n, Object.getOwnPropertyDescriptors(i)) : Fe(Object(i)).forEach(function(s) {
689
+ Object.defineProperty(n, s, Object.getOwnPropertyDescriptor(i, s));
690
+ });
691
+ }
692
+ return n;
693
+ }
694
+ function xr(n, a, i) {
695
+ return a = Sr(a), a in n ? Object.defineProperty(n, a, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : n[a] = i, n;
696
+ }
697
+ function Sr(n) {
698
+ var a = Dr(n, "string");
699
+ return typeof a == "symbol" ? a : a + "";
700
+ }
701
+ function Dr(n, a) {
702
+ if (typeof n != "object" || !n) return n;
703
+ var i = n[Symbol.toPrimitive];
704
+ if (i !== void 0) {
705
+ var s = i.call(n, a);
706
+ if (typeof s != "object") return s;
707
+ throw new TypeError("@@toPrimitive must return a primitive value.");
708
+ }
709
+ return (a === "string" ? String : Number)(n);
710
+ }
711
+ function Ie(n) {
712
+ return n && n.map((a, i) => /* @__PURE__ */ w.createElement(a.tag, q({
713
+ key: i
714
+ }, a.attr), Ie(a.child)));
715
+ }
716
+ function kr(n) {
717
+ return (a) => /* @__PURE__ */ w.createElement(Fr, J({
718
+ attr: q({}, n.attr)
719
+ }, a), Ie(n.child));
629
720
  }
630
- var O = _r();
631
- const yr = "_primaryButton_131re_1", mr = "_primaryButtonDisabled_131re_33", Se = {
632
- primaryButton: yr,
633
- primaryButtonDisabled: mr
634
- }, kr = ({
635
- children: h,
636
- disabled: p = !1,
637
- onClick: C,
638
- className: _ = "",
721
+ function Fr(n) {
722
+ var a = (i) => {
723
+ var {
724
+ attr: s,
725
+ size: p,
726
+ title: m
727
+ } = n, R = wr(n, Pr), y = p || i.size || "1em", f;
728
+ return i.className && (f = i.className), n.className && (f = (f ? f + " " : "") + n.className), /* @__PURE__ */ w.createElement("svg", J({
729
+ stroke: "currentColor",
730
+ fill: "currentColor",
731
+ strokeWidth: "0"
732
+ }, i.attr, s, R, {
733
+ className: f,
734
+ style: q(q({
735
+ color: n.color || i.color
736
+ }, i.style), n.style),
737
+ height: y,
738
+ width: y,
739
+ xmlns: "http://www.w3.org/2000/svg"
740
+ }), m && /* @__PURE__ */ w.createElement("title", null, m), n.children);
741
+ };
742
+ return ke !== void 0 ? /* @__PURE__ */ w.createElement(ke.Consumer, null, (i) => a(i)) : a(Be);
743
+ }
744
+ function Ar(n) {
745
+ return kr({ 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: [] }] })(n);
746
+ }
747
+ const qr = ({
748
+ children: n,
749
+ disabled: a = !1,
750
+ loading: i = !1,
751
+ onClick: s,
752
+ className: p = "",
639
753
  "data-testid": m,
640
- ...E
754
+ ...R
641
755
  }) => {
642
- const g = [
643
- Se.primaryButton,
644
- p ? Se.primaryButtonDisabled : "",
645
- _
756
+ const y = [
757
+ te.primaryButton,
758
+ a ? te.primaryButtonDisabled : "",
759
+ p
646
760
  ].filter(Boolean).join(" ");
647
- return /* @__PURE__ */ O.jsx(
761
+ return /* @__PURE__ */ C.jsxs(
648
762
  "button",
649
763
  {
650
764
  type: "button",
651
- className: g,
652
- disabled: p,
653
- onClick: C,
765
+ className: y,
766
+ disabled: a || i,
767
+ onClick: s,
654
768
  "data-testid": m,
655
- ...E,
656
- children: h
769
+ ...R,
770
+ children: [
771
+ i && /* @__PURE__ */ C.jsx(Ar, { className: te.spinner, size: 12 }),
772
+ n
773
+ ]
657
774
  }
658
775
  );
659
- }, gr = "_secondaryButton_172jg_1", hr = "_secondaryButtonDisabled_172jg_33", xe = {
660
- secondaryButton: gr,
661
- secondaryButtonDisabled: hr
662
- }, Dr = ({
663
- children: h,
664
- disabled: p = !1,
665
- onClick: C,
666
- className: _ = "",
667
- "data-testid": m,
668
- ...E
776
+ }, Br = "_secondaryButton_1s7ft_1", Ir = "_secondaryButtonDisabled_1s7ft_33", Ae = {
777
+ secondaryButton: Br,
778
+ secondaryButtonDisabled: Ir
779
+ }, Kr = ({
780
+ children: n,
781
+ disabled: a = !1,
782
+ onClick: i,
783
+ className: s = "",
784
+ "data-testid": p,
785
+ ...m
669
786
  }) => {
670
- const g = [
671
- xe.secondaryButton,
672
- p ? xe.secondaryButtonDisabled : "",
673
- _
787
+ const R = [
788
+ Ae.secondaryButton,
789
+ a ? Ae.secondaryButtonDisabled : "",
790
+ s
674
791
  ].filter(Boolean).join(" ");
675
- return /* @__PURE__ */ O.jsx(
792
+ return /* @__PURE__ */ C.jsx(
676
793
  "button",
677
794
  {
678
795
  type: "button",
679
- className: g,
680
- disabled: p,
681
- onClick: C,
682
- "data-testid": m,
683
- ...E,
684
- children: h
796
+ className: R,
797
+ disabled: a,
798
+ onClick: i,
799
+ "data-testid": p,
800
+ ...m,
801
+ children: n
685
802
  }
686
803
  );
687
- }, Er = "_tabsContainer_m3c4e_1", Rr = "_tabsHeader_m3c4e_7", Cr = "_tabItem_m3c4e_13", Tr = "_tabContent_m3c4e_29", jr = "_tabLabel_m3c4e_51", Or = "_tabLine_m3c4e_61", Pr = "_active_m3c4e_68", Sr = "_inactive_m3c4e_76", xr = "_tabPanels_m3c4e_84", j = {
688
- tabsContainer: Er,
689
- tabsHeader: Rr,
690
- tabItem: Cr,
691
- tabContent: Tr,
692
- tabLabel: jr,
693
- tabLine: Or,
694
- active: Pr,
695
- inactive: Sr,
696
- tabPanels: xr
697
- }, Fr = ({
698
- tabs: h,
699
- activeTabId: p,
700
- onTabChange: C,
701
- className: _ = "",
702
- "data-testid": m,
703
- ...E
804
+ }, Nr = "_tabsContainer_m3c4e_1", $r = "_tabsHeader_m3c4e_7", Lr = "_tabItem_m3c4e_13", Wr = "_tabContent_m3c4e_29", Yr = "_tabLabel_m3c4e_51", Mr = "_tabLine_m3c4e_61", Vr = "_active_m3c4e_68", zr = "_inactive_m3c4e_76", Ur = "_tabPanels_m3c4e_84", P = {
805
+ tabsContainer: Nr,
806
+ tabsHeader: $r,
807
+ tabItem: Lr,
808
+ tabContent: Wr,
809
+ tabLabel: Yr,
810
+ tabLine: Mr,
811
+ active: Vr,
812
+ inactive: zr,
813
+ tabPanels: Ur
814
+ }, Hr = ({
815
+ tabs: n,
816
+ activeTabId: a,
817
+ onTabChange: i,
818
+ className: s = "",
819
+ "data-testid": p,
820
+ ...m
704
821
  }) => {
705
- var R;
706
- const g = [j.tabsContainer, _].filter(Boolean).join(" ");
707
- return /* @__PURE__ */ O.jsxs("div", { className: g, "data-testid": m, ...E, children: [
708
- /* @__PURE__ */ O.jsx("div", { className: j.tabsHeader, children: h.map((u) => {
709
- const P = u.id === p, f = [
710
- j.tabItem,
711
- P ? j.active : j.inactive
822
+ var y;
823
+ const R = [P.tabsContainer, s].filter(Boolean).join(" ");
824
+ return /* @__PURE__ */ C.jsxs("div", { className: R, "data-testid": p, ...m, children: [
825
+ /* @__PURE__ */ C.jsx("div", { className: P.tabsHeader, children: n.map((f) => {
826
+ const T = f.id === a, _ = [
827
+ P.tabItem,
828
+ T ? P.active : P.inactive
712
829
  ].filter(Boolean).join(" ");
713
- return /* @__PURE__ */ O.jsxs(
830
+ return /* @__PURE__ */ C.jsxs(
714
831
  "button",
715
832
  {
716
833
  type: "button",
717
- className: f,
718
- onClick: () => C(u.id),
719
- "data-testid": `${m}-tab-${u.id}`,
834
+ className: _,
835
+ onClick: () => i(f.id),
836
+ "data-testid": `${p}-tab-${f.id}`,
720
837
  children: [
721
- /* @__PURE__ */ O.jsx("div", { className: j.tabContent, children: /* @__PURE__ */ O.jsx("span", { className: j.tabLabel, children: u.label }) }),
722
- /* @__PURE__ */ O.jsx("div", { className: j.tabLine })
838
+ /* @__PURE__ */ C.jsx("div", { className: P.tabContent, children: /* @__PURE__ */ C.jsx("span", { className: P.tabLabel, children: f.label }) }),
839
+ /* @__PURE__ */ C.jsx("div", { className: P.tabLine })
723
840
  ]
724
841
  },
725
- u.id
842
+ f.id
726
843
  );
727
844
  }) }),
728
- /* @__PURE__ */ O.jsx("div", { className: j.tabPanels, children: (R = h.find((u) => u.id === p)) == null ? void 0 : R.content })
845
+ /* @__PURE__ */ C.jsx("div", { className: P.tabPanels, children: (y = n.find((f) => f.id === a)) == null ? void 0 : y.content })
729
846
  ] });
730
847
  };
731
848
  export {
732
- kr as PrimaryButton,
733
- Dr as SecondaryButton,
734
- Fr as Tabs
849
+ qr as PrimaryButton,
850
+ Kr as SecondaryButton,
851
+ Hr as Tabs
735
852
  };