kelt-ui-kit-react 2.1.7 → 2.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/badge/Badge.d.ts +2 -1
- package/dist/damier/damierCell/damierCell.interface.d.ts +3 -0
- package/dist/damier/damierEditor/DamierEditor.d.ts +33 -0
- package/dist/damier/damierEditor/damierEditorCell/DamierEditorCell.d.ts +16 -0
- package/dist/damier/damierEditor/damierEditorToolbar/DamierEditorToolbar.d.ts +10 -0
- package/dist/damier/damierEditor/damierEditorTree/DamierEditorTree.d.ts +13 -0
- package/dist/damier/damierEditor/damierEditorTree/damierEditorTreeNode/DamierEditorTreeNode.d.ts +11 -0
- package/dist/damier/damierEditor/damierEditorTree/damierTreeNode.interface.d.ts +5 -0
- package/dist/damier/damierEditor/maybePromise.interface.d.ts +1 -0
- package/dist/damier/damierPage/damierPage.interface.d.ts +8 -0
- package/dist/damier/utils/buildDamierTree.d.ts +3 -0
- package/dist/damier/utils/createDefaultDamierPage.d.ts +2 -0
- package/dist/damier/utils/damierDefaultSize.d.ts +1 -0
- package/dist/damier/utils/findDamierTreePath.d.ts +2 -0
- package/dist/damier/utils/getFirstFreePosition.d.ts +2 -0
- package/dist/damier/utils/moveDamierCell.d.ts +2 -0
- package/dist/form/form.interface.d.ts +2 -0
- package/dist/form/getFieldError.d.ts +2 -0
- package/dist/index.js +889 -858
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/badge/Badge.tsx +3 -0
- package/src/badge/Badge.view.tsx +1 -0
- package/src/damier/Damier.tsx +1 -1
- package/src/damier/Damier.view.tsx +46 -0
- package/src/damier/damierCell/DamierCell.tsx +1 -1
- package/src/damier/damierCell/damierCell.interface.tsx +3 -0
- package/src/damier/damierEditor/DamierEditor.tsx +346 -0
- package/src/damier/damierEditor/damierEditor.css +255 -0
- package/src/damier/damierEditor/damierEditorCell/DamierEditorCell.tsx +91 -0
- package/src/damier/damierEditor/damierEditorToolbar/DamierEditorToolbar.tsx +71 -0
- package/src/damier/damierEditor/damierEditorTree/DamierEditorTree.tsx +134 -0
- package/src/damier/damierEditor/damierEditorTree/damierEditorTreeNode/DamierEditorTreeNode.tsx +78 -0
- package/src/damier/damierEditor/damierEditorTree/damierTreeNode.interface.ts +6 -0
- package/src/damier/damierEditor/maybePromise.interface.ts +1 -0
- package/src/damier/damierPage/damierPage.interface.tsx +9 -0
- package/src/damier/utils/buildDamierTree.ts +31 -0
- package/src/damier/utils/createDefaultDamierPage.ts +10 -0
- package/src/damier/utils/damierDefaultSize.ts +1 -0
- package/src/damier/utils/findDamierTreePath.ts +14 -0
- package/src/damier/utils/getFirstFreePosition.ts +12 -0
- package/src/damier/utils/moveDamierCell.ts +13 -0
- package/src/dataTable/DataTable.tsx +2 -2
- package/src/docs/catalog.ts +1 -1
- package/src/form/Form.tsx +68 -8
- package/src/form/form.css +9 -0
- package/src/form/form.interface.tsx +2 -0
- package/src/form/getFieldError.ts +14 -0
- package/src/select/select.css +11 -1
- package/tsconfig.tsbuildinfo +1 -1
package/dist/index.js
CHANGED
|
@@ -98,13 +98,13 @@ function R(e) {
|
|
|
98
98
|
let [t, n, r] = e.split("-").map(Number);
|
|
99
99
|
return new Date(t, n - 1, r, 0, 0, 0, 0);
|
|
100
100
|
}
|
|
101
|
-
function
|
|
101
|
+
function z(e) {
|
|
102
102
|
let [t, n, r] = e.split("-").map(Number);
|
|
103
103
|
return new Date(t, n - 1, r, 23, 59, 59, 999);
|
|
104
104
|
}
|
|
105
105
|
//#endregion
|
|
106
106
|
//#region src/_core/hooks/useIsMobile.ts
|
|
107
|
-
var
|
|
107
|
+
var ie = (e = 768) => {
|
|
108
108
|
let [t, n] = g(typeof window < "u" && window.innerWidth <= e);
|
|
109
109
|
return u(() => {
|
|
110
110
|
let t = () => {
|
|
@@ -112,15 +112,15 @@ var ae = (e = 768) => {
|
|
|
112
112
|
};
|
|
113
113
|
return window.addEventListener("resize", t), () => window.removeEventListener("resize", t);
|
|
114
114
|
}, [e]), t;
|
|
115
|
-
},
|
|
116
|
-
|
|
117
|
-
function
|
|
115
|
+
}, ae = class extends Error {};
|
|
116
|
+
ae.prototype.name = "InvalidTokenError";
|
|
117
|
+
function oe(e) {
|
|
118
118
|
return decodeURIComponent(atob(e).replace(/(.)/g, (e, t) => {
|
|
119
119
|
let n = t.charCodeAt(0).toString(16).toUpperCase();
|
|
120
120
|
return n.length < 2 && (n = "0" + n), "%" + n;
|
|
121
121
|
}));
|
|
122
122
|
}
|
|
123
|
-
function
|
|
123
|
+
function se(e) {
|
|
124
124
|
let t = e.replace(/-/g, "+").replace(/_/g, "/");
|
|
125
125
|
switch (t.length % 4) {
|
|
126
126
|
case 0: break;
|
|
@@ -133,40 +133,40 @@ function ce(e) {
|
|
|
133
133
|
default: throw Error("base64 string is not of the correct length");
|
|
134
134
|
}
|
|
135
135
|
try {
|
|
136
|
-
return
|
|
136
|
+
return oe(t);
|
|
137
137
|
} catch {
|
|
138
138
|
return atob(t);
|
|
139
139
|
}
|
|
140
140
|
}
|
|
141
|
-
function
|
|
142
|
-
if (typeof e != "string") throw new
|
|
141
|
+
function ce(e, t) {
|
|
142
|
+
if (typeof e != "string") throw new ae("Invalid token specified: must be a string");
|
|
143
143
|
t ||= {};
|
|
144
144
|
let n = t.header === !0 ? 0 : 1, r = e.split(".")[n];
|
|
145
|
-
if (typeof r != "string") throw new
|
|
145
|
+
if (typeof r != "string") throw new ae(`Invalid token specified: missing part #${n + 1}`);
|
|
146
146
|
let i;
|
|
147
147
|
try {
|
|
148
|
-
i =
|
|
148
|
+
i = se(r);
|
|
149
149
|
} catch (e) {
|
|
150
|
-
throw new
|
|
150
|
+
throw new ae(`Invalid token specified: invalid base64 for part #${n + 1} (${e.message})`);
|
|
151
151
|
}
|
|
152
152
|
try {
|
|
153
153
|
return JSON.parse(i);
|
|
154
154
|
} catch (e) {
|
|
155
|
-
throw new
|
|
155
|
+
throw new ae(`Invalid token specified: invalid json for part #${n + 1} (${e.message})`);
|
|
156
156
|
}
|
|
157
157
|
}
|
|
158
158
|
//#endregion
|
|
159
159
|
//#region src/_core/hooks/useToken.tsx
|
|
160
|
-
var
|
|
160
|
+
var le = () => ({ getTokenValidate: o(() => {
|
|
161
161
|
let e = localStorage.getItem("token");
|
|
162
162
|
if (!e) return null;
|
|
163
|
-
let t =
|
|
163
|
+
let t = ce(e), n = Date.now() / 1e3;
|
|
164
164
|
return !t.exp || t.exp < n ? null : e;
|
|
165
|
-
}, []) }),
|
|
165
|
+
}, []) }), ue = () => ({
|
|
166
166
|
isValidateEmail: (e) => /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e),
|
|
167
167
|
isValidateTel: (e) => /^\+?[0-9\s.-]{7,15}$/.test(e),
|
|
168
168
|
isValidateCodePostal: (e) => /^[0-9]{5}$/.test(e)
|
|
169
|
-
}),
|
|
169
|
+
}), de = () => {
|
|
170
170
|
let e = h(null);
|
|
171
171
|
return u(() => {
|
|
172
172
|
if (!e.current) return;
|
|
@@ -175,52 +175,53 @@ var ue = () => ({ getTokenValidate: o(() => {
|
|
|
175
175
|
e?.current?.removeChild(t);
|
|
176
176
|
};
|
|
177
177
|
}, []), /* @__PURE__ */ y("div", { children: /* @__PURE__ */ y("div", { ref: e }) });
|
|
178
|
-
},
|
|
178
|
+
}, B = ({ classIcon: e, size: t, onClick: n }) => /* @__PURE__ */ y("i", {
|
|
179
179
|
className: `bi ${e} ${t ?? "sm"}`,
|
|
180
180
|
onClick: n
|
|
181
|
-
}),
|
|
182
|
-
let
|
|
181
|
+
}), fe = ({ className: e, onClick: t, title: n, tooltip: r, sizeIcon: i, classIcon: a, color: s, onRemove: c }) => {
|
|
182
|
+
let l = o((e) => {
|
|
183
183
|
e.stopPropagation(), t && t(e);
|
|
184
184
|
}, [t]);
|
|
185
185
|
return /* @__PURE__ */ b("div", {
|
|
186
|
-
onClick:
|
|
187
|
-
|
|
186
|
+
onClick: l,
|
|
187
|
+
title: r,
|
|
188
|
+
style: s ? { backgroundColor: s } : void 0,
|
|
188
189
|
className: `badge ${e || ""}`,
|
|
189
190
|
children: [
|
|
190
|
-
|
|
191
|
-
size:
|
|
192
|
-
classIcon:
|
|
191
|
+
a && /* @__PURE__ */ y(B, {
|
|
192
|
+
size: i,
|
|
193
|
+
classIcon: a
|
|
193
194
|
}),
|
|
194
195
|
/* @__PURE__ */ y("span", { children: n }),
|
|
195
|
-
|
|
196
|
+
c && /* @__PURE__ */ y("button", {
|
|
196
197
|
type: "button",
|
|
197
198
|
className: "badge-remove",
|
|
198
199
|
"aria-label": `Retirer ${n ?? "le filtre"}`,
|
|
199
200
|
onClick: (e) => {
|
|
200
|
-
e.stopPropagation(),
|
|
201
|
+
e.stopPropagation(), c(e);
|
|
201
202
|
},
|
|
202
|
-
children: /* @__PURE__ */ y(
|
|
203
|
+
children: /* @__PURE__ */ y(B, { classIcon: "bi-x" })
|
|
203
204
|
})
|
|
204
205
|
]
|
|
205
206
|
});
|
|
206
|
-
},
|
|
207
|
+
}, V = /* @__PURE__ */ function(e) {
|
|
207
208
|
return e.EXTRA_SMALL = "xs", e.SMALL = "sm", e.MEDIUM = "md", e.LARGE = "xl", e.EXTRA_LARGE = "xxl", e;
|
|
208
|
-
}({}),
|
|
209
|
+
}({}), pe = ({ className: e, onClick: t, title: n, classIcon: r, badge: i }) => /* @__PURE__ */ b("div", {
|
|
209
210
|
className: `action ${e}`,
|
|
210
211
|
onClick: (e) => {
|
|
211
212
|
t && t(e);
|
|
212
213
|
},
|
|
213
214
|
children: [
|
|
214
|
-
i && /* @__PURE__ */ y(
|
|
215
|
-
r && /* @__PURE__ */ y(
|
|
215
|
+
i && /* @__PURE__ */ y(fe, { ...i }),
|
|
216
|
+
r && /* @__PURE__ */ y(B, {
|
|
216
217
|
classIcon: r,
|
|
217
|
-
size:
|
|
218
|
+
size: V.LARGE
|
|
218
219
|
}),
|
|
219
220
|
/* @__PURE__ */ y("small", { children: n })
|
|
220
221
|
]
|
|
221
|
-
}),
|
|
222
|
+
}), me = "https://data.geopf.fr/geocodage/search", he = class {
|
|
222
223
|
constructor(e = {}) {
|
|
223
|
-
this.baseUrl = e.baseUrl ??
|
|
224
|
+
this.baseUrl = e.baseUrl ?? me, this.fetcher = e.fetcher ?? globalThis.fetch.bind(globalThis);
|
|
224
225
|
}
|
|
225
226
|
async search(e, t = {}) {
|
|
226
227
|
let n = e.trim();
|
|
@@ -251,18 +252,18 @@ var ue = () => ({ getTokenValidate: o(() => {
|
|
|
251
252
|
}];
|
|
252
253
|
});
|
|
253
254
|
}
|
|
254
|
-
},
|
|
255
|
-
let E = d(), D = e ?? `address-search-${E}`, O = `${D}-results`, [k, A] = g(i ?? ""), [j, M] = g([]), [N, ee] = g(!1), [P, te] = g(!1), [F, ne] = g(!1), [re, I] = g(-1), L = h(null), R = h(),
|
|
256
|
-
|
|
257
|
-
i !== void 0 && i !==
|
|
255
|
+
}, ge = new he(), _e = ({ id: e, className: t, label: n = "Rechercher une adresse", placeholder: r = "Numéro, rue, code postal, ville", value: i, disabled: a = !1, minimumQueryLength: s = 3, debounceTime: c = 300, limit: l = 5, provider: f = ge, searchType: p, formatValue: m = (e) => e.addressLine, emptyLabel: _ = "Aucune adresse trouvée.", required: v = !1, allowManualEntry: x = !0, manualEntryLabel: S = "Je ne trouve pas mon adresse", onChange: C, onManualEntry: w, onSelect: T }) => {
|
|
256
|
+
let E = d(), D = e ?? `address-search-${E}`, O = `${D}-results`, [k, A] = g(i ?? ""), [j, M] = g([]), [N, ee] = g(!1), [P, te] = g(!1), [F, ne] = g(!1), [re, I] = g(-1), L = h(null), R = h(), z = h(!!i?.trim()), ie = h(k);
|
|
257
|
+
ie.current = k, u(() => {
|
|
258
|
+
i !== void 0 && i !== ie.current && (z.current = !0, A(i));
|
|
258
259
|
}, [i]), u(() => {
|
|
259
260
|
let e = (e) => {
|
|
260
261
|
L.current?.contains(e.target) || ne(!1);
|
|
261
262
|
};
|
|
262
263
|
return document.addEventListener("pointerdown", e), () => document.removeEventListener("pointerdown", e);
|
|
263
264
|
}, []), u(() => {
|
|
264
|
-
if (
|
|
265
|
-
|
|
265
|
+
if (z.current) {
|
|
266
|
+
z.current = !1;
|
|
266
267
|
return;
|
|
267
268
|
}
|
|
268
269
|
let e = k.trim();
|
|
@@ -299,16 +300,16 @@ var ue = () => ({ getTokenValidate: o(() => {
|
|
|
299
300
|
k,
|
|
300
301
|
p
|
|
301
302
|
]);
|
|
302
|
-
let
|
|
303
|
+
let ae = o((e) => {
|
|
303
304
|
let t = m(e);
|
|
304
|
-
R.current?.abort(),
|
|
305
|
+
R.current?.abort(), z.current = !0, A(t), M([]), ne(!1), I(-1), C?.(t), T(e);
|
|
305
306
|
}, [
|
|
306
307
|
m,
|
|
307
308
|
C,
|
|
308
309
|
T
|
|
309
|
-
]),
|
|
310
|
+
]), oe = o(() => {
|
|
310
311
|
let e = k.trim();
|
|
311
|
-
e && (R.current?.abort(),
|
|
312
|
+
e && (R.current?.abort(), z.current = !0, A(e), M([]), ne(!1), I(-1), C?.(e), w?.(e));
|
|
312
313
|
}, [
|
|
313
314
|
C,
|
|
314
315
|
w,
|
|
@@ -325,7 +326,7 @@ var ue = () => ({ getTokenValidate: o(() => {
|
|
|
325
326
|
/* @__PURE__ */ b("div", {
|
|
326
327
|
className: "address-search-input",
|
|
327
328
|
children: [
|
|
328
|
-
/* @__PURE__ */ y(
|
|
329
|
+
/* @__PURE__ */ y(B, { classIcon: "bi-geo-alt" }),
|
|
329
330
|
/* @__PURE__ */ y("input", {
|
|
330
331
|
id: D,
|
|
331
332
|
type: "search",
|
|
@@ -344,7 +345,7 @@ var ue = () => ({ getTokenValidate: o(() => {
|
|
|
344
345
|
},
|
|
345
346
|
onFocus: () => j.length > 0 && ne(!0),
|
|
346
347
|
onKeyDown: (e) => {
|
|
347
|
-
F && j.length !== 0 && (e.key === "ArrowDown" ? (e.preventDefault(), I((e) => (e + 1) % j.length)) : e.key === "ArrowUp" ? (e.preventDefault(), I((e) => e <= 0 ? j.length - 1 : e - 1)) : e.key === "Enter" && re >= 0 ? (e.preventDefault(),
|
|
348
|
+
F && j.length !== 0 && (e.key === "ArrowDown" ? (e.preventDefault(), I((e) => (e + 1) % j.length)) : e.key === "ArrowUp" ? (e.preventDefault(), I((e) => e <= 0 ? j.length - 1 : e - 1)) : e.key === "Enter" && re >= 0 ? (e.preventDefault(), ae(j[re])) : e.key === "Escape" && ne(!1));
|
|
348
349
|
}
|
|
349
350
|
}),
|
|
350
351
|
N && /* @__PURE__ */ y("span", {
|
|
@@ -373,7 +374,7 @@ var ue = () => ({ getTokenValidate: o(() => {
|
|
|
373
374
|
className: re === t ? "active" : "",
|
|
374
375
|
onMouseDown: (e) => e.preventDefault(),
|
|
375
376
|
onMouseEnter: () => I(t),
|
|
376
|
-
onClick: () =>
|
|
377
|
+
onClick: () => ae(e),
|
|
377
378
|
children: [/* @__PURE__ */ y("span", { children: e.addressLine }), /* @__PURE__ */ b("small", { children: [
|
|
378
379
|
e.postalCode,
|
|
379
380
|
" ",
|
|
@@ -384,13 +385,13 @@ var ue = () => ({ getTokenValidate: o(() => {
|
|
|
384
385
|
type: "button",
|
|
385
386
|
className: "address-search-manual",
|
|
386
387
|
onMouseDown: (e) => e.preventDefault(),
|
|
387
|
-
onClick:
|
|
388
|
-
children: [/* @__PURE__ */ y(
|
|
388
|
+
onClick: oe,
|
|
389
|
+
children: [/* @__PURE__ */ y(B, { classIcon: "bi-pencil" }), S]
|
|
389
390
|
})]
|
|
390
391
|
})
|
|
391
392
|
]
|
|
392
393
|
});
|
|
393
|
-
},
|
|
394
|
+
}, ve = ({ className: e, onClick: t, badge: n, title: r, sizeIcon: i, id: a, classIcon: o, positionicon: s = 1, disabled: c = !1, style: l }) => {
|
|
394
395
|
let u = (e) => {
|
|
395
396
|
e.stopPropagation(), t && t(e);
|
|
396
397
|
};
|
|
@@ -402,10 +403,10 @@ var ue = () => ({ getTokenValidate: o(() => {
|
|
|
402
403
|
className: e,
|
|
403
404
|
style: l,
|
|
404
405
|
children: [
|
|
405
|
-
n && /* @__PURE__ */ y(
|
|
406
|
+
n && /* @__PURE__ */ y(fe, { ...n }),
|
|
406
407
|
o && s == 1 && /* @__PURE__ */ y("span", {
|
|
407
408
|
className: `${r ? "mr-2" : ""}`,
|
|
408
|
-
children: /* @__PURE__ */ y(
|
|
409
|
+
children: /* @__PURE__ */ y(B, {
|
|
409
410
|
size: i,
|
|
410
411
|
classIcon: o
|
|
411
412
|
})
|
|
@@ -413,18 +414,18 @@ var ue = () => ({ getTokenValidate: o(() => {
|
|
|
413
414
|
/* @__PURE__ */ y("span", { children: r }),
|
|
414
415
|
o && s == 2 && /* @__PURE__ */ y("span", {
|
|
415
416
|
className: "ml-2",
|
|
416
|
-
children: /* @__PURE__ */ y(
|
|
417
|
+
children: /* @__PURE__ */ y(B, { classIcon: o })
|
|
417
418
|
})
|
|
418
419
|
]
|
|
419
420
|
});
|
|
420
|
-
},
|
|
421
|
+
}, ye = (e) => /* @__PURE__ */ y("div", {
|
|
421
422
|
onClick: () => e.onChange(e.item),
|
|
422
423
|
className: `expand ${e.active ? "expand--active" : ""} ${e.className || ""}`,
|
|
423
424
|
children: e.item.children
|
|
424
|
-
}),
|
|
425
|
+
}), H = (e) => {
|
|
425
426
|
let [t, n] = g(null), r = o((e) => {
|
|
426
427
|
n(e);
|
|
427
|
-
}, []), i = (e) => /* @__PURE__ */ y("ul", { children: e.map((e) => /* @__PURE__ */ b("li", { children: [/* @__PURE__ */ y(
|
|
428
|
+
}, []), i = (e) => /* @__PURE__ */ y("ul", { children: e.map((e) => /* @__PURE__ */ b("li", { children: [/* @__PURE__ */ y(ye, {
|
|
428
429
|
item: e,
|
|
429
430
|
onChange: r,
|
|
430
431
|
className: e.subMenu && e.subMenu.length > 0 ? "has-submenu" : "",
|
|
@@ -437,31 +438,31 @@ var ue = () => ({ getTokenValidate: o(() => {
|
|
|
437
438
|
className: `menu ${e.className || ""}`,
|
|
438
439
|
children: i(e.items)
|
|
439
440
|
});
|
|
440
|
-
},
|
|
441
|
+
}, be = r(void 0), xe = {
|
|
441
442
|
activeOverlayId: null,
|
|
442
443
|
setActiveOverlay: () => {}
|
|
443
|
-
},
|
|
444
|
+
}, Se = ({ children: e }) => {
|
|
444
445
|
let [t, n] = g(null);
|
|
445
|
-
return /* @__PURE__ */ y(
|
|
446
|
+
return /* @__PURE__ */ y(be.Provider, {
|
|
446
447
|
value: {
|
|
447
448
|
activeOverlayId: t,
|
|
448
449
|
setActiveOverlay: n
|
|
449
450
|
},
|
|
450
451
|
children: e
|
|
451
452
|
});
|
|
452
|
-
},
|
|
453
|
-
return
|
|
453
|
+
}, Ce = () => s(be) ?? xe, U = function() {
|
|
454
|
+
return U = Object.assign || function(e) {
|
|
454
455
|
for (var t, n = 1, r = arguments.length; n < r; n++) for (var i in t = arguments[n], t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
|
|
455
456
|
return e;
|
|
456
|
-
},
|
|
457
|
+
}, U.apply(this, arguments);
|
|
457
458
|
};
|
|
458
|
-
function
|
|
459
|
+
function we(e, t, n) {
|
|
459
460
|
if (n || arguments.length === 2) for (var r = 0, i = t.length, a; r < i; r++) (a || !(r in t)) && (a ||= Array.prototype.slice.call(t, 0, r), a[r] = t[r]);
|
|
460
461
|
return e.concat(a || Array.prototype.slice.call(t));
|
|
461
462
|
}
|
|
462
463
|
//#endregion
|
|
463
464
|
//#region node_modules/@emotion/memoize/dist/emotion-memoize.esm.js
|
|
464
|
-
function
|
|
465
|
+
function Te(e) {
|
|
465
466
|
var t = Object.create(null);
|
|
466
467
|
return function(n) {
|
|
467
468
|
return t[n] === void 0 && (t[n] = e(n)), t[n];
|
|
@@ -469,9 +470,9 @@ function Ee(e) {
|
|
|
469
470
|
}
|
|
470
471
|
//#endregion
|
|
471
472
|
//#region node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.js
|
|
472
|
-
var
|
|
473
|
-
return
|
|
474
|
-
}),
|
|
473
|
+
var Ee = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/, De = /* #__PURE__ */ Te(function(e) {
|
|
474
|
+
return Ee.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91;
|
|
475
|
+
}), Oe = /* @__PURE__ */ k(((e, t) => {
|
|
475
476
|
t.exports = function(e, t, n, r) {
|
|
476
477
|
var i = n ? n.call(r, e, t) : void 0;
|
|
477
478
|
if (i !== void 0) return !!i;
|
|
@@ -487,7 +488,7 @@ var De = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|def
|
|
|
487
488
|
}
|
|
488
489
|
return !0;
|
|
489
490
|
};
|
|
490
|
-
})),
|
|
491
|
+
})), W = "-ms-", ke = "-moz-", G = "-webkit-", Ae = "comm", je = "rule", Me = "decl", Ne = "@import", Pe = "@keyframes", Fe = "@layer", Ie = Math.abs, Le = String.fromCharCode, Re = Object.assign;
|
|
491
492
|
function ze(e, t) {
|
|
492
493
|
return Y(e, 0) ^ 45 ? (((t << 2 ^ Y(e, 0)) << 2 ^ Y(e, 1)) << 2 ^ Y(e, 2)) << 2 ^ Y(e, 3) : 0;
|
|
493
494
|
}
|
|
@@ -629,7 +630,7 @@ function pt(e) {
|
|
|
629
630
|
}
|
|
630
631
|
function mt(e, t) {
|
|
631
632
|
for (; rt() && e + X !== 57 && (e + X !== 84 || it() !== 47););
|
|
632
|
-
return "/*" + ot(t, Xe - 1) + "*" +
|
|
633
|
+
return "/*" + ot(t, Xe - 1) + "*" + Le(e === 47 ? e : rt());
|
|
633
634
|
}
|
|
634
635
|
function ht(e) {
|
|
635
636
|
for (; !st(it());) rt();
|
|
@@ -643,7 +644,7 @@ function gt(e) {
|
|
|
643
644
|
function _t(e, t, n, r, i, a, o, s, c) {
|
|
644
645
|
for (var l = 0, u = 0, d = o, f = 0, p = 0, m = 0, h = 1, g = 1, _ = 1, v = 0, y = "", b = i, x = a, S = r, C = y; g;) switch (m = v, v = rt()) {
|
|
645
646
|
case 40: if (m != 108 && Y(C, d - 1) == 58) {
|
|
646
|
-
Be(C += J(ut(v), "&", "&\f"), "&\f",
|
|
647
|
+
Be(C += J(ut(v), "&", "&\f"), "&\f", Ie(l ? s[l - 1] : 0)) != -1 && (_ = -1);
|
|
647
648
|
break;
|
|
648
649
|
}
|
|
649
650
|
case 34:
|
|
@@ -701,7 +702,7 @@ function _t(e, t, n, r, i, a, o, s, c) {
|
|
|
701
702
|
if (v == 123) --h;
|
|
702
703
|
else if (v == 125 && h++ == 0 && nt() == 125) continue;
|
|
703
704
|
}
|
|
704
|
-
switch (C +=
|
|
705
|
+
switch (C += Le(v), v * h) {
|
|
705
706
|
case 38:
|
|
706
707
|
_ = u > 0 ? 1 : (C += "\f", -1);
|
|
707
708
|
break;
|
|
@@ -717,20 +718,20 @@ function _t(e, t, n, r, i, a, o, s, c) {
|
|
|
717
718
|
return a;
|
|
718
719
|
}
|
|
719
720
|
function vt(e, t, n, r, i, a, o, s, c, l, u, d) {
|
|
720
|
-
for (var f = i - 1, p = i === 0 ? a : [""], m = Ue(p), h = 0, g = 0, _ = 0; h < r; ++h) for (var v = 0, y = Ve(e, f + 1, f =
|
|
721
|
-
return Qe(e, t, n, i === 0 ?
|
|
721
|
+
for (var f = i - 1, p = i === 0 ? a : [""], m = Ue(p), h = 0, g = 0, _ = 0; h < r; ++h) for (var v = 0, y = Ve(e, f + 1, f = Ie(g = o[h])), b = e; v < m; ++v) (b = K(g > 0 ? p[v] + " " + y : J(y, /&\f/g, p[v]))) && (c[_++] = b);
|
|
722
|
+
return Qe(e, t, n, i === 0 ? je : s, c, l, u, d);
|
|
722
723
|
}
|
|
723
724
|
function yt(e, t, n, r) {
|
|
724
|
-
return Qe(e, t, n,
|
|
725
|
+
return Qe(e, t, n, Ae, Le(tt()), Ve(e, 2, -2), 0, r);
|
|
725
726
|
}
|
|
726
727
|
function bt(e, t, n, r, i) {
|
|
727
|
-
return Qe(e, t, n,
|
|
728
|
+
return Qe(e, t, n, Me, Ve(e, 0, r), Ve(e, r + 1, -1), r, i);
|
|
728
729
|
}
|
|
729
730
|
//#endregion
|
|
730
731
|
//#region node_modules/stylis/src/Prefixer.js
|
|
731
732
|
function xt(e, t, n) {
|
|
732
733
|
switch (ze(e, t)) {
|
|
733
|
-
case 5103: return
|
|
734
|
+
case 5103: return G + "print-" + e + e;
|
|
734
735
|
case 5737:
|
|
735
736
|
case 4201:
|
|
736
737
|
case 3177:
|
|
@@ -755,50 +756,50 @@ function xt(e, t, n) {
|
|
|
755
756
|
case 5109:
|
|
756
757
|
case 5365:
|
|
757
758
|
case 5621:
|
|
758
|
-
case 3829: return
|
|
759
|
-
case 4789: return
|
|
759
|
+
case 3829: return G + e + e;
|
|
760
|
+
case 4789: return ke + e + e;
|
|
760
761
|
case 5349:
|
|
761
762
|
case 4246:
|
|
762
763
|
case 4810:
|
|
763
764
|
case 6968:
|
|
764
|
-
case 2756: return
|
|
765
|
+
case 2756: return G + e + ke + e + W + e + e;
|
|
765
766
|
case 5936: switch (Y(e, t + 11)) {
|
|
766
|
-
case 114: return
|
|
767
|
-
case 108: return
|
|
768
|
-
case 45: return
|
|
767
|
+
case 114: return G + e + W + J(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
|
|
768
|
+
case 108: return G + e + W + J(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
|
|
769
|
+
case 45: return G + e + W + J(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
|
|
769
770
|
}
|
|
770
771
|
case 6828:
|
|
771
772
|
case 4268:
|
|
772
|
-
case 2903: return
|
|
773
|
-
case 6165: return
|
|
774
|
-
case 5187: return
|
|
775
|
-
case 5443: return
|
|
776
|
-
case 4675: return
|
|
777
|
-
case 5548: return
|
|
778
|
-
case 5292: return
|
|
779
|
-
case 6060: return
|
|
780
|
-
case 4554: return
|
|
781
|
-
case 6187: return J(J(J(e, /(zoom-|grab)/,
|
|
773
|
+
case 2903: return G + e + W + e + e;
|
|
774
|
+
case 6165: return G + e + W + "flex-" + e + e;
|
|
775
|
+
case 5187: return G + e + J(e, /(\w+).+(:[^]+)/, G + "box-$1$2" + W + "flex-$1$2") + e;
|
|
776
|
+
case 5443: return G + e + W + "flex-item-" + J(e, /flex-|-self/g, "") + (q(e, /flex-|baseline/) ? "" : W + "grid-row-" + J(e, /flex-|-self/g, "")) + e;
|
|
777
|
+
case 4675: return G + e + W + "flex-line-pack" + J(e, /align-content|flex-|-self/g, "") + e;
|
|
778
|
+
case 5548: return G + e + W + J(e, "shrink", "negative") + e;
|
|
779
|
+
case 5292: return G + e + W + J(e, "basis", "preferred-size") + e;
|
|
780
|
+
case 6060: return G + "box-" + J(e, "-grow", "") + G + e + W + J(e, "grow", "positive") + e;
|
|
781
|
+
case 4554: return G + J(e, /([^-])(transform)/g, "$1" + G + "$2") + e;
|
|
782
|
+
case 6187: return J(J(J(e, /(zoom-|grab)/, G + "$1"), /(image-set)/, G + "$1"), e, "") + e;
|
|
782
783
|
case 5495:
|
|
783
|
-
case 3959: return J(e, /(image-set\([^]*)/,
|
|
784
|
-
case 4968: return J(J(e, /(.+:)(flex-)?(.*)/,
|
|
784
|
+
case 3959: return J(e, /(image-set\([^]*)/, G + "$1$`$1");
|
|
785
|
+
case 4968: return J(J(e, /(.+:)(flex-)?(.*)/, G + "box-pack:$3" + W + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + G + e + e;
|
|
785
786
|
case 4200:
|
|
786
|
-
if (!q(e, /flex-|baseline/)) return
|
|
787
|
+
if (!q(e, /flex-|baseline/)) return W + "grid-column-align" + Ve(e, t) + e;
|
|
787
788
|
break;
|
|
788
789
|
case 2592:
|
|
789
|
-
case 3360: return
|
|
790
|
+
case 3360: return W + J(e, "template-", "") + e;
|
|
790
791
|
case 4384:
|
|
791
792
|
case 3616: return n && n.some(function(e, n) {
|
|
792
793
|
return t = n, q(e.props, /grid-\w+-end/);
|
|
793
|
-
}) ? ~Be(e + (n = n[t].value), "span", 0) ? e :
|
|
794
|
+
}) ? ~Be(e + (n = n[t].value), "span", 0) ? e : W + J(e, "-start", "") + e + W + "grid-row-span:" + (~Be(n, "span", 0) ? q(n, /\d+/) : +q(n, /\d+/) - q(e, /\d+/)) + ";" : W + J(e, "-start", "") + e;
|
|
794
795
|
case 4896:
|
|
795
796
|
case 4128: return n && n.some(function(e) {
|
|
796
797
|
return q(e.props, /grid-\w+-start/);
|
|
797
|
-
}) ? e :
|
|
798
|
+
}) ? e : W + J(J(e, "-end", "-span"), "span ", "") + e;
|
|
798
799
|
case 4095:
|
|
799
800
|
case 3583:
|
|
800
801
|
case 4068:
|
|
801
|
-
case 2532: return J(e, /(.+)-inline(.+)/,
|
|
802
|
+
case 2532: return J(e, /(.+)-inline(.+)/, G + "$1$2") + e;
|
|
802
803
|
case 8116:
|
|
803
804
|
case 7059:
|
|
804
805
|
case 5753:
|
|
@@ -813,21 +814,21 @@ function xt(e, t, n) {
|
|
|
813
814
|
case 4765:
|
|
814
815
|
if (He(e) - 1 - t > 6) switch (Y(e, t + 1)) {
|
|
815
816
|
case 109: if (Y(e, t + 4) !== 45) break;
|
|
816
|
-
case 102: return J(e, /(.+:)(.+)-([^]+)/, "$1" +
|
|
817
|
+
case 102: return J(e, /(.+:)(.+)-([^]+)/, "$1" + G + "$2-$3$1" + ke + (Y(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
|
|
817
818
|
case 115: return ~Be(e, "stretch", 0) ? xt(J(e, "stretch", "fill-available"), t, n) + e : e;
|
|
818
819
|
}
|
|
819
820
|
break;
|
|
820
821
|
case 5152:
|
|
821
822
|
case 5920: return J(e, /(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/, function(t, n, r, i, a, o, s) {
|
|
822
|
-
return
|
|
823
|
+
return W + n + ":" + r + s + (i ? W + n + "-span:" + (a ? o : +o - r) + s : "") + e;
|
|
823
824
|
});
|
|
824
825
|
case 4949:
|
|
825
|
-
if (Y(e, t + 6) === 121) return J(e, ":", ":" +
|
|
826
|
+
if (Y(e, t + 6) === 121) return J(e, ":", ":" + G) + e;
|
|
826
827
|
break;
|
|
827
828
|
case 6444:
|
|
828
829
|
switch (Y(e, Y(e, 14) === 45 ? 18 : 11)) {
|
|
829
|
-
case 120: return J(e, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, "$1" +
|
|
830
|
-
case 100: return J(e, ":", ":" +
|
|
830
|
+
case 120: return J(e, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, "$1" + G + (Y(e, 14) === 45 ? "inline-" : "") + "box$3$1" + G + "$2$3$1" + W + "$2box$3") + e;
|
|
831
|
+
case 100: return J(e, ":", ":" + W) + e;
|
|
831
832
|
}
|
|
832
833
|
break;
|
|
833
834
|
case 5719:
|
|
@@ -846,12 +847,12 @@ function St(e, t) {
|
|
|
846
847
|
}
|
|
847
848
|
function Ct(e, t, n, r) {
|
|
848
849
|
switch (e.type) {
|
|
849
|
-
case
|
|
850
|
-
case
|
|
851
|
-
case
|
|
852
|
-
case
|
|
853
|
-
case
|
|
854
|
-
case
|
|
850
|
+
case Fe: if (e.children.length) break;
|
|
851
|
+
case Ne:
|
|
852
|
+
case Me: return e.return = e.return || e.value;
|
|
853
|
+
case Ae: return "";
|
|
854
|
+
case Pe: return e.return = e.value + "{" + St(e.children, r) + "}";
|
|
855
|
+
case je: if (!He(e.value = e.props.join(","))) return "";
|
|
855
856
|
}
|
|
856
857
|
return He(n = St(e.children, r)) ? e.return = e.value + "{" + n + "}" : "";
|
|
857
858
|
}
|
|
@@ -871,17 +872,17 @@ function Tt(e) {
|
|
|
871
872
|
}
|
|
872
873
|
function Et(e, t, n, r) {
|
|
873
874
|
if (e.length > -1 && !e.return) switch (e.type) {
|
|
874
|
-
case
|
|
875
|
+
case Me:
|
|
875
876
|
e.return = xt(e.value, e.length, n);
|
|
876
877
|
return;
|
|
877
|
-
case
|
|
878
|
-
case
|
|
878
|
+
case Pe: return St([$e(e, { value: J(e.value, "@", "@" + G) })], r);
|
|
879
|
+
case je: if (e.length) return Ge(n = e.props, function(t) {
|
|
879
880
|
switch (q(t, r = /(::plac\w+|:read-\w+)/)) {
|
|
880
881
|
case ":read-only":
|
|
881
882
|
case ":read-write":
|
|
882
|
-
et($e(e, { props: [J(t, /:(read-\w+)/, ":" +
|
|
883
|
+
et($e(e, { props: [J(t, /:(read-\w+)/, ":" + ke + "$1")] })), et($e(e, { props: [t] })), Re(e, { props: Ke(n, r) });
|
|
883
884
|
break;
|
|
884
|
-
case "::placeholder": et($e(e, { props: [J(t, /:(plac\w+)/, ":" +
|
|
885
|
+
case "::placeholder": et($e(e, { props: [J(t, /:(plac\w+)/, ":" + G + "input-$1")] })), et($e(e, { props: [J(t, /:(plac\w+)/, ":" + ke + "$1")] })), et($e(e, { props: [J(t, /:(plac\w+)/, W + "input-$1")] })), et($e(e, { props: [t] })), Re(e, { props: Ke(n, r) });
|
|
885
886
|
}
|
|
886
887
|
return "";
|
|
887
888
|
});
|
|
@@ -889,7 +890,7 @@ function Et(e, t, n, r) {
|
|
|
889
890
|
}
|
|
890
891
|
//#endregion
|
|
891
892
|
//#region node_modules/@emotion/unitless/dist/emotion-unitless.esm.js
|
|
892
|
-
var Dt = /* @__PURE__ */ j(
|
|
893
|
+
var Dt = /* @__PURE__ */ j(Oe()), Ot = {
|
|
893
894
|
animationIterationCount: 1,
|
|
894
895
|
aspectRatio: 1,
|
|
895
896
|
borderImageOutset: 1,
|
|
@@ -947,7 +948,7 @@ See https://styled-components.com/docs/basics#define-styled-components-outside-o
|
|
|
947
948
|
var i = !0;
|
|
948
949
|
console.error = function(e) {
|
|
949
950
|
var t = [...arguments].slice(1);
|
|
950
|
-
It.test(e) ? (i = !1, Lt.delete(n)) : r.apply(void 0,
|
|
951
|
+
It.test(e) ? (i = !1, Lt.delete(n)) : r.apply(void 0, we([e], t, !1));
|
|
951
952
|
}, h(), i && !Lt.has(n) && (console.warn(n), Lt.add(n));
|
|
952
953
|
} catch (e) {
|
|
953
954
|
It.test(e.message) && Lt.delete(n);
|
|
@@ -1099,7 +1100,7 @@ function Dn() {
|
|
|
1099
1100
|
}
|
|
1100
1101
|
function On(e) {
|
|
1101
1102
|
var t = [...arguments].slice(1);
|
|
1102
|
-
return process.env.NODE_ENV === "production" ? /* @__PURE__ */ Error(`An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#${e} for more information.${t.length > 0 ? ` Args: ${t.join(", ")}` : ""}`) : Error(Dn.apply(void 0,
|
|
1103
|
+
return process.env.NODE_ENV === "production" ? /* @__PURE__ */ Error(`An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#${e} for more information.${t.length > 0 ? ` Args: ${t.join(", ")}` : ""}`) : Error(Dn.apply(void 0, we([En[e]], t, !1)).trim());
|
|
1103
1104
|
}
|
|
1104
1105
|
var kn = function() {
|
|
1105
1106
|
function e(e) {
|
|
@@ -1221,7 +1222,7 @@ var Hn = function(e) {
|
|
|
1221
1222
|
function e(e, t, n) {
|
|
1222
1223
|
e === void 0 && (e = Bt), t === void 0 && (t = {});
|
|
1223
1224
|
var r = this;
|
|
1224
|
-
this.options =
|
|
1225
|
+
this.options = U(U({}, qn), e), this.gs = t, this.names = new Map(n), this.server = !!e.isServer, !this.server && Pt && Kn && (Kn = !1, Bn(this)), Tn(this, function() {
|
|
1225
1226
|
return function(e) {
|
|
1226
1227
|
for (var t = e.getTag(), n = t.length, r = "", i = function(n) {
|
|
1227
1228
|
var i = function(e) {
|
|
@@ -1244,7 +1245,7 @@ var Hn = function(e) {
|
|
|
1244
1245
|
}, e.prototype.rehydrate = function() {
|
|
1245
1246
|
!this.server && Pt && Bn(this);
|
|
1246
1247
|
}, e.prototype.reconstructWithOptions = function(t, n) {
|
|
1247
|
-
return n === void 0 && (n = !0), new e(
|
|
1248
|
+
return n === void 0 && (n = !0), new e(U(U({}, this.options), t), this.gs, n && this.names || void 0);
|
|
1248
1249
|
}, e.prototype.allocateGSInstance = function(e) {
|
|
1249
1250
|
return this.gs[e] = (this.gs[e] || 0) + 1;
|
|
1250
1251
|
}, e.prototype.getTag = function() {
|
|
@@ -1377,7 +1378,7 @@ var cr = function(e) {
|
|
|
1377
1378
|
var t, n, r = [];
|
|
1378
1379
|
for (var i in e) {
|
|
1379
1380
|
var a = e[i];
|
|
1380
|
-
e.hasOwnProperty(i) && !cr(a) && (Array.isArray(a) && a.isCss || yn(a) ? r.push(`${sr(i)}:`, a, ";") : Cn(a) ? r.push.apply(r,
|
|
1381
|
+
e.hasOwnProperty(i) && !cr(a) && (Array.isArray(a) && a.isCss || yn(a) ? r.push(`${sr(i)}:`, a, ";") : Cn(a) ? r.push.apply(r, we(we([`${i} {`], lr(a), !1), ["}"], !1)) : r.push(`${sr(i)}: ${t = i, (n = a) == null || typeof n == "boolean" || n === "" ? "" : typeof n != "number" || n === 0 || t in Ot || t.startsWith("--") ? String(n).trim() : `${n}px`};`));
|
|
1381
1382
|
}
|
|
1382
1383
|
return r;
|
|
1383
1384
|
};
|
|
@@ -1460,16 +1461,16 @@ function _r(t, n, r) {
|
|
|
1460
1461
|
var a = t.attrs, o = t.componentStyle, s = t.defaultProps, l = t.foldedComponentIds, u = t.styledComponentId, d = t.target, f = e.useContext(mr), p = rr(), m = t.shouldForwardProp || p.shouldForwardProp;
|
|
1461
1462
|
process.env.NODE_ENV !== "production" && c(u);
|
|
1462
1463
|
var h = Vt(n, f, s) || Bt, g = function(e, t, n) {
|
|
1463
|
-
for (var r, i =
|
|
1464
|
+
for (var r, i = U(U({}, t), {
|
|
1464
1465
|
className: void 0,
|
|
1465
1466
|
theme: n
|
|
1466
1467
|
}), a = 0; a < e.length; a += 1) {
|
|
1467
1468
|
var o = yn(r = e[a]) ? r(i) : r;
|
|
1468
|
-
for (var s in o) i[s] = s === "className" ? xn(i[s], o[s]) : s === "style" ?
|
|
1469
|
+
for (var s in o) i[s] = s === "className" ? xn(i[s], o[s]) : s === "style" ? U(U({}, i[s]), o[s]) : o[s];
|
|
1469
1470
|
}
|
|
1470
1471
|
return t.className && (i.className = xn(i.className, t.className)), i;
|
|
1471
1472
|
}(a, n, h), _ = g.as || d, v = {};
|
|
1472
|
-
for (var y in g) g[y] === void 0 || y[0] === "$" || y === "as" || y === "theme" && g.theme === h || (y === "forwardedAs" ? v.as = g.forwardedAs : m && !m(y, _) || (v[y] = g[y], m || process.env.NODE_ENV !== "development" ||
|
|
1473
|
+
for (var y in g) g[y] === void 0 || y[0] === "$" || y === "as" || y === "theme" && g.theme === h || (y === "forwardedAs" ? v.as = g.forwardedAs : m && !m(y, _) || (v[y] = g[y], m || process.env.NODE_ENV !== "development" || De(y) || gr.has(y) || !Ht.has(_) || (gr.add(y), console.warn(`styled-components: it looks like an unknown prop "${y}" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via \`<StyleSheetManager shouldForwardProp={...}>\` (connect an API like \`@emotion/is-prop-valid\`) or consider using transient props (\`\$\` prefix for automatic filtering.)`))));
|
|
1473
1474
|
var b = function(e, t) {
|
|
1474
1475
|
var n = rr(), r = e.generateAndInjectStyles(t, n.styleSheet, n.stylis);
|
|
1475
1476
|
return process.env.NODE_ENV !== "production" && c(r), r;
|
|
@@ -1529,7 +1530,7 @@ var yr = function(e) {
|
|
|
1529
1530
|
};
|
|
1530
1531
|
function br(e) {
|
|
1531
1532
|
var t = [...arguments].slice(1);
|
|
1532
|
-
if (yn(e) || Cn(e)) return yr(ur(vr(zt,
|
|
1533
|
+
if (yn(e) || Cn(e)) return yr(ur(vr(zt, we([e], t, !0))));
|
|
1533
1534
|
var n = e;
|
|
1534
1535
|
return t.length === 0 && n.length === 1 && typeof n[0] == "string" ? ur(n) : yr(ur(vr(n, t)));
|
|
1535
1536
|
}
|
|
@@ -1537,12 +1538,12 @@ function xr(e, t, n) {
|
|
|
1537
1538
|
if (n === void 0 && (n = Bt), !t) throw On(1, t);
|
|
1538
1539
|
var r = function(r) {
|
|
1539
1540
|
var i = [...arguments].slice(1);
|
|
1540
|
-
return e(t, n, br.apply(void 0,
|
|
1541
|
+
return e(t, n, br.apply(void 0, we([r], i, !1)));
|
|
1541
1542
|
};
|
|
1542
1543
|
return r.attrs = function(r) {
|
|
1543
|
-
return xr(e, t,
|
|
1544
|
+
return xr(e, t, U(U({}, n), { attrs: Array.prototype.concat(n.attrs, r).filter(Boolean) }));
|
|
1544
1545
|
}, r.withConfig = function(r) {
|
|
1545
|
-
return xr(e, t,
|
|
1546
|
+
return xr(e, t, U(U({}, n), r));
|
|
1546
1547
|
}, r;
|
|
1547
1548
|
}
|
|
1548
1549
|
var Sr = function(e) {
|
|
@@ -1583,7 +1584,7 @@ Ht.forEach(function(e) {
|
|
|
1583
1584
|
var r = t.instance.toString();
|
|
1584
1585
|
if (!r) return [];
|
|
1585
1586
|
var i = ((n = {})[kt] = "", n[jt] = Mt, n.dangerouslySetInnerHTML = { __html: r }, n), a = Vn();
|
|
1586
|
-
return a && (i.nonce = a), [e.createElement("style",
|
|
1587
|
+
return a && (i.nonce = a), [e.createElement("style", U({}, i, { key: "sc-0-0" }))];
|
|
1587
1588
|
}, this.seal = function() {
|
|
1588
1589
|
t.sealed = !0;
|
|
1589
1590
|
}, this.instance = new Jn({ isServer: !0 }), this.sealed = !1;
|
|
@@ -1614,7 +1615,7 @@ var Tr = Cr.div`
|
|
|
1614
1615
|
border: 1px solid #ede;
|
|
1615
1616
|
${({ $bare: e }) => e ? "\n background-color: transparent;\n padding: 0;\n box-shadow: none;\n border: none;\n border-radius: 0;\n " : ""}
|
|
1616
1617
|
`, Er = a(({ referenceElement: e, position: t, coordonnees: n, children: r, show: i, className: a, id: s, closeOverlay: c, usePortal: l = !0, matchReferenceWidth: m = !1, bare: _ = !1 }, v) => {
|
|
1617
|
-
let { activeOverlayId: S, setActiveOverlay: C } =
|
|
1618
|
+
let { activeOverlayId: S, setActiveOverlay: C } = Ce(), [w, T] = g(i || !1), [E, D] = g(n ?? {
|
|
1618
1619
|
top: 0,
|
|
1619
1620
|
left: 0
|
|
1620
1621
|
}), [O, k] = g(), [A, j] = g(!1), M = h(null), N = d();
|
|
@@ -1710,7 +1711,7 @@ var Tr = Cr.div`
|
|
|
1710
1711
|
id: s ?? "",
|
|
1711
1712
|
className: "toggle-btn",
|
|
1712
1713
|
onClick: P,
|
|
1713
|
-
children: /* @__PURE__ */ y(
|
|
1714
|
+
children: /* @__PURE__ */ y(B, { classIcon: "bi-x-lg" })
|
|
1714
1715
|
}), /* @__PURE__ */ y("div", {
|
|
1715
1716
|
onClick: (e) => e.stopPropagation(),
|
|
1716
1717
|
children: r
|
|
@@ -1734,9 +1735,9 @@ var Tr = Cr.div`
|
|
|
1734
1735
|
id: e.id ?? t,
|
|
1735
1736
|
icon: e.icon,
|
|
1736
1737
|
name: e.label,
|
|
1737
|
-
children: /* @__PURE__ */ y(
|
|
1738
|
+
children: /* @__PURE__ */ y(ve, {
|
|
1738
1739
|
classIcon: e.icon,
|
|
1739
|
-
sizeIcon:
|
|
1740
|
+
sizeIcon: V.LARGE,
|
|
1740
1741
|
onClick: (t) => {
|
|
1741
1742
|
t.stopPropagation(), _(), e.onClick && e.onClick(e);
|
|
1742
1743
|
},
|
|
@@ -1758,14 +1759,14 @@ var Tr = Cr.div`
|
|
|
1758
1759
|
className: "ml-2",
|
|
1759
1760
|
ref: l,
|
|
1760
1761
|
onClick: (e) => f(e),
|
|
1761
|
-
children: /* @__PURE__ */ y(
|
|
1762
|
+
children: /* @__PURE__ */ y(B, { classIcon: "bi-chevron-up" })
|
|
1762
1763
|
})]
|
|
1763
1764
|
}), r && u && l.current && /* @__PURE__ */ y(Er, {
|
|
1764
1765
|
show: u,
|
|
1765
1766
|
position: i,
|
|
1766
1767
|
closeOverlay: d,
|
|
1767
1768
|
referenceElement: l.current,
|
|
1768
|
-
children: /* @__PURE__ */ y("div", { children: /* @__PURE__ */ y(
|
|
1769
|
+
children: /* @__PURE__ */ y("div", { children: /* @__PURE__ */ y(H, {
|
|
1769
1770
|
className: "card-action-menu",
|
|
1770
1771
|
items: p
|
|
1771
1772
|
}) })
|
|
@@ -1790,7 +1791,7 @@ var Tr = Cr.div`
|
|
|
1790
1791
|
},
|
|
1791
1792
|
style: { display: "none" },
|
|
1792
1793
|
accept: t
|
|
1793
|
-
}), /* @__PURE__ */ y(
|
|
1794
|
+
}), /* @__PURE__ */ y(ve, {
|
|
1794
1795
|
onClick: () => {
|
|
1795
1796
|
a.current?.click();
|
|
1796
1797
|
},
|
|
@@ -1816,7 +1817,7 @@ var Tr = Cr.div`
|
|
|
1816
1817
|
}), /* @__PURE__ */ y("div", {
|
|
1817
1818
|
className: "modal-close-button",
|
|
1818
1819
|
onClick: t,
|
|
1819
|
-
children: /* @__PURE__ */ y(
|
|
1820
|
+
children: /* @__PURE__ */ y(B, { classIcon: "bi-x-lg" })
|
|
1820
1821
|
})]
|
|
1821
1822
|
}),
|
|
1822
1823
|
/* @__PURE__ */ y("div", {
|
|
@@ -1825,7 +1826,7 @@ var Tr = Cr.div`
|
|
|
1825
1826
|
}),
|
|
1826
1827
|
r && /* @__PURE__ */ y("div", {
|
|
1827
1828
|
className: "d-flex justify-content-end",
|
|
1828
|
-
children: /* @__PURE__ */ y(
|
|
1829
|
+
children: /* @__PURE__ */ y(ve, {
|
|
1829
1830
|
onClick: r,
|
|
1830
1831
|
title: i ?? ""
|
|
1831
1832
|
})
|
|
@@ -1834,7 +1835,7 @@ var Tr = Cr.div`
|
|
|
1834
1835
|
})
|
|
1835
1836
|
}), document.body) : null, Ar = ({ onValidate: e, accept: t = "*", buttonText: n = "Importer", buttonClassName: r, buttonClassIcon: i = "", title: a = "Importer un fichier", description: o = "Sélectionner un fichier à importer.", classIcon: s = "bi-file-earmark-arrow-up", validateText: c = "Valider" }) => {
|
|
1836
1837
|
let l = h(null), [u, d] = g(!1), [f, p] = g(null), [m, _] = g(!1);
|
|
1837
|
-
return /* @__PURE__ */ b(v, { children: [/* @__PURE__ */ y(
|
|
1838
|
+
return /* @__PURE__ */ b(v, { children: [/* @__PURE__ */ y(ve, {
|
|
1838
1839
|
className: r,
|
|
1839
1840
|
classIcon: i,
|
|
1840
1841
|
title: n,
|
|
@@ -1860,9 +1861,9 @@ var Tr = Cr.div`
|
|
|
1860
1861
|
onClick: () => l.current?.click(),
|
|
1861
1862
|
children: [
|
|
1862
1863
|
/* @__PURE__ */ y("div", { children: o }),
|
|
1863
|
-
/* @__PURE__ */ y(
|
|
1864
|
+
/* @__PURE__ */ y(B, {
|
|
1864
1865
|
classIcon: s,
|
|
1865
|
-
size:
|
|
1866
|
+
size: V.LARGE
|
|
1866
1867
|
}),
|
|
1867
1868
|
/* @__PURE__ */ y("div", {
|
|
1868
1869
|
className: "button-import-file mt-2",
|
|
@@ -1872,7 +1873,7 @@ var Tr = Cr.div`
|
|
|
1872
1873
|
}),
|
|
1873
1874
|
/* @__PURE__ */ y("div", {
|
|
1874
1875
|
className: "d-flex justify-content-end mt-2",
|
|
1875
|
-
children: /* @__PURE__ */ y(
|
|
1876
|
+
children: /* @__PURE__ */ y(ve, {
|
|
1876
1877
|
title: c,
|
|
1877
1878
|
disabled: !f || m,
|
|
1878
1879
|
onClick: async () => {
|
|
@@ -1916,15 +1917,15 @@ var Tr = Cr.div`
|
|
|
1916
1917
|
let e = s ? -1 : F.findIndex((e) => e.value === L[0]);
|
|
1917
1918
|
te(Math.max(jr, e + 1)), M.current?.scrollTo({ top: 0 });
|
|
1918
1919
|
}, [E, N]);
|
|
1919
|
-
let
|
|
1920
|
+
let z = F.slice(0, P), ie = (e) => {
|
|
1920
1921
|
let { scrollTop: t, scrollHeight: n, clientHeight: r } = e.currentTarget;
|
|
1921
1922
|
P < F.length && n - t - r < 100 && te((e) => e + jr);
|
|
1922
|
-
},
|
|
1923
|
+
}, ae = () => L.length === 0 ? C || "" : s ? L.map((e) => ne.get(e)?.label).filter((e) => !!e).join(", ") : ne.get(L[0])?.label || "", oe = (e) => {
|
|
1923
1924
|
if (s) {
|
|
1924
1925
|
let t = L.includes(e) ? L.filter((t) => t !== e) : [...L, e];
|
|
1925
1926
|
x && x(t);
|
|
1926
1927
|
} else _ && _(e), D(!1);
|
|
1927
|
-
},
|
|
1928
|
+
}, se = o(() => {
|
|
1928
1929
|
s && x ? x([]) : _ && _("");
|
|
1929
1930
|
}, [
|
|
1930
1931
|
_,
|
|
@@ -1952,13 +1953,13 @@ var Tr = Cr.div`
|
|
|
1952
1953
|
k(e.currentTarget), D(!0);
|
|
1953
1954
|
},
|
|
1954
1955
|
type: "button",
|
|
1955
|
-
"aria-valuetext":
|
|
1956
|
-
title:
|
|
1956
|
+
"aria-valuetext": ae() || C,
|
|
1957
|
+
title: ae() || C,
|
|
1957
1958
|
"aria-haspopup": "listbox",
|
|
1958
1959
|
"aria-expanded": E,
|
|
1959
1960
|
children: /* @__PURE__ */ y("span", {
|
|
1960
1961
|
className: "select-container-value",
|
|
1961
|
-
children:
|
|
1962
|
+
children: ae() || /* @__PURE__ */ y("span", {
|
|
1962
1963
|
className: "placeholder",
|
|
1963
1964
|
children: C
|
|
1964
1965
|
})
|
|
@@ -1988,14 +1989,14 @@ var Tr = Cr.div`
|
|
|
1988
1989
|
}), /* @__PURE__ */ b("div", {
|
|
1989
1990
|
className: "select-overlay-options",
|
|
1990
1991
|
ref: M,
|
|
1991
|
-
onScroll:
|
|
1992
|
+
onScroll: ie,
|
|
1992
1993
|
children: [f && F.length === 0 && /* @__PURE__ */ y("div", {
|
|
1993
1994
|
className: "select-overlay-empty",
|
|
1994
1995
|
children: "Aucun résultat"
|
|
1995
|
-
}),
|
|
1996
|
+
}), z.map((e) => /* @__PURE__ */ b("div", {
|
|
1996
1997
|
"aria-valuetext": e.label,
|
|
1997
1998
|
className: `select-overlay-option ${e.disabled ? "disabled" : ""} ${L.includes(e.value) ? "selected" : ""}`,
|
|
1998
|
-
onClick: () => !e.disabled &&
|
|
1999
|
+
onClick: () => !e.disabled && oe(e.value),
|
|
1999
2000
|
role: "option",
|
|
2000
2001
|
"aria-selected": L.includes(e.value),
|
|
2001
2002
|
children: [s && /* @__PURE__ */ y("input", {
|
|
@@ -2009,9 +2010,9 @@ var Tr = Cr.div`
|
|
|
2009
2010
|
}),
|
|
2010
2011
|
R && C && /* @__PURE__ */ y("div", {
|
|
2011
2012
|
className: "clear-btn",
|
|
2012
|
-
onClick:
|
|
2013
|
+
onClick: se,
|
|
2013
2014
|
"aria-label": "Réinitialiser",
|
|
2014
|
-
children: /* @__PURE__ */ y(
|
|
2015
|
+
children: /* @__PURE__ */ y(B, { classIcon: "bi-x-circle" })
|
|
2015
2016
|
})
|
|
2016
2017
|
]
|
|
2017
2018
|
});
|
|
@@ -2073,12 +2074,12 @@ var Tr = Cr.div`
|
|
|
2073
2074
|
if (!n) throw Error("HTMLInputElement value setter is unavailable");
|
|
2074
2075
|
n.call(t, ""), t.dispatchEvent(new Event("input", { bubbles: !0 })), t.focus();
|
|
2075
2076
|
},
|
|
2076
|
-
children: /* @__PURE__ */ y(
|
|
2077
|
+
children: /* @__PURE__ */ y(B, { classIcon: "bi-x" })
|
|
2077
2078
|
}),
|
|
2078
2079
|
n === Z.PASSWORD && /* @__PURE__ */ y("div", {
|
|
2079
2080
|
onClick: () => j(!A),
|
|
2080
2081
|
className: "input-password-icon",
|
|
2081
|
-
children: /* @__PURE__ */ y(
|
|
2082
|
+
children: /* @__PURE__ */ y(B, { classIcon: A ? "bi-eye-slash" : "bi-eye" })
|
|
2082
2083
|
})
|
|
2083
2084
|
]
|
|
2084
2085
|
});
|
|
@@ -2207,36 +2208,48 @@ var Fr = a(({ value: e = "", locale: t = "fr-FR", currency: n = "EUR", allowDeci
|
|
|
2207
2208
|
$xl: i,
|
|
2208
2209
|
children: a
|
|
2209
2210
|
});
|
|
2210
|
-
}, Kr =
|
|
2211
|
+
}, Kr = (e, t) => {
|
|
2212
|
+
if (e.condition && typeof t == "string" && t.trim() !== "") return new RegExp(e.condition.regex).test(t.trim()) ? void 0 : e.condition.errorMessage;
|
|
2213
|
+
}, qr = new Intl.NumberFormat("fr-FR", {
|
|
2211
2214
|
style: "currency",
|
|
2212
2215
|
currency: "EUR"
|
|
2213
|
-
}),
|
|
2216
|
+
}), Jr = ({ field: e, gridEnabled: t, children: n }) => t ? /* @__PURE__ */ y(Gr, {
|
|
2214
2217
|
...e.col,
|
|
2215
2218
|
children: n
|
|
2216
|
-
}) : /* @__PURE__ */ y(v, { children: n }),
|
|
2219
|
+
}) : /* @__PURE__ */ y(v, { children: n }), Yr = a(({ initialForm: t, sections: n, title: r, onSubmit: i, id: a, children: s, autoComplete: c, onChange: l, hideSubmit: u, disabledSubmit: d = !1, mode: p = "edit", className: m, responsive: _, submitCol: v }, x) => {
|
|
2217
2220
|
let S = n ? n.reduce((e, t) => e.concat(t.fields), []) : t ?? [], [C, w] = g(d), [T, E] = g(() => {
|
|
2218
2221
|
let e = {};
|
|
2219
2222
|
return S.forEach((t) => {
|
|
2220
2223
|
e[t.name] = t.value ?? "";
|
|
2221
2224
|
}), e;
|
|
2222
|
-
}), D = h({}),
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
+
}), [D, O] = g({}), k = h({}), A = o((e, t) => {
|
|
2226
|
+
O((n) => n[e.name] ? {
|
|
2227
|
+
...n,
|
|
2228
|
+
[e.name]: Kr(e, t)
|
|
2229
|
+
} : n);
|
|
2230
|
+
}, []), j = o((e, t) => {
|
|
2231
|
+
O((n) => ({
|
|
2232
|
+
...n,
|
|
2233
|
+
[e.name]: Kr(e, t)
|
|
2234
|
+
}));
|
|
2235
|
+
}, []), M = o((e, t) => {
|
|
2236
|
+
let { name: n, type: r, checked: i, value: a } = e.target, o = r === "checkbox" ? i : t.formatOnChange?.(a) ?? a;
|
|
2237
|
+
t.onChange && t.onChange(o, n), A(t, o), E((e) => {
|
|
2225
2238
|
let t = {
|
|
2226
2239
|
...e,
|
|
2227
2240
|
[n]: o
|
|
2228
2241
|
};
|
|
2229
2242
|
return l && l(t), t;
|
|
2230
2243
|
});
|
|
2231
|
-
}, [l]),
|
|
2232
|
-
n.onChange && n.onChange(t, e), E((n) => {
|
|
2244
|
+
}, [l, A]), N = o((e, t, n) => {
|
|
2245
|
+
n.onChange && n.onChange(t, e), A(n, t), E((n) => {
|
|
2233
2246
|
let r = {
|
|
2234
2247
|
...n,
|
|
2235
2248
|
[e]: t
|
|
2236
2249
|
};
|
|
2237
2250
|
return l && l(r), r;
|
|
2238
2251
|
});
|
|
2239
|
-
}, [l]),
|
|
2252
|
+
}, [l, A]), ee = o((e, t, n) => {
|
|
2240
2253
|
n.onChange && n.onChange(e, t), E((n) => {
|
|
2241
2254
|
let r = {
|
|
2242
2255
|
...n,
|
|
@@ -2244,31 +2257,40 @@ var Fr = a(({ value: e = "", locale: t = "fr-FR", currency: n = "EUR", allowDeci
|
|
|
2244
2257
|
};
|
|
2245
2258
|
return l && l(r), r;
|
|
2246
2259
|
});
|
|
2247
|
-
}, [l]),
|
|
2248
|
-
e.preventDefault()
|
|
2249
|
-
|
|
2250
|
-
|
|
2260
|
+
}, [l]), P = o((e) => {
|
|
2261
|
+
e.preventDefault();
|
|
2262
|
+
let t = S.reduce((e, t) => (e[t.name] = Kr(t, T[t.name]), e), {});
|
|
2263
|
+
if (O(t), Object.values(t).some(Boolean)) {
|
|
2264
|
+
let e = S.find((e) => t[e.name]);
|
|
2265
|
+
e && k.current[e.name]?.focus();
|
|
2266
|
+
} else i && i(T);
|
|
2267
|
+
}, [
|
|
2268
|
+
i,
|
|
2269
|
+
T,
|
|
2270
|
+
S
|
|
2271
|
+
]), te = () => {
|
|
2272
|
+
O({}), E(() => {
|
|
2251
2273
|
let e = {};
|
|
2252
2274
|
return S.forEach((t) => {
|
|
2253
2275
|
e[t.name] = t.value ?? "";
|
|
2254
2276
|
}), e;
|
|
2255
2277
|
});
|
|
2256
|
-
},
|
|
2278
|
+
}, F = o((e) => {
|
|
2257
2279
|
E((t) => ({
|
|
2258
2280
|
...t,
|
|
2259
2281
|
[e]: ""
|
|
2260
2282
|
}));
|
|
2261
|
-
}, []),
|
|
2283
|
+
}, []), ne = () => {
|
|
2262
2284
|
let e = S.find((e) => e.focus);
|
|
2263
|
-
e &&
|
|
2264
|
-
|
|
2285
|
+
e && k.current[e.name] && setTimeout(() => {
|
|
2286
|
+
k.current[e.name]?.select();
|
|
2265
2287
|
}, 500);
|
|
2266
|
-
},
|
|
2288
|
+
}, re = () => T, I = (e) => {
|
|
2267
2289
|
E((t) => ({
|
|
2268
2290
|
...t,
|
|
2269
2291
|
...e
|
|
2270
2292
|
}));
|
|
2271
|
-
},
|
|
2293
|
+
}, L = o((e) => {
|
|
2272
2294
|
E((t) => {
|
|
2273
2295
|
let n = {
|
|
2274
2296
|
...t,
|
|
@@ -2278,44 +2300,44 @@ var Fr = a(({ value: e = "", locale: t = "fr-FR", currency: n = "EUR", allowDeci
|
|
|
2278
2300
|
});
|
|
2279
2301
|
}, [l]);
|
|
2280
2302
|
f(x, () => ({
|
|
2281
|
-
resetForm:
|
|
2282
|
-
clearInput:
|
|
2283
|
-
focusInitialElement:
|
|
2284
|
-
getValues:
|
|
2285
|
-
updateFormValue:
|
|
2303
|
+
resetForm: te,
|
|
2304
|
+
clearInput: F,
|
|
2305
|
+
focusInitialElement: ne,
|
|
2306
|
+
getValues: re,
|
|
2307
|
+
updateFormValue: I,
|
|
2286
2308
|
setBtnDisabledSubmit: w
|
|
2287
2309
|
}));
|
|
2288
|
-
let
|
|
2310
|
+
let R = (e) => {
|
|
2289
2311
|
let t = T[e.name];
|
|
2290
2312
|
if (e.formatReadValue) return e.formatReadValue(t ?? "");
|
|
2291
2313
|
if (e.type === Z.SELECT) return (Array.isArray(t) ? t : [t]).map((t) => e.options?.find((e) => e.value === t)?.label ?? t).filter((e) => e !== void 0).join(", ") || "-";
|
|
2292
2314
|
if (e.type === Z.PRICE) {
|
|
2293
2315
|
let e = Number(t);
|
|
2294
|
-
return t === "" || t === void 0 || Number.isNaN(e) ? "-" :
|
|
2316
|
+
return t === "" || t === void 0 || Number.isNaN(e) ? "-" : qr.format(e);
|
|
2295
2317
|
}
|
|
2296
2318
|
return typeof t == "boolean" ? t ? "Oui" : "Non" : t instanceof Date ? t.toLocaleDateString() : Array.isArray(t) ? t.join(", ") || "-" : t == null || t === "" ? "-" : String(t);
|
|
2297
|
-
},
|
|
2319
|
+
}, z = p === "edit" && !u && /* @__PURE__ */ y(ve, {
|
|
2298
2320
|
id: `button-${a}`,
|
|
2299
2321
|
disabled: C,
|
|
2300
2322
|
title: r || "submit"
|
|
2301
|
-
}),
|
|
2323
|
+
}), ie = n ? n[n.length - 1]?.fields ?? [] : t ?? [], ae = !!v && ie.some((e) => e.col !== void 0), oe = (t, n = !1) => {
|
|
2302
2324
|
let r = t.some((e) => e.col !== void 0), i = r ? Wr : e.Fragment;
|
|
2303
2325
|
return /* @__PURE__ */ b(i, {
|
|
2304
2326
|
...r ? { responsive: _ } : {},
|
|
2305
2327
|
children: [t.map((e, t) => {
|
|
2306
2328
|
let n = e.onRequired ? e.onRequired(e.value) : e.required ?? !1, i = e.onDisabled ? e.onDisabled(e.value) : e.disabled ?? !1;
|
|
2307
|
-
return /* @__PURE__ */ y(
|
|
2329
|
+
return /* @__PURE__ */ y(Jr, {
|
|
2308
2330
|
field: e,
|
|
2309
2331
|
gridEnabled: r,
|
|
2310
2332
|
children: /* @__PURE__ */ b("div", {
|
|
2311
|
-
className: `d-flex flex-column ${e.className ?? ""} form-group form-group-${e.type}`,
|
|
2333
|
+
className: `d-flex flex-column ${e.className ?? ""} form-group form-group-${e.type} ${D[e.name] ? "form-group--error" : ""}`,
|
|
2312
2334
|
children: [
|
|
2313
2335
|
e.label && /* @__PURE__ */ y("label", { children: e.label }),
|
|
2314
|
-
e.icon && /* @__PURE__ */ y(
|
|
2336
|
+
e.icon && /* @__PURE__ */ y(B, { classIcon: e.icon }),
|
|
2315
2337
|
p === "read" ? /* @__PURE__ */ y("div", {
|
|
2316
2338
|
className: `form-read-value ${e.type === Z.TEXTAREA ? "form-read-value--textarea" : ""}`,
|
|
2317
|
-
children:
|
|
2318
|
-
}) : e.type === Z.ADDRESS ? /* @__PURE__ */ y(
|
|
2339
|
+
children: R(e)
|
|
2340
|
+
}) : e.type === Z.ADDRESS ? /* @__PURE__ */ y(_e, {
|
|
2319
2341
|
id: e.id ?? e.name,
|
|
2320
2342
|
label: "",
|
|
2321
2343
|
placeholder: e.placeholder,
|
|
@@ -2331,10 +2353,12 @@ var Fr = a(({ value: e = "", locale: t = "fr-FR", currency: n = "EUR", allowDeci
|
|
|
2331
2353
|
required: n,
|
|
2332
2354
|
allowManualEntry: !0,
|
|
2333
2355
|
manualEntryLabel: e.addressSearch?.manualEntryLabel,
|
|
2334
|
-
onChange: (t) =>
|
|
2356
|
+
onChange: (t) => {
|
|
2357
|
+
A(e, t), L({ [e.name]: t });
|
|
2358
|
+
},
|
|
2335
2359
|
onSelect: (t) => {
|
|
2336
2360
|
let n = e.addressSearch?.mapAddress?.(t) ?? {};
|
|
2337
|
-
|
|
2361
|
+
e.name in n && A(e, n[e.name]), L(n), e.addressSearch?.onSelect?.(t);
|
|
2338
2362
|
}
|
|
2339
2363
|
}) : e.type === "select" ? /* @__PURE__ */ y(Mr, {
|
|
2340
2364
|
id: e.id ?? e.name,
|
|
@@ -2349,8 +2373,8 @@ var Fr = a(({ value: e = "", locale: t = "fr-FR", currency: n = "EUR", allowDeci
|
|
|
2349
2373
|
required: n,
|
|
2350
2374
|
defaultValue: e.value,
|
|
2351
2375
|
placeholder: e.placeholder,
|
|
2352
|
-
onChangeMultiple: (t) =>
|
|
2353
|
-
onChange: (t) =>
|
|
2376
|
+
onChangeMultiple: (t) => ee(t, e.name, e),
|
|
2377
|
+
onChange: (t) => ee(t, e.name, e)
|
|
2354
2378
|
}) : e.type === "textarea" ? /* @__PURE__ */ y(Ir, {
|
|
2355
2379
|
id: e.id ?? e.name,
|
|
2356
2380
|
name: e.name,
|
|
@@ -2359,10 +2383,10 @@ var Fr = a(({ value: e = "", locale: t = "fr-FR", currency: n = "EUR", allowDeci
|
|
|
2359
2383
|
disabled: i,
|
|
2360
2384
|
required: n,
|
|
2361
2385
|
value: T[e.name],
|
|
2362
|
-
onChange: (t, n) =>
|
|
2386
|
+
onChange: (t, n) => N(n, t, e)
|
|
2363
2387
|
}) : e.type === Z.PRICE ? /* @__PURE__ */ y(Fr, {
|
|
2364
2388
|
id: e.id ?? e.name,
|
|
2365
|
-
ref: (t) =>
|
|
2389
|
+
ref: (t) => k.current[e.name] = t,
|
|
2366
2390
|
name: e.name,
|
|
2367
2391
|
placeholder: e.placeholder ?? "",
|
|
2368
2392
|
autoComplete: e.autoComplete,
|
|
@@ -2371,10 +2395,10 @@ var Fr = a(({ value: e = "", locale: t = "fr-FR", currency: n = "EUR", allowDeci
|
|
|
2371
2395
|
autoFocus: e.focus ?? !1,
|
|
2372
2396
|
required: n,
|
|
2373
2397
|
value: String(T[e.name] ?? ""),
|
|
2374
|
-
onChange: (t) =>
|
|
2398
|
+
onChange: (t) => N(e.name, t, e)
|
|
2375
2399
|
}) : /* @__PURE__ */ y(Nr, {
|
|
2376
2400
|
id: e.id ?? e.name,
|
|
2377
|
-
ref: (t) =>
|
|
2401
|
+
ref: (t) => k.current[e.name] = t,
|
|
2378
2402
|
name: e.name,
|
|
2379
2403
|
type: e.type,
|
|
2380
2404
|
placeholder: e.placeholder ?? "",
|
|
@@ -2386,24 +2410,29 @@ var Fr = a(({ value: e = "", locale: t = "fr-FR", currency: n = "EUR", allowDeci
|
|
|
2386
2410
|
step: e.step ?? "0.01",
|
|
2387
2411
|
value: T[e.name],
|
|
2388
2412
|
checked: e.type === "checkbox" ? !!T[e.name] : void 0,
|
|
2389
|
-
onChange: (t) =>
|
|
2413
|
+
onChange: (t) => M(t, e),
|
|
2414
|
+
onBlur: (t) => j(e, t.target.value),
|
|
2390
2415
|
onInvalid: e.onInvalid ? e.onInvalid : void 0
|
|
2416
|
+
}),
|
|
2417
|
+
p !== "read" && D[e.name] && /* @__PURE__ */ y("small", {
|
|
2418
|
+
className: "form-error",
|
|
2419
|
+
children: D[e.name]
|
|
2391
2420
|
})
|
|
2392
2421
|
]
|
|
2393
2422
|
})
|
|
2394
2423
|
}, e.name || t);
|
|
2395
|
-
}), n &&
|
|
2424
|
+
}), n && z && /* @__PURE__ */ y(Gr, {
|
|
2396
2425
|
...v,
|
|
2397
2426
|
children: /* @__PURE__ */ y("div", {
|
|
2398
2427
|
className: "form-submit-col",
|
|
2399
|
-
children:
|
|
2428
|
+
children: z
|
|
2400
2429
|
})
|
|
2401
2430
|
})]
|
|
2402
2431
|
});
|
|
2403
2432
|
};
|
|
2404
2433
|
return /* @__PURE__ */ b("form", {
|
|
2405
2434
|
autoComplete: c ?? "off",
|
|
2406
|
-
onSubmit:
|
|
2435
|
+
onSubmit: P,
|
|
2407
2436
|
className: m ?? "",
|
|
2408
2437
|
children: [/* @__PURE__ */ b("div", {
|
|
2409
2438
|
className: "form-content",
|
|
@@ -2412,14 +2441,14 @@ var Fr = a(({ value: e = "", locale: t = "fr-FR", currency: n = "EUR", allowDeci
|
|
|
2412
2441
|
children: [e.title && /* @__PURE__ */ y("h3", {
|
|
2413
2442
|
className: "form-section-title",
|
|
2414
2443
|
children: e.title
|
|
2415
|
-
}),
|
|
2416
|
-
}, t)) :
|
|
2444
|
+
}), oe(e.fields, ae && t === n.length - 1)]
|
|
2445
|
+
}, t)) : oe(t ?? [], ae), s]
|
|
2417
2446
|
}), /* @__PURE__ */ y("div", {
|
|
2418
2447
|
className: "d-flex justify-content-end form-footer",
|
|
2419
|
-
children: !
|
|
2448
|
+
children: !ae && z
|
|
2420
2449
|
})]
|
|
2421
2450
|
});
|
|
2422
|
-
}),
|
|
2451
|
+
}), Xr = ({ className: e, onClick: t, title: n, classIcon: r, sizeIcon: i, disabled: a = !1, id: s, dataForm: c, onChange: l }) => {
|
|
2423
2452
|
let d = h(null), [f, p] = g(!1), m = (e) => {
|
|
2424
2453
|
e.preventDefault(), p(!f), t && t(e);
|
|
2425
2454
|
}, _ = o((e) => {
|
|
@@ -2435,9 +2464,9 @@ var Fr = a(({ value: e = "", locale: t = "fr-FR", currency: n = "EUR", allowDeci
|
|
|
2435
2464
|
onClick: (e) => m(e),
|
|
2436
2465
|
className: ` ${e} button--filters button--transparent `,
|
|
2437
2466
|
children: [
|
|
2438
|
-
r && /* @__PURE__ */ y("span", { children: /* @__PURE__ */ y(
|
|
2467
|
+
r && /* @__PURE__ */ y("span", { children: /* @__PURE__ */ y(B, {
|
|
2439
2468
|
classIcon: r,
|
|
2440
|
-
size: i ||
|
|
2469
|
+
size: i || V.EXTRA_SMALL
|
|
2441
2470
|
}) }),
|
|
2442
2471
|
/* @__PURE__ */ y("span", {
|
|
2443
2472
|
className: " flex-1",
|
|
@@ -2448,7 +2477,7 @@ var Fr = a(({ value: e = "", locale: t = "fr-FR", currency: n = "EUR", allowDeci
|
|
|
2448
2477
|
onClick: (e) => e.stopPropagation(),
|
|
2449
2478
|
children: /* @__PURE__ */ y("div", {
|
|
2450
2479
|
className: "button--filters-overlay-content",
|
|
2451
|
-
children: /* @__PURE__ */ y(
|
|
2480
|
+
children: /* @__PURE__ */ y(Yr, {
|
|
2452
2481
|
onChange: l,
|
|
2453
2482
|
initialForm: c,
|
|
2454
2483
|
hideSubmit: !0
|
|
@@ -2457,7 +2486,7 @@ var Fr = a(({ value: e = "", locale: t = "fr-FR", currency: n = "EUR", allowDeci
|
|
|
2457
2486
|
})
|
|
2458
2487
|
]
|
|
2459
2488
|
}) });
|
|
2460
|
-
},
|
|
2489
|
+
}, Zr = ({ actions: e, openActions: t, item: n, positions: r, positionOverlay: i, setOpenActions: a }) => {
|
|
2461
2490
|
let s = h(null), [c, l] = g(i), d = h(null), [f, p] = g(t ?? !1);
|
|
2462
2491
|
u(() => {
|
|
2463
2492
|
t && p(t);
|
|
@@ -2476,10 +2505,10 @@ var Fr = a(({ value: e = "", locale: t = "fr-FR", currency: n = "EUR", allowDeci
|
|
|
2476
2505
|
id: t,
|
|
2477
2506
|
icon: e.icon,
|
|
2478
2507
|
name: e.label,
|
|
2479
|
-
children: /* @__PURE__ */ y(
|
|
2508
|
+
children: /* @__PURE__ */ y(ve, {
|
|
2480
2509
|
classIcon: e.icon,
|
|
2481
2510
|
disabled: n && e.disabled ? e.disabled(n) : !1,
|
|
2482
|
-
sizeIcon:
|
|
2511
|
+
sizeIcon: V.LARGE,
|
|
2483
2512
|
onClick: (t) => {
|
|
2484
2513
|
t.stopPropagation(), v(), e.onClick && n && e.onClick(n);
|
|
2485
2514
|
},
|
|
@@ -2497,11 +2526,11 @@ var Fr = a(({ value: e = "", locale: t = "fr-FR", currency: n = "EUR", allowDeci
|
|
|
2497
2526
|
ref: d,
|
|
2498
2527
|
className: `card-action ${e.filter((e) => e.type === "menu").length ? "visible" : "hidden"}`,
|
|
2499
2528
|
onClick: (e) => _(e, !f),
|
|
2500
|
-
children: [/* @__PURE__ */ y(
|
|
2501
|
-
size:
|
|
2529
|
+
children: [/* @__PURE__ */ y(B, {
|
|
2530
|
+
size: V.MEDIUM,
|
|
2502
2531
|
classIcon: "bi-three-dots-vertical cursor-pointer"
|
|
2503
|
-
}), /* @__PURE__ */ y(
|
|
2504
|
-
size:
|
|
2532
|
+
}), /* @__PURE__ */ y(B, {
|
|
2533
|
+
size: V.MEDIUM,
|
|
2505
2534
|
classIcon: "bi-three-dots cursor-pointer"
|
|
2506
2535
|
})]
|
|
2507
2536
|
}), f && d.current && /* @__PURE__ */ y(Er, {
|
|
@@ -2511,22 +2540,22 @@ var Fr = a(({ value: e = "", locale: t = "fr-FR", currency: n = "EUR", allowDeci
|
|
|
2511
2540
|
closeOverlay: v,
|
|
2512
2541
|
coordonnees: r,
|
|
2513
2542
|
referenceElement: d.current,
|
|
2514
|
-
children: /* @__PURE__ */ y("div", { children: /* @__PURE__ */ y(
|
|
2543
|
+
children: /* @__PURE__ */ y("div", { children: /* @__PURE__ */ y(H, {
|
|
2515
2544
|
className: "card-action-menu",
|
|
2516
2545
|
items: x
|
|
2517
2546
|
}) })
|
|
2518
2547
|
})]
|
|
2519
2548
|
});
|
|
2520
|
-
},
|
|
2549
|
+
}, Qr = ({ children: e }) => /* @__PURE__ */ y("div", {
|
|
2521
2550
|
className: "container",
|
|
2522
2551
|
children: e
|
|
2523
|
-
}),
|
|
2552
|
+
}), $r = ({ items: e, className: t, scroll: n, gap: r, responsive: i }) => /* @__PURE__ */ y(Qr, { children: /* @__PURE__ */ y(Wr, {
|
|
2524
2553
|
scroll: n,
|
|
2525
2554
|
className: t,
|
|
2526
2555
|
gap: r,
|
|
2527
2556
|
responsive: i,
|
|
2528
2557
|
children: e.map((e, t) => /* @__PURE__ */ y(Gr, { ...e }, t))
|
|
2529
|
-
}) }),
|
|
2558
|
+
}) }), ei = ({ item: e, actions: t, className: n, handleClick: r, onClose: i, customAction: a, positionOverlay: s, responsive: c = "app", children: l }) => {
|
|
2530
2559
|
let [u, d] = g(!1), [f, p] = g(!1), [h, _] = g(), x = (e, t) => {
|
|
2531
2560
|
e.stopPropagation(), i && i(t);
|
|
2532
2561
|
}, S = o((e, t) => {
|
|
@@ -2589,7 +2618,7 @@ var Fr = a(({ value: e = "", locale: t = "fr-FR", currency: n = "EUR", allowDeci
|
|
|
2589
2618
|
}),
|
|
2590
2619
|
w.length > 0 && /* @__PURE__ */ y("div", {
|
|
2591
2620
|
className: "card-footer",
|
|
2592
|
-
children: /* @__PURE__ */ y(
|
|
2621
|
+
children: /* @__PURE__ */ y($r, {
|
|
2593
2622
|
items: w,
|
|
2594
2623
|
responsive: c
|
|
2595
2624
|
})
|
|
@@ -2597,9 +2626,9 @@ var Fr = a(({ value: e = "", locale: t = "fr-FR", currency: n = "EUR", allowDeci
|
|
|
2597
2626
|
i && /* @__PURE__ */ y("div", {
|
|
2598
2627
|
className: "ml-2 cursor-pointer",
|
|
2599
2628
|
onClick: (t) => x(t, e),
|
|
2600
|
-
children: /* @__PURE__ */ y(
|
|
2629
|
+
children: /* @__PURE__ */ y(B, { classIcon: "bi-trash3" })
|
|
2601
2630
|
}),
|
|
2602
|
-
t && /* @__PURE__ */ y(
|
|
2631
|
+
t && /* @__PURE__ */ y(Zr, {
|
|
2603
2632
|
openActions: f,
|
|
2604
2633
|
setOpenActions: p,
|
|
2605
2634
|
actions: t,
|
|
@@ -2609,7 +2638,7 @@ var Fr = a(({ value: e = "", locale: t = "fr-FR", currency: n = "EUR", allowDeci
|
|
|
2609
2638
|
})
|
|
2610
2639
|
] })]
|
|
2611
2640
|
});
|
|
2612
|
-
},
|
|
2641
|
+
}, ti = ({ children: t, showControls: n = !0, itemsToScroll: r = 1, breakpoints: i = {
|
|
2613
2642
|
sm: 2,
|
|
2614
2643
|
md: 3,
|
|
2615
2644
|
lg: 4,
|
|
@@ -2637,7 +2666,7 @@ var Fr = a(({ value: e = "", locale: t = "fr-FR", currency: n = "EUR", allowDeci
|
|
|
2637
2666
|
n && !h && /* @__PURE__ */ y("div", {
|
|
2638
2667
|
className: `carousel-control prev ${a <= 0 && "disabled"}`,
|
|
2639
2668
|
onClick: p,
|
|
2640
|
-
children: /* @__PURE__ */ y(
|
|
2669
|
+
children: /* @__PURE__ */ y(B, { classIcon: "bi-chevron-left" })
|
|
2641
2670
|
}),
|
|
2642
2671
|
/* @__PURE__ */ y("div", {
|
|
2643
2672
|
className: "carousel-container",
|
|
@@ -2661,17 +2690,17 @@ var Fr = a(({ value: e = "", locale: t = "fr-FR", currency: n = "EUR", allowDeci
|
|
|
2661
2690
|
n && !h && /* @__PURE__ */ y("div", {
|
|
2662
2691
|
className: `carousel-control next ${m && "disabled"}`,
|
|
2663
2692
|
onClick: f,
|
|
2664
|
-
children: /* @__PURE__ */ y(
|
|
2693
|
+
children: /* @__PURE__ */ y(B, { classIcon: "bi-chevron-right" })
|
|
2665
2694
|
})
|
|
2666
2695
|
]
|
|
2667
2696
|
});
|
|
2668
|
-
},
|
|
2697
|
+
}, ni = ({ cell: e, onClick: t }) => /* @__PURE__ */ y("div", {
|
|
2669
2698
|
className: "cell",
|
|
2670
2699
|
onClick: () => {
|
|
2671
2700
|
t && t(e);
|
|
2672
2701
|
},
|
|
2673
|
-
children: e.child
|
|
2674
|
-
}),
|
|
2702
|
+
children: e.child ?? e.label
|
|
2703
|
+
}), ri = ({ cols: e, rows: t, damierCells: n = [], page: r = 1, onClick: i }) => {
|
|
2675
2704
|
let a = m(() => e ?? 9, [e]), o = m(() => Math.max(1, t ?? 9), [t]), [s, c] = g(1);
|
|
2676
2705
|
u(() => {
|
|
2677
2706
|
c(r);
|
|
@@ -2682,7 +2711,7 @@ var Fr = a(({ value: e = "", locale: t = "fr-FR", currency: n = "EUR", allowDeci
|
|
|
2682
2711
|
let r = [];
|
|
2683
2712
|
for (let e = 0; e < a; e++) {
|
|
2684
2713
|
let o = e + t * a, s = n?.find((e) => e.position === o + 1);
|
|
2685
|
-
s ? r.push(/* @__PURE__ */ y(
|
|
2714
|
+
s ? r.push(/* @__PURE__ */ y(ni, {
|
|
2686
2715
|
onClick: i,
|
|
2687
2716
|
cell: s
|
|
2688
2717
|
}, `${t}-${e}`)) : r.push(/* @__PURE__ */ y("div", { className: "cell cell--empty" }, `${t}-${e}`));
|
|
@@ -2696,14 +2725,16 @@ var Fr = a(({ value: e = "", locale: t = "fr-FR", currency: n = "EUR", allowDeci
|
|
|
2696
2725
|
}, [
|
|
2697
2726
|
a,
|
|
2698
2727
|
o,
|
|
2699
|
-
s
|
|
2728
|
+
s,
|
|
2729
|
+
n,
|
|
2730
|
+
i
|
|
2700
2731
|
]), d = m(() => ({ "--rows": String(o) }), [o]);
|
|
2701
2732
|
return /* @__PURE__ */ y("div", {
|
|
2702
2733
|
className: "damier",
|
|
2703
2734
|
style: d,
|
|
2704
2735
|
children: l
|
|
2705
2736
|
});
|
|
2706
|
-
},
|
|
2737
|
+
}, ii = ({ display: e, full: t, message: n }) => /* @__PURE__ */ b(v, { children: [e && !t && /* @__PURE__ */ b("div", {
|
|
2707
2738
|
className: "d-flex flex-column align-items-center",
|
|
2708
2739
|
children: [n && /* @__PURE__ */ y("span", {
|
|
2709
2740
|
className: "mb-3",
|
|
@@ -2727,32 +2758,32 @@ var Fr = a(({ value: e = "", locale: t = "fr-FR", currency: n = "EUR", allowDeci
|
|
|
2727
2758
|
}), document.body)] });
|
|
2728
2759
|
//#endregion
|
|
2729
2760
|
//#region src/dataTable/dataTable.utils.ts
|
|
2730
|
-
function
|
|
2731
|
-
return e.flatMap((e) => e.children?.length ?
|
|
2761
|
+
function ai(e) {
|
|
2762
|
+
return e.flatMap((e) => e.children?.length ? ai(e.children) : [e]);
|
|
2732
2763
|
}
|
|
2733
|
-
function
|
|
2764
|
+
function oi(e, t) {
|
|
2734
2765
|
return e == null ? void 0 : Reflect.get(Object(e), t.id);
|
|
2735
2766
|
}
|
|
2736
|
-
function
|
|
2767
|
+
function si(e) {
|
|
2737
2768
|
return e.name ?? e.id;
|
|
2738
2769
|
}
|
|
2739
|
-
function
|
|
2770
|
+
function ci(e) {
|
|
2740
2771
|
return e.display === "menu";
|
|
2741
2772
|
}
|
|
2742
|
-
function
|
|
2773
|
+
function li(e, t) {
|
|
2743
2774
|
return e.visible !== !1 && (!e.shouldDisplay || e.shouldDisplay(t));
|
|
2744
2775
|
}
|
|
2745
|
-
function
|
|
2776
|
+
function ui(e, t) {
|
|
2746
2777
|
if (t !== void 0) return t;
|
|
2747
|
-
let n = e.filter((e) => !
|
|
2778
|
+
let n = e.filter((e) => !ci(e)), r = n.length < e.length ? 40 : 0;
|
|
2748
2779
|
return n.length === 0 && r > 0 ? r : n.some((e) => typeof e.width == "number") ? n.reduce((e, t) => e + (typeof t.width == "number" ? t.width : 0), r) : 200;
|
|
2749
2780
|
}
|
|
2750
|
-
function
|
|
2751
|
-
let r = t.find((e) =>
|
|
2781
|
+
function di(e, t, n) {
|
|
2782
|
+
let r = t.find((e) => si(e) === n?.key);
|
|
2752
2783
|
if (!n || !r) return e;
|
|
2753
2784
|
let i = n.direction === "asc" ? 1 : -1;
|
|
2754
2785
|
return [...e].sort((e, t) => {
|
|
2755
|
-
let n =
|
|
2786
|
+
let n = oi(e, r), a = oi(t, r);
|
|
2756
2787
|
if (n == null || a == null) return i * (n == null ? a == null ? 0 : 1 : -1);
|
|
2757
2788
|
if (typeof n == "number" && typeof a == "number") return i * (n - a);
|
|
2758
2789
|
if (typeof n == "boolean" && typeof a == "boolean") return i * (Number(n) - Number(a));
|
|
@@ -2768,9 +2799,9 @@ function ui(e, t, n) {
|
|
|
2768
2799
|
}
|
|
2769
2800
|
//#endregion
|
|
2770
2801
|
//#region src/dataTable/dataTableActions/DataTableAction.tsx
|
|
2771
|
-
var
|
|
2802
|
+
var fi = ({ action: e, row: t, rowIndex: n, index: r, onFocusNextRow: i }) => {
|
|
2772
2803
|
let a = e.label;
|
|
2773
|
-
if (!
|
|
2804
|
+
if (!li(e, t)) return null;
|
|
2774
2805
|
e.labelButton && (a = e.labelButton ? e.labelButton(t) : e.label);
|
|
2775
2806
|
let o = {
|
|
2776
2807
|
minWidth: e.minWidth,
|
|
@@ -2781,7 +2812,7 @@ var di = ({ action: e, row: t, rowIndex: n, index: r, onFocusNextRow: i }) => {
|
|
|
2781
2812
|
r?.stopPropagation(), !e.disabled && (e.onClick(t, n), e.focusNextRow && n !== void 0 && i?.(n));
|
|
2782
2813
|
};
|
|
2783
2814
|
return /* @__PURE__ */ b(v, { children: [
|
|
2784
|
-
e.type === "button" && /* @__PURE__ */ y(
|
|
2815
|
+
e.type === "button" && /* @__PURE__ */ y(ve, {
|
|
2785
2816
|
title: a,
|
|
2786
2817
|
onClick: s,
|
|
2787
2818
|
disabled: e.disabled,
|
|
@@ -2799,7 +2830,7 @@ var di = ({ action: e, row: t, rowIndex: n, index: r, onFocusNextRow: i }) => {
|
|
|
2799
2830
|
},
|
|
2800
2831
|
onClick: s,
|
|
2801
2832
|
style: o,
|
|
2802
|
-
children: /* @__PURE__ */ y(
|
|
2833
|
+
children: /* @__PURE__ */ y(B, { classIcon: e.classIcon ?? "" }, e.id)
|
|
2803
2834
|
}, `icon-action-${e.id}-${r}`),
|
|
2804
2835
|
e.type === "link" && /* @__PURE__ */ y("button", {
|
|
2805
2836
|
type: "button",
|
|
@@ -2810,15 +2841,15 @@ var di = ({ action: e, row: t, rowIndex: n, index: r, onFocusNextRow: i }) => {
|
|
|
2810
2841
|
children: a
|
|
2811
2842
|
})
|
|
2812
2843
|
] });
|
|
2813
|
-
},
|
|
2814
|
-
let i = h(null), [a, o] = g(!1), s = e.filter((e) =>
|
|
2844
|
+
}, pi = ({ actions: e, row: t, rowIndex: n, onFocusNextRow: r }) => {
|
|
2845
|
+
let i = h(null), [a, o] = g(!1), s = e.filter((e) => li(e, t)), c = m(() => s.map((e, i) => ({
|
|
2815
2846
|
id: i,
|
|
2816
2847
|
icon: e.classIcon,
|
|
2817
2848
|
name: e.label,
|
|
2818
2849
|
disabled: e.disabled,
|
|
2819
|
-
children: /* @__PURE__ */ y(
|
|
2850
|
+
children: /* @__PURE__ */ y(ve, {
|
|
2820
2851
|
classIcon: e.classIcon,
|
|
2821
|
-
sizeIcon:
|
|
2852
|
+
sizeIcon: V.LARGE,
|
|
2822
2853
|
disabled: e.disabled,
|
|
2823
2854
|
title: e.labelButton ? e.labelButton(t) : e.label,
|
|
2824
2855
|
onClick: (i) => {
|
|
@@ -2845,8 +2876,8 @@ var di = ({ action: e, row: t, rowIndex: n, index: r, onFocusNextRow: i }) => {
|
|
|
2845
2876
|
onKeyDown: (e) => {
|
|
2846
2877
|
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), e.stopPropagation(), o(!a));
|
|
2847
2878
|
},
|
|
2848
|
-
children: /* @__PURE__ */ y(
|
|
2849
|
-
size:
|
|
2879
|
+
children: /* @__PURE__ */ y(B, {
|
|
2880
|
+
size: V.MEDIUM,
|
|
2850
2881
|
classIcon: "bi-three-dots-vertical"
|
|
2851
2882
|
})
|
|
2852
2883
|
}), a && i.current && /* @__PURE__ */ y(Er, {
|
|
@@ -2854,24 +2885,24 @@ var di = ({ action: e, row: t, rowIndex: n, index: r, onFocusNextRow: i }) => {
|
|
|
2854
2885
|
position: "bottomRight",
|
|
2855
2886
|
referenceElement: i.current,
|
|
2856
2887
|
closeOverlay: () => o(!1),
|
|
2857
|
-
children: /* @__PURE__ */ y(
|
|
2888
|
+
children: /* @__PURE__ */ y(H, {
|
|
2858
2889
|
className: "data-table-action-menu",
|
|
2859
2890
|
items: c
|
|
2860
2891
|
})
|
|
2861
2892
|
})] });
|
|
2862
|
-
},
|
|
2893
|
+
}, mi = ({ className: e, column: t, isFilterVisible: n = !1, onToggleVisibility: r }) => /* @__PURE__ */ y("div", {
|
|
2863
2894
|
className: `data-table-column-filter ${n ? "active" : ""} ${e ?? ""}`,
|
|
2864
|
-
children: /* @__PURE__ */ y("span", { children: /* @__PURE__ */ y(
|
|
2895
|
+
children: /* @__PURE__ */ y("span", { children: /* @__PURE__ */ y(B, {
|
|
2865
2896
|
onClick: (e) => {
|
|
2866
2897
|
e.stopPropagation(), r?.(t);
|
|
2867
2898
|
},
|
|
2868
2899
|
classIcon: `bi-filter cursor-pointer ${n ? "data-table-column-filter-active" : ""}`
|
|
2869
2900
|
}) })
|
|
2870
|
-
}),
|
|
2901
|
+
}), hi = ({ className: e, column: t, sortDirection: n, onToggleSort: r }) => {
|
|
2871
2902
|
let i = n === "asc" ? "bi-sort-up" : n === "desc" ? "bi-sort-down" : "bi-arrow-down-up";
|
|
2872
2903
|
return /* @__PURE__ */ y("div", {
|
|
2873
2904
|
className: `data-table-column-sort ${n ? "active" : ""} ${e ?? ""}`,
|
|
2874
|
-
children: /* @__PURE__ */ y("span", { children: /* @__PURE__ */ y(
|
|
2905
|
+
children: /* @__PURE__ */ y("span", { children: /* @__PURE__ */ y(B, {
|
|
2875
2906
|
onClick: (e) => {
|
|
2876
2907
|
e.stopPropagation(), r?.(t);
|
|
2877
2908
|
},
|
|
@@ -2881,7 +2912,7 @@ var di = ({ action: e, row: t, rowIndex: n, index: r, onFocusNextRow: i }) => {
|
|
|
2881
2912
|
};
|
|
2882
2913
|
//#endregion
|
|
2883
2914
|
//#region src/dataTable/dataTableColumn/DataTableColumn.tsx
|
|
2884
|
-
function
|
|
2915
|
+
function gi({ anchor: e, label: t, children: n }) {
|
|
2885
2916
|
let [r, i] = g();
|
|
2886
2917
|
return p(() => {
|
|
2887
2918
|
let t = () => {
|
|
@@ -2911,7 +2942,7 @@ function hi({ anchor: e, label: t, children: n }) {
|
|
|
2911
2942
|
children: n
|
|
2912
2943
|
}), document.body) : null;
|
|
2913
2944
|
}
|
|
2914
|
-
var
|
|
2945
|
+
var _i = ({ column: e, idx: t, onColumnClick: n, isFilterVisible: r, onToggleFilter: i, onToggleSort: a, sortDirection: o, stickyLeft: s, stickyTop: c = 0, filterControl: l }) => {
|
|
2915
2946
|
let u = h(null);
|
|
2916
2947
|
return /* @__PURE__ */ b("th", {
|
|
2917
2948
|
ref: u,
|
|
@@ -2936,32 +2967,32 @@ var gi = ({ column: e, idx: t, onColumnClick: n, isFilterVisible: r, onToggleFil
|
|
|
2936
2967
|
className: "flex-1",
|
|
2937
2968
|
children: e.label
|
|
2938
2969
|
}),
|
|
2939
|
-
e.filterable && /* @__PURE__ */ y(
|
|
2970
|
+
e.filterable && /* @__PURE__ */ y(mi, {
|
|
2940
2971
|
column: e,
|
|
2941
2972
|
isFilterVisible: r,
|
|
2942
2973
|
onToggleVisibility: i
|
|
2943
2974
|
}),
|
|
2944
|
-
e.sortable && /* @__PURE__ */ y(
|
|
2975
|
+
e.sortable && /* @__PURE__ */ y(hi, {
|
|
2945
2976
|
column: e,
|
|
2946
2977
|
sortDirection: o,
|
|
2947
2978
|
onToggleSort: a
|
|
2948
2979
|
})
|
|
2949
2980
|
]
|
|
2950
|
-
}), r && l && u.current && /* @__PURE__ */ y(
|
|
2981
|
+
}), r && l && u.current && /* @__PURE__ */ y(gi, {
|
|
2951
2982
|
anchor: u.current,
|
|
2952
2983
|
label: e.label,
|
|
2953
2984
|
children: l
|
|
2954
2985
|
})]
|
|
2955
2986
|
}, `colonne-${e.id}-${t}`);
|
|
2956
|
-
},
|
|
2987
|
+
}, vi = ({ columns: e, actions: t, emptyMessage: n, hasSelection: r = !1 }) => /* @__PURE__ */ y("tr", { children: /* @__PURE__ */ y("td", {
|
|
2957
2988
|
align: "center",
|
|
2958
2989
|
colSpan: e.length + +(t.length > 0) + +!!r,
|
|
2959
2990
|
children: /* @__PURE__ */ y("div", {
|
|
2960
2991
|
className: "mt-3",
|
|
2961
2992
|
children: n || "Aucune donnée disponible"
|
|
2962
2993
|
})
|
|
2963
|
-
}) }),
|
|
2964
|
-
let c =
|
|
2994
|
+
}) }), yi = ({ column: e, idx: t, rowIndex: n, row: r, container: i = "cell", stickyLeft: a, onEnterNextColumn: o, onEditColumnByOverlay: s }) => {
|
|
2995
|
+
let c = oi(r, e), l = c == null ? "" : String(c), [d, f] = g(l), [p, m] = g(!1), [_, v] = g(l), x = h(null), S = h(null), C = h(!1), w = e.onDisable?.(r) ?? !1, T = e.onEditable?.(c, r) ?? e.editable ?? !1, E = e.onEditTrigger === "enter", D = e.alignText ?? e.align ?? "left";
|
|
2965
2996
|
u(() => {
|
|
2966
2997
|
f(l);
|
|
2967
2998
|
}, [l]), u(() => {
|
|
@@ -3051,7 +3082,7 @@ var gi = ({ column: e, idx: t, onColumnClick: n, isFilterVisible: r, onToggleFil
|
|
|
3051
3082
|
src: e.imageSrc?.(r) ?? "",
|
|
3052
3083
|
alt: e.imageAlt?.(r) ?? "",
|
|
3053
3084
|
style: e.imageStyle
|
|
3054
|
-
}) : /* @__PURE__ */ y(
|
|
3085
|
+
}) : /* @__PURE__ */ y(B, { classIcon: "bi-image" }) : T ? O ? /* @__PURE__ */ b("div", {
|
|
3055
3086
|
className: "data-table-input-number-wrapper",
|
|
3056
3087
|
onClick: (e) => e.stopPropagation(),
|
|
3057
3088
|
children: [
|
|
@@ -3060,7 +3091,7 @@ var gi = ({ column: e, idx: t, onColumnClick: n, isFilterVisible: r, onToggleFil
|
|
|
3060
3091
|
className: "data-table-step-btn data-table-step-btn--minus",
|
|
3061
3092
|
disabled: w || e.min !== void 0 && Number(c) <= e.min,
|
|
3062
3093
|
onClick: () => A(-1),
|
|
3063
|
-
children: /* @__PURE__ */ y(
|
|
3094
|
+
children: /* @__PURE__ */ y(B, { classIcon: "bi-dash-lg" })
|
|
3064
3095
|
}),
|
|
3065
3096
|
M,
|
|
3066
3097
|
/* @__PURE__ */ y("button", {
|
|
@@ -3068,7 +3099,7 @@ var gi = ({ column: e, idx: t, onColumnClick: n, isFilterVisible: r, onToggleFil
|
|
|
3068
3099
|
className: "data-table-step-btn data-table-step-btn--plus",
|
|
3069
3100
|
disabled: w || e.max !== void 0 && Number(c) >= e.max,
|
|
3070
3101
|
onClick: () => A(1),
|
|
3071
|
-
children: /* @__PURE__ */ y(
|
|
3102
|
+
children: /* @__PURE__ */ y(B, { classIcon: "bi-plus-lg" })
|
|
3072
3103
|
})
|
|
3073
3104
|
]
|
|
3074
3105
|
}) : M : e.format ? e.format(c) : l, p && !w && x.current && /* @__PURE__ */ y(Er, {
|
|
@@ -3101,7 +3132,7 @@ var gi = ({ column: e, idx: t, onColumnClick: n, isFilterVisible: r, onToggleFil
|
|
|
3101
3132
|
})
|
|
3102
3133
|
})]
|
|
3103
3134
|
});
|
|
3104
|
-
},
|
|
3135
|
+
}, bi = ({ currentFilters: e, setCurrentFilters: t }) => {
|
|
3105
3136
|
let n = (e) => typeof e == "object" && !!e && "startDate" in e && "endDate" in e, r = (e) => n(e) ? e.startDate && e.endDate ? `${e.startDate} - ${e.endDate}` : e.startDate ? `a partir de ${e.startDate}` : e.endDate ? `jusqu'au ${e.endDate}` : "" : String(e ?? ""), i = (e) => {
|
|
3106
3137
|
let t = 0;
|
|
3107
3138
|
for (let n = 0; n < e.length; n++) t = e.charCodeAt(n) + ((t << 5) - t);
|
|
@@ -3116,18 +3147,18 @@ var gi = ({ column: e, idx: t, onColumnClick: n, isFilterVisible: r, onToggleFil
|
|
|
3116
3147
|
className: "badge-filters",
|
|
3117
3148
|
children: [Object.keys(e).map((t) => {
|
|
3118
3149
|
let n = r(e[t]), o = n.length > 20 ? n.substring(0, 20) + "..." : n;
|
|
3119
|
-
return /* @__PURE__ */ y(
|
|
3150
|
+
return /* @__PURE__ */ y(fe, {
|
|
3120
3151
|
onRemove: () => a(t),
|
|
3121
3152
|
className: "mr-2",
|
|
3122
3153
|
title: `${t} : ${o}`,
|
|
3123
3154
|
color: i(t)
|
|
3124
3155
|
}, t);
|
|
3125
|
-
}), /* @__PURE__ */ y(
|
|
3156
|
+
}), /* @__PURE__ */ y(B, {
|
|
3126
3157
|
classIcon: "bi-x badge-filters-clear",
|
|
3127
3158
|
onClick: () => t({})
|
|
3128
3159
|
})]
|
|
3129
3160
|
});
|
|
3130
|
-
},
|
|
3161
|
+
}, xi = ({ id: e, name: t, onChange: n, currentStartValue: r, currentEndValue: i }) => {
|
|
3131
3162
|
let [a, o] = g(r ?? ""), [s, c] = g(i ?? "");
|
|
3132
3163
|
u(() => {
|
|
3133
3164
|
o(r ?? "");
|
|
@@ -3178,7 +3209,7 @@ var gi = ({ column: e, idx: t, onColumnClick: n, isFilterVisible: r, onToggleFil
|
|
|
3178
3209
|
};
|
|
3179
3210
|
//#endregion
|
|
3180
3211
|
//#region src/dataTable/useDataTableState.tsx
|
|
3181
|
-
function
|
|
3212
|
+
function Si(e, t, n, r, i) {
|
|
3182
3213
|
let [a, o] = g({}), [s, c] = g(/* @__PURE__ */ new Set()), [d, f] = g(null), [p, _] = g(null), v = l(a), b = h({
|
|
3183
3214
|
onFiltersChange: r,
|
|
3184
3215
|
onSortChange: i
|
|
@@ -3193,20 +3224,20 @@ function xi(e, t, n, r, i) {
|
|
|
3193
3224
|
}, [v]), u(() => {
|
|
3194
3225
|
b.current.onSortChange?.(d);
|
|
3195
3226
|
}, [d]);
|
|
3196
|
-
let x = m(() =>
|
|
3227
|
+
let x = m(() => ai(t), [t]), S = m(() => di(n, x, d), [
|
|
3197
3228
|
n,
|
|
3198
3229
|
x,
|
|
3199
3230
|
d
|
|
3200
3231
|
]);
|
|
3201
3232
|
function C(e) {
|
|
3202
|
-
let t =
|
|
3233
|
+
let t = si(e);
|
|
3203
3234
|
_(s.has(t) ? null : t), c((e) => {
|
|
3204
3235
|
let n = new Set(e);
|
|
3205
3236
|
return n.has(t) ? n.delete(t) : n.add(t), n;
|
|
3206
3237
|
});
|
|
3207
3238
|
}
|
|
3208
3239
|
function w(e) {
|
|
3209
|
-
let t =
|
|
3240
|
+
let t = si(e);
|
|
3210
3241
|
f((e) => e?.key === t ? e.direction === "asc" ? {
|
|
3211
3242
|
key: t,
|
|
3212
3243
|
direction: "desc"
|
|
@@ -3236,13 +3267,13 @@ function xi(e, t, n, r, i) {
|
|
|
3236
3267
|
});
|
|
3237
3268
|
}
|
|
3238
3269
|
function D(t) {
|
|
3239
|
-
let n =
|
|
3270
|
+
let n = si(t);
|
|
3240
3271
|
if (!t.filterable || !s.has(n)) return null;
|
|
3241
3272
|
let r = a[n], i = typeof r == "object" && r && "startDate" in r ? r : {
|
|
3242
3273
|
startDate: "",
|
|
3243
3274
|
endDate: ""
|
|
3244
3275
|
}, o = `${e}-filter-${t.id}`;
|
|
3245
|
-
return t.filterType === Z.DATERANGE ? /* @__PURE__ */ y(
|
|
3276
|
+
return t.filterType === Z.DATERANGE ? /* @__PURE__ */ y(xi, {
|
|
3246
3277
|
id: o,
|
|
3247
3278
|
name: o,
|
|
3248
3279
|
currentStartValue: i.startDate,
|
|
@@ -3290,8 +3321,8 @@ function xi(e, t, n, r, i) {
|
|
|
3290
3321
|
}
|
|
3291
3322
|
//#endregion
|
|
3292
3323
|
//#region src/dataTable/DataTable.tsx
|
|
3293
|
-
function
|
|
3294
|
-
let { id: t, name: n, className: r, children: i, element: a, data: s = [], actionsColumnWidth: c, actions: l = [], footerAction: d, columns: f = [], loading: _, onRowClick: x, onColumnClick: C, onLoadMore: w, emptyMessage: T, hasMore: E, onSelectionChange: D, autoFocusFirstEditable: O = !1, hideToggleAll: k = !1, limitSelect: A = void 0, getRowId: j, onRowStyle: M, onRowClassName: N, rowStyle: ee, rowClassName: P, mobileCardView: te = !1, onFiltersChange: F, onSortChange: ne, onEditColumnByOverlay: re } = e, I =
|
|
3324
|
+
function Ci(e) {
|
|
3325
|
+
let { id: t, name: n, className: r, children: i, element: a, data: s = [], actionsColumnWidth: c, actions: l = [], footerAction: d, columns: f = [], loading: _, onRowClick: x, onColumnClick: C, onLoadMore: w, emptyMessage: T, hasMore: E, onSelectionChange: D, autoFocusFirstEditable: O = !1, hideToggleAll: k = !1, limitSelect: A = void 0, getRowId: j, onRowStyle: M, onRowClassName: N, rowStyle: ee, rowClassName: P, mobileCardView: te = !1, onFiltersChange: F, onSortChange: ne, onEditColumnByOverlay: re } = e, I = Si(t, f, s, F, ne), { flatColumns: L, sortedData: R } = I, z = ui(l, c), ae = m(() => l.filter((e) => !ci(e)), [l]), oe = m(() => l.filter(ci), [l]), se = h(null), [ce, le] = g(0), ue = f.some((e) => e.children?.length), de = m(() => {
|
|
3295
3326
|
let e = /* @__PURE__ */ new Map(), t = D ? 40 : 0;
|
|
3296
3327
|
return L.forEach((n) => {
|
|
3297
3328
|
if (!n.sticky) return;
|
|
@@ -3302,37 +3333,37 @@ function Si(e) {
|
|
|
3302
3333
|
}, [L, D]);
|
|
3303
3334
|
p(() => {
|
|
3304
3335
|
let e = () => {
|
|
3305
|
-
|
|
3336
|
+
le(se.current?.getBoundingClientRect().height ?? 0);
|
|
3306
3337
|
};
|
|
3307
3338
|
if (e(), typeof ResizeObserver > "u") return window.addEventListener("resize", e), () => window.removeEventListener("resize", e);
|
|
3308
3339
|
let t = new ResizeObserver(e);
|
|
3309
|
-
return
|
|
3310
|
-
}, [
|
|
3311
|
-
let
|
|
3340
|
+
return se.current && t.observe(se.current), () => t.disconnect();
|
|
3341
|
+
}, [ue, f]);
|
|
3342
|
+
let fe = ie(), V = te && fe, pe = h(null), me = h(null), he = h(!1), [ge, _e] = g(!1), [ve, ye] = g(0), [H, be] = g(/* @__PURE__ */ new Set()), xe = o((e) => {
|
|
3312
3343
|
e && (e.scrollIntoView({
|
|
3313
3344
|
block: "nearest",
|
|
3314
3345
|
inline: "nearest"
|
|
3315
3346
|
}), requestAnimationFrame(() => {
|
|
3316
3347
|
e.focus(), (e instanceof HTMLInputElement || e instanceof HTMLTextAreaElement) && e.select();
|
|
3317
3348
|
}));
|
|
3318
|
-
}, []),
|
|
3349
|
+
}, []), Se = o((e) => {
|
|
3319
3350
|
let t = e instanceof Element ? e : e instanceof Node ? e.parentElement : null;
|
|
3320
3351
|
return t ? !!t.closest("input,button,a,select,textarea,label,option,[role='button'],[role='checkbox'],[role='option'],[contenteditable='true'],[data-stop-row-click='true']") : !1;
|
|
3321
|
-
}, []),
|
|
3322
|
-
if (
|
|
3352
|
+
}, []), Ce = o(() => {
|
|
3353
|
+
if (H.size === R.length) be(/* @__PURE__ */ new Set()), D?.([]), _e(!1);
|
|
3323
3354
|
else {
|
|
3324
3355
|
let e = R.map((e) => j ? j(e) : e.id ?? e);
|
|
3325
3356
|
A && e.length > A && (e = e.slice(0, A));
|
|
3326
3357
|
let t = new Set(e);
|
|
3327
|
-
|
|
3358
|
+
be(t), _e(!0), D?.(R.filter((e) => t.has(j ? j(e) : e.id ?? e)));
|
|
3328
3359
|
}
|
|
3329
3360
|
}, [
|
|
3330
3361
|
R,
|
|
3331
3362
|
D,
|
|
3332
3363
|
A,
|
|
3333
3364
|
j,
|
|
3334
|
-
|
|
3335
|
-
]),
|
|
3365
|
+
H.size
|
|
3366
|
+
]), U = o((e, n) => {
|
|
3336
3367
|
if (typeof document > "u") return;
|
|
3337
3368
|
let r = document.getElementById(`${t}-mobile`) ?? document.getElementById(t), i = L.reduce((e, t, n) => (t.editable && t.enterToNextColumn && t.type !== "select" && t.type !== "image" && e.push(n), e), []);
|
|
3338
3369
|
if (!r || i.length === 0 || i.indexOf(e) === -1) return;
|
|
@@ -3351,13 +3382,13 @@ function Si(e) {
|
|
|
3351
3382
|
break;
|
|
3352
3383
|
}
|
|
3353
3384
|
}
|
|
3354
|
-
s &&
|
|
3385
|
+
s && xe(s);
|
|
3355
3386
|
}, [
|
|
3356
3387
|
L,
|
|
3357
3388
|
R,
|
|
3358
|
-
|
|
3389
|
+
xe,
|
|
3359
3390
|
t
|
|
3360
|
-
]),
|
|
3391
|
+
]), we = o((e) => {
|
|
3361
3392
|
if (typeof document > "u") return;
|
|
3362
3393
|
let n = document.getElementById(`${t}-mobile`) ?? document.getElementById(t);
|
|
3363
3394
|
if (!n) return;
|
|
@@ -3373,23 +3404,23 @@ function Si(e) {
|
|
|
3373
3404
|
break;
|
|
3374
3405
|
}
|
|
3375
3406
|
}
|
|
3376
|
-
a &&
|
|
3407
|
+
a && xe(a);
|
|
3377
3408
|
}, [
|
|
3378
3409
|
L,
|
|
3379
3410
|
R.length,
|
|
3380
|
-
|
|
3411
|
+
xe,
|
|
3381
3412
|
t
|
|
3382
|
-
]),
|
|
3383
|
-
e.stopPropagation(), !
|
|
3384
|
-
}, [
|
|
3413
|
+
]), Te = o((e, t) => {
|
|
3414
|
+
e.stopPropagation(), !Se(e.target) && (typeof window < "u" && window.getSelection?.()?.toString().trim() || x && x?.(t));
|
|
3415
|
+
}, [Se, x]), Ee = o((e, t) => {
|
|
3385
3416
|
e.stopPropagation();
|
|
3386
|
-
let n = j ? j(t) : t.id ?? t, r = new Set(
|
|
3417
|
+
let n = j ? j(t) : t.id ?? t, r = new Set(H);
|
|
3387
3418
|
if (r.has(n)) r.delete(n);
|
|
3388
3419
|
else {
|
|
3389
3420
|
if (A && r.size >= A) return;
|
|
3390
3421
|
r.add(n);
|
|
3391
3422
|
}
|
|
3392
|
-
|
|
3423
|
+
be(r), _e(r.size > 0);
|
|
3393
3424
|
let i = R.filter((e) => r.has(j ? j(e) : e.id ?? e));
|
|
3394
3425
|
D?.(i);
|
|
3395
3426
|
}, [
|
|
@@ -3397,39 +3428,39 @@ function Si(e) {
|
|
|
3397
3428
|
j,
|
|
3398
3429
|
A,
|
|
3399
3430
|
D,
|
|
3400
|
-
|
|
3401
|
-
]),
|
|
3402
|
-
|
|
3403
|
-
}, []),
|
|
3431
|
+
H
|
|
3432
|
+
]), De = !!(d && ge), Oe = o(() => {
|
|
3433
|
+
_e(!1);
|
|
3434
|
+
}, []), W = R.filter((e) => H.has(j ? j(e) : e.id ?? e));
|
|
3404
3435
|
return u(() => {
|
|
3405
3436
|
if (_ || !O || R.length === 0) {
|
|
3406
|
-
|
|
3437
|
+
he.current = !1;
|
|
3407
3438
|
return;
|
|
3408
3439
|
}
|
|
3409
|
-
if (
|
|
3440
|
+
if (he.current) return;
|
|
3410
3441
|
let e = L.findIndex((e) => e.editable && e.enterToNextColumn && e.type !== "select" && e.type !== "image");
|
|
3411
3442
|
if (e === -1) return;
|
|
3412
3443
|
let n = (document.getElementById(`${t}-mobile`) ?? document.getElementById(t))?.querySelector(`[data-row-index="0"][data-column-index="${e}"]`);
|
|
3413
3444
|
if (!(n instanceof HTMLElement)) return;
|
|
3414
3445
|
let r = n.querySelector("input:not([disabled]), textarea:not([disabled]), [contenteditable=\"true\"]");
|
|
3415
|
-
r && (
|
|
3446
|
+
r && (he.current = !0, xe(r));
|
|
3416
3447
|
}, [
|
|
3417
3448
|
O,
|
|
3418
3449
|
L,
|
|
3419
3450
|
R.length,
|
|
3420
|
-
|
|
3451
|
+
xe,
|
|
3421
3452
|
t,
|
|
3422
3453
|
_
|
|
3423
3454
|
]), u(() => {
|
|
3424
|
-
if (!
|
|
3425
|
-
|
|
3455
|
+
if (!De) {
|
|
3456
|
+
ye(0);
|
|
3426
3457
|
return;
|
|
3427
3458
|
}
|
|
3428
|
-
let e =
|
|
3459
|
+
let e = me.current;
|
|
3429
3460
|
if (!e) return;
|
|
3430
3461
|
let t = () => {
|
|
3431
3462
|
let { height: t } = e.getBoundingClientRect();
|
|
3432
|
-
|
|
3463
|
+
ye(Math.ceil(t) + 16);
|
|
3433
3464
|
};
|
|
3434
3465
|
if (t(), typeof ResizeObserver > "u") return;
|
|
3435
3466
|
let n = new ResizeObserver(() => {
|
|
@@ -3438,7 +3469,7 @@ function Si(e) {
|
|
|
3438
3469
|
return n.observe(e), () => {
|
|
3439
3470
|
n.disconnect();
|
|
3440
3471
|
};
|
|
3441
|
-
}, [
|
|
3472
|
+
}, [De]), u(() => {
|
|
3442
3473
|
if (!w || !E) return;
|
|
3443
3474
|
let e = new IntersectionObserver((e) => {
|
|
3444
3475
|
e[0].isIntersecting && w();
|
|
@@ -3447,25 +3478,25 @@ function Si(e) {
|
|
|
3447
3478
|
rootMargin: "0px",
|
|
3448
3479
|
threshold: 1
|
|
3449
3480
|
});
|
|
3450
|
-
return
|
|
3451
|
-
|
|
3481
|
+
return pe.current && e.observe(pe.current), () => {
|
|
3482
|
+
pe.current && e.unobserve(pe.current);
|
|
3452
3483
|
};
|
|
3453
3484
|
}, [w, E]), /* @__PURE__ */ b("div", {
|
|
3454
|
-
className: `data-table-container ${
|
|
3455
|
-
style:
|
|
3485
|
+
className: `data-table-container ${De ? "data-table-container--with-footer-action" : ""}`,
|
|
3486
|
+
style: De ? { paddingBottom: `${ve}px` } : void 0,
|
|
3456
3487
|
children: [
|
|
3457
3488
|
n && /* @__PURE__ */ y("h2", {
|
|
3458
3489
|
className: "mb-2",
|
|
3459
3490
|
children: n
|
|
3460
3491
|
}),
|
|
3461
3492
|
a,
|
|
3462
|
-
/* @__PURE__ */ y(
|
|
3493
|
+
/* @__PURE__ */ y(bi, {
|
|
3463
3494
|
currentFilters: I.filters,
|
|
3464
3495
|
setCurrentFilters: I.setFilters
|
|
3465
3496
|
}),
|
|
3466
|
-
|
|
3497
|
+
V && L.some((e) => e.filterable) && /* @__PURE__ */ y("div", {
|
|
3467
3498
|
className: "data-table-mobile-controls",
|
|
3468
|
-
children: L.filter((e) => e.filterable
|
|
3499
|
+
children: L.filter((e) => e.filterable).map((e, t) => /* @__PURE__ */ y("div", { children: /* @__PURE__ */ y("table", { children: /* @__PURE__ */ y("thead", { children: /* @__PURE__ */ y("tr", { children: /* @__PURE__ */ y(_i, {
|
|
3469
3500
|
column: e,
|
|
3470
3501
|
idx: t,
|
|
3471
3502
|
isFilterVisible: I.visibleFilters.has(e.name ?? e.id),
|
|
@@ -3475,14 +3506,14 @@ function Si(e) {
|
|
|
3475
3506
|
filterControl: I.renderFilter(e)
|
|
3476
3507
|
}) }) }) }) }, e.id))
|
|
3477
3508
|
}),
|
|
3478
|
-
|
|
3509
|
+
V && /* @__PURE__ */ b("div", {
|
|
3479
3510
|
id: `${t}-mobile`,
|
|
3480
3511
|
className: `data-table-mobile-cards ${r || ""}`,
|
|
3481
3512
|
children: [
|
|
3482
|
-
_ && /* @__PURE__ */ y(
|
|
3513
|
+
_ && /* @__PURE__ */ y(ii, { display: _ }),
|
|
3483
3514
|
!_ && R.map((e, t) => {
|
|
3484
3515
|
let n = (M ?? ee)?.(e), r = (N ?? P)?.(e) ?? "", i = j ? j(e) : e.id ?? e;
|
|
3485
|
-
return /* @__PURE__ */ y(
|
|
3516
|
+
return /* @__PURE__ */ y(ei, {
|
|
3486
3517
|
item: { title: "" },
|
|
3487
3518
|
className: `data-table-mobile-card ${r}`.trim(),
|
|
3488
3519
|
handleClick: x ? () => x(e) : void 0,
|
|
@@ -3491,7 +3522,7 @@ function Si(e) {
|
|
|
3491
3522
|
style: n,
|
|
3492
3523
|
"data-row-index": t,
|
|
3493
3524
|
onMouseDown: (e) => {
|
|
3494
|
-
|
|
3525
|
+
Se(e.target) && e.stopPropagation();
|
|
3495
3526
|
},
|
|
3496
3527
|
children: [
|
|
3497
3528
|
D && /* @__PURE__ */ b("div", {
|
|
@@ -3503,9 +3534,9 @@ function Si(e) {
|
|
|
3503
3534
|
id: `select-card-${t}`,
|
|
3504
3535
|
name: `select-card-${t}`,
|
|
3505
3536
|
type: Z.CHECKBOX,
|
|
3506
|
-
disabled: A !== void 0 &&
|
|
3507
|
-
checked:
|
|
3508
|
-
onChange: (t) =>
|
|
3537
|
+
disabled: A !== void 0 && H.size >= A && !H.has(i),
|
|
3538
|
+
checked: H.has(i),
|
|
3539
|
+
onChange: (t) => Ee(t, e)
|
|
3509
3540
|
})]
|
|
3510
3541
|
}),
|
|
3511
3542
|
L.map((n, r) => /* @__PURE__ */ b("div", {
|
|
@@ -3513,29 +3544,29 @@ function Si(e) {
|
|
|
3513
3544
|
children: [/* @__PURE__ */ y("span", {
|
|
3514
3545
|
className: "data-table-mobile-card__label",
|
|
3515
3546
|
children: n.label
|
|
3516
|
-
}), /* @__PURE__ */ y(
|
|
3547
|
+
}), /* @__PURE__ */ y(yi, {
|
|
3517
3548
|
container: "card",
|
|
3518
3549
|
column: n,
|
|
3519
3550
|
idx: r,
|
|
3520
3551
|
row: e,
|
|
3521
3552
|
rowIndex: t,
|
|
3522
|
-
onEnterNextColumn:
|
|
3553
|
+
onEnterNextColumn: U,
|
|
3523
3554
|
onEditColumnByOverlay: re
|
|
3524
3555
|
})]
|
|
3525
3556
|
}, n.id)),
|
|
3526
3557
|
l.length > 0 && /* @__PURE__ */ b("div", {
|
|
3527
3558
|
className: "data-table-mobile-card__actions card-actions",
|
|
3528
|
-
children: [
|
|
3559
|
+
children: [ae.map((n, r) => /* @__PURE__ */ y(fi, {
|
|
3529
3560
|
action: n,
|
|
3530
3561
|
row: e,
|
|
3531
3562
|
rowIndex: t,
|
|
3532
3563
|
index: r,
|
|
3533
|
-
onFocusNextRow:
|
|
3534
|
-
}, n.id)), /* @__PURE__ */ y(
|
|
3535
|
-
actions:
|
|
3564
|
+
onFocusNextRow: we
|
|
3565
|
+
}, n.id)), /* @__PURE__ */ y(pi, {
|
|
3566
|
+
actions: oe,
|
|
3536
3567
|
row: e,
|
|
3537
3568
|
rowIndex: t,
|
|
3538
|
-
onFocusNextRow:
|
|
3569
|
+
onFocusNextRow: we
|
|
3539
3570
|
})]
|
|
3540
3571
|
})
|
|
3541
3572
|
]
|
|
@@ -3551,7 +3582,7 @@ function Si(e) {
|
|
|
3551
3582
|
/* @__PURE__ */ b("table", {
|
|
3552
3583
|
className: `data-table ${r || ""}`,
|
|
3553
3584
|
id: t,
|
|
3554
|
-
style:
|
|
3585
|
+
style: V ? { display: "none" } : void 0,
|
|
3555
3586
|
children: [
|
|
3556
3587
|
/* @__PURE__ */ b("colgroup", { children: [
|
|
3557
3588
|
D && /* @__PURE__ */ y("col", { style: { width: 40 } }),
|
|
@@ -3560,15 +3591,15 @@ function Si(e) {
|
|
|
3560
3591
|
minWidth: e.minWidth,
|
|
3561
3592
|
maxWidth: e.maxWidth
|
|
3562
3593
|
} }, e.id)),
|
|
3563
|
-
l.length > 0 && /* @__PURE__ */ y("col", { style: { width:
|
|
3594
|
+
l.length > 0 && /* @__PURE__ */ y("col", { style: { width: z } })
|
|
3564
3595
|
] }),
|
|
3565
|
-
/* @__PURE__ */ b("thead", { children: [
|
|
3566
|
-
ref:
|
|
3596
|
+
/* @__PURE__ */ b("thead", { children: [ue && /* @__PURE__ */ b("tr", {
|
|
3597
|
+
ref: se,
|
|
3567
3598
|
className: "data-table-group-row",
|
|
3568
3599
|
children: [
|
|
3569
3600
|
D && /* @__PURE__ */ y("th", {}),
|
|
3570
3601
|
f.map((e) => /* @__PURE__ */ y("th", {
|
|
3571
|
-
colSpan:
|
|
3602
|
+
colSpan: ai([e]).length,
|
|
3572
3603
|
style: { top: 0 },
|
|
3573
3604
|
children: e.children?.length ? e.label : ""
|
|
3574
3605
|
}, e.id)),
|
|
@@ -3580,8 +3611,8 @@ function Si(e) {
|
|
|
3580
3611
|
style: {
|
|
3581
3612
|
width: "40px",
|
|
3582
3613
|
textAlign: "center",
|
|
3583
|
-
top:
|
|
3584
|
-
...
|
|
3614
|
+
top: ce,
|
|
3615
|
+
...de.size > 0 ? {
|
|
3585
3616
|
left: 0,
|
|
3586
3617
|
zIndex: 12
|
|
3587
3618
|
} : {}
|
|
@@ -3590,16 +3621,16 @@ function Si(e) {
|
|
|
3590
3621
|
id: `select-th-${t}`,
|
|
3591
3622
|
name: `select-th-${t}`,
|
|
3592
3623
|
type: Z.CHECKBOX,
|
|
3593
|
-
checked: R.length > 0 &&
|
|
3594
|
-
onChange:
|
|
3624
|
+
checked: R.length > 0 && H.size === R.length,
|
|
3625
|
+
onChange: Ce
|
|
3595
3626
|
})
|
|
3596
3627
|
}),
|
|
3597
|
-
L.map((e, t) => /* @__PURE__ */ y(
|
|
3628
|
+
L.map((e, t) => /* @__PURE__ */ y(_i, {
|
|
3598
3629
|
column: e,
|
|
3599
3630
|
idx: t,
|
|
3600
3631
|
onColumnClick: C,
|
|
3601
|
-
stickyLeft:
|
|
3602
|
-
stickyTop:
|
|
3632
|
+
stickyLeft: de.get(e.id),
|
|
3633
|
+
stickyTop: ce,
|
|
3603
3634
|
isFilterVisible: I.visibleFilters.has(e.name ?? e.id),
|
|
3604
3635
|
onToggleFilter: I.toggleFilter,
|
|
3605
3636
|
onToggleSort: I.toggleSort,
|
|
@@ -3608,8 +3639,8 @@ function Si(e) {
|
|
|
3608
3639
|
}, t)),
|
|
3609
3640
|
l.length > 0 && /* @__PURE__ */ y("th", {
|
|
3610
3641
|
style: {
|
|
3611
|
-
width: `${
|
|
3612
|
-
minWidth: `${
|
|
3642
|
+
width: `${z}px`,
|
|
3643
|
+
minWidth: `${z}px`
|
|
3613
3644
|
},
|
|
3614
3645
|
align: "right"
|
|
3615
3646
|
}, "actions")
|
|
@@ -3620,7 +3651,7 @@ function Si(e) {
|
|
|
3620
3651
|
colSpan: L.length + +(l.length > 0) + +!!D,
|
|
3621
3652
|
children: /* @__PURE__ */ y("div", {
|
|
3622
3653
|
className: "mt-3",
|
|
3623
|
-
children: /* @__PURE__ */ y(
|
|
3654
|
+
children: /* @__PURE__ */ y(ii, { display: _ })
|
|
3624
3655
|
})
|
|
3625
3656
|
}) }) : /* @__PURE__ */ y(v, {}),
|
|
3626
3657
|
!_ && R.map((e, t) => {
|
|
@@ -3629,59 +3660,59 @@ function Si(e) {
|
|
|
3629
3660
|
className: `${t % 2 == 0 ? "even" : "odd"} ${r}`.trim(),
|
|
3630
3661
|
style: n,
|
|
3631
3662
|
"data-row-index": t,
|
|
3632
|
-
onClick: (t) =>
|
|
3663
|
+
onClick: (t) => Te?.(t, e),
|
|
3633
3664
|
children: [
|
|
3634
3665
|
D && /* @__PURE__ */ y("td", {
|
|
3635
3666
|
className: "select-cell",
|
|
3636
3667
|
style: { textAlign: "center" },
|
|
3637
3668
|
onClick: (e) => {
|
|
3638
|
-
e.stopPropagation(),
|
|
3669
|
+
e.stopPropagation(), _e(!0);
|
|
3639
3670
|
},
|
|
3640
3671
|
children: /* @__PURE__ */ y(Nr, {
|
|
3641
3672
|
id: `select-row-${t}`,
|
|
3642
3673
|
name: `select-row-${t}`,
|
|
3643
3674
|
type: Z.CHECKBOX,
|
|
3644
|
-
disabled: A !== void 0 &&
|
|
3645
|
-
checked:
|
|
3646
|
-
onChange: (t) =>
|
|
3675
|
+
disabled: A !== void 0 && H.size >= A && !H.has(j ? j(e) : e.id ?? e),
|
|
3676
|
+
checked: H.has(j ? j(e) : e.id ?? e),
|
|
3677
|
+
onChange: (t) => Ee(t, e)
|
|
3647
3678
|
})
|
|
3648
3679
|
}),
|
|
3649
|
-
L.map((n, r) => /* @__PURE__ */ y(
|
|
3680
|
+
L.map((n, r) => /* @__PURE__ */ y(yi, {
|
|
3650
3681
|
column: n,
|
|
3651
3682
|
idx: r,
|
|
3652
3683
|
row: e,
|
|
3653
3684
|
rowIndex: t,
|
|
3654
|
-
stickyLeft:
|
|
3685
|
+
stickyLeft: de.get(n.id),
|
|
3655
3686
|
onEditColumnByOverlay: re,
|
|
3656
|
-
onEnterNextColumn:
|
|
3687
|
+
onEnterNextColumn: U
|
|
3657
3688
|
}, r)),
|
|
3658
3689
|
l.length > 0 && /* @__PURE__ */ y("td", {
|
|
3659
3690
|
style: {
|
|
3660
|
-
width: `${
|
|
3661
|
-
minWidth: `${
|
|
3691
|
+
width: `${z}px`,
|
|
3692
|
+
minWidth: `${z}px`
|
|
3662
3693
|
},
|
|
3663
3694
|
align: "right",
|
|
3664
3695
|
onClick: (e) => e.stopPropagation(),
|
|
3665
3696
|
children: /* @__PURE__ */ b("div", {
|
|
3666
3697
|
className: "d-flex align-items-center justify-content-end",
|
|
3667
|
-
children: [
|
|
3698
|
+
children: [ae.map((n, r) => /* @__PURE__ */ y(fi, {
|
|
3668
3699
|
action: n,
|
|
3669
3700
|
row: e,
|
|
3670
3701
|
rowIndex: t,
|
|
3671
3702
|
index: r,
|
|
3672
|
-
onFocusNextRow:
|
|
3673
|
-
}, r)), /* @__PURE__ */ y(
|
|
3674
|
-
actions:
|
|
3703
|
+
onFocusNextRow: we
|
|
3704
|
+
}, r)), /* @__PURE__ */ y(pi, {
|
|
3705
|
+
actions: oe,
|
|
3675
3706
|
row: e,
|
|
3676
3707
|
rowIndex: t,
|
|
3677
|
-
onFocusNextRow:
|
|
3708
|
+
onFocusNextRow: we
|
|
3678
3709
|
})]
|
|
3679
3710
|
})
|
|
3680
3711
|
})
|
|
3681
3712
|
]
|
|
3682
3713
|
}, t);
|
|
3683
3714
|
}),
|
|
3684
|
-
!_ && R.length === 0 && /* @__PURE__ */ y(
|
|
3715
|
+
!_ && R.length === 0 && /* @__PURE__ */ y(vi, {
|
|
3685
3716
|
columns: L,
|
|
3686
3717
|
actions: l,
|
|
3687
3718
|
emptyMessage: T,
|
|
@@ -3690,8 +3721,8 @@ function Si(e) {
|
|
|
3690
3721
|
] })
|
|
3691
3722
|
]
|
|
3692
3723
|
}),
|
|
3693
|
-
|
|
3694
|
-
ref:
|
|
3724
|
+
De && typeof document < "u" && S(/* @__PURE__ */ y("div", {
|
|
3725
|
+
ref: me,
|
|
3695
3726
|
className: "data-table-footer-action",
|
|
3696
3727
|
"data-footer-action": "true",
|
|
3697
3728
|
children: /* @__PURE__ */ b("div", {
|
|
@@ -3699,43 +3730,43 @@ function Si(e) {
|
|
|
3699
3730
|
children: [/* @__PURE__ */ y("div", {
|
|
3700
3731
|
className: "data-table-footer-action__close",
|
|
3701
3732
|
"aria-label": "Fermer les actions",
|
|
3702
|
-
onClick:
|
|
3703
|
-
children: /* @__PURE__ */ y(
|
|
3733
|
+
onClick: Oe,
|
|
3734
|
+
children: /* @__PURE__ */ y(B, { classIcon: "bi-x" })
|
|
3704
3735
|
}), d?.({
|
|
3705
|
-
close:
|
|
3706
|
-
selectedRows:
|
|
3736
|
+
close: Oe,
|
|
3737
|
+
selectedRows: W
|
|
3707
3738
|
})]
|
|
3708
3739
|
})
|
|
3709
3740
|
}), document.body),
|
|
3710
3741
|
i,
|
|
3711
3742
|
E && /* @__PURE__ */ y("div", {
|
|
3712
|
-
ref:
|
|
3743
|
+
ref: pe,
|
|
3713
3744
|
className: "infinite-scroll-loader",
|
|
3714
|
-
children: /* @__PURE__ */ y(
|
|
3745
|
+
children: /* @__PURE__ */ y(ii, { display: !0 })
|
|
3715
3746
|
})
|
|
3716
3747
|
]
|
|
3717
3748
|
});
|
|
3718
3749
|
}
|
|
3719
3750
|
//#endregion
|
|
3720
3751
|
//#region node_modules/clsx/dist/clsx.mjs
|
|
3721
|
-
function
|
|
3752
|
+
function wi(e) {
|
|
3722
3753
|
var t, n, r = "";
|
|
3723
3754
|
if (typeof e == "string" || typeof e == "number") r += e;
|
|
3724
3755
|
else if (typeof e == "object") {
|
|
3725
3756
|
if (Array.isArray(e)) {
|
|
3726
3757
|
var i = e.length;
|
|
3727
|
-
for (t = 0; t < i; t++) e[t] && (n =
|
|
3758
|
+
for (t = 0; t < i; t++) e[t] && (n = wi(e[t])) && (r && (r += " "), r += n);
|
|
3728
3759
|
} else for (n in e) e[n] && (r && (r += " "), r += n);
|
|
3729
3760
|
}
|
|
3730
3761
|
return r;
|
|
3731
3762
|
}
|
|
3732
|
-
function
|
|
3733
|
-
for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t =
|
|
3763
|
+
function Ti() {
|
|
3764
|
+
for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = wi(e)) && (r && (r += " "), r += t);
|
|
3734
3765
|
return r;
|
|
3735
3766
|
}
|
|
3736
3767
|
//#endregion
|
|
3737
3768
|
//#region node_modules/mimic-fn/index.js
|
|
3738
|
-
var
|
|
3769
|
+
var Ei = /* @__PURE__ */ k(((e, t) => {
|
|
3739
3770
|
var n = (e, t, n, i) => {
|
|
3740
3771
|
if (n === "length" || n === "prototype" || n === "arguments" || n === "caller") return;
|
|
3741
3772
|
let a = Object.getOwnPropertyDescriptor(e, n), o = Object.getOwnPropertyDescriptor(t, n);
|
|
@@ -3757,14 +3788,14 @@ var Ti = /* @__PURE__ */ k(((e, t) => {
|
|
|
3757
3788
|
for (let i of Reflect.ownKeys(t)) n(e, t, i, r);
|
|
3758
3789
|
return i(e, t), c(e, t, a), e;
|
|
3759
3790
|
};
|
|
3760
|
-
})),
|
|
3791
|
+
})), Di = /* @__PURE__ */ k(((e, t) => {
|
|
3761
3792
|
t.exports = () => {
|
|
3762
3793
|
let e = {};
|
|
3763
3794
|
return e.promise = new Promise((t, n) => {
|
|
3764
3795
|
e.resolve = t, e.reject = n;
|
|
3765
3796
|
}), e;
|
|
3766
3797
|
};
|
|
3767
|
-
})),
|
|
3798
|
+
})), Oi = /* @__PURE__ */ k(((e, t) => {
|
|
3768
3799
|
var n = e && e.__awaiter || function(e, t, n, r) {
|
|
3769
3800
|
return new (n ||= Promise)(function(i, a) {
|
|
3770
3801
|
function o(e) {
|
|
@@ -3792,7 +3823,7 @@ var Ti = /* @__PURE__ */ k(((e, t) => {
|
|
|
3792
3823
|
return e && e.__esModule ? e : { default: e };
|
|
3793
3824
|
};
|
|
3794
3825
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
3795
|
-
var i = r(
|
|
3826
|
+
var i = r(Di());
|
|
3796
3827
|
function a(e, t = "maxAge") {
|
|
3797
3828
|
let r, a, o, s = () => n(this, void 0, void 0, function* () {
|
|
3798
3829
|
if (r !== void 0) return;
|
|
@@ -3818,8 +3849,8 @@ var Ti = /* @__PURE__ */ k(((e, t) => {
|
|
|
3818
3849
|
}, s(), e;
|
|
3819
3850
|
}
|
|
3820
3851
|
e.default = a, t.exports = a, t.exports.default = a;
|
|
3821
|
-
})),
|
|
3822
|
-
var n =
|
|
3852
|
+
})), ki = /* @__PURE__ */ j((/* @__PURE__ */ k(((e, t) => {
|
|
3853
|
+
var n = Ei(), r = Oi(), i = /* @__PURE__ */ new WeakMap(), a = /* @__PURE__ */ new WeakMap(), o = (e, { cacheKey: t, cache: i = /* @__PURE__ */ new Map(), maxAge: o } = {}) => {
|
|
3823
3854
|
typeof o == "number" && r(i);
|
|
3824
3855
|
let s = function(...n) {
|
|
3825
3856
|
let r = t ? t(n) : n[0], a = i.get(r);
|
|
@@ -3849,63 +3880,63 @@ var Ti = /* @__PURE__ */ k(((e, t) => {
|
|
|
3849
3880
|
t.clear();
|
|
3850
3881
|
}, t.exports = o;
|
|
3851
3882
|
})))(), 1);
|
|
3852
|
-
function
|
|
3883
|
+
function Ai(e) {
|
|
3853
3884
|
return typeof e == "string";
|
|
3854
3885
|
}
|
|
3855
|
-
function
|
|
3886
|
+
function ji(e, t, n) {
|
|
3856
3887
|
return n.indexOf(e) === t;
|
|
3857
3888
|
}
|
|
3858
|
-
function
|
|
3889
|
+
function Mi(e) {
|
|
3859
3890
|
return e.toLowerCase() === e;
|
|
3860
3891
|
}
|
|
3861
|
-
function
|
|
3892
|
+
function Ni(e) {
|
|
3862
3893
|
return e.indexOf(",") === -1 ? e : e.split(",");
|
|
3863
3894
|
}
|
|
3864
|
-
function
|
|
3895
|
+
function Pi(e) {
|
|
3865
3896
|
if (!e) return e;
|
|
3866
3897
|
if (e === "C" || e === "posix" || e === "POSIX") return "en-US";
|
|
3867
3898
|
if (e.indexOf(".") !== -1) {
|
|
3868
3899
|
var t = e.split(".")[0], n = t === void 0 ? "" : t;
|
|
3869
|
-
return
|
|
3900
|
+
return Pi(n);
|
|
3870
3901
|
}
|
|
3871
3902
|
if (e.indexOf("@") !== -1) {
|
|
3872
3903
|
var r = e.split("@")[0], n = r === void 0 ? "" : r;
|
|
3873
|
-
return
|
|
3904
|
+
return Pi(n);
|
|
3874
3905
|
}
|
|
3875
|
-
if (e.indexOf("-") === -1 || !
|
|
3906
|
+
if (e.indexOf("-") === -1 || !Mi(e)) return e;
|
|
3876
3907
|
var i = e.split("-"), a = i[0], o = i[1];
|
|
3877
3908
|
return `${a}-${(o === void 0 ? "" : o).toUpperCase()}`;
|
|
3878
3909
|
}
|
|
3879
|
-
function
|
|
3910
|
+
function Fi(e) {
|
|
3880
3911
|
var t = e === void 0 ? {} : e, n = t.useFallbackLocale, r = n === void 0 || n, i = t.fallbackLocale, a = i === void 0 ? "en-US" : i, o = [];
|
|
3881
3912
|
if (typeof navigator < "u") {
|
|
3882
3913
|
for (var s = navigator.languages || [], c = [], l = 0, u = s; l < u.length; l++) {
|
|
3883
3914
|
var d = u[l];
|
|
3884
|
-
c = c.concat(
|
|
3915
|
+
c = c.concat(Ni(d));
|
|
3885
3916
|
}
|
|
3886
|
-
var f = navigator.language, p = f &&
|
|
3917
|
+
var f = navigator.language, p = f && Ni(f);
|
|
3887
3918
|
o = o.concat(c, p);
|
|
3888
3919
|
}
|
|
3889
|
-
return r && o.push(a), o.filter(
|
|
3920
|
+
return r && o.push(a), o.filter(Ai).map(Pi).filter(ji);
|
|
3890
3921
|
}
|
|
3891
|
-
var
|
|
3892
|
-
function
|
|
3893
|
-
return
|
|
3922
|
+
var Ii = (0, ki.default)(Fi, { cacheKey: JSON.stringify });
|
|
3923
|
+
function Li(e) {
|
|
3924
|
+
return Ii(e)[0] || null;
|
|
3894
3925
|
}
|
|
3895
|
-
var
|
|
3926
|
+
var Ri = (0, ki.default)(Li, { cacheKey: JSON.stringify });
|
|
3896
3927
|
//#endregion
|
|
3897
3928
|
//#region node_modules/@wojtekmaj/date-utils/dist/esm/index.js
|
|
3898
|
-
function
|
|
3929
|
+
function zi(e, t, n) {
|
|
3899
3930
|
return function(r, i) {
|
|
3900
3931
|
return i === void 0 && (i = n), t(e(r) + i);
|
|
3901
3932
|
};
|
|
3902
3933
|
}
|
|
3903
|
-
function
|
|
3934
|
+
function Bi(e) {
|
|
3904
3935
|
return function(t) {
|
|
3905
3936
|
return /* @__PURE__ */ new Date(e(t).getTime() - 1);
|
|
3906
3937
|
};
|
|
3907
3938
|
}
|
|
3908
|
-
function
|
|
3939
|
+
function Vi(e, t) {
|
|
3909
3940
|
return function(n) {
|
|
3910
3941
|
return [e(n), t(n)];
|
|
3911
3942
|
};
|
|
@@ -3917,55 +3948,55 @@ function Q(e) {
|
|
|
3917
3948
|
if (typeof e == "string" && !isNaN(t)) return t;
|
|
3918
3949
|
throw Error(`Failed to get year from date: ${e}.`);
|
|
3919
3950
|
}
|
|
3920
|
-
function
|
|
3951
|
+
function Hi(e) {
|
|
3921
3952
|
if (e instanceof Date) return e.getMonth();
|
|
3922
3953
|
throw Error(`Failed to get month from date: ${e}.`);
|
|
3923
3954
|
}
|
|
3924
|
-
function
|
|
3955
|
+
function Ui(e) {
|
|
3925
3956
|
if (e instanceof Date) return e.getDate();
|
|
3926
3957
|
throw Error(`Failed to get year from date: ${e}.`);
|
|
3927
3958
|
}
|
|
3928
|
-
function
|
|
3959
|
+
function Wi(e) {
|
|
3929
3960
|
var t = Q(e), n = t + (-t + 1) % 100, r = /* @__PURE__ */ new Date();
|
|
3930
3961
|
return r.setFullYear(n, 0, 1), r.setHours(0, 0, 0, 0), r;
|
|
3931
3962
|
}
|
|
3932
|
-
var
|
|
3933
|
-
function
|
|
3963
|
+
var Gi = zi(Q, Wi, -100), Ki = zi(Q, Wi, 100), qi = Bi(Ki), Ji = zi(Q, qi, -100), Yi = Vi(Wi, qi);
|
|
3964
|
+
function Xi(e) {
|
|
3934
3965
|
var t = Q(e), n = t + (-t + 1) % 10, r = /* @__PURE__ */ new Date();
|
|
3935
3966
|
return r.setFullYear(n, 0, 1), r.setHours(0, 0, 0, 0), r;
|
|
3936
3967
|
}
|
|
3937
|
-
var
|
|
3938
|
-
function
|
|
3968
|
+
var Zi = zi(Q, Xi, -10), Qi = zi(Q, Xi, 10), $i = Bi(Qi), ea = zi(Q, $i, -10), ta = Vi(Xi, $i);
|
|
3969
|
+
function na(e) {
|
|
3939
3970
|
var t = Q(e), n = /* @__PURE__ */ new Date();
|
|
3940
3971
|
return n.setFullYear(t, 0, 1), n.setHours(0, 0, 0, 0), n;
|
|
3941
3972
|
}
|
|
3942
|
-
var
|
|
3943
|
-
function
|
|
3973
|
+
var ra = zi(Q, na, -1), ia = zi(Q, na, 1), aa = Bi(ia), oa = zi(Q, aa, -1), sa = Vi(na, aa);
|
|
3974
|
+
function ca(e, t) {
|
|
3944
3975
|
return function(n, r) {
|
|
3945
3976
|
r === void 0 && (r = t);
|
|
3946
|
-
var i = Q(n), a =
|
|
3977
|
+
var i = Q(n), a = Hi(n) + r, o = /* @__PURE__ */ new Date();
|
|
3947
3978
|
return o.setFullYear(i, a, 1), o.setHours(0, 0, 0, 0), e(o);
|
|
3948
3979
|
};
|
|
3949
3980
|
}
|
|
3950
|
-
function
|
|
3951
|
-
var t = Q(e), n =
|
|
3981
|
+
function la(e) {
|
|
3982
|
+
var t = Q(e), n = Hi(e), r = /* @__PURE__ */ new Date();
|
|
3952
3983
|
return r.setFullYear(t, n, 1), r.setHours(0, 0, 0, 0), r;
|
|
3953
3984
|
}
|
|
3954
|
-
var
|
|
3955
|
-
function
|
|
3985
|
+
var ua = ca(la, -1), da = ca(la, 1), fa = Bi(da), pa = ca(fa, -1), ma = Vi(la, fa);
|
|
3986
|
+
function ha(e, t) {
|
|
3956
3987
|
return function(n, r) {
|
|
3957
3988
|
r === void 0 && (r = t);
|
|
3958
|
-
var i = Q(n), a =
|
|
3989
|
+
var i = Q(n), a = Hi(n), o = Ui(n) + r, s = /* @__PURE__ */ new Date();
|
|
3959
3990
|
return s.setFullYear(i, a, o), s.setHours(0, 0, 0, 0), e(s);
|
|
3960
3991
|
};
|
|
3961
3992
|
}
|
|
3962
|
-
function
|
|
3963
|
-
var t = Q(e), n =
|
|
3993
|
+
function ga(e) {
|
|
3994
|
+
var t = Q(e), n = Hi(e), r = Ui(e), i = /* @__PURE__ */ new Date();
|
|
3964
3995
|
return i.setFullYear(t, n, r), i.setHours(0, 0, 0, 0), i;
|
|
3965
3996
|
}
|
|
3966
|
-
var
|
|
3967
|
-
function
|
|
3968
|
-
return
|
|
3997
|
+
var _a = Bi(ha(ga, 1)), va = Vi(ga, _a);
|
|
3998
|
+
function ya(e) {
|
|
3999
|
+
return Ui(fa(e));
|
|
3969
4000
|
}
|
|
3970
4001
|
//#endregion
|
|
3971
4002
|
//#region node_modules/react-calendar/dist/esm/shared/const.js
|
|
@@ -3974,7 +4005,7 @@ var $ = {
|
|
|
3974
4005
|
HEBREW: "hebrew",
|
|
3975
4006
|
ISLAMIC: "islamic",
|
|
3976
4007
|
ISO_8601: "iso8601"
|
|
3977
|
-
},
|
|
4008
|
+
}, ba = {
|
|
3978
4009
|
gregory: [
|
|
3979
4010
|
"en-CA",
|
|
3980
4011
|
"en-US",
|
|
@@ -4018,7 +4049,7 @@ var $ = {
|
|
|
4018
4049
|
"ps",
|
|
4019
4050
|
"ps-AR"
|
|
4020
4051
|
]
|
|
4021
|
-
},
|
|
4052
|
+
}, xa = [
|
|
4022
4053
|
0,
|
|
4023
4054
|
1,
|
|
4024
4055
|
2,
|
|
@@ -4026,33 +4057,33 @@ var $ = {
|
|
|
4026
4057
|
4,
|
|
4027
4058
|
5,
|
|
4028
4059
|
6
|
|
4029
|
-
],
|
|
4030
|
-
function
|
|
4060
|
+
], Sa = /* @__PURE__ */ new Map();
|
|
4061
|
+
function Ca(e) {
|
|
4031
4062
|
return function(t, n) {
|
|
4032
|
-
var r = t ||
|
|
4033
|
-
|
|
4034
|
-
var i =
|
|
4063
|
+
var r = t || Ri();
|
|
4064
|
+
Sa.has(r) || Sa.set(r, /* @__PURE__ */ new Map());
|
|
4065
|
+
var i = Sa.get(r);
|
|
4035
4066
|
return i.has(e) || i.set(e, new Intl.DateTimeFormat(r || void 0, e).format), i.get(e)(n);
|
|
4036
4067
|
};
|
|
4037
4068
|
}
|
|
4038
|
-
function
|
|
4069
|
+
function wa(e) {
|
|
4039
4070
|
var t = new Date(e);
|
|
4040
4071
|
return new Date(t.setHours(12));
|
|
4041
4072
|
}
|
|
4042
|
-
function
|
|
4073
|
+
function Ta(e) {
|
|
4043
4074
|
return function(t, n) {
|
|
4044
|
-
return
|
|
4075
|
+
return Ca(e)(t, wa(n));
|
|
4045
4076
|
};
|
|
4046
4077
|
}
|
|
4047
|
-
var
|
|
4078
|
+
var Ea = { day: "numeric" }, Da = {
|
|
4048
4079
|
day: "numeric",
|
|
4049
4080
|
month: "long",
|
|
4050
4081
|
year: "numeric"
|
|
4051
|
-
},
|
|
4082
|
+
}, Oa = { month: "long" }, ka = {
|
|
4052
4083
|
month: "long",
|
|
4053
4084
|
year: "numeric"
|
|
4054
|
-
},
|
|
4055
|
-
function
|
|
4085
|
+
}, Aa = { weekday: "short" }, ja = { weekday: "long" }, Ma = { year: "numeric" }, Na = Ta(Ea), Pa = Ta(Da), Fa = Ta(Oa), Ia = Ta(ka), La = Ta(Aa), Ra = Ta(ja), za = Ta(Ma), Ba = xa[0], Va = xa[5], Ha = xa[6];
|
|
4086
|
+
function Ua(e, t) {
|
|
4056
4087
|
t === void 0 && (t = $.ISO_8601);
|
|
4057
4088
|
var n = e.getDay();
|
|
4058
4089
|
switch (t) {
|
|
@@ -4063,41 +4094,32 @@ function Ha(e, t) {
|
|
|
4063
4094
|
default: throw Error("Unsupported calendar type.");
|
|
4064
4095
|
}
|
|
4065
4096
|
}
|
|
4066
|
-
function Ua(e) {
|
|
4067
|
-
return Q(Ui(e));
|
|
4068
|
-
}
|
|
4069
4097
|
function Wa(e) {
|
|
4070
|
-
return Q(
|
|
4098
|
+
return Q(Wi(e));
|
|
4071
4099
|
}
|
|
4072
|
-
function Ga(e
|
|
4100
|
+
function Ga(e) {
|
|
4101
|
+
return Q(Xi(e));
|
|
4102
|
+
}
|
|
4103
|
+
function Ka(e, t) {
|
|
4073
4104
|
t === void 0 && (t = $.ISO_8601);
|
|
4074
|
-
var n = Q(e), r =
|
|
4105
|
+
var n = Q(e), r = Hi(e), i = e.getDate() - Ua(e, t);
|
|
4075
4106
|
return new Date(n, r, i);
|
|
4076
4107
|
}
|
|
4077
|
-
function
|
|
4108
|
+
function qa(e, t) {
|
|
4078
4109
|
t === void 0 && (t = $.ISO_8601);
|
|
4079
|
-
var n = t === $.GREGORY ? $.GREGORY : $.ISO_8601, r =
|
|
4110
|
+
var n = t === $.GREGORY ? $.GREGORY : $.ISO_8601, r = Ka(e, t), i = Q(e) + 1, a, o;
|
|
4080
4111
|
do
|
|
4081
|
-
a = new Date(i, 0, n === $.ISO_8601 ? 4 : 1), o =
|
|
4112
|
+
a = new Date(i, 0, n === $.ISO_8601 ? 4 : 1), o = Ka(a, t), --i;
|
|
4082
4113
|
while (e < o);
|
|
4083
4114
|
return Math.round((r.getTime() - o.getTime()) / 6048e5) + 1;
|
|
4084
4115
|
}
|
|
4085
|
-
function qa(e, t) {
|
|
4086
|
-
switch (e) {
|
|
4087
|
-
case "century": return Ui(t);
|
|
4088
|
-
case "decade": return Yi(t);
|
|
4089
|
-
case "year": return ta(t);
|
|
4090
|
-
case "month": return ca(t);
|
|
4091
|
-
case "day": return ha(t);
|
|
4092
|
-
default: throw Error(`Invalid rangeType: ${e}`);
|
|
4093
|
-
}
|
|
4094
|
-
}
|
|
4095
4116
|
function Ja(e, t) {
|
|
4096
4117
|
switch (e) {
|
|
4097
4118
|
case "century": return Wi(t);
|
|
4098
4119
|
case "decade": return Xi(t);
|
|
4099
4120
|
case "year": return na(t);
|
|
4100
4121
|
case "month": return la(t);
|
|
4122
|
+
case "day": return ga(t);
|
|
4101
4123
|
default: throw Error(`Invalid rangeType: ${e}`);
|
|
4102
4124
|
}
|
|
4103
4125
|
}
|
|
@@ -4112,27 +4134,26 @@ function Ya(e, t) {
|
|
|
4112
4134
|
}
|
|
4113
4135
|
function Xa(e, t) {
|
|
4114
4136
|
switch (e) {
|
|
4115
|
-
case "
|
|
4116
|
-
case "
|
|
4117
|
-
case "
|
|
4137
|
+
case "century": return Ki(t);
|
|
4138
|
+
case "decade": return Qi(t);
|
|
4139
|
+
case "year": return ia(t);
|
|
4140
|
+
case "month": return da(t);
|
|
4118
4141
|
default: throw Error(`Invalid rangeType: ${e}`);
|
|
4119
4142
|
}
|
|
4120
4143
|
}
|
|
4121
4144
|
function Za(e, t) {
|
|
4122
4145
|
switch (e) {
|
|
4123
|
-
case "decade": return Zi(t, 100);
|
|
4124
|
-
case "year": return ra(t, 10);
|
|
4125
|
-
case "month": return ua(t, 12);
|
|
4146
|
+
case "decade": return Zi(t, -100);
|
|
4147
|
+
case "year": return ra(t, -10);
|
|
4148
|
+
case "month": return ua(t, -12);
|
|
4126
4149
|
default: throw Error(`Invalid rangeType: ${e}`);
|
|
4127
4150
|
}
|
|
4128
4151
|
}
|
|
4129
4152
|
function Qa(e, t) {
|
|
4130
4153
|
switch (e) {
|
|
4131
|
-
case "
|
|
4132
|
-
case "
|
|
4133
|
-
case "
|
|
4134
|
-
case "month": return da(t);
|
|
4135
|
-
case "day": return ga(t);
|
|
4154
|
+
case "decade": return Qi(t, 100);
|
|
4155
|
+
case "year": return ia(t, 10);
|
|
4156
|
+
case "month": return da(t, 12);
|
|
4136
4157
|
default: throw Error(`Invalid rangeType: ${e}`);
|
|
4137
4158
|
}
|
|
4138
4159
|
}
|
|
@@ -4142,88 +4163,98 @@ function $a(e, t) {
|
|
|
4142
4163
|
case "decade": return $i(t);
|
|
4143
4164
|
case "year": return aa(t);
|
|
4144
4165
|
case "month": return fa(t);
|
|
4166
|
+
case "day": return _a(t);
|
|
4145
4167
|
default: throw Error(`Invalid rangeType: ${e}`);
|
|
4146
4168
|
}
|
|
4147
4169
|
}
|
|
4148
4170
|
function eo(e, t) {
|
|
4149
4171
|
switch (e) {
|
|
4150
|
-
case "
|
|
4151
|
-
case "
|
|
4152
|
-
case "
|
|
4172
|
+
case "century": return Ji(t);
|
|
4173
|
+
case "decade": return ea(t);
|
|
4174
|
+
case "year": return oa(t);
|
|
4175
|
+
case "month": return pa(t);
|
|
4153
4176
|
default: throw Error(`Invalid rangeType: ${e}`);
|
|
4154
4177
|
}
|
|
4155
4178
|
}
|
|
4156
4179
|
function to(e, t) {
|
|
4157
4180
|
switch (e) {
|
|
4158
|
-
case "
|
|
4159
|
-
case "
|
|
4160
|
-
case "
|
|
4161
|
-
|
|
4162
|
-
|
|
4181
|
+
case "decade": return ea(t, -100);
|
|
4182
|
+
case "year": return oa(t, -10);
|
|
4183
|
+
case "month": return pa(t, -12);
|
|
4184
|
+
default: throw Error(`Invalid rangeType: ${e}`);
|
|
4185
|
+
}
|
|
4186
|
+
}
|
|
4187
|
+
function no(e, t) {
|
|
4188
|
+
switch (e) {
|
|
4189
|
+
case "century": return Yi(t);
|
|
4190
|
+
case "decade": return ta(t);
|
|
4191
|
+
case "year": return sa(t);
|
|
4192
|
+
case "month": return ma(t);
|
|
4193
|
+
case "day": return va(t);
|
|
4163
4194
|
default: throw Error(`Invalid rangeType: ${e}`);
|
|
4164
4195
|
}
|
|
4165
4196
|
}
|
|
4166
|
-
function
|
|
4197
|
+
function ro(e, t, n) {
|
|
4167
4198
|
var r = [t, n].sort(function(e, t) {
|
|
4168
4199
|
return e.getTime() - t.getTime();
|
|
4169
4200
|
});
|
|
4170
|
-
return [
|
|
4201
|
+
return [Ja(e, r[0]), $a(e, r[1])];
|
|
4171
4202
|
}
|
|
4172
|
-
function
|
|
4203
|
+
function io(e, t, n) {
|
|
4173
4204
|
return n.map(function(n) {
|
|
4174
|
-
return (t ||
|
|
4205
|
+
return (t || za)(e, n);
|
|
4175
4206
|
}).join(" – ");
|
|
4176
4207
|
}
|
|
4177
|
-
function io(e, t, n) {
|
|
4178
|
-
return ro(e, t, Ji(n));
|
|
4179
|
-
}
|
|
4180
4208
|
function ao(e, t, n) {
|
|
4181
|
-
return
|
|
4209
|
+
return io(e, t, Yi(n));
|
|
4182
4210
|
}
|
|
4183
|
-
function oo(e) {
|
|
4211
|
+
function oo(e, t, n) {
|
|
4212
|
+
return io(e, t, ta(n));
|
|
4213
|
+
}
|
|
4214
|
+
function so(e) {
|
|
4184
4215
|
return e.getDay() === (/* @__PURE__ */ new Date()).getDay();
|
|
4185
4216
|
}
|
|
4186
|
-
function
|
|
4217
|
+
function co(e, t) {
|
|
4187
4218
|
t === void 0 && (t = $.ISO_8601);
|
|
4188
4219
|
var n = e.getDay();
|
|
4189
4220
|
switch (t) {
|
|
4190
4221
|
case $.ISLAMIC:
|
|
4191
|
-
case $.HEBREW: return n ===
|
|
4222
|
+
case $.HEBREW: return n === Va || n === Ha;
|
|
4192
4223
|
case $.ISO_8601:
|
|
4193
|
-
case $.GREGORY: return n ===
|
|
4224
|
+
case $.GREGORY: return n === Ha || n === Ba;
|
|
4194
4225
|
default: throw Error("Unsupported calendar type.");
|
|
4195
4226
|
}
|
|
4196
4227
|
}
|
|
4197
4228
|
//#endregion
|
|
4198
4229
|
//#region node_modules/react-calendar/dist/esm/Calendar/Navigation.js
|
|
4199
|
-
var
|
|
4200
|
-
function
|
|
4201
|
-
var t = e.activeStartDate, n = e.drillUp, r = e.formatMonthYear, i = r === void 0 ?
|
|
4230
|
+
var lo = "react-calendar__navigation";
|
|
4231
|
+
function uo(e) {
|
|
4232
|
+
var t = e.activeStartDate, n = e.drillUp, r = e.formatMonthYear, i = r === void 0 ? Ia : r, a = e.formatYear, o = a === void 0 ? za : a, s = e.locale, c = e.maxDate, l = e.minDate, u = e.navigationAriaLabel, d = u === void 0 ? "" : u, f = e.navigationAriaLive, p = e.navigationLabel, m = e.next2AriaLabel, h = m === void 0 ? "" : m, g = e.next2Label, _ = g === void 0 ? "»" : g, x = e.nextAriaLabel, S = x === void 0 ? "" : x, C = e.nextLabel, w = C === void 0 ? "›" : C, T = e.prev2AriaLabel, E = T === void 0 ? "" : T, D = e.prev2Label, O = D === void 0 ? "«" : D, k = e.prevAriaLabel, A = k === void 0 ? "" : k, j = e.prevLabel, M = j === void 0 ? "‹" : j, N = e.setActiveStartDate, ee = e.showDoubleView, P = e.view, te = e.views.indexOf(P) > 0, F = P !== "century", ne = Ya(P, t), re = F ? Za(P, t) : void 0, I = Xa(P, t), L = F ? Qa(P, t) : void 0, R = (function() {
|
|
4202
4233
|
if (ne.getFullYear() < 0) return !0;
|
|
4203
|
-
var e =
|
|
4234
|
+
var e = eo(P, t);
|
|
4204
4235
|
return l && l >= e;
|
|
4205
|
-
})(),
|
|
4236
|
+
})(), z = F && (function() {
|
|
4206
4237
|
if (re.getFullYear() < 0) return !0;
|
|
4207
|
-
var e =
|
|
4238
|
+
var e = to(P, t);
|
|
4208
4239
|
return l && l >= e;
|
|
4209
|
-
})(),
|
|
4210
|
-
function
|
|
4240
|
+
})(), ie = c && c < I, ae = F && c && c < L;
|
|
4241
|
+
function oe() {
|
|
4211
4242
|
N(ne, "prev");
|
|
4212
4243
|
}
|
|
4213
|
-
function
|
|
4244
|
+
function se() {
|
|
4214
4245
|
N(re, "prev2");
|
|
4215
4246
|
}
|
|
4216
|
-
function
|
|
4247
|
+
function ce() {
|
|
4217
4248
|
N(I, "next");
|
|
4218
4249
|
}
|
|
4219
|
-
function
|
|
4250
|
+
function le() {
|
|
4220
4251
|
N(L, "next2");
|
|
4221
4252
|
}
|
|
4222
|
-
function
|
|
4253
|
+
function ue(e) {
|
|
4223
4254
|
var t = (function() {
|
|
4224
4255
|
switch (P) {
|
|
4225
|
-
case "century": return
|
|
4226
|
-
case "decade": return
|
|
4256
|
+
case "century": return ao(s, o, e);
|
|
4257
|
+
case "decade": return oo(s, o, e);
|
|
4227
4258
|
case "year": return o(s, e);
|
|
4228
4259
|
case "month": return i(s, e);
|
|
4229
4260
|
default: throw Error(`Invalid view: ${P}.`);
|
|
@@ -4232,12 +4263,12 @@ function lo(e) {
|
|
|
4232
4263
|
return p ? p({
|
|
4233
4264
|
date: e,
|
|
4234
4265
|
label: t,
|
|
4235
|
-
locale: s ||
|
|
4266
|
+
locale: s || Ri() || void 0,
|
|
4236
4267
|
view: P
|
|
4237
4268
|
}) : t;
|
|
4238
4269
|
}
|
|
4239
|
-
function
|
|
4240
|
-
var e = `${
|
|
4270
|
+
function de() {
|
|
4271
|
+
var e = `${lo}__label`;
|
|
4241
4272
|
return b("button", {
|
|
4242
4273
|
"aria-label": d,
|
|
4243
4274
|
"aria-live": f,
|
|
@@ -4248,49 +4279,49 @@ function lo(e) {
|
|
|
4248
4279
|
type: "button",
|
|
4249
4280
|
children: [y("span", {
|
|
4250
4281
|
className: `${e}__labelText ${e}__labelText--from`,
|
|
4251
|
-
children:
|
|
4282
|
+
children: ue(t)
|
|
4252
4283
|
}), ee ? b(v, { children: [y("span", {
|
|
4253
4284
|
className: `${e}__divider`,
|
|
4254
4285
|
children: " – "
|
|
4255
4286
|
}), y("span", {
|
|
4256
4287
|
className: `${e}__labelText ${e}__labelText--to`,
|
|
4257
|
-
children:
|
|
4288
|
+
children: ue(I)
|
|
4258
4289
|
})] }) : null]
|
|
4259
4290
|
});
|
|
4260
4291
|
}
|
|
4261
4292
|
return b("div", {
|
|
4262
|
-
className:
|
|
4293
|
+
className: lo,
|
|
4263
4294
|
children: [
|
|
4264
4295
|
O !== null && F ? y("button", {
|
|
4265
4296
|
"aria-label": E,
|
|
4266
|
-
className: `${
|
|
4267
|
-
disabled:
|
|
4268
|
-
onClick:
|
|
4297
|
+
className: `${lo}__arrow ${lo}__prev2-button`,
|
|
4298
|
+
disabled: z,
|
|
4299
|
+
onClick: se,
|
|
4269
4300
|
type: "button",
|
|
4270
4301
|
children: O
|
|
4271
4302
|
}) : null,
|
|
4272
4303
|
M !== null && y("button", {
|
|
4273
4304
|
"aria-label": A,
|
|
4274
|
-
className: `${
|
|
4305
|
+
className: `${lo}__arrow ${lo}__prev-button`,
|
|
4275
4306
|
disabled: R,
|
|
4276
|
-
onClick:
|
|
4307
|
+
onClick: oe,
|
|
4277
4308
|
type: "button",
|
|
4278
4309
|
children: M
|
|
4279
4310
|
}),
|
|
4280
|
-
|
|
4311
|
+
de(),
|
|
4281
4312
|
w !== null && y("button", {
|
|
4282
4313
|
"aria-label": S,
|
|
4283
|
-
className: `${
|
|
4284
|
-
disabled:
|
|
4285
|
-
onClick:
|
|
4314
|
+
className: `${lo}__arrow ${lo}__next-button`,
|
|
4315
|
+
disabled: ie,
|
|
4316
|
+
onClick: ce,
|
|
4286
4317
|
type: "button",
|
|
4287
4318
|
children: w
|
|
4288
4319
|
}),
|
|
4289
4320
|
_ !== null && F ? y("button", {
|
|
4290
4321
|
"aria-label": h,
|
|
4291
|
-
className: `${
|
|
4292
|
-
disabled:
|
|
4293
|
-
onClick:
|
|
4322
|
+
className: `${lo}__arrow ${lo}__next2-button`,
|
|
4323
|
+
disabled: ae,
|
|
4324
|
+
onClick: le,
|
|
4294
4325
|
type: "button",
|
|
4295
4326
|
children: _
|
|
4296
4327
|
}) : null
|
|
@@ -4299,22 +4330,22 @@ function lo(e) {
|
|
|
4299
4330
|
}
|
|
4300
4331
|
//#endregion
|
|
4301
4332
|
//#region node_modules/react-calendar/dist/esm/Flex.js
|
|
4302
|
-
var
|
|
4303
|
-
return
|
|
4333
|
+
var fo = function() {
|
|
4334
|
+
return fo = Object.assign || function(e) {
|
|
4304
4335
|
for (var t, n = 1, r = arguments.length; n < r; n++) for (var i in t = arguments[n], t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
|
|
4305
4336
|
return e;
|
|
4306
|
-
},
|
|
4307
|
-
},
|
|
4337
|
+
}, fo.apply(this, arguments);
|
|
4338
|
+
}, po = function(e, t) {
|
|
4308
4339
|
var n = {};
|
|
4309
4340
|
for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
4310
4341
|
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, r = Object.getOwnPropertySymbols(e); i < r.length; i++) t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
|
|
4311
4342
|
return n;
|
|
4312
4343
|
};
|
|
4313
|
-
function
|
|
4344
|
+
function mo(e) {
|
|
4314
4345
|
return `${e}%`;
|
|
4315
4346
|
}
|
|
4316
|
-
function
|
|
4317
|
-
var r = e.children, i = e.className, a = e.count, o = e.direction, s = e.offset, c = e.style, l = e.wrap, u =
|
|
4347
|
+
function ho(e) {
|
|
4348
|
+
var r = e.children, i = e.className, a = e.count, o = e.direction, s = e.offset, c = e.style, l = e.wrap, u = po(e, [
|
|
4318
4349
|
"children",
|
|
4319
4350
|
"className",
|
|
4320
4351
|
"count",
|
|
@@ -4323,17 +4354,17 @@ function mo(e) {
|
|
|
4323
4354
|
"style",
|
|
4324
4355
|
"wrap"
|
|
4325
4356
|
]);
|
|
4326
|
-
return y("div",
|
|
4357
|
+
return y("div", fo({
|
|
4327
4358
|
className: i,
|
|
4328
|
-
style:
|
|
4359
|
+
style: fo({
|
|
4329
4360
|
display: "flex",
|
|
4330
4361
|
flexDirection: o,
|
|
4331
4362
|
flexWrap: l ? "wrap" : "nowrap"
|
|
4332
4363
|
}, c)
|
|
4333
4364
|
}, u, { children: t.map(r, function(e, t) {
|
|
4334
|
-
var r = s && t === 0 ?
|
|
4335
|
-
return n(e,
|
|
4336
|
-
flexBasis:
|
|
4365
|
+
var r = s && t === 0 ? mo(100 * s / a) : null;
|
|
4366
|
+
return n(e, fo(fo({}, e.props), { style: {
|
|
4367
|
+
flexBasis: mo(100 / a),
|
|
4337
4368
|
flexShrink: 0,
|
|
4338
4369
|
flexGrow: 0,
|
|
4339
4370
|
overflow: "hidden",
|
|
@@ -4345,31 +4376,31 @@ function mo(e) {
|
|
|
4345
4376
|
}
|
|
4346
4377
|
//#endregion
|
|
4347
4378
|
//#region node_modules/react-calendar/dist/esm/shared/utils.js
|
|
4348
|
-
function
|
|
4379
|
+
function go(e, t, n) {
|
|
4349
4380
|
return t && t > e ? t : n && n < e ? n : e;
|
|
4350
4381
|
}
|
|
4351
|
-
function
|
|
4382
|
+
function _o(e, t) {
|
|
4352
4383
|
return t[0] <= e && t[1] >= e;
|
|
4353
4384
|
}
|
|
4354
|
-
function
|
|
4385
|
+
function vo(e, t) {
|
|
4355
4386
|
return e[0] <= t[0] && e[1] >= t[1];
|
|
4356
4387
|
}
|
|
4357
|
-
function
|
|
4358
|
-
return
|
|
4388
|
+
function yo(e, t) {
|
|
4389
|
+
return _o(e[0], t) || _o(e[1], t);
|
|
4359
4390
|
}
|
|
4360
|
-
function
|
|
4361
|
-
var r =
|
|
4391
|
+
function bo(e, t, n) {
|
|
4392
|
+
var r = yo(t, e), i = [];
|
|
4362
4393
|
if (r) {
|
|
4363
4394
|
i.push(n);
|
|
4364
|
-
var a =
|
|
4395
|
+
var a = _o(e[0], t), o = _o(e[1], t);
|
|
4365
4396
|
a && i.push(`${n}Start`), o && i.push(`${n}End`), a && o && i.push(`${n}BothEnds`);
|
|
4366
4397
|
}
|
|
4367
4398
|
return i;
|
|
4368
4399
|
}
|
|
4369
|
-
function
|
|
4400
|
+
function xo(e) {
|
|
4370
4401
|
return Array.isArray(e) ? e[0] !== null && e[1] !== null : e !== null;
|
|
4371
4402
|
}
|
|
4372
|
-
function
|
|
4403
|
+
function So(e) {
|
|
4373
4404
|
if (!e) throw Error("args is required");
|
|
4374
4405
|
var t = e.value, n = e.date, r = e.hover, i = "react-calendar__tile", a = [i];
|
|
4375
4406
|
if (!n) return a;
|
|
@@ -4377,30 +4408,30 @@ function xo(e) {
|
|
|
4377
4408
|
if (Array.isArray(n)) return n;
|
|
4378
4409
|
var t = e.dateType;
|
|
4379
4410
|
if (!t) throw Error("dateType is required when date is not an array of two dates");
|
|
4380
|
-
return
|
|
4411
|
+
return no(t, n);
|
|
4381
4412
|
})();
|
|
4382
|
-
if (
|
|
4413
|
+
if (_o(o, s) && a.push(`${i}--now`), !t || !xo(t)) return a;
|
|
4383
4414
|
var c = (function() {
|
|
4384
4415
|
if (Array.isArray(t)) return t;
|
|
4385
4416
|
var n = e.valueType;
|
|
4386
4417
|
if (!n) throw Error("valueType is required when value is not an array of two dates");
|
|
4387
|
-
return
|
|
4418
|
+
return no(n, t);
|
|
4388
4419
|
})();
|
|
4389
|
-
|
|
4390
|
-
var l =
|
|
4420
|
+
vo(c, s) ? a.push(`${i}--active`) : yo(c, s) && a.push(`${i}--hasActive`);
|
|
4421
|
+
var l = bo(c, s, `${i}--range`);
|
|
4391
4422
|
if (a.push.apply(a, l), r && (Array.isArray(t) ? t : [t]).length === 1) {
|
|
4392
|
-
var u =
|
|
4423
|
+
var u = bo(r > c[0] ? [c[0], r] : [r, c[0]], s, `${i}--hover`);
|
|
4393
4424
|
a.push.apply(a, u);
|
|
4394
4425
|
}
|
|
4395
4426
|
return a;
|
|
4396
4427
|
}
|
|
4397
4428
|
//#endregion
|
|
4398
4429
|
//#region node_modules/react-calendar/dist/esm/TileGroup.js
|
|
4399
|
-
function
|
|
4430
|
+
function Co(e) {
|
|
4400
4431
|
for (var t = e.className, n = e.count, r = n === void 0 ? 3 : n, i = e.dateTransform, a = e.dateType, o = e.end, s = e.hover, c = e.offset, l = e.renderTile, u = e.start, d = e.step, f = d === void 0 ? 1 : d, p = e.value, m = e.valueType, h = [], g = u; g <= o; g += f) {
|
|
4401
4432
|
var _ = i(g);
|
|
4402
4433
|
h.push(l({
|
|
4403
|
-
classes:
|
|
4434
|
+
classes: So({
|
|
4404
4435
|
date: _,
|
|
4405
4436
|
dateType: a,
|
|
4406
4437
|
hover: s,
|
|
@@ -4410,7 +4441,7 @@ function So(e) {
|
|
|
4410
4441
|
date: _
|
|
4411
4442
|
}));
|
|
4412
4443
|
}
|
|
4413
|
-
return y(
|
|
4444
|
+
return y(ho, {
|
|
4414
4445
|
className: t,
|
|
4415
4446
|
count: r,
|
|
4416
4447
|
offset: c,
|
|
@@ -4420,7 +4451,7 @@ function So(e) {
|
|
|
4420
4451
|
}
|
|
4421
4452
|
//#endregion
|
|
4422
4453
|
//#region node_modules/react-calendar/dist/esm/Tile.js
|
|
4423
|
-
function
|
|
4454
|
+
function wo(e) {
|
|
4424
4455
|
var t = e.activeStartDate, n = e.children, r = e.classes, i = e.date, a = e.formatAbbr, o = e.locale, s = e.maxDate, c = e.maxDateTransform, l = e.minDate, u = e.minDateTransform, d = e.onClick, f = e.onMouseOver, p = e.style, h = e.tileClassName, g = e.tileContent, _ = e.tileDisabled, v = e.view, x = m(function() {
|
|
4425
4456
|
return typeof h == "function" ? h({
|
|
4426
4457
|
activeStartDate: t,
|
|
@@ -4445,7 +4476,7 @@ function Co(e) {
|
|
|
4445
4476
|
v
|
|
4446
4477
|
]);
|
|
4447
4478
|
return b("button", {
|
|
4448
|
-
className:
|
|
4479
|
+
className: Ti(r, x),
|
|
4449
4480
|
disabled: l && u(l) > i || s && c(s) < i || _?.({
|
|
4450
4481
|
activeStartDate: t,
|
|
4451
4482
|
date: i,
|
|
@@ -4470,61 +4501,61 @@ function Co(e) {
|
|
|
4470
4501
|
}
|
|
4471
4502
|
//#endregion
|
|
4472
4503
|
//#region node_modules/react-calendar/dist/esm/CenturyView/Decade.js
|
|
4473
|
-
var
|
|
4474
|
-
return
|
|
4504
|
+
var To = function() {
|
|
4505
|
+
return To = Object.assign || function(e) {
|
|
4475
4506
|
for (var t, n = 1, r = arguments.length; n < r; n++) for (var i in t = arguments[n], t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
|
|
4476
4507
|
return e;
|
|
4477
|
-
},
|
|
4478
|
-
},
|
|
4508
|
+
}, To.apply(this, arguments);
|
|
4509
|
+
}, Eo = function(e, t) {
|
|
4479
4510
|
var n = {};
|
|
4480
4511
|
for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
4481
4512
|
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, r = Object.getOwnPropertySymbols(e); i < r.length; i++) t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
|
|
4482
4513
|
return n;
|
|
4483
|
-
},
|
|
4484
|
-
function
|
|
4485
|
-
var t = e.classes, n = t === void 0 ? [] : t, r = e.currentCentury, i = e.formatYear, a = i === void 0 ?
|
|
4514
|
+
}, Do = "react-calendar__century-view__decades__decade";
|
|
4515
|
+
function Oo(e) {
|
|
4516
|
+
var t = e.classes, n = t === void 0 ? [] : t, r = e.currentCentury, i = e.formatYear, a = i === void 0 ? za : i, o = Eo(e, [
|
|
4486
4517
|
"classes",
|
|
4487
4518
|
"currentCentury",
|
|
4488
4519
|
"formatYear"
|
|
4489
4520
|
]), s = o.date, c = o.locale, l = [];
|
|
4490
|
-
return n && l.push.apply(l, n),
|
|
4521
|
+
return n && l.push.apply(l, n), Do && l.push(Do), Wi(s).getFullYear() !== r && l.push(`${Do}--neighboringCentury`), y(wo, To({}, o, {
|
|
4491
4522
|
classes: l,
|
|
4492
|
-
maxDateTransform:
|
|
4493
|
-
minDateTransform:
|
|
4523
|
+
maxDateTransform: $i,
|
|
4524
|
+
minDateTransform: Xi,
|
|
4494
4525
|
view: "century",
|
|
4495
|
-
children:
|
|
4526
|
+
children: oo(c, a, s)
|
|
4496
4527
|
}));
|
|
4497
4528
|
}
|
|
4498
4529
|
//#endregion
|
|
4499
4530
|
//#region node_modules/react-calendar/dist/esm/CenturyView/Decades.js
|
|
4500
|
-
var
|
|
4501
|
-
return
|
|
4531
|
+
var ko = function() {
|
|
4532
|
+
return ko = Object.assign || function(e) {
|
|
4502
4533
|
for (var t, n = 1, r = arguments.length; n < r; n++) for (var i in t = arguments[n], t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
|
|
4503
4534
|
return e;
|
|
4504
|
-
},
|
|
4505
|
-
},
|
|
4535
|
+
}, ko.apply(this, arguments);
|
|
4536
|
+
}, Ao = function(e, t) {
|
|
4506
4537
|
var n = {};
|
|
4507
4538
|
for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
4508
4539
|
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, r = Object.getOwnPropertySymbols(e); i < r.length; i++) t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
|
|
4509
4540
|
return n;
|
|
4510
4541
|
};
|
|
4511
|
-
function
|
|
4512
|
-
var t = e.activeStartDate, n = e.hover, r = e.showNeighboringCentury, i = e.value, a = e.valueType, o =
|
|
4542
|
+
function jo(e) {
|
|
4543
|
+
var t = e.activeStartDate, n = e.hover, r = e.showNeighboringCentury, i = e.value, a = e.valueType, o = Ao(e, [
|
|
4513
4544
|
"activeStartDate",
|
|
4514
4545
|
"hover",
|
|
4515
4546
|
"showNeighboringCentury",
|
|
4516
4547
|
"value",
|
|
4517
4548
|
"valueType"
|
|
4518
|
-
]), s =
|
|
4519
|
-
return y(
|
|
4549
|
+
]), s = Wa(t), c = s + (r ? 119 : 99);
|
|
4550
|
+
return y(Co, {
|
|
4520
4551
|
className: "react-calendar__century-view__decades",
|
|
4521
|
-
dateTransform:
|
|
4552
|
+
dateTransform: Xi,
|
|
4522
4553
|
dateType: "decade",
|
|
4523
4554
|
end: c,
|
|
4524
4555
|
hover: n,
|
|
4525
4556
|
renderTile: function(e) {
|
|
4526
|
-
var n = e.date, r =
|
|
4527
|
-
return y(
|
|
4557
|
+
var n = e.date, r = Ao(e, ["date"]);
|
|
4558
|
+
return y(Oo, ko({}, o, r, {
|
|
4528
4559
|
activeStartDate: t,
|
|
4529
4560
|
currentCentury: s,
|
|
4530
4561
|
date: n
|
|
@@ -4538,15 +4569,15 @@ function Ao(e) {
|
|
|
4538
4569
|
}
|
|
4539
4570
|
//#endregion
|
|
4540
4571
|
//#region node_modules/react-calendar/dist/esm/CenturyView.js
|
|
4541
|
-
var
|
|
4542
|
-
return
|
|
4572
|
+
var Mo = function() {
|
|
4573
|
+
return Mo = Object.assign || function(e) {
|
|
4543
4574
|
for (var t, n = 1, r = arguments.length; n < r; n++) for (var i in t = arguments[n], t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
|
|
4544
4575
|
return e;
|
|
4545
|
-
},
|
|
4576
|
+
}, Mo.apply(this, arguments);
|
|
4546
4577
|
};
|
|
4547
|
-
function
|
|
4578
|
+
function No(e) {
|
|
4548
4579
|
function t() {
|
|
4549
|
-
return y(
|
|
4580
|
+
return y(jo, Mo({}, e));
|
|
4550
4581
|
}
|
|
4551
4582
|
return y("div", {
|
|
4552
4583
|
className: "react-calendar__century-view",
|
|
@@ -4555,61 +4586,61 @@ function Mo(e) {
|
|
|
4555
4586
|
}
|
|
4556
4587
|
//#endregion
|
|
4557
4588
|
//#region node_modules/react-calendar/dist/esm/DecadeView/Year.js
|
|
4558
|
-
var
|
|
4559
|
-
return
|
|
4589
|
+
var Po = function() {
|
|
4590
|
+
return Po = Object.assign || function(e) {
|
|
4560
4591
|
for (var t, n = 1, r = arguments.length; n < r; n++) for (var i in t = arguments[n], t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
|
|
4561
4592
|
return e;
|
|
4562
|
-
},
|
|
4563
|
-
},
|
|
4593
|
+
}, Po.apply(this, arguments);
|
|
4594
|
+
}, Fo = function(e, t) {
|
|
4564
4595
|
var n = {};
|
|
4565
4596
|
for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
4566
4597
|
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, r = Object.getOwnPropertySymbols(e); i < r.length; i++) t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
|
|
4567
4598
|
return n;
|
|
4568
|
-
},
|
|
4569
|
-
function
|
|
4570
|
-
var t = e.classes, n = t === void 0 ? [] : t, r = e.currentDecade, i = e.formatYear, a = i === void 0 ?
|
|
4599
|
+
}, Io = "react-calendar__decade-view__years__year";
|
|
4600
|
+
function Lo(e) {
|
|
4601
|
+
var t = e.classes, n = t === void 0 ? [] : t, r = e.currentDecade, i = e.formatYear, a = i === void 0 ? za : i, o = Fo(e, [
|
|
4571
4602
|
"classes",
|
|
4572
4603
|
"currentDecade",
|
|
4573
4604
|
"formatYear"
|
|
4574
4605
|
]), s = o.date, c = o.locale, l = [];
|
|
4575
|
-
return n && l.push.apply(l, n),
|
|
4606
|
+
return n && l.push.apply(l, n), Io && l.push(Io), Xi(s).getFullYear() !== r && l.push(`${Io}--neighboringDecade`), y(wo, Po({}, o, {
|
|
4576
4607
|
classes: l,
|
|
4577
|
-
maxDateTransform:
|
|
4578
|
-
minDateTransform:
|
|
4608
|
+
maxDateTransform: aa,
|
|
4609
|
+
minDateTransform: na,
|
|
4579
4610
|
view: "decade",
|
|
4580
4611
|
children: a(c, s)
|
|
4581
4612
|
}));
|
|
4582
4613
|
}
|
|
4583
4614
|
//#endregion
|
|
4584
4615
|
//#region node_modules/react-calendar/dist/esm/DecadeView/Years.js
|
|
4585
|
-
var
|
|
4586
|
-
return
|
|
4616
|
+
var Ro = function() {
|
|
4617
|
+
return Ro = Object.assign || function(e) {
|
|
4587
4618
|
for (var t, n = 1, r = arguments.length; n < r; n++) for (var i in t = arguments[n], t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
|
|
4588
4619
|
return e;
|
|
4589
|
-
},
|
|
4590
|
-
},
|
|
4620
|
+
}, Ro.apply(this, arguments);
|
|
4621
|
+
}, zo = function(e, t) {
|
|
4591
4622
|
var n = {};
|
|
4592
4623
|
for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
4593
4624
|
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, r = Object.getOwnPropertySymbols(e); i < r.length; i++) t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
|
|
4594
4625
|
return n;
|
|
4595
4626
|
};
|
|
4596
|
-
function
|
|
4597
|
-
var t = e.activeStartDate, n = e.hover, r = e.showNeighboringDecade, i = e.value, a = e.valueType, o =
|
|
4627
|
+
function Bo(e) {
|
|
4628
|
+
var t = e.activeStartDate, n = e.hover, r = e.showNeighboringDecade, i = e.value, a = e.valueType, o = zo(e, [
|
|
4598
4629
|
"activeStartDate",
|
|
4599
4630
|
"hover",
|
|
4600
4631
|
"showNeighboringDecade",
|
|
4601
4632
|
"value",
|
|
4602
4633
|
"valueType"
|
|
4603
|
-
]), s =
|
|
4604
|
-
return y(
|
|
4634
|
+
]), s = Ga(t), c = s + (r ? 11 : 9);
|
|
4635
|
+
return y(Co, {
|
|
4605
4636
|
className: "react-calendar__decade-view__years",
|
|
4606
|
-
dateTransform:
|
|
4637
|
+
dateTransform: na,
|
|
4607
4638
|
dateType: "year",
|
|
4608
4639
|
end: c,
|
|
4609
4640
|
hover: n,
|
|
4610
4641
|
renderTile: function(e) {
|
|
4611
|
-
var n = e.date, r =
|
|
4612
|
-
return y(
|
|
4642
|
+
var n = e.date, r = zo(e, ["date"]);
|
|
4643
|
+
return y(Lo, Ro({}, o, r, {
|
|
4613
4644
|
activeStartDate: t,
|
|
4614
4645
|
currentDecade: s,
|
|
4615
4646
|
date: n
|
|
@@ -4622,15 +4653,15 @@ function zo(e) {
|
|
|
4622
4653
|
}
|
|
4623
4654
|
//#endregion
|
|
4624
4655
|
//#region node_modules/react-calendar/dist/esm/DecadeView.js
|
|
4625
|
-
var
|
|
4626
|
-
return
|
|
4656
|
+
var Vo = function() {
|
|
4657
|
+
return Vo = Object.assign || function(e) {
|
|
4627
4658
|
for (var t, n = 1, r = arguments.length; n < r; n++) for (var i in t = arguments[n], t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
|
|
4628
4659
|
return e;
|
|
4629
|
-
},
|
|
4660
|
+
}, Vo.apply(this, arguments);
|
|
4630
4661
|
};
|
|
4631
|
-
function
|
|
4662
|
+
function Ho(e) {
|
|
4632
4663
|
function t() {
|
|
4633
|
-
return y(
|
|
4664
|
+
return y(Bo, Vo({}, e));
|
|
4634
4665
|
}
|
|
4635
4666
|
return y("div", {
|
|
4636
4667
|
className: "react-calendar__decade-view",
|
|
@@ -4639,67 +4670,67 @@ function Vo(e) {
|
|
|
4639
4670
|
}
|
|
4640
4671
|
//#endregion
|
|
4641
4672
|
//#region node_modules/react-calendar/dist/esm/YearView/Month.js
|
|
4642
|
-
var
|
|
4643
|
-
return
|
|
4673
|
+
var Uo = function() {
|
|
4674
|
+
return Uo = Object.assign || function(e) {
|
|
4644
4675
|
for (var t, n = 1, r = arguments.length; n < r; n++) for (var i in t = arguments[n], t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
|
|
4645
4676
|
return e;
|
|
4646
|
-
},
|
|
4647
|
-
},
|
|
4677
|
+
}, Uo.apply(this, arguments);
|
|
4678
|
+
}, Wo = function(e, t) {
|
|
4648
4679
|
var n = {};
|
|
4649
4680
|
for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
4650
4681
|
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, r = Object.getOwnPropertySymbols(e); i < r.length; i++) t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
|
|
4651
4682
|
return n;
|
|
4652
|
-
},
|
|
4683
|
+
}, Go = function(e, t, n) {
|
|
4653
4684
|
if (n || arguments.length === 2) for (var r = 0, i = t.length, a; r < i; r++) (a || !(r in t)) && (a ||= Array.prototype.slice.call(t, 0, r), a[r] = t[r]);
|
|
4654
4685
|
return e.concat(a || Array.prototype.slice.call(t));
|
|
4655
|
-
},
|
|
4656
|
-
function
|
|
4657
|
-
var t = e.classes, n = t === void 0 ? [] : t, r = e.formatMonth, i = r === void 0 ?
|
|
4686
|
+
}, Ko = "react-calendar__year-view__months__month";
|
|
4687
|
+
function qo(e) {
|
|
4688
|
+
var t = e.classes, n = t === void 0 ? [] : t, r = e.formatMonth, i = r === void 0 ? Fa : r, a = e.formatMonthYear, o = a === void 0 ? Ia : a, s = Wo(e, [
|
|
4658
4689
|
"classes",
|
|
4659
4690
|
"formatMonth",
|
|
4660
4691
|
"formatMonthYear"
|
|
4661
4692
|
]), c = s.date, l = s.locale;
|
|
4662
|
-
return y(
|
|
4663
|
-
classes:
|
|
4693
|
+
return y(wo, Uo({}, s, {
|
|
4694
|
+
classes: Go(Go([], n, !0), [Ko], !1),
|
|
4664
4695
|
formatAbbr: o,
|
|
4665
|
-
maxDateTransform:
|
|
4666
|
-
minDateTransform:
|
|
4696
|
+
maxDateTransform: fa,
|
|
4697
|
+
minDateTransform: la,
|
|
4667
4698
|
view: "year",
|
|
4668
4699
|
children: i(l, c)
|
|
4669
4700
|
}));
|
|
4670
4701
|
}
|
|
4671
4702
|
//#endregion
|
|
4672
4703
|
//#region node_modules/react-calendar/dist/esm/YearView/Months.js
|
|
4673
|
-
var
|
|
4674
|
-
return
|
|
4704
|
+
var Jo = function() {
|
|
4705
|
+
return Jo = Object.assign || function(e) {
|
|
4675
4706
|
for (var t, n = 1, r = arguments.length; n < r; n++) for (var i in t = arguments[n], t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
|
|
4676
4707
|
return e;
|
|
4677
|
-
},
|
|
4678
|
-
},
|
|
4708
|
+
}, Jo.apply(this, arguments);
|
|
4709
|
+
}, Yo = function(e, t) {
|
|
4679
4710
|
var n = {};
|
|
4680
4711
|
for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
4681
4712
|
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, r = Object.getOwnPropertySymbols(e); i < r.length; i++) t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
|
|
4682
4713
|
return n;
|
|
4683
4714
|
};
|
|
4684
|
-
function
|
|
4685
|
-
var t = e.activeStartDate, n = e.hover, r = e.value, i = e.valueType, a =
|
|
4715
|
+
function Xo(e) {
|
|
4716
|
+
var t = e.activeStartDate, n = e.hover, r = e.value, i = e.valueType, a = Yo(e, [
|
|
4686
4717
|
"activeStartDate",
|
|
4687
4718
|
"hover",
|
|
4688
4719
|
"value",
|
|
4689
4720
|
"valueType"
|
|
4690
4721
|
]), o = 0, s = 11, c = Q(t);
|
|
4691
|
-
return y(
|
|
4722
|
+
return y(Co, {
|
|
4692
4723
|
className: "react-calendar__year-view__months",
|
|
4693
4724
|
dateTransform: function(e) {
|
|
4694
4725
|
var t = /* @__PURE__ */ new Date();
|
|
4695
|
-
return t.setFullYear(c, e, 1),
|
|
4726
|
+
return t.setFullYear(c, e, 1), la(t);
|
|
4696
4727
|
},
|
|
4697
4728
|
dateType: "month",
|
|
4698
4729
|
end: s,
|
|
4699
4730
|
hover: n,
|
|
4700
4731
|
renderTile: function(e) {
|
|
4701
|
-
var n = e.date, r =
|
|
4702
|
-
return y(
|
|
4732
|
+
var n = e.date, r = Yo(e, ["date"]);
|
|
4733
|
+
return y(qo, Jo({}, a, r, {
|
|
4703
4734
|
activeStartDate: t,
|
|
4704
4735
|
date: n
|
|
4705
4736
|
}), n.getTime());
|
|
@@ -4711,15 +4742,15 @@ function Yo(e) {
|
|
|
4711
4742
|
}
|
|
4712
4743
|
//#endregion
|
|
4713
4744
|
//#region node_modules/react-calendar/dist/esm/YearView.js
|
|
4714
|
-
var
|
|
4715
|
-
return
|
|
4745
|
+
var Zo = function() {
|
|
4746
|
+
return Zo = Object.assign || function(e) {
|
|
4716
4747
|
for (var t, n = 1, r = arguments.length; n < r; n++) for (var i in t = arguments[n], t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
|
|
4717
4748
|
return e;
|
|
4718
|
-
},
|
|
4749
|
+
}, Zo.apply(this, arguments);
|
|
4719
4750
|
};
|
|
4720
|
-
function
|
|
4751
|
+
function Qo(e) {
|
|
4721
4752
|
function t() {
|
|
4722
|
-
return y(
|
|
4753
|
+
return y(Xo, Zo({}, e));
|
|
4723
4754
|
}
|
|
4724
4755
|
return y("div", {
|
|
4725
4756
|
className: "react-calendar__year-view",
|
|
@@ -4728,49 +4759,49 @@ function Zo(e) {
|
|
|
4728
4759
|
}
|
|
4729
4760
|
//#endregion
|
|
4730
4761
|
//#region node_modules/react-calendar/dist/esm/MonthView/Day.js
|
|
4731
|
-
var
|
|
4732
|
-
return
|
|
4762
|
+
var $o = function() {
|
|
4763
|
+
return $o = Object.assign || function(e) {
|
|
4733
4764
|
for (var t, n = 1, r = arguments.length; n < r; n++) for (var i in t = arguments[n], t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
|
|
4734
4765
|
return e;
|
|
4735
|
-
},
|
|
4736
|
-
},
|
|
4766
|
+
}, $o.apply(this, arguments);
|
|
4767
|
+
}, es = function(e, t) {
|
|
4737
4768
|
var n = {};
|
|
4738
4769
|
for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
4739
4770
|
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, r = Object.getOwnPropertySymbols(e); i < r.length; i++) t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
|
|
4740
4771
|
return n;
|
|
4741
|
-
},
|
|
4742
|
-
function
|
|
4743
|
-
var t = e.calendarType, n = e.classes, r = n === void 0 ? [] : n, i = e.currentMonthIndex, a = e.formatDay, o = a === void 0 ?
|
|
4772
|
+
}, ts = "react-calendar__month-view__days__day";
|
|
4773
|
+
function ns(e) {
|
|
4774
|
+
var t = e.calendarType, n = e.classes, r = n === void 0 ? [] : n, i = e.currentMonthIndex, a = e.formatDay, o = a === void 0 ? Na : a, s = e.formatLongDate, c = s === void 0 ? Pa : s, l = es(e, [
|
|
4744
4775
|
"calendarType",
|
|
4745
4776
|
"classes",
|
|
4746
4777
|
"currentMonthIndex",
|
|
4747
4778
|
"formatDay",
|
|
4748
4779
|
"formatLongDate"
|
|
4749
4780
|
]), u = l.date, d = l.locale, f = [];
|
|
4750
|
-
return r && f.push.apply(f, r),
|
|
4781
|
+
return r && f.push.apply(f, r), ts && f.push(ts), co(u, t) && f.push(`${ts}--weekend`), u.getMonth() !== i && f.push(`${ts}--neighboringMonth`), y(wo, $o({}, l, {
|
|
4751
4782
|
classes: f,
|
|
4752
4783
|
formatAbbr: c,
|
|
4753
|
-
maxDateTransform:
|
|
4754
|
-
minDateTransform:
|
|
4784
|
+
maxDateTransform: _a,
|
|
4785
|
+
minDateTransform: ga,
|
|
4755
4786
|
view: "month",
|
|
4756
4787
|
children: o(d, u)
|
|
4757
4788
|
}));
|
|
4758
4789
|
}
|
|
4759
4790
|
//#endregion
|
|
4760
4791
|
//#region node_modules/react-calendar/dist/esm/MonthView/Days.js
|
|
4761
|
-
var
|
|
4762
|
-
return
|
|
4792
|
+
var rs = function() {
|
|
4793
|
+
return rs = Object.assign || function(e) {
|
|
4763
4794
|
for (var t, n = 1, r = arguments.length; n < r; n++) for (var i in t = arguments[n], t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
|
|
4764
4795
|
return e;
|
|
4765
|
-
},
|
|
4766
|
-
},
|
|
4796
|
+
}, rs.apply(this, arguments);
|
|
4797
|
+
}, is = function(e, t) {
|
|
4767
4798
|
var n = {};
|
|
4768
4799
|
for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
4769
4800
|
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, r = Object.getOwnPropertySymbols(e); i < r.length; i++) t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
|
|
4770
4801
|
return n;
|
|
4771
4802
|
};
|
|
4772
|
-
function
|
|
4773
|
-
var t = e.activeStartDate, n = e.calendarType, r = e.hover, i = e.showFixedNumberOfWeeks, a = e.showNeighboringMonth, o = e.value, s = e.valueType, c =
|
|
4803
|
+
function as(e) {
|
|
4804
|
+
var t = e.activeStartDate, n = e.calendarType, r = e.hover, i = e.showFixedNumberOfWeeks, a = e.showNeighboringMonth, o = e.value, s = e.valueType, c = is(e, [
|
|
4774
4805
|
"activeStartDate",
|
|
4775
4806
|
"calendarType",
|
|
4776
4807
|
"hover",
|
|
@@ -4778,28 +4809,28 @@ function is(e) {
|
|
|
4778
4809
|
"showNeighboringMonth",
|
|
4779
4810
|
"value",
|
|
4780
4811
|
"valueType"
|
|
4781
|
-
]), l = Q(t), u =
|
|
4812
|
+
]), l = Q(t), u = Hi(t), d = i || a, f = Ua(t, n), p = d ? 0 : f, m = (d ? -f : 0) + 1, h = (function() {
|
|
4782
4813
|
if (i) return m + 42 - 1;
|
|
4783
|
-
var e =
|
|
4814
|
+
var e = ya(t);
|
|
4784
4815
|
if (a) {
|
|
4785
4816
|
var r = /* @__PURE__ */ new Date();
|
|
4786
|
-
return r.setFullYear(l, u, e), r.setHours(0, 0, 0, 0), e + (7 -
|
|
4817
|
+
return r.setFullYear(l, u, e), r.setHours(0, 0, 0, 0), e + (7 - Ua(r, n) - 1);
|
|
4787
4818
|
}
|
|
4788
4819
|
return e;
|
|
4789
4820
|
})();
|
|
4790
|
-
return y(
|
|
4821
|
+
return y(Co, {
|
|
4791
4822
|
className: "react-calendar__month-view__days",
|
|
4792
4823
|
count: 7,
|
|
4793
4824
|
dateTransform: function(e) {
|
|
4794
4825
|
var t = /* @__PURE__ */ new Date();
|
|
4795
|
-
return t.setFullYear(l, u, e),
|
|
4826
|
+
return t.setFullYear(l, u, e), ga(t);
|
|
4796
4827
|
},
|
|
4797
4828
|
dateType: "day",
|
|
4798
4829
|
hover: r,
|
|
4799
4830
|
end: h,
|
|
4800
4831
|
renderTile: function(e) {
|
|
4801
|
-
var r = e.date, i =
|
|
4802
|
-
return y(
|
|
4832
|
+
var r = e.date, i = is(e, ["date"]);
|
|
4833
|
+
return y(ns, rs({}, c, i, {
|
|
4803
4834
|
activeStartDate: t,
|
|
4804
4835
|
calendarType: n,
|
|
4805
4836
|
currentMonthIndex: u,
|
|
@@ -4814,12 +4845,12 @@ function is(e) {
|
|
|
4814
4845
|
}
|
|
4815
4846
|
//#endregion
|
|
4816
4847
|
//#region node_modules/react-calendar/dist/esm/MonthView/Weekdays.js
|
|
4817
|
-
var
|
|
4818
|
-
function
|
|
4819
|
-
for (var t = e.calendarType, n = e.formatShortWeekday, r = n === void 0 ?
|
|
4820
|
-
var p = new Date(l, u, f -
|
|
4848
|
+
var os = "react-calendar__month-view__weekdays", ss = `${os}__weekday`;
|
|
4849
|
+
function cs(e) {
|
|
4850
|
+
for (var t = e.calendarType, n = e.formatShortWeekday, r = n === void 0 ? La : n, i = e.formatWeekday, a = i === void 0 ? Ra : i, o = e.locale, s = e.onMouseLeave, c = la(/* @__PURE__ */ new Date()), l = Q(c), u = Hi(c), d = [], f = 1; f <= 7; f += 1) {
|
|
4851
|
+
var p = new Date(l, u, f - Ua(c, t)), m = a(o, p);
|
|
4821
4852
|
d.push(y("div", {
|
|
4822
|
-
className:
|
|
4853
|
+
className: Ti(ss, so(p) && `${ss}--current`, co(p, t) && `${ss}--weekend`),
|
|
4823
4854
|
children: y("abbr", {
|
|
4824
4855
|
"aria-label": m,
|
|
4825
4856
|
title: m,
|
|
@@ -4827,8 +4858,8 @@ function ss(e) {
|
|
|
4827
4858
|
})
|
|
4828
4859
|
}, f));
|
|
4829
4860
|
}
|
|
4830
|
-
return y(
|
|
4831
|
-
className:
|
|
4861
|
+
return y(ho, {
|
|
4862
|
+
className: os,
|
|
4832
4863
|
count: 7,
|
|
4833
4864
|
onFocus: s,
|
|
4834
4865
|
onMouseOver: s,
|
|
@@ -4837,27 +4868,27 @@ function ss(e) {
|
|
|
4837
4868
|
}
|
|
4838
4869
|
//#endregion
|
|
4839
4870
|
//#region node_modules/react-calendar/dist/esm/MonthView/WeekNumber.js
|
|
4840
|
-
var
|
|
4841
|
-
return
|
|
4871
|
+
var ls = function() {
|
|
4872
|
+
return ls = Object.assign || function(e) {
|
|
4842
4873
|
for (var t, n = 1, r = arguments.length; n < r; n++) for (var i in t = arguments[n], t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
|
|
4843
4874
|
return e;
|
|
4844
|
-
},
|
|
4845
|
-
},
|
|
4875
|
+
}, ls.apply(this, arguments);
|
|
4876
|
+
}, us = function(e, t) {
|
|
4846
4877
|
var n = {};
|
|
4847
4878
|
for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
4848
4879
|
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, r = Object.getOwnPropertySymbols(e); i < r.length; i++) t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
|
|
4849
4880
|
return n;
|
|
4850
|
-
},
|
|
4851
|
-
function
|
|
4881
|
+
}, ds = "react-calendar__tile";
|
|
4882
|
+
function fs(e) {
|
|
4852
4883
|
var t = e.onClickWeekNumber, n = e.weekNumber, r = y("span", { children: n });
|
|
4853
4884
|
if (t) {
|
|
4854
|
-
var i = e.date, a = e.onClickWeekNumber, o = e.weekNumber, s =
|
|
4885
|
+
var i = e.date, a = e.onClickWeekNumber, o = e.weekNumber, s = us(e, [
|
|
4855
4886
|
"date",
|
|
4856
4887
|
"onClickWeekNumber",
|
|
4857
4888
|
"weekNumber"
|
|
4858
4889
|
]);
|
|
4859
|
-
return y("button",
|
|
4860
|
-
className:
|
|
4890
|
+
return y("button", ls({}, s, {
|
|
4891
|
+
className: ds,
|
|
4861
4892
|
onClick: function(e) {
|
|
4862
4893
|
return a(o, i, e);
|
|
4863
4894
|
},
|
|
@@ -4866,30 +4897,30 @@ function ds(e) {
|
|
|
4866
4897
|
}));
|
|
4867
4898
|
}
|
|
4868
4899
|
e.date, e.onClickWeekNumber, e.weekNumber;
|
|
4869
|
-
var s =
|
|
4900
|
+
var s = us(e, [
|
|
4870
4901
|
"date",
|
|
4871
4902
|
"onClickWeekNumber",
|
|
4872
4903
|
"weekNumber"
|
|
4873
4904
|
]);
|
|
4874
|
-
return y("div",
|
|
4875
|
-
className:
|
|
4905
|
+
return y("div", ls({}, s, {
|
|
4906
|
+
className: ds,
|
|
4876
4907
|
children: r
|
|
4877
4908
|
}));
|
|
4878
4909
|
}
|
|
4879
4910
|
//#endregion
|
|
4880
4911
|
//#region node_modules/react-calendar/dist/esm/MonthView/WeekNumbers.js
|
|
4881
|
-
function
|
|
4912
|
+
function ps(e) {
|
|
4882
4913
|
var t = e.activeStartDate, n = e.calendarType, r = e.onClickWeekNumber, i = e.onMouseLeave, a = e.showFixedNumberOfWeeks, o = (function() {
|
|
4883
4914
|
if (a) return 6;
|
|
4884
|
-
var e =
|
|
4915
|
+
var e = ya(t) - (7 - Ua(t, n));
|
|
4885
4916
|
return 1 + Math.ceil(e / 7);
|
|
4886
4917
|
})(), s = (function() {
|
|
4887
|
-
for (var e = Q(t), r =
|
|
4918
|
+
for (var e = Q(t), r = Hi(t), i = Ui(t), a = [], s = 0; s < o; s += 1) a.push(Ka(new Date(e, r, i + s * 7), n));
|
|
4888
4919
|
return a;
|
|
4889
4920
|
})(), c = s.map(function(e) {
|
|
4890
|
-
return
|
|
4921
|
+
return qa(e, n);
|
|
4891
4922
|
});
|
|
4892
|
-
return y(
|
|
4923
|
+
return y(ho, {
|
|
4893
4924
|
className: "react-calendar__month-view__weekNumbers",
|
|
4894
4925
|
count: o,
|
|
4895
4926
|
direction: "column",
|
|
@@ -4902,7 +4933,7 @@ function fs(e) {
|
|
|
4902
4933
|
children: c.map(function(e, t) {
|
|
4903
4934
|
var n = s[t];
|
|
4904
4935
|
if (!n) throw Error("date is not defined");
|
|
4905
|
-
return y(
|
|
4936
|
+
return y(fs, {
|
|
4906
4937
|
date: n,
|
|
4907
4938
|
onClickWeekNumber: r,
|
|
4908
4939
|
weekNumber: e
|
|
@@ -4912,26 +4943,26 @@ function fs(e) {
|
|
|
4912
4943
|
}
|
|
4913
4944
|
//#endregion
|
|
4914
4945
|
//#region node_modules/react-calendar/dist/esm/MonthView.js
|
|
4915
|
-
var
|
|
4916
|
-
return
|
|
4946
|
+
var ms = function() {
|
|
4947
|
+
return ms = Object.assign || function(e) {
|
|
4917
4948
|
for (var t, n = 1, r = arguments.length; n < r; n++) for (var i in t = arguments[n], t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
|
|
4918
4949
|
return e;
|
|
4919
|
-
},
|
|
4920
|
-
},
|
|
4950
|
+
}, ms.apply(this, arguments);
|
|
4951
|
+
}, hs = function(e, t) {
|
|
4921
4952
|
var n = {};
|
|
4922
4953
|
for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
4923
4954
|
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, r = Object.getOwnPropertySymbols(e); i < r.length; i++) t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
|
|
4924
4955
|
return n;
|
|
4925
4956
|
};
|
|
4926
|
-
function
|
|
4927
|
-
if (e) for (var t = 0, n = Object.entries(
|
|
4957
|
+
function gs(e) {
|
|
4958
|
+
if (e) for (var t = 0, n = Object.entries(ba); t < n.length; t++) {
|
|
4928
4959
|
var r = n[t], i = r[0];
|
|
4929
4960
|
if (r[1].includes(e)) return i;
|
|
4930
4961
|
}
|
|
4931
4962
|
return $.ISO_8601;
|
|
4932
4963
|
}
|
|
4933
|
-
function
|
|
4934
|
-
var t = e.activeStartDate, n = e.locale, r = e.onMouseLeave, i = e.showFixedNumberOfWeeks, a = e.calendarType, o = a === void 0 ?
|
|
4964
|
+
function _s(e) {
|
|
4965
|
+
var t = e.activeStartDate, n = e.locale, r = e.onMouseLeave, i = e.showFixedNumberOfWeeks, a = e.calendarType, o = a === void 0 ? gs(n) : a, s = e.formatShortWeekday, c = e.formatWeekday, l = e.onClickWeekNumber, u = e.showWeekNumbers, d = hs(e, [
|
|
4935
4966
|
"calendarType",
|
|
4936
4967
|
"formatShortWeekday",
|
|
4937
4968
|
"formatWeekday",
|
|
@@ -4939,7 +4970,7 @@ function gs(e) {
|
|
|
4939
4970
|
"showWeekNumbers"
|
|
4940
4971
|
]);
|
|
4941
4972
|
function f() {
|
|
4942
|
-
return y(
|
|
4973
|
+
return y(cs, {
|
|
4943
4974
|
calendarType: o,
|
|
4944
4975
|
formatShortWeekday: s,
|
|
4945
4976
|
formatWeekday: c,
|
|
@@ -4948,7 +4979,7 @@ function gs(e) {
|
|
|
4948
4979
|
});
|
|
4949
4980
|
}
|
|
4950
4981
|
function p() {
|
|
4951
|
-
return u ? y(
|
|
4982
|
+
return u ? y(ps, {
|
|
4952
4983
|
activeStartDate: t,
|
|
4953
4984
|
calendarType: o,
|
|
4954
4985
|
onClickWeekNumber: l,
|
|
@@ -4957,11 +4988,11 @@ function gs(e) {
|
|
|
4957
4988
|
}) : null;
|
|
4958
4989
|
}
|
|
4959
4990
|
function m() {
|
|
4960
|
-
return y(
|
|
4991
|
+
return y(as, ms({ calendarType: o }, d));
|
|
4961
4992
|
}
|
|
4962
4993
|
var h = "react-calendar__month-view";
|
|
4963
4994
|
return y("div", {
|
|
4964
|
-
className:
|
|
4995
|
+
className: Ti(h, u ? `${h}--weekNumbers` : ""),
|
|
4965
4996
|
children: b("div", {
|
|
4966
4997
|
style: {
|
|
4967
4998
|
display: "flex",
|
|
@@ -4979,79 +5010,79 @@ function gs(e) {
|
|
|
4979
5010
|
}
|
|
4980
5011
|
//#endregion
|
|
4981
5012
|
//#region node_modules/react-calendar/dist/esm/Calendar.js
|
|
4982
|
-
var
|
|
4983
|
-
return
|
|
5013
|
+
var vs = function() {
|
|
5014
|
+
return vs = Object.assign || function(e) {
|
|
4984
5015
|
for (var t, n = 1, r = arguments.length; n < r; n++) for (var i in t = arguments[n], t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
|
|
4985
5016
|
return e;
|
|
4986
|
-
},
|
|
4987
|
-
},
|
|
5017
|
+
}, vs.apply(this, arguments);
|
|
5018
|
+
}, ys = "react-calendar", bs = [
|
|
4988
5019
|
"century",
|
|
4989
5020
|
"decade",
|
|
4990
5021
|
"year",
|
|
4991
5022
|
"month"
|
|
4992
|
-
],
|
|
5023
|
+
], xs = [
|
|
4993
5024
|
"decade",
|
|
4994
5025
|
"year",
|
|
4995
5026
|
"month",
|
|
4996
5027
|
"day"
|
|
4997
|
-
],
|
|
4998
|
-
|
|
4999
|
-
var
|
|
5000
|
-
function
|
|
5028
|
+
], Ss = /* @__PURE__ */ new Date();
|
|
5029
|
+
Ss.setFullYear(1, 0, 1), Ss.setHours(0, 0, 0, 0);
|
|
5030
|
+
var Cs = /* @__PURE__ */ new Date(864e13);
|
|
5031
|
+
function ws(e) {
|
|
5001
5032
|
return e instanceof Date ? e : new Date(e);
|
|
5002
5033
|
}
|
|
5003
|
-
function
|
|
5004
|
-
return
|
|
5005
|
-
}
|
|
5006
|
-
function Ts(e, t, n) {
|
|
5007
|
-
return ws(t, n).indexOf(e) !== -1;
|
|
5034
|
+
function Ts(e, t) {
|
|
5035
|
+
return bs.slice(bs.indexOf(e), bs.indexOf(t) + 1);
|
|
5008
5036
|
}
|
|
5009
5037
|
function Es(e, t, n) {
|
|
5010
|
-
return
|
|
5038
|
+
return Ts(t, n).indexOf(e) !== -1;
|
|
5011
5039
|
}
|
|
5012
|
-
function Ds(e) {
|
|
5013
|
-
return
|
|
5040
|
+
function Ds(e, t, n) {
|
|
5041
|
+
return e && Es(e, t, n) ? e : n;
|
|
5014
5042
|
}
|
|
5015
|
-
function Os(e
|
|
5043
|
+
function Os(e) {
|
|
5044
|
+
return xs[bs.indexOf(e)];
|
|
5045
|
+
}
|
|
5046
|
+
function ks(e, t) {
|
|
5016
5047
|
var n = Array.isArray(e) ? e[t] : e;
|
|
5017
5048
|
if (!n) return null;
|
|
5018
|
-
var r =
|
|
5049
|
+
var r = ws(n);
|
|
5019
5050
|
if (Number.isNaN(r.getTime())) throw Error(`Invalid date: ${e}`);
|
|
5020
5051
|
return r;
|
|
5021
5052
|
}
|
|
5022
|
-
function
|
|
5023
|
-
var n = e.value, r = e.minDate, i = e.maxDate, a = e.maxDetail, o =
|
|
5053
|
+
function As(e, t) {
|
|
5054
|
+
var n = e.value, r = e.minDate, i = e.maxDate, a = e.maxDetail, o = ks(n, t);
|
|
5024
5055
|
if (!o) return null;
|
|
5025
|
-
var s =
|
|
5026
|
-
return
|
|
5056
|
+
var s = Os(a);
|
|
5057
|
+
return go((function() {
|
|
5027
5058
|
switch (t) {
|
|
5028
|
-
case 0: return
|
|
5029
|
-
case 1: return
|
|
5059
|
+
case 0: return Ja(s, o);
|
|
5060
|
+
case 1: return $a(s, o);
|
|
5030
5061
|
default: throw Error(`Invalid index value: ${t}`);
|
|
5031
5062
|
}
|
|
5032
5063
|
})(), r, i);
|
|
5033
5064
|
}
|
|
5034
|
-
var
|
|
5035
|
-
return
|
|
5036
|
-
}, js = function(e) {
|
|
5037
|
-
return ks(e, 1);
|
|
5065
|
+
var js = function(e) {
|
|
5066
|
+
return As(e, 0);
|
|
5038
5067
|
}, Ms = function(e) {
|
|
5039
|
-
return
|
|
5068
|
+
return As(e, 1);
|
|
5069
|
+
}, Ns = function(e) {
|
|
5070
|
+
return [js, Ms].map(function(t) {
|
|
5040
5071
|
return t(e);
|
|
5041
5072
|
});
|
|
5042
5073
|
};
|
|
5043
|
-
function
|
|
5074
|
+
function Ps(e) {
|
|
5044
5075
|
var t = e.maxDate, n = e.maxDetail, r = e.minDate, i = e.minDetail, a = e.value, o = e.view;
|
|
5045
|
-
return
|
|
5076
|
+
return Ja(Ds(o, i, n), js({
|
|
5046
5077
|
value: a,
|
|
5047
5078
|
minDate: r,
|
|
5048
5079
|
maxDate: t,
|
|
5049
5080
|
maxDetail: n
|
|
5050
5081
|
}) || /* @__PURE__ */ new Date());
|
|
5051
5082
|
}
|
|
5052
|
-
function
|
|
5053
|
-
var t = e.activeStartDate, n = e.defaultActiveStartDate, r = e.defaultValue, i = e.defaultView, a = e.maxDate, o = e.maxDetail, s = e.minDate, c = e.minDetail, l = e.value, u = e.view, d =
|
|
5054
|
-
return f ?
|
|
5083
|
+
function Fs(e) {
|
|
5084
|
+
var t = e.activeStartDate, n = e.defaultActiveStartDate, r = e.defaultValue, i = e.defaultView, a = e.maxDate, o = e.maxDetail, s = e.minDate, c = e.minDetail, l = e.value, u = e.view, d = Ds(u, c, o), f = t || n;
|
|
5085
|
+
return f ? Ja(d, f) : Ps({
|
|
5055
5086
|
maxDate: a,
|
|
5056
5087
|
maxDetail: o,
|
|
5057
5088
|
minDate: s,
|
|
@@ -5060,18 +5091,18 @@ function Ps(e) {
|
|
|
5060
5091
|
view: u || i
|
|
5061
5092
|
});
|
|
5062
5093
|
}
|
|
5063
|
-
function
|
|
5094
|
+
function Is(e) {
|
|
5064
5095
|
return e && (!Array.isArray(e) || e.length === 1);
|
|
5065
5096
|
}
|
|
5066
|
-
function
|
|
5097
|
+
function Ls(e, t) {
|
|
5067
5098
|
return e instanceof Date && t instanceof Date && e.getTime() === t.getTime();
|
|
5068
5099
|
}
|
|
5069
5100
|
//#endregion
|
|
5070
5101
|
//#region node_modules/react-calendar/dist/esm/index.js
|
|
5071
|
-
var
|
|
5072
|
-
var n = e.activeStartDate, r = e.allowPartialRange, i = e.calendarType, a = e.className, s = e.defaultActiveStartDate, c = e.defaultValue, l = e.defaultView, u = e.formatDay, d = e.formatLongDate, p = e.formatMonth, m = e.formatMonthYear, h = e.formatShortWeekday, _ = e.formatWeekday, v = e.formatYear, x = e.goToRangeStartOnSelect, S = x === void 0 || x, C = e.inputRef, w = e.locale, T = e.maxDate, E = T === void 0 ?
|
|
5073
|
-
return e === null ? null :
|
|
5074
|
-
}) : c == null ? null :
|
|
5102
|
+
var Rs = a(function(e, t) {
|
|
5103
|
+
var n = e.activeStartDate, r = e.allowPartialRange, i = e.calendarType, a = e.className, s = e.defaultActiveStartDate, c = e.defaultValue, l = e.defaultView, u = e.formatDay, d = e.formatLongDate, p = e.formatMonth, m = e.formatMonthYear, h = e.formatShortWeekday, _ = e.formatWeekday, v = e.formatYear, x = e.goToRangeStartOnSelect, S = x === void 0 || x, C = e.inputRef, w = e.locale, T = e.maxDate, E = T === void 0 ? Cs : T, D = e.maxDetail, O = D === void 0 ? "month" : D, k = e.minDate, A = k === void 0 ? Ss : k, j = e.minDetail, M = j === void 0 ? "century" : j, N = e.navigationAriaLabel, ee = e.navigationAriaLive, P = e.navigationLabel, te = e.next2AriaLabel, F = e.next2Label, ne = e.nextAriaLabel, re = e.nextLabel, I = e.onActiveStartDateChange, L = e.onChange, R = e.onClickDay, z = e.onClickDecade, ie = e.onClickMonth, ae = e.onClickWeekNumber, oe = e.onClickYear, se = e.onDrillDown, ce = e.onDrillUp, le = e.onViewChange, ue = e.prev2AriaLabel, de = e.prev2Label, B = e.prevAriaLabel, fe = e.prevLabel, V = e.returnValue, pe = V === void 0 ? "start" : V, me = e.selectRange, he = e.showDoubleView, ge = e.showFixedNumberOfWeeks, _e = e.showNavigation, ve = _e === void 0 || _e, ye = e.showNeighboringCentury, H = e.showNeighboringDecade, be = e.showNeighboringMonth, xe = be === void 0 || be, Se = e.showWeekNumbers, Ce = e.tileClassName, U = e.tileContent, we = e.tileDisabled, Te = e.value, Ee = e.view, De = g(s), Oe = De[0], W = De[1], ke = g(null), G = ke[0], Ae = ke[1], je = g(Array.isArray(c) ? c.map(function(e) {
|
|
5104
|
+
return e === null ? null : ws(e);
|
|
5105
|
+
}) : c == null ? null : ws(c)), Me = je[0], Ne = je[1], Pe = g(l), Fe = Pe[0], Ie = Pe[1], Le = n || Oe || Fs({
|
|
5075
5106
|
activeStartDate: n,
|
|
5076
5107
|
defaultActiveStartDate: s,
|
|
5077
5108
|
defaultValue: c,
|
|
@@ -5080,21 +5111,21 @@ var Ls = a(function(e, t) {
|
|
|
5080
5111
|
maxDetail: O,
|
|
5081
5112
|
minDate: A,
|
|
5082
5113
|
minDetail: M,
|
|
5083
|
-
value:
|
|
5084
|
-
view:
|
|
5114
|
+
value: Te,
|
|
5115
|
+
view: Ee
|
|
5085
5116
|
}), Re = (function() {
|
|
5086
5117
|
var e = (function() {
|
|
5087
|
-
return
|
|
5118
|
+
return me && Is(Me) || Te === void 0 ? Me : Te;
|
|
5088
5119
|
})();
|
|
5089
5120
|
return e ? Array.isArray(e) ? e.map(function(e) {
|
|
5090
|
-
return e === null ? null :
|
|
5091
|
-
}) : e === null ? null :
|
|
5092
|
-
})(), ze =
|
|
5121
|
+
return e === null ? null : ws(e);
|
|
5122
|
+
}) : e === null ? null : ws(e) : null;
|
|
5123
|
+
})(), ze = Os(O), K = Ds(Ee || Fe, M, O), q = Ts(M, O), J = me ? G : null, Be = q.indexOf(K) < q.length - 1, Y = q.indexOf(K) > 0, Ve = o(function(e) {
|
|
5093
5124
|
return (function() {
|
|
5094
|
-
switch (
|
|
5095
|
-
case "start": return
|
|
5096
|
-
case "end": return
|
|
5097
|
-
case "range": return
|
|
5125
|
+
switch (pe) {
|
|
5126
|
+
case "start": return js;
|
|
5127
|
+
case "end": return Ms;
|
|
5128
|
+
case "range": return Ns;
|
|
5098
5129
|
default: throw Error("Invalid returnValue.");
|
|
5099
5130
|
}
|
|
5100
5131
|
})()({
|
|
@@ -5107,27 +5138,27 @@ var Ls = a(function(e, t) {
|
|
|
5107
5138
|
E,
|
|
5108
5139
|
O,
|
|
5109
5140
|
A,
|
|
5110
|
-
|
|
5141
|
+
pe
|
|
5111
5142
|
]), He = o(function(e, t) {
|
|
5112
|
-
|
|
5143
|
+
W(e);
|
|
5113
5144
|
var n = {
|
|
5114
5145
|
action: t,
|
|
5115
5146
|
activeStartDate: e,
|
|
5116
5147
|
value: Re,
|
|
5117
5148
|
view: K
|
|
5118
5149
|
};
|
|
5119
|
-
I && !
|
|
5150
|
+
I && !Ls(Le, e) && I(n);
|
|
5120
5151
|
}, [
|
|
5121
|
-
|
|
5152
|
+
Le,
|
|
5122
5153
|
I,
|
|
5123
5154
|
Re,
|
|
5124
5155
|
K
|
|
5125
5156
|
]), Ue = o(function(e, t) {
|
|
5126
5157
|
var n = (function() {
|
|
5127
5158
|
switch (K) {
|
|
5128
|
-
case "century": return
|
|
5129
|
-
case "decade": return
|
|
5130
|
-
case "year": return
|
|
5159
|
+
case "century": return z;
|
|
5160
|
+
case "decade": return oe;
|
|
5161
|
+
case "year": return ie;
|
|
5131
5162
|
case "month": return R;
|
|
5132
5163
|
default: throw Error(`Invalid view: ${K}.`);
|
|
5133
5164
|
}
|
|
@@ -5135,31 +5166,31 @@ var Ls = a(function(e, t) {
|
|
|
5135
5166
|
n && n(e, t);
|
|
5136
5167
|
}, [
|
|
5137
5168
|
R,
|
|
5169
|
+
z,
|
|
5138
5170
|
ie,
|
|
5139
|
-
|
|
5140
|
-
se,
|
|
5171
|
+
oe,
|
|
5141
5172
|
K
|
|
5142
5173
|
]), We = o(function(e, t) {
|
|
5143
5174
|
if (Be) {
|
|
5144
5175
|
Ue(e, t);
|
|
5145
5176
|
var n = q[q.indexOf(K) + 1];
|
|
5146
5177
|
if (!n) throw Error("Attempted to drill down from the lowest view.");
|
|
5147
|
-
|
|
5178
|
+
W(e), Ie(n);
|
|
5148
5179
|
var r = {
|
|
5149
5180
|
action: "drillDown",
|
|
5150
5181
|
activeStartDate: e,
|
|
5151
5182
|
value: Re,
|
|
5152
5183
|
view: n
|
|
5153
5184
|
};
|
|
5154
|
-
I && !
|
|
5185
|
+
I && !Ls(Le, e) && I(r), le && K !== n && le(r), se && se(r);
|
|
5155
5186
|
}
|
|
5156
5187
|
}, [
|
|
5157
|
-
|
|
5188
|
+
Le,
|
|
5158
5189
|
Be,
|
|
5159
5190
|
I,
|
|
5160
5191
|
Ue,
|
|
5161
|
-
|
|
5162
|
-
|
|
5192
|
+
se,
|
|
5193
|
+
le,
|
|
5163
5194
|
Re,
|
|
5164
5195
|
K,
|
|
5165
5196
|
q
|
|
@@ -5167,38 +5198,38 @@ var Ls = a(function(e, t) {
|
|
|
5167
5198
|
if (Y) {
|
|
5168
5199
|
var e = q[q.indexOf(K) - 1];
|
|
5169
5200
|
if (!e) throw Error("Attempted to drill up from the highest view.");
|
|
5170
|
-
var t =
|
|
5171
|
-
|
|
5201
|
+
var t = Ja(e, Le);
|
|
5202
|
+
W(t), Ie(e);
|
|
5172
5203
|
var n = {
|
|
5173
5204
|
action: "drillUp",
|
|
5174
5205
|
activeStartDate: t,
|
|
5175
5206
|
value: Re,
|
|
5176
5207
|
view: e
|
|
5177
5208
|
};
|
|
5178
|
-
I && !
|
|
5209
|
+
I && !Ls(Le, t) && I(n), le && K !== e && le(n), ce && ce(n);
|
|
5179
5210
|
}
|
|
5180
5211
|
}, [
|
|
5181
|
-
|
|
5212
|
+
Le,
|
|
5182
5213
|
Y,
|
|
5183
5214
|
I,
|
|
5215
|
+
ce,
|
|
5184
5216
|
le,
|
|
5185
|
-
ue,
|
|
5186
5217
|
Re,
|
|
5187
5218
|
K,
|
|
5188
5219
|
q
|
|
5189
5220
|
]), Ke = o(function(e, t) {
|
|
5190
5221
|
var n = Re;
|
|
5191
5222
|
Ue(e, t);
|
|
5192
|
-
var i =
|
|
5193
|
-
if (
|
|
5194
|
-
if (i) a =
|
|
5223
|
+
var i = me && !Is(n), a;
|
|
5224
|
+
if (me) {
|
|
5225
|
+
if (i) a = Ja(ze, e);
|
|
5195
5226
|
else {
|
|
5196
5227
|
if (!n) throw Error("previousValue is required");
|
|
5197
5228
|
if (Array.isArray(n)) throw Error("previousValue must not be an array");
|
|
5198
|
-
a =
|
|
5229
|
+
a = ro(ze, n, e);
|
|
5199
5230
|
}
|
|
5200
5231
|
} else a = Ve(e);
|
|
5201
|
-
var o = !
|
|
5232
|
+
var o = !me || i || S ? Ps({
|
|
5202
5233
|
maxDate: E,
|
|
5203
5234
|
maxDetail: O,
|
|
5204
5235
|
minDate: A,
|
|
@@ -5206,16 +5237,16 @@ var Ls = a(function(e, t) {
|
|
|
5206
5237
|
value: a,
|
|
5207
5238
|
view: K
|
|
5208
5239
|
}) : null;
|
|
5209
|
-
t.persist(),
|
|
5240
|
+
t.persist(), W(o), Ne(a);
|
|
5210
5241
|
var s = {
|
|
5211
5242
|
action: "onChange",
|
|
5212
5243
|
activeStartDate: o,
|
|
5213
5244
|
value: a,
|
|
5214
5245
|
view: K
|
|
5215
5246
|
};
|
|
5216
|
-
if (I && !
|
|
5217
|
-
if (
|
|
5218
|
-
if (!
|
|
5247
|
+
if (I && !Ls(Le, o) && I(s), L) {
|
|
5248
|
+
if (me) {
|
|
5249
|
+
if (!Is(a)) L(a || null, t);
|
|
5219
5250
|
else if (r) {
|
|
5220
5251
|
if (Array.isArray(a)) throw Error("value must not be an array");
|
|
5221
5252
|
L([a || null, null], t);
|
|
@@ -5223,7 +5254,7 @@ var Ls = a(function(e, t) {
|
|
|
5223
5254
|
} else L(a || null, t);
|
|
5224
5255
|
}
|
|
5225
5256
|
}, [
|
|
5226
|
-
|
|
5257
|
+
Le,
|
|
5227
5258
|
r,
|
|
5228
5259
|
Ve,
|
|
5229
5260
|
S,
|
|
@@ -5234,20 +5265,20 @@ var Ls = a(function(e, t) {
|
|
|
5234
5265
|
I,
|
|
5235
5266
|
L,
|
|
5236
5267
|
Ue,
|
|
5237
|
-
|
|
5268
|
+
me,
|
|
5238
5269
|
Re,
|
|
5239
5270
|
ze,
|
|
5240
5271
|
K
|
|
5241
5272
|
]);
|
|
5242
5273
|
function qe(e) {
|
|
5243
|
-
|
|
5274
|
+
Ae(e);
|
|
5244
5275
|
}
|
|
5245
5276
|
function Je() {
|
|
5246
|
-
|
|
5277
|
+
Ae(null);
|
|
5247
5278
|
}
|
|
5248
5279
|
f(t, function() {
|
|
5249
5280
|
return {
|
|
5250
|
-
activeStartDate:
|
|
5281
|
+
activeStartDate: Le,
|
|
5251
5282
|
drillDown: We,
|
|
5252
5283
|
drillUp: Ge,
|
|
5253
5284
|
onChange: Ke,
|
|
@@ -5256,7 +5287,7 @@ var Ls = a(function(e, t) {
|
|
|
5256
5287
|
view: K
|
|
5257
5288
|
};
|
|
5258
5289
|
}, [
|
|
5259
|
-
|
|
5290
|
+
Le,
|
|
5260
5291
|
We,
|
|
5261
5292
|
Ge,
|
|
5262
5293
|
Ke,
|
|
@@ -5266,50 +5297,50 @@ var Ls = a(function(e, t) {
|
|
|
5266
5297
|
]);
|
|
5267
5298
|
function Ye(e) {
|
|
5268
5299
|
var t = {
|
|
5269
|
-
activeStartDate: e ?
|
|
5300
|
+
activeStartDate: e ? Xa(K, Le) : Ja(K, Le),
|
|
5270
5301
|
hover: J,
|
|
5271
5302
|
locale: w,
|
|
5272
5303
|
maxDate: E,
|
|
5273
5304
|
minDate: A,
|
|
5274
5305
|
onClick: Be ? We : Ke,
|
|
5275
|
-
onMouseOver:
|
|
5276
|
-
tileClassName:
|
|
5277
|
-
tileContent:
|
|
5278
|
-
tileDisabled:
|
|
5306
|
+
onMouseOver: me ? qe : void 0,
|
|
5307
|
+
tileClassName: Ce,
|
|
5308
|
+
tileContent: U,
|
|
5309
|
+
tileDisabled: we,
|
|
5279
5310
|
value: Re,
|
|
5280
5311
|
valueType: ze
|
|
5281
5312
|
};
|
|
5282
5313
|
switch (K) {
|
|
5283
|
-
case "century": return y(
|
|
5314
|
+
case "century": return y(No, vs({
|
|
5284
5315
|
formatYear: v,
|
|
5285
|
-
showNeighboringCentury:
|
|
5316
|
+
showNeighboringCentury: ye
|
|
5286
5317
|
}, t));
|
|
5287
|
-
case "decade": return y(
|
|
5318
|
+
case "decade": return y(Ho, vs({
|
|
5288
5319
|
formatYear: v,
|
|
5289
|
-
showNeighboringDecade:
|
|
5320
|
+
showNeighboringDecade: H
|
|
5290
5321
|
}, t));
|
|
5291
|
-
case "year": return y(
|
|
5322
|
+
case "year": return y(Qo, vs({
|
|
5292
5323
|
formatMonth: p,
|
|
5293
5324
|
formatMonthYear: m
|
|
5294
5325
|
}, t));
|
|
5295
|
-
case "month": return y(
|
|
5326
|
+
case "month": return y(_s, vs({
|
|
5296
5327
|
calendarType: i,
|
|
5297
5328
|
formatDay: u,
|
|
5298
5329
|
formatLongDate: d,
|
|
5299
5330
|
formatShortWeekday: h,
|
|
5300
5331
|
formatWeekday: _,
|
|
5301
|
-
onClickWeekNumber:
|
|
5302
|
-
onMouseLeave:
|
|
5303
|
-
showFixedNumberOfWeeks:
|
|
5304
|
-
showNeighboringMonth:
|
|
5305
|
-
showWeekNumbers:
|
|
5332
|
+
onClickWeekNumber: ae,
|
|
5333
|
+
onMouseLeave: me ? Je : void 0,
|
|
5334
|
+
showFixedNumberOfWeeks: ge === void 0 ? he : ge,
|
|
5335
|
+
showNeighboringMonth: xe,
|
|
5336
|
+
showWeekNumbers: Se
|
|
5306
5337
|
}, t));
|
|
5307
5338
|
default: throw Error(`Invalid view: ${K}.`);
|
|
5308
5339
|
}
|
|
5309
5340
|
}
|
|
5310
5341
|
function Xe() {
|
|
5311
|
-
return
|
|
5312
|
-
activeStartDate:
|
|
5342
|
+
return ve ? y(uo, {
|
|
5343
|
+
activeStartDate: Le,
|
|
5313
5344
|
drillUp: Ge,
|
|
5314
5345
|
formatMonthYear: m,
|
|
5315
5346
|
formatYear: v,
|
|
@@ -5323,27 +5354,27 @@ var Ls = a(function(e, t) {
|
|
|
5323
5354
|
next2Label: F,
|
|
5324
5355
|
nextAriaLabel: ne,
|
|
5325
5356
|
nextLabel: re,
|
|
5326
|
-
prev2AriaLabel:
|
|
5327
|
-
prev2Label:
|
|
5328
|
-
prevAriaLabel:
|
|
5329
|
-
prevLabel:
|
|
5357
|
+
prev2AriaLabel: ue,
|
|
5358
|
+
prev2Label: de,
|
|
5359
|
+
prevAriaLabel: B,
|
|
5360
|
+
prevLabel: fe,
|
|
5330
5361
|
setActiveStartDate: He,
|
|
5331
|
-
showDoubleView:
|
|
5362
|
+
showDoubleView: he,
|
|
5332
5363
|
view: K,
|
|
5333
5364
|
views: q
|
|
5334
5365
|
}) : null;
|
|
5335
5366
|
}
|
|
5336
5367
|
return b("div", {
|
|
5337
|
-
className:
|
|
5368
|
+
className: Ti(ys, me && (Array.isArray(Re) ? Re : [Re]).length === 1 && `${ys}--selectRange`, he && `${ys}--doubleView`, a),
|
|
5338
5369
|
ref: C,
|
|
5339
5370
|
children: [Xe(), b("div", {
|
|
5340
|
-
className: `${
|
|
5341
|
-
onBlur:
|
|
5342
|
-
onMouseLeave:
|
|
5343
|
-
children: [Ye(),
|
|
5371
|
+
className: `${ys}__viewContainer`,
|
|
5372
|
+
onBlur: me ? Je : void 0,
|
|
5373
|
+
onMouseLeave: me ? Je : void 0,
|
|
5374
|
+
children: [Ye(), he ? Ye(!0) : null]
|
|
5344
5375
|
})]
|
|
5345
5376
|
});
|
|
5346
|
-
}),
|
|
5377
|
+
}), zs = ({ value: e, onChange: t, maxDate: n, children: r }) => {
|
|
5347
5378
|
let [i, a] = g(e ?? /* @__PURE__ */ new Date()), [s, c] = g(!1), l = h(null), d = o((e) => {
|
|
5348
5379
|
a(e), t && t(e), c(!1);
|
|
5349
5380
|
}, [t]), f = () => c(!s), p = o((e) => {
|
|
@@ -5364,9 +5395,9 @@ var Ls = a(function(e, t) {
|
|
|
5364
5395
|
!r && /* @__PURE__ */ y("button", {
|
|
5365
5396
|
className: "calendar-button",
|
|
5366
5397
|
onClick: f,
|
|
5367
|
-
children: /* @__PURE__ */ y(
|
|
5398
|
+
children: /* @__PURE__ */ y(B, {
|
|
5368
5399
|
classIcon: " bi-calendar4-event",
|
|
5369
|
-
size:
|
|
5400
|
+
size: V.EXTRA_LARGE
|
|
5370
5401
|
})
|
|
5371
5402
|
}),
|
|
5372
5403
|
s && /* @__PURE__ */ b("div", {
|
|
@@ -5374,11 +5405,11 @@ var Ls = a(function(e, t) {
|
|
|
5374
5405
|
children: [/* @__PURE__ */ y("div", {
|
|
5375
5406
|
onClick: () => c(!1),
|
|
5376
5407
|
className: "calendar-popup-close",
|
|
5377
|
-
children: /* @__PURE__ */ y(
|
|
5408
|
+
children: /* @__PURE__ */ y(B, {
|
|
5378
5409
|
classIcon: "bi-x-lg close-icon",
|
|
5379
|
-
size:
|
|
5410
|
+
size: V.EXTRA_SMALL
|
|
5380
5411
|
})
|
|
5381
|
-
}), /* @__PURE__ */ y(
|
|
5412
|
+
}), /* @__PURE__ */ y(Rs, {
|
|
5382
5413
|
onActiveStartDateChange: ({ activeStartDate: e }) => {
|
|
5383
5414
|
_(e);
|
|
5384
5415
|
},
|
|
@@ -5396,7 +5427,7 @@ var Ls = a(function(e, t) {
|
|
|
5396
5427
|
})
|
|
5397
5428
|
]
|
|
5398
5429
|
}) });
|
|
5399
|
-
},
|
|
5430
|
+
}, Bs = ({ currentExpand: e, item: t, className: n, showArrow: r = !0, catchfocusCapture: i = !1, catchFocusCaptureId: a, onChange: s }) => {
|
|
5400
5431
|
let [c, l] = g(!1), d = h(null);
|
|
5401
5432
|
u(() => {
|
|
5402
5433
|
t && e && e.id === t.id ? c || l(!0) : l(!1);
|
|
@@ -5489,8 +5520,8 @@ var Ls = a(function(e, t) {
|
|
|
5489
5520
|
children: /* @__PURE__ */ b("div", {
|
|
5490
5521
|
className: "expand-header-content-default",
|
|
5491
5522
|
children: [
|
|
5492
|
-
c && r && /* @__PURE__ */ y(
|
|
5493
|
-
!c && r && /* @__PURE__ */ y(
|
|
5523
|
+
c && r && /* @__PURE__ */ y(B, { classIcon: "bi bi-chevron-down mr-2" }),
|
|
5524
|
+
!c && r && /* @__PURE__ */ y(B, { classIcon: "bi bi-chevron-right mr-2" }),
|
|
5494
5525
|
/* @__PURE__ */ y("span", {
|
|
5495
5526
|
className: "flex-1 expand-header-title-left",
|
|
5496
5527
|
children: t.title
|
|
@@ -5513,7 +5544,7 @@ var Ls = a(function(e, t) {
|
|
|
5513
5544
|
})
|
|
5514
5545
|
]
|
|
5515
5546
|
});
|
|
5516
|
-
},
|
|
5547
|
+
}, Vs = (e) => {
|
|
5517
5548
|
let [t, n] = g(), r = o((t) => {
|
|
5518
5549
|
e.onChange && e.onChange(t), n(t);
|
|
5519
5550
|
}, [n, e.onChange]);
|
|
@@ -5525,7 +5556,7 @@ var Ls = a(function(e, t) {
|
|
|
5525
5556
|
document.activeElement
|
|
5526
5557
|
]), /* @__PURE__ */ y("div", {
|
|
5527
5558
|
className: `expands ${e.className || ""}`,
|
|
5528
|
-
children: e.items.map((n) => /* @__PURE__ */ y(
|
|
5559
|
+
children: e.items.map((n) => /* @__PURE__ */ y(Bs, {
|
|
5529
5560
|
item: n,
|
|
5530
5561
|
showArrow: e.showArrow,
|
|
5531
5562
|
onChange: r,
|
|
@@ -5534,7 +5565,7 @@ var Ls = a(function(e, t) {
|
|
|
5534
5565
|
catchFocusCaptureId: e.catchFocusCaptureId
|
|
5535
5566
|
}, n.id))
|
|
5536
5567
|
});
|
|
5537
|
-
},
|
|
5568
|
+
}, Hs = ({ filArianes: e, onClick: t, currentFil: n, title: r }) => {
|
|
5538
5569
|
let i = o((e, n) => {
|
|
5539
5570
|
n?.url || e.preventDefault(), t && t(n);
|
|
5540
5571
|
}, [t]);
|
|
@@ -5556,9 +5587,9 @@ var Ls = a(function(e, t) {
|
|
|
5556
5587
|
}), !e.isLast && /* @__PURE__ */ y("i", { className: "filAriane-chevron bi bi-caret-right-fill" })]
|
|
5557
5588
|
}, t))]
|
|
5558
5589
|
});
|
|
5559
|
-
},
|
|
5590
|
+
}, Us = "https://geo.api.gouv.fr", Ws = "nom,codesPostaux,centre", Gs = class {
|
|
5560
5591
|
constructor(e = {}) {
|
|
5561
|
-
this.departements = /* @__PURE__ */ new Map(), this.baseUrl = e.baseUrl ??
|
|
5592
|
+
this.departements = /* @__PURE__ */ new Map(), this.baseUrl = e.baseUrl ?? Us, this.fetcher = e.fetcher ?? globalThis.fetch.bind(globalThis);
|
|
5562
5593
|
}
|
|
5563
5594
|
async search(e, t = {}) {
|
|
5564
5595
|
let n = e.trim();
|
|
@@ -5571,7 +5602,7 @@ var Ls = a(function(e, t) {
|
|
|
5571
5602
|
}
|
|
5572
5603
|
let i = new URLSearchParams({
|
|
5573
5604
|
nom: n,
|
|
5574
|
-
fields:
|
|
5605
|
+
fields: Ws,
|
|
5575
5606
|
boost: "population",
|
|
5576
5607
|
limit: String(r)
|
|
5577
5608
|
});
|
|
@@ -5585,7 +5616,7 @@ var Ls = a(function(e, t) {
|
|
|
5585
5616
|
}
|
|
5586
5617
|
communesDuDepartement(e) {
|
|
5587
5618
|
let t = this.departements.get(e);
|
|
5588
|
-
return t || (t = this.get(`/departements/${e}/communes?fields=${
|
|
5619
|
+
return t || (t = this.get(`/departements/${e}/communes?fields=${Ws}`).catch((t) => {
|
|
5589
5620
|
throw this.departements.delete(e), t;
|
|
5590
5621
|
}), this.departements.set(e, t)), t;
|
|
5591
5622
|
}
|
|
@@ -5610,7 +5641,7 @@ var Ls = a(function(e, t) {
|
|
|
5610
5641
|
type: "municipality"
|
|
5611
5642
|
};
|
|
5612
5643
|
}
|
|
5613
|
-
},
|
|
5644
|
+
}, Ks = new Gs(), qs = ({ children: e, logo: t, onClickMenu: n, userChildren: r, positionFixed: i, overlayClassName: a, onClickLogo: s, showBackNavigation: c, onClickBackNavigation: l }) => {
|
|
5614
5645
|
let u = h(null), [d, f] = g(!1), p = o(() => {
|
|
5615
5646
|
f(!d);
|
|
5616
5647
|
}, [d, f]);
|
|
@@ -5622,16 +5653,16 @@ var Ls = a(function(e, t) {
|
|
|
5622
5653
|
/* @__PURE__ */ y("span", {
|
|
5623
5654
|
className: "header-menu-btn",
|
|
5624
5655
|
onClick: n,
|
|
5625
|
-
children: /* @__PURE__ */ y(
|
|
5626
|
-
size:
|
|
5656
|
+
children: /* @__PURE__ */ y(B, {
|
|
5657
|
+
size: V.MEDIUM,
|
|
5627
5658
|
classIcon: "bi-list"
|
|
5628
5659
|
})
|
|
5629
5660
|
}),
|
|
5630
5661
|
c && /* @__PURE__ */ y("span", {
|
|
5631
5662
|
className: "chevron-back",
|
|
5632
5663
|
onClick: l,
|
|
5633
|
-
children: /* @__PURE__ */ y(
|
|
5634
|
-
size:
|
|
5664
|
+
children: /* @__PURE__ */ y(B, {
|
|
5665
|
+
size: V.EXTRA_SMALL,
|
|
5635
5666
|
classIcon: "bi-caret-left-fill"
|
|
5636
5667
|
})
|
|
5637
5668
|
}),
|
|
@@ -5651,8 +5682,8 @@ var Ls = a(function(e, t) {
|
|
|
5651
5682
|
/* @__PURE__ */ y("div", {
|
|
5652
5683
|
ref: u,
|
|
5653
5684
|
onClick: p,
|
|
5654
|
-
children: /* @__PURE__ */ y(
|
|
5655
|
-
size:
|
|
5685
|
+
children: /* @__PURE__ */ y(B, {
|
|
5686
|
+
size: V.MEDIUM,
|
|
5656
5687
|
classIcon: "bi-person-circle"
|
|
5657
5688
|
})
|
|
5658
5689
|
}),
|
|
@@ -5667,7 +5698,7 @@ var Ls = a(function(e, t) {
|
|
|
5667
5698
|
]
|
|
5668
5699
|
})]
|
|
5669
5700
|
});
|
|
5670
|
-
},
|
|
5701
|
+
}, Js = ({ text: e, severity: t, className: n }) => {
|
|
5671
5702
|
let r = m(() => {
|
|
5672
5703
|
switch (t) {
|
|
5673
5704
|
case "info": return "bi-info-circle";
|
|
@@ -5679,12 +5710,12 @@ var Ls = a(function(e, t) {
|
|
|
5679
5710
|
}, [t]);
|
|
5680
5711
|
return /* @__PURE__ */ b("div", {
|
|
5681
5712
|
className: `message message--${t} ${n ?? ""}`,
|
|
5682
|
-
children: [/* @__PURE__ */ y(
|
|
5713
|
+
children: [/* @__PURE__ */ y(B, { classIcon: r }), /* @__PURE__ */ y("span", {
|
|
5683
5714
|
className: "message-text",
|
|
5684
5715
|
children: e
|
|
5685
5716
|
})]
|
|
5686
5717
|
});
|
|
5687
|
-
},
|
|
5718
|
+
}, Ys = a(({ arrayBuffer: e, displayToolBar: t = !1, height: n = "600px", width: r = "100%", className: i, title: a, id: s }, c) => {
|
|
5688
5719
|
let [l, d] = g(null), f = o(async () => {
|
|
5689
5720
|
let n = new Blob([e], { type: "application/pdf" }), r = URL.createObjectURL(n);
|
|
5690
5721
|
if (t) d(r);
|
|
@@ -5714,7 +5745,7 @@ var Ls = a(function(e, t) {
|
|
|
5714
5745
|
pointerEvents: "auto"
|
|
5715
5746
|
}
|
|
5716
5747
|
}) });
|
|
5717
|
-
}),
|
|
5748
|
+
}), Xs = ({ setQuantity: e, item: t, onClickQuantity: n, disabled: r, disabledPlus: i, disabledMinus: a, pas: s }) => {
|
|
5718
5749
|
let [c, l] = g(s), d = o((n) => {
|
|
5719
5750
|
r || (l(n), e && e(t, n));
|
|
5720
5751
|
}, [l, e]), f = o((e) => {
|
|
@@ -5739,8 +5770,8 @@ var Ls = a(function(e, t) {
|
|
|
5739
5770
|
/* @__PURE__ */ y("div", {
|
|
5740
5771
|
onClick: (e) => p(e),
|
|
5741
5772
|
className: `qte-action qte-action--minus ${r || a ? "disabled" : ""} `,
|
|
5742
|
-
children: /* @__PURE__ */ y(
|
|
5743
|
-
size:
|
|
5773
|
+
children: /* @__PURE__ */ y(B, {
|
|
5774
|
+
size: V.LARGE,
|
|
5744
5775
|
classIcon: "bi bi-dash-square"
|
|
5745
5776
|
})
|
|
5746
5777
|
}),
|
|
@@ -5752,14 +5783,14 @@ var Ls = a(function(e, t) {
|
|
|
5752
5783
|
/* @__PURE__ */ y("div", {
|
|
5753
5784
|
onClick: (e) => f(e),
|
|
5754
5785
|
className: `qte-action qte-action--plus ${r || i ? "disabled" : ""}`,
|
|
5755
|
-
children: /* @__PURE__ */ y(
|
|
5756
|
-
size:
|
|
5786
|
+
children: /* @__PURE__ */ y(B, {
|
|
5787
|
+
size: V.LARGE,
|
|
5757
5788
|
classIcon: "bi bi-plus-square"
|
|
5758
5789
|
})
|
|
5759
5790
|
})
|
|
5760
5791
|
]
|
|
5761
5792
|
});
|
|
5762
|
-
},
|
|
5793
|
+
}, Zs = a(({ children: e, name: t, placeholder: n, isVisible: r, focus: i, debounceTime: a, handleChange: s, setIsVisible: c, id: l }, d) => {
|
|
5763
5794
|
let [p, _] = g(r ?? !1), v = h(null), x = h(null), S = m(() => [{
|
|
5764
5795
|
value: "",
|
|
5765
5796
|
id: l,
|
|
@@ -5800,7 +5831,7 @@ var Ls = a(function(e, t) {
|
|
|
5800
5831
|
}
|
|
5801
5832
|
})), /* @__PURE__ */ b("div", {
|
|
5802
5833
|
className: "search",
|
|
5803
|
-
children: [/* @__PURE__ */ y(
|
|
5834
|
+
children: [/* @__PURE__ */ y(Yr, {
|
|
5804
5835
|
ref: x,
|
|
5805
5836
|
onSubmit: T,
|
|
5806
5837
|
onChange: w,
|
|
@@ -5813,7 +5844,7 @@ var Ls = a(function(e, t) {
|
|
|
5813
5844
|
children: /* @__PURE__ */ y("button", {
|
|
5814
5845
|
className: "toggle-btn",
|
|
5815
5846
|
onClick: () => C(!1),
|
|
5816
|
-
children: /* @__PURE__ */ y(
|
|
5847
|
+
children: /* @__PURE__ */ y(B, { classIcon: "bi-x-lg" })
|
|
5817
5848
|
})
|
|
5818
5849
|
}), /* @__PURE__ */ y("div", {
|
|
5819
5850
|
className: "search-result-content",
|
|
@@ -5821,7 +5852,7 @@ var Ls = a(function(e, t) {
|
|
|
5821
5852
|
})]
|
|
5822
5853
|
})]
|
|
5823
5854
|
});
|
|
5824
|
-
}),
|
|
5855
|
+
}), Qs = 60, $s = 10, ec = ({ open: e, children: t, title: n, onClose: r, className: i, id: a, width: s, closeOnClickOutside: c = !0, displayOverlay: l = !0 }) => {
|
|
5825
5856
|
let [d, f] = g(e || !1), [p, m] = g(0), [_, S] = g(!1), C = h(null), w = h(null), T = h(0), E = h(0), D = h(null);
|
|
5826
5857
|
u(() => (w.current || (w.current = document.createElement("div"), w.current.id = `sidebar-root-${a || crypto.randomUUID()}`, document.body.appendChild(w.current)), () => {
|
|
5827
5858
|
w.current && w.current.parentNode && (document.body.removeChild(w.current), w.current = null);
|
|
@@ -5839,12 +5870,12 @@ var Ls = a(function(e, t) {
|
|
|
5839
5870
|
if (!d) return;
|
|
5840
5871
|
let t = e.touches[0], n = t.clientX - T.current, r = t.clientY - E.current;
|
|
5841
5872
|
if (!D.current) {
|
|
5842
|
-
if (Math.abs(n) <
|
|
5873
|
+
if (Math.abs(n) < $s && Math.abs(r) < $s) return;
|
|
5843
5874
|
D.current = Math.abs(n) > Math.abs(r) ? "x" : "y";
|
|
5844
5875
|
}
|
|
5845
5876
|
D.current === "x" && (n < 20 || (e.preventDefault(), S(!0), m(Math.max(0, n))));
|
|
5846
5877
|
}, [d]), M = o((e) => {
|
|
5847
|
-
d && (D.current === "x" && e.changedTouches[0].clientX - T.current >
|
|
5878
|
+
d && (D.current === "x" && e.changedTouches[0].clientX - T.current > Qs && O(), S(!1), m(0), D.current = null);
|
|
5848
5879
|
}, [d, O]), N = o((e) => {
|
|
5849
5880
|
e.preventDefault(), O();
|
|
5850
5881
|
}, [O]);
|
|
@@ -5891,18 +5922,18 @@ var Ls = a(function(e, t) {
|
|
|
5891
5922
|
}), /* @__PURE__ */ y("button", {
|
|
5892
5923
|
className: "toggle-btn",
|
|
5893
5924
|
onClick: O,
|
|
5894
|
-
children: /* @__PURE__ */ y(
|
|
5925
|
+
children: /* @__PURE__ */ y(B, { classIcon: "bi-x-lg" })
|
|
5895
5926
|
})]
|
|
5896
5927
|
}), t && t]
|
|
5897
5928
|
})] }), w.current) : /* @__PURE__ */ y(v, {});
|
|
5898
|
-
},
|
|
5929
|
+
}, tc = (e) => /* @__PURE__ */ y(ec, {
|
|
5899
5930
|
...e,
|
|
5900
5931
|
className: `full sidebar-data ${e.className}`,
|
|
5901
5932
|
children: e.children && /* @__PURE__ */ y("div", {
|
|
5902
5933
|
className: `sidebar-data-content ${e.classNameContent} `,
|
|
5903
5934
|
children: e.children
|
|
5904
5935
|
})
|
|
5905
|
-
}),
|
|
5936
|
+
}), nc = ({ items: e, defaultIndex: t = 0, index: n, onChange: r, className: i = "", tabClassName: a = "", panelClassName: o = "", keepMountedVisited: s = !1 }) => {
|
|
5906
5937
|
let c = typeof n == "number", [l, d] = g(t), f = c ? n : l, [p, m] = g(() => /* @__PURE__ */ new Set([f]));
|
|
5907
5938
|
u(() => {
|
|
5908
5939
|
s && m((e) => e.has(f) ? e : /* @__PURE__ */ new Set([...Array.from(e), f]));
|
|
@@ -5942,7 +5973,7 @@ var Ls = a(function(e, t) {
|
|
|
5942
5973
|
children: (f === t || s && p.has(t)) && e.panel
|
|
5943
5974
|
}, `panel-${e.key}`))]
|
|
5944
5975
|
});
|
|
5945
|
-
},
|
|
5976
|
+
}, rc = (e) => {
|
|
5946
5977
|
let t, n = /* @__PURE__ */ new Set(), r = (e, r) => {
|
|
5947
5978
|
let i = typeof e == "function" ? e(t) : e;
|
|
5948
5979
|
if (!Object.is(i, t)) {
|
|
@@ -5956,15 +5987,15 @@ var Ls = a(function(e, t) {
|
|
|
5956
5987
|
subscribe: (e) => (n.add(e), () => n.delete(e))
|
|
5957
5988
|
}, o = t = e(r, i, a);
|
|
5958
5989
|
return a;
|
|
5959
|
-
},
|
|
5960
|
-
function
|
|
5990
|
+
}, ic = (e) => e ? rc(e) : rc, ac = (e) => e;
|
|
5991
|
+
function oc(t, n = ac) {
|
|
5961
5992
|
let r = e.useSyncExternalStore(t.subscribe, () => n(t.getState()), () => n(t.getInitialState()));
|
|
5962
5993
|
return e.useDebugValue(r), r;
|
|
5963
5994
|
}
|
|
5964
|
-
var
|
|
5965
|
-
let t =
|
|
5995
|
+
var sc = (e) => {
|
|
5996
|
+
let t = ic(e), n = (e) => oc(t, e);
|
|
5966
5997
|
return Object.assign(n, t), n;
|
|
5967
|
-
},
|
|
5998
|
+
}, cc = ((e) => e ? sc(e) : sc)((e) => ({
|
|
5968
5999
|
title: "",
|
|
5969
6000
|
description: "",
|
|
5970
6001
|
severity: "info",
|
|
@@ -5984,8 +6015,8 @@ var oc = (e) => {
|
|
|
5984
6015
|
position: n.position ?? "top-right"
|
|
5985
6016
|
})),
|
|
5986
6017
|
hideToast: () => e(() => ({ visible: !1 }))
|
|
5987
|
-
})),
|
|
5988
|
-
let { title: e, description: t, severity: n = "info", visible: r, children: i, duration: a, hideToast: s, close: c, position: l } =
|
|
6018
|
+
})), lc = () => {
|
|
6019
|
+
let { title: e, description: t, severity: n = "info", visible: r, children: i, duration: a, hideToast: s, close: c, position: l } = cc(), d = o(() => {
|
|
5989
6020
|
s();
|
|
5990
6021
|
}, [s]);
|
|
5991
6022
|
if (u(() => {
|
|
@@ -6008,13 +6039,13 @@ var oc = (e) => {
|
|
|
6008
6039
|
className: "toaster--close",
|
|
6009
6040
|
onClick: d,
|
|
6010
6041
|
"aria-label": "Fermer la notification",
|
|
6011
|
-
children: /* @__PURE__ */ y(
|
|
6042
|
+
children: /* @__PURE__ */ y(B, { classIcon: "bi-x" })
|
|
6012
6043
|
}),
|
|
6013
6044
|
/* @__PURE__ */ b("div", { children: [
|
|
6014
|
-
n === "info" && /* @__PURE__ */ y(
|
|
6015
|
-
n === "success" && /* @__PURE__ */ y(
|
|
6016
|
-
n === "error" && /* @__PURE__ */ y(
|
|
6017
|
-
n === "warning" && /* @__PURE__ */ y(
|
|
6045
|
+
n === "info" && /* @__PURE__ */ y(B, { classIcon: "bi-info-circle" }),
|
|
6046
|
+
n === "success" && /* @__PURE__ */ y(B, { classIcon: "bi-check-circle" }),
|
|
6047
|
+
n === "error" && /* @__PURE__ */ y(B, { classIcon: "bi-x-circle" }),
|
|
6048
|
+
n === "warning" && /* @__PURE__ */ y(B, { classIcon: "bi-exclamation-triangle" })
|
|
6018
6049
|
] }),
|
|
6019
6050
|
/* @__PURE__ */ b("div", { children: [
|
|
6020
6051
|
/* @__PURE__ */ y("div", {
|
|
@@ -6031,4 +6062,4 @@ var oc = (e) => {
|
|
|
6031
6062
|
}), f) : null;
|
|
6032
6063
|
};
|
|
6033
6064
|
//#endregion
|
|
6034
|
-
export {
|
|
6065
|
+
export { _e as AddressSearch, fe as Badge, ve as Button, pe as ButtonAction, Dr as ButtonActions, Or as ButtonFile, Xr as ButtonFilters, Ar as ButtonImport, ei as Card, ti as Carousel, Gs as CityGeocodingService, ri as Damier, Ci as DataTable, zs as DatePicker, Yr as DynamicForm, Vs as Expands, Hs as FilAriane, I as FormatDate, he as GeocodingService, $r as Grid, qs as Header, N as HistoryProvider, B as Icon, V as IconSizeEnum, P as ImageChecker, te as ImageExist, Nr as Input, Pr as InputNumber, Fr as InputPrice, ii as Loader, L as LocalDateStringToUTC, H as Menus, Js as Message, kr as Modal, Er as OverlayPanel, Se as OverlayProvider, Ys as PdfViewer, Xs as Quantity, Zs as Search, Mr as Select, ec as Sidebar, tc as SidebarData, nc as Tabs, Ir as TextArea, lc as Toaster, Z as TypeInputEnum, de as WidgetSupport, Ks as cityGeocodingService, ge as geocodingService, F as isValidEAN13, z as localDateEndToUTC, R as localDateStartToUTC, ne as objectToQueryParams, re as useCurrency, ee as useHistoryDepth, ie as useIsMobile, cc as useToasterStore, le as useToken, ue as useValidate };
|