kelt-ui-kit-react 1.7.6 → 1.7.9
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 +798 -783
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/damier/Damier.tsx +16 -7
- package/src/damier/damier.css +10 -4
- package/src/sidebar/Sidebar.tsx +28 -2
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as Le from "react";
|
|
2
|
-
import
|
|
2
|
+
import Ae, { createContext as Ra, useRef as oe, useState as F, useEffect as q, useContext as On, useCallback as R, useDebugValue as Gn, createElement as Yo, forwardRef as Ue, useId as Bo, useImperativeHandle as Dr, useMemo as Re, Children as Uo, cloneElement as zo } from "react";
|
|
3
3
|
import Nn, { createPortal as Aa } 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 Go(e) {
|
|
@@ -19,13 +19,13 @@ var Hn;
|
|
|
19
19
|
function Ho() {
|
|
20
20
|
if (Hn) return It;
|
|
21
21
|
Hn = 1;
|
|
22
|
-
var e =
|
|
22
|
+
var e = Ae, t = Symbol.for("react.element"), r = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, a = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
23
23
|
function s(l, c, d) {
|
|
24
|
-
var f,
|
|
24
|
+
var f, m = {}, g = null, h = null;
|
|
25
25
|
d !== void 0 && (g = "" + d), c.key !== void 0 && (g = "" + c.key), c.ref !== void 0 && (h = c.ref);
|
|
26
|
-
for (f in c) n.call(c, f) && !i.hasOwnProperty(f) && (
|
|
27
|
-
if (l && l.defaultProps) for (f in c = l.defaultProps, c)
|
|
28
|
-
return { $$typeof: t, type: l, key: g, ref: h, props:
|
|
26
|
+
for (f in c) n.call(c, f) && !i.hasOwnProperty(f) && (m[f] = c[f]);
|
|
27
|
+
if (l && l.defaultProps) for (f in c = l.defaultProps, c) m[f] === void 0 && (m[f] = c[f]);
|
|
28
|
+
return { $$typeof: t, type: l, key: g, ref: h, props: m, _owner: a.current };
|
|
29
29
|
}
|
|
30
30
|
return It.Fragment = r, It.jsx = s, It.jsxs = s, It;
|
|
31
31
|
}
|
|
@@ -42,46 +42,46 @@ var $t = {};
|
|
|
42
42
|
var qn;
|
|
43
43
|
function qo() {
|
|
44
44
|
return qn || (qn = 1, process.env.NODE_ENV !== "production" && function() {
|
|
45
|
-
var e =
|
|
46
|
-
function
|
|
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"), l = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), m = Symbol.for("react.memo"), g = Symbol.for("react.lazy"), h = Symbol.for("react.offscreen"), p = Symbol.iterator, v = "@@iterator";
|
|
46
|
+
function b(u) {
|
|
47
47
|
if (u === null || typeof u != "object")
|
|
48
48
|
return null;
|
|
49
|
-
var
|
|
50
|
-
return typeof
|
|
49
|
+
var w = p && u[p] || u[v];
|
|
50
|
+
return typeof w == "function" ? w : null;
|
|
51
51
|
}
|
|
52
52
|
var j = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
53
|
-
function
|
|
53
|
+
function x(u) {
|
|
54
54
|
{
|
|
55
|
-
for (var
|
|
56
|
-
|
|
57
|
-
|
|
55
|
+
for (var w = arguments.length, O = new Array(w > 1 ? w - 1 : 0), A = 1; A < w; A++)
|
|
56
|
+
O[A - 1] = arguments[A];
|
|
57
|
+
k("error", u, O);
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function k(u, w, O) {
|
|
61
61
|
{
|
|
62
|
-
var
|
|
63
|
-
B !== "" && (
|
|
64
|
-
var
|
|
65
|
-
return String(
|
|
62
|
+
var A = j.ReactDebugCurrentFrame, B = A.getStackAddendum();
|
|
63
|
+
B !== "" && (w += "%s", O = O.concat([B]));
|
|
64
|
+
var E = O.map(function(P) {
|
|
65
|
+
return String(P);
|
|
66
66
|
});
|
|
67
|
-
|
|
67
|
+
E.unshift("Warning: " + w), Function.prototype.apply.call(console[u], console, E);
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
|
-
var S = !1,
|
|
70
|
+
var S = !1, D = !1, N = !1, C = !1, W = !1, y;
|
|
71
71
|
y = Symbol.for("react.module.reference");
|
|
72
|
-
function
|
|
73
|
-
return !!(typeof u == "string" || typeof u == "function" || u === n || u === i || W || u === a || u === d || u === f ||
|
|
72
|
+
function _(u) {
|
|
73
|
+
return !!(typeof u == "string" || typeof u == "function" || u === n || u === i || W || u === a || u === d || u === f || C || u === h || S || D || N || typeof u == "object" && u !== null && (u.$$typeof === g || u.$$typeof === m || u.$$typeof === s || u.$$typeof === l || u.$$typeof === c || // This needs to include all possible module reference object
|
|
74
74
|
// types supported by any Flight configuration anywhere since
|
|
75
75
|
// we don't know which Flight build this will end up being used
|
|
76
76
|
// with.
|
|
77
77
|
u.$$typeof === y || u.getModuleId !== void 0));
|
|
78
78
|
}
|
|
79
|
-
function I(u,
|
|
80
|
-
var
|
|
81
|
-
if (
|
|
82
|
-
return
|
|
83
|
-
var B =
|
|
84
|
-
return B !== "" ?
|
|
79
|
+
function I(u, w, O) {
|
|
80
|
+
var A = u.displayName;
|
|
81
|
+
if (A)
|
|
82
|
+
return A;
|
|
83
|
+
var B = w.displayName || w.name || "";
|
|
84
|
+
return B !== "" ? O + "(" + B + ")" : O;
|
|
85
85
|
}
|
|
86
86
|
function M(u) {
|
|
87
87
|
return u.displayName || "Context";
|
|
@@ -89,7 +89,7 @@ function qo() {
|
|
|
89
89
|
function L(u) {
|
|
90
90
|
if (u == null)
|
|
91
91
|
return null;
|
|
92
|
-
if (typeof u.tag == "number" &&
|
|
92
|
+
if (typeof u.tag == "number" && x("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 qo() {
|
|
|
110
110
|
if (typeof u == "object")
|
|
111
111
|
switch (u.$$typeof) {
|
|
112
112
|
case l:
|
|
113
|
-
var
|
|
114
|
-
return M(
|
|
113
|
+
var w = u;
|
|
114
|
+
return M(w) + ".Consumer";
|
|
115
115
|
case s:
|
|
116
|
-
var
|
|
117
|
-
return M(
|
|
116
|
+
var O = u;
|
|
117
|
+
return M(O._context) + ".Provider";
|
|
118
118
|
case c:
|
|
119
119
|
return I(u, u.render, "ForwardRef");
|
|
120
|
-
case
|
|
121
|
-
var
|
|
122
|
-
return
|
|
120
|
+
case m:
|
|
121
|
+
var A = u.displayName || null;
|
|
122
|
+
return A !== null ? A : L(u.type) || "Memo";
|
|
123
123
|
case g: {
|
|
124
|
-
var B = u,
|
|
124
|
+
var B = u, E = B._payload, P = B._init;
|
|
125
125
|
try {
|
|
126
|
-
return L(
|
|
126
|
+
return L(P(E));
|
|
127
127
|
} catch {
|
|
128
128
|
return null;
|
|
129
129
|
}
|
|
@@ -131,14 +131,14 @@ function qo() {
|
|
|
131
131
|
}
|
|
132
132
|
return null;
|
|
133
133
|
}
|
|
134
|
-
var X = Object.assign, ve = 0, re, xe,
|
|
134
|
+
var X = Object.assign, ve = 0, re, xe, Ie, ee, K, ce, Z;
|
|
135
135
|
function Se() {
|
|
136
136
|
}
|
|
137
137
|
Se.__reactDisabledLog = !0;
|
|
138
138
|
function Ee() {
|
|
139
139
|
{
|
|
140
140
|
if (ve === 0) {
|
|
141
|
-
re = console.log, xe = console.info,
|
|
141
|
+
re = console.log, xe = console.info, Ie = console.warn, ee = console.error, K = console.group, ce = console.groupCollapsed, Z = console.groupEnd;
|
|
142
142
|
var u = {
|
|
143
143
|
configurable: !0,
|
|
144
144
|
enumerable: !0,
|
|
@@ -174,7 +174,7 @@ function qo() {
|
|
|
174
174
|
value: xe
|
|
175
175
|
}),
|
|
176
176
|
warn: X({}, u, {
|
|
177
|
-
value:
|
|
177
|
+
value: Ie
|
|
178
178
|
}),
|
|
179
179
|
error: X({}, u, {
|
|
180
180
|
value: ee
|
|
@@ -190,18 +190,18 @@ function qo() {
|
|
|
190
190
|
})
|
|
191
191
|
});
|
|
192
192
|
}
|
|
193
|
-
ve < 0 &&
|
|
193
|
+
ve < 0 && x("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
194
194
|
}
|
|
195
195
|
}
|
|
196
196
|
var me = j.ReactCurrentDispatcher, pe;
|
|
197
|
-
function le(u,
|
|
197
|
+
function le(u, w, O) {
|
|
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 A = B.stack.trim().match(/\n( *(at )?)/);
|
|
204
|
+
pe = A && A[1] || "";
|
|
205
205
|
}
|
|
206
206
|
return `
|
|
207
207
|
` + pe + u;
|
|
@@ -212,65 +212,65 @@ function qo() {
|
|
|
212
212
|
var _e = typeof WeakMap == "function" ? WeakMap : Map;
|
|
213
213
|
De = new _e();
|
|
214
214
|
}
|
|
215
|
-
function fe(u,
|
|
215
|
+
function fe(u, w) {
|
|
216
216
|
if (!u || ne)
|
|
217
217
|
return "";
|
|
218
218
|
{
|
|
219
|
-
var
|
|
220
|
-
if (
|
|
221
|
-
return
|
|
219
|
+
var O = De.get(u);
|
|
220
|
+
if (O !== void 0)
|
|
221
|
+
return O;
|
|
222
222
|
}
|
|
223
|
-
var
|
|
223
|
+
var A;
|
|
224
224
|
ne = !0;
|
|
225
225
|
var B = Error.prepareStackTrace;
|
|
226
226
|
Error.prepareStackTrace = void 0;
|
|
227
|
-
var
|
|
228
|
-
|
|
227
|
+
var E;
|
|
228
|
+
E = me.current, me.current = null, Ee();
|
|
229
229
|
try {
|
|
230
|
-
if (
|
|
231
|
-
var
|
|
230
|
+
if (w) {
|
|
231
|
+
var P = function() {
|
|
232
232
|
throw Error();
|
|
233
233
|
};
|
|
234
|
-
if (Object.defineProperty(
|
|
234
|
+
if (Object.defineProperty(P.prototype, "props", {
|
|
235
235
|
set: function() {
|
|
236
236
|
throw Error();
|
|
237
237
|
}
|
|
238
238
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
239
239
|
try {
|
|
240
|
-
Reflect.construct(
|
|
240
|
+
Reflect.construct(P, []);
|
|
241
241
|
} catch (ye) {
|
|
242
|
-
|
|
242
|
+
A = ye;
|
|
243
243
|
}
|
|
244
|
-
Reflect.construct(u, [],
|
|
244
|
+
Reflect.construct(u, [], P);
|
|
245
245
|
} else {
|
|
246
246
|
try {
|
|
247
|
-
|
|
247
|
+
P.call();
|
|
248
248
|
} catch (ye) {
|
|
249
|
-
|
|
249
|
+
A = ye;
|
|
250
250
|
}
|
|
251
|
-
u.call(
|
|
251
|
+
u.call(P.prototype);
|
|
252
252
|
}
|
|
253
253
|
} else {
|
|
254
254
|
try {
|
|
255
255
|
throw Error();
|
|
256
256
|
} catch (ye) {
|
|
257
|
-
|
|
257
|
+
A = ye;
|
|
258
258
|
}
|
|
259
259
|
u();
|
|
260
260
|
}
|
|
261
261
|
} catch (ye) {
|
|
262
|
-
if (ye &&
|
|
263
|
-
for (var
|
|
264
|
-
`), z =
|
|
265
|
-
`), V =
|
|
262
|
+
if (ye && A && typeof ye.stack == "string") {
|
|
263
|
+
for (var T = ye.stack.split(`
|
|
264
|
+
`), z = A.stack.split(`
|
|
265
|
+
`), V = T.length - 1, J = z.length - 1; V >= 1 && J >= 0 && T[V] !== z[J]; )
|
|
266
266
|
J--;
|
|
267
267
|
for (; V >= 1 && J >= 0; V--, J--)
|
|
268
|
-
if (
|
|
268
|
+
if (T[V] !== z[J]) {
|
|
269
269
|
if (V !== 1 || J !== 1)
|
|
270
270
|
do
|
|
271
|
-
if (V--, J--, J < 0 ||
|
|
271
|
+
if (V--, J--, J < 0 || T[V] !== z[J]) {
|
|
272
272
|
var ge = `
|
|
273
|
-
` +
|
|
273
|
+
` + T[V].replace(" at new ", " at ");
|
|
274
274
|
return u.displayName && ge.includes("<anonymous>") && (ge = ge.replace("<anonymous>", u.displayName)), typeof u == "function" && De.set(u, ge), ge;
|
|
275
275
|
}
|
|
276
276
|
while (V >= 1 && J >= 0);
|
|
@@ -278,19 +278,19 @@ function qo() {
|
|
|
278
278
|
}
|
|
279
279
|
}
|
|
280
280
|
} finally {
|
|
281
|
-
ne = !1, me.current =
|
|
281
|
+
ne = !1, me.current = E, ke(), Error.prepareStackTrace = B;
|
|
282
282
|
}
|
|
283
283
|
var We = u ? u.displayName || u.name : "", Je = We ? le(We) : "";
|
|
284
284
|
return typeof u == "function" && De.set(u, Je), Je;
|
|
285
285
|
}
|
|
286
|
-
function Ot(u,
|
|
286
|
+
function Ot(u, w, O) {
|
|
287
287
|
return fe(u, !1);
|
|
288
288
|
}
|
|
289
289
|
function te(u) {
|
|
290
|
-
var
|
|
291
|
-
return !!(
|
|
290
|
+
var w = u.prototype;
|
|
291
|
+
return !!(w && w.isReactComponent);
|
|
292
292
|
}
|
|
293
|
-
function Ce(u,
|
|
293
|
+
function Ce(u, w, O) {
|
|
294
294
|
if (u == null)
|
|
295
295
|
return "";
|
|
296
296
|
if (typeof u == "function")
|
|
@@ -307,42 +307,42 @@ function qo() {
|
|
|
307
307
|
switch (u.$$typeof) {
|
|
308
308
|
case c:
|
|
309
309
|
return Ot(u.render);
|
|
310
|
-
case
|
|
311
|
-
return Ce(u.type,
|
|
310
|
+
case m:
|
|
311
|
+
return Ce(u.type, w, O);
|
|
312
312
|
case g: {
|
|
313
|
-
var
|
|
313
|
+
var A = u, B = A._payload, E = A._init;
|
|
314
314
|
try {
|
|
315
|
-
return Ce(
|
|
315
|
+
return Ce(E(B), w, O);
|
|
316
316
|
} catch {
|
|
317
317
|
}
|
|
318
318
|
}
|
|
319
319
|
}
|
|
320
320
|
return "";
|
|
321
321
|
}
|
|
322
|
-
var
|
|
322
|
+
var ie = Object.prototype.hasOwnProperty, He = {}, Nt = j.ReactDebugCurrentFrame;
|
|
323
323
|
function qe(u) {
|
|
324
324
|
if (u) {
|
|
325
|
-
var
|
|
326
|
-
Nt.setExtraStackFrame(
|
|
325
|
+
var w = u._owner, O = Ce(u.type, u._source, w ? w.type : null);
|
|
326
|
+
Nt.setExtraStackFrame(O);
|
|
327
327
|
} else
|
|
328
328
|
Nt.setExtraStackFrame(null);
|
|
329
329
|
}
|
|
330
|
-
function Lr(u,
|
|
330
|
+
function Lr(u, w, O, A, B) {
|
|
331
331
|
{
|
|
332
|
-
var
|
|
333
|
-
for (var
|
|
334
|
-
if (
|
|
335
|
-
var
|
|
332
|
+
var E = Function.call.bind(ie);
|
|
333
|
+
for (var P in u)
|
|
334
|
+
if (E(u, P)) {
|
|
335
|
+
var T = void 0;
|
|
336
336
|
try {
|
|
337
|
-
if (typeof u[
|
|
338
|
-
var z = Error((
|
|
337
|
+
if (typeof u[P] != "function") {
|
|
338
|
+
var z = Error((A || "React class") + ": " + O + " 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
|
-
|
|
341
|
+
T = u[P](w, P, A, O, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
342
342
|
} catch (V) {
|
|
343
|
-
|
|
343
|
+
T = V;
|
|
344
344
|
}
|
|
345
|
-
|
|
345
|
+
T && !(T instanceof Error) && (qe(B), x("%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).", A || "React class", O, P, typeof T), qe(null)), T instanceof Error && !(T.message in He) && (He[T.message] = !0, qe(B), x("Failed %s type: %s", O, T.message), qe(null));
|
|
346
346
|
}
|
|
347
347
|
}
|
|
348
348
|
}
|
|
@@ -352,8 +352,8 @@ function qo() {
|
|
|
352
352
|
}
|
|
353
353
|
function Ht(u) {
|
|
354
354
|
{
|
|
355
|
-
var
|
|
356
|
-
return
|
|
355
|
+
var w = typeof Symbol == "function" && Symbol.toStringTag, O = w && u[Symbol.toStringTag] || u.constructor.name || "Object";
|
|
356
|
+
return O;
|
|
357
357
|
}
|
|
358
358
|
}
|
|
359
359
|
function Wr(u) {
|
|
@@ -368,7 +368,7 @@ function qo() {
|
|
|
368
368
|
}
|
|
369
369
|
function Xt(u) {
|
|
370
370
|
if (Wr(u))
|
|
371
|
-
return
|
|
371
|
+
return x("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
373
|
var Kt = j.ReactCurrentOwner, Vr = {
|
|
374
374
|
key: !0,
|
|
@@ -377,98 +377,98 @@ function qo() {
|
|
|
377
377
|
__source: !0
|
|
378
378
|
}, it, kt;
|
|
379
379
|
function Jt(u) {
|
|
380
|
-
if (
|
|
381
|
-
var
|
|
382
|
-
if (
|
|
380
|
+
if (ie.call(u, "ref")) {
|
|
381
|
+
var w = Object.getOwnPropertyDescriptor(u, "ref").get;
|
|
382
|
+
if (w && w.isReactWarning)
|
|
383
383
|
return !1;
|
|
384
384
|
}
|
|
385
385
|
return u.ref !== void 0;
|
|
386
386
|
}
|
|
387
387
|
function Yr(u) {
|
|
388
|
-
if (
|
|
389
|
-
var
|
|
390
|
-
if (
|
|
388
|
+
if (ie.call(u, "key")) {
|
|
389
|
+
var w = Object.getOwnPropertyDescriptor(u, "key").get;
|
|
390
|
+
if (w && w.isReactWarning)
|
|
391
391
|
return !1;
|
|
392
392
|
}
|
|
393
393
|
return u.key !== void 0;
|
|
394
394
|
}
|
|
395
|
-
function st(u,
|
|
395
|
+
function st(u, w) {
|
|
396
396
|
typeof u.ref == "string" && Kt.current;
|
|
397
397
|
}
|
|
398
|
-
function Qt(u,
|
|
398
|
+
function Qt(u, w) {
|
|
399
399
|
{
|
|
400
|
-
var
|
|
401
|
-
it || (it = !0,
|
|
400
|
+
var O = function() {
|
|
401
|
+
it || (it = !0, x("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", w));
|
|
402
402
|
};
|
|
403
|
-
|
|
404
|
-
get:
|
|
403
|
+
O.isReactWarning = !0, Object.defineProperty(u, "key", {
|
|
404
|
+
get: O,
|
|
405
405
|
configurable: !0
|
|
406
406
|
});
|
|
407
407
|
}
|
|
408
408
|
}
|
|
409
|
-
function Br(u,
|
|
409
|
+
function Br(u, w) {
|
|
410
410
|
{
|
|
411
|
-
var
|
|
412
|
-
kt || (kt = !0,
|
|
411
|
+
var O = function() {
|
|
412
|
+
kt || (kt = !0, x("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", w));
|
|
413
413
|
};
|
|
414
|
-
|
|
415
|
-
get:
|
|
414
|
+
O.isReactWarning = !0, Object.defineProperty(u, "ref", {
|
|
415
|
+
get: O,
|
|
416
416
|
configurable: !0
|
|
417
417
|
});
|
|
418
418
|
}
|
|
419
419
|
}
|
|
420
|
-
var Zt = function(u,
|
|
421
|
-
var
|
|
420
|
+
var Zt = function(u, w, O, A, B, E, P) {
|
|
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:
|
|
427
|
-
ref:
|
|
428
|
-
props:
|
|
426
|
+
key: w,
|
|
427
|
+
ref: O,
|
|
428
|
+
props: P,
|
|
429
429
|
// Record the component responsible for creating this element.
|
|
430
|
-
_owner:
|
|
430
|
+
_owner: E
|
|
431
431
|
};
|
|
432
|
-
return
|
|
432
|
+
return T._store = {}, Object.defineProperty(T._store, "validated", {
|
|
433
433
|
configurable: !1,
|
|
434
434
|
enumerable: !1,
|
|
435
435
|
writable: !0,
|
|
436
436
|
value: !1
|
|
437
|
-
}), Object.defineProperty(
|
|
437
|
+
}), Object.defineProperty(T, "_self", {
|
|
438
438
|
configurable: !1,
|
|
439
439
|
enumerable: !1,
|
|
440
440
|
writable: !1,
|
|
441
|
-
value:
|
|
442
|
-
}), Object.defineProperty(
|
|
441
|
+
value: A
|
|
442
|
+
}), Object.defineProperty(T, "_source", {
|
|
443
443
|
configurable: !1,
|
|
444
444
|
enumerable: !1,
|
|
445
445
|
writable: !1,
|
|
446
446
|
value: B
|
|
447
|
-
}), Object.freeze && (Object.freeze(
|
|
447
|
+
}), Object.freeze && (Object.freeze(T.props), Object.freeze(T)), T;
|
|
448
448
|
};
|
|
449
|
-
function er(u,
|
|
449
|
+
function er(u, w, O, A, B) {
|
|
450
450
|
{
|
|
451
|
-
var
|
|
452
|
-
|
|
453
|
-
for (
|
|
454
|
-
|
|
451
|
+
var E, P = {}, T = null, z = null;
|
|
452
|
+
O !== void 0 && (Xt(O), T = "" + O), Yr(w) && (Xt(w.key), T = "" + w.key), Jt(w) && (z = w.ref, st(w, B));
|
|
453
|
+
for (E in w)
|
|
454
|
+
ie.call(w, E) && !Vr.hasOwnProperty(E) && (P[E] = w[E]);
|
|
455
455
|
if (u && u.defaultProps) {
|
|
456
456
|
var V = u.defaultProps;
|
|
457
|
-
for (
|
|
458
|
-
|
|
457
|
+
for (E in V)
|
|
458
|
+
P[E] === void 0 && (P[E] = V[E]);
|
|
459
459
|
}
|
|
460
|
-
if (
|
|
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,
|
|
464
|
+
return Zt(u, T, z, B, A, Kt.current, P);
|
|
465
465
|
}
|
|
466
466
|
}
|
|
467
467
|
var Xe = j.ReactCurrentOwner, tr = j.ReactDebugCurrentFrame;
|
|
468
|
-
function
|
|
468
|
+
function $e(u) {
|
|
469
469
|
if (u) {
|
|
470
|
-
var
|
|
471
|
-
tr.setExtraStackFrame(
|
|
470
|
+
var w = u._owner, O = Ce(u.type, u._source, w ? w.type : null);
|
|
471
|
+
tr.setExtraStackFrame(O);
|
|
472
472
|
} else
|
|
473
473
|
tr.setExtraStackFrame(null);
|
|
474
474
|
}
|
|
@@ -495,120 +495,120 @@ Check the render method of \`` + u + "`.";
|
|
|
495
495
|
var Ke = {};
|
|
496
496
|
function G(u) {
|
|
497
497
|
{
|
|
498
|
-
var
|
|
499
|
-
if (!
|
|
500
|
-
var
|
|
501
|
-
|
|
498
|
+
var w = ue();
|
|
499
|
+
if (!w) {
|
|
500
|
+
var O = typeof u == "string" ? u : u.displayName || u.name;
|
|
501
|
+
O && (w = `
|
|
502
502
|
|
|
503
|
-
Check the top-level render call using <` +
|
|
503
|
+
Check the top-level render call using <` + O + ">.");
|
|
504
504
|
}
|
|
505
|
-
return
|
|
505
|
+
return w;
|
|
506
506
|
}
|
|
507
507
|
}
|
|
508
|
-
function we(u,
|
|
508
|
+
function we(u, w) {
|
|
509
509
|
{
|
|
510
510
|
if (!u._store || u._store.validated || u.key != null)
|
|
511
511
|
return;
|
|
512
512
|
u._store.validated = !0;
|
|
513
|
-
var
|
|
514
|
-
if (Ke[
|
|
513
|
+
var O = G(w);
|
|
514
|
+
if (Ke[O])
|
|
515
515
|
return;
|
|
516
|
-
Ke[
|
|
517
|
-
var
|
|
518
|
-
u && u._owner && u._owner !== Xe.current && (
|
|
516
|
+
Ke[O] = !0;
|
|
517
|
+
var A = "";
|
|
518
|
+
u && u._owner && u._owner !== Xe.current && (A = " It was passed a child from " + L(u._owner.type) + "."), $e(u), x('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', O, A), $e(null);
|
|
519
519
|
}
|
|
520
520
|
}
|
|
521
|
-
function rr(u,
|
|
521
|
+
function rr(u, w) {
|
|
522
522
|
{
|
|
523
523
|
if (typeof u != "object")
|
|
524
524
|
return;
|
|
525
525
|
if (Et(u))
|
|
526
|
-
for (var
|
|
527
|
-
var
|
|
528
|
-
ct(
|
|
526
|
+
for (var O = 0; O < u.length; O++) {
|
|
527
|
+
var A = u[O];
|
|
528
|
+
ct(A) && we(A, w);
|
|
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(
|
|
535
|
+
for (var E = B.call(u), P; !(P = E.next()).done; )
|
|
536
|
+
ct(P.value) && we(P.value, w);
|
|
537
537
|
}
|
|
538
538
|
}
|
|
539
539
|
}
|
|
540
540
|
function Ct(u) {
|
|
541
541
|
{
|
|
542
|
-
var
|
|
543
|
-
if (
|
|
542
|
+
var w = u.type;
|
|
543
|
+
if (w == null || typeof w == "string")
|
|
544
544
|
return;
|
|
545
|
-
var
|
|
546
|
-
if (typeof
|
|
547
|
-
|
|
548
|
-
else if (typeof
|
|
545
|
+
var O;
|
|
546
|
+
if (typeof w == "function")
|
|
547
|
+
O = w.propTypes;
|
|
548
|
+
else if (typeof w == "object" && (w.$$typeof === c || // Note: Memo only checks outer props here.
|
|
549
549
|
// Inner props are checked in the reconciler.
|
|
550
|
-
|
|
551
|
-
|
|
550
|
+
w.$$typeof === m))
|
|
551
|
+
O = w.propTypes;
|
|
552
552
|
else
|
|
553
553
|
return;
|
|
554
|
-
if (
|
|
555
|
-
var
|
|
556
|
-
Lr(
|
|
557
|
-
} else if (
|
|
554
|
+
if (O) {
|
|
555
|
+
var A = L(w);
|
|
556
|
+
Lr(O, u.props, "prop", A, u);
|
|
557
|
+
} else if (w.PropTypes !== void 0 && !_t) {
|
|
558
558
|
_t = !0;
|
|
559
|
-
var B = L(
|
|
560
|
-
|
|
559
|
+
var B = L(w);
|
|
560
|
+
x("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", B || "Unknown");
|
|
561
561
|
}
|
|
562
|
-
typeof
|
|
562
|
+
typeof w.getDefaultProps == "function" && !w.getDefaultProps.isReactClassApproved && x("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
|
-
|
|
567
|
+
for (var w = Object.keys(u.props), O = 0; O < w.length; O++) {
|
|
568
|
+
var A = w[O];
|
|
569
|
+
if (A !== "children" && A !== "key") {
|
|
570
|
+
$e(u), x("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", A), $e(null);
|
|
571
571
|
break;
|
|
572
572
|
}
|
|
573
573
|
}
|
|
574
|
-
u.ref !== null && (
|
|
574
|
+
u.ref !== null && ($e(u), x("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, w, O, A, B, E) {
|
|
579
579
|
{
|
|
580
|
-
var
|
|
581
|
-
if (!
|
|
582
|
-
var
|
|
583
|
-
(u === void 0 || typeof u == "object" && u !== null && Object.keys(u).length === 0) && (
|
|
580
|
+
var P = _(u);
|
|
581
|
+
if (!P) {
|
|
582
|
+
var T = "";
|
|
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 = he();
|
|
585
|
-
z ?
|
|
585
|
+
z ? T += z : T += ue();
|
|
586
586
|
var V;
|
|
587
|
-
u === null ? V = "null" : Et(u) ? V = "array" : u !== void 0 && u.$$typeof === t ? (V = "<" + (L(u.type) || "Unknown") + " />",
|
|
587
|
+
u === null ? V = "null" : Et(u) ? V = "array" : u !== void 0 && u.$$typeof === t ? (V = "<" + (L(u.type) || "Unknown") + " />", T = " Did you accidentally export a JSX literal instead of a component?") : V = typeof u, x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", V, T);
|
|
588
588
|
}
|
|
589
|
-
var J = er(u,
|
|
589
|
+
var J = er(u, w, O, B, E);
|
|
590
590
|
if (J == null)
|
|
591
591
|
return J;
|
|
592
|
-
if (
|
|
593
|
-
var ge =
|
|
592
|
+
if (P) {
|
|
593
|
+
var ge = w.children;
|
|
594
594
|
if (ge !== void 0)
|
|
595
|
-
if (
|
|
595
|
+
if (A)
|
|
596
596
|
if (Et(ge)) {
|
|
597
597
|
for (var We = 0; We < ge.length; We++)
|
|
598
598
|
rr(ge[We], u);
|
|
599
599
|
Object.freeze && Object.freeze(ge);
|
|
600
600
|
} else
|
|
601
|
-
|
|
601
|
+
x("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 (
|
|
606
|
-
var Je = L(u), ye = Object.keys(
|
|
605
|
+
if (ie.call(w, "key")) {
|
|
606
|
+
var Je = L(u), ye = Object.keys(w).filter(function(Vo) {
|
|
607
607
|
return Vo !== "key";
|
|
608
608
|
}), Ur = ye.length > 0 ? "{key: someKey, " + ye.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
609
609
|
if (!Pt[Je + Ur]) {
|
|
610
610
|
var Wo = ye.length > 0 ? "{" + ye.join(": ..., ") + ": ...}" : "{}";
|
|
611
|
-
|
|
611
|
+
x(`A props object containing a "key" prop is being spread into JSX:
|
|
612
612
|
let props = %s;
|
|
613
613
|
<%s {...props} />
|
|
614
614
|
React keys must be passed directly to JSX without using spread:
|
|
@@ -619,11 +619,11 @@ React keys must be passed directly to JSX without using spread:
|
|
|
619
619
|
return u === n ? nr(J) : Ct(J), J;
|
|
620
620
|
}
|
|
621
621
|
}
|
|
622
|
-
function ut(u,
|
|
623
|
-
return lt(u,
|
|
622
|
+
function ut(u, w, O) {
|
|
623
|
+
return lt(u, w, O, !0);
|
|
624
624
|
}
|
|
625
|
-
function Tt(u,
|
|
626
|
-
return lt(u,
|
|
625
|
+
function Tt(u, w, O) {
|
|
626
|
+
return lt(u, w, O, !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 $a = Ra(1);
|
|
701
701
|
function bl({ children: e }) {
|
|
702
|
-
const t = ni(), r =
|
|
702
|
+
const t = ni(), r = oe(1), [n, a] = F(1);
|
|
703
703
|
return q(() => {
|
|
704
704
|
r.current += 1, a(r.current);
|
|
705
705
|
}, [t]), /* @__PURE__ */ o.jsx($a.Provider, { value: n, children: e });
|
|
@@ -734,7 +734,7 @@ const wl = ({ imageUrl: e }) => {
|
|
|
734
734
|
});
|
|
735
735
|
};
|
|
736
736
|
return n(e, t), r.toString();
|
|
737
|
-
}, Ol = (e = "fr-FR", t = "EUR") => ({ formatCurrency:
|
|
737
|
+
}, Ol = (e = "fr-FR", t = "EUR") => ({ formatCurrency: R(
|
|
738
738
|
(n) => new Intl.NumberFormat(e, {
|
|
739
739
|
style: "currency",
|
|
740
740
|
currency: t
|
|
@@ -765,8 +765,8 @@ function Nl(e, t) {
|
|
|
765
765
|
"décembre"
|
|
766
766
|
];
|
|
767
767
|
if (!e) return "";
|
|
768
|
-
const a = e.getFullYear().toString(), i = String(e.getMonth() + 1).padStart(2, "0"), s = String(e.getDate()).padStart(2, "0"), l = String(e.getHours()).padStart(2, "0"), c = String(e.getMinutes()).padStart(2, "0"), d = String(e.getSeconds()).padStart(2, "0"), f = r[e.getDay()],
|
|
769
|
-
return t.replace("dddd", f).replace("MMMM",
|
|
768
|
+
const a = e.getFullYear().toString(), i = String(e.getMonth() + 1).padStart(2, "0"), s = String(e.getDate()).padStart(2, "0"), l = String(e.getHours()).padStart(2, "0"), c = String(e.getMinutes()).padStart(2, "0"), d = String(e.getSeconds()).padStart(2, "0"), f = r[e.getDay()], m = n[e.getMonth()];
|
|
769
|
+
return t.replace("dddd", f).replace("MMMM", m).replace("YYYY", a).replace("MM", i).replace("DD", s).replace("HH", l).replace("mm", c).replace("ss", d);
|
|
770
770
|
}
|
|
771
771
|
function El(e) {
|
|
772
772
|
const [t, r, n] = e.split("-").map(Number);
|
|
@@ -839,14 +839,14 @@ function ii(e, t) {
|
|
|
839
839
|
throw new Mt(`Invalid token specified: invalid json for part #${r + 1} (${i.message})`);
|
|
840
840
|
}
|
|
841
841
|
}
|
|
842
|
-
const Pl = () => ({ getTokenValidate:
|
|
842
|
+
const Pl = () => ({ getTokenValidate: R(() => {
|
|
843
843
|
const t = localStorage.getItem("token");
|
|
844
844
|
if (!t)
|
|
845
845
|
return null;
|
|
846
846
|
const r = ii(t), n = Date.now() / 1e3;
|
|
847
847
|
return !r.exp || r.exp < n ? null : t;
|
|
848
848
|
}, []) }), Tl = () => ({ isValidateEmail: (n) => /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(n), isValidateTel: (n) => /^\+?[0-9\s.-]{7,15}$/.test(n), isValidateCodePostal: (n) => /^[0-9]{5}$/.test(n) }), Rl = () => {
|
|
849
|
-
const e =
|
|
849
|
+
const e = oe(null);
|
|
850
850
|
return q(() => {
|
|
851
851
|
if (!e.current) return;
|
|
852
852
|
const t = document.createElement("script");
|
|
@@ -879,7 +879,7 @@ const Pl = () => ({ getTokenValidate: A(() => {
|
|
|
879
879
|
sizeIcon: n,
|
|
880
880
|
classIcon: a
|
|
881
881
|
}) => {
|
|
882
|
-
const i =
|
|
882
|
+
const i = R((s) => {
|
|
883
883
|
s.stopPropagation(), t && t(s);
|
|
884
884
|
}, []);
|
|
885
885
|
return /* @__PURE__ */ o.jsxs(
|
|
@@ -948,7 +948,7 @@ const Al = ({
|
|
|
948
948
|
children: e.item.children
|
|
949
949
|
}
|
|
950
950
|
), La = (e) => {
|
|
951
|
-
const [t, r] = F(null), n =
|
|
951
|
+
const [t, r] = F(null), n = R((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(
|
|
@@ -1000,12 +1000,12 @@ var ui = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|def
|
|
|
1000
1000
|
/* Z+1 */
|
|
1001
1001
|
), H = "-ms-", Wt = "-moz-", U = "-webkit-", Wa = "comm", Or = "rule", kn = "decl", fi = "@import", Va = "@keyframes", hi = "@layer", Ya = Math.abs, _n = String.fromCharCode, tn = Object.assign;
|
|
1002
1002
|
function vi(e, t) {
|
|
1003
|
-
return
|
|
1003
|
+
return se(e, 0) ^ 45 ? (((t << 2 ^ se(e, 0)) << 2 ^ se(e, 1)) << 2 ^ se(e, 2)) << 2 ^ se(e, 3) : 0;
|
|
1004
1004
|
}
|
|
1005
1005
|
function Ba(e) {
|
|
1006
1006
|
return e.trim();
|
|
1007
1007
|
}
|
|
1008
|
-
function
|
|
1008
|
+
function Me(e, t) {
|
|
1009
1009
|
return (e = t.exec(e)) ? e[0] : e;
|
|
1010
1010
|
}
|
|
1011
1011
|
function $(e, t, r) {
|
|
@@ -1014,7 +1014,7 @@ function $(e, t, r) {
|
|
|
1014
1014
|
function dr(e, t, r) {
|
|
1015
1015
|
return e.indexOf(t, r);
|
|
1016
1016
|
}
|
|
1017
|
-
function
|
|
1017
|
+
function se(e, t) {
|
|
1018
1018
|
return e.charCodeAt(t) | 0;
|
|
1019
1019
|
}
|
|
1020
1020
|
function mt(e, t, r) {
|
|
@@ -1034,7 +1034,7 @@ function mi(e, t) {
|
|
|
1034
1034
|
}
|
|
1035
1035
|
function Qn(e, t) {
|
|
1036
1036
|
return e.filter(function(r) {
|
|
1037
|
-
return
|
|
1037
|
+
return !Me(r, t);
|
|
1038
1038
|
});
|
|
1039
1039
|
}
|
|
1040
1040
|
var Nr = 1, pt = 1, za = 0, Oe = 0, ae = 0, wt = "";
|
|
@@ -1053,13 +1053,13 @@ function pi() {
|
|
|
1053
1053
|
return ae;
|
|
1054
1054
|
}
|
|
1055
1055
|
function gi() {
|
|
1056
|
-
return ae = Oe > 0 ?
|
|
1056
|
+
return ae = Oe > 0 ? se(wt, --Oe) : 0, pt--, ae === 10 && (pt = 1, Nr--), ae;
|
|
1057
1057
|
}
|
|
1058
1058
|
function Ne() {
|
|
1059
|
-
return ae = Oe < za ?
|
|
1059
|
+
return ae = Oe < za ? se(wt, Oe++) : 0, pt++, ae === 10 && (pt = 1, Nr++), ae;
|
|
1060
1060
|
}
|
|
1061
1061
|
function et() {
|
|
1062
|
-
return
|
|
1062
|
+
return se(wt, Oe);
|
|
1063
1063
|
}
|
|
1064
1064
|
function fr() {
|
|
1065
1065
|
return Oe;
|
|
@@ -1151,26 +1151,26 @@ function Di(e) {
|
|
|
1151
1151
|
return bi(hr("", null, null, null, [""], e = yi(e), 0, [0], e));
|
|
1152
1152
|
}
|
|
1153
1153
|
function hr(e, t, r, n, a, i, s, l, c) {
|
|
1154
|
-
for (var d = 0, f = 0,
|
|
1155
|
-
switch (p =
|
|
1154
|
+
for (var d = 0, f = 0, m = s, g = 0, h = 0, p = 0, v = 1, b = 1, j = 1, x = 0, k = "", S = a, D = i, N = n, C = k; b; )
|
|
1155
|
+
switch (p = x, x = Ne()) {
|
|
1156
1156
|
case 40:
|
|
1157
|
-
if (p != 108 &&
|
|
1158
|
-
dr(
|
|
1157
|
+
if (p != 108 && se(C, m - 1) == 58) {
|
|
1158
|
+
dr(C += $(zr(x), "&", "&\f"), "&\f", Ya(d ? l[d - 1] : 0)) != -1 && (j = -1);
|
|
1159
1159
|
break;
|
|
1160
1160
|
}
|
|
1161
1161
|
case 34:
|
|
1162
1162
|
case 39:
|
|
1163
1163
|
case 91:
|
|
1164
|
-
|
|
1164
|
+
C += zr(x);
|
|
1165
1165
|
break;
|
|
1166
1166
|
case 9:
|
|
1167
1167
|
case 10:
|
|
1168
1168
|
case 13:
|
|
1169
1169
|
case 32:
|
|
1170
|
-
|
|
1170
|
+
C += xi(p);
|
|
1171
1171
|
break;
|
|
1172
1172
|
case 92:
|
|
1173
|
-
|
|
1173
|
+
C += wi(fr() - 1, 7);
|
|
1174
1174
|
continue;
|
|
1175
1175
|
case 47:
|
|
1176
1176
|
switch (et()) {
|
|
@@ -1179,71 +1179,71 @@ function hr(e, t, r, n, a, i, s, l, c) {
|
|
|
1179
1179
|
Lt(Oi(ji(Ne(), fr()), t, r, c), c);
|
|
1180
1180
|
break;
|
|
1181
1181
|
default:
|
|
1182
|
-
|
|
1182
|
+
C += "/";
|
|
1183
1183
|
}
|
|
1184
1184
|
break;
|
|
1185
|
-
case 123 *
|
|
1186
|
-
l[d++] = Te(
|
|
1187
|
-
case 125 *
|
|
1185
|
+
case 123 * v:
|
|
1186
|
+
l[d++] = Te(C) * j;
|
|
1187
|
+
case 125 * v:
|
|
1188
1188
|
case 59:
|
|
1189
1189
|
case 0:
|
|
1190
|
-
switch (
|
|
1190
|
+
switch (x) {
|
|
1191
1191
|
case 0:
|
|
1192
1192
|
case 125:
|
|
1193
|
-
|
|
1193
|
+
b = 0;
|
|
1194
1194
|
case 59 + f:
|
|
1195
|
-
j == -1 && (
|
|
1195
|
+
j == -1 && (C = $(C, /\f/g, "")), h > 0 && Te(C) - m && Lt(h > 32 ? ea(C + ";", n, r, m - 1, c) : ea($(C, " ", "") + ";", n, r, m - 2, c), c);
|
|
1196
1196
|
break;
|
|
1197
1197
|
case 59:
|
|
1198
|
-
|
|
1198
|
+
C += ";";
|
|
1199
1199
|
default:
|
|
1200
|
-
if (Lt(
|
|
1200
|
+
if (Lt(N = Zn(C, t, r, d, f, a, l, k, S = [], D = [], m, i), i), x === 123)
|
|
1201
1201
|
if (f === 0)
|
|
1202
|
-
hr(
|
|
1202
|
+
hr(C, t, N, N, S, i, m, l, D);
|
|
1203
1203
|
else
|
|
1204
|
-
switch (g === 99 &&
|
|
1204
|
+
switch (g === 99 && se(C, 3) === 110 ? 100 : g) {
|
|
1205
1205
|
case 100:
|
|
1206
1206
|
case 108:
|
|
1207
1207
|
case 109:
|
|
1208
1208
|
case 115:
|
|
1209
|
-
hr(e,
|
|
1209
|
+
hr(e, N, N, n && Lt(Zn(e, N, N, 0, 0, a, l, k, a, S = [], m, D), D), a, D, m, l, n ? S : D);
|
|
1210
1210
|
break;
|
|
1211
1211
|
default:
|
|
1212
|
-
hr(
|
|
1212
|
+
hr(C, N, N, N, [""], D, 0, l, D);
|
|
1213
1213
|
}
|
|
1214
1214
|
}
|
|
1215
|
-
d = f = h = 0,
|
|
1215
|
+
d = f = h = 0, v = j = 1, k = C = "", m = s;
|
|
1216
1216
|
break;
|
|
1217
1217
|
case 58:
|
|
1218
|
-
|
|
1218
|
+
m = 1 + Te(C), h = p;
|
|
1219
1219
|
default:
|
|
1220
|
-
if (
|
|
1221
|
-
if (
|
|
1222
|
-
--
|
|
1223
|
-
else if (
|
|
1220
|
+
if (v < 1) {
|
|
1221
|
+
if (x == 123)
|
|
1222
|
+
--v;
|
|
1223
|
+
else if (x == 125 && v++ == 0 && gi() == 125)
|
|
1224
1224
|
continue;
|
|
1225
1225
|
}
|
|
1226
|
-
switch (
|
|
1226
|
+
switch (C += _n(x), x * v) {
|
|
1227
1227
|
case 38:
|
|
1228
|
-
j = f > 0 ? 1 : (
|
|
1228
|
+
j = f > 0 ? 1 : (C += "\f", -1);
|
|
1229
1229
|
break;
|
|
1230
1230
|
case 44:
|
|
1231
|
-
l[d++] = (Te(
|
|
1231
|
+
l[d++] = (Te(C) - 1) * j, j = 1;
|
|
1232
1232
|
break;
|
|
1233
1233
|
case 64:
|
|
1234
|
-
et() === 45 && (
|
|
1234
|
+
et() === 45 && (C += zr(Ne())), g = et(), f = m = Te(k = C += Si(fr())), x++;
|
|
1235
1235
|
break;
|
|
1236
1236
|
case 45:
|
|
1237
|
-
p === 45 && Te(
|
|
1237
|
+
p === 45 && Te(C) == 2 && (v = 0);
|
|
1238
1238
|
}
|
|
1239
1239
|
}
|
|
1240
1240
|
return i;
|
|
1241
1241
|
}
|
|
1242
|
-
function Zn(e, t, r, n, a, i, s, l, c, d, f,
|
|
1243
|
-
for (var g = a - 1, h = a === 0 ? i : [""], p = Ua(h),
|
|
1244
|
-
for (var
|
|
1245
|
-
(S = Ba(
|
|
1246
|
-
return Er(e, t, r, a === 0 ? Or : l, c, d, f,
|
|
1242
|
+
function Zn(e, t, r, n, a, i, s, l, c, d, f, m) {
|
|
1243
|
+
for (var g = a - 1, h = a === 0 ? i : [""], p = Ua(h), v = 0, b = 0, j = 0; v < n; ++v)
|
|
1244
|
+
for (var x = 0, k = mt(e, g + 1, g = Ya(b = s[v])), S = e; x < p; ++x)
|
|
1245
|
+
(S = Ba(b > 0 ? h[x] + " " + k : $(k, /&\f/g, h[x]))) && (c[j++] = S);
|
|
1246
|
+
return Er(e, t, r, a === 0 ? Or : l, c, d, f, m);
|
|
1247
1247
|
}
|
|
1248
1248
|
function Oi(e, t, r, n) {
|
|
1249
1249
|
return Er(e, t, r, Wa, _n(pi()), mt(e, 2, -2), 0, n);
|
|
@@ -1290,7 +1290,7 @@ function Ga(e, t, r) {
|
|
|
1290
1290
|
case 2756:
|
|
1291
1291
|
return U + e + Wt + e + H + e + e;
|
|
1292
1292
|
case 5936:
|
|
1293
|
-
switch (
|
|
1293
|
+
switch (se(e, t + 11)) {
|
|
1294
1294
|
case 114:
|
|
1295
1295
|
return U + e + H + $(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
|
|
1296
1296
|
case 108:
|
|
@@ -1307,7 +1307,7 @@ function Ga(e, t, r) {
|
|
|
1307
1307
|
case 5187:
|
|
1308
1308
|
return U + e + $(e, /(\w+).+(:[^]+)/, U + "box-$1$2" + H + "flex-$1$2") + e;
|
|
1309
1309
|
case 5443:
|
|
1310
|
-
return U + e + H + "flex-item-" + $(e, /flex-|-self/g, "") + (
|
|
1310
|
+
return U + e + H + "flex-item-" + $(e, /flex-|-self/g, "") + (Me(e, /flex-|baseline/) ? "" : H + "grid-row-" + $(e, /flex-|-self/g, "")) + e;
|
|
1311
1311
|
case 4675:
|
|
1312
1312
|
return U + e + H + "flex-line-pack" + $(e, /align-content|flex-|-self/g, "") + e;
|
|
1313
1313
|
case 5548:
|
|
@@ -1326,7 +1326,7 @@ function Ga(e, t, r) {
|
|
|
1326
1326
|
case 4968:
|
|
1327
1327
|
return $($(e, /(.+:)(flex-)?(.*)/, U + "box-pack:$3" + H + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + U + e + e;
|
|
1328
1328
|
case 4200:
|
|
1329
|
-
if (
|
|
1329
|
+
if (!Me(e, /flex-|baseline/)) return H + "grid-column-align" + mt(e, t) + e;
|
|
1330
1330
|
break;
|
|
1331
1331
|
case 2592:
|
|
1332
1332
|
case 3360:
|
|
@@ -1334,12 +1334,12 @@ function Ga(e, t, r) {
|
|
|
1334
1334
|
case 4384:
|
|
1335
1335
|
case 3616:
|
|
1336
1336
|
return r && r.some(function(n, a) {
|
|
1337
|
-
return t = a,
|
|
1338
|
-
}) ? ~dr(e + (r = r[t].value), "span", 0) ? e : H + $(e, "-start", "") + e + H + "grid-row-span:" + (~dr(r, "span", 0) ?
|
|
1337
|
+
return t = a, Me(n.props, /grid-\w+-end/);
|
|
1338
|
+
}) ? ~dr(e + (r = r[t].value), "span", 0) ? e : H + $(e, "-start", "") + e + H + "grid-row-span:" + (~dr(r, "span", 0) ? Me(r, /\d+/) : +Me(r, /\d+/) - +Me(e, /\d+/)) + ";" : H + $(e, "-start", "") + e;
|
|
1339
1339
|
case 4896:
|
|
1340
1340
|
case 4128:
|
|
1341
1341
|
return r && r.some(function(n) {
|
|
1342
|
-
return
|
|
1342
|
+
return Me(n.props, /grid-\w+-start/);
|
|
1343
1343
|
}) ? e : H + $($(e, "-end", "-span"), "span ", "") + e;
|
|
1344
1344
|
case 4095:
|
|
1345
1345
|
case 3583:
|
|
@@ -1359,12 +1359,12 @@ function Ga(e, t, r) {
|
|
|
1359
1359
|
case 5021:
|
|
1360
1360
|
case 4765:
|
|
1361
1361
|
if (Te(e) - 1 - t > 6)
|
|
1362
|
-
switch (
|
|
1362
|
+
switch (se(e, t + 1)) {
|
|
1363
1363
|
case 109:
|
|
1364
|
-
if (
|
|
1364
|
+
if (se(e, t + 4) !== 45)
|
|
1365
1365
|
break;
|
|
1366
1366
|
case 102:
|
|
1367
|
-
return $(e, /(.+:)(.+)-([^]+)/, "$1" + U + "$2-$3$1" + Wt + (
|
|
1367
|
+
return $(e, /(.+:)(.+)-([^]+)/, "$1" + U + "$2-$3$1" + Wt + (se(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
|
|
1368
1368
|
case 115:
|
|
1369
1369
|
return ~dr(e, "stretch", 0) ? Ga($(e, "stretch", "fill-available"), t, r) + e : e;
|
|
1370
1370
|
}
|
|
@@ -1375,13 +1375,13 @@ function Ga(e, t, r) {
|
|
|
1375
1375
|
return H + a + ":" + i + d + (s ? H + a + "-span:" + (l ? c : +c - +i) + d : "") + e;
|
|
1376
1376
|
});
|
|
1377
1377
|
case 4949:
|
|
1378
|
-
if (
|
|
1378
|
+
if (se(e, t + 6) === 121)
|
|
1379
1379
|
return $(e, ":", ":" + U) + e;
|
|
1380
1380
|
break;
|
|
1381
1381
|
case 6444:
|
|
1382
|
-
switch (
|
|
1382
|
+
switch (se(e, se(e, 14) === 45 ? 18 : 11)) {
|
|
1383
1383
|
case 120:
|
|
1384
|
-
return $(e, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, "$1" + U + (
|
|
1384
|
+
return $(e, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, "$1" + U + (se(e, 14) === 45 ? "inline-" : "") + "box$3$1" + U + "$2$3$1" + H + "$2box$3") + e;
|
|
1385
1385
|
case 100:
|
|
1386
1386
|
return $(e, ":", ":" + H) + e;
|
|
1387
1387
|
}
|
|
@@ -1440,7 +1440,7 @@ function _i(e, t, r, n) {
|
|
|
1440
1440
|
case Or:
|
|
1441
1441
|
if (e.length)
|
|
1442
1442
|
return mi(r = e.props, function(a) {
|
|
1443
|
-
switch (
|
|
1443
|
+
switch (Me(a, n = /(::plac\w+|:read-\w+)/)) {
|
|
1444
1444
|
case ":read-only":
|
|
1445
1445
|
case ":read-write":
|
|
1446
1446
|
dt(Ye(e, { props: [$(a, /:(read-\w+)/, ":" + Wt + "$1")] })), dt(Ye(e, { props: [a] })), tn(e, { props: Qn(r, n) });
|
|
@@ -1514,7 +1514,7 @@ See https://styled-components.com/docs/basics#define-styled-components-outside-o
|
|
|
1514
1514
|
console.error = function(s) {
|
|
1515
1515
|
for (var l = [], c = 1; c < arguments.length; c++) l[c - 1] = arguments[c];
|
|
1516
1516
|
ta.test(s) ? (i = !1, or.delete(n)) : a.apply(void 0, vt([s], l, !1));
|
|
1517
|
-
},
|
|
1517
|
+
}, oe(), i && !or.has(n) && (console.warn(n), or.add(n));
|
|
1518
1518
|
} catch (s) {
|
|
1519
1519
|
ta.test(s.message) && or.delete(n);
|
|
1520
1520
|
} finally {
|
|
@@ -1777,17 +1777,17 @@ var ro = function(e) {
|
|
|
1777
1777
|
var a = this;
|
|
1778
1778
|
this.options = be(be({}, os), 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
|
-
for (var s = i.getTag(), l = s.length, c = "", d = function(
|
|
1780
|
+
for (var s = i.getTag(), l = s.length, c = "", d = function(m) {
|
|
1781
1781
|
var g = function(j) {
|
|
1782
1782
|
return xr.get(j);
|
|
1783
|
-
}(
|
|
1783
|
+
}(m);
|
|
1784
1784
|
if (g === void 0) return "continue";
|
|
1785
|
-
var h = i.names.get(g), p = s.getGroup(
|
|
1785
|
+
var h = i.names.get(g), p = s.getGroup(m);
|
|
1786
1786
|
if (h === void 0 || !h.size || p.length === 0) return "continue";
|
|
1787
|
-
var
|
|
1787
|
+
var v = "".concat(nt, ".g").concat(m, '[id="').concat(g, '"]'), b = "";
|
|
1788
1788
|
h !== void 0 && h.forEach(function(j) {
|
|
1789
|
-
j.length > 0 && (
|
|
1790
|
-
}), c += "".concat(p).concat(
|
|
1789
|
+
j.length > 0 && (b += "".concat(j, ","));
|
|
1790
|
+
}), c += "".concat(p).concat(v, '{content:"').concat(b, '"}').concat(Cn);
|
|
1791
1791
|
}, f = 0; f < l; f++) d(f);
|
|
1792
1792
|
return c;
|
|
1793
1793
|
}(a);
|
|
@@ -1839,22 +1839,22 @@ function cs(e) {
|
|
|
1839
1839
|
f.push(function(g) {
|
|
1840
1840
|
g.type === Or && g.value.includes("&") && (g.props[0] = g.props[0].replace(is, r).replace(n, d));
|
|
1841
1841
|
}), s.prefix && f.push(_i), f.push(Ni);
|
|
1842
|
-
var
|
|
1843
|
-
h === void 0 && (h = ""), p === void 0 && (p = ""),
|
|
1844
|
-
var
|
|
1842
|
+
var m = function(g, h, p, v) {
|
|
1843
|
+
h === void 0 && (h = ""), p === void 0 && (p = ""), v === void 0 && (v = "&"), t = v, r = h, n = new RegExp("\\".concat(r, "\\b"), "g");
|
|
1844
|
+
var b = g.replace(ss, ""), j = Di(p || h ? "".concat(p, " ").concat(h, " { ").concat(b, " }") : b);
|
|
1845
1845
|
s.namespace && (j = ao(j, s.namespace));
|
|
1846
|
-
var
|
|
1847
|
-
return yr(j, Ei(f.concat(ki(function(
|
|
1848
|
-
return
|
|
1849
|
-
})))),
|
|
1846
|
+
var x = [];
|
|
1847
|
+
return yr(j, Ei(f.concat(ki(function(k) {
|
|
1848
|
+
return x.push(k);
|
|
1849
|
+
})))), x;
|
|
1850
1850
|
};
|
|
1851
|
-
return
|
|
1851
|
+
return m.hash = c.length ? c.reduce(function(g, h) {
|
|
1852
1852
|
return h.name || jt(15), Qe(g, h.name);
|
|
1853
|
-
}, Xa).toString() : "",
|
|
1853
|
+
}, Xa).toString() : "", m;
|
|
1854
1854
|
}
|
|
1855
|
-
var ls = new no(), cn = cs(), oo =
|
|
1855
|
+
var ls = new no(), cn = cs(), oo = Ae.createContext({ shouldForwardProp: void 0, styleSheet: ls, stylis: cn });
|
|
1856
1856
|
oo.Consumer;
|
|
1857
|
-
|
|
1857
|
+
Ae.createContext(void 0);
|
|
1858
1858
|
function ua() {
|
|
1859
1859
|
return On(oo);
|
|
1860
1860
|
}
|
|
@@ -1930,10 +1930,10 @@ var fs = Ka(_r), hs = function() {
|
|
|
1930
1930
|
}
|
|
1931
1931
|
else {
|
|
1932
1932
|
for (var c = Qe(this.baseHash, n.hash), d = "", f = 0; f < this.rules.length; f++) {
|
|
1933
|
-
var
|
|
1934
|
-
if (typeof
|
|
1935
|
-
else if (
|
|
1936
|
-
var g = sa(tt(
|
|
1933
|
+
var m = this.rules[f];
|
|
1934
|
+
if (typeof m == "string") d += m, process.env.NODE_ENV !== "production" && (c = Qe(c, m));
|
|
1935
|
+
else if (m) {
|
|
1936
|
+
var g = sa(tt(m, t, r, n));
|
|
1937
1937
|
c = Qe(c, g + f), d += g;
|
|
1938
1938
|
}
|
|
1939
1939
|
}
|
|
@@ -1944,64 +1944,64 @@ var fs = Ka(_r), hs = function() {
|
|
|
1944
1944
|
}
|
|
1945
1945
|
return a;
|
|
1946
1946
|
}, e;
|
|
1947
|
-
}(), co =
|
|
1947
|
+
}(), co = Ae.createContext(void 0);
|
|
1948
1948
|
co.Consumer;
|
|
1949
1949
|
var qr = {}, ha = /* @__PURE__ */ new Set();
|
|
1950
1950
|
function vs(e, t, r) {
|
|
1951
|
-
var n = Pn(e), a = e, i = !Hr(e), s = t.attrs, l = s === void 0 ? Cr : s, c = t.componentId, d = c === void 0 ? function(S,
|
|
1952
|
-
var
|
|
1953
|
-
qr[
|
|
1954
|
-
var
|
|
1955
|
-
return
|
|
1956
|
-
}(t.displayName, t.parentComponentId) : c, f = t.displayName,
|
|
1951
|
+
var n = Pn(e), a = e, i = !Hr(e), s = t.attrs, l = s === void 0 ? Cr : s, c = t.componentId, d = c === void 0 ? function(S, D) {
|
|
1952
|
+
var N = typeof S != "string" ? "sc" : ra(S);
|
|
1953
|
+
qr[N] = (qr[N] || 0) + 1;
|
|
1954
|
+
var C = "".concat(N, "-").concat(Mi(_r + N + qr[N]));
|
|
1955
|
+
return D ? "".concat(D, "-").concat(C) : C;
|
|
1956
|
+
}(t.displayName, t.parentComponentId) : c, f = t.displayName, m = f === void 0 ? function(S) {
|
|
1957
1957
|
return Hr(S) ? "styled.".concat(S) : "Styled(".concat(Ja(S), ")");
|
|
1958
1958
|
}(e) : f, g = t.displayName && t.componentId ? "".concat(ra(t.displayName), "-").concat(t.componentId) : t.componentId || d, h = n && a.attrs ? a.attrs.concat(l).filter(Boolean) : l, p = t.shouldForwardProp;
|
|
1959
1959
|
if (n && a.shouldForwardProp) {
|
|
1960
|
-
var
|
|
1960
|
+
var v = a.shouldForwardProp;
|
|
1961
1961
|
if (t.shouldForwardProp) {
|
|
1962
|
-
var
|
|
1963
|
-
p = function(S,
|
|
1964
|
-
return
|
|
1962
|
+
var b = t.shouldForwardProp;
|
|
1963
|
+
p = function(S, D) {
|
|
1964
|
+
return v(S, D) && b(S, D);
|
|
1965
1965
|
};
|
|
1966
|
-
} else p =
|
|
1966
|
+
} else p = v;
|
|
1967
1967
|
}
|
|
1968
1968
|
var j = new hs(r, g, n ? a.componentStyle : void 0);
|
|
1969
|
-
function
|
|
1970
|
-
return function(
|
|
1971
|
-
var y =
|
|
1969
|
+
function x(S, D) {
|
|
1970
|
+
return function(N, C, W) {
|
|
1971
|
+
var y = N.attrs, _ = N.componentStyle, I = N.defaultProps, M = N.foldedComponentIds, L = N.styledComponentId, X = N.target, ve = Ae.useContext(co), re = ua(), xe = N.shouldForwardProp || re.shouldForwardProp;
|
|
1972
1972
|
process.env.NODE_ENV !== "production" && Gn(L);
|
|
1973
|
-
var
|
|
1973
|
+
var Ie = Ri(C, ve, I) || gt, ee = function(ke, me, pe) {
|
|
1974
1974
|
for (var le, ne = be(be({}, me), { className: void 0, theme: pe }), De = 0; De < ke.length; De += 1) {
|
|
1975
1975
|
var _e = yt(le = ke[De]) ? le(ne) : le;
|
|
1976
1976
|
for (var fe in _e) ne[fe] = fe === "className" ? Ze(ne[fe], _e[fe]) : fe === "style" ? be(be({}, ne[fe]), _e[fe]) : _e[fe];
|
|
1977
1977
|
}
|
|
1978
1978
|
return me.className && (ne.className = Ze(ne.className, me.className)), ne;
|
|
1979
|
-
}(y,
|
|
1980
|
-
for (var Z in ee) ee[Z] === void 0 || Z[0] === "$" || Z === "as" || Z === "theme" && ee.theme ===
|
|
1979
|
+
}(y, C, Ie), K = ee.as || X, ce = {};
|
|
1980
|
+
for (var Z in ee) ee[Z] === void 0 || Z[0] === "$" || Z === "as" || Z === "theme" && ee.theme === Ie || (Z === "forwardedAs" ? ce.as = ee.forwardedAs : xe && !xe(Z, K) || (ce[Z] = ee[Z], xe || process.env.NODE_ENV !== "development" || di(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(), le = ke.generateAndInjectStyles(me, pe.styleSheet, pe.stylis);
|
|
1983
1983
|
return process.env.NODE_ENV !== "production" && Gn(le), le;
|
|
1984
|
-
}(
|
|
1985
|
-
process.env.NODE_ENV !== "production" &&
|
|
1984
|
+
}(_, ee);
|
|
1985
|
+
process.env.NODE_ENV !== "production" && N.warnTooManyClasses && N.warnTooManyClasses(Se);
|
|
1986
1986
|
var Ee = Ze(M, L);
|
|
1987
1987
|
return Se && (Ee += " " + Se), ee.className && (Ee += " " + ee.className), ce[Hr(K) && !an.has(K) ? "class" : "className"] = Ee, W && (ce.ref = W), Yo(K, ce);
|
|
1988
|
-
}(
|
|
1988
|
+
}(k, S, D);
|
|
1989
1989
|
}
|
|
1990
|
-
|
|
1991
|
-
var
|
|
1992
|
-
return
|
|
1990
|
+
x.displayName = m;
|
|
1991
|
+
var k = Ae.forwardRef(x);
|
|
1992
|
+
return k.attrs = h, k.componentStyle = j, k.displayName = m, 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
1994
|
}, set: function(S) {
|
|
1995
|
-
this._foldedDefaultProps = n ? function(
|
|
1996
|
-
for (var
|
|
1997
|
-
for (var W = 0, y =
|
|
1998
|
-
return
|
|
1995
|
+
this._foldedDefaultProps = n ? function(D) {
|
|
1996
|
+
for (var N = [], C = 1; C < arguments.length; C++) N[C - 1] = arguments[C];
|
|
1997
|
+
for (var W = 0, y = N; W < y.length; W++) sn(D, y[W], !0);
|
|
1998
|
+
return D;
|
|
1999
1999
|
}({}, a.defaultProps, S) : S;
|
|
2000
|
-
} }), process.env.NODE_ENV !== "production" && (Ti(
|
|
2001
|
-
var
|
|
2000
|
+
} }), process.env.NODE_ENV !== "production" && (Ti(m, g), k.warnTooManyClasses = /* @__PURE__ */ function(S, D) {
|
|
2001
|
+
var N = {}, C = !1;
|
|
2002
2002
|
return function(W) {
|
|
2003
|
-
if (!
|
|
2004
|
-
var y =
|
|
2003
|
+
if (!C && (N[W] = !0, Object.keys(N).length >= 200)) {
|
|
2004
|
+
var y = D ? ' with the id of "'.concat(D, '"') : "";
|
|
2005
2005
|
console.warn("Over ".concat(200, " classes were generated for component ").concat(S).concat(y, `.
|
|
2006
2006
|
`) + `Consider using the attrs method, together with a style object for frequently changed styles.
|
|
2007
2007
|
Example:
|
|
@@ -2011,12 +2011,12 @@ Example:
|
|
|
2011
2011
|
},
|
|
2012
2012
|
}))\`width: 100%;\`
|
|
2013
2013
|
|
|
2014
|
-
<Component />`),
|
|
2014
|
+
<Component />`), C = !0, N = {};
|
|
2015
2015
|
}
|
|
2016
2016
|
};
|
|
2017
|
-
}(
|
|
2018
|
-
return ".".concat(
|
|
2019
|
-
}), i && to(
|
|
2017
|
+
}(m, g)), Tn(k, function() {
|
|
2018
|
+
return ".".concat(k.styledComponentId);
|
|
2019
|
+
}), i && to(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]);
|
|
@@ -2076,71 +2076,71 @@ const ms = Rn.div`
|
|
|
2076
2076
|
id: i,
|
|
2077
2077
|
closeOverlay: s
|
|
2078
2078
|
}, l) => {
|
|
2079
|
-
const { activeOverlayId: c, setActiveOverlay: d } = ci(), [f,
|
|
2079
|
+
const { activeOverlayId: c, setActiveOverlay: d } = ci(), [f, m] = F(a || !1), [g, h] = F(
|
|
2080
2080
|
r ?? { top: 0, left: 0 }
|
|
2081
|
-
), p =
|
|
2081
|
+
), p = oe(null), v = Bo();
|
|
2082
2082
|
Dr(l, () => ({
|
|
2083
2083
|
setCoords: h
|
|
2084
2084
|
})), q(() => {
|
|
2085
|
-
c !==
|
|
2086
|
-
}, [c,
|
|
2087
|
-
const
|
|
2088
|
-
var
|
|
2085
|
+
c !== v && m(!1);
|
|
2086
|
+
}, [c, v]), q(() => {
|
|
2087
|
+
const x = () => {
|
|
2088
|
+
var k;
|
|
2089
2089
|
if (!t && r)
|
|
2090
2090
|
h(r);
|
|
2091
2091
|
else if (e) {
|
|
2092
|
-
const S = e.getBoundingClientRect(),
|
|
2093
|
-
if (
|
|
2092
|
+
const S = e.getBoundingClientRect(), D = (k = p.current) == null ? void 0 : k.getBoundingClientRect(), { innerWidth: N, innerHeight: C } = window;
|
|
2093
|
+
if (D) {
|
|
2094
2094
|
let W, y;
|
|
2095
|
-
const
|
|
2095
|
+
const _ = {
|
|
2096
2096
|
topRight: () => ({
|
|
2097
|
-
top: S.top -
|
|
2098
|
-
left: S.right -
|
|
2097
|
+
top: S.top - D.height,
|
|
2098
|
+
left: S.right - D.width
|
|
2099
2099
|
}),
|
|
2100
2100
|
topLeft: () => ({
|
|
2101
|
-
top: S.top -
|
|
2101
|
+
top: S.top - D.height,
|
|
2102
2102
|
left: S.left
|
|
2103
2103
|
}),
|
|
2104
2104
|
bottomRight: () => ({
|
|
2105
2105
|
top: S.bottom,
|
|
2106
|
-
left: S.right -
|
|
2106
|
+
left: S.right - D.width
|
|
2107
2107
|
}),
|
|
2108
2108
|
bottomLeft: () => ({
|
|
2109
2109
|
top: S.bottom,
|
|
2110
2110
|
left: S.left
|
|
2111
2111
|
}),
|
|
2112
2112
|
left: () => ({
|
|
2113
|
-
top: S.top + S.height / 2 -
|
|
2114
|
-
left: S.left -
|
|
2113
|
+
top: S.top + S.height / 2 - D.height / 2,
|
|
2114
|
+
left: S.left - D.width
|
|
2115
2115
|
}),
|
|
2116
2116
|
right: () => ({
|
|
2117
|
-
top: S.top + S.height / 2 -
|
|
2117
|
+
top: S.top + S.height / 2 - D.height / 2,
|
|
2118
2118
|
left: S.right
|
|
2119
2119
|
})
|
|
2120
2120
|
};
|
|
2121
|
-
t &&
|
|
2121
|
+
t && _[t] ? { top: W, left: y } = _[t]() : (y = S.right, W = S.bottom, S.right + D.width > N && (y = S.left - D.width), S.bottom + D.height > C && (W = S.top - D.height)), h({ top: W, left: y < 0 ? 0 : y });
|
|
2122
2122
|
}
|
|
2123
2123
|
}
|
|
2124
2124
|
};
|
|
2125
|
-
return f && (
|
|
2125
|
+
return f && (x(), window.addEventListener("resize", x)), () => window.removeEventListener("resize", x);
|
|
2126
2126
|
}, [e, f, t]);
|
|
2127
|
-
const
|
|
2128
|
-
|
|
2129
|
-
}, j =
|
|
2130
|
-
(
|
|
2131
|
-
|
|
2127
|
+
const b = () => {
|
|
2128
|
+
m(!0), d(v);
|
|
2129
|
+
}, j = R(
|
|
2130
|
+
(x) => {
|
|
2131
|
+
x.stopPropagation(), m(!1), d(null), s && s(!1);
|
|
2132
2132
|
},
|
|
2133
2133
|
[s, d]
|
|
2134
2134
|
);
|
|
2135
2135
|
return q(() => {
|
|
2136
|
-
const
|
|
2137
|
-
p.current && !p.current.contains(
|
|
2136
|
+
const x = (k) => {
|
|
2137
|
+
p.current && !p.current.contains(k.target) && j(k);
|
|
2138
2138
|
};
|
|
2139
|
-
return f && document.addEventListener("mousedown",
|
|
2140
|
-
document.removeEventListener("mousedown",
|
|
2139
|
+
return f && document.addEventListener("mousedown", x), () => {
|
|
2140
|
+
document.removeEventListener("mousedown", x);
|
|
2141
2141
|
};
|
|
2142
2142
|
}, [f, j]), q(() => {
|
|
2143
|
-
a &&
|
|
2143
|
+
a && b();
|
|
2144
2144
|
}, [a]), f ? Nn.createPortal(
|
|
2145
2145
|
/* @__PURE__ */ o.jsx(ms, { ref: p, $top: g.top, $left: g.left, children: /* @__PURE__ */ o.jsxs(
|
|
2146
2146
|
"div",
|
|
@@ -2174,13 +2174,13 @@ const ms = Rn.div`
|
|
|
2174
2174
|
}) => {
|
|
2175
2175
|
const l = (p) => {
|
|
2176
2176
|
p.preventDefault(), t && t(p);
|
|
2177
|
-
}, c =
|
|
2177
|
+
}, c = oe(null), [d, f] = F(!1), m = R(
|
|
2178
2178
|
(p) => {
|
|
2179
2179
|
p.stopPropagation(), n && f(!d);
|
|
2180
2180
|
},
|
|
2181
2181
|
[d, f]
|
|
2182
|
-
), g =
|
|
2183
|
-
id: p.id ??
|
|
2182
|
+
), g = Re(() => n ? n.map((p, v) => ({
|
|
2183
|
+
id: p.id ?? v,
|
|
2184
2184
|
icon: p.icon,
|
|
2185
2185
|
name: p.label,
|
|
2186
2186
|
children: /* @__PURE__ */ o.jsx(
|
|
@@ -2188,14 +2188,14 @@ const ms = 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
|
},
|
|
2196
|
-
|
|
2196
|
+
v
|
|
2197
2197
|
)
|
|
2198
|
-
})) : [], [n]), h =
|
|
2198
|
+
})) : [], [n]), h = R(() => {
|
|
2199
2199
|
f(!1);
|
|
2200
2200
|
}, [f]);
|
|
2201
2201
|
return /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
@@ -2214,7 +2214,7 @@ const ms = Rn.div`
|
|
|
2214
2214
|
{
|
|
2215
2215
|
className: "ml-2",
|
|
2216
2216
|
ref: c,
|
|
2217
|
-
onClick: (p) =>
|
|
2217
|
+
onClick: (p) => m(p),
|
|
2218
2218
|
children: /* @__PURE__ */ o.jsx(Y, { classIcon: "bi-chevron-up" })
|
|
2219
2219
|
}
|
|
2220
2220
|
)
|
|
@@ -2239,16 +2239,16 @@ const ms = Rn.div`
|
|
|
2239
2239
|
buttonClassName: n,
|
|
2240
2240
|
containerClassName: a
|
|
2241
2241
|
}) => {
|
|
2242
|
-
const i =
|
|
2242
|
+
const i = oe(null), s = (c) => {
|
|
2243
2243
|
var f;
|
|
2244
2244
|
const d = (f = c.target.files) == null ? void 0 : f[0];
|
|
2245
2245
|
if (d && e) {
|
|
2246
|
-
const
|
|
2247
|
-
|
|
2246
|
+
const m = new FileReader();
|
|
2247
|
+
m.onload = (g) => {
|
|
2248
2248
|
var p;
|
|
2249
2249
|
const h = (p = g.target) == null ? void 0 : p.result;
|
|
2250
2250
|
e(d, h);
|
|
2251
|
-
},
|
|
2251
|
+
}, m.readAsArrayBuffer(d);
|
|
2252
2252
|
}
|
|
2253
2253
|
}, l = () => {
|
|
2254
2254
|
var c;
|
|
@@ -2282,37 +2282,37 @@ const ms = Rn.div`
|
|
|
2282
2282
|
positionOverlay: a,
|
|
2283
2283
|
setOpenActions: i
|
|
2284
2284
|
}) => {
|
|
2285
|
-
const s =
|
|
2285
|
+
const s = oe(null), [l, c] = F(
|
|
2286
2286
|
a
|
|
2287
|
-
), d =
|
|
2287
|
+
), d = oe(null), [f, m] = F(t ?? !1);
|
|
2288
2288
|
q(() => {
|
|
2289
|
-
t &&
|
|
2289
|
+
t && m(t);
|
|
2290
2290
|
}, [t]);
|
|
2291
|
-
const g =
|
|
2292
|
-
(
|
|
2293
|
-
e.length !== 0 && (
|
|
2291
|
+
const g = R(
|
|
2292
|
+
(v, b) => {
|
|
2293
|
+
e.length !== 0 && (v.preventDefault(), c("bottomRight"), i && i(b));
|
|
2294
2294
|
},
|
|
2295
2295
|
[c, i]
|
|
2296
|
-
), h =
|
|
2297
|
-
c(void 0),
|
|
2298
|
-
}, [
|
|
2299
|
-
let j =
|
|
2300
|
-
return
|
|
2301
|
-
id:
|
|
2302
|
-
icon:
|
|
2303
|
-
name:
|
|
2296
|
+
), h = R(() => {
|
|
2297
|
+
c(void 0), m(!1), i && i(!1);
|
|
2298
|
+
}, [m, c, i]), p = Re(() => e == null ? void 0 : e.filter((v) => v.type === "menu").map((v, b) => {
|
|
2299
|
+
let j = v.label || "";
|
|
2300
|
+
return v.setLabel && r && (j = v.setLabel(r)), {
|
|
2301
|
+
id: b,
|
|
2302
|
+
icon: v.icon,
|
|
2303
|
+
name: v.label,
|
|
2304
2304
|
children: /* @__PURE__ */ o.jsx(
|
|
2305
2305
|
xt,
|
|
2306
2306
|
{
|
|
2307
|
-
classIcon:
|
|
2308
|
-
disabled: r &&
|
|
2307
|
+
classIcon: v.icon,
|
|
2308
|
+
disabled: r && v.disabled ? v.disabled(r) : !1,
|
|
2309
2309
|
sizeIcon: je.LARGE,
|
|
2310
|
-
onClick: (
|
|
2311
|
-
|
|
2310
|
+
onClick: (x) => {
|
|
2311
|
+
x.stopPropagation(), h(), v.onClick && r && v.onClick(r);
|
|
2312
2312
|
},
|
|
2313
2313
|
title: j
|
|
2314
2314
|
},
|
|
2315
|
-
|
|
2315
|
+
b
|
|
2316
2316
|
)
|
|
2317
2317
|
};
|
|
2318
2318
|
}), [e]);
|
|
@@ -2321,8 +2321,8 @@ const ms = Rn.div`
|
|
|
2321
2321
|
"div",
|
|
2322
2322
|
{
|
|
2323
2323
|
ref: d,
|
|
2324
|
-
className: `card-action ${e.filter((
|
|
2325
|
-
onClick: (
|
|
2324
|
+
className: `card-action ${e.filter((v) => v.type === "menu").length ? "visible" : "hidden"}`,
|
|
2325
|
+
onClick: (v) => g(v, !f),
|
|
2326
2326
|
children: [
|
|
2327
2327
|
/* @__PURE__ */ o.jsx(
|
|
2328
2328
|
Y,
|
|
@@ -2364,28 +2364,28 @@ const ms = Rn.div`
|
|
|
2364
2364
|
positionOverlay: s,
|
|
2365
2365
|
children: l
|
|
2366
2366
|
}) => {
|
|
2367
|
-
const [c, d] = F(!1), [f,
|
|
2368
|
-
|
|
2369
|
-
},
|
|
2370
|
-
(
|
|
2371
|
-
if (
|
|
2372
|
-
return h(void 0),
|
|
2373
|
-
|
|
2367
|
+
const [c, d] = F(!1), [f, m] = F(!1), [g, h] = F(), p = (b, j) => {
|
|
2368
|
+
b.stopPropagation(), a && a(j);
|
|
2369
|
+
}, v = R(
|
|
2370
|
+
(b, j) => {
|
|
2371
|
+
if (b.stopPropagation(), f)
|
|
2372
|
+
return h(void 0), m(!1);
|
|
2373
|
+
b.target.closest(".qte") || b.target.closest(".card-action-menu button") || b.target.closest(".card-actions") || (d(!c), n && b.button !== 2 ? n(j) : (h({ top: b.clientY, left: b.clientX }), m(!0)));
|
|
2374
2374
|
},
|
|
2375
2375
|
[
|
|
2376
2376
|
d,
|
|
2377
2377
|
h,
|
|
2378
2378
|
n,
|
|
2379
2379
|
f,
|
|
2380
|
-
|
|
2380
|
+
m,
|
|
2381
2381
|
c
|
|
2382
2382
|
]
|
|
2383
2383
|
);
|
|
2384
2384
|
return /* @__PURE__ */ o.jsxs(
|
|
2385
2385
|
"div",
|
|
2386
2386
|
{
|
|
2387
|
-
onContextMenu: (
|
|
2388
|
-
onMouseDown: (
|
|
2387
|
+
onContextMenu: (b) => b.preventDefault(),
|
|
2388
|
+
onMouseDown: (b) => v(b, e),
|
|
2389
2389
|
className: `card ${r ?? ""} ${c ? "card--active" : ""} `,
|
|
2390
2390
|
children: [
|
|
2391
2391
|
l,
|
|
@@ -2403,7 +2403,7 @@ const ms = 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(Y, { classIcon: "bi-trash3" })
|
|
2408
2408
|
}
|
|
2409
2409
|
),
|
|
@@ -2411,7 +2411,7 @@ const ms = Rn.div`
|
|
|
2411
2411
|
ps,
|
|
2412
2412
|
{
|
|
2413
2413
|
openActions: f,
|
|
2414
|
-
setOpenActions:
|
|
2414
|
+
setOpenActions: m,
|
|
2415
2415
|
actions: t,
|
|
2416
2416
|
item: e,
|
|
2417
2417
|
positions: g,
|
|
@@ -2436,31 +2436,31 @@ const ms = Rn.div`
|
|
|
2436
2436
|
const [a, i] = F(0), s = e.length, [l, c] = F(1);
|
|
2437
2437
|
q(() => {
|
|
2438
2438
|
const p = () => {
|
|
2439
|
-
const
|
|
2440
|
-
if (n.xl &&
|
|
2439
|
+
const v = window.innerWidth;
|
|
2440
|
+
if (n.xl && v >= 1200)
|
|
2441
2441
|
return c(n.xl);
|
|
2442
|
-
if (n.lg &&
|
|
2442
|
+
if (n.lg && v >= 992)
|
|
2443
2443
|
return c(n.lg);
|
|
2444
|
-
if (n.md &&
|
|
2444
|
+
if (n.md && v >= 768)
|
|
2445
2445
|
return c(n.md);
|
|
2446
|
-
if (n.sm &&
|
|
2446
|
+
if (n.sm && v >= 576)
|
|
2447
2447
|
return c(n.sm);
|
|
2448
2448
|
};
|
|
2449
2449
|
return p(), window.addEventListener("resize", p), () => window.removeEventListener("resize", p);
|
|
2450
2450
|
}, [n]);
|
|
2451
|
-
const d =
|
|
2451
|
+
const d = R(
|
|
2452
2452
|
(p) => {
|
|
2453
2453
|
p.preventDefault(), i(
|
|
2454
|
-
(
|
|
2454
|
+
(v) => Math.min(v + r, s - l)
|
|
2455
2455
|
);
|
|
2456
2456
|
},
|
|
2457
2457
|
[i]
|
|
2458
|
-
), f =
|
|
2458
|
+
), f = R(
|
|
2459
2459
|
(p) => {
|
|
2460
|
-
p.preventDefault(), i((
|
|
2460
|
+
p.preventDefault(), i((v) => Math.max(v - r, 0));
|
|
2461
2461
|
},
|
|
2462
2462
|
[i]
|
|
2463
|
-
),
|
|
2463
|
+
), m = a + r >= s - l + 1, g = s <= l, h = a <= 0;
|
|
2464
2464
|
return /* @__PURE__ */ o.jsxs("div", { className: "carousel", children: [
|
|
2465
2465
|
t && !g && /* @__PURE__ */ o.jsx(
|
|
2466
2466
|
"div",
|
|
@@ -2479,7 +2479,7 @@ const ms = Rn.div`
|
|
|
2479
2479
|
transform: `translateX(-${a * 100 / l}%)`,
|
|
2480
2480
|
transition: "transform 0.5s ease-in-out"
|
|
2481
2481
|
},
|
|
2482
|
-
children:
|
|
2482
|
+
children: Ae.Children.map(e, (p) => /* @__PURE__ */ o.jsx(
|
|
2483
2483
|
"div",
|
|
2484
2484
|
{
|
|
2485
2485
|
className: "carousel-slide",
|
|
@@ -2495,7 +2495,7 @@ const ms = Rn.div`
|
|
|
2495
2495
|
t && !g && /* @__PURE__ */ o.jsx(
|
|
2496
2496
|
"div",
|
|
2497
2497
|
{
|
|
2498
|
-
className: `carousel-control next ${
|
|
2498
|
+
className: `carousel-control next ${m && "disabled"}`,
|
|
2499
2499
|
onClick: d,
|
|
2500
2500
|
children: /* @__PURE__ */ o.jsx(Y, { classIcon: "bi-chevron-right" })
|
|
2501
2501
|
}
|
|
@@ -2513,31 +2513,34 @@ const ms = Rn.div`
|
|
|
2513
2513
|
page: n = 1,
|
|
2514
2514
|
onClick: a
|
|
2515
2515
|
}) => {
|
|
2516
|
-
const i =
|
|
2516
|
+
const i = Re(() => e ?? 9, [e]), s = Re(() => Math.max(1, t ?? 9), [t]), [l, c] = F(1);
|
|
2517
2517
|
q(() => {
|
|
2518
2518
|
c(n);
|
|
2519
2519
|
}, [n]);
|
|
2520
|
-
const d =
|
|
2521
|
-
const
|
|
2522
|
-
for (let
|
|
2523
|
-
const
|
|
2524
|
-
for (let
|
|
2525
|
-
const
|
|
2526
|
-
(
|
|
2520
|
+
const d = Re(() => {
|
|
2521
|
+
const m = [];
|
|
2522
|
+
for (let g = 0; g < s; g++) {
|
|
2523
|
+
const h = [];
|
|
2524
|
+
for (let p = 0; p < i; p++) {
|
|
2525
|
+
const v = p + g * i, b = r == null ? void 0 : r.find(
|
|
2526
|
+
(j) => j.position === v + 1
|
|
2527
2527
|
);
|
|
2528
|
-
|
|
2529
|
-
/* @__PURE__ */ o.jsx(gs, { onClick: a, cell:
|
|
2530
|
-
) :
|
|
2531
|
-
/* @__PURE__ */ o.jsx("div", { className: "cell cell--empty" }, `${
|
|
2528
|
+
b ? h.push(
|
|
2529
|
+
/* @__PURE__ */ o.jsx(gs, { onClick: a, cell: b }, `${g}-${p}`)
|
|
2530
|
+
) : h.push(
|
|
2531
|
+
/* @__PURE__ */ o.jsx("div", { className: "cell cell--empty" }, `${g}-${p}`)
|
|
2532
2532
|
);
|
|
2533
2533
|
}
|
|
2534
|
-
|
|
2535
|
-
/* @__PURE__ */ o.jsx("div", { className: "row", children:
|
|
2534
|
+
m.push(
|
|
2535
|
+
/* @__PURE__ */ o.jsx("div", { className: "row", children: h }, g)
|
|
2536
2536
|
);
|
|
2537
2537
|
}
|
|
2538
|
-
return
|
|
2539
|
-
}, [i, s, l])
|
|
2540
|
-
|
|
2538
|
+
return m;
|
|
2539
|
+
}, [i, s, l]), f = Re(
|
|
2540
|
+
() => ({ "--rows": String(s) }),
|
|
2541
|
+
[s]
|
|
2542
|
+
);
|
|
2543
|
+
return /* @__PURE__ */ o.jsx("div", { className: "damier", style: f, children: d });
|
|
2541
2544
|
};
|
|
2542
2545
|
var Be = /* @__PURE__ */ ((e) => (e.TEXT = "text", e.BUTTON = "button", e.EMAIL = "email", e.HIDDEN = "hidden", e.PASSWORD = "password", e.NUMBER = "number", e.CHECKBOX = "checkbox", e.RADIO = "radio", e.DATE = "date", e.SELECT = "select", e.TEXTAREA = "textarea", e))(Be || {});
|
|
2543
2546
|
const wr = Ue(
|
|
@@ -2553,45 +2556,45 @@ const wr = Ue(
|
|
|
2553
2556
|
minLength: c,
|
|
2554
2557
|
maxLength: d,
|
|
2555
2558
|
autoFocus: f = !1,
|
|
2556
|
-
disabled:
|
|
2559
|
+
disabled: m = !1,
|
|
2557
2560
|
required: g = !1,
|
|
2558
2561
|
autoComplete: h,
|
|
2559
2562
|
tabIndex: p = 0,
|
|
2560
|
-
step:
|
|
2561
|
-
checked:
|
|
2563
|
+
step: v,
|
|
2564
|
+
checked: b,
|
|
2562
2565
|
onChange: j,
|
|
2563
|
-
onBlur:
|
|
2564
|
-
onClick:
|
|
2566
|
+
onBlur: x,
|
|
2567
|
+
onClick: k,
|
|
2565
2568
|
handleKeyDown: S
|
|
2566
|
-
},
|
|
2567
|
-
const [
|
|
2569
|
+
}, D) => {
|
|
2570
|
+
const [N, C] = F(!1);
|
|
2568
2571
|
return /* @__PURE__ */ o.jsxs("div", { className: `input-container ${`input-container-${r}`} `, children: [
|
|
2569
2572
|
/* @__PURE__ */ o.jsx("input", { name: `hide-${t}`, type: "text", style: { display: "none" } }),
|
|
2570
2573
|
/* @__PURE__ */ o.jsx(
|
|
2571
2574
|
"input",
|
|
2572
2575
|
{
|
|
2573
|
-
ref:
|
|
2576
|
+
ref: D,
|
|
2574
2577
|
id: e,
|
|
2575
2578
|
name: t,
|
|
2576
2579
|
inputMode: l ?? (r === "number" ? "numeric" : "text"),
|
|
2577
|
-
type:
|
|
2580
|
+
type: N ? Be.TEXT : r,
|
|
2578
2581
|
spellCheck: "false",
|
|
2579
2582
|
value: n,
|
|
2580
2583
|
placeholder: i,
|
|
2581
|
-
disabled:
|
|
2584
|
+
disabled: m,
|
|
2582
2585
|
required: g,
|
|
2583
2586
|
autoComplete: h ?? "new-password",
|
|
2584
|
-
step:
|
|
2587
|
+
step: v,
|
|
2585
2588
|
tabIndex: p,
|
|
2586
2589
|
autoFocus: f,
|
|
2587
2590
|
minLength: c,
|
|
2588
2591
|
maxLength: d,
|
|
2589
2592
|
onChange: j,
|
|
2590
|
-
checked:
|
|
2593
|
+
checked: b,
|
|
2591
2594
|
onKeyDown: S,
|
|
2592
|
-
onBlur:
|
|
2595
|
+
onBlur: x,
|
|
2593
2596
|
onClick: (W) => {
|
|
2594
|
-
W.stopPropagation(),
|
|
2597
|
+
W.stopPropagation(), k && k(W);
|
|
2595
2598
|
},
|
|
2596
2599
|
className: `input-field ${s ?? ""}`,
|
|
2597
2600
|
onInvalid: a
|
|
@@ -2600,9 +2603,9 @@ const wr = Ue(
|
|
|
2600
2603
|
r === Be.PASSWORD && /* @__PURE__ */ o.jsx(
|
|
2601
2604
|
"div",
|
|
2602
2605
|
{
|
|
2603
|
-
onClick: () =>
|
|
2606
|
+
onClick: () => C(!N),
|
|
2604
2607
|
className: "input-password-icon",
|
|
2605
|
-
children: /* @__PURE__ */ o.jsx(Y, { classIcon:
|
|
2608
|
+
children: /* @__PURE__ */ o.jsx(Y, { classIcon: N ? "bi-eye-slash" : "bi-eye" })
|
|
2606
2609
|
}
|
|
2607
2610
|
)
|
|
2608
2611
|
] });
|
|
@@ -2688,16 +2691,16 @@ const pa = ({ display: e, full: t, message: r }) => /* @__PURE__ */ o.jsxs(o.Fra
|
|
|
2688
2691
|
name: c,
|
|
2689
2692
|
onChange: d,
|
|
2690
2693
|
onChangeMultiple: f,
|
|
2691
|
-
value:
|
|
2694
|
+
value: m,
|
|
2692
2695
|
placeholder: g
|
|
2693
2696
|
}) => {
|
|
2694
|
-
const h =
|
|
2697
|
+
const h = oe({}), p = (b) => {
|
|
2695
2698
|
let j;
|
|
2696
2699
|
i ? (j = Array.from(
|
|
2697
|
-
|
|
2698
|
-
(
|
|
2699
|
-
), f && f(j)) : (j =
|
|
2700
|
-
},
|
|
2700
|
+
b.target.selectedOptions,
|
|
2701
|
+
(x) => x.value
|
|
2702
|
+
), f && f(j)) : (j = b.target.value, d && d(j));
|
|
2703
|
+
}, v = R(() => {
|
|
2701
2704
|
d && d("");
|
|
2702
2705
|
}, [d]);
|
|
2703
2706
|
return /* @__PURE__ */ o.jsxs("div", { id: e, className: `select-container ${n || ""}`, children: [
|
|
@@ -2711,21 +2714,21 @@ const pa = ({ display: e, full: t, message: r }) => /* @__PURE__ */ o.jsxs(o.Fra
|
|
|
2711
2714
|
disabled: a,
|
|
2712
2715
|
id: `select-${e}`,
|
|
2713
2716
|
className: "select-container-select",
|
|
2714
|
-
value:
|
|
2717
|
+
value: m ?? l ?? (i ? [] : ""),
|
|
2715
2718
|
onChange: p,
|
|
2716
2719
|
multiple: i,
|
|
2717
|
-
ref: (
|
|
2720
|
+
ref: (b) => h.current[e ?? "select"] = b,
|
|
2718
2721
|
children: [
|
|
2719
2722
|
g && !l && !i && /* @__PURE__ */ o.jsx("option", { selected: !0, disabled: !0, hidden: !0, value: "", children: g }),
|
|
2720
|
-
r.map((
|
|
2723
|
+
r.map((b, j) => /* @__PURE__ */ o.jsx("option", { value: b.value, children: b.label }, j))
|
|
2721
2724
|
]
|
|
2722
2725
|
}
|
|
2723
2726
|
),
|
|
2724
|
-
|
|
2727
|
+
m !== "" && g && /* @__PURE__ */ o.jsx(
|
|
2725
2728
|
"div",
|
|
2726
2729
|
{
|
|
2727
2730
|
className: "clear-btn",
|
|
2728
|
-
onClick:
|
|
2731
|
+
onClick: v,
|
|
2729
2732
|
"aria-label": "Réinitialiser",
|
|
2730
2733
|
children: /* @__PURE__ */ o.jsx(Y, { classIcon: "bi-x" })
|
|
2731
2734
|
}
|
|
@@ -2780,40 +2783,40 @@ function Vl(e) {
|
|
|
2780
2783
|
columns: c = [],
|
|
2781
2784
|
loading: d,
|
|
2782
2785
|
onRowClick: f,
|
|
2783
|
-
onColumnClick:
|
|
2786
|
+
onColumnClick: m,
|
|
2784
2787
|
onLoadMore: g,
|
|
2785
2788
|
emptyMessage: h,
|
|
2786
2789
|
hasMore: p,
|
|
2787
|
-
onSelectionChange:
|
|
2788
|
-
hideToggleAll:
|
|
2790
|
+
onSelectionChange: v,
|
|
2791
|
+
hideToggleAll: b = !1,
|
|
2789
2792
|
limitSelect: j = void 0,
|
|
2790
|
-
getRowId:
|
|
2791
|
-
} = e,
|
|
2793
|
+
getRowId: x
|
|
2794
|
+
} = e, k = oe(null), [S, D] = F(
|
|
2792
2795
|
/* @__PURE__ */ new Set()
|
|
2793
|
-
),
|
|
2796
|
+
), N = R(() => {
|
|
2794
2797
|
if (S.size === s.length)
|
|
2795
|
-
|
|
2798
|
+
D(/* @__PURE__ */ new Set()), v == null || v([]);
|
|
2796
2799
|
else {
|
|
2797
2800
|
let y = s.map(
|
|
2798
|
-
(I) =>
|
|
2801
|
+
(I) => x ? x(I) : I.id ?? I
|
|
2799
2802
|
);
|
|
2800
2803
|
j && y.length > j && (y = y.slice(0, j));
|
|
2801
|
-
const
|
|
2802
|
-
|
|
2804
|
+
const _ = new Set(y);
|
|
2805
|
+
D(_), v == null || v(
|
|
2803
2806
|
s.filter(
|
|
2804
|
-
(I) =>
|
|
2807
|
+
(I) => _.has(x ? x(I) : I.id ?? I)
|
|
2805
2808
|
)
|
|
2806
2809
|
);
|
|
2807
2810
|
}
|
|
2808
|
-
}, [s,
|
|
2809
|
-
(y,
|
|
2810
|
-
y.stopPropagation(), f && (f == null || f(
|
|
2811
|
+
}, [s, v, j, x, S.size]), C = R(
|
|
2812
|
+
(y, _) => {
|
|
2813
|
+
y.stopPropagation(), f && (f == null || f(_));
|
|
2811
2814
|
},
|
|
2812
2815
|
[f]
|
|
2813
|
-
), W =
|
|
2814
|
-
(y,
|
|
2816
|
+
), W = R(
|
|
2817
|
+
(y, _) => {
|
|
2815
2818
|
y.stopPropagation();
|
|
2816
|
-
const I =
|
|
2819
|
+
const I = x ? x(_) : _.id ?? _, M = new Set(S);
|
|
2817
2820
|
if (M.has(I))
|
|
2818
2821
|
M.delete(I);
|
|
2819
2822
|
else {
|
|
@@ -2821,19 +2824,19 @@ function Vl(e) {
|
|
|
2821
2824
|
return;
|
|
2822
2825
|
M.add(I);
|
|
2823
2826
|
}
|
|
2824
|
-
|
|
2827
|
+
D(M);
|
|
2825
2828
|
const L = s.filter(
|
|
2826
|
-
(X) => M.has(
|
|
2829
|
+
(X) => M.has(x ? x(X) : X.id ?? X)
|
|
2827
2830
|
);
|
|
2828
|
-
|
|
2831
|
+
v == null || v(L);
|
|
2829
2832
|
},
|
|
2830
|
-
[s,
|
|
2833
|
+
[s, x, j, v, S]
|
|
2831
2834
|
);
|
|
2832
2835
|
return q(() => {
|
|
2833
2836
|
if (!g || !p) return;
|
|
2834
2837
|
const y = new IntersectionObserver(
|
|
2835
|
-
(
|
|
2836
|
-
|
|
2838
|
+
(_) => {
|
|
2839
|
+
_[0].isIntersecting && g();
|
|
2837
2840
|
},
|
|
2838
2841
|
{
|
|
2839
2842
|
root: null,
|
|
@@ -2841,18 +2844,18 @@ function Vl(e) {
|
|
|
2841
2844
|
threshold: 1
|
|
2842
2845
|
}
|
|
2843
2846
|
);
|
|
2844
|
-
return
|
|
2845
|
-
|
|
2847
|
+
return k.current && y.observe(k.current), () => {
|
|
2848
|
+
k.current && y.unobserve(k.current);
|
|
2846
2849
|
};
|
|
2847
2850
|
}, [g, p]), /* @__PURE__ */ o.jsxs("div", { className: "data-table-container", children: [
|
|
2848
2851
|
r && /* @__PURE__ */ o.jsx("h2", { className: "mb-2", children: r }),
|
|
2849
2852
|
i,
|
|
2850
2853
|
/* @__PURE__ */ o.jsxs("table", { className: `data-table ${n || ""}`, id: t, children: [
|
|
2851
2854
|
/* @__PURE__ */ o.jsx("thead", { children: /* @__PURE__ */ o.jsxs("tr", { children: [
|
|
2852
|
-
|
|
2855
|
+
v && /* @__PURE__ */ o.jsx(
|
|
2853
2856
|
"th",
|
|
2854
2857
|
{
|
|
2855
|
-
className: `select-cell ${
|
|
2858
|
+
className: `select-cell ${b ? "hidden" : ""}`,
|
|
2856
2859
|
style: { width: "20px", textAlign: "center" },
|
|
2857
2860
|
children: /* @__PURE__ */ o.jsx(
|
|
2858
2861
|
wr,
|
|
@@ -2861,19 +2864,19 @@ function Vl(e) {
|
|
|
2861
2864
|
name: `select-th-${t}`,
|
|
2862
2865
|
type: Be.CHECKBOX,
|
|
2863
2866
|
checked: s.length > 0 && S.size === s.length,
|
|
2864
|
-
onChange:
|
|
2867
|
+
onChange: N
|
|
2865
2868
|
}
|
|
2866
2869
|
)
|
|
2867
2870
|
}
|
|
2868
2871
|
),
|
|
2869
|
-
c.map((y,
|
|
2872
|
+
c.map((y, _) => /* @__PURE__ */ o.jsx(
|
|
2870
2873
|
bs,
|
|
2871
2874
|
{
|
|
2872
2875
|
column: y,
|
|
2873
|
-
idx:
|
|
2874
|
-
onColumnClick:
|
|
2876
|
+
idx: _,
|
|
2877
|
+
onColumnClick: m
|
|
2875
2878
|
},
|
|
2876
|
-
|
|
2879
|
+
_
|
|
2877
2880
|
)),
|
|
2878
2881
|
l.length > 0 && /* @__PURE__ */ o.jsx(
|
|
2879
2882
|
"th",
|
|
@@ -2895,18 +2898,18 @@ function Vl(e) {
|
|
|
2895
2898
|
children: /* @__PURE__ */ o.jsx("div", { className: "mt-3", children: /* @__PURE__ */ o.jsx(pa, { display: d }) })
|
|
2896
2899
|
}
|
|
2897
2900
|
) }) : /* @__PURE__ */ o.jsx(o.Fragment, {}),
|
|
2898
|
-
!d && s.map((y,
|
|
2899
|
-
|
|
2901
|
+
!d && s.map((y, _) => /* @__PURE__ */ o.jsxs("tr", { onClick: (I) => C == null ? void 0 : C(I, y), children: [
|
|
2902
|
+
v && /* @__PURE__ */ o.jsx("td", { className: "select-cell", style: { textAlign: "center" }, children: /* @__PURE__ */ o.jsx(
|
|
2900
2903
|
wr,
|
|
2901
2904
|
{
|
|
2902
|
-
id: `select-row-${
|
|
2903
|
-
name: `select-row-${
|
|
2905
|
+
id: `select-row-${_}`,
|
|
2906
|
+
name: `select-row-${_}`,
|
|
2904
2907
|
type: Be.CHECKBOX,
|
|
2905
2908
|
disabled: j !== void 0 && S.size >= j && !S.has(
|
|
2906
|
-
|
|
2909
|
+
x ? x(y) : y.id ?? y
|
|
2907
2910
|
),
|
|
2908
2911
|
checked: S.has(
|
|
2909
|
-
|
|
2912
|
+
x ? x(y) : y.id ?? y
|
|
2910
2913
|
),
|
|
2911
2914
|
onChange: (I) => W(I, y)
|
|
2912
2915
|
}
|
|
@@ -2921,7 +2924,7 @@ function Vl(e) {
|
|
|
2921
2924
|
},
|
|
2922
2925
|
M
|
|
2923
2926
|
)) }) })
|
|
2924
|
-
] },
|
|
2927
|
+
] }, _)),
|
|
2925
2928
|
!d && s.length === 0 && /* @__PURE__ */ o.jsx(
|
|
2926
2929
|
xs,
|
|
2927
2930
|
{
|
|
@@ -2933,7 +2936,7 @@ function Vl(e) {
|
|
|
2933
2936
|
] })
|
|
2934
2937
|
] }),
|
|
2935
2938
|
a,
|
|
2936
|
-
p && /* @__PURE__ */ o.jsx("div", { ref:
|
|
2939
|
+
p && /* @__PURE__ */ o.jsx("div", { ref: k, className: "infinite-scroll-loader", children: /* @__PURE__ */ o.jsx(pa, { display: !0 }) })
|
|
2937
2940
|
] });
|
|
2938
2941
|
}
|
|
2939
2942
|
function fo(e) {
|
|
@@ -2977,24 +2980,24 @@ var Cs = _s, un = { exports: {} }, Ps = () => {
|
|
|
2977
2980
|
};
|
|
2978
2981
|
(function(e, t) {
|
|
2979
2982
|
var r = ar && ar.__awaiter || function(s, l, c, d) {
|
|
2980
|
-
return new (c || (c = Promise))(function(f,
|
|
2981
|
-
function g(
|
|
2983
|
+
return new (c || (c = Promise))(function(f, m) {
|
|
2984
|
+
function g(v) {
|
|
2982
2985
|
try {
|
|
2983
|
-
p(d.next(
|
|
2984
|
-
} catch (
|
|
2985
|
-
|
|
2986
|
+
p(d.next(v));
|
|
2987
|
+
} catch (b) {
|
|
2988
|
+
m(b);
|
|
2986
2989
|
}
|
|
2987
2990
|
}
|
|
2988
|
-
function h(
|
|
2991
|
+
function h(v) {
|
|
2989
2992
|
try {
|
|
2990
|
-
p(d.throw(
|
|
2991
|
-
} catch (
|
|
2992
|
-
|
|
2993
|
+
p(d.throw(v));
|
|
2994
|
+
} catch (b) {
|
|
2995
|
+
m(b);
|
|
2993
2996
|
}
|
|
2994
2997
|
}
|
|
2995
|
-
function p(
|
|
2996
|
-
|
|
2997
|
-
|
|
2998
|
+
function p(v) {
|
|
2999
|
+
v.done ? f(v.value) : new c(function(b) {
|
|
3000
|
+
b(v.value);
|
|
2998
3001
|
}).then(g, h);
|
|
2999
3002
|
}
|
|
3000
3003
|
p((d = d.apply(s, l || [])).next());
|
|
@@ -3006,34 +3009,34 @@ var Cs = _s, un = { exports: {} }, Ps = () => {
|
|
|
3006
3009
|
const a = n(Ps);
|
|
3007
3010
|
function i(s, l = "maxAge") {
|
|
3008
3011
|
let c, d, f;
|
|
3009
|
-
const
|
|
3012
|
+
const m = () => r(this, void 0, void 0, function* () {
|
|
3010
3013
|
if (c !== void 0)
|
|
3011
3014
|
return;
|
|
3012
|
-
const p = (
|
|
3015
|
+
const p = (v) => r(this, void 0, void 0, function* () {
|
|
3013
3016
|
f = a.default();
|
|
3014
|
-
const
|
|
3015
|
-
if (
|
|
3016
|
-
s.delete(
|
|
3017
|
+
const b = v[1][l] - Date.now();
|
|
3018
|
+
if (b <= 0) {
|
|
3019
|
+
s.delete(v[0]), f.resolve();
|
|
3017
3020
|
return;
|
|
3018
3021
|
}
|
|
3019
|
-
return c =
|
|
3020
|
-
s.delete(
|
|
3021
|
-
},
|
|
3022
|
+
return c = v[0], d = setTimeout(() => {
|
|
3023
|
+
s.delete(v[0]), f && f.resolve();
|
|
3024
|
+
}, b), typeof d.unref == "function" && d.unref(), f.promise;
|
|
3022
3025
|
});
|
|
3023
3026
|
try {
|
|
3024
|
-
for (const
|
|
3025
|
-
yield p(
|
|
3027
|
+
for (const v of s)
|
|
3028
|
+
yield p(v);
|
|
3026
3029
|
} catch {
|
|
3027
3030
|
}
|
|
3028
3031
|
c = void 0;
|
|
3029
3032
|
}), g = () => {
|
|
3030
3033
|
c = void 0, d !== void 0 && (clearTimeout(d), d = void 0), f !== void 0 && (f.reject(void 0), f = void 0);
|
|
3031
3034
|
}, h = s.set.bind(s);
|
|
3032
|
-
return s.set = (p,
|
|
3035
|
+
return s.set = (p, v) => {
|
|
3033
3036
|
s.has(p) && s.delete(p);
|
|
3034
|
-
const
|
|
3035
|
-
return c && c === p && g(),
|
|
3036
|
-
},
|
|
3037
|
+
const b = h(p, v);
|
|
3038
|
+
return c && c === p && g(), m(), b;
|
|
3039
|
+
}, m(), s;
|
|
3037
3040
|
}
|
|
3038
3041
|
t.default = i, e.exports = i, e.exports.default = i;
|
|
3039
3042
|
})(un, un.exports);
|
|
@@ -3110,8 +3113,8 @@ function Fs(e) {
|
|
|
3110
3113
|
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 = [];
|
|
3111
3114
|
if (typeof navigator < "u") {
|
|
3112
3115
|
for (var l = navigator.languages || [], c = [], d = 0, f = l; d < f.length; d++) {
|
|
3113
|
-
var
|
|
3114
|
-
c = c.concat(ga(
|
|
3116
|
+
var m = f[d];
|
|
3117
|
+
c = c.concat(ga(m));
|
|
3115
3118
|
}
|
|
3116
3119
|
var g = navigator.language, h = g && ga(g);
|
|
3117
3120
|
s = s.concat(c, h);
|
|
@@ -3476,7 +3479,7 @@ function Po(e, t) {
|
|
|
3476
3479
|
}
|
|
3477
3480
|
var Pe = "react-calendar__navigation";
|
|
3478
3481
|
function Sc(e) {
|
|
3479
|
-
var t = e.activeStartDate, r = e.drillUp, n = e.formatMonthYear, a = n === void 0 ? No : n, i = e.formatYear, s = i === void 0 ? Ir : i, l = e.locale, c = e.maxDate, d = e.minDate, f = e.navigationAriaLabel,
|
|
3482
|
+
var t = e.activeStartDate, r = e.drillUp, n = e.formatMonthYear, a = n === void 0 ? No : n, i = e.formatYear, s = i === void 0 ? Ir : i, l = e.locale, c = e.maxDate, d = e.minDate, f = e.navigationAriaLabel, m = f === void 0 ? "" : f, g = e.navigationAriaLive, h = e.navigationLabel, p = e.next2AriaLabel, v = p === void 0 ? "" : p, b = e.next2Label, j = b === void 0 ? "»" : b, x = e.nextAriaLabel, k = x === void 0 ? "" : x, S = e.nextLabel, D = S === void 0 ? "›" : S, N = e.prev2AriaLabel, C = N === void 0 ? "" : N, W = e.prev2Label, y = W === void 0 ? "«" : W, _ = e.prevAriaLabel, I = _ === void 0 ? "" : _, M = e.prevLabel, L = M === void 0 ? "‹" : M, X = e.setActiveStartDate, ve = e.showDoubleView, re = e.view, xe = e.views, Ie = xe.indexOf(re) > 0, ee = re !== "century", K = mc(re, t), ce = ee ? pc(re, t) : void 0, Z = Eo(re, t), Se = ee ? gc(re, t) : void 0, Ee = function() {
|
|
3480
3483
|
if (K.getFullYear() < 0)
|
|
3481
3484
|
return !0;
|
|
3482
3485
|
var te = yc(re, t);
|
|
@@ -3523,9 +3526,9 @@ function Sc(e) {
|
|
|
3523
3526
|
}
|
|
3524
3527
|
function Ot() {
|
|
3525
3528
|
var te = "".concat(Pe, "__label");
|
|
3526
|
-
return o.jsxs("button", { "aria-label":
|
|
3529
|
+
return o.jsxs("button", { "aria-label": m, "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: fe(t) }), ve ? 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: fe(Z) })] }) : null] });
|
|
3527
3530
|
}
|
|
3528
|
-
return o.jsxs("div", { className: Pe, children: [y !== null && ee ? o.jsx("button", { "aria-label":
|
|
3531
|
+
return o.jsxs("div", { className: Pe, children: [y !== null && ee ? o.jsx("button", { "aria-label": C, className: "".concat(Pe, "__arrow ").concat(Pe, "__prev2-button"), disabled: ke, onClick: ne, type: "button", children: y }) : null, L !== null && o.jsx("button", { "aria-label": I, className: "".concat(Pe, "__arrow ").concat(Pe, "__prev-button"), disabled: Ee, onClick: le, type: "button", children: L }), Ot(), D !== null && o.jsx("button", { "aria-label": k, className: "".concat(Pe, "__arrow ").concat(Pe, "__next-button"), disabled: me, onClick: De, type: "button", children: D }), j !== null && ee ? o.jsx("button", { "aria-label": v, className: "".concat(Pe, "__arrow ").concat(Pe, "__next2-button"), disabled: pe, onClick: _e, type: "button", children: j }) : null] });
|
|
3529
3532
|
}
|
|
3530
3533
|
var ft = function() {
|
|
3531
3534
|
return ft = Object.assign || function(e) {
|
|
@@ -3549,14 +3552,14 @@ function xa(e) {
|
|
|
3549
3552
|
function Yn(e) {
|
|
3550
3553
|
var t = e.children, r = e.className, n = e.count, a = e.direction, i = e.offset, s = e.style, l = e.wrap, c = Dc(e, ["children", "className", "count", "direction", "offset", "style", "wrap"]);
|
|
3551
3554
|
return o.jsx("div", ft({ className: r, style: ft({ display: "flex", flexDirection: a, flexWrap: l ? "wrap" : "nowrap" }, s) }, c, { children: Uo.map(t, function(d, f) {
|
|
3552
|
-
var
|
|
3555
|
+
var m = i && f === 0 ? xa(100 * i / n) : null;
|
|
3553
3556
|
return zo(d, ft(ft({}, d.props), { style: {
|
|
3554
3557
|
flexBasis: xa(100 / n),
|
|
3555
3558
|
flexShrink: 0,
|
|
3556
3559
|
flexGrow: 0,
|
|
3557
3560
|
overflow: "hidden",
|
|
3558
|
-
marginLeft:
|
|
3559
|
-
marginInlineStart:
|
|
3561
|
+
marginLeft: m,
|
|
3562
|
+
marginInlineStart: m,
|
|
3560
3563
|
marginInlineEnd: 0
|
|
3561
3564
|
} }));
|
|
3562
3565
|
}) }));
|
|
@@ -3614,15 +3617,15 @@ function kc(e) {
|
|
|
3614
3617
|
i.push.apply(i, d);
|
|
3615
3618
|
var f = Array.isArray(t) ? t : [t];
|
|
3616
3619
|
if (n && f.length === 1) {
|
|
3617
|
-
var
|
|
3620
|
+
var m = n > c[0] ? [c[0], n] : [n, c[0]], g = wa(m, l, "".concat(a, "--hover"));
|
|
3618
3621
|
i.push.apply(i, g);
|
|
3619
3622
|
}
|
|
3620
3623
|
return i;
|
|
3621
3624
|
}
|
|
3622
3625
|
function $r(e) {
|
|
3623
|
-
for (var t = e.className, r = e.count, n = r === void 0 ? 3 : r, a = e.dateTransform, i = e.dateType, s = e.end, l = e.hover, c = e.offset, d = e.renderTile, f = e.start,
|
|
3624
|
-
var j = a(
|
|
3625
|
-
|
|
3626
|
+
for (var t = e.className, r = e.count, n = r === void 0 ? 3 : r, a = e.dateTransform, i = e.dateType, s = e.end, l = e.hover, c = e.offset, d = e.renderTile, f = e.start, m = e.step, g = m === void 0 ? 1 : m, h = e.value, p = e.valueType, v = [], b = f; b <= s; b += g) {
|
|
3627
|
+
var j = a(b);
|
|
3628
|
+
v.push(d({
|
|
3626
3629
|
classes: kc({
|
|
3627
3630
|
date: j,
|
|
3628
3631
|
dateType: i,
|
|
@@ -3633,23 +3636,23 @@ function $r(e) {
|
|
|
3633
3636
|
date: j
|
|
3634
3637
|
}));
|
|
3635
3638
|
}
|
|
3636
|
-
return o.jsx(Yn, { className: t, count: n, offset: c, wrap: !0, children:
|
|
3639
|
+
return o.jsx(Yn, { className: t, count: n, offset: c, wrap: !0, children: v });
|
|
3637
3640
|
}
|
|
3638
3641
|
function Mr(e) {
|
|
3639
|
-
var t = e.activeStartDate, r = e.children, n = e.classes, a = e.date, i = e.formatAbbr, s = e.locale, l = e.maxDate, c = e.maxDateTransform, d = e.minDate, f = e.minDateTransform,
|
|
3642
|
+
var t = e.activeStartDate, r = e.children, n = e.classes, a = e.date, i = e.formatAbbr, s = e.locale, l = e.maxDate, c = e.maxDateTransform, d = e.minDate, f = e.minDateTransform, m = e.onClick, g = e.onMouseOver, h = e.style, p = e.tileClassName, v = e.tileContent, b = e.tileDisabled, j = e.view, x = Re(function() {
|
|
3640
3643
|
var S = { activeStartDate: t, date: a, view: j };
|
|
3641
3644
|
return typeof p == "function" ? p(S) : p;
|
|
3642
|
-
}, [t, a, p, j]),
|
|
3645
|
+
}, [t, a, p, j]), k = Re(function() {
|
|
3643
3646
|
var S = { activeStartDate: t, date: a, view: j };
|
|
3644
|
-
return typeof
|
|
3645
|
-
}, [t, a,
|
|
3646
|
-
return o.jsxs("button", { className: Pr(n,
|
|
3647
|
-
return
|
|
3647
|
+
return typeof v == "function" ? v(S) : v;
|
|
3648
|
+
}, [t, a, v, j]);
|
|
3649
|
+
return o.jsxs("button", { className: Pr(n, x), disabled: d && f(d) > a || l && c(l) < a || (b == null ? void 0 : b({ activeStartDate: t, date: a, view: j })), onClick: m ? function(S) {
|
|
3650
|
+
return m(a, S);
|
|
3648
3651
|
} : void 0, onFocus: g ? function() {
|
|
3649
3652
|
return g(a);
|
|
3650
3653
|
} : void 0, onMouseOver: g ? function() {
|
|
3651
3654
|
return g(a);
|
|
3652
|
-
} : void 0, style: h, type: "button", children: [i ? o.jsx("abbr", { "aria-label": i(s, a), children: r }) : r,
|
|
3655
|
+
} : void 0, style: h, type: "button", children: [i ? o.jsx("abbr", { "aria-label": i(s, a), children: r }) : r, k] });
|
|
3653
3656
|
}
|
|
3654
3657
|
var hn = function() {
|
|
3655
3658
|
return hn = Object.assign || function(e) {
|
|
@@ -3690,8 +3693,8 @@ var vn = function() {
|
|
|
3690
3693
|
function Pc(e) {
|
|
3691
3694
|
var t = e.activeStartDate, r = e.hover, n = e.showNeighboringCentury, a = e.value, i = e.valueType, s = Sa(e, ["activeStartDate", "hover", "showNeighboringCentury", "value", "valueType"]), l = fc(t), c = l + (n ? 119 : 99);
|
|
3692
3695
|
return o.jsx($r, { className: "react-calendar__century-view__decades", dateTransform: Ge, dateType: "decade", end: c, hover: r, renderTile: function(d) {
|
|
3693
|
-
var f = d.date,
|
|
3694
|
-
return o.jsx(Cc, vn({}, s,
|
|
3696
|
+
var f = d.date, m = Sa(d, ["date"]);
|
|
3697
|
+
return o.jsx(Cc, vn({}, s, m, { activeStartDate: t, currentCentury: l, date: f }), f.getTime());
|
|
3695
3698
|
}, start: l, step: 10, value: a, valueType: i });
|
|
3696
3699
|
}
|
|
3697
3700
|
var mn = function() {
|
|
@@ -3748,8 +3751,8 @@ var gn = function() {
|
|
|
3748
3751
|
function Ic(e) {
|
|
3749
3752
|
var t = e.activeStartDate, r = e.hover, n = e.showNeighboringDecade, a = e.value, i = e.valueType, s = Oa(e, ["activeStartDate", "hover", "showNeighboringDecade", "value", "valueType"]), l = hc(t), c = l + (n ? 11 : 9);
|
|
3750
3753
|
return o.jsx($r, { className: "react-calendar__decade-view__years", dateTransform: Dt, dateType: "year", end: c, hover: r, renderTile: function(d) {
|
|
3751
|
-
var f = d.date,
|
|
3752
|
-
return o.jsx(Ac, gn({}, s,
|
|
3754
|
+
var f = d.date, m = Oa(d, ["date"]);
|
|
3755
|
+
return o.jsx(Ac, gn({}, s, m, { activeStartDate: t, currentDecade: l, date: f }), f.getTime());
|
|
3753
3756
|
}, start: l, value: a, valueType: i });
|
|
3754
3757
|
}
|
|
3755
3758
|
var yn = function() {
|
|
@@ -3813,8 +3816,8 @@ function Wc(e) {
|
|
|
3813
3816
|
var f = /* @__PURE__ */ new Date();
|
|
3814
3817
|
return f.setFullYear(c, d, 1), at(f);
|
|
3815
3818
|
}, dateType: "month", end: l, hover: r, renderTile: function(d) {
|
|
3816
|
-
var f = d.date,
|
|
3817
|
-
return o.jsx(Fc, xn({}, i,
|
|
3819
|
+
var f = d.date, m = Ea(d, ["date"]);
|
|
3820
|
+
return o.jsx(Fc, xn({}, i, m, { activeStartDate: t, date: f }), f.getTime());
|
|
3818
3821
|
}, start: s, value: n, valueType: a });
|
|
3819
3822
|
}
|
|
3820
3823
|
var wn = function() {
|
|
@@ -3849,8 +3852,8 @@ var jn = function() {
|
|
|
3849
3852
|
return r;
|
|
3850
3853
|
}, Jr = "react-calendar__month-view__days__day";
|
|
3851
3854
|
function Bc(e) {
|
|
3852
|
-
var t = e.calendarType, r = e.classes, n = r === void 0 ? [] : r, a = e.currentMonthIndex, i = e.formatDay, s = i === void 0 ? oc : i, l = e.formatLongDate, c = l === void 0 ? ic : l, d = Yc(e, ["calendarType", "classes", "currentMonthIndex", "formatDay", "formatLongDate"]), f = d.date,
|
|
3853
|
-
return n && g.push.apply(g, n), g.push(Jr), Po(f, t) && g.push("".concat(Jr, "--weekend")), f.getMonth() !== a && g.push("".concat(Jr, "--neighboringMonth")), o.jsx(Mr, jn({}, d, { classes: g, formatAbbr: c, maxDateTransform: Wn, minDateTransform: Gt, view: "month", children: s(
|
|
3855
|
+
var t = e.calendarType, r = e.classes, n = r === void 0 ? [] : r, a = e.currentMonthIndex, i = e.formatDay, s = i === void 0 ? oc : i, l = e.formatLongDate, c = l === void 0 ? ic : l, d = Yc(e, ["calendarType", "classes", "currentMonthIndex", "formatDay", "formatLongDate"]), f = d.date, m = d.locale, g = [];
|
|
3856
|
+
return n && g.push.apply(g, n), g.push(Jr), Po(f, t) && g.push("".concat(Jr, "--weekend")), f.getMonth() !== a && g.push("".concat(Jr, "--neighboringMonth")), o.jsx(Mr, jn({}, d, { classes: g, formatAbbr: c, maxDateTransform: Wn, minDateTransform: Gt, view: "month", children: s(m, f) }));
|
|
3854
3857
|
}
|
|
3855
3858
|
var Sn = function() {
|
|
3856
3859
|
return Sn = Object.assign || function(e) {
|
|
@@ -3869,31 +3872,31 @@ var Sn = function() {
|
|
|
3869
3872
|
return r;
|
|
3870
3873
|
};
|
|
3871
3874
|
function Uc(e) {
|
|
3872
|
-
var t = e.activeStartDate, r = e.calendarType, n = e.hover, a = e.showFixedNumberOfWeeks, i = e.showNeighboringMonth, s = e.value, l = e.valueType, c = ka(e, ["activeStartDate", "calendarType", "hover", "showFixedNumberOfWeeks", "showNeighboringMonth", "value", "valueType"]), d = Q(t), f = ze(t),
|
|
3875
|
+
var t = e.activeStartDate, r = e.calendarType, n = e.hover, a = e.showFixedNumberOfWeeks, i = e.showNeighboringMonth, s = e.value, l = e.valueType, c = ka(e, ["activeStartDate", "calendarType", "hover", "showFixedNumberOfWeeks", "showNeighboringMonth", "value", "valueType"]), d = Q(t), f = ze(t), m = a || i, g = Vt(t, r), h = m ? 0 : g, p = (m ? -g : 0) + 1, v = function() {
|
|
3873
3876
|
if (a)
|
|
3874
3877
|
return p + 6 * 7 - 1;
|
|
3875
|
-
var
|
|
3878
|
+
var b = Oo(t);
|
|
3876
3879
|
if (i) {
|
|
3877
3880
|
var j = /* @__PURE__ */ new Date();
|
|
3878
|
-
j.setFullYear(d, f,
|
|
3879
|
-
var
|
|
3880
|
-
return
|
|
3881
|
+
j.setFullYear(d, f, b), j.setHours(0, 0, 0, 0);
|
|
3882
|
+
var x = 7 - Vt(j, r) - 1;
|
|
3883
|
+
return b + x;
|
|
3881
3884
|
}
|
|
3882
|
-
return
|
|
3885
|
+
return b;
|
|
3883
3886
|
}();
|
|
3884
|
-
return o.jsx($r, { className: "react-calendar__month-view__days", count: 7, dateTransform: function(
|
|
3887
|
+
return o.jsx($r, { className: "react-calendar__month-view__days", count: 7, dateTransform: function(b) {
|
|
3885
3888
|
var j = /* @__PURE__ */ new Date();
|
|
3886
|
-
return j.setFullYear(d, f,
|
|
3887
|
-
}, dateType: "day", hover: n, end:
|
|
3888
|
-
var j =
|
|
3889
|
-
return o.jsx(Bc, Sn({}, c,
|
|
3889
|
+
return j.setFullYear(d, f, b), Gt(j);
|
|
3890
|
+
}, dateType: "day", hover: n, end: v, renderTile: function(b) {
|
|
3891
|
+
var j = b.date, x = ka(b, ["date"]);
|
|
3892
|
+
return o.jsx(Bc, Sn({}, c, x, { activeStartDate: t, calendarType: r, currentMonthIndex: f, date: j }), j.getTime());
|
|
3890
3893
|
}, offset: h, start: p, value: s, valueType: l });
|
|
3891
3894
|
}
|
|
3892
3895
|
var Ro = "react-calendar__month-view__weekdays", Qr = "".concat(Ro, "__weekday");
|
|
3893
3896
|
function zc(e) {
|
|
3894
|
-
for (var t = e.calendarType, r = e.formatShortWeekday, n = r === void 0 ? cc : r, a = e.formatWeekday, i = a === void 0 ? lc : a, s = e.locale, l = e.onMouseLeave, c = /* @__PURE__ */ new Date(), d = at(c), f = Q(d),
|
|
3895
|
-
var p = new Date(f,
|
|
3896
|
-
g.push(o.jsx("div", { className: Pr(Qr, jc(p) && "".concat(Qr, "--current"), Po(p, t) && "".concat(Qr, "--weekend")), children: o.jsx("abbr", { "aria-label":
|
|
3897
|
+
for (var t = e.calendarType, r = e.formatShortWeekday, n = r === void 0 ? cc : r, a = e.formatWeekday, i = a === void 0 ? lc : a, s = e.locale, l = e.onMouseLeave, c = /* @__PURE__ */ new Date(), d = at(c), f = Q(d), m = ze(d), g = [], h = 1; h <= 7; h += 1) {
|
|
3898
|
+
var p = new Date(f, m, h - Vt(d, t)), v = i(s, p);
|
|
3899
|
+
g.push(o.jsx("div", { className: Pr(Qr, jc(p) && "".concat(Qr, "--current"), Po(p, t) && "".concat(Qr, "--weekend")), children: o.jsx("abbr", { "aria-label": v, title: v, children: n(s, p).replace(".", "") }) }, h));
|
|
3897
3900
|
}
|
|
3898
3901
|
return o.jsx(Yn, { className: Ro, count: 7, onFocus: l, onMouseOver: l, children: g });
|
|
3899
3902
|
}
|
|
@@ -3930,20 +3933,20 @@ function Hc(e) {
|
|
|
3930
3933
|
var t = e.activeStartDate, r = e.calendarType, n = e.onClickWeekNumber, a = e.onMouseLeave, i = e.showFixedNumberOfWeeks, s = function() {
|
|
3931
3934
|
if (i)
|
|
3932
3935
|
return 6;
|
|
3933
|
-
var d = Oo(t), f = Vt(t, r),
|
|
3934
|
-
return 1 + Math.ceil(
|
|
3936
|
+
var d = Oo(t), f = Vt(t, r), m = d - (7 - f);
|
|
3937
|
+
return 1 + Math.ceil(m / 7);
|
|
3935
3938
|
}(), l = function() {
|
|
3936
|
-
for (var d = Q(t), f = ze(t),
|
|
3937
|
-
g.push(fn(new Date(d, f,
|
|
3939
|
+
for (var d = Q(t), f = ze(t), m = Tr(t), g = [], h = 0; h < s; h += 1)
|
|
3940
|
+
g.push(fn(new Date(d, f, m + h * 7), r));
|
|
3938
3941
|
return g;
|
|
3939
3942
|
}(), c = l.map(function(d) {
|
|
3940
3943
|
return vc(d, r);
|
|
3941
3944
|
});
|
|
3942
3945
|
return o.jsx(Yn, { className: "react-calendar__month-view__weekNumbers", count: s, direction: "column", onFocus: a, onMouseOver: a, style: { flexBasis: "calc(100% * (1 / 8)", flexShrink: 0 }, children: c.map(function(d, f) {
|
|
3943
|
-
var
|
|
3944
|
-
if (!
|
|
3946
|
+
var m = l[f];
|
|
3947
|
+
if (!m)
|
|
3945
3948
|
throw new Error("date is not defined");
|
|
3946
|
-
return o.jsx(Gc, { date:
|
|
3949
|
+
return o.jsx(Gc, { date: m, onClickWeekNumber: n, weekNumber: d }, d);
|
|
3947
3950
|
}) });
|
|
3948
3951
|
}
|
|
3949
3952
|
var Dn = function() {
|
|
@@ -3972,7 +3975,7 @@ function Xc(e) {
|
|
|
3972
3975
|
return de.ISO_8601;
|
|
3973
3976
|
}
|
|
3974
3977
|
function Kc(e) {
|
|
3975
|
-
var t = e.activeStartDate, r = e.locale, n = e.onMouseLeave, a = e.showFixedNumberOfWeeks, i = e.calendarType, s = i === void 0 ? Xc(r) : i, l = e.formatShortWeekday, c = e.formatWeekday, d = e.onClickWeekNumber, f = e.showWeekNumbers,
|
|
3978
|
+
var t = e.activeStartDate, r = e.locale, n = e.onMouseLeave, a = e.showFixedNumberOfWeeks, i = e.calendarType, s = i === void 0 ? Xc(r) : i, l = e.formatShortWeekday, c = e.formatWeekday, d = e.onClickWeekNumber, f = e.showWeekNumbers, m = qc(e, ["calendarType", "formatShortWeekday", "formatWeekday", "onClickWeekNumber", "showWeekNumbers"]);
|
|
3976
3979
|
function g() {
|
|
3977
3980
|
return o.jsx(zc, { calendarType: s, formatShortWeekday: l, formatWeekday: c, locale: r, onMouseLeave: n });
|
|
3978
3981
|
}
|
|
@@ -3980,10 +3983,10 @@ function Kc(e) {
|
|
|
3980
3983
|
return f ? o.jsx(Hc, { activeStartDate: t, calendarType: s, onClickWeekNumber: d, onMouseLeave: n, showFixedNumberOfWeeks: a }) : null;
|
|
3981
3984
|
}
|
|
3982
3985
|
function p() {
|
|
3983
|
-
return o.jsx(Uc, Dn({ calendarType: s },
|
|
3986
|
+
return o.jsx(Uc, Dn({ calendarType: s }, m));
|
|
3984
3987
|
}
|
|
3985
|
-
var
|
|
3986
|
-
return o.jsx("div", { className: Pr(
|
|
3988
|
+
var v = "react-calendar__month-view";
|
|
3989
|
+
return o.jsx("div", { className: Pr(v, f ? "".concat(v, "--weekNumbers") : ""), children: o.jsxs("div", { style: {
|
|
3987
3990
|
display: "flex",
|
|
3988
3991
|
alignItems: "flex-end"
|
|
3989
3992
|
}, children: [h(), o.jsxs("div", { style: {
|
|
@@ -4064,8 +4067,8 @@ function Lo(e) {
|
|
|
4064
4067
|
return rt(l, c);
|
|
4065
4068
|
}
|
|
4066
4069
|
function rl(e) {
|
|
4067
|
-
var t = e.activeStartDate, r = e.defaultActiveStartDate, n = e.defaultValue, a = e.defaultView, i = e.maxDate, s = e.maxDetail, l = e.minDate, c = e.minDetail, d = e.value, f = e.view,
|
|
4068
|
-
return g ? rt(
|
|
4070
|
+
var t = e.activeStartDate, r = e.defaultActiveStartDate, n = e.defaultValue, a = e.defaultView, i = e.maxDate, s = e.maxDetail, l = e.minDate, c = e.minDetail, d = e.value, f = e.view, m = Un(f, c, s), g = t || r;
|
|
4071
|
+
return g ? rt(m, g) : Lo({
|
|
4069
4072
|
maxDate: i,
|
|
4070
4073
|
maxDetail: s,
|
|
4071
4074
|
minDate: l,
|
|
@@ -4081,28 +4084,28 @@ function ur(e, t) {
|
|
|
4081
4084
|
return e instanceof Date && t instanceof Date && e.getTime() === t.getTime();
|
|
4082
4085
|
}
|
|
4083
4086
|
var nl = Ue(function(t, r) {
|
|
4084
|
-
var n = t.activeStartDate, a = t.allowPartialRange, i = t.calendarType, s = t.className, l = t.defaultActiveStartDate, c = t.defaultValue, d = t.defaultView, f = t.formatDay,
|
|
4085
|
-
return
|
|
4086
|
-
}) : c != null ? Ft(c) : null), Xe = er[0], tr = er[1],
|
|
4087
|
+
var n = t.activeStartDate, a = t.allowPartialRange, i = t.calendarType, s = t.className, l = t.defaultActiveStartDate, c = t.defaultValue, d = t.defaultView, f = t.formatDay, m = t.formatLongDate, g = t.formatMonth, h = t.formatMonthYear, p = t.formatShortWeekday, v = t.formatWeekday, b = t.formatYear, j = t.goToRangeStartOnSelect, x = j === void 0 ? !0 : j, k = t.inputRef, S = t.locale, D = t.maxDate, N = D === void 0 ? Qc : D, C = t.maxDetail, W = C === void 0 ? "month" : C, y = t.minDate, _ = y === void 0 ? Bn : y, I = t.minDetail, M = I === void 0 ? "century" : I, L = t.navigationAriaLabel, X = t.navigationAriaLive, ve = t.navigationLabel, re = t.next2AriaLabel, xe = t.next2Label, Ie = t.nextAriaLabel, ee = t.nextLabel, K = t.onActiveStartDateChange, ce = t.onChange, Z = t.onClickDay, Se = t.onClickDecade, Ee = t.onClickMonth, ke = t.onClickWeekNumber, me = t.onClickYear, pe = t.onDrillDown, le = t.onDrillUp, ne = t.onViewChange, De = t.prev2AriaLabel, _e = t.prev2Label, fe = t.prevAriaLabel, Ot = t.prevLabel, te = t.returnValue, Ce = te === void 0 ? "start" : te, ie = t.selectRange, He = t.showDoubleView, Nt = t.showFixedNumberOfWeeks, qe = t.showNavigation, Lr = qe === void 0 ? !0 : qe, Fr = t.showNeighboringCentury, Et = t.showNeighboringDecade, Ht = t.showNeighboringMonth, Wr = Ht === void 0 ? !0 : Ht, qt = t.showWeekNumbers, Xt = t.tileClassName, Kt = t.tileContent, Vr = t.tileDisabled, it = t.value, kt = t.view, Jt = F(l), Yr = Jt[0], st = Jt[1], Qt = F(null), Br = Qt[0], Zt = Qt[1], er = F(Array.isArray(c) ? c.map(function(E) {
|
|
4088
|
+
return E !== null ? Ft(E) : null;
|
|
4089
|
+
}) : c != null ? Ft(c) : null), Xe = er[0], tr = er[1], $e = F(d), _t = $e[0], ct = $e[1], ue = n || Yr || rl({
|
|
4087
4090
|
activeStartDate: n,
|
|
4088
4091
|
defaultActiveStartDate: l,
|
|
4089
4092
|
defaultValue: c,
|
|
4090
4093
|
defaultView: d,
|
|
4091
|
-
maxDate:
|
|
4094
|
+
maxDate: N,
|
|
4092
4095
|
maxDetail: W,
|
|
4093
|
-
minDate:
|
|
4096
|
+
minDate: _,
|
|
4094
4097
|
minDetail: M,
|
|
4095
4098
|
value: it,
|
|
4096
4099
|
view: kt
|
|
4097
4100
|
}), he = function() {
|
|
4098
|
-
var
|
|
4099
|
-
return
|
|
4101
|
+
var E = function() {
|
|
4102
|
+
return ie && Zr(Xe) ? Xe : it !== void 0 ? it : Xe;
|
|
4100
4103
|
}();
|
|
4101
|
-
return
|
|
4102
|
-
return
|
|
4103
|
-
}) :
|
|
4104
|
-
}(), Ke = Io(W), G = Un(kt || _t, M, W), we = Ao(M, W), rr =
|
|
4105
|
-
var
|
|
4104
|
+
return E ? Array.isArray(E) ? E.map(function(P) {
|
|
4105
|
+
return P !== null ? Ft(P) : null;
|
|
4106
|
+
}) : E !== null ? Ft(E) : null : null;
|
|
4107
|
+
}(), Ke = Io(W), G = Un(kt || _t, M, W), we = Ao(M, W), rr = ie ? Br : null, Ct = we.indexOf(G) < we.length - 1, nr = we.indexOf(G) > 0, Pt = R(function(E) {
|
|
4108
|
+
var P = function() {
|
|
4106
4109
|
switch (Ce) {
|
|
4107
4110
|
case "start":
|
|
4108
4111
|
return zn;
|
|
@@ -4114,23 +4117,23 @@ var nl = Ue(function(t, r) {
|
|
|
4114
4117
|
throw new Error("Invalid returnValue.");
|
|
4115
4118
|
}
|
|
4116
4119
|
}();
|
|
4117
|
-
return
|
|
4118
|
-
maxDate:
|
|
4120
|
+
return P({
|
|
4121
|
+
maxDate: N,
|
|
4119
4122
|
maxDetail: W,
|
|
4120
|
-
minDate:
|
|
4121
|
-
value:
|
|
4123
|
+
minDate: _,
|
|
4124
|
+
value: E
|
|
4122
4125
|
});
|
|
4123
|
-
}, [
|
|
4124
|
-
st(
|
|
4125
|
-
var
|
|
4126
|
-
action:
|
|
4127
|
-
activeStartDate:
|
|
4126
|
+
}, [N, W, _, Ce]), lt = R(function(E, P) {
|
|
4127
|
+
st(E);
|
|
4128
|
+
var T = {
|
|
4129
|
+
action: P,
|
|
4130
|
+
activeStartDate: E,
|
|
4128
4131
|
value: he,
|
|
4129
4132
|
view: G
|
|
4130
4133
|
};
|
|
4131
|
-
K && !ur(ue,
|
|
4132
|
-
}, [ue, K, he, G]), ut =
|
|
4133
|
-
var
|
|
4134
|
+
K && !ur(ue, E) && K(T);
|
|
4135
|
+
}, [ue, K, he, G]), ut = R(function(E, P) {
|
|
4136
|
+
var T = function() {
|
|
4134
4137
|
switch (G) {
|
|
4135
4138
|
case "century":
|
|
4136
4139
|
return Se;
|
|
@@ -4144,21 +4147,21 @@ var nl = Ue(function(t, r) {
|
|
|
4144
4147
|
throw new Error("Invalid view: ".concat(G, "."));
|
|
4145
4148
|
}
|
|
4146
4149
|
}();
|
|
4147
|
-
|
|
4148
|
-
}, [Z, Se, Ee, me, G]), Tt =
|
|
4150
|
+
T && T(E, P);
|
|
4151
|
+
}, [Z, Se, Ee, me, G]), Tt = R(function(E, P) {
|
|
4149
4152
|
if (Ct) {
|
|
4150
|
-
ut(
|
|
4151
|
-
var
|
|
4152
|
-
if (!
|
|
4153
|
+
ut(E, P);
|
|
4154
|
+
var T = we[we.indexOf(G) + 1];
|
|
4155
|
+
if (!T)
|
|
4153
4156
|
throw new Error("Attempted to drill down from the lowest view.");
|
|
4154
|
-
st(
|
|
4157
|
+
st(E), ct(T);
|
|
4155
4158
|
var z = {
|
|
4156
4159
|
action: "drillDown",
|
|
4157
|
-
activeStartDate:
|
|
4160
|
+
activeStartDate: E,
|
|
4158
4161
|
value: he,
|
|
4159
|
-
view:
|
|
4162
|
+
view: T
|
|
4160
4163
|
};
|
|
4161
|
-
K && !ur(ue,
|
|
4164
|
+
K && !ur(ue, E) && K(z), ne && G !== T && ne(z), pe && pe(z);
|
|
4162
4165
|
}
|
|
4163
4166
|
}, [
|
|
4164
4167
|
ue,
|
|
@@ -4170,20 +4173,20 @@ var nl = Ue(function(t, r) {
|
|
|
4170
4173
|
he,
|
|
4171
4174
|
G,
|
|
4172
4175
|
we
|
|
4173
|
-
]), Rt =
|
|
4176
|
+
]), Rt = R(function() {
|
|
4174
4177
|
if (nr) {
|
|
4175
|
-
var
|
|
4176
|
-
if (!
|
|
4178
|
+
var E = we[we.indexOf(G) - 1];
|
|
4179
|
+
if (!E)
|
|
4177
4180
|
throw new Error("Attempted to drill up from the highest view.");
|
|
4178
|
-
var
|
|
4179
|
-
st(
|
|
4180
|
-
var
|
|
4181
|
+
var P = rt(E, ue);
|
|
4182
|
+
st(P), ct(E);
|
|
4183
|
+
var T = {
|
|
4181
4184
|
action: "drillUp",
|
|
4182
|
-
activeStartDate:
|
|
4185
|
+
activeStartDate: P,
|
|
4183
4186
|
value: he,
|
|
4184
|
-
view:
|
|
4187
|
+
view: E
|
|
4185
4188
|
};
|
|
4186
|
-
K && !ur(ue,
|
|
4189
|
+
K && !ur(ue, P) && K(T), ne && G !== E && ne(T), le && le(T);
|
|
4187
4190
|
}
|
|
4188
4191
|
}, [
|
|
4189
4192
|
ue,
|
|
@@ -4194,36 +4197,36 @@ var nl = Ue(function(t, r) {
|
|
|
4194
4197
|
he,
|
|
4195
4198
|
G,
|
|
4196
4199
|
we
|
|
4197
|
-
]), At =
|
|
4198
|
-
var
|
|
4199
|
-
ut(
|
|
4200
|
-
var z =
|
|
4201
|
-
if (
|
|
4200
|
+
]), At = R(function(E, P) {
|
|
4201
|
+
var T = he;
|
|
4202
|
+
ut(E, P);
|
|
4203
|
+
var z = ie && !Zr(T), V;
|
|
4204
|
+
if (ie)
|
|
4202
4205
|
if (z)
|
|
4203
|
-
V = rt(Ke,
|
|
4206
|
+
V = rt(Ke, E);
|
|
4204
4207
|
else {
|
|
4205
|
-
if (!
|
|
4208
|
+
if (!T)
|
|
4206
4209
|
throw new Error("previousValue is required");
|
|
4207
|
-
if (Array.isArray(
|
|
4210
|
+
if (Array.isArray(T))
|
|
4208
4211
|
throw new Error("previousValue must not be an array");
|
|
4209
|
-
V = xc(Ke,
|
|
4212
|
+
V = xc(Ke, T, E);
|
|
4210
4213
|
}
|
|
4211
4214
|
else
|
|
4212
|
-
V = Pt(
|
|
4215
|
+
V = Pt(E);
|
|
4213
4216
|
var J = (
|
|
4214
4217
|
// Range selection turned off
|
|
4215
|
-
!
|
|
4218
|
+
!ie || // Range selection turned on, first value
|
|
4216
4219
|
z || // Range selection turned on, second value, goToRangeStartOnSelect toggled on
|
|
4217
|
-
|
|
4218
|
-
maxDate:
|
|
4220
|
+
x ? Lo({
|
|
4221
|
+
maxDate: N,
|
|
4219
4222
|
maxDetail: W,
|
|
4220
|
-
minDate:
|
|
4223
|
+
minDate: _,
|
|
4221
4224
|
minDetail: M,
|
|
4222
4225
|
value: V,
|
|
4223
4226
|
view: G
|
|
4224
4227
|
}) : null
|
|
4225
4228
|
);
|
|
4226
|
-
|
|
4229
|
+
P.persist(), st(J), tr(V);
|
|
4227
4230
|
var ge = {
|
|
4228
4231
|
action: "onChange",
|
|
4229
4232
|
activeStartDate: J,
|
|
@@ -4231,38 +4234,38 @@ var nl = Ue(function(t, r) {
|
|
|
4231
4234
|
view: G
|
|
4232
4235
|
};
|
|
4233
4236
|
if (K && !ur(ue, J) && K(ge), ce)
|
|
4234
|
-
if (
|
|
4237
|
+
if (ie) {
|
|
4235
4238
|
var We = Zr(V);
|
|
4236
4239
|
if (!We)
|
|
4237
|
-
ce(V || null,
|
|
4240
|
+
ce(V || null, P);
|
|
4238
4241
|
else if (a) {
|
|
4239
4242
|
if (Array.isArray(V))
|
|
4240
4243
|
throw new Error("value must not be an array");
|
|
4241
|
-
ce([V || null, null],
|
|
4244
|
+
ce([V || null, null], P);
|
|
4242
4245
|
}
|
|
4243
4246
|
} else
|
|
4244
|
-
ce(V || null,
|
|
4247
|
+
ce(V || null, P);
|
|
4245
4248
|
}, [
|
|
4246
4249
|
ue,
|
|
4247
4250
|
a,
|
|
4248
4251
|
Pt,
|
|
4249
|
-
|
|
4250
|
-
|
|
4252
|
+
x,
|
|
4253
|
+
N,
|
|
4251
4254
|
W,
|
|
4252
|
-
|
|
4255
|
+
_,
|
|
4253
4256
|
M,
|
|
4254
4257
|
K,
|
|
4255
4258
|
ce,
|
|
4256
4259
|
ut,
|
|
4257
|
-
|
|
4260
|
+
ie,
|
|
4258
4261
|
he,
|
|
4259
4262
|
Ke,
|
|
4260
4263
|
G
|
|
4261
4264
|
]);
|
|
4262
|
-
function u(
|
|
4263
|
-
Zt(
|
|
4265
|
+
function u(E) {
|
|
4266
|
+
Zt(E);
|
|
4264
4267
|
}
|
|
4265
|
-
function
|
|
4268
|
+
function w() {
|
|
4266
4269
|
Zt(null);
|
|
4267
4270
|
}
|
|
4268
4271
|
Dr(r, function() {
|
|
@@ -4276,15 +4279,15 @@ var nl = Ue(function(t, r) {
|
|
|
4276
4279
|
view: G
|
|
4277
4280
|
};
|
|
4278
4281
|
}, [ue, Tt, Rt, At, lt, he, G]);
|
|
4279
|
-
function
|
|
4280
|
-
var
|
|
4281
|
-
activeStartDate:
|
|
4282
|
+
function O(E) {
|
|
4283
|
+
var P = E ? Eo(G, ue) : rt(G, ue), T = Ct ? Tt : At, z = {
|
|
4284
|
+
activeStartDate: P,
|
|
4282
4285
|
hover: rr,
|
|
4283
4286
|
locale: S,
|
|
4284
|
-
maxDate:
|
|
4285
|
-
minDate:
|
|
4286
|
-
onClick:
|
|
4287
|
-
onMouseOver:
|
|
4287
|
+
maxDate: N,
|
|
4288
|
+
minDate: _,
|
|
4289
|
+
onClick: T,
|
|
4290
|
+
onMouseOver: ie ? u : void 0,
|
|
4288
4291
|
tileClassName: Xt,
|
|
4289
4292
|
tileContent: Kt,
|
|
4290
4293
|
tileDisabled: Vr,
|
|
@@ -4293,22 +4296,22 @@ var nl = Ue(function(t, r) {
|
|
|
4293
4296
|
};
|
|
4294
4297
|
switch (G) {
|
|
4295
4298
|
case "century":
|
|
4296
|
-
return o.jsx(Tc, ht({ formatYear:
|
|
4299
|
+
return o.jsx(Tc, ht({ formatYear: b, showNeighboringCentury: Fr }, z));
|
|
4297
4300
|
case "decade":
|
|
4298
|
-
return o.jsx($c, ht({ formatYear:
|
|
4301
|
+
return o.jsx($c, ht({ formatYear: b, showNeighboringDecade: Et }, z));
|
|
4299
4302
|
case "year":
|
|
4300
4303
|
return o.jsx(Vc, ht({ formatMonth: g, formatMonthYear: h }, z));
|
|
4301
4304
|
case "month":
|
|
4302
|
-
return o.jsx(Kc, ht({ calendarType: i, formatDay: f, formatLongDate:
|
|
4305
|
+
return o.jsx(Kc, ht({ calendarType: i, formatDay: f, formatLongDate: m, formatShortWeekday: p, formatWeekday: v, onClickWeekNumber: ke, onMouseLeave: ie ? w : void 0, showFixedNumberOfWeeks: typeof Nt < "u" ? Nt : He, showNeighboringMonth: Wr, showWeekNumbers: qt }, z));
|
|
4303
4306
|
default:
|
|
4304
4307
|
throw new Error("Invalid view: ".concat(G, "."));
|
|
4305
4308
|
}
|
|
4306
4309
|
}
|
|
4307
|
-
function
|
|
4308
|
-
return Lr ? o.jsx(Sc, { activeStartDate: ue, drillUp: Rt, formatMonthYear: h, formatYear:
|
|
4310
|
+
function A() {
|
|
4311
|
+
return Lr ? o.jsx(Sc, { activeStartDate: ue, drillUp: Rt, formatMonthYear: h, formatYear: b, locale: S, maxDate: N, minDate: _, navigationAriaLabel: L, navigationAriaLive: X, navigationLabel: ve, next2AriaLabel: re, next2Label: xe, nextAriaLabel: Ie, nextLabel: ee, prev2AriaLabel: De, prev2Label: _e, prevAriaLabel: fe, prevLabel: Ot, setActiveStartDate: lt, showDoubleView: He, view: G, views: we }) : null;
|
|
4309
4312
|
}
|
|
4310
4313
|
var B = Array.isArray(he) ? he : [he];
|
|
4311
|
-
return o.jsxs("div", { className: Pr(lr,
|
|
4314
|
+
return o.jsxs("div", { className: Pr(lr, ie && B.length === 1 && "".concat(lr, "--selectRange"), He && "".concat(lr, "--doubleView"), s), ref: k, children: [A(), o.jsxs("div", { className: "".concat(lr, "__viewContainer"), onBlur: ie ? w : void 0, onMouseLeave: ie ? w : void 0, children: [O(), He ? O(!0) : null] })] });
|
|
4312
4315
|
});
|
|
4313
4316
|
const Yl = ({
|
|
4314
4317
|
value: e,
|
|
@@ -4316,21 +4319,21 @@ const Yl = ({
|
|
|
4316
4319
|
maxDate: r,
|
|
4317
4320
|
children: n
|
|
4318
4321
|
}) => {
|
|
4319
|
-
const [a, i] = F(e ?? /* @__PURE__ */ new Date()), [s, l] = F(!1), c =
|
|
4320
|
-
(
|
|
4321
|
-
i(
|
|
4322
|
+
const [a, i] = F(e ?? /* @__PURE__ */ new Date()), [s, l] = F(!1), c = oe(null), d = R(
|
|
4323
|
+
(v) => {
|
|
4324
|
+
i(v), t && t(v), l(!1);
|
|
4322
4325
|
},
|
|
4323
4326
|
[t]
|
|
4324
|
-
), f = () => l(!s),
|
|
4325
|
-
c.current && !c.current.contains(
|
|
4327
|
+
), f = () => l(!s), m = R((v) => {
|
|
4328
|
+
c.current && !c.current.contains(v.target) && l(!1);
|
|
4326
4329
|
}, []);
|
|
4327
|
-
q(() => (s ? document.addEventListener("mousedown",
|
|
4328
|
-
document.removeEventListener("mousedown",
|
|
4329
|
-
}), [s,
|
|
4330
|
+
q(() => (s ? document.addEventListener("mousedown", m) : document.removeEventListener("mousedown", m), () => {
|
|
4331
|
+
document.removeEventListener("mousedown", m);
|
|
4332
|
+
}), [s, m]);
|
|
4330
4333
|
const [g, h] = F(), p = ({
|
|
4331
|
-
activeStartDate:
|
|
4334
|
+
activeStartDate: v
|
|
4332
4335
|
}) => {
|
|
4333
|
-
h(
|
|
4336
|
+
h(v);
|
|
4334
4337
|
};
|
|
4335
4338
|
return /* @__PURE__ */ o.jsx("div", { children: /* @__PURE__ */ o.jsxs("div", { className: "calendar", ref: c, children: [
|
|
4336
4339
|
n && /* @__PURE__ */ o.jsx("div", { onClick: f, children: n }),
|
|
@@ -4363,10 +4366,10 @@ const Yl = ({
|
|
|
4363
4366
|
maxDate: r ?? /* @__PURE__ */ new Date(),
|
|
4364
4367
|
onChange: d,
|
|
4365
4368
|
value: a,
|
|
4366
|
-
tileClassName: ({ date:
|
|
4367
|
-
if (
|
|
4369
|
+
tileClassName: ({ date: v, view: b }) => {
|
|
4370
|
+
if (b === "month" && g) {
|
|
4368
4371
|
const j = g;
|
|
4369
|
-
return
|
|
4372
|
+
return v.getMonth() !== (j == null ? void 0 : j.getMonth()) ? "out-of-month" : null;
|
|
4370
4373
|
}
|
|
4371
4374
|
return null;
|
|
4372
4375
|
}
|
|
@@ -4385,7 +4388,7 @@ const Yl = ({
|
|
|
4385
4388
|
q(() => {
|
|
4386
4389
|
t && e && e.id === t.id ? i || s(!0) : s(!1);
|
|
4387
4390
|
}, [e, s, t]);
|
|
4388
|
-
const l =
|
|
4391
|
+
const l = R(
|
|
4389
4392
|
(c) => {
|
|
4390
4393
|
c.stopPropagation(), a && a(t);
|
|
4391
4394
|
},
|
|
@@ -4412,7 +4415,7 @@ const Yl = ({
|
|
|
4412
4415
|
}
|
|
4413
4416
|
);
|
|
4414
4417
|
}, Bl = (e) => {
|
|
4415
|
-
const [t, r] = F(), n =
|
|
4418
|
+
const [t, r] = F(), n = R(
|
|
4416
4419
|
(a) => {
|
|
4417
4420
|
e.onChange && e.onChange(a), r(a);
|
|
4418
4421
|
},
|
|
@@ -4436,7 +4439,7 @@ const Yl = ({
|
|
|
4436
4439
|
currentFil: r,
|
|
4437
4440
|
title: n
|
|
4438
4441
|
}) => {
|
|
4439
|
-
const a =
|
|
4442
|
+
const a = R(
|
|
4440
4443
|
(i, s) => {
|
|
4441
4444
|
s != null && s.url || i.preventDefault(), t && t(s);
|
|
4442
4445
|
},
|
|
@@ -4480,14 +4483,14 @@ const Yl = ({
|
|
|
4480
4483
|
rows: d,
|
|
4481
4484
|
required: f = !1
|
|
4482
4485
|
}) => {
|
|
4483
|
-
const [
|
|
4486
|
+
const [m, g] = F(r);
|
|
4484
4487
|
q(() => {
|
|
4485
4488
|
g(r);
|
|
4486
4489
|
}, [r]);
|
|
4487
|
-
const h =
|
|
4490
|
+
const h = R(
|
|
4488
4491
|
(p) => {
|
|
4489
|
-
const
|
|
4490
|
-
g(
|
|
4492
|
+
const v = p.target.value;
|
|
4493
|
+
g(v), s && s(v, e);
|
|
4491
4494
|
},
|
|
4492
4495
|
[s, e]
|
|
4493
4496
|
);
|
|
@@ -4499,7 +4502,7 @@ const Yl = ({
|
|
|
4499
4502
|
className: `form-control-textarea ${i ?? ""}`,
|
|
4500
4503
|
name: e,
|
|
4501
4504
|
disabled: n,
|
|
4502
|
-
value:
|
|
4505
|
+
value: m,
|
|
4503
4506
|
onChange: h,
|
|
4504
4507
|
placeholder: l,
|
|
4505
4508
|
cols: c,
|
|
@@ -4520,37 +4523,37 @@ const Yl = ({
|
|
|
4520
4523
|
disabledSubmit: c = !1,
|
|
4521
4524
|
className: d
|
|
4522
4525
|
}, f) => {
|
|
4523
|
-
const [
|
|
4526
|
+
const [m, g] = F(c), [h, p] = F(() => {
|
|
4524
4527
|
const y = {};
|
|
4525
|
-
return e.forEach((
|
|
4526
|
-
y[
|
|
4528
|
+
return e.forEach((_) => {
|
|
4529
|
+
y[_.name] = _.value ?? "";
|
|
4527
4530
|
}), y;
|
|
4528
|
-
}),
|
|
4529
|
-
(y,
|
|
4531
|
+
}), v = oe({}), b = R(
|
|
4532
|
+
(y, _) => {
|
|
4530
4533
|
const { name: I, type: M, checked: L, value: X } = y.target, ve = M === "checkbox" ? L : X;
|
|
4531
|
-
|
|
4534
|
+
_.onChange && _.onChange(ve, I), p((re) => {
|
|
4532
4535
|
const xe = { ...re, [I]: ve };
|
|
4533
4536
|
return s && s(xe), xe;
|
|
4534
4537
|
});
|
|
4535
4538
|
},
|
|
4536
4539
|
[s]
|
|
4537
|
-
), j =
|
|
4538
|
-
(y,
|
|
4539
|
-
I.onChange && I.onChange(
|
|
4540
|
-
const L = { ...M, [y]:
|
|
4540
|
+
), j = R(
|
|
4541
|
+
(y, _, I) => {
|
|
4542
|
+
I.onChange && I.onChange(_, y), p((M) => {
|
|
4543
|
+
const L = { ...M, [y]: _ };
|
|
4541
4544
|
return s && s(L), L;
|
|
4542
4545
|
});
|
|
4543
4546
|
},
|
|
4544
4547
|
[s]
|
|
4545
|
-
),
|
|
4546
|
-
(y,
|
|
4547
|
-
I.onChange && I.onChange(y,
|
|
4548
|
-
const L = { ...M, [
|
|
4548
|
+
), x = R(
|
|
4549
|
+
(y, _, I) => {
|
|
4550
|
+
I.onChange && I.onChange(y, _), p((M) => {
|
|
4551
|
+
const L = { ...M, [_]: y };
|
|
4549
4552
|
return s && s(L), L;
|
|
4550
4553
|
});
|
|
4551
4554
|
},
|
|
4552
4555
|
[s]
|
|
4553
|
-
),
|
|
4556
|
+
), k = R(
|
|
4554
4557
|
(y) => {
|
|
4555
4558
|
y.preventDefault(), r && r(h);
|
|
4556
4559
|
},
|
|
@@ -4558,43 +4561,43 @@ const Yl = ({
|
|
|
4558
4561
|
), S = () => {
|
|
4559
4562
|
p(() => {
|
|
4560
4563
|
const y = {};
|
|
4561
|
-
return e.forEach((
|
|
4562
|
-
y[
|
|
4564
|
+
return e.forEach((_) => {
|
|
4565
|
+
y[_.name] = _.value ?? "";
|
|
4563
4566
|
}), y;
|
|
4564
4567
|
});
|
|
4565
|
-
},
|
|
4566
|
-
p((
|
|
4567
|
-
...
|
|
4568
|
+
}, D = R((y) => {
|
|
4569
|
+
p((_) => ({
|
|
4570
|
+
..._,
|
|
4568
4571
|
[y]: ""
|
|
4569
4572
|
}));
|
|
4570
|
-
}, []),
|
|
4571
|
-
const y = e.find((
|
|
4572
|
-
y &&
|
|
4573
|
-
var
|
|
4574
|
-
(
|
|
4573
|
+
}, []), N = () => {
|
|
4574
|
+
const y = e.find((_) => _.focus);
|
|
4575
|
+
y && v.current[y.name] && setTimeout(() => {
|
|
4576
|
+
var _;
|
|
4577
|
+
(_ = v.current[y.name]) == null || _.select();
|
|
4575
4578
|
}, 500);
|
|
4576
|
-
},
|
|
4577
|
-
p((
|
|
4578
|
-
...
|
|
4579
|
+
}, C = () => h, W = (y) => {
|
|
4580
|
+
p((_) => ({
|
|
4581
|
+
..._,
|
|
4579
4582
|
...y
|
|
4580
4583
|
}));
|
|
4581
4584
|
};
|
|
4582
4585
|
return Dr(f, () => ({
|
|
4583
4586
|
resetForm: S,
|
|
4584
|
-
clearInput:
|
|
4585
|
-
focusInitialElement:
|
|
4586
|
-
getValues:
|
|
4587
|
+
clearInput: D,
|
|
4588
|
+
focusInitialElement: N,
|
|
4589
|
+
getValues: C,
|
|
4587
4590
|
updateFormValue: W,
|
|
4588
4591
|
setBtnDisabledSubmit: g
|
|
4589
4592
|
})), /* @__PURE__ */ o.jsxs(
|
|
4590
4593
|
"form",
|
|
4591
4594
|
{
|
|
4592
4595
|
autoComplete: i ?? "off",
|
|
4593
|
-
onSubmit:
|
|
4596
|
+
onSubmit: k,
|
|
4594
4597
|
className: d ?? "",
|
|
4595
4598
|
children: [
|
|
4596
4599
|
/* @__PURE__ */ o.jsxs("div", { className: "form-content", children: [
|
|
4597
|
-
e.map((y,
|
|
4600
|
+
e.map((y, _) => {
|
|
4598
4601
|
const I = y.onRequired ? y.onRequired(y.value) : y.required ?? !1, M = y.onDisabled ? y.onDisabled(y.value) : y.disabled ?? !1;
|
|
4599
4602
|
return /* @__PURE__ */ o.jsxs(
|
|
4600
4603
|
"div",
|
|
@@ -4616,8 +4619,8 @@ const Yl = ({
|
|
|
4616
4619
|
required: I,
|
|
4617
4620
|
defaultValue: y.value,
|
|
4618
4621
|
placeholder: y.placeholder,
|
|
4619
|
-
onChangeMultiple: (L) =>
|
|
4620
|
-
onChange: (L) =>
|
|
4622
|
+
onChangeMultiple: (L) => x(L, y.name, y),
|
|
4623
|
+
onChange: (L) => x(L, y.name, y)
|
|
4621
4624
|
}
|
|
4622
4625
|
) : y.type === "textarea" ? /* @__PURE__ */ o.jsx(
|
|
4623
4626
|
ol,
|
|
@@ -4635,7 +4638,7 @@ const Yl = ({
|
|
|
4635
4638
|
wr,
|
|
4636
4639
|
{
|
|
4637
4640
|
id: y.id ?? y.name,
|
|
4638
|
-
ref: (L) =>
|
|
4641
|
+
ref: (L) => v.current[y.name] = L,
|
|
4639
4642
|
name: y.name,
|
|
4640
4643
|
type: y.type,
|
|
4641
4644
|
placeholder: y.placeholder ?? "",
|
|
@@ -4647,13 +4650,13 @@ const Yl = ({
|
|
|
4647
4650
|
step: y.step ?? "0.01",
|
|
4648
4651
|
value: h[y.name],
|
|
4649
4652
|
checked: y.type === "checkbox" ? !!h[y.name] : void 0,
|
|
4650
|
-
onChange: (L) =>
|
|
4653
|
+
onChange: (L) => b(L, y),
|
|
4651
4654
|
onInvalid: y.onInvalid ? y.onInvalid : void 0
|
|
4652
4655
|
}
|
|
4653
4656
|
)
|
|
4654
4657
|
]
|
|
4655
4658
|
},
|
|
4656
|
-
|
|
4659
|
+
_
|
|
4657
4660
|
);
|
|
4658
4661
|
}),
|
|
4659
4662
|
a
|
|
@@ -4662,7 +4665,7 @@ const Yl = ({
|
|
|
4662
4665
|
xt,
|
|
4663
4666
|
{
|
|
4664
4667
|
id: `button-${n}`,
|
|
4665
|
-
disabled:
|
|
4668
|
+
disabled: m,
|
|
4666
4669
|
title: t || "submit"
|
|
4667
4670
|
}
|
|
4668
4671
|
) })
|
|
@@ -4683,33 +4686,33 @@ const Yl = ({
|
|
|
4683
4686
|
maxLength: c = 10,
|
|
4684
4687
|
autoComplete: d = "off",
|
|
4685
4688
|
tabIndex: f = 0,
|
|
4686
|
-
inputMode:
|
|
4689
|
+
inputMode: m = "numeric",
|
|
4687
4690
|
pattern: g,
|
|
4688
4691
|
onChange: h,
|
|
4689
4692
|
onBlur: p,
|
|
4690
|
-
onClick:
|
|
4691
|
-
onKeyDown:
|
|
4693
|
+
onClick: v,
|
|
4694
|
+
onKeyDown: b,
|
|
4692
4695
|
onFocus: j
|
|
4693
|
-
},
|
|
4694
|
-
const
|
|
4695
|
-
(
|
|
4696
|
-
let
|
|
4697
|
-
!/^-?\d*[.,]?\d*$/.test(
|
|
4696
|
+
}, x) => {
|
|
4697
|
+
const k = R(
|
|
4698
|
+
(D) => {
|
|
4699
|
+
let N = D.target.value.replace(",", ".");
|
|
4700
|
+
!/^-?\d*[.,]?\d*$/.test(N) && N !== "" || c && N.length > c || h == null || h(D, N);
|
|
4698
4701
|
},
|
|
4699
4702
|
[h, c]
|
|
4700
|
-
), S = (
|
|
4701
|
-
if (
|
|
4702
|
-
|
|
4703
|
-
) ||
|
|
4704
|
-
|
|
4703
|
+
), S = (D) => {
|
|
4704
|
+
if (b && b(D), !(/[0-9]|Backspace|Delete|ArrowLeft|ArrowRight|Tab|Enter|Home|End/.test(
|
|
4705
|
+
D.key
|
|
4706
|
+
) || D.key === "." || D.key === "," || D.key === "-")) {
|
|
4707
|
+
D.preventDefault();
|
|
4705
4708
|
return;
|
|
4706
4709
|
}
|
|
4707
|
-
|
|
4710
|
+
D.key === "-" && ((D.target.selectionStart ?? 0) !== 0 || r.includes("-")) && D.preventDefault();
|
|
4708
4711
|
};
|
|
4709
4712
|
return /* @__PURE__ */ o.jsx("div", { className: "input-container input-container-number", children: /* @__PURE__ */ o.jsx(
|
|
4710
4713
|
"input",
|
|
4711
4714
|
{
|
|
4712
|
-
ref:
|
|
4715
|
+
ref: x,
|
|
4713
4716
|
id: e,
|
|
4714
4717
|
name: t,
|
|
4715
4718
|
type: Be.TEXT,
|
|
@@ -4721,16 +4724,16 @@ const Yl = ({
|
|
|
4721
4724
|
autoComplete: d,
|
|
4722
4725
|
pattern: g,
|
|
4723
4726
|
tabIndex: f,
|
|
4724
|
-
inputMode:
|
|
4727
|
+
inputMode: m,
|
|
4725
4728
|
spellCheck: "false",
|
|
4726
4729
|
className: `input-field ${a ?? ""}`,
|
|
4727
|
-
onChange:
|
|
4728
|
-
onWheel: (
|
|
4730
|
+
onChange: k,
|
|
4731
|
+
onWheel: (D) => D.currentTarget.blur(),
|
|
4729
4732
|
onKeyDown: S,
|
|
4730
4733
|
onFocus: j,
|
|
4731
4734
|
onBlur: p,
|
|
4732
|
-
onClick: (
|
|
4733
|
-
|
|
4735
|
+
onClick: (D) => {
|
|
4736
|
+
D.stopPropagation(), v == null || v(D);
|
|
4734
4737
|
}
|
|
4735
4738
|
}
|
|
4736
4739
|
) });
|
|
@@ -4746,7 +4749,7 @@ const zl = Ue(
|
|
|
4746
4749
|
onChange: a,
|
|
4747
4750
|
...i
|
|
4748
4751
|
}, s) => {
|
|
4749
|
-
const l =
|
|
4752
|
+
const l = R(() => {
|
|
4750
4753
|
if (a) {
|
|
4751
4754
|
let c = e.replace(",", ".");
|
|
4752
4755
|
a(parseFloat(c || "0").toFixed(2));
|
|
@@ -4801,7 +4804,7 @@ const zl = Ue(
|
|
|
4801
4804
|
showBackNavigation: s,
|
|
4802
4805
|
onClickBackNavigation: l
|
|
4803
4806
|
}) => {
|
|
4804
|
-
const c =
|
|
4807
|
+
const c = oe(null), [d, f] = F(!1), m = R(() => {
|
|
4805
4808
|
f(!d);
|
|
4806
4809
|
}, [d, f]);
|
|
4807
4810
|
return /* @__PURE__ */ o.jsxs("div", { className: `header ${a ? "header--fixed" : ""}`, children: [
|
|
@@ -4825,7 +4828,7 @@ const zl = Ue(
|
|
|
4825
4828
|
] }),
|
|
4826
4829
|
/* @__PURE__ */ o.jsxs("div", { className: "d-flex align-items-center", children: [
|
|
4827
4830
|
e,
|
|
4828
|
-
/* @__PURE__ */ o.jsx("div", { ref: c, onClick:
|
|
4831
|
+
/* @__PURE__ */ o.jsx("div", { ref: c, onClick: m, children: /* @__PURE__ */ o.jsx(Y, { size: je.MEDIUM, classIcon: "bi-person-circle" }) }),
|
|
4829
4832
|
d && c.current && /* @__PURE__ */ o.jsx(
|
|
4830
4833
|
An,
|
|
4831
4834
|
{
|
|
@@ -4839,7 +4842,7 @@ const zl = Ue(
|
|
|
4839
4842
|
] })
|
|
4840
4843
|
] });
|
|
4841
4844
|
}, ql = ({ text: e, severity: t, className: r }) => {
|
|
4842
|
-
const n =
|
|
4845
|
+
const n = Re(() => {
|
|
4843
4846
|
switch (t) {
|
|
4844
4847
|
case "info":
|
|
4845
4848
|
return "bi-info-circle";
|
|
@@ -4901,8 +4904,8 @@ const zl = Ue(
|
|
|
4901
4904
|
title: i,
|
|
4902
4905
|
id: s
|
|
4903
4906
|
}, l) => {
|
|
4904
|
-
const [c, d] = F(null), f =
|
|
4905
|
-
const
|
|
4907
|
+
const [c, d] = F(null), f = R(async () => {
|
|
4908
|
+
const m = new Blob([e], { type: "application/pdf" }), g = URL.createObjectURL(m);
|
|
4906
4909
|
if (!t) {
|
|
4907
4910
|
const h = `${g}#toolbar=0&navpanes=0&scrollbar=0`;
|
|
4908
4911
|
d(h);
|
|
@@ -4941,12 +4944,12 @@ const zl = Ue(
|
|
|
4941
4944
|
disabledMinus: i,
|
|
4942
4945
|
pas: s
|
|
4943
4946
|
}) => {
|
|
4944
|
-
const [l, c] = F(s), d =
|
|
4947
|
+
const [l, c] = F(s), d = R(
|
|
4945
4948
|
(h) => {
|
|
4946
4949
|
n || (c(h), e && e(t, h));
|
|
4947
4950
|
},
|
|
4948
4951
|
[c, e]
|
|
4949
|
-
), f =
|
|
4952
|
+
), f = R(
|
|
4950
4953
|
(h) => {
|
|
4951
4954
|
if (h.stopPropagation(), n || a)
|
|
4952
4955
|
return;
|
|
@@ -4954,7 +4957,7 @@ const zl = Ue(
|
|
|
4954
4957
|
d(Math.round(p * 100) / 100);
|
|
4955
4958
|
},
|
|
4956
4959
|
[l, d]
|
|
4957
|
-
),
|
|
4960
|
+
), m = R(
|
|
4958
4961
|
(h) => {
|
|
4959
4962
|
if (h.stopPropagation(), n || i)
|
|
4960
4963
|
return;
|
|
@@ -4968,7 +4971,7 @@ const zl = Ue(
|
|
|
4968
4971
|
q(() => {
|
|
4969
4972
|
t.quantity && c(t.quantity);
|
|
4970
4973
|
}, [t.quantity, c]);
|
|
4971
|
-
const g =
|
|
4974
|
+
const g = R(
|
|
4972
4975
|
(h) => {
|
|
4973
4976
|
h.stopPropagation(), r && r(t);
|
|
4974
4977
|
},
|
|
@@ -4978,7 +4981,7 @@ const zl = Ue(
|
|
|
4978
4981
|
/* @__PURE__ */ o.jsx(
|
|
4979
4982
|
"div",
|
|
4980
4983
|
{
|
|
4981
|
-
onClick: (h) =>
|
|
4984
|
+
onClick: (h) => m(h),
|
|
4982
4985
|
className: `qte-action qte-action--minus ${n || i ? "disabled" : ""} `,
|
|
4983
4986
|
children: /* @__PURE__ */ o.jsx(Y, { size: je.LARGE, classIcon: "bi bi-dash-square" })
|
|
4984
4987
|
}
|
|
@@ -5005,7 +5008,7 @@ const zl = Ue(
|
|
|
5005
5008
|
setIsVisible: l,
|
|
5006
5009
|
id: c
|
|
5007
5010
|
}, d) => {
|
|
5008
|
-
const [f,
|
|
5011
|
+
const [f, m] = F(n ?? !1), g = oe(null), h = oe(null), p = Re(
|
|
5009
5012
|
() => [
|
|
5010
5013
|
{
|
|
5011
5014
|
value: "",
|
|
@@ -5022,40 +5025,40 @@ const zl = Ue(
|
|
|
5022
5025
|
[r, a]
|
|
5023
5026
|
);
|
|
5024
5027
|
q(() => {
|
|
5025
|
-
n !== void 0 &&
|
|
5028
|
+
n !== void 0 && m(n);
|
|
5026
5029
|
}, [n]);
|
|
5027
|
-
const
|
|
5028
|
-
(
|
|
5029
|
-
l && l(
|
|
5030
|
+
const v = R(
|
|
5031
|
+
(x) => {
|
|
5032
|
+
l && l(x), m(x);
|
|
5030
5033
|
},
|
|
5031
5034
|
[l]
|
|
5032
|
-
),
|
|
5033
|
-
(
|
|
5034
|
-
if (!
|
|
5035
|
-
return
|
|
5036
|
-
|
|
5037
|
-
s && s(
|
|
5035
|
+
), b = R(
|
|
5036
|
+
(x) => {
|
|
5037
|
+
if (!x || !x[t ?? "recherche"])
|
|
5038
|
+
return v(!1);
|
|
5039
|
+
v(!0), g.current && clearTimeout(g.current), g.current = setTimeout(() => {
|
|
5040
|
+
s && s(x);
|
|
5038
5041
|
}, i ?? 500);
|
|
5039
5042
|
},
|
|
5040
|
-
[
|
|
5041
|
-
), j =
|
|
5042
|
-
(
|
|
5043
|
-
console.log("Form Submitted: ",
|
|
5043
|
+
[v, s, i]
|
|
5044
|
+
), j = R(
|
|
5045
|
+
(x) => {
|
|
5046
|
+
console.log("Form Submitted: ", x);
|
|
5044
5047
|
},
|
|
5045
5048
|
[]
|
|
5046
5049
|
);
|
|
5047
5050
|
return Dr(d, () => ({
|
|
5048
|
-
clearInput: (
|
|
5049
|
-
var
|
|
5050
|
-
(
|
|
5051
|
+
clearInput: (x) => {
|
|
5052
|
+
var k;
|
|
5053
|
+
(k = h.current) == null || k.clearInput(x);
|
|
5051
5054
|
},
|
|
5052
5055
|
resetForm: () => {
|
|
5053
|
-
var
|
|
5054
|
-
(
|
|
5056
|
+
var x;
|
|
5057
|
+
(x = h.current) == null || x.resetForm();
|
|
5055
5058
|
},
|
|
5056
5059
|
focusInitialElement: () => {
|
|
5057
|
-
var
|
|
5058
|
-
(
|
|
5060
|
+
var x;
|
|
5061
|
+
(x = h.current) == null || x.focusInitialElement();
|
|
5059
5062
|
}
|
|
5060
5063
|
})), /* @__PURE__ */ o.jsxs("div", { className: "search", children: [
|
|
5061
5064
|
/* @__PURE__ */ o.jsx(
|
|
@@ -5063,7 +5066,7 @@ const zl = Ue(
|
|
|
5063
5066
|
{
|
|
5064
5067
|
ref: h,
|
|
5065
5068
|
onSubmit: j,
|
|
5066
|
-
onChange:
|
|
5069
|
+
onChange: b,
|
|
5067
5070
|
hideSubmit: !0,
|
|
5068
5071
|
initialForm: p
|
|
5069
5072
|
}
|
|
@@ -5073,7 +5076,7 @@ const zl = Ue(
|
|
|
5073
5076
|
"button",
|
|
5074
5077
|
{
|
|
5075
5078
|
className: "toggle-btn",
|
|
5076
|
-
onClick: () =>
|
|
5079
|
+
onClick: () => v(!1),
|
|
5077
5080
|
children: /* @__PURE__ */ o.jsx(Y, { classIcon: "bi-x-lg" })
|
|
5078
5081
|
}
|
|
5079
5082
|
) }),
|
|
@@ -5092,35 +5095,47 @@ const zl = Ue(
|
|
|
5092
5095
|
closeOnClickOutside: l = !0,
|
|
5093
5096
|
displayOverlay: c = !0
|
|
5094
5097
|
}) => {
|
|
5095
|
-
const [d, f] = F(e || !1),
|
|
5098
|
+
const [d, f] = F(e || !1), m = oe(null), g = oe(null), h = oe(0), p = oe(0);
|
|
5096
5099
|
q(() => (g.current || (g.current = document.createElement("div"), g.current.id = `sidebar-root-${i || crypto.randomUUID()}`, document.body.appendChild(g.current)), () => {
|
|
5097
5100
|
g.current && g.current.parentNode && (document.body.removeChild(g.current), g.current = null);
|
|
5098
5101
|
}), [i]), q(() => {
|
|
5099
5102
|
f(e || !1);
|
|
5100
5103
|
}, [e]);
|
|
5101
|
-
const
|
|
5104
|
+
const v = R(() => {
|
|
5102
5105
|
f(!1), n && n(!1);
|
|
5103
|
-
}, [n]),
|
|
5104
|
-
(
|
|
5105
|
-
l &&
|
|
5106
|
+
}, [n]), b = R(
|
|
5107
|
+
(k) => {
|
|
5108
|
+
l && m.current && !m.current.contains(k.target) && v();
|
|
5109
|
+
},
|
|
5110
|
+
[v, l]
|
|
5111
|
+
), j = R((k) => {
|
|
5112
|
+
const S = k.touches[0];
|
|
5113
|
+
h.current = S.clientX, p.current = S.clientY;
|
|
5114
|
+
}, []), x = R(
|
|
5115
|
+
(k) => {
|
|
5116
|
+
if (!d) return;
|
|
5117
|
+
const S = k.changedTouches[0], D = S.clientX - h.current, N = Math.abs(S.clientY - p.current);
|
|
5118
|
+
D > 60 && N < 40 && v();
|
|
5106
5119
|
},
|
|
5107
|
-
[
|
|
5120
|
+
[d, v]
|
|
5108
5121
|
);
|
|
5109
|
-
return q(() => (d ? document.addEventListener("mousedown",
|
|
5110
|
-
document.removeEventListener("mousedown",
|
|
5111
|
-
}), [d,
|
|
5122
|
+
return q(() => (d ? document.addEventListener("mousedown", b) : document.removeEventListener("mousedown", b), () => {
|
|
5123
|
+
document.removeEventListener("mousedown", b);
|
|
5124
|
+
}), [d, b]), g.current ? Nn.createPortal(
|
|
5112
5125
|
/* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
5113
5126
|
d && c && /* @__PURE__ */ o.jsx("div", { className: "overlay" }),
|
|
5114
5127
|
/* @__PURE__ */ o.jsxs(
|
|
5115
5128
|
"div",
|
|
5116
5129
|
{
|
|
5117
|
-
ref:
|
|
5130
|
+
ref: m,
|
|
5118
5131
|
style: s ? { width: s } : {},
|
|
5119
5132
|
className: `sidebar ${d ? "open" : "closed"} ${a ?? ""}`,
|
|
5133
|
+
onTouchStart: j,
|
|
5134
|
+
onTouchEnd: x,
|
|
5120
5135
|
children: [
|
|
5121
5136
|
/* @__PURE__ */ o.jsxs("div", { className: "sidebar-header", children: [
|
|
5122
5137
|
r && /* @__PURE__ */ o.jsx("h2", { className: "flex-1", children: r }),
|
|
5123
|
-
/* @__PURE__ */ o.jsx("button", { className: "toggle-btn", onClick:
|
|
5138
|
+
/* @__PURE__ */ o.jsx("button", { className: "toggle-btn", onClick: v, children: /* @__PURE__ */ o.jsx(Y, { classIcon: "bi-x-lg" }) })
|
|
5124
5139
|
] }),
|
|
5125
5140
|
t && t
|
|
5126
5141
|
]
|
|
@@ -5142,15 +5157,15 @@ const zl = Ue(
|
|
|
5142
5157
|
q(() => {
|
|
5143
5158
|
!l && (t < 0 || t >= e.length) && d(0);
|
|
5144
5159
|
}, [t, e.length, l]);
|
|
5145
|
-
const
|
|
5146
|
-
var p,
|
|
5147
|
-
(p = e[h]) != null && p.disabled || (l || d(h), n == null || n(h), (
|
|
5160
|
+
const m = oe([]), g = (h) => {
|
|
5161
|
+
var p, v;
|
|
5162
|
+
(p = e[h]) != null && p.disabled || (l || d(h), n == null || n(h), (v = m.current[h]) == null || v.focus());
|
|
5148
5163
|
};
|
|
5149
5164
|
return /* @__PURE__ */ o.jsxs("div", { className: `tabs-root ${a}`, children: [
|
|
5150
5165
|
/* @__PURE__ */ o.jsx("div", { role: "tablist", className: "tabs-header", children: e.map((h, p) => /* @__PURE__ */ o.jsx(
|
|
5151
5166
|
"button",
|
|
5152
5167
|
{
|
|
5153
|
-
ref: (
|
|
5168
|
+
ref: (v) => m.current[p] = v,
|
|
5154
5169
|
role: "tab",
|
|
5155
5170
|
id: `tab-${h.key}`,
|
|
5156
5171
|
"aria-selected": f === p,
|
|
@@ -5179,21 +5194,21 @@ const zl = Ue(
|
|
|
5179
5194
|
}, Pa = (e) => {
|
|
5180
5195
|
let t;
|
|
5181
5196
|
const r = /* @__PURE__ */ new Set(), n = (d, f) => {
|
|
5182
|
-
const
|
|
5183
|
-
if (!Object.is(
|
|
5197
|
+
const m = typeof d == "function" ? d(t) : d;
|
|
5198
|
+
if (!Object.is(m, t)) {
|
|
5184
5199
|
const g = t;
|
|
5185
|
-
t = f ?? (typeof
|
|
5200
|
+
t = f ?? (typeof m != "object" || m === null) ? m : Object.assign({}, t, m), r.forEach((h) => h(t, g));
|
|
5186
5201
|
}
|
|
5187
5202
|
}, a = () => t, l = { setState: n, getState: a, getInitialState: () => c, subscribe: (d) => (r.add(d), () => r.delete(d)) }, c = t = e(n, a, l);
|
|
5188
5203
|
return l;
|
|
5189
5204
|
}, fl = (e) => e ? Pa(e) : Pa, hl = (e) => e;
|
|
5190
5205
|
function vl(e, t = hl) {
|
|
5191
|
-
const r =
|
|
5206
|
+
const r = Ae.useSyncExternalStore(
|
|
5192
5207
|
e.subscribe,
|
|
5193
5208
|
() => t(e.getState()),
|
|
5194
5209
|
() => t(e.getInitialState())
|
|
5195
5210
|
);
|
|
5196
|
-
return
|
|
5211
|
+
return Ae.useDebugValue(r), r;
|
|
5197
5212
|
}
|
|
5198
5213
|
const Ta = (e) => {
|
|
5199
5214
|
const t = fl(e), r = (n) => vl(t, n);
|
|
@@ -5225,7 +5240,7 @@ const Ta = (e) => {
|
|
|
5225
5240
|
duration: i,
|
|
5226
5241
|
hideToast: s,
|
|
5227
5242
|
close: l
|
|
5228
|
-
} = pl(), c =
|
|
5243
|
+
} = pl(), c = R(() => {
|
|
5229
5244
|
s();
|
|
5230
5245
|
}, [s]);
|
|
5231
5246
|
if (q(() => {
|