kelt-ui-kit-react 1.7.2 → 1.7.4
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 +3 -0
- package/dist/dataTable/dataTableColumn/DataTableColumn.d.ts +5 -6
- package/dist/dataTable/dataTableRow/dataTableRowValue/DataTableRowValue.d.ts +10 -0
- package/dist/index.js +1180 -1134
- package/package.json +1 -1
- package/src/dataTable/DataTable.tsx +37 -13
- package/src/dataTable/dataTable.interface.ts +3 -0
- package/src/dataTable/dataTableColumn/DataTableColumn.tsx +13 -9
- package/src/dataTable/dataTableRow/DataTableRow.tsx +5 -30
- package/src/dataTable/dataTableRow/dataTableRowValue/DataTableRowValue.tsx +52 -0
- package/vite.config.ts.timestamp-1757847121745-e5a5bf54b81b.mjs +28 -28
- package/vite.config.ts.timestamp-1759742478362-4ac5c5a7db34b.mjs +28 -28
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as Me from "react";
|
|
2
|
-
import Re, { createContext as Ra, useRef as oe, useState as
|
|
2
|
+
import Re, { createContext as Ra, useRef as oe, useState as W, useEffect as H, useContext as On, useCallback as $, useDebugValue as Gn, createElement as Bo, forwardRef as Ue, useId as Uo, useImperativeHandle as Dr, useMemo as Le, Children as zo, cloneElement as Go } from "react";
|
|
3
3
|
import Nn, { createPortal as Aa } from "react-dom";
|
|
4
4
|
var ar = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
5
5
|
function Ho(e) {
|
|
@@ -21,11 +21,11 @@ function qo() {
|
|
|
21
21
|
Hn = 1;
|
|
22
22
|
var e = Re, t = Symbol.for("react.element"), r = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, a = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
23
23
|
function s(l, c, d) {
|
|
24
|
-
var f,
|
|
25
|
-
d !== void 0 && (g = "" + d), c.key !== void 0 && (g = "" + c.key), c.ref !== void 0 && (
|
|
26
|
-
for (f in c) n.call(c, f) && !i.hasOwnProperty(f) && (
|
|
27
|
-
if (l && l.defaultProps) for (f in c = l.defaultProps, c)
|
|
28
|
-
return { $$typeof: t, type: l, key: g, ref:
|
|
24
|
+
var f, h = {}, g = null, v = null;
|
|
25
|
+
d !== void 0 && (g = "" + d), c.key !== void 0 && (g = "" + c.key), c.ref !== void 0 && (v = c.ref);
|
|
26
|
+
for (f in c) n.call(c, f) && !i.hasOwnProperty(f) && (h[f] = c[f]);
|
|
27
|
+
if (l && l.defaultProps) for (f in c = l.defaultProps, c) h[f] === void 0 && (h[f] = c[f]);
|
|
28
|
+
return { $$typeof: t, type: l, key: g, ref: v, props: h, _owner: a.current };
|
|
29
29
|
}
|
|
30
30
|
return It.Fragment = r, It.jsx = s, It.jsxs = s, It;
|
|
31
31
|
}
|
|
@@ -42,7 +42,7 @@ 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 = Re, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), l = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"),
|
|
45
|
+
var e = Re, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), l = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), g = Symbol.for("react.lazy"), v = Symbol.for("react.offscreen"), m = Symbol.iterator, p = "@@iterator";
|
|
46
46
|
function w(u) {
|
|
47
47
|
if (u === null || typeof u != "object")
|
|
48
48
|
return null;
|
|
@@ -50,46 +50,46 @@ function Xo() {
|
|
|
50
50
|
return typeof x == "function" ? x : null;
|
|
51
51
|
}
|
|
52
52
|
var j = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
53
|
-
function
|
|
53
|
+
function y(u) {
|
|
54
54
|
{
|
|
55
|
-
for (var x = arguments.length, O = new Array(x > 1 ? x - 1 : 0),
|
|
56
|
-
O[
|
|
55
|
+
for (var x = arguments.length, O = new Array(x > 1 ? x - 1 : 0), I = 1; I < x; I++)
|
|
56
|
+
O[I - 1] = arguments[I];
|
|
57
57
|
D("error", u, O);
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
60
|
function D(u, x, O) {
|
|
61
61
|
{
|
|
62
|
-
var
|
|
63
|
-
|
|
62
|
+
var I = j.ReactDebugCurrentFrame, U = I.getStackAddendum();
|
|
63
|
+
U !== "" && (x += "%s", O = O.concat([U]));
|
|
64
64
|
var N = O.map(function(k) {
|
|
65
65
|
return String(k);
|
|
66
66
|
});
|
|
67
67
|
N.unshift("Warning: " + x), Function.prototype.apply.call(console[u], console, N);
|
|
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, R = !1, _ = !1, P = !1, V = !1, b;
|
|
71
|
+
b = Symbol.for("react.module.reference");
|
|
72
|
+
function L(u) {
|
|
73
|
+
return !!(typeof u == "string" || typeof u == "function" || u === n || u === i || V || u === a || u === d || u === f || P || u === v || S || R || _ || typeof u == "object" && u !== null && (u.$$typeof === g || u.$$typeof === h || u.$$typeof === s || u.$$typeof === l || u.$$typeof === c || // This needs to include all possible module reference object
|
|
74
74
|
// types supported by any Flight configuration anywhere since
|
|
75
75
|
// we don't know which Flight build this will end up being used
|
|
76
76
|
// with.
|
|
77
|
-
u.$$typeof ===
|
|
77
|
+
u.$$typeof === b || u.getModuleId !== void 0));
|
|
78
78
|
}
|
|
79
|
-
function
|
|
80
|
-
var
|
|
81
|
-
if (
|
|
82
|
-
return
|
|
83
|
-
var
|
|
84
|
-
return
|
|
79
|
+
function T(u, x, O) {
|
|
80
|
+
var I = u.displayName;
|
|
81
|
+
if (I)
|
|
82
|
+
return I;
|
|
83
|
+
var U = x.displayName || x.name || "";
|
|
84
|
+
return U !== "" ? O + "(" + U + ")" : O;
|
|
85
85
|
}
|
|
86
|
-
function
|
|
86
|
+
function A(u) {
|
|
87
87
|
return u.displayName || "Context";
|
|
88
88
|
}
|
|
89
|
-
function
|
|
89
|
+
function E(u) {
|
|
90
90
|
if (u == null)
|
|
91
91
|
return null;
|
|
92
|
-
if (typeof u.tag == "number" &&
|
|
92
|
+
if (typeof u.tag == "number" && y("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof u == "function")
|
|
93
93
|
return u.displayName || u.name || null;
|
|
94
94
|
if (typeof u == "string")
|
|
95
95
|
return u;
|
|
@@ -111,19 +111,19 @@ function Xo() {
|
|
|
111
111
|
switch (u.$$typeof) {
|
|
112
112
|
case l:
|
|
113
113
|
var x = u;
|
|
114
|
-
return
|
|
114
|
+
return A(x) + ".Consumer";
|
|
115
115
|
case s:
|
|
116
116
|
var O = u;
|
|
117
|
-
return
|
|
117
|
+
return A(O._context) + ".Provider";
|
|
118
118
|
case c:
|
|
119
|
-
return
|
|
120
|
-
case
|
|
121
|
-
var
|
|
122
|
-
return
|
|
119
|
+
return T(u, u.render, "ForwardRef");
|
|
120
|
+
case h:
|
|
121
|
+
var I = u.displayName || null;
|
|
122
|
+
return I !== null ? I : E(u.type) || "Memo";
|
|
123
123
|
case g: {
|
|
124
|
-
var
|
|
124
|
+
var U = u, N = U._payload, k = U._init;
|
|
125
125
|
try {
|
|
126
|
-
return
|
|
126
|
+
return E(k(N));
|
|
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 F = Object.assign, ie = 0, K, we, Ae, te, J, le, ee;
|
|
135
135
|
function Se() {
|
|
136
136
|
}
|
|
137
137
|
Se.__reactDisabledLog = !0;
|
|
138
138
|
function Ee() {
|
|
139
139
|
{
|
|
140
|
-
if (
|
|
141
|
-
|
|
140
|
+
if (ie === 0) {
|
|
141
|
+
K = console.log, we = console.info, Ae = console.warn, te = console.error, J = console.group, le = console.groupCollapsed, ee = 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:
|
|
171
|
-
value:
|
|
170
|
+
log: F({}, u, {
|
|
171
|
+
value: K
|
|
172
172
|
}),
|
|
173
|
-
info:
|
|
173
|
+
info: F({}, u, {
|
|
174
174
|
value: we
|
|
175
175
|
}),
|
|
176
|
-
warn:
|
|
176
|
+
warn: F({}, u, {
|
|
177
177
|
value: Ae
|
|
178
178
|
}),
|
|
179
|
-
error:
|
|
180
|
-
value:
|
|
179
|
+
error: F({}, u, {
|
|
180
|
+
value: te
|
|
181
181
|
}),
|
|
182
|
-
group:
|
|
183
|
-
value:
|
|
182
|
+
group: F({}, u, {
|
|
183
|
+
value: J
|
|
184
184
|
}),
|
|
185
|
-
groupCollapsed:
|
|
186
|
-
value:
|
|
185
|
+
groupCollapsed: F({}, u, {
|
|
186
|
+
value: le
|
|
187
187
|
}),
|
|
188
|
-
groupEnd:
|
|
189
|
-
value:
|
|
188
|
+
groupEnd: F({}, u, {
|
|
189
|
+
value: ee
|
|
190
190
|
})
|
|
191
191
|
});
|
|
192
192
|
}
|
|
193
|
-
|
|
193
|
+
ie < 0 && y("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, x, O) {
|
|
198
198
|
{
|
|
199
199
|
if (pe === void 0)
|
|
200
200
|
try {
|
|
201
201
|
throw Error();
|
|
202
|
-
} catch (
|
|
203
|
-
var
|
|
204
|
-
pe =
|
|
202
|
+
} catch (U) {
|
|
203
|
+
var I = U.stack.trim().match(/\n( *(at )?)/);
|
|
204
|
+
pe = I && I[1] || "";
|
|
205
205
|
}
|
|
206
206
|
return `
|
|
207
207
|
` + pe + u;
|
|
@@ -212,7 +212,7 @@ function Xo() {
|
|
|
212
212
|
var Ce = typeof WeakMap == "function" ? WeakMap : Map;
|
|
213
213
|
De = new Ce();
|
|
214
214
|
}
|
|
215
|
-
function
|
|
215
|
+
function he(u, x) {
|
|
216
216
|
if (!u || ne)
|
|
217
217
|
return "";
|
|
218
218
|
{
|
|
@@ -220,9 +220,9 @@ function Xo() {
|
|
|
220
220
|
if (O !== void 0)
|
|
221
221
|
return O;
|
|
222
222
|
}
|
|
223
|
-
var
|
|
223
|
+
var I;
|
|
224
224
|
ne = !0;
|
|
225
|
-
var
|
|
225
|
+
var U = Error.prepareStackTrace;
|
|
226
226
|
Error.prepareStackTrace = void 0;
|
|
227
227
|
var N;
|
|
228
228
|
N = me.current, me.current = null, Ee();
|
|
@@ -239,14 +239,14 @@ function Xo() {
|
|
|
239
239
|
try {
|
|
240
240
|
Reflect.construct(k, []);
|
|
241
241
|
} catch (ye) {
|
|
242
|
-
|
|
242
|
+
I = ye;
|
|
243
243
|
}
|
|
244
244
|
Reflect.construct(u, [], k);
|
|
245
245
|
} else {
|
|
246
246
|
try {
|
|
247
247
|
k.call();
|
|
248
248
|
} catch (ye) {
|
|
249
|
-
|
|
249
|
+
I = ye;
|
|
250
250
|
}
|
|
251
251
|
u.call(k.prototype);
|
|
252
252
|
}
|
|
@@ -254,39 +254,39 @@ function Xo() {
|
|
|
254
254
|
try {
|
|
255
255
|
throw Error();
|
|
256
256
|
} catch (ye) {
|
|
257
|
-
|
|
257
|
+
I = ye;
|
|
258
258
|
}
|
|
259
259
|
u();
|
|
260
260
|
}
|
|
261
261
|
} catch (ye) {
|
|
262
|
-
if (ye &&
|
|
262
|
+
if (ye && I && typeof ye.stack == "string") {
|
|
263
263
|
for (var C = ye.stack.split(`
|
|
264
|
-
`),
|
|
265
|
-
`),
|
|
266
|
-
|
|
267
|
-
for (;
|
|
268
|
-
if (C[
|
|
269
|
-
if (
|
|
264
|
+
`), G = I.stack.split(`
|
|
265
|
+
`), B = C.length - 1, Q = G.length - 1; B >= 1 && Q >= 0 && C[B] !== G[Q]; )
|
|
266
|
+
Q--;
|
|
267
|
+
for (; B >= 1 && Q >= 0; B--, Q--)
|
|
268
|
+
if (C[B] !== G[Q]) {
|
|
269
|
+
if (B !== 1 || Q !== 1)
|
|
270
270
|
do
|
|
271
|
-
if (
|
|
271
|
+
if (B--, Q--, Q < 0 || C[B] !== G[Q]) {
|
|
272
272
|
var ge = `
|
|
273
|
-
` + C[
|
|
273
|
+
` + C[B].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 (B >= 1 && Q >= 0);
|
|
277
277
|
break;
|
|
278
278
|
}
|
|
279
279
|
}
|
|
280
280
|
} finally {
|
|
281
|
-
ne = !1, me.current = N, ke(), Error.prepareStackTrace =
|
|
281
|
+
ne = !1, me.current = N, ke(), Error.prepareStackTrace = U;
|
|
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, x, O) {
|
|
287
|
-
return
|
|
287
|
+
return he(u, !1);
|
|
288
288
|
}
|
|
289
|
-
function
|
|
289
|
+
function re(u) {
|
|
290
290
|
var x = u.prototype;
|
|
291
291
|
return !!(x && x.isReactComponent);
|
|
292
292
|
}
|
|
@@ -294,32 +294,32 @@ function Xo() {
|
|
|
294
294
|
if (u == null)
|
|
295
295
|
return "";
|
|
296
296
|
if (typeof u == "function")
|
|
297
|
-
return
|
|
297
|
+
return he(u, re(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
308
|
case c:
|
|
309
309
|
return Ot(u.render);
|
|
310
|
-
case
|
|
310
|
+
case h:
|
|
311
311
|
return _e(u.type, x, O);
|
|
312
312
|
case g: {
|
|
313
|
-
var
|
|
313
|
+
var I = u, U = I._payload, N = I._init;
|
|
314
314
|
try {
|
|
315
|
-
return _e(N(
|
|
315
|
+
return _e(N(U), x, O);
|
|
316
316
|
} catch {
|
|
317
317
|
}
|
|
318
318
|
}
|
|
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 x = u._owner, O = _e(u.type, u._source, x ? x.type : null);
|
|
@@ -327,22 +327,22 @@ function Xo() {
|
|
|
327
327
|
} else
|
|
328
328
|
Nt.setExtraStackFrame(null);
|
|
329
329
|
}
|
|
330
|
-
function Mr(u, x, O,
|
|
330
|
+
function Mr(u, x, O, I, U) {
|
|
331
331
|
{
|
|
332
|
-
var N = Function.call.bind(
|
|
332
|
+
var N = Function.call.bind(se);
|
|
333
333
|
for (var k in u)
|
|
334
334
|
if (N(u, k)) {
|
|
335
335
|
var C = void 0;
|
|
336
336
|
try {
|
|
337
337
|
if (typeof u[k] != "function") {
|
|
338
|
-
var
|
|
339
|
-
throw
|
|
338
|
+
var G = Error((I || "React class") + ": " + O + " type `" + k + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof u[k] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
339
|
+
throw G.name = "Invariant Violation", G;
|
|
340
340
|
}
|
|
341
|
-
C = u[k](x, k,
|
|
342
|
-
} catch (
|
|
343
|
-
C =
|
|
341
|
+
C = u[k](x, k, I, O, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
342
|
+
} catch (B) {
|
|
343
|
+
C = B;
|
|
344
344
|
}
|
|
345
|
-
C && !(C instanceof Error) && (qe(
|
|
345
|
+
C && !(C instanceof Error) && (qe(U), y("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", I || "React class", O, k, typeof C), qe(null)), C instanceof Error && !(C.message in He) && (He[C.message] = !0, qe(U), y("Failed %s type: %s", O, C.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 y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ht(u)), qt(u);
|
|
372
372
|
}
|
|
373
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 x = Object.getOwnPropertyDescriptor(u, "ref").get;
|
|
382
382
|
if (x && x.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 x = Object.getOwnPropertyDescriptor(u, "key").get;
|
|
390
390
|
if (x && x.isReactWarning)
|
|
391
391
|
return !1;
|
|
@@ -398,7 +398,7 @@ function Xo() {
|
|
|
398
398
|
function Qt(u, x) {
|
|
399
399
|
{
|
|
400
400
|
var O = function() {
|
|
401
|
-
it || (it = !0,
|
|
401
|
+
it || (it = !0, y("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", x));
|
|
402
402
|
};
|
|
403
403
|
O.isReactWarning = !0, Object.defineProperty(u, "key", {
|
|
404
404
|
get: O,
|
|
@@ -409,7 +409,7 @@ function Xo() {
|
|
|
409
409
|
function Br(u, x) {
|
|
410
410
|
{
|
|
411
411
|
var O = function() {
|
|
412
|
-
kt || (kt = !0,
|
|
412
|
+
kt || (kt = !0, y("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", x));
|
|
413
413
|
};
|
|
414
414
|
O.isReactWarning = !0, Object.defineProperty(u, "ref", {
|
|
415
415
|
get: O,
|
|
@@ -417,7 +417,7 @@ function Xo() {
|
|
|
417
417
|
});
|
|
418
418
|
}
|
|
419
419
|
}
|
|
420
|
-
var Zt = function(u, x, O,
|
|
420
|
+
var Zt = function(u, x, O, I, U, N, k) {
|
|
421
421
|
var C = {
|
|
422
422
|
// This tag allows us to uniquely identify this as a React Element
|
|
423
423
|
$$typeof: t,
|
|
@@ -438,30 +438,30 @@ function Xo() {
|
|
|
438
438
|
configurable: !1,
|
|
439
439
|
enumerable: !1,
|
|
440
440
|
writable: !1,
|
|
441
|
-
value:
|
|
441
|
+
value: I
|
|
442
442
|
}), Object.defineProperty(C, "_source", {
|
|
443
443
|
configurable: !1,
|
|
444
444
|
enumerable: !1,
|
|
445
445
|
writable: !1,
|
|
446
|
-
value:
|
|
446
|
+
value: U
|
|
447
447
|
}), Object.freeze && (Object.freeze(C.props), Object.freeze(C)), C;
|
|
448
448
|
};
|
|
449
|
-
function er(u, x, O,
|
|
449
|
+
function er(u, x, O, I, U) {
|
|
450
450
|
{
|
|
451
|
-
var N, k = {}, C = null,
|
|
452
|
-
O !== void 0 && (Xt(O), C = "" + O), Yr(x) && (Xt(x.key), C = "" + x.key), Jt(x) && (
|
|
451
|
+
var N, k = {}, C = null, G = null;
|
|
452
|
+
O !== void 0 && (Xt(O), C = "" + O), Yr(x) && (Xt(x.key), C = "" + x.key), Jt(x) && (G = x.ref, st(x, U));
|
|
453
453
|
for (N in x)
|
|
454
|
-
|
|
454
|
+
se.call(x, N) && !Vr.hasOwnProperty(N) && (k[N] = x[N]);
|
|
455
455
|
if (u && u.defaultProps) {
|
|
456
|
-
var
|
|
457
|
-
for (N in
|
|
458
|
-
k[N] === void 0 && (k[N] =
|
|
456
|
+
var B = u.defaultProps;
|
|
457
|
+
for (N in B)
|
|
458
|
+
k[N] === void 0 && (k[N] = B[N]);
|
|
459
459
|
}
|
|
460
|
-
if (C ||
|
|
461
|
-
var
|
|
462
|
-
C && Qt(k,
|
|
460
|
+
if (C || G) {
|
|
461
|
+
var Q = typeof u == "function" ? u.displayName || u.name || "Unknown" : u;
|
|
462
|
+
C && Qt(k, Q), G && Br(k, Q);
|
|
463
463
|
}
|
|
464
|
-
return Zt(u, C,
|
|
464
|
+
return Zt(u, C, G, U, I, Kt.current, k);
|
|
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 = E(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 q(u) {
|
|
497
497
|
{
|
|
498
|
-
var x =
|
|
498
|
+
var x = de();
|
|
499
499
|
if (!x) {
|
|
500
500
|
var O = typeof u == "string" ? u : u.displayName || u.name;
|
|
501
501
|
O && (x = `
|
|
@@ -510,12 +510,12 @@ Check the top-level render call using <` + O + ">.");
|
|
|
510
510
|
if (!u._store || u._store.validated || u.key != null)
|
|
511
511
|
return;
|
|
512
512
|
u._store.validated = !0;
|
|
513
|
-
var O =
|
|
513
|
+
var O = q(x);
|
|
514
514
|
if (Ke[O])
|
|
515
515
|
return;
|
|
516
516
|
Ke[O] = !0;
|
|
517
|
-
var
|
|
518
|
-
u && u._owner && u._owner !== Xe.current && (
|
|
517
|
+
var I = "";
|
|
518
|
+
u && u._owner && u._owner !== Xe.current && (I = " It was passed a child from " + E(u._owner.type) + "."), Ie(u), y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', O, I), Ie(null);
|
|
519
519
|
}
|
|
520
520
|
}
|
|
521
521
|
function rr(u, x) {
|
|
@@ -524,15 +524,15 @@ Check the top-level render call using <` + O + ">.");
|
|
|
524
524
|
return;
|
|
525
525
|
if (Et(u))
|
|
526
526
|
for (var O = 0; O < u.length; O++) {
|
|
527
|
-
var
|
|
528
|
-
ct(
|
|
527
|
+
var I = u[O];
|
|
528
|
+
ct(I) && je(I, x);
|
|
529
529
|
}
|
|
530
530
|
else if (ct(u))
|
|
531
531
|
u._store && (u._store.validated = !0);
|
|
532
532
|
else if (u) {
|
|
533
|
-
var
|
|
534
|
-
if (typeof
|
|
535
|
-
for (var N =
|
|
533
|
+
var U = w(u);
|
|
534
|
+
if (typeof U == "function" && U !== u.entries)
|
|
535
|
+
for (var N = U.call(u), k; !(k = N.next()).done; )
|
|
536
536
|
ct(k.value) && je(k.value, x);
|
|
537
537
|
}
|
|
538
538
|
}
|
|
@@ -547,68 +547,68 @@ Check the top-level render call using <` + O + ">.");
|
|
|
547
547
|
O = x.propTypes;
|
|
548
548
|
else if (typeof x == "object" && (x.$$typeof === c || // Note: Memo only checks outer props here.
|
|
549
549
|
// Inner props are checked in the reconciler.
|
|
550
|
-
x.$$typeof ===
|
|
550
|
+
x.$$typeof === h))
|
|
551
551
|
O = x.propTypes;
|
|
552
552
|
else
|
|
553
553
|
return;
|
|
554
554
|
if (O) {
|
|
555
|
-
var
|
|
556
|
-
Mr(O, u.props, "prop",
|
|
555
|
+
var I = E(x);
|
|
556
|
+
Mr(O, u.props, "prop", I, u);
|
|
557
557
|
} else if (x.PropTypes !== void 0 && !Ct) {
|
|
558
558
|
Ct = !0;
|
|
559
|
-
var
|
|
560
|
-
|
|
559
|
+
var U = E(x);
|
|
560
|
+
y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", U || "Unknown");
|
|
561
561
|
}
|
|
562
|
-
typeof x.getDefaultProps == "function" && !x.getDefaultProps.isReactClassApproved &&
|
|
562
|
+
typeof x.getDefaultProps == "function" && !x.getDefaultProps.isReactClassApproved && y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
563
563
|
}
|
|
564
564
|
}
|
|
565
565
|
function nr(u) {
|
|
566
566
|
{
|
|
567
567
|
for (var x = Object.keys(u.props), O = 0; O < x.length; O++) {
|
|
568
|
-
var
|
|
569
|
-
if (
|
|
570
|
-
Ie(u),
|
|
568
|
+
var I = x[O];
|
|
569
|
+
if (I !== "children" && I !== "key") {
|
|
570
|
+
Ie(u), y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", I), Ie(null);
|
|
571
571
|
break;
|
|
572
572
|
}
|
|
573
573
|
}
|
|
574
|
-
u.ref !== null && (Ie(u),
|
|
574
|
+
u.ref !== null && (Ie(u), y("Invalid attribute `ref` supplied to `React.Fragment`."), Ie(null));
|
|
575
575
|
}
|
|
576
576
|
}
|
|
577
577
|
var Pt = {};
|
|
578
|
-
function lt(u, x, O,
|
|
578
|
+
function lt(u, x, O, I, U, N) {
|
|
579
579
|
{
|
|
580
|
-
var k =
|
|
580
|
+
var k = L(u);
|
|
581
581
|
if (!k) {
|
|
582
582
|
var C = "";
|
|
583
583
|
(u === void 0 || typeof u == "object" && u !== null && Object.keys(u).length === 0) && (C += " 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
|
|
585
|
-
|
|
586
|
-
var
|
|
587
|
-
u === null ?
|
|
584
|
+
var G = ve();
|
|
585
|
+
G ? C += G : C += de();
|
|
586
|
+
var B;
|
|
587
|
+
u === null ? B = "null" : Et(u) ? B = "array" : u !== void 0 && u.$$typeof === t ? (B = "<" + (E(u.type) || "Unknown") + " />", C = " Did you accidentally export a JSX literal instead of a component?") : B = typeof u, y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", B, C);
|
|
588
588
|
}
|
|
589
|
-
var
|
|
590
|
-
if (
|
|
591
|
-
return
|
|
589
|
+
var Q = er(u, x, O, U, N);
|
|
590
|
+
if (Q == null)
|
|
591
|
+
return Q;
|
|
592
592
|
if (k) {
|
|
593
593
|
var ge = x.children;
|
|
594
594
|
if (ge !== void 0)
|
|
595
|
-
if (
|
|
595
|
+
if (I)
|
|
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
|
+
y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
602
602
|
else
|
|
603
603
|
rr(ge, u);
|
|
604
604
|
}
|
|
605
|
-
if (
|
|
606
|
-
var Je =
|
|
605
|
+
if (se.call(x, "key")) {
|
|
606
|
+
var Je = E(u), ye = Object.keys(x).filter(function(Yo) {
|
|
607
607
|
return Yo !== "key";
|
|
608
608
|
}), Ur = ye.length > 0 ? "{key: someKey, " + ye.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
609
609
|
if (!Pt[Je + Ur]) {
|
|
610
610
|
var Vo = ye.length > 0 ? "{" + ye.join(": ..., ") + ": ...}" : "{}";
|
|
611
|
-
|
|
611
|
+
y(`A props object containing a "key" prop is being spread into JSX:
|
|
612
612
|
let props = %s;
|
|
613
613
|
<%s {...props} />
|
|
614
614
|
React keys must be passed directly to JSX without using spread:
|
|
@@ -616,7 +616,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
616
616
|
<%s key={someKey} {...props} />`, Ur, Je, Vo, Je), Pt[Je + Ur] = !0;
|
|
617
617
|
}
|
|
618
618
|
}
|
|
619
|
-
return u === n ? nr(
|
|
619
|
+
return u === n ? nr(Q) : _t(Q), Q;
|
|
620
620
|
}
|
|
621
621
|
}
|
|
622
622
|
function ut(u, x, O) {
|
|
@@ -698,17 +698,17 @@ function ai() {
|
|
|
698
698
|
new Promise(() => {
|
|
699
699
|
});
|
|
700
700
|
const $a = Ra(1);
|
|
701
|
-
function
|
|
702
|
-
const t = ai(), r = oe(1), [n, a] =
|
|
703
|
-
return
|
|
701
|
+
function xl({ children: e }) {
|
|
702
|
+
const t = ai(), r = oe(1), [n, a] = W(1);
|
|
703
|
+
return H(() => {
|
|
704
704
|
r.current += 1, a(r.current);
|
|
705
705
|
}, [t]), /* @__PURE__ */ o.jsx($a.Provider, { value: n, children: e });
|
|
706
706
|
}
|
|
707
|
-
function
|
|
707
|
+
function wl() {
|
|
708
708
|
return On($a);
|
|
709
709
|
}
|
|
710
|
-
const
|
|
711
|
-
const [t, r] =
|
|
710
|
+
const jl = ({ imageUrl: e }) => {
|
|
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,17 +716,17 @@ const wl = ({ imageUrl: e }) => {
|
|
|
716
716
|
return !1;
|
|
717
717
|
}
|
|
718
718
|
};
|
|
719
|
-
return
|
|
719
|
+
return H(() => {
|
|
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
|
+
}, Sl = ({ imageUrl: e }) => /* @__PURE__ */ o.jsx("img", { src: e, alt: "" }), Dl = (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
725
|
(i, s, l) => i + s * (l % 2 === 0 ? 1 : 3),
|
|
726
726
|
0
|
|
727
727
|
) % 10) % 10;
|
|
728
728
|
return r === a;
|
|
729
|
-
},
|
|
729
|
+
}, Ol = (e, t = "") => {
|
|
730
730
|
const r = new URLSearchParams(), n = (a, i) => {
|
|
731
731
|
Object.entries(a).forEach(([s, l]) => {
|
|
732
732
|
const c = i ? `${i}[${s}]` : s;
|
|
@@ -734,14 +734,14 @@ const wl = ({ imageUrl: e }) => {
|
|
|
734
734
|
});
|
|
735
735
|
};
|
|
736
736
|
return n(e, t), r.toString();
|
|
737
|
-
},
|
|
737
|
+
}, Nl = (e = "fr-FR", t = "EUR") => ({ formatCurrency: $(
|
|
738
738
|
(n) => new Intl.NumberFormat(e, {
|
|
739
739
|
style: "currency",
|
|
740
740
|
currency: t
|
|
741
741
|
}).format(n),
|
|
742
742
|
[e, t]
|
|
743
743
|
) });
|
|
744
|
-
function
|
|
744
|
+
function El(e, t) {
|
|
745
745
|
const r = [
|
|
746
746
|
"Dimanche",
|
|
747
747
|
"Lundi",
|
|
@@ -765,26 +765,26 @@ function Nl(e, t) {
|
|
|
765
765
|
"décembre"
|
|
766
766
|
];
|
|
767
767
|
if (!e) return "";
|
|
768
|
-
const a = e.getFullYear().toString(), i = String(e.getMonth() + 1).padStart(2, "0"), s = String(e.getDate()).padStart(2, "0"), l = String(e.getHours()).padStart(2, "0"), c = String(e.getMinutes()).padStart(2, "0"), d = String(e.getSeconds()).padStart(2, "0"), f = r[e.getDay()],
|
|
769
|
-
return t.replace("dddd", f).replace("MMMM",
|
|
768
|
+
const a = e.getFullYear().toString(), i = String(e.getMonth() + 1).padStart(2, "0"), s = String(e.getDate()).padStart(2, "0"), l = String(e.getHours()).padStart(2, "0"), c = String(e.getMinutes()).padStart(2, "0"), d = String(e.getSeconds()).padStart(2, "0"), f = r[e.getDay()], h = n[e.getMonth()];
|
|
769
|
+
return t.replace("dddd", f).replace("MMMM", h).replace("YYYY", a).replace("MM", i).replace("DD", s).replace("HH", l).replace("mm", c).replace("ss", d);
|
|
770
770
|
}
|
|
771
|
-
function
|
|
771
|
+
function kl(e) {
|
|
772
772
|
const [t, r, n] = e.split("-").map(Number);
|
|
773
773
|
return new Date(t, r - 1, n, 0, 0, 0).toISOString();
|
|
774
774
|
}
|
|
775
|
-
function
|
|
775
|
+
function Cl(e) {
|
|
776
776
|
const [t, r, n] = e.split("-").map(Number);
|
|
777
777
|
return new Date(t, r - 1, n, 0, 0, 0, 0);
|
|
778
778
|
}
|
|
779
|
-
function
|
|
779
|
+
function _l(e) {
|
|
780
780
|
const [t, r, n] = e.split("-").map(Number);
|
|
781
781
|
return new Date(t, r - 1, n, 23, 59, 59, 999);
|
|
782
782
|
}
|
|
783
|
-
const
|
|
784
|
-
const [t, r] =
|
|
783
|
+
const Pl = (e = 768) => {
|
|
784
|
+
const [t, r] = W(
|
|
785
785
|
typeof window < "u" ? window.innerWidth <= e : !1
|
|
786
786
|
);
|
|
787
|
-
return
|
|
787
|
+
return H(() => {
|
|
788
788
|
const n = () => {
|
|
789
789
|
r(window.innerWidth <= e);
|
|
790
790
|
};
|
|
@@ -839,15 +839,15 @@ function si(e, t) {
|
|
|
839
839
|
throw new Lt(`Invalid token specified: invalid json for part #${r + 1} (${i.message})`);
|
|
840
840
|
}
|
|
841
841
|
}
|
|
842
|
-
const
|
|
842
|
+
const Tl = () => ({ getTokenValidate: $(() => {
|
|
843
843
|
const t = localStorage.getItem("token");
|
|
844
844
|
if (!t)
|
|
845
845
|
return null;
|
|
846
846
|
const r = si(t), n = Date.now() / 1e3;
|
|
847
847
|
return !r.exp || r.exp < n ? null : t;
|
|
848
|
-
}, []) }),
|
|
848
|
+
}, []) }), Rl = () => ({ isValidateEmail: (n) => /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(n), isValidateTel: (n) => /^\+?[0-9\s.-]{7,15}$/.test(n), isValidateCodePostal: (n) => /^[0-9]{5}$/.test(n) }), Al = () => {
|
|
849
849
|
const e = oe(null);
|
|
850
|
-
return
|
|
850
|
+
return H(() => {
|
|
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 Pl = () => ({ getTokenValidate: A(() => {
|
|
|
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
|
+
}, Y = ({ 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 = $((s) => {
|
|
883
883
|
s.stopPropagation(), t && t(s);
|
|
884
884
|
}, []);
|
|
885
885
|
return /* @__PURE__ */ o.jsxs(
|
|
@@ -888,14 +888,14 @@ const Pl = () => ({ getTokenValidate: A(() => {
|
|
|
888
888
|
onClick: i,
|
|
889
889
|
className: `badge ${e || ""}`,
|
|
890
890
|
children: [
|
|
891
|
-
a && /* @__PURE__ */ o.jsx(
|
|
891
|
+
a && /* @__PURE__ */ o.jsx(Y, { size: n, classIcon: a }),
|
|
892
892
|
/* @__PURE__ */ o.jsx("span", { children: r })
|
|
893
893
|
]
|
|
894
894
|
}
|
|
895
895
|
);
|
|
896
896
|
};
|
|
897
897
|
var xe = /* @__PURE__ */ ((e) => (e.EXTRA_SMALL = "xs", e.SMALL = "sm", e.MEDIUM = "md", e.LARGE = "xl", e.EXTRA_LARGE = "xxl", e))(xe || {});
|
|
898
|
-
const
|
|
898
|
+
const Il = ({
|
|
899
899
|
className: e,
|
|
900
900
|
onClick: t,
|
|
901
901
|
title: r,
|
|
@@ -907,7 +907,7 @@ const Al = ({
|
|
|
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(Y, { classIcon: n, size: xe.LARGE }),
|
|
911
911
|
/* @__PURE__ */ o.jsx("small", { children: r })
|
|
912
912
|
] });
|
|
913
913
|
}, xt = ({
|
|
@@ -934,9 +934,9 @@ const Al = ({
|
|
|
934
934
|
className: e,
|
|
935
935
|
children: [
|
|
936
936
|
r && /* @__PURE__ */ o.jsx(La, { ...r }),
|
|
937
|
-
s && l == 1 && /* @__PURE__ */ o.jsx("span", { className: `${n ? "mr-2" : ""}`, children: /* @__PURE__ */ o.jsx(
|
|
937
|
+
s && l == 1 && /* @__PURE__ */ o.jsx("span", { className: `${n ? "mr-2" : ""}`, children: /* @__PURE__ */ o.jsx(Y, { size: a, classIcon: s }) }),
|
|
938
938
|
/* @__PURE__ */ o.jsx("span", { children: n }),
|
|
939
|
-
s && l == 2 && /* @__PURE__ */ o.jsx("span", { className: "ml-2", children: /* @__PURE__ */ o.jsx(
|
|
939
|
+
s && l == 2 && /* @__PURE__ */ o.jsx("span", { className: "ml-2", children: /* @__PURE__ */ o.jsx(Y, { classIcon: s }) })
|
|
940
940
|
]
|
|
941
941
|
}
|
|
942
942
|
);
|
|
@@ -948,7 +948,7 @@ const Al = ({
|
|
|
948
948
|
children: e.item.children
|
|
949
949
|
}
|
|
950
950
|
), Ma = (e) => {
|
|
951
|
-
const [t, r] =
|
|
951
|
+
const [t, r] = W(null), n = $((i) => {
|
|
952
952
|
r(i);
|
|
953
953
|
}, []), a = (i) => /* @__PURE__ */ o.jsx("ul", { children: i.map((s) => /* @__PURE__ */ o.jsxs("li", { children: [
|
|
954
954
|
/* @__PURE__ */ o.jsx(
|
|
@@ -962,10 +962,10 @@ const Al = ({
|
|
|
962
962
|
s.subMenu && s.subMenu.length > 0 && /* @__PURE__ */ o.jsx("div", { className: "ml-3 mt-1 submenu", children: a(s.subMenu) })
|
|
963
963
|
] }, s.id)) });
|
|
964
964
|
return /* @__PURE__ */ o.jsx("div", { className: `menu ${e.className || ""}`, children: a(e.items) });
|
|
965
|
-
}, Fa = Ra(void 0),
|
|
965
|
+
}, Fa = Ra(void 0), $l = ({
|
|
966
966
|
children: e
|
|
967
967
|
}) => {
|
|
968
|
-
const [t, r] =
|
|
968
|
+
const [t, r] = W(null);
|
|
969
969
|
return /* @__PURE__ */ o.jsx(Fa.Provider, { value: { activeOverlayId: t, setActiveOverlay: r }, children: e });
|
|
970
970
|
}, li = () => {
|
|
971
971
|
const e = On(Fa);
|
|
@@ -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
|
+
), X = "-ms-", Wt = "-moz-", z = "-webkit-", Wa = "comm", Or = "rule", kn = "decl", hi = "@import", Va = "@keyframes", vi = "@layer", Ya = Math.abs, Cn = 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 Ba(e) {
|
|
1006
1006
|
return e.trim();
|
|
@@ -1008,13 +1008,13 @@ function Ba(e) {
|
|
|
1008
1008
|
function $e(e, t) {
|
|
1009
1009
|
return (e = t.exec(e)) ? e[0] : e;
|
|
1010
1010
|
}
|
|
1011
|
-
function
|
|
1011
|
+
function M(e, t, r) {
|
|
1012
1012
|
return e.replace(t, r);
|
|
1013
1013
|
}
|
|
1014
1014
|
function dr(e, t, r) {
|
|
1015
1015
|
return e.indexOf(t, r);
|
|
1016
1016
|
}
|
|
1017
|
-
function
|
|
1017
|
+
function ce(e, t) {
|
|
1018
1018
|
return e.charCodeAt(t) | 0;
|
|
1019
1019
|
}
|
|
1020
1020
|
function mt(e, t, r) {
|
|
@@ -1053,13 +1053,13 @@ function gi() {
|
|
|
1053
1053
|
return ae;
|
|
1054
1054
|
}
|
|
1055
1055
|
function yi() {
|
|
1056
|
-
return ae = Oe > 0 ?
|
|
1056
|
+
return ae = Oe > 0 ? ce(wt, --Oe) : 0, pt--, ae === 10 && (pt = 1, Nr--), ae;
|
|
1057
1057
|
}
|
|
1058
1058
|
function Ne() {
|
|
1059
|
-
return ae = Oe < za ?
|
|
1059
|
+
return ae = Oe < za ? ce(wt, Oe++) : 0, pt++, ae === 10 && (pt = 1, Nr++), ae;
|
|
1060
1060
|
}
|
|
1061
1061
|
function et() {
|
|
1062
|
-
return
|
|
1062
|
+
return ce(wt, Oe);
|
|
1063
1063
|
}
|
|
1064
1064
|
function fr() {
|
|
1065
1065
|
return Oe;
|
|
@@ -1151,17 +1151,17 @@ function Oi(e) {
|
|
|
1151
1151
|
return xi(hr("", null, null, null, [""], e = bi(e), 0, [0], e));
|
|
1152
1152
|
}
|
|
1153
1153
|
function hr(e, t, r, n, a, i, s, l, c) {
|
|
1154
|
-
for (var d = 0, f = 0,
|
|
1155
|
-
switch (m =
|
|
1154
|
+
for (var d = 0, f = 0, h = s, g = 0, v = 0, m = 0, p = 1, w = 1, j = 1, y = 0, D = "", S = a, R = i, _ = n, P = D; w; )
|
|
1155
|
+
switch (m = y, y = Ne()) {
|
|
1156
1156
|
case 40:
|
|
1157
|
-
if (m != 108 &&
|
|
1158
|
-
dr(P +=
|
|
1157
|
+
if (m != 108 && ce(P, h - 1) == 58) {
|
|
1158
|
+
dr(P += M(zr(y), "&", "&\f"), "&\f", Ya(d ? l[d - 1] : 0)) != -1 && (j = -1);
|
|
1159
1159
|
break;
|
|
1160
1160
|
}
|
|
1161
1161
|
case 34:
|
|
1162
1162
|
case 39:
|
|
1163
1163
|
case 91:
|
|
1164
|
-
P += zr(
|
|
1164
|
+
P += zr(y);
|
|
1165
1165
|
break;
|
|
1166
1166
|
case 9:
|
|
1167
1167
|
case 10:
|
|
@@ -1187,43 +1187,43 @@ function hr(e, t, r, n, a, i, s, l, c) {
|
|
|
1187
1187
|
case 125 * p:
|
|
1188
1188
|
case 59:
|
|
1189
1189
|
case 0:
|
|
1190
|
-
switch (
|
|
1190
|
+
switch (y) {
|
|
1191
1191
|
case 0:
|
|
1192
1192
|
case 125:
|
|
1193
1193
|
w = 0;
|
|
1194
1194
|
case 59 + f:
|
|
1195
|
-
j == -1 && (P =
|
|
1195
|
+
j == -1 && (P = M(P, /\f/g, "")), v > 0 && Te(P) - h && Mt(v > 32 ? ea(P + ";", n, r, h - 1, c) : ea(M(P, " ", "") + ";", n, r, h - 2, c), c);
|
|
1196
1196
|
break;
|
|
1197
1197
|
case 59:
|
|
1198
1198
|
P += ";";
|
|
1199
1199
|
default:
|
|
1200
|
-
if (Mt(_ = Zn(P, t, r, d, f, a, l, D, S = [],
|
|
1200
|
+
if (Mt(_ = Zn(P, t, r, d, f, a, l, D, S = [], R = [], h, i), i), y === 123)
|
|
1201
1201
|
if (f === 0)
|
|
1202
|
-
hr(P, t, _, _, S, i,
|
|
1202
|
+
hr(P, t, _, _, S, i, h, l, R);
|
|
1203
1203
|
else
|
|
1204
|
-
switch (g === 99 &&
|
|
1204
|
+
switch (g === 99 && ce(P, 3) === 110 ? 100 : g) {
|
|
1205
1205
|
case 100:
|
|
1206
1206
|
case 108:
|
|
1207
1207
|
case 109:
|
|
1208
1208
|
case 115:
|
|
1209
|
-
hr(e, _, _, n && Mt(Zn(e, _, _, 0, 0, a, l, D, a, S = [],
|
|
1209
|
+
hr(e, _, _, n && Mt(Zn(e, _, _, 0, 0, a, l, D, a, S = [], h, R), R), a, R, h, l, n ? S : R);
|
|
1210
1210
|
break;
|
|
1211
1211
|
default:
|
|
1212
|
-
hr(P, _, _, _, [""],
|
|
1212
|
+
hr(P, _, _, _, [""], R, 0, l, R);
|
|
1213
1213
|
}
|
|
1214
1214
|
}
|
|
1215
|
-
d = f =
|
|
1215
|
+
d = f = v = 0, p = j = 1, D = P = "", h = s;
|
|
1216
1216
|
break;
|
|
1217
1217
|
case 58:
|
|
1218
|
-
|
|
1218
|
+
h = 1 + Te(P), v = m;
|
|
1219
1219
|
default:
|
|
1220
1220
|
if (p < 1) {
|
|
1221
|
-
if (
|
|
1221
|
+
if (y == 123)
|
|
1222
1222
|
--p;
|
|
1223
|
-
else if (
|
|
1223
|
+
else if (y == 125 && p++ == 0 && yi() == 125)
|
|
1224
1224
|
continue;
|
|
1225
1225
|
}
|
|
1226
|
-
switch (P += Cn(
|
|
1226
|
+
switch (P += Cn(y), y * p) {
|
|
1227
1227
|
case 38:
|
|
1228
1228
|
j = f > 0 ? 1 : (P += "\f", -1);
|
|
1229
1229
|
break;
|
|
@@ -1231,7 +1231,7 @@ function hr(e, t, r, n, a, i, s, l, c) {
|
|
|
1231
1231
|
l[d++] = (Te(P) - 1) * j, j = 1;
|
|
1232
1232
|
break;
|
|
1233
1233
|
case 64:
|
|
1234
|
-
et() === 45 && (P += zr(Ne())), g = et(), f =
|
|
1234
|
+
et() === 45 && (P += zr(Ne())), g = et(), f = h = Te(D = P += Di(fr())), y++;
|
|
1235
1235
|
break;
|
|
1236
1236
|
case 45:
|
|
1237
1237
|
m === 45 && Te(P) == 2 && (p = 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, l, c, d, f,
|
|
1243
|
-
for (var g = a - 1,
|
|
1244
|
-
for (var
|
|
1245
|
-
(S = Ba(w > 0 ?
|
|
1246
|
-
return Er(e, t, r, a === 0 ? Or : l, c, d, f,
|
|
1242
|
+
function Zn(e, t, r, n, a, i, s, l, c, d, f, h) {
|
|
1243
|
+
for (var g = a - 1, v = a === 0 ? i : [""], m = Ua(v), p = 0, w = 0, j = 0; p < n; ++p)
|
|
1244
|
+
for (var y = 0, D = mt(e, g + 1, g = Ya(w = s[p])), S = e; y < m; ++y)
|
|
1245
|
+
(S = Ba(w > 0 ? v[y] + " " + D : M(D, /&\f/g, v[y]))) && (c[j++] = S);
|
|
1246
|
+
return Er(e, t, r, a === 0 ? Or : l, c, d, f, h);
|
|
1247
1247
|
}
|
|
1248
1248
|
function Ni(e, t, r, n) {
|
|
1249
1249
|
return Er(e, t, r, Wa, Cn(gi()), mt(e, 2, -2), 0, n);
|
|
@@ -1254,7 +1254,7 @@ function ea(e, t, r, n, a) {
|
|
|
1254
1254
|
function Ga(e, t, r) {
|
|
1255
1255
|
switch (mi(e, t)) {
|
|
1256
1256
|
case 5103:
|
|
1257
|
-
return
|
|
1257
|
+
return z + "print-" + e + e;
|
|
1258
1258
|
case 5737:
|
|
1259
1259
|
case 4201:
|
|
1260
1260
|
case 3177:
|
|
@@ -1280,7 +1280,7 @@ function Ga(e, t, r) {
|
|
|
1280
1280
|
case 5365:
|
|
1281
1281
|
case 5621:
|
|
1282
1282
|
case 3829:
|
|
1283
|
-
return
|
|
1283
|
+
return z + e + e;
|
|
1284
1284
|
case 4789:
|
|
1285
1285
|
return Wt + e + e;
|
|
1286
1286
|
case 5349:
|
|
@@ -1288,64 +1288,64 @@ function Ga(e, t, r) {
|
|
|
1288
1288
|
case 4810:
|
|
1289
1289
|
case 6968:
|
|
1290
1290
|
case 2756:
|
|
1291
|
-
return
|
|
1291
|
+
return z + e + Wt + e + X + e + e;
|
|
1292
1292
|
case 5936:
|
|
1293
|
-
switch (
|
|
1293
|
+
switch (ce(e, t + 11)) {
|
|
1294
1294
|
case 114:
|
|
1295
|
-
return
|
|
1295
|
+
return z + e + X + M(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
|
|
1296
1296
|
case 108:
|
|
1297
|
-
return
|
|
1297
|
+
return z + e + X + M(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
|
|
1298
1298
|
case 45:
|
|
1299
|
-
return
|
|
1299
|
+
return z + e + X + M(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
|
|
1300
1300
|
}
|
|
1301
1301
|
case 6828:
|
|
1302
1302
|
case 4268:
|
|
1303
1303
|
case 2903:
|
|
1304
|
-
return
|
|
1304
|
+
return z + e + X + e + e;
|
|
1305
1305
|
case 6165:
|
|
1306
|
-
return
|
|
1306
|
+
return z + e + X + "flex-" + e + e;
|
|
1307
1307
|
case 5187:
|
|
1308
|
-
return
|
|
1308
|
+
return z + e + M(e, /(\w+).+(:[^]+)/, z + "box-$1$2" + X + "flex-$1$2") + e;
|
|
1309
1309
|
case 5443:
|
|
1310
|
-
return
|
|
1310
|
+
return z + e + X + "flex-item-" + M(e, /flex-|-self/g, "") + ($e(e, /flex-|baseline/) ? "" : X + "grid-row-" + M(e, /flex-|-self/g, "")) + e;
|
|
1311
1311
|
case 4675:
|
|
1312
|
-
return
|
|
1312
|
+
return z + e + X + "flex-line-pack" + M(e, /align-content|flex-|-self/g, "") + e;
|
|
1313
1313
|
case 5548:
|
|
1314
|
-
return
|
|
1314
|
+
return z + e + X + M(e, "shrink", "negative") + e;
|
|
1315
1315
|
case 5292:
|
|
1316
|
-
return
|
|
1316
|
+
return z + e + X + M(e, "basis", "preferred-size") + e;
|
|
1317
1317
|
case 6060:
|
|
1318
|
-
return
|
|
1318
|
+
return z + "box-" + M(e, "-grow", "") + z + e + X + M(e, "grow", "positive") + e;
|
|
1319
1319
|
case 4554:
|
|
1320
|
-
return
|
|
1320
|
+
return z + M(e, /([^-])(transform)/g, "$1" + z + "$2") + e;
|
|
1321
1321
|
case 6187:
|
|
1322
|
-
return
|
|
1322
|
+
return M(M(M(e, /(zoom-|grab)/, z + "$1"), /(image-set)/, z + "$1"), e, "") + e;
|
|
1323
1323
|
case 5495:
|
|
1324
1324
|
case 3959:
|
|
1325
|
-
return
|
|
1325
|
+
return M(e, /(image-set\([^]*)/, z + "$1$`$1");
|
|
1326
1326
|
case 4968:
|
|
1327
|
-
return
|
|
1327
|
+
return M(M(e, /(.+:)(flex-)?(.*)/, z + "box-pack:$3" + X + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + z + e + e;
|
|
1328
1328
|
case 4200:
|
|
1329
|
-
if (!$e(e, /flex-|baseline/)) return
|
|
1329
|
+
if (!$e(e, /flex-|baseline/)) return X + "grid-column-align" + mt(e, t) + e;
|
|
1330
1330
|
break;
|
|
1331
1331
|
case 2592:
|
|
1332
1332
|
case 3360:
|
|
1333
|
-
return
|
|
1333
|
+
return X + M(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, $e(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 : X + M(e, "-start", "") + e + X + "grid-row-span:" + (~dr(r, "span", 0) ? $e(r, /\d+/) : +$e(r, /\d+/) - +$e(e, /\d+/)) + ";" : X + M(e, "-start", "") + e;
|
|
1339
1339
|
case 4896:
|
|
1340
1340
|
case 4128:
|
|
1341
1341
|
return r && r.some(function(n) {
|
|
1342
1342
|
return $e(n.props, /grid-\w+-start/);
|
|
1343
|
-
}) ? e :
|
|
1343
|
+
}) ? e : X + M(M(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 M(e, /(.+)-inline(.+)/, z + "$1$2") + e;
|
|
1349
1349
|
case 8116:
|
|
1350
1350
|
case 7059:
|
|
1351
1351
|
case 5753:
|
|
@@ -1359,31 +1359,31 @@ function Ga(e, t, r) {
|
|
|
1359
1359
|
case 5021:
|
|
1360
1360
|
case 4765:
|
|
1361
1361
|
if (Te(e) - 1 - t > 6)
|
|
1362
|
-
switch (
|
|
1362
|
+
switch (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 M(e, /(.+:)(.+)-([^]+)/, "$1" + z + "$2-$3$1" + Wt + (ce(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
|
|
1368
1368
|
case 115:
|
|
1369
|
-
return ~dr(e, "stretch", 0) ? Ga(
|
|
1369
|
+
return ~dr(e, "stretch", 0) ? Ga(M(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 M(e, /(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/, function(n, a, i, s, l, c, d) {
|
|
1375
|
+
return X + a + ":" + i + d + (s ? X + a + "-span:" + (l ? c : +c - +i) + d : "") + e;
|
|
1376
1376
|
});
|
|
1377
1377
|
case 4949:
|
|
1378
|
-
if (
|
|
1379
|
-
return
|
|
1378
|
+
if (ce(e, t + 6) === 121)
|
|
1379
|
+
return M(e, ":", ":" + z) + 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 M(e, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, "$1" + z + (ce(e, 14) === 45 ? "inline-" : "") + "box$3$1" + z + "$2$3$1" + X + "$2box$3") + e;
|
|
1385
1385
|
case 100:
|
|
1386
|
-
return
|
|
1386
|
+
return M(e, ":", ":" + X) + e;
|
|
1387
1387
|
}
|
|
1388
1388
|
break;
|
|
1389
1389
|
case 5719:
|
|
@@ -1391,7 +1391,7 @@ function Ga(e, t, r) {
|
|
|
1391
1391
|
case 2135:
|
|
1392
1392
|
case 3927:
|
|
1393
1393
|
case 2391:
|
|
1394
|
-
return
|
|
1394
|
+
return M(e, "scroll-", "scroll-snap-") + e;
|
|
1395
1395
|
}
|
|
1396
1396
|
return e;
|
|
1397
1397
|
}
|
|
@@ -1436,17 +1436,17 @@ function _i(e, t, r, n) {
|
|
|
1436
1436
|
e.return = Ga(e.value, e.length, r);
|
|
1437
1437
|
return;
|
|
1438
1438
|
case Va:
|
|
1439
|
-
return yr([Ye(e, { value:
|
|
1439
|
+
return yr([Ye(e, { value: M(e.value, "@", "@" + z) })], n);
|
|
1440
1440
|
case Or:
|
|
1441
1441
|
if (e.length)
|
|
1442
1442
|
return pi(r = e.props, function(a) {
|
|
1443
1443
|
switch ($e(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: [M(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: [M(a, /:(plac\w+)/, ":" + z + "input-$1")] })), dt(Ye(e, { props: [M(a, /:(plac\w+)/, ":" + Wt + "$1")] })), dt(Ye(e, { props: [M(a, /:(plac\w+)/, X + "input-$1")] })), dt(Ye(e, { props: [a] })), tn(e, { props: Qn(r, n) });
|
|
1450
1450
|
break;
|
|
1451
1451
|
}
|
|
1452
1452
|
return "";
|
|
@@ -1777,15 +1777,15 @@ var ro = 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(), l = s.length, c = "", d = function(
|
|
1780
|
+
for (var s = i.getTag(), l = s.length, c = "", d = function(h) {
|
|
1781
1781
|
var g = function(j) {
|
|
1782
1782
|
return xr.get(j);
|
|
1783
|
-
}(
|
|
1783
|
+
}(h);
|
|
1784
1784
|
if (g === void 0) return "continue";
|
|
1785
|
-
var
|
|
1786
|
-
if (
|
|
1787
|
-
var p = "".concat(nt, ".g").concat(
|
|
1788
|
-
|
|
1785
|
+
var v = i.names.get(g), m = s.getGroup(h);
|
|
1786
|
+
if (v === void 0 || !v.size || m.length === 0) return "continue";
|
|
1787
|
+
var p = "".concat(nt, ".g").concat(h, '[id="').concat(g, '"]'), w = "";
|
|
1788
|
+
v !== void 0 && v.forEach(function(j) {
|
|
1789
1789
|
j.length > 0 && (w += "".concat(j, ","));
|
|
1790
1790
|
}), c += "".concat(m).concat(p, '{content:"').concat(w, '"}').concat(_n);
|
|
1791
1791
|
}, f = 0; f < l; f++) d(f);
|
|
@@ -1833,24 +1833,24 @@ function ao(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, l = a.plugins, c = l === void 0 ? _r : l, d = function(g,
|
|
1836
|
+
var t, r, n, a = gt, i = a.options, s = i === void 0 ? gt : i, l = a.plugins, c = l === void 0 ? _r : l, d = function(g, v, m) {
|
|
1837
1837
|
return m.startsWith(r) && m.endsWith(r) && m.replaceAll(r, "").length > 0 ? ".".concat(t) : g;
|
|
1838
1838
|
}, f = c.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(_i), f.push(Ei);
|
|
1842
|
-
var
|
|
1843
|
-
|
|
1844
|
-
var w = g.replace(cs, ""), j = Oi(m ||
|
|
1842
|
+
var h = function(g, v, m, p) {
|
|
1843
|
+
v === void 0 && (v = ""), m === void 0 && (m = ""), p === void 0 && (p = "&"), t = p, r = v, n = new RegExp("\\".concat(r, "\\b"), "g");
|
|
1844
|
+
var w = g.replace(cs, ""), j = Oi(m || v ? "".concat(m, " ").concat(v, " { ").concat(w, " }") : w);
|
|
1845
1845
|
s.namespace && (j = ao(j, s.namespace));
|
|
1846
|
-
var
|
|
1846
|
+
var y = [];
|
|
1847
1847
|
return yr(j, ki(f.concat(Ci(function(D) {
|
|
1848
|
-
return
|
|
1849
|
-
})))),
|
|
1848
|
+
return y.push(D);
|
|
1849
|
+
})))), y;
|
|
1850
1850
|
};
|
|
1851
|
-
return
|
|
1852
|
-
return
|
|
1853
|
-
}, Xa).toString() : "",
|
|
1851
|
+
return h.hash = c.length ? c.reduce(function(g, v) {
|
|
1852
|
+
return v.name || jt(15), Qe(g, v.name);
|
|
1853
|
+
}, Xa).toString() : "", h;
|
|
1854
1854
|
}
|
|
1855
1855
|
var us = new no(), cn = ls(), oo = Re.createContext({ shouldForwardProp: void 0, styleSheet: us, stylis: cn });
|
|
1856
1856
|
oo.Consumer;
|
|
@@ -1930,16 +1930,16 @@ var hs = Ka(Cr), vs = function() {
|
|
|
1930
1930
|
}
|
|
1931
1931
|
else {
|
|
1932
1932
|
for (var c = Qe(this.baseHash, n.hash), d = "", f = 0; f < this.rules.length; f++) {
|
|
1933
|
-
var
|
|
1934
|
-
if (typeof
|
|
1935
|
-
else if (
|
|
1936
|
-
var g = sa(tt(
|
|
1933
|
+
var h = this.rules[f];
|
|
1934
|
+
if (typeof h == "string") d += h, process.env.NODE_ENV !== "production" && (c = Qe(c, h));
|
|
1935
|
+
else if (h) {
|
|
1936
|
+
var g = sa(tt(h, t, r, n));
|
|
1937
1937
|
c = Qe(c, g + f), d += g;
|
|
1938
1938
|
}
|
|
1939
1939
|
}
|
|
1940
1940
|
if (d) {
|
|
1941
|
-
var
|
|
1942
|
-
r.hasNameForId(this.componentId,
|
|
1941
|
+
var v = on(c >>> 0);
|
|
1942
|
+
r.hasNameForId(this.componentId, v) || r.insertRules(this.componentId, v, n(d, ".".concat(v), void 0, this.componentId)), a = Ze(a, v);
|
|
1943
1943
|
}
|
|
1944
1944
|
}
|
|
1945
1945
|
return a;
|
|
@@ -1948,61 +1948,61 @@ var hs = Ka(Cr), vs = function() {
|
|
|
1948
1948
|
co.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, l = s === void 0 ? _r : s, c = t.componentId, d = c === void 0 ? function(S,
|
|
1951
|
+
var n = Pn(e), a = e, i = !Hr(e), s = t.attrs, l = s === void 0 ? _r : s, c = t.componentId, d = c === void 0 ? function(S, R) {
|
|
1952
1952
|
var _ = typeof S != "string" ? "sc" : ra(S);
|
|
1953
1953
|
qr[_] = (qr[_] || 0) + 1;
|
|
1954
1954
|
var P = "".concat(_, "-").concat(Mi(Cr + _ + qr[_]));
|
|
1955
|
-
return
|
|
1956
|
-
}(t.displayName, t.parentComponentId) : c, f = t.displayName,
|
|
1955
|
+
return R ? "".concat(R, "-").concat(P) : P;
|
|
1956
|
+
}(t.displayName, t.parentComponentId) : c, f = t.displayName, h = f === void 0 ? function(S) {
|
|
1957
1957
|
return Hr(S) ? "styled.".concat(S) : "Styled(".concat(Ja(S), ")");
|
|
1958
|
-
}(e) : f, g = t.displayName && t.componentId ? "".concat(ra(t.displayName), "-").concat(t.componentId) : t.componentId || d,
|
|
1958
|
+
}(e) : f, g = t.displayName && t.componentId ? "".concat(ra(t.displayName), "-").concat(t.componentId) : t.componentId || d, v = n && a.attrs ? a.attrs.concat(l).filter(Boolean) : l, m = t.shouldForwardProp;
|
|
1959
1959
|
if (n && a.shouldForwardProp) {
|
|
1960
1960
|
var p = a.shouldForwardProp;
|
|
1961
1961
|
if (t.shouldForwardProp) {
|
|
1962
1962
|
var w = t.shouldForwardProp;
|
|
1963
|
-
m = function(S,
|
|
1964
|
-
return p(S,
|
|
1963
|
+
m = function(S, R) {
|
|
1964
|
+
return p(S, R) && w(S, R);
|
|
1965
1965
|
};
|
|
1966
1966
|
} else m = p;
|
|
1967
1967
|
}
|
|
1968
1968
|
var j = new vs(r, g, n ? a.componentStyle : void 0);
|
|
1969
|
-
function
|
|
1970
|
-
return function(_, P,
|
|
1971
|
-
var
|
|
1972
|
-
process.env.NODE_ENV !== "production" && Gn(
|
|
1973
|
-
var Ae = Ai(P,
|
|
1974
|
-
for (var
|
|
1975
|
-
var Ce = yt(
|
|
1976
|
-
for (var
|
|
1969
|
+
function y(S, R) {
|
|
1970
|
+
return function(_, P, V) {
|
|
1971
|
+
var b = _.attrs, L = _.componentStyle, T = _.defaultProps, A = _.foldedComponentIds, E = _.styledComponentId, F = _.target, ie = Re.useContext(co), K = ua(), we = _.shouldForwardProp || K.shouldForwardProp;
|
|
1972
|
+
process.env.NODE_ENV !== "production" && Gn(E);
|
|
1973
|
+
var Ae = Ai(P, ie, T) || gt, te = function(ke, me, pe) {
|
|
1974
|
+
for (var ue, ne = be(be({}, me), { className: void 0, theme: pe }), De = 0; De < ke.length; De += 1) {
|
|
1975
|
+
var Ce = yt(ue = ke[De]) ? ue(ne) : ue;
|
|
1976
|
+
for (var he in Ce) ne[he] = he === "className" ? Ze(ne[he], Ce[he]) : he === "style" ? be(be({}, ne[he]), Ce[he]) : Ce[he];
|
|
1977
1977
|
}
|
|
1978
1978
|
return me.className && (ne.className = Ze(ne.className, me.className)), ne;
|
|
1979
|
-
}(
|
|
1980
|
-
for (var
|
|
1979
|
+
}(b, P, Ae), J = te.as || F, le = {};
|
|
1980
|
+
for (var ee in te) te[ee] === void 0 || ee[0] === "$" || ee === "as" || ee === "theme" && te.theme === Ae || (ee === "forwardedAs" ? le.as = te.forwardedAs : we && !we(ee, J) || (le[ee] = te[ee], we || process.env.NODE_ENV !== "development" || fi(ee) || ha.has(ee) || !an.has(J) || (ha.add(ee), console.warn('styled-components: it looks like an unknown prop "'.concat(ee, '" 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
|
+
}(L, te);
|
|
1985
1985
|
process.env.NODE_ENV !== "production" && _.warnTooManyClasses && _.warnTooManyClasses(Se);
|
|
1986
|
-
var Ee = Ze(
|
|
1987
|
-
return Se && (Ee += " " + Se),
|
|
1988
|
-
}(D, S,
|
|
1986
|
+
var Ee = Ze(A, E);
|
|
1987
|
+
return Se && (Ee += " " + Se), te.className && (Ee += " " + te.className), le[Hr(J) && !an.has(J) ? "class" : "className"] = Ee, V && (le.ref = V), Bo(J, le);
|
|
1988
|
+
}(D, S, R);
|
|
1989
1989
|
}
|
|
1990
|
-
|
|
1991
|
-
var D = Re.forwardRef(
|
|
1992
|
-
return D.attrs =
|
|
1990
|
+
y.displayName = h;
|
|
1991
|
+
var D = Re.forwardRef(y);
|
|
1992
|
+
return D.attrs = v, D.componentStyle = j, D.displayName = h, D.shouldForwardProp = m, D.foldedComponentIds = n ? Ze(a.foldedComponentIds, a.styledComponentId) : "", D.styledComponentId = g, D.target = n ? a.target : e, Object.defineProperty(D, "defaultProps", { get: function() {
|
|
1993
1993
|
return this._foldedDefaultProps;
|
|
1994
1994
|
}, set: function(S) {
|
|
1995
|
-
this._foldedDefaultProps = n ? function(
|
|
1995
|
+
this._foldedDefaultProps = n ? function(R) {
|
|
1996
1996
|
for (var _ = [], P = 1; P < arguments.length; P++) _[P - 1] = arguments[P];
|
|
1997
|
-
for (var
|
|
1998
|
-
return
|
|
1997
|
+
for (var V = 0, b = _; V < b.length; V++) sn(R, b[V], !0);
|
|
1998
|
+
return R;
|
|
1999
1999
|
}({}, a.defaultProps, S) : S;
|
|
2000
|
-
} }), process.env.NODE_ENV !== "production" && (Ri(
|
|
2000
|
+
} }), process.env.NODE_ENV !== "production" && (Ri(h, g), D.warnTooManyClasses = /* @__PURE__ */ function(S, R) {
|
|
2001
2001
|
var _ = {}, P = !1;
|
|
2002
|
-
return function(
|
|
2003
|
-
if (!P && (_[
|
|
2004
|
-
var
|
|
2005
|
-
console.warn("Over ".concat(200, " classes were generated for component ").concat(S).concat(
|
|
2002
|
+
return function(V) {
|
|
2003
|
+
if (!P && (_[V] = !0, Object.keys(_).length >= 200)) {
|
|
2004
|
+
var b = R ? ' with the id of "'.concat(R, '"') : "";
|
|
2005
|
+
console.warn("Over ".concat(200, " classes were generated for component ").concat(S).concat(b, `.
|
|
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 => ({
|
|
@@ -2014,7 +2014,7 @@ Example:
|
|
|
2014
2014
|
<Component />`), P = !0, _ = {};
|
|
2015
2015
|
}
|
|
2016
2016
|
};
|
|
2017
|
-
}(
|
|
2017
|
+
}(h, g)), Tn(D, function() {
|
|
2018
2018
|
return ".".concat(D.styledComponentId);
|
|
2019
2019
|
}), i && to(D, e, { attrs: !0, componentStyle: !0, displayName: !0, foldedComponentIds: !0, shouldForwardProp: !0, styledComponentId: !0, target: !0 }), D;
|
|
2020
2020
|
}
|
|
@@ -2076,70 +2076,70 @@ const ps = Rn.div`
|
|
|
2076
2076
|
id: i,
|
|
2077
2077
|
closeOverlay: s
|
|
2078
2078
|
}, l) => {
|
|
2079
|
-
const { activeOverlayId: c, setActiveOverlay: d } = li(), [f,
|
|
2079
|
+
const { activeOverlayId: c, setActiveOverlay: d } = li(), [f, h] = W(a || !1), [g, v] = W(
|
|
2080
2080
|
r ?? { top: 0, left: 0 }
|
|
2081
2081
|
), m = oe(null), p = Uo();
|
|
2082
2082
|
Dr(l, () => ({
|
|
2083
|
-
setCoords:
|
|
2084
|
-
})),
|
|
2085
|
-
c !== p &&
|
|
2086
|
-
}, [c, p]),
|
|
2087
|
-
const
|
|
2083
|
+
setCoords: v
|
|
2084
|
+
})), H(() => {
|
|
2085
|
+
c !== p && h(!1);
|
|
2086
|
+
}, [c, p]), H(() => {
|
|
2087
|
+
const y = () => {
|
|
2088
2088
|
var D;
|
|
2089
2089
|
if (!t && r)
|
|
2090
|
-
|
|
2090
|
+
v(r);
|
|
2091
2091
|
else if (e) {
|
|
2092
|
-
const S = e.getBoundingClientRect(),
|
|
2093
|
-
if (
|
|
2094
|
-
let
|
|
2095
|
-
const
|
|
2092
|
+
const S = e.getBoundingClientRect(), R = (D = m.current) == null ? void 0 : D.getBoundingClientRect(), { innerWidth: _, innerHeight: P } = window;
|
|
2093
|
+
if (R) {
|
|
2094
|
+
let V, b;
|
|
2095
|
+
const L = {
|
|
2096
2096
|
topRight: () => ({
|
|
2097
|
-
top: S.top -
|
|
2098
|
-
left: S.right -
|
|
2097
|
+
top: S.top - R.height,
|
|
2098
|
+
left: S.right - R.width
|
|
2099
2099
|
}),
|
|
2100
2100
|
topLeft: () => ({
|
|
2101
|
-
top: S.top -
|
|
2101
|
+
top: S.top - R.height,
|
|
2102
2102
|
left: S.left
|
|
2103
2103
|
}),
|
|
2104
2104
|
bottomRight: () => ({
|
|
2105
2105
|
top: S.bottom,
|
|
2106
|
-
left: S.right -
|
|
2106
|
+
left: S.right - R.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 - R.height / 2,
|
|
2114
|
+
left: S.left - R.width
|
|
2115
2115
|
}),
|
|
2116
2116
|
right: () => ({
|
|
2117
|
-
top: S.top + S.height / 2 -
|
|
2117
|
+
top: S.top + S.height / 2 - R.height / 2,
|
|
2118
2118
|
left: S.right
|
|
2119
2119
|
})
|
|
2120
2120
|
};
|
|
2121
|
-
t &&
|
|
2121
|
+
t && L[t] ? { top: V, left: b } = L[t]() : (b = S.right, V = S.bottom, S.right + R.width > _ && (b = S.left - R.width), S.bottom + R.height > P && (V = S.top - R.height)), v({ top: V, left: b < 0 ? 0 : b });
|
|
2122
2122
|
}
|
|
2123
2123
|
}
|
|
2124
2124
|
};
|
|
2125
|
-
return f && (
|
|
2125
|
+
return f && (y(), window.addEventListener("resize", y)), () => window.removeEventListener("resize", y);
|
|
2126
2126
|
}, [e, f, t]);
|
|
2127
2127
|
const w = () => {
|
|
2128
|
-
|
|
2129
|
-
}, j =
|
|
2130
|
-
(
|
|
2131
|
-
|
|
2128
|
+
h(!0), d(p);
|
|
2129
|
+
}, j = $(
|
|
2130
|
+
(y) => {
|
|
2131
|
+
y.stopPropagation(), h(!1), d(null), s && s(!1);
|
|
2132
2132
|
},
|
|
2133
2133
|
[s, d]
|
|
2134
2134
|
);
|
|
2135
|
-
return
|
|
2136
|
-
const
|
|
2135
|
+
return H(() => {
|
|
2136
|
+
const y = (D) => {
|
|
2137
2137
|
m.current && !m.current.contains(D.target) && j(D);
|
|
2138
2138
|
};
|
|
2139
|
-
return f && document.addEventListener("mousedown",
|
|
2140
|
-
document.removeEventListener("mousedown",
|
|
2139
|
+
return f && document.addEventListener("mousedown", y), () => {
|
|
2140
|
+
document.removeEventListener("mousedown", y);
|
|
2141
2141
|
};
|
|
2142
|
-
}, [f, j]),
|
|
2142
|
+
}, [f, j]), H(() => {
|
|
2143
2143
|
a && w();
|
|
2144
2144
|
}, [a]), f ? Nn.createPortal(
|
|
2145
2145
|
/* @__PURE__ */ o.jsx(ps, { ref: m, $top: g.top, $left: g.left, children: /* @__PURE__ */ o.jsxs(
|
|
@@ -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(Y, { classIcon: "bi-x-lg" })
|
|
2157
2157
|
}
|
|
2158
2158
|
),
|
|
2159
2159
|
n
|
|
@@ -2163,7 +2163,7 @@ const ps = Rn.div`
|
|
|
2163
2163
|
document.body
|
|
2164
2164
|
) : null;
|
|
2165
2165
|
}
|
|
2166
|
-
),
|
|
2166
|
+
), Ll = ({
|
|
2167
2167
|
className: e,
|
|
2168
2168
|
onClick: t,
|
|
2169
2169
|
title: r,
|
|
@@ -2174,7 +2174,7 @@ const ps = Rn.div`
|
|
|
2174
2174
|
}) => {
|
|
2175
2175
|
const l = (m) => {
|
|
2176
2176
|
m.preventDefault(), t && t(m);
|
|
2177
|
-
}, c = oe(null), [d, f] =
|
|
2177
|
+
}, c = oe(null), [d, f] = W(!1), h = $(
|
|
2178
2178
|
(m) => {
|
|
2179
2179
|
m.stopPropagation(), n && f(!d);
|
|
2180
2180
|
},
|
|
@@ -2189,13 +2189,13 @@ const ps = Rn.div`
|
|
|
2189
2189
|
classIcon: m.icon,
|
|
2190
2190
|
sizeIcon: xe.LARGE,
|
|
2191
2191
|
onClick: (w) => {
|
|
2192
|
-
w.stopPropagation(),
|
|
2192
|
+
w.stopPropagation(), v(), m.onClick && m.onClick(m);
|
|
2193
2193
|
},
|
|
2194
2194
|
title: m.label || ""
|
|
2195
2195
|
},
|
|
2196
2196
|
p
|
|
2197
2197
|
)
|
|
2198
|
-
})) : [], [n]),
|
|
2198
|
+
})) : [], [n]), v = $(() => {
|
|
2199
2199
|
f(!1);
|
|
2200
2200
|
}, [f]);
|
|
2201
2201
|
return /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
@@ -2214,8 +2214,8 @@ const ps = Rn.div`
|
|
|
2214
2214
|
{
|
|
2215
2215
|
className: "ml-2",
|
|
2216
2216
|
ref: c,
|
|
2217
|
-
onClick: (m) =>
|
|
2218
|
-
children: /* @__PURE__ */ o.jsx(
|
|
2217
|
+
onClick: (m) => h(m),
|
|
2218
|
+
children: /* @__PURE__ */ o.jsx(Y, { classIcon: "bi-chevron-up" })
|
|
2219
2219
|
}
|
|
2220
2220
|
)
|
|
2221
2221
|
]
|
|
@@ -2232,7 +2232,7 @@ const ps = Rn.div`
|
|
|
2232
2232
|
}
|
|
2233
2233
|
)
|
|
2234
2234
|
] });
|
|
2235
|
-
},
|
|
2235
|
+
}, Ml = ({
|
|
2236
2236
|
onFileSelected: e,
|
|
2237
2237
|
accept: t = "*",
|
|
2238
2238
|
buttonText: r = "Choisir un fichier",
|
|
@@ -2243,12 +2243,12 @@ const ps = Rn.div`
|
|
|
2243
2243
|
var f;
|
|
2244
2244
|
const d = (f = c.target.files) == null ? void 0 : f[0];
|
|
2245
2245
|
if (d && e) {
|
|
2246
|
-
const
|
|
2247
|
-
|
|
2246
|
+
const h = new FileReader();
|
|
2247
|
+
h.onload = (g) => {
|
|
2248
2248
|
var m;
|
|
2249
|
-
const
|
|
2250
|
-
e(d,
|
|
2251
|
-
},
|
|
2249
|
+
const v = (m = g.target) == null ? void 0 : m.result;
|
|
2250
|
+
e(d, v);
|
|
2251
|
+
}, h.readAsArrayBuffer(d);
|
|
2252
2252
|
}
|
|
2253
2253
|
}, l = () => {
|
|
2254
2254
|
var c;
|
|
@@ -2286,16 +2286,16 @@ const ps = Rn.div`
|
|
|
2286
2286
|
name: c,
|
|
2287
2287
|
onChange: d,
|
|
2288
2288
|
onChangeMultiple: f,
|
|
2289
|
-
value:
|
|
2289
|
+
value: h,
|
|
2290
2290
|
placeholder: g
|
|
2291
2291
|
}) => {
|
|
2292
|
-
const
|
|
2292
|
+
const v = oe({}), m = (w) => {
|
|
2293
2293
|
let j;
|
|
2294
2294
|
i ? (j = Array.from(
|
|
2295
2295
|
w.target.selectedOptions,
|
|
2296
|
-
(
|
|
2296
|
+
(y) => y.value
|
|
2297
2297
|
), f && f(j)) : (j = w.target.value, d && d(j));
|
|
2298
|
-
}, p =
|
|
2298
|
+
}, p = $(() => {
|
|
2299
2299
|
d && d("");
|
|
2300
2300
|
}, [d]);
|
|
2301
2301
|
return /* @__PURE__ */ o.jsxs("div", { id: e, className: `select-container ${n || ""}`, children: [
|
|
@@ -2309,23 +2309,23 @@ const ps = Rn.div`
|
|
|
2309
2309
|
disabled: a,
|
|
2310
2310
|
id: `select-${e}`,
|
|
2311
2311
|
className: "select-container-select",
|
|
2312
|
-
value:
|
|
2312
|
+
value: h ?? l ?? (i ? [] : ""),
|
|
2313
2313
|
onChange: m,
|
|
2314
2314
|
multiple: i,
|
|
2315
|
-
ref: (w) =>
|
|
2315
|
+
ref: (w) => v.current[e ?? "select"] = w,
|
|
2316
2316
|
children: [
|
|
2317
2317
|
g && !l && !i && /* @__PURE__ */ o.jsx("option", { selected: !0, disabled: !0, hidden: !0, value: "", children: g }),
|
|
2318
2318
|
r.map((w, j) => /* @__PURE__ */ o.jsx("option", { value: w.value, children: w.label }, j))
|
|
2319
2319
|
]
|
|
2320
2320
|
}
|
|
2321
2321
|
),
|
|
2322
|
-
|
|
2322
|
+
h !== "" && g && /* @__PURE__ */ o.jsx(
|
|
2323
2323
|
"div",
|
|
2324
2324
|
{
|
|
2325
2325
|
className: "clear-btn",
|
|
2326
2326
|
onClick: p,
|
|
2327
2327
|
"aria-label": "Réinitialiser",
|
|
2328
|
-
children: /* @__PURE__ */ o.jsx(
|
|
2328
|
+
children: /* @__PURE__ */ o.jsx(Y, { classIcon: "bi-x" })
|
|
2329
2329
|
}
|
|
2330
2330
|
)
|
|
2331
2331
|
] });
|
|
@@ -2344,24 +2344,24 @@ const wr = Ue(
|
|
|
2344
2344
|
minLength: c,
|
|
2345
2345
|
maxLength: d,
|
|
2346
2346
|
autoFocus: f = !1,
|
|
2347
|
-
disabled:
|
|
2347
|
+
disabled: h = !1,
|
|
2348
2348
|
required: g = !1,
|
|
2349
|
-
autoComplete:
|
|
2349
|
+
autoComplete: v,
|
|
2350
2350
|
tabIndex: m = 0,
|
|
2351
2351
|
step: p,
|
|
2352
2352
|
checked: w,
|
|
2353
2353
|
onChange: j,
|
|
2354
|
-
onBlur:
|
|
2354
|
+
onBlur: y,
|
|
2355
2355
|
onClick: D,
|
|
2356
2356
|
handleKeyDown: S
|
|
2357
|
-
},
|
|
2358
|
-
const [_, P] =
|
|
2357
|
+
}, R) => {
|
|
2358
|
+
const [_, P] = W(!1);
|
|
2359
2359
|
return /* @__PURE__ */ o.jsxs("div", { className: `input-container ${`input-container-${r}`} `, children: [
|
|
2360
2360
|
/* @__PURE__ */ o.jsx("input", { name: `hide-${t}`, type: "text", style: { display: "none" } }),
|
|
2361
2361
|
/* @__PURE__ */ o.jsx(
|
|
2362
2362
|
"input",
|
|
2363
2363
|
{
|
|
2364
|
-
ref:
|
|
2364
|
+
ref: R,
|
|
2365
2365
|
id: e,
|
|
2366
2366
|
name: t,
|
|
2367
2367
|
inputMode: l ?? (r === "number" ? "numeric" : "text"),
|
|
@@ -2369,9 +2369,9 @@ const wr = Ue(
|
|
|
2369
2369
|
spellCheck: "false",
|
|
2370
2370
|
value: n,
|
|
2371
2371
|
placeholder: i,
|
|
2372
|
-
disabled:
|
|
2372
|
+
disabled: h,
|
|
2373
2373
|
required: g,
|
|
2374
|
-
autoComplete:
|
|
2374
|
+
autoComplete: v ?? "new-password",
|
|
2375
2375
|
step: p,
|
|
2376
2376
|
tabIndex: m,
|
|
2377
2377
|
autoFocus: f,
|
|
@@ -2380,9 +2380,9 @@ const wr = Ue(
|
|
|
2380
2380
|
onChange: j,
|
|
2381
2381
|
checked: w,
|
|
2382
2382
|
onKeyDown: S,
|
|
2383
|
-
onBlur:
|
|
2384
|
-
onClick: (
|
|
2385
|
-
|
|
2383
|
+
onBlur: y,
|
|
2384
|
+
onClick: (V) => {
|
|
2385
|
+
V.stopPropagation(), D && D(V);
|
|
2386
2386
|
},
|
|
2387
2387
|
className: `input-field ${s ?? ""}`,
|
|
2388
2388
|
onInvalid: a
|
|
@@ -2393,7 +2393,7 @@ const wr = Ue(
|
|
|
2393
2393
|
{
|
|
2394
2394
|
onClick: () => P(!_),
|
|
2395
2395
|
className: "input-password-icon",
|
|
2396
|
-
children: /* @__PURE__ */ o.jsx(
|
|
2396
|
+
children: /* @__PURE__ */ o.jsx(Y, { classIcon: _ ? "bi-eye-slash" : "bi-eye" })
|
|
2397
2397
|
}
|
|
2398
2398
|
)
|
|
2399
2399
|
] });
|
|
@@ -2413,11 +2413,11 @@ const gs = ({
|
|
|
2413
2413
|
rows: d,
|
|
2414
2414
|
required: f = !1
|
|
2415
2415
|
}) => {
|
|
2416
|
-
const [
|
|
2417
|
-
|
|
2416
|
+
const [h, g] = W(r);
|
|
2417
|
+
H(() => {
|
|
2418
2418
|
g(r);
|
|
2419
2419
|
}, [r]);
|
|
2420
|
-
const
|
|
2420
|
+
const v = $(
|
|
2421
2421
|
(m) => {
|
|
2422
2422
|
const p = m.target.value;
|
|
2423
2423
|
g(p), s && s(p, e);
|
|
@@ -2432,8 +2432,8 @@ const gs = ({
|
|
|
2432
2432
|
className: `form-control-textarea ${i ?? ""}`,
|
|
2433
2433
|
name: e,
|
|
2434
2434
|
disabled: n,
|
|
2435
|
-
value:
|
|
2436
|
-
onChange:
|
|
2435
|
+
value: h,
|
|
2436
|
+
onChange: v,
|
|
2437
2437
|
placeholder: l,
|
|
2438
2438
|
cols: c,
|
|
2439
2439
|
rows: d,
|
|
@@ -2453,71 +2453,71 @@ const gs = ({
|
|
|
2453
2453
|
disabledSubmit: c = !1,
|
|
2454
2454
|
className: d
|
|
2455
2455
|
}, f) => {
|
|
2456
|
-
const [
|
|
2457
|
-
const
|
|
2458
|
-
return e.forEach((
|
|
2459
|
-
|
|
2460
|
-
}),
|
|
2461
|
-
}), p = oe({}), w =
|
|
2462
|
-
(
|
|
2463
|
-
const { name:
|
|
2464
|
-
|
|
2465
|
-
const we = { ...
|
|
2456
|
+
const [h, g] = W(c), [v, m] = W(() => {
|
|
2457
|
+
const b = {};
|
|
2458
|
+
return e.forEach((L) => {
|
|
2459
|
+
b[L.name] = L.value ?? "";
|
|
2460
|
+
}), b;
|
|
2461
|
+
}), p = oe({}), w = $(
|
|
2462
|
+
(b, L) => {
|
|
2463
|
+
const { name: T, type: A, checked: E, value: F } = b.target, ie = A === "checkbox" ? E : F;
|
|
2464
|
+
L.onChange && L.onChange(ie, T), m((K) => {
|
|
2465
|
+
const we = { ...K, [T]: ie };
|
|
2466
2466
|
return s && s(we), we;
|
|
2467
2467
|
});
|
|
2468
2468
|
},
|
|
2469
2469
|
[s]
|
|
2470
|
-
), j =
|
|
2471
|
-
(
|
|
2472
|
-
|
|
2473
|
-
const
|
|
2474
|
-
return s && s(
|
|
2470
|
+
), j = $(
|
|
2471
|
+
(b, L, T) => {
|
|
2472
|
+
T.onChange && T.onChange(L, b), m((A) => {
|
|
2473
|
+
const E = { ...A, [b]: L };
|
|
2474
|
+
return s && s(E), E;
|
|
2475
2475
|
});
|
|
2476
2476
|
},
|
|
2477
2477
|
[s]
|
|
2478
|
-
),
|
|
2479
|
-
(
|
|
2480
|
-
|
|
2481
|
-
const
|
|
2482
|
-
return s && s(
|
|
2478
|
+
), y = $(
|
|
2479
|
+
(b, L, T) => {
|
|
2480
|
+
T.onChange && T.onChange(b, L), m((A) => {
|
|
2481
|
+
const E = { ...A, [L]: b };
|
|
2482
|
+
return s && s(E), E;
|
|
2483
2483
|
});
|
|
2484
2484
|
},
|
|
2485
2485
|
[s]
|
|
2486
|
-
), D =
|
|
2487
|
-
(
|
|
2488
|
-
|
|
2486
|
+
), D = $(
|
|
2487
|
+
(b) => {
|
|
2488
|
+
b.preventDefault(), r && r(v);
|
|
2489
2489
|
},
|
|
2490
|
-
[r,
|
|
2490
|
+
[r, v]
|
|
2491
2491
|
), S = () => {
|
|
2492
2492
|
m(() => {
|
|
2493
|
-
const
|
|
2494
|
-
return e.forEach((
|
|
2495
|
-
|
|
2496
|
-
}),
|
|
2493
|
+
const b = {};
|
|
2494
|
+
return e.forEach((L) => {
|
|
2495
|
+
b[L.name] = L.value ?? "";
|
|
2496
|
+
}), b;
|
|
2497
2497
|
});
|
|
2498
|
-
},
|
|
2499
|
-
m((
|
|
2500
|
-
...
|
|
2501
|
-
[
|
|
2498
|
+
}, R = $((b) => {
|
|
2499
|
+
m((L) => ({
|
|
2500
|
+
...L,
|
|
2501
|
+
[b]: ""
|
|
2502
2502
|
}));
|
|
2503
2503
|
}, []), _ = () => {
|
|
2504
|
-
const
|
|
2505
|
-
|
|
2506
|
-
var
|
|
2507
|
-
(
|
|
2504
|
+
const b = e.find((L) => L.focus);
|
|
2505
|
+
b && p.current[b.name] && setTimeout(() => {
|
|
2506
|
+
var L;
|
|
2507
|
+
(L = p.current[b.name]) == null || L.select();
|
|
2508
2508
|
}, 500);
|
|
2509
|
-
}, P = () =>
|
|
2510
|
-
m((
|
|
2511
|
-
...
|
|
2512
|
-
...
|
|
2509
|
+
}, P = () => v, V = (b) => {
|
|
2510
|
+
m((L) => ({
|
|
2511
|
+
...L,
|
|
2512
|
+
...b
|
|
2513
2513
|
}));
|
|
2514
2514
|
};
|
|
2515
2515
|
return Dr(f, () => ({
|
|
2516
2516
|
resetForm: S,
|
|
2517
|
-
clearInput:
|
|
2517
|
+
clearInput: R,
|
|
2518
2518
|
focusInitialElement: _,
|
|
2519
2519
|
getValues: P,
|
|
2520
|
-
updateFormValue:
|
|
2520
|
+
updateFormValue: V,
|
|
2521
2521
|
setBtnDisabledSubmit: g
|
|
2522
2522
|
})), /* @__PURE__ */ o.jsxs(
|
|
2523
2523
|
"form",
|
|
@@ -2527,66 +2527,66 @@ const gs = ({
|
|
|
2527
2527
|
className: d ?? "",
|
|
2528
2528
|
children: [
|
|
2529
2529
|
/* @__PURE__ */ o.jsxs("div", { className: "form-content", children: [
|
|
2530
|
-
e.map((
|
|
2531
|
-
const
|
|
2530
|
+
e.map((b, L) => {
|
|
2531
|
+
const T = b.onRequired ? b.onRequired(b.value) : b.required ?? !1, A = b.onDisabled ? b.onDisabled(b.value) : b.disabled ?? !1;
|
|
2532
2532
|
return /* @__PURE__ */ o.jsxs(
|
|
2533
2533
|
"div",
|
|
2534
2534
|
{
|
|
2535
|
-
className: `d-flex flex-column ${
|
|
2535
|
+
className: `d-flex flex-column ${b.className ?? ""} form-group form-group-${b.type}`,
|
|
2536
2536
|
children: [
|
|
2537
|
-
|
|
2538
|
-
|
|
2539
|
-
|
|
2537
|
+
b.label && /* @__PURE__ */ o.jsx("label", { children: b.label }),
|
|
2538
|
+
b.icon && /* @__PURE__ */ o.jsx(Y, { classIcon: b.icon }),
|
|
2539
|
+
b.type === "select" ? /* @__PURE__ */ o.jsx(
|
|
2540
2540
|
uo,
|
|
2541
2541
|
{
|
|
2542
|
-
id:
|
|
2542
|
+
id: b.id ?? b.name,
|
|
2543
2543
|
label: void 0,
|
|
2544
|
-
name:
|
|
2545
|
-
options:
|
|
2546
|
-
disabled:
|
|
2547
|
-
multiple:
|
|
2548
|
-
value:
|
|
2549
|
-
required:
|
|
2550
|
-
defaultValue:
|
|
2551
|
-
placeholder:
|
|
2552
|
-
onChangeMultiple: (
|
|
2553
|
-
onChange: (
|
|
2544
|
+
name: b.name,
|
|
2545
|
+
options: b.options ?? [],
|
|
2546
|
+
disabled: A,
|
|
2547
|
+
multiple: b.multiple,
|
|
2548
|
+
value: v[b.name],
|
|
2549
|
+
required: T,
|
|
2550
|
+
defaultValue: b.value,
|
|
2551
|
+
placeholder: b.placeholder,
|
|
2552
|
+
onChangeMultiple: (E) => y(E, b.name, b),
|
|
2553
|
+
onChange: (E) => y(E, b.name, b)
|
|
2554
2554
|
}
|
|
2555
|
-
) :
|
|
2555
|
+
) : b.type === "textarea" ? /* @__PURE__ */ o.jsx(
|
|
2556
2556
|
gs,
|
|
2557
2557
|
{
|
|
2558
|
-
id:
|
|
2559
|
-
name:
|
|
2558
|
+
id: b.id ?? b.name,
|
|
2559
|
+
name: b.name,
|
|
2560
2560
|
className: "textarea-input",
|
|
2561
|
-
placeholder:
|
|
2562
|
-
disabled:
|
|
2563
|
-
required:
|
|
2564
|
-
value:
|
|
2565
|
-
onChange: (
|
|
2561
|
+
placeholder: b.placeholder ?? "",
|
|
2562
|
+
disabled: A,
|
|
2563
|
+
required: T,
|
|
2564
|
+
value: v[b.name],
|
|
2565
|
+
onChange: (E, F) => j(F, E, b)
|
|
2566
2566
|
}
|
|
2567
2567
|
) : /* @__PURE__ */ o.jsx(
|
|
2568
2568
|
wr,
|
|
2569
2569
|
{
|
|
2570
|
-
id:
|
|
2571
|
-
ref: (
|
|
2572
|
-
name:
|
|
2573
|
-
type:
|
|
2574
|
-
placeholder:
|
|
2575
|
-
autoComplete:
|
|
2570
|
+
id: b.id ?? b.name,
|
|
2571
|
+
ref: (E) => p.current[b.name] = E,
|
|
2572
|
+
name: b.name,
|
|
2573
|
+
type: b.type,
|
|
2574
|
+
placeholder: b.placeholder ?? "",
|
|
2575
|
+
autoComplete: b.autoComplete,
|
|
2576
2576
|
tabIndex: 0,
|
|
2577
|
-
disabled:
|
|
2578
|
-
autoFocus:
|
|
2579
|
-
required:
|
|
2580
|
-
step:
|
|
2581
|
-
value:
|
|
2582
|
-
checked:
|
|
2583
|
-
onChange: (
|
|
2584
|
-
onInvalid:
|
|
2577
|
+
disabled: A,
|
|
2578
|
+
autoFocus: b.focus ?? !1,
|
|
2579
|
+
required: T,
|
|
2580
|
+
step: b.step ?? "0.01",
|
|
2581
|
+
value: v[b.name],
|
|
2582
|
+
checked: b.type === "checkbox" ? !!v[b.name] : void 0,
|
|
2583
|
+
onChange: (E) => w(E, b),
|
|
2584
|
+
onInvalid: b.onInvalid ? b.onInvalid : void 0
|
|
2585
2585
|
}
|
|
2586
2586
|
)
|
|
2587
2587
|
]
|
|
2588
2588
|
},
|
|
2589
|
-
|
|
2589
|
+
L
|
|
2590
2590
|
);
|
|
2591
2591
|
}),
|
|
2592
2592
|
a
|
|
@@ -2595,7 +2595,7 @@ const gs = ({
|
|
|
2595
2595
|
xt,
|
|
2596
2596
|
{
|
|
2597
2597
|
id: `button-${n}`,
|
|
2598
|
-
disabled:
|
|
2598
|
+
disabled: h,
|
|
2599
2599
|
title: t || "submit"
|
|
2600
2600
|
}
|
|
2601
2601
|
) })
|
|
@@ -2603,7 +2603,7 @@ const gs = ({
|
|
|
2603
2603
|
}
|
|
2604
2604
|
);
|
|
2605
2605
|
}
|
|
2606
|
-
),
|
|
2606
|
+
), Fl = ({
|
|
2607
2607
|
className: e,
|
|
2608
2608
|
onClick: t,
|
|
2609
2609
|
title: r,
|
|
@@ -2614,17 +2614,17 @@ const gs = ({
|
|
|
2614
2614
|
dataForm: l,
|
|
2615
2615
|
onChange: c
|
|
2616
2616
|
}) => {
|
|
2617
|
-
const d = oe(null), [f,
|
|
2618
|
-
m.preventDefault(),
|
|
2619
|
-
},
|
|
2617
|
+
const d = oe(null), [f, h] = W(!1), g = (m) => {
|
|
2618
|
+
m.preventDefault(), h(!f), t && t(m);
|
|
2619
|
+
}, v = $(
|
|
2620
2620
|
(m) => {
|
|
2621
|
-
d.current && !d.current.contains(m.target) &&
|
|
2621
|
+
d.current && !d.current.contains(m.target) && h(!1);
|
|
2622
2622
|
},
|
|
2623
|
-
[
|
|
2623
|
+
[h]
|
|
2624
2624
|
);
|
|
2625
|
-
return
|
|
2626
|
-
document.removeEventListener("mousedown",
|
|
2627
|
-
}), [f,
|
|
2625
|
+
return H(() => (f ? document.addEventListener("mousedown", v) : document.removeEventListener("mousedown", v), () => {
|
|
2626
|
+
document.removeEventListener("mousedown", v);
|
|
2627
|
+
}), [f, v]), /* @__PURE__ */ o.jsx(o.Fragment, { children: /* @__PURE__ */ o.jsxs(
|
|
2628
2628
|
"button",
|
|
2629
2629
|
{
|
|
2630
2630
|
ref: d,
|
|
@@ -2635,7 +2635,7 @@ const gs = ({
|
|
|
2635
2635
|
className: ` ${e} button--filters button--transparent `,
|
|
2636
2636
|
children: [
|
|
2637
2637
|
n && /* @__PURE__ */ o.jsx("span", { children: /* @__PURE__ */ o.jsx(
|
|
2638
|
-
|
|
2638
|
+
Y,
|
|
2639
2639
|
{
|
|
2640
2640
|
classIcon: n,
|
|
2641
2641
|
size: a || xe.EXTRA_SMALL
|
|
@@ -2668,20 +2668,20 @@ const gs = ({
|
|
|
2668
2668
|
positionOverlay: a,
|
|
2669
2669
|
setOpenActions: i
|
|
2670
2670
|
}) => {
|
|
2671
|
-
const s = oe(null), [l, c] =
|
|
2671
|
+
const s = oe(null), [l, c] = W(
|
|
2672
2672
|
a
|
|
2673
|
-
), d = oe(null), [f,
|
|
2674
|
-
|
|
2675
|
-
t &&
|
|
2673
|
+
), d = oe(null), [f, h] = W(t ?? !1);
|
|
2674
|
+
H(() => {
|
|
2675
|
+
t && h(t);
|
|
2676
2676
|
}, [t]);
|
|
2677
|
-
const g =
|
|
2677
|
+
const g = $(
|
|
2678
2678
|
(p, w) => {
|
|
2679
2679
|
e.length !== 0 && (p.preventDefault(), c("bottomRight"), i && i(w));
|
|
2680
2680
|
},
|
|
2681
2681
|
[c, i]
|
|
2682
|
-
),
|
|
2683
|
-
c(void 0),
|
|
2684
|
-
}, [
|
|
2682
|
+
), v = $(() => {
|
|
2683
|
+
c(void 0), h(!1), i && i(!1);
|
|
2684
|
+
}, [h, c, i]), m = Le(() => e == null ? void 0 : e.filter((p) => p.type === "menu").map((p, w) => {
|
|
2685
2685
|
let j = p.label || "";
|
|
2686
2686
|
return p.setLabel && r && (j = p.setLabel(r)), {
|
|
2687
2687
|
id: w,
|
|
@@ -2693,8 +2693,8 @@ const gs = ({
|
|
|
2693
2693
|
classIcon: p.icon,
|
|
2694
2694
|
disabled: r && p.disabled ? p.disabled(r) : !1,
|
|
2695
2695
|
sizeIcon: xe.LARGE,
|
|
2696
|
-
onClick: (
|
|
2697
|
-
|
|
2696
|
+
onClick: (y) => {
|
|
2697
|
+
y.stopPropagation(), v(), p.onClick && r && p.onClick(r);
|
|
2698
2698
|
},
|
|
2699
2699
|
title: j
|
|
2700
2700
|
},
|
|
@@ -2711,14 +2711,14 @@ const gs = ({
|
|
|
2711
2711
|
onClick: (p) => g(p, !f),
|
|
2712
2712
|
children: [
|
|
2713
2713
|
/* @__PURE__ */ o.jsx(
|
|
2714
|
-
|
|
2714
|
+
Y,
|
|
2715
2715
|
{
|
|
2716
2716
|
size: xe.MEDIUM,
|
|
2717
2717
|
classIcon: "bi-three-dots-vertical cursor-pointer"
|
|
2718
2718
|
}
|
|
2719
2719
|
),
|
|
2720
2720
|
/* @__PURE__ */ o.jsx(
|
|
2721
|
-
|
|
2721
|
+
Y,
|
|
2722
2722
|
{
|
|
2723
2723
|
size: xe.MEDIUM,
|
|
2724
2724
|
classIcon: "bi-three-dots cursor-pointer"
|
|
@@ -2733,14 +2733,14 @@ const gs = ({
|
|
|
2733
2733
|
position: l,
|
|
2734
2734
|
show: f,
|
|
2735
2735
|
ref: s,
|
|
2736
|
-
closeOverlay:
|
|
2736
|
+
closeOverlay: v,
|
|
2737
2737
|
coordonnees: n,
|
|
2738
2738
|
referenceElement: d.current,
|
|
2739
2739
|
children: /* @__PURE__ */ o.jsx("div", { children: /* @__PURE__ */ o.jsx(Ma, { className: "card-action-menu", items: m }) })
|
|
2740
2740
|
}
|
|
2741
2741
|
)
|
|
2742
2742
|
] });
|
|
2743
|
-
},
|
|
2743
|
+
}, Wl = ({
|
|
2744
2744
|
item: e,
|
|
2745
2745
|
actions: t,
|
|
2746
2746
|
className: r,
|
|
@@ -2750,20 +2750,20 @@ const gs = ({
|
|
|
2750
2750
|
positionOverlay: s,
|
|
2751
2751
|
children: l
|
|
2752
2752
|
}) => {
|
|
2753
|
-
const [c, d] =
|
|
2753
|
+
const [c, d] = W(!1), [f, h] = W(!1), [g, v] = W(), m = (w, j) => {
|
|
2754
2754
|
w.stopPropagation(), a && a(j);
|
|
2755
|
-
}, p =
|
|
2755
|
+
}, p = $(
|
|
2756
2756
|
(w, j) => {
|
|
2757
2757
|
if (w.stopPropagation(), f)
|
|
2758
|
-
return
|
|
2759
|
-
w.target.closest(".qte") || w.target.closest(".card-action-menu button") || w.target.closest(".card-actions") || (d(!c), n && w.button !== 2 ? n(j) : (
|
|
2758
|
+
return v(void 0), h(!1);
|
|
2759
|
+
w.target.closest(".qte") || w.target.closest(".card-action-menu button") || w.target.closest(".card-actions") || (d(!c), n && w.button !== 2 ? n(j) : (v({ top: w.clientY, left: w.clientX }), h(!0)));
|
|
2760
2760
|
},
|
|
2761
2761
|
[
|
|
2762
2762
|
d,
|
|
2763
|
-
|
|
2763
|
+
v,
|
|
2764
2764
|
n,
|
|
2765
2765
|
f,
|
|
2766
|
-
|
|
2766
|
+
h,
|
|
2767
2767
|
c
|
|
2768
2768
|
]
|
|
2769
2769
|
);
|
|
@@ -2790,14 +2790,14 @@ const gs = ({
|
|
|
2790
2790
|
{
|
|
2791
2791
|
className: "ml-2 cursor-pointer",
|
|
2792
2792
|
onClick: (w) => m(w, e),
|
|
2793
|
-
children: /* @__PURE__ */ o.jsx(
|
|
2793
|
+
children: /* @__PURE__ */ o.jsx(Y, { classIcon: "bi-trash3" })
|
|
2794
2794
|
}
|
|
2795
2795
|
),
|
|
2796
2796
|
t && /* @__PURE__ */ o.jsx(
|
|
2797
2797
|
ys,
|
|
2798
2798
|
{
|
|
2799
2799
|
openActions: f,
|
|
2800
|
-
setOpenActions:
|
|
2800
|
+
setOpenActions: h,
|
|
2801
2801
|
actions: t,
|
|
2802
2802
|
item: e,
|
|
2803
2803
|
positions: g,
|
|
@@ -2808,7 +2808,7 @@ const gs = ({
|
|
|
2808
2808
|
]
|
|
2809
2809
|
}
|
|
2810
2810
|
);
|
|
2811
|
-
},
|
|
2811
|
+
}, Vl = ({
|
|
2812
2812
|
children: e,
|
|
2813
2813
|
showControls: t = !0,
|
|
2814
2814
|
itemsToScroll: r = 1,
|
|
@@ -2819,8 +2819,8 @@ const gs = ({
|
|
|
2819
2819
|
xl: 5
|
|
2820
2820
|
}
|
|
2821
2821
|
}) => {
|
|
2822
|
-
const [a, i] =
|
|
2823
|
-
|
|
2822
|
+
const [a, i] = W(0), s = e.length, [l, c] = W(1);
|
|
2823
|
+
H(() => {
|
|
2824
2824
|
const m = () => {
|
|
2825
2825
|
const p = window.innerWidth;
|
|
2826
2826
|
if (n.xl && p >= 1200)
|
|
@@ -2834,26 +2834,26 @@ const gs = ({
|
|
|
2834
2834
|
};
|
|
2835
2835
|
return m(), window.addEventListener("resize", m), () => window.removeEventListener("resize", m);
|
|
2836
2836
|
}, [n]);
|
|
2837
|
-
const d =
|
|
2837
|
+
const d = $(
|
|
2838
2838
|
(m) => {
|
|
2839
2839
|
m.preventDefault(), i(
|
|
2840
2840
|
(p) => Math.min(p + r, s - l)
|
|
2841
2841
|
);
|
|
2842
2842
|
},
|
|
2843
2843
|
[i]
|
|
2844
|
-
), f =
|
|
2844
|
+
), f = $(
|
|
2845
2845
|
(m) => {
|
|
2846
2846
|
m.preventDefault(), i((p) => Math.max(p - r, 0));
|
|
2847
2847
|
},
|
|
2848
2848
|
[i]
|
|
2849
|
-
),
|
|
2849
|
+
), h = a + r >= s - l + 1, g = s <= l, v = a <= 0;
|
|
2850
2850
|
return /* @__PURE__ */ o.jsxs("div", { className: "carousel", children: [
|
|
2851
2851
|
t && !g && /* @__PURE__ */ o.jsx(
|
|
2852
2852
|
"div",
|
|
2853
2853
|
{
|
|
2854
|
-
className: `carousel-control prev ${
|
|
2854
|
+
className: `carousel-control prev ${v && "disabled"}`,
|
|
2855
2855
|
onClick: f,
|
|
2856
|
-
children: /* @__PURE__ */ o.jsx(
|
|
2856
|
+
children: /* @__PURE__ */ o.jsx(Y, { classIcon: "bi-chevron-left" })
|
|
2857
2857
|
}
|
|
2858
2858
|
),
|
|
2859
2859
|
/* @__PURE__ */ o.jsx("div", { className: "carousel-container", children: /* @__PURE__ */ o.jsx(
|
|
@@ -2881,9 +2881,9 @@ const gs = ({
|
|
|
2881
2881
|
t && !g && /* @__PURE__ */ o.jsx(
|
|
2882
2882
|
"div",
|
|
2883
2883
|
{
|
|
2884
|
-
className: `carousel-control next ${
|
|
2884
|
+
className: `carousel-control next ${h && "disabled"}`,
|
|
2885
2885
|
onClick: d,
|
|
2886
|
-
children: /* @__PURE__ */ o.jsx(
|
|
2886
|
+
children: /* @__PURE__ */ o.jsx(Y, { classIcon: "bi-chevron-right" })
|
|
2887
2887
|
}
|
|
2888
2888
|
)
|
|
2889
2889
|
] });
|
|
@@ -2892,33 +2892,33 @@ const gs = ({
|
|
|
2892
2892
|
t && t(e);
|
|
2893
2893
|
};
|
|
2894
2894
|
return /* @__PURE__ */ o.jsx("div", { className: "cell", onClick: r, children: e.child });
|
|
2895
|
-
},
|
|
2895
|
+
}, Yl = ({
|
|
2896
2896
|
cols: e,
|
|
2897
2897
|
rows: t,
|
|
2898
2898
|
damierCells: r = [],
|
|
2899
2899
|
page: n = 1,
|
|
2900
2900
|
onClick: a
|
|
2901
2901
|
}) => {
|
|
2902
|
-
const i = Le(() => e ?? 9, [e]), s = Le(() => t ?? 9, [t]), [l, c] =
|
|
2903
|
-
|
|
2902
|
+
const i = Le(() => e ?? 9, [e]), s = Le(() => t ?? 9, [t]), [l, c] = W(1);
|
|
2903
|
+
H(() => {
|
|
2904
2904
|
c(n);
|
|
2905
2905
|
}, [n]);
|
|
2906
2906
|
const d = Le(() => {
|
|
2907
2907
|
const f = [];
|
|
2908
|
-
for (let
|
|
2908
|
+
for (let h = 0; h < s; h++) {
|
|
2909
2909
|
const g = [];
|
|
2910
|
-
for (let
|
|
2911
|
-
const m =
|
|
2910
|
+
for (let v = 0; v < i; v++) {
|
|
2911
|
+
const m = v + h * i, p = r == null ? void 0 : r.find(
|
|
2912
2912
|
(w) => w.position === m + 1
|
|
2913
2913
|
);
|
|
2914
2914
|
p ? g.push(
|
|
2915
|
-
/* @__PURE__ */ o.jsx(bs, { onClick: a, cell: p }, `${
|
|
2915
|
+
/* @__PURE__ */ o.jsx(bs, { onClick: a, cell: p }, `${h}-${v}`)
|
|
2916
2916
|
) : g.push(
|
|
2917
|
-
/* @__PURE__ */ o.jsx("div", { className: "cell cell--empty" }, `${
|
|
2917
|
+
/* @__PURE__ */ o.jsx("div", { className: "cell cell--empty" }, `${h}-${v}`)
|
|
2918
2918
|
);
|
|
2919
2919
|
}
|
|
2920
2920
|
f.push(
|
|
2921
|
-
/* @__PURE__ */ o.jsx("div", { className: "row", children: g },
|
|
2921
|
+
/* @__PURE__ */ o.jsx("div", { className: "row", children: g }, h)
|
|
2922
2922
|
);
|
|
2923
2923
|
}
|
|
2924
2924
|
return f;
|
|
@@ -2958,29 +2958,38 @@ const gs = ({
|
|
|
2958
2958
|
{
|
|
2959
2959
|
className: "mr-2 ",
|
|
2960
2960
|
onClick: () => e.onClick(t),
|
|
2961
|
-
children: /* @__PURE__ */ o.jsx(
|
|
2961
|
+
children: /* @__PURE__ */ o.jsx(Y, { classIcon: e.classIcon ?? "" }, e.id)
|
|
2962
2962
|
},
|
|
2963
2963
|
`icon-action-${e.id}-${r}`
|
|
2964
2964
|
)
|
|
2965
2965
|
] })) : null;
|
|
2966
|
-
}
|
|
2966
|
+
};
|
|
2967
|
+
function ws({
|
|
2967
2968
|
column: e,
|
|
2968
2969
|
idx: t,
|
|
2969
|
-
onColumnClick: r
|
|
2970
|
-
|
|
2971
|
-
|
|
2972
|
-
|
|
2973
|
-
|
|
2974
|
-
|
|
2975
|
-
|
|
2976
|
-
|
|
2977
|
-
|
|
2970
|
+
onColumnClick: r,
|
|
2971
|
+
hasNestedColumns: n
|
|
2972
|
+
}) {
|
|
2973
|
+
var a, i;
|
|
2974
|
+
return /* @__PURE__ */ o.jsx(
|
|
2975
|
+
"th",
|
|
2976
|
+
{
|
|
2977
|
+
style: {
|
|
2978
|
+
minWidth: e.minWidth,
|
|
2979
|
+
maxWidth: e.maxWidth,
|
|
2980
|
+
width: e.width,
|
|
2981
|
+
textAlign: e.align ?? "left",
|
|
2982
|
+
alignContent: e.children ? "center" : "flex-end"
|
|
2983
|
+
},
|
|
2984
|
+
colSpan: ((a = e.children) == null ? void 0 : a.length) ?? 1,
|
|
2985
|
+
rowSpan: !((i = e.children) != null && i.length) && n ? 2 : 1,
|
|
2986
|
+
onClick: () => r == null ? void 0 : r(e),
|
|
2987
|
+
children: e.label
|
|
2978
2988
|
},
|
|
2979
|
-
|
|
2980
|
-
|
|
2981
|
-
|
|
2982
|
-
|
|
2983
|
-
), js = ({
|
|
2989
|
+
`colonne-${e.id}-${t}`
|
|
2990
|
+
);
|
|
2991
|
+
}
|
|
2992
|
+
const js = ({
|
|
2984
2993
|
columns: e,
|
|
2985
2994
|
actions: t,
|
|
2986
2995
|
emptyMessage: r
|
|
@@ -2991,44 +3000,53 @@ const gs = ({
|
|
|
2991
3000
|
colSpan: e.length + (t.length > 0 ? 1 : 0),
|
|
2992
3001
|
children: /* @__PURE__ */ o.jsx("div", { className: "mt-3", children: r || "Aucune donnée disponible" })
|
|
2993
3002
|
}
|
|
2994
|
-
) }), Ss = ({
|
|
3003
|
+
) }), Ss = ({
|
|
3004
|
+
column: e,
|
|
3005
|
+
row: t,
|
|
3006
|
+
value: r
|
|
3007
|
+
}) => /* @__PURE__ */ o.jsx(o.Fragment, { children: e.editable ? e.type === "select" ? /* @__PURE__ */ o.jsx(
|
|
3008
|
+
uo,
|
|
3009
|
+
{
|
|
3010
|
+
options: e.options ?? [],
|
|
3011
|
+
value: r,
|
|
3012
|
+
onChange: (n) => {
|
|
3013
|
+
e.onEdit && e.onEdit(n, t);
|
|
3014
|
+
}
|
|
3015
|
+
}
|
|
3016
|
+
) : /* @__PURE__ */ o.jsx(
|
|
3017
|
+
"input",
|
|
3018
|
+
{
|
|
3019
|
+
type: e.type,
|
|
3020
|
+
value: r,
|
|
3021
|
+
step: "0.01",
|
|
3022
|
+
style: {
|
|
3023
|
+
textAlign: e.alignText ? e.alignText : e.align || "left"
|
|
3024
|
+
},
|
|
3025
|
+
onChange: (n) => {
|
|
3026
|
+
e.onEdit && e.onEdit(n.target.value, t);
|
|
3027
|
+
}
|
|
3028
|
+
}
|
|
3029
|
+
) : e.format ? e.format(r) : r }), Ds = ({ column: e, idx: t, row: r }) => {
|
|
2995
3030
|
const n = r[e.id], a = e.onRowStyle ? e.onRowStyle(r) : {};
|
|
2996
|
-
return /* @__PURE__ */ o.
|
|
3031
|
+
return /* @__PURE__ */ o.jsxs(
|
|
2997
3032
|
"td",
|
|
2998
3033
|
{
|
|
2999
3034
|
style: {
|
|
3000
3035
|
minWidth: e.minWidth,
|
|
3001
|
-
textAlign: e.align || "left",
|
|
3036
|
+
textAlign: e.alignText ? e.alignText : e.align || "left",
|
|
3002
3037
|
maxWidth: e.maxWidth,
|
|
3003
3038
|
width: e.width,
|
|
3004
3039
|
...a
|
|
3005
3040
|
},
|
|
3006
|
-
children:
|
|
3007
|
-
|
|
3008
|
-
{
|
|
3009
|
-
|
|
3010
|
-
value: n,
|
|
3011
|
-
onChange: (i) => {
|
|
3012
|
-
e.onEdit && e.onEdit(i, r);
|
|
3013
|
-
}
|
|
3014
|
-
}
|
|
3015
|
-
) : /* @__PURE__ */ o.jsx(
|
|
3016
|
-
"input",
|
|
3017
|
-
{
|
|
3018
|
-
type: e.type,
|
|
3019
|
-
value: n,
|
|
3020
|
-
step: "0.01",
|
|
3021
|
-
style: { textAlign: e.align || "left" },
|
|
3022
|
-
onChange: (i) => {
|
|
3023
|
-
e.onEdit && e.onEdit(i.target.value, r);
|
|
3024
|
-
}
|
|
3025
|
-
}
|
|
3026
|
-
) : e.format ? e.format(n) : n
|
|
3041
|
+
children: [
|
|
3042
|
+
e.renderComponent ? e.renderComponent(n, r) : null,
|
|
3043
|
+
!e.renderComponent && /* @__PURE__ */ o.jsx(Ss, { column: e, value: n, row: r, idx: t })
|
|
3044
|
+
]
|
|
3027
3045
|
},
|
|
3028
3046
|
`row-${e.id}-${t}`
|
|
3029
3047
|
);
|
|
3030
3048
|
};
|
|
3031
|
-
function
|
|
3049
|
+
function Bl(e) {
|
|
3032
3050
|
const {
|
|
3033
3051
|
id: t,
|
|
3034
3052
|
name: r,
|
|
@@ -3040,60 +3058,60 @@ function Yl(e) {
|
|
|
3040
3058
|
columns: c = [],
|
|
3041
3059
|
loading: d,
|
|
3042
3060
|
onRowClick: f,
|
|
3043
|
-
onColumnClick:
|
|
3061
|
+
onColumnClick: h,
|
|
3044
3062
|
onLoadMore: g,
|
|
3045
|
-
emptyMessage:
|
|
3063
|
+
emptyMessage: v,
|
|
3046
3064
|
hasMore: m,
|
|
3047
3065
|
onSelectionChange: p,
|
|
3048
3066
|
hideToggleAll: w = !1,
|
|
3049
3067
|
limitSelect: j = void 0,
|
|
3050
|
-
getRowId:
|
|
3051
|
-
} = e, D = oe(null), [S,
|
|
3068
|
+
getRowId: y
|
|
3069
|
+
} = e, D = oe(null), [S, R] = W(
|
|
3052
3070
|
/* @__PURE__ */ new Set()
|
|
3053
|
-
), _ =
|
|
3071
|
+
), _ = $(() => {
|
|
3054
3072
|
if (S.size === s.length)
|
|
3055
|
-
|
|
3073
|
+
R(/* @__PURE__ */ new Set()), p == null || p([]);
|
|
3056
3074
|
else {
|
|
3057
|
-
let
|
|
3058
|
-
(
|
|
3075
|
+
let T = s.map(
|
|
3076
|
+
(E) => y ? y(E) : E.id ?? E
|
|
3059
3077
|
);
|
|
3060
|
-
j &&
|
|
3061
|
-
const
|
|
3062
|
-
|
|
3078
|
+
j && T.length > j && (T = T.slice(0, j));
|
|
3079
|
+
const A = new Set(T);
|
|
3080
|
+
R(A), p == null || p(
|
|
3063
3081
|
s.filter(
|
|
3064
|
-
(
|
|
3082
|
+
(E) => A.has(y ? y(E) : E.id ?? E)
|
|
3065
3083
|
)
|
|
3066
3084
|
);
|
|
3067
3085
|
}
|
|
3068
|
-
}, [s, p, j,
|
|
3069
|
-
(
|
|
3070
|
-
|
|
3086
|
+
}, [s, p, j, y, S.size]), P = $(
|
|
3087
|
+
(T, A) => {
|
|
3088
|
+
T.stopPropagation(), f && (f == null || f(A));
|
|
3071
3089
|
},
|
|
3072
3090
|
[f]
|
|
3073
|
-
),
|
|
3074
|
-
(
|
|
3075
|
-
|
|
3076
|
-
const
|
|
3077
|
-
if (
|
|
3078
|
-
|
|
3091
|
+
), V = $(
|
|
3092
|
+
(T, A) => {
|
|
3093
|
+
T.stopPropagation();
|
|
3094
|
+
const E = y ? y(A) : A.id ?? A, F = new Set(S);
|
|
3095
|
+
if (F.has(E))
|
|
3096
|
+
F.delete(E);
|
|
3079
3097
|
else {
|
|
3080
|
-
if (j &&
|
|
3098
|
+
if (j && F.size >= j)
|
|
3081
3099
|
return;
|
|
3082
|
-
|
|
3100
|
+
F.add(E);
|
|
3083
3101
|
}
|
|
3084
|
-
|
|
3085
|
-
const
|
|
3086
|
-
(
|
|
3102
|
+
R(F);
|
|
3103
|
+
const ie = s.filter(
|
|
3104
|
+
(K) => F.has(y ? y(K) : K.id ?? K)
|
|
3087
3105
|
);
|
|
3088
|
-
p == null || p(
|
|
3106
|
+
p == null || p(ie);
|
|
3089
3107
|
},
|
|
3090
|
-
[s,
|
|
3108
|
+
[s, y, j, p, S]
|
|
3091
3109
|
);
|
|
3092
|
-
|
|
3110
|
+
H(() => {
|
|
3093
3111
|
if (!g || !m) return;
|
|
3094
|
-
const
|
|
3095
|
-
(
|
|
3096
|
-
|
|
3112
|
+
const T = new IntersectionObserver(
|
|
3113
|
+
(A) => {
|
|
3114
|
+
A[0].isIntersecting && g();
|
|
3097
3115
|
},
|
|
3098
3116
|
{
|
|
3099
3117
|
root: null,
|
|
@@ -3101,51 +3119,79 @@ function Yl(e) {
|
|
|
3101
3119
|
threshold: 1
|
|
3102
3120
|
}
|
|
3103
3121
|
);
|
|
3104
|
-
return D.current &&
|
|
3105
|
-
D.current &&
|
|
3122
|
+
return D.current && T.observe(D.current), () => {
|
|
3123
|
+
D.current && T.unobserve(D.current);
|
|
3106
3124
|
};
|
|
3107
|
-
}, [g, m])
|
|
3125
|
+
}, [g, m]);
|
|
3126
|
+
const b = c.some((T) => {
|
|
3127
|
+
var A;
|
|
3128
|
+
return (A = T.children) == null ? void 0 : A.length;
|
|
3129
|
+
}), L = c.flatMap(
|
|
3130
|
+
(T) => {
|
|
3131
|
+
var A;
|
|
3132
|
+
return (A = T.children) != null && A.length ? T.children : [T];
|
|
3133
|
+
}
|
|
3134
|
+
);
|
|
3135
|
+
return /* @__PURE__ */ o.jsxs("div", { className: "data-table-container", children: [
|
|
3108
3136
|
r && /* @__PURE__ */ o.jsx("h2", { className: "mb-2", children: r }),
|
|
3109
3137
|
i,
|
|
3110
3138
|
/* @__PURE__ */ o.jsxs("table", { className: `data-table ${n || ""}`, id: t, children: [
|
|
3111
|
-
/* @__PURE__ */ o.
|
|
3112
|
-
|
|
3113
|
-
|
|
3114
|
-
|
|
3115
|
-
|
|
3116
|
-
|
|
3117
|
-
|
|
3118
|
-
|
|
3139
|
+
/* @__PURE__ */ o.jsxs("thead", { children: [
|
|
3140
|
+
/* @__PURE__ */ o.jsxs("tr", { children: [
|
|
3141
|
+
p && /* @__PURE__ */ o.jsx(
|
|
3142
|
+
"th",
|
|
3143
|
+
{
|
|
3144
|
+
className: `select-cell ${w ? "hidden" : ""}`,
|
|
3145
|
+
style: { width: "20px", textAlign: "center" },
|
|
3146
|
+
children: /* @__PURE__ */ o.jsx(
|
|
3147
|
+
wr,
|
|
3148
|
+
{
|
|
3149
|
+
id: `select-th-${t}`,
|
|
3150
|
+
name: `select-th-${t}`,
|
|
3151
|
+
type: Be.CHECKBOX,
|
|
3152
|
+
checked: s.length > 0 && S.size === s.length,
|
|
3153
|
+
onChange: _
|
|
3154
|
+
}
|
|
3155
|
+
)
|
|
3156
|
+
}
|
|
3157
|
+
),
|
|
3158
|
+
c.map((T, A) => /* @__PURE__ */ o.jsx(
|
|
3159
|
+
ws,
|
|
3160
|
+
{
|
|
3161
|
+
hasNestedColumns: b,
|
|
3162
|
+
column: T,
|
|
3163
|
+
idx: A,
|
|
3164
|
+
onColumnClick: h
|
|
3165
|
+
},
|
|
3166
|
+
A
|
|
3167
|
+
)),
|
|
3168
|
+
l.length > 0 && /* @__PURE__ */ o.jsx(
|
|
3169
|
+
"th",
|
|
3170
|
+
{
|
|
3171
|
+
style: {
|
|
3172
|
+
width: "200px"
|
|
3173
|
+
},
|
|
3174
|
+
align: "right",
|
|
3175
|
+
rowSpan: b ? 2 : 1
|
|
3176
|
+
},
|
|
3177
|
+
"actions"
|
|
3178
|
+
)
|
|
3179
|
+
] }),
|
|
3180
|
+
b && /* @__PURE__ */ o.jsx("tr", { children: c.flatMap(
|
|
3181
|
+
(T, A) => {
|
|
3182
|
+
var E;
|
|
3183
|
+
return ((E = T.children) == null ? void 0 : E.map((F, ie) => /* @__PURE__ */ o.jsx(
|
|
3184
|
+
"th",
|
|
3119
3185
|
{
|
|
3120
|
-
|
|
3121
|
-
|
|
3122
|
-
|
|
3123
|
-
|
|
3124
|
-
|
|
3125
|
-
|
|
3126
|
-
)
|
|
3186
|
+
style: { textAlign: F.align ?? "left" },
|
|
3187
|
+
onClick: () => h == null ? void 0 : h(F),
|
|
3188
|
+
children: F.label
|
|
3189
|
+
},
|
|
3190
|
+
`${A}-${ie}`
|
|
3191
|
+
))) ?? [];
|
|
3127
3192
|
}
|
|
3128
|
-
)
|
|
3129
|
-
|
|
3130
|
-
ws,
|
|
3131
|
-
{
|
|
3132
|
-
column: y,
|
|
3133
|
-
idx: E,
|
|
3134
|
-
onColumnClick: v
|
|
3135
|
-
},
|
|
3136
|
-
E
|
|
3137
|
-
)),
|
|
3138
|
-
l.length > 0 && /* @__PURE__ */ o.jsx(
|
|
3139
|
-
"th",
|
|
3140
|
-
{
|
|
3141
|
-
style: {
|
|
3142
|
-
width: "200px"
|
|
3143
|
-
},
|
|
3144
|
-
align: "right"
|
|
3145
|
-
},
|
|
3146
|
-
"actions"
|
|
3147
|
-
)
|
|
3148
|
-
] }) }),
|
|
3193
|
+
) })
|
|
3194
|
+
] }),
|
|
3149
3195
|
/* @__PURE__ */ o.jsxs("tbody", { children: [
|
|
3150
3196
|
d ? /* @__PURE__ */ o.jsx("tr", { children: /* @__PURE__ */ o.jsx(
|
|
3151
3197
|
"td",
|
|
@@ -3155,39 +3201,39 @@ function Yl(e) {
|
|
|
3155
3201
|
children: /* @__PURE__ */ o.jsx("div", { className: "mt-3", children: /* @__PURE__ */ o.jsx(pa, { display: d }) })
|
|
3156
3202
|
}
|
|
3157
3203
|
) }) : /* @__PURE__ */ o.jsx(o.Fragment, {}),
|
|
3158
|
-
!d && s.map((
|
|
3204
|
+
!d && s.map((T, A) => /* @__PURE__ */ o.jsxs("tr", { onClick: (E) => P == null ? void 0 : P(E, T), children: [
|
|
3159
3205
|
p && /* @__PURE__ */ o.jsx("td", { className: "select-cell", style: { textAlign: "center" }, children: /* @__PURE__ */ o.jsx(
|
|
3160
3206
|
wr,
|
|
3161
3207
|
{
|
|
3162
|
-
id: `select-row-${
|
|
3163
|
-
name: `select-row-${
|
|
3208
|
+
id: `select-row-${A}`,
|
|
3209
|
+
name: `select-row-${A}`,
|
|
3164
3210
|
type: Be.CHECKBOX,
|
|
3165
3211
|
disabled: j !== void 0 && S.size >= j && !S.has(
|
|
3166
|
-
|
|
3212
|
+
y ? y(T) : T.id ?? T
|
|
3167
3213
|
),
|
|
3168
3214
|
checked: S.has(
|
|
3169
|
-
|
|
3215
|
+
y ? y(T) : T.id ?? T
|
|
3170
3216
|
),
|
|
3171
|
-
onChange: (
|
|
3217
|
+
onChange: (E) => V(E, T)
|
|
3172
3218
|
}
|
|
3173
3219
|
) }),
|
|
3174
|
-
|
|
3175
|
-
l.length > 0 && /* @__PURE__ */ o.jsx("td", { align: "right", children: /* @__PURE__ */ o.jsx("div", { className: "d-flex align-items-center justify-content-end", children: l.map((
|
|
3220
|
+
L.map((E, F) => /* @__PURE__ */ o.jsx(Ds, { column: E, idx: F, row: T }, F)),
|
|
3221
|
+
l.length > 0 && /* @__PURE__ */ o.jsx("td", { align: "right", children: /* @__PURE__ */ o.jsx("div", { className: "d-flex align-items-center justify-content-end", children: l.map((E, F) => /* @__PURE__ */ o.jsx(
|
|
3176
3222
|
xs,
|
|
3177
3223
|
{
|
|
3178
|
-
action:
|
|
3179
|
-
row:
|
|
3180
|
-
index:
|
|
3224
|
+
action: E,
|
|
3225
|
+
row: T,
|
|
3226
|
+
index: F
|
|
3181
3227
|
},
|
|
3182
|
-
|
|
3228
|
+
F
|
|
3183
3229
|
)) }) })
|
|
3184
|
-
] },
|
|
3230
|
+
] }, A)),
|
|
3185
3231
|
!d && s.length === 0 && /* @__PURE__ */ o.jsx(
|
|
3186
3232
|
js,
|
|
3187
3233
|
{
|
|
3188
3234
|
columns: c,
|
|
3189
3235
|
actions: l,
|
|
3190
|
-
emptyMessage:
|
|
3236
|
+
emptyMessage: v
|
|
3191
3237
|
}
|
|
3192
3238
|
)
|
|
3193
3239
|
] })
|
|
@@ -3209,27 +3255,27 @@ function Pr() {
|
|
|
3209
3255
|
for (var e, t, r = 0, n = "", a = arguments.length; r < a; r++) (e = arguments[r]) && (t = ho(e)) && (n && (n += " "), n += t);
|
|
3210
3256
|
return n;
|
|
3211
3257
|
}
|
|
3212
|
-
const
|
|
3258
|
+
const Os = (e, t, r, n) => {
|
|
3213
3259
|
if (r === "length" || r === "prototype" || r === "arguments" || r === "caller")
|
|
3214
3260
|
return;
|
|
3215
3261
|
const a = Object.getOwnPropertyDescriptor(e, r), i = Object.getOwnPropertyDescriptor(t, r);
|
|
3216
|
-
!
|
|
3217
|
-
},
|
|
3262
|
+
!Ns(a, i) && n || Object.defineProperty(e, r, i);
|
|
3263
|
+
}, Ns = function(e, t) {
|
|
3218
3264
|
return e === void 0 || e.configurable || e.writable === t.writable && e.enumerable === t.enumerable && e.configurable === t.configurable && (e.writable || e.value === t.value);
|
|
3219
|
-
},
|
|
3265
|
+
}, Es = (e, t) => {
|
|
3220
3266
|
const r = Object.getPrototypeOf(t);
|
|
3221
3267
|
r !== Object.getPrototypeOf(e) && Object.setPrototypeOf(e, r);
|
|
3222
|
-
},
|
|
3223
|
-
${t}`,
|
|
3224
|
-
const n = r === "" ? "" : `with ${r.trim()}() `, a =
|
|
3225
|
-
Object.defineProperty(a, "name",
|
|
3226
|
-
},
|
|
3268
|
+
}, ks = (e, t) => `/* Wrapped ${e}*/
|
|
3269
|
+
${t}`, Cs = Object.getOwnPropertyDescriptor(Function.prototype, "toString"), _s = Object.getOwnPropertyDescriptor(Function.prototype.toString, "name"), Ps = (e, t, r) => {
|
|
3270
|
+
const n = r === "" ? "" : `with ${r.trim()}() `, a = ks.bind(null, n, t.toString());
|
|
3271
|
+
Object.defineProperty(a, "name", _s), Object.defineProperty(e, "toString", { ...Cs, value: a });
|
|
3272
|
+
}, Ts = (e, t, { ignoreNonConfigurable: r = !1 } = {}) => {
|
|
3227
3273
|
const { name: n } = e;
|
|
3228
3274
|
for (const a of Reflect.ownKeys(t))
|
|
3229
|
-
|
|
3230
|
-
return
|
|
3275
|
+
Os(e, t, a, r);
|
|
3276
|
+
return Es(e, t), Ps(e, t, n), e;
|
|
3231
3277
|
};
|
|
3232
|
-
var
|
|
3278
|
+
var Rs = Ts, un = { exports: {} }, As = () => {
|
|
3233
3279
|
const e = {};
|
|
3234
3280
|
return e.promise = new Promise((t, r) => {
|
|
3235
3281
|
e.resolve = t, e.reject = r;
|
|
@@ -3237,25 +3283,25 @@ var Ts = Ps, un = { exports: {} }, Rs = () => {
|
|
|
3237
3283
|
};
|
|
3238
3284
|
(function(e, t) {
|
|
3239
3285
|
var r = ar && ar.__awaiter || function(s, l, c, d) {
|
|
3240
|
-
return new (c || (c = Promise))(function(f,
|
|
3286
|
+
return new (c || (c = Promise))(function(f, h) {
|
|
3241
3287
|
function g(p) {
|
|
3242
3288
|
try {
|
|
3243
3289
|
m(d.next(p));
|
|
3244
3290
|
} catch (w) {
|
|
3245
|
-
|
|
3291
|
+
h(w);
|
|
3246
3292
|
}
|
|
3247
3293
|
}
|
|
3248
|
-
function
|
|
3294
|
+
function v(p) {
|
|
3249
3295
|
try {
|
|
3250
3296
|
m(d.throw(p));
|
|
3251
3297
|
} catch (w) {
|
|
3252
|
-
|
|
3298
|
+
h(w);
|
|
3253
3299
|
}
|
|
3254
3300
|
}
|
|
3255
3301
|
function m(p) {
|
|
3256
3302
|
p.done ? f(p.value) : new c(function(w) {
|
|
3257
3303
|
w(p.value);
|
|
3258
|
-
}).then(g,
|
|
3304
|
+
}).then(g, v);
|
|
3259
3305
|
}
|
|
3260
3306
|
m((d = d.apply(s, l || [])).next());
|
|
3261
3307
|
});
|
|
@@ -3263,10 +3309,10 @@ var Ts = Ps, un = { exports: {} }, Rs = () => {
|
|
|
3263
3309
|
return s && s.__esModule ? s : { default: s };
|
|
3264
3310
|
};
|
|
3265
3311
|
Object.defineProperty(t, "__esModule", { value: !0 });
|
|
3266
|
-
const a = n(
|
|
3312
|
+
const a = n(As);
|
|
3267
3313
|
function i(s, l = "maxAge") {
|
|
3268
3314
|
let c, d, f;
|
|
3269
|
-
const
|
|
3315
|
+
const h = () => r(this, void 0, void 0, function* () {
|
|
3270
3316
|
if (c !== void 0)
|
|
3271
3317
|
return;
|
|
3272
3318
|
const m = (p) => r(this, void 0, void 0, function* () {
|
|
@@ -3288,18 +3334,18 @@ var Ts = Ps, un = { exports: {} }, Rs = () => {
|
|
|
3288
3334
|
c = void 0;
|
|
3289
3335
|
}), g = () => {
|
|
3290
3336
|
c = void 0, d !== void 0 && (clearTimeout(d), d = void 0), f !== void 0 && (f.reject(void 0), f = void 0);
|
|
3291
|
-
},
|
|
3337
|
+
}, v = s.set.bind(s);
|
|
3292
3338
|
return s.set = (m, p) => {
|
|
3293
3339
|
s.has(m) && s.delete(m);
|
|
3294
|
-
const w =
|
|
3295
|
-
return c && c === m && g(),
|
|
3296
|
-
},
|
|
3340
|
+
const w = v(m, p);
|
|
3341
|
+
return c && c === m && g(), h(), w;
|
|
3342
|
+
}, h(), s;
|
|
3297
3343
|
}
|
|
3298
3344
|
t.default = i, e.exports = i, e.exports.default = i;
|
|
3299
3345
|
})(un, un.exports);
|
|
3300
|
-
var
|
|
3301
|
-
const
|
|
3302
|
-
typeof n == "number" &&
|
|
3346
|
+
var Is = un.exports;
|
|
3347
|
+
const $s = Rs, Ls = Is, Xr = /* @__PURE__ */ new WeakMap(), vo = /* @__PURE__ */ new WeakMap(), jr = (e, { cacheKey: t, cache: r = /* @__PURE__ */ new Map(), maxAge: n } = {}) => {
|
|
3348
|
+
typeof n == "number" && Ls(r);
|
|
3303
3349
|
const a = function(...i) {
|
|
3304
3350
|
const s = t ? t(i) : i[0], l = r.get(s);
|
|
3305
3351
|
if (l)
|
|
@@ -3310,7 +3356,7 @@ const Is = Ts, $s = As, Xr = /* @__PURE__ */ new WeakMap(), vo = /* @__PURE__ */
|
|
|
3310
3356
|
maxAge: n ? Date.now() + n : Number.POSITIVE_INFINITY
|
|
3311
3357
|
}), c;
|
|
3312
3358
|
};
|
|
3313
|
-
return
|
|
3359
|
+
return $s(a, e, {
|
|
3314
3360
|
ignoreNonConfigurable: !0
|
|
3315
3361
|
}), vo.set(a, r), a;
|
|
3316
3362
|
};
|
|
@@ -3334,15 +3380,15 @@ jr.clear = (e) => {
|
|
|
3334
3380
|
throw new TypeError("The cache Map can't be cleared!");
|
|
3335
3381
|
t.clear();
|
|
3336
3382
|
};
|
|
3337
|
-
var
|
|
3338
|
-
const mo = /* @__PURE__ */ Ho(
|
|
3339
|
-
function
|
|
3383
|
+
var Ms = jr;
|
|
3384
|
+
const mo = /* @__PURE__ */ Ho(Ms);
|
|
3385
|
+
function Fs(e) {
|
|
3340
3386
|
return typeof e == "string";
|
|
3341
3387
|
}
|
|
3342
|
-
function
|
|
3388
|
+
function Ws(e, t, r) {
|
|
3343
3389
|
return r.indexOf(e) === t;
|
|
3344
3390
|
}
|
|
3345
|
-
function
|
|
3391
|
+
function Vs(e) {
|
|
3346
3392
|
return e.toLowerCase() === e;
|
|
3347
3393
|
}
|
|
3348
3394
|
function ga(e) {
|
|
@@ -3361,28 +3407,28 @@ function dn(e) {
|
|
|
3361
3407
|
var n = e.split("@")[0], r = n === void 0 ? "" : n;
|
|
3362
3408
|
return dn(r);
|
|
3363
3409
|
}
|
|
3364
|
-
if (e.indexOf("-") === -1 || !
|
|
3410
|
+
if (e.indexOf("-") === -1 || !Vs(e))
|
|
3365
3411
|
return e;
|
|
3366
3412
|
var a = e.split("-"), i = a[0], s = a[1], l = s === void 0 ? "" : s;
|
|
3367
3413
|
return "".concat(i, "-").concat(l.toUpperCase());
|
|
3368
3414
|
}
|
|
3369
|
-
function
|
|
3415
|
+
function Ys(e) {
|
|
3370
3416
|
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 = [];
|
|
3371
3417
|
if (typeof navigator < "u") {
|
|
3372
3418
|
for (var l = navigator.languages || [], c = [], d = 0, f = l; d < f.length; d++) {
|
|
3373
|
-
var
|
|
3374
|
-
c = c.concat(ga(
|
|
3419
|
+
var h = f[d];
|
|
3420
|
+
c = c.concat(ga(h));
|
|
3375
3421
|
}
|
|
3376
|
-
var g = navigator.language,
|
|
3377
|
-
s = s.concat(c,
|
|
3422
|
+
var g = navigator.language, v = g && ga(g);
|
|
3423
|
+
s = s.concat(c, v);
|
|
3378
3424
|
}
|
|
3379
|
-
return n && s.push(i), s.filter(
|
|
3425
|
+
return n && s.push(i), s.filter(Fs).map(dn).filter(Ws);
|
|
3380
3426
|
}
|
|
3381
|
-
var
|
|
3382
|
-
function
|
|
3383
|
-
return
|
|
3427
|
+
var Bs = mo(Ys, { cacheKey: JSON.stringify });
|
|
3428
|
+
function Us(e) {
|
|
3429
|
+
return Bs(e)[0] || null;
|
|
3384
3430
|
}
|
|
3385
|
-
var po = mo(
|
|
3431
|
+
var po = mo(Us, { cacheKey: JSON.stringify });
|
|
3386
3432
|
function Fe(e, t, r) {
|
|
3387
3433
|
return function(a, i) {
|
|
3388
3434
|
i === void 0 && (i = r);
|
|
@@ -3400,7 +3446,7 @@ function Ut(e, t) {
|
|
|
3400
3446
|
return [e(n), t(n)];
|
|
3401
3447
|
};
|
|
3402
3448
|
}
|
|
3403
|
-
function
|
|
3449
|
+
function Z(e) {
|
|
3404
3450
|
if (e instanceof Date)
|
|
3405
3451
|
return e.getFullYear();
|
|
3406
3452
|
if (typeof e == "number")
|
|
@@ -3421,53 +3467,53 @@ function Tr(e) {
|
|
|
3421
3467
|
throw new Error("Failed to get year from date: ".concat(e, "."));
|
|
3422
3468
|
}
|
|
3423
3469
|
function St(e) {
|
|
3424
|
-
var t =
|
|
3470
|
+
var t = Z(e), r = t + (-t + 1) % 100, n = /* @__PURE__ */ new Date();
|
|
3425
3471
|
return n.setFullYear(r, 0, 1), n.setHours(0, 0, 0, 0), n;
|
|
3426
3472
|
}
|
|
3427
|
-
var
|
|
3473
|
+
var zs = Fe(Z, St, -100), go = Fe(Z, St, 100), In = Bt(go), Gs = Fe(Z, In, -100), yo = Ut(St, In);
|
|
3428
3474
|
function Ge(e) {
|
|
3429
|
-
var t =
|
|
3475
|
+
var t = Z(e), r = t + (-t + 1) % 10, n = /* @__PURE__ */ new Date();
|
|
3430
3476
|
return n.setFullYear(r, 0, 1), n.setHours(0, 0, 0, 0), n;
|
|
3431
3477
|
}
|
|
3432
|
-
var bo = Fe(
|
|
3478
|
+
var bo = Fe(Z, Ge, -10), $n = Fe(Z, Ge, 10), Rr = Bt($n), xo = Fe(Z, Rr, -10), wo = Ut(Ge, Rr);
|
|
3433
3479
|
function Dt(e) {
|
|
3434
|
-
var t =
|
|
3480
|
+
var t = Z(e), r = /* @__PURE__ */ new Date();
|
|
3435
3481
|
return r.setFullYear(t, 0, 1), r.setHours(0, 0, 0, 0), r;
|
|
3436
3482
|
}
|
|
3437
|
-
var jo = Fe(
|
|
3483
|
+
var jo = Fe(Z, Dt, -1), Ln = Fe(Z, Dt, 1), Ar = Bt(Ln), So = Fe(Z, Ar, -1), Hs = Ut(Dt, Ar);
|
|
3438
3484
|
function Mn(e, t) {
|
|
3439
3485
|
return function(n, a) {
|
|
3440
3486
|
a === void 0 && (a = t);
|
|
3441
|
-
var i =
|
|
3487
|
+
var i = Z(n), s = ze(n) + a, l = /* @__PURE__ */ new Date();
|
|
3442
3488
|
return l.setFullYear(i, s, 1), l.setHours(0, 0, 0, 0), e(l);
|
|
3443
3489
|
};
|
|
3444
3490
|
}
|
|
3445
3491
|
function at(e) {
|
|
3446
|
-
var t =
|
|
3492
|
+
var t = Z(e), r = ze(e), n = /* @__PURE__ */ new Date();
|
|
3447
3493
|
return n.setFullYear(t, r, 1), n.setHours(0, 0, 0, 0), n;
|
|
3448
3494
|
}
|
|
3449
|
-
var Do = Mn(at, -1), Fn = Mn(at, 1), zt = Bt(Fn), Oo = Mn(zt, -1),
|
|
3450
|
-
function
|
|
3495
|
+
var Do = Mn(at, -1), Fn = Mn(at, 1), zt = Bt(Fn), Oo = Mn(zt, -1), qs = Ut(at, zt);
|
|
3496
|
+
function Xs(e, t) {
|
|
3451
3497
|
return function(n, a) {
|
|
3452
3498
|
a === void 0 && (a = t);
|
|
3453
|
-
var i =
|
|
3499
|
+
var i = Z(n), s = ze(n), l = Tr(n) + a, c = /* @__PURE__ */ new Date();
|
|
3454
3500
|
return c.setFullYear(i, s, l), c.setHours(0, 0, 0, 0), e(c);
|
|
3455
3501
|
};
|
|
3456
3502
|
}
|
|
3457
3503
|
function Gt(e) {
|
|
3458
|
-
var t =
|
|
3504
|
+
var t = Z(e), r = ze(e), n = Tr(e), a = /* @__PURE__ */ new Date();
|
|
3459
3505
|
return a.setFullYear(t, r, n), a.setHours(0, 0, 0, 0), a;
|
|
3460
3506
|
}
|
|
3461
|
-
var
|
|
3507
|
+
var Ks = Xs(Gt, 1), Wn = Bt(Ks), Js = Ut(Gt, Wn);
|
|
3462
3508
|
function No(e) {
|
|
3463
3509
|
return Tr(zt(e));
|
|
3464
3510
|
}
|
|
3465
|
-
var
|
|
3511
|
+
var fe = {
|
|
3466
3512
|
GREGORY: "gregory",
|
|
3467
3513
|
HEBREW: "hebrew",
|
|
3468
3514
|
ISLAMIC: "islamic",
|
|
3469
3515
|
ISO_8601: "iso8601"
|
|
3470
|
-
},
|
|
3516
|
+
}, Qs = {
|
|
3471
3517
|
gregory: [
|
|
3472
3518
|
"en-CA",
|
|
3473
3519
|
"en-US",
|
|
@@ -3513,7 +3559,7 @@ var de = {
|
|
|
3513
3559
|
"ps-AR"
|
|
3514
3560
|
]
|
|
3515
3561
|
}, Vn = [0, 1, 2, 3, 4, 5, 6], Kr = /* @__PURE__ */ new Map();
|
|
3516
|
-
function
|
|
3562
|
+
function Zs(e) {
|
|
3517
3563
|
return function(r, n) {
|
|
3518
3564
|
var a = r || po();
|
|
3519
3565
|
Kr.has(a) || Kr.set(a, /* @__PURE__ */ new Map());
|
|
@@ -3521,56 +3567,56 @@ function Qs(e) {
|
|
|
3521
3567
|
return i.has(e) || i.set(e, new Intl.DateTimeFormat(a || void 0, e).format), i.get(e)(n);
|
|
3522
3568
|
};
|
|
3523
3569
|
}
|
|
3524
|
-
function
|
|
3570
|
+
function ec(e) {
|
|
3525
3571
|
var t = new Date(e);
|
|
3526
3572
|
return new Date(t.setHours(12));
|
|
3527
3573
|
}
|
|
3528
3574
|
function ot(e) {
|
|
3529
3575
|
return function(t, r) {
|
|
3530
|
-
return
|
|
3576
|
+
return Zs(e)(t, ec(r));
|
|
3531
3577
|
};
|
|
3532
3578
|
}
|
|
3533
|
-
var
|
|
3579
|
+
var tc = { day: "numeric" }, rc = {
|
|
3534
3580
|
day: "numeric",
|
|
3535
3581
|
month: "long",
|
|
3536
3582
|
year: "numeric"
|
|
3537
|
-
},
|
|
3583
|
+
}, nc = { month: "long" }, ac = {
|
|
3538
3584
|
month: "long",
|
|
3539
3585
|
year: "numeric"
|
|
3540
|
-
},
|
|
3586
|
+
}, oc = { weekday: "short" }, ic = { weekday: "long" }, sc = { year: "numeric" }, cc = ot(tc), lc = ot(rc), uc = ot(nc), Eo = ot(ac), dc = ot(oc), fc = ot(ic), Ir = ot(sc), hc = Vn[0], vc = Vn[5], ya = Vn[6];
|
|
3541
3587
|
function Vt(e, t) {
|
|
3542
|
-
t === void 0 && (t =
|
|
3588
|
+
t === void 0 && (t = fe.ISO_8601);
|
|
3543
3589
|
var r = e.getDay();
|
|
3544
3590
|
switch (t) {
|
|
3545
|
-
case
|
|
3591
|
+
case fe.ISO_8601:
|
|
3546
3592
|
return (r + 6) % 7;
|
|
3547
|
-
case
|
|
3593
|
+
case fe.ISLAMIC:
|
|
3548
3594
|
return (r + 1) % 7;
|
|
3549
|
-
case
|
|
3550
|
-
case
|
|
3595
|
+
case fe.HEBREW:
|
|
3596
|
+
case fe.GREGORY:
|
|
3551
3597
|
return r;
|
|
3552
3598
|
default:
|
|
3553
3599
|
throw new Error("Unsupported calendar type.");
|
|
3554
3600
|
}
|
|
3555
3601
|
}
|
|
3556
|
-
function
|
|
3602
|
+
function mc(e) {
|
|
3557
3603
|
var t = St(e);
|
|
3558
|
-
return
|
|
3604
|
+
return Z(t);
|
|
3559
3605
|
}
|
|
3560
|
-
function
|
|
3606
|
+
function pc(e) {
|
|
3561
3607
|
var t = Ge(e);
|
|
3562
|
-
return
|
|
3608
|
+
return Z(t);
|
|
3563
3609
|
}
|
|
3564
3610
|
function fn(e, t) {
|
|
3565
|
-
t === void 0 && (t =
|
|
3566
|
-
var r =
|
|
3611
|
+
t === void 0 && (t = fe.ISO_8601);
|
|
3612
|
+
var r = Z(e), n = ze(e), a = e.getDate() - Vt(e, t);
|
|
3567
3613
|
return new Date(r, n, a);
|
|
3568
3614
|
}
|
|
3569
|
-
function
|
|
3570
|
-
t === void 0 && (t =
|
|
3571
|
-
var r = t ===
|
|
3615
|
+
function gc(e, t) {
|
|
3616
|
+
t === void 0 && (t = fe.ISO_8601);
|
|
3617
|
+
var r = t === fe.GREGORY ? fe.GREGORY : fe.ISO_8601, n = fn(e, t), a = Z(e) + 1, i, s;
|
|
3572
3618
|
do
|
|
3573
|
-
i = new Date(a, 0, r ===
|
|
3619
|
+
i = new Date(a, 0, r === fe.ISO_8601 ? 4 : 1), s = fn(i, t), a -= 1;
|
|
3574
3620
|
while (e < s);
|
|
3575
3621
|
return Math.round((n.getTime() - s.getTime()) / (864e5 * 7)) + 1;
|
|
3576
3622
|
}
|
|
@@ -3590,10 +3636,10 @@ function rt(e, t) {
|
|
|
3590
3636
|
throw new Error("Invalid rangeType: ".concat(e));
|
|
3591
3637
|
}
|
|
3592
3638
|
}
|
|
3593
|
-
function
|
|
3639
|
+
function yc(e, t) {
|
|
3594
3640
|
switch (e) {
|
|
3595
3641
|
case "century":
|
|
3596
|
-
return
|
|
3642
|
+
return zs(t);
|
|
3597
3643
|
case "decade":
|
|
3598
3644
|
return bo(t);
|
|
3599
3645
|
case "year":
|
|
@@ -3618,7 +3664,7 @@ function ko(e, t) {
|
|
|
3618
3664
|
throw new Error("Invalid rangeType: ".concat(e));
|
|
3619
3665
|
}
|
|
3620
3666
|
}
|
|
3621
|
-
function
|
|
3667
|
+
function bc(e, t) {
|
|
3622
3668
|
switch (e) {
|
|
3623
3669
|
case "decade":
|
|
3624
3670
|
return bo(t, -100);
|
|
@@ -3630,7 +3676,7 @@ function yc(e, t) {
|
|
|
3630
3676
|
throw new Error("Invalid rangeType: ".concat(e));
|
|
3631
3677
|
}
|
|
3632
3678
|
}
|
|
3633
|
-
function
|
|
3679
|
+
function xc(e, t) {
|
|
3634
3680
|
switch (e) {
|
|
3635
3681
|
case "decade":
|
|
3636
3682
|
return $n(t, 100);
|
|
@@ -3658,10 +3704,10 @@ function Co(e, t) {
|
|
|
3658
3704
|
throw new Error("Invalid rangeType: ".concat(e));
|
|
3659
3705
|
}
|
|
3660
3706
|
}
|
|
3661
|
-
function
|
|
3707
|
+
function wc(e, t) {
|
|
3662
3708
|
switch (e) {
|
|
3663
3709
|
case "century":
|
|
3664
|
-
return
|
|
3710
|
+
return Gs(t);
|
|
3665
3711
|
case "decade":
|
|
3666
3712
|
return xo(t);
|
|
3667
3713
|
case "year":
|
|
@@ -3672,7 +3718,7 @@ function xc(e, t) {
|
|
|
3672
3718
|
throw new Error("Invalid rangeType: ".concat(e));
|
|
3673
3719
|
}
|
|
3674
3720
|
}
|
|
3675
|
-
function
|
|
3721
|
+
function jc(e, t) {
|
|
3676
3722
|
switch (e) {
|
|
3677
3723
|
case "decade":
|
|
3678
3724
|
return xo(t, -100);
|
|
@@ -3691,16 +3737,16 @@ function ba(e, t) {
|
|
|
3691
3737
|
case "decade":
|
|
3692
3738
|
return wo(t);
|
|
3693
3739
|
case "year":
|
|
3694
|
-
return Gs(t);
|
|
3695
|
-
case "month":
|
|
3696
3740
|
return Hs(t);
|
|
3741
|
+
case "month":
|
|
3742
|
+
return qs(t);
|
|
3697
3743
|
case "day":
|
|
3698
|
-
return
|
|
3744
|
+
return Js(t);
|
|
3699
3745
|
default:
|
|
3700
3746
|
throw new Error("Invalid rangeType: ".concat(e));
|
|
3701
3747
|
}
|
|
3702
3748
|
}
|
|
3703
|
-
function
|
|
3749
|
+
function Sc(e, t, r) {
|
|
3704
3750
|
var n = [t, r].sort(function(a, i) {
|
|
3705
3751
|
return a.getTime() - i.getTime();
|
|
3706
3752
|
});
|
|
@@ -3711,81 +3757,81 @@ function _o(e, t, r) {
|
|
|
3711
3757
|
return (t || Ir)(e, n);
|
|
3712
3758
|
}).join(" – ");
|
|
3713
3759
|
}
|
|
3714
|
-
function
|
|
3760
|
+
function Dc(e, t, r) {
|
|
3715
3761
|
return _o(e, t, yo(r));
|
|
3716
3762
|
}
|
|
3717
3763
|
function Po(e, t, r) {
|
|
3718
3764
|
return _o(e, t, wo(r));
|
|
3719
3765
|
}
|
|
3720
|
-
function
|
|
3766
|
+
function Oc(e) {
|
|
3721
3767
|
return e.getDay() === (/* @__PURE__ */ new Date()).getDay();
|
|
3722
3768
|
}
|
|
3723
3769
|
function To(e, t) {
|
|
3724
|
-
t === void 0 && (t =
|
|
3770
|
+
t === void 0 && (t = fe.ISO_8601);
|
|
3725
3771
|
var r = e.getDay();
|
|
3726
3772
|
switch (t) {
|
|
3727
|
-
case
|
|
3728
|
-
case
|
|
3729
|
-
return r ===
|
|
3730
|
-
case
|
|
3731
|
-
case
|
|
3732
|
-
return r === ya || r ===
|
|
3773
|
+
case fe.ISLAMIC:
|
|
3774
|
+
case fe.HEBREW:
|
|
3775
|
+
return r === vc || r === ya;
|
|
3776
|
+
case fe.ISO_8601:
|
|
3777
|
+
case fe.GREGORY:
|
|
3778
|
+
return r === ya || r === hc;
|
|
3733
3779
|
default:
|
|
3734
3780
|
throw new Error("Unsupported calendar type.");
|
|
3735
3781
|
}
|
|
3736
3782
|
}
|
|
3737
3783
|
var Pe = "react-calendar__navigation";
|
|
3738
|
-
function
|
|
3739
|
-
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, l = e.locale, c = e.maxDate, d = e.minDate, f = e.navigationAriaLabel,
|
|
3740
|
-
if (
|
|
3784
|
+
function Nc(e) {
|
|
3785
|
+
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, l = e.locale, c = e.maxDate, d = e.minDate, f = e.navigationAriaLabel, h = f === void 0 ? "" : f, g = e.navigationAriaLive, v = e.navigationLabel, m = e.next2AriaLabel, p = m === void 0 ? "" : m, w = e.next2Label, j = w === void 0 ? "»" : w, y = e.nextAriaLabel, D = y === void 0 ? "" : y, S = e.nextLabel, R = S === void 0 ? "›" : S, _ = e.prev2AriaLabel, P = _ === void 0 ? "" : _, V = e.prev2Label, b = V === void 0 ? "«" : V, L = e.prevAriaLabel, T = L === void 0 ? "" : L, A = e.prevLabel, E = A === void 0 ? "‹" : A, F = e.setActiveStartDate, ie = e.showDoubleView, K = e.view, we = e.views, Ae = we.indexOf(K) > 0, te = K !== "century", J = yc(K, t), le = te ? bc(K, t) : void 0, ee = ko(K, t), Se = te ? xc(K, t) : void 0, Ee = function() {
|
|
3786
|
+
if (J.getFullYear() < 0)
|
|
3741
3787
|
return !0;
|
|
3742
|
-
var
|
|
3743
|
-
return d && d >=
|
|
3744
|
-
}(), ke =
|
|
3745
|
-
if (
|
|
3788
|
+
var re = wc(K, t);
|
|
3789
|
+
return d && d >= re;
|
|
3790
|
+
}(), ke = te && function() {
|
|
3791
|
+
if (le.getFullYear() < 0)
|
|
3746
3792
|
return !0;
|
|
3747
|
-
var
|
|
3748
|
-
return d && d >=
|
|
3749
|
-
}(), me = c && c <
|
|
3750
|
-
function
|
|
3751
|
-
|
|
3793
|
+
var re = jc(K, t);
|
|
3794
|
+
return d && d >= re;
|
|
3795
|
+
}(), me = c && c < ee, pe = te && c && c < Se;
|
|
3796
|
+
function ue() {
|
|
3797
|
+
F(J, "prev");
|
|
3752
3798
|
}
|
|
3753
3799
|
function ne() {
|
|
3754
|
-
|
|
3800
|
+
F(le, "prev2");
|
|
3755
3801
|
}
|
|
3756
3802
|
function De() {
|
|
3757
|
-
|
|
3803
|
+
F(ee, "next");
|
|
3758
3804
|
}
|
|
3759
3805
|
function Ce() {
|
|
3760
|
-
|
|
3806
|
+
F(Se, "next2");
|
|
3761
3807
|
}
|
|
3762
|
-
function
|
|
3808
|
+
function he(re) {
|
|
3763
3809
|
var _e = function() {
|
|
3764
|
-
switch (
|
|
3810
|
+
switch (K) {
|
|
3765
3811
|
case "century":
|
|
3766
|
-
return
|
|
3812
|
+
return Dc(l, s, re);
|
|
3767
3813
|
case "decade":
|
|
3768
|
-
return Po(l, s,
|
|
3814
|
+
return Po(l, s, re);
|
|
3769
3815
|
case "year":
|
|
3770
|
-
return s(l,
|
|
3816
|
+
return s(l, re);
|
|
3771
3817
|
case "month":
|
|
3772
|
-
return a(l,
|
|
3818
|
+
return a(l, re);
|
|
3773
3819
|
default:
|
|
3774
|
-
throw new Error("Invalid view: ".concat(
|
|
3820
|
+
throw new Error("Invalid view: ".concat(K, "."));
|
|
3775
3821
|
}
|
|
3776
3822
|
}();
|
|
3777
|
-
return
|
|
3778
|
-
date:
|
|
3823
|
+
return v ? v({
|
|
3824
|
+
date: re,
|
|
3779
3825
|
label: _e,
|
|
3780
3826
|
locale: l || po() || void 0,
|
|
3781
|
-
view:
|
|
3827
|
+
view: K
|
|
3782
3828
|
}) : _e;
|
|
3783
3829
|
}
|
|
3784
3830
|
function Ot() {
|
|
3785
|
-
var
|
|
3786
|
-
return o.jsxs("button", { "aria-label":
|
|
3831
|
+
var re = "".concat(Pe, "__label");
|
|
3832
|
+
return o.jsxs("button", { "aria-label": h, "aria-live": g, className: re, disabled: !Ae, onClick: r, style: { flexGrow: 1 }, type: "button", children: [o.jsx("span", { className: "".concat(re, "__labelText ").concat(re, "__labelText--from"), children: he(t) }), ie ? o.jsxs(o.Fragment, { children: [o.jsx("span", { className: "".concat(re, "__divider"), children: " – " }), o.jsx("span", { className: "".concat(re, "__labelText ").concat(re, "__labelText--to"), children: he(ee) })] }) : null] });
|
|
3787
3833
|
}
|
|
3788
|
-
return o.jsxs("div", { className: Pe, children: [
|
|
3834
|
+
return o.jsxs("div", { className: Pe, children: [b !== null && te ? o.jsx("button", { "aria-label": P, className: "".concat(Pe, "__arrow ").concat(Pe, "__prev2-button"), disabled: ke, onClick: ne, type: "button", children: b }) : null, E !== null && o.jsx("button", { "aria-label": T, className: "".concat(Pe, "__arrow ").concat(Pe, "__prev-button"), disabled: Ee, onClick: ue, type: "button", children: E }), Ot(), R !== null && o.jsx("button", { "aria-label": D, className: "".concat(Pe, "__arrow ").concat(Pe, "__next-button"), disabled: me, onClick: De, type: "button", children: R }), j !== null && te ? o.jsx("button", { "aria-label": p, className: "".concat(Pe, "__arrow ").concat(Pe, "__next2-button"), disabled: pe, onClick: Ce, type: "button", children: j }) : null] });
|
|
3789
3835
|
}
|
|
3790
3836
|
var ft = function() {
|
|
3791
3837
|
return ft = Object.assign || function(e) {
|
|
@@ -3795,7 +3841,7 @@ var ft = function() {
|
|
|
3795
3841
|
}
|
|
3796
3842
|
return e;
|
|
3797
3843
|
}, ft.apply(this, arguments);
|
|
3798
|
-
},
|
|
3844
|
+
}, Ec = function(e, t) {
|
|
3799
3845
|
var r = {};
|
|
3800
3846
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3801
3847
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -3807,27 +3853,27 @@ function xa(e) {
|
|
|
3807
3853
|
return "".concat(e, "%");
|
|
3808
3854
|
}
|
|
3809
3855
|
function Yn(e) {
|
|
3810
|
-
var t = e.children, r = e.className, n = e.count, a = e.direction, i = e.offset, s = e.style, l = e.wrap, c =
|
|
3856
|
+
var t = e.children, r = e.className, n = e.count, a = e.direction, i = e.offset, s = e.style, l = e.wrap, c = Ec(e, ["children", "className", "count", "direction", "offset", "style", "wrap"]);
|
|
3811
3857
|
return o.jsx("div", ft({ className: r, style: ft({ display: "flex", flexDirection: a, flexWrap: l ? "wrap" : "nowrap" }, s) }, c, { children: zo.map(t, function(d, f) {
|
|
3812
|
-
var
|
|
3858
|
+
var h = i && f === 0 ? xa(100 * i / n) : null;
|
|
3813
3859
|
return Go(d, ft(ft({}, d.props), { style: {
|
|
3814
3860
|
flexBasis: xa(100 / n),
|
|
3815
3861
|
flexShrink: 0,
|
|
3816
3862
|
flexGrow: 0,
|
|
3817
3863
|
overflow: "hidden",
|
|
3818
|
-
marginLeft:
|
|
3819
|
-
marginInlineStart:
|
|
3864
|
+
marginLeft: h,
|
|
3865
|
+
marginInlineStart: h,
|
|
3820
3866
|
marginInlineEnd: 0
|
|
3821
3867
|
} }));
|
|
3822
3868
|
}) }));
|
|
3823
3869
|
}
|
|
3824
|
-
function
|
|
3870
|
+
function kc(e, t, r) {
|
|
3825
3871
|
return t && t > e ? t : r && r < e ? r : e;
|
|
3826
3872
|
}
|
|
3827
3873
|
function Yt(e, t) {
|
|
3828
3874
|
return t[0] <= e && t[1] >= e;
|
|
3829
3875
|
}
|
|
3830
|
-
function
|
|
3876
|
+
function Cc(e, t) {
|
|
3831
3877
|
return e[0] <= t[0] && e[1] >= t[1];
|
|
3832
3878
|
}
|
|
3833
3879
|
function Ro(e, t) {
|
|
@@ -3842,10 +3888,10 @@ function wa(e, t, r) {
|
|
|
3842
3888
|
}
|
|
3843
3889
|
return a;
|
|
3844
3890
|
}
|
|
3845
|
-
function
|
|
3891
|
+
function _c(e) {
|
|
3846
3892
|
return Array.isArray(e) ? e[0] !== null && e[1] !== null : e !== null;
|
|
3847
3893
|
}
|
|
3848
|
-
function
|
|
3894
|
+
function Pc(e) {
|
|
3849
3895
|
if (!e)
|
|
3850
3896
|
throw new Error("args is required");
|
|
3851
3897
|
var t = e.value, r = e.date, n = e.hover, a = "react-calendar__tile", i = [a];
|
|
@@ -3854,40 +3900,40 @@ function _c(e) {
|
|
|
3854
3900
|
var s = /* @__PURE__ */ new Date(), l = function() {
|
|
3855
3901
|
if (Array.isArray(r))
|
|
3856
3902
|
return r;
|
|
3857
|
-
var
|
|
3858
|
-
if (!
|
|
3903
|
+
var v = e.dateType;
|
|
3904
|
+
if (!v)
|
|
3859
3905
|
throw new Error("dateType is required when date is not an array of two dates");
|
|
3860
|
-
return ba(
|
|
3906
|
+
return ba(v, r);
|
|
3861
3907
|
}();
|
|
3862
|
-
if (Yt(s, l) && i.push("".concat(a, "--now")), !t || !
|
|
3908
|
+
if (Yt(s, l) && i.push("".concat(a, "--now")), !t || !_c(t))
|
|
3863
3909
|
return i;
|
|
3864
3910
|
var c = function() {
|
|
3865
3911
|
if (Array.isArray(t))
|
|
3866
3912
|
return t;
|
|
3867
|
-
var
|
|
3868
|
-
if (!
|
|
3913
|
+
var v = e.valueType;
|
|
3914
|
+
if (!v)
|
|
3869
3915
|
throw new Error("valueType is required when value is not an array of two dates");
|
|
3870
|
-
return ba(
|
|
3916
|
+
return ba(v, t);
|
|
3871
3917
|
}();
|
|
3872
|
-
|
|
3918
|
+
Cc(c, l) ? i.push("".concat(a, "--active")) : Ro(c, l) && i.push("".concat(a, "--hasActive"));
|
|
3873
3919
|
var d = wa(c, l, "".concat(a, "--range"));
|
|
3874
3920
|
i.push.apply(i, d);
|
|
3875
3921
|
var f = Array.isArray(t) ? t : [t];
|
|
3876
3922
|
if (n && f.length === 1) {
|
|
3877
|
-
var
|
|
3923
|
+
var h = n > c[0] ? [c[0], n] : [n, c[0]], g = wa(h, l, "".concat(a, "--hover"));
|
|
3878
3924
|
i.push.apply(i, g);
|
|
3879
3925
|
}
|
|
3880
3926
|
return i;
|
|
3881
3927
|
}
|
|
3882
3928
|
function $r(e) {
|
|
3883
|
-
for (var t = e.className, r = e.count, n = r === void 0 ? 3 : r, a = e.dateTransform, i = e.dateType, s = e.end, l = e.hover, c = e.offset, d = e.renderTile, f = e.start,
|
|
3929
|
+
for (var t = e.className, r = e.count, n = r === void 0 ? 3 : r, a = e.dateTransform, i = e.dateType, s = e.end, l = e.hover, c = e.offset, d = e.renderTile, f = e.start, h = e.step, g = h === void 0 ? 1 : h, v = e.value, m = e.valueType, p = [], w = f; w <= s; w += g) {
|
|
3884
3930
|
var j = a(w);
|
|
3885
3931
|
p.push(d({
|
|
3886
|
-
classes:
|
|
3932
|
+
classes: Pc({
|
|
3887
3933
|
date: j,
|
|
3888
3934
|
dateType: i,
|
|
3889
3935
|
hover: l,
|
|
3890
|
-
value:
|
|
3936
|
+
value: v,
|
|
3891
3937
|
valueType: m
|
|
3892
3938
|
}),
|
|
3893
3939
|
date: j
|
|
@@ -3896,20 +3942,20 @@ function $r(e) {
|
|
|
3896
3942
|
return o.jsx(Yn, { className: t, count: n, offset: c, wrap: !0, children: p });
|
|
3897
3943
|
}
|
|
3898
3944
|
function Lr(e) {
|
|
3899
|
-
var t = e.activeStartDate, r = e.children, n = e.classes, a = e.date, i = e.formatAbbr, s = e.locale, l = e.maxDate, c = e.maxDateTransform, d = e.minDate, f = e.minDateTransform,
|
|
3945
|
+
var t = e.activeStartDate, r = e.children, n = e.classes, a = e.date, i = e.formatAbbr, s = e.locale, l = e.maxDate, c = e.maxDateTransform, d = e.minDate, f = e.minDateTransform, h = e.onClick, g = e.onMouseOver, v = e.style, m = e.tileClassName, p = e.tileContent, w = e.tileDisabled, j = e.view, y = Le(function() {
|
|
3900
3946
|
var S = { activeStartDate: t, date: a, view: j };
|
|
3901
3947
|
return typeof m == "function" ? m(S) : m;
|
|
3902
3948
|
}, [t, a, m, j]), D = Le(function() {
|
|
3903
3949
|
var S = { activeStartDate: t, date: a, view: j };
|
|
3904
3950
|
return typeof p == "function" ? p(S) : p;
|
|
3905
3951
|
}, [t, a, p, j]);
|
|
3906
|
-
return o.jsxs("button", { className: Pr(n,
|
|
3907
|
-
return
|
|
3952
|
+
return o.jsxs("button", { className: Pr(n, y), disabled: d && f(d) > a || l && c(l) < a || (w == null ? void 0 : w({ activeStartDate: t, date: a, view: j })), onClick: h ? function(S) {
|
|
3953
|
+
return h(a, S);
|
|
3908
3954
|
} : void 0, onFocus: g ? function() {
|
|
3909
3955
|
return g(a);
|
|
3910
3956
|
} : void 0, onMouseOver: g ? function() {
|
|
3911
3957
|
return g(a);
|
|
3912
|
-
} : void 0, style:
|
|
3958
|
+
} : void 0, style: v, type: "button", children: [i ? o.jsx("abbr", { "aria-label": i(s, a), children: r }) : r, D] });
|
|
3913
3959
|
}
|
|
3914
3960
|
var hn = function() {
|
|
3915
3961
|
return hn = Object.assign || function(e) {
|
|
@@ -3919,7 +3965,7 @@ var hn = function() {
|
|
|
3919
3965
|
}
|
|
3920
3966
|
return e;
|
|
3921
3967
|
}, hn.apply(this, arguments);
|
|
3922
|
-
},
|
|
3968
|
+
}, Tc = function(e, t) {
|
|
3923
3969
|
var r = {};
|
|
3924
3970
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3925
3971
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -3927,8 +3973,8 @@ var hn = function() {
|
|
|
3927
3973
|
t.indexOf(n[a]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[a]) && (r[n[a]] = e[n[a]]);
|
|
3928
3974
|
return r;
|
|
3929
3975
|
}, ja = "react-calendar__century-view__decades__decade";
|
|
3930
|
-
function
|
|
3931
|
-
var t = e.classes, r = t === void 0 ? [] : t, n = e.currentCentury, a = e.formatYear, i = a === void 0 ? Ir : a, s =
|
|
3976
|
+
function Rc(e) {
|
|
3977
|
+
var t = e.classes, r = t === void 0 ? [] : t, n = e.currentCentury, a = e.formatYear, i = a === void 0 ? Ir : a, s = Tc(e, ["classes", "currentCentury", "formatYear"]), l = s.date, c = s.locale, d = [];
|
|
3932
3978
|
return r && d.push.apply(d, r), d.push(ja), St(l).getFullYear() !== n && d.push("".concat(ja, "--neighboringCentury")), o.jsx(Lr, hn({}, s, { classes: d, maxDateTransform: Rr, minDateTransform: Ge, view: "century", children: Po(c, i, l) }));
|
|
3933
3979
|
}
|
|
3934
3980
|
var vn = function() {
|
|
@@ -3947,11 +3993,11 @@ var vn = function() {
|
|
|
3947
3993
|
t.indexOf(n[a]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[a]) && (r[n[a]] = e[n[a]]);
|
|
3948
3994
|
return r;
|
|
3949
3995
|
};
|
|
3950
|
-
function
|
|
3951
|
-
var t = e.activeStartDate, r = e.hover, n = e.showNeighboringCentury, a = e.value, i = e.valueType, s = Sa(e, ["activeStartDate", "hover", "showNeighboringCentury", "value", "valueType"]), l =
|
|
3996
|
+
function Ac(e) {
|
|
3997
|
+
var t = e.activeStartDate, r = e.hover, n = e.showNeighboringCentury, a = e.value, i = e.valueType, s = Sa(e, ["activeStartDate", "hover", "showNeighboringCentury", "value", "valueType"]), l = mc(t), c = l + (n ? 119 : 99);
|
|
3952
3998
|
return o.jsx($r, { className: "react-calendar__century-view__decades", dateTransform: Ge, dateType: "decade", end: c, hover: r, renderTile: function(d) {
|
|
3953
|
-
var f = d.date,
|
|
3954
|
-
return o.jsx(
|
|
3999
|
+
var f = d.date, h = Sa(d, ["date"]);
|
|
4000
|
+
return o.jsx(Rc, vn({}, s, h, { activeStartDate: t, currentCentury: l, date: f }), f.getTime());
|
|
3955
4001
|
}, start: l, step: 10, value: a, valueType: i });
|
|
3956
4002
|
}
|
|
3957
4003
|
var mn = function() {
|
|
@@ -3963,9 +4009,9 @@ var mn = function() {
|
|
|
3963
4009
|
return e;
|
|
3964
4010
|
}, mn.apply(this, arguments);
|
|
3965
4011
|
};
|
|
3966
|
-
function
|
|
4012
|
+
function Ic(e) {
|
|
3967
4013
|
function t() {
|
|
3968
|
-
return o.jsx(
|
|
4014
|
+
return o.jsx(Ac, mn({}, e));
|
|
3969
4015
|
}
|
|
3970
4016
|
return o.jsx("div", { className: "react-calendar__century-view", children: t() });
|
|
3971
4017
|
}
|
|
@@ -3977,7 +4023,7 @@ var pn = function() {
|
|
|
3977
4023
|
}
|
|
3978
4024
|
return e;
|
|
3979
4025
|
}, pn.apply(this, arguments);
|
|
3980
|
-
},
|
|
4026
|
+
}, $c = function(e, t) {
|
|
3981
4027
|
var r = {};
|
|
3982
4028
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3983
4029
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -3985,8 +4031,8 @@ var pn = function() {
|
|
|
3985
4031
|
t.indexOf(n[a]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[a]) && (r[n[a]] = e[n[a]]);
|
|
3986
4032
|
return r;
|
|
3987
4033
|
}, Da = "react-calendar__decade-view__years__year";
|
|
3988
|
-
function
|
|
3989
|
-
var t = e.classes, r = t === void 0 ? [] : t, n = e.currentDecade, a = e.formatYear, i = a === void 0 ? Ir : a, s =
|
|
4034
|
+
function Lc(e) {
|
|
4035
|
+
var t = e.classes, r = t === void 0 ? [] : t, n = e.currentDecade, a = e.formatYear, i = a === void 0 ? Ir : a, s = $c(e, ["classes", "currentDecade", "formatYear"]), l = s.date, c = s.locale, d = [];
|
|
3990
4036
|
return r && d.push.apply(d, r), d.push(Da), Ge(l).getFullYear() !== n && d.push("".concat(Da, "--neighboringDecade")), o.jsx(Lr, pn({}, s, { classes: d, maxDateTransform: Ar, minDateTransform: Dt, view: "decade", children: i(c, l) }));
|
|
3991
4037
|
}
|
|
3992
4038
|
var gn = function() {
|
|
@@ -4005,11 +4051,11 @@ var gn = function() {
|
|
|
4005
4051
|
t.indexOf(n[a]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[a]) && (r[n[a]] = e[n[a]]);
|
|
4006
4052
|
return r;
|
|
4007
4053
|
};
|
|
4008
|
-
function
|
|
4009
|
-
var t = e.activeStartDate, r = e.hover, n = e.showNeighboringDecade, a = e.value, i = e.valueType, s = Oa(e, ["activeStartDate", "hover", "showNeighboringDecade", "value", "valueType"]), l =
|
|
4054
|
+
function Mc(e) {
|
|
4055
|
+
var t = e.activeStartDate, r = e.hover, n = e.showNeighboringDecade, a = e.value, i = e.valueType, s = Oa(e, ["activeStartDate", "hover", "showNeighboringDecade", "value", "valueType"]), l = pc(t), c = l + (n ? 11 : 9);
|
|
4010
4056
|
return o.jsx($r, { className: "react-calendar__decade-view__years", dateTransform: Dt, dateType: "year", end: c, hover: r, renderTile: function(d) {
|
|
4011
|
-
var f = d.date,
|
|
4012
|
-
return o.jsx(
|
|
4057
|
+
var f = d.date, h = Oa(d, ["date"]);
|
|
4058
|
+
return o.jsx(Lc, gn({}, s, h, { activeStartDate: t, currentDecade: l, date: f }), f.getTime());
|
|
4013
4059
|
}, start: l, value: a, valueType: i });
|
|
4014
4060
|
}
|
|
4015
4061
|
var yn = function() {
|
|
@@ -4021,9 +4067,9 @@ var yn = function() {
|
|
|
4021
4067
|
return e;
|
|
4022
4068
|
}, yn.apply(this, arguments);
|
|
4023
4069
|
};
|
|
4024
|
-
function
|
|
4070
|
+
function Fc(e) {
|
|
4025
4071
|
function t() {
|
|
4026
|
-
return o.jsx(
|
|
4072
|
+
return o.jsx(Mc, yn({}, e));
|
|
4027
4073
|
}
|
|
4028
4074
|
return o.jsx("div", { className: "react-calendar__decade-view", children: t() });
|
|
4029
4075
|
}
|
|
@@ -4035,7 +4081,7 @@ var bn = function() {
|
|
|
4035
4081
|
}
|
|
4036
4082
|
return e;
|
|
4037
4083
|
}, bn.apply(this, arguments);
|
|
4038
|
-
},
|
|
4084
|
+
}, Wc = function(e, t) {
|
|
4039
4085
|
var r = {};
|
|
4040
4086
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4041
4087
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -4046,10 +4092,10 @@ var bn = function() {
|
|
|
4046
4092
|
if (r || arguments.length === 2) for (var n = 0, a = t.length, i; n < a; n++)
|
|
4047
4093
|
(i || !(n in t)) && (i || (i = Array.prototype.slice.call(t, 0, n)), i[n] = t[n]);
|
|
4048
4094
|
return e.concat(i || Array.prototype.slice.call(t));
|
|
4049
|
-
},
|
|
4050
|
-
function
|
|
4051
|
-
var t = e.classes, r = t === void 0 ? [] : t, n = e.formatMonth, a = n === void 0 ?
|
|
4052
|
-
return o.jsx(Lr, bn({}, l, { classes: Na(Na([], r, !0), [
|
|
4095
|
+
}, Vc = "react-calendar__year-view__months__month";
|
|
4096
|
+
function Yc(e) {
|
|
4097
|
+
var t = e.classes, r = t === void 0 ? [] : t, n = e.formatMonth, a = n === void 0 ? uc : n, i = e.formatMonthYear, s = i === void 0 ? Eo : i, l = Wc(e, ["classes", "formatMonth", "formatMonthYear"]), c = l.date, d = l.locale;
|
|
4098
|
+
return o.jsx(Lr, bn({}, l, { classes: Na(Na([], r, !0), [Vc], !1), formatAbbr: s, maxDateTransform: zt, minDateTransform: at, view: "year", children: a(d, c) }));
|
|
4053
4099
|
}
|
|
4054
4100
|
var xn = function() {
|
|
4055
4101
|
return xn = Object.assign || function(e) {
|
|
@@ -4067,14 +4113,14 @@ var xn = function() {
|
|
|
4067
4113
|
t.indexOf(n[a]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[a]) && (r[n[a]] = e[n[a]]);
|
|
4068
4114
|
return r;
|
|
4069
4115
|
};
|
|
4070
|
-
function
|
|
4071
|
-
var t = e.activeStartDate, r = e.hover, n = e.value, a = e.valueType, i = Ea(e, ["activeStartDate", "hover", "value", "valueType"]), s = 0, l = 11, c =
|
|
4116
|
+
function Bc(e) {
|
|
4117
|
+
var t = e.activeStartDate, r = e.hover, n = e.value, a = e.valueType, i = Ea(e, ["activeStartDate", "hover", "value", "valueType"]), s = 0, l = 11, c = Z(t);
|
|
4072
4118
|
return o.jsx($r, { className: "react-calendar__year-view__months", dateTransform: function(d) {
|
|
4073
4119
|
var f = /* @__PURE__ */ new Date();
|
|
4074
4120
|
return f.setFullYear(c, d, 1), at(f);
|
|
4075
4121
|
}, dateType: "month", end: l, hover: r, renderTile: function(d) {
|
|
4076
|
-
var f = d.date,
|
|
4077
|
-
return o.jsx(
|
|
4122
|
+
var f = d.date, h = Ea(d, ["date"]);
|
|
4123
|
+
return o.jsx(Yc, xn({}, i, h, { activeStartDate: t, date: f }), f.getTime());
|
|
4078
4124
|
}, start: s, value: n, valueType: a });
|
|
4079
4125
|
}
|
|
4080
4126
|
var wn = function() {
|
|
@@ -4086,9 +4132,9 @@ var wn = function() {
|
|
|
4086
4132
|
return e;
|
|
4087
4133
|
}, wn.apply(this, arguments);
|
|
4088
4134
|
};
|
|
4089
|
-
function
|
|
4135
|
+
function Uc(e) {
|
|
4090
4136
|
function t() {
|
|
4091
|
-
return o.jsx(
|
|
4137
|
+
return o.jsx(Bc, wn({}, e));
|
|
4092
4138
|
}
|
|
4093
4139
|
return o.jsx("div", { className: "react-calendar__year-view", children: t() });
|
|
4094
4140
|
}
|
|
@@ -4100,7 +4146,7 @@ var jn = function() {
|
|
|
4100
4146
|
}
|
|
4101
4147
|
return e;
|
|
4102
4148
|
}, jn.apply(this, arguments);
|
|
4103
|
-
},
|
|
4149
|
+
}, zc = function(e, t) {
|
|
4104
4150
|
var r = {};
|
|
4105
4151
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4106
4152
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -4108,9 +4154,9 @@ var jn = function() {
|
|
|
4108
4154
|
t.indexOf(n[a]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[a]) && (r[n[a]] = e[n[a]]);
|
|
4109
4155
|
return r;
|
|
4110
4156
|
}, Jr = "react-calendar__month-view__days__day";
|
|
4111
|
-
function
|
|
4112
|
-
var t = e.calendarType, r = e.classes, n = r === void 0 ? [] : r, a = e.currentMonthIndex, i = e.formatDay, s = i === void 0 ?
|
|
4113
|
-
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(Lr, jn({}, d, { classes: g, formatAbbr: c, maxDateTransform: Wn, minDateTransform: Gt, view: "month", children: s(
|
|
4157
|
+
function Gc(e) {
|
|
4158
|
+
var t = e.calendarType, r = e.classes, n = r === void 0 ? [] : r, a = e.currentMonthIndex, i = e.formatDay, s = i === void 0 ? cc : i, l = e.formatLongDate, c = l === void 0 ? lc : l, d = zc(e, ["calendarType", "classes", "currentMonthIndex", "formatDay", "formatLongDate"]), f = d.date, h = d.locale, g = [];
|
|
4159
|
+
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(Lr, jn({}, d, { classes: g, formatAbbr: c, maxDateTransform: Wn, minDateTransform: Gt, view: "month", children: s(h, f) }));
|
|
4114
4160
|
}
|
|
4115
4161
|
var Sn = function() {
|
|
4116
4162
|
return Sn = Object.assign || function(e) {
|
|
@@ -4128,16 +4174,16 @@ var Sn = function() {
|
|
|
4128
4174
|
t.indexOf(n[a]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[a]) && (r[n[a]] = e[n[a]]);
|
|
4129
4175
|
return r;
|
|
4130
4176
|
};
|
|
4131
|
-
function
|
|
4132
|
-
var t = e.activeStartDate, r = e.calendarType, n = e.hover, a = e.showFixedNumberOfWeeks, i = e.showNeighboringMonth, s = e.value, l = e.valueType, c = ka(e, ["activeStartDate", "calendarType", "hover", "showFixedNumberOfWeeks", "showNeighboringMonth", "value", "valueType"]), d =
|
|
4177
|
+
function Hc(e) {
|
|
4178
|
+
var t = e.activeStartDate, r = e.calendarType, n = e.hover, a = e.showFixedNumberOfWeeks, i = e.showNeighboringMonth, s = e.value, l = e.valueType, c = ka(e, ["activeStartDate", "calendarType", "hover", "showFixedNumberOfWeeks", "showNeighboringMonth", "value", "valueType"]), d = Z(t), f = ze(t), h = a || i, g = Vt(t, r), v = h ? 0 : g, m = (h ? -g : 0) + 1, p = function() {
|
|
4133
4179
|
if (a)
|
|
4134
4180
|
return m + 6 * 7 - 1;
|
|
4135
4181
|
var w = No(t);
|
|
4136
4182
|
if (i) {
|
|
4137
4183
|
var j = /* @__PURE__ */ new Date();
|
|
4138
4184
|
j.setFullYear(d, f, w), j.setHours(0, 0, 0, 0);
|
|
4139
|
-
var
|
|
4140
|
-
return w +
|
|
4185
|
+
var y = 7 - Vt(j, r) - 1;
|
|
4186
|
+
return w + y;
|
|
4141
4187
|
}
|
|
4142
4188
|
return w;
|
|
4143
4189
|
}();
|
|
@@ -4145,15 +4191,15 @@ function Gc(e) {
|
|
|
4145
4191
|
var j = /* @__PURE__ */ new Date();
|
|
4146
4192
|
return j.setFullYear(d, f, w), Gt(j);
|
|
4147
4193
|
}, dateType: "day", hover: n, end: p, renderTile: function(w) {
|
|
4148
|
-
var j = w.date,
|
|
4149
|
-
return o.jsx(
|
|
4150
|
-
}, offset:
|
|
4194
|
+
var j = w.date, y = ka(w, ["date"]);
|
|
4195
|
+
return o.jsx(Gc, Sn({}, c, y, { activeStartDate: t, calendarType: r, currentMonthIndex: f, date: j }), j.getTime());
|
|
4196
|
+
}, offset: v, start: m, value: s, valueType: l });
|
|
4151
4197
|
}
|
|
4152
4198
|
var Ao = "react-calendar__month-view__weekdays", Qr = "".concat(Ao, "__weekday");
|
|
4153
|
-
function
|
|
4154
|
-
for (var t = e.calendarType, r = e.formatShortWeekday, n = r === void 0 ?
|
|
4155
|
-
var m = new Date(f,
|
|
4156
|
-
g.push(o.jsx("div", { className: Pr(Qr,
|
|
4199
|
+
function qc(e) {
|
|
4200
|
+
for (var t = e.calendarType, r = e.formatShortWeekday, n = r === void 0 ? dc : r, a = e.formatWeekday, i = a === void 0 ? fc : a, s = e.locale, l = e.onMouseLeave, c = /* @__PURE__ */ new Date(), d = at(c), f = Z(d), h = ze(d), g = [], v = 1; v <= 7; v += 1) {
|
|
4201
|
+
var m = new Date(f, h, v - Vt(d, t)), p = i(s, m);
|
|
4202
|
+
g.push(o.jsx("div", { className: Pr(Qr, Oc(m) && "".concat(Qr, "--current"), To(m, t) && "".concat(Qr, "--weekend")), children: o.jsx("abbr", { "aria-label": p, title: p, children: n(s, m).replace(".", "") }) }, v));
|
|
4157
4203
|
}
|
|
4158
4204
|
return o.jsx(Yn, { className: Ao, count: 7, onFocus: l, onMouseOver: l, children: g });
|
|
4159
4205
|
}
|
|
@@ -4173,7 +4219,7 @@ var Sr = function() {
|
|
|
4173
4219
|
t.indexOf(n[a]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[a]) && (r[n[a]] = e[n[a]]);
|
|
4174
4220
|
return r;
|
|
4175
4221
|
}, _a = "react-calendar__tile";
|
|
4176
|
-
function
|
|
4222
|
+
function Xc(e) {
|
|
4177
4223
|
var t = e.onClickWeekNumber, r = e.weekNumber, n = o.jsx("span", { children: r });
|
|
4178
4224
|
if (t) {
|
|
4179
4225
|
var a = e.date, i = e.onClickWeekNumber, s = e.weekNumber, l = Ca(e, ["date", "onClickWeekNumber", "weekNumber"]);
|
|
@@ -4186,24 +4232,24 @@ function qc(e) {
|
|
|
4186
4232
|
return o.jsx("div", Sr({}, l, { className: _a, children: n }));
|
|
4187
4233
|
}
|
|
4188
4234
|
}
|
|
4189
|
-
function
|
|
4235
|
+
function Kc(e) {
|
|
4190
4236
|
var t = e.activeStartDate, r = e.calendarType, n = e.onClickWeekNumber, a = e.onMouseLeave, i = e.showFixedNumberOfWeeks, s = function() {
|
|
4191
4237
|
if (i)
|
|
4192
4238
|
return 6;
|
|
4193
|
-
var d = No(t), f = Vt(t, r),
|
|
4194
|
-
return 1 + Math.ceil(
|
|
4239
|
+
var d = No(t), f = Vt(t, r), h = d - (7 - f);
|
|
4240
|
+
return 1 + Math.ceil(h / 7);
|
|
4195
4241
|
}(), l = function() {
|
|
4196
|
-
for (var d =
|
|
4197
|
-
g.push(fn(new Date(d, f,
|
|
4242
|
+
for (var d = Z(t), f = ze(t), h = Tr(t), g = [], v = 0; v < s; v += 1)
|
|
4243
|
+
g.push(fn(new Date(d, f, h + v * 7), r));
|
|
4198
4244
|
return g;
|
|
4199
4245
|
}(), c = l.map(function(d) {
|
|
4200
|
-
return
|
|
4246
|
+
return gc(d, r);
|
|
4201
4247
|
});
|
|
4202
4248
|
return o.jsx(Yn, { className: "react-calendar__month-view__weekNumbers", count: s, direction: "column", onFocus: a, onMouseOver: a, style: { flexBasis: "calc(100% * (1 / 8)", flexShrink: 0 }, children: c.map(function(d, f) {
|
|
4203
|
-
var
|
|
4204
|
-
if (!
|
|
4249
|
+
var h = l[f];
|
|
4250
|
+
if (!h)
|
|
4205
4251
|
throw new Error("date is not defined");
|
|
4206
|
-
return o.jsx(
|
|
4252
|
+
return o.jsx(Xc, { date: h, onClickWeekNumber: n, weekNumber: d }, d);
|
|
4207
4253
|
}) });
|
|
4208
4254
|
}
|
|
4209
4255
|
var Dn = function() {
|
|
@@ -4214,7 +4260,7 @@ var Dn = function() {
|
|
|
4214
4260
|
}
|
|
4215
4261
|
return e;
|
|
4216
4262
|
}, Dn.apply(this, arguments);
|
|
4217
|
-
},
|
|
4263
|
+
}, Jc = function(e, t) {
|
|
4218
4264
|
var r = {};
|
|
4219
4265
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4220
4266
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -4222,31 +4268,31 @@ var Dn = function() {
|
|
|
4222
4268
|
t.indexOf(n[a]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[a]) && (r[n[a]] = e[n[a]]);
|
|
4223
4269
|
return r;
|
|
4224
4270
|
};
|
|
4225
|
-
function
|
|
4271
|
+
function Qc(e) {
|
|
4226
4272
|
if (e)
|
|
4227
|
-
for (var t = 0, r = Object.entries(
|
|
4273
|
+
for (var t = 0, r = Object.entries(Qs); t < r.length; t++) {
|
|
4228
4274
|
var n = r[t], a = n[0], i = n[1];
|
|
4229
4275
|
if (i.includes(e))
|
|
4230
4276
|
return a;
|
|
4231
4277
|
}
|
|
4232
|
-
return
|
|
4278
|
+
return fe.ISO_8601;
|
|
4233
4279
|
}
|
|
4234
|
-
function
|
|
4235
|
-
var t = e.activeStartDate, r = e.locale, n = e.onMouseLeave, a = e.showFixedNumberOfWeeks, i = e.calendarType, s = i === void 0 ?
|
|
4280
|
+
function Zc(e) {
|
|
4281
|
+
var t = e.activeStartDate, r = e.locale, n = e.onMouseLeave, a = e.showFixedNumberOfWeeks, i = e.calendarType, s = i === void 0 ? Qc(r) : i, l = e.formatShortWeekday, c = e.formatWeekday, d = e.onClickWeekNumber, f = e.showWeekNumbers, h = Jc(e, ["calendarType", "formatShortWeekday", "formatWeekday", "onClickWeekNumber", "showWeekNumbers"]);
|
|
4236
4282
|
function g() {
|
|
4237
|
-
return o.jsx(
|
|
4283
|
+
return o.jsx(qc, { calendarType: s, formatShortWeekday: l, formatWeekday: c, locale: r, onMouseLeave: n });
|
|
4238
4284
|
}
|
|
4239
|
-
function
|
|
4240
|
-
return f ? o.jsx(
|
|
4285
|
+
function v() {
|
|
4286
|
+
return f ? o.jsx(Kc, { activeStartDate: t, calendarType: s, onClickWeekNumber: d, onMouseLeave: n, showFixedNumberOfWeeks: a }) : null;
|
|
4241
4287
|
}
|
|
4242
4288
|
function m() {
|
|
4243
|
-
return o.jsx(
|
|
4289
|
+
return o.jsx(Hc, Dn({ calendarType: s }, h));
|
|
4244
4290
|
}
|
|
4245
4291
|
var p = "react-calendar__month-view";
|
|
4246
4292
|
return o.jsx("div", { className: Pr(p, f ? "".concat(p, "--weekNumbers") : ""), children: o.jsxs("div", { style: {
|
|
4247
4293
|
display: "flex",
|
|
4248
4294
|
alignItems: "flex-end"
|
|
4249
|
-
}, children: [
|
|
4295
|
+
}, children: [v(), o.jsxs("div", { style: {
|
|
4250
4296
|
flexGrow: 1,
|
|
4251
4297
|
width: "100%"
|
|
4252
4298
|
}, children: [g(), m()] })] }) });
|
|
@@ -4259,28 +4305,28 @@ var ht = function() {
|
|
|
4259
4305
|
}
|
|
4260
4306
|
return e;
|
|
4261
4307
|
}, ht.apply(this, arguments);
|
|
4262
|
-
}, lr = "react-calendar", gr = ["century", "decade", "year", "month"],
|
|
4308
|
+
}, lr = "react-calendar", gr = ["century", "decade", "year", "month"], el = ["decade", "year", "month", "day"], Bn = /* @__PURE__ */ new Date();
|
|
4263
4309
|
Bn.setFullYear(1, 0, 1);
|
|
4264
4310
|
Bn.setHours(0, 0, 0, 0);
|
|
4265
|
-
var
|
|
4311
|
+
var tl = /* @__PURE__ */ new Date(864e13);
|
|
4266
4312
|
function Ft(e) {
|
|
4267
4313
|
return e instanceof Date ? e : new Date(e);
|
|
4268
4314
|
}
|
|
4269
4315
|
function Io(e, t) {
|
|
4270
4316
|
return gr.slice(gr.indexOf(e), gr.indexOf(t) + 1);
|
|
4271
4317
|
}
|
|
4272
|
-
function
|
|
4318
|
+
function rl(e, t, r) {
|
|
4273
4319
|
var n = Io(t, r);
|
|
4274
4320
|
return n.indexOf(e) !== -1;
|
|
4275
4321
|
}
|
|
4276
4322
|
function Un(e, t, r) {
|
|
4277
|
-
return e &&
|
|
4323
|
+
return e && rl(e, t, r) ? e : r;
|
|
4278
4324
|
}
|
|
4279
4325
|
function $o(e) {
|
|
4280
4326
|
var t = gr.indexOf(e);
|
|
4281
|
-
return
|
|
4327
|
+
return el[t];
|
|
4282
4328
|
}
|
|
4283
|
-
function
|
|
4329
|
+
function nl(e, t) {
|
|
4284
4330
|
var r = Array.isArray(e) ? e[t] : e;
|
|
4285
4331
|
if (!r)
|
|
4286
4332
|
return null;
|
|
@@ -4290,7 +4336,7 @@ function rl(e, t) {
|
|
|
4290
4336
|
return n;
|
|
4291
4337
|
}
|
|
4292
4338
|
function Lo(e, t) {
|
|
4293
|
-
var r = e.value, n = e.minDate, a = e.maxDate, i = e.maxDetail, s =
|
|
4339
|
+
var r = e.value, n = e.minDate, a = e.maxDate, i = e.maxDetail, s = nl(r, t);
|
|
4294
4340
|
if (!s)
|
|
4295
4341
|
return null;
|
|
4296
4342
|
var l = $o(i), c = function() {
|
|
@@ -4303,13 +4349,13 @@ function Lo(e, t) {
|
|
|
4303
4349
|
throw new Error("Invalid index value: ".concat(t));
|
|
4304
4350
|
}
|
|
4305
4351
|
}();
|
|
4306
|
-
return
|
|
4352
|
+
return kc(c, n, a);
|
|
4307
4353
|
}
|
|
4308
4354
|
var zn = function(e) {
|
|
4309
4355
|
return Lo(e, 0);
|
|
4310
4356
|
}, Mo = function(e) {
|
|
4311
4357
|
return Lo(e, 1);
|
|
4312
|
-
},
|
|
4358
|
+
}, al = function(e) {
|
|
4313
4359
|
return [zn, Mo].map(function(t) {
|
|
4314
4360
|
return t(e);
|
|
4315
4361
|
});
|
|
@@ -4323,9 +4369,9 @@ function Fo(e) {
|
|
|
4323
4369
|
}) || /* @__PURE__ */ new Date();
|
|
4324
4370
|
return rt(l, c);
|
|
4325
4371
|
}
|
|
4326
|
-
function
|
|
4327
|
-
var t = e.activeStartDate, r = e.defaultActiveStartDate, n = e.defaultValue, a = e.defaultView, i = e.maxDate, s = e.maxDetail, l = e.minDate, c = e.minDetail, d = e.value, f = e.view,
|
|
4328
|
-
return g ? rt(
|
|
4372
|
+
function ol(e) {
|
|
4373
|
+
var t = e.activeStartDate, r = e.defaultActiveStartDate, n = e.defaultValue, a = e.defaultView, i = e.maxDate, s = e.maxDetail, l = e.minDate, c = e.minDetail, d = e.value, f = e.view, h = Un(f, c, s), g = t || r;
|
|
4374
|
+
return g ? rt(h, g) : Fo({
|
|
4329
4375
|
maxDate: i,
|
|
4330
4376
|
maxDetail: s,
|
|
4331
4377
|
minDate: l,
|
|
@@ -4340,28 +4386,28 @@ function Zr(e) {
|
|
|
4340
4386
|
function ur(e, t) {
|
|
4341
4387
|
return e instanceof Date && t instanceof Date && e.getTime() === t.getTime();
|
|
4342
4388
|
}
|
|
4343
|
-
var
|
|
4344
|
-
var n = t.activeStartDate, a = t.allowPartialRange, i = t.calendarType, s = t.className, l = t.defaultActiveStartDate, c = t.defaultValue, d = t.defaultView, f = t.formatDay,
|
|
4389
|
+
var il = Ue(function(t, r) {
|
|
4390
|
+
var n = t.activeStartDate, a = t.allowPartialRange, i = t.calendarType, s = t.className, l = t.defaultActiveStartDate, c = t.defaultValue, d = t.defaultView, f = t.formatDay, h = t.formatLongDate, g = t.formatMonth, v = t.formatMonthYear, m = t.formatShortWeekday, p = t.formatWeekday, w = t.formatYear, j = t.goToRangeStartOnSelect, y = j === void 0 ? !0 : j, D = t.inputRef, S = t.locale, R = t.maxDate, _ = R === void 0 ? tl : R, P = t.maxDetail, V = P === void 0 ? "month" : P, b = t.minDate, L = b === void 0 ? Bn : b, T = t.minDetail, A = T === void 0 ? "century" : T, E = t.navigationAriaLabel, F = t.navigationAriaLive, ie = t.navigationLabel, K = t.next2AriaLabel, we = t.next2Label, Ae = t.nextAriaLabel, te = t.nextLabel, J = t.onActiveStartDateChange, le = t.onChange, ee = t.onClickDay, Se = t.onClickDecade, Ee = t.onClickMonth, ke = t.onClickWeekNumber, me = t.onClickYear, pe = t.onDrillDown, ue = t.onDrillUp, ne = t.onViewChange, De = t.prev2AriaLabel, Ce = t.prev2Label, he = t.prevAriaLabel, Ot = t.prevLabel, re = t.returnValue, _e = re === void 0 ? "start" : re, se = t.selectRange, He = t.showDoubleView, Nt = t.showFixedNumberOfWeeks, qe = t.showNavigation, Mr = 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(l), Yr = Jt[0], st = Jt[1], Qt = W(null), Br = Qt[0], Zt = Qt[1], er = W(Array.isArray(c) ? c.map(function(N) {
|
|
4345
4391
|
return N !== null ? Ft(N) : null;
|
|
4346
|
-
}) : c != null ? Ft(c) : null), Xe = er[0], tr = er[1], Ie =
|
|
4392
|
+
}) : c != null ? Ft(c) : null), Xe = er[0], tr = er[1], Ie = W(d), Ct = Ie[0], ct = Ie[1], de = n || Yr || ol({
|
|
4347
4393
|
activeStartDate: n,
|
|
4348
4394
|
defaultActiveStartDate: l,
|
|
4349
4395
|
defaultValue: c,
|
|
4350
4396
|
defaultView: d,
|
|
4351
4397
|
maxDate: _,
|
|
4352
|
-
maxDetail:
|
|
4353
|
-
minDate:
|
|
4354
|
-
minDetail:
|
|
4398
|
+
maxDetail: V,
|
|
4399
|
+
minDate: L,
|
|
4400
|
+
minDetail: A,
|
|
4355
4401
|
value: it,
|
|
4356
4402
|
view: kt
|
|
4357
|
-
}),
|
|
4403
|
+
}), ve = function() {
|
|
4358
4404
|
var N = function() {
|
|
4359
|
-
return
|
|
4405
|
+
return se && Zr(Xe) ? Xe : it !== void 0 ? it : Xe;
|
|
4360
4406
|
}();
|
|
4361
4407
|
return N ? Array.isArray(N) ? N.map(function(k) {
|
|
4362
4408
|
return k !== null ? Ft(k) : null;
|
|
4363
4409
|
}) : N !== null ? Ft(N) : null : null;
|
|
4364
|
-
}(), Ke = $o(
|
|
4410
|
+
}(), Ke = $o(V), q = Un(kt || Ct, A, V), je = Io(A, V), rr = se ? Br : null, _t = je.indexOf(q) < je.length - 1, nr = je.indexOf(q) > 0, Pt = $(function(N) {
|
|
4365
4411
|
var k = function() {
|
|
4366
4412
|
switch (_e) {
|
|
4367
4413
|
case "start":
|
|
@@ -4369,29 +4415,29 @@ var ol = Ue(function(t, r) {
|
|
|
4369
4415
|
case "end":
|
|
4370
4416
|
return Mo;
|
|
4371
4417
|
case "range":
|
|
4372
|
-
return
|
|
4418
|
+
return al;
|
|
4373
4419
|
default:
|
|
4374
4420
|
throw new Error("Invalid returnValue.");
|
|
4375
4421
|
}
|
|
4376
4422
|
}();
|
|
4377
4423
|
return k({
|
|
4378
4424
|
maxDate: _,
|
|
4379
|
-
maxDetail:
|
|
4380
|
-
minDate:
|
|
4425
|
+
maxDetail: V,
|
|
4426
|
+
minDate: L,
|
|
4381
4427
|
value: N
|
|
4382
4428
|
});
|
|
4383
|
-
}, [_,
|
|
4429
|
+
}, [_, V, L, _e]), lt = $(function(N, k) {
|
|
4384
4430
|
st(N);
|
|
4385
4431
|
var C = {
|
|
4386
4432
|
action: k,
|
|
4387
4433
|
activeStartDate: N,
|
|
4388
|
-
value:
|
|
4389
|
-
view:
|
|
4434
|
+
value: ve,
|
|
4435
|
+
view: q
|
|
4390
4436
|
};
|
|
4391
|
-
|
|
4392
|
-
}, [
|
|
4437
|
+
J && !ur(de, N) && J(C);
|
|
4438
|
+
}, [de, J, ve, q]), ut = $(function(N, k) {
|
|
4393
4439
|
var C = function() {
|
|
4394
|
-
switch (
|
|
4440
|
+
switch (q) {
|
|
4395
4441
|
case "century":
|
|
4396
4442
|
return Se;
|
|
4397
4443
|
case "decade":
|
|
@@ -4399,125 +4445,125 @@ var ol = Ue(function(t, r) {
|
|
|
4399
4445
|
case "year":
|
|
4400
4446
|
return Ee;
|
|
4401
4447
|
case "month":
|
|
4402
|
-
return
|
|
4448
|
+
return ee;
|
|
4403
4449
|
default:
|
|
4404
|
-
throw new Error("Invalid view: ".concat(
|
|
4450
|
+
throw new Error("Invalid view: ".concat(q, "."));
|
|
4405
4451
|
}
|
|
4406
4452
|
}();
|
|
4407
4453
|
C && C(N, k);
|
|
4408
|
-
}, [
|
|
4454
|
+
}, [ee, Se, Ee, me, q]), Tt = $(function(N, k) {
|
|
4409
4455
|
if (_t) {
|
|
4410
4456
|
ut(N, k);
|
|
4411
|
-
var C = je[je.indexOf(
|
|
4457
|
+
var C = je[je.indexOf(q) + 1];
|
|
4412
4458
|
if (!C)
|
|
4413
4459
|
throw new Error("Attempted to drill down from the lowest view.");
|
|
4414
4460
|
st(N), ct(C);
|
|
4415
|
-
var
|
|
4461
|
+
var G = {
|
|
4416
4462
|
action: "drillDown",
|
|
4417
4463
|
activeStartDate: N,
|
|
4418
|
-
value:
|
|
4464
|
+
value: ve,
|
|
4419
4465
|
view: C
|
|
4420
4466
|
};
|
|
4421
|
-
|
|
4467
|
+
J && !ur(de, N) && J(G), ne && q !== C && ne(G), pe && pe(G);
|
|
4422
4468
|
}
|
|
4423
4469
|
}, [
|
|
4424
|
-
|
|
4470
|
+
de,
|
|
4425
4471
|
_t,
|
|
4426
|
-
|
|
4472
|
+
J,
|
|
4427
4473
|
ut,
|
|
4428
4474
|
pe,
|
|
4429
4475
|
ne,
|
|
4430
|
-
|
|
4431
|
-
|
|
4476
|
+
ve,
|
|
4477
|
+
q,
|
|
4432
4478
|
je
|
|
4433
|
-
]), Rt =
|
|
4479
|
+
]), Rt = $(function() {
|
|
4434
4480
|
if (nr) {
|
|
4435
|
-
var N = je[je.indexOf(
|
|
4481
|
+
var N = je[je.indexOf(q) - 1];
|
|
4436
4482
|
if (!N)
|
|
4437
4483
|
throw new Error("Attempted to drill up from the highest view.");
|
|
4438
|
-
var k = rt(N,
|
|
4484
|
+
var k = rt(N, de);
|
|
4439
4485
|
st(k), ct(N);
|
|
4440
4486
|
var C = {
|
|
4441
4487
|
action: "drillUp",
|
|
4442
4488
|
activeStartDate: k,
|
|
4443
|
-
value:
|
|
4489
|
+
value: ve,
|
|
4444
4490
|
view: N
|
|
4445
4491
|
};
|
|
4446
|
-
|
|
4492
|
+
J && !ur(de, k) && J(C), ne && q !== N && ne(C), ue && ue(C);
|
|
4447
4493
|
}
|
|
4448
4494
|
}, [
|
|
4449
|
-
|
|
4495
|
+
de,
|
|
4450
4496
|
nr,
|
|
4451
|
-
|
|
4452
|
-
|
|
4497
|
+
J,
|
|
4498
|
+
ue,
|
|
4453
4499
|
ne,
|
|
4454
|
-
|
|
4455
|
-
|
|
4500
|
+
ve,
|
|
4501
|
+
q,
|
|
4456
4502
|
je
|
|
4457
|
-
]), At =
|
|
4458
|
-
var C =
|
|
4503
|
+
]), At = $(function(N, k) {
|
|
4504
|
+
var C = ve;
|
|
4459
4505
|
ut(N, k);
|
|
4460
|
-
var
|
|
4461
|
-
if (
|
|
4462
|
-
if (
|
|
4463
|
-
|
|
4506
|
+
var G = se && !Zr(C), B;
|
|
4507
|
+
if (se)
|
|
4508
|
+
if (G)
|
|
4509
|
+
B = rt(Ke, N);
|
|
4464
4510
|
else {
|
|
4465
4511
|
if (!C)
|
|
4466
4512
|
throw new Error("previousValue is required");
|
|
4467
4513
|
if (Array.isArray(C))
|
|
4468
4514
|
throw new Error("previousValue must not be an array");
|
|
4469
|
-
|
|
4515
|
+
B = Sc(Ke, C, N);
|
|
4470
4516
|
}
|
|
4471
4517
|
else
|
|
4472
|
-
|
|
4473
|
-
var
|
|
4518
|
+
B = Pt(N);
|
|
4519
|
+
var Q = (
|
|
4474
4520
|
// Range selection turned off
|
|
4475
|
-
!
|
|
4476
|
-
|
|
4477
|
-
|
|
4521
|
+
!se || // Range selection turned on, first value
|
|
4522
|
+
G || // Range selection turned on, second value, goToRangeStartOnSelect toggled on
|
|
4523
|
+
y ? Fo({
|
|
4478
4524
|
maxDate: _,
|
|
4479
|
-
maxDetail:
|
|
4480
|
-
minDate:
|
|
4481
|
-
minDetail:
|
|
4482
|
-
value:
|
|
4483
|
-
view:
|
|
4525
|
+
maxDetail: V,
|
|
4526
|
+
minDate: L,
|
|
4527
|
+
minDetail: A,
|
|
4528
|
+
value: B,
|
|
4529
|
+
view: q
|
|
4484
4530
|
}) : null
|
|
4485
4531
|
);
|
|
4486
|
-
k.persist(), st(
|
|
4532
|
+
k.persist(), st(Q), tr(B);
|
|
4487
4533
|
var ge = {
|
|
4488
4534
|
action: "onChange",
|
|
4489
|
-
activeStartDate:
|
|
4490
|
-
value:
|
|
4491
|
-
view:
|
|
4535
|
+
activeStartDate: Q,
|
|
4536
|
+
value: B,
|
|
4537
|
+
view: q
|
|
4492
4538
|
};
|
|
4493
|
-
if (
|
|
4494
|
-
if (
|
|
4495
|
-
var We = Zr(
|
|
4539
|
+
if (J && !ur(de, Q) && J(ge), le)
|
|
4540
|
+
if (se) {
|
|
4541
|
+
var We = Zr(B);
|
|
4496
4542
|
if (!We)
|
|
4497
|
-
|
|
4543
|
+
le(B || null, k);
|
|
4498
4544
|
else if (a) {
|
|
4499
|
-
if (Array.isArray(
|
|
4545
|
+
if (Array.isArray(B))
|
|
4500
4546
|
throw new Error("value must not be an array");
|
|
4501
|
-
|
|
4547
|
+
le([B || null, null], k);
|
|
4502
4548
|
}
|
|
4503
4549
|
} else
|
|
4504
|
-
|
|
4550
|
+
le(B || null, k);
|
|
4505
4551
|
}, [
|
|
4506
|
-
|
|
4552
|
+
de,
|
|
4507
4553
|
a,
|
|
4508
4554
|
Pt,
|
|
4509
|
-
|
|
4555
|
+
y,
|
|
4510
4556
|
_,
|
|
4511
|
-
|
|
4512
|
-
|
|
4513
|
-
|
|
4514
|
-
|
|
4515
|
-
|
|
4557
|
+
V,
|
|
4558
|
+
L,
|
|
4559
|
+
A,
|
|
4560
|
+
J,
|
|
4561
|
+
le,
|
|
4516
4562
|
ut,
|
|
4517
|
-
|
|
4518
|
-
|
|
4563
|
+
se,
|
|
4564
|
+
ve,
|
|
4519
4565
|
Ke,
|
|
4520
|
-
|
|
4566
|
+
q
|
|
4521
4567
|
]);
|
|
4522
4568
|
function u(N) {
|
|
4523
4569
|
Zt(N);
|
|
@@ -4527,75 +4573,75 @@ var ol = Ue(function(t, r) {
|
|
|
4527
4573
|
}
|
|
4528
4574
|
Dr(r, function() {
|
|
4529
4575
|
return {
|
|
4530
|
-
activeStartDate:
|
|
4576
|
+
activeStartDate: de,
|
|
4531
4577
|
drillDown: Tt,
|
|
4532
4578
|
drillUp: Rt,
|
|
4533
4579
|
onChange: At,
|
|
4534
4580
|
setActiveStartDate: lt,
|
|
4535
|
-
value:
|
|
4536
|
-
view:
|
|
4581
|
+
value: ve,
|
|
4582
|
+
view: q
|
|
4537
4583
|
};
|
|
4538
|
-
}, [
|
|
4584
|
+
}, [de, Tt, Rt, At, lt, ve, q]);
|
|
4539
4585
|
function O(N) {
|
|
4540
|
-
var k = N ? ko(
|
|
4586
|
+
var k = N ? ko(q, de) : rt(q, de), C = _t ? Tt : At, G = {
|
|
4541
4587
|
activeStartDate: k,
|
|
4542
4588
|
hover: rr,
|
|
4543
4589
|
locale: S,
|
|
4544
4590
|
maxDate: _,
|
|
4545
|
-
minDate:
|
|
4591
|
+
minDate: L,
|
|
4546
4592
|
onClick: C,
|
|
4547
|
-
onMouseOver:
|
|
4593
|
+
onMouseOver: se ? u : void 0,
|
|
4548
4594
|
tileClassName: Xt,
|
|
4549
4595
|
tileContent: Kt,
|
|
4550
4596
|
tileDisabled: Vr,
|
|
4551
|
-
value:
|
|
4597
|
+
value: ve,
|
|
4552
4598
|
valueType: Ke
|
|
4553
4599
|
};
|
|
4554
|
-
switch (
|
|
4600
|
+
switch (q) {
|
|
4555
4601
|
case "century":
|
|
4556
|
-
return o.jsx(
|
|
4602
|
+
return o.jsx(Ic, ht({ formatYear: w, showNeighboringCentury: Fr }, G));
|
|
4557
4603
|
case "decade":
|
|
4558
|
-
return o.jsx(
|
|
4604
|
+
return o.jsx(Fc, ht({ formatYear: w, showNeighboringDecade: Et }, G));
|
|
4559
4605
|
case "year":
|
|
4560
|
-
return o.jsx(
|
|
4606
|
+
return o.jsx(Uc, ht({ formatMonth: g, formatMonthYear: v }, G));
|
|
4561
4607
|
case "month":
|
|
4562
|
-
return o.jsx(
|
|
4608
|
+
return o.jsx(Zc, ht({ calendarType: i, formatDay: f, formatLongDate: h, formatShortWeekday: m, formatWeekday: p, onClickWeekNumber: ke, onMouseLeave: se ? x : void 0, showFixedNumberOfWeeks: typeof Nt < "u" ? Nt : He, showNeighboringMonth: Wr, showWeekNumbers: qt }, G));
|
|
4563
4609
|
default:
|
|
4564
|
-
throw new Error("Invalid view: ".concat(
|
|
4610
|
+
throw new Error("Invalid view: ".concat(q, "."));
|
|
4565
4611
|
}
|
|
4566
4612
|
}
|
|
4567
|
-
function
|
|
4568
|
-
return Mr ? o.jsx(
|
|
4613
|
+
function I() {
|
|
4614
|
+
return Mr ? o.jsx(Nc, { activeStartDate: de, drillUp: Rt, formatMonthYear: v, formatYear: w, locale: S, maxDate: _, minDate: L, navigationAriaLabel: E, navigationAriaLive: F, navigationLabel: ie, next2AriaLabel: K, next2Label: we, nextAriaLabel: Ae, nextLabel: te, prev2AriaLabel: De, prev2Label: Ce, prevAriaLabel: he, prevLabel: Ot, setActiveStartDate: lt, showDoubleView: He, view: q, views: je }) : null;
|
|
4569
4615
|
}
|
|
4570
|
-
var
|
|
4571
|
-
return o.jsxs("div", { className: Pr(lr,
|
|
4616
|
+
var U = Array.isArray(ve) ? ve : [ve];
|
|
4617
|
+
return o.jsxs("div", { className: Pr(lr, se && U.length === 1 && "".concat(lr, "--selectRange"), He && "".concat(lr, "--doubleView"), s), ref: D, children: [I(), o.jsxs("div", { className: "".concat(lr, "__viewContainer"), onBlur: se ? x : void 0, onMouseLeave: se ? x : void 0, children: [O(), He ? O(!0) : null] })] });
|
|
4572
4618
|
});
|
|
4573
|
-
const
|
|
4619
|
+
const Ul = ({
|
|
4574
4620
|
value: e,
|
|
4575
4621
|
onChange: t,
|
|
4576
4622
|
maxDate: r,
|
|
4577
4623
|
children: n
|
|
4578
4624
|
}) => {
|
|
4579
|
-
const [a, i] =
|
|
4625
|
+
const [a, i] = W(e ?? /* @__PURE__ */ new Date()), [s, l] = W(!1), c = oe(null), d = $(
|
|
4580
4626
|
(p) => {
|
|
4581
4627
|
i(p), t && t(p), l(!1);
|
|
4582
4628
|
},
|
|
4583
4629
|
[t]
|
|
4584
|
-
), f = () => l(!s),
|
|
4630
|
+
), f = () => l(!s), h = $((p) => {
|
|
4585
4631
|
c.current && !c.current.contains(p.target) && l(!1);
|
|
4586
4632
|
}, []);
|
|
4587
|
-
|
|
4588
|
-
document.removeEventListener("mousedown",
|
|
4589
|
-
}), [s,
|
|
4590
|
-
const [g,
|
|
4633
|
+
H(() => (s ? document.addEventListener("mousedown", h) : document.removeEventListener("mousedown", h), () => {
|
|
4634
|
+
document.removeEventListener("mousedown", h);
|
|
4635
|
+
}), [s, h]);
|
|
4636
|
+
const [g, v] = W(), m = ({
|
|
4591
4637
|
activeStartDate: p
|
|
4592
4638
|
}) => {
|
|
4593
|
-
|
|
4639
|
+
v(p);
|
|
4594
4640
|
};
|
|
4595
4641
|
return /* @__PURE__ */ o.jsx("div", { children: /* @__PURE__ */ o.jsxs("div", { className: "calendar", ref: c, children: [
|
|
4596
4642
|
n && /* @__PURE__ */ o.jsx("div", { onClick: f, children: n }),
|
|
4597
4643
|
!n && /* @__PURE__ */ o.jsx("button", { className: "calendar-button", onClick: f, children: /* @__PURE__ */ o.jsx(
|
|
4598
|
-
|
|
4644
|
+
Y,
|
|
4599
4645
|
{
|
|
4600
4646
|
classIcon: " bi-calendar4-event",
|
|
4601
4647
|
size: xe.EXTRA_LARGE
|
|
@@ -4608,7 +4654,7 @@ const Bl = ({
|
|
|
4608
4654
|
onClick: () => l(!1),
|
|
4609
4655
|
className: "calendar-popup-close",
|
|
4610
4656
|
children: /* @__PURE__ */ o.jsx(
|
|
4611
|
-
|
|
4657
|
+
Y,
|
|
4612
4658
|
{
|
|
4613
4659
|
classIcon: "bi-x-lg close-icon",
|
|
4614
4660
|
size: xe.EXTRA_SMALL
|
|
@@ -4617,7 +4663,7 @@ const Bl = ({
|
|
|
4617
4663
|
}
|
|
4618
4664
|
),
|
|
4619
4665
|
/* @__PURE__ */ o.jsx(
|
|
4620
|
-
|
|
4666
|
+
il,
|
|
4621
4667
|
{
|
|
4622
4668
|
onActiveStartDateChange: m,
|
|
4623
4669
|
maxDate: r ?? /* @__PURE__ */ new Date(),
|
|
@@ -4634,18 +4680,18 @@ const Bl = ({
|
|
|
4634
4680
|
)
|
|
4635
4681
|
] })
|
|
4636
4682
|
] }) });
|
|
4637
|
-
},
|
|
4683
|
+
}, sl = ({
|
|
4638
4684
|
currentExpand: e,
|
|
4639
4685
|
item: t,
|
|
4640
4686
|
className: r,
|
|
4641
4687
|
showArrow: n = !0,
|
|
4642
4688
|
onChange: a
|
|
4643
4689
|
}) => {
|
|
4644
|
-
const [i, s] =
|
|
4645
|
-
|
|
4690
|
+
const [i, s] = W(!1);
|
|
4691
|
+
H(() => {
|
|
4646
4692
|
t && e && e.id === t.id ? i || s(!0) : s(!1);
|
|
4647
4693
|
}, [e, s, t]);
|
|
4648
|
-
const l =
|
|
4694
|
+
const l = $(
|
|
4649
4695
|
(c) => {
|
|
4650
4696
|
c.stopPropagation(), a && a(t);
|
|
4651
4697
|
},
|
|
@@ -4658,8 +4704,8 @@ const Bl = ({
|
|
|
4658
4704
|
className: `expand ${i ? "expand--active" : ""} ${r ?? ""}`,
|
|
4659
4705
|
children: [
|
|
4660
4706
|
/* @__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: [
|
|
4661
|
-
i && n && /* @__PURE__ */ o.jsx(
|
|
4662
|
-
!i && n && /* @__PURE__ */ o.jsx(
|
|
4707
|
+
i && n && /* @__PURE__ */ o.jsx(Y, { classIcon: "bi bi-chevron-down mr-2" }),
|
|
4708
|
+
!i && n && /* @__PURE__ */ o.jsx(Y, { classIcon: "bi bi-chevron-right mr-2" }),
|
|
4663
4709
|
/* @__PURE__ */ o.jsx("span", { className: "flex-1 expand-header-title-left", children: t.title }),
|
|
4664
4710
|
t.description && /* @__PURE__ */ o.jsx("span", { className: "expand-header-title-right", children: t.description })
|
|
4665
4711
|
] }) }) }),
|
|
@@ -4671,17 +4717,17 @@ const Bl = ({
|
|
|
4671
4717
|
]
|
|
4672
4718
|
}
|
|
4673
4719
|
);
|
|
4674
|
-
},
|
|
4675
|
-
const [t, r] =
|
|
4720
|
+
}, zl = (e) => {
|
|
4721
|
+
const [t, r] = W(), n = $(
|
|
4676
4722
|
(a) => {
|
|
4677
4723
|
e.onChange && e.onChange(a), r(a);
|
|
4678
4724
|
},
|
|
4679
4725
|
[r, e.onChange]
|
|
4680
4726
|
);
|
|
4681
|
-
return
|
|
4727
|
+
return H(() => {
|
|
4682
4728
|
r(e.currentItem);
|
|
4683
4729
|
}, [e.currentItem, r, document.activeElement]), /* @__PURE__ */ o.jsx("div", { className: `expands ${e.className || ""}`, children: e.items.map((a) => /* @__PURE__ */ o.jsx(
|
|
4684
|
-
|
|
4730
|
+
sl,
|
|
4685
4731
|
{
|
|
4686
4732
|
item: a,
|
|
4687
4733
|
showArrow: e.showArrow,
|
|
@@ -4690,13 +4736,13 @@ const Bl = ({
|
|
|
4690
4736
|
},
|
|
4691
4737
|
a.id
|
|
4692
4738
|
)) });
|
|
4693
|
-
},
|
|
4739
|
+
}, Gl = ({
|
|
4694
4740
|
filArianes: e,
|
|
4695
4741
|
onClick: t,
|
|
4696
4742
|
currentFil: r,
|
|
4697
4743
|
title: n
|
|
4698
4744
|
}) => {
|
|
4699
|
-
const a =
|
|
4745
|
+
const a = $(
|
|
4700
4746
|
(i, s) => {
|
|
4701
4747
|
s != null && s.url || i.preventDefault(), t && t(s);
|
|
4702
4748
|
},
|
|
@@ -4740,19 +4786,19 @@ const Bl = ({
|
|
|
4740
4786
|
maxLength: c = 10,
|
|
4741
4787
|
autoComplete: d = "off",
|
|
4742
4788
|
tabIndex: f = 0,
|
|
4743
|
-
onChange:
|
|
4789
|
+
onChange: h,
|
|
4744
4790
|
onBlur: g,
|
|
4745
|
-
onClick:
|
|
4791
|
+
onClick: v,
|
|
4746
4792
|
onKeyDown: m,
|
|
4747
4793
|
onFocus: p
|
|
4748
4794
|
}, w) => {
|
|
4749
|
-
const j =
|
|
4795
|
+
const j = $(
|
|
4750
4796
|
(D) => {
|
|
4751
4797
|
let S = D.target.value.replace(",", ".");
|
|
4752
|
-
!/^-?\d*[.,]?\d*$/.test(S) && S !== "" || c && S.length > c ||
|
|
4798
|
+
!/^-?\d*[.,]?\d*$/.test(S) && S !== "" || c && S.length > c || h == null || h(D, S);
|
|
4753
4799
|
},
|
|
4754
|
-
[
|
|
4755
|
-
),
|
|
4800
|
+
[h, c]
|
|
4801
|
+
), y = (D) => {
|
|
4756
4802
|
if (m && m(D), !(/[0-9]|Backspace|Delete|ArrowLeft|ArrowRight|Tab|Enter|Home|End/.test(
|
|
4757
4803
|
D.key
|
|
4758
4804
|
) || D.key === "." || D.key === "," || D.key === "-")) {
|
|
@@ -4780,18 +4826,18 @@ const Bl = ({
|
|
|
4780
4826
|
className: `input-field ${a ?? ""}`,
|
|
4781
4827
|
onChange: j,
|
|
4782
4828
|
onWheel: (D) => D.currentTarget.blur(),
|
|
4783
|
-
onKeyDown:
|
|
4829
|
+
onKeyDown: y,
|
|
4784
4830
|
onFocus: p,
|
|
4785
4831
|
onBlur: g,
|
|
4786
4832
|
onClick: (D) => {
|
|
4787
|
-
D.stopPropagation(),
|
|
4833
|
+
D.stopPropagation(), v == null || v(D);
|
|
4788
4834
|
}
|
|
4789
4835
|
}
|
|
4790
4836
|
) });
|
|
4791
4837
|
}
|
|
4792
4838
|
);
|
|
4793
4839
|
Wo.displayName = "InputNumber";
|
|
4794
|
-
const
|
|
4840
|
+
const Hl = Ue(
|
|
4795
4841
|
({
|
|
4796
4842
|
value: e = "",
|
|
4797
4843
|
locale: t = "fr-FR",
|
|
@@ -4800,7 +4846,7 @@ const Gl = Ue(
|
|
|
4800
4846
|
onChange: a,
|
|
4801
4847
|
...i
|
|
4802
4848
|
}, s) => {
|
|
4803
|
-
const l =
|
|
4849
|
+
const l = $(() => {
|
|
4804
4850
|
if (a) {
|
|
4805
4851
|
let c = e.replace(",", ".");
|
|
4806
4852
|
a(parseFloat(c || "0").toFixed(2));
|
|
@@ -4817,7 +4863,7 @@ const Gl = Ue(
|
|
|
4817
4863
|
}
|
|
4818
4864
|
);
|
|
4819
4865
|
}
|
|
4820
|
-
), Ve = (e = 12) => `${e / 12 * 100}%`,
|
|
4866
|
+
), Ve = (e = 12) => `${e / 12 * 100}%`, cl = Rn.div`
|
|
4821
4867
|
padding: 0 15px;
|
|
4822
4868
|
flex: 0 0 ${({ $xs: e }) => Ve(e)};
|
|
4823
4869
|
max-width: ${({ $xs: e }) => Ve(e)};
|
|
@@ -4843,7 +4889,7 @@ const Gl = Ue(
|
|
|
4843
4889
|
max-width: ${Ve(e)};
|
|
4844
4890
|
}
|
|
4845
4891
|
`}
|
|
4846
|
-
`,
|
|
4892
|
+
`, ll = ({ xs: e, sm: t, md: r, lg: n, children: a }) => /* @__PURE__ */ o.jsx(cl, { $xs: e, $sm: t, $md: r, $lg: n, children: a }), ul = ({ children: e }) => /* @__PURE__ */ o.jsx("div", { className: "container", children: e }), dl = ({ children: e, className: t, scroll: r }) => /* @__PURE__ */ o.jsx("div", { className: `grid-row ${t ?? ""} ${r ? "scroll" : ""}`, children: e }), ql = ({ items: e, className: t, scroll: r }) => /* @__PURE__ */ o.jsx(ul, { children: /* @__PURE__ */ o.jsx(dl, { scroll: r, className: t, children: e.map((n, a) => /* @__PURE__ */ o.jsx(ll, { ...n }, a)) }) }), Xl = ({
|
|
4847
4893
|
children: e,
|
|
4848
4894
|
logo: t,
|
|
4849
4895
|
onClickMenu: r,
|
|
@@ -4853,14 +4899,14 @@ const Gl = Ue(
|
|
|
4853
4899
|
showBackNavigation: s,
|
|
4854
4900
|
onClickBackNavigation: l
|
|
4855
4901
|
}) => {
|
|
4856
|
-
const c = oe(null), [d, f] =
|
|
4902
|
+
const c = oe(null), [d, f] = W(!1), h = $(() => {
|
|
4857
4903
|
f(!d);
|
|
4858
4904
|
}, [d, f]);
|
|
4859
4905
|
return /* @__PURE__ */ o.jsxs("div", { className: `header ${a ? "header--fixed" : ""}`, children: [
|
|
4860
4906
|
/* @__PURE__ */ o.jsxs("div", { className: "flex-1 d-flex align-items-center", children: [
|
|
4861
|
-
/* @__PURE__ */ o.jsx("span", { onClick: r, children: /* @__PURE__ */ o.jsx(
|
|
4907
|
+
/* @__PURE__ */ o.jsx("span", { onClick: r, children: /* @__PURE__ */ o.jsx(Y, { size: xe.MEDIUM, classIcon: "bi-list" }) }),
|
|
4862
4908
|
s && /* @__PURE__ */ o.jsx("span", { className: "chevron-back", onClick: l, children: /* @__PURE__ */ o.jsx(
|
|
4863
|
-
|
|
4909
|
+
Y,
|
|
4864
4910
|
{
|
|
4865
4911
|
size: xe.EXTRA_SMALL,
|
|
4866
4912
|
classIcon: "bi-caret-left-fill"
|
|
@@ -4877,7 +4923,7 @@ const Gl = Ue(
|
|
|
4877
4923
|
] }),
|
|
4878
4924
|
/* @__PURE__ */ o.jsxs("div", { className: "d-flex align-items-center", children: [
|
|
4879
4925
|
e,
|
|
4880
|
-
/* @__PURE__ */ o.jsx("div", { ref: c, onClick:
|
|
4926
|
+
/* @__PURE__ */ o.jsx("div", { ref: c, onClick: h, children: /* @__PURE__ */ o.jsx(Y, { size: xe.MEDIUM, classIcon: "bi-person-circle" }) }),
|
|
4881
4927
|
d && c.current && /* @__PURE__ */ o.jsx(
|
|
4882
4928
|
An,
|
|
4883
4929
|
{
|
|
@@ -4890,7 +4936,7 @@ const Gl = Ue(
|
|
|
4890
4936
|
)
|
|
4891
4937
|
] })
|
|
4892
4938
|
] });
|
|
4893
|
-
},
|
|
4939
|
+
}, Kl = ({ text: e, severity: t, className: r }) => {
|
|
4894
4940
|
const n = Le(() => {
|
|
4895
4941
|
switch (t) {
|
|
4896
4942
|
case "info":
|
|
@@ -4906,10 +4952,10 @@ const Gl = Ue(
|
|
|
4906
4952
|
}
|
|
4907
4953
|
}, [t]);
|
|
4908
4954
|
return /* @__PURE__ */ o.jsxs("div", { className: `message message--${t} ${r ?? ""}`, children: [
|
|
4909
|
-
/* @__PURE__ */ o.jsx(
|
|
4955
|
+
/* @__PURE__ */ o.jsx(Y, { classIcon: n }),
|
|
4910
4956
|
/* @__PURE__ */ o.jsx("span", { className: "message-text", children: e })
|
|
4911
4957
|
] });
|
|
4912
|
-
},
|
|
4958
|
+
}, Jl = ({
|
|
4913
4959
|
isOpen: e,
|
|
4914
4960
|
onClose: t,
|
|
4915
4961
|
children: r,
|
|
@@ -4934,7 +4980,7 @@ const Gl = Ue(
|
|
|
4934
4980
|
children: [
|
|
4935
4981
|
/* @__PURE__ */ o.jsxs("div", { className: "modal-header", children: [
|
|
4936
4982
|
i && /* @__PURE__ */ o.jsx("h2", { className: "modal-title", children: i }),
|
|
4937
|
-
/* @__PURE__ */ o.jsx("div", { className: "modal-close-button", onClick: t, children: /* @__PURE__ */ o.jsx(
|
|
4983
|
+
/* @__PURE__ */ o.jsx("div", { className: "modal-close-button", onClick: t, children: /* @__PURE__ */ o.jsx(Y, { classIcon: "bi-x-lg" }) })
|
|
4938
4984
|
] }),
|
|
4939
4985
|
/* @__PURE__ */ o.jsx("div", { className: "modal-content", children: r }),
|
|
4940
4986
|
n && /* @__PURE__ */ o.jsx("div", { className: "d-flex justify-content-end", children: /* @__PURE__ */ o.jsx(xt, { onClick: n, title: a ?? "" }) })
|
|
@@ -4943,7 +4989,7 @@ const Gl = Ue(
|
|
|
4943
4989
|
) }),
|
|
4944
4990
|
document.body
|
|
4945
4991
|
);
|
|
4946
|
-
},
|
|
4992
|
+
}, Ql = Ue(
|
|
4947
4993
|
({
|
|
4948
4994
|
arrayBuffer: e,
|
|
4949
4995
|
displayToolBar: t = !1,
|
|
@@ -4953,18 +4999,18 @@ const Gl = Ue(
|
|
|
4953
4999
|
title: i,
|
|
4954
5000
|
id: s
|
|
4955
5001
|
}, l) => {
|
|
4956
|
-
const [c, d] =
|
|
4957
|
-
const
|
|
5002
|
+
const [c, d] = W(null), f = $(async () => {
|
|
5003
|
+
const h = new Blob([e], { type: "application/pdf" }), g = URL.createObjectURL(h);
|
|
4958
5004
|
if (!t) {
|
|
4959
|
-
const
|
|
4960
|
-
d(
|
|
5005
|
+
const v = `${g}#toolbar=0&navpanes=0&scrollbar=0`;
|
|
5006
|
+
d(v);
|
|
4961
5007
|
return;
|
|
4962
5008
|
}
|
|
4963
5009
|
d(g);
|
|
4964
5010
|
}, [e, t, d]);
|
|
4965
|
-
return
|
|
5011
|
+
return H(() => {
|
|
4966
5012
|
f();
|
|
4967
|
-
}, [e, f]),
|
|
5013
|
+
}, [e, f]), H(() => () => {
|
|
4968
5014
|
c && URL.revokeObjectURL(c);
|
|
4969
5015
|
}, [c]), /* @__PURE__ */ o.jsx(o.Fragment, { children: c && /* @__PURE__ */ o.jsx(
|
|
4970
5016
|
"iframe",
|
|
@@ -4984,7 +5030,7 @@ const Gl = Ue(
|
|
|
4984
5030
|
}
|
|
4985
5031
|
) });
|
|
4986
5032
|
}
|
|
4987
|
-
),
|
|
5033
|
+
), Zl = ({
|
|
4988
5034
|
setQuantity: e,
|
|
4989
5035
|
item: t,
|
|
4990
5036
|
onClickQuantity: r,
|
|
@@ -4993,22 +5039,22 @@ const Gl = Ue(
|
|
|
4993
5039
|
disabledMinus: i,
|
|
4994
5040
|
pas: s
|
|
4995
5041
|
}) => {
|
|
4996
|
-
const [l, c] =
|
|
4997
|
-
(
|
|
4998
|
-
n || (c(
|
|
5042
|
+
const [l, c] = W(s), d = $(
|
|
5043
|
+
(v) => {
|
|
5044
|
+
n || (c(v), e && e(t, v));
|
|
4999
5045
|
},
|
|
5000
5046
|
[c, e]
|
|
5001
|
-
), f =
|
|
5002
|
-
(
|
|
5003
|
-
if (
|
|
5047
|
+
), f = $(
|
|
5048
|
+
(v) => {
|
|
5049
|
+
if (v.stopPropagation(), n || a)
|
|
5004
5050
|
return;
|
|
5005
5051
|
const m = l + s;
|
|
5006
5052
|
d(Math.round(m * 100) / 100);
|
|
5007
5053
|
},
|
|
5008
5054
|
[l, d]
|
|
5009
|
-
),
|
|
5010
|
-
(
|
|
5011
|
-
if (
|
|
5055
|
+
), h = $(
|
|
5056
|
+
(v) => {
|
|
5057
|
+
if (v.stopPropagation(), n || i)
|
|
5012
5058
|
return;
|
|
5013
5059
|
if (l === 0)
|
|
5014
5060
|
return l;
|
|
@@ -5017,12 +5063,12 @@ const Gl = Ue(
|
|
|
5017
5063
|
},
|
|
5018
5064
|
[d, l]
|
|
5019
5065
|
);
|
|
5020
|
-
|
|
5066
|
+
H(() => {
|
|
5021
5067
|
t.quantity && c(t.quantity);
|
|
5022
5068
|
}, [t.quantity, c]);
|
|
5023
|
-
const g =
|
|
5024
|
-
(
|
|
5025
|
-
|
|
5069
|
+
const g = $(
|
|
5070
|
+
(v) => {
|
|
5071
|
+
v.stopPropagation(), r && r(t);
|
|
5026
5072
|
},
|
|
5027
5073
|
[r, t]
|
|
5028
5074
|
);
|
|
@@ -5030,22 +5076,22 @@ const Gl = Ue(
|
|
|
5030
5076
|
/* @__PURE__ */ o.jsx(
|
|
5031
5077
|
"div",
|
|
5032
5078
|
{
|
|
5033
|
-
onClick: (
|
|
5079
|
+
onClick: (v) => h(v),
|
|
5034
5080
|
className: `qte-action qte-action--minus ${n || i ? "disabled" : ""} `,
|
|
5035
|
-
children: /* @__PURE__ */ o.jsx(
|
|
5081
|
+
children: /* @__PURE__ */ o.jsx(Y, { size: xe.LARGE, classIcon: "bi bi-dash-square" })
|
|
5036
5082
|
}
|
|
5037
5083
|
),
|
|
5038
|
-
/* @__PURE__ */ o.jsx("span", { onClick: (
|
|
5084
|
+
/* @__PURE__ */ o.jsx("span", { onClick: (v) => g(v), className: "qte-label", children: l }),
|
|
5039
5085
|
/* @__PURE__ */ o.jsx(
|
|
5040
5086
|
"div",
|
|
5041
5087
|
{
|
|
5042
|
-
onClick: (
|
|
5088
|
+
onClick: (v) => f(v),
|
|
5043
5089
|
className: `qte-action qte-action--plus ${n || a ? "disabled" : ""}`,
|
|
5044
|
-
children: /* @__PURE__ */ o.jsx(
|
|
5090
|
+
children: /* @__PURE__ */ o.jsx(Y, { size: xe.LARGE, classIcon: "bi bi-plus-square" })
|
|
5045
5091
|
}
|
|
5046
5092
|
)
|
|
5047
5093
|
] });
|
|
5048
|
-
},
|
|
5094
|
+
}, eu = Ue(
|
|
5049
5095
|
({
|
|
5050
5096
|
children: e,
|
|
5051
5097
|
name: t,
|
|
@@ -5057,7 +5103,7 @@ const Gl = Ue(
|
|
|
5057
5103
|
setIsVisible: l,
|
|
5058
5104
|
id: c
|
|
5059
5105
|
}, d) => {
|
|
5060
|
-
const [f,
|
|
5106
|
+
const [f, h] = W(n ?? !1), g = oe(null), v = oe(null), m = Le(
|
|
5061
5107
|
() => [
|
|
5062
5108
|
{
|
|
5063
5109
|
value: "",
|
|
@@ -5073,47 +5119,47 @@ const Gl = Ue(
|
|
|
5073
5119
|
],
|
|
5074
5120
|
[r, a]
|
|
5075
5121
|
);
|
|
5076
|
-
|
|
5077
|
-
n !== void 0 &&
|
|
5122
|
+
H(() => {
|
|
5123
|
+
n !== void 0 && h(n);
|
|
5078
5124
|
}, [n]);
|
|
5079
|
-
const p =
|
|
5080
|
-
(
|
|
5081
|
-
l && l(
|
|
5125
|
+
const p = $(
|
|
5126
|
+
(y) => {
|
|
5127
|
+
l && l(y), h(y);
|
|
5082
5128
|
},
|
|
5083
5129
|
[l]
|
|
5084
|
-
), w =
|
|
5085
|
-
(
|
|
5086
|
-
if (!
|
|
5130
|
+
), w = $(
|
|
5131
|
+
(y) => {
|
|
5132
|
+
if (!y || !y[t ?? "recherche"])
|
|
5087
5133
|
return p(!1);
|
|
5088
5134
|
p(!0), g.current && clearTimeout(g.current), g.current = setTimeout(() => {
|
|
5089
|
-
s && s(
|
|
5135
|
+
s && s(y);
|
|
5090
5136
|
}, i ?? 500);
|
|
5091
5137
|
},
|
|
5092
5138
|
[p, s, i]
|
|
5093
|
-
), j =
|
|
5094
|
-
(
|
|
5095
|
-
console.log("Form Submitted: ",
|
|
5139
|
+
), j = $(
|
|
5140
|
+
(y) => {
|
|
5141
|
+
console.log("Form Submitted: ", y);
|
|
5096
5142
|
},
|
|
5097
5143
|
[]
|
|
5098
5144
|
);
|
|
5099
5145
|
return Dr(d, () => ({
|
|
5100
|
-
clearInput: (
|
|
5146
|
+
clearInput: (y) => {
|
|
5101
5147
|
var D;
|
|
5102
|
-
(D =
|
|
5148
|
+
(D = v.current) == null || D.clearInput(y);
|
|
5103
5149
|
},
|
|
5104
5150
|
resetForm: () => {
|
|
5105
|
-
var
|
|
5106
|
-
(
|
|
5151
|
+
var y;
|
|
5152
|
+
(y = v.current) == null || y.resetForm();
|
|
5107
5153
|
},
|
|
5108
5154
|
focusInitialElement: () => {
|
|
5109
|
-
var
|
|
5110
|
-
(
|
|
5155
|
+
var y;
|
|
5156
|
+
(y = v.current) == null || y.focusInitialElement();
|
|
5111
5157
|
}
|
|
5112
5158
|
})), /* @__PURE__ */ o.jsxs("div", { className: "search", children: [
|
|
5113
5159
|
/* @__PURE__ */ o.jsx(
|
|
5114
5160
|
fo,
|
|
5115
5161
|
{
|
|
5116
|
-
ref:
|
|
5162
|
+
ref: v,
|
|
5117
5163
|
onSubmit: j,
|
|
5118
5164
|
onChange: w,
|
|
5119
5165
|
hideSubmit: !0,
|
|
@@ -5126,14 +5172,14 @@ const Gl = Ue(
|
|
|
5126
5172
|
{
|
|
5127
5173
|
className: "toggle-btn",
|
|
5128
5174
|
onClick: () => p(!1),
|
|
5129
|
-
children: /* @__PURE__ */ o.jsx(
|
|
5175
|
+
children: /* @__PURE__ */ o.jsx(Y, { classIcon: "bi-x-lg" })
|
|
5130
5176
|
}
|
|
5131
5177
|
) }),
|
|
5132
5178
|
/* @__PURE__ */ o.jsx("div", { className: "search-result-content", children: e })
|
|
5133
5179
|
] })
|
|
5134
5180
|
] });
|
|
5135
5181
|
}
|
|
5136
|
-
),
|
|
5182
|
+
), fl = ({
|
|
5137
5183
|
open: e,
|
|
5138
5184
|
children: t,
|
|
5139
5185
|
title: r,
|
|
@@ -5144,21 +5190,21 @@ const Gl = Ue(
|
|
|
5144
5190
|
closeOnClickOutside: l = !0,
|
|
5145
5191
|
displayOverlay: c = !0
|
|
5146
5192
|
}) => {
|
|
5147
|
-
const [d, f] =
|
|
5148
|
-
|
|
5193
|
+
const [d, f] = W(e || !1), h = oe(null), g = oe(null);
|
|
5194
|
+
H(() => (g.current || (g.current = document.createElement("div"), g.current.id = `sidebar-root-${i || crypto.randomUUID()}`, document.body.appendChild(g.current)), () => {
|
|
5149
5195
|
g.current && g.current.parentNode && (document.body.removeChild(g.current), g.current = null);
|
|
5150
|
-
}), [i]),
|
|
5196
|
+
}), [i]), H(() => {
|
|
5151
5197
|
f(e || !1);
|
|
5152
5198
|
}, [e]);
|
|
5153
|
-
const
|
|
5199
|
+
const v = $(() => {
|
|
5154
5200
|
f(!1), n && n(!1);
|
|
5155
|
-
}, [n]), m =
|
|
5201
|
+
}, [n]), m = $(
|
|
5156
5202
|
(p) => {
|
|
5157
|
-
l &&
|
|
5203
|
+
l && h.current && !h.current.contains(p.target) && v();
|
|
5158
5204
|
},
|
|
5159
|
-
[
|
|
5205
|
+
[v, l]
|
|
5160
5206
|
);
|
|
5161
|
-
return
|
|
5207
|
+
return H(() => (d ? document.addEventListener("mousedown", m) : document.removeEventListener("mousedown", m), () => {
|
|
5162
5208
|
document.removeEventListener("mousedown", m);
|
|
5163
5209
|
}), [d, m]), g.current ? Nn.createPortal(
|
|
5164
5210
|
/* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
@@ -5166,13 +5212,13 @@ const Gl = Ue(
|
|
|
5166
5212
|
/* @__PURE__ */ o.jsxs(
|
|
5167
5213
|
"div",
|
|
5168
5214
|
{
|
|
5169
|
-
ref:
|
|
5215
|
+
ref: h,
|
|
5170
5216
|
style: s ? { width: s } : {},
|
|
5171
5217
|
className: `sidebar ${d ? "open" : "closed"} ${a ?? ""}`,
|
|
5172
5218
|
children: [
|
|
5173
5219
|
/* @__PURE__ */ o.jsxs("div", { className: "sidebar-header", children: [
|
|
5174
5220
|
r && /* @__PURE__ */ o.jsx("h2", { className: "flex-1", children: r }),
|
|
5175
|
-
/* @__PURE__ */ o.jsx("button", { className: "toggle-btn", onClick:
|
|
5221
|
+
/* @__PURE__ */ o.jsx("button", { className: "toggle-btn", onClick: v, children: /* @__PURE__ */ o.jsx(Y, { classIcon: "bi-x-lg" }) })
|
|
5176
5222
|
] }),
|
|
5177
5223
|
t && t
|
|
5178
5224
|
]
|
|
@@ -5181,7 +5227,7 @@ const Gl = Ue(
|
|
|
5181
5227
|
] }),
|
|
5182
5228
|
g.current
|
|
5183
5229
|
) : /* @__PURE__ */ o.jsx(o.Fragment, {});
|
|
5184
|
-
},
|
|
5230
|
+
}, tu = (e) => /* @__PURE__ */ o.jsx(fl, { ...e, className: `full sidebar-data ${e.className}`, children: e.children && /* @__PURE__ */ o.jsx("div", { className: `sidebar-data-content ${e.classNameContent} `, children: e.children }) }), ru = ({
|
|
5185
5231
|
items: e,
|
|
5186
5232
|
defaultIndex: t = 0,
|
|
5187
5233
|
index: r,
|
|
@@ -5190,56 +5236,56 @@ const Gl = Ue(
|
|
|
5190
5236
|
tabClassName: i = "",
|
|
5191
5237
|
panelClassName: s = ""
|
|
5192
5238
|
}) => {
|
|
5193
|
-
const l = typeof r == "number", [c, d] =
|
|
5194
|
-
|
|
5239
|
+
const l = typeof r == "number", [c, d] = W(t), f = l ? r : c;
|
|
5240
|
+
H(() => {
|
|
5195
5241
|
!l && (t < 0 || t >= e.length) && d(0);
|
|
5196
5242
|
}, [t, e.length, l]);
|
|
5197
|
-
const
|
|
5243
|
+
const h = oe([]), g = (v) => {
|
|
5198
5244
|
var m, p;
|
|
5199
|
-
(m = e[
|
|
5245
|
+
(m = e[v]) != null && m.disabled || (l || d(v), n == null || n(v), (p = h.current[v]) == null || p.focus());
|
|
5200
5246
|
};
|
|
5201
5247
|
return /* @__PURE__ */ o.jsxs("div", { className: `tabs-root ${a}`, children: [
|
|
5202
|
-
/* @__PURE__ */ o.jsx("div", { role: "tablist", className: "tabs-header", children: e.map((
|
|
5248
|
+
/* @__PURE__ */ o.jsx("div", { role: "tablist", className: "tabs-header", children: e.map((v, m) => /* @__PURE__ */ o.jsx(
|
|
5203
5249
|
"button",
|
|
5204
5250
|
{
|
|
5205
|
-
ref: (p) =>
|
|
5251
|
+
ref: (p) => h.current[m] = p,
|
|
5206
5252
|
role: "tab",
|
|
5207
|
-
id: `tab-${
|
|
5253
|
+
id: `tab-${v.key}`,
|
|
5208
5254
|
"aria-selected": f === m,
|
|
5209
|
-
"aria-controls": `panel-${
|
|
5255
|
+
"aria-controls": `panel-${v.key}`,
|
|
5210
5256
|
tabIndex: f === m ? 0 : -1,
|
|
5211
|
-
disabled:
|
|
5257
|
+
disabled: v.disabled,
|
|
5212
5258
|
onClick: () => g(m),
|
|
5213
|
-
className: `${i} tab-button ${f === m ? "tab-button--active" : ""} ${
|
|
5214
|
-
children:
|
|
5259
|
+
className: `${i} tab-button ${f === m ? "tab-button--active" : ""} ${v.disabled ? "tab-button--disabled" : ""}`,
|
|
5260
|
+
children: v.title
|
|
5215
5261
|
},
|
|
5216
|
-
`tab-${
|
|
5262
|
+
`tab-${v.key}`
|
|
5217
5263
|
)) }),
|
|
5218
|
-
e.map((
|
|
5264
|
+
e.map((v, m) => /* @__PURE__ */ o.jsx(
|
|
5219
5265
|
"div",
|
|
5220
5266
|
{
|
|
5221
5267
|
role: "tabpanel",
|
|
5222
|
-
id: `panel-${
|
|
5223
|
-
"aria-labelledby": `tab-${
|
|
5268
|
+
id: `panel-${v.key}`,
|
|
5269
|
+
"aria-labelledby": `tab-${v.key}`,
|
|
5224
5270
|
hidden: f !== m,
|
|
5225
5271
|
className: `${s} mt-3`,
|
|
5226
|
-
children: f === m &&
|
|
5272
|
+
children: f === m && v.panel
|
|
5227
5273
|
},
|
|
5228
|
-
`panel-${
|
|
5274
|
+
`panel-${v.key}`
|
|
5229
5275
|
))
|
|
5230
5276
|
] });
|
|
5231
5277
|
}, Pa = (e) => {
|
|
5232
5278
|
let t;
|
|
5233
5279
|
const r = /* @__PURE__ */ new Set(), n = (d, f) => {
|
|
5234
|
-
const
|
|
5235
|
-
if (!Object.is(
|
|
5280
|
+
const h = typeof d == "function" ? d(t) : d;
|
|
5281
|
+
if (!Object.is(h, t)) {
|
|
5236
5282
|
const g = t;
|
|
5237
|
-
t = f ?? (typeof
|
|
5283
|
+
t = f ?? (typeof h != "object" || h === null) ? h : Object.assign({}, t, h), r.forEach((v) => v(t, g));
|
|
5238
5284
|
}
|
|
5239
5285
|
}, a = () => t, l = { setState: n, getState: a, getInitialState: () => c, subscribe: (d) => (r.add(d), () => r.delete(d)) }, c = t = e(n, a, l);
|
|
5240
5286
|
return l;
|
|
5241
|
-
},
|
|
5242
|
-
function
|
|
5287
|
+
}, hl = (e) => e ? Pa(e) : Pa, vl = (e) => e;
|
|
5288
|
+
function ml(e, t = vl) {
|
|
5243
5289
|
const r = Re.useSyncExternalStore(
|
|
5244
5290
|
e.subscribe,
|
|
5245
5291
|
() => t(e.getState()),
|
|
@@ -5248,9 +5294,9 @@ function vl(e, t = hl) {
|
|
|
5248
5294
|
return Re.useDebugValue(r), r;
|
|
5249
5295
|
}
|
|
5250
5296
|
const Ta = (e) => {
|
|
5251
|
-
const t =
|
|
5297
|
+
const t = hl(e), r = (n) => ml(t, n);
|
|
5252
5298
|
return Object.assign(r, t), r;
|
|
5253
|
-
},
|
|
5299
|
+
}, pl = (e) => e ? Ta(e) : Ta, gl = pl((e) => ({
|
|
5254
5300
|
title: "",
|
|
5255
5301
|
description: "",
|
|
5256
5302
|
severity: "info",
|
|
@@ -5267,7 +5313,7 @@ const Ta = (e) => {
|
|
|
5267
5313
|
children: r.children || null
|
|
5268
5314
|
})),
|
|
5269
5315
|
hideToast: () => e(() => ({ visible: !1 }))
|
|
5270
|
-
})),
|
|
5316
|
+
})), nu = () => {
|
|
5271
5317
|
const {
|
|
5272
5318
|
title: e,
|
|
5273
5319
|
description: t,
|
|
@@ -5277,10 +5323,10 @@ const Ta = (e) => {
|
|
|
5277
5323
|
duration: i,
|
|
5278
5324
|
hideToast: s,
|
|
5279
5325
|
close: l
|
|
5280
|
-
} =
|
|
5326
|
+
} = gl(), c = $(() => {
|
|
5281
5327
|
s();
|
|
5282
5328
|
}, [s]);
|
|
5283
|
-
if (
|
|
5329
|
+
if (H(() => {
|
|
5284
5330
|
if (!n) return;
|
|
5285
5331
|
const f = setTimeout(() => {
|
|
5286
5332
|
s();
|
|
@@ -5290,12 +5336,12 @@ const Ta = (e) => {
|
|
|
5290
5336
|
const d = document.getElementById("toaster-root");
|
|
5291
5337
|
return d ? Nn.createPortal(
|
|
5292
5338
|
/* @__PURE__ */ o.jsxs("div", { className: `toaster toaster-${r}`, children: [
|
|
5293
|
-
l && /* @__PURE__ */ o.jsx("div", { className: "toaster--close", onClick: c, children: /* @__PURE__ */ o.jsx(
|
|
5339
|
+
l && /* @__PURE__ */ o.jsx("div", { className: "toaster--close", onClick: c, children: /* @__PURE__ */ o.jsx(Y, { classIcon: "bi-x" }) }),
|
|
5294
5340
|
/* @__PURE__ */ o.jsxs("div", { children: [
|
|
5295
|
-
r === "info" && /* @__PURE__ */ o.jsx(
|
|
5296
|
-
r === "success" && /* @__PURE__ */ o.jsx(
|
|
5297
|
-
r === "error" && /* @__PURE__ */ o.jsx(
|
|
5298
|
-
r === "warning" && /* @__PURE__ */ o.jsx(
|
|
5341
|
+
r === "info" && /* @__PURE__ */ o.jsx(Y, { classIcon: "bi-info-circle" }),
|
|
5342
|
+
r === "success" && /* @__PURE__ */ o.jsx(Y, { classIcon: "bi-check-circle" }),
|
|
5343
|
+
r === "error" && /* @__PURE__ */ o.jsx(Y, { classIcon: "bi-x-circle" }),
|
|
5344
|
+
r === "warning" && /* @__PURE__ */ o.jsx(Y, { classIcon: "bi-exclamation-triangle" })
|
|
5299
5345
|
] }),
|
|
5300
5346
|
/* @__PURE__ */ o.jsxs("div", { children: [
|
|
5301
5347
|
/* @__PURE__ */ o.jsx("div", { className: `title title-${r}`, children: e }),
|
|
@@ -5309,55 +5355,55 @@ const Ta = (e) => {
|
|
|
5309
5355
|
export {
|
|
5310
5356
|
La as Badge,
|
|
5311
5357
|
xt as Button,
|
|
5312
|
-
|
|
5313
|
-
|
|
5314
|
-
|
|
5315
|
-
|
|
5316
|
-
|
|
5317
|
-
|
|
5318
|
-
|
|
5319
|
-
|
|
5320
|
-
|
|
5358
|
+
Il as ButtonAction,
|
|
5359
|
+
Ll as ButtonActions,
|
|
5360
|
+
Ml as ButtonFile,
|
|
5361
|
+
Fl as ButtonFilters,
|
|
5362
|
+
Wl as Card,
|
|
5363
|
+
Vl as Carousel,
|
|
5364
|
+
Yl as Damier,
|
|
5365
|
+
Bl as DataTable,
|
|
5366
|
+
Ul as DatePicker,
|
|
5321
5367
|
fo as DynamicForm,
|
|
5322
|
-
|
|
5323
|
-
|
|
5324
|
-
|
|
5325
|
-
|
|
5326
|
-
|
|
5327
|
-
|
|
5328
|
-
|
|
5368
|
+
zl as Expands,
|
|
5369
|
+
Gl as FilAriane,
|
|
5370
|
+
El as FormatDate,
|
|
5371
|
+
ql as Grid,
|
|
5372
|
+
Xl as Header,
|
|
5373
|
+
xl as HistoryProvider,
|
|
5374
|
+
Y as Icon,
|
|
5329
5375
|
xe as IconSizeEnum,
|
|
5330
|
-
|
|
5331
|
-
|
|
5376
|
+
jl as ImageChecker,
|
|
5377
|
+
Sl as ImageExist,
|
|
5332
5378
|
wr as Input,
|
|
5333
5379
|
Wo as InputNumber,
|
|
5334
|
-
|
|
5380
|
+
Hl as InputPrice,
|
|
5335
5381
|
pa as Loader,
|
|
5336
|
-
|
|
5382
|
+
kl as LocalDateStringToUTC,
|
|
5337
5383
|
Ma as Menus,
|
|
5338
|
-
|
|
5339
|
-
|
|
5384
|
+
Kl as Message,
|
|
5385
|
+
Jl as Modal,
|
|
5340
5386
|
An as OverlayPanel,
|
|
5341
|
-
|
|
5342
|
-
|
|
5343
|
-
|
|
5344
|
-
|
|
5387
|
+
$l as OverlayProvider,
|
|
5388
|
+
Ql as PdfViewer,
|
|
5389
|
+
Zl as Quantity,
|
|
5390
|
+
eu as Search,
|
|
5345
5391
|
uo as Select,
|
|
5346
|
-
|
|
5347
|
-
|
|
5348
|
-
|
|
5392
|
+
fl as Sidebar,
|
|
5393
|
+
tu as SidebarData,
|
|
5394
|
+
ru as Tabs,
|
|
5349
5395
|
gs as TextArea,
|
|
5350
|
-
|
|
5396
|
+
nu as Toaster,
|
|
5351
5397
|
Be as TypeInputEnum,
|
|
5352
|
-
|
|
5353
|
-
|
|
5354
|
-
|
|
5355
|
-
|
|
5356
|
-
|
|
5357
|
-
|
|
5358
|
-
|
|
5359
|
-
|
|
5360
|
-
|
|
5361
|
-
|
|
5362
|
-
|
|
5398
|
+
Al as WidgetSupport,
|
|
5399
|
+
Dl as isValidEAN13,
|
|
5400
|
+
_l as localDateEndToUTC,
|
|
5401
|
+
Cl as localDateStartToUTC,
|
|
5402
|
+
Ol as objectToQueryParams,
|
|
5403
|
+
Nl as useCurrency,
|
|
5404
|
+
wl as useHistoryDepth,
|
|
5405
|
+
Pl as useIsMobile,
|
|
5406
|
+
gl as useToasterStore,
|
|
5407
|
+
Tl as useToken,
|
|
5408
|
+
Rl as useValidate
|
|
5363
5409
|
};
|