kelt-ui-kit-react 1.8.9 → 1.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +740 -724
- package/dist/select/Select.d.ts +2 -1
- package/package.json +1 -1
- package/src/dataTable/DataTable.tsx +10 -3
- package/src/dataTable/dataTableRow/DataTableRow.tsx +23 -10
- package/src/select/Select.tsx +4 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as Le from "react";
|
|
2
|
-
import Ae, { createContext as Aa, useRef as re, useState as
|
|
2
|
+
import Ae, { createContext as Aa, useRef as re, useState as F, useEffect as X, useContext as On, useCallback as I, useDebugValue as Gn, createElement as Bo, forwardRef as Ue, useId as Uo, useImperativeHandle as Dr, useMemo as Re, Children as zo, cloneElement as Go } from "react";
|
|
3
3
|
import Nn, { createPortal as Ia } from "react-dom";
|
|
4
4
|
var ar = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
5
5
|
function Ho(e) {
|
|
@@ -43,44 +43,44 @@ var qn;
|
|
|
43
43
|
function Xo() {
|
|
44
44
|
return qn || (qn = 1, process.env.NODE_ENV !== "production" && function() {
|
|
45
45
|
var e = Ae, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), c = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), v = Symbol.for("react.memo"), g = Symbol.for("react.lazy"), h = Symbol.for("react.offscreen"), p = Symbol.iterator, m = "@@iterator";
|
|
46
|
-
function
|
|
46
|
+
function b(u) {
|
|
47
47
|
if (u === null || typeof u != "object")
|
|
48
48
|
return null;
|
|
49
|
-
var
|
|
50
|
-
return typeof
|
|
49
|
+
var j = p && u[p] || u[m];
|
|
50
|
+
return typeof j == "function" ? j : null;
|
|
51
51
|
}
|
|
52
|
-
var
|
|
53
|
-
function
|
|
52
|
+
var x = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
53
|
+
function y(u) {
|
|
54
54
|
{
|
|
55
|
-
for (var
|
|
56
|
-
N[
|
|
57
|
-
|
|
55
|
+
for (var j = arguments.length, N = new Array(j > 1 ? j - 1 : 0), M = 1; M < j; M++)
|
|
56
|
+
N[M - 1] = arguments[M];
|
|
57
|
+
k("error", u, N);
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function k(u, j, N) {
|
|
61
61
|
{
|
|
62
|
-
var
|
|
63
|
-
B !== "" && (
|
|
64
|
-
var
|
|
62
|
+
var M = x.ReactDebugCurrentFrame, B = M.getStackAddendum();
|
|
63
|
+
B !== "" && (j += "%s", N = N.concat([B]));
|
|
64
|
+
var C = N.map(function(P) {
|
|
65
65
|
return String(P);
|
|
66
66
|
});
|
|
67
|
-
|
|
67
|
+
C.unshift("Warning: " + j), Function.prototype.apply.call(console[u], console, C);
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
|
-
var
|
|
71
|
-
|
|
72
|
-
function
|
|
73
|
-
return !!(typeof u == "string" || typeof u == "function" || u === n || u === i ||
|
|
70
|
+
var D = !1, O = !1, E = !1, _ = !1, W = !1, w;
|
|
71
|
+
w = Symbol.for("react.module.reference");
|
|
72
|
+
function S(u) {
|
|
73
|
+
return !!(typeof u == "string" || typeof u == "function" || u === n || u === i || W || u === a || u === d || u === f || _ || u === h || D || O || E || typeof u == "object" && u !== null && (u.$$typeof === g || u.$$typeof === v || u.$$typeof === s || u.$$typeof === c || u.$$typeof === l || // 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
|
-
u.$$typeof ===
|
|
77
|
+
u.$$typeof === w || u.getModuleId !== void 0));
|
|
78
78
|
}
|
|
79
|
-
function
|
|
80
|
-
var
|
|
81
|
-
if (
|
|
82
|
-
return
|
|
83
|
-
var B =
|
|
79
|
+
function $(u, j, N) {
|
|
80
|
+
var M = u.displayName;
|
|
81
|
+
if (M)
|
|
82
|
+
return M;
|
|
83
|
+
var B = j.displayName || j.name || "";
|
|
84
84
|
return B !== "" ? N + "(" + B + ")" : N;
|
|
85
85
|
}
|
|
86
86
|
function R(u) {
|
|
@@ -89,7 +89,7 @@ function Xo() {
|
|
|
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;
|
|
@@ -110,20 +110,20 @@ function Xo() {
|
|
|
110
110
|
if (typeof u == "object")
|
|
111
111
|
switch (u.$$typeof) {
|
|
112
112
|
case c:
|
|
113
|
-
var
|
|
114
|
-
return R(
|
|
113
|
+
var j = u;
|
|
114
|
+
return R(j) + ".Consumer";
|
|
115
115
|
case s:
|
|
116
116
|
var N = u;
|
|
117
117
|
return R(N._context) + ".Provider";
|
|
118
118
|
case l:
|
|
119
|
-
return
|
|
119
|
+
return $(u, u.render, "ForwardRef");
|
|
120
120
|
case v:
|
|
121
|
-
var
|
|
122
|
-
return
|
|
121
|
+
var M = u.displayName || null;
|
|
122
|
+
return M !== null ? M : A(u.type) || "Memo";
|
|
123
123
|
case g: {
|
|
124
|
-
var B = u,
|
|
124
|
+
var B = u, C = B._payload, P = B._init;
|
|
125
125
|
try {
|
|
126
|
-
return A(P(
|
|
126
|
+
return A(P(C));
|
|
127
127
|
} catch {
|
|
128
128
|
return null;
|
|
129
129
|
}
|
|
@@ -190,18 +190,18 @@ function Xo() {
|
|
|
190
190
|
})
|
|
191
191
|
});
|
|
192
192
|
}
|
|
193
|
-
ie < 0 &&
|
|
193
|
+
ie < 0 && y("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
194
194
|
}
|
|
195
195
|
}
|
|
196
|
-
var me =
|
|
197
|
-
function ue(u,
|
|
196
|
+
var me = x.ReactCurrentDispatcher, pe;
|
|
197
|
+
function ue(u, j, N) {
|
|
198
198
|
{
|
|
199
199
|
if (pe === void 0)
|
|
200
200
|
try {
|
|
201
201
|
throw Error();
|
|
202
202
|
} catch (B) {
|
|
203
|
-
var
|
|
204
|
-
pe =
|
|
203
|
+
var M = B.stack.trim().match(/\n( *(at )?)/);
|
|
204
|
+
pe = M && M[1] || "";
|
|
205
205
|
}
|
|
206
206
|
return `
|
|
207
207
|
` + pe + u;
|
|
@@ -209,10 +209,10 @@ function Xo() {
|
|
|
209
209
|
}
|
|
210
210
|
var ae = !1, De;
|
|
211
211
|
{
|
|
212
|
-
var
|
|
213
|
-
De = new
|
|
212
|
+
var Ce = typeof WeakMap == "function" ? WeakMap : Map;
|
|
213
|
+
De = new Ce();
|
|
214
214
|
}
|
|
215
|
-
function he(u,
|
|
215
|
+
function he(u, j) {
|
|
216
216
|
if (!u || ae)
|
|
217
217
|
return "";
|
|
218
218
|
{
|
|
@@ -220,14 +220,14 @@ function Xo() {
|
|
|
220
220
|
if (N !== void 0)
|
|
221
221
|
return N;
|
|
222
222
|
}
|
|
223
|
-
var
|
|
223
|
+
var M;
|
|
224
224
|
ae = !0;
|
|
225
225
|
var B = Error.prepareStackTrace;
|
|
226
226
|
Error.prepareStackTrace = void 0;
|
|
227
|
-
var
|
|
228
|
-
|
|
227
|
+
var C;
|
|
228
|
+
C = me.current, me.current = null, Ee();
|
|
229
229
|
try {
|
|
230
|
-
if (
|
|
230
|
+
if (j) {
|
|
231
231
|
var P = function() {
|
|
232
232
|
throw Error();
|
|
233
233
|
};
|
|
@@ -239,14 +239,14 @@ function Xo() {
|
|
|
239
239
|
try {
|
|
240
240
|
Reflect.construct(P, []);
|
|
241
241
|
} catch (ye) {
|
|
242
|
-
|
|
242
|
+
M = ye;
|
|
243
243
|
}
|
|
244
244
|
Reflect.construct(u, [], P);
|
|
245
245
|
} else {
|
|
246
246
|
try {
|
|
247
247
|
P.call();
|
|
248
248
|
} catch (ye) {
|
|
249
|
-
|
|
249
|
+
M = ye;
|
|
250
250
|
}
|
|
251
251
|
u.call(P.prototype);
|
|
252
252
|
}
|
|
@@ -254,14 +254,14 @@ function Xo() {
|
|
|
254
254
|
try {
|
|
255
255
|
throw Error();
|
|
256
256
|
} catch (ye) {
|
|
257
|
-
|
|
257
|
+
M = ye;
|
|
258
258
|
}
|
|
259
259
|
u();
|
|
260
260
|
}
|
|
261
261
|
} catch (ye) {
|
|
262
|
-
if (ye &&
|
|
262
|
+
if (ye && M && typeof ye.stack == "string") {
|
|
263
263
|
for (var T = ye.stack.split(`
|
|
264
|
-
`), z =
|
|
264
|
+
`), z = M.stack.split(`
|
|
265
265
|
`), Y = T.length - 1, J = z.length - 1; Y >= 1 && J >= 0 && T[Y] !== z[J]; )
|
|
266
266
|
J--;
|
|
267
267
|
for (; Y >= 1 && J >= 0; Y--, J--)
|
|
@@ -278,19 +278,19 @@ function Xo() {
|
|
|
278
278
|
}
|
|
279
279
|
}
|
|
280
280
|
} finally {
|
|
281
|
-
ae = !1, me.current =
|
|
281
|
+
ae = !1, me.current = C, ke(), Error.prepareStackTrace = B;
|
|
282
282
|
}
|
|
283
|
-
var
|
|
283
|
+
var Fe = u ? u.displayName || u.name : "", Je = Fe ? ue(Fe) : "";
|
|
284
284
|
return typeof u == "function" && De.set(u, Je), Je;
|
|
285
285
|
}
|
|
286
|
-
function Ot(u,
|
|
286
|
+
function Ot(u, j, N) {
|
|
287
287
|
return he(u, !1);
|
|
288
288
|
}
|
|
289
289
|
function te(u) {
|
|
290
|
-
var
|
|
291
|
-
return !!(
|
|
290
|
+
var j = u.prototype;
|
|
291
|
+
return !!(j && j.isReactComponent);
|
|
292
292
|
}
|
|
293
|
-
function
|
|
293
|
+
function _e(u, j, N) {
|
|
294
294
|
if (u == null)
|
|
295
295
|
return "";
|
|
296
296
|
if (typeof u == "function")
|
|
@@ -308,55 +308,55 @@ function Xo() {
|
|
|
308
308
|
case l:
|
|
309
309
|
return Ot(u.render);
|
|
310
310
|
case v:
|
|
311
|
-
return
|
|
311
|
+
return _e(u.type, j, N);
|
|
312
312
|
case g: {
|
|
313
|
-
var
|
|
313
|
+
var M = u, B = M._payload, C = M._init;
|
|
314
314
|
try {
|
|
315
|
-
return
|
|
315
|
+
return _e(C(B), j, N);
|
|
316
316
|
} catch {
|
|
317
317
|
}
|
|
318
318
|
}
|
|
319
319
|
}
|
|
320
320
|
return "";
|
|
321
321
|
}
|
|
322
|
-
var se = Object.prototype.hasOwnProperty, He = {}, Nt =
|
|
322
|
+
var se = Object.prototype.hasOwnProperty, He = {}, Nt = x.ReactDebugCurrentFrame;
|
|
323
323
|
function qe(u) {
|
|
324
324
|
if (u) {
|
|
325
|
-
var
|
|
325
|
+
var j = u._owner, N = _e(u.type, u._source, j ? j.type : null);
|
|
326
326
|
Nt.setExtraStackFrame(N);
|
|
327
327
|
} else
|
|
328
328
|
Nt.setExtraStackFrame(null);
|
|
329
329
|
}
|
|
330
|
-
function Lr(u,
|
|
330
|
+
function Lr(u, j, N, M, B) {
|
|
331
331
|
{
|
|
332
|
-
var
|
|
332
|
+
var C = Function.call.bind(se);
|
|
333
333
|
for (var P in u)
|
|
334
|
-
if (
|
|
334
|
+
if (C(u, P)) {
|
|
335
335
|
var T = void 0;
|
|
336
336
|
try {
|
|
337
337
|
if (typeof u[P] != "function") {
|
|
338
|
-
var z = Error((
|
|
338
|
+
var z = Error((M || "React class") + ": " + N + " type `" + P + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof u[P] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
339
339
|
throw z.name = "Invariant Violation", z;
|
|
340
340
|
}
|
|
341
|
-
T = u[P](
|
|
341
|
+
T = u[P](j, P, M, N, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
342
342
|
} catch (Y) {
|
|
343
343
|
T = Y;
|
|
344
344
|
}
|
|
345
|
-
T && !(T instanceof Error) && (qe(B),
|
|
345
|
+
T && !(T instanceof Error) && (qe(B), 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).", M || "React class", N, P, typeof T), qe(null)), T instanceof Error && !(T.message in He) && (He[T.message] = !0, qe(B), y("Failed %s type: %s", N, T.message), qe(null));
|
|
346
346
|
}
|
|
347
347
|
}
|
|
348
348
|
}
|
|
349
|
-
var
|
|
349
|
+
var Wr = Array.isArray;
|
|
350
350
|
function Et(u) {
|
|
351
|
-
return
|
|
351
|
+
return Wr(u);
|
|
352
352
|
}
|
|
353
353
|
function Ht(u) {
|
|
354
354
|
{
|
|
355
|
-
var
|
|
355
|
+
var j = typeof Symbol == "function" && Symbol.toStringTag, N = j && u[Symbol.toStringTag] || u.constructor.name || "Object";
|
|
356
356
|
return N;
|
|
357
357
|
}
|
|
358
358
|
}
|
|
359
|
-
function
|
|
359
|
+
function Fr(u) {
|
|
360
360
|
try {
|
|
361
361
|
return qt(u), !1;
|
|
362
362
|
} catch {
|
|
@@ -367,10 +367,10 @@ function Xo() {
|
|
|
367
367
|
return "" + u;
|
|
368
368
|
}
|
|
369
369
|
function Xt(u) {
|
|
370
|
-
if (
|
|
371
|
-
return
|
|
370
|
+
if (Fr(u))
|
|
371
|
+
return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ht(u)), qt(u);
|
|
372
372
|
}
|
|
373
|
-
var Kt =
|
|
373
|
+
var Kt = x.ReactCurrentOwner, Vr = {
|
|
374
374
|
key: !0,
|
|
375
375
|
ref: !0,
|
|
376
376
|
__self: !0,
|
|
@@ -378,27 +378,27 @@ function Xo() {
|
|
|
378
378
|
}, it, kt;
|
|
379
379
|
function Jt(u) {
|
|
380
380
|
if (se.call(u, "ref")) {
|
|
381
|
-
var
|
|
382
|
-
if (
|
|
381
|
+
var j = Object.getOwnPropertyDescriptor(u, "ref").get;
|
|
382
|
+
if (j && j.isReactWarning)
|
|
383
383
|
return !1;
|
|
384
384
|
}
|
|
385
385
|
return u.ref !== void 0;
|
|
386
386
|
}
|
|
387
387
|
function Yr(u) {
|
|
388
388
|
if (se.call(u, "key")) {
|
|
389
|
-
var
|
|
390
|
-
if (
|
|
389
|
+
var j = Object.getOwnPropertyDescriptor(u, "key").get;
|
|
390
|
+
if (j && j.isReactWarning)
|
|
391
391
|
return !1;
|
|
392
392
|
}
|
|
393
393
|
return u.key !== void 0;
|
|
394
394
|
}
|
|
395
|
-
function st(u,
|
|
395
|
+
function st(u, j) {
|
|
396
396
|
typeof u.ref == "string" && Kt.current;
|
|
397
397
|
}
|
|
398
|
-
function Qt(u,
|
|
398
|
+
function Qt(u, j) {
|
|
399
399
|
{
|
|
400
400
|
var N = function() {
|
|
401
|
-
it || (it = !0,
|
|
401
|
+
it || (it = !0, y("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", j));
|
|
402
402
|
};
|
|
403
403
|
N.isReactWarning = !0, Object.defineProperty(u, "key", {
|
|
404
404
|
get: N,
|
|
@@ -406,10 +406,10 @@ function Xo() {
|
|
|
406
406
|
});
|
|
407
407
|
}
|
|
408
408
|
}
|
|
409
|
-
function Br(u,
|
|
409
|
+
function Br(u, j) {
|
|
410
410
|
{
|
|
411
411
|
var N = function() {
|
|
412
|
-
kt || (kt = !0,
|
|
412
|
+
kt || (kt = !0, y("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", j));
|
|
413
413
|
};
|
|
414
414
|
N.isReactWarning = !0, Object.defineProperty(u, "ref", {
|
|
415
415
|
get: N,
|
|
@@ -417,17 +417,17 @@ function Xo() {
|
|
|
417
417
|
});
|
|
418
418
|
}
|
|
419
419
|
}
|
|
420
|
-
var Zt = function(u,
|
|
420
|
+
var Zt = function(u, j, N, M, B, C, P) {
|
|
421
421
|
var T = {
|
|
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: j,
|
|
427
427
|
ref: N,
|
|
428
428
|
props: P,
|
|
429
429
|
// Record the component responsible for creating this element.
|
|
430
|
-
_owner:
|
|
430
|
+
_owner: C
|
|
431
431
|
};
|
|
432
432
|
return T._store = {}, Object.defineProperty(T._store, "validated", {
|
|
433
433
|
configurable: !1,
|
|
@@ -438,7 +438,7 @@ function Xo() {
|
|
|
438
438
|
configurable: !1,
|
|
439
439
|
enumerable: !1,
|
|
440
440
|
writable: !1,
|
|
441
|
-
value:
|
|
441
|
+
value: M
|
|
442
442
|
}), Object.defineProperty(T, "_source", {
|
|
443
443
|
configurable: !1,
|
|
444
444
|
enumerable: !1,
|
|
@@ -446,34 +446,34 @@ function Xo() {
|
|
|
446
446
|
value: B
|
|
447
447
|
}), Object.freeze && (Object.freeze(T.props), Object.freeze(T)), T;
|
|
448
448
|
};
|
|
449
|
-
function er(u,
|
|
449
|
+
function er(u, j, N, M, B) {
|
|
450
450
|
{
|
|
451
|
-
var
|
|
452
|
-
N !== void 0 && (Xt(N), T = "" + N), Yr(
|
|
453
|
-
for (
|
|
454
|
-
se.call(
|
|
451
|
+
var C, P = {}, T = null, z = null;
|
|
452
|
+
N !== void 0 && (Xt(N), T = "" + N), Yr(j) && (Xt(j.key), T = "" + j.key), Jt(j) && (z = j.ref, st(j, B));
|
|
453
|
+
for (C in j)
|
|
454
|
+
se.call(j, C) && !Vr.hasOwnProperty(C) && (P[C] = j[C]);
|
|
455
455
|
if (u && u.defaultProps) {
|
|
456
456
|
var Y = u.defaultProps;
|
|
457
|
-
for (
|
|
458
|
-
P[
|
|
457
|
+
for (C in Y)
|
|
458
|
+
P[C] === void 0 && (P[C] = Y[C]);
|
|
459
459
|
}
|
|
460
460
|
if (T || z) {
|
|
461
461
|
var J = typeof u == "function" ? u.displayName || u.name || "Unknown" : u;
|
|
462
462
|
T && Qt(P, J), z && Br(P, J);
|
|
463
463
|
}
|
|
464
|
-
return Zt(u, T, z, B,
|
|
464
|
+
return Zt(u, T, z, B, M, Kt.current, P);
|
|
465
465
|
}
|
|
466
466
|
}
|
|
467
|
-
var Xe =
|
|
467
|
+
var Xe = x.ReactCurrentOwner, tr = x.ReactDebugCurrentFrame;
|
|
468
468
|
function $e(u) {
|
|
469
469
|
if (u) {
|
|
470
|
-
var
|
|
470
|
+
var j = u._owner, N = _e(u.type, u._source, j ? j.type : null);
|
|
471
471
|
tr.setExtraStackFrame(N);
|
|
472
472
|
} else
|
|
473
473
|
tr.setExtraStackFrame(null);
|
|
474
474
|
}
|
|
475
|
-
var
|
|
476
|
-
|
|
475
|
+
var Ct;
|
|
476
|
+
Ct = !1;
|
|
477
477
|
function ct(u) {
|
|
478
478
|
return typeof u == "object" && u !== null && u.$$typeof === t;
|
|
479
479
|
}
|
|
@@ -495,120 +495,120 @@ Check the render method of \`` + u + "`.";
|
|
|
495
495
|
var Ke = {};
|
|
496
496
|
function H(u) {
|
|
497
497
|
{
|
|
498
|
-
var
|
|
499
|
-
if (!
|
|
498
|
+
var j = de();
|
|
499
|
+
if (!j) {
|
|
500
500
|
var N = typeof u == "string" ? u : u.displayName || u.name;
|
|
501
|
-
N && (
|
|
501
|
+
N && (j = `
|
|
502
502
|
|
|
503
503
|
Check the top-level render call using <` + N + ">.");
|
|
504
504
|
}
|
|
505
|
-
return
|
|
505
|
+
return j;
|
|
506
506
|
}
|
|
507
507
|
}
|
|
508
|
-
function we(u,
|
|
508
|
+
function we(u, j) {
|
|
509
509
|
{
|
|
510
510
|
if (!u._store || u._store.validated || u.key != null)
|
|
511
511
|
return;
|
|
512
512
|
u._store.validated = !0;
|
|
513
|
-
var N = H(
|
|
513
|
+
var N = H(j);
|
|
514
514
|
if (Ke[N])
|
|
515
515
|
return;
|
|
516
516
|
Ke[N] = !0;
|
|
517
|
-
var
|
|
518
|
-
u && u._owner && u._owner !== Xe.current && (
|
|
517
|
+
var M = "";
|
|
518
|
+
u && u._owner && u._owner !== Xe.current && (M = " It was passed a child from " + A(u._owner.type) + "."), $e(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.', N, M), $e(null);
|
|
519
519
|
}
|
|
520
520
|
}
|
|
521
|
-
function rr(u,
|
|
521
|
+
function rr(u, j) {
|
|
522
522
|
{
|
|
523
523
|
if (typeof u != "object")
|
|
524
524
|
return;
|
|
525
525
|
if (Et(u))
|
|
526
526
|
for (var N = 0; N < u.length; N++) {
|
|
527
|
-
var
|
|
528
|
-
ct(
|
|
527
|
+
var M = u[N];
|
|
528
|
+
ct(M) && we(M, j);
|
|
529
529
|
}
|
|
530
530
|
else if (ct(u))
|
|
531
531
|
u._store && (u._store.validated = !0);
|
|
532
532
|
else if (u) {
|
|
533
|
-
var B =
|
|
533
|
+
var B = b(u);
|
|
534
534
|
if (typeof B == "function" && B !== u.entries)
|
|
535
|
-
for (var
|
|
536
|
-
ct(P.value) && we(P.value,
|
|
535
|
+
for (var C = B.call(u), P; !(P = C.next()).done; )
|
|
536
|
+
ct(P.value) && we(P.value, j);
|
|
537
537
|
}
|
|
538
538
|
}
|
|
539
539
|
}
|
|
540
|
-
function
|
|
540
|
+
function _t(u) {
|
|
541
541
|
{
|
|
542
|
-
var
|
|
543
|
-
if (
|
|
542
|
+
var j = u.type;
|
|
543
|
+
if (j == null || typeof j == "string")
|
|
544
544
|
return;
|
|
545
545
|
var N;
|
|
546
|
-
if (typeof
|
|
547
|
-
N =
|
|
548
|
-
else if (typeof
|
|
546
|
+
if (typeof j == "function")
|
|
547
|
+
N = j.propTypes;
|
|
548
|
+
else if (typeof j == "object" && (j.$$typeof === l || // Note: Memo only checks outer props here.
|
|
549
549
|
// Inner props are checked in the reconciler.
|
|
550
|
-
|
|
551
|
-
N =
|
|
550
|
+
j.$$typeof === v))
|
|
551
|
+
N = j.propTypes;
|
|
552
552
|
else
|
|
553
553
|
return;
|
|
554
554
|
if (N) {
|
|
555
|
-
var
|
|
556
|
-
Lr(N, u.props, "prop",
|
|
557
|
-
} else if (
|
|
558
|
-
|
|
559
|
-
var B = A(
|
|
560
|
-
|
|
555
|
+
var M = A(j);
|
|
556
|
+
Lr(N, u.props, "prop", M, u);
|
|
557
|
+
} else if (j.PropTypes !== void 0 && !Ct) {
|
|
558
|
+
Ct = !0;
|
|
559
|
+
var B = A(j);
|
|
560
|
+
y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", B || "Unknown");
|
|
561
561
|
}
|
|
562
|
-
typeof
|
|
562
|
+
typeof j.getDefaultProps == "function" && !j.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 nr(u) {
|
|
566
566
|
{
|
|
567
|
-
for (var
|
|
568
|
-
var
|
|
569
|
-
if (
|
|
570
|
-
$e(u),
|
|
567
|
+
for (var j = Object.keys(u.props), N = 0; N < j.length; N++) {
|
|
568
|
+
var M = j[N];
|
|
569
|
+
if (M !== "children" && M !== "key") {
|
|
570
|
+
$e(u), y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", M), $e(null);
|
|
571
571
|
break;
|
|
572
572
|
}
|
|
573
573
|
}
|
|
574
|
-
u.ref !== null && ($e(u),
|
|
574
|
+
u.ref !== null && ($e(u), y("Invalid attribute `ref` supplied to `React.Fragment`."), $e(null));
|
|
575
575
|
}
|
|
576
576
|
}
|
|
577
577
|
var Pt = {};
|
|
578
|
-
function lt(u,
|
|
578
|
+
function lt(u, j, N, M, B, C) {
|
|
579
579
|
{
|
|
580
|
-
var P =
|
|
580
|
+
var P = S(u);
|
|
581
581
|
if (!P) {
|
|
582
582
|
var T = "";
|
|
583
583
|
(u === void 0 || typeof u == "object" && u !== null && Object.keys(u).length === 0) && (T += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
584
584
|
var z = ve();
|
|
585
585
|
z ? T += z : T += de();
|
|
586
586
|
var Y;
|
|
587
|
-
u === null ? Y = "null" : Et(u) ? Y = "array" : u !== void 0 && u.$$typeof === t ? (Y = "<" + (A(u.type) || "Unknown") + " />", T = " Did you accidentally export a JSX literal instead of a component?") : Y = typeof u,
|
|
587
|
+
u === null ? Y = "null" : Et(u) ? Y = "array" : u !== void 0 && u.$$typeof === t ? (Y = "<" + (A(u.type) || "Unknown") + " />", T = " Did you accidentally export a JSX literal instead of a component?") : Y = 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", Y, T);
|
|
588
588
|
}
|
|
589
|
-
var J = er(u,
|
|
589
|
+
var J = er(u, j, N, B, C);
|
|
590
590
|
if (J == null)
|
|
591
591
|
return J;
|
|
592
592
|
if (P) {
|
|
593
|
-
var ge =
|
|
593
|
+
var ge = j.children;
|
|
594
594
|
if (ge !== void 0)
|
|
595
|
-
if (
|
|
595
|
+
if (M)
|
|
596
596
|
if (Et(ge)) {
|
|
597
|
-
for (var
|
|
598
|
-
rr(ge[
|
|
597
|
+
for (var Fe = 0; Fe < ge.length; Fe++)
|
|
598
|
+
rr(ge[Fe], u);
|
|
599
599
|
Object.freeze && Object.freeze(ge);
|
|
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
|
rr(ge, u);
|
|
604
604
|
}
|
|
605
|
-
if (se.call(
|
|
606
|
-
var Je = A(u), ye = Object.keys(
|
|
605
|
+
if (se.call(j, "key")) {
|
|
606
|
+
var Je = A(u), ye = Object.keys(j).filter(function(Yo) {
|
|
607
607
|
return Yo !== "key";
|
|
608
608
|
}), Ur = ye.length > 0 ? "{key: someKey, " + ye.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
609
609
|
if (!Pt[Je + Ur]) {
|
|
610
610
|
var Vo = ye.length > 0 ? "{" + ye.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:
|
|
@@ -616,14 +616,14 @@ React keys must be passed directly to JSX without using spread:
|
|
|
616
616
|
<%s key={someKey} {...props} />`, Ur, Je, Vo, Je), Pt[Je + Ur] = !0;
|
|
617
617
|
}
|
|
618
618
|
}
|
|
619
|
-
return u === n ? nr(J) :
|
|
619
|
+
return u === n ? nr(J) : _t(J), J;
|
|
620
620
|
}
|
|
621
621
|
}
|
|
622
|
-
function ut(u,
|
|
623
|
-
return lt(u,
|
|
622
|
+
function ut(u, j, N) {
|
|
623
|
+
return lt(u, j, N, !0);
|
|
624
624
|
}
|
|
625
|
-
function Tt(u,
|
|
626
|
-
return lt(u,
|
|
625
|
+
function Tt(u, j, N) {
|
|
626
|
+
return lt(u, j, N, !1);
|
|
627
627
|
}
|
|
628
628
|
var Rt = Tt, At = ut;
|
|
629
629
|
$t.Fragment = n, $t.jsx = Rt, $t.jsxs = At;
|
|
@@ -699,7 +699,7 @@ new Promise(() => {
|
|
|
699
699
|
});
|
|
700
700
|
const Ma = Aa(1);
|
|
701
701
|
function wl({ children: e }) {
|
|
702
|
-
const t = ai(), r = re(1), [n, a] =
|
|
702
|
+
const t = ai(), r = re(1), [n, a] = F(1);
|
|
703
703
|
return X(() => {
|
|
704
704
|
r.current += 1, a(r.current);
|
|
705
705
|
}, [t]), /* @__PURE__ */ o.jsx(Ma.Provider, { value: n, children: e });
|
|
@@ -708,7 +708,7 @@ function jl() {
|
|
|
708
708
|
return On(Ma);
|
|
709
709
|
}
|
|
710
710
|
const Sl = ({ imageUrl: e }) => {
|
|
711
|
-
const [t, r] =
|
|
711
|
+
const [t, r] = F(null), n = async (a) => {
|
|
712
712
|
try {
|
|
713
713
|
const i = await fetch(a, { method: "HEAD" });
|
|
714
714
|
return console.log(i), i.ok;
|
|
@@ -768,11 +768,11 @@ function kl(e, t) {
|
|
|
768
768
|
const a = e.getFullYear().toString(), i = String(e.getMonth() + 1).padStart(2, "0"), s = String(e.getDate()).padStart(2, "0"), c = String(e.getHours()).padStart(2, "0"), l = String(e.getMinutes()).padStart(2, "0"), d = String(e.getSeconds()).padStart(2, "0"), f = r[e.getDay()], v = n[e.getMonth()];
|
|
769
769
|
return t.replace("dddd", f).replace("MMMM", v).replace("YYYY", a).replace("MM", i).replace("DD", s).replace("HH", c).replace("mm", l).replace("ss", d);
|
|
770
770
|
}
|
|
771
|
-
function
|
|
771
|
+
function Cl(e) {
|
|
772
772
|
const [t, r, n] = e.split("-").map(Number);
|
|
773
773
|
return new Date(t, r - 1, n, 0, 0, 0).toISOString();
|
|
774
774
|
}
|
|
775
|
-
function
|
|
775
|
+
function _l(e) {
|
|
776
776
|
const [t, r, n] = e.split("-").map(Number);
|
|
777
777
|
return new Date(t, r - 1, n, 0, 0, 0, 0);
|
|
778
778
|
}
|
|
@@ -781,7 +781,7 @@ function Pl(e) {
|
|
|
781
781
|
return new Date(t, r - 1, n, 23, 59, 59, 999);
|
|
782
782
|
}
|
|
783
783
|
const Tl = (e = 768) => {
|
|
784
|
-
const [t, r] =
|
|
784
|
+
const [t, r] = F(
|
|
785
785
|
typeof window < "u" ? window.innerWidth <= e : !1
|
|
786
786
|
);
|
|
787
787
|
return X(() => {
|
|
@@ -947,8 +947,8 @@ const $l = ({
|
|
|
947
947
|
className: e.active ? "expand expand--active" : "expand",
|
|
948
948
|
children: e.item.children
|
|
949
949
|
}
|
|
950
|
-
),
|
|
951
|
-
const [t, r] =
|
|
950
|
+
), Wa = (e) => {
|
|
951
|
+
const [t, r] = F(null), n = I((i) => {
|
|
952
952
|
r(i);
|
|
953
953
|
}, []), a = (i) => /* @__PURE__ */ o.jsx("ul", { children: i.map((s) => /* @__PURE__ */ o.jsxs("li", { children: [
|
|
954
954
|
/* @__PURE__ */ o.jsx(
|
|
@@ -962,13 +962,13 @@ const $l = ({
|
|
|
962
962
|
s.subMenu && s.subMenu.length > 0 && /* @__PURE__ */ o.jsx("div", { className: "ml-3 mt-1 submenu", children: a(s.subMenu) })
|
|
963
963
|
] }, s.id)) });
|
|
964
964
|
return /* @__PURE__ */ o.jsx("div", { className: `menu ${e.className || ""}`, children: a(e.items) });
|
|
965
|
-
},
|
|
965
|
+
}, Fa = Aa(void 0), Ml = ({
|
|
966
966
|
children: e
|
|
967
967
|
}) => {
|
|
968
|
-
const [t, r] =
|
|
969
|
-
return /* @__PURE__ */ o.jsx(
|
|
968
|
+
const [t, r] = F(null);
|
|
969
|
+
return /* @__PURE__ */ o.jsx(Fa.Provider, { value: { activeOverlayId: t, setActiveOverlay: r }, children: e });
|
|
970
970
|
}, li = () => {
|
|
971
|
-
const e = On(
|
|
971
|
+
const e = On(Fa);
|
|
972
972
|
if (!e)
|
|
973
973
|
throw new Error("useOverlayContext must be used within an OverlayProvider");
|
|
974
974
|
return e;
|
|
@@ -998,7 +998,7 @@ var di = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|def
|
|
|
998
998
|
return di.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91;
|
|
999
999
|
}
|
|
1000
1000
|
/* Z+1 */
|
|
1001
|
-
), q = "-ms-",
|
|
1001
|
+
), q = "-ms-", Ft = "-moz-", U = "-webkit-", Va = "comm", Or = "rule", kn = "decl", hi = "@import", Ya = "@keyframes", vi = "@layer", Ba = Math.abs, Cn = String.fromCharCode, tn = Object.assign;
|
|
1002
1002
|
function mi(e, t) {
|
|
1003
1003
|
return ce(e, 0) ^ 45 ? (((t << 2 ^ ce(e, 0)) << 2 ^ ce(e, 1)) << 2 ^ ce(e, 2)) << 2 ^ ce(e, 3) : 0;
|
|
1004
1004
|
}
|
|
@@ -1140,7 +1140,7 @@ function Si(e, t) {
|
|
|
1140
1140
|
for (; Ne() && e + oe !== 57; )
|
|
1141
1141
|
if (e + oe === 84 && et() === 47)
|
|
1142
1142
|
break;
|
|
1143
|
-
return "/*" + kr(t, Oe - 1) + "*" +
|
|
1143
|
+
return "/*" + kr(t, Oe - 1) + "*" + Cn(e === 47 ? e : Ne());
|
|
1144
1144
|
}
|
|
1145
1145
|
function Di(e) {
|
|
1146
1146
|
for (; !rn(et()); )
|
|
@@ -1151,26 +1151,26 @@ function Oi(e) {
|
|
|
1151
1151
|
return xi(hr("", null, null, null, [""], e = bi(e), 0, [0], e));
|
|
1152
1152
|
}
|
|
1153
1153
|
function hr(e, t, r, n, a, i, s, c, l) {
|
|
1154
|
-
for (var d = 0, f = 0, v = s, g = 0, h = 0, p = 0, m = 1,
|
|
1155
|
-
switch (p =
|
|
1154
|
+
for (var d = 0, f = 0, v = s, g = 0, h = 0, p = 0, m = 1, b = 1, x = 1, y = 0, k = "", D = a, O = i, E = n, _ = k; b; )
|
|
1155
|
+
switch (p = y, y = Ne()) {
|
|
1156
1156
|
case 40:
|
|
1157
|
-
if (p != 108 && ce(
|
|
1158
|
-
dr(
|
|
1157
|
+
if (p != 108 && ce(_, v - 1) == 58) {
|
|
1158
|
+
dr(_ += L(zr(y), "&", "&\f"), "&\f", Ba(d ? c[d - 1] : 0)) != -1 && (x = -1);
|
|
1159
1159
|
break;
|
|
1160
1160
|
}
|
|
1161
1161
|
case 34:
|
|
1162
1162
|
case 39:
|
|
1163
1163
|
case 91:
|
|
1164
|
-
|
|
1164
|
+
_ += zr(y);
|
|
1165
1165
|
break;
|
|
1166
1166
|
case 9:
|
|
1167
1167
|
case 10:
|
|
1168
1168
|
case 13:
|
|
1169
1169
|
case 32:
|
|
1170
|
-
|
|
1170
|
+
_ += wi(p);
|
|
1171
1171
|
break;
|
|
1172
1172
|
case 92:
|
|
1173
|
-
|
|
1173
|
+
_ += ji(fr() - 1, 7);
|
|
1174
1174
|
continue;
|
|
1175
1175
|
case 47:
|
|
1176
1176
|
switch (et()) {
|
|
@@ -1179,74 +1179,74 @@ function hr(e, t, r, n, a, i, s, c, l) {
|
|
|
1179
1179
|
Lt(Ni(Si(Ne(), fr()), t, r, l), l);
|
|
1180
1180
|
break;
|
|
1181
1181
|
default:
|
|
1182
|
-
|
|
1182
|
+
_ += "/";
|
|
1183
1183
|
}
|
|
1184
1184
|
break;
|
|
1185
1185
|
case 123 * m:
|
|
1186
|
-
c[d++] = Te(
|
|
1186
|
+
c[d++] = Te(_) * x;
|
|
1187
1187
|
case 125 * m:
|
|
1188
1188
|
case 59:
|
|
1189
1189
|
case 0:
|
|
1190
|
-
switch (
|
|
1190
|
+
switch (y) {
|
|
1191
1191
|
case 0:
|
|
1192
1192
|
case 125:
|
|
1193
|
-
|
|
1193
|
+
b = 0;
|
|
1194
1194
|
case 59 + f:
|
|
1195
|
-
|
|
1195
|
+
x == -1 && (_ = L(_, /\f/g, "")), h > 0 && Te(_) - v && Lt(h > 32 ? ea(_ + ";", n, r, v - 1, l) : ea(L(_, " ", "") + ";", n, r, v - 2, l), l);
|
|
1196
1196
|
break;
|
|
1197
1197
|
case 59:
|
|
1198
|
-
|
|
1198
|
+
_ += ";";
|
|
1199
1199
|
default:
|
|
1200
|
-
if (Lt(E = Zn(
|
|
1200
|
+
if (Lt(E = Zn(_, t, r, d, f, a, c, k, D = [], O = [], v, i), i), y === 123)
|
|
1201
1201
|
if (f === 0)
|
|
1202
|
-
hr(
|
|
1202
|
+
hr(_, t, E, E, D, i, v, c, O);
|
|
1203
1203
|
else
|
|
1204
|
-
switch (g === 99 && ce(
|
|
1204
|
+
switch (g === 99 && ce(_, 3) === 110 ? 100 : g) {
|
|
1205
1205
|
case 100:
|
|
1206
1206
|
case 108:
|
|
1207
1207
|
case 109:
|
|
1208
1208
|
case 115:
|
|
1209
|
-
hr(e, E, E, n && Lt(Zn(e, E, E, 0, 0, a, c,
|
|
1209
|
+
hr(e, E, E, n && Lt(Zn(e, E, E, 0, 0, a, c, k, a, D = [], v, O), O), a, O, v, c, n ? D : O);
|
|
1210
1210
|
break;
|
|
1211
1211
|
default:
|
|
1212
|
-
hr(
|
|
1212
|
+
hr(_, E, E, E, [""], O, 0, c, O);
|
|
1213
1213
|
}
|
|
1214
1214
|
}
|
|
1215
|
-
d = f = h = 0, m =
|
|
1215
|
+
d = f = h = 0, m = x = 1, k = _ = "", v = s;
|
|
1216
1216
|
break;
|
|
1217
1217
|
case 58:
|
|
1218
|
-
v = 1 + Te(
|
|
1218
|
+
v = 1 + Te(_), h = p;
|
|
1219
1219
|
default:
|
|
1220
1220
|
if (m < 1) {
|
|
1221
|
-
if (
|
|
1221
|
+
if (y == 123)
|
|
1222
1222
|
--m;
|
|
1223
|
-
else if (
|
|
1223
|
+
else if (y == 125 && m++ == 0 && yi() == 125)
|
|
1224
1224
|
continue;
|
|
1225
1225
|
}
|
|
1226
|
-
switch (
|
|
1226
|
+
switch (_ += Cn(y), y * m) {
|
|
1227
1227
|
case 38:
|
|
1228
|
-
|
|
1228
|
+
x = f > 0 ? 1 : (_ += "\f", -1);
|
|
1229
1229
|
break;
|
|
1230
1230
|
case 44:
|
|
1231
|
-
c[d++] = (Te(
|
|
1231
|
+
c[d++] = (Te(_) - 1) * x, x = 1;
|
|
1232
1232
|
break;
|
|
1233
1233
|
case 64:
|
|
1234
|
-
et() === 45 && (
|
|
1234
|
+
et() === 45 && (_ += zr(Ne())), g = et(), f = v = Te(k = _ += Di(fr())), y++;
|
|
1235
1235
|
break;
|
|
1236
1236
|
case 45:
|
|
1237
|
-
p === 45 && Te(
|
|
1237
|
+
p === 45 && Te(_) == 2 && (m = 0);
|
|
1238
1238
|
}
|
|
1239
1239
|
}
|
|
1240
1240
|
return i;
|
|
1241
1241
|
}
|
|
1242
1242
|
function Zn(e, t, r, n, a, i, s, c, l, d, f, v) {
|
|
1243
|
-
for (var g = a - 1, h = a === 0 ? i : [""], p = za(h), m = 0,
|
|
1244
|
-
for (var
|
|
1245
|
-
(
|
|
1243
|
+
for (var g = a - 1, h = a === 0 ? i : [""], p = za(h), m = 0, b = 0, x = 0; m < n; ++m)
|
|
1244
|
+
for (var y = 0, k = mt(e, g + 1, g = Ba(b = s[m])), D = e; y < p; ++y)
|
|
1245
|
+
(D = Ua(b > 0 ? h[y] + " " + k : L(k, /&\f/g, h[y]))) && (l[x++] = D);
|
|
1246
1246
|
return Er(e, t, r, a === 0 ? Or : c, l, d, f, v);
|
|
1247
1247
|
}
|
|
1248
1248
|
function Ni(e, t, r, n) {
|
|
1249
|
-
return Er(e, t, r, Va,
|
|
1249
|
+
return Er(e, t, r, Va, Cn(gi()), mt(e, 2, -2), 0, n);
|
|
1250
1250
|
}
|
|
1251
1251
|
function ea(e, t, r, n, a) {
|
|
1252
1252
|
return Er(e, t, r, kn, mt(e, 0, n), mt(e, n + 1, -1), n, a);
|
|
@@ -1282,13 +1282,13 @@ function Ha(e, t, r) {
|
|
|
1282
1282
|
case 3829:
|
|
1283
1283
|
return U + e + e;
|
|
1284
1284
|
case 4789:
|
|
1285
|
-
return
|
|
1285
|
+
return Ft + e + e;
|
|
1286
1286
|
case 5349:
|
|
1287
1287
|
case 4246:
|
|
1288
1288
|
case 4810:
|
|
1289
1289
|
case 6968:
|
|
1290
1290
|
case 2756:
|
|
1291
|
-
return U + e +
|
|
1291
|
+
return U + e + Ft + e + q + e + e;
|
|
1292
1292
|
case 5936:
|
|
1293
1293
|
switch (ce(e, t + 11)) {
|
|
1294
1294
|
case 114:
|
|
@@ -1364,7 +1364,7 @@ function Ha(e, t, r) {
|
|
|
1364
1364
|
if (ce(e, t + 4) !== 45)
|
|
1365
1365
|
break;
|
|
1366
1366
|
case 102:
|
|
1367
|
-
return L(e, /(.+:)(.+)-([^]+)/, "$1" + U + "$2-$3$1" +
|
|
1367
|
+
return L(e, /(.+:)(.+)-([^]+)/, "$1" + U + "$2-$3$1" + Ft + (ce(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
|
|
1368
1368
|
case 115:
|
|
1369
1369
|
return ~dr(e, "stretch", 0) ? Ha(L(e, "stretch", "fill-available"), t, r) + e : e;
|
|
1370
1370
|
}
|
|
@@ -1424,12 +1424,12 @@ function ki(e) {
|
|
|
1424
1424
|
return s;
|
|
1425
1425
|
};
|
|
1426
1426
|
}
|
|
1427
|
-
function
|
|
1427
|
+
function Ci(e) {
|
|
1428
1428
|
return function(t) {
|
|
1429
1429
|
t.root || (t = t.return) && e(t);
|
|
1430
1430
|
};
|
|
1431
1431
|
}
|
|
1432
|
-
function
|
|
1432
|
+
function _i(e, t, r, n) {
|
|
1433
1433
|
if (e.length > -1 && !e.return)
|
|
1434
1434
|
switch (e.type) {
|
|
1435
1435
|
case kn:
|
|
@@ -1443,10 +1443,10 @@ function Ci(e, t, r, n) {
|
|
|
1443
1443
|
switch (Me(a, n = /(::plac\w+|:read-\w+)/)) {
|
|
1444
1444
|
case ":read-only":
|
|
1445
1445
|
case ":read-write":
|
|
1446
|
-
dt(Ye(e, { props: [L(a, /:(read-\w+)/, ":" +
|
|
1446
|
+
dt(Ye(e, { props: [L(a, /:(read-\w+)/, ":" + Ft + "$1")] })), dt(Ye(e, { props: [a] })), tn(e, { props: Qn(r, n) });
|
|
1447
1447
|
break;
|
|
1448
1448
|
case "::placeholder":
|
|
1449
|
-
dt(Ye(e, { props: [L(a, /:(plac\w+)/, ":" + U + "input-$1")] })), dt(Ye(e, { props: [L(a, /:(plac\w+)/, ":" +
|
|
1449
|
+
dt(Ye(e, { props: [L(a, /:(plac\w+)/, ":" + U + "input-$1")] })), dt(Ye(e, { props: [L(a, /:(plac\w+)/, ":" + Ft + "$1")] })), dt(Ye(e, { props: [L(a, /:(plac\w+)/, q + "input-$1")] })), dt(Ye(e, { props: [a] })), tn(e, { props: Qn(r, n) });
|
|
1450
1450
|
break;
|
|
1451
1451
|
}
|
|
1452
1452
|
return "";
|
|
@@ -1501,7 +1501,7 @@ var Pi = {
|
|
|
1501
1501
|
strokeMiterlimit: 1,
|
|
1502
1502
|
strokeOpacity: 1,
|
|
1503
1503
|
strokeWidth: 1
|
|
1504
|
-
}, nt = typeof process < "u" && process.env !== void 0 && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled", qa = "active", Xa = "data-styled-version",
|
|
1504
|
+
}, nt = typeof process < "u" && process.env !== void 0 && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled", qa = "active", Xa = "data-styled-version", Cr = "6.1.18", _n = `/*!sc*/
|
|
1505
1505
|
`, br = typeof window < "u" && typeof document < "u", Ti = !!(typeof SC_DISABLE_SPEEDY == "boolean" ? SC_DISABLE_SPEEDY : typeof process < "u" && process.env !== void 0 && process.env.REACT_APP_SC_DISABLE_SPEEDY !== void 0 && process.env.REACT_APP_SC_DISABLE_SPEEDY !== "" ? process.env.REACT_APP_SC_DISABLE_SPEEDY !== "false" && process.env.REACT_APP_SC_DISABLE_SPEEDY : typeof process < "u" && process.env !== void 0 && process.env.SC_DISABLE_SPEEDY !== void 0 && process.env.SC_DISABLE_SPEEDY !== "" ? process.env.SC_DISABLE_SPEEDY !== "false" && process.env.SC_DISABLE_SPEEDY : process.env.NODE_ENV !== "production"), ta = /invalid hook call/i, or = /* @__PURE__ */ new Set(), Ri = function(e, t) {
|
|
1506
1506
|
if (process.env.NODE_ENV !== "production") {
|
|
1507
1507
|
var r = t ? ' with the id of "'.concat(t, '"') : "", n = "The component ".concat(e).concat(r, ` has been created dynamically.
|
|
@@ -1521,7 +1521,7 @@ See https://styled-components.com/docs/basics#define-styled-components-outside-o
|
|
|
1521
1521
|
console.error = a;
|
|
1522
1522
|
}
|
|
1523
1523
|
}
|
|
1524
|
-
},
|
|
1524
|
+
}, _r = Object.freeze([]), gt = Object.freeze({});
|
|
1525
1525
|
function Ai(e, t, r) {
|
|
1526
1526
|
return r === void 0 && (r = gt), e.theme !== r.theme && e.theme || t || r.theme;
|
|
1527
1527
|
}
|
|
@@ -1552,9 +1552,9 @@ function Qa(e) {
|
|
|
1552
1552
|
function Hr(e) {
|
|
1553
1553
|
return typeof e == "string" && (process.env.NODE_ENV === "production" || e.charAt(0) === e.charAt(0).toLowerCase());
|
|
1554
1554
|
}
|
|
1555
|
-
var Za = typeof Symbol == "function" && Symbol.for, eo = Za ? Symbol.for("react.memo") : 60115,
|
|
1555
|
+
var Za = typeof Symbol == "function" && Symbol.for, eo = Za ? Symbol.for("react.memo") : 60115, Wi = Za ? Symbol.for("react.forward_ref") : 60112, Fi = { childContextTypes: !0, contextType: !0, contextTypes: !0, defaultProps: !0, displayName: !0, getDefaultProps: !0, getDerivedStateFromError: !0, getDerivedStateFromProps: !0, mixins: !0, propTypes: !0, type: !0 }, Vi = { name: !0, length: !0, prototype: !0, caller: !0, callee: !0, arguments: !0, arity: !0 }, to = { $$typeof: !0, compare: !0, defaultProps: !0, displayName: !0, propTypes: !0, type: !0 }, Yi = ((Gr = {})[Wi] = { $$typeof: !0, render: !0, defaultProps: !0, displayName: !0, propTypes: !0 }, Gr[eo] = to, Gr);
|
|
1556
1556
|
function aa(e) {
|
|
1557
|
-
return ("type" in (t = e) && t.type.$$typeof) === eo ? to : "$$typeof" in e ? Yi[e.$$typeof] :
|
|
1557
|
+
return ("type" in (t = e) && t.type.$$typeof) === eo ? to : "$$typeof" in e ? Yi[e.$$typeof] : Fi;
|
|
1558
1558
|
var t;
|
|
1559
1559
|
}
|
|
1560
1560
|
var Bi = Object.defineProperty, Ui = Object.getOwnPropertyNames, oa = Object.getOwnPropertySymbols, zi = Object.getOwnPropertyDescriptor, Gi = Object.getPrototypeOf, ia = Object.prototype;
|
|
@@ -1681,7 +1681,7 @@ var Xi = function() {
|
|
|
1681
1681
|
}, e.prototype.getGroup = function(t) {
|
|
1682
1682
|
var r = "";
|
|
1683
1683
|
if (t >= this.length || this.groupSizes[t] === 0) return r;
|
|
1684
|
-
for (var n = this.groupSizes[t], a = this.indexOfGroup(t), i = a + n, s = a; s < i; s++) r += "".concat(this.tag.getRule(s)).concat(
|
|
1684
|
+
for (var n = this.groupSizes[t], a = this.indexOfGroup(t), i = a + n, s = a; s < i; s++) r += "".concat(this.tag.getRule(s)).concat(_n);
|
|
1685
1685
|
return r;
|
|
1686
1686
|
}, e;
|
|
1687
1687
|
}(), Ki = 1 << 30, vr = /* @__PURE__ */ new Map(), xr = /* @__PURE__ */ new Map(), mr = 1, sr = function(e) {
|
|
@@ -1692,10 +1692,10 @@ var Xi = function() {
|
|
|
1692
1692
|
return vr.set(e, t), xr.set(t, e), t;
|
|
1693
1693
|
}, Ji = function(e, t) {
|
|
1694
1694
|
mr = t + 1, vr.set(e, t), xr.set(t, e);
|
|
1695
|
-
}, Qi = "style[".concat(nt, "][").concat(Xa, '="').concat(
|
|
1695
|
+
}, Qi = "style[".concat(nt, "][").concat(Xa, '="').concat(Cr, '"]'), Zi = new RegExp("^".concat(nt, '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')), es = function(e, t, r) {
|
|
1696
1696
|
for (var n, a = r.split(","), i = 0, s = a.length; i < s; i++) (n = a[i]) && e.registerName(t, n);
|
|
1697
1697
|
}, ts = function(e, t) {
|
|
1698
|
-
for (var r, n = ((r = t.textContent) !== null && r !== void 0 ? r : "").split(
|
|
1698
|
+
for (var r, n = ((r = t.textContent) !== null && r !== void 0 ? r : "").split(_n), a = [], i = 0, s = n.length; i < s; i++) {
|
|
1699
1699
|
var c = n[i].trim();
|
|
1700
1700
|
if (c) {
|
|
1701
1701
|
var l = c.match(Zi);
|
|
@@ -1719,7 +1719,7 @@ var no = function(e) {
|
|
|
1719
1719
|
var l = Array.from(c.querySelectorAll("style[".concat(nt, "]")));
|
|
1720
1720
|
return l[l.length - 1];
|
|
1721
1721
|
}(r), i = a !== void 0 ? a.nextSibling : null;
|
|
1722
|
-
n.setAttribute(nt, qa), n.setAttribute(Xa,
|
|
1722
|
+
n.setAttribute(nt, qa), n.setAttribute(Xa, Cr);
|
|
1723
1723
|
var s = rs();
|
|
1724
1724
|
return s && n.setAttribute("nonce", s), r.insertBefore(n, i), n;
|
|
1725
1725
|
}, ns = function() {
|
|
@@ -1778,16 +1778,16 @@ var no = function(e) {
|
|
|
1778
1778
|
this.options = be(be({}, is), t), this.gs = r, this.names = new Map(n), this.server = !!t.isServer, !this.server && br && la && (la = !1, ca(this)), Tn(this, function() {
|
|
1779
1779
|
return function(i) {
|
|
1780
1780
|
for (var s = i.getTag(), c = s.length, l = "", d = function(v) {
|
|
1781
|
-
var g = function(
|
|
1782
|
-
return xr.get(
|
|
1781
|
+
var g = function(x) {
|
|
1782
|
+
return xr.get(x);
|
|
1783
1783
|
}(v);
|
|
1784
1784
|
if (g === void 0) return "continue";
|
|
1785
1785
|
var h = i.names.get(g), p = s.getGroup(v);
|
|
1786
1786
|
if (h === void 0 || !h.size || p.length === 0) return "continue";
|
|
1787
|
-
var m = "".concat(nt, ".g").concat(v, '[id="').concat(g, '"]'),
|
|
1788
|
-
h !== void 0 && h.forEach(function(
|
|
1789
|
-
|
|
1790
|
-
}), l += "".concat(p).concat(m, '{content:"').concat(
|
|
1787
|
+
var m = "".concat(nt, ".g").concat(v, '[id="').concat(g, '"]'), b = "";
|
|
1788
|
+
h !== void 0 && h.forEach(function(x) {
|
|
1789
|
+
x.length > 0 && (b += "".concat(x, ","));
|
|
1790
|
+
}), l += "".concat(p).concat(m, '{content:"').concat(b, '"}').concat(_n);
|
|
1791
1791
|
}, f = 0; f < c; f++) d(f);
|
|
1792
1792
|
return l;
|
|
1793
1793
|
}(a);
|
|
@@ -1833,20 +1833,20 @@ function oo(e, t) {
|
|
|
1833
1833
|
});
|
|
1834
1834
|
}
|
|
1835
1835
|
function ls(e) {
|
|
1836
|
-
var t, r, n, a = gt, i = a.options, s = i === void 0 ? gt : i, c = a.plugins, l = c === void 0 ?
|
|
1836
|
+
var t, r, n, a = gt, i = a.options, s = i === void 0 ? gt : i, c = a.plugins, l = c === void 0 ? _r : c, d = function(g, h, p) {
|
|
1837
1837
|
return p.startsWith(r) && p.endsWith(r) && p.replaceAll(r, "").length > 0 ? ".".concat(t) : g;
|
|
1838
1838
|
}, f = l.slice();
|
|
1839
1839
|
f.push(function(g) {
|
|
1840
1840
|
g.type === Or && g.value.includes("&") && (g.props[0] = g.props[0].replace(ss, r).replace(n, d));
|
|
1841
|
-
}), s.prefix && f.push(
|
|
1841
|
+
}), s.prefix && f.push(_i), f.push(Ei);
|
|
1842
1842
|
var v = function(g, h, p, m) {
|
|
1843
1843
|
h === void 0 && (h = ""), p === void 0 && (p = ""), m === void 0 && (m = "&"), t = m, r = h, n = new RegExp("\\".concat(r, "\\b"), "g");
|
|
1844
|
-
var
|
|
1845
|
-
s.namespace && (
|
|
1846
|
-
var
|
|
1847
|
-
return yr(
|
|
1848
|
-
return
|
|
1849
|
-
})))),
|
|
1844
|
+
var b = g.replace(cs, ""), x = Oi(p || h ? "".concat(p, " ").concat(h, " { ").concat(b, " }") : b);
|
|
1845
|
+
s.namespace && (x = oo(x, s.namespace));
|
|
1846
|
+
var y = [];
|
|
1847
|
+
return yr(x, ki(f.concat(Ci(function(k) {
|
|
1848
|
+
return y.push(k);
|
|
1849
|
+
})))), y;
|
|
1850
1850
|
};
|
|
1851
1851
|
return v.hash = l.length ? l.reduce(function(g, h) {
|
|
1852
1852
|
return h.name || jt(15), Qe(g, h.name);
|
|
@@ -1902,7 +1902,7 @@ function tt(e, t, r, n) {
|
|
|
1902
1902
|
return process.env.NODE_ENV === "production" || typeof a != "object" || Array.isArray(a) || a instanceof da || bt(a) || a === null || console.error("".concat(Qa(e), " is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")), tt(a, t, r, n);
|
|
1903
1903
|
}
|
|
1904
1904
|
var i;
|
|
1905
|
-
return e instanceof da ? r ? (e.inject(r, n), [e.getName(n)]) : [e] : bt(e) ? co(e) : Array.isArray(e) ? Array.prototype.concat.apply(
|
|
1905
|
+
return e instanceof da ? r ? (e.inject(r, n), [e.getName(n)]) : [e] : bt(e) ? co(e) : Array.isArray(e) ? Array.prototype.concat.apply(_r, e.map(function(s) {
|
|
1906
1906
|
return tt(s, t, r, n);
|
|
1907
1907
|
})) : [e.toString()];
|
|
1908
1908
|
}
|
|
@@ -1913,7 +1913,7 @@ function fs(e) {
|
|
|
1913
1913
|
}
|
|
1914
1914
|
return !0;
|
|
1915
1915
|
}
|
|
1916
|
-
var hs = Ja(
|
|
1916
|
+
var hs = Ja(Cr), vs = function() {
|
|
1917
1917
|
function e(t, r, n) {
|
|
1918
1918
|
this.rules = t, this.staticRulesId = "", this.isStatic = process.env.NODE_ENV === "production" && (n === void 0 || n.isStatic) && fs(t), this.componentId = r, this.baseHash = Qe(hs, r), this.baseStyle = n, ao.registerId(r);
|
|
1919
1919
|
}
|
|
@@ -1948,61 +1948,61 @@ var hs = Ja(_r), vs = function() {
|
|
|
1948
1948
|
lo.Consumer;
|
|
1949
1949
|
var qr = {}, ha = /* @__PURE__ */ new Set();
|
|
1950
1950
|
function ms(e, t, r) {
|
|
1951
|
-
var n = Pn(e), a = e, i = !Hr(e), s = t.attrs, c = s === void 0 ?
|
|
1952
|
-
var E = typeof
|
|
1951
|
+
var n = Pn(e), a = e, i = !Hr(e), s = t.attrs, c = s === void 0 ? _r : s, l = t.componentId, d = l === void 0 ? function(D, O) {
|
|
1952
|
+
var E = typeof D != "string" ? "sc" : ra(D);
|
|
1953
1953
|
qr[E] = (qr[E] || 0) + 1;
|
|
1954
|
-
var
|
|
1955
|
-
return O ? "".concat(O, "-").concat(
|
|
1956
|
-
}(t.displayName, t.parentComponentId) : l, f = t.displayName, v = f === void 0 ? function(
|
|
1957
|
-
return Hr(
|
|
1954
|
+
var _ = "".concat(E, "-").concat(Li(Cr + E + qr[E]));
|
|
1955
|
+
return O ? "".concat(O, "-").concat(_) : _;
|
|
1956
|
+
}(t.displayName, t.parentComponentId) : l, f = t.displayName, v = f === void 0 ? function(D) {
|
|
1957
|
+
return Hr(D) ? "styled.".concat(D) : "Styled(".concat(Qa(D), ")");
|
|
1958
1958
|
}(e) : f, g = t.displayName && t.componentId ? "".concat(ra(t.displayName), "-").concat(t.componentId) : t.componentId || d, h = n && a.attrs ? a.attrs.concat(c).filter(Boolean) : c, p = t.shouldForwardProp;
|
|
1959
1959
|
if (n && a.shouldForwardProp) {
|
|
1960
1960
|
var m = a.shouldForwardProp;
|
|
1961
1961
|
if (t.shouldForwardProp) {
|
|
1962
|
-
var
|
|
1963
|
-
p = function(
|
|
1964
|
-
return m(
|
|
1962
|
+
var b = t.shouldForwardProp;
|
|
1963
|
+
p = function(D, O) {
|
|
1964
|
+
return m(D, O) && b(D, O);
|
|
1965
1965
|
};
|
|
1966
1966
|
} else p = m;
|
|
1967
1967
|
}
|
|
1968
|
-
var
|
|
1969
|
-
function
|
|
1970
|
-
return function(E,
|
|
1971
|
-
var
|
|
1968
|
+
var x = new vs(r, g, n ? a.componentStyle : void 0);
|
|
1969
|
+
function y(D, O) {
|
|
1970
|
+
return function(E, _, W) {
|
|
1971
|
+
var w = E.attrs, S = E.componentStyle, $ = E.defaultProps, R = E.foldedComponentIds, A = E.styledComponentId, G = E.target, ie = Ae.useContext(lo), ne = ua(), xe = E.shouldForwardProp || ne.shouldForwardProp;
|
|
1972
1972
|
process.env.NODE_ENV !== "production" && Gn(A);
|
|
1973
|
-
var Ie = Ai(
|
|
1973
|
+
var Ie = Ai(_, ie, $) || gt, ee = function(ke, me, pe) {
|
|
1974
1974
|
for (var ue, ae = be(be({}, me), { className: void 0, theme: pe }), De = 0; De < ke.length; De += 1) {
|
|
1975
|
-
var
|
|
1976
|
-
for (var he in
|
|
1975
|
+
var Ce = yt(ue = ke[De]) ? ue(ae) : ue;
|
|
1976
|
+
for (var he in Ce) ae[he] = he === "className" ? Ze(ae[he], Ce[he]) : he === "style" ? be(be({}, ae[he]), Ce[he]) : Ce[he];
|
|
1977
1977
|
}
|
|
1978
1978
|
return me.className && (ae.className = Ze(ae.className, me.className)), ae;
|
|
1979
|
-
}(
|
|
1979
|
+
}(w, _, Ie), K = ee.as || G, le = {};
|
|
1980
1980
|
for (var Z in ee) ee[Z] === void 0 || Z[0] === "$" || Z === "as" || Z === "theme" && ee.theme === Ie || (Z === "forwardedAs" ? le.as = ee.forwardedAs : xe && !xe(Z, K) || (le[Z] = ee[Z], xe || process.env.NODE_ENV !== "development" || fi(Z) || ha.has(Z) || !an.has(K) || (ha.add(Z), console.warn('styled-components: it looks like an unknown prop "'.concat(Z, '" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));
|
|
1981
1981
|
var Se = function(ke, me) {
|
|
1982
1982
|
var pe = ua(), ue = ke.generateAndInjectStyles(me, pe.styleSheet, pe.stylis);
|
|
1983
1983
|
return process.env.NODE_ENV !== "production" && Gn(ue), ue;
|
|
1984
|
-
}(
|
|
1984
|
+
}(S, ee);
|
|
1985
1985
|
process.env.NODE_ENV !== "production" && E.warnTooManyClasses && E.warnTooManyClasses(Se);
|
|
1986
1986
|
var Ee = Ze(R, A);
|
|
1987
|
-
return Se && (Ee += " " + Se), ee.className && (Ee += " " + ee.className), le[Hr(K) && !an.has(K) ? "class" : "className"] = Ee,
|
|
1988
|
-
}(
|
|
1987
|
+
return Se && (Ee += " " + Se), ee.className && (Ee += " " + ee.className), le[Hr(K) && !an.has(K) ? "class" : "className"] = Ee, W && (le.ref = W), Bo(K, le);
|
|
1988
|
+
}(k, D, O);
|
|
1989
1989
|
}
|
|
1990
|
-
|
|
1991
|
-
var
|
|
1992
|
-
return
|
|
1990
|
+
y.displayName = v;
|
|
1991
|
+
var k = Ae.forwardRef(y);
|
|
1992
|
+
return k.attrs = h, k.componentStyle = x, k.displayName = v, k.shouldForwardProp = p, k.foldedComponentIds = n ? Ze(a.foldedComponentIds, a.styledComponentId) : "", k.styledComponentId = g, k.target = n ? a.target : e, Object.defineProperty(k, "defaultProps", { get: function() {
|
|
1993
1993
|
return this._foldedDefaultProps;
|
|
1994
|
-
}, set: function(
|
|
1994
|
+
}, set: function(D) {
|
|
1995
1995
|
this._foldedDefaultProps = n ? function(O) {
|
|
1996
|
-
for (var E = [],
|
|
1997
|
-
for (var
|
|
1996
|
+
for (var E = [], _ = 1; _ < arguments.length; _++) E[_ - 1] = arguments[_];
|
|
1997
|
+
for (var W = 0, w = E; W < w.length; W++) sn(O, w[W], !0);
|
|
1998
1998
|
return O;
|
|
1999
|
-
}({}, a.defaultProps,
|
|
2000
|
-
} }), process.env.NODE_ENV !== "production" && (Ri(v, g),
|
|
2001
|
-
var E = {},
|
|
2002
|
-
return function(
|
|
2003
|
-
if (!
|
|
2004
|
-
var
|
|
2005
|
-
console.warn("Over ".concat(200, " classes were generated for component ").concat(
|
|
1999
|
+
}({}, a.defaultProps, D) : D;
|
|
2000
|
+
} }), process.env.NODE_ENV !== "production" && (Ri(v, g), k.warnTooManyClasses = /* @__PURE__ */ function(D, O) {
|
|
2001
|
+
var E = {}, _ = !1;
|
|
2002
|
+
return function(W) {
|
|
2003
|
+
if (!_ && (E[W] = !0, Object.keys(E).length >= 200)) {
|
|
2004
|
+
var w = O ? ' with the id of "'.concat(O, '"') : "";
|
|
2005
|
+
console.warn("Over ".concat(200, " classes were generated for component ").concat(D).concat(w, `.
|
|
2006
2006
|
`) + `Consider using the attrs method, together with a style object for frequently changed styles.
|
|
2007
2007
|
Example:
|
|
2008
2008
|
const Component = styled.div.attrs(props => ({
|
|
@@ -2011,12 +2011,12 @@ Example:
|
|
|
2011
2011
|
},
|
|
2012
2012
|
}))\`width: 100%;\`
|
|
2013
2013
|
|
|
2014
|
-
<Component />`),
|
|
2014
|
+
<Component />`), _ = !0, E = {};
|
|
2015
2015
|
}
|
|
2016
2016
|
};
|
|
2017
|
-
}(v, g)), Tn(
|
|
2018
|
-
return ".".concat(
|
|
2019
|
-
}), i && ro(
|
|
2017
|
+
}(v, g)), Tn(k, function() {
|
|
2018
|
+
return ".".concat(k.styledComponentId);
|
|
2019
|
+
}), i && ro(k, e, { attrs: !0, componentStyle: !0, displayName: !0, foldedComponentIds: !0, shouldForwardProp: !0, styledComponentId: !0, target: !0 }), k;
|
|
2020
2020
|
}
|
|
2021
2021
|
function va(e, t) {
|
|
2022
2022
|
for (var r = [e[0]], n = 0, a = t.length; n < a; n += 1) r.push(t[n], e[n + 1]);
|
|
@@ -2027,7 +2027,7 @@ var ma = function(e) {
|
|
|
2027
2027
|
};
|
|
2028
2028
|
function pr(e) {
|
|
2029
2029
|
for (var t = [], r = 1; r < arguments.length; r++) t[r - 1] = arguments[r];
|
|
2030
|
-
if (yt(e) || bt(e)) return ma(tt(va(
|
|
2030
|
+
if (yt(e) || bt(e)) return ma(tt(va(_r, vt([e], t, !0))));
|
|
2031
2031
|
var n = e;
|
|
2032
2032
|
return t.length === 0 && n.length === 1 && typeof n[0] == "string" ? tt(n) : ma(tt(va(n, t)));
|
|
2033
2033
|
}
|
|
@@ -2076,7 +2076,7 @@ const ps = Rn.div`
|
|
|
2076
2076
|
id: i,
|
|
2077
2077
|
closeOverlay: s
|
|
2078
2078
|
}, c) => {
|
|
2079
|
-
const { activeOverlayId: l, setActiveOverlay: d } = li(), [f, v] =
|
|
2079
|
+
const { activeOverlayId: l, setActiveOverlay: d } = li(), [f, v] = F(a || !1), [g, h] = F(
|
|
2080
2080
|
r ?? { top: 0, left: 0 }
|
|
2081
2081
|
), p = re(null), m = Uo();
|
|
2082
2082
|
Dr(c, () => ({
|
|
@@ -2084,63 +2084,63 @@ const ps = Rn.div`
|
|
|
2084
2084
|
})), X(() => {
|
|
2085
2085
|
l !== m && v(!1);
|
|
2086
2086
|
}, [l, m]), X(() => {
|
|
2087
|
-
const
|
|
2088
|
-
var
|
|
2087
|
+
const y = () => {
|
|
2088
|
+
var k;
|
|
2089
2089
|
if (!t && r)
|
|
2090
2090
|
h(r);
|
|
2091
2091
|
else if (e) {
|
|
2092
|
-
const
|
|
2092
|
+
const D = e.getBoundingClientRect(), O = (k = p.current) == null ? void 0 : k.getBoundingClientRect(), { innerWidth: E, innerHeight: _ } = window;
|
|
2093
2093
|
if (O) {
|
|
2094
|
-
let
|
|
2095
|
-
const
|
|
2094
|
+
let W, w;
|
|
2095
|
+
const S = {
|
|
2096
2096
|
topRight: () => ({
|
|
2097
|
-
top:
|
|
2098
|
-
left:
|
|
2097
|
+
top: D.top - O.height,
|
|
2098
|
+
left: D.right - O.width
|
|
2099
2099
|
}),
|
|
2100
2100
|
topLeft: () => ({
|
|
2101
|
-
top:
|
|
2102
|
-
left:
|
|
2101
|
+
top: D.top - O.height,
|
|
2102
|
+
left: D.left
|
|
2103
2103
|
}),
|
|
2104
2104
|
bottomRight: () => ({
|
|
2105
|
-
top:
|
|
2106
|
-
left:
|
|
2105
|
+
top: D.bottom,
|
|
2106
|
+
left: D.right - O.width
|
|
2107
2107
|
}),
|
|
2108
2108
|
bottomLeft: () => ({
|
|
2109
|
-
top:
|
|
2110
|
-
left:
|
|
2109
|
+
top: D.bottom,
|
|
2110
|
+
left: D.left
|
|
2111
2111
|
}),
|
|
2112
2112
|
left: () => ({
|
|
2113
|
-
top:
|
|
2114
|
-
left:
|
|
2113
|
+
top: D.top + D.height / 2 - O.height / 2,
|
|
2114
|
+
left: D.left - O.width
|
|
2115
2115
|
}),
|
|
2116
2116
|
right: () => ({
|
|
2117
|
-
top:
|
|
2118
|
-
left:
|
|
2117
|
+
top: D.top + D.height / 2 - O.height / 2,
|
|
2118
|
+
left: D.right
|
|
2119
2119
|
})
|
|
2120
2120
|
};
|
|
2121
|
-
t &&
|
|
2121
|
+
t && S[t] ? { top: W, left: w } = S[t]() : (w = D.right, W = D.bottom, D.right + O.width > E && (w = D.left - O.width), D.bottom + O.height > _ && (W = D.top - O.height)), h({ top: W, left: w < 0 ? 0 : w });
|
|
2122
2122
|
}
|
|
2123
2123
|
}
|
|
2124
2124
|
};
|
|
2125
|
-
return f && (
|
|
2125
|
+
return f && (y(), window.addEventListener("resize", y)), () => window.removeEventListener("resize", y);
|
|
2126
2126
|
}, [e, f, t]);
|
|
2127
|
-
const
|
|
2127
|
+
const b = () => {
|
|
2128
2128
|
v(!0), d(m);
|
|
2129
|
-
},
|
|
2130
|
-
(
|
|
2131
|
-
|
|
2129
|
+
}, x = I(
|
|
2130
|
+
(y) => {
|
|
2131
|
+
y.stopPropagation(), v(!1), d(null), s && s(!1);
|
|
2132
2132
|
},
|
|
2133
2133
|
[s, d]
|
|
2134
2134
|
);
|
|
2135
2135
|
return X(() => {
|
|
2136
|
-
const
|
|
2137
|
-
p.current && !p.current.contains(
|
|
2136
|
+
const y = (k) => {
|
|
2137
|
+
p.current && !p.current.contains(k.target) && x(k);
|
|
2138
2138
|
};
|
|
2139
|
-
return f && document.addEventListener("mousedown",
|
|
2140
|
-
document.removeEventListener("mousedown",
|
|
2139
|
+
return f && document.addEventListener("mousedown", y), () => {
|
|
2140
|
+
document.removeEventListener("mousedown", y);
|
|
2141
2141
|
};
|
|
2142
|
-
}, [f,
|
|
2143
|
-
a &&
|
|
2142
|
+
}, [f, x]), X(() => {
|
|
2143
|
+
a && b();
|
|
2144
2144
|
}, [a]), f ? Nn.createPortal(
|
|
2145
2145
|
/* @__PURE__ */ o.jsx(ps, { ref: p, $top: g.top, $left: g.left, children: /* @__PURE__ */ o.jsxs(
|
|
2146
2146
|
"div",
|
|
@@ -2152,7 +2152,7 @@ const ps = Rn.div`
|
|
|
2152
2152
|
{
|
|
2153
2153
|
id: i ?? "",
|
|
2154
2154
|
className: "toggle-btn",
|
|
2155
|
-
onClick:
|
|
2155
|
+
onClick: x,
|
|
2156
2156
|
children: /* @__PURE__ */ o.jsx(V, { classIcon: "bi-x-lg" })
|
|
2157
2157
|
}
|
|
2158
2158
|
),
|
|
@@ -2174,7 +2174,7 @@ const ps = Rn.div`
|
|
|
2174
2174
|
}) => {
|
|
2175
2175
|
const c = (p) => {
|
|
2176
2176
|
p.preventDefault(), t && t(p);
|
|
2177
|
-
}, l = re(null), [d, f] =
|
|
2177
|
+
}, l = re(null), [d, f] = F(!1), v = I(
|
|
2178
2178
|
(p) => {
|
|
2179
2179
|
p.stopPropagation(), n && f(!d);
|
|
2180
2180
|
},
|
|
@@ -2188,8 +2188,8 @@ const ps = Rn.div`
|
|
|
2188
2188
|
{
|
|
2189
2189
|
classIcon: p.icon,
|
|
2190
2190
|
sizeIcon: je.LARGE,
|
|
2191
|
-
onClick: (
|
|
2192
|
-
|
|
2191
|
+
onClick: (b) => {
|
|
2192
|
+
b.stopPropagation(), h(), p.onClick && p.onClick(p);
|
|
2193
2193
|
},
|
|
2194
2194
|
title: p.label || ""
|
|
2195
2195
|
},
|
|
@@ -2228,11 +2228,11 @@ const ps = Rn.div`
|
|
|
2228
2228
|
position: a,
|
|
2229
2229
|
closeOverlay: f,
|
|
2230
2230
|
referenceElement: l.current,
|
|
2231
|
-
children: /* @__PURE__ */ o.jsx("div", { children: /* @__PURE__ */ o.jsx(
|
|
2231
|
+
children: /* @__PURE__ */ o.jsx("div", { children: /* @__PURE__ */ o.jsx(Wa, { className: "card-action-menu", items: g }) })
|
|
2232
2232
|
}
|
|
2233
2233
|
)
|
|
2234
2234
|
] });
|
|
2235
|
-
},
|
|
2235
|
+
}, Wl = ({
|
|
2236
2236
|
onFileSelected: e,
|
|
2237
2237
|
accept: t = "*",
|
|
2238
2238
|
buttonText: r = "Choisir un fichier",
|
|
@@ -2282,23 +2282,23 @@ const ps = Rn.div`
|
|
|
2282
2282
|
positionOverlay: a,
|
|
2283
2283
|
setOpenActions: i
|
|
2284
2284
|
}) => {
|
|
2285
|
-
const s = re(null), [c, l] =
|
|
2285
|
+
const s = re(null), [c, l] = F(
|
|
2286
2286
|
a
|
|
2287
|
-
), d = re(null), [f, v] =
|
|
2287
|
+
), d = re(null), [f, v] = F(t ?? !1);
|
|
2288
2288
|
X(() => {
|
|
2289
2289
|
t && v(t);
|
|
2290
2290
|
}, [t]);
|
|
2291
2291
|
const g = I(
|
|
2292
|
-
(m,
|
|
2293
|
-
e.length !== 0 && (m.preventDefault(), l("bottomRight"), i && i(
|
|
2292
|
+
(m, b) => {
|
|
2293
|
+
e.length !== 0 && (m.preventDefault(), l("bottomRight"), i && i(b));
|
|
2294
2294
|
},
|
|
2295
2295
|
[l, i]
|
|
2296
2296
|
), h = I(() => {
|
|
2297
2297
|
l(void 0), v(!1), i && i(!1);
|
|
2298
|
-
}, [v, l, i]), p = Re(() => e == null ? void 0 : e.filter((m) => m.type === "menu").map((m,
|
|
2299
|
-
let
|
|
2300
|
-
return m.setLabel && r && (
|
|
2301
|
-
id:
|
|
2298
|
+
}, [v, l, i]), p = Re(() => e == null ? void 0 : e.filter((m) => m.type === "menu").map((m, b) => {
|
|
2299
|
+
let x = m.label || "";
|
|
2300
|
+
return m.setLabel && r && (x = m.setLabel(r)), {
|
|
2301
|
+
id: b,
|
|
2302
2302
|
icon: m.icon,
|
|
2303
2303
|
name: m.label,
|
|
2304
2304
|
children: /* @__PURE__ */ o.jsx(
|
|
@@ -2307,12 +2307,12 @@ const ps = Rn.div`
|
|
|
2307
2307
|
classIcon: m.icon,
|
|
2308
2308
|
disabled: r && m.disabled ? m.disabled(r) : !1,
|
|
2309
2309
|
sizeIcon: je.LARGE,
|
|
2310
|
-
onClick: (
|
|
2311
|
-
|
|
2310
|
+
onClick: (y) => {
|
|
2311
|
+
y.stopPropagation(), h(), m.onClick && r && m.onClick(r);
|
|
2312
2312
|
},
|
|
2313
|
-
title:
|
|
2313
|
+
title: x
|
|
2314
2314
|
},
|
|
2315
|
-
|
|
2315
|
+
b
|
|
2316
2316
|
)
|
|
2317
2317
|
};
|
|
2318
2318
|
}), [e]);
|
|
@@ -2350,11 +2350,11 @@ const ps = Rn.div`
|
|
|
2350
2350
|
closeOverlay: h,
|
|
2351
2351
|
coordonnees: n,
|
|
2352
2352
|
referenceElement: d.current,
|
|
2353
|
-
children: /* @__PURE__ */ o.jsx("div", { children: /* @__PURE__ */ o.jsx(
|
|
2353
|
+
children: /* @__PURE__ */ o.jsx("div", { children: /* @__PURE__ */ o.jsx(Wa, { className: "card-action-menu", items: p }) })
|
|
2354
2354
|
}
|
|
2355
2355
|
)
|
|
2356
2356
|
] });
|
|
2357
|
-
},
|
|
2357
|
+
}, Fl = ({
|
|
2358
2358
|
item: e,
|
|
2359
2359
|
actions: t,
|
|
2360
2360
|
className: r,
|
|
@@ -2364,13 +2364,13 @@ const ps = Rn.div`
|
|
|
2364
2364
|
positionOverlay: s,
|
|
2365
2365
|
children: c
|
|
2366
2366
|
}) => {
|
|
2367
|
-
const [l, d] =
|
|
2368
|
-
|
|
2367
|
+
const [l, d] = F(!1), [f, v] = F(!1), [g, h] = F(), p = (b, x) => {
|
|
2368
|
+
b.stopPropagation(), a && a(x);
|
|
2369
2369
|
}, m = I(
|
|
2370
|
-
(
|
|
2371
|
-
if (
|
|
2370
|
+
(b, x) => {
|
|
2371
|
+
if (b.stopPropagation(), f)
|
|
2372
2372
|
return h(void 0), v(!1);
|
|
2373
|
-
|
|
2373
|
+
b.target.closest(".qte") || b.target.closest(".card-action-menu button") || b.target.closest(".card-actions") || (d(!l), n && b.button !== 2 ? n(x) : (h({ top: b.clientY, left: b.clientX }), v(!0)));
|
|
2374
2374
|
},
|
|
2375
2375
|
[
|
|
2376
2376
|
d,
|
|
@@ -2384,8 +2384,8 @@ const ps = Rn.div`
|
|
|
2384
2384
|
return /* @__PURE__ */ o.jsxs(
|
|
2385
2385
|
"div",
|
|
2386
2386
|
{
|
|
2387
|
-
onContextMenu: (
|
|
2388
|
-
onMouseDown: (
|
|
2387
|
+
onContextMenu: (b) => b.preventDefault(),
|
|
2388
|
+
onMouseDown: (b) => m(b, e),
|
|
2389
2389
|
className: `card ${r ?? ""} ${l ? "card--active" : ""} `,
|
|
2390
2390
|
children: [
|
|
2391
2391
|
c,
|
|
@@ -2403,7 +2403,7 @@ const ps = Rn.div`
|
|
|
2403
2403
|
"div",
|
|
2404
2404
|
{
|
|
2405
2405
|
className: "ml-2 cursor-pointer",
|
|
2406
|
-
onClick: (
|
|
2406
|
+
onClick: (b) => p(b, e),
|
|
2407
2407
|
children: /* @__PURE__ */ o.jsx(V, { classIcon: "bi-trash3" })
|
|
2408
2408
|
}
|
|
2409
2409
|
),
|
|
@@ -2433,7 +2433,7 @@ const ps = Rn.div`
|
|
|
2433
2433
|
xl: 5
|
|
2434
2434
|
}
|
|
2435
2435
|
}) => {
|
|
2436
|
-
const [a, i] =
|
|
2436
|
+
const [a, i] = F(0), s = e.length, [c, l] = F(1);
|
|
2437
2437
|
X(() => {
|
|
2438
2438
|
const p = () => {
|
|
2439
2439
|
const m = window.innerWidth;
|
|
@@ -2513,7 +2513,7 @@ const ps = Rn.div`
|
|
|
2513
2513
|
page: n = 1,
|
|
2514
2514
|
onClick: a
|
|
2515
2515
|
}) => {
|
|
2516
|
-
const i = Re(() => e ?? 9, [e]), s = Re(() => Math.max(1, t ?? 9), [t]), [c, l] =
|
|
2516
|
+
const i = Re(() => e ?? 9, [e]), s = Re(() => Math.max(1, t ?? 9), [t]), [c, l] = F(1);
|
|
2517
2517
|
X(() => {
|
|
2518
2518
|
l(n);
|
|
2519
2519
|
}, [n]);
|
|
@@ -2522,11 +2522,11 @@ const ps = Rn.div`
|
|
|
2522
2522
|
for (let g = 0; g < s; g++) {
|
|
2523
2523
|
const h = [];
|
|
2524
2524
|
for (let p = 0; p < i; p++) {
|
|
2525
|
-
const m = p + g * i,
|
|
2526
|
-
(
|
|
2525
|
+
const m = p + g * i, b = r == null ? void 0 : r.find(
|
|
2526
|
+
(x) => x.position === m + 1
|
|
2527
2527
|
);
|
|
2528
|
-
|
|
2529
|
-
/* @__PURE__ */ o.jsx(ys, { onClick: a, cell:
|
|
2528
|
+
b ? h.push(
|
|
2529
|
+
/* @__PURE__ */ o.jsx(ys, { onClick: a, cell: b }, `${g}-${p}`)
|
|
2530
2530
|
) : h.push(
|
|
2531
2531
|
/* @__PURE__ */ o.jsx("div", { className: "cell cell--empty" }, `${g}-${p}`)
|
|
2532
2532
|
);
|
|
@@ -2561,13 +2561,13 @@ const wr = Ue(
|
|
|
2561
2561
|
autoComplete: h,
|
|
2562
2562
|
tabIndex: p = 0,
|
|
2563
2563
|
step: m,
|
|
2564
|
-
checked:
|
|
2565
|
-
onChange:
|
|
2566
|
-
onBlur:
|
|
2567
|
-
onClick:
|
|
2568
|
-
handleKeyDown:
|
|
2564
|
+
checked: b,
|
|
2565
|
+
onChange: x,
|
|
2566
|
+
onBlur: y,
|
|
2567
|
+
onClick: k,
|
|
2568
|
+
handleKeyDown: D
|
|
2569
2569
|
}, O) => {
|
|
2570
|
-
const [E,
|
|
2570
|
+
const [E, _] = F(!1);
|
|
2571
2571
|
return /* @__PURE__ */ o.jsxs("div", { className: `input-container ${`input-container-${r}`} `, children: [
|
|
2572
2572
|
/* @__PURE__ */ o.jsx("input", { name: `hide-${t}`, type: "text", style: { display: "none" } }),
|
|
2573
2573
|
/* @__PURE__ */ o.jsx(
|
|
@@ -2589,12 +2589,12 @@ const wr = Ue(
|
|
|
2589
2589
|
autoFocus: f,
|
|
2590
2590
|
minLength: l,
|
|
2591
2591
|
maxLength: d,
|
|
2592
|
-
onChange:
|
|
2593
|
-
checked:
|
|
2594
|
-
onKeyDown:
|
|
2595
|
-
onBlur:
|
|
2596
|
-
onClick: (
|
|
2597
|
-
|
|
2592
|
+
onChange: x,
|
|
2593
|
+
checked: b,
|
|
2594
|
+
onKeyDown: D,
|
|
2595
|
+
onBlur: y,
|
|
2596
|
+
onClick: (W) => {
|
|
2597
|
+
W.stopPropagation(), k && k(W);
|
|
2598
2598
|
},
|
|
2599
2599
|
className: `input-field ${s ?? ""}`,
|
|
2600
2600
|
onInvalid: a
|
|
@@ -2603,7 +2603,7 @@ const wr = Ue(
|
|
|
2603
2603
|
r === Be.PASSWORD && /* @__PURE__ */ o.jsx(
|
|
2604
2604
|
"div",
|
|
2605
2605
|
{
|
|
2606
|
-
onClick: () =>
|
|
2606
|
+
onClick: () => _(!E),
|
|
2607
2607
|
className: "input-password-icon",
|
|
2608
2608
|
children: /* @__PURE__ */ o.jsx(V, { classIcon: E ? "bi-eye-slash" : "bi-eye" })
|
|
2609
2609
|
}
|
|
@@ -2685,50 +2685,52 @@ const pa = ({ display: e, full: t, message: r }) => /* @__PURE__ */ o.jsxs(o.Fra
|
|
|
2685
2685
|
options: r,
|
|
2686
2686
|
className: n,
|
|
2687
2687
|
disabled: a,
|
|
2688
|
-
|
|
2689
|
-
|
|
2690
|
-
|
|
2691
|
-
|
|
2692
|
-
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
|
|
2688
|
+
style: i,
|
|
2689
|
+
multiple: s = !1,
|
|
2690
|
+
required: c = !1,
|
|
2691
|
+
defaultValue: l,
|
|
2692
|
+
name: d,
|
|
2693
|
+
onChange: f,
|
|
2694
|
+
onChangeMultiple: v,
|
|
2695
|
+
value: g,
|
|
2696
|
+
placeholder: h
|
|
2696
2697
|
}) => {
|
|
2697
|
-
const
|
|
2698
|
-
let
|
|
2699
|
-
|
|
2700
|
-
|
|
2701
|
-
(
|
|
2702
|
-
),
|
|
2703
|
-
},
|
|
2704
|
-
|
|
2705
|
-
}, [
|
|
2698
|
+
const p = re({}), m = (x) => {
|
|
2699
|
+
let y;
|
|
2700
|
+
s ? (y = Array.from(
|
|
2701
|
+
x.target.selectedOptions,
|
|
2702
|
+
(k) => k.value
|
|
2703
|
+
), v && v(y)) : (y = x.target.value, f && f(y));
|
|
2704
|
+
}, b = I(() => {
|
|
2705
|
+
f && f("");
|
|
2706
|
+
}, [f]);
|
|
2706
2707
|
return /* @__PURE__ */ o.jsxs("div", { id: e, className: `select-container ${n || ""}`, children: [
|
|
2707
2708
|
t && /* @__PURE__ */ o.jsx("label", { htmlFor: `select-${e}`, className: "select-container-label", children: t }),
|
|
2708
2709
|
/* @__PURE__ */ o.jsxs(
|
|
2709
2710
|
"select",
|
|
2710
2711
|
{
|
|
2711
2712
|
defaultValue: "",
|
|
2712
|
-
required:
|
|
2713
|
-
name:
|
|
2713
|
+
required: c,
|
|
2714
|
+
name: d,
|
|
2715
|
+
style: i,
|
|
2714
2716
|
disabled: a,
|
|
2715
2717
|
id: `select-${e}`,
|
|
2716
2718
|
className: "select-container-select",
|
|
2717
|
-
value:
|
|
2718
|
-
onChange:
|
|
2719
|
-
multiple:
|
|
2720
|
-
ref: (
|
|
2719
|
+
value: g ?? l ?? (s ? [] : ""),
|
|
2720
|
+
onChange: m,
|
|
2721
|
+
multiple: s,
|
|
2722
|
+
ref: (x) => p.current[e ?? "select"] = x,
|
|
2721
2723
|
children: [
|
|
2722
|
-
|
|
2723
|
-
r.map((
|
|
2724
|
+
h && !l && !s && /* @__PURE__ */ o.jsx("option", { selected: !0, disabled: !0, hidden: !0, value: "", children: h }),
|
|
2725
|
+
r.map((x, y) => /* @__PURE__ */ o.jsx("option", { value: x.value, children: x.label }, y))
|
|
2724
2726
|
]
|
|
2725
2727
|
}
|
|
2726
2728
|
),
|
|
2727
|
-
|
|
2729
|
+
g !== "" && h && /* @__PURE__ */ o.jsx(
|
|
2728
2730
|
"div",
|
|
2729
2731
|
{
|
|
2730
2732
|
className: "clear-btn",
|
|
2731
|
-
onClick:
|
|
2733
|
+
onClick: b,
|
|
2732
2734
|
"aria-label": "Réinitialiser",
|
|
2733
2735
|
children: /* @__PURE__ */ o.jsx(V, { classIcon: "bi-x" })
|
|
2734
2736
|
}
|
|
@@ -2755,22 +2757,33 @@ const pa = ({ display: e, full: t, message: r }) => /* @__PURE__ */ o.jsxs(o.Fra
|
|
|
2755
2757
|
alt: e.imageAlt ? e.imageAlt(r) : "",
|
|
2756
2758
|
style: e.imageStyle
|
|
2757
2759
|
}
|
|
2758
|
-
) : /* @__PURE__ */ o.jsx(V, { classIcon: "bi-image" }) : e.editable ? e.type === "select" ? /* @__PURE__ */ o.jsx(
|
|
2760
|
+
) : /* @__PURE__ */ o.jsx(V, { classIcon: "bi-image" }) : e.editable ? e.type === "select" ? /* @__PURE__ */ o.jsx("div", { onClick: (c) => c.stopPropagation(), children: /* @__PURE__ */ o.jsx(
|
|
2759
2761
|
fo,
|
|
2760
2762
|
{
|
|
2763
|
+
style: {
|
|
2764
|
+
minWidth: e.minWidth,
|
|
2765
|
+
maxWidth: e.maxWidth,
|
|
2766
|
+
width: e.width
|
|
2767
|
+
},
|
|
2761
2768
|
options: e.options ?? [],
|
|
2762
2769
|
value: n,
|
|
2763
2770
|
onChange: (c) => {
|
|
2764
2771
|
e.onEdit && e.onEdit(c, r);
|
|
2765
2772
|
}
|
|
2766
2773
|
}
|
|
2767
|
-
) : /* @__PURE__ */ o.jsx(
|
|
2774
|
+
) }) : /* @__PURE__ */ o.jsx(
|
|
2768
2775
|
"input",
|
|
2769
2776
|
{
|
|
2770
2777
|
type: e.type,
|
|
2771
2778
|
value: n,
|
|
2772
2779
|
step: "0.01",
|
|
2773
|
-
style: {
|
|
2780
|
+
style: {
|
|
2781
|
+
textAlign: e.align || "left",
|
|
2782
|
+
minWidth: e.minWidth,
|
|
2783
|
+
maxWidth: e.maxWidth,
|
|
2784
|
+
width: e.width
|
|
2785
|
+
},
|
|
2786
|
+
onClick: (c) => c.stopPropagation(),
|
|
2774
2787
|
onChange: (c) => {
|
|
2775
2788
|
e.onEdit && e.onEdit(c.target.value, r);
|
|
2776
2789
|
}
|
|
@@ -2797,58 +2810,61 @@ function Bl(e) {
|
|
|
2797
2810
|
emptyMessage: h,
|
|
2798
2811
|
hasMore: p,
|
|
2799
2812
|
onSelectionChange: m,
|
|
2800
|
-
hideToggleAll:
|
|
2801
|
-
limitSelect:
|
|
2802
|
-
getRowId:
|
|
2803
|
-
} = e,
|
|
2813
|
+
hideToggleAll: b = !1,
|
|
2814
|
+
limitSelect: x = void 0,
|
|
2815
|
+
getRowId: y
|
|
2816
|
+
} = e, k = re(null), [D, O] = F(
|
|
2804
2817
|
/* @__PURE__ */ new Set()
|
|
2805
|
-
), E = I((
|
|
2806
|
-
|
|
2807
|
-
|
|
2808
|
-
|
|
2818
|
+
), E = I((S) => {
|
|
2819
|
+
const $ = S instanceof Element ? S : S instanceof Node ? S.parentElement : null;
|
|
2820
|
+
return $ ? !!$.closest(
|
|
2821
|
+
"input,button,a,select,textarea,label,option,[role='button'],[role='checkbox'],[role='option'],[contenteditable='true'],[data-stop-row-click='true']"
|
|
2822
|
+
) : !1;
|
|
2823
|
+
}, []), _ = I(() => {
|
|
2824
|
+
if (D.size === s.length)
|
|
2809
2825
|
O(/* @__PURE__ */ new Set()), m == null || m([]);
|
|
2810
2826
|
else {
|
|
2811
|
-
let
|
|
2812
|
-
(R) =>
|
|
2827
|
+
let S = s.map(
|
|
2828
|
+
(R) => y ? y(R) : R.id ?? R
|
|
2813
2829
|
);
|
|
2814
|
-
|
|
2815
|
-
const
|
|
2816
|
-
O(
|
|
2830
|
+
x && S.length > x && (S = S.slice(0, x));
|
|
2831
|
+
const $ = new Set(S);
|
|
2832
|
+
O($), m == null || m(
|
|
2817
2833
|
s.filter(
|
|
2818
|
-
(R) =>
|
|
2834
|
+
(R) => $.has(y ? y(R) : R.id ?? R)
|
|
2819
2835
|
)
|
|
2820
2836
|
);
|
|
2821
2837
|
}
|
|
2822
|
-
}, [s, m,
|
|
2823
|
-
(
|
|
2838
|
+
}, [s, m, x, y, D.size]), W = I(
|
|
2839
|
+
(S, $) => {
|
|
2824
2840
|
var A, G;
|
|
2825
|
-
|
|
2841
|
+
S.stopPropagation(), !(E(S.target) || typeof window < "u" && (G = (A = window.getSelection) == null ? void 0 : A.call(window)) != null && G.toString().trim()) && f && (f == null || f($));
|
|
2826
2842
|
},
|
|
2827
2843
|
[E, f]
|
|
2828
|
-
),
|
|
2829
|
-
(
|
|
2830
|
-
|
|
2831
|
-
const R =
|
|
2844
|
+
), w = I(
|
|
2845
|
+
(S, $) => {
|
|
2846
|
+
S.stopPropagation();
|
|
2847
|
+
const R = y ? y($) : $.id ?? $, A = new Set(D);
|
|
2832
2848
|
if (A.has(R))
|
|
2833
2849
|
A.delete(R);
|
|
2834
2850
|
else {
|
|
2835
|
-
if (
|
|
2851
|
+
if (x && A.size >= x)
|
|
2836
2852
|
return;
|
|
2837
2853
|
A.add(R);
|
|
2838
2854
|
}
|
|
2839
2855
|
O(A);
|
|
2840
2856
|
const G = s.filter(
|
|
2841
|
-
(ie) => A.has(
|
|
2857
|
+
(ie) => A.has(y ? y(ie) : ie.id ?? ie)
|
|
2842
2858
|
);
|
|
2843
2859
|
m == null || m(G);
|
|
2844
2860
|
},
|
|
2845
|
-
[s,
|
|
2861
|
+
[s, y, x, m, D]
|
|
2846
2862
|
);
|
|
2847
2863
|
return X(() => {
|
|
2848
2864
|
if (!g || !p) return;
|
|
2849
|
-
const
|
|
2850
|
-
(
|
|
2851
|
-
|
|
2865
|
+
const S = new IntersectionObserver(
|
|
2866
|
+
($) => {
|
|
2867
|
+
$[0].isIntersecting && g();
|
|
2852
2868
|
},
|
|
2853
2869
|
{
|
|
2854
2870
|
root: null,
|
|
@@ -2856,8 +2872,8 @@ function Bl(e) {
|
|
|
2856
2872
|
threshold: 1
|
|
2857
2873
|
}
|
|
2858
2874
|
);
|
|
2859
|
-
return
|
|
2860
|
-
|
|
2875
|
+
return k.current && S.observe(k.current), () => {
|
|
2876
|
+
k.current && S.unobserve(k.current);
|
|
2861
2877
|
};
|
|
2862
2878
|
}, [g, p]), /* @__PURE__ */ o.jsxs("div", { className: "data-table-container", children: [
|
|
2863
2879
|
r && /* @__PURE__ */ o.jsx("h2", { className: "mb-2", children: r }),
|
|
@@ -2867,7 +2883,7 @@ function Bl(e) {
|
|
|
2867
2883
|
m && /* @__PURE__ */ o.jsx(
|
|
2868
2884
|
"th",
|
|
2869
2885
|
{
|
|
2870
|
-
className: `select-cell ${
|
|
2886
|
+
className: `select-cell ${b ? "hidden" : ""}`,
|
|
2871
2887
|
style: { width: "20px", textAlign: "center" },
|
|
2872
2888
|
children: /* @__PURE__ */ o.jsx(
|
|
2873
2889
|
wr,
|
|
@@ -2875,20 +2891,20 @@ function Bl(e) {
|
|
|
2875
2891
|
id: `select-th-${t}`,
|
|
2876
2892
|
name: `select-th-${t}`,
|
|
2877
2893
|
type: Be.CHECKBOX,
|
|
2878
|
-
checked: s.length > 0 &&
|
|
2879
|
-
onChange:
|
|
2894
|
+
checked: s.length > 0 && D.size === s.length,
|
|
2895
|
+
onChange: _
|
|
2880
2896
|
}
|
|
2881
2897
|
)
|
|
2882
2898
|
}
|
|
2883
2899
|
),
|
|
2884
|
-
l.map((
|
|
2900
|
+
l.map((S, $) => /* @__PURE__ */ o.jsx(
|
|
2885
2901
|
xs,
|
|
2886
2902
|
{
|
|
2887
|
-
column:
|
|
2888
|
-
idx:
|
|
2903
|
+
column: S,
|
|
2904
|
+
idx: $,
|
|
2889
2905
|
onColumnClick: v
|
|
2890
2906
|
},
|
|
2891
|
-
|
|
2907
|
+
$
|
|
2892
2908
|
)),
|
|
2893
2909
|
c.length > 0 && /* @__PURE__ */ o.jsx(
|
|
2894
2910
|
"th",
|
|
@@ -2910,11 +2926,11 @@ function Bl(e) {
|
|
|
2910
2926
|
children: /* @__PURE__ */ o.jsx("div", { className: "mt-3", children: /* @__PURE__ */ o.jsx(pa, { display: d }) })
|
|
2911
2927
|
}
|
|
2912
2928
|
) }) : /* @__PURE__ */ o.jsx(o.Fragment, {}),
|
|
2913
|
-
!d && s.map((
|
|
2929
|
+
!d && s.map((S, $) => /* @__PURE__ */ o.jsxs(
|
|
2914
2930
|
"tr",
|
|
2915
2931
|
{
|
|
2916
|
-
className:
|
|
2917
|
-
onClick: (R) =>
|
|
2932
|
+
className: $ % 2 === 0 ? "even" : "odd",
|
|
2933
|
+
onClick: (R) => W == null ? void 0 : W(R, S),
|
|
2918
2934
|
children: [
|
|
2919
2935
|
m && /* @__PURE__ */ o.jsx(
|
|
2920
2936
|
"td",
|
|
@@ -2925,33 +2941,33 @@ function Bl(e) {
|
|
|
2925
2941
|
children: /* @__PURE__ */ o.jsx(
|
|
2926
2942
|
wr,
|
|
2927
2943
|
{
|
|
2928
|
-
id: `select-row-${
|
|
2929
|
-
name: `select-row-${
|
|
2944
|
+
id: `select-row-${$}`,
|
|
2945
|
+
name: `select-row-${$}`,
|
|
2930
2946
|
type: Be.CHECKBOX,
|
|
2931
|
-
disabled:
|
|
2932
|
-
|
|
2947
|
+
disabled: x !== void 0 && D.size >= x && !D.has(
|
|
2948
|
+
y ? y(S) : S.id ?? S
|
|
2933
2949
|
),
|
|
2934
|
-
checked:
|
|
2935
|
-
|
|
2950
|
+
checked: D.has(
|
|
2951
|
+
y ? y(S) : S.id ?? S
|
|
2936
2952
|
),
|
|
2937
|
-
onChange: (R) =>
|
|
2953
|
+
onChange: (R) => w(R, S)
|
|
2938
2954
|
}
|
|
2939
2955
|
)
|
|
2940
2956
|
}
|
|
2941
2957
|
),
|
|
2942
|
-
l.map((R, A) => /* @__PURE__ */ o.jsx(js, { column: R, idx: A, row:
|
|
2958
|
+
l.map((R, A) => /* @__PURE__ */ o.jsx(js, { column: R, idx: A, row: S }, A)),
|
|
2943
2959
|
c.length > 0 && /* @__PURE__ */ o.jsx("td", { align: "right", onClick: (R) => R.stopPropagation(), children: /* @__PURE__ */ o.jsx("div", { className: "d-flex align-items-center justify-content-end", children: c.map((R, A) => /* @__PURE__ */ o.jsx(
|
|
2944
2960
|
bs,
|
|
2945
2961
|
{
|
|
2946
2962
|
action: R,
|
|
2947
|
-
row:
|
|
2963
|
+
row: S,
|
|
2948
2964
|
index: A
|
|
2949
2965
|
},
|
|
2950
2966
|
A
|
|
2951
2967
|
)) }) })
|
|
2952
2968
|
]
|
|
2953
2969
|
},
|
|
2954
|
-
|
|
2970
|
+
$
|
|
2955
2971
|
)),
|
|
2956
2972
|
!d && s.length === 0 && /* @__PURE__ */ o.jsx(
|
|
2957
2973
|
ws,
|
|
@@ -2964,7 +2980,7 @@ function Bl(e) {
|
|
|
2964
2980
|
] })
|
|
2965
2981
|
] }),
|
|
2966
2982
|
a,
|
|
2967
|
-
p && /* @__PURE__ */ o.jsx("div", { ref:
|
|
2983
|
+
p && /* @__PURE__ */ o.jsx("div", { ref: k, className: "infinite-scroll-loader", children: /* @__PURE__ */ o.jsx(pa, { display: !0 }) })
|
|
2968
2984
|
] });
|
|
2969
2985
|
}
|
|
2970
2986
|
function ho(e) {
|
|
@@ -2991,16 +3007,16 @@ const Ss = (e, t, r, n) => {
|
|
|
2991
3007
|
const r = Object.getPrototypeOf(t);
|
|
2992
3008
|
r !== Object.getPrototypeOf(e) && Object.setPrototypeOf(e, r);
|
|
2993
3009
|
}, Ns = (e, t) => `/* Wrapped ${e}*/
|
|
2994
|
-
${t}`, Es = Object.getOwnPropertyDescriptor(Function.prototype, "toString"), ks = Object.getOwnPropertyDescriptor(Function.prototype.toString, "name"),
|
|
3010
|
+
${t}`, Es = Object.getOwnPropertyDescriptor(Function.prototype, "toString"), ks = Object.getOwnPropertyDescriptor(Function.prototype.toString, "name"), Cs = (e, t, r) => {
|
|
2995
3011
|
const n = r === "" ? "" : `with ${r.trim()}() `, a = Ns.bind(null, n, t.toString());
|
|
2996
3012
|
Object.defineProperty(a, "name", ks), Object.defineProperty(e, "toString", { ...Es, value: a });
|
|
2997
|
-
},
|
|
3013
|
+
}, _s = (e, t, { ignoreNonConfigurable: r = !1 } = {}) => {
|
|
2998
3014
|
const { name: n } = e;
|
|
2999
3015
|
for (const a of Reflect.ownKeys(t))
|
|
3000
3016
|
Ss(e, t, a, r);
|
|
3001
|
-
return Os(e, t),
|
|
3017
|
+
return Os(e, t), Cs(e, t, n), e;
|
|
3002
3018
|
};
|
|
3003
|
-
var Ps =
|
|
3019
|
+
var Ps = _s, un = { exports: {} }, Ts = () => {
|
|
3004
3020
|
const e = {};
|
|
3005
3021
|
return e.promise = new Promise((t, r) => {
|
|
3006
3022
|
e.resolve = t, e.reject = r;
|
|
@@ -3012,20 +3028,20 @@ var Ps = Cs, un = { exports: {} }, Ts = () => {
|
|
|
3012
3028
|
function g(m) {
|
|
3013
3029
|
try {
|
|
3014
3030
|
p(d.next(m));
|
|
3015
|
-
} catch (
|
|
3016
|
-
v(
|
|
3031
|
+
} catch (b) {
|
|
3032
|
+
v(b);
|
|
3017
3033
|
}
|
|
3018
3034
|
}
|
|
3019
3035
|
function h(m) {
|
|
3020
3036
|
try {
|
|
3021
3037
|
p(d.throw(m));
|
|
3022
|
-
} catch (
|
|
3023
|
-
v(
|
|
3038
|
+
} catch (b) {
|
|
3039
|
+
v(b);
|
|
3024
3040
|
}
|
|
3025
3041
|
}
|
|
3026
3042
|
function p(m) {
|
|
3027
|
-
m.done ? f(m.value) : new l(function(
|
|
3028
|
-
|
|
3043
|
+
m.done ? f(m.value) : new l(function(b) {
|
|
3044
|
+
b(m.value);
|
|
3029
3045
|
}).then(g, h);
|
|
3030
3046
|
}
|
|
3031
3047
|
p((d = d.apply(s, c || [])).next());
|
|
@@ -3042,14 +3058,14 @@ var Ps = Cs, un = { exports: {} }, Ts = () => {
|
|
|
3042
3058
|
return;
|
|
3043
3059
|
const p = (m) => r(this, void 0, void 0, function* () {
|
|
3044
3060
|
f = a.default();
|
|
3045
|
-
const
|
|
3046
|
-
if (
|
|
3061
|
+
const b = m[1][c] - Date.now();
|
|
3062
|
+
if (b <= 0) {
|
|
3047
3063
|
s.delete(m[0]), f.resolve();
|
|
3048
3064
|
return;
|
|
3049
3065
|
}
|
|
3050
3066
|
return l = m[0], d = setTimeout(() => {
|
|
3051
3067
|
s.delete(m[0]), f && f.resolve();
|
|
3052
|
-
},
|
|
3068
|
+
}, b), typeof d.unref == "function" && d.unref(), f.promise;
|
|
3053
3069
|
});
|
|
3054
3070
|
try {
|
|
3055
3071
|
for (const m of s)
|
|
@@ -3062,8 +3078,8 @@ var Ps = Cs, un = { exports: {} }, Ts = () => {
|
|
|
3062
3078
|
}, h = s.set.bind(s);
|
|
3063
3079
|
return s.set = (p, m) => {
|
|
3064
3080
|
s.has(p) && s.delete(p);
|
|
3065
|
-
const
|
|
3066
|
-
return l && l === p && g(), v(),
|
|
3081
|
+
const b = h(p, m);
|
|
3082
|
+
return l && l === p && g(), v(), b;
|
|
3067
3083
|
}, v(), s;
|
|
3068
3084
|
}
|
|
3069
3085
|
t.default = i, e.exports = i, e.exports.default = i;
|
|
@@ -3113,7 +3129,7 @@ function Ms(e) {
|
|
|
3113
3129
|
function Ls(e, t, r) {
|
|
3114
3130
|
return r.indexOf(e) === t;
|
|
3115
3131
|
}
|
|
3116
|
-
function
|
|
3132
|
+
function Ws(e) {
|
|
3117
3133
|
return e.toLowerCase() === e;
|
|
3118
3134
|
}
|
|
3119
3135
|
function ga(e) {
|
|
@@ -3132,12 +3148,12 @@ function dn(e) {
|
|
|
3132
3148
|
var n = e.split("@")[0], r = n === void 0 ? "" : n;
|
|
3133
3149
|
return dn(r);
|
|
3134
3150
|
}
|
|
3135
|
-
if (e.indexOf("-") === -1 || !
|
|
3151
|
+
if (e.indexOf("-") === -1 || !Ws(e))
|
|
3136
3152
|
return e;
|
|
3137
3153
|
var a = e.split("-"), i = a[0], s = a[1], c = s === void 0 ? "" : s;
|
|
3138
3154
|
return "".concat(i, "-").concat(c.toUpperCase());
|
|
3139
3155
|
}
|
|
3140
|
-
function
|
|
3156
|
+
function Fs(e) {
|
|
3141
3157
|
var t = e === void 0 ? {} : e, r = t.useFallbackLocale, n = r === void 0 ? !0 : r, a = t.fallbackLocale, i = a === void 0 ? "en-US" : a, s = [];
|
|
3142
3158
|
if (typeof navigator < "u") {
|
|
3143
3159
|
for (var c = navigator.languages || [], l = [], d = 0, f = c; d < f.length; d++) {
|
|
@@ -3149,12 +3165,12 @@ function Ws(e) {
|
|
|
3149
3165
|
}
|
|
3150
3166
|
return n && s.push(i), s.filter(Ms).map(dn).filter(Ls);
|
|
3151
3167
|
}
|
|
3152
|
-
var Vs = mo(
|
|
3168
|
+
var Vs = mo(Fs, { cacheKey: JSON.stringify });
|
|
3153
3169
|
function Ys(e) {
|
|
3154
3170
|
return Vs(e)[0] || null;
|
|
3155
3171
|
}
|
|
3156
3172
|
var po = mo(Ys, { cacheKey: JSON.stringify });
|
|
3157
|
-
function
|
|
3173
|
+
function We(e, t, r) {
|
|
3158
3174
|
return function(a, i) {
|
|
3159
3175
|
i === void 0 && (i = r);
|
|
3160
3176
|
var s = e(a) + i;
|
|
@@ -3195,17 +3211,17 @@ function St(e) {
|
|
|
3195
3211
|
var t = Q(e), r = t + (-t + 1) % 100, n = /* @__PURE__ */ new Date();
|
|
3196
3212
|
return n.setFullYear(r, 0, 1), n.setHours(0, 0, 0, 0), n;
|
|
3197
3213
|
}
|
|
3198
|
-
var Bs =
|
|
3214
|
+
var Bs = We(Q, St, -100), go = We(Q, St, 100), In = Bt(go), Us = We(Q, In, -100), yo = Ut(St, In);
|
|
3199
3215
|
function Ge(e) {
|
|
3200
3216
|
var t = Q(e), r = t + (-t + 1) % 10, n = /* @__PURE__ */ new Date();
|
|
3201
3217
|
return n.setFullYear(r, 0, 1), n.setHours(0, 0, 0, 0), n;
|
|
3202
3218
|
}
|
|
3203
|
-
var bo =
|
|
3219
|
+
var bo = We(Q, Ge, -10), $n = We(Q, Ge, 10), Rr = Bt($n), xo = We(Q, Rr, -10), wo = Ut(Ge, Rr);
|
|
3204
3220
|
function Dt(e) {
|
|
3205
3221
|
var t = Q(e), r = /* @__PURE__ */ new Date();
|
|
3206
3222
|
return r.setFullYear(t, 0, 1), r.setHours(0, 0, 0, 0), r;
|
|
3207
3223
|
}
|
|
3208
|
-
var jo =
|
|
3224
|
+
var jo = We(Q, Dt, -1), Mn = We(Q, Dt, 1), Ar = Bt(Mn), So = We(Q, Ar, -1), zs = Ut(Dt, Ar);
|
|
3209
3225
|
function Ln(e, t) {
|
|
3210
3226
|
return function(n, a) {
|
|
3211
3227
|
a === void 0 && (a = t);
|
|
@@ -3217,7 +3233,7 @@ function at(e) {
|
|
|
3217
3233
|
var t = Q(e), r = ze(e), n = /* @__PURE__ */ new Date();
|
|
3218
3234
|
return n.setFullYear(t, r, 1), n.setHours(0, 0, 0, 0), n;
|
|
3219
3235
|
}
|
|
3220
|
-
var Do = Ln(at, -1),
|
|
3236
|
+
var Do = Ln(at, -1), Wn = Ln(at, 1), zt = Bt(Wn), Oo = Ln(zt, -1), Gs = Ut(at, zt);
|
|
3221
3237
|
function Hs(e, t) {
|
|
3222
3238
|
return function(n, a) {
|
|
3223
3239
|
a === void 0 && (a = t);
|
|
@@ -3229,7 +3245,7 @@ function Gt(e) {
|
|
|
3229
3245
|
var t = Q(e), r = ze(e), n = Tr(e), a = /* @__PURE__ */ new Date();
|
|
3230
3246
|
return a.setFullYear(t, r, n), a.setHours(0, 0, 0, 0), a;
|
|
3231
3247
|
}
|
|
3232
|
-
var qs = Hs(Gt, 1),
|
|
3248
|
+
var qs = Hs(Gt, 1), Fn = Bt(qs), Xs = Ut(Gt, Fn);
|
|
3233
3249
|
function No(e) {
|
|
3234
3250
|
return Tr(zt(e));
|
|
3235
3251
|
}
|
|
@@ -3384,7 +3400,7 @@ function ko(e, t) {
|
|
|
3384
3400
|
case "year":
|
|
3385
3401
|
return Mn(t);
|
|
3386
3402
|
case "month":
|
|
3387
|
-
return
|
|
3403
|
+
return Wn(t);
|
|
3388
3404
|
default:
|
|
3389
3405
|
throw new Error("Invalid rangeType: ".concat(e));
|
|
3390
3406
|
}
|
|
@@ -3408,12 +3424,12 @@ function yc(e, t) {
|
|
|
3408
3424
|
case "year":
|
|
3409
3425
|
return Mn(t, 10);
|
|
3410
3426
|
case "month":
|
|
3411
|
-
return
|
|
3427
|
+
return Wn(t, 12);
|
|
3412
3428
|
default:
|
|
3413
3429
|
throw new Error("Invalid rangeType: ".concat(e));
|
|
3414
3430
|
}
|
|
3415
3431
|
}
|
|
3416
|
-
function
|
|
3432
|
+
function Co(e, t) {
|
|
3417
3433
|
switch (e) {
|
|
3418
3434
|
case "century":
|
|
3419
3435
|
return In(t);
|
|
@@ -3424,7 +3440,7 @@ function _o(e, t) {
|
|
|
3424
3440
|
case "month":
|
|
3425
3441
|
return zt(t);
|
|
3426
3442
|
case "day":
|
|
3427
|
-
return
|
|
3443
|
+
return Fn(t);
|
|
3428
3444
|
default:
|
|
3429
3445
|
throw new Error("Invalid rangeType: ".concat(e));
|
|
3430
3446
|
}
|
|
@@ -3475,18 +3491,18 @@ function wc(e, t, r) {
|
|
|
3475
3491
|
var n = [t, r].sort(function(a, i) {
|
|
3476
3492
|
return a.getTime() - i.getTime();
|
|
3477
3493
|
});
|
|
3478
|
-
return [rt(e, n[0]),
|
|
3494
|
+
return [rt(e, n[0]), Co(e, n[1])];
|
|
3479
3495
|
}
|
|
3480
|
-
function
|
|
3496
|
+
function _o(e, t, r) {
|
|
3481
3497
|
return r.map(function(n) {
|
|
3482
3498
|
return (t || Ir)(e, n);
|
|
3483
3499
|
}).join(" – ");
|
|
3484
3500
|
}
|
|
3485
3501
|
function jc(e, t, r) {
|
|
3486
|
-
return
|
|
3502
|
+
return _o(e, t, yo(r));
|
|
3487
3503
|
}
|
|
3488
3504
|
function Po(e, t, r) {
|
|
3489
|
-
return
|
|
3505
|
+
return _o(e, t, wo(r));
|
|
3490
3506
|
}
|
|
3491
3507
|
function Sc(e) {
|
|
3492
3508
|
return e.getDay() === (/* @__PURE__ */ new Date()).getDay();
|
|
@@ -3507,7 +3523,7 @@ function To(e, t) {
|
|
|
3507
3523
|
}
|
|
3508
3524
|
var Pe = "react-calendar__navigation";
|
|
3509
3525
|
function Dc(e) {
|
|
3510
|
-
var t = e.activeStartDate, r = e.drillUp, n = e.formatMonthYear, a = n === void 0 ? Eo : n, i = e.formatYear, s = i === void 0 ? Ir : i, c = e.locale, l = e.maxDate, d = e.minDate, f = e.navigationAriaLabel, v = f === void 0 ? "" : f, g = e.navigationAriaLive, h = e.navigationLabel, p = e.next2AriaLabel, m = p === void 0 ? "" : p,
|
|
3526
|
+
var t = e.activeStartDate, r = e.drillUp, n = e.formatMonthYear, a = n === void 0 ? Eo : n, i = e.formatYear, s = i === void 0 ? Ir : i, c = e.locale, l = e.maxDate, d = e.minDate, f = e.navigationAriaLabel, v = f === void 0 ? "" : f, g = e.navigationAriaLive, h = e.navigationLabel, p = e.next2AriaLabel, m = p === void 0 ? "" : p, b = e.next2Label, x = b === void 0 ? "»" : b, y = e.nextAriaLabel, k = y === void 0 ? "" : y, D = e.nextLabel, O = D === void 0 ? "›" : D, E = e.prev2AriaLabel, _ = E === void 0 ? "" : E, W = e.prev2Label, w = W === void 0 ? "«" : W, S = e.prevAriaLabel, $ = S === void 0 ? "" : S, R = e.prevLabel, A = R === void 0 ? "‹" : R, G = e.setActiveStartDate, ie = e.showDoubleView, ne = e.view, xe = e.views, Ie = xe.indexOf(ne) > 0, ee = ne !== "century", K = pc(ne, t), le = ee ? gc(ne, t) : void 0, Z = ko(ne, t), Se = ee ? yc(ne, t) : void 0, Ee = function() {
|
|
3511
3527
|
if (K.getFullYear() < 0)
|
|
3512
3528
|
return !0;
|
|
3513
3529
|
var te = bc(ne, t);
|
|
@@ -3527,11 +3543,11 @@ function Dc(e) {
|
|
|
3527
3543
|
function De() {
|
|
3528
3544
|
G(Z, "next");
|
|
3529
3545
|
}
|
|
3530
|
-
function
|
|
3546
|
+
function Ce() {
|
|
3531
3547
|
G(Se, "next2");
|
|
3532
3548
|
}
|
|
3533
3549
|
function he(te) {
|
|
3534
|
-
var
|
|
3550
|
+
var _e = function() {
|
|
3535
3551
|
switch (ne) {
|
|
3536
3552
|
case "century":
|
|
3537
3553
|
return jc(c, s, te);
|
|
@@ -3547,16 +3563,16 @@ function Dc(e) {
|
|
|
3547
3563
|
}();
|
|
3548
3564
|
return h ? h({
|
|
3549
3565
|
date: te,
|
|
3550
|
-
label:
|
|
3566
|
+
label: _e,
|
|
3551
3567
|
locale: c || po() || void 0,
|
|
3552
3568
|
view: ne
|
|
3553
|
-
}) :
|
|
3569
|
+
}) : _e;
|
|
3554
3570
|
}
|
|
3555
3571
|
function Ot() {
|
|
3556
3572
|
var te = "".concat(Pe, "__label");
|
|
3557
3573
|
return o.jsxs("button", { "aria-label": v, "aria-live": g, className: te, disabled: !Ie, onClick: r, style: { flexGrow: 1 }, type: "button", children: [o.jsx("span", { className: "".concat(te, "__labelText ").concat(te, "__labelText--from"), children: he(t) }), ie ? o.jsxs(o.Fragment, { children: [o.jsx("span", { className: "".concat(te, "__divider"), children: " – " }), o.jsx("span", { className: "".concat(te, "__labelText ").concat(te, "__labelText--to"), children: he(Z) })] }) : null] });
|
|
3558
3574
|
}
|
|
3559
|
-
return o.jsxs("div", { className: Pe, children: [
|
|
3575
|
+
return o.jsxs("div", { className: Pe, children: [w !== null && ee ? o.jsx("button", { "aria-label": _, className: "".concat(Pe, "__arrow ").concat(Pe, "__prev2-button"), disabled: ke, onClick: ae, type: "button", children: w }) : null, A !== null && o.jsx("button", { "aria-label": $, className: "".concat(Pe, "__arrow ").concat(Pe, "__prev-button"), disabled: Ee, onClick: ue, type: "button", children: A }), Ot(), O !== null && o.jsx("button", { "aria-label": k, className: "".concat(Pe, "__arrow ").concat(Pe, "__next-button"), disabled: me, onClick: De, type: "button", children: O }), x !== null && ee ? o.jsx("button", { "aria-label": m, className: "".concat(Pe, "__arrow ").concat(Pe, "__next2-button"), disabled: pe, onClick: Ce, type: "button", children: x }) : null] });
|
|
3560
3576
|
}
|
|
3561
3577
|
var ft = function() {
|
|
3562
3578
|
return ft = Object.assign || function(e) {
|
|
@@ -3616,7 +3632,7 @@ function wa(e, t, r) {
|
|
|
3616
3632
|
function kc(e) {
|
|
3617
3633
|
return Array.isArray(e) ? e[0] !== null && e[1] !== null : e !== null;
|
|
3618
3634
|
}
|
|
3619
|
-
function
|
|
3635
|
+
function Cc(e) {
|
|
3620
3636
|
if (!e)
|
|
3621
3637
|
throw new Error("args is required");
|
|
3622
3638
|
var t = e.value, r = e.date, n = e.hover, a = "react-calendar__tile", i = [a];
|
|
@@ -3651,36 +3667,36 @@ function _c(e) {
|
|
|
3651
3667
|
return i;
|
|
3652
3668
|
}
|
|
3653
3669
|
function $r(e) {
|
|
3654
|
-
for (var t = e.className, r = e.count, n = r === void 0 ? 3 : r, a = e.dateTransform, i = e.dateType, s = e.end, c = e.hover, l = e.offset, d = e.renderTile, f = e.start, v = e.step, g = v === void 0 ? 1 : v, h = e.value, p = e.valueType, m = [],
|
|
3655
|
-
var
|
|
3670
|
+
for (var t = e.className, r = e.count, n = r === void 0 ? 3 : r, a = e.dateTransform, i = e.dateType, s = e.end, c = e.hover, l = e.offset, d = e.renderTile, f = e.start, v = e.step, g = v === void 0 ? 1 : v, h = e.value, p = e.valueType, m = [], b = f; b <= s; b += g) {
|
|
3671
|
+
var x = a(b);
|
|
3656
3672
|
m.push(d({
|
|
3657
|
-
classes:
|
|
3658
|
-
date:
|
|
3673
|
+
classes: Cc({
|
|
3674
|
+
date: x,
|
|
3659
3675
|
dateType: i,
|
|
3660
3676
|
hover: c,
|
|
3661
3677
|
value: h,
|
|
3662
3678
|
valueType: p
|
|
3663
3679
|
}),
|
|
3664
|
-
date:
|
|
3680
|
+
date: x
|
|
3665
3681
|
}));
|
|
3666
3682
|
}
|
|
3667
3683
|
return o.jsx(Yn, { className: t, count: n, offset: l, wrap: !0, children: m });
|
|
3668
3684
|
}
|
|
3669
3685
|
function Mr(e) {
|
|
3670
|
-
var t = e.activeStartDate, r = e.children, n = e.classes, a = e.date, i = e.formatAbbr, s = e.locale, c = e.maxDate, l = e.maxDateTransform, d = e.minDate, f = e.minDateTransform, v = e.onClick, g = e.onMouseOver, h = e.style, p = e.tileClassName, m = e.tileContent,
|
|
3671
|
-
var
|
|
3672
|
-
return typeof p == "function" ? p(
|
|
3673
|
-
}, [t, a, p,
|
|
3674
|
-
var
|
|
3675
|
-
return typeof m == "function" ? m(
|
|
3676
|
-
}, [t, a, m,
|
|
3677
|
-
return o.jsxs("button", { className: Pr(n,
|
|
3678
|
-
return v(a,
|
|
3686
|
+
var t = e.activeStartDate, r = e.children, n = e.classes, a = e.date, i = e.formatAbbr, s = e.locale, c = e.maxDate, l = e.maxDateTransform, d = e.minDate, f = e.minDateTransform, v = e.onClick, g = e.onMouseOver, h = e.style, p = e.tileClassName, m = e.tileContent, b = e.tileDisabled, x = e.view, y = Re(function() {
|
|
3687
|
+
var D = { activeStartDate: t, date: a, view: x };
|
|
3688
|
+
return typeof p == "function" ? p(D) : p;
|
|
3689
|
+
}, [t, a, p, x]), k = Re(function() {
|
|
3690
|
+
var D = { activeStartDate: t, date: a, view: x };
|
|
3691
|
+
return typeof m == "function" ? m(D) : m;
|
|
3692
|
+
}, [t, a, m, x]);
|
|
3693
|
+
return o.jsxs("button", { className: Pr(n, y), disabled: d && f(d) > a || c && l(c) < a || (b == null ? void 0 : b({ activeStartDate: t, date: a, view: x })), onClick: v ? function(D) {
|
|
3694
|
+
return v(a, D);
|
|
3679
3695
|
} : void 0, onFocus: g ? function() {
|
|
3680
3696
|
return g(a);
|
|
3681
3697
|
} : void 0, onMouseOver: g ? function() {
|
|
3682
3698
|
return g(a);
|
|
3683
|
-
} : void 0, style: h, type: "button", children: [i ? o.jsx("abbr", { "aria-label": i(s, a), children: r }) : r,
|
|
3699
|
+
} : void 0, style: h, type: "button", children: [i ? o.jsx("abbr", { "aria-label": i(s, a), children: r }) : r, k] });
|
|
3684
3700
|
}
|
|
3685
3701
|
var hn = function() {
|
|
3686
3702
|
return hn = Object.assign || function(e) {
|
|
@@ -3690,7 +3706,7 @@ var hn = function() {
|
|
|
3690
3706
|
}
|
|
3691
3707
|
return e;
|
|
3692
3708
|
}, hn.apply(this, arguments);
|
|
3693
|
-
},
|
|
3709
|
+
}, _c = function(e, t) {
|
|
3694
3710
|
var r = {};
|
|
3695
3711
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3696
3712
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -3699,7 +3715,7 @@ var hn = function() {
|
|
|
3699
3715
|
return r;
|
|
3700
3716
|
}, ja = "react-calendar__century-view__decades__decade";
|
|
3701
3717
|
function Pc(e) {
|
|
3702
|
-
var t = e.classes, r = t === void 0 ? [] : t, n = e.currentCentury, a = e.formatYear, i = a === void 0 ? Ir : a, s =
|
|
3718
|
+
var t = e.classes, r = t === void 0 ? [] : t, n = e.currentCentury, a = e.formatYear, i = a === void 0 ? Ir : a, s = _c(e, ["classes", "currentCentury", "formatYear"]), c = s.date, l = s.locale, d = [];
|
|
3703
3719
|
return r && d.push.apply(d, r), d.push(ja), St(c).getFullYear() !== n && d.push("".concat(ja, "--neighboringCentury")), o.jsx(Mr, hn({}, s, { classes: d, maxDateTransform: Rr, minDateTransform: Ge, view: "century", children: Po(l, i, c) }));
|
|
3704
3720
|
}
|
|
3705
3721
|
var vn = function() {
|
|
@@ -3817,10 +3833,10 @@ var bn = function() {
|
|
|
3817
3833
|
if (r || arguments.length === 2) for (var n = 0, a = t.length, i; n < a; n++)
|
|
3818
3834
|
(i || !(n in t)) && (i || (i = Array.prototype.slice.call(t, 0, n)), i[n] = t[n]);
|
|
3819
3835
|
return e.concat(i || Array.prototype.slice.call(t));
|
|
3820
|
-
},
|
|
3821
|
-
function
|
|
3836
|
+
}, Wc = "react-calendar__year-view__months__month";
|
|
3837
|
+
function Fc(e) {
|
|
3822
3838
|
var t = e.classes, r = t === void 0 ? [] : t, n = e.formatMonth, a = n === void 0 ? cc : n, i = e.formatMonthYear, s = i === void 0 ? Eo : i, c = Lc(e, ["classes", "formatMonth", "formatMonthYear"]), l = c.date, d = c.locale;
|
|
3823
|
-
return o.jsx(Mr, bn({}, c, { classes: Na(Na([], r, !0), [
|
|
3839
|
+
return o.jsx(Mr, bn({}, c, { classes: Na(Na([], r, !0), [Wc], !1), formatAbbr: s, maxDateTransform: zt, minDateTransform: at, view: "year", children: a(d, l) }));
|
|
3824
3840
|
}
|
|
3825
3841
|
var xn = function() {
|
|
3826
3842
|
return xn = Object.assign || function(e) {
|
|
@@ -3845,7 +3861,7 @@ function Vc(e) {
|
|
|
3845
3861
|
return f.setFullYear(l, d, 1), at(f);
|
|
3846
3862
|
}, dateType: "month", end: c, hover: r, renderTile: function(d) {
|
|
3847
3863
|
var f = d.date, v = Ea(d, ["date"]);
|
|
3848
|
-
return o.jsx(
|
|
3864
|
+
return o.jsx(Fc, xn({}, i, v, { activeStartDate: t, date: f }), f.getTime());
|
|
3849
3865
|
}, start: s, value: n, valueType: a });
|
|
3850
3866
|
}
|
|
3851
3867
|
var wn = function() {
|
|
@@ -3881,7 +3897,7 @@ var jn = function() {
|
|
|
3881
3897
|
}, Jr = "react-calendar__month-view__days__day";
|
|
3882
3898
|
function Uc(e) {
|
|
3883
3899
|
var t = e.calendarType, r = e.classes, n = r === void 0 ? [] : r, a = e.currentMonthIndex, i = e.formatDay, s = i === void 0 ? ic : i, c = e.formatLongDate, l = c === void 0 ? sc : c, d = Bc(e, ["calendarType", "classes", "currentMonthIndex", "formatDay", "formatLongDate"]), f = d.date, v = d.locale, g = [];
|
|
3884
|
-
return n && g.push.apply(g, n), g.push(Jr), To(f, t) && g.push("".concat(Jr, "--weekend")), f.getMonth() !== a && g.push("".concat(Jr, "--neighboringMonth")), o.jsx(Mr, jn({}, d, { classes: g, formatAbbr: l, maxDateTransform:
|
|
3900
|
+
return n && g.push.apply(g, n), g.push(Jr), To(f, t) && g.push("".concat(Jr, "--weekend")), f.getMonth() !== a && g.push("".concat(Jr, "--neighboringMonth")), o.jsx(Mr, jn({}, d, { classes: g, formatAbbr: l, maxDateTransform: Fn, minDateTransform: Gt, view: "month", children: s(v, f) }));
|
|
3885
3901
|
}
|
|
3886
3902
|
var Sn = function() {
|
|
3887
3903
|
return Sn = Object.assign || function(e) {
|
|
@@ -3903,21 +3919,21 @@ function zc(e) {
|
|
|
3903
3919
|
var t = e.activeStartDate, r = e.calendarType, n = e.hover, a = e.showFixedNumberOfWeeks, i = e.showNeighboringMonth, s = e.value, c = e.valueType, l = ka(e, ["activeStartDate", "calendarType", "hover", "showFixedNumberOfWeeks", "showNeighboringMonth", "value", "valueType"]), d = Q(t), f = ze(t), v = a || i, g = Vt(t, r), h = v ? 0 : g, p = (v ? -g : 0) + 1, m = function() {
|
|
3904
3920
|
if (a)
|
|
3905
3921
|
return p + 6 * 7 - 1;
|
|
3906
|
-
var
|
|
3922
|
+
var b = No(t);
|
|
3907
3923
|
if (i) {
|
|
3908
|
-
var
|
|
3909
|
-
|
|
3910
|
-
var
|
|
3911
|
-
return
|
|
3924
|
+
var x = /* @__PURE__ */ new Date();
|
|
3925
|
+
x.setFullYear(d, f, b), x.setHours(0, 0, 0, 0);
|
|
3926
|
+
var y = 7 - Vt(x, r) - 1;
|
|
3927
|
+
return b + y;
|
|
3912
3928
|
}
|
|
3913
|
-
return
|
|
3929
|
+
return b;
|
|
3914
3930
|
}();
|
|
3915
|
-
return o.jsx($r, { className: "react-calendar__month-view__days", count: 7, dateTransform: function(
|
|
3916
|
-
var
|
|
3917
|
-
return
|
|
3918
|
-
}, dateType: "day", hover: n, end: m, renderTile: function(
|
|
3919
|
-
var
|
|
3920
|
-
return o.jsx(Uc, Sn({}, l,
|
|
3931
|
+
return o.jsx($r, { className: "react-calendar__month-view__days", count: 7, dateTransform: function(b) {
|
|
3932
|
+
var x = /* @__PURE__ */ new Date();
|
|
3933
|
+
return x.setFullYear(d, f, b), Gt(x);
|
|
3934
|
+
}, dateType: "day", hover: n, end: m, renderTile: function(b) {
|
|
3935
|
+
var x = b.date, y = ka(b, ["date"]);
|
|
3936
|
+
return o.jsx(Uc, Sn({}, l, y, { activeStartDate: t, calendarType: r, currentMonthIndex: f, date: x }), x.getTime());
|
|
3921
3937
|
}, offset: h, start: p, value: s, valueType: c });
|
|
3922
3938
|
}
|
|
3923
3939
|
var Ao = "react-calendar__month-view__weekdays", Qr = "".concat(Ao, "__weekday");
|
|
@@ -3936,25 +3952,25 @@ var Sr = function() {
|
|
|
3936
3952
|
}
|
|
3937
3953
|
return e;
|
|
3938
3954
|
}, Sr.apply(this, arguments);
|
|
3939
|
-
},
|
|
3955
|
+
}, Ca = function(e, t) {
|
|
3940
3956
|
var r = {};
|
|
3941
3957
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3942
3958
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
3943
3959
|
for (var a = 0, n = Object.getOwnPropertySymbols(e); a < n.length; a++)
|
|
3944
3960
|
t.indexOf(n[a]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[a]) && (r[n[a]] = e[n[a]]);
|
|
3945
3961
|
return r;
|
|
3946
|
-
},
|
|
3962
|
+
}, _a = "react-calendar__tile";
|
|
3947
3963
|
function Hc(e) {
|
|
3948
3964
|
var t = e.onClickWeekNumber, r = e.weekNumber, n = o.jsx("span", { children: r });
|
|
3949
3965
|
if (t) {
|
|
3950
|
-
var a = e.date, i = e.onClickWeekNumber, s = e.weekNumber, c =
|
|
3951
|
-
return o.jsx("button", Sr({}, c, { className:
|
|
3966
|
+
var a = e.date, i = e.onClickWeekNumber, s = e.weekNumber, c = Ca(e, ["date", "onClickWeekNumber", "weekNumber"]);
|
|
3967
|
+
return o.jsx("button", Sr({}, c, { className: _a, onClick: function(l) {
|
|
3952
3968
|
return i(s, a, l);
|
|
3953
3969
|
}, type: "button", children: n }));
|
|
3954
3970
|
} else {
|
|
3955
3971
|
e.date, e.onClickWeekNumber, e.weekNumber;
|
|
3956
|
-
var c =
|
|
3957
|
-
return o.jsx("div", Sr({}, c, { className:
|
|
3972
|
+
var c = Ca(e, ["date", "onClickWeekNumber", "weekNumber"]);
|
|
3973
|
+
return o.jsx("div", Sr({}, c, { className: _a, children: n }));
|
|
3958
3974
|
}
|
|
3959
3975
|
}
|
|
3960
3976
|
function qc(e) {
|
|
@@ -4034,7 +4050,7 @@ var ht = function() {
|
|
|
4034
4050
|
Bn.setFullYear(1, 0, 1);
|
|
4035
4051
|
Bn.setHours(0, 0, 0, 0);
|
|
4036
4052
|
var Zc = /* @__PURE__ */ new Date(864e13);
|
|
4037
|
-
function
|
|
4053
|
+
function Wt(e) {
|
|
4038
4054
|
return e instanceof Date ? e : new Date(e);
|
|
4039
4055
|
}
|
|
4040
4056
|
function Io(e, t) {
|
|
@@ -4055,7 +4071,7 @@ function tl(e, t) {
|
|
|
4055
4071
|
var r = Array.isArray(e) ? e[t] : e;
|
|
4056
4072
|
if (!r)
|
|
4057
4073
|
return null;
|
|
4058
|
-
var n =
|
|
4074
|
+
var n = Wt(r);
|
|
4059
4075
|
if (Number.isNaN(n.getTime()))
|
|
4060
4076
|
throw new Error("Invalid date: ".concat(e));
|
|
4061
4077
|
return n;
|
|
@@ -4069,7 +4085,7 @@ function Mo(e, t) {
|
|
|
4069
4085
|
case 0:
|
|
4070
4086
|
return rt(c, s);
|
|
4071
4087
|
case 1:
|
|
4072
|
-
return
|
|
4088
|
+
return Co(c, s);
|
|
4073
4089
|
default:
|
|
4074
4090
|
throw new Error("Invalid index value: ".concat(t));
|
|
4075
4091
|
}
|
|
@@ -4085,7 +4101,7 @@ var zn = function(e) {
|
|
|
4085
4101
|
return t(e);
|
|
4086
4102
|
});
|
|
4087
4103
|
};
|
|
4088
|
-
function
|
|
4104
|
+
function Wo(e) {
|
|
4089
4105
|
var t = e.maxDate, r = e.maxDetail, n = e.minDate, a = e.minDetail, i = e.value, s = e.view, c = Un(s, a, r), l = zn({
|
|
4090
4106
|
value: i,
|
|
4091
4107
|
minDate: n,
|
|
@@ -4096,7 +4112,7 @@ function Fo(e) {
|
|
|
4096
4112
|
}
|
|
4097
4113
|
function nl(e) {
|
|
4098
4114
|
var t = e.activeStartDate, r = e.defaultActiveStartDate, n = e.defaultValue, a = e.defaultView, i = e.maxDate, s = e.maxDetail, c = e.minDate, l = e.minDetail, d = e.value, f = e.view, v = Un(f, l, s), g = t || r;
|
|
4099
|
-
return g ? rt(v, g) :
|
|
4115
|
+
return g ? rt(v, g) : Wo({
|
|
4100
4116
|
maxDate: i,
|
|
4101
4117
|
maxDetail: s,
|
|
4102
4118
|
minDate: c,
|
|
@@ -4112,29 +4128,29 @@ function ur(e, t) {
|
|
|
4112
4128
|
return e instanceof Date && t instanceof Date && e.getTime() === t.getTime();
|
|
4113
4129
|
}
|
|
4114
4130
|
var al = Ue(function(t, r) {
|
|
4115
|
-
var n = t.activeStartDate, a = t.allowPartialRange, i = t.calendarType, s = t.className, c = t.defaultActiveStartDate, l = t.defaultValue, d = t.defaultView, f = t.formatDay, v = t.formatLongDate, g = t.formatMonth, h = t.formatMonthYear, p = t.formatShortWeekday, m = t.formatWeekday,
|
|
4116
|
-
return
|
|
4117
|
-
}) : l != null ?
|
|
4131
|
+
var n = t.activeStartDate, a = t.allowPartialRange, i = t.calendarType, s = t.className, c = t.defaultActiveStartDate, l = t.defaultValue, d = t.defaultView, f = t.formatDay, v = t.formatLongDate, g = t.formatMonth, h = t.formatMonthYear, p = t.formatShortWeekday, m = t.formatWeekday, b = t.formatYear, x = t.goToRangeStartOnSelect, y = x === void 0 ? !0 : x, k = t.inputRef, D = t.locale, O = t.maxDate, E = O === void 0 ? Zc : O, _ = t.maxDetail, W = _ === void 0 ? "month" : _, w = t.minDate, S = w === void 0 ? Bn : w, $ = t.minDetail, R = $ === void 0 ? "century" : $, A = t.navigationAriaLabel, G = t.navigationAriaLive, ie = t.navigationLabel, ne = t.next2AriaLabel, xe = t.next2Label, Ie = t.nextAriaLabel, ee = t.nextLabel, K = t.onActiveStartDateChange, le = t.onChange, Z = t.onClickDay, Se = t.onClickDecade, Ee = t.onClickMonth, ke = t.onClickWeekNumber, me = t.onClickYear, pe = t.onDrillDown, ue = t.onDrillUp, ae = t.onViewChange, De = t.prev2AriaLabel, Ce = t.prev2Label, he = t.prevAriaLabel, Ot = t.prevLabel, te = t.returnValue, _e = te === void 0 ? "start" : te, se = t.selectRange, He = t.showDoubleView, Nt = t.showFixedNumberOfWeeks, qe = t.showNavigation, Lr = qe === void 0 ? !0 : qe, Wr = t.showNeighboringCentury, Et = t.showNeighboringDecade, Ht = t.showNeighboringMonth, Fr = Ht === void 0 ? !0 : Ht, qt = t.showWeekNumbers, Xt = t.tileClassName, Kt = t.tileContent, Vr = t.tileDisabled, it = t.value, kt = t.view, Jt = F(c), Yr = Jt[0], st = Jt[1], Qt = F(null), Br = Qt[0], Zt = Qt[1], er = F(Array.isArray(l) ? l.map(function(C) {
|
|
4132
|
+
return C !== null ? Wt(C) : null;
|
|
4133
|
+
}) : l != null ? Wt(l) : null), Xe = er[0], tr = er[1], $e = F(d), Ct = $e[0], ct = $e[1], de = n || Yr || nl({
|
|
4118
4134
|
activeStartDate: n,
|
|
4119
4135
|
defaultActiveStartDate: c,
|
|
4120
4136
|
defaultValue: l,
|
|
4121
4137
|
defaultView: d,
|
|
4122
4138
|
maxDate: E,
|
|
4123
|
-
maxDetail:
|
|
4124
|
-
minDate:
|
|
4139
|
+
maxDetail: W,
|
|
4140
|
+
minDate: S,
|
|
4125
4141
|
minDetail: R,
|
|
4126
4142
|
value: it,
|
|
4127
4143
|
view: kt
|
|
4128
4144
|
}), ve = function() {
|
|
4129
|
-
var
|
|
4145
|
+
var C = function() {
|
|
4130
4146
|
return se && Zr(Xe) ? Xe : it !== void 0 ? it : Xe;
|
|
4131
4147
|
}();
|
|
4132
|
-
return
|
|
4133
|
-
return P !== null ?
|
|
4134
|
-
}) :
|
|
4135
|
-
}(), Ke = $o(
|
|
4148
|
+
return C ? Array.isArray(C) ? C.map(function(P) {
|
|
4149
|
+
return P !== null ? Wt(P) : null;
|
|
4150
|
+
}) : C !== null ? Wt(C) : null : null;
|
|
4151
|
+
}(), Ke = $o(W), H = Un(kt || Ct, R, W), we = Io(R, W), rr = se ? Br : null, _t = we.indexOf(H) < we.length - 1, nr = we.indexOf(H) > 0, Pt = I(function(C) {
|
|
4136
4152
|
var P = function() {
|
|
4137
|
-
switch (
|
|
4153
|
+
switch (_e) {
|
|
4138
4154
|
case "start":
|
|
4139
4155
|
return zn;
|
|
4140
4156
|
case "end":
|
|
@@ -4147,20 +4163,20 @@ var al = Ue(function(t, r) {
|
|
|
4147
4163
|
}();
|
|
4148
4164
|
return P({
|
|
4149
4165
|
maxDate: E,
|
|
4150
|
-
maxDetail:
|
|
4151
|
-
minDate:
|
|
4152
|
-
value:
|
|
4166
|
+
maxDetail: W,
|
|
4167
|
+
minDate: S,
|
|
4168
|
+
value: C
|
|
4153
4169
|
});
|
|
4154
|
-
}, [E,
|
|
4155
|
-
st(
|
|
4170
|
+
}, [E, W, S, _e]), lt = I(function(C, P) {
|
|
4171
|
+
st(C);
|
|
4156
4172
|
var T = {
|
|
4157
4173
|
action: P,
|
|
4158
|
-
activeStartDate:
|
|
4174
|
+
activeStartDate: C,
|
|
4159
4175
|
value: ve,
|
|
4160
4176
|
view: H
|
|
4161
4177
|
};
|
|
4162
|
-
K && !ur(de,
|
|
4163
|
-
}, [de, K, ve, H]), ut = I(function(
|
|
4178
|
+
K && !ur(de, C) && K(T);
|
|
4179
|
+
}, [de, K, ve, H]), ut = I(function(C, P) {
|
|
4164
4180
|
var T = function() {
|
|
4165
4181
|
switch (H) {
|
|
4166
4182
|
case "century":
|
|
@@ -4175,25 +4191,25 @@ var al = Ue(function(t, r) {
|
|
|
4175
4191
|
throw new Error("Invalid view: ".concat(H, "."));
|
|
4176
4192
|
}
|
|
4177
4193
|
}();
|
|
4178
|
-
T && T(
|
|
4179
|
-
}, [Z, Se, Ee, me, H]), Tt = I(function(
|
|
4180
|
-
if (
|
|
4181
|
-
ut(
|
|
4194
|
+
T && T(C, P);
|
|
4195
|
+
}, [Z, Se, Ee, me, H]), Tt = I(function(C, P) {
|
|
4196
|
+
if (_t) {
|
|
4197
|
+
ut(C, P);
|
|
4182
4198
|
var T = we[we.indexOf(H) + 1];
|
|
4183
4199
|
if (!T)
|
|
4184
4200
|
throw new Error("Attempted to drill down from the lowest view.");
|
|
4185
|
-
st(
|
|
4201
|
+
st(C), ct(T);
|
|
4186
4202
|
var z = {
|
|
4187
4203
|
action: "drillDown",
|
|
4188
|
-
activeStartDate:
|
|
4204
|
+
activeStartDate: C,
|
|
4189
4205
|
value: ve,
|
|
4190
4206
|
view: T
|
|
4191
4207
|
};
|
|
4192
|
-
K && !ur(de,
|
|
4208
|
+
K && !ur(de, C) && K(z), ae && H !== T && ae(z), pe && pe(z);
|
|
4193
4209
|
}
|
|
4194
4210
|
}, [
|
|
4195
4211
|
de,
|
|
4196
|
-
|
|
4212
|
+
_t,
|
|
4197
4213
|
K,
|
|
4198
4214
|
ut,
|
|
4199
4215
|
pe,
|
|
@@ -4203,18 +4219,18 @@ var al = Ue(function(t, r) {
|
|
|
4203
4219
|
we
|
|
4204
4220
|
]), Rt = I(function() {
|
|
4205
4221
|
if (nr) {
|
|
4206
|
-
var
|
|
4207
|
-
if (!
|
|
4222
|
+
var C = we[we.indexOf(H) - 1];
|
|
4223
|
+
if (!C)
|
|
4208
4224
|
throw new Error("Attempted to drill up from the highest view.");
|
|
4209
|
-
var P = rt(
|
|
4210
|
-
st(P), ct(
|
|
4225
|
+
var P = rt(C, de);
|
|
4226
|
+
st(P), ct(C);
|
|
4211
4227
|
var T = {
|
|
4212
4228
|
action: "drillUp",
|
|
4213
4229
|
activeStartDate: P,
|
|
4214
4230
|
value: ve,
|
|
4215
|
-
view:
|
|
4231
|
+
view: C
|
|
4216
4232
|
};
|
|
4217
|
-
K && !ur(de, P) && K(T), ae && H !==
|
|
4233
|
+
K && !ur(de, P) && K(T), ae && H !== C && ae(T), ue && ue(T);
|
|
4218
4234
|
}
|
|
4219
4235
|
}, [
|
|
4220
4236
|
de,
|
|
@@ -4225,30 +4241,30 @@ var al = Ue(function(t, r) {
|
|
|
4225
4241
|
ve,
|
|
4226
4242
|
H,
|
|
4227
4243
|
we
|
|
4228
|
-
]), At = I(function(
|
|
4244
|
+
]), At = I(function(C, P) {
|
|
4229
4245
|
var T = ve;
|
|
4230
|
-
ut(
|
|
4246
|
+
ut(C, P);
|
|
4231
4247
|
var z = se && !Zr(T), Y;
|
|
4232
4248
|
if (se)
|
|
4233
4249
|
if (z)
|
|
4234
|
-
Y = rt(Ke,
|
|
4250
|
+
Y = rt(Ke, C);
|
|
4235
4251
|
else {
|
|
4236
4252
|
if (!T)
|
|
4237
4253
|
throw new Error("previousValue is required");
|
|
4238
4254
|
if (Array.isArray(T))
|
|
4239
4255
|
throw new Error("previousValue must not be an array");
|
|
4240
|
-
Y = wc(Ke, T,
|
|
4256
|
+
Y = wc(Ke, T, C);
|
|
4241
4257
|
}
|
|
4242
4258
|
else
|
|
4243
|
-
Y = Pt(
|
|
4259
|
+
Y = Pt(C);
|
|
4244
4260
|
var J = (
|
|
4245
4261
|
// Range selection turned off
|
|
4246
4262
|
!se || // Range selection turned on, first value
|
|
4247
4263
|
z || // Range selection turned on, second value, goToRangeStartOnSelect toggled on
|
|
4248
|
-
|
|
4264
|
+
y ? Wo({
|
|
4249
4265
|
maxDate: E,
|
|
4250
|
-
maxDetail:
|
|
4251
|
-
minDate:
|
|
4266
|
+
maxDetail: W,
|
|
4267
|
+
minDate: S,
|
|
4252
4268
|
minDetail: R,
|
|
4253
4269
|
value: Y,
|
|
4254
4270
|
view: H
|
|
@@ -4263,8 +4279,8 @@ var al = Ue(function(t, r) {
|
|
|
4263
4279
|
};
|
|
4264
4280
|
if (K && !ur(de, J) && K(ge), le)
|
|
4265
4281
|
if (se) {
|
|
4266
|
-
var
|
|
4267
|
-
if (!
|
|
4282
|
+
var Fe = Zr(Y);
|
|
4283
|
+
if (!Fe)
|
|
4268
4284
|
le(Y || null, P);
|
|
4269
4285
|
else if (a) {
|
|
4270
4286
|
if (Array.isArray(Y))
|
|
@@ -4277,10 +4293,10 @@ var al = Ue(function(t, r) {
|
|
|
4277
4293
|
de,
|
|
4278
4294
|
a,
|
|
4279
4295
|
Pt,
|
|
4280
|
-
|
|
4296
|
+
y,
|
|
4281
4297
|
E,
|
|
4282
|
-
|
|
4283
|
-
|
|
4298
|
+
W,
|
|
4299
|
+
S,
|
|
4284
4300
|
R,
|
|
4285
4301
|
K,
|
|
4286
4302
|
le,
|
|
@@ -4290,10 +4306,10 @@ var al = Ue(function(t, r) {
|
|
|
4290
4306
|
Ke,
|
|
4291
4307
|
H
|
|
4292
4308
|
]);
|
|
4293
|
-
function u(
|
|
4294
|
-
Zt(
|
|
4309
|
+
function u(C) {
|
|
4310
|
+
Zt(C);
|
|
4295
4311
|
}
|
|
4296
|
-
function
|
|
4312
|
+
function j() {
|
|
4297
4313
|
Zt(null);
|
|
4298
4314
|
}
|
|
4299
4315
|
Dr(r, function() {
|
|
@@ -4307,13 +4323,13 @@ var al = Ue(function(t, r) {
|
|
|
4307
4323
|
view: H
|
|
4308
4324
|
};
|
|
4309
4325
|
}, [de, Tt, Rt, At, lt, ve, H]);
|
|
4310
|
-
function N(
|
|
4311
|
-
var P =
|
|
4326
|
+
function N(C) {
|
|
4327
|
+
var P = C ? ko(H, de) : rt(H, de), T = _t ? Tt : At, z = {
|
|
4312
4328
|
activeStartDate: P,
|
|
4313
4329
|
hover: rr,
|
|
4314
|
-
locale:
|
|
4330
|
+
locale: D,
|
|
4315
4331
|
maxDate: E,
|
|
4316
|
-
minDate:
|
|
4332
|
+
minDate: S,
|
|
4317
4333
|
onClick: T,
|
|
4318
4334
|
onMouseOver: se ? u : void 0,
|
|
4319
4335
|
tileClassName: Xt,
|
|
@@ -4324,22 +4340,22 @@ var al = Ue(function(t, r) {
|
|
|
4324
4340
|
};
|
|
4325
4341
|
switch (H) {
|
|
4326
4342
|
case "century":
|
|
4327
|
-
return o.jsx(Rc, ht({ formatYear:
|
|
4343
|
+
return o.jsx(Rc, ht({ formatYear: b, showNeighboringCentury: Wr }, z));
|
|
4328
4344
|
case "decade":
|
|
4329
|
-
return o.jsx(Mc, ht({ formatYear:
|
|
4345
|
+
return o.jsx(Mc, ht({ formatYear: b, showNeighboringDecade: Et }, z));
|
|
4330
4346
|
case "year":
|
|
4331
4347
|
return o.jsx(Yc, ht({ formatMonth: g, formatMonthYear: h }, z));
|
|
4332
4348
|
case "month":
|
|
4333
|
-
return o.jsx(Jc, ht({ calendarType: i, formatDay: f, formatLongDate: v, formatShortWeekday: p, formatWeekday: m, onClickWeekNumber: ke, onMouseLeave: se ?
|
|
4349
|
+
return o.jsx(Jc, ht({ calendarType: i, formatDay: f, formatLongDate: v, formatShortWeekday: p, formatWeekday: m, onClickWeekNumber: ke, onMouseLeave: se ? j : void 0, showFixedNumberOfWeeks: typeof Nt < "u" ? Nt : He, showNeighboringMonth: Fr, showWeekNumbers: qt }, z));
|
|
4334
4350
|
default:
|
|
4335
4351
|
throw new Error("Invalid view: ".concat(H, "."));
|
|
4336
4352
|
}
|
|
4337
4353
|
}
|
|
4338
|
-
function
|
|
4339
|
-
return Lr ? o.jsx(Dc, { activeStartDate: de, drillUp: Rt, formatMonthYear: h, formatYear:
|
|
4354
|
+
function M() {
|
|
4355
|
+
return Lr ? o.jsx(Dc, { activeStartDate: de, drillUp: Rt, formatMonthYear: h, formatYear: b, locale: D, maxDate: E, minDate: S, navigationAriaLabel: A, navigationAriaLive: G, navigationLabel: ie, next2AriaLabel: ne, next2Label: xe, nextAriaLabel: Ie, nextLabel: ee, prev2AriaLabel: De, prev2Label: Ce, prevAriaLabel: he, prevLabel: Ot, setActiveStartDate: lt, showDoubleView: He, view: H, views: we }) : null;
|
|
4340
4356
|
}
|
|
4341
4357
|
var B = Array.isArray(ve) ? ve : [ve];
|
|
4342
|
-
return o.jsxs("div", { className: Pr(lr, se && B.length === 1 && "".concat(lr, "--selectRange"), He && "".concat(lr, "--doubleView"), s), ref:
|
|
4358
|
+
return o.jsxs("div", { className: Pr(lr, se && B.length === 1 && "".concat(lr, "--selectRange"), He && "".concat(lr, "--doubleView"), s), ref: k, children: [M(), o.jsxs("div", { className: "".concat(lr, "__viewContainer"), onBlur: se ? j : void 0, onMouseLeave: se ? j : void 0, children: [N(), He ? N(!0) : null] })] });
|
|
4343
4359
|
});
|
|
4344
4360
|
const Ul = ({
|
|
4345
4361
|
value: e,
|
|
@@ -4347,7 +4363,7 @@ const Ul = ({
|
|
|
4347
4363
|
maxDate: r,
|
|
4348
4364
|
children: n
|
|
4349
4365
|
}) => {
|
|
4350
|
-
const [a, i] =
|
|
4366
|
+
const [a, i] = F(e ?? /* @__PURE__ */ new Date()), [s, c] = F(!1), l = re(null), d = I(
|
|
4351
4367
|
(m) => {
|
|
4352
4368
|
i(m), t && t(m), c(!1);
|
|
4353
4369
|
},
|
|
@@ -4358,7 +4374,7 @@ const Ul = ({
|
|
|
4358
4374
|
X(() => (s ? document.addEventListener("mousedown", v) : document.removeEventListener("mousedown", v), () => {
|
|
4359
4375
|
document.removeEventListener("mousedown", v);
|
|
4360
4376
|
}), [s, v]);
|
|
4361
|
-
const [g, h] =
|
|
4377
|
+
const [g, h] = F(), p = ({
|
|
4362
4378
|
activeStartDate: m
|
|
4363
4379
|
}) => {
|
|
4364
4380
|
h(m);
|
|
@@ -4394,10 +4410,10 @@ const Ul = ({
|
|
|
4394
4410
|
maxDate: r ?? /* @__PURE__ */ new Date(),
|
|
4395
4411
|
onChange: d,
|
|
4396
4412
|
value: a,
|
|
4397
|
-
tileClassName: ({ date: m, view:
|
|
4398
|
-
if (
|
|
4399
|
-
const
|
|
4400
|
-
return m.getMonth() !== (
|
|
4413
|
+
tileClassName: ({ date: m, view: b }) => {
|
|
4414
|
+
if (b === "month" && g) {
|
|
4415
|
+
const x = g;
|
|
4416
|
+
return m.getMonth() !== (x == null ? void 0 : x.getMonth()) ? "out-of-month" : null;
|
|
4401
4417
|
}
|
|
4402
4418
|
return null;
|
|
4403
4419
|
}
|
|
@@ -4412,7 +4428,7 @@ const Ul = ({
|
|
|
4412
4428
|
showArrow: n = !0,
|
|
4413
4429
|
onChange: a
|
|
4414
4430
|
}) => {
|
|
4415
|
-
const [i, s] =
|
|
4431
|
+
const [i, s] = F(!1);
|
|
4416
4432
|
X(() => {
|
|
4417
4433
|
t && e && e.id === t.id ? i || s(!0) : s(!1);
|
|
4418
4434
|
}, [e, s, t]);
|
|
@@ -4443,7 +4459,7 @@ const Ul = ({
|
|
|
4443
4459
|
}
|
|
4444
4460
|
);
|
|
4445
4461
|
}, zl = (e) => {
|
|
4446
|
-
const [t, r] =
|
|
4462
|
+
const [t, r] = F(), n = I(
|
|
4447
4463
|
(a) => {
|
|
4448
4464
|
e.onChange && e.onChange(a), r(a);
|
|
4449
4465
|
},
|
|
@@ -4511,7 +4527,7 @@ const Ul = ({
|
|
|
4511
4527
|
rows: d,
|
|
4512
4528
|
required: f = !1
|
|
4513
4529
|
}) => {
|
|
4514
|
-
const [v, g] =
|
|
4530
|
+
const [v, g] = F(r);
|
|
4515
4531
|
X(() => {
|
|
4516
4532
|
g(r);
|
|
4517
4533
|
}, [r]);
|
|
@@ -4551,140 +4567,140 @@ const Ul = ({
|
|
|
4551
4567
|
disabledSubmit: l = !1,
|
|
4552
4568
|
className: d
|
|
4553
4569
|
}, f) => {
|
|
4554
|
-
const [v, g] =
|
|
4555
|
-
const
|
|
4556
|
-
return e.forEach((
|
|
4557
|
-
|
|
4558
|
-
}),
|
|
4559
|
-
}), m = re({}),
|
|
4560
|
-
(
|
|
4561
|
-
const { name:
|
|
4562
|
-
|
|
4563
|
-
const xe = { ...ne, [
|
|
4570
|
+
const [v, g] = F(l), [h, p] = F(() => {
|
|
4571
|
+
const w = {};
|
|
4572
|
+
return e.forEach((S) => {
|
|
4573
|
+
w[S.name] = S.value ?? "";
|
|
4574
|
+
}), w;
|
|
4575
|
+
}), m = re({}), b = I(
|
|
4576
|
+
(w, S) => {
|
|
4577
|
+
const { name: $, type: R, checked: A, value: G } = w.target, ie = R === "checkbox" ? A : G;
|
|
4578
|
+
S.onChange && S.onChange(ie, $), p((ne) => {
|
|
4579
|
+
const xe = { ...ne, [$]: ie };
|
|
4564
4580
|
return s && s(xe), xe;
|
|
4565
4581
|
});
|
|
4566
4582
|
},
|
|
4567
4583
|
[s]
|
|
4568
|
-
),
|
|
4569
|
-
(
|
|
4570
|
-
|
|
4571
|
-
const A = { ...R, [
|
|
4584
|
+
), x = I(
|
|
4585
|
+
(w, S, $) => {
|
|
4586
|
+
$.onChange && $.onChange(S, w), p((R) => {
|
|
4587
|
+
const A = { ...R, [w]: S };
|
|
4572
4588
|
return s && s(A), A;
|
|
4573
4589
|
});
|
|
4574
4590
|
},
|
|
4575
4591
|
[s]
|
|
4576
|
-
),
|
|
4577
|
-
(
|
|
4578
|
-
|
|
4579
|
-
const A = { ...R, [
|
|
4592
|
+
), y = I(
|
|
4593
|
+
(w, S, $) => {
|
|
4594
|
+
$.onChange && $.onChange(w, S), p((R) => {
|
|
4595
|
+
const A = { ...R, [S]: w };
|
|
4580
4596
|
return s && s(A), A;
|
|
4581
4597
|
});
|
|
4582
4598
|
},
|
|
4583
4599
|
[s]
|
|
4584
|
-
),
|
|
4585
|
-
(
|
|
4586
|
-
|
|
4600
|
+
), k = I(
|
|
4601
|
+
(w) => {
|
|
4602
|
+
w.preventDefault(), r && r(h);
|
|
4587
4603
|
},
|
|
4588
4604
|
[r, h]
|
|
4589
|
-
),
|
|
4605
|
+
), D = () => {
|
|
4590
4606
|
p(() => {
|
|
4591
|
-
const
|
|
4592
|
-
return e.forEach((
|
|
4593
|
-
|
|
4594
|
-
}),
|
|
4607
|
+
const w = {};
|
|
4608
|
+
return e.forEach((S) => {
|
|
4609
|
+
w[S.name] = S.value ?? "";
|
|
4610
|
+
}), w;
|
|
4595
4611
|
});
|
|
4596
|
-
}, O = I((
|
|
4597
|
-
p((
|
|
4598
|
-
...
|
|
4599
|
-
[
|
|
4612
|
+
}, O = I((w) => {
|
|
4613
|
+
p((S) => ({
|
|
4614
|
+
...S,
|
|
4615
|
+
[w]: ""
|
|
4600
4616
|
}));
|
|
4601
4617
|
}, []), E = () => {
|
|
4602
|
-
const
|
|
4603
|
-
|
|
4604
|
-
var
|
|
4605
|
-
(
|
|
4618
|
+
const w = e.find((S) => S.focus);
|
|
4619
|
+
w && m.current[w.name] && setTimeout(() => {
|
|
4620
|
+
var S;
|
|
4621
|
+
(S = m.current[w.name]) == null || S.select();
|
|
4606
4622
|
}, 500);
|
|
4607
|
-
},
|
|
4608
|
-
p((
|
|
4609
|
-
...
|
|
4610
|
-
...
|
|
4623
|
+
}, _ = () => h, W = (w) => {
|
|
4624
|
+
p((S) => ({
|
|
4625
|
+
...S,
|
|
4626
|
+
...w
|
|
4611
4627
|
}));
|
|
4612
4628
|
};
|
|
4613
4629
|
return Dr(f, () => ({
|
|
4614
|
-
resetForm:
|
|
4630
|
+
resetForm: D,
|
|
4615
4631
|
clearInput: O,
|
|
4616
4632
|
focusInitialElement: E,
|
|
4617
|
-
getValues:
|
|
4618
|
-
updateFormValue:
|
|
4633
|
+
getValues: _,
|
|
4634
|
+
updateFormValue: W,
|
|
4619
4635
|
setBtnDisabledSubmit: g
|
|
4620
4636
|
})), /* @__PURE__ */ o.jsxs(
|
|
4621
4637
|
"form",
|
|
4622
4638
|
{
|
|
4623
4639
|
autoComplete: i ?? "off",
|
|
4624
|
-
onSubmit:
|
|
4640
|
+
onSubmit: k,
|
|
4625
4641
|
className: d ?? "",
|
|
4626
4642
|
children: [
|
|
4627
4643
|
/* @__PURE__ */ o.jsxs("div", { className: "form-content", children: [
|
|
4628
|
-
e.map((
|
|
4629
|
-
const
|
|
4644
|
+
e.map((w, S) => {
|
|
4645
|
+
const $ = w.onRequired ? w.onRequired(w.value) : w.required ?? !1, R = w.onDisabled ? w.onDisabled(w.value) : w.disabled ?? !1;
|
|
4630
4646
|
return /* @__PURE__ */ o.jsxs(
|
|
4631
4647
|
"div",
|
|
4632
4648
|
{
|
|
4633
|
-
className: `d-flex flex-column ${
|
|
4649
|
+
className: `d-flex flex-column ${w.className ?? ""} form-group form-group-${w.type}`,
|
|
4634
4650
|
children: [
|
|
4635
|
-
|
|
4636
|
-
|
|
4637
|
-
|
|
4651
|
+
w.label && /* @__PURE__ */ o.jsx("label", { children: w.label }),
|
|
4652
|
+
w.icon && /* @__PURE__ */ o.jsx(V, { classIcon: w.icon }),
|
|
4653
|
+
w.type === "select" ? /* @__PURE__ */ o.jsx(
|
|
4638
4654
|
fo,
|
|
4639
4655
|
{
|
|
4640
|
-
id:
|
|
4656
|
+
id: w.id ?? w.name,
|
|
4641
4657
|
label: void 0,
|
|
4642
|
-
name:
|
|
4643
|
-
options:
|
|
4658
|
+
name: w.name,
|
|
4659
|
+
options: w.options ?? [],
|
|
4644
4660
|
disabled: R,
|
|
4645
|
-
multiple:
|
|
4646
|
-
value: h[
|
|
4647
|
-
required:
|
|
4648
|
-
defaultValue:
|
|
4649
|
-
placeholder:
|
|
4650
|
-
onChangeMultiple: (A) =>
|
|
4651
|
-
onChange: (A) =>
|
|
4661
|
+
multiple: w.multiple,
|
|
4662
|
+
value: h[w.name],
|
|
4663
|
+
required: $,
|
|
4664
|
+
defaultValue: w.value,
|
|
4665
|
+
placeholder: w.placeholder,
|
|
4666
|
+
onChangeMultiple: (A) => y(A, w.name, w),
|
|
4667
|
+
onChange: (A) => y(A, w.name, w)
|
|
4652
4668
|
}
|
|
4653
|
-
) :
|
|
4669
|
+
) : w.type === "textarea" ? /* @__PURE__ */ o.jsx(
|
|
4654
4670
|
il,
|
|
4655
4671
|
{
|
|
4656
|
-
id:
|
|
4657
|
-
name:
|
|
4672
|
+
id: w.id ?? w.name,
|
|
4673
|
+
name: w.name,
|
|
4658
4674
|
className: "textarea-input",
|
|
4659
|
-
placeholder:
|
|
4675
|
+
placeholder: w.placeholder ?? "",
|
|
4660
4676
|
disabled: R,
|
|
4661
|
-
required:
|
|
4662
|
-
value: h[
|
|
4663
|
-
onChange: (A, G) =>
|
|
4677
|
+
required: $,
|
|
4678
|
+
value: h[w.name],
|
|
4679
|
+
onChange: (A, G) => x(G, A, w)
|
|
4664
4680
|
}
|
|
4665
4681
|
) : /* @__PURE__ */ o.jsx(
|
|
4666
4682
|
wr,
|
|
4667
4683
|
{
|
|
4668
|
-
id:
|
|
4669
|
-
ref: (A) => m.current[
|
|
4670
|
-
name:
|
|
4671
|
-
type:
|
|
4672
|
-
placeholder:
|
|
4673
|
-
autoComplete:
|
|
4684
|
+
id: w.id ?? w.name,
|
|
4685
|
+
ref: (A) => m.current[w.name] = A,
|
|
4686
|
+
name: w.name,
|
|
4687
|
+
type: w.type,
|
|
4688
|
+
placeholder: w.placeholder ?? "",
|
|
4689
|
+
autoComplete: w.autoComplete,
|
|
4674
4690
|
tabIndex: 0,
|
|
4675
4691
|
disabled: R,
|
|
4676
|
-
autoFocus:
|
|
4677
|
-
required:
|
|
4678
|
-
step:
|
|
4679
|
-
value: h[
|
|
4680
|
-
checked:
|
|
4681
|
-
onChange: (A) =>
|
|
4682
|
-
onInvalid:
|
|
4692
|
+
autoFocus: w.focus ?? !1,
|
|
4693
|
+
required: $,
|
|
4694
|
+
step: w.step ?? "0.01",
|
|
4695
|
+
value: h[w.name],
|
|
4696
|
+
checked: w.type === "checkbox" ? !!h[w.name] : void 0,
|
|
4697
|
+
onChange: (A) => b(A, w),
|
|
4698
|
+
onInvalid: w.onInvalid ? w.onInvalid : void 0
|
|
4683
4699
|
}
|
|
4684
4700
|
)
|
|
4685
4701
|
]
|
|
4686
4702
|
},
|
|
4687
|
-
|
|
4703
|
+
S
|
|
4688
4704
|
);
|
|
4689
4705
|
}),
|
|
4690
4706
|
a
|
|
@@ -4701,7 +4717,7 @@ const Ul = ({
|
|
|
4701
4717
|
}
|
|
4702
4718
|
);
|
|
4703
4719
|
}
|
|
4704
|
-
),
|
|
4720
|
+
), Fo = Ue(
|
|
4705
4721
|
({
|
|
4706
4722
|
id: e,
|
|
4707
4723
|
name: t,
|
|
@@ -4719,17 +4735,17 @@ const Ul = ({
|
|
|
4719
4735
|
onChange: h,
|
|
4720
4736
|
onBlur: p,
|
|
4721
4737
|
onClick: m,
|
|
4722
|
-
onKeyDown:
|
|
4723
|
-
onFocus:
|
|
4724
|
-
},
|
|
4725
|
-
const
|
|
4738
|
+
onKeyDown: b,
|
|
4739
|
+
onFocus: x
|
|
4740
|
+
}, y) => {
|
|
4741
|
+
const k = I(
|
|
4726
4742
|
(O) => {
|
|
4727
4743
|
let E = O.target.value.replace(",", ".");
|
|
4728
4744
|
!/^-?\d*[.,]?\d*$/.test(E) && E !== "" || l && E.length > l || h == null || h(O, E);
|
|
4729
4745
|
},
|
|
4730
4746
|
[h, l]
|
|
4731
|
-
),
|
|
4732
|
-
if (
|
|
4747
|
+
), D = (O) => {
|
|
4748
|
+
if (b && b(O), !(/[0-9]|Backspace|Delete|ArrowLeft|ArrowRight|Tab|Enter|Home|End/.test(
|
|
4733
4749
|
O.key
|
|
4734
4750
|
) || O.key === "." || O.key === "," || O.key === "-")) {
|
|
4735
4751
|
O.preventDefault();
|
|
@@ -4740,7 +4756,7 @@ const Ul = ({
|
|
|
4740
4756
|
return /* @__PURE__ */ o.jsx("div", { className: "input-container input-container-number", children: /* @__PURE__ */ o.jsx(
|
|
4741
4757
|
"input",
|
|
4742
4758
|
{
|
|
4743
|
-
ref:
|
|
4759
|
+
ref: y,
|
|
4744
4760
|
id: e,
|
|
4745
4761
|
name: t,
|
|
4746
4762
|
type: Be.TEXT,
|
|
@@ -4755,10 +4771,10 @@ const Ul = ({
|
|
|
4755
4771
|
inputMode: v,
|
|
4756
4772
|
spellCheck: "false",
|
|
4757
4773
|
className: `input-field ${a ?? ""}`,
|
|
4758
|
-
onChange:
|
|
4774
|
+
onChange: k,
|
|
4759
4775
|
onWheel: (O) => O.currentTarget.blur(),
|
|
4760
|
-
onKeyDown:
|
|
4761
|
-
onFocus:
|
|
4776
|
+
onKeyDown: D,
|
|
4777
|
+
onFocus: x,
|
|
4762
4778
|
onBlur: p,
|
|
4763
4779
|
onClick: (O) => {
|
|
4764
4780
|
O.stopPropagation(), m == null || m(O);
|
|
@@ -4767,7 +4783,7 @@ const Ul = ({
|
|
|
4767
4783
|
) });
|
|
4768
4784
|
}
|
|
4769
4785
|
);
|
|
4770
|
-
|
|
4786
|
+
Fo.displayName = "InputNumber";
|
|
4771
4787
|
const Hl = Ue(
|
|
4772
4788
|
({
|
|
4773
4789
|
value: e = "",
|
|
@@ -4784,7 +4800,7 @@ const Hl = Ue(
|
|
|
4784
4800
|
}
|
|
4785
4801
|
}, [a, e]);
|
|
4786
4802
|
return /* @__PURE__ */ o.jsx(
|
|
4787
|
-
|
|
4803
|
+
Fo,
|
|
4788
4804
|
{
|
|
4789
4805
|
...i,
|
|
4790
4806
|
ref: s,
|
|
@@ -4832,7 +4848,7 @@ const Hl = Ue(
|
|
|
4832
4848
|
showBackNavigation: s,
|
|
4833
4849
|
onClickBackNavigation: c
|
|
4834
4850
|
}) => {
|
|
4835
|
-
const l = re(null), [d, f] =
|
|
4851
|
+
const l = re(null), [d, f] = F(!1), v = I(() => {
|
|
4836
4852
|
f(!d);
|
|
4837
4853
|
}, [d, f]);
|
|
4838
4854
|
return /* @__PURE__ */ o.jsxs("div", { className: `header ${a ? "header--fixed" : ""}`, children: [
|
|
@@ -4932,7 +4948,7 @@ const Hl = Ue(
|
|
|
4932
4948
|
title: i,
|
|
4933
4949
|
id: s
|
|
4934
4950
|
}, c) => {
|
|
4935
|
-
const [l, d] =
|
|
4951
|
+
const [l, d] = F(null), f = I(async () => {
|
|
4936
4952
|
const v = new Blob([e], { type: "application/pdf" }), g = URL.createObjectURL(v);
|
|
4937
4953
|
if (!t) {
|
|
4938
4954
|
const h = `${g}#toolbar=0&navpanes=0&scrollbar=0`;
|
|
@@ -4972,7 +4988,7 @@ const Hl = Ue(
|
|
|
4972
4988
|
disabledMinus: i,
|
|
4973
4989
|
pas: s
|
|
4974
4990
|
}) => {
|
|
4975
|
-
const [c, l] =
|
|
4991
|
+
const [c, l] = F(s), d = I(
|
|
4976
4992
|
(h) => {
|
|
4977
4993
|
n || (l(h), e && e(t, h));
|
|
4978
4994
|
},
|
|
@@ -5036,7 +5052,7 @@ const Hl = Ue(
|
|
|
5036
5052
|
setIsVisible: c,
|
|
5037
5053
|
id: l
|
|
5038
5054
|
}, d) => {
|
|
5039
|
-
const [f, v] =
|
|
5055
|
+
const [f, v] = F(n ?? !1), g = re(null), h = re(null), p = Re(
|
|
5040
5056
|
() => [
|
|
5041
5057
|
{
|
|
5042
5058
|
value: "",
|
|
@@ -5056,45 +5072,45 @@ const Hl = Ue(
|
|
|
5056
5072
|
n !== void 0 && v(n);
|
|
5057
5073
|
}, [n]);
|
|
5058
5074
|
const m = I(
|
|
5059
|
-
(
|
|
5060
|
-
c && c(
|
|
5075
|
+
(y) => {
|
|
5076
|
+
c && c(y), v(y);
|
|
5061
5077
|
},
|
|
5062
5078
|
[c]
|
|
5063
|
-
),
|
|
5064
|
-
(
|
|
5065
|
-
if (!
|
|
5079
|
+
), b = I(
|
|
5080
|
+
(y) => {
|
|
5081
|
+
if (!y || !y[t ?? "recherche"])
|
|
5066
5082
|
return m(!1);
|
|
5067
5083
|
m(!0), g.current && clearTimeout(g.current), g.current = setTimeout(() => {
|
|
5068
|
-
s && s(
|
|
5084
|
+
s && s(y);
|
|
5069
5085
|
}, i ?? 500);
|
|
5070
5086
|
},
|
|
5071
5087
|
[m, s, i]
|
|
5072
|
-
),
|
|
5073
|
-
(
|
|
5074
|
-
console.log("Form Submitted: ",
|
|
5088
|
+
), x = I(
|
|
5089
|
+
(y) => {
|
|
5090
|
+
console.log("Form Submitted: ", y);
|
|
5075
5091
|
},
|
|
5076
5092
|
[]
|
|
5077
5093
|
);
|
|
5078
5094
|
return Dr(d, () => ({
|
|
5079
|
-
clearInput: (
|
|
5080
|
-
var
|
|
5081
|
-
(
|
|
5095
|
+
clearInput: (y) => {
|
|
5096
|
+
var k;
|
|
5097
|
+
(k = h.current) == null || k.clearInput(y);
|
|
5082
5098
|
},
|
|
5083
5099
|
resetForm: () => {
|
|
5084
|
-
var
|
|
5085
|
-
(
|
|
5100
|
+
var y;
|
|
5101
|
+
(y = h.current) == null || y.resetForm();
|
|
5086
5102
|
},
|
|
5087
5103
|
focusInitialElement: () => {
|
|
5088
|
-
var
|
|
5089
|
-
(
|
|
5104
|
+
var y;
|
|
5105
|
+
(y = h.current) == null || y.focusInitialElement();
|
|
5090
5106
|
}
|
|
5091
5107
|
})), /* @__PURE__ */ o.jsxs("div", { className: "search", children: [
|
|
5092
5108
|
/* @__PURE__ */ o.jsx(
|
|
5093
5109
|
sl,
|
|
5094
5110
|
{
|
|
5095
5111
|
ref: h,
|
|
5096
|
-
onSubmit:
|
|
5097
|
-
onChange:
|
|
5112
|
+
onSubmit: x,
|
|
5113
|
+
onChange: b,
|
|
5098
5114
|
hideSubmit: !0,
|
|
5099
5115
|
initialForm: p
|
|
5100
5116
|
}
|
|
@@ -5123,57 +5139,57 @@ const Hl = Ue(
|
|
|
5123
5139
|
closeOnClickOutside: c = !0,
|
|
5124
5140
|
displayOverlay: l = !0
|
|
5125
5141
|
}) => {
|
|
5126
|
-
const [d, f] =
|
|
5127
|
-
X(() => (
|
|
5128
|
-
|
|
5142
|
+
const [d, f] = F(e || !1), [v, g] = F(0), [h, p] = F(!1), m = re(null), b = re(null), x = re(0), y = re(0), k = re(null);
|
|
5143
|
+
X(() => (b.current || (b.current = document.createElement("div"), b.current.id = `sidebar-root-${i || crypto.randomUUID()}`, document.body.appendChild(b.current)), () => {
|
|
5144
|
+
b.current && b.current.parentNode && (document.body.removeChild(b.current), b.current = null);
|
|
5129
5145
|
}), [i]), X(() => {
|
|
5130
5146
|
f(e || !1);
|
|
5131
5147
|
}, [e]);
|
|
5132
|
-
const
|
|
5148
|
+
const D = I(() => {
|
|
5133
5149
|
f(!1), n && n(!1);
|
|
5134
5150
|
}, [n]), O = I(
|
|
5135
|
-
(
|
|
5136
|
-
c && m.current && !m.current.contains(
|
|
5151
|
+
(S) => {
|
|
5152
|
+
c && m.current && !m.current.contains(S.target) && D();
|
|
5137
5153
|
},
|
|
5138
|
-
[
|
|
5139
|
-
), E = I((
|
|
5140
|
-
const
|
|
5141
|
-
|
|
5142
|
-
}, []),
|
|
5143
|
-
(
|
|
5154
|
+
[D, c]
|
|
5155
|
+
), E = I((S) => {
|
|
5156
|
+
const $ = S.touches[0];
|
|
5157
|
+
x.current = $.clientX, y.current = $.clientY, k.current = null, p(!1), g(0);
|
|
5158
|
+
}, []), _ = I(
|
|
5159
|
+
(S) => {
|
|
5144
5160
|
if (!d) return;
|
|
5145
|
-
const
|
|
5146
|
-
if (!
|
|
5161
|
+
const $ = S.touches[0], R = $.clientX - x.current, A = $.clientY - y.current;
|
|
5162
|
+
if (!k.current) {
|
|
5147
5163
|
if (Math.abs(R) < Pa && Math.abs(A) < Pa)
|
|
5148
5164
|
return;
|
|
5149
|
-
|
|
5165
|
+
k.current = Math.abs(R) > Math.abs(A) ? "x" : "y";
|
|
5150
5166
|
}
|
|
5151
|
-
|
|
5167
|
+
k.current === "x" && (S.preventDefault(), p(!0), g(Math.max(0, R)));
|
|
5152
5168
|
},
|
|
5153
5169
|
[d]
|
|
5154
|
-
),
|
|
5155
|
-
(
|
|
5156
|
-
d && (
|
|
5170
|
+
), W = I(
|
|
5171
|
+
(S) => {
|
|
5172
|
+
d && (k.current === "x" && S.changedTouches[0].clientX - x.current > fl && D(), p(!1), g(0), k.current = null);
|
|
5157
5173
|
},
|
|
5158
|
-
[d,
|
|
5159
|
-
),
|
|
5160
|
-
(
|
|
5161
|
-
|
|
5174
|
+
[d, D]
|
|
5175
|
+
), w = I(
|
|
5176
|
+
(S) => {
|
|
5177
|
+
S.preventDefault(), D();
|
|
5162
5178
|
},
|
|
5163
|
-
[
|
|
5179
|
+
[D]
|
|
5164
5180
|
);
|
|
5165
5181
|
return X(() => (d ? (document.addEventListener("mousedown", O), document.addEventListener("touchstart", O, {
|
|
5166
5182
|
passive: !0
|
|
5167
5183
|
})) : (document.removeEventListener("mousedown", O), document.removeEventListener("touchstart", O)), () => {
|
|
5168
5184
|
document.removeEventListener("mousedown", O), document.removeEventListener("touchstart", O);
|
|
5169
|
-
}), [d, O]),
|
|
5185
|
+
}), [d, O]), b.current ? Nn.createPortal(
|
|
5170
5186
|
/* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
5171
5187
|
d && l && /* @__PURE__ */ o.jsx(
|
|
5172
5188
|
"div",
|
|
5173
5189
|
{
|
|
5174
5190
|
className: "overlay",
|
|
5175
|
-
onClick:
|
|
5176
|
-
onTouchEnd:
|
|
5191
|
+
onClick: D,
|
|
5192
|
+
onTouchEnd: w
|
|
5177
5193
|
}
|
|
5178
5194
|
),
|
|
5179
5195
|
/* @__PURE__ */ o.jsxs(
|
|
@@ -5187,19 +5203,19 @@ const Hl = Ue(
|
|
|
5187
5203
|
},
|
|
5188
5204
|
className: `sidebar ${d ? "open" : "closed"} ${a ?? ""}`,
|
|
5189
5205
|
onTouchStart: E,
|
|
5190
|
-
onTouchMove:
|
|
5191
|
-
onTouchEnd:
|
|
5206
|
+
onTouchMove: _,
|
|
5207
|
+
onTouchEnd: W,
|
|
5192
5208
|
children: [
|
|
5193
5209
|
/* @__PURE__ */ o.jsxs("div", { className: "sidebar-header", children: [
|
|
5194
5210
|
r && /* @__PURE__ */ o.jsx("h2", { className: "flex-1", children: r }),
|
|
5195
|
-
/* @__PURE__ */ o.jsx("button", { className: "toggle-btn", onClick:
|
|
5211
|
+
/* @__PURE__ */ o.jsx("button", { className: "toggle-btn", onClick: D, children: /* @__PURE__ */ o.jsx(V, { classIcon: "bi-x-lg" }) })
|
|
5196
5212
|
] }),
|
|
5197
5213
|
t && t
|
|
5198
5214
|
]
|
|
5199
5215
|
}
|
|
5200
5216
|
)
|
|
5201
5217
|
] }),
|
|
5202
|
-
|
|
5218
|
+
b.current
|
|
5203
5219
|
) : /* @__PURE__ */ o.jsx(o.Fragment, {});
|
|
5204
5220
|
}, tu = (e) => /* @__PURE__ */ o.jsx(hl, { ...e, className: `full sidebar-data ${e.className}`, children: e.children && /* @__PURE__ */ o.jsx("div", { className: `sidebar-data-content ${e.classNameContent} `, children: e.children }) }), ru = ({
|
|
5205
5221
|
items: e,
|
|
@@ -5210,7 +5226,7 @@ const Hl = Ue(
|
|
|
5210
5226
|
tabClassName: i = "",
|
|
5211
5227
|
panelClassName: s = ""
|
|
5212
5228
|
}) => {
|
|
5213
|
-
const c = typeof r == "number", [l, d] =
|
|
5229
|
+
const c = typeof r == "number", [l, d] = F(t), f = c ? r : l;
|
|
5214
5230
|
X(() => {
|
|
5215
5231
|
!c && (t < 0 || t >= e.length) && d(0);
|
|
5216
5232
|
}, [t, e.length, c]);
|
|
@@ -5331,8 +5347,8 @@ export {
|
|
|
5331
5347
|
xt as Button,
|
|
5332
5348
|
$l as ButtonAction,
|
|
5333
5349
|
Ll as ButtonActions,
|
|
5334
|
-
|
|
5335
|
-
|
|
5350
|
+
Wl as ButtonFile,
|
|
5351
|
+
Fl as Card,
|
|
5336
5352
|
Vl as Carousel,
|
|
5337
5353
|
Yl as Damier,
|
|
5338
5354
|
Bl as DataTable,
|
|
@@ -5349,11 +5365,11 @@ export {
|
|
|
5349
5365
|
Sl as ImageChecker,
|
|
5350
5366
|
Dl as ImageExist,
|
|
5351
5367
|
wr as Input,
|
|
5352
|
-
|
|
5368
|
+
Fo as InputNumber,
|
|
5353
5369
|
Hl as InputPrice,
|
|
5354
5370
|
pa as Loader,
|
|
5355
|
-
|
|
5356
|
-
|
|
5371
|
+
Cl as LocalDateStringToUTC,
|
|
5372
|
+
Wa as Menus,
|
|
5357
5373
|
Kl as Message,
|
|
5358
5374
|
Jl as Modal,
|
|
5359
5375
|
An as OverlayPanel,
|
|
@@ -5371,7 +5387,7 @@ export {
|
|
|
5371
5387
|
Il as WidgetSupport,
|
|
5372
5388
|
Ol as isValidEAN13,
|
|
5373
5389
|
Pl as localDateEndToUTC,
|
|
5374
|
-
|
|
5390
|
+
_l as localDateStartToUTC,
|
|
5375
5391
|
Nl as objectToQueryParams,
|
|
5376
5392
|
El as useCurrency,
|
|
5377
5393
|
jl as useHistoryDepth,
|