kelt-ui-kit-react 1.8.4 → 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 +5 -1
- package/dist/index.js +1002 -974
- 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 +5 -1
- package/src/dataTable/dataTableRow/DataTableRow.tsx +15 -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) {
|
|
@@ -20,12 +20,12 @@ function qo() {
|
|
|
20
20
|
if (Hn) return It;
|
|
21
21
|
Hn = 1;
|
|
22
22
|
var e = Ae, t = Symbol.for("react.element"), r = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, a = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
23
|
-
function s(
|
|
23
|
+
function s(c, l, d) {
|
|
24
24
|
var f, v = {}, g = null, h = null;
|
|
25
|
-
d !== void 0 && (g = "" + d),
|
|
26
|
-
for (f in
|
|
27
|
-
if (
|
|
28
|
-
return { $$typeof: t, type:
|
|
25
|
+
d !== void 0 && (g = "" + d), l.key !== void 0 && (g = "" + l.key), l.ref !== void 0 && (h = l.ref);
|
|
26
|
+
for (f in l) n.call(l, f) && !i.hasOwnProperty(f) && (v[f] = l[f]);
|
|
27
|
+
if (c && c.defaultProps) for (f in l = c.defaultProps, l) v[f] === void 0 && (v[f] = l[f]);
|
|
28
|
+
return { $$typeof: t, type: c, key: g, ref: h, props: v, _owner: a.current };
|
|
29
29
|
}
|
|
30
30
|
return It.Fragment = r, It.jsx = s, It.jsxs = s, It;
|
|
31
31
|
}
|
|
@@ -42,24 +42,24 @@ var $t = {};
|
|
|
42
42
|
var qn;
|
|
43
43
|
function Xo() {
|
|
44
44
|
return qn || (qn = 1, process.env.NODE_ENV !== "production" && function() {
|
|
45
|
-
var e = Ae, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), s = Symbol.for("react.provider"),
|
|
46
|
-
function
|
|
45
|
+
var e = Ae, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), 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 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;
|
|
@@ -109,21 +109,21 @@ function Xo() {
|
|
|
109
109
|
}
|
|
110
110
|
if (typeof u == "object")
|
|
111
111
|
switch (u.$$typeof) {
|
|
112
|
-
case
|
|
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
|
|
118
|
-
case
|
|
119
|
-
return
|
|
117
|
+
return R(N._context) + ".Provider";
|
|
118
|
+
case l:
|
|
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,23 +294,23 @@ 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) {
|
|
308
|
-
case
|
|
308
|
+
case l:
|
|
309
309
|
return Ot(u.render);
|
|
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);
|
|
@@ -545,46 +545,46 @@ Check the top-level render call using <` + N + ">.");
|
|
|
545
545
|
var N;
|
|
546
546
|
if (typeof w == "function")
|
|
547
547
|
N = w.propTypes;
|
|
548
|
-
else if (typeof w == "object" && (w.$$typeof ===
|
|
548
|
+
else if (typeof w == "object" && (w.$$typeof === l || // Note: Memo only checks outer props here.
|
|
549
549
|
// Inner props are checked in the reconciler.
|
|
550
550
|
w.$$typeof === v))
|
|
551
551
|
N = w.propTypes;
|
|
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,25 +716,25 @@ 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) => {
|
|
723
723
|
if (!/^\d{13}$/.test(e)) return !1;
|
|
724
724
|
const t = e.split("").map(Number), r = t.pop(), a = (10 - t.reduce(
|
|
725
|
-
(i, s,
|
|
725
|
+
(i, s, c) => i + s * (c % 2 === 0 ? 1 : 3),
|
|
726
726
|
0
|
|
727
727
|
) % 10) % 10;
|
|
728
728
|
return r === a;
|
|
729
729
|
}, Nl = (e, t = "") => {
|
|
730
730
|
const r = new URLSearchParams(), n = (a, i) => {
|
|
731
|
-
Object.entries(a).forEach(([s,
|
|
732
|
-
const
|
|
733
|
-
|
|
731
|
+
Object.entries(a).forEach(([s, c]) => {
|
|
732
|
+
const l = i ? `${i}[${s}]` : s;
|
|
733
|
+
c != null && (typeof c == "object" && !Array.isArray(c) ? n(c, l) : Array.isArray(c) ? c.forEach((d) => r.append(l, String(d))) : r.append(l, String(c)));
|
|
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
|
|
@@ -765,8 +765,8 @@ function kl(e, t) {
|
|
|
765
765
|
"décembre"
|
|
766
766
|
];
|
|
767
767
|
if (!e) return "";
|
|
768
|
-
const a = e.getFullYear().toString(), i = String(e.getMonth() + 1).padStart(2, "0"), s = String(e.getDate()).padStart(2, "0"),
|
|
769
|
-
return t.replace("dddd", f).replace("MMMM", v).replace("YYYY", a).replace("MM", i).replace("DD", s).replace("HH",
|
|
768
|
+
const a = e.getFullYear().toString(), i = String(e.getMonth() + 1).padStart(2, "0"), s = String(e.getDate()).padStart(2, "0"), c = String(e.getHours()).padStart(2, "0"), l = String(e.getMinutes()).padStart(2, "0"), d = String(e.getSeconds()).padStart(2, "0"), f = r[e.getDay()], v = n[e.getMonth()];
|
|
769
|
+
return t.replace("dddd", f).replace("MMMM", v).replace("YYYY", a).replace("MM", i).replace("DD", s).replace("HH", c).replace("mm", l).replace("ss", d);
|
|
770
770
|
}
|
|
771
771
|
function _l(e) {
|
|
772
772
|
const [t, r, n] = e.split("-").map(Number);
|
|
@@ -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 = ({
|
|
@@ -918,8 +918,8 @@ const $l = ({
|
|
|
918
918
|
sizeIcon: a,
|
|
919
919
|
id: i,
|
|
920
920
|
classIcon: s,
|
|
921
|
-
positionicon:
|
|
922
|
-
disabled:
|
|
921
|
+
positionicon: c = 1,
|
|
922
|
+
disabled: l = !1
|
|
923
923
|
}) => {
|
|
924
924
|
const d = (f) => {
|
|
925
925
|
f.stopPropagation(), t && t(f);
|
|
@@ -928,15 +928,15 @@ const $l = ({
|
|
|
928
928
|
"button",
|
|
929
929
|
{
|
|
930
930
|
id: i ?? "",
|
|
931
|
-
disabled:
|
|
931
|
+
disabled: l,
|
|
932
932
|
type: "submit",
|
|
933
933
|
onClick: (f) => d(f),
|
|
934
934
|
className: e,
|
|
935
935
|
children: [
|
|
936
936
|
r && /* @__PURE__ */ o.jsx(La, { ...r }),
|
|
937
|
-
s &&
|
|
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 &&
|
|
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) {
|
|
@@ -1038,8 +1038,8 @@ function Qn(e, t) {
|
|
|
1038
1038
|
});
|
|
1039
1039
|
}
|
|
1040
1040
|
var Nr = 1, pt = 1, Ga = 0, Oe = 0, oe = 0, wt = "";
|
|
1041
|
-
function Er(e, t, r, n, a, i, s,
|
|
1042
|
-
return { value: e, root: t, parent: r, type: n, props: a, children: i, line: Nr, column: pt, length: s, return: "", siblings:
|
|
1041
|
+
function Er(e, t, r, n, a, i, s, c) {
|
|
1042
|
+
return { value: e, root: t, parent: r, type: n, props: a, children: i, line: Nr, column: pt, length: s, return: "", siblings: c };
|
|
1043
1043
|
}
|
|
1044
1044
|
function Ye(e, t) {
|
|
1045
1045
|
return tn(Er("", null, null, "", null, null, 0, e.siblings), e, { length: -e.length }, t);
|
|
@@ -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;
|
|
@@ -1150,18 +1150,18 @@ function Di(e) {
|
|
|
1150
1150
|
function Oi(e) {
|
|
1151
1151
|
return xi(hr("", null, null, null, [""], e = bi(e), 0, [0], e));
|
|
1152
1152
|
}
|
|
1153
|
-
function hr(e, t, r, n, a, i, s,
|
|
1154
|
-
for (var d = 0, f = 0, v = s, g = 0, h = 0, p = 0, m = 1,
|
|
1155
|
-
switch (p =
|
|
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, 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:
|
|
@@ -1176,40 +1176,40 @@ function hr(e, t, r, n, a, i, s, l, c) {
|
|
|
1176
1176
|
switch (et()) {
|
|
1177
1177
|
case 42:
|
|
1178
1178
|
case 47:
|
|
1179
|
-
Lt(Ni(Si(Ne(), fr()), t, r,
|
|
1179
|
+
Lt(Ni(Si(Ne(), fr()), t, r, l), l);
|
|
1180
1180
|
break;
|
|
1181
1181
|
default:
|
|
1182
1182
|
C += "/";
|
|
1183
1183
|
}
|
|
1184
1184
|
break;
|
|
1185
1185
|
case 123 * m:
|
|
1186
|
-
|
|
1186
|
+
c[d++] = Te(C) * j;
|
|
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,
|
|
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,
|
|
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,
|
|
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,20 +1218,20 @@ function hr(e, t, r, n, a, i, s, l, c) {
|
|
|
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;
|
|
1230
1230
|
case 44:
|
|
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);
|
|
@@ -1239,11 +1239,11 @@ function hr(e, t, r, n, a, i, s, l, c) {
|
|
|
1239
1239
|
}
|
|
1240
1240
|
return i;
|
|
1241
1241
|
}
|
|
1242
|
-
function Zn(e, t, r, n, a, i, s,
|
|
1243
|
-
for (var g = a - 1, h = a === 0 ? i : [""], p = za(h), m = 0,
|
|
1244
|
-
for (var
|
|
1245
|
-
(S = Ua(
|
|
1246
|
-
return Er(e, t, r, a === 0 ? Or :
|
|
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, 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
|
+
return Er(e, t, r, a === 0 ? Or : c, l, d, f, v);
|
|
1247
1247
|
}
|
|
1248
1248
|
function Ni(e, t, r, n) {
|
|
1249
1249
|
return Er(e, t, r, Va, _n(gi()), mt(e, 2, -2), 0, 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
|
}
|
|
@@ -1419,8 +1419,8 @@ function Ei(e, t, r, n) {
|
|
|
1419
1419
|
function ki(e) {
|
|
1420
1420
|
var t = za(e);
|
|
1421
1421
|
return function(r, n, a, i) {
|
|
1422
|
-
for (var s = "",
|
|
1423
|
-
s += e[
|
|
1422
|
+
for (var s = "", c = 0; c < t; c++)
|
|
1423
|
+
s += e[c](r, n, a, i) || "";
|
|
1424
1424
|
return s;
|
|
1425
1425
|
};
|
|
1426
1426
|
}
|
|
@@ -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 "";
|
|
@@ -1512,8 +1512,8 @@ See https://styled-components.com/docs/basics#define-styled-components-outside-o
|
|
|
1512
1512
|
try {
|
|
1513
1513
|
var i = !0;
|
|
1514
1514
|
console.error = function(s) {
|
|
1515
|
-
for (var
|
|
1516
|
-
ta.test(s) ? (i = !1, or.delete(n)) : a.apply(void 0, vt([s],
|
|
1515
|
+
for (var c = [], l = 1; l < arguments.length; l++) c[l - 1] = arguments[l];
|
|
1516
|
+
ta.test(s) ? (i = !1, or.delete(n)) : a.apply(void 0, vt([s], c, !1));
|
|
1517
1517
|
}, re(), i && !or.has(n) && (console.warn(n), or.add(n));
|
|
1518
1518
|
} catch (s) {
|
|
1519
1519
|
ta.test(s.message) && or.delete(n);
|
|
@@ -1566,12 +1566,12 @@ function ro(e, t, r) {
|
|
|
1566
1566
|
}
|
|
1567
1567
|
var a = Ui(t);
|
|
1568
1568
|
oa && (a = a.concat(oa(t)));
|
|
1569
|
-
for (var i = aa(e), s = aa(t),
|
|
1570
|
-
var
|
|
1571
|
-
if (!(
|
|
1572
|
-
var d = zi(t,
|
|
1569
|
+
for (var i = aa(e), s = aa(t), c = 0; c < a.length; ++c) {
|
|
1570
|
+
var l = a[c];
|
|
1571
|
+
if (!(l in Vi || r && r[l] || s && l in s || i && l in i)) {
|
|
1572
|
+
var d = zi(t, l);
|
|
1573
1573
|
try {
|
|
1574
|
-
Bi(e,
|
|
1574
|
+
Bi(e, l, d);
|
|
1575
1575
|
} catch {
|
|
1576
1576
|
}
|
|
1577
1577
|
}
|
|
@@ -1671,7 +1671,7 @@ var Xi = function() {
|
|
|
1671
1671
|
this.groupSizes = new Uint32Array(i), this.groupSizes.set(n), this.length = i;
|
|
1672
1672
|
for (var s = a; s < i; s++) this.groupSizes[s] = 0;
|
|
1673
1673
|
}
|
|
1674
|
-
for (var
|
|
1674
|
+
for (var c = this.indexOfGroup(t + 1), l = (s = 0, r.length); s < l; s++) this.tag.insertRule(c, r[s]) && (this.groupSizes[t]++, c++);
|
|
1675
1675
|
}, e.prototype.clearGroup = function(t) {
|
|
1676
1676
|
if (t < this.length) {
|
|
1677
1677
|
var r = this.groupSizes[t], n = this.indexOfGroup(t), a = n + r;
|
|
@@ -1696,13 +1696,13 @@ var Xi = function() {
|
|
|
1696
1696
|
for (var n, a = r.split(","), i = 0, s = a.length; i < s; i++) (n = a[i]) && e.registerName(t, n);
|
|
1697
1697
|
}, ts = function(e, t) {
|
|
1698
1698
|
for (var r, n = ((r = t.textContent) !== null && r !== void 0 ? r : "").split(Cn), a = [], i = 0, s = n.length; i < s; i++) {
|
|
1699
|
-
var
|
|
1700
|
-
if (
|
|
1701
|
-
var
|
|
1702
|
-
if (
|
|
1703
|
-
var d = 0 | parseInt(
|
|
1704
|
-
d !== 0 && (Ji(f, d), es(e, f,
|
|
1705
|
-
} else a.push(
|
|
1699
|
+
var c = n[i].trim();
|
|
1700
|
+
if (c) {
|
|
1701
|
+
var l = c.match(Zi);
|
|
1702
|
+
if (l) {
|
|
1703
|
+
var d = 0 | parseInt(l[1], 10), f = l[2];
|
|
1704
|
+
d !== 0 && (Ji(f, d), es(e, f, l[3]), e.getTag().insertRules(d, a)), a.length = 0;
|
|
1705
|
+
} else a.push(c);
|
|
1706
1706
|
}
|
|
1707
1707
|
}
|
|
1708
1708
|
}, ca = function(e) {
|
|
@@ -1715,9 +1715,9 @@ function rs() {
|
|
|
1715
1715
|
return typeof __webpack_nonce__ < "u" ? __webpack_nonce__ : null;
|
|
1716
1716
|
}
|
|
1717
1717
|
var no = function(e) {
|
|
1718
|
-
var t = document.head, r = e || t, n = document.createElement("style"), a = function(
|
|
1719
|
-
var
|
|
1720
|
-
return
|
|
1718
|
+
var t = document.head, r = e || t, n = document.createElement("style"), a = function(c) {
|
|
1719
|
+
var l = Array.from(c.querySelectorAll("style[".concat(nt, "]")));
|
|
1720
|
+
return l[l.length - 1];
|
|
1721
1721
|
}(r), i = a !== void 0 ? a.nextSibling : null;
|
|
1722
1722
|
n.setAttribute(nt, qa), n.setAttribute(Xa, _r);
|
|
1723
1723
|
var s = rs();
|
|
@@ -1777,19 +1777,19 @@ var no = function(e) {
|
|
|
1777
1777
|
var a = this;
|
|
1778
1778
|
this.options = be(be({}, is), t), this.gs = r, this.names = new Map(n), this.server = !!t.isServer, !this.server && br && la && (la = !1, ca(this)), Tn(this, function() {
|
|
1779
1779
|
return function(i) {
|
|
1780
|
-
for (var s = i.getTag(),
|
|
1780
|
+
for (var s = i.getTag(), c = s.length, l = "", d = function(v) {
|
|
1781
1781
|
var g = function(j) {
|
|
1782
1782
|
return xr.get(j);
|
|
1783
1783
|
}(v);
|
|
1784
1784
|
if (g === void 0) return "continue";
|
|
1785
1785
|
var h = i.names.get(g), p = s.getGroup(v);
|
|
1786
1786
|
if (h === void 0 || !h.size || p.length === 0) return "continue";
|
|
1787
|
-
var m = "".concat(nt, ".g").concat(v, '[id="').concat(g, '"]'),
|
|
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
|
-
}),
|
|
1791
|
-
}, f = 0; f <
|
|
1792
|
-
return
|
|
1789
|
+
j.length > 0 && (y += "".concat(j, ","));
|
|
1790
|
+
}), l += "".concat(p).concat(m, '{content:"').concat(y, '"}').concat(Cn);
|
|
1791
|
+
}, f = 0; f < c; f++) d(f);
|
|
1792
|
+
return l;
|
|
1793
1793
|
}(a);
|
|
1794
1794
|
});
|
|
1795
1795
|
}
|
|
@@ -1833,22 +1833,22 @@ function oo(e, t) {
|
|
|
1833
1833
|
});
|
|
1834
1834
|
}
|
|
1835
1835
|
function ls(e) {
|
|
1836
|
-
var t, r, n, a = gt, i = a.options, s = i === void 0 ? gt : i,
|
|
1836
|
+
var t, r, n, a = gt, i = a.options, s = i === void 0 ? gt : i, c = a.plugins, l = c === void 0 ? Cr : c, d = function(g, h, p) {
|
|
1837
1837
|
return p.startsWith(r) && p.endsWith(r) && p.replaceAll(r, "").length > 0 ? ".".concat(t) : g;
|
|
1838
|
-
}, f =
|
|
1838
|
+
}, f = l.slice();
|
|
1839
1839
|
f.push(function(g) {
|
|
1840
1840
|
g.type === Or && g.value.includes("&") && (g.props[0] = g.props[0].replace(ss, r).replace(n, d));
|
|
1841
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
|
-
return v.hash =
|
|
1851
|
+
return v.hash = l.length ? l.reduce(function(g, h) {
|
|
1852
1852
|
return h.name || jt(15), Qe(g, h.name);
|
|
1853
1853
|
}, Ka).toString() : "", v;
|
|
1854
1854
|
}
|
|
@@ -1923,22 +1923,22 @@ var hs = Ja(_r), vs = function() {
|
|
|
1923
1923
|
else {
|
|
1924
1924
|
var i = sa(tt(this.rules, t, r, n)), s = on(Qe(this.baseHash, i) >>> 0);
|
|
1925
1925
|
if (!r.hasNameForId(this.componentId, s)) {
|
|
1926
|
-
var
|
|
1927
|
-
r.insertRules(this.componentId, s,
|
|
1926
|
+
var c = n(i, ".".concat(s), void 0, this.componentId);
|
|
1927
|
+
r.insertRules(this.componentId, s, c);
|
|
1928
1928
|
}
|
|
1929
1929
|
a = Ze(a, s), this.staticRulesId = s;
|
|
1930
1930
|
}
|
|
1931
1931
|
else {
|
|
1932
|
-
for (var
|
|
1932
|
+
for (var l = Qe(this.baseHash, n.hash), d = "", f = 0; f < this.rules.length; f++) {
|
|
1933
1933
|
var v = this.rules[f];
|
|
1934
|
-
if (typeof v == "string") d += v, process.env.NODE_ENV !== "production" && (
|
|
1934
|
+
if (typeof v == "string") d += v, process.env.NODE_ENV !== "production" && (l = Qe(l, v));
|
|
1935
1935
|
else if (v) {
|
|
1936
1936
|
var g = sa(tt(v, t, r, n));
|
|
1937
|
-
|
|
1937
|
+
l = Qe(l, g + f), d += g;
|
|
1938
1938
|
}
|
|
1939
1939
|
}
|
|
1940
1940
|
if (d) {
|
|
1941
|
-
var h = on(
|
|
1941
|
+
var h = on(l >>> 0);
|
|
1942
1942
|
r.hasNameForId(this.componentId, h) || r.insertRules(this.componentId, h, n(d, ".".concat(h), void 0, this.componentId)), a = Ze(a, h);
|
|
1943
1943
|
}
|
|
1944
1944
|
}
|
|
@@ -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,
|
|
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
|
|
1956
|
-
}(t.displayName, t.parentComponentId) :
|
|
1955
|
+
return O ? "".concat(O, "-").concat(C) : C;
|
|
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
|
-
}(e) : f, g = t.displayName && t.componentId ? "".concat(ra(t.displayName), "-").concat(t.componentId) : t.componentId || d, h = n && a.attrs ? a.attrs.concat(
|
|
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 => ({
|
|
@@ -2075,72 +2075,72 @@ const ps = Rn.div`
|
|
|
2075
2075
|
show: a,
|
|
2076
2076
|
id: i,
|
|
2077
2077
|
closeOverlay: s
|
|
2078
|
-
},
|
|
2079
|
-
const { activeOverlayId:
|
|
2078
|
+
}, c) => {
|
|
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
|
-
Dr(
|
|
2082
|
+
Dr(c, () => ({
|
|
2083
2083
|
setCoords: h
|
|
2084
|
-
})),
|
|
2085
|
-
|
|
2086
|
-
}, [
|
|
2087
|
-
const
|
|
2084
|
+
})), X(() => {
|
|
2085
|
+
l !== m && v(!1);
|
|
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
|
|
@@ -2172,9 +2172,9 @@ const ps = Rn.div`
|
|
|
2172
2172
|
disabled: i = !1,
|
|
2173
2173
|
id: s
|
|
2174
2174
|
}) => {
|
|
2175
|
-
const
|
|
2175
|
+
const c = (p) => {
|
|
2176
2176
|
p.preventDefault(), t && t(p);
|
|
2177
|
-
},
|
|
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: [
|
|
@@ -2205,7 +2205,7 @@ const ps = Rn.div`
|
|
|
2205
2205
|
id: s ?? "",
|
|
2206
2206
|
disabled: i,
|
|
2207
2207
|
type: "submit",
|
|
2208
|
-
onClick: (p) =>
|
|
2208
|
+
onClick: (p) => c(p),
|
|
2209
2209
|
className: ` ${e} button-actions`,
|
|
2210
2210
|
children: [
|
|
2211
2211
|
/* @__PURE__ */ o.jsx("span", { className: "mr-2 flex-1", children: r }),
|
|
@@ -2213,21 +2213,21 @@ const ps = Rn.div`
|
|
|
2213
2213
|
"span",
|
|
2214
2214
|
{
|
|
2215
2215
|
className: "ml-2",
|
|
2216
|
-
ref:
|
|
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
|
]
|
|
2222
2222
|
}
|
|
2223
2223
|
),
|
|
2224
|
-
n && d &&
|
|
2224
|
+
n && d && l.current && /* @__PURE__ */ o.jsx(
|
|
2225
2225
|
An,
|
|
2226
2226
|
{
|
|
2227
2227
|
show: d,
|
|
2228
2228
|
position: a,
|
|
2229
2229
|
closeOverlay: f,
|
|
2230
|
-
referenceElement:
|
|
2230
|
+
referenceElement: l.current,
|
|
2231
2231
|
children: /* @__PURE__ */ o.jsx("div", { children: /* @__PURE__ */ o.jsx(Fa, { className: "card-action-menu", items: g }) })
|
|
2232
2232
|
}
|
|
2233
2233
|
)
|
|
@@ -2239,9 +2239,9 @@ const ps = Rn.div`
|
|
|
2239
2239
|
buttonClassName: n,
|
|
2240
2240
|
containerClassName: a
|
|
2241
2241
|
}) => {
|
|
2242
|
-
const i = re(null), s = (
|
|
2242
|
+
const i = re(null), s = (l) => {
|
|
2243
2243
|
var f;
|
|
2244
|
-
const d = (f =
|
|
2244
|
+
const d = (f = l.target.files) == null ? void 0 : f[0];
|
|
2245
2245
|
if (d && e) {
|
|
2246
2246
|
const v = new FileReader();
|
|
2247
2247
|
v.onload = (g) => {
|
|
@@ -2250,9 +2250,9 @@ const ps = Rn.div`
|
|
|
2250
2250
|
e(d, h);
|
|
2251
2251
|
}, v.readAsArrayBuffer(d);
|
|
2252
2252
|
}
|
|
2253
|
-
},
|
|
2254
|
-
var
|
|
2255
|
-
(
|
|
2253
|
+
}, c = () => {
|
|
2254
|
+
var l;
|
|
2255
|
+
(l = i.current) == null || l.click();
|
|
2256
2256
|
};
|
|
2257
2257
|
return /* @__PURE__ */ o.jsxs("div", { className: a, children: [
|
|
2258
2258
|
/* @__PURE__ */ o.jsx(
|
|
@@ -2268,7 +2268,7 @@ const ps = Rn.div`
|
|
|
2268
2268
|
/* @__PURE__ */ o.jsx(
|
|
2269
2269
|
xt,
|
|
2270
2270
|
{
|
|
2271
|
-
onClick:
|
|
2271
|
+
onClick: c,
|
|
2272
2272
|
className: n || "bg-green-500 hover:bg-green-600 text-white font-medium py-3 px-6 rounded-lg transition-colors duration-200",
|
|
2273
2273
|
title: r || "Choisir un fichier"
|
|
2274
2274
|
}
|
|
@@ -2282,23 +2282,23 @@ const ps = Rn.div`
|
|
|
2282
2282
|
positionOverlay: a,
|
|
2283
2283
|
setOpenActions: i
|
|
2284
2284
|
}) => {
|
|
2285
|
-
const s = re(null), [
|
|
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(),
|
|
2291
|
+
const g = I(
|
|
2292
|
+
(m, y) => {
|
|
2293
|
+
e.length !== 0 && (m.preventDefault(), l("bottomRight"), i && i(y));
|
|
2294
2294
|
},
|
|
2295
|
-
[
|
|
2296
|
-
), h =
|
|
2297
|
-
|
|
2298
|
-
}, [v,
|
|
2295
|
+
[l, i]
|
|
2296
|
+
), h = I(() => {
|
|
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, 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"
|
|
@@ -2344,7 +2344,7 @@ const ps = Rn.div`
|
|
|
2344
2344
|
f && d.current && /* @__PURE__ */ o.jsx(
|
|
2345
2345
|
An,
|
|
2346
2346
|
{
|
|
2347
|
-
position:
|
|
2347
|
+
position: c,
|
|
2348
2348
|
show: f,
|
|
2349
2349
|
ref: s,
|
|
2350
2350
|
closeOverlay: h,
|
|
@@ -2362,15 +2362,15 @@ const ps = Rn.div`
|
|
|
2362
2362
|
onClose: a,
|
|
2363
2363
|
customAction: i,
|
|
2364
2364
|
positionOverlay: s,
|
|
2365
|
-
children:
|
|
2365
|
+
children: c
|
|
2366
2366
|
}) => {
|
|
2367
|
-
const [
|
|
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,
|
|
@@ -2378,18 +2378,18 @@ const ps = Rn.div`
|
|
|
2378
2378
|
n,
|
|
2379
2379
|
f,
|
|
2380
2380
|
v,
|
|
2381
|
-
|
|
2381
|
+
l
|
|
2382
2382
|
]
|
|
2383
2383
|
);
|
|
2384
2384
|
return /* @__PURE__ */ o.jsxs(
|
|
2385
2385
|
"div",
|
|
2386
2386
|
{
|
|
2387
|
-
onContextMenu: (
|
|
2388
|
-
onMouseDown: (
|
|
2389
|
-
className: `card ${r ?? ""} ${
|
|
2387
|
+
onContextMenu: (y) => y.preventDefault(),
|
|
2388
|
+
onMouseDown: (y) => m(y, e),
|
|
2389
|
+
className: `card ${r ?? ""} ${l ? "card--active" : ""} `,
|
|
2390
2390
|
children: [
|
|
2391
|
-
|
|
2392
|
-
!
|
|
2391
|
+
c,
|
|
2392
|
+
!c && /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
2393
2393
|
/* @__PURE__ */ o.jsxs("div", { className: "card-text d-flex", children: [
|
|
2394
2394
|
e.image && /* @__PURE__ */ o.jsx("div", { className: "card-img", children: /* @__PURE__ */ o.jsx("img", { src: e.image, alt: "card-image" }) }),
|
|
2395
2395
|
e.title && /* @__PURE__ */ o.jsx("div", { className: "card-title", children: e.title }),
|
|
@@ -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,41 +2433,41 @@ 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)
|
|
2441
|
-
return
|
|
2441
|
+
return l(n.xl);
|
|
2442
2442
|
if (n.lg && m >= 992)
|
|
2443
|
-
return
|
|
2443
|
+
return l(n.lg);
|
|
2444
2444
|
if (n.md && m >= 768)
|
|
2445
|
-
return
|
|
2445
|
+
return l(n.md);
|
|
2446
2446
|
if (n.sm && m >= 576)
|
|
2447
|
-
return
|
|
2447
|
+
return l(n.sm);
|
|
2448
2448
|
};
|
|
2449
2449
|
return p(), window.addEventListener("resize", p), () => window.removeEventListener("resize", p);
|
|
2450
2450
|
}, [n]);
|
|
2451
|
-
const d =
|
|
2451
|
+
const d = I(
|
|
2452
2452
|
(p) => {
|
|
2453
2453
|
p.preventDefault(), i(
|
|
2454
|
-
(m) => Math.min(m + r, s -
|
|
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
|
},
|
|
2462
2462
|
[i]
|
|
2463
|
-
), v = a + r >= s -
|
|
2463
|
+
), v = a + r >= s - c + 1, g = s <= c, h = a <= 0;
|
|
2464
2464
|
return /* @__PURE__ */ o.jsxs("div", { className: "carousel", children: [
|
|
2465
2465
|
t && !g && /* @__PURE__ */ o.jsx(
|
|
2466
2466
|
"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(
|
|
@@ -2476,7 +2476,7 @@ const ps = Rn.div`
|
|
|
2476
2476
|
className: "carousel-slides-wrapper",
|
|
2477
2477
|
style: {
|
|
2478
2478
|
display: "flex",
|
|
2479
|
-
transform: `translateX(-${a * 100 /
|
|
2479
|
+
transform: `translateX(-${a * 100 / c}%)`,
|
|
2480
2480
|
transition: "transform 0.5s ease-in-out"
|
|
2481
2481
|
},
|
|
2482
2482
|
children: Ae.Children.map(e, (p) => /* @__PURE__ */ o.jsx(
|
|
@@ -2484,7 +2484,7 @@ const ps = Rn.div`
|
|
|
2484
2484
|
{
|
|
2485
2485
|
className: "carousel-slide",
|
|
2486
2486
|
style: {
|
|
2487
|
-
minWidth: `${100 /
|
|
2487
|
+
minWidth: `${100 / c}%`,
|
|
2488
2488
|
boxSizing: "border-box"
|
|
2489
2489
|
},
|
|
2490
2490
|
children: p
|
|
@@ -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,20 +2513,20 @@ 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]), [
|
|
2517
|
-
|
|
2518
|
-
|
|
2516
|
+
const i = Re(() => e ?? 9, [e]), s = Re(() => Math.max(1, t ?? 9), [t]), [c, l] = W(1);
|
|
2517
|
+
X(() => {
|
|
2518
|
+
l(n);
|
|
2519
2519
|
}, [n]);
|
|
2520
2520
|
const d = Re(() => {
|
|
2521
2521
|
const v = [];
|
|
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
|
);
|
|
@@ -2536,7 +2536,7 @@ const ps = Rn.div`
|
|
|
2536
2536
|
);
|
|
2537
2537
|
}
|
|
2538
2538
|
return v;
|
|
2539
|
-
}, [i, s,
|
|
2539
|
+
}, [i, s, c]), f = Re(
|
|
2540
2540
|
() => ({ "--rows": String(s) }),
|
|
2541
2541
|
[s]
|
|
2542
2542
|
);
|
|
@@ -2552,8 +2552,8 @@ const wr = Ue(
|
|
|
2552
2552
|
onInvalid: a,
|
|
2553
2553
|
placeholder: i,
|
|
2554
2554
|
className: s,
|
|
2555
|
-
inputMode:
|
|
2556
|
-
minLength:
|
|
2555
|
+
inputMode: c,
|
|
2556
|
+
minLength: l,
|
|
2557
2557
|
maxLength: d,
|
|
2558
2558
|
autoFocus: f = !1,
|
|
2559
2559
|
disabled: v = !1,
|
|
@@ -2561,22 +2561,22 @@ 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
|
-
inputMode:
|
|
2579
|
+
inputMode: c ?? (r === "number" ? "numeric" : "text"),
|
|
2580
2580
|
type: E ? Be.TEXT : r,
|
|
2581
2581
|
spellCheck: "false",
|
|
2582
2582
|
value: n,
|
|
@@ -2587,14 +2587,14 @@ const wr = Ue(
|
|
|
2587
2587
|
step: m,
|
|
2588
2588
|
tabIndex: p,
|
|
2589
2589
|
autoFocus: f,
|
|
2590
|
-
minLength:
|
|
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
|
)
|
|
@@ -2687,20 +2687,20 @@ const pa = ({ display: e, full: t, message: r }) => /* @__PURE__ */ o.jsxs(o.Fra
|
|
|
2687
2687
|
disabled: a,
|
|
2688
2688
|
multiple: i = !1,
|
|
2689
2689
|
required: s = !1,
|
|
2690
|
-
defaultValue:
|
|
2691
|
-
name:
|
|
2690
|
+
defaultValue: c,
|
|
2691
|
+
name: l,
|
|
2692
2692
|
onChange: d,
|
|
2693
2693
|
onChangeMultiple: f,
|
|
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: [
|
|
@@ -2710,17 +2710,17 @@ const pa = ({ display: e, full: t, message: r }) => /* @__PURE__ */ o.jsxs(o.Fra
|
|
|
2710
2710
|
{
|
|
2711
2711
|
defaultValue: "",
|
|
2712
2712
|
required: s,
|
|
2713
|
-
name:
|
|
2713
|
+
name: l,
|
|
2714
2714
|
disabled: a,
|
|
2715
2715
|
id: `select-${e}`,
|
|
2716
2716
|
className: "select-container-select",
|
|
2717
|
-
value: v ??
|
|
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
|
-
g && !
|
|
2723
|
-
r.map((
|
|
2722
|
+
g && !c && !i && /* @__PURE__ */ o.jsx("option", { selected: !0, disabled: !0, hidden: !0, value: "", children: g }),
|
|
2723
|
+
r.map((y, j) => /* @__PURE__ */ o.jsx("option", { value: y.value, children: y.label }, j))
|
|
2724
2724
|
]
|
|
2725
2725
|
}
|
|
2726
2726
|
),
|
|
@@ -2730,15 +2730,17 @@ 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
|
] });
|
|
2737
2737
|
}, js = ({ column: e, idx: t, row: r }) => {
|
|
2738
|
-
|
|
2738
|
+
var s;
|
|
2739
|
+
const n = r[e.id], a = e.onRowStyle ? e.onRowStyle(r) : {}, i = ((s = e.onDisable) == null ? void 0 : s.call(e, r)) ?? !1;
|
|
2739
2740
|
return /* @__PURE__ */ o.jsx(
|
|
2740
2741
|
"td",
|
|
2741
2742
|
{
|
|
2743
|
+
className: `${i ? "disabled" : ""}`,
|
|
2742
2744
|
style: {
|
|
2743
2745
|
minWidth: e.minWidth,
|
|
2744
2746
|
textAlign: e.align || "left",
|
|
@@ -2746,13 +2748,20 @@ const pa = ({ display: e, full: t, message: r }) => /* @__PURE__ */ o.jsxs(o.Fra
|
|
|
2746
2748
|
width: e.width,
|
|
2747
2749
|
...a
|
|
2748
2750
|
},
|
|
2749
|
-
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(
|
|
2750
2759
|
fo,
|
|
2751
2760
|
{
|
|
2752
2761
|
options: e.options ?? [],
|
|
2753
2762
|
value: n,
|
|
2754
|
-
onChange: (
|
|
2755
|
-
e.onEdit && e.onEdit(
|
|
2763
|
+
onChange: (c) => {
|
|
2764
|
+
e.onEdit && e.onEdit(c, r);
|
|
2756
2765
|
}
|
|
2757
2766
|
}
|
|
2758
2767
|
) : /* @__PURE__ */ o.jsx(
|
|
@@ -2762,8 +2771,8 @@ const pa = ({ display: e, full: t, message: r }) => /* @__PURE__ */ o.jsxs(o.Fra
|
|
|
2762
2771
|
value: n,
|
|
2763
2772
|
step: "0.01",
|
|
2764
2773
|
style: { textAlign: e.align || "left" },
|
|
2765
|
-
onChange: (
|
|
2766
|
-
e.onEdit && e.onEdit(
|
|
2774
|
+
onChange: (c) => {
|
|
2775
|
+
e.onEdit && e.onEdit(c.target.value, r);
|
|
2767
2776
|
}
|
|
2768
2777
|
}
|
|
2769
2778
|
) : e.format ? e.format(n) : n
|
|
@@ -2779,8 +2788,8 @@ function Bl(e) {
|
|
|
2779
2788
|
children: a,
|
|
2780
2789
|
element: i,
|
|
2781
2790
|
data: s = [],
|
|
2782
|
-
actions:
|
|
2783
|
-
columns:
|
|
2791
|
+
actions: c = [],
|
|
2792
|
+
columns: l = [],
|
|
2784
2793
|
loading: d,
|
|
2785
2794
|
onRowClick: f,
|
|
2786
2795
|
onColumnClick: v,
|
|
@@ -2788,55 +2797,58 @@ function Bl(e) {
|
|
|
2788
2797
|
emptyMessage: h,
|
|
2789
2798
|
hasMore: p,
|
|
2790
2799
|
onSelectionChange: m,
|
|
2791
|
-
hideToggleAll:
|
|
2800
|
+
hideToggleAll: y = !1,
|
|
2792
2801
|
limitSelect: j = void 0,
|
|
2793
|
-
getRowId:
|
|
2794
|
-
} = e, _ = re(null), [S,
|
|
2802
|
+
getRowId: b
|
|
2803
|
+
} = e, _ = re(null), [S, O] = W(
|
|
2795
2804
|
/* @__PURE__ */ new Set()
|
|
2796
|
-
), 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(() => {
|
|
2797
2808
|
if (S.size === s.length)
|
|
2798
|
-
|
|
2809
|
+
O(/* @__PURE__ */ new Set()), m == null || m([]);
|
|
2799
2810
|
else {
|
|
2800
|
-
let
|
|
2801
|
-
(
|
|
2811
|
+
let D = s.map(
|
|
2812
|
+
(R) => b ? b(R) : R.id ?? R
|
|
2802
2813
|
);
|
|
2803
|
-
j &&
|
|
2804
|
-
const
|
|
2805
|
-
|
|
2814
|
+
j && D.length > j && (D = D.slice(0, j));
|
|
2815
|
+
const M = new Set(D);
|
|
2816
|
+
O(M), m == null || m(
|
|
2806
2817
|
s.filter(
|
|
2807
|
-
(
|
|
2818
|
+
(R) => M.has(b ? b(R) : R.id ?? R)
|
|
2808
2819
|
)
|
|
2809
2820
|
);
|
|
2810
2821
|
}
|
|
2811
|
-
}, [s, m, j,
|
|
2812
|
-
(
|
|
2813
|
-
|
|
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));
|
|
2814
2826
|
},
|
|
2815
|
-
[f]
|
|
2816
|
-
),
|
|
2817
|
-
(
|
|
2818
|
-
|
|
2819
|
-
const
|
|
2820
|
-
if (
|
|
2821
|
-
|
|
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);
|
|
2822
2834
|
else {
|
|
2823
|
-
if (j &&
|
|
2835
|
+
if (j && A.size >= j)
|
|
2824
2836
|
return;
|
|
2825
|
-
|
|
2837
|
+
A.add(R);
|
|
2826
2838
|
}
|
|
2827
|
-
|
|
2828
|
-
const
|
|
2829
|
-
(
|
|
2839
|
+
O(A);
|
|
2840
|
+
const G = s.filter(
|
|
2841
|
+
(ie) => A.has(b ? b(ie) : ie.id ?? ie)
|
|
2830
2842
|
);
|
|
2831
|
-
m == null || m(
|
|
2843
|
+
m == null || m(G);
|
|
2832
2844
|
},
|
|
2833
|
-
[s,
|
|
2845
|
+
[s, b, j, m, S]
|
|
2834
2846
|
);
|
|
2835
|
-
return
|
|
2847
|
+
return X(() => {
|
|
2836
2848
|
if (!g || !p) return;
|
|
2837
|
-
const
|
|
2838
|
-
(
|
|
2839
|
-
|
|
2849
|
+
const D = new IntersectionObserver(
|
|
2850
|
+
(M) => {
|
|
2851
|
+
M[0].isIntersecting && g();
|
|
2840
2852
|
},
|
|
2841
2853
|
{
|
|
2842
2854
|
root: null,
|
|
@@ -2844,8 +2856,8 @@ function Bl(e) {
|
|
|
2844
2856
|
threshold: 1
|
|
2845
2857
|
}
|
|
2846
2858
|
);
|
|
2847
|
-
return _.current &&
|
|
2848
|
-
_.current &&
|
|
2859
|
+
return _.current && D.observe(_.current), () => {
|
|
2860
|
+
_.current && D.unobserve(_.current);
|
|
2849
2861
|
};
|
|
2850
2862
|
}, [g, p]), /* @__PURE__ */ o.jsxs("div", { className: "data-table-container", children: [
|
|
2851
2863
|
r && /* @__PURE__ */ o.jsx("h2", { className: "mb-2", children: r }),
|
|
@@ -2855,7 +2867,7 @@ function Bl(e) {
|
|
|
2855
2867
|
m && /* @__PURE__ */ o.jsx(
|
|
2856
2868
|
"th",
|
|
2857
2869
|
{
|
|
2858
|
-
className: `select-cell ${
|
|
2870
|
+
className: `select-cell ${y ? "hidden" : ""}`,
|
|
2859
2871
|
style: { width: "20px", textAlign: "center" },
|
|
2860
2872
|
children: /* @__PURE__ */ o.jsx(
|
|
2861
2873
|
wr,
|
|
@@ -2864,21 +2876,21 @@ function Bl(e) {
|
|
|
2864
2876
|
name: `select-th-${t}`,
|
|
2865
2877
|
type: Be.CHECKBOX,
|
|
2866
2878
|
checked: s.length > 0 && S.size === s.length,
|
|
2867
|
-
onChange:
|
|
2879
|
+
onChange: C
|
|
2868
2880
|
}
|
|
2869
2881
|
)
|
|
2870
2882
|
}
|
|
2871
2883
|
),
|
|
2872
|
-
|
|
2884
|
+
l.map((D, M) => /* @__PURE__ */ o.jsx(
|
|
2873
2885
|
xs,
|
|
2874
2886
|
{
|
|
2875
|
-
column:
|
|
2876
|
-
idx:
|
|
2887
|
+
column: D,
|
|
2888
|
+
idx: M,
|
|
2877
2889
|
onColumnClick: v
|
|
2878
2890
|
},
|
|
2879
|
-
|
|
2891
|
+
M
|
|
2880
2892
|
)),
|
|
2881
|
-
|
|
2893
|
+
c.length > 0 && /* @__PURE__ */ o.jsx(
|
|
2882
2894
|
"th",
|
|
2883
2895
|
{
|
|
2884
2896
|
style: {
|
|
@@ -2894,42 +2906,58 @@ function Bl(e) {
|
|
|
2894
2906
|
"td",
|
|
2895
2907
|
{
|
|
2896
2908
|
align: "center",
|
|
2897
|
-
colSpan:
|
|
2909
|
+
colSpan: l.length + (c.length > 0 ? 1 : 0),
|
|
2898
2910
|
children: /* @__PURE__ */ o.jsx("div", { className: "mt-3", children: /* @__PURE__ */ o.jsx(pa, { display: d }) })
|
|
2899
2911
|
}
|
|
2900
2912
|
) }) : /* @__PURE__ */ o.jsx(o.Fragment, {}),
|
|
2901
|
-
!d && s.map((
|
|
2902
|
-
|
|
2903
|
-
|
|
2904
|
-
|
|
2905
|
-
|
|
2906
|
-
|
|
2907
|
-
|
|
2908
|
-
|
|
2909
|
-
|
|
2910
|
-
|
|
2911
|
-
|
|
2912
|
-
|
|
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
|
+
}
|
|
2913
2941
|
),
|
|
2914
|
-
|
|
2915
|
-
|
|
2916
|
-
|
|
2917
|
-
|
|
2918
|
-
|
|
2919
|
-
|
|
2920
|
-
|
|
2921
|
-
|
|
2922
|
-
|
|
2923
|
-
|
|
2924
|
-
|
|
2925
|
-
|
|
2926
|
-
|
|
2927
|
-
|
|
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
|
+
)),
|
|
2928
2956
|
!d && s.length === 0 && /* @__PURE__ */ o.jsx(
|
|
2929
2957
|
ws,
|
|
2930
2958
|
{
|
|
2931
|
-
columns:
|
|
2932
|
-
actions:
|
|
2959
|
+
columns: l,
|
|
2960
|
+
actions: c,
|
|
2933
2961
|
emptyMessage: h
|
|
2934
2962
|
}
|
|
2935
2963
|
)
|
|
@@ -2979,63 +3007,63 @@ var Ps = Cs, un = { exports: {} }, Ts = () => {
|
|
|
2979
3007
|
}), e;
|
|
2980
3008
|
};
|
|
2981
3009
|
(function(e, t) {
|
|
2982
|
-
var r = ar && ar.__awaiter || function(s,
|
|
2983
|
-
return new (
|
|
3010
|
+
var r = ar && ar.__awaiter || function(s, c, l, d) {
|
|
3011
|
+
return new (l || (l = Promise))(function(f, v) {
|
|
2984
3012
|
function g(m) {
|
|
2985
3013
|
try {
|
|
2986
3014
|
p(d.next(m));
|
|
2987
|
-
} catch (
|
|
2988
|
-
v(
|
|
3015
|
+
} catch (y) {
|
|
3016
|
+
v(y);
|
|
2989
3017
|
}
|
|
2990
3018
|
}
|
|
2991
3019
|
function h(m) {
|
|
2992
3020
|
try {
|
|
2993
3021
|
p(d.throw(m));
|
|
2994
|
-
} catch (
|
|
2995
|
-
v(
|
|
3022
|
+
} catch (y) {
|
|
3023
|
+
v(y);
|
|
2996
3024
|
}
|
|
2997
3025
|
}
|
|
2998
3026
|
function p(m) {
|
|
2999
|
-
m.done ? f(m.value) : new
|
|
3000
|
-
|
|
3027
|
+
m.done ? f(m.value) : new l(function(y) {
|
|
3028
|
+
y(m.value);
|
|
3001
3029
|
}).then(g, h);
|
|
3002
3030
|
}
|
|
3003
|
-
p((d = d.apply(s,
|
|
3031
|
+
p((d = d.apply(s, c || [])).next());
|
|
3004
3032
|
});
|
|
3005
3033
|
}, n = ar && ar.__importDefault || function(s) {
|
|
3006
3034
|
return s && s.__esModule ? s : { default: s };
|
|
3007
3035
|
};
|
|
3008
3036
|
Object.defineProperty(t, "__esModule", { value: !0 });
|
|
3009
3037
|
const a = n(Ts);
|
|
3010
|
-
function i(s,
|
|
3011
|
-
let
|
|
3038
|
+
function i(s, c = "maxAge") {
|
|
3039
|
+
let l, d, f;
|
|
3012
3040
|
const v = () => r(this, void 0, void 0, function* () {
|
|
3013
|
-
if (
|
|
3041
|
+
if (l !== void 0)
|
|
3014
3042
|
return;
|
|
3015
3043
|
const p = (m) => r(this, void 0, void 0, function* () {
|
|
3016
3044
|
f = a.default();
|
|
3017
|
-
const
|
|
3018
|
-
if (
|
|
3045
|
+
const y = m[1][c] - Date.now();
|
|
3046
|
+
if (y <= 0) {
|
|
3019
3047
|
s.delete(m[0]), f.resolve();
|
|
3020
3048
|
return;
|
|
3021
3049
|
}
|
|
3022
|
-
return
|
|
3050
|
+
return l = m[0], d = setTimeout(() => {
|
|
3023
3051
|
s.delete(m[0]), f && f.resolve();
|
|
3024
|
-
},
|
|
3052
|
+
}, y), typeof d.unref == "function" && d.unref(), f.promise;
|
|
3025
3053
|
});
|
|
3026
3054
|
try {
|
|
3027
3055
|
for (const m of s)
|
|
3028
3056
|
yield p(m);
|
|
3029
3057
|
} catch {
|
|
3030
3058
|
}
|
|
3031
|
-
|
|
3059
|
+
l = void 0;
|
|
3032
3060
|
}), g = () => {
|
|
3033
|
-
|
|
3061
|
+
l = void 0, d !== void 0 && (clearTimeout(d), d = void 0), f !== void 0 && (f.reject(void 0), f = void 0);
|
|
3034
3062
|
}, h = s.set.bind(s);
|
|
3035
3063
|
return s.set = (p, m) => {
|
|
3036
3064
|
s.has(p) && s.delete(p);
|
|
3037
|
-
const
|
|
3038
|
-
return
|
|
3065
|
+
const y = h(p, m);
|
|
3066
|
+
return l && l === p && g(), v(), y;
|
|
3039
3067
|
}, v(), s;
|
|
3040
3068
|
}
|
|
3041
3069
|
t.default = i, e.exports = i, e.exports.default = i;
|
|
@@ -3044,14 +3072,14 @@ var Rs = un.exports;
|
|
|
3044
3072
|
const As = Ps, Is = Rs, Xr = /* @__PURE__ */ new WeakMap(), vo = /* @__PURE__ */ new WeakMap(), jr = (e, { cacheKey: t, cache: r = /* @__PURE__ */ new Map(), maxAge: n } = {}) => {
|
|
3045
3073
|
typeof n == "number" && Is(r);
|
|
3046
3074
|
const a = function(...i) {
|
|
3047
|
-
const s = t ? t(i) : i[0],
|
|
3048
|
-
if (
|
|
3049
|
-
return
|
|
3050
|
-
const
|
|
3075
|
+
const s = t ? t(i) : i[0], c = r.get(s);
|
|
3076
|
+
if (c)
|
|
3077
|
+
return c.data;
|
|
3078
|
+
const l = e.apply(this, i);
|
|
3051
3079
|
return r.set(s, {
|
|
3052
|
-
data:
|
|
3080
|
+
data: l,
|
|
3053
3081
|
maxAge: n ? Date.now() + n : Number.POSITIVE_INFINITY
|
|
3054
|
-
}),
|
|
3082
|
+
}), l;
|
|
3055
3083
|
};
|
|
3056
3084
|
return As(a, e, {
|
|
3057
3085
|
ignoreNonConfigurable: !0
|
|
@@ -3106,18 +3134,18 @@ function dn(e) {
|
|
|
3106
3134
|
}
|
|
3107
3135
|
if (e.indexOf("-") === -1 || !Fs(e))
|
|
3108
3136
|
return e;
|
|
3109
|
-
var a = e.split("-"), i = a[0], s = a[1],
|
|
3110
|
-
return "".concat(i, "-").concat(
|
|
3137
|
+
var a = e.split("-"), i = a[0], s = a[1], c = s === void 0 ? "" : s;
|
|
3138
|
+
return "".concat(i, "-").concat(c.toUpperCase());
|
|
3111
3139
|
}
|
|
3112
3140
|
function Ws(e) {
|
|
3113
3141
|
var t = e === void 0 ? {} : e, r = t.useFallbackLocale, n = r === void 0 ? !0 : r, a = t.fallbackLocale, i = a === void 0 ? "en-US" : a, s = [];
|
|
3114
3142
|
if (typeof navigator < "u") {
|
|
3115
|
-
for (var
|
|
3143
|
+
for (var c = navigator.languages || [], l = [], d = 0, f = c; d < f.length; d++) {
|
|
3116
3144
|
var v = f[d];
|
|
3117
|
-
|
|
3145
|
+
l = l.concat(ga(v));
|
|
3118
3146
|
}
|
|
3119
3147
|
var g = navigator.language, h = g && ga(g);
|
|
3120
|
-
s = s.concat(
|
|
3148
|
+
s = s.concat(l, h);
|
|
3121
3149
|
}
|
|
3122
3150
|
return n && s.push(i), s.filter(Ms).map(dn).filter(Ls);
|
|
3123
3151
|
}
|
|
@@ -3181,8 +3209,8 @@ var jo = Fe(Q, Dt, -1), Mn = Fe(Q, Dt, 1), Ar = Bt(Mn), So = Fe(Q, Ar, -1), zs =
|
|
|
3181
3209
|
function Ln(e, t) {
|
|
3182
3210
|
return function(n, a) {
|
|
3183
3211
|
a === void 0 && (a = t);
|
|
3184
|
-
var i = Q(n), s = ze(n) + a,
|
|
3185
|
-
return
|
|
3212
|
+
var i = Q(n), s = ze(n) + a, c = /* @__PURE__ */ new Date();
|
|
3213
|
+
return c.setFullYear(i, s, 1), c.setHours(0, 0, 0, 0), e(c);
|
|
3186
3214
|
};
|
|
3187
3215
|
}
|
|
3188
3216
|
function at(e) {
|
|
@@ -3193,8 +3221,8 @@ var Do = Ln(at, -1), Fn = Ln(at, 1), zt = Bt(Fn), Oo = Ln(zt, -1), Gs = Ut(at, z
|
|
|
3193
3221
|
function Hs(e, t) {
|
|
3194
3222
|
return function(n, a) {
|
|
3195
3223
|
a === void 0 && (a = t);
|
|
3196
|
-
var i = Q(n), s = ze(n),
|
|
3197
|
-
return
|
|
3224
|
+
var i = Q(n), s = ze(n), c = Tr(n) + a, l = /* @__PURE__ */ new Date();
|
|
3225
|
+
return l.setFullYear(i, s, c), l.setHours(0, 0, 0, 0), e(l);
|
|
3198
3226
|
};
|
|
3199
3227
|
}
|
|
3200
3228
|
function Gt(e) {
|
|
@@ -3205,7 +3233,7 @@ var qs = Hs(Gt, 1), Wn = Bt(qs), Xs = Ut(Gt, Wn);
|
|
|
3205
3233
|
function No(e) {
|
|
3206
3234
|
return Tr(zt(e));
|
|
3207
3235
|
}
|
|
3208
|
-
var
|
|
3236
|
+
var fe = {
|
|
3209
3237
|
GREGORY: "gregory",
|
|
3210
3238
|
HEBREW: "hebrew",
|
|
3211
3239
|
ISLAMIC: "islamic",
|
|
@@ -3282,15 +3310,15 @@ var Zs = { day: "numeric" }, ec = {
|
|
|
3282
3310
|
year: "numeric"
|
|
3283
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];
|
|
3284
3312
|
function Vt(e, t) {
|
|
3285
|
-
t === void 0 && (t =
|
|
3313
|
+
t === void 0 && (t = fe.ISO_8601);
|
|
3286
3314
|
var r = e.getDay();
|
|
3287
3315
|
switch (t) {
|
|
3288
|
-
case
|
|
3316
|
+
case fe.ISO_8601:
|
|
3289
3317
|
return (r + 6) % 7;
|
|
3290
|
-
case
|
|
3318
|
+
case fe.ISLAMIC:
|
|
3291
3319
|
return (r + 1) % 7;
|
|
3292
|
-
case
|
|
3293
|
-
case
|
|
3320
|
+
case fe.HEBREW:
|
|
3321
|
+
case fe.GREGORY:
|
|
3294
3322
|
return r;
|
|
3295
3323
|
default:
|
|
3296
3324
|
throw new Error("Unsupported calendar type.");
|
|
@@ -3305,15 +3333,15 @@ function vc(e) {
|
|
|
3305
3333
|
return Q(t);
|
|
3306
3334
|
}
|
|
3307
3335
|
function fn(e, t) {
|
|
3308
|
-
t === void 0 && (t =
|
|
3336
|
+
t === void 0 && (t = fe.ISO_8601);
|
|
3309
3337
|
var r = Q(e), n = ze(e), a = e.getDate() - Vt(e, t);
|
|
3310
3338
|
return new Date(r, n, a);
|
|
3311
3339
|
}
|
|
3312
3340
|
function mc(e, t) {
|
|
3313
|
-
t === void 0 && (t =
|
|
3314
|
-
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;
|
|
3315
3343
|
do
|
|
3316
|
-
i = new Date(a, 0, r ===
|
|
3344
|
+
i = new Date(a, 0, r === fe.ISO_8601 ? 4 : 1), s = fn(i, t), a -= 1;
|
|
3317
3345
|
while (e < s);
|
|
3318
3346
|
return Math.round((n.getTime() - s.getTime()) / (864e5 * 7)) + 1;
|
|
3319
3347
|
}
|
|
@@ -3464,14 +3492,14 @@ function Sc(e) {
|
|
|
3464
3492
|
return e.getDay() === (/* @__PURE__ */ new Date()).getDay();
|
|
3465
3493
|
}
|
|
3466
3494
|
function To(e, t) {
|
|
3467
|
-
t === void 0 && (t =
|
|
3495
|
+
t === void 0 && (t = fe.ISO_8601);
|
|
3468
3496
|
var r = e.getDay();
|
|
3469
3497
|
switch (t) {
|
|
3470
|
-
case
|
|
3471
|
-
case
|
|
3498
|
+
case fe.ISLAMIC:
|
|
3499
|
+
case fe.HEBREW:
|
|
3472
3500
|
return r === fc || r === ya;
|
|
3473
|
-
case
|
|
3474
|
-
case
|
|
3501
|
+
case fe.ISO_8601:
|
|
3502
|
+
case fe.GREGORY:
|
|
3475
3503
|
return r === ya || r === dc;
|
|
3476
3504
|
default:
|
|
3477
3505
|
throw new Error("Unsupported calendar type.");
|
|
@@ -3479,40 +3507,40 @@ function To(e, t) {
|
|
|
3479
3507
|
}
|
|
3480
3508
|
var Pe = "react-calendar__navigation";
|
|
3481
3509
|
function Dc(e) {
|
|
3482
|
-
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,
|
|
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() {
|
|
3483
3511
|
if (K.getFullYear() < 0)
|
|
3484
3512
|
return !0;
|
|
3485
3513
|
var te = bc(ne, t);
|
|
3486
3514
|
return d && d >= te;
|
|
3487
3515
|
}(), ke = ee && function() {
|
|
3488
|
-
if (
|
|
3516
|
+
if (le.getFullYear() < 0)
|
|
3489
3517
|
return !0;
|
|
3490
3518
|
var te = xc(ne, t);
|
|
3491
3519
|
return d && d >= te;
|
|
3492
|
-
}(), me =
|
|
3493
|
-
function
|
|
3494
|
-
|
|
3520
|
+
}(), me = l && l < Z, pe = ee && l && l < Se;
|
|
3521
|
+
function ue() {
|
|
3522
|
+
G(K, "prev");
|
|
3495
3523
|
}
|
|
3496
3524
|
function ae() {
|
|
3497
|
-
|
|
3525
|
+
G(le, "prev2");
|
|
3498
3526
|
}
|
|
3499
3527
|
function De() {
|
|
3500
|
-
|
|
3528
|
+
G(Z, "next");
|
|
3501
3529
|
}
|
|
3502
3530
|
function _e() {
|
|
3503
|
-
|
|
3531
|
+
G(Se, "next2");
|
|
3504
3532
|
}
|
|
3505
|
-
function
|
|
3533
|
+
function he(te) {
|
|
3506
3534
|
var Ce = function() {
|
|
3507
3535
|
switch (ne) {
|
|
3508
3536
|
case "century":
|
|
3509
|
-
return jc(
|
|
3537
|
+
return jc(c, s, te);
|
|
3510
3538
|
case "decade":
|
|
3511
|
-
return Po(
|
|
3539
|
+
return Po(c, s, te);
|
|
3512
3540
|
case "year":
|
|
3513
|
-
return s(
|
|
3541
|
+
return s(c, te);
|
|
3514
3542
|
case "month":
|
|
3515
|
-
return a(
|
|
3543
|
+
return a(c, te);
|
|
3516
3544
|
default:
|
|
3517
3545
|
throw new Error("Invalid view: ".concat(ne, "."));
|
|
3518
3546
|
}
|
|
@@ -3520,15 +3548,15 @@ function Dc(e) {
|
|
|
3520
3548
|
return h ? h({
|
|
3521
3549
|
date: te,
|
|
3522
3550
|
label: Ce,
|
|
3523
|
-
locale:
|
|
3551
|
+
locale: c || po() || void 0,
|
|
3524
3552
|
view: ne
|
|
3525
3553
|
}) : Ce;
|
|
3526
3554
|
}
|
|
3527
3555
|
function Ot() {
|
|
3528
3556
|
var te = "".concat(Pe, "__label");
|
|
3529
|
-
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] });
|
|
3530
3558
|
}
|
|
3531
|
-
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] });
|
|
3532
3560
|
}
|
|
3533
3561
|
var ft = function() {
|
|
3534
3562
|
return ft = Object.assign || function(e) {
|
|
@@ -3550,8 +3578,8 @@ function xa(e) {
|
|
|
3550
3578
|
return "".concat(e, "%");
|
|
3551
3579
|
}
|
|
3552
3580
|
function Yn(e) {
|
|
3553
|
-
var t = e.children, r = e.className, n = e.count, a = e.direction, i = e.offset, s = e.style,
|
|
3554
|
-
return o.jsx("div", ft({ className: r, style: ft({ display: "flex", flexDirection: a, flexWrap:
|
|
3581
|
+
var t = e.children, r = e.className, n = e.count, a = e.direction, i = e.offset, s = e.style, c = e.wrap, l = Oc(e, ["children", "className", "count", "direction", "offset", "style", "wrap"]);
|
|
3582
|
+
return o.jsx("div", ft({ className: r, style: ft({ display: "flex", flexDirection: a, flexWrap: c ? "wrap" : "nowrap" }, s) }, l, { children: zo.map(t, function(d, f) {
|
|
3555
3583
|
var v = i && f === 0 ? xa(100 * i / n) : null;
|
|
3556
3584
|
return Go(d, ft(ft({}, d.props), { style: {
|
|
3557
3585
|
flexBasis: xa(100 / n),
|
|
@@ -3594,7 +3622,7 @@ function _c(e) {
|
|
|
3594
3622
|
var t = e.value, r = e.date, n = e.hover, a = "react-calendar__tile", i = [a];
|
|
3595
3623
|
if (!r)
|
|
3596
3624
|
return i;
|
|
3597
|
-
var s = /* @__PURE__ */ new Date(),
|
|
3625
|
+
var s = /* @__PURE__ */ new Date(), c = function() {
|
|
3598
3626
|
if (Array.isArray(r))
|
|
3599
3627
|
return r;
|
|
3600
3628
|
var h = e.dateType;
|
|
@@ -3602,9 +3630,9 @@ function _c(e) {
|
|
|
3602
3630
|
throw new Error("dateType is required when date is not an array of two dates");
|
|
3603
3631
|
return ba(h, r);
|
|
3604
3632
|
}();
|
|
3605
|
-
if (Yt(s,
|
|
3633
|
+
if (Yt(s, c) && i.push("".concat(a, "--now")), !t || !kc(t))
|
|
3606
3634
|
return i;
|
|
3607
|
-
var
|
|
3635
|
+
var l = function() {
|
|
3608
3636
|
if (Array.isArray(t))
|
|
3609
3637
|
return t;
|
|
3610
3638
|
var h = e.valueType;
|
|
@@ -3612,41 +3640,41 @@ function _c(e) {
|
|
|
3612
3640
|
throw new Error("valueType is required when value is not an array of two dates");
|
|
3613
3641
|
return ba(h, t);
|
|
3614
3642
|
}();
|
|
3615
|
-
Ec(
|
|
3616
|
-
var d = wa(
|
|
3643
|
+
Ec(l, c) ? i.push("".concat(a, "--active")) : Ro(l, c) && i.push("".concat(a, "--hasActive"));
|
|
3644
|
+
var d = wa(l, c, "".concat(a, "--range"));
|
|
3617
3645
|
i.push.apply(i, d);
|
|
3618
3646
|
var f = Array.isArray(t) ? t : [t];
|
|
3619
3647
|
if (n && f.length === 1) {
|
|
3620
|
-
var v = n >
|
|
3648
|
+
var v = n > l[0] ? [l[0], n] : [n, l[0]], g = wa(v, c, "".concat(a, "--hover"));
|
|
3621
3649
|
i.push.apply(i, g);
|
|
3622
3650
|
}
|
|
3623
3651
|
return i;
|
|
3624
3652
|
}
|
|
3625
3653
|
function $r(e) {
|
|
3626
|
-
for (var t = e.className, r = e.count, n = r === void 0 ? 3 : r, a = e.dateTransform, i = e.dateType, s = e.end,
|
|
3627
|
-
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);
|
|
3628
3656
|
m.push(d({
|
|
3629
3657
|
classes: _c({
|
|
3630
3658
|
date: j,
|
|
3631
3659
|
dateType: i,
|
|
3632
|
-
hover:
|
|
3660
|
+
hover: c,
|
|
3633
3661
|
value: h,
|
|
3634
3662
|
valueType: p
|
|
3635
3663
|
}),
|
|
3636
3664
|
date: j
|
|
3637
3665
|
}));
|
|
3638
3666
|
}
|
|
3639
|
-
return o.jsx(Yn, { className: t, count: n, offset:
|
|
3667
|
+
return o.jsx(Yn, { className: t, count: n, offset: l, wrap: !0, children: m });
|
|
3640
3668
|
}
|
|
3641
3669
|
function Mr(e) {
|
|
3642
|
-
var t = e.activeStartDate, r = e.children, n = e.classes, a = e.date, i = e.formatAbbr, s = e.locale,
|
|
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() {
|
|
3643
3671
|
var S = { activeStartDate: t, date: a, view: j };
|
|
3644
3672
|
return typeof p == "function" ? p(S) : p;
|
|
3645
3673
|
}, [t, a, p, j]), _ = Re(function() {
|
|
3646
3674
|
var S = { activeStartDate: t, date: a, view: j };
|
|
3647
3675
|
return typeof m == "function" ? m(S) : m;
|
|
3648
3676
|
}, [t, a, m, j]);
|
|
3649
|
-
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) {
|
|
3650
3678
|
return v(a, S);
|
|
3651
3679
|
} : void 0, onFocus: g ? function() {
|
|
3652
3680
|
return g(a);
|
|
@@ -3671,8 +3699,8 @@ var hn = function() {
|
|
|
3671
3699
|
return r;
|
|
3672
3700
|
}, ja = "react-calendar__century-view__decades__decade";
|
|
3673
3701
|
function Pc(e) {
|
|
3674
|
-
var t = e.classes, r = t === void 0 ? [] : t, n = e.currentCentury, a = e.formatYear, i = a === void 0 ? Ir : a, s = Cc(e, ["classes", "currentCentury", "formatYear"]),
|
|
3675
|
-
return r && d.push.apply(d, r), d.push(ja), St(
|
|
3702
|
+
var t = e.classes, r = t === void 0 ? [] : t, n = e.currentCentury, a = e.formatYear, i = a === void 0 ? Ir : a, s = Cc(e, ["classes", "currentCentury", "formatYear"]), c = s.date, l = s.locale, d = [];
|
|
3703
|
+
return r && d.push.apply(d, r), d.push(ja), St(c).getFullYear() !== n && d.push("".concat(ja, "--neighboringCentury")), o.jsx(Mr, hn({}, s, { classes: d, maxDateTransform: Rr, minDateTransform: Ge, view: "century", children: Po(l, i, c) }));
|
|
3676
3704
|
}
|
|
3677
3705
|
var vn = function() {
|
|
3678
3706
|
return vn = Object.assign || function(e) {
|
|
@@ -3691,11 +3719,11 @@ var vn = function() {
|
|
|
3691
3719
|
return r;
|
|
3692
3720
|
};
|
|
3693
3721
|
function Tc(e) {
|
|
3694
|
-
var t = e.activeStartDate, r = e.hover, n = e.showNeighboringCentury, a = e.value, i = e.valueType, s = Sa(e, ["activeStartDate", "hover", "showNeighboringCentury", "value", "valueType"]),
|
|
3695
|
-
return o.jsx($r, { className: "react-calendar__century-view__decades", dateTransform: Ge, dateType: "decade", end:
|
|
3722
|
+
var t = e.activeStartDate, r = e.hover, n = e.showNeighboringCentury, a = e.value, i = e.valueType, s = Sa(e, ["activeStartDate", "hover", "showNeighboringCentury", "value", "valueType"]), c = hc(t), l = c + (n ? 119 : 99);
|
|
3723
|
+
return o.jsx($r, { className: "react-calendar__century-view__decades", dateTransform: Ge, dateType: "decade", end: l, hover: r, renderTile: function(d) {
|
|
3696
3724
|
var f = d.date, v = Sa(d, ["date"]);
|
|
3697
|
-
return o.jsx(Pc, vn({}, s, v, { activeStartDate: t, currentCentury:
|
|
3698
|
-
}, start:
|
|
3725
|
+
return o.jsx(Pc, vn({}, s, v, { activeStartDate: t, currentCentury: c, date: f }), f.getTime());
|
|
3726
|
+
}, start: c, step: 10, value: a, valueType: i });
|
|
3699
3727
|
}
|
|
3700
3728
|
var mn = function() {
|
|
3701
3729
|
return mn = Object.assign || function(e) {
|
|
@@ -3729,8 +3757,8 @@ var pn = function() {
|
|
|
3729
3757
|
return r;
|
|
3730
3758
|
}, Da = "react-calendar__decade-view__years__year";
|
|
3731
3759
|
function Ic(e) {
|
|
3732
|
-
var t = e.classes, r = t === void 0 ? [] : t, n = e.currentDecade, a = e.formatYear, i = a === void 0 ? Ir : a, s = Ac(e, ["classes", "currentDecade", "formatYear"]),
|
|
3733
|
-
return r && d.push.apply(d, r), d.push(Da), Ge(
|
|
3760
|
+
var t = e.classes, r = t === void 0 ? [] : t, n = e.currentDecade, a = e.formatYear, i = a === void 0 ? Ir : a, s = Ac(e, ["classes", "currentDecade", "formatYear"]), c = s.date, l = s.locale, d = [];
|
|
3761
|
+
return r && d.push.apply(d, r), d.push(Da), Ge(c).getFullYear() !== n && d.push("".concat(Da, "--neighboringDecade")), o.jsx(Mr, pn({}, s, { classes: d, maxDateTransform: Ar, minDateTransform: Dt, view: "decade", children: i(l, c) }));
|
|
3734
3762
|
}
|
|
3735
3763
|
var gn = function() {
|
|
3736
3764
|
return gn = Object.assign || function(e) {
|
|
@@ -3749,11 +3777,11 @@ var gn = function() {
|
|
|
3749
3777
|
return r;
|
|
3750
3778
|
};
|
|
3751
3779
|
function $c(e) {
|
|
3752
|
-
var t = e.activeStartDate, r = e.hover, n = e.showNeighboringDecade, a = e.value, i = e.valueType, s = Oa(e, ["activeStartDate", "hover", "showNeighboringDecade", "value", "valueType"]),
|
|
3753
|
-
return o.jsx($r, { className: "react-calendar__decade-view__years", dateTransform: Dt, dateType: "year", end:
|
|
3780
|
+
var t = e.activeStartDate, r = e.hover, n = e.showNeighboringDecade, a = e.value, i = e.valueType, s = Oa(e, ["activeStartDate", "hover", "showNeighboringDecade", "value", "valueType"]), c = vc(t), l = c + (n ? 11 : 9);
|
|
3781
|
+
return o.jsx($r, { className: "react-calendar__decade-view__years", dateTransform: Dt, dateType: "year", end: l, hover: r, renderTile: function(d) {
|
|
3754
3782
|
var f = d.date, v = Oa(d, ["date"]);
|
|
3755
|
-
return o.jsx(Ic, gn({}, s, v, { activeStartDate: t, currentDecade:
|
|
3756
|
-
}, start:
|
|
3783
|
+
return o.jsx(Ic, gn({}, s, v, { activeStartDate: t, currentDecade: c, date: f }), f.getTime());
|
|
3784
|
+
}, start: c, value: a, valueType: i });
|
|
3757
3785
|
}
|
|
3758
3786
|
var yn = function() {
|
|
3759
3787
|
return yn = Object.assign || function(e) {
|
|
@@ -3791,8 +3819,8 @@ var bn = function() {
|
|
|
3791
3819
|
return e.concat(i || Array.prototype.slice.call(t));
|
|
3792
3820
|
}, Fc = "react-calendar__year-view__months__month";
|
|
3793
3821
|
function Wc(e) {
|
|
3794
|
-
var t = e.classes, r = t === void 0 ? [] : t, n = e.formatMonth, a = n === void 0 ? cc : n, i = e.formatMonthYear, s = i === void 0 ? Eo : i,
|
|
3795
|
-
return o.jsx(Mr, bn({},
|
|
3822
|
+
var t = e.classes, r = t === void 0 ? [] : t, n = e.formatMonth, a = n === void 0 ? cc : n, i = e.formatMonthYear, s = i === void 0 ? Eo : i, c = Lc(e, ["classes", "formatMonth", "formatMonthYear"]), l = c.date, d = c.locale;
|
|
3823
|
+
return o.jsx(Mr, bn({}, c, { classes: Na(Na([], r, !0), [Fc], !1), formatAbbr: s, maxDateTransform: zt, minDateTransform: at, view: "year", children: a(d, l) }));
|
|
3796
3824
|
}
|
|
3797
3825
|
var xn = function() {
|
|
3798
3826
|
return xn = Object.assign || function(e) {
|
|
@@ -3811,11 +3839,11 @@ var xn = function() {
|
|
|
3811
3839
|
return r;
|
|
3812
3840
|
};
|
|
3813
3841
|
function Vc(e) {
|
|
3814
|
-
var t = e.activeStartDate, r = e.hover, n = e.value, a = e.valueType, i = Ea(e, ["activeStartDate", "hover", "value", "valueType"]), s = 0,
|
|
3842
|
+
var t = e.activeStartDate, r = e.hover, n = e.value, a = e.valueType, i = Ea(e, ["activeStartDate", "hover", "value", "valueType"]), s = 0, c = 11, l = Q(t);
|
|
3815
3843
|
return o.jsx($r, { className: "react-calendar__year-view__months", dateTransform: function(d) {
|
|
3816
3844
|
var f = /* @__PURE__ */ new Date();
|
|
3817
|
-
return f.setFullYear(
|
|
3818
|
-
}, dateType: "month", end:
|
|
3845
|
+
return f.setFullYear(l, d, 1), at(f);
|
|
3846
|
+
}, dateType: "month", end: c, hover: r, renderTile: function(d) {
|
|
3819
3847
|
var f = d.date, v = Ea(d, ["date"]);
|
|
3820
3848
|
return o.jsx(Wc, xn({}, i, v, { activeStartDate: t, date: f }), f.getTime());
|
|
3821
3849
|
}, start: s, value: n, valueType: a });
|
|
@@ -3852,8 +3880,8 @@ var jn = function() {
|
|
|
3852
3880
|
return r;
|
|
3853
3881
|
}, Jr = "react-calendar__month-view__days__day";
|
|
3854
3882
|
function Uc(e) {
|
|
3855
|
-
var t = e.calendarType, r = e.classes, n = r === void 0 ? [] : r, a = e.currentMonthIndex, i = e.formatDay, s = i === void 0 ? ic : i,
|
|
3856
|
-
return n && g.push.apply(g, n), g.push(Jr), To(f, t) && g.push("".concat(Jr, "--weekend")), f.getMonth() !== a && g.push("".concat(Jr, "--neighboringMonth")), o.jsx(Mr, jn({}, d, { classes: g, formatAbbr:
|
|
3883
|
+
var t = e.calendarType, r = e.classes, n = r === void 0 ? [] : r, a = e.currentMonthIndex, i = e.formatDay, s = i === void 0 ? ic : i, c = e.formatLongDate, l = c === void 0 ? sc : c, d = Bc(e, ["calendarType", "classes", "currentMonthIndex", "formatDay", "formatLongDate"]), f = d.date, v = d.locale, g = [];
|
|
3884
|
+
return n && g.push.apply(g, n), g.push(Jr), To(f, t) && g.push("".concat(Jr, "--weekend")), f.getMonth() !== a && g.push("".concat(Jr, "--neighboringMonth")), o.jsx(Mr, jn({}, d, { classes: g, formatAbbr: l, maxDateTransform: Wn, minDateTransform: Gt, view: "month", children: s(v, f) }));
|
|
3857
3885
|
}
|
|
3858
3886
|
var Sn = function() {
|
|
3859
3887
|
return Sn = Object.assign || function(e) {
|
|
@@ -3872,33 +3900,33 @@ var Sn = function() {
|
|
|
3872
3900
|
return r;
|
|
3873
3901
|
};
|
|
3874
3902
|
function zc(e) {
|
|
3875
|
-
var t = e.activeStartDate, r = e.calendarType, n = e.hover, a = e.showFixedNumberOfWeeks, i = e.showNeighboringMonth, s = e.value,
|
|
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() {
|
|
3876
3904
|
if (a)
|
|
3877
3905
|
return p + 6 * 7 - 1;
|
|
3878
|
-
var
|
|
3906
|
+
var y = No(t);
|
|
3879
3907
|
if (i) {
|
|
3880
3908
|
var j = /* @__PURE__ */ new Date();
|
|
3881
|
-
j.setFullYear(d, f,
|
|
3882
|
-
var
|
|
3883
|
-
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;
|
|
3884
3912
|
}
|
|
3885
|
-
return
|
|
3913
|
+
return y;
|
|
3886
3914
|
}();
|
|
3887
|
-
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) {
|
|
3888
3916
|
var j = /* @__PURE__ */ new Date();
|
|
3889
|
-
return j.setFullYear(d, f,
|
|
3890
|
-
}, dateType: "day", hover: n, end: m, renderTile: function(
|
|
3891
|
-
var j =
|
|
3892
|
-
return o.jsx(Uc, Sn({},
|
|
3893
|
-
}, offset: h, start: p, value: s, valueType:
|
|
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());
|
|
3921
|
+
}, offset: h, start: p, value: s, valueType: c });
|
|
3894
3922
|
}
|
|
3895
3923
|
var Ao = "react-calendar__month-view__weekdays", Qr = "".concat(Ao, "__weekday");
|
|
3896
3924
|
function Gc(e) {
|
|
3897
|
-
for (var t = e.calendarType, r = e.formatShortWeekday, n = r === void 0 ? lc : r, a = e.formatWeekday, i = a === void 0 ? uc : a, s = e.locale,
|
|
3925
|
+
for (var t = e.calendarType, r = e.formatShortWeekday, n = r === void 0 ? lc : r, a = e.formatWeekday, i = a === void 0 ? uc : a, s = e.locale, c = e.onMouseLeave, l = /* @__PURE__ */ new Date(), d = at(l), f = Q(d), v = ze(d), g = [], h = 1; h <= 7; h += 1) {
|
|
3898
3926
|
var p = new Date(f, v, h - Vt(d, t)), m = i(s, p);
|
|
3899
3927
|
g.push(o.jsx("div", { className: Pr(Qr, Sc(p) && "".concat(Qr, "--current"), To(p, t) && "".concat(Qr, "--weekend")), children: o.jsx("abbr", { "aria-label": m, title: m, children: n(s, p).replace(".", "") }) }, h));
|
|
3900
3928
|
}
|
|
3901
|
-
return o.jsx(Yn, { className: Ao, count: 7, onFocus:
|
|
3929
|
+
return o.jsx(Yn, { className: Ao, count: 7, onFocus: c, onMouseOver: c, children: g });
|
|
3902
3930
|
}
|
|
3903
3931
|
var Sr = function() {
|
|
3904
3932
|
return Sr = Object.assign || function(e) {
|
|
@@ -3919,14 +3947,14 @@ var Sr = function() {
|
|
|
3919
3947
|
function Hc(e) {
|
|
3920
3948
|
var t = e.onClickWeekNumber, r = e.weekNumber, n = o.jsx("span", { children: r });
|
|
3921
3949
|
if (t) {
|
|
3922
|
-
var a = e.date, i = e.onClickWeekNumber, s = e.weekNumber,
|
|
3923
|
-
return o.jsx("button", Sr({},
|
|
3924
|
-
return i(s, a,
|
|
3950
|
+
var a = e.date, i = e.onClickWeekNumber, s = e.weekNumber, c = _a(e, ["date", "onClickWeekNumber", "weekNumber"]);
|
|
3951
|
+
return o.jsx("button", Sr({}, c, { className: Ca, onClick: function(l) {
|
|
3952
|
+
return i(s, a, l);
|
|
3925
3953
|
}, type: "button", children: n }));
|
|
3926
3954
|
} else {
|
|
3927
3955
|
e.date, e.onClickWeekNumber, e.weekNumber;
|
|
3928
|
-
var
|
|
3929
|
-
return o.jsx("div", Sr({},
|
|
3956
|
+
var c = _a(e, ["date", "onClickWeekNumber", "weekNumber"]);
|
|
3957
|
+
return o.jsx("div", Sr({}, c, { className: Ca, children: n }));
|
|
3930
3958
|
}
|
|
3931
3959
|
}
|
|
3932
3960
|
function qc(e) {
|
|
@@ -3935,15 +3963,15 @@ function qc(e) {
|
|
|
3935
3963
|
return 6;
|
|
3936
3964
|
var d = No(t), f = Vt(t, r), v = d - (7 - f);
|
|
3937
3965
|
return 1 + Math.ceil(v / 7);
|
|
3938
|
-
}(),
|
|
3966
|
+
}(), c = function() {
|
|
3939
3967
|
for (var d = Q(t), f = ze(t), v = Tr(t), g = [], h = 0; h < s; h += 1)
|
|
3940
3968
|
g.push(fn(new Date(d, f, v + h * 7), r));
|
|
3941
3969
|
return g;
|
|
3942
|
-
}(),
|
|
3970
|
+
}(), l = c.map(function(d) {
|
|
3943
3971
|
return mc(d, r);
|
|
3944
3972
|
});
|
|
3945
|
-
return o.jsx(Yn, { className: "react-calendar__month-view__weekNumbers", count: s, direction: "column", onFocus: a, onMouseOver: a, style: { flexBasis: "calc(100% * (1 / 8)", flexShrink: 0 }, children:
|
|
3946
|
-
var v =
|
|
3973
|
+
return o.jsx(Yn, { className: "react-calendar__month-view__weekNumbers", count: s, direction: "column", onFocus: a, onMouseOver: a, style: { flexBasis: "calc(100% * (1 / 8)", flexShrink: 0 }, children: l.map(function(d, f) {
|
|
3974
|
+
var v = c[f];
|
|
3947
3975
|
if (!v)
|
|
3948
3976
|
throw new Error("date is not defined");
|
|
3949
3977
|
return o.jsx(Hc, { date: v, onClickWeekNumber: n, weekNumber: d }, d);
|
|
@@ -3972,12 +4000,12 @@ function Kc(e) {
|
|
|
3972
4000
|
if (i.includes(e))
|
|
3973
4001
|
return a;
|
|
3974
4002
|
}
|
|
3975
|
-
return
|
|
4003
|
+
return fe.ISO_8601;
|
|
3976
4004
|
}
|
|
3977
4005
|
function Jc(e) {
|
|
3978
|
-
var t = e.activeStartDate, r = e.locale, n = e.onMouseLeave, a = e.showFixedNumberOfWeeks, i = e.calendarType, s = i === void 0 ? Kc(r) : i,
|
|
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"]);
|
|
3979
4007
|
function g() {
|
|
3980
|
-
return o.jsx(Gc, { calendarType: s, formatShortWeekday:
|
|
4008
|
+
return o.jsx(Gc, { calendarType: s, formatShortWeekday: c, formatWeekday: l, locale: r, onMouseLeave: n });
|
|
3981
4009
|
}
|
|
3982
4010
|
function h() {
|
|
3983
4011
|
return f ? o.jsx(qc, { activeStartDate: t, calendarType: s, onClickWeekNumber: d, onMouseLeave: n, showFixedNumberOfWeeks: a }) : null;
|
|
@@ -4036,17 +4064,17 @@ function Mo(e, t) {
|
|
|
4036
4064
|
var r = e.value, n = e.minDate, a = e.maxDate, i = e.maxDetail, s = tl(r, t);
|
|
4037
4065
|
if (!s)
|
|
4038
4066
|
return null;
|
|
4039
|
-
var
|
|
4067
|
+
var c = $o(i), l = function() {
|
|
4040
4068
|
switch (t) {
|
|
4041
4069
|
case 0:
|
|
4042
|
-
return rt(
|
|
4070
|
+
return rt(c, s);
|
|
4043
4071
|
case 1:
|
|
4044
|
-
return _o(
|
|
4072
|
+
return _o(c, s);
|
|
4045
4073
|
default:
|
|
4046
4074
|
throw new Error("Invalid index value: ".concat(t));
|
|
4047
4075
|
}
|
|
4048
4076
|
}();
|
|
4049
|
-
return Nc(
|
|
4077
|
+
return Nc(l, n, a);
|
|
4050
4078
|
}
|
|
4051
4079
|
var zn = function(e) {
|
|
4052
4080
|
return Mo(e, 0);
|
|
@@ -4058,21 +4086,21 @@ var zn = function(e) {
|
|
|
4058
4086
|
});
|
|
4059
4087
|
};
|
|
4060
4088
|
function Fo(e) {
|
|
4061
|
-
var t = e.maxDate, r = e.maxDetail, n = e.minDate, a = e.minDetail, i = e.value, s = e.view,
|
|
4089
|
+
var t = e.maxDate, r = e.maxDetail, n = e.minDate, a = e.minDetail, i = e.value, s = e.view, c = Un(s, a, r), l = zn({
|
|
4062
4090
|
value: i,
|
|
4063
4091
|
minDate: n,
|
|
4064
4092
|
maxDate: t,
|
|
4065
4093
|
maxDetail: r
|
|
4066
4094
|
}) || /* @__PURE__ */ new Date();
|
|
4067
|
-
return rt(
|
|
4095
|
+
return rt(c, l);
|
|
4068
4096
|
}
|
|
4069
4097
|
function nl(e) {
|
|
4070
|
-
var t = e.activeStartDate, r = e.defaultActiveStartDate, n = e.defaultValue, a = e.defaultView, i = e.maxDate, s = e.maxDetail,
|
|
4098
|
+
var t = e.activeStartDate, r = e.defaultActiveStartDate, n = e.defaultValue, a = e.defaultView, i = e.maxDate, s = e.maxDetail, c = e.minDate, l = e.minDetail, d = e.value, f = e.view, v = Un(f, l, s), g = t || r;
|
|
4071
4099
|
return g ? rt(v, g) : Fo({
|
|
4072
4100
|
maxDate: i,
|
|
4073
4101
|
maxDetail: s,
|
|
4074
|
-
minDate:
|
|
4075
|
-
minDetail:
|
|
4102
|
+
minDate: c,
|
|
4103
|
+
minDetail: l,
|
|
4076
4104
|
value: d || n,
|
|
4077
4105
|
view: f || a
|
|
4078
4106
|
});
|
|
@@ -4084,27 +4112,27 @@ function ur(e, t) {
|
|
|
4084
4112
|
return e instanceof Date && t instanceof Date && e.getTime() === t.getTime();
|
|
4085
4113
|
}
|
|
4086
4114
|
var al = Ue(function(t, r) {
|
|
4087
|
-
var n = t.activeStartDate, a = t.allowPartialRange, i = t.calendarType, s = t.className,
|
|
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) {
|
|
4088
4116
|
return k !== null ? Ft(k) : null;
|
|
4089
|
-
}) :
|
|
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({
|
|
4090
4118
|
activeStartDate: n,
|
|
4091
|
-
defaultActiveStartDate:
|
|
4092
|
-
defaultValue:
|
|
4119
|
+
defaultActiveStartDate: c,
|
|
4120
|
+
defaultValue: l,
|
|
4093
4121
|
defaultView: d,
|
|
4094
4122
|
maxDate: E,
|
|
4095
|
-
maxDetail:
|
|
4096
|
-
minDate:
|
|
4097
|
-
minDetail:
|
|
4123
|
+
maxDetail: F,
|
|
4124
|
+
minDate: D,
|
|
4125
|
+
minDetail: R,
|
|
4098
4126
|
value: it,
|
|
4099
4127
|
view: kt
|
|
4100
|
-
}),
|
|
4128
|
+
}), ve = function() {
|
|
4101
4129
|
var k = function() {
|
|
4102
|
-
return
|
|
4130
|
+
return se && Zr(Xe) ? Xe : it !== void 0 ? it : Xe;
|
|
4103
4131
|
}();
|
|
4104
4132
|
return k ? Array.isArray(k) ? k.map(function(P) {
|
|
4105
4133
|
return P !== null ? Ft(P) : null;
|
|
4106
4134
|
}) : k !== null ? Ft(k) : null : null;
|
|
4107
|
-
}(), 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) {
|
|
4108
4136
|
var P = function() {
|
|
4109
4137
|
switch (Ce) {
|
|
4110
4138
|
case "start":
|
|
@@ -4119,22 +4147,22 @@ var al = Ue(function(t, r) {
|
|
|
4119
4147
|
}();
|
|
4120
4148
|
return P({
|
|
4121
4149
|
maxDate: E,
|
|
4122
|
-
maxDetail:
|
|
4123
|
-
minDate:
|
|
4150
|
+
maxDetail: F,
|
|
4151
|
+
minDate: D,
|
|
4124
4152
|
value: k
|
|
4125
4153
|
});
|
|
4126
|
-
}, [E,
|
|
4154
|
+
}, [E, F, D, Ce]), lt = I(function(k, P) {
|
|
4127
4155
|
st(k);
|
|
4128
4156
|
var T = {
|
|
4129
4157
|
action: P,
|
|
4130
4158
|
activeStartDate: k,
|
|
4131
|
-
value:
|
|
4132
|
-
view:
|
|
4159
|
+
value: ve,
|
|
4160
|
+
view: H
|
|
4133
4161
|
};
|
|
4134
|
-
K && !ur(
|
|
4135
|
-
}, [
|
|
4162
|
+
K && !ur(de, k) && K(T);
|
|
4163
|
+
}, [de, K, ve, H]), ut = I(function(k, P) {
|
|
4136
4164
|
var T = function() {
|
|
4137
|
-
switch (
|
|
4165
|
+
switch (H) {
|
|
4138
4166
|
case "century":
|
|
4139
4167
|
return Se;
|
|
4140
4168
|
case "decade":
|
|
@@ -4144,123 +4172,123 @@ var al = Ue(function(t, r) {
|
|
|
4144
4172
|
case "month":
|
|
4145
4173
|
return Z;
|
|
4146
4174
|
default:
|
|
4147
|
-
throw new Error("Invalid view: ".concat(
|
|
4175
|
+
throw new Error("Invalid view: ".concat(H, "."));
|
|
4148
4176
|
}
|
|
4149
4177
|
}();
|
|
4150
4178
|
T && T(k, P);
|
|
4151
|
-
}, [Z, Se, Ee, me,
|
|
4179
|
+
}, [Z, Se, Ee, me, H]), Tt = I(function(k, P) {
|
|
4152
4180
|
if (Ct) {
|
|
4153
4181
|
ut(k, P);
|
|
4154
|
-
var T = we[we.indexOf(
|
|
4182
|
+
var T = we[we.indexOf(H) + 1];
|
|
4155
4183
|
if (!T)
|
|
4156
4184
|
throw new Error("Attempted to drill down from the lowest view.");
|
|
4157
4185
|
st(k), ct(T);
|
|
4158
4186
|
var z = {
|
|
4159
4187
|
action: "drillDown",
|
|
4160
4188
|
activeStartDate: k,
|
|
4161
|
-
value:
|
|
4189
|
+
value: ve,
|
|
4162
4190
|
view: T
|
|
4163
4191
|
};
|
|
4164
|
-
K && !ur(
|
|
4192
|
+
K && !ur(de, k) && K(z), ae && H !== T && ae(z), pe && pe(z);
|
|
4165
4193
|
}
|
|
4166
4194
|
}, [
|
|
4167
|
-
|
|
4195
|
+
de,
|
|
4168
4196
|
Ct,
|
|
4169
4197
|
K,
|
|
4170
4198
|
ut,
|
|
4171
4199
|
pe,
|
|
4172
4200
|
ae,
|
|
4173
|
-
|
|
4174
|
-
|
|
4201
|
+
ve,
|
|
4202
|
+
H,
|
|
4175
4203
|
we
|
|
4176
|
-
]), Rt =
|
|
4204
|
+
]), Rt = I(function() {
|
|
4177
4205
|
if (nr) {
|
|
4178
|
-
var k = we[we.indexOf(
|
|
4206
|
+
var k = we[we.indexOf(H) - 1];
|
|
4179
4207
|
if (!k)
|
|
4180
4208
|
throw new Error("Attempted to drill up from the highest view.");
|
|
4181
|
-
var P = rt(k,
|
|
4209
|
+
var P = rt(k, de);
|
|
4182
4210
|
st(P), ct(k);
|
|
4183
4211
|
var T = {
|
|
4184
4212
|
action: "drillUp",
|
|
4185
4213
|
activeStartDate: P,
|
|
4186
|
-
value:
|
|
4214
|
+
value: ve,
|
|
4187
4215
|
view: k
|
|
4188
4216
|
};
|
|
4189
|
-
K && !ur(
|
|
4217
|
+
K && !ur(de, P) && K(T), ae && H !== k && ae(T), ue && ue(T);
|
|
4190
4218
|
}
|
|
4191
4219
|
}, [
|
|
4192
|
-
|
|
4220
|
+
de,
|
|
4193
4221
|
nr,
|
|
4194
4222
|
K,
|
|
4195
|
-
|
|
4223
|
+
ue,
|
|
4196
4224
|
ae,
|
|
4197
|
-
|
|
4198
|
-
|
|
4225
|
+
ve,
|
|
4226
|
+
H,
|
|
4199
4227
|
we
|
|
4200
|
-
]), At =
|
|
4201
|
-
var T =
|
|
4228
|
+
]), At = I(function(k, P) {
|
|
4229
|
+
var T = ve;
|
|
4202
4230
|
ut(k, P);
|
|
4203
|
-
var z =
|
|
4204
|
-
if (
|
|
4231
|
+
var z = se && !Zr(T), Y;
|
|
4232
|
+
if (se)
|
|
4205
4233
|
if (z)
|
|
4206
|
-
|
|
4234
|
+
Y = rt(Ke, k);
|
|
4207
4235
|
else {
|
|
4208
4236
|
if (!T)
|
|
4209
4237
|
throw new Error("previousValue is required");
|
|
4210
4238
|
if (Array.isArray(T))
|
|
4211
4239
|
throw new Error("previousValue must not be an array");
|
|
4212
|
-
|
|
4240
|
+
Y = wc(Ke, T, k);
|
|
4213
4241
|
}
|
|
4214
4242
|
else
|
|
4215
|
-
|
|
4243
|
+
Y = Pt(k);
|
|
4216
4244
|
var J = (
|
|
4217
4245
|
// Range selection turned off
|
|
4218
|
-
!
|
|
4246
|
+
!se || // Range selection turned on, first value
|
|
4219
4247
|
z || // Range selection turned on, second value, goToRangeStartOnSelect toggled on
|
|
4220
|
-
|
|
4248
|
+
b ? Fo({
|
|
4221
4249
|
maxDate: E,
|
|
4222
|
-
maxDetail:
|
|
4223
|
-
minDate:
|
|
4224
|
-
minDetail:
|
|
4225
|
-
value:
|
|
4226
|
-
view:
|
|
4250
|
+
maxDetail: F,
|
|
4251
|
+
minDate: D,
|
|
4252
|
+
minDetail: R,
|
|
4253
|
+
value: Y,
|
|
4254
|
+
view: H
|
|
4227
4255
|
}) : null
|
|
4228
4256
|
);
|
|
4229
|
-
P.persist(), st(J), tr(
|
|
4257
|
+
P.persist(), st(J), tr(Y);
|
|
4230
4258
|
var ge = {
|
|
4231
4259
|
action: "onChange",
|
|
4232
4260
|
activeStartDate: J,
|
|
4233
|
-
value:
|
|
4234
|
-
view:
|
|
4261
|
+
value: Y,
|
|
4262
|
+
view: H
|
|
4235
4263
|
};
|
|
4236
|
-
if (K && !ur(
|
|
4237
|
-
if (
|
|
4238
|
-
var We = Zr(
|
|
4264
|
+
if (K && !ur(de, J) && K(ge), le)
|
|
4265
|
+
if (se) {
|
|
4266
|
+
var We = Zr(Y);
|
|
4239
4267
|
if (!We)
|
|
4240
|
-
|
|
4268
|
+
le(Y || null, P);
|
|
4241
4269
|
else if (a) {
|
|
4242
|
-
if (Array.isArray(
|
|
4270
|
+
if (Array.isArray(Y))
|
|
4243
4271
|
throw new Error("value must not be an array");
|
|
4244
|
-
|
|
4272
|
+
le([Y || null, null], P);
|
|
4245
4273
|
}
|
|
4246
4274
|
} else
|
|
4247
|
-
|
|
4275
|
+
le(Y || null, P);
|
|
4248
4276
|
}, [
|
|
4249
|
-
|
|
4277
|
+
de,
|
|
4250
4278
|
a,
|
|
4251
4279
|
Pt,
|
|
4252
|
-
|
|
4280
|
+
b,
|
|
4253
4281
|
E,
|
|
4254
|
-
|
|
4255
|
-
|
|
4256
|
-
|
|
4282
|
+
F,
|
|
4283
|
+
D,
|
|
4284
|
+
R,
|
|
4257
4285
|
K,
|
|
4258
|
-
|
|
4286
|
+
le,
|
|
4259
4287
|
ut,
|
|
4260
|
-
|
|
4261
|
-
|
|
4288
|
+
se,
|
|
4289
|
+
ve,
|
|
4262
4290
|
Ke,
|
|
4263
|
-
|
|
4291
|
+
H
|
|
4264
4292
|
]);
|
|
4265
4293
|
function u(k) {
|
|
4266
4294
|
Zt(k);
|
|
@@ -4270,48 +4298,48 @@ var al = Ue(function(t, r) {
|
|
|
4270
4298
|
}
|
|
4271
4299
|
Dr(r, function() {
|
|
4272
4300
|
return {
|
|
4273
|
-
activeStartDate:
|
|
4301
|
+
activeStartDate: de,
|
|
4274
4302
|
drillDown: Tt,
|
|
4275
4303
|
drillUp: Rt,
|
|
4276
4304
|
onChange: At,
|
|
4277
4305
|
setActiveStartDate: lt,
|
|
4278
|
-
value:
|
|
4279
|
-
view:
|
|
4306
|
+
value: ve,
|
|
4307
|
+
view: H
|
|
4280
4308
|
};
|
|
4281
|
-
}, [
|
|
4309
|
+
}, [de, Tt, Rt, At, lt, ve, H]);
|
|
4282
4310
|
function N(k) {
|
|
4283
|
-
var P = k ? ko(
|
|
4311
|
+
var P = k ? ko(H, de) : rt(H, de), T = Ct ? Tt : At, z = {
|
|
4284
4312
|
activeStartDate: P,
|
|
4285
4313
|
hover: rr,
|
|
4286
4314
|
locale: S,
|
|
4287
4315
|
maxDate: E,
|
|
4288
|
-
minDate:
|
|
4316
|
+
minDate: D,
|
|
4289
4317
|
onClick: T,
|
|
4290
|
-
onMouseOver:
|
|
4318
|
+
onMouseOver: se ? u : void 0,
|
|
4291
4319
|
tileClassName: Xt,
|
|
4292
4320
|
tileContent: Kt,
|
|
4293
4321
|
tileDisabled: Vr,
|
|
4294
|
-
value:
|
|
4322
|
+
value: ve,
|
|
4295
4323
|
valueType: Ke
|
|
4296
4324
|
};
|
|
4297
|
-
switch (
|
|
4325
|
+
switch (H) {
|
|
4298
4326
|
case "century":
|
|
4299
|
-
return o.jsx(Rc, ht({ formatYear:
|
|
4327
|
+
return o.jsx(Rc, ht({ formatYear: y, showNeighboringCentury: Fr }, z));
|
|
4300
4328
|
case "decade":
|
|
4301
|
-
return o.jsx(Mc, ht({ formatYear:
|
|
4329
|
+
return o.jsx(Mc, ht({ formatYear: y, showNeighboringDecade: Et }, z));
|
|
4302
4330
|
case "year":
|
|
4303
4331
|
return o.jsx(Yc, ht({ formatMonth: g, formatMonthYear: h }, z));
|
|
4304
4332
|
case "month":
|
|
4305
|
-
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));
|
|
4306
4334
|
default:
|
|
4307
|
-
throw new Error("Invalid view: ".concat(
|
|
4335
|
+
throw new Error("Invalid view: ".concat(H, "."));
|
|
4308
4336
|
}
|
|
4309
4337
|
}
|
|
4310
|
-
function
|
|
4311
|
-
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;
|
|
4312
4340
|
}
|
|
4313
|
-
var B = Array.isArray(
|
|
4314
|
-
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] })] });
|
|
4315
4343
|
});
|
|
4316
4344
|
const Ul = ({
|
|
4317
4345
|
value: e,
|
|
@@ -4319,26 +4347,26 @@ const Ul = ({
|
|
|
4319
4347
|
maxDate: r,
|
|
4320
4348
|
children: n
|
|
4321
4349
|
}) => {
|
|
4322
|
-
const [a, i] =
|
|
4350
|
+
const [a, i] = W(e ?? /* @__PURE__ */ new Date()), [s, c] = W(!1), l = re(null), d = I(
|
|
4323
4351
|
(m) => {
|
|
4324
|
-
i(m), t && t(m),
|
|
4352
|
+
i(m), t && t(m), c(!1);
|
|
4325
4353
|
},
|
|
4326
4354
|
[t]
|
|
4327
|
-
), f = () =>
|
|
4328
|
-
|
|
4355
|
+
), f = () => c(!s), v = I((m) => {
|
|
4356
|
+
l.current && !l.current.contains(m.target) && c(!1);
|
|
4329
4357
|
}, []);
|
|
4330
|
-
|
|
4358
|
+
X(() => (s ? document.addEventListener("mousedown", v) : document.removeEventListener("mousedown", v), () => {
|
|
4331
4359
|
document.removeEventListener("mousedown", v);
|
|
4332
4360
|
}), [s, v]);
|
|
4333
|
-
const [g, h] =
|
|
4361
|
+
const [g, h] = W(), p = ({
|
|
4334
4362
|
activeStartDate: m
|
|
4335
4363
|
}) => {
|
|
4336
4364
|
h(m);
|
|
4337
4365
|
};
|
|
4338
|
-
return /* @__PURE__ */ o.jsx("div", { children: /* @__PURE__ */ o.jsxs("div", { className: "calendar", ref:
|
|
4366
|
+
return /* @__PURE__ */ o.jsx("div", { children: /* @__PURE__ */ o.jsxs("div", { className: "calendar", ref: l, children: [
|
|
4339
4367
|
n && /* @__PURE__ */ o.jsx("div", { onClick: f, children: n }),
|
|
4340
4368
|
!n && /* @__PURE__ */ o.jsx("button", { className: "calendar-button", onClick: f, children: /* @__PURE__ */ o.jsx(
|
|
4341
|
-
|
|
4369
|
+
V,
|
|
4342
4370
|
{
|
|
4343
4371
|
classIcon: " bi-calendar4-event",
|
|
4344
4372
|
size: je.EXTRA_LARGE
|
|
@@ -4348,10 +4376,10 @@ const Ul = ({
|
|
|
4348
4376
|
/* @__PURE__ */ o.jsx(
|
|
4349
4377
|
"div",
|
|
4350
4378
|
{
|
|
4351
|
-
onClick: () =>
|
|
4379
|
+
onClick: () => c(!1),
|
|
4352
4380
|
className: "calendar-popup-close",
|
|
4353
4381
|
children: /* @__PURE__ */ o.jsx(
|
|
4354
|
-
|
|
4382
|
+
V,
|
|
4355
4383
|
{
|
|
4356
4384
|
classIcon: "bi-x-lg close-icon",
|
|
4357
4385
|
size: je.EXTRA_SMALL
|
|
@@ -4366,8 +4394,8 @@ const Ul = ({
|
|
|
4366
4394
|
maxDate: r ?? /* @__PURE__ */ new Date(),
|
|
4367
4395
|
onChange: d,
|
|
4368
4396
|
value: a,
|
|
4369
|
-
tileClassName: ({ date: m, view:
|
|
4370
|
-
if (
|
|
4397
|
+
tileClassName: ({ date: m, view: y }) => {
|
|
4398
|
+
if (y === "month" && g) {
|
|
4371
4399
|
const j = g;
|
|
4372
4400
|
return m.getMonth() !== (j == null ? void 0 : j.getMonth()) ? "out-of-month" : null;
|
|
4373
4401
|
}
|
|
@@ -4384,25 +4412,25 @@ const Ul = ({
|
|
|
4384
4412
|
showArrow: n = !0,
|
|
4385
4413
|
onChange: a
|
|
4386
4414
|
}) => {
|
|
4387
|
-
const [i, s] =
|
|
4388
|
-
|
|
4415
|
+
const [i, s] = W(!1);
|
|
4416
|
+
X(() => {
|
|
4389
4417
|
t && e && e.id === t.id ? i || s(!0) : s(!1);
|
|
4390
4418
|
}, [e, s, t]);
|
|
4391
|
-
const
|
|
4392
|
-
(
|
|
4393
|
-
|
|
4419
|
+
const c = I(
|
|
4420
|
+
(l) => {
|
|
4421
|
+
l.stopPropagation(), a && a(t);
|
|
4394
4422
|
},
|
|
4395
4423
|
[a, t]
|
|
4396
4424
|
);
|
|
4397
4425
|
return /* @__PURE__ */ o.jsxs(
|
|
4398
4426
|
"div",
|
|
4399
4427
|
{
|
|
4400
|
-
onClick:
|
|
4428
|
+
onClick: c,
|
|
4401
4429
|
className: `expand ${i ? "expand--active" : ""} ${r ?? ""}`,
|
|
4402
4430
|
children: [
|
|
4403
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: [
|
|
4404
|
-
i && n && /* @__PURE__ */ o.jsx(
|
|
4405
|
-
!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" }),
|
|
4406
4434
|
/* @__PURE__ */ o.jsx("span", { className: "flex-1 expand-header-title-left", children: t.title }),
|
|
4407
4435
|
t.description && /* @__PURE__ */ o.jsx("span", { className: "expand-header-title-right", children: t.description })
|
|
4408
4436
|
] }) }) }),
|
|
@@ -4415,13 +4443,13 @@ const Ul = ({
|
|
|
4415
4443
|
}
|
|
4416
4444
|
);
|
|
4417
4445
|
}, zl = (e) => {
|
|
4418
|
-
const [t, r] =
|
|
4446
|
+
const [t, r] = W(), n = I(
|
|
4419
4447
|
(a) => {
|
|
4420
4448
|
e.onChange && e.onChange(a), r(a);
|
|
4421
4449
|
},
|
|
4422
4450
|
[r, e.onChange]
|
|
4423
4451
|
);
|
|
4424
|
-
return
|
|
4452
|
+
return X(() => {
|
|
4425
4453
|
r(e.currentItem);
|
|
4426
4454
|
}, [e.currentItem, r, document.activeElement]), /* @__PURE__ */ o.jsx("div", { className: `expands ${e.className || ""}`, children: e.items.map((a) => /* @__PURE__ */ o.jsx(
|
|
4427
4455
|
ol,
|
|
@@ -4439,7 +4467,7 @@ const Ul = ({
|
|
|
4439
4467
|
currentFil: r,
|
|
4440
4468
|
title: n
|
|
4441
4469
|
}) => {
|
|
4442
|
-
const a =
|
|
4470
|
+
const a = I(
|
|
4443
4471
|
(i, s) => {
|
|
4444
4472
|
s != null && s.url || i.preventDefault(), t && t(s);
|
|
4445
4473
|
},
|
|
@@ -4460,7 +4488,7 @@ const Ul = ({
|
|
|
4460
4488
|
"a",
|
|
4461
4489
|
{
|
|
4462
4490
|
href: i.url || "#",
|
|
4463
|
-
onClick: (
|
|
4491
|
+
onClick: (c) => a(c, i),
|
|
4464
4492
|
children: i.title
|
|
4465
4493
|
}
|
|
4466
4494
|
),
|
|
@@ -4478,16 +4506,16 @@ const Ul = ({
|
|
|
4478
4506
|
width: a,
|
|
4479
4507
|
className: i,
|
|
4480
4508
|
onChange: s,
|
|
4481
|
-
placeholder:
|
|
4482
|
-
cols:
|
|
4509
|
+
placeholder: c,
|
|
4510
|
+
cols: l,
|
|
4483
4511
|
rows: d,
|
|
4484
4512
|
required: f = !1
|
|
4485
4513
|
}) => {
|
|
4486
|
-
const [v, g] =
|
|
4487
|
-
|
|
4514
|
+
const [v, g] = W(r);
|
|
4515
|
+
X(() => {
|
|
4488
4516
|
g(r);
|
|
4489
4517
|
}, [r]);
|
|
4490
|
-
const h =
|
|
4518
|
+
const h = I(
|
|
4491
4519
|
(p) => {
|
|
4492
4520
|
const m = p.target.value;
|
|
4493
4521
|
g(m), s && s(m, e);
|
|
@@ -4504,8 +4532,8 @@ const Ul = ({
|
|
|
4504
4532
|
disabled: n,
|
|
4505
4533
|
value: v,
|
|
4506
4534
|
onChange: h,
|
|
4507
|
-
placeholder:
|
|
4508
|
-
cols:
|
|
4535
|
+
placeholder: c,
|
|
4536
|
+
cols: l,
|
|
4509
4537
|
rows: d,
|
|
4510
4538
|
required: f
|
|
4511
4539
|
}
|
|
@@ -4519,75 +4547,75 @@ const Ul = ({
|
|
|
4519
4547
|
children: a,
|
|
4520
4548
|
autoComplete: i,
|
|
4521
4549
|
onChange: s,
|
|
4522
|
-
hideSubmit:
|
|
4523
|
-
disabledSubmit:
|
|
4550
|
+
hideSubmit: c,
|
|
4551
|
+
disabledSubmit: l = !1,
|
|
4524
4552
|
className: d
|
|
4525
4553
|
}, f) => {
|
|
4526
|
-
const [v, g] =
|
|
4527
|
-
const
|
|
4528
|
-
return e.forEach((
|
|
4529
|
-
|
|
4530
|
-
}),
|
|
4531
|
-
}), m = re({}),
|
|
4532
|
-
(
|
|
4533
|
-
const { name:
|
|
4534
|
-
|
|
4535
|
-
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 };
|
|
4536
4564
|
return s && s(xe), xe;
|
|
4537
4565
|
});
|
|
4538
4566
|
},
|
|
4539
4567
|
[s]
|
|
4540
|
-
), j =
|
|
4541
|
-
(
|
|
4542
|
-
|
|
4543
|
-
const
|
|
4544
|
-
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;
|
|
4545
4573
|
});
|
|
4546
4574
|
},
|
|
4547
4575
|
[s]
|
|
4548
|
-
),
|
|
4549
|
-
(
|
|
4550
|
-
|
|
4551
|
-
const
|
|
4552
|
-
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;
|
|
4553
4581
|
});
|
|
4554
4582
|
},
|
|
4555
4583
|
[s]
|
|
4556
|
-
), _ =
|
|
4557
|
-
(
|
|
4558
|
-
|
|
4584
|
+
), _ = I(
|
|
4585
|
+
(x) => {
|
|
4586
|
+
x.preventDefault(), r && r(h);
|
|
4559
4587
|
},
|
|
4560
4588
|
[r, h]
|
|
4561
4589
|
), S = () => {
|
|
4562
4590
|
p(() => {
|
|
4563
|
-
const
|
|
4564
|
-
return e.forEach((
|
|
4565
|
-
|
|
4566
|
-
}),
|
|
4591
|
+
const x = {};
|
|
4592
|
+
return e.forEach((D) => {
|
|
4593
|
+
x[D.name] = D.value ?? "";
|
|
4594
|
+
}), x;
|
|
4567
4595
|
});
|
|
4568
|
-
},
|
|
4569
|
-
p((
|
|
4570
|
-
...
|
|
4571
|
-
[
|
|
4596
|
+
}, O = I((x) => {
|
|
4597
|
+
p((D) => ({
|
|
4598
|
+
...D,
|
|
4599
|
+
[x]: ""
|
|
4572
4600
|
}));
|
|
4573
4601
|
}, []), E = () => {
|
|
4574
|
-
const
|
|
4575
|
-
|
|
4576
|
-
var
|
|
4577
|
-
(
|
|
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();
|
|
4578
4606
|
}, 500);
|
|
4579
|
-
}, C = () => h,
|
|
4580
|
-
p((
|
|
4581
|
-
...
|
|
4582
|
-
...
|
|
4607
|
+
}, C = () => h, F = (x) => {
|
|
4608
|
+
p((D) => ({
|
|
4609
|
+
...D,
|
|
4610
|
+
...x
|
|
4583
4611
|
}));
|
|
4584
4612
|
};
|
|
4585
4613
|
return Dr(f, () => ({
|
|
4586
4614
|
resetForm: S,
|
|
4587
|
-
clearInput:
|
|
4615
|
+
clearInput: O,
|
|
4588
4616
|
focusInitialElement: E,
|
|
4589
4617
|
getValues: C,
|
|
4590
|
-
updateFormValue:
|
|
4618
|
+
updateFormValue: F,
|
|
4591
4619
|
setBtnDisabledSubmit: g
|
|
4592
4620
|
})), /* @__PURE__ */ o.jsxs(
|
|
4593
4621
|
"form",
|
|
@@ -4597,71 +4625,71 @@ const Ul = ({
|
|
|
4597
4625
|
className: d ?? "",
|
|
4598
4626
|
children: [
|
|
4599
4627
|
/* @__PURE__ */ o.jsxs("div", { className: "form-content", children: [
|
|
4600
|
-
e.map((
|
|
4601
|
-
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;
|
|
4602
4630
|
return /* @__PURE__ */ o.jsxs(
|
|
4603
4631
|
"div",
|
|
4604
4632
|
{
|
|
4605
|
-
className: `d-flex flex-column ${
|
|
4633
|
+
className: `d-flex flex-column ${x.className ?? ""} form-group form-group-${x.type}`,
|
|
4606
4634
|
children: [
|
|
4607
|
-
|
|
4608
|
-
|
|
4609
|
-
|
|
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(
|
|
4610
4638
|
fo,
|
|
4611
4639
|
{
|
|
4612
|
-
id:
|
|
4640
|
+
id: x.id ?? x.name,
|
|
4613
4641
|
label: void 0,
|
|
4614
|
-
name:
|
|
4615
|
-
options:
|
|
4616
|
-
disabled:
|
|
4617
|
-
multiple:
|
|
4618
|
-
value: h[
|
|
4619
|
-
required:
|
|
4620
|
-
defaultValue:
|
|
4621
|
-
placeholder:
|
|
4622
|
-
onChangeMultiple: (
|
|
4623
|
-
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)
|
|
4624
4652
|
}
|
|
4625
|
-
) :
|
|
4653
|
+
) : x.type === "textarea" ? /* @__PURE__ */ o.jsx(
|
|
4626
4654
|
il,
|
|
4627
4655
|
{
|
|
4628
|
-
id:
|
|
4629
|
-
name:
|
|
4656
|
+
id: x.id ?? x.name,
|
|
4657
|
+
name: x.name,
|
|
4630
4658
|
className: "textarea-input",
|
|
4631
|
-
placeholder:
|
|
4632
|
-
disabled:
|
|
4633
|
-
required:
|
|
4634
|
-
value: h[
|
|
4635
|
-
onChange: (
|
|
4659
|
+
placeholder: x.placeholder ?? "",
|
|
4660
|
+
disabled: R,
|
|
4661
|
+
required: M,
|
|
4662
|
+
value: h[x.name],
|
|
4663
|
+
onChange: (A, G) => j(G, A, x)
|
|
4636
4664
|
}
|
|
4637
4665
|
) : /* @__PURE__ */ o.jsx(
|
|
4638
4666
|
wr,
|
|
4639
4667
|
{
|
|
4640
|
-
id:
|
|
4641
|
-
ref: (
|
|
4642
|
-
name:
|
|
4643
|
-
type:
|
|
4644
|
-
placeholder:
|
|
4645
|
-
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,
|
|
4646
4674
|
tabIndex: 0,
|
|
4647
|
-
disabled:
|
|
4648
|
-
autoFocus:
|
|
4649
|
-
required:
|
|
4650
|
-
step:
|
|
4651
|
-
value: h[
|
|
4652
|
-
checked:
|
|
4653
|
-
onChange: (
|
|
4654
|
-
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
|
|
4655
4683
|
}
|
|
4656
4684
|
)
|
|
4657
4685
|
]
|
|
4658
4686
|
},
|
|
4659
|
-
|
|
4687
|
+
D
|
|
4660
4688
|
);
|
|
4661
4689
|
}),
|
|
4662
4690
|
a
|
|
4663
4691
|
] }),
|
|
4664
|
-
/* @__PURE__ */ o.jsx("div", { className: "d-flex justify-content-end form-footer", children: !
|
|
4692
|
+
/* @__PURE__ */ o.jsx("div", { className: "d-flex justify-content-end form-footer", children: !c && /* @__PURE__ */ o.jsx(
|
|
4665
4693
|
xt,
|
|
4666
4694
|
{
|
|
4667
4695
|
id: `button-${n}`,
|
|
@@ -4682,8 +4710,8 @@ const Ul = ({
|
|
|
4682
4710
|
className: a,
|
|
4683
4711
|
disabled: i = !1,
|
|
4684
4712
|
required: s = !1,
|
|
4685
|
-
autoFocus:
|
|
4686
|
-
maxLength:
|
|
4713
|
+
autoFocus: c = !1,
|
|
4714
|
+
maxLength: l = 10,
|
|
4687
4715
|
autoComplete: d = "off",
|
|
4688
4716
|
tabIndex: f = 0,
|
|
4689
4717
|
inputMode: v = "numeric",
|
|
@@ -4691,28 +4719,28 @@ const Ul = ({
|
|
|
4691
4719
|
onChange: h,
|
|
4692
4720
|
onBlur: p,
|
|
4693
4721
|
onClick: m,
|
|
4694
|
-
onKeyDown:
|
|
4722
|
+
onKeyDown: y,
|
|
4695
4723
|
onFocus: j
|
|
4696
|
-
},
|
|
4697
|
-
const _ =
|
|
4698
|
-
(
|
|
4699
|
-
let E =
|
|
4700
|
-
!/^-?\d*[.,]?\d*$/.test(E) && E !== "" ||
|
|
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);
|
|
4701
4729
|
},
|
|
4702
|
-
[h,
|
|
4703
|
-
), S = (
|
|
4704
|
-
if (
|
|
4705
|
-
|
|
4706
|
-
) ||
|
|
4707
|
-
|
|
4730
|
+
[h, l]
|
|
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();
|
|
4708
4736
|
return;
|
|
4709
4737
|
}
|
|
4710
|
-
|
|
4738
|
+
O.key === "-" && ((O.target.selectionStart ?? 0) !== 0 || r.includes("-")) && O.preventDefault();
|
|
4711
4739
|
};
|
|
4712
4740
|
return /* @__PURE__ */ o.jsx("div", { className: "input-container input-container-number", children: /* @__PURE__ */ o.jsx(
|
|
4713
4741
|
"input",
|
|
4714
4742
|
{
|
|
4715
|
-
ref:
|
|
4743
|
+
ref: b,
|
|
4716
4744
|
id: e,
|
|
4717
4745
|
name: t,
|
|
4718
4746
|
type: Be.TEXT,
|
|
@@ -4720,7 +4748,7 @@ const Ul = ({
|
|
|
4720
4748
|
placeholder: n,
|
|
4721
4749
|
disabled: i,
|
|
4722
4750
|
required: s,
|
|
4723
|
-
autoFocus:
|
|
4751
|
+
autoFocus: c,
|
|
4724
4752
|
autoComplete: d,
|
|
4725
4753
|
pattern: g,
|
|
4726
4754
|
tabIndex: f,
|
|
@@ -4728,12 +4756,12 @@ const Ul = ({
|
|
|
4728
4756
|
spellCheck: "false",
|
|
4729
4757
|
className: `input-field ${a ?? ""}`,
|
|
4730
4758
|
onChange: _,
|
|
4731
|
-
onWheel: (
|
|
4759
|
+
onWheel: (O) => O.currentTarget.blur(),
|
|
4732
4760
|
onKeyDown: S,
|
|
4733
4761
|
onFocus: j,
|
|
4734
4762
|
onBlur: p,
|
|
4735
|
-
onClick: (
|
|
4736
|
-
|
|
4763
|
+
onClick: (O) => {
|
|
4764
|
+
O.stopPropagation(), m == null || m(O);
|
|
4737
4765
|
}
|
|
4738
4766
|
}
|
|
4739
4767
|
) });
|
|
@@ -4749,10 +4777,10 @@ const Hl = Ue(
|
|
|
4749
4777
|
onChange: a,
|
|
4750
4778
|
...i
|
|
4751
4779
|
}, s) => {
|
|
4752
|
-
const
|
|
4780
|
+
const c = I(() => {
|
|
4753
4781
|
if (a) {
|
|
4754
|
-
let
|
|
4755
|
-
a(parseFloat(
|
|
4782
|
+
let l = e.replace(",", ".");
|
|
4783
|
+
a(parseFloat(l || "0").toFixed(2));
|
|
4756
4784
|
}
|
|
4757
4785
|
}, [a, e]);
|
|
4758
4786
|
return /* @__PURE__ */ o.jsx(
|
|
@@ -4763,8 +4791,8 @@ const Hl = Ue(
|
|
|
4763
4791
|
pattern: "[0-9]*[.,]?[0-9]*",
|
|
4764
4792
|
inputMode: "decimal",
|
|
4765
4793
|
value: e ?? "",
|
|
4766
|
-
onChange: (
|
|
4767
|
-
onBlur:
|
|
4794
|
+
onChange: (l) => a == null ? void 0 : a(l.target.value),
|
|
4795
|
+
onBlur: c
|
|
4768
4796
|
}
|
|
4769
4797
|
);
|
|
4770
4798
|
}
|
|
@@ -4802,16 +4830,16 @@ const Hl = Ue(
|
|
|
4802
4830
|
positionFixed: a,
|
|
4803
4831
|
onClickLogo: i,
|
|
4804
4832
|
showBackNavigation: s,
|
|
4805
|
-
onClickBackNavigation:
|
|
4833
|
+
onClickBackNavigation: c
|
|
4806
4834
|
}) => {
|
|
4807
|
-
const
|
|
4835
|
+
const l = re(null), [d, f] = W(!1), v = I(() => {
|
|
4808
4836
|
f(!d);
|
|
4809
4837
|
}, [d, f]);
|
|
4810
4838
|
return /* @__PURE__ */ o.jsxs("div", { className: `header ${a ? "header--fixed" : ""}`, children: [
|
|
4811
4839
|
/* @__PURE__ */ o.jsxs("div", { className: "flex-1 d-flex align-items-center", children: [
|
|
4812
|
-
/* @__PURE__ */ o.jsx("span", { onClick: r, children: /* @__PURE__ */ o.jsx(
|
|
4813
|
-
s && /* @__PURE__ */ o.jsx("span", { className: "chevron-back", onClick:
|
|
4814
|
-
|
|
4840
|
+
/* @__PURE__ */ o.jsx("span", { onClick: r, children: /* @__PURE__ */ o.jsx(V, { size: je.MEDIUM, classIcon: "bi-list" }) }),
|
|
4841
|
+
s && /* @__PURE__ */ o.jsx("span", { className: "chevron-back", onClick: c, children: /* @__PURE__ */ o.jsx(
|
|
4842
|
+
V,
|
|
4815
4843
|
{
|
|
4816
4844
|
size: je.EXTRA_SMALL,
|
|
4817
4845
|
classIcon: "bi-caret-left-fill"
|
|
@@ -4828,14 +4856,14 @@ const Hl = Ue(
|
|
|
4828
4856
|
] }),
|
|
4829
4857
|
/* @__PURE__ */ o.jsxs("div", { className: "d-flex align-items-center", children: [
|
|
4830
4858
|
e,
|
|
4831
|
-
/* @__PURE__ */ o.jsx("div", { ref:
|
|
4832
|
-
d &&
|
|
4859
|
+
/* @__PURE__ */ o.jsx("div", { ref: l, onClick: v, children: /* @__PURE__ */ o.jsx(V, { size: je.MEDIUM, classIcon: "bi-person-circle" }) }),
|
|
4860
|
+
d && l.current && /* @__PURE__ */ o.jsx(
|
|
4833
4861
|
An,
|
|
4834
4862
|
{
|
|
4835
4863
|
position: "bottomRight",
|
|
4836
4864
|
show: d,
|
|
4837
4865
|
closeOverlay: f,
|
|
4838
|
-
referenceElement:
|
|
4866
|
+
referenceElement: l.current,
|
|
4839
4867
|
children: n
|
|
4840
4868
|
}
|
|
4841
4869
|
)
|
|
@@ -4857,7 +4885,7 @@ const Hl = Ue(
|
|
|
4857
4885
|
}
|
|
4858
4886
|
}, [t]);
|
|
4859
4887
|
return /* @__PURE__ */ o.jsxs("div", { className: `message message--${t} ${r ?? ""}`, children: [
|
|
4860
|
-
/* @__PURE__ */ o.jsx(
|
|
4888
|
+
/* @__PURE__ */ o.jsx(V, { classIcon: n }),
|
|
4861
4889
|
/* @__PURE__ */ o.jsx("span", { className: "message-text", children: e })
|
|
4862
4890
|
] });
|
|
4863
4891
|
}, Jl = ({
|
|
@@ -4868,24 +4896,24 @@ const Hl = Ue(
|
|
|
4868
4896
|
titleButton: a,
|
|
4869
4897
|
title: i,
|
|
4870
4898
|
styleContainer: s = {},
|
|
4871
|
-
classNameContainer:
|
|
4872
|
-
closeOnOverlayClick:
|
|
4899
|
+
classNameContainer: c = "",
|
|
4900
|
+
closeOnOverlayClick: l = !0
|
|
4873
4901
|
}) => {
|
|
4874
4902
|
if (!e) return null;
|
|
4875
4903
|
const d = () => {
|
|
4876
|
-
|
|
4904
|
+
l && t();
|
|
4877
4905
|
};
|
|
4878
4906
|
return Ia(
|
|
4879
4907
|
/* @__PURE__ */ o.jsx("div", { className: "modal-overlay", onMouseDown: d, children: /* @__PURE__ */ o.jsxs(
|
|
4880
4908
|
"div",
|
|
4881
4909
|
{
|
|
4882
|
-
className: `modal-container ${
|
|
4910
|
+
className: `modal-container ${c}`,
|
|
4883
4911
|
style: s,
|
|
4884
4912
|
onMouseDown: (f) => f.stopPropagation(),
|
|
4885
4913
|
children: [
|
|
4886
4914
|
/* @__PURE__ */ o.jsxs("div", { className: "modal-header", children: [
|
|
4887
4915
|
i && /* @__PURE__ */ o.jsx("h2", { className: "modal-title", children: i }),
|
|
4888
|
-
/* @__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" }) })
|
|
4889
4917
|
] }),
|
|
4890
4918
|
/* @__PURE__ */ o.jsx("div", { className: "modal-content", children: r }),
|
|
4891
4919
|
n && /* @__PURE__ */ o.jsx("div", { className: "d-flex justify-content-end", children: /* @__PURE__ */ o.jsx(xt, { onClick: n, title: a ?? "" }) })
|
|
@@ -4903,8 +4931,8 @@ const Hl = Ue(
|
|
|
4903
4931
|
className: a,
|
|
4904
4932
|
title: i,
|
|
4905
4933
|
id: s
|
|
4906
|
-
},
|
|
4907
|
-
const [
|
|
4934
|
+
}, c) => {
|
|
4935
|
+
const [l, d] = W(null), f = I(async () => {
|
|
4908
4936
|
const v = new Blob([e], { type: "application/pdf" }), g = URL.createObjectURL(v);
|
|
4909
4937
|
if (!t) {
|
|
4910
4938
|
const h = `${g}#toolbar=0&navpanes=0&scrollbar=0`;
|
|
@@ -4913,16 +4941,16 @@ const Hl = Ue(
|
|
|
4913
4941
|
}
|
|
4914
4942
|
d(g);
|
|
4915
4943
|
}, [e, t, d]);
|
|
4916
|
-
return
|
|
4944
|
+
return X(() => {
|
|
4917
4945
|
f();
|
|
4918
|
-
}, [e, f]),
|
|
4919
|
-
|
|
4920
|
-
}, [
|
|
4946
|
+
}, [e, f]), X(() => () => {
|
|
4947
|
+
l && URL.revokeObjectURL(l);
|
|
4948
|
+
}, [l]), /* @__PURE__ */ o.jsx(o.Fragment, { children: l && /* @__PURE__ */ o.jsx(
|
|
4921
4949
|
"iframe",
|
|
4922
4950
|
{
|
|
4923
|
-
ref:
|
|
4951
|
+
ref: c,
|
|
4924
4952
|
className: a,
|
|
4925
|
-
src:
|
|
4953
|
+
src: l,
|
|
4926
4954
|
width: n,
|
|
4927
4955
|
height: r,
|
|
4928
4956
|
title: i,
|
|
@@ -4944,34 +4972,34 @@ const Hl = Ue(
|
|
|
4944
4972
|
disabledMinus: i,
|
|
4945
4973
|
pas: s
|
|
4946
4974
|
}) => {
|
|
4947
|
-
const [
|
|
4975
|
+
const [c, l] = W(s), d = I(
|
|
4948
4976
|
(h) => {
|
|
4949
|
-
n || (
|
|
4977
|
+
n || (l(h), e && e(t, h));
|
|
4950
4978
|
},
|
|
4951
|
-
[
|
|
4952
|
-
), f =
|
|
4979
|
+
[l, e]
|
|
4980
|
+
), f = I(
|
|
4953
4981
|
(h) => {
|
|
4954
4982
|
if (h.stopPropagation(), n || a)
|
|
4955
4983
|
return;
|
|
4956
|
-
const p =
|
|
4984
|
+
const p = c + s;
|
|
4957
4985
|
d(Math.round(p * 100) / 100);
|
|
4958
4986
|
},
|
|
4959
|
-
[
|
|
4960
|
-
), v =
|
|
4987
|
+
[c, d]
|
|
4988
|
+
), v = I(
|
|
4961
4989
|
(h) => {
|
|
4962
4990
|
if (h.stopPropagation(), n || i)
|
|
4963
4991
|
return;
|
|
4964
|
-
if (
|
|
4965
|
-
return
|
|
4966
|
-
const p =
|
|
4992
|
+
if (c === 0)
|
|
4993
|
+
return c;
|
|
4994
|
+
const p = c - s;
|
|
4967
4995
|
d(Math.round(p * 100) / 100);
|
|
4968
4996
|
},
|
|
4969
|
-
[d,
|
|
4997
|
+
[d, c]
|
|
4970
4998
|
);
|
|
4971
|
-
|
|
4972
|
-
t.quantity &&
|
|
4973
|
-
}, [t.quantity,
|
|
4974
|
-
const g =
|
|
4999
|
+
X(() => {
|
|
5000
|
+
t.quantity && l(t.quantity);
|
|
5001
|
+
}, [t.quantity, l]);
|
|
5002
|
+
const g = I(
|
|
4975
5003
|
(h) => {
|
|
4976
5004
|
h.stopPropagation(), r && r(t);
|
|
4977
5005
|
},
|
|
@@ -4983,16 +5011,16 @@ const Hl = Ue(
|
|
|
4983
5011
|
{
|
|
4984
5012
|
onClick: (h) => v(h),
|
|
4985
5013
|
className: `qte-action qte-action--minus ${n || i ? "disabled" : ""} `,
|
|
4986
|
-
children: /* @__PURE__ */ o.jsx(
|
|
5014
|
+
children: /* @__PURE__ */ o.jsx(V, { size: je.LARGE, classIcon: "bi bi-dash-square" })
|
|
4987
5015
|
}
|
|
4988
5016
|
),
|
|
4989
|
-
/* @__PURE__ */ o.jsx("span", { onClick: (h) => g(h), className: "qte-label", children:
|
|
5017
|
+
/* @__PURE__ */ o.jsx("span", { onClick: (h) => g(h), className: "qte-label", children: c }),
|
|
4990
5018
|
/* @__PURE__ */ o.jsx(
|
|
4991
5019
|
"div",
|
|
4992
5020
|
{
|
|
4993
5021
|
onClick: (h) => f(h),
|
|
4994
5022
|
className: `qte-action qte-action--plus ${n || a ? "disabled" : ""}`,
|
|
4995
|
-
children: /* @__PURE__ */ o.jsx(
|
|
5023
|
+
children: /* @__PURE__ */ o.jsx(V, { size: je.LARGE, classIcon: "bi bi-plus-square" })
|
|
4996
5024
|
}
|
|
4997
5025
|
)
|
|
4998
5026
|
] });
|
|
@@ -5005,14 +5033,14 @@ const Hl = Ue(
|
|
|
5005
5033
|
focus: a,
|
|
5006
5034
|
debounceTime: i,
|
|
5007
5035
|
handleChange: s,
|
|
5008
|
-
setIsVisible:
|
|
5009
|
-
id:
|
|
5036
|
+
setIsVisible: c,
|
|
5037
|
+
id: l
|
|
5010
5038
|
}, d) => {
|
|
5011
|
-
const [f, v] =
|
|
5039
|
+
const [f, v] = W(n ?? !1), g = re(null), h = re(null), p = Re(
|
|
5012
5040
|
() => [
|
|
5013
5041
|
{
|
|
5014
5042
|
value: "",
|
|
5015
|
-
id:
|
|
5043
|
+
id: l,
|
|
5016
5044
|
name: t ?? "recherche",
|
|
5017
5045
|
placeholder: r ?? "Recherche",
|
|
5018
5046
|
type: Be.TEXT,
|
|
@@ -5024,41 +5052,41 @@ const Hl = Ue(
|
|
|
5024
5052
|
],
|
|
5025
5053
|
[r, a]
|
|
5026
5054
|
);
|
|
5027
|
-
|
|
5055
|
+
X(() => {
|
|
5028
5056
|
n !== void 0 && v(n);
|
|
5029
5057
|
}, [n]);
|
|
5030
|
-
const m =
|
|
5031
|
-
(
|
|
5032
|
-
|
|
5058
|
+
const m = I(
|
|
5059
|
+
(b) => {
|
|
5060
|
+
c && c(b), v(b);
|
|
5033
5061
|
},
|
|
5034
|
-
[
|
|
5035
|
-
),
|
|
5036
|
-
(
|
|
5037
|
-
if (!
|
|
5062
|
+
[c]
|
|
5063
|
+
), y = I(
|
|
5064
|
+
(b) => {
|
|
5065
|
+
if (!b || !b[t ?? "recherche"])
|
|
5038
5066
|
return m(!1);
|
|
5039
5067
|
m(!0), g.current && clearTimeout(g.current), g.current = setTimeout(() => {
|
|
5040
|
-
s && s(
|
|
5068
|
+
s && s(b);
|
|
5041
5069
|
}, i ?? 500);
|
|
5042
5070
|
},
|
|
5043
5071
|
[m, s, i]
|
|
5044
|
-
), j =
|
|
5045
|
-
(
|
|
5046
|
-
console.log("Form Submitted: ",
|
|
5072
|
+
), j = I(
|
|
5073
|
+
(b) => {
|
|
5074
|
+
console.log("Form Submitted: ", b);
|
|
5047
5075
|
},
|
|
5048
5076
|
[]
|
|
5049
5077
|
);
|
|
5050
5078
|
return Dr(d, () => ({
|
|
5051
|
-
clearInput: (
|
|
5079
|
+
clearInput: (b) => {
|
|
5052
5080
|
var _;
|
|
5053
|
-
(_ = h.current) == null || _.clearInput(
|
|
5081
|
+
(_ = h.current) == null || _.clearInput(b);
|
|
5054
5082
|
},
|
|
5055
5083
|
resetForm: () => {
|
|
5056
|
-
var
|
|
5057
|
-
(
|
|
5084
|
+
var b;
|
|
5085
|
+
(b = h.current) == null || b.resetForm();
|
|
5058
5086
|
},
|
|
5059
5087
|
focusInitialElement: () => {
|
|
5060
|
-
var
|
|
5061
|
-
(
|
|
5088
|
+
var b;
|
|
5089
|
+
(b = h.current) == null || b.focusInitialElement();
|
|
5062
5090
|
}
|
|
5063
5091
|
})), /* @__PURE__ */ o.jsxs("div", { className: "search", children: [
|
|
5064
5092
|
/* @__PURE__ */ o.jsx(
|
|
@@ -5066,7 +5094,7 @@ const Hl = Ue(
|
|
|
5066
5094
|
{
|
|
5067
5095
|
ref: h,
|
|
5068
5096
|
onSubmit: j,
|
|
5069
|
-
onChange:
|
|
5097
|
+
onChange: y,
|
|
5070
5098
|
hideSubmit: !0,
|
|
5071
5099
|
initialForm: p
|
|
5072
5100
|
}
|
|
@@ -5077,7 +5105,7 @@ const Hl = Ue(
|
|
|
5077
5105
|
{
|
|
5078
5106
|
className: "toggle-btn",
|
|
5079
5107
|
onClick: () => m(!1),
|
|
5080
|
-
children: /* @__PURE__ */ o.jsx(
|
|
5108
|
+
children: /* @__PURE__ */ o.jsx(V, { classIcon: "bi-x-lg" })
|
|
5081
5109
|
}
|
|
5082
5110
|
) }),
|
|
5083
5111
|
/* @__PURE__ */ o.jsx("div", { className: "search-result-content", children: e })
|
|
@@ -5092,60 +5120,60 @@ const Hl = Ue(
|
|
|
5092
5120
|
className: a,
|
|
5093
5121
|
id: i,
|
|
5094
5122
|
width: s,
|
|
5095
|
-
closeOnClickOutside:
|
|
5096
|
-
displayOverlay:
|
|
5123
|
+
closeOnClickOutside: c = !0,
|
|
5124
|
+
displayOverlay: l = !0
|
|
5097
5125
|
}) => {
|
|
5098
|
-
const [d, f] =
|
|
5099
|
-
|
|
5100
|
-
|
|
5101
|
-
}), [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(() => {
|
|
5102
5130
|
f(e || !1);
|
|
5103
5131
|
}, [e]);
|
|
5104
|
-
const S =
|
|
5132
|
+
const S = I(() => {
|
|
5105
5133
|
f(!1), n && n(!1);
|
|
5106
|
-
}, [n]),
|
|
5107
|
-
(
|
|
5108
|
-
|
|
5134
|
+
}, [n]), O = I(
|
|
5135
|
+
(D) => {
|
|
5136
|
+
c && m.current && !m.current.contains(D.target) && S();
|
|
5109
5137
|
},
|
|
5110
|
-
[S,
|
|
5111
|
-
), E =
|
|
5112
|
-
const
|
|
5113
|
-
j.current =
|
|
5114
|
-
}, []), C =
|
|
5115
|
-
(
|
|
5138
|
+
[S, c]
|
|
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) => {
|
|
5116
5144
|
if (!d) return;
|
|
5117
|
-
const
|
|
5145
|
+
const M = D.touches[0], R = M.clientX - j.current, A = M.clientY - b.current;
|
|
5118
5146
|
if (!_.current) {
|
|
5119
|
-
if (Math.abs(
|
|
5147
|
+
if (Math.abs(R) < Pa && Math.abs(A) < Pa)
|
|
5120
5148
|
return;
|
|
5121
|
-
_.current = Math.abs(
|
|
5149
|
+
_.current = Math.abs(R) > Math.abs(A) ? "x" : "y";
|
|
5122
5150
|
}
|
|
5123
|
-
_.current === "x" && (
|
|
5151
|
+
_.current === "x" && (D.preventDefault(), p(!0), g(Math.max(0, R)));
|
|
5124
5152
|
},
|
|
5125
5153
|
[d]
|
|
5126
|
-
),
|
|
5127
|
-
(
|
|
5128
|
-
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);
|
|
5129
5157
|
},
|
|
5130
5158
|
[d, S]
|
|
5131
|
-
),
|
|
5132
|
-
(
|
|
5133
|
-
|
|
5159
|
+
), x = I(
|
|
5160
|
+
(D) => {
|
|
5161
|
+
D.preventDefault(), S();
|
|
5134
5162
|
},
|
|
5135
5163
|
[S]
|
|
5136
5164
|
);
|
|
5137
|
-
return
|
|
5165
|
+
return X(() => (d ? (document.addEventListener("mousedown", O), document.addEventListener("touchstart", O, {
|
|
5138
5166
|
passive: !0
|
|
5139
|
-
})) : (document.removeEventListener("mousedown",
|
|
5140
|
-
document.removeEventListener("mousedown",
|
|
5141
|
-
}), [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(
|
|
5142
5170
|
/* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
5143
|
-
d &&
|
|
5171
|
+
d && l && /* @__PURE__ */ o.jsx(
|
|
5144
5172
|
"div",
|
|
5145
5173
|
{
|
|
5146
5174
|
className: "overlay",
|
|
5147
5175
|
onClick: S,
|
|
5148
|
-
onTouchEnd:
|
|
5176
|
+
onTouchEnd: x
|
|
5149
5177
|
}
|
|
5150
5178
|
),
|
|
5151
5179
|
/* @__PURE__ */ o.jsxs(
|
|
@@ -5160,18 +5188,18 @@ const Hl = Ue(
|
|
|
5160
5188
|
className: `sidebar ${d ? "open" : "closed"} ${a ?? ""}`,
|
|
5161
5189
|
onTouchStart: E,
|
|
5162
5190
|
onTouchMove: C,
|
|
5163
|
-
onTouchEnd:
|
|
5191
|
+
onTouchEnd: F,
|
|
5164
5192
|
children: [
|
|
5165
5193
|
/* @__PURE__ */ o.jsxs("div", { className: "sidebar-header", children: [
|
|
5166
5194
|
r && /* @__PURE__ */ o.jsx("h2", { className: "flex-1", children: r }),
|
|
5167
|
-
/* @__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" }) })
|
|
5168
5196
|
] }),
|
|
5169
5197
|
t && t
|
|
5170
5198
|
]
|
|
5171
5199
|
}
|
|
5172
5200
|
)
|
|
5173
5201
|
] }),
|
|
5174
|
-
|
|
5202
|
+
y.current
|
|
5175
5203
|
) : /* @__PURE__ */ o.jsx(o.Fragment, {});
|
|
5176
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 = ({
|
|
5177
5205
|
items: e,
|
|
@@ -5182,13 +5210,13 @@ const Hl = Ue(
|
|
|
5182
5210
|
tabClassName: i = "",
|
|
5183
5211
|
panelClassName: s = ""
|
|
5184
5212
|
}) => {
|
|
5185
|
-
const
|
|
5186
|
-
|
|
5187
|
-
!
|
|
5188
|
-
}, [t, e.length,
|
|
5213
|
+
const c = typeof r == "number", [l, d] = W(t), f = c ? r : l;
|
|
5214
|
+
X(() => {
|
|
5215
|
+
!c && (t < 0 || t >= e.length) && d(0);
|
|
5216
|
+
}, [t, e.length, c]);
|
|
5189
5217
|
const v = re([]), g = (h) => {
|
|
5190
5218
|
var p, m;
|
|
5191
|
-
(p = e[h]) != null && p.disabled || (
|
|
5219
|
+
(p = e[h]) != null && p.disabled || (c || d(h), n == null || n(h), (m = v.current[h]) == null || m.focus());
|
|
5192
5220
|
};
|
|
5193
5221
|
return /* @__PURE__ */ o.jsxs("div", { className: `tabs-root ${a}`, children: [
|
|
5194
5222
|
/* @__PURE__ */ o.jsx("div", { role: "tablist", className: "tabs-header", children: e.map((h, p) => /* @__PURE__ */ o.jsx(
|
|
@@ -5228,8 +5256,8 @@ const Hl = Ue(
|
|
|
5228
5256
|
const g = t;
|
|
5229
5257
|
t = f ?? (typeof v != "object" || v === null) ? v : Object.assign({}, t, v), r.forEach((h) => h(t, g));
|
|
5230
5258
|
}
|
|
5231
|
-
}, a = () => t,
|
|
5232
|
-
return
|
|
5259
|
+
}, a = () => t, c = { setState: n, getState: a, getInitialState: () => l, subscribe: (d) => (r.add(d), () => r.delete(d)) }, l = t = e(n, a, c);
|
|
5260
|
+
return c;
|
|
5233
5261
|
}, vl = (e) => e ? Ta(e) : Ta, ml = (e) => e;
|
|
5234
5262
|
function pl(e, t = ml) {
|
|
5235
5263
|
const r = Ae.useSyncExternalStore(
|
|
@@ -5268,11 +5296,11 @@ const Ra = (e) => {
|
|
|
5268
5296
|
children: a,
|
|
5269
5297
|
duration: i,
|
|
5270
5298
|
hideToast: s,
|
|
5271
|
-
close:
|
|
5272
|
-
} = yl(),
|
|
5299
|
+
close: c
|
|
5300
|
+
} = yl(), l = I(() => {
|
|
5273
5301
|
s();
|
|
5274
5302
|
}, [s]);
|
|
5275
|
-
if (
|
|
5303
|
+
if (X(() => {
|
|
5276
5304
|
if (!n) return;
|
|
5277
5305
|
const f = setTimeout(() => {
|
|
5278
5306
|
s();
|
|
@@ -5282,12 +5310,12 @@ const Ra = (e) => {
|
|
|
5282
5310
|
const d = document.getElementById("toaster-root");
|
|
5283
5311
|
return d ? Nn.createPortal(
|
|
5284
5312
|
/* @__PURE__ */ o.jsxs("div", { className: `toaster toaster-${r}`, children: [
|
|
5285
|
-
|
|
5313
|
+
c && /* @__PURE__ */ o.jsx("div", { className: "toaster--close", onClick: l, children: /* @__PURE__ */ o.jsx(V, { classIcon: "bi-x" }) }),
|
|
5286
5314
|
/* @__PURE__ */ o.jsxs("div", { children: [
|
|
5287
|
-
r === "info" && /* @__PURE__ */ o.jsx(
|
|
5288
|
-
r === "success" && /* @__PURE__ */ o.jsx(
|
|
5289
|
-
r === "error" && /* @__PURE__ */ o.jsx(
|
|
5290
|
-
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" })
|
|
5291
5319
|
] }),
|
|
5292
5320
|
/* @__PURE__ */ o.jsxs("div", { children: [
|
|
5293
5321
|
/* @__PURE__ */ o.jsx("div", { className: `title title-${r}`, children: e }),
|
|
@@ -5316,7 +5344,7 @@ export {
|
|
|
5316
5344
|
ql as Grid,
|
|
5317
5345
|
Xl as Header,
|
|
5318
5346
|
wl as HistoryProvider,
|
|
5319
|
-
|
|
5347
|
+
V as Icon,
|
|
5320
5348
|
je as IconSizeEnum,
|
|
5321
5349
|
Sl as ImageChecker,
|
|
5322
5350
|
Dl as ImageExist,
|