kelt-ui-kit-react 1.8.5 → 1.8.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/dataTable/dataTable.interface.d.ts +4 -1
- package/dist/index.js +741 -715
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/dataTable/DataTable.tsx +48 -14
- package/src/dataTable/dataTable.css +26 -2
- package/src/dataTable/dataTable.interface.ts +4 -1
- package/src/dataTable/dataTableRow/DataTableRow.tsx +13 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as Le from "react";
|
|
2
|
-
import Ae, { createContext as Aa, useRef as re, useState as
|
|
2
|
+
import Ae, { createContext as Aa, useRef as re, useState as W, useEffect as X, useContext as On, useCallback as I, useDebugValue as Gn, createElement as Bo, forwardRef as Ue, useId as Uo, useImperativeHandle as Dr, useMemo as Re, Children as zo, cloneElement as Go } from "react";
|
|
3
3
|
import Nn, { createPortal as Ia } from "react-dom";
|
|
4
4
|
var ar = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
5
5
|
function Ho(e) {
|
|
@@ -43,23 +43,23 @@ var qn;
|
|
|
43
43
|
function Xo() {
|
|
44
44
|
return qn || (qn = 1, process.env.NODE_ENV !== "production" && function() {
|
|
45
45
|
var e = Ae, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), c = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), v = Symbol.for("react.memo"), g = Symbol.for("react.lazy"), h = Symbol.for("react.offscreen"), p = Symbol.iterator, m = "@@iterator";
|
|
46
|
-
function
|
|
46
|
+
function y(u) {
|
|
47
47
|
if (u === null || typeof u != "object")
|
|
48
48
|
return null;
|
|
49
49
|
var w = p && u[p] || u[m];
|
|
50
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 b(u) {
|
|
54
54
|
{
|
|
55
|
-
for (var w = arguments.length, N = new Array(w > 1 ? w - 1 : 0),
|
|
56
|
-
N[
|
|
55
|
+
for (var w = arguments.length, N = new Array(w > 1 ? w - 1 : 0), $ = 1; $ < w; $++)
|
|
56
|
+
N[$ - 1] = arguments[$];
|
|
57
57
|
_("error", u, N);
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
60
|
function _(u, w, N) {
|
|
61
61
|
{
|
|
62
|
-
var
|
|
62
|
+
var $ = j.ReactDebugCurrentFrame, B = $.getStackAddendum();
|
|
63
63
|
B !== "" && (w += "%s", N = N.concat([B]));
|
|
64
64
|
var k = N.map(function(P) {
|
|
65
65
|
return String(P);
|
|
@@ -67,29 +67,29 @@ function Xo() {
|
|
|
67
67
|
k.unshift("Warning: " + w), Function.prototype.apply.call(console[u], console, k);
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
|
-
var S = !1,
|
|
71
|
-
|
|
72
|
-
function
|
|
73
|
-
return !!(typeof u == "string" || typeof u == "function" || u === n || u === i ||
|
|
70
|
+
var S = !1, O = !1, E = !1, C = !1, F = !1, x;
|
|
71
|
+
x = Symbol.for("react.module.reference");
|
|
72
|
+
function D(u) {
|
|
73
|
+
return !!(typeof u == "string" || typeof u == "function" || u === n || u === i || F || u === a || u === d || u === f || C || u === h || S || O || E || typeof u == "object" && u !== null && (u.$$typeof === g || u.$$typeof === v || u.$$typeof === s || u.$$typeof === c || u.$$typeof === l || // This needs to include all possible module reference object
|
|
74
74
|
// types supported by any Flight configuration anywhere since
|
|
75
75
|
// we don't know which Flight build this will end up being used
|
|
76
76
|
// with.
|
|
77
|
-
u.$$typeof ===
|
|
77
|
+
u.$$typeof === x || u.getModuleId !== void 0));
|
|
78
78
|
}
|
|
79
|
-
function
|
|
80
|
-
var
|
|
81
|
-
if (
|
|
82
|
-
return
|
|
79
|
+
function M(u, w, N) {
|
|
80
|
+
var $ = u.displayName;
|
|
81
|
+
if ($)
|
|
82
|
+
return $;
|
|
83
83
|
var B = w.displayName || w.name || "";
|
|
84
84
|
return B !== "" ? N + "(" + B + ")" : N;
|
|
85
85
|
}
|
|
86
|
-
function
|
|
86
|
+
function R(u) {
|
|
87
87
|
return u.displayName || "Context";
|
|
88
88
|
}
|
|
89
|
-
function
|
|
89
|
+
function A(u) {
|
|
90
90
|
if (u == null)
|
|
91
91
|
return null;
|
|
92
|
-
if (typeof u.tag == "number" &&
|
|
92
|
+
if (typeof u.tag == "number" && b("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;
|
|
@@ -111,19 +111,19 @@ function Xo() {
|
|
|
111
111
|
switch (u.$$typeof) {
|
|
112
112
|
case c:
|
|
113
113
|
var w = u;
|
|
114
|
-
return
|
|
114
|
+
return R(w) + ".Consumer";
|
|
115
115
|
case s:
|
|
116
116
|
var N = u;
|
|
117
|
-
return
|
|
117
|
+
return R(N._context) + ".Provider";
|
|
118
118
|
case l:
|
|
119
|
-
return
|
|
119
|
+
return M(u, u.render, "ForwardRef");
|
|
120
120
|
case v:
|
|
121
|
-
var
|
|
122
|
-
return
|
|
121
|
+
var $ = u.displayName || null;
|
|
122
|
+
return $ !== null ? $ : A(u.type) || "Memo";
|
|
123
123
|
case g: {
|
|
124
124
|
var B = u, k = B._payload, P = B._init;
|
|
125
125
|
try {
|
|
126
|
-
return
|
|
126
|
+
return A(P(k));
|
|
127
127
|
} catch {
|
|
128
128
|
return null;
|
|
129
129
|
}
|
|
@@ -131,14 +131,14 @@ function Xo() {
|
|
|
131
131
|
}
|
|
132
132
|
return null;
|
|
133
133
|
}
|
|
134
|
-
var
|
|
134
|
+
var G = Object.assign, ie = 0, ne, xe, Ie, ee, K, le, Z;
|
|
135
135
|
function Se() {
|
|
136
136
|
}
|
|
137
137
|
Se.__reactDisabledLog = !0;
|
|
138
138
|
function Ee() {
|
|
139
139
|
{
|
|
140
|
-
if (
|
|
141
|
-
ne = console.log, xe = console.info, Ie = console.warn, ee = console.error, K = console.group,
|
|
140
|
+
if (ie === 0) {
|
|
141
|
+
ne = console.log, xe = console.info, Ie = console.warn, ee = console.error, K = console.group, le = console.groupCollapsed, Z = console.groupEnd;
|
|
142
142
|
var u = {
|
|
143
143
|
configurable: !0,
|
|
144
144
|
enumerable: !0,
|
|
@@ -155,53 +155,53 @@ function Xo() {
|
|
|
155
155
|
groupEnd: u
|
|
156
156
|
});
|
|
157
157
|
}
|
|
158
|
-
|
|
158
|
+
ie++;
|
|
159
159
|
}
|
|
160
160
|
}
|
|
161
161
|
function ke() {
|
|
162
162
|
{
|
|
163
|
-
if (
|
|
163
|
+
if (ie--, ie === 0) {
|
|
164
164
|
var u = {
|
|
165
165
|
configurable: !0,
|
|
166
166
|
enumerable: !0,
|
|
167
167
|
writable: !0
|
|
168
168
|
};
|
|
169
169
|
Object.defineProperties(console, {
|
|
170
|
-
log:
|
|
170
|
+
log: G({}, u, {
|
|
171
171
|
value: ne
|
|
172
172
|
}),
|
|
173
|
-
info:
|
|
173
|
+
info: G({}, u, {
|
|
174
174
|
value: xe
|
|
175
175
|
}),
|
|
176
|
-
warn:
|
|
176
|
+
warn: G({}, u, {
|
|
177
177
|
value: Ie
|
|
178
178
|
}),
|
|
179
|
-
error:
|
|
179
|
+
error: G({}, u, {
|
|
180
180
|
value: ee
|
|
181
181
|
}),
|
|
182
|
-
group:
|
|
182
|
+
group: G({}, u, {
|
|
183
183
|
value: K
|
|
184
184
|
}),
|
|
185
|
-
groupCollapsed:
|
|
186
|
-
value:
|
|
185
|
+
groupCollapsed: G({}, u, {
|
|
186
|
+
value: le
|
|
187
187
|
}),
|
|
188
|
-
groupEnd:
|
|
188
|
+
groupEnd: G({}, u, {
|
|
189
189
|
value: Z
|
|
190
190
|
})
|
|
191
191
|
});
|
|
192
192
|
}
|
|
193
|
-
|
|
193
|
+
ie < 0 && b("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
|
|
197
|
+
function ue(u, w, N) {
|
|
198
198
|
{
|
|
199
199
|
if (pe === void 0)
|
|
200
200
|
try {
|
|
201
201
|
throw Error();
|
|
202
202
|
} catch (B) {
|
|
203
|
-
var
|
|
204
|
-
pe =
|
|
203
|
+
var $ = B.stack.trim().match(/\n( *(at )?)/);
|
|
204
|
+
pe = $ && $[1] || "";
|
|
205
205
|
}
|
|
206
206
|
return `
|
|
207
207
|
` + pe + u;
|
|
@@ -212,7 +212,7 @@ function Xo() {
|
|
|
212
212
|
var _e = typeof WeakMap == "function" ? WeakMap : Map;
|
|
213
213
|
De = new _e();
|
|
214
214
|
}
|
|
215
|
-
function
|
|
215
|
+
function he(u, w) {
|
|
216
216
|
if (!u || ae)
|
|
217
217
|
return "";
|
|
218
218
|
{
|
|
@@ -220,7 +220,7 @@ function Xo() {
|
|
|
220
220
|
if (N !== void 0)
|
|
221
221
|
return N;
|
|
222
222
|
}
|
|
223
|
-
var
|
|
223
|
+
var $;
|
|
224
224
|
ae = !0;
|
|
225
225
|
var B = Error.prepareStackTrace;
|
|
226
226
|
Error.prepareStackTrace = void 0;
|
|
@@ -239,14 +239,14 @@ function Xo() {
|
|
|
239
239
|
try {
|
|
240
240
|
Reflect.construct(P, []);
|
|
241
241
|
} catch (ye) {
|
|
242
|
-
|
|
242
|
+
$ = ye;
|
|
243
243
|
}
|
|
244
244
|
Reflect.construct(u, [], P);
|
|
245
245
|
} else {
|
|
246
246
|
try {
|
|
247
247
|
P.call();
|
|
248
248
|
} catch (ye) {
|
|
249
|
-
|
|
249
|
+
$ = ye;
|
|
250
250
|
}
|
|
251
251
|
u.call(P.prototype);
|
|
252
252
|
}
|
|
@@ -254,37 +254,37 @@ function Xo() {
|
|
|
254
254
|
try {
|
|
255
255
|
throw Error();
|
|
256
256
|
} catch (ye) {
|
|
257
|
-
|
|
257
|
+
$ = ye;
|
|
258
258
|
}
|
|
259
259
|
u();
|
|
260
260
|
}
|
|
261
261
|
} catch (ye) {
|
|
262
|
-
if (ye &&
|
|
262
|
+
if (ye && $ && typeof ye.stack == "string") {
|
|
263
263
|
for (var T = ye.stack.split(`
|
|
264
|
-
`), z =
|
|
265
|
-
`),
|
|
264
|
+
`), z = $.stack.split(`
|
|
265
|
+
`), Y = T.length - 1, J = z.length - 1; Y >= 1 && J >= 0 && T[Y] !== z[J]; )
|
|
266
266
|
J--;
|
|
267
|
-
for (;
|
|
268
|
-
if (T[
|
|
269
|
-
if (
|
|
267
|
+
for (; Y >= 1 && J >= 0; Y--, J--)
|
|
268
|
+
if (T[Y] !== z[J]) {
|
|
269
|
+
if (Y !== 1 || J !== 1)
|
|
270
270
|
do
|
|
271
|
-
if (
|
|
271
|
+
if (Y--, J--, J < 0 || T[Y] !== z[J]) {
|
|
272
272
|
var ge = `
|
|
273
|
-
` + T[
|
|
273
|
+
` + T[Y].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
|
-
while (
|
|
276
|
+
while (Y >= 1 && J >= 0);
|
|
277
277
|
break;
|
|
278
278
|
}
|
|
279
279
|
}
|
|
280
280
|
} finally {
|
|
281
281
|
ae = !1, me.current = k, ke(), Error.prepareStackTrace = B;
|
|
282
282
|
}
|
|
283
|
-
var We = u ? u.displayName || u.name : "", Je = We ?
|
|
283
|
+
var We = u ? u.displayName || u.name : "", Je = We ? ue(We) : "";
|
|
284
284
|
return typeof u == "function" && De.set(u, Je), Je;
|
|
285
285
|
}
|
|
286
286
|
function Ot(u, w, N) {
|
|
287
|
-
return
|
|
287
|
+
return he(u, !1);
|
|
288
288
|
}
|
|
289
289
|
function te(u) {
|
|
290
290
|
var w = u.prototype;
|
|
@@ -294,14 +294,14 @@ function Xo() {
|
|
|
294
294
|
if (u == null)
|
|
295
295
|
return "";
|
|
296
296
|
if (typeof u == "function")
|
|
297
|
-
return
|
|
297
|
+
return he(u, te(u));
|
|
298
298
|
if (typeof u == "string")
|
|
299
|
-
return
|
|
299
|
+
return ue(u);
|
|
300
300
|
switch (u) {
|
|
301
301
|
case d:
|
|
302
|
-
return
|
|
302
|
+
return ue("Suspense");
|
|
303
303
|
case f:
|
|
304
|
-
return
|
|
304
|
+
return ue("SuspenseList");
|
|
305
305
|
}
|
|
306
306
|
if (typeof u == "object")
|
|
307
307
|
switch (u.$$typeof) {
|
|
@@ -310,7 +310,7 @@ function Xo() {
|
|
|
310
310
|
case v:
|
|
311
311
|
return Ce(u.type, w, N);
|
|
312
312
|
case g: {
|
|
313
|
-
var
|
|
313
|
+
var $ = u, B = $._payload, k = $._init;
|
|
314
314
|
try {
|
|
315
315
|
return Ce(k(B), w, N);
|
|
316
316
|
} catch {
|
|
@@ -319,7 +319,7 @@ function Xo() {
|
|
|
319
319
|
}
|
|
320
320
|
return "";
|
|
321
321
|
}
|
|
322
|
-
var
|
|
322
|
+
var se = Object.prototype.hasOwnProperty, He = {}, Nt = j.ReactDebugCurrentFrame;
|
|
323
323
|
function qe(u) {
|
|
324
324
|
if (u) {
|
|
325
325
|
var w = u._owner, N = Ce(u.type, u._source, w ? w.type : null);
|
|
@@ -327,22 +327,22 @@ function Xo() {
|
|
|
327
327
|
} else
|
|
328
328
|
Nt.setExtraStackFrame(null);
|
|
329
329
|
}
|
|
330
|
-
function Lr(u, w, N,
|
|
330
|
+
function Lr(u, w, N, $, B) {
|
|
331
331
|
{
|
|
332
|
-
var k = Function.call.bind(
|
|
332
|
+
var k = Function.call.bind(se);
|
|
333
333
|
for (var P in u)
|
|
334
334
|
if (k(u, P)) {
|
|
335
335
|
var T = void 0;
|
|
336
336
|
try {
|
|
337
337
|
if (typeof u[P] != "function") {
|
|
338
|
-
var z = Error((
|
|
338
|
+
var z = Error(($ || "React class") + ": " + N + " type `" + P + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof u[P] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
339
339
|
throw z.name = "Invariant Violation", z;
|
|
340
340
|
}
|
|
341
|
-
T = u[P](w, P,
|
|
342
|
-
} catch (
|
|
343
|
-
T =
|
|
341
|
+
T = u[P](w, P, $, N, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
342
|
+
} catch (Y) {
|
|
343
|
+
T = Y;
|
|
344
344
|
}
|
|
345
|
-
T && !(T instanceof Error) && (qe(B),
|
|
345
|
+
T && !(T instanceof Error) && (qe(B), b("%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).", $ || "React class", N, P, typeof T), qe(null)), T instanceof Error && !(T.message in He) && (He[T.message] = !0, qe(B), b("Failed %s type: %s", N, T.message), qe(null));
|
|
346
346
|
}
|
|
347
347
|
}
|
|
348
348
|
}
|
|
@@ -368,7 +368,7 @@ function Xo() {
|
|
|
368
368
|
}
|
|
369
369
|
function Xt(u) {
|
|
370
370
|
if (Wr(u))
|
|
371
|
-
return
|
|
371
|
+
return b("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,7 +377,7 @@ function Xo() {
|
|
|
377
377
|
__source: !0
|
|
378
378
|
}, it, kt;
|
|
379
379
|
function Jt(u) {
|
|
380
|
-
if (
|
|
380
|
+
if (se.call(u, "ref")) {
|
|
381
381
|
var w = Object.getOwnPropertyDescriptor(u, "ref").get;
|
|
382
382
|
if (w && w.isReactWarning)
|
|
383
383
|
return !1;
|
|
@@ -385,7 +385,7 @@ function Xo() {
|
|
|
385
385
|
return u.ref !== void 0;
|
|
386
386
|
}
|
|
387
387
|
function Yr(u) {
|
|
388
|
-
if (
|
|
388
|
+
if (se.call(u, "key")) {
|
|
389
389
|
var w = Object.getOwnPropertyDescriptor(u, "key").get;
|
|
390
390
|
if (w && w.isReactWarning)
|
|
391
391
|
return !1;
|
|
@@ -398,7 +398,7 @@ function Xo() {
|
|
|
398
398
|
function Qt(u, w) {
|
|
399
399
|
{
|
|
400
400
|
var N = function() {
|
|
401
|
-
it || (it = !0,
|
|
401
|
+
it || (it = !0, b("%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
403
|
N.isReactWarning = !0, Object.defineProperty(u, "key", {
|
|
404
404
|
get: N,
|
|
@@ -409,7 +409,7 @@ function Xo() {
|
|
|
409
409
|
function Br(u, w) {
|
|
410
410
|
{
|
|
411
411
|
var N = function() {
|
|
412
|
-
kt || (kt = !0,
|
|
412
|
+
kt || (kt = !0, b("%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
414
|
N.isReactWarning = !0, Object.defineProperty(u, "ref", {
|
|
415
415
|
get: N,
|
|
@@ -417,7 +417,7 @@ function Xo() {
|
|
|
417
417
|
});
|
|
418
418
|
}
|
|
419
419
|
}
|
|
420
|
-
var Zt = function(u, w, N,
|
|
420
|
+
var Zt = function(u, w, N, $, B, k, P) {
|
|
421
421
|
var T = {
|
|
422
422
|
// This tag allows us to uniquely identify this as a React Element
|
|
423
423
|
$$typeof: t,
|
|
@@ -438,7 +438,7 @@ function Xo() {
|
|
|
438
438
|
configurable: !1,
|
|
439
439
|
enumerable: !1,
|
|
440
440
|
writable: !1,
|
|
441
|
-
value:
|
|
441
|
+
value: $
|
|
442
442
|
}), Object.defineProperty(T, "_source", {
|
|
443
443
|
configurable: !1,
|
|
444
444
|
enumerable: !1,
|
|
@@ -446,22 +446,22 @@ function Xo() {
|
|
|
446
446
|
value: B
|
|
447
447
|
}), Object.freeze && (Object.freeze(T.props), Object.freeze(T)), T;
|
|
448
448
|
};
|
|
449
|
-
function er(u, w, N,
|
|
449
|
+
function er(u, w, N, $, B) {
|
|
450
450
|
{
|
|
451
451
|
var k, P = {}, T = null, z = null;
|
|
452
452
|
N !== void 0 && (Xt(N), T = "" + N), Yr(w) && (Xt(w.key), T = "" + w.key), Jt(w) && (z = w.ref, st(w, B));
|
|
453
453
|
for (k in w)
|
|
454
|
-
|
|
454
|
+
se.call(w, k) && !Vr.hasOwnProperty(k) && (P[k] = w[k]);
|
|
455
455
|
if (u && u.defaultProps) {
|
|
456
|
-
var
|
|
457
|
-
for (k in
|
|
458
|
-
P[k] === void 0 && (P[k] =
|
|
456
|
+
var Y = u.defaultProps;
|
|
457
|
+
for (k in Y)
|
|
458
|
+
P[k] === void 0 && (P[k] = Y[k]);
|
|
459
459
|
}
|
|
460
460
|
if (T || z) {
|
|
461
461
|
var J = typeof u == "function" ? u.displayName || u.name || "Unknown" : u;
|
|
462
462
|
T && Qt(P, J), z && Br(P, J);
|
|
463
463
|
}
|
|
464
|
-
return Zt(u, T, z, B,
|
|
464
|
+
return Zt(u, T, z, B, $, Kt.current, P);
|
|
465
465
|
}
|
|
466
466
|
}
|
|
467
467
|
var Xe = j.ReactCurrentOwner, tr = j.ReactDebugCurrentFrame;
|
|
@@ -477,10 +477,10 @@ function Xo() {
|
|
|
477
477
|
function ct(u) {
|
|
478
478
|
return typeof u == "object" && u !== null && u.$$typeof === t;
|
|
479
479
|
}
|
|
480
|
-
function
|
|
480
|
+
function de() {
|
|
481
481
|
{
|
|
482
482
|
if (Xe.current) {
|
|
483
|
-
var u =
|
|
483
|
+
var u = A(Xe.current.type);
|
|
484
484
|
if (u)
|
|
485
485
|
return `
|
|
486
486
|
|
|
@@ -489,13 +489,13 @@ Check the render method of \`` + u + "`.";
|
|
|
489
489
|
return "";
|
|
490
490
|
}
|
|
491
491
|
}
|
|
492
|
-
function
|
|
492
|
+
function ve(u) {
|
|
493
493
|
return "";
|
|
494
494
|
}
|
|
495
495
|
var Ke = {};
|
|
496
|
-
function
|
|
496
|
+
function H(u) {
|
|
497
497
|
{
|
|
498
|
-
var w =
|
|
498
|
+
var w = de();
|
|
499
499
|
if (!w) {
|
|
500
500
|
var N = typeof u == "string" ? u : u.displayName || u.name;
|
|
501
501
|
N && (w = `
|
|
@@ -510,12 +510,12 @@ Check the top-level render call using <` + N + ">.");
|
|
|
510
510
|
if (!u._store || u._store.validated || u.key != null)
|
|
511
511
|
return;
|
|
512
512
|
u._store.validated = !0;
|
|
513
|
-
var N =
|
|
513
|
+
var N = H(w);
|
|
514
514
|
if (Ke[N])
|
|
515
515
|
return;
|
|
516
516
|
Ke[N] = !0;
|
|
517
|
-
var
|
|
518
|
-
u && u._owner && u._owner !== Xe.current && (
|
|
517
|
+
var $ = "";
|
|
518
|
+
u && u._owner && u._owner !== Xe.current && ($ = " It was passed a child from " + A(u._owner.type) + "."), $e(u), b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', N, $), $e(null);
|
|
519
519
|
}
|
|
520
520
|
}
|
|
521
521
|
function rr(u, w) {
|
|
@@ -524,13 +524,13 @@ Check the top-level render call using <` + N + ">.");
|
|
|
524
524
|
return;
|
|
525
525
|
if (Et(u))
|
|
526
526
|
for (var N = 0; N < u.length; N++) {
|
|
527
|
-
var
|
|
528
|
-
ct(
|
|
527
|
+
var $ = u[N];
|
|
528
|
+
ct($) && we($, 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 = y(u);
|
|
534
534
|
if (typeof B == "function" && B !== u.entries)
|
|
535
535
|
for (var k = B.call(u), P; !(P = k.next()).done; )
|
|
536
536
|
ct(P.value) && we(P.value, w);
|
|
@@ -552,39 +552,39 @@ Check the top-level render call using <` + N + ">.");
|
|
|
552
552
|
else
|
|
553
553
|
return;
|
|
554
554
|
if (N) {
|
|
555
|
-
var
|
|
556
|
-
Lr(N, u.props, "prop",
|
|
555
|
+
var $ = A(w);
|
|
556
|
+
Lr(N, u.props, "prop", $, u);
|
|
557
557
|
} else if (w.PropTypes !== void 0 && !_t) {
|
|
558
558
|
_t = !0;
|
|
559
|
-
var B =
|
|
560
|
-
|
|
559
|
+
var B = A(w);
|
|
560
|
+
b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", B || "Unknown");
|
|
561
561
|
}
|
|
562
|
-
typeof w.getDefaultProps == "function" && !w.getDefaultProps.isReactClassApproved &&
|
|
562
|
+
typeof w.getDefaultProps == "function" && !w.getDefaultProps.isReactClassApproved && b("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
567
|
for (var w = Object.keys(u.props), N = 0; N < w.length; N++) {
|
|
568
|
-
var
|
|
569
|
-
if (
|
|
570
|
-
$e(u),
|
|
568
|
+
var $ = w[N];
|
|
569
|
+
if ($ !== "children" && $ !== "key") {
|
|
570
|
+
$e(u), b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", $), $e(null);
|
|
571
571
|
break;
|
|
572
572
|
}
|
|
573
573
|
}
|
|
574
|
-
u.ref !== null && ($e(u),
|
|
574
|
+
u.ref !== null && ($e(u), b("Invalid attribute `ref` supplied to `React.Fragment`."), $e(null));
|
|
575
575
|
}
|
|
576
576
|
}
|
|
577
577
|
var Pt = {};
|
|
578
|
-
function lt(u, w, N,
|
|
578
|
+
function lt(u, w, N, $, B, k) {
|
|
579
579
|
{
|
|
580
|
-
var P =
|
|
580
|
+
var P = D(u);
|
|
581
581
|
if (!P) {
|
|
582
582
|
var T = "";
|
|
583
583
|
(u === void 0 || typeof u == "object" && u !== null && Object.keys(u).length === 0) && (T += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
584
|
-
var z =
|
|
585
|
-
z ? T += z : T +=
|
|
586
|
-
var
|
|
587
|
-
u === null ?
|
|
584
|
+
var z = ve();
|
|
585
|
+
z ? T += z : T += de();
|
|
586
|
+
var Y;
|
|
587
|
+
u === null ? Y = "null" : Et(u) ? Y = "array" : u !== void 0 && u.$$typeof === t ? (Y = "<" + (A(u.type) || "Unknown") + " />", T = " Did you accidentally export a JSX literal instead of a component?") : Y = typeof u, b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Y, T);
|
|
588
588
|
}
|
|
589
589
|
var J = er(u, w, N, B, k);
|
|
590
590
|
if (J == null)
|
|
@@ -592,23 +592,23 @@ Check the top-level render call using <` + N + ">.");
|
|
|
592
592
|
if (P) {
|
|
593
593
|
var ge = w.children;
|
|
594
594
|
if (ge !== void 0)
|
|
595
|
-
if (
|
|
595
|
+
if ($)
|
|
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
|
+
b("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 =
|
|
605
|
+
if (se.call(w, "key")) {
|
|
606
|
+
var Je = A(u), ye = Object.keys(w).filter(function(Yo) {
|
|
607
607
|
return Yo !== "key";
|
|
608
608
|
}), Ur = ye.length > 0 ? "{key: someKey, " + ye.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
609
609
|
if (!Pt[Je + Ur]) {
|
|
610
610
|
var Vo = ye.length > 0 ? "{" + ye.join(": ..., ") + ": ...}" : "{}";
|
|
611
|
-
|
|
611
|
+
b(`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:
|
|
@@ -699,8 +699,8 @@ new Promise(() => {
|
|
|
699
699
|
});
|
|
700
700
|
const Ma = Aa(1);
|
|
701
701
|
function wl({ children: e }) {
|
|
702
|
-
const t = ai(), r = re(1), [n, a] =
|
|
703
|
-
return
|
|
702
|
+
const t = ai(), r = re(1), [n, a] = W(1);
|
|
703
|
+
return X(() => {
|
|
704
704
|
r.current += 1, a(r.current);
|
|
705
705
|
}, [t]), /* @__PURE__ */ o.jsx(Ma.Provider, { value: n, children: e });
|
|
706
706
|
}
|
|
@@ -708,7 +708,7 @@ function jl() {
|
|
|
708
708
|
return On(Ma);
|
|
709
709
|
}
|
|
710
710
|
const Sl = ({ imageUrl: e }) => {
|
|
711
|
-
const [t, r] =
|
|
711
|
+
const [t, r] = W(null), n = async (a) => {
|
|
712
712
|
try {
|
|
713
713
|
const i = await fetch(a, { method: "HEAD" });
|
|
714
714
|
return console.log(i), i.ok;
|
|
@@ -716,7 +716,7 @@ const Sl = ({ imageUrl: e }) => {
|
|
|
716
716
|
return !1;
|
|
717
717
|
}
|
|
718
718
|
};
|
|
719
|
-
return
|
|
719
|
+
return X(() => {
|
|
720
720
|
n(e).then((a) => r(a));
|
|
721
721
|
}, [e]), t === null ? /* @__PURE__ */ o.jsx("p", { children: "Vérification en cours..." }) : t ? /* @__PURE__ */ o.jsx("img", { src: e, alt: "Vérifiée" }) : /* @__PURE__ */ o.jsx("p", { children: "L'image n'existe pas." });
|
|
722
722
|
}, Dl = ({ imageUrl: e }) => /* @__PURE__ */ o.jsx("img", { src: e, alt: "" }), Ol = (e) => {
|
|
@@ -734,7 +734,7 @@ const Sl = ({ imageUrl: e }) => {
|
|
|
734
734
|
});
|
|
735
735
|
};
|
|
736
736
|
return n(e, t), r.toString();
|
|
737
|
-
}, El = (e = "fr-FR", t = "EUR") => ({ formatCurrency:
|
|
737
|
+
}, El = (e = "fr-FR", t = "EUR") => ({ formatCurrency: I(
|
|
738
738
|
(n) => new Intl.NumberFormat(e, {
|
|
739
739
|
style: "currency",
|
|
740
740
|
currency: t
|
|
@@ -781,10 +781,10 @@ function Pl(e) {
|
|
|
781
781
|
return new Date(t, r - 1, n, 23, 59, 59, 999);
|
|
782
782
|
}
|
|
783
783
|
const Tl = (e = 768) => {
|
|
784
|
-
const [t, r] =
|
|
784
|
+
const [t, r] = W(
|
|
785
785
|
typeof window < "u" ? window.innerWidth <= e : !1
|
|
786
786
|
);
|
|
787
|
-
return
|
|
787
|
+
return X(() => {
|
|
788
788
|
const n = () => {
|
|
789
789
|
r(window.innerWidth <= e);
|
|
790
790
|
};
|
|
@@ -839,7 +839,7 @@ function si(e, t) {
|
|
|
839
839
|
throw new Mt(`Invalid token specified: invalid json for part #${r + 1} (${i.message})`);
|
|
840
840
|
}
|
|
841
841
|
}
|
|
842
|
-
const Rl = () => ({ getTokenValidate:
|
|
842
|
+
const Rl = () => ({ getTokenValidate: I(() => {
|
|
843
843
|
const t = localStorage.getItem("token");
|
|
844
844
|
if (!t)
|
|
845
845
|
return null;
|
|
@@ -847,7 +847,7 @@ const Rl = () => ({ getTokenValidate: R(() => {
|
|
|
847
847
|
return !r.exp || r.exp < n ? null : t;
|
|
848
848
|
}, []) }), Al = () => ({ isValidateEmail: (n) => /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(n), isValidateTel: (n) => /^\+?[0-9\s.-]{7,15}$/.test(n), isValidateCodePostal: (n) => /^[0-9]{5}$/.test(n) }), Il = () => {
|
|
849
849
|
const e = re(null);
|
|
850
|
-
return
|
|
850
|
+
return X(() => {
|
|
851
851
|
if (!e.current) return;
|
|
852
852
|
const t = document.createElement("script");
|
|
853
853
|
return t.type = "text/javascript", t.innerHTML = `
|
|
@@ -872,14 +872,14 @@ const Rl = () => ({ getTokenValidate: R(() => {
|
|
|
872
872
|
(r = e == null ? void 0 : e.current) == null || r.removeChild(t);
|
|
873
873
|
};
|
|
874
874
|
}, []), /* @__PURE__ */ o.jsx("div", { children: /* @__PURE__ */ o.jsx("div", { ref: e }) });
|
|
875
|
-
},
|
|
875
|
+
}, V = ({ classIcon: e, size: t }) => /* @__PURE__ */ o.jsx("i", { className: `bi ${e} ${t ?? "sm"}` }), La = ({
|
|
876
876
|
className: e,
|
|
877
877
|
onClick: t,
|
|
878
878
|
title: r,
|
|
879
879
|
sizeIcon: n,
|
|
880
880
|
classIcon: a
|
|
881
881
|
}) => {
|
|
882
|
-
const i =
|
|
882
|
+
const i = I((s) => {
|
|
883
883
|
s.stopPropagation(), t && t(s);
|
|
884
884
|
}, []);
|
|
885
885
|
return /* @__PURE__ */ o.jsxs(
|
|
@@ -888,7 +888,7 @@ const Rl = () => ({ getTokenValidate: R(() => {
|
|
|
888
888
|
onClick: i,
|
|
889
889
|
className: `badge ${e || ""}`,
|
|
890
890
|
children: [
|
|
891
|
-
a && /* @__PURE__ */ o.jsx(
|
|
891
|
+
a && /* @__PURE__ */ o.jsx(V, { size: n, classIcon: a }),
|
|
892
892
|
/* @__PURE__ */ o.jsx("span", { children: r })
|
|
893
893
|
]
|
|
894
894
|
}
|
|
@@ -907,7 +907,7 @@ const $l = ({
|
|
|
907
907
|
};
|
|
908
908
|
return /* @__PURE__ */ o.jsxs("div", { className: `action ${e}`, onClick: i, children: [
|
|
909
909
|
a && /* @__PURE__ */ o.jsx(La, { ...a }),
|
|
910
|
-
n && /* @__PURE__ */ o.jsx(
|
|
910
|
+
n && /* @__PURE__ */ o.jsx(V, { classIcon: n, size: je.LARGE }),
|
|
911
911
|
/* @__PURE__ */ o.jsx("small", { children: r })
|
|
912
912
|
] });
|
|
913
913
|
}, xt = ({
|
|
@@ -934,9 +934,9 @@ const $l = ({
|
|
|
934
934
|
className: e,
|
|
935
935
|
children: [
|
|
936
936
|
r && /* @__PURE__ */ o.jsx(La, { ...r }),
|
|
937
|
-
s && c == 1 && /* @__PURE__ */ o.jsx("span", { className: `${n ? "mr-2" : ""}`, children: /* @__PURE__ */ o.jsx(
|
|
937
|
+
s && c == 1 && /* @__PURE__ */ o.jsx("span", { className: `${n ? "mr-2" : ""}`, children: /* @__PURE__ */ o.jsx(V, { size: a, classIcon: s }) }),
|
|
938
938
|
/* @__PURE__ */ o.jsx("span", { children: n }),
|
|
939
|
-
s && c == 2 && /* @__PURE__ */ o.jsx("span", { className: "ml-2", children: /* @__PURE__ */ o.jsx(
|
|
939
|
+
s && c == 2 && /* @__PURE__ */ o.jsx("span", { className: "ml-2", children: /* @__PURE__ */ o.jsx(V, { classIcon: s }) })
|
|
940
940
|
]
|
|
941
941
|
}
|
|
942
942
|
);
|
|
@@ -948,7 +948,7 @@ const $l = ({
|
|
|
948
948
|
children: e.item.children
|
|
949
949
|
}
|
|
950
950
|
), Fa = (e) => {
|
|
951
|
-
const [t, r] =
|
|
951
|
+
const [t, r] = W(null), n = I((i) => {
|
|
952
952
|
r(i);
|
|
953
953
|
}, []), a = (i) => /* @__PURE__ */ o.jsx("ul", { children: i.map((s) => /* @__PURE__ */ o.jsxs("li", { children: [
|
|
954
954
|
/* @__PURE__ */ o.jsx(
|
|
@@ -965,7 +965,7 @@ const $l = ({
|
|
|
965
965
|
}, Wa = Aa(void 0), Ml = ({
|
|
966
966
|
children: e
|
|
967
967
|
}) => {
|
|
968
|
-
const [t, r] =
|
|
968
|
+
const [t, r] = W(null);
|
|
969
969
|
return /* @__PURE__ */ o.jsx(Wa.Provider, { value: { activeOverlayId: t, setActiveOverlay: r }, children: e });
|
|
970
970
|
}, li = () => {
|
|
971
971
|
const e = On(Wa);
|
|
@@ -998,9 +998,9 @@ var di = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|def
|
|
|
998
998
|
return di.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91;
|
|
999
999
|
}
|
|
1000
1000
|
/* Z+1 */
|
|
1001
|
-
),
|
|
1001
|
+
), q = "-ms-", Wt = "-moz-", U = "-webkit-", Va = "comm", Or = "rule", kn = "decl", hi = "@import", Ya = "@keyframes", vi = "@layer", Ba = Math.abs, _n = String.fromCharCode, tn = Object.assign;
|
|
1002
1002
|
function mi(e, t) {
|
|
1003
|
-
return
|
|
1003
|
+
return ce(e, 0) ^ 45 ? (((t << 2 ^ ce(e, 0)) << 2 ^ ce(e, 1)) << 2 ^ ce(e, 2)) << 2 ^ ce(e, 3) : 0;
|
|
1004
1004
|
}
|
|
1005
1005
|
function Ua(e) {
|
|
1006
1006
|
return e.trim();
|
|
@@ -1008,13 +1008,13 @@ function Ua(e) {
|
|
|
1008
1008
|
function Me(e, t) {
|
|
1009
1009
|
return (e = t.exec(e)) ? e[0] : e;
|
|
1010
1010
|
}
|
|
1011
|
-
function
|
|
1011
|
+
function L(e, t, r) {
|
|
1012
1012
|
return e.replace(t, r);
|
|
1013
1013
|
}
|
|
1014
1014
|
function dr(e, t, r) {
|
|
1015
1015
|
return e.indexOf(t, r);
|
|
1016
1016
|
}
|
|
1017
|
-
function
|
|
1017
|
+
function ce(e, t) {
|
|
1018
1018
|
return e.charCodeAt(t) | 0;
|
|
1019
1019
|
}
|
|
1020
1020
|
function mt(e, t, r) {
|
|
@@ -1053,13 +1053,13 @@ function gi() {
|
|
|
1053
1053
|
return oe;
|
|
1054
1054
|
}
|
|
1055
1055
|
function yi() {
|
|
1056
|
-
return oe = Oe > 0 ?
|
|
1056
|
+
return oe = Oe > 0 ? ce(wt, --Oe) : 0, pt--, oe === 10 && (pt = 1, Nr--), oe;
|
|
1057
1057
|
}
|
|
1058
1058
|
function Ne() {
|
|
1059
|
-
return oe = Oe < Ga ?
|
|
1059
|
+
return oe = Oe < Ga ? ce(wt, Oe++) : 0, pt++, oe === 10 && (pt = 1, Nr++), oe;
|
|
1060
1060
|
}
|
|
1061
1061
|
function et() {
|
|
1062
|
-
return
|
|
1062
|
+
return ce(wt, Oe);
|
|
1063
1063
|
}
|
|
1064
1064
|
function fr() {
|
|
1065
1065
|
return Oe;
|
|
@@ -1151,17 +1151,17 @@ function Oi(e) {
|
|
|
1151
1151
|
return xi(hr("", null, null, null, [""], e = bi(e), 0, [0], e));
|
|
1152
1152
|
}
|
|
1153
1153
|
function hr(e, t, r, n, a, i, s, c, l) {
|
|
1154
|
-
for (var d = 0, f = 0, v = s, g = 0, h = 0, p = 0, m = 1,
|
|
1155
|
-
switch (p =
|
|
1154
|
+
for (var d = 0, f = 0, v = s, g = 0, h = 0, p = 0, m = 1, y = 1, j = 1, b = 0, _ = "", S = a, O = i, E = n, C = _; y; )
|
|
1155
|
+
switch (p = b, b = Ne()) {
|
|
1156
1156
|
case 40:
|
|
1157
|
-
if (p != 108 &&
|
|
1158
|
-
dr(C +=
|
|
1157
|
+
if (p != 108 && ce(C, v - 1) == 58) {
|
|
1158
|
+
dr(C += L(zr(b), "&", "&\f"), "&\f", Ba(d ? c[d - 1] : 0)) != -1 && (j = -1);
|
|
1159
1159
|
break;
|
|
1160
1160
|
}
|
|
1161
1161
|
case 34:
|
|
1162
1162
|
case 39:
|
|
1163
1163
|
case 91:
|
|
1164
|
-
C += zr(
|
|
1164
|
+
C += zr(b);
|
|
1165
1165
|
break;
|
|
1166
1166
|
case 9:
|
|
1167
1167
|
case 10:
|
|
@@ -1187,29 +1187,29 @@ function hr(e, t, r, n, a, i, s, c, l) {
|
|
|
1187
1187
|
case 125 * m:
|
|
1188
1188
|
case 59:
|
|
1189
1189
|
case 0:
|
|
1190
|
-
switch (
|
|
1190
|
+
switch (b) {
|
|
1191
1191
|
case 0:
|
|
1192
1192
|
case 125:
|
|
1193
|
-
|
|
1193
|
+
y = 0;
|
|
1194
1194
|
case 59 + f:
|
|
1195
|
-
j == -1 && (C =
|
|
1195
|
+
j == -1 && (C = L(C, /\f/g, "")), h > 0 && Te(C) - v && Lt(h > 32 ? ea(C + ";", n, r, v - 1, l) : ea(L(C, " ", "") + ";", n, r, v - 2, l), l);
|
|
1196
1196
|
break;
|
|
1197
1197
|
case 59:
|
|
1198
1198
|
C += ";";
|
|
1199
1199
|
default:
|
|
1200
|
-
if (Lt(E = Zn(C, t, r, d, f, a, c, _, S = [],
|
|
1200
|
+
if (Lt(E = Zn(C, t, r, d, f, a, c, _, S = [], O = [], v, i), i), b === 123)
|
|
1201
1201
|
if (f === 0)
|
|
1202
|
-
hr(C, t, E, E, S, i, v, c,
|
|
1202
|
+
hr(C, t, E, E, S, i, v, c, O);
|
|
1203
1203
|
else
|
|
1204
|
-
switch (g === 99 &&
|
|
1204
|
+
switch (g === 99 && ce(C, 3) === 110 ? 100 : g) {
|
|
1205
1205
|
case 100:
|
|
1206
1206
|
case 108:
|
|
1207
1207
|
case 109:
|
|
1208
1208
|
case 115:
|
|
1209
|
-
hr(e, E, E, n && Lt(Zn(e, E, E, 0, 0, a, c, _, a, S = [], v,
|
|
1209
|
+
hr(e, E, E, n && Lt(Zn(e, E, E, 0, 0, a, c, _, a, S = [], v, O), O), a, O, v, c, n ? S : O);
|
|
1210
1210
|
break;
|
|
1211
1211
|
default:
|
|
1212
|
-
hr(C, E, E, E, [""],
|
|
1212
|
+
hr(C, E, E, E, [""], O, 0, c, O);
|
|
1213
1213
|
}
|
|
1214
1214
|
}
|
|
1215
1215
|
d = f = h = 0, m = j = 1, _ = C = "", v = s;
|
|
@@ -1218,12 +1218,12 @@ function hr(e, t, r, n, a, i, s, c, l) {
|
|
|
1218
1218
|
v = 1 + Te(C), h = p;
|
|
1219
1219
|
default:
|
|
1220
1220
|
if (m < 1) {
|
|
1221
|
-
if (
|
|
1221
|
+
if (b == 123)
|
|
1222
1222
|
--m;
|
|
1223
|
-
else if (
|
|
1223
|
+
else if (b == 125 && m++ == 0 && yi() == 125)
|
|
1224
1224
|
continue;
|
|
1225
1225
|
}
|
|
1226
|
-
switch (C += _n(
|
|
1226
|
+
switch (C += _n(b), b * m) {
|
|
1227
1227
|
case 38:
|
|
1228
1228
|
j = f > 0 ? 1 : (C += "\f", -1);
|
|
1229
1229
|
break;
|
|
@@ -1231,7 +1231,7 @@ function hr(e, t, r, n, a, i, s, c, l) {
|
|
|
1231
1231
|
c[d++] = (Te(C) - 1) * j, j = 1;
|
|
1232
1232
|
break;
|
|
1233
1233
|
case 64:
|
|
1234
|
-
et() === 45 && (C += zr(Ne())), g = et(), f = v = Te(_ = C += Di(fr())),
|
|
1234
|
+
et() === 45 && (C += zr(Ne())), g = et(), f = v = Te(_ = C += Di(fr())), b++;
|
|
1235
1235
|
break;
|
|
1236
1236
|
case 45:
|
|
1237
1237
|
p === 45 && Te(C) == 2 && (m = 0);
|
|
@@ -1240,9 +1240,9 @@ function hr(e, t, r, n, a, i, s, c, l) {
|
|
|
1240
1240
|
return i;
|
|
1241
1241
|
}
|
|
1242
1242
|
function Zn(e, t, r, n, a, i, s, c, l, d, f, v) {
|
|
1243
|
-
for (var g = a - 1, h = a === 0 ? i : [""], p = za(h), m = 0,
|
|
1244
|
-
for (var
|
|
1245
|
-
(S = Ua(
|
|
1243
|
+
for (var g = a - 1, h = a === 0 ? i : [""], p = za(h), m = 0, y = 0, j = 0; m < n; ++m)
|
|
1244
|
+
for (var b = 0, _ = mt(e, g + 1, g = Ba(y = s[m])), S = e; b < p; ++b)
|
|
1245
|
+
(S = Ua(y > 0 ? h[b] + " " + _ : L(_, /&\f/g, h[b]))) && (l[j++] = S);
|
|
1246
1246
|
return Er(e, t, r, a === 0 ? Or : c, l, d, f, v);
|
|
1247
1247
|
}
|
|
1248
1248
|
function Ni(e, t, r, n) {
|
|
@@ -1288,64 +1288,64 @@ function Ha(e, t, r) {
|
|
|
1288
1288
|
case 4810:
|
|
1289
1289
|
case 6968:
|
|
1290
1290
|
case 2756:
|
|
1291
|
-
return U + e + Wt + e +
|
|
1291
|
+
return U + e + Wt + e + q + e + e;
|
|
1292
1292
|
case 5936:
|
|
1293
|
-
switch (
|
|
1293
|
+
switch (ce(e, t + 11)) {
|
|
1294
1294
|
case 114:
|
|
1295
|
-
return U + e +
|
|
1295
|
+
return U + e + q + L(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
|
|
1296
1296
|
case 108:
|
|
1297
|
-
return U + e +
|
|
1297
|
+
return U + e + q + L(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
|
|
1298
1298
|
case 45:
|
|
1299
|
-
return U + e +
|
|
1299
|
+
return U + e + q + L(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
|
|
1300
1300
|
}
|
|
1301
1301
|
case 6828:
|
|
1302
1302
|
case 4268:
|
|
1303
1303
|
case 2903:
|
|
1304
|
-
return U + e +
|
|
1304
|
+
return U + e + q + e + e;
|
|
1305
1305
|
case 6165:
|
|
1306
|
-
return U + e +
|
|
1306
|
+
return U + e + q + "flex-" + e + e;
|
|
1307
1307
|
case 5187:
|
|
1308
|
-
return U + e +
|
|
1308
|
+
return U + e + L(e, /(\w+).+(:[^]+)/, U + "box-$1$2" + q + "flex-$1$2") + e;
|
|
1309
1309
|
case 5443:
|
|
1310
|
-
return U + e +
|
|
1310
|
+
return U + e + q + "flex-item-" + L(e, /flex-|-self/g, "") + (Me(e, /flex-|baseline/) ? "" : q + "grid-row-" + L(e, /flex-|-self/g, "")) + e;
|
|
1311
1311
|
case 4675:
|
|
1312
|
-
return U + e +
|
|
1312
|
+
return U + e + q + "flex-line-pack" + L(e, /align-content|flex-|-self/g, "") + e;
|
|
1313
1313
|
case 5548:
|
|
1314
|
-
return U + e +
|
|
1314
|
+
return U + e + q + L(e, "shrink", "negative") + e;
|
|
1315
1315
|
case 5292:
|
|
1316
|
-
return U + e +
|
|
1316
|
+
return U + e + q + L(e, "basis", "preferred-size") + e;
|
|
1317
1317
|
case 6060:
|
|
1318
|
-
return U + "box-" +
|
|
1318
|
+
return U + "box-" + L(e, "-grow", "") + U + e + q + L(e, "grow", "positive") + e;
|
|
1319
1319
|
case 4554:
|
|
1320
|
-
return U +
|
|
1320
|
+
return U + L(e, /([^-])(transform)/g, "$1" + U + "$2") + e;
|
|
1321
1321
|
case 6187:
|
|
1322
|
-
return
|
|
1322
|
+
return L(L(L(e, /(zoom-|grab)/, U + "$1"), /(image-set)/, U + "$1"), e, "") + e;
|
|
1323
1323
|
case 5495:
|
|
1324
1324
|
case 3959:
|
|
1325
|
-
return
|
|
1325
|
+
return L(e, /(image-set\([^]*)/, U + "$1$`$1");
|
|
1326
1326
|
case 4968:
|
|
1327
|
-
return
|
|
1327
|
+
return L(L(e, /(.+:)(flex-)?(.*)/, U + "box-pack:$3" + q + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + U + e + e;
|
|
1328
1328
|
case 4200:
|
|
1329
|
-
if (!Me(e, /flex-|baseline/)) return
|
|
1329
|
+
if (!Me(e, /flex-|baseline/)) return q + "grid-column-align" + mt(e, t) + e;
|
|
1330
1330
|
break;
|
|
1331
1331
|
case 2592:
|
|
1332
1332
|
case 3360:
|
|
1333
|
-
return
|
|
1333
|
+
return q + L(e, "template-", "") + e;
|
|
1334
1334
|
case 4384:
|
|
1335
1335
|
case 3616:
|
|
1336
1336
|
return r && r.some(function(n, a) {
|
|
1337
1337
|
return t = a, Me(n.props, /grid-\w+-end/);
|
|
1338
|
-
}) ? ~dr(e + (r = r[t].value), "span", 0) ? e :
|
|
1338
|
+
}) ? ~dr(e + (r = r[t].value), "span", 0) ? e : q + L(e, "-start", "") + e + q + "grid-row-span:" + (~dr(r, "span", 0) ? Me(r, /\d+/) : +Me(r, /\d+/) - +Me(e, /\d+/)) + ";" : q + L(e, "-start", "") + e;
|
|
1339
1339
|
case 4896:
|
|
1340
1340
|
case 4128:
|
|
1341
1341
|
return r && r.some(function(n) {
|
|
1342
1342
|
return Me(n.props, /grid-\w+-start/);
|
|
1343
|
-
}) ? e :
|
|
1343
|
+
}) ? e : q + L(L(e, "-end", "-span"), "span ", "") + e;
|
|
1344
1344
|
case 4095:
|
|
1345
1345
|
case 3583:
|
|
1346
1346
|
case 4068:
|
|
1347
1347
|
case 2532:
|
|
1348
|
-
return
|
|
1348
|
+
return L(e, /(.+)-inline(.+)/, U + "$1$2") + e;
|
|
1349
1349
|
case 8116:
|
|
1350
1350
|
case 7059:
|
|
1351
1351
|
case 5753:
|
|
@@ -1359,31 +1359,31 @@ function Ha(e, t, r) {
|
|
|
1359
1359
|
case 5021:
|
|
1360
1360
|
case 4765:
|
|
1361
1361
|
if (Te(e) - 1 - t > 6)
|
|
1362
|
-
switch (
|
|
1362
|
+
switch (ce(e, t + 1)) {
|
|
1363
1363
|
case 109:
|
|
1364
|
-
if (
|
|
1364
|
+
if (ce(e, t + 4) !== 45)
|
|
1365
1365
|
break;
|
|
1366
1366
|
case 102:
|
|
1367
|
-
return
|
|
1367
|
+
return L(e, /(.+:)(.+)-([^]+)/, "$1" + U + "$2-$3$1" + Wt + (ce(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
|
|
1368
1368
|
case 115:
|
|
1369
|
-
return ~dr(e, "stretch", 0) ? Ha(
|
|
1369
|
+
return ~dr(e, "stretch", 0) ? Ha(L(e, "stretch", "fill-available"), t, r) + e : e;
|
|
1370
1370
|
}
|
|
1371
1371
|
break;
|
|
1372
1372
|
case 5152:
|
|
1373
1373
|
case 5920:
|
|
1374
|
-
return
|
|
1375
|
-
return
|
|
1374
|
+
return L(e, /(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/, function(n, a, i, s, c, l, d) {
|
|
1375
|
+
return q + a + ":" + i + d + (s ? q + a + "-span:" + (c ? l : +l - +i) + d : "") + e;
|
|
1376
1376
|
});
|
|
1377
1377
|
case 4949:
|
|
1378
|
-
if (
|
|
1379
|
-
return
|
|
1378
|
+
if (ce(e, t + 6) === 121)
|
|
1379
|
+
return L(e, ":", ":" + U) + e;
|
|
1380
1380
|
break;
|
|
1381
1381
|
case 6444:
|
|
1382
|
-
switch (
|
|
1382
|
+
switch (ce(e, ce(e, 14) === 45 ? 18 : 11)) {
|
|
1383
1383
|
case 120:
|
|
1384
|
-
return
|
|
1384
|
+
return L(e, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, "$1" + U + (ce(e, 14) === 45 ? "inline-" : "") + "box$3$1" + U + "$2$3$1" + q + "$2box$3") + e;
|
|
1385
1385
|
case 100:
|
|
1386
|
-
return
|
|
1386
|
+
return L(e, ":", ":" + q) + e;
|
|
1387
1387
|
}
|
|
1388
1388
|
break;
|
|
1389
1389
|
case 5719:
|
|
@@ -1391,7 +1391,7 @@ function Ha(e, t, r) {
|
|
|
1391
1391
|
case 2135:
|
|
1392
1392
|
case 3927:
|
|
1393
1393
|
case 2391:
|
|
1394
|
-
return
|
|
1394
|
+
return L(e, "scroll-", "scroll-snap-") + e;
|
|
1395
1395
|
}
|
|
1396
1396
|
return e;
|
|
1397
1397
|
}
|
|
@@ -1436,17 +1436,17 @@ function Ci(e, t, r, n) {
|
|
|
1436
1436
|
e.return = Ha(e.value, e.length, r);
|
|
1437
1437
|
return;
|
|
1438
1438
|
case Ya:
|
|
1439
|
-
return yr([Ye(e, { value:
|
|
1439
|
+
return yr([Ye(e, { value: L(e.value, "@", "@" + U) })], n);
|
|
1440
1440
|
case Or:
|
|
1441
1441
|
if (e.length)
|
|
1442
1442
|
return pi(r = e.props, function(a) {
|
|
1443
1443
|
switch (Me(a, n = /(::plac\w+|:read-\w+)/)) {
|
|
1444
1444
|
case ":read-only":
|
|
1445
1445
|
case ":read-write":
|
|
1446
|
-
dt(Ye(e, { props: [
|
|
1446
|
+
dt(Ye(e, { props: [L(a, /:(read-\w+)/, ":" + Wt + "$1")] })), dt(Ye(e, { props: [a] })), tn(e, { props: Qn(r, n) });
|
|
1447
1447
|
break;
|
|
1448
1448
|
case "::placeholder":
|
|
1449
|
-
dt(Ye(e, { props: [
|
|
1449
|
+
dt(Ye(e, { props: [L(a, /:(plac\w+)/, ":" + U + "input-$1")] })), dt(Ye(e, { props: [L(a, /:(plac\w+)/, ":" + Wt + "$1")] })), dt(Ye(e, { props: [L(a, /:(plac\w+)/, q + "input-$1")] })), dt(Ye(e, { props: [a] })), tn(e, { props: Qn(r, n) });
|
|
1450
1450
|
break;
|
|
1451
1451
|
}
|
|
1452
1452
|
return "";
|
|
@@ -1784,10 +1784,10 @@ var no = function(e) {
|
|
|
1784
1784
|
if (g === void 0) return "continue";
|
|
1785
1785
|
var h = i.names.get(g), p = s.getGroup(v);
|
|
1786
1786
|
if (h === void 0 || !h.size || p.length === 0) return "continue";
|
|
1787
|
-
var m = "".concat(nt, ".g").concat(v, '[id="').concat(g, '"]'),
|
|
1787
|
+
var m = "".concat(nt, ".g").concat(v, '[id="').concat(g, '"]'), y = "";
|
|
1788
1788
|
h !== void 0 && h.forEach(function(j) {
|
|
1789
|
-
j.length > 0 && (
|
|
1790
|
-
}), l += "".concat(p).concat(m, '{content:"').concat(
|
|
1789
|
+
j.length > 0 && (y += "".concat(j, ","));
|
|
1790
|
+
}), l += "".concat(p).concat(m, '{content:"').concat(y, '"}').concat(Cn);
|
|
1791
1791
|
}, f = 0; f < c; f++) d(f);
|
|
1792
1792
|
return l;
|
|
1793
1793
|
}(a);
|
|
@@ -1841,12 +1841,12 @@ function ls(e) {
|
|
|
1841
1841
|
}), s.prefix && f.push(Ci), f.push(Ei);
|
|
1842
1842
|
var v = function(g, h, p, m) {
|
|
1843
1843
|
h === void 0 && (h = ""), p === void 0 && (p = ""), m === void 0 && (m = "&"), t = m, r = h, n = new RegExp("\\".concat(r, "\\b"), "g");
|
|
1844
|
-
var
|
|
1844
|
+
var y = g.replace(cs, ""), j = Oi(p || h ? "".concat(p, " ").concat(h, " { ").concat(y, " }") : y);
|
|
1845
1845
|
s.namespace && (j = oo(j, s.namespace));
|
|
1846
|
-
var
|
|
1846
|
+
var b = [];
|
|
1847
1847
|
return yr(j, ki(f.concat(_i(function(_) {
|
|
1848
|
-
return
|
|
1849
|
-
})))),
|
|
1848
|
+
return b.push(_);
|
|
1849
|
+
})))), b;
|
|
1850
1850
|
};
|
|
1851
1851
|
return v.hash = l.length ? l.reduce(function(g, h) {
|
|
1852
1852
|
return h.name || jt(15), Qe(g, h.name);
|
|
@@ -1948,61 +1948,61 @@ var hs = Ja(_r), vs = function() {
|
|
|
1948
1948
|
lo.Consumer;
|
|
1949
1949
|
var qr = {}, ha = /* @__PURE__ */ new Set();
|
|
1950
1950
|
function ms(e, t, r) {
|
|
1951
|
-
var n = Pn(e), a = e, i = !Hr(e), s = t.attrs, c = s === void 0 ? Cr : s, l = t.componentId, d = l === void 0 ? function(S,
|
|
1951
|
+
var n = Pn(e), a = e, i = !Hr(e), s = t.attrs, c = s === void 0 ? Cr : s, l = t.componentId, d = l === void 0 ? function(S, O) {
|
|
1952
1952
|
var E = typeof S != "string" ? "sc" : ra(S);
|
|
1953
1953
|
qr[E] = (qr[E] || 0) + 1;
|
|
1954
1954
|
var C = "".concat(E, "-").concat(Li(_r + E + qr[E]));
|
|
1955
|
-
return
|
|
1955
|
+
return O ? "".concat(O, "-").concat(C) : C;
|
|
1956
1956
|
}(t.displayName, t.parentComponentId) : l, f = t.displayName, v = f === void 0 ? function(S) {
|
|
1957
1957
|
return Hr(S) ? "styled.".concat(S) : "Styled(".concat(Qa(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(c).filter(Boolean) : c, p = t.shouldForwardProp;
|
|
1959
1959
|
if (n && a.shouldForwardProp) {
|
|
1960
1960
|
var m = a.shouldForwardProp;
|
|
1961
1961
|
if (t.shouldForwardProp) {
|
|
1962
|
-
var
|
|
1963
|
-
p = function(S,
|
|
1964
|
-
return m(S,
|
|
1962
|
+
var y = t.shouldForwardProp;
|
|
1963
|
+
p = function(S, O) {
|
|
1964
|
+
return m(S, O) && y(S, O);
|
|
1965
1965
|
};
|
|
1966
1966
|
} else p = m;
|
|
1967
1967
|
}
|
|
1968
1968
|
var j = new vs(r, g, n ? a.componentStyle : void 0);
|
|
1969
|
-
function
|
|
1970
|
-
return function(E, C,
|
|
1971
|
-
var
|
|
1972
|
-
process.env.NODE_ENV !== "production" && Gn(
|
|
1973
|
-
var Ie = Ai(C,
|
|
1974
|
-
for (var
|
|
1975
|
-
var _e = yt(
|
|
1976
|
-
for (var
|
|
1969
|
+
function b(S, O) {
|
|
1970
|
+
return function(E, C, F) {
|
|
1971
|
+
var x = E.attrs, D = E.componentStyle, M = E.defaultProps, R = E.foldedComponentIds, A = E.styledComponentId, G = E.target, ie = Ae.useContext(lo), ne = ua(), xe = E.shouldForwardProp || ne.shouldForwardProp;
|
|
1972
|
+
process.env.NODE_ENV !== "production" && Gn(A);
|
|
1973
|
+
var Ie = Ai(C, ie, M) || gt, ee = function(ke, me, pe) {
|
|
1974
|
+
for (var ue, ae = be(be({}, me), { className: void 0, theme: pe }), De = 0; De < ke.length; De += 1) {
|
|
1975
|
+
var _e = yt(ue = ke[De]) ? ue(ae) : ue;
|
|
1976
|
+
for (var he in _e) ae[he] = he === "className" ? Ze(ae[he], _e[he]) : he === "style" ? be(be({}, ae[he]), _e[he]) : _e[he];
|
|
1977
1977
|
}
|
|
1978
1978
|
return me.className && (ae.className = Ze(ae.className, me.className)), ae;
|
|
1979
|
-
}(
|
|
1980
|
-
for (var Z in ee) ee[Z] === void 0 || Z[0] === "$" || Z === "as" || Z === "theme" && ee.theme === Ie || (Z === "forwardedAs" ?
|
|
1979
|
+
}(x, C, Ie), K = ee.as || G, le = {};
|
|
1980
|
+
for (var Z in ee) ee[Z] === void 0 || Z[0] === "$" || Z === "as" || Z === "theme" && ee.theme === Ie || (Z === "forwardedAs" ? le.as = ee.forwardedAs : xe && !xe(Z, K) || (le[Z] = ee[Z], xe || process.env.NODE_ENV !== "development" || fi(Z) || ha.has(Z) || !an.has(K) || (ha.add(Z), console.warn('styled-components: it looks like an unknown prop "'.concat(Z, '" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));
|
|
1981
1981
|
var Se = function(ke, me) {
|
|
1982
|
-
var pe = ua(),
|
|
1983
|
-
return process.env.NODE_ENV !== "production" && Gn(
|
|
1984
|
-
}(
|
|
1982
|
+
var pe = ua(), ue = ke.generateAndInjectStyles(me, pe.styleSheet, pe.stylis);
|
|
1983
|
+
return process.env.NODE_ENV !== "production" && Gn(ue), ue;
|
|
1984
|
+
}(D, ee);
|
|
1985
1985
|
process.env.NODE_ENV !== "production" && E.warnTooManyClasses && E.warnTooManyClasses(Se);
|
|
1986
|
-
var Ee = Ze(
|
|
1987
|
-
return Se && (Ee += " " + Se), ee.className && (Ee += " " + ee.className),
|
|
1988
|
-
}(_, S,
|
|
1986
|
+
var Ee = Ze(R, A);
|
|
1987
|
+
return Se && (Ee += " " + Se), ee.className && (Ee += " " + ee.className), le[Hr(K) && !an.has(K) ? "class" : "className"] = Ee, F && (le.ref = F), Bo(K, le);
|
|
1988
|
+
}(_, S, O);
|
|
1989
1989
|
}
|
|
1990
|
-
|
|
1991
|
-
var _ = Ae.forwardRef(
|
|
1990
|
+
b.displayName = v;
|
|
1991
|
+
var _ = Ae.forwardRef(b);
|
|
1992
1992
|
return _.attrs = h, _.componentStyle = j, _.displayName = v, _.shouldForwardProp = p, _.foldedComponentIds = n ? Ze(a.foldedComponentIds, a.styledComponentId) : "", _.styledComponentId = g, _.target = n ? a.target : e, Object.defineProperty(_, "defaultProps", { get: function() {
|
|
1993
1993
|
return this._foldedDefaultProps;
|
|
1994
1994
|
}, set: function(S) {
|
|
1995
|
-
this._foldedDefaultProps = n ? function(
|
|
1995
|
+
this._foldedDefaultProps = n ? function(O) {
|
|
1996
1996
|
for (var E = [], C = 1; C < arguments.length; C++) E[C - 1] = arguments[C];
|
|
1997
|
-
for (var
|
|
1998
|
-
return
|
|
1997
|
+
for (var F = 0, x = E; F < x.length; F++) sn(O, x[F], !0);
|
|
1998
|
+
return O;
|
|
1999
1999
|
}({}, a.defaultProps, S) : S;
|
|
2000
|
-
} }), process.env.NODE_ENV !== "production" && (Ri(v, g), _.warnTooManyClasses = /* @__PURE__ */ function(S,
|
|
2000
|
+
} }), process.env.NODE_ENV !== "production" && (Ri(v, g), _.warnTooManyClasses = /* @__PURE__ */ function(S, O) {
|
|
2001
2001
|
var E = {}, C = !1;
|
|
2002
|
-
return function(
|
|
2003
|
-
if (!C && (E[
|
|
2004
|
-
var
|
|
2005
|
-
console.warn("Over ".concat(200, " classes were generated for component ").concat(S).concat(
|
|
2002
|
+
return function(F) {
|
|
2003
|
+
if (!C && (E[F] = !0, Object.keys(E).length >= 200)) {
|
|
2004
|
+
var x = O ? ' with the id of "'.concat(O, '"') : "";
|
|
2005
|
+
console.warn("Over ".concat(200, " classes were generated for component ").concat(S).concat(x, `.
|
|
2006
2006
|
`) + `Consider using the attrs method, together with a style object for frequently changed styles.
|
|
2007
2007
|
Example:
|
|
2008
2008
|
const Component = styled.div.attrs(props => ({
|
|
@@ -2076,71 +2076,71 @@ const ps = Rn.div`
|
|
|
2076
2076
|
id: i,
|
|
2077
2077
|
closeOverlay: s
|
|
2078
2078
|
}, c) => {
|
|
2079
|
-
const { activeOverlayId: l, setActiveOverlay: d } = li(), [f, v] =
|
|
2079
|
+
const { activeOverlayId: l, setActiveOverlay: d } = li(), [f, v] = W(a || !1), [g, h] = W(
|
|
2080
2080
|
r ?? { top: 0, left: 0 }
|
|
2081
2081
|
), p = re(null), m = Uo();
|
|
2082
2082
|
Dr(c, () => ({
|
|
2083
2083
|
setCoords: h
|
|
2084
|
-
})),
|
|
2084
|
+
})), X(() => {
|
|
2085
2085
|
l !== m && v(!1);
|
|
2086
|
-
}, [l, m]),
|
|
2087
|
-
const
|
|
2086
|
+
}, [l, m]), X(() => {
|
|
2087
|
+
const b = () => {
|
|
2088
2088
|
var _;
|
|
2089
2089
|
if (!t && r)
|
|
2090
2090
|
h(r);
|
|
2091
2091
|
else if (e) {
|
|
2092
|
-
const S = e.getBoundingClientRect(),
|
|
2093
|
-
if (
|
|
2094
|
-
let
|
|
2095
|
-
const
|
|
2092
|
+
const S = e.getBoundingClientRect(), O = (_ = p.current) == null ? void 0 : _.getBoundingClientRect(), { innerWidth: E, innerHeight: C } = window;
|
|
2093
|
+
if (O) {
|
|
2094
|
+
let F, x;
|
|
2095
|
+
const D = {
|
|
2096
2096
|
topRight: () => ({
|
|
2097
|
-
top: S.top -
|
|
2098
|
-
left: S.right -
|
|
2097
|
+
top: S.top - O.height,
|
|
2098
|
+
left: S.right - O.width
|
|
2099
2099
|
}),
|
|
2100
2100
|
topLeft: () => ({
|
|
2101
|
-
top: S.top -
|
|
2101
|
+
top: S.top - O.height,
|
|
2102
2102
|
left: S.left
|
|
2103
2103
|
}),
|
|
2104
2104
|
bottomRight: () => ({
|
|
2105
2105
|
top: S.bottom,
|
|
2106
|
-
left: S.right -
|
|
2106
|
+
left: S.right - O.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 - O.height / 2,
|
|
2114
|
+
left: S.left - O.width
|
|
2115
2115
|
}),
|
|
2116
2116
|
right: () => ({
|
|
2117
|
-
top: S.top + S.height / 2 -
|
|
2117
|
+
top: S.top + S.height / 2 - O.height / 2,
|
|
2118
2118
|
left: S.right
|
|
2119
2119
|
})
|
|
2120
2120
|
};
|
|
2121
|
-
t &&
|
|
2121
|
+
t && D[t] ? { top: F, left: x } = D[t]() : (x = S.right, F = S.bottom, S.right + O.width > E && (x = S.left - O.width), S.bottom + O.height > C && (F = S.top - O.height)), h({ top: F, left: x < 0 ? 0 : x });
|
|
2122
2122
|
}
|
|
2123
2123
|
}
|
|
2124
2124
|
};
|
|
2125
|
-
return f && (
|
|
2125
|
+
return f && (b(), window.addEventListener("resize", b)), () => window.removeEventListener("resize", b);
|
|
2126
2126
|
}, [e, f, t]);
|
|
2127
|
-
const
|
|
2127
|
+
const y = () => {
|
|
2128
2128
|
v(!0), d(m);
|
|
2129
|
-
}, j =
|
|
2130
|
-
(
|
|
2131
|
-
|
|
2129
|
+
}, j = I(
|
|
2130
|
+
(b) => {
|
|
2131
|
+
b.stopPropagation(), v(!1), d(null), s && s(!1);
|
|
2132
2132
|
},
|
|
2133
2133
|
[s, d]
|
|
2134
2134
|
);
|
|
2135
|
-
return
|
|
2136
|
-
const
|
|
2135
|
+
return X(() => {
|
|
2136
|
+
const b = (_) => {
|
|
2137
2137
|
p.current && !p.current.contains(_.target) && j(_);
|
|
2138
2138
|
};
|
|
2139
|
-
return f && document.addEventListener("mousedown",
|
|
2140
|
-
document.removeEventListener("mousedown",
|
|
2139
|
+
return f && document.addEventListener("mousedown", b), () => {
|
|
2140
|
+
document.removeEventListener("mousedown", b);
|
|
2141
2141
|
};
|
|
2142
|
-
}, [f, j]),
|
|
2143
|
-
a &&
|
|
2142
|
+
}, [f, j]), X(() => {
|
|
2143
|
+
a && y();
|
|
2144
2144
|
}, [a]), f ? Nn.createPortal(
|
|
2145
2145
|
/* @__PURE__ */ o.jsx(ps, { ref: p, $top: g.top, $left: g.left, children: /* @__PURE__ */ o.jsxs(
|
|
2146
2146
|
"div",
|
|
@@ -2153,7 +2153,7 @@ const ps = Rn.div`
|
|
|
2153
2153
|
id: i ?? "",
|
|
2154
2154
|
className: "toggle-btn",
|
|
2155
2155
|
onClick: j,
|
|
2156
|
-
children: /* @__PURE__ */ o.jsx(
|
|
2156
|
+
children: /* @__PURE__ */ o.jsx(V, { classIcon: "bi-x-lg" })
|
|
2157
2157
|
}
|
|
2158
2158
|
),
|
|
2159
2159
|
n
|
|
@@ -2174,7 +2174,7 @@ const ps = Rn.div`
|
|
|
2174
2174
|
}) => {
|
|
2175
2175
|
const c = (p) => {
|
|
2176
2176
|
p.preventDefault(), t && t(p);
|
|
2177
|
-
}, l = re(null), [d, f] =
|
|
2177
|
+
}, l = re(null), [d, f] = W(!1), v = I(
|
|
2178
2178
|
(p) => {
|
|
2179
2179
|
p.stopPropagation(), n && f(!d);
|
|
2180
2180
|
},
|
|
@@ -2188,14 +2188,14 @@ const ps = Rn.div`
|
|
|
2188
2188
|
{
|
|
2189
2189
|
classIcon: p.icon,
|
|
2190
2190
|
sizeIcon: je.LARGE,
|
|
2191
|
-
onClick: (
|
|
2192
|
-
|
|
2191
|
+
onClick: (y) => {
|
|
2192
|
+
y.stopPropagation(), h(), p.onClick && p.onClick(p);
|
|
2193
2193
|
},
|
|
2194
2194
|
title: p.label || ""
|
|
2195
2195
|
},
|
|
2196
2196
|
m
|
|
2197
2197
|
)
|
|
2198
|
-
})) : [], [n]), h =
|
|
2198
|
+
})) : [], [n]), h = I(() => {
|
|
2199
2199
|
f(!1);
|
|
2200
2200
|
}, [f]);
|
|
2201
2201
|
return /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
@@ -2215,7 +2215,7 @@ const ps = Rn.div`
|
|
|
2215
2215
|
className: "ml-2",
|
|
2216
2216
|
ref: l,
|
|
2217
2217
|
onClick: (p) => v(p),
|
|
2218
|
-
children: /* @__PURE__ */ o.jsx(
|
|
2218
|
+
children: /* @__PURE__ */ o.jsx(V, { classIcon: "bi-chevron-up" })
|
|
2219
2219
|
}
|
|
2220
2220
|
)
|
|
2221
2221
|
]
|
|
@@ -2282,23 +2282,23 @@ const ps = Rn.div`
|
|
|
2282
2282
|
positionOverlay: a,
|
|
2283
2283
|
setOpenActions: i
|
|
2284
2284
|
}) => {
|
|
2285
|
-
const s = re(null), [c, l] =
|
|
2285
|
+
const s = re(null), [c, l] = W(
|
|
2286
2286
|
a
|
|
2287
|
-
), d = re(null), [f, v] =
|
|
2288
|
-
|
|
2287
|
+
), d = re(null), [f, v] = W(t ?? !1);
|
|
2288
|
+
X(() => {
|
|
2289
2289
|
t && v(t);
|
|
2290
2290
|
}, [t]);
|
|
2291
|
-
const g =
|
|
2292
|
-
(m,
|
|
2293
|
-
e.length !== 0 && (m.preventDefault(), l("bottomRight"), i && i(
|
|
2291
|
+
const g = I(
|
|
2292
|
+
(m, y) => {
|
|
2293
|
+
e.length !== 0 && (m.preventDefault(), l("bottomRight"), i && i(y));
|
|
2294
2294
|
},
|
|
2295
2295
|
[l, i]
|
|
2296
|
-
), h =
|
|
2296
|
+
), h = I(() => {
|
|
2297
2297
|
l(void 0), v(!1), i && i(!1);
|
|
2298
|
-
}, [v, l, i]), p = Re(() => e == null ? void 0 : e.filter((m) => m.type === "menu").map((m,
|
|
2298
|
+
}, [v, l, i]), p = Re(() => e == null ? void 0 : e.filter((m) => m.type === "menu").map((m, y) => {
|
|
2299
2299
|
let j = m.label || "";
|
|
2300
2300
|
return m.setLabel && r && (j = m.setLabel(r)), {
|
|
2301
|
-
id:
|
|
2301
|
+
id: y,
|
|
2302
2302
|
icon: m.icon,
|
|
2303
2303
|
name: m.label,
|
|
2304
2304
|
children: /* @__PURE__ */ o.jsx(
|
|
@@ -2307,12 +2307,12 @@ const ps = Rn.div`
|
|
|
2307
2307
|
classIcon: m.icon,
|
|
2308
2308
|
disabled: r && m.disabled ? m.disabled(r) : !1,
|
|
2309
2309
|
sizeIcon: je.LARGE,
|
|
2310
|
-
onClick: (
|
|
2311
|
-
|
|
2310
|
+
onClick: (b) => {
|
|
2311
|
+
b.stopPropagation(), h(), m.onClick && r && m.onClick(r);
|
|
2312
2312
|
},
|
|
2313
2313
|
title: j
|
|
2314
2314
|
},
|
|
2315
|
-
|
|
2315
|
+
y
|
|
2316
2316
|
)
|
|
2317
2317
|
};
|
|
2318
2318
|
}), [e]);
|
|
@@ -2325,14 +2325,14 @@ const ps = Rn.div`
|
|
|
2325
2325
|
onClick: (m) => g(m, !f),
|
|
2326
2326
|
children: [
|
|
2327
2327
|
/* @__PURE__ */ o.jsx(
|
|
2328
|
-
|
|
2328
|
+
V,
|
|
2329
2329
|
{
|
|
2330
2330
|
size: je.MEDIUM,
|
|
2331
2331
|
classIcon: "bi-three-dots-vertical cursor-pointer"
|
|
2332
2332
|
}
|
|
2333
2333
|
),
|
|
2334
2334
|
/* @__PURE__ */ o.jsx(
|
|
2335
|
-
|
|
2335
|
+
V,
|
|
2336
2336
|
{
|
|
2337
2337
|
size: je.MEDIUM,
|
|
2338
2338
|
classIcon: "bi-three-dots cursor-pointer"
|
|
@@ -2364,13 +2364,13 @@ const ps = Rn.div`
|
|
|
2364
2364
|
positionOverlay: s,
|
|
2365
2365
|
children: c
|
|
2366
2366
|
}) => {
|
|
2367
|
-
const [l, d] =
|
|
2368
|
-
|
|
2369
|
-
}, m =
|
|
2370
|
-
(
|
|
2371
|
-
if (
|
|
2367
|
+
const [l, d] = W(!1), [f, v] = W(!1), [g, h] = W(), p = (y, j) => {
|
|
2368
|
+
y.stopPropagation(), a && a(j);
|
|
2369
|
+
}, m = I(
|
|
2370
|
+
(y, j) => {
|
|
2371
|
+
if (y.stopPropagation(), f)
|
|
2372
2372
|
return h(void 0), v(!1);
|
|
2373
|
-
|
|
2373
|
+
y.target.closest(".qte") || y.target.closest(".card-action-menu button") || y.target.closest(".card-actions") || (d(!l), n && y.button !== 2 ? n(j) : (h({ top: y.clientY, left: y.clientX }), v(!0)));
|
|
2374
2374
|
},
|
|
2375
2375
|
[
|
|
2376
2376
|
d,
|
|
@@ -2384,8 +2384,8 @@ const ps = Rn.div`
|
|
|
2384
2384
|
return /* @__PURE__ */ o.jsxs(
|
|
2385
2385
|
"div",
|
|
2386
2386
|
{
|
|
2387
|
-
onContextMenu: (
|
|
2388
|
-
onMouseDown: (
|
|
2387
|
+
onContextMenu: (y) => y.preventDefault(),
|
|
2388
|
+
onMouseDown: (y) => m(y, e),
|
|
2389
2389
|
className: `card ${r ?? ""} ${l ? "card--active" : ""} `,
|
|
2390
2390
|
children: [
|
|
2391
2391
|
c,
|
|
@@ -2403,8 +2403,8 @@ const ps = Rn.div`
|
|
|
2403
2403
|
"div",
|
|
2404
2404
|
{
|
|
2405
2405
|
className: "ml-2 cursor-pointer",
|
|
2406
|
-
onClick: (
|
|
2407
|
-
children: /* @__PURE__ */ o.jsx(
|
|
2406
|
+
onClick: (y) => p(y, e),
|
|
2407
|
+
children: /* @__PURE__ */ o.jsx(V, { classIcon: "bi-trash3" })
|
|
2408
2408
|
}
|
|
2409
2409
|
),
|
|
2410
2410
|
t && /* @__PURE__ */ o.jsx(
|
|
@@ -2433,8 +2433,8 @@ const ps = Rn.div`
|
|
|
2433
2433
|
xl: 5
|
|
2434
2434
|
}
|
|
2435
2435
|
}) => {
|
|
2436
|
-
const [a, i] =
|
|
2437
|
-
|
|
2436
|
+
const [a, i] = W(0), s = e.length, [c, l] = W(1);
|
|
2437
|
+
X(() => {
|
|
2438
2438
|
const p = () => {
|
|
2439
2439
|
const m = window.innerWidth;
|
|
2440
2440
|
if (n.xl && m >= 1200)
|
|
@@ -2448,14 +2448,14 @@ const ps = Rn.div`
|
|
|
2448
2448
|
};
|
|
2449
2449
|
return p(), window.addEventListener("resize", p), () => window.removeEventListener("resize", p);
|
|
2450
2450
|
}, [n]);
|
|
2451
|
-
const d =
|
|
2451
|
+
const d = I(
|
|
2452
2452
|
(p) => {
|
|
2453
2453
|
p.preventDefault(), i(
|
|
2454
2454
|
(m) => Math.min(m + r, s - c)
|
|
2455
2455
|
);
|
|
2456
2456
|
},
|
|
2457
2457
|
[i]
|
|
2458
|
-
), f =
|
|
2458
|
+
), f = I(
|
|
2459
2459
|
(p) => {
|
|
2460
2460
|
p.preventDefault(), i((m) => Math.max(m - r, 0));
|
|
2461
2461
|
},
|
|
@@ -2467,7 +2467,7 @@ const ps = Rn.div`
|
|
|
2467
2467
|
{
|
|
2468
2468
|
className: `carousel-control prev ${h && "disabled"}`,
|
|
2469
2469
|
onClick: f,
|
|
2470
|
-
children: /* @__PURE__ */ o.jsx(
|
|
2470
|
+
children: /* @__PURE__ */ o.jsx(V, { classIcon: "bi-chevron-left" })
|
|
2471
2471
|
}
|
|
2472
2472
|
),
|
|
2473
2473
|
/* @__PURE__ */ o.jsx("div", { className: "carousel-container", children: /* @__PURE__ */ o.jsx(
|
|
@@ -2497,7 +2497,7 @@ const ps = Rn.div`
|
|
|
2497
2497
|
{
|
|
2498
2498
|
className: `carousel-control next ${v && "disabled"}`,
|
|
2499
2499
|
onClick: d,
|
|
2500
|
-
children: /* @__PURE__ */ o.jsx(
|
|
2500
|
+
children: /* @__PURE__ */ o.jsx(V, { classIcon: "bi-chevron-right" })
|
|
2501
2501
|
}
|
|
2502
2502
|
)
|
|
2503
2503
|
] });
|
|
@@ -2513,8 +2513,8 @@ const ps = Rn.div`
|
|
|
2513
2513
|
page: n = 1,
|
|
2514
2514
|
onClick: a
|
|
2515
2515
|
}) => {
|
|
2516
|
-
const i = Re(() => e ?? 9, [e]), s = Re(() => Math.max(1, t ?? 9), [t]), [c, l] =
|
|
2517
|
-
|
|
2516
|
+
const i = Re(() => e ?? 9, [e]), s = Re(() => Math.max(1, t ?? 9), [t]), [c, l] = W(1);
|
|
2517
|
+
X(() => {
|
|
2518
2518
|
l(n);
|
|
2519
2519
|
}, [n]);
|
|
2520
2520
|
const d = Re(() => {
|
|
@@ -2522,11 +2522,11 @@ const ps = Rn.div`
|
|
|
2522
2522
|
for (let g = 0; g < s; g++) {
|
|
2523
2523
|
const h = [];
|
|
2524
2524
|
for (let p = 0; p < i; p++) {
|
|
2525
|
-
const m = p + g * i,
|
|
2525
|
+
const m = p + g * i, y = r == null ? void 0 : r.find(
|
|
2526
2526
|
(j) => j.position === m + 1
|
|
2527
2527
|
);
|
|
2528
|
-
|
|
2529
|
-
/* @__PURE__ */ o.jsx(ys, { onClick: a, cell:
|
|
2528
|
+
y ? h.push(
|
|
2529
|
+
/* @__PURE__ */ o.jsx(ys, { onClick: a, cell: y }, `${g}-${p}`)
|
|
2530
2530
|
) : h.push(
|
|
2531
2531
|
/* @__PURE__ */ o.jsx("div", { className: "cell cell--empty" }, `${g}-${p}`)
|
|
2532
2532
|
);
|
|
@@ -2561,19 +2561,19 @@ const wr = Ue(
|
|
|
2561
2561
|
autoComplete: h,
|
|
2562
2562
|
tabIndex: p = 0,
|
|
2563
2563
|
step: m,
|
|
2564
|
-
checked:
|
|
2564
|
+
checked: y,
|
|
2565
2565
|
onChange: j,
|
|
2566
|
-
onBlur:
|
|
2566
|
+
onBlur: b,
|
|
2567
2567
|
onClick: _,
|
|
2568
2568
|
handleKeyDown: S
|
|
2569
|
-
},
|
|
2570
|
-
const [E, C] =
|
|
2569
|
+
}, O) => {
|
|
2570
|
+
const [E, C] = W(!1);
|
|
2571
2571
|
return /* @__PURE__ */ o.jsxs("div", { className: `input-container ${`input-container-${r}`} `, children: [
|
|
2572
2572
|
/* @__PURE__ */ o.jsx("input", { name: `hide-${t}`, type: "text", style: { display: "none" } }),
|
|
2573
2573
|
/* @__PURE__ */ o.jsx(
|
|
2574
2574
|
"input",
|
|
2575
2575
|
{
|
|
2576
|
-
ref:
|
|
2576
|
+
ref: O,
|
|
2577
2577
|
id: e,
|
|
2578
2578
|
name: t,
|
|
2579
2579
|
inputMode: c ?? (r === "number" ? "numeric" : "text"),
|
|
@@ -2590,11 +2590,11 @@ const wr = Ue(
|
|
|
2590
2590
|
minLength: l,
|
|
2591
2591
|
maxLength: d,
|
|
2592
2592
|
onChange: j,
|
|
2593
|
-
checked:
|
|
2593
|
+
checked: y,
|
|
2594
2594
|
onKeyDown: S,
|
|
2595
|
-
onBlur:
|
|
2596
|
-
onClick: (
|
|
2597
|
-
|
|
2595
|
+
onBlur: b,
|
|
2596
|
+
onClick: (F) => {
|
|
2597
|
+
F.stopPropagation(), _ && _(F);
|
|
2598
2598
|
},
|
|
2599
2599
|
className: `input-field ${s ?? ""}`,
|
|
2600
2600
|
onInvalid: a
|
|
@@ -2605,7 +2605,7 @@ const wr = Ue(
|
|
|
2605
2605
|
{
|
|
2606
2606
|
onClick: () => C(!E),
|
|
2607
2607
|
className: "input-password-icon",
|
|
2608
|
-
children: /* @__PURE__ */ o.jsx(
|
|
2608
|
+
children: /* @__PURE__ */ o.jsx(V, { classIcon: E ? "bi-eye-slash" : "bi-eye" })
|
|
2609
2609
|
}
|
|
2610
2610
|
)
|
|
2611
2611
|
] });
|
|
@@ -2646,7 +2646,7 @@ const pa = ({ display: e, full: t, message: r }) => /* @__PURE__ */ o.jsxs(o.Fra
|
|
|
2646
2646
|
{
|
|
2647
2647
|
className: "mr-2 ",
|
|
2648
2648
|
onClick: () => e.onClick(t),
|
|
2649
|
-
children: /* @__PURE__ */ o.jsx(
|
|
2649
|
+
children: /* @__PURE__ */ o.jsx(V, { classIcon: e.classIcon ?? "" }, e.id)
|
|
2650
2650
|
},
|
|
2651
2651
|
`icon-action-${e.id}-${r}`
|
|
2652
2652
|
)
|
|
@@ -2694,13 +2694,13 @@ const pa = ({ display: e, full: t, message: r }) => /* @__PURE__ */ o.jsxs(o.Fra
|
|
|
2694
2694
|
value: v,
|
|
2695
2695
|
placeholder: g
|
|
2696
2696
|
}) => {
|
|
2697
|
-
const h = re({}), p = (
|
|
2697
|
+
const h = re({}), p = (y) => {
|
|
2698
2698
|
let j;
|
|
2699
2699
|
i ? (j = Array.from(
|
|
2700
|
-
|
|
2701
|
-
(
|
|
2702
|
-
), f && f(j)) : (j =
|
|
2703
|
-
}, m =
|
|
2700
|
+
y.target.selectedOptions,
|
|
2701
|
+
(b) => b.value
|
|
2702
|
+
), f && f(j)) : (j = y.target.value, d && d(j));
|
|
2703
|
+
}, m = I(() => {
|
|
2704
2704
|
d && d("");
|
|
2705
2705
|
}, [d]);
|
|
2706
2706
|
return /* @__PURE__ */ o.jsxs("div", { id: e, className: `select-container ${n || ""}`, children: [
|
|
@@ -2717,10 +2717,10 @@ const pa = ({ display: e, full: t, message: r }) => /* @__PURE__ */ o.jsxs(o.Fra
|
|
|
2717
2717
|
value: v ?? c ?? (i ? [] : ""),
|
|
2718
2718
|
onChange: p,
|
|
2719
2719
|
multiple: i,
|
|
2720
|
-
ref: (
|
|
2720
|
+
ref: (y) => h.current[e ?? "select"] = y,
|
|
2721
2721
|
children: [
|
|
2722
2722
|
g && !c && !i && /* @__PURE__ */ o.jsx("option", { selected: !0, disabled: !0, hidden: !0, value: "", children: g }),
|
|
2723
|
-
r.map((
|
|
2723
|
+
r.map((y, j) => /* @__PURE__ */ o.jsx("option", { value: y.value, children: y.label }, j))
|
|
2724
2724
|
]
|
|
2725
2725
|
}
|
|
2726
2726
|
),
|
|
@@ -2730,7 +2730,7 @@ const pa = ({ display: e, full: t, message: r }) => /* @__PURE__ */ o.jsxs(o.Fra
|
|
|
2730
2730
|
className: "clear-btn",
|
|
2731
2731
|
onClick: m,
|
|
2732
2732
|
"aria-label": "Réinitialiser",
|
|
2733
|
-
children: /* @__PURE__ */ o.jsx(
|
|
2733
|
+
children: /* @__PURE__ */ o.jsx(V, { classIcon: "bi-x" })
|
|
2734
2734
|
}
|
|
2735
2735
|
)
|
|
2736
2736
|
] });
|
|
@@ -2748,7 +2748,14 @@ const pa = ({ display: e, full: t, message: r }) => /* @__PURE__ */ o.jsxs(o.Fra
|
|
|
2748
2748
|
width: e.width,
|
|
2749
2749
|
...a
|
|
2750
2750
|
},
|
|
2751
|
-
children: e.
|
|
2751
|
+
children: e.type === "image" ? n ? /* @__PURE__ */ o.jsx(
|
|
2752
|
+
"img",
|
|
2753
|
+
{
|
|
2754
|
+
src: e.imageSrc ? e.imageSrc(r) : "",
|
|
2755
|
+
alt: e.imageAlt ? e.imageAlt(r) : "",
|
|
2756
|
+
style: e.imageStyle
|
|
2757
|
+
}
|
|
2758
|
+
) : /* @__PURE__ */ o.jsx(V, { classIcon: "bi-image" }) : e.editable ? e.type === "select" ? /* @__PURE__ */ o.jsx(
|
|
2752
2759
|
fo,
|
|
2753
2760
|
{
|
|
2754
2761
|
options: e.options ?? [],
|
|
@@ -2790,55 +2797,58 @@ function Bl(e) {
|
|
|
2790
2797
|
emptyMessage: h,
|
|
2791
2798
|
hasMore: p,
|
|
2792
2799
|
onSelectionChange: m,
|
|
2793
|
-
hideToggleAll:
|
|
2800
|
+
hideToggleAll: y = !1,
|
|
2794
2801
|
limitSelect: j = void 0,
|
|
2795
|
-
getRowId:
|
|
2796
|
-
} = e, _ = re(null), [S,
|
|
2802
|
+
getRowId: b
|
|
2803
|
+
} = e, _ = re(null), [S, O] = W(
|
|
2797
2804
|
/* @__PURE__ */ new Set()
|
|
2798
|
-
), E =
|
|
2805
|
+
), E = I((D) => D instanceof HTMLElement ? !!D.closest(
|
|
2806
|
+
"input,button,a,select,textarea,label,[role='button'],[role='checkbox'],[data-stop-row-click='true']"
|
|
2807
|
+
) : !1, []), C = I(() => {
|
|
2799
2808
|
if (S.size === s.length)
|
|
2800
|
-
|
|
2809
|
+
O(/* @__PURE__ */ new Set()), m == null || m([]);
|
|
2801
2810
|
else {
|
|
2802
|
-
let
|
|
2803
|
-
(
|
|
2811
|
+
let D = s.map(
|
|
2812
|
+
(R) => b ? b(R) : R.id ?? R
|
|
2804
2813
|
);
|
|
2805
|
-
j &&
|
|
2806
|
-
const
|
|
2807
|
-
|
|
2814
|
+
j && D.length > j && (D = D.slice(0, j));
|
|
2815
|
+
const M = new Set(D);
|
|
2816
|
+
O(M), m == null || m(
|
|
2808
2817
|
s.filter(
|
|
2809
|
-
(
|
|
2818
|
+
(R) => M.has(b ? b(R) : R.id ?? R)
|
|
2810
2819
|
)
|
|
2811
2820
|
);
|
|
2812
2821
|
}
|
|
2813
|
-
}, [s, m, j,
|
|
2814
|
-
(
|
|
2815
|
-
|
|
2822
|
+
}, [s, m, j, b, S.size]), F = I(
|
|
2823
|
+
(D, M) => {
|
|
2824
|
+
var A, G;
|
|
2825
|
+
D.stopPropagation(), !(E(D.target) || typeof window < "u" && (G = (A = window.getSelection) == null ? void 0 : A.call(window)) != null && G.toString().trim()) && f && (f == null || f(M));
|
|
2816
2826
|
},
|
|
2817
|
-
[f]
|
|
2818
|
-
),
|
|
2819
|
-
(
|
|
2820
|
-
|
|
2821
|
-
const
|
|
2822
|
-
if (
|
|
2823
|
-
|
|
2827
|
+
[E, f]
|
|
2828
|
+
), x = I(
|
|
2829
|
+
(D, M) => {
|
|
2830
|
+
D.stopPropagation();
|
|
2831
|
+
const R = b ? b(M) : M.id ?? M, A = new Set(S);
|
|
2832
|
+
if (A.has(R))
|
|
2833
|
+
A.delete(R);
|
|
2824
2834
|
else {
|
|
2825
|
-
if (j &&
|
|
2835
|
+
if (j && A.size >= j)
|
|
2826
2836
|
return;
|
|
2827
|
-
|
|
2837
|
+
A.add(R);
|
|
2828
2838
|
}
|
|
2829
|
-
|
|
2830
|
-
const
|
|
2831
|
-
(
|
|
2839
|
+
O(A);
|
|
2840
|
+
const G = s.filter(
|
|
2841
|
+
(ie) => A.has(b ? b(ie) : ie.id ?? ie)
|
|
2832
2842
|
);
|
|
2833
|
-
m == null || m(
|
|
2843
|
+
m == null || m(G);
|
|
2834
2844
|
},
|
|
2835
|
-
[s,
|
|
2845
|
+
[s, b, j, m, S]
|
|
2836
2846
|
);
|
|
2837
|
-
return
|
|
2847
|
+
return X(() => {
|
|
2838
2848
|
if (!g || !p) return;
|
|
2839
|
-
const
|
|
2840
|
-
(
|
|
2841
|
-
|
|
2849
|
+
const D = new IntersectionObserver(
|
|
2850
|
+
(M) => {
|
|
2851
|
+
M[0].isIntersecting && g();
|
|
2842
2852
|
},
|
|
2843
2853
|
{
|
|
2844
2854
|
root: null,
|
|
@@ -2846,8 +2856,8 @@ function Bl(e) {
|
|
|
2846
2856
|
threshold: 1
|
|
2847
2857
|
}
|
|
2848
2858
|
);
|
|
2849
|
-
return _.current &&
|
|
2850
|
-
_.current &&
|
|
2859
|
+
return _.current && D.observe(_.current), () => {
|
|
2860
|
+
_.current && D.unobserve(_.current);
|
|
2851
2861
|
};
|
|
2852
2862
|
}, [g, p]), /* @__PURE__ */ o.jsxs("div", { className: "data-table-container", children: [
|
|
2853
2863
|
r && /* @__PURE__ */ o.jsx("h2", { className: "mb-2", children: r }),
|
|
@@ -2857,7 +2867,7 @@ function Bl(e) {
|
|
|
2857
2867
|
m && /* @__PURE__ */ o.jsx(
|
|
2858
2868
|
"th",
|
|
2859
2869
|
{
|
|
2860
|
-
className: `select-cell ${
|
|
2870
|
+
className: `select-cell ${y ? "hidden" : ""}`,
|
|
2861
2871
|
style: { width: "20px", textAlign: "center" },
|
|
2862
2872
|
children: /* @__PURE__ */ o.jsx(
|
|
2863
2873
|
wr,
|
|
@@ -2866,19 +2876,19 @@ function Bl(e) {
|
|
|
2866
2876
|
name: `select-th-${t}`,
|
|
2867
2877
|
type: Be.CHECKBOX,
|
|
2868
2878
|
checked: s.length > 0 && S.size === s.length,
|
|
2869
|
-
onChange:
|
|
2879
|
+
onChange: C
|
|
2870
2880
|
}
|
|
2871
2881
|
)
|
|
2872
2882
|
}
|
|
2873
2883
|
),
|
|
2874
|
-
l.map((
|
|
2884
|
+
l.map((D, M) => /* @__PURE__ */ o.jsx(
|
|
2875
2885
|
xs,
|
|
2876
2886
|
{
|
|
2877
|
-
column:
|
|
2878
|
-
idx:
|
|
2887
|
+
column: D,
|
|
2888
|
+
idx: M,
|
|
2879
2889
|
onColumnClick: v
|
|
2880
2890
|
},
|
|
2881
|
-
|
|
2891
|
+
M
|
|
2882
2892
|
)),
|
|
2883
2893
|
c.length > 0 && /* @__PURE__ */ o.jsx(
|
|
2884
2894
|
"th",
|
|
@@ -2900,33 +2910,49 @@ function Bl(e) {
|
|
|
2900
2910
|
children: /* @__PURE__ */ o.jsx("div", { className: "mt-3", children: /* @__PURE__ */ o.jsx(pa, { display: d }) })
|
|
2901
2911
|
}
|
|
2902
2912
|
) }) : /* @__PURE__ */ o.jsx(o.Fragment, {}),
|
|
2903
|
-
!d && s.map((
|
|
2904
|
-
|
|
2905
|
-
|
|
2906
|
-
|
|
2907
|
-
|
|
2908
|
-
|
|
2909
|
-
|
|
2910
|
-
|
|
2911
|
-
|
|
2912
|
-
|
|
2913
|
-
|
|
2914
|
-
|
|
2913
|
+
!d && s.map((D, M) => /* @__PURE__ */ o.jsxs(
|
|
2914
|
+
"tr",
|
|
2915
|
+
{
|
|
2916
|
+
className: M % 2 === 0 ? "even" : "odd",
|
|
2917
|
+
onClick: (R) => F == null ? void 0 : F(R, D),
|
|
2918
|
+
children: [
|
|
2919
|
+
m && /* @__PURE__ */ o.jsx(
|
|
2920
|
+
"td",
|
|
2921
|
+
{
|
|
2922
|
+
className: "select-cell",
|
|
2923
|
+
style: { textAlign: "center" },
|
|
2924
|
+
onClick: (R) => R.stopPropagation(),
|
|
2925
|
+
children: /* @__PURE__ */ o.jsx(
|
|
2926
|
+
wr,
|
|
2927
|
+
{
|
|
2928
|
+
id: `select-row-${M}`,
|
|
2929
|
+
name: `select-row-${M}`,
|
|
2930
|
+
type: Be.CHECKBOX,
|
|
2931
|
+
disabled: j !== void 0 && S.size >= j && !S.has(
|
|
2932
|
+
b ? b(D) : D.id ?? D
|
|
2933
|
+
),
|
|
2934
|
+
checked: S.has(
|
|
2935
|
+
b ? b(D) : D.id ?? D
|
|
2936
|
+
),
|
|
2937
|
+
onChange: (R) => x(R, D)
|
|
2938
|
+
}
|
|
2939
|
+
)
|
|
2940
|
+
}
|
|
2915
2941
|
),
|
|
2916
|
-
|
|
2917
|
-
|
|
2918
|
-
|
|
2919
|
-
|
|
2920
|
-
|
|
2921
|
-
|
|
2922
|
-
|
|
2923
|
-
|
|
2924
|
-
|
|
2925
|
-
|
|
2926
|
-
|
|
2927
|
-
|
|
2928
|
-
|
|
2929
|
-
|
|
2942
|
+
l.map((R, A) => /* @__PURE__ */ o.jsx(js, { column: R, idx: A, row: D }, A)),
|
|
2943
|
+
c.length > 0 && /* @__PURE__ */ o.jsx("td", { align: "right", onClick: (R) => R.stopPropagation(), children: /* @__PURE__ */ o.jsx("div", { className: "d-flex align-items-center justify-content-end", children: c.map((R, A) => /* @__PURE__ */ o.jsx(
|
|
2944
|
+
bs,
|
|
2945
|
+
{
|
|
2946
|
+
action: R,
|
|
2947
|
+
row: D,
|
|
2948
|
+
index: A
|
|
2949
|
+
},
|
|
2950
|
+
A
|
|
2951
|
+
)) }) })
|
|
2952
|
+
]
|
|
2953
|
+
},
|
|
2954
|
+
M
|
|
2955
|
+
)),
|
|
2930
2956
|
!d && s.length === 0 && /* @__PURE__ */ o.jsx(
|
|
2931
2957
|
ws,
|
|
2932
2958
|
{
|
|
@@ -2986,20 +3012,20 @@ var Ps = Cs, un = { exports: {} }, Ts = () => {
|
|
|
2986
3012
|
function g(m) {
|
|
2987
3013
|
try {
|
|
2988
3014
|
p(d.next(m));
|
|
2989
|
-
} catch (
|
|
2990
|
-
v(
|
|
3015
|
+
} catch (y) {
|
|
3016
|
+
v(y);
|
|
2991
3017
|
}
|
|
2992
3018
|
}
|
|
2993
3019
|
function h(m) {
|
|
2994
3020
|
try {
|
|
2995
3021
|
p(d.throw(m));
|
|
2996
|
-
} catch (
|
|
2997
|
-
v(
|
|
3022
|
+
} catch (y) {
|
|
3023
|
+
v(y);
|
|
2998
3024
|
}
|
|
2999
3025
|
}
|
|
3000
3026
|
function p(m) {
|
|
3001
|
-
m.done ? f(m.value) : new l(function(
|
|
3002
|
-
|
|
3027
|
+
m.done ? f(m.value) : new l(function(y) {
|
|
3028
|
+
y(m.value);
|
|
3003
3029
|
}).then(g, h);
|
|
3004
3030
|
}
|
|
3005
3031
|
p((d = d.apply(s, c || [])).next());
|
|
@@ -3016,14 +3042,14 @@ var Ps = Cs, un = { exports: {} }, Ts = () => {
|
|
|
3016
3042
|
return;
|
|
3017
3043
|
const p = (m) => r(this, void 0, void 0, function* () {
|
|
3018
3044
|
f = a.default();
|
|
3019
|
-
const
|
|
3020
|
-
if (
|
|
3045
|
+
const y = m[1][c] - Date.now();
|
|
3046
|
+
if (y <= 0) {
|
|
3021
3047
|
s.delete(m[0]), f.resolve();
|
|
3022
3048
|
return;
|
|
3023
3049
|
}
|
|
3024
3050
|
return l = m[0], d = setTimeout(() => {
|
|
3025
3051
|
s.delete(m[0]), f && f.resolve();
|
|
3026
|
-
},
|
|
3052
|
+
}, y), typeof d.unref == "function" && d.unref(), f.promise;
|
|
3027
3053
|
});
|
|
3028
3054
|
try {
|
|
3029
3055
|
for (const m of s)
|
|
@@ -3036,8 +3062,8 @@ var Ps = Cs, un = { exports: {} }, Ts = () => {
|
|
|
3036
3062
|
}, h = s.set.bind(s);
|
|
3037
3063
|
return s.set = (p, m) => {
|
|
3038
3064
|
s.has(p) && s.delete(p);
|
|
3039
|
-
const
|
|
3040
|
-
return l && l === p && g(), v(),
|
|
3065
|
+
const y = h(p, m);
|
|
3066
|
+
return l && l === p && g(), v(), y;
|
|
3041
3067
|
}, v(), s;
|
|
3042
3068
|
}
|
|
3043
3069
|
t.default = i, e.exports = i, e.exports.default = i;
|
|
@@ -3207,7 +3233,7 @@ var qs = Hs(Gt, 1), Wn = Bt(qs), Xs = Ut(Gt, Wn);
|
|
|
3207
3233
|
function No(e) {
|
|
3208
3234
|
return Tr(zt(e));
|
|
3209
3235
|
}
|
|
3210
|
-
var
|
|
3236
|
+
var fe = {
|
|
3211
3237
|
GREGORY: "gregory",
|
|
3212
3238
|
HEBREW: "hebrew",
|
|
3213
3239
|
ISLAMIC: "islamic",
|
|
@@ -3284,15 +3310,15 @@ var Zs = { day: "numeric" }, ec = {
|
|
|
3284
3310
|
year: "numeric"
|
|
3285
3311
|
}, nc = { weekday: "short" }, ac = { weekday: "long" }, oc = { year: "numeric" }, ic = ot(Zs), sc = ot(ec), cc = ot(tc), Eo = ot(rc), lc = ot(nc), uc = ot(ac), Ir = ot(oc), dc = Vn[0], fc = Vn[5], ya = Vn[6];
|
|
3286
3312
|
function Vt(e, t) {
|
|
3287
|
-
t === void 0 && (t =
|
|
3313
|
+
t === void 0 && (t = fe.ISO_8601);
|
|
3288
3314
|
var r = e.getDay();
|
|
3289
3315
|
switch (t) {
|
|
3290
|
-
case
|
|
3316
|
+
case fe.ISO_8601:
|
|
3291
3317
|
return (r + 6) % 7;
|
|
3292
|
-
case
|
|
3318
|
+
case fe.ISLAMIC:
|
|
3293
3319
|
return (r + 1) % 7;
|
|
3294
|
-
case
|
|
3295
|
-
case
|
|
3320
|
+
case fe.HEBREW:
|
|
3321
|
+
case fe.GREGORY:
|
|
3296
3322
|
return r;
|
|
3297
3323
|
default:
|
|
3298
3324
|
throw new Error("Unsupported calendar type.");
|
|
@@ -3307,15 +3333,15 @@ function vc(e) {
|
|
|
3307
3333
|
return Q(t);
|
|
3308
3334
|
}
|
|
3309
3335
|
function fn(e, t) {
|
|
3310
|
-
t === void 0 && (t =
|
|
3336
|
+
t === void 0 && (t = fe.ISO_8601);
|
|
3311
3337
|
var r = Q(e), n = ze(e), a = e.getDate() - Vt(e, t);
|
|
3312
3338
|
return new Date(r, n, a);
|
|
3313
3339
|
}
|
|
3314
3340
|
function mc(e, t) {
|
|
3315
|
-
t === void 0 && (t =
|
|
3316
|
-
var r = t ===
|
|
3341
|
+
t === void 0 && (t = fe.ISO_8601);
|
|
3342
|
+
var r = t === fe.GREGORY ? fe.GREGORY : fe.ISO_8601, n = fn(e, t), a = Q(e) + 1, i, s;
|
|
3317
3343
|
do
|
|
3318
|
-
i = new Date(a, 0, r ===
|
|
3344
|
+
i = new Date(a, 0, r === fe.ISO_8601 ? 4 : 1), s = fn(i, t), a -= 1;
|
|
3319
3345
|
while (e < s);
|
|
3320
3346
|
return Math.round((n.getTime() - s.getTime()) / (864e5 * 7)) + 1;
|
|
3321
3347
|
}
|
|
@@ -3466,14 +3492,14 @@ function Sc(e) {
|
|
|
3466
3492
|
return e.getDay() === (/* @__PURE__ */ new Date()).getDay();
|
|
3467
3493
|
}
|
|
3468
3494
|
function To(e, t) {
|
|
3469
|
-
t === void 0 && (t =
|
|
3495
|
+
t === void 0 && (t = fe.ISO_8601);
|
|
3470
3496
|
var r = e.getDay();
|
|
3471
3497
|
switch (t) {
|
|
3472
|
-
case
|
|
3473
|
-
case
|
|
3498
|
+
case fe.ISLAMIC:
|
|
3499
|
+
case fe.HEBREW:
|
|
3474
3500
|
return r === fc || r === ya;
|
|
3475
|
-
case
|
|
3476
|
-
case
|
|
3501
|
+
case fe.ISO_8601:
|
|
3502
|
+
case fe.GREGORY:
|
|
3477
3503
|
return r === ya || r === dc;
|
|
3478
3504
|
default:
|
|
3479
3505
|
throw new Error("Unsupported calendar type.");
|
|
@@ -3481,30 +3507,30 @@ function To(e, t) {
|
|
|
3481
3507
|
}
|
|
3482
3508
|
var Pe = "react-calendar__navigation";
|
|
3483
3509
|
function Dc(e) {
|
|
3484
|
-
var t = e.activeStartDate, r = e.drillUp, n = e.formatMonthYear, a = n === void 0 ? Eo : n, i = e.formatYear, s = i === void 0 ? Ir : i, c = e.locale, l = e.maxDate, d = e.minDate, f = e.navigationAriaLabel, v = f === void 0 ? "" : f, g = e.navigationAriaLive, h = e.navigationLabel, p = e.next2AriaLabel, m = p === void 0 ? "" : p,
|
|
3510
|
+
var t = e.activeStartDate, r = e.drillUp, n = e.formatMonthYear, a = n === void 0 ? Eo : n, i = e.formatYear, s = i === void 0 ? Ir : i, c = e.locale, l = e.maxDate, d = e.minDate, f = e.navigationAriaLabel, v = f === void 0 ? "" : f, g = e.navigationAriaLive, h = e.navigationLabel, p = e.next2AriaLabel, m = p === void 0 ? "" : p, y = e.next2Label, j = y === void 0 ? "»" : y, b = e.nextAriaLabel, _ = b === void 0 ? "" : b, S = e.nextLabel, O = S === void 0 ? "›" : S, E = e.prev2AriaLabel, C = E === void 0 ? "" : E, F = e.prev2Label, x = F === void 0 ? "«" : F, D = e.prevAriaLabel, M = D === void 0 ? "" : D, R = e.prevLabel, A = R === void 0 ? "‹" : R, G = e.setActiveStartDate, ie = e.showDoubleView, ne = e.view, xe = e.views, Ie = xe.indexOf(ne) > 0, ee = ne !== "century", K = pc(ne, t), le = ee ? gc(ne, t) : void 0, Z = ko(ne, t), Se = ee ? yc(ne, t) : void 0, Ee = function() {
|
|
3485
3511
|
if (K.getFullYear() < 0)
|
|
3486
3512
|
return !0;
|
|
3487
3513
|
var te = bc(ne, t);
|
|
3488
3514
|
return d && d >= te;
|
|
3489
3515
|
}(), ke = ee && function() {
|
|
3490
|
-
if (
|
|
3516
|
+
if (le.getFullYear() < 0)
|
|
3491
3517
|
return !0;
|
|
3492
3518
|
var te = xc(ne, t);
|
|
3493
3519
|
return d && d >= te;
|
|
3494
3520
|
}(), me = l && l < Z, pe = ee && l && l < Se;
|
|
3495
|
-
function
|
|
3496
|
-
|
|
3521
|
+
function ue() {
|
|
3522
|
+
G(K, "prev");
|
|
3497
3523
|
}
|
|
3498
3524
|
function ae() {
|
|
3499
|
-
|
|
3525
|
+
G(le, "prev2");
|
|
3500
3526
|
}
|
|
3501
3527
|
function De() {
|
|
3502
|
-
|
|
3528
|
+
G(Z, "next");
|
|
3503
3529
|
}
|
|
3504
3530
|
function _e() {
|
|
3505
|
-
|
|
3531
|
+
G(Se, "next2");
|
|
3506
3532
|
}
|
|
3507
|
-
function
|
|
3533
|
+
function he(te) {
|
|
3508
3534
|
var Ce = function() {
|
|
3509
3535
|
switch (ne) {
|
|
3510
3536
|
case "century":
|
|
@@ -3528,9 +3554,9 @@ function Dc(e) {
|
|
|
3528
3554
|
}
|
|
3529
3555
|
function Ot() {
|
|
3530
3556
|
var te = "".concat(Pe, "__label");
|
|
3531
|
-
return o.jsxs("button", { "aria-label": v, "aria-live": g, className: te, disabled: !Ie, onClick: r, style: { flexGrow: 1 }, type: "button", children: [o.jsx("span", { className: "".concat(te, "__labelText ").concat(te, "__labelText--from"), children:
|
|
3557
|
+
return o.jsxs("button", { "aria-label": v, "aria-live": g, className: te, disabled: !Ie, onClick: r, style: { flexGrow: 1 }, type: "button", children: [o.jsx("span", { className: "".concat(te, "__labelText ").concat(te, "__labelText--from"), children: he(t) }), ie ? o.jsxs(o.Fragment, { children: [o.jsx("span", { className: "".concat(te, "__divider"), children: " – " }), o.jsx("span", { className: "".concat(te, "__labelText ").concat(te, "__labelText--to"), children: he(Z) })] }) : null] });
|
|
3532
3558
|
}
|
|
3533
|
-
return o.jsxs("div", { className: Pe, children: [
|
|
3559
|
+
return o.jsxs("div", { className: Pe, children: [x !== null && ee ? o.jsx("button", { "aria-label": C, className: "".concat(Pe, "__arrow ").concat(Pe, "__prev2-button"), disabled: ke, onClick: ae, type: "button", children: x }) : null, A !== null && o.jsx("button", { "aria-label": M, className: "".concat(Pe, "__arrow ").concat(Pe, "__prev-button"), disabled: Ee, onClick: ue, type: "button", children: A }), Ot(), O !== null && o.jsx("button", { "aria-label": _, className: "".concat(Pe, "__arrow ").concat(Pe, "__next-button"), disabled: me, onClick: De, type: "button", children: O }), j !== null && ee ? o.jsx("button", { "aria-label": m, className: "".concat(Pe, "__arrow ").concat(Pe, "__next2-button"), disabled: pe, onClick: _e, type: "button", children: j }) : null] });
|
|
3534
3560
|
}
|
|
3535
3561
|
var ft = function() {
|
|
3536
3562
|
return ft = Object.assign || function(e) {
|
|
@@ -3625,8 +3651,8 @@ function _c(e) {
|
|
|
3625
3651
|
return i;
|
|
3626
3652
|
}
|
|
3627
3653
|
function $r(e) {
|
|
3628
|
-
for (var t = e.className, r = e.count, n = r === void 0 ? 3 : r, a = e.dateTransform, i = e.dateType, s = e.end, c = e.hover, l = e.offset, d = e.renderTile, f = e.start, v = e.step, g = v === void 0 ? 1 : v, h = e.value, p = e.valueType, m = [],
|
|
3629
|
-
var j = a(
|
|
3654
|
+
for (var t = e.className, r = e.count, n = r === void 0 ? 3 : r, a = e.dateTransform, i = e.dateType, s = e.end, c = e.hover, l = e.offset, d = e.renderTile, f = e.start, v = e.step, g = v === void 0 ? 1 : v, h = e.value, p = e.valueType, m = [], y = f; y <= s; y += g) {
|
|
3655
|
+
var j = a(y);
|
|
3630
3656
|
m.push(d({
|
|
3631
3657
|
classes: _c({
|
|
3632
3658
|
date: j,
|
|
@@ -3641,14 +3667,14 @@ function $r(e) {
|
|
|
3641
3667
|
return o.jsx(Yn, { className: t, count: n, offset: l, wrap: !0, children: m });
|
|
3642
3668
|
}
|
|
3643
3669
|
function Mr(e) {
|
|
3644
|
-
var t = e.activeStartDate, r = e.children, n = e.classes, a = e.date, i = e.formatAbbr, s = e.locale, c = e.maxDate, l = e.maxDateTransform, d = e.minDate, f = e.minDateTransform, v = e.onClick, g = e.onMouseOver, h = e.style, p = e.tileClassName, m = e.tileContent,
|
|
3670
|
+
var t = e.activeStartDate, r = e.children, n = e.classes, a = e.date, i = e.formatAbbr, s = e.locale, c = e.maxDate, l = e.maxDateTransform, d = e.minDate, f = e.minDateTransform, v = e.onClick, g = e.onMouseOver, h = e.style, p = e.tileClassName, m = e.tileContent, y = e.tileDisabled, j = e.view, b = Re(function() {
|
|
3645
3671
|
var S = { activeStartDate: t, date: a, view: j };
|
|
3646
3672
|
return typeof p == "function" ? p(S) : p;
|
|
3647
3673
|
}, [t, a, p, j]), _ = Re(function() {
|
|
3648
3674
|
var S = { activeStartDate: t, date: a, view: j };
|
|
3649
3675
|
return typeof m == "function" ? m(S) : m;
|
|
3650
3676
|
}, [t, a, m, j]);
|
|
3651
|
-
return o.jsxs("button", { className: Pr(n,
|
|
3677
|
+
return o.jsxs("button", { className: Pr(n, b), disabled: d && f(d) > a || c && l(c) < a || (y == null ? void 0 : y({ activeStartDate: t, date: a, view: j })), onClick: v ? function(S) {
|
|
3652
3678
|
return v(a, S);
|
|
3653
3679
|
} : void 0, onFocus: g ? function() {
|
|
3654
3680
|
return g(a);
|
|
@@ -3877,21 +3903,21 @@ function zc(e) {
|
|
|
3877
3903
|
var t = e.activeStartDate, r = e.calendarType, n = e.hover, a = e.showFixedNumberOfWeeks, i = e.showNeighboringMonth, s = e.value, c = e.valueType, l = ka(e, ["activeStartDate", "calendarType", "hover", "showFixedNumberOfWeeks", "showNeighboringMonth", "value", "valueType"]), d = Q(t), f = ze(t), v = a || i, g = Vt(t, r), h = v ? 0 : g, p = (v ? -g : 0) + 1, m = function() {
|
|
3878
3904
|
if (a)
|
|
3879
3905
|
return p + 6 * 7 - 1;
|
|
3880
|
-
var
|
|
3906
|
+
var y = No(t);
|
|
3881
3907
|
if (i) {
|
|
3882
3908
|
var j = /* @__PURE__ */ new Date();
|
|
3883
|
-
j.setFullYear(d, f,
|
|
3884
|
-
var
|
|
3885
|
-
return
|
|
3909
|
+
j.setFullYear(d, f, y), j.setHours(0, 0, 0, 0);
|
|
3910
|
+
var b = 7 - Vt(j, r) - 1;
|
|
3911
|
+
return y + b;
|
|
3886
3912
|
}
|
|
3887
|
-
return
|
|
3913
|
+
return y;
|
|
3888
3914
|
}();
|
|
3889
|
-
return o.jsx($r, { className: "react-calendar__month-view__days", count: 7, dateTransform: function(
|
|
3915
|
+
return o.jsx($r, { className: "react-calendar__month-view__days", count: 7, dateTransform: function(y) {
|
|
3890
3916
|
var j = /* @__PURE__ */ new Date();
|
|
3891
|
-
return j.setFullYear(d, f,
|
|
3892
|
-
}, dateType: "day", hover: n, end: m, renderTile: function(
|
|
3893
|
-
var j =
|
|
3894
|
-
return o.jsx(Uc, Sn({}, l,
|
|
3917
|
+
return j.setFullYear(d, f, y), Gt(j);
|
|
3918
|
+
}, dateType: "day", hover: n, end: m, renderTile: function(y) {
|
|
3919
|
+
var j = y.date, b = ka(y, ["date"]);
|
|
3920
|
+
return o.jsx(Uc, Sn({}, l, b, { activeStartDate: t, calendarType: r, currentMonthIndex: f, date: j }), j.getTime());
|
|
3895
3921
|
}, offset: h, start: p, value: s, valueType: c });
|
|
3896
3922
|
}
|
|
3897
3923
|
var Ao = "react-calendar__month-view__weekdays", Qr = "".concat(Ao, "__weekday");
|
|
@@ -3974,7 +4000,7 @@ function Kc(e) {
|
|
|
3974
4000
|
if (i.includes(e))
|
|
3975
4001
|
return a;
|
|
3976
4002
|
}
|
|
3977
|
-
return
|
|
4003
|
+
return fe.ISO_8601;
|
|
3978
4004
|
}
|
|
3979
4005
|
function Jc(e) {
|
|
3980
4006
|
var t = e.activeStartDate, r = e.locale, n = e.onMouseLeave, a = e.showFixedNumberOfWeeks, i = e.calendarType, s = i === void 0 ? Kc(r) : i, c = e.formatShortWeekday, l = e.formatWeekday, d = e.onClickWeekNumber, f = e.showWeekNumbers, v = Xc(e, ["calendarType", "formatShortWeekday", "formatWeekday", "onClickWeekNumber", "showWeekNumbers"]);
|
|
@@ -4086,27 +4112,27 @@ function ur(e, t) {
|
|
|
4086
4112
|
return e instanceof Date && t instanceof Date && e.getTime() === t.getTime();
|
|
4087
4113
|
}
|
|
4088
4114
|
var al = Ue(function(t, r) {
|
|
4089
|
-
var n = t.activeStartDate, a = t.allowPartialRange, i = t.calendarType, s = t.className, c = t.defaultActiveStartDate, l = t.defaultValue, d = t.defaultView, f = t.formatDay, v = t.formatLongDate, g = t.formatMonth, h = t.formatMonthYear, p = t.formatShortWeekday, m = t.formatWeekday,
|
|
4115
|
+
var n = t.activeStartDate, a = t.allowPartialRange, i = t.calendarType, s = t.className, c = t.defaultActiveStartDate, l = t.defaultValue, d = t.defaultView, f = t.formatDay, v = t.formatLongDate, g = t.formatMonth, h = t.formatMonthYear, p = t.formatShortWeekday, m = t.formatWeekday, y = t.formatYear, j = t.goToRangeStartOnSelect, b = j === void 0 ? !0 : j, _ = t.inputRef, S = t.locale, O = t.maxDate, E = O === void 0 ? Zc : O, C = t.maxDetail, F = C === void 0 ? "month" : C, x = t.minDate, D = x === void 0 ? Bn : x, M = t.minDetail, R = M === void 0 ? "century" : M, A = t.navigationAriaLabel, G = t.navigationAriaLive, ie = t.navigationLabel, ne = t.next2AriaLabel, xe = t.next2Label, Ie = t.nextAriaLabel, ee = t.nextLabel, K = t.onActiveStartDateChange, le = t.onChange, Z = t.onClickDay, Se = t.onClickDecade, Ee = t.onClickMonth, ke = t.onClickWeekNumber, me = t.onClickYear, pe = t.onDrillDown, ue = t.onDrillUp, ae = t.onViewChange, De = t.prev2AriaLabel, _e = t.prev2Label, he = t.prevAriaLabel, Ot = t.prevLabel, te = t.returnValue, Ce = te === void 0 ? "start" : te, se = 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 = W(c), Yr = Jt[0], st = Jt[1], Qt = W(null), Br = Qt[0], Zt = Qt[1], er = W(Array.isArray(l) ? l.map(function(k) {
|
|
4090
4116
|
return k !== null ? Ft(k) : null;
|
|
4091
|
-
}) : l != null ? Ft(l) : null), Xe = er[0], tr = er[1], $e =
|
|
4117
|
+
}) : l != null ? Ft(l) : null), Xe = er[0], tr = er[1], $e = W(d), _t = $e[0], ct = $e[1], de = n || Yr || nl({
|
|
4092
4118
|
activeStartDate: n,
|
|
4093
4119
|
defaultActiveStartDate: c,
|
|
4094
4120
|
defaultValue: l,
|
|
4095
4121
|
defaultView: d,
|
|
4096
4122
|
maxDate: E,
|
|
4097
|
-
maxDetail:
|
|
4098
|
-
minDate:
|
|
4099
|
-
minDetail:
|
|
4123
|
+
maxDetail: F,
|
|
4124
|
+
minDate: D,
|
|
4125
|
+
minDetail: R,
|
|
4100
4126
|
value: it,
|
|
4101
4127
|
view: kt
|
|
4102
|
-
}),
|
|
4128
|
+
}), ve = function() {
|
|
4103
4129
|
var k = function() {
|
|
4104
|
-
return
|
|
4130
|
+
return se && Zr(Xe) ? Xe : it !== void 0 ? it : Xe;
|
|
4105
4131
|
}();
|
|
4106
4132
|
return k ? Array.isArray(k) ? k.map(function(P) {
|
|
4107
4133
|
return P !== null ? Ft(P) : null;
|
|
4108
4134
|
}) : k !== null ? Ft(k) : null : null;
|
|
4109
|
-
}(), Ke = $o(
|
|
4135
|
+
}(), Ke = $o(F), H = Un(kt || _t, R, F), we = Io(R, F), rr = se ? Br : null, Ct = we.indexOf(H) < we.length - 1, nr = we.indexOf(H) > 0, Pt = I(function(k) {
|
|
4110
4136
|
var P = function() {
|
|
4111
4137
|
switch (Ce) {
|
|
4112
4138
|
case "start":
|
|
@@ -4121,22 +4147,22 @@ var al = Ue(function(t, r) {
|
|
|
4121
4147
|
}();
|
|
4122
4148
|
return P({
|
|
4123
4149
|
maxDate: E,
|
|
4124
|
-
maxDetail:
|
|
4125
|
-
minDate:
|
|
4150
|
+
maxDetail: F,
|
|
4151
|
+
minDate: D,
|
|
4126
4152
|
value: k
|
|
4127
4153
|
});
|
|
4128
|
-
}, [E,
|
|
4154
|
+
}, [E, F, D, Ce]), lt = I(function(k, P) {
|
|
4129
4155
|
st(k);
|
|
4130
4156
|
var T = {
|
|
4131
4157
|
action: P,
|
|
4132
4158
|
activeStartDate: k,
|
|
4133
|
-
value:
|
|
4134
|
-
view:
|
|
4159
|
+
value: ve,
|
|
4160
|
+
view: H
|
|
4135
4161
|
};
|
|
4136
|
-
K && !ur(
|
|
4137
|
-
}, [
|
|
4162
|
+
K && !ur(de, k) && K(T);
|
|
4163
|
+
}, [de, K, ve, H]), ut = I(function(k, P) {
|
|
4138
4164
|
var T = function() {
|
|
4139
|
-
switch (
|
|
4165
|
+
switch (H) {
|
|
4140
4166
|
case "century":
|
|
4141
4167
|
return Se;
|
|
4142
4168
|
case "decade":
|
|
@@ -4146,123 +4172,123 @@ var al = Ue(function(t, r) {
|
|
|
4146
4172
|
case "month":
|
|
4147
4173
|
return Z;
|
|
4148
4174
|
default:
|
|
4149
|
-
throw new Error("Invalid view: ".concat(
|
|
4175
|
+
throw new Error("Invalid view: ".concat(H, "."));
|
|
4150
4176
|
}
|
|
4151
4177
|
}();
|
|
4152
4178
|
T && T(k, P);
|
|
4153
|
-
}, [Z, Se, Ee, me,
|
|
4179
|
+
}, [Z, Se, Ee, me, H]), Tt = I(function(k, P) {
|
|
4154
4180
|
if (Ct) {
|
|
4155
4181
|
ut(k, P);
|
|
4156
|
-
var T = we[we.indexOf(
|
|
4182
|
+
var T = we[we.indexOf(H) + 1];
|
|
4157
4183
|
if (!T)
|
|
4158
4184
|
throw new Error("Attempted to drill down from the lowest view.");
|
|
4159
4185
|
st(k), ct(T);
|
|
4160
4186
|
var z = {
|
|
4161
4187
|
action: "drillDown",
|
|
4162
4188
|
activeStartDate: k,
|
|
4163
|
-
value:
|
|
4189
|
+
value: ve,
|
|
4164
4190
|
view: T
|
|
4165
4191
|
};
|
|
4166
|
-
K && !ur(
|
|
4192
|
+
K && !ur(de, k) && K(z), ae && H !== T && ae(z), pe && pe(z);
|
|
4167
4193
|
}
|
|
4168
4194
|
}, [
|
|
4169
|
-
|
|
4195
|
+
de,
|
|
4170
4196
|
Ct,
|
|
4171
4197
|
K,
|
|
4172
4198
|
ut,
|
|
4173
4199
|
pe,
|
|
4174
4200
|
ae,
|
|
4175
|
-
|
|
4176
|
-
|
|
4201
|
+
ve,
|
|
4202
|
+
H,
|
|
4177
4203
|
we
|
|
4178
|
-
]), Rt =
|
|
4204
|
+
]), Rt = I(function() {
|
|
4179
4205
|
if (nr) {
|
|
4180
|
-
var k = we[we.indexOf(
|
|
4206
|
+
var k = we[we.indexOf(H) - 1];
|
|
4181
4207
|
if (!k)
|
|
4182
4208
|
throw new Error("Attempted to drill up from the highest view.");
|
|
4183
|
-
var P = rt(k,
|
|
4209
|
+
var P = rt(k, de);
|
|
4184
4210
|
st(P), ct(k);
|
|
4185
4211
|
var T = {
|
|
4186
4212
|
action: "drillUp",
|
|
4187
4213
|
activeStartDate: P,
|
|
4188
|
-
value:
|
|
4214
|
+
value: ve,
|
|
4189
4215
|
view: k
|
|
4190
4216
|
};
|
|
4191
|
-
K && !ur(
|
|
4217
|
+
K && !ur(de, P) && K(T), ae && H !== k && ae(T), ue && ue(T);
|
|
4192
4218
|
}
|
|
4193
4219
|
}, [
|
|
4194
|
-
|
|
4220
|
+
de,
|
|
4195
4221
|
nr,
|
|
4196
4222
|
K,
|
|
4197
|
-
|
|
4223
|
+
ue,
|
|
4198
4224
|
ae,
|
|
4199
|
-
|
|
4200
|
-
|
|
4225
|
+
ve,
|
|
4226
|
+
H,
|
|
4201
4227
|
we
|
|
4202
|
-
]), At =
|
|
4203
|
-
var T =
|
|
4228
|
+
]), At = I(function(k, P) {
|
|
4229
|
+
var T = ve;
|
|
4204
4230
|
ut(k, P);
|
|
4205
|
-
var z =
|
|
4206
|
-
if (
|
|
4231
|
+
var z = se && !Zr(T), Y;
|
|
4232
|
+
if (se)
|
|
4207
4233
|
if (z)
|
|
4208
|
-
|
|
4234
|
+
Y = rt(Ke, k);
|
|
4209
4235
|
else {
|
|
4210
4236
|
if (!T)
|
|
4211
4237
|
throw new Error("previousValue is required");
|
|
4212
4238
|
if (Array.isArray(T))
|
|
4213
4239
|
throw new Error("previousValue must not be an array");
|
|
4214
|
-
|
|
4240
|
+
Y = wc(Ke, T, k);
|
|
4215
4241
|
}
|
|
4216
4242
|
else
|
|
4217
|
-
|
|
4243
|
+
Y = Pt(k);
|
|
4218
4244
|
var J = (
|
|
4219
4245
|
// Range selection turned off
|
|
4220
|
-
!
|
|
4246
|
+
!se || // Range selection turned on, first value
|
|
4221
4247
|
z || // Range selection turned on, second value, goToRangeStartOnSelect toggled on
|
|
4222
|
-
|
|
4248
|
+
b ? Fo({
|
|
4223
4249
|
maxDate: E,
|
|
4224
|
-
maxDetail:
|
|
4225
|
-
minDate:
|
|
4226
|
-
minDetail:
|
|
4227
|
-
value:
|
|
4228
|
-
view:
|
|
4250
|
+
maxDetail: F,
|
|
4251
|
+
minDate: D,
|
|
4252
|
+
minDetail: R,
|
|
4253
|
+
value: Y,
|
|
4254
|
+
view: H
|
|
4229
4255
|
}) : null
|
|
4230
4256
|
);
|
|
4231
|
-
P.persist(), st(J), tr(
|
|
4257
|
+
P.persist(), st(J), tr(Y);
|
|
4232
4258
|
var ge = {
|
|
4233
4259
|
action: "onChange",
|
|
4234
4260
|
activeStartDate: J,
|
|
4235
|
-
value:
|
|
4236
|
-
view:
|
|
4261
|
+
value: Y,
|
|
4262
|
+
view: H
|
|
4237
4263
|
};
|
|
4238
|
-
if (K && !ur(
|
|
4239
|
-
if (
|
|
4240
|
-
var We = Zr(
|
|
4264
|
+
if (K && !ur(de, J) && K(ge), le)
|
|
4265
|
+
if (se) {
|
|
4266
|
+
var We = Zr(Y);
|
|
4241
4267
|
if (!We)
|
|
4242
|
-
|
|
4268
|
+
le(Y || null, P);
|
|
4243
4269
|
else if (a) {
|
|
4244
|
-
if (Array.isArray(
|
|
4270
|
+
if (Array.isArray(Y))
|
|
4245
4271
|
throw new Error("value must not be an array");
|
|
4246
|
-
|
|
4272
|
+
le([Y || null, null], P);
|
|
4247
4273
|
}
|
|
4248
4274
|
} else
|
|
4249
|
-
|
|
4275
|
+
le(Y || null, P);
|
|
4250
4276
|
}, [
|
|
4251
|
-
|
|
4277
|
+
de,
|
|
4252
4278
|
a,
|
|
4253
4279
|
Pt,
|
|
4254
|
-
|
|
4280
|
+
b,
|
|
4255
4281
|
E,
|
|
4256
|
-
|
|
4257
|
-
|
|
4258
|
-
|
|
4282
|
+
F,
|
|
4283
|
+
D,
|
|
4284
|
+
R,
|
|
4259
4285
|
K,
|
|
4260
|
-
|
|
4286
|
+
le,
|
|
4261
4287
|
ut,
|
|
4262
|
-
|
|
4263
|
-
|
|
4288
|
+
se,
|
|
4289
|
+
ve,
|
|
4264
4290
|
Ke,
|
|
4265
|
-
|
|
4291
|
+
H
|
|
4266
4292
|
]);
|
|
4267
4293
|
function u(k) {
|
|
4268
4294
|
Zt(k);
|
|
@@ -4272,48 +4298,48 @@ var al = Ue(function(t, r) {
|
|
|
4272
4298
|
}
|
|
4273
4299
|
Dr(r, function() {
|
|
4274
4300
|
return {
|
|
4275
|
-
activeStartDate:
|
|
4301
|
+
activeStartDate: de,
|
|
4276
4302
|
drillDown: Tt,
|
|
4277
4303
|
drillUp: Rt,
|
|
4278
4304
|
onChange: At,
|
|
4279
4305
|
setActiveStartDate: lt,
|
|
4280
|
-
value:
|
|
4281
|
-
view:
|
|
4306
|
+
value: ve,
|
|
4307
|
+
view: H
|
|
4282
4308
|
};
|
|
4283
|
-
}, [
|
|
4309
|
+
}, [de, Tt, Rt, At, lt, ve, H]);
|
|
4284
4310
|
function N(k) {
|
|
4285
|
-
var P = k ? ko(
|
|
4311
|
+
var P = k ? ko(H, de) : rt(H, de), T = Ct ? Tt : At, z = {
|
|
4286
4312
|
activeStartDate: P,
|
|
4287
4313
|
hover: rr,
|
|
4288
4314
|
locale: S,
|
|
4289
4315
|
maxDate: E,
|
|
4290
|
-
minDate:
|
|
4316
|
+
minDate: D,
|
|
4291
4317
|
onClick: T,
|
|
4292
|
-
onMouseOver:
|
|
4318
|
+
onMouseOver: se ? u : void 0,
|
|
4293
4319
|
tileClassName: Xt,
|
|
4294
4320
|
tileContent: Kt,
|
|
4295
4321
|
tileDisabled: Vr,
|
|
4296
|
-
value:
|
|
4322
|
+
value: ve,
|
|
4297
4323
|
valueType: Ke
|
|
4298
4324
|
};
|
|
4299
|
-
switch (
|
|
4325
|
+
switch (H) {
|
|
4300
4326
|
case "century":
|
|
4301
|
-
return o.jsx(Rc, ht({ formatYear:
|
|
4327
|
+
return o.jsx(Rc, ht({ formatYear: y, showNeighboringCentury: Fr }, z));
|
|
4302
4328
|
case "decade":
|
|
4303
|
-
return o.jsx(Mc, ht({ formatYear:
|
|
4329
|
+
return o.jsx(Mc, ht({ formatYear: y, showNeighboringDecade: Et }, z));
|
|
4304
4330
|
case "year":
|
|
4305
4331
|
return o.jsx(Yc, ht({ formatMonth: g, formatMonthYear: h }, z));
|
|
4306
4332
|
case "month":
|
|
4307
|
-
return o.jsx(Jc, ht({ calendarType: i, formatDay: f, formatLongDate: v, formatShortWeekday: p, formatWeekday: m, onClickWeekNumber: ke, onMouseLeave:
|
|
4333
|
+
return o.jsx(Jc, ht({ calendarType: i, formatDay: f, formatLongDate: v, formatShortWeekday: p, formatWeekday: m, onClickWeekNumber: ke, onMouseLeave: se ? w : void 0, showFixedNumberOfWeeks: typeof Nt < "u" ? Nt : He, showNeighboringMonth: Wr, showWeekNumbers: qt }, z));
|
|
4308
4334
|
default:
|
|
4309
|
-
throw new Error("Invalid view: ".concat(
|
|
4335
|
+
throw new Error("Invalid view: ".concat(H, "."));
|
|
4310
4336
|
}
|
|
4311
4337
|
}
|
|
4312
|
-
function
|
|
4313
|
-
return Lr ? o.jsx(Dc, { activeStartDate:
|
|
4338
|
+
function $() {
|
|
4339
|
+
return Lr ? o.jsx(Dc, { activeStartDate: de, drillUp: Rt, formatMonthYear: h, formatYear: y, locale: S, maxDate: E, minDate: D, navigationAriaLabel: A, navigationAriaLive: G, navigationLabel: ie, next2AriaLabel: ne, next2Label: xe, nextAriaLabel: Ie, nextLabel: ee, prev2AriaLabel: De, prev2Label: _e, prevAriaLabel: he, prevLabel: Ot, setActiveStartDate: lt, showDoubleView: He, view: H, views: we }) : null;
|
|
4314
4340
|
}
|
|
4315
|
-
var B = Array.isArray(
|
|
4316
|
-
return o.jsxs("div", { className: Pr(lr,
|
|
4341
|
+
var B = Array.isArray(ve) ? ve : [ve];
|
|
4342
|
+
return o.jsxs("div", { className: Pr(lr, se && B.length === 1 && "".concat(lr, "--selectRange"), He && "".concat(lr, "--doubleView"), s), ref: _, children: [$(), o.jsxs("div", { className: "".concat(lr, "__viewContainer"), onBlur: se ? w : void 0, onMouseLeave: se ? w : void 0, children: [N(), He ? N(!0) : null] })] });
|
|
4317
4343
|
});
|
|
4318
4344
|
const Ul = ({
|
|
4319
4345
|
value: e,
|
|
@@ -4321,18 +4347,18 @@ const Ul = ({
|
|
|
4321
4347
|
maxDate: r,
|
|
4322
4348
|
children: n
|
|
4323
4349
|
}) => {
|
|
4324
|
-
const [a, i] =
|
|
4350
|
+
const [a, i] = W(e ?? /* @__PURE__ */ new Date()), [s, c] = W(!1), l = re(null), d = I(
|
|
4325
4351
|
(m) => {
|
|
4326
4352
|
i(m), t && t(m), c(!1);
|
|
4327
4353
|
},
|
|
4328
4354
|
[t]
|
|
4329
|
-
), f = () => c(!s), v =
|
|
4355
|
+
), f = () => c(!s), v = I((m) => {
|
|
4330
4356
|
l.current && !l.current.contains(m.target) && c(!1);
|
|
4331
4357
|
}, []);
|
|
4332
|
-
|
|
4358
|
+
X(() => (s ? document.addEventListener("mousedown", v) : document.removeEventListener("mousedown", v), () => {
|
|
4333
4359
|
document.removeEventListener("mousedown", v);
|
|
4334
4360
|
}), [s, v]);
|
|
4335
|
-
const [g, h] =
|
|
4361
|
+
const [g, h] = W(), p = ({
|
|
4336
4362
|
activeStartDate: m
|
|
4337
4363
|
}) => {
|
|
4338
4364
|
h(m);
|
|
@@ -4340,7 +4366,7 @@ const Ul = ({
|
|
|
4340
4366
|
return /* @__PURE__ */ o.jsx("div", { children: /* @__PURE__ */ o.jsxs("div", { className: "calendar", ref: l, children: [
|
|
4341
4367
|
n && /* @__PURE__ */ o.jsx("div", { onClick: f, children: n }),
|
|
4342
4368
|
!n && /* @__PURE__ */ o.jsx("button", { className: "calendar-button", onClick: f, children: /* @__PURE__ */ o.jsx(
|
|
4343
|
-
|
|
4369
|
+
V,
|
|
4344
4370
|
{
|
|
4345
4371
|
classIcon: " bi-calendar4-event",
|
|
4346
4372
|
size: je.EXTRA_LARGE
|
|
@@ -4353,7 +4379,7 @@ const Ul = ({
|
|
|
4353
4379
|
onClick: () => c(!1),
|
|
4354
4380
|
className: "calendar-popup-close",
|
|
4355
4381
|
children: /* @__PURE__ */ o.jsx(
|
|
4356
|
-
|
|
4382
|
+
V,
|
|
4357
4383
|
{
|
|
4358
4384
|
classIcon: "bi-x-lg close-icon",
|
|
4359
4385
|
size: je.EXTRA_SMALL
|
|
@@ -4368,8 +4394,8 @@ const Ul = ({
|
|
|
4368
4394
|
maxDate: r ?? /* @__PURE__ */ new Date(),
|
|
4369
4395
|
onChange: d,
|
|
4370
4396
|
value: a,
|
|
4371
|
-
tileClassName: ({ date: m, view:
|
|
4372
|
-
if (
|
|
4397
|
+
tileClassName: ({ date: m, view: y }) => {
|
|
4398
|
+
if (y === "month" && g) {
|
|
4373
4399
|
const j = g;
|
|
4374
4400
|
return m.getMonth() !== (j == null ? void 0 : j.getMonth()) ? "out-of-month" : null;
|
|
4375
4401
|
}
|
|
@@ -4386,11 +4412,11 @@ const Ul = ({
|
|
|
4386
4412
|
showArrow: n = !0,
|
|
4387
4413
|
onChange: a
|
|
4388
4414
|
}) => {
|
|
4389
|
-
const [i, s] =
|
|
4390
|
-
|
|
4415
|
+
const [i, s] = W(!1);
|
|
4416
|
+
X(() => {
|
|
4391
4417
|
t && e && e.id === t.id ? i || s(!0) : s(!1);
|
|
4392
4418
|
}, [e, s, t]);
|
|
4393
|
-
const c =
|
|
4419
|
+
const c = I(
|
|
4394
4420
|
(l) => {
|
|
4395
4421
|
l.stopPropagation(), a && a(t);
|
|
4396
4422
|
},
|
|
@@ -4403,8 +4429,8 @@ const Ul = ({
|
|
|
4403
4429
|
className: `expand ${i ? "expand--active" : ""} ${r ?? ""}`,
|
|
4404
4430
|
children: [
|
|
4405
4431
|
/* @__PURE__ */ o.jsx("div", { className: "expand-header", children: /* @__PURE__ */ o.jsx("div", { className: "expand-header-content", children: /* @__PURE__ */ o.jsxs("div", { className: "expand-header-content-default", children: [
|
|
4406
|
-
i && n && /* @__PURE__ */ o.jsx(
|
|
4407
|
-
!i && n && /* @__PURE__ */ o.jsx(
|
|
4432
|
+
i && n && /* @__PURE__ */ o.jsx(V, { classIcon: "bi bi-chevron-down mr-2" }),
|
|
4433
|
+
!i && n && /* @__PURE__ */ o.jsx(V, { classIcon: "bi bi-chevron-right mr-2" }),
|
|
4408
4434
|
/* @__PURE__ */ o.jsx("span", { className: "flex-1 expand-header-title-left", children: t.title }),
|
|
4409
4435
|
t.description && /* @__PURE__ */ o.jsx("span", { className: "expand-header-title-right", children: t.description })
|
|
4410
4436
|
] }) }) }),
|
|
@@ -4417,13 +4443,13 @@ const Ul = ({
|
|
|
4417
4443
|
}
|
|
4418
4444
|
);
|
|
4419
4445
|
}, zl = (e) => {
|
|
4420
|
-
const [t, r] =
|
|
4446
|
+
const [t, r] = W(), n = I(
|
|
4421
4447
|
(a) => {
|
|
4422
4448
|
e.onChange && e.onChange(a), r(a);
|
|
4423
4449
|
},
|
|
4424
4450
|
[r, e.onChange]
|
|
4425
4451
|
);
|
|
4426
|
-
return
|
|
4452
|
+
return X(() => {
|
|
4427
4453
|
r(e.currentItem);
|
|
4428
4454
|
}, [e.currentItem, r, document.activeElement]), /* @__PURE__ */ o.jsx("div", { className: `expands ${e.className || ""}`, children: e.items.map((a) => /* @__PURE__ */ o.jsx(
|
|
4429
4455
|
ol,
|
|
@@ -4441,7 +4467,7 @@ const Ul = ({
|
|
|
4441
4467
|
currentFil: r,
|
|
4442
4468
|
title: n
|
|
4443
4469
|
}) => {
|
|
4444
|
-
const a =
|
|
4470
|
+
const a = I(
|
|
4445
4471
|
(i, s) => {
|
|
4446
4472
|
s != null && s.url || i.preventDefault(), t && t(s);
|
|
4447
4473
|
},
|
|
@@ -4485,11 +4511,11 @@ const Ul = ({
|
|
|
4485
4511
|
rows: d,
|
|
4486
4512
|
required: f = !1
|
|
4487
4513
|
}) => {
|
|
4488
|
-
const [v, g] =
|
|
4489
|
-
|
|
4514
|
+
const [v, g] = W(r);
|
|
4515
|
+
X(() => {
|
|
4490
4516
|
g(r);
|
|
4491
4517
|
}, [r]);
|
|
4492
|
-
const h =
|
|
4518
|
+
const h = I(
|
|
4493
4519
|
(p) => {
|
|
4494
4520
|
const m = p.target.value;
|
|
4495
4521
|
g(m), s && s(m, e);
|
|
@@ -4525,71 +4551,71 @@ const Ul = ({
|
|
|
4525
4551
|
disabledSubmit: l = !1,
|
|
4526
4552
|
className: d
|
|
4527
4553
|
}, f) => {
|
|
4528
|
-
const [v, g] =
|
|
4529
|
-
const
|
|
4530
|
-
return e.forEach((
|
|
4531
|
-
|
|
4532
|
-
}),
|
|
4533
|
-
}), m = re({}),
|
|
4534
|
-
(
|
|
4535
|
-
const { name:
|
|
4536
|
-
|
|
4537
|
-
const xe = { ...ne, [
|
|
4554
|
+
const [v, g] = W(l), [h, p] = W(() => {
|
|
4555
|
+
const x = {};
|
|
4556
|
+
return e.forEach((D) => {
|
|
4557
|
+
x[D.name] = D.value ?? "";
|
|
4558
|
+
}), x;
|
|
4559
|
+
}), m = re({}), y = I(
|
|
4560
|
+
(x, D) => {
|
|
4561
|
+
const { name: M, type: R, checked: A, value: G } = x.target, ie = R === "checkbox" ? A : G;
|
|
4562
|
+
D.onChange && D.onChange(ie, M), p((ne) => {
|
|
4563
|
+
const xe = { ...ne, [M]: ie };
|
|
4538
4564
|
return s && s(xe), xe;
|
|
4539
4565
|
});
|
|
4540
4566
|
},
|
|
4541
4567
|
[s]
|
|
4542
|
-
), j =
|
|
4543
|
-
(
|
|
4544
|
-
|
|
4545
|
-
const
|
|
4546
|
-
return s && s(
|
|
4568
|
+
), j = I(
|
|
4569
|
+
(x, D, M) => {
|
|
4570
|
+
M.onChange && M.onChange(D, x), p((R) => {
|
|
4571
|
+
const A = { ...R, [x]: D };
|
|
4572
|
+
return s && s(A), A;
|
|
4547
4573
|
});
|
|
4548
4574
|
},
|
|
4549
4575
|
[s]
|
|
4550
|
-
),
|
|
4551
|
-
(
|
|
4552
|
-
|
|
4553
|
-
const
|
|
4554
|
-
return s && s(
|
|
4576
|
+
), b = I(
|
|
4577
|
+
(x, D, M) => {
|
|
4578
|
+
M.onChange && M.onChange(x, D), p((R) => {
|
|
4579
|
+
const A = { ...R, [D]: x };
|
|
4580
|
+
return s && s(A), A;
|
|
4555
4581
|
});
|
|
4556
4582
|
},
|
|
4557
4583
|
[s]
|
|
4558
|
-
), _ =
|
|
4559
|
-
(
|
|
4560
|
-
|
|
4584
|
+
), _ = I(
|
|
4585
|
+
(x) => {
|
|
4586
|
+
x.preventDefault(), r && r(h);
|
|
4561
4587
|
},
|
|
4562
4588
|
[r, h]
|
|
4563
4589
|
), S = () => {
|
|
4564
4590
|
p(() => {
|
|
4565
|
-
const
|
|
4566
|
-
return e.forEach((
|
|
4567
|
-
|
|
4568
|
-
}),
|
|
4591
|
+
const x = {};
|
|
4592
|
+
return e.forEach((D) => {
|
|
4593
|
+
x[D.name] = D.value ?? "";
|
|
4594
|
+
}), x;
|
|
4569
4595
|
});
|
|
4570
|
-
},
|
|
4571
|
-
p((
|
|
4572
|
-
...
|
|
4573
|
-
[
|
|
4596
|
+
}, O = I((x) => {
|
|
4597
|
+
p((D) => ({
|
|
4598
|
+
...D,
|
|
4599
|
+
[x]: ""
|
|
4574
4600
|
}));
|
|
4575
4601
|
}, []), E = () => {
|
|
4576
|
-
const
|
|
4577
|
-
|
|
4578
|
-
var
|
|
4579
|
-
(
|
|
4602
|
+
const x = e.find((D) => D.focus);
|
|
4603
|
+
x && m.current[x.name] && setTimeout(() => {
|
|
4604
|
+
var D;
|
|
4605
|
+
(D = m.current[x.name]) == null || D.select();
|
|
4580
4606
|
}, 500);
|
|
4581
|
-
}, C = () => h,
|
|
4582
|
-
p((
|
|
4583
|
-
...
|
|
4584
|
-
...
|
|
4607
|
+
}, C = () => h, F = (x) => {
|
|
4608
|
+
p((D) => ({
|
|
4609
|
+
...D,
|
|
4610
|
+
...x
|
|
4585
4611
|
}));
|
|
4586
4612
|
};
|
|
4587
4613
|
return Dr(f, () => ({
|
|
4588
4614
|
resetForm: S,
|
|
4589
|
-
clearInput:
|
|
4615
|
+
clearInput: O,
|
|
4590
4616
|
focusInitialElement: E,
|
|
4591
4617
|
getValues: C,
|
|
4592
|
-
updateFormValue:
|
|
4618
|
+
updateFormValue: F,
|
|
4593
4619
|
setBtnDisabledSubmit: g
|
|
4594
4620
|
})), /* @__PURE__ */ o.jsxs(
|
|
4595
4621
|
"form",
|
|
@@ -4599,66 +4625,66 @@ const Ul = ({
|
|
|
4599
4625
|
className: d ?? "",
|
|
4600
4626
|
children: [
|
|
4601
4627
|
/* @__PURE__ */ o.jsxs("div", { className: "form-content", children: [
|
|
4602
|
-
e.map((
|
|
4603
|
-
const
|
|
4628
|
+
e.map((x, D) => {
|
|
4629
|
+
const M = x.onRequired ? x.onRequired(x.value) : x.required ?? !1, R = x.onDisabled ? x.onDisabled(x.value) : x.disabled ?? !1;
|
|
4604
4630
|
return /* @__PURE__ */ o.jsxs(
|
|
4605
4631
|
"div",
|
|
4606
4632
|
{
|
|
4607
|
-
className: `d-flex flex-column ${
|
|
4633
|
+
className: `d-flex flex-column ${x.className ?? ""} form-group form-group-${x.type}`,
|
|
4608
4634
|
children: [
|
|
4609
|
-
|
|
4610
|
-
|
|
4611
|
-
|
|
4635
|
+
x.label && /* @__PURE__ */ o.jsx("label", { children: x.label }),
|
|
4636
|
+
x.icon && /* @__PURE__ */ o.jsx(V, { classIcon: x.icon }),
|
|
4637
|
+
x.type === "select" ? /* @__PURE__ */ o.jsx(
|
|
4612
4638
|
fo,
|
|
4613
4639
|
{
|
|
4614
|
-
id:
|
|
4640
|
+
id: x.id ?? x.name,
|
|
4615
4641
|
label: void 0,
|
|
4616
|
-
name:
|
|
4617
|
-
options:
|
|
4618
|
-
disabled:
|
|
4619
|
-
multiple:
|
|
4620
|
-
value: h[
|
|
4621
|
-
required:
|
|
4622
|
-
defaultValue:
|
|
4623
|
-
placeholder:
|
|
4624
|
-
onChangeMultiple: (
|
|
4625
|
-
onChange: (
|
|
4642
|
+
name: x.name,
|
|
4643
|
+
options: x.options ?? [],
|
|
4644
|
+
disabled: R,
|
|
4645
|
+
multiple: x.multiple,
|
|
4646
|
+
value: h[x.name],
|
|
4647
|
+
required: M,
|
|
4648
|
+
defaultValue: x.value,
|
|
4649
|
+
placeholder: x.placeholder,
|
|
4650
|
+
onChangeMultiple: (A) => b(A, x.name, x),
|
|
4651
|
+
onChange: (A) => b(A, x.name, x)
|
|
4626
4652
|
}
|
|
4627
|
-
) :
|
|
4653
|
+
) : x.type === "textarea" ? /* @__PURE__ */ o.jsx(
|
|
4628
4654
|
il,
|
|
4629
4655
|
{
|
|
4630
|
-
id:
|
|
4631
|
-
name:
|
|
4656
|
+
id: x.id ?? x.name,
|
|
4657
|
+
name: x.name,
|
|
4632
4658
|
className: "textarea-input",
|
|
4633
|
-
placeholder:
|
|
4634
|
-
disabled:
|
|
4635
|
-
required:
|
|
4636
|
-
value: h[
|
|
4637
|
-
onChange: (
|
|
4659
|
+
placeholder: x.placeholder ?? "",
|
|
4660
|
+
disabled: R,
|
|
4661
|
+
required: M,
|
|
4662
|
+
value: h[x.name],
|
|
4663
|
+
onChange: (A, G) => j(G, A, x)
|
|
4638
4664
|
}
|
|
4639
4665
|
) : /* @__PURE__ */ o.jsx(
|
|
4640
4666
|
wr,
|
|
4641
4667
|
{
|
|
4642
|
-
id:
|
|
4643
|
-
ref: (
|
|
4644
|
-
name:
|
|
4645
|
-
type:
|
|
4646
|
-
placeholder:
|
|
4647
|
-
autoComplete:
|
|
4668
|
+
id: x.id ?? x.name,
|
|
4669
|
+
ref: (A) => m.current[x.name] = A,
|
|
4670
|
+
name: x.name,
|
|
4671
|
+
type: x.type,
|
|
4672
|
+
placeholder: x.placeholder ?? "",
|
|
4673
|
+
autoComplete: x.autoComplete,
|
|
4648
4674
|
tabIndex: 0,
|
|
4649
|
-
disabled:
|
|
4650
|
-
autoFocus:
|
|
4651
|
-
required:
|
|
4652
|
-
step:
|
|
4653
|
-
value: h[
|
|
4654
|
-
checked:
|
|
4655
|
-
onChange: (
|
|
4656
|
-
onInvalid:
|
|
4675
|
+
disabled: R,
|
|
4676
|
+
autoFocus: x.focus ?? !1,
|
|
4677
|
+
required: M,
|
|
4678
|
+
step: x.step ?? "0.01",
|
|
4679
|
+
value: h[x.name],
|
|
4680
|
+
checked: x.type === "checkbox" ? !!h[x.name] : void 0,
|
|
4681
|
+
onChange: (A) => y(A, x),
|
|
4682
|
+
onInvalid: x.onInvalid ? x.onInvalid : void 0
|
|
4657
4683
|
}
|
|
4658
4684
|
)
|
|
4659
4685
|
]
|
|
4660
4686
|
},
|
|
4661
|
-
|
|
4687
|
+
D
|
|
4662
4688
|
);
|
|
4663
4689
|
}),
|
|
4664
4690
|
a
|
|
@@ -4693,28 +4719,28 @@ const Ul = ({
|
|
|
4693
4719
|
onChange: h,
|
|
4694
4720
|
onBlur: p,
|
|
4695
4721
|
onClick: m,
|
|
4696
|
-
onKeyDown:
|
|
4722
|
+
onKeyDown: y,
|
|
4697
4723
|
onFocus: j
|
|
4698
|
-
},
|
|
4699
|
-
const _ =
|
|
4700
|
-
(
|
|
4701
|
-
let E =
|
|
4702
|
-
!/^-?\d*[.,]?\d*$/.test(E) && E !== "" || l && E.length > l || h == null || h(
|
|
4724
|
+
}, b) => {
|
|
4725
|
+
const _ = I(
|
|
4726
|
+
(O) => {
|
|
4727
|
+
let E = O.target.value.replace(",", ".");
|
|
4728
|
+
!/^-?\d*[.,]?\d*$/.test(E) && E !== "" || l && E.length > l || h == null || h(O, E);
|
|
4703
4729
|
},
|
|
4704
4730
|
[h, l]
|
|
4705
|
-
), S = (
|
|
4706
|
-
if (
|
|
4707
|
-
|
|
4708
|
-
) ||
|
|
4709
|
-
|
|
4731
|
+
), S = (O) => {
|
|
4732
|
+
if (y && y(O), !(/[0-9]|Backspace|Delete|ArrowLeft|ArrowRight|Tab|Enter|Home|End/.test(
|
|
4733
|
+
O.key
|
|
4734
|
+
) || O.key === "." || O.key === "," || O.key === "-")) {
|
|
4735
|
+
O.preventDefault();
|
|
4710
4736
|
return;
|
|
4711
4737
|
}
|
|
4712
|
-
|
|
4738
|
+
O.key === "-" && ((O.target.selectionStart ?? 0) !== 0 || r.includes("-")) && O.preventDefault();
|
|
4713
4739
|
};
|
|
4714
4740
|
return /* @__PURE__ */ o.jsx("div", { className: "input-container input-container-number", children: /* @__PURE__ */ o.jsx(
|
|
4715
4741
|
"input",
|
|
4716
4742
|
{
|
|
4717
|
-
ref:
|
|
4743
|
+
ref: b,
|
|
4718
4744
|
id: e,
|
|
4719
4745
|
name: t,
|
|
4720
4746
|
type: Be.TEXT,
|
|
@@ -4730,12 +4756,12 @@ const Ul = ({
|
|
|
4730
4756
|
spellCheck: "false",
|
|
4731
4757
|
className: `input-field ${a ?? ""}`,
|
|
4732
4758
|
onChange: _,
|
|
4733
|
-
onWheel: (
|
|
4759
|
+
onWheel: (O) => O.currentTarget.blur(),
|
|
4734
4760
|
onKeyDown: S,
|
|
4735
4761
|
onFocus: j,
|
|
4736
4762
|
onBlur: p,
|
|
4737
|
-
onClick: (
|
|
4738
|
-
|
|
4763
|
+
onClick: (O) => {
|
|
4764
|
+
O.stopPropagation(), m == null || m(O);
|
|
4739
4765
|
}
|
|
4740
4766
|
}
|
|
4741
4767
|
) });
|
|
@@ -4751,7 +4777,7 @@ const Hl = Ue(
|
|
|
4751
4777
|
onChange: a,
|
|
4752
4778
|
...i
|
|
4753
4779
|
}, s) => {
|
|
4754
|
-
const c =
|
|
4780
|
+
const c = I(() => {
|
|
4755
4781
|
if (a) {
|
|
4756
4782
|
let l = e.replace(",", ".");
|
|
4757
4783
|
a(parseFloat(l || "0").toFixed(2));
|
|
@@ -4806,14 +4832,14 @@ const Hl = Ue(
|
|
|
4806
4832
|
showBackNavigation: s,
|
|
4807
4833
|
onClickBackNavigation: c
|
|
4808
4834
|
}) => {
|
|
4809
|
-
const l = re(null), [d, f] =
|
|
4835
|
+
const l = re(null), [d, f] = W(!1), v = I(() => {
|
|
4810
4836
|
f(!d);
|
|
4811
4837
|
}, [d, f]);
|
|
4812
4838
|
return /* @__PURE__ */ o.jsxs("div", { className: `header ${a ? "header--fixed" : ""}`, children: [
|
|
4813
4839
|
/* @__PURE__ */ o.jsxs("div", { className: "flex-1 d-flex align-items-center", children: [
|
|
4814
|
-
/* @__PURE__ */ o.jsx("span", { onClick: r, children: /* @__PURE__ */ o.jsx(
|
|
4840
|
+
/* @__PURE__ */ o.jsx("span", { onClick: r, children: /* @__PURE__ */ o.jsx(V, { size: je.MEDIUM, classIcon: "bi-list" }) }),
|
|
4815
4841
|
s && /* @__PURE__ */ o.jsx("span", { className: "chevron-back", onClick: c, children: /* @__PURE__ */ o.jsx(
|
|
4816
|
-
|
|
4842
|
+
V,
|
|
4817
4843
|
{
|
|
4818
4844
|
size: je.EXTRA_SMALL,
|
|
4819
4845
|
classIcon: "bi-caret-left-fill"
|
|
@@ -4830,7 +4856,7 @@ const Hl = Ue(
|
|
|
4830
4856
|
] }),
|
|
4831
4857
|
/* @__PURE__ */ o.jsxs("div", { className: "d-flex align-items-center", children: [
|
|
4832
4858
|
e,
|
|
4833
|
-
/* @__PURE__ */ o.jsx("div", { ref: l, onClick: v, children: /* @__PURE__ */ o.jsx(
|
|
4859
|
+
/* @__PURE__ */ o.jsx("div", { ref: l, onClick: v, children: /* @__PURE__ */ o.jsx(V, { size: je.MEDIUM, classIcon: "bi-person-circle" }) }),
|
|
4834
4860
|
d && l.current && /* @__PURE__ */ o.jsx(
|
|
4835
4861
|
An,
|
|
4836
4862
|
{
|
|
@@ -4859,7 +4885,7 @@ const Hl = Ue(
|
|
|
4859
4885
|
}
|
|
4860
4886
|
}, [t]);
|
|
4861
4887
|
return /* @__PURE__ */ o.jsxs("div", { className: `message message--${t} ${r ?? ""}`, children: [
|
|
4862
|
-
/* @__PURE__ */ o.jsx(
|
|
4888
|
+
/* @__PURE__ */ o.jsx(V, { classIcon: n }),
|
|
4863
4889
|
/* @__PURE__ */ o.jsx("span", { className: "message-text", children: e })
|
|
4864
4890
|
] });
|
|
4865
4891
|
}, Jl = ({
|
|
@@ -4887,7 +4913,7 @@ const Hl = Ue(
|
|
|
4887
4913
|
children: [
|
|
4888
4914
|
/* @__PURE__ */ o.jsxs("div", { className: "modal-header", children: [
|
|
4889
4915
|
i && /* @__PURE__ */ o.jsx("h2", { className: "modal-title", children: i }),
|
|
4890
|
-
/* @__PURE__ */ o.jsx("div", { className: "modal-close-button", onClick: t, children: /* @__PURE__ */ o.jsx(
|
|
4916
|
+
/* @__PURE__ */ o.jsx("div", { className: "modal-close-button", onClick: t, children: /* @__PURE__ */ o.jsx(V, { classIcon: "bi-x-lg" }) })
|
|
4891
4917
|
] }),
|
|
4892
4918
|
/* @__PURE__ */ o.jsx("div", { className: "modal-content", children: r }),
|
|
4893
4919
|
n && /* @__PURE__ */ o.jsx("div", { className: "d-flex justify-content-end", children: /* @__PURE__ */ o.jsx(xt, { onClick: n, title: a ?? "" }) })
|
|
@@ -4906,7 +4932,7 @@ const Hl = Ue(
|
|
|
4906
4932
|
title: i,
|
|
4907
4933
|
id: s
|
|
4908
4934
|
}, c) => {
|
|
4909
|
-
const [l, d] =
|
|
4935
|
+
const [l, d] = W(null), f = I(async () => {
|
|
4910
4936
|
const v = new Blob([e], { type: "application/pdf" }), g = URL.createObjectURL(v);
|
|
4911
4937
|
if (!t) {
|
|
4912
4938
|
const h = `${g}#toolbar=0&navpanes=0&scrollbar=0`;
|
|
@@ -4915,9 +4941,9 @@ const Hl = Ue(
|
|
|
4915
4941
|
}
|
|
4916
4942
|
d(g);
|
|
4917
4943
|
}, [e, t, d]);
|
|
4918
|
-
return
|
|
4944
|
+
return X(() => {
|
|
4919
4945
|
f();
|
|
4920
|
-
}, [e, f]),
|
|
4946
|
+
}, [e, f]), X(() => () => {
|
|
4921
4947
|
l && URL.revokeObjectURL(l);
|
|
4922
4948
|
}, [l]), /* @__PURE__ */ o.jsx(o.Fragment, { children: l && /* @__PURE__ */ o.jsx(
|
|
4923
4949
|
"iframe",
|
|
@@ -4946,12 +4972,12 @@ const Hl = Ue(
|
|
|
4946
4972
|
disabledMinus: i,
|
|
4947
4973
|
pas: s
|
|
4948
4974
|
}) => {
|
|
4949
|
-
const [c, l] =
|
|
4975
|
+
const [c, l] = W(s), d = I(
|
|
4950
4976
|
(h) => {
|
|
4951
4977
|
n || (l(h), e && e(t, h));
|
|
4952
4978
|
},
|
|
4953
4979
|
[l, e]
|
|
4954
|
-
), f =
|
|
4980
|
+
), f = I(
|
|
4955
4981
|
(h) => {
|
|
4956
4982
|
if (h.stopPropagation(), n || a)
|
|
4957
4983
|
return;
|
|
@@ -4959,7 +4985,7 @@ const Hl = Ue(
|
|
|
4959
4985
|
d(Math.round(p * 100) / 100);
|
|
4960
4986
|
},
|
|
4961
4987
|
[c, d]
|
|
4962
|
-
), v =
|
|
4988
|
+
), v = I(
|
|
4963
4989
|
(h) => {
|
|
4964
4990
|
if (h.stopPropagation(), n || i)
|
|
4965
4991
|
return;
|
|
@@ -4970,10 +4996,10 @@ const Hl = Ue(
|
|
|
4970
4996
|
},
|
|
4971
4997
|
[d, c]
|
|
4972
4998
|
);
|
|
4973
|
-
|
|
4999
|
+
X(() => {
|
|
4974
5000
|
t.quantity && l(t.quantity);
|
|
4975
5001
|
}, [t.quantity, l]);
|
|
4976
|
-
const g =
|
|
5002
|
+
const g = I(
|
|
4977
5003
|
(h) => {
|
|
4978
5004
|
h.stopPropagation(), r && r(t);
|
|
4979
5005
|
},
|
|
@@ -4985,7 +5011,7 @@ const Hl = Ue(
|
|
|
4985
5011
|
{
|
|
4986
5012
|
onClick: (h) => v(h),
|
|
4987
5013
|
className: `qte-action qte-action--minus ${n || i ? "disabled" : ""} `,
|
|
4988
|
-
children: /* @__PURE__ */ o.jsx(
|
|
5014
|
+
children: /* @__PURE__ */ o.jsx(V, { size: je.LARGE, classIcon: "bi bi-dash-square" })
|
|
4989
5015
|
}
|
|
4990
5016
|
),
|
|
4991
5017
|
/* @__PURE__ */ o.jsx("span", { onClick: (h) => g(h), className: "qte-label", children: c }),
|
|
@@ -4994,7 +5020,7 @@ const Hl = Ue(
|
|
|
4994
5020
|
{
|
|
4995
5021
|
onClick: (h) => f(h),
|
|
4996
5022
|
className: `qte-action qte-action--plus ${n || a ? "disabled" : ""}`,
|
|
4997
|
-
children: /* @__PURE__ */ o.jsx(
|
|
5023
|
+
children: /* @__PURE__ */ o.jsx(V, { size: je.LARGE, classIcon: "bi bi-plus-square" })
|
|
4998
5024
|
}
|
|
4999
5025
|
)
|
|
5000
5026
|
] });
|
|
@@ -5010,7 +5036,7 @@ const Hl = Ue(
|
|
|
5010
5036
|
setIsVisible: c,
|
|
5011
5037
|
id: l
|
|
5012
5038
|
}, d) => {
|
|
5013
|
-
const [f, v] =
|
|
5039
|
+
const [f, v] = W(n ?? !1), g = re(null), h = re(null), p = Re(
|
|
5014
5040
|
() => [
|
|
5015
5041
|
{
|
|
5016
5042
|
value: "",
|
|
@@ -5026,41 +5052,41 @@ const Hl = Ue(
|
|
|
5026
5052
|
],
|
|
5027
5053
|
[r, a]
|
|
5028
5054
|
);
|
|
5029
|
-
|
|
5055
|
+
X(() => {
|
|
5030
5056
|
n !== void 0 && v(n);
|
|
5031
5057
|
}, [n]);
|
|
5032
|
-
const m =
|
|
5033
|
-
(
|
|
5034
|
-
c && c(
|
|
5058
|
+
const m = I(
|
|
5059
|
+
(b) => {
|
|
5060
|
+
c && c(b), v(b);
|
|
5035
5061
|
},
|
|
5036
5062
|
[c]
|
|
5037
|
-
),
|
|
5038
|
-
(
|
|
5039
|
-
if (!
|
|
5063
|
+
), y = I(
|
|
5064
|
+
(b) => {
|
|
5065
|
+
if (!b || !b[t ?? "recherche"])
|
|
5040
5066
|
return m(!1);
|
|
5041
5067
|
m(!0), g.current && clearTimeout(g.current), g.current = setTimeout(() => {
|
|
5042
|
-
s && s(
|
|
5068
|
+
s && s(b);
|
|
5043
5069
|
}, i ?? 500);
|
|
5044
5070
|
},
|
|
5045
5071
|
[m, s, i]
|
|
5046
|
-
), j =
|
|
5047
|
-
(
|
|
5048
|
-
console.log("Form Submitted: ",
|
|
5072
|
+
), j = I(
|
|
5073
|
+
(b) => {
|
|
5074
|
+
console.log("Form Submitted: ", b);
|
|
5049
5075
|
},
|
|
5050
5076
|
[]
|
|
5051
5077
|
);
|
|
5052
5078
|
return Dr(d, () => ({
|
|
5053
|
-
clearInput: (
|
|
5079
|
+
clearInput: (b) => {
|
|
5054
5080
|
var _;
|
|
5055
|
-
(_ = h.current) == null || _.clearInput(
|
|
5081
|
+
(_ = h.current) == null || _.clearInput(b);
|
|
5056
5082
|
},
|
|
5057
5083
|
resetForm: () => {
|
|
5058
|
-
var
|
|
5059
|
-
(
|
|
5084
|
+
var b;
|
|
5085
|
+
(b = h.current) == null || b.resetForm();
|
|
5060
5086
|
},
|
|
5061
5087
|
focusInitialElement: () => {
|
|
5062
|
-
var
|
|
5063
|
-
(
|
|
5088
|
+
var b;
|
|
5089
|
+
(b = h.current) == null || b.focusInitialElement();
|
|
5064
5090
|
}
|
|
5065
5091
|
})), /* @__PURE__ */ o.jsxs("div", { className: "search", children: [
|
|
5066
5092
|
/* @__PURE__ */ o.jsx(
|
|
@@ -5068,7 +5094,7 @@ const Hl = Ue(
|
|
|
5068
5094
|
{
|
|
5069
5095
|
ref: h,
|
|
5070
5096
|
onSubmit: j,
|
|
5071
|
-
onChange:
|
|
5097
|
+
onChange: y,
|
|
5072
5098
|
hideSubmit: !0,
|
|
5073
5099
|
initialForm: p
|
|
5074
5100
|
}
|
|
@@ -5079,7 +5105,7 @@ const Hl = Ue(
|
|
|
5079
5105
|
{
|
|
5080
5106
|
className: "toggle-btn",
|
|
5081
5107
|
onClick: () => m(!1),
|
|
5082
|
-
children: /* @__PURE__ */ o.jsx(
|
|
5108
|
+
children: /* @__PURE__ */ o.jsx(V, { classIcon: "bi-x-lg" })
|
|
5083
5109
|
}
|
|
5084
5110
|
) }),
|
|
5085
5111
|
/* @__PURE__ */ o.jsx("div", { className: "search-result-content", children: e })
|
|
@@ -5097,57 +5123,57 @@ const Hl = Ue(
|
|
|
5097
5123
|
closeOnClickOutside: c = !0,
|
|
5098
5124
|
displayOverlay: l = !0
|
|
5099
5125
|
}) => {
|
|
5100
|
-
const [d, f] =
|
|
5101
|
-
|
|
5102
|
-
|
|
5103
|
-
}), [i]),
|
|
5126
|
+
const [d, f] = W(e || !1), [v, g] = W(0), [h, p] = W(!1), m = re(null), y = re(null), j = re(0), b = re(0), _ = re(null);
|
|
5127
|
+
X(() => (y.current || (y.current = document.createElement("div"), y.current.id = `sidebar-root-${i || crypto.randomUUID()}`, document.body.appendChild(y.current)), () => {
|
|
5128
|
+
y.current && y.current.parentNode && (document.body.removeChild(y.current), y.current = null);
|
|
5129
|
+
}), [i]), X(() => {
|
|
5104
5130
|
f(e || !1);
|
|
5105
5131
|
}, [e]);
|
|
5106
|
-
const S =
|
|
5132
|
+
const S = I(() => {
|
|
5107
5133
|
f(!1), n && n(!1);
|
|
5108
|
-
}, [n]),
|
|
5109
|
-
(
|
|
5110
|
-
c && m.current && !m.current.contains(
|
|
5134
|
+
}, [n]), O = I(
|
|
5135
|
+
(D) => {
|
|
5136
|
+
c && m.current && !m.current.contains(D.target) && S();
|
|
5111
5137
|
},
|
|
5112
5138
|
[S, c]
|
|
5113
|
-
), E =
|
|
5114
|
-
const
|
|
5115
|
-
j.current =
|
|
5116
|
-
}, []), C =
|
|
5117
|
-
(
|
|
5139
|
+
), E = I((D) => {
|
|
5140
|
+
const M = D.touches[0];
|
|
5141
|
+
j.current = M.clientX, b.current = M.clientY, _.current = null, p(!1), g(0);
|
|
5142
|
+
}, []), C = I(
|
|
5143
|
+
(D) => {
|
|
5118
5144
|
if (!d) return;
|
|
5119
|
-
const
|
|
5145
|
+
const M = D.touches[0], R = M.clientX - j.current, A = M.clientY - b.current;
|
|
5120
5146
|
if (!_.current) {
|
|
5121
|
-
if (Math.abs(
|
|
5147
|
+
if (Math.abs(R) < Pa && Math.abs(A) < Pa)
|
|
5122
5148
|
return;
|
|
5123
|
-
_.current = Math.abs(
|
|
5149
|
+
_.current = Math.abs(R) > Math.abs(A) ? "x" : "y";
|
|
5124
5150
|
}
|
|
5125
|
-
_.current === "x" && (
|
|
5151
|
+
_.current === "x" && (D.preventDefault(), p(!0), g(Math.max(0, R)));
|
|
5126
5152
|
},
|
|
5127
5153
|
[d]
|
|
5128
|
-
),
|
|
5129
|
-
(
|
|
5130
|
-
d && (_.current === "x" &&
|
|
5154
|
+
), F = I(
|
|
5155
|
+
(D) => {
|
|
5156
|
+
d && (_.current === "x" && D.changedTouches[0].clientX - j.current > fl && S(), p(!1), g(0), _.current = null);
|
|
5131
5157
|
},
|
|
5132
5158
|
[d, S]
|
|
5133
|
-
),
|
|
5134
|
-
(
|
|
5135
|
-
|
|
5159
|
+
), x = I(
|
|
5160
|
+
(D) => {
|
|
5161
|
+
D.preventDefault(), S();
|
|
5136
5162
|
},
|
|
5137
5163
|
[S]
|
|
5138
5164
|
);
|
|
5139
|
-
return
|
|
5165
|
+
return X(() => (d ? (document.addEventListener("mousedown", O), document.addEventListener("touchstart", O, {
|
|
5140
5166
|
passive: !0
|
|
5141
|
-
})) : (document.removeEventListener("mousedown",
|
|
5142
|
-
document.removeEventListener("mousedown",
|
|
5143
|
-
}), [d,
|
|
5167
|
+
})) : (document.removeEventListener("mousedown", O), document.removeEventListener("touchstart", O)), () => {
|
|
5168
|
+
document.removeEventListener("mousedown", O), document.removeEventListener("touchstart", O);
|
|
5169
|
+
}), [d, O]), y.current ? Nn.createPortal(
|
|
5144
5170
|
/* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
5145
5171
|
d && l && /* @__PURE__ */ o.jsx(
|
|
5146
5172
|
"div",
|
|
5147
5173
|
{
|
|
5148
5174
|
className: "overlay",
|
|
5149
5175
|
onClick: S,
|
|
5150
|
-
onTouchEnd:
|
|
5176
|
+
onTouchEnd: x
|
|
5151
5177
|
}
|
|
5152
5178
|
),
|
|
5153
5179
|
/* @__PURE__ */ o.jsxs(
|
|
@@ -5162,18 +5188,18 @@ const Hl = Ue(
|
|
|
5162
5188
|
className: `sidebar ${d ? "open" : "closed"} ${a ?? ""}`,
|
|
5163
5189
|
onTouchStart: E,
|
|
5164
5190
|
onTouchMove: C,
|
|
5165
|
-
onTouchEnd:
|
|
5191
|
+
onTouchEnd: F,
|
|
5166
5192
|
children: [
|
|
5167
5193
|
/* @__PURE__ */ o.jsxs("div", { className: "sidebar-header", children: [
|
|
5168
5194
|
r && /* @__PURE__ */ o.jsx("h2", { className: "flex-1", children: r }),
|
|
5169
|
-
/* @__PURE__ */ o.jsx("button", { className: "toggle-btn", onClick: S, children: /* @__PURE__ */ o.jsx(
|
|
5195
|
+
/* @__PURE__ */ o.jsx("button", { className: "toggle-btn", onClick: S, children: /* @__PURE__ */ o.jsx(V, { classIcon: "bi-x-lg" }) })
|
|
5170
5196
|
] }),
|
|
5171
5197
|
t && t
|
|
5172
5198
|
]
|
|
5173
5199
|
}
|
|
5174
5200
|
)
|
|
5175
5201
|
] }),
|
|
5176
|
-
|
|
5202
|
+
y.current
|
|
5177
5203
|
) : /* @__PURE__ */ o.jsx(o.Fragment, {});
|
|
5178
5204
|
}, tu = (e) => /* @__PURE__ */ o.jsx(hl, { ...e, className: `full sidebar-data ${e.className}`, children: e.children && /* @__PURE__ */ o.jsx("div", { className: `sidebar-data-content ${e.classNameContent} `, children: e.children }) }), ru = ({
|
|
5179
5205
|
items: e,
|
|
@@ -5184,8 +5210,8 @@ const Hl = Ue(
|
|
|
5184
5210
|
tabClassName: i = "",
|
|
5185
5211
|
panelClassName: s = ""
|
|
5186
5212
|
}) => {
|
|
5187
|
-
const c = typeof r == "number", [l, d] =
|
|
5188
|
-
|
|
5213
|
+
const c = typeof r == "number", [l, d] = W(t), f = c ? r : l;
|
|
5214
|
+
X(() => {
|
|
5189
5215
|
!c && (t < 0 || t >= e.length) && d(0);
|
|
5190
5216
|
}, [t, e.length, c]);
|
|
5191
5217
|
const v = re([]), g = (h) => {
|
|
@@ -5271,10 +5297,10 @@ const Ra = (e) => {
|
|
|
5271
5297
|
duration: i,
|
|
5272
5298
|
hideToast: s,
|
|
5273
5299
|
close: c
|
|
5274
|
-
} = yl(), l =
|
|
5300
|
+
} = yl(), l = I(() => {
|
|
5275
5301
|
s();
|
|
5276
5302
|
}, [s]);
|
|
5277
|
-
if (
|
|
5303
|
+
if (X(() => {
|
|
5278
5304
|
if (!n) return;
|
|
5279
5305
|
const f = setTimeout(() => {
|
|
5280
5306
|
s();
|
|
@@ -5284,12 +5310,12 @@ const Ra = (e) => {
|
|
|
5284
5310
|
const d = document.getElementById("toaster-root");
|
|
5285
5311
|
return d ? Nn.createPortal(
|
|
5286
5312
|
/* @__PURE__ */ o.jsxs("div", { className: `toaster toaster-${r}`, children: [
|
|
5287
|
-
c && /* @__PURE__ */ o.jsx("div", { className: "toaster--close", onClick: l, children: /* @__PURE__ */ o.jsx(
|
|
5313
|
+
c && /* @__PURE__ */ o.jsx("div", { className: "toaster--close", onClick: l, children: /* @__PURE__ */ o.jsx(V, { classIcon: "bi-x" }) }),
|
|
5288
5314
|
/* @__PURE__ */ o.jsxs("div", { children: [
|
|
5289
|
-
r === "info" && /* @__PURE__ */ o.jsx(
|
|
5290
|
-
r === "success" && /* @__PURE__ */ o.jsx(
|
|
5291
|
-
r === "error" && /* @__PURE__ */ o.jsx(
|
|
5292
|
-
r === "warning" && /* @__PURE__ */ o.jsx(
|
|
5315
|
+
r === "info" && /* @__PURE__ */ o.jsx(V, { classIcon: "bi-info-circle" }),
|
|
5316
|
+
r === "success" && /* @__PURE__ */ o.jsx(V, { classIcon: "bi-check-circle" }),
|
|
5317
|
+
r === "error" && /* @__PURE__ */ o.jsx(V, { classIcon: "bi-x-circle" }),
|
|
5318
|
+
r === "warning" && /* @__PURE__ */ o.jsx(V, { classIcon: "bi-exclamation-triangle" })
|
|
5293
5319
|
] }),
|
|
5294
5320
|
/* @__PURE__ */ o.jsxs("div", { children: [
|
|
5295
5321
|
/* @__PURE__ */ o.jsx("div", { className: `title title-${r}`, children: e }),
|
|
@@ -5318,7 +5344,7 @@ export {
|
|
|
5318
5344
|
ql as Grid,
|
|
5319
5345
|
Xl as Header,
|
|
5320
5346
|
wl as HistoryProvider,
|
|
5321
|
-
|
|
5347
|
+
V as Icon,
|
|
5322
5348
|
je as IconSizeEnum,
|
|
5323
5349
|
Sl as ImageChecker,
|
|
5324
5350
|
Dl as ImageExist,
|