ovirt-ui-toolkit 0.0.43 → 0.0.44
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.
|
@@ -10,16 +10,16 @@ var U = { exports: {} }, F = {};
|
|
|
10
10
|
* LICENSE file in the root directory of this source tree.
|
|
11
11
|
*/
|
|
12
12
|
var Ce;
|
|
13
|
-
function
|
|
13
|
+
function mr() {
|
|
14
14
|
if (Ce) return F;
|
|
15
15
|
Ce = 1;
|
|
16
|
-
var a = Se, s = Symbol.for("react.element"), l = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty,
|
|
17
|
-
function h(C,
|
|
18
|
-
var j,
|
|
19
|
-
T !== void 0 && (R = "" + T),
|
|
20
|
-
for (j in
|
|
21
|
-
if (C && C.defaultProps) for (j in
|
|
22
|
-
return { $$typeof: s, type: C, key: R, ref: W, props:
|
|
16
|
+
var a = Se, s = Symbol.for("react.element"), l = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty, u = 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) {
|
|
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]);
|
|
22
|
+
return { $$typeof: s, type: C, key: R, ref: W, props: b, _owner: u.current };
|
|
23
23
|
}
|
|
24
24
|
return F.Fragment = l, F.jsx = h, F.jsxs = h, F;
|
|
25
25
|
}
|
|
@@ -34,9 +34,9 @@ var I = {};
|
|
|
34
34
|
* LICENSE file in the root directory of this source tree.
|
|
35
35
|
*/
|
|
36
36
|
var Te;
|
|
37
|
-
function
|
|
37
|
+
function br() {
|
|
38
38
|
return Te || (Te = 1, process.env.NODE_ENV !== "production" && function() {
|
|
39
|
-
var a = Se, s = Symbol.for("react.element"), l = Symbol.for("react.portal"), o = Symbol.for("react.fragment"),
|
|
39
|
+
var a = Se, s = Symbol.for("react.element"), l = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), u = Symbol.for("react.strict_mode"), p = Symbol.for("react.profiler"), h = Symbol.for("react.provider"), C = Symbol.for("react.context"), m = Symbol.for("react.forward_ref"), T = Symbol.for("react.suspense"), j = Symbol.for("react.suspense_list"), b = Symbol.for("react.memo"), R = Symbol.for("react.lazy"), W = Symbol.for("react.offscreen"), K = Symbol.iterator, Ne = "@@iterator";
|
|
40
40
|
function Pe(e) {
|
|
41
41
|
if (e === null || typeof e != "object")
|
|
42
42
|
return null;
|
|
@@ -55,8 +55,8 @@ function mr() {
|
|
|
55
55
|
{
|
|
56
56
|
var i = N.ReactDebugCurrentFrame, d = i.getStackAddendum();
|
|
57
57
|
d !== "" && (r += "%s", n = n.concat([d]));
|
|
58
|
-
var v = n.map(function(
|
|
59
|
-
return String(
|
|
58
|
+
var v = n.map(function(f) {
|
|
59
|
+
return String(f);
|
|
60
60
|
});
|
|
61
61
|
v.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, v);
|
|
62
62
|
}
|
|
@@ -64,7 +64,7 @@ function mr() {
|
|
|
64
64
|
var De = !1, Ae = !1, Fe = !1, Ie = !1, We = !1, ee;
|
|
65
65
|
ee = Symbol.for("react.module.reference");
|
|
66
66
|
function Ye(e) {
|
|
67
|
-
return !!(typeof e == "string" || typeof e == "function" || e === o || e === p || We || e ===
|
|
67
|
+
return !!(typeof e == "string" || typeof e == "function" || e === o || e === p || We || e === u || e === T || e === j || Ie || e === W || De || Ae || Fe || 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
|
|
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.
|
|
@@ -94,7 +94,7 @@ function mr() {
|
|
|
94
94
|
return "Portal";
|
|
95
95
|
case p:
|
|
96
96
|
return "Profiler";
|
|
97
|
-
case
|
|
97
|
+
case u:
|
|
98
98
|
return "StrictMode";
|
|
99
99
|
case T:
|
|
100
100
|
return "Suspense";
|
|
@@ -109,15 +109,15 @@ function mr() {
|
|
|
109
109
|
case h:
|
|
110
110
|
var n = e;
|
|
111
111
|
return re(n._context) + ".Provider";
|
|
112
|
-
case b:
|
|
113
|
-
return Ve(e, e.render, "ForwardRef");
|
|
114
112
|
case m:
|
|
113
|
+
return Ve(e, e.render, "ForwardRef");
|
|
114
|
+
case b:
|
|
115
115
|
var i = e.displayName || null;
|
|
116
116
|
return i !== null ? i : O(e.type) || "Memo";
|
|
117
117
|
case R: {
|
|
118
|
-
var d = e, v = d._payload,
|
|
118
|
+
var d = e, v = d._payload, f = d._init;
|
|
119
119
|
try {
|
|
120
|
-
return O(
|
|
120
|
+
return O(f(v));
|
|
121
121
|
} catch {
|
|
122
122
|
return null;
|
|
123
123
|
}
|
|
@@ -222,27 +222,27 @@ function mr() {
|
|
|
222
222
|
v = B.current, B.current = null, Me();
|
|
223
223
|
try {
|
|
224
224
|
if (r) {
|
|
225
|
-
var
|
|
225
|
+
var f = function() {
|
|
226
226
|
throw Error();
|
|
227
227
|
};
|
|
228
|
-
if (Object.defineProperty(
|
|
228
|
+
if (Object.defineProperty(f.prototype, "props", {
|
|
229
229
|
set: function() {
|
|
230
230
|
throw Error();
|
|
231
231
|
}
|
|
232
232
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
233
233
|
try {
|
|
234
|
-
Reflect.construct(
|
|
234
|
+
Reflect.construct(f, []);
|
|
235
235
|
} catch (_) {
|
|
236
236
|
i = _;
|
|
237
237
|
}
|
|
238
|
-
Reflect.construct(e, [],
|
|
238
|
+
Reflect.construct(e, [], f);
|
|
239
239
|
} else {
|
|
240
240
|
try {
|
|
241
|
-
|
|
241
|
+
f.call();
|
|
242
242
|
} catch (_) {
|
|
243
243
|
i = _;
|
|
244
244
|
}
|
|
245
|
-
e.call(
|
|
245
|
+
e.call(f.prototype);
|
|
246
246
|
}
|
|
247
247
|
} else {
|
|
248
248
|
try {
|
|
@@ -299,9 +299,9 @@ function mr() {
|
|
|
299
299
|
}
|
|
300
300
|
if (typeof e == "object")
|
|
301
301
|
switch (e.$$typeof) {
|
|
302
|
-
case b:
|
|
303
|
-
return Be(e.render);
|
|
304
302
|
case m:
|
|
303
|
+
return Be(e.render);
|
|
304
|
+
case b:
|
|
305
305
|
return M(e.type, r, n);
|
|
306
306
|
case R: {
|
|
307
307
|
var i = e, d = i._payload, v = i._init;
|
|
@@ -324,19 +324,19 @@ function mr() {
|
|
|
324
324
|
function qe(e, r, n, i, d) {
|
|
325
325
|
{
|
|
326
326
|
var v = Function.call.bind(A);
|
|
327
|
-
for (var
|
|
328
|
-
if (v(e,
|
|
327
|
+
for (var f in e)
|
|
328
|
+
if (v(e, f)) {
|
|
329
329
|
var c = void 0;
|
|
330
330
|
try {
|
|
331
|
-
if (typeof e[
|
|
332
|
-
var E = Error((i || "React class") + ": " + n + " type `" +
|
|
331
|
+
if (typeof e[f] != "function") {
|
|
332
|
+
var E = Error((i || "React class") + ": " + n + " type `" + f + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[f] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
333
333
|
throw E.name = "Invariant Violation", E;
|
|
334
334
|
}
|
|
335
|
-
c = e[
|
|
335
|
+
c = e[f](r, f, i, n, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
336
336
|
} catch (x) {
|
|
337
337
|
c = x;
|
|
338
338
|
}
|
|
339
|
-
c && !(c instanceof Error) && (L(d), y("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", i || "React class", n,
|
|
339
|
+
c && !(c instanceof Error) && (L(d), y("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", i || "React class", n, f, typeof c), L(null)), c instanceof Error && !(c.message in fe) && (fe[c.message] = !0, L(d), y("Failed %s type: %s", n, c.message), L(null));
|
|
340
340
|
}
|
|
341
341
|
}
|
|
342
342
|
}
|
|
@@ -369,7 +369,7 @@ function mr() {
|
|
|
369
369
|
ref: !0,
|
|
370
370
|
__self: !0,
|
|
371
371
|
__source: !0
|
|
372
|
-
},
|
|
372
|
+
}, me, be;
|
|
373
373
|
function Ze(e) {
|
|
374
374
|
if (A.call(e, "ref")) {
|
|
375
375
|
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
@@ -392,7 +392,7 @@ function mr() {
|
|
|
392
392
|
function er(e, r) {
|
|
393
393
|
{
|
|
394
394
|
var n = function() {
|
|
395
|
-
|
|
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 mr() {
|
|
|
403
403
|
function rr(e, r) {
|
|
404
404
|
{
|
|
405
405
|
var n = function() {
|
|
406
|
-
|
|
406
|
+
be || (be = !0, y("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
|
|
407
407
|
};
|
|
408
408
|
n.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
409
409
|
get: n,
|
|
@@ -411,7 +411,7 @@ function mr() {
|
|
|
411
411
|
});
|
|
412
412
|
}
|
|
413
413
|
}
|
|
414
|
-
var tr = function(e, r, n, i, d, v,
|
|
414
|
+
var tr = function(e, r, n, i, d, v, f) {
|
|
415
415
|
var c = {
|
|
416
416
|
// This tag allows us to uniquely identify this as a React Element
|
|
417
417
|
$$typeof: s,
|
|
@@ -419,7 +419,7 @@ function mr() {
|
|
|
419
419
|
type: e,
|
|
420
420
|
key: r,
|
|
421
421
|
ref: n,
|
|
422
|
-
props:
|
|
422
|
+
props: f,
|
|
423
423
|
// Record the component responsible for creating this element.
|
|
424
424
|
_owner: v
|
|
425
425
|
};
|
|
@@ -442,20 +442,20 @@ function mr() {
|
|
|
442
442
|
};
|
|
443
443
|
function nr(e, r, n, i, d) {
|
|
444
444
|
{
|
|
445
|
-
var v,
|
|
445
|
+
var v, f = {}, c = null, E = null;
|
|
446
446
|
n !== void 0 && (pe(n), c = "" + n), Qe(r) && (pe(r.key), c = "" + r.key), Ze(r) && (E = r.ref, Ke(r, d));
|
|
447
447
|
for (v in r)
|
|
448
|
-
A.call(r, v) && !Xe.hasOwnProperty(v) && (
|
|
448
|
+
A.call(r, v) && !Xe.hasOwnProperty(v) && (f[v] = r[v]);
|
|
449
449
|
if (e && e.defaultProps) {
|
|
450
450
|
var x = e.defaultProps;
|
|
451
451
|
for (v in x)
|
|
452
|
-
|
|
452
|
+
f[v] === void 0 && (f[v] = x[v]);
|
|
453
453
|
}
|
|
454
454
|
if (c || E) {
|
|
455
455
|
var g = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
456
|
-
c && er(
|
|
456
|
+
c && er(f, g), E && rr(f, g);
|
|
457
457
|
}
|
|
458
|
-
return tr(e, c, E, d, i, he.current,
|
|
458
|
+
return tr(e, c, E, d, i, he.current, f);
|
|
459
459
|
}
|
|
460
460
|
}
|
|
461
461
|
var G = N.ReactCurrentOwner, xe = N.ReactDebugCurrentFrame;
|
|
@@ -526,8 +526,8 @@ Check the top-level render call using <` + n + ">.");
|
|
|
526
526
|
else if (e) {
|
|
527
527
|
var d = Pe(e);
|
|
528
528
|
if (typeof d == "function" && d !== e.entries)
|
|
529
|
-
for (var v = d.call(e),
|
|
530
|
-
X(
|
|
529
|
+
for (var v = d.call(e), f; !(f = v.next()).done; )
|
|
530
|
+
X(f.value) && ye(f.value, r);
|
|
531
531
|
}
|
|
532
532
|
}
|
|
533
533
|
}
|
|
@@ -539,9 +539,9 @@ 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 ===
|
|
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 === b))
|
|
545
545
|
n = r.propTypes;
|
|
546
546
|
else
|
|
547
547
|
return;
|
|
@@ -571,8 +571,8 @@ Check the top-level render call using <` + n + ">.");
|
|
|
571
571
|
var Re = {};
|
|
572
572
|
function _e(e, r, n, i, d, v) {
|
|
573
573
|
{
|
|
574
|
-
var
|
|
575
|
-
if (!
|
|
574
|
+
var f = Ye(e);
|
|
575
|
+
if (!f) {
|
|
576
576
|
var c = "";
|
|
577
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();
|
|
@@ -583,7 +583,7 @@ Check the top-level render call using <` + n + ">.");
|
|
|
583
583
|
var g = nr(e, r, n, d, v);
|
|
584
584
|
if (g == null)
|
|
585
585
|
return g;
|
|
586
|
-
if (
|
|
586
|
+
if (f) {
|
|
587
587
|
var w = r.children;
|
|
588
588
|
if (w !== void 0)
|
|
589
589
|
if (i)
|
|
@@ -625,7 +625,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
625
625
|
}
|
|
626
626
|
var we;
|
|
627
627
|
function xr() {
|
|
628
|
-
return we || (we = 1, process.env.NODE_ENV === "production" ? U.exports =
|
|
628
|
+
return we || (we = 1, process.env.NODE_ENV === "production" ? U.exports = mr() : U.exports = br()), U.exports;
|
|
629
629
|
}
|
|
630
630
|
var t = xr();
|
|
631
631
|
const Tr = () => /* @__PURE__ */ t.jsx("div", { className: "toolbar-pf" }), gr = ({ items: a, className: s }) => /* @__PURE__ */ t.jsx("ol", { className: `breadcrumb ${s || ""}`.trim(), children: a.map((l, o) => /* @__PURE__ */ t.jsx("li", { className: l.active ? "active" : "", children: l.active ? l.title : /* @__PURE__ */ t.jsx("a", { href: l.href, children: l.title }) }, o)) }), jr = /* @__PURE__ */ t.jsx("span", { className: "loading-spinner mr-2", children: /* @__PURE__ */ t.jsxs(
|
|
@@ -662,11 +662,11 @@ const Tr = () => /* @__PURE__ */ t.jsx("div", { className: "toolbar-pf" }), gr =
|
|
|
662
662
|
title: s,
|
|
663
663
|
size: l,
|
|
664
664
|
label: o,
|
|
665
|
-
onClick:
|
|
665
|
+
onClick: u,
|
|
666
666
|
isDisabled: p = !1,
|
|
667
667
|
children: h,
|
|
668
668
|
className: C = "",
|
|
669
|
-
isLoading:
|
|
669
|
+
isLoading: m = !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(
|
|
@@ -674,10 +674,10 @@ const Tr = () => /* @__PURE__ */ t.jsx("div", { className: "toolbar-pf" }), gr =
|
|
|
674
674
|
{
|
|
675
675
|
className: R,
|
|
676
676
|
type: "button",
|
|
677
|
-
onClick:
|
|
678
|
-
disabled: p ||
|
|
677
|
+
onClick: u,
|
|
678
|
+
disabled: p || m,
|
|
679
679
|
children: /* @__PURE__ */ t.jsxs("div", { className: "flex items-center justify-center", children: [
|
|
680
|
-
|
|
680
|
+
m && jr,
|
|
681
681
|
h || o,
|
|
682
682
|
" ",
|
|
683
683
|
s && /* @__PURE__ */ t.jsx("span", { children: s })
|
|
@@ -695,24 +695,24 @@ const Tr = () => /* @__PURE__ */ t.jsx("div", { className: "toolbar-pf" }), gr =
|
|
|
695
695
|
},
|
|
696
696
|
s
|
|
697
697
|
), Or = ({ activeKey: a, onSelect: s, children: l }) => /* @__PURE__ */ t.jsxs("div", { className: "tabs-container", children: [
|
|
698
|
-
/* @__PURE__ */ t.jsx("ul", { className: "nav nav-tabs", role: "tablist", children: l.map(({ props: { eventKey: o, title:
|
|
698
|
+
/* @__PURE__ */ t.jsx("ul", { className: "nav nav-tabs", role: "tablist", children: l.map(({ props: { eventKey: o, title: u } }) => /* @__PURE__ */ t.jsx("li", { className: a === o ? "active" : "", children: /* @__PURE__ */ t.jsx(
|
|
699
699
|
"a",
|
|
700
700
|
{
|
|
701
701
|
href: `#${o}`,
|
|
702
702
|
onClick: (p) => {
|
|
703
703
|
p.preventDefault(), s(o);
|
|
704
704
|
},
|
|
705
|
-
children:
|
|
705
|
+
children: u
|
|
706
706
|
}
|
|
707
707
|
) }, o)) }),
|
|
708
|
-
/* @__PURE__ */ t.jsx("div", { className: "tabs-container", children: /* @__PURE__ */ t.jsx("div", { className: "tab-content pf-c-tab-content", children: l.map(({ props: { eventKey: o, children:
|
|
708
|
+
/* @__PURE__ */ t.jsx("div", { className: "tabs-container", children: /* @__PURE__ */ t.jsx("div", { className: "tab-content pf-c-tab-content", children: l.map(({ props: { eventKey: o, children: u } }) => /* @__PURE__ */ t.jsx(
|
|
709
709
|
"div",
|
|
710
710
|
{
|
|
711
711
|
className: `tab-pane ${a === o ? "active" : ""}`,
|
|
712
712
|
id: `${o}-panel`,
|
|
713
713
|
role: "tabpanel",
|
|
714
714
|
"aria-labelledby": `${o}-tab`,
|
|
715
|
-
children:
|
|
715
|
+
children: u
|
|
716
716
|
},
|
|
717
717
|
o
|
|
718
718
|
)) }) })
|
|
@@ -722,7 +722,7 @@ const Tr = () => /* @__PURE__ */ t.jsx("div", { className: "toolbar-pf" }), gr =
|
|
|
722
722
|
type: s,
|
|
723
723
|
placeholder: l = "",
|
|
724
724
|
value: o,
|
|
725
|
-
onChange:
|
|
725
|
+
onChange: u,
|
|
726
726
|
className: p = "form-control"
|
|
727
727
|
}, h) => /* @__PURE__ */ t.jsx(
|
|
728
728
|
"input",
|
|
@@ -732,13 +732,13 @@ const Tr = () => /* @__PURE__ */ t.jsx("div", { className: "toolbar-pf" }), gr =
|
|
|
732
732
|
className: p,
|
|
733
733
|
placeholder: l,
|
|
734
734
|
value: o,
|
|
735
|
-
onChange:
|
|
735
|
+
onChange: u,
|
|
736
736
|
ref: h
|
|
737
737
|
}
|
|
738
738
|
)
|
|
739
|
-
), kr = ({ title: a, isOpen: s, onClose: l, children: o, size:
|
|
739
|
+
), kr = ({ title: a, isOpen: s, onClose: l, children: o, size: u }) => {
|
|
740
740
|
if (!s) return null;
|
|
741
|
-
const p =
|
|
741
|
+
const p = u ? `modal-${u}` : "";
|
|
742
742
|
return /* @__PURE__ */ t.jsx("div", { className: "modal fade in", style: { display: "block" }, tabIndex: -1, role: "dialog", children: /* @__PURE__ */ t.jsx("div", { className: `modal-dialog ${p}`, role: "document", children: /* @__PURE__ */ t.jsxs("div", { className: "modal-content", children: [
|
|
743
743
|
/* @__PURE__ */ t.jsxs("div", { className: "modal-header", children: [
|
|
744
744
|
/* @__PURE__ */ t.jsx("button", { type: "button", className: "close", onClick: l, "aria-hidden": "true", children: /* @__PURE__ */ t.jsx("span", { className: "pficon pficon-close" }) }),
|
|
@@ -746,28 +746,28 @@ const Tr = () => /* @__PURE__ */ t.jsx("div", { className: "toolbar-pf" }), gr =
|
|
|
746
746
|
] }),
|
|
747
747
|
/* @__PURE__ */ t.jsx("div", { className: "modal-body", children: o })
|
|
748
748
|
] }) }) });
|
|
749
|
-
}, Nr = ({ variant: a, children: s }) => {
|
|
749
|
+
}, Nr = ({ variant: a, children: s, className: l = "" }) => {
|
|
750
750
|
const o = {
|
|
751
751
|
warning: "text-yellow-600",
|
|
752
752
|
success: "text-green-600",
|
|
753
753
|
error: "text-red-600"
|
|
754
|
-
}[a] || "";
|
|
755
|
-
return /* @__PURE__ */ t.jsx("p", { className:
|
|
756
|
-
}, Pr = ({ children: a, ...s }) => /* @__PURE__ */ t.jsx("table", { ...s, children: a }), $r = ({ children: a, ...s }) => /* @__PURE__ */ t.jsx("tbody", { ...s, children: a }), Dr = ({ children: a, ...s }) => /* @__PURE__ */ t.jsx("td", { ...s, children: a }), Ar = ({ children: a, ...s }) => /* @__PURE__ */ t.jsx("th", { ...s, children: a }), Fr = ({ children: a, ...s }) => /* @__PURE__ */ t.jsx("thead", { ...s, children: a }), Ir = ({ children: a, ...s }) => /* @__PURE__ */ t.jsx("tr", { ...s, children: a }), yr = ({ items: a, selected: s, title: l, onChange: o, isDisabled:
|
|
754
|
+
}, u = l + " " + o[a] || "";
|
|
755
|
+
return /* @__PURE__ */ t.jsx("p", { className: u, children: s });
|
|
756
|
+
}, Pr = ({ children: a, ...s }) => /* @__PURE__ */ t.jsx("table", { ...s, children: a }), $r = ({ children: a, ...s }) => /* @__PURE__ */ t.jsx("tbody", { ...s, children: a }), Dr = ({ children: a, ...s }) => /* @__PURE__ */ t.jsx("td", { ...s, children: a }), Ar = ({ children: a, ...s }) => /* @__PURE__ */ t.jsx("th", { ...s, children: a }), Fr = ({ children: a, ...s }) => /* @__PURE__ */ t.jsx("thead", { ...s, children: a }), Ir = ({ children: a, ...s }) => /* @__PURE__ */ t.jsx("tr", { ...s, children: a }), yr = ({ items: a, selected: s, title: l, onChange: o, isDisabled: u }) => {
|
|
757
757
|
const [p, h] = ke(!1), C = () => {
|
|
758
|
-
h((
|
|
759
|
-
},
|
|
760
|
-
h(!1), o(
|
|
761
|
-
}, T = (
|
|
762
|
-
const R =
|
|
758
|
+
h((b) => !b);
|
|
759
|
+
}, m = (b) => {
|
|
760
|
+
h(!1), o(b);
|
|
761
|
+
}, T = (b) => {
|
|
762
|
+
const R = b.id === s;
|
|
763
763
|
return /* @__PURE__ */ t.jsx(
|
|
764
764
|
"li",
|
|
765
765
|
{
|
|
766
|
-
onClick: () => b
|
|
766
|
+
onClick: () => m(b),
|
|
767
767
|
className: R ? "active" : "",
|
|
768
|
-
children: /* @__PURE__ */ t.jsx("a", { href: "#", children:
|
|
768
|
+
children: /* @__PURE__ */ t.jsx("a", { href: "#", children: b.title })
|
|
769
769
|
},
|
|
770
|
-
|
|
770
|
+
b.id
|
|
771
771
|
);
|
|
772
772
|
}, j = p ? "dropdown open" : "dropdown";
|
|
773
773
|
return /* @__PURE__ */ t.jsxs("div", { className: j, style: { display: "inline-block" }, children: [
|
|
@@ -775,7 +775,7 @@ const Tr = () => /* @__PURE__ */ t.jsx("div", { className: "toolbar-pf" }), gr =
|
|
|
775
775
|
"button",
|
|
776
776
|
{
|
|
777
777
|
type: "button",
|
|
778
|
-
disabled:
|
|
778
|
+
disabled: u,
|
|
779
779
|
className: "btn btn-default dropdown-toggle h-full",
|
|
780
780
|
onClick: C,
|
|
781
781
|
children: /* @__PURE__ */ t.jsxs("div", { className: "flex items-center", children: [
|
|
@@ -787,16 +787,16 @@ const Tr = () => /* @__PURE__ */ t.jsx("div", { className: "toolbar-pf" }), gr =
|
|
|
787
787
|
p && /* @__PURE__ */ t.jsx("ul", { className: "dropdown-menu", children: a.map(T) })
|
|
788
788
|
] });
|
|
789
789
|
}, Er = ({ currentPage: a, total: s, onPageChange: l, pageSize: o }) => {
|
|
790
|
-
const
|
|
790
|
+
const u = Math.ceil(s / o), p = () => {
|
|
791
791
|
a > 1 && l(a - 1);
|
|
792
792
|
}, h = () => {
|
|
793
|
-
a <
|
|
793
|
+
a < u && l(a + 1);
|
|
794
794
|
};
|
|
795
795
|
return /* @__PURE__ */ t.jsxs("div", { children: [
|
|
796
796
|
/* @__PURE__ */ t.jsx("span", { children: /* @__PURE__ */ t.jsxs("span", { className: "pagination-pf-items-current", children: [
|
|
797
797
|
a,
|
|
798
798
|
" - ",
|
|
799
|
-
|
|
799
|
+
u
|
|
800
800
|
] }) }),
|
|
801
801
|
/* @__PURE__ */ t.jsxs("div", { className: "btn-group ml-2", children: [
|
|
802
802
|
/* @__PURE__ */ t.jsx(
|
|
@@ -813,8 +813,8 @@ const Tr = () => /* @__PURE__ */ t.jsx("div", { className: "toolbar-pf" }), gr =
|
|
|
813
813
|
"button",
|
|
814
814
|
{
|
|
815
815
|
type: "button",
|
|
816
|
-
className: `btn btn-default ${a ===
|
|
817
|
-
disabled: a ===
|
|
816
|
+
className: `btn btn-default ${a === u ? "disabled" : ""}`,
|
|
817
|
+
disabled: a === u,
|
|
818
818
|
onClick: h,
|
|
819
819
|
children: /* @__PURE__ */ t.jsx("i", { className: "fa fa-angle-right" })
|
|
820
820
|
}
|
|
@@ -831,17 +831,17 @@ const Tr = () => /* @__PURE__ */ t.jsx("div", { className: "toolbar-pf" }), gr =
|
|
|
831
831
|
var p;
|
|
832
832
|
const o = (h) => {
|
|
833
833
|
a(h.data);
|
|
834
|
-
},
|
|
834
|
+
}, u = (p = Oe.find((h) => h.data === s)) == null ? void 0 : p.id;
|
|
835
835
|
return /* @__PURE__ */ t.jsxs("div", { className: "flex", children: [
|
|
836
836
|
/* @__PURE__ */ t.jsx(Q, { type: "default", onClick: l, children: /* @__PURE__ */ t.jsx("i", { className: "fa fa-refresh" }) }),
|
|
837
|
-
/* @__PURE__ */ t.jsx(yr, { onChange: o, items: Oe, selected:
|
|
837
|
+
/* @__PURE__ */ t.jsx(yr, { onChange: o, items: Oe, selected: u })
|
|
838
838
|
] });
|
|
839
839
|
}, Wr = ({
|
|
840
840
|
interval: a,
|
|
841
841
|
page: s,
|
|
842
842
|
total: l,
|
|
843
843
|
onRefresh: o,
|
|
844
|
-
onChangeInterval:
|
|
844
|
+
onChangeInterval: u,
|
|
845
845
|
onPageChange: p,
|
|
846
846
|
pageSize: h
|
|
847
847
|
}) => /* @__PURE__ */ t.jsxs("div", { className: "flex justify-between bg-[#f5f5f5] border border-[#d1d1d1]", children: [
|
|
@@ -849,7 +849,7 @@ const Tr = () => /* @__PURE__ */ t.jsx("div", { className: "toolbar-pf" }), gr =
|
|
|
849
849
|
Rr,
|
|
850
850
|
{
|
|
851
851
|
value: a,
|
|
852
|
-
onChange:
|
|
852
|
+
onChange: u,
|
|
853
853
|
onRefresh: o
|
|
854
854
|
}
|
|
855
855
|
) }),
|
|
@@ -867,8 +867,8 @@ const Tr = () => /* @__PURE__ */ t.jsx("div", { className: "toolbar-pf" }), gr =
|
|
|
867
867
|
label: s,
|
|
868
868
|
isChecked: l = !1,
|
|
869
869
|
onChange: o,
|
|
870
|
-
className:
|
|
871
|
-
}) => /* @__PURE__ */ t.jsx("div", { className:
|
|
870
|
+
className: u = "checkbox"
|
|
871
|
+
}) => /* @__PURE__ */ t.jsx("div", { className: u, children: /* @__PURE__ */ t.jsxs("label", { htmlFor: a, children: [
|
|
872
872
|
/* @__PURE__ */ t.jsx(
|
|
873
873
|
"input",
|
|
874
874
|
{
|
|
@@ -884,13 +884,13 @@ const Tr = () => /* @__PURE__ */ t.jsx("div", { className: "toolbar-pf" }), gr =
|
|
|
884
884
|
rows: s = 3,
|
|
885
885
|
maxLength: l,
|
|
886
886
|
value: o,
|
|
887
|
-
onChange:
|
|
887
|
+
onChange: u,
|
|
888
888
|
isDisabled: p = !1,
|
|
889
889
|
className: h = ""
|
|
890
890
|
}) => {
|
|
891
|
-
const [C,
|
|
892
|
-
const R =
|
|
893
|
-
|
|
891
|
+
const [C, m] = ke(o || ""), T = o !== void 0 ? o : C, j = (b) => {
|
|
892
|
+
const R = b.target.value;
|
|
893
|
+
u ? u(R) : m(R);
|
|
894
894
|
};
|
|
895
895
|
return /* @__PURE__ */ t.jsx(
|
|
896
896
|
"textarea",
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var re;function Ie(){if(re)return F;re=1;var a=O,s=Symbol.for("react.element"),l=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,
|
|
9
|
+
*/var re;function Ie(){if(re)return F;re=1;var a=O,s=Symbol.for("react.element"),l=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,u=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,h={key:!0,ref:!0,__self:!0,__source:!0};function b(C,m,w){var y,g={},_=null,B=null;w!==void 0&&(_=""+w),m.key!==void 0&&(_=""+m.key),m.ref!==void 0&&(B=m.ref);for(y in m)o.call(m,y)&&!h.hasOwnProperty(y)&&(g[y]=m[y]);if(C&&C.defaultProps)for(y in m=C.defaultProps,m)g[y]===void 0&&(g[y]=m[y]);return{$$typeof:s,type:C,key:_,ref:B,props:g,_owner:u.current}}return F.Fragment=l,F.jsx=b,F.jsxs=b,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=O,s=Symbol.for("react.element"),l=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),
|
|
18
|
-
`+G+e}}var q=!1,U;{var br=typeof WeakMap=="function"?WeakMap:Map;U=new br}function xe(e,r){if(!e||q)return"";{var n=U.get(e);if(n!==void 0)return n}var i;q=!0;var d=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var p;p=z.current,z.current=null,pr();try{if(r){var
|
|
17
|
+
*/var te;function Fe(){return te||(te=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"),u=Symbol.for("react.strict_mode"),h=Symbol.for("react.profiler"),b=Symbol.for("react.provider"),C=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),w=Symbol.for("react.suspense"),y=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),B=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===u||e===w||e===y||ur||e===B||or||lr||cr||typeof e=="object"&&e!==null&&(e.$$typeof===_||e.$$typeof===g||e.$$typeof===b||e.$$typeof===C||e.$$typeof===m||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 u: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 b:var n=e;return fe(n._context)+".Provider";case m: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,be,me,ge;function je(){}je.__reactDisabledLog=!0;function pr(){{if(W===0){de=console.log,ve=console.info,pe=console.warn,he=console.error,be=console.group,me=console.groupCollapsed,ge=console.groupEnd;var e={configurable:!0,enumerable:!0,value:je,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:be}),groupCollapsed:N({},e,{value:me}),groupEnd:N({},e,{value:ge})})}W<0&&R("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var z=D.ReactCurrentDispatcher,G;function L(e,r,n){{if(G===void 0)try{throw Error()}catch(d){var i=d.stack.trim().match(/\n( *(at )?)/);G=i&&i[1]||""}return`
|
|
18
|
+
`+G+e}}var q=!1,U;{var br=typeof WeakMap=="function"?WeakMap:Map;U=new br}function xe(e,r){if(!e||q)return"";{var n=U.get(e);if(n!==void 0)return n}var i;q=!0;var d=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var p;p=z.current,z.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 c=T.stack.split(`
|
|
19
19
|
`),E=i.stack.split(`
|
|
20
20
|
`),j=c.length-1,x=E.length-1;j>=1&&x>=0&&c[j]!==E[x];)x--;for(;j>=1&&x>=0;j--,x--)if(c[j]!==E[x]){if(j!==1||x!==1)do if(j--,x--,x<0||c[j]!==E[x]){var S=`
|
|
21
|
-
`+c[j].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(j>=1&&x>=0);break}}}finally{q=!1,z.current=p,hr(),Error.prepareStackTrace=d}var I=e?e.displayName||e.name:"",P=I?L(I):"";return typeof e=="function"&&U.set(e,P),P}function mr(e,r,n){return xe(e,!1)}function gr(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function J(e,r,n){if(e==null)return"";if(typeof e=="function")return xe(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 m:return mr(e.render);case g:return J(e.type,r,n);case _:{var i=e,d=i._payload,p=i._init;try{return J(p(d),r,n)}catch{}}}return""}var Y=Object.prototype.hasOwnProperty,ye={},Re=D.ReactDebugCurrentFrame;function H(e){if(e){var r=e._owner,n=J(e.type,e._source,r?r.type:null);Re.setExtraStackFrame(n)}else Re.setExtraStackFrame(null)}function jr(e,r,n,i,d){{var p=Function.call.bind(Y);for(var
|
|
21
|
+
`+c[j].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(j>=1&&x>=0);break}}}finally{q=!1,z.current=p,hr(),Error.prepareStackTrace=d}var I=e?e.displayName||e.name:"",P=I?L(I):"";return typeof e=="function"&&U.set(e,P),P}function mr(e,r,n){return xe(e,!1)}function gr(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function J(e,r,n){if(e==null)return"";if(typeof e=="function")return xe(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 m:return mr(e.render);case g:return J(e.type,r,n);case _:{var i=e,d=i._payload,p=i._init;try{return J(p(d),r,n)}catch{}}}return""}var Y=Object.prototype.hasOwnProperty,ye={},Re=D.ReactDebugCurrentFrame;function H(e){if(e){var r=e._owner,n=J(e.type,e._source,r?r.type:null);Re.setExtraStackFrame(n)}else Re.setExtraStackFrame(null)}function jr(e,r,n,i,d){{var p=Function.call.bind(Y);for(var f in e)if(p(e,f)){var c=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}c=e[f](r,f,i,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(j){c=j}c&&!(c instanceof Error)&&(H(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 c),H(null)),c instanceof Error&&!(c.message in ye)&&(ye[c.message]=!0,H(d),R("Failed %s type: %s",n,c.message),H(null))}}}var xr=Array.isArray;function X(e){return xr(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 c={$$typeof:s,type:e,key:r,ref:n,props:f,_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:i}),Object.defineProperty(c,"_source",{configurable:!1,enumerable:!1,writable:!1,value:d}),Object.freeze&&(Object.freeze(c.props),Object.freeze(c)),c};function kr(e,r,n,i,d){{var p,f={},c=null,E=null;n!==void 0&&(_e(n),c=""+n),Tr(r)&&(_e(r.key),c=""+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 j=e.defaultProps;for(p in j)f[p]===void 0&&(f[p]=j[p])}if(c||E){var x=typeof e=="function"?e.displayName||e.name||"Unknown":e;c&&wr(f,x),E&&Sr(f,x)}return Or(e,c,E,d,i,Te.current,f)}}var Z=D.ReactCurrentOwner,Se=D.ReactDebugCurrentFrame;function A(e){if(e){var r=e._owner,n=J(e.type,e._source,r?r.type:null);Se.setExtraStackFrame(n)}else Se.setExtraStackFrame(null)}var Q;Q=!1;function K(e){return typeof e=="object"&&e!==null&&e.$$typeof===s}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 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 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!==Z.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(X(e))for(var n=0;n<e.length;n++){var i=e[n];K(i)&&Ne(i,r)}else if(K(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),
|
|
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!==Z.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(X(e))for(var n=0;n<e.length;n++){var i=e[n];K(i)&&Ne(i,r)}else if(K(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;)K(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===m||r.$$typeof===g))n=r.propTypes;else return;if(n){var i=k(r);jr(n,e.props,"prop",i,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 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 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=Nr();E?c+=E:c+=Oe();var j;e===null?j="null":X(e)?j="array":e!==void 0&&e.$$typeof===s?(j="<"+(k(e.type)||"Unknown")+" />",c=" Did you accidentally export a JSX literal instead of a component?"):j=typeof e,R("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",j,c)}var x=kr(e,r,n,d,p);if(x==null)return x;if(f){var S=r.children;if(S!==void 0)if(i)if(X(S)){for(var I=0;I<S.length;I++)Pe(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 Pe(S,e)}if(Y.call(r,"key")){var P=k(e),T=Object.keys(r).filter(function(Mr){return Mr!=="key"}),ee=T.length>0?"{key: someKey, "+T.join(": ..., ")+": ...}":"{key: someKey}";if(!De[P+ee]){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} />`,ee,P,Yr,P),De[P+ee]=!0}}return e===o?Ar(x):Dr(x),x}}function Ir(e,r,n){return Ae(e,r,n,!0)}function Fr(e,r,n){return Ae(e,r,n,!1)}var $r=Fr,Wr=Ir;$.Fragment=o,$.jsx=$r,$.jsxs=Wr}()),$}var ne;function $e(){return ne||(ne=1,process.env.NODE_ENV==="production"?M.exports=Ie():M.exports=Fe()),M.exports}var t=$e();const We=()=>t.jsx("div",{className:"toolbar-pf"}),ae=({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"})]})}),V=({type:a="default",title:s,size:l,label:o,onClick:
|
|
30
|
+
<%s key={someKey} {...props} />`,ee,P,Yr,P),De[P+ee]=!0}}return e===o?Ar(x):Dr(x),x}}function Ir(e,r,n){return Ae(e,r,n,!0)}function Fr(e,r,n){return Ae(e,r,n,!1)}var $r=Fr,Wr=Ir;$.Fragment=o,$.jsx=$r,$.jsxs=Wr}()),$}var ne;function $e(){return ne||(ne=1,process.env.NODE_ENV==="production"?M.exports=Ie():M.exports=Fe()),M.exports}var t=$e();const We=()=>t.jsx("div",{className:"toolbar-pf"}),ae=({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"})]})}),V=({type:a="default",title:s,size:l,label:o,onClick:u,isDisabled:h=!1,children:b,className:C="",isLoading:m=!1})=>{const w=`btn-${a}`,y=l?`btn-${l}`:"",_=`${`btn ${w} ${y}`.trim()} ${C}`.trim();return t.jsx("button",{className:_,type:"button",onClick:u,disabled:h||m,children:t.jsxs("div",{className:"flex items-center justify-center",children:[m&&Ye,b||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:u}})=>t.jsx("li",{className:a===o?"active":"",children:t.jsx("a",{href:`#${o}`,onClick:h=>{h.preventDefault(),s(o)},children:u})},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:u}})=>t.jsx("div",{className:`tab-pane ${a===o?"active":""}`,id:`${o}-panel`,role:"tabpanel","aria-labelledby":`${o}-tab`,children:u},o))})})]}),Be=O.forwardRef(({id:a,type:s,placeholder:l="",value:o,onChange:u,className:h="form-control"},b)=>t.jsx("input",{type:s,id:a,className:h,placeholder:l,value:o,onChange:u,ref:b})),Le=({title:a,isOpen:s,onClose:l,children:o,size:u})=>{if(!s)return null;const h=u?`modal-${u}`:"";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"},u=l+" "+o[a]||"";return t.jsx("p",{className:u,children:s})},Je=({children:a,...s})=>t.jsx("table",{...s,children:a}),He=({children:a,...s})=>t.jsx("tbody",{...s,children:a}),ze=({children:a,...s})=>t.jsx("td",{...s,children:a}),Ge=({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}),se=({items:a,selected:s,title:l,onChange:o,isDisabled:u})=>{const[h,b]=O.useState(!1),C=()=>{b(g=>!g)},m=g=>{b(!1),o(g)},w=g=>{const _=g.id===s;return t.jsx("li",{onClick:()=>m(g),className:_?"active":"",children:t.jsx("a",{href:"#",children:g.title})},g.id)},y=h?"dropdown open":"dropdown";return t.jsxs("div",{className:y,style:{display:"inline-block"},children:[t.jsx("button",{type:"button",disabled:u,className:"btn btn-default dropdown-toggle h-full",onClick:C,children:t.jsxs("div",{className:"flex items-center",children:[l&&t.jsx("div",{className:"mr-2",children:l}),t.jsx("span",{className:"caret"})]})}),h&&t.jsx("ul",{className:"dropdown-menu",children:a.map(w)})]})},ie=({currentPage:a,total:s,onPageChange:l,pageSize:o})=>{const u=Math.ceil(s/o),h=()=>{a>1&&l(a-1)},b=()=>{a<u&&l(a+1)};return t.jsxs("div",{children:[t.jsx("span",{children:t.jsxs("span",{className:"pagination-pf-items-current",children:[a," - ",u]})}),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===u?"disabled":""}`,disabled:a===u,onClick:b,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=b=>{a(b.data)},u=(h=oe.find(b=>b.data===s))==null?void 0:h.id;return t.jsxs("div",{className:"flex",children:[t.jsx(V,{type:"default",onClick:l,children:t.jsx("i",{className:"fa fa-refresh"})}),t.jsx(se,{onChange:o,items:oe,selected:u})]})},Ze=({interval:a,page:s,total:l,onRefresh:o,onChangeInterval:u,onPageChange:h,pageSize:b})=>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:u,onRefresh:o})}),t.jsx("div",{className:"m-[5px]",children:t.jsx(ie,{pageSize:b,currentPage:s,total:l,onPageChange:h})})]}),Qe=({id:a,label:s,isChecked:l=!1,onChange:o,className:u="checkbox"})=>t.jsx("div",{className:u,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:u,isDisabled:h=!1,className:b=""})=>{const[C,m]=O.useState(o||""),w=o!==void 0?o:C,y=g=>{const _=g.target.value;u?u(_):m(_)};return t.jsx("textarea",{className:b,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})=>t.jsx("div",{className:"btn-group",children:a}),nr=()=>t.jsxs("div",{children:[t.jsx(ae,{items:[{title:"Дополнения",active:!0},{title:"Название плагина",href:"#Название плагина"}]}),t.jsxs(tr,{children:[t.jsx(V,{children:"Hello"}),t.jsx(V,{children:"Hello"})]})]});v.Alert=er,v.Breadcrumb=ae,v.Button=V,v.Checkbox=Qe,v.Dropdown=se,v.HelpText=Ue,v.Input=Be,v.Modal=Le,v.Pagination=ie,v.ReloadButton=le,v.SampleComp=nr,v.Tab=Me,v.Table=Je,v.TableToolbar=Ze,v.Tabs=Ve,v.Tbody=He,v.Td=ze,v.TextArea=Ke,v.Th=Ge,v.Thead=qe,v.ToolbarContainer=We,v.Tr=Xe,v.useIntervalLoader=rr,Object.defineProperty(v,Symbol.toStringTag,{value:"Module"})});
|