kelt-ui-kit-react 0.9.0 → 0.9.2
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/card/Card.d.ts +3 -1
- package/dist/card/cardAction/CardAction.d.ts +3 -2
- package/dist/index.js +459 -454
- package/package.json +1 -1
- package/public/index.html +6 -31
- package/src/card/Card.tsx +4 -0
- package/src/card/cardAction/CardAction.tsx +13 -8
- package/src/overlayPanel/OverlayPanel.tsx +2 -2
package/dist/index.js
CHANGED
|
@@ -26,12 +26,12 @@ function $n() {
|
|
|
26
26
|
if (lr) return Ye;
|
|
27
27
|
lr = 1;
|
|
28
28
|
var e = ie, t = Symbol.for("react.element"), r = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, o = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
29
|
-
function c(u, l,
|
|
30
|
-
var v,
|
|
31
|
-
|
|
32
|
-
for (v in l) n.call(l, v) && !i.hasOwnProperty(v) && (
|
|
33
|
-
if (u && u.defaultProps) for (v in l = u.defaultProps, l)
|
|
34
|
-
return { $$typeof: t, type: u, key:
|
|
29
|
+
function c(u, l, g) {
|
|
30
|
+
var v, d = {}, h = null, p = null;
|
|
31
|
+
g !== void 0 && (h = "" + g), l.key !== void 0 && (h = "" + l.key), l.ref !== void 0 && (p = l.ref);
|
|
32
|
+
for (v in l) n.call(l, v) && !i.hasOwnProperty(v) && (d[v] = l[v]);
|
|
33
|
+
if (u && u.defaultProps) for (v in l = u.defaultProps, l) d[v] === void 0 && (d[v] = l[v]);
|
|
34
|
+
return { $$typeof: t, type: u, key: h, ref: p, props: d, _owner: o.current };
|
|
35
35
|
}
|
|
36
36
|
return Ye.Fragment = r, Ye.jsx = c, Ye.jsxs = c, Ye;
|
|
37
37
|
}
|
|
@@ -48,45 +48,45 @@ var Ue = {};
|
|
|
48
48
|
var ur;
|
|
49
49
|
function Dn() {
|
|
50
50
|
return ur || (ur = 1, process.env.NODE_ENV !== "production" && function() {
|
|
51
|
-
var e = ie, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), c = Symbol.for("react.provider"), u = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"),
|
|
52
|
-
function
|
|
51
|
+
var e = ie, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), c = Symbol.for("react.provider"), u = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), g = Symbol.for("react.suspense"), v = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"), h = Symbol.for("react.lazy"), p = Symbol.for("react.offscreen"), m = Symbol.iterator, b = "@@iterator";
|
|
52
|
+
function y(s) {
|
|
53
53
|
if (s === null || typeof s != "object")
|
|
54
54
|
return null;
|
|
55
|
-
var
|
|
56
|
-
return typeof
|
|
55
|
+
var f = m && s[m] || s[b];
|
|
56
|
+
return typeof f == "function" ? f : null;
|
|
57
57
|
}
|
|
58
58
|
var j = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
59
59
|
function w(s) {
|
|
60
60
|
{
|
|
61
|
-
for (var
|
|
61
|
+
for (var f = arguments.length, x = new Array(f > 1 ? f - 1 : 0), C = 1; C < f; C++)
|
|
62
62
|
x[C - 1] = arguments[C];
|
|
63
63
|
S("error", s, x);
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
|
-
function S(s,
|
|
66
|
+
function S(s, f, x) {
|
|
67
67
|
{
|
|
68
68
|
var C = j.ReactDebugCurrentFrame, O = C.getStackAddendum();
|
|
69
|
-
O !== "" && (
|
|
69
|
+
O !== "" && (f += "%s", x = x.concat([O]));
|
|
70
70
|
var A = x.map(function(P) {
|
|
71
71
|
return String(P);
|
|
72
72
|
});
|
|
73
|
-
A.unshift("Warning: " +
|
|
73
|
+
A.unshift("Warning: " + f), Function.prototype.apply.call(console[s], console, A);
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
-
var R = !1, T = !1, k = !1, E = !1,
|
|
76
|
+
var R = !1, T = !1, k = !1, E = !1, V = !1, K;
|
|
77
77
|
K = Symbol.for("react.module.reference");
|
|
78
78
|
function yt(s) {
|
|
79
|
-
return !!(typeof s == "string" || typeof s == "function" || s === n || s === i ||
|
|
79
|
+
return !!(typeof s == "string" || typeof s == "function" || s === n || s === i || V || s === o || s === g || s === v || E || s === p || R || T || k || typeof s == "object" && s !== null && (s.$$typeof === h || s.$$typeof === d || s.$$typeof === c || s.$$typeof === u || s.$$typeof === l || // This needs to include all possible module reference object
|
|
80
80
|
// types supported by any Flight configuration anywhere since
|
|
81
81
|
// we don't know which Flight build this will end up being used
|
|
82
82
|
// with.
|
|
83
83
|
s.$$typeof === K || s.getModuleId !== void 0));
|
|
84
84
|
}
|
|
85
|
-
function xt(s,
|
|
85
|
+
function xt(s, f, x) {
|
|
86
86
|
var C = s.displayName;
|
|
87
87
|
if (C)
|
|
88
88
|
return C;
|
|
89
|
-
var O =
|
|
89
|
+
var O = f.displayName || f.name || "";
|
|
90
90
|
return O !== "" ? x + "(" + O + ")" : x;
|
|
91
91
|
}
|
|
92
92
|
function Xe(s) {
|
|
@@ -108,7 +108,7 @@ function Dn() {
|
|
|
108
108
|
return "Profiler";
|
|
109
109
|
case o:
|
|
110
110
|
return "StrictMode";
|
|
111
|
-
case
|
|
111
|
+
case g:
|
|
112
112
|
return "Suspense";
|
|
113
113
|
case v:
|
|
114
114
|
return "SuspenseList";
|
|
@@ -116,17 +116,17 @@ function Dn() {
|
|
|
116
116
|
if (typeof s == "object")
|
|
117
117
|
switch (s.$$typeof) {
|
|
118
118
|
case u:
|
|
119
|
-
var
|
|
120
|
-
return Xe(
|
|
119
|
+
var f = s;
|
|
120
|
+
return Xe(f) + ".Consumer";
|
|
121
121
|
case c:
|
|
122
122
|
var x = s;
|
|
123
123
|
return Xe(x._context) + ".Provider";
|
|
124
124
|
case l:
|
|
125
125
|
return xt(s, s.render, "ForwardRef");
|
|
126
|
-
case
|
|
126
|
+
case d:
|
|
127
127
|
var C = s.displayName || null;
|
|
128
128
|
return C !== null ? C : X(s.type) || "Memo";
|
|
129
|
-
case
|
|
129
|
+
case h: {
|
|
130
130
|
var O = s, A = O._payload, P = O._init;
|
|
131
131
|
try {
|
|
132
132
|
return X(P(A));
|
|
@@ -200,7 +200,7 @@ function Dn() {
|
|
|
200
200
|
}
|
|
201
201
|
}
|
|
202
202
|
var le = j.ReactCurrentDispatcher, he;
|
|
203
|
-
function ee(s,
|
|
203
|
+
function ee(s, f, x) {
|
|
204
204
|
{
|
|
205
205
|
if (he === void 0)
|
|
206
206
|
try {
|
|
@@ -218,7 +218,7 @@ function Dn() {
|
|
|
218
218
|
var Ne = typeof WeakMap == "function" ? WeakMap : Map;
|
|
219
219
|
pe = new Ne();
|
|
220
220
|
}
|
|
221
|
-
function re(s,
|
|
221
|
+
function re(s, f) {
|
|
222
222
|
if (!s || te)
|
|
223
223
|
return "";
|
|
224
224
|
{
|
|
@@ -233,7 +233,7 @@ function Dn() {
|
|
|
233
233
|
var A;
|
|
234
234
|
A = le.current, le.current = null, We();
|
|
235
235
|
try {
|
|
236
|
-
if (
|
|
236
|
+
if (f) {
|
|
237
237
|
var P = function() {
|
|
238
238
|
throw Error();
|
|
239
239
|
};
|
|
@@ -289,14 +289,14 @@ function Dn() {
|
|
|
289
289
|
var _e = s ? s.displayName || s.name : "", ye = _e ? ee(_e) : "";
|
|
290
290
|
return typeof s == "function" && pe.set(s, ye), ye;
|
|
291
291
|
}
|
|
292
|
-
function cn(s,
|
|
292
|
+
function cn(s, f, x) {
|
|
293
293
|
return re(s, !1);
|
|
294
294
|
}
|
|
295
295
|
function ln(s) {
|
|
296
|
-
var
|
|
297
|
-
return !!(
|
|
296
|
+
var f = s.prototype;
|
|
297
|
+
return !!(f && f.isReactComponent);
|
|
298
298
|
}
|
|
299
|
-
function Je(s,
|
|
299
|
+
function Je(s, f, x) {
|
|
300
300
|
if (s == null)
|
|
301
301
|
return "";
|
|
302
302
|
if (typeof s == "function")
|
|
@@ -304,7 +304,7 @@ function Dn() {
|
|
|
304
304
|
if (typeof s == "string")
|
|
305
305
|
return ee(s);
|
|
306
306
|
switch (s) {
|
|
307
|
-
case
|
|
307
|
+
case g:
|
|
308
308
|
return ee("Suspense");
|
|
309
309
|
case v:
|
|
310
310
|
return ee("SuspenseList");
|
|
@@ -313,12 +313,12 @@ function Dn() {
|
|
|
313
313
|
switch (s.$$typeof) {
|
|
314
314
|
case l:
|
|
315
315
|
return cn(s.render);
|
|
316
|
-
case
|
|
317
|
-
return Je(s.type,
|
|
318
|
-
case
|
|
316
|
+
case d:
|
|
317
|
+
return Je(s.type, f, x);
|
|
318
|
+
case h: {
|
|
319
319
|
var C = s, O = C._payload, A = C._init;
|
|
320
320
|
try {
|
|
321
|
-
return Je(A(O),
|
|
321
|
+
return Je(A(O), f, x);
|
|
322
322
|
} catch {
|
|
323
323
|
}
|
|
324
324
|
}
|
|
@@ -328,12 +328,12 @@ function Dn() {
|
|
|
328
328
|
var Ve = Object.prototype.hasOwnProperty, Xt = {}, Kt = j.ReactDebugCurrentFrame;
|
|
329
329
|
function Qe(s) {
|
|
330
330
|
if (s) {
|
|
331
|
-
var
|
|
331
|
+
var f = s._owner, x = Je(s.type, s._source, f ? f.type : null);
|
|
332
332
|
Kt.setExtraStackFrame(x);
|
|
333
333
|
} else
|
|
334
334
|
Kt.setExtraStackFrame(null);
|
|
335
335
|
}
|
|
336
|
-
function un(s,
|
|
336
|
+
function un(s, f, x, C, O) {
|
|
337
337
|
{
|
|
338
338
|
var A = Function.call.bind(Ve);
|
|
339
339
|
for (var P in s)
|
|
@@ -344,7 +344,7 @@ function Dn() {
|
|
|
344
344
|
var q = Error((C || "React class") + ": " + x + " type `" + P + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof s[P] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
345
345
|
throw q.name = "Invariant Violation", q;
|
|
346
346
|
}
|
|
347
|
-
_ = s[P](
|
|
347
|
+
_ = s[P](f, P, C, x, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
348
348
|
} catch (L) {
|
|
349
349
|
_ = L;
|
|
350
350
|
}
|
|
@@ -358,7 +358,7 @@ function Dn() {
|
|
|
358
358
|
}
|
|
359
359
|
function fn(s) {
|
|
360
360
|
{
|
|
361
|
-
var
|
|
361
|
+
var f = typeof Symbol == "function" && Symbol.toStringTag, x = f && s[Symbol.toStringTag] || s.constructor.name || "Object";
|
|
362
362
|
return x;
|
|
363
363
|
}
|
|
364
364
|
}
|
|
@@ -385,30 +385,30 @@ function Dn() {
|
|
|
385
385
|
wt = {};
|
|
386
386
|
function mn(s) {
|
|
387
387
|
if (Ve.call(s, "ref")) {
|
|
388
|
-
var
|
|
389
|
-
if (
|
|
388
|
+
var f = Object.getOwnPropertyDescriptor(s, "ref").get;
|
|
389
|
+
if (f && f.isReactWarning)
|
|
390
390
|
return !1;
|
|
391
391
|
}
|
|
392
392
|
return s.ref !== void 0;
|
|
393
393
|
}
|
|
394
394
|
function gn(s) {
|
|
395
395
|
if (Ve.call(s, "key")) {
|
|
396
|
-
var
|
|
397
|
-
if (
|
|
396
|
+
var f = Object.getOwnPropertyDescriptor(s, "key").get;
|
|
397
|
+
if (f && f.isReactWarning)
|
|
398
398
|
return !1;
|
|
399
399
|
}
|
|
400
400
|
return s.key !== void 0;
|
|
401
401
|
}
|
|
402
|
-
function vn(s,
|
|
403
|
-
if (typeof s.ref == "string" && Be.current &&
|
|
402
|
+
function vn(s, f) {
|
|
403
|
+
if (typeof s.ref == "string" && Be.current && f && Be.current.stateNode !== f) {
|
|
404
404
|
var x = X(Be.current.type);
|
|
405
405
|
wt[x] || (w('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', X(Be.current.type), s.ref), wt[x] = !0);
|
|
406
406
|
}
|
|
407
407
|
}
|
|
408
|
-
function yn(s,
|
|
408
|
+
function yn(s, f) {
|
|
409
409
|
{
|
|
410
410
|
var x = function() {
|
|
411
|
-
Zt || (Zt = !0, w("%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)",
|
|
411
|
+
Zt || (Zt = !0, w("%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)", f));
|
|
412
412
|
};
|
|
413
413
|
x.isReactWarning = !0, Object.defineProperty(s, "key", {
|
|
414
414
|
get: x,
|
|
@@ -416,10 +416,10 @@ function Dn() {
|
|
|
416
416
|
});
|
|
417
417
|
}
|
|
418
418
|
}
|
|
419
|
-
function xn(s,
|
|
419
|
+
function xn(s, f) {
|
|
420
420
|
{
|
|
421
421
|
var x = function() {
|
|
422
|
-
er || (er = !0, w("%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)",
|
|
422
|
+
er || (er = !0, w("%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)", f));
|
|
423
423
|
};
|
|
424
424
|
x.isReactWarning = !0, Object.defineProperty(s, "ref", {
|
|
425
425
|
get: x,
|
|
@@ -427,13 +427,13 @@ function Dn() {
|
|
|
427
427
|
});
|
|
428
428
|
}
|
|
429
429
|
}
|
|
430
|
-
var bn = function(s,
|
|
430
|
+
var bn = function(s, f, x, C, O, A, P) {
|
|
431
431
|
var _ = {
|
|
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: s,
|
|
436
|
-
key:
|
|
436
|
+
key: f,
|
|
437
437
|
ref: x,
|
|
438
438
|
props: P,
|
|
439
439
|
// Record the component responsible for creating this element.
|
|
@@ -456,12 +456,12 @@ function Dn() {
|
|
|
456
456
|
value: O
|
|
457
457
|
}), Object.freeze && (Object.freeze(_.props), Object.freeze(_)), _;
|
|
458
458
|
};
|
|
459
|
-
function wn(s,
|
|
459
|
+
function wn(s, f, x, C, O) {
|
|
460
460
|
{
|
|
461
461
|
var A, P = {}, _ = null, q = null;
|
|
462
|
-
x !== void 0 && (Qt(x), _ = "" + x), gn(
|
|
463
|
-
for (A in
|
|
464
|
-
Ve.call(
|
|
462
|
+
x !== void 0 && (Qt(x), _ = "" + x), gn(f) && (Qt(f.key), _ = "" + f.key), mn(f) && (q = f.ref, vn(f, O));
|
|
463
|
+
for (A in f)
|
|
464
|
+
Ve.call(f, A) && !pn.hasOwnProperty(A) && (P[A] = f[A]);
|
|
465
465
|
if (s && s.defaultProps) {
|
|
466
466
|
var L = s.defaultProps;
|
|
467
467
|
for (A in L)
|
|
@@ -477,7 +477,7 @@ function Dn() {
|
|
|
477
477
|
var jt = j.ReactCurrentOwner, tr = j.ReactDebugCurrentFrame;
|
|
478
478
|
function ke(s) {
|
|
479
479
|
if (s) {
|
|
480
|
-
var
|
|
480
|
+
var f = s._owner, x = Je(s.type, s._source, f ? f.type : null);
|
|
481
481
|
tr.setExtraStackFrame(x);
|
|
482
482
|
} else
|
|
483
483
|
tr.setExtraStackFrame(null);
|
|
@@ -505,22 +505,22 @@ Check the render method of \`` + s + "`.";
|
|
|
505
505
|
var nr = {};
|
|
506
506
|
function Sn(s) {
|
|
507
507
|
{
|
|
508
|
-
var
|
|
509
|
-
if (!
|
|
508
|
+
var f = rr();
|
|
509
|
+
if (!f) {
|
|
510
510
|
var x = typeof s == "string" ? s : s.displayName || s.name;
|
|
511
|
-
x && (
|
|
511
|
+
x && (f = `
|
|
512
512
|
|
|
513
513
|
Check the top-level render call using <` + x + ">.");
|
|
514
514
|
}
|
|
515
|
-
return
|
|
515
|
+
return f;
|
|
516
516
|
}
|
|
517
517
|
}
|
|
518
|
-
function sr(s,
|
|
518
|
+
function sr(s, f) {
|
|
519
519
|
{
|
|
520
520
|
if (!s._store || s._store.validated || s.key != null)
|
|
521
521
|
return;
|
|
522
522
|
s._store.validated = !0;
|
|
523
|
-
var x = Sn(
|
|
523
|
+
var x = Sn(f);
|
|
524
524
|
if (nr[x])
|
|
525
525
|
return;
|
|
526
526
|
nr[x] = !0;
|
|
@@ -528,54 +528,54 @@ Check the top-level render call using <` + x + ">.");
|
|
|
528
528
|
s && s._owner && s._owner !== jt.current && (C = " It was passed a child from " + X(s._owner.type) + "."), ke(s), w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', x, C), ke(null);
|
|
529
529
|
}
|
|
530
530
|
}
|
|
531
|
-
function or(s,
|
|
531
|
+
function or(s, f) {
|
|
532
532
|
{
|
|
533
533
|
if (typeof s != "object")
|
|
534
534
|
return;
|
|
535
535
|
if (bt(s))
|
|
536
536
|
for (var x = 0; x < s.length; x++) {
|
|
537
537
|
var C = s[x];
|
|
538
|
-
Et(C) && sr(C,
|
|
538
|
+
Et(C) && sr(C, f);
|
|
539
539
|
}
|
|
540
540
|
else if (Et(s))
|
|
541
541
|
s._store && (s._store.validated = !0);
|
|
542
542
|
else if (s) {
|
|
543
|
-
var O =
|
|
543
|
+
var O = y(s);
|
|
544
544
|
if (typeof O == "function" && O !== s.entries)
|
|
545
545
|
for (var A = O.call(s), P; !(P = A.next()).done; )
|
|
546
|
-
Et(P.value) && sr(P.value,
|
|
546
|
+
Et(P.value) && sr(P.value, f);
|
|
547
547
|
}
|
|
548
548
|
}
|
|
549
549
|
}
|
|
550
550
|
function En(s) {
|
|
551
551
|
{
|
|
552
|
-
var
|
|
553
|
-
if (
|
|
552
|
+
var f = s.type;
|
|
553
|
+
if (f == null || typeof f == "string")
|
|
554
554
|
return;
|
|
555
555
|
var x;
|
|
556
|
-
if (typeof
|
|
557
|
-
x =
|
|
558
|
-
else if (typeof
|
|
556
|
+
if (typeof f == "function")
|
|
557
|
+
x = f.propTypes;
|
|
558
|
+
else if (typeof f == "object" && (f.$$typeof === l || // Note: Memo only checks outer props here.
|
|
559
559
|
// Inner props are checked in the reconciler.
|
|
560
|
-
|
|
561
|
-
x =
|
|
560
|
+
f.$$typeof === d))
|
|
561
|
+
x = f.propTypes;
|
|
562
562
|
else
|
|
563
563
|
return;
|
|
564
564
|
if (x) {
|
|
565
|
-
var C = X(
|
|
565
|
+
var C = X(f);
|
|
566
566
|
un(x, s.props, "prop", C, s);
|
|
567
|
-
} else if (
|
|
567
|
+
} else if (f.PropTypes !== void 0 && !St) {
|
|
568
568
|
St = !0;
|
|
569
|
-
var O = X(
|
|
569
|
+
var O = X(f);
|
|
570
570
|
w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", O || "Unknown");
|
|
571
571
|
}
|
|
572
|
-
typeof
|
|
572
|
+
typeof f.getDefaultProps == "function" && !f.getDefaultProps.isReactClassApproved && w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
573
573
|
}
|
|
574
574
|
}
|
|
575
575
|
function Cn(s) {
|
|
576
576
|
{
|
|
577
|
-
for (var
|
|
578
|
-
var C =
|
|
577
|
+
for (var f = Object.keys(s.props), x = 0; x < f.length; x++) {
|
|
578
|
+
var C = f[x];
|
|
579
579
|
if (C !== "children" && C !== "key") {
|
|
580
580
|
ke(s), w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", C), ke(null);
|
|
581
581
|
break;
|
|
@@ -585,7 +585,7 @@ Check the top-level render call using <` + x + ">.");
|
|
|
585
585
|
}
|
|
586
586
|
}
|
|
587
587
|
var ar = {};
|
|
588
|
-
function ir(s,
|
|
588
|
+
function ir(s, f, x, C, O, A) {
|
|
589
589
|
{
|
|
590
590
|
var P = yt(s);
|
|
591
591
|
if (!P) {
|
|
@@ -596,11 +596,11 @@ Check the top-level render call using <` + x + ">.");
|
|
|
596
596
|
var L;
|
|
597
597
|
s === null ? L = "null" : bt(s) ? L = "array" : s !== void 0 && s.$$typeof === t ? (L = "<" + (X(s.type) || "Unknown") + " />", _ = " Did you accidentally export a JSX literal instead of a component?") : L = typeof s, w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", L, _);
|
|
598
598
|
}
|
|
599
|
-
var z = wn(s,
|
|
599
|
+
var z = wn(s, f, x, O, A);
|
|
600
600
|
if (z == null)
|
|
601
601
|
return z;
|
|
602
602
|
if (P) {
|
|
603
|
-
var Q =
|
|
603
|
+
var Q = f.children;
|
|
604
604
|
if (Q !== void 0)
|
|
605
605
|
if (C)
|
|
606
606
|
if (bt(Q)) {
|
|
@@ -612,8 +612,8 @@ Check the top-level render call using <` + x + ">.");
|
|
|
612
612
|
else
|
|
613
613
|
or(Q, s);
|
|
614
614
|
}
|
|
615
|
-
if (Ve.call(
|
|
616
|
-
var ye = X(s), G = Object.keys(
|
|
615
|
+
if (Ve.call(f, "key")) {
|
|
616
|
+
var ye = X(s), G = Object.keys(f).filter(function(On) {
|
|
617
617
|
return On !== "key";
|
|
618
618
|
}), Ct = G.length > 0 ? "{key: someKey, " + G.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
619
619
|
if (!ar[ye + Ct]) {
|
|
@@ -629,11 +629,11 @@ React keys must be passed directly to JSX without using spread:
|
|
|
629
629
|
return s === n ? Cn(z) : En(z), z;
|
|
630
630
|
}
|
|
631
631
|
}
|
|
632
|
-
function Rn(s,
|
|
633
|
-
return ir(s,
|
|
632
|
+
function Rn(s, f, x) {
|
|
633
|
+
return ir(s, f, x, !0);
|
|
634
634
|
}
|
|
635
|
-
function Nn(s,
|
|
636
|
-
return ir(s,
|
|
635
|
+
function Nn(s, f, x) {
|
|
636
|
+
return ir(s, f, x, !1);
|
|
637
637
|
}
|
|
638
638
|
var kn = Nn, _n = Rn;
|
|
639
639
|
Ue.Fragment = n, Ue.jsx = kn, Ue.jsxs = _n;
|
|
@@ -689,15 +689,15 @@ const fo = ({
|
|
|
689
689
|
positionicon: c = 1,
|
|
690
690
|
disabled: u = !1
|
|
691
691
|
}) => {
|
|
692
|
-
const l = (
|
|
693
|
-
|
|
692
|
+
const l = (g) => {
|
|
693
|
+
g.stopPropagation(), t && t(g);
|
|
694
694
|
};
|
|
695
695
|
return /* @__PURE__ */ a.jsxs(
|
|
696
696
|
"button",
|
|
697
697
|
{
|
|
698
698
|
disabled: u,
|
|
699
699
|
type: "submit",
|
|
700
|
-
onClick: (
|
|
700
|
+
onClick: (g) => l(g),
|
|
701
701
|
className: e,
|
|
702
702
|
children: [
|
|
703
703
|
r && /* @__PURE__ */ a.jsx(Tr, { ...r }),
|
|
@@ -767,7 +767,7 @@ var zn = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|def
|
|
|
767
767
|
/* Z+1 */
|
|
768
768
|
), M = "-ms-", Ge = "-moz-", I = "-webkit-", Dr = "comm", ft = "rule", Vt = "decl", Vn = "@import", Mr = "@keyframes", Bn = "@layer", Fr = Math.abs, Bt = String.fromCharCode, Ot = Object.assign;
|
|
769
769
|
function Yn(e, t) {
|
|
770
|
-
return
|
|
770
|
+
return B(e, 0) ^ 45 ? (((t << 2 ^ B(e, 0)) << 2 ^ B(e, 1)) << 2 ^ B(e, 2)) << 2 ^ B(e, 3) : 0;
|
|
771
771
|
}
|
|
772
772
|
function Lr(e) {
|
|
773
773
|
return e.trim();
|
|
@@ -781,7 +781,7 @@ function N(e, t, r) {
|
|
|
781
781
|
function nt(e, t, r) {
|
|
782
782
|
return e.indexOf(t, r);
|
|
783
783
|
}
|
|
784
|
-
function
|
|
784
|
+
function B(e, t) {
|
|
785
785
|
return e.charCodeAt(t) | 0;
|
|
786
786
|
}
|
|
787
787
|
function Te(e, t, r) {
|
|
@@ -820,13 +820,13 @@ function qn() {
|
|
|
820
820
|
return W;
|
|
821
821
|
}
|
|
822
822
|
function Gn() {
|
|
823
|
-
return W = Z > 0 ?
|
|
823
|
+
return W = Z > 0 ? B(Fe, --Z) : 0, Ae--, W === 10 && (Ae = 1, ht--), W;
|
|
824
824
|
}
|
|
825
825
|
function ne() {
|
|
826
|
-
return W = Z < Wr ?
|
|
826
|
+
return W = Z < Wr ? B(Fe, Z++) : 0, Ae++, W === 10 && (Ae = 1, ht++), W;
|
|
827
827
|
}
|
|
828
828
|
function we() {
|
|
829
|
-
return
|
|
829
|
+
return B(Fe, Z);
|
|
830
830
|
}
|
|
831
831
|
function st() {
|
|
832
832
|
return Z;
|
|
@@ -918,11 +918,11 @@ function es(e) {
|
|
|
918
918
|
return Xn(ot("", null, null, null, [""], e = Hn(e), 0, [0], e));
|
|
919
919
|
}
|
|
920
920
|
function ot(e, t, r, n, o, i, c, u, l) {
|
|
921
|
-
for (var
|
|
922
|
-
switch (
|
|
921
|
+
for (var g = 0, v = 0, d = c, h = 0, p = 0, m = 0, b = 1, y = 1, j = 1, w = 0, S = "", R = o, T = i, k = n, E = S; y; )
|
|
922
|
+
switch (m = w, w = ne()) {
|
|
923
923
|
case 40:
|
|
924
|
-
if (
|
|
925
|
-
nt(E += N(Rt(w), "&", "&\f"), "&\f", Fr(
|
|
924
|
+
if (m != 108 && B(E, d - 1) == 58) {
|
|
925
|
+
nt(E += N(Rt(w), "&", "&\f"), "&\f", Fr(g ? u[g - 1] : 0)) != -1 && (j = -1);
|
|
926
926
|
break;
|
|
927
927
|
}
|
|
928
928
|
case 34:
|
|
@@ -934,7 +934,7 @@ function ot(e, t, r, n, o, i, c, u, l) {
|
|
|
934
934
|
case 10:
|
|
935
935
|
case 13:
|
|
936
936
|
case 32:
|
|
937
|
-
E += Kn(
|
|
937
|
+
E += Kn(m);
|
|
938
938
|
break;
|
|
939
939
|
case 92:
|
|
940
940
|
E += Jn(st() - 1, 7);
|
|
@@ -949,68 +949,68 @@ function ot(e, t, r, n, o, i, c, u, l) {
|
|
|
949
949
|
E += "/";
|
|
950
950
|
}
|
|
951
951
|
break;
|
|
952
|
-
case 123 *
|
|
953
|
-
u[
|
|
954
|
-
case 125 *
|
|
952
|
+
case 123 * b:
|
|
953
|
+
u[g++] = oe(E) * j;
|
|
954
|
+
case 125 * b:
|
|
955
955
|
case 59:
|
|
956
956
|
case 0:
|
|
957
957
|
switch (w) {
|
|
958
958
|
case 0:
|
|
959
959
|
case 125:
|
|
960
|
-
|
|
960
|
+
y = 0;
|
|
961
961
|
case 59 + v:
|
|
962
|
-
j == -1 && (E = N(E, /\f/g, "")),
|
|
962
|
+
j == -1 && (E = N(E, /\f/g, "")), p > 0 && oe(E) - d && qe(p > 32 ? hr(E + ";", n, r, d - 1, l) : hr(N(E, " ", "") + ";", n, r, d - 2, l), l);
|
|
963
963
|
break;
|
|
964
964
|
case 59:
|
|
965
965
|
E += ";";
|
|
966
966
|
default:
|
|
967
|
-
if (qe(k = fr(E, t, r,
|
|
967
|
+
if (qe(k = fr(E, t, r, g, v, o, u, S, R = [], T = [], d, i), i), w === 123)
|
|
968
968
|
if (v === 0)
|
|
969
|
-
ot(E, t, k, k, R, i,
|
|
969
|
+
ot(E, t, k, k, R, i, d, u, T);
|
|
970
970
|
else
|
|
971
|
-
switch (
|
|
971
|
+
switch (h === 99 && B(E, 3) === 110 ? 100 : h) {
|
|
972
972
|
case 100:
|
|
973
973
|
case 108:
|
|
974
974
|
case 109:
|
|
975
975
|
case 115:
|
|
976
|
-
ot(e, k, k, n && qe(fr(e, k, k, 0, 0, o, u, S, o, R = [],
|
|
976
|
+
ot(e, k, k, n && qe(fr(e, k, k, 0, 0, o, u, S, o, R = [], d, T), T), o, T, d, u, n ? R : T);
|
|
977
977
|
break;
|
|
978
978
|
default:
|
|
979
979
|
ot(E, k, k, k, [""], T, 0, u, T);
|
|
980
980
|
}
|
|
981
981
|
}
|
|
982
|
-
|
|
982
|
+
g = v = p = 0, b = j = 1, S = E = "", d = c;
|
|
983
983
|
break;
|
|
984
984
|
case 58:
|
|
985
|
-
|
|
985
|
+
d = 1 + oe(E), p = m;
|
|
986
986
|
default:
|
|
987
|
-
if (
|
|
987
|
+
if (b < 1) {
|
|
988
988
|
if (w == 123)
|
|
989
|
-
--
|
|
990
|
-
else if (w == 125 &&
|
|
989
|
+
--b;
|
|
990
|
+
else if (w == 125 && b++ == 0 && Gn() == 125)
|
|
991
991
|
continue;
|
|
992
992
|
}
|
|
993
|
-
switch (E += Bt(w), w *
|
|
993
|
+
switch (E += Bt(w), w * b) {
|
|
994
994
|
case 38:
|
|
995
995
|
j = v > 0 ? 1 : (E += "\f", -1);
|
|
996
996
|
break;
|
|
997
997
|
case 44:
|
|
998
|
-
u[
|
|
998
|
+
u[g++] = (oe(E) - 1) * j, j = 1;
|
|
999
999
|
break;
|
|
1000
1000
|
case 64:
|
|
1001
|
-
we() === 45 && (E += Rt(ne())),
|
|
1001
|
+
we() === 45 && (E += Rt(ne())), h = we(), v = d = oe(S = E += Zn(st())), w++;
|
|
1002
1002
|
break;
|
|
1003
1003
|
case 45:
|
|
1004
|
-
|
|
1004
|
+
m === 45 && oe(E) == 2 && (b = 0);
|
|
1005
1005
|
}
|
|
1006
1006
|
}
|
|
1007
1007
|
return i;
|
|
1008
1008
|
}
|
|
1009
|
-
function fr(e, t, r, n, o, i, c, u, l,
|
|
1010
|
-
for (var
|
|
1011
|
-
for (var w = 0, S = Te(e,
|
|
1012
|
-
(R = Lr(
|
|
1013
|
-
return pt(e, t, r, o === 0 ? ft : u, l,
|
|
1009
|
+
function fr(e, t, r, n, o, i, c, u, l, g, v, d) {
|
|
1010
|
+
for (var h = o - 1, p = o === 0 ? i : [""], m = zr(p), b = 0, y = 0, j = 0; b < n; ++b)
|
|
1011
|
+
for (var w = 0, S = Te(e, h + 1, h = Fr(y = c[b])), R = e; w < m; ++w)
|
|
1012
|
+
(R = Lr(y > 0 ? p[w] + " " + S : N(S, /&\f/g, p[w]))) && (l[j++] = R);
|
|
1013
|
+
return pt(e, t, r, o === 0 ? ft : u, l, g, v, d);
|
|
1014
1014
|
}
|
|
1015
1015
|
function ts(e, t, r, n) {
|
|
1016
1016
|
return pt(e, t, r, Dr, Bt(qn()), Te(e, 2, -2), 0, n);
|
|
@@ -1057,7 +1057,7 @@ function Vr(e, t, r) {
|
|
|
1057
1057
|
case 2756:
|
|
1058
1058
|
return I + e + Ge + e + M + e + e;
|
|
1059
1059
|
case 5936:
|
|
1060
|
-
switch (
|
|
1060
|
+
switch (B(e, t + 11)) {
|
|
1061
1061
|
case 114:
|
|
1062
1062
|
return I + e + M + N(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
|
|
1063
1063
|
case 108:
|
|
@@ -1126,29 +1126,29 @@ function Vr(e, t, r) {
|
|
|
1126
1126
|
case 5021:
|
|
1127
1127
|
case 4765:
|
|
1128
1128
|
if (oe(e) - 1 - t > 6)
|
|
1129
|
-
switch (
|
|
1129
|
+
switch (B(e, t + 1)) {
|
|
1130
1130
|
case 109:
|
|
1131
|
-
if (
|
|
1131
|
+
if (B(e, t + 4) !== 45)
|
|
1132
1132
|
break;
|
|
1133
1133
|
case 102:
|
|
1134
|
-
return N(e, /(.+:)(.+)-([^]+)/, "$1" + I + "$2-$3$1" + Ge + (
|
|
1134
|
+
return N(e, /(.+:)(.+)-([^]+)/, "$1" + I + "$2-$3$1" + Ge + (B(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
|
|
1135
1135
|
case 115:
|
|
1136
1136
|
return ~nt(e, "stretch", 0) ? Vr(N(e, "stretch", "fill-available"), t, r) + e : e;
|
|
1137
1137
|
}
|
|
1138
1138
|
break;
|
|
1139
1139
|
case 5152:
|
|
1140
1140
|
case 5920:
|
|
1141
|
-
return N(e, /(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/, function(n, o, i, c, u, l,
|
|
1142
|
-
return M + o + ":" + i +
|
|
1141
|
+
return N(e, /(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/, function(n, o, i, c, u, l, g) {
|
|
1142
|
+
return M + o + ":" + i + g + (c ? M + o + "-span:" + (u ? l : +l - +i) + g : "") + e;
|
|
1143
1143
|
});
|
|
1144
1144
|
case 4949:
|
|
1145
|
-
if (
|
|
1145
|
+
if (B(e, t + 6) === 121)
|
|
1146
1146
|
return N(e, ":", ":" + I) + e;
|
|
1147
1147
|
break;
|
|
1148
1148
|
case 6444:
|
|
1149
|
-
switch (
|
|
1149
|
+
switch (B(e, B(e, 14) === 45 ? 18 : 11)) {
|
|
1150
1150
|
case 120:
|
|
1151
|
-
return N(e, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, "$1" + I + (
|
|
1151
|
+
return N(e, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, "$1" + I + (B(e, 14) === 45 ? "inline-" : "") + "box$3$1" + I + "$2$3$1" + M + "$2box$3") + e;
|
|
1152
1152
|
case 100:
|
|
1153
1153
|
return N(e, ":", ":" + M) + e;
|
|
1154
1154
|
}
|
|
@@ -1334,9 +1334,9 @@ function Jr(e, t, r) {
|
|
|
1334
1334
|
for (var i = vr(e), c = vr(t), u = 0; u < o.length; ++u) {
|
|
1335
1335
|
var l = o[u];
|
|
1336
1336
|
if (!(l in gs || r && r[l] || c && l in c || i && l in i)) {
|
|
1337
|
-
var
|
|
1337
|
+
var g = bs(t, l);
|
|
1338
1338
|
try {
|
|
1339
|
-
ys(e, l,
|
|
1339
|
+
ys(e, l, g);
|
|
1340
1340
|
} catch {
|
|
1341
1341
|
}
|
|
1342
1342
|
}
|
|
@@ -1465,8 +1465,8 @@ var Es = function() {
|
|
|
1465
1465
|
if (u) {
|
|
1466
1466
|
var l = u.match(ks);
|
|
1467
1467
|
if (l) {
|
|
1468
|
-
var
|
|
1469
|
-
|
|
1468
|
+
var g = 0 | parseInt(l[1], 10), v = l[2];
|
|
1469
|
+
g !== 0 && (Rs(v, g), _s(e, v, l[3]), e.getTag().insertRules(g, o)), o.length = 0;
|
|
1470
1470
|
} else o.push(u);
|
|
1471
1471
|
}
|
|
1472
1472
|
}
|
|
@@ -1542,18 +1542,18 @@ var Qr = function(e) {
|
|
|
1542
1542
|
var o = this;
|
|
1543
1543
|
this.options = H(H({}, $s), t), this.gs = r, this.names = new Map(n), this.server = !!t.isServer, !this.server && ut && jr && (jr = !1, wr(this)), qt(this, function() {
|
|
1544
1544
|
return function(i) {
|
|
1545
|
-
for (var c = i.getTag(), u = c.length, l = "",
|
|
1546
|
-
var
|
|
1545
|
+
for (var c = i.getTag(), u = c.length, l = "", g = function(d) {
|
|
1546
|
+
var h = function(j) {
|
|
1547
1547
|
return dt.get(j);
|
|
1548
|
-
}(
|
|
1549
|
-
if (
|
|
1550
|
-
var
|
|
1551
|
-
if (
|
|
1552
|
-
var
|
|
1553
|
-
|
|
1554
|
-
j.length > 0 && (
|
|
1555
|
-
}), l += "".concat(
|
|
1556
|
-
}, v = 0; v < u; v++)
|
|
1548
|
+
}(d);
|
|
1549
|
+
if (h === void 0) return "continue";
|
|
1550
|
+
var p = i.names.get(h), m = c.getGroup(d);
|
|
1551
|
+
if (p === void 0 || !p.size || m.length === 0) return "continue";
|
|
1552
|
+
var b = "".concat(Se, ".g").concat(d, '[id="').concat(h, '"]'), y = "";
|
|
1553
|
+
p !== void 0 && p.forEach(function(j) {
|
|
1554
|
+
j.length > 0 && (y += "".concat(j, ","));
|
|
1555
|
+
}), l += "".concat(m).concat(b, '{content:"').concat(y, '"}').concat(Yt);
|
|
1556
|
+
}, v = 0; v < u; v++) g(v);
|
|
1557
1557
|
return l;
|
|
1558
1558
|
}(o);
|
|
1559
1559
|
});
|
|
@@ -1598,24 +1598,24 @@ function en(e, t) {
|
|
|
1598
1598
|
});
|
|
1599
1599
|
}
|
|
1600
1600
|
function Fs(e) {
|
|
1601
|
-
var t, r, n, o = $e, i = o.options, c = i === void 0 ? $e : i, u = o.plugins, l = u === void 0 ? vt : u,
|
|
1602
|
-
return
|
|
1601
|
+
var t, r, n, o = $e, i = o.options, c = i === void 0 ? $e : i, u = o.plugins, l = u === void 0 ? vt : u, g = function(h, p, m) {
|
|
1602
|
+
return m.startsWith(r) && m.endsWith(r) && m.replaceAll(r, "").length > 0 ? ".".concat(t) : h;
|
|
1603
1603
|
}, v = l.slice();
|
|
1604
|
-
v.push(function(
|
|
1605
|
-
|
|
1604
|
+
v.push(function(h) {
|
|
1605
|
+
h.type === ft && h.value.includes("&") && (h.props[0] = h.props[0].replace(Ds, r).replace(n, g));
|
|
1606
1606
|
}), c.prefix && v.push(os), v.push(rs);
|
|
1607
|
-
var
|
|
1608
|
-
|
|
1609
|
-
var
|
|
1607
|
+
var d = function(h, p, m, b) {
|
|
1608
|
+
p === void 0 && (p = ""), m === void 0 && (m = ""), b === void 0 && (b = "&"), t = b, r = p, n = new RegExp("\\".concat(r, "\\b"), "g");
|
|
1609
|
+
var y = h.replace(Ms, ""), j = es(m || p ? "".concat(m, " ").concat(p, " { ").concat(y, " }") : y);
|
|
1610
1610
|
c.namespace && (j = en(j, c.namespace));
|
|
1611
1611
|
var w = [];
|
|
1612
1612
|
return lt(j, ns(v.concat(ss(function(S) {
|
|
1613
1613
|
return w.push(S);
|
|
1614
1614
|
})))), w;
|
|
1615
1615
|
};
|
|
1616
|
-
return
|
|
1617
|
-
return
|
|
1618
|
-
}, Ur).toString() : "",
|
|
1616
|
+
return d.hash = l.length ? l.reduce(function(h, p) {
|
|
1617
|
+
return p.name || Le(15), xe(h, p.name);
|
|
1618
|
+
}, Ur).toString() : "", d;
|
|
1619
1619
|
}
|
|
1620
1620
|
var Ls = new Zr(), Mt = Fs(), tn = ie.createContext({ shouldForwardProp: void 0, styleSheet: Ls, stylis: Mt });
|
|
1621
1621
|
tn.Consumer;
|
|
@@ -1694,17 +1694,17 @@ var Vs = qr(gt), Bs = function() {
|
|
|
1694
1694
|
o = be(o, c), this.staticRulesId = c;
|
|
1695
1695
|
}
|
|
1696
1696
|
else {
|
|
1697
|
-
for (var l = xe(this.baseHash, n.hash),
|
|
1698
|
-
var
|
|
1699
|
-
if (typeof
|
|
1700
|
-
else if (
|
|
1701
|
-
var
|
|
1702
|
-
l = xe(l,
|
|
1697
|
+
for (var l = xe(this.baseHash, n.hash), g = "", v = 0; v < this.rules.length; v++) {
|
|
1698
|
+
var d = this.rules[v];
|
|
1699
|
+
if (typeof d == "string") g += d, process.env.NODE_ENV !== "production" && (l = xe(l, d));
|
|
1700
|
+
else if (d) {
|
|
1701
|
+
var h = br(je(d, t, r, n));
|
|
1702
|
+
l = xe(l, h + v), g += h;
|
|
1703
1703
|
}
|
|
1704
1704
|
}
|
|
1705
|
-
if (
|
|
1706
|
-
var
|
|
1707
|
-
r.hasNameForId(this.componentId,
|
|
1705
|
+
if (g) {
|
|
1706
|
+
var p = $t(l >>> 0);
|
|
1707
|
+
r.hasNameForId(this.componentId, p) || r.insertRules(this.componentId, p, n(g, ".".concat(p), void 0, this.componentId)), o = be(o, p);
|
|
1708
1708
|
}
|
|
1709
1709
|
}
|
|
1710
1710
|
return o;
|
|
@@ -1713,26 +1713,26 @@ var Vs = qr(gt), Bs = function() {
|
|
|
1713
1713
|
sn.Consumer;
|
|
1714
1714
|
var _t = {}, Rr = /* @__PURE__ */ new Set();
|
|
1715
1715
|
function Ys(e, t, r) {
|
|
1716
|
-
var n = Ut(e), o = e, i = !kt(e), c = t.attrs, u = c === void 0 ? vt : c, l = t.componentId,
|
|
1716
|
+
var n = Ut(e), o = e, i = !kt(e), c = t.attrs, u = c === void 0 ? vt : c, l = t.componentId, g = l === void 0 ? function(R, T) {
|
|
1717
1717
|
var k = typeof R != "string" ? "sc" : mr(R);
|
|
1718
1718
|
_t[k] = (_t[k] || 0) + 1;
|
|
1719
1719
|
var E = "".concat(k, "-").concat(hs(gt + k + _t[k]));
|
|
1720
1720
|
return T ? "".concat(T, "-").concat(E) : E;
|
|
1721
|
-
}(t.displayName, t.parentComponentId) : l, v = t.displayName,
|
|
1721
|
+
}(t.displayName, t.parentComponentId) : l, v = t.displayName, d = v === void 0 ? function(R) {
|
|
1722
1722
|
return kt(R) ? "styled.".concat(R) : "Styled(".concat(Gr(R), ")");
|
|
1723
|
-
}(e) : v,
|
|
1723
|
+
}(e) : v, h = t.displayName && t.componentId ? "".concat(mr(t.displayName), "-").concat(t.componentId) : t.componentId || g, p = n && o.attrs ? o.attrs.concat(u).filter(Boolean) : u, m = t.shouldForwardProp;
|
|
1724
1724
|
if (n && o.shouldForwardProp) {
|
|
1725
|
-
var
|
|
1725
|
+
var b = o.shouldForwardProp;
|
|
1726
1726
|
if (t.shouldForwardProp) {
|
|
1727
|
-
var
|
|
1728
|
-
|
|
1729
|
-
return
|
|
1727
|
+
var y = t.shouldForwardProp;
|
|
1728
|
+
m = function(R, T) {
|
|
1729
|
+
return b(R, T) && y(R, T);
|
|
1730
1730
|
};
|
|
1731
|
-
} else
|
|
1731
|
+
} else m = b;
|
|
1732
1732
|
}
|
|
1733
|
-
var j = new Bs(r,
|
|
1733
|
+
var j = new Bs(r, h, n ? o.componentStyle : void 0);
|
|
1734
1734
|
function w(R, T) {
|
|
1735
|
-
return function(k, E,
|
|
1735
|
+
return function(k, E, V) {
|
|
1736
1736
|
var K = k.attrs, yt = k.componentStyle, xt = k.defaultProps, Xe = k.foldedComponentIds, X = k.styledComponentId, ce = k.target, ve = ie.useContext(sn), Ke = Sr(), Ee = k.shouldForwardProp || Ke.shouldForwardProp;
|
|
1737
1737
|
process.env.NODE_ENV !== "production" && cr(X);
|
|
1738
1738
|
var ze = ls(E, ve, xt) || $e, J = function(Re, le, he) {
|
|
@@ -1749,23 +1749,23 @@ function Ys(e, t, r) {
|
|
|
1749
1749
|
}(yt, J);
|
|
1750
1750
|
process.env.NODE_ENV !== "production" && k.warnTooManyClasses && k.warnTooManyClasses(Ce);
|
|
1751
1751
|
var We = be(Xe, X);
|
|
1752
|
-
return Ce && (We += " " + Ce), J.className && (We += " " + J.className), fe[kt(de) && !At.has(de) ? "class" : "className"] = We, fe.ref =
|
|
1752
|
+
return Ce && (We += " " + Ce), J.className && (We += " " + J.className), fe[kt(de) && !At.has(de) ? "class" : "className"] = We, fe.ref = V, Tn(de, fe);
|
|
1753
1753
|
}(S, R, T);
|
|
1754
1754
|
}
|
|
1755
|
-
w.displayName =
|
|
1755
|
+
w.displayName = d;
|
|
1756
1756
|
var S = ie.forwardRef(w);
|
|
1757
|
-
return S.attrs =
|
|
1757
|
+
return S.attrs = p, S.componentStyle = j, S.displayName = d, S.shouldForwardProp = m, S.foldedComponentIds = n ? be(o.foldedComponentIds, o.styledComponentId) : "", S.styledComponentId = h, S.target = n ? o.target : e, Object.defineProperty(S, "defaultProps", { get: function() {
|
|
1758
1758
|
return this._foldedDefaultProps;
|
|
1759
1759
|
}, set: function(R) {
|
|
1760
1760
|
this._foldedDefaultProps = n ? function(T) {
|
|
1761
1761
|
for (var k = [], E = 1; E < arguments.length; E++) k[E - 1] = arguments[E];
|
|
1762
|
-
for (var
|
|
1762
|
+
for (var V = 0, K = k; V < K.length; V++) Dt(T, K[V], !0);
|
|
1763
1763
|
return T;
|
|
1764
1764
|
}({}, o.defaultProps, R) : R;
|
|
1765
|
-
} }), process.env.NODE_ENV !== "production" && (cs(
|
|
1765
|
+
} }), process.env.NODE_ENV !== "production" && (cs(d, h), S.warnTooManyClasses = /* @__PURE__ */ function(R, T) {
|
|
1766
1766
|
var k = {}, E = !1;
|
|
1767
|
-
return function(
|
|
1768
|
-
if (!E && (k[
|
|
1767
|
+
return function(V) {
|
|
1768
|
+
if (!E && (k[V] = !0, Object.keys(k).length >= 200)) {
|
|
1769
1769
|
var K = T ? ' with the id of "'.concat(T, '"') : "";
|
|
1770
1770
|
console.warn("Over ".concat(200, " classes were generated for component ").concat(R).concat(K, `.
|
|
1771
1771
|
`) + `Consider using the attrs method, together with a style object for frequently changed styles.
|
|
@@ -1779,7 +1779,7 @@ Example:
|
|
|
1779
1779
|
<Component />`), E = !0, k = {};
|
|
1780
1780
|
}
|
|
1781
1781
|
};
|
|
1782
|
-
}(
|
|
1782
|
+
}(d, h)), qt(S, function() {
|
|
1783
1783
|
return ".".concat(S.styledComponentId);
|
|
1784
1784
|
}), i && Jr(S, e, { attrs: !0, componentStyle: !0, displayName: !0, foldedComponentIds: !0, shouldForwardProp: !0, styledComponentId: !0, target: !0 }), S;
|
|
1785
1785
|
}
|
|
@@ -1840,22 +1840,22 @@ const Us = Gt.div`
|
|
|
1840
1840
|
show: o,
|
|
1841
1841
|
closeOverlay: i
|
|
1842
1842
|
}, c) => {
|
|
1843
|
-
const { activeOverlayId: u, setActiveOverlay: l } = Fn(), [
|
|
1843
|
+
const { activeOverlayId: u, setActiveOverlay: l } = Fn(), [g, v] = F(o || !1), [d, h] = F(
|
|
1844
1844
|
r ?? { top: 0, left: 0 }
|
|
1845
|
-
),
|
|
1845
|
+
), p = se(null), m = An();
|
|
1846
1846
|
zt(c, () => ({
|
|
1847
|
-
setCoords:
|
|
1847
|
+
setCoords: h
|
|
1848
1848
|
})), Y(() => {
|
|
1849
|
-
u !==
|
|
1850
|
-
}, [u,
|
|
1849
|
+
u !== m && v(!1);
|
|
1850
|
+
}, [u, m]), Y(() => {
|
|
1851
1851
|
const j = () => {
|
|
1852
1852
|
var w;
|
|
1853
1853
|
if (!t && r)
|
|
1854
|
-
|
|
1854
|
+
h(r);
|
|
1855
1855
|
else if (e) {
|
|
1856
|
-
const S = e.getBoundingClientRect(), R = (w =
|
|
1856
|
+
const S = e.getBoundingClientRect(), R = (w = p.current) == null ? void 0 : w.getBoundingClientRect(), { innerWidth: T, innerHeight: k } = window;
|
|
1857
1857
|
if (R) {
|
|
1858
|
-
let E,
|
|
1858
|
+
let E, V;
|
|
1859
1859
|
const K = {
|
|
1860
1860
|
topRight: () => ({
|
|
1861
1861
|
top: S.top - R.height,
|
|
@@ -1882,15 +1882,15 @@ const Us = Gt.div`
|
|
|
1882
1882
|
left: S.right
|
|
1883
1883
|
})
|
|
1884
1884
|
};
|
|
1885
|
-
t && K[t] ? { top: E, left:
|
|
1885
|
+
t && K[t] ? { top: E, left: V } = K[t]() : (V = S.right, E = S.bottom, S.right + R.width > T && (V = S.left - R.width), S.bottom + R.height > k && (E = S.top - R.height)), h({ top: E, left: V < 0 ? 0 : V });
|
|
1886
1886
|
}
|
|
1887
1887
|
}
|
|
1888
1888
|
};
|
|
1889
|
-
return
|
|
1890
|
-
}, [e,
|
|
1891
|
-
const
|
|
1892
|
-
v(!0), l(
|
|
1893
|
-
},
|
|
1889
|
+
return g && (j(), window.addEventListener("resize", j)), () => window.removeEventListener("resize", j);
|
|
1890
|
+
}, [e, g, t]);
|
|
1891
|
+
const b = () => {
|
|
1892
|
+
v(!0), l(m);
|
|
1893
|
+
}, y = D(
|
|
1894
1894
|
(j) => {
|
|
1895
1895
|
j.stopPropagation(), v(!1), l(null), i && i(!1);
|
|
1896
1896
|
},
|
|
@@ -1898,20 +1898,20 @@ const Us = Gt.div`
|
|
|
1898
1898
|
);
|
|
1899
1899
|
return Y(() => {
|
|
1900
1900
|
const j = (w) => {
|
|
1901
|
-
|
|
1901
|
+
p.current && !p.current.contains(w.target) && y(w);
|
|
1902
1902
|
};
|
|
1903
|
-
return
|
|
1903
|
+
return g && document.addEventListener("mousedown", j), () => {
|
|
1904
1904
|
document.removeEventListener("mousedown", j);
|
|
1905
1905
|
};
|
|
1906
|
-
}, [
|
|
1907
|
-
o &&
|
|
1908
|
-
}, [o]),
|
|
1909
|
-
/* @__PURE__ */ a.jsx(Us, { ref:
|
|
1906
|
+
}, [g, y]), Y(() => {
|
|
1907
|
+
o && b();
|
|
1908
|
+
}, [o]), g ? Wt.createPortal(
|
|
1909
|
+
/* @__PURE__ */ a.jsx(Us, { ref: p, $top: d.top, $left: d.left, children: /* @__PURE__ */ a.jsxs(
|
|
1910
1910
|
"div",
|
|
1911
1911
|
{
|
|
1912
|
-
className: `overlayPanel ${
|
|
1912
|
+
className: `overlayPanel ${d.top > 0 || d.left > 0 ? "visible" : "hide"}`,
|
|
1913
1913
|
children: [
|
|
1914
|
-
/* @__PURE__ */ a.jsx("button", { className: "toggle-btn", onClick:
|
|
1914
|
+
/* @__PURE__ */ a.jsx("button", { className: "toggle-btn", onClick: y, children: /* @__PURE__ */ a.jsx($, { classIcon: "bi-x-lg" }) }),
|
|
1915
1915
|
n
|
|
1916
1916
|
]
|
|
1917
1917
|
}
|
|
@@ -1927,39 +1927,39 @@ const Us = Gt.div`
|
|
|
1927
1927
|
positionActions: o = "topRight",
|
|
1928
1928
|
disabled: i = !1
|
|
1929
1929
|
}) => {
|
|
1930
|
-
const c = (
|
|
1931
|
-
|
|
1932
|
-
}, u = se(null), [l,
|
|
1933
|
-
(
|
|
1934
|
-
|
|
1930
|
+
const c = (p) => {
|
|
1931
|
+
p.preventDefault(), t && t(p);
|
|
1932
|
+
}, u = se(null), [l, g] = F(!1), v = D(
|
|
1933
|
+
(p) => {
|
|
1934
|
+
p.stopPropagation(), n && g(!l);
|
|
1935
1935
|
},
|
|
1936
|
-
[l,
|
|
1937
|
-
),
|
|
1938
|
-
id:
|
|
1939
|
-
icon:
|
|
1940
|
-
name:
|
|
1936
|
+
[l, g]
|
|
1937
|
+
), d = Oe(() => n ? n.map((p, m) => ({
|
|
1938
|
+
id: p.id ?? m,
|
|
1939
|
+
icon: p.icon,
|
|
1940
|
+
name: p.label,
|
|
1941
1941
|
children: /* @__PURE__ */ a.jsx(
|
|
1942
1942
|
He,
|
|
1943
1943
|
{
|
|
1944
|
-
classIcon:
|
|
1944
|
+
classIcon: p.icon,
|
|
1945
1945
|
sizeIcon: ae.LARGE,
|
|
1946
|
-
onClick: (
|
|
1947
|
-
|
|
1946
|
+
onClick: (b) => {
|
|
1947
|
+
b.stopPropagation(), h(), p.onClick && p.onClick(p);
|
|
1948
1948
|
},
|
|
1949
|
-
title:
|
|
1949
|
+
title: p.label || ""
|
|
1950
1950
|
},
|
|
1951
|
-
|
|
1951
|
+
m
|
|
1952
1952
|
)
|
|
1953
|
-
})) : [], [n]),
|
|
1954
|
-
|
|
1955
|
-
}, [
|
|
1953
|
+
})) : [], [n]), h = D(() => {
|
|
1954
|
+
g(!1);
|
|
1955
|
+
}, [g]);
|
|
1956
1956
|
return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
1957
1957
|
/* @__PURE__ */ a.jsxs(
|
|
1958
1958
|
"button",
|
|
1959
1959
|
{
|
|
1960
1960
|
disabled: i,
|
|
1961
1961
|
type: "submit",
|
|
1962
|
-
onClick: (
|
|
1962
|
+
onClick: (p) => c(p),
|
|
1963
1963
|
className: ` ${e} button-actions`,
|
|
1964
1964
|
children: [
|
|
1965
1965
|
/* @__PURE__ */ a.jsx("span", { className: "mr-2 flex-1", children: r }),
|
|
@@ -1968,7 +1968,7 @@ const Us = Gt.div`
|
|
|
1968
1968
|
{
|
|
1969
1969
|
className: "ml-2",
|
|
1970
1970
|
ref: u,
|
|
1971
|
-
onClick: (
|
|
1971
|
+
onClick: (p) => v(p),
|
|
1972
1972
|
children: /* @__PURE__ */ a.jsx($, { classIcon: "bi-chevron-up" })
|
|
1973
1973
|
}
|
|
1974
1974
|
)
|
|
@@ -1980,9 +1980,9 @@ const Us = Gt.div`
|
|
|
1980
1980
|
{
|
|
1981
1981
|
show: l,
|
|
1982
1982
|
position: o,
|
|
1983
|
-
closeOverlay:
|
|
1983
|
+
closeOverlay: g,
|
|
1984
1984
|
referenceElement: u.current,
|
|
1985
|
-
children: /* @__PURE__ */ a.jsx("div", { children: /* @__PURE__ */ a.jsx(Ar, { className: "card-action-menu", items:
|
|
1985
|
+
children: /* @__PURE__ */ a.jsx("div", { children: /* @__PURE__ */ a.jsx(Ar, { className: "card-action-menu", items: d }) })
|
|
1986
1986
|
}
|
|
1987
1987
|
)
|
|
1988
1988
|
] });
|
|
@@ -1991,32 +1991,35 @@ const Us = Gt.div`
|
|
|
1991
1991
|
openActions: t,
|
|
1992
1992
|
item: r,
|
|
1993
1993
|
positions: n,
|
|
1994
|
-
|
|
1994
|
+
positionOverlay: o,
|
|
1995
|
+
setOpenActions: i
|
|
1995
1996
|
}) => {
|
|
1996
|
-
const
|
|
1997
|
+
const c = se(null), [u, l] = F(
|
|
1998
|
+
o
|
|
1999
|
+
), g = se(null), [v, d] = F(t ?? !1);
|
|
1997
2000
|
Y(() => {
|
|
1998
|
-
t &&
|
|
2001
|
+
t && d(t);
|
|
1999
2002
|
}, [t]);
|
|
2000
2003
|
const h = D(
|
|
2001
|
-
(
|
|
2002
|
-
e.length !== 0 && (
|
|
2004
|
+
(b, y) => {
|
|
2005
|
+
e.length !== 0 && (b.preventDefault(), console.log("je set la position"), l("bottomRight"), i && i(y));
|
|
2003
2006
|
},
|
|
2004
|
-
[
|
|
2005
|
-
),
|
|
2006
|
-
|
|
2007
|
-
}, [
|
|
2007
|
+
[l, i]
|
|
2008
|
+
), p = D(() => {
|
|
2009
|
+
l(void 0), d(!1), i && i(!1);
|
|
2010
|
+
}, [d, l, i]), m = Oe(() => e == null ? void 0 : e.filter((b) => b.type === "menu").map((b, y) => ({
|
|
2008
2011
|
id: y,
|
|
2009
|
-
icon:
|
|
2010
|
-
name:
|
|
2012
|
+
icon: b.icon,
|
|
2013
|
+
name: b.label,
|
|
2011
2014
|
children: /* @__PURE__ */ a.jsx(
|
|
2012
2015
|
He,
|
|
2013
2016
|
{
|
|
2014
|
-
classIcon:
|
|
2017
|
+
classIcon: b.icon,
|
|
2015
2018
|
sizeIcon: ae.LARGE,
|
|
2016
|
-
onClick: (
|
|
2017
|
-
|
|
2019
|
+
onClick: (j) => {
|
|
2020
|
+
j.stopPropagation(), p(), b.onClick && r && b.onClick(r);
|
|
2018
2021
|
},
|
|
2019
|
-
title:
|
|
2022
|
+
title: b.label || ""
|
|
2020
2023
|
},
|
|
2021
2024
|
y
|
|
2022
2025
|
)
|
|
@@ -2025,9 +2028,9 @@ const Us = Gt.div`
|
|
|
2025
2028
|
/* @__PURE__ */ a.jsxs(
|
|
2026
2029
|
"div",
|
|
2027
2030
|
{
|
|
2028
|
-
ref:
|
|
2029
|
-
className: `card-action ${e.filter((
|
|
2030
|
-
onClick: (
|
|
2031
|
+
ref: g,
|
|
2032
|
+
className: `card-action ${e.filter((b) => b.type === "menu").length ? "visible" : "hidden"}`,
|
|
2033
|
+
onClick: (b) => h(b, !v),
|
|
2031
2034
|
children: [
|
|
2032
2035
|
/* @__PURE__ */ a.jsx(
|
|
2033
2036
|
$,
|
|
@@ -2046,16 +2049,16 @@ const Us = Gt.div`
|
|
|
2046
2049
|
]
|
|
2047
2050
|
}
|
|
2048
2051
|
),
|
|
2049
|
-
|
|
2052
|
+
v && g.current && /* @__PURE__ */ a.jsx(
|
|
2050
2053
|
Ht,
|
|
2051
2054
|
{
|
|
2052
|
-
position:
|
|
2053
|
-
show:
|
|
2054
|
-
ref:
|
|
2055
|
-
closeOverlay:
|
|
2055
|
+
position: u,
|
|
2056
|
+
show: v,
|
|
2057
|
+
ref: c,
|
|
2058
|
+
closeOverlay: p,
|
|
2056
2059
|
coordonnees: n,
|
|
2057
|
-
referenceElement:
|
|
2058
|
-
children: /* @__PURE__ */ a.jsx("div", { children: /* @__PURE__ */ a.jsx(Ar, { className: "card-action-menu", items:
|
|
2060
|
+
referenceElement: g.current,
|
|
2061
|
+
children: /* @__PURE__ */ a.jsx("div", { children: /* @__PURE__ */ a.jsx(Ar, { className: "card-action-menu", items: m }) })
|
|
2059
2062
|
}
|
|
2060
2063
|
)
|
|
2061
2064
|
] });
|
|
@@ -2066,34 +2069,35 @@ const Us = Gt.div`
|
|
|
2066
2069
|
handleClick: n,
|
|
2067
2070
|
onClose: o,
|
|
2068
2071
|
customAction: i,
|
|
2069
|
-
|
|
2072
|
+
positionOverlay: c,
|
|
2073
|
+
children: u
|
|
2070
2074
|
}) => {
|
|
2071
|
-
const [
|
|
2072
|
-
y.stopPropagation(), o && o(
|
|
2073
|
-
},
|
|
2074
|
-
(y,
|
|
2075
|
-
if (y.stopPropagation(),
|
|
2076
|
-
return
|
|
2077
|
-
y.target.closest(".qte") || y.target.closest(".card-action-menu button") || y.target.closest(".card-actions") || (
|
|
2075
|
+
const [l, g] = F(!1), [v, d] = F(!1), [h, p] = F(), m = (y, j) => {
|
|
2076
|
+
y.stopPropagation(), o && o(j);
|
|
2077
|
+
}, b = D(
|
|
2078
|
+
(y, j) => {
|
|
2079
|
+
if (y.stopPropagation(), v)
|
|
2080
|
+
return p(void 0), d(!1);
|
|
2081
|
+
y.target.closest(".qte") || y.target.closest(".card-action-menu button") || y.target.closest(".card-actions") || (g(!l), n && y.button !== 2 ? n(j) : (p({ top: y.clientY, left: y.clientX }), d(!0)));
|
|
2078
2082
|
},
|
|
2079
2083
|
[
|
|
2080
|
-
|
|
2081
|
-
|
|
2084
|
+
g,
|
|
2085
|
+
p,
|
|
2082
2086
|
n,
|
|
2083
|
-
m,
|
|
2084
2087
|
v,
|
|
2085
|
-
|
|
2088
|
+
d,
|
|
2089
|
+
l
|
|
2086
2090
|
]
|
|
2087
2091
|
);
|
|
2088
2092
|
return /* @__PURE__ */ a.jsxs(
|
|
2089
2093
|
"div",
|
|
2090
2094
|
{
|
|
2091
2095
|
onContextMenu: (y) => y.preventDefault(),
|
|
2092
|
-
onMouseDown: (y) =>
|
|
2093
|
-
className: `card ${r ?? ""} ${
|
|
2096
|
+
onMouseDown: (y) => b(y, e),
|
|
2097
|
+
className: `card ${r ?? ""} ${l ? "card--active" : ""} `,
|
|
2094
2098
|
children: [
|
|
2095
|
-
|
|
2096
|
-
!
|
|
2099
|
+
u,
|
|
2100
|
+
!u && /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
2097
2101
|
/* @__PURE__ */ a.jsxs("div", { className: "card-text d-flex", children: [
|
|
2098
2102
|
e.image && /* @__PURE__ */ a.jsx("div", { className: "card-img", children: /* @__PURE__ */ a.jsx("img", { src: e.image, alt: "card-image" }) }),
|
|
2099
2103
|
e.title && /* @__PURE__ */ a.jsx("div", { className: "card-title", children: e.title }),
|
|
@@ -2107,18 +2111,19 @@ const Us = Gt.div`
|
|
|
2107
2111
|
"div",
|
|
2108
2112
|
{
|
|
2109
2113
|
className: "ml-2 cursor-pointer",
|
|
2110
|
-
onClick: (y) =>
|
|
2114
|
+
onClick: (y) => m(y, e),
|
|
2111
2115
|
children: /* @__PURE__ */ a.jsx($, { classIcon: "bi-trash3" })
|
|
2112
2116
|
}
|
|
2113
2117
|
),
|
|
2114
2118
|
t && /* @__PURE__ */ a.jsx(
|
|
2115
2119
|
qs,
|
|
2116
2120
|
{
|
|
2117
|
-
openActions:
|
|
2118
|
-
setOpenActions:
|
|
2121
|
+
openActions: v,
|
|
2122
|
+
setOpenActions: d,
|
|
2119
2123
|
actions: t,
|
|
2120
2124
|
item: e,
|
|
2121
|
-
positions: h
|
|
2125
|
+
positions: h,
|
|
2126
|
+
positionOverlay: c
|
|
2122
2127
|
}
|
|
2123
2128
|
)
|
|
2124
2129
|
] })
|
|
@@ -2138,37 +2143,37 @@ const Us = Gt.div`
|
|
|
2138
2143
|
}) => {
|
|
2139
2144
|
const [o, i] = F(0), c = e.length, [u, l] = F(1);
|
|
2140
2145
|
Y(() => {
|
|
2141
|
-
const
|
|
2142
|
-
const
|
|
2143
|
-
if (n.xl &&
|
|
2146
|
+
const m = () => {
|
|
2147
|
+
const b = window.innerWidth;
|
|
2148
|
+
if (n.xl && b >= 1200)
|
|
2144
2149
|
return l(n.xl);
|
|
2145
|
-
if (n.lg &&
|
|
2150
|
+
if (n.lg && b >= 992)
|
|
2146
2151
|
return l(n.lg);
|
|
2147
|
-
if (n.md &&
|
|
2152
|
+
if (n.md && b >= 768)
|
|
2148
2153
|
return l(n.md);
|
|
2149
|
-
if (n.sm &&
|
|
2154
|
+
if (n.sm && b >= 576)
|
|
2150
2155
|
return l(n.sm);
|
|
2151
2156
|
};
|
|
2152
|
-
return
|
|
2157
|
+
return m(), window.addEventListener("resize", m), () => window.removeEventListener("resize", m);
|
|
2153
2158
|
}, [n]);
|
|
2154
|
-
const
|
|
2155
|
-
(
|
|
2156
|
-
|
|
2157
|
-
(
|
|
2159
|
+
const g = D(
|
|
2160
|
+
(m) => {
|
|
2161
|
+
m.preventDefault(), i(
|
|
2162
|
+
(b) => Math.min(b + r, c - u)
|
|
2158
2163
|
);
|
|
2159
2164
|
},
|
|
2160
2165
|
[i]
|
|
2161
2166
|
), v = D(
|
|
2162
|
-
(
|
|
2163
|
-
|
|
2167
|
+
(m) => {
|
|
2168
|
+
m.preventDefault(), i((b) => Math.max(b - r, 0));
|
|
2164
2169
|
},
|
|
2165
2170
|
[i]
|
|
2166
|
-
),
|
|
2171
|
+
), d = o + r >= c - u + 1, h = c <= u, p = o <= 0;
|
|
2167
2172
|
return /* @__PURE__ */ a.jsxs("div", { className: "carousel", children: [
|
|
2168
|
-
t && !
|
|
2173
|
+
t && !h && /* @__PURE__ */ a.jsx(
|
|
2169
2174
|
"div",
|
|
2170
2175
|
{
|
|
2171
|
-
className: `carousel-control prev ${
|
|
2176
|
+
className: `carousel-control prev ${p && "disabled"}`,
|
|
2172
2177
|
onClick: v,
|
|
2173
2178
|
children: /* @__PURE__ */ a.jsx($, { classIcon: "bi-chevron-left" })
|
|
2174
2179
|
}
|
|
@@ -2182,7 +2187,7 @@ const Us = Gt.div`
|
|
|
2182
2187
|
transform: `translateX(-${o * 100 / u}%)`,
|
|
2183
2188
|
transition: "transform 0.5s ease-in-out"
|
|
2184
2189
|
},
|
|
2185
|
-
children: ie.Children.map(e, (
|
|
2190
|
+
children: ie.Children.map(e, (m) => /* @__PURE__ */ a.jsx(
|
|
2186
2191
|
"div",
|
|
2187
2192
|
{
|
|
2188
2193
|
className: "carousel-slide",
|
|
@@ -2190,16 +2195,16 @@ const Us = Gt.div`
|
|
|
2190
2195
|
minWidth: `${100 / u}%`,
|
|
2191
2196
|
boxSizing: "border-box"
|
|
2192
2197
|
},
|
|
2193
|
-
children:
|
|
2198
|
+
children: m
|
|
2194
2199
|
}
|
|
2195
2200
|
))
|
|
2196
2201
|
}
|
|
2197
2202
|
) }),
|
|
2198
|
-
t && !
|
|
2203
|
+
t && !h && /* @__PURE__ */ a.jsx(
|
|
2199
2204
|
"div",
|
|
2200
2205
|
{
|
|
2201
|
-
className: `carousel-control next ${
|
|
2202
|
-
onClick:
|
|
2206
|
+
className: `carousel-control next ${d && "disabled"}`,
|
|
2207
|
+
onClick: g,
|
|
2203
2208
|
children: /* @__PURE__ */ a.jsx($, { classIcon: "bi-chevron-right" })
|
|
2204
2209
|
}
|
|
2205
2210
|
)
|
|
@@ -2220,27 +2225,27 @@ const Us = Gt.div`
|
|
|
2220
2225
|
Y(() => {
|
|
2221
2226
|
l(n);
|
|
2222
2227
|
}, [n]);
|
|
2223
|
-
const
|
|
2228
|
+
const g = Oe(() => {
|
|
2224
2229
|
const v = [];
|
|
2225
|
-
for (let
|
|
2226
|
-
const
|
|
2227
|
-
for (let
|
|
2228
|
-
const
|
|
2229
|
-
(
|
|
2230
|
+
for (let d = 0; d < c; d++) {
|
|
2231
|
+
const h = [];
|
|
2232
|
+
for (let p = 0; p < i; p++) {
|
|
2233
|
+
const m = p + d * i, b = r == null ? void 0 : r.find(
|
|
2234
|
+
(y) => y.position === m + 1
|
|
2230
2235
|
);
|
|
2231
|
-
|
|
2232
|
-
/* @__PURE__ */ a.jsx(Gs, { onClick: o, cell:
|
|
2233
|
-
) :
|
|
2234
|
-
/* @__PURE__ */ a.jsx("div", { className: "cell cell--empty" }, `${
|
|
2236
|
+
b ? h.push(
|
|
2237
|
+
/* @__PURE__ */ a.jsx(Gs, { onClick: o, cell: b }, `${d}-${p}`)
|
|
2238
|
+
) : h.push(
|
|
2239
|
+
/* @__PURE__ */ a.jsx("div", { className: "cell cell--empty" }, `${d}-${p}`)
|
|
2235
2240
|
);
|
|
2236
2241
|
}
|
|
2237
2242
|
v.push(
|
|
2238
|
-
/* @__PURE__ */ a.jsx("div", { className: "row", children:
|
|
2243
|
+
/* @__PURE__ */ a.jsx("div", { className: "row", children: h }, d)
|
|
2239
2244
|
);
|
|
2240
2245
|
}
|
|
2241
2246
|
return v;
|
|
2242
2247
|
}, [i, c, u]);
|
|
2243
|
-
return /* @__PURE__ */ a.jsx("div", { className: "damier", children:
|
|
2248
|
+
return /* @__PURE__ */ a.jsx("div", { className: "damier", children: g });
|
|
2244
2249
|
}, Hs = ({ display: e, full: t, message: r }) => /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
2245
2250
|
e && !t && /* @__PURE__ */ a.jsxs("div", { className: "d-flex flex-column align-items-center", children: [
|
|
2246
2251
|
r && /* @__PURE__ */ a.jsx("span", { className: "mb-3", children: r }),
|
|
@@ -2264,9 +2269,9 @@ const Us = Gt.div`
|
|
|
2264
2269
|
value: u,
|
|
2265
2270
|
placeholder: l
|
|
2266
2271
|
}) => {
|
|
2267
|
-
const
|
|
2268
|
-
const
|
|
2269
|
-
c && c(
|
|
2272
|
+
const g = (v) => {
|
|
2273
|
+
const d = v.target.value;
|
|
2274
|
+
c && c(d);
|
|
2270
2275
|
};
|
|
2271
2276
|
return /* @__PURE__ */ a.jsxs("div", { id: e, className: `select-container ${n || ""}`, children: [
|
|
2272
2277
|
t && /* @__PURE__ */ a.jsx("label", { className: "select-container-label", children: t }),
|
|
@@ -2276,10 +2281,10 @@ const Us = Gt.div`
|
|
|
2276
2281
|
disabled: o,
|
|
2277
2282
|
className: "select-container-select",
|
|
2278
2283
|
value: u ?? i ?? "",
|
|
2279
|
-
onChange:
|
|
2284
|
+
onChange: g,
|
|
2280
2285
|
children: [
|
|
2281
2286
|
l && !i && /* @__PURE__ */ a.jsx("option", { value: "", children: l }),
|
|
2282
|
-
r.map((v,
|
|
2287
|
+
r.map((v, d) => /* @__PURE__ */ a.jsx("option", { value: v.value, children: v.label }, d))
|
|
2283
2288
|
]
|
|
2284
2289
|
}
|
|
2285
2290
|
)
|
|
@@ -2295,96 +2300,96 @@ function yo(e) {
|
|
|
2295
2300
|
data: c = [],
|
|
2296
2301
|
actions: u = [],
|
|
2297
2302
|
columns: l = [],
|
|
2298
|
-
loading:
|
|
2303
|
+
loading: g,
|
|
2299
2304
|
onRowClick: v,
|
|
2300
|
-
onColumnClick:
|
|
2305
|
+
onColumnClick: d
|
|
2301
2306
|
} = e;
|
|
2302
|
-
return
|
|
2307
|
+
return g ? /* @__PURE__ */ a.jsx(Hs, { display: g }) : /* @__PURE__ */ a.jsxs("div", { children: [
|
|
2303
2308
|
r && /* @__PURE__ */ a.jsx("h2", { className: "mb-2", children: r }),
|
|
2304
2309
|
i,
|
|
2305
2310
|
/* @__PURE__ */ a.jsxs("table", { className: `data-table ${n || ""}`, id: t, children: [
|
|
2306
2311
|
/* @__PURE__ */ a.jsx("thead", { children: /* @__PURE__ */ a.jsxs("tr", { children: [
|
|
2307
|
-
l.map((
|
|
2312
|
+
l.map((h, p) => /* @__PURE__ */ a.jsx(a.Fragment, { children: /* @__PURE__ */ a.jsx(
|
|
2308
2313
|
"th",
|
|
2309
2314
|
{
|
|
2310
2315
|
style: {
|
|
2311
|
-
minWidth:
|
|
2312
|
-
textAlign:
|
|
2313
|
-
maxWidth:
|
|
2314
|
-
width:
|
|
2316
|
+
minWidth: h.minWidth,
|
|
2317
|
+
textAlign: h.align || "left",
|
|
2318
|
+
maxWidth: h.maxWidth,
|
|
2319
|
+
width: h.width
|
|
2315
2320
|
},
|
|
2316
|
-
onClick: () =>
|
|
2317
|
-
children:
|
|
2321
|
+
onClick: () => d == null ? void 0 : d(h),
|
|
2322
|
+
children: h.label
|
|
2318
2323
|
},
|
|
2319
|
-
`colonne-${
|
|
2324
|
+
`colonne-${h.id}-${p}`
|
|
2320
2325
|
) })),
|
|
2321
2326
|
u.length > 0 && /* @__PURE__ */ a.jsx("th", { align: "right" }, "actions")
|
|
2322
2327
|
] }) }),
|
|
2323
|
-
/* @__PURE__ */ a.jsx("tbody", { children: c.map((
|
|
2324
|
-
l.map((
|
|
2325
|
-
const
|
|
2328
|
+
/* @__PURE__ */ a.jsx("tbody", { children: c.map((h, p) => /* @__PURE__ */ a.jsxs("tr", { onClick: () => v == null ? void 0 : v(h), children: [
|
|
2329
|
+
l.map((m, b) => {
|
|
2330
|
+
const y = h[m.id];
|
|
2326
2331
|
return /* @__PURE__ */ a.jsx(a.Fragment, { children: /* @__PURE__ */ a.jsx(
|
|
2327
2332
|
"td",
|
|
2328
2333
|
{
|
|
2329
2334
|
style: {
|
|
2330
|
-
minWidth:
|
|
2331
|
-
textAlign:
|
|
2332
|
-
maxWidth:
|
|
2333
|
-
width:
|
|
2335
|
+
minWidth: m.minWidth,
|
|
2336
|
+
textAlign: m.align || "left",
|
|
2337
|
+
maxWidth: m.maxWidth,
|
|
2338
|
+
width: m.width
|
|
2334
2339
|
},
|
|
2335
|
-
children:
|
|
2340
|
+
children: m.editable ? m.type === "select" ? /* @__PURE__ */ a.jsx(
|
|
2336
2341
|
Xs,
|
|
2337
2342
|
{
|
|
2338
|
-
options:
|
|
2339
|
-
value:
|
|
2343
|
+
options: m.options ?? [],
|
|
2344
|
+
value: y,
|
|
2340
2345
|
onChange: (j) => {
|
|
2341
|
-
|
|
2346
|
+
m.onEdit && m.onEdit(j, h);
|
|
2342
2347
|
}
|
|
2343
2348
|
}
|
|
2344
2349
|
) : /* @__PURE__ */ a.jsx(
|
|
2345
2350
|
"input",
|
|
2346
2351
|
{
|
|
2347
|
-
type:
|
|
2348
|
-
value:
|
|
2352
|
+
type: m.type,
|
|
2353
|
+
value: y,
|
|
2349
2354
|
step: "0.01",
|
|
2350
|
-
style: { textAlign:
|
|
2355
|
+
style: { textAlign: m.align || "left" },
|
|
2351
2356
|
onChange: (j) => {
|
|
2352
|
-
|
|
2357
|
+
m.onEdit && m.onEdit(j.target.value, h);
|
|
2353
2358
|
}
|
|
2354
2359
|
}
|
|
2355
|
-
) :
|
|
2360
|
+
) : m.format ? m.format(y) : y
|
|
2356
2361
|
},
|
|
2357
|
-
`row-${
|
|
2362
|
+
`row-${m.id}-${b}`
|
|
2358
2363
|
) });
|
|
2359
2364
|
}),
|
|
2360
|
-
u.length > 0 && /* @__PURE__ */ a.jsx("td", { align: "right", children: /* @__PURE__ */ a.jsx("div", { className: "d-flex align-items-center justify-content-end", children: u.map((
|
|
2361
|
-
|
|
2365
|
+
u.length > 0 && /* @__PURE__ */ a.jsx("td", { align: "right", children: /* @__PURE__ */ a.jsx("div", { className: "d-flex align-items-center justify-content-end", children: u.map((m, b) => (m.shouldDisplay ? m.shouldDisplay(h) : !0) ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
2366
|
+
m.type === "button" && /* @__PURE__ */ a.jsx(
|
|
2362
2367
|
He,
|
|
2363
2368
|
{
|
|
2364
|
-
title:
|
|
2365
|
-
onClick: () =>
|
|
2366
|
-
disabled:
|
|
2367
|
-
className: `data-table-action button--tertiary mr-2 ${
|
|
2369
|
+
title: m.label,
|
|
2370
|
+
onClick: () => m.onClick(h),
|
|
2371
|
+
disabled: m.disabled,
|
|
2372
|
+
className: `data-table-action button--tertiary mr-2 ${m.classIcon ? m.classIcon : ""}`
|
|
2368
2373
|
},
|
|
2369
|
-
`button-action-${
|
|
2374
|
+
`button-action-${m.id}-${b}`
|
|
2370
2375
|
),
|
|
2371
|
-
|
|
2376
|
+
m.type === "icon" && /* @__PURE__ */ a.jsx(
|
|
2372
2377
|
"div",
|
|
2373
2378
|
{
|
|
2374
2379
|
className: "mr-2 ",
|
|
2375
|
-
onClick: () =>
|
|
2380
|
+
onClick: () => m.onClick(h),
|
|
2376
2381
|
children: /* @__PURE__ */ a.jsx(
|
|
2377
2382
|
$,
|
|
2378
2383
|
{
|
|
2379
|
-
classIcon:
|
|
2384
|
+
classIcon: m.classIcon ?? ""
|
|
2380
2385
|
},
|
|
2381
|
-
|
|
2386
|
+
m.id
|
|
2382
2387
|
)
|
|
2383
2388
|
},
|
|
2384
|
-
`icon-action-${
|
|
2389
|
+
`icon-action-${m.id}-${b}`
|
|
2385
2390
|
)
|
|
2386
2391
|
] }) : null) }) })
|
|
2387
|
-
] },
|
|
2392
|
+
] }, p)) })
|
|
2388
2393
|
] }),
|
|
2389
2394
|
o
|
|
2390
2395
|
] });
|
|
@@ -2485,75 +2490,75 @@ const Ks = ({
|
|
|
2485
2490
|
}, Js = Lt(
|
|
2486
2491
|
({ initialForm: e, title: t, onSubmit: r, onChange: n, hideSubmit: o }, i) => {
|
|
2487
2492
|
const [c, u] = F(() => {
|
|
2488
|
-
const
|
|
2493
|
+
const y = {};
|
|
2489
2494
|
return e.forEach((j) => {
|
|
2490
|
-
|
|
2491
|
-
}),
|
|
2492
|
-
}), l = se({}),
|
|
2493
|
-
(
|
|
2494
|
-
const { name: w, value: S, type: R, checked: T } =
|
|
2495
|
+
y[j.name] = j.value ?? "";
|
|
2496
|
+
}), y;
|
|
2497
|
+
}), l = se({}), g = D(
|
|
2498
|
+
(y, j) => {
|
|
2499
|
+
const { name: w, value: S, type: R, checked: T } = y.target;
|
|
2495
2500
|
j.onChange && j.onChange(S, w), u((k) => {
|
|
2496
|
-
const
|
|
2501
|
+
const V = {
|
|
2497
2502
|
...k || {},
|
|
2498
2503
|
[w]: R === "checkbox" ? T : S
|
|
2499
2504
|
};
|
|
2500
|
-
return n && n(
|
|
2505
|
+
return n && n(V), V;
|
|
2501
2506
|
});
|
|
2502
2507
|
},
|
|
2503
2508
|
[n]
|
|
2504
2509
|
), v = D(
|
|
2505
|
-
(
|
|
2506
|
-
|
|
2510
|
+
(y) => {
|
|
2511
|
+
y.preventDefault(), r && r(c);
|
|
2507
2512
|
},
|
|
2508
2513
|
[r, c]
|
|
2509
|
-
),
|
|
2514
|
+
), d = () => {
|
|
2510
2515
|
u(() => {
|
|
2511
|
-
const
|
|
2516
|
+
const y = {};
|
|
2512
2517
|
return e.forEach((j) => {
|
|
2513
|
-
|
|
2514
|
-
}),
|
|
2518
|
+
y[j.name] = j.value ?? "";
|
|
2519
|
+
}), y;
|
|
2515
2520
|
});
|
|
2516
|
-
},
|
|
2521
|
+
}, h = D((y) => {
|
|
2517
2522
|
u((j) => ({
|
|
2518
2523
|
...j,
|
|
2519
|
-
[
|
|
2524
|
+
[y]: ""
|
|
2520
2525
|
}));
|
|
2521
|
-
}, []),
|
|
2522
|
-
const
|
|
2523
|
-
|
|
2526
|
+
}, []), p = () => {
|
|
2527
|
+
const y = e.find((j) => j.focus);
|
|
2528
|
+
y && l.current[y.name] && setTimeout(() => {
|
|
2524
2529
|
var j;
|
|
2525
|
-
(j = l.current[
|
|
2530
|
+
(j = l.current[y.name]) == null || j.select();
|
|
2526
2531
|
}, 500);
|
|
2527
|
-
},
|
|
2532
|
+
}, m = () => c, b = (y) => {
|
|
2528
2533
|
u((j) => ({
|
|
2529
2534
|
...j,
|
|
2530
|
-
...
|
|
2535
|
+
...y
|
|
2531
2536
|
}));
|
|
2532
2537
|
};
|
|
2533
2538
|
return zt(i, () => ({
|
|
2534
|
-
resetForm:
|
|
2535
|
-
clearInput:
|
|
2536
|
-
focusInitialElement:
|
|
2537
|
-
getValues:
|
|
2538
|
-
updateFormValue:
|
|
2539
|
+
resetForm: d,
|
|
2540
|
+
clearInput: h,
|
|
2541
|
+
focusInitialElement: p,
|
|
2542
|
+
getValues: m,
|
|
2543
|
+
updateFormValue: b
|
|
2539
2544
|
})), /* @__PURE__ */ a.jsxs("form", { onSubmit: v, children: [
|
|
2540
|
-
e.map((
|
|
2541
|
-
|
|
2542
|
-
|
|
2545
|
+
e.map((y, j) => /* @__PURE__ */ a.jsxs("div", { className: `d-flex flex-column ${y.className}`, children: [
|
|
2546
|
+
y.label && /* @__PURE__ */ a.jsx("label", { children: y.label }),
|
|
2547
|
+
y.icon && /* @__PURE__ */ a.jsx($, { classIcon: y.icon }),
|
|
2543
2548
|
/* @__PURE__ */ a.jsx(
|
|
2544
2549
|
"input",
|
|
2545
2550
|
{
|
|
2546
|
-
ref: (w) => l.current[
|
|
2547
|
-
name:
|
|
2548
|
-
type:
|
|
2549
|
-
placeholder:
|
|
2550
|
-
autoComplete:
|
|
2551
|
+
ref: (w) => l.current[y.name] = w,
|
|
2552
|
+
name: y.name,
|
|
2553
|
+
type: y.type,
|
|
2554
|
+
placeholder: y.placeholder ?? "",
|
|
2555
|
+
autoComplete: y.autoComplete ?? "on",
|
|
2551
2556
|
tabIndex: 0,
|
|
2552
|
-
autoFocus:
|
|
2553
|
-
required:
|
|
2554
|
-
value: c && c[
|
|
2555
|
-
checked:
|
|
2556
|
-
onChange: (w) =>
|
|
2557
|
+
autoFocus: y.focus ?? !1,
|
|
2558
|
+
required: y.required ?? !1,
|
|
2559
|
+
value: c && c[y.name],
|
|
2560
|
+
checked: y.type === "checkbox" ? !!c[y.name] : void 0,
|
|
2561
|
+
onChange: (w) => g(w, y)
|
|
2557
2562
|
}
|
|
2558
2563
|
)
|
|
2559
2564
|
] }, j)),
|
|
@@ -2573,14 +2578,14 @@ const wo = ({
|
|
|
2573
2578
|
cols: u,
|
|
2574
2579
|
rows: l
|
|
2575
2580
|
}) => {
|
|
2576
|
-
const [
|
|
2581
|
+
const [g, v] = F(t);
|
|
2577
2582
|
Y(() => {
|
|
2578
2583
|
v(t);
|
|
2579
2584
|
}, [t]);
|
|
2580
|
-
const
|
|
2581
|
-
(
|
|
2582
|
-
const
|
|
2583
|
-
v(
|
|
2585
|
+
const d = D(
|
|
2586
|
+
(h) => {
|
|
2587
|
+
const p = h.target.value;
|
|
2588
|
+
v(p), i && i(p, e);
|
|
2584
2589
|
},
|
|
2585
2590
|
[i, e]
|
|
2586
2591
|
);
|
|
@@ -2591,8 +2596,8 @@ const wo = ({
|
|
|
2591
2596
|
className: `form-control-textarea ${o ?? ""}`,
|
|
2592
2597
|
name: e,
|
|
2593
2598
|
disabled: r,
|
|
2594
|
-
value:
|
|
2595
|
-
onChange:
|
|
2599
|
+
value: g,
|
|
2600
|
+
onChange: d,
|
|
2596
2601
|
placeholder: c,
|
|
2597
2602
|
cols: u,
|
|
2598
2603
|
rows: l
|
|
@@ -2632,7 +2637,7 @@ const wo = ({
|
|
|
2632
2637
|
positionFixed: o,
|
|
2633
2638
|
onClickLogo: i
|
|
2634
2639
|
}) => {
|
|
2635
|
-
const c = se(null), [u, l] = F(!1),
|
|
2640
|
+
const c = se(null), [u, l] = F(!1), g = D(() => {
|
|
2636
2641
|
l(!u);
|
|
2637
2642
|
}, [u, l]);
|
|
2638
2643
|
return /* @__PURE__ */ a.jsxs("div", { className: `header ${o ? "header--fixed" : ""}`, children: [
|
|
@@ -2649,7 +2654,7 @@ const wo = ({
|
|
|
2649
2654
|
] }),
|
|
2650
2655
|
/* @__PURE__ */ a.jsxs("div", { className: "d-flex align-items-center", children: [
|
|
2651
2656
|
e,
|
|
2652
|
-
/* @__PURE__ */ a.jsx("div", { ref: c, onClick:
|
|
2657
|
+
/* @__PURE__ */ a.jsx("div", { ref: c, onClick: g, children: /* @__PURE__ */ a.jsx($, { size: ae.MEDIUM, classIcon: "bi-person-circle" }) }),
|
|
2653
2658
|
u && c.current && /* @__PURE__ */ a.jsx(
|
|
2654
2659
|
Ht,
|
|
2655
2660
|
{
|
|
@@ -2688,26 +2693,26 @@ const wo = ({
|
|
|
2688
2693
|
pas: i
|
|
2689
2694
|
}) => {
|
|
2690
2695
|
const [c, u] = F(i), l = D(
|
|
2691
|
-
(
|
|
2692
|
-
r || (u(
|
|
2696
|
+
(d) => {
|
|
2697
|
+
r || (u(d), e && e(t, d));
|
|
2693
2698
|
},
|
|
2694
2699
|
[u, e]
|
|
2695
|
-
),
|
|
2696
|
-
(
|
|
2697
|
-
if (
|
|
2700
|
+
), g = D(
|
|
2701
|
+
(d) => {
|
|
2702
|
+
if (d.stopPropagation(), r || n)
|
|
2698
2703
|
return;
|
|
2699
|
-
const
|
|
2700
|
-
l(Math.round(
|
|
2704
|
+
const h = c + i;
|
|
2705
|
+
l(Math.round(h * 100) / 100);
|
|
2701
2706
|
},
|
|
2702
2707
|
[c, l]
|
|
2703
2708
|
), v = D(
|
|
2704
|
-
(
|
|
2705
|
-
if (
|
|
2709
|
+
(d) => {
|
|
2710
|
+
if (d.stopPropagation(), r || o)
|
|
2706
2711
|
return;
|
|
2707
2712
|
if (c === 0)
|
|
2708
2713
|
return c;
|
|
2709
|
-
const
|
|
2710
|
-
l(Math.round(
|
|
2714
|
+
const h = c - i;
|
|
2715
|
+
l(Math.round(h * 100) / 100);
|
|
2711
2716
|
},
|
|
2712
2717
|
[l, c]
|
|
2713
2718
|
);
|
|
@@ -2717,7 +2722,7 @@ const wo = ({
|
|
|
2717
2722
|
/* @__PURE__ */ a.jsx(
|
|
2718
2723
|
"div",
|
|
2719
2724
|
{
|
|
2720
|
-
onClick: (
|
|
2725
|
+
onClick: (d) => v(d),
|
|
2721
2726
|
className: `qte-action qte-action--minus ${r || o ? "disabled" : ""} `,
|
|
2722
2727
|
children: /* @__PURE__ */ a.jsx($, { size: ae.LARGE, classIcon: "bi bi-dash-square" })
|
|
2723
2728
|
}
|
|
@@ -2726,7 +2731,7 @@ const wo = ({
|
|
|
2726
2731
|
/* @__PURE__ */ a.jsx(
|
|
2727
2732
|
"div",
|
|
2728
2733
|
{
|
|
2729
|
-
onClick: (
|
|
2734
|
+
onClick: (d) => g(d),
|
|
2730
2735
|
className: `qte-action qte-action--plus ${r || n ? "disabled" : ""}`,
|
|
2731
2736
|
children: /* @__PURE__ */ a.jsx($, { size: ae.LARGE, classIcon: "bi bi-plus-square" })
|
|
2732
2737
|
}
|
|
@@ -2743,8 +2748,8 @@ const wo = ({
|
|
|
2743
2748
|
handleChange: c,
|
|
2744
2749
|
setIsVisible: u,
|
|
2745
2750
|
id: l
|
|
2746
|
-
},
|
|
2747
|
-
const [v,
|
|
2751
|
+
}, g) => {
|
|
2752
|
+
const [v, d] = F(n ?? !1), h = se(null), p = se(null), m = Oe(
|
|
2748
2753
|
() => [
|
|
2749
2754
|
{
|
|
2750
2755
|
value: "",
|
|
@@ -2761,50 +2766,50 @@ const wo = ({
|
|
|
2761
2766
|
[r, o]
|
|
2762
2767
|
);
|
|
2763
2768
|
Y(() => {
|
|
2764
|
-
n !== void 0 &&
|
|
2769
|
+
n !== void 0 && d(n);
|
|
2765
2770
|
}, [n]);
|
|
2766
|
-
const
|
|
2771
|
+
const b = D(
|
|
2767
2772
|
(w) => {
|
|
2768
|
-
u && u(w),
|
|
2773
|
+
u && u(w), d(w);
|
|
2769
2774
|
},
|
|
2770
2775
|
[u]
|
|
2771
|
-
),
|
|
2776
|
+
), y = D(
|
|
2772
2777
|
(w) => {
|
|
2773
2778
|
if (!w || !w[t ?? "recherche"])
|
|
2774
|
-
return
|
|
2775
|
-
|
|
2779
|
+
return b(!1);
|
|
2780
|
+
b(!0), h.current && clearTimeout(h.current), h.current = setTimeout(() => {
|
|
2776
2781
|
c && c(w);
|
|
2777
2782
|
}, i ?? 500);
|
|
2778
2783
|
},
|
|
2779
|
-
[
|
|
2784
|
+
[b, c, i]
|
|
2780
2785
|
), j = D(
|
|
2781
2786
|
(w) => {
|
|
2782
2787
|
console.log("Form Submitted: ", w);
|
|
2783
2788
|
},
|
|
2784
2789
|
[]
|
|
2785
2790
|
);
|
|
2786
|
-
return zt(
|
|
2791
|
+
return zt(g, () => ({
|
|
2787
2792
|
clearInput: (w) => {
|
|
2788
2793
|
var S;
|
|
2789
|
-
(S =
|
|
2794
|
+
(S = p.current) == null || S.clearInput(w);
|
|
2790
2795
|
},
|
|
2791
2796
|
resetForm: () => {
|
|
2792
2797
|
var w;
|
|
2793
|
-
(w =
|
|
2798
|
+
(w = p.current) == null || w.resetForm();
|
|
2794
2799
|
},
|
|
2795
2800
|
focusInitialElement: () => {
|
|
2796
2801
|
var w;
|
|
2797
|
-
(w =
|
|
2802
|
+
(w = p.current) == null || w.focusInitialElement();
|
|
2798
2803
|
}
|
|
2799
2804
|
})), /* @__PURE__ */ a.jsxs("div", { className: "search", children: [
|
|
2800
2805
|
/* @__PURE__ */ a.jsx(
|
|
2801
2806
|
Js,
|
|
2802
2807
|
{
|
|
2803
|
-
ref:
|
|
2808
|
+
ref: p,
|
|
2804
2809
|
onSubmit: j,
|
|
2805
|
-
onChange:
|
|
2810
|
+
onChange: y,
|
|
2806
2811
|
hideSubmit: !0,
|
|
2807
|
-
initialForm:
|
|
2812
|
+
initialForm: m
|
|
2808
2813
|
}
|
|
2809
2814
|
),
|
|
2810
2815
|
v && /* @__PURE__ */ a.jsxs("div", { className: "search-result", children: [
|
|
@@ -2812,7 +2817,7 @@ const wo = ({
|
|
|
2812
2817
|
"button",
|
|
2813
2818
|
{
|
|
2814
2819
|
className: "toggle-btn",
|
|
2815
|
-
onClick: () =>
|
|
2820
|
+
onClick: () => b(!1),
|
|
2816
2821
|
children: /* @__PURE__ */ a.jsx($, { classIcon: "bi-x-lg" })
|
|
2817
2822
|
}
|
|
2818
2823
|
) }),
|
|
@@ -2831,52 +2836,52 @@ const wo = ({
|
|
|
2831
2836
|
closeOnClickOutside: u = !0,
|
|
2832
2837
|
displayOverlay: l = !0
|
|
2833
2838
|
}) => {
|
|
2834
|
-
const [
|
|
2835
|
-
Y(() => (
|
|
2836
|
-
|
|
2839
|
+
const [g, v] = F(e || !1), d = se(null), h = se(null);
|
|
2840
|
+
Y(() => (h.current || (h.current = document.createElement("div"), h.current.id = `sidebar-root-${i || crypto.randomUUID()}`, document.body.appendChild(h.current)), () => {
|
|
2841
|
+
h.current && h.current.parentNode && (document.body.removeChild(h.current), h.current = null);
|
|
2837
2842
|
}), [i]), Y(() => {
|
|
2838
2843
|
v(e || !1);
|
|
2839
2844
|
}, [e]);
|
|
2840
|
-
const
|
|
2845
|
+
const p = D(() => {
|
|
2841
2846
|
v(!1), n && n(!1);
|
|
2842
|
-
}, [n]),
|
|
2843
|
-
(
|
|
2844
|
-
u &&
|
|
2847
|
+
}, [n]), m = D(
|
|
2848
|
+
(b) => {
|
|
2849
|
+
u && d.current && !d.current.contains(b.target) && p();
|
|
2845
2850
|
},
|
|
2846
|
-
[
|
|
2851
|
+
[p, u]
|
|
2847
2852
|
);
|
|
2848
|
-
return Y(() => (
|
|
2849
|
-
document.removeEventListener("mousedown",
|
|
2850
|
-
}), [
|
|
2853
|
+
return Y(() => (g ? document.addEventListener("mousedown", m) : document.removeEventListener("mousedown", m), () => {
|
|
2854
|
+
document.removeEventListener("mousedown", m);
|
|
2855
|
+
}), [g, m]), h.current ? Wt.createPortal(
|
|
2851
2856
|
/* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
2852
|
-
|
|
2857
|
+
g && l && /* @__PURE__ */ a.jsx("div", { className: "overlay" }),
|
|
2853
2858
|
/* @__PURE__ */ a.jsxs(
|
|
2854
2859
|
"div",
|
|
2855
2860
|
{
|
|
2856
|
-
ref:
|
|
2861
|
+
ref: d,
|
|
2857
2862
|
style: c ? { width: c } : {},
|
|
2858
|
-
className: `sidebar ${
|
|
2863
|
+
className: `sidebar ${g ? "open" : "closed"} ${o ?? ""}`,
|
|
2859
2864
|
children: [
|
|
2860
2865
|
/* @__PURE__ */ a.jsxs("div", { className: "sidebar-header", children: [
|
|
2861
2866
|
r && /* @__PURE__ */ a.jsx("h2", { className: "flex-1", children: r }),
|
|
2862
|
-
/* @__PURE__ */ a.jsx("button", { className: "toggle-btn", onClick:
|
|
2867
|
+
/* @__PURE__ */ a.jsx("button", { className: "toggle-btn", onClick: p, children: /* @__PURE__ */ a.jsx($, { classIcon: "bi-x-lg" }) })
|
|
2863
2868
|
] }),
|
|
2864
2869
|
t && t
|
|
2865
2870
|
]
|
|
2866
2871
|
}
|
|
2867
2872
|
)
|
|
2868
2873
|
] }),
|
|
2869
|
-
|
|
2874
|
+
h.current
|
|
2870
2875
|
) : /* @__PURE__ */ a.jsx(a.Fragment, {});
|
|
2871
2876
|
}, No = (e) => /* @__PURE__ */ a.jsx(ro, { ...e, className: `full sidebar-data ${e.className}`, children: e.children && /* @__PURE__ */ a.jsx("div", { className: "sidebar-data-content", children: e.children }) }), _r = (e) => {
|
|
2872
2877
|
let t;
|
|
2873
|
-
const r = /* @__PURE__ */ new Set(), n = (
|
|
2874
|
-
const
|
|
2875
|
-
if (!Object.is(
|
|
2876
|
-
const
|
|
2877
|
-
t = v ?? (typeof
|
|
2878
|
+
const r = /* @__PURE__ */ new Set(), n = (g, v) => {
|
|
2879
|
+
const d = typeof g == "function" ? g(t) : g;
|
|
2880
|
+
if (!Object.is(d, t)) {
|
|
2881
|
+
const h = t;
|
|
2882
|
+
t = v ?? (typeof d != "object" || d === null) ? d : Object.assign({}, t, d), r.forEach((p) => p(t, h));
|
|
2878
2883
|
}
|
|
2879
|
-
}, o = () => t, u = { setState: n, getState: o, getInitialState: () => l, subscribe: (
|
|
2884
|
+
}, o = () => t, u = { setState: n, getState: o, getInitialState: () => l, subscribe: (g) => (r.add(g), () => r.delete(g)) }, l = t = e(n, o, u);
|
|
2880
2885
|
return u;
|
|
2881
2886
|
}, no = (e) => e ? _r(e) : _r, so = (e) => e;
|
|
2882
2887
|
function oo(e, t = so) {
|