kelt-ui-kit-react 1.9.2 → 1.9.3
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/header/Header.d.ts +1 -1
- package/dist/header/header.interface.d.ts +1 -0
- package/dist/index.js +730 -715
- package/dist/overlayPanel/OverlayPanel.d.ts +1 -0
- package/package.json +1 -1
- package/src/header/Header.tsx +2 -0
- package/src/header/header.interface.tsx +1 -0
- package/src/overlayPanel/OverlayPanel.tsx +13 -6
- package/src/overlayPanel/overlayPanelStyled/OverlayPanelStyled.tsx +1 -1
package/dist/index.js
CHANGED
|
@@ -20,9 +20,9 @@ function qo() {
|
|
|
20
20
|
if (qn) return It;
|
|
21
21
|
qn = 1;
|
|
22
22
|
var e = $e, t = Symbol.for("react.element"), r = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, a = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
23
|
-
function s(l, c,
|
|
23
|
+
function s(l, c, d) {
|
|
24
24
|
var f, v = {}, g = null, h = null;
|
|
25
|
-
|
|
25
|
+
d !== void 0 && (g = "" + d), c.key !== void 0 && (g = "" + c.key), c.ref !== void 0 && (h = c.ref);
|
|
26
26
|
for (f in c) n.call(c, f) && !i.hasOwnProperty(f) && (v[f] = c[f]);
|
|
27
27
|
if (l && l.defaultProps) for (f in c = l.defaultProps, c) v[f] === void 0 && (v[f] = c[f]);
|
|
28
28
|
return { $$typeof: t, type: l, key: g, ref: h, props: v, _owner: a.current };
|
|
@@ -42,58 +42,58 @@ var $t = {};
|
|
|
42
42
|
var Xn;
|
|
43
43
|
function Xo() {
|
|
44
44
|
return Xn || (Xn = 1, process.env.NODE_ENV !== "production" && function() {
|
|
45
|
-
var e = $e, 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"),
|
|
46
|
-
function y(
|
|
47
|
-
if (
|
|
45
|
+
var e = $e, 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"), v = Symbol.for("react.memo"), g = Symbol.for("react.lazy"), h = Symbol.for("react.offscreen"), m = Symbol.iterator, p = "@@iterator";
|
|
46
|
+
function y(u) {
|
|
47
|
+
if (u === null || typeof u != "object")
|
|
48
48
|
return null;
|
|
49
|
-
var x = m &&
|
|
49
|
+
var x = m && u[m] || u[p];
|
|
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 w(
|
|
53
|
+
function w(u) {
|
|
54
54
|
{
|
|
55
|
-
for (var x = arguments.length,
|
|
56
|
-
|
|
57
|
-
N("error",
|
|
55
|
+
for (var x = arguments.length, E = new Array(x > 1 ? x - 1 : 0), I = 1; I < x; I++)
|
|
56
|
+
E[I - 1] = arguments[I];
|
|
57
|
+
N("error", u, E);
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
|
-
function N(
|
|
60
|
+
function N(u, x, E) {
|
|
61
61
|
{
|
|
62
|
-
var I = j.ReactDebugCurrentFrame,
|
|
63
|
-
|
|
64
|
-
var C =
|
|
65
|
-
return String(
|
|
62
|
+
var I = j.ReactDebugCurrentFrame, G = I.getStackAddendum();
|
|
63
|
+
G !== "" && (x += "%s", E = E.concat([G]));
|
|
64
|
+
var C = E.map(function(P) {
|
|
65
|
+
return String(P);
|
|
66
66
|
});
|
|
67
|
-
C.unshift("Warning: " + x), Function.prototype.apply.call(console[
|
|
67
|
+
C.unshift("Warning: " + x), Function.prototype.apply.call(console[u], console, C);
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
|
-
var
|
|
70
|
+
var D = !1, S = !1, O = !1, _ = !1, z = !1, b;
|
|
71
71
|
b = Symbol.for("react.module.reference");
|
|
72
|
-
function
|
|
73
|
-
return !!(typeof
|
|
72
|
+
function T(u) {
|
|
73
|
+
return !!(typeof u == "string" || typeof u == "function" || u === n || u === i || z || u === a || u === d || u === f || _ || u === h || D || S || O || typeof u == "object" && u !== null && (u.$$typeof === g || u.$$typeof === v || u.$$typeof === s || u.$$typeof === l || u.$$typeof === c || // This needs to include all possible module reference object
|
|
74
74
|
// types supported by any Flight configuration anywhere since
|
|
75
75
|
// we don't know which Flight build this will end up being used
|
|
76
76
|
// with.
|
|
77
|
-
|
|
77
|
+
u.$$typeof === b || u.getModuleId !== void 0));
|
|
78
78
|
}
|
|
79
|
-
function
|
|
80
|
-
var I =
|
|
79
|
+
function U(u, x, E) {
|
|
80
|
+
var I = u.displayName;
|
|
81
81
|
if (I)
|
|
82
82
|
return I;
|
|
83
|
-
var
|
|
84
|
-
return
|
|
83
|
+
var G = x.displayName || x.name || "";
|
|
84
|
+
return G !== "" ? E + "(" + G + ")" : E;
|
|
85
85
|
}
|
|
86
|
-
function Y(
|
|
87
|
-
return
|
|
86
|
+
function Y(u) {
|
|
87
|
+
return u.displayName || "Context";
|
|
88
88
|
}
|
|
89
|
-
function L(
|
|
90
|
-
if (
|
|
89
|
+
function L(u) {
|
|
90
|
+
if (u == null)
|
|
91
91
|
return null;
|
|
92
|
-
if (typeof
|
|
93
|
-
return
|
|
94
|
-
if (typeof
|
|
95
|
-
return
|
|
96
|
-
switch (
|
|
92
|
+
if (typeof u.tag == "number" && w("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof u == "function")
|
|
93
|
+
return u.displayName || u.name || null;
|
|
94
|
+
if (typeof u == "string")
|
|
95
|
+
return u;
|
|
96
|
+
switch (u) {
|
|
97
97
|
case n:
|
|
98
98
|
return "Fragment";
|
|
99
99
|
case r:
|
|
@@ -102,28 +102,28 @@ function Xo() {
|
|
|
102
102
|
return "Profiler";
|
|
103
103
|
case a:
|
|
104
104
|
return "StrictMode";
|
|
105
|
-
case
|
|
105
|
+
case d:
|
|
106
106
|
return "Suspense";
|
|
107
107
|
case f:
|
|
108
108
|
return "SuspenseList";
|
|
109
109
|
}
|
|
110
|
-
if (typeof
|
|
111
|
-
switch (
|
|
110
|
+
if (typeof u == "object")
|
|
111
|
+
switch (u.$$typeof) {
|
|
112
112
|
case l:
|
|
113
|
-
var x =
|
|
113
|
+
var x = u;
|
|
114
114
|
return Y(x) + ".Consumer";
|
|
115
115
|
case s:
|
|
116
|
-
var
|
|
117
|
-
return Y(
|
|
116
|
+
var E = u;
|
|
117
|
+
return Y(E._context) + ".Provider";
|
|
118
118
|
case c:
|
|
119
|
-
return
|
|
119
|
+
return U(u, u.render, "ForwardRef");
|
|
120
120
|
case v:
|
|
121
|
-
var I =
|
|
122
|
-
return I !== null ? I : L(
|
|
121
|
+
var I = u.displayName || null;
|
|
122
|
+
return I !== null ? I : L(u.type) || "Memo";
|
|
123
123
|
case g: {
|
|
124
|
-
var
|
|
124
|
+
var G = u, C = G._payload, P = G._init;
|
|
125
125
|
try {
|
|
126
|
-
return L(
|
|
126
|
+
return L(P(C));
|
|
127
127
|
} catch {
|
|
128
128
|
return null;
|
|
129
129
|
}
|
|
@@ -139,20 +139,20 @@ function Xo() {
|
|
|
139
139
|
{
|
|
140
140
|
if (pe === 0) {
|
|
141
141
|
de = console.log, xe = console.info, Ee = console.warn, ce = console.error, q = console.group, fe = console.groupCollapsed, oe = console.groupEnd;
|
|
142
|
-
var
|
|
142
|
+
var u = {
|
|
143
143
|
configurable: !0,
|
|
144
144
|
enumerable: !0,
|
|
145
145
|
value: k,
|
|
146
146
|
writable: !0
|
|
147
147
|
};
|
|
148
148
|
Object.defineProperties(console, {
|
|
149
|
-
info:
|
|
150
|
-
log:
|
|
151
|
-
warn:
|
|
152
|
-
error:
|
|
153
|
-
group:
|
|
154
|
-
groupCollapsed:
|
|
155
|
-
groupEnd:
|
|
149
|
+
info: u,
|
|
150
|
+
log: u,
|
|
151
|
+
warn: u,
|
|
152
|
+
error: u,
|
|
153
|
+
group: u,
|
|
154
|
+
groupCollapsed: u,
|
|
155
|
+
groupEnd: u
|
|
156
156
|
});
|
|
157
157
|
}
|
|
158
158
|
pe++;
|
|
@@ -161,31 +161,31 @@ function Xo() {
|
|
|
161
161
|
function $() {
|
|
162
162
|
{
|
|
163
163
|
if (pe--, pe === 0) {
|
|
164
|
-
var
|
|
164
|
+
var u = {
|
|
165
165
|
configurable: !0,
|
|
166
166
|
enumerable: !0,
|
|
167
167
|
writable: !0
|
|
168
168
|
};
|
|
169
169
|
Object.defineProperties(console, {
|
|
170
|
-
log: te({},
|
|
170
|
+
log: te({}, u, {
|
|
171
171
|
value: de
|
|
172
172
|
}),
|
|
173
|
-
info: te({},
|
|
173
|
+
info: te({}, u, {
|
|
174
174
|
value: xe
|
|
175
175
|
}),
|
|
176
|
-
warn: te({},
|
|
176
|
+
warn: te({}, u, {
|
|
177
177
|
value: Ee
|
|
178
178
|
}),
|
|
179
|
-
error: te({},
|
|
179
|
+
error: te({}, u, {
|
|
180
180
|
value: ce
|
|
181
181
|
}),
|
|
182
|
-
group: te({},
|
|
182
|
+
group: te({}, u, {
|
|
183
183
|
value: q
|
|
184
184
|
}),
|
|
185
|
-
groupCollapsed: te({},
|
|
185
|
+
groupCollapsed: te({}, u, {
|
|
186
186
|
value: fe
|
|
187
187
|
}),
|
|
188
|
-
groupEnd: te({},
|
|
188
|
+
groupEnd: te({}, u, {
|
|
189
189
|
value: oe
|
|
190
190
|
})
|
|
191
191
|
});
|
|
@@ -194,17 +194,17 @@ function Xo() {
|
|
|
194
194
|
}
|
|
195
195
|
}
|
|
196
196
|
var F = j.ReactCurrentDispatcher, re;
|
|
197
|
-
function ee(
|
|
197
|
+
function ee(u, x, E) {
|
|
198
198
|
{
|
|
199
199
|
if (re === void 0)
|
|
200
200
|
try {
|
|
201
201
|
throw Error();
|
|
202
|
-
} catch (
|
|
203
|
-
var I =
|
|
202
|
+
} catch (G) {
|
|
203
|
+
var I = G.stack.trim().match(/\n( *(at )?)/);
|
|
204
204
|
re = I && I[1] || "";
|
|
205
205
|
}
|
|
206
206
|
return `
|
|
207
|
-
` + re +
|
|
207
|
+
` + re + u;
|
|
208
208
|
}
|
|
209
209
|
}
|
|
210
210
|
var le = !1, je;
|
|
@@ -212,43 +212,43 @@ function Xo() {
|
|
|
212
212
|
var Se = typeof WeakMap == "function" ? WeakMap : Map;
|
|
213
213
|
je = new Se();
|
|
214
214
|
}
|
|
215
|
-
function J(
|
|
216
|
-
if (!
|
|
215
|
+
function J(u, x) {
|
|
216
|
+
if (!u || le)
|
|
217
217
|
return "";
|
|
218
218
|
{
|
|
219
|
-
var
|
|
220
|
-
if (
|
|
221
|
-
return
|
|
219
|
+
var E = je.get(u);
|
|
220
|
+
if (E !== void 0)
|
|
221
|
+
return E;
|
|
222
222
|
}
|
|
223
223
|
var I;
|
|
224
224
|
le = !0;
|
|
225
|
-
var
|
|
225
|
+
var G = Error.prepareStackTrace;
|
|
226
226
|
Error.prepareStackTrace = void 0;
|
|
227
227
|
var C;
|
|
228
228
|
C = F.current, F.current = null, M();
|
|
229
229
|
try {
|
|
230
230
|
if (x) {
|
|
231
|
-
var
|
|
231
|
+
var P = function() {
|
|
232
232
|
throw Error();
|
|
233
233
|
};
|
|
234
|
-
if (Object.defineProperty(
|
|
234
|
+
if (Object.defineProperty(P.prototype, "props", {
|
|
235
235
|
set: function() {
|
|
236
236
|
throw Error();
|
|
237
237
|
}
|
|
238
238
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
239
239
|
try {
|
|
240
|
-
Reflect.construct(
|
|
240
|
+
Reflect.construct(P, []);
|
|
241
241
|
} catch (Oe) {
|
|
242
242
|
I = Oe;
|
|
243
243
|
}
|
|
244
|
-
Reflect.construct(
|
|
244
|
+
Reflect.construct(u, [], P);
|
|
245
245
|
} else {
|
|
246
246
|
try {
|
|
247
|
-
|
|
247
|
+
P.call();
|
|
248
248
|
} catch (Oe) {
|
|
249
249
|
I = Oe;
|
|
250
250
|
}
|
|
251
|
-
|
|
251
|
+
u.call(P.prototype);
|
|
252
252
|
}
|
|
253
253
|
} else {
|
|
254
254
|
try {
|
|
@@ -256,63 +256,63 @@ function Xo() {
|
|
|
256
256
|
} catch (Oe) {
|
|
257
257
|
I = Oe;
|
|
258
258
|
}
|
|
259
|
-
|
|
259
|
+
u();
|
|
260
260
|
}
|
|
261
261
|
} catch (Oe) {
|
|
262
262
|
if (Oe && I && typeof Oe.stack == "string") {
|
|
263
|
-
for (var
|
|
263
|
+
for (var A = Oe.stack.split(`
|
|
264
264
|
`), Q = I.stack.split(`
|
|
265
|
-
`),
|
|
265
|
+
`), H = A.length - 1, ie = Q.length - 1; H >= 1 && ie >= 0 && A[H] !== Q[ie]; )
|
|
266
266
|
ie--;
|
|
267
|
-
for (;
|
|
268
|
-
if (
|
|
269
|
-
if (
|
|
267
|
+
for (; H >= 1 && ie >= 0; H--, ie--)
|
|
268
|
+
if (A[H] !== Q[ie]) {
|
|
269
|
+
if (H !== 1 || ie !== 1)
|
|
270
270
|
do
|
|
271
|
-
if (
|
|
271
|
+
if (H--, ie--, ie < 0 || A[H] !== Q[ie]) {
|
|
272
272
|
var De = `
|
|
273
|
-
` +
|
|
274
|
-
return
|
|
273
|
+
` + A[H].replace(" at new ", " at ");
|
|
274
|
+
return u.displayName && De.includes("<anonymous>") && (De = De.replace("<anonymous>", u.displayName)), typeof u == "function" && je.set(u, De), De;
|
|
275
275
|
}
|
|
276
|
-
while (
|
|
276
|
+
while (H >= 1 && ie >= 0);
|
|
277
277
|
break;
|
|
278
278
|
}
|
|
279
279
|
}
|
|
280
280
|
} finally {
|
|
281
|
-
le = !1, F.current = C, $(), Error.prepareStackTrace =
|
|
281
|
+
le = !1, F.current = C, $(), Error.prepareStackTrace = G;
|
|
282
282
|
}
|
|
283
|
-
var Ve =
|
|
284
|
-
return typeof
|
|
283
|
+
var Ve = u ? u.displayName || u.name : "", Qe = Ve ? ee(Ve) : "";
|
|
284
|
+
return typeof u == "function" && je.set(u, Qe), Qe;
|
|
285
285
|
}
|
|
286
|
-
function we(
|
|
287
|
-
return J(
|
|
286
|
+
function we(u, x, E) {
|
|
287
|
+
return J(u, !1);
|
|
288
288
|
}
|
|
289
|
-
function K(
|
|
290
|
-
var x =
|
|
289
|
+
function K(u) {
|
|
290
|
+
var x = u.prototype;
|
|
291
291
|
return !!(x && x.isReactComponent);
|
|
292
292
|
}
|
|
293
|
-
function ke(
|
|
294
|
-
if (
|
|
293
|
+
function ke(u, x, E) {
|
|
294
|
+
if (u == null)
|
|
295
295
|
return "";
|
|
296
|
-
if (typeof
|
|
297
|
-
return J(
|
|
298
|
-
if (typeof
|
|
299
|
-
return ee(
|
|
300
|
-
switch (
|
|
301
|
-
case
|
|
296
|
+
if (typeof u == "function")
|
|
297
|
+
return J(u, K(u));
|
|
298
|
+
if (typeof u == "string")
|
|
299
|
+
return ee(u);
|
|
300
|
+
switch (u) {
|
|
301
|
+
case d:
|
|
302
302
|
return ee("Suspense");
|
|
303
303
|
case f:
|
|
304
304
|
return ee("SuspenseList");
|
|
305
305
|
}
|
|
306
|
-
if (typeof
|
|
307
|
-
switch (
|
|
306
|
+
if (typeof u == "object")
|
|
307
|
+
switch (u.$$typeof) {
|
|
308
308
|
case c:
|
|
309
|
-
return we(
|
|
309
|
+
return we(u.render);
|
|
310
310
|
case v:
|
|
311
|
-
return ke(
|
|
311
|
+
return ke(u.type, x, E);
|
|
312
312
|
case g: {
|
|
313
|
-
var I =
|
|
313
|
+
var I = u, G = I._payload, C = I._init;
|
|
314
314
|
try {
|
|
315
|
-
return ke(C(
|
|
315
|
+
return ke(C(G), x, E);
|
|
316
316
|
} catch {
|
|
317
317
|
}
|
|
318
318
|
}
|
|
@@ -320,55 +320,55 @@ function Xo() {
|
|
|
320
320
|
return "";
|
|
321
321
|
}
|
|
322
322
|
var ve = Object.prototype.hasOwnProperty, qe = {}, Nt = j.ReactDebugCurrentFrame;
|
|
323
|
-
function Xe(
|
|
324
|
-
if (
|
|
325
|
-
var x =
|
|
326
|
-
Nt.setExtraStackFrame(
|
|
323
|
+
function Xe(u) {
|
|
324
|
+
if (u) {
|
|
325
|
+
var x = u._owner, E = ke(u.type, u._source, x ? x.type : null);
|
|
326
|
+
Nt.setExtraStackFrame(E);
|
|
327
327
|
} else
|
|
328
328
|
Nt.setExtraStackFrame(null);
|
|
329
329
|
}
|
|
330
|
-
function Lr(
|
|
330
|
+
function Lr(u, x, E, I, G) {
|
|
331
331
|
{
|
|
332
332
|
var C = Function.call.bind(ve);
|
|
333
|
-
for (var
|
|
334
|
-
if (C(
|
|
335
|
-
var
|
|
333
|
+
for (var P in u)
|
|
334
|
+
if (C(u, P)) {
|
|
335
|
+
var A = void 0;
|
|
336
336
|
try {
|
|
337
|
-
if (typeof
|
|
338
|
-
var Q = Error((I || "React class") + ": " +
|
|
337
|
+
if (typeof u[P] != "function") {
|
|
338
|
+
var Q = Error((I || "React class") + ": " + E + " type `" + P + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof u[P] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
339
339
|
throw Q.name = "Invariant Violation", Q;
|
|
340
340
|
}
|
|
341
|
-
|
|
342
|
-
} catch (
|
|
343
|
-
|
|
341
|
+
A = u[P](x, P, I, E, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
342
|
+
} catch (H) {
|
|
343
|
+
A = H;
|
|
344
344
|
}
|
|
345
|
-
|
|
345
|
+
A && !(A instanceof Error) && (Xe(G), w("%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", E, P, typeof A), Xe(null)), A instanceof Error && !(A.message in qe) && (qe[A.message] = !0, Xe(G), w("Failed %s type: %s", E, A.message), Xe(null));
|
|
346
346
|
}
|
|
347
347
|
}
|
|
348
348
|
}
|
|
349
349
|
var Fr = Array.isArray;
|
|
350
|
-
function Et(
|
|
351
|
-
return Fr(
|
|
350
|
+
function Et(u) {
|
|
351
|
+
return Fr(u);
|
|
352
352
|
}
|
|
353
|
-
function Gt(
|
|
353
|
+
function Gt(u) {
|
|
354
354
|
{
|
|
355
|
-
var x = typeof Symbol == "function" && Symbol.toStringTag,
|
|
356
|
-
return
|
|
355
|
+
var x = typeof Symbol == "function" && Symbol.toStringTag, E = x && u[Symbol.toStringTag] || u.constructor.name || "Object";
|
|
356
|
+
return E;
|
|
357
357
|
}
|
|
358
358
|
}
|
|
359
|
-
function Wr(
|
|
359
|
+
function Wr(u) {
|
|
360
360
|
try {
|
|
361
|
-
return qt(
|
|
361
|
+
return qt(u), !1;
|
|
362
362
|
} catch {
|
|
363
363
|
return !0;
|
|
364
364
|
}
|
|
365
365
|
}
|
|
366
|
-
function qt(
|
|
367
|
-
return "" +
|
|
366
|
+
function qt(u) {
|
|
367
|
+
return "" + u;
|
|
368
368
|
}
|
|
369
|
-
function Xt(
|
|
370
|
-
if (Wr(
|
|
371
|
-
return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Gt(
|
|
369
|
+
function Xt(u) {
|
|
370
|
+
if (Wr(u))
|
|
371
|
+
return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Gt(u)), qt(u);
|
|
372
372
|
}
|
|
373
373
|
var Kt = j.ReactCurrentOwner, Vr = {
|
|
374
374
|
key: !0,
|
|
@@ -376,234 +376,234 @@ function Xo() {
|
|
|
376
376
|
__self: !0,
|
|
377
377
|
__source: !0
|
|
378
378
|
}, st, kt;
|
|
379
|
-
function Jt(
|
|
380
|
-
if (ve.call(
|
|
381
|
-
var x = Object.getOwnPropertyDescriptor(
|
|
379
|
+
function Jt(u) {
|
|
380
|
+
if (ve.call(u, "ref")) {
|
|
381
|
+
var x = Object.getOwnPropertyDescriptor(u, "ref").get;
|
|
382
382
|
if (x && x.isReactWarning)
|
|
383
383
|
return !1;
|
|
384
384
|
}
|
|
385
|
-
return
|
|
385
|
+
return u.ref !== void 0;
|
|
386
386
|
}
|
|
387
|
-
function Yr(
|
|
388
|
-
if (ve.call(
|
|
389
|
-
var x = Object.getOwnPropertyDescriptor(
|
|
387
|
+
function Yr(u) {
|
|
388
|
+
if (ve.call(u, "key")) {
|
|
389
|
+
var x = Object.getOwnPropertyDescriptor(u, "key").get;
|
|
390
390
|
if (x && x.isReactWarning)
|
|
391
391
|
return !1;
|
|
392
392
|
}
|
|
393
|
-
return
|
|
393
|
+
return u.key !== void 0;
|
|
394
394
|
}
|
|
395
|
-
function ct(
|
|
396
|
-
typeof
|
|
395
|
+
function ct(u, x) {
|
|
396
|
+
typeof u.ref == "string" && Kt.current;
|
|
397
397
|
}
|
|
398
|
-
function Qt(
|
|
398
|
+
function Qt(u, x) {
|
|
399
399
|
{
|
|
400
|
-
var
|
|
400
|
+
var E = function() {
|
|
401
401
|
st || (st = !0, w("%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
|
-
|
|
404
|
-
get:
|
|
403
|
+
E.isReactWarning = !0, Object.defineProperty(u, "key", {
|
|
404
|
+
get: E,
|
|
405
405
|
configurable: !0
|
|
406
406
|
});
|
|
407
407
|
}
|
|
408
408
|
}
|
|
409
|
-
function Br(
|
|
409
|
+
function Br(u, x) {
|
|
410
410
|
{
|
|
411
|
-
var
|
|
411
|
+
var E = function() {
|
|
412
412
|
kt || (kt = !0, w("%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
|
-
|
|
415
|
-
get:
|
|
414
|
+
E.isReactWarning = !0, Object.defineProperty(u, "ref", {
|
|
415
|
+
get: E,
|
|
416
416
|
configurable: !0
|
|
417
417
|
});
|
|
418
418
|
}
|
|
419
419
|
}
|
|
420
|
-
var Zt = function(
|
|
421
|
-
var
|
|
420
|
+
var Zt = function(u, x, E, I, G, C, P) {
|
|
421
|
+
var A = {
|
|
422
422
|
// This tag allows us to uniquely identify this as a React Element
|
|
423
423
|
$$typeof: t,
|
|
424
424
|
// Built-in properties that belong on the element
|
|
425
|
-
type:
|
|
425
|
+
type: u,
|
|
426
426
|
key: x,
|
|
427
|
-
ref:
|
|
428
|
-
props:
|
|
427
|
+
ref: E,
|
|
428
|
+
props: P,
|
|
429
429
|
// Record the component responsible for creating this element.
|
|
430
430
|
_owner: C
|
|
431
431
|
};
|
|
432
|
-
return
|
|
432
|
+
return A._store = {}, Object.defineProperty(A._store, "validated", {
|
|
433
433
|
configurable: !1,
|
|
434
434
|
enumerable: !1,
|
|
435
435
|
writable: !0,
|
|
436
436
|
value: !1
|
|
437
|
-
}), Object.defineProperty(
|
|
437
|
+
}), Object.defineProperty(A, "_self", {
|
|
438
438
|
configurable: !1,
|
|
439
439
|
enumerable: !1,
|
|
440
440
|
writable: !1,
|
|
441
441
|
value: I
|
|
442
|
-
}), Object.defineProperty(
|
|
442
|
+
}), Object.defineProperty(A, "_source", {
|
|
443
443
|
configurable: !1,
|
|
444
444
|
enumerable: !1,
|
|
445
445
|
writable: !1,
|
|
446
|
-
value:
|
|
447
|
-
}), Object.freeze && (Object.freeze(
|
|
446
|
+
value: G
|
|
447
|
+
}), Object.freeze && (Object.freeze(A.props), Object.freeze(A)), A;
|
|
448
448
|
};
|
|
449
|
-
function er(
|
|
449
|
+
function er(u, x, E, I, G) {
|
|
450
450
|
{
|
|
451
|
-
var C,
|
|
452
|
-
|
|
451
|
+
var C, P = {}, A = null, Q = null;
|
|
452
|
+
E !== void 0 && (Xt(E), A = "" + E), Yr(x) && (Xt(x.key), A = "" + x.key), Jt(x) && (Q = x.ref, ct(x, G));
|
|
453
453
|
for (C in x)
|
|
454
|
-
ve.call(x, C) && !Vr.hasOwnProperty(C) && (
|
|
455
|
-
if (
|
|
456
|
-
var
|
|
457
|
-
for (C in
|
|
458
|
-
|
|
454
|
+
ve.call(x, C) && !Vr.hasOwnProperty(C) && (P[C] = x[C]);
|
|
455
|
+
if (u && u.defaultProps) {
|
|
456
|
+
var H = u.defaultProps;
|
|
457
|
+
for (C in H)
|
|
458
|
+
P[C] === void 0 && (P[C] = H[C]);
|
|
459
459
|
}
|
|
460
|
-
if (
|
|
461
|
-
var ie = typeof
|
|
462
|
-
|
|
460
|
+
if (A || Q) {
|
|
461
|
+
var ie = typeof u == "function" ? u.displayName || u.name || "Unknown" : u;
|
|
462
|
+
A && Qt(P, ie), Q && Br(P, ie);
|
|
463
463
|
}
|
|
464
|
-
return Zt(
|
|
464
|
+
return Zt(u, A, Q, G, I, Kt.current, P);
|
|
465
465
|
}
|
|
466
466
|
}
|
|
467
467
|
var Ke = j.ReactCurrentOwner, tr = j.ReactDebugCurrentFrame;
|
|
468
|
-
function Me(
|
|
469
|
-
if (
|
|
470
|
-
var x =
|
|
471
|
-
tr.setExtraStackFrame(
|
|
468
|
+
function Me(u) {
|
|
469
|
+
if (u) {
|
|
470
|
+
var x = u._owner, E = ke(u.type, u._source, x ? x.type : null);
|
|
471
|
+
tr.setExtraStackFrame(E);
|
|
472
472
|
} else
|
|
473
473
|
tr.setExtraStackFrame(null);
|
|
474
474
|
}
|
|
475
475
|
var Ct;
|
|
476
476
|
Ct = !1;
|
|
477
|
-
function lt(
|
|
478
|
-
return typeof
|
|
477
|
+
function lt(u) {
|
|
478
|
+
return typeof u == "object" && u !== null && u.$$typeof === t;
|
|
479
479
|
}
|
|
480
480
|
function ge() {
|
|
481
481
|
{
|
|
482
482
|
if (Ke.current) {
|
|
483
|
-
var
|
|
484
|
-
if (
|
|
483
|
+
var u = L(Ke.current.type);
|
|
484
|
+
if (u)
|
|
485
485
|
return `
|
|
486
486
|
|
|
487
|
-
Check the render method of \`` +
|
|
487
|
+
Check the render method of \`` + u + "`.";
|
|
488
488
|
}
|
|
489
489
|
return "";
|
|
490
490
|
}
|
|
491
491
|
}
|
|
492
|
-
function be(
|
|
492
|
+
function be(u) {
|
|
493
493
|
return "";
|
|
494
494
|
}
|
|
495
495
|
var Je = {};
|
|
496
|
-
function ne(
|
|
496
|
+
function ne(u) {
|
|
497
497
|
{
|
|
498
498
|
var x = ge();
|
|
499
499
|
if (!x) {
|
|
500
|
-
var
|
|
501
|
-
|
|
500
|
+
var E = typeof u == "string" ? u : u.displayName || u.name;
|
|
501
|
+
E && (x = `
|
|
502
502
|
|
|
503
|
-
Check the top-level render call using <` +
|
|
503
|
+
Check the top-level render call using <` + E + ">.");
|
|
504
504
|
}
|
|
505
505
|
return x;
|
|
506
506
|
}
|
|
507
507
|
}
|
|
508
|
-
function Ce(
|
|
508
|
+
function Ce(u, x) {
|
|
509
509
|
{
|
|
510
|
-
if (!
|
|
510
|
+
if (!u._store || u._store.validated || u.key != null)
|
|
511
511
|
return;
|
|
512
|
-
|
|
513
|
-
var
|
|
514
|
-
if (Je[
|
|
512
|
+
u._store.validated = !0;
|
|
513
|
+
var E = ne(x);
|
|
514
|
+
if (Je[E])
|
|
515
515
|
return;
|
|
516
|
-
Je[
|
|
516
|
+
Je[E] = !0;
|
|
517
517
|
var I = "";
|
|
518
|
-
|
|
518
|
+
u && u._owner && u._owner !== Ke.current && (I = " It was passed a child from " + L(u._owner.type) + "."), Me(u), w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', E, I), Me(null);
|
|
519
519
|
}
|
|
520
520
|
}
|
|
521
|
-
function rr(
|
|
521
|
+
function rr(u, x) {
|
|
522
522
|
{
|
|
523
|
-
if (typeof
|
|
523
|
+
if (typeof u != "object")
|
|
524
524
|
return;
|
|
525
|
-
if (Et(
|
|
526
|
-
for (var
|
|
527
|
-
var I =
|
|
525
|
+
if (Et(u))
|
|
526
|
+
for (var E = 0; E < u.length; E++) {
|
|
527
|
+
var I = u[E];
|
|
528
528
|
lt(I) && Ce(I, x);
|
|
529
529
|
}
|
|
530
|
-
else if (lt(
|
|
531
|
-
|
|
532
|
-
else if (
|
|
533
|
-
var
|
|
534
|
-
if (typeof
|
|
535
|
-
for (var C =
|
|
536
|
-
lt(
|
|
530
|
+
else if (lt(u))
|
|
531
|
+
u._store && (u._store.validated = !0);
|
|
532
|
+
else if (u) {
|
|
533
|
+
var G = y(u);
|
|
534
|
+
if (typeof G == "function" && G !== u.entries)
|
|
535
|
+
for (var C = G.call(u), P; !(P = C.next()).done; )
|
|
536
|
+
lt(P.value) && Ce(P.value, x);
|
|
537
537
|
}
|
|
538
538
|
}
|
|
539
539
|
}
|
|
540
|
-
function _t(
|
|
540
|
+
function _t(u) {
|
|
541
541
|
{
|
|
542
|
-
var x =
|
|
542
|
+
var x = u.type;
|
|
543
543
|
if (x == null || typeof x == "string")
|
|
544
544
|
return;
|
|
545
|
-
var
|
|
545
|
+
var E;
|
|
546
546
|
if (typeof x == "function")
|
|
547
|
-
|
|
547
|
+
E = 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
550
|
x.$$typeof === v))
|
|
551
|
-
|
|
551
|
+
E = x.propTypes;
|
|
552
552
|
else
|
|
553
553
|
return;
|
|
554
|
-
if (
|
|
554
|
+
if (E) {
|
|
555
555
|
var I = L(x);
|
|
556
|
-
Lr(
|
|
556
|
+
Lr(E, u.props, "prop", I, u);
|
|
557
557
|
} else if (x.PropTypes !== void 0 && !Ct) {
|
|
558
558
|
Ct = !0;
|
|
559
|
-
var
|
|
560
|
-
w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",
|
|
559
|
+
var G = L(x);
|
|
560
|
+
w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", G || "Unknown");
|
|
561
561
|
}
|
|
562
562
|
typeof x.getDefaultProps == "function" && !x.getDefaultProps.isReactClassApproved && w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
563
563
|
}
|
|
564
564
|
}
|
|
565
|
-
function nr(
|
|
565
|
+
function nr(u) {
|
|
566
566
|
{
|
|
567
|
-
for (var x = Object.keys(
|
|
568
|
-
var I = x[
|
|
567
|
+
for (var x = Object.keys(u.props), E = 0; E < x.length; E++) {
|
|
568
|
+
var I = x[E];
|
|
569
569
|
if (I !== "children" && I !== "key") {
|
|
570
|
-
Me(
|
|
570
|
+
Me(u), w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", I), Me(null);
|
|
571
571
|
break;
|
|
572
572
|
}
|
|
573
573
|
}
|
|
574
|
-
|
|
574
|
+
u.ref !== null && (Me(u), w("Invalid attribute `ref` supplied to `React.Fragment`."), Me(null));
|
|
575
575
|
}
|
|
576
576
|
}
|
|
577
577
|
var Tt = {};
|
|
578
|
-
function ut(
|
|
578
|
+
function ut(u, x, E, I, G, C) {
|
|
579
579
|
{
|
|
580
|
-
var
|
|
581
|
-
if (!
|
|
582
|
-
var
|
|
583
|
-
(
|
|
580
|
+
var P = T(u);
|
|
581
|
+
if (!P) {
|
|
582
|
+
var A = "";
|
|
583
|
+
(u === void 0 || typeof u == "object" && u !== null && Object.keys(u).length === 0) && (A += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
584
584
|
var Q = be();
|
|
585
|
-
Q ?
|
|
586
|
-
var
|
|
587
|
-
|
|
585
|
+
Q ? A += Q : A += ge();
|
|
586
|
+
var H;
|
|
587
|
+
u === null ? H = "null" : Et(u) ? H = "array" : u !== void 0 && u.$$typeof === t ? (H = "<" + (L(u.type) || "Unknown") + " />", A = " Did you accidentally export a JSX literal instead of a component?") : H = typeof u, w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", H, A);
|
|
588
588
|
}
|
|
589
|
-
var ie = er(
|
|
589
|
+
var ie = er(u, x, E, G, C);
|
|
590
590
|
if (ie == null)
|
|
591
591
|
return ie;
|
|
592
|
-
if (
|
|
592
|
+
if (P) {
|
|
593
593
|
var De = x.children;
|
|
594
594
|
if (De !== void 0)
|
|
595
595
|
if (I)
|
|
596
596
|
if (Et(De)) {
|
|
597
597
|
for (var Ve = 0; Ve < De.length; Ve++)
|
|
598
|
-
rr(De[Ve],
|
|
598
|
+
rr(De[Ve], u);
|
|
599
599
|
Object.freeze && Object.freeze(De);
|
|
600
600
|
} else
|
|
601
601
|
w("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
|
-
rr(De,
|
|
603
|
+
rr(De, u);
|
|
604
604
|
}
|
|
605
605
|
if (ve.call(x, "key")) {
|
|
606
|
-
var Qe = L(
|
|
606
|
+
var Qe = L(u), Oe = Object.keys(x).filter(function(Yo) {
|
|
607
607
|
return Yo !== "key";
|
|
608
608
|
}), Ur = Oe.length > 0 ? "{key: someKey, " + Oe.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
609
609
|
if (!Tt[Qe + Ur]) {
|
|
@@ -616,14 +616,14 @@ React keys must be passed directly to JSX without using spread:
|
|
|
616
616
|
<%s key={someKey} {...props} />`, Ur, Qe, Vo, Qe), Tt[Qe + Ur] = !0;
|
|
617
617
|
}
|
|
618
618
|
}
|
|
619
|
-
return
|
|
619
|
+
return u === n ? nr(ie) : _t(ie), ie;
|
|
620
620
|
}
|
|
621
621
|
}
|
|
622
|
-
function dt(
|
|
623
|
-
return ut(
|
|
622
|
+
function dt(u, x, E) {
|
|
623
|
+
return ut(u, x, E, !0);
|
|
624
624
|
}
|
|
625
|
-
function Pt(
|
|
626
|
-
return ut(
|
|
625
|
+
function Pt(u, x, E) {
|
|
626
|
+
return ut(u, x, E, !1);
|
|
627
627
|
}
|
|
628
628
|
var At = Pt, Rt = dt;
|
|
629
629
|
$t.Fragment = n, $t.jsx = At, $t.jsxs = Rt;
|
|
@@ -730,7 +730,7 @@ const Sl = ({ imageUrl: e }) => {
|
|
|
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;
|
|
733
|
-
l != null && (typeof l == "object" && !Array.isArray(l) ? n(l, c) : Array.isArray(l) ? l.forEach((
|
|
733
|
+
l != null && (typeof l == "object" && !Array.isArray(l) ? n(l, c) : Array.isArray(l) ? l.forEach((d) => r.append(c, String(d))) : r.append(c, String(l)));
|
|
734
734
|
});
|
|
735
735
|
};
|
|
736
736
|
return n(e, t), r.toString();
|
|
@@ -765,8 +765,8 @@ function kl(e, t) {
|
|
|
765
765
|
"décembre"
|
|
766
766
|
];
|
|
767
767
|
if (!e) return "";
|
|
768
|
-
const a = e.getFullYear().toString(), i = String(e.getMonth() + 1).padStart(2, "0"), s = String(e.getDate()).padStart(2, "0"), l = String(e.getHours()).padStart(2, "0"), c = String(e.getMinutes()).padStart(2, "0"),
|
|
769
|
-
return t.replace("dddd", f).replace("MMMM", v).replace("YYYY", a).replace("MM", i).replace("DD", s).replace("HH", l).replace("mm", c).replace("ss",
|
|
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()], v = n[e.getMonth()];
|
|
769
|
+
return t.replace("dddd", f).replace("MMMM", v).replace("YYYY", a).replace("MM", i).replace("DD", s).replace("HH", l).replace("mm", c).replace("ss", d);
|
|
770
770
|
}
|
|
771
771
|
function Cl(e) {
|
|
772
772
|
const [t, r, n] = e.split("-").map(Number);
|
|
@@ -872,7 +872,7 @@ const Al = () => ({ getTokenValidate: R(() => {
|
|
|
872
872
|
(r = e == null ? void 0 : e.current) == null || r.removeChild(t);
|
|
873
873
|
};
|
|
874
874
|
}, []), /* @__PURE__ */ o.jsx("div", { children: /* @__PURE__ */ o.jsx("div", { ref: e }) });
|
|
875
|
-
},
|
|
875
|
+
}, B = ({ 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,
|
|
@@ -888,7 +888,7 @@ const Al = () => ({ getTokenValidate: R(() => {
|
|
|
888
888
|
onClick: i,
|
|
889
889
|
className: `badge ${e || ""}`,
|
|
890
890
|
children: [
|
|
891
|
-
a && /* @__PURE__ */ o.jsx(
|
|
891
|
+
a && /* @__PURE__ */ o.jsx(B, { size: n, classIcon: a }),
|
|
892
892
|
/* @__PURE__ */ o.jsx("span", { children: r })
|
|
893
893
|
]
|
|
894
894
|
}
|
|
@@ -907,7 +907,7 @@ const $l = ({
|
|
|
907
907
|
};
|
|
908
908
|
return /* @__PURE__ */ o.jsxs("div", { className: `action ${e}`, onClick: i, children: [
|
|
909
909
|
a && /* @__PURE__ */ o.jsx(La, { ...a }),
|
|
910
|
-
n && /* @__PURE__ */ o.jsx(
|
|
910
|
+
n && /* @__PURE__ */ o.jsx(B, { classIcon: n, size: _e.LARGE }),
|
|
911
911
|
/* @__PURE__ */ o.jsx("small", { children: r })
|
|
912
912
|
] });
|
|
913
913
|
}, wt = ({
|
|
@@ -921,7 +921,7 @@ const $l = ({
|
|
|
921
921
|
positionicon: l = 1,
|
|
922
922
|
disabled: c = !1
|
|
923
923
|
}) => {
|
|
924
|
-
const
|
|
924
|
+
const d = (f) => {
|
|
925
925
|
f.stopPropagation(), t && t(f);
|
|
926
926
|
};
|
|
927
927
|
return /* @__PURE__ */ o.jsxs(
|
|
@@ -930,22 +930,25 @@ const $l = ({
|
|
|
930
930
|
id: i ?? "",
|
|
931
931
|
disabled: c,
|
|
932
932
|
type: "submit",
|
|
933
|
-
onClick: (f) =>
|
|
933
|
+
onClick: (f) => d(f),
|
|
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(B, { 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(B, { classIcon: s }) })
|
|
940
940
|
]
|
|
941
941
|
}
|
|
942
942
|
);
|
|
943
|
-
}, ci = (e) => /* @__PURE__ */ o.
|
|
943
|
+
}, ci = (e) => /* @__PURE__ */ o.jsxs(
|
|
944
944
|
"div",
|
|
945
945
|
{
|
|
946
946
|
onClick: () => e.onChange(e.item),
|
|
947
947
|
className: e.active ? "expand expand--active" : "expand",
|
|
948
|
-
children:
|
|
948
|
+
children: [
|
|
949
|
+
e.item.icon && /* @__PURE__ */ o.jsx(B, { classIcon: e.item.icon }),
|
|
950
|
+
e.item.children
|
|
951
|
+
]
|
|
949
952
|
}
|
|
950
953
|
), Fa = (e) => {
|
|
951
954
|
const [t, r] = V(null), n = R((i) => {
|
|
@@ -1151,11 +1154,11 @@ function Oi(e) {
|
|
|
1151
1154
|
return xi(hr("", null, null, null, [""], e = bi(e), 0, [0], e));
|
|
1152
1155
|
}
|
|
1153
1156
|
function hr(e, t, r, n, a, i, s, l, c) {
|
|
1154
|
-
for (var
|
|
1157
|
+
for (var d = 0, f = 0, v = s, g = 0, h = 0, m = 0, p = 1, y = 1, j = 1, w = 0, N = "", D = a, S = i, O = n, _ = N; y; )
|
|
1155
1158
|
switch (m = w, w = Pe()) {
|
|
1156
1159
|
case 40:
|
|
1157
1160
|
if (m != 108 && me(_, v - 1) == 58) {
|
|
1158
|
-
dr(_ += W(zr(w), "&", "&\f"), "&\f", Ba(
|
|
1161
|
+
dr(_ += W(zr(w), "&", "&\f"), "&\f", Ba(d ? l[d - 1] : 0)) != -1 && (j = -1);
|
|
1159
1162
|
break;
|
|
1160
1163
|
}
|
|
1161
1164
|
case 34:
|
|
@@ -1183,7 +1186,7 @@ function hr(e, t, r, n, a, i, s, l, c) {
|
|
|
1183
1186
|
}
|
|
1184
1187
|
break;
|
|
1185
1188
|
case 123 * p:
|
|
1186
|
-
l[
|
|
1189
|
+
l[d++] = Re(_) * j;
|
|
1187
1190
|
case 125 * p:
|
|
1188
1191
|
case 59:
|
|
1189
1192
|
case 0:
|
|
@@ -1197,22 +1200,22 @@ function hr(e, t, r, n, a, i, s, l, c) {
|
|
|
1197
1200
|
case 59:
|
|
1198
1201
|
_ += ";";
|
|
1199
1202
|
default:
|
|
1200
|
-
if (Lt(
|
|
1203
|
+
if (Lt(O = ea(_, t, r, d, f, a, l, N, D = [], S = [], v, i), i), w === 123)
|
|
1201
1204
|
if (f === 0)
|
|
1202
|
-
hr(_, t,
|
|
1205
|
+
hr(_, t, O, O, D, i, v, l, S);
|
|
1203
1206
|
else
|
|
1204
1207
|
switch (g === 99 && me(_, 3) === 110 ? 100 : g) {
|
|
1205
1208
|
case 100:
|
|
1206
1209
|
case 108:
|
|
1207
1210
|
case 109:
|
|
1208
1211
|
case 115:
|
|
1209
|
-
hr(e,
|
|
1212
|
+
hr(e, O, O, n && Lt(ea(e, O, O, 0, 0, a, l, N, a, D = [], v, S), S), a, S, v, l, n ? D : S);
|
|
1210
1213
|
break;
|
|
1211
1214
|
default:
|
|
1212
|
-
hr(_,
|
|
1215
|
+
hr(_, O, O, O, [""], S, 0, l, S);
|
|
1213
1216
|
}
|
|
1214
1217
|
}
|
|
1215
|
-
|
|
1218
|
+
d = f = h = 0, p = j = 1, N = _ = "", v = s;
|
|
1216
1219
|
break;
|
|
1217
1220
|
case 58:
|
|
1218
1221
|
v = 1 + Re(_), h = m;
|
|
@@ -1228,7 +1231,7 @@ function hr(e, t, r, n, a, i, s, l, c) {
|
|
|
1228
1231
|
j = f > 0 ? 1 : (_ += "\f", -1);
|
|
1229
1232
|
break;
|
|
1230
1233
|
case 44:
|
|
1231
|
-
l[
|
|
1234
|
+
l[d++] = (Re(_) - 1) * j, j = 1;
|
|
1232
1235
|
break;
|
|
1233
1236
|
case 64:
|
|
1234
1237
|
tt() === 45 && (_ += zr(Pe())), g = tt(), f = v = Re(N = _ += Di(fr())), w++;
|
|
@@ -1239,11 +1242,11 @@ function hr(e, t, r, n, a, i, s, l, c) {
|
|
|
1239
1242
|
}
|
|
1240
1243
|
return i;
|
|
1241
1244
|
}
|
|
1242
|
-
function ea(e, t, r, n, a, i, s, l, c,
|
|
1245
|
+
function ea(e, t, r, n, a, i, s, l, c, d, f, v) {
|
|
1243
1246
|
for (var g = a - 1, h = a === 0 ? i : [""], m = za(h), p = 0, y = 0, j = 0; p < n; ++p)
|
|
1244
|
-
for (var w = 0, N = pt(e, g + 1, g = Ba(y = s[p])),
|
|
1245
|
-
(
|
|
1246
|
-
return Er(e, t, r, a === 0 ? Or : l, c,
|
|
1247
|
+
for (var w = 0, N = pt(e, g + 1, g = Ba(y = s[p])), D = e; w < m; ++w)
|
|
1248
|
+
(D = Ua(y > 0 ? h[w] + " " + N : W(N, /&\f/g, h[w]))) && (c[j++] = D);
|
|
1249
|
+
return Er(e, t, r, a === 0 ? Or : l, c, d, f, v);
|
|
1247
1250
|
}
|
|
1248
1251
|
function Ni(e, t, r, n) {
|
|
1249
1252
|
return Er(e, t, r, Va, _n(gi()), pt(e, 2, -2), 0, n);
|
|
@@ -1371,8 +1374,8 @@ function Ga(e, t, r) {
|
|
|
1371
1374
|
break;
|
|
1372
1375
|
case 5152:
|
|
1373
1376
|
case 5920:
|
|
1374
|
-
return W(e, /(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/, function(n, a, i, s, l, c,
|
|
1375
|
-
return ae + a + ":" + i +
|
|
1377
|
+
return W(e, /(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/, function(n, a, i, s, l, c, d) {
|
|
1378
|
+
return ae + a + ":" + i + d + (s ? ae + a + "-span:" + (l ? c : +c - +i) + d : "") + e;
|
|
1376
1379
|
});
|
|
1377
1380
|
case 4949:
|
|
1378
1381
|
if (me(e, t + 6) === 121)
|
|
@@ -1569,9 +1572,9 @@ function ro(e, t, r) {
|
|
|
1569
1572
|
for (var i = oa(e), s = oa(t), l = 0; l < a.length; ++l) {
|
|
1570
1573
|
var c = a[l];
|
|
1571
1574
|
if (!(c in Vi || r && r[c] || s && c in s || i && c in i)) {
|
|
1572
|
-
var
|
|
1575
|
+
var d = zi(t, c);
|
|
1573
1576
|
try {
|
|
1574
|
-
Bi(e, c,
|
|
1577
|
+
Bi(e, c, d);
|
|
1575
1578
|
} catch {
|
|
1576
1579
|
}
|
|
1577
1580
|
}
|
|
@@ -1700,8 +1703,8 @@ var Xi = function() {
|
|
|
1700
1703
|
if (l) {
|
|
1701
1704
|
var c = l.match(Zi);
|
|
1702
1705
|
if (c) {
|
|
1703
|
-
var
|
|
1704
|
-
|
|
1706
|
+
var d = 0 | parseInt(c[1], 10), f = c[2];
|
|
1707
|
+
d !== 0 && (Ji(f, d), es(e, f, c[3]), e.getTag().insertRules(d, a)), a.length = 0;
|
|
1705
1708
|
} else a.push(l);
|
|
1706
1709
|
}
|
|
1707
1710
|
}
|
|
@@ -1777,7 +1780,7 @@ var no = function(e) {
|
|
|
1777
1780
|
var a = this;
|
|
1778
1781
|
this.options = Ne(Ne({}, is), t), this.gs = r, this.names = new Map(n), this.server = !!t.isServer, !this.server && br && ua && (ua = !1, la(this)), An(this, function() {
|
|
1779
1782
|
return function(i) {
|
|
1780
|
-
for (var s = i.getTag(), l = s.length, c = "",
|
|
1783
|
+
for (var s = i.getTag(), l = s.length, c = "", d = function(v) {
|
|
1781
1784
|
var g = function(j) {
|
|
1782
1785
|
return xr.get(j);
|
|
1783
1786
|
}(v);
|
|
@@ -1788,7 +1791,7 @@ var no = function(e) {
|
|
|
1788
1791
|
h !== void 0 && h.forEach(function(j) {
|
|
1789
1792
|
j.length > 0 && (y += "".concat(j, ","));
|
|
1790
1793
|
}), c += "".concat(m).concat(p, '{content:"').concat(y, '"}').concat(Tn);
|
|
1791
|
-
}, f = 0; f < l; f++)
|
|
1794
|
+
}, f = 0; f < l; f++) d(f);
|
|
1792
1795
|
return c;
|
|
1793
1796
|
}(a);
|
|
1794
1797
|
});
|
|
@@ -1833,11 +1836,11 @@ function oo(e, t) {
|
|
|
1833
1836
|
});
|
|
1834
1837
|
}
|
|
1835
1838
|
function ls(e) {
|
|
1836
|
-
var t, r, n, a = yt, i = a.options, s = i === void 0 ? yt : i, l = a.plugins, c = l === void 0 ? _r : l,
|
|
1839
|
+
var t, r, n, a = yt, i = a.options, s = i === void 0 ? yt : i, l = a.plugins, c = l === void 0 ? _r : l, d = function(g, h, m) {
|
|
1837
1840
|
return m.startsWith(r) && m.endsWith(r) && m.replaceAll(r, "").length > 0 ? ".".concat(t) : g;
|
|
1838
1841
|
}, f = c.slice();
|
|
1839
1842
|
f.push(function(g) {
|
|
1840
|
-
g.type === Or && g.value.includes("&") && (g.props[0] = g.props[0].replace(ss, r).replace(n,
|
|
1843
|
+
g.type === Or && g.value.includes("&") && (g.props[0] = g.props[0].replace(ss, r).replace(n, d));
|
|
1841
1844
|
}), s.prefix && f.push(_i), f.push(Ei);
|
|
1842
1845
|
var v = function(g, h, m, p) {
|
|
1843
1846
|
h === void 0 && (h = ""), m === void 0 && (m = ""), p === void 0 && (p = "&"), t = p, r = h, n = new RegExp("\\".concat(r, "\\b"), "g");
|
|
@@ -1929,17 +1932,17 @@ var hs = Ja(Cr), vs = function() {
|
|
|
1929
1932
|
a = et(a, s), this.staticRulesId = s;
|
|
1930
1933
|
}
|
|
1931
1934
|
else {
|
|
1932
|
-
for (var c = Ze(this.baseHash, n.hash),
|
|
1935
|
+
for (var c = Ze(this.baseHash, n.hash), d = "", f = 0; f < this.rules.length; f++) {
|
|
1933
1936
|
var v = this.rules[f];
|
|
1934
|
-
if (typeof v == "string")
|
|
1937
|
+
if (typeof v == "string") d += v, process.env.NODE_ENV !== "production" && (c = Ze(c, v));
|
|
1935
1938
|
else if (v) {
|
|
1936
1939
|
var g = ca(rt(v, t, r, n));
|
|
1937
|
-
c = Ze(c, g + f),
|
|
1940
|
+
c = Ze(c, g + f), d += g;
|
|
1938
1941
|
}
|
|
1939
1942
|
}
|
|
1940
|
-
if (
|
|
1943
|
+
if (d) {
|
|
1941
1944
|
var h = on(c >>> 0);
|
|
1942
|
-
r.hasNameForId(this.componentId, h) || r.insertRules(this.componentId, h, n(
|
|
1945
|
+
r.hasNameForId(this.componentId, h) || r.insertRules(this.componentId, h, n(d, ".".concat(h), void 0, this.componentId)), a = et(a, h);
|
|
1943
1946
|
}
|
|
1944
1947
|
}
|
|
1945
1948
|
return a;
|
|
@@ -1948,29 +1951,29 @@ var hs = Ja(Cr), vs = function() {
|
|
|
1948
1951
|
lo.Consumer;
|
|
1949
1952
|
var qr = {}, va = /* @__PURE__ */ new Set();
|
|
1950
1953
|
function ms(e, t, r) {
|
|
1951
|
-
var n = Pn(e), a = e, i = !Gr(e), s = t.attrs, l = s === void 0 ? _r : s, c = t.componentId,
|
|
1952
|
-
var
|
|
1953
|
-
qr[
|
|
1954
|
-
var _ = "".concat(
|
|
1955
|
-
return
|
|
1956
|
-
}(t.displayName, t.parentComponentId) : c, f = t.displayName, v = f === void 0 ? function(
|
|
1957
|
-
return Gr(
|
|
1958
|
-
}(e) : f, g = t.displayName && t.componentId ? "".concat(na(t.displayName), "-").concat(t.componentId) : t.componentId ||
|
|
1954
|
+
var n = Pn(e), a = e, i = !Gr(e), s = t.attrs, l = s === void 0 ? _r : s, c = t.componentId, d = c === void 0 ? function(D, S) {
|
|
1955
|
+
var O = typeof D != "string" ? "sc" : na(D);
|
|
1956
|
+
qr[O] = (qr[O] || 0) + 1;
|
|
1957
|
+
var _ = "".concat(O, "-").concat(Li(Cr + O + qr[O]));
|
|
1958
|
+
return S ? "".concat(S, "-").concat(_) : _;
|
|
1959
|
+
}(t.displayName, t.parentComponentId) : c, f = t.displayName, v = f === void 0 ? function(D) {
|
|
1960
|
+
return Gr(D) ? "styled.".concat(D) : "Styled(".concat(Qa(D), ")");
|
|
1961
|
+
}(e) : f, g = t.displayName && t.componentId ? "".concat(na(t.displayName), "-").concat(t.componentId) : t.componentId || d, h = n && a.attrs ? a.attrs.concat(l).filter(Boolean) : l, m = t.shouldForwardProp;
|
|
1959
1962
|
if (n && a.shouldForwardProp) {
|
|
1960
1963
|
var p = a.shouldForwardProp;
|
|
1961
1964
|
if (t.shouldForwardProp) {
|
|
1962
1965
|
var y = t.shouldForwardProp;
|
|
1963
|
-
m = function(
|
|
1964
|
-
return p(
|
|
1966
|
+
m = function(D, S) {
|
|
1967
|
+
return p(D, S) && y(D, S);
|
|
1965
1968
|
};
|
|
1966
1969
|
} else m = p;
|
|
1967
1970
|
}
|
|
1968
1971
|
var j = new vs(r, g, n ? a.componentStyle : void 0);
|
|
1969
|
-
function w(
|
|
1970
|
-
return function(
|
|
1971
|
-
var b =
|
|
1972
|
+
function w(D, S) {
|
|
1973
|
+
return function(O, _, z) {
|
|
1974
|
+
var b = O.attrs, T = O.componentStyle, U = O.defaultProps, Y = O.foldedComponentIds, L = O.styledComponentId, te = O.target, pe = $e.useContext(lo), de = da(), xe = O.shouldForwardProp || de.shouldForwardProp;
|
|
1972
1975
|
process.env.NODE_ENV !== "production" && Gn(L);
|
|
1973
|
-
var Ee = Ri(_, pe,
|
|
1976
|
+
var Ee = Ri(_, pe, U) || yt, ce = function($, F, re) {
|
|
1974
1977
|
for (var ee, le = Ne(Ne({}, F), { className: void 0, theme: re }), je = 0; je < $.length; je += 1) {
|
|
1975
1978
|
var Se = bt(ee = $[je]) ? ee(le) : ee;
|
|
1976
1979
|
for (var J in Se) le[J] = J === "className" ? et(le[J], Se[J]) : J === "style" ? Ne(Ne({}, le[J]), Se[J]) : Se[J];
|
|
@@ -1981,28 +1984,28 @@ function ms(e, t, r) {
|
|
|
1981
1984
|
var k = function($, F) {
|
|
1982
1985
|
var re = da(), ee = $.generateAndInjectStyles(F, re.styleSheet, re.stylis);
|
|
1983
1986
|
return process.env.NODE_ENV !== "production" && Gn(ee), ee;
|
|
1984
|
-
}(
|
|
1985
|
-
process.env.NODE_ENV !== "production" &&
|
|
1987
|
+
}(T, ce);
|
|
1988
|
+
process.env.NODE_ENV !== "production" && O.warnTooManyClasses && O.warnTooManyClasses(k);
|
|
1986
1989
|
var M = et(Y, L);
|
|
1987
|
-
return k && (M += " " + k), ce.className && (M += " " + ce.className), fe[Gr(q) && !an.has(q) ? "class" : "className"] = M,
|
|
1988
|
-
}(N,
|
|
1990
|
+
return k && (M += " " + k), ce.className && (M += " " + ce.className), fe[Gr(q) && !an.has(q) ? "class" : "className"] = M, z && (fe.ref = z), Bo(q, fe);
|
|
1991
|
+
}(N, D, S);
|
|
1989
1992
|
}
|
|
1990
1993
|
w.displayName = v;
|
|
1991
1994
|
var N = $e.forwardRef(w);
|
|
1992
1995
|
return N.attrs = h, N.componentStyle = j, N.displayName = v, N.shouldForwardProp = m, N.foldedComponentIds = n ? et(a.foldedComponentIds, a.styledComponentId) : "", N.styledComponentId = g, N.target = n ? a.target : e, Object.defineProperty(N, "defaultProps", { get: function() {
|
|
1993
1996
|
return this._foldedDefaultProps;
|
|
1994
|
-
}, set: function(
|
|
1995
|
-
this._foldedDefaultProps = n ? function(
|
|
1996
|
-
for (var
|
|
1997
|
-
for (var
|
|
1998
|
-
return
|
|
1999
|
-
}({}, a.defaultProps,
|
|
2000
|
-
} }), process.env.NODE_ENV !== "production" && (Ai(v, g), N.warnTooManyClasses = /* @__PURE__ */ function(
|
|
2001
|
-
var
|
|
2002
|
-
return function(
|
|
2003
|
-
if (!_ && (
|
|
2004
|
-
var b =
|
|
2005
|
-
console.warn("Over ".concat(200, " classes were generated for component ").concat(
|
|
1997
|
+
}, set: function(D) {
|
|
1998
|
+
this._foldedDefaultProps = n ? function(S) {
|
|
1999
|
+
for (var O = [], _ = 1; _ < arguments.length; _++) O[_ - 1] = arguments[_];
|
|
2000
|
+
for (var z = 0, b = O; z < b.length; z++) sn(S, b[z], !0);
|
|
2001
|
+
return S;
|
|
2002
|
+
}({}, a.defaultProps, D) : D;
|
|
2003
|
+
} }), process.env.NODE_ENV !== "production" && (Ai(v, g), N.warnTooManyClasses = /* @__PURE__ */ function(D, S) {
|
|
2004
|
+
var O = {}, _ = !1;
|
|
2005
|
+
return function(z) {
|
|
2006
|
+
if (!_ && (O[z] = !0, Object.keys(O).length >= 200)) {
|
|
2007
|
+
var b = S ? ' with the id of "'.concat(S, '"') : "";
|
|
2008
|
+
console.warn("Over ".concat(200, " classes were generated for component ").concat(D).concat(b, `.
|
|
2006
2009
|
`) + `Consider using the attrs method, together with a style object for frequently changed styles.
|
|
2007
2010
|
Example:
|
|
2008
2011
|
const Component = styled.div.attrs(props => ({
|
|
@@ -2011,7 +2014,7 @@ Example:
|
|
|
2011
2014
|
},
|
|
2012
2015
|
}))\`width: 100%;\`
|
|
2013
2016
|
|
|
2014
|
-
<Component />`), _ = !0,
|
|
2017
|
+
<Component />`), _ = !0, O = {};
|
|
2015
2018
|
}
|
|
2016
2019
|
};
|
|
2017
2020
|
}(v, g)), An(N, function() {
|
|
@@ -2064,102 +2067,112 @@ const ps = Rn.div`
|
|
|
2064
2067
|
background-color: white;
|
|
2065
2068
|
padding: 10px;
|
|
2066
2069
|
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
|
|
2067
|
-
border-radius:
|
|
2070
|
+
border-radius: 4px;
|
|
2068
2071
|
border: 1px solid #ede;
|
|
2069
2072
|
`, In = ze(
|
|
2070
2073
|
({
|
|
2071
2074
|
referenceElement: e,
|
|
2072
2075
|
position: t,
|
|
2073
2076
|
coordonnees: r,
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2077
|
+
className: n,
|
|
2078
|
+
children: a,
|
|
2079
|
+
show: i,
|
|
2080
|
+
id: s,
|
|
2081
|
+
closeOverlay: l
|
|
2082
|
+
}, c) => {
|
|
2083
|
+
const { activeOverlayId: d, setActiveOverlay: f } = li(), [v, g] = V(i || !1), [h, m] = V(
|
|
2080
2084
|
r ?? { top: 0, left: 0 }
|
|
2081
|
-
),
|
|
2082
|
-
Dr(
|
|
2083
|
-
setCoords:
|
|
2085
|
+
), p = ue(null), y = Uo();
|
|
2086
|
+
Dr(c, () => ({
|
|
2087
|
+
setCoords: m
|
|
2084
2088
|
})), Z(() => {
|
|
2085
|
-
|
|
2086
|
-
}, [
|
|
2087
|
-
const
|
|
2088
|
-
var
|
|
2089
|
+
d !== y && g(!1);
|
|
2090
|
+
}, [d, y]), Z(() => {
|
|
2091
|
+
const N = () => {
|
|
2092
|
+
var D;
|
|
2089
2093
|
if (!t && r)
|
|
2090
|
-
|
|
2094
|
+
m(r);
|
|
2091
2095
|
else if (e) {
|
|
2092
|
-
const S = e.getBoundingClientRect(),
|
|
2093
|
-
if (
|
|
2094
|
-
let
|
|
2095
|
-
const
|
|
2096
|
+
const S = e.getBoundingClientRect(), O = (D = p.current) == null ? void 0 : D.getBoundingClientRect(), { innerWidth: _, innerHeight: z } = window;
|
|
2097
|
+
if (O) {
|
|
2098
|
+
let b, T;
|
|
2099
|
+
const U = {
|
|
2096
2100
|
topRight: () => ({
|
|
2097
|
-
top: S.top -
|
|
2098
|
-
left: S.right -
|
|
2101
|
+
top: S.top - O.height,
|
|
2102
|
+
left: S.right - O.width
|
|
2099
2103
|
}),
|
|
2100
2104
|
topLeft: () => ({
|
|
2101
|
-
top: S.top -
|
|
2105
|
+
top: S.top - O.height,
|
|
2102
2106
|
left: S.left
|
|
2103
2107
|
}),
|
|
2104
2108
|
bottomRight: () => ({
|
|
2105
2109
|
top: S.bottom,
|
|
2106
|
-
left: S.right -
|
|
2110
|
+
left: S.right - O.width
|
|
2107
2111
|
}),
|
|
2108
2112
|
bottomLeft: () => ({
|
|
2109
2113
|
top: S.bottom,
|
|
2110
2114
|
left: S.left
|
|
2111
2115
|
}),
|
|
2112
2116
|
left: () => ({
|
|
2113
|
-
top: S.top + S.height / 2 -
|
|
2114
|
-
left: S.left -
|
|
2117
|
+
top: S.top + S.height / 2 - O.height / 2,
|
|
2118
|
+
left: S.left - O.width
|
|
2115
2119
|
}),
|
|
2116
2120
|
right: () => ({
|
|
2117
|
-
top: S.top + S.height / 2 -
|
|
2121
|
+
top: S.top + S.height / 2 - O.height / 2,
|
|
2118
2122
|
left: S.right
|
|
2119
2123
|
})
|
|
2120
2124
|
};
|
|
2121
|
-
t &&
|
|
2125
|
+
t && U[t] ? { top: b, left: T } = U[t]() : (T = S.right, b = S.bottom, S.right + O.width > _ && (T = S.left - O.width), S.bottom + O.height > z && (b = S.top - O.height)), m({ top: b, left: T < 0 ? 0 : T });
|
|
2122
2126
|
}
|
|
2123
2127
|
}
|
|
2124
2128
|
};
|
|
2125
|
-
return
|
|
2126
|
-
}, [e,
|
|
2127
|
-
const
|
|
2128
|
-
|
|
2129
|
-
},
|
|
2130
|
-
(
|
|
2131
|
-
|
|
2129
|
+
return v && (N(), window.addEventListener("resize", N)), () => window.removeEventListener("resize", N);
|
|
2130
|
+
}, [e, v, t]);
|
|
2131
|
+
const j = () => {
|
|
2132
|
+
g(!0), f(y);
|
|
2133
|
+
}, w = R(
|
|
2134
|
+
(N) => {
|
|
2135
|
+
N.stopPropagation(), g(!1), f(null), l && l(!1);
|
|
2132
2136
|
},
|
|
2133
|
-
[
|
|
2137
|
+
[l, f]
|
|
2134
2138
|
);
|
|
2135
2139
|
return Z(() => {
|
|
2136
|
-
const
|
|
2137
|
-
|
|
2140
|
+
const N = (D) => {
|
|
2141
|
+
p.current && !p.current.contains(D.target) && w(D);
|
|
2138
2142
|
};
|
|
2139
|
-
return
|
|
2140
|
-
document.removeEventListener("mousedown",
|
|
2143
|
+
return v && document.addEventListener("mousedown", N), () => {
|
|
2144
|
+
document.removeEventListener("mousedown", N);
|
|
2141
2145
|
};
|
|
2142
|
-
}, [
|
|
2143
|
-
|
|
2144
|
-
}, [
|
|
2145
|
-
/* @__PURE__ */ o.jsx(
|
|
2146
|
-
|
|
2146
|
+
}, [v, w]), Z(() => {
|
|
2147
|
+
i && j();
|
|
2148
|
+
}, [i]), v ? Nn.createPortal(
|
|
2149
|
+
/* @__PURE__ */ o.jsx(
|
|
2150
|
+
ps,
|
|
2147
2151
|
{
|
|
2148
|
-
className:
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
|
|
2152
|
+
className: n,
|
|
2153
|
+
ref: p,
|
|
2154
|
+
$top: h.top,
|
|
2155
|
+
$left: h.left,
|
|
2156
|
+
children: /* @__PURE__ */ o.jsxs(
|
|
2157
|
+
"div",
|
|
2158
|
+
{
|
|
2159
|
+
className: `overlayPanel ${h.top > 0 || h.left > 0 ? "visible" : "hide"}`,
|
|
2160
|
+
children: [
|
|
2161
|
+
/* @__PURE__ */ o.jsx(
|
|
2162
|
+
"button",
|
|
2163
|
+
{
|
|
2164
|
+
id: s ?? "",
|
|
2165
|
+
className: "toggle-btn",
|
|
2166
|
+
onClick: w,
|
|
2167
|
+
children: /* @__PURE__ */ o.jsx(B, { classIcon: "bi-x-lg" })
|
|
2168
|
+
}
|
|
2169
|
+
),
|
|
2170
|
+
a
|
|
2171
|
+
]
|
|
2172
|
+
}
|
|
2173
|
+
)
|
|
2161
2174
|
}
|
|
2162
|
-
)
|
|
2175
|
+
),
|
|
2163
2176
|
document.body
|
|
2164
2177
|
) : null;
|
|
2165
2178
|
}
|
|
@@ -2174,11 +2187,11 @@ const ps = Rn.div`
|
|
|
2174
2187
|
}) => {
|
|
2175
2188
|
const l = (m) => {
|
|
2176
2189
|
m.preventDefault(), t && t(m);
|
|
2177
|
-
}, c = ue(null), [
|
|
2190
|
+
}, c = ue(null), [d, f] = V(!1), v = R(
|
|
2178
2191
|
(m) => {
|
|
2179
|
-
m.stopPropagation(), n && f(!
|
|
2192
|
+
m.stopPropagation(), n && f(!d);
|
|
2180
2193
|
},
|
|
2181
|
-
[
|
|
2194
|
+
[d, f]
|
|
2182
2195
|
), g = Ie(() => n ? n.map((m, p) => ({
|
|
2183
2196
|
id: m.id ?? p,
|
|
2184
2197
|
icon: m.icon,
|
|
@@ -2215,16 +2228,16 @@ const ps = Rn.div`
|
|
|
2215
2228
|
className: "ml-2",
|
|
2216
2229
|
ref: c,
|
|
2217
2230
|
onClick: (m) => v(m),
|
|
2218
|
-
children: /* @__PURE__ */ o.jsx(
|
|
2231
|
+
children: /* @__PURE__ */ o.jsx(B, { classIcon: "bi-chevron-up" })
|
|
2219
2232
|
}
|
|
2220
2233
|
)
|
|
2221
2234
|
]
|
|
2222
2235
|
}
|
|
2223
2236
|
),
|
|
2224
|
-
n &&
|
|
2237
|
+
n && d && c.current && /* @__PURE__ */ o.jsx(
|
|
2225
2238
|
In,
|
|
2226
2239
|
{
|
|
2227
|
-
show:
|
|
2240
|
+
show: d,
|
|
2228
2241
|
position: a,
|
|
2229
2242
|
closeOverlay: f,
|
|
2230
2243
|
referenceElement: c.current,
|
|
@@ -2241,14 +2254,14 @@ const ps = Rn.div`
|
|
|
2241
2254
|
}) => {
|
|
2242
2255
|
const i = ue(null), s = (c) => {
|
|
2243
2256
|
var f;
|
|
2244
|
-
const
|
|
2245
|
-
if (
|
|
2257
|
+
const d = (f = c.target.files) == null ? void 0 : f[0];
|
|
2258
|
+
if (d && e) {
|
|
2246
2259
|
const v = new FileReader();
|
|
2247
2260
|
v.onload = (g) => {
|
|
2248
2261
|
var m;
|
|
2249
2262
|
const h = (m = g.target) == null ? void 0 : m.result;
|
|
2250
|
-
e(
|
|
2251
|
-
}, v.readAsArrayBuffer(
|
|
2263
|
+
e(d, h);
|
|
2264
|
+
}, v.readAsArrayBuffer(d);
|
|
2252
2265
|
}
|
|
2253
2266
|
}, l = () => {
|
|
2254
2267
|
var c;
|
|
@@ -2284,7 +2297,7 @@ const ps = Rn.div`
|
|
|
2284
2297
|
}) => {
|
|
2285
2298
|
const s = ue(null), [l, c] = V(
|
|
2286
2299
|
a
|
|
2287
|
-
),
|
|
2300
|
+
), d = ue(null), [f, v] = V(t ?? !1);
|
|
2288
2301
|
Z(() => {
|
|
2289
2302
|
t && v(t);
|
|
2290
2303
|
}, [t]);
|
|
@@ -2320,19 +2333,19 @@ const ps = Rn.div`
|
|
|
2320
2333
|
/* @__PURE__ */ o.jsxs(
|
|
2321
2334
|
"div",
|
|
2322
2335
|
{
|
|
2323
|
-
ref:
|
|
2336
|
+
ref: d,
|
|
2324
2337
|
className: `card-action ${e.filter((p) => p.type === "menu").length ? "visible" : "hidden"}`,
|
|
2325
2338
|
onClick: (p) => g(p, !f),
|
|
2326
2339
|
children: [
|
|
2327
2340
|
/* @__PURE__ */ o.jsx(
|
|
2328
|
-
|
|
2341
|
+
B,
|
|
2329
2342
|
{
|
|
2330
2343
|
size: _e.MEDIUM,
|
|
2331
2344
|
classIcon: "bi-three-dots-vertical cursor-pointer"
|
|
2332
2345
|
}
|
|
2333
2346
|
),
|
|
2334
2347
|
/* @__PURE__ */ o.jsx(
|
|
2335
|
-
|
|
2348
|
+
B,
|
|
2336
2349
|
{
|
|
2337
2350
|
size: _e.MEDIUM,
|
|
2338
2351
|
classIcon: "bi-three-dots cursor-pointer"
|
|
@@ -2341,7 +2354,7 @@ const ps = Rn.div`
|
|
|
2341
2354
|
]
|
|
2342
2355
|
}
|
|
2343
2356
|
),
|
|
2344
|
-
f &&
|
|
2357
|
+
f && d.current && /* @__PURE__ */ o.jsx(
|
|
2345
2358
|
In,
|
|
2346
2359
|
{
|
|
2347
2360
|
position: l,
|
|
@@ -2349,7 +2362,7 @@ const ps = Rn.div`
|
|
|
2349
2362
|
ref: s,
|
|
2350
2363
|
closeOverlay: h,
|
|
2351
2364
|
coordonnees: n,
|
|
2352
|
-
referenceElement:
|
|
2365
|
+
referenceElement: d.current,
|
|
2353
2366
|
children: /* @__PURE__ */ o.jsx("div", { children: /* @__PURE__ */ o.jsx(Fa, { className: "card-action-menu", items: m }) })
|
|
2354
2367
|
}
|
|
2355
2368
|
)
|
|
@@ -2364,16 +2377,16 @@ const ps = Rn.div`
|
|
|
2364
2377
|
positionOverlay: s,
|
|
2365
2378
|
children: l
|
|
2366
2379
|
}) => {
|
|
2367
|
-
const [c,
|
|
2380
|
+
const [c, d] = V(!1), [f, v] = V(!1), [g, h] = V(), m = (y, j) => {
|
|
2368
2381
|
y.stopPropagation(), a && a(j);
|
|
2369
2382
|
}, p = R(
|
|
2370
2383
|
(y, j) => {
|
|
2371
2384
|
if (y.stopPropagation(), f)
|
|
2372
2385
|
return h(void 0), v(!1);
|
|
2373
|
-
y.target.closest(".qte") || y.target.closest(".card-action-menu button") || y.target.closest(".card-actions") || (
|
|
2386
|
+
y.target.closest(".qte") || y.target.closest(".card-action-menu button") || y.target.closest(".card-actions") || (d(!c), n && y.button !== 2 ? n(j) : (h({ top: y.clientY, left: y.clientX }), v(!0)));
|
|
2374
2387
|
},
|
|
2375
2388
|
[
|
|
2376
|
-
|
|
2389
|
+
d,
|
|
2377
2390
|
h,
|
|
2378
2391
|
n,
|
|
2379
2392
|
f,
|
|
@@ -2404,7 +2417,7 @@ const ps = Rn.div`
|
|
|
2404
2417
|
{
|
|
2405
2418
|
className: "ml-2 cursor-pointer",
|
|
2406
2419
|
onClick: (y) => m(y, e),
|
|
2407
|
-
children: /* @__PURE__ */ o.jsx(
|
|
2420
|
+
children: /* @__PURE__ */ o.jsx(B, { classIcon: "bi-trash3" })
|
|
2408
2421
|
}
|
|
2409
2422
|
),
|
|
2410
2423
|
t && /* @__PURE__ */ o.jsx(
|
|
@@ -2448,7 +2461,7 @@ const ps = Rn.div`
|
|
|
2448
2461
|
};
|
|
2449
2462
|
return m(), window.addEventListener("resize", m), () => window.removeEventListener("resize", m);
|
|
2450
2463
|
}, [n]);
|
|
2451
|
-
const
|
|
2464
|
+
const d = R(
|
|
2452
2465
|
(m) => {
|
|
2453
2466
|
m.preventDefault(), i(
|
|
2454
2467
|
(p) => Math.min(p + r, s - l)
|
|
@@ -2467,7 +2480,7 @@ const ps = Rn.div`
|
|
|
2467
2480
|
{
|
|
2468
2481
|
className: `carousel-control prev ${h && "disabled"}`,
|
|
2469
2482
|
onClick: f,
|
|
2470
|
-
children: /* @__PURE__ */ o.jsx(
|
|
2483
|
+
children: /* @__PURE__ */ o.jsx(B, { classIcon: "bi-chevron-left" })
|
|
2471
2484
|
}
|
|
2472
2485
|
),
|
|
2473
2486
|
/* @__PURE__ */ o.jsx("div", { className: "carousel-container", children: /* @__PURE__ */ o.jsx(
|
|
@@ -2496,8 +2509,8 @@ const ps = Rn.div`
|
|
|
2496
2509
|
"div",
|
|
2497
2510
|
{
|
|
2498
2511
|
className: `carousel-control next ${v && "disabled"}`,
|
|
2499
|
-
onClick:
|
|
2500
|
-
children: /* @__PURE__ */ o.jsx(
|
|
2512
|
+
onClick: d,
|
|
2513
|
+
children: /* @__PURE__ */ o.jsx(B, { classIcon: "bi-chevron-right" })
|
|
2501
2514
|
}
|
|
2502
2515
|
)
|
|
2503
2516
|
] });
|
|
@@ -2517,7 +2530,7 @@ const ps = Rn.div`
|
|
|
2517
2530
|
Z(() => {
|
|
2518
2531
|
c(n);
|
|
2519
2532
|
}, [n]);
|
|
2520
|
-
const
|
|
2533
|
+
const d = Ie(() => {
|
|
2521
2534
|
const v = [];
|
|
2522
2535
|
for (let g = 0; g < s; g++) {
|
|
2523
2536
|
const h = [];
|
|
@@ -2540,7 +2553,7 @@ const ps = Rn.div`
|
|
|
2540
2553
|
() => ({ "--rows": String(s) }),
|
|
2541
2554
|
[s]
|
|
2542
2555
|
);
|
|
2543
|
-
return /* @__PURE__ */ o.jsx("div", { className: "damier", style: f, children:
|
|
2556
|
+
return /* @__PURE__ */ o.jsx("div", { className: "damier", style: f, children: d });
|
|
2544
2557
|
};
|
|
2545
2558
|
var Ue = /* @__PURE__ */ ((e) => (e.TEXT = "text", e.BUTTON = "button", e.EMAIL = "email", e.HIDDEN = "hidden", e.PASSWORD = "password", e.NUMBER = "number", e.CHECKBOX = "checkbox", e.RADIO = "radio", e.DATE = "date", e.SELECT = "select", e.TEXTAREA = "textarea", e))(Ue || {});
|
|
2546
2559
|
const wr = ze(
|
|
@@ -2554,7 +2567,7 @@ const wr = ze(
|
|
|
2554
2567
|
className: s,
|
|
2555
2568
|
inputMode: l,
|
|
2556
2569
|
minLength: c,
|
|
2557
|
-
maxLength:
|
|
2570
|
+
maxLength: d,
|
|
2558
2571
|
autoFocus: f = !1,
|
|
2559
2572
|
disabled: v = !1,
|
|
2560
2573
|
required: g = !1,
|
|
@@ -2565,19 +2578,19 @@ const wr = ze(
|
|
|
2565
2578
|
onChange: j,
|
|
2566
2579
|
onBlur: w,
|
|
2567
2580
|
onClick: N,
|
|
2568
|
-
handleKeyDown:
|
|
2569
|
-
},
|
|
2570
|
-
const [
|
|
2581
|
+
handleKeyDown: D
|
|
2582
|
+
}, S) => {
|
|
2583
|
+
const [O, _] = V(!1);
|
|
2571
2584
|
return /* @__PURE__ */ o.jsxs("div", { className: `input-container ${`input-container-${r}`} `, children: [
|
|
2572
2585
|
/* @__PURE__ */ o.jsx("input", { name: `hide-${t}`, type: "text", style: { display: "none" } }),
|
|
2573
2586
|
/* @__PURE__ */ o.jsx(
|
|
2574
2587
|
"input",
|
|
2575
2588
|
{
|
|
2576
|
-
ref:
|
|
2589
|
+
ref: S,
|
|
2577
2590
|
id: e,
|
|
2578
2591
|
name: t,
|
|
2579
2592
|
inputMode: l ?? (r === "number" ? "numeric" : "text"),
|
|
2580
|
-
type:
|
|
2593
|
+
type: O ? Ue.TEXT : r,
|
|
2581
2594
|
spellCheck: "false",
|
|
2582
2595
|
value: n,
|
|
2583
2596
|
placeholder: i,
|
|
@@ -2588,13 +2601,13 @@ const wr = ze(
|
|
|
2588
2601
|
tabIndex: m,
|
|
2589
2602
|
autoFocus: f,
|
|
2590
2603
|
minLength: c,
|
|
2591
|
-
maxLength:
|
|
2604
|
+
maxLength: d,
|
|
2592
2605
|
onChange: j,
|
|
2593
2606
|
checked: y,
|
|
2594
|
-
onKeyDown:
|
|
2607
|
+
onKeyDown: D,
|
|
2595
2608
|
onBlur: w,
|
|
2596
|
-
onClick: (
|
|
2597
|
-
|
|
2609
|
+
onClick: (z) => {
|
|
2610
|
+
z.stopPropagation(), N && N(z);
|
|
2598
2611
|
},
|
|
2599
2612
|
className: `input-field ${s ?? ""}`,
|
|
2600
2613
|
onInvalid: a
|
|
@@ -2603,9 +2616,9 @@ const wr = ze(
|
|
|
2603
2616
|
r === Ue.PASSWORD && /* @__PURE__ */ o.jsx(
|
|
2604
2617
|
"div",
|
|
2605
2618
|
{
|
|
2606
|
-
onClick: () => _(!
|
|
2619
|
+
onClick: () => _(!O),
|
|
2607
2620
|
className: "input-password-icon",
|
|
2608
|
-
children: /* @__PURE__ */ o.jsx(
|
|
2621
|
+
children: /* @__PURE__ */ o.jsx(B, { classIcon: O ? "bi-eye-slash" : "bi-eye" })
|
|
2609
2622
|
}
|
|
2610
2623
|
)
|
|
2611
2624
|
] });
|
|
@@ -2646,7 +2659,7 @@ const ga = ({ display: e, full: t, message: r }) => /* @__PURE__ */ o.jsxs(o.Fra
|
|
|
2646
2659
|
{
|
|
2647
2660
|
className: "mr-2 ",
|
|
2648
2661
|
onClick: () => e.onClick(t),
|
|
2649
|
-
children: /* @__PURE__ */ o.jsx(
|
|
2662
|
+
children: /* @__PURE__ */ o.jsx(B, { classIcon: e.classIcon ?? "" }, e.id)
|
|
2650
2663
|
},
|
|
2651
2664
|
`icon-action-${e.id}-${r}`
|
|
2652
2665
|
)
|
|
@@ -2689,7 +2702,7 @@ const ga = ({ display: e, full: t, message: r }) => /* @__PURE__ */ o.jsxs(o.Fra
|
|
|
2689
2702
|
multiple: s = !1,
|
|
2690
2703
|
required: l = !1,
|
|
2691
2704
|
defaultValue: c,
|
|
2692
|
-
name:
|
|
2705
|
+
name: d,
|
|
2693
2706
|
onChange: f,
|
|
2694
2707
|
onChangeMultiple: v,
|
|
2695
2708
|
value: g,
|
|
@@ -2711,7 +2724,7 @@ const ga = ({ display: e, full: t, message: r }) => /* @__PURE__ */ o.jsxs(o.Fra
|
|
|
2711
2724
|
{
|
|
2712
2725
|
defaultValue: "",
|
|
2713
2726
|
required: l,
|
|
2714
|
-
name:
|
|
2727
|
+
name: d,
|
|
2715
2728
|
style: i,
|
|
2716
2729
|
disabled: a,
|
|
2717
2730
|
id: `select-${e}`,
|
|
@@ -2732,7 +2745,7 @@ const ga = ({ display: e, full: t, message: r }) => /* @__PURE__ */ o.jsxs(o.Fra
|
|
|
2732
2745
|
className: "clear-btn",
|
|
2733
2746
|
onClick: y,
|
|
2734
2747
|
"aria-label": "Réinitialiser",
|
|
2735
|
-
children: /* @__PURE__ */ o.jsx(
|
|
2748
|
+
children: /* @__PURE__ */ o.jsx(B, { classIcon: "bi-x" })
|
|
2736
2749
|
}
|
|
2737
2750
|
)
|
|
2738
2751
|
] });
|
|
@@ -2765,7 +2778,7 @@ const ga = ({ display: e, full: t, message: r }) => /* @__PURE__ */ o.jsxs(o.Fra
|
|
|
2765
2778
|
alt: e.imageAlt ? e.imageAlt(n) : "",
|
|
2766
2779
|
style: e.imageStyle
|
|
2767
2780
|
}
|
|
2768
|
-
) : /* @__PURE__ */ o.jsx(
|
|
2781
|
+
) : /* @__PURE__ */ o.jsx(B, { classIcon: "bi-image" }) : e.editable ? e.type === "select" ? /* @__PURE__ */ o.jsx("div", { onClick: (d) => d.stopPropagation(), children: /* @__PURE__ */ o.jsx(
|
|
2769
2782
|
fo,
|
|
2770
2783
|
{
|
|
2771
2784
|
style: {
|
|
@@ -2775,8 +2788,8 @@ const ga = ({ display: e, full: t, message: r }) => /* @__PURE__ */ o.jsxs(o.Fra
|
|
|
2775
2788
|
},
|
|
2776
2789
|
options: e.options ?? [],
|
|
2777
2790
|
value: i,
|
|
2778
|
-
onChange: (
|
|
2779
|
-
e.onEdit && e.onEdit(
|
|
2791
|
+
onChange: (d) => {
|
|
2792
|
+
e.onEdit && e.onEdit(d, n);
|
|
2780
2793
|
}
|
|
2781
2794
|
}
|
|
2782
2795
|
) }) : /* @__PURE__ */ o.jsx(
|
|
@@ -2791,12 +2804,12 @@ const ga = ({ display: e, full: t, message: r }) => /* @__PURE__ */ o.jsxs(o.Fra
|
|
|
2791
2804
|
maxWidth: e.maxWidth,
|
|
2792
2805
|
width: e.width
|
|
2793
2806
|
},
|
|
2794
|
-
onClick: (
|
|
2795
|
-
onKeyDown: (
|
|
2796
|
-
|
|
2807
|
+
onClick: (d) => d.stopPropagation(),
|
|
2808
|
+
onKeyDown: (d) => {
|
|
2809
|
+
d.key === "Enter" && e.enterToNextColumn && (d.preventDefault(), a == null || a(t, r));
|
|
2797
2810
|
},
|
|
2798
|
-
onChange: (
|
|
2799
|
-
e.onEdit && e.onEdit(
|
|
2811
|
+
onChange: (d) => {
|
|
2812
|
+
e.onEdit && e.onEdit(d.target.value, n);
|
|
2800
2813
|
}
|
|
2801
2814
|
}
|
|
2802
2815
|
) : e.format ? e.format(i) : i
|
|
@@ -2814,7 +2827,7 @@ function Bl(e) {
|
|
|
2814
2827
|
data: s = [],
|
|
2815
2828
|
actions: l = [],
|
|
2816
2829
|
footerAction: c,
|
|
2817
|
-
columns:
|
|
2830
|
+
columns: d = [],
|
|
2818
2831
|
loading: f,
|
|
2819
2832
|
onRowClick: v,
|
|
2820
2833
|
onColumnClick: g,
|
|
@@ -2825,8 +2838,8 @@ function Bl(e) {
|
|
|
2825
2838
|
autoFocusFirstEditable: j = !1,
|
|
2826
2839
|
hideToggleAll: w = !1,
|
|
2827
2840
|
limitSelect: N = void 0,
|
|
2828
|
-
getRowId:
|
|
2829
|
-
} = e,
|
|
2841
|
+
getRowId: D
|
|
2842
|
+
} = e, S = ue(null), O = ue(null), _ = ue(!1), [z, b] = V(!1), [T, U] = V(0), [Y, L] = V(
|
|
2830
2843
|
/* @__PURE__ */ new Set()
|
|
2831
2844
|
), te = R((k) => {
|
|
2832
2845
|
k && (k.scrollIntoView({ block: "nearest", inline: "nearest" }), requestAnimationFrame(() => {
|
|
@@ -2842,21 +2855,21 @@ function Bl(e) {
|
|
|
2842
2855
|
L(/* @__PURE__ */ new Set()), y == null || y([]), b(!1);
|
|
2843
2856
|
else {
|
|
2844
2857
|
let k = s.map(
|
|
2845
|
-
($) =>
|
|
2858
|
+
($) => D ? D($) : $.id ?? $
|
|
2846
2859
|
);
|
|
2847
2860
|
N && k.length > N && (k = k.slice(0, N));
|
|
2848
2861
|
const M = new Set(k);
|
|
2849
2862
|
L(M), b(!0), y == null || y(
|
|
2850
2863
|
s.filter(
|
|
2851
|
-
($) => M.has(
|
|
2864
|
+
($) => M.has(D ? D($) : $.id ?? $)
|
|
2852
2865
|
)
|
|
2853
2866
|
);
|
|
2854
2867
|
}
|
|
2855
|
-
}, [s, y, N,
|
|
2868
|
+
}, [s, y, N, D, Y.size]), xe = R(
|
|
2856
2869
|
(k, M) => {
|
|
2857
2870
|
if (typeof document > "u")
|
|
2858
2871
|
return;
|
|
2859
|
-
const $ = document.getElementById(t), F =
|
|
2872
|
+
const $ = document.getElementById(t), F = d.reduce(
|
|
2860
2873
|
(J, we, K) => (we.editable && we.enterToNextColumn && we.type !== "select" && we.type !== "image" && J.push(K), J),
|
|
2861
2874
|
[]
|
|
2862
2875
|
);
|
|
@@ -2888,7 +2901,7 @@ function Bl(e) {
|
|
|
2888
2901
|
}
|
|
2889
2902
|
Se && te(Se);
|
|
2890
2903
|
},
|
|
2891
|
-
[
|
|
2904
|
+
[d, s, te, t]
|
|
2892
2905
|
), Ee = R(
|
|
2893
2906
|
(k, M) => {
|
|
2894
2907
|
var F, re;
|
|
@@ -2898,7 +2911,7 @@ function Bl(e) {
|
|
|
2898
2911
|
), ce = R(
|
|
2899
2912
|
(k, M) => {
|
|
2900
2913
|
k.stopPropagation();
|
|
2901
|
-
const $ =
|
|
2914
|
+
const $ = D ? D(M) : M.id ?? M, F = new Set(Y);
|
|
2902
2915
|
if (F.has($))
|
|
2903
2916
|
F.delete($);
|
|
2904
2917
|
else {
|
|
@@ -2908,15 +2921,15 @@ function Bl(e) {
|
|
|
2908
2921
|
}
|
|
2909
2922
|
L(F), b(F.size > 0);
|
|
2910
2923
|
const re = s.filter(
|
|
2911
|
-
(ee) => F.has(
|
|
2924
|
+
(ee) => F.has(D ? D(ee) : ee.id ?? ee)
|
|
2912
2925
|
);
|
|
2913
2926
|
y == null || y(re);
|
|
2914
2927
|
},
|
|
2915
|
-
[s,
|
|
2916
|
-
), q = !!(c &&
|
|
2928
|
+
[s, D, N, y, Y]
|
|
2929
|
+
), q = !!(c && z), fe = R(() => {
|
|
2917
2930
|
b(!1);
|
|
2918
2931
|
}, []), oe = s.filter(
|
|
2919
|
-
(k) => Y.has(
|
|
2932
|
+
(k) => Y.has(D ? D(k) : k.id ?? k)
|
|
2920
2933
|
);
|
|
2921
2934
|
return Z(() => {
|
|
2922
2935
|
if (f || !j || s.length === 0) {
|
|
@@ -2925,7 +2938,7 @@ function Bl(e) {
|
|
|
2925
2938
|
}
|
|
2926
2939
|
if (_.current)
|
|
2927
2940
|
return;
|
|
2928
|
-
const k =
|
|
2941
|
+
const k = d.findIndex(
|
|
2929
2942
|
(re) => re.editable && re.enterToNextColumn && re.type !== "select" && re.type !== "image"
|
|
2930
2943
|
);
|
|
2931
2944
|
if (k === -1)
|
|
@@ -2939,17 +2952,17 @@ function Bl(e) {
|
|
|
2939
2952
|
'input:not([disabled]), textarea:not([disabled]), [contenteditable="true"]'
|
|
2940
2953
|
);
|
|
2941
2954
|
F && (_.current = !0, te(F));
|
|
2942
|
-
}, [j,
|
|
2955
|
+
}, [j, d, s.length, te, t, f]), Z(() => {
|
|
2943
2956
|
if (!q) {
|
|
2944
|
-
|
|
2957
|
+
U(0);
|
|
2945
2958
|
return;
|
|
2946
2959
|
}
|
|
2947
|
-
const k =
|
|
2960
|
+
const k = O.current;
|
|
2948
2961
|
if (!k)
|
|
2949
2962
|
return;
|
|
2950
2963
|
const M = () => {
|
|
2951
2964
|
const { height: F } = k.getBoundingClientRect();
|
|
2952
|
-
|
|
2965
|
+
U(Math.ceil(F) + 16);
|
|
2953
2966
|
};
|
|
2954
2967
|
if (M(), typeof ResizeObserver > "u")
|
|
2955
2968
|
return;
|
|
@@ -2971,14 +2984,14 @@ function Bl(e) {
|
|
|
2971
2984
|
threshold: 1
|
|
2972
2985
|
}
|
|
2973
2986
|
);
|
|
2974
|
-
return
|
|
2975
|
-
|
|
2987
|
+
return S.current && k.observe(S.current), () => {
|
|
2988
|
+
S.current && k.unobserve(S.current);
|
|
2976
2989
|
};
|
|
2977
2990
|
}, [h, p]), /* @__PURE__ */ o.jsxs(
|
|
2978
2991
|
"div",
|
|
2979
2992
|
{
|
|
2980
2993
|
className: `data-table-container ${q ? "data-table-container--with-footer-action" : ""}`,
|
|
2981
|
-
style: q ? { paddingBottom: `${
|
|
2994
|
+
style: q ? { paddingBottom: `${T}px` } : void 0,
|
|
2982
2995
|
children: [
|
|
2983
2996
|
r && /* @__PURE__ */ o.jsx("h2", { className: "mb-2", children: r }),
|
|
2984
2997
|
i,
|
|
@@ -3001,7 +3014,7 @@ function Bl(e) {
|
|
|
3001
3014
|
)
|
|
3002
3015
|
}
|
|
3003
3016
|
),
|
|
3004
|
-
|
|
3017
|
+
d.map((k, M) => /* @__PURE__ */ o.jsx(
|
|
3005
3018
|
xs,
|
|
3006
3019
|
{
|
|
3007
3020
|
column: k,
|
|
@@ -3026,7 +3039,7 @@ function Bl(e) {
|
|
|
3026
3039
|
"td",
|
|
3027
3040
|
{
|
|
3028
3041
|
align: "center",
|
|
3029
|
-
colSpan:
|
|
3042
|
+
colSpan: d.length + (l.length > 0 ? 1 : 0),
|
|
3030
3043
|
children: /* @__PURE__ */ o.jsx("div", { className: "mt-3", children: /* @__PURE__ */ o.jsx(ga, { display: f }) })
|
|
3031
3044
|
}
|
|
3032
3045
|
) }) : /* @__PURE__ */ o.jsx(o.Fragment, {}),
|
|
@@ -3052,17 +3065,17 @@ function Bl(e) {
|
|
|
3052
3065
|
name: `select-row-${M}`,
|
|
3053
3066
|
type: Ue.CHECKBOX,
|
|
3054
3067
|
disabled: N !== void 0 && Y.size >= N && !Y.has(
|
|
3055
|
-
|
|
3068
|
+
D ? D(k) : k.id ?? k
|
|
3056
3069
|
),
|
|
3057
3070
|
checked: Y.has(
|
|
3058
|
-
|
|
3071
|
+
D ? D(k) : k.id ?? k
|
|
3059
3072
|
),
|
|
3060
3073
|
onChange: ($) => ce($, k)
|
|
3061
3074
|
}
|
|
3062
3075
|
)
|
|
3063
3076
|
}
|
|
3064
3077
|
),
|
|
3065
|
-
|
|
3078
|
+
d.map(($, F) => /* @__PURE__ */ o.jsx(
|
|
3066
3079
|
js,
|
|
3067
3080
|
{
|
|
3068
3081
|
column: $,
|
|
@@ -3089,7 +3102,7 @@ function Bl(e) {
|
|
|
3089
3102
|
!f && s.length === 0 && /* @__PURE__ */ o.jsx(
|
|
3090
3103
|
ws,
|
|
3091
3104
|
{
|
|
3092
|
-
columns:
|
|
3105
|
+
columns: d,
|
|
3093
3106
|
actions: l,
|
|
3094
3107
|
emptyMessage: m
|
|
3095
3108
|
}
|
|
@@ -3100,7 +3113,7 @@ function Bl(e) {
|
|
|
3100
3113
|
/* @__PURE__ */ o.jsx(
|
|
3101
3114
|
"div",
|
|
3102
3115
|
{
|
|
3103
|
-
ref:
|
|
3116
|
+
ref: O,
|
|
3104
3117
|
className: "data-table-footer-action",
|
|
3105
3118
|
"data-footer-action": "true",
|
|
3106
3119
|
children: /* @__PURE__ */ o.jsxs("div", { className: "data-table-footer-action__content", children: [
|
|
@@ -3110,7 +3123,7 @@ function Bl(e) {
|
|
|
3110
3123
|
className: "data-table-footer-action__close",
|
|
3111
3124
|
"aria-label": "Fermer les actions",
|
|
3112
3125
|
onClick: fe,
|
|
3113
|
-
children: /* @__PURE__ */ o.jsx(
|
|
3126
|
+
children: /* @__PURE__ */ o.jsx(B, { classIcon: "bi-x" })
|
|
3114
3127
|
}
|
|
3115
3128
|
),
|
|
3116
3129
|
c == null ? void 0 : c({
|
|
@@ -3123,7 +3136,7 @@ function Bl(e) {
|
|
|
3123
3136
|
document.body
|
|
3124
3137
|
),
|
|
3125
3138
|
a,
|
|
3126
|
-
p && /* @__PURE__ */ o.jsx("div", { ref:
|
|
3139
|
+
p && /* @__PURE__ */ o.jsx("div", { ref: S, className: "infinite-scroll-loader", children: /* @__PURE__ */ o.jsx(ga, { display: !0 }) })
|
|
3127
3140
|
]
|
|
3128
3141
|
}
|
|
3129
3142
|
);
|
|
@@ -3168,18 +3181,18 @@ var Ts = _s, un = { exports: {} }, Ps = () => {
|
|
|
3168
3181
|
}), e;
|
|
3169
3182
|
};
|
|
3170
3183
|
(function(e, t) {
|
|
3171
|
-
var r = ar && ar.__awaiter || function(s, l, c,
|
|
3184
|
+
var r = ar && ar.__awaiter || function(s, l, c, d) {
|
|
3172
3185
|
return new (c || (c = Promise))(function(f, v) {
|
|
3173
3186
|
function g(p) {
|
|
3174
3187
|
try {
|
|
3175
|
-
m(
|
|
3188
|
+
m(d.next(p));
|
|
3176
3189
|
} catch (y) {
|
|
3177
3190
|
v(y);
|
|
3178
3191
|
}
|
|
3179
3192
|
}
|
|
3180
3193
|
function h(p) {
|
|
3181
3194
|
try {
|
|
3182
|
-
m(
|
|
3195
|
+
m(d.throw(p));
|
|
3183
3196
|
} catch (y) {
|
|
3184
3197
|
v(y);
|
|
3185
3198
|
}
|
|
@@ -3189,7 +3202,7 @@ var Ts = _s, un = { exports: {} }, Ps = () => {
|
|
|
3189
3202
|
y(p.value);
|
|
3190
3203
|
}).then(g, h);
|
|
3191
3204
|
}
|
|
3192
|
-
m((
|
|
3205
|
+
m((d = d.apply(s, l || [])).next());
|
|
3193
3206
|
});
|
|
3194
3207
|
}, n = ar && ar.__importDefault || function(s) {
|
|
3195
3208
|
return s && s.__esModule ? s : { default: s };
|
|
@@ -3197,7 +3210,7 @@ var Ts = _s, un = { exports: {} }, Ps = () => {
|
|
|
3197
3210
|
Object.defineProperty(t, "__esModule", { value: !0 });
|
|
3198
3211
|
const a = n(Ps);
|
|
3199
3212
|
function i(s, l = "maxAge") {
|
|
3200
|
-
let c,
|
|
3213
|
+
let c, d, f;
|
|
3201
3214
|
const v = () => r(this, void 0, void 0, function* () {
|
|
3202
3215
|
if (c !== void 0)
|
|
3203
3216
|
return;
|
|
@@ -3208,9 +3221,9 @@ var Ts = _s, un = { exports: {} }, Ps = () => {
|
|
|
3208
3221
|
s.delete(p[0]), f.resolve();
|
|
3209
3222
|
return;
|
|
3210
3223
|
}
|
|
3211
|
-
return c = p[0],
|
|
3224
|
+
return c = p[0], d = setTimeout(() => {
|
|
3212
3225
|
s.delete(p[0]), f && f.resolve();
|
|
3213
|
-
}, y), typeof
|
|
3226
|
+
}, y), typeof d.unref == "function" && d.unref(), f.promise;
|
|
3214
3227
|
});
|
|
3215
3228
|
try {
|
|
3216
3229
|
for (const p of s)
|
|
@@ -3219,7 +3232,7 @@ var Ts = _s, un = { exports: {} }, Ps = () => {
|
|
|
3219
3232
|
}
|
|
3220
3233
|
c = void 0;
|
|
3221
3234
|
}), g = () => {
|
|
3222
|
-
c = void 0,
|
|
3235
|
+
c = void 0, d !== void 0 && (clearTimeout(d), d = void 0), f !== void 0 && (f.reject(void 0), f = void 0);
|
|
3223
3236
|
}, h = s.set.bind(s);
|
|
3224
3237
|
return s.set = (m, p) => {
|
|
3225
3238
|
s.has(m) && s.delete(m);
|
|
@@ -3301,8 +3314,8 @@ function dn(e) {
|
|
|
3301
3314
|
function Ws(e) {
|
|
3302
3315
|
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 = [];
|
|
3303
3316
|
if (typeof navigator < "u") {
|
|
3304
|
-
for (var l = navigator.languages || [], c = [],
|
|
3305
|
-
var v = f[
|
|
3317
|
+
for (var l = navigator.languages || [], c = [], d = 0, f = l; d < f.length; d++) {
|
|
3318
|
+
var v = f[d];
|
|
3306
3319
|
c = c.concat(ya(v));
|
|
3307
3320
|
}
|
|
3308
3321
|
var g = navigator.language, h = g && ya(g);
|
|
@@ -3668,16 +3681,16 @@ function Po(e, t) {
|
|
|
3668
3681
|
}
|
|
3669
3682
|
var Ae = "react-calendar__navigation";
|
|
3670
3683
|
function Dc(e) {
|
|
3671
|
-
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,
|
|
3684
|
+
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, v = f === void 0 ? "" : f, g = e.navigationAriaLive, h = e.navigationLabel, m = e.next2AriaLabel, p = m === void 0 ? "" : m, y = e.next2Label, j = y === void 0 ? "»" : y, w = e.nextAriaLabel, N = w === void 0 ? "" : w, D = e.nextLabel, S = D === void 0 ? "›" : D, O = e.prev2AriaLabel, _ = O === void 0 ? "" : O, z = e.prev2Label, b = z === void 0 ? "«" : z, T = e.prevAriaLabel, U = T === void 0 ? "" : T, Y = e.prevLabel, L = Y === void 0 ? "‹" : Y, te = e.setActiveStartDate, pe = e.showDoubleView, de = e.view, xe = e.views, Ee = xe.indexOf(de) > 0, ce = de !== "century", q = pc(de, t), fe = ce ? gc(de, t) : void 0, oe = ko(de, t), k = ce ? yc(de, t) : void 0, M = function() {
|
|
3672
3685
|
if (q.getFullYear() < 0)
|
|
3673
3686
|
return !0;
|
|
3674
3687
|
var K = bc(de, t);
|
|
3675
|
-
return
|
|
3688
|
+
return d && d >= K;
|
|
3676
3689
|
}(), $ = ce && function() {
|
|
3677
3690
|
if (fe.getFullYear() < 0)
|
|
3678
3691
|
return !0;
|
|
3679
3692
|
var K = xc(de, t);
|
|
3680
|
-
return
|
|
3693
|
+
return d && d >= K;
|
|
3681
3694
|
}(), F = c && c < oe, re = ce && c && c < k;
|
|
3682
3695
|
function ee() {
|
|
3683
3696
|
te(q, "prev");
|
|
@@ -3717,7 +3730,7 @@ function Dc(e) {
|
|
|
3717
3730
|
var K = "".concat(Ae, "__label");
|
|
3718
3731
|
return o.jsxs("button", { "aria-label": v, "aria-live": g, className: K, disabled: !Ee, onClick: r, style: { flexGrow: 1 }, type: "button", children: [o.jsx("span", { className: "".concat(K, "__labelText ").concat(K, "__labelText--from"), children: J(t) }), pe ? o.jsxs(o.Fragment, { children: [o.jsx("span", { className: "".concat(K, "__divider"), children: " – " }), o.jsx("span", { className: "".concat(K, "__labelText ").concat(K, "__labelText--to"), children: J(oe) })] }) : null] });
|
|
3719
3732
|
}
|
|
3720
|
-
return o.jsxs("div", { className: Ae, children: [b !== null && ce ? o.jsx("button", { "aria-label": _, className: "".concat(Ae, "__arrow ").concat(Ae, "__prev2-button"), disabled: $, onClick: le, type: "button", children: b }) : null, L !== null && o.jsx("button", { "aria-label":
|
|
3733
|
+
return o.jsxs("div", { className: Ae, children: [b !== null && ce ? o.jsx("button", { "aria-label": _, className: "".concat(Ae, "__arrow ").concat(Ae, "__prev2-button"), disabled: $, onClick: le, type: "button", children: b }) : null, L !== null && o.jsx("button", { "aria-label": U, className: "".concat(Ae, "__arrow ").concat(Ae, "__prev-button"), disabled: M, onClick: ee, type: "button", children: L }), we(), S !== null && o.jsx("button", { "aria-label": N, className: "".concat(Ae, "__arrow ").concat(Ae, "__next-button"), disabled: F, onClick: je, type: "button", children: S }), j !== null && ce ? o.jsx("button", { "aria-label": p, className: "".concat(Ae, "__arrow ").concat(Ae, "__next2-button"), disabled: re, onClick: Se, type: "button", children: j }) : null] });
|
|
3721
3734
|
}
|
|
3722
3735
|
var ht = function() {
|
|
3723
3736
|
return ht = Object.assign || function(e) {
|
|
@@ -3740,9 +3753,9 @@ function wa(e) {
|
|
|
3740
3753
|
}
|
|
3741
3754
|
function Bn(e) {
|
|
3742
3755
|
var t = e.children, r = e.className, n = e.count, a = e.direction, i = e.offset, s = e.style, l = e.wrap, c = Oc(e, ["children", "className", "count", "direction", "offset", "style", "wrap"]);
|
|
3743
|
-
return o.jsx("div", ht({ className: r, style: ht({ display: "flex", flexDirection: a, flexWrap: l ? "wrap" : "nowrap" }, s) }, c, { children: zo.map(t, function(
|
|
3756
|
+
return o.jsx("div", ht({ className: r, style: ht({ display: "flex", flexDirection: a, flexWrap: l ? "wrap" : "nowrap" }, s) }, c, { children: zo.map(t, function(d, f) {
|
|
3744
3757
|
var v = i && f === 0 ? wa(100 * i / n) : null;
|
|
3745
|
-
return Ho(
|
|
3758
|
+
return Ho(d, ht(ht({}, d.props), { style: {
|
|
3746
3759
|
flexBasis: wa(100 / n),
|
|
3747
3760
|
flexShrink: 0,
|
|
3748
3761
|
flexGrow: 0,
|
|
@@ -3802,8 +3815,8 @@ function Cc(e) {
|
|
|
3802
3815
|
return xa(h, t);
|
|
3803
3816
|
}();
|
|
3804
3817
|
Ec(c, l) ? i.push("".concat(a, "--active")) : Ao(c, l) && i.push("".concat(a, "--hasActive"));
|
|
3805
|
-
var
|
|
3806
|
-
i.push.apply(i,
|
|
3818
|
+
var d = ja(c, l, "".concat(a, "--range"));
|
|
3819
|
+
i.push.apply(i, d);
|
|
3807
3820
|
var f = Array.isArray(t) ? t : [t];
|
|
3808
3821
|
if (n && f.length === 1) {
|
|
3809
3822
|
var v = n > c[0] ? [c[0], n] : [n, c[0]], g = ja(v, l, "".concat(a, "--hover"));
|
|
@@ -3812,9 +3825,9 @@ function Cc(e) {
|
|
|
3812
3825
|
return i;
|
|
3813
3826
|
}
|
|
3814
3827
|
function $r(e) {
|
|
3815
|
-
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,
|
|
3828
|
+
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, v = e.step, g = v === void 0 ? 1 : v, h = e.value, m = e.valueType, p = [], y = f; y <= s; y += g) {
|
|
3816
3829
|
var j = a(y);
|
|
3817
|
-
p.push(
|
|
3830
|
+
p.push(d({
|
|
3818
3831
|
classes: Cc({
|
|
3819
3832
|
date: j,
|
|
3820
3833
|
dateType: i,
|
|
@@ -3828,15 +3841,15 @@ function $r(e) {
|
|
|
3828
3841
|
return o.jsx(Bn, { className: t, count: n, offset: c, wrap: !0, children: p });
|
|
3829
3842
|
}
|
|
3830
3843
|
function Mr(e) {
|
|
3831
|
-
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,
|
|
3832
|
-
var
|
|
3833
|
-
return typeof m == "function" ? m(
|
|
3844
|
+
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, v = e.onClick, g = e.onMouseOver, h = e.style, m = e.tileClassName, p = e.tileContent, y = e.tileDisabled, j = e.view, w = Ie(function() {
|
|
3845
|
+
var D = { activeStartDate: t, date: a, view: j };
|
|
3846
|
+
return typeof m == "function" ? m(D) : m;
|
|
3834
3847
|
}, [t, a, m, j]), N = Ie(function() {
|
|
3835
|
-
var
|
|
3836
|
-
return typeof p == "function" ? p(
|
|
3848
|
+
var D = { activeStartDate: t, date: a, view: j };
|
|
3849
|
+
return typeof p == "function" ? p(D) : p;
|
|
3837
3850
|
}, [t, a, p, j]);
|
|
3838
|
-
return o.jsxs("button", { className: Tr(n, w), disabled:
|
|
3839
|
-
return v(a,
|
|
3851
|
+
return o.jsxs("button", { className: Tr(n, w), disabled: d && f(d) > a || l && c(l) < a || (y == null ? void 0 : y({ activeStartDate: t, date: a, view: j })), onClick: v ? function(D) {
|
|
3852
|
+
return v(a, D);
|
|
3840
3853
|
} : void 0, onFocus: g ? function() {
|
|
3841
3854
|
return g(a);
|
|
3842
3855
|
} : void 0, onMouseOver: g ? function() {
|
|
@@ -3860,8 +3873,8 @@ var hn = function() {
|
|
|
3860
3873
|
return r;
|
|
3861
3874
|
}, Sa = "react-calendar__century-view__decades__decade";
|
|
3862
3875
|
function Tc(e) {
|
|
3863
|
-
var t = e.classes, r = t === void 0 ? [] : t, n = e.currentCentury, a = e.formatYear, i = a === void 0 ? Ir : a, s = _c(e, ["classes", "currentCentury", "formatYear"]), l = s.date, c = s.locale,
|
|
3864
|
-
return r &&
|
|
3876
|
+
var t = e.classes, r = t === void 0 ? [] : t, n = e.currentCentury, a = e.formatYear, i = a === void 0 ? Ir : a, s = _c(e, ["classes", "currentCentury", "formatYear"]), l = s.date, c = s.locale, d = [];
|
|
3877
|
+
return r && d.push.apply(d, r), d.push(Sa), Dt(l).getFullYear() !== n && d.push("".concat(Sa, "--neighboringCentury")), o.jsx(Mr, hn({}, s, { classes: d, maxDateTransform: Ar, minDateTransform: Ge, view: "century", children: To(c, i, l) }));
|
|
3865
3878
|
}
|
|
3866
3879
|
var vn = function() {
|
|
3867
3880
|
return vn = Object.assign || function(e) {
|
|
@@ -3881,8 +3894,8 @@ var vn = function() {
|
|
|
3881
3894
|
};
|
|
3882
3895
|
function Pc(e) {
|
|
3883
3896
|
var t = e.activeStartDate, r = e.hover, n = e.showNeighboringCentury, a = e.value, i = e.valueType, s = Da(e, ["activeStartDate", "hover", "showNeighboringCentury", "value", "valueType"]), l = hc(t), c = l + (n ? 119 : 99);
|
|
3884
|
-
return o.jsx($r, { className: "react-calendar__century-view__decades", dateTransform: Ge, dateType: "decade", end: c, hover: r, renderTile: function(
|
|
3885
|
-
var f =
|
|
3897
|
+
return o.jsx($r, { className: "react-calendar__century-view__decades", dateTransform: Ge, dateType: "decade", end: c, hover: r, renderTile: function(d) {
|
|
3898
|
+
var f = d.date, v = Da(d, ["date"]);
|
|
3886
3899
|
return o.jsx(Tc, vn({}, s, v, { activeStartDate: t, currentCentury: l, date: f }), f.getTime());
|
|
3887
3900
|
}, start: l, step: 10, value: a, valueType: i });
|
|
3888
3901
|
}
|
|
@@ -3918,8 +3931,8 @@ var pn = function() {
|
|
|
3918
3931
|
return r;
|
|
3919
3932
|
}, Oa = "react-calendar__decade-view__years__year";
|
|
3920
3933
|
function Ic(e) {
|
|
3921
|
-
var t = e.classes, r = t === void 0 ? [] : t, n = e.currentDecade, a = e.formatYear, i = a === void 0 ? Ir : a, s = Rc(e, ["classes", "currentDecade", "formatYear"]), l = s.date, c = s.locale,
|
|
3922
|
-
return r &&
|
|
3934
|
+
var t = e.classes, r = t === void 0 ? [] : t, n = e.currentDecade, a = e.formatYear, i = a === void 0 ? Ir : a, s = Rc(e, ["classes", "currentDecade", "formatYear"]), l = s.date, c = s.locale, d = [];
|
|
3935
|
+
return r && d.push.apply(d, r), d.push(Oa), Ge(l).getFullYear() !== n && d.push("".concat(Oa, "--neighboringDecade")), o.jsx(Mr, pn({}, s, { classes: d, maxDateTransform: Rr, minDateTransform: Ot, view: "decade", children: i(c, l) }));
|
|
3923
3936
|
}
|
|
3924
3937
|
var gn = function() {
|
|
3925
3938
|
return gn = Object.assign || function(e) {
|
|
@@ -3939,8 +3952,8 @@ var gn = function() {
|
|
|
3939
3952
|
};
|
|
3940
3953
|
function $c(e) {
|
|
3941
3954
|
var t = e.activeStartDate, r = e.hover, n = e.showNeighboringDecade, a = e.value, i = e.valueType, s = Na(e, ["activeStartDate", "hover", "showNeighboringDecade", "value", "valueType"]), l = vc(t), c = l + (n ? 11 : 9);
|
|
3942
|
-
return o.jsx($r, { className: "react-calendar__decade-view__years", dateTransform: Ot, dateType: "year", end: c, hover: r, renderTile: function(
|
|
3943
|
-
var f =
|
|
3955
|
+
return o.jsx($r, { className: "react-calendar__decade-view__years", dateTransform: Ot, dateType: "year", end: c, hover: r, renderTile: function(d) {
|
|
3956
|
+
var f = d.date, v = Na(d, ["date"]);
|
|
3944
3957
|
return o.jsx(Ic, gn({}, s, v, { activeStartDate: t, currentDecade: l, date: f }), f.getTime());
|
|
3945
3958
|
}, start: l, value: a, valueType: i });
|
|
3946
3959
|
}
|
|
@@ -3980,8 +3993,8 @@ var bn = function() {
|
|
|
3980
3993
|
return e.concat(i || Array.prototype.slice.call(t));
|
|
3981
3994
|
}, Fc = "react-calendar__year-view__months__month";
|
|
3982
3995
|
function Wc(e) {
|
|
3983
|
-
var t = e.classes, r = t === void 0 ? [] : t, n = e.formatMonth, a = n === void 0 ? cc : n, i = e.formatMonthYear, s = i === void 0 ? Eo : i, l = Lc(e, ["classes", "formatMonth", "formatMonthYear"]), c = l.date,
|
|
3984
|
-
return o.jsx(Mr, bn({}, l, { classes: Ea(Ea([], r, !0), [Fc], !1), formatAbbr: s, maxDateTransform: zt, minDateTransform: ot, view: "year", children: a(
|
|
3996
|
+
var t = e.classes, r = t === void 0 ? [] : t, n = e.formatMonth, a = n === void 0 ? cc : n, i = e.formatMonthYear, s = i === void 0 ? Eo : i, l = Lc(e, ["classes", "formatMonth", "formatMonthYear"]), c = l.date, d = l.locale;
|
|
3997
|
+
return o.jsx(Mr, bn({}, l, { classes: Ea(Ea([], r, !0), [Fc], !1), formatAbbr: s, maxDateTransform: zt, minDateTransform: ot, view: "year", children: a(d, c) }));
|
|
3985
3998
|
}
|
|
3986
3999
|
var xn = function() {
|
|
3987
4000
|
return xn = Object.assign || function(e) {
|
|
@@ -4001,11 +4014,11 @@ var xn = function() {
|
|
|
4001
4014
|
};
|
|
4002
4015
|
function Vc(e) {
|
|
4003
4016
|
var t = e.activeStartDate, r = e.hover, n = e.value, a = e.valueType, i = ka(e, ["activeStartDate", "hover", "value", "valueType"]), s = 0, l = 11, c = se(t);
|
|
4004
|
-
return o.jsx($r, { className: "react-calendar__year-view__months", dateTransform: function(
|
|
4017
|
+
return o.jsx($r, { className: "react-calendar__year-view__months", dateTransform: function(d) {
|
|
4005
4018
|
var f = /* @__PURE__ */ new Date();
|
|
4006
|
-
return f.setFullYear(c,
|
|
4007
|
-
}, dateType: "month", end: l, hover: r, renderTile: function(
|
|
4008
|
-
var f =
|
|
4019
|
+
return f.setFullYear(c, d, 1), ot(f);
|
|
4020
|
+
}, dateType: "month", end: l, hover: r, renderTile: function(d) {
|
|
4021
|
+
var f = d.date, v = ka(d, ["date"]);
|
|
4009
4022
|
return o.jsx(Wc, xn({}, i, v, { activeStartDate: t, date: f }), f.getTime());
|
|
4010
4023
|
}, start: s, value: n, valueType: a });
|
|
4011
4024
|
}
|
|
@@ -4041,8 +4054,8 @@ var jn = function() {
|
|
|
4041
4054
|
return r;
|
|
4042
4055
|
}, Jr = "react-calendar__month-view__days__day";
|
|
4043
4056
|
function Uc(e) {
|
|
4044
|
-
var t = e.calendarType, r = e.classes, n = r === void 0 ? [] : r, a = e.currentMonthIndex, i = e.formatDay, s = i === void 0 ? ic : i, l = e.formatLongDate, c = l === void 0 ? sc : l,
|
|
4045
|
-
return n && g.push.apply(g, n), g.push(Jr), Po(f, t) && g.push("".concat(Jr, "--weekend")), f.getMonth() !== a && g.push("".concat(Jr, "--neighboringMonth")), o.jsx(Mr, jn({},
|
|
4057
|
+
var t = e.calendarType, r = e.classes, n = r === void 0 ? [] : r, a = e.currentMonthIndex, i = e.formatDay, s = i === void 0 ? ic : i, l = e.formatLongDate, c = l === void 0 ? sc : l, d = Bc(e, ["calendarType", "classes", "currentMonthIndex", "formatDay", "formatLongDate"]), f = d.date, v = d.locale, g = [];
|
|
4058
|
+
return n && g.push.apply(g, n), g.push(Jr), Po(f, t) && g.push("".concat(Jr, "--weekend")), f.getMonth() !== a && g.push("".concat(Jr, "--neighboringMonth")), o.jsx(Mr, jn({}, d, { classes: g, formatAbbr: c, maxDateTransform: Vn, minDateTransform: Ht, view: "month", children: s(v, f) }));
|
|
4046
4059
|
}
|
|
4047
4060
|
var Sn = function() {
|
|
4048
4061
|
return Sn = Object.assign || function(e) {
|
|
@@ -4061,13 +4074,13 @@ var Sn = function() {
|
|
|
4061
4074
|
return r;
|
|
4062
4075
|
};
|
|
4063
4076
|
function zc(e) {
|
|
4064
|
-
var t = e.activeStartDate, r = e.calendarType, n = e.hover, a = e.showFixedNumberOfWeeks, i = e.showNeighboringMonth, s = e.value, l = e.valueType, c = Ca(e, ["activeStartDate", "calendarType", "hover", "showFixedNumberOfWeeks", "showNeighboringMonth", "value", "valueType"]),
|
|
4077
|
+
var t = e.activeStartDate, r = e.calendarType, n = e.hover, a = e.showFixedNumberOfWeeks, i = e.showNeighboringMonth, s = e.value, l = e.valueType, c = Ca(e, ["activeStartDate", "calendarType", "hover", "showFixedNumberOfWeeks", "showNeighboringMonth", "value", "valueType"]), d = se(t), f = He(t), v = a || i, g = Vt(t, r), h = v ? 0 : g, m = (v ? -g : 0) + 1, p = function() {
|
|
4065
4078
|
if (a)
|
|
4066
4079
|
return m + 6 * 7 - 1;
|
|
4067
4080
|
var y = No(t);
|
|
4068
4081
|
if (i) {
|
|
4069
4082
|
var j = /* @__PURE__ */ new Date();
|
|
4070
|
-
j.setFullYear(
|
|
4083
|
+
j.setFullYear(d, f, y), j.setHours(0, 0, 0, 0);
|
|
4071
4084
|
var w = 7 - Vt(j, r) - 1;
|
|
4072
4085
|
return y + w;
|
|
4073
4086
|
}
|
|
@@ -4075,7 +4088,7 @@ function zc(e) {
|
|
|
4075
4088
|
}();
|
|
4076
4089
|
return o.jsx($r, { className: "react-calendar__month-view__days", count: 7, dateTransform: function(y) {
|
|
4077
4090
|
var j = /* @__PURE__ */ new Date();
|
|
4078
|
-
return j.setFullYear(
|
|
4091
|
+
return j.setFullYear(d, f, y), Ht(j);
|
|
4079
4092
|
}, dateType: "day", hover: n, end: p, renderTile: function(y) {
|
|
4080
4093
|
var j = y.date, w = Ca(y, ["date"]);
|
|
4081
4094
|
return o.jsx(Uc, Sn({}, c, w, { activeStartDate: t, calendarType: r, currentMonthIndex: f, date: j }), j.getTime());
|
|
@@ -4083,8 +4096,8 @@ function zc(e) {
|
|
|
4083
4096
|
}
|
|
4084
4097
|
var Ro = "react-calendar__month-view__weekdays", Qr = "".concat(Ro, "__weekday");
|
|
4085
4098
|
function Hc(e) {
|
|
4086
|
-
for (var t = e.calendarType, r = e.formatShortWeekday, n = r === void 0 ? lc : r, a = e.formatWeekday, i = a === void 0 ? uc : a, s = e.locale, l = e.onMouseLeave, c = /* @__PURE__ */ new Date(),
|
|
4087
|
-
var m = new Date(f, v, h - Vt(
|
|
4099
|
+
for (var t = e.calendarType, r = e.formatShortWeekday, n = r === void 0 ? lc : r, a = e.formatWeekday, i = a === void 0 ? uc : a, s = e.locale, l = e.onMouseLeave, c = /* @__PURE__ */ new Date(), d = ot(c), f = se(d), v = He(d), g = [], h = 1; h <= 7; h += 1) {
|
|
4100
|
+
var m = new Date(f, v, h - Vt(d, t)), p = i(s, m);
|
|
4088
4101
|
g.push(o.jsx("div", { className: Tr(Qr, Sc(m) && "".concat(Qr, "--current"), Po(m, t) && "".concat(Qr, "--weekend")), children: o.jsx("abbr", { "aria-label": p, title: p, children: n(s, m).replace(".", "") }) }, h));
|
|
4089
4102
|
}
|
|
4090
4103
|
return o.jsx(Bn, { className: Ro, count: 7, onFocus: l, onMouseOver: l, children: g });
|
|
@@ -4122,20 +4135,20 @@ function qc(e) {
|
|
|
4122
4135
|
var t = e.activeStartDate, r = e.calendarType, n = e.onClickWeekNumber, a = e.onMouseLeave, i = e.showFixedNumberOfWeeks, s = function() {
|
|
4123
4136
|
if (i)
|
|
4124
4137
|
return 6;
|
|
4125
|
-
var
|
|
4138
|
+
var d = No(t), f = Vt(t, r), v = d - (7 - f);
|
|
4126
4139
|
return 1 + Math.ceil(v / 7);
|
|
4127
4140
|
}(), l = function() {
|
|
4128
|
-
for (var
|
|
4129
|
-
g.push(fn(new Date(
|
|
4141
|
+
for (var d = se(t), f = He(t), v = Pr(t), g = [], h = 0; h < s; h += 1)
|
|
4142
|
+
g.push(fn(new Date(d, f, v + h * 7), r));
|
|
4130
4143
|
return g;
|
|
4131
|
-
}(), c = l.map(function(
|
|
4132
|
-
return mc(
|
|
4144
|
+
}(), c = l.map(function(d) {
|
|
4145
|
+
return mc(d, r);
|
|
4133
4146
|
});
|
|
4134
|
-
return o.jsx(Bn, { 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(
|
|
4147
|
+
return o.jsx(Bn, { 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) {
|
|
4135
4148
|
var v = l[f];
|
|
4136
4149
|
if (!v)
|
|
4137
4150
|
throw new Error("date is not defined");
|
|
4138
|
-
return o.jsx(Gc, { date: v, onClickWeekNumber: n, weekNumber:
|
|
4151
|
+
return o.jsx(Gc, { date: v, onClickWeekNumber: n, weekNumber: d }, d);
|
|
4139
4152
|
}) });
|
|
4140
4153
|
}
|
|
4141
4154
|
var Dn = function() {
|
|
@@ -4164,12 +4177,12 @@ function Kc(e) {
|
|
|
4164
4177
|
return ye.ISO_8601;
|
|
4165
4178
|
}
|
|
4166
4179
|
function Jc(e) {
|
|
4167
|
-
var t = e.activeStartDate, r = e.locale, n = e.onMouseLeave, a = e.showFixedNumberOfWeeks, i = e.calendarType, s = i === void 0 ? Kc(r) : i, l = e.formatShortWeekday, c = e.formatWeekday,
|
|
4180
|
+
var t = e.activeStartDate, r = e.locale, n = e.onMouseLeave, a = e.showFixedNumberOfWeeks, i = e.calendarType, s = i === void 0 ? Kc(r) : i, l = e.formatShortWeekday, c = e.formatWeekday, d = e.onClickWeekNumber, f = e.showWeekNumbers, v = Xc(e, ["calendarType", "formatShortWeekday", "formatWeekday", "onClickWeekNumber", "showWeekNumbers"]);
|
|
4168
4181
|
function g() {
|
|
4169
4182
|
return o.jsx(Hc, { calendarType: s, formatShortWeekday: l, formatWeekday: c, locale: r, onMouseLeave: n });
|
|
4170
4183
|
}
|
|
4171
4184
|
function h() {
|
|
4172
|
-
return f ? o.jsx(qc, { activeStartDate: t, calendarType: s, onClickWeekNumber:
|
|
4185
|
+
return f ? o.jsx(qc, { activeStartDate: t, calendarType: s, onClickWeekNumber: d, onMouseLeave: n, showFixedNumberOfWeeks: a }) : null;
|
|
4173
4186
|
}
|
|
4174
4187
|
function m() {
|
|
4175
4188
|
return o.jsx(zc, Dn({ calendarType: s }, v));
|
|
@@ -4256,13 +4269,13 @@ function Fo(e) {
|
|
|
4256
4269
|
return nt(l, c);
|
|
4257
4270
|
}
|
|
4258
4271
|
function nl(e) {
|
|
4259
|
-
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,
|
|
4272
|
+
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, v = zn(f, c, s), g = t || r;
|
|
4260
4273
|
return g ? nt(v, g) : Fo({
|
|
4261
4274
|
maxDate: i,
|
|
4262
4275
|
maxDetail: s,
|
|
4263
4276
|
minDate: l,
|
|
4264
4277
|
minDetail: c,
|
|
4265
|
-
value:
|
|
4278
|
+
value: d || n,
|
|
4266
4279
|
view: f || a
|
|
4267
4280
|
});
|
|
4268
4281
|
}
|
|
@@ -4273,16 +4286,16 @@ function ur(e, t) {
|
|
|
4273
4286
|
return e instanceof Date && t instanceof Date && e.getTime() === t.getTime();
|
|
4274
4287
|
}
|
|
4275
4288
|
var al = ze(function(t, r) {
|
|
4276
|
-
var n = t.activeStartDate, a = t.allowPartialRange, i = t.calendarType, s = t.className, l = t.defaultActiveStartDate, c = t.defaultValue,
|
|
4289
|
+
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, v = t.formatLongDate, g = t.formatMonth, h = t.formatMonthYear, m = t.formatShortWeekday, p = t.formatWeekday, y = t.formatYear, j = t.goToRangeStartOnSelect, w = j === void 0 ? !0 : j, N = t.inputRef, D = t.locale, S = t.maxDate, O = S === void 0 ? Zc : S, _ = t.maxDetail, z = _ === void 0 ? "month" : _, b = t.minDate, T = b === void 0 ? Un : b, U = t.minDetail, Y = U === void 0 ? "century" : U, L = t.navigationAriaLabel, te = t.navigationAriaLive, pe = t.navigationLabel, de = t.next2AriaLabel, xe = t.next2Label, Ee = t.nextAriaLabel, ce = t.nextLabel, q = t.onActiveStartDateChange, fe = t.onChange, oe = t.onClickDay, k = t.onClickDecade, M = t.onClickMonth, $ = t.onClickWeekNumber, F = t.onClickYear, re = t.onDrillDown, ee = t.onDrillUp, le = t.onViewChange, je = t.prev2AriaLabel, Se = t.prev2Label, J = t.prevAriaLabel, we = t.prevLabel, K = t.returnValue, ke = K === void 0 ? "start" : K, ve = t.selectRange, qe = t.showDoubleView, Nt = t.showFixedNumberOfWeeks, Xe = t.showNavigation, Lr = Xe === void 0 ? !0 : Xe, Fr = t.showNeighboringCentury, Et = t.showNeighboringDecade, Gt = t.showNeighboringMonth, Wr = Gt === void 0 ? !0 : Gt, qt = t.showWeekNumbers, Xt = t.tileClassName, Kt = t.tileContent, Vr = t.tileDisabled, st = t.value, kt = t.view, Jt = V(l), Yr = Jt[0], ct = Jt[1], Qt = V(null), Br = Qt[0], Zt = Qt[1], er = V(Array.isArray(c) ? c.map(function(C) {
|
|
4277
4290
|
return C !== null ? Ft(C) : null;
|
|
4278
|
-
}) : c != null ? Ft(c) : null), Ke = er[0], tr = er[1], Me = V(
|
|
4291
|
+
}) : c != null ? Ft(c) : null), Ke = er[0], tr = er[1], Me = V(d), Ct = Me[0], lt = Me[1], ge = n || Yr || nl({
|
|
4279
4292
|
activeStartDate: n,
|
|
4280
4293
|
defaultActiveStartDate: l,
|
|
4281
4294
|
defaultValue: c,
|
|
4282
|
-
defaultView:
|
|
4283
|
-
maxDate:
|
|
4284
|
-
maxDetail:
|
|
4285
|
-
minDate:
|
|
4295
|
+
defaultView: d,
|
|
4296
|
+
maxDate: O,
|
|
4297
|
+
maxDetail: z,
|
|
4298
|
+
minDate: T,
|
|
4286
4299
|
minDetail: Y,
|
|
4287
4300
|
value: st,
|
|
4288
4301
|
view: kt
|
|
@@ -4290,11 +4303,11 @@ var al = ze(function(t, r) {
|
|
|
4290
4303
|
var C = function() {
|
|
4291
4304
|
return ve && Zr(Ke) ? Ke : st !== void 0 ? st : Ke;
|
|
4292
4305
|
}();
|
|
4293
|
-
return C ? Array.isArray(C) ? C.map(function(
|
|
4294
|
-
return
|
|
4306
|
+
return C ? Array.isArray(C) ? C.map(function(P) {
|
|
4307
|
+
return P !== null ? Ft(P) : null;
|
|
4295
4308
|
}) : C !== null ? Ft(C) : null : null;
|
|
4296
|
-
}(), Je = $o(
|
|
4297
|
-
var
|
|
4309
|
+
}(), Je = $o(z), ne = zn(kt || Ct, Y, z), Ce = Io(Y, z), rr = ve ? Br : null, _t = Ce.indexOf(ne) < Ce.length - 1, nr = Ce.indexOf(ne) > 0, Tt = R(function(C) {
|
|
4310
|
+
var P = function() {
|
|
4298
4311
|
switch (ke) {
|
|
4299
4312
|
case "start":
|
|
4300
4313
|
return Hn;
|
|
@@ -4306,23 +4319,23 @@ var al = ze(function(t, r) {
|
|
|
4306
4319
|
throw new Error("Invalid returnValue.");
|
|
4307
4320
|
}
|
|
4308
4321
|
}();
|
|
4309
|
-
return
|
|
4310
|
-
maxDate:
|
|
4311
|
-
maxDetail:
|
|
4312
|
-
minDate:
|
|
4322
|
+
return P({
|
|
4323
|
+
maxDate: O,
|
|
4324
|
+
maxDetail: z,
|
|
4325
|
+
minDate: T,
|
|
4313
4326
|
value: C
|
|
4314
4327
|
});
|
|
4315
|
-
}, [
|
|
4328
|
+
}, [O, z, T, ke]), ut = R(function(C, P) {
|
|
4316
4329
|
ct(C);
|
|
4317
|
-
var
|
|
4318
|
-
action:
|
|
4330
|
+
var A = {
|
|
4331
|
+
action: P,
|
|
4319
4332
|
activeStartDate: C,
|
|
4320
4333
|
value: be,
|
|
4321
4334
|
view: ne
|
|
4322
4335
|
};
|
|
4323
|
-
q && !ur(ge, C) && q(
|
|
4324
|
-
}, [ge, q, be, ne]), dt = R(function(C,
|
|
4325
|
-
var
|
|
4336
|
+
q && !ur(ge, C) && q(A);
|
|
4337
|
+
}, [ge, q, be, ne]), dt = R(function(C, P) {
|
|
4338
|
+
var A = function() {
|
|
4326
4339
|
switch (ne) {
|
|
4327
4340
|
case "century":
|
|
4328
4341
|
return k;
|
|
@@ -4336,21 +4349,21 @@ var al = ze(function(t, r) {
|
|
|
4336
4349
|
throw new Error("Invalid view: ".concat(ne, "."));
|
|
4337
4350
|
}
|
|
4338
4351
|
}();
|
|
4339
|
-
|
|
4340
|
-
}, [oe, k, M, F, ne]), Pt = R(function(C,
|
|
4352
|
+
A && A(C, P);
|
|
4353
|
+
}, [oe, k, M, F, ne]), Pt = R(function(C, P) {
|
|
4341
4354
|
if (_t) {
|
|
4342
|
-
dt(C,
|
|
4343
|
-
var
|
|
4344
|
-
if (!
|
|
4355
|
+
dt(C, P);
|
|
4356
|
+
var A = Ce[Ce.indexOf(ne) + 1];
|
|
4357
|
+
if (!A)
|
|
4345
4358
|
throw new Error("Attempted to drill down from the lowest view.");
|
|
4346
|
-
ct(C), lt(
|
|
4359
|
+
ct(C), lt(A);
|
|
4347
4360
|
var Q = {
|
|
4348
4361
|
action: "drillDown",
|
|
4349
4362
|
activeStartDate: C,
|
|
4350
4363
|
value: be,
|
|
4351
|
-
view:
|
|
4364
|
+
view: A
|
|
4352
4365
|
};
|
|
4353
|
-
q && !ur(ge, C) && q(Q), le && ne !==
|
|
4366
|
+
q && !ur(ge, C) && q(Q), le && ne !== A && le(Q), re && re(Q);
|
|
4354
4367
|
}
|
|
4355
4368
|
}, [
|
|
4356
4369
|
ge,
|
|
@@ -4367,15 +4380,15 @@ var al = ze(function(t, r) {
|
|
|
4367
4380
|
var C = Ce[Ce.indexOf(ne) - 1];
|
|
4368
4381
|
if (!C)
|
|
4369
4382
|
throw new Error("Attempted to drill up from the highest view.");
|
|
4370
|
-
var
|
|
4371
|
-
ct(
|
|
4372
|
-
var
|
|
4383
|
+
var P = nt(C, ge);
|
|
4384
|
+
ct(P), lt(C);
|
|
4385
|
+
var A = {
|
|
4373
4386
|
action: "drillUp",
|
|
4374
|
-
activeStartDate:
|
|
4387
|
+
activeStartDate: P,
|
|
4375
4388
|
value: be,
|
|
4376
4389
|
view: C
|
|
4377
4390
|
};
|
|
4378
|
-
q && !ur(ge,
|
|
4391
|
+
q && !ur(ge, P) && q(A), le && ne !== C && le(A), ee && ee(A);
|
|
4379
4392
|
}
|
|
4380
4393
|
}, [
|
|
4381
4394
|
ge,
|
|
@@ -4386,62 +4399,62 @@ var al = ze(function(t, r) {
|
|
|
4386
4399
|
be,
|
|
4387
4400
|
ne,
|
|
4388
4401
|
Ce
|
|
4389
|
-
]), Rt = R(function(C,
|
|
4390
|
-
var
|
|
4391
|
-
dt(C,
|
|
4392
|
-
var Q = ve && !Zr(
|
|
4402
|
+
]), Rt = R(function(C, P) {
|
|
4403
|
+
var A = be;
|
|
4404
|
+
dt(C, P);
|
|
4405
|
+
var Q = ve && !Zr(A), H;
|
|
4393
4406
|
if (ve)
|
|
4394
4407
|
if (Q)
|
|
4395
|
-
|
|
4408
|
+
H = nt(Je, C);
|
|
4396
4409
|
else {
|
|
4397
|
-
if (!
|
|
4410
|
+
if (!A)
|
|
4398
4411
|
throw new Error("previousValue is required");
|
|
4399
|
-
if (Array.isArray(
|
|
4412
|
+
if (Array.isArray(A))
|
|
4400
4413
|
throw new Error("previousValue must not be an array");
|
|
4401
|
-
|
|
4414
|
+
H = wc(Je, A, C);
|
|
4402
4415
|
}
|
|
4403
4416
|
else
|
|
4404
|
-
|
|
4417
|
+
H = Tt(C);
|
|
4405
4418
|
var ie = (
|
|
4406
4419
|
// Range selection turned off
|
|
4407
4420
|
!ve || // Range selection turned on, first value
|
|
4408
4421
|
Q || // Range selection turned on, second value, goToRangeStartOnSelect toggled on
|
|
4409
4422
|
w ? Fo({
|
|
4410
|
-
maxDate:
|
|
4411
|
-
maxDetail:
|
|
4412
|
-
minDate:
|
|
4423
|
+
maxDate: O,
|
|
4424
|
+
maxDetail: z,
|
|
4425
|
+
minDate: T,
|
|
4413
4426
|
minDetail: Y,
|
|
4414
|
-
value:
|
|
4427
|
+
value: H,
|
|
4415
4428
|
view: ne
|
|
4416
4429
|
}) : null
|
|
4417
4430
|
);
|
|
4418
|
-
|
|
4431
|
+
P.persist(), ct(ie), tr(H);
|
|
4419
4432
|
var De = {
|
|
4420
4433
|
action: "onChange",
|
|
4421
4434
|
activeStartDate: ie,
|
|
4422
|
-
value:
|
|
4435
|
+
value: H,
|
|
4423
4436
|
view: ne
|
|
4424
4437
|
};
|
|
4425
4438
|
if (q && !ur(ge, ie) && q(De), fe)
|
|
4426
4439
|
if (ve) {
|
|
4427
|
-
var Ve = Zr(
|
|
4440
|
+
var Ve = Zr(H);
|
|
4428
4441
|
if (!Ve)
|
|
4429
|
-
fe(
|
|
4442
|
+
fe(H || null, P);
|
|
4430
4443
|
else if (a) {
|
|
4431
|
-
if (Array.isArray(
|
|
4444
|
+
if (Array.isArray(H))
|
|
4432
4445
|
throw new Error("value must not be an array");
|
|
4433
|
-
fe([
|
|
4446
|
+
fe([H || null, null], P);
|
|
4434
4447
|
}
|
|
4435
4448
|
} else
|
|
4436
|
-
fe(
|
|
4449
|
+
fe(H || null, P);
|
|
4437
4450
|
}, [
|
|
4438
4451
|
ge,
|
|
4439
4452
|
a,
|
|
4440
4453
|
Tt,
|
|
4441
4454
|
w,
|
|
4442
|
-
|
|
4443
|
-
|
|
4444
|
-
|
|
4455
|
+
O,
|
|
4456
|
+
z,
|
|
4457
|
+
T,
|
|
4445
4458
|
Y,
|
|
4446
4459
|
q,
|
|
4447
4460
|
fe,
|
|
@@ -4451,7 +4464,7 @@ var al = ze(function(t, r) {
|
|
|
4451
4464
|
Je,
|
|
4452
4465
|
ne
|
|
4453
4466
|
]);
|
|
4454
|
-
function
|
|
4467
|
+
function u(C) {
|
|
4455
4468
|
Zt(C);
|
|
4456
4469
|
}
|
|
4457
4470
|
function x() {
|
|
@@ -4468,15 +4481,15 @@ var al = ze(function(t, r) {
|
|
|
4468
4481
|
view: ne
|
|
4469
4482
|
};
|
|
4470
4483
|
}, [ge, Pt, At, Rt, ut, be, ne]);
|
|
4471
|
-
function
|
|
4472
|
-
var
|
|
4473
|
-
activeStartDate:
|
|
4484
|
+
function E(C) {
|
|
4485
|
+
var P = C ? ko(ne, ge) : nt(ne, ge), A = _t ? Pt : Rt, Q = {
|
|
4486
|
+
activeStartDate: P,
|
|
4474
4487
|
hover: rr,
|
|
4475
|
-
locale:
|
|
4476
|
-
maxDate:
|
|
4477
|
-
minDate:
|
|
4478
|
-
onClick:
|
|
4479
|
-
onMouseOver: ve ?
|
|
4488
|
+
locale: D,
|
|
4489
|
+
maxDate: O,
|
|
4490
|
+
minDate: T,
|
|
4491
|
+
onClick: A,
|
|
4492
|
+
onMouseOver: ve ? u : void 0,
|
|
4480
4493
|
tileClassName: Xt,
|
|
4481
4494
|
tileContent: Kt,
|
|
4482
4495
|
tileDisabled: Vr,
|
|
@@ -4497,10 +4510,10 @@ var al = ze(function(t, r) {
|
|
|
4497
4510
|
}
|
|
4498
4511
|
}
|
|
4499
4512
|
function I() {
|
|
4500
|
-
return Lr ? o.jsx(Dc, { activeStartDate: ge, drillUp: At, formatMonthYear: h, formatYear: y, locale:
|
|
4513
|
+
return Lr ? o.jsx(Dc, { activeStartDate: ge, drillUp: At, formatMonthYear: h, formatYear: y, locale: D, maxDate: O, minDate: T, navigationAriaLabel: L, navigationAriaLive: te, navigationLabel: pe, next2AriaLabel: de, next2Label: xe, nextAriaLabel: Ee, nextLabel: ce, prev2AriaLabel: je, prev2Label: Se, prevAriaLabel: J, prevLabel: we, setActiveStartDate: ut, showDoubleView: qe, view: ne, views: Ce }) : null;
|
|
4501
4514
|
}
|
|
4502
|
-
var
|
|
4503
|
-
return o.jsxs("div", { className: Tr(lr, ve &&
|
|
4515
|
+
var G = Array.isArray(be) ? be : [be];
|
|
4516
|
+
return o.jsxs("div", { className: Tr(lr, ve && G.length === 1 && "".concat(lr, "--selectRange"), qe && "".concat(lr, "--doubleView"), s), ref: N, children: [I(), o.jsxs("div", { className: "".concat(lr, "__viewContainer"), onBlur: ve ? x : void 0, onMouseLeave: ve ? x : void 0, children: [E(), qe ? E(!0) : null] })] });
|
|
4504
4517
|
});
|
|
4505
4518
|
const Ul = ({
|
|
4506
4519
|
value: e,
|
|
@@ -4508,7 +4521,7 @@ const Ul = ({
|
|
|
4508
4521
|
maxDate: r,
|
|
4509
4522
|
children: n
|
|
4510
4523
|
}) => {
|
|
4511
|
-
const [a, i] = V(e ?? /* @__PURE__ */ new Date()), [s, l] = V(!1), c = ue(null),
|
|
4524
|
+
const [a, i] = V(e ?? /* @__PURE__ */ new Date()), [s, l] = V(!1), c = ue(null), d = R(
|
|
4512
4525
|
(p) => {
|
|
4513
4526
|
i(p), t && t(p), l(!1);
|
|
4514
4527
|
},
|
|
@@ -4527,7 +4540,7 @@ const Ul = ({
|
|
|
4527
4540
|
return /* @__PURE__ */ o.jsx("div", { children: /* @__PURE__ */ o.jsxs("div", { className: "calendar", ref: c, children: [
|
|
4528
4541
|
n && /* @__PURE__ */ o.jsx("div", { onClick: f, children: n }),
|
|
4529
4542
|
!n && /* @__PURE__ */ o.jsx("button", { className: "calendar-button", onClick: f, children: /* @__PURE__ */ o.jsx(
|
|
4530
|
-
|
|
4543
|
+
B,
|
|
4531
4544
|
{
|
|
4532
4545
|
classIcon: " bi-calendar4-event",
|
|
4533
4546
|
size: _e.EXTRA_LARGE
|
|
@@ -4540,7 +4553,7 @@ const Ul = ({
|
|
|
4540
4553
|
onClick: () => l(!1),
|
|
4541
4554
|
className: "calendar-popup-close",
|
|
4542
4555
|
children: /* @__PURE__ */ o.jsx(
|
|
4543
|
-
|
|
4556
|
+
B,
|
|
4544
4557
|
{
|
|
4545
4558
|
classIcon: "bi-x-lg close-icon",
|
|
4546
4559
|
size: _e.EXTRA_SMALL
|
|
@@ -4553,7 +4566,7 @@ const Ul = ({
|
|
|
4553
4566
|
{
|
|
4554
4567
|
onActiveStartDateChange: m,
|
|
4555
4568
|
maxDate: r ?? /* @__PURE__ */ new Date(),
|
|
4556
|
-
onChange:
|
|
4569
|
+
onChange: d,
|
|
4557
4570
|
value: a,
|
|
4558
4571
|
tileClassName: ({ date: p, view: y }) => {
|
|
4559
4572
|
if (y === "month" && g) {
|
|
@@ -4590,8 +4603,8 @@ const Ul = ({
|
|
|
4590
4603
|
className: `expand ${i ? "expand--active" : ""} ${r ?? ""}`,
|
|
4591
4604
|
children: [
|
|
4592
4605
|
/* @__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: [
|
|
4593
|
-
i && n && /* @__PURE__ */ o.jsx(
|
|
4594
|
-
!i && n && /* @__PURE__ */ o.jsx(
|
|
4606
|
+
i && n && /* @__PURE__ */ o.jsx(B, { classIcon: "bi bi-chevron-down mr-2" }),
|
|
4607
|
+
!i && n && /* @__PURE__ */ o.jsx(B, { classIcon: "bi bi-chevron-right mr-2" }),
|
|
4595
4608
|
/* @__PURE__ */ o.jsx("span", { className: "flex-1 expand-header-title-left", children: t.title }),
|
|
4596
4609
|
t.description && /* @__PURE__ */ o.jsx("span", { className: "expand-header-title-right", children: t.description })
|
|
4597
4610
|
] }) }) }),
|
|
@@ -4669,7 +4682,7 @@ const Ul = ({
|
|
|
4669
4682
|
onChange: s,
|
|
4670
4683
|
placeholder: l,
|
|
4671
4684
|
cols: c,
|
|
4672
|
-
rows:
|
|
4685
|
+
rows: d,
|
|
4673
4686
|
required: f = !1
|
|
4674
4687
|
}) => {
|
|
4675
4688
|
const [v, g] = V(r);
|
|
@@ -4695,7 +4708,7 @@ const Ul = ({
|
|
|
4695
4708
|
onChange: h,
|
|
4696
4709
|
placeholder: l,
|
|
4697
4710
|
cols: c,
|
|
4698
|
-
rows:
|
|
4711
|
+
rows: d,
|
|
4699
4712
|
required: f
|
|
4700
4713
|
}
|
|
4701
4714
|
);
|
|
@@ -4710,34 +4723,34 @@ const Ul = ({
|
|
|
4710
4723
|
onChange: s,
|
|
4711
4724
|
hideSubmit: l,
|
|
4712
4725
|
disabledSubmit: c = !1,
|
|
4713
|
-
className:
|
|
4726
|
+
className: d
|
|
4714
4727
|
}, f) => {
|
|
4715
4728
|
const [v, g] = V(c), [h, m] = V(() => {
|
|
4716
4729
|
const b = {};
|
|
4717
|
-
return e.forEach((
|
|
4718
|
-
b[
|
|
4730
|
+
return e.forEach((T) => {
|
|
4731
|
+
b[T.name] = T.value ?? "";
|
|
4719
4732
|
}), b;
|
|
4720
4733
|
}), p = ue({}), y = R(
|
|
4721
|
-
(b,
|
|
4722
|
-
const { name:
|
|
4723
|
-
|
|
4724
|
-
const xe = { ...de, [
|
|
4734
|
+
(b, T) => {
|
|
4735
|
+
const { name: U, type: Y, checked: L, value: te } = b.target, pe = Y === "checkbox" ? L : te;
|
|
4736
|
+
T.onChange && T.onChange(pe, U), m((de) => {
|
|
4737
|
+
const xe = { ...de, [U]: pe };
|
|
4725
4738
|
return s && s(xe), xe;
|
|
4726
4739
|
});
|
|
4727
4740
|
},
|
|
4728
4741
|
[s]
|
|
4729
4742
|
), j = R(
|
|
4730
|
-
(b,
|
|
4731
|
-
|
|
4732
|
-
const L = { ...Y, [b]:
|
|
4743
|
+
(b, T, U) => {
|
|
4744
|
+
U.onChange && U.onChange(T, b), m((Y) => {
|
|
4745
|
+
const L = { ...Y, [b]: T };
|
|
4733
4746
|
return s && s(L), L;
|
|
4734
4747
|
});
|
|
4735
4748
|
},
|
|
4736
4749
|
[s]
|
|
4737
4750
|
), w = R(
|
|
4738
|
-
(b,
|
|
4739
|
-
|
|
4740
|
-
const L = { ...Y, [
|
|
4751
|
+
(b, T, U) => {
|
|
4752
|
+
U.onChange && U.onChange(b, T), m((Y) => {
|
|
4753
|
+
const L = { ...Y, [T]: b };
|
|
4741
4754
|
return s && s(L), L;
|
|
4742
4755
|
});
|
|
4743
4756
|
},
|
|
@@ -4747,54 +4760,54 @@ const Ul = ({
|
|
|
4747
4760
|
b.preventDefault(), r && r(h);
|
|
4748
4761
|
},
|
|
4749
4762
|
[r, h]
|
|
4750
|
-
),
|
|
4763
|
+
), D = () => {
|
|
4751
4764
|
m(() => {
|
|
4752
4765
|
const b = {};
|
|
4753
|
-
return e.forEach((
|
|
4754
|
-
b[
|
|
4766
|
+
return e.forEach((T) => {
|
|
4767
|
+
b[T.name] = T.value ?? "";
|
|
4755
4768
|
}), b;
|
|
4756
4769
|
});
|
|
4757
|
-
},
|
|
4758
|
-
m((
|
|
4759
|
-
...
|
|
4770
|
+
}, S = R((b) => {
|
|
4771
|
+
m((T) => ({
|
|
4772
|
+
...T,
|
|
4760
4773
|
[b]: ""
|
|
4761
4774
|
}));
|
|
4762
|
-
}, []),
|
|
4763
|
-
const b = e.find((
|
|
4775
|
+
}, []), O = () => {
|
|
4776
|
+
const b = e.find((T) => T.focus);
|
|
4764
4777
|
b && p.current[b.name] && setTimeout(() => {
|
|
4765
|
-
var
|
|
4766
|
-
(
|
|
4778
|
+
var T;
|
|
4779
|
+
(T = p.current[b.name]) == null || T.select();
|
|
4767
4780
|
}, 500);
|
|
4768
|
-
}, _ = () => h,
|
|
4769
|
-
m((
|
|
4770
|
-
...
|
|
4781
|
+
}, _ = () => h, z = (b) => {
|
|
4782
|
+
m((T) => ({
|
|
4783
|
+
...T,
|
|
4771
4784
|
...b
|
|
4772
4785
|
}));
|
|
4773
4786
|
};
|
|
4774
4787
|
return Dr(f, () => ({
|
|
4775
|
-
resetForm:
|
|
4776
|
-
clearInput:
|
|
4777
|
-
focusInitialElement:
|
|
4788
|
+
resetForm: D,
|
|
4789
|
+
clearInput: S,
|
|
4790
|
+
focusInitialElement: O,
|
|
4778
4791
|
getValues: _,
|
|
4779
|
-
updateFormValue:
|
|
4792
|
+
updateFormValue: z,
|
|
4780
4793
|
setBtnDisabledSubmit: g
|
|
4781
4794
|
})), /* @__PURE__ */ o.jsxs(
|
|
4782
4795
|
"form",
|
|
4783
4796
|
{
|
|
4784
4797
|
autoComplete: i ?? "off",
|
|
4785
4798
|
onSubmit: N,
|
|
4786
|
-
className:
|
|
4799
|
+
className: d ?? "",
|
|
4787
4800
|
children: [
|
|
4788
4801
|
/* @__PURE__ */ o.jsxs("div", { className: "form-content", children: [
|
|
4789
|
-
e.map((b,
|
|
4790
|
-
const
|
|
4802
|
+
e.map((b, T) => {
|
|
4803
|
+
const U = b.onRequired ? b.onRequired(b.value) : b.required ?? !1, Y = b.onDisabled ? b.onDisabled(b.value) : b.disabled ?? !1;
|
|
4791
4804
|
return /* @__PURE__ */ o.jsxs(
|
|
4792
4805
|
"div",
|
|
4793
4806
|
{
|
|
4794
4807
|
className: `d-flex flex-column ${b.className ?? ""} form-group form-group-${b.type}`,
|
|
4795
4808
|
children: [
|
|
4796
4809
|
b.label && /* @__PURE__ */ o.jsx("label", { children: b.label }),
|
|
4797
|
-
b.icon && /* @__PURE__ */ o.jsx(
|
|
4810
|
+
b.icon && /* @__PURE__ */ o.jsx(B, { classIcon: b.icon }),
|
|
4798
4811
|
b.type === "select" ? /* @__PURE__ */ o.jsx(
|
|
4799
4812
|
fo,
|
|
4800
4813
|
{
|
|
@@ -4805,7 +4818,7 @@ const Ul = ({
|
|
|
4805
4818
|
disabled: Y,
|
|
4806
4819
|
multiple: b.multiple,
|
|
4807
4820
|
value: h[b.name],
|
|
4808
|
-
required:
|
|
4821
|
+
required: U,
|
|
4809
4822
|
defaultValue: b.value,
|
|
4810
4823
|
placeholder: b.placeholder,
|
|
4811
4824
|
onChangeMultiple: (L) => w(L, b.name, b),
|
|
@@ -4819,7 +4832,7 @@ const Ul = ({
|
|
|
4819
4832
|
className: "textarea-input",
|
|
4820
4833
|
placeholder: b.placeholder ?? "",
|
|
4821
4834
|
disabled: Y,
|
|
4822
|
-
required:
|
|
4835
|
+
required: U,
|
|
4823
4836
|
value: h[b.name],
|
|
4824
4837
|
onChange: (L, te) => j(te, L, b)
|
|
4825
4838
|
}
|
|
@@ -4835,7 +4848,7 @@ const Ul = ({
|
|
|
4835
4848
|
tabIndex: 0,
|
|
4836
4849
|
disabled: Y,
|
|
4837
4850
|
autoFocus: b.focus ?? !1,
|
|
4838
|
-
required:
|
|
4851
|
+
required: U,
|
|
4839
4852
|
step: b.step ?? "0.01",
|
|
4840
4853
|
value: h[b.name],
|
|
4841
4854
|
checked: b.type === "checkbox" ? !!h[b.name] : void 0,
|
|
@@ -4845,7 +4858,7 @@ const Ul = ({
|
|
|
4845
4858
|
)
|
|
4846
4859
|
]
|
|
4847
4860
|
},
|
|
4848
|
-
|
|
4861
|
+
T
|
|
4849
4862
|
);
|
|
4850
4863
|
}),
|
|
4851
4864
|
a
|
|
@@ -4873,7 +4886,7 @@ const Ul = ({
|
|
|
4873
4886
|
required: s = !1,
|
|
4874
4887
|
autoFocus: l = !1,
|
|
4875
4888
|
maxLength: c = 10,
|
|
4876
|
-
autoComplete:
|
|
4889
|
+
autoComplete: d = "off",
|
|
4877
4890
|
tabIndex: f = 0,
|
|
4878
4891
|
inputMode: v = "numeric",
|
|
4879
4892
|
pattern: g,
|
|
@@ -4884,19 +4897,19 @@ const Ul = ({
|
|
|
4884
4897
|
onFocus: j
|
|
4885
4898
|
}, w) => {
|
|
4886
4899
|
const N = R(
|
|
4887
|
-
(
|
|
4888
|
-
let
|
|
4889
|
-
!/^-?\d*[.,]?\d*$/.test(
|
|
4900
|
+
(S) => {
|
|
4901
|
+
let O = S.target.value.replace(",", ".");
|
|
4902
|
+
!/^-?\d*[.,]?\d*$/.test(O) && O !== "" || c && O.length > c || h == null || h(S, O);
|
|
4890
4903
|
},
|
|
4891
4904
|
[h, c]
|
|
4892
|
-
),
|
|
4893
|
-
if (y && y(
|
|
4894
|
-
|
|
4895
|
-
) ||
|
|
4896
|
-
|
|
4905
|
+
), D = (S) => {
|
|
4906
|
+
if (y && y(S), !(/[0-9]|Backspace|Delete|ArrowLeft|ArrowRight|Tab|Enter|Home|End/.test(
|
|
4907
|
+
S.key
|
|
4908
|
+
) || S.key === "." || S.key === "," || S.key === "-")) {
|
|
4909
|
+
S.preventDefault();
|
|
4897
4910
|
return;
|
|
4898
4911
|
}
|
|
4899
|
-
|
|
4912
|
+
S.key === "-" && ((S.target.selectionStart ?? 0) !== 0 || r.includes("-")) && S.preventDefault();
|
|
4900
4913
|
};
|
|
4901
4914
|
return /* @__PURE__ */ o.jsx("div", { className: "input-container input-container-number", children: /* @__PURE__ */ o.jsx(
|
|
4902
4915
|
"input",
|
|
@@ -4910,19 +4923,19 @@ const Ul = ({
|
|
|
4910
4923
|
disabled: i,
|
|
4911
4924
|
required: s,
|
|
4912
4925
|
autoFocus: l,
|
|
4913
|
-
autoComplete:
|
|
4926
|
+
autoComplete: d,
|
|
4914
4927
|
pattern: g,
|
|
4915
4928
|
tabIndex: f,
|
|
4916
4929
|
inputMode: v,
|
|
4917
4930
|
spellCheck: "false",
|
|
4918
4931
|
className: `input-field ${a ?? ""}`,
|
|
4919
4932
|
onChange: N,
|
|
4920
|
-
onWheel: (
|
|
4921
|
-
onKeyDown:
|
|
4933
|
+
onWheel: (S) => S.currentTarget.blur(),
|
|
4934
|
+
onKeyDown: D,
|
|
4922
4935
|
onFocus: j,
|
|
4923
4936
|
onBlur: m,
|
|
4924
|
-
onClick: (
|
|
4925
|
-
|
|
4937
|
+
onClick: (S) => {
|
|
4938
|
+
S.stopPropagation(), p == null || p(S);
|
|
4926
4939
|
}
|
|
4927
4940
|
}
|
|
4928
4941
|
) });
|
|
@@ -4989,18 +5002,19 @@ const Gl = ze(
|
|
|
4989
5002
|
onClickMenu: r,
|
|
4990
5003
|
userChildren: n,
|
|
4991
5004
|
positionFixed: a,
|
|
4992
|
-
|
|
4993
|
-
|
|
4994
|
-
|
|
5005
|
+
overlayClassName: i,
|
|
5006
|
+
onClickLogo: s,
|
|
5007
|
+
showBackNavigation: l,
|
|
5008
|
+
onClickBackNavigation: c
|
|
4995
5009
|
}) => {
|
|
4996
|
-
const
|
|
4997
|
-
|
|
4998
|
-
}, [
|
|
5010
|
+
const d = ue(null), [f, v] = V(!1), g = R(() => {
|
|
5011
|
+
v(!f);
|
|
5012
|
+
}, [f, v]);
|
|
4999
5013
|
return /* @__PURE__ */ o.jsxs("div", { className: `header ${a ? "header--fixed" : ""}`, children: [
|
|
5000
5014
|
/* @__PURE__ */ o.jsxs("div", { className: "flex-1 d-flex align-items-center", children: [
|
|
5001
|
-
/* @__PURE__ */ o.jsx("span", { onClick: r, children: /* @__PURE__ */ o.jsx(
|
|
5002
|
-
|
|
5003
|
-
|
|
5015
|
+
/* @__PURE__ */ o.jsx("span", { onClick: r, children: /* @__PURE__ */ o.jsx(B, { size: _e.MEDIUM, classIcon: "bi-list" }) }),
|
|
5016
|
+
l && /* @__PURE__ */ o.jsx("span", { className: "chevron-back", onClick: c, children: /* @__PURE__ */ o.jsx(
|
|
5017
|
+
B,
|
|
5004
5018
|
{
|
|
5005
5019
|
size: _e.EXTRA_SMALL,
|
|
5006
5020
|
classIcon: "bi-caret-left-fill"
|
|
@@ -5009,22 +5023,23 @@ const Gl = ze(
|
|
|
5009
5023
|
/* @__PURE__ */ o.jsx(
|
|
5010
5024
|
"span",
|
|
5011
5025
|
{
|
|
5012
|
-
className: `header-logo ${
|
|
5013
|
-
onClick:
|
|
5026
|
+
className: `header-logo ${s && "cursor-pointer"} `,
|
|
5027
|
+
onClick: s,
|
|
5014
5028
|
children: t && /* @__PURE__ */ o.jsx("img", { src: t, alt: "logo" })
|
|
5015
5029
|
}
|
|
5016
5030
|
)
|
|
5017
5031
|
] }),
|
|
5018
5032
|
/* @__PURE__ */ o.jsxs("div", { className: "d-flex align-items-center", children: [
|
|
5019
5033
|
e,
|
|
5020
|
-
/* @__PURE__ */ o.jsx("div", { ref:
|
|
5021
|
-
|
|
5034
|
+
/* @__PURE__ */ o.jsx("div", { ref: d, onClick: g, children: /* @__PURE__ */ o.jsx(B, { size: _e.MEDIUM, classIcon: "bi-person-circle" }) }),
|
|
5035
|
+
f && d.current && /* @__PURE__ */ o.jsx(
|
|
5022
5036
|
In,
|
|
5023
5037
|
{
|
|
5038
|
+
className: i,
|
|
5024
5039
|
position: "bottomRight",
|
|
5025
|
-
show:
|
|
5026
|
-
closeOverlay:
|
|
5027
|
-
referenceElement:
|
|
5040
|
+
show: f,
|
|
5041
|
+
closeOverlay: v,
|
|
5042
|
+
referenceElement: d.current,
|
|
5028
5043
|
children: n
|
|
5029
5044
|
}
|
|
5030
5045
|
)
|
|
@@ -5046,7 +5061,7 @@ const Gl = ze(
|
|
|
5046
5061
|
}
|
|
5047
5062
|
}, [t]);
|
|
5048
5063
|
return /* @__PURE__ */ o.jsxs("div", { className: `message message--${t} ${r ?? ""}`, children: [
|
|
5049
|
-
/* @__PURE__ */ o.jsx(
|
|
5064
|
+
/* @__PURE__ */ o.jsx(B, { classIcon: n }),
|
|
5050
5065
|
/* @__PURE__ */ o.jsx("span", { className: "message-text", children: e })
|
|
5051
5066
|
] });
|
|
5052
5067
|
}, Jl = ({
|
|
@@ -5061,11 +5076,11 @@ const Gl = ze(
|
|
|
5061
5076
|
closeOnOverlayClick: c = !0
|
|
5062
5077
|
}) => {
|
|
5063
5078
|
if (!e) return null;
|
|
5064
|
-
const
|
|
5079
|
+
const d = () => {
|
|
5065
5080
|
c && t();
|
|
5066
5081
|
};
|
|
5067
5082
|
return En(
|
|
5068
|
-
/* @__PURE__ */ o.jsx("div", { className: "modal-overlay", onMouseDown:
|
|
5083
|
+
/* @__PURE__ */ o.jsx("div", { className: "modal-overlay", onMouseDown: d, children: /* @__PURE__ */ o.jsxs(
|
|
5069
5084
|
"div",
|
|
5070
5085
|
{
|
|
5071
5086
|
className: `modal-container ${l}`,
|
|
@@ -5074,7 +5089,7 @@ const Gl = ze(
|
|
|
5074
5089
|
children: [
|
|
5075
5090
|
/* @__PURE__ */ o.jsxs("div", { className: "modal-header", children: [
|
|
5076
5091
|
i && /* @__PURE__ */ o.jsx("h2", { className: "modal-title", children: i }),
|
|
5077
|
-
/* @__PURE__ */ o.jsx("div", { className: "modal-close-button", onClick: t, children: /* @__PURE__ */ o.jsx(
|
|
5092
|
+
/* @__PURE__ */ o.jsx("div", { className: "modal-close-button", onClick: t, children: /* @__PURE__ */ o.jsx(B, { classIcon: "bi-x-lg" }) })
|
|
5078
5093
|
] }),
|
|
5079
5094
|
/* @__PURE__ */ o.jsx("div", { className: "modal-content", children: r }),
|
|
5080
5095
|
n && /* @__PURE__ */ o.jsx("div", { className: "d-flex justify-content-end", children: /* @__PURE__ */ o.jsx(wt, { onClick: n, title: a ?? "" }) })
|
|
@@ -5093,15 +5108,15 @@ const Gl = ze(
|
|
|
5093
5108
|
title: i,
|
|
5094
5109
|
id: s
|
|
5095
5110
|
}, l) => {
|
|
5096
|
-
const [c,
|
|
5111
|
+
const [c, d] = V(null), f = R(async () => {
|
|
5097
5112
|
const v = new Blob([e], { type: "application/pdf" }), g = URL.createObjectURL(v);
|
|
5098
5113
|
if (!t) {
|
|
5099
5114
|
const h = `${g}#toolbar=0&navpanes=0&scrollbar=0`;
|
|
5100
|
-
|
|
5115
|
+
d(h);
|
|
5101
5116
|
return;
|
|
5102
5117
|
}
|
|
5103
|
-
|
|
5104
|
-
}, [e, t,
|
|
5118
|
+
d(g);
|
|
5119
|
+
}, [e, t, d]);
|
|
5105
5120
|
return Z(() => {
|
|
5106
5121
|
f();
|
|
5107
5122
|
}, [e, f]), Z(() => () => {
|
|
@@ -5133,7 +5148,7 @@ const Gl = ze(
|
|
|
5133
5148
|
disabledMinus: i,
|
|
5134
5149
|
pas: s
|
|
5135
5150
|
}) => {
|
|
5136
|
-
const [l, c] = V(s),
|
|
5151
|
+
const [l, c] = V(s), d = R(
|
|
5137
5152
|
(h) => {
|
|
5138
5153
|
n || (c(h), e && e(t, h));
|
|
5139
5154
|
},
|
|
@@ -5143,9 +5158,9 @@ const Gl = ze(
|
|
|
5143
5158
|
if (h.stopPropagation(), n || a)
|
|
5144
5159
|
return;
|
|
5145
5160
|
const m = l + s;
|
|
5146
|
-
|
|
5161
|
+
d(Math.round(m * 100) / 100);
|
|
5147
5162
|
},
|
|
5148
|
-
[l,
|
|
5163
|
+
[l, d]
|
|
5149
5164
|
), v = R(
|
|
5150
5165
|
(h) => {
|
|
5151
5166
|
if (h.stopPropagation(), n || i)
|
|
@@ -5153,9 +5168,9 @@ const Gl = ze(
|
|
|
5153
5168
|
if (l === 0)
|
|
5154
5169
|
return l;
|
|
5155
5170
|
const m = l - s;
|
|
5156
|
-
|
|
5171
|
+
d(Math.round(m * 100) / 100);
|
|
5157
5172
|
},
|
|
5158
|
-
[
|
|
5173
|
+
[d, l]
|
|
5159
5174
|
);
|
|
5160
5175
|
Z(() => {
|
|
5161
5176
|
t.quantity && c(t.quantity);
|
|
@@ -5172,7 +5187,7 @@ const Gl = ze(
|
|
|
5172
5187
|
{
|
|
5173
5188
|
onClick: (h) => v(h),
|
|
5174
5189
|
className: `qte-action qte-action--minus ${n || i ? "disabled" : ""} `,
|
|
5175
|
-
children: /* @__PURE__ */ o.jsx(
|
|
5190
|
+
children: /* @__PURE__ */ o.jsx(B, { size: _e.LARGE, classIcon: "bi bi-dash-square" })
|
|
5176
5191
|
}
|
|
5177
5192
|
),
|
|
5178
5193
|
/* @__PURE__ */ o.jsx("span", { onClick: (h) => g(h), className: "qte-label", children: l }),
|
|
@@ -5181,7 +5196,7 @@ const Gl = ze(
|
|
|
5181
5196
|
{
|
|
5182
5197
|
onClick: (h) => f(h),
|
|
5183
5198
|
className: `qte-action qte-action--plus ${n || a ? "disabled" : ""}`,
|
|
5184
|
-
children: /* @__PURE__ */ o.jsx(
|
|
5199
|
+
children: /* @__PURE__ */ o.jsx(B, { size: _e.LARGE, classIcon: "bi bi-plus-square" })
|
|
5185
5200
|
}
|
|
5186
5201
|
)
|
|
5187
5202
|
] });
|
|
@@ -5196,7 +5211,7 @@ const Gl = ze(
|
|
|
5196
5211
|
handleChange: s,
|
|
5197
5212
|
setIsVisible: l,
|
|
5198
5213
|
id: c
|
|
5199
|
-
},
|
|
5214
|
+
}, d) => {
|
|
5200
5215
|
const [f, v] = V(n ?? !1), g = ue(null), h = ue(null), m = Ie(
|
|
5201
5216
|
() => [
|
|
5202
5217
|
{
|
|
@@ -5236,7 +5251,7 @@ const Gl = ze(
|
|
|
5236
5251
|
},
|
|
5237
5252
|
[]
|
|
5238
5253
|
);
|
|
5239
|
-
return Dr(
|
|
5254
|
+
return Dr(d, () => ({
|
|
5240
5255
|
clearInput: (w) => {
|
|
5241
5256
|
var N;
|
|
5242
5257
|
(N = h.current) == null || N.clearInput(w);
|
|
@@ -5266,7 +5281,7 @@ const Gl = ze(
|
|
|
5266
5281
|
{
|
|
5267
5282
|
className: "toggle-btn",
|
|
5268
5283
|
onClick: () => p(!1),
|
|
5269
|
-
children: /* @__PURE__ */ o.jsx(
|
|
5284
|
+
children: /* @__PURE__ */ o.jsx(B, { classIcon: "bi-x-lg" })
|
|
5270
5285
|
}
|
|
5271
5286
|
) }),
|
|
5272
5287
|
/* @__PURE__ */ o.jsx("div", { className: "search-result-content", children: e })
|
|
@@ -5284,56 +5299,56 @@ const Gl = ze(
|
|
|
5284
5299
|
closeOnClickOutside: l = !0,
|
|
5285
5300
|
displayOverlay: c = !0
|
|
5286
5301
|
}) => {
|
|
5287
|
-
const [
|
|
5302
|
+
const [d, f] = V(e || !1), [v, g] = V(0), [h, m] = V(!1), p = ue(null), y = ue(null), j = ue(0), w = ue(0), N = ue(null);
|
|
5288
5303
|
Z(() => (y.current || (y.current = document.createElement("div"), y.current.id = `sidebar-root-${i || crypto.randomUUID()}`, document.body.appendChild(y.current)), () => {
|
|
5289
5304
|
y.current && y.current.parentNode && (document.body.removeChild(y.current), y.current = null);
|
|
5290
5305
|
}), [i]), Z(() => {
|
|
5291
5306
|
f(e || !1);
|
|
5292
5307
|
}, [e]);
|
|
5293
|
-
const
|
|
5308
|
+
const D = R(() => {
|
|
5294
5309
|
f(!1), n && n(!1);
|
|
5295
|
-
}, [n]),
|
|
5296
|
-
(
|
|
5297
|
-
l && p.current && !p.current.contains(
|
|
5310
|
+
}, [n]), S = R(
|
|
5311
|
+
(T) => {
|
|
5312
|
+
l && p.current && !p.current.contains(T.target) && D();
|
|
5298
5313
|
},
|
|
5299
|
-
[
|
|
5300
|
-
),
|
|
5301
|
-
const
|
|
5302
|
-
j.current =
|
|
5314
|
+
[D, l]
|
|
5315
|
+
), O = R((T) => {
|
|
5316
|
+
const U = T.touches[0];
|
|
5317
|
+
j.current = U.clientX, w.current = U.clientY, N.current = null, m(!1), g(0);
|
|
5303
5318
|
}, []), _ = R(
|
|
5304
|
-
(
|
|
5305
|
-
if (!
|
|
5306
|
-
const
|
|
5319
|
+
(T) => {
|
|
5320
|
+
if (!d) return;
|
|
5321
|
+
const U = T.touches[0], Y = U.clientX - j.current, L = U.clientY - w.current;
|
|
5307
5322
|
if (!N.current) {
|
|
5308
5323
|
if (Math.abs(Y) < Pa && Math.abs(L) < Pa)
|
|
5309
5324
|
return;
|
|
5310
5325
|
N.current = Math.abs(Y) > Math.abs(L) ? "x" : "y";
|
|
5311
5326
|
}
|
|
5312
|
-
N.current === "x" && (
|
|
5327
|
+
N.current === "x" && (T.preventDefault(), m(!0), g(Math.max(0, Y)));
|
|
5313
5328
|
},
|
|
5314
|
-
[
|
|
5315
|
-
),
|
|
5316
|
-
(
|
|
5317
|
-
|
|
5329
|
+
[d]
|
|
5330
|
+
), z = R(
|
|
5331
|
+
(T) => {
|
|
5332
|
+
d && (N.current === "x" && T.changedTouches[0].clientX - j.current > fl && D(), m(!1), g(0), N.current = null);
|
|
5318
5333
|
},
|
|
5319
|
-
[
|
|
5334
|
+
[d, D]
|
|
5320
5335
|
), b = R(
|
|
5321
|
-
(
|
|
5322
|
-
|
|
5336
|
+
(T) => {
|
|
5337
|
+
T.preventDefault(), D();
|
|
5323
5338
|
},
|
|
5324
|
-
[
|
|
5339
|
+
[D]
|
|
5325
5340
|
);
|
|
5326
|
-
return Z(() => (
|
|
5341
|
+
return Z(() => (d ? (document.addEventListener("mousedown", S), document.addEventListener("touchstart", S, {
|
|
5327
5342
|
passive: !0
|
|
5328
|
-
})) : (document.removeEventListener("mousedown",
|
|
5329
|
-
document.removeEventListener("mousedown",
|
|
5330
|
-
}), [
|
|
5343
|
+
})) : (document.removeEventListener("mousedown", S), document.removeEventListener("touchstart", S)), () => {
|
|
5344
|
+
document.removeEventListener("mousedown", S), document.removeEventListener("touchstart", S);
|
|
5345
|
+
}), [d, S]), y.current ? Nn.createPortal(
|
|
5331
5346
|
/* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
5332
|
-
|
|
5347
|
+
d && c && /* @__PURE__ */ o.jsx(
|
|
5333
5348
|
"div",
|
|
5334
5349
|
{
|
|
5335
5350
|
className: "overlay",
|
|
5336
|
-
onClick:
|
|
5351
|
+
onClick: D,
|
|
5337
5352
|
onTouchEnd: b
|
|
5338
5353
|
}
|
|
5339
5354
|
),
|
|
@@ -5346,14 +5361,14 @@ const Gl = ze(
|
|
|
5346
5361
|
transform: v ? `translateX(${v}px)` : void 0,
|
|
5347
5362
|
transition: h ? "none" : void 0
|
|
5348
5363
|
},
|
|
5349
|
-
className: `sidebar ${
|
|
5350
|
-
onTouchStart:
|
|
5364
|
+
className: `sidebar ${d ? "open" : "closed"} ${a ?? ""}`,
|
|
5365
|
+
onTouchStart: O,
|
|
5351
5366
|
onTouchMove: _,
|
|
5352
|
-
onTouchEnd:
|
|
5367
|
+
onTouchEnd: z,
|
|
5353
5368
|
children: [
|
|
5354
5369
|
/* @__PURE__ */ o.jsxs("div", { className: "sidebar-header", children: [
|
|
5355
5370
|
r && /* @__PURE__ */ o.jsx("h2", { className: "flex-1", children: r }),
|
|
5356
|
-
/* @__PURE__ */ o.jsx("button", { className: "toggle-btn", onClick:
|
|
5371
|
+
/* @__PURE__ */ o.jsx("button", { className: "toggle-btn", onClick: D, children: /* @__PURE__ */ o.jsx(B, { classIcon: "bi-x-lg" }) })
|
|
5357
5372
|
] }),
|
|
5358
5373
|
t && t
|
|
5359
5374
|
]
|
|
@@ -5371,13 +5386,13 @@ const Gl = ze(
|
|
|
5371
5386
|
tabClassName: i = "",
|
|
5372
5387
|
panelClassName: s = ""
|
|
5373
5388
|
}) => {
|
|
5374
|
-
const l = typeof r == "number", [c,
|
|
5389
|
+
const l = typeof r == "number", [c, d] = V(t), f = l ? r : c;
|
|
5375
5390
|
Z(() => {
|
|
5376
|
-
!l && (t < 0 || t >= e.length) &&
|
|
5391
|
+
!l && (t < 0 || t >= e.length) && d(0);
|
|
5377
5392
|
}, [t, e.length, l]);
|
|
5378
5393
|
const v = ue([]), g = (h) => {
|
|
5379
5394
|
var m, p;
|
|
5380
|
-
(m = e[h]) != null && m.disabled || (l ||
|
|
5395
|
+
(m = e[h]) != null && m.disabled || (l || d(h), n == null || n(h), (p = v.current[h]) == null || p.focus());
|
|
5381
5396
|
};
|
|
5382
5397
|
return /* @__PURE__ */ o.jsxs("div", { className: `tabs-root ${a}`, children: [
|
|
5383
5398
|
/* @__PURE__ */ o.jsx("div", { role: "tablist", className: "tabs-header", children: e.map((h, m) => /* @__PURE__ */ o.jsx(
|
|
@@ -5411,13 +5426,13 @@ const Gl = ze(
|
|
|
5411
5426
|
] });
|
|
5412
5427
|
}, Aa = (e) => {
|
|
5413
5428
|
let t;
|
|
5414
|
-
const r = /* @__PURE__ */ new Set(), n = (
|
|
5415
|
-
const v = typeof
|
|
5429
|
+
const r = /* @__PURE__ */ new Set(), n = (d, f) => {
|
|
5430
|
+
const v = typeof d == "function" ? d(t) : d;
|
|
5416
5431
|
if (!Object.is(v, t)) {
|
|
5417
5432
|
const g = t;
|
|
5418
5433
|
t = f ?? (typeof v != "object" || v === null) ? v : Object.assign({}, t, v), r.forEach((h) => h(t, g));
|
|
5419
5434
|
}
|
|
5420
|
-
}, a = () => t, l = { setState: n, getState: a, getInitialState: () => c, subscribe: (
|
|
5435
|
+
}, a = () => t, l = { setState: n, getState: a, getInitialState: () => c, subscribe: (d) => (r.add(d), () => r.delete(d)) }, c = t = e(n, a, l);
|
|
5421
5436
|
return l;
|
|
5422
5437
|
}, vl = (e) => e ? Aa(e) : Aa, ml = (e) => e;
|
|
5423
5438
|
function pl(e, t = ml) {
|
|
@@ -5468,15 +5483,15 @@ const Ra = (e) => {
|
|
|
5468
5483
|
}, i);
|
|
5469
5484
|
return () => clearTimeout(f);
|
|
5470
5485
|
}, [n, i, s]), !n) return null;
|
|
5471
|
-
const
|
|
5472
|
-
return
|
|
5486
|
+
const d = document.getElementById("toaster-root");
|
|
5487
|
+
return d ? Nn.createPortal(
|
|
5473
5488
|
/* @__PURE__ */ o.jsxs("div", { className: `toaster toaster-${r}`, children: [
|
|
5474
|
-
l && /* @__PURE__ */ o.jsx("div", { className: "toaster--close", onClick: c, children: /* @__PURE__ */ o.jsx(
|
|
5489
|
+
l && /* @__PURE__ */ o.jsx("div", { className: "toaster--close", onClick: c, children: /* @__PURE__ */ o.jsx(B, { classIcon: "bi-x" }) }),
|
|
5475
5490
|
/* @__PURE__ */ o.jsxs("div", { children: [
|
|
5476
|
-
r === "info" && /* @__PURE__ */ o.jsx(
|
|
5477
|
-
r === "success" && /* @__PURE__ */ o.jsx(
|
|
5478
|
-
r === "error" && /* @__PURE__ */ o.jsx(
|
|
5479
|
-
r === "warning" && /* @__PURE__ */ o.jsx(
|
|
5491
|
+
r === "info" && /* @__PURE__ */ o.jsx(B, { classIcon: "bi-info-circle" }),
|
|
5492
|
+
r === "success" && /* @__PURE__ */ o.jsx(B, { classIcon: "bi-check-circle" }),
|
|
5493
|
+
r === "error" && /* @__PURE__ */ o.jsx(B, { classIcon: "bi-x-circle" }),
|
|
5494
|
+
r === "warning" && /* @__PURE__ */ o.jsx(B, { classIcon: "bi-exclamation-triangle" })
|
|
5480
5495
|
] }),
|
|
5481
5496
|
/* @__PURE__ */ o.jsxs("div", { children: [
|
|
5482
5497
|
/* @__PURE__ */ o.jsx("div", { className: `title title-${r}`, children: e }),
|
|
@@ -5484,7 +5499,7 @@ const Ra = (e) => {
|
|
|
5484
5499
|
a
|
|
5485
5500
|
] })
|
|
5486
5501
|
] }),
|
|
5487
|
-
|
|
5502
|
+
d
|
|
5488
5503
|
) : null;
|
|
5489
5504
|
};
|
|
5490
5505
|
export {
|
|
@@ -5505,7 +5520,7 @@ export {
|
|
|
5505
5520
|
ql as Grid,
|
|
5506
5521
|
Xl as Header,
|
|
5507
5522
|
wl as HistoryProvider,
|
|
5508
|
-
|
|
5523
|
+
B as Icon,
|
|
5509
5524
|
_e as IconSizeEnum,
|
|
5510
5525
|
Sl as ImageChecker,
|
|
5511
5526
|
Dl as ImageExist,
|