kelt-ui-kit-react 1.7.4 → 1.7.5
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/index.js
CHANGED
|
@@ -52,41 +52,41 @@ function Xo() {
|
|
|
52
52
|
var j = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
53
53
|
function y(u) {
|
|
54
54
|
{
|
|
55
|
-
for (var x = arguments.length,
|
|
56
|
-
|
|
57
|
-
|
|
55
|
+
for (var x = arguments.length, D = new Array(x > 1 ? x - 1 : 0), I = 1; I < x; I++)
|
|
56
|
+
D[I - 1] = arguments[I];
|
|
57
|
+
O("error", u, D);
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function O(u, x, D) {
|
|
61
61
|
{
|
|
62
62
|
var I = j.ReactDebugCurrentFrame, U = I.getStackAddendum();
|
|
63
|
-
U !== "" && (x += "%s",
|
|
64
|
-
var N =
|
|
65
|
-
return String(
|
|
63
|
+
U !== "" && (x += "%s", D = D.concat([U]));
|
|
64
|
+
var N = D.map(function(C) {
|
|
65
|
+
return String(C);
|
|
66
66
|
});
|
|
67
67
|
N.unshift("Warning: " + x), Function.prototype.apply.call(console[u], console, N);
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
|
-
var S = !1, R = !1,
|
|
70
|
+
var S = !1, R = !1, P = !1, E = !1, Y = !1, b;
|
|
71
71
|
b = Symbol.for("react.module.reference");
|
|
72
72
|
function L(u) {
|
|
73
|
-
return !!(typeof u == "string" || typeof u == "function" || u === n || u === i ||
|
|
73
|
+
return !!(typeof u == "string" || typeof u == "function" || u === n || u === i || Y || u === a || u === d || u === f || E || u === v || S || R || P || typeof u == "object" && u !== null && (u.$$typeof === g || u.$$typeof === h || u.$$typeof === s || u.$$typeof === l || u.$$typeof === c || // This needs to include all possible module reference object
|
|
74
74
|
// types supported by any Flight configuration anywhere since
|
|
75
75
|
// we don't know which Flight build this will end up being used
|
|
76
76
|
// with.
|
|
77
77
|
u.$$typeof === b || u.getModuleId !== void 0));
|
|
78
78
|
}
|
|
79
|
-
function T(u, x,
|
|
79
|
+
function T(u, x, D) {
|
|
80
80
|
var I = u.displayName;
|
|
81
81
|
if (I)
|
|
82
82
|
return I;
|
|
83
83
|
var U = x.displayName || x.name || "";
|
|
84
|
-
return U !== "" ?
|
|
84
|
+
return U !== "" ? D + "(" + U + ")" : D;
|
|
85
85
|
}
|
|
86
86
|
function A(u) {
|
|
87
87
|
return u.displayName || "Context";
|
|
88
88
|
}
|
|
89
|
-
function
|
|
89
|
+
function k(u) {
|
|
90
90
|
if (u == null)
|
|
91
91
|
return null;
|
|
92
92
|
if (typeof u.tag == "number" && y("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof u == "function")
|
|
@@ -113,17 +113,17 @@ function Xo() {
|
|
|
113
113
|
var x = u;
|
|
114
114
|
return A(x) + ".Consumer";
|
|
115
115
|
case s:
|
|
116
|
-
var
|
|
117
|
-
return A(
|
|
116
|
+
var D = u;
|
|
117
|
+
return A(D._context) + ".Provider";
|
|
118
118
|
case c:
|
|
119
119
|
return T(u, u.render, "ForwardRef");
|
|
120
120
|
case h:
|
|
121
121
|
var I = u.displayName || null;
|
|
122
|
-
return I !== null ? I :
|
|
122
|
+
return I !== null ? I : k(u.type) || "Memo";
|
|
123
123
|
case g: {
|
|
124
|
-
var U = u, N = U._payload,
|
|
124
|
+
var U = u, N = U._payload, C = U._init;
|
|
125
125
|
try {
|
|
126
|
-
return
|
|
126
|
+
return k(C(N));
|
|
127
127
|
} catch {
|
|
128
128
|
return null;
|
|
129
129
|
}
|
|
@@ -194,7 +194,7 @@ function Xo() {
|
|
|
194
194
|
}
|
|
195
195
|
}
|
|
196
196
|
var me = j.ReactCurrentDispatcher, pe;
|
|
197
|
-
function ue(u, x,
|
|
197
|
+
function ue(u, x, D) {
|
|
198
198
|
{
|
|
199
199
|
if (pe === void 0)
|
|
200
200
|
try {
|
|
@@ -216,9 +216,9 @@ function Xo() {
|
|
|
216
216
|
if (!u || ne)
|
|
217
217
|
return "";
|
|
218
218
|
{
|
|
219
|
-
var
|
|
220
|
-
if (
|
|
221
|
-
return
|
|
219
|
+
var D = De.get(u);
|
|
220
|
+
if (D !== void 0)
|
|
221
|
+
return D;
|
|
222
222
|
}
|
|
223
223
|
var I;
|
|
224
224
|
ne = !0;
|
|
@@ -228,27 +228,27 @@ function Xo() {
|
|
|
228
228
|
N = me.current, me.current = null, Ee();
|
|
229
229
|
try {
|
|
230
230
|
if (x) {
|
|
231
|
-
var
|
|
231
|
+
var C = function() {
|
|
232
232
|
throw Error();
|
|
233
233
|
};
|
|
234
|
-
if (Object.defineProperty(
|
|
234
|
+
if (Object.defineProperty(C.prototype, "props", {
|
|
235
235
|
set: function() {
|
|
236
236
|
throw Error();
|
|
237
237
|
}
|
|
238
238
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
239
239
|
try {
|
|
240
|
-
Reflect.construct(
|
|
240
|
+
Reflect.construct(C, []);
|
|
241
241
|
} catch (ye) {
|
|
242
242
|
I = ye;
|
|
243
243
|
}
|
|
244
|
-
Reflect.construct(u, [],
|
|
244
|
+
Reflect.construct(u, [], C);
|
|
245
245
|
} else {
|
|
246
246
|
try {
|
|
247
|
-
|
|
247
|
+
C.call();
|
|
248
248
|
} catch (ye) {
|
|
249
249
|
I = ye;
|
|
250
250
|
}
|
|
251
|
-
u.call(
|
|
251
|
+
u.call(C.prototype);
|
|
252
252
|
}
|
|
253
253
|
} else {
|
|
254
254
|
try {
|
|
@@ -260,17 +260,17 @@ function Xo() {
|
|
|
260
260
|
}
|
|
261
261
|
} catch (ye) {
|
|
262
262
|
if (ye && I && typeof ye.stack == "string") {
|
|
263
|
-
for (var
|
|
263
|
+
for (var _ = ye.stack.split(`
|
|
264
264
|
`), G = I.stack.split(`
|
|
265
|
-
`), B =
|
|
265
|
+
`), B = _.length - 1, Q = G.length - 1; B >= 1 && Q >= 0 && _[B] !== G[Q]; )
|
|
266
266
|
Q--;
|
|
267
267
|
for (; B >= 1 && Q >= 0; B--, Q--)
|
|
268
|
-
if (
|
|
268
|
+
if (_[B] !== G[Q]) {
|
|
269
269
|
if (B !== 1 || Q !== 1)
|
|
270
270
|
do
|
|
271
|
-
if (B--, Q--, Q < 0 ||
|
|
271
|
+
if (B--, Q--, Q < 0 || _[B] !== G[Q]) {
|
|
272
272
|
var ge = `
|
|
273
|
-
` +
|
|
273
|
+
` + _[B].replace(" at new ", " at ");
|
|
274
274
|
return u.displayName && ge.includes("<anonymous>") && (ge = ge.replace("<anonymous>", u.displayName)), typeof u == "function" && De.set(u, ge), ge;
|
|
275
275
|
}
|
|
276
276
|
while (B >= 1 && Q >= 0);
|
|
@@ -283,14 +283,14 @@ function Xo() {
|
|
|
283
283
|
var We = u ? u.displayName || u.name : "", Je = We ? ue(We) : "";
|
|
284
284
|
return typeof u == "function" && De.set(u, Je), Je;
|
|
285
285
|
}
|
|
286
|
-
function Ot(u, x,
|
|
286
|
+
function Ot(u, x, D) {
|
|
287
287
|
return he(u, !1);
|
|
288
288
|
}
|
|
289
289
|
function re(u) {
|
|
290
290
|
var x = u.prototype;
|
|
291
291
|
return !!(x && x.isReactComponent);
|
|
292
292
|
}
|
|
293
|
-
function _e(u, x,
|
|
293
|
+
function _e(u, x, D) {
|
|
294
294
|
if (u == null)
|
|
295
295
|
return "";
|
|
296
296
|
if (typeof u == "function")
|
|
@@ -308,11 +308,11 @@ function Xo() {
|
|
|
308
308
|
case c:
|
|
309
309
|
return Ot(u.render);
|
|
310
310
|
case h:
|
|
311
|
-
return _e(u.type, x,
|
|
311
|
+
return _e(u.type, x, D);
|
|
312
312
|
case g: {
|
|
313
313
|
var I = u, U = I._payload, N = I._init;
|
|
314
314
|
try {
|
|
315
|
-
return _e(N(U), x,
|
|
315
|
+
return _e(N(U), x, D);
|
|
316
316
|
} catch {
|
|
317
317
|
}
|
|
318
318
|
}
|
|
@@ -322,27 +322,27 @@ function Xo() {
|
|
|
322
322
|
var se = Object.prototype.hasOwnProperty, He = {}, Nt = j.ReactDebugCurrentFrame;
|
|
323
323
|
function qe(u) {
|
|
324
324
|
if (u) {
|
|
325
|
-
var x = u._owner,
|
|
326
|
-
Nt.setExtraStackFrame(
|
|
325
|
+
var x = u._owner, D = _e(u.type, u._source, x ? x.type : null);
|
|
326
|
+
Nt.setExtraStackFrame(D);
|
|
327
327
|
} else
|
|
328
328
|
Nt.setExtraStackFrame(null);
|
|
329
329
|
}
|
|
330
|
-
function Mr(u, x,
|
|
330
|
+
function Mr(u, x, D, I, U) {
|
|
331
331
|
{
|
|
332
332
|
var N = Function.call.bind(se);
|
|
333
|
-
for (var
|
|
334
|
-
if (N(u,
|
|
335
|
-
var
|
|
333
|
+
for (var C in u)
|
|
334
|
+
if (N(u, C)) {
|
|
335
|
+
var _ = void 0;
|
|
336
336
|
try {
|
|
337
|
-
if (typeof u[
|
|
338
|
-
var G = Error((I || "React class") + ": " +
|
|
337
|
+
if (typeof u[C] != "function") {
|
|
338
|
+
var G = Error((I || "React class") + ": " + D + " type `" + C + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof u[C] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
339
339
|
throw G.name = "Invariant Violation", G;
|
|
340
340
|
}
|
|
341
|
-
|
|
341
|
+
_ = u[C](x, C, I, D, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
342
342
|
} catch (B) {
|
|
343
|
-
|
|
343
|
+
_ = B;
|
|
344
344
|
}
|
|
345
|
-
|
|
345
|
+
_ && !(_ instanceof Error) && (qe(U), 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", D, C, typeof _), qe(null)), _ instanceof Error && !(_.message in He) && (He[_.message] = !0, qe(U), y("Failed %s type: %s", D, _.message), qe(null));
|
|
346
346
|
}
|
|
347
347
|
}
|
|
348
348
|
}
|
|
@@ -352,8 +352,8 @@ function Xo() {
|
|
|
352
352
|
}
|
|
353
353
|
function Ht(u) {
|
|
354
354
|
{
|
|
355
|
-
var x = typeof Symbol == "function" && Symbol.toStringTag,
|
|
356
|
-
return
|
|
355
|
+
var x = typeof Symbol == "function" && Symbol.toStringTag, D = x && u[Symbol.toStringTag] || u.constructor.name || "Object";
|
|
356
|
+
return D;
|
|
357
357
|
}
|
|
358
358
|
}
|
|
359
359
|
function Wr(u) {
|
|
@@ -397,78 +397,78 @@ function Xo() {
|
|
|
397
397
|
}
|
|
398
398
|
function Qt(u, x) {
|
|
399
399
|
{
|
|
400
|
-
var
|
|
400
|
+
var D = function() {
|
|
401
401
|
it || (it = !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)", x));
|
|
402
402
|
};
|
|
403
|
-
|
|
404
|
-
get:
|
|
403
|
+
D.isReactWarning = !0, Object.defineProperty(u, "key", {
|
|
404
|
+
get: D,
|
|
405
405
|
configurable: !0
|
|
406
406
|
});
|
|
407
407
|
}
|
|
408
408
|
}
|
|
409
409
|
function Br(u, x) {
|
|
410
410
|
{
|
|
411
|
-
var
|
|
411
|
+
var D = function() {
|
|
412
412
|
kt || (kt = !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)", x));
|
|
413
413
|
};
|
|
414
|
-
|
|
415
|
-
get:
|
|
414
|
+
D.isReactWarning = !0, Object.defineProperty(u, "ref", {
|
|
415
|
+
get: D,
|
|
416
416
|
configurable: !0
|
|
417
417
|
});
|
|
418
418
|
}
|
|
419
419
|
}
|
|
420
|
-
var Zt = function(u, x,
|
|
421
|
-
var
|
|
420
|
+
var Zt = function(u, x, D, I, U, N, C) {
|
|
421
|
+
var _ = {
|
|
422
422
|
// This tag allows us to uniquely identify this as a React Element
|
|
423
423
|
$$typeof: t,
|
|
424
424
|
// Built-in properties that belong on the element
|
|
425
425
|
type: u,
|
|
426
426
|
key: x,
|
|
427
|
-
ref:
|
|
428
|
-
props:
|
|
427
|
+
ref: D,
|
|
428
|
+
props: C,
|
|
429
429
|
// Record the component responsible for creating this element.
|
|
430
430
|
_owner: N
|
|
431
431
|
};
|
|
432
|
-
return
|
|
432
|
+
return _._store = {}, Object.defineProperty(_._store, "validated", {
|
|
433
433
|
configurable: !1,
|
|
434
434
|
enumerable: !1,
|
|
435
435
|
writable: !0,
|
|
436
436
|
value: !1
|
|
437
|
-
}), Object.defineProperty(
|
|
437
|
+
}), Object.defineProperty(_, "_self", {
|
|
438
438
|
configurable: !1,
|
|
439
439
|
enumerable: !1,
|
|
440
440
|
writable: !1,
|
|
441
441
|
value: I
|
|
442
|
-
}), Object.defineProperty(
|
|
442
|
+
}), Object.defineProperty(_, "_source", {
|
|
443
443
|
configurable: !1,
|
|
444
444
|
enumerable: !1,
|
|
445
445
|
writable: !1,
|
|
446
446
|
value: U
|
|
447
|
-
}), Object.freeze && (Object.freeze(
|
|
447
|
+
}), Object.freeze && (Object.freeze(_.props), Object.freeze(_)), _;
|
|
448
448
|
};
|
|
449
|
-
function er(u, x,
|
|
449
|
+
function er(u, x, D, I, U) {
|
|
450
450
|
{
|
|
451
|
-
var N,
|
|
452
|
-
|
|
451
|
+
var N, C = {}, _ = null, G = null;
|
|
452
|
+
D !== void 0 && (Xt(D), _ = "" + D), Yr(x) && (Xt(x.key), _ = "" + x.key), Jt(x) && (G = x.ref, st(x, U));
|
|
453
453
|
for (N in x)
|
|
454
|
-
se.call(x, N) && !Vr.hasOwnProperty(N) && (
|
|
454
|
+
se.call(x, N) && !Vr.hasOwnProperty(N) && (C[N] = x[N]);
|
|
455
455
|
if (u && u.defaultProps) {
|
|
456
456
|
var B = u.defaultProps;
|
|
457
457
|
for (N in B)
|
|
458
|
-
|
|
458
|
+
C[N] === void 0 && (C[N] = B[N]);
|
|
459
459
|
}
|
|
460
|
-
if (
|
|
460
|
+
if (_ || G) {
|
|
461
461
|
var Q = typeof u == "function" ? u.displayName || u.name || "Unknown" : u;
|
|
462
|
-
|
|
462
|
+
_ && Qt(C, Q), G && Br(C, Q);
|
|
463
463
|
}
|
|
464
|
-
return Zt(u,
|
|
464
|
+
return Zt(u, _, G, U, I, Kt.current, C);
|
|
465
465
|
}
|
|
466
466
|
}
|
|
467
467
|
var Xe = j.ReactCurrentOwner, tr = j.ReactDebugCurrentFrame;
|
|
468
468
|
function Ie(u) {
|
|
469
469
|
if (u) {
|
|
470
|
-
var x = u._owner,
|
|
471
|
-
tr.setExtraStackFrame(
|
|
470
|
+
var x = u._owner, D = _e(u.type, u._source, x ? x.type : null);
|
|
471
|
+
tr.setExtraStackFrame(D);
|
|
472
472
|
} else
|
|
473
473
|
tr.setExtraStackFrame(null);
|
|
474
474
|
}
|
|
@@ -480,7 +480,7 @@ function Xo() {
|
|
|
480
480
|
function de() {
|
|
481
481
|
{
|
|
482
482
|
if (Xe.current) {
|
|
483
|
-
var u =
|
|
483
|
+
var u = k(Xe.current.type);
|
|
484
484
|
if (u)
|
|
485
485
|
return `
|
|
486
486
|
|
|
@@ -497,10 +497,10 @@ Check the render method of \`` + u + "`.";
|
|
|
497
497
|
{
|
|
498
498
|
var x = de();
|
|
499
499
|
if (!x) {
|
|
500
|
-
var
|
|
501
|
-
|
|
500
|
+
var D = typeof u == "string" ? u : u.displayName || u.name;
|
|
501
|
+
D && (x = `
|
|
502
502
|
|
|
503
|
-
Check the top-level render call using <` +
|
|
503
|
+
Check the top-level render call using <` + D + ">.");
|
|
504
504
|
}
|
|
505
505
|
return x;
|
|
506
506
|
}
|
|
@@ -510,12 +510,12 @@ Check the top-level render call using <` + O + ">.");
|
|
|
510
510
|
if (!u._store || u._store.validated || u.key != null)
|
|
511
511
|
return;
|
|
512
512
|
u._store.validated = !0;
|
|
513
|
-
var
|
|
514
|
-
if (Ke[
|
|
513
|
+
var D = q(x);
|
|
514
|
+
if (Ke[D])
|
|
515
515
|
return;
|
|
516
|
-
Ke[
|
|
516
|
+
Ke[D] = !0;
|
|
517
517
|
var I = "";
|
|
518
|
-
u && u._owner && u._owner !== Xe.current && (I = " It was passed a child from " +
|
|
518
|
+
u && u._owner && u._owner !== Xe.current && (I = " It was passed a child from " + k(u._owner.type) + "."), Ie(u), y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', D, I), Ie(null);
|
|
519
519
|
}
|
|
520
520
|
}
|
|
521
521
|
function rr(u, x) {
|
|
@@ -523,8 +523,8 @@ Check the top-level render call using <` + O + ">.");
|
|
|
523
523
|
if (typeof u != "object")
|
|
524
524
|
return;
|
|
525
525
|
if (Et(u))
|
|
526
|
-
for (var
|
|
527
|
-
var I = u[
|
|
526
|
+
for (var D = 0; D < u.length; D++) {
|
|
527
|
+
var I = u[D];
|
|
528
528
|
ct(I) && je(I, x);
|
|
529
529
|
}
|
|
530
530
|
else if (ct(u))
|
|
@@ -532,8 +532,8 @@ Check the top-level render call using <` + O + ">.");
|
|
|
532
532
|
else if (u) {
|
|
533
533
|
var U = w(u);
|
|
534
534
|
if (typeof U == "function" && U !== u.entries)
|
|
535
|
-
for (var N = U.call(u),
|
|
536
|
-
ct(
|
|
535
|
+
for (var N = U.call(u), C; !(C = N.next()).done; )
|
|
536
|
+
ct(C.value) && je(C.value, x);
|
|
537
537
|
}
|
|
538
538
|
}
|
|
539
539
|
}
|
|
@@ -542,21 +542,21 @@ Check the top-level render call using <` + O + ">.");
|
|
|
542
542
|
var x = u.type;
|
|
543
543
|
if (x == null || typeof x == "string")
|
|
544
544
|
return;
|
|
545
|
-
var
|
|
545
|
+
var D;
|
|
546
546
|
if (typeof x == "function")
|
|
547
|
-
|
|
547
|
+
D = x.propTypes;
|
|
548
548
|
else if (typeof x == "object" && (x.$$typeof === c || // Note: Memo only checks outer props here.
|
|
549
549
|
// Inner props are checked in the reconciler.
|
|
550
550
|
x.$$typeof === h))
|
|
551
|
-
|
|
551
|
+
D = x.propTypes;
|
|
552
552
|
else
|
|
553
553
|
return;
|
|
554
|
-
if (
|
|
555
|
-
var I =
|
|
556
|
-
Mr(
|
|
554
|
+
if (D) {
|
|
555
|
+
var I = k(x);
|
|
556
|
+
Mr(D, u.props, "prop", I, u);
|
|
557
557
|
} else if (x.PropTypes !== void 0 && !Ct) {
|
|
558
558
|
Ct = !0;
|
|
559
|
-
var U =
|
|
559
|
+
var U = k(x);
|
|
560
560
|
y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", U || "Unknown");
|
|
561
561
|
}
|
|
562
562
|
typeof x.getDefaultProps == "function" && !x.getDefaultProps.isReactClassApproved && y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
@@ -564,8 +564,8 @@ Check the top-level render call using <` + O + ">.");
|
|
|
564
564
|
}
|
|
565
565
|
function nr(u) {
|
|
566
566
|
{
|
|
567
|
-
for (var x = Object.keys(u.props),
|
|
568
|
-
var I = x[
|
|
567
|
+
for (var x = Object.keys(u.props), D = 0; D < x.length; D++) {
|
|
568
|
+
var I = x[D];
|
|
569
569
|
if (I !== "children" && I !== "key") {
|
|
570
570
|
Ie(u), y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", I), Ie(null);
|
|
571
571
|
break;
|
|
@@ -575,21 +575,21 @@ Check the top-level render call using <` + O + ">.");
|
|
|
575
575
|
}
|
|
576
576
|
}
|
|
577
577
|
var Pt = {};
|
|
578
|
-
function lt(u, x,
|
|
578
|
+
function lt(u, x, D, I, U, N) {
|
|
579
579
|
{
|
|
580
|
-
var
|
|
581
|
-
if (!
|
|
582
|
-
var
|
|
583
|
-
(u === void 0 || typeof u == "object" && u !== null && Object.keys(u).length === 0) && (
|
|
580
|
+
var C = L(u);
|
|
581
|
+
if (!C) {
|
|
582
|
+
var _ = "";
|
|
583
|
+
(u === void 0 || typeof u == "object" && u !== null && Object.keys(u).length === 0) && (_ += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
584
584
|
var G = ve();
|
|
585
|
-
G ?
|
|
585
|
+
G ? _ += G : _ += de();
|
|
586
586
|
var B;
|
|
587
|
-
u === null ? B = "null" : Et(u) ? B = "array" : u !== void 0 && u.$$typeof === t ? (B = "<" + (
|
|
587
|
+
u === null ? B = "null" : Et(u) ? B = "array" : u !== void 0 && u.$$typeof === t ? (B = "<" + (k(u.type) || "Unknown") + " />", _ = " Did you accidentally export a JSX literal instead of a component?") : B = typeof u, y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", B, _);
|
|
588
588
|
}
|
|
589
|
-
var Q = er(u, x,
|
|
589
|
+
var Q = er(u, x, D, U, N);
|
|
590
590
|
if (Q == null)
|
|
591
591
|
return Q;
|
|
592
|
-
if (
|
|
592
|
+
if (C) {
|
|
593
593
|
var ge = x.children;
|
|
594
594
|
if (ge !== void 0)
|
|
595
595
|
if (I)
|
|
@@ -603,7 +603,7 @@ Check the top-level render call using <` + O + ">.");
|
|
|
603
603
|
rr(ge, u);
|
|
604
604
|
}
|
|
605
605
|
if (se.call(x, "key")) {
|
|
606
|
-
var Je =
|
|
606
|
+
var Je = k(u), ye = Object.keys(x).filter(function(Yo) {
|
|
607
607
|
return Yo !== "key";
|
|
608
608
|
}), Ur = ye.length > 0 ? "{key: someKey, " + ye.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
609
609
|
if (!Pt[Je + Ur]) {
|
|
@@ -619,11 +619,11 @@ React keys must be passed directly to JSX without using spread:
|
|
|
619
619
|
return u === n ? nr(Q) : _t(Q), Q;
|
|
620
620
|
}
|
|
621
621
|
}
|
|
622
|
-
function ut(u, x,
|
|
623
|
-
return lt(u, x,
|
|
622
|
+
function ut(u, x, D) {
|
|
623
|
+
return lt(u, x, D, !0);
|
|
624
624
|
}
|
|
625
|
-
function Tt(u, x,
|
|
626
|
-
return lt(u, x,
|
|
625
|
+
function Tt(u, x, D) {
|
|
626
|
+
return lt(u, x, D, !1);
|
|
627
627
|
}
|
|
628
628
|
var Rt = Tt, At = ut;
|
|
629
629
|
$t.Fragment = n, $t.jsx = Rt, $t.jsxs = At;
|
|
@@ -872,7 +872,7 @@ const Tl = () => ({ getTokenValidate: $(() => {
|
|
|
872
872
|
(r = e == null ? void 0 : e.current) == null || r.removeChild(t);
|
|
873
873
|
};
|
|
874
874
|
}, []), /* @__PURE__ */ o.jsx("div", { children: /* @__PURE__ */ o.jsx("div", { ref: e }) });
|
|
875
|
-
},
|
|
875
|
+
}, V = ({ classIcon: e, size: t }) => /* @__PURE__ */ o.jsx("i", { className: `bi ${e} ${t ?? "sm"}` }), La = ({
|
|
876
876
|
className: e,
|
|
877
877
|
onClick: t,
|
|
878
878
|
title: r,
|
|
@@ -888,7 +888,7 @@ const Tl = () => ({ getTokenValidate: $(() => {
|
|
|
888
888
|
onClick: i,
|
|
889
889
|
className: `badge ${e || ""}`,
|
|
890
890
|
children: [
|
|
891
|
-
a && /* @__PURE__ */ o.jsx(
|
|
891
|
+
a && /* @__PURE__ */ o.jsx(V, { size: n, classIcon: a }),
|
|
892
892
|
/* @__PURE__ */ o.jsx("span", { children: r })
|
|
893
893
|
]
|
|
894
894
|
}
|
|
@@ -907,7 +907,7 @@ const Il = ({
|
|
|
907
907
|
};
|
|
908
908
|
return /* @__PURE__ */ o.jsxs("div", { className: `action ${e}`, onClick: i, children: [
|
|
909
909
|
a && /* @__PURE__ */ o.jsx(La, { ...a }),
|
|
910
|
-
n && /* @__PURE__ */ o.jsx(
|
|
910
|
+
n && /* @__PURE__ */ o.jsx(V, { classIcon: n, size: xe.LARGE }),
|
|
911
911
|
/* @__PURE__ */ o.jsx("small", { children: r })
|
|
912
912
|
] });
|
|
913
913
|
}, xt = ({
|
|
@@ -934,9 +934,9 @@ const Il = ({
|
|
|
934
934
|
className: e,
|
|
935
935
|
children: [
|
|
936
936
|
r && /* @__PURE__ */ o.jsx(La, { ...r }),
|
|
937
|
-
s && l == 1 && /* @__PURE__ */ o.jsx("span", { className: `${n ? "mr-2" : ""}`, children: /* @__PURE__ */ o.jsx(
|
|
937
|
+
s && l == 1 && /* @__PURE__ */ o.jsx("span", { className: `${n ? "mr-2" : ""}`, children: /* @__PURE__ */ o.jsx(V, { size: a, classIcon: s }) }),
|
|
938
938
|
/* @__PURE__ */ o.jsx("span", { children: n }),
|
|
939
|
-
s && l == 2 && /* @__PURE__ */ o.jsx("span", { className: "ml-2", children: /* @__PURE__ */ o.jsx(
|
|
939
|
+
s && l == 2 && /* @__PURE__ */ o.jsx("span", { className: "ml-2", children: /* @__PURE__ */ o.jsx(V, { classIcon: s }) })
|
|
940
940
|
]
|
|
941
941
|
}
|
|
942
942
|
);
|
|
@@ -1151,26 +1151,26 @@ function Oi(e) {
|
|
|
1151
1151
|
return xi(hr("", null, null, null, [""], e = bi(e), 0, [0], e));
|
|
1152
1152
|
}
|
|
1153
1153
|
function hr(e, t, r, n, a, i, s, l, c) {
|
|
1154
|
-
for (var d = 0, f = 0, h = s, g = 0, v = 0, m = 0, p = 1, w = 1, j = 1, y = 0,
|
|
1154
|
+
for (var d = 0, f = 0, h = s, g = 0, v = 0, m = 0, p = 1, w = 1, j = 1, y = 0, O = "", S = a, R = i, P = n, E = O; w; )
|
|
1155
1155
|
switch (m = y, y = Ne()) {
|
|
1156
1156
|
case 40:
|
|
1157
|
-
if (m != 108 && ce(
|
|
1158
|
-
dr(
|
|
1157
|
+
if (m != 108 && ce(E, h - 1) == 58) {
|
|
1158
|
+
dr(E += M(zr(y), "&", "&\f"), "&\f", Ya(d ? l[d - 1] : 0)) != -1 && (j = -1);
|
|
1159
1159
|
break;
|
|
1160
1160
|
}
|
|
1161
1161
|
case 34:
|
|
1162
1162
|
case 39:
|
|
1163
1163
|
case 91:
|
|
1164
|
-
|
|
1164
|
+
E += zr(y);
|
|
1165
1165
|
break;
|
|
1166
1166
|
case 9:
|
|
1167
1167
|
case 10:
|
|
1168
1168
|
case 13:
|
|
1169
1169
|
case 32:
|
|
1170
|
-
|
|
1170
|
+
E += wi(m);
|
|
1171
1171
|
break;
|
|
1172
1172
|
case 92:
|
|
1173
|
-
|
|
1173
|
+
E += ji(fr() - 1, 7);
|
|
1174
1174
|
continue;
|
|
1175
1175
|
case 47:
|
|
1176
1176
|
switch (et()) {
|
|
@@ -1179,11 +1179,11 @@ function hr(e, t, r, n, a, i, s, l, c) {
|
|
|
1179
1179
|
Mt(Ni(Si(Ne(), fr()), t, r, c), c);
|
|
1180
1180
|
break;
|
|
1181
1181
|
default:
|
|
1182
|
-
|
|
1182
|
+
E += "/";
|
|
1183
1183
|
}
|
|
1184
1184
|
break;
|
|
1185
1185
|
case 123 * p:
|
|
1186
|
-
l[d++] = Te(
|
|
1186
|
+
l[d++] = Te(E) * j;
|
|
1187
1187
|
case 125 * p:
|
|
1188
1188
|
case 59:
|
|
1189
1189
|
case 0:
|
|
@@ -1192,30 +1192,30 @@ function hr(e, t, r, n, a, i, s, l, c) {
|
|
|
1192
1192
|
case 125:
|
|
1193
1193
|
w = 0;
|
|
1194
1194
|
case 59 + f:
|
|
1195
|
-
j == -1 && (
|
|
1195
|
+
j == -1 && (E = M(E, /\f/g, "")), v > 0 && Te(E) - h && Mt(v > 32 ? ea(E + ";", n, r, h - 1, c) : ea(M(E, " ", "") + ";", n, r, h - 2, c), c);
|
|
1196
1196
|
break;
|
|
1197
1197
|
case 59:
|
|
1198
|
-
|
|
1198
|
+
E += ";";
|
|
1199
1199
|
default:
|
|
1200
|
-
if (Mt(
|
|
1200
|
+
if (Mt(P = Zn(E, t, r, d, f, a, l, O, S = [], R = [], h, i), i), y === 123)
|
|
1201
1201
|
if (f === 0)
|
|
1202
|
-
hr(
|
|
1202
|
+
hr(E, t, P, P, S, i, h, l, R);
|
|
1203
1203
|
else
|
|
1204
|
-
switch (g === 99 && ce(
|
|
1204
|
+
switch (g === 99 && ce(E, 3) === 110 ? 100 : g) {
|
|
1205
1205
|
case 100:
|
|
1206
1206
|
case 108:
|
|
1207
1207
|
case 109:
|
|
1208
1208
|
case 115:
|
|
1209
|
-
hr(e,
|
|
1209
|
+
hr(e, P, P, n && Mt(Zn(e, P, P, 0, 0, a, l, O, a, S = [], h, R), R), a, R, h, l, n ? S : R);
|
|
1210
1210
|
break;
|
|
1211
1211
|
default:
|
|
1212
|
-
hr(
|
|
1212
|
+
hr(E, P, P, P, [""], R, 0, l, R);
|
|
1213
1213
|
}
|
|
1214
1214
|
}
|
|
1215
|
-
d = f = v = 0, p = j = 1,
|
|
1215
|
+
d = f = v = 0, p = j = 1, O = E = "", h = s;
|
|
1216
1216
|
break;
|
|
1217
1217
|
case 58:
|
|
1218
|
-
h = 1 + Te(
|
|
1218
|
+
h = 1 + Te(E), v = m;
|
|
1219
1219
|
default:
|
|
1220
1220
|
if (p < 1) {
|
|
1221
1221
|
if (y == 123)
|
|
@@ -1223,26 +1223,26 @@ function hr(e, t, r, n, a, i, s, l, c) {
|
|
|
1223
1223
|
else if (y == 125 && p++ == 0 && yi() == 125)
|
|
1224
1224
|
continue;
|
|
1225
1225
|
}
|
|
1226
|
-
switch (
|
|
1226
|
+
switch (E += Cn(y), y * p) {
|
|
1227
1227
|
case 38:
|
|
1228
|
-
j = f > 0 ? 1 : (
|
|
1228
|
+
j = f > 0 ? 1 : (E += "\f", -1);
|
|
1229
1229
|
break;
|
|
1230
1230
|
case 44:
|
|
1231
|
-
l[d++] = (Te(
|
|
1231
|
+
l[d++] = (Te(E) - 1) * j, j = 1;
|
|
1232
1232
|
break;
|
|
1233
1233
|
case 64:
|
|
1234
|
-
et() === 45 && (
|
|
1234
|
+
et() === 45 && (E += zr(Ne())), g = et(), f = h = Te(O = E += Di(fr())), y++;
|
|
1235
1235
|
break;
|
|
1236
1236
|
case 45:
|
|
1237
|
-
m === 45 && Te(
|
|
1237
|
+
m === 45 && Te(E) == 2 && (p = 0);
|
|
1238
1238
|
}
|
|
1239
1239
|
}
|
|
1240
1240
|
return i;
|
|
1241
1241
|
}
|
|
1242
1242
|
function Zn(e, t, r, n, a, i, s, l, c, d, f, h) {
|
|
1243
1243
|
for (var g = a - 1, v = a === 0 ? i : [""], m = Ua(v), p = 0, w = 0, j = 0; p < n; ++p)
|
|
1244
|
-
for (var y = 0,
|
|
1245
|
-
(S = Ba(w > 0 ? v[y] + " " +
|
|
1244
|
+
for (var y = 0, O = mt(e, g + 1, g = Ya(w = s[p])), S = e; y < m; ++y)
|
|
1245
|
+
(S = Ba(w > 0 ? v[y] + " " + O : M(O, /&\f/g, v[y]))) && (c[j++] = S);
|
|
1246
1246
|
return Er(e, t, r, a === 0 ? Or : l, c, d, f, h);
|
|
1247
1247
|
}
|
|
1248
1248
|
function Ni(e, t, r, n) {
|
|
@@ -1844,8 +1844,8 @@ function ls(e) {
|
|
|
1844
1844
|
var w = g.replace(cs, ""), j = Oi(m || v ? "".concat(m, " ").concat(v, " { ").concat(w, " }") : w);
|
|
1845
1845
|
s.namespace && (j = ao(j, s.namespace));
|
|
1846
1846
|
var y = [];
|
|
1847
|
-
return yr(j, ki(f.concat(Ci(function(
|
|
1848
|
-
return y.push(
|
|
1847
|
+
return yr(j, ki(f.concat(Ci(function(O) {
|
|
1848
|
+
return y.push(O);
|
|
1849
1849
|
})))), y;
|
|
1850
1850
|
};
|
|
1851
1851
|
return h.hash = c.length ? c.reduce(function(g, v) {
|
|
@@ -1949,10 +1949,10 @@ co.Consumer;
|
|
|
1949
1949
|
var qr = {}, ha = /* @__PURE__ */ new Set();
|
|
1950
1950
|
function ms(e, t, r) {
|
|
1951
1951
|
var n = Pn(e), a = e, i = !Hr(e), s = t.attrs, l = s === void 0 ? _r : s, c = t.componentId, d = c === void 0 ? function(S, R) {
|
|
1952
|
-
var
|
|
1953
|
-
qr[
|
|
1954
|
-
var
|
|
1955
|
-
return R ? "".concat(R, "-").concat(
|
|
1952
|
+
var P = typeof S != "string" ? "sc" : ra(S);
|
|
1953
|
+
qr[P] = (qr[P] || 0) + 1;
|
|
1954
|
+
var E = "".concat(P, "-").concat(Mi(Cr + P + qr[P]));
|
|
1955
|
+
return R ? "".concat(R, "-").concat(E) : E;
|
|
1956
1956
|
}(t.displayName, t.parentComponentId) : c, f = t.displayName, h = f === void 0 ? function(S) {
|
|
1957
1957
|
return Hr(S) ? "styled.".concat(S) : "Styled(".concat(Ja(S), ")");
|
|
1958
1958
|
}(e) : f, g = t.displayName && t.componentId ? "".concat(ra(t.displayName), "-").concat(t.componentId) : t.componentId || d, v = n && a.attrs ? a.attrs.concat(l).filter(Boolean) : l, m = t.shouldForwardProp;
|
|
@@ -1967,40 +1967,40 @@ function ms(e, t, r) {
|
|
|
1967
1967
|
}
|
|
1968
1968
|
var j = new vs(r, g, n ? a.componentStyle : void 0);
|
|
1969
1969
|
function y(S, R) {
|
|
1970
|
-
return function(
|
|
1971
|
-
var b =
|
|
1972
|
-
process.env.NODE_ENV !== "production" && Gn(
|
|
1973
|
-
var Ae = Ai(
|
|
1970
|
+
return function(P, E, Y) {
|
|
1971
|
+
var b = P.attrs, L = P.componentStyle, T = P.defaultProps, A = P.foldedComponentIds, k = P.styledComponentId, F = P.target, ie = Re.useContext(co), K = ua(), we = P.shouldForwardProp || K.shouldForwardProp;
|
|
1972
|
+
process.env.NODE_ENV !== "production" && Gn(k);
|
|
1973
|
+
var Ae = Ai(E, ie, T) || gt, te = function(ke, me, pe) {
|
|
1974
1974
|
for (var ue, ne = be(be({}, me), { className: void 0, theme: pe }), De = 0; De < ke.length; De += 1) {
|
|
1975
1975
|
var Ce = yt(ue = ke[De]) ? ue(ne) : ue;
|
|
1976
1976
|
for (var he in Ce) ne[he] = he === "className" ? Ze(ne[he], Ce[he]) : he === "style" ? be(be({}, ne[he]), Ce[he]) : Ce[he];
|
|
1977
1977
|
}
|
|
1978
1978
|
return me.className && (ne.className = Ze(ne.className, me.className)), ne;
|
|
1979
|
-
}(b,
|
|
1979
|
+
}(b, E, Ae), J = te.as || F, le = {};
|
|
1980
1980
|
for (var ee in te) te[ee] === void 0 || ee[0] === "$" || ee === "as" || ee === "theme" && te.theme === Ae || (ee === "forwardedAs" ? le.as = te.forwardedAs : we && !we(ee, J) || (le[ee] = te[ee], we || process.env.NODE_ENV !== "development" || fi(ee) || ha.has(ee) || !an.has(J) || (ha.add(ee), console.warn('styled-components: it looks like an unknown prop "'.concat(ee, '" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));
|
|
1981
1981
|
var Se = function(ke, me) {
|
|
1982
1982
|
var pe = ua(), ue = ke.generateAndInjectStyles(me, pe.styleSheet, pe.stylis);
|
|
1983
1983
|
return process.env.NODE_ENV !== "production" && Gn(ue), ue;
|
|
1984
1984
|
}(L, te);
|
|
1985
|
-
process.env.NODE_ENV !== "production" &&
|
|
1986
|
-
var Ee = Ze(A,
|
|
1987
|
-
return Se && (Ee += " " + Se), te.className && (Ee += " " + te.className), le[Hr(J) && !an.has(J) ? "class" : "className"] = Ee,
|
|
1988
|
-
}(
|
|
1985
|
+
process.env.NODE_ENV !== "production" && P.warnTooManyClasses && P.warnTooManyClasses(Se);
|
|
1986
|
+
var Ee = Ze(A, k);
|
|
1987
|
+
return Se && (Ee += " " + Se), te.className && (Ee += " " + te.className), le[Hr(J) && !an.has(J) ? "class" : "className"] = Ee, Y && (le.ref = Y), Bo(J, le);
|
|
1988
|
+
}(O, S, R);
|
|
1989
1989
|
}
|
|
1990
1990
|
y.displayName = h;
|
|
1991
|
-
var
|
|
1992
|
-
return
|
|
1991
|
+
var O = Re.forwardRef(y);
|
|
1992
|
+
return O.attrs = v, O.componentStyle = j, O.displayName = h, O.shouldForwardProp = m, O.foldedComponentIds = n ? Ze(a.foldedComponentIds, a.styledComponentId) : "", O.styledComponentId = g, O.target = n ? a.target : e, Object.defineProperty(O, "defaultProps", { get: function() {
|
|
1993
1993
|
return this._foldedDefaultProps;
|
|
1994
1994
|
}, set: function(S) {
|
|
1995
1995
|
this._foldedDefaultProps = n ? function(R) {
|
|
1996
|
-
for (var
|
|
1997
|
-
for (var
|
|
1996
|
+
for (var P = [], E = 1; E < arguments.length; E++) P[E - 1] = arguments[E];
|
|
1997
|
+
for (var Y = 0, b = P; Y < b.length; Y++) sn(R, b[Y], !0);
|
|
1998
1998
|
return R;
|
|
1999
1999
|
}({}, a.defaultProps, S) : S;
|
|
2000
|
-
} }), process.env.NODE_ENV !== "production" && (Ri(h, g),
|
|
2001
|
-
var
|
|
2002
|
-
return function(
|
|
2003
|
-
if (!
|
|
2000
|
+
} }), process.env.NODE_ENV !== "production" && (Ri(h, g), O.warnTooManyClasses = /* @__PURE__ */ function(S, R) {
|
|
2001
|
+
var P = {}, E = !1;
|
|
2002
|
+
return function(Y) {
|
|
2003
|
+
if (!E && (P[Y] = !0, Object.keys(P).length >= 200)) {
|
|
2004
2004
|
var b = R ? ' with the id of "'.concat(R, '"') : "";
|
|
2005
2005
|
console.warn("Over ".concat(200, " classes were generated for component ").concat(S).concat(b, `.
|
|
2006
2006
|
`) + `Consider using the attrs method, together with a style object for frequently changed styles.
|
|
@@ -2011,12 +2011,12 @@ Example:
|
|
|
2011
2011
|
},
|
|
2012
2012
|
}))\`width: 100%;\`
|
|
2013
2013
|
|
|
2014
|
-
<Component />`),
|
|
2014
|
+
<Component />`), E = !0, P = {};
|
|
2015
2015
|
}
|
|
2016
2016
|
};
|
|
2017
|
-
}(h, g)), Tn(
|
|
2018
|
-
return ".".concat(
|
|
2019
|
-
}), i && to(
|
|
2017
|
+
}(h, g)), Tn(O, function() {
|
|
2018
|
+
return ".".concat(O.styledComponentId);
|
|
2019
|
+
}), i && to(O, e, { attrs: !0, componentStyle: !0, displayName: !0, foldedComponentIds: !0, shouldForwardProp: !0, styledComponentId: !0, target: !0 }), O;
|
|
2020
2020
|
}
|
|
2021
2021
|
function va(e, t) {
|
|
2022
2022
|
for (var r = [e[0]], n = 0, a = t.length; n < a; n += 1) r.push(t[n], e[n + 1]);
|
|
@@ -2085,13 +2085,13 @@ const ps = Rn.div`
|
|
|
2085
2085
|
c !== p && h(!1);
|
|
2086
2086
|
}, [c, p]), H(() => {
|
|
2087
2087
|
const y = () => {
|
|
2088
|
-
var
|
|
2088
|
+
var O;
|
|
2089
2089
|
if (!t && r)
|
|
2090
2090
|
v(r);
|
|
2091
2091
|
else if (e) {
|
|
2092
|
-
const S = e.getBoundingClientRect(), R = (
|
|
2092
|
+
const S = e.getBoundingClientRect(), R = (O = m.current) == null ? void 0 : O.getBoundingClientRect(), { innerWidth: P, innerHeight: E } = window;
|
|
2093
2093
|
if (R) {
|
|
2094
|
-
let
|
|
2094
|
+
let Y, b;
|
|
2095
2095
|
const L = {
|
|
2096
2096
|
topRight: () => ({
|
|
2097
2097
|
top: S.top - R.height,
|
|
@@ -2118,7 +2118,7 @@ const ps = Rn.div`
|
|
|
2118
2118
|
left: S.right
|
|
2119
2119
|
})
|
|
2120
2120
|
};
|
|
2121
|
-
t && L[t] ? { top:
|
|
2121
|
+
t && L[t] ? { top: Y, left: b } = L[t]() : (b = S.right, Y = S.bottom, S.right + R.width > P && (b = S.left - R.width), S.bottom + R.height > E && (Y = S.top - R.height)), v({ top: Y, left: b < 0 ? 0 : b });
|
|
2122
2122
|
}
|
|
2123
2123
|
}
|
|
2124
2124
|
};
|
|
@@ -2133,8 +2133,8 @@ const ps = Rn.div`
|
|
|
2133
2133
|
[s, d]
|
|
2134
2134
|
);
|
|
2135
2135
|
return H(() => {
|
|
2136
|
-
const y = (
|
|
2137
|
-
m.current && !m.current.contains(
|
|
2136
|
+
const y = (O) => {
|
|
2137
|
+
m.current && !m.current.contains(O.target) && j(O);
|
|
2138
2138
|
};
|
|
2139
2139
|
return f && document.addEventListener("mousedown", y), () => {
|
|
2140
2140
|
document.removeEventListener("mousedown", y);
|
|
@@ -2153,7 +2153,7 @@ const ps = Rn.div`
|
|
|
2153
2153
|
id: i ?? "",
|
|
2154
2154
|
className: "toggle-btn",
|
|
2155
2155
|
onClick: j,
|
|
2156
|
-
children: /* @__PURE__ */ o.jsx(
|
|
2156
|
+
children: /* @__PURE__ */ o.jsx(V, { classIcon: "bi-x-lg" })
|
|
2157
2157
|
}
|
|
2158
2158
|
),
|
|
2159
2159
|
n
|
|
@@ -2215,7 +2215,7 @@ const ps = Rn.div`
|
|
|
2215
2215
|
className: "ml-2",
|
|
2216
2216
|
ref: c,
|
|
2217
2217
|
onClick: (m) => h(m),
|
|
2218
|
-
children: /* @__PURE__ */ o.jsx(
|
|
2218
|
+
children: /* @__PURE__ */ o.jsx(V, { classIcon: "bi-chevron-up" })
|
|
2219
2219
|
}
|
|
2220
2220
|
)
|
|
2221
2221
|
]
|
|
@@ -2325,7 +2325,7 @@ const ps = Rn.div`
|
|
|
2325
2325
|
className: "clear-btn",
|
|
2326
2326
|
onClick: p,
|
|
2327
2327
|
"aria-label": "Réinitialiser",
|
|
2328
|
-
children: /* @__PURE__ */ o.jsx(
|
|
2328
|
+
children: /* @__PURE__ */ o.jsx(V, { classIcon: "bi-x" })
|
|
2329
2329
|
}
|
|
2330
2330
|
)
|
|
2331
2331
|
] });
|
|
@@ -2337,66 +2337,74 @@ const wr = Ue(
|
|
|
2337
2337
|
name: t,
|
|
2338
2338
|
type: r = Be.TEXT,
|
|
2339
2339
|
value: n,
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
{
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
name: t,
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
|
|
2390
|
-
|
|
2391
|
-
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
|
|
2340
|
+
width: a,
|
|
2341
|
+
onInvalid: i,
|
|
2342
|
+
placeholder: s,
|
|
2343
|
+
className: l,
|
|
2344
|
+
inputMode: c,
|
|
2345
|
+
minLength: d,
|
|
2346
|
+
maxLength: f,
|
|
2347
|
+
autoFocus: h = !1,
|
|
2348
|
+
disabled: g = !1,
|
|
2349
|
+
required: v = !1,
|
|
2350
|
+
autoComplete: m,
|
|
2351
|
+
tabIndex: p = 0,
|
|
2352
|
+
step: w,
|
|
2353
|
+
checked: j,
|
|
2354
|
+
onChange: y,
|
|
2355
|
+
onBlur: O,
|
|
2356
|
+
onClick: S,
|
|
2357
|
+
handleKeyDown: R
|
|
2358
|
+
}, P) => {
|
|
2359
|
+
const [E, Y] = W(!1);
|
|
2360
|
+
return /* @__PURE__ */ o.jsxs(
|
|
2361
|
+
"div",
|
|
2362
|
+
{
|
|
2363
|
+
className: `input-container ${`input-container-${r}`} `,
|
|
2364
|
+
style: { width: a },
|
|
2365
|
+
children: [
|
|
2366
|
+
/* @__PURE__ */ o.jsx("input", { name: `hide-${t}`, type: "text", style: { display: "none" } }),
|
|
2367
|
+
/* @__PURE__ */ o.jsx(
|
|
2368
|
+
"input",
|
|
2369
|
+
{
|
|
2370
|
+
ref: P,
|
|
2371
|
+
id: e,
|
|
2372
|
+
name: t,
|
|
2373
|
+
inputMode: c ?? (r === "number" ? "numeric" : "text"),
|
|
2374
|
+
type: E ? Be.TEXT : r,
|
|
2375
|
+
spellCheck: "false",
|
|
2376
|
+
value: n,
|
|
2377
|
+
placeholder: s,
|
|
2378
|
+
disabled: g,
|
|
2379
|
+
required: v,
|
|
2380
|
+
autoComplete: m ?? "new-password",
|
|
2381
|
+
step: w,
|
|
2382
|
+
tabIndex: p,
|
|
2383
|
+
autoFocus: h,
|
|
2384
|
+
minLength: d,
|
|
2385
|
+
maxLength: f,
|
|
2386
|
+
onChange: y,
|
|
2387
|
+
checked: j,
|
|
2388
|
+
onKeyDown: R,
|
|
2389
|
+
onBlur: O,
|
|
2390
|
+
onClick: (b) => {
|
|
2391
|
+
b.stopPropagation(), S && S(b);
|
|
2392
|
+
},
|
|
2393
|
+
className: `input-field ${l ?? ""}`,
|
|
2394
|
+
onInvalid: i
|
|
2395
|
+
}
|
|
2396
|
+
),
|
|
2397
|
+
r === Be.PASSWORD && /* @__PURE__ */ o.jsx(
|
|
2398
|
+
"div",
|
|
2399
|
+
{
|
|
2400
|
+
onClick: () => Y(!E),
|
|
2401
|
+
className: "input-password-icon",
|
|
2402
|
+
children: /* @__PURE__ */ o.jsx(V, { classIcon: E ? "bi-eye-slash" : "bi-eye" })
|
|
2403
|
+
}
|
|
2404
|
+
)
|
|
2405
|
+
]
|
|
2406
|
+
}
|
|
2407
|
+
);
|
|
2400
2408
|
}
|
|
2401
2409
|
);
|
|
2402
2410
|
wr.displayName = "Input";
|
|
@@ -2460,7 +2468,7 @@ const gs = ({
|
|
|
2460
2468
|
}), b;
|
|
2461
2469
|
}), p = oe({}), w = $(
|
|
2462
2470
|
(b, L) => {
|
|
2463
|
-
const { name: T, type: A, checked:
|
|
2471
|
+
const { name: T, type: A, checked: k, value: F } = b.target, ie = A === "checkbox" ? k : F;
|
|
2464
2472
|
L.onChange && L.onChange(ie, T), m((K) => {
|
|
2465
2473
|
const we = { ...K, [T]: ie };
|
|
2466
2474
|
return s && s(we), we;
|
|
@@ -2470,20 +2478,20 @@ const gs = ({
|
|
|
2470
2478
|
), j = $(
|
|
2471
2479
|
(b, L, T) => {
|
|
2472
2480
|
T.onChange && T.onChange(L, b), m((A) => {
|
|
2473
|
-
const
|
|
2474
|
-
return s && s(
|
|
2481
|
+
const k = { ...A, [b]: L };
|
|
2482
|
+
return s && s(k), k;
|
|
2475
2483
|
});
|
|
2476
2484
|
},
|
|
2477
2485
|
[s]
|
|
2478
2486
|
), y = $(
|
|
2479
2487
|
(b, L, T) => {
|
|
2480
2488
|
T.onChange && T.onChange(b, L), m((A) => {
|
|
2481
|
-
const
|
|
2482
|
-
return s && s(
|
|
2489
|
+
const k = { ...A, [L]: b };
|
|
2490
|
+
return s && s(k), k;
|
|
2483
2491
|
});
|
|
2484
2492
|
},
|
|
2485
2493
|
[s]
|
|
2486
|
-
),
|
|
2494
|
+
), O = $(
|
|
2487
2495
|
(b) => {
|
|
2488
2496
|
b.preventDefault(), r && r(v);
|
|
2489
2497
|
},
|
|
@@ -2500,13 +2508,13 @@ const gs = ({
|
|
|
2500
2508
|
...L,
|
|
2501
2509
|
[b]: ""
|
|
2502
2510
|
}));
|
|
2503
|
-
}, []),
|
|
2511
|
+
}, []), P = () => {
|
|
2504
2512
|
const b = e.find((L) => L.focus);
|
|
2505
2513
|
b && p.current[b.name] && setTimeout(() => {
|
|
2506
2514
|
var L;
|
|
2507
2515
|
(L = p.current[b.name]) == null || L.select();
|
|
2508
2516
|
}, 500);
|
|
2509
|
-
},
|
|
2517
|
+
}, E = () => v, Y = (b) => {
|
|
2510
2518
|
m((L) => ({
|
|
2511
2519
|
...L,
|
|
2512
2520
|
...b
|
|
@@ -2515,15 +2523,15 @@ const gs = ({
|
|
|
2515
2523
|
return Dr(f, () => ({
|
|
2516
2524
|
resetForm: S,
|
|
2517
2525
|
clearInput: R,
|
|
2518
|
-
focusInitialElement:
|
|
2519
|
-
getValues:
|
|
2520
|
-
updateFormValue:
|
|
2526
|
+
focusInitialElement: P,
|
|
2527
|
+
getValues: E,
|
|
2528
|
+
updateFormValue: Y,
|
|
2521
2529
|
setBtnDisabledSubmit: g
|
|
2522
2530
|
})), /* @__PURE__ */ o.jsxs(
|
|
2523
2531
|
"form",
|
|
2524
2532
|
{
|
|
2525
2533
|
autoComplete: i ?? "off",
|
|
2526
|
-
onSubmit:
|
|
2534
|
+
onSubmit: O,
|
|
2527
2535
|
className: d ?? "",
|
|
2528
2536
|
children: [
|
|
2529
2537
|
/* @__PURE__ */ o.jsxs("div", { className: "form-content", children: [
|
|
@@ -2535,7 +2543,7 @@ const gs = ({
|
|
|
2535
2543
|
className: `d-flex flex-column ${b.className ?? ""} form-group form-group-${b.type}`,
|
|
2536
2544
|
children: [
|
|
2537
2545
|
b.label && /* @__PURE__ */ o.jsx("label", { children: b.label }),
|
|
2538
|
-
b.icon && /* @__PURE__ */ o.jsx(
|
|
2546
|
+
b.icon && /* @__PURE__ */ o.jsx(V, { classIcon: b.icon }),
|
|
2539
2547
|
b.type === "select" ? /* @__PURE__ */ o.jsx(
|
|
2540
2548
|
uo,
|
|
2541
2549
|
{
|
|
@@ -2549,8 +2557,8 @@ const gs = ({
|
|
|
2549
2557
|
required: T,
|
|
2550
2558
|
defaultValue: b.value,
|
|
2551
2559
|
placeholder: b.placeholder,
|
|
2552
|
-
onChangeMultiple: (
|
|
2553
|
-
onChange: (
|
|
2560
|
+
onChangeMultiple: (k) => y(k, b.name, b),
|
|
2561
|
+
onChange: (k) => y(k, b.name, b)
|
|
2554
2562
|
}
|
|
2555
2563
|
) : b.type === "textarea" ? /* @__PURE__ */ o.jsx(
|
|
2556
2564
|
gs,
|
|
@@ -2562,13 +2570,13 @@ const gs = ({
|
|
|
2562
2570
|
disabled: A,
|
|
2563
2571
|
required: T,
|
|
2564
2572
|
value: v[b.name],
|
|
2565
|
-
onChange: (
|
|
2573
|
+
onChange: (k, F) => j(F, k, b)
|
|
2566
2574
|
}
|
|
2567
2575
|
) : /* @__PURE__ */ o.jsx(
|
|
2568
2576
|
wr,
|
|
2569
2577
|
{
|
|
2570
2578
|
id: b.id ?? b.name,
|
|
2571
|
-
ref: (
|
|
2579
|
+
ref: (k) => p.current[b.name] = k,
|
|
2572
2580
|
name: b.name,
|
|
2573
2581
|
type: b.type,
|
|
2574
2582
|
placeholder: b.placeholder ?? "",
|
|
@@ -2580,7 +2588,7 @@ const gs = ({
|
|
|
2580
2588
|
step: b.step ?? "0.01",
|
|
2581
2589
|
value: v[b.name],
|
|
2582
2590
|
checked: b.type === "checkbox" ? !!v[b.name] : void 0,
|
|
2583
|
-
onChange: (
|
|
2591
|
+
onChange: (k) => w(k, b),
|
|
2584
2592
|
onInvalid: b.onInvalid ? b.onInvalid : void 0
|
|
2585
2593
|
}
|
|
2586
2594
|
)
|
|
@@ -2635,7 +2643,7 @@ const gs = ({
|
|
|
2635
2643
|
className: ` ${e} button--filters button--transparent `,
|
|
2636
2644
|
children: [
|
|
2637
2645
|
n && /* @__PURE__ */ o.jsx("span", { children: /* @__PURE__ */ o.jsx(
|
|
2638
|
-
|
|
2646
|
+
V,
|
|
2639
2647
|
{
|
|
2640
2648
|
classIcon: n,
|
|
2641
2649
|
size: a || xe.EXTRA_SMALL
|
|
@@ -2711,14 +2719,14 @@ const gs = ({
|
|
|
2711
2719
|
onClick: (p) => g(p, !f),
|
|
2712
2720
|
children: [
|
|
2713
2721
|
/* @__PURE__ */ o.jsx(
|
|
2714
|
-
|
|
2722
|
+
V,
|
|
2715
2723
|
{
|
|
2716
2724
|
size: xe.MEDIUM,
|
|
2717
2725
|
classIcon: "bi-three-dots-vertical cursor-pointer"
|
|
2718
2726
|
}
|
|
2719
2727
|
),
|
|
2720
2728
|
/* @__PURE__ */ o.jsx(
|
|
2721
|
-
|
|
2729
|
+
V,
|
|
2722
2730
|
{
|
|
2723
2731
|
size: xe.MEDIUM,
|
|
2724
2732
|
classIcon: "bi-three-dots cursor-pointer"
|
|
@@ -2790,7 +2798,7 @@ const gs = ({
|
|
|
2790
2798
|
{
|
|
2791
2799
|
className: "ml-2 cursor-pointer",
|
|
2792
2800
|
onClick: (w) => m(w, e),
|
|
2793
|
-
children: /* @__PURE__ */ o.jsx(
|
|
2801
|
+
children: /* @__PURE__ */ o.jsx(V, { classIcon: "bi-trash3" })
|
|
2794
2802
|
}
|
|
2795
2803
|
),
|
|
2796
2804
|
t && /* @__PURE__ */ o.jsx(
|
|
@@ -2853,7 +2861,7 @@ const gs = ({
|
|
|
2853
2861
|
{
|
|
2854
2862
|
className: `carousel-control prev ${v && "disabled"}`,
|
|
2855
2863
|
onClick: f,
|
|
2856
|
-
children: /* @__PURE__ */ o.jsx(
|
|
2864
|
+
children: /* @__PURE__ */ o.jsx(V, { classIcon: "bi-chevron-left" })
|
|
2857
2865
|
}
|
|
2858
2866
|
),
|
|
2859
2867
|
/* @__PURE__ */ o.jsx("div", { className: "carousel-container", children: /* @__PURE__ */ o.jsx(
|
|
@@ -2883,7 +2891,7 @@ const gs = ({
|
|
|
2883
2891
|
{
|
|
2884
2892
|
className: `carousel-control next ${h && "disabled"}`,
|
|
2885
2893
|
onClick: d,
|
|
2886
|
-
children: /* @__PURE__ */ o.jsx(
|
|
2894
|
+
children: /* @__PURE__ */ o.jsx(V, { classIcon: "bi-chevron-right" })
|
|
2887
2895
|
}
|
|
2888
2896
|
)
|
|
2889
2897
|
] });
|
|
@@ -2958,7 +2966,7 @@ const gs = ({
|
|
|
2958
2966
|
{
|
|
2959
2967
|
className: "mr-2 ",
|
|
2960
2968
|
onClick: () => e.onClick(t),
|
|
2961
|
-
children: /* @__PURE__ */ o.jsx(
|
|
2969
|
+
children: /* @__PURE__ */ o.jsx(V, { classIcon: e.classIcon ?? "" }, e.id)
|
|
2962
2970
|
},
|
|
2963
2971
|
`icon-action-${e.id}-${r}`
|
|
2964
2972
|
)
|
|
@@ -2981,6 +2989,7 @@ function ws({
|
|
|
2981
2989
|
textAlign: e.align ?? "left",
|
|
2982
2990
|
alignContent: e.children ? "center" : "flex-end"
|
|
2983
2991
|
},
|
|
2992
|
+
className: e.children ? "has-children" : "",
|
|
2984
2993
|
colSpan: ((a = e.children) == null ? void 0 : a.length) ?? 1,
|
|
2985
2994
|
rowSpan: !((i = e.children) != null && i.length) && n ? 2 : 1,
|
|
2986
2995
|
onClick: () => r == null ? void 0 : r(e),
|
|
@@ -3066,38 +3075,38 @@ function Bl(e) {
|
|
|
3066
3075
|
hideToggleAll: w = !1,
|
|
3067
3076
|
limitSelect: j = void 0,
|
|
3068
3077
|
getRowId: y
|
|
3069
|
-
} = e,
|
|
3078
|
+
} = e, O = oe(null), [S, R] = W(
|
|
3070
3079
|
/* @__PURE__ */ new Set()
|
|
3071
|
-
),
|
|
3080
|
+
), P = $(() => {
|
|
3072
3081
|
if (S.size === s.length)
|
|
3073
3082
|
R(/* @__PURE__ */ new Set()), p == null || p([]);
|
|
3074
3083
|
else {
|
|
3075
3084
|
let T = s.map(
|
|
3076
|
-
(
|
|
3085
|
+
(k) => y ? y(k) : k.id ?? k
|
|
3077
3086
|
);
|
|
3078
3087
|
j && T.length > j && (T = T.slice(0, j));
|
|
3079
3088
|
const A = new Set(T);
|
|
3080
3089
|
R(A), p == null || p(
|
|
3081
3090
|
s.filter(
|
|
3082
|
-
(
|
|
3091
|
+
(k) => A.has(y ? y(k) : k.id ?? k)
|
|
3083
3092
|
)
|
|
3084
3093
|
);
|
|
3085
3094
|
}
|
|
3086
|
-
}, [s, p, j, y, S.size]),
|
|
3095
|
+
}, [s, p, j, y, S.size]), E = $(
|
|
3087
3096
|
(T, A) => {
|
|
3088
3097
|
T.stopPropagation(), f && (f == null || f(A));
|
|
3089
3098
|
},
|
|
3090
3099
|
[f]
|
|
3091
|
-
),
|
|
3100
|
+
), Y = $(
|
|
3092
3101
|
(T, A) => {
|
|
3093
3102
|
T.stopPropagation();
|
|
3094
|
-
const
|
|
3095
|
-
if (F.has(
|
|
3096
|
-
F.delete(
|
|
3103
|
+
const k = y ? y(A) : A.id ?? A, F = new Set(S);
|
|
3104
|
+
if (F.has(k))
|
|
3105
|
+
F.delete(k);
|
|
3097
3106
|
else {
|
|
3098
3107
|
if (j && F.size >= j)
|
|
3099
3108
|
return;
|
|
3100
|
-
F.add(
|
|
3109
|
+
F.add(k);
|
|
3101
3110
|
}
|
|
3102
3111
|
R(F);
|
|
3103
3112
|
const ie = s.filter(
|
|
@@ -3119,8 +3128,8 @@ function Bl(e) {
|
|
|
3119
3128
|
threshold: 1
|
|
3120
3129
|
}
|
|
3121
3130
|
);
|
|
3122
|
-
return
|
|
3123
|
-
|
|
3131
|
+
return O.current && T.observe(O.current), () => {
|
|
3132
|
+
O.current && T.unobserve(O.current);
|
|
3124
3133
|
};
|
|
3125
3134
|
}, [g, m]);
|
|
3126
3135
|
const b = c.some((T) => {
|
|
@@ -3150,7 +3159,7 @@ function Bl(e) {
|
|
|
3150
3159
|
name: `select-th-${t}`,
|
|
3151
3160
|
type: Be.CHECKBOX,
|
|
3152
3161
|
checked: s.length > 0 && S.size === s.length,
|
|
3153
|
-
onChange:
|
|
3162
|
+
onChange: P
|
|
3154
3163
|
}
|
|
3155
3164
|
)
|
|
3156
3165
|
}
|
|
@@ -3179,8 +3188,8 @@ function Bl(e) {
|
|
|
3179
3188
|
] }),
|
|
3180
3189
|
b && /* @__PURE__ */ o.jsx("tr", { children: c.flatMap(
|
|
3181
3190
|
(T, A) => {
|
|
3182
|
-
var
|
|
3183
|
-
return ((
|
|
3191
|
+
var k;
|
|
3192
|
+
return ((k = T.children) == null ? void 0 : k.map((F, ie) => /* @__PURE__ */ o.jsx(
|
|
3184
3193
|
"th",
|
|
3185
3194
|
{
|
|
3186
3195
|
style: { textAlign: F.align ?? "left" },
|
|
@@ -3201,7 +3210,7 @@ function Bl(e) {
|
|
|
3201
3210
|
children: /* @__PURE__ */ o.jsx("div", { className: "mt-3", children: /* @__PURE__ */ o.jsx(pa, { display: d }) })
|
|
3202
3211
|
}
|
|
3203
3212
|
) }) : /* @__PURE__ */ o.jsx(o.Fragment, {}),
|
|
3204
|
-
!d && s.map((T, A) => /* @__PURE__ */ o.jsxs("tr", { onClick: (
|
|
3213
|
+
!d && s.map((T, A) => /* @__PURE__ */ o.jsxs("tr", { onClick: (k) => E == null ? void 0 : E(k, T), children: [
|
|
3205
3214
|
p && /* @__PURE__ */ o.jsx("td", { className: "select-cell", style: { textAlign: "center" }, children: /* @__PURE__ */ o.jsx(
|
|
3206
3215
|
wr,
|
|
3207
3216
|
{
|
|
@@ -3214,14 +3223,14 @@ function Bl(e) {
|
|
|
3214
3223
|
checked: S.has(
|
|
3215
3224
|
y ? y(T) : T.id ?? T
|
|
3216
3225
|
),
|
|
3217
|
-
onChange: (
|
|
3226
|
+
onChange: (k) => Y(k, T)
|
|
3218
3227
|
}
|
|
3219
3228
|
) }),
|
|
3220
|
-
L.map((
|
|
3221
|
-
l.length > 0 && /* @__PURE__ */ o.jsx("td", { align: "right", children: /* @__PURE__ */ o.jsx("div", { className: "d-flex align-items-center justify-content-end", children: l.map((
|
|
3229
|
+
L.map((k, F) => /* @__PURE__ */ o.jsx(Ds, { column: k, idx: F, row: T }, F)),
|
|
3230
|
+
l.length > 0 && /* @__PURE__ */ o.jsx("td", { align: "right", children: /* @__PURE__ */ o.jsx("div", { className: "d-flex align-items-center justify-content-end", children: l.map((k, F) => /* @__PURE__ */ o.jsx(
|
|
3222
3231
|
xs,
|
|
3223
3232
|
{
|
|
3224
|
-
action:
|
|
3233
|
+
action: k,
|
|
3225
3234
|
row: T,
|
|
3226
3235
|
index: F
|
|
3227
3236
|
},
|
|
@@ -3239,7 +3248,7 @@ function Bl(e) {
|
|
|
3239
3248
|
] })
|
|
3240
3249
|
] }),
|
|
3241
3250
|
a,
|
|
3242
|
-
m && /* @__PURE__ */ o.jsx("div", { ref:
|
|
3251
|
+
m && /* @__PURE__ */ o.jsx("div", { ref: O, className: "infinite-scroll-loader", children: /* @__PURE__ */ o.jsx(pa, { display: !0 }) })
|
|
3243
3252
|
] });
|
|
3244
3253
|
}
|
|
3245
3254
|
function ho(e) {
|
|
@@ -3782,7 +3791,7 @@ function To(e, t) {
|
|
|
3782
3791
|
}
|
|
3783
3792
|
var Pe = "react-calendar__navigation";
|
|
3784
3793
|
function Nc(e) {
|
|
3785
|
-
var t = e.activeStartDate, r = e.drillUp, n = e.formatMonthYear, a = n === void 0 ? Eo : n, i = e.formatYear, s = i === void 0 ? Ir : i, l = e.locale, c = e.maxDate, d = e.minDate, f = e.navigationAriaLabel, h = f === void 0 ? "" : f, g = e.navigationAriaLive, v = e.navigationLabel, m = e.next2AriaLabel, p = m === void 0 ? "" : m, w = e.next2Label, j = w === void 0 ? "»" : w, y = e.nextAriaLabel,
|
|
3794
|
+
var t = e.activeStartDate, r = e.drillUp, n = e.formatMonthYear, a = n === void 0 ? Eo : n, i = e.formatYear, s = i === void 0 ? Ir : i, l = e.locale, c = e.maxDate, d = e.minDate, f = e.navigationAriaLabel, h = f === void 0 ? "" : f, g = e.navigationAriaLive, v = e.navigationLabel, m = e.next2AriaLabel, p = m === void 0 ? "" : m, w = e.next2Label, j = w === void 0 ? "»" : w, y = e.nextAriaLabel, O = y === void 0 ? "" : y, S = e.nextLabel, R = S === void 0 ? "›" : S, P = e.prev2AriaLabel, E = P === void 0 ? "" : P, Y = e.prev2Label, b = Y === void 0 ? "«" : Y, L = e.prevAriaLabel, T = L === void 0 ? "" : L, A = e.prevLabel, k = A === void 0 ? "‹" : A, F = e.setActiveStartDate, ie = e.showDoubleView, K = e.view, we = e.views, Ae = we.indexOf(K) > 0, te = K !== "century", J = yc(K, t), le = te ? bc(K, t) : void 0, ee = ko(K, t), Se = te ? xc(K, t) : void 0, Ee = function() {
|
|
3786
3795
|
if (J.getFullYear() < 0)
|
|
3787
3796
|
return !0;
|
|
3788
3797
|
var re = wc(K, t);
|
|
@@ -3831,7 +3840,7 @@ function Nc(e) {
|
|
|
3831
3840
|
var re = "".concat(Pe, "__label");
|
|
3832
3841
|
return o.jsxs("button", { "aria-label": h, "aria-live": g, className: re, disabled: !Ae, onClick: r, style: { flexGrow: 1 }, type: "button", children: [o.jsx("span", { className: "".concat(re, "__labelText ").concat(re, "__labelText--from"), children: he(t) }), ie ? o.jsxs(o.Fragment, { children: [o.jsx("span", { className: "".concat(re, "__divider"), children: " – " }), o.jsx("span", { className: "".concat(re, "__labelText ").concat(re, "__labelText--to"), children: he(ee) })] }) : null] });
|
|
3833
3842
|
}
|
|
3834
|
-
return o.jsxs("div", { className: Pe, children: [b !== null && te ? o.jsx("button", { "aria-label":
|
|
3843
|
+
return o.jsxs("div", { className: Pe, children: [b !== null && te ? o.jsx("button", { "aria-label": E, className: "".concat(Pe, "__arrow ").concat(Pe, "__prev2-button"), disabled: ke, onClick: ne, type: "button", children: b }) : null, k !== null && o.jsx("button", { "aria-label": T, className: "".concat(Pe, "__arrow ").concat(Pe, "__prev-button"), disabled: Ee, onClick: ue, type: "button", children: k }), Ot(), R !== null && o.jsx("button", { "aria-label": O, className: "".concat(Pe, "__arrow ").concat(Pe, "__next-button"), disabled: me, onClick: De, type: "button", children: R }), j !== null && te ? o.jsx("button", { "aria-label": p, className: "".concat(Pe, "__arrow ").concat(Pe, "__next2-button"), disabled: pe, onClick: Ce, type: "button", children: j }) : null] });
|
|
3835
3844
|
}
|
|
3836
3845
|
var ft = function() {
|
|
3837
3846
|
return ft = Object.assign || function(e) {
|
|
@@ -3945,7 +3954,7 @@ function Lr(e) {
|
|
|
3945
3954
|
var t = e.activeStartDate, r = e.children, n = e.classes, a = e.date, i = e.formatAbbr, s = e.locale, l = e.maxDate, c = e.maxDateTransform, d = e.minDate, f = e.minDateTransform, h = e.onClick, g = e.onMouseOver, v = e.style, m = e.tileClassName, p = e.tileContent, w = e.tileDisabled, j = e.view, y = Le(function() {
|
|
3946
3955
|
var S = { activeStartDate: t, date: a, view: j };
|
|
3947
3956
|
return typeof m == "function" ? m(S) : m;
|
|
3948
|
-
}, [t, a, m, j]),
|
|
3957
|
+
}, [t, a, m, j]), O = Le(function() {
|
|
3949
3958
|
var S = { activeStartDate: t, date: a, view: j };
|
|
3950
3959
|
return typeof p == "function" ? p(S) : p;
|
|
3951
3960
|
}, [t, a, p, j]);
|
|
@@ -3955,7 +3964,7 @@ function Lr(e) {
|
|
|
3955
3964
|
return g(a);
|
|
3956
3965
|
} : void 0, onMouseOver: g ? function() {
|
|
3957
3966
|
return g(a);
|
|
3958
|
-
} : void 0, style: v, type: "button", children: [i ? o.jsx("abbr", { "aria-label": i(s, a), children: r }) : r,
|
|
3967
|
+
} : void 0, style: v, type: "button", children: [i ? o.jsx("abbr", { "aria-label": i(s, a), children: r }) : r, O] });
|
|
3959
3968
|
}
|
|
3960
3969
|
var hn = function() {
|
|
3961
3970
|
return hn = Object.assign || function(e) {
|
|
@@ -4387,15 +4396,15 @@ function ur(e, t) {
|
|
|
4387
4396
|
return e instanceof Date && t instanceof Date && e.getTime() === t.getTime();
|
|
4388
4397
|
}
|
|
4389
4398
|
var il = Ue(function(t, r) {
|
|
4390
|
-
var n = t.activeStartDate, a = t.allowPartialRange, i = t.calendarType, s = t.className, l = t.defaultActiveStartDate, c = t.defaultValue, d = t.defaultView, f = t.formatDay, h = t.formatLongDate, g = t.formatMonth, v = t.formatMonthYear, m = t.formatShortWeekday, p = t.formatWeekday, w = t.formatYear, j = t.goToRangeStartOnSelect, y = j === void 0 ? !0 : j,
|
|
4399
|
+
var n = t.activeStartDate, a = t.allowPartialRange, i = t.calendarType, s = t.className, l = t.defaultActiveStartDate, c = t.defaultValue, d = t.defaultView, f = t.formatDay, h = t.formatLongDate, g = t.formatMonth, v = t.formatMonthYear, m = t.formatShortWeekday, p = t.formatWeekday, w = t.formatYear, j = t.goToRangeStartOnSelect, y = j === void 0 ? !0 : j, O = t.inputRef, S = t.locale, R = t.maxDate, P = R === void 0 ? tl : R, E = t.maxDetail, Y = E === void 0 ? "month" : E, b = t.minDate, L = b === void 0 ? Bn : b, T = t.minDetail, A = T === void 0 ? "century" : T, k = t.navigationAriaLabel, F = t.navigationAriaLive, ie = t.navigationLabel, K = t.next2AriaLabel, we = t.next2Label, Ae = t.nextAriaLabel, te = t.nextLabel, J = t.onActiveStartDateChange, le = t.onChange, ee = t.onClickDay, Se = t.onClickDecade, Ee = t.onClickMonth, ke = t.onClickWeekNumber, me = t.onClickYear, pe = t.onDrillDown, ue = t.onDrillUp, ne = t.onViewChange, De = t.prev2AriaLabel, Ce = t.prev2Label, he = t.prevAriaLabel, Ot = t.prevLabel, re = t.returnValue, _e = re === void 0 ? "start" : re, se = t.selectRange, He = t.showDoubleView, Nt = t.showFixedNumberOfWeeks, qe = t.showNavigation, Mr = qe === void 0 ? !0 : qe, Fr = t.showNeighboringCentury, Et = t.showNeighboringDecade, Ht = t.showNeighboringMonth, Wr = Ht === void 0 ? !0 : Ht, qt = t.showWeekNumbers, Xt = t.tileClassName, Kt = t.tileContent, Vr = t.tileDisabled, it = t.value, kt = t.view, Jt = W(l), Yr = Jt[0], st = Jt[1], Qt = W(null), Br = Qt[0], Zt = Qt[1], er = W(Array.isArray(c) ? c.map(function(N) {
|
|
4391
4400
|
return N !== null ? Ft(N) : null;
|
|
4392
4401
|
}) : c != null ? Ft(c) : null), Xe = er[0], tr = er[1], Ie = W(d), Ct = Ie[0], ct = Ie[1], de = n || Yr || ol({
|
|
4393
4402
|
activeStartDate: n,
|
|
4394
4403
|
defaultActiveStartDate: l,
|
|
4395
4404
|
defaultValue: c,
|
|
4396
4405
|
defaultView: d,
|
|
4397
|
-
maxDate:
|
|
4398
|
-
maxDetail:
|
|
4406
|
+
maxDate: P,
|
|
4407
|
+
maxDetail: Y,
|
|
4399
4408
|
minDate: L,
|
|
4400
4409
|
minDetail: A,
|
|
4401
4410
|
value: it,
|
|
@@ -4404,11 +4413,11 @@ var il = Ue(function(t, r) {
|
|
|
4404
4413
|
var N = function() {
|
|
4405
4414
|
return se && Zr(Xe) ? Xe : it !== void 0 ? it : Xe;
|
|
4406
4415
|
}();
|
|
4407
|
-
return N ? Array.isArray(N) ? N.map(function(
|
|
4408
|
-
return
|
|
4416
|
+
return N ? Array.isArray(N) ? N.map(function(C) {
|
|
4417
|
+
return C !== null ? Ft(C) : null;
|
|
4409
4418
|
}) : N !== null ? Ft(N) : null : null;
|
|
4410
|
-
}(), Ke = $o(
|
|
4411
|
-
var
|
|
4419
|
+
}(), Ke = $o(Y), q = Un(kt || Ct, A, Y), je = Io(A, Y), rr = se ? Br : null, _t = je.indexOf(q) < je.length - 1, nr = je.indexOf(q) > 0, Pt = $(function(N) {
|
|
4420
|
+
var C = function() {
|
|
4412
4421
|
switch (_e) {
|
|
4413
4422
|
case "start":
|
|
4414
4423
|
return zn;
|
|
@@ -4420,23 +4429,23 @@ var il = Ue(function(t, r) {
|
|
|
4420
4429
|
throw new Error("Invalid returnValue.");
|
|
4421
4430
|
}
|
|
4422
4431
|
}();
|
|
4423
|
-
return
|
|
4424
|
-
maxDate:
|
|
4425
|
-
maxDetail:
|
|
4432
|
+
return C({
|
|
4433
|
+
maxDate: P,
|
|
4434
|
+
maxDetail: Y,
|
|
4426
4435
|
minDate: L,
|
|
4427
4436
|
value: N
|
|
4428
4437
|
});
|
|
4429
|
-
}, [
|
|
4438
|
+
}, [P, Y, L, _e]), lt = $(function(N, C) {
|
|
4430
4439
|
st(N);
|
|
4431
|
-
var
|
|
4432
|
-
action:
|
|
4440
|
+
var _ = {
|
|
4441
|
+
action: C,
|
|
4433
4442
|
activeStartDate: N,
|
|
4434
4443
|
value: ve,
|
|
4435
4444
|
view: q
|
|
4436
4445
|
};
|
|
4437
|
-
J && !ur(de, N) && J(
|
|
4438
|
-
}, [de, J, ve, q]), ut = $(function(N,
|
|
4439
|
-
var
|
|
4446
|
+
J && !ur(de, N) && J(_);
|
|
4447
|
+
}, [de, J, ve, q]), ut = $(function(N, C) {
|
|
4448
|
+
var _ = function() {
|
|
4440
4449
|
switch (q) {
|
|
4441
4450
|
case "century":
|
|
4442
4451
|
return Se;
|
|
@@ -4450,21 +4459,21 @@ var il = Ue(function(t, r) {
|
|
|
4450
4459
|
throw new Error("Invalid view: ".concat(q, "."));
|
|
4451
4460
|
}
|
|
4452
4461
|
}();
|
|
4453
|
-
|
|
4454
|
-
}, [ee, Se, Ee, me, q]), Tt = $(function(N,
|
|
4462
|
+
_ && _(N, C);
|
|
4463
|
+
}, [ee, Se, Ee, me, q]), Tt = $(function(N, C) {
|
|
4455
4464
|
if (_t) {
|
|
4456
|
-
ut(N,
|
|
4457
|
-
var
|
|
4458
|
-
if (!
|
|
4465
|
+
ut(N, C);
|
|
4466
|
+
var _ = je[je.indexOf(q) + 1];
|
|
4467
|
+
if (!_)
|
|
4459
4468
|
throw new Error("Attempted to drill down from the lowest view.");
|
|
4460
|
-
st(N), ct(
|
|
4469
|
+
st(N), ct(_);
|
|
4461
4470
|
var G = {
|
|
4462
4471
|
action: "drillDown",
|
|
4463
4472
|
activeStartDate: N,
|
|
4464
4473
|
value: ve,
|
|
4465
|
-
view:
|
|
4474
|
+
view: _
|
|
4466
4475
|
};
|
|
4467
|
-
J && !ur(de, N) && J(G), ne && q !==
|
|
4476
|
+
J && !ur(de, N) && J(G), ne && q !== _ && ne(G), pe && pe(G);
|
|
4468
4477
|
}
|
|
4469
4478
|
}, [
|
|
4470
4479
|
de,
|
|
@@ -4481,15 +4490,15 @@ var il = Ue(function(t, r) {
|
|
|
4481
4490
|
var N = je[je.indexOf(q) - 1];
|
|
4482
4491
|
if (!N)
|
|
4483
4492
|
throw new Error("Attempted to drill up from the highest view.");
|
|
4484
|
-
var
|
|
4485
|
-
st(
|
|
4486
|
-
var
|
|
4493
|
+
var C = rt(N, de);
|
|
4494
|
+
st(C), ct(N);
|
|
4495
|
+
var _ = {
|
|
4487
4496
|
action: "drillUp",
|
|
4488
|
-
activeStartDate:
|
|
4497
|
+
activeStartDate: C,
|
|
4489
4498
|
value: ve,
|
|
4490
4499
|
view: N
|
|
4491
4500
|
};
|
|
4492
|
-
J && !ur(de,
|
|
4501
|
+
J && !ur(de, C) && J(_), ne && q !== N && ne(_), ue && ue(_);
|
|
4493
4502
|
}
|
|
4494
4503
|
}, [
|
|
4495
4504
|
de,
|
|
@@ -4500,19 +4509,19 @@ var il = Ue(function(t, r) {
|
|
|
4500
4509
|
ve,
|
|
4501
4510
|
q,
|
|
4502
4511
|
je
|
|
4503
|
-
]), At = $(function(N,
|
|
4504
|
-
var
|
|
4505
|
-
ut(N,
|
|
4506
|
-
var G = se && !Zr(
|
|
4512
|
+
]), At = $(function(N, C) {
|
|
4513
|
+
var _ = ve;
|
|
4514
|
+
ut(N, C);
|
|
4515
|
+
var G = se && !Zr(_), B;
|
|
4507
4516
|
if (se)
|
|
4508
4517
|
if (G)
|
|
4509
4518
|
B = rt(Ke, N);
|
|
4510
4519
|
else {
|
|
4511
|
-
if (!
|
|
4520
|
+
if (!_)
|
|
4512
4521
|
throw new Error("previousValue is required");
|
|
4513
|
-
if (Array.isArray(
|
|
4522
|
+
if (Array.isArray(_))
|
|
4514
4523
|
throw new Error("previousValue must not be an array");
|
|
4515
|
-
B = Sc(Ke,
|
|
4524
|
+
B = Sc(Ke, _, N);
|
|
4516
4525
|
}
|
|
4517
4526
|
else
|
|
4518
4527
|
B = Pt(N);
|
|
@@ -4521,15 +4530,15 @@ var il = Ue(function(t, r) {
|
|
|
4521
4530
|
!se || // Range selection turned on, first value
|
|
4522
4531
|
G || // Range selection turned on, second value, goToRangeStartOnSelect toggled on
|
|
4523
4532
|
y ? Fo({
|
|
4524
|
-
maxDate:
|
|
4525
|
-
maxDetail:
|
|
4533
|
+
maxDate: P,
|
|
4534
|
+
maxDetail: Y,
|
|
4526
4535
|
minDate: L,
|
|
4527
4536
|
minDetail: A,
|
|
4528
4537
|
value: B,
|
|
4529
4538
|
view: q
|
|
4530
4539
|
}) : null
|
|
4531
4540
|
);
|
|
4532
|
-
|
|
4541
|
+
C.persist(), st(Q), tr(B);
|
|
4533
4542
|
var ge = {
|
|
4534
4543
|
action: "onChange",
|
|
4535
4544
|
activeStartDate: Q,
|
|
@@ -4540,21 +4549,21 @@ var il = Ue(function(t, r) {
|
|
|
4540
4549
|
if (se) {
|
|
4541
4550
|
var We = Zr(B);
|
|
4542
4551
|
if (!We)
|
|
4543
|
-
le(B || null,
|
|
4552
|
+
le(B || null, C);
|
|
4544
4553
|
else if (a) {
|
|
4545
4554
|
if (Array.isArray(B))
|
|
4546
4555
|
throw new Error("value must not be an array");
|
|
4547
|
-
le([B || null, null],
|
|
4556
|
+
le([B || null, null], C);
|
|
4548
4557
|
}
|
|
4549
4558
|
} else
|
|
4550
|
-
le(B || null,
|
|
4559
|
+
le(B || null, C);
|
|
4551
4560
|
}, [
|
|
4552
4561
|
de,
|
|
4553
4562
|
a,
|
|
4554
4563
|
Pt,
|
|
4555
4564
|
y,
|
|
4556
|
-
|
|
4557
|
-
|
|
4565
|
+
P,
|
|
4566
|
+
Y,
|
|
4558
4567
|
L,
|
|
4559
4568
|
A,
|
|
4560
4569
|
J,
|
|
@@ -4582,14 +4591,14 @@ var il = Ue(function(t, r) {
|
|
|
4582
4591
|
view: q
|
|
4583
4592
|
};
|
|
4584
4593
|
}, [de, Tt, Rt, At, lt, ve, q]);
|
|
4585
|
-
function
|
|
4586
|
-
var
|
|
4587
|
-
activeStartDate:
|
|
4594
|
+
function D(N) {
|
|
4595
|
+
var C = N ? ko(q, de) : rt(q, de), _ = _t ? Tt : At, G = {
|
|
4596
|
+
activeStartDate: C,
|
|
4588
4597
|
hover: rr,
|
|
4589
4598
|
locale: S,
|
|
4590
|
-
maxDate:
|
|
4599
|
+
maxDate: P,
|
|
4591
4600
|
minDate: L,
|
|
4592
|
-
onClick:
|
|
4601
|
+
onClick: _,
|
|
4593
4602
|
onMouseOver: se ? u : void 0,
|
|
4594
4603
|
tileClassName: Xt,
|
|
4595
4604
|
tileContent: Kt,
|
|
@@ -4611,10 +4620,10 @@ var il = Ue(function(t, r) {
|
|
|
4611
4620
|
}
|
|
4612
4621
|
}
|
|
4613
4622
|
function I() {
|
|
4614
|
-
return Mr ? o.jsx(Nc, { activeStartDate: de, drillUp: Rt, formatMonthYear: v, formatYear: w, locale: S, maxDate:
|
|
4623
|
+
return Mr ? o.jsx(Nc, { activeStartDate: de, drillUp: Rt, formatMonthYear: v, formatYear: w, locale: S, maxDate: P, minDate: L, navigationAriaLabel: k, navigationAriaLive: F, navigationLabel: ie, next2AriaLabel: K, next2Label: we, nextAriaLabel: Ae, nextLabel: te, prev2AriaLabel: De, prev2Label: Ce, prevAriaLabel: he, prevLabel: Ot, setActiveStartDate: lt, showDoubleView: He, view: q, views: je }) : null;
|
|
4615
4624
|
}
|
|
4616
4625
|
var U = Array.isArray(ve) ? ve : [ve];
|
|
4617
|
-
return o.jsxs("div", { className: Pr(lr, se && U.length === 1 && "".concat(lr, "--selectRange"), He && "".concat(lr, "--doubleView"), s), ref:
|
|
4626
|
+
return o.jsxs("div", { className: Pr(lr, se && U.length === 1 && "".concat(lr, "--selectRange"), He && "".concat(lr, "--doubleView"), s), ref: O, children: [I(), o.jsxs("div", { className: "".concat(lr, "__viewContainer"), onBlur: se ? x : void 0, onMouseLeave: se ? x : void 0, children: [D(), He ? D(!0) : null] })] });
|
|
4618
4627
|
});
|
|
4619
4628
|
const Ul = ({
|
|
4620
4629
|
value: e,
|
|
@@ -4641,7 +4650,7 @@ const Ul = ({
|
|
|
4641
4650
|
return /* @__PURE__ */ o.jsx("div", { children: /* @__PURE__ */ o.jsxs("div", { className: "calendar", ref: c, children: [
|
|
4642
4651
|
n && /* @__PURE__ */ o.jsx("div", { onClick: f, children: n }),
|
|
4643
4652
|
!n && /* @__PURE__ */ o.jsx("button", { className: "calendar-button", onClick: f, children: /* @__PURE__ */ o.jsx(
|
|
4644
|
-
|
|
4653
|
+
V,
|
|
4645
4654
|
{
|
|
4646
4655
|
classIcon: " bi-calendar4-event",
|
|
4647
4656
|
size: xe.EXTRA_LARGE
|
|
@@ -4654,7 +4663,7 @@ const Ul = ({
|
|
|
4654
4663
|
onClick: () => l(!1),
|
|
4655
4664
|
className: "calendar-popup-close",
|
|
4656
4665
|
children: /* @__PURE__ */ o.jsx(
|
|
4657
|
-
|
|
4666
|
+
V,
|
|
4658
4667
|
{
|
|
4659
4668
|
classIcon: "bi-x-lg close-icon",
|
|
4660
4669
|
size: xe.EXTRA_SMALL
|
|
@@ -4704,8 +4713,8 @@ const Ul = ({
|
|
|
4704
4713
|
className: `expand ${i ? "expand--active" : ""} ${r ?? ""}`,
|
|
4705
4714
|
children: [
|
|
4706
4715
|
/* @__PURE__ */ o.jsx("div", { className: "expand-header", children: /* @__PURE__ */ o.jsx("div", { className: "expand-header-content", children: /* @__PURE__ */ o.jsxs("div", { className: "expand-header-content-default", children: [
|
|
4707
|
-
i && n && /* @__PURE__ */ o.jsx(
|
|
4708
|
-
!i && n && /* @__PURE__ */ o.jsx(
|
|
4716
|
+
i && n && /* @__PURE__ */ o.jsx(V, { classIcon: "bi bi-chevron-down mr-2" }),
|
|
4717
|
+
!i && n && /* @__PURE__ */ o.jsx(V, { classIcon: "bi bi-chevron-right mr-2" }),
|
|
4709
4718
|
/* @__PURE__ */ o.jsx("span", { className: "flex-1 expand-header-title-left", children: t.title }),
|
|
4710
4719
|
t.description && /* @__PURE__ */ o.jsx("span", { className: "expand-header-title-right", children: t.description })
|
|
4711
4720
|
] }) }) }),
|
|
@@ -4793,19 +4802,19 @@ const Ul = ({
|
|
|
4793
4802
|
onFocus: p
|
|
4794
4803
|
}, w) => {
|
|
4795
4804
|
const j = $(
|
|
4796
|
-
(
|
|
4797
|
-
let S =
|
|
4798
|
-
!/^-?\d*[.,]?\d*$/.test(S) && S !== "" || c && S.length > c || h == null || h(
|
|
4805
|
+
(O) => {
|
|
4806
|
+
let S = O.target.value.replace(",", ".");
|
|
4807
|
+
!/^-?\d*[.,]?\d*$/.test(S) && S !== "" || c && S.length > c || h == null || h(O, S);
|
|
4799
4808
|
},
|
|
4800
4809
|
[h, c]
|
|
4801
|
-
), y = (
|
|
4802
|
-
if (m && m(
|
|
4803
|
-
|
|
4804
|
-
) ||
|
|
4805
|
-
|
|
4810
|
+
), y = (O) => {
|
|
4811
|
+
if (m && m(O), !(/[0-9]|Backspace|Delete|ArrowLeft|ArrowRight|Tab|Enter|Home|End/.test(
|
|
4812
|
+
O.key
|
|
4813
|
+
) || O.key === "." || O.key === "," || O.key === "-")) {
|
|
4814
|
+
O.preventDefault();
|
|
4806
4815
|
return;
|
|
4807
4816
|
}
|
|
4808
|
-
|
|
4817
|
+
O.key === "-" && ((O.target.selectionStart ?? 0) !== 0 || r.includes("-")) && O.preventDefault();
|
|
4809
4818
|
};
|
|
4810
4819
|
return /* @__PURE__ */ o.jsx("div", { className: "input-container input-container-number", children: /* @__PURE__ */ o.jsx(
|
|
4811
4820
|
"input",
|
|
@@ -4825,12 +4834,12 @@ const Ul = ({
|
|
|
4825
4834
|
spellCheck: "false",
|
|
4826
4835
|
className: `input-field ${a ?? ""}`,
|
|
4827
4836
|
onChange: j,
|
|
4828
|
-
onWheel: (
|
|
4837
|
+
onWheel: (O) => O.currentTarget.blur(),
|
|
4829
4838
|
onKeyDown: y,
|
|
4830
4839
|
onFocus: p,
|
|
4831
4840
|
onBlur: g,
|
|
4832
|
-
onClick: (
|
|
4833
|
-
|
|
4841
|
+
onClick: (O) => {
|
|
4842
|
+
O.stopPropagation(), v == null || v(O);
|
|
4834
4843
|
}
|
|
4835
4844
|
}
|
|
4836
4845
|
) });
|
|
@@ -4904,9 +4913,9 @@ const Hl = Ue(
|
|
|
4904
4913
|
}, [d, f]);
|
|
4905
4914
|
return /* @__PURE__ */ o.jsxs("div", { className: `header ${a ? "header--fixed" : ""}`, children: [
|
|
4906
4915
|
/* @__PURE__ */ o.jsxs("div", { className: "flex-1 d-flex align-items-center", children: [
|
|
4907
|
-
/* @__PURE__ */ o.jsx("span", { onClick: r, children: /* @__PURE__ */ o.jsx(
|
|
4916
|
+
/* @__PURE__ */ o.jsx("span", { onClick: r, children: /* @__PURE__ */ o.jsx(V, { size: xe.MEDIUM, classIcon: "bi-list" }) }),
|
|
4908
4917
|
s && /* @__PURE__ */ o.jsx("span", { className: "chevron-back", onClick: l, children: /* @__PURE__ */ o.jsx(
|
|
4909
|
-
|
|
4918
|
+
V,
|
|
4910
4919
|
{
|
|
4911
4920
|
size: xe.EXTRA_SMALL,
|
|
4912
4921
|
classIcon: "bi-caret-left-fill"
|
|
@@ -4923,7 +4932,7 @@ const Hl = Ue(
|
|
|
4923
4932
|
] }),
|
|
4924
4933
|
/* @__PURE__ */ o.jsxs("div", { className: "d-flex align-items-center", children: [
|
|
4925
4934
|
e,
|
|
4926
|
-
/* @__PURE__ */ o.jsx("div", { ref: c, onClick: h, children: /* @__PURE__ */ o.jsx(
|
|
4935
|
+
/* @__PURE__ */ o.jsx("div", { ref: c, onClick: h, children: /* @__PURE__ */ o.jsx(V, { size: xe.MEDIUM, classIcon: "bi-person-circle" }) }),
|
|
4927
4936
|
d && c.current && /* @__PURE__ */ o.jsx(
|
|
4928
4937
|
An,
|
|
4929
4938
|
{
|
|
@@ -4952,7 +4961,7 @@ const Hl = Ue(
|
|
|
4952
4961
|
}
|
|
4953
4962
|
}, [t]);
|
|
4954
4963
|
return /* @__PURE__ */ o.jsxs("div", { className: `message message--${t} ${r ?? ""}`, children: [
|
|
4955
|
-
/* @__PURE__ */ o.jsx(
|
|
4964
|
+
/* @__PURE__ */ o.jsx(V, { classIcon: n }),
|
|
4956
4965
|
/* @__PURE__ */ o.jsx("span", { className: "message-text", children: e })
|
|
4957
4966
|
] });
|
|
4958
4967
|
}, Jl = ({
|
|
@@ -4980,7 +4989,7 @@ const Hl = Ue(
|
|
|
4980
4989
|
children: [
|
|
4981
4990
|
/* @__PURE__ */ o.jsxs("div", { className: "modal-header", children: [
|
|
4982
4991
|
i && /* @__PURE__ */ o.jsx("h2", { className: "modal-title", children: i }),
|
|
4983
|
-
/* @__PURE__ */ o.jsx("div", { className: "modal-close-button", onClick: t, children: /* @__PURE__ */ o.jsx(
|
|
4992
|
+
/* @__PURE__ */ o.jsx("div", { className: "modal-close-button", onClick: t, children: /* @__PURE__ */ o.jsx(V, { classIcon: "bi-x-lg" }) })
|
|
4984
4993
|
] }),
|
|
4985
4994
|
/* @__PURE__ */ o.jsx("div", { className: "modal-content", children: r }),
|
|
4986
4995
|
n && /* @__PURE__ */ o.jsx("div", { className: "d-flex justify-content-end", children: /* @__PURE__ */ o.jsx(xt, { onClick: n, title: a ?? "" }) })
|
|
@@ -5078,7 +5087,7 @@ const Hl = Ue(
|
|
|
5078
5087
|
{
|
|
5079
5088
|
onClick: (v) => h(v),
|
|
5080
5089
|
className: `qte-action qte-action--minus ${n || i ? "disabled" : ""} `,
|
|
5081
|
-
children: /* @__PURE__ */ o.jsx(
|
|
5090
|
+
children: /* @__PURE__ */ o.jsx(V, { size: xe.LARGE, classIcon: "bi bi-dash-square" })
|
|
5082
5091
|
}
|
|
5083
5092
|
),
|
|
5084
5093
|
/* @__PURE__ */ o.jsx("span", { onClick: (v) => g(v), className: "qte-label", children: l }),
|
|
@@ -5087,7 +5096,7 @@ const Hl = Ue(
|
|
|
5087
5096
|
{
|
|
5088
5097
|
onClick: (v) => f(v),
|
|
5089
5098
|
className: `qte-action qte-action--plus ${n || a ? "disabled" : ""}`,
|
|
5090
|
-
children: /* @__PURE__ */ o.jsx(
|
|
5099
|
+
children: /* @__PURE__ */ o.jsx(V, { size: xe.LARGE, classIcon: "bi bi-plus-square" })
|
|
5091
5100
|
}
|
|
5092
5101
|
)
|
|
5093
5102
|
] });
|
|
@@ -5144,8 +5153,8 @@ const Hl = Ue(
|
|
|
5144
5153
|
);
|
|
5145
5154
|
return Dr(d, () => ({
|
|
5146
5155
|
clearInput: (y) => {
|
|
5147
|
-
var
|
|
5148
|
-
(
|
|
5156
|
+
var O;
|
|
5157
|
+
(O = v.current) == null || O.clearInput(y);
|
|
5149
5158
|
},
|
|
5150
5159
|
resetForm: () => {
|
|
5151
5160
|
var y;
|
|
@@ -5172,7 +5181,7 @@ const Hl = Ue(
|
|
|
5172
5181
|
{
|
|
5173
5182
|
className: "toggle-btn",
|
|
5174
5183
|
onClick: () => p(!1),
|
|
5175
|
-
children: /* @__PURE__ */ o.jsx(
|
|
5184
|
+
children: /* @__PURE__ */ o.jsx(V, { classIcon: "bi-x-lg" })
|
|
5176
5185
|
}
|
|
5177
5186
|
) }),
|
|
5178
5187
|
/* @__PURE__ */ o.jsx("div", { className: "search-result-content", children: e })
|
|
@@ -5218,7 +5227,7 @@ const Hl = Ue(
|
|
|
5218
5227
|
children: [
|
|
5219
5228
|
/* @__PURE__ */ o.jsxs("div", { className: "sidebar-header", children: [
|
|
5220
5229
|
r && /* @__PURE__ */ o.jsx("h2", { className: "flex-1", children: r }),
|
|
5221
|
-
/* @__PURE__ */ o.jsx("button", { className: "toggle-btn", onClick: v, children: /* @__PURE__ */ o.jsx(
|
|
5230
|
+
/* @__PURE__ */ o.jsx("button", { className: "toggle-btn", onClick: v, children: /* @__PURE__ */ o.jsx(V, { classIcon: "bi-x-lg" }) })
|
|
5222
5231
|
] }),
|
|
5223
5232
|
t && t
|
|
5224
5233
|
]
|
|
@@ -5336,12 +5345,12 @@ const Ta = (e) => {
|
|
|
5336
5345
|
const d = document.getElementById("toaster-root");
|
|
5337
5346
|
return d ? Nn.createPortal(
|
|
5338
5347
|
/* @__PURE__ */ o.jsxs("div", { className: `toaster toaster-${r}`, children: [
|
|
5339
|
-
l && /* @__PURE__ */ o.jsx("div", { className: "toaster--close", onClick: c, children: /* @__PURE__ */ o.jsx(
|
|
5348
|
+
l && /* @__PURE__ */ o.jsx("div", { className: "toaster--close", onClick: c, children: /* @__PURE__ */ o.jsx(V, { classIcon: "bi-x" }) }),
|
|
5340
5349
|
/* @__PURE__ */ o.jsxs("div", { children: [
|
|
5341
|
-
r === "info" && /* @__PURE__ */ o.jsx(
|
|
5342
|
-
r === "success" && /* @__PURE__ */ o.jsx(
|
|
5343
|
-
r === "error" && /* @__PURE__ */ o.jsx(
|
|
5344
|
-
r === "warning" && /* @__PURE__ */ o.jsx(
|
|
5350
|
+
r === "info" && /* @__PURE__ */ o.jsx(V, { classIcon: "bi-info-circle" }),
|
|
5351
|
+
r === "success" && /* @__PURE__ */ o.jsx(V, { classIcon: "bi-check-circle" }),
|
|
5352
|
+
r === "error" && /* @__PURE__ */ o.jsx(V, { classIcon: "bi-x-circle" }),
|
|
5353
|
+
r === "warning" && /* @__PURE__ */ o.jsx(V, { classIcon: "bi-exclamation-triangle" })
|
|
5345
5354
|
] }),
|
|
5346
5355
|
/* @__PURE__ */ o.jsxs("div", { children: [
|
|
5347
5356
|
/* @__PURE__ */ o.jsx("div", { className: `title title-${r}`, children: e }),
|
|
@@ -5371,7 +5380,7 @@ export {
|
|
|
5371
5380
|
ql as Grid,
|
|
5372
5381
|
Xl as Header,
|
|
5373
5382
|
xl as HistoryProvider,
|
|
5374
|
-
|
|
5383
|
+
V as Icon,
|
|
5375
5384
|
xe as IconSizeEnum,
|
|
5376
5385
|
jl as ImageChecker,
|
|
5377
5386
|
Sl as ImageExist,
|