ovirt-ui-toolkit 0.0.8 → 0.0.10
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.
- package/dist/components/dropdown/Dropdown.d.ts +14 -0
- package/dist/components/pagination/Pagination.d.ts +8 -0
- package/dist/components/reloadButton/ReloadButtton.d.ts +8 -0
- package/dist/components/table/Table.d.ts +1 -1
- package/dist/components/table/Tbody.d.ts +1 -1
- package/dist/components/table/Td.d.ts +1 -1
- package/dist/components/table/Th.d.ts +2 -1
- package/dist/components/table/Thead.d.ts +1 -1
- package/dist/components/table/Tr.d.ts +1 -1
- package/dist/components/tableToolbar/TableToolbar.d.ts +11 -0
- package/dist/hooks/useIntervalLoader.d.ts +3 -0
- package/dist/index.d.ts +4 -0
- package/dist/ovirt-ui-toolkit.es.js +416 -307
- package/dist/ovirt-ui-toolkit.umd.js +10 -10
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import Oe from "react";
|
|
1
|
+
import Oe, { useState as vr } from "react";
|
|
2
2
|
var U = { exports: {} }, A = {};
|
|
3
3
|
/**
|
|
4
4
|
* @license React
|
|
@@ -9,19 +9,19 @@ var U = { exports: {} }, A = {};
|
|
|
9
9
|
* This source code is licensed under the MIT license found in the
|
|
10
10
|
* LICENSE file in the root directory of this source tree.
|
|
11
11
|
*/
|
|
12
|
-
var
|
|
13
|
-
function
|
|
14
|
-
if (
|
|
15
|
-
|
|
16
|
-
var
|
|
17
|
-
function
|
|
18
|
-
var
|
|
19
|
-
|
|
20
|
-
for (
|
|
21
|
-
if (
|
|
22
|
-
return { $$typeof: a, type:
|
|
12
|
+
var _e;
|
|
13
|
+
function pr() {
|
|
14
|
+
if (_e) return A;
|
|
15
|
+
_e = 1;
|
|
16
|
+
var i = Oe, a = Symbol.for("react.element"), f = Symbol.for("react.fragment"), c = Object.prototype.hasOwnProperty, v = i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, h = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
17
|
+
function E(T, x, C) {
|
|
18
|
+
var p, R = {}, O = null, W = null;
|
|
19
|
+
C !== void 0 && (O = "" + C), x.key !== void 0 && (O = "" + x.key), x.ref !== void 0 && (W = x.ref);
|
|
20
|
+
for (p in x) c.call(x, p) && !h.hasOwnProperty(p) && (R[p] = x[p]);
|
|
21
|
+
if (T && T.defaultProps) for (p in x = T.defaultProps, x) R[p] === void 0 && (R[p] = x[p]);
|
|
22
|
+
return { $$typeof: a, type: T, key: O, ref: W, props: R, _owner: v.current };
|
|
23
23
|
}
|
|
24
|
-
return A.Fragment =
|
|
24
|
+
return A.Fragment = f, A.jsx = E, A.jsxs = E, A;
|
|
25
25
|
}
|
|
26
26
|
var I = {};
|
|
27
27
|
/**
|
|
@@ -34,90 +34,90 @@ 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
|
|
40
|
-
function
|
|
39
|
+
var i = Oe, a = Symbol.for("react.element"), f = Symbol.for("react.portal"), c = Symbol.for("react.fragment"), v = Symbol.for("react.strict_mode"), h = Symbol.for("react.profiler"), E = Symbol.for("react.provider"), T = Symbol.for("react.context"), x = Symbol.for("react.forward_ref"), C = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), R = Symbol.for("react.memo"), O = Symbol.for("react.lazy"), W = Symbol.for("react.offscreen"), Q = Symbol.iterator, ke = "@@iterator";
|
|
40
|
+
function Ne(e) {
|
|
41
41
|
if (e === null || typeof e != "object")
|
|
42
42
|
return null;
|
|
43
|
-
var r = Q && e[Q] || e[
|
|
43
|
+
var r = Q && e[Q] || e[ke];
|
|
44
44
|
return typeof r == "function" ? r : null;
|
|
45
45
|
}
|
|
46
|
-
var
|
|
47
|
-
function
|
|
46
|
+
var N = i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
47
|
+
function g(e) {
|
|
48
48
|
{
|
|
49
|
-
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0),
|
|
50
|
-
t[
|
|
49
|
+
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), s = 1; s < r; s++)
|
|
50
|
+
t[s - 1] = arguments[s];
|
|
51
51
|
Pe("error", e, t);
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
function Pe(e, r, t) {
|
|
55
55
|
{
|
|
56
|
-
var
|
|
56
|
+
var s = N.ReactDebugCurrentFrame, u = s.getStackAddendum();
|
|
57
57
|
u !== "" && (r += "%s", t = t.concat([u]));
|
|
58
|
-
var
|
|
59
|
-
return String(
|
|
58
|
+
var d = t.map(function(l) {
|
|
59
|
+
return String(l);
|
|
60
60
|
});
|
|
61
|
-
|
|
61
|
+
d.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, d);
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
|
-
var
|
|
64
|
+
var $e = !1, De = !1, Fe = !1, Ae = !1, Ie = !1, K;
|
|
65
65
|
K = Symbol.for("react.module.reference");
|
|
66
|
-
function
|
|
67
|
-
return !!(typeof e == "string" || typeof e == "function" || e ===
|
|
66
|
+
function We(e) {
|
|
67
|
+
return !!(typeof e == "string" || typeof e == "function" || e === c || e === h || Ie || e === v || e === C || e === p || Ae || e === W || $e || De || Fe || typeof e == "object" && e !== null && (e.$$typeof === O || e.$$typeof === R || e.$$typeof === E || e.$$typeof === T || e.$$typeof === x || // 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.
|
|
71
71
|
e.$$typeof === K || e.getModuleId !== void 0));
|
|
72
72
|
}
|
|
73
|
-
function
|
|
74
|
-
var
|
|
75
|
-
if (
|
|
76
|
-
return
|
|
73
|
+
function Ye(e, r, t) {
|
|
74
|
+
var s = e.displayName;
|
|
75
|
+
if (s)
|
|
76
|
+
return s;
|
|
77
77
|
var u = r.displayName || r.name || "";
|
|
78
78
|
return u !== "" ? t + "(" + u + ")" : t;
|
|
79
79
|
}
|
|
80
80
|
function ee(e) {
|
|
81
81
|
return e.displayName || "Context";
|
|
82
82
|
}
|
|
83
|
-
function
|
|
83
|
+
function w(e) {
|
|
84
84
|
if (e == null)
|
|
85
85
|
return null;
|
|
86
|
-
if (typeof e.tag == "number" &&
|
|
86
|
+
if (typeof e.tag == "number" && g("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;
|
|
90
90
|
switch (e) {
|
|
91
|
-
case
|
|
91
|
+
case c:
|
|
92
92
|
return "Fragment";
|
|
93
|
-
case
|
|
93
|
+
case f:
|
|
94
94
|
return "Portal";
|
|
95
|
-
case
|
|
95
|
+
case h:
|
|
96
96
|
return "Profiler";
|
|
97
|
-
case
|
|
97
|
+
case v:
|
|
98
98
|
return "StrictMode";
|
|
99
|
-
case
|
|
99
|
+
case C:
|
|
100
100
|
return "Suspense";
|
|
101
|
-
case
|
|
101
|
+
case p:
|
|
102
102
|
return "SuspenseList";
|
|
103
103
|
}
|
|
104
104
|
if (typeof e == "object")
|
|
105
105
|
switch (e.$$typeof) {
|
|
106
|
-
case
|
|
106
|
+
case T:
|
|
107
107
|
var r = e;
|
|
108
108
|
return ee(r) + ".Consumer";
|
|
109
|
-
case
|
|
109
|
+
case E:
|
|
110
110
|
var t = e;
|
|
111
111
|
return ee(t._context) + ".Provider";
|
|
112
|
-
case b:
|
|
113
|
-
return Ie(e, e.render, "ForwardRef");
|
|
114
112
|
case x:
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
113
|
+
return Ye(e, e.render, "ForwardRef");
|
|
114
|
+
case R:
|
|
115
|
+
var s = e.displayName || null;
|
|
116
|
+
return s !== null ? s : w(e.type) || "Memo";
|
|
117
|
+
case O: {
|
|
118
|
+
var u = e, d = u._payload, l = u._init;
|
|
119
119
|
try {
|
|
120
|
-
return
|
|
120
|
+
return w(l(d));
|
|
121
121
|
} catch {
|
|
122
122
|
return null;
|
|
123
123
|
}
|
|
@@ -125,14 +125,14 @@ function dr() {
|
|
|
125
125
|
}
|
|
126
126
|
return null;
|
|
127
127
|
}
|
|
128
|
-
var
|
|
128
|
+
var S = Object.assign, D = 0, re, te, ne, ae, ie, se, oe;
|
|
129
129
|
function le() {
|
|
130
130
|
}
|
|
131
131
|
le.__reactDisabledLog = !0;
|
|
132
|
-
function
|
|
132
|
+
function Le() {
|
|
133
133
|
{
|
|
134
|
-
if (
|
|
135
|
-
re = console.log, te = console.info, ne = console.warn, ae = console.error, ie = console.group,
|
|
134
|
+
if (D === 0) {
|
|
135
|
+
re = console.log, te = console.info, ne = console.warn, ae = console.error, ie = console.group, se = console.groupCollapsed, oe = console.groupEnd;
|
|
136
136
|
var e = {
|
|
137
137
|
configurable: !0,
|
|
138
138
|
enumerable: !0,
|
|
@@ -149,53 +149,53 @@ function dr() {
|
|
|
149
149
|
groupEnd: e
|
|
150
150
|
});
|
|
151
151
|
}
|
|
152
|
-
|
|
152
|
+
D++;
|
|
153
153
|
}
|
|
154
154
|
}
|
|
155
|
-
function
|
|
155
|
+
function Me() {
|
|
156
156
|
{
|
|
157
|
-
if (
|
|
157
|
+
if (D--, D === 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: S({}, e, {
|
|
165
165
|
value: re
|
|
166
166
|
}),
|
|
167
|
-
info:
|
|
167
|
+
info: S({}, e, {
|
|
168
168
|
value: te
|
|
169
169
|
}),
|
|
170
|
-
warn:
|
|
170
|
+
warn: S({}, e, {
|
|
171
171
|
value: ne
|
|
172
172
|
}),
|
|
173
|
-
error:
|
|
173
|
+
error: S({}, e, {
|
|
174
174
|
value: ae
|
|
175
175
|
}),
|
|
176
|
-
group:
|
|
176
|
+
group: S({}, e, {
|
|
177
177
|
value: ie
|
|
178
178
|
}),
|
|
179
|
-
groupCollapsed:
|
|
180
|
-
value: oe
|
|
181
|
-
}),
|
|
182
|
-
groupEnd: w({}, e, {
|
|
179
|
+
groupCollapsed: S({}, e, {
|
|
183
180
|
value: se
|
|
181
|
+
}),
|
|
182
|
+
groupEnd: S({}, e, {
|
|
183
|
+
value: oe
|
|
184
184
|
})
|
|
185
185
|
});
|
|
186
186
|
}
|
|
187
|
-
|
|
187
|
+
D < 0 && g("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
188
188
|
}
|
|
189
189
|
}
|
|
190
|
-
var B =
|
|
190
|
+
var B = N.ReactCurrentDispatcher, J;
|
|
191
191
|
function Y(e, r, t) {
|
|
192
192
|
{
|
|
193
193
|
if (J === void 0)
|
|
194
194
|
try {
|
|
195
195
|
throw Error();
|
|
196
196
|
} catch (u) {
|
|
197
|
-
var
|
|
198
|
-
J =
|
|
197
|
+
var s = u.stack.trim().match(/\n( *(at )?)/);
|
|
198
|
+
J = s && s[1] || "";
|
|
199
199
|
}
|
|
200
200
|
return `
|
|
201
201
|
` + J + e;
|
|
@@ -203,10 +203,10 @@ function dr() {
|
|
|
203
203
|
}
|
|
204
204
|
var q = !1, L;
|
|
205
205
|
{
|
|
206
|
-
var
|
|
207
|
-
L = new
|
|
206
|
+
var Ve = typeof WeakMap == "function" ? WeakMap : Map;
|
|
207
|
+
L = new Ve();
|
|
208
208
|
}
|
|
209
|
-
function
|
|
209
|
+
function ce(e, r) {
|
|
210
210
|
if (!e || q)
|
|
211
211
|
return "";
|
|
212
212
|
{
|
|
@@ -214,73 +214,73 @@ function dr() {
|
|
|
214
214
|
if (t !== void 0)
|
|
215
215
|
return t;
|
|
216
216
|
}
|
|
217
|
-
var
|
|
217
|
+
var s;
|
|
218
218
|
q = !0;
|
|
219
219
|
var u = Error.prepareStackTrace;
|
|
220
220
|
Error.prepareStackTrace = void 0;
|
|
221
|
-
var
|
|
222
|
-
|
|
221
|
+
var d;
|
|
222
|
+
d = B.current, B.current = null, Le();
|
|
223
223
|
try {
|
|
224
224
|
if (r) {
|
|
225
|
-
var
|
|
225
|
+
var l = function() {
|
|
226
226
|
throw Error();
|
|
227
227
|
};
|
|
228
|
-
if (Object.defineProperty(
|
|
228
|
+
if (Object.defineProperty(l.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(
|
|
235
|
-
} catch (
|
|
236
|
-
|
|
234
|
+
Reflect.construct(l, []);
|
|
235
|
+
} catch (j) {
|
|
236
|
+
s = j;
|
|
237
237
|
}
|
|
238
|
-
Reflect.construct(e, [],
|
|
238
|
+
Reflect.construct(e, [], l);
|
|
239
239
|
} else {
|
|
240
240
|
try {
|
|
241
|
-
|
|
242
|
-
} catch (
|
|
243
|
-
|
|
241
|
+
l.call();
|
|
242
|
+
} catch (j) {
|
|
243
|
+
s = j;
|
|
244
244
|
}
|
|
245
|
-
e.call(
|
|
245
|
+
e.call(l.prototype);
|
|
246
246
|
}
|
|
247
247
|
} else {
|
|
248
248
|
try {
|
|
249
249
|
throw Error();
|
|
250
|
-
} catch (
|
|
251
|
-
|
|
250
|
+
} catch (j) {
|
|
251
|
+
s = j;
|
|
252
252
|
}
|
|
253
253
|
e();
|
|
254
254
|
}
|
|
255
|
-
} catch (
|
|
256
|
-
if (
|
|
257
|
-
for (var
|
|
258
|
-
`),
|
|
259
|
-
`),
|
|
260
|
-
|
|
261
|
-
for (;
|
|
262
|
-
if (
|
|
263
|
-
if (
|
|
255
|
+
} catch (j) {
|
|
256
|
+
if (j && s && typeof j.stack == "string") {
|
|
257
|
+
for (var o = j.stack.split(`
|
|
258
|
+
`), y = s.stack.split(`
|
|
259
|
+
`), b = o.length - 1, m = y.length - 1; b >= 1 && m >= 0 && o[b] !== y[m]; )
|
|
260
|
+
m--;
|
|
261
|
+
for (; b >= 1 && m >= 0; b--, m--)
|
|
262
|
+
if (o[b] !== y[m]) {
|
|
263
|
+
if (b !== 1 || m !== 1)
|
|
264
264
|
do
|
|
265
|
-
if (
|
|
265
|
+
if (b--, m--, m < 0 || o[b] !== y[m]) {
|
|
266
266
|
var _ = `
|
|
267
|
-
` +
|
|
267
|
+
` + o[b].replace(" at new ", " at ");
|
|
268
268
|
return e.displayName && _.includes("<anonymous>") && (_ = _.replace("<anonymous>", e.displayName)), typeof e == "function" && L.set(e, _), _;
|
|
269
269
|
}
|
|
270
|
-
while (
|
|
270
|
+
while (b >= 1 && m >= 0);
|
|
271
271
|
break;
|
|
272
272
|
}
|
|
273
273
|
}
|
|
274
274
|
} finally {
|
|
275
|
-
q = !1, B.current =
|
|
275
|
+
q = !1, B.current = d, Me(), Error.prepareStackTrace = u;
|
|
276
276
|
}
|
|
277
|
-
var
|
|
278
|
-
return typeof e == "function" && L.set(e,
|
|
277
|
+
var $ = e ? e.displayName || e.name : "", k = $ ? Y($) : "";
|
|
278
|
+
return typeof e == "function" && L.set(e, k), k;
|
|
279
279
|
}
|
|
280
|
-
function
|
|
281
|
-
return
|
|
280
|
+
function Ue(e, r, t) {
|
|
281
|
+
return ce(e, !1);
|
|
282
282
|
}
|
|
283
|
-
function
|
|
283
|
+
function Be(e) {
|
|
284
284
|
var r = e.prototype;
|
|
285
285
|
return !!(r && r.isReactComponent);
|
|
286
286
|
}
|
|
@@ -288,32 +288,32 @@ function dr() {
|
|
|
288
288
|
if (e == null)
|
|
289
289
|
return "";
|
|
290
290
|
if (typeof e == "function")
|
|
291
|
-
return
|
|
291
|
+
return ce(e, Be(e));
|
|
292
292
|
if (typeof e == "string")
|
|
293
293
|
return Y(e);
|
|
294
294
|
switch (e) {
|
|
295
|
-
case
|
|
295
|
+
case C:
|
|
296
296
|
return Y("Suspense");
|
|
297
|
-
case
|
|
297
|
+
case p:
|
|
298
298
|
return Y("SuspenseList");
|
|
299
299
|
}
|
|
300
300
|
if (typeof e == "object")
|
|
301
301
|
switch (e.$$typeof) {
|
|
302
|
-
case b:
|
|
303
|
-
return Me(e.render);
|
|
304
302
|
case x:
|
|
303
|
+
return Ue(e.render);
|
|
304
|
+
case R:
|
|
305
305
|
return M(e.type, r, t);
|
|
306
|
-
case
|
|
307
|
-
var
|
|
306
|
+
case O: {
|
|
307
|
+
var s = e, u = s._payload, d = s._init;
|
|
308
308
|
try {
|
|
309
|
-
return M(
|
|
309
|
+
return M(d(u), r, t);
|
|
310
310
|
} catch {
|
|
311
311
|
}
|
|
312
312
|
}
|
|
313
313
|
}
|
|
314
314
|
return "";
|
|
315
315
|
}
|
|
316
|
-
var
|
|
316
|
+
var F = Object.prototype.hasOwnProperty, ue = {}, fe = N.ReactDebugCurrentFrame;
|
|
317
317
|
function V(e) {
|
|
318
318
|
if (e) {
|
|
319
319
|
var r = e._owner, t = M(e.type, e._source, r ? r.type : null);
|
|
@@ -321,36 +321,36 @@ function dr() {
|
|
|
321
321
|
} else
|
|
322
322
|
fe.setExtraStackFrame(null);
|
|
323
323
|
}
|
|
324
|
-
function
|
|
324
|
+
function Je(e, r, t, s, u) {
|
|
325
325
|
{
|
|
326
|
-
var
|
|
327
|
-
for (var
|
|
328
|
-
if (
|
|
329
|
-
var
|
|
326
|
+
var d = Function.call.bind(F);
|
|
327
|
+
for (var l in e)
|
|
328
|
+
if (d(e, l)) {
|
|
329
|
+
var o = void 0;
|
|
330
330
|
try {
|
|
331
|
-
if (typeof e[
|
|
332
|
-
var
|
|
333
|
-
throw
|
|
331
|
+
if (typeof e[l] != "function") {
|
|
332
|
+
var y = Error((s || "React class") + ": " + t + " type `" + l + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[l] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
333
|
+
throw y.name = "Invariant Violation", y;
|
|
334
334
|
}
|
|
335
|
-
|
|
336
|
-
} catch (
|
|
337
|
-
|
|
335
|
+
o = e[l](r, l, s, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
336
|
+
} catch (b) {
|
|
337
|
+
o = b;
|
|
338
338
|
}
|
|
339
|
-
|
|
339
|
+
o && !(o instanceof Error) && (V(u), g("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", s || "React class", t, l, typeof o), V(null)), o instanceof Error && !(o.message in ue) && (ue[o.message] = !0, V(u), g("Failed %s type: %s", t, o.message), V(null));
|
|
340
340
|
}
|
|
341
341
|
}
|
|
342
342
|
}
|
|
343
|
-
var
|
|
343
|
+
var qe = Array.isArray;
|
|
344
344
|
function G(e) {
|
|
345
|
-
return
|
|
345
|
+
return qe(e);
|
|
346
346
|
}
|
|
347
|
-
function
|
|
347
|
+
function Ge(e) {
|
|
348
348
|
{
|
|
349
349
|
var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
350
350
|
return t;
|
|
351
351
|
}
|
|
352
352
|
}
|
|
353
|
-
function
|
|
353
|
+
function ze(e) {
|
|
354
354
|
try {
|
|
355
355
|
return de(e), !1;
|
|
356
356
|
} catch {
|
|
@@ -361,38 +361,38 @@ function dr() {
|
|
|
361
361
|
return "" + e;
|
|
362
362
|
}
|
|
363
363
|
function ve(e) {
|
|
364
|
-
if (
|
|
365
|
-
return
|
|
364
|
+
if (ze(e))
|
|
365
|
+
return g("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ge(e)), de(e);
|
|
366
366
|
}
|
|
367
|
-
var pe =
|
|
367
|
+
var pe = N.ReactCurrentOwner, He = {
|
|
368
368
|
key: !0,
|
|
369
369
|
ref: !0,
|
|
370
370
|
__self: !0,
|
|
371
371
|
__source: !0
|
|
372
|
-
}, be,
|
|
373
|
-
function
|
|
374
|
-
if (
|
|
372
|
+
}, be, he;
|
|
373
|
+
function Xe(e) {
|
|
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;
|
|
378
378
|
}
|
|
379
379
|
return e.ref !== void 0;
|
|
380
380
|
}
|
|
381
|
-
function
|
|
382
|
-
if (
|
|
381
|
+
function Ze(e) {
|
|
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;
|
|
386
386
|
}
|
|
387
387
|
return e.key !== void 0;
|
|
388
388
|
}
|
|
389
|
-
function
|
|
389
|
+
function Qe(e, r) {
|
|
390
390
|
typeof e.ref == "string" && pe.current;
|
|
391
391
|
}
|
|
392
|
-
function
|
|
392
|
+
function Ke(e, r) {
|
|
393
393
|
{
|
|
394
394
|
var t = function() {
|
|
395
|
-
be || (be = !0,
|
|
395
|
+
be || (be = !0, g("%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
|
t.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
398
398
|
get: t,
|
|
@@ -400,10 +400,10 @@ function dr() {
|
|
|
400
400
|
});
|
|
401
401
|
}
|
|
402
402
|
}
|
|
403
|
-
function
|
|
403
|
+
function er(e, r) {
|
|
404
404
|
{
|
|
405
405
|
var t = function() {
|
|
406
|
-
|
|
406
|
+
he || (he = !0, g("%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
|
t.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
409
409
|
get: t,
|
|
@@ -411,70 +411,70 @@ function dr() {
|
|
|
411
411
|
});
|
|
412
412
|
}
|
|
413
413
|
}
|
|
414
|
-
var
|
|
415
|
-
var
|
|
414
|
+
var rr = function(e, r, t, s, u, d, l) {
|
|
415
|
+
var o = {
|
|
416
416
|
// This tag allows us to uniquely identify this as a React Element
|
|
417
417
|
$$typeof: a,
|
|
418
418
|
// Built-in properties that belong on the element
|
|
419
419
|
type: e,
|
|
420
420
|
key: r,
|
|
421
421
|
ref: t,
|
|
422
|
-
props:
|
|
422
|
+
props: l,
|
|
423
423
|
// Record the component responsible for creating this element.
|
|
424
|
-
_owner:
|
|
424
|
+
_owner: d
|
|
425
425
|
};
|
|
426
|
-
return
|
|
426
|
+
return o._store = {}, Object.defineProperty(o._store, "validated", {
|
|
427
427
|
configurable: !1,
|
|
428
428
|
enumerable: !1,
|
|
429
429
|
writable: !0,
|
|
430
430
|
value: !1
|
|
431
|
-
}), Object.defineProperty(
|
|
431
|
+
}), Object.defineProperty(o, "_self", {
|
|
432
432
|
configurable: !1,
|
|
433
433
|
enumerable: !1,
|
|
434
434
|
writable: !1,
|
|
435
|
-
value:
|
|
436
|
-
}), Object.defineProperty(
|
|
435
|
+
value: s
|
|
436
|
+
}), Object.defineProperty(o, "_source", {
|
|
437
437
|
configurable: !1,
|
|
438
438
|
enumerable: !1,
|
|
439
439
|
writable: !1,
|
|
440
440
|
value: u
|
|
441
|
-
}), Object.freeze && (Object.freeze(
|
|
441
|
+
}), Object.freeze && (Object.freeze(o.props), Object.freeze(o)), o;
|
|
442
442
|
};
|
|
443
|
-
function
|
|
443
|
+
function tr(e, r, t, s, u) {
|
|
444
444
|
{
|
|
445
|
-
var
|
|
446
|
-
t !== void 0 && (ve(t),
|
|
447
|
-
for (
|
|
448
|
-
|
|
445
|
+
var d, l = {}, o = null, y = null;
|
|
446
|
+
t !== void 0 && (ve(t), o = "" + t), Ze(r) && (ve(r.key), o = "" + r.key), Xe(r) && (y = r.ref, Qe(r, u));
|
|
447
|
+
for (d in r)
|
|
448
|
+
F.call(r, d) && !He.hasOwnProperty(d) && (l[d] = r[d]);
|
|
449
449
|
if (e && e.defaultProps) {
|
|
450
|
-
var
|
|
451
|
-
for (
|
|
452
|
-
|
|
450
|
+
var b = e.defaultProps;
|
|
451
|
+
for (d in b)
|
|
452
|
+
l[d] === void 0 && (l[d] = b[d]);
|
|
453
453
|
}
|
|
454
|
-
if (
|
|
455
|
-
var
|
|
456
|
-
|
|
454
|
+
if (o || y) {
|
|
455
|
+
var m = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
456
|
+
o && Ke(l, m), y && er(l, m);
|
|
457
457
|
}
|
|
458
|
-
return
|
|
458
|
+
return rr(e, o, y, u, s, pe.current, l);
|
|
459
459
|
}
|
|
460
460
|
}
|
|
461
|
-
var z =
|
|
462
|
-
function
|
|
461
|
+
var z = N.ReactCurrentOwner, me = N.ReactDebugCurrentFrame;
|
|
462
|
+
function P(e) {
|
|
463
463
|
if (e) {
|
|
464
464
|
var r = e._owner, t = M(e.type, e._source, r ? r.type : null);
|
|
465
|
-
|
|
465
|
+
me.setExtraStackFrame(t);
|
|
466
466
|
} else
|
|
467
|
-
|
|
467
|
+
me.setExtraStackFrame(null);
|
|
468
468
|
}
|
|
469
469
|
var H;
|
|
470
470
|
H = !1;
|
|
471
471
|
function X(e) {
|
|
472
472
|
return typeof e == "object" && e !== null && e.$$typeof === a;
|
|
473
473
|
}
|
|
474
|
-
function
|
|
474
|
+
function xe() {
|
|
475
475
|
{
|
|
476
476
|
if (z.current) {
|
|
477
|
-
var e =
|
|
477
|
+
var e = w(z.current.type);
|
|
478
478
|
if (e)
|
|
479
479
|
return `
|
|
480
480
|
|
|
@@ -483,13 +483,13 @@ Check the render method of \`` + e + "`.";
|
|
|
483
483
|
return "";
|
|
484
484
|
}
|
|
485
485
|
}
|
|
486
|
-
function
|
|
486
|
+
function nr(e) {
|
|
487
487
|
return "";
|
|
488
488
|
}
|
|
489
|
-
var
|
|
490
|
-
function
|
|
489
|
+
var ge = {};
|
|
490
|
+
function ar(e) {
|
|
491
491
|
{
|
|
492
|
-
var r =
|
|
492
|
+
var r = xe();
|
|
493
493
|
if (!r) {
|
|
494
494
|
var t = typeof e == "string" ? e : e.displayName || e.name;
|
|
495
495
|
t && (r = `
|
|
@@ -499,39 +499,39 @@ Check the top-level render call using <` + t + ">.");
|
|
|
499
499
|
return r;
|
|
500
500
|
}
|
|
501
501
|
}
|
|
502
|
-
function
|
|
502
|
+
function ye(e, r) {
|
|
503
503
|
{
|
|
504
504
|
if (!e._store || e._store.validated || e.key != null)
|
|
505
505
|
return;
|
|
506
506
|
e._store.validated = !0;
|
|
507
|
-
var t =
|
|
508
|
-
if (
|
|
507
|
+
var t = ar(r);
|
|
508
|
+
if (ge[t])
|
|
509
509
|
return;
|
|
510
|
-
|
|
511
|
-
var
|
|
512
|
-
e && e._owner && e._owner !== z.current && (
|
|
510
|
+
ge[t] = !0;
|
|
511
|
+
var s = "";
|
|
512
|
+
e && e._owner && e._owner !== z.current && (s = " It was passed a child from " + w(e._owner.type) + "."), P(e), g('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, s), P(null);
|
|
513
513
|
}
|
|
514
514
|
}
|
|
515
|
-
function
|
|
515
|
+
function je(e, r) {
|
|
516
516
|
{
|
|
517
517
|
if (typeof e != "object")
|
|
518
518
|
return;
|
|
519
519
|
if (G(e))
|
|
520
520
|
for (var t = 0; t < e.length; t++) {
|
|
521
|
-
var
|
|
522
|
-
X(
|
|
521
|
+
var s = e[t];
|
|
522
|
+
X(s) && ye(s, r);
|
|
523
523
|
}
|
|
524
524
|
else if (X(e))
|
|
525
525
|
e._store && (e._store.validated = !0);
|
|
526
526
|
else if (e) {
|
|
527
|
-
var u =
|
|
527
|
+
var u = Ne(e);
|
|
528
528
|
if (typeof u == "function" && u !== e.entries)
|
|
529
|
-
for (var
|
|
530
|
-
X(
|
|
529
|
+
for (var d = u.call(e), l; !(l = d.next()).done; )
|
|
530
|
+
X(l.value) && ye(l.value, r);
|
|
531
531
|
}
|
|
532
532
|
}
|
|
533
533
|
}
|
|
534
|
-
function
|
|
534
|
+
function ir(e) {
|
|
535
535
|
{
|
|
536
536
|
var r = e.type;
|
|
537
537
|
if (r == null || typeof r == "string")
|
|
@@ -539,189 +539,294 @@ Check the top-level render call using <` + t + ">.");
|
|
|
539
539
|
var t;
|
|
540
540
|
if (typeof r == "function")
|
|
541
541
|
t = r.propTypes;
|
|
542
|
-
else if (typeof r == "object" && (r.$$typeof ===
|
|
542
|
+
else if (typeof r == "object" && (r.$$typeof === x || // 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
|
t = r.propTypes;
|
|
546
546
|
else
|
|
547
547
|
return;
|
|
548
548
|
if (t) {
|
|
549
|
-
var
|
|
550
|
-
|
|
549
|
+
var s = w(r);
|
|
550
|
+
Je(t, e.props, "prop", s, e);
|
|
551
551
|
} else if (r.PropTypes !== void 0 && !H) {
|
|
552
552
|
H = !0;
|
|
553
|
-
var u =
|
|
554
|
-
|
|
553
|
+
var u = w(r);
|
|
554
|
+
g("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", u || "Unknown");
|
|
555
555
|
}
|
|
556
|
-
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved &&
|
|
556
|
+
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && g("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
557
557
|
}
|
|
558
558
|
}
|
|
559
|
-
function
|
|
559
|
+
function sr(e) {
|
|
560
560
|
{
|
|
561
561
|
for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
|
|
562
|
-
var
|
|
563
|
-
if (
|
|
564
|
-
|
|
562
|
+
var s = r[t];
|
|
563
|
+
if (s !== "children" && s !== "key") {
|
|
564
|
+
P(e), g("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", s), P(null);
|
|
565
565
|
break;
|
|
566
566
|
}
|
|
567
567
|
}
|
|
568
|
-
e.ref !== null && (
|
|
568
|
+
e.ref !== null && (P(e), g("Invalid attribute `ref` supplied to `React.Fragment`."), P(null));
|
|
569
569
|
}
|
|
570
570
|
}
|
|
571
|
-
var
|
|
572
|
-
function
|
|
571
|
+
var Ee = {};
|
|
572
|
+
function Re(e, r, t, s, u, d) {
|
|
573
573
|
{
|
|
574
|
-
var
|
|
575
|
-
if (!
|
|
576
|
-
var
|
|
577
|
-
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (
|
|
578
|
-
var
|
|
579
|
-
|
|
580
|
-
var
|
|
581
|
-
e === null ?
|
|
574
|
+
var l = We(e);
|
|
575
|
+
if (!l) {
|
|
576
|
+
var o = "";
|
|
577
|
+
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (o += " 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 y = nr();
|
|
579
|
+
y ? o += y : o += xe();
|
|
580
|
+
var b;
|
|
581
|
+
e === null ? b = "null" : G(e) ? b = "array" : e !== void 0 && e.$$typeof === a ? (b = "<" + (w(e.type) || "Unknown") + " />", o = " Did you accidentally export a JSX literal instead of a component?") : b = typeof e, g("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", b, o);
|
|
582
582
|
}
|
|
583
|
-
var
|
|
584
|
-
if (
|
|
585
|
-
return
|
|
586
|
-
if (
|
|
583
|
+
var m = tr(e, r, t, u, d);
|
|
584
|
+
if (m == null)
|
|
585
|
+
return m;
|
|
586
|
+
if (l) {
|
|
587
587
|
var _ = r.children;
|
|
588
588
|
if (_ !== void 0)
|
|
589
|
-
if (
|
|
589
|
+
if (s)
|
|
590
590
|
if (G(_)) {
|
|
591
|
-
for (var
|
|
592
|
-
|
|
591
|
+
for (var $ = 0; $ < _.length; $++)
|
|
592
|
+
je(_[$], e);
|
|
593
593
|
Object.freeze && Object.freeze(_);
|
|
594
594
|
} else
|
|
595
|
-
|
|
595
|
+
g("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
|
-
|
|
597
|
+
je(_, e);
|
|
598
598
|
}
|
|
599
|
-
if (
|
|
600
|
-
var
|
|
601
|
-
return
|
|
602
|
-
}), Z =
|
|
603
|
-
if (!
|
|
604
|
-
var
|
|
605
|
-
|
|
599
|
+
if (F.call(r, "key")) {
|
|
600
|
+
var k = w(e), j = Object.keys(r).filter(function(dr) {
|
|
601
|
+
return dr !== "key";
|
|
602
|
+
}), Z = j.length > 0 ? "{key: someKey, " + j.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
603
|
+
if (!Ee[k + Z]) {
|
|
604
|
+
var fr = j.length > 0 ? "{" + j.join(": ..., ") + ": ...}" : "{}";
|
|
605
|
+
g(`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} />`, Z,
|
|
610
|
+
<%s key={someKey} {...props} />`, Z, k, fr, k), Ee[k + Z] = !0;
|
|
611
611
|
}
|
|
612
612
|
}
|
|
613
|
-
return e ===
|
|
613
|
+
return e === c ? sr(m) : ir(m), m;
|
|
614
614
|
}
|
|
615
615
|
}
|
|
616
|
-
function ir(e, r, t) {
|
|
617
|
-
return xe(e, r, t, !0);
|
|
618
|
-
}
|
|
619
616
|
function or(e, r, t) {
|
|
620
|
-
return
|
|
617
|
+
return Re(e, r, t, !0);
|
|
621
618
|
}
|
|
622
|
-
|
|
623
|
-
|
|
619
|
+
function lr(e, r, t) {
|
|
620
|
+
return Re(e, r, t, !1);
|
|
621
|
+
}
|
|
622
|
+
var cr = lr, ur = or;
|
|
623
|
+
I.Fragment = c, I.jsx = cr, I.jsxs = ur;
|
|
624
624
|
}()), I;
|
|
625
625
|
}
|
|
626
626
|
var Ce;
|
|
627
|
-
function
|
|
628
|
-
return Ce || (Ce = 1, process.env.NODE_ENV === "production" ? U.exports =
|
|
627
|
+
function hr() {
|
|
628
|
+
return Ce || (Ce = 1, process.env.NODE_ENV === "production" ? U.exports = pr() : U.exports = br()), U.exports;
|
|
629
629
|
}
|
|
630
|
-
var
|
|
631
|
-
const
|
|
632
|
-
type:
|
|
630
|
+
var n = hr();
|
|
631
|
+
const Se = ({
|
|
632
|
+
type: i = "default",
|
|
633
633
|
title: a,
|
|
634
|
-
size:
|
|
635
|
-
label:
|
|
636
|
-
onClick:
|
|
637
|
-
isDisabled:
|
|
638
|
-
children:
|
|
639
|
-
className:
|
|
634
|
+
size: f,
|
|
635
|
+
label: c,
|
|
636
|
+
onClick: v,
|
|
637
|
+
isDisabled: h = !1,
|
|
638
|
+
children: E,
|
|
639
|
+
className: T = ""
|
|
640
640
|
}) => {
|
|
641
|
-
const
|
|
642
|
-
return /* @__PURE__ */
|
|
641
|
+
const x = `btn-${i}`, C = f ? `btn-${f}` : "", R = `${`btn ${x} ${C}`.trim()} ${T}`.trim();
|
|
642
|
+
return /* @__PURE__ */ n.jsx(
|
|
643
643
|
"button",
|
|
644
644
|
{
|
|
645
|
-
className:
|
|
645
|
+
className: R,
|
|
646
646
|
type: "button",
|
|
647
|
-
onClick:
|
|
648
|
-
disabled:
|
|
649
|
-
children: /* @__PURE__ */
|
|
650
|
-
|
|
647
|
+
onClick: v,
|
|
648
|
+
disabled: h,
|
|
649
|
+
children: /* @__PURE__ */ n.jsxs("div", { className: "flex items-center", children: [
|
|
650
|
+
E || c,
|
|
651
651
|
" ",
|
|
652
652
|
a
|
|
653
653
|
] })
|
|
654
654
|
}
|
|
655
655
|
);
|
|
656
|
-
},
|
|
656
|
+
}, Er = ({ children: i, eventKey: a, active: f }) => /* @__PURE__ */ n.jsx(
|
|
657
657
|
"div",
|
|
658
658
|
{
|
|
659
|
-
className: `tab-pane ${
|
|
659
|
+
className: `tab-pane ${f ? "active" : ""}`,
|
|
660
660
|
id: `${a}-panel`,
|
|
661
661
|
role: "tabpanel",
|
|
662
662
|
"aria-labelledby": `${a}-tab`,
|
|
663
|
-
children:
|
|
663
|
+
children: i
|
|
664
664
|
},
|
|
665
665
|
a
|
|
666
|
-
),
|
|
667
|
-
/* @__PURE__ */
|
|
666
|
+
), Rr = ({ activeKey: i, onSelect: a, children: f }) => /* @__PURE__ */ n.jsxs("div", { className: "tabs-container", children: [
|
|
667
|
+
/* @__PURE__ */ n.jsx("ul", { className: "nav nav-tabs", role: "tablist", children: f.map(({ props: { eventKey: c, title: v } }) => /* @__PURE__ */ n.jsx("li", { className: i === c ? "active" : "", children: /* @__PURE__ */ n.jsx(
|
|
668
668
|
"a",
|
|
669
669
|
{
|
|
670
|
-
href: `#${
|
|
671
|
-
onClick: (
|
|
672
|
-
|
|
670
|
+
href: `#${c}`,
|
|
671
|
+
onClick: (h) => {
|
|
672
|
+
h.preventDefault(), a(c);
|
|
673
673
|
},
|
|
674
|
-
children:
|
|
674
|
+
children: v
|
|
675
675
|
}
|
|
676
|
-
) },
|
|
677
|
-
/* @__PURE__ */
|
|
676
|
+
) }, c)) }),
|
|
677
|
+
/* @__PURE__ */ n.jsx("div", { className: "tabs-container", children: /* @__PURE__ */ n.jsx("div", { className: "tab-content pf-c-tab-content", children: f.map(({ props: { eventKey: c, children: v } }) => /* @__PURE__ */ n.jsx(
|
|
678
678
|
"div",
|
|
679
679
|
{
|
|
680
|
-
className: `tab-pane ${
|
|
681
|
-
id: `${
|
|
680
|
+
className: `tab-pane ${i === c ? "active" : ""}`,
|
|
681
|
+
id: `${c}-panel`,
|
|
682
682
|
role: "tabpanel",
|
|
683
|
-
"aria-labelledby": `${
|
|
684
|
-
children:
|
|
683
|
+
"aria-labelledby": `${c}-tab`,
|
|
684
|
+
children: v
|
|
685
685
|
},
|
|
686
|
-
|
|
686
|
+
c
|
|
687
687
|
)) }) })
|
|
688
|
-
] }),
|
|
689
|
-
id:
|
|
688
|
+
] }), _r = ({
|
|
689
|
+
id: i,
|
|
690
690
|
type: a,
|
|
691
|
-
placeholder:
|
|
692
|
-
value:
|
|
693
|
-
onChange:
|
|
694
|
-
className:
|
|
695
|
-
}) => /* @__PURE__ */
|
|
691
|
+
placeholder: f = "",
|
|
692
|
+
value: c,
|
|
693
|
+
onChange: v,
|
|
694
|
+
className: h = "form-control"
|
|
695
|
+
}) => /* @__PURE__ */ n.jsx(
|
|
696
696
|
"input",
|
|
697
697
|
{
|
|
698
698
|
type: a,
|
|
699
|
-
id:
|
|
700
|
-
className:
|
|
701
|
-
placeholder:
|
|
702
|
-
value:
|
|
703
|
-
onChange:
|
|
699
|
+
id: i,
|
|
700
|
+
className: h,
|
|
701
|
+
placeholder: f,
|
|
702
|
+
value: c,
|
|
703
|
+
onChange: v
|
|
704
704
|
}
|
|
705
|
-
),
|
|
705
|
+
), Tr = ({ title: i, isOpen: a, onClose: f, children: c, size: v }) => {
|
|
706
706
|
if (!a) return null;
|
|
707
|
-
const
|
|
708
|
-
return /* @__PURE__ */
|
|
709
|
-
/* @__PURE__ */
|
|
710
|
-
/* @__PURE__ */
|
|
711
|
-
/* @__PURE__ */
|
|
707
|
+
const h = v ? `modal-${v}` : "";
|
|
708
|
+
return /* @__PURE__ */ n.jsx("div", { className: "modal fade in", style: { display: "block" }, tabIndex: -1, role: "dialog", children: /* @__PURE__ */ n.jsx("div", { className: `modal-dialog ${h}`, role: "document", children: /* @__PURE__ */ n.jsxs("div", { className: "modal-content", children: [
|
|
709
|
+
/* @__PURE__ */ n.jsxs("div", { className: "modal-header", children: [
|
|
710
|
+
/* @__PURE__ */ n.jsx("button", { type: "button", className: "close", onClick: f, "aria-hidden": "true", children: /* @__PURE__ */ n.jsx("span", { className: "pficon pficon-close" }) }),
|
|
711
|
+
/* @__PURE__ */ n.jsx("h4", { className: "modal-title", children: i })
|
|
712
712
|
] }),
|
|
713
|
-
/* @__PURE__ */
|
|
713
|
+
/* @__PURE__ */ n.jsx("div", { className: "modal-body", children: c })
|
|
714
714
|
] }) }) });
|
|
715
|
-
},
|
|
716
|
-
const
|
|
715
|
+
}, Cr = ({ variant: i, children: a }) => {
|
|
716
|
+
const c = {
|
|
717
717
|
warning: "text-yellow-600",
|
|
718
718
|
success: "text-green-600",
|
|
719
719
|
error: "text-red-600"
|
|
720
|
-
}[
|
|
721
|
-
return /* @__PURE__ */
|
|
722
|
-
},
|
|
723
|
-
|
|
724
|
-
|
|
720
|
+
}[i] || "";
|
|
721
|
+
return /* @__PURE__ */ n.jsx("p", { className: c, children: a });
|
|
722
|
+
}, wr = ({ children: i, ...a }) => /* @__PURE__ */ n.jsx("table", { ...a, children: i }), Or = ({ children: i, ...a }) => /* @__PURE__ */ n.jsx("tbody", { ...a, children: i }), Sr = ({ children: i, ...a }) => /* @__PURE__ */ n.jsx("td", { ...a, children: i }), kr = ({ children: i, ...a }) => /* @__PURE__ */ n.jsx("th", { ...a, children: i }), Nr = ({ children: i, ...a }) => /* @__PURE__ */ n.jsx("thead", { ...a, children: i }), Pr = ({ children: i, ...a }) => /* @__PURE__ */ n.jsx("tr", { ...a, children: i }), mr = ({ items: i, selected: a, title: f, onChange: c }) => {
|
|
723
|
+
const [v, h] = vr(!1), E = () => {
|
|
724
|
+
h((p) => !p);
|
|
725
|
+
}, T = (p) => {
|
|
726
|
+
h(!1), c(p);
|
|
727
|
+
}, x = (p) => {
|
|
728
|
+
const R = p.id === a;
|
|
729
|
+
return /* @__PURE__ */ n.jsx(
|
|
730
|
+
"li",
|
|
731
|
+
{
|
|
732
|
+
onClick: () => T(p),
|
|
733
|
+
className: R ? "active" : "",
|
|
734
|
+
children: /* @__PURE__ */ n.jsx("a", { href: "#", children: p.title })
|
|
735
|
+
},
|
|
736
|
+
p.id
|
|
737
|
+
);
|
|
738
|
+
}, C = v ? "dropdown open" : "dropdown";
|
|
739
|
+
return /* @__PURE__ */ n.jsxs("div", { className: C, style: { display: "inline-block" }, children: [
|
|
740
|
+
/* @__PURE__ */ n.jsxs(
|
|
741
|
+
"button",
|
|
742
|
+
{
|
|
743
|
+
className: "btn btn-default dropdown-toggle",
|
|
744
|
+
onClick: E,
|
|
745
|
+
children: [
|
|
746
|
+
f,
|
|
747
|
+
/* @__PURE__ */ n.jsx("span", { className: "caret" })
|
|
748
|
+
]
|
|
749
|
+
}
|
|
750
|
+
),
|
|
751
|
+
v && /* @__PURE__ */ n.jsx("ul", { className: "dropdown-menu", children: i.map(x) })
|
|
752
|
+
] });
|
|
753
|
+
}, xr = ({ currentPage: i, totalPages: a, onPageChange: f }) => {
|
|
754
|
+
const c = () => {
|
|
755
|
+
i > 1 && f(i - 1);
|
|
756
|
+
}, v = () => {
|
|
757
|
+
i < a && f(i + 1);
|
|
758
|
+
};
|
|
759
|
+
return /* @__PURE__ */ n.jsxs("div", { children: [
|
|
760
|
+
/* @__PURE__ */ n.jsx("span", { children: /* @__PURE__ */ n.jsxs("span", { className: "pagination-pf-items-current", children: [
|
|
761
|
+
i,
|
|
762
|
+
" - ",
|
|
763
|
+
a
|
|
764
|
+
] }) }),
|
|
765
|
+
/* @__PURE__ */ n.jsxs("div", { className: "btn-group ml-2", children: [
|
|
766
|
+
/* @__PURE__ */ n.jsx(
|
|
767
|
+
"button",
|
|
768
|
+
{
|
|
769
|
+
type: "button",
|
|
770
|
+
className: `btn btn-default ${i === 1 ? "disabled" : ""}`,
|
|
771
|
+
disabled: i === 1,
|
|
772
|
+
onClick: c,
|
|
773
|
+
children: /* @__PURE__ */ n.jsx("i", { className: "fa fa-angle-left" })
|
|
774
|
+
}
|
|
775
|
+
),
|
|
776
|
+
/* @__PURE__ */ n.jsx(
|
|
777
|
+
"button",
|
|
778
|
+
{
|
|
779
|
+
type: "button",
|
|
780
|
+
className: `btn btn-default ${i === a ? "disabled" : ""}`,
|
|
781
|
+
disabled: i === a,
|
|
782
|
+
onClick: v,
|
|
783
|
+
children: /* @__PURE__ */ n.jsx("i", { className: "fa fa-angle-right" })
|
|
784
|
+
}
|
|
785
|
+
)
|
|
786
|
+
] })
|
|
787
|
+
] });
|
|
788
|
+
}, we = [
|
|
789
|
+
{ id: 1, title: "5 сек", data: 5e3 },
|
|
790
|
+
{ id: 2, title: "10 сек", data: 1e4 },
|
|
791
|
+
{ id: 3, title: "20 сек", data: 2e4 },
|
|
792
|
+
{ id: 4, title: "30 сек", data: 3e4 },
|
|
793
|
+
{ id: 5, title: "60 сек", data: 6e4 }
|
|
794
|
+
], gr = ({ onChange: i, value: a, onRefresh: f }) => {
|
|
795
|
+
var h;
|
|
796
|
+
const c = (E) => {
|
|
797
|
+
i(E.data);
|
|
798
|
+
}, v = (h = we.find((E) => E.data === a)) == null ? void 0 : h.id;
|
|
799
|
+
return /* @__PURE__ */ n.jsxs("div", { className: "flex", children: [
|
|
800
|
+
/* @__PURE__ */ n.jsx(Se, { type: "default", onClick: f, children: /* @__PURE__ */ n.jsx("i", { className: "fa fa-refresh" }) }),
|
|
801
|
+
/* @__PURE__ */ n.jsx(mr, { onChange: c, items: we, selected: v })
|
|
802
|
+
] });
|
|
803
|
+
}, $r = ({
|
|
804
|
+
interval: i,
|
|
805
|
+
page: a,
|
|
806
|
+
totalPages: f,
|
|
807
|
+
onRefresh: c,
|
|
808
|
+
onChangeInterval: v,
|
|
809
|
+
onPageChange: h
|
|
810
|
+
}) => /* @__PURE__ */ n.jsxs("div", { className: "flex justify-between bg-[#f5f5f5] border border-[#d1d1d1]", children: [
|
|
811
|
+
/* @__PURE__ */ n.jsx("div", { className: "m-[5px]", children: /* @__PURE__ */ n.jsx(
|
|
812
|
+
gr,
|
|
813
|
+
{
|
|
814
|
+
value: i,
|
|
815
|
+
onChange: v,
|
|
816
|
+
onRefresh: c
|
|
817
|
+
}
|
|
818
|
+
) }),
|
|
819
|
+
/* @__PURE__ */ n.jsx("div", { className: "m-[5px]", children: /* @__PURE__ */ n.jsx(
|
|
820
|
+
xr,
|
|
821
|
+
{
|
|
822
|
+
currentPage: a,
|
|
823
|
+
totalPages: f,
|
|
824
|
+
onPageChange: h
|
|
825
|
+
}
|
|
826
|
+
) })
|
|
827
|
+
] }), yr = ({ items: i }) => /* @__PURE__ */ n.jsx("ol", { className: "breadcrumb", children: i.map((a, f) => /* @__PURE__ */ n.jsx("li", { className: a.active ? "active" : "", children: a.active ? a.title : /* @__PURE__ */ n.jsx("a", { href: a.href, children: a.title }) }, f)) }), Dr = () => /* @__PURE__ */ n.jsxs("div", { children: [
|
|
828
|
+
/* @__PURE__ */ n.jsx(
|
|
829
|
+
yr,
|
|
725
830
|
{
|
|
726
831
|
items: [
|
|
727
832
|
{ title: "Дополнения", active: !0 },
|
|
@@ -729,20 +834,24 @@ const pr = ({
|
|
|
729
834
|
]
|
|
730
835
|
}
|
|
731
836
|
),
|
|
732
|
-
/* @__PURE__ */
|
|
837
|
+
/* @__PURE__ */ n.jsx(Se, { children: "Hello" })
|
|
733
838
|
] });
|
|
734
839
|
export {
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
Or as
|
|
840
|
+
Se as Button,
|
|
841
|
+
mr as Dropdown,
|
|
842
|
+
Cr as HelpText,
|
|
843
|
+
_r as Input,
|
|
844
|
+
Tr as Modal,
|
|
845
|
+
xr as Pagination,
|
|
846
|
+
gr as ReloadButton,
|
|
847
|
+
Dr as SampleComp,
|
|
848
|
+
Er as Tab,
|
|
849
|
+
wr as Table,
|
|
850
|
+
$r as TableToolbar,
|
|
851
|
+
Rr as Tabs,
|
|
852
|
+
Or as Tbody,
|
|
853
|
+
Sr as Td,
|
|
854
|
+
kr as Th,
|
|
855
|
+
Nr as Thead,
|
|
856
|
+
Pr as Tr
|
|
748
857
|
};
|