kelt-ui-kit-react 1.3.6 → 1.3.7
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 +364 -359
- package/dist/select/Select.d.ts +3 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/form/Form.tsx +2 -0
- package/src/form/input/Input.tsx +1 -1
- package/src/select/Select.tsx +6 -1
- package/src/select/select.css +1 -1
package/dist/index.js
CHANGED
|
@@ -52,29 +52,29 @@ var Tt = {};
|
|
|
52
52
|
var Bn;
|
|
53
53
|
function Lo() {
|
|
54
54
|
return Bn || (Bn = 1, process.env.NODE_ENV !== "production" && function() {
|
|
55
|
-
var e = Te, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), l = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), v = Symbol.for("react.memo"), g = Symbol.for("react.lazy"), h = Symbol.for("react.offscreen"), b = Symbol.iterator,
|
|
56
|
-
function
|
|
55
|
+
var e = Te, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), l = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), v = Symbol.for("react.memo"), g = Symbol.for("react.lazy"), h = Symbol.for("react.offscreen"), b = Symbol.iterator, p = "@@iterator";
|
|
56
|
+
function x(c) {
|
|
57
57
|
if (c === null || typeof c != "object")
|
|
58
58
|
return null;
|
|
59
|
-
var
|
|
60
|
-
return typeof
|
|
59
|
+
var w = b && c[b] || c[p];
|
|
60
|
+
return typeof w == "function" ? w : null;
|
|
61
61
|
}
|
|
62
62
|
var y = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
63
|
-
function
|
|
63
|
+
function m(c) {
|
|
64
64
|
{
|
|
65
|
-
for (var
|
|
65
|
+
for (var w = arguments.length, S = new Array(w > 1 ? w - 1 : 0), E = 1; E < w; E++)
|
|
66
66
|
S[E - 1] = arguments[E];
|
|
67
67
|
j("error", c, S);
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
|
-
function j(c,
|
|
70
|
+
function j(c, w, S) {
|
|
71
71
|
{
|
|
72
72
|
var E = y.ReactDebugCurrentFrame, I = E.getStackAddendum();
|
|
73
|
-
I !== "" && (
|
|
73
|
+
I !== "" && (w += "%s", S = S.concat([I]));
|
|
74
74
|
var D = S.map(function(_) {
|
|
75
75
|
return String(_);
|
|
76
76
|
});
|
|
77
|
-
D.unshift("Warning: " +
|
|
77
|
+
D.unshift("Warning: " + w), Function.prototype.apply.call(console[c], console, D);
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
80
|
var O = !1, P = !1, N = !1, k = !1, $ = !1, X;
|
|
@@ -86,11 +86,11 @@ function Lo() {
|
|
|
86
86
|
// with.
|
|
87
87
|
c.$$typeof === X || c.getModuleId !== void 0));
|
|
88
88
|
}
|
|
89
|
-
function Me(c,
|
|
89
|
+
function Me(c, w, S) {
|
|
90
90
|
var E = c.displayName;
|
|
91
91
|
if (E)
|
|
92
92
|
return E;
|
|
93
|
-
var I =
|
|
93
|
+
var I = w.displayName || w.name || "";
|
|
94
94
|
return I !== "" ? S + "(" + I + ")" : S;
|
|
95
95
|
}
|
|
96
96
|
function ge(c) {
|
|
@@ -99,7 +99,7 @@ function Lo() {
|
|
|
99
99
|
function se(c) {
|
|
100
100
|
if (c == null)
|
|
101
101
|
return null;
|
|
102
|
-
if (typeof c.tag == "number" &&
|
|
102
|
+
if (typeof c.tag == "number" && m("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof c == "function")
|
|
103
103
|
return c.displayName || c.name || null;
|
|
104
104
|
if (typeof c == "string")
|
|
105
105
|
return c;
|
|
@@ -120,8 +120,8 @@ function Lo() {
|
|
|
120
120
|
if (typeof c == "object")
|
|
121
121
|
switch (c.$$typeof) {
|
|
122
122
|
case l:
|
|
123
|
-
var
|
|
124
|
-
return ge(
|
|
123
|
+
var w = c;
|
|
124
|
+
return ge(w) + ".Consumer";
|
|
125
125
|
case s:
|
|
126
126
|
var S = c;
|
|
127
127
|
return ge(S._context) + ".Provider";
|
|
@@ -200,11 +200,11 @@ function Lo() {
|
|
|
200
200
|
})
|
|
201
201
|
});
|
|
202
202
|
}
|
|
203
|
-
Se < 0 &&
|
|
203
|
+
Se < 0 && m("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
204
204
|
}
|
|
205
205
|
}
|
|
206
206
|
var de = y.ReactCurrentDispatcher, fe;
|
|
207
|
-
function ae(c,
|
|
207
|
+
function ae(c, w, S) {
|
|
208
208
|
{
|
|
209
209
|
if (fe === void 0)
|
|
210
210
|
try {
|
|
@@ -222,7 +222,7 @@ function Lo() {
|
|
|
222
222
|
var Ce = typeof WeakMap == "function" ? WeakMap : Map;
|
|
223
223
|
xe = new Ce();
|
|
224
224
|
}
|
|
225
|
-
function le(c,
|
|
225
|
+
function le(c, w) {
|
|
226
226
|
if (!c || K)
|
|
227
227
|
return "";
|
|
228
228
|
{
|
|
@@ -237,7 +237,7 @@ function Lo() {
|
|
|
237
237
|
var D;
|
|
238
238
|
D = de.current, de.current = null, Ne();
|
|
239
239
|
try {
|
|
240
|
-
if (
|
|
240
|
+
if (w) {
|
|
241
241
|
var _ = function() {
|
|
242
242
|
throw Error();
|
|
243
243
|
};
|
|
@@ -293,14 +293,14 @@ function Lo() {
|
|
|
293
293
|
var Le = c ? c.displayName || c.name : "", He = Le ? ae(Le) : "";
|
|
294
294
|
return typeof c == "function" && xe.set(c, He), He;
|
|
295
295
|
}
|
|
296
|
-
function wt(c,
|
|
296
|
+
function wt(c, w, S) {
|
|
297
297
|
return le(c, !1);
|
|
298
298
|
}
|
|
299
299
|
function H(c) {
|
|
300
|
-
var
|
|
301
|
-
return !!(
|
|
300
|
+
var w = c.prototype;
|
|
301
|
+
return !!(w && w.isReactComponent);
|
|
302
302
|
}
|
|
303
|
-
function ke(c,
|
|
303
|
+
function ke(c, w, S) {
|
|
304
304
|
if (c == null)
|
|
305
305
|
return "";
|
|
306
306
|
if (typeof c == "function")
|
|
@@ -318,11 +318,11 @@ function Lo() {
|
|
|
318
318
|
case u:
|
|
319
319
|
return wt(c.render);
|
|
320
320
|
case v:
|
|
321
|
-
return ke(c.type,
|
|
321
|
+
return ke(c.type, w, S);
|
|
322
322
|
case g: {
|
|
323
323
|
var E = c, I = E._payload, D = E._init;
|
|
324
324
|
try {
|
|
325
|
-
return ke(D(I),
|
|
325
|
+
return ke(D(I), w, S);
|
|
326
326
|
} catch {
|
|
327
327
|
}
|
|
328
328
|
}
|
|
@@ -332,12 +332,12 @@ function Lo() {
|
|
|
332
332
|
var ee = Object.prototype.hasOwnProperty, ze = {}, jt = y.ReactDebugCurrentFrame;
|
|
333
333
|
function Ue(c) {
|
|
334
334
|
if (c) {
|
|
335
|
-
var
|
|
335
|
+
var w = c._owner, S = ke(c.type, c._source, w ? w.type : null);
|
|
336
336
|
jt.setExtraStackFrame(S);
|
|
337
337
|
} else
|
|
338
338
|
jt.setExtraStackFrame(null);
|
|
339
339
|
}
|
|
340
|
-
function Ir(c,
|
|
340
|
+
function Ir(c, w, S, E, I) {
|
|
341
341
|
{
|
|
342
342
|
var D = Function.call.bind(ee);
|
|
343
343
|
for (var _ in c)
|
|
@@ -348,11 +348,11 @@ function Lo() {
|
|
|
348
348
|
var W = Error((E || "React class") + ": " + S + " type `" + _ + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof c[_] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
349
349
|
throw W.name = "Invariant Violation", W;
|
|
350
350
|
}
|
|
351
|
-
C = c[_](
|
|
351
|
+
C = c[_](w, _, E, S, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
352
352
|
} catch (R) {
|
|
353
353
|
C = R;
|
|
354
354
|
}
|
|
355
|
-
C && !(C instanceof Error) && (Ue(I),
|
|
355
|
+
C && !(C instanceof Error) && (Ue(I), m("%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).", E || "React class", S, _, typeof C), Ue(null)), C instanceof Error && !(C.message in ze) && (ze[C.message] = !0, Ue(I), m("Failed %s type: %s", S, C.message), Ue(null));
|
|
356
356
|
}
|
|
357
357
|
}
|
|
358
358
|
}
|
|
@@ -362,7 +362,7 @@ function Lo() {
|
|
|
362
362
|
}
|
|
363
363
|
function zt(c) {
|
|
364
364
|
{
|
|
365
|
-
var
|
|
365
|
+
var w = typeof Symbol == "function" && Symbol.toStringTag, S = w && c[Symbol.toStringTag] || c.constructor.name || "Object";
|
|
366
366
|
return S;
|
|
367
367
|
}
|
|
368
368
|
}
|
|
@@ -378,7 +378,7 @@ function Lo() {
|
|
|
378
378
|
}
|
|
379
379
|
function Gt(c) {
|
|
380
380
|
if (Mr(c))
|
|
381
|
-
return
|
|
381
|
+
return m("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", zt(c)), Ut(c);
|
|
382
382
|
}
|
|
383
383
|
var qt = y.ReactCurrentOwner, Lr = {
|
|
384
384
|
key: !0,
|
|
@@ -388,27 +388,27 @@ function Lo() {
|
|
|
388
388
|
}, nt, Ot;
|
|
389
389
|
function Ht(c) {
|
|
390
390
|
if (ee.call(c, "ref")) {
|
|
391
|
-
var
|
|
392
|
-
if (
|
|
391
|
+
var w = Object.getOwnPropertyDescriptor(c, "ref").get;
|
|
392
|
+
if (w && w.isReactWarning)
|
|
393
393
|
return !1;
|
|
394
394
|
}
|
|
395
395
|
return c.ref !== void 0;
|
|
396
396
|
}
|
|
397
397
|
function Fr(c) {
|
|
398
398
|
if (ee.call(c, "key")) {
|
|
399
|
-
var
|
|
400
|
-
if (
|
|
399
|
+
var w = Object.getOwnPropertyDescriptor(c, "key").get;
|
|
400
|
+
if (w && w.isReactWarning)
|
|
401
401
|
return !1;
|
|
402
402
|
}
|
|
403
403
|
return c.key !== void 0;
|
|
404
404
|
}
|
|
405
|
-
function at(c,
|
|
405
|
+
function at(c, w) {
|
|
406
406
|
typeof c.ref == "string" && qt.current;
|
|
407
407
|
}
|
|
408
|
-
function Xt(c,
|
|
408
|
+
function Xt(c, w) {
|
|
409
409
|
{
|
|
410
410
|
var S = function() {
|
|
411
|
-
nt || (nt = !0,
|
|
411
|
+
nt || (nt = !0, m("%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)", w));
|
|
412
412
|
};
|
|
413
413
|
S.isReactWarning = !0, Object.defineProperty(c, "key", {
|
|
414
414
|
get: S,
|
|
@@ -416,10 +416,10 @@ function Lo() {
|
|
|
416
416
|
});
|
|
417
417
|
}
|
|
418
418
|
}
|
|
419
|
-
function Wr(c,
|
|
419
|
+
function Wr(c, w) {
|
|
420
420
|
{
|
|
421
421
|
var S = function() {
|
|
422
|
-
Ot || (Ot = !0,
|
|
422
|
+
Ot || (Ot = !0, m("%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)", w));
|
|
423
423
|
};
|
|
424
424
|
S.isReactWarning = !0, Object.defineProperty(c, "ref", {
|
|
425
425
|
get: S,
|
|
@@ -427,13 +427,13 @@ function Lo() {
|
|
|
427
427
|
});
|
|
428
428
|
}
|
|
429
429
|
}
|
|
430
|
-
var Kt = function(c,
|
|
430
|
+
var Kt = function(c, w, S, E, I, D, _) {
|
|
431
431
|
var C = {
|
|
432
432
|
// This tag allows us to uniquely identify this as a React Element
|
|
433
433
|
$$typeof: t,
|
|
434
434
|
// Built-in properties that belong on the element
|
|
435
435
|
type: c,
|
|
436
|
-
key:
|
|
436
|
+
key: w,
|
|
437
437
|
ref: S,
|
|
438
438
|
props: _,
|
|
439
439
|
// Record the component responsible for creating this element.
|
|
@@ -456,12 +456,12 @@ function Lo() {
|
|
|
456
456
|
value: I
|
|
457
457
|
}), Object.freeze && (Object.freeze(C.props), Object.freeze(C)), C;
|
|
458
458
|
};
|
|
459
|
-
function Jt(c,
|
|
459
|
+
function Jt(c, w, S, E, I) {
|
|
460
460
|
{
|
|
461
461
|
var D, _ = {}, C = null, W = null;
|
|
462
|
-
S !== void 0 && (Gt(S), C = "" + S), Fr(
|
|
463
|
-
for (D in
|
|
464
|
-
ee.call(
|
|
462
|
+
S !== void 0 && (Gt(S), C = "" + S), Fr(w) && (Gt(w.key), C = "" + w.key), Ht(w) && (W = w.ref, at(w, I));
|
|
463
|
+
for (D in w)
|
|
464
|
+
ee.call(w, D) && !Lr.hasOwnProperty(D) && (_[D] = w[D]);
|
|
465
465
|
if (c && c.defaultProps) {
|
|
466
466
|
var R = c.defaultProps;
|
|
467
467
|
for (D in R)
|
|
@@ -477,7 +477,7 @@ function Lo() {
|
|
|
477
477
|
var Ge = y.ReactCurrentOwner, Qt = y.ReactDebugCurrentFrame;
|
|
478
478
|
function Re(c) {
|
|
479
479
|
if (c) {
|
|
480
|
-
var
|
|
480
|
+
var w = c._owner, S = ke(c.type, c._source, w ? w.type : null);
|
|
481
481
|
Qt.setExtraStackFrame(S);
|
|
482
482
|
} else
|
|
483
483
|
Qt.setExtraStackFrame(null);
|
|
@@ -505,87 +505,87 @@ Check the render method of \`` + c + "`.";
|
|
|
505
505
|
var qe = {};
|
|
506
506
|
function Y(c) {
|
|
507
507
|
{
|
|
508
|
-
var
|
|
509
|
-
if (!
|
|
508
|
+
var w = oe();
|
|
509
|
+
if (!w) {
|
|
510
510
|
var S = typeof c == "string" ? c : c.displayName || c.name;
|
|
511
|
-
S && (
|
|
511
|
+
S && (w = `
|
|
512
512
|
|
|
513
513
|
Check the top-level render call using <` + S + ">.");
|
|
514
514
|
}
|
|
515
|
-
return
|
|
515
|
+
return w;
|
|
516
516
|
}
|
|
517
517
|
}
|
|
518
|
-
function ye(c,
|
|
518
|
+
function ye(c, w) {
|
|
519
519
|
{
|
|
520
520
|
if (!c._store || c._store.validated || c.key != null)
|
|
521
521
|
return;
|
|
522
522
|
c._store.validated = !0;
|
|
523
|
-
var S = Y(
|
|
523
|
+
var S = Y(w);
|
|
524
524
|
if (qe[S])
|
|
525
525
|
return;
|
|
526
526
|
qe[S] = !0;
|
|
527
527
|
var E = "";
|
|
528
|
-
c && c._owner && c._owner !== Ge.current && (E = " It was passed a child from " + se(c._owner.type) + "."), Re(c),
|
|
528
|
+
c && c._owner && c._owner !== Ge.current && (E = " It was passed a child from " + se(c._owner.type) + "."), Re(c), m('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', S, E), Re(null);
|
|
529
529
|
}
|
|
530
530
|
}
|
|
531
|
-
function Zt(c,
|
|
531
|
+
function Zt(c, w) {
|
|
532
532
|
{
|
|
533
533
|
if (typeof c != "object")
|
|
534
534
|
return;
|
|
535
535
|
if (St(c))
|
|
536
536
|
for (var S = 0; S < c.length; S++) {
|
|
537
537
|
var E = c[S];
|
|
538
|
-
ot(E) && ye(E,
|
|
538
|
+
ot(E) && ye(E, w);
|
|
539
539
|
}
|
|
540
540
|
else if (ot(c))
|
|
541
541
|
c._store && (c._store.validated = !0);
|
|
542
542
|
else if (c) {
|
|
543
|
-
var I =
|
|
543
|
+
var I = x(c);
|
|
544
544
|
if (typeof I == "function" && I !== c.entries)
|
|
545
545
|
for (var D = I.call(c), _; !(_ = D.next()).done; )
|
|
546
|
-
ot(_.value) && ye(_.value,
|
|
546
|
+
ot(_.value) && ye(_.value, w);
|
|
547
547
|
}
|
|
548
548
|
}
|
|
549
549
|
}
|
|
550
550
|
function Nt(c) {
|
|
551
551
|
{
|
|
552
|
-
var
|
|
553
|
-
if (
|
|
552
|
+
var w = c.type;
|
|
553
|
+
if (w == null || typeof w == "string")
|
|
554
554
|
return;
|
|
555
555
|
var S;
|
|
556
|
-
if (typeof
|
|
557
|
-
S =
|
|
558
|
-
else if (typeof
|
|
556
|
+
if (typeof w == "function")
|
|
557
|
+
S = w.propTypes;
|
|
558
|
+
else if (typeof w == "object" && (w.$$typeof === u || // Note: Memo only checks outer props here.
|
|
559
559
|
// Inner props are checked in the reconciler.
|
|
560
|
-
|
|
561
|
-
S =
|
|
560
|
+
w.$$typeof === v))
|
|
561
|
+
S = w.propTypes;
|
|
562
562
|
else
|
|
563
563
|
return;
|
|
564
564
|
if (S) {
|
|
565
|
-
var E = se(
|
|
565
|
+
var E = se(w);
|
|
566
566
|
Ir(S, c.props, "prop", E, c);
|
|
567
|
-
} else if (
|
|
567
|
+
} else if (w.PropTypes !== void 0 && !Dt) {
|
|
568
568
|
Dt = !0;
|
|
569
|
-
var I = se(
|
|
570
|
-
|
|
569
|
+
var I = se(w);
|
|
570
|
+
m("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", I || "Unknown");
|
|
571
571
|
}
|
|
572
|
-
typeof
|
|
572
|
+
typeof w.getDefaultProps == "function" && !w.getDefaultProps.isReactClassApproved && m("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
573
573
|
}
|
|
574
574
|
}
|
|
575
575
|
function er(c) {
|
|
576
576
|
{
|
|
577
|
-
for (var
|
|
578
|
-
var E =
|
|
577
|
+
for (var w = Object.keys(c.props), S = 0; S < w.length; S++) {
|
|
578
|
+
var E = w[S];
|
|
579
579
|
if (E !== "children" && E !== "key") {
|
|
580
|
-
Re(c),
|
|
580
|
+
Re(c), m("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", E), Re(null);
|
|
581
581
|
break;
|
|
582
582
|
}
|
|
583
583
|
}
|
|
584
|
-
c.ref !== null && (Re(c),
|
|
584
|
+
c.ref !== null && (Re(c), m("Invalid attribute `ref` supplied to `React.Fragment`."), Re(null));
|
|
585
585
|
}
|
|
586
586
|
}
|
|
587
587
|
var _t = {};
|
|
588
|
-
function it(c,
|
|
588
|
+
function it(c, w, S, E, I, D) {
|
|
589
589
|
{
|
|
590
590
|
var _ = re(c);
|
|
591
591
|
if (!_) {
|
|
@@ -594,13 +594,13 @@ Check the top-level render call using <` + S + ">.");
|
|
|
594
594
|
var W = ue();
|
|
595
595
|
W ? C += W : C += oe();
|
|
596
596
|
var R;
|
|
597
|
-
c === null ? R = "null" : St(c) ? R = "array" : c !== void 0 && c.$$typeof === t ? (R = "<" + (se(c.type) || "Unknown") + " />", C = " Did you accidentally export a JSX literal instead of a component?") : R = typeof c,
|
|
597
|
+
c === null ? R = "null" : St(c) ? R = "array" : c !== void 0 && c.$$typeof === t ? (R = "<" + (se(c.type) || "Unknown") + " />", C = " Did you accidentally export a JSX literal instead of a component?") : R = typeof c, m("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", R, C);
|
|
598
598
|
}
|
|
599
|
-
var z = Jt(c,
|
|
599
|
+
var z = Jt(c, w, S, I, D);
|
|
600
600
|
if (z == null)
|
|
601
601
|
return z;
|
|
602
602
|
if (_) {
|
|
603
|
-
var he =
|
|
603
|
+
var he = w.children;
|
|
604
604
|
if (he !== void 0)
|
|
605
605
|
if (E)
|
|
606
606
|
if (St(he)) {
|
|
@@ -608,17 +608,17 @@ Check the top-level render call using <` + S + ">.");
|
|
|
608
608
|
Zt(he[Le], c);
|
|
609
609
|
Object.freeze && Object.freeze(he);
|
|
610
610
|
} else
|
|
611
|
-
|
|
611
|
+
m("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
612
612
|
else
|
|
613
613
|
Zt(he, c);
|
|
614
614
|
}
|
|
615
|
-
if (ee.call(
|
|
616
|
-
var He = se(c), ve = Object.keys(
|
|
615
|
+
if (ee.call(w, "key")) {
|
|
616
|
+
var He = se(c), ve = Object.keys(w).filter(function(Eo) {
|
|
617
617
|
return Eo !== "key";
|
|
618
618
|
}), Yr = ve.length > 0 ? "{key: someKey, " + ve.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
619
619
|
if (!_t[He + Yr]) {
|
|
620
620
|
var ko = ve.length > 0 ? "{" + ve.join(": ..., ") + ": ...}" : "{}";
|
|
621
|
-
|
|
621
|
+
m(`A props object containing a "key" prop is being spread into JSX:
|
|
622
622
|
let props = %s;
|
|
623
623
|
<%s {...props} />
|
|
624
624
|
React keys must be passed directly to JSX without using spread:
|
|
@@ -629,11 +629,11 @@ React keys must be passed directly to JSX without using spread:
|
|
|
629
629
|
return c === n ? er(z) : Nt(z), z;
|
|
630
630
|
}
|
|
631
631
|
}
|
|
632
|
-
function st(c,
|
|
633
|
-
return it(c,
|
|
632
|
+
function st(c, w, S) {
|
|
633
|
+
return it(c, w, S, !0);
|
|
634
634
|
}
|
|
635
|
-
function Ct(c,
|
|
636
|
-
return it(c,
|
|
635
|
+
function Ct(c, w, S) {
|
|
636
|
+
return it(c, w, S, !1);
|
|
637
637
|
}
|
|
638
638
|
var kt = Ct, Et = st;
|
|
639
639
|
Tt.Fragment = n, Tt.jsx = kt, Tt.jsxs = Et;
|
|
@@ -918,17 +918,17 @@ function ri(e) {
|
|
|
918
918
|
return Jo(ur("", null, null, null, [""], e = Ko(e), 0, [0], e));
|
|
919
919
|
}
|
|
920
920
|
function ur(e, t, r, n, a, i, s, l, u) {
|
|
921
|
-
for (var d = 0, f = 0, v = s, g = 0, h = 0, b = 0,
|
|
922
|
-
switch (b =
|
|
921
|
+
for (var d = 0, f = 0, v = s, g = 0, h = 0, b = 0, p = 1, x = 1, y = 1, m = 0, j = "", O = a, P = i, N = n, k = j; x; )
|
|
922
|
+
switch (b = m, m = Oe()) {
|
|
923
923
|
case 40:
|
|
924
924
|
if (b != 108 && te(k, v - 1) == 58) {
|
|
925
|
-
cr(k += T(Vr(
|
|
925
|
+
cr(k += T(Vr(m), "&", "&\f"), "&\f", Ta(d ? l[d - 1] : 0)) != -1 && (y = -1);
|
|
926
926
|
break;
|
|
927
927
|
}
|
|
928
928
|
case 34:
|
|
929
929
|
case 39:
|
|
930
930
|
case 91:
|
|
931
|
-
k += Vr(
|
|
931
|
+
k += Vr(m);
|
|
932
932
|
break;
|
|
933
933
|
case 9:
|
|
934
934
|
case 10:
|
|
@@ -949,22 +949,22 @@ function ur(e, t, r, n, a, i, s, l, u) {
|
|
|
949
949
|
k += "/";
|
|
950
950
|
}
|
|
951
951
|
break;
|
|
952
|
-
case 123 *
|
|
952
|
+
case 123 * p:
|
|
953
953
|
l[d++] = Pe(k) * y;
|
|
954
|
-
case 125 *
|
|
954
|
+
case 125 * p:
|
|
955
955
|
case 59:
|
|
956
956
|
case 0:
|
|
957
|
-
switch (
|
|
957
|
+
switch (m) {
|
|
958
958
|
case 0:
|
|
959
959
|
case 125:
|
|
960
|
-
|
|
960
|
+
x = 0;
|
|
961
961
|
case 59 + f:
|
|
962
962
|
y == -1 && (k = T(k, /\f/g, "")), h > 0 && Pe(k) - v && At(h > 32 ? Gn(k + ";", n, r, v - 1, u) : Gn(T(k, " ", "") + ";", n, r, v - 2, u), u);
|
|
963
963
|
break;
|
|
964
964
|
case 59:
|
|
965
965
|
k += ";";
|
|
966
966
|
default:
|
|
967
|
-
if (At(N = Un(k, t, r, d, f, a, l, j, O = [], P = [], v, i), i),
|
|
967
|
+
if (At(N = Un(k, t, r, d, f, a, l, j, O = [], P = [], v, i), i), m === 123)
|
|
968
968
|
if (f === 0)
|
|
969
969
|
ur(k, t, N, N, O, i, v, l, P);
|
|
970
970
|
else
|
|
@@ -979,18 +979,18 @@ function ur(e, t, r, n, a, i, s, l, u) {
|
|
|
979
979
|
ur(k, N, N, N, [""], P, 0, l, P);
|
|
980
980
|
}
|
|
981
981
|
}
|
|
982
|
-
d = f = h = 0,
|
|
982
|
+
d = f = h = 0, p = y = 1, j = k = "", v = s;
|
|
983
983
|
break;
|
|
984
984
|
case 58:
|
|
985
985
|
v = 1 + Pe(k), h = b;
|
|
986
986
|
default:
|
|
987
|
-
if (
|
|
988
|
-
if (
|
|
989
|
-
--
|
|
990
|
-
else if (
|
|
987
|
+
if (p < 1) {
|
|
988
|
+
if (m == 123)
|
|
989
|
+
--p;
|
|
990
|
+
else if (m == 125 && p++ == 0 && Xo() == 125)
|
|
991
991
|
continue;
|
|
992
992
|
}
|
|
993
|
-
switch (k += On(
|
|
993
|
+
switch (k += On(m), m * p) {
|
|
994
994
|
case 38:
|
|
995
995
|
y = f > 0 ? 1 : (k += "\f", -1);
|
|
996
996
|
break;
|
|
@@ -998,18 +998,18 @@ function ur(e, t, r, n, a, i, s, l, u) {
|
|
|
998
998
|
l[d++] = (Pe(k) - 1) * y, y = 1;
|
|
999
999
|
break;
|
|
1000
1000
|
case 64:
|
|
1001
|
-
Je() === 45 && (k += Vr(Oe())), g = Je(), f = v = Pe(j = k += ti(lr())),
|
|
1001
|
+
Je() === 45 && (k += Vr(Oe())), g = Je(), f = v = Pe(j = k += ti(lr())), m++;
|
|
1002
1002
|
break;
|
|
1003
1003
|
case 45:
|
|
1004
|
-
b === 45 && Pe(k) == 2 && (
|
|
1004
|
+
b === 45 && Pe(k) == 2 && (p = 0);
|
|
1005
1005
|
}
|
|
1006
1006
|
}
|
|
1007
1007
|
return i;
|
|
1008
1008
|
}
|
|
1009
1009
|
function Un(e, t, r, n, a, i, s, l, u, d, f, v) {
|
|
1010
|
-
for (var g = a - 1, h = a === 0 ? i : [""], b = Ra(h),
|
|
1011
|
-
for (var
|
|
1012
|
-
(O = Aa(
|
|
1010
|
+
for (var g = a - 1, h = a === 0 ? i : [""], b = Ra(h), p = 0, x = 0, y = 0; p < n; ++p)
|
|
1011
|
+
for (var m = 0, j = ft(e, g + 1, g = Ta(x = s[p])), O = e; m < b; ++m)
|
|
1012
|
+
(O = Aa(x > 0 ? h[m] + " " + j : T(j, /&\f/g, h[m]))) && (u[y++] = O);
|
|
1013
1013
|
return Or(e, t, r, a === 0 ? jr : l, u, d, f, v);
|
|
1014
1014
|
}
|
|
1015
1015
|
function ni(e, t, r, n) {
|
|
@@ -1551,10 +1551,10 @@ var Ga = function(e) {
|
|
|
1551
1551
|
if (g === void 0) return "continue";
|
|
1552
1552
|
var h = i.names.get(g), b = s.getGroup(v);
|
|
1553
1553
|
if (h === void 0 || !h.size || b.length === 0) return "continue";
|
|
1554
|
-
var
|
|
1554
|
+
var p = "".concat(et, ".g").concat(v, '[id="').concat(g, '"]'), x = "";
|
|
1555
1555
|
h !== void 0 && h.forEach(function(y) {
|
|
1556
|
-
y.length > 0 && (
|
|
1557
|
-
}), u += "".concat(b).concat(
|
|
1556
|
+
y.length > 0 && (x += "".concat(y, ","));
|
|
1557
|
+
}), u += "".concat(b).concat(p, '{content:"').concat(x, '"}').concat(Dn);
|
|
1558
1558
|
}, f = 0; f < l; f++) d(f);
|
|
1559
1559
|
return u;
|
|
1560
1560
|
}(a);
|
|
@@ -1606,14 +1606,14 @@ function Wi(e) {
|
|
|
1606
1606
|
f.push(function(g) {
|
|
1607
1607
|
g.type === jr && g.value.includes("&") && (g.props[0] = g.props[0].replace(Li, r).replace(n, d));
|
|
1608
1608
|
}), s.prefix && f.push(si), f.push(ai);
|
|
1609
|
-
var v = function(g, h, b,
|
|
1610
|
-
h === void 0 && (h = ""), b === void 0 && (b = ""),
|
|
1611
|
-
var
|
|
1609
|
+
var v = function(g, h, b, p) {
|
|
1610
|
+
h === void 0 && (h = ""), b === void 0 && (b = ""), p === void 0 && (p = "&"), t = p, r = h, n = new RegExp("\\".concat(r, "\\b"), "g");
|
|
1611
|
+
var x = g.replace(Fi, ""), y = ri(b || h ? "".concat(b, " ").concat(h, " { ").concat(x, " }") : x);
|
|
1612
1612
|
s.namespace && (y = Ha(y, s.namespace));
|
|
1613
|
-
var
|
|
1613
|
+
var m = [];
|
|
1614
1614
|
return mr(y, oi(f.concat(ii(function(j) {
|
|
1615
|
-
return
|
|
1616
|
-
})))),
|
|
1615
|
+
return m.push(j);
|
|
1616
|
+
})))), m;
|
|
1617
1617
|
};
|
|
1618
1618
|
return v.hash = u.length ? u.reduce(function(g, h) {
|
|
1619
1619
|
return h.name || yt(15), Xe(g, h.name);
|
|
@@ -1724,16 +1724,16 @@ function Gi(e, t, r) {
|
|
|
1724
1724
|
return zr(O) ? "styled.".concat(O) : "Styled(".concat(Ya(O), ")");
|
|
1725
1725
|
}(e) : f, g = t.displayName && t.componentId ? "".concat(Hn(t.displayName), "-").concat(t.componentId) : t.componentId || d, h = n && a.attrs ? a.attrs.concat(l).filter(Boolean) : l, b = t.shouldForwardProp;
|
|
1726
1726
|
if (n && a.shouldForwardProp) {
|
|
1727
|
-
var
|
|
1727
|
+
var p = a.shouldForwardProp;
|
|
1728
1728
|
if (t.shouldForwardProp) {
|
|
1729
|
-
var
|
|
1729
|
+
var x = t.shouldForwardProp;
|
|
1730
1730
|
b = function(O, P) {
|
|
1731
|
-
return
|
|
1731
|
+
return p(O, P) && x(O, P);
|
|
1732
1732
|
};
|
|
1733
|
-
} else b =
|
|
1733
|
+
} else b = p;
|
|
1734
1734
|
}
|
|
1735
1735
|
var y = new Ui(r, g, n ? a.componentStyle : void 0);
|
|
1736
|
-
function
|
|
1736
|
+
function m(O, P) {
|
|
1737
1737
|
return function(N, k, $) {
|
|
1738
1738
|
var X = N.attrs, re = N.componentStyle, Me = N.defaultProps, ge = N.foldedComponentIds, se = N.styledComponentId, ce = N.target, Se = Te.useContext(Qa), Z = ra(), De = N.shouldForwardProp || Z.shouldForwardProp;
|
|
1739
1739
|
process.env.NODE_ENV !== "production" && Yn(se);
|
|
@@ -1754,8 +1754,8 @@ function Gi(e, t, r) {
|
|
|
1754
1754
|
return be && (Ne += " " + be), q.className && (Ne += " " + q.className), ne[zr(B) && !tn.has(B) ? "class" : "className"] = Ne, $ && (ne.ref = $), To(B, ne);
|
|
1755
1755
|
}(j, O, P);
|
|
1756
1756
|
}
|
|
1757
|
-
|
|
1758
|
-
var j = Te.forwardRef(
|
|
1757
|
+
m.displayName = v;
|
|
1758
|
+
var j = Te.forwardRef(m);
|
|
1759
1759
|
return j.attrs = h, j.componentStyle = y, j.displayName = v, j.shouldForwardProp = b, j.foldedComponentIds = n ? Ke(a.foldedComponentIds, a.styledComponentId) : "", j.styledComponentId = g, j.target = n ? a.target : e, Object.defineProperty(j, "defaultProps", { get: function() {
|
|
1760
1760
|
return this._foldedDefaultProps;
|
|
1761
1761
|
}, set: function(O) {
|
|
@@ -1851,11 +1851,11 @@ const qi = Cn.div`
|
|
|
1851
1851
|
l !== b && f(!1);
|
|
1852
1852
|
}, [l, b]), Q(() => {
|
|
1853
1853
|
const y = () => {
|
|
1854
|
-
var
|
|
1854
|
+
var m;
|
|
1855
1855
|
if (!t && r)
|
|
1856
1856
|
g(r);
|
|
1857
1857
|
else if (e) {
|
|
1858
|
-
const j = e.getBoundingClientRect(), O = (
|
|
1858
|
+
const j = e.getBoundingClientRect(), O = (m = h.current) == null ? void 0 : m.getBoundingClientRect(), { innerWidth: P, innerHeight: N } = window;
|
|
1859
1859
|
if (O) {
|
|
1860
1860
|
let k, $;
|
|
1861
1861
|
const X = {
|
|
@@ -1890,30 +1890,30 @@ const qi = Cn.div`
|
|
|
1890
1890
|
};
|
|
1891
1891
|
return d && (y(), window.addEventListener("resize", y)), () => window.removeEventListener("resize", y);
|
|
1892
1892
|
}, [e, d, t]);
|
|
1893
|
-
const
|
|
1893
|
+
const p = () => {
|
|
1894
1894
|
f(!0), u(b);
|
|
1895
|
-
},
|
|
1895
|
+
}, x = A(
|
|
1896
1896
|
(y) => {
|
|
1897
1897
|
y.stopPropagation(), f(!1), u(null), i && i(!1);
|
|
1898
1898
|
},
|
|
1899
1899
|
[i, u]
|
|
1900
1900
|
);
|
|
1901
1901
|
return Q(() => {
|
|
1902
|
-
const y = (
|
|
1903
|
-
h.current && !h.current.contains(
|
|
1902
|
+
const y = (m) => {
|
|
1903
|
+
h.current && !h.current.contains(m.target) && x(m);
|
|
1904
1904
|
};
|
|
1905
1905
|
return d && document.addEventListener("mousedown", y), () => {
|
|
1906
1906
|
document.removeEventListener("mousedown", y);
|
|
1907
1907
|
};
|
|
1908
|
-
}, [d,
|
|
1909
|
-
a &&
|
|
1908
|
+
}, [d, x]), Q(() => {
|
|
1909
|
+
a && p();
|
|
1910
1910
|
}, [a]), d ? jn.createPortal(
|
|
1911
1911
|
/* @__PURE__ */ o.jsx(qi, { ref: h, $top: v.top, $left: v.left, children: /* @__PURE__ */ o.jsxs(
|
|
1912
1912
|
"div",
|
|
1913
1913
|
{
|
|
1914
1914
|
className: `overlayPanel ${v.top > 0 || v.left > 0 ? "visible" : "hide"}`,
|
|
1915
1915
|
children: [
|
|
1916
|
-
/* @__PURE__ */ o.jsx("button", { className: "toggle-btn", onClick:
|
|
1916
|
+
/* @__PURE__ */ o.jsx("button", { className: "toggle-btn", onClick: x, children: /* @__PURE__ */ o.jsx(M, { classIcon: "bi-x-lg" }) }),
|
|
1917
1917
|
n
|
|
1918
1918
|
]
|
|
1919
1919
|
}
|
|
@@ -1945,8 +1945,8 @@ const qi = Cn.div`
|
|
|
1945
1945
|
{
|
|
1946
1946
|
classIcon: h.icon,
|
|
1947
1947
|
sizeIcon: we.LARGE,
|
|
1948
|
-
onClick: (
|
|
1949
|
-
|
|
1948
|
+
onClick: (p) => {
|
|
1949
|
+
p.stopPropagation(), g(), h.onClick && h.onClick(h);
|
|
1950
1950
|
},
|
|
1951
1951
|
title: h.label || ""
|
|
1952
1952
|
},
|
|
@@ -2003,30 +2003,30 @@ const qi = Cn.div`
|
|
|
2003
2003
|
t && v(t);
|
|
2004
2004
|
}, [t]);
|
|
2005
2005
|
const g = A(
|
|
2006
|
-
(
|
|
2007
|
-
e.length !== 0 && (
|
|
2006
|
+
(p, x) => {
|
|
2007
|
+
e.length !== 0 && (p.preventDefault(), u("bottomRight"), i && i(x));
|
|
2008
2008
|
},
|
|
2009
2009
|
[u, i]
|
|
2010
2010
|
), h = A(() => {
|
|
2011
2011
|
u(void 0), v(!1), i && i(!1);
|
|
2012
|
-
}, [v, u, i]), b = Ye(() => e == null ? void 0 : e.filter((
|
|
2013
|
-
let y =
|
|
2014
|
-
return
|
|
2015
|
-
id:
|
|
2016
|
-
icon:
|
|
2017
|
-
name:
|
|
2012
|
+
}, [v, u, i]), b = Ye(() => e == null ? void 0 : e.filter((p) => p.type === "menu").map((p, x) => {
|
|
2013
|
+
let y = p.label || "";
|
|
2014
|
+
return p.setLabel && r && (y = p.setLabel(r)), {
|
|
2015
|
+
id: x,
|
|
2016
|
+
icon: p.icon,
|
|
2017
|
+
name: p.label,
|
|
2018
2018
|
children: /* @__PURE__ */ o.jsx(
|
|
2019
2019
|
Ft,
|
|
2020
2020
|
{
|
|
2021
|
-
classIcon:
|
|
2022
|
-
disabled: r &&
|
|
2021
|
+
classIcon: p.icon,
|
|
2022
|
+
disabled: r && p.disabled ? p.disabled(r) : !1,
|
|
2023
2023
|
sizeIcon: we.LARGE,
|
|
2024
|
-
onClick: (
|
|
2025
|
-
|
|
2024
|
+
onClick: (m) => {
|
|
2025
|
+
m.stopPropagation(), h(), p.onClick && r && p.onClick(r);
|
|
2026
2026
|
},
|
|
2027
2027
|
title: y
|
|
2028
2028
|
},
|
|
2029
|
-
|
|
2029
|
+
x
|
|
2030
2030
|
)
|
|
2031
2031
|
};
|
|
2032
2032
|
}), [e]);
|
|
@@ -2035,8 +2035,8 @@ const qi = Cn.div`
|
|
|
2035
2035
|
"div",
|
|
2036
2036
|
{
|
|
2037
2037
|
ref: d,
|
|
2038
|
-
className: `card-action ${e.filter((
|
|
2039
|
-
onClick: (
|
|
2038
|
+
className: `card-action ${e.filter((p) => p.type === "menu").length ? "visible" : "hidden"}`,
|
|
2039
|
+
onClick: (p) => g(p, !f),
|
|
2040
2040
|
children: [
|
|
2041
2041
|
/* @__PURE__ */ o.jsx(
|
|
2042
2042
|
M,
|
|
@@ -2078,13 +2078,13 @@ const qi = Cn.div`
|
|
|
2078
2078
|
positionOverlay: s,
|
|
2079
2079
|
children: l
|
|
2080
2080
|
}) => {
|
|
2081
|
-
const [u, d] = F(!1), [f, v] = F(!1), [g, h] = F(), b = (
|
|
2082
|
-
|
|
2083
|
-
},
|
|
2084
|
-
(
|
|
2085
|
-
if (
|
|
2081
|
+
const [u, d] = F(!1), [f, v] = F(!1), [g, h] = F(), b = (x, y) => {
|
|
2082
|
+
x.stopPropagation(), a && a(y);
|
|
2083
|
+
}, p = A(
|
|
2084
|
+
(x, y) => {
|
|
2085
|
+
if (x.stopPropagation(), f)
|
|
2086
2086
|
return h(void 0), v(!1);
|
|
2087
|
-
|
|
2087
|
+
x.target.closest(".qte") || x.target.closest(".card-action-menu button") || x.target.closest(".card-actions") || (d(!u), n && x.button !== 2 ? n(y) : (h({ top: x.clientY, left: x.clientX }), v(!0)));
|
|
2088
2088
|
},
|
|
2089
2089
|
[
|
|
2090
2090
|
d,
|
|
@@ -2098,8 +2098,8 @@ const qi = Cn.div`
|
|
|
2098
2098
|
return /* @__PURE__ */ o.jsxs(
|
|
2099
2099
|
"div",
|
|
2100
2100
|
{
|
|
2101
|
-
onContextMenu: (
|
|
2102
|
-
onMouseDown: (
|
|
2101
|
+
onContextMenu: (x) => x.preventDefault(),
|
|
2102
|
+
onMouseDown: (x) => p(x, e),
|
|
2103
2103
|
className: `card ${r ?? ""} ${u ? "card--active" : ""} `,
|
|
2104
2104
|
children: [
|
|
2105
2105
|
l,
|
|
@@ -2117,7 +2117,7 @@ const qi = Cn.div`
|
|
|
2117
2117
|
"div",
|
|
2118
2118
|
{
|
|
2119
2119
|
className: "ml-2 cursor-pointer",
|
|
2120
|
-
onClick: (
|
|
2120
|
+
onClick: (x) => b(x, e),
|
|
2121
2121
|
children: /* @__PURE__ */ o.jsx(M, { classIcon: "bi-trash3" })
|
|
2122
2122
|
}
|
|
2123
2123
|
),
|
|
@@ -2150,14 +2150,14 @@ const qi = Cn.div`
|
|
|
2150
2150
|
const [a, i] = F(0), s = e.length, [l, u] = F(1);
|
|
2151
2151
|
Q(() => {
|
|
2152
2152
|
const b = () => {
|
|
2153
|
-
const
|
|
2154
|
-
if (n.xl &&
|
|
2153
|
+
const p = window.innerWidth;
|
|
2154
|
+
if (n.xl && p >= 1200)
|
|
2155
2155
|
return u(n.xl);
|
|
2156
|
-
if (n.lg &&
|
|
2156
|
+
if (n.lg && p >= 992)
|
|
2157
2157
|
return u(n.lg);
|
|
2158
|
-
if (n.md &&
|
|
2158
|
+
if (n.md && p >= 768)
|
|
2159
2159
|
return u(n.md);
|
|
2160
|
-
if (n.sm &&
|
|
2160
|
+
if (n.sm && p >= 576)
|
|
2161
2161
|
return u(n.sm);
|
|
2162
2162
|
};
|
|
2163
2163
|
return b(), window.addEventListener("resize", b), () => window.removeEventListener("resize", b);
|
|
@@ -2165,13 +2165,13 @@ const qi = Cn.div`
|
|
|
2165
2165
|
const d = A(
|
|
2166
2166
|
(b) => {
|
|
2167
2167
|
b.preventDefault(), i(
|
|
2168
|
-
(
|
|
2168
|
+
(p) => Math.min(p + r, s - l)
|
|
2169
2169
|
);
|
|
2170
2170
|
},
|
|
2171
2171
|
[i]
|
|
2172
2172
|
), f = A(
|
|
2173
2173
|
(b) => {
|
|
2174
|
-
b.preventDefault(), i((
|
|
2174
|
+
b.preventDefault(), i((p) => Math.max(p - r, 0));
|
|
2175
2175
|
},
|
|
2176
2176
|
[i]
|
|
2177
2177
|
), v = a + r >= s - l + 1, g = s <= l, h = a <= 0;
|
|
@@ -2236,11 +2236,11 @@ const qi = Cn.div`
|
|
|
2236
2236
|
for (let v = 0; v < s; v++) {
|
|
2237
2237
|
const g = [];
|
|
2238
2238
|
for (let h = 0; h < i; h++) {
|
|
2239
|
-
const b = h + v * i,
|
|
2240
|
-
(
|
|
2239
|
+
const b = h + v * i, p = r == null ? void 0 : r.find(
|
|
2240
|
+
(x) => x.position === b + 1
|
|
2241
2241
|
);
|
|
2242
|
-
|
|
2243
|
-
/* @__PURE__ */ o.jsx(Xi, { onClick: a, cell:
|
|
2242
|
+
p ? g.push(
|
|
2243
|
+
/* @__PURE__ */ o.jsx(Xi, { onClick: a, cell: p }, `${v}-${h}`)
|
|
2244
2244
|
) : g.push(
|
|
2245
2245
|
/* @__PURE__ */ o.jsx("div", { className: "cell cell--empty" }, `${v}-${h}`)
|
|
2246
2246
|
);
|
|
@@ -2271,46 +2271,49 @@ const qi = Cn.div`
|
|
|
2271
2271
|
className: n,
|
|
2272
2272
|
disabled: a,
|
|
2273
2273
|
multiple: i = !1,
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
|
|
2274
|
+
required: s = !1,
|
|
2275
|
+
defaultValue: l,
|
|
2276
|
+
name: u,
|
|
2277
|
+
onChange: d,
|
|
2278
|
+
onChangeMultiple: f,
|
|
2279
|
+
value: v,
|
|
2280
|
+
placeholder: g
|
|
2279
2281
|
}) => {
|
|
2280
|
-
const
|
|
2281
|
-
let
|
|
2282
|
-
i ? (
|
|
2283
|
-
|
|
2284
|
-
(
|
|
2285
|
-
),
|
|
2286
|
-
},
|
|
2287
|
-
|
|
2288
|
-
}, [
|
|
2282
|
+
const h = pe({}), b = (x) => {
|
|
2283
|
+
let y;
|
|
2284
|
+
i ? (y = Array.from(
|
|
2285
|
+
x.target.selectedOptions,
|
|
2286
|
+
(m) => m.value
|
|
2287
|
+
), f && f(y)) : (y = x.target.value, d && d(y));
|
|
2288
|
+
}, p = A(() => {
|
|
2289
|
+
d && d("");
|
|
2290
|
+
}, [d]);
|
|
2289
2291
|
return /* @__PURE__ */ o.jsxs("div", { id: e, className: `select-container ${n || ""}`, children: [
|
|
2290
2292
|
t && /* @__PURE__ */ o.jsx("label", { htmlFor: `select-${e}`, className: "select-container-label", children: t }),
|
|
2291
2293
|
/* @__PURE__ */ o.jsxs(
|
|
2292
2294
|
"select",
|
|
2293
2295
|
{
|
|
2294
2296
|
defaultValue: "",
|
|
2295
|
-
required:
|
|
2297
|
+
required: s,
|
|
2298
|
+
name: u,
|
|
2296
2299
|
disabled: a,
|
|
2297
2300
|
id: `select-${e}`,
|
|
2298
2301
|
className: "select-container-select",
|
|
2299
|
-
value:
|
|
2300
|
-
onChange:
|
|
2302
|
+
value: v ?? l ?? (i ? [] : ""),
|
|
2303
|
+
onChange: b,
|
|
2301
2304
|
multiple: i,
|
|
2302
|
-
ref: (
|
|
2305
|
+
ref: (x) => h.current[e ?? "select"] = x,
|
|
2303
2306
|
children: [
|
|
2304
|
-
|
|
2305
|
-
r.map((
|
|
2307
|
+
g && !l && !i && /* @__PURE__ */ o.jsx("option", { selected: !0, disabled: !0, hidden: !0, value: "", children: g }),
|
|
2308
|
+
r.map((x, y) => /* @__PURE__ */ o.jsx("option", { value: x.value, children: x.label }, y))
|
|
2306
2309
|
]
|
|
2307
2310
|
}
|
|
2308
2311
|
),
|
|
2309
|
-
|
|
2312
|
+
v !== "" && g && /* @__PURE__ */ o.jsx(
|
|
2310
2313
|
"div",
|
|
2311
2314
|
{
|
|
2312
2315
|
className: "clear-btn",
|
|
2313
|
-
onClick:
|
|
2316
|
+
onClick: p,
|
|
2314
2317
|
"aria-label": "Réinitialiser",
|
|
2315
2318
|
children: /* @__PURE__ */ o.jsx(M, { classIcon: "bi-x" })
|
|
2316
2319
|
}
|
|
@@ -2335,9 +2338,9 @@ function el(e) {
|
|
|
2335
2338
|
} = e, b = pe(null);
|
|
2336
2339
|
return Q(() => {
|
|
2337
2340
|
if (!g || !h) return;
|
|
2338
|
-
const
|
|
2339
|
-
(
|
|
2340
|
-
|
|
2341
|
+
const p = new IntersectionObserver(
|
|
2342
|
+
(x) => {
|
|
2343
|
+
x[0].isIntersecting && g();
|
|
2341
2344
|
},
|
|
2342
2345
|
{
|
|
2343
2346
|
root: null,
|
|
@@ -2345,27 +2348,27 @@ function el(e) {
|
|
|
2345
2348
|
threshold: 1
|
|
2346
2349
|
}
|
|
2347
2350
|
);
|
|
2348
|
-
return b.current &&
|
|
2349
|
-
b.current &&
|
|
2351
|
+
return b.current && p.observe(b.current), () => {
|
|
2352
|
+
b.current && p.unobserve(b.current);
|
|
2350
2353
|
};
|
|
2351
2354
|
}, [g, h]), /* @__PURE__ */ o.jsxs("div", { className: "data-table-container", children: [
|
|
2352
2355
|
r && /* @__PURE__ */ o.jsx("h2", { className: "mb-2", children: r }),
|
|
2353
2356
|
i,
|
|
2354
2357
|
/* @__PURE__ */ o.jsxs("table", { className: `data-table ${n || ""}`, id: t, children: [
|
|
2355
2358
|
/* @__PURE__ */ o.jsx("thead", { children: /* @__PURE__ */ o.jsxs("tr", { children: [
|
|
2356
|
-
u.map((
|
|
2359
|
+
u.map((p, x) => /* @__PURE__ */ o.jsx(o.Fragment, { children: /* @__PURE__ */ o.jsx(
|
|
2357
2360
|
"th",
|
|
2358
2361
|
{
|
|
2359
2362
|
style: {
|
|
2360
|
-
minWidth:
|
|
2361
|
-
maxWidth:
|
|
2362
|
-
width:
|
|
2363
|
-
textAlign:
|
|
2363
|
+
minWidth: p.minWidth,
|
|
2364
|
+
maxWidth: p.maxWidth,
|
|
2365
|
+
width: p.width,
|
|
2366
|
+
textAlign: p.align || "left"
|
|
2364
2367
|
},
|
|
2365
|
-
onClick: () => v == null ? void 0 : v(
|
|
2366
|
-
children:
|
|
2368
|
+
onClick: () => v == null ? void 0 : v(p),
|
|
2369
|
+
children: p.label
|
|
2367
2370
|
},
|
|
2368
|
-
`colonne-${
|
|
2371
|
+
`colonne-${p.id}-${x}`
|
|
2369
2372
|
) })),
|
|
2370
2373
|
l.length > 0 && /* @__PURE__ */ o.jsx(
|
|
2371
2374
|
"th",
|
|
@@ -2387,9 +2390,9 @@ function el(e) {
|
|
|
2387
2390
|
children: /* @__PURE__ */ o.jsx("div", { className: "mt-3", children: /* @__PURE__ */ o.jsx(ca, { display: d }) })
|
|
2388
2391
|
}
|
|
2389
2392
|
) }) : /* @__PURE__ */ o.jsx(o.Fragment, {}),
|
|
2390
|
-
!d && s.map((
|
|
2391
|
-
u.map((y,
|
|
2392
|
-
const j =
|
|
2393
|
+
!d && s.map((p, x) => /* @__PURE__ */ o.jsxs("tr", { onClick: () => f == null ? void 0 : f(p), children: [
|
|
2394
|
+
u.map((y, m) => {
|
|
2395
|
+
const j = p[y.id], O = y.onRowStyle ? y.onRowStyle(p) : {};
|
|
2393
2396
|
return /* @__PURE__ */ o.jsx(o.Fragment, { children: /* @__PURE__ */ o.jsx(
|
|
2394
2397
|
"td",
|
|
2395
2398
|
{
|
|
@@ -2406,7 +2409,7 @@ function el(e) {
|
|
|
2406
2409
|
options: y.options ?? [],
|
|
2407
2410
|
value: j,
|
|
2408
2411
|
onChange: (P) => {
|
|
2409
|
-
y.onEdit && y.onEdit(P,
|
|
2412
|
+
y.onEdit && y.onEdit(P, p);
|
|
2410
2413
|
}
|
|
2411
2414
|
}
|
|
2412
2415
|
) : /* @__PURE__ */ o.jsx(
|
|
@@ -2417,32 +2420,32 @@ function el(e) {
|
|
|
2417
2420
|
step: "0.01",
|
|
2418
2421
|
style: { textAlign: y.align || "left" },
|
|
2419
2422
|
onChange: (P) => {
|
|
2420
|
-
y.onEdit && y.onEdit(P.target.value,
|
|
2423
|
+
y.onEdit && y.onEdit(P.target.value, p);
|
|
2421
2424
|
}
|
|
2422
2425
|
}
|
|
2423
2426
|
) : y.format ? y.format(j) : j
|
|
2424
2427
|
},
|
|
2425
|
-
`row-${y.id}-${
|
|
2428
|
+
`row-${y.id}-${m}`
|
|
2426
2429
|
) });
|
|
2427
2430
|
}),
|
|
2428
|
-
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((y,
|
|
2431
|
+
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((y, m) => {
|
|
2429
2432
|
let j = y.label;
|
|
2430
|
-
return (y.shouldDisplay ? y.shouldDisplay(
|
|
2433
|
+
return (y.shouldDisplay ? y.shouldDisplay(p) : !0) ? (y.labelButton && (j = y.labelButton ? y.labelButton(p) : y.label), /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
2431
2434
|
y.type === "button" && /* @__PURE__ */ o.jsx(
|
|
2432
2435
|
Ft,
|
|
2433
2436
|
{
|
|
2434
2437
|
title: j,
|
|
2435
|
-
onClick: () => y.onClick(
|
|
2438
|
+
onClick: () => y.onClick(p),
|
|
2436
2439
|
disabled: y.disabled,
|
|
2437
2440
|
className: `data-table-action button--tertiary mr-2 w-100 ${y.classIcon ? y.classIcon : ""}`
|
|
2438
2441
|
},
|
|
2439
|
-
`button-action-${y.id}-${
|
|
2442
|
+
`button-action-${y.id}-${m}`
|
|
2440
2443
|
),
|
|
2441
2444
|
y.type === "icon" && /* @__PURE__ */ o.jsx(
|
|
2442
2445
|
"div",
|
|
2443
2446
|
{
|
|
2444
2447
|
className: "mr-2 ",
|
|
2445
|
-
onClick: () => y.onClick(
|
|
2448
|
+
onClick: () => y.onClick(p),
|
|
2446
2449
|
children: /* @__PURE__ */ o.jsx(
|
|
2447
2450
|
M,
|
|
2448
2451
|
{
|
|
@@ -2451,11 +2454,11 @@ function el(e) {
|
|
|
2451
2454
|
y.id
|
|
2452
2455
|
)
|
|
2453
2456
|
},
|
|
2454
|
-
`icon-action-${y.id}-${
|
|
2457
|
+
`icon-action-${y.id}-${m}`
|
|
2455
2458
|
)
|
|
2456
2459
|
] })) : null;
|
|
2457
2460
|
}) }) })
|
|
2458
|
-
] },
|
|
2461
|
+
] }, x)),
|
|
2459
2462
|
!d && s.length === 0 && /* @__PURE__ */ o.jsx("tr", { children: /* @__PURE__ */ o.jsx(
|
|
2460
2463
|
"td",
|
|
2461
2464
|
{
|
|
@@ -2512,23 +2515,23 @@ var as = ns, sn = { exports: {} }, os = () => {
|
|
|
2512
2515
|
(function(e, t) {
|
|
2513
2516
|
var r = tr && tr.__awaiter || function(s, l, u, d) {
|
|
2514
2517
|
return new (u || (u = Promise))(function(f, v) {
|
|
2515
|
-
function g(
|
|
2518
|
+
function g(p) {
|
|
2516
2519
|
try {
|
|
2517
|
-
b(d.next(
|
|
2518
|
-
} catch (
|
|
2519
|
-
v(
|
|
2520
|
+
b(d.next(p));
|
|
2521
|
+
} catch (x) {
|
|
2522
|
+
v(x);
|
|
2520
2523
|
}
|
|
2521
2524
|
}
|
|
2522
|
-
function h(
|
|
2525
|
+
function h(p) {
|
|
2523
2526
|
try {
|
|
2524
|
-
b(d.throw(
|
|
2525
|
-
} catch (
|
|
2526
|
-
v(
|
|
2527
|
+
b(d.throw(p));
|
|
2528
|
+
} catch (x) {
|
|
2529
|
+
v(x);
|
|
2527
2530
|
}
|
|
2528
2531
|
}
|
|
2529
|
-
function b(
|
|
2530
|
-
|
|
2531
|
-
|
|
2532
|
+
function b(p) {
|
|
2533
|
+
p.done ? f(p.value) : new u(function(x) {
|
|
2534
|
+
x(p.value);
|
|
2532
2535
|
}).then(g, h);
|
|
2533
2536
|
}
|
|
2534
2537
|
b((d = d.apply(s, l || [])).next());
|
|
@@ -2543,30 +2546,30 @@ var as = ns, sn = { exports: {} }, os = () => {
|
|
|
2543
2546
|
const v = () => r(this, void 0, void 0, function* () {
|
|
2544
2547
|
if (u !== void 0)
|
|
2545
2548
|
return;
|
|
2546
|
-
const b = (
|
|
2549
|
+
const b = (p) => r(this, void 0, void 0, function* () {
|
|
2547
2550
|
f = a.default();
|
|
2548
|
-
const
|
|
2549
|
-
if (
|
|
2550
|
-
s.delete(
|
|
2551
|
+
const x = p[1][l] - Date.now();
|
|
2552
|
+
if (x <= 0) {
|
|
2553
|
+
s.delete(p[0]), f.resolve();
|
|
2551
2554
|
return;
|
|
2552
2555
|
}
|
|
2553
|
-
return u =
|
|
2554
|
-
s.delete(
|
|
2555
|
-
},
|
|
2556
|
+
return u = p[0], d = setTimeout(() => {
|
|
2557
|
+
s.delete(p[0]), f && f.resolve();
|
|
2558
|
+
}, x), typeof d.unref == "function" && d.unref(), f.promise;
|
|
2556
2559
|
});
|
|
2557
2560
|
try {
|
|
2558
|
-
for (const
|
|
2559
|
-
yield b(
|
|
2561
|
+
for (const p of s)
|
|
2562
|
+
yield b(p);
|
|
2560
2563
|
} catch {
|
|
2561
2564
|
}
|
|
2562
2565
|
u = void 0;
|
|
2563
2566
|
}), g = () => {
|
|
2564
2567
|
u = void 0, d !== void 0 && (clearTimeout(d), d = void 0), f !== void 0 && (f.reject(void 0), f = void 0);
|
|
2565
2568
|
}, h = s.set.bind(s);
|
|
2566
|
-
return s.set = (b,
|
|
2569
|
+
return s.set = (b, p) => {
|
|
2567
2570
|
s.has(b) && s.delete(b);
|
|
2568
|
-
const
|
|
2569
|
-
return u && u === b && g(), v(),
|
|
2571
|
+
const x = h(b, p);
|
|
2572
|
+
return u && u === b && g(), v(), x;
|
|
2570
2573
|
}, v(), s;
|
|
2571
2574
|
}
|
|
2572
2575
|
t.default = i, e.exports = i, e.exports.default = i;
|
|
@@ -3010,7 +3013,7 @@ function wo(e, t) {
|
|
|
3010
3013
|
}
|
|
3011
3014
|
var Ee = "react-calendar__navigation";
|
|
3012
3015
|
function Js(e) {
|
|
3013
|
-
var t = e.activeStartDate, r = e.drillUp, n = e.formatMonthYear, a = n === void 0 ? po : n, i = e.formatYear, s = i === void 0 ? Tr : i, l = e.locale, u = e.maxDate, d = e.minDate, f = e.navigationAriaLabel, v = f === void 0 ? "" : f, g = e.navigationAriaLive, h = e.navigationLabel, b = e.next2AriaLabel,
|
|
3016
|
+
var t = e.activeStartDate, r = e.drillUp, n = e.formatMonthYear, a = n === void 0 ? po : n, i = e.formatYear, s = i === void 0 ? Tr : i, l = e.locale, u = e.maxDate, d = e.minDate, f = e.navigationAriaLabel, v = f === void 0 ? "" : f, g = e.navigationAriaLive, h = e.navigationLabel, b = e.next2AriaLabel, p = b === void 0 ? "" : b, x = e.next2Label, y = x === void 0 ? "»" : x, m = e.nextAriaLabel, j = m === void 0 ? "" : m, O = e.nextLabel, P = O === void 0 ? "›" : O, N = e.prev2AriaLabel, k = N === void 0 ? "" : N, $ = e.prev2Label, X = $ === void 0 ? "«" : $, re = e.prevAriaLabel, Me = re === void 0 ? "" : re, ge = e.prevLabel, se = ge === void 0 ? "‹" : ge, ce = e.setActiveStartDate, Se = e.showDoubleView, Z = e.view, De = e.views, Ae = De.indexOf(Z) > 0, q = Z !== "century", B = Bs(Z, t), ne = q ? zs(Z, t) : void 0, G = go(Z, t), be = q ? Us(Z, t) : void 0, Ne = function() {
|
|
3014
3017
|
if (B.getFullYear() < 0)
|
|
3015
3018
|
return !0;
|
|
3016
3019
|
var H = Gs(Z, t);
|
|
@@ -3059,7 +3062,7 @@ function Js(e) {
|
|
|
3059
3062
|
var H = "".concat(Ee, "__label");
|
|
3060
3063
|
return o.jsxs("button", { "aria-label": v, "aria-live": g, className: H, disabled: !Ae, onClick: r, style: { flexGrow: 1 }, type: "button", children: [o.jsx("span", { className: "".concat(H, "__labelText ").concat(H, "__labelText--from"), children: le(t) }), Se ? o.jsxs(o.Fragment, { children: [o.jsx("span", { className: "".concat(H, "__divider"), children: " – " }), o.jsx("span", { className: "".concat(H, "__labelText ").concat(H, "__labelText--to"), children: le(G) })] }) : null] });
|
|
3061
3064
|
}
|
|
3062
|
-
return o.jsxs("div", { className: Ee, children: [X !== null && q ? o.jsx("button", { "aria-label": k, className: "".concat(Ee, "__arrow ").concat(Ee, "__prev2-button"), disabled: _e, onClick: K, type: "button", children: X }) : null, se !== null && o.jsx("button", { "aria-label": Me, className: "".concat(Ee, "__arrow ").concat(Ee, "__prev-button"), disabled: Ne, onClick: ae, type: "button", children: se }), wt(), P !== null && o.jsx("button", { "aria-label": j, className: "".concat(Ee, "__arrow ").concat(Ee, "__next-button"), disabled: de, onClick: xe, type: "button", children: P }), y !== null && q ? o.jsx("button", { "aria-label":
|
|
3065
|
+
return o.jsxs("div", { className: Ee, children: [X !== null && q ? o.jsx("button", { "aria-label": k, className: "".concat(Ee, "__arrow ").concat(Ee, "__prev2-button"), disabled: _e, onClick: K, type: "button", children: X }) : null, se !== null && o.jsx("button", { "aria-label": Me, className: "".concat(Ee, "__arrow ").concat(Ee, "__prev-button"), disabled: Ne, onClick: ae, type: "button", children: se }), wt(), P !== null && o.jsx("button", { "aria-label": j, className: "".concat(Ee, "__arrow ").concat(Ee, "__next-button"), disabled: de, onClick: xe, type: "button", children: P }), y !== null && q ? o.jsx("button", { "aria-label": p, className: "".concat(Ee, "__arrow ").concat(Ee, "__next2-button"), disabled: fe, onClick: Ce, type: "button", children: y }) : null] });
|
|
3063
3066
|
}
|
|
3064
3067
|
var lt = function() {
|
|
3065
3068
|
return lt = Object.assign || function(e) {
|
|
@@ -3154,9 +3157,9 @@ function rc(e) {
|
|
|
3154
3157
|
return i;
|
|
3155
3158
|
}
|
|
3156
3159
|
function Ar(e) {
|
|
3157
|
-
for (var t = e.className, r = e.count, n = r === void 0 ? 3 : r, a = e.dateTransform, i = e.dateType, s = e.end, l = e.hover, u = e.offset, d = e.renderTile, f = e.start, v = e.step, g = v === void 0 ? 1 : v, h = e.value, b = e.valueType,
|
|
3158
|
-
var y = a(
|
|
3159
|
-
|
|
3160
|
+
for (var t = e.className, r = e.count, n = r === void 0 ? 3 : r, a = e.dateTransform, i = e.dateType, s = e.end, l = e.hover, u = e.offset, d = e.renderTile, f = e.start, v = e.step, g = v === void 0 ? 1 : v, h = e.value, b = e.valueType, p = [], x = f; x <= s; x += g) {
|
|
3161
|
+
var y = a(x);
|
|
3162
|
+
p.push(d({
|
|
3160
3163
|
classes: rc({
|
|
3161
3164
|
date: y,
|
|
3162
3165
|
dateType: i,
|
|
@@ -3167,17 +3170,17 @@ function Ar(e) {
|
|
|
3167
3170
|
date: y
|
|
3168
3171
|
}));
|
|
3169
3172
|
}
|
|
3170
|
-
return o.jsx(Mn, { className: t, count: n, offset: u, wrap: !0, children:
|
|
3173
|
+
return o.jsx(Mn, { className: t, count: n, offset: u, wrap: !0, children: p });
|
|
3171
3174
|
}
|
|
3172
3175
|
function Rr(e) {
|
|
3173
|
-
var t = e.activeStartDate, r = e.children, n = e.classes, a = e.date, i = e.formatAbbr, s = e.locale, l = e.maxDate, u = e.maxDateTransform, d = e.minDate, f = e.minDateTransform, v = e.onClick, g = e.onMouseOver, h = e.style, b = e.tileClassName,
|
|
3176
|
+
var t = e.activeStartDate, r = e.children, n = e.classes, a = e.date, i = e.formatAbbr, s = e.locale, l = e.maxDate, u = e.maxDateTransform, d = e.minDate, f = e.minDateTransform, v = e.onClick, g = e.onMouseOver, h = e.style, b = e.tileClassName, p = e.tileContent, x = e.tileDisabled, y = e.view, m = Ye(function() {
|
|
3174
3177
|
var O = { activeStartDate: t, date: a, view: y };
|
|
3175
3178
|
return typeof b == "function" ? b(O) : b;
|
|
3176
3179
|
}, [t, a, b, y]), j = Ye(function() {
|
|
3177
3180
|
var O = { activeStartDate: t, date: a, view: y };
|
|
3178
|
-
return typeof
|
|
3179
|
-
}, [t, a,
|
|
3180
|
-
return o.jsxs("button", { className: Cr(n,
|
|
3181
|
+
return typeof p == "function" ? p(O) : p;
|
|
3182
|
+
}, [t, a, p, y]);
|
|
3183
|
+
return o.jsxs("button", { className: Cr(n, m), disabled: d && f(d) > a || l && u(l) < a || (x == null ? void 0 : x({ activeStartDate: t, date: a, view: y })), onClick: v ? function(O) {
|
|
3181
3184
|
return v(a, O);
|
|
3182
3185
|
} : void 0, onFocus: g ? function() {
|
|
3183
3186
|
return g(a);
|
|
@@ -3403,31 +3406,31 @@ var xn = function() {
|
|
|
3403
3406
|
return r;
|
|
3404
3407
|
};
|
|
3405
3408
|
function yc(e) {
|
|
3406
|
-
var t = e.activeStartDate, r = e.calendarType, n = e.hover, a = e.showFixedNumberOfWeeks, i = e.showNeighboringMonth, s = e.value, l = e.valueType, u = xa(e, ["activeStartDate", "calendarType", "hover", "showFixedNumberOfWeeks", "showNeighboringMonth", "value", "valueType"]), d = U(t), f = Ve(t), v = a || i, g = Mt(t, r), h = v ? 0 : g, b = (v ? -g : 0) + 1,
|
|
3409
|
+
var t = e.activeStartDate, r = e.calendarType, n = e.hover, a = e.showFixedNumberOfWeeks, i = e.showNeighboringMonth, s = e.value, l = e.valueType, u = xa(e, ["activeStartDate", "calendarType", "hover", "showFixedNumberOfWeeks", "showNeighboringMonth", "value", "valueType"]), d = U(t), f = Ve(t), v = a || i, g = Mt(t, r), h = v ? 0 : g, b = (v ? -g : 0) + 1, p = function() {
|
|
3407
3410
|
if (a)
|
|
3408
3411
|
return b + 6 * 7 - 1;
|
|
3409
|
-
var
|
|
3412
|
+
var x = mo(t);
|
|
3410
3413
|
if (i) {
|
|
3411
3414
|
var y = /* @__PURE__ */ new Date();
|
|
3412
|
-
y.setFullYear(d, f,
|
|
3413
|
-
var
|
|
3414
|
-
return
|
|
3415
|
+
y.setFullYear(d, f, x), y.setHours(0, 0, 0, 0);
|
|
3416
|
+
var m = 7 - Mt(y, r) - 1;
|
|
3417
|
+
return x + m;
|
|
3415
3418
|
}
|
|
3416
|
-
return
|
|
3419
|
+
return x;
|
|
3417
3420
|
}();
|
|
3418
|
-
return o.jsx(Ar, { className: "react-calendar__month-view__days", count: 7, dateTransform: function(
|
|
3421
|
+
return o.jsx(Ar, { className: "react-calendar__month-view__days", count: 7, dateTransform: function(x) {
|
|
3419
3422
|
var y = /* @__PURE__ */ new Date();
|
|
3420
|
-
return y.setFullYear(d, f,
|
|
3421
|
-
}, dateType: "day", hover: n, end:
|
|
3422
|
-
var y =
|
|
3423
|
-
return o.jsx(gc, xn({}, u,
|
|
3423
|
+
return y.setFullYear(d, f, x), Bt(y);
|
|
3424
|
+
}, dateType: "day", hover: n, end: p, renderTile: function(x) {
|
|
3425
|
+
var y = x.date, m = xa(x, ["date"]);
|
|
3426
|
+
return o.jsx(gc, xn({}, u, m, { activeStartDate: t, calendarType: r, currentMonthIndex: f, date: y }), y.getTime());
|
|
3424
3427
|
}, offset: h, start: b, value: s, valueType: l });
|
|
3425
3428
|
}
|
|
3426
3429
|
var So = "react-calendar__month-view__weekdays", Xr = "".concat(So, "__weekday");
|
|
3427
3430
|
function bc(e) {
|
|
3428
3431
|
for (var t = e.calendarType, r = e.formatShortWeekday, n = r === void 0 ? $s : r, a = e.formatWeekday, i = a === void 0 ? Ms : a, s = e.locale, l = e.onMouseLeave, u = /* @__PURE__ */ new Date(), d = tt(u), f = U(d), v = Ve(d), g = [], h = 1; h <= 7; h += 1) {
|
|
3429
|
-
var b = new Date(f, v, h - Mt(d, t)),
|
|
3430
|
-
g.push(o.jsx("div", { className: Cr(Xr, Ks(b) && "".concat(Xr, "--current"), wo(b, t) && "".concat(Xr, "--weekend")), children: o.jsx("abbr", { "aria-label":
|
|
3432
|
+
var b = new Date(f, v, h - Mt(d, t)), p = i(s, b);
|
|
3433
|
+
g.push(o.jsx("div", { className: Cr(Xr, Ks(b) && "".concat(Xr, "--current"), wo(b, t) && "".concat(Xr, "--weekend")), children: o.jsx("abbr", { "aria-label": p, title: p, children: n(s, b).replace(".", "") }) }, h));
|
|
3431
3434
|
}
|
|
3432
3435
|
return o.jsx(Mn, { className: So, count: 7, onFocus: l, onMouseOver: l, children: g });
|
|
3433
3436
|
}
|
|
@@ -3516,8 +3519,8 @@ function Oc(e) {
|
|
|
3516
3519
|
function b() {
|
|
3517
3520
|
return o.jsx(yc, wn({ calendarType: s }, v));
|
|
3518
3521
|
}
|
|
3519
|
-
var
|
|
3520
|
-
return o.jsx("div", { className: Cr(
|
|
3522
|
+
var p = "react-calendar__month-view";
|
|
3523
|
+
return o.jsx("div", { className: Cr(p, f ? "".concat(p, "--weekNumbers") : ""), children: o.jsxs("div", { style: {
|
|
3521
3524
|
display: "flex",
|
|
3522
3525
|
alignItems: "flex-end"
|
|
3523
3526
|
}, children: [h(), o.jsxs("div", { style: {
|
|
@@ -3615,7 +3618,7 @@ function sr(e, t) {
|
|
|
3615
3618
|
return e instanceof Date && t instanceof Date && e.getTime() === t.getTime();
|
|
3616
3619
|
}
|
|
3617
3620
|
var Pc = xr(function(t, r) {
|
|
3618
|
-
var n = t.activeStartDate, a = t.allowPartialRange, i = t.calendarType, s = t.className, l = t.defaultActiveStartDate, u = t.defaultValue, d = t.defaultView, f = t.formatDay, v = t.formatLongDate, g = t.formatMonth, h = t.formatMonthYear, b = t.formatShortWeekday,
|
|
3621
|
+
var n = t.activeStartDate, a = t.allowPartialRange, i = t.calendarType, s = t.className, l = t.defaultActiveStartDate, u = t.defaultValue, d = t.defaultView, f = t.formatDay, v = t.formatLongDate, g = t.formatMonth, h = t.formatMonthYear, b = t.formatShortWeekday, p = t.formatWeekday, x = t.formatYear, y = t.goToRangeStartOnSelect, m = y === void 0 ? !0 : y, j = t.inputRef, O = t.locale, P = t.maxDate, N = P === void 0 ? Nc : P, k = t.maxDetail, $ = k === void 0 ? "month" : k, X = t.minDate, re = X === void 0 ? Ln : X, Me = t.minDetail, ge = Me === void 0 ? "century" : Me, se = t.navigationAriaLabel, ce = t.navigationAriaLive, Se = t.navigationLabel, Z = t.next2AriaLabel, De = t.next2Label, Ae = t.nextAriaLabel, q = t.nextLabel, B = t.onActiveStartDateChange, ne = t.onChange, G = t.onClickDay, be = t.onClickDecade, Ne = t.onClickMonth, _e = t.onClickWeekNumber, de = t.onClickYear, fe = t.onDrillDown, ae = t.onDrillUp, K = t.onViewChange, xe = t.prev2AriaLabel, Ce = t.prev2Label, le = t.prevAriaLabel, wt = t.prevLabel, H = t.returnValue, ke = H === void 0 ? "start" : H, ee = t.selectRange, ze = t.showDoubleView, jt = t.showFixedNumberOfWeeks, Ue = t.showNavigation, Ir = Ue === void 0 ? !0 : Ue, $r = t.showNeighboringCentury, St = t.showNeighboringDecade, zt = t.showNeighboringMonth, Mr = zt === void 0 ? !0 : zt, Ut = t.showWeekNumbers, Gt = t.tileClassName, qt = t.tileContent, Lr = t.tileDisabled, nt = t.value, Ot = t.view, Ht = F(l), Fr = Ht[0], at = Ht[1], Xt = F(null), Wr = Xt[0], Kt = Xt[1], Jt = F(Array.isArray(u) ? u.map(function(D) {
|
|
3619
3622
|
return D !== null ? Rt(D) : null;
|
|
3620
3623
|
}) : u != null ? Rt(u) : null), Ge = Jt[0], Qt = Jt[1], Re = F(d), Dt = Re[0], ot = Re[1], oe = n || Fr || Ec({
|
|
3621
3624
|
activeStartDate: n,
|
|
@@ -3748,7 +3751,7 @@ var Pc = xr(function(t, r) {
|
|
|
3748
3751
|
// Range selection turned off
|
|
3749
3752
|
!ee || // Range selection turned on, first value
|
|
3750
3753
|
W || // Range selection turned on, second value, goToRangeStartOnSelect toggled on
|
|
3751
|
-
|
|
3754
|
+
m ? Co({
|
|
3752
3755
|
maxDate: N,
|
|
3753
3756
|
maxDetail: $,
|
|
3754
3757
|
minDate: re,
|
|
@@ -3780,7 +3783,7 @@ var Pc = xr(function(t, r) {
|
|
|
3780
3783
|
oe,
|
|
3781
3784
|
a,
|
|
3782
3785
|
_t,
|
|
3783
|
-
|
|
3786
|
+
m,
|
|
3784
3787
|
N,
|
|
3785
3788
|
$,
|
|
3786
3789
|
re,
|
|
@@ -3796,7 +3799,7 @@ var Pc = xr(function(t, r) {
|
|
|
3796
3799
|
function c(D) {
|
|
3797
3800
|
Kt(D);
|
|
3798
3801
|
}
|
|
3799
|
-
function
|
|
3802
|
+
function w() {
|
|
3800
3803
|
Kt(null);
|
|
3801
3804
|
}
|
|
3802
3805
|
wr(r, function() {
|
|
@@ -3827,22 +3830,22 @@ var Pc = xr(function(t, r) {
|
|
|
3827
3830
|
};
|
|
3828
3831
|
switch (Y) {
|
|
3829
3832
|
case "century":
|
|
3830
|
-
return o.jsx(ic, ut({ formatYear:
|
|
3833
|
+
return o.jsx(ic, ut({ formatYear: x, showNeighboringCentury: $r }, W));
|
|
3831
3834
|
case "decade":
|
|
3832
|
-
return o.jsx(uc, ut({ formatYear:
|
|
3835
|
+
return o.jsx(uc, ut({ formatYear: x, showNeighboringDecade: St }, W));
|
|
3833
3836
|
case "year":
|
|
3834
3837
|
return o.jsx(mc, ut({ formatMonth: g, formatMonthYear: h }, W));
|
|
3835
3838
|
case "month":
|
|
3836
|
-
return o.jsx(Oc, ut({ calendarType: i, formatDay: f, formatLongDate: v, formatShortWeekday: b, formatWeekday:
|
|
3839
|
+
return o.jsx(Oc, ut({ calendarType: i, formatDay: f, formatLongDate: v, formatShortWeekday: b, formatWeekday: p, onClickWeekNumber: _e, onMouseLeave: ee ? w : void 0, showFixedNumberOfWeeks: typeof jt < "u" ? jt : ze, showNeighboringMonth: Mr, showWeekNumbers: Ut }, W));
|
|
3837
3840
|
default:
|
|
3838
3841
|
throw new Error("Invalid view: ".concat(Y, "."));
|
|
3839
3842
|
}
|
|
3840
3843
|
}
|
|
3841
3844
|
function E() {
|
|
3842
|
-
return Ir ? o.jsx(Js, { activeStartDate: oe, drillUp: kt, formatMonthYear: h, formatYear:
|
|
3845
|
+
return Ir ? o.jsx(Js, { activeStartDate: oe, drillUp: kt, formatMonthYear: h, formatYear: x, locale: O, maxDate: N, minDate: re, navigationAriaLabel: se, navigationAriaLive: ce, navigationLabel: Se, next2AriaLabel: Z, next2Label: De, nextAriaLabel: Ae, nextLabel: q, prev2AriaLabel: xe, prev2Label: Ce, prevAriaLabel: le, prevLabel: wt, setActiveStartDate: it, showDoubleView: ze, view: Y, views: ye }) : null;
|
|
3843
3846
|
}
|
|
3844
3847
|
var I = Array.isArray(ue) ? ue : [ue];
|
|
3845
|
-
return o.jsxs("div", { className: Cr(ir, ee && I.length === 1 && "".concat(ir, "--selectRange"), ze && "".concat(ir, "--doubleView"), s), ref: j, children: [E(), o.jsxs("div", { className: "".concat(ir, "__viewContainer"), onBlur: ee ?
|
|
3848
|
+
return o.jsxs("div", { className: Cr(ir, ee && I.length === 1 && "".concat(ir, "--selectRange"), ze && "".concat(ir, "--doubleView"), s), ref: j, children: [E(), o.jsxs("div", { className: "".concat(ir, "__viewContainer"), onBlur: ee ? w : void 0, onMouseLeave: ee ? w : void 0, children: [S(), ze ? S(!0) : null] })] });
|
|
3846
3849
|
});
|
|
3847
3850
|
const tl = ({
|
|
3848
3851
|
value: e,
|
|
@@ -3851,20 +3854,20 @@ const tl = ({
|
|
|
3851
3854
|
children: n
|
|
3852
3855
|
}) => {
|
|
3853
3856
|
const [a, i] = F(e ?? /* @__PURE__ */ new Date()), [s, l] = F(!1), u = pe(null), d = A(
|
|
3854
|
-
(
|
|
3855
|
-
i(
|
|
3857
|
+
(p) => {
|
|
3858
|
+
i(p), t && t(p), l(!1);
|
|
3856
3859
|
},
|
|
3857
3860
|
[t]
|
|
3858
|
-
), f = () => l(!s), v = A((
|
|
3859
|
-
u.current && !u.current.contains(
|
|
3861
|
+
), f = () => l(!s), v = A((p) => {
|
|
3862
|
+
u.current && !u.current.contains(p.target) && l(!1);
|
|
3860
3863
|
}, []);
|
|
3861
3864
|
Q(() => (s ? document.addEventListener("mousedown", v) : document.removeEventListener("mousedown", v), () => {
|
|
3862
3865
|
document.removeEventListener("mousedown", v);
|
|
3863
3866
|
}), [s, v]);
|
|
3864
3867
|
const [g, h] = F(), b = ({
|
|
3865
|
-
activeStartDate:
|
|
3868
|
+
activeStartDate: p
|
|
3866
3869
|
}) => {
|
|
3867
|
-
h(
|
|
3870
|
+
h(p);
|
|
3868
3871
|
};
|
|
3869
3872
|
return /* @__PURE__ */ o.jsx("div", { children: /* @__PURE__ */ o.jsxs("div", { className: "calendar", ref: u, children: [
|
|
3870
3873
|
n && /* @__PURE__ */ o.jsx("div", { onClick: f, children: n }),
|
|
@@ -3897,10 +3900,10 @@ const tl = ({
|
|
|
3897
3900
|
maxDate: r ?? /* @__PURE__ */ new Date(),
|
|
3898
3901
|
onChange: d,
|
|
3899
3902
|
value: a,
|
|
3900
|
-
tileClassName: ({ date:
|
|
3901
|
-
if (
|
|
3903
|
+
tileClassName: ({ date: p, view: x }) => {
|
|
3904
|
+
if (x === "month" && g) {
|
|
3902
3905
|
const y = g;
|
|
3903
|
-
return
|
|
3906
|
+
return p.getMonth() !== (y == null ? void 0 : y.getMonth()) ? "out-of-month" : null;
|
|
3904
3907
|
}
|
|
3905
3908
|
return null;
|
|
3906
3909
|
}
|
|
@@ -4019,15 +4022,15 @@ const Ac = ({
|
|
|
4019
4022
|
required: g = !1,
|
|
4020
4023
|
autoComplete: h = "off",
|
|
4021
4024
|
ref: b,
|
|
4022
|
-
tabIndex:
|
|
4023
|
-
step:
|
|
4025
|
+
tabIndex: p = 0,
|
|
4026
|
+
step: x,
|
|
4024
4027
|
checked: y,
|
|
4025
|
-
onChange:
|
|
4028
|
+
onChange: m,
|
|
4026
4029
|
onBlur: j
|
|
4027
4030
|
}) => {
|
|
4028
4031
|
const [O, P] = F(!1);
|
|
4029
4032
|
return /* @__PURE__ */ o.jsxs("div", { className: "input-container", children: [
|
|
4030
|
-
/* @__PURE__ */ o.jsx("input", { type: "text", style: { display: "none" } }),
|
|
4033
|
+
/* @__PURE__ */ o.jsx("input", { name: `hide-${t}`, type: "text", style: { display: "none" } }),
|
|
4031
4034
|
/* @__PURE__ */ o.jsx(
|
|
4032
4035
|
"input",
|
|
4033
4036
|
{
|
|
@@ -4042,12 +4045,12 @@ const Ac = ({
|
|
|
4042
4045
|
disabled: v,
|
|
4043
4046
|
required: g,
|
|
4044
4047
|
autoComplete: h === "off" ? "fake" : h,
|
|
4045
|
-
step:
|
|
4046
|
-
tabIndex:
|
|
4048
|
+
step: x,
|
|
4049
|
+
tabIndex: p,
|
|
4047
4050
|
autoFocus: f,
|
|
4048
4051
|
minLength: u,
|
|
4049
4052
|
maxLength: d,
|
|
4050
|
-
onChange:
|
|
4053
|
+
onChange: m,
|
|
4051
4054
|
checked: y,
|
|
4052
4055
|
onBlur: j,
|
|
4053
4056
|
className: `input-field ${s ?? ""}`,
|
|
@@ -4073,13 +4076,13 @@ const Ac = ({
|
|
|
4073
4076
|
className: i
|
|
4074
4077
|
}, s) => {
|
|
4075
4078
|
const [l, u] = F(() => {
|
|
4076
|
-
const
|
|
4079
|
+
const m = {};
|
|
4077
4080
|
return e.forEach((j) => {
|
|
4078
|
-
|
|
4079
|
-
}),
|
|
4081
|
+
m[j.name] = j.value ?? "";
|
|
4082
|
+
}), m;
|
|
4080
4083
|
}), d = pe({}), f = A(
|
|
4081
|
-
(
|
|
4082
|
-
const { name: O, type: P, checked: N, value: k } =
|
|
4084
|
+
(m, j) => {
|
|
4085
|
+
const { name: O, type: P, checked: N, value: k } = m.target, $ = P === "checkbox" ? N : k;
|
|
4083
4086
|
j.onChange && j.onChange($, O), u((X) => {
|
|
4084
4087
|
const re = { ...X, [O]: $ };
|
|
4085
4088
|
return n && n(re), re;
|
|
@@ -4087,90 +4090,92 @@ const Ac = ({
|
|
|
4087
4090
|
},
|
|
4088
4091
|
[n]
|
|
4089
4092
|
), v = A(
|
|
4090
|
-
(
|
|
4091
|
-
O.onChange && O.onChange(
|
|
4092
|
-
const N = { ...P, [j]:
|
|
4093
|
+
(m, j, O) => {
|
|
4094
|
+
O.onChange && O.onChange(m, j), u((P) => {
|
|
4095
|
+
const N = { ...P, [j]: m };
|
|
4093
4096
|
return n && n(N), N;
|
|
4094
4097
|
});
|
|
4095
4098
|
},
|
|
4096
4099
|
[n]
|
|
4097
4100
|
), g = A(
|
|
4098
|
-
(
|
|
4099
|
-
|
|
4101
|
+
(m) => {
|
|
4102
|
+
m.preventDefault(), r && r(l);
|
|
4100
4103
|
},
|
|
4101
4104
|
[r, l]
|
|
4102
4105
|
), h = () => {
|
|
4103
4106
|
u(() => {
|
|
4104
|
-
const
|
|
4107
|
+
const m = {};
|
|
4105
4108
|
return e.forEach((j) => {
|
|
4106
|
-
|
|
4107
|
-
}),
|
|
4109
|
+
m[j.name] = j.value ?? "";
|
|
4110
|
+
}), m;
|
|
4108
4111
|
});
|
|
4109
|
-
}, b = A((
|
|
4112
|
+
}, b = A((m) => {
|
|
4110
4113
|
u((j) => ({
|
|
4111
4114
|
...j,
|
|
4112
|
-
[
|
|
4115
|
+
[m]: ""
|
|
4113
4116
|
}));
|
|
4114
|
-
}, []),
|
|
4115
|
-
const
|
|
4116
|
-
|
|
4117
|
+
}, []), p = () => {
|
|
4118
|
+
const m = e.find((j) => j.focus);
|
|
4119
|
+
m && d.current[m.name] && setTimeout(() => {
|
|
4117
4120
|
var j;
|
|
4118
|
-
(j = d.current[
|
|
4121
|
+
(j = d.current[m.name]) == null || j.select();
|
|
4119
4122
|
}, 500);
|
|
4120
|
-
},
|
|
4123
|
+
}, x = () => l, y = (m) => {
|
|
4121
4124
|
u((j) => ({
|
|
4122
4125
|
...j,
|
|
4123
|
-
...
|
|
4126
|
+
...m
|
|
4124
4127
|
}));
|
|
4125
4128
|
};
|
|
4126
4129
|
return wr(s, () => ({
|
|
4127
4130
|
resetForm: h,
|
|
4128
4131
|
clearInput: b,
|
|
4129
|
-
focusInitialElement:
|
|
4130
|
-
getValues:
|
|
4132
|
+
focusInitialElement: p,
|
|
4133
|
+
getValues: x,
|
|
4131
4134
|
updateFormValue: y
|
|
4132
4135
|
})), /* @__PURE__ */ o.jsxs("form", { onSubmit: g, className: i ?? "", children: [
|
|
4133
|
-
e.map((
|
|
4134
|
-
const O =
|
|
4136
|
+
e.map((m, j) => {
|
|
4137
|
+
const O = m.onRequired ? m.onRequired(m.value) : m.required ?? !1, P = m.onDisabled ? m.onDisabled(m.value) : m.disabled ?? !1;
|
|
4135
4138
|
return /* @__PURE__ */ o.jsxs(
|
|
4136
4139
|
"div",
|
|
4137
4140
|
{
|
|
4138
|
-
className: `d-flex flex-column ${
|
|
4141
|
+
className: `d-flex flex-column ${m.className ?? ""} form-group form-group-${m.type}`,
|
|
4139
4142
|
children: [
|
|
4140
|
-
|
|
4141
|
-
|
|
4142
|
-
|
|
4143
|
+
m.label && /* @__PURE__ */ o.jsx("label", { children: m.label }),
|
|
4144
|
+
m.icon && /* @__PURE__ */ o.jsx(M, { classIcon: m.icon }),
|
|
4145
|
+
m.type === "select" ? /* @__PURE__ */ o.jsx(
|
|
4143
4146
|
eo,
|
|
4144
4147
|
{
|
|
4145
|
-
id:
|
|
4148
|
+
id: m.name,
|
|
4146
4149
|
label: void 0,
|
|
4147
|
-
|
|
4150
|
+
name: m.name,
|
|
4151
|
+
options: m.options ?? [],
|
|
4148
4152
|
disabled: P,
|
|
4149
|
-
multiple:
|
|
4150
|
-
value: l[
|
|
4151
|
-
|
|
4152
|
-
|
|
4153
|
-
|
|
4154
|
-
|
|
4153
|
+
multiple: m.multiple,
|
|
4154
|
+
value: l[m.name],
|
|
4155
|
+
required: O,
|
|
4156
|
+
defaultValue: m.value,
|
|
4157
|
+
placeholder: m.placeholder,
|
|
4158
|
+
onChangeMultiple: (N) => v(N, m.name, m),
|
|
4159
|
+
onChange: (N) => v(N, m.name, m)
|
|
4155
4160
|
}
|
|
4156
4161
|
) : /* @__PURE__ */ o.jsx(
|
|
4157
4162
|
Ac,
|
|
4158
4163
|
{
|
|
4159
|
-
id:
|
|
4160
|
-
ref: (N) => d.current[
|
|
4161
|
-
name:
|
|
4162
|
-
type:
|
|
4163
|
-
placeholder:
|
|
4164
|
-
autoComplete:
|
|
4164
|
+
id: m.name,
|
|
4165
|
+
ref: (N) => d.current[m.name] = N,
|
|
4166
|
+
name: m.name,
|
|
4167
|
+
type: m.type,
|
|
4168
|
+
placeholder: m.placeholder ?? "",
|
|
4169
|
+
autoComplete: m.autoComplete ?? "off",
|
|
4165
4170
|
tabIndex: 0,
|
|
4166
4171
|
disabled: P,
|
|
4167
|
-
autoFocus:
|
|
4172
|
+
autoFocus: m.focus ?? !1,
|
|
4168
4173
|
required: O,
|
|
4169
|
-
step:
|
|
4170
|
-
value: l[
|
|
4171
|
-
checked:
|
|
4172
|
-
onChange: (N) => f(N,
|
|
4173
|
-
onInvalid:
|
|
4174
|
+
step: m.step ?? "0.01",
|
|
4175
|
+
value: l[m.name],
|
|
4176
|
+
checked: m.type === "checkbox" ? !!l[m.name] : void 0,
|
|
4177
|
+
onChange: (N) => f(N, m),
|
|
4178
|
+
onInvalid: m.onInvalid ? m.onInvalid : void 0
|
|
4174
4179
|
}
|
|
4175
4180
|
)
|
|
4176
4181
|
]
|
|
@@ -4400,38 +4405,38 @@ const Ac = ({
|
|
|
4400
4405
|
Q(() => {
|
|
4401
4406
|
n !== void 0 && v(n);
|
|
4402
4407
|
}, [n]);
|
|
4403
|
-
const
|
|
4404
|
-
(
|
|
4405
|
-
l && l(
|
|
4408
|
+
const p = A(
|
|
4409
|
+
(m) => {
|
|
4410
|
+
l && l(m), v(m);
|
|
4406
4411
|
},
|
|
4407
4412
|
[l]
|
|
4408
|
-
),
|
|
4409
|
-
(
|
|
4410
|
-
if (!
|
|
4411
|
-
return
|
|
4412
|
-
|
|
4413
|
-
s && s(
|
|
4413
|
+
), x = A(
|
|
4414
|
+
(m) => {
|
|
4415
|
+
if (!m || !m[t ?? "recherche"])
|
|
4416
|
+
return p(!1);
|
|
4417
|
+
p(!0), g.current && clearTimeout(g.current), g.current = setTimeout(() => {
|
|
4418
|
+
s && s(m);
|
|
4414
4419
|
}, i ?? 500);
|
|
4415
4420
|
},
|
|
4416
|
-
[
|
|
4421
|
+
[p, s, i]
|
|
4417
4422
|
), y = A(
|
|
4418
|
-
(
|
|
4419
|
-
console.log("Form Submitted: ",
|
|
4423
|
+
(m) => {
|
|
4424
|
+
console.log("Form Submitted: ", m);
|
|
4420
4425
|
},
|
|
4421
4426
|
[]
|
|
4422
4427
|
);
|
|
4423
4428
|
return wr(d, () => ({
|
|
4424
|
-
clearInput: (
|
|
4429
|
+
clearInput: (m) => {
|
|
4425
4430
|
var j;
|
|
4426
|
-
(j = h.current) == null || j.clearInput(
|
|
4431
|
+
(j = h.current) == null || j.clearInput(m);
|
|
4427
4432
|
},
|
|
4428
4433
|
resetForm: () => {
|
|
4429
|
-
var
|
|
4430
|
-
(
|
|
4434
|
+
var m;
|
|
4435
|
+
(m = h.current) == null || m.resetForm();
|
|
4431
4436
|
},
|
|
4432
4437
|
focusInitialElement: () => {
|
|
4433
|
-
var
|
|
4434
|
-
(
|
|
4438
|
+
var m;
|
|
4439
|
+
(m = h.current) == null || m.focusInitialElement();
|
|
4435
4440
|
}
|
|
4436
4441
|
})), /* @__PURE__ */ o.jsxs("div", { className: "search", children: [
|
|
4437
4442
|
/* @__PURE__ */ o.jsx(
|
|
@@ -4439,7 +4444,7 @@ const Ac = ({
|
|
|
4439
4444
|
{
|
|
4440
4445
|
ref: h,
|
|
4441
4446
|
onSubmit: y,
|
|
4442
|
-
onChange:
|
|
4447
|
+
onChange: x,
|
|
4443
4448
|
hideSubmit: !0,
|
|
4444
4449
|
initialForm: b
|
|
4445
4450
|
}
|
|
@@ -4449,7 +4454,7 @@ const Ac = ({
|
|
|
4449
4454
|
"button",
|
|
4450
4455
|
{
|
|
4451
4456
|
className: "toggle-btn",
|
|
4452
|
-
onClick: () =>
|
|
4457
|
+
onClick: () => p(!1),
|
|
4453
4458
|
children: /* @__PURE__ */ o.jsx(M, { classIcon: "bi-x-lg" })
|
|
4454
4459
|
}
|
|
4455
4460
|
) }),
|
|
@@ -4477,8 +4482,8 @@ const Ac = ({
|
|
|
4477
4482
|
const h = A(() => {
|
|
4478
4483
|
f(!1), n && n(!1);
|
|
4479
4484
|
}, [n]), b = A(
|
|
4480
|
-
(
|
|
4481
|
-
l && v.current && !v.current.contains(
|
|
4485
|
+
(p) => {
|
|
4486
|
+
l && v.current && !v.current.contains(p.target) && h();
|
|
4482
4487
|
},
|
|
4483
4488
|
[h, l]
|
|
4484
4489
|
);
|