ovirt-ui-toolkit 0.0.16 → 0.0.17

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,11 +1,11 @@
1
- import { default as React } from 'react';
1
+ import { ChangeEvent } from 'react';
2
2
  interface InputProps {
3
3
  id: string;
4
4
  type: 'text' | 'email' | 'password' | 'number' | 'date' | 'search';
5
5
  placeholder?: string;
6
6
  value?: string | number;
7
- onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
7
+ onChange?: (event: ChangeEvent<HTMLInputElement>) => void;
8
8
  className?: string;
9
9
  }
10
- declare const Input: React.FC<InputProps>;
10
+ declare const Input: import('react').ForwardRefExoticComponent<InputProps & import('react').RefAttributes<HTMLInputElement>>;
11
11
  export default Input;
@@ -1,4 +1,4 @@
1
- import Oe, { useState as vr, useEffect as pr } from "react";
1
+ import Oe, { forwardRef as vr, useState as pr, useEffect as br } from "react";
2
2
  var U = { exports: {} }, A = {};
3
3
  /**
4
4
  * @license React
@@ -10,18 +10,18 @@ var U = { exports: {} }, A = {};
10
10
  * LICENSE file in the root directory of this source tree.
11
11
  */
12
12
  var _e;
13
- function br() {
13
+ function hr() {
14
14
  if (_e) return A;
15
15
  _e = 1;
16
16
  var a = Oe, s = Symbol.for("react.element"), u = Symbol.for("react.fragment"), l = Object.prototype.hasOwnProperty, d = a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, b = { key: !0, ref: !0, __self: !0, __source: !0 };
17
- function g(T, x, C) {
17
+ function x(T, g, C) {
18
18
  var p, R = {}, O = null, W = null;
19
- C !== void 0 && (O = "" + C), x.key !== void 0 && (O = "" + x.key), x.ref !== void 0 && (W = x.ref);
20
- for (p in x) l.call(x, p) && !b.hasOwnProperty(p) && (R[p] = x[p]);
21
- if (T && T.defaultProps) for (p in x = T.defaultProps, x) R[p] === void 0 && (R[p] = x[p]);
19
+ C !== void 0 && (O = "" + C), g.key !== void 0 && (O = "" + g.key), g.ref !== void 0 && (W = g.ref);
20
+ for (p in g) l.call(g, p) && !b.hasOwnProperty(p) && (R[p] = g[p]);
21
+ if (T && T.defaultProps) for (p in g = T.defaultProps, g) R[p] === void 0 && (R[p] = g[p]);
22
22
  return { $$typeof: s, type: T, key: O, ref: W, props: R, _owner: d.current };
23
23
  }
24
- return A.Fragment = u, A.jsx = g, A.jsxs = g, A;
24
+ return A.Fragment = u, A.jsx = x, A.jsxs = x, A;
25
25
  }
26
26
  var I = {};
27
27
  /**
@@ -34,9 +34,9 @@ var I = {};
34
34
  * LICENSE file in the root directory of this source tree.
35
35
  */
36
36
  var Te;
37
- function hr() {
37
+ function mr() {
38
38
  return Te || (Te = 1, process.env.NODE_ENV !== "production" && function() {
39
- var a = Oe, s = Symbol.for("react.element"), u = Symbol.for("react.portal"), l = Symbol.for("react.fragment"), d = Symbol.for("react.strict_mode"), b = Symbol.for("react.profiler"), g = Symbol.for("react.provider"), T = Symbol.for("react.context"), x = Symbol.for("react.forward_ref"), C = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), R = Symbol.for("react.memo"), O = Symbol.for("react.lazy"), W = Symbol.for("react.offscreen"), Q = Symbol.iterator, ke = "@@iterator";
39
+ var a = Oe, s = Symbol.for("react.element"), u = Symbol.for("react.portal"), l = Symbol.for("react.fragment"), d = Symbol.for("react.strict_mode"), b = Symbol.for("react.profiler"), x = Symbol.for("react.provider"), T = Symbol.for("react.context"), g = Symbol.for("react.forward_ref"), C = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), R = Symbol.for("react.memo"), O = Symbol.for("react.lazy"), W = Symbol.for("react.offscreen"), Q = Symbol.iterator, ke = "@@iterator";
40
40
  function Pe(e) {
41
41
  if (e === null || typeof e != "object")
42
42
  return null;
@@ -64,7 +64,7 @@ function hr() {
64
64
  var $e = !1, De = !1, Fe = !1, Ae = !1, Ie = !1, K;
65
65
  K = Symbol.for("react.module.reference");
66
66
  function We(e) {
67
- return !!(typeof e == "string" || typeof e == "function" || e === l || e === b || Ie || e === d || e === C || e === p || Ae || e === W || $e || De || Fe || typeof e == "object" && e !== null && (e.$$typeof === O || e.$$typeof === R || e.$$typeof === g || e.$$typeof === T || e.$$typeof === x || // This needs to include all possible module reference object
67
+ return !!(typeof e == "string" || typeof e == "function" || e === l || e === b || Ie || e === d || e === C || e === p || Ae || e === W || $e || De || Fe || typeof e == "object" && e !== null && (e.$$typeof === O || e.$$typeof === R || e.$$typeof === x || e.$$typeof === T || e.$$typeof === g || // 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.
@@ -106,10 +106,10 @@ function hr() {
106
106
  case T:
107
107
  var r = e;
108
108
  return ee(r) + ".Consumer";
109
- case g:
109
+ case x:
110
110
  var t = e;
111
111
  return ee(t._context) + ".Provider";
112
- case x:
112
+ case g:
113
113
  return Ye(e, e.render, "ForwardRef");
114
114
  case R:
115
115
  var i = e.displayName || null;
@@ -299,7 +299,7 @@ function hr() {
299
299
  }
300
300
  if (typeof e == "object")
301
301
  switch (e.$$typeof) {
302
- case x:
302
+ case g:
303
303
  return Ue(e.render);
304
304
  case R:
305
305
  return M(e.type, r, t);
@@ -539,7 +539,7 @@ Check the top-level render call using <` + t + ">.");
539
539
  var t;
540
540
  if (typeof r == "function")
541
541
  t = r.propTypes;
542
- else if (typeof r == "object" && (r.$$typeof === x || // Note: Memo only checks outer props here.
542
+ else if (typeof r == "object" && (r.$$typeof === g || // Note: Memo only checks outer props here.
543
543
  // Inner props are checked in the reconciler.
544
544
  r.$$typeof === R))
545
545
  t = r.propTypes;
@@ -624,21 +624,21 @@ React keys must be passed directly to JSX without using spread:
624
624
  }()), I;
625
625
  }
626
626
  var Ce;
627
- function mr() {
628
- return Ce || (Ce = 1, process.env.NODE_ENV === "production" ? U.exports = br() : U.exports = hr()), U.exports;
627
+ function xr() {
628
+ return Ce || (Ce = 1, process.env.NODE_ENV === "production" ? U.exports = hr() : U.exports = mr()), U.exports;
629
629
  }
630
- var n = mr();
631
- const Rr = () => /* @__PURE__ */ n.jsx("div", { className: "toolbar-pf" }), xr = ({ items: a }) => /* @__PURE__ */ n.jsx("ol", { className: "breadcrumb", children: a.map((s, u) => /* @__PURE__ */ n.jsx("li", { className: s.active ? "active" : "", children: s.active ? s.title : /* @__PURE__ */ n.jsx("a", { href: s.href, children: s.title }) }, u)) }), Se = ({
630
+ var n = xr();
631
+ const _r = () => /* @__PURE__ */ n.jsx("div", { className: "toolbar-pf" }), gr = ({ items: a }) => /* @__PURE__ */ n.jsx("ol", { className: "breadcrumb", children: a.map((s, u) => /* @__PURE__ */ n.jsx("li", { className: s.active ? "active" : "", children: s.active ? s.title : /* @__PURE__ */ n.jsx("a", { href: s.href, children: s.title }) }, u)) }), Se = ({
632
632
  type: a = "default",
633
633
  title: s,
634
634
  size: u,
635
635
  label: l,
636
636
  onClick: d,
637
637
  isDisabled: b = !1,
638
- children: g,
638
+ children: x,
639
639
  className: T = ""
640
640
  }) => {
641
- const x = `btn-${a}`, C = u ? `btn-${u}` : "", R = `${`btn ${x} ${C}`.trim()} ${T}`.trim();
641
+ const g = `btn-${a}`, C = u ? `btn-${u}` : "", R = `${`btn ${g} ${C}`.trim()} ${T}`.trim();
642
642
  return /* @__PURE__ */ n.jsx(
643
643
  "button",
644
644
  {
@@ -647,13 +647,13 @@ const Rr = () => /* @__PURE__ */ n.jsx("div", { className: "toolbar-pf" }), xr =
647
647
  onClick: d,
648
648
  disabled: b,
649
649
  children: /* @__PURE__ */ n.jsxs("div", { className: "flex items-center", children: [
650
- g || l,
650
+ x || l,
651
651
  " ",
652
652
  s
653
653
  ] })
654
654
  }
655
655
  );
656
- }, _r = ({ children: a, eventKey: s, active: u }) => /* @__PURE__ */ n.jsx(
656
+ }, Tr = ({ children: a, eventKey: s, active: u }) => /* @__PURE__ */ n.jsx(
657
657
  "div",
658
658
  {
659
659
  className: `tab-pane ${u ? "active" : ""}`,
@@ -663,7 +663,7 @@ const Rr = () => /* @__PURE__ */ n.jsx("div", { className: "toolbar-pf" }), xr =
663
663
  children: a
664
664
  },
665
665
  s
666
- ), Tr = ({ activeKey: a, onSelect: s, children: u }) => /* @__PURE__ */ n.jsxs("div", { className: "tabs-container", children: [
666
+ ), Cr = ({ activeKey: a, onSelect: s, children: u }) => /* @__PURE__ */ n.jsxs("div", { className: "tabs-container", children: [
667
667
  /* @__PURE__ */ n.jsx("ul", { className: "nav nav-tabs", role: "tablist", children: u.map(({ props: { eventKey: l, title: d } }) => /* @__PURE__ */ n.jsx("li", { className: a === l ? "active" : "", children: /* @__PURE__ */ n.jsx(
668
668
  "a",
669
669
  {
@@ -685,24 +685,27 @@ const Rr = () => /* @__PURE__ */ n.jsx("div", { className: "toolbar-pf" }), xr =
685
685
  },
686
686
  l
687
687
  )) }) })
688
- ] }), Cr = ({
689
- id: a,
690
- type: s,
691
- placeholder: u = "",
692
- value: l,
693
- onChange: d,
694
- className: b = "form-control"
695
- }) => /* @__PURE__ */ n.jsx(
696
- "input",
697
- {
698
- type: s,
688
+ ] }), wr = vr(
689
+ ({
699
690
  id: a,
700
- className: b,
701
- placeholder: u,
691
+ type: s,
692
+ placeholder: u = "",
702
693
  value: l,
703
- onChange: d
704
- }
705
- ), wr = ({ title: a, isOpen: s, onClose: u, children: l, size: d }) => {
694
+ onChange: d,
695
+ className: b = "form-control"
696
+ }, x) => /* @__PURE__ */ n.jsx(
697
+ "input",
698
+ {
699
+ type: s,
700
+ id: a,
701
+ className: b,
702
+ placeholder: u,
703
+ value: l,
704
+ onChange: d,
705
+ ref: x
706
+ }
707
+ )
708
+ ), Or = ({ title: a, isOpen: s, onClose: u, children: l, size: d }) => {
706
709
  if (!s) return null;
707
710
  const b = d ? `modal-${d}` : "";
708
711
  return /* @__PURE__ */ n.jsx("div", { className: "modal fade in", style: { display: "block" }, tabIndex: -1, role: "dialog", children: /* @__PURE__ */ n.jsx("div", { className: `modal-dialog ${b}`, role: "document", children: /* @__PURE__ */ n.jsxs("div", { className: "modal-content", children: [
@@ -712,19 +715,19 @@ const Rr = () => /* @__PURE__ */ n.jsx("div", { className: "toolbar-pf" }), xr =
712
715
  ] }),
713
716
  /* @__PURE__ */ n.jsx("div", { className: "modal-body", children: l })
714
717
  ] }) }) });
715
- }, Or = ({ variant: a, children: s }) => {
718
+ }, Sr = ({ variant: a, children: s }) => {
716
719
  const l = {
717
720
  warning: "text-yellow-600",
718
721
  success: "text-green-600",
719
722
  error: "text-red-600"
720
723
  }[a] || "";
721
724
  return /* @__PURE__ */ n.jsx("p", { className: l, children: s });
722
- }, Sr = ({ children: a, ...s }) => /* @__PURE__ */ n.jsx("table", { ...s, children: a }), kr = ({ children: a, ...s }) => /* @__PURE__ */ n.jsx("tbody", { ...s, children: a }), Pr = ({ children: a, ...s }) => /* @__PURE__ */ n.jsx("td", { ...s, children: a }), Nr = ({ children: a, ...s }) => /* @__PURE__ */ n.jsx("th", { ...s, children: a }), $r = ({ children: a, ...s }) => /* @__PURE__ */ n.jsx("thead", { ...s, children: a }), Dr = ({ children: a, ...s }) => /* @__PURE__ */ n.jsx("tr", { ...s, children: a }), gr = ({ items: a, selected: s, title: u, onChange: l }) => {
723
- const [d, b] = vr(!1), g = () => {
725
+ }, kr = ({ children: a, ...s }) => /* @__PURE__ */ n.jsx("table", { ...s, children: a }), Pr = ({ children: a, ...s }) => /* @__PURE__ */ n.jsx("tbody", { ...s, children: a }), Nr = ({ children: a, ...s }) => /* @__PURE__ */ n.jsx("td", { ...s, children: a }), $r = ({ children: a, ...s }) => /* @__PURE__ */ n.jsx("th", { ...s, children: a }), Dr = ({ children: a, ...s }) => /* @__PURE__ */ n.jsx("thead", { ...s, children: a }), Fr = ({ children: a, ...s }) => /* @__PURE__ */ n.jsx("tr", { ...s, children: a }), yr = ({ items: a, selected: s, title: u, onChange: l }) => {
726
+ const [d, b] = pr(!1), x = () => {
724
727
  b((p) => !p);
725
728
  }, T = (p) => {
726
729
  b(!1), l(p);
727
- }, x = (p) => {
730
+ }, g = (p) => {
728
731
  const R = p.id === s;
729
732
  return /* @__PURE__ */ n.jsx(
730
733
  "li",
@@ -741,19 +744,19 @@ const Rr = () => /* @__PURE__ */ n.jsx("div", { className: "toolbar-pf" }), xr =
741
744
  "button",
742
745
  {
743
746
  className: "btn btn-default dropdown-toggle",
744
- onClick: g,
747
+ onClick: x,
745
748
  children: [
746
749
  u,
747
750
  /* @__PURE__ */ n.jsx("span", { className: "caret" })
748
751
  ]
749
752
  }
750
753
  ),
751
- d && /* @__PURE__ */ n.jsx("ul", { className: "dropdown-menu", children: a.map(x) })
754
+ d && /* @__PURE__ */ n.jsx("ul", { className: "dropdown-menu", children: a.map(g) })
752
755
  ] });
753
- }, yr = ({ currentPage: a, total: s, onPageChange: u, pageSize: l }) => {
756
+ }, jr = ({ currentPage: a, total: s, onPageChange: u, pageSize: l }) => {
754
757
  const d = Math.ceil(s / l), b = () => {
755
758
  a > 1 && u(a - 1);
756
- }, g = () => {
759
+ }, x = () => {
757
760
  a < d && u(a + 1);
758
761
  };
759
762
  return /* @__PURE__ */ n.jsxs("div", { children: [
@@ -779,7 +782,7 @@ const Rr = () => /* @__PURE__ */ n.jsx("div", { className: "toolbar-pf" }), xr =
779
782
  type: "button",
780
783
  className: `btn btn-default ${a === d ? "disabled" : ""}`,
781
784
  disabled: a === d,
782
- onClick: g,
785
+ onClick: x,
783
786
  children: /* @__PURE__ */ n.jsx("i", { className: "fa fa-angle-right" })
784
787
  }
785
788
  )
@@ -791,26 +794,26 @@ const Rr = () => /* @__PURE__ */ n.jsx("div", { className: "toolbar-pf" }), xr =
791
794
  { id: 3, title: "20 сек", data: 2e4 },
792
795
  { id: 4, title: "30 сек", data: 3e4 },
793
796
  { id: 5, title: "60 сек", data: 6e4 }
794
- ], jr = ({ onChange: a, value: s, onRefresh: u }) => {
797
+ ], Er = ({ onChange: a, value: s, onRefresh: u }) => {
795
798
  var b;
796
- const l = (g) => {
797
- a(g.data);
798
- }, d = (b = we.find((g) => g.data === s)) == null ? void 0 : b.id;
799
+ const l = (x) => {
800
+ a(x.data);
801
+ }, d = (b = we.find((x) => x.data === s)) == null ? void 0 : b.id;
799
802
  return /* @__PURE__ */ n.jsxs("div", { className: "flex", children: [
800
803
  /* @__PURE__ */ n.jsx(Se, { type: "default", onClick: u, children: /* @__PURE__ */ n.jsx("i", { className: "fa fa-refresh" }) }),
801
- /* @__PURE__ */ n.jsx(gr, { onChange: l, items: we, selected: d })
804
+ /* @__PURE__ */ n.jsx(yr, { onChange: l, items: we, selected: d })
802
805
  ] });
803
- }, Fr = ({
806
+ }, Ar = ({
804
807
  interval: a,
805
808
  page: s,
806
809
  total: u,
807
810
  onRefresh: l,
808
811
  onChangeInterval: d,
809
812
  onPageChange: b,
810
- pageSize: g
813
+ pageSize: x
811
814
  }) => /* @__PURE__ */ n.jsxs("div", { className: "flex justify-between bg-[#f5f5f5] border border-[#d1d1d1]", children: [
812
815
  /* @__PURE__ */ n.jsx("div", { className: "m-[5px]", children: /* @__PURE__ */ n.jsx(
813
- jr,
816
+ Er,
814
817
  {
815
818
  value: a,
816
819
  onChange: d,
@@ -818,15 +821,15 @@ const Rr = () => /* @__PURE__ */ n.jsx("div", { className: "toolbar-pf" }), xr =
818
821
  }
819
822
  ) }),
820
823
  /* @__PURE__ */ n.jsx("div", { className: "m-[5px]", children: /* @__PURE__ */ n.jsx(
821
- yr,
824
+ jr,
822
825
  {
823
- pageSize: g,
826
+ pageSize: x,
824
827
  currentPage: s,
825
828
  total: u,
826
829
  onPageChange: b
827
830
  }
828
831
  ) })
829
- ] }), Ar = ({
832
+ ] }), Ir = ({
830
833
  id: a,
831
834
  label: s,
832
835
  isChecked: u = !1,
@@ -844,8 +847,8 @@ const Rr = () => /* @__PURE__ */ n.jsx("div", { className: "toolbar-pf" }), xr =
844
847
  ),
845
848
  ` ${s}`
846
849
  ] }) });
847
- function Ir(a, s) {
848
- pr(() => {
850
+ function Wr(a, s) {
851
+ br(() => {
849
852
  if (!a)
850
853
  return;
851
854
  const u = setInterval(() => {
@@ -854,9 +857,9 @@ function Ir(a, s) {
854
857
  return () => clearInterval(u);
855
858
  }, [a]);
856
859
  }
857
- const Wr = () => /* @__PURE__ */ n.jsxs("div", { children: [
860
+ const Yr = () => /* @__PURE__ */ n.jsxs("div", { children: [
858
861
  /* @__PURE__ */ n.jsx(
859
- xr,
862
+ gr,
860
863
  {
861
864
  items: [
862
865
  { title: "Дополнения", active: !0 },
@@ -867,25 +870,25 @@ const Wr = () => /* @__PURE__ */ n.jsxs("div", { children: [
867
870
  /* @__PURE__ */ n.jsx(Se, { children: "Hello" })
868
871
  ] });
869
872
  export {
870
- xr as Breadcrumb,
873
+ gr as Breadcrumb,
871
874
  Se as Button,
872
- Ar as Checkbox,
873
- gr as Dropdown,
874
- Or as HelpText,
875
- Cr as Input,
876
- wr as Modal,
877
- yr as Pagination,
878
- jr as ReloadButton,
879
- Wr as SampleComp,
880
- _r as Tab,
881
- Sr as Table,
882
- Fr as TableToolbar,
883
- Tr as Tabs,
884
- kr as Tbody,
885
- Pr as Td,
886
- Nr as Th,
887
- $r as Thead,
888
- Rr as ToolbarContainer,
889
- Dr as Tr,
890
- Ir as useIntervalLoader
875
+ Ir as Checkbox,
876
+ yr as Dropdown,
877
+ Sr as HelpText,
878
+ wr as Input,
879
+ Or as Modal,
880
+ jr as Pagination,
881
+ Er as ReloadButton,
882
+ Yr as SampleComp,
883
+ Tr as Tab,
884
+ kr as Table,
885
+ Ar as TableToolbar,
886
+ Cr as Tabs,
887
+ Pr as Tbody,
888
+ Nr as Td,
889
+ $r as Th,
890
+ Dr as Thead,
891
+ _r as ToolbarContainer,
892
+ Fr as Tr,
893
+ Wr as useIntervalLoader
891
894
  };
@@ -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 re;function Ie(){if(re)return A;re=1;var a=O,i=Symbol.for("react.element"),u=Symbol.for("react.fragment"),l=Object.prototype.hasOwnProperty,d=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,h={key:!0,ref:!0,__self:!0,__source:!0};function j(C,y,w){var b,_={},k=null,L=null;w!==void 0&&(k=""+w),y.key!==void 0&&(k=""+y.key),y.ref!==void 0&&(L=y.ref);for(b in y)l.call(y,b)&&!h.hasOwnProperty(b)&&(_[b]=y[b]);if(C&&C.defaultProps)for(b in y=C.defaultProps,y)_[b]===void 0&&(_[b]=y[b]);return{$$typeof:i,type:C,key:k,ref:L,props:_,_owner:d.current}}return A.Fragment=u,A.jsx=j,A.jsxs=j,A}var $={};/**
9
+ */var re;function Ie(){if(re)return A;re=1;var a=O,i=Symbol.for("react.element"),u=Symbol.for("react.fragment"),l=Object.prototype.hasOwnProperty,d=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,h={key:!0,ref:!0,__self:!0,__source:!0};function y(C,j,w){var b,_={},k=null,L=null;w!==void 0&&(k=""+w),j.key!==void 0&&(k=""+j.key),j.ref!==void 0&&(L=j.ref);for(b in j)l.call(j,b)&&!h.hasOwnProperty(b)&&(_[b]=j[b]);if(C&&C.defaultProps)for(b in j=C.defaultProps,j)_[b]===void 0&&(_[b]=j[b]);return{$$typeof:i,type:C,key:k,ref:L,props:_,_owner:d.current}}return A.Fragment=u,A.jsx=y,A.jsxs=y,A}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 te;function Ae(){return te||(te=1,process.env.NODE_ENV!=="production"&&function(){var a=O,i=Symbol.for("react.element"),u=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),d=Symbol.for("react.strict_mode"),h=Symbol.for("react.profiler"),j=Symbol.for("react.provider"),C=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),w=Symbol.for("react.suspense"),b=Symbol.for("react.suspense_list"),_=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),L=Symbol.for("react.offscreen"),ce=Symbol.iterator,er="@@iterator";function rr(e){if(e===null||typeof e!="object")return null;var r=ce&&e[ce]||e[er];return typeof r=="function"?r:null}var D=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function x(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),o=1;o<r;o++)t[o-1]=arguments[o];tr("error",e,t)}}function tr(e,r,t){{var o=D.ReactDebugCurrentFrame,f=o.getStackAddendum();f!==""&&(r+="%s",t=t.concat([f]));var p=t.map(function(c){return String(c)});p.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,p)}}var nr=!1,ar=!1,ir=!1,or=!1,sr=!1,ue;ue=Symbol.for("react.module.reference");function lr(e){return!!(typeof e=="string"||typeof e=="function"||e===l||e===h||sr||e===d||e===w||e===b||or||e===L||nr||ar||ir||typeof e=="object"&&e!==null&&(e.$$typeof===k||e.$$typeof===_||e.$$typeof===j||e.$$typeof===C||e.$$typeof===y||e.$$typeof===ue||e.getModuleId!==void 0))}function cr(e,r,t){var o=e.displayName;if(o)return o;var f=r.displayName||r.name||"";return f!==""?t+"("+f+")":t}function fe(e){return e.displayName||"Context"}function S(e){if(e==null)return null;if(typeof e.tag=="number"&&x("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 u:return"Portal";case h:return"Profiler";case d:return"StrictMode";case w:return"Suspense";case b:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case C:var r=e;return fe(r)+".Consumer";case j:var t=e;return fe(t._context)+".Provider";case y:return cr(e,e.render,"ForwardRef");case _:var o=e.displayName||null;return o!==null?o:S(e.type)||"Memo";case k:{var f=e,p=f._payload,c=f._init;try{return S(c(p))}catch{return null}}}return null}var P=Object.assign,W=0,de,ve,pe,be,he,me,ge;function ye(){}ye.__reactDisabledLog=!0;function ur(){{if(W===0){de=console.log,ve=console.info,pe=console.warn,be=console.error,he=console.group,me=console.groupCollapsed,ge=console.groupEnd;var e={configurable:!0,enumerable:!0,value:ye,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}W++}}function fr(){{if(W--,W===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:P({},e,{value:de}),info:P({},e,{value:ve}),warn:P({},e,{value:pe}),error:P({},e,{value:be}),group:P({},e,{value:he}),groupCollapsed:P({},e,{value:me}),groupEnd:P({},e,{value:ge})})}W<0&&x("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var G=D.ReactCurrentDispatcher,H;function V(e,r,t){{if(H===void 0)try{throw Error()}catch(f){var o=f.stack.trim().match(/\n( *(at )?)/);H=o&&o[1]||""}return`
17
+ */var te;function Ae(){return te||(te=1,process.env.NODE_ENV!=="production"&&function(){var a=O,i=Symbol.for("react.element"),u=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),d=Symbol.for("react.strict_mode"),h=Symbol.for("react.profiler"),y=Symbol.for("react.provider"),C=Symbol.for("react.context"),j=Symbol.for("react.forward_ref"),w=Symbol.for("react.suspense"),b=Symbol.for("react.suspense_list"),_=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),L=Symbol.for("react.offscreen"),ce=Symbol.iterator,er="@@iterator";function rr(e){if(e===null||typeof e!="object")return null;var r=ce&&e[ce]||e[er];return typeof r=="function"?r:null}var D=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function x(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),o=1;o<r;o++)t[o-1]=arguments[o];tr("error",e,t)}}function tr(e,r,t){{var o=D.ReactDebugCurrentFrame,f=o.getStackAddendum();f!==""&&(r+="%s",t=t.concat([f]));var p=t.map(function(c){return String(c)});p.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,p)}}var nr=!1,ar=!1,ir=!1,or=!1,sr=!1,ue;ue=Symbol.for("react.module.reference");function lr(e){return!!(typeof e=="string"||typeof e=="function"||e===l||e===h||sr||e===d||e===w||e===b||or||e===L||nr||ar||ir||typeof e=="object"&&e!==null&&(e.$$typeof===k||e.$$typeof===_||e.$$typeof===y||e.$$typeof===C||e.$$typeof===j||e.$$typeof===ue||e.getModuleId!==void 0))}function cr(e,r,t){var o=e.displayName;if(o)return o;var f=r.displayName||r.name||"";return f!==""?t+"("+f+")":t}function fe(e){return e.displayName||"Context"}function S(e){if(e==null)return null;if(typeof e.tag=="number"&&x("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 u:return"Portal";case h:return"Profiler";case d:return"StrictMode";case w:return"Suspense";case b:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case C:var r=e;return fe(r)+".Consumer";case y:var t=e;return fe(t._context)+".Provider";case j:return cr(e,e.render,"ForwardRef");case _:var o=e.displayName||null;return o!==null?o:S(e.type)||"Memo";case k:{var f=e,p=f._payload,c=f._init;try{return S(c(p))}catch{return null}}}return null}var P=Object.assign,W=0,de,ve,pe,be,he,me,ge;function ye(){}ye.__reactDisabledLog=!0;function ur(){{if(W===0){de=console.log,ve=console.info,pe=console.warn,be=console.error,he=console.group,me=console.groupCollapsed,ge=console.groupEnd;var e={configurable:!0,enumerable:!0,value:ye,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}W++}}function fr(){{if(W--,W===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:P({},e,{value:de}),info:P({},e,{value:ve}),warn:P({},e,{value:pe}),error:P({},e,{value:be}),group:P({},e,{value:he}),groupCollapsed:P({},e,{value:me}),groupEnd:P({},e,{value:ge})})}W<0&&x("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var G=D.ReactCurrentDispatcher,H;function V(e,r,t){{if(H===void 0)try{throw Error()}catch(f){var o=f.stack.trim().match(/\n( *(at )?)/);H=o&&o[1]||""}return`
18
18
  `+H+e}}var z=!1,B;{var dr=typeof WeakMap=="function"?WeakMap:Map;B=new dr}function je(e,r){if(!e||z)return"";{var t=B.get(e);if(t!==void 0)return t}var o;z=!0;var f=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var p;p=G.current,G.current=null,ur();try{if(r){var c=function(){throw Error()};if(Object.defineProperty(c.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(c,[])}catch(E){o=E}Reflect.construct(e,[],c)}else{try{c.call()}catch(E){o=E}e.call(c.prototype)}}else{try{throw Error()}catch(E){o=E}e()}}catch(E){if(E&&o&&typeof E.stack=="string"){for(var s=E.stack.split(`
19
19
  `),R=o.stack.split(`
20
20
  `),m=s.length-1,g=R.length-1;m>=1&&g>=0&&s[m]!==R[g];)g--;for(;m>=1&&g>=0;m--,g--)if(s[m]!==R[g]){if(m!==1||g!==1)do if(m--,g--,g<0||s[m]!==R[g]){var T=`
21
- `+s[m].replace(" at new "," at ");return e.displayName&&T.includes("<anonymous>")&&(T=T.replace("<anonymous>",e.displayName)),typeof e=="function"&&B.set(e,T),T}while(m>=1&&g>=0);break}}}finally{z=!1,G.current=p,fr(),Error.prepareStackTrace=f}var I=e?e.displayName||e.name:"",N=I?V(I):"";return typeof e=="function"&&B.set(e,N),N}function vr(e,r,t){return je(e,!1)}function pr(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function U(e,r,t){if(e==null)return"";if(typeof e=="function")return je(e,pr(e));if(typeof e=="string")return V(e);switch(e){case w:return V("Suspense");case b:return V("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case y:return vr(e.render);case _:return U(e.type,r,t);case k:{var o=e,f=o._payload,p=o._init;try{return U(p(f),r,t)}catch{}}}return""}var Y=Object.prototype.hasOwnProperty,xe={},Re=D.ReactDebugCurrentFrame;function J(e){if(e){var r=e._owner,t=U(e.type,e._source,r?r.type:null);Re.setExtraStackFrame(t)}else Re.setExtraStackFrame(null)}function br(e,r,t,o,f){{var p=Function.call.bind(Y);for(var c in e)if(p(e,c)){var s=void 0;try{if(typeof e[c]!="function"){var R=Error((o||"React class")+": "+t+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw R.name="Invariant Violation",R}s=e[c](r,c,o,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(m){s=m}s&&!(s instanceof Error)&&(J(f),x("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",o||"React class",t,c,typeof s),J(null)),s instanceof Error&&!(s.message in xe)&&(xe[s.message]=!0,J(f),x("Failed %s type: %s",t,s.message),J(null))}}}var hr=Array.isArray;function X(e){return hr(e)}function mr(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function gr(e){try{return Ee(e),!1}catch{return!0}}function Ee(e){return""+e}function _e(e){if(gr(e))return x("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",mr(e)),Ee(e)}var Te=D.ReactCurrentOwner,yr={key:!0,ref:!0,__self:!0,__source:!0},Ce,we;function jr(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 xr(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 Rr(e,r){typeof e.ref=="string"&&Te.current}function Er(e,r){{var t=function(){Ce||(Ce=!0,x("%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))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}}function _r(e,r){{var t=function(){we||(we=!0,x("%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))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}}var Tr=function(e,r,t,o,f,p,c){var s={$$typeof:i,type:e,key:r,ref:t,props:c,_owner:p};return s._store={},Object.defineProperty(s._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(s,"_self",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.defineProperty(s,"_source",{configurable:!1,enumerable:!1,writable:!1,value:f}),Object.freeze&&(Object.freeze(s.props),Object.freeze(s)),s};function Cr(e,r,t,o,f){{var p,c={},s=null,R=null;t!==void 0&&(_e(t),s=""+t),xr(r)&&(_e(r.key),s=""+r.key),jr(r)&&(R=r.ref,Rr(r,f));for(p in r)Y.call(r,p)&&!yr.hasOwnProperty(p)&&(c[p]=r[p]);if(e&&e.defaultProps){var m=e.defaultProps;for(p in m)c[p]===void 0&&(c[p]=m[p])}if(s||R){var g=typeof e=="function"?e.displayName||e.name||"Unknown":e;s&&Er(c,g),R&&_r(c,g)}return Tr(e,s,R,f,o,Te.current,c)}}var Z=D.ReactCurrentOwner,Oe=D.ReactDebugCurrentFrame;function F(e){if(e){var r=e._owner,t=U(e.type,e._source,r?r.type:null);Oe.setExtraStackFrame(t)}else Oe.setExtraStackFrame(null)}var Q;Q=!1;function K(e){return typeof e=="object"&&e!==null&&e.$$typeof===i}function Se(){{if(Z.current){var e=S(Z.current.type);if(e)return`
21
+ `+s[m].replace(" at new "," at ");return e.displayName&&T.includes("<anonymous>")&&(T=T.replace("<anonymous>",e.displayName)),typeof e=="function"&&B.set(e,T),T}while(m>=1&&g>=0);break}}}finally{z=!1,G.current=p,fr(),Error.prepareStackTrace=f}var I=e?e.displayName||e.name:"",N=I?V(I):"";return typeof e=="function"&&B.set(e,N),N}function vr(e,r,t){return je(e,!1)}function pr(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function U(e,r,t){if(e==null)return"";if(typeof e=="function")return je(e,pr(e));if(typeof e=="string")return V(e);switch(e){case w:return V("Suspense");case b:return V("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case j:return vr(e.render);case _:return U(e.type,r,t);case k:{var o=e,f=o._payload,p=o._init;try{return U(p(f),r,t)}catch{}}}return""}var Y=Object.prototype.hasOwnProperty,xe={},Re=D.ReactDebugCurrentFrame;function J(e){if(e){var r=e._owner,t=U(e.type,e._source,r?r.type:null);Re.setExtraStackFrame(t)}else Re.setExtraStackFrame(null)}function br(e,r,t,o,f){{var p=Function.call.bind(Y);for(var c in e)if(p(e,c)){var s=void 0;try{if(typeof e[c]!="function"){var R=Error((o||"React class")+": "+t+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw R.name="Invariant Violation",R}s=e[c](r,c,o,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(m){s=m}s&&!(s instanceof Error)&&(J(f),x("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",o||"React class",t,c,typeof s),J(null)),s instanceof Error&&!(s.message in xe)&&(xe[s.message]=!0,J(f),x("Failed %s type: %s",t,s.message),J(null))}}}var hr=Array.isArray;function X(e){return hr(e)}function mr(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function gr(e){try{return Ee(e),!1}catch{return!0}}function Ee(e){return""+e}function _e(e){if(gr(e))return x("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",mr(e)),Ee(e)}var Te=D.ReactCurrentOwner,yr={key:!0,ref:!0,__self:!0,__source:!0},Ce,we;function jr(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 xr(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 Rr(e,r){typeof e.ref=="string"&&Te.current}function Er(e,r){{var t=function(){Ce||(Ce=!0,x("%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))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}}function _r(e,r){{var t=function(){we||(we=!0,x("%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))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}}var Tr=function(e,r,t,o,f,p,c){var s={$$typeof:i,type:e,key:r,ref:t,props:c,_owner:p};return s._store={},Object.defineProperty(s._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(s,"_self",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.defineProperty(s,"_source",{configurable:!1,enumerable:!1,writable:!1,value:f}),Object.freeze&&(Object.freeze(s.props),Object.freeze(s)),s};function Cr(e,r,t,o,f){{var p,c={},s=null,R=null;t!==void 0&&(_e(t),s=""+t),xr(r)&&(_e(r.key),s=""+r.key),jr(r)&&(R=r.ref,Rr(r,f));for(p in r)Y.call(r,p)&&!yr.hasOwnProperty(p)&&(c[p]=r[p]);if(e&&e.defaultProps){var m=e.defaultProps;for(p in m)c[p]===void 0&&(c[p]=m[p])}if(s||R){var g=typeof e=="function"?e.displayName||e.name||"Unknown":e;s&&Er(c,g),R&&_r(c,g)}return Tr(e,s,R,f,o,Te.current,c)}}var Z=D.ReactCurrentOwner,Oe=D.ReactDebugCurrentFrame;function F(e){if(e){var r=e._owner,t=U(e.type,e._source,r?r.type:null);Oe.setExtraStackFrame(t)}else Oe.setExtraStackFrame(null)}var Q;Q=!1;function K(e){return typeof e=="object"&&e!==null&&e.$$typeof===i}function Se(){{if(Z.current){var e=S(Z.current.type);if(e)return`
22
22
 
23
23
  Check the render method of \``+e+"`."}return""}}function wr(e){return""}var ke={};function Or(e){{var r=Se();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=`
24
24
 
25
- Check the top-level render call using <`+t+">.")}return r}}function Pe(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=Or(r);if(ke[t])return;ke[t]=!0;var o="";e&&e._owner&&e._owner!==Z.current&&(o=" It was passed a child from "+S(e._owner.type)+"."),F(e),x('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,o),F(null)}}function Ne(e,r){{if(typeof e!="object")return;if(X(e))for(var t=0;t<e.length;t++){var o=e[t];K(o)&&Pe(o,r)}else if(K(e))e._store&&(e._store.validated=!0);else if(e){var f=rr(e);if(typeof f=="function"&&f!==e.entries)for(var p=f.call(e),c;!(c=p.next()).done;)K(c.value)&&Pe(c.value,r)}}}function Sr(e){{var r=e.type;if(r==null||typeof r=="string")return;var t;if(typeof r=="function")t=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===y||r.$$typeof===_))t=r.propTypes;else return;if(t){var o=S(r);br(t,e.props,"prop",o,e)}else if(r.PropTypes!==void 0&&!Q){Q=!0;var f=S(r);x("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",f||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&x("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function kr(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var o=r[t];if(o!=="children"&&o!=="key"){F(e),x("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",o),F(null);break}}e.ref!==null&&(F(e),x("Invalid attribute `ref` supplied to `React.Fragment`."),F(null))}}var De={};function Fe(e,r,t,o,f,p){{var c=lr(e);if(!c){var s="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(s+=" 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 R=wr();R?s+=R:s+=Se();var m;e===null?m="null":X(e)?m="array":e!==void 0&&e.$$typeof===i?(m="<"+(S(e.type)||"Unknown")+" />",s=" Did you accidentally export a JSX literal instead of a component?"):m=typeof e,x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",m,s)}var g=Cr(e,r,t,f,p);if(g==null)return g;if(c){var T=r.children;if(T!==void 0)if(o)if(X(T)){for(var I=0;I<T.length;I++)Ne(T[I],e);Object.freeze&&Object.freeze(T)}else x("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 Ne(T,e)}if(Y.call(r,"key")){var N=S(e),E=Object.keys(r).filter(function(Ar){return Ar!=="key"}),ee=E.length>0?"{key: someKey, "+E.join(": ..., ")+": ...}":"{key: someKey}";if(!De[N+ee]){var Ir=E.length>0?"{"+E.join(": ..., ")+": ...}":"{}";x(`A props object containing a "key" prop is being spread into JSX:
25
+ Check the top-level render call using <`+t+">.")}return r}}function Pe(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=Or(r);if(ke[t])return;ke[t]=!0;var o="";e&&e._owner&&e._owner!==Z.current&&(o=" It was passed a child from "+S(e._owner.type)+"."),F(e),x('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,o),F(null)}}function Ne(e,r){{if(typeof e!="object")return;if(X(e))for(var t=0;t<e.length;t++){var o=e[t];K(o)&&Pe(o,r)}else if(K(e))e._store&&(e._store.validated=!0);else if(e){var f=rr(e);if(typeof f=="function"&&f!==e.entries)for(var p=f.call(e),c;!(c=p.next()).done;)K(c.value)&&Pe(c.value,r)}}}function Sr(e){{var r=e.type;if(r==null||typeof r=="string")return;var t;if(typeof r=="function")t=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===j||r.$$typeof===_))t=r.propTypes;else return;if(t){var o=S(r);br(t,e.props,"prop",o,e)}else if(r.PropTypes!==void 0&&!Q){Q=!0;var f=S(r);x("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",f||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&x("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function kr(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var o=r[t];if(o!=="children"&&o!=="key"){F(e),x("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",o),F(null);break}}e.ref!==null&&(F(e),x("Invalid attribute `ref` supplied to `React.Fragment`."),F(null))}}var De={};function Fe(e,r,t,o,f,p){{var c=lr(e);if(!c){var s="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(s+=" 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 R=wr();R?s+=R:s+=Se();var m;e===null?m="null":X(e)?m="array":e!==void 0&&e.$$typeof===i?(m="<"+(S(e.type)||"Unknown")+" />",s=" Did you accidentally export a JSX literal instead of a component?"):m=typeof e,x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",m,s)}var g=Cr(e,r,t,f,p);if(g==null)return g;if(c){var T=r.children;if(T!==void 0)if(o)if(X(T)){for(var I=0;I<T.length;I++)Ne(T[I],e);Object.freeze&&Object.freeze(T)}else x("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 Ne(T,e)}if(Y.call(r,"key")){var N=S(e),E=Object.keys(r).filter(function(Ar){return Ar!=="key"}),ee=E.length>0?"{key: someKey, "+E.join(": ..., ")+": ...}":"{key: someKey}";if(!De[N+ee]){var Ir=E.length>0?"{"+E.join(": ..., ")+": ...}":"{}";x(`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} />`,ee,N,Ir,N),De[N+ee]=!0}}return e===l?kr(g):Sr(g),g}}function Pr(e,r,t){return Fe(e,r,t,!0)}function Nr(e,r,t){return Fe(e,r,t,!1)}var Dr=Nr,Fr=Pr;$.Fragment=l,$.jsx=Dr,$.jsxs=Fr}()),$}var ne;function $e(){return ne||(ne=1,process.env.NODE_ENV==="production"?M.exports=Ie():M.exports=Ae()),M.exports}var n=$e();const We=()=>n.jsx("div",{className:"toolbar-pf"}),ae=({items:a})=>n.jsx("ol",{className:"breadcrumb",children:a.map((i,u)=>n.jsx("li",{className:i.active?"active":"",children:i.active?i.title:n.jsx("a",{href:i.href,children:i.title})},u))}),q=({type:a="default",title:i,size:u,label:l,onClick:d,isDisabled:h=!1,children:j,className:C=""})=>{const y=`btn-${a}`,w=u?`btn-${u}`:"",_=`${`btn ${y} ${w}`.trim()} ${C}`.trim();return n.jsx("button",{className:_,type:"button",onClick:d,disabled:h,children:n.jsxs("div",{className:"flex items-center",children:[j||l," ",i]})})},Ye=({children:a,eventKey:i,active:u})=>n.jsx("div",{className:`tab-pane ${u?"active":""}`,id:`${i}-panel`,role:"tabpanel","aria-labelledby":`${i}-tab`,children:a},i),Me=({activeKey:a,onSelect:i,children:u})=>n.jsxs("div",{className:"tabs-container",children:[n.jsx("ul",{className:"nav nav-tabs",role:"tablist",children:u.map(({props:{eventKey:l,title:d}})=>n.jsx("li",{className:a===l?"active":"",children:n.jsx("a",{href:`#${l}`,onClick:h=>{h.preventDefault(),i(l)},children:d})},l))}),n.jsx("div",{className:"tabs-container",children:n.jsx("div",{className:"tab-content pf-c-tab-content",children:u.map(({props:{eventKey:l,children:d}})=>n.jsx("div",{className:`tab-pane ${a===l?"active":""}`,id:`${l}-panel`,role:"tabpanel","aria-labelledby":`${l}-tab`,children:d},l))})})]}),Le=({id:a,type:i,placeholder:u="",value:l,onChange:d,className:h="form-control"})=>n.jsx("input",{type:i,id:a,className:h,placeholder:u,value:l,onChange:d}),Ve=({title:a,isOpen:i,onClose:u,children:l,size:d})=>{if(!i)return null;const h=d?`modal-${d}`:"";return n.jsx("div",{className:"modal fade in",style:{display:"block"},tabIndex:-1,role:"dialog",children:n.jsx("div",{className:`modal-dialog ${h}`,role:"document",children:n.jsxs("div",{className:"modal-content",children:[n.jsxs("div",{className:"modal-header",children:[n.jsx("button",{type:"button",className:"close",onClick:u,"aria-hidden":"true",children:n.jsx("span",{className:"pficon pficon-close"})}),n.jsx("h4",{className:"modal-title",children:a})]}),n.jsx("div",{className:"modal-body",children:l})]})})})},Be=({variant:a,children:i})=>{const l={warning:"text-yellow-600",success:"text-green-600",error:"text-red-600"}[a]||"";return n.jsx("p",{className:l,children:i})},Ue=({children:a,...i})=>n.jsx("table",{...i,children:a}),Je=({children:a,...i})=>n.jsx("tbody",{...i,children:a}),qe=({children:a,...i})=>n.jsx("td",{...i,children:a}),Ge=({children:a,...i})=>n.jsx("th",{...i,children:a}),He=({children:a,...i})=>n.jsx("thead",{...i,children:a}),ze=({children:a,...i})=>n.jsx("tr",{...i,children:a}),ie=({items:a,selected:i,title:u,onChange:l})=>{const[d,h]=O.useState(!1),j=()=>{h(b=>!b)},C=b=>{h(!1),l(b)},y=b=>{const _=b.id===i;return n.jsx("li",{onClick:()=>C(b),className:_?"active":"",children:n.jsx("a",{href:"#",children:b.title})},b.id)},w=d?"dropdown open":"dropdown";return n.jsxs("div",{className:w,style:{display:"inline-block"},children:[n.jsxs("button",{className:"btn btn-default dropdown-toggle",onClick:j,children:[u,n.jsx("span",{className:"caret"})]}),d&&n.jsx("ul",{className:"dropdown-menu",children:a.map(y)})]})},oe=({currentPage:a,total:i,onPageChange:u,pageSize:l})=>{const d=Math.ceil(i/l),h=()=>{a>1&&u(a-1)},j=()=>{a<d&&u(a+1)};return n.jsxs("div",{children:[n.jsx("span",{children:n.jsxs("span",{className:"pagination-pf-items-current",children:[a," - ",d]})}),n.jsxs("div",{className:"btn-group ml-2",children:[n.jsx("button",{type:"button",className:`btn btn-default ${a===1?"disabled":""}`,disabled:a===1,onClick:h,children:n.jsx("i",{className:"fa fa-angle-left"})}),n.jsx("button",{type:"button",className:`btn btn-default ${a===d?"disabled":""}`,disabled:a===d,onClick:j,children:n.jsx("i",{className:"fa fa-angle-right"})})]})]})},se=[{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}],le=({onChange:a,value:i,onRefresh:u})=>{var h;const l=j=>{a(j.data)},d=(h=se.find(j=>j.data===i))==null?void 0:h.id;return n.jsxs("div",{className:"flex",children:[n.jsx(q,{type:"default",onClick:u,children:n.jsx("i",{className:"fa fa-refresh"})}),n.jsx(ie,{onChange:l,items:se,selected:d})]})},Xe=({interval:a,page:i,total:u,onRefresh:l,onChangeInterval:d,onPageChange:h,pageSize:j})=>n.jsxs("div",{className:"flex justify-between bg-[#f5f5f5] border border-[#d1d1d1]",children:[n.jsx("div",{className:"m-[5px]",children:n.jsx(le,{value:a,onChange:d,onRefresh:l})}),n.jsx("div",{className:"m-[5px]",children:n.jsx(oe,{pageSize:j,currentPage:i,total:u,onPageChange:h})})]}),Ze=({id:a,label:i,isChecked:u=!1,onChange:l,className:d="checkbox"})=>n.jsx("div",{className:d,children:n.jsxs("label",{htmlFor:a,children:[n.jsx("input",{type:"checkbox",id:a,checked:u,onChange:l}),` ${i}`]})});function Qe(a,i){O.useEffect(()=>{if(!a)return;const u=setInterval(()=>{i()},a);return()=>clearInterval(u)},[a])}const Ke=()=>n.jsxs("div",{children:[n.jsx(ae,{items:[{title:"Дополнения",active:!0},{title:"Название плагина",href:"#Название плагина"}]}),n.jsx(q,{children:"Hello"})]});v.Breadcrumb=ae,v.Button=q,v.Checkbox=Ze,v.Dropdown=ie,v.HelpText=Be,v.Input=Le,v.Modal=Ve,v.Pagination=oe,v.ReloadButton=le,v.SampleComp=Ke,v.Tab=Ye,v.Table=Ue,v.TableToolbar=Xe,v.Tabs=Me,v.Tbody=Je,v.Td=qe,v.Th=Ge,v.Thead=He,v.ToolbarContainer=We,v.Tr=ze,v.useIntervalLoader=Qe,Object.defineProperty(v,Symbol.toStringTag,{value:"Module"})});
30
+ <%s key={someKey} {...props} />`,ee,N,Ir,N),De[N+ee]=!0}}return e===l?kr(g):Sr(g),g}}function Pr(e,r,t){return Fe(e,r,t,!0)}function Nr(e,r,t){return Fe(e,r,t,!1)}var Dr=Nr,Fr=Pr;$.Fragment=l,$.jsx=Dr,$.jsxs=Fr}()),$}var ne;function $e(){return ne||(ne=1,process.env.NODE_ENV==="production"?M.exports=Ie():M.exports=Ae()),M.exports}var n=$e();const We=()=>n.jsx("div",{className:"toolbar-pf"}),ae=({items:a})=>n.jsx("ol",{className:"breadcrumb",children:a.map((i,u)=>n.jsx("li",{className:i.active?"active":"",children:i.active?i.title:n.jsx("a",{href:i.href,children:i.title})},u))}),q=({type:a="default",title:i,size:u,label:l,onClick:d,isDisabled:h=!1,children:y,className:C=""})=>{const j=`btn-${a}`,w=u?`btn-${u}`:"",_=`${`btn ${j} ${w}`.trim()} ${C}`.trim();return n.jsx("button",{className:_,type:"button",onClick:d,disabled:h,children:n.jsxs("div",{className:"flex items-center",children:[y||l," ",i]})})},Ye=({children:a,eventKey:i,active:u})=>n.jsx("div",{className:`tab-pane ${u?"active":""}`,id:`${i}-panel`,role:"tabpanel","aria-labelledby":`${i}-tab`,children:a},i),Me=({activeKey:a,onSelect:i,children:u})=>n.jsxs("div",{className:"tabs-container",children:[n.jsx("ul",{className:"nav nav-tabs",role:"tablist",children:u.map(({props:{eventKey:l,title:d}})=>n.jsx("li",{className:a===l?"active":"",children:n.jsx("a",{href:`#${l}`,onClick:h=>{h.preventDefault(),i(l)},children:d})},l))}),n.jsx("div",{className:"tabs-container",children:n.jsx("div",{className:"tab-content pf-c-tab-content",children:u.map(({props:{eventKey:l,children:d}})=>n.jsx("div",{className:`tab-pane ${a===l?"active":""}`,id:`${l}-panel`,role:"tabpanel","aria-labelledby":`${l}-tab`,children:d},l))})})]}),Le=O.forwardRef(({id:a,type:i,placeholder:u="",value:l,onChange:d,className:h="form-control"},y)=>n.jsx("input",{type:i,id:a,className:h,placeholder:u,value:l,onChange:d,ref:y})),Ve=({title:a,isOpen:i,onClose:u,children:l,size:d})=>{if(!i)return null;const h=d?`modal-${d}`:"";return n.jsx("div",{className:"modal fade in",style:{display:"block"},tabIndex:-1,role:"dialog",children:n.jsx("div",{className:`modal-dialog ${h}`,role:"document",children:n.jsxs("div",{className:"modal-content",children:[n.jsxs("div",{className:"modal-header",children:[n.jsx("button",{type:"button",className:"close",onClick:u,"aria-hidden":"true",children:n.jsx("span",{className:"pficon pficon-close"})}),n.jsx("h4",{className:"modal-title",children:a})]}),n.jsx("div",{className:"modal-body",children:l})]})})})},Be=({variant:a,children:i})=>{const l={warning:"text-yellow-600",success:"text-green-600",error:"text-red-600"}[a]||"";return n.jsx("p",{className:l,children:i})},Ue=({children:a,...i})=>n.jsx("table",{...i,children:a}),Je=({children:a,...i})=>n.jsx("tbody",{...i,children:a}),qe=({children:a,...i})=>n.jsx("td",{...i,children:a}),Ge=({children:a,...i})=>n.jsx("th",{...i,children:a}),He=({children:a,...i})=>n.jsx("thead",{...i,children:a}),ze=({children:a,...i})=>n.jsx("tr",{...i,children:a}),ie=({items:a,selected:i,title:u,onChange:l})=>{const[d,h]=O.useState(!1),y=()=>{h(b=>!b)},C=b=>{h(!1),l(b)},j=b=>{const _=b.id===i;return n.jsx("li",{onClick:()=>C(b),className:_?"active":"",children:n.jsx("a",{href:"#",children:b.title})},b.id)},w=d?"dropdown open":"dropdown";return n.jsxs("div",{className:w,style:{display:"inline-block"},children:[n.jsxs("button",{className:"btn btn-default dropdown-toggle",onClick:y,children:[u,n.jsx("span",{className:"caret"})]}),d&&n.jsx("ul",{className:"dropdown-menu",children:a.map(j)})]})},oe=({currentPage:a,total:i,onPageChange:u,pageSize:l})=>{const d=Math.ceil(i/l),h=()=>{a>1&&u(a-1)},y=()=>{a<d&&u(a+1)};return n.jsxs("div",{children:[n.jsx("span",{children:n.jsxs("span",{className:"pagination-pf-items-current",children:[a," - ",d]})}),n.jsxs("div",{className:"btn-group ml-2",children:[n.jsx("button",{type:"button",className:`btn btn-default ${a===1?"disabled":""}`,disabled:a===1,onClick:h,children:n.jsx("i",{className:"fa fa-angle-left"})}),n.jsx("button",{type:"button",className:`btn btn-default ${a===d?"disabled":""}`,disabled:a===d,onClick:y,children:n.jsx("i",{className:"fa fa-angle-right"})})]})]})},se=[{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}],le=({onChange:a,value:i,onRefresh:u})=>{var h;const l=y=>{a(y.data)},d=(h=se.find(y=>y.data===i))==null?void 0:h.id;return n.jsxs("div",{className:"flex",children:[n.jsx(q,{type:"default",onClick:u,children:n.jsx("i",{className:"fa fa-refresh"})}),n.jsx(ie,{onChange:l,items:se,selected:d})]})},Xe=({interval:a,page:i,total:u,onRefresh:l,onChangeInterval:d,onPageChange:h,pageSize:y})=>n.jsxs("div",{className:"flex justify-between bg-[#f5f5f5] border border-[#d1d1d1]",children:[n.jsx("div",{className:"m-[5px]",children:n.jsx(le,{value:a,onChange:d,onRefresh:l})}),n.jsx("div",{className:"m-[5px]",children:n.jsx(oe,{pageSize:y,currentPage:i,total:u,onPageChange:h})})]}),Ze=({id:a,label:i,isChecked:u=!1,onChange:l,className:d="checkbox"})=>n.jsx("div",{className:d,children:n.jsxs("label",{htmlFor:a,children:[n.jsx("input",{type:"checkbox",id:a,checked:u,onChange:l}),` ${i}`]})});function Qe(a,i){O.useEffect(()=>{if(!a)return;const u=setInterval(()=>{i()},a);return()=>clearInterval(u)},[a])}const Ke=()=>n.jsxs("div",{children:[n.jsx(ae,{items:[{title:"Дополнения",active:!0},{title:"Название плагина",href:"#Название плагина"}]}),n.jsx(q,{children:"Hello"})]});v.Breadcrumb=ae,v.Button=q,v.Checkbox=Ze,v.Dropdown=ie,v.HelpText=Be,v.Input=Le,v.Modal=Ve,v.Pagination=oe,v.ReloadButton=le,v.SampleComp=Ke,v.Tab=Ye,v.Table=Ue,v.TableToolbar=Xe,v.Tabs=Me,v.Tbody=Je,v.Td=qe,v.Th=Ge,v.Thead=He,v.ToolbarContainer=We,v.Tr=ze,v.useIntervalLoader=Qe,Object.defineProperty(v,Symbol.toStringTag,{value:"Module"})});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ovirt-ui-toolkit",
3
- "version": "0.0.16",
3
+ "version": "0.0.17",
4
4
  "type": "module",
5
5
  "main": "./dist/ovirt-ui-toolkit.umd.js",
6
6
  "module": "./dist/ovirt-ui-toolkit.es.js",