kelt-ui-kit-react 2.0.4 → 2.0.6
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/expands/Expands.d.ts +1 -0
- package/dist/expands/expand/expand.d.ts +2 -1
- package/dist/index.js +1021 -1019
- package/package.json +1 -1
- package/src/expands/Expands.tsx +2 -0
- package/src/expands/expand/expand.tsx +191 -186
package/dist/index.js
CHANGED
|
@@ -21,11 +21,11 @@ function rs() {
|
|
|
21
21
|
Kn = 1;
|
|
22
22
|
var e = Ye, t = Symbol.for("react.element"), r = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, a = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, s = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
23
23
|
function i(l, c, d) {
|
|
24
|
-
var
|
|
25
|
-
d !== void 0 && (
|
|
26
|
-
for (
|
|
27
|
-
if (l && l.defaultProps) for (
|
|
28
|
-
return { $$typeof: t, type: l, key:
|
|
24
|
+
var f, m = {}, p = null, h = null;
|
|
25
|
+
d !== void 0 && (p = "" + d), c.key !== void 0 && (p = "" + c.key), c.ref !== void 0 && (h = c.ref);
|
|
26
|
+
for (f in c) n.call(c, f) && !s.hasOwnProperty(f) && (m[f] = c[f]);
|
|
27
|
+
if (l && l.defaultProps) for (f in c = l.defaultProps, c) m[f] === void 0 && (m[f] = c[f]);
|
|
28
|
+
return { $$typeof: t, type: l, key: p, ref: h, props: m, _owner: a.current };
|
|
29
29
|
}
|
|
30
30
|
return Mt.Fragment = r, Mt.jsx = i, Mt.jsxs = i, Mt;
|
|
31
31
|
}
|
|
@@ -42,45 +42,45 @@ var Ft = {};
|
|
|
42
42
|
var Jn;
|
|
43
43
|
function ns() {
|
|
44
44
|
return Jn || (Jn = 1, process.env.NODE_ENV !== "production" && function() {
|
|
45
|
-
var e = Ye, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), i = Symbol.for("react.provider"), l = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"),
|
|
46
|
-
function
|
|
45
|
+
var e = Ye, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), i = Symbol.for("react.provider"), l = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), m = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), h = Symbol.for("react.offscreen"), g = Symbol.iterator, v = "@@iterator";
|
|
46
|
+
function x(u) {
|
|
47
47
|
if (u === null || typeof u != "object")
|
|
48
48
|
return null;
|
|
49
|
-
var
|
|
50
|
-
return typeof
|
|
49
|
+
var S = g && u[g] || u[v];
|
|
50
|
+
return typeof S == "function" ? S : null;
|
|
51
51
|
}
|
|
52
|
-
var
|
|
53
|
-
function
|
|
52
|
+
var b = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
53
|
+
function y(u) {
|
|
54
54
|
{
|
|
55
|
-
for (var
|
|
55
|
+
for (var S = arguments.length, T = new Array(S > 1 ? S - 1 : 0), z = 1; z < S; z++)
|
|
56
56
|
T[z - 1] = arguments[z];
|
|
57
|
-
|
|
57
|
+
O("error", u, T);
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function O(u, S, T) {
|
|
61
61
|
{
|
|
62
|
-
var z =
|
|
63
|
-
se !== "" && (
|
|
62
|
+
var z = b.ReactDebugCurrentFrame, se = z.getStackAddendum();
|
|
63
|
+
se !== "" && (S += "%s", T = T.concat([se]));
|
|
64
64
|
var P = T.map(function(M) {
|
|
65
65
|
return String(M);
|
|
66
66
|
});
|
|
67
|
-
P.unshift("Warning: " +
|
|
67
|
+
P.unshift("Warning: " + S), Function.prototype.apply.call(console[u], console, P);
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
|
-
var
|
|
70
|
+
var D = !1, j = !1, _ = !1, R = !1, q = !1, ie;
|
|
71
71
|
ie = Symbol.for("react.module.reference");
|
|
72
72
|
function W(u) {
|
|
73
|
-
return !!(typeof u == "string" || typeof u == "function" || u === n || u === s || q || u === a || u === d || u ===
|
|
73
|
+
return !!(typeof u == "string" || typeof u == "function" || u === n || u === s || q || u === a || u === d || u === f || R || u === h || D || j || _ || typeof u == "object" && u !== null && (u.$$typeof === p || u.$$typeof === m || u.$$typeof === i || u.$$typeof === l || u.$$typeof === c || // This needs to include all possible module reference object
|
|
74
74
|
// types supported by any Flight configuration anywhere since
|
|
75
75
|
// we don't know which Flight build this will end up being used
|
|
76
76
|
// with.
|
|
77
77
|
u.$$typeof === ie || u.getModuleId !== void 0));
|
|
78
78
|
}
|
|
79
|
-
function ee(u,
|
|
79
|
+
function ee(u, S, T) {
|
|
80
80
|
var z = u.displayName;
|
|
81
81
|
if (z)
|
|
82
82
|
return z;
|
|
83
|
-
var se =
|
|
83
|
+
var se = S.displayName || S.name || "";
|
|
84
84
|
return se !== "" ? T + "(" + se + ")" : T;
|
|
85
85
|
}
|
|
86
86
|
function L(u) {
|
|
@@ -89,7 +89,7 @@ function ns() {
|
|
|
89
89
|
function A(u) {
|
|
90
90
|
if (u == null)
|
|
91
91
|
return null;
|
|
92
|
-
if (typeof u.tag == "number" &&
|
|
92
|
+
if (typeof u.tag == "number" && y("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof u == "function")
|
|
93
93
|
return u.displayName || u.name || null;
|
|
94
94
|
if (typeof u == "string")
|
|
95
95
|
return u;
|
|
@@ -104,23 +104,23 @@ function ns() {
|
|
|
104
104
|
return "StrictMode";
|
|
105
105
|
case d:
|
|
106
106
|
return "Suspense";
|
|
107
|
-
case
|
|
107
|
+
case f:
|
|
108
108
|
return "SuspenseList";
|
|
109
109
|
}
|
|
110
110
|
if (typeof u == "object")
|
|
111
111
|
switch (u.$$typeof) {
|
|
112
112
|
case l:
|
|
113
|
-
var
|
|
114
|
-
return L(
|
|
113
|
+
var S = u;
|
|
114
|
+
return L(S) + ".Consumer";
|
|
115
115
|
case i:
|
|
116
116
|
var T = u;
|
|
117
117
|
return L(T._context) + ".Provider";
|
|
118
118
|
case c:
|
|
119
119
|
return ee(u, u.render, "ForwardRef");
|
|
120
|
-
case
|
|
120
|
+
case m:
|
|
121
121
|
var z = u.displayName || null;
|
|
122
122
|
return z !== null ? z : A(u.type) || "Memo";
|
|
123
|
-
case
|
|
123
|
+
case p: {
|
|
124
124
|
var se = u, P = se._payload, M = se._init;
|
|
125
125
|
try {
|
|
126
126
|
return A(M(P));
|
|
@@ -131,14 +131,14 @@ function ns() {
|
|
|
131
131
|
}
|
|
132
132
|
return null;
|
|
133
133
|
}
|
|
134
|
-
var de = Object.assign, ce = 0, Q, fe, $, X, C,
|
|
134
|
+
var de = Object.assign, ce = 0, Q, fe, $, X, C, N, E;
|
|
135
135
|
function H() {
|
|
136
136
|
}
|
|
137
137
|
H.__reactDisabledLog = !0;
|
|
138
138
|
function be() {
|
|
139
139
|
{
|
|
140
140
|
if (ce === 0) {
|
|
141
|
-
Q = console.log, fe = console.info, $ = console.warn, X = console.error, C = console.group,
|
|
141
|
+
Q = console.log, fe = console.info, $ = console.warn, X = console.error, C = console.group, N = console.groupCollapsed, E = console.groupEnd;
|
|
142
142
|
var u = {
|
|
143
143
|
configurable: !0,
|
|
144
144
|
enumerable: !0,
|
|
@@ -183,18 +183,18 @@ function ns() {
|
|
|
183
183
|
value: C
|
|
184
184
|
}),
|
|
185
185
|
groupCollapsed: de({}, u, {
|
|
186
|
-
value:
|
|
186
|
+
value: N
|
|
187
187
|
}),
|
|
188
188
|
groupEnd: de({}, u, {
|
|
189
|
-
value:
|
|
189
|
+
value: E
|
|
190
190
|
})
|
|
191
191
|
});
|
|
192
192
|
}
|
|
193
|
-
ce < 0 &&
|
|
193
|
+
ce < 0 && y("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
194
194
|
}
|
|
195
195
|
}
|
|
196
|
-
var w =
|
|
197
|
-
function he(u,
|
|
196
|
+
var w = b.ReactCurrentDispatcher, pe;
|
|
197
|
+
function he(u, S, T) {
|
|
198
198
|
{
|
|
199
199
|
if (pe === void 0)
|
|
200
200
|
try {
|
|
@@ -212,7 +212,7 @@ function ns() {
|
|
|
212
212
|
var _e = typeof WeakMap == "function" ? WeakMap : Map;
|
|
213
213
|
De = new _e();
|
|
214
214
|
}
|
|
215
|
-
function k(u,
|
|
215
|
+
function k(u, S) {
|
|
216
216
|
if (!u || te)
|
|
217
217
|
return "";
|
|
218
218
|
{
|
|
@@ -227,7 +227,7 @@ function ns() {
|
|
|
227
227
|
var P;
|
|
228
228
|
P = w.current, w.current = null, be();
|
|
229
229
|
try {
|
|
230
|
-
if (
|
|
230
|
+
if (S) {
|
|
231
231
|
var M = function() {
|
|
232
232
|
throw Error();
|
|
233
233
|
};
|
|
@@ -283,14 +283,14 @@ function ns() {
|
|
|
283
283
|
var Xe = u ? u.displayName || u.name : "", rt = Xe ? he(Xe) : "";
|
|
284
284
|
return typeof u == "function" && De.set(u, rt), rt;
|
|
285
285
|
}
|
|
286
|
-
function B(u,
|
|
286
|
+
function B(u, S, T) {
|
|
287
287
|
return k(u, !1);
|
|
288
288
|
}
|
|
289
289
|
function Y(u) {
|
|
290
|
-
var
|
|
291
|
-
return !!(
|
|
290
|
+
var S = u.prototype;
|
|
291
|
+
return !!(S && S.isReactComponent);
|
|
292
292
|
}
|
|
293
|
-
function V(u,
|
|
293
|
+
function V(u, S, T) {
|
|
294
294
|
if (u == null)
|
|
295
295
|
return "";
|
|
296
296
|
if (typeof u == "function")
|
|
@@ -300,34 +300,34 @@ function ns() {
|
|
|
300
300
|
switch (u) {
|
|
301
301
|
case d:
|
|
302
302
|
return he("Suspense");
|
|
303
|
-
case
|
|
303
|
+
case f:
|
|
304
304
|
return he("SuspenseList");
|
|
305
305
|
}
|
|
306
306
|
if (typeof u == "object")
|
|
307
307
|
switch (u.$$typeof) {
|
|
308
308
|
case c:
|
|
309
309
|
return B(u.render);
|
|
310
|
-
case
|
|
311
|
-
return V(u.type,
|
|
312
|
-
case
|
|
310
|
+
case m:
|
|
311
|
+
return V(u.type, S, T);
|
|
312
|
+
case p: {
|
|
313
313
|
var z = u, se = z._payload, P = z._init;
|
|
314
314
|
try {
|
|
315
|
-
return V(P(se),
|
|
315
|
+
return V(P(se), S, T);
|
|
316
316
|
} catch {
|
|
317
317
|
}
|
|
318
318
|
}
|
|
319
319
|
}
|
|
320
320
|
return "";
|
|
321
321
|
}
|
|
322
|
-
var G = Object.prototype.hasOwnProperty, le = {}, re =
|
|
322
|
+
var G = Object.prototype.hasOwnProperty, le = {}, re = b.ReactDebugCurrentFrame;
|
|
323
323
|
function Z(u) {
|
|
324
324
|
if (u) {
|
|
325
|
-
var
|
|
325
|
+
var S = u._owner, T = V(u.type, u._source, S ? S.type : null);
|
|
326
326
|
re.setExtraStackFrame(T);
|
|
327
327
|
} else
|
|
328
328
|
re.setExtraStackFrame(null);
|
|
329
329
|
}
|
|
330
|
-
function Se(u,
|
|
330
|
+
function Se(u, S, T, z, se) {
|
|
331
331
|
{
|
|
332
332
|
var P = Function.call.bind(G);
|
|
333
333
|
for (var M in u)
|
|
@@ -338,11 +338,11 @@ function ns() {
|
|
|
338
338
|
var ve = Error((z || "React class") + ": " + T + " type `" + M + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof u[M] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
339
339
|
throw ve.name = "Invariant Violation", ve;
|
|
340
340
|
}
|
|
341
|
-
F = u[M](
|
|
341
|
+
F = u[M](S, M, z, T, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
342
342
|
} catch (ne) {
|
|
343
343
|
F = ne;
|
|
344
344
|
}
|
|
345
|
-
F && !(F instanceof Error) && (Z(se),
|
|
345
|
+
F && !(F instanceof Error) && (Z(se), y("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", z || "React class", T, M, typeof F), Z(null)), F instanceof Error && !(F.message in le) && (le[F.message] = !0, Z(se), y("Failed %s type: %s", T, F.message), Z(null));
|
|
346
346
|
}
|
|
347
347
|
}
|
|
348
348
|
}
|
|
@@ -352,7 +352,7 @@ function ns() {
|
|
|
352
352
|
}
|
|
353
353
|
function We(u) {
|
|
354
354
|
{
|
|
355
|
-
var
|
|
355
|
+
var S = typeof Symbol == "function" && Symbol.toStringTag, T = S && u[Symbol.toStringTag] || u.constructor.name || "Object";
|
|
356
356
|
return T;
|
|
357
357
|
}
|
|
358
358
|
}
|
|
@@ -368,9 +368,9 @@ function ns() {
|
|
|
368
368
|
}
|
|
369
369
|
function Qt(u) {
|
|
370
370
|
if (dt(u))
|
|
371
|
-
return
|
|
371
|
+
return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", We(u)), Jt(u);
|
|
372
372
|
}
|
|
373
|
-
var Zt =
|
|
373
|
+
var Zt = b.ReactCurrentOwner, Yr = {
|
|
374
374
|
key: !0,
|
|
375
375
|
ref: !0,
|
|
376
376
|
__self: !0,
|
|
@@ -378,27 +378,27 @@ function ns() {
|
|
|
378
378
|
}, ft, Tt;
|
|
379
379
|
function er(u) {
|
|
380
380
|
if (G.call(u, "ref")) {
|
|
381
|
-
var
|
|
382
|
-
if (
|
|
381
|
+
var S = Object.getOwnPropertyDescriptor(u, "ref").get;
|
|
382
|
+
if (S && S.isReactWarning)
|
|
383
383
|
return !1;
|
|
384
384
|
}
|
|
385
385
|
return u.ref !== void 0;
|
|
386
386
|
}
|
|
387
387
|
function Br(u) {
|
|
388
388
|
if (G.call(u, "key")) {
|
|
389
|
-
var
|
|
390
|
-
if (
|
|
389
|
+
var S = Object.getOwnPropertyDescriptor(u, "key").get;
|
|
390
|
+
if (S && S.isReactWarning)
|
|
391
391
|
return !1;
|
|
392
392
|
}
|
|
393
393
|
return u.key !== void 0;
|
|
394
394
|
}
|
|
395
|
-
function ht(u,
|
|
395
|
+
function ht(u, S) {
|
|
396
396
|
typeof u.ref == "string" && Zt.current;
|
|
397
397
|
}
|
|
398
|
-
function tr(u,
|
|
398
|
+
function tr(u, S) {
|
|
399
399
|
{
|
|
400
400
|
var T = function() {
|
|
401
|
-
ft || (ft = !0,
|
|
401
|
+
ft || (ft = !0, y("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", S));
|
|
402
402
|
};
|
|
403
403
|
T.isReactWarning = !0, Object.defineProperty(u, "key", {
|
|
404
404
|
get: T,
|
|
@@ -406,10 +406,10 @@ function ns() {
|
|
|
406
406
|
});
|
|
407
407
|
}
|
|
408
408
|
}
|
|
409
|
-
function Ur(u,
|
|
409
|
+
function Ur(u, S) {
|
|
410
410
|
{
|
|
411
411
|
var T = function() {
|
|
412
|
-
Tt || (Tt = !0,
|
|
412
|
+
Tt || (Tt = !0, y("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", S));
|
|
413
413
|
};
|
|
414
414
|
T.isReactWarning = !0, Object.defineProperty(u, "ref", {
|
|
415
415
|
get: T,
|
|
@@ -417,13 +417,13 @@ function ns() {
|
|
|
417
417
|
});
|
|
418
418
|
}
|
|
419
419
|
}
|
|
420
|
-
var rr = function(u,
|
|
420
|
+
var rr = function(u, S, T, z, se, P, M) {
|
|
421
421
|
var F = {
|
|
422
422
|
// This tag allows us to uniquely identify this as a React Element
|
|
423
423
|
$$typeof: t,
|
|
424
424
|
// Built-in properties that belong on the element
|
|
425
425
|
type: u,
|
|
426
|
-
key:
|
|
426
|
+
key: S,
|
|
427
427
|
ref: T,
|
|
428
428
|
props: M,
|
|
429
429
|
// Record the component responsible for creating this element.
|
|
@@ -446,12 +446,12 @@ function ns() {
|
|
|
446
446
|
value: se
|
|
447
447
|
}), Object.freeze && (Object.freeze(F.props), Object.freeze(F)), F;
|
|
448
448
|
};
|
|
449
|
-
function nr(u,
|
|
449
|
+
function nr(u, S, T, z, se) {
|
|
450
450
|
{
|
|
451
451
|
var P, M = {}, F = null, ve = null;
|
|
452
|
-
T !== void 0 && (Qt(T), F = "" + T), Br(
|
|
453
|
-
for (P in
|
|
454
|
-
G.call(
|
|
452
|
+
T !== void 0 && (Qt(T), F = "" + T), Br(S) && (Qt(S.key), F = "" + S.key), er(S) && (ve = S.ref, ht(S, se));
|
|
453
|
+
for (P in S)
|
|
454
|
+
G.call(S, P) && !Yr.hasOwnProperty(P) && (M[P] = S[P]);
|
|
455
455
|
if (u && u.defaultProps) {
|
|
456
456
|
var ne = u.defaultProps;
|
|
457
457
|
for (P in ne)
|
|
@@ -464,10 +464,10 @@ function ns() {
|
|
|
464
464
|
return rr(u, F, ve, se, z, Zt.current, M);
|
|
465
465
|
}
|
|
466
466
|
}
|
|
467
|
-
var et =
|
|
467
|
+
var et = b.ReactCurrentOwner, ar = b.ReactDebugCurrentFrame;
|
|
468
468
|
function ze(u) {
|
|
469
469
|
if (u) {
|
|
470
|
-
var
|
|
470
|
+
var S = u._owner, T = V(u.type, u._source, S ? S.type : null);
|
|
471
471
|
ar.setExtraStackFrame(T);
|
|
472
472
|
} else
|
|
473
473
|
ar.setExtraStackFrame(null);
|
|
@@ -495,87 +495,87 @@ Check the render method of \`` + u + "`.";
|
|
|
495
495
|
var tt = {};
|
|
496
496
|
function ge(u) {
|
|
497
497
|
{
|
|
498
|
-
var
|
|
499
|
-
if (!
|
|
498
|
+
var S = Oe();
|
|
499
|
+
if (!S) {
|
|
500
500
|
var T = typeof u == "string" ? u : u.displayName || u.name;
|
|
501
|
-
T && (
|
|
501
|
+
T && (S = `
|
|
502
502
|
|
|
503
503
|
Check the top-level render call using <` + T + ">.");
|
|
504
504
|
}
|
|
505
|
-
return
|
|
505
|
+
return S;
|
|
506
506
|
}
|
|
507
507
|
}
|
|
508
|
-
function $e(u,
|
|
508
|
+
function $e(u, S) {
|
|
509
509
|
{
|
|
510
510
|
if (!u._store || u._store.validated || u.key != null)
|
|
511
511
|
return;
|
|
512
512
|
u._store.validated = !0;
|
|
513
|
-
var T = ge(
|
|
513
|
+
var T = ge(S);
|
|
514
514
|
if (tt[T])
|
|
515
515
|
return;
|
|
516
516
|
tt[T] = !0;
|
|
517
517
|
var z = "";
|
|
518
|
-
u && u._owner && u._owner !== et.current && (z = " It was passed a child from " + A(u._owner.type) + "."), ze(u),
|
|
518
|
+
u && u._owner && u._owner !== et.current && (z = " It was passed a child from " + A(u._owner.type) + "."), ze(u), y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', T, z), ze(null);
|
|
519
519
|
}
|
|
520
520
|
}
|
|
521
|
-
function or(u,
|
|
521
|
+
function or(u, S) {
|
|
522
522
|
{
|
|
523
523
|
if (typeof u != "object")
|
|
524
524
|
return;
|
|
525
525
|
if (Te(u))
|
|
526
526
|
for (var T = 0; T < u.length; T++) {
|
|
527
527
|
var z = u[T];
|
|
528
|
-
mt(z) && $e(z,
|
|
528
|
+
mt(z) && $e(z, S);
|
|
529
529
|
}
|
|
530
530
|
else if (mt(u))
|
|
531
531
|
u._store && (u._store.validated = !0);
|
|
532
532
|
else if (u) {
|
|
533
|
-
var se =
|
|
533
|
+
var se = x(u);
|
|
534
534
|
if (typeof se == "function" && se !== u.entries)
|
|
535
535
|
for (var P = se.call(u), M; !(M = P.next()).done; )
|
|
536
|
-
mt(M.value) && $e(M.value,
|
|
536
|
+
mt(M.value) && $e(M.value, S);
|
|
537
537
|
}
|
|
538
538
|
}
|
|
539
539
|
}
|
|
540
540
|
function Pt(u) {
|
|
541
541
|
{
|
|
542
|
-
var
|
|
543
|
-
if (
|
|
542
|
+
var S = u.type;
|
|
543
|
+
if (S == null || typeof S == "string")
|
|
544
544
|
return;
|
|
545
545
|
var T;
|
|
546
|
-
if (typeof
|
|
547
|
-
T =
|
|
548
|
-
else if (typeof
|
|
546
|
+
if (typeof S == "function")
|
|
547
|
+
T = S.propTypes;
|
|
548
|
+
else if (typeof S == "object" && (S.$$typeof === c || // Note: Memo only checks outer props here.
|
|
549
549
|
// Inner props are checked in the reconciler.
|
|
550
|
-
|
|
551
|
-
T =
|
|
550
|
+
S.$$typeof === m))
|
|
551
|
+
T = S.propTypes;
|
|
552
552
|
else
|
|
553
553
|
return;
|
|
554
554
|
if (T) {
|
|
555
|
-
var z = A(
|
|
555
|
+
var z = A(S);
|
|
556
556
|
Se(T, u.props, "prop", z, u);
|
|
557
|
-
} else if (
|
|
557
|
+
} else if (S.PropTypes !== void 0 && !Rt) {
|
|
558
558
|
Rt = !0;
|
|
559
|
-
var se = A(
|
|
560
|
-
|
|
559
|
+
var se = A(S);
|
|
560
|
+
y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", se || "Unknown");
|
|
561
561
|
}
|
|
562
|
-
typeof
|
|
562
|
+
typeof S.getDefaultProps == "function" && !S.getDefaultProps.isReactClassApproved && y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
563
563
|
}
|
|
564
564
|
}
|
|
565
565
|
function sr(u) {
|
|
566
566
|
{
|
|
567
|
-
for (var
|
|
568
|
-
var z =
|
|
567
|
+
for (var S = Object.keys(u.props), T = 0; T < S.length; T++) {
|
|
568
|
+
var z = S[T];
|
|
569
569
|
if (z !== "children" && z !== "key") {
|
|
570
|
-
ze(u),
|
|
570
|
+
ze(u), y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", z), ze(null);
|
|
571
571
|
break;
|
|
572
572
|
}
|
|
573
573
|
}
|
|
574
|
-
u.ref !== null && (ze(u),
|
|
574
|
+
u.ref !== null && (ze(u), y("Invalid attribute `ref` supplied to `React.Fragment`."), ze(null));
|
|
575
575
|
}
|
|
576
576
|
}
|
|
577
577
|
var At = {};
|
|
578
|
-
function vt(u,
|
|
578
|
+
function vt(u, S, T, z, se, P) {
|
|
579
579
|
{
|
|
580
580
|
var M = W(u);
|
|
581
581
|
if (!M) {
|
|
@@ -584,13 +584,13 @@ Check the top-level render call using <` + T + ">.");
|
|
|
584
584
|
var ve = ke();
|
|
585
585
|
ve ? F += ve : F += Oe();
|
|
586
586
|
var ne;
|
|
587
|
-
u === null ? ne = "null" : Te(u) ? ne = "array" : u !== void 0 && u.$$typeof === t ? (ne = "<" + (A(u.type) || "Unknown") + " />", F = " Did you accidentally export a JSX literal instead of a component?") : ne = typeof u,
|
|
587
|
+
u === null ? ne = "null" : Te(u) ? ne = "array" : u !== void 0 && u.$$typeof === t ? (ne = "<" + (A(u.type) || "Unknown") + " />", F = " Did you accidentally export a JSX literal instead of a component?") : ne = typeof u, y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", ne, F);
|
|
588
588
|
}
|
|
589
|
-
var xe = nr(u,
|
|
589
|
+
var xe = nr(u, S, T, se, P);
|
|
590
590
|
if (xe == null)
|
|
591
591
|
return xe;
|
|
592
592
|
if (M) {
|
|
593
|
-
var Re =
|
|
593
|
+
var Re = S.children;
|
|
594
594
|
if (Re !== void 0)
|
|
595
595
|
if (z)
|
|
596
596
|
if (Te(Re)) {
|
|
@@ -598,17 +598,17 @@ Check the top-level render call using <` + T + ">.");
|
|
|
598
598
|
or(Re[Xe], u);
|
|
599
599
|
Object.freeze && Object.freeze(Re);
|
|
600
600
|
} else
|
|
601
|
-
|
|
601
|
+
y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
602
602
|
else
|
|
603
603
|
or(Re, u);
|
|
604
604
|
}
|
|
605
|
-
if (G.call(
|
|
606
|
-
var rt = A(u), Pe = Object.keys(
|
|
605
|
+
if (G.call(S, "key")) {
|
|
606
|
+
var rt = A(u), Pe = Object.keys(S).filter(function(Ko) {
|
|
607
607
|
return Ko !== "key";
|
|
608
608
|
}), zr = Pe.length > 0 ? "{key: someKey, " + Pe.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
609
609
|
if (!At[rt + zr]) {
|
|
610
610
|
var Xo = Pe.length > 0 ? "{" + Pe.join(": ..., ") + ": ...}" : "{}";
|
|
611
|
-
|
|
611
|
+
y(`A props object containing a "key" prop is being spread into JSX:
|
|
612
612
|
let props = %s;
|
|
613
613
|
<%s {...props} />
|
|
614
614
|
React keys must be passed directly to JSX without using spread:
|
|
@@ -619,11 +619,11 @@ React keys must be passed directly to JSX without using spread:
|
|
|
619
619
|
return u === n ? sr(xe) : Pt(xe), xe;
|
|
620
620
|
}
|
|
621
621
|
}
|
|
622
|
-
function pt(u,
|
|
623
|
-
return vt(u,
|
|
622
|
+
function pt(u, S, T) {
|
|
623
|
+
return vt(u, S, T, !0);
|
|
624
624
|
}
|
|
625
|
-
function It(u,
|
|
626
|
-
return vt(u,
|
|
625
|
+
function It(u, S, T) {
|
|
626
|
+
return vt(u, S, T, !1);
|
|
627
627
|
}
|
|
628
628
|
var $t = It, Lt = pt;
|
|
629
629
|
Ft.Fragment = n, Ft.jsx = $t, Ft.jsxs = Lt;
|
|
@@ -765,8 +765,8 @@ function zl(e, t) {
|
|
|
765
765
|
"décembre"
|
|
766
766
|
];
|
|
767
767
|
if (!e) return "";
|
|
768
|
-
const a = e.getFullYear().toString(), s = String(e.getMonth() + 1).padStart(2, "0"), i = String(e.getDate()).padStart(2, "0"), l = String(e.getHours()).padStart(2, "0"), c = String(e.getMinutes()).padStart(2, "0"), d = String(e.getSeconds()).padStart(2, "0"),
|
|
769
|
-
return t.replace("dddd",
|
|
768
|
+
const a = e.getFullYear().toString(), s = String(e.getMonth() + 1).padStart(2, "0"), i = String(e.getDate()).padStart(2, "0"), l = String(e.getHours()).padStart(2, "0"), c = String(e.getMinutes()).padStart(2, "0"), d = String(e.getSeconds()).padStart(2, "0"), f = r[e.getDay()], m = n[e.getMonth()];
|
|
769
|
+
return t.replace("dddd", f).replace("MMMM", m).replace("YYYY", a).replace("MM", s).replace("DD", i).replace("HH", l).replace("mm", c).replace("ss", d);
|
|
770
770
|
}
|
|
771
771
|
function Hl(e) {
|
|
772
772
|
const [t, r, n] = e.split("-").map(Number);
|
|
@@ -929,8 +929,8 @@ class ys {
|
|
|
929
929
|
if (!s.ok)
|
|
930
930
|
throw new Error(`Geocoding request failed (${s.status})`);
|
|
931
931
|
return ((await s.json()).features ?? []).flatMap((l) => {
|
|
932
|
-
var
|
|
933
|
-
const c = l.properties, d = (
|
|
932
|
+
var f;
|
|
933
|
+
const c = l.properties, d = (f = l.geometry) == null ? void 0 : f.coordinates;
|
|
934
934
|
return !(c != null && c.label) || !d ? [] : [
|
|
935
935
|
{
|
|
936
936
|
id: c.id ?? c.label,
|
|
@@ -960,33 +960,33 @@ const bs = new ys(), xs = ({
|
|
|
960
960
|
debounceTime: l = 300,
|
|
961
961
|
limit: c = 5,
|
|
962
962
|
provider: d = bs,
|
|
963
|
-
allowManualEntry:
|
|
964
|
-
manualEntryLabel:
|
|
965
|
-
onChange:
|
|
966
|
-
onManualEntry:
|
|
967
|
-
onSelect:
|
|
963
|
+
allowManualEntry: f = !0,
|
|
964
|
+
manualEntryLabel: m = "Je ne trouve pas mon adresse",
|
|
965
|
+
onChange: p,
|
|
966
|
+
onManualEntry: h,
|
|
967
|
+
onSelect: g
|
|
968
968
|
}) => {
|
|
969
|
-
const
|
|
969
|
+
const v = Fa(), x = e ?? `address-search-${v}`, b = `${x}-results`, [y, O] = U(a ?? ""), [D, j] = U([]), [_, R] = U(!1), [q, ie] = U(!1), [W, ee] = U(!1), [L, A] = U(-1), de = me(null), ce = me(), Q = me(!1);
|
|
970
970
|
ae(() => {
|
|
971
|
-
a !== void 0 &&
|
|
971
|
+
a !== void 0 && O(a);
|
|
972
972
|
}, [a]), ae(() => {
|
|
973
|
-
const C = (
|
|
974
|
-
var
|
|
975
|
-
(
|
|
973
|
+
const C = (N) => {
|
|
974
|
+
var E;
|
|
975
|
+
(E = de.current) != null && E.contains(N.target) || ee(!1);
|
|
976
976
|
};
|
|
977
977
|
return document.addEventListener("pointerdown", C), () => document.removeEventListener("pointerdown", C);
|
|
978
978
|
}, []), ae(() => {
|
|
979
|
-
var
|
|
979
|
+
var E;
|
|
980
980
|
if (Q.current) {
|
|
981
981
|
Q.current = !1;
|
|
982
982
|
return;
|
|
983
983
|
}
|
|
984
|
-
const C =
|
|
984
|
+
const C = y.trim();
|
|
985
985
|
if (C.length < i || s) {
|
|
986
|
-
(
|
|
986
|
+
(E = ce.current) == null || E.abort(), j([]), R(!1), ie(!1), ee(!1);
|
|
987
987
|
return;
|
|
988
988
|
}
|
|
989
|
-
const
|
|
989
|
+
const N = window.setTimeout(async () => {
|
|
990
990
|
var be;
|
|
991
991
|
(be = ce.current) == null || be.abort();
|
|
992
992
|
const H = new AbortController();
|
|
@@ -996,69 +996,69 @@ const bs = new ys(), xs = ({
|
|
|
996
996
|
limit: c,
|
|
997
997
|
signal: H.signal
|
|
998
998
|
});
|
|
999
|
-
|
|
999
|
+
j(oe), A(-1), ee(!0);
|
|
1000
1000
|
} catch (oe) {
|
|
1001
|
-
oe.name !== "AbortError" && (
|
|
1001
|
+
oe.name !== "AbortError" && (j([]), ie(!0), ee(!0));
|
|
1002
1002
|
} finally {
|
|
1003
1003
|
H.signal.aborted || R(!1);
|
|
1004
1004
|
}
|
|
1005
1005
|
}, l);
|
|
1006
1006
|
return () => {
|
|
1007
1007
|
var H;
|
|
1008
|
-
window.clearTimeout(
|
|
1008
|
+
window.clearTimeout(N), (H = ce.current) == null || H.abort();
|
|
1009
1009
|
};
|
|
1010
|
-
}, [l, s, c, i, d,
|
|
1010
|
+
}, [l, s, c, i, d, y]);
|
|
1011
1011
|
const fe = I(
|
|
1012
1012
|
(C) => {
|
|
1013
|
-
var
|
|
1014
|
-
(
|
|
1013
|
+
var N;
|
|
1014
|
+
(N = ce.current) == null || N.abort(), Q.current = !0, O(C.addressLine), j([]), ee(!1), A(-1), p == null || p(C.addressLine), g(C);
|
|
1015
1015
|
},
|
|
1016
|
-
[
|
|
1016
|
+
[p, g]
|
|
1017
1017
|
), $ = I(() => {
|
|
1018
|
-
var
|
|
1019
|
-
const C =
|
|
1020
|
-
C && ((
|
|
1021
|
-
}, [
|
|
1022
|
-
!W ||
|
|
1018
|
+
var N;
|
|
1019
|
+
const C = y.trim();
|
|
1020
|
+
C && ((N = ce.current) == null || N.abort(), Q.current = !0, O(C), j([]), ee(!1), A(-1), p == null || p(C), h == null || h(C));
|
|
1021
|
+
}, [p, h, y]), X = (C) => {
|
|
1022
|
+
!W || D.length === 0 || (C.key === "ArrowDown" ? (C.preventDefault(), A((N) => (N + 1) % D.length)) : C.key === "ArrowUp" ? (C.preventDefault(), A((N) => N <= 0 ? D.length - 1 : N - 1)) : C.key === "Enter" && L >= 0 ? (C.preventDefault(), fe(D[L])) : C.key === "Escape" && ee(!1));
|
|
1023
1023
|
};
|
|
1024
1024
|
return /* @__PURE__ */ o.jsxs("div", { ref: de, className: `address-search ${t ?? ""}`, children: [
|
|
1025
|
-
r && /* @__PURE__ */ o.jsx("label", { htmlFor:
|
|
1025
|
+
r && /* @__PURE__ */ o.jsx("label", { htmlFor: x, children: r }),
|
|
1026
1026
|
/* @__PURE__ */ o.jsxs("div", { className: "address-search-input", children: [
|
|
1027
1027
|
/* @__PURE__ */ o.jsx(J, { classIcon: "bi-geo-alt" }),
|
|
1028
1028
|
/* @__PURE__ */ o.jsx(
|
|
1029
1029
|
"input",
|
|
1030
1030
|
{
|
|
1031
|
-
id:
|
|
1031
|
+
id: x,
|
|
1032
1032
|
type: "search",
|
|
1033
1033
|
role: "combobox",
|
|
1034
1034
|
"aria-autocomplete": "list",
|
|
1035
1035
|
"aria-expanded": W,
|
|
1036
|
-
"aria-controls":
|
|
1037
|
-
"aria-activedescendant": L >= 0 ? `${
|
|
1036
|
+
"aria-controls": b,
|
|
1037
|
+
"aria-activedescendant": L >= 0 ? `${x}-option-${L}` : void 0,
|
|
1038
1038
|
autoComplete: "off",
|
|
1039
1039
|
disabled: s,
|
|
1040
|
-
value:
|
|
1040
|
+
value: y,
|
|
1041
1041
|
placeholder: n,
|
|
1042
1042
|
onChange: (C) => {
|
|
1043
|
-
|
|
1043
|
+
O(C.target.value), p == null || p(C.target.value);
|
|
1044
1044
|
},
|
|
1045
|
-
onFocus: () =>
|
|
1045
|
+
onFocus: () => D.length > 0 && ee(!0),
|
|
1046
1046
|
onKeyDown: X
|
|
1047
1047
|
}
|
|
1048
1048
|
),
|
|
1049
1049
|
_ && /* @__PURE__ */ o.jsx("span", { className: "address-search-spinner", "aria-hidden": !0 })
|
|
1050
1050
|
] }),
|
|
1051
1051
|
W && /* @__PURE__ */ o.jsxs("div", { className: "address-search-results", children: [
|
|
1052
|
-
/* @__PURE__ */ o.jsx("div", { id:
|
|
1052
|
+
/* @__PURE__ */ o.jsx("div", { id: b, role: "listbox", children: q ? /* @__PURE__ */ o.jsx("div", { className: "address-search-status", role: "alert", children: "La recherche d'adresse est indisponible." }) : D.length === 0 && !_ ? /* @__PURE__ */ o.jsx("div", { className: "address-search-status", children: "Aucune adresse trouvée." }) : D.map((C, N) => /* @__PURE__ */ o.jsxs(
|
|
1053
1053
|
"button",
|
|
1054
1054
|
{
|
|
1055
|
-
id: `${
|
|
1055
|
+
id: `${x}-option-${N}`,
|
|
1056
1056
|
type: "button",
|
|
1057
1057
|
role: "option",
|
|
1058
|
-
"aria-selected": L ===
|
|
1059
|
-
className: L ===
|
|
1060
|
-
onMouseDown: (
|
|
1061
|
-
onMouseEnter: () => A(
|
|
1058
|
+
"aria-selected": L === N,
|
|
1059
|
+
className: L === N ? "active" : "",
|
|
1060
|
+
onMouseDown: (E) => E.preventDefault(),
|
|
1061
|
+
onMouseEnter: () => A(N),
|
|
1062
1062
|
onClick: () => fe(C),
|
|
1063
1063
|
children: [
|
|
1064
1064
|
/* @__PURE__ */ o.jsx("span", { children: C.addressLine }),
|
|
@@ -1069,9 +1069,9 @@ const bs = new ys(), xs = ({
|
|
|
1069
1069
|
] })
|
|
1070
1070
|
]
|
|
1071
1071
|
},
|
|
1072
|
-
`${C.id}-${
|
|
1072
|
+
`${C.id}-${N}`
|
|
1073
1073
|
)) }),
|
|
1074
|
-
|
|
1074
|
+
f && y.trim() && !_ && /* @__PURE__ */ o.jsxs(
|
|
1075
1075
|
"button",
|
|
1076
1076
|
{
|
|
1077
1077
|
type: "button",
|
|
@@ -1080,7 +1080,7 @@ const bs = new ys(), xs = ({
|
|
|
1080
1080
|
onClick: $,
|
|
1081
1081
|
children: [
|
|
1082
1082
|
/* @__PURE__ */ o.jsx(J, { classIcon: "bi-pencil" }),
|
|
1083
|
-
|
|
1083
|
+
m
|
|
1084
1084
|
]
|
|
1085
1085
|
}
|
|
1086
1086
|
)
|
|
@@ -1098,8 +1098,8 @@ const bs = new ys(), xs = ({
|
|
|
1098
1098
|
disabled: c = !1,
|
|
1099
1099
|
style: d
|
|
1100
1100
|
}) => {
|
|
1101
|
-
const
|
|
1102
|
-
|
|
1101
|
+
const f = (m) => {
|
|
1102
|
+
m.stopPropagation(), t && t(m);
|
|
1103
1103
|
};
|
|
1104
1104
|
return /* @__PURE__ */ o.jsxs(
|
|
1105
1105
|
"button",
|
|
@@ -1107,7 +1107,7 @@ const bs = new ys(), xs = ({
|
|
|
1107
1107
|
id: s ?? "",
|
|
1108
1108
|
disabled: c,
|
|
1109
1109
|
type: "submit",
|
|
1110
|
-
onClick: (
|
|
1110
|
+
onClick: (m) => f(m),
|
|
1111
1111
|
className: e,
|
|
1112
1112
|
style: d,
|
|
1113
1113
|
children: [
|
|
@@ -1329,23 +1329,23 @@ function Fs(e) {
|
|
|
1329
1329
|
return As(gr("", null, null, null, [""], e = Ps(e), 0, [0], e));
|
|
1330
1330
|
}
|
|
1331
1331
|
function gr(e, t, r, n, a, s, i, l, c) {
|
|
1332
|
-
for (var d = 0,
|
|
1333
|
-
switch (
|
|
1332
|
+
for (var d = 0, f = 0, m = i, p = 0, h = 0, g = 0, v = 1, x = 1, b = 1, y = 0, O = "", D = a, j = s, _ = n, R = O; x; )
|
|
1333
|
+
switch (g = y, y = Ve()) {
|
|
1334
1334
|
case 40:
|
|
1335
|
-
if (
|
|
1336
|
-
vr(R += K(Hr(
|
|
1335
|
+
if (g != 108 && Ne(R, m - 1) == 58) {
|
|
1336
|
+
vr(R += K(Hr(y), "&", "&\f"), "&\f", Ga(d ? l[d - 1] : 0)) != -1 && (b = -1);
|
|
1337
1337
|
break;
|
|
1338
1338
|
}
|
|
1339
1339
|
case 34:
|
|
1340
1340
|
case 39:
|
|
1341
1341
|
case 91:
|
|
1342
|
-
R += Hr(
|
|
1342
|
+
R += Hr(y);
|
|
1343
1343
|
break;
|
|
1344
1344
|
case 9:
|
|
1345
1345
|
case 10:
|
|
1346
1346
|
case 13:
|
|
1347
1347
|
case 32:
|
|
1348
|
-
R += Is(
|
|
1348
|
+
R += Is(g);
|
|
1349
1349
|
break;
|
|
1350
1350
|
case 92:
|
|
1351
1351
|
R += $s(pr() - 1, 7);
|
|
@@ -1360,68 +1360,68 @@ function gr(e, t, r, n, a, s, i, l, c) {
|
|
|
1360
1360
|
R += "/";
|
|
1361
1361
|
}
|
|
1362
1362
|
break;
|
|
1363
|
-
case 123 *
|
|
1364
|
-
l[d++] = Ue(R) *
|
|
1365
|
-
case 125 *
|
|
1363
|
+
case 123 * v:
|
|
1364
|
+
l[d++] = Ue(R) * b;
|
|
1365
|
+
case 125 * v:
|
|
1366
1366
|
case 59:
|
|
1367
1367
|
case 0:
|
|
1368
|
-
switch (
|
|
1368
|
+
switch (y) {
|
|
1369
1369
|
case 0:
|
|
1370
1370
|
case 125:
|
|
1371
|
-
|
|
1372
|
-
case 59 +
|
|
1373
|
-
|
|
1371
|
+
x = 0;
|
|
1372
|
+
case 59 + f:
|
|
1373
|
+
b == -1 && (R = K(R, /\f/g, "")), h > 0 && Ue(R) - m && Vt(h > 32 ? na(R + ";", n, r, m - 1, c) : na(K(R, " ", "") + ";", n, r, m - 2, c), c);
|
|
1374
1374
|
break;
|
|
1375
1375
|
case 59:
|
|
1376
1376
|
R += ";";
|
|
1377
1377
|
default:
|
|
1378
|
-
if (Vt(_ = ra(R, t, r, d,
|
|
1379
|
-
if (
|
|
1380
|
-
gr(R, t, _, _,
|
|
1378
|
+
if (Vt(_ = ra(R, t, r, d, f, a, l, O, D = [], j = [], m, s), s), y === 123)
|
|
1379
|
+
if (f === 0)
|
|
1380
|
+
gr(R, t, _, _, D, s, m, l, j);
|
|
1381
1381
|
else
|
|
1382
|
-
switch (
|
|
1382
|
+
switch (p === 99 && Ne(R, 3) === 110 ? 100 : p) {
|
|
1383
1383
|
case 100:
|
|
1384
1384
|
case 108:
|
|
1385
1385
|
case 109:
|
|
1386
1386
|
case 115:
|
|
1387
|
-
gr(e, _, _, n && Vt(ra(e, _, _, 0, 0, a, l,
|
|
1387
|
+
gr(e, _, _, n && Vt(ra(e, _, _, 0, 0, a, l, O, a, D = [], m, j), j), a, j, m, l, n ? D : j);
|
|
1388
1388
|
break;
|
|
1389
1389
|
default:
|
|
1390
|
-
gr(R, _, _, _, [""],
|
|
1390
|
+
gr(R, _, _, _, [""], j, 0, l, j);
|
|
1391
1391
|
}
|
|
1392
1392
|
}
|
|
1393
|
-
d =
|
|
1393
|
+
d = f = h = 0, v = b = 1, O = R = "", m = i;
|
|
1394
1394
|
break;
|
|
1395
1395
|
case 58:
|
|
1396
|
-
|
|
1396
|
+
m = 1 + Ue(R), h = g;
|
|
1397
1397
|
default:
|
|
1398
|
-
if (
|
|
1399
|
-
if (
|
|
1400
|
-
--
|
|
1401
|
-
else if (
|
|
1398
|
+
if (v < 1) {
|
|
1399
|
+
if (y == 123)
|
|
1400
|
+
--v;
|
|
1401
|
+
else if (y == 125 && v++ == 0 && Rs() == 125)
|
|
1402
1402
|
continue;
|
|
1403
1403
|
}
|
|
1404
|
-
switch (R += Rn(
|
|
1404
|
+
switch (R += Rn(y), y * v) {
|
|
1405
1405
|
case 38:
|
|
1406
|
-
|
|
1406
|
+
b = f > 0 ? 1 : (R += "\f", -1);
|
|
1407
1407
|
break;
|
|
1408
1408
|
case 44:
|
|
1409
|
-
l[d++] = (Ue(R) - 1) *
|
|
1409
|
+
l[d++] = (Ue(R) - 1) * b, b = 1;
|
|
1410
1410
|
break;
|
|
1411
1411
|
case 64:
|
|
1412
|
-
ot() === 45 && (R += Hr(Ve())),
|
|
1412
|
+
ot() === 45 && (R += Hr(Ve())), p = ot(), f = m = Ue(O = R += Ms(pr())), y++;
|
|
1413
1413
|
break;
|
|
1414
1414
|
case 45:
|
|
1415
|
-
|
|
1415
|
+
g === 45 && Ue(R) == 2 && (v = 0);
|
|
1416
1416
|
}
|
|
1417
1417
|
}
|
|
1418
1418
|
return s;
|
|
1419
1419
|
}
|
|
1420
|
-
function ra(e, t, r, n, a, s, i, l, c, d,
|
|
1421
|
-
for (var
|
|
1422
|
-
for (var
|
|
1423
|
-
(
|
|
1424
|
-
return _r(e, t, r, a === 0 ? Cr : l, c, d,
|
|
1420
|
+
function ra(e, t, r, n, a, s, i, l, c, d, f, m) {
|
|
1421
|
+
for (var p = a - 1, h = a === 0 ? s : [""], g = Xa(h), v = 0, x = 0, b = 0; v < n; ++v)
|
|
1422
|
+
for (var y = 0, O = wt(e, p + 1, p = Ga(x = i[v])), D = e; y < g; ++y)
|
|
1423
|
+
(D = qa(x > 0 ? h[y] + " " + O : K(O, /&\f/g, h[y]))) && (c[b++] = D);
|
|
1424
|
+
return _r(e, t, r, a === 0 ? Cr : l, c, d, f, m);
|
|
1425
1425
|
}
|
|
1426
1426
|
function Ws(e, t, r, n) {
|
|
1427
1427
|
return _r(e, t, r, za, Rn(Ts()), wt(e, 2, -2), 0, n);
|
|
@@ -1878,8 +1878,8 @@ var li = function() {
|
|
|
1878
1878
|
if (l) {
|
|
1879
1879
|
var c = l.match(hi);
|
|
1880
1880
|
if (c) {
|
|
1881
|
-
var d = 0 | parseInt(c[1], 10),
|
|
1882
|
-
d !== 0 && (di(
|
|
1881
|
+
var d = 0 | parseInt(c[1], 10), f = c[2];
|
|
1882
|
+
d !== 0 && (di(f, d), mi(e, f, c[3]), e.getTag().insertRules(d, a)), a.length = 0;
|
|
1883
1883
|
} else a.push(l);
|
|
1884
1884
|
}
|
|
1885
1885
|
}
|
|
@@ -1955,18 +1955,18 @@ var io = function(e) {
|
|
|
1955
1955
|
var a = this;
|
|
1956
1956
|
this.options = Ie(Ie({}, xi), t), this.gs = r, this.names = new Map(n), this.server = !!t.isServer, !this.server && jr && fa && (fa = !1, da(this)), In(this, function() {
|
|
1957
1957
|
return function(s) {
|
|
1958
|
-
for (var i = s.getTag(), l = i.length, c = "", d = function(
|
|
1959
|
-
var
|
|
1960
|
-
return Sr.get(
|
|
1961
|
-
}(
|
|
1962
|
-
if (
|
|
1963
|
-
var
|
|
1964
|
-
if (
|
|
1965
|
-
var
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
}), c += "".concat(
|
|
1969
|
-
},
|
|
1958
|
+
for (var i = s.getTag(), l = i.length, c = "", d = function(m) {
|
|
1959
|
+
var p = function(b) {
|
|
1960
|
+
return Sr.get(b);
|
|
1961
|
+
}(m);
|
|
1962
|
+
if (p === void 0) return "continue";
|
|
1963
|
+
var h = s.names.get(p), g = i.getGroup(m);
|
|
1964
|
+
if (h === void 0 || !h.size || g.length === 0) return "continue";
|
|
1965
|
+
var v = "".concat(ct, ".g").concat(m, '[id="').concat(p, '"]'), x = "";
|
|
1966
|
+
h !== void 0 && h.forEach(function(b) {
|
|
1967
|
+
b.length > 0 && (x += "".concat(b, ","));
|
|
1968
|
+
}), c += "".concat(g).concat(v, '{content:"').concat(x, '"}').concat(Pn);
|
|
1969
|
+
}, f = 0; f < l; f++) d(f);
|
|
1970
1970
|
return c;
|
|
1971
1971
|
}(a);
|
|
1972
1972
|
});
|
|
@@ -2011,24 +2011,24 @@ function lo(e, t) {
|
|
|
2011
2011
|
});
|
|
2012
2012
|
}
|
|
2013
2013
|
function Si(e) {
|
|
2014
|
-
var t, r, n, a = St, s = a.options, i = s === void 0 ? St : s, l = a.plugins, c = l === void 0 ? Pr : l, d = function(
|
|
2015
|
-
return
|
|
2016
|
-
},
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
}), i.prefix &&
|
|
2020
|
-
var
|
|
2021
|
-
|
|
2022
|
-
var
|
|
2023
|
-
i.namespace && (
|
|
2024
|
-
var
|
|
2025
|
-
return wr(
|
|
2026
|
-
return
|
|
2027
|
-
})))),
|
|
2014
|
+
var t, r, n, a = St, s = a.options, i = s === void 0 ? St : s, l = a.plugins, c = l === void 0 ? Pr : l, d = function(p, h, g) {
|
|
2015
|
+
return g.startsWith(r) && g.endsWith(r) && g.replaceAll(r, "").length > 0 ? ".".concat(t) : p;
|
|
2016
|
+
}, f = c.slice();
|
|
2017
|
+
f.push(function(p) {
|
|
2018
|
+
p.type === Cr && p.value.includes("&") && (p.props[0] = p.props[0].replace(wi, r).replace(n, d));
|
|
2019
|
+
}), i.prefix && f.push(Us), f.push(Vs);
|
|
2020
|
+
var m = function(p, h, g, v) {
|
|
2021
|
+
h === void 0 && (h = ""), g === void 0 && (g = ""), v === void 0 && (v = "&"), t = v, r = h, n = new RegExp("\\".concat(r, "\\b"), "g");
|
|
2022
|
+
var x = p.replace(ji, ""), b = Fs(g || h ? "".concat(g, " ").concat(h, " { ").concat(x, " }") : x);
|
|
2023
|
+
i.namespace && (b = lo(b, i.namespace));
|
|
2024
|
+
var y = [];
|
|
2025
|
+
return wr(b, Ys(f.concat(Bs(function(O) {
|
|
2026
|
+
return y.push(O);
|
|
2027
|
+
})))), y;
|
|
2028
2028
|
};
|
|
2029
|
-
return
|
|
2030
|
-
return
|
|
2031
|
-
}, eo).toString() : "",
|
|
2029
|
+
return m.hash = c.length ? c.reduce(function(p, h) {
|
|
2030
|
+
return h.name || Ct(15), nt(p, h.name);
|
|
2031
|
+
}, eo).toString() : "", m;
|
|
2032
2032
|
}
|
|
2033
2033
|
var Di = new co(), un = Si(), uo = Ye.createContext({ shouldForwardProp: void 0, styleSheet: Di, stylis: un });
|
|
2034
2034
|
uo.Consumer;
|
|
@@ -2107,17 +2107,17 @@ var Oi = to(Rr), Ci = function() {
|
|
|
2107
2107
|
a = at(a, i), this.staticRulesId = i;
|
|
2108
2108
|
}
|
|
2109
2109
|
else {
|
|
2110
|
-
for (var c = nt(this.baseHash, n.hash), d = "",
|
|
2111
|
-
var
|
|
2112
|
-
if (typeof
|
|
2113
|
-
else if (
|
|
2114
|
-
var
|
|
2115
|
-
c = nt(c,
|
|
2110
|
+
for (var c = nt(this.baseHash, n.hash), d = "", f = 0; f < this.rules.length; f++) {
|
|
2111
|
+
var m = this.rules[f];
|
|
2112
|
+
if (typeof m == "string") d += m, process.env.NODE_ENV !== "production" && (c = nt(c, m));
|
|
2113
|
+
else if (m) {
|
|
2114
|
+
var p = ua(st(m, t, r, n));
|
|
2115
|
+
c = nt(c, p + f), d += p;
|
|
2116
2116
|
}
|
|
2117
2117
|
}
|
|
2118
2118
|
if (d) {
|
|
2119
|
-
var
|
|
2120
|
-
r.hasNameForId(this.componentId,
|
|
2119
|
+
var h = cn(c >>> 0);
|
|
2120
|
+
r.hasNameForId(this.componentId, h) || r.insertRules(this.componentId, h, n(d, ".".concat(h), void 0, this.componentId)), a = at(a, h);
|
|
2121
2121
|
}
|
|
2122
2122
|
}
|
|
2123
2123
|
return a;
|
|
@@ -2126,25 +2126,25 @@ var Oi = to(Rr), Ci = function() {
|
|
|
2126
2126
|
mo.Consumer;
|
|
2127
2127
|
var Xr = {}, pa = /* @__PURE__ */ new Set();
|
|
2128
2128
|
function ki(e, t, r) {
|
|
2129
|
-
var n = An(e), a = e, s = !qr(e), i = t.attrs, l = i === void 0 ? Pr : i, c = t.componentId, d = c === void 0 ? function(
|
|
2130
|
-
var _ = typeof
|
|
2129
|
+
var n = An(e), a = e, s = !qr(e), i = t.attrs, l = i === void 0 ? Pr : i, c = t.componentId, d = c === void 0 ? function(D, j) {
|
|
2130
|
+
var _ = typeof D != "string" ? "sc" : oa(D);
|
|
2131
2131
|
Xr[_] = (Xr[_] || 0) + 1;
|
|
2132
2132
|
var R = "".concat(_, "-").concat(Qs(Rr + _ + Xr[_]));
|
|
2133
|
-
return
|
|
2134
|
-
}(t.displayName, t.parentComponentId) : c,
|
|
2135
|
-
return qr(
|
|
2136
|
-
}(e) :
|
|
2133
|
+
return j ? "".concat(j, "-").concat(R) : R;
|
|
2134
|
+
}(t.displayName, t.parentComponentId) : c, f = t.displayName, m = f === void 0 ? function(D) {
|
|
2135
|
+
return qr(D) ? "styled.".concat(D) : "Styled(".concat(ro(D), ")");
|
|
2136
|
+
}(e) : f, p = t.displayName && t.componentId ? "".concat(oa(t.displayName), "-").concat(t.componentId) : t.componentId || d, h = n && a.attrs ? a.attrs.concat(l).filter(Boolean) : l, g = t.shouldForwardProp;
|
|
2137
2137
|
if (n && a.shouldForwardProp) {
|
|
2138
|
-
var
|
|
2138
|
+
var v = a.shouldForwardProp;
|
|
2139
2139
|
if (t.shouldForwardProp) {
|
|
2140
|
-
var
|
|
2141
|
-
|
|
2142
|
-
return
|
|
2140
|
+
var x = t.shouldForwardProp;
|
|
2141
|
+
g = function(D, j) {
|
|
2142
|
+
return v(D, j) && x(D, j);
|
|
2143
2143
|
};
|
|
2144
|
-
} else
|
|
2144
|
+
} else g = v;
|
|
2145
2145
|
}
|
|
2146
|
-
var
|
|
2147
|
-
function
|
|
2146
|
+
var b = new Ci(r, p, n ? a.componentStyle : void 0);
|
|
2147
|
+
function y(D, j) {
|
|
2148
2148
|
return function(_, R, q) {
|
|
2149
2149
|
var ie = _.attrs, W = _.componentStyle, ee = _.defaultProps, L = _.foldedComponentIds, A = _.styledComponentId, de = _.target, ce = Ye.useContext(mo), Q = ha(), fe = _.shouldForwardProp || Q.shouldForwardProp;
|
|
2150
2150
|
process.env.NODE_ENV !== "production" && Xn(A);
|
|
@@ -2154,33 +2154,33 @@ function ki(e, t, r) {
|
|
|
2154
2154
|
for (var k in _e) te[k] = k === "className" ? at(te[k], _e[k]) : k === "style" ? Ie(Ie({}, te[k]), _e[k]) : _e[k];
|
|
2155
2155
|
}
|
|
2156
2156
|
return w.className && (te.className = at(te.className, w.className)), te;
|
|
2157
|
-
}(ie, R, $), C = X.as || de,
|
|
2158
|
-
for (var
|
|
2157
|
+
}(ie, R, $), C = X.as || de, N = {};
|
|
2158
|
+
for (var E in X) X[E] === void 0 || E[0] === "$" || E === "as" || E === "theme" && X.theme === $ || (E === "forwardedAs" ? N.as = X.forwardedAs : fe && !fe(E, C) || (N[E] = X[E], fe || process.env.NODE_ENV !== "development" || Es(E) || pa.has(E) || !sn.has(C) || (pa.add(E), console.warn('styled-components: it looks like an unknown prop "'.concat(E, '" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));
|
|
2159
2159
|
var H = function(oe, w) {
|
|
2160
2160
|
var pe = ha(), he = oe.generateAndInjectStyles(w, pe.styleSheet, pe.stylis);
|
|
2161
2161
|
return process.env.NODE_ENV !== "production" && Xn(he), he;
|
|
2162
2162
|
}(W, X);
|
|
2163
2163
|
process.env.NODE_ENV !== "production" && _.warnTooManyClasses && _.warnTooManyClasses(H);
|
|
2164
2164
|
var be = at(L, A);
|
|
2165
|
-
return H && (be += " " + H), X.className && (be += " " + X.className),
|
|
2166
|
-
}(
|
|
2165
|
+
return H && (be += " " + H), X.className && (be += " " + X.className), N[qr(C) && !sn.has(C) ? "class" : "className"] = be, q && (N.ref = q), Jo(C, N);
|
|
2166
|
+
}(O, D, j);
|
|
2167
2167
|
}
|
|
2168
|
-
|
|
2169
|
-
var
|
|
2170
|
-
return
|
|
2168
|
+
y.displayName = m;
|
|
2169
|
+
var O = Ye.forwardRef(y);
|
|
2170
|
+
return O.attrs = h, O.componentStyle = b, O.displayName = m, O.shouldForwardProp = g, O.foldedComponentIds = n ? at(a.foldedComponentIds, a.styledComponentId) : "", O.styledComponentId = p, O.target = n ? a.target : e, Object.defineProperty(O, "defaultProps", { get: function() {
|
|
2171
2171
|
return this._foldedDefaultProps;
|
|
2172
|
-
}, set: function(
|
|
2173
|
-
this._foldedDefaultProps = n ? function(
|
|
2172
|
+
}, set: function(D) {
|
|
2173
|
+
this._foldedDefaultProps = n ? function(j) {
|
|
2174
2174
|
for (var _ = [], R = 1; R < arguments.length; R++) _[R - 1] = arguments[R];
|
|
2175
|
-
for (var q = 0, ie = _; q < ie.length; q++) ln(
|
|
2176
|
-
return
|
|
2177
|
-
}({}, a.defaultProps,
|
|
2178
|
-
} }), process.env.NODE_ENV !== "production" && (Gs(
|
|
2175
|
+
for (var q = 0, ie = _; q < ie.length; q++) ln(j, ie[q], !0);
|
|
2176
|
+
return j;
|
|
2177
|
+
}({}, a.defaultProps, D) : D;
|
|
2178
|
+
} }), process.env.NODE_ENV !== "production" && (Gs(m, p), O.warnTooManyClasses = /* @__PURE__ */ function(D, j) {
|
|
2179
2179
|
var _ = {}, R = !1;
|
|
2180
2180
|
return function(q) {
|
|
2181
2181
|
if (!R && (_[q] = !0, Object.keys(_).length >= 200)) {
|
|
2182
|
-
var ie =
|
|
2183
|
-
console.warn("Over ".concat(200, " classes were generated for component ").concat(
|
|
2182
|
+
var ie = j ? ' with the id of "'.concat(j, '"') : "";
|
|
2183
|
+
console.warn("Over ".concat(200, " classes were generated for component ").concat(D).concat(ie, `.
|
|
2184
2184
|
`) + `Consider using the attrs method, together with a style object for frequently changed styles.
|
|
2185
2185
|
Example:
|
|
2186
2186
|
const Component = styled.div.attrs(props => ({
|
|
@@ -2192,9 +2192,9 @@ Example:
|
|
|
2192
2192
|
<Component />`), R = !0, _ = {};
|
|
2193
2193
|
}
|
|
2194
2194
|
};
|
|
2195
|
-
}(
|
|
2196
|
-
return ".".concat(
|
|
2197
|
-
}), s && so(
|
|
2195
|
+
}(m, p)), In(O, function() {
|
|
2196
|
+
return ".".concat(O.styledComponentId);
|
|
2197
|
+
}), s && so(O, e, { attrs: !0, componentStyle: !0, displayName: !0, foldedComponentIds: !0, shouldForwardProp: !0, styledComponentId: !0, target: !0 }), O;
|
|
2198
2198
|
}
|
|
2199
2199
|
function ga(e, t) {
|
|
2200
2200
|
for (var r = [e[0]], n = 0, a = t.length; n < a; n += 1) r.push(t[n], e[n + 1]);
|
|
@@ -2259,23 +2259,23 @@ const _i = $n.div`
|
|
|
2259
2259
|
closeOverlay: l,
|
|
2260
2260
|
usePortal: c = !0,
|
|
2261
2261
|
matchReferenceWidth: d = !1
|
|
2262
|
-
},
|
|
2263
|
-
const { activeOverlayId:
|
|
2262
|
+
}, f) => {
|
|
2263
|
+
const { activeOverlayId: m, setActiveOverlay: p } = Ss(), [h, g] = U(a || !1), [v, x] = U(
|
|
2264
2264
|
r ?? { top: 0, left: 0 }
|
|
2265
|
-
), [
|
|
2266
|
-
Or(
|
|
2265
|
+
), [b, y] = U(), [O, D] = U(!1), j = me(null), _ = Fa();
|
|
2266
|
+
Or(f, () => ({
|
|
2267
2267
|
setCoords: (W) => {
|
|
2268
|
-
|
|
2268
|
+
x(W), D(!0);
|
|
2269
2269
|
}
|
|
2270
2270
|
})), ae(() => {
|
|
2271
|
-
|
|
2272
|
-
}, [
|
|
2271
|
+
m !== _ && g(!1);
|
|
2272
|
+
}, [m, _]), Qo(() => {
|
|
2273
2273
|
const W = () => {
|
|
2274
2274
|
var ee;
|
|
2275
2275
|
if (!t && r)
|
|
2276
|
-
|
|
2276
|
+
x(r), D(!0);
|
|
2277
2277
|
else if (e) {
|
|
2278
|
-
const L = e.getBoundingClientRect(), A = (ee =
|
|
2278
|
+
const L = e.getBoundingClientRect(), A = (ee = j.current) == null ? void 0 : ee.getBoundingClientRect(), { innerWidth: de, innerHeight: ce } = window;
|
|
2279
2279
|
if (A) {
|
|
2280
2280
|
let Q, fe;
|
|
2281
2281
|
const $ = {
|
|
@@ -2304,47 +2304,47 @@ const _i = $n.div`
|
|
|
2304
2304
|
left: L.right
|
|
2305
2305
|
})
|
|
2306
2306
|
};
|
|
2307
|
-
t && $[t] ? ({ top: Q, left: fe } = $[t](), (t === "bottomLeft" || t === "bottomRight") && Q + A.height > ce && L.top - A.height >= 0 && (Q = L.top - A.height)) : (fe = L.right, Q = L.bottom, L.right + A.width > de && (fe = L.left - A.width), L.bottom + A.height > ce && (Q = L.top - A.height)),
|
|
2307
|
+
t && $[t] ? ({ top: Q, left: fe } = $[t](), (t === "bottomLeft" || t === "bottomRight") && Q + A.height > ce && L.top - A.height >= 0 && (Q = L.top - A.height)) : (fe = L.right, Q = L.bottom, L.right + A.width > de && (fe = L.left - A.width), L.bottom + A.height > ce && (Q = L.top - A.height)), x({
|
|
2308
2308
|
top: Q + window.scrollY,
|
|
2309
2309
|
left: (fe < 0 ? 0 : fe) + window.scrollX
|
|
2310
|
-
}), d &&
|
|
2310
|
+
}), d && y(L.width), D(!0);
|
|
2311
2311
|
}
|
|
2312
2312
|
}
|
|
2313
2313
|
};
|
|
2314
|
-
return
|
|
2314
|
+
return h || D(!1), h && (W(), window.addEventListener("resize", W), window.addEventListener("scroll", W, !0)), () => {
|
|
2315
2315
|
window.removeEventListener("resize", W), window.removeEventListener("scroll", W, !0);
|
|
2316
2316
|
};
|
|
2317
|
-
}, [e,
|
|
2317
|
+
}, [e, h, t, d]);
|
|
2318
2318
|
const R = () => {
|
|
2319
|
-
|
|
2319
|
+
g(!0), p(_);
|
|
2320
2320
|
}, q = I(
|
|
2321
2321
|
(W) => {
|
|
2322
|
-
W.stopPropagation(),
|
|
2322
|
+
W.stopPropagation(), g(!1), p(null), l && l(!1);
|
|
2323
2323
|
},
|
|
2324
|
-
[l,
|
|
2324
|
+
[l, p]
|
|
2325
2325
|
);
|
|
2326
2326
|
if (ae(() => {
|
|
2327
2327
|
const W = (ee) => {
|
|
2328
|
-
|
|
2328
|
+
j.current && !j.current.contains(ee.target) && (g(!1), p(null), l && l(!1));
|
|
2329
2329
|
};
|
|
2330
|
-
return
|
|
2330
|
+
return h && document.addEventListener("mousedown", W, !0), () => {
|
|
2331
2331
|
document.removeEventListener("mousedown", W, !0);
|
|
2332
2332
|
};
|
|
2333
|
-
}, [
|
|
2333
|
+
}, [h, l, p]), ae(() => {
|
|
2334
2334
|
a && R();
|
|
2335
|
-
}, [a]), !
|
|
2335
|
+
}, [a]), !h) return null;
|
|
2336
2336
|
const ie = /* @__PURE__ */ o.jsx(
|
|
2337
2337
|
_i,
|
|
2338
2338
|
{
|
|
2339
|
-
ref:
|
|
2340
|
-
$top:
|
|
2341
|
-
$left:
|
|
2342
|
-
$minWidth:
|
|
2343
|
-
$visible:
|
|
2339
|
+
ref: j,
|
|
2340
|
+
$top: v.top,
|
|
2341
|
+
$left: v.left,
|
|
2342
|
+
$minWidth: b,
|
|
2343
|
+
$visible: O,
|
|
2344
2344
|
children: /* @__PURE__ */ o.jsxs(
|
|
2345
2345
|
"div",
|
|
2346
2346
|
{
|
|
2347
|
-
className: `overlayPanel ${s || ""} ${
|
|
2347
|
+
className: `overlayPanel ${s || ""} ${v.top > 0 || v.left > 0 ? "visible" : "hide"}`,
|
|
2348
2348
|
children: [
|
|
2349
2349
|
/* @__PURE__ */ o.jsx(
|
|
2350
2350
|
"button",
|
|
@@ -2361,7 +2361,7 @@ const _i = $n.div`
|
|
|
2361
2361
|
)
|
|
2362
2362
|
}
|
|
2363
2363
|
);
|
|
2364
|
-
return c ? Cn.createPortal(ie, document.body) : /* @__PURE__ */ o.jsx("div", { className: "overlayPanel overlayPanel--no-portal ", ref:
|
|
2364
|
+
return c ? Cn.createPortal(ie, document.body) : /* @__PURE__ */ o.jsx("div", { className: "overlayPanel overlayPanel--no-portal ", ref: j, children: /* @__PURE__ */ o.jsx("div", { onClick: (W) => W.stopPropagation(), children: n }) });
|
|
2365
2365
|
}
|
|
2366
2366
|
), eu = ({
|
|
2367
2367
|
className: e,
|
|
@@ -2372,32 +2372,32 @@ const _i = $n.div`
|
|
|
2372
2372
|
disabled: s = !1,
|
|
2373
2373
|
id: i
|
|
2374
2374
|
}) => {
|
|
2375
|
-
const l = (
|
|
2376
|
-
|
|
2377
|
-
}, c = me(null), [d,
|
|
2378
|
-
(
|
|
2379
|
-
|
|
2375
|
+
const l = (g) => {
|
|
2376
|
+
g.preventDefault(), t && t(g);
|
|
2377
|
+
}, c = me(null), [d, f] = U(!1), m = I(
|
|
2378
|
+
(g) => {
|
|
2379
|
+
g.stopPropagation(), n && f(!d);
|
|
2380
2380
|
},
|
|
2381
|
-
[d,
|
|
2382
|
-
),
|
|
2383
|
-
id:
|
|
2384
|
-
icon:
|
|
2385
|
-
name:
|
|
2381
|
+
[d, f]
|
|
2382
|
+
), p = Le(() => n ? n.map((g, v) => ({
|
|
2383
|
+
id: g.id ?? v,
|
|
2384
|
+
icon: g.icon,
|
|
2385
|
+
name: g.label,
|
|
2386
2386
|
children: /* @__PURE__ */ o.jsx(
|
|
2387
2387
|
Et,
|
|
2388
2388
|
{
|
|
2389
|
-
classIcon:
|
|
2389
|
+
classIcon: g.icon,
|
|
2390
2390
|
sizeIcon: Me.LARGE,
|
|
2391
|
-
onClick: (
|
|
2392
|
-
|
|
2391
|
+
onClick: (x) => {
|
|
2392
|
+
x.stopPropagation(), h(), g.onClick && g.onClick(g);
|
|
2393
2393
|
},
|
|
2394
|
-
title:
|
|
2394
|
+
title: g.label || ""
|
|
2395
2395
|
},
|
|
2396
|
-
|
|
2396
|
+
v
|
|
2397
2397
|
)
|
|
2398
|
-
})) : [], [n]),
|
|
2399
|
-
|
|
2400
|
-
}, [
|
|
2398
|
+
})) : [], [n]), h = I(() => {
|
|
2399
|
+
f(!1);
|
|
2400
|
+
}, [f]);
|
|
2401
2401
|
return /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
2402
2402
|
/* @__PURE__ */ o.jsxs(
|
|
2403
2403
|
"button",
|
|
@@ -2405,7 +2405,7 @@ const _i = $n.div`
|
|
|
2405
2405
|
id: i ?? "",
|
|
2406
2406
|
disabled: s,
|
|
2407
2407
|
type: "submit",
|
|
2408
|
-
onClick: (
|
|
2408
|
+
onClick: (g) => l(g),
|
|
2409
2409
|
className: ` ${e} button-actions`,
|
|
2410
2410
|
children: [
|
|
2411
2411
|
/* @__PURE__ */ o.jsx("span", { className: "mr-2 flex-1", children: r }),
|
|
@@ -2414,7 +2414,7 @@ const _i = $n.div`
|
|
|
2414
2414
|
{
|
|
2415
2415
|
className: "ml-2",
|
|
2416
2416
|
ref: c,
|
|
2417
|
-
onClick: (
|
|
2417
|
+
onClick: (g) => m(g),
|
|
2418
2418
|
children: /* @__PURE__ */ o.jsx(J, { classIcon: "bi-chevron-up" })
|
|
2419
2419
|
}
|
|
2420
2420
|
)
|
|
@@ -2426,9 +2426,9 @@ const _i = $n.div`
|
|
|
2426
2426
|
{
|
|
2427
2427
|
show: d,
|
|
2428
2428
|
position: a,
|
|
2429
|
-
closeOverlay:
|
|
2429
|
+
closeOverlay: f,
|
|
2430
2430
|
referenceElement: c.current,
|
|
2431
|
-
children: /* @__PURE__ */ o.jsx("div", { children: /* @__PURE__ */ o.jsx(Ba, { className: "card-action-menu", items:
|
|
2431
|
+
children: /* @__PURE__ */ o.jsx("div", { children: /* @__PURE__ */ o.jsx(Ba, { className: "card-action-menu", items: p }) })
|
|
2432
2432
|
}
|
|
2433
2433
|
)
|
|
2434
2434
|
] });
|
|
@@ -2440,15 +2440,15 @@ const _i = $n.div`
|
|
|
2440
2440
|
containerClassName: a
|
|
2441
2441
|
}) => {
|
|
2442
2442
|
const s = me(null), i = (c) => {
|
|
2443
|
-
var
|
|
2444
|
-
const d = (
|
|
2443
|
+
var f;
|
|
2444
|
+
const d = (f = c.target.files) == null ? void 0 : f[0];
|
|
2445
2445
|
if (d && e) {
|
|
2446
|
-
const
|
|
2447
|
-
|
|
2448
|
-
var
|
|
2449
|
-
const
|
|
2450
|
-
e(d,
|
|
2451
|
-
},
|
|
2446
|
+
const m = new FileReader();
|
|
2447
|
+
m.onload = (p) => {
|
|
2448
|
+
var g;
|
|
2449
|
+
const h = (g = p.target) == null ? void 0 : g.result;
|
|
2450
|
+
e(d, h);
|
|
2451
|
+
}, m.readAsArrayBuffer(d);
|
|
2452
2452
|
}
|
|
2453
2453
|
}, l = () => {
|
|
2454
2454
|
var c;
|
|
@@ -2484,35 +2484,35 @@ const _i = $n.div`
|
|
|
2484
2484
|
}) => {
|
|
2485
2485
|
const i = me(null), [l, c] = U(
|
|
2486
2486
|
a
|
|
2487
|
-
), d = me(null), [
|
|
2487
|
+
), d = me(null), [f, m] = U(t ?? !1);
|
|
2488
2488
|
ae(() => {
|
|
2489
|
-
t &&
|
|
2489
|
+
t && m(t);
|
|
2490
2490
|
}, [t]);
|
|
2491
|
-
const
|
|
2492
|
-
(
|
|
2493
|
-
e.length !== 0 && (
|
|
2491
|
+
const p = I(
|
|
2492
|
+
(v, x) => {
|
|
2493
|
+
e.length !== 0 && (v.preventDefault(), c("bottomRight"), s && s(x));
|
|
2494
2494
|
},
|
|
2495
2495
|
[c, s]
|
|
2496
|
-
),
|
|
2497
|
-
c(void 0),
|
|
2498
|
-
}, [
|
|
2499
|
-
let
|
|
2500
|
-
return
|
|
2501
|
-
id:
|
|
2502
|
-
icon:
|
|
2503
|
-
name:
|
|
2496
|
+
), h = I(() => {
|
|
2497
|
+
c(void 0), m(!1), s && s(!1);
|
|
2498
|
+
}, [m, c, s]), g = Le(() => e == null ? void 0 : e.filter((v) => v.type === "menu").map((v, x) => {
|
|
2499
|
+
let b = v.label || "";
|
|
2500
|
+
return v.setLabel && r && (b = v.setLabel(r)), {
|
|
2501
|
+
id: x,
|
|
2502
|
+
icon: v.icon,
|
|
2503
|
+
name: v.label,
|
|
2504
2504
|
children: /* @__PURE__ */ o.jsx(
|
|
2505
2505
|
Et,
|
|
2506
2506
|
{
|
|
2507
|
-
classIcon:
|
|
2508
|
-
disabled: r &&
|
|
2507
|
+
classIcon: v.icon,
|
|
2508
|
+
disabled: r && v.disabled ? v.disabled(r) : !1,
|
|
2509
2509
|
sizeIcon: Me.LARGE,
|
|
2510
|
-
onClick: (
|
|
2511
|
-
|
|
2510
|
+
onClick: (y) => {
|
|
2511
|
+
y.stopPropagation(), h(), v.onClick && r && v.onClick(r);
|
|
2512
2512
|
},
|
|
2513
|
-
title:
|
|
2513
|
+
title: b
|
|
2514
2514
|
},
|
|
2515
|
-
|
|
2515
|
+
x
|
|
2516
2516
|
)
|
|
2517
2517
|
};
|
|
2518
2518
|
}), [e]);
|
|
@@ -2521,8 +2521,8 @@ const _i = $n.div`
|
|
|
2521
2521
|
"div",
|
|
2522
2522
|
{
|
|
2523
2523
|
ref: d,
|
|
2524
|
-
className: `card-action ${e.filter((
|
|
2525
|
-
onClick: (
|
|
2524
|
+
className: `card-action ${e.filter((v) => v.type === "menu").length ? "visible" : "hidden"}`,
|
|
2525
|
+
onClick: (v) => p(v, !f),
|
|
2526
2526
|
children: [
|
|
2527
2527
|
/* @__PURE__ */ o.jsx(
|
|
2528
2528
|
J,
|
|
@@ -2541,16 +2541,16 @@ const _i = $n.div`
|
|
|
2541
2541
|
]
|
|
2542
2542
|
}
|
|
2543
2543
|
),
|
|
2544
|
-
|
|
2544
|
+
f && d.current && /* @__PURE__ */ o.jsx(
|
|
2545
2545
|
Ar,
|
|
2546
2546
|
{
|
|
2547
2547
|
position: l,
|
|
2548
|
-
show:
|
|
2548
|
+
show: f,
|
|
2549
2549
|
ref: i,
|
|
2550
|
-
closeOverlay:
|
|
2550
|
+
closeOverlay: h,
|
|
2551
2551
|
coordonnees: n,
|
|
2552
2552
|
referenceElement: d.current,
|
|
2553
|
-
children: /* @__PURE__ */ o.jsx("div", { children: /* @__PURE__ */ o.jsx(Ba, { className: "card-action-menu", items:
|
|
2553
|
+
children: /* @__PURE__ */ o.jsx("div", { children: /* @__PURE__ */ o.jsx(Ba, { className: "card-action-menu", items: g }) })
|
|
2554
2554
|
}
|
|
2555
2555
|
)
|
|
2556
2556
|
] });
|
|
@@ -2637,30 +2637,30 @@ const _i = $n.div`
|
|
|
2637
2637
|
responsive: l = "app",
|
|
2638
2638
|
children: c
|
|
2639
2639
|
}) => {
|
|
2640
|
-
const [d,
|
|
2641
|
-
|
|
2642
|
-
},
|
|
2643
|
-
(
|
|
2644
|
-
if (
|
|
2645
|
-
return
|
|
2646
|
-
|
|
2640
|
+
const [d, f] = U(!1), [m, p] = U(!1), [h, g] = U(), v = (O, D) => {
|
|
2641
|
+
O.stopPropagation(), a && a(D);
|
|
2642
|
+
}, x = I(
|
|
2643
|
+
(O, D) => {
|
|
2644
|
+
if (O.stopPropagation(), m)
|
|
2645
|
+
return g(void 0), p(!1);
|
|
2646
|
+
O.target.closest(".qte") || O.target.closest(".card-action-menu button") || O.target.closest(".card-actions") || (f(!d), n && O.button !== 2 ? n(D) : (g({ top: O.clientY, left: O.clientX }), p(!0)));
|
|
2647
2647
|
},
|
|
2648
2648
|
[
|
|
2649
|
-
|
|
2650
|
-
|
|
2649
|
+
f,
|
|
2650
|
+
g,
|
|
2651
2651
|
n,
|
|
2652
|
-
v,
|
|
2653
2652
|
m,
|
|
2653
|
+
p,
|
|
2654
2654
|
d
|
|
2655
2655
|
]
|
|
2656
|
-
),
|
|
2656
|
+
), b = Le(() => s ? [
|
|
2657
2657
|
{
|
|
2658
2658
|
xs: 12,
|
|
2659
2659
|
md: 6,
|
|
2660
2660
|
children: /* @__PURE__ */ o.jsx("div", { className: "card-custom-action", children: s })
|
|
2661
2661
|
}
|
|
2662
|
-
] : [], [s]),
|
|
2663
|
-
...
|
|
2662
|
+
] : [], [s]), y = Le(() => [
|
|
2663
|
+
...b,
|
|
2664
2664
|
{
|
|
2665
2665
|
xs: 12,
|
|
2666
2666
|
md: s ? 6 : 12,
|
|
@@ -2670,8 +2670,8 @@ const _i = $n.div`
|
|
|
2670
2670
|
return /* @__PURE__ */ o.jsxs(
|
|
2671
2671
|
"div",
|
|
2672
2672
|
{
|
|
2673
|
-
onContextMenu: (
|
|
2674
|
-
onMouseDown: (
|
|
2673
|
+
onContextMenu: (O) => O.preventDefault(),
|
|
2674
|
+
onMouseDown: (O) => x(O, e),
|
|
2675
2675
|
className: `card ${r ?? ""} ${d ? "card--active" : ""} `,
|
|
2676
2676
|
children: [
|
|
2677
2677
|
c,
|
|
@@ -2681,23 +2681,23 @@ const _i = $n.div`
|
|
|
2681
2681
|
e.title && /* @__PURE__ */ o.jsx("div", { className: "card-title", children: e.title }),
|
|
2682
2682
|
e.description && /* @__PURE__ */ o.jsx("div", { className: "card-content", children: e.description })
|
|
2683
2683
|
] }),
|
|
2684
|
-
|
|
2684
|
+
y.length > 0 && /* @__PURE__ */ o.jsx("div", { className: "card-footer", children: /* @__PURE__ */ o.jsx($i, { items: y, responsive: l }) }),
|
|
2685
2685
|
a && /* @__PURE__ */ o.jsx(
|
|
2686
2686
|
"div",
|
|
2687
2687
|
{
|
|
2688
2688
|
className: "ml-2 cursor-pointer",
|
|
2689
|
-
onClick: (
|
|
2689
|
+
onClick: (O) => v(O, e),
|
|
2690
2690
|
children: /* @__PURE__ */ o.jsx(J, { classIcon: "bi-trash3" })
|
|
2691
2691
|
}
|
|
2692
2692
|
),
|
|
2693
2693
|
t && /* @__PURE__ */ o.jsx(
|
|
2694
2694
|
Ti,
|
|
2695
2695
|
{
|
|
2696
|
-
openActions:
|
|
2697
|
-
setOpenActions:
|
|
2696
|
+
openActions: m,
|
|
2697
|
+
setOpenActions: p,
|
|
2698
2698
|
actions: t,
|
|
2699
2699
|
item: e,
|
|
2700
|
-
positions:
|
|
2700
|
+
positions: h,
|
|
2701
2701
|
positionOverlay: i
|
|
2702
2702
|
}
|
|
2703
2703
|
)
|
|
@@ -2718,38 +2718,38 @@ const _i = $n.div`
|
|
|
2718
2718
|
}) => {
|
|
2719
2719
|
const [a, s] = U(0), i = e.length, [l, c] = U(1);
|
|
2720
2720
|
ae(() => {
|
|
2721
|
-
const
|
|
2722
|
-
const
|
|
2723
|
-
if (n.xl &&
|
|
2721
|
+
const g = () => {
|
|
2722
|
+
const v = window.innerWidth;
|
|
2723
|
+
if (n.xl && v >= 1200)
|
|
2724
2724
|
return c(n.xl);
|
|
2725
|
-
if (n.lg &&
|
|
2725
|
+
if (n.lg && v >= 992)
|
|
2726
2726
|
return c(n.lg);
|
|
2727
|
-
if (n.md &&
|
|
2727
|
+
if (n.md && v >= 768)
|
|
2728
2728
|
return c(n.md);
|
|
2729
|
-
if (n.sm &&
|
|
2729
|
+
if (n.sm && v >= 576)
|
|
2730
2730
|
return c(n.sm);
|
|
2731
2731
|
};
|
|
2732
|
-
return
|
|
2732
|
+
return g(), window.addEventListener("resize", g), () => window.removeEventListener("resize", g);
|
|
2733
2733
|
}, [n]);
|
|
2734
2734
|
const d = I(
|
|
2735
|
-
(
|
|
2736
|
-
|
|
2737
|
-
(
|
|
2735
|
+
(g) => {
|
|
2736
|
+
g.preventDefault(), s(
|
|
2737
|
+
(v) => Math.min(v + r, i - l)
|
|
2738
2738
|
);
|
|
2739
2739
|
},
|
|
2740
2740
|
[s]
|
|
2741
|
-
),
|
|
2742
|
-
(
|
|
2743
|
-
|
|
2741
|
+
), f = I(
|
|
2742
|
+
(g) => {
|
|
2743
|
+
g.preventDefault(), s((v) => Math.max(v - r, 0));
|
|
2744
2744
|
},
|
|
2745
2745
|
[s]
|
|
2746
|
-
),
|
|
2746
|
+
), m = a + r >= i - l + 1, p = i <= l, h = a <= 0;
|
|
2747
2747
|
return /* @__PURE__ */ o.jsxs("div", { className: "carousel", children: [
|
|
2748
|
-
t && !
|
|
2748
|
+
t && !p && /* @__PURE__ */ o.jsx(
|
|
2749
2749
|
"div",
|
|
2750
2750
|
{
|
|
2751
|
-
className: `carousel-control prev ${
|
|
2752
|
-
onClick:
|
|
2751
|
+
className: `carousel-control prev ${h && "disabled"}`,
|
|
2752
|
+
onClick: f,
|
|
2753
2753
|
children: /* @__PURE__ */ o.jsx(J, { classIcon: "bi-chevron-left" })
|
|
2754
2754
|
}
|
|
2755
2755
|
),
|
|
@@ -2762,7 +2762,7 @@ const _i = $n.div`
|
|
|
2762
2762
|
transform: `translateX(-${a * 100 / l}%)`,
|
|
2763
2763
|
transition: "transform 0.5s ease-in-out"
|
|
2764
2764
|
},
|
|
2765
|
-
children: Ye.Children.map(e, (
|
|
2765
|
+
children: Ye.Children.map(e, (g) => /* @__PURE__ */ o.jsx(
|
|
2766
2766
|
"div",
|
|
2767
2767
|
{
|
|
2768
2768
|
className: "carousel-slide",
|
|
@@ -2770,15 +2770,15 @@ const _i = $n.div`
|
|
|
2770
2770
|
minWidth: `${100 / l}%`,
|
|
2771
2771
|
boxSizing: "border-box"
|
|
2772
2772
|
},
|
|
2773
|
-
children:
|
|
2773
|
+
children: g
|
|
2774
2774
|
}
|
|
2775
2775
|
))
|
|
2776
2776
|
}
|
|
2777
2777
|
) }),
|
|
2778
|
-
t && !
|
|
2778
|
+
t && !p && /* @__PURE__ */ o.jsx(
|
|
2779
2779
|
"div",
|
|
2780
2780
|
{
|
|
2781
|
-
className: `carousel-control next ${
|
|
2781
|
+
className: `carousel-control next ${m && "disabled"}`,
|
|
2782
2782
|
onClick: d,
|
|
2783
2783
|
children: /* @__PURE__ */ o.jsx(J, { classIcon: "bi-chevron-right" })
|
|
2784
2784
|
}
|
|
@@ -2801,29 +2801,29 @@ const _i = $n.div`
|
|
|
2801
2801
|
c(n);
|
|
2802
2802
|
}, [n]);
|
|
2803
2803
|
const d = Le(() => {
|
|
2804
|
-
const
|
|
2805
|
-
for (let
|
|
2806
|
-
const
|
|
2807
|
-
for (let
|
|
2808
|
-
const
|
|
2809
|
-
(
|
|
2804
|
+
const m = [];
|
|
2805
|
+
for (let p = 0; p < i; p++) {
|
|
2806
|
+
const h = [];
|
|
2807
|
+
for (let g = 0; g < s; g++) {
|
|
2808
|
+
const v = g + p * s, x = r == null ? void 0 : r.find(
|
|
2809
|
+
(b) => b.position === v + 1
|
|
2810
2810
|
);
|
|
2811
|
-
|
|
2812
|
-
/* @__PURE__ */ o.jsx(Mi, { onClick: a, cell:
|
|
2813
|
-
) :
|
|
2814
|
-
/* @__PURE__ */ o.jsx("div", { className: "cell cell--empty" }, `${
|
|
2811
|
+
x ? h.push(
|
|
2812
|
+
/* @__PURE__ */ o.jsx(Mi, { onClick: a, cell: x }, `${p}-${g}`)
|
|
2813
|
+
) : h.push(
|
|
2814
|
+
/* @__PURE__ */ o.jsx("div", { className: "cell cell--empty" }, `${p}-${g}`)
|
|
2815
2815
|
);
|
|
2816
2816
|
}
|
|
2817
|
-
|
|
2818
|
-
/* @__PURE__ */ o.jsx("div", { className: "row", children:
|
|
2817
|
+
m.push(
|
|
2818
|
+
/* @__PURE__ */ o.jsx("div", { className: "row", children: h }, p)
|
|
2819
2819
|
);
|
|
2820
2820
|
}
|
|
2821
|
-
return
|
|
2822
|
-
}, [s, i, l]),
|
|
2821
|
+
return m;
|
|
2822
|
+
}, [s, i, l]), f = Le(
|
|
2823
2823
|
() => ({ "--rows": String(i) }),
|
|
2824
2824
|
[i]
|
|
2825
2825
|
);
|
|
2826
|
-
return /* @__PURE__ */ o.jsx("div", { className: "damier", style:
|
|
2826
|
+
return /* @__PURE__ */ o.jsx("div", { className: "damier", style: f, children: d });
|
|
2827
2827
|
};
|
|
2828
2828
|
var Ae = /* @__PURE__ */ ((e) => (e.ADDRESS = "address", e.TEXT = "text", e.BUTTON = "button", e.EMAIL = "email", e.HIDDEN = "hidden", e.PASSWORD = "password", e.NUMBER = "number", e.CHECKBOX = "checkbox", e.RADIO = "radio", e.DATE = "date", e.SELECT = "select", e.TEXTAREA = "textarea", e.PRICE = "price", e))(Ae || {});
|
|
2829
2829
|
const Ut = Je(
|
|
@@ -2838,25 +2838,25 @@ const Ut = Je(
|
|
|
2838
2838
|
inputMode: l,
|
|
2839
2839
|
minLength: c,
|
|
2840
2840
|
maxLength: d,
|
|
2841
|
-
autoFocus:
|
|
2842
|
-
disabled:
|
|
2843
|
-
required:
|
|
2844
|
-
autoComplete:
|
|
2845
|
-
tabIndex:
|
|
2846
|
-
step:
|
|
2847
|
-
checked:
|
|
2848
|
-
onChange:
|
|
2849
|
-
onBlur:
|
|
2850
|
-
onClick:
|
|
2851
|
-
handleKeyDown:
|
|
2852
|
-
},
|
|
2841
|
+
autoFocus: f = !1,
|
|
2842
|
+
disabled: m = !1,
|
|
2843
|
+
required: p = !1,
|
|
2844
|
+
autoComplete: h,
|
|
2845
|
+
tabIndex: g = 0,
|
|
2846
|
+
step: v,
|
|
2847
|
+
checked: x,
|
|
2848
|
+
onChange: b,
|
|
2849
|
+
onBlur: y,
|
|
2850
|
+
onClick: O,
|
|
2851
|
+
handleKeyDown: D
|
|
2852
|
+
}, j) => {
|
|
2853
2853
|
const [_, R] = U(!1);
|
|
2854
2854
|
return /* @__PURE__ */ o.jsxs("div", { className: `input-container ${`input-container-${r}`} `, children: [
|
|
2855
2855
|
/* @__PURE__ */ o.jsx("input", { name: `hide-${t}`, type: "text", style: { display: "none" } }),
|
|
2856
2856
|
/* @__PURE__ */ o.jsx(
|
|
2857
2857
|
"input",
|
|
2858
2858
|
{
|
|
2859
|
-
ref:
|
|
2859
|
+
ref: j,
|
|
2860
2860
|
id: e,
|
|
2861
2861
|
name: t,
|
|
2862
2862
|
inputMode: l ?? (r === "number" ? "numeric" : "text"),
|
|
@@ -2864,20 +2864,20 @@ const Ut = Je(
|
|
|
2864
2864
|
spellCheck: "false",
|
|
2865
2865
|
value: n,
|
|
2866
2866
|
placeholder: s,
|
|
2867
|
-
disabled:
|
|
2868
|
-
required:
|
|
2869
|
-
autoComplete:
|
|
2870
|
-
step:
|
|
2871
|
-
tabIndex:
|
|
2872
|
-
autoFocus:
|
|
2867
|
+
disabled: m,
|
|
2868
|
+
required: p,
|
|
2869
|
+
autoComplete: h ?? "new-password",
|
|
2870
|
+
step: v,
|
|
2871
|
+
tabIndex: g,
|
|
2872
|
+
autoFocus: f,
|
|
2873
2873
|
minLength: c,
|
|
2874
2874
|
maxLength: d,
|
|
2875
|
-
onChange:
|
|
2876
|
-
checked:
|
|
2877
|
-
onKeyDown:
|
|
2878
|
-
onBlur:
|
|
2875
|
+
onChange: b,
|
|
2876
|
+
checked: x,
|
|
2877
|
+
onKeyDown: D,
|
|
2878
|
+
onBlur: y,
|
|
2879
2879
|
onClick: (q) => {
|
|
2880
|
-
q.stopPropagation(),
|
|
2880
|
+
q.stopPropagation(), O && O(q);
|
|
2881
2881
|
},
|
|
2882
2882
|
className: `input-field ${i ?? ""}`,
|
|
2883
2883
|
onInvalid: a
|
|
@@ -2988,24 +2988,24 @@ const Kr = ({ display: e, full: t, message: r }) => /* @__PURE__ */ o.jsxs(o.Fra
|
|
|
2988
2988
|
showOptions: l = !1,
|
|
2989
2989
|
defaultValue: c,
|
|
2990
2990
|
usePortal: d = !1,
|
|
2991
|
-
searchable:
|
|
2992
|
-
searchPlaceholder:
|
|
2993
|
-
onChange:
|
|
2994
|
-
onChangeMultiple:
|
|
2995
|
-
value:
|
|
2996
|
-
placeholder:
|
|
2997
|
-
classNameOverlay:
|
|
2991
|
+
searchable: f = !1,
|
|
2992
|
+
searchPlaceholder: m = "Rechercher...",
|
|
2993
|
+
onChange: p,
|
|
2994
|
+
onChangeMultiple: h,
|
|
2995
|
+
value: g,
|
|
2996
|
+
placeholder: v,
|
|
2997
|
+
classNameOverlay: x
|
|
2998
2998
|
}) => {
|
|
2999
|
-
const [
|
|
2999
|
+
const [b, y] = U(!1), [O, D] = U(null), j = me(null), _ = me(!1), R = me(null), [q, ie] = U("");
|
|
3000
3000
|
ae(() => {
|
|
3001
|
-
|
|
3002
|
-
}, [
|
|
3001
|
+
b || ie("");
|
|
3002
|
+
}, [b]);
|
|
3003
3003
|
const W = Le(() => {
|
|
3004
3004
|
const $ = (C) => C.normalize("NFD").replace(/[̀-ͯ]/g, "").toLowerCase().trim(), X = $(q);
|
|
3005
|
-
return !
|
|
3006
|
-
}, [r, q,
|
|
3005
|
+
return !f || !X ? r : r.filter((C) => $(C.label).includes(X));
|
|
3006
|
+
}, [r, q, f]);
|
|
3007
3007
|
ae(() => {
|
|
3008
|
-
if (!
|
|
3008
|
+
if (!b) return;
|
|
3009
3009
|
const $ = setTimeout(() => {
|
|
3010
3010
|
const X = R.current;
|
|
3011
3011
|
if (!X) return;
|
|
@@ -3015,66 +3015,66 @@ const Kr = ({ display: e, full: t, message: r }) => /* @__PURE__ */ o.jsxs(o.Fra
|
|
|
3015
3015
|
C == null || C.scrollIntoView({ block: "nearest" });
|
|
3016
3016
|
}, 0);
|
|
3017
3017
|
return () => clearTimeout($);
|
|
3018
|
-
}, [
|
|
3019
|
-
const ee = r.some(($) => $.value === ""), L = ($) => $ != null && ($ !== "" || ee), A = Array.isArray(
|
|
3020
|
-
if (A.length === 0) return
|
|
3018
|
+
}, [b]);
|
|
3019
|
+
const ee = r.some(($) => $.value === ""), L = ($) => $ != null && ($ !== "" || ee), A = Array.isArray(g) ? g : L(g) ? [g] : L(c) ? Array.isArray(c) ? c : [c] : [], de = A.some(($) => $ !== ""), ce = () => {
|
|
3020
|
+
if (A.length === 0) return v || "";
|
|
3021
3021
|
if (i)
|
|
3022
3022
|
return A.map((C) => {
|
|
3023
|
-
var
|
|
3024
|
-
return (
|
|
3023
|
+
var N;
|
|
3024
|
+
return (N = r.find((E) => E.value === C)) == null ? void 0 : N.label;
|
|
3025
3025
|
}).filter((C) => !!C).join(", ");
|
|
3026
3026
|
const $ = r.find((X) => X.value === A[0]);
|
|
3027
3027
|
return ($ == null ? void 0 : $.label) || "";
|
|
3028
3028
|
}, Q = ($) => {
|
|
3029
3029
|
if (i) {
|
|
3030
3030
|
const X = A.includes($) ? A.filter((C) => C !== $) : [...A, $];
|
|
3031
|
-
|
|
3031
|
+
h && h(X);
|
|
3032
3032
|
} else
|
|
3033
|
-
|
|
3033
|
+
p && p($), y(!1);
|
|
3034
3034
|
}, fe = I(() => {
|
|
3035
|
-
i &&
|
|
3036
|
-
}, [
|
|
3035
|
+
i && h ? h([]) : p && p("");
|
|
3036
|
+
}, [p, h, i]);
|
|
3037
3037
|
return ae(() => {
|
|
3038
|
-
l && !a && !_.current &&
|
|
3038
|
+
l && !a && !_.current && j.current && (D(j.current), y(!0), _.current = !0);
|
|
3039
3039
|
}, [l, a]), /* @__PURE__ */ o.jsxs("div", { id: e, className: `select-container ${n || ""}`, children: [
|
|
3040
3040
|
t && /* @__PURE__ */ o.jsx("label", { htmlFor: `select-${e}`, className: "select-container-label", children: t }),
|
|
3041
3041
|
/* @__PURE__ */ o.jsx(
|
|
3042
3042
|
"button",
|
|
3043
3043
|
{
|
|
3044
|
-
ref:
|
|
3044
|
+
ref: j,
|
|
3045
3045
|
id: `select-${e}`,
|
|
3046
3046
|
disabled: a,
|
|
3047
3047
|
style: s,
|
|
3048
3048
|
className: "select-container-button",
|
|
3049
3049
|
onClick: ($) => {
|
|
3050
|
-
|
|
3050
|
+
D($.currentTarget), y(!0);
|
|
3051
3051
|
},
|
|
3052
3052
|
type: "button",
|
|
3053
|
-
"aria-valuetext": ce() ||
|
|
3054
|
-
title: ce() ||
|
|
3053
|
+
"aria-valuetext": ce() || v,
|
|
3054
|
+
title: ce() || v,
|
|
3055
3055
|
"aria-haspopup": "listbox",
|
|
3056
|
-
"aria-expanded":
|
|
3057
|
-
children: /* @__PURE__ */ o.jsx("span", { className: "select-container-value", children: ce() || /* @__PURE__ */ o.jsx("span", { className: "placeholder", children:
|
|
3056
|
+
"aria-expanded": b,
|
|
3057
|
+
children: /* @__PURE__ */ o.jsx("span", { className: "select-container-value", children: ce() || /* @__PURE__ */ o.jsx("span", { className: "placeholder", children: v }) })
|
|
3058
3058
|
}
|
|
3059
3059
|
),
|
|
3060
|
-
|
|
3060
|
+
b && O && /* @__PURE__ */ o.jsx(
|
|
3061
3061
|
Ar,
|
|
3062
3062
|
{
|
|
3063
|
-
show:
|
|
3063
|
+
show: b,
|
|
3064
3064
|
position: "bottomLeft",
|
|
3065
|
-
className:
|
|
3066
|
-
closeOverlay: () =>
|
|
3067
|
-
referenceElement:
|
|
3065
|
+
className: x ?? "",
|
|
3066
|
+
closeOverlay: () => y(!1),
|
|
3067
|
+
referenceElement: O,
|
|
3068
3068
|
usePortal: d,
|
|
3069
3069
|
matchReferenceWidth: d,
|
|
3070
3070
|
children: /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
3071
|
-
|
|
3071
|
+
f && /* @__PURE__ */ o.jsx("div", { className: "select-overlay-search", children: /* @__PURE__ */ o.jsx(
|
|
3072
3072
|
"input",
|
|
3073
3073
|
{
|
|
3074
3074
|
type: "text",
|
|
3075
3075
|
autoFocus: !0,
|
|
3076
3076
|
value: q,
|
|
3077
|
-
placeholder:
|
|
3077
|
+
placeholder: m,
|
|
3078
3078
|
onChange: ($) => ie($.target.value),
|
|
3079
3079
|
onKeyDown: ($) => {
|
|
3080
3080
|
$.key === "Enter" && $.preventDefault();
|
|
@@ -3082,7 +3082,7 @@ const Kr = ({ display: e, full: t, message: r }) => /* @__PURE__ */ o.jsxs(o.Fra
|
|
|
3082
3082
|
}
|
|
3083
3083
|
) }),
|
|
3084
3084
|
/* @__PURE__ */ o.jsxs("div", { className: "select-overlay-options", ref: R, children: [
|
|
3085
|
-
|
|
3085
|
+
f && W.length === 0 && /* @__PURE__ */ o.jsx("div", { className: "select-overlay-empty", children: "Aucun résultat" }),
|
|
3086
3086
|
W.map(($) => /* @__PURE__ */ o.jsxs(
|
|
3087
3087
|
"div",
|
|
3088
3088
|
{
|
|
@@ -3110,7 +3110,7 @@ const Kr = ({ display: e, full: t, message: r }) => /* @__PURE__ */ o.jsxs(o.Fra
|
|
|
3110
3110
|
] })
|
|
3111
3111
|
}
|
|
3112
3112
|
),
|
|
3113
|
-
de &&
|
|
3113
|
+
de && v && /* @__PURE__ */ o.jsx(
|
|
3114
3114
|
"div",
|
|
3115
3115
|
{
|
|
3116
3116
|
className: "clear-btn",
|
|
@@ -3128,15 +3128,15 @@ const Kr = ({ display: e, full: t, message: r }) => /* @__PURE__ */ o.jsxs(o.Fra
|
|
|
3128
3128
|
container: a = "cell",
|
|
3129
3129
|
onEnterNextColumn: s
|
|
3130
3130
|
}) => {
|
|
3131
|
-
var
|
|
3132
|
-
const i = n[e.id], l = e.onRowStyle ? e.onRowStyle(n) : {}, c = ((
|
|
3133
|
-
if (
|
|
3134
|
-
const
|
|
3135
|
-
let
|
|
3136
|
-
e.min !== void 0 &&
|
|
3137
|
-
},
|
|
3131
|
+
var p;
|
|
3132
|
+
const i = n[e.id], l = e.onRowStyle ? e.onRowStyle(n) : {}, c = ((p = e.onDisable) == null ? void 0 : p.call(e, n)) ?? !1, d = !!(typeof e.showStepButtons == "function" ? e.showStepButtons(n) : e.showStepButtons ?? (typeof e.stepControls == "function" ? e.stepControls(n) : e.stepControls ?? (typeof e.withStepControls == "function" ? e.withStepControls(n) : e.withStepControls))), f = (h, g) => {
|
|
3133
|
+
if (g.stopPropagation(), c) return;
|
|
3134
|
+
const v = Number(i) || 0, x = e.step ?? 1;
|
|
3135
|
+
let b = h === "plus" ? v + x : v - x;
|
|
3136
|
+
e.min !== void 0 && b < e.min && (b = e.min), e.max !== void 0 && b > e.max && (b = e.max), b = Math.round(b * 1e3) / 1e3, e.onEdit && e.onEdit(b, n);
|
|
3137
|
+
}, m = a === "card" ? "div" : "td";
|
|
3138
3138
|
return /* @__PURE__ */ o.jsx(
|
|
3139
|
-
|
|
3139
|
+
m,
|
|
3140
3140
|
{
|
|
3141
3141
|
className: `${c ? "disabled" : ""}`,
|
|
3142
3142
|
"data-column-index": t,
|
|
@@ -3155,7 +3155,7 @@ const Kr = ({ display: e, full: t, message: r }) => /* @__PURE__ */ o.jsxs(o.Fra
|
|
|
3155
3155
|
alt: e.imageAlt ? e.imageAlt(n) : "",
|
|
3156
3156
|
style: e.imageStyle
|
|
3157
3157
|
}
|
|
3158
|
-
) : /* @__PURE__ */ o.jsx(J, { classIcon: "bi-image" }) : e.editable ? e.type === "select" ? /* @__PURE__ */ o.jsx("div", { onClick: (
|
|
3158
|
+
) : /* @__PURE__ */ o.jsx(J, { classIcon: "bi-image" }) : e.editable ? e.type === "select" ? /* @__PURE__ */ o.jsx("div", { onClick: (h) => h.stopPropagation(), children: /* @__PURE__ */ o.jsx(
|
|
3159
3159
|
xo,
|
|
3160
3160
|
{
|
|
3161
3161
|
style: {
|
|
@@ -3165,8 +3165,8 @@ const Kr = ({ display: e, full: t, message: r }) => /* @__PURE__ */ o.jsxs(o.Fra
|
|
|
3165
3165
|
},
|
|
3166
3166
|
options: e.options ?? [],
|
|
3167
3167
|
value: i,
|
|
3168
|
-
onChange: (
|
|
3169
|
-
e.onEdit && e.onEdit(
|
|
3168
|
+
onChange: (h) => {
|
|
3169
|
+
e.onEdit && e.onEdit(h, n);
|
|
3170
3170
|
}
|
|
3171
3171
|
}
|
|
3172
3172
|
) }) : d ? /* @__PURE__ */ o.jsxs(
|
|
@@ -3179,7 +3179,7 @@ const Kr = ({ display: e, full: t, message: r }) => /* @__PURE__ */ o.jsxs(o.Fra
|
|
|
3179
3179
|
gap: "4px",
|
|
3180
3180
|
justifyContent: e.align === "right" ? "flex-end" : e.align === "center" ? "center" : "flex-start"
|
|
3181
3181
|
},
|
|
3182
|
-
onClick: (
|
|
3182
|
+
onClick: (h) => h.stopPropagation(),
|
|
3183
3183
|
children: [
|
|
3184
3184
|
/* @__PURE__ */ o.jsx(
|
|
3185
3185
|
"button",
|
|
@@ -3187,7 +3187,7 @@ const Kr = ({ display: e, full: t, message: r }) => /* @__PURE__ */ o.jsxs(o.Fra
|
|
|
3187
3187
|
type: "button",
|
|
3188
3188
|
className: "data-table-step-btn data-table-step-btn--minus",
|
|
3189
3189
|
disabled: c || e.min !== void 0 && Number(i) <= e.min,
|
|
3190
|
-
onClick: (
|
|
3190
|
+
onClick: (h) => f("minus", h),
|
|
3191
3191
|
children: /* @__PURE__ */ o.jsx(J, { classIcon: "bi-dash-lg" })
|
|
3192
3192
|
}
|
|
3193
3193
|
),
|
|
@@ -3206,12 +3206,12 @@ const Kr = ({ display: e, full: t, message: r }) => /* @__PURE__ */ o.jsxs(o.Fra
|
|
|
3206
3206
|
maxWidth: e.maxWidth,
|
|
3207
3207
|
width: e.width
|
|
3208
3208
|
},
|
|
3209
|
-
onClick: (
|
|
3210
|
-
onKeyDown: (
|
|
3211
|
-
|
|
3209
|
+
onClick: (h) => h.stopPropagation(),
|
|
3210
|
+
onKeyDown: (h) => {
|
|
3211
|
+
h.key === "Enter" && (e.onEnter && e.onEnter(h.currentTarget.value, n), e.enterToNextColumn && (h.preventDefault(), s == null || s(t, r)));
|
|
3212
3212
|
},
|
|
3213
|
-
onChange: (
|
|
3214
|
-
e.onEdit && e.onEdit(
|
|
3213
|
+
onChange: (h) => {
|
|
3214
|
+
e.onEdit && e.onEdit(h.target.value, n);
|
|
3215
3215
|
}
|
|
3216
3216
|
}
|
|
3217
3217
|
),
|
|
@@ -3221,7 +3221,7 @@ const Kr = ({ display: e, full: t, message: r }) => /* @__PURE__ */ o.jsxs(o.Fra
|
|
|
3221
3221
|
type: "button",
|
|
3222
3222
|
className: "data-table-step-btn data-table-step-btn--plus",
|
|
3223
3223
|
disabled: c || e.max !== void 0 && Number(i) >= e.max,
|
|
3224
|
-
onClick: (
|
|
3224
|
+
onClick: (h) => f("plus", h),
|
|
3225
3225
|
children: /* @__PURE__ */ o.jsx(J, { classIcon: "bi-plus-lg" })
|
|
3226
3226
|
}
|
|
3227
3227
|
)
|
|
@@ -3239,12 +3239,12 @@ const Kr = ({ display: e, full: t, message: r }) => /* @__PURE__ */ o.jsxs(o.Fra
|
|
|
3239
3239
|
maxWidth: e.maxWidth,
|
|
3240
3240
|
width: e.width
|
|
3241
3241
|
},
|
|
3242
|
-
onClick: (
|
|
3243
|
-
onKeyDown: (
|
|
3244
|
-
|
|
3242
|
+
onClick: (h) => h.stopPropagation(),
|
|
3243
|
+
onKeyDown: (h) => {
|
|
3244
|
+
h.key === "Enter" && (e.onEnter && e.onEnter(h.currentTarget.value, n), e.enterToNextColumn && (h.preventDefault(), s == null || s(t, r)));
|
|
3245
3245
|
},
|
|
3246
|
-
onChange: (
|
|
3247
|
-
e.onEdit && e.onEdit(
|
|
3246
|
+
onChange: (h) => {
|
|
3247
|
+
e.onEdit && e.onEdit(h.target.value, n);
|
|
3248
3248
|
}
|
|
3249
3249
|
}
|
|
3250
3250
|
) : e.format ? e.format(i) : i
|
|
@@ -3263,26 +3263,26 @@ function au(e) {
|
|
|
3263
3263
|
actionsColumnWidth: l = 200,
|
|
3264
3264
|
actions: c = [],
|
|
3265
3265
|
footerAction: d,
|
|
3266
|
-
columns:
|
|
3267
|
-
loading:
|
|
3268
|
-
onRowClick:
|
|
3269
|
-
onColumnClick:
|
|
3270
|
-
onLoadMore:
|
|
3271
|
-
emptyMessage:
|
|
3272
|
-
hasMore:
|
|
3273
|
-
onSelectionChange:
|
|
3274
|
-
autoFocusFirstEditable:
|
|
3275
|
-
hideToggleAll:
|
|
3276
|
-
limitSelect:
|
|
3277
|
-
getRowId:
|
|
3266
|
+
columns: f = [],
|
|
3267
|
+
loading: m,
|
|
3268
|
+
onRowClick: p,
|
|
3269
|
+
onColumnClick: h,
|
|
3270
|
+
onLoadMore: g,
|
|
3271
|
+
emptyMessage: v,
|
|
3272
|
+
hasMore: x,
|
|
3273
|
+
onSelectionChange: b,
|
|
3274
|
+
autoFocusFirstEditable: y = !1,
|
|
3275
|
+
hideToggleAll: O = !1,
|
|
3276
|
+
limitSelect: D = void 0,
|
|
3277
|
+
getRowId: j,
|
|
3278
3278
|
onRowStyle: _,
|
|
3279
3279
|
onRowClassName: R,
|
|
3280
3280
|
rowStyle: q,
|
|
3281
3281
|
rowClassName: ie,
|
|
3282
3282
|
mobileCardView: W = !1
|
|
3283
|
-
} = e, ee = hs(), L = W && ee, A = me(null), de = me(null), ce = me(!1), [Q, fe] = U(!1), [$, X] = U(0), [C,
|
|
3283
|
+
} = e, ee = hs(), L = W && ee, A = me(null), de = me(null), ce = me(!1), [Q, fe] = U(!1), [$, X] = U(0), [C, N] = U(
|
|
3284
3284
|
/* @__PURE__ */ new Set()
|
|
3285
|
-
),
|
|
3285
|
+
), E = I((k) => {
|
|
3286
3286
|
k && (k.scrollIntoView({ block: "nearest", inline: "nearest" }), requestAnimationFrame(() => {
|
|
3287
3287
|
k.focus(), (k instanceof HTMLInputElement || k instanceof HTMLTextAreaElement) && k.select();
|
|
3288
3288
|
}));
|
|
@@ -3293,24 +3293,24 @@ function au(e) {
|
|
|
3293
3293
|
) : !1;
|
|
3294
3294
|
}, []), be = I(() => {
|
|
3295
3295
|
if (C.size === i.length)
|
|
3296
|
-
|
|
3296
|
+
N(/* @__PURE__ */ new Set()), b == null || b([]), fe(!1);
|
|
3297
3297
|
else {
|
|
3298
3298
|
let k = i.map(
|
|
3299
|
-
(Y) =>
|
|
3299
|
+
(Y) => j ? j(Y) : Y.id ?? Y
|
|
3300
3300
|
);
|
|
3301
|
-
|
|
3301
|
+
D && k.length > D && (k = k.slice(0, D));
|
|
3302
3302
|
const B = new Set(k);
|
|
3303
|
-
|
|
3303
|
+
N(B), fe(!0), b == null || b(
|
|
3304
3304
|
i.filter(
|
|
3305
|
-
(Y) => B.has(
|
|
3305
|
+
(Y) => B.has(j ? j(Y) : Y.id ?? Y)
|
|
3306
3306
|
)
|
|
3307
3307
|
);
|
|
3308
3308
|
}
|
|
3309
|
-
}, [i,
|
|
3309
|
+
}, [i, b, D, j, C.size]), oe = I(
|
|
3310
3310
|
(k, B) => {
|
|
3311
3311
|
if (typeof document > "u")
|
|
3312
3312
|
return;
|
|
3313
|
-
const Y = document.getElementById(`${t}-mobile`) ?? document.getElementById(t), V =
|
|
3313
|
+
const Y = document.getElementById(`${t}-mobile`) ?? document.getElementById(t), V = f.reduce(
|
|
3314
3314
|
(Ee, Te, We) => (Te.editable && Te.enterToNextColumn && Te.type !== "select" && Te.type !== "image" && Ee.push(We), Ee),
|
|
3315
3315
|
[]
|
|
3316
3316
|
);
|
|
@@ -3340,9 +3340,9 @@ function au(e) {
|
|
|
3340
3340
|
break;
|
|
3341
3341
|
}
|
|
3342
3342
|
}
|
|
3343
|
-
Se &&
|
|
3343
|
+
Se && E(Se);
|
|
3344
3344
|
},
|
|
3345
|
-
[
|
|
3345
|
+
[f, i, E, t]
|
|
3346
3346
|
), w = I(
|
|
3347
3347
|
(k) => {
|
|
3348
3348
|
if (typeof document > "u")
|
|
@@ -3350,7 +3350,7 @@ function au(e) {
|
|
|
3350
3350
|
const B = document.getElementById(`${t}-mobile`) ?? document.getElementById(t);
|
|
3351
3351
|
if (!B)
|
|
3352
3352
|
return;
|
|
3353
|
-
const Y =
|
|
3353
|
+
const Y = f.reduce(
|
|
3354
3354
|
(re, Z, Se) => (Z.editable && Z.type !== "select" && Z.type !== "image" && re.push(Se), re),
|
|
3355
3355
|
[]
|
|
3356
3356
|
);
|
|
@@ -3370,46 +3370,46 @@ function au(e) {
|
|
|
3370
3370
|
break;
|
|
3371
3371
|
}
|
|
3372
3372
|
}
|
|
3373
|
-
le &&
|
|
3373
|
+
le && E(le);
|
|
3374
3374
|
},
|
|
3375
|
-
[
|
|
3375
|
+
[f, i.length, E, t]
|
|
3376
3376
|
), pe = I(
|
|
3377
3377
|
(k, B) => {
|
|
3378
3378
|
var V, G;
|
|
3379
|
-
k.stopPropagation(), !(H(k.target) || typeof window < "u" && (G = (V = window.getSelection) == null ? void 0 : V.call(window)) != null && G.toString().trim()) &&
|
|
3379
|
+
k.stopPropagation(), !(H(k.target) || typeof window < "u" && (G = (V = window.getSelection) == null ? void 0 : V.call(window)) != null && G.toString().trim()) && p && (p == null || p(B));
|
|
3380
3380
|
},
|
|
3381
|
-
[H,
|
|
3381
|
+
[H, p]
|
|
3382
3382
|
), he = I(
|
|
3383
3383
|
(k, B) => {
|
|
3384
3384
|
k.stopPropagation();
|
|
3385
|
-
const Y =
|
|
3385
|
+
const Y = j ? j(B) : B.id ?? B, V = new Set(C);
|
|
3386
3386
|
if (V.has(Y))
|
|
3387
3387
|
V.delete(Y);
|
|
3388
3388
|
else {
|
|
3389
|
-
if (
|
|
3389
|
+
if (D && V.size >= D)
|
|
3390
3390
|
return;
|
|
3391
3391
|
V.add(Y);
|
|
3392
3392
|
}
|
|
3393
|
-
|
|
3393
|
+
N(V), fe(V.size > 0);
|
|
3394
3394
|
const G = i.filter(
|
|
3395
|
-
(le) => V.has(
|
|
3395
|
+
(le) => V.has(j ? j(le) : le.id ?? le)
|
|
3396
3396
|
);
|
|
3397
|
-
|
|
3397
|
+
b == null || b(G);
|
|
3398
3398
|
},
|
|
3399
|
-
[i,
|
|
3399
|
+
[i, j, D, b, C]
|
|
3400
3400
|
), te = !!(d && Q), De = I(() => {
|
|
3401
3401
|
fe(!1);
|
|
3402
3402
|
}, []), _e = i.filter(
|
|
3403
|
-
(k) => C.has(
|
|
3403
|
+
(k) => C.has(j ? j(k) : k.id ?? k)
|
|
3404
3404
|
);
|
|
3405
3405
|
return ae(() => {
|
|
3406
|
-
if (
|
|
3406
|
+
if (m || !y || i.length === 0) {
|
|
3407
3407
|
ce.current = !1;
|
|
3408
3408
|
return;
|
|
3409
3409
|
}
|
|
3410
3410
|
if (ce.current)
|
|
3411
3411
|
return;
|
|
3412
|
-
const k =
|
|
3412
|
+
const k = f.findIndex(
|
|
3413
3413
|
(G) => G.editable && G.enterToNextColumn && G.type !== "select" && G.type !== "image"
|
|
3414
3414
|
);
|
|
3415
3415
|
if (k === -1)
|
|
@@ -3422,14 +3422,14 @@ function au(e) {
|
|
|
3422
3422
|
const V = Y.querySelector(
|
|
3423
3423
|
'input:not([disabled]), textarea:not([disabled]), [contenteditable="true"]'
|
|
3424
3424
|
);
|
|
3425
|
-
V && (ce.current = !0,
|
|
3425
|
+
V && (ce.current = !0, E(V));
|
|
3426
3426
|
}, [
|
|
3427
|
-
|
|
3428
|
-
|
|
3427
|
+
y,
|
|
3428
|
+
f,
|
|
3429
3429
|
i.length,
|
|
3430
|
-
|
|
3430
|
+
E,
|
|
3431
3431
|
t,
|
|
3432
|
-
|
|
3432
|
+
m
|
|
3433
3433
|
]), ae(() => {
|
|
3434
3434
|
if (!te) {
|
|
3435
3435
|
X(0);
|
|
@@ -3451,10 +3451,10 @@ function au(e) {
|
|
|
3451
3451
|
Y.disconnect();
|
|
3452
3452
|
};
|
|
3453
3453
|
}, [te]), ae(() => {
|
|
3454
|
-
if (!
|
|
3454
|
+
if (!g || !x) return;
|
|
3455
3455
|
const k = new IntersectionObserver(
|
|
3456
3456
|
(B) => {
|
|
3457
|
-
B[0].isIntersecting &&
|
|
3457
|
+
B[0].isIntersecting && g();
|
|
3458
3458
|
},
|
|
3459
3459
|
{
|
|
3460
3460
|
root: null,
|
|
@@ -3465,7 +3465,7 @@ function au(e) {
|
|
|
3465
3465
|
return A.current && k.observe(A.current), () => {
|
|
3466
3466
|
A.current && k.unobserve(A.current);
|
|
3467
3467
|
};
|
|
3468
|
-
}, [
|
|
3468
|
+
}, [g, x]), /* @__PURE__ */ o.jsxs(
|
|
3469
3469
|
"div",
|
|
3470
3470
|
{
|
|
3471
3471
|
className: `data-table-container ${te ? "data-table-container--with-footer-action" : ""}`,
|
|
@@ -3479,16 +3479,16 @@ function au(e) {
|
|
|
3479
3479
|
id: `${t}-mobile`,
|
|
3480
3480
|
className: `data-table-mobile-cards ${n || ""}`,
|
|
3481
3481
|
children: [
|
|
3482
|
-
|
|
3483
|
-
!
|
|
3482
|
+
m && /* @__PURE__ */ o.jsx(Kr, { display: m }),
|
|
3483
|
+
!m && i.map((k, B) => {
|
|
3484
3484
|
var le, re;
|
|
3485
|
-
const Y = (le = _ ?? q) == null ? void 0 : le(k), V = ((re = R ?? ie) == null ? void 0 : re(k)) ?? "", G =
|
|
3485
|
+
const Y = (le = _ ?? q) == null ? void 0 : le(k), V = ((re = R ?? ie) == null ? void 0 : re(k)) ?? "", G = j ? j(k) : k.id ?? k;
|
|
3486
3486
|
return /* @__PURE__ */ o.jsx(
|
|
3487
3487
|
Li,
|
|
3488
3488
|
{
|
|
3489
3489
|
item: { title: "" },
|
|
3490
3490
|
className: `data-table-mobile-card ${V}`.trim(),
|
|
3491
|
-
handleClick:
|
|
3491
|
+
handleClick: p ? () => p(k) : void 0,
|
|
3492
3492
|
children: /* @__PURE__ */ o.jsxs(
|
|
3493
3493
|
"div",
|
|
3494
3494
|
{
|
|
@@ -3499,7 +3499,7 @@ function au(e) {
|
|
|
3499
3499
|
H(Z.target) && Z.stopPropagation();
|
|
3500
3500
|
},
|
|
3501
3501
|
children: [
|
|
3502
|
-
|
|
3502
|
+
b && /* @__PURE__ */ o.jsxs("div", { className: "data-table-mobile-card__field data-table-mobile-card__selection", children: [
|
|
3503
3503
|
/* @__PURE__ */ o.jsx("span", { className: "data-table-mobile-card__label", children: "Sélection" }),
|
|
3504
3504
|
/* @__PURE__ */ o.jsx(
|
|
3505
3505
|
Ut,
|
|
@@ -3507,13 +3507,13 @@ function au(e) {
|
|
|
3507
3507
|
id: `select-card-${B}`,
|
|
3508
3508
|
name: `select-card-${B}`,
|
|
3509
3509
|
type: Ae.CHECKBOX,
|
|
3510
|
-
disabled:
|
|
3510
|
+
disabled: D !== void 0 && C.size >= D && !C.has(G),
|
|
3511
3511
|
checked: C.has(G),
|
|
3512
3512
|
onChange: (Z) => he(Z, k)
|
|
3513
3513
|
}
|
|
3514
3514
|
)
|
|
3515
3515
|
] }),
|
|
3516
|
-
|
|
3516
|
+
f.map((Z, Se) => /* @__PURE__ */ o.jsxs(
|
|
3517
3517
|
"div",
|
|
3518
3518
|
{
|
|
3519
3519
|
className: "data-table-mobile-card__field",
|
|
@@ -3552,7 +3552,7 @@ function au(e) {
|
|
|
3552
3552
|
G
|
|
3553
3553
|
);
|
|
3554
3554
|
}),
|
|
3555
|
-
!
|
|
3555
|
+
!m && i.length === 0 && /* @__PURE__ */ o.jsx("div", { className: "data-table-mobile-cards__empty", children: v ?? "Aucune donnée" })
|
|
3556
3556
|
]
|
|
3557
3557
|
}
|
|
3558
3558
|
),
|
|
@@ -3564,10 +3564,10 @@ function au(e) {
|
|
|
3564
3564
|
style: L ? { display: "none" } : void 0,
|
|
3565
3565
|
children: [
|
|
3566
3566
|
/* @__PURE__ */ o.jsx("thead", { children: /* @__PURE__ */ o.jsxs("tr", { children: [
|
|
3567
|
-
|
|
3567
|
+
b && /* @__PURE__ */ o.jsx(
|
|
3568
3568
|
"th",
|
|
3569
3569
|
{
|
|
3570
|
-
className: `select-cell ${
|
|
3570
|
+
className: `select-cell ${O ? "hidden" : ""}`,
|
|
3571
3571
|
style: { width: "20px", textAlign: "center" },
|
|
3572
3572
|
children: /* @__PURE__ */ o.jsx(
|
|
3573
3573
|
Ut,
|
|
@@ -3581,12 +3581,12 @@ function au(e) {
|
|
|
3581
3581
|
)
|
|
3582
3582
|
}
|
|
3583
3583
|
),
|
|
3584
|
-
|
|
3584
|
+
f.map((k, B) => /* @__PURE__ */ o.jsx(
|
|
3585
3585
|
Fi,
|
|
3586
3586
|
{
|
|
3587
3587
|
column: k,
|
|
3588
3588
|
idx: B,
|
|
3589
|
-
onColumnClick:
|
|
3589
|
+
onColumnClick: h
|
|
3590
3590
|
},
|
|
3591
3591
|
B
|
|
3592
3592
|
)),
|
|
@@ -3603,15 +3603,15 @@ function au(e) {
|
|
|
3603
3603
|
)
|
|
3604
3604
|
] }) }),
|
|
3605
3605
|
/* @__PURE__ */ o.jsxs("tbody", { children: [
|
|
3606
|
-
|
|
3606
|
+
m ? /* @__PURE__ */ o.jsx("tr", { children: /* @__PURE__ */ o.jsx(
|
|
3607
3607
|
"td",
|
|
3608
3608
|
{
|
|
3609
3609
|
align: "center",
|
|
3610
|
-
colSpan:
|
|
3611
|
-
children: /* @__PURE__ */ o.jsx("div", { className: "mt-3", children: /* @__PURE__ */ o.jsx(Kr, { display:
|
|
3610
|
+
colSpan: f.length + (c.length > 0 ? 1 : 0),
|
|
3611
|
+
children: /* @__PURE__ */ o.jsx("div", { className: "mt-3", children: /* @__PURE__ */ o.jsx(Kr, { display: m }) })
|
|
3612
3612
|
}
|
|
3613
3613
|
) }) : /* @__PURE__ */ o.jsx(o.Fragment, {}),
|
|
3614
|
-
!
|
|
3614
|
+
!m && i.map((k, B) => {
|
|
3615
3615
|
var G, le;
|
|
3616
3616
|
const Y = (G = _ ?? q) == null ? void 0 : G(k), V = ((le = R ?? ie) == null ? void 0 : le(k)) ?? "";
|
|
3617
3617
|
return /* @__PURE__ */ o.jsxs(
|
|
@@ -3622,7 +3622,7 @@ function au(e) {
|
|
|
3622
3622
|
"data-row-index": B,
|
|
3623
3623
|
onClick: (re) => pe == null ? void 0 : pe(re, k),
|
|
3624
3624
|
children: [
|
|
3625
|
-
|
|
3625
|
+
b && /* @__PURE__ */ o.jsx(
|
|
3626
3626
|
"td",
|
|
3627
3627
|
{
|
|
3628
3628
|
className: "select-cell",
|
|
@@ -3636,18 +3636,18 @@ function au(e) {
|
|
|
3636
3636
|
id: `select-row-${B}`,
|
|
3637
3637
|
name: `select-row-${B}`,
|
|
3638
3638
|
type: Ae.CHECKBOX,
|
|
3639
|
-
disabled:
|
|
3640
|
-
|
|
3639
|
+
disabled: D !== void 0 && C.size >= D && !C.has(
|
|
3640
|
+
j ? j(k) : k.id ?? k
|
|
3641
3641
|
),
|
|
3642
3642
|
checked: C.has(
|
|
3643
|
-
|
|
3643
|
+
j ? j(k) : k.id ?? k
|
|
3644
3644
|
),
|
|
3645
3645
|
onChange: (re) => he(re, k)
|
|
3646
3646
|
}
|
|
3647
3647
|
)
|
|
3648
3648
|
}
|
|
3649
3649
|
),
|
|
3650
|
-
|
|
3650
|
+
f.map((re, Z) => /* @__PURE__ */ o.jsx(
|
|
3651
3651
|
wa,
|
|
3652
3652
|
{
|
|
3653
3653
|
column: re,
|
|
@@ -3685,12 +3685,12 @@ function au(e) {
|
|
|
3685
3685
|
B
|
|
3686
3686
|
);
|
|
3687
3687
|
}),
|
|
3688
|
-
!
|
|
3688
|
+
!m && i.length === 0 && /* @__PURE__ */ o.jsx(
|
|
3689
3689
|
Wi,
|
|
3690
3690
|
{
|
|
3691
|
-
columns:
|
|
3691
|
+
columns: f,
|
|
3692
3692
|
actions: c,
|
|
3693
|
-
emptyMessage:
|
|
3693
|
+
emptyMessage: v
|
|
3694
3694
|
}
|
|
3695
3695
|
)
|
|
3696
3696
|
] })
|
|
@@ -3724,7 +3724,7 @@ function au(e) {
|
|
|
3724
3724
|
document.body
|
|
3725
3725
|
),
|
|
3726
3726
|
a,
|
|
3727
|
-
|
|
3727
|
+
x && /* @__PURE__ */ o.jsx("div", { ref: A, className: "infinite-scroll-loader", children: /* @__PURE__ */ o.jsx(Kr, { display: !0 }) })
|
|
3728
3728
|
]
|
|
3729
3729
|
}
|
|
3730
3730
|
);
|
|
@@ -3770,27 +3770,27 @@ var Xi = qi, fn = { exports: {} }, Ki = () => {
|
|
|
3770
3770
|
};
|
|
3771
3771
|
(function(e, t) {
|
|
3772
3772
|
var r = ir && ir.__awaiter || function(i, l, c, d) {
|
|
3773
|
-
return new (c || (c = Promise))(function(
|
|
3774
|
-
function
|
|
3773
|
+
return new (c || (c = Promise))(function(f, m) {
|
|
3774
|
+
function p(v) {
|
|
3775
3775
|
try {
|
|
3776
|
-
|
|
3777
|
-
} catch (
|
|
3778
|
-
|
|
3776
|
+
g(d.next(v));
|
|
3777
|
+
} catch (x) {
|
|
3778
|
+
m(x);
|
|
3779
3779
|
}
|
|
3780
3780
|
}
|
|
3781
|
-
function
|
|
3781
|
+
function h(v) {
|
|
3782
3782
|
try {
|
|
3783
|
-
|
|
3784
|
-
} catch (
|
|
3785
|
-
|
|
3783
|
+
g(d.throw(v));
|
|
3784
|
+
} catch (x) {
|
|
3785
|
+
m(x);
|
|
3786
3786
|
}
|
|
3787
3787
|
}
|
|
3788
|
-
function
|
|
3789
|
-
|
|
3790
|
-
|
|
3791
|
-
}).then(
|
|
3788
|
+
function g(v) {
|
|
3789
|
+
v.done ? f(v.value) : new c(function(x) {
|
|
3790
|
+
x(v.value);
|
|
3791
|
+
}).then(p, h);
|
|
3792
3792
|
}
|
|
3793
|
-
|
|
3793
|
+
g((d = d.apply(i, l || [])).next());
|
|
3794
3794
|
});
|
|
3795
3795
|
}, n = ir && ir.__importDefault || function(i) {
|
|
3796
3796
|
return i && i.__esModule ? i : { default: i };
|
|
@@ -3798,35 +3798,35 @@ var Xi = qi, fn = { exports: {} }, Ki = () => {
|
|
|
3798
3798
|
Object.defineProperty(t, "__esModule", { value: !0 });
|
|
3799
3799
|
const a = n(Ki);
|
|
3800
3800
|
function s(i, l = "maxAge") {
|
|
3801
|
-
let c, d,
|
|
3802
|
-
const
|
|
3801
|
+
let c, d, f;
|
|
3802
|
+
const m = () => r(this, void 0, void 0, function* () {
|
|
3803
3803
|
if (c !== void 0)
|
|
3804
3804
|
return;
|
|
3805
|
-
const
|
|
3806
|
-
|
|
3807
|
-
const
|
|
3808
|
-
if (
|
|
3809
|
-
i.delete(
|
|
3805
|
+
const g = (v) => r(this, void 0, void 0, function* () {
|
|
3806
|
+
f = a.default();
|
|
3807
|
+
const x = v[1][l] - Date.now();
|
|
3808
|
+
if (x <= 0) {
|
|
3809
|
+
i.delete(v[0]), f.resolve();
|
|
3810
3810
|
return;
|
|
3811
3811
|
}
|
|
3812
|
-
return c =
|
|
3813
|
-
i.delete(
|
|
3814
|
-
},
|
|
3812
|
+
return c = v[0], d = setTimeout(() => {
|
|
3813
|
+
i.delete(v[0]), f && f.resolve();
|
|
3814
|
+
}, x), typeof d.unref == "function" && d.unref(), f.promise;
|
|
3815
3815
|
});
|
|
3816
3816
|
try {
|
|
3817
|
-
for (const
|
|
3818
|
-
yield
|
|
3817
|
+
for (const v of i)
|
|
3818
|
+
yield g(v);
|
|
3819
3819
|
} catch {
|
|
3820
3820
|
}
|
|
3821
3821
|
c = void 0;
|
|
3822
|
-
}),
|
|
3823
|
-
c = void 0, d !== void 0 && (clearTimeout(d), d = void 0),
|
|
3824
|
-
},
|
|
3825
|
-
return i.set = (
|
|
3826
|
-
i.has(
|
|
3827
|
-
const
|
|
3828
|
-
return c && c ===
|
|
3829
|
-
},
|
|
3822
|
+
}), p = () => {
|
|
3823
|
+
c = void 0, d !== void 0 && (clearTimeout(d), d = void 0), f !== void 0 && (f.reject(void 0), f = void 0);
|
|
3824
|
+
}, h = i.set.bind(i);
|
|
3825
|
+
return i.set = (g, v) => {
|
|
3826
|
+
i.has(g) && i.delete(g);
|
|
3827
|
+
const x = h(g, v);
|
|
3828
|
+
return c && c === g && p(), m(), x;
|
|
3829
|
+
}, m(), i;
|
|
3830
3830
|
}
|
|
3831
3831
|
t.default = s, e.exports = s, e.exports.default = s;
|
|
3832
3832
|
})(fn, fn.exports);
|
|
@@ -3902,12 +3902,12 @@ function hn(e) {
|
|
|
3902
3902
|
function ac(e) {
|
|
3903
3903
|
var t = e === void 0 ? {} : e, r = t.useFallbackLocale, n = r === void 0 ? !0 : r, a = t.fallbackLocale, s = a === void 0 ? "en-US" : a, i = [];
|
|
3904
3904
|
if (typeof navigator < "u") {
|
|
3905
|
-
for (var l = navigator.languages || [], c = [], d = 0,
|
|
3906
|
-
var
|
|
3907
|
-
c = c.concat(ja(
|
|
3905
|
+
for (var l = navigator.languages || [], c = [], d = 0, f = l; d < f.length; d++) {
|
|
3906
|
+
var m = f[d];
|
|
3907
|
+
c = c.concat(ja(m));
|
|
3908
3908
|
}
|
|
3909
|
-
var
|
|
3910
|
-
i = i.concat(c,
|
|
3909
|
+
var p = navigator.language, h = p && ja(p);
|
|
3910
|
+
i = i.concat(c, h);
|
|
3911
3911
|
}
|
|
3912
3912
|
return n && i.push(s), i.filter(tc).map(hn).filter(rc);
|
|
3913
3913
|
}
|
|
@@ -4269,25 +4269,25 @@ function Wo(e, t) {
|
|
|
4269
4269
|
}
|
|
4270
4270
|
var Be = "react-calendar__navigation";
|
|
4271
4271
|
function Yc(e) {
|
|
4272
|
-
var t = e.activeStartDate, r = e.drillUp, n = e.formatMonthYear, a = n === void 0 ? Io : n, s = e.formatYear, i = s === void 0 ? Fr : s, l = e.locale, c = e.maxDate, d = e.minDate,
|
|
4272
|
+
var t = e.activeStartDate, r = e.drillUp, n = e.formatMonthYear, a = n === void 0 ? Io : n, s = e.formatYear, i = s === void 0 ? Fr : s, l = e.locale, c = e.maxDate, d = e.minDate, f = e.navigationAriaLabel, m = f === void 0 ? "" : f, p = e.navigationAriaLive, h = e.navigationLabel, g = e.next2AriaLabel, v = g === void 0 ? "" : g, x = e.next2Label, b = x === void 0 ? "»" : x, y = e.nextAriaLabel, O = y === void 0 ? "" : y, D = e.nextLabel, j = D === void 0 ? "›" : D, _ = e.prev2AriaLabel, R = _ === void 0 ? "" : _, q = e.prev2Label, ie = q === void 0 ? "«" : q, W = e.prevAriaLabel, ee = W === void 0 ? "" : W, L = e.prevLabel, A = L === void 0 ? "‹" : L, de = e.setActiveStartDate, ce = e.showDoubleView, Q = e.view, fe = e.views, $ = fe.indexOf(Q) > 0, X = Q !== "century", C = Ac(Q, t), N = X ? Ic(Q, t) : void 0, E = $o(Q, t), H = X ? $c(Q, t) : void 0, be = function() {
|
|
4273
4273
|
if (C.getFullYear() < 0)
|
|
4274
4274
|
return !0;
|
|
4275
4275
|
var Y = Lc(Q, t);
|
|
4276
4276
|
return d && d >= Y;
|
|
4277
4277
|
}(), oe = X && function() {
|
|
4278
|
-
if (
|
|
4278
|
+
if (N.getFullYear() < 0)
|
|
4279
4279
|
return !0;
|
|
4280
4280
|
var Y = Mc(Q, t);
|
|
4281
4281
|
return d && d >= Y;
|
|
4282
|
-
}(), w = c && c <
|
|
4282
|
+
}(), w = c && c < E, pe = X && c && c < H;
|
|
4283
4283
|
function he() {
|
|
4284
4284
|
de(C, "prev");
|
|
4285
4285
|
}
|
|
4286
4286
|
function te() {
|
|
4287
|
-
de(
|
|
4287
|
+
de(N, "prev2");
|
|
4288
4288
|
}
|
|
4289
4289
|
function De() {
|
|
4290
|
-
de(
|
|
4290
|
+
de(E, "next");
|
|
4291
4291
|
}
|
|
4292
4292
|
function _e() {
|
|
4293
4293
|
de(H, "next2");
|
|
@@ -4307,7 +4307,7 @@ function Yc(e) {
|
|
|
4307
4307
|
throw new Error("Invalid view: ".concat(Q, "."));
|
|
4308
4308
|
}
|
|
4309
4309
|
}();
|
|
4310
|
-
return
|
|
4310
|
+
return h ? h({
|
|
4311
4311
|
date: Y,
|
|
4312
4312
|
label: V,
|
|
4313
4313
|
locale: l || Do() || void 0,
|
|
@@ -4316,9 +4316,9 @@ function Yc(e) {
|
|
|
4316
4316
|
}
|
|
4317
4317
|
function B() {
|
|
4318
4318
|
var Y = "".concat(Be, "__label");
|
|
4319
|
-
return o.jsxs("button", { "aria-label":
|
|
4319
|
+
return o.jsxs("button", { "aria-label": m, "aria-live": p, className: Y, disabled: !$, onClick: r, style: { flexGrow: 1 }, type: "button", children: [o.jsx("span", { className: "".concat(Y, "__labelText ").concat(Y, "__labelText--from"), children: k(t) }), ce ? o.jsxs(o.Fragment, { children: [o.jsx("span", { className: "".concat(Y, "__divider"), children: " – " }), o.jsx("span", { className: "".concat(Y, "__labelText ").concat(Y, "__labelText--to"), children: k(E) })] }) : null] });
|
|
4320
4320
|
}
|
|
4321
|
-
return o.jsxs("div", { className: Be, children: [ie !== null && X ? o.jsx("button", { "aria-label": R, className: "".concat(Be, "__arrow ").concat(Be, "__prev2-button"), disabled: oe, onClick: te, type: "button", children: ie }) : null, A !== null && o.jsx("button", { "aria-label": ee, className: "".concat(Be, "__arrow ").concat(Be, "__prev-button"), disabled: be, onClick: he, type: "button", children: A }), B(),
|
|
4321
|
+
return o.jsxs("div", { className: Be, children: [ie !== null && X ? o.jsx("button", { "aria-label": R, className: "".concat(Be, "__arrow ").concat(Be, "__prev2-button"), disabled: oe, onClick: te, type: "button", children: ie }) : null, A !== null && o.jsx("button", { "aria-label": ee, className: "".concat(Be, "__arrow ").concat(Be, "__prev-button"), disabled: be, onClick: he, type: "button", children: A }), B(), j !== null && o.jsx("button", { "aria-label": O, className: "".concat(Be, "__arrow ").concat(Be, "__next-button"), disabled: w, onClick: De, type: "button", children: j }), b !== null && X ? o.jsx("button", { "aria-label": v, className: "".concat(Be, "__arrow ").concat(Be, "__next2-button"), disabled: pe, onClick: _e, type: "button", children: b }) : null] });
|
|
4322
4322
|
}
|
|
4323
4323
|
var yt = function() {
|
|
4324
4324
|
return yt = Object.assign || function(e) {
|
|
@@ -4341,15 +4341,15 @@ function Na(e) {
|
|
|
4341
4341
|
}
|
|
4342
4342
|
function zn(e) {
|
|
4343
4343
|
var t = e.children, r = e.className, n = e.count, a = e.direction, s = e.offset, i = e.style, l = e.wrap, c = Bc(e, ["children", "className", "count", "direction", "offset", "style", "wrap"]);
|
|
4344
|
-
return o.jsx("div", yt({ className: r, style: yt({ display: "flex", flexDirection: a, flexWrap: l ? "wrap" : "nowrap" }, i) }, c, { children: Zo.map(t, function(d,
|
|
4345
|
-
var
|
|
4344
|
+
return o.jsx("div", yt({ className: r, style: yt({ display: "flex", flexDirection: a, flexWrap: l ? "wrap" : "nowrap" }, i) }, c, { children: Zo.map(t, function(d, f) {
|
|
4345
|
+
var m = s && f === 0 ? Na(100 * s / n) : null;
|
|
4346
4346
|
return es(d, yt(yt({}, d.props), { style: {
|
|
4347
4347
|
flexBasis: Na(100 / n),
|
|
4348
4348
|
flexShrink: 0,
|
|
4349
4349
|
flexGrow: 0,
|
|
4350
4350
|
overflow: "hidden",
|
|
4351
|
-
marginLeft:
|
|
4352
|
-
marginInlineStart:
|
|
4351
|
+
marginLeft: m,
|
|
4352
|
+
marginInlineStart: m,
|
|
4353
4353
|
marginInlineEnd: 0
|
|
4354
4354
|
} }));
|
|
4355
4355
|
}) }));
|
|
@@ -4387,62 +4387,62 @@ function Gc(e) {
|
|
|
4387
4387
|
var i = /* @__PURE__ */ new Date(), l = function() {
|
|
4388
4388
|
if (Array.isArray(r))
|
|
4389
4389
|
return r;
|
|
4390
|
-
var
|
|
4391
|
-
if (!
|
|
4390
|
+
var h = e.dateType;
|
|
4391
|
+
if (!h)
|
|
4392
4392
|
throw new Error("dateType is required when date is not an array of two dates");
|
|
4393
|
-
return Da(
|
|
4393
|
+
return Da(h, r);
|
|
4394
4394
|
}();
|
|
4395
4395
|
if (Ht(i, l) && s.push("".concat(a, "--now")), !t || !Hc(t))
|
|
4396
4396
|
return s;
|
|
4397
4397
|
var c = function() {
|
|
4398
4398
|
if (Array.isArray(t))
|
|
4399
4399
|
return t;
|
|
4400
|
-
var
|
|
4401
|
-
if (!
|
|
4400
|
+
var h = e.valueType;
|
|
4401
|
+
if (!h)
|
|
4402
4402
|
throw new Error("valueType is required when value is not an array of two dates");
|
|
4403
|
-
return Da(
|
|
4403
|
+
return Da(h, t);
|
|
4404
4404
|
}();
|
|
4405
4405
|
zc(c, l) ? s.push("".concat(a, "--active")) : Vo(c, l) && s.push("".concat(a, "--hasActive"));
|
|
4406
4406
|
var d = Ea(c, l, "".concat(a, "--range"));
|
|
4407
4407
|
s.push.apply(s, d);
|
|
4408
|
-
var
|
|
4409
|
-
if (n &&
|
|
4410
|
-
var
|
|
4411
|
-
s.push.apply(s,
|
|
4408
|
+
var f = Array.isArray(t) ? t : [t];
|
|
4409
|
+
if (n && f.length === 1) {
|
|
4410
|
+
var m = n > c[0] ? [c[0], n] : [n, c[0]], p = Ea(m, l, "".concat(a, "--hover"));
|
|
4411
|
+
s.push.apply(s, p);
|
|
4412
4412
|
}
|
|
4413
4413
|
return s;
|
|
4414
4414
|
}
|
|
4415
4415
|
function Wr(e) {
|
|
4416
|
-
for (var t = e.className, r = e.count, n = r === void 0 ? 3 : r, a = e.dateTransform, s = e.dateType, i = e.end, l = e.hover, c = e.offset, d = e.renderTile,
|
|
4417
|
-
var
|
|
4418
|
-
|
|
4416
|
+
for (var t = e.className, r = e.count, n = r === void 0 ? 3 : r, a = e.dateTransform, s = e.dateType, i = e.end, l = e.hover, c = e.offset, d = e.renderTile, f = e.start, m = e.step, p = m === void 0 ? 1 : m, h = e.value, g = e.valueType, v = [], x = f; x <= i; x += p) {
|
|
4417
|
+
var b = a(x);
|
|
4418
|
+
v.push(d({
|
|
4419
4419
|
classes: Gc({
|
|
4420
|
-
date:
|
|
4420
|
+
date: b,
|
|
4421
4421
|
dateType: s,
|
|
4422
4422
|
hover: l,
|
|
4423
|
-
value:
|
|
4424
|
-
valueType:
|
|
4423
|
+
value: h,
|
|
4424
|
+
valueType: g
|
|
4425
4425
|
}),
|
|
4426
|
-
date:
|
|
4426
|
+
date: b
|
|
4427
4427
|
}));
|
|
4428
4428
|
}
|
|
4429
|
-
return o.jsx(zn, { className: t, count: n, offset: c, wrap: !0, children:
|
|
4429
|
+
return o.jsx(zn, { className: t, count: n, offset: c, wrap: !0, children: v });
|
|
4430
4430
|
}
|
|
4431
4431
|
function Vr(e) {
|
|
4432
|
-
var t = e.activeStartDate, r = e.children, n = e.classes, a = e.date, s = e.formatAbbr, i = e.locale, l = e.maxDate, c = e.maxDateTransform, d = e.minDate,
|
|
4433
|
-
var
|
|
4434
|
-
return typeof
|
|
4435
|
-
}, [t, a,
|
|
4436
|
-
var
|
|
4437
|
-
return typeof
|
|
4438
|
-
}, [t, a,
|
|
4439
|
-
return o.jsxs("button", { className: Ir(n,
|
|
4440
|
-
return
|
|
4441
|
-
} : void 0, onFocus:
|
|
4442
|
-
return
|
|
4443
|
-
} : void 0, onMouseOver:
|
|
4444
|
-
return
|
|
4445
|
-
} : void 0, style:
|
|
4432
|
+
var t = e.activeStartDate, r = e.children, n = e.classes, a = e.date, s = e.formatAbbr, i = e.locale, l = e.maxDate, c = e.maxDateTransform, d = e.minDate, f = e.minDateTransform, m = e.onClick, p = e.onMouseOver, h = e.style, g = e.tileClassName, v = e.tileContent, x = e.tileDisabled, b = e.view, y = Le(function() {
|
|
4433
|
+
var D = { activeStartDate: t, date: a, view: b };
|
|
4434
|
+
return typeof g == "function" ? g(D) : g;
|
|
4435
|
+
}, [t, a, g, b]), O = Le(function() {
|
|
4436
|
+
var D = { activeStartDate: t, date: a, view: b };
|
|
4437
|
+
return typeof v == "function" ? v(D) : v;
|
|
4438
|
+
}, [t, a, v, b]);
|
|
4439
|
+
return o.jsxs("button", { className: Ir(n, y), disabled: d && f(d) > a || l && c(l) < a || (x == null ? void 0 : x({ activeStartDate: t, date: a, view: b })), onClick: m ? function(D) {
|
|
4440
|
+
return m(a, D);
|
|
4441
|
+
} : void 0, onFocus: p ? function() {
|
|
4442
|
+
return p(a);
|
|
4443
|
+
} : void 0, onMouseOver: p ? function() {
|
|
4444
|
+
return p(a);
|
|
4445
|
+
} : void 0, style: h, type: "button", children: [s ? o.jsx("abbr", { "aria-label": s(i, a), children: r }) : r, O] });
|
|
4446
4446
|
}
|
|
4447
4447
|
var vn = function() {
|
|
4448
4448
|
return vn = Object.assign || function(e) {
|
|
@@ -4483,8 +4483,8 @@ var pn = function() {
|
|
|
4483
4483
|
function Kc(e) {
|
|
4484
4484
|
var t = e.activeStartDate, r = e.hover, n = e.showNeighboringCentury, a = e.value, s = e.valueType, i = Ca(e, ["activeStartDate", "hover", "showNeighboringCentury", "value", "valueType"]), l = Tc(t), c = l + (n ? 119 : 99);
|
|
4485
4485
|
return o.jsx(Wr, { className: "react-calendar__century-view__decades", dateTransform: Ze, dateType: "decade", end: c, hover: r, renderTile: function(d) {
|
|
4486
|
-
var
|
|
4487
|
-
return o.jsx(Xc, pn({}, i,
|
|
4486
|
+
var f = d.date, m = Ca(d, ["date"]);
|
|
4487
|
+
return o.jsx(Xc, pn({}, i, m, { activeStartDate: t, currentCentury: l, date: f }), f.getTime());
|
|
4488
4488
|
}, start: l, step: 10, value: a, valueType: s });
|
|
4489
4489
|
}
|
|
4490
4490
|
var gn = function() {
|
|
@@ -4541,8 +4541,8 @@ var bn = function() {
|
|
|
4541
4541
|
function el(e) {
|
|
4542
4542
|
var t = e.activeStartDate, r = e.hover, n = e.showNeighboringDecade, a = e.value, s = e.valueType, i = _a(e, ["activeStartDate", "hover", "showNeighboringDecade", "value", "valueType"]), l = Rc(t), c = l + (n ? 11 : 9);
|
|
4543
4543
|
return o.jsx(Wr, { className: "react-calendar__decade-view__years", dateTransform: _t, dateType: "year", end: c, hover: r, renderTile: function(d) {
|
|
4544
|
-
var
|
|
4545
|
-
return o.jsx(Zc, bn({}, i,
|
|
4544
|
+
var f = d.date, m = _a(d, ["date"]);
|
|
4545
|
+
return o.jsx(Zc, bn({}, i, m, { activeStartDate: t, currentDecade: l, date: f }), f.getTime());
|
|
4546
4546
|
}, start: l, value: a, valueType: s });
|
|
4547
4547
|
}
|
|
4548
4548
|
var xn = function() {
|
|
@@ -4603,11 +4603,11 @@ var jn = function() {
|
|
|
4603
4603
|
function ol(e) {
|
|
4604
4604
|
var t = e.activeStartDate, r = e.hover, n = e.value, a = e.valueType, s = Ra(e, ["activeStartDate", "hover", "value", "valueType"]), i = 0, l = 11, c = we(t);
|
|
4605
4605
|
return o.jsx(Wr, { className: "react-calendar__year-view__months", dateTransform: function(d) {
|
|
4606
|
-
var
|
|
4607
|
-
return
|
|
4606
|
+
var f = /* @__PURE__ */ new Date();
|
|
4607
|
+
return f.setFullYear(c, d, 1), lt(f);
|
|
4608
4608
|
}, dateType: "month", end: l, hover: r, renderTile: function(d) {
|
|
4609
|
-
var
|
|
4610
|
-
return o.jsx(al, jn({}, s,
|
|
4609
|
+
var f = d.date, m = Ra(d, ["date"]);
|
|
4610
|
+
return o.jsx(al, jn({}, s, m, { activeStartDate: t, date: f }), f.getTime());
|
|
4611
4611
|
}, start: i, value: n, valueType: a });
|
|
4612
4612
|
}
|
|
4613
4613
|
var Sn = function() {
|
|
@@ -4642,8 +4642,8 @@ var Dn = function() {
|
|
|
4642
4642
|
return r;
|
|
4643
4643
|
}, Zr = "react-calendar__month-view__days__day";
|
|
4644
4644
|
function cl(e) {
|
|
4645
|
-
var t = e.calendarType, r = e.classes, n = r === void 0 ? [] : r, a = e.currentMonthIndex, s = e.formatDay, i = s === void 0 ? Dc : s, l = e.formatLongDate, c = l === void 0 ? Nc : l, d = il(e, ["calendarType", "classes", "currentMonthIndex", "formatDay", "formatLongDate"]),
|
|
4646
|
-
return n &&
|
|
4645
|
+
var t = e.calendarType, r = e.classes, n = r === void 0 ? [] : r, a = e.currentMonthIndex, s = e.formatDay, i = s === void 0 ? Dc : s, l = e.formatLongDate, c = l === void 0 ? Nc : l, d = il(e, ["calendarType", "classes", "currentMonthIndex", "formatDay", "formatLongDate"]), f = d.date, m = d.locale, p = [];
|
|
4646
|
+
return n && p.push.apply(p, n), p.push(Zr), Wo(f, t) && p.push("".concat(Zr, "--weekend")), f.getMonth() !== a && p.push("".concat(Zr, "--neighboringMonth")), o.jsx(Vr, Dn({}, d, { classes: p, formatAbbr: c, maxDateTransform: Bn, minDateTransform: Kt, view: "month", children: i(m, f) }));
|
|
4647
4647
|
}
|
|
4648
4648
|
var Nn = function() {
|
|
4649
4649
|
return Nn = Object.assign || function(e) {
|
|
@@ -4662,33 +4662,33 @@ var Nn = function() {
|
|
|
4662
4662
|
return r;
|
|
4663
4663
|
};
|
|
4664
4664
|
function ll(e) {
|
|
4665
|
-
var t = e.activeStartDate, r = e.calendarType, n = e.hover, a = e.showFixedNumberOfWeeks, s = e.showNeighboringMonth, i = e.value, l = e.valueType, c = Pa(e, ["activeStartDate", "calendarType", "hover", "showFixedNumberOfWeeks", "showNeighboringMonth", "value", "valueType"]), d = we(t),
|
|
4665
|
+
var t = e.activeStartDate, r = e.calendarType, n = e.hover, a = e.showFixedNumberOfWeeks, s = e.showNeighboringMonth, i = e.value, l = e.valueType, c = Pa(e, ["activeStartDate", "calendarType", "hover", "showFixedNumberOfWeeks", "showNeighboringMonth", "value", "valueType"]), d = we(t), f = Qe(t), m = a || s, p = zt(t, r), h = m ? 0 : p, g = (m ? -p : 0) + 1, v = function() {
|
|
4666
4666
|
if (a)
|
|
4667
|
-
return
|
|
4668
|
-
var
|
|
4667
|
+
return g + 6 * 7 - 1;
|
|
4668
|
+
var x = Ao(t);
|
|
4669
4669
|
if (s) {
|
|
4670
|
-
var
|
|
4671
|
-
|
|
4672
|
-
var
|
|
4673
|
-
return
|
|
4670
|
+
var b = /* @__PURE__ */ new Date();
|
|
4671
|
+
b.setFullYear(d, f, x), b.setHours(0, 0, 0, 0);
|
|
4672
|
+
var y = 7 - zt(b, r) - 1;
|
|
4673
|
+
return x + y;
|
|
4674
4674
|
}
|
|
4675
|
-
return
|
|
4675
|
+
return x;
|
|
4676
4676
|
}();
|
|
4677
|
-
return o.jsx(Wr, { className: "react-calendar__month-view__days", count: 7, dateTransform: function(
|
|
4678
|
-
var
|
|
4679
|
-
return
|
|
4680
|
-
}, dateType: "day", hover: n, end:
|
|
4681
|
-
var
|
|
4682
|
-
return o.jsx(cl, Nn({}, c,
|
|
4683
|
-
}, offset:
|
|
4677
|
+
return o.jsx(Wr, { className: "react-calendar__month-view__days", count: 7, dateTransform: function(x) {
|
|
4678
|
+
var b = /* @__PURE__ */ new Date();
|
|
4679
|
+
return b.setFullYear(d, f, x), Kt(b);
|
|
4680
|
+
}, dateType: "day", hover: n, end: v, renderTile: function(x) {
|
|
4681
|
+
var b = x.date, y = Pa(x, ["date"]);
|
|
4682
|
+
return o.jsx(cl, Nn({}, c, y, { activeStartDate: t, calendarType: r, currentMonthIndex: f, date: b }), b.getTime());
|
|
4683
|
+
}, offset: h, start: g, value: i, valueType: l });
|
|
4684
4684
|
}
|
|
4685
4685
|
var Yo = "react-calendar__month-view__weekdays", en = "".concat(Yo, "__weekday");
|
|
4686
4686
|
function ul(e) {
|
|
4687
|
-
for (var t = e.calendarType, r = e.formatShortWeekday, n = r === void 0 ? Oc : r, a = e.formatWeekday, s = a === void 0 ? Cc : a, i = e.locale, l = e.onMouseLeave, c = /* @__PURE__ */ new Date(), d = lt(c),
|
|
4688
|
-
var
|
|
4689
|
-
|
|
4687
|
+
for (var t = e.calendarType, r = e.formatShortWeekday, n = r === void 0 ? Oc : r, a = e.formatWeekday, s = a === void 0 ? Cc : a, i = e.locale, l = e.onMouseLeave, c = /* @__PURE__ */ new Date(), d = lt(c), f = we(d), m = Qe(d), p = [], h = 1; h <= 7; h += 1) {
|
|
4688
|
+
var g = new Date(f, m, h - zt(d, t)), v = s(i, g);
|
|
4689
|
+
p.push(o.jsx("div", { className: Ir(en, Vc(g) && "".concat(en, "--current"), Wo(g, t) && "".concat(en, "--weekend")), children: o.jsx("abbr", { "aria-label": v, title: v, children: n(i, g).replace(".", "") }) }, h));
|
|
4690
4690
|
}
|
|
4691
|
-
return o.jsx(zn, { className: Yo, count: 7, onFocus: l, onMouseOver: l, children:
|
|
4691
|
+
return o.jsx(zn, { className: Yo, count: 7, onFocus: l, onMouseOver: l, children: p });
|
|
4692
4692
|
}
|
|
4693
4693
|
var Nr = function() {
|
|
4694
4694
|
return Nr = Object.assign || function(e) {
|
|
@@ -4723,20 +4723,20 @@ function fl(e) {
|
|
|
4723
4723
|
var t = e.activeStartDate, r = e.calendarType, n = e.onClickWeekNumber, a = e.onMouseLeave, s = e.showFixedNumberOfWeeks, i = function() {
|
|
4724
4724
|
if (s)
|
|
4725
4725
|
return 6;
|
|
4726
|
-
var d = Ao(t),
|
|
4727
|
-
return 1 + Math.ceil(
|
|
4726
|
+
var d = Ao(t), f = zt(t, r), m = d - (7 - f);
|
|
4727
|
+
return 1 + Math.ceil(m / 7);
|
|
4728
4728
|
}(), l = function() {
|
|
4729
|
-
for (var d = we(t),
|
|
4730
|
-
|
|
4731
|
-
return
|
|
4729
|
+
for (var d = we(t), f = Qe(t), m = $r(t), p = [], h = 0; h < i; h += 1)
|
|
4730
|
+
p.push(mn(new Date(d, f, m + h * 7), r));
|
|
4731
|
+
return p;
|
|
4732
4732
|
}(), c = l.map(function(d) {
|
|
4733
4733
|
return Pc(d, r);
|
|
4734
4734
|
});
|
|
4735
|
-
return o.jsx(zn, { className: "react-calendar__month-view__weekNumbers", count: i, direction: "column", onFocus: a, onMouseOver: a, style: { flexBasis: "calc(100% * (1 / 8)", flexShrink: 0 }, children: c.map(function(d,
|
|
4736
|
-
var
|
|
4737
|
-
if (!
|
|
4735
|
+
return o.jsx(zn, { className: "react-calendar__month-view__weekNumbers", count: i, direction: "column", onFocus: a, onMouseOver: a, style: { flexBasis: "calc(100% * (1 / 8)", flexShrink: 0 }, children: c.map(function(d, f) {
|
|
4736
|
+
var m = l[f];
|
|
4737
|
+
if (!m)
|
|
4738
4738
|
throw new Error("date is not defined");
|
|
4739
|
-
return o.jsx(dl, { date:
|
|
4739
|
+
return o.jsx(dl, { date: m, onClickWeekNumber: n, weekNumber: d }, d);
|
|
4740
4740
|
}) });
|
|
4741
4741
|
}
|
|
4742
4742
|
var En = function() {
|
|
@@ -4765,24 +4765,24 @@ function ml(e) {
|
|
|
4765
4765
|
return Ce.ISO_8601;
|
|
4766
4766
|
}
|
|
4767
4767
|
function vl(e) {
|
|
4768
|
-
var t = e.activeStartDate, r = e.locale, n = e.onMouseLeave, a = e.showFixedNumberOfWeeks, s = e.calendarType, i = s === void 0 ? ml(r) : s, l = e.formatShortWeekday, c = e.formatWeekday, d = e.onClickWeekNumber,
|
|
4769
|
-
function
|
|
4768
|
+
var t = e.activeStartDate, r = e.locale, n = e.onMouseLeave, a = e.showFixedNumberOfWeeks, s = e.calendarType, i = s === void 0 ? ml(r) : s, l = e.formatShortWeekday, c = e.formatWeekday, d = e.onClickWeekNumber, f = e.showWeekNumbers, m = hl(e, ["calendarType", "formatShortWeekday", "formatWeekday", "onClickWeekNumber", "showWeekNumbers"]);
|
|
4769
|
+
function p() {
|
|
4770
4770
|
return o.jsx(ul, { calendarType: i, formatShortWeekday: l, formatWeekday: c, locale: r, onMouseLeave: n });
|
|
4771
4771
|
}
|
|
4772
|
-
function
|
|
4773
|
-
return
|
|
4772
|
+
function h() {
|
|
4773
|
+
return f ? o.jsx(fl, { activeStartDate: t, calendarType: i, onClickWeekNumber: d, onMouseLeave: n, showFixedNumberOfWeeks: a }) : null;
|
|
4774
4774
|
}
|
|
4775
|
-
function
|
|
4776
|
-
return o.jsx(ll, En({ calendarType: i },
|
|
4775
|
+
function g() {
|
|
4776
|
+
return o.jsx(ll, En({ calendarType: i }, m));
|
|
4777
4777
|
}
|
|
4778
|
-
var
|
|
4779
|
-
return o.jsx("div", { className: Ir(
|
|
4778
|
+
var v = "react-calendar__month-view";
|
|
4779
|
+
return o.jsx("div", { className: Ir(v, f ? "".concat(v, "--weekNumbers") : ""), children: o.jsxs("div", { style: {
|
|
4780
4780
|
display: "flex",
|
|
4781
4781
|
alignItems: "flex-end"
|
|
4782
|
-
}, children: [
|
|
4782
|
+
}, children: [h(), o.jsxs("div", { style: {
|
|
4783
4783
|
flexGrow: 1,
|
|
4784
4784
|
width: "100%"
|
|
4785
|
-
}, children: [
|
|
4785
|
+
}, children: [p(), g()] })] }) });
|
|
4786
4786
|
}
|
|
4787
4787
|
var bt = function() {
|
|
4788
4788
|
return bt = Object.assign || function(e) {
|
|
@@ -4857,14 +4857,14 @@ function Go(e) {
|
|
|
4857
4857
|
return it(l, c);
|
|
4858
4858
|
}
|
|
4859
4859
|
function wl(e) {
|
|
4860
|
-
var t = e.activeStartDate, r = e.defaultActiveStartDate, n = e.defaultValue, a = e.defaultView, s = e.maxDate, i = e.maxDetail, l = e.minDate, c = e.minDetail, d = e.value,
|
|
4861
|
-
return
|
|
4860
|
+
var t = e.activeStartDate, r = e.defaultActiveStartDate, n = e.defaultValue, a = e.defaultView, s = e.maxDate, i = e.maxDetail, l = e.minDate, c = e.minDetail, d = e.value, f = e.view, m = Gn(f, c, i), p = t || r;
|
|
4861
|
+
return p ? it(m, p) : Go({
|
|
4862
4862
|
maxDate: s,
|
|
4863
4863
|
maxDetail: i,
|
|
4864
4864
|
minDate: l,
|
|
4865
4865
|
minDetail: c,
|
|
4866
4866
|
value: d || n,
|
|
4867
|
-
view:
|
|
4867
|
+
view: f || a
|
|
4868
4868
|
});
|
|
4869
4869
|
}
|
|
4870
4870
|
function tn(e) {
|
|
@@ -4874,7 +4874,7 @@ function mr(e, t) {
|
|
|
4874
4874
|
return e instanceof Date && t instanceof Date && e.getTime() === t.getTime();
|
|
4875
4875
|
}
|
|
4876
4876
|
var jl = Je(function(t, r) {
|
|
4877
|
-
var n = t.activeStartDate, a = t.allowPartialRange, s = t.calendarType, i = t.className, l = t.defaultActiveStartDate, c = t.defaultValue, d = t.defaultView,
|
|
4877
|
+
var n = t.activeStartDate, a = t.allowPartialRange, s = t.calendarType, i = t.className, l = t.defaultActiveStartDate, c = t.defaultValue, d = t.defaultView, f = t.formatDay, m = t.formatLongDate, p = t.formatMonth, h = t.formatMonthYear, g = t.formatShortWeekday, v = t.formatWeekday, x = t.formatYear, b = t.goToRangeStartOnSelect, y = b === void 0 ? !0 : b, O = t.inputRef, D = t.locale, j = t.maxDate, _ = j === void 0 ? gl : j, R = t.maxDetail, q = R === void 0 ? "month" : R, ie = t.minDate, W = ie === void 0 ? Hn : ie, ee = t.minDetail, L = ee === void 0 ? "century" : ee, A = t.navigationAriaLabel, de = t.navigationAriaLive, ce = t.navigationLabel, Q = t.next2AriaLabel, fe = t.next2Label, $ = t.nextAriaLabel, X = t.nextLabel, C = t.onActiveStartDateChange, N = t.onChange, E = t.onClickDay, H = t.onClickDecade, be = t.onClickMonth, oe = t.onClickWeekNumber, w = t.onClickYear, pe = t.onDrillDown, he = t.onDrillUp, te = t.onViewChange, De = t.prev2AriaLabel, _e = t.prev2Label, k = t.prevAriaLabel, B = t.prevLabel, Y = t.returnValue, V = Y === void 0 ? "start" : Y, G = t.selectRange, le = t.showDoubleView, re = t.showFixedNumberOfWeeks, Z = t.showNavigation, Se = Z === void 0 ? !0 : Z, Ee = t.showNeighboringCentury, Te = t.showNeighboringDecade, We = t.showNeighboringMonth, dt = We === void 0 ? !0 : We, Jt = t.showWeekNumbers, Qt = t.tileClassName, Zt = t.tileContent, Yr = t.tileDisabled, ft = t.value, Tt = t.view, er = U(l), Br = er[0], ht = er[1], tr = U(null), Ur = tr[0], rr = tr[1], nr = U(Array.isArray(c) ? c.map(function(P) {
|
|
4878
4878
|
return P !== null ? Yt(P) : null;
|
|
4879
4879
|
}) : c != null ? Yt(c) : null), et = nr[0], ar = nr[1], ze = U(d), Rt = ze[0], mt = ze[1], Oe = n || Br || wl({
|
|
4880
4880
|
activeStartDate: n,
|
|
@@ -4932,13 +4932,13 @@ var jl = Je(function(t, r) {
|
|
|
4932
4932
|
case "year":
|
|
4933
4933
|
return be;
|
|
4934
4934
|
case "month":
|
|
4935
|
-
return
|
|
4935
|
+
return E;
|
|
4936
4936
|
default:
|
|
4937
4937
|
throw new Error("Invalid view: ".concat(ge, "."));
|
|
4938
4938
|
}
|
|
4939
4939
|
}();
|
|
4940
4940
|
F && F(P, M);
|
|
4941
|
-
}, [
|
|
4941
|
+
}, [E, H, be, w, ge]), It = I(function(P, M) {
|
|
4942
4942
|
if (Pt) {
|
|
4943
4943
|
pt(P, M);
|
|
4944
4944
|
var F = $e[$e.indexOf(ge) + 1];
|
|
@@ -5007,7 +5007,7 @@ var jl = Je(function(t, r) {
|
|
|
5007
5007
|
// Range selection turned off
|
|
5008
5008
|
!G || // Range selection turned on, first value
|
|
5009
5009
|
ve || // Range selection turned on, second value, goToRangeStartOnSelect toggled on
|
|
5010
|
-
|
|
5010
|
+
y ? Go({
|
|
5011
5011
|
maxDate: _,
|
|
5012
5012
|
maxDetail: q,
|
|
5013
5013
|
minDate: W,
|
|
@@ -5023,29 +5023,29 @@ var jl = Je(function(t, r) {
|
|
|
5023
5023
|
value: ne,
|
|
5024
5024
|
view: ge
|
|
5025
5025
|
};
|
|
5026
|
-
if (C && !mr(Oe, xe) && C(Re),
|
|
5026
|
+
if (C && !mr(Oe, xe) && C(Re), N)
|
|
5027
5027
|
if (G) {
|
|
5028
5028
|
var Xe = tn(ne);
|
|
5029
5029
|
if (!Xe)
|
|
5030
|
-
|
|
5030
|
+
N(ne || null, M);
|
|
5031
5031
|
else if (a) {
|
|
5032
5032
|
if (Array.isArray(ne))
|
|
5033
5033
|
throw new Error("value must not be an array");
|
|
5034
|
-
|
|
5034
|
+
N([ne || null, null], M);
|
|
5035
5035
|
}
|
|
5036
5036
|
} else
|
|
5037
|
-
|
|
5037
|
+
N(ne || null, M);
|
|
5038
5038
|
}, [
|
|
5039
5039
|
Oe,
|
|
5040
5040
|
a,
|
|
5041
5041
|
At,
|
|
5042
|
-
|
|
5042
|
+
y,
|
|
5043
5043
|
_,
|
|
5044
5044
|
q,
|
|
5045
5045
|
W,
|
|
5046
5046
|
L,
|
|
5047
5047
|
C,
|
|
5048
|
-
|
|
5048
|
+
N,
|
|
5049
5049
|
pt,
|
|
5050
5050
|
G,
|
|
5051
5051
|
ke,
|
|
@@ -5055,7 +5055,7 @@ var jl = Je(function(t, r) {
|
|
|
5055
5055
|
function u(P) {
|
|
5056
5056
|
rr(P);
|
|
5057
5057
|
}
|
|
5058
|
-
function
|
|
5058
|
+
function S() {
|
|
5059
5059
|
rr(null);
|
|
5060
5060
|
}
|
|
5061
5061
|
Or(r, function() {
|
|
@@ -5073,7 +5073,7 @@ var jl = Je(function(t, r) {
|
|
|
5073
5073
|
var M = P ? $o(ge, Oe) : it(ge, Oe), F = Pt ? It : Lt, ve = {
|
|
5074
5074
|
activeStartDate: M,
|
|
5075
5075
|
hover: or,
|
|
5076
|
-
locale:
|
|
5076
|
+
locale: D,
|
|
5077
5077
|
maxDate: _,
|
|
5078
5078
|
minDate: W,
|
|
5079
5079
|
onClick: F,
|
|
@@ -5086,22 +5086,22 @@ var jl = Je(function(t, r) {
|
|
|
5086
5086
|
};
|
|
5087
5087
|
switch (ge) {
|
|
5088
5088
|
case "century":
|
|
5089
|
-
return o.jsx(Jc, bt({ formatYear:
|
|
5089
|
+
return o.jsx(Jc, bt({ formatYear: x, showNeighboringCentury: Ee }, ve));
|
|
5090
5090
|
case "decade":
|
|
5091
|
-
return o.jsx(tl, bt({ formatYear:
|
|
5091
|
+
return o.jsx(tl, bt({ formatYear: x, showNeighboringDecade: Te }, ve));
|
|
5092
5092
|
case "year":
|
|
5093
|
-
return o.jsx(sl, bt({ formatMonth:
|
|
5093
|
+
return o.jsx(sl, bt({ formatMonth: p, formatMonthYear: h }, ve));
|
|
5094
5094
|
case "month":
|
|
5095
|
-
return o.jsx(vl, bt({ calendarType: s, formatDay:
|
|
5095
|
+
return o.jsx(vl, bt({ calendarType: s, formatDay: f, formatLongDate: m, formatShortWeekday: g, formatWeekday: v, onClickWeekNumber: oe, onMouseLeave: G ? S : void 0, showFixedNumberOfWeeks: typeof re < "u" ? re : le, showNeighboringMonth: dt, showWeekNumbers: Jt }, ve));
|
|
5096
5096
|
default:
|
|
5097
5097
|
throw new Error("Invalid view: ".concat(ge, "."));
|
|
5098
5098
|
}
|
|
5099
5099
|
}
|
|
5100
5100
|
function z() {
|
|
5101
|
-
return Se ? o.jsx(Yc, { activeStartDate: Oe, drillUp: $t, formatMonthYear:
|
|
5101
|
+
return Se ? o.jsx(Yc, { activeStartDate: Oe, drillUp: $t, formatMonthYear: h, formatYear: x, locale: D, maxDate: _, minDate: W, navigationAriaLabel: A, navigationAriaLive: de, navigationLabel: ce, next2AriaLabel: Q, next2Label: fe, nextAriaLabel: $, nextLabel: X, prev2AriaLabel: De, prev2Label: _e, prevAriaLabel: k, prevLabel: B, setActiveStartDate: vt, showDoubleView: le, view: ge, views: $e }) : null;
|
|
5102
5102
|
}
|
|
5103
5103
|
var se = Array.isArray(ke) ? ke : [ke];
|
|
5104
|
-
return o.jsxs("div", { className: Ir(hr, G && se.length === 1 && "".concat(hr, "--selectRange"), le && "".concat(hr, "--doubleView"), i), ref:
|
|
5104
|
+
return o.jsxs("div", { className: Ir(hr, G && se.length === 1 && "".concat(hr, "--selectRange"), le && "".concat(hr, "--doubleView"), i), ref: O, children: [z(), o.jsxs("div", { className: "".concat(hr, "__viewContainer"), onBlur: G ? S : void 0, onMouseLeave: G ? S : void 0, children: [T(), le ? T(!0) : null] })] });
|
|
5105
5105
|
});
|
|
5106
5106
|
const ou = ({
|
|
5107
5107
|
value: e,
|
|
@@ -5110,24 +5110,24 @@ const ou = ({
|
|
|
5110
5110
|
children: n
|
|
5111
5111
|
}) => {
|
|
5112
5112
|
const [a, s] = U(e ?? /* @__PURE__ */ new Date()), [i, l] = U(!1), c = me(null), d = I(
|
|
5113
|
-
(
|
|
5114
|
-
s(
|
|
5113
|
+
(v) => {
|
|
5114
|
+
s(v), t && t(v), l(!1);
|
|
5115
5115
|
},
|
|
5116
5116
|
[t]
|
|
5117
|
-
),
|
|
5118
|
-
c.current && !c.current.contains(
|
|
5117
|
+
), f = () => l(!i), m = I((v) => {
|
|
5118
|
+
c.current && !c.current.contains(v.target) && l(!1);
|
|
5119
5119
|
}, []);
|
|
5120
|
-
ae(() => (i ? document.addEventListener("mousedown",
|
|
5121
|
-
document.removeEventListener("mousedown",
|
|
5122
|
-
}), [i,
|
|
5123
|
-
const [
|
|
5124
|
-
activeStartDate:
|
|
5120
|
+
ae(() => (i ? document.addEventListener("mousedown", m) : document.removeEventListener("mousedown", m), () => {
|
|
5121
|
+
document.removeEventListener("mousedown", m);
|
|
5122
|
+
}), [i, m]);
|
|
5123
|
+
const [p, h] = U(), g = ({
|
|
5124
|
+
activeStartDate: v
|
|
5125
5125
|
}) => {
|
|
5126
|
-
|
|
5126
|
+
h(v);
|
|
5127
5127
|
};
|
|
5128
5128
|
return /* @__PURE__ */ o.jsx("div", { children: /* @__PURE__ */ o.jsxs("div", { className: "calendar", ref: c, children: [
|
|
5129
|
-
n && /* @__PURE__ */ o.jsx("div", { onClick:
|
|
5130
|
-
!n && /* @__PURE__ */ o.jsx("button", { className: "calendar-button", onClick:
|
|
5129
|
+
n && /* @__PURE__ */ o.jsx("div", { onClick: f, children: n }),
|
|
5130
|
+
!n && /* @__PURE__ */ o.jsx("button", { className: "calendar-button", onClick: f, children: /* @__PURE__ */ o.jsx(
|
|
5131
5131
|
J,
|
|
5132
5132
|
{
|
|
5133
5133
|
classIcon: " bi-calendar4-event",
|
|
@@ -5152,14 +5152,14 @@ const ou = ({
|
|
|
5152
5152
|
/* @__PURE__ */ o.jsx(
|
|
5153
5153
|
jl,
|
|
5154
5154
|
{
|
|
5155
|
-
onActiveStartDateChange:
|
|
5155
|
+
onActiveStartDateChange: g,
|
|
5156
5156
|
maxDate: r ?? /* @__PURE__ */ new Date(),
|
|
5157
5157
|
onChange: d,
|
|
5158
5158
|
value: a,
|
|
5159
|
-
tileClassName: ({ date:
|
|
5160
|
-
if (
|
|
5161
|
-
const
|
|
5162
|
-
return
|
|
5159
|
+
tileClassName: ({ date: v, view: x }) => {
|
|
5160
|
+
if (x === "month" && p) {
|
|
5161
|
+
const b = p;
|
|
5162
|
+
return v.getMonth() !== (b == null ? void 0 : b.getMonth()) ? "out-of-month" : null;
|
|
5163
5163
|
}
|
|
5164
5164
|
return null;
|
|
5165
5165
|
}
|
|
@@ -5173,89 +5173,90 @@ const ou = ({
|
|
|
5173
5173
|
className: r,
|
|
5174
5174
|
showArrow: n = !0,
|
|
5175
5175
|
catchfocusCapture: a = !1,
|
|
5176
|
-
|
|
5176
|
+
catchFocusCaptureId: s,
|
|
5177
|
+
onChange: i
|
|
5177
5178
|
}) => {
|
|
5178
|
-
const [
|
|
5179
|
+
const [l, c] = U(!1), d = me(null);
|
|
5179
5180
|
ae(() => {
|
|
5180
|
-
t && e && e.id === t.id ?
|
|
5181
|
-
}, [e,
|
|
5182
|
-
const
|
|
5183
|
-
const
|
|
5184
|
-
if (!
|
|
5185
|
-
let
|
|
5186
|
-
for (;
|
|
5187
|
-
const
|
|
5188
|
-
if (/(auto|scroll)/.test(
|
|
5189
|
-
const
|
|
5190
|
-
|
|
5191
|
-
top:
|
|
5181
|
+
t && e && e.id === t.id ? l || c(!0) : c(!1);
|
|
5182
|
+
}, [e, c, t, l]);
|
|
5183
|
+
const f = a && (s === void 0 || s === t.id), m = I(() => {
|
|
5184
|
+
const g = d.current;
|
|
5185
|
+
if (!g) return;
|
|
5186
|
+
let v = g.parentElement;
|
|
5187
|
+
for (; v; ) {
|
|
5188
|
+
const b = window.getComputedStyle(v);
|
|
5189
|
+
if (/(auto|scroll)/.test(b.overflow + b.overflowY) && v.scrollHeight > v.clientHeight) {
|
|
5190
|
+
const O = v.getBoundingClientRect(), j = g.getBoundingClientRect().top - O.top + v.scrollTop;
|
|
5191
|
+
v.scrollTo({
|
|
5192
|
+
top: j,
|
|
5192
5193
|
behavior: "smooth"
|
|
5193
5194
|
});
|
|
5194
5195
|
return;
|
|
5195
5196
|
}
|
|
5196
|
-
|
|
5197
|
+
v = v.parentElement;
|
|
5197
5198
|
}
|
|
5198
|
-
(
|
|
5199
|
+
(g.querySelector(".expand-header") || g).scrollIntoView({ behavior: "smooth", block: "start" });
|
|
5199
5200
|
}, []);
|
|
5200
5201
|
ae(() => {
|
|
5201
|
-
if (
|
|
5202
|
-
const
|
|
5203
|
-
|
|
5204
|
-
}, 100),
|
|
5205
|
-
|
|
5202
|
+
if (f && l) {
|
|
5203
|
+
const g = setTimeout(() => {
|
|
5204
|
+
m();
|
|
5205
|
+
}, 100), v = setTimeout(() => {
|
|
5206
|
+
m();
|
|
5206
5207
|
}, 350);
|
|
5207
5208
|
return () => {
|
|
5208
|
-
clearTimeout(
|
|
5209
|
+
clearTimeout(g), clearTimeout(v);
|
|
5209
5210
|
};
|
|
5210
5211
|
}
|
|
5211
|
-
}, [
|
|
5212
|
-
const
|
|
5213
|
-
(
|
|
5214
|
-
if (!
|
|
5215
|
-
const
|
|
5216
|
-
if (
|
|
5217
|
-
const
|
|
5218
|
-
if (!
|
|
5219
|
-
const
|
|
5220
|
-
let
|
|
5221
|
-
for (;
|
|
5222
|
-
const
|
|
5223
|
-
if (/(auto|scroll)/.test(
|
|
5224
|
-
const
|
|
5225
|
-
if (
|
|
5226
|
-
|
|
5212
|
+
}, [l, m, f]);
|
|
5213
|
+
const p = I(
|
|
5214
|
+
(g) => {
|
|
5215
|
+
if (!f) return;
|
|
5216
|
+
const v = g.target;
|
|
5217
|
+
if (l && (v.tagName === "INPUT" || v.tagName === "TEXTAREA" || v.tagName === "SELECT")) {
|
|
5218
|
+
const x = d.current;
|
|
5219
|
+
if (!x) return;
|
|
5220
|
+
const b = () => {
|
|
5221
|
+
let y = x.parentElement;
|
|
5222
|
+
for (; y; ) {
|
|
5223
|
+
const O = window.getComputedStyle(y);
|
|
5224
|
+
if (/(auto|scroll)/.test(O.overflow + O.overflowY) && y.scrollHeight > y.clientHeight) {
|
|
5225
|
+
const j = y.getBoundingClientRect(), R = x.getBoundingClientRect().top - j.top + y.scrollTop;
|
|
5226
|
+
if (y.scrollTop >= R - 10) {
|
|
5227
|
+
v.getBoundingClientRect().bottom > j.bottom && v.scrollIntoView({ behavior: "smooth", block: "nearest" });
|
|
5227
5228
|
return;
|
|
5228
5229
|
}
|
|
5229
|
-
|
|
5230
|
-
top:
|
|
5230
|
+
y.scrollTo({
|
|
5231
|
+
top: R,
|
|
5231
5232
|
behavior: "smooth"
|
|
5232
5233
|
});
|
|
5233
5234
|
return;
|
|
5234
5235
|
}
|
|
5235
|
-
|
|
5236
|
+
y = y.parentElement;
|
|
5236
5237
|
}
|
|
5237
5238
|
};
|
|
5238
|
-
|
|
5239
|
+
b(), setTimeout(b, 300);
|
|
5239
5240
|
}
|
|
5240
5241
|
},
|
|
5241
|
-
[
|
|
5242
|
-
),
|
|
5243
|
-
(
|
|
5244
|
-
|
|
5242
|
+
[l, f]
|
|
5243
|
+
), h = I(
|
|
5244
|
+
(g) => {
|
|
5245
|
+
g.stopPropagation(), i && i(t);
|
|
5245
5246
|
},
|
|
5246
|
-
[
|
|
5247
|
+
[i, t]
|
|
5247
5248
|
);
|
|
5248
5249
|
return /* @__PURE__ */ o.jsxs(
|
|
5249
5250
|
"div",
|
|
5250
5251
|
{
|
|
5251
|
-
ref:
|
|
5252
|
-
onClick:
|
|
5253
|
-
onFocusCapture:
|
|
5254
|
-
className: `expand ${
|
|
5252
|
+
ref: d,
|
|
5253
|
+
onClick: h,
|
|
5254
|
+
onFocusCapture: p,
|
|
5255
|
+
className: `expand ${l ? "expand--active" : ""} ${r ?? ""}`,
|
|
5255
5256
|
children: [
|
|
5256
5257
|
/* @__PURE__ */ o.jsx("div", { className: "expand-header", children: /* @__PURE__ */ o.jsx("div", { className: "expand-header-content", children: /* @__PURE__ */ o.jsxs("div", { className: "expand-header-content-default", children: [
|
|
5257
|
-
|
|
5258
|
-
!
|
|
5258
|
+
l && n && /* @__PURE__ */ o.jsx(J, { classIcon: "bi bi-chevron-down mr-2" }),
|
|
5259
|
+
!l && n && /* @__PURE__ */ o.jsx(J, { classIcon: "bi bi-chevron-right mr-2" }),
|
|
5259
5260
|
/* @__PURE__ */ o.jsx("span", { className: "flex-1 expand-header-title-left", children: t.title }),
|
|
5260
5261
|
t.description && /* @__PURE__ */ o.jsx("span", { className: "expand-header-title-right", children: t.description })
|
|
5261
5262
|
] }) }) }),
|
|
@@ -5283,7 +5284,8 @@ const ou = ({
|
|
|
5283
5284
|
showArrow: e.showArrow,
|
|
5284
5285
|
onChange: n,
|
|
5285
5286
|
currentExpand: t,
|
|
5286
|
-
catchfocusCapture: e.catchfocusCapture
|
|
5287
|
+
catchfocusCapture: e.catchfocusCapture,
|
|
5288
|
+
catchFocusCaptureId: e.catchFocusCaptureId
|
|
5287
5289
|
},
|
|
5288
5290
|
a.id
|
|
5289
5291
|
)) });
|
|
@@ -5336,34 +5338,34 @@ const ou = ({
|
|
|
5336
5338
|
autoFocus: l = !1,
|
|
5337
5339
|
maxLength: c = 10,
|
|
5338
5340
|
autoComplete: d = "off",
|
|
5339
|
-
tabIndex:
|
|
5340
|
-
inputMode:
|
|
5341
|
-
pattern:
|
|
5342
|
-
onChange:
|
|
5343
|
-
onBlur:
|
|
5344
|
-
onClick:
|
|
5345
|
-
onKeyDown:
|
|
5346
|
-
onFocus:
|
|
5347
|
-
},
|
|
5348
|
-
const
|
|
5349
|
-
(
|
|
5350
|
-
let _ =
|
|
5351
|
-
!/^-?\d*[.,]?\d*$/.test(_) && _ !== "" || c && _.length > c ||
|
|
5341
|
+
tabIndex: f = 0,
|
|
5342
|
+
inputMode: m = "numeric",
|
|
5343
|
+
pattern: p,
|
|
5344
|
+
onChange: h,
|
|
5345
|
+
onBlur: g,
|
|
5346
|
+
onClick: v,
|
|
5347
|
+
onKeyDown: x,
|
|
5348
|
+
onFocus: b
|
|
5349
|
+
}, y) => {
|
|
5350
|
+
const O = I(
|
|
5351
|
+
(j) => {
|
|
5352
|
+
let _ = j.target.value.replace(",", ".");
|
|
5353
|
+
!/^-?\d*[.,]?\d*$/.test(_) && _ !== "" || c && _.length > c || h == null || h(j, _);
|
|
5352
5354
|
},
|
|
5353
|
-
[
|
|
5354
|
-
),
|
|
5355
|
-
if (
|
|
5356
|
-
|
|
5357
|
-
) ||
|
|
5358
|
-
|
|
5355
|
+
[h, c]
|
|
5356
|
+
), D = (j) => {
|
|
5357
|
+
if (x && x(j), !(/[0-9]|Backspace|Delete|ArrowLeft|ArrowRight|Tab|Enter|Home|End/.test(
|
|
5358
|
+
j.key
|
|
5359
|
+
) || j.key === "." || j.key === "," || j.key === "-")) {
|
|
5360
|
+
j.preventDefault();
|
|
5359
5361
|
return;
|
|
5360
5362
|
}
|
|
5361
|
-
|
|
5363
|
+
j.key === "-" && ((j.target.selectionStart ?? 0) !== 0 || r.includes("-")) && j.preventDefault();
|
|
5362
5364
|
};
|
|
5363
5365
|
return /* @__PURE__ */ o.jsx("div", { className: "input-container input-container-number", children: /* @__PURE__ */ o.jsx(
|
|
5364
5366
|
"input",
|
|
5365
5367
|
{
|
|
5366
|
-
ref:
|
|
5368
|
+
ref: y,
|
|
5367
5369
|
id: e,
|
|
5368
5370
|
name: t,
|
|
5369
5371
|
type: Ae.TEXT,
|
|
@@ -5373,18 +5375,18 @@ const ou = ({
|
|
|
5373
5375
|
required: i,
|
|
5374
5376
|
autoFocus: l,
|
|
5375
5377
|
autoComplete: d,
|
|
5376
|
-
pattern:
|
|
5377
|
-
tabIndex:
|
|
5378
|
-
inputMode:
|
|
5378
|
+
pattern: p,
|
|
5379
|
+
tabIndex: f,
|
|
5380
|
+
inputMode: m,
|
|
5379
5381
|
spellCheck: "false",
|
|
5380
5382
|
className: `input-field ${a ?? ""}`,
|
|
5381
|
-
onChange:
|
|
5382
|
-
onWheel: (
|
|
5383
|
-
onKeyDown:
|
|
5384
|
-
onFocus:
|
|
5385
|
-
onBlur:
|
|
5386
|
-
onClick: (
|
|
5387
|
-
|
|
5383
|
+
onChange: O,
|
|
5384
|
+
onWheel: (j) => j.currentTarget.blur(),
|
|
5385
|
+
onKeyDown: D,
|
|
5386
|
+
onFocus: b,
|
|
5387
|
+
onBlur: g,
|
|
5388
|
+
onClick: (j) => {
|
|
5389
|
+
j.stopPropagation(), v == null || v(j);
|
|
5388
5390
|
}
|
|
5389
5391
|
}
|
|
5390
5392
|
) });
|
|
@@ -5430,16 +5432,16 @@ const Dl = Je(
|
|
|
5430
5432
|
placeholder: l,
|
|
5431
5433
|
cols: c,
|
|
5432
5434
|
rows: d,
|
|
5433
|
-
required:
|
|
5435
|
+
required: f = !1
|
|
5434
5436
|
}) => {
|
|
5435
|
-
const [
|
|
5437
|
+
const [m, p] = U(r);
|
|
5436
5438
|
ae(() => {
|
|
5437
|
-
|
|
5439
|
+
p(r);
|
|
5438
5440
|
}, [r]);
|
|
5439
|
-
const
|
|
5440
|
-
(
|
|
5441
|
-
const
|
|
5442
|
-
|
|
5441
|
+
const h = I(
|
|
5442
|
+
(g) => {
|
|
5443
|
+
const v = g.target.value;
|
|
5444
|
+
p(v), i && i(v, e);
|
|
5443
5445
|
},
|
|
5444
5446
|
[i, e]
|
|
5445
5447
|
);
|
|
@@ -5451,12 +5453,12 @@ const Dl = Je(
|
|
|
5451
5453
|
className: `form-control-textarea ${s ?? ""}`,
|
|
5452
5454
|
name: e,
|
|
5453
5455
|
disabled: n,
|
|
5454
|
-
value:
|
|
5455
|
-
onChange:
|
|
5456
|
+
value: m,
|
|
5457
|
+
onChange: h,
|
|
5456
5458
|
placeholder: l,
|
|
5457
5459
|
cols: c,
|
|
5458
5460
|
rows: d,
|
|
5459
|
-
required:
|
|
5461
|
+
required: f
|
|
5460
5462
|
}
|
|
5461
5463
|
);
|
|
5462
5464
|
}, El = new Intl.NumberFormat("fr-FR", {
|
|
@@ -5478,117 +5480,117 @@ const Dl = Je(
|
|
|
5478
5480
|
onChange: l,
|
|
5479
5481
|
hideSubmit: c,
|
|
5480
5482
|
disabledSubmit: d = !1,
|
|
5481
|
-
mode:
|
|
5482
|
-
className:
|
|
5483
|
-
responsive:
|
|
5484
|
-
submitCol:
|
|
5485
|
-
},
|
|
5483
|
+
mode: f = "edit",
|
|
5484
|
+
className: m,
|
|
5485
|
+
responsive: p,
|
|
5486
|
+
submitCol: h
|
|
5487
|
+
}, g) => {
|
|
5486
5488
|
var C;
|
|
5487
|
-
const
|
|
5488
|
-
(
|
|
5489
|
+
const v = t ? t.reduce(
|
|
5490
|
+
(N, E) => N.concat(E.fields),
|
|
5489
5491
|
[]
|
|
5490
|
-
) : e ?? [], [
|
|
5491
|
-
const
|
|
5492
|
-
return
|
|
5493
|
-
|
|
5494
|
-
}),
|
|
5495
|
-
}),
|
|
5496
|
-
(
|
|
5497
|
-
const { name: H, type: be, checked: oe, value: w } =
|
|
5498
|
-
|
|
5492
|
+
) : e ?? [], [x, b] = U(d), [y, O] = U(() => {
|
|
5493
|
+
const N = {};
|
|
5494
|
+
return v.forEach((E) => {
|
|
5495
|
+
N[E.name] = E.value ?? "";
|
|
5496
|
+
}), N;
|
|
5497
|
+
}), D = me({}), j = I(
|
|
5498
|
+
(N, E) => {
|
|
5499
|
+
const { name: H, type: be, checked: oe, value: w } = N.target, pe = be === "checkbox" ? oe : w;
|
|
5500
|
+
E.onChange && E.onChange(pe, H), O((he) => {
|
|
5499
5501
|
const te = { ...he, [H]: pe };
|
|
5500
5502
|
return l && l(te), te;
|
|
5501
5503
|
});
|
|
5502
5504
|
},
|
|
5503
5505
|
[l]
|
|
5504
5506
|
), _ = I(
|
|
5505
|
-
(
|
|
5506
|
-
H.onChange && H.onChange(
|
|
5507
|
-
const oe = { ...be, [
|
|
5507
|
+
(N, E, H) => {
|
|
5508
|
+
H.onChange && H.onChange(E, N), O((be) => {
|
|
5509
|
+
const oe = { ...be, [N]: E };
|
|
5508
5510
|
return l && l(oe), oe;
|
|
5509
5511
|
});
|
|
5510
5512
|
},
|
|
5511
5513
|
[l]
|
|
5512
5514
|
), R = I(
|
|
5513
|
-
(
|
|
5514
|
-
H.onChange && H.onChange(
|
|
5515
|
-
const oe = { ...be, [
|
|
5515
|
+
(N, E, H) => {
|
|
5516
|
+
H.onChange && H.onChange(N, E), O((be) => {
|
|
5517
|
+
const oe = { ...be, [E]: N };
|
|
5516
5518
|
return l && l(oe), oe;
|
|
5517
5519
|
});
|
|
5518
5520
|
},
|
|
5519
5521
|
[l]
|
|
5520
5522
|
), q = I(
|
|
5521
|
-
(
|
|
5522
|
-
|
|
5523
|
+
(N) => {
|
|
5524
|
+
N.preventDefault(), n && n(y);
|
|
5523
5525
|
},
|
|
5524
|
-
[n,
|
|
5526
|
+
[n, y]
|
|
5525
5527
|
), ie = () => {
|
|
5526
|
-
|
|
5527
|
-
const
|
|
5528
|
-
return
|
|
5529
|
-
|
|
5530
|
-
}),
|
|
5528
|
+
O(() => {
|
|
5529
|
+
const N = {};
|
|
5530
|
+
return v.forEach((E) => {
|
|
5531
|
+
N[E.name] = E.value ?? "";
|
|
5532
|
+
}), N;
|
|
5531
5533
|
});
|
|
5532
|
-
}, W = I((
|
|
5533
|
-
|
|
5534
|
-
...
|
|
5535
|
-
[
|
|
5534
|
+
}, W = I((N) => {
|
|
5535
|
+
O((E) => ({
|
|
5536
|
+
...E,
|
|
5537
|
+
[N]: ""
|
|
5536
5538
|
}));
|
|
5537
5539
|
}, []), ee = () => {
|
|
5538
|
-
const
|
|
5539
|
-
|
|
5540
|
-
var
|
|
5541
|
-
(
|
|
5540
|
+
const N = v.find((E) => E.focus);
|
|
5541
|
+
N && D.current[N.name] && setTimeout(() => {
|
|
5542
|
+
var E;
|
|
5543
|
+
(E = D.current[N.name]) == null || E.select();
|
|
5542
5544
|
}, 500);
|
|
5543
|
-
}, L = () =>
|
|
5544
|
-
|
|
5545
|
-
...
|
|
5546
|
-
...
|
|
5545
|
+
}, L = () => y, A = (N) => {
|
|
5546
|
+
O((E) => ({
|
|
5547
|
+
...E,
|
|
5548
|
+
...N
|
|
5547
5549
|
}));
|
|
5548
5550
|
}, de = I(
|
|
5549
|
-
(
|
|
5550
|
-
|
|
5551
|
-
const H = { ...
|
|
5551
|
+
(N) => {
|
|
5552
|
+
O((E) => {
|
|
5553
|
+
const H = { ...E, ...N };
|
|
5552
5554
|
return l == null || l(H), H;
|
|
5553
5555
|
});
|
|
5554
5556
|
},
|
|
5555
5557
|
[l]
|
|
5556
5558
|
);
|
|
5557
|
-
Or(
|
|
5559
|
+
Or(g, () => ({
|
|
5558
5560
|
resetForm: ie,
|
|
5559
5561
|
clearInput: W,
|
|
5560
5562
|
focusInitialElement: ee,
|
|
5561
5563
|
getValues: L,
|
|
5562
5564
|
updateFormValue: A,
|
|
5563
|
-
setBtnDisabledSubmit:
|
|
5565
|
+
setBtnDisabledSubmit: b
|
|
5564
5566
|
}));
|
|
5565
|
-
const ce = (
|
|
5566
|
-
const
|
|
5567
|
-
if (
|
|
5568
|
-
return
|
|
5569
|
-
if (
|
|
5570
|
-
return (Array.isArray(
|
|
5567
|
+
const ce = (N) => {
|
|
5568
|
+
const E = y[N.name];
|
|
5569
|
+
if (N.formatReadValue)
|
|
5570
|
+
return N.formatReadValue(E ?? "");
|
|
5571
|
+
if (N.type === Ae.SELECT)
|
|
5572
|
+
return (Array.isArray(E) ? E : [E]).map(
|
|
5571
5573
|
(oe) => {
|
|
5572
5574
|
var w, pe;
|
|
5573
|
-
return ((pe = (w =
|
|
5575
|
+
return ((pe = (w = N.options) == null ? void 0 : w.find((he) => he.value === oe)) == null ? void 0 : pe.label) ?? oe;
|
|
5574
5576
|
}
|
|
5575
5577
|
).filter((oe) => oe !== void 0).join(", ") || "-";
|
|
5576
|
-
if (
|
|
5577
|
-
const H = Number(
|
|
5578
|
-
return
|
|
5578
|
+
if (N.type === Ae.PRICE) {
|
|
5579
|
+
const H = Number(E);
|
|
5580
|
+
return E === "" || E === void 0 || Number.isNaN(H) ? "-" : El.format(H);
|
|
5579
5581
|
}
|
|
5580
|
-
return typeof
|
|
5581
|
-
}, Q =
|
|
5582
|
+
return typeof E == "boolean" ? E ? "Oui" : "Non" : E instanceof Date ? E.toLocaleDateString() : Array.isArray(E) ? E.join(", ") || "-" : E == null || E === "" ? "-" : String(E);
|
|
5583
|
+
}, Q = f === "edit" && !c && /* @__PURE__ */ o.jsx(
|
|
5582
5584
|
Et,
|
|
5583
5585
|
{
|
|
5584
5586
|
id: `button-${a}`,
|
|
5585
|
-
disabled:
|
|
5587
|
+
disabled: x,
|
|
5586
5588
|
title: r || "submit"
|
|
5587
5589
|
}
|
|
5588
|
-
), fe = t ? ((C = t[t.length - 1]) == null ? void 0 : C.fields) ?? [] : e ?? [], $ = !!
|
|
5589
|
-
const H =
|
|
5590
|
+
), fe = t ? ((C = t[t.length - 1]) == null ? void 0 : C.fields) ?? [] : e ?? [], $ = !!h && fe.some((N) => N.col !== void 0), X = (N, E = !1) => {
|
|
5591
|
+
const H = N.some((w) => w.col !== void 0), be = H ? bo : Ye.Fragment, oe = H ? { responsive: p } : {};
|
|
5590
5592
|
return /* @__PURE__ */ o.jsxs(be, { ...oe, children: [
|
|
5591
|
-
|
|
5593
|
+
N.map((w, pe) => {
|
|
5592
5594
|
var De, _e, k, B, Y;
|
|
5593
5595
|
const he = w.onRequired ? w.onRequired(w.value) : w.required ?? !1, te = w.onDisabled ? w.onDisabled(w.value) : w.disabled ?? !1;
|
|
5594
5596
|
return /* @__PURE__ */ o.jsx(
|
|
@@ -5603,7 +5605,7 @@ const Dl = Je(
|
|
|
5603
5605
|
children: [
|
|
5604
5606
|
w.label && /* @__PURE__ */ o.jsx("label", { children: w.label }),
|
|
5605
5607
|
w.icon && /* @__PURE__ */ o.jsx(J, { classIcon: w.icon }),
|
|
5606
|
-
|
|
5608
|
+
f === "read" ? /* @__PURE__ */ o.jsx(
|
|
5607
5609
|
"div",
|
|
5608
5610
|
{
|
|
5609
5611
|
className: `form-read-value ${w.type === Ae.TEXTAREA ? "form-read-value--textarea" : ""}`,
|
|
@@ -5615,7 +5617,7 @@ const Dl = Je(
|
|
|
5615
5617
|
id: w.id ?? w.name,
|
|
5616
5618
|
label: "",
|
|
5617
5619
|
placeholder: w.placeholder,
|
|
5618
|
-
value: String(
|
|
5620
|
+
value: String(y[w.name] ?? ""),
|
|
5619
5621
|
disabled: te,
|
|
5620
5622
|
minimumQueryLength: (De = w.addressSearch) == null ? void 0 : De.minimumQueryLength,
|
|
5621
5623
|
debounceTime: (_e = w.addressSearch) == null ? void 0 : _e.debounceTime,
|
|
@@ -5641,7 +5643,7 @@ const Dl = Je(
|
|
|
5641
5643
|
multiple: w.multiple,
|
|
5642
5644
|
usePortal: w.usePortal,
|
|
5643
5645
|
searchable: w.searchable,
|
|
5644
|
-
value:
|
|
5646
|
+
value: y[w.name],
|
|
5645
5647
|
required: he,
|
|
5646
5648
|
defaultValue: w.value,
|
|
5647
5649
|
placeholder: w.placeholder,
|
|
@@ -5657,14 +5659,14 @@ const Dl = Je(
|
|
|
5657
5659
|
placeholder: w.placeholder ?? "",
|
|
5658
5660
|
disabled: te,
|
|
5659
5661
|
required: he,
|
|
5660
|
-
value:
|
|
5662
|
+
value: y[w.name],
|
|
5661
5663
|
onChange: (V, G) => _(G, V, w)
|
|
5662
5664
|
}
|
|
5663
5665
|
) : w.type === Ae.PRICE ? /* @__PURE__ */ o.jsx(
|
|
5664
5666
|
Dl,
|
|
5665
5667
|
{
|
|
5666
5668
|
id: w.id ?? w.name,
|
|
5667
|
-
ref: (V) =>
|
|
5669
|
+
ref: (V) => D.current[w.name] = V,
|
|
5668
5670
|
name: w.name,
|
|
5669
5671
|
placeholder: w.placeholder ?? "",
|
|
5670
5672
|
autoComplete: w.autoComplete,
|
|
@@ -5672,14 +5674,14 @@ const Dl = Je(
|
|
|
5672
5674
|
disabled: te,
|
|
5673
5675
|
autoFocus: w.focus ?? !1,
|
|
5674
5676
|
required: he,
|
|
5675
|
-
value: String(
|
|
5677
|
+
value: String(y[w.name] ?? ""),
|
|
5676
5678
|
onChange: (V) => _(w.name, V, w)
|
|
5677
5679
|
}
|
|
5678
5680
|
) : /* @__PURE__ */ o.jsx(
|
|
5679
5681
|
Ut,
|
|
5680
5682
|
{
|
|
5681
5683
|
id: w.id ?? w.name,
|
|
5682
|
-
ref: (V) =>
|
|
5684
|
+
ref: (V) => D.current[w.name] = V,
|
|
5683
5685
|
name: w.name,
|
|
5684
5686
|
type: w.type,
|
|
5685
5687
|
placeholder: w.placeholder ?? "",
|
|
@@ -5689,9 +5691,9 @@ const Dl = Je(
|
|
|
5689
5691
|
autoFocus: w.focus ?? !1,
|
|
5690
5692
|
required: he,
|
|
5691
5693
|
step: w.step ?? "0.01",
|
|
5692
|
-
value:
|
|
5693
|
-
checked: w.type === "checkbox" ? !!
|
|
5694
|
-
onChange: (V) =>
|
|
5694
|
+
value: y[w.name],
|
|
5695
|
+
checked: w.type === "checkbox" ? !!y[w.name] : void 0,
|
|
5696
|
+
onChange: (V) => j(V, w),
|
|
5695
5697
|
onInvalid: w.onInvalid ? w.onInvalid : void 0
|
|
5696
5698
|
}
|
|
5697
5699
|
)
|
|
@@ -5702,7 +5704,7 @@ const Dl = Je(
|
|
|
5702
5704
|
w.name || pe
|
|
5703
5705
|
);
|
|
5704
5706
|
}),
|
|
5705
|
-
|
|
5707
|
+
E && Q && /* @__PURE__ */ o.jsx(Ln, { ...h, children: /* @__PURE__ */ o.jsx("div", { className: "form-submit-col", children: Q }) })
|
|
5706
5708
|
] });
|
|
5707
5709
|
};
|
|
5708
5710
|
return /* @__PURE__ */ o.jsxs(
|
|
@@ -5710,22 +5712,22 @@ const Dl = Je(
|
|
|
5710
5712
|
{
|
|
5711
5713
|
autoComplete: i ?? "off",
|
|
5712
5714
|
onSubmit: q,
|
|
5713
|
-
className:
|
|
5715
|
+
className: m ?? "",
|
|
5714
5716
|
children: [
|
|
5715
5717
|
/* @__PURE__ */ o.jsxs("div", { className: "form-content", children: [
|
|
5716
|
-
t ? t.map((
|
|
5718
|
+
t ? t.map((N, E) => /* @__PURE__ */ o.jsxs(
|
|
5717
5719
|
"section",
|
|
5718
5720
|
{
|
|
5719
|
-
className: `form-section ${
|
|
5721
|
+
className: `form-section ${N.className ?? ""}`,
|
|
5720
5722
|
children: [
|
|
5721
|
-
|
|
5723
|
+
N.title && /* @__PURE__ */ o.jsx("h3", { className: "form-section-title", children: N.title }),
|
|
5722
5724
|
X(
|
|
5723
|
-
|
|
5724
|
-
$ &&
|
|
5725
|
+
N.fields,
|
|
5726
|
+
$ && E === t.length - 1
|
|
5725
5727
|
)
|
|
5726
5728
|
]
|
|
5727
5729
|
},
|
|
5728
|
-
|
|
5730
|
+
E
|
|
5729
5731
|
)) : X(e ?? [], $),
|
|
5730
5732
|
s
|
|
5731
5733
|
] }),
|
|
@@ -5745,9 +5747,9 @@ const Dl = Je(
|
|
|
5745
5747
|
showBackNavigation: l,
|
|
5746
5748
|
onClickBackNavigation: c
|
|
5747
5749
|
}) => {
|
|
5748
|
-
const d = me(null), [
|
|
5749
|
-
|
|
5750
|
-
}, [
|
|
5750
|
+
const d = me(null), [f, m] = U(!1), p = I(() => {
|
|
5751
|
+
m(!f);
|
|
5752
|
+
}, [f, m]);
|
|
5751
5753
|
return /* @__PURE__ */ o.jsxs("div", { className: `header ${a ? "header--fixed" : ""}`, children: [
|
|
5752
5754
|
/* @__PURE__ */ o.jsxs("div", { className: "flex-1 d-flex align-items-center", children: [
|
|
5753
5755
|
/* @__PURE__ */ o.jsx("span", { className: "header-menu-btn", onClick: r, children: /* @__PURE__ */ o.jsx(J, { size: Me.MEDIUM, classIcon: "bi-list" }) }),
|
|
@@ -5769,14 +5771,14 @@ const Dl = Je(
|
|
|
5769
5771
|
] }),
|
|
5770
5772
|
/* @__PURE__ */ o.jsxs("div", { className: "d-flex align-items-center", children: [
|
|
5771
5773
|
e,
|
|
5772
|
-
/* @__PURE__ */ o.jsx("div", { ref: d, onClick:
|
|
5773
|
-
|
|
5774
|
+
/* @__PURE__ */ o.jsx("div", { ref: d, onClick: p, children: /* @__PURE__ */ o.jsx(J, { size: Me.MEDIUM, classIcon: "bi-person-circle" }) }),
|
|
5775
|
+
f && d.current && /* @__PURE__ */ o.jsx(
|
|
5774
5776
|
Ar,
|
|
5775
5777
|
{
|
|
5776
5778
|
className: s,
|
|
5777
5779
|
position: "bottomRight",
|
|
5778
|
-
show:
|
|
5779
|
-
closeOverlay:
|
|
5780
|
+
show: f,
|
|
5781
|
+
closeOverlay: m,
|
|
5780
5782
|
referenceElement: d.current,
|
|
5781
5783
|
children: n
|
|
5782
5784
|
}
|
|
@@ -5823,7 +5825,7 @@ const Dl = Je(
|
|
|
5823
5825
|
{
|
|
5824
5826
|
className: `modal-container ${l}`,
|
|
5825
5827
|
style: i,
|
|
5826
|
-
onMouseDown: (
|
|
5828
|
+
onMouseDown: (f) => f.stopPropagation(),
|
|
5827
5829
|
children: [
|
|
5828
5830
|
/* @__PURE__ */ o.jsxs("div", { className: "modal-header", children: [
|
|
5829
5831
|
s && /* @__PURE__ */ o.jsx("h2", { className: "modal-title", children: s }),
|
|
@@ -5846,18 +5848,18 @@ const Dl = Je(
|
|
|
5846
5848
|
title: s,
|
|
5847
5849
|
id: i
|
|
5848
5850
|
}, l) => {
|
|
5849
|
-
const [c, d] = U(null),
|
|
5850
|
-
const
|
|
5851
|
+
const [c, d] = U(null), f = I(async () => {
|
|
5852
|
+
const m = new Blob([e], { type: "application/pdf" }), p = URL.createObjectURL(m);
|
|
5851
5853
|
if (!t) {
|
|
5852
|
-
const
|
|
5853
|
-
d(
|
|
5854
|
+
const h = `${p}#toolbar=0&navpanes=0&scrollbar=0`;
|
|
5855
|
+
d(h);
|
|
5854
5856
|
return;
|
|
5855
5857
|
}
|
|
5856
|
-
d(
|
|
5858
|
+
d(p);
|
|
5857
5859
|
}, [e, t, d]);
|
|
5858
5860
|
return ae(() => {
|
|
5859
|
-
|
|
5860
|
-
}, [e,
|
|
5861
|
+
f();
|
|
5862
|
+
}, [e, f]), ae(() => () => {
|
|
5861
5863
|
c && URL.revokeObjectURL(c);
|
|
5862
5864
|
}, [c]), /* @__PURE__ */ o.jsx(o.Fragment, { children: c && /* @__PURE__ */ o.jsx(
|
|
5863
5865
|
"iframe",
|
|
@@ -5887,35 +5889,35 @@ const Dl = Je(
|
|
|
5887
5889
|
pas: i
|
|
5888
5890
|
}) => {
|
|
5889
5891
|
const [l, c] = U(i), d = I(
|
|
5890
|
-
(
|
|
5891
|
-
n || (c(
|
|
5892
|
+
(h) => {
|
|
5893
|
+
n || (c(h), e && e(t, h));
|
|
5892
5894
|
},
|
|
5893
5895
|
[c, e]
|
|
5894
|
-
),
|
|
5895
|
-
(
|
|
5896
|
-
if (
|
|
5896
|
+
), f = I(
|
|
5897
|
+
(h) => {
|
|
5898
|
+
if (h.stopPropagation(), n || a)
|
|
5897
5899
|
return;
|
|
5898
|
-
const
|
|
5899
|
-
d(Math.round(
|
|
5900
|
+
const g = l + i;
|
|
5901
|
+
d(Math.round(g * 100) / 100);
|
|
5900
5902
|
},
|
|
5901
5903
|
[l, d]
|
|
5902
|
-
),
|
|
5903
|
-
(
|
|
5904
|
-
if (
|
|
5904
|
+
), m = I(
|
|
5905
|
+
(h) => {
|
|
5906
|
+
if (h.stopPropagation(), n || s)
|
|
5905
5907
|
return;
|
|
5906
5908
|
if (l === 0)
|
|
5907
5909
|
return l;
|
|
5908
|
-
const
|
|
5909
|
-
d(Math.round(
|
|
5910
|
+
const g = l - i;
|
|
5911
|
+
d(Math.round(g * 100) / 100);
|
|
5910
5912
|
},
|
|
5911
5913
|
[d, l]
|
|
5912
5914
|
);
|
|
5913
5915
|
ae(() => {
|
|
5914
5916
|
t.quantity && c(t.quantity);
|
|
5915
5917
|
}, [t.quantity, c]);
|
|
5916
|
-
const
|
|
5917
|
-
(
|
|
5918
|
-
|
|
5918
|
+
const p = I(
|
|
5919
|
+
(h) => {
|
|
5920
|
+
h.stopPropagation(), r && r(t);
|
|
5919
5921
|
},
|
|
5920
5922
|
[r, t]
|
|
5921
5923
|
);
|
|
@@ -5923,16 +5925,16 @@ const Dl = Je(
|
|
|
5923
5925
|
/* @__PURE__ */ o.jsx(
|
|
5924
5926
|
"div",
|
|
5925
5927
|
{
|
|
5926
|
-
onClick: (
|
|
5928
|
+
onClick: (h) => m(h),
|
|
5927
5929
|
className: `qte-action qte-action--minus ${n || s ? "disabled" : ""} `,
|
|
5928
5930
|
children: /* @__PURE__ */ o.jsx(J, { size: Me.LARGE, classIcon: "bi bi-dash-square" })
|
|
5929
5931
|
}
|
|
5930
5932
|
),
|
|
5931
|
-
/* @__PURE__ */ o.jsx("span", { onClick: (
|
|
5933
|
+
/* @__PURE__ */ o.jsx("span", { onClick: (h) => p(h), className: "qte-label", children: l }),
|
|
5932
5934
|
/* @__PURE__ */ o.jsx(
|
|
5933
5935
|
"div",
|
|
5934
5936
|
{
|
|
5935
|
-
onClick: (
|
|
5937
|
+
onClick: (h) => f(h),
|
|
5936
5938
|
className: `qte-action qte-action--plus ${n || a ? "disabled" : ""}`,
|
|
5937
5939
|
children: /* @__PURE__ */ o.jsx(J, { size: Me.LARGE, classIcon: "bi bi-plus-square" })
|
|
5938
5940
|
}
|
|
@@ -5950,7 +5952,7 @@ const Dl = Je(
|
|
|
5950
5952
|
setIsVisible: l,
|
|
5951
5953
|
id: c
|
|
5952
5954
|
}, d) => {
|
|
5953
|
-
const [
|
|
5955
|
+
const [f, m] = U(n ?? !1), p = me(null), h = me(null), g = Le(
|
|
5954
5956
|
() => [
|
|
5955
5957
|
{
|
|
5956
5958
|
value: "",
|
|
@@ -5967,58 +5969,58 @@ const Dl = Je(
|
|
|
5967
5969
|
[r, a]
|
|
5968
5970
|
);
|
|
5969
5971
|
ae(() => {
|
|
5970
|
-
n !== void 0 &&
|
|
5972
|
+
n !== void 0 && m(n);
|
|
5971
5973
|
}, [n]);
|
|
5972
|
-
const
|
|
5973
|
-
(
|
|
5974
|
-
l && l(
|
|
5974
|
+
const v = I(
|
|
5975
|
+
(y) => {
|
|
5976
|
+
l && l(y), m(y);
|
|
5975
5977
|
},
|
|
5976
5978
|
[l]
|
|
5977
|
-
),
|
|
5978
|
-
(
|
|
5979
|
-
if (!
|
|
5980
|
-
return
|
|
5981
|
-
|
|
5982
|
-
i && i(
|
|
5979
|
+
), x = I(
|
|
5980
|
+
(y) => {
|
|
5981
|
+
if (!y || !y[t ?? "recherche"])
|
|
5982
|
+
return v(!1);
|
|
5983
|
+
v(!0), p.current && clearTimeout(p.current), p.current = setTimeout(() => {
|
|
5984
|
+
i && i(y);
|
|
5983
5985
|
}, s ?? 500);
|
|
5984
5986
|
},
|
|
5985
|
-
[
|
|
5986
|
-
),
|
|
5987
|
-
(
|
|
5988
|
-
console.log("Form Submitted: ",
|
|
5987
|
+
[v, i, s]
|
|
5988
|
+
), b = I(
|
|
5989
|
+
(y) => {
|
|
5990
|
+
console.log("Form Submitted: ", y);
|
|
5989
5991
|
},
|
|
5990
5992
|
[]
|
|
5991
5993
|
);
|
|
5992
5994
|
return Or(d, () => ({
|
|
5993
|
-
clearInput: (
|
|
5994
|
-
var
|
|
5995
|
-
(
|
|
5995
|
+
clearInput: (y) => {
|
|
5996
|
+
var O;
|
|
5997
|
+
(O = h.current) == null || O.clearInput(y);
|
|
5996
5998
|
},
|
|
5997
5999
|
resetForm: () => {
|
|
5998
|
-
var
|
|
5999
|
-
(
|
|
6000
|
+
var y;
|
|
6001
|
+
(y = h.current) == null || y.resetForm();
|
|
6000
6002
|
},
|
|
6001
6003
|
focusInitialElement: () => {
|
|
6002
|
-
var
|
|
6003
|
-
(
|
|
6004
|
+
var y;
|
|
6005
|
+
(y = h.current) == null || y.focusInitialElement();
|
|
6004
6006
|
}
|
|
6005
6007
|
})), /* @__PURE__ */ o.jsxs("div", { className: "search", children: [
|
|
6006
6008
|
/* @__PURE__ */ o.jsx(
|
|
6007
6009
|
Cl,
|
|
6008
6010
|
{
|
|
6009
|
-
ref:
|
|
6010
|
-
onSubmit:
|
|
6011
|
-
onChange:
|
|
6011
|
+
ref: h,
|
|
6012
|
+
onSubmit: b,
|
|
6013
|
+
onChange: x,
|
|
6012
6014
|
hideSubmit: !0,
|
|
6013
|
-
initialForm:
|
|
6015
|
+
initialForm: g
|
|
6014
6016
|
}
|
|
6015
6017
|
),
|
|
6016
|
-
|
|
6018
|
+
f && /* @__PURE__ */ o.jsxs("div", { className: "search-result", children: [
|
|
6017
6019
|
/* @__PURE__ */ o.jsx("div", { className: "search-result-close", children: /* @__PURE__ */ o.jsx(
|
|
6018
6020
|
"button",
|
|
6019
6021
|
{
|
|
6020
6022
|
className: "toggle-btn",
|
|
6021
|
-
onClick: () =>
|
|
6023
|
+
onClick: () => v(!1),
|
|
6022
6024
|
children: /* @__PURE__ */ o.jsx(J, { classIcon: "bi-x-lg" })
|
|
6023
6025
|
}
|
|
6024
6026
|
) }),
|
|
@@ -6037,67 +6039,67 @@ const Dl = Je(
|
|
|
6037
6039
|
closeOnClickOutside: l = !0,
|
|
6038
6040
|
displayOverlay: c = !0
|
|
6039
6041
|
}) => {
|
|
6040
|
-
const [d,
|
|
6041
|
-
ae(() => (
|
|
6042
|
-
|
|
6042
|
+
const [d, f] = U(e || !1), [m, p] = U(0), [h, g] = U(!1), v = me(null), x = me(null), b = me(0), y = me(0), O = me(null);
|
|
6043
|
+
ae(() => (x.current || (x.current = document.createElement("div"), x.current.id = `sidebar-root-${s || crypto.randomUUID()}`, document.body.appendChild(x.current)), () => {
|
|
6044
|
+
x.current && x.current.parentNode && (document.body.removeChild(x.current), x.current = null);
|
|
6043
6045
|
}), [s]), ae(() => {
|
|
6044
|
-
|
|
6046
|
+
f(e || !1);
|
|
6045
6047
|
}, [e]);
|
|
6046
|
-
const
|
|
6047
|
-
|
|
6048
|
-
}, [n]),
|
|
6048
|
+
const D = I(() => {
|
|
6049
|
+
f(!1), n && n(!1);
|
|
6050
|
+
}, [n]), j = I(
|
|
6049
6051
|
(W) => {
|
|
6050
|
-
l &&
|
|
6052
|
+
l && v.current && !v.current.contains(W.target) && D();
|
|
6051
6053
|
},
|
|
6052
|
-
[
|
|
6054
|
+
[D, l]
|
|
6053
6055
|
), _ = I((W) => {
|
|
6054
6056
|
const ee = W.touches[0];
|
|
6055
|
-
|
|
6057
|
+
b.current = ee.clientX, y.current = ee.clientY, O.current = null, g(!1), p(0);
|
|
6056
6058
|
}, []), R = I(
|
|
6057
6059
|
(W) => {
|
|
6058
6060
|
if (!d) return;
|
|
6059
|
-
const ee = W.touches[0], L = ee.clientX -
|
|
6060
|
-
if (!
|
|
6061
|
+
const ee = W.touches[0], L = ee.clientX - b.current, A = ee.clientY - y.current;
|
|
6062
|
+
if (!O.current) {
|
|
6061
6063
|
if (Math.abs(L) < $a && Math.abs(A) < $a)
|
|
6062
6064
|
return;
|
|
6063
|
-
|
|
6065
|
+
O.current = Math.abs(L) > Math.abs(A) ? "x" : "y";
|
|
6064
6066
|
}
|
|
6065
|
-
|
|
6067
|
+
O.current === "x" && (L < 20 || (W.preventDefault(), g(!0), p(Math.max(0, L))));
|
|
6066
6068
|
},
|
|
6067
6069
|
[d]
|
|
6068
6070
|
), q = I(
|
|
6069
6071
|
(W) => {
|
|
6070
|
-
d && (
|
|
6072
|
+
d && (O.current === "x" && W.changedTouches[0].clientX - b.current > kl && D(), g(!1), p(0), O.current = null);
|
|
6071
6073
|
},
|
|
6072
|
-
[d,
|
|
6074
|
+
[d, D]
|
|
6073
6075
|
), ie = I(
|
|
6074
6076
|
(W) => {
|
|
6075
|
-
W.preventDefault(),
|
|
6077
|
+
W.preventDefault(), D();
|
|
6076
6078
|
},
|
|
6077
|
-
[
|
|
6079
|
+
[D]
|
|
6078
6080
|
);
|
|
6079
|
-
return ae(() => (d ? (document.addEventListener("mousedown",
|
|
6081
|
+
return ae(() => (d ? (document.addEventListener("mousedown", j), document.addEventListener("touchstart", j, {
|
|
6080
6082
|
passive: !0
|
|
6081
|
-
})) : (document.removeEventListener("mousedown",
|
|
6082
|
-
document.removeEventListener("mousedown",
|
|
6083
|
-
}), [d,
|
|
6083
|
+
})) : (document.removeEventListener("mousedown", j), document.removeEventListener("touchstart", j)), () => {
|
|
6084
|
+
document.removeEventListener("mousedown", j), document.removeEventListener("touchstart", j);
|
|
6085
|
+
}), [d, j]), x.current ? Cn.createPortal(
|
|
6084
6086
|
/* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
6085
6087
|
d && c && /* @__PURE__ */ o.jsx(
|
|
6086
6088
|
"div",
|
|
6087
6089
|
{
|
|
6088
6090
|
className: "overlay",
|
|
6089
|
-
onClick:
|
|
6091
|
+
onClick: D,
|
|
6090
6092
|
onTouchEnd: ie
|
|
6091
6093
|
}
|
|
6092
6094
|
),
|
|
6093
6095
|
/* @__PURE__ */ o.jsxs(
|
|
6094
6096
|
"div",
|
|
6095
6097
|
{
|
|
6096
|
-
ref:
|
|
6098
|
+
ref: v,
|
|
6097
6099
|
style: {
|
|
6098
6100
|
...i ? { width: i } : {},
|
|
6099
|
-
transform:
|
|
6100
|
-
transition:
|
|
6101
|
+
transform: m ? `translateX(${m}px)` : void 0,
|
|
6102
|
+
transition: h ? "none" : void 0
|
|
6101
6103
|
},
|
|
6102
6104
|
className: `sidebar ${d ? "open" : "closed"} ${a ?? ""}`,
|
|
6103
6105
|
onClick: (W) => W.stopPropagation(),
|
|
@@ -6107,14 +6109,14 @@ const Dl = Je(
|
|
|
6107
6109
|
children: [
|
|
6108
6110
|
/* @__PURE__ */ o.jsxs("div", { className: "sidebar-header", children: [
|
|
6109
6111
|
r && /* @__PURE__ */ o.jsx("h2", { className: "flex-1", children: r }),
|
|
6110
|
-
/* @__PURE__ */ o.jsx("button", { className: "toggle-btn", onClick:
|
|
6112
|
+
/* @__PURE__ */ o.jsx("button", { className: "toggle-btn", onClick: D, children: /* @__PURE__ */ o.jsx(J, { classIcon: "bi-x-lg" }) })
|
|
6111
6113
|
] }),
|
|
6112
6114
|
t && t
|
|
6113
6115
|
]
|
|
6114
6116
|
}
|
|
6115
6117
|
)
|
|
6116
6118
|
] }),
|
|
6117
|
-
|
|
6119
|
+
x.current
|
|
6118
6120
|
) : /* @__PURE__ */ o.jsx(o.Fragment, {});
|
|
6119
6121
|
}, mu = (e) => /* @__PURE__ */ o.jsx(_l, { ...e, className: `full sidebar-data ${e.className}`, children: e.children && /* @__PURE__ */ o.jsx("div", { className: `sidebar-data-content ${e.classNameContent} `, children: e.children }) }), vu = ({
|
|
6120
6122
|
items: e,
|
|
@@ -6125,51 +6127,51 @@ const Dl = Je(
|
|
|
6125
6127
|
tabClassName: s = "",
|
|
6126
6128
|
panelClassName: i = ""
|
|
6127
6129
|
}) => {
|
|
6128
|
-
const l = typeof r == "number", [c, d] = U(t),
|
|
6130
|
+
const l = typeof r == "number", [c, d] = U(t), f = l ? r : c;
|
|
6129
6131
|
ae(() => {
|
|
6130
6132
|
!l && (t < 0 || t >= e.length) && d(0);
|
|
6131
6133
|
}, [t, e.length, l]);
|
|
6132
|
-
const
|
|
6133
|
-
var
|
|
6134
|
-
(
|
|
6134
|
+
const m = me([]), p = (h) => {
|
|
6135
|
+
var g, v;
|
|
6136
|
+
(g = e[h]) != null && g.disabled || (l || d(h), n == null || n(h), (v = m.current[h]) == null || v.focus());
|
|
6135
6137
|
};
|
|
6136
6138
|
return /* @__PURE__ */ o.jsxs("div", { className: `tabs-root ${a}`, children: [
|
|
6137
|
-
/* @__PURE__ */ o.jsx("div", { role: "tablist", className: "tabs-header", children: e.map((
|
|
6139
|
+
/* @__PURE__ */ o.jsx("div", { role: "tablist", className: "tabs-header", children: e.map((h, g) => /* @__PURE__ */ o.jsx(
|
|
6138
6140
|
"button",
|
|
6139
6141
|
{
|
|
6140
|
-
ref: (
|
|
6142
|
+
ref: (v) => m.current[g] = v,
|
|
6141
6143
|
role: "tab",
|
|
6142
|
-
id: `tab-${
|
|
6143
|
-
"aria-selected":
|
|
6144
|
-
"aria-controls": `panel-${
|
|
6145
|
-
tabIndex:
|
|
6146
|
-
disabled:
|
|
6147
|
-
onClick: () =>
|
|
6148
|
-
className: `${s} tab-button ${
|
|
6149
|
-
children:
|
|
6144
|
+
id: `tab-${h.key}`,
|
|
6145
|
+
"aria-selected": f === g,
|
|
6146
|
+
"aria-controls": `panel-${h.key}`,
|
|
6147
|
+
tabIndex: f === g ? 0 : -1,
|
|
6148
|
+
disabled: h.disabled,
|
|
6149
|
+
onClick: () => p(g),
|
|
6150
|
+
className: `${s} tab-button ${f === g ? "tab-button--active" : ""} ${h.disabled ? "tab-button--disabled" : ""}`,
|
|
6151
|
+
children: h.title
|
|
6150
6152
|
},
|
|
6151
|
-
`tab-${
|
|
6153
|
+
`tab-${h.key}`
|
|
6152
6154
|
)) }),
|
|
6153
|
-
e.map((
|
|
6155
|
+
e.map((h, g) => /* @__PURE__ */ o.jsx(
|
|
6154
6156
|
"div",
|
|
6155
6157
|
{
|
|
6156
6158
|
role: "tabpanel",
|
|
6157
|
-
id: `panel-${
|
|
6158
|
-
"aria-labelledby": `tab-${
|
|
6159
|
-
hidden:
|
|
6159
|
+
id: `panel-${h.key}`,
|
|
6160
|
+
"aria-labelledby": `tab-${h.key}`,
|
|
6161
|
+
hidden: f !== g,
|
|
6160
6162
|
className: `${i} mt-3`,
|
|
6161
|
-
children:
|
|
6163
|
+
children: f === g && h.panel
|
|
6162
6164
|
},
|
|
6163
|
-
`panel-${
|
|
6165
|
+
`panel-${h.key}`
|
|
6164
6166
|
))
|
|
6165
6167
|
] });
|
|
6166
6168
|
}, La = (e) => {
|
|
6167
6169
|
let t;
|
|
6168
|
-
const r = /* @__PURE__ */ new Set(), n = (d,
|
|
6169
|
-
const
|
|
6170
|
-
if (!Object.is(
|
|
6171
|
-
const
|
|
6172
|
-
t =
|
|
6170
|
+
const r = /* @__PURE__ */ new Set(), n = (d, f) => {
|
|
6171
|
+
const m = typeof d == "function" ? d(t) : d;
|
|
6172
|
+
if (!Object.is(m, t)) {
|
|
6173
|
+
const p = t;
|
|
6174
|
+
t = f ?? (typeof m != "object" || m === null) ? m : Object.assign({}, t, m), r.forEach((h) => h(t, p));
|
|
6173
6175
|
}
|
|
6174
6176
|
}, a = () => t, l = { setState: n, getState: a, getInitialState: () => c, subscribe: (d) => (r.add(d), () => r.delete(d)) }, c = t = e(n, a, l);
|
|
6175
6177
|
return l;
|
|
@@ -6218,10 +6220,10 @@ const Ma = (e) => {
|
|
|
6218
6220
|
}, [i]);
|
|
6219
6221
|
if (ae(() => {
|
|
6220
6222
|
if (!n) return;
|
|
6221
|
-
const
|
|
6223
|
+
const f = setTimeout(() => {
|
|
6222
6224
|
i();
|
|
6223
6225
|
}, s);
|
|
6224
|
-
return () => clearTimeout(
|
|
6226
|
+
return () => clearTimeout(f);
|
|
6225
6227
|
}, [n, s, i]), !n) return null;
|
|
6226
6228
|
const d = document.getElementById("toaster-root");
|
|
6227
6229
|
return d ? Cn.createPortal(
|