ovirt-ui-toolkit 0.0.65 → 0.0.67

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.
@@ -1,7 +1,7 @@
1
1
  import { default as React } from 'react';
2
2
  type ButtonProps = {
3
3
  type?: 'default' | 'primary' | 'danger';
4
- size?: 'xs' | 'lg';
4
+ size?: 'xs' | 'lg' | 'sm';
5
5
  label?: string;
6
6
  title?: string;
7
7
  onClick?: () => void;
@@ -1,5 +1,5 @@
1
- import { ChangeEvent } from 'react';
2
- interface InputProps {
1
+ import { ChangeEvent, InputHTMLAttributes } from 'react';
2
+ interface InputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'value' | 'onChange'> {
3
3
  id: string;
4
4
  type: 'text' | 'email' | 'password' | 'number' | 'date' | 'search';
5
5
  placeholder?: string;
@@ -14,12 +14,12 @@ function xr() {
14
14
  if (Ce) return A;
15
15
  Ce = 1;
16
16
  var n = Se, s = Symbol.for("react.element"), i = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty, c = n.__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
- var j, b = {}, R = null, W = null;
19
- T !== void 0 && (R = "" + T), h.key !== void 0 && (R = "" + h.key), h.ref !== void 0 && (W = h.ref);
17
+ function m(y, h, T) {
18
+ var j, b = {}, _ = null, W = null;
19
+ T !== void 0 && (_ = "" + T), h.key !== void 0 && (_ = "" + h.key), h.ref !== void 0 && (W = h.ref);
20
20
  for (j in h) o.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
- return { $$typeof: s, type: C, key: R, ref: W, props: b, _owner: c.current };
21
+ if (y && y.defaultProps) for (j in h = y.defaultProps, h) b[j] === void 0 && (b[j] = h[j]);
22
+ return { $$typeof: s, type: y, key: _, ref: W, props: b, _owner: c.current };
23
23
  }
24
24
  return A.Fragment = i, A.jsx = m, A.jsxs = m, A;
25
25
  }
@@ -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 n = Se, s = Symbol.for("react.element"), i = Symbol.for("react.portal"), o = 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";
39
+ var n = Se, s = Symbol.for("react.element"), i = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), c = Symbol.for("react.strict_mode"), v = Symbol.for("react.profiler"), m = Symbol.for("react.provider"), y = 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"), _ = 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;
@@ -44,7 +44,7 @@ function gr() {
44
44
  return typeof r == "function" ? r : null;
45
45
  }
46
46
  var k = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
47
- function y(e) {
47
+ function E(e) {
48
48
  {
49
49
  for (var r = arguments.length, a = new Array(r > 1 ? r - 1 : 0), l = 1; l < r; l++)
50
50
  a[l - 1] = arguments[l];
@@ -64,7 +64,7 @@ function gr() {
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 Le(e) {
67
- return !!(typeof e == "string" || typeof e == "function" || e === o || 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
67
+ return !!(typeof e == "string" || typeof e == "function" || e === o || e === v || Ve || e === c || e === T || e === j || Ye || e === W || Ae || Ie || We || typeof e == "object" && e !== null && (e.$$typeof === _ || e.$$typeof === b || e.$$typeof === m || e.$$typeof === y || 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.
@@ -83,7 +83,7 @@ function gr() {
83
83
  function O(e) {
84
84
  if (e == null)
85
85
  return null;
86
- if (typeof e.tag == "number" && y("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" && E("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;
@@ -103,7 +103,7 @@ function gr() {
103
103
  }
104
104
  if (typeof e == "object")
105
105
  switch (e.$$typeof) {
106
- case C:
106
+ case y:
107
107
  var r = e;
108
108
  return re(r) + ".Consumer";
109
109
  case m:
@@ -114,7 +114,7 @@ function gr() {
114
114
  case b:
115
115
  var l = e.displayName || null;
116
116
  return l !== null ? l : O(e.type) || "Memo";
117
- case R: {
117
+ case _: {
118
118
  var d = e, p = d._payload, f = d._init;
119
119
  try {
120
120
  return O(f(p));
@@ -184,7 +184,7 @@ function gr() {
184
184
  })
185
185
  });
186
186
  }
187
- D < 0 && y("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
187
+ D < 0 && E("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
188
188
  }
189
189
  }
190
190
  var B = k.ReactCurrentDispatcher, J;
@@ -232,37 +232,37 @@ function gr() {
232
232
  }), typeof Reflect == "object" && Reflect.construct) {
233
233
  try {
234
234
  Reflect.construct(f, []);
235
- } catch (_) {
236
- l = _;
235
+ } catch (C) {
236
+ l = C;
237
237
  }
238
238
  Reflect.construct(e, [], f);
239
239
  } else {
240
240
  try {
241
241
  f.call();
242
- } catch (_) {
243
- l = _;
242
+ } catch (C) {
243
+ l = C;
244
244
  }
245
245
  e.call(f.prototype);
246
246
  }
247
247
  } else {
248
248
  try {
249
249
  throw Error();
250
- } catch (_) {
251
- l = _;
250
+ } catch (C) {
251
+ l = C;
252
252
  }
253
253
  e();
254
254
  }
255
- } catch (_) {
256
- if (_ && l && typeof _.stack == "string") {
257
- for (var u = _.stack.split(`
258
- `), E = l.stack.split(`
259
- `), x = u.length - 1, g = E.length - 1; x >= 1 && g >= 0 && u[x] !== E[g]; )
255
+ } catch (C) {
256
+ if (C && l && typeof C.stack == "string") {
257
+ for (var u = C.stack.split(`
258
+ `), R = l.stack.split(`
259
+ `), x = u.length - 1, g = R.length - 1; x >= 1 && g >= 0 && u[x] !== R[g]; )
260
260
  g--;
261
261
  for (; x >= 1 && g >= 0; x--, g--)
262
- if (u[x] !== E[g]) {
262
+ if (u[x] !== R[g]) {
263
263
  if (x !== 1 || g !== 1)
264
264
  do
265
- if (x--, g--, g < 0 || u[x] !== E[g]) {
265
+ if (x--, g--, g < 0 || u[x] !== R[g]) {
266
266
  var w = `
267
267
  ` + u[x].replace(" at new ", " at ");
268
268
  return e.displayName && w.includes("<anonymous>") && (w = w.replace("<anonymous>", e.displayName)), typeof e == "function" && V.set(e, w), w;
@@ -303,7 +303,7 @@ function gr() {
303
303
  return qe(e.render);
304
304
  case b:
305
305
  return L(e.type, r, a);
306
- case R: {
306
+ case _: {
307
307
  var l = e, d = l._payload, p = l._init;
308
308
  try {
309
309
  return L(p(d), r, a);
@@ -329,14 +329,14 @@ function gr() {
329
329
  var u = void 0;
330
330
  try {
331
331
  if (typeof e[f] != "function") {
332
- var E = Error((l || "React class") + ": " + a + " 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
- throw E.name = "Invariant Violation", E;
332
+ var R = Error((l || "React class") + ": " + a + " 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
+ throw R.name = "Invariant Violation", R;
334
334
  }
335
335
  u = e[f](r, f, l, a, 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) && (M(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).", l || "React class", a, f, typeof u), M(null)), u instanceof Error && !(u.message in fe) && (fe[u.message] = !0, M(d), y("Failed %s type: %s", a, u.message), M(null));
339
+ u && !(u instanceof Error) && (M(d), E("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", l || "React class", a, f, typeof u), M(null)), u instanceof Error && !(u.message in fe) && (fe[u.message] = !0, M(d), E("Failed %s type: %s", a, u.message), M(null));
340
340
  }
341
341
  }
342
342
  }
@@ -362,7 +362,7 @@ function gr() {
362
362
  }
363
363
  function pe(e) {
364
364
  if (Ze(e))
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);
365
+ return E("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
367
  var me = k.ReactCurrentOwner, Qe = {
368
368
  key: !0,
@@ -392,7 +392,7 @@ function gr() {
392
392
  function tr(e, r) {
393
393
  {
394
394
  var a = function() {
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));
395
+ he || (he = !0, E("%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
  a.isReactWarning = !0, Object.defineProperty(e, "key", {
398
398
  get: a,
@@ -403,7 +403,7 @@ function gr() {
403
403
  function nr(e, r) {
404
404
  {
405
405
  var a = function() {
406
- be || (be = !0, y("%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
+ be || (be = !0, E("%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
  a.isReactWarning = !0, Object.defineProperty(e, "ref", {
409
409
  get: a,
@@ -442,8 +442,8 @@ function gr() {
442
442
  };
443
443
  function sr(e, r, a, l, d) {
444
444
  {
445
- var p, f = {}, u = null, E = null;
446
- a !== void 0 && (pe(a), u = "" + a), er(r) && (pe(r.key), u = "" + r.key), Ke(r) && (E = r.ref, rr(r, d));
445
+ var p, f = {}, u = null, R = null;
446
+ a !== void 0 && (pe(a), u = "" + a), er(r) && (pe(r.key), u = "" + r.key), Ke(r) && (R = r.ref, rr(r, d));
447
447
  for (p in r)
448
448
  F.call(r, p) && !Qe.hasOwnProperty(p) && (f[p] = r[p]);
449
449
  if (e && e.defaultProps) {
@@ -451,11 +451,11 @@ function gr() {
451
451
  for (p in x)
452
452
  f[p] === void 0 && (f[p] = x[p]);
453
453
  }
454
- if (u || E) {
454
+ if (u || R) {
455
455
  var g = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
456
- u && tr(f, g), E && nr(f, g);
456
+ u && tr(f, g), R && nr(f, g);
457
457
  }
458
- return ar(e, u, E, d, l, me.current, f);
458
+ return ar(e, u, R, d, l, me.current, f);
459
459
  }
460
460
  }
461
461
  var G = k.ReactCurrentOwner, xe = k.ReactDebugCurrentFrame;
@@ -509,7 +509,7 @@ Check the top-level render call using <` + a + ">.");
509
509
  return;
510
510
  je[a] = !0;
511
511
  var l = "";
512
- e && e._owner && e._owner !== G.current && (l = " 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.', a, l), P(null);
512
+ e && e._owner && e._owner !== G.current && (l = " It was passed a child from " + O(e._owner.type) + "."), P(e), E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', a, l), P(null);
513
513
  }
514
514
  }
515
515
  function Ee(e, r) {
@@ -551,9 +551,9 @@ Check the top-level render call using <` + a + ">.");
551
551
  } else if (r.PropTypes !== void 0 && !H) {
552
552
  H = !0;
553
553
  var d = O(r);
554
- y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", d || "Unknown");
554
+ E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", d || "Unknown");
555
555
  }
556
- typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
556
+ typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
557
557
  }
558
558
  }
559
559
  function cr(e) {
@@ -561,11 +561,11 @@ Check the top-level render call using <` + a + ">.");
561
561
  for (var r = Object.keys(e.props), a = 0; a < r.length; a++) {
562
562
  var l = r[a];
563
563
  if (l !== "children" && l !== "key") {
564
- P(e), y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", l), P(null);
564
+ P(e), E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", l), P(null);
565
565
  break;
566
566
  }
567
567
  }
568
- e.ref !== null && (P(e), y("Invalid attribute `ref` supplied to `React.Fragment`."), P(null));
568
+ e.ref !== null && (P(e), E("Invalid attribute `ref` supplied to `React.Fragment`."), P(null));
569
569
  }
570
570
  }
571
571
  var Re = {};
@@ -575,10 +575,10 @@ Check the top-level render call using <` + a + ">.");
575
575
  if (!f) {
576
576
  var u = "";
577
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 E = ir();
579
- E ? u += E : u += ge();
578
+ var R = ir();
579
+ R ? u += R : u += ge();
580
580
  var x;
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);
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, E("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
583
  var g = sr(e, r, a, d, p);
584
584
  if (g == null)
@@ -592,17 +592,17 @@ Check the top-level render call using <` + a + ">.");
592
592
  Ee(w[$], e);
593
593
  Object.freeze && Object.freeze(w);
594
594
  } else
595
- y("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
+ E("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
597
  Ee(w, e);
598
598
  }
599
599
  if (F.call(r, "key")) {
600
- var N = O(e), _ = Object.keys(r).filter(function(mr) {
600
+ var N = O(e), C = Object.keys(r).filter(function(mr) {
601
601
  return mr !== "key";
602
- }), Z = _.length > 0 ? "{key: someKey, " + _.join(": ..., ") + ": ...}" : "{key: someKey}";
602
+ }), Z = C.length > 0 ? "{key: someKey, " + C.join(": ..., ") + ": ...}" : "{key: someKey}";
603
603
  if (!Re[N + Z]) {
604
- var pr = _.length > 0 ? "{" + _.join(": ..., ") + ": ...}" : "{}";
605
- y(`A props object containing a "key" prop is being spread into JSX:
604
+ var pr = C.length > 0 ? "{" + C.join(": ..., ") + ": ...}" : "{}";
605
+ E(`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:
@@ -665,14 +665,14 @@ const Tr = () => /* @__PURE__ */ t.jsx("div", { className: "toolbar-pf" }), yr =
665
665
  onClick: c,
666
666
  isDisabled: v = !1,
667
667
  children: m,
668
- className: C = "",
668
+ className: y = "",
669
669
  isLoading: h = !1
670
670
  }) => {
671
- const T = `btn-${n}`, j = i ? `btn-${i}` : "", R = `${`btn ${T} ${j}`.trim()} ${C}`.trim();
671
+ const T = `btn-${n}`, j = i ? `btn-${i}` : "", _ = `${`btn ${T} ${j}`.trim()} ${y}`.trim();
672
672
  return /* @__PURE__ */ t.jsx(
673
673
  "button",
674
674
  {
675
- className: R,
675
+ className: _,
676
676
  type: "button",
677
677
  onClick: c,
678
678
  disabled: v || h,
@@ -723,19 +723,24 @@ const Tr = () => /* @__PURE__ */ t.jsx("div", { className: "toolbar-pf" }), yr =
723
723
  placeholder: i = "",
724
724
  value: o,
725
725
  onChange: c,
726
- className: v = "form-control"
727
- }, m) => /* @__PURE__ */ t.jsx(
728
- "input",
729
- {
730
- type: s,
731
- id: n,
732
- className: v,
733
- placeholder: i,
734
- value: o,
735
- onChange: c,
736
- ref: m
737
- }
738
- )
726
+ className: v = "form-control",
727
+ ...m
728
+ }, y) => {
729
+ const h = `form-control ${v}`;
730
+ return /* @__PURE__ */ t.jsx(
731
+ "input",
732
+ {
733
+ type: s,
734
+ id: n,
735
+ className: h,
736
+ placeholder: i,
737
+ value: o,
738
+ onChange: c,
739
+ ref: y,
740
+ ...m
741
+ }
742
+ );
743
+ }
739
744
  ), Nr = ({ title: n, isOpen: s, onClose: i, children: o, size: c }) => {
740
745
  if (!s) return null;
741
746
  const v = c ? `modal-${c}` : "";
@@ -762,17 +767,17 @@ const Tr = () => /* @__PURE__ */ t.jsx("div", { className: "toolbar-pf" }), yr =
762
767
  onChange: v,
763
768
  className: m = ""
764
769
  }) => {
765
- const C = (b) => {
770
+ const y = (b) => {
766
771
  c(!b);
767
772
  }, h = (b) => {
768
773
  c(!1), v(b);
769
774
  }, T = (b) => {
770
- const R = b.id === s;
775
+ const _ = b.id === s;
771
776
  return /* @__PURE__ */ t.jsx(
772
777
  "li",
773
778
  {
774
779
  onClick: () => h(b),
775
- className: R ? "active" : "",
780
+ className: _ ? "active" : "",
776
781
  children: /* @__PURE__ */ t.jsx("a", { href: "#", children: b.title })
777
782
  },
778
783
  b.id
@@ -784,7 +789,7 @@ const Tr = () => /* @__PURE__ */ t.jsx("div", { className: "toolbar-pf" }), yr =
784
789
  {
785
790
  style: { marginLeft: "0px", left: "-1px" },
786
791
  className: j,
787
- onClick: () => C(o),
792
+ onClick: () => y(o),
788
793
  "data-toggle": "dropdown",
789
794
  type: "button",
790
795
  children: /* @__PURE__ */ t.jsxs("div", { className: "flex items-center justify-center", children: [
@@ -928,9 +933,9 @@ const Tr = () => /* @__PURE__ */ t.jsx("div", { className: "toolbar-pf" }), yr =
928
933
  isDisabled: v = !1,
929
934
  className: m = ""
930
935
  }) => {
931
- const [C, h] = Q(o || ""), T = o !== void 0 ? o : C, j = (b) => {
932
- const R = b.target.value;
933
- c ? c(R) : h(R);
936
+ const [y, h] = Q(o || ""), T = o !== void 0 ? o : y, j = (b) => {
937
+ const _ = b.target.value;
938
+ c ? c(_) : h(_);
934
939
  };
935
940
  return /* @__PURE__ */ t.jsx(
936
941
  "textarea",
@@ -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 n=O,s=Symbol.for("react.element"),i=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,c=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};function h(C,m,w){var y,g={},_=null,M=null;w!==void 0&&(_=""+w),m.key!==void 0&&(_=""+m.key),m.ref!==void 0&&(M=m.ref);for(y in m)o.call(m,y)&&!p.hasOwnProperty(y)&&(g[y]=m[y]);if(C&&C.defaultProps)for(y in m=C.defaultProps,m)g[y]===void 0&&(g[y]=m[y]);return{$$typeof:s,type:C,key:_,ref:M,props:g,_owner:c.current}}return I.Fragment=i,I.jsx=h,I.jsxs=h,I}var $={};/**
9
+ */var ne;function Ie(){if(ne)return I;ne=1;var n=O,s=Symbol.for("react.element"),i=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,c=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};function m(R,h,w){var y,g={},T=null,M=null;w!==void 0&&(T=""+w),h.key!==void 0&&(T=""+h.key),h.ref!==void 0&&(M=h.ref);for(y in h)o.call(h,y)&&!p.hasOwnProperty(y)&&(g[y]=h[y]);if(R&&R.defaultProps)for(y in h=R.defaultProps,h)g[y]===void 0&&(g[y]=h[y]);return{$$typeof:s,type:R,key:T,ref:M,props:g,_owner:c.current}}return I.Fragment=i,I.jsx=m,I.jsxs=m,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 n=O,s=Symbol.for("react.element"),i=Symbol.for("react.portal"),o=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"),w=Symbol.for("react.suspense"),y=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),M=Symbol.for("react.offscreen"),ue=Symbol.iterator,ir="@@iterator";function or(e){if(e===null||typeof e!="object")return null;var r=ue&&e[ue]||e[ir];return typeof r=="function"?r:null}var D=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function R(e){{for(var r=arguments.length,a=new Array(r>1?r-1:0),l=1;l<r;l++)a[l-1]=arguments[l];lr("error",e,a)}}function lr(e,r,a){{var l=D.ReactDebugCurrentFrame,v=l.getStackAddendum();v!==""&&(r+="%s",a=a.concat([v]));var b=a.map(function(f){return String(f)});b.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,b)}}var cr=!1,ur=!1,fr=!1,dr=!1,vr=!1,fe;fe=Symbol.for("react.module.reference");function pr(e){return!!(typeof e=="string"||typeof e=="function"||e===o||e===p||vr||e===c||e===w||e===y||dr||e===M||cr||ur||fr||typeof e=="object"&&e!==null&&(e.$$typeof===_||e.$$typeof===g||e.$$typeof===h||e.$$typeof===C||e.$$typeof===m||e.$$typeof===fe||e.getModuleId!==void 0))}function br(e,r,a){var l=e.displayName;if(l)return l;var v=r.displayName||r.name||"";return v!==""?a+"("+v+")":a}function de(e){return e.displayName||"Context"}function N(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 o:return"Fragment";case i: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 a=e;return de(a._context)+".Provider";case m:return br(e,e.render,"ForwardRef");case g:var l=e.displayName||null;return l!==null?l:N(e.type)||"Memo";case _:{var v=e,b=v._payload,f=v._init;try{return N(f(b))}catch{return null}}}return null}var k=Object.assign,W=0,ve,pe,be,he,me,ge,je;function xe(){}xe.__reactDisabledLog=!0;function hr(){{if(W===0){ve=console.log,pe=console.info,be=console.warn,he=console.error,me=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:k({},e,{value:ve}),info:k({},e,{value:pe}),warn:k({},e,{value:be}),error:k({},e,{value:he}),group:k({},e,{value:me}),groupCollapsed:k({},e,{value:ge}),groupEnd:k({},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 V(e,r,a){{if(q===void 0)try{throw Error()}catch(v){var l=v.stack.trim().match(/\n( *(at )?)/);q=l&&l[1]||""}return`
18
- `+q+e}}var Z=!1,B;{var gr=typeof WeakMap=="function"?WeakMap:Map;B=new gr}function ye(e,r){if(!e||Z)return"";{var a=B.get(e);if(a!==void 0)return a}var l;Z=!0;var v=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var b;b=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){l=T}Reflect.construct(e,[],f)}else{try{f.call()}catch(T){l=T}e.call(f.prototype)}}else{try{throw Error()}catch(T){l=T}e()}}catch(T){if(T&&l&&typeof T.stack=="string"){for(var u=T.stack.split(`
19
- `),E=l.stack.split(`
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"&&B.set(e,S),S}while(j>=1&&x>=0);break}}}finally{Z=!1,X.current=b,mr(),Error.prepareStackTrace=v}var F=e?e.displayName||e.name:"",P=F?V(F):"";return typeof e=="function"&&B.set(e,P),P}function jr(e,r,a){return ye(e,!1)}function xr(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function U(e,r,a){if(e==null)return"";if(typeof e=="function")return ye(e,xr(e));if(typeof e=="string")return V(e);switch(e){case w:return V("Suspense");case y:return V("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case m:return jr(e.render);case g:return U(e.type,r,a);case _:{var l=e,v=l._payload,b=l._init;try{return U(b(v),r,a)}catch{}}}return""}var Y=Object.prototype.hasOwnProperty,Re={},Ee=D.ReactDebugCurrentFrame;function J(e){if(e){var r=e._owner,a=U(e.type,e._source,r?r.type:null);Ee.setExtraStackFrame(a)}else Ee.setExtraStackFrame(null)}function yr(e,r,a,l,v){{var b=Function.call.bind(Y);for(var f in e)if(b(e,f)){var u=void 0;try{if(typeof e[f]!="function"){var E=Error((l||"React class")+": "+a+" 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,l,a,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).",l||"React class",a,f,typeof u),J(null)),u instanceof Error&&!(u.message in Re)&&(Re[u.message]=!0,J(v),R("Failed %s type: %s",a,u.message),J(null))}}}var Rr=Array.isArray;function Q(e){return Rr(e)}function Er(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,a=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return a}}function _r(e){try{return _e(e),!1}catch{return!0}}function _e(e){return""+e}function Te(e){if(_r(e))return R("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Er(e)),_e(e)}var Ce=D.ReactCurrentOwner,Tr={key:!0,ref:!0,__self:!0,__source:!0},we,Se;function Cr(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 wr(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 Sr(e,r){typeof e.ref=="string"&&Ce.current}function Or(e,r){{var a=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))};a.isReactWarning=!0,Object.defineProperty(e,"key",{get:a,configurable:!0})}}function Nr(e,r){{var a=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))};a.isReactWarning=!0,Object.defineProperty(e,"ref",{get:a,configurable:!0})}}var kr=function(e,r,a,l,v,b,f){var u={$$typeof:s,type:e,key:r,ref:a,props:f,_owner:b};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:l}),Object.defineProperty(u,"_source",{configurable:!1,enumerable:!1,writable:!1,value:v}),Object.freeze&&(Object.freeze(u.props),Object.freeze(u)),u};function Pr(e,r,a,l,v){{var b,f={},u=null,E=null;a!==void 0&&(Te(a),u=""+a),wr(r)&&(Te(r.key),u=""+r.key),Cr(r)&&(E=r.ref,Sr(r,v));for(b in r)Y.call(r,b)&&!Tr.hasOwnProperty(b)&&(f[b]=r[b]);if(e&&e.defaultProps){var j=e.defaultProps;for(b in j)f[b]===void 0&&(f[b]=j[b])}if(u||E){var x=typeof e=="function"?e.displayName||e.name||"Unknown":e;u&&Or(f,x),E&&Nr(f,x)}return kr(e,u,E,v,l,Ce.current,f)}}var K=D.ReactCurrentOwner,Oe=D.ReactDebugCurrentFrame;function A(e){if(e){var r=e._owner,a=U(e.type,e._source,r?r.type:null);Oe.setExtraStackFrame(a)}else Oe.setExtraStackFrame(null)}var ee;ee=!1;function re(e){return typeof e=="object"&&e!==null&&e.$$typeof===s}function Ne(){{if(K.current){var e=N(K.current.type);if(e)return`
17
+ */var ae;function $e(){return ae||(ae=1,process.env.NODE_ENV!=="production"&&function(){var n=O,s=Symbol.for("react.element"),i=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),p=Symbol.for("react.profiler"),m=Symbol.for("react.provider"),R=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),w=Symbol.for("react.suspense"),y=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),M=Symbol.for("react.offscreen"),ue=Symbol.iterator,ir="@@iterator";function or(e){if(e===null||typeof e!="object")return null;var r=ue&&e[ue]||e[ir];return typeof r=="function"?r:null}var D=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function E(e){{for(var r=arguments.length,a=new Array(r>1?r-1:0),l=1;l<r;l++)a[l-1]=arguments[l];lr("error",e,a)}}function lr(e,r,a){{var l=D.ReactDebugCurrentFrame,v=l.getStackAddendum();v!==""&&(r+="%s",a=a.concat([v]));var b=a.map(function(f){return String(f)});b.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,b)}}var cr=!1,ur=!1,fr=!1,dr=!1,vr=!1,fe;fe=Symbol.for("react.module.reference");function pr(e){return!!(typeof e=="string"||typeof e=="function"||e===o||e===p||vr||e===c||e===w||e===y||dr||e===M||cr||ur||fr||typeof e=="object"&&e!==null&&(e.$$typeof===T||e.$$typeof===g||e.$$typeof===m||e.$$typeof===R||e.$$typeof===h||e.$$typeof===fe||e.getModuleId!==void 0))}function br(e,r,a){var l=e.displayName;if(l)return l;var v=r.displayName||r.name||"";return v!==""?a+"("+v+")":a}function de(e){return e.displayName||"Context"}function N(e){if(e==null)return null;if(typeof e.tag=="number"&&E("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 o:return"Fragment";case i: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 R:var r=e;return de(r)+".Consumer";case m:var a=e;return de(a._context)+".Provider";case h:return br(e,e.render,"ForwardRef");case g:var l=e.displayName||null;return l!==null?l:N(e.type)||"Memo";case T:{var v=e,b=v._payload,f=v._init;try{return N(f(b))}catch{return null}}}return null}var k=Object.assign,W=0,ve,pe,be,me,he,ge,je;function xe(){}xe.__reactDisabledLog=!0;function mr(){{if(W===0){ve=console.log,pe=console.info,be=console.warn,me=console.error,he=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:k({},e,{value:ve}),info:k({},e,{value:pe}),warn:k({},e,{value:be}),error:k({},e,{value:me}),group:k({},e,{value:he}),groupCollapsed:k({},e,{value:ge}),groupEnd:k({},e,{value:je})})}W<0&&E("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var X=D.ReactCurrentDispatcher,q;function V(e,r,a){{if(q===void 0)try{throw Error()}catch(v){var l=v.stack.trim().match(/\n( *(at )?)/);q=l&&l[1]||""}return`
18
+ `+q+e}}var Z=!1,B;{var gr=typeof WeakMap=="function"?WeakMap:Map;B=new gr}function ye(e,r){if(!e||Z)return"";{var a=B.get(e);if(a!==void 0)return a}var l;Z=!0;var v=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var b;b=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(C){l=C}Reflect.construct(e,[],f)}else{try{f.call()}catch(C){l=C}e.call(f.prototype)}}else{try{throw Error()}catch(C){l=C}e()}}catch(C){if(C&&l&&typeof C.stack=="string"){for(var u=C.stack.split(`
19
+ `),_=l.stack.split(`
20
+ `),j=u.length-1,x=_.length-1;j>=1&&x>=0&&u[j]!==_[x];)x--;for(;j>=1&&x>=0;j--,x--)if(u[j]!==_[x]){if(j!==1||x!==1)do if(j--,x--,x<0||u[j]!==_[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"&&B.set(e,S),S}while(j>=1&&x>=0);break}}}finally{Z=!1,X.current=b,hr(),Error.prepareStackTrace=v}var F=e?e.displayName||e.name:"",P=F?V(F):"";return typeof e=="function"&&B.set(e,P),P}function jr(e,r,a){return ye(e,!1)}function xr(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function U(e,r,a){if(e==null)return"";if(typeof e=="function")return ye(e,xr(e));if(typeof e=="string")return V(e);switch(e){case w:return V("Suspense");case y:return V("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case h:return jr(e.render);case g:return U(e.type,r,a);case T:{var l=e,v=l._payload,b=l._init;try{return U(b(v),r,a)}catch{}}}return""}var Y=Object.prototype.hasOwnProperty,Re={},Ee=D.ReactDebugCurrentFrame;function J(e){if(e){var r=e._owner,a=U(e.type,e._source,r?r.type:null);Ee.setExtraStackFrame(a)}else Ee.setExtraStackFrame(null)}function yr(e,r,a,l,v){{var b=Function.call.bind(Y);for(var f in e)if(b(e,f)){var u=void 0;try{if(typeof e[f]!="function"){var _=Error((l||"React class")+": "+a+" 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 _.name="Invariant Violation",_}u=e[f](r,f,l,a,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(j){u=j}u&&!(u instanceof Error)&&(J(v),E("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",l||"React class",a,f,typeof u),J(null)),u instanceof Error&&!(u.message in Re)&&(Re[u.message]=!0,J(v),E("Failed %s type: %s",a,u.message),J(null))}}}var Rr=Array.isArray;function Q(e){return Rr(e)}function Er(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,a=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return a}}function _r(e){try{return _e(e),!1}catch{return!0}}function _e(e){return""+e}function Te(e){if(_r(e))return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Er(e)),_e(e)}var Ce=D.ReactCurrentOwner,Tr={key:!0,ref:!0,__self:!0,__source:!0},we,Se;function Cr(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 wr(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 Sr(e,r){typeof e.ref=="string"&&Ce.current}function Or(e,r){{var a=function(){we||(we=!0,E("%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))};a.isReactWarning=!0,Object.defineProperty(e,"key",{get:a,configurable:!0})}}function Nr(e,r){{var a=function(){Se||(Se=!0,E("%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))};a.isReactWarning=!0,Object.defineProperty(e,"ref",{get:a,configurable:!0})}}var kr=function(e,r,a,l,v,b,f){var u={$$typeof:s,type:e,key:r,ref:a,props:f,_owner:b};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:l}),Object.defineProperty(u,"_source",{configurable:!1,enumerable:!1,writable:!1,value:v}),Object.freeze&&(Object.freeze(u.props),Object.freeze(u)),u};function Pr(e,r,a,l,v){{var b,f={},u=null,_=null;a!==void 0&&(Te(a),u=""+a),wr(r)&&(Te(r.key),u=""+r.key),Cr(r)&&(_=r.ref,Sr(r,v));for(b in r)Y.call(r,b)&&!Tr.hasOwnProperty(b)&&(f[b]=r[b]);if(e&&e.defaultProps){var j=e.defaultProps;for(b in j)f[b]===void 0&&(f[b]=j[b])}if(u||_){var x=typeof e=="function"?e.displayName||e.name||"Unknown":e;u&&Or(f,x),_&&Nr(f,x)}return kr(e,u,_,v,l,Ce.current,f)}}var K=D.ReactCurrentOwner,Oe=D.ReactDebugCurrentFrame;function A(e){if(e){var r=e._owner,a=U(e.type,e._source,r?r.type:null);Oe.setExtraStackFrame(a)}else Oe.setExtraStackFrame(null)}var ee;ee=!1;function re(e){return typeof e=="object"&&e!==null&&e.$$typeof===s}function Ne(){{if(K.current){var e=N(K.current.type);if(e)return`
22
22
 
23
23
  Check the render method of \``+e+"`."}return""}}function Dr(e){return""}var ke={};function Ar(e){{var r=Ne();if(!r){var a=typeof e=="string"?e:e.displayName||e.name;a&&(r=`
24
24
 
25
- Check the top-level render call using <`+a+">.")}return r}}function Pe(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var a=Ar(r);if(ke[a])return;ke[a]=!0;var l="";e&&e._owner&&e._owner!==K.current&&(l=" It was passed a child from "+N(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.',a,l),A(null)}}function De(e,r){{if(typeof e!="object")return;if(Q(e))for(var a=0;a<e.length;a++){var l=e[a];re(l)&&Pe(l,r)}else if(re(e))e._store&&(e._store.validated=!0);else if(e){var v=or(e);if(typeof v=="function"&&v!==e.entries)for(var b=v.call(e),f;!(f=b.next()).done;)re(f.value)&&Pe(f.value,r)}}}function Fr(e){{var r=e.type;if(r==null||typeof r=="string")return;var a;if(typeof r=="function")a=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===m||r.$$typeof===g))a=r.propTypes;else return;if(a){var l=N(r);yr(a,e.props,"prop",l,e)}else if(r.PropTypes!==void 0&&!ee){ee=!0;var v=N(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 Ir(e){{for(var r=Object.keys(e.props),a=0;a<r.length;a++){var l=r[a];if(l!=="children"&&l!=="key"){A(e),R("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",l),A(null);break}}e.ref!==null&&(A(e),R("Invalid attribute `ref` supplied to `React.Fragment`."),A(null))}}var Ae={};function Fe(e,r,a,l,v,b){{var f=pr(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=Dr();E?u+=E:u+=Ne();var j;e===null?j="null":Q(e)?j="array":e!==void 0&&e.$$typeof===s?(j="<"+(N(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=Pr(e,r,a,v,b);if(x==null)return x;if(f){var S=r.children;if(S!==void 0)if(l)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=N(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 <`+a+">.")}return r}}function Pe(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var a=Ar(r);if(ke[a])return;ke[a]=!0;var l="";e&&e._owner&&e._owner!==K.current&&(l=" It was passed a child from "+N(e._owner.type)+"."),A(e),E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',a,l),A(null)}}function De(e,r){{if(typeof e!="object")return;if(Q(e))for(var a=0;a<e.length;a++){var l=e[a];re(l)&&Pe(l,r)}else if(re(e))e._store&&(e._store.validated=!0);else if(e){var v=or(e);if(typeof v=="function"&&v!==e.entries)for(var b=v.call(e),f;!(f=b.next()).done;)re(f.value)&&Pe(f.value,r)}}}function Fr(e){{var r=e.type;if(r==null||typeof r=="string")return;var a;if(typeof r=="function")a=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===h||r.$$typeof===g))a=r.propTypes;else return;if(a){var l=N(r);yr(a,e.props,"prop",l,e)}else if(r.PropTypes!==void 0&&!ee){ee=!0;var v=N(r);E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",v||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Ir(e){{for(var r=Object.keys(e.props),a=0;a<r.length;a++){var l=r[a];if(l!=="children"&&l!=="key"){A(e),E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",l),A(null);break}}e.ref!==null&&(A(e),E("Invalid attribute `ref` supplied to `React.Fragment`."),A(null))}}var Ae={};function Fe(e,r,a,l,v,b){{var f=pr(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 _=Dr();_?u+=_:u+=Ne();var j;e===null?j="null":Q(e)?j="array":e!==void 0&&e.$$typeof===s?(j="<"+(N(e.type)||"Unknown")+" />",u=" Did you accidentally export a JSX literal instead of a component?"):j=typeof e,E("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=Pr(e,r,a,v,b);if(x==null)return x;if(f){var S=r.children;if(S!==void 0)if(l)if(Q(S)){for(var F=0;F<S.length;F++)De(S[F],e);Object.freeze&&Object.freeze(S)}else E("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=N(e),C=Object.keys(r).filter(function(Vr){return Vr!=="key"}),te=C.length>0?"{key: someKey, "+C.join(": ..., ")+": ...}":"{key: someKey}";if(!Ae[P+te]){var Mr=C.length>0?"{"+C.join(": ..., ")+": ...}":"{}";E(`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===o?Ir(x):Fr(x),x}}function $r(e,r,a){return Fe(e,r,a,!0)}function Wr(e,r,a){return Fe(e,r,a,!1)}var Yr=Wr,Lr=$r;$.Fragment=o,$.jsx=Yr,$.jsxs=Lr}()),$}var se;function We(){return se||(se=1,process.env.NODE_ENV==="production"?L.exports=Ie():L.exports=$e()),L.exports}var t=We();const Ye=()=>t.jsx("div",{className:"toolbar-pf"}),ie=({items:n,className:s})=>t.jsx("ol",{className:`breadcrumb ${s||""}`.trim(),children:n.map((i,o)=>t.jsx("li",{className:i.active?"active":"",children:i.active?i.title:t.jsx("a",{href:i.href,children:i.title})},o))}),Le=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:n="default",title:s,size:i,label:o,onClick:c,isDisabled:p=!1,children:h,className:C="",isLoading:m=!1})=>{const w=`btn-${n}`,y=i?`btn-${i}`:"",_=`${`btn ${w} ${y}`.trim()} ${C}`.trim();return t.jsx("button",{className:_,type:"button",onClick:c,disabled:p||m,children:t.jsxs("div",{className:"flex items-center justify-center",children:[m&&Le,h||o," ",s&&t.jsx("span",{children:s})]})})},Me=({children:n,eventKey:s,active:i})=>t.jsx("div",{className:`tab-pane ${i?"active":""}`,id:`${s}-panel`,role:"tabpanel","aria-labelledby":`${s}-tab`,children:n},s),Ve=({activeKey:n,onSelect:s,children:i})=>t.jsxs("div",{className:"tabs-container",children:[t.jsx("ul",{className:"nav nav-tabs",role:"tablist",children:i.map(({props:{eventKey:o,title:c}})=>t.jsx("li",{className:n===o?"active":"",children:t.jsx("a",{href:`#${o}`,onClick:p=>{p.preventDefault(),s(o)},children:c})},o))}),t.jsx("div",{className:"tabs-container",children:t.jsx("div",{className:"tab-content pf-c-tab-content",children:i.map(({props:{eventKey:o,children:c}})=>t.jsx("div",{className:`tab-pane ${n===o?"active":""}`,id:`${o}-panel`,role:"tabpanel","aria-labelledby":`${o}-tab`,children:c},o))})})]}),Be=O.forwardRef(({id:n,type:s,placeholder:i="",value:o,onChange:c,className:p="form-control"},h)=>t.jsx("input",{type:s,id:n,className:p,placeholder:i,value:o,onChange:c,ref:h})),Ue=({title:n,isOpen:s,onClose:i,children:o,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:i,"aria-hidden":"true",children:t.jsx("span",{className:"pficon pficon-close"})}),t.jsx("h4",{className:"modal-title",children:n})]}),t.jsx("div",{className:"modal-body",children:o})]})})})},Je=({variant:n,children:s,className:i=""})=>{const o={warning:"text-yellow-600",success:"text-green-600",error:"text-red-600"},c=i+" "+o[n]||"";return t.jsx("p",{className:c,children:s})},Ge=({children:n,...s})=>t.jsx("table",{...s,children:n}),ze=({children:n,...s})=>t.jsx("tbody",{...s,children:n}),He=({children:n,...s})=>t.jsx("td",{...s,children:n}),Xe=({children:n,...s})=>t.jsx("th",{...s,children:n}),qe=({children:n,...s})=>t.jsx("thead",{...s,children:n}),Ze=({children:n,...s})=>t.jsx("tr",{...s,children:n}),z=({items:n,selected:s,title:i,isOpen:o,setIsOpen:c,onChange:p,className:h=""})=>{const C=g=>{c(!g)},m=g=>{c(!1),p(g)},w=g=>{const _=g.id===s;return t.jsx("li",{onClick:()=>m(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(o),"data-toggle":"dropdown",type:"button",children:t.jsxs("div",{className:"flex items-center justify-center",children:[i&&t.jsx("div",{className:"mr-2",children:i})," ",t.jsx("span",{className:"caret"})," "]})}),t.jsx("ul",{className:"dropdown-menu",role:"menu",children:n.map(w)})]})},Qe=n=>{const[s,i]=O.useState(!1),o=n.selected,c=n.items.find(p=>p.id==o);return t.jsx("div",{className:`btn-group ${s?"open":""}`,children:t.jsx(z,{...n,title:n.title||(c==null?void 0:c.title),setIsOpen:i,isOpen:s})})},oe=({currentPage:n,total:s,onPageChange:i,pageSize:o})=>{const c=Math.ceil(s/o),p=()=>{n>1&&i(n-1)},h=()=>{n<c&&i(n+1)};return t.jsxs("div",{children:[t.jsx("span",{children:t.jsxs("span",{className:"pagination-pf-items-current",children:[n," - ",c]})}),t.jsxs("div",{className:"btn-group ml-2",children:[t.jsx("button",{type:"button",className:`btn btn-default ${n===1?"disabled":""}`,disabled:n===1,onClick:p,children:t.jsx("i",{className:"fa fa-angle-left"})}),t.jsx("button",{type:"button",className:`btn btn-default ${n===c?"disabled":""}`,disabled:n===c,onClick:h,children:t.jsx("i",{className:"fa fa-angle-right"})})]})]})},H=({children:n,onChange:s,items:i,selected:o,className:c=""})=>{const[p,h]=O.useState(!1);return t.jsx("div",{className:`btn-group ${c} ${p?"open":""}`,children:t.jsxs(t.Fragment,{children:[n,t.jsx(z,{setIsOpen:h,isOpen:p,onChange:s,items:i,selected:o})]})})},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:n,value:s,onRefresh:i})=>{var p;const o=h=>{n(h.data)},c=(p=le.find(h=>h.data===s))==null?void 0:p.id;return t.jsx(H,{className:"flex",items:le,onChange:o,selected:c,children:t.jsx(G,{className:"m-0",type:"default",onClick:i,children:t.jsx("i",{className:"fa fa-refresh"})})})},Ke=({interval:n,page:s,total:i,onRefresh:o,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:n,onChange:c,onRefresh:o})}),t.jsx("div",{className:"m-[5px]",children:t.jsx(oe,{pageSize:h,currentPage:s,total:i,onPageChange:p})})]}),er=({id:n,label:s,isChecked:i=!1,onChange:o,className:c="checkbox"})=>t.jsx("div",{className:c,children:t.jsxs("label",{htmlFor:n,children:[t.jsx("input",{type:"checkbox",id:n,checked:i,onChange:o}),` ${s}`]})}),rr=({placeholder:n="",rows:s=3,maxLength:i,value:o,onChange:c,isDisabled:p=!1,className:h=""})=>{const[C,m]=O.useState(o||""),w=o!==void 0?o:C,y=g=>{const _=g.target.value;c?c(_):m(_)};return t.jsx("textarea",{className:h,placeholder:n,rows:s,maxLength:i,value:w,onChange:y,disabled:p})},tr=({variant:n,title:s,className:i})=>{const o=`alert alert-${n} ${i||""}`;return["success","info","warning","danger"].includes(n)||(console.warn(`Unsupported alert variant: "${n}". Defaulting to "info".`),n="info"),t.jsx("div",{className:o.trim(),role:"alert",children:s})},nr=({variant:n,children:s,onClick:i})=>{const o=`label label-${n}`,c=i?{tabIndex:0,role:"button","aria-pressed":!1}:{};return t.jsx("span",{className:o,onClick:i,...c,style:{cursor:i?"pointer":void 0},children:s})};function ar(n,s){O.useEffect(()=>{if(!n)return;const i=setInterval(()=>{s()},n);return()=>clearInterval(i)},[n])}const sr=()=>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=Be,d.Label=nr,d.Modal=Ue,d.Pagination=oe,d.ReloadButton=ce,d.SampleComp=sr,d.Tab=Me,d.Table=Ge,d.TableToolbar=Ke,d.Tabs=Ve,d.Tbody=ze,d.Td=He,d.TextArea=rr,d.Th=Xe,d.Thead=qe,d.ToolbarContainer=Ye,d.Tr=Ze,d.useIntervalLoader=ar,Object.defineProperty(d,Symbol.toStringTag,{value:"Module"})});
30
+ <%s key={someKey} {...props} />`,te,P,Mr,P),Ae[P+te]=!0}}return e===o?Ir(x):Fr(x),x}}function $r(e,r,a){return Fe(e,r,a,!0)}function Wr(e,r,a){return Fe(e,r,a,!1)}var Yr=Wr,Lr=$r;$.Fragment=o,$.jsx=Yr,$.jsxs=Lr}()),$}var se;function We(){return se||(se=1,process.env.NODE_ENV==="production"?L.exports=Ie():L.exports=$e()),L.exports}var t=We();const Ye=()=>t.jsx("div",{className:"toolbar-pf"}),ie=({items:n,className:s})=>t.jsx("ol",{className:`breadcrumb ${s||""}`.trim(),children:n.map((i,o)=>t.jsx("li",{className:i.active?"active":"",children:i.active?i.title:t.jsx("a",{href:i.href,children:i.title})},o))}),Le=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:n="default",title:s,size:i,label:o,onClick:c,isDisabled:p=!1,children:m,className:R="",isLoading:h=!1})=>{const w=`btn-${n}`,y=i?`btn-${i}`:"",T=`${`btn ${w} ${y}`.trim()} ${R}`.trim();return t.jsx("button",{className:T,type:"button",onClick:c,disabled:p||h,children:t.jsxs("div",{className:"flex items-center justify-center",children:[h&&Le,m||o," ",s&&t.jsx("span",{children:s})]})})},Me=({children:n,eventKey:s,active:i})=>t.jsx("div",{className:`tab-pane ${i?"active":""}`,id:`${s}-panel`,role:"tabpanel","aria-labelledby":`${s}-tab`,children:n},s),Ve=({activeKey:n,onSelect:s,children:i})=>t.jsxs("div",{className:"tabs-container",children:[t.jsx("ul",{className:"nav nav-tabs",role:"tablist",children:i.map(({props:{eventKey:o,title:c}})=>t.jsx("li",{className:n===o?"active":"",children:t.jsx("a",{href:`#${o}`,onClick:p=>{p.preventDefault(),s(o)},children:c})},o))}),t.jsx("div",{className:"tabs-container",children:t.jsx("div",{className:"tab-content pf-c-tab-content",children:i.map(({props:{eventKey:o,children:c}})=>t.jsx("div",{className:`tab-pane ${n===o?"active":""}`,id:`${o}-panel`,role:"tabpanel","aria-labelledby":`${o}-tab`,children:c},o))})})]}),Be=O.forwardRef(({id:n,type:s,placeholder:i="",value:o,onChange:c,className:p="form-control",...m},R)=>{const h=`form-control ${p}`;return t.jsx("input",{type:s,id:n,className:h,placeholder:i,value:o,onChange:c,ref:R,...m})}),Ue=({title:n,isOpen:s,onClose:i,children:o,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:i,"aria-hidden":"true",children:t.jsx("span",{className:"pficon pficon-close"})}),t.jsx("h4",{className:"modal-title",children:n})]}),t.jsx("div",{className:"modal-body",children:o})]})})})},Je=({variant:n,children:s,className:i=""})=>{const o={warning:"text-yellow-600",success:"text-green-600",error:"text-red-600"},c=i+" "+o[n]||"";return t.jsx("p",{className:c,children:s})},Ge=({children:n,...s})=>t.jsx("table",{...s,children:n}),ze=({children:n,...s})=>t.jsx("tbody",{...s,children:n}),He=({children:n,...s})=>t.jsx("td",{...s,children:n}),Xe=({children:n,...s})=>t.jsx("th",{...s,children:n}),qe=({children:n,...s})=>t.jsx("thead",{...s,children:n}),Ze=({children:n,...s})=>t.jsx("tr",{...s,children:n}),z=({items:n,selected:s,title:i,isOpen:o,setIsOpen:c,onChange:p,className:m=""})=>{const R=g=>{c(!g)},h=g=>{c(!1),p(g)},w=g=>{const T=g.id===s;return t.jsx("li",{onClick:()=>h(g),className:T?"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:()=>R(o),"data-toggle":"dropdown",type:"button",children:t.jsxs("div",{className:"flex items-center justify-center",children:[i&&t.jsx("div",{className:"mr-2",children:i})," ",t.jsx("span",{className:"caret"})," "]})}),t.jsx("ul",{className:"dropdown-menu",role:"menu",children:n.map(w)})]})},Qe=n=>{const[s,i]=O.useState(!1),o=n.selected,c=n.items.find(p=>p.id==o);return t.jsx("div",{className:`btn-group ${s?"open":""}`,children:t.jsx(z,{...n,title:n.title||(c==null?void 0:c.title),setIsOpen:i,isOpen:s})})},oe=({currentPage:n,total:s,onPageChange:i,pageSize:o})=>{const c=Math.ceil(s/o),p=()=>{n>1&&i(n-1)},m=()=>{n<c&&i(n+1)};return t.jsxs("div",{children:[t.jsx("span",{children:t.jsxs("span",{className:"pagination-pf-items-current",children:[n," - ",c]})}),t.jsxs("div",{className:"btn-group ml-2",children:[t.jsx("button",{type:"button",className:`btn btn-default ${n===1?"disabled":""}`,disabled:n===1,onClick:p,children:t.jsx("i",{className:"fa fa-angle-left"})}),t.jsx("button",{type:"button",className:`btn btn-default ${n===c?"disabled":""}`,disabled:n===c,onClick:m,children:t.jsx("i",{className:"fa fa-angle-right"})})]})]})},H=({children:n,onChange:s,items:i,selected:o,className:c=""})=>{const[p,m]=O.useState(!1);return t.jsx("div",{className:`btn-group ${c} ${p?"open":""}`,children:t.jsxs(t.Fragment,{children:[n,t.jsx(z,{setIsOpen:m,isOpen:p,onChange:s,items:i,selected:o})]})})},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:n,value:s,onRefresh:i})=>{var p;const o=m=>{n(m.data)},c=(p=le.find(m=>m.data===s))==null?void 0:p.id;return t.jsx(H,{className:"flex",items:le,onChange:o,selected:c,children:t.jsx(G,{className:"m-0",type:"default",onClick:i,children:t.jsx("i",{className:"fa fa-refresh"})})})},Ke=({interval:n,page:s,total:i,onRefresh:o,onChangeInterval:c,onPageChange:p,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:n,onChange:c,onRefresh:o})}),t.jsx("div",{className:"m-[5px]",children:t.jsx(oe,{pageSize:m,currentPage:s,total:i,onPageChange:p})})]}),er=({id:n,label:s,isChecked:i=!1,onChange:o,className:c="checkbox"})=>t.jsx("div",{className:c,children:t.jsxs("label",{htmlFor:n,children:[t.jsx("input",{type:"checkbox",id:n,checked:i,onChange:o}),` ${s}`]})}),rr=({placeholder:n="",rows:s=3,maxLength:i,value:o,onChange:c,isDisabled:p=!1,className:m=""})=>{const[R,h]=O.useState(o||""),w=o!==void 0?o:R,y=g=>{const T=g.target.value;c?c(T):h(T)};return t.jsx("textarea",{className:m,placeholder:n,rows:s,maxLength:i,value:w,onChange:y,disabled:p})},tr=({variant:n,title:s,className:i})=>{const o=`alert alert-${n} ${i||""}`;return["success","info","warning","danger"].includes(n)||(console.warn(`Unsupported alert variant: "${n}". Defaulting to "info".`),n="info"),t.jsx("div",{className:o.trim(),role:"alert",children:s})},nr=({variant:n,children:s,onClick:i})=>{const o=`label label-${n}`,c=i?{tabIndex:0,role:"button","aria-pressed":!1}:{};return t.jsx("span",{className:o,onClick:i,...c,style:{cursor:i?"pointer":void 0},children:s})};function ar(n,s){O.useEffect(()=>{if(!n)return;const i=setInterval(()=>{s()},n);return()=>clearInterval(i)},[n])}const sr=()=>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=Be,d.Label=nr,d.Modal=Ue,d.Pagination=oe,d.ReloadButton=ce,d.SampleComp=sr,d.Tab=Me,d.Table=Ge,d.TableToolbar=Ke,d.Tabs=Ve,d.Tbody=ze,d.Td=He,d.TextArea=rr,d.Th=Xe,d.Thead=qe,d.ToolbarContainer=Ye,d.Tr=Ze,d.useIntervalLoader=ar,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.65",
3
+ "version": "0.0.67",
4
4
  "type": "module",
5
5
  "main": "./dist/ovirt-ui-toolkit.umd.js",
6
6
  "module": "./dist/ovirt-ui-toolkit.es.js",