ovirt-ui-toolkit 0.0.59 → 0.0.61

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.
@@ -5,6 +5,7 @@ interface GroupButtonContainerProps {
5
5
  onChange: (item: DropdownItem) => void;
6
6
  items: DropdownItem[];
7
7
  selected?: number | string;
8
+ className?: string;
8
9
  }
9
10
  declare const GroupButtonContainer: React.FC<GroupButtonContainerProps>;
10
11
  export default GroupButtonContainer;
@@ -1,4 +1,4 @@
1
- import Se, { forwardRef as mr, useState as Q, useEffect as br } from "react";
1
+ import Se, { forwardRef as hr, useState as Q, useEffect as br } from "react";
2
2
  var U = { exports: {} }, A = {};
3
3
  /**
4
4
  * @license React
@@ -13,15 +13,15 @@ var Ce;
13
13
  function xr() {
14
14
  if (Ce) return A;
15
15
  Ce = 1;
16
- var a = Se, s = Symbol.for("react.element"), o = Symbol.for("react.fragment"), l = Object.prototype.hasOwnProperty, c = a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, p = { key: !0, ref: !0, __self: !0, __source: !0 };
17
- function h(C, m, T) {
16
+ var a = Se, s = Symbol.for("react.element"), l = Symbol.for("react.fragment"), i = Object.prototype.hasOwnProperty, c = a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, v = { key: !0, ref: !0, __self: !0, __source: !0 };
17
+ function m(C, h, T) {
18
18
  var j, b = {}, R = null, W = null;
19
- T !== void 0 && (R = "" + T), m.key !== void 0 && (R = "" + m.key), m.ref !== void 0 && (W = m.ref);
20
- for (j in m) l.call(m, j) && !p.hasOwnProperty(j) && (b[j] = m[j]);
21
- if (C && C.defaultProps) for (j in m = C.defaultProps, m) b[j] === void 0 && (b[j] = m[j]);
19
+ T !== void 0 && (R = "" + T), h.key !== void 0 && (R = "" + h.key), h.ref !== void 0 && (W = h.ref);
20
+ for (j in h) i.call(h, j) && !v.hasOwnProperty(j) && (b[j] = h[j]);
21
+ if (C && C.defaultProps) for (j in h = C.defaultProps, h) b[j] === void 0 && (b[j] = h[j]);
22
22
  return { $$typeof: s, type: C, key: R, ref: W, props: b, _owner: c.current };
23
23
  }
24
- return A.Fragment = o, A.jsx = h, A.jsxs = h, A;
24
+ return A.Fragment = l, A.jsx = m, A.jsxs = m, A;
25
25
  }
26
26
  var I = {};
27
27
  /**
@@ -36,7 +36,7 @@ var I = {};
36
36
  var Te;
37
37
  function gr() {
38
38
  return Te || (Te = 1, process.env.NODE_ENV !== "production" && function() {
39
- var a = Se, s = Symbol.for("react.element"), o = Symbol.for("react.portal"), l = Symbol.for("react.fragment"), c = Symbol.for("react.strict_mode"), p = Symbol.for("react.profiler"), h = Symbol.for("react.provider"), C = Symbol.for("react.context"), m = Symbol.for("react.forward_ref"), T = Symbol.for("react.suspense"), j = Symbol.for("react.suspense_list"), b = Symbol.for("react.memo"), R = Symbol.for("react.lazy"), W = Symbol.for("react.offscreen"), K = Symbol.iterator, $e = "@@iterator";
39
+ var a = Se, s = Symbol.for("react.element"), l = Symbol.for("react.portal"), i = Symbol.for("react.fragment"), c = Symbol.for("react.strict_mode"), v = Symbol.for("react.profiler"), m = Symbol.for("react.provider"), C = Symbol.for("react.context"), h = Symbol.for("react.forward_ref"), T = Symbol.for("react.suspense"), j = Symbol.for("react.suspense_list"), b = Symbol.for("react.memo"), R = Symbol.for("react.lazy"), W = Symbol.for("react.offscreen"), K = Symbol.iterator, $e = "@@iterator";
40
40
  function De(e) {
41
41
  if (e === null || typeof e != "object")
42
42
  return null;
@@ -46,34 +46,34 @@ function gr() {
46
46
  var k = a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
47
47
  function y(e) {
48
48
  {
49
- for (var r = arguments.length, n = new Array(r > 1 ? r - 1 : 0), i = 1; i < r; i++)
50
- n[i - 1] = arguments[i];
49
+ for (var r = arguments.length, n = new Array(r > 1 ? r - 1 : 0), o = 1; o < r; o++)
50
+ n[o - 1] = arguments[o];
51
51
  Fe("error", e, n);
52
52
  }
53
53
  }
54
54
  function Fe(e, r, n) {
55
55
  {
56
- var i = k.ReactDebugCurrentFrame, d = i.getStackAddendum();
56
+ var o = k.ReactDebugCurrentFrame, d = o.getStackAddendum();
57
57
  d !== "" && (r += "%s", n = n.concat([d]));
58
- var v = n.map(function(f) {
58
+ var p = n.map(function(f) {
59
59
  return String(f);
60
60
  });
61
- v.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, v);
61
+ p.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, p);
62
62
  }
63
63
  }
64
64
  var Ae = !1, Ie = !1, We = !1, Ye = !1, Ve = !1, ee;
65
65
  ee = Symbol.for("react.module.reference");
66
66
  function Me(e) {
67
- return !!(typeof e == "string" || typeof e == "function" || e === l || e === p || Ve || e === c || e === T || e === j || Ye || e === W || Ae || Ie || We || typeof e == "object" && e !== null && (e.$$typeof === R || e.$$typeof === b || e.$$typeof === h || e.$$typeof === C || e.$$typeof === m || // This needs to include all possible module reference object
67
+ return !!(typeof e == "string" || typeof e == "function" || e === i || e === v || Ve || e === c || e === T || e === j || Ye || e === W || Ae || Ie || We || typeof e == "object" && e !== null && (e.$$typeof === R || e.$$typeof === b || e.$$typeof === m || e.$$typeof === C || e.$$typeof === h || // 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
71
  e.$$typeof === ee || e.getModuleId !== void 0));
72
72
  }
73
73
  function Le(e, r, n) {
74
- var i = e.displayName;
75
- if (i)
76
- return i;
74
+ var o = e.displayName;
75
+ if (o)
76
+ return o;
77
77
  var d = r.displayName || r.name || "";
78
78
  return d !== "" ? n + "(" + d + ")" : n;
79
79
  }
@@ -88,11 +88,11 @@ function gr() {
88
88
  if (typeof e == "string")
89
89
  return e;
90
90
  switch (e) {
91
- case l:
91
+ case i:
92
92
  return "Fragment";
93
- case o:
93
+ case l:
94
94
  return "Portal";
95
- case p:
95
+ case v:
96
96
  return "Profiler";
97
97
  case c:
98
98
  return "StrictMode";
@@ -106,18 +106,18 @@ function gr() {
106
106
  case C:
107
107
  var r = e;
108
108
  return re(r) + ".Consumer";
109
- case h:
109
+ case m:
110
110
  var n = e;
111
111
  return re(n._context) + ".Provider";
112
- case m:
112
+ case h:
113
113
  return Le(e, e.render, "ForwardRef");
114
114
  case b:
115
- var i = e.displayName || null;
116
- return i !== null ? i : O(e.type) || "Memo";
115
+ var o = e.displayName || null;
116
+ return o !== null ? o : O(e.type) || "Memo";
117
117
  case R: {
118
- var d = e, v = d._payload, f = d._init;
118
+ var d = e, p = d._payload, f = d._init;
119
119
  try {
120
- return O(f(v));
120
+ return O(f(p));
121
121
  } catch {
122
122
  return null;
123
123
  }
@@ -194,8 +194,8 @@ function gr() {
194
194
  try {
195
195
  throw Error();
196
196
  } catch (d) {
197
- var i = d.stack.trim().match(/\n( *(at )?)/);
198
- J = i && i[1] || "";
197
+ var o = d.stack.trim().match(/\n( *(at )?)/);
198
+ J = o && o[1] || "";
199
199
  }
200
200
  return `
201
201
  ` + J + e;
@@ -214,12 +214,12 @@ function gr() {
214
214
  if (n !== void 0)
215
215
  return n;
216
216
  }
217
- var i;
217
+ var o;
218
218
  q = !0;
219
219
  var d = Error.prepareStackTrace;
220
220
  Error.prepareStackTrace = void 0;
221
- var v;
222
- v = B.current, B.current = null, Ue();
221
+ var p;
222
+ p = B.current, B.current = null, Ue();
223
223
  try {
224
224
  if (r) {
225
225
  var f = function() {
@@ -233,14 +233,14 @@ function gr() {
233
233
  try {
234
234
  Reflect.construct(f, []);
235
235
  } catch (_) {
236
- i = _;
236
+ o = _;
237
237
  }
238
238
  Reflect.construct(e, [], f);
239
239
  } else {
240
240
  try {
241
241
  f.call();
242
242
  } catch (_) {
243
- i = _;
243
+ o = _;
244
244
  }
245
245
  e.call(f.prototype);
246
246
  }
@@ -248,14 +248,14 @@ function gr() {
248
248
  try {
249
249
  throw Error();
250
250
  } catch (_) {
251
- i = _;
251
+ o = _;
252
252
  }
253
253
  e();
254
254
  }
255
255
  } catch (_) {
256
- if (_ && i && typeof _.stack == "string") {
256
+ if (_ && o && typeof _.stack == "string") {
257
257
  for (var u = _.stack.split(`
258
- `), E = i.stack.split(`
258
+ `), E = o.stack.split(`
259
259
  `), x = u.length - 1, g = E.length - 1; x >= 1 && g >= 0 && u[x] !== E[g]; )
260
260
  g--;
261
261
  for (; x >= 1 && g >= 0; x--, g--)
@@ -272,7 +272,7 @@ function gr() {
272
272
  }
273
273
  }
274
274
  } finally {
275
- q = !1, B.current = v, Be(), Error.prepareStackTrace = d;
275
+ q = !1, B.current = p, Be(), Error.prepareStackTrace = d;
276
276
  }
277
277
  var $ = e ? e.displayName || e.name : "", N = $ ? Y($) : "";
278
278
  return typeof e == "function" && V.set(e, N), N;
@@ -299,14 +299,14 @@ function gr() {
299
299
  }
300
300
  if (typeof e == "object")
301
301
  switch (e.$$typeof) {
302
- case m:
302
+ case h:
303
303
  return qe(e.render);
304
304
  case b:
305
305
  return M(e.type, r, n);
306
306
  case R: {
307
- var i = e, d = i._payload, v = i._init;
307
+ var o = e, d = o._payload, p = o._init;
308
308
  try {
309
- return M(v(d), r, n);
309
+ return M(p(d), r, n);
310
310
  } catch {
311
311
  }
312
312
  }
@@ -321,22 +321,22 @@ function gr() {
321
321
  } else
322
322
  de.setExtraStackFrame(null);
323
323
  }
324
- function Ge(e, r, n, i, d) {
324
+ function Ge(e, r, n, o, d) {
325
325
  {
326
- var v = Function.call.bind(F);
326
+ var p = Function.call.bind(F);
327
327
  for (var f in e)
328
- if (v(e, f)) {
328
+ if (p(e, f)) {
329
329
  var u = void 0;
330
330
  try {
331
331
  if (typeof e[f] != "function") {
332
- var E = Error((i || "React class") + ": " + n + " type `" + f + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[f] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
332
+ var E = Error((o || "React class") + ": " + n + " type `" + f + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[f] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
333
333
  throw E.name = "Invariant Violation", E;
334
334
  }
335
- u = e[f](r, f, i, n, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
335
+ u = e[f](r, f, o, n, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
336
336
  } catch (x) {
337
337
  u = x;
338
338
  }
339
- u && !(u instanceof Error) && (L(d), y("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", i || "React class", n, f, typeof u), L(null)), u instanceof Error && !(u.message in fe) && (fe[u.message] = !0, L(d), y("Failed %s type: %s", n, u.message), L(null));
339
+ u && !(u instanceof Error) && (L(d), y("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", o || "React class", n, f, typeof u), L(null)), u instanceof Error && !(u.message in fe) && (fe[u.message] = !0, L(d), y("Failed %s type: %s", n, u.message), L(null));
340
340
  }
341
341
  }
342
342
  }
@@ -364,12 +364,12 @@ function gr() {
364
364
  if (Ze(e))
365
365
  return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Xe(e)), ve(e);
366
366
  }
367
- var he = k.ReactCurrentOwner, Qe = {
367
+ var me = k.ReactCurrentOwner, Qe = {
368
368
  key: !0,
369
369
  ref: !0,
370
370
  __self: !0,
371
371
  __source: !0
372
- }, me, be;
372
+ }, he, be;
373
373
  function Ke(e) {
374
374
  if (F.call(e, "ref")) {
375
375
  var r = Object.getOwnPropertyDescriptor(e, "ref").get;
@@ -387,12 +387,12 @@ function gr() {
387
387
  return e.key !== void 0;
388
388
  }
389
389
  function rr(e, r) {
390
- typeof e.ref == "string" && he.current;
390
+ typeof e.ref == "string" && me.current;
391
391
  }
392
392
  function tr(e, r) {
393
393
  {
394
394
  var n = function() {
395
- me || (me = !0, y("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
395
+ he || (he = !0, y("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
396
396
  };
397
397
  n.isReactWarning = !0, Object.defineProperty(e, "key", {
398
398
  get: n,
@@ -411,7 +411,7 @@ function gr() {
411
411
  });
412
412
  }
413
413
  }
414
- var ar = function(e, r, n, i, d, v, f) {
414
+ var ar = function(e, r, n, o, d, p, f) {
415
415
  var u = {
416
416
  // This tag allows us to uniquely identify this as a React Element
417
417
  $$typeof: s,
@@ -421,7 +421,7 @@ function gr() {
421
421
  ref: n,
422
422
  props: f,
423
423
  // Record the component responsible for creating this element.
424
- _owner: v
424
+ _owner: p
425
425
  };
426
426
  return u._store = {}, Object.defineProperty(u._store, "validated", {
427
427
  configurable: !1,
@@ -432,7 +432,7 @@ function gr() {
432
432
  configurable: !1,
433
433
  enumerable: !1,
434
434
  writable: !1,
435
- value: i
435
+ value: o
436
436
  }), Object.defineProperty(u, "_source", {
437
437
  configurable: !1,
438
438
  enumerable: !1,
@@ -440,22 +440,22 @@ function gr() {
440
440
  value: d
441
441
  }), Object.freeze && (Object.freeze(u.props), Object.freeze(u)), u;
442
442
  };
443
- function sr(e, r, n, i, d) {
443
+ function sr(e, r, n, o, d) {
444
444
  {
445
- var v, f = {}, u = null, E = null;
445
+ var p, f = {}, u = null, E = null;
446
446
  n !== void 0 && (pe(n), u = "" + n), er(r) && (pe(r.key), u = "" + r.key), Ke(r) && (E = r.ref, rr(r, d));
447
- for (v in r)
448
- F.call(r, v) && !Qe.hasOwnProperty(v) && (f[v] = r[v]);
447
+ for (p in r)
448
+ F.call(r, p) && !Qe.hasOwnProperty(p) && (f[p] = r[p]);
449
449
  if (e && e.defaultProps) {
450
450
  var x = e.defaultProps;
451
- for (v in x)
452
- f[v] === void 0 && (f[v] = x[v]);
451
+ for (p in x)
452
+ f[p] === void 0 && (f[p] = x[p]);
453
453
  }
454
454
  if (u || E) {
455
455
  var g = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
456
456
  u && tr(f, g), E && nr(f, g);
457
457
  }
458
- return ar(e, u, E, d, i, he.current, f);
458
+ return ar(e, u, E, d, o, me.current, f);
459
459
  }
460
460
  }
461
461
  var G = k.ReactCurrentOwner, xe = k.ReactDebugCurrentFrame;
@@ -508,8 +508,8 @@ Check the top-level render call using <` + n + ">.");
508
508
  if (je[n])
509
509
  return;
510
510
  je[n] = !0;
511
- var i = "";
512
- e && e._owner && e._owner !== G.current && (i = " It was passed a child from " + O(e._owner.type) + "."), P(e), y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', n, i), P(null);
511
+ var o = "";
512
+ e && e._owner && e._owner !== G.current && (o = " It was passed a child from " + O(e._owner.type) + "."), P(e), y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', n, o), P(null);
513
513
  }
514
514
  }
515
515
  function Ee(e, r) {
@@ -518,15 +518,15 @@ Check the top-level render call using <` + n + ">.");
518
518
  return;
519
519
  if (z(e))
520
520
  for (var n = 0; n < e.length; n++) {
521
- var i = e[n];
522
- X(i) && ye(i, r);
521
+ var o = e[n];
522
+ X(o) && ye(o, r);
523
523
  }
524
524
  else if (X(e))
525
525
  e._store && (e._store.validated = !0);
526
526
  else if (e) {
527
527
  var d = De(e);
528
528
  if (typeof d == "function" && d !== e.entries)
529
- for (var v = d.call(e), f; !(f = v.next()).done; )
529
+ for (var p = d.call(e), f; !(f = p.next()).done; )
530
530
  X(f.value) && ye(f.value, r);
531
531
  }
532
532
  }
@@ -539,15 +539,15 @@ Check the top-level render call using <` + n + ">.");
539
539
  var n;
540
540
  if (typeof r == "function")
541
541
  n = r.propTypes;
542
- else if (typeof r == "object" && (r.$$typeof === m || // Note: Memo only checks outer props here.
542
+ else if (typeof r == "object" && (r.$$typeof === h || // Note: Memo only checks outer props here.
543
543
  // Inner props are checked in the reconciler.
544
544
  r.$$typeof === b))
545
545
  n = r.propTypes;
546
546
  else
547
547
  return;
548
548
  if (n) {
549
- var i = O(r);
550
- Ge(n, e.props, "prop", i, e);
549
+ var o = O(r);
550
+ Ge(n, e.props, "prop", o, e);
551
551
  } else if (r.PropTypes !== void 0 && !H) {
552
552
  H = !0;
553
553
  var d = O(r);
@@ -559,9 +559,9 @@ Check the top-level render call using <` + n + ">.");
559
559
  function cr(e) {
560
560
  {
561
561
  for (var r = Object.keys(e.props), n = 0; n < r.length; n++) {
562
- var i = r[n];
563
- if (i !== "children" && i !== "key") {
564
- P(e), y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", i), P(null);
562
+ var o = r[n];
563
+ if (o !== "children" && o !== "key") {
564
+ P(e), y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", o), P(null);
565
565
  break;
566
566
  }
567
567
  }
@@ -569,7 +569,7 @@ Check the top-level render call using <` + n + ">.");
569
569
  }
570
570
  }
571
571
  var Re = {};
572
- function _e(e, r, n, i, d, v) {
572
+ function _e(e, r, n, o, d, p) {
573
573
  {
574
574
  var f = Me(e);
575
575
  if (!f) {
@@ -580,13 +580,13 @@ Check the top-level render call using <` + n + ">.");
580
580
  var x;
581
581
  e === null ? x = "null" : z(e) ? x = "array" : e !== void 0 && e.$$typeof === s ? (x = "<" + (O(e.type) || "Unknown") + " />", u = " Did you accidentally export a JSX literal instead of a component?") : x = typeof e, y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", x, u);
582
582
  }
583
- var g = sr(e, r, n, d, v);
583
+ var g = sr(e, r, n, d, p);
584
584
  if (g == null)
585
585
  return g;
586
586
  if (f) {
587
587
  var w = r.children;
588
588
  if (w !== void 0)
589
- if (i)
589
+ if (o)
590
590
  if (z(w)) {
591
591
  for (var $ = 0; $ < w.length; $++)
592
592
  Ee(w[$], e);
@@ -597,8 +597,8 @@ Check the top-level render call using <` + n + ">.");
597
597
  Ee(w, e);
598
598
  }
599
599
  if (F.call(r, "key")) {
600
- var N = O(e), _ = Object.keys(r).filter(function(hr) {
601
- return hr !== "key";
600
+ var N = O(e), _ = Object.keys(r).filter(function(mr) {
601
+ return mr !== "key";
602
602
  }), Z = _.length > 0 ? "{key: someKey, " + _.join(": ..., ") + ": ...}" : "{key: someKey}";
603
603
  if (!Re[N + Z]) {
604
604
  var pr = _.length > 0 ? "{" + _.join(": ..., ") + ": ...}" : "{}";
@@ -610,7 +610,7 @@ React keys must be passed directly to JSX without using spread:
610
610
  <%s key={someKey} {...props} />`, Z, N, pr, N), Re[N + Z] = !0;
611
611
  }
612
612
  }
613
- return e === l ? cr(g) : lr(g), g;
613
+ return e === i ? cr(g) : lr(g), g;
614
614
  }
615
615
  }
616
616
  function ur(e, r, n) {
@@ -620,7 +620,7 @@ React keys must be passed directly to JSX without using spread:
620
620
  return _e(e, r, n, !1);
621
621
  }
622
622
  var dr = fr, vr = ur;
623
- I.Fragment = l, I.jsx = dr, I.jsxs = vr;
623
+ I.Fragment = i, I.jsx = dr, I.jsxs = vr;
624
624
  }()), I;
625
625
  }
626
626
  var we;
@@ -628,7 +628,7 @@ function jr() {
628
628
  return we || (we = 1, process.env.NODE_ENV === "production" ? U.exports = xr() : U.exports = gr()), U.exports;
629
629
  }
630
630
  var t = jr();
631
- const Tr = () => /* @__PURE__ */ t.jsx("div", { className: "toolbar-pf" }), yr = ({ items: a, className: s }) => /* @__PURE__ */ t.jsx("ol", { className: `breadcrumb ${s || ""}`.trim(), children: a.map((o, l) => /* @__PURE__ */ t.jsx("li", { className: o.active ? "active" : "", children: o.active ? o.title : /* @__PURE__ */ t.jsx("a", { href: o.href, children: o.title }) }, l)) }), Er = /* @__PURE__ */ t.jsx("span", { className: "loading-spinner mr-2", children: /* @__PURE__ */ t.jsxs(
631
+ const Tr = () => /* @__PURE__ */ t.jsx("div", { className: "toolbar-pf" }), yr = ({ items: a, className: s }) => /* @__PURE__ */ t.jsx("ol", { className: `breadcrumb ${s || ""}`.trim(), children: a.map((l, i) => /* @__PURE__ */ t.jsx("li", { className: l.active ? "active" : "", children: l.active ? l.title : /* @__PURE__ */ t.jsx("a", { href: l.href, children: l.title }) }, i)) }), Er = /* @__PURE__ */ t.jsx("span", { className: "loading-spinner mr-2", children: /* @__PURE__ */ t.jsxs(
632
632
  "svg",
633
633
  {
634
634
  className: "animate-spin h-5 w-5 text-current",
@@ -660,135 +660,135 @@ const Tr = () => /* @__PURE__ */ t.jsx("div", { className: "toolbar-pf" }), yr =
660
660
  ) }), Ne = ({
661
661
  type: a = "default",
662
662
  title: s,
663
- size: o,
664
- label: l,
663
+ size: l,
664
+ label: i,
665
665
  onClick: c,
666
- isDisabled: p = !1,
667
- children: h,
666
+ isDisabled: v = !1,
667
+ children: m,
668
668
  className: C = "",
669
- isLoading: m = !1
669
+ isLoading: h = !1
670
670
  }) => {
671
- const T = `btn-${a}`, j = o ? `btn-${o}` : "", R = `${`btn ${T} ${j}`.trim()} ${C}`.trim();
671
+ const T = `btn-${a}`, j = l ? `btn-${l}` : "", R = `${`btn ${T} ${j}`.trim()} ${C}`.trim();
672
672
  return /* @__PURE__ */ t.jsx(
673
673
  "button",
674
674
  {
675
675
  className: R,
676
676
  type: "button",
677
677
  onClick: c,
678
- disabled: p || m,
678
+ disabled: v || h,
679
679
  children: /* @__PURE__ */ t.jsxs("div", { className: "flex items-center justify-center", children: [
680
- m && Er,
681
- h || l,
680
+ h && Er,
681
+ m || i,
682
682
  " ",
683
683
  s && /* @__PURE__ */ t.jsx("span", { children: s })
684
684
  ] })
685
685
  }
686
686
  );
687
- }, wr = ({ children: a, eventKey: s, active: o }) => /* @__PURE__ */ t.jsx(
687
+ }, wr = ({ children: a, eventKey: s, active: l }) => /* @__PURE__ */ t.jsx(
688
688
  "div",
689
689
  {
690
- className: `tab-pane ${o ? "active" : ""}`,
690
+ className: `tab-pane ${l ? "active" : ""}`,
691
691
  id: `${s}-panel`,
692
692
  role: "tabpanel",
693
693
  "aria-labelledby": `${s}-tab`,
694
694
  children: a
695
695
  },
696
696
  s
697
- ), Or = ({ activeKey: a, onSelect: s, children: o }) => /* @__PURE__ */ t.jsxs("div", { className: "tabs-container", children: [
698
- /* @__PURE__ */ t.jsx("ul", { className: "nav nav-tabs", role: "tablist", children: o.map(({ props: { eventKey: l, title: c } }) => /* @__PURE__ */ t.jsx("li", { className: a === l ? "active" : "", children: /* @__PURE__ */ t.jsx(
697
+ ), Or = ({ activeKey: a, onSelect: s, children: l }) => /* @__PURE__ */ t.jsxs("div", { className: "tabs-container", children: [
698
+ /* @__PURE__ */ t.jsx("ul", { className: "nav nav-tabs", role: "tablist", children: l.map(({ props: { eventKey: i, title: c } }) => /* @__PURE__ */ t.jsx("li", { className: a === i ? "active" : "", children: /* @__PURE__ */ t.jsx(
699
699
  "a",
700
700
  {
701
- href: `#${l}`,
702
- onClick: (p) => {
703
- p.preventDefault(), s(l);
701
+ href: `#${i}`,
702
+ onClick: (v) => {
703
+ v.preventDefault(), s(i);
704
704
  },
705
705
  children: c
706
706
  }
707
- ) }, l)) }),
708
- /* @__PURE__ */ t.jsx("div", { className: "tabs-container", children: /* @__PURE__ */ t.jsx("div", { className: "tab-content pf-c-tab-content", children: o.map(({ props: { eventKey: l, children: c } }) => /* @__PURE__ */ t.jsx(
707
+ ) }, i)) }),
708
+ /* @__PURE__ */ t.jsx("div", { className: "tabs-container", children: /* @__PURE__ */ t.jsx("div", { className: "tab-content pf-c-tab-content", children: l.map(({ props: { eventKey: i, children: c } }) => /* @__PURE__ */ t.jsx(
709
709
  "div",
710
710
  {
711
- className: `tab-pane ${a === l ? "active" : ""}`,
712
- id: `${l}-panel`,
711
+ className: `tab-pane ${a === i ? "active" : ""}`,
712
+ id: `${i}-panel`,
713
713
  role: "tabpanel",
714
- "aria-labelledby": `${l}-tab`,
714
+ "aria-labelledby": `${i}-tab`,
715
715
  children: c
716
716
  },
717
- l
717
+ i
718
718
  )) }) })
719
- ] }), Sr = mr(
719
+ ] }), Sr = hr(
720
720
  ({
721
721
  id: a,
722
722
  type: s,
723
- placeholder: o = "",
724
- value: l,
723
+ placeholder: l = "",
724
+ value: i,
725
725
  onChange: c,
726
- className: p = "form-control"
727
- }, h) => /* @__PURE__ */ t.jsx(
726
+ className: v = "form-control"
727
+ }, m) => /* @__PURE__ */ t.jsx(
728
728
  "input",
729
729
  {
730
730
  type: s,
731
731
  id: a,
732
- className: p,
733
- placeholder: o,
734
- value: l,
732
+ className: v,
733
+ placeholder: l,
734
+ value: i,
735
735
  onChange: c,
736
- ref: h
736
+ ref: m
737
737
  }
738
738
  )
739
- ), Nr = ({ title: a, isOpen: s, onClose: o, children: l, size: c }) => {
739
+ ), Nr = ({ title: a, isOpen: s, onClose: l, children: i, size: c }) => {
740
740
  if (!s) return null;
741
- const p = c ? `modal-${c}` : "";
742
- return /* @__PURE__ */ t.jsx("div", { className: "modal fade in", style: { display: "block" }, tabIndex: -1, role: "dialog", children: /* @__PURE__ */ t.jsx("div", { className: `modal-dialog ${p}`, role: "document", children: /* @__PURE__ */ t.jsxs("div", { className: "modal-content", children: [
741
+ const v = c ? `modal-${c}` : "";
742
+ return /* @__PURE__ */ t.jsx("div", { className: "modal fade in", style: { display: "block" }, tabIndex: -1, role: "dialog", children: /* @__PURE__ */ t.jsx("div", { className: `modal-dialog ${v}`, role: "document", children: /* @__PURE__ */ t.jsxs("div", { className: "modal-content", children: [
743
743
  /* @__PURE__ */ t.jsxs("div", { className: "modal-header", children: [
744
- /* @__PURE__ */ t.jsx("button", { type: "button", className: "close", onClick: o, "aria-hidden": "true", children: /* @__PURE__ */ t.jsx("span", { className: "pficon pficon-close" }) }),
744
+ /* @__PURE__ */ t.jsx("button", { type: "button", className: "close", onClick: l, "aria-hidden": "true", children: /* @__PURE__ */ t.jsx("span", { className: "pficon pficon-close" }) }),
745
745
  /* @__PURE__ */ t.jsx("h4", { className: "modal-title", children: a })
746
746
  ] }),
747
- /* @__PURE__ */ t.jsx("div", { className: "modal-body", children: l })
747
+ /* @__PURE__ */ t.jsx("div", { className: "modal-body", children: i })
748
748
  ] }) }) });
749
- }, kr = ({ variant: a, children: s, className: o = "" }) => {
750
- const l = {
749
+ }, kr = ({ variant: a, children: s, className: l = "" }) => {
750
+ const i = {
751
751
  warning: "text-yellow-600",
752
752
  success: "text-green-600",
753
753
  error: "text-red-600"
754
- }, c = o + " " + l[a] || "";
754
+ }, c = l + " " + i[a] || "";
755
755
  return /* @__PURE__ */ t.jsx("p", { className: c, children: s });
756
756
  }, Pr = ({ children: a, ...s }) => /* @__PURE__ */ t.jsx("table", { ...s, children: a }), $r = ({ children: a, ...s }) => /* @__PURE__ */ t.jsx("tbody", { ...s, children: a }), Dr = ({ children: a, ...s }) => /* @__PURE__ */ t.jsx("td", { ...s, children: a }), Fr = ({ children: a, ...s }) => /* @__PURE__ */ t.jsx("th", { ...s, children: a }), Ar = ({ children: a, ...s }) => /* @__PURE__ */ t.jsx("thead", { ...s, children: a }), Ir = ({ children: a, ...s }) => /* @__PURE__ */ t.jsx("tr", { ...s, children: a }), ke = ({
757
757
  items: a,
758
758
  selected: s,
759
- title: o,
760
- isOpen: l,
759
+ title: l,
760
+ isOpen: i,
761
761
  setIsOpen: c,
762
- onChange: p,
763
- className: h = ""
762
+ onChange: v,
763
+ className: m = ""
764
764
  }) => {
765
765
  const C = (b) => {
766
766
  c(!b);
767
- }, m = (b) => {
768
- c(!1), p(b);
767
+ }, h = (b) => {
768
+ c(!1), v(b);
769
769
  }, T = (b) => {
770
770
  const R = b.id === s;
771
771
  return /* @__PURE__ */ t.jsx(
772
772
  "li",
773
773
  {
774
- onClick: () => m(b),
774
+ onClick: () => h(b),
775
775
  className: R ? "active" : "",
776
776
  children: /* @__PURE__ */ t.jsx("a", { href: "#", children: b.title })
777
777
  },
778
778
  b.id
779
779
  );
780
- }, j = `btn btn-default dropdown-toggle flex-1 ${h}`;
780
+ }, j = `btn btn-default dropdown-toggle flex-1 ${m}`;
781
781
  return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
782
782
  /* @__PURE__ */ t.jsx(
783
783
  "button",
784
784
  {
785
785
  style: { marginLeft: "0px", left: "-1px" },
786
786
  className: j,
787
- onClick: () => C(l),
787
+ onClick: () => C(i),
788
788
  "data-toggle": "dropdown",
789
789
  type: "button",
790
790
  children: /* @__PURE__ */ t.jsxs("div", { className: "flex items-center justify-center", children: [
791
- o && /* @__PURE__ */ t.jsx("div", { className: "mr-2", children: o }),
791
+ l && /* @__PURE__ */ t.jsx("div", { className: "mr-2", children: l }),
792
792
  " ",
793
793
  /* @__PURE__ */ t.jsx("span", { className: "caret" }),
794
794
  " "
@@ -798,20 +798,21 @@ const Tr = () => /* @__PURE__ */ t.jsx("div", { className: "toolbar-pf" }), yr =
798
798
  /* @__PURE__ */ t.jsx("ul", { className: "dropdown-menu", role: "menu", children: a.map(T) })
799
799
  ] });
800
800
  }, Wr = (a) => {
801
- const [s, o] = Q(!1);
801
+ const [s, l] = Q(!1), i = a.selected, c = a.items.find((v) => v.id == i);
802
802
  return /* @__PURE__ */ t.jsx("div", { className: `btn-group ${s ? "open" : ""}`, children: /* @__PURE__ */ t.jsx(
803
803
  ke,
804
804
  {
805
805
  ...a,
806
- setIsOpen: o,
806
+ title: a.title || c.title,
807
+ setIsOpen: l,
807
808
  isOpen: s
808
809
  }
809
810
  ) });
810
- }, Rr = ({ currentPage: a, total: s, onPageChange: o, pageSize: l }) => {
811
- const c = Math.ceil(s / l), p = () => {
812
- a > 1 && o(a - 1);
813
- }, h = () => {
814
- a < c && o(a + 1);
811
+ }, Rr = ({ currentPage: a, total: s, onPageChange: l, pageSize: i }) => {
812
+ const c = Math.ceil(s / i), v = () => {
813
+ a > 1 && l(a - 1);
814
+ }, m = () => {
815
+ a < c && l(a + 1);
815
816
  };
816
817
  return /* @__PURE__ */ t.jsxs("div", { children: [
817
818
  /* @__PURE__ */ t.jsx("span", { children: /* @__PURE__ */ t.jsxs("span", { className: "pagination-pf-items-current", children: [
@@ -826,7 +827,7 @@ const Tr = () => /* @__PURE__ */ t.jsx("div", { className: "toolbar-pf" }), yr =
826
827
  type: "button",
827
828
  className: `btn btn-default ${a === 1 ? "disabled" : ""}`,
828
829
  disabled: a === 1,
829
- onClick: p,
830
+ onClick: v,
830
831
  children: /* @__PURE__ */ t.jsx("i", { className: "fa fa-angle-left" })
831
832
  }
832
833
  ),
@@ -836,7 +837,7 @@ const Tr = () => /* @__PURE__ */ t.jsx("div", { className: "toolbar-pf" }), yr =
836
837
  type: "button",
837
838
  className: `btn btn-default ${a === c ? "disabled" : ""}`,
838
839
  disabled: a === c,
839
- onClick: h,
840
+ onClick: m,
840
841
  children: /* @__PURE__ */ t.jsx("i", { className: "fa fa-angle-right" })
841
842
  }
842
843
  )
@@ -845,20 +846,21 @@ const Tr = () => /* @__PURE__ */ t.jsx("div", { className: "toolbar-pf" }), yr =
845
846
  }, Pe = ({
846
847
  children: a,
847
848
  onChange: s,
848
- items: o,
849
- selected: l
849
+ items: l,
850
+ selected: i,
851
+ className: c = ""
850
852
  }) => {
851
- const [c, p] = Q(!1);
852
- return /* @__PURE__ */ t.jsx("div", { className: `btn-group ${c ? "open" : ""}`, children: /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
853
+ const [v, m] = Q(!1);
854
+ return /* @__PURE__ */ t.jsx("div", { className: `btn-group ${c} ${v ? "open" : ""}`, children: /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
853
855
  a,
854
856
  /* @__PURE__ */ t.jsx(
855
857
  ke,
856
858
  {
857
- setIsOpen: p,
858
- isOpen: c,
859
+ setIsOpen: m,
860
+ isOpen: v,
859
861
  onChange: s,
860
- items: o,
861
- selected: l
862
+ items: l,
863
+ selected: i
862
864
  }
863
865
  )
864
866
  ] }) });
@@ -868,43 +870,43 @@ const Tr = () => /* @__PURE__ */ t.jsx("div", { className: "toolbar-pf" }), yr =
868
870
  { id: 3, title: "20 сек", data: 2e4 },
869
871
  { id: 4, title: "30 сек", data: 3e4 },
870
872
  { id: 5, title: "60 сек", data: 6e4 }
871
- ], _r = ({ onChange: a, value: s, onRefresh: o }) => {
872
- var p;
873
- const l = (h) => {
874
- a(h.data);
875
- }, c = (p = Oe.find((h) => h.data === s)) == null ? void 0 : p.id;
876
- return /* @__PURE__ */ t.jsx(Pe, { items: Oe, onChange: l, selected: c, children: /* @__PURE__ */ t.jsx(Ne, { className: "m-0", type: "default", onClick: o, children: /* @__PURE__ */ t.jsx("i", { className: "fa fa-refresh" }) }) });
873
+ ], _r = ({ onChange: a, value: s, onRefresh: l }) => {
874
+ var v;
875
+ const i = (m) => {
876
+ a(m.data);
877
+ }, c = (v = Oe.find((m) => m.data === s)) == null ? void 0 : v.id;
878
+ return /* @__PURE__ */ t.jsx(Pe, { className: "flex", items: Oe, onChange: i, selected: c, children: /* @__PURE__ */ t.jsx(Ne, { className: "m-0", type: "default", onClick: l, children: /* @__PURE__ */ t.jsx("i", { className: "fa fa-refresh" }) }) });
877
879
  }, Yr = ({
878
880
  interval: a,
879
881
  page: s,
880
- total: o,
881
- onRefresh: l,
882
+ total: l,
883
+ onRefresh: i,
882
884
  onChangeInterval: c,
883
- onPageChange: p,
884
- pageSize: h
885
+ onPageChange: v,
886
+ pageSize: m
885
887
  }) => /* @__PURE__ */ t.jsxs("div", { className: "flex justify-between bg-[#f5f5f5] border border-[#d1d1d1]", children: [
886
888
  /* @__PURE__ */ t.jsx("div", { className: "m-[5px]", children: /* @__PURE__ */ t.jsx(
887
889
  _r,
888
890
  {
889
891
  value: a,
890
892
  onChange: c,
891
- onRefresh: l
893
+ onRefresh: i
892
894
  }
893
895
  ) }),
894
896
  /* @__PURE__ */ t.jsx("div", { className: "m-[5px]", children: /* @__PURE__ */ t.jsx(
895
897
  Rr,
896
898
  {
897
- pageSize: h,
899
+ pageSize: m,
898
900
  currentPage: s,
899
- total: o,
900
- onPageChange: p
901
+ total: l,
902
+ onPageChange: v
901
903
  }
902
904
  ) })
903
905
  ] }), Vr = ({
904
906
  id: a,
905
907
  label: s,
906
- isChecked: o = !1,
907
- onChange: l,
908
+ isChecked: l = !1,
909
+ onChange: i,
908
910
  className: c = "checkbox"
909
911
  }) => /* @__PURE__ */ t.jsx("div", { className: c, children: /* @__PURE__ */ t.jsxs("label", { htmlFor: a, children: [
910
912
  /* @__PURE__ */ t.jsx(
@@ -912,48 +914,48 @@ const Tr = () => /* @__PURE__ */ t.jsx("div", { className: "toolbar-pf" }), yr =
912
914
  {
913
915
  type: "checkbox",
914
916
  id: a,
915
- checked: o,
916
- onChange: l
917
+ checked: l,
918
+ onChange: i
917
919
  }
918
920
  ),
919
921
  ` ${s}`
920
922
  ] }) }), Mr = ({
921
923
  placeholder: a = "",
922
924
  rows: s = 3,
923
- maxLength: o,
924
- value: l,
925
+ maxLength: l,
926
+ value: i,
925
927
  onChange: c,
926
- isDisabled: p = !1,
927
- className: h = ""
928
+ isDisabled: v = !1,
929
+ className: m = ""
928
930
  }) => {
929
- const [C, m] = Q(l || ""), T = l !== void 0 ? l : C, j = (b) => {
931
+ const [C, h] = Q(i || ""), T = i !== void 0 ? i : C, j = (b) => {
930
932
  const R = b.target.value;
931
- c ? c(R) : m(R);
933
+ c ? c(R) : h(R);
932
934
  };
933
935
  return /* @__PURE__ */ t.jsx(
934
936
  "textarea",
935
937
  {
936
- className: h,
938
+ className: m,
937
939
  placeholder: a,
938
940
  rows: s,
939
- maxLength: o,
941
+ maxLength: l,
940
942
  value: T,
941
943
  onChange: j,
942
- disabled: p
944
+ disabled: v
943
945
  }
944
946
  );
945
- }, Lr = ({ variant: a, title: s, className: o }) => {
946
- const l = `alert alert-${a} ${o || ""}`;
947
- return ["success", "info", "warning", "danger"].includes(a) || (console.warn(`Unsupported alert variant: "${a}". Defaulting to "info".`), a = "info"), /* @__PURE__ */ t.jsx("div", { className: l.trim(), role: "alert", children: s });
947
+ }, Lr = ({ variant: a, title: s, className: l }) => {
948
+ const i = `alert alert-${a} ${l || ""}`;
949
+ return ["success", "info", "warning", "danger"].includes(a) || (console.warn(`Unsupported alert variant: "${a}". Defaulting to "info".`), a = "info"), /* @__PURE__ */ t.jsx("div", { className: i.trim(), role: "alert", children: s });
948
950
  };
949
951
  function Ur(a, s) {
950
952
  br(() => {
951
953
  if (!a)
952
954
  return;
953
- const o = setInterval(() => {
955
+ const l = setInterval(() => {
954
956
  s();
955
957
  }, a);
956
- return () => clearInterval(o);
958
+ return () => clearInterval(l);
957
959
  }, [a]);
958
960
  }
959
961
  const Br = () => /* @__PURE__ */ t.jsxs("div", { children: [
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var ne;function Ie(){if(ne)return I;ne=1;var a=O,s=Symbol.for("react.element"),o=Symbol.for("react.fragment"),l=Object.prototype.hasOwnProperty,c=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,h={key:!0,ref:!0,__self:!0,__source:!0};function m(C,b,w){var y,g={},_=null,V=null;w!==void 0&&(_=""+w),b.key!==void 0&&(_=""+b.key),b.ref!==void 0&&(V=b.ref);for(y in b)l.call(b,y)&&!h.hasOwnProperty(y)&&(g[y]=b[y]);if(C&&C.defaultProps)for(y in b=C.defaultProps,b)g[y]===void 0&&(g[y]=b[y]);return{$$typeof:s,type:C,key:_,ref:V,props:g,_owner:c.current}}return I.Fragment=o,I.jsx=m,I.jsxs=m,I}var $={};/**
9
+ */var ne;function Ie(){if(ne)return I;ne=1;var a=O,s=Symbol.for("react.element"),l=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,c=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};function h(C,b,w){var y,g={},_=null,V=null;w!==void 0&&(_=""+w),b.key!==void 0&&(_=""+b.key),b.ref!==void 0&&(V=b.ref);for(y in b)i.call(b,y)&&!p.hasOwnProperty(y)&&(g[y]=b[y]);if(C&&C.defaultProps)for(y in b=C.defaultProps,b)g[y]===void 0&&(g[y]=b[y]);return{$$typeof:s,type:C,key:_,ref:V,props:g,_owner:c.current}}return I.Fragment=l,I.jsx=h,I.jsxs=h,I}var $={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,17 +14,17 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var ae;function $e(){return ae||(ae=1,process.env.NODE_ENV!=="production"&&function(){var a=O,s=Symbol.for("react.element"),o=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),h=Symbol.for("react.profiler"),m=Symbol.for("react.provider"),C=Symbol.for("react.context"),b=Symbol.for("react.forward_ref"),w=Symbol.for("react.suspense"),y=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),V=Symbol.for("react.offscreen"),ue=Symbol.iterator,sr="@@iterator";function ir(e){if(e===null||typeof e!="object")return null;var r=ue&&e[ue]||e[sr];return typeof r=="function"?r:null}var D=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function R(e){{for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];or("error",e,n)}}function or(e,r,n){{var i=D.ReactDebugCurrentFrame,v=i.getStackAddendum();v!==""&&(r+="%s",n=n.concat([v]));var p=n.map(function(f){return String(f)});p.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,p)}}var lr=!1,cr=!1,ur=!1,fr=!1,dr=!1,fe;fe=Symbol.for("react.module.reference");function vr(e){return!!(typeof e=="string"||typeof e=="function"||e===l||e===h||dr||e===c||e===w||e===y||fr||e===V||lr||cr||ur||typeof e=="object"&&e!==null&&(e.$$typeof===_||e.$$typeof===g||e.$$typeof===m||e.$$typeof===C||e.$$typeof===b||e.$$typeof===fe||e.getModuleId!==void 0))}function pr(e,r,n){var i=e.displayName;if(i)return i;var v=r.displayName||r.name||"";return v!==""?n+"("+v+")":n}function de(e){return e.displayName||"Context"}function k(e){if(e==null)return null;if(typeof e.tag=="number"&&R("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case l:return"Fragment";case o:return"Portal";case h:return"Profiler";case c:return"StrictMode";case w:return"Suspense";case y:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case C:var r=e;return de(r)+".Consumer";case m:var n=e;return de(n._context)+".Provider";case b:return pr(e,e.render,"ForwardRef");case g:var i=e.displayName||null;return i!==null?i:k(e.type)||"Memo";case _:{var v=e,p=v._payload,f=v._init;try{return k(f(p))}catch{return null}}}return null}var N=Object.assign,W=0,ve,pe,he,me,be,ge,je;function xe(){}xe.__reactDisabledLog=!0;function hr(){{if(W===0){ve=console.log,pe=console.info,he=console.warn,me=console.error,be=console.group,ge=console.groupCollapsed,je=console.groupEnd;var e={configurable:!0,enumerable:!0,value:xe,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}W++}}function mr(){{if(W--,W===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:N({},e,{value:ve}),info:N({},e,{value:pe}),warn:N({},e,{value:he}),error:N({},e,{value:me}),group:N({},e,{value:be}),groupCollapsed:N({},e,{value:ge}),groupEnd:N({},e,{value:je})})}W<0&&R("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var X=D.ReactCurrentDispatcher,q;function B(e,r,n){{if(q===void 0)try{throw Error()}catch(v){var i=v.stack.trim().match(/\n( *(at )?)/);q=i&&i[1]||""}return`
18
- `+q+e}}var Z=!1,L;{var br=typeof WeakMap=="function"?WeakMap:Map;L=new br}function ye(e,r){if(!e||Z)return"";{var n=L.get(e);if(n!==void 0)return n}var i;Z=!0;var v=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var p;p=X.current,X.current=null,hr();try{if(r){var f=function(){throw Error()};if(Object.defineProperty(f.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(f,[])}catch(T){i=T}Reflect.construct(e,[],f)}else{try{f.call()}catch(T){i=T}e.call(f.prototype)}}else{try{throw Error()}catch(T){i=T}e()}}catch(T){if(T&&i&&typeof T.stack=="string"){for(var u=T.stack.split(`
19
- `),E=i.stack.split(`
17
+ */var ae;function $e(){return ae||(ae=1,process.env.NODE_ENV!=="production"&&function(){var a=O,s=Symbol.for("react.element"),l=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),p=Symbol.for("react.profiler"),h=Symbol.for("react.provider"),C=Symbol.for("react.context"),b=Symbol.for("react.forward_ref"),w=Symbol.for("react.suspense"),y=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),V=Symbol.for("react.offscreen"),ue=Symbol.iterator,sr="@@iterator";function ir(e){if(e===null||typeof e!="object")return null;var r=ue&&e[ue]||e[sr];return typeof r=="function"?r:null}var D=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function R(e){{for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];or("error",e,n)}}function or(e,r,n){{var o=D.ReactDebugCurrentFrame,v=o.getStackAddendum();v!==""&&(r+="%s",n=n.concat([v]));var m=n.map(function(f){return String(f)});m.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,m)}}var lr=!1,cr=!1,ur=!1,fr=!1,dr=!1,fe;fe=Symbol.for("react.module.reference");function vr(e){return!!(typeof e=="string"||typeof e=="function"||e===i||e===p||dr||e===c||e===w||e===y||fr||e===V||lr||cr||ur||typeof e=="object"&&e!==null&&(e.$$typeof===_||e.$$typeof===g||e.$$typeof===h||e.$$typeof===C||e.$$typeof===b||e.$$typeof===fe||e.getModuleId!==void 0))}function pr(e,r,n){var o=e.displayName;if(o)return o;var v=r.displayName||r.name||"";return v!==""?n+"("+v+")":n}function de(e){return e.displayName||"Context"}function k(e){if(e==null)return null;if(typeof e.tag=="number"&&R("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case i:return"Fragment";case l:return"Portal";case p:return"Profiler";case c:return"StrictMode";case w:return"Suspense";case y:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case C:var r=e;return de(r)+".Consumer";case h:var n=e;return de(n._context)+".Provider";case b:return pr(e,e.render,"ForwardRef");case g:var o=e.displayName||null;return o!==null?o:k(e.type)||"Memo";case _:{var v=e,m=v._payload,f=v._init;try{return k(f(m))}catch{return null}}}return null}var N=Object.assign,W=0,ve,pe,me,he,be,ge,je;function xe(){}xe.__reactDisabledLog=!0;function mr(){{if(W===0){ve=console.log,pe=console.info,me=console.warn,he=console.error,be=console.group,ge=console.groupCollapsed,je=console.groupEnd;var e={configurable:!0,enumerable:!0,value:xe,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}W++}}function hr(){{if(W--,W===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:N({},e,{value:ve}),info:N({},e,{value:pe}),warn:N({},e,{value:me}),error:N({},e,{value:he}),group:N({},e,{value:be}),groupCollapsed:N({},e,{value:ge}),groupEnd:N({},e,{value:je})})}W<0&&R("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var X=D.ReactCurrentDispatcher,q;function B(e,r,n){{if(q===void 0)try{throw Error()}catch(v){var o=v.stack.trim().match(/\n( *(at )?)/);q=o&&o[1]||""}return`
18
+ `+q+e}}var Z=!1,L;{var br=typeof WeakMap=="function"?WeakMap:Map;L=new br}function ye(e,r){if(!e||Z)return"";{var n=L.get(e);if(n!==void 0)return n}var o;Z=!0;var v=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var m;m=X.current,X.current=null,mr();try{if(r){var f=function(){throw Error()};if(Object.defineProperty(f.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(f,[])}catch(T){o=T}Reflect.construct(e,[],f)}else{try{f.call()}catch(T){o=T}e.call(f.prototype)}}else{try{throw Error()}catch(T){o=T}e()}}catch(T){if(T&&o&&typeof T.stack=="string"){for(var u=T.stack.split(`
19
+ `),E=o.stack.split(`
20
20
  `),j=u.length-1,x=E.length-1;j>=1&&x>=0&&u[j]!==E[x];)x--;for(;j>=1&&x>=0;j--,x--)if(u[j]!==E[x]){if(j!==1||x!==1)do if(j--,x--,x<0||u[j]!==E[x]){var S=`
21
- `+u[j].replace(" at new "," at ");return e.displayName&&S.includes("<anonymous>")&&(S=S.replace("<anonymous>",e.displayName)),typeof e=="function"&&L.set(e,S),S}while(j>=1&&x>=0);break}}}finally{Z=!1,X.current=p,mr(),Error.prepareStackTrace=v}var F=e?e.displayName||e.name:"",P=F?B(F):"";return typeof e=="function"&&L.set(e,P),P}function gr(e,r,n){return ye(e,!1)}function jr(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function U(e,r,n){if(e==null)return"";if(typeof e=="function")return ye(e,jr(e));if(typeof e=="string")return B(e);switch(e){case w:return B("Suspense");case y:return B("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case b:return gr(e.render);case g:return U(e.type,r,n);case _:{var i=e,v=i._payload,p=i._init;try{return U(p(v),r,n)}catch{}}}return""}var Y=Object.prototype.hasOwnProperty,Re={},Ee=D.ReactDebugCurrentFrame;function J(e){if(e){var r=e._owner,n=U(e.type,e._source,r?r.type:null);Ee.setExtraStackFrame(n)}else Ee.setExtraStackFrame(null)}function xr(e,r,n,i,v){{var p=Function.call.bind(Y);for(var f in e)if(p(e,f)){var u=void 0;try{if(typeof e[f]!="function"){var E=Error((i||"React class")+": "+n+" type `"+f+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[f]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw E.name="Invariant Violation",E}u=e[f](r,f,i,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(j){u=j}u&&!(u instanceof Error)&&(J(v),R("%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).",i||"React class",n,f,typeof u),J(null)),u instanceof Error&&!(u.message in Re)&&(Re[u.message]=!0,J(v),R("Failed %s type: %s",n,u.message),J(null))}}}var yr=Array.isArray;function Q(e){return yr(e)}function Rr(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,n=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return n}}function Er(e){try{return _e(e),!1}catch{return!0}}function _e(e){return""+e}function Te(e){if(Er(e))return R("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Rr(e)),_e(e)}var Ce=D.ReactCurrentOwner,_r={key:!0,ref:!0,__self:!0,__source:!0},we,Se;function Tr(e){if(Y.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function Cr(e){if(Y.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function wr(e,r){typeof e.ref=="string"&&Ce.current}function Sr(e,r){{var n=function(){we||(we=!0,R("%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))};n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}}function Or(e,r){{var n=function(){Se||(Se=!0,R("%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))};n.isReactWarning=!0,Object.defineProperty(e,"ref",{get:n,configurable:!0})}}var kr=function(e,r,n,i,v,p,f){var u={$$typeof:s,type:e,key:r,ref:n,props:f,_owner:p};return u._store={},Object.defineProperty(u._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(u,"_self",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.defineProperty(u,"_source",{configurable:!1,enumerable:!1,writable:!1,value:v}),Object.freeze&&(Object.freeze(u.props),Object.freeze(u)),u};function Nr(e,r,n,i,v){{var p,f={},u=null,E=null;n!==void 0&&(Te(n),u=""+n),Cr(r)&&(Te(r.key),u=""+r.key),Tr(r)&&(E=r.ref,wr(r,v));for(p in r)Y.call(r,p)&&!_r.hasOwnProperty(p)&&(f[p]=r[p]);if(e&&e.defaultProps){var j=e.defaultProps;for(p in j)f[p]===void 0&&(f[p]=j[p])}if(u||E){var x=typeof e=="function"?e.displayName||e.name||"Unknown":e;u&&Sr(f,x),E&&Or(f,x)}return kr(e,u,E,v,i,Ce.current,f)}}var K=D.ReactCurrentOwner,Oe=D.ReactDebugCurrentFrame;function A(e){if(e){var r=e._owner,n=U(e.type,e._source,r?r.type:null);Oe.setExtraStackFrame(n)}else Oe.setExtraStackFrame(null)}var ee;ee=!1;function re(e){return typeof e=="object"&&e!==null&&e.$$typeof===s}function ke(){{if(K.current){var e=k(K.current.type);if(e)return`
21
+ `+u[j].replace(" at new "," at ");return e.displayName&&S.includes("<anonymous>")&&(S=S.replace("<anonymous>",e.displayName)),typeof e=="function"&&L.set(e,S),S}while(j>=1&&x>=0);break}}}finally{Z=!1,X.current=m,hr(),Error.prepareStackTrace=v}var F=e?e.displayName||e.name:"",P=F?B(F):"";return typeof e=="function"&&L.set(e,P),P}function gr(e,r,n){return ye(e,!1)}function jr(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function U(e,r,n){if(e==null)return"";if(typeof e=="function")return ye(e,jr(e));if(typeof e=="string")return B(e);switch(e){case w:return B("Suspense");case y:return B("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case b:return gr(e.render);case g:return U(e.type,r,n);case _:{var o=e,v=o._payload,m=o._init;try{return U(m(v),r,n)}catch{}}}return""}var Y=Object.prototype.hasOwnProperty,Re={},Ee=D.ReactDebugCurrentFrame;function J(e){if(e){var r=e._owner,n=U(e.type,e._source,r?r.type:null);Ee.setExtraStackFrame(n)}else Ee.setExtraStackFrame(null)}function xr(e,r,n,o,v){{var m=Function.call.bind(Y);for(var f in e)if(m(e,f)){var u=void 0;try{if(typeof e[f]!="function"){var E=Error((o||"React class")+": "+n+" type `"+f+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[f]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw E.name="Invariant Violation",E}u=e[f](r,f,o,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(j){u=j}u&&!(u instanceof Error)&&(J(v),R("%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",n,f,typeof u),J(null)),u instanceof Error&&!(u.message in Re)&&(Re[u.message]=!0,J(v),R("Failed %s type: %s",n,u.message),J(null))}}}var yr=Array.isArray;function Q(e){return yr(e)}function Rr(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,n=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return n}}function Er(e){try{return _e(e),!1}catch{return!0}}function _e(e){return""+e}function Te(e){if(Er(e))return R("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Rr(e)),_e(e)}var Ce=D.ReactCurrentOwner,_r={key:!0,ref:!0,__self:!0,__source:!0},we,Se;function Tr(e){if(Y.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function Cr(e){if(Y.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function wr(e,r){typeof e.ref=="string"&&Ce.current}function Sr(e,r){{var n=function(){we||(we=!0,R("%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))};n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}}function Or(e,r){{var n=function(){Se||(Se=!0,R("%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))};n.isReactWarning=!0,Object.defineProperty(e,"ref",{get:n,configurable:!0})}}var kr=function(e,r,n,o,v,m,f){var u={$$typeof:s,type:e,key:r,ref:n,props:f,_owner:m};return u._store={},Object.defineProperty(u._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(u,"_self",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.defineProperty(u,"_source",{configurable:!1,enumerable:!1,writable:!1,value:v}),Object.freeze&&(Object.freeze(u.props),Object.freeze(u)),u};function Nr(e,r,n,o,v){{var m,f={},u=null,E=null;n!==void 0&&(Te(n),u=""+n),Cr(r)&&(Te(r.key),u=""+r.key),Tr(r)&&(E=r.ref,wr(r,v));for(m in r)Y.call(r,m)&&!_r.hasOwnProperty(m)&&(f[m]=r[m]);if(e&&e.defaultProps){var j=e.defaultProps;for(m in j)f[m]===void 0&&(f[m]=j[m])}if(u||E){var x=typeof e=="function"?e.displayName||e.name||"Unknown":e;u&&Sr(f,x),E&&Or(f,x)}return kr(e,u,E,v,o,Ce.current,f)}}var K=D.ReactCurrentOwner,Oe=D.ReactDebugCurrentFrame;function A(e){if(e){var r=e._owner,n=U(e.type,e._source,r?r.type:null);Oe.setExtraStackFrame(n)}else Oe.setExtraStackFrame(null)}var ee;ee=!1;function re(e){return typeof e=="object"&&e!==null&&e.$$typeof===s}function ke(){{if(K.current){var e=k(K.current.type);if(e)return`
22
22
 
23
23
  Check the render method of \``+e+"`."}return""}}function Pr(e){return""}var Ne={};function Dr(e){{var r=ke();if(!r){var n=typeof e=="string"?e:e.displayName||e.name;n&&(r=`
24
24
 
25
- Check the top-level render call using <`+n+">.")}return r}}function Pe(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var n=Dr(r);if(Ne[n])return;Ne[n]=!0;var i="";e&&e._owner&&e._owner!==K.current&&(i=" It was passed a child from "+k(e._owner.type)+"."),A(e),R('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,i),A(null)}}function De(e,r){{if(typeof e!="object")return;if(Q(e))for(var n=0;n<e.length;n++){var i=e[n];re(i)&&Pe(i,r)}else if(re(e))e._store&&(e._store.validated=!0);else if(e){var v=ir(e);if(typeof v=="function"&&v!==e.entries)for(var p=v.call(e),f;!(f=p.next()).done;)re(f.value)&&Pe(f.value,r)}}}function Ar(e){{var r=e.type;if(r==null||typeof r=="string")return;var n;if(typeof r=="function")n=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===b||r.$$typeof===g))n=r.propTypes;else return;if(n){var i=k(r);xr(n,e.props,"prop",i,e)}else if(r.PropTypes!==void 0&&!ee){ee=!0;var v=k(r);R("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",v||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&R("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Fr(e){{for(var r=Object.keys(e.props),n=0;n<r.length;n++){var i=r[n];if(i!=="children"&&i!=="key"){A(e),R("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",i),A(null);break}}e.ref!==null&&(A(e),R("Invalid attribute `ref` supplied to `React.Fragment`."),A(null))}}var Ae={};function Fe(e,r,n,i,v,p){{var f=vr(e);if(!f){var u="";(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.");var E=Pr();E?u+=E:u+=ke();var j;e===null?j="null":Q(e)?j="array":e!==void 0&&e.$$typeof===s?(j="<"+(k(e.type)||"Unknown")+" />",u=" Did you accidentally export a JSX literal instead of a component?"):j=typeof e,R("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",j,u)}var x=Nr(e,r,n,v,p);if(x==null)return x;if(f){var S=r.children;if(S!==void 0)if(i)if(Q(S)){for(var F=0;F<S.length;F++)De(S[F],e);Object.freeze&&Object.freeze(S)}else R("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else De(S,e)}if(Y.call(r,"key")){var P=k(e),T=Object.keys(r).filter(function(Vr){return Vr!=="key"}),te=T.length>0?"{key: someKey, "+T.join(": ..., ")+": ...}":"{key: someKey}";if(!Ae[P+te]){var Mr=T.length>0?"{"+T.join(": ..., ")+": ...}":"{}";R(`A props object containing a "key" prop is being spread into JSX:
25
+ Check the top-level render call using <`+n+">.")}return r}}function Pe(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var n=Dr(r);if(Ne[n])return;Ne[n]=!0;var o="";e&&e._owner&&e._owner!==K.current&&(o=" It was passed a child from "+k(e._owner.type)+"."),A(e),R('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,o),A(null)}}function De(e,r){{if(typeof e!="object")return;if(Q(e))for(var n=0;n<e.length;n++){var o=e[n];re(o)&&Pe(o,r)}else if(re(e))e._store&&(e._store.validated=!0);else if(e){var v=ir(e);if(typeof v=="function"&&v!==e.entries)for(var m=v.call(e),f;!(f=m.next()).done;)re(f.value)&&Pe(f.value,r)}}}function Ar(e){{var r=e.type;if(r==null||typeof r=="string")return;var n;if(typeof r=="function")n=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===b||r.$$typeof===g))n=r.propTypes;else return;if(n){var o=k(r);xr(n,e.props,"prop",o,e)}else if(r.PropTypes!==void 0&&!ee){ee=!0;var v=k(r);R("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",v||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&R("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Fr(e){{for(var r=Object.keys(e.props),n=0;n<r.length;n++){var o=r[n];if(o!=="children"&&o!=="key"){A(e),R("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",o),A(null);break}}e.ref!==null&&(A(e),R("Invalid attribute `ref` supplied to `React.Fragment`."),A(null))}}var Ae={};function Fe(e,r,n,o,v,m){{var f=vr(e);if(!f){var u="";(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.");var E=Pr();E?u+=E:u+=ke();var j;e===null?j="null":Q(e)?j="array":e!==void 0&&e.$$typeof===s?(j="<"+(k(e.type)||"Unknown")+" />",u=" Did you accidentally export a JSX literal instead of a component?"):j=typeof e,R("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",j,u)}var x=Nr(e,r,n,v,m);if(x==null)return x;if(f){var S=r.children;if(S!==void 0)if(o)if(Q(S)){for(var F=0;F<S.length;F++)De(S[F],e);Object.freeze&&Object.freeze(S)}else R("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else De(S,e)}if(Y.call(r,"key")){var P=k(e),T=Object.keys(r).filter(function(Vr){return Vr!=="key"}),te=T.length>0?"{key: someKey, "+T.join(": ..., ")+": ...}":"{key: someKey}";if(!Ae[P+te]){var Mr=T.length>0?"{"+T.join(": ..., ")+": ...}":"{}";R(`A props object containing a "key" prop is being spread into JSX:
26
26
  let props = %s;
27
27
  <%s {...props} />
28
28
  React keys must be passed directly to JSX without using spread:
29
29
  let props = %s;
30
- <%s key={someKey} {...props} />`,te,P,Mr,P),Ae[P+te]=!0}}return e===l?Fr(x):Ar(x),x}}function Ir(e,r,n){return Fe(e,r,n,!0)}function $r(e,r,n){return Fe(e,r,n,!1)}var Wr=$r,Yr=Ir;$.Fragment=l,$.jsx=Wr,$.jsxs=Yr}()),$}var se;function We(){return se||(se=1,process.env.NODE_ENV==="production"?M.exports=Ie():M.exports=$e()),M.exports}var t=We();const Ye=()=>t.jsx("div",{className:"toolbar-pf"}),ie=({items:a,className:s})=>t.jsx("ol",{className:`breadcrumb ${s||""}`.trim(),children:a.map((o,l)=>t.jsx("li",{className:o.active?"active":"",children:o.active?o.title:t.jsx("a",{href:o.href,children:o.title})},l))}),Me=t.jsx("span",{className:"loading-spinner mr-2",children:t.jsxs("svg",{className:"animate-spin h-5 w-5 text-current",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[t.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),t.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]})}),G=({type:a="default",title:s,size:o,label:l,onClick:c,isDisabled:h=!1,children:m,className:C="",isLoading:b=!1})=>{const w=`btn-${a}`,y=o?`btn-${o}`:"",_=`${`btn ${w} ${y}`.trim()} ${C}`.trim();return t.jsx("button",{className:_,type:"button",onClick:c,disabled:h||b,children:t.jsxs("div",{className:"flex items-center justify-center",children:[b&&Me,m||l," ",s&&t.jsx("span",{children:s})]})})},Ve=({children:a,eventKey:s,active:o})=>t.jsx("div",{className:`tab-pane ${o?"active":""}`,id:`${s}-panel`,role:"tabpanel","aria-labelledby":`${s}-tab`,children:a},s),Be=({activeKey:a,onSelect:s,children:o})=>t.jsxs("div",{className:"tabs-container",children:[t.jsx("ul",{className:"nav nav-tabs",role:"tablist",children:o.map(({props:{eventKey:l,title:c}})=>t.jsx("li",{className:a===l?"active":"",children:t.jsx("a",{href:`#${l}`,onClick:h=>{h.preventDefault(),s(l)},children:c})},l))}),t.jsx("div",{className:"tabs-container",children:t.jsx("div",{className:"tab-content pf-c-tab-content",children:o.map(({props:{eventKey:l,children:c}})=>t.jsx("div",{className:`tab-pane ${a===l?"active":""}`,id:`${l}-panel`,role:"tabpanel","aria-labelledby":`${l}-tab`,children:c},l))})})]}),Le=O.forwardRef(({id:a,type:s,placeholder:o="",value:l,onChange:c,className:h="form-control"},m)=>t.jsx("input",{type:s,id:a,className:h,placeholder:o,value:l,onChange:c,ref:m})),Ue=({title:a,isOpen:s,onClose:o,children:l,size:c})=>{if(!s)return null;const h=c?`modal-${c}`:"";return t.jsx("div",{className:"modal fade in",style:{display:"block"},tabIndex:-1,role:"dialog",children:t.jsx("div",{className:`modal-dialog ${h}`,role:"document",children:t.jsxs("div",{className:"modal-content",children:[t.jsxs("div",{className:"modal-header",children:[t.jsx("button",{type:"button",className:"close",onClick:o,"aria-hidden":"true",children:t.jsx("span",{className:"pficon pficon-close"})}),t.jsx("h4",{className:"modal-title",children:a})]}),t.jsx("div",{className:"modal-body",children:l})]})})})},Je=({variant:a,children:s,className:o=""})=>{const l={warning:"text-yellow-600",success:"text-green-600",error:"text-red-600"},c=o+" "+l[a]||"";return t.jsx("p",{className:c,children:s})},Ge=({children:a,...s})=>t.jsx("table",{...s,children:a}),ze=({children:a,...s})=>t.jsx("tbody",{...s,children:a}),He=({children:a,...s})=>t.jsx("td",{...s,children:a}),Xe=({children:a,...s})=>t.jsx("th",{...s,children:a}),qe=({children:a,...s})=>t.jsx("thead",{...s,children:a}),Ze=({children:a,...s})=>t.jsx("tr",{...s,children:a}),z=({items:a,selected:s,title:o,isOpen:l,setIsOpen:c,onChange:h,className:m=""})=>{const C=g=>{c(!g)},b=g=>{c(!1),h(g)},w=g=>{const _=g.id===s;return t.jsx("li",{onClick:()=>b(g),className:_?"active":"",children:t.jsx("a",{href:"#",children:g.title})},g.id)},y=`btn btn-default dropdown-toggle flex-1 ${m}`;return t.jsxs(t.Fragment,{children:[t.jsx("button",{style:{marginLeft:"0px",left:"-1px"},className:y,onClick:()=>C(l),"data-toggle":"dropdown",type:"button",children:t.jsxs("div",{className:"flex items-center justify-center",children:[o&&t.jsx("div",{className:"mr-2",children:o})," ",t.jsx("span",{className:"caret"})," "]})}),t.jsx("ul",{className:"dropdown-menu",role:"menu",children:a.map(w)})]})},Qe=a=>{const[s,o]=O.useState(!1);return t.jsx("div",{className:`btn-group ${s?"open":""}`,children:t.jsx(z,{...a,setIsOpen:o,isOpen:s})})},oe=({currentPage:a,total:s,onPageChange:o,pageSize:l})=>{const c=Math.ceil(s/l),h=()=>{a>1&&o(a-1)},m=()=>{a<c&&o(a+1)};return t.jsxs("div",{children:[t.jsx("span",{children:t.jsxs("span",{className:"pagination-pf-items-current",children:[a," - ",c]})}),t.jsxs("div",{className:"btn-group ml-2",children:[t.jsx("button",{type:"button",className:`btn btn-default ${a===1?"disabled":""}`,disabled:a===1,onClick:h,children:t.jsx("i",{className:"fa fa-angle-left"})}),t.jsx("button",{type:"button",className:`btn btn-default ${a===c?"disabled":""}`,disabled:a===c,onClick:m,children:t.jsx("i",{className:"fa fa-angle-right"})})]})]})},H=({children:a,onChange:s,items:o,selected:l})=>{const[c,h]=O.useState(!1);return t.jsx("div",{className:`btn-group ${c?"open":""}`,children:t.jsxs(t.Fragment,{children:[a,t.jsx(z,{setIsOpen:h,isOpen:c,onChange:s,items:o,selected:l})]})})},le=[{id:1,title:"5 сек",data:5e3},{id:2,title:"10 сек",data:1e4},{id:3,title:"20 сек",data:2e4},{id:4,title:"30 сек",data:3e4},{id:5,title:"60 сек",data:6e4}],ce=({onChange:a,value:s,onRefresh:o})=>{var h;const l=m=>{a(m.data)},c=(h=le.find(m=>m.data===s))==null?void 0:h.id;return t.jsx(H,{items:le,onChange:l,selected:c,children:t.jsx(G,{className:"m-0",type:"default",onClick:o,children:t.jsx("i",{className:"fa fa-refresh"})})})},Ke=({interval:a,page:s,total:o,onRefresh:l,onChangeInterval:c,onPageChange:h,pageSize:m})=>t.jsxs("div",{className:"flex justify-between bg-[#f5f5f5] border border-[#d1d1d1]",children:[t.jsx("div",{className:"m-[5px]",children:t.jsx(ce,{value:a,onChange:c,onRefresh:l})}),t.jsx("div",{className:"m-[5px]",children:t.jsx(oe,{pageSize:m,currentPage:s,total:o,onPageChange:h})})]}),er=({id:a,label:s,isChecked:o=!1,onChange:l,className:c="checkbox"})=>t.jsx("div",{className:c,children:t.jsxs("label",{htmlFor:a,children:[t.jsx("input",{type:"checkbox",id:a,checked:o,onChange:l}),` ${s}`]})}),rr=({placeholder:a="",rows:s=3,maxLength:o,value:l,onChange:c,isDisabled:h=!1,className:m=""})=>{const[C,b]=O.useState(l||""),w=l!==void 0?l:C,y=g=>{const _=g.target.value;c?c(_):b(_)};return t.jsx("textarea",{className:m,placeholder:a,rows:s,maxLength:o,value:w,onChange:y,disabled:h})},tr=({variant:a,title:s,className:o})=>{const l=`alert alert-${a} ${o||""}`;return["success","info","warning","danger"].includes(a)||(console.warn(`Unsupported alert variant: "${a}". Defaulting to "info".`),a="info"),t.jsx("div",{className:l.trim(),role:"alert",children:s})};function nr(a,s){O.useEffect(()=>{if(!a)return;const o=setInterval(()=>{s()},a);return()=>clearInterval(o)},[a])}const ar=()=>t.jsxs("div",{children:[t.jsx(ie,{items:[{title:"Дополнения",active:!0},{title:"Название плагина",href:"#Название плагина"}]}),t.jsx(H,{onChange:()=>{},items:[{id:0,title:"5 сек"},{id:1,title:"10 сек"},{id:2,title:"20 сек"}],children:t.jsx(G,{children:"Hello"})})]});d.Alert=tr,d.Breadcrumb=ie,d.Button=G,d.Checkbox=er,d.Dropdown=z,d.DropdownSelect=Qe,d.GroupButtonContainer=H,d.HelpText=Je,d.Input=Le,d.Modal=Ue,d.Pagination=oe,d.ReloadButton=ce,d.SampleComp=ar,d.Tab=Ve,d.Table=Ge,d.TableToolbar=Ke,d.Tabs=Be,d.Tbody=ze,d.Td=He,d.TextArea=rr,d.Th=Xe,d.Thead=qe,d.ToolbarContainer=Ye,d.Tr=Ze,d.useIntervalLoader=nr,Object.defineProperty(d,Symbol.toStringTag,{value:"Module"})});
30
+ <%s key={someKey} {...props} />`,te,P,Mr,P),Ae[P+te]=!0}}return e===i?Fr(x):Ar(x),x}}function Ir(e,r,n){return Fe(e,r,n,!0)}function $r(e,r,n){return Fe(e,r,n,!1)}var Wr=$r,Yr=Ir;$.Fragment=i,$.jsx=Wr,$.jsxs=Yr}()),$}var se;function We(){return se||(se=1,process.env.NODE_ENV==="production"?M.exports=Ie():M.exports=$e()),M.exports}var t=We();const Ye=()=>t.jsx("div",{className:"toolbar-pf"}),ie=({items:a,className:s})=>t.jsx("ol",{className:`breadcrumb ${s||""}`.trim(),children:a.map((l,i)=>t.jsx("li",{className:l.active?"active":"",children:l.active?l.title:t.jsx("a",{href:l.href,children:l.title})},i))}),Me=t.jsx("span",{className:"loading-spinner mr-2",children:t.jsxs("svg",{className:"animate-spin h-5 w-5 text-current",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[t.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),t.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]})}),G=({type:a="default",title:s,size:l,label:i,onClick:c,isDisabled:p=!1,children:h,className:C="",isLoading:b=!1})=>{const w=`btn-${a}`,y=l?`btn-${l}`:"",_=`${`btn ${w} ${y}`.trim()} ${C}`.trim();return t.jsx("button",{className:_,type:"button",onClick:c,disabled:p||b,children:t.jsxs("div",{className:"flex items-center justify-center",children:[b&&Me,h||i," ",s&&t.jsx("span",{children:s})]})})},Ve=({children:a,eventKey:s,active:l})=>t.jsx("div",{className:`tab-pane ${l?"active":""}`,id:`${s}-panel`,role:"tabpanel","aria-labelledby":`${s}-tab`,children:a},s),Be=({activeKey:a,onSelect:s,children:l})=>t.jsxs("div",{className:"tabs-container",children:[t.jsx("ul",{className:"nav nav-tabs",role:"tablist",children:l.map(({props:{eventKey:i,title:c}})=>t.jsx("li",{className:a===i?"active":"",children:t.jsx("a",{href:`#${i}`,onClick:p=>{p.preventDefault(),s(i)},children:c})},i))}),t.jsx("div",{className:"tabs-container",children:t.jsx("div",{className:"tab-content pf-c-tab-content",children:l.map(({props:{eventKey:i,children:c}})=>t.jsx("div",{className:`tab-pane ${a===i?"active":""}`,id:`${i}-panel`,role:"tabpanel","aria-labelledby":`${i}-tab`,children:c},i))})})]}),Le=O.forwardRef(({id:a,type:s,placeholder:l="",value:i,onChange:c,className:p="form-control"},h)=>t.jsx("input",{type:s,id:a,className:p,placeholder:l,value:i,onChange:c,ref:h})),Ue=({title:a,isOpen:s,onClose:l,children:i,size:c})=>{if(!s)return null;const p=c?`modal-${c}`:"";return t.jsx("div",{className:"modal fade in",style:{display:"block"},tabIndex:-1,role:"dialog",children:t.jsx("div",{className:`modal-dialog ${p}`,role:"document",children:t.jsxs("div",{className:"modal-content",children:[t.jsxs("div",{className:"modal-header",children:[t.jsx("button",{type:"button",className:"close",onClick:l,"aria-hidden":"true",children:t.jsx("span",{className:"pficon pficon-close"})}),t.jsx("h4",{className:"modal-title",children:a})]}),t.jsx("div",{className:"modal-body",children:i})]})})})},Je=({variant:a,children:s,className:l=""})=>{const i={warning:"text-yellow-600",success:"text-green-600",error:"text-red-600"},c=l+" "+i[a]||"";return t.jsx("p",{className:c,children:s})},Ge=({children:a,...s})=>t.jsx("table",{...s,children:a}),ze=({children:a,...s})=>t.jsx("tbody",{...s,children:a}),He=({children:a,...s})=>t.jsx("td",{...s,children:a}),Xe=({children:a,...s})=>t.jsx("th",{...s,children:a}),qe=({children:a,...s})=>t.jsx("thead",{...s,children:a}),Ze=({children:a,...s})=>t.jsx("tr",{...s,children:a}),z=({items:a,selected:s,title:l,isOpen:i,setIsOpen:c,onChange:p,className:h=""})=>{const C=g=>{c(!g)},b=g=>{c(!1),p(g)},w=g=>{const _=g.id===s;return t.jsx("li",{onClick:()=>b(g),className:_?"active":"",children:t.jsx("a",{href:"#",children:g.title})},g.id)},y=`btn btn-default dropdown-toggle flex-1 ${h}`;return t.jsxs(t.Fragment,{children:[t.jsx("button",{style:{marginLeft:"0px",left:"-1px"},className:y,onClick:()=>C(i),"data-toggle":"dropdown",type:"button",children:t.jsxs("div",{className:"flex items-center justify-center",children:[l&&t.jsx("div",{className:"mr-2",children:l})," ",t.jsx("span",{className:"caret"})," "]})}),t.jsx("ul",{className:"dropdown-menu",role:"menu",children:a.map(w)})]})},Qe=a=>{const[s,l]=O.useState(!1),i=a.selected,c=a.items.find(p=>p.id==i);return t.jsx("div",{className:`btn-group ${s?"open":""}`,children:t.jsx(z,{...a,title:a.title||c.title,setIsOpen:l,isOpen:s})})},oe=({currentPage:a,total:s,onPageChange:l,pageSize:i})=>{const c=Math.ceil(s/i),p=()=>{a>1&&l(a-1)},h=()=>{a<c&&l(a+1)};return t.jsxs("div",{children:[t.jsx("span",{children:t.jsxs("span",{className:"pagination-pf-items-current",children:[a," - ",c]})}),t.jsxs("div",{className:"btn-group ml-2",children:[t.jsx("button",{type:"button",className:`btn btn-default ${a===1?"disabled":""}`,disabled:a===1,onClick:p,children:t.jsx("i",{className:"fa fa-angle-left"})}),t.jsx("button",{type:"button",className:`btn btn-default ${a===c?"disabled":""}`,disabled:a===c,onClick:h,children:t.jsx("i",{className:"fa fa-angle-right"})})]})]})},H=({children:a,onChange:s,items:l,selected:i,className:c=""})=>{const[p,h]=O.useState(!1);return t.jsx("div",{className:`btn-group ${c} ${p?"open":""}`,children:t.jsxs(t.Fragment,{children:[a,t.jsx(z,{setIsOpen:h,isOpen:p,onChange:s,items:l,selected:i})]})})},le=[{id:1,title:"5 сек",data:5e3},{id:2,title:"10 сек",data:1e4},{id:3,title:"20 сек",data:2e4},{id:4,title:"30 сек",data:3e4},{id:5,title:"60 сек",data:6e4}],ce=({onChange:a,value:s,onRefresh:l})=>{var p;const i=h=>{a(h.data)},c=(p=le.find(h=>h.data===s))==null?void 0:p.id;return t.jsx(H,{className:"flex",items:le,onChange:i,selected:c,children:t.jsx(G,{className:"m-0",type:"default",onClick:l,children:t.jsx("i",{className:"fa fa-refresh"})})})},Ke=({interval:a,page:s,total:l,onRefresh:i,onChangeInterval:c,onPageChange:p,pageSize:h})=>t.jsxs("div",{className:"flex justify-between bg-[#f5f5f5] border border-[#d1d1d1]",children:[t.jsx("div",{className:"m-[5px]",children:t.jsx(ce,{value:a,onChange:c,onRefresh:i})}),t.jsx("div",{className:"m-[5px]",children:t.jsx(oe,{pageSize:h,currentPage:s,total:l,onPageChange:p})})]}),er=({id:a,label:s,isChecked:l=!1,onChange:i,className:c="checkbox"})=>t.jsx("div",{className:c,children:t.jsxs("label",{htmlFor:a,children:[t.jsx("input",{type:"checkbox",id:a,checked:l,onChange:i}),` ${s}`]})}),rr=({placeholder:a="",rows:s=3,maxLength:l,value:i,onChange:c,isDisabled:p=!1,className:h=""})=>{const[C,b]=O.useState(i||""),w=i!==void 0?i:C,y=g=>{const _=g.target.value;c?c(_):b(_)};return t.jsx("textarea",{className:h,placeholder:a,rows:s,maxLength:l,value:w,onChange:y,disabled:p})},tr=({variant:a,title:s,className:l})=>{const i=`alert alert-${a} ${l||""}`;return["success","info","warning","danger"].includes(a)||(console.warn(`Unsupported alert variant: "${a}". Defaulting to "info".`),a="info"),t.jsx("div",{className:i.trim(),role:"alert",children:s})};function nr(a,s){O.useEffect(()=>{if(!a)return;const l=setInterval(()=>{s()},a);return()=>clearInterval(l)},[a])}const ar=()=>t.jsxs("div",{children:[t.jsx(ie,{items:[{title:"Дополнения",active:!0},{title:"Название плагина",href:"#Название плагина"}]}),t.jsx(H,{onChange:()=>{},items:[{id:0,title:"5 сек"},{id:1,title:"10 сек"},{id:2,title:"20 сек"}],children:t.jsx(G,{children:"Hello"})})]});d.Alert=tr,d.Breadcrumb=ie,d.Button=G,d.Checkbox=er,d.Dropdown=z,d.DropdownSelect=Qe,d.GroupButtonContainer=H,d.HelpText=Je,d.Input=Le,d.Modal=Ue,d.Pagination=oe,d.ReloadButton=ce,d.SampleComp=ar,d.Tab=Ve,d.Table=Ge,d.TableToolbar=Ke,d.Tabs=Be,d.Tbody=ze,d.Td=He,d.TextArea=rr,d.Th=Xe,d.Thead=qe,d.ToolbarContainer=Ye,d.Tr=Ze,d.useIntervalLoader=nr,Object.defineProperty(d,Symbol.toStringTag,{value:"Module"})});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ovirt-ui-toolkit",
3
- "version": "0.0.59",
3
+ "version": "0.0.61",
4
4
  "type": "module",
5
5
  "main": "./dist/ovirt-ui-toolkit.umd.js",
6
6
  "module": "./dist/ovirt-ui-toolkit.es.js",