ovirt-ui-toolkit 0.0.73 → 0.0.77
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -13,15 +13,15 @@ var Ce;
|
|
|
13
13
|
function xr() {
|
|
14
14
|
if (Ce) return A;
|
|
15
15
|
Ce = 1;
|
|
16
|
-
var n = Ne, s = Symbol.for("react.element"),
|
|
17
|
-
function
|
|
18
|
-
var
|
|
19
|
-
T !== void 0 && (_ = "" + T),
|
|
20
|
-
for (
|
|
21
|
-
if (
|
|
22
|
-
return { $$typeof: s, type:
|
|
16
|
+
var n = Ne, s = Symbol.for("react.element"), o = Symbol.for("react.fragment"), i = Object.prototype.hasOwnProperty, c = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, d = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
17
|
+
function v(j, h, T) {
|
|
18
|
+
var y, b = {}, _ = null, W = null;
|
|
19
|
+
T !== void 0 && (_ = "" + T), h.key !== void 0 && (_ = "" + h.key), h.ref !== void 0 && (W = h.ref);
|
|
20
|
+
for (y in h) i.call(h, y) && !d.hasOwnProperty(y) && (b[y] = h[y]);
|
|
21
|
+
if (j && j.defaultProps) for (y in h = j.defaultProps, h) b[y] === void 0 && (b[y] = h[y]);
|
|
22
|
+
return { $$typeof: s, type: j, key: _, ref: W, props: b, _owner: c.current };
|
|
23
23
|
}
|
|
24
|
-
return A.Fragment =
|
|
24
|
+
return A.Fragment = o, A.jsx = v, A.jsxs = v, A;
|
|
25
25
|
}
|
|
26
26
|
var I = {};
|
|
27
27
|
/**
|
|
@@ -36,7 +36,7 @@ var I = {};
|
|
|
36
36
|
var Te;
|
|
37
37
|
function gr() {
|
|
38
38
|
return Te || (Te = 1, process.env.NODE_ENV !== "production" && function() {
|
|
39
|
-
var n = Ne, s = Symbol.for("react.element"),
|
|
39
|
+
var n = Ne, s = Symbol.for("react.element"), o = Symbol.for("react.portal"), i = Symbol.for("react.fragment"), c = Symbol.for("react.strict_mode"), d = Symbol.for("react.profiler"), v = Symbol.for("react.provider"), j = Symbol.for("react.context"), h = Symbol.for("react.forward_ref"), T = Symbol.for("react.suspense"), y = Symbol.for("react.suspense_list"), b = Symbol.for("react.memo"), _ = Symbol.for("react.lazy"), W = Symbol.for("react.offscreen"), K = Symbol.iterator, $e = "@@iterator";
|
|
40
40
|
function De(e) {
|
|
41
41
|
if (e === null || typeof e != "object")
|
|
42
42
|
return null;
|
|
@@ -46,36 +46,36 @@ function gr() {
|
|
|
46
46
|
var k = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
47
47
|
function R(e) {
|
|
48
48
|
{
|
|
49
|
-
for (var r = arguments.length, a = new Array(r > 1 ? r - 1 : 0),
|
|
50
|
-
a[
|
|
49
|
+
for (var r = arguments.length, a = new Array(r > 1 ? r - 1 : 0), l = 1; l < r; l++)
|
|
50
|
+
a[l - 1] = arguments[l];
|
|
51
51
|
Fe("error", e, a);
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
function Fe(e, r, a) {
|
|
55
55
|
{
|
|
56
|
-
var
|
|
57
|
-
|
|
58
|
-
var
|
|
56
|
+
var l = k.ReactDebugCurrentFrame, p = l.getStackAddendum();
|
|
57
|
+
p !== "" && (r += "%s", a = a.concat([p]));
|
|
58
|
+
var m = a.map(function(f) {
|
|
59
59
|
return String(f);
|
|
60
60
|
});
|
|
61
|
-
|
|
61
|
+
m.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, m);
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
64
|
var Ae = !1, Ie = !1, We = !1, Ye = !1, Ve = !1, ee;
|
|
65
65
|
ee = Symbol.for("react.module.reference");
|
|
66
66
|
function Le(e) {
|
|
67
|
-
return !!(typeof e == "string" || typeof e == "function" || e ===
|
|
67
|
+
return !!(typeof e == "string" || typeof e == "function" || e === i || e === d || Ve || e === c || e === T || e === y || Ye || e === W || Ae || Ie || We || typeof e == "object" && e !== null && (e.$$typeof === _ || e.$$typeof === b || e.$$typeof === v || e.$$typeof === j || e.$$typeof === h || // This needs to include all possible module reference object
|
|
68
68
|
// types supported by any Flight configuration anywhere since
|
|
69
69
|
// we don't know which Flight build this will end up being used
|
|
70
70
|
// with.
|
|
71
71
|
e.$$typeof === ee || e.getModuleId !== void 0));
|
|
72
72
|
}
|
|
73
73
|
function Me(e, r, a) {
|
|
74
|
-
var
|
|
75
|
-
if (
|
|
76
|
-
return
|
|
77
|
-
var
|
|
78
|
-
return
|
|
74
|
+
var l = e.displayName;
|
|
75
|
+
if (l)
|
|
76
|
+
return l;
|
|
77
|
+
var p = r.displayName || r.name || "";
|
|
78
|
+
return p !== "" ? a + "(" + p + ")" : a;
|
|
79
79
|
}
|
|
80
80
|
function re(e) {
|
|
81
81
|
return e.displayName || "Context";
|
|
@@ -88,36 +88,36 @@ function gr() {
|
|
|
88
88
|
if (typeof e == "string")
|
|
89
89
|
return e;
|
|
90
90
|
switch (e) {
|
|
91
|
-
case o:
|
|
92
|
-
return "Fragment";
|
|
93
91
|
case i:
|
|
92
|
+
return "Fragment";
|
|
93
|
+
case o:
|
|
94
94
|
return "Portal";
|
|
95
95
|
case d:
|
|
96
96
|
return "Profiler";
|
|
97
|
-
case
|
|
97
|
+
case c:
|
|
98
98
|
return "StrictMode";
|
|
99
99
|
case T:
|
|
100
100
|
return "Suspense";
|
|
101
|
-
case
|
|
101
|
+
case y:
|
|
102
102
|
return "SuspenseList";
|
|
103
103
|
}
|
|
104
104
|
if (typeof e == "object")
|
|
105
105
|
switch (e.$$typeof) {
|
|
106
|
-
case
|
|
106
|
+
case j:
|
|
107
107
|
var r = e;
|
|
108
108
|
return re(r) + ".Consumer";
|
|
109
|
-
case
|
|
109
|
+
case v:
|
|
110
110
|
var a = e;
|
|
111
111
|
return re(a._context) + ".Provider";
|
|
112
|
-
case
|
|
112
|
+
case h:
|
|
113
113
|
return Me(e, e.render, "ForwardRef");
|
|
114
114
|
case b:
|
|
115
|
-
var
|
|
116
|
-
return
|
|
115
|
+
var l = e.displayName || null;
|
|
116
|
+
return l !== null ? l : O(e.type) || "Memo";
|
|
117
117
|
case _: {
|
|
118
|
-
var
|
|
118
|
+
var p = e, m = p._payload, f = p._init;
|
|
119
119
|
try {
|
|
120
|
-
return O(f(
|
|
120
|
+
return O(f(m));
|
|
121
121
|
} catch {
|
|
122
122
|
return null;
|
|
123
123
|
}
|
|
@@ -193,9 +193,9 @@ function gr() {
|
|
|
193
193
|
if (J === void 0)
|
|
194
194
|
try {
|
|
195
195
|
throw Error();
|
|
196
|
-
} catch (
|
|
197
|
-
var
|
|
198
|
-
J =
|
|
196
|
+
} catch (p) {
|
|
197
|
+
var l = p.stack.trim().match(/\n( *(at )?)/);
|
|
198
|
+
J = l && l[1] || "";
|
|
199
199
|
}
|
|
200
200
|
return `
|
|
201
201
|
` + J + e;
|
|
@@ -214,12 +214,12 @@ function gr() {
|
|
|
214
214
|
if (a !== void 0)
|
|
215
215
|
return a;
|
|
216
216
|
}
|
|
217
|
-
var
|
|
217
|
+
var l;
|
|
218
218
|
q = !0;
|
|
219
|
-
var
|
|
219
|
+
var p = Error.prepareStackTrace;
|
|
220
220
|
Error.prepareStackTrace = void 0;
|
|
221
|
-
var
|
|
222
|
-
|
|
221
|
+
var m;
|
|
222
|
+
m = B.current, B.current = null, Ue();
|
|
223
223
|
try {
|
|
224
224
|
if (r) {
|
|
225
225
|
var f = function() {
|
|
@@ -233,14 +233,14 @@ function gr() {
|
|
|
233
233
|
try {
|
|
234
234
|
Reflect.construct(f, []);
|
|
235
235
|
} catch (C) {
|
|
236
|
-
|
|
236
|
+
l = C;
|
|
237
237
|
}
|
|
238
238
|
Reflect.construct(e, [], f);
|
|
239
239
|
} else {
|
|
240
240
|
try {
|
|
241
241
|
f.call();
|
|
242
242
|
} catch (C) {
|
|
243
|
-
|
|
243
|
+
l = C;
|
|
244
244
|
}
|
|
245
245
|
e.call(f.prototype);
|
|
246
246
|
}
|
|
@@ -248,14 +248,14 @@ function gr() {
|
|
|
248
248
|
try {
|
|
249
249
|
throw Error();
|
|
250
250
|
} catch (C) {
|
|
251
|
-
|
|
251
|
+
l = C;
|
|
252
252
|
}
|
|
253
253
|
e();
|
|
254
254
|
}
|
|
255
255
|
} catch (C) {
|
|
256
|
-
if (C &&
|
|
256
|
+
if (C && l && typeof C.stack == "string") {
|
|
257
257
|
for (var u = C.stack.split(`
|
|
258
|
-
`), E =
|
|
258
|
+
`), E = l.stack.split(`
|
|
259
259
|
`), x = u.length - 1, g = E.length - 1; x >= 1 && g >= 0 && u[x] !== E[g]; )
|
|
260
260
|
g--;
|
|
261
261
|
for (; x >= 1 && g >= 0; x--, g--)
|
|
@@ -272,7 +272,7 @@ function gr() {
|
|
|
272
272
|
}
|
|
273
273
|
}
|
|
274
274
|
} finally {
|
|
275
|
-
q = !1, B.current =
|
|
275
|
+
q = !1, B.current = m, Be(), Error.prepareStackTrace = p;
|
|
276
276
|
}
|
|
277
277
|
var $ = e ? e.displayName || e.name : "", S = $ ? Y($) : "";
|
|
278
278
|
return typeof e == "function" && V.set(e, S), S;
|
|
@@ -294,19 +294,19 @@ function gr() {
|
|
|
294
294
|
switch (e) {
|
|
295
295
|
case T:
|
|
296
296
|
return Y("Suspense");
|
|
297
|
-
case
|
|
297
|
+
case y:
|
|
298
298
|
return Y("SuspenseList");
|
|
299
299
|
}
|
|
300
300
|
if (typeof e == "object")
|
|
301
301
|
switch (e.$$typeof) {
|
|
302
|
-
case
|
|
302
|
+
case h:
|
|
303
303
|
return qe(e.render);
|
|
304
304
|
case b:
|
|
305
305
|
return L(e.type, r, a);
|
|
306
306
|
case _: {
|
|
307
|
-
var
|
|
307
|
+
var l = e, p = l._payload, m = l._init;
|
|
308
308
|
try {
|
|
309
|
-
return L(p
|
|
309
|
+
return L(m(p), r, a);
|
|
310
310
|
} catch {
|
|
311
311
|
}
|
|
312
312
|
}
|
|
@@ -321,22 +321,22 @@ function gr() {
|
|
|
321
321
|
} else
|
|
322
322
|
de.setExtraStackFrame(null);
|
|
323
323
|
}
|
|
324
|
-
function Ge(e, r, a,
|
|
324
|
+
function Ge(e, r, a, l, p) {
|
|
325
325
|
{
|
|
326
|
-
var
|
|
326
|
+
var m = Function.call.bind(F);
|
|
327
327
|
for (var f in e)
|
|
328
|
-
if (
|
|
328
|
+
if (m(e, f)) {
|
|
329
329
|
var u = void 0;
|
|
330
330
|
try {
|
|
331
331
|
if (typeof e[f] != "function") {
|
|
332
|
-
var E = Error((
|
|
332
|
+
var E = Error((l || "React class") + ": " + a + " type `" + f + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[f] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
333
333
|
throw E.name = "Invariant Violation", E;
|
|
334
334
|
}
|
|
335
|
-
u = e[f](r, f,
|
|
335
|
+
u = e[f](r, f, l, a, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
336
336
|
} catch (x) {
|
|
337
337
|
u = x;
|
|
338
338
|
}
|
|
339
|
-
u && !(u instanceof Error) && (M(
|
|
339
|
+
u && !(u instanceof Error) && (M(p), R("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", l || "React class", a, f, typeof u), M(null)), u instanceof Error && !(u.message in fe) && (fe[u.message] = !0, M(p), R("Failed %s type: %s", a, u.message), M(null));
|
|
340
340
|
}
|
|
341
341
|
}
|
|
342
342
|
}
|
|
@@ -411,7 +411,7 @@ function gr() {
|
|
|
411
411
|
});
|
|
412
412
|
}
|
|
413
413
|
}
|
|
414
|
-
var ar = function(e, r, a,
|
|
414
|
+
var ar = function(e, r, a, l, p, m, f) {
|
|
415
415
|
var u = {
|
|
416
416
|
// This tag allows us to uniquely identify this as a React Element
|
|
417
417
|
$$typeof: s,
|
|
@@ -421,7 +421,7 @@ function gr() {
|
|
|
421
421
|
ref: a,
|
|
422
422
|
props: f,
|
|
423
423
|
// Record the component responsible for creating this element.
|
|
424
|
-
_owner:
|
|
424
|
+
_owner: m
|
|
425
425
|
};
|
|
426
426
|
return u._store = {}, Object.defineProperty(u._store, "validated", {
|
|
427
427
|
configurable: !1,
|
|
@@ -432,30 +432,30 @@ function gr() {
|
|
|
432
432
|
configurable: !1,
|
|
433
433
|
enumerable: !1,
|
|
434
434
|
writable: !1,
|
|
435
|
-
value:
|
|
435
|
+
value: l
|
|
436
436
|
}), Object.defineProperty(u, "_source", {
|
|
437
437
|
configurable: !1,
|
|
438
438
|
enumerable: !1,
|
|
439
439
|
writable: !1,
|
|
440
|
-
value:
|
|
440
|
+
value: p
|
|
441
441
|
}), Object.freeze && (Object.freeze(u.props), Object.freeze(u)), u;
|
|
442
442
|
};
|
|
443
|
-
function sr(e, r, a,
|
|
443
|
+
function sr(e, r, a, l, p) {
|
|
444
444
|
{
|
|
445
|
-
var
|
|
446
|
-
a !== void 0 && (pe(a), u = "" + a), er(r) && (pe(r.key), u = "" + r.key), Ke(r) && (E = r.ref, rr(r,
|
|
447
|
-
for (
|
|
448
|
-
F.call(r,
|
|
445
|
+
var m, f = {}, u = null, E = null;
|
|
446
|
+
a !== void 0 && (pe(a), u = "" + a), er(r) && (pe(r.key), u = "" + r.key), Ke(r) && (E = r.ref, rr(r, p));
|
|
447
|
+
for (m in r)
|
|
448
|
+
F.call(r, m) && !Qe.hasOwnProperty(m) && (f[m] = r[m]);
|
|
449
449
|
if (e && e.defaultProps) {
|
|
450
450
|
var x = e.defaultProps;
|
|
451
|
-
for (
|
|
452
|
-
f[
|
|
451
|
+
for (m in x)
|
|
452
|
+
f[m] === void 0 && (f[m] = x[m]);
|
|
453
453
|
}
|
|
454
454
|
if (u || E) {
|
|
455
455
|
var g = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
456
456
|
u && tr(f, g), E && nr(f, g);
|
|
457
457
|
}
|
|
458
|
-
return ar(e, u, E,
|
|
458
|
+
return ar(e, u, E, p, l, he.current, f);
|
|
459
459
|
}
|
|
460
460
|
}
|
|
461
461
|
var G = k.ReactCurrentOwner, xe = k.ReactDebugCurrentFrame;
|
|
@@ -508,8 +508,8 @@ Check the top-level render call using <` + a + ">.");
|
|
|
508
508
|
if (je[a])
|
|
509
509
|
return;
|
|
510
510
|
je[a] = !0;
|
|
511
|
-
var
|
|
512
|
-
e && e._owner && e._owner !== G.current && (
|
|
511
|
+
var l = "";
|
|
512
|
+
e && e._owner && e._owner !== G.current && (l = " It was passed a child from " + O(e._owner.type) + "."), P(e), R('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', a, l), P(null);
|
|
513
513
|
}
|
|
514
514
|
}
|
|
515
515
|
function Re(e, r) {
|
|
@@ -518,15 +518,15 @@ Check the top-level render call using <` + a + ">.");
|
|
|
518
518
|
return;
|
|
519
519
|
if (z(e))
|
|
520
520
|
for (var a = 0; a < e.length; a++) {
|
|
521
|
-
var
|
|
522
|
-
X(
|
|
521
|
+
var l = e[a];
|
|
522
|
+
X(l) && ye(l, r);
|
|
523
523
|
}
|
|
524
524
|
else if (X(e))
|
|
525
525
|
e._store && (e._store.validated = !0);
|
|
526
526
|
else if (e) {
|
|
527
|
-
var
|
|
528
|
-
if (typeof
|
|
529
|
-
for (var
|
|
527
|
+
var p = De(e);
|
|
528
|
+
if (typeof p == "function" && p !== e.entries)
|
|
529
|
+
for (var m = p.call(e), f; !(f = m.next()).done; )
|
|
530
530
|
X(f.value) && ye(f.value, r);
|
|
531
531
|
}
|
|
532
532
|
}
|
|
@@ -539,19 +539,19 @@ Check the top-level render call using <` + a + ">.");
|
|
|
539
539
|
var a;
|
|
540
540
|
if (typeof r == "function")
|
|
541
541
|
a = r.propTypes;
|
|
542
|
-
else if (typeof r == "object" && (r.$$typeof ===
|
|
542
|
+
else if (typeof r == "object" && (r.$$typeof === h || // Note: Memo only checks outer props here.
|
|
543
543
|
// Inner props are checked in the reconciler.
|
|
544
544
|
r.$$typeof === b))
|
|
545
545
|
a = r.propTypes;
|
|
546
546
|
else
|
|
547
547
|
return;
|
|
548
548
|
if (a) {
|
|
549
|
-
var
|
|
550
|
-
Ge(a, e.props, "prop",
|
|
549
|
+
var l = O(r);
|
|
550
|
+
Ge(a, e.props, "prop", l, e);
|
|
551
551
|
} else if (r.PropTypes !== void 0 && !H) {
|
|
552
552
|
H = !0;
|
|
553
|
-
var
|
|
554
|
-
R("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",
|
|
553
|
+
var p = O(r);
|
|
554
|
+
R("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", p || "Unknown");
|
|
555
555
|
}
|
|
556
556
|
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && R("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
557
557
|
}
|
|
@@ -559,9 +559,9 @@ Check the top-level render call using <` + a + ">.");
|
|
|
559
559
|
function cr(e) {
|
|
560
560
|
{
|
|
561
561
|
for (var r = Object.keys(e.props), a = 0; a < r.length; a++) {
|
|
562
|
-
var
|
|
563
|
-
if (
|
|
564
|
-
P(e), R("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",
|
|
562
|
+
var l = r[a];
|
|
563
|
+
if (l !== "children" && l !== "key") {
|
|
564
|
+
P(e), R("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", l), P(null);
|
|
565
565
|
break;
|
|
566
566
|
}
|
|
567
567
|
}
|
|
@@ -569,7 +569,7 @@ Check the top-level render call using <` + a + ">.");
|
|
|
569
569
|
}
|
|
570
570
|
}
|
|
571
571
|
var Ee = {};
|
|
572
|
-
function _e(e, r, a,
|
|
572
|
+
function _e(e, r, a, l, p, m) {
|
|
573
573
|
{
|
|
574
574
|
var f = Le(e);
|
|
575
575
|
if (!f) {
|
|
@@ -580,13 +580,13 @@ Check the top-level render call using <` + a + ">.");
|
|
|
580
580
|
var x;
|
|
581
581
|
e === null ? x = "null" : z(e) ? x = "array" : e !== void 0 && e.$$typeof === s ? (x = "<" + (O(e.type) || "Unknown") + " />", u = " Did you accidentally export a JSX literal instead of a component?") : x = typeof e, R("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", x, u);
|
|
582
582
|
}
|
|
583
|
-
var g = sr(e, r, a,
|
|
583
|
+
var g = sr(e, r, a, p, m);
|
|
584
584
|
if (g == null)
|
|
585
585
|
return g;
|
|
586
586
|
if (f) {
|
|
587
587
|
var w = r.children;
|
|
588
588
|
if (w !== void 0)
|
|
589
|
-
if (
|
|
589
|
+
if (l)
|
|
590
590
|
if (z(w)) {
|
|
591
591
|
for (var $ = 0; $ < w.length; $++)
|
|
592
592
|
Re(w[$], e);
|
|
@@ -610,7 +610,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
610
610
|
<%s key={someKey} {...props} />`, Z, S, pr, S), Ee[S + Z] = !0;
|
|
611
611
|
}
|
|
612
612
|
}
|
|
613
|
-
return e ===
|
|
613
|
+
return e === i ? cr(g) : lr(g), g;
|
|
614
614
|
}
|
|
615
615
|
}
|
|
616
616
|
function ur(e, r, a) {
|
|
@@ -620,7 +620,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
620
620
|
return _e(e, r, a, !1);
|
|
621
621
|
}
|
|
622
622
|
var dr = fr, vr = ur;
|
|
623
|
-
I.Fragment =
|
|
623
|
+
I.Fragment = i, I.jsx = dr, I.jsxs = vr;
|
|
624
624
|
}()), I;
|
|
625
625
|
}
|
|
626
626
|
var we;
|
|
@@ -628,7 +628,7 @@ function jr() {
|
|
|
628
628
|
return we || (we = 1, process.env.NODE_ENV === "production" ? U.exports = xr() : U.exports = gr()), U.exports;
|
|
629
629
|
}
|
|
630
630
|
var t = jr();
|
|
631
|
-
const Tr = () => /* @__PURE__ */ t.jsx("div", { className: "toolbar-pf" }), yr = ({ items: n, className: s }) => /* @__PURE__ */ t.jsx("ol", { className: `breadcrumb ${s || ""}`.trim(), children: n.map((
|
|
631
|
+
const Tr = () => /* @__PURE__ */ t.jsx("div", { className: "toolbar-pf" }), yr = ({ items: n, className: s }) => /* @__PURE__ */ t.jsx("ol", { className: `breadcrumb ${s || ""}`.trim(), children: n.map((o, i) => /* @__PURE__ */ t.jsx("li", { className: o.active ? "active" : "", children: o.active ? o.title : /* @__PURE__ */ t.jsx("a", { href: o.href, children: o.title }) }, i)) }), Rr = /* @__PURE__ */ t.jsx("span", { className: "loading-spinner mr-2", children: /* @__PURE__ */ t.jsxs(
|
|
632
632
|
"svg",
|
|
633
633
|
{
|
|
634
634
|
className: "animate-spin h-5 w-5 text-current",
|
|
@@ -660,140 +660,140 @@ const Tr = () => /* @__PURE__ */ t.jsx("div", { className: "toolbar-pf" }), yr =
|
|
|
660
660
|
) }), Se = ({
|
|
661
661
|
type: n = "default",
|
|
662
662
|
title: s,
|
|
663
|
-
size:
|
|
664
|
-
label:
|
|
665
|
-
onClick:
|
|
663
|
+
size: o,
|
|
664
|
+
label: i,
|
|
665
|
+
onClick: c,
|
|
666
666
|
isDisabled: d = !1,
|
|
667
|
-
children:
|
|
668
|
-
className:
|
|
669
|
-
isLoading:
|
|
667
|
+
children: v,
|
|
668
|
+
className: j = "",
|
|
669
|
+
isLoading: h = !1
|
|
670
670
|
}) => {
|
|
671
|
-
const T = `btn-${n}`,
|
|
671
|
+
const T = `btn-${n}`, y = o ? `btn-${o}` : "", _ = `${`btn ${T} ${y}`.trim()} ${j}`.trim();
|
|
672
672
|
return /* @__PURE__ */ t.jsx(
|
|
673
673
|
"button",
|
|
674
674
|
{
|
|
675
675
|
className: _,
|
|
676
676
|
type: "button",
|
|
677
|
-
onClick:
|
|
678
|
-
disabled: d ||
|
|
677
|
+
onClick: c,
|
|
678
|
+
disabled: d || h,
|
|
679
679
|
children: /* @__PURE__ */ t.jsxs("div", { className: "flex items-center justify-center", children: [
|
|
680
|
-
|
|
681
|
-
|
|
680
|
+
h && Rr,
|
|
681
|
+
v || i,
|
|
682
682
|
" ",
|
|
683
683
|
s && /* @__PURE__ */ t.jsx("span", { children: s })
|
|
684
684
|
] })
|
|
685
685
|
}
|
|
686
686
|
);
|
|
687
|
-
}, wr = ({ children: n, eventKey: s, active:
|
|
687
|
+
}, wr = ({ children: n, eventKey: s, active: o }) => /* @__PURE__ */ t.jsx(
|
|
688
688
|
"div",
|
|
689
689
|
{
|
|
690
|
-
className: `tab-pane ${
|
|
690
|
+
className: `tab-pane ${o ? "active" : ""}`,
|
|
691
691
|
id: `${s}-panel`,
|
|
692
692
|
role: "tabpanel",
|
|
693
693
|
"aria-labelledby": `${s}-tab`,
|
|
694
694
|
children: n
|
|
695
695
|
},
|
|
696
696
|
s
|
|
697
|
-
), Or = ({ activeKey: n, onSelect: s, children:
|
|
698
|
-
/* @__PURE__ */ t.jsx("ul", { className: "nav nav-tabs", role: "tablist", children:
|
|
697
|
+
), Or = ({ activeKey: n, onSelect: s, children: o }) => /* @__PURE__ */ t.jsxs("div", { className: "tabs-container", children: [
|
|
698
|
+
/* @__PURE__ */ t.jsx("ul", { className: "nav nav-tabs", role: "tablist", children: o.map(({ props: { eventKey: i, title: c } }) => /* @__PURE__ */ t.jsx("li", { className: n === i ? "active" : "", children: /* @__PURE__ */ t.jsx(
|
|
699
699
|
"a",
|
|
700
700
|
{
|
|
701
|
-
href: `#${
|
|
701
|
+
href: `#${i}`,
|
|
702
702
|
onClick: (d) => {
|
|
703
|
-
d.preventDefault(), s(
|
|
703
|
+
d.preventDefault(), s(i);
|
|
704
704
|
},
|
|
705
|
-
children:
|
|
705
|
+
children: c
|
|
706
706
|
}
|
|
707
|
-
) },
|
|
708
|
-
/* @__PURE__ */ t.jsx("div", { className: "tabs-container", children: /* @__PURE__ */ t.jsx("div", { className: "tab-content pf-c-tab-content", children:
|
|
707
|
+
) }, i)) }),
|
|
708
|
+
/* @__PURE__ */ t.jsx("div", { className: "tabs-container", children: /* @__PURE__ */ t.jsx("div", { className: "tab-content pf-c-tab-content", children: o.map(({ props: { eventKey: i, children: c } }) => /* @__PURE__ */ t.jsx(
|
|
709
709
|
"div",
|
|
710
710
|
{
|
|
711
|
-
className: `tab-pane ${n ===
|
|
712
|
-
id: `${
|
|
711
|
+
className: `tab-pane ${n === i ? "active" : ""}`,
|
|
712
|
+
id: `${i}-panel`,
|
|
713
713
|
role: "tabpanel",
|
|
714
|
-
"aria-labelledby": `${
|
|
715
|
-
children:
|
|
714
|
+
"aria-labelledby": `${i}-tab`,
|
|
715
|
+
children: c
|
|
716
716
|
},
|
|
717
|
-
|
|
717
|
+
i
|
|
718
718
|
)) }) })
|
|
719
719
|
] }), Nr = mr(
|
|
720
720
|
({
|
|
721
721
|
id: n,
|
|
722
722
|
type: s,
|
|
723
|
-
placeholder:
|
|
724
|
-
value:
|
|
725
|
-
onChange:
|
|
723
|
+
placeholder: o = "",
|
|
724
|
+
value: i,
|
|
725
|
+
onChange: c,
|
|
726
726
|
className: d = "form-control",
|
|
727
|
-
...
|
|
728
|
-
},
|
|
729
|
-
const
|
|
727
|
+
...v
|
|
728
|
+
}, j) => {
|
|
729
|
+
const h = `form-control ${d}`;
|
|
730
730
|
return /* @__PURE__ */ t.jsx(
|
|
731
731
|
"input",
|
|
732
732
|
{
|
|
733
733
|
type: s,
|
|
734
734
|
id: n,
|
|
735
|
-
className:
|
|
736
|
-
placeholder:
|
|
737
|
-
value:
|
|
738
|
-
onChange:
|
|
739
|
-
ref:
|
|
740
|
-
...
|
|
735
|
+
className: h,
|
|
736
|
+
placeholder: o,
|
|
737
|
+
value: i,
|
|
738
|
+
onChange: c,
|
|
739
|
+
ref: j,
|
|
740
|
+
...v
|
|
741
741
|
}
|
|
742
742
|
);
|
|
743
743
|
}
|
|
744
|
-
), Sr = ({ title: n, isOpen: s, onClose:
|
|
744
|
+
), Sr = ({ title: n, isOpen: s, onClose: o, children: i, size: c }) => {
|
|
745
745
|
if (!s) return null;
|
|
746
|
-
const d =
|
|
746
|
+
const d = c ? `modal-${c}` : "";
|
|
747
747
|
return /* @__PURE__ */ t.jsx("div", { className: "modal fade in", style: { display: "block" }, tabIndex: -1, role: "dialog", children: /* @__PURE__ */ t.jsx("div", { className: `modal-dialog ${d}`, role: "document", children: /* @__PURE__ */ t.jsxs("div", { className: "modal-content", children: [
|
|
748
748
|
/* @__PURE__ */ t.jsxs("div", { className: "modal-header", children: [
|
|
749
|
-
/* @__PURE__ */ t.jsx("button", { type: "button", className: "close", onClick:
|
|
749
|
+
/* @__PURE__ */ t.jsx("button", { type: "button", className: "close", onClick: o, "aria-hidden": "true", children: /* @__PURE__ */ t.jsx("span", { className: "pficon pficon-close" }) }),
|
|
750
750
|
/* @__PURE__ */ t.jsx("h4", { className: "modal-title", children: n })
|
|
751
751
|
] }),
|
|
752
|
-
/* @__PURE__ */ t.jsx("div", { className: "modal-body", children:
|
|
752
|
+
/* @__PURE__ */ t.jsx("div", { className: "modal-body", children: i })
|
|
753
753
|
] }) }) });
|
|
754
|
-
}, kr = ({ variant: n, children: s, className:
|
|
755
|
-
const
|
|
754
|
+
}, kr = ({ variant: n, children: s, className: o = "" }) => {
|
|
755
|
+
const i = {
|
|
756
756
|
warning: "text-yellow-600",
|
|
757
757
|
success: "text-green-600",
|
|
758
758
|
error: "text-red-600"
|
|
759
|
-
},
|
|
760
|
-
return /* @__PURE__ */ t.jsx("p", { className:
|
|
759
|
+
}, c = o + " " + i[n] || "";
|
|
760
|
+
return /* @__PURE__ */ t.jsx("p", { className: c, children: s });
|
|
761
761
|
}, Pr = ({ children: n, ...s }) => /* @__PURE__ */ t.jsx("table", { ...s, children: n }), $r = ({ children: n, ...s }) => /* @__PURE__ */ t.jsx("tbody", { ...s, children: n }), Dr = ({ children: n, ...s }) => /* @__PURE__ */ t.jsx("td", { ...s, children: n }), Fr = ({ children: n, ...s }) => /* @__PURE__ */ t.jsx("th", { ...s, children: n }), Ar = ({ children: n, ...s }) => /* @__PURE__ */ t.jsx("thead", { ...s, children: n }), Ir = ({ children: n, ...s }) => /* @__PURE__ */ t.jsx("tr", { ...s, children: n }), ke = ({
|
|
762
762
|
items: n,
|
|
763
763
|
selected: s,
|
|
764
|
-
title:
|
|
765
|
-
isOpen:
|
|
766
|
-
setIsOpen:
|
|
764
|
+
title: o,
|
|
765
|
+
isOpen: i,
|
|
766
|
+
setIsOpen: c,
|
|
767
767
|
onChange: d,
|
|
768
|
-
className:
|
|
768
|
+
className: v = ""
|
|
769
769
|
}) => {
|
|
770
|
-
const
|
|
771
|
-
|
|
772
|
-
},
|
|
773
|
-
|
|
770
|
+
const j = (b) => {
|
|
771
|
+
c(!b);
|
|
772
|
+
}, h = (b) => {
|
|
773
|
+
c(!1), d(b);
|
|
774
774
|
}, T = (b) => {
|
|
775
775
|
const _ = b.id === s;
|
|
776
776
|
return /* @__PURE__ */ t.jsx(
|
|
777
777
|
"li",
|
|
778
778
|
{
|
|
779
|
-
onClick: () =>
|
|
779
|
+
onClick: () => h(b),
|
|
780
780
|
className: _ ? "active" : "",
|
|
781
781
|
children: /* @__PURE__ */ t.jsx("a", { href: "#", children: b.title })
|
|
782
782
|
},
|
|
783
783
|
b.id
|
|
784
784
|
);
|
|
785
|
-
},
|
|
785
|
+
}, y = `btn btn-default dropdown-toggle flex-1 ${v}`;
|
|
786
786
|
return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
787
787
|
/* @__PURE__ */ t.jsx(
|
|
788
788
|
"button",
|
|
789
789
|
{
|
|
790
790
|
style: { marginLeft: "0px", left: "-1px" },
|
|
791
|
-
className:
|
|
792
|
-
onClick: () =>
|
|
791
|
+
className: y,
|
|
792
|
+
onClick: () => j(i),
|
|
793
793
|
"data-toggle": "dropdown",
|
|
794
794
|
type: "button",
|
|
795
795
|
children: /* @__PURE__ */ t.jsxs("div", { className: "flex items-center justify-center", children: [
|
|
796
|
-
|
|
796
|
+
o && /* @__PURE__ */ t.jsx("div", { className: "mr-2", children: o }),
|
|
797
797
|
" ",
|
|
798
798
|
/* @__PURE__ */ t.jsx("span", { className: "caret" }),
|
|
799
799
|
" "
|
|
@@ -803,27 +803,34 @@ const Tr = () => /* @__PURE__ */ t.jsx("div", { className: "toolbar-pf" }), yr =
|
|
|
803
803
|
/* @__PURE__ */ t.jsx("ul", { className: "dropdown-menu", role: "menu", children: n.map(T) })
|
|
804
804
|
] });
|
|
805
805
|
}, Wr = (n) => {
|
|
806
|
-
const [s,
|
|
807
|
-
return n.debug && (console.log(n), console.log(
|
|
806
|
+
const [s, o] = Q(!1), i = n.selected, c = n.items.find((d) => d.id == i);
|
|
807
|
+
return n.debug && (console.log(n), console.log(c)), /* @__PURE__ */ t.jsx("div", { className: `btn-group ${s ? "open" : ""}`, children: /* @__PURE__ */ t.jsx(
|
|
808
808
|
ke,
|
|
809
809
|
{
|
|
810
810
|
...n,
|
|
811
|
-
title: (
|
|
812
|
-
setIsOpen:
|
|
811
|
+
title: (c == null ? void 0 : c.title) || n.title,
|
|
812
|
+
setIsOpen: o,
|
|
813
813
|
isOpen: s
|
|
814
814
|
}
|
|
815
815
|
) });
|
|
816
|
-
}, Er = ({
|
|
817
|
-
|
|
818
|
-
|
|
816
|
+
}, Er = ({
|
|
817
|
+
currentPage: n,
|
|
818
|
+
total: s,
|
|
819
|
+
onPageChange: o,
|
|
820
|
+
onNextPage: i,
|
|
821
|
+
onPrevPage: c,
|
|
822
|
+
pageSize: d
|
|
823
|
+
}) => {
|
|
824
|
+
const v = Math.ceil(s / d), j = () => {
|
|
825
|
+
c ? c() : n > 1 && o(n - 1);
|
|
819
826
|
}, h = () => {
|
|
820
|
-
n <
|
|
827
|
+
i ? i() : n < v && o(n + 1);
|
|
821
828
|
};
|
|
822
829
|
return /* @__PURE__ */ t.jsxs("div", { children: [
|
|
823
830
|
/* @__PURE__ */ t.jsx("span", { children: /* @__PURE__ */ t.jsxs("span", { className: "pagination-pf-items-current", children: [
|
|
824
831
|
n,
|
|
825
832
|
" - ",
|
|
826
|
-
|
|
833
|
+
v
|
|
827
834
|
] }) }),
|
|
828
835
|
/* @__PURE__ */ t.jsxs("div", { className: "btn-group ml-2", children: [
|
|
829
836
|
/* @__PURE__ */ t.jsx(
|
|
@@ -832,7 +839,7 @@ const Tr = () => /* @__PURE__ */ t.jsx("div", { className: "toolbar-pf" }), yr =
|
|
|
832
839
|
type: "button",
|
|
833
840
|
className: `btn btn-default ${n === 1 ? "disabled" : ""}`,
|
|
834
841
|
disabled: n === 1,
|
|
835
|
-
onClick:
|
|
842
|
+
onClick: j,
|
|
836
843
|
children: /* @__PURE__ */ t.jsx("i", { className: "fa fa-angle-left" })
|
|
837
844
|
}
|
|
838
845
|
),
|
|
@@ -840,8 +847,8 @@ const Tr = () => /* @__PURE__ */ t.jsx("div", { className: "toolbar-pf" }), yr =
|
|
|
840
847
|
"button",
|
|
841
848
|
{
|
|
842
849
|
type: "button",
|
|
843
|
-
className: `btn btn-default ${n ===
|
|
844
|
-
disabled: n ===
|
|
850
|
+
className: `btn btn-default ${n === v ? "disabled" : ""}`,
|
|
851
|
+
disabled: n === v,
|
|
845
852
|
onClick: h,
|
|
846
853
|
children: /* @__PURE__ */ t.jsx("i", { className: "fa fa-angle-right" })
|
|
847
854
|
}
|
|
@@ -851,21 +858,21 @@ const Tr = () => /* @__PURE__ */ t.jsx("div", { className: "toolbar-pf" }), yr =
|
|
|
851
858
|
}, Pe = ({
|
|
852
859
|
children: n,
|
|
853
860
|
onChange: s,
|
|
854
|
-
items:
|
|
855
|
-
selected:
|
|
856
|
-
className:
|
|
861
|
+
items: o,
|
|
862
|
+
selected: i,
|
|
863
|
+
className: c = ""
|
|
857
864
|
}) => {
|
|
858
|
-
const [d,
|
|
859
|
-
return /* @__PURE__ */ t.jsx("div", { className: `btn-group ${
|
|
865
|
+
const [d, v] = Q(!1);
|
|
866
|
+
return /* @__PURE__ */ t.jsx("div", { className: `btn-group ${c} ${d ? "open" : ""}`, children: /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
860
867
|
n,
|
|
861
868
|
/* @__PURE__ */ t.jsx(
|
|
862
869
|
ke,
|
|
863
870
|
{
|
|
864
|
-
setIsOpen:
|
|
871
|
+
setIsOpen: v,
|
|
865
872
|
isOpen: d,
|
|
866
873
|
onChange: s,
|
|
867
|
-
items:
|
|
868
|
-
selected:
|
|
874
|
+
items: o,
|
|
875
|
+
selected: i
|
|
869
876
|
}
|
|
870
877
|
)
|
|
871
878
|
] }) });
|
|
@@ -875,106 +882,128 @@ const Tr = () => /* @__PURE__ */ t.jsx("div", { className: "toolbar-pf" }), yr =
|
|
|
875
882
|
{ id: 3, title: "20 сек", data: 2e4 },
|
|
876
883
|
{ id: 4, title: "30 сек", data: 3e4 },
|
|
877
884
|
{ id: 5, title: "60 сек", data: 6e4 }
|
|
878
|
-
], _r = ({ onChange: n, value: s, onRefresh:
|
|
885
|
+
], _r = ({ onChange: n, value: s, onRefresh: o }) => {
|
|
879
886
|
var d;
|
|
880
|
-
const
|
|
881
|
-
n(
|
|
882
|
-
},
|
|
883
|
-
return /* @__PURE__ */ t.jsx(Pe, { className: "flex", items: Oe, onChange:
|
|
887
|
+
const i = (v) => {
|
|
888
|
+
n(v.data);
|
|
889
|
+
}, c = (d = Oe.find((v) => v.data === s)) == null ? void 0 : d.id;
|
|
890
|
+
return /* @__PURE__ */ t.jsx(Pe, { className: "flex", items: Oe, onChange: i, selected: c, children: /* @__PURE__ */ t.jsx(Se, { className: "m-0", type: "default", onClick: o, children: /* @__PURE__ */ t.jsx("i", { className: "fa fa-refresh" }) }) });
|
|
884
891
|
}, Yr = ({
|
|
885
892
|
interval: n,
|
|
886
893
|
page: s,
|
|
887
|
-
total:
|
|
888
|
-
onRefresh:
|
|
889
|
-
onChangeInterval:
|
|
894
|
+
total: o,
|
|
895
|
+
onRefresh: i,
|
|
896
|
+
onChangeInterval: c,
|
|
890
897
|
onPageChange: d,
|
|
891
|
-
pageSize:
|
|
898
|
+
pageSize: v,
|
|
899
|
+
onNextPage: j,
|
|
900
|
+
onPrevPage: h
|
|
892
901
|
}) => /* @__PURE__ */ t.jsxs("div", { className: "flex justify-between bg-[#f5f5f5] border border-[#d1d1d1]", children: [
|
|
893
902
|
/* @__PURE__ */ t.jsx("div", { className: "m-[5px]", children: /* @__PURE__ */ t.jsx(
|
|
894
903
|
_r,
|
|
895
904
|
{
|
|
896
905
|
value: n,
|
|
897
|
-
onChange:
|
|
898
|
-
onRefresh:
|
|
906
|
+
onChange: c,
|
|
907
|
+
onRefresh: i
|
|
899
908
|
}
|
|
900
909
|
) }),
|
|
901
910
|
/* @__PURE__ */ t.jsx("div", { className: "m-[5px]", children: /* @__PURE__ */ t.jsx(
|
|
902
911
|
Er,
|
|
903
912
|
{
|
|
904
|
-
|
|
913
|
+
onNextPage: j,
|
|
914
|
+
onPrevPage: h,
|
|
915
|
+
pageSize: v,
|
|
905
916
|
currentPage: s,
|
|
906
|
-
total:
|
|
917
|
+
total: o,
|
|
907
918
|
onPageChange: d
|
|
908
919
|
}
|
|
909
920
|
) })
|
|
910
921
|
] }), Vr = ({
|
|
911
922
|
id: n,
|
|
912
923
|
label: s,
|
|
913
|
-
isChecked:
|
|
914
|
-
onChange:
|
|
915
|
-
className:
|
|
916
|
-
}) => /* @__PURE__ */ t.jsx("div", { className:
|
|
924
|
+
isChecked: o = !1,
|
|
925
|
+
onChange: i,
|
|
926
|
+
className: c = "checkbox"
|
|
927
|
+
}) => /* @__PURE__ */ t.jsx("div", { className: c, children: /* @__PURE__ */ t.jsxs("label", { htmlFor: n, children: [
|
|
917
928
|
/* @__PURE__ */ t.jsx(
|
|
918
929
|
"input",
|
|
919
930
|
{
|
|
920
931
|
type: "checkbox",
|
|
921
932
|
id: n,
|
|
922
|
-
checked:
|
|
923
|
-
onChange:
|
|
933
|
+
checked: o,
|
|
934
|
+
onChange: i
|
|
924
935
|
}
|
|
925
936
|
),
|
|
926
937
|
` ${s}`
|
|
927
938
|
] }) }), Lr = ({
|
|
928
939
|
placeholder: n = "",
|
|
929
940
|
rows: s = 3,
|
|
930
|
-
maxLength:
|
|
931
|
-
value:
|
|
932
|
-
onChange:
|
|
941
|
+
maxLength: o,
|
|
942
|
+
value: i,
|
|
943
|
+
onChange: c,
|
|
933
944
|
isDisabled: d = !1,
|
|
934
|
-
className:
|
|
945
|
+
className: v = ""
|
|
935
946
|
}) => {
|
|
936
|
-
const [
|
|
947
|
+
const [j, h] = Q(i || ""), T = i !== void 0 ? i : j, y = (b) => {
|
|
937
948
|
const _ = b.target.value;
|
|
938
|
-
|
|
949
|
+
c ? c(_) : h(_);
|
|
939
950
|
};
|
|
940
951
|
return /* @__PURE__ */ t.jsx(
|
|
941
952
|
"textarea",
|
|
942
953
|
{
|
|
943
|
-
className:
|
|
954
|
+
className: v,
|
|
944
955
|
placeholder: n,
|
|
945
956
|
rows: s,
|
|
946
|
-
maxLength:
|
|
957
|
+
maxLength: o,
|
|
947
958
|
value: T,
|
|
948
|
-
onChange:
|
|
959
|
+
onChange: y,
|
|
949
960
|
disabled: d
|
|
950
961
|
}
|
|
951
962
|
);
|
|
952
|
-
}, Mr = ({ variant: n, title: s, className:
|
|
953
|
-
const
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
963
|
+
}, Mr = ({ variant: n, title: s, className: o }) => {
|
|
964
|
+
const i = ["success", "info", "warning", "danger"], c = (v) => {
|
|
965
|
+
switch (v) {
|
|
966
|
+
case "success":
|
|
967
|
+
return "pficon pficon-ok";
|
|
968
|
+
case "info":
|
|
969
|
+
return "pficon pficon-info";
|
|
970
|
+
case "warning":
|
|
971
|
+
return "pficon pficon-warning-triangle-o";
|
|
972
|
+
case "danger":
|
|
973
|
+
return "pficon pficon-error-circle-o";
|
|
974
|
+
default:
|
|
975
|
+
return "pficon pficon-info";
|
|
976
|
+
}
|
|
977
|
+
};
|
|
978
|
+
i.includes(n) || (console.warn(`Unsupported alert variant: "${n}". Defaulting to "info".`), n = "info");
|
|
979
|
+
const d = `flex items-center alert alert-${n} ${o || ""}`.trim();
|
|
980
|
+
return /* @__PURE__ */ t.jsxs("div", { className: d, role: "alert", children: [
|
|
981
|
+
/* @__PURE__ */ t.jsx("span", { className: c(n) }),
|
|
982
|
+
/* @__PURE__ */ t.jsx("div", { children: s })
|
|
983
|
+
] });
|
|
984
|
+
}, Ur = ({ variant: n, children: s, onClick: o }) => {
|
|
985
|
+
const i = `label label-${n}`, c = o ? { tabIndex: 0, role: "button", "aria-pressed": !1 } : {};
|
|
957
986
|
return /* @__PURE__ */ t.jsx(
|
|
958
987
|
"span",
|
|
959
988
|
{
|
|
960
|
-
className:
|
|
961
|
-
onClick:
|
|
962
|
-
...
|
|
963
|
-
style: { cursor:
|
|
989
|
+
className: i,
|
|
990
|
+
onClick: o,
|
|
991
|
+
...c,
|
|
992
|
+
style: { cursor: o ? "pointer" : void 0 },
|
|
964
993
|
children: s
|
|
965
994
|
}
|
|
966
995
|
);
|
|
967
996
|
}, Br = (n) => {
|
|
968
|
-
const { label: s, isChecked:
|
|
969
|
-
return /* @__PURE__ */ t.jsx("div", { className: "radio", children: /* @__PURE__ */ t.jsxs("label", { htmlFor:
|
|
997
|
+
const { label: s, isChecked: o = !1, id: i = "radio1", onChange: c, name: d } = n;
|
|
998
|
+
return /* @__PURE__ */ t.jsx("div", { className: "radio", children: /* @__PURE__ */ t.jsxs("label", { htmlFor: i, children: [
|
|
970
999
|
/* @__PURE__ */ t.jsx(
|
|
971
1000
|
"input",
|
|
972
1001
|
{
|
|
973
1002
|
type: "radio",
|
|
974
1003
|
name: d,
|
|
975
|
-
id:
|
|
976
|
-
checked:
|
|
977
|
-
onChange: (
|
|
1004
|
+
id: i,
|
|
1005
|
+
checked: o,
|
|
1006
|
+
onChange: (v) => c(v.target.checked)
|
|
978
1007
|
}
|
|
979
1008
|
),
|
|
980
1009
|
s
|
|
@@ -984,10 +1013,10 @@ function Jr(n, s) {
|
|
|
984
1013
|
br(() => {
|
|
985
1014
|
if (!n)
|
|
986
1015
|
return;
|
|
987
|
-
const
|
|
1016
|
+
const o = setInterval(() => {
|
|
988
1017
|
s();
|
|
989
1018
|
}, n);
|
|
990
|
-
return () => clearInterval(
|
|
1019
|
+
return () => clearInterval(o);
|
|
991
1020
|
}, [n]);
|
|
992
1021
|
}
|
|
993
1022
|
const qr = () => /* @__PURE__ */ t.jsxs("div", { children: [
|