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