ovirt-ui-toolkit 0.0.47 → 0.0.48

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,4 +1,4 @@
1
- import Oe, { forwardRef as hr, useState as Se, useEffect as mr } from "react";
1
+ import Oe, { forwardRef as mr, useState as Se, useEffect as hr } from "react";
2
2
  var U = { exports: {} }, A = {};
3
3
  /**
4
4
  * @license React
@@ -14,14 +14,14 @@ function br() {
14
14
  if (_e) return A;
15
15
  _e = 1;
16
16
  var a = Oe, s = Symbol.for("react.element"), l = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty, c = a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, p = { key: !0, ref: !0, __self: !0, __source: !0 };
17
- function h(C, m, T) {
17
+ function m(C, h, T) {
18
18
  var j, b = {}, R = null, W = null;
19
- T !== void 0 && (R = "" + T), m.key !== void 0 && (R = "" + m.key), m.ref !== void 0 && (W = m.ref);
20
- for (j in m) o.call(m, j) && !p.hasOwnProperty(j) && (b[j] = m[j]);
21
- if (C && C.defaultProps) for (j in m = C.defaultProps, m) b[j] === void 0 && (b[j] = m[j]);
19
+ T !== void 0 && (R = "" + T), h.key !== void 0 && (R = "" + h.key), h.ref !== void 0 && (W = h.ref);
20
+ for (j in h) o.call(h, j) && !p.hasOwnProperty(j) && (b[j] = h[j]);
21
+ if (C && C.defaultProps) for (j in h = C.defaultProps, h) b[j] === void 0 && (b[j] = h[j]);
22
22
  return { $$typeof: s, type: C, key: R, ref: W, props: b, _owner: c.current };
23
23
  }
24
- return A.Fragment = l, A.jsx = h, A.jsxs = h, A;
24
+ return A.Fragment = l, A.jsx = m, A.jsxs = m, A;
25
25
  }
26
26
  var I = {};
27
27
  /**
@@ -36,7 +36,7 @@ var I = {};
36
36
  var Ce;
37
37
  function xr() {
38
38
  return Ce || (Ce = 1, process.env.NODE_ENV !== "production" && function() {
39
- var a = Oe, s = Symbol.for("react.element"), l = 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"), 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"), Q = Symbol.iterator, Pe = "@@iterator";
39
+ var a = Oe, s = Symbol.for("react.element"), l = 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"), 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"), Q = Symbol.iterator, Pe = "@@iterator";
40
40
  function $e(e) {
41
41
  if (e === null || typeof e != "object")
42
42
  return null;
@@ -64,7 +64,7 @@ function xr() {
64
64
  var Fe = !1, Ae = !1, Ie = !1, We = !1, Ye = !1, K;
65
65
  K = Symbol.for("react.module.reference");
66
66
  function Ve(e) {
67
- return !!(typeof e == "string" || typeof e == "function" || e === o || e === p || Ye || e === c || e === T || e === j || We || e === W || Fe || Ae || Ie || typeof e == "object" && e !== null && (e.$$typeof === R || e.$$typeof === b || e.$$typeof === h || e.$$typeof === C || e.$$typeof === m || // This needs to include all possible module reference object
67
+ return !!(typeof e == "string" || typeof e == "function" || e === o || e === p || Ye || e === c || e === T || e === j || We || e === W || Fe || Ae || Ie || typeof e == "object" && e !== null && (e.$$typeof === R || e.$$typeof === b || e.$$typeof === m || e.$$typeof === C || e.$$typeof === h || // This needs to include all possible module reference object
68
68
  // types supported by any Flight configuration anywhere since
69
69
  // we don't know which Flight build this will end up being used
70
70
  // with.
@@ -106,10 +106,10 @@ function xr() {
106
106
  case C:
107
107
  var r = e;
108
108
  return ee(r) + ".Consumer";
109
- case h:
109
+ case m:
110
110
  var n = e;
111
111
  return ee(n._context) + ".Provider";
112
- case m:
112
+ case h:
113
113
  return Me(e, e.render, "ForwardRef");
114
114
  case b:
115
115
  var i = e.displayName || null;
@@ -299,7 +299,7 @@ function xr() {
299
299
  }
300
300
  if (typeof e == "object")
301
301
  switch (e.$$typeof) {
302
- case m:
302
+ case h:
303
303
  return Je(e.render);
304
304
  case b:
305
305
  return M(e.type, r, n);
@@ -369,7 +369,7 @@ function xr() {
369
369
  ref: !0,
370
370
  __self: !0,
371
371
  __source: !0
372
- }, he, me;
372
+ }, me, he;
373
373
  function Qe(e) {
374
374
  if (F.call(e, "ref")) {
375
375
  var r = Object.getOwnPropertyDescriptor(e, "ref").get;
@@ -392,7 +392,7 @@ function xr() {
392
392
  function rr(e, r) {
393
393
  {
394
394
  var n = 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
+ me || (me = !0, y("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
396
396
  };
397
397
  n.isReactWarning = !0, Object.defineProperty(e, "key", {
398
398
  get: n,
@@ -403,7 +403,7 @@ function xr() {
403
403
  function tr(e, r) {
404
404
  {
405
405
  var n = function() {
406
- me || (me = !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
+ he || (he = !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));
407
407
  };
408
408
  n.isReactWarning = !0, Object.defineProperty(e, "ref", {
409
409
  get: n,
@@ -539,7 +539,7 @@ Check the top-level render call using <` + n + ">.");
539
539
  var n;
540
540
  if (typeof r == "function")
541
541
  n = r.propTypes;
542
- else if (typeof r == "object" && (r.$$typeof === m || // Note: Memo only checks outer props here.
542
+ else if (typeof r == "object" && (r.$$typeof === h || // Note: Memo only checks outer props here.
543
543
  // Inner props are checked in the reconciler.
544
544
  r.$$typeof === b))
545
545
  n = r.propTypes;
@@ -664,9 +664,9 @@ const Tr = () => /* @__PURE__ */ t.jsx("div", { className: "toolbar-pf" }), jr =
664
664
  label: o,
665
665
  onClick: c,
666
666
  isDisabled: p = !1,
667
- children: h,
667
+ children: m,
668
668
  className: C = "",
669
- isLoading: m = !1
669
+ isLoading: h = !1
670
670
  }) => {
671
671
  const T = `btn-${a}`, j = l ? `btn-${l}` : "", R = `${`btn ${T} ${j}`.trim()} ${C}`.trim();
672
672
  return /* @__PURE__ */ t.jsx(
@@ -675,10 +675,10 @@ const Tr = () => /* @__PURE__ */ t.jsx("div", { className: "toolbar-pf" }), jr =
675
675
  className: R,
676
676
  type: "button",
677
677
  onClick: c,
678
- disabled: p || m,
678
+ disabled: p || h,
679
679
  children: /* @__PURE__ */ t.jsxs("div", { className: "flex items-center justify-center", children: [
680
- m && yr,
681
- h || o,
680
+ h && yr,
681
+ m || o,
682
682
  " ",
683
683
  s && /* @__PURE__ */ t.jsx("span", { children: s })
684
684
  ] })
@@ -716,7 +716,7 @@ const Tr = () => /* @__PURE__ */ t.jsx("div", { className: "toolbar-pf" }), jr =
716
716
  },
717
717
  o
718
718
  )) }) })
719
- ] }), Sr = hr(
719
+ ] }), Sr = mr(
720
720
  ({
721
721
  id: a,
722
722
  type: s,
@@ -724,7 +724,7 @@ const Tr = () => /* @__PURE__ */ t.jsx("div", { className: "toolbar-pf" }), jr =
724
724
  value: o,
725
725
  onChange: c,
726
726
  className: p = "form-control"
727
- }, h) => /* @__PURE__ */ t.jsx(
727
+ }, m) => /* @__PURE__ */ t.jsx(
728
728
  "input",
729
729
  {
730
730
  type: s,
@@ -733,7 +733,7 @@ const Tr = () => /* @__PURE__ */ t.jsx("div", { className: "toolbar-pf" }), jr =
733
733
  placeholder: l,
734
734
  value: o,
735
735
  onChange: c,
736
- ref: h
736
+ ref: m
737
737
  }
738
738
  )
739
739
  ), Nr = ({ title: a, isOpen: s, onClose: l, children: o, size: c }) => {
@@ -760,24 +760,24 @@ const Tr = () => /* @__PURE__ */ t.jsx("div", { className: "toolbar-pf" }), jr =
760
760
  isOpen: o,
761
761
  setIsOpen: c,
762
762
  onChange: p,
763
- className: h = ""
763
+ className: m = ""
764
764
  }) => {
765
765
  const C = (b) => {
766
766
  c(!b);
767
- }, m = (b) => {
767
+ }, h = (b) => {
768
768
  c(!1), p(b);
769
769
  }, T = (b) => {
770
770
  const R = b.id === s;
771
771
  return /* @__PURE__ */ t.jsx(
772
772
  "li",
773
773
  {
774
- onClick: () => m(b),
774
+ onClick: () => h(b),
775
775
  className: R ? "active" : "",
776
776
  children: /* @__PURE__ */ t.jsx("a", { href: "#", children: b.title })
777
777
  },
778
778
  b.id
779
779
  );
780
- }, j = `btn btn-default dropdown-toggle ${h}`;
780
+ }, j = `btn btn-default dropdown-toggle ${m}`;
781
781
  return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
782
782
  /* @__PURE__ */ t.jsx(
783
783
  "button",
@@ -797,7 +797,7 @@ const Tr = () => /* @__PURE__ */ t.jsx("div", { className: "toolbar-pf" }), jr =
797
797
  }, Er = ({ currentPage: a, total: s, onPageChange: l, pageSize: o }) => {
798
798
  const c = Math.ceil(s / o), p = () => {
799
799
  a > 1 && l(a - 1);
800
- }, h = () => {
800
+ }, m = () => {
801
801
  a < c && l(a + 1);
802
802
  };
803
803
  return /* @__PURE__ */ t.jsxs("div", { children: [
@@ -823,7 +823,7 @@ const Tr = () => /* @__PURE__ */ t.jsx("div", { className: "toolbar-pf" }), jr =
823
823
  type: "button",
824
824
  className: `btn btn-default ${a === c ? "disabled" : ""}`,
825
825
  disabled: a === c,
826
- onClick: h,
826
+ onClick: m,
827
827
  children: /* @__PURE__ */ t.jsx("i", { className: "fa fa-angle-right" })
828
828
  }
829
829
  )
@@ -837,11 +837,11 @@ const Tr = () => /* @__PURE__ */ t.jsx("div", { className: "toolbar-pf" }), jr =
837
837
  { id: 5, title: "60 сек", data: 6e4 }
838
838
  ], Rr = ({ onChange: a, value: s, onRefresh: l }) => {
839
839
  var p;
840
- const o = (h) => {
841
- a(h.data);
842
- }, c = (p = we.find((h) => h.data === s)) == null ? void 0 : p.id;
840
+ const o = (m) => {
841
+ a(m.data);
842
+ }, c = (p = we.find((m) => m.data === s)) == null ? void 0 : p.id;
843
843
  return /* @__PURE__ */ t.jsxs("div", { className: "flex", children: [
844
- /* @__PURE__ */ t.jsx("div", { className: "h-[20px]", children: /* @__PURE__ */ t.jsx(Ne, { className: "m-0 h-full", type: "default", onClick: l, children: /* @__PURE__ */ t.jsx("i", { className: "fa fa-refresh" }) }) }),
844
+ /* @__PURE__ */ t.jsx(Ne, { className: "m-0 h-[20px]", type: "default", onClick: l, children: /* @__PURE__ */ t.jsx("i", { className: "fa fa-refresh" }) }),
845
845
  /* @__PURE__ */ t.jsx(ke, { className: "m-0 h-[20px]", onChange: o, items: we, selected: c })
846
846
  ] });
847
847
  }, Wr = ({
@@ -851,7 +851,7 @@ const Tr = () => /* @__PURE__ */ t.jsx("div", { className: "toolbar-pf" }), jr =
851
851
  onRefresh: o,
852
852
  onChangeInterval: c,
853
853
  onPageChange: p,
854
- pageSize: h
854
+ pageSize: m
855
855
  }) => /* @__PURE__ */ t.jsxs("div", { className: "flex justify-between bg-[#f5f5f5] border border-[#d1d1d1]", children: [
856
856
  /* @__PURE__ */ t.jsx("div", { className: "m-[5px]", children: /* @__PURE__ */ t.jsx(
857
857
  Rr,
@@ -864,7 +864,7 @@ const Tr = () => /* @__PURE__ */ t.jsx("div", { className: "toolbar-pf" }), jr =
864
864
  /* @__PURE__ */ t.jsx("div", { className: "m-[5px]", children: /* @__PURE__ */ t.jsx(
865
865
  Er,
866
866
  {
867
- pageSize: h,
867
+ pageSize: m,
868
868
  currentPage: s,
869
869
  total: l,
870
870
  onPageChange: p
@@ -894,16 +894,16 @@ const Tr = () => /* @__PURE__ */ t.jsx("div", { className: "toolbar-pf" }), jr =
894
894
  value: o,
895
895
  onChange: c,
896
896
  isDisabled: p = !1,
897
- className: h = ""
897
+ className: m = ""
898
898
  }) => {
899
- const [C, m] = Se(o || ""), T = o !== void 0 ? o : C, j = (b) => {
899
+ const [C, h] = Se(o || ""), T = o !== void 0 ? o : C, j = (b) => {
900
900
  const R = b.target.value;
901
- c ? c(R) : m(R);
901
+ c ? c(R) : h(R);
902
902
  };
903
903
  return /* @__PURE__ */ t.jsx(
904
904
  "textarea",
905
905
  {
906
- className: h,
906
+ className: m,
907
907
  placeholder: a,
908
908
  rows: s,
909
909
  maxLength: l,
@@ -917,7 +917,7 @@ const Tr = () => /* @__PURE__ */ t.jsx("div", { className: "toolbar-pf" }), jr =
917
917
  return ["success", "info", "warning", "danger"].includes(a) || (console.warn(`Unsupported alert variant: "${a}". Defaulting to "info".`), a = "info"), /* @__PURE__ */ t.jsx("div", { className: o.trim(), role: "alert", children: s });
918
918
  };
919
919
  function Lr(a, s) {
920
- mr(() => {
920
+ hr(() => {
921
921
  if (!a)
922
922
  return;
923
923
  const l = setInterval(() => {
@@ -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 ne;function Ie(){return ne||(ne=1,process.env.NODE_ENV!=="production"&&function(){var a=O,s=Symbol.for("react.element"),l=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),h=Symbol.for("react.profiler"),m=Symbol.for("react.provider"),C=Symbol.for("react.context"),b=Symbol.for("react.forward_ref"),w=Symbol.for("react.suspense"),y=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),V=Symbol.for("react.offscreen"),ce=Symbol.iterator,ar="@@iterator";function sr(e){if(e===null||typeof e!="object")return null;var r=ce&&e[ce]||e[ar];return typeof r=="function"?r:null}var D=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function R(e){{for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];ir("error",e,n)}}function ir(e,r,n){{var i=D.ReactDebugCurrentFrame,d=i.getStackAddendum();d!==""&&(r+="%s",n=n.concat([d]));var p=n.map(function(f){return String(f)});p.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,p)}}var or=!1,lr=!1,cr=!1,ur=!1,fr=!1,ue;ue=Symbol.for("react.module.reference");function dr(e){return!!(typeof e=="string"||typeof e=="function"||e===o||e===h||fr||e===c||e===w||e===y||ur||e===V||or||lr||cr||typeof e=="object"&&e!==null&&(e.$$typeof===_||e.$$typeof===g||e.$$typeof===m||e.$$typeof===C||e.$$typeof===b||e.$$typeof===ue||e.getModuleId!==void 0))}function vr(e,r,n){var i=e.displayName;if(i)return i;var d=r.displayName||r.name||"";return d!==""?n+"("+d+")":n}function fe(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 l:return"Portal";case h:return"Profiler";case c:return"StrictMode";case w:return"Suspense";case y:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case C:var r=e;return fe(r)+".Consumer";case m:var n=e;return fe(n._context)+".Provider";case b:return vr(e,e.render,"ForwardRef");case g:var i=e.displayName||null;return i!==null?i:N(e.type)||"Memo";case _:{var d=e,p=d._payload,f=d._init;try{return N(f(p))}catch{return null}}}return null}var k=Object.assign,W=0,de,ve,pe,he,me,be,ge;function xe(){}xe.__reactDisabledLog=!0;function pr(){{if(W===0){de=console.log,ve=console.info,pe=console.warn,he=console.error,me=console.group,be=console.groupCollapsed,ge=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:de}),info:k({},e,{value:ve}),warn:k({},e,{value:pe}),error:k({},e,{value:he}),group:k({},e,{value:me}),groupCollapsed:k({},e,{value:be}),groupEnd:k({},e,{value:ge})})}W<0&&R("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var H=D.ReactCurrentDispatcher,q;function L(e,r,n){{if(q===void 0)try{throw Error()}catch(d){var i=d.stack.trim().match(/\n( *(at )?)/);q=i&&i[1]||""}return`
17
+ */var ne;function Ie(){return ne||(ne=1,process.env.NODE_ENV!=="production"&&function(){var a=O,s=Symbol.for("react.element"),l=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),h=Symbol.for("react.profiler"),m=Symbol.for("react.provider"),C=Symbol.for("react.context"),b=Symbol.for("react.forward_ref"),w=Symbol.for("react.suspense"),y=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),V=Symbol.for("react.offscreen"),ce=Symbol.iterator,ar="@@iterator";function sr(e){if(e===null||typeof e!="object")return null;var r=ce&&e[ce]||e[ar];return typeof r=="function"?r:null}var D=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function R(e){{for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];ir("error",e,n)}}function ir(e,r,n){{var i=D.ReactDebugCurrentFrame,d=i.getStackAddendum();d!==""&&(r+="%s",n=n.concat([d]));var p=n.map(function(f){return String(f)});p.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,p)}}var or=!1,lr=!1,cr=!1,ur=!1,fr=!1,ue;ue=Symbol.for("react.module.reference");function dr(e){return!!(typeof e=="string"||typeof e=="function"||e===o||e===h||fr||e===c||e===w||e===y||ur||e===V||or||lr||cr||typeof e=="object"&&e!==null&&(e.$$typeof===_||e.$$typeof===g||e.$$typeof===m||e.$$typeof===C||e.$$typeof===b||e.$$typeof===ue||e.getModuleId!==void 0))}function vr(e,r,n){var i=e.displayName;if(i)return i;var d=r.displayName||r.name||"";return d!==""?n+"("+d+")":n}function fe(e){return e.displayName||"Context"}function k(e){if(e==null)return null;if(typeof e.tag=="number"&&R("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case o:return"Fragment";case l:return"Portal";case h:return"Profiler";case c:return"StrictMode";case w:return"Suspense";case y:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case C:var r=e;return fe(r)+".Consumer";case m:var n=e;return fe(n._context)+".Provider";case b:return vr(e,e.render,"ForwardRef");case g:var i=e.displayName||null;return i!==null?i:k(e.type)||"Memo";case _:{var d=e,p=d._payload,f=d._init;try{return k(f(p))}catch{return null}}}return null}var N=Object.assign,W=0,de,ve,pe,he,me,be,ge;function xe(){}xe.__reactDisabledLog=!0;function pr(){{if(W===0){de=console.log,ve=console.info,pe=console.warn,he=console.error,me=console.group,be=console.groupCollapsed,ge=console.groupEnd;var e={configurable:!0,enumerable:!0,value:xe,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}W++}}function hr(){{if(W--,W===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:N({},e,{value:de}),info:N({},e,{value:ve}),warn:N({},e,{value:pe}),error:N({},e,{value:he}),group:N({},e,{value:me}),groupCollapsed:N({},e,{value:be}),groupEnd:N({},e,{value:ge})})}W<0&&R("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var H=D.ReactCurrentDispatcher,q;function L(e,r,n){{if(q===void 0)try{throw Error()}catch(d){var i=d.stack.trim().match(/\n( *(at )?)/);q=i&&i[1]||""}return`
18
18
  `+q+e}}var X=!1,B;{var mr=typeof WeakMap=="function"?WeakMap:Map;B=new mr}function je(e,r){if(!e||X)return"";{var n=B.get(e);if(n!==void 0)return n}var i;X=!0;var d=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var p;p=H.current,H.current=null,pr();try{if(r){var f=function(){throw Error()};if(Object.defineProperty(f.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(f,[])}catch(T){i=T}Reflect.construct(e,[],f)}else{try{f.call()}catch(T){i=T}e.call(f.prototype)}}else{try{throw Error()}catch(T){i=T}e()}}catch(T){if(T&&i&&typeof T.stack=="string"){for(var u=T.stack.split(`
19
19
  `),E=i.stack.split(`
20
20
  `),x=u.length-1,j=E.length-1;x>=1&&j>=0&&u[x]!==E[j];)j--;for(;x>=1&&j>=0;x--,j--)if(u[x]!==E[j]){if(x!==1||j!==1)do if(x--,j--,j<0||u[x]!==E[j]){var S=`
21
- `+u[x].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(x>=1&&j>=0);break}}}finally{X=!1,H.current=p,hr(),Error.prepareStackTrace=d}var F=e?e.displayName||e.name:"",P=F?L(F):"";return typeof e=="function"&&B.set(e,P),P}function br(e,r,n){return je(e,!1)}function gr(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function U(e,r,n){if(e==null)return"";if(typeof e=="function")return je(e,gr(e));if(typeof e=="string")return L(e);switch(e){case w:return L("Suspense");case y:return L("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case b:return br(e.render);case g:return U(e.type,r,n);case _:{var i=e,d=i._payload,p=i._init;try{return U(p(d),r,n)}catch{}}}return""}var Y=Object.prototype.hasOwnProperty,ye={},Re=D.ReactDebugCurrentFrame;function J(e){if(e){var r=e._owner,n=U(e.type,e._source,r?r.type:null);Re.setExtraStackFrame(n)}else Re.setExtraStackFrame(null)}function xr(e,r,n,i,d){{var p=Function.call.bind(Y);for(var f in e)if(p(e,f)){var u=void 0;try{if(typeof e[f]!="function"){var E=Error((i||"React class")+": "+n+" type `"+f+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[f]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw E.name="Invariant Violation",E}u=e[f](r,f,i,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(x){u=x}u&&!(u instanceof Error)&&(J(d),R("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",i||"React class",n,f,typeof u),J(null)),u instanceof Error&&!(u.message in ye)&&(ye[u.message]=!0,J(d),R("Failed %s type: %s",n,u.message),J(null))}}}var jr=Array.isArray;function Z(e){return jr(e)}function yr(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,n=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return n}}function Rr(e){try{return Ee(e),!1}catch{return!0}}function Ee(e){return""+e}function _e(e){if(Rr(e))return R("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",yr(e)),Ee(e)}var Te=D.ReactCurrentOwner,Er={key:!0,ref:!0,__self:!0,__source:!0},Ce,we;function _r(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 Tr(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 Cr(e,r){typeof e.ref=="string"&&Te.current}function wr(e,r){{var n=function(){Ce||(Ce=!0,R("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}}function Sr(e,r){{var n=function(){we||(we=!0,R("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};n.isReactWarning=!0,Object.defineProperty(e,"ref",{get:n,configurable:!0})}}var Or=function(e,r,n,i,d,p,f){var u={$$typeof:s,type:e,key:r,ref:n,props:f,_owner:p};return u._store={},Object.defineProperty(u._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(u,"_self",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.defineProperty(u,"_source",{configurable:!1,enumerable:!1,writable:!1,value:d}),Object.freeze&&(Object.freeze(u.props),Object.freeze(u)),u};function Nr(e,r,n,i,d){{var p,f={},u=null,E=null;n!==void 0&&(_e(n),u=""+n),Tr(r)&&(_e(r.key),u=""+r.key),_r(r)&&(E=r.ref,Cr(r,d));for(p in r)Y.call(r,p)&&!Er.hasOwnProperty(p)&&(f[p]=r[p]);if(e&&e.defaultProps){var x=e.defaultProps;for(p in x)f[p]===void 0&&(f[p]=x[p])}if(u||E){var j=typeof e=="function"?e.displayName||e.name||"Unknown":e;u&&wr(f,j),E&&Sr(f,j)}return Or(e,u,E,d,i,Te.current,f)}}var Q=D.ReactCurrentOwner,Se=D.ReactDebugCurrentFrame;function A(e){if(e){var r=e._owner,n=U(e.type,e._source,r?r.type:null);Se.setExtraStackFrame(n)}else Se.setExtraStackFrame(null)}var K;K=!1;function ee(e){return typeof e=="object"&&e!==null&&e.$$typeof===s}function Oe(){{if(Q.current){var e=N(Q.current.type);if(e)return`
21
+ `+u[x].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(x>=1&&j>=0);break}}}finally{X=!1,H.current=p,hr(),Error.prepareStackTrace=d}var F=e?e.displayName||e.name:"",P=F?L(F):"";return typeof e=="function"&&B.set(e,P),P}function br(e,r,n){return je(e,!1)}function gr(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function U(e,r,n){if(e==null)return"";if(typeof e=="function")return je(e,gr(e));if(typeof e=="string")return L(e);switch(e){case w:return L("Suspense");case y:return L("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case b:return br(e.render);case g:return U(e.type,r,n);case _:{var i=e,d=i._payload,p=i._init;try{return U(p(d),r,n)}catch{}}}return""}var Y=Object.prototype.hasOwnProperty,ye={},Re=D.ReactDebugCurrentFrame;function J(e){if(e){var r=e._owner,n=U(e.type,e._source,r?r.type:null);Re.setExtraStackFrame(n)}else Re.setExtraStackFrame(null)}function xr(e,r,n,i,d){{var p=Function.call.bind(Y);for(var f in e)if(p(e,f)){var u=void 0;try{if(typeof e[f]!="function"){var E=Error((i||"React class")+": "+n+" type `"+f+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[f]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw E.name="Invariant Violation",E}u=e[f](r,f,i,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(x){u=x}u&&!(u instanceof Error)&&(J(d),R("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",i||"React class",n,f,typeof u),J(null)),u instanceof Error&&!(u.message in ye)&&(ye[u.message]=!0,J(d),R("Failed %s type: %s",n,u.message),J(null))}}}var jr=Array.isArray;function Z(e){return jr(e)}function yr(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,n=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return n}}function Rr(e){try{return Ee(e),!1}catch{return!0}}function Ee(e){return""+e}function _e(e){if(Rr(e))return R("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",yr(e)),Ee(e)}var Te=D.ReactCurrentOwner,Er={key:!0,ref:!0,__self:!0,__source:!0},Ce,we;function _r(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 Tr(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 Cr(e,r){typeof e.ref=="string"&&Te.current}function wr(e,r){{var n=function(){Ce||(Ce=!0,R("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}}function Sr(e,r){{var n=function(){we||(we=!0,R("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};n.isReactWarning=!0,Object.defineProperty(e,"ref",{get:n,configurable:!0})}}var Or=function(e,r,n,i,d,p,f){var u={$$typeof:s,type:e,key:r,ref:n,props:f,_owner:p};return u._store={},Object.defineProperty(u._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(u,"_self",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.defineProperty(u,"_source",{configurable:!1,enumerable:!1,writable:!1,value:d}),Object.freeze&&(Object.freeze(u.props),Object.freeze(u)),u};function kr(e,r,n,i,d){{var p,f={},u=null,E=null;n!==void 0&&(_e(n),u=""+n),Tr(r)&&(_e(r.key),u=""+r.key),_r(r)&&(E=r.ref,Cr(r,d));for(p in r)Y.call(r,p)&&!Er.hasOwnProperty(p)&&(f[p]=r[p]);if(e&&e.defaultProps){var x=e.defaultProps;for(p in x)f[p]===void 0&&(f[p]=x[p])}if(u||E){var j=typeof e=="function"?e.displayName||e.name||"Unknown":e;u&&wr(f,j),E&&Sr(f,j)}return Or(e,u,E,d,i,Te.current,f)}}var Q=D.ReactCurrentOwner,Se=D.ReactDebugCurrentFrame;function A(e){if(e){var r=e._owner,n=U(e.type,e._source,r?r.type:null);Se.setExtraStackFrame(n)}else Se.setExtraStackFrame(null)}var K;K=!1;function ee(e){return typeof e=="object"&&e!==null&&e.$$typeof===s}function Oe(){{if(Q.current){var e=k(Q.current.type);if(e)return`
22
22
 
23
- Check the render method of \``+e+"`."}return""}}function kr(e){return""}var Ne={};function Pr(e){{var r=Oe();if(!r){var n=typeof e=="string"?e:e.displayName||e.name;n&&(r=`
23
+ Check the render method of \``+e+"`."}return""}}function Nr(e){return""}var ke={};function Pr(e){{var r=Oe();if(!r){var n=typeof e=="string"?e:e.displayName||e.name;n&&(r=`
24
24
 
25
- Check the top-level render call using <`+n+">.")}return r}}function ke(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var n=Pr(r);if(Ne[n])return;Ne[n]=!0;var i="";e&&e._owner&&e._owner!==Q.current&&(i=" 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.',n,i),A(null)}}function Pe(e,r){{if(typeof e!="object")return;if(Z(e))for(var n=0;n<e.length;n++){var i=e[n];ee(i)&&ke(i,r)}else if(ee(e))e._store&&(e._store.validated=!0);else if(e){var d=sr(e);if(typeof d=="function"&&d!==e.entries)for(var p=d.call(e),f;!(f=p.next()).done;)ee(f.value)&&ke(f.value,r)}}}function Dr(e){{var r=e.type;if(r==null||typeof r=="string")return;var n;if(typeof r=="function")n=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===b||r.$$typeof===g))n=r.propTypes;else return;if(n){var i=N(r);xr(n,e.props,"prop",i,e)}else if(r.PropTypes!==void 0&&!K){K=!0;var d=N(r);R("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",d||"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 Ar(e){{for(var r=Object.keys(e.props),n=0;n<r.length;n++){var i=r[n];if(i!=="children"&&i!=="key"){A(e),R("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",i),A(null);break}}e.ref!==null&&(A(e),R("Invalid attribute `ref` supplied to `React.Fragment`."),A(null))}}var De={};function Ae(e,r,n,i,d,p){{var f=dr(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=kr();E?u+=E:u+=Oe();var x;e===null?x="null":Z(e)?x="array":e!==void 0&&e.$$typeof===s?(x="<"+(N(e.type)||"Unknown")+" />",u=" Did you accidentally export a JSX literal instead of a component?"):x=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",x,u)}var j=Nr(e,r,n,d,p);if(j==null)return j;if(f){var S=r.children;if(S!==void 0)if(i)if(Z(S)){for(var F=0;F<S.length;F++)Pe(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 Pe(S,e)}if(Y.call(r,"key")){var P=N(e),T=Object.keys(r).filter(function(Mr){return Mr!=="key"}),re=T.length>0?"{key: someKey, "+T.join(": ..., ")+": ...}":"{key: someKey}";if(!De[P+re]){var Yr=T.length>0?"{"+T.join(": ..., ")+": ...}":"{}";R(`A props object containing a "key" prop is being spread into JSX:
25
+ Check the top-level render call using <`+n+">.")}return r}}function Ne(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var n=Pr(r);if(ke[n])return;ke[n]=!0;var i="";e&&e._owner&&e._owner!==Q.current&&(i=" It was passed a child from "+k(e._owner.type)+"."),A(e),R('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,i),A(null)}}function Pe(e,r){{if(typeof e!="object")return;if(Z(e))for(var n=0;n<e.length;n++){var i=e[n];ee(i)&&Ne(i,r)}else if(ee(e))e._store&&(e._store.validated=!0);else if(e){var d=sr(e);if(typeof d=="function"&&d!==e.entries)for(var p=d.call(e),f;!(f=p.next()).done;)ee(f.value)&&Ne(f.value,r)}}}function Dr(e){{var r=e.type;if(r==null||typeof r=="string")return;var n;if(typeof r=="function")n=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===b||r.$$typeof===g))n=r.propTypes;else return;if(n){var i=k(r);xr(n,e.props,"prop",i,e)}else if(r.PropTypes!==void 0&&!K){K=!0;var d=k(r);R("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",d||"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 Ar(e){{for(var r=Object.keys(e.props),n=0;n<r.length;n++){var i=r[n];if(i!=="children"&&i!=="key"){A(e),R("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",i),A(null);break}}e.ref!==null&&(A(e),R("Invalid attribute `ref` supplied to `React.Fragment`."),A(null))}}var De={};function Ae(e,r,n,i,d,p){{var f=dr(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=Nr();E?u+=E:u+=Oe();var x;e===null?x="null":Z(e)?x="array":e!==void 0&&e.$$typeof===s?(x="<"+(k(e.type)||"Unknown")+" />",u=" Did you accidentally export a JSX literal instead of a component?"):x=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",x,u)}var j=kr(e,r,n,d,p);if(j==null)return j;if(f){var S=r.children;if(S!==void 0)if(i)if(Z(S)){for(var F=0;F<S.length;F++)Pe(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 Pe(S,e)}if(Y.call(r,"key")){var P=k(e),T=Object.keys(r).filter(function(Mr){return Mr!=="key"}),re=T.length>0?"{key: someKey, "+T.join(": ..., ")+": ...}":"{key: someKey}";if(!De[P+re]){var Yr=T.length>0?"{"+T.join(": ..., ")+": ...}":"{}";R(`A props object containing a "key" prop is being spread into JSX:
26
26
  let props = %s;
27
27
  <%s {...props} />
28
28
  React keys must be passed directly to JSX without using spread:
29
29
  let props = %s;
30
- <%s key={someKey} {...props} />`,re,P,Yr,P),De[P+re]=!0}}return e===o?Ar(j):Dr(j),j}}function Fr(e,r,n){return Ae(e,r,n,!0)}function Ir(e,r,n){return Ae(e,r,n,!1)}var $r=Ir,Wr=Fr;$.Fragment=o,$.jsx=$r,$.jsxs=Wr}()),$}var ae;function $e(){return ae||(ae=1,process.env.NODE_ENV==="production"?M.exports=Fe():M.exports=Ie()),M.exports}var t=$e();const We=()=>t.jsx("div",{className:"toolbar-pf"}),se=({items:a,className:s})=>t.jsx("ol",{className:`breadcrumb ${s||""}`.trim(),children:a.map((l,o)=>t.jsx("li",{className:l.active?"active":"",children:l.active?l.title:t.jsx("a",{href:l.href,children:l.title})},o))}),Ye=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"})]})}),z=({type:a="default",title:s,size:l,label:o,onClick:c,isDisabled:h=!1,children:m,className:C="",isLoading:b=!1})=>{const w=`btn-${a}`,y=l?`btn-${l}`:"",_=`${`btn ${w} ${y}`.trim()} ${C}`.trim();return t.jsx("button",{className:_,type:"button",onClick:c,disabled:h||b,children:t.jsxs("div",{className:"flex items-center justify-center",children:[b&&Ye,m||o," ",s&&t.jsx("span",{children:s})]})})},Me=({children:a,eventKey:s,active:l})=>t.jsx("div",{className:`tab-pane ${l?"active":""}`,id:`${s}-panel`,role:"tabpanel","aria-labelledby":`${s}-tab`,children:a},s),Ve=({activeKey:a,onSelect:s,children:l})=>t.jsxs("div",{className:"tabs-container",children:[t.jsx("ul",{className:"nav nav-tabs",role:"tablist",children:l.map(({props:{eventKey:o,title:c}})=>t.jsx("li",{className:a===o?"active":"",children:t.jsx("a",{href:`#${o}`,onClick:h=>{h.preventDefault(),s(o)},children:c})},o))}),t.jsx("div",{className:"tabs-container",children:t.jsx("div",{className:"tab-content pf-c-tab-content",children:l.map(({props:{eventKey:o,children:c}})=>t.jsx("div",{className:`tab-pane ${a===o?"active":""}`,id:`${o}-panel`,role:"tabpanel","aria-labelledby":`${o}-tab`,children:c},o))})})]}),Le=O.forwardRef(({id:a,type:s,placeholder:l="",value:o,onChange:c,className:h="form-control"},m)=>t.jsx("input",{type:s,id:a,className:h,placeholder:l,value:o,onChange:c,ref:m})),Be=({title:a,isOpen:s,onClose:l,children:o,size:c})=>{if(!s)return null;const h=c?`modal-${c}`:"";return t.jsx("div",{className:"modal fade in",style:{display:"block"},tabIndex:-1,role:"dialog",children:t.jsx("div",{className:`modal-dialog ${h}`,role:"document",children:t.jsxs("div",{className:"modal-content",children:[t.jsxs("div",{className:"modal-header",children:[t.jsx("button",{type:"button",className:"close",onClick:l,"aria-hidden":"true",children:t.jsx("span",{className:"pficon pficon-close"})}),t.jsx("h4",{className:"modal-title",children:a})]}),t.jsx("div",{className:"modal-body",children:o})]})})})},Ue=({variant:a,children:s,className:l=""})=>{const o={warning:"text-yellow-600",success:"text-green-600",error:"text-red-600"},c=l+" "+o[a]||"";return t.jsx("p",{className:c,children:s})},Je=({children:a,...s})=>t.jsx("table",{...s,children:a}),ze=({children:a,...s})=>t.jsx("tbody",{...s,children:a}),Ge=({children:a,...s})=>t.jsx("td",{...s,children:a}),He=({children:a,...s})=>t.jsx("th",{...s,children:a}),qe=({children:a,...s})=>t.jsx("thead",{...s,children:a}),Xe=({children:a,...s})=>t.jsx("tr",{...s,children:a}),G=({items:a,selected:s,title:l,isOpen:o,setIsOpen:c,onChange:h,className:m=""})=>{const C=g=>{c(!g)},b=g=>{c(!1),h(g)},w=g=>{const _=g.id===s;return t.jsx("li",{onClick:()=>b(g),className:_?"active":"",children:t.jsx("a",{href:"#",children:g.title})},g.id)},y=`btn btn-default dropdown-toggle ${m}`;return t.jsxs(t.Fragment,{children:[t.jsx("button",{style:{marginLeft:"0px",left:"-1px"},className:y,onClick:()=>C(o),"data-toggle":"dropdown",children:t.jsxs("div",{className:"flex items-center",children:[l&&t.jsx("div",{className:"mr-2",children:l}),t.jsx("span",{className:"caret"})]})}),t.jsx("ul",{className:"dropdown-menu",role:"menu",children:a.map(w)})]})},ie=({currentPage:a,total:s,onPageChange:l,pageSize:o})=>{const c=Math.ceil(s/o),h=()=>{a>1&&l(a-1)},m=()=>{a<c&&l(a+1)};return t.jsxs("div",{children:[t.jsx("span",{children:t.jsxs("span",{className:"pagination-pf-items-current",children:[a," - ",c]})}),t.jsxs("div",{className:"btn-group ml-2",children:[t.jsx("button",{type:"button",className:`btn btn-default ${a===1?"disabled":""}`,disabled:a===1,onClick:h,children:t.jsx("i",{className:"fa fa-angle-left"})}),t.jsx("button",{type:"button",className:`btn btn-default ${a===c?"disabled":""}`,disabled:a===c,onClick:m,children:t.jsx("i",{className:"fa fa-angle-right"})})]})]})},oe=[{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:s,onRefresh:l})=>{var h;const o=m=>{a(m.data)},c=(h=oe.find(m=>m.data===s))==null?void 0:h.id;return t.jsxs("div",{className:"flex",children:[t.jsx("div",{className:"h-[20px]",children:t.jsx(z,{className:"m-0 h-full",type:"default",onClick:l,children:t.jsx("i",{className:"fa fa-refresh"})})}),t.jsx(G,{className:"m-0 h-[20px]",onChange:o,items:oe,selected:c})]})},Ze=({interval:a,page:s,total:l,onRefresh:o,onChangeInterval:c,onPageChange:h,pageSize:m})=>t.jsxs("div",{className:"flex justify-between bg-[#f5f5f5] border border-[#d1d1d1]",children:[t.jsx("div",{className:"m-[5px]",children:t.jsx(le,{value:a,onChange:c,onRefresh:o})}),t.jsx("div",{className:"m-[5px]",children:t.jsx(ie,{pageSize:m,currentPage:s,total:l,onPageChange:h})})]}),Qe=({id:a,label:s,isChecked:l=!1,onChange:o,className:c="checkbox"})=>t.jsx("div",{className:c,children:t.jsxs("label",{htmlFor:a,children:[t.jsx("input",{type:"checkbox",id:a,checked:l,onChange:o}),` ${s}`]})}),Ke=({placeholder:a="",rows:s=3,maxLength:l,value:o,onChange:c,isDisabled:h=!1,className:m=""})=>{const[C,b]=O.useState(o||""),w=o!==void 0?o:C,y=g=>{const _=g.target.value;c?c(_):b(_)};return t.jsx("textarea",{className:m,placeholder:a,rows:s,maxLength:l,value:w,onChange:y,disabled:h})},er=({variant:a,title:s,className:l})=>{const o=`alert alert-${a} ${l||""}`;return["success","info","warning","danger"].includes(a)||(console.warn(`Unsupported alert variant: "${a}". Defaulting to "info".`),a="info"),t.jsx("div",{className:o.trim(),role:"alert",children:s})};function rr(a,s){O.useEffect(()=>{if(!a)return;const l=setInterval(()=>{s()},a);return()=>clearInterval(l)},[a])}const tr=({children:a,onChange:s,items:l})=>{const[o,c]=O.useState(!1);return t.jsx("div",{className:`btn-group ${o?"open":""}`,children:t.jsxs(t.Fragment,{children:[a,t.jsx(G,{setIsOpen:c,isOpen:o,onChange:s,items:l})]})})},nr=()=>t.jsxs("div",{children:[t.jsx(se,{items:[{title:"Дополнения",active:!0},{title:"Название плагина",href:"#Название плагина"}]}),t.jsx(tr,{onChange:()=>{},items:[{id:0,title:"5 сек"},{id:1,title:"10 сек"},{id:2,title:"20 сек"}],children:t.jsx(z,{children:"Hello"})})]});v.Alert=er,v.Breadcrumb=se,v.Button=z,v.Checkbox=Qe,v.Dropdown=G,v.HelpText=Ue,v.Input=Le,v.Modal=Be,v.Pagination=ie,v.ReloadButton=le,v.SampleComp=nr,v.Tab=Me,v.Table=Je,v.TableToolbar=Ze,v.Tabs=Ve,v.Tbody=ze,v.Td=Ge,v.TextArea=Ke,v.Th=He,v.Thead=qe,v.ToolbarContainer=We,v.Tr=Xe,v.useIntervalLoader=rr,Object.defineProperty(v,Symbol.toStringTag,{value:"Module"})});
30
+ <%s key={someKey} {...props} />`,re,P,Yr,P),De[P+re]=!0}}return e===o?Ar(j):Dr(j),j}}function Fr(e,r,n){return Ae(e,r,n,!0)}function Ir(e,r,n){return Ae(e,r,n,!1)}var $r=Ir,Wr=Fr;$.Fragment=o,$.jsx=$r,$.jsxs=Wr}()),$}var ae;function $e(){return ae||(ae=1,process.env.NODE_ENV==="production"?M.exports=Fe():M.exports=Ie()),M.exports}var t=$e();const We=()=>t.jsx("div",{className:"toolbar-pf"}),se=({items:a,className:s})=>t.jsx("ol",{className:`breadcrumb ${s||""}`.trim(),children:a.map((l,o)=>t.jsx("li",{className:l.active?"active":"",children:l.active?l.title:t.jsx("a",{href:l.href,children:l.title})},o))}),Ye=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"})]})}),z=({type:a="default",title:s,size:l,label:o,onClick:c,isDisabled:h=!1,children:m,className:C="",isLoading:b=!1})=>{const w=`btn-${a}`,y=l?`btn-${l}`:"",_=`${`btn ${w} ${y}`.trim()} ${C}`.trim();return t.jsx("button",{className:_,type:"button",onClick:c,disabled:h||b,children:t.jsxs("div",{className:"flex items-center justify-center",children:[b&&Ye,m||o," ",s&&t.jsx("span",{children:s})]})})},Me=({children:a,eventKey:s,active:l})=>t.jsx("div",{className:`tab-pane ${l?"active":""}`,id:`${s}-panel`,role:"tabpanel","aria-labelledby":`${s}-tab`,children:a},s),Ve=({activeKey:a,onSelect:s,children:l})=>t.jsxs("div",{className:"tabs-container",children:[t.jsx("ul",{className:"nav nav-tabs",role:"tablist",children:l.map(({props:{eventKey:o,title:c}})=>t.jsx("li",{className:a===o?"active":"",children:t.jsx("a",{href:`#${o}`,onClick:h=>{h.preventDefault(),s(o)},children:c})},o))}),t.jsx("div",{className:"tabs-container",children:t.jsx("div",{className:"tab-content pf-c-tab-content",children:l.map(({props:{eventKey:o,children:c}})=>t.jsx("div",{className:`tab-pane ${a===o?"active":""}`,id:`${o}-panel`,role:"tabpanel","aria-labelledby":`${o}-tab`,children:c},o))})})]}),Le=O.forwardRef(({id:a,type:s,placeholder:l="",value:o,onChange:c,className:h="form-control"},m)=>t.jsx("input",{type:s,id:a,className:h,placeholder:l,value:o,onChange:c,ref:m})),Be=({title:a,isOpen:s,onClose:l,children:o,size:c})=>{if(!s)return null;const h=c?`modal-${c}`:"";return t.jsx("div",{className:"modal fade in",style:{display:"block"},tabIndex:-1,role:"dialog",children:t.jsx("div",{className:`modal-dialog ${h}`,role:"document",children:t.jsxs("div",{className:"modal-content",children:[t.jsxs("div",{className:"modal-header",children:[t.jsx("button",{type:"button",className:"close",onClick:l,"aria-hidden":"true",children:t.jsx("span",{className:"pficon pficon-close"})}),t.jsx("h4",{className:"modal-title",children:a})]}),t.jsx("div",{className:"modal-body",children:o})]})})})},Ue=({variant:a,children:s,className:l=""})=>{const o={warning:"text-yellow-600",success:"text-green-600",error:"text-red-600"},c=l+" "+o[a]||"";return t.jsx("p",{className:c,children:s})},Je=({children:a,...s})=>t.jsx("table",{...s,children:a}),ze=({children:a,...s})=>t.jsx("tbody",{...s,children:a}),Ge=({children:a,...s})=>t.jsx("td",{...s,children:a}),He=({children:a,...s})=>t.jsx("th",{...s,children:a}),qe=({children:a,...s})=>t.jsx("thead",{...s,children:a}),Xe=({children:a,...s})=>t.jsx("tr",{...s,children:a}),G=({items:a,selected:s,title:l,isOpen:o,setIsOpen:c,onChange:h,className:m=""})=>{const C=g=>{c(!g)},b=g=>{c(!1),h(g)},w=g=>{const _=g.id===s;return t.jsx("li",{onClick:()=>b(g),className:_?"active":"",children:t.jsx("a",{href:"#",children:g.title})},g.id)},y=`btn btn-default dropdown-toggle ${m}`;return t.jsxs(t.Fragment,{children:[t.jsx("button",{style:{marginLeft:"0px",left:"-1px"},className:y,onClick:()=>C(o),"data-toggle":"dropdown",children:t.jsxs("div",{className:"flex items-center",children:[l&&t.jsx("div",{className:"mr-2",children:l}),t.jsx("span",{className:"caret"})]})}),t.jsx("ul",{className:"dropdown-menu",role:"menu",children:a.map(w)})]})},ie=({currentPage:a,total:s,onPageChange:l,pageSize:o})=>{const c=Math.ceil(s/o),h=()=>{a>1&&l(a-1)},m=()=>{a<c&&l(a+1)};return t.jsxs("div",{children:[t.jsx("span",{children:t.jsxs("span",{className:"pagination-pf-items-current",children:[a," - ",c]})}),t.jsxs("div",{className:"btn-group ml-2",children:[t.jsx("button",{type:"button",className:`btn btn-default ${a===1?"disabled":""}`,disabled:a===1,onClick:h,children:t.jsx("i",{className:"fa fa-angle-left"})}),t.jsx("button",{type:"button",className:`btn btn-default ${a===c?"disabled":""}`,disabled:a===c,onClick:m,children:t.jsx("i",{className:"fa fa-angle-right"})})]})]})},oe=[{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:s,onRefresh:l})=>{var h;const o=m=>{a(m.data)},c=(h=oe.find(m=>m.data===s))==null?void 0:h.id;return t.jsxs("div",{className:"flex",children:[t.jsx(z,{className:"m-0 h-[20px]",type:"default",onClick:l,children:t.jsx("i",{className:"fa fa-refresh"})}),t.jsx(G,{className:"m-0 h-[20px]",onChange:o,items:oe,selected:c})]})},Ze=({interval:a,page:s,total:l,onRefresh:o,onChangeInterval:c,onPageChange:h,pageSize:m})=>t.jsxs("div",{className:"flex justify-between bg-[#f5f5f5] border border-[#d1d1d1]",children:[t.jsx("div",{className:"m-[5px]",children:t.jsx(le,{value:a,onChange:c,onRefresh:o})}),t.jsx("div",{className:"m-[5px]",children:t.jsx(ie,{pageSize:m,currentPage:s,total:l,onPageChange:h})})]}),Qe=({id:a,label:s,isChecked:l=!1,onChange:o,className:c="checkbox"})=>t.jsx("div",{className:c,children:t.jsxs("label",{htmlFor:a,children:[t.jsx("input",{type:"checkbox",id:a,checked:l,onChange:o}),` ${s}`]})}),Ke=({placeholder:a="",rows:s=3,maxLength:l,value:o,onChange:c,isDisabled:h=!1,className:m=""})=>{const[C,b]=O.useState(o||""),w=o!==void 0?o:C,y=g=>{const _=g.target.value;c?c(_):b(_)};return t.jsx("textarea",{className:m,placeholder:a,rows:s,maxLength:l,value:w,onChange:y,disabled:h})},er=({variant:a,title:s,className:l})=>{const o=`alert alert-${a} ${l||""}`;return["success","info","warning","danger"].includes(a)||(console.warn(`Unsupported alert variant: "${a}". Defaulting to "info".`),a="info"),t.jsx("div",{className:o.trim(),role:"alert",children:s})};function rr(a,s){O.useEffect(()=>{if(!a)return;const l=setInterval(()=>{s()},a);return()=>clearInterval(l)},[a])}const tr=({children:a,onChange:s,items:l})=>{const[o,c]=O.useState(!1);return t.jsx("div",{className:`btn-group ${o?"open":""}`,children:t.jsxs(t.Fragment,{children:[a,t.jsx(G,{setIsOpen:c,isOpen:o,onChange:s,items:l})]})})},nr=()=>t.jsxs("div",{children:[t.jsx(se,{items:[{title:"Дополнения",active:!0},{title:"Название плагина",href:"#Название плагина"}]}),t.jsx(tr,{onChange:()=>{},items:[{id:0,title:"5 сек"},{id:1,title:"10 сек"},{id:2,title:"20 сек"}],children:t.jsx(z,{children:"Hello"})})]});v.Alert=er,v.Breadcrumb=se,v.Button=z,v.Checkbox=Qe,v.Dropdown=G,v.HelpText=Ue,v.Input=Le,v.Modal=Be,v.Pagination=ie,v.ReloadButton=le,v.SampleComp=nr,v.Tab=Me,v.Table=Je,v.TableToolbar=Ze,v.Tabs=Ve,v.Tbody=ze,v.Td=Ge,v.TextArea=Ke,v.Th=He,v.Thead=qe,v.ToolbarContainer=We,v.Tr=Xe,v.useIntervalLoader=rr,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.47",
3
+ "version": "0.0.48",
4
4
  "type": "module",
5
5
  "main": "./dist/ovirt-ui-toolkit.umd.js",
6
6
  "module": "./dist/ovirt-ui-toolkit.es.js",