ovirt-ui-toolkit 0.0.44 → 0.0.46
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import Se, { forwardRef as pr, useState as
|
|
2
|
-
var
|
|
1
|
+
import Se, { forwardRef as pr, useState as Ne, useEffect as hr } from "react";
|
|
2
|
+
var B = { exports: {} }, I = {};
|
|
3
3
|
/**
|
|
4
4
|
* @license React
|
|
5
5
|
* react-jsx-runtime.production.min.js
|
|
@@ -11,19 +11,19 @@ var U = { exports: {} }, F = {};
|
|
|
11
11
|
*/
|
|
12
12
|
var Ce;
|
|
13
13
|
function mr() {
|
|
14
|
-
if (Ce) return
|
|
14
|
+
if (Ce) return I;
|
|
15
15
|
Ce = 1;
|
|
16
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(
|
|
18
|
-
var
|
|
19
|
-
|
|
20
|
-
for (
|
|
21
|
-
if (
|
|
22
|
-
return { $$typeof: s, type:
|
|
17
|
+
function h(E, m, w) {
|
|
18
|
+
var g, R = {}, _ = null, T = null;
|
|
19
|
+
w !== void 0 && (_ = "" + w), m.key !== void 0 && (_ = "" + m.key), m.ref !== void 0 && (T = m.ref);
|
|
20
|
+
for (g in m) o.call(m, g) && !p.hasOwnProperty(g) && (R[g] = m[g]);
|
|
21
|
+
if (E && E.defaultProps) for (g in m = E.defaultProps, m) R[g] === void 0 && (R[g] = m[g]);
|
|
22
|
+
return { $$typeof: s, type: E, key: _, ref: T, props: R, _owner: u.current };
|
|
23
23
|
}
|
|
24
|
-
return
|
|
24
|
+
return I.Fragment = l, I.jsx = h, I.jsxs = h, I;
|
|
25
25
|
}
|
|
26
|
-
var
|
|
26
|
+
var W = {};
|
|
27
27
|
/**
|
|
28
28
|
* @license React
|
|
29
29
|
* react-jsx-runtime.development.js
|
|
@@ -36,15 +36,15 @@ var I = {};
|
|
|
36
36
|
var Te;
|
|
37
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"), u = Symbol.for("react.strict_mode"), p = Symbol.for("react.profiler"), h = Symbol.for("react.provider"),
|
|
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"), E = Symbol.for("react.context"), m = Symbol.for("react.forward_ref"), w = Symbol.for("react.suspense"), g = Symbol.for("react.suspense_list"), R = Symbol.for("react.memo"), _ = Symbol.for("react.lazy"), T = Symbol.for("react.offscreen"), Y = Symbol.iterator, ke = "@@iterator";
|
|
40
40
|
function Pe(e) {
|
|
41
41
|
if (e === null || typeof e != "object")
|
|
42
42
|
return null;
|
|
43
|
-
var r =
|
|
43
|
+
var r = Y && e[Y] || e[ke];
|
|
44
44
|
return typeof r == "function" ? r : null;
|
|
45
45
|
}
|
|
46
|
-
var
|
|
47
|
-
function
|
|
46
|
+
var P = a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
47
|
+
function j(e) {
|
|
48
48
|
{
|
|
49
49
|
for (var r = arguments.length, n = new Array(r > 1 ? r - 1 : 0), i = 1; i < r; i++)
|
|
50
50
|
n[i - 1] = arguments[i];
|
|
@@ -53,7 +53,7 @@ function br() {
|
|
|
53
53
|
}
|
|
54
54
|
function $e(e, r, n) {
|
|
55
55
|
{
|
|
56
|
-
var i =
|
|
56
|
+
var i = P.ReactDebugCurrentFrame, d = i.getStackAddendum();
|
|
57
57
|
d !== "" && (r += "%s", n = n.concat([d]));
|
|
58
58
|
var v = n.map(function(f) {
|
|
59
59
|
return String(f);
|
|
@@ -64,7 +64,7 @@ function br() {
|
|
|
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 === u || e ===
|
|
67
|
+
return !!(typeof e == "string" || typeof e == "function" || e === o || e === p || We || e === u || e === w || e === g || Ie || e === T || De || Ae || Fe || typeof e == "object" && e !== null && (e.$$typeof === _ || e.$$typeof === R || e.$$typeof === h || e.$$typeof === E || 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.
|
|
@@ -80,10 +80,10 @@ function br() {
|
|
|
80
80
|
function re(e) {
|
|
81
81
|
return e.displayName || "Context";
|
|
82
82
|
}
|
|
83
|
-
function
|
|
83
|
+
function S(e) {
|
|
84
84
|
if (e == null)
|
|
85
85
|
return null;
|
|
86
|
-
if (typeof e.tag == "number" &&
|
|
86
|
+
if (typeof e.tag == "number" && j("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
87
87
|
return e.displayName || e.name || null;
|
|
88
88
|
if (typeof e == "string")
|
|
89
89
|
return e;
|
|
@@ -96,14 +96,14 @@ function br() {
|
|
|
96
96
|
return "Profiler";
|
|
97
97
|
case u:
|
|
98
98
|
return "StrictMode";
|
|
99
|
-
case
|
|
99
|
+
case w:
|
|
100
100
|
return "Suspense";
|
|
101
|
-
case
|
|
101
|
+
case g:
|
|
102
102
|
return "SuspenseList";
|
|
103
103
|
}
|
|
104
104
|
if (typeof e == "object")
|
|
105
105
|
switch (e.$$typeof) {
|
|
106
|
-
case
|
|
106
|
+
case E:
|
|
107
107
|
var r = e;
|
|
108
108
|
return re(r) + ".Consumer";
|
|
109
109
|
case h:
|
|
@@ -111,13 +111,13 @@ function br() {
|
|
|
111
111
|
return re(n._context) + ".Provider";
|
|
112
112
|
case m:
|
|
113
113
|
return Ve(e, e.render, "ForwardRef");
|
|
114
|
-
case
|
|
114
|
+
case R:
|
|
115
115
|
var i = e.displayName || null;
|
|
116
|
-
return i !== null ? i :
|
|
117
|
-
case
|
|
116
|
+
return i !== null ? i : S(e.type) || "Memo";
|
|
117
|
+
case _: {
|
|
118
118
|
var d = e, v = d._payload, f = d._init;
|
|
119
119
|
try {
|
|
120
|
-
return
|
|
120
|
+
return S(f(v));
|
|
121
121
|
} catch {
|
|
122
122
|
return null;
|
|
123
123
|
}
|
|
@@ -125,13 +125,13 @@ function br() {
|
|
|
125
125
|
}
|
|
126
126
|
return null;
|
|
127
127
|
}
|
|
128
|
-
var
|
|
128
|
+
var N = Object.assign, A = 0, te, ne, ae, se, ie, oe, le;
|
|
129
129
|
function ce() {
|
|
130
130
|
}
|
|
131
131
|
ce.__reactDisabledLog = !0;
|
|
132
132
|
function Me() {
|
|
133
133
|
{
|
|
134
|
-
if (
|
|
134
|
+
if (A === 0) {
|
|
135
135
|
te = console.log, ne = console.info, ae = console.warn, se = console.error, ie = console.group, oe = console.groupCollapsed, le = console.groupEnd;
|
|
136
136
|
var e = {
|
|
137
137
|
configurable: !0,
|
|
@@ -149,77 +149,77 @@ function br() {
|
|
|
149
149
|
groupEnd: e
|
|
150
150
|
});
|
|
151
151
|
}
|
|
152
|
-
|
|
152
|
+
A++;
|
|
153
153
|
}
|
|
154
154
|
}
|
|
155
155
|
function Le() {
|
|
156
156
|
{
|
|
157
|
-
if (
|
|
157
|
+
if (A--, A === 0) {
|
|
158
158
|
var e = {
|
|
159
159
|
configurable: !0,
|
|
160
160
|
enumerable: !0,
|
|
161
161
|
writable: !0
|
|
162
162
|
};
|
|
163
163
|
Object.defineProperties(console, {
|
|
164
|
-
log:
|
|
164
|
+
log: N({}, e, {
|
|
165
165
|
value: te
|
|
166
166
|
}),
|
|
167
|
-
info:
|
|
167
|
+
info: N({}, e, {
|
|
168
168
|
value: ne
|
|
169
169
|
}),
|
|
170
|
-
warn:
|
|
170
|
+
warn: N({}, e, {
|
|
171
171
|
value: ae
|
|
172
172
|
}),
|
|
173
|
-
error:
|
|
173
|
+
error: N({}, e, {
|
|
174
174
|
value: se
|
|
175
175
|
}),
|
|
176
|
-
group:
|
|
176
|
+
group: N({}, e, {
|
|
177
177
|
value: ie
|
|
178
178
|
}),
|
|
179
|
-
groupCollapsed:
|
|
179
|
+
groupCollapsed: N({}, e, {
|
|
180
180
|
value: oe
|
|
181
181
|
}),
|
|
182
|
-
groupEnd:
|
|
182
|
+
groupEnd: N({}, e, {
|
|
183
183
|
value: le
|
|
184
184
|
})
|
|
185
185
|
});
|
|
186
186
|
}
|
|
187
|
-
|
|
187
|
+
A < 0 && j("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
188
188
|
}
|
|
189
189
|
}
|
|
190
|
-
var
|
|
191
|
-
function
|
|
190
|
+
var J = P.ReactCurrentDispatcher, q;
|
|
191
|
+
function V(e, r, n) {
|
|
192
192
|
{
|
|
193
|
-
if (
|
|
193
|
+
if (q === void 0)
|
|
194
194
|
try {
|
|
195
195
|
throw Error();
|
|
196
196
|
} catch (d) {
|
|
197
197
|
var i = d.stack.trim().match(/\n( *(at )?)/);
|
|
198
|
-
|
|
198
|
+
q = i && i[1] || "";
|
|
199
199
|
}
|
|
200
200
|
return `
|
|
201
|
-
` +
|
|
201
|
+
` + q + e;
|
|
202
202
|
}
|
|
203
203
|
}
|
|
204
|
-
var
|
|
204
|
+
var z = !1, M;
|
|
205
205
|
{
|
|
206
206
|
var Ue = typeof WeakMap == "function" ? WeakMap : Map;
|
|
207
|
-
|
|
207
|
+
M = new Ue();
|
|
208
208
|
}
|
|
209
209
|
function ue(e, r) {
|
|
210
|
-
if (!e ||
|
|
210
|
+
if (!e || z)
|
|
211
211
|
return "";
|
|
212
212
|
{
|
|
213
|
-
var n =
|
|
213
|
+
var n = M.get(e);
|
|
214
214
|
if (n !== void 0)
|
|
215
215
|
return n;
|
|
216
216
|
}
|
|
217
217
|
var i;
|
|
218
|
-
|
|
218
|
+
z = !0;
|
|
219
219
|
var d = Error.prepareStackTrace;
|
|
220
220
|
Error.prepareStackTrace = void 0;
|
|
221
221
|
var v;
|
|
222
|
-
v =
|
|
222
|
+
v = J.current, J.current = null, Me();
|
|
223
223
|
try {
|
|
224
224
|
if (r) {
|
|
225
225
|
var f = function() {
|
|
@@ -232,50 +232,50 @@ function br() {
|
|
|
232
232
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
233
233
|
try {
|
|
234
234
|
Reflect.construct(f, []);
|
|
235
|
-
} catch (
|
|
236
|
-
i =
|
|
235
|
+
} catch (C) {
|
|
236
|
+
i = C;
|
|
237
237
|
}
|
|
238
238
|
Reflect.construct(e, [], f);
|
|
239
239
|
} else {
|
|
240
240
|
try {
|
|
241
241
|
f.call();
|
|
242
|
-
} catch (
|
|
243
|
-
i =
|
|
242
|
+
} catch (C) {
|
|
243
|
+
i = C;
|
|
244
244
|
}
|
|
245
245
|
e.call(f.prototype);
|
|
246
246
|
}
|
|
247
247
|
} else {
|
|
248
248
|
try {
|
|
249
249
|
throw Error();
|
|
250
|
-
} catch (
|
|
251
|
-
i =
|
|
250
|
+
} catch (C) {
|
|
251
|
+
i = C;
|
|
252
252
|
}
|
|
253
253
|
e();
|
|
254
254
|
}
|
|
255
|
-
} catch (
|
|
256
|
-
if (
|
|
257
|
-
for (var c =
|
|
258
|
-
`),
|
|
259
|
-
`),
|
|
260
|
-
|
|
261
|
-
for (;
|
|
262
|
-
if (c[
|
|
263
|
-
if (
|
|
255
|
+
} catch (C) {
|
|
256
|
+
if (C && i && typeof C.stack == "string") {
|
|
257
|
+
for (var c = C.stack.split(`
|
|
258
|
+
`), y = i.stack.split(`
|
|
259
|
+
`), b = c.length - 1, x = y.length - 1; b >= 1 && x >= 0 && c[b] !== y[x]; )
|
|
260
|
+
x--;
|
|
261
|
+
for (; b >= 1 && x >= 0; b--, x--)
|
|
262
|
+
if (c[b] !== y[x]) {
|
|
263
|
+
if (b !== 1 || x !== 1)
|
|
264
264
|
do
|
|
265
|
-
if (
|
|
266
|
-
var
|
|
267
|
-
` + c[
|
|
268
|
-
return e.displayName &&
|
|
265
|
+
if (b--, x--, x < 0 || c[b] !== y[x]) {
|
|
266
|
+
var O = `
|
|
267
|
+
` + c[b].replace(" at new ", " at ");
|
|
268
|
+
return e.displayName && O.includes("<anonymous>") && (O = O.replace("<anonymous>", e.displayName)), typeof e == "function" && M.set(e, O), O;
|
|
269
269
|
}
|
|
270
|
-
while (
|
|
270
|
+
while (b >= 1 && x >= 0);
|
|
271
271
|
break;
|
|
272
272
|
}
|
|
273
273
|
}
|
|
274
274
|
} finally {
|
|
275
|
-
|
|
275
|
+
z = !1, J.current = v, Le(), Error.prepareStackTrace = d;
|
|
276
276
|
}
|
|
277
|
-
var
|
|
278
|
-
return typeof e == "function" &&
|
|
277
|
+
var D = e ? e.displayName || e.name : "", k = D ? V(D) : "";
|
|
278
|
+
return typeof e == "function" && M.set(e, k), k;
|
|
279
279
|
}
|
|
280
280
|
function Be(e, r, n) {
|
|
281
281
|
return ue(e, !1);
|
|
@@ -284,64 +284,64 @@ function br() {
|
|
|
284
284
|
var r = e.prototype;
|
|
285
285
|
return !!(r && r.isReactComponent);
|
|
286
286
|
}
|
|
287
|
-
function
|
|
287
|
+
function L(e, r, n) {
|
|
288
288
|
if (e == null)
|
|
289
289
|
return "";
|
|
290
290
|
if (typeof e == "function")
|
|
291
291
|
return ue(e, Je(e));
|
|
292
292
|
if (typeof e == "string")
|
|
293
|
-
return
|
|
293
|
+
return V(e);
|
|
294
294
|
switch (e) {
|
|
295
|
-
case
|
|
296
|
-
return
|
|
297
|
-
case
|
|
298
|
-
return
|
|
295
|
+
case w:
|
|
296
|
+
return V("Suspense");
|
|
297
|
+
case g:
|
|
298
|
+
return V("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
|
|
305
|
-
return
|
|
306
|
-
case
|
|
304
|
+
case R:
|
|
305
|
+
return L(e.type, r, n);
|
|
306
|
+
case _: {
|
|
307
307
|
var i = e, d = i._payload, v = i._init;
|
|
308
308
|
try {
|
|
309
|
-
return
|
|
309
|
+
return L(v(d), r, n);
|
|
310
310
|
} catch {
|
|
311
311
|
}
|
|
312
312
|
}
|
|
313
313
|
}
|
|
314
314
|
return "";
|
|
315
315
|
}
|
|
316
|
-
var
|
|
317
|
-
function
|
|
316
|
+
var F = Object.prototype.hasOwnProperty, fe = {}, de = P.ReactDebugCurrentFrame;
|
|
317
|
+
function U(e) {
|
|
318
318
|
if (e) {
|
|
319
|
-
var r = e._owner, n =
|
|
319
|
+
var r = e._owner, n = L(e.type, e._source, r ? r.type : null);
|
|
320
320
|
de.setExtraStackFrame(n);
|
|
321
321
|
} else
|
|
322
322
|
de.setExtraStackFrame(null);
|
|
323
323
|
}
|
|
324
324
|
function qe(e, r, n, i, d) {
|
|
325
325
|
{
|
|
326
|
-
var v = Function.call.bind(
|
|
326
|
+
var v = Function.call.bind(F);
|
|
327
327
|
for (var f in e)
|
|
328
328
|
if (v(e, f)) {
|
|
329
329
|
var c = void 0;
|
|
330
330
|
try {
|
|
331
331
|
if (typeof e[f] != "function") {
|
|
332
|
-
var
|
|
333
|
-
throw
|
|
332
|
+
var y = 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
|
+
throw y.name = "Invariant Violation", y;
|
|
334
334
|
}
|
|
335
335
|
c = e[f](r, f, i, n, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
336
|
-
} catch (
|
|
337
|
-
c =
|
|
336
|
+
} catch (b) {
|
|
337
|
+
c = b;
|
|
338
338
|
}
|
|
339
|
-
c && !(c instanceof Error) && (
|
|
339
|
+
c && !(c instanceof Error) && (U(d), j("%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), U(null)), c instanceof Error && !(c.message in fe) && (fe[c.message] = !0, U(d), j("Failed %s type: %s", n, c.message), U(null));
|
|
340
340
|
}
|
|
341
341
|
}
|
|
342
342
|
}
|
|
343
343
|
var ze = Array.isArray;
|
|
344
|
-
function
|
|
344
|
+
function G(e) {
|
|
345
345
|
return ze(e);
|
|
346
346
|
}
|
|
347
347
|
function Ge(e) {
|
|
@@ -362,16 +362,16 @@ function br() {
|
|
|
362
362
|
}
|
|
363
363
|
function pe(e) {
|
|
364
364
|
if (He(e))
|
|
365
|
-
return
|
|
365
|
+
return j("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ge(e)), ve(e);
|
|
366
366
|
}
|
|
367
|
-
var he =
|
|
367
|
+
var he = P.ReactCurrentOwner, Xe = {
|
|
368
368
|
key: !0,
|
|
369
369
|
ref: !0,
|
|
370
370
|
__self: !0,
|
|
371
371
|
__source: !0
|
|
372
372
|
}, me, be;
|
|
373
373
|
function Ze(e) {
|
|
374
|
-
if (
|
|
374
|
+
if (F.call(e, "ref")) {
|
|
375
375
|
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
376
376
|
if (r && r.isReactWarning)
|
|
377
377
|
return !1;
|
|
@@ -379,7 +379,7 @@ function br() {
|
|
|
379
379
|
return e.ref !== void 0;
|
|
380
380
|
}
|
|
381
381
|
function Qe(e) {
|
|
382
|
-
if (
|
|
382
|
+
if (F.call(e, "key")) {
|
|
383
383
|
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
384
384
|
if (r && r.isReactWarning)
|
|
385
385
|
return !1;
|
|
@@ -392,7 +392,7 @@ function br() {
|
|
|
392
392
|
function er(e, r) {
|
|
393
393
|
{
|
|
394
394
|
var n = function() {
|
|
395
|
-
me || (me = !0,
|
|
395
|
+
me || (me = !0, j("%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 br() {
|
|
|
403
403
|
function rr(e, r) {
|
|
404
404
|
{
|
|
405
405
|
var n = function() {
|
|
406
|
-
be || (be = !0,
|
|
406
|
+
be || (be = !0, j("%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,
|
|
@@ -442,39 +442,39 @@ function br() {
|
|
|
442
442
|
};
|
|
443
443
|
function nr(e, r, n, i, d) {
|
|
444
444
|
{
|
|
445
|
-
var v, f = {}, c = null,
|
|
446
|
-
n !== void 0 && (pe(n), c = "" + n), Qe(r) && (pe(r.key), c = "" + r.key), Ze(r) && (
|
|
445
|
+
var v, f = {}, c = null, y = null;
|
|
446
|
+
n !== void 0 && (pe(n), c = "" + n), Qe(r) && (pe(r.key), c = "" + r.key), Ze(r) && (y = r.ref, Ke(r, d));
|
|
447
447
|
for (v in r)
|
|
448
|
-
|
|
448
|
+
F.call(r, v) && !Xe.hasOwnProperty(v) && (f[v] = r[v]);
|
|
449
449
|
if (e && e.defaultProps) {
|
|
450
|
-
var
|
|
451
|
-
for (v in
|
|
452
|
-
f[v] === void 0 && (f[v] =
|
|
450
|
+
var b = e.defaultProps;
|
|
451
|
+
for (v in b)
|
|
452
|
+
f[v] === void 0 && (f[v] = b[v]);
|
|
453
453
|
}
|
|
454
|
-
if (c ||
|
|
455
|
-
var
|
|
456
|
-
c && er(f,
|
|
454
|
+
if (c || y) {
|
|
455
|
+
var x = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
456
|
+
c && er(f, x), y && rr(f, x);
|
|
457
457
|
}
|
|
458
|
-
return tr(e, c,
|
|
458
|
+
return tr(e, c, y, d, i, he.current, f);
|
|
459
459
|
}
|
|
460
460
|
}
|
|
461
|
-
var
|
|
462
|
-
function
|
|
461
|
+
var H = P.ReactCurrentOwner, xe = P.ReactDebugCurrentFrame;
|
|
462
|
+
function $(e) {
|
|
463
463
|
if (e) {
|
|
464
|
-
var r = e._owner, n =
|
|
464
|
+
var r = e._owner, n = L(e.type, e._source, r ? r.type : null);
|
|
465
465
|
xe.setExtraStackFrame(n);
|
|
466
466
|
} else
|
|
467
467
|
xe.setExtraStackFrame(null);
|
|
468
468
|
}
|
|
469
|
-
var
|
|
470
|
-
|
|
471
|
-
function
|
|
469
|
+
var X;
|
|
470
|
+
X = !1;
|
|
471
|
+
function Z(e) {
|
|
472
472
|
return typeof e == "object" && e !== null && e.$$typeof === s;
|
|
473
473
|
}
|
|
474
474
|
function ge() {
|
|
475
475
|
{
|
|
476
|
-
if (
|
|
477
|
-
var e =
|
|
476
|
+
if (H.current) {
|
|
477
|
+
var e = S(H.current.type);
|
|
478
478
|
if (e)
|
|
479
479
|
return `
|
|
480
480
|
|
|
@@ -509,25 +509,25 @@ Check the top-level render call using <` + n + ">.");
|
|
|
509
509
|
return;
|
|
510
510
|
je[n] = !0;
|
|
511
511
|
var i = "";
|
|
512
|
-
e && e._owner && e._owner !==
|
|
512
|
+
e && e._owner && e._owner !== H.current && (i = " It was passed a child from " + S(e._owner.type) + "."), $(e), j('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), $(null);
|
|
513
513
|
}
|
|
514
514
|
}
|
|
515
515
|
function Ee(e, r) {
|
|
516
516
|
{
|
|
517
517
|
if (typeof e != "object")
|
|
518
518
|
return;
|
|
519
|
-
if (
|
|
519
|
+
if (G(e))
|
|
520
520
|
for (var n = 0; n < e.length; n++) {
|
|
521
521
|
var i = e[n];
|
|
522
|
-
|
|
522
|
+
Z(i) && ye(i, r);
|
|
523
523
|
}
|
|
524
|
-
else if (
|
|
524
|
+
else if (Z(e))
|
|
525
525
|
e._store && (e._store.validated = !0);
|
|
526
526
|
else if (e) {
|
|
527
527
|
var d = Pe(e);
|
|
528
528
|
if (typeof d == "function" && d !== e.entries)
|
|
529
529
|
for (var v = d.call(e), f; !(f = v.next()).done; )
|
|
530
|
-
|
|
530
|
+
Z(f.value) && ye(f.value, r);
|
|
531
531
|
}
|
|
532
532
|
}
|
|
533
533
|
}
|
|
@@ -541,19 +541,19 @@ Check the top-level render call using <` + n + ">.");
|
|
|
541
541
|
n = 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 === R))
|
|
545
545
|
n = r.propTypes;
|
|
546
546
|
else
|
|
547
547
|
return;
|
|
548
548
|
if (n) {
|
|
549
|
-
var i =
|
|
549
|
+
var i = S(r);
|
|
550
550
|
qe(n, e.props, "prop", i, e);
|
|
551
|
-
} else if (r.PropTypes !== void 0 && !
|
|
552
|
-
|
|
553
|
-
var d =
|
|
554
|
-
|
|
551
|
+
} else if (r.PropTypes !== void 0 && !X) {
|
|
552
|
+
X = !0;
|
|
553
|
+
var d = S(r);
|
|
554
|
+
j("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", d || "Unknown");
|
|
555
555
|
}
|
|
556
|
-
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved &&
|
|
556
|
+
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && j("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
557
557
|
}
|
|
558
558
|
}
|
|
559
559
|
function or(e) {
|
|
@@ -561,11 +561,11 @@ Check the top-level render call using <` + n + ">.");
|
|
|
561
561
|
for (var r = Object.keys(e.props), n = 0; n < r.length; n++) {
|
|
562
562
|
var i = r[n];
|
|
563
563
|
if (i !== "children" && i !== "key") {
|
|
564
|
-
|
|
564
|
+
$(e), j("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", i), $(null);
|
|
565
565
|
break;
|
|
566
566
|
}
|
|
567
567
|
}
|
|
568
|
-
e.ref !== null && (
|
|
568
|
+
e.ref !== null && ($(e), j("Invalid attribute `ref` supplied to `React.Fragment`."), $(null));
|
|
569
569
|
}
|
|
570
570
|
}
|
|
571
571
|
var Re = {};
|
|
@@ -575,42 +575,42 @@ Check the top-level render call using <` + n + ">.");
|
|
|
575
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
|
-
var
|
|
579
|
-
|
|
580
|
-
var
|
|
581
|
-
e === null ?
|
|
578
|
+
var y = ar();
|
|
579
|
+
y ? c += y : c += ge();
|
|
580
|
+
var b;
|
|
581
|
+
e === null ? b = "null" : G(e) ? b = "array" : e !== void 0 && e.$$typeof === s ? (b = "<" + (S(e.type) || "Unknown") + " />", c = " Did you accidentally export a JSX literal instead of a component?") : b = typeof e, j("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", b, c);
|
|
582
582
|
}
|
|
583
|
-
var
|
|
584
|
-
if (
|
|
585
|
-
return
|
|
583
|
+
var x = nr(e, r, n, d, v);
|
|
584
|
+
if (x == null)
|
|
585
|
+
return x;
|
|
586
586
|
if (f) {
|
|
587
|
-
var
|
|
588
|
-
if (
|
|
587
|
+
var O = r.children;
|
|
588
|
+
if (O !== void 0)
|
|
589
589
|
if (i)
|
|
590
|
-
if (
|
|
591
|
-
for (var
|
|
592
|
-
Ee(
|
|
593
|
-
Object.freeze && Object.freeze(
|
|
590
|
+
if (G(O)) {
|
|
591
|
+
for (var D = 0; D < O.length; D++)
|
|
592
|
+
Ee(O[D], e);
|
|
593
|
+
Object.freeze && Object.freeze(O);
|
|
594
594
|
} else
|
|
595
|
-
|
|
595
|
+
j("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
|
-
Ee(
|
|
597
|
+
Ee(O, e);
|
|
598
598
|
}
|
|
599
|
-
if (
|
|
600
|
-
var k =
|
|
599
|
+
if (F.call(r, "key")) {
|
|
600
|
+
var k = S(e), C = Object.keys(r).filter(function(vr) {
|
|
601
601
|
return vr !== "key";
|
|
602
|
-
}),
|
|
603
|
-
if (!Re[k +
|
|
604
|
-
var dr =
|
|
605
|
-
|
|
602
|
+
}), Q = C.length > 0 ? "{key: someKey, " + C.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
603
|
+
if (!Re[k + Q]) {
|
|
604
|
+
var dr = C.length > 0 ? "{" + C.join(": ..., ") + ": ...}" : "{}";
|
|
605
|
+
j(`A props object containing a "key" prop is being spread into JSX:
|
|
606
606
|
let props = %s;
|
|
607
607
|
<%s {...props} />
|
|
608
608
|
React keys must be passed directly to JSX without using spread:
|
|
609
609
|
let props = %s;
|
|
610
|
-
<%s key={someKey} {...props} />`,
|
|
610
|
+
<%s key={someKey} {...props} />`, Q, k, dr, k), Re[k + Q] = !0;
|
|
611
611
|
}
|
|
612
612
|
}
|
|
613
|
-
return e === o ? or(
|
|
613
|
+
return e === o ? or(x) : ir(x), x;
|
|
614
614
|
}
|
|
615
615
|
}
|
|
616
616
|
function lr(e, r, n) {
|
|
@@ -620,12 +620,12 @@ React keys must be passed directly to JSX without using spread:
|
|
|
620
620
|
return _e(e, r, n, !1);
|
|
621
621
|
}
|
|
622
622
|
var ur = cr, fr = lr;
|
|
623
|
-
|
|
624
|
-
}()),
|
|
623
|
+
W.Fragment = o, W.jsx = ur, W.jsxs = fr;
|
|
624
|
+
}()), W;
|
|
625
625
|
}
|
|
626
626
|
var we;
|
|
627
627
|
function xr() {
|
|
628
|
-
return we || (we = 1, process.env.NODE_ENV === "production" ?
|
|
628
|
+
return we || (we = 1, process.env.NODE_ENV === "production" ? B.exports = mr() : B.exports = br()), B.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(
|
|
@@ -657,7 +657,7 @@ const Tr = () => /* @__PURE__ */ t.jsx("div", { className: "toolbar-pf" }), gr =
|
|
|
657
657
|
)
|
|
658
658
|
]
|
|
659
659
|
}
|
|
660
|
-
) }),
|
|
660
|
+
) }), K = ({
|
|
661
661
|
type: a = "default",
|
|
662
662
|
title: s,
|
|
663
663
|
size: l,
|
|
@@ -665,14 +665,14 @@ const Tr = () => /* @__PURE__ */ t.jsx("div", { className: "toolbar-pf" }), gr =
|
|
|
665
665
|
onClick: u,
|
|
666
666
|
isDisabled: p = !1,
|
|
667
667
|
children: h,
|
|
668
|
-
className:
|
|
668
|
+
className: E = "",
|
|
669
669
|
isLoading: m = !1
|
|
670
670
|
}) => {
|
|
671
|
-
const
|
|
671
|
+
const w = `btn-${a}`, g = l ? `btn-${l}` : "", _ = `${`btn ${w} ${g}`.trim()} ${E}`.trim();
|
|
672
672
|
return /* @__PURE__ */ t.jsx(
|
|
673
673
|
"button",
|
|
674
674
|
{
|
|
675
|
-
className:
|
|
675
|
+
className: _,
|
|
676
676
|
type: "button",
|
|
677
677
|
onClick: u,
|
|
678
678
|
disabled: p || m,
|
|
@@ -736,7 +736,7 @@ const Tr = () => /* @__PURE__ */ t.jsx("div", { className: "toolbar-pf" }), gr =
|
|
|
736
736
|
ref: h
|
|
737
737
|
}
|
|
738
738
|
)
|
|
739
|
-
),
|
|
739
|
+
), Nr = ({ title: a, isOpen: s, onClose: l, children: o, size: u }) => {
|
|
740
740
|
if (!s) return null;
|
|
741
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: [
|
|
@@ -746,45 +746,45 @@ 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
|
-
},
|
|
749
|
+
}, kr = ({ 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
754
|
}, u = l + " " + o[a] || "";
|
|
755
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
|
-
const [
|
|
758
|
-
|
|
759
|
-
},
|
|
760
|
-
|
|
761
|
-
},
|
|
762
|
-
const
|
|
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, className: p = "" }) => {
|
|
757
|
+
const [h, E] = Ne(!1), m = `btn btn-default dropdown-toggle h-full ${p}`, w = () => {
|
|
758
|
+
E((T) => !T);
|
|
759
|
+
}, g = (T) => {
|
|
760
|
+
E(!1), o(T);
|
|
761
|
+
}, R = (T) => {
|
|
762
|
+
const Y = T.id === s;
|
|
763
763
|
return /* @__PURE__ */ t.jsx(
|
|
764
764
|
"li",
|
|
765
765
|
{
|
|
766
|
-
onClick: () =>
|
|
767
|
-
className:
|
|
768
|
-
children: /* @__PURE__ */ t.jsx("a", { href: "#", children:
|
|
766
|
+
onClick: () => g(T),
|
|
767
|
+
className: Y ? "active" : "",
|
|
768
|
+
children: /* @__PURE__ */ t.jsx("a", { href: "#", children: T.title })
|
|
769
769
|
},
|
|
770
|
-
|
|
770
|
+
T.id
|
|
771
771
|
);
|
|
772
|
-
},
|
|
773
|
-
return /* @__PURE__ */ t.jsxs("div", { className:
|
|
772
|
+
}, _ = h ? "dropdown open" : "dropdown";
|
|
773
|
+
return /* @__PURE__ */ t.jsxs("div", { className: _, style: { display: "inline-block" }, children: [
|
|
774
774
|
/* @__PURE__ */ t.jsx(
|
|
775
775
|
"button",
|
|
776
776
|
{
|
|
777
777
|
type: "button",
|
|
778
778
|
disabled: u,
|
|
779
|
-
className:
|
|
780
|
-
onClick:
|
|
779
|
+
className: m,
|
|
780
|
+
onClick: w,
|
|
781
781
|
children: /* @__PURE__ */ t.jsxs("div", { className: "flex items-center", children: [
|
|
782
782
|
l && /* @__PURE__ */ t.jsx("div", { className: "mr-2", children: l }),
|
|
783
783
|
/* @__PURE__ */ t.jsx("span", { className: "caret" })
|
|
784
784
|
] })
|
|
785
785
|
}
|
|
786
786
|
),
|
|
787
|
-
|
|
787
|
+
h && /* @__PURE__ */ t.jsx("ul", { className: "dropdown-menu", children: a.map(R) })
|
|
788
788
|
] });
|
|
789
789
|
}, Er = ({ currentPage: a, total: s, onPageChange: l, pageSize: o }) => {
|
|
790
790
|
const u = Math.ceil(s / o), p = () => {
|
|
@@ -833,8 +833,8 @@ const Tr = () => /* @__PURE__ */ t.jsx("div", { className: "toolbar-pf" }), gr =
|
|
|
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
|
-
/* @__PURE__ */ t.jsx(
|
|
837
|
-
/* @__PURE__ */ t.jsx(yr, { onChange: o, items: Oe, selected: u })
|
|
836
|
+
/* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(K, { className: "m-0", type: "default", onClick: l, children: /* @__PURE__ */ t.jsx("i", { className: "fa fa-refresh" }) }) }),
|
|
837
|
+
/* @__PURE__ */ t.jsx(yr, { className: "m-0", onChange: o, items: Oe, selected: u })
|
|
838
838
|
] });
|
|
839
839
|
}, Wr = ({
|
|
840
840
|
interval: a,
|
|
@@ -888,9 +888,9 @@ const Tr = () => /* @__PURE__ */ t.jsx("div", { className: "toolbar-pf" }), gr =
|
|
|
888
888
|
isDisabled: p = !1,
|
|
889
889
|
className: h = ""
|
|
890
890
|
}) => {
|
|
891
|
-
const [
|
|
892
|
-
const
|
|
893
|
-
u ? u(
|
|
891
|
+
const [E, m] = Ne(o || ""), w = o !== void 0 ? o : E, g = (R) => {
|
|
892
|
+
const _ = R.target.value;
|
|
893
|
+
u ? u(_) : m(_);
|
|
894
894
|
};
|
|
895
895
|
return /* @__PURE__ */ t.jsx(
|
|
896
896
|
"textarea",
|
|
@@ -899,8 +899,8 @@ const Tr = () => /* @__PURE__ */ t.jsx("div", { className: "toolbar-pf" }), gr =
|
|
|
899
899
|
placeholder: a,
|
|
900
900
|
rows: s,
|
|
901
901
|
maxLength: l,
|
|
902
|
-
value:
|
|
903
|
-
onChange:
|
|
902
|
+
value: w,
|
|
903
|
+
onChange: g,
|
|
904
904
|
disabled: p
|
|
905
905
|
}
|
|
906
906
|
);
|
|
@@ -931,19 +931,19 @@ const _r = ({
|
|
|
931
931
|
}
|
|
932
932
|
),
|
|
933
933
|
/* @__PURE__ */ t.jsxs(_r, { children: [
|
|
934
|
-
/* @__PURE__ */ t.jsx(
|
|
935
|
-
/* @__PURE__ */ t.jsx(
|
|
934
|
+
/* @__PURE__ */ t.jsx(K, { children: "Hello" }),
|
|
935
|
+
/* @__PURE__ */ t.jsx(K, { children: "Hello" })
|
|
936
936
|
] })
|
|
937
937
|
] });
|
|
938
938
|
export {
|
|
939
939
|
Mr as Alert,
|
|
940
940
|
gr as Breadcrumb,
|
|
941
|
-
|
|
941
|
+
K as Button,
|
|
942
942
|
Yr as Checkbox,
|
|
943
943
|
yr as Dropdown,
|
|
944
|
-
|
|
944
|
+
kr as HelpText,
|
|
945
945
|
Sr as Input,
|
|
946
|
-
|
|
946
|
+
Nr as Modal,
|
|
947
947
|
Er as Pagination,
|
|
948
948
|
Rr as ReloadButton,
|
|
949
949
|
Ur as SampleComp,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(v,
|
|
1
|
+
(function(v,k){typeof exports=="object"&&typeof module<"u"?k(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],k):(v=typeof globalThis<"u"?globalThis:v||self,k(v["ovirt-ui-toolkit"]={},v.React))})(this,function(v,k){"use strict";var V={exports:{}},$={};/**
|
|
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
|
|
9
|
+
*/var te;function Ie(){if(te)return $;te=1;var a=k,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(E,m,S){var x,_={},T=null,w=null;S!==void 0&&(T=""+S),m.key!==void 0&&(T=""+m.key),m.ref!==void 0&&(w=m.ref);for(x in m)o.call(m,x)&&!h.hasOwnProperty(x)&&(_[x]=m[x]);if(E&&E.defaultProps)for(x in m=E.defaultProps,m)_[x]===void 0&&(_[x]=m[x]);return{$$typeof:s,type:E,key:T,ref:w,props:_,_owner:u.current}}return $.Fragment=l,$.jsx=b,$.jsxs=b,$}var W={};/**
|
|
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
|
|
18
|
-
`+
|
|
19
|
-
`),
|
|
20
|
-
`),
|
|
21
|
-
`+c[
|
|
17
|
+
*/var ne;function Fe(){return ne||(ne=1,process.env.NODE_ENV!=="production"&&function(){var a=k,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"),E=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),S=Symbol.for("react.suspense"),x=Symbol.for("react.suspense_list"),_=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),w=Symbol.for("react.offscreen"),L=Symbol.iterator,ar="@@iterator";function sr(e){if(e===null||typeof e!="object")return null;var r=L&&e[L]||e[ar];return typeof r=="function"?r:null}var A=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function y(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=A.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===S||e===x||ur||e===w||or||lr||cr||typeof e=="object"&&e!==null&&(e.$$typeof===T||e.$$typeof===_||e.$$typeof===b||e.$$typeof===E||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 N(e){if(e==null)return null;if(typeof e.tag=="number"&&y("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")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 S:return"Suspense";case x:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case E: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 _:var i=e.displayName||null;return i!==null?i:N(e.type)||"Memo";case T:{var d=e,p=d._payload,f=d._init;try{return N(f(p))}catch{return null}}}return null}var P=Object.assign,Y=0,de,ve,pe,he,be,me,ge;function je(){}je.__reactDisabledLog=!0;function pr(){{if(Y===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})}Y++}}function hr(){{if(Y--,Y===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:he}),group:P({},e,{value:be}),groupCollapsed:P({},e,{value:me}),groupEnd:P({},e,{value:ge})})}Y<0&&y("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var G=A.ReactCurrentDispatcher,q;function U(e,r,n){{if(q===void 0)try{throw Error()}catch(d){var i=d.stack.trim().match(/\n( *(at )?)/);q=i&&i[1]||""}return`
|
|
18
|
+
`+q+e}}var X=!1,J;{var br=typeof WeakMap=="function"?WeakMap:Map;J=new br}function xe(e,r){if(!e||X)return"";{var n=J.get(e);if(n!==void 0)return n}var i;X=!0;var d=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var p;p=G.current,G.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(C){i=C}Reflect.construct(e,[],f)}else{try{f.call()}catch(C){i=C}e.call(f.prototype)}}else{try{throw Error()}catch(C){i=C}e()}}catch(C){if(C&&i&&typeof C.stack=="string"){for(var c=C.stack.split(`
|
|
19
|
+
`),R=i.stack.split(`
|
|
20
|
+
`),g=c.length-1,j=R.length-1;g>=1&&j>=0&&c[g]!==R[j];)j--;for(;g>=1&&j>=0;g--,j--)if(c[g]!==R[j]){if(g!==1||j!==1)do if(g--,j--,j<0||c[g]!==R[j]){var O=`
|
|
21
|
+
`+c[g].replace(" at new "," at ");return e.displayName&&O.includes("<anonymous>")&&(O=O.replace("<anonymous>",e.displayName)),typeof e=="function"&&J.set(e,O),O}while(g>=1&&j>=0);break}}}finally{X=!1,G.current=p,hr(),Error.prepareStackTrace=d}var F=e?e.displayName||e.name:"",D=F?U(F):"";return typeof e=="function"&&J.set(e,D),D}function mr(e,r,n){return xe(e,!1)}function gr(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function H(e,r,n){if(e==null)return"";if(typeof e=="function")return xe(e,gr(e));if(typeof e=="string")return U(e);switch(e){case S:return U("Suspense");case x:return U("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case m:return mr(e.render);case _:return H(e.type,r,n);case T:{var i=e,d=i._payload,p=i._init;try{return H(p(d),r,n)}catch{}}}return""}var M=Object.prototype.hasOwnProperty,ye={},Re=A.ReactDebugCurrentFrame;function z(e){if(e){var r=e._owner,n=H(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(M);for(var f in e)if(p(e,f)){var c=void 0;try{if(typeof e[f]!="function"){var R=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 R.name="Invariant Violation",R}c=e[f](r,f,i,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(g){c=g}c&&!(c instanceof Error)&&(z(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),z(null)),c instanceof Error&&!(c.message in ye)&&(ye[c.message]=!0,z(d),y("Failed %s type: %s",n,c.message),z(null))}}}var xr=Array.isArray;function Z(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 y("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=A.ReactCurrentOwner,Er={key:!0,ref:!0,__self:!0,__source:!0},Ce,we;function _r(e){if(M.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(M.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,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))};n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}}function Sr(e,r){{var n=function(){we||(we=!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))};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,R=null;n!==void 0&&(_e(n),c=""+n),Tr(r)&&(_e(r.key),c=""+r.key),_r(r)&&(R=r.ref,Cr(r,d));for(p in r)M.call(r,p)&&!Er.hasOwnProperty(p)&&(f[p]=r[p]);if(e&&e.defaultProps){var g=e.defaultProps;for(p in g)f[p]===void 0&&(f[p]=g[p])}if(c||R){var j=typeof e=="function"?e.displayName||e.name||"Unknown":e;c&&wr(f,j),R&&Sr(f,j)}return Or(e,c,R,d,i,Te.current,f)}}var Q=A.ReactCurrentOwner,Se=A.ReactDebugCurrentFrame;function I(e){if(e){var r=e._owner,n=H(e.type,e._source,r?r.type:null);Se.setExtraStackFrame(n)}else Se.setExtraStackFrame(null)}var K;K=!1;function ee(e){return typeof e=="object"&&e!==null&&e.$$typeof===s}function Oe(){{if(Q.current){var e=N(Q.current.type);if(e)return`
|
|
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!==
|
|
25
|
+
Check the top-level render call using <`+n+">.")}return r}}function Ne(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var n=Pr(r);if(ke[n])return;ke[n]=!0;var i="";e&&e._owner&&e._owner!==Q.current&&(i=" It was passed a child from "+N(e._owner.type)+"."),I(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.',n,i),I(null)}}function Pe(e,r){{if(typeof e!="object")return;if(Z(e))for(var n=0;n<e.length;n++){var i=e[n];ee(i)&&Ne(i,r)}else if(ee(e))e._store&&(e._store.validated=!0);else if(e){var d=sr(e);if(typeof d=="function"&&d!==e.entries)for(var p=d.call(e),f;!(f=p.next()).done;)ee(f.value)&&Ne(f.value,r)}}}function Dr(e){{var r=e.type;if(r==null||typeof r=="string")return;var n;if(typeof r=="function")n=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===m||r.$$typeof===_))n=r.propTypes;else return;if(n){var i=N(r);jr(n,e.props,"prop",i,e)}else if(r.PropTypes!==void 0&&!K){K=!0;var d=N(r);y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",d||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&y("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"){I(e),y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",i),I(null);break}}e.ref!==null&&(I(e),y("Invalid attribute `ref` supplied to `React.Fragment`."),I(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 R=Nr();R?c+=R:c+=Oe();var g;e===null?g="null":Z(e)?g="array":e!==void 0&&e.$$typeof===s?(g="<"+(N(e.type)||"Unknown")+" />",c=" Did you accidentally export a JSX literal instead of a component?"):g=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",g,c)}var j=kr(e,r,n,d,p);if(j==null)return j;if(f){var O=r.children;if(O!==void 0)if(i)if(Z(O)){for(var F=0;F<O.length;F++)Pe(O[F],e);Object.freeze&&Object.freeze(O)}else 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.");else Pe(O,e)}if(M.call(r,"key")){var D=N(e),C=Object.keys(r).filter(function(Mr){return Mr!=="key"}),re=C.length>0?"{key: someKey, "+C.join(": ..., ")+": ...}":"{key: someKey}";if(!De[D+re]){var Yr=C.length>0?"{"+C.join(": ..., ")+": ...}":"{}";y(`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} />`,
|
|
30
|
+
<%s key={someKey} {...props} />`,re,D,Yr,D),De[D+re]=!0}}return e===o?Ar(j):Dr(j),j}}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;W.Fragment=o,W.jsx=$r,W.jsxs=Wr}()),W}var ae;function $e(){return ae||(ae=1,process.env.NODE_ENV==="production"?V.exports=Ie():V.exports=Fe()),V.exports}var t=$e();const We=()=>t.jsx("div",{className:"toolbar-pf"}),se=({items:a,className:s})=>t.jsx("ol",{className:`breadcrumb ${s||""}`.trim(),children:a.map((l,o)=>t.jsx("li",{className:l.active?"active":"",children:l.active?l.title:t.jsx("a",{href:l.href,children:l.title})},o))}),Ye=t.jsx("span",{className:"loading-spinner mr-2",children:t.jsxs("svg",{className:"animate-spin h-5 w-5 text-current",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[t.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),t.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]})}),B=({type:a="default",title:s,size:l,label:o,onClick:u,isDisabled:h=!1,children:b,className:E="",isLoading:m=!1})=>{const S=`btn-${a}`,x=l?`btn-${l}`:"",T=`${`btn ${S} ${x}`.trim()} ${E}`.trim();return t.jsx("button",{className:T,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=k.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}),ie=({items:a,selected:s,title:l,onChange:o,isDisabled:u,className:h=""})=>{const[b,E]=k.useState(!1),m=`btn btn-default dropdown-toggle h-full ${h}`,S=()=>{E(w=>!w)},x=w=>{E(!1),o(w)},_=w=>{const L=w.id===s;return t.jsx("li",{onClick:()=>x(w),className:L?"active":"",children:t.jsx("a",{href:"#",children:w.title})},w.id)},T=b?"dropdown open":"dropdown";return t.jsxs("div",{className:T,style:{display:"inline-block"},children:[t.jsx("button",{type:"button",disabled:u,className:m,onClick:S,children:t.jsxs("div",{className:"flex items-center",children:[l&&t.jsx("div",{className:"mr-2",children:l}),t.jsx("span",{className:"caret"})]})}),b&&t.jsx("ul",{className:"dropdown-menu",children:a.map(_)})]})},oe=({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"})})]})]})},le=[{id:1,title:"5 сек",data:5e3},{id:2,title:"10 сек",data:1e4},{id:3,title:"20 сек",data:2e4},{id:4,title:"30 сек",data:3e4},{id:5,title:"60 сек",data:6e4}],ce=({onChange:a,value:s,onRefresh:l})=>{var h;const o=b=>{a(b.data)},u=(h=le.find(b=>b.data===s))==null?void 0:h.id;return t.jsxs("div",{className:"flex",children:[t.jsx("div",{children:t.jsx(B,{className:"m-0",type:"default",onClick:l,children:t.jsx("i",{className:"fa fa-refresh"})})}),t.jsx(ie,{className:"m-0",onChange:o,items:le,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(ce,{value:a,onChange:u,onRefresh:o})}),t.jsx("div",{className:"m-[5px]",children:t.jsx(oe,{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[E,m]=k.useState(o||""),S=o!==void 0?o:E,x=_=>{const T=_.target.value;u?u(T):m(T)};return t.jsx("textarea",{className:b,placeholder:a,rows:s,maxLength:l,value:S,onChange:x,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){k.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(se,{items:[{title:"Дополнения",active:!0},{title:"Название плагина",href:"#Название плагина"}]}),t.jsxs(tr,{children:[t.jsx(B,{children:"Hello"}),t.jsx(B,{children:"Hello"})]})]});v.Alert=er,v.Breadcrumb=se,v.Button=B,v.Checkbox=Qe,v.Dropdown=ie,v.HelpText=Ue,v.Input=Be,v.Modal=Le,v.Pagination=oe,v.ReloadButton=ce,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"})});
|