ovirt-ui-toolkit 0.0.25 → 0.0.27
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.
|
@@ -13,15 +13,15 @@ var _e;
|
|
|
13
13
|
function hr() {
|
|
14
14
|
if (_e) return F;
|
|
15
15
|
_e = 1;
|
|
16
|
-
var a = Oe, s = Symbol.for("react.element"),
|
|
17
|
-
function
|
|
18
|
-
var
|
|
19
|
-
T !== void 0 && (
|
|
20
|
-
for (
|
|
21
|
-
if (_ && _.defaultProps) for (
|
|
22
|
-
return { $$typeof: s, type: _, key:
|
|
16
|
+
var a = Oe, s = Symbol.for("react.element"), l = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty, f = a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, p = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
17
|
+
function b(_, m, T) {
|
|
18
|
+
var j, h = {}, C = null, W = null;
|
|
19
|
+
T !== void 0 && (C = "" + T), m.key !== void 0 && (C = "" + m.key), m.ref !== void 0 && (W = m.ref);
|
|
20
|
+
for (j in m) o.call(m, j) && !p.hasOwnProperty(j) && (h[j] = m[j]);
|
|
21
|
+
if (_ && _.defaultProps) for (j in m = _.defaultProps, m) h[j] === void 0 && (h[j] = m[j]);
|
|
22
|
+
return { $$typeof: s, type: _, key: C, ref: W, props: h, _owner: f.current };
|
|
23
23
|
}
|
|
24
|
-
return F.Fragment =
|
|
24
|
+
return F.Fragment = l, F.jsx = b, F.jsxs = b, F;
|
|
25
25
|
}
|
|
26
26
|
var I = {};
|
|
27
27
|
/**
|
|
@@ -36,14 +36,14 @@ var I = {};
|
|
|
36
36
|
var Te;
|
|
37
37
|
function mr() {
|
|
38
38
|
return Te || (Te = 1, process.env.NODE_ENV !== "production" && function() {
|
|
39
|
-
var a = Oe, s = Symbol.for("react.element"),
|
|
40
|
-
function
|
|
39
|
+
var a = Oe, s = Symbol.for("react.element"), l = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), f = Symbol.for("react.strict_mode"), p = Symbol.for("react.profiler"), b = Symbol.for("react.provider"), _ = Symbol.for("react.context"), m = Symbol.for("react.forward_ref"), T = Symbol.for("react.suspense"), j = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), C = Symbol.for("react.lazy"), W = Symbol.for("react.offscreen"), Q = Symbol.iterator, Ne = "@@iterator";
|
|
40
|
+
function Pe(e) {
|
|
41
41
|
if (e === null || typeof e != "object")
|
|
42
42
|
return null;
|
|
43
|
-
var r = Q && e[Q] || e[
|
|
43
|
+
var r = Q && e[Q] || e[Ne];
|
|
44
44
|
return typeof r == "function" ? r : null;
|
|
45
45
|
}
|
|
46
|
-
var
|
|
46
|
+
var N = a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
47
47
|
function y(e) {
|
|
48
48
|
{
|
|
49
49
|
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), i = 1; i < r; i++)
|
|
@@ -53,7 +53,7 @@ function mr() {
|
|
|
53
53
|
}
|
|
54
54
|
function $e(e, r, t) {
|
|
55
55
|
{
|
|
56
|
-
var i =
|
|
56
|
+
var i = N.ReactDebugCurrentFrame, d = i.getStackAddendum();
|
|
57
57
|
d !== "" && (r += "%s", t = t.concat([d]));
|
|
58
58
|
var v = t.map(function(u) {
|
|
59
59
|
return String(u);
|
|
@@ -64,7 +64,7 @@ function mr() {
|
|
|
64
64
|
var De = !1, Ae = !1, Fe = !1, Ie = !1, We = !1, K;
|
|
65
65
|
K = Symbol.for("react.module.reference");
|
|
66
66
|
function Ye(e) {
|
|
67
|
-
return !!(typeof e == "string" || typeof e == "function" || e === o || e ===
|
|
67
|
+
return !!(typeof e == "string" || typeof e == "function" || e === o || e === p || We || e === f || e === T || e === j || Ie || e === W || De || Ae || Fe || typeof e == "object" && e !== null && (e.$$typeof === C || e.$$typeof === h || e.$$typeof === b || e.$$typeof === _ || e.$$typeof === m || // 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.
|
|
@@ -90,15 +90,15 @@ function mr() {
|
|
|
90
90
|
switch (e) {
|
|
91
91
|
case o:
|
|
92
92
|
return "Fragment";
|
|
93
|
-
case
|
|
93
|
+
case l:
|
|
94
94
|
return "Portal";
|
|
95
|
-
case
|
|
95
|
+
case p:
|
|
96
96
|
return "Profiler";
|
|
97
97
|
case f:
|
|
98
98
|
return "StrictMode";
|
|
99
99
|
case T:
|
|
100
100
|
return "Suspense";
|
|
101
|
-
case
|
|
101
|
+
case j:
|
|
102
102
|
return "SuspenseList";
|
|
103
103
|
}
|
|
104
104
|
if (typeof e == "object")
|
|
@@ -106,15 +106,15 @@ function mr() {
|
|
|
106
106
|
case _:
|
|
107
107
|
var r = e;
|
|
108
108
|
return ee(r) + ".Consumer";
|
|
109
|
-
case
|
|
109
|
+
case b:
|
|
110
110
|
var t = e;
|
|
111
111
|
return ee(t._context) + ".Provider";
|
|
112
112
|
case m:
|
|
113
113
|
return Ve(e, e.render, "ForwardRef");
|
|
114
|
-
case
|
|
114
|
+
case h:
|
|
115
115
|
var i = e.displayName || null;
|
|
116
116
|
return i !== null ? i : O(e.type) || "Memo";
|
|
117
|
-
case
|
|
117
|
+
case C: {
|
|
118
118
|
var d = e, v = d._payload, u = d._init;
|
|
119
119
|
try {
|
|
120
120
|
return O(u(v));
|
|
@@ -187,7 +187,7 @@ function mr() {
|
|
|
187
187
|
D < 0 && y("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
188
188
|
}
|
|
189
189
|
}
|
|
190
|
-
var B =
|
|
190
|
+
var B = N.ReactCurrentDispatcher, J;
|
|
191
191
|
function Y(e, r, t) {
|
|
192
192
|
{
|
|
193
193
|
if (J === void 0)
|
|
@@ -254,18 +254,18 @@ function mr() {
|
|
|
254
254
|
}
|
|
255
255
|
} catch (R) {
|
|
256
256
|
if (R && i && typeof R.stack == "string") {
|
|
257
|
-
for (var
|
|
257
|
+
for (var c = R.stack.split(`
|
|
258
258
|
`), E = i.stack.split(`
|
|
259
|
-
`), x =
|
|
259
|
+
`), x = c.length - 1, g = E.length - 1; x >= 1 && g >= 0 && c[x] !== E[g]; )
|
|
260
260
|
g--;
|
|
261
261
|
for (; x >= 1 && g >= 0; x--, g--)
|
|
262
|
-
if (
|
|
262
|
+
if (c[x] !== E[g]) {
|
|
263
263
|
if (x !== 1 || g !== 1)
|
|
264
264
|
do
|
|
265
|
-
if (x--, g--, g < 0 ||
|
|
266
|
-
var
|
|
267
|
-
` +
|
|
268
|
-
return e.displayName &&
|
|
265
|
+
if (x--, g--, g < 0 || c[x] !== E[g]) {
|
|
266
|
+
var w = `
|
|
267
|
+
` + c[x].replace(" at new ", " at ");
|
|
268
|
+
return e.displayName && w.includes("<anonymous>") && (w = w.replace("<anonymous>", e.displayName)), typeof e == "function" && V.set(e, w), w;
|
|
269
269
|
}
|
|
270
270
|
while (x >= 1 && g >= 0);
|
|
271
271
|
break;
|
|
@@ -294,16 +294,16 @@ function mr() {
|
|
|
294
294
|
switch (e) {
|
|
295
295
|
case T:
|
|
296
296
|
return Y("Suspense");
|
|
297
|
-
case
|
|
297
|
+
case j:
|
|
298
298
|
return Y("SuspenseList");
|
|
299
299
|
}
|
|
300
300
|
if (typeof e == "object")
|
|
301
301
|
switch (e.$$typeof) {
|
|
302
302
|
case m:
|
|
303
303
|
return Be(e.render);
|
|
304
|
-
case
|
|
304
|
+
case h:
|
|
305
305
|
return L(e.type, r, t);
|
|
306
|
-
case
|
|
306
|
+
case C: {
|
|
307
307
|
var i = e, d = i._payload, v = i._init;
|
|
308
308
|
try {
|
|
309
309
|
return L(v(d), r, t);
|
|
@@ -313,7 +313,7 @@ function mr() {
|
|
|
313
313
|
}
|
|
314
314
|
return "";
|
|
315
315
|
}
|
|
316
|
-
var A = Object.prototype.hasOwnProperty, ue = {}, fe =
|
|
316
|
+
var A = Object.prototype.hasOwnProperty, ue = {}, fe = N.ReactDebugCurrentFrame;
|
|
317
317
|
function M(e) {
|
|
318
318
|
if (e) {
|
|
319
319
|
var r = e._owner, t = L(e.type, e._source, r ? r.type : null);
|
|
@@ -326,17 +326,17 @@ function mr() {
|
|
|
326
326
|
var v = Function.call.bind(A);
|
|
327
327
|
for (var u in e)
|
|
328
328
|
if (v(e, u)) {
|
|
329
|
-
var
|
|
329
|
+
var c = void 0;
|
|
330
330
|
try {
|
|
331
331
|
if (typeof e[u] != "function") {
|
|
332
332
|
var E = Error((i || "React class") + ": " + t + " type `" + u + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[u] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
333
333
|
throw E.name = "Invariant Violation", E;
|
|
334
334
|
}
|
|
335
|
-
|
|
335
|
+
c = e[u](r, u, i, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
336
336
|
} catch (x) {
|
|
337
|
-
|
|
337
|
+
c = x;
|
|
338
338
|
}
|
|
339
|
-
|
|
339
|
+
c && !(c instanceof Error) && (M(d), y("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", i || "React class", t, u, typeof c), M(null)), c instanceof Error && !(c.message in ue) && (ue[c.message] = !0, M(d), y("Failed %s type: %s", t, c.message), M(null));
|
|
340
340
|
}
|
|
341
341
|
}
|
|
342
342
|
}
|
|
@@ -364,7 +364,7 @@ function mr() {
|
|
|
364
364
|
if (He(e))
|
|
365
365
|
return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ze(e)), de(e);
|
|
366
366
|
}
|
|
367
|
-
var pe =
|
|
367
|
+
var pe = N.ReactCurrentOwner, Xe = {
|
|
368
368
|
key: !0,
|
|
369
369
|
ref: !0,
|
|
370
370
|
__self: !0,
|
|
@@ -412,7 +412,7 @@ function mr() {
|
|
|
412
412
|
}
|
|
413
413
|
}
|
|
414
414
|
var tr = function(e, r, t, i, d, v, u) {
|
|
415
|
-
var
|
|
415
|
+
var c = {
|
|
416
416
|
// This tag allows us to uniquely identify this as a React Element
|
|
417
417
|
$$typeof: s,
|
|
418
418
|
// Built-in properties that belong on the element
|
|
@@ -423,27 +423,27 @@ function mr() {
|
|
|
423
423
|
// Record the component responsible for creating this element.
|
|
424
424
|
_owner: v
|
|
425
425
|
};
|
|
426
|
-
return
|
|
426
|
+
return c._store = {}, Object.defineProperty(c._store, "validated", {
|
|
427
427
|
configurable: !1,
|
|
428
428
|
enumerable: !1,
|
|
429
429
|
writable: !0,
|
|
430
430
|
value: !1
|
|
431
|
-
}), Object.defineProperty(
|
|
431
|
+
}), Object.defineProperty(c, "_self", {
|
|
432
432
|
configurable: !1,
|
|
433
433
|
enumerable: !1,
|
|
434
434
|
writable: !1,
|
|
435
435
|
value: i
|
|
436
|
-
}), Object.defineProperty(
|
|
436
|
+
}), Object.defineProperty(c, "_source", {
|
|
437
437
|
configurable: !1,
|
|
438
438
|
enumerable: !1,
|
|
439
439
|
writable: !1,
|
|
440
440
|
value: d
|
|
441
|
-
}), Object.freeze && (Object.freeze(
|
|
441
|
+
}), Object.freeze && (Object.freeze(c.props), Object.freeze(c)), c;
|
|
442
442
|
};
|
|
443
443
|
function nr(e, r, t, i, d) {
|
|
444
444
|
{
|
|
445
|
-
var v, u = {},
|
|
446
|
-
t !== void 0 && (ve(t),
|
|
445
|
+
var v, u = {}, c = null, E = null;
|
|
446
|
+
t !== void 0 && (ve(t), c = "" + t), Qe(r) && (ve(r.key), c = "" + r.key), Ze(r) && (E = r.ref, Ke(r, d));
|
|
447
447
|
for (v in r)
|
|
448
448
|
A.call(r, v) && !Xe.hasOwnProperty(v) && (u[v] = r[v]);
|
|
449
449
|
if (e && e.defaultProps) {
|
|
@@ -451,15 +451,15 @@ function mr() {
|
|
|
451
451
|
for (v in x)
|
|
452
452
|
u[v] === void 0 && (u[v] = x[v]);
|
|
453
453
|
}
|
|
454
|
-
if (
|
|
454
|
+
if (c || E) {
|
|
455
455
|
var g = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
456
|
-
|
|
456
|
+
c && er(u, g), E && rr(u, g);
|
|
457
457
|
}
|
|
458
|
-
return tr(e,
|
|
458
|
+
return tr(e, c, E, d, i, pe.current, u);
|
|
459
459
|
}
|
|
460
460
|
}
|
|
461
|
-
var z =
|
|
462
|
-
function
|
|
461
|
+
var z = N.ReactCurrentOwner, me = N.ReactDebugCurrentFrame;
|
|
462
|
+
function P(e) {
|
|
463
463
|
if (e) {
|
|
464
464
|
var r = e._owner, t = L(e.type, e._source, r ? r.type : null);
|
|
465
465
|
me.setExtraStackFrame(t);
|
|
@@ -509,7 +509,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
509
509
|
return;
|
|
510
510
|
ge[t] = !0;
|
|
511
511
|
var i = "";
|
|
512
|
-
e && e._owner && e._owner !== z.current && (i = " It was passed a child from " + O(e._owner.type) + "."),
|
|
512
|
+
e && e._owner && e._owner !== z.current && (i = " It was passed a child from " + O(e._owner.type) + "."), P(e), y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, i), P(null);
|
|
513
513
|
}
|
|
514
514
|
}
|
|
515
515
|
function ye(e, r) {
|
|
@@ -524,7 +524,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
524
524
|
else if (X(e))
|
|
525
525
|
e._store && (e._store.validated = !0);
|
|
526
526
|
else if (e) {
|
|
527
|
-
var d =
|
|
527
|
+
var d = Pe(e);
|
|
528
528
|
if (typeof d == "function" && d !== e.entries)
|
|
529
529
|
for (var v = d.call(e), u; !(u = v.next()).done; )
|
|
530
530
|
X(u.value) && je(u.value, r);
|
|
@@ -541,7 +541,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
541
541
|
t = r.propTypes;
|
|
542
542
|
else if (typeof r == "object" && (r.$$typeof === m || // Note: Memo only checks outer props here.
|
|
543
543
|
// Inner props are checked in the reconciler.
|
|
544
|
-
r.$$typeof ===
|
|
544
|
+
r.$$typeof === h))
|
|
545
545
|
t = r.propTypes;
|
|
546
546
|
else
|
|
547
547
|
return;
|
|
@@ -561,11 +561,11 @@ Check the top-level render call using <` + t + ">.");
|
|
|
561
561
|
for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
|
|
562
562
|
var i = r[t];
|
|
563
563
|
if (i !== "children" && i !== "key") {
|
|
564
|
-
|
|
564
|
+
P(e), y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", i), P(null);
|
|
565
565
|
break;
|
|
566
566
|
}
|
|
567
567
|
}
|
|
568
|
-
e.ref !== null && (
|
|
568
|
+
e.ref !== null && (P(e), y("Invalid attribute `ref` supplied to `React.Fragment`."), P(null));
|
|
569
569
|
}
|
|
570
570
|
}
|
|
571
571
|
var Ee = {};
|
|
@@ -573,28 +573,28 @@ Check the top-level render call using <` + t + ">.");
|
|
|
573
573
|
{
|
|
574
574
|
var u = Ye(e);
|
|
575
575
|
if (!u) {
|
|
576
|
-
var
|
|
577
|
-
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (
|
|
576
|
+
var c = "";
|
|
577
|
+
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (c += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
578
578
|
var E = ar();
|
|
579
|
-
E ?
|
|
579
|
+
E ? c += E : c += xe();
|
|
580
580
|
var x;
|
|
581
|
-
e === null ? x = "null" : G(e) ? x = "array" : e !== void 0 && e.$$typeof === s ? (x = "<" + (O(e.type) || "Unknown") + " />",
|
|
581
|
+
e === null ? x = "null" : G(e) ? x = "array" : e !== void 0 && e.$$typeof === s ? (x = "<" + (O(e.type) || "Unknown") + " />", c = " Did you accidentally export a JSX literal instead of a component?") : x = typeof e, y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", x, c);
|
|
582
582
|
}
|
|
583
583
|
var g = nr(e, r, t, d, v);
|
|
584
584
|
if (g == null)
|
|
585
585
|
return g;
|
|
586
586
|
if (u) {
|
|
587
|
-
var
|
|
588
|
-
if (
|
|
587
|
+
var w = r.children;
|
|
588
|
+
if (w !== void 0)
|
|
589
589
|
if (i)
|
|
590
|
-
if (G(
|
|
591
|
-
for (var $ = 0; $ <
|
|
592
|
-
ye(
|
|
593
|
-
Object.freeze && Object.freeze(
|
|
590
|
+
if (G(w)) {
|
|
591
|
+
for (var $ = 0; $ < w.length; $++)
|
|
592
|
+
ye(w[$], e);
|
|
593
|
+
Object.freeze && Object.freeze(w);
|
|
594
594
|
} else
|
|
595
595
|
y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
596
596
|
else
|
|
597
|
-
ye(
|
|
597
|
+
ye(w, e);
|
|
598
598
|
}
|
|
599
599
|
if (A.call(r, "key")) {
|
|
600
600
|
var k = O(e), R = Object.keys(r).filter(function(vr) {
|
|
@@ -628,53 +628,53 @@ function xr() {
|
|
|
628
628
|
return Ce || (Ce = 1, process.env.NODE_ENV === "production" ? U.exports = hr() : U.exports = mr()), U.exports;
|
|
629
629
|
}
|
|
630
630
|
var n = xr();
|
|
631
|
-
const _r = () => /* @__PURE__ */ n.jsx("div", { className: "toolbar-pf" }), gr = ({ items: a }) => /* @__PURE__ */ n.jsx("ol", { className:
|
|
631
|
+
const _r = () => /* @__PURE__ */ n.jsx("div", { className: "toolbar-pf" }), gr = ({ items: a, className: s }) => /* @__PURE__ */ n.jsx("ol", { className: `breadcrumb ${s || ""}`.trim(), children: a.map((l, o) => /* @__PURE__ */ n.jsx("li", { className: l.active ? "active" : "", children: l.active ? l.title : /* @__PURE__ */ n.jsx("a", { href: l.href, children: l.title }) }, o)) }), ke = ({
|
|
632
632
|
type: a = "default",
|
|
633
633
|
title: s,
|
|
634
|
-
size:
|
|
634
|
+
size: l,
|
|
635
635
|
label: o,
|
|
636
636
|
onClick: f,
|
|
637
|
-
isDisabled:
|
|
638
|
-
children:
|
|
637
|
+
isDisabled: p = !1,
|
|
638
|
+
children: b,
|
|
639
639
|
className: _ = ""
|
|
640
640
|
}) => {
|
|
641
|
-
const m = `btn-${a}`, T =
|
|
641
|
+
const m = `btn-${a}`, T = l ? `btn-${l}` : "", h = `${`btn ${m} ${T}`.trim()} ${_}`.trim();
|
|
642
642
|
return /* @__PURE__ */ n.jsx(
|
|
643
643
|
"button",
|
|
644
644
|
{
|
|
645
|
-
className:
|
|
645
|
+
className: h,
|
|
646
646
|
type: "button",
|
|
647
647
|
onClick: f,
|
|
648
|
-
disabled:
|
|
648
|
+
disabled: p,
|
|
649
649
|
children: /* @__PURE__ */ n.jsxs("div", { className: "flex items-center", children: [
|
|
650
|
-
|
|
650
|
+
b || o,
|
|
651
651
|
" ",
|
|
652
652
|
s
|
|
653
653
|
] })
|
|
654
654
|
}
|
|
655
655
|
);
|
|
656
|
-
}, Tr = ({ children: a, eventKey: s, active:
|
|
656
|
+
}, Tr = ({ children: a, eventKey: s, active: l }) => /* @__PURE__ */ n.jsx(
|
|
657
657
|
"div",
|
|
658
658
|
{
|
|
659
|
-
className: `tab-pane ${
|
|
659
|
+
className: `tab-pane ${l ? "active" : ""}`,
|
|
660
660
|
id: `${s}-panel`,
|
|
661
661
|
role: "tabpanel",
|
|
662
662
|
"aria-labelledby": `${s}-tab`,
|
|
663
663
|
children: a
|
|
664
664
|
},
|
|
665
665
|
s
|
|
666
|
-
), Cr = ({ activeKey: a, onSelect: s, children:
|
|
667
|
-
/* @__PURE__ */ n.jsx("ul", { className: "nav nav-tabs", role: "tablist", children:
|
|
666
|
+
), Cr = ({ activeKey: a, onSelect: s, children: l }) => /* @__PURE__ */ n.jsxs("div", { className: "tabs-container", children: [
|
|
667
|
+
/* @__PURE__ */ n.jsx("ul", { className: "nav nav-tabs", role: "tablist", children: l.map(({ props: { eventKey: o, title: f } }) => /* @__PURE__ */ n.jsx("li", { className: a === o ? "active" : "", children: /* @__PURE__ */ n.jsx(
|
|
668
668
|
"a",
|
|
669
669
|
{
|
|
670
670
|
href: `#${o}`,
|
|
671
|
-
onClick: (
|
|
672
|
-
|
|
671
|
+
onClick: (p) => {
|
|
672
|
+
p.preventDefault(), s(o);
|
|
673
673
|
},
|
|
674
674
|
children: f
|
|
675
675
|
}
|
|
676
676
|
) }, o)) }),
|
|
677
|
-
/* @__PURE__ */ n.jsx("div", { className: "tabs-container", children: /* @__PURE__ */ n.jsx("div", { className: "tab-content pf-c-tab-content", children:
|
|
677
|
+
/* @__PURE__ */ n.jsx("div", { className: "tabs-container", children: /* @__PURE__ */ n.jsx("div", { className: "tab-content pf-c-tab-content", children: l.map(({ props: { eventKey: o, children: f } }) => /* @__PURE__ */ n.jsx(
|
|
678
678
|
"div",
|
|
679
679
|
{
|
|
680
680
|
className: `tab-pane ${a === o ? "active" : ""}`,
|
|
@@ -689,28 +689,28 @@ const _r = () => /* @__PURE__ */ n.jsx("div", { className: "toolbar-pf" }), gr =
|
|
|
689
689
|
({
|
|
690
690
|
id: a,
|
|
691
691
|
type: s,
|
|
692
|
-
placeholder:
|
|
692
|
+
placeholder: l = "",
|
|
693
693
|
value: o,
|
|
694
694
|
onChange: f,
|
|
695
|
-
className:
|
|
696
|
-
},
|
|
695
|
+
className: p = "form-control"
|
|
696
|
+
}, b) => /* @__PURE__ */ n.jsx(
|
|
697
697
|
"input",
|
|
698
698
|
{
|
|
699
699
|
type: s,
|
|
700
700
|
id: a,
|
|
701
|
-
className:
|
|
702
|
-
placeholder:
|
|
701
|
+
className: p,
|
|
702
|
+
placeholder: l,
|
|
703
703
|
value: o,
|
|
704
704
|
onChange: f,
|
|
705
|
-
ref:
|
|
705
|
+
ref: b
|
|
706
706
|
}
|
|
707
707
|
)
|
|
708
|
-
), Or = ({ title: a, isOpen: s, onClose:
|
|
708
|
+
), Or = ({ title: a, isOpen: s, onClose: l, children: o, size: f }) => {
|
|
709
709
|
if (!s) return null;
|
|
710
|
-
const
|
|
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 ${
|
|
710
|
+
const p = f ? `modal-${f}` : "";
|
|
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 ${p}`, role: "document", children: /* @__PURE__ */ n.jsxs("div", { className: "modal-content", children: [
|
|
712
712
|
/* @__PURE__ */ n.jsxs("div", { className: "modal-header", children: [
|
|
713
|
-
/* @__PURE__ */ n.jsx("button", { type: "button", className: "close", onClick:
|
|
713
|
+
/* @__PURE__ */ n.jsx("button", { type: "button", className: "close", onClick: l, "aria-hidden": "true", children: /* @__PURE__ */ n.jsx("span", { className: "pficon pficon-close" }) }),
|
|
714
714
|
/* @__PURE__ */ n.jsx("h4", { className: "modal-title", children: a })
|
|
715
715
|
] }),
|
|
716
716
|
/* @__PURE__ */ n.jsx("div", { className: "modal-body", children: o })
|
|
@@ -722,42 +722,43 @@ const _r = () => /* @__PURE__ */ n.jsx("div", { className: "toolbar-pf" }), gr =
|
|
|
722
722
|
error: "text-red-600"
|
|
723
723
|
}[a] || "";
|
|
724
724
|
return /* @__PURE__ */ n.jsx("p", { className: o, children: s });
|
|
725
|
-
}, kr = ({ children: a, ...s }) => /* @__PURE__ */ n.jsx("table", { ...s, children: a }),
|
|
726
|
-
const [
|
|
727
|
-
b((
|
|
728
|
-
},
|
|
729
|
-
b(!1), o(
|
|
730
|
-
},
|
|
731
|
-
const
|
|
725
|
+
}, kr = ({ children: a, ...s }) => /* @__PURE__ */ n.jsx("table", { ...s, children: a }), Nr = ({ children: a, ...s }) => /* @__PURE__ */ n.jsx("tbody", { ...s, children: a }), Pr = ({ 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 }), Ar = ({ children: a, ...s }) => /* @__PURE__ */ n.jsx("tr", { ...s, children: a }), jr = ({ items: a, selected: s, title: l, onChange: o, isDisabled: f }) => {
|
|
726
|
+
const [p, b] = Se(!1), _ = () => {
|
|
727
|
+
b((h) => !h);
|
|
728
|
+
}, m = (h) => {
|
|
729
|
+
b(!1), o(h);
|
|
730
|
+
}, T = (h) => {
|
|
731
|
+
const C = h.id === s;
|
|
732
732
|
return /* @__PURE__ */ n.jsx(
|
|
733
733
|
"li",
|
|
734
734
|
{
|
|
735
|
-
onClick: () =>
|
|
736
|
-
className:
|
|
737
|
-
children: /* @__PURE__ */ n.jsx("a", { href: "#", children:
|
|
735
|
+
onClick: () => m(h),
|
|
736
|
+
className: C ? "active" : "",
|
|
737
|
+
children: /* @__PURE__ */ n.jsx("a", { href: "#", children: h.title })
|
|
738
738
|
},
|
|
739
|
-
|
|
739
|
+
h.id
|
|
740
740
|
);
|
|
741
|
-
},
|
|
742
|
-
return /* @__PURE__ */ n.jsxs("div", { className:
|
|
741
|
+
}, j = p ? "dropdown open" : "dropdown";
|
|
742
|
+
return /* @__PURE__ */ n.jsxs("div", { className: j, style: { display: "inline-block" }, children: [
|
|
743
743
|
/* @__PURE__ */ n.jsxs(
|
|
744
744
|
"button",
|
|
745
745
|
{
|
|
746
|
+
disabled: f,
|
|
746
747
|
className: "btn btn-default dropdown-toggle",
|
|
747
|
-
onClick:
|
|
748
|
+
onClick: _,
|
|
748
749
|
children: [
|
|
749
|
-
|
|
750
|
+
l && /* @__PURE__ */ n.jsx("div", { className: "mr-2", children: l }),
|
|
750
751
|
/* @__PURE__ */ n.jsx("span", { className: "caret" })
|
|
751
752
|
]
|
|
752
753
|
}
|
|
753
754
|
),
|
|
754
|
-
|
|
755
|
+
p && /* @__PURE__ */ n.jsx("ul", { className: "dropdown-menu", children: a.map(T) })
|
|
755
756
|
] });
|
|
756
|
-
}, yr = ({ currentPage: a, total: s, onPageChange:
|
|
757
|
-
const f = Math.ceil(s / o),
|
|
758
|
-
a > 1 &&
|
|
759
|
-
},
|
|
760
|
-
a < f &&
|
|
757
|
+
}, yr = ({ currentPage: a, total: s, onPageChange: l, pageSize: o }) => {
|
|
758
|
+
const f = Math.ceil(s / o), p = () => {
|
|
759
|
+
a > 1 && l(a - 1);
|
|
760
|
+
}, b = () => {
|
|
761
|
+
a < f && l(a + 1);
|
|
761
762
|
};
|
|
762
763
|
return /* @__PURE__ */ n.jsxs("div", { children: [
|
|
763
764
|
/* @__PURE__ */ n.jsx("span", { children: /* @__PURE__ */ n.jsxs("span", { className: "pagination-pf-items-current", children: [
|
|
@@ -772,7 +773,7 @@ const _r = () => /* @__PURE__ */ n.jsx("div", { className: "toolbar-pf" }), gr =
|
|
|
772
773
|
type: "button",
|
|
773
774
|
className: `btn btn-default ${a === 1 ? "disabled" : ""}`,
|
|
774
775
|
disabled: a === 1,
|
|
775
|
-
onClick:
|
|
776
|
+
onClick: p,
|
|
776
777
|
children: /* @__PURE__ */ n.jsx("i", { className: "fa fa-angle-left" })
|
|
777
778
|
}
|
|
778
779
|
),
|
|
@@ -782,7 +783,7 @@ const _r = () => /* @__PURE__ */ n.jsx("div", { className: "toolbar-pf" }), gr =
|
|
|
782
783
|
type: "button",
|
|
783
784
|
className: `btn btn-default ${a === f ? "disabled" : ""}`,
|
|
784
785
|
disabled: a === f,
|
|
785
|
-
onClick:
|
|
786
|
+
onClick: b,
|
|
786
787
|
children: /* @__PURE__ */ n.jsx("i", { className: "fa fa-angle-right" })
|
|
787
788
|
}
|
|
788
789
|
)
|
|
@@ -794,23 +795,23 @@ const _r = () => /* @__PURE__ */ n.jsx("div", { className: "toolbar-pf" }), gr =
|
|
|
794
795
|
{ id: 3, title: "20 сек", data: 2e4 },
|
|
795
796
|
{ id: 4, title: "30 сек", data: 3e4 },
|
|
796
797
|
{ id: 5, title: "60 сек", data: 6e4 }
|
|
797
|
-
], Er = ({ onChange: a, value: s, onRefresh:
|
|
798
|
-
var
|
|
799
|
-
const o = (
|
|
800
|
-
a(
|
|
801
|
-
}, f = (
|
|
798
|
+
], Er = ({ onChange: a, value: s, onRefresh: l }) => {
|
|
799
|
+
var p;
|
|
800
|
+
const o = (b) => {
|
|
801
|
+
a(b.data);
|
|
802
|
+
}, f = (p = we.find((b) => b.data === s)) == null ? void 0 : p.id;
|
|
802
803
|
return /* @__PURE__ */ n.jsxs("div", { className: "flex", children: [
|
|
803
|
-
/* @__PURE__ */ n.jsx(ke, { type: "default", onClick:
|
|
804
|
+
/* @__PURE__ */ n.jsx(ke, { type: "default", onClick: l, children: /* @__PURE__ */ n.jsx("i", { className: "fa fa-refresh" }) }),
|
|
804
805
|
/* @__PURE__ */ n.jsx(jr, { onChange: o, items: we, selected: f })
|
|
805
806
|
] });
|
|
806
807
|
}, Fr = ({
|
|
807
808
|
interval: a,
|
|
808
809
|
page: s,
|
|
809
|
-
total:
|
|
810
|
+
total: l,
|
|
810
811
|
onRefresh: o,
|
|
811
812
|
onChangeInterval: f,
|
|
812
|
-
onPageChange:
|
|
813
|
-
pageSize:
|
|
813
|
+
onPageChange: p,
|
|
814
|
+
pageSize: b
|
|
814
815
|
}) => /* @__PURE__ */ n.jsxs("div", { className: "flex justify-between bg-[#f5f5f5] border border-[#d1d1d1]", children: [
|
|
815
816
|
/* @__PURE__ */ n.jsx("div", { className: "m-[5px]", children: /* @__PURE__ */ n.jsx(
|
|
816
817
|
Er,
|
|
@@ -823,16 +824,16 @@ const _r = () => /* @__PURE__ */ n.jsx("div", { className: "toolbar-pf" }), gr =
|
|
|
823
824
|
/* @__PURE__ */ n.jsx("div", { className: "m-[5px]", children: /* @__PURE__ */ n.jsx(
|
|
824
825
|
yr,
|
|
825
826
|
{
|
|
826
|
-
pageSize:
|
|
827
|
+
pageSize: b,
|
|
827
828
|
currentPage: s,
|
|
828
|
-
total:
|
|
829
|
-
onPageChange:
|
|
829
|
+
total: l,
|
|
830
|
+
onPageChange: p
|
|
830
831
|
}
|
|
831
832
|
) })
|
|
832
833
|
] }), Ir = ({
|
|
833
834
|
id: a,
|
|
834
835
|
label: s,
|
|
835
|
-
isChecked:
|
|
836
|
+
isChecked: l = !1,
|
|
836
837
|
onChange: o,
|
|
837
838
|
className: f = "checkbox"
|
|
838
839
|
}) => /* @__PURE__ */ n.jsx("div", { className: f, children: /* @__PURE__ */ n.jsxs("label", { htmlFor: a, children: [
|
|
@@ -841,7 +842,7 @@ const _r = () => /* @__PURE__ */ n.jsx("div", { className: "toolbar-pf" }), gr =
|
|
|
841
842
|
{
|
|
842
843
|
type: "checkbox",
|
|
843
844
|
id: a,
|
|
844
|
-
checked:
|
|
845
|
+
checked: l,
|
|
845
846
|
onChange: o
|
|
846
847
|
}
|
|
847
848
|
),
|
|
@@ -849,40 +850,40 @@ const _r = () => /* @__PURE__ */ n.jsx("div", { className: "toolbar-pf" }), gr =
|
|
|
849
850
|
] }) }), Wr = ({
|
|
850
851
|
placeholder: a = "",
|
|
851
852
|
rows: s = 3,
|
|
852
|
-
maxLength:
|
|
853
|
+
maxLength: l,
|
|
853
854
|
value: o,
|
|
854
855
|
onChange: f,
|
|
855
|
-
isDisabled:
|
|
856
|
-
className:
|
|
856
|
+
isDisabled: p = !1,
|
|
857
|
+
className: b = ""
|
|
857
858
|
}) => {
|
|
858
|
-
const [_, m] = Se(o || ""), T = o !== void 0 ? o : _,
|
|
859
|
-
const
|
|
860
|
-
f ? f(
|
|
859
|
+
const [_, m] = Se(o || ""), T = o !== void 0 ? o : _, j = (h) => {
|
|
860
|
+
const C = h.target.value;
|
|
861
|
+
f ? f(C) : m(C);
|
|
861
862
|
};
|
|
862
863
|
return /* @__PURE__ */ n.jsx(
|
|
863
864
|
"textarea",
|
|
864
865
|
{
|
|
865
|
-
className:
|
|
866
|
+
className: b,
|
|
866
867
|
placeholder: a,
|
|
867
868
|
rows: s,
|
|
868
|
-
maxLength:
|
|
869
|
+
maxLength: l,
|
|
869
870
|
value: T,
|
|
870
|
-
onChange:
|
|
871
|
-
disabled:
|
|
871
|
+
onChange: j,
|
|
872
|
+
disabled: p
|
|
872
873
|
}
|
|
873
874
|
);
|
|
874
|
-
}, Yr = ({ variant: a, title: s, className:
|
|
875
|
-
const o = `alert alert-${a} ${
|
|
875
|
+
}, Yr = ({ variant: a, title: s, className: l }) => {
|
|
876
|
+
const o = `alert alert-${a} ${l || ""}`;
|
|
876
877
|
return ["success", "info", "warning", "danger"].includes(a) || (console.warn(`Unsupported alert variant: "${a}". Defaulting to "info".`), a = "info"), /* @__PURE__ */ n.jsx("div", { className: o.trim(), role: "alert", children: s });
|
|
877
878
|
};
|
|
878
879
|
function Vr(a, s) {
|
|
879
880
|
br(() => {
|
|
880
881
|
if (!a)
|
|
881
882
|
return;
|
|
882
|
-
const
|
|
883
|
+
const l = setInterval(() => {
|
|
883
884
|
s();
|
|
884
885
|
}, a);
|
|
885
|
-
return () => clearInterval(
|
|
886
|
+
return () => clearInterval(l);
|
|
886
887
|
}, [a]);
|
|
887
888
|
}
|
|
888
889
|
const Lr = () => /* @__PURE__ */ n.jsxs("div", { children: [
|
|
@@ -913,8 +914,8 @@ export {
|
|
|
913
914
|
kr as Table,
|
|
914
915
|
Fr as TableToolbar,
|
|
915
916
|
Cr as Tabs,
|
|
916
|
-
|
|
917
|
-
|
|
917
|
+
Nr as Tbody,
|
|
918
|
+
Pr as Td,
|
|
918
919
|
Wr as TextArea,
|
|
919
920
|
$r as Th,
|
|
920
921
|
Dr as Thead,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(v,
|
|
1
|
+
(function(v,O){typeof exports=="object"&&typeof module<"u"?O(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],O):(v=typeof globalThis<"u"?globalThis:v||self,O(v["ovirt-ui-toolkit"]={},v.React))})(this,function(v,O){"use strict";var M={exports:{}},F={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.production.min.js
|
|
4
4
|
*
|
|
@@ -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 F;re=1;var a=
|
|
9
|
+
*/var re;function Ie(){if(re)return F;re=1;var a=O,i=Symbol.for("react.element"),l=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,f=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,b={key:!0,ref:!0,__self:!0,__source:!0};function h(T,g,C){var x,m={},w=null,V=null;C!==void 0&&(w=""+C),g.key!==void 0&&(w=""+g.key),g.ref!==void 0&&(V=g.ref);for(x in g)o.call(g,x)&&!b.hasOwnProperty(x)&&(m[x]=g[x]);if(T&&T.defaultProps)for(x in g=T.defaultProps,g)m[x]===void 0&&(m[x]=g[x]);return{$$typeof:i,type:T,key:w,ref:V,props:m,_owner:f.current}}return F.Fragment=l,F.jsx=h,F.jsxs=h,F}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 Fe(){return te||(te=1,process.env.NODE_ENV!=="production"&&function(){var a=
|
|
18
|
-
`+q+e}}var z=!1,U;{var pr=typeof WeakMap=="function"?WeakMap:Map;U=new pr}function je(e,r){if(!e||z)return"";{var t=U.get(e);if(t!==void 0)return t}var s;z=!0;var d=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var p;p=H.current,H.current=null,dr();try{if(r){var u=function(){throw Error()};if(Object.defineProperty(u.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(u,[])}catch(_){s=_}Reflect.construct(e,[],u)}else{try{u.call()}catch(_){s=_}e.call(u.prototype)}}else{try{throw Error()}catch(_){s=_}e()}}catch(_){if(_&&s&&typeof _.stack=="string"){for(var
|
|
17
|
+
*/var te;function Fe(){return te||(te=1,process.env.NODE_ENV!=="production"&&function(){var a=O,i=Symbol.for("react.element"),l=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),f=Symbol.for("react.strict_mode"),b=Symbol.for("react.profiler"),h=Symbol.for("react.provider"),T=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),x=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),V=Symbol.for("react.offscreen"),ce=Symbol.iterator,tr="@@iterator";function nr(e){if(e===null||typeof e!="object")return null;var r=ce&&e[ce]||e[tr];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,t=new Array(r>1?r-1:0),s=1;s<r;s++)t[s-1]=arguments[s];ar("error",e,t)}}function ar(e,r,t){{var s=D.ReactDebugCurrentFrame,d=s.getStackAddendum();d!==""&&(r+="%s",t=t.concat([d]));var p=t.map(function(u){return String(u)});p.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,p)}}var ir=!1,sr=!1,or=!1,lr=!1,cr=!1,ue;ue=Symbol.for("react.module.reference");function ur(e){return!!(typeof e=="string"||typeof e=="function"||e===o||e===b||cr||e===f||e===C||e===x||lr||e===V||ir||sr||or||typeof e=="object"&&e!==null&&(e.$$typeof===w||e.$$typeof===m||e.$$typeof===h||e.$$typeof===T||e.$$typeof===g||e.$$typeof===ue||e.getModuleId!==void 0))}function fr(e,r,t){var s=e.displayName;if(s)return s;var d=r.displayName||r.name||"";return d!==""?t+"("+d+")":t}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 b:return"Profiler";case f:return"StrictMode";case C:return"Suspense";case x:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case T:var r=e;return fe(r)+".Consumer";case h:var t=e;return fe(t._context)+".Provider";case g:return fr(e,e.render,"ForwardRef");case m:var s=e.displayName||null;return s!==null?s:k(e.type)||"Memo";case w:{var d=e,p=d._payload,u=d._init;try{return k(u(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 dr(){{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 vr(){{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&&R("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var H=D.ReactCurrentDispatcher,q;function L(e,r,t){{if(q===void 0)try{throw Error()}catch(d){var s=d.stack.trim().match(/\n( *(at )?)/);q=s&&s[1]||""}return`
|
|
18
|
+
`+q+e}}var z=!1,U;{var pr=typeof WeakMap=="function"?WeakMap:Map;U=new pr}function je(e,r){if(!e||z)return"";{var t=U.get(e);if(t!==void 0)return t}var s;z=!0;var d=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var p;p=H.current,H.current=null,dr();try{if(r){var u=function(){throw Error()};if(Object.defineProperty(u.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(u,[])}catch(_){s=_}Reflect.construct(e,[],u)}else{try{u.call()}catch(_){s=_}e.call(u.prototype)}}else{try{throw Error()}catch(_){s=_}e()}}catch(_){if(_&&s&&typeof _.stack=="string"){for(var c=_.stack.split(`
|
|
19
19
|
`),E=s.stack.split(`
|
|
20
|
-
`),y=
|
|
21
|
-
`+
|
|
20
|
+
`),y=c.length-1,j=E.length-1;y>=1&&j>=0&&c[y]!==E[j];)j--;for(;y>=1&&j>=0;y--,j--)if(c[y]!==E[j]){if(y!==1||j!==1)do if(y--,j--,j<0||c[y]!==E[j]){var S=`
|
|
21
|
+
`+c[y].replace(" at new "," at ");return e.displayName&&S.includes("<anonymous>")&&(S=S.replace("<anonymous>",e.displayName)),typeof e=="function"&&U.set(e,S),S}while(y>=1&&j>=0);break}}}finally{z=!1,H.current=p,vr(),Error.prepareStackTrace=d}var I=e?e.displayName||e.name:"",N=I?L(I):"";return typeof e=="function"&&U.set(e,N),N}function br(e,r,t){return je(e,!1)}function hr(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function B(e,r,t){if(e==null)return"";if(typeof e=="function")return je(e,hr(e));if(typeof e=="string")return L(e);switch(e){case C:return L("Suspense");case x:return L("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case g:return br(e.render);case m:return B(e.type,r,t);case w:{var s=e,d=s._payload,p=s._init;try{return B(p(d),r,t)}catch{}}}return""}var Y=Object.prototype.hasOwnProperty,xe={},Re=D.ReactDebugCurrentFrame;function J(e){if(e){var r=e._owner,t=B(e.type,e._source,r?r.type:null);Re.setExtraStackFrame(t)}else Re.setExtraStackFrame(null)}function mr(e,r,t,s,d){{var p=Function.call.bind(Y);for(var u in e)if(p(e,u)){var c=void 0;try{if(typeof e[u]!="function"){var E=Error((s||"React class")+": "+t+" type `"+u+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[u]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw E.name="Invariant Violation",E}c=e[u](r,u,s,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(y){c=y}c&&!(c 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).",s||"React class",t,u,typeof c),J(null)),c instanceof Error&&!(c.message in xe)&&(xe[c.message]=!0,J(d),R("Failed %s type: %s",t,c.message),J(null))}}}var gr=Array.isArray;function X(e){return gr(e)}function yr(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function jr(e){try{return Ee(e),!1}catch{return!0}}function Ee(e){return""+e}function _e(e){if(jr(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,xr={key:!0,ref:!0,__self:!0,__source:!0},Ce,we;function Rr(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 Er(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 _r(e,r){typeof e.ref=="string"&&Te.current}function Tr(e,r){{var t=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))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}}function Cr(e,r){{var t=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))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}}var wr=function(e,r,t,s,d,p,u){var c={$$typeof:i,type:e,key:r,ref:t,props:u,_owner:p};return c._store={},Object.defineProperty(c._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(c,"_self",{configurable:!1,enumerable:!1,writable:!1,value:s}),Object.defineProperty(c,"_source",{configurable:!1,enumerable:!1,writable:!1,value:d}),Object.freeze&&(Object.freeze(c.props),Object.freeze(c)),c};function Sr(e,r,t,s,d){{var p,u={},c=null,E=null;t!==void 0&&(_e(t),c=""+t),Er(r)&&(_e(r.key),c=""+r.key),Rr(r)&&(E=r.ref,_r(r,d));for(p in r)Y.call(r,p)&&!xr.hasOwnProperty(p)&&(u[p]=r[p]);if(e&&e.defaultProps){var y=e.defaultProps;for(p in y)u[p]===void 0&&(u[p]=y[p])}if(c||E){var j=typeof e=="function"?e.displayName||e.name||"Unknown":e;c&&Tr(u,j),E&&Cr(u,j)}return wr(e,c,E,d,s,Te.current,u)}}var Z=D.ReactCurrentOwner,Se=D.ReactDebugCurrentFrame;function A(e){if(e){var r=e._owner,t=B(e.type,e._source,r?r.type:null);Se.setExtraStackFrame(t)}else Se.setExtraStackFrame(null)}var Q;Q=!1;function K(e){return typeof e=="object"&&e!==null&&e.$$typeof===i}function Oe(){{if(Z.current){var e=k(Z.current.type);if(e)return`
|
|
22
22
|
|
|
23
23
|
Check the render method of \``+e+"`."}return""}}function Or(e){return""}var ke={};function kr(e){{var r=Oe();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=kr(r);if(ke[t])return;ke[t]=!0;var s="";e&&e._owner&&e._owner!==Z.current&&(s=" 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.',t,s),A(null)}}function Ne(e,r){{if(typeof e!="object")return;if(X(e))for(var t=0;t<e.length;t++){var s=e[t];K(s)&&Pe(s,r)}else if(K(e))e._store&&(e._store.validated=!0);else if(e){var d=nr(e);if(typeof d=="function"&&d!==e.entries)for(var p=d.call(e),u;!(u=p.next()).done;)K(u.value)&&Pe(u.value,r)}}}function Pr(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===g||r.$$typeof===
|
|
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=kr(r);if(ke[t])return;ke[t]=!0;var s="";e&&e._owner&&e._owner!==Z.current&&(s=" 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.',t,s),A(null)}}function Ne(e,r){{if(typeof e!="object")return;if(X(e))for(var t=0;t<e.length;t++){var s=e[t];K(s)&&Pe(s,r)}else if(K(e))e._store&&(e._store.validated=!0);else if(e){var d=nr(e);if(typeof d=="function"&&d!==e.entries)for(var p=d.call(e),u;!(u=p.next()).done;)K(u.value)&&Pe(u.value,r)}}}function Pr(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===g||r.$$typeof===m))t=r.propTypes;else return;if(t){var s=k(r);mr(t,e.props,"prop",s,e)}else if(r.PropTypes!==void 0&&!Q){Q=!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 Nr(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var s=r[t];if(s!=="children"&&s!=="key"){A(e),R("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",s),A(null);break}}e.ref!==null&&(A(e),R("Invalid attribute `ref` supplied to `React.Fragment`."),A(null))}}var De={};function Ae(e,r,t,s,d,p){{var u=ur(e);if(!u){var c="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(c+=" 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=Or();E?c+=E:c+=Oe();var y;e===null?y="null":X(e)?y="array":e!==void 0&&e.$$typeof===i?(y="<"+(k(e.type)||"Unknown")+" />",c=" Did you accidentally export a JSX literal instead of a component?"):y=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",y,c)}var j=Sr(e,r,t,d,p);if(j==null)return j;if(u){var S=r.children;if(S!==void 0)if(s)if(X(S)){for(var I=0;I<S.length;I++)Ne(S[I],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 Ne(S,e)}if(Y.call(r,"key")){var N=k(e),_=Object.keys(r).filter(function(Wr){return Wr!=="key"}),ee=_.length>0?"{key: someKey, "+_.join(": ..., ")+": ...}":"{key: someKey}";if(!De[N+ee]){var $r=_.length>0?"{"+_.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} />`,ee,N,$r,N),De[N+ee]=!0}}return e===o?Nr(j):Pr(j),j}}function Dr(e,r,t){return Ae(e,r,t,!0)}function Ar(e,r,t){return Ae(e,r,t,!1)}var Ir=Ar,Fr=Dr;$.Fragment=o,$.jsx=Ir,$.jsxs=Fr}()),$}var ne;function $e(){return ne||(ne=1,process.env.NODE_ENV==="production"?M.exports=Ie():M.exports=Fe()),M.exports}var n=$e();const We=()=>n.jsx("div",{className:"toolbar-pf"}),ae=({items:a})=>n.jsx("ol",{className
|
|
30
|
+
<%s key={someKey} {...props} />`,ee,N,$r,N),De[N+ee]=!0}}return e===o?Nr(j):Pr(j),j}}function Dr(e,r,t){return Ae(e,r,t,!0)}function Ar(e,r,t){return Ae(e,r,t,!1)}var Ir=Ar,Fr=Dr;$.Fragment=o,$.jsx=Ir,$.jsxs=Fr}()),$}var ne;function $e(){return ne||(ne=1,process.env.NODE_ENV==="production"?M.exports=Ie():M.exports=Fe()),M.exports}var n=$e();const We=()=>n.jsx("div",{className:"toolbar-pf"}),ae=({items:a,className:i})=>n.jsx("ol",{className:`breadcrumb ${i||""}`.trim(),children:a.map((l,o)=>n.jsx("li",{className:l.active?"active":"",children:l.active?l.title:n.jsx("a",{href:l.href,children:l.title})},o))}),G=({type:a="default",title:i,size:l,label:o,onClick:f,isDisabled:b=!1,children:h,className:T=""})=>{const g=`btn-${a}`,C=l?`btn-${l}`:"",m=`${`btn ${g} ${C}`.trim()} ${T}`.trim();return n.jsx("button",{className:m,type:"button",onClick:f,disabled:b,children:n.jsxs("div",{className:"flex items-center",children:[h||o," ",i]})})},Ye=({children:a,eventKey:i,active:l})=>n.jsx("div",{className:`tab-pane ${l?"active":""}`,id:`${i}-panel`,role:"tabpanel","aria-labelledby":`${i}-tab`,children:a},i),Me=({activeKey:a,onSelect:i,children:l})=>n.jsxs("div",{className:"tabs-container",children:[n.jsx("ul",{className:"nav nav-tabs",role:"tablist",children:l.map(({props:{eventKey:o,title:f}})=>n.jsx("li",{className:a===o?"active":"",children:n.jsx("a",{href:`#${o}`,onClick:b=>{b.preventDefault(),i(o)},children:f})},o))}),n.jsx("div",{className:"tabs-container",children:n.jsx("div",{className:"tab-content pf-c-tab-content",children:l.map(({props:{eventKey:o,children:f}})=>n.jsx("div",{className:`tab-pane ${a===o?"active":""}`,id:`${o}-panel`,role:"tabpanel","aria-labelledby":`${o}-tab`,children:f},o))})})]}),Ve=O.forwardRef(({id:a,type:i,placeholder:l="",value:o,onChange:f,className:b="form-control"},h)=>n.jsx("input",{type:i,id:a,className:b,placeholder:l,value:o,onChange:f,ref:h})),Le=({title:a,isOpen:i,onClose:l,children:o,size:f})=>{if(!i)return null;const b=f?`modal-${f}`:"";return n.jsx("div",{className:"modal fade in",style:{display:"block"},tabIndex:-1,role:"dialog",children:n.jsx("div",{className:`modal-dialog ${b}`,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:l,"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:o})]})})})},Ue=({variant:a,children:i})=>{const o={warning:"text-yellow-600",success:"text-green-600",error:"text-red-600"}[a]||"";return n.jsx("p",{className:o,children:i})},Be=({children:a,...i})=>n.jsx("table",{...i,children:a}),Je=({children:a,...i})=>n.jsx("tbody",{...i,children:a}),Ge=({children:a,...i})=>n.jsx("td",{...i,children:a}),He=({children:a,...i})=>n.jsx("th",{...i,children:a}),qe=({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:l,onChange:o,isDisabled:f})=>{const[b,h]=O.useState(!1),T=()=>{h(m=>!m)},g=m=>{h(!1),o(m)},C=m=>{const w=m.id===i;return n.jsx("li",{onClick:()=>g(m),className:w?"active":"",children:n.jsx("a",{href:"#",children:m.title})},m.id)},x=b?"dropdown open":"dropdown";return n.jsxs("div",{className:x,style:{display:"inline-block"},children:[n.jsxs("button",{disabled:f,className:"btn btn-default dropdown-toggle",onClick:T,children:[l&&n.jsx("div",{className:"mr-2",children:l}),n.jsx("span",{className:"caret"})]}),b&&n.jsx("ul",{className:"dropdown-menu",children:a.map(C)})]})},se=({currentPage:a,total:i,onPageChange:l,pageSize:o})=>{const f=Math.ceil(i/o),b=()=>{a>1&&l(a-1)},h=()=>{a<f&&l(a+1)};return n.jsxs("div",{children:[n.jsx("span",{children:n.jsxs("span",{className:"pagination-pf-items-current",children:[a," - ",f]})}),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:b,children:n.jsx("i",{className:"fa fa-angle-left"})}),n.jsx("button",{type:"button",className:`btn btn-default ${a===f?"disabled":""}`,disabled:a===f,onClick:h,children:n.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:i,onRefresh:l})=>{var b;const o=h=>{a(h.data)},f=(b=oe.find(h=>h.data===i))==null?void 0:b.id;return n.jsxs("div",{className:"flex",children:[n.jsx(G,{type:"default",onClick:l,children:n.jsx("i",{className:"fa fa-refresh"})}),n.jsx(ie,{onChange:o,items:oe,selected:f})]})},Xe=({interval:a,page:i,total:l,onRefresh:o,onChangeInterval:f,onPageChange:b,pageSize:h})=>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:f,onRefresh:o})}),n.jsx("div",{className:"m-[5px]",children:n.jsx(se,{pageSize:h,currentPage:i,total:l,onPageChange:b})})]}),Ze=({id:a,label:i,isChecked:l=!1,onChange:o,className:f="checkbox"})=>n.jsx("div",{className:f,children:n.jsxs("label",{htmlFor:a,children:[n.jsx("input",{type:"checkbox",id:a,checked:l,onChange:o}),` ${i}`]})}),Qe=({placeholder:a="",rows:i=3,maxLength:l,value:o,onChange:f,isDisabled:b=!1,className:h=""})=>{const[T,g]=O.useState(o||""),C=o!==void 0?o:T,x=m=>{const w=m.target.value;f?f(w):g(w)};return n.jsx("textarea",{className:h,placeholder:a,rows:i,maxLength:l,value:C,onChange:x,disabled:b})},Ke=({variant:a,title:i,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"),n.jsx("div",{className:o.trim(),role:"alert",children:i})};function er(a,i){O.useEffect(()=>{if(!a)return;const l=setInterval(()=>{i()},a);return()=>clearInterval(l)},[a])}const rr=()=>n.jsxs("div",{children:[n.jsx(ae,{items:[{title:"Дополнения",active:!0},{title:"Название плагина",href:"#Название плагина"}]}),n.jsx(G,{children:"Hello"})]});v.Alert=Ke,v.Breadcrumb=ae,v.Button=G,v.Checkbox=Ze,v.Dropdown=ie,v.HelpText=Ue,v.Input=Ve,v.Modal=Le,v.Pagination=se,v.ReloadButton=le,v.SampleComp=rr,v.Tab=Ye,v.Table=Be,v.TableToolbar=Xe,v.Tabs=Me,v.Tbody=Je,v.Td=Ge,v.TextArea=Qe,v.Th=He,v.Thead=qe,v.ToolbarContainer=We,v.Tr=ze,v.useIntervalLoader=er,Object.defineProperty(v,Symbol.toStringTag,{value:"Module"})});
|