@tsiky/components-r19 8.2.23 → 8.2.25
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/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as r, jsxs as m, Fragment as Ve } from "react/jsx-runtime";
|
|
2
2
|
import * as ne from "react";
|
|
3
|
-
import he, { useState as
|
|
3
|
+
import he, { useState as H, useRef as K, useEffect as O, createContext as pt, useContext as Ae, useCallback as ue, memo as Be, useMemo as xe, useLayoutEffect as Ir, useId as nN, useInsertionEffect as Uq, Children as jV, isValidElement as BV, Fragment as Wq, createElement as RV, forwardRef as Sr, Component as FV, useImperativeHandle as EV } from "react";
|
|
4
4
|
import { c as a, M as ri, I as OV, a as Or, g as UV, R as Gq, B as WV, C as GV, X as KV, Y as ZV, T as XV, b as YV, L as JV, d as QV, P as eP, e as tP, f as iI } from "./LineChart-7Rq_aMiU.js";
|
|
5
5
|
import { i as $Le, h as qLe, S as ALe } from "./LineChart-7Rq_aMiU.js";
|
|
6
6
|
import G, { css as rI } from "styled-components";
|
|
@@ -190,7 +190,7 @@ function _P({
|
|
|
190
190
|
width: d = "auto",
|
|
191
191
|
gap: l = 0
|
|
192
192
|
}) {
|
|
193
|
-
const [h, p] =
|
|
193
|
+
const [h, p] = H(!1), [u, y] = H(null), f = K(null);
|
|
194
194
|
O(() => {
|
|
195
195
|
function M(_) {
|
|
196
196
|
_.key === "Escape" && p(!1);
|
|
@@ -31373,7 +31373,7 @@ const Rt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
31373
31373
|
children: e,
|
|
31374
31374
|
defaultActive: t = ""
|
|
31375
31375
|
}) => {
|
|
31376
|
-
const [n, o] =
|
|
31376
|
+
const [n, o] = H(t), [i, c] = H(t), [s, d] = H(void 0), [l, h] = H(void 0), [p, u] = H({}), y = (f, g) => {
|
|
31377
31377
|
u((k) => ({
|
|
31378
31378
|
...k,
|
|
31379
31379
|
[f]: g
|
|
@@ -31406,7 +31406,7 @@ const Rt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
31406
31406
|
select: c,
|
|
31407
31407
|
topContent: s
|
|
31408
31408
|
}) => {
|
|
31409
|
-
const [d, l] =
|
|
31409
|
+
const [d, l] = H(!1), [h, p] = H("right"), u = K(null), y = K(null), { activeNav: f, activeSubNav: g } = Ut();
|
|
31410
31410
|
O(() => {
|
|
31411
31411
|
if (!i) return;
|
|
31412
31412
|
const M = (_) => {
|
|
@@ -31445,7 +31445,7 @@ const Rt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
31445
31445
|
if (w.id === "language") {
|
|
31446
31446
|
if (!x || !Array.isArray(x.options) || !x.onChange)
|
|
31447
31447
|
return /* @__PURE__ */ r("div", { className: "dropdown-language" }, L);
|
|
31448
|
-
const $ = Array.isArray(x.options) ? x.options : [], S = $.some((
|
|
31448
|
+
const $ = Array.isArray(x.options) ? x.options : [], S = $.some((A) => A.code === x.value) ? $ : [
|
|
31449
31449
|
{
|
|
31450
31450
|
code: x.value ?? "",
|
|
31451
31451
|
label: String(x.value ?? "")
|
|
@@ -31458,15 +31458,15 @@ const Rt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
31458
31458
|
name: x.name ?? "language",
|
|
31459
31459
|
className: "language-select",
|
|
31460
31460
|
value: x.value ?? "",
|
|
31461
|
-
onChange: (
|
|
31462
|
-
const
|
|
31461
|
+
onChange: (A) => {
|
|
31462
|
+
const z = A.target.value;
|
|
31463
31463
|
try {
|
|
31464
|
-
x.onChange(
|
|
31464
|
+
x.onChange(z);
|
|
31465
31465
|
} catch (P) {
|
|
31466
31466
|
console.error("select onChange error", P);
|
|
31467
31467
|
}
|
|
31468
31468
|
},
|
|
31469
|
-
children: S.map((
|
|
31469
|
+
children: S.map((A) => /* @__PURE__ */ r("option", { value: A.code, children: A.label }, A.code))
|
|
31470
31470
|
}
|
|
31471
31471
|
) }, L);
|
|
31472
31472
|
}
|
|
@@ -31502,29 +31502,29 @@ const Rt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
31502
31502
|
draggable: v = !1,
|
|
31503
31503
|
displayNone: M = !1
|
|
31504
31504
|
}) => {
|
|
31505
|
-
const [_, w] =
|
|
31505
|
+
const [_, w] = H([]);
|
|
31506
31506
|
O(() => {
|
|
31507
|
-
const b = (
|
|
31508
|
-
const
|
|
31509
|
-
return he.Children.forEach(
|
|
31510
|
-
Array.isArray(P) ?
|
|
31511
|
-
}),
|
|
31512
|
-
}, N = b(e).filter((
|
|
31513
|
-
let
|
|
31514
|
-
const P =
|
|
31515
|
-
return
|
|
31507
|
+
const b = (A) => {
|
|
31508
|
+
const z = [];
|
|
31509
|
+
return he.Children.forEach(A, (P) => {
|
|
31510
|
+
Array.isArray(P) ? z.push(...b(P)) : he.isValidElement(P) && z.push(P);
|
|
31511
|
+
}), z;
|
|
31512
|
+
}, N = b(e).filter((A) => he.isValidElement(A)).map((A) => {
|
|
31513
|
+
let z = "";
|
|
31514
|
+
const P = A.props;
|
|
31515
|
+
return z = [
|
|
31516
31516
|
P.xs ? `grid-xs-${P.xs}` : "",
|
|
31517
31517
|
P.sm ? `grid-sm-${P.sm}` : "",
|
|
31518
31518
|
P.md ? `grid-md-${P.md}` : "",
|
|
31519
31519
|
P.lg ? `grid-lg-${P.lg}` : "",
|
|
31520
31520
|
P.xl ? `grid-xl-${P.xl}` : "",
|
|
31521
31521
|
P.className ? P.className : ""
|
|
31522
|
-
].join(" ").trim(), { node:
|
|
31522
|
+
].join(" ").trim(), { node: A, classes: z };
|
|
31523
31523
|
});
|
|
31524
31524
|
let S = N;
|
|
31525
|
-
g && g.length > 0 && (S = N.map((
|
|
31526
|
-
...
|
|
31527
|
-
node: N[g[
|
|
31525
|
+
g && g.length > 0 && (S = N.map((A, z) => ({
|
|
31526
|
+
...A,
|
|
31527
|
+
node: N[g[z]]?.node ?? A.node
|
|
31528
31528
|
}))), w(S);
|
|
31529
31529
|
}, [e]);
|
|
31530
31530
|
const L = (b, $) => {
|
|
@@ -31536,23 +31536,23 @@ const Rt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
31536
31536
|
const N = Number(b.dataTransfer.getData("dragIndex")), S = Number(b.dataTransfer.getData("parentKey"));
|
|
31537
31537
|
if (t && S !== u)
|
|
31538
31538
|
return;
|
|
31539
|
-
const
|
|
31540
|
-
let
|
|
31541
|
-
if (
|
|
31542
|
-
if (he.isValidElement(
|
|
31543
|
-
const
|
|
31544
|
-
|
|
31539
|
+
const A = [..._];
|
|
31540
|
+
let z = -1, P = -1;
|
|
31541
|
+
if (A.forEach((B, V) => {
|
|
31542
|
+
if (he.isValidElement(B.node)) {
|
|
31543
|
+
const q = B.node.props;
|
|
31544
|
+
q.uniqueKey === $ && (z = V), q.uniqueKey === N && (P = V);
|
|
31545
31545
|
}
|
|
31546
|
-
}),
|
|
31546
|
+
}), z === -1 || P === -1)
|
|
31547
31547
|
return;
|
|
31548
|
-
const
|
|
31549
|
-
|
|
31550
|
-
...
|
|
31551
|
-
node:
|
|
31552
|
-
},
|
|
31553
|
-
...
|
|
31554
|
-
node:
|
|
31555
|
-
}, w(
|
|
31548
|
+
const D = A[P].node;
|
|
31549
|
+
A[P] = {
|
|
31550
|
+
...A[P],
|
|
31551
|
+
node: A[z].node
|
|
31552
|
+
}, A[z] = {
|
|
31553
|
+
...A[z],
|
|
31554
|
+
node: D
|
|
31555
|
+
}, w(A), typeof k == "function" && k(P, z);
|
|
31556
31556
|
}, x = o ? [
|
|
31557
31557
|
i ? `grid-xs-${i}` : "",
|
|
31558
31558
|
c ? `grid-sm-${c}` : "",
|
|
@@ -31650,7 +31650,7 @@ const oN = ({ imagePath: e, ...t }) => {
|
|
|
31650
31650
|
moduleConfig: o = {},
|
|
31651
31651
|
dropdownPosition: i = "auto"
|
|
31652
31652
|
}) => {
|
|
31653
|
-
const { activeNav: c } = Ut(), [s, d] =
|
|
31653
|
+
const { activeNav: c } = Ut(), [s, d] = H(!0), [l, h] = H(!1), [p, u] = H("left"), y = K(null), f = K(null), g = K(null);
|
|
31654
31654
|
O(() => {
|
|
31655
31655
|
const _ = () => {
|
|
31656
31656
|
if (y.current && y.current.parentElement) {
|
|
@@ -31715,7 +31715,7 @@ const oN = ({ imagePath: e, ...t }) => {
|
|
|
31715
31715
|
_.id
|
|
31716
31716
|
)) }) });
|
|
31717
31717
|
}, Xq = pt(void 0), cwe = ({ children: e, initialTheme: t }) => {
|
|
31718
|
-
const [n, o] =
|
|
31718
|
+
const [n, o] = H(() => {
|
|
31719
31719
|
if (typeof window < "u")
|
|
31720
31720
|
try {
|
|
31721
31721
|
return localStorage.getItem("app-theme") || t;
|
|
@@ -31812,7 +31812,7 @@ const oN = ({ imagePath: e, ...t }) => {
|
|
|
31812
31812
|
size: c = 24,
|
|
31813
31813
|
a11yConfig: s
|
|
31814
31814
|
}) => {
|
|
31815
|
-
const { currentTheme: d, switchTheme: l } = iN(), [h, p] =
|
|
31815
|
+
const { currentTheme: d, switchTheme: l } = iN(), [h, p] = H(!1);
|
|
31816
31816
|
return O(() => {
|
|
31817
31817
|
p(!0);
|
|
31818
31818
|
}, []), h ? /* @__PURE__ */ r(
|
|
@@ -31830,7 +31830,7 @@ const oN = ({ imagePath: e, ...t }) => {
|
|
|
31830
31830
|
}
|
|
31831
31831
|
) : null;
|
|
31832
31832
|
}, P0e = (e) => /* @__PURE__ */ ne.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 -960 960 960", ...e }, /* @__PURE__ */ ne.createElement("path", { d: "M480-80 317-243l44-44 89 89v-252H198l84 84-44 44L80-480l159-159 44 44-85 85h252v-252l-84 84-44-44 158-158 158 158-44 44-84-84v252h252l-84-84 44-44 158 158-158 158-44-44 84-84H510v252l89-89 44 44z" })), lI = Be(P0e), Yq = pt(void 0), swe = ({ children: e }) => {
|
|
31833
|
-
const [t, n] =
|
|
31833
|
+
const [t, n] = H(!1);
|
|
31834
31834
|
O(() => {
|
|
31835
31835
|
const i = localStorage.getItem("isDraggable");
|
|
31836
31836
|
i !== null && n(i === "true");
|
|
@@ -31860,7 +31860,7 @@ const oN = ({ imagePath: e, ...t }) => {
|
|
|
31860
31860
|
size: o = 24,
|
|
31861
31861
|
a11yConfig: i
|
|
31862
31862
|
}) => {
|
|
31863
|
-
const { isDraggable: c, switchDraggable: s } = T0e(), [d, l] =
|
|
31863
|
+
const { isDraggable: c, switchDraggable: s } = T0e(), [d, l] = H(!1);
|
|
31864
31864
|
if (O(() => {
|
|
31865
31865
|
l(!0);
|
|
31866
31866
|
}, []), !d) return null;
|
|
@@ -31880,7 +31880,7 @@ const oN = ({ imagePath: e, ...t }) => {
|
|
|
31880
31880
|
}
|
|
31881
31881
|
);
|
|
31882
31882
|
}, D0e = (e) => /* @__PURE__ */ ne.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 -960 960 960", ...e }, /* @__PURE__ */ ne.createElement("path", { d: "M400.06-300Q508-300 584.5-376.13 661-452.25 661-561q0-107.92-76.5-183.46T400.06-820t-183.5 75.54T141-561q0 108.75 75.56 184.87Q292.12-300 400.06-300M371-448v-267h60v267zm-145 0v-184h60v184zm290 0v-143h60v143zM838-80 605-314q-42 35-94.24 54.5Q458.51-240 400-240q-133 0-226-93.5T81-560.7q0-133.71 92.8-226.5Q266.59-880 400.3-880q133.7 0 227.2 93T721-561q0 58.51-19.5 110.76Q682-398 647-356l233 233z" })), hI = Be(D0e), pI = "disableLegendFilter", Jq = pt(void 0), dwe = ({ children: e }) => {
|
|
31883
|
-
const [t, n] =
|
|
31883
|
+
const [t, n] = H(!1);
|
|
31884
31884
|
O(() => {
|
|
31885
31885
|
try {
|
|
31886
31886
|
const i = localStorage.getItem(pI);
|
|
@@ -31917,7 +31917,7 @@ const oN = ({ imagePath: e, ...t }) => {
|
|
|
31917
31917
|
size: o = 24,
|
|
31918
31918
|
a11yConfig: i
|
|
31919
31919
|
}) => {
|
|
31920
|
-
const { disableLegendFilter: c, switchDisableLegendFilter: s } = H0e(), [d, l] =
|
|
31920
|
+
const { disableLegendFilter: c, switchDisableLegendFilter: s } = H0e(), [d, l] = H(!1);
|
|
31921
31921
|
if (O(() => {
|
|
31922
31922
|
l(!0);
|
|
31923
31923
|
}, []), !d) return null;
|
|
@@ -31937,7 +31937,7 @@ const oN = ({ imagePath: e, ...t }) => {
|
|
|
31937
31937
|
}
|
|
31938
31938
|
);
|
|
31939
31939
|
}, Qq = pt(void 0), lwe = ({ children: e }) => {
|
|
31940
|
-
const [t, n] =
|
|
31940
|
+
const [t, n] = H(!1);
|
|
31941
31941
|
O(() => {
|
|
31942
31942
|
const i = localStorage.getItem("showData");
|
|
31943
31943
|
i !== null && n(i === "true");
|
|
@@ -31965,7 +31965,7 @@ const oN = ({ imagePath: e, ...t }) => {
|
|
|
31965
31965
|
},
|
|
31966
31966
|
a11yConfig: n
|
|
31967
31967
|
}) => {
|
|
31968
|
-
const { showData: o, switchShowData: i } = j0e(), [c, s] =
|
|
31968
|
+
const { showData: o, switchShowData: i } = j0e(), [c, s] = H(!1);
|
|
31969
31969
|
return O(() => {
|
|
31970
31970
|
s(!0);
|
|
31971
31971
|
}, []), c ? /* @__PURE__ */ r(
|
|
@@ -31990,7 +31990,7 @@ function yI({
|
|
|
31990
31990
|
savingLabel: c,
|
|
31991
31991
|
buttonTitle: s
|
|
31992
31992
|
}) {
|
|
31993
|
-
const [d, l] =
|
|
31993
|
+
const [d, l] = H(!1), [h, p] = H(e);
|
|
31994
31994
|
O(() => {
|
|
31995
31995
|
p(e);
|
|
31996
31996
|
}, [e]);
|
|
@@ -32214,10 +32214,10 @@ const hwe = ({
|
|
|
32214
32214
|
entryLabelA11yConfig: $,
|
|
32215
32215
|
exitLabelA11yConfig: N
|
|
32216
32216
|
}) => {
|
|
32217
|
-
const S = ce(x),
|
|
32217
|
+
const S = ce(x), A = ce(
|
|
32218
32218
|
b,
|
|
32219
32219
|
b?.titleKey ? void 0 : e
|
|
32220
|
-
),
|
|
32220
|
+
), z = ce(
|
|
32221
32221
|
$,
|
|
32222
32222
|
$?.titleKey ? void 0 : o
|
|
32223
32223
|
), P = ce(
|
|
@@ -32235,7 +32235,7 @@ const hwe = ({
|
|
|
32235
32235
|
"aria-label": I || e,
|
|
32236
32236
|
title: S,
|
|
32237
32237
|
tabIndex: C ? 0 : void 0,
|
|
32238
|
-
onKeyDown: (
|
|
32238
|
+
onKeyDown: (D) => C && D.key === "Enter" && C(),
|
|
32239
32239
|
children: [
|
|
32240
32240
|
/* @__PURE__ */ m(O0e, { $bgColor: n, $borderColor: _, children: [
|
|
32241
32241
|
e && /* @__PURE__ */ r(
|
|
@@ -32246,7 +32246,7 @@ const hwe = ({
|
|
|
32246
32246
|
$fontWeight: g,
|
|
32247
32247
|
$lineHeight: k,
|
|
32248
32248
|
$minHeight: v,
|
|
32249
|
-
title:
|
|
32249
|
+
title: A,
|
|
32250
32250
|
children: e
|
|
32251
32251
|
}
|
|
32252
32252
|
),
|
|
@@ -32259,7 +32259,7 @@ const hwe = ({
|
|
|
32259
32259
|
$fontSize: l,
|
|
32260
32260
|
$fontWeight: h,
|
|
32261
32261
|
$lineHeight: p,
|
|
32262
|
-
title:
|
|
32262
|
+
title: z,
|
|
32263
32263
|
children: o
|
|
32264
32264
|
}
|
|
32265
32265
|
),
|
|
@@ -32282,18 +32282,18 @@ const hwe = ({
|
|
|
32282
32282
|
] }),
|
|
32283
32283
|
/* @__PURE__ */ r(U0e, { $bgColor: n })
|
|
32284
32284
|
] }),
|
|
32285
|
-
y.length > 0 && /* @__PURE__ */ r(K0e, { $bgColor: M, children: y.map((
|
|
32286
|
-
|
|
32285
|
+
y.length > 0 && /* @__PURE__ */ r(K0e, { $bgColor: M, children: y.map((D, B) => /* @__PURE__ */ m(Z0e, { title: ce(D.a11yConfig), children: [
|
|
32286
|
+
D.icon && /* @__PURE__ */ r(X0e, { "aria-hidden": "true", children: D.icon }),
|
|
32287
32287
|
/* @__PURE__ */ r(
|
|
32288
32288
|
Y0e,
|
|
32289
32289
|
{
|
|
32290
32290
|
$fontSize: f,
|
|
32291
32291
|
$fontWeight: g,
|
|
32292
32292
|
$lineHeight: k,
|
|
32293
|
-
children:
|
|
32293
|
+
children: D.text
|
|
32294
32294
|
}
|
|
32295
32295
|
)
|
|
32296
|
-
] },
|
|
32296
|
+
] }, B)) })
|
|
32297
32297
|
]
|
|
32298
32298
|
}
|
|
32299
32299
|
);
|
|
@@ -32511,7 +32511,7 @@ function kwe({
|
|
|
32511
32511
|
const h = Number.isInteger(d) && d > 0 && d <= 60 ? d : 15, p = xe(
|
|
32512
32512
|
() => Array.from({ length: Math.ceil(60 / h) }, (b, $) => vI($ * h)),
|
|
32513
32513
|
[h]
|
|
32514
|
-
), [u, y] =
|
|
32514
|
+
), [u, y] = H(!1), [f, g] = H("00"), [k, v] = H("00"), [M, _] = H(null), w = K(null), L = K(null);
|
|
32515
32515
|
O(() => {
|
|
32516
32516
|
if (!e) {
|
|
32517
32517
|
g("00"), v("00");
|
|
@@ -32523,11 +32523,11 @@ function kwe({
|
|
|
32523
32523
|
const C = ue(() => {
|
|
32524
32524
|
const b = w.current, $ = L.current;
|
|
32525
32525
|
if (!b || !$) return;
|
|
32526
|
-
const N = b.getBoundingClientRect(), S = $.getBoundingClientRect(),
|
|
32527
|
-
Math.max(N.left,
|
|
32528
|
-
Math.max(
|
|
32529
|
-
),
|
|
32530
|
-
_({ left: P, top:
|
|
32526
|
+
const N = b.getBoundingClientRect(), S = $.getBoundingClientRect(), A = 4, z = 8, P = Math.min(
|
|
32527
|
+
Math.max(N.left, z),
|
|
32528
|
+
Math.max(z, window.innerWidth - S.width - z)
|
|
32529
|
+
), D = window.innerHeight - N.bottom - A - z, B = N.top - A - z, q = S.height <= D || D >= B ? N.bottom + A : Math.max(z, N.top - S.height - A);
|
|
32530
|
+
_({ left: P, top: q, visibility: "visible" });
|
|
32531
32531
|
}, []);
|
|
32532
32532
|
Ir(() => {
|
|
32533
32533
|
if (u)
|
|
@@ -34641,7 +34641,7 @@ function FI(e) {
|
|
|
34641
34641
|
}), t;
|
|
34642
34642
|
}
|
|
34643
34643
|
const vhe = ({ children: e, custom: t, initial: n = !0, onExitComplete: o, presenceAffectsLayout: i = !0, mode: c = "sync", propagate: s = !1, anchorX: d = "left", root: l }) => {
|
|
34644
|
-
const [h, p] = WA(s), u = xe(() => FI(e), [e]), y = s && !h ? [] : u.map(Gr), f = K(!0), g = K(u), k = sa(() => /* @__PURE__ */ new Map()), [v, M] =
|
|
34644
|
+
const [h, p] = WA(s), u = xe(() => FI(e), [e]), y = s && !h ? [] : u.map(Gr), f = K(!0), g = K(u), k = sa(() => /* @__PURE__ */ new Map()), [v, M] = H(u), [_, w] = H(u);
|
|
34645
34645
|
sN(() => {
|
|
34646
34646
|
f.current = !1, g.current = u;
|
|
34647
34647
|
for (let I = 0; I < _.length; I++) {
|
|
@@ -35864,35 +35864,35 @@ function $pe(e) {
|
|
|
35864
35864
|
const N = Array.isArray(w) ? w : [w];
|
|
35865
35865
|
let S = N.reduce(i(M), {});
|
|
35866
35866
|
C === !1 && (S = {});
|
|
35867
|
-
const { prevResolvedValues:
|
|
35868
|
-
...
|
|
35867
|
+
const { prevResolvedValues: A = {} } = _, z = {
|
|
35868
|
+
...A,
|
|
35869
35869
|
...S
|
|
35870
35870
|
}, P = (V) => {
|
|
35871
35871
|
b = !0, y.has(V) && ($ = !0, y.delete(V)), _.needsAnimating[V] = !0;
|
|
35872
|
-
const
|
|
35873
|
-
|
|
35872
|
+
const q = e.getValue(V);
|
|
35873
|
+
q && (q.liveStyle = !1);
|
|
35874
35874
|
};
|
|
35875
|
-
for (const V in
|
|
35876
|
-
const
|
|
35875
|
+
for (const V in z) {
|
|
35876
|
+
const q = S[V], F = A[V];
|
|
35877
35877
|
if (f.hasOwnProperty(V))
|
|
35878
35878
|
continue;
|
|
35879
|
-
let
|
|
35880
|
-
YC(
|
|
35879
|
+
let T = !1;
|
|
35880
|
+
YC(q) && YC(F) ? T = !fz(q, F) : T = q !== F, T ? q != null ? P(V) : y.add(V) : q !== void 0 && y.has(V) ? P(V) : _.protectedKeys[V] = !0;
|
|
35881
35881
|
}
|
|
35882
35882
|
_.prevProp = w, _.prevResolvedValues = S, _.isActive && (f = { ...f, ...S }), o && e.blockInitialAnimation && (b = !1);
|
|
35883
|
-
const
|
|
35884
|
-
b && (!
|
|
35885
|
-
const
|
|
35886
|
-
if (typeof V == "string" && o && !
|
|
35887
|
-
const { parent:
|
|
35888
|
-
if (
|
|
35889
|
-
const { delayChildren:
|
|
35890
|
-
|
|
35883
|
+
const D = I && x;
|
|
35884
|
+
b && (!D || $) && u.push(...N.map((V) => {
|
|
35885
|
+
const q = { type: M };
|
|
35886
|
+
if (typeof V == "string" && o && !D && e.manuallyAnimateOnMount && e.parent) {
|
|
35887
|
+
const { parent: F } = e, T = Di(F, V);
|
|
35888
|
+
if (F.enteringChildren && T) {
|
|
35889
|
+
const { delayChildren: E } = T.transition || {};
|
|
35890
|
+
q.delay = mz(F.enteringChildren, e, E);
|
|
35891
35891
|
}
|
|
35892
35892
|
}
|
|
35893
35893
|
return {
|
|
35894
35894
|
animation: V,
|
|
35895
|
-
options:
|
|
35895
|
+
options: q
|
|
35896
35896
|
};
|
|
35897
35897
|
}));
|
|
35898
35898
|
}
|
|
@@ -37470,7 +37470,7 @@ const Zue = {
|
|
|
37470
37470
|
function zz(e) {
|
|
37471
37471
|
const t = sa(() => ui(e)), { isStatic: n } = Ae(dw);
|
|
37472
37472
|
if (n) {
|
|
37473
|
-
const [, o] =
|
|
37473
|
+
const [, o] = H(e);
|
|
37474
37474
|
O(() => t.on("change", o), []);
|
|
37475
37475
|
}
|
|
37476
37476
|
return t;
|
|
@@ -37641,7 +37641,7 @@ const dye = /* @__PURE__ */ Sr(sye), ow = [
|
|
|
37641
37641
|
headerStyle: c,
|
|
37642
37642
|
itemsDraggable: s = !0
|
|
37643
37643
|
}) => {
|
|
37644
|
-
const [d, l] =
|
|
37644
|
+
const [d, l] = H(e ?? []);
|
|
37645
37645
|
return O(() => {
|
|
37646
37646
|
e && Array.isArray(e) ? (e.forEach((h, p) => {
|
|
37647
37647
|
if (h.icon == null && (h.icon = ow[p % ow.length]), typeof h.text == "string" && h.text.includes("/")) {
|
|
@@ -37881,7 +37881,7 @@ const _ye = "_formContainer_14ads_1", Mye = "_headerLine_14ads_17", xye = "_form
|
|
|
37881
37881
|
error: i,
|
|
37882
37882
|
touched: c
|
|
37883
37883
|
}) => {
|
|
37884
|
-
const [s, d] =
|
|
37884
|
+
const [s, d] = H(!1), l = e.type === "password", h = e.attributes?.showPasswordToggle ?? !0, p = l ? s ? "text" : "password" : e.type, u = e.attributes?.iconComponent ?? // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
37885
37885
|
(e.attributes?.icon ? Rt[e.attributes.icon] : null), y = e.attributes?.iconPosition ?? "suffix", f = (g) => {
|
|
37886
37886
|
n(g.target.value);
|
|
37887
37887
|
};
|
|
@@ -38097,7 +38097,7 @@ const _ye = "_formContainer_14ads_1", Mye = "_headerLine_14ads_17", xye = "_form
|
|
|
38097
38097
|
error: i,
|
|
38098
38098
|
touched: c
|
|
38099
38099
|
}) => {
|
|
38100
|
-
const s = K(null), [d, l] =
|
|
38100
|
+
const s = K(null), [d, l] = H(!1), h = (v) => {
|
|
38101
38101
|
n(v.target.files);
|
|
38102
38102
|
}, p = () => {
|
|
38103
38103
|
s.current && s.current.click();
|
|
@@ -39065,7 +39065,7 @@ function I5e() {
|
|
|
39065
39065
|
if (T$) return GL;
|
|
39066
39066
|
T$ = 1;
|
|
39067
39067
|
var e = RN(), t = L5e(), n = Dz(), o = Ez(), i = C5e(), c = N5e(), s = 1, d = 2, l = "[object Boolean]", h = "[object Date]", p = "[object Error]", u = "[object Map]", y = "[object Number]", f = "[object RegExp]", g = "[object Set]", k = "[object String]", v = "[object Symbol]", M = "[object ArrayBuffer]", _ = "[object DataView]", w = e ? e.prototype : void 0, L = w ? w.valueOf : void 0;
|
|
39068
|
-
function C(I, x, b, $, N, S,
|
|
39068
|
+
function C(I, x, b, $, N, S, A) {
|
|
39069
39069
|
switch (b) {
|
|
39070
39070
|
case _:
|
|
39071
39071
|
if (I.byteLength != x.byteLength || I.byteOffset != x.byteOffset)
|
|
@@ -39083,17 +39083,17 @@ function I5e() {
|
|
|
39083
39083
|
case k:
|
|
39084
39084
|
return I == x + "";
|
|
39085
39085
|
case u:
|
|
39086
|
-
var
|
|
39086
|
+
var z = i;
|
|
39087
39087
|
case g:
|
|
39088
39088
|
var P = $ & s;
|
|
39089
|
-
if (
|
|
39089
|
+
if (z || (z = c), I.size != x.size && !P)
|
|
39090
39090
|
return !1;
|
|
39091
|
-
var
|
|
39092
|
-
if (
|
|
39093
|
-
return
|
|
39094
|
-
$ |= d,
|
|
39095
|
-
var
|
|
39096
|
-
return
|
|
39091
|
+
var D = A.get(I);
|
|
39092
|
+
if (D)
|
|
39093
|
+
return D == x;
|
|
39094
|
+
$ |= d, A.set(I, x);
|
|
39095
|
+
var B = o(z(I), z(x), $, N, S, A);
|
|
39096
|
+
return A.delete(I), B;
|
|
39097
39097
|
case v:
|
|
39098
39098
|
if (L)
|
|
39099
39099
|
return L.call(I) == L.call(x);
|
|
@@ -39249,10 +39249,10 @@ function j5e() {
|
|
|
39249
39249
|
Y$ = 1;
|
|
39250
39250
|
var e = kw(), t = Uz(), n = gw(), o = "[object Arguments]", i = "[object Array]", c = "[object Boolean]", s = "[object Date]", d = "[object Error]", l = "[object Function]", h = "[object Map]", p = "[object Number]", u = "[object Object]", y = "[object RegExp]", f = "[object Set]", g = "[object String]", k = "[object WeakMap]", v = "[object ArrayBuffer]", M = "[object DataView]", _ = "[object Float32Array]", w = "[object Float64Array]", L = "[object Int8Array]", C = "[object Int16Array]", I = "[object Int32Array]", x = "[object Uint8Array]", b = "[object Uint8ClampedArray]", $ = "[object Uint16Array]", N = "[object Uint32Array]", S = {};
|
|
39251
39251
|
S[_] = S[w] = S[L] = S[C] = S[I] = S[x] = S[b] = S[$] = S[N] = !0, S[o] = S[i] = S[v] = S[c] = S[M] = S[s] = S[d] = S[l] = S[h] = S[p] = S[u] = S[y] = S[f] = S[g] = S[k] = !1;
|
|
39252
|
-
function
|
|
39253
|
-
return n(
|
|
39252
|
+
function A(z) {
|
|
39253
|
+
return n(z) && t(z.length) && !!S[e(z)];
|
|
39254
39254
|
}
|
|
39255
|
-
return cC =
|
|
39255
|
+
return cC = A, cC;
|
|
39256
39256
|
}
|
|
39257
39257
|
var sC, J$;
|
|
39258
39258
|
function B5e() {
|
|
@@ -39484,10 +39484,10 @@ function ake() {
|
|
|
39484
39484
|
if (S && !$)
|
|
39485
39485
|
return L || (L = new e()), C || d(k) ? t(k, v, M, _, w, L) : n(k, v, x, M, _, w, L);
|
|
39486
39486
|
if (!(M & l)) {
|
|
39487
|
-
var
|
|
39488
|
-
if (
|
|
39489
|
-
var P =
|
|
39490
|
-
return L || (L = new e()), w(P,
|
|
39487
|
+
var A = $ && f.call(k, "__wrapped__"), z = N && f.call(v, "__wrapped__");
|
|
39488
|
+
if (A || z) {
|
|
39489
|
+
var P = A ? k.value() : k, D = z ? v.value() : v;
|
|
39490
|
+
return L || (L = new e()), w(P, D, M, _, L);
|
|
39491
39491
|
}
|
|
39492
39492
|
}
|
|
39493
39493
|
return S ? (L || (L = new e()), o(k, v, M, _, w, L)) : !1;
|
|
@@ -39526,19 +39526,19 @@ const rke = /* @__PURE__ */ UV(ike), vwe = ({
|
|
|
39526
39526
|
cancelLabel: d = "Retour",
|
|
39527
39527
|
cancelIcon: l
|
|
39528
39528
|
}) => {
|
|
39529
|
-
const [h, p] =
|
|
39529
|
+
const [h, p] = H(t), [u, y] = H({}), [f, g] = H({}), [k, v] = H(!1), M = K(t);
|
|
39530
39530
|
O(() => {
|
|
39531
39531
|
rke(M.current, t) || (p(t), M.current = t);
|
|
39532
39532
|
}, [t]);
|
|
39533
39533
|
const _ = (b, $) => {
|
|
39534
39534
|
const N = { ...h, [b]: $ };
|
|
39535
39535
|
if (p(N), f[b]) {
|
|
39536
|
-
const S = e.fields.find((
|
|
39536
|
+
const S = e.fields.find((A) => A.name === b);
|
|
39537
39537
|
if (S) {
|
|
39538
|
-
const
|
|
39539
|
-
y((
|
|
39540
|
-
...
|
|
39541
|
-
[b]:
|
|
39538
|
+
const A = aN($, S);
|
|
39539
|
+
y((z) => ({
|
|
39540
|
+
...z,
|
|
39541
|
+
[b]: A.isValid ? "" : A.error
|
|
39542
39542
|
}));
|
|
39543
39543
|
}
|
|
39544
39544
|
}
|
|
@@ -39557,7 +39557,7 @@ const rke = /* @__PURE__ */ UV(ike), vwe = ({
|
|
|
39557
39557
|
}, L = async (b) => {
|
|
39558
39558
|
b.preventDefault(), v(!0);
|
|
39559
39559
|
const $ = e.fields.reduce(
|
|
39560
|
-
(S,
|
|
39560
|
+
(S, A) => (A.type !== "section" && (S[A.name] = !0), S),
|
|
39561
39561
|
{}
|
|
39562
39562
|
);
|
|
39563
39563
|
g($);
|
|
@@ -39569,8 +39569,8 @@ const rke = /* @__PURE__ */ UV(ike), vwe = ({
|
|
|
39569
39569
|
try {
|
|
39570
39570
|
await n(h);
|
|
39571
39571
|
} catch (S) {
|
|
39572
|
-
console.error("Erreur lors de la soumission:", S), y((
|
|
39573
|
-
...
|
|
39572
|
+
console.error("Erreur lors de la soumission:", S), y((A) => ({
|
|
39573
|
+
...A,
|
|
39574
39574
|
__global: "Une erreur est survenue lors de la soumission"
|
|
39575
39575
|
}));
|
|
39576
39576
|
}
|
|
@@ -39658,7 +39658,7 @@ const gq = /* @__PURE__ */ new Map(), vq = ({
|
|
|
39658
39658
|
keepColors: i = !1,
|
|
39659
39659
|
onClick: c
|
|
39660
39660
|
}) => {
|
|
39661
|
-
const s = /^https?:\/\//.test(e), [d, l] =
|
|
39661
|
+
const s = /^https?:\/\//.test(e), [d, l] = H("");
|
|
39662
39662
|
if (O(() => {
|
|
39663
39663
|
if (s) return;
|
|
39664
39664
|
e && (async () => {
|
|
@@ -39812,7 +39812,7 @@ const gq = /* @__PURE__ */ new Map(), vq = ({
|
|
|
39812
39812
|
onChange: n,
|
|
39813
39813
|
disabled: o
|
|
39814
39814
|
}) => {
|
|
39815
|
-
const [i, c] =
|
|
39815
|
+
const [i, c] = H([]);
|
|
39816
39816
|
O(() => {
|
|
39817
39817
|
(async () => {
|
|
39818
39818
|
if (e.asyncOptions)
|
|
@@ -39842,7 +39842,7 @@ const gq = /* @__PURE__ */ new Map(), vq = ({
|
|
|
39842
39842
|
}
|
|
39843
39843
|
);
|
|
39844
39844
|
}, _q = ({ config: e, value: t, onChange: n, disabled: o }) => {
|
|
39845
|
-
const [i, c] =
|
|
39845
|
+
const [i, c] = H(t || "");
|
|
39846
39846
|
return /* @__PURE__ */ r(
|
|
39847
39847
|
"input",
|
|
39848
39848
|
{
|
|
@@ -39863,7 +39863,7 @@ const gq = /* @__PURE__ */ new Map(), vq = ({
|
|
|
39863
39863
|
onChange: n,
|
|
39864
39864
|
disabled: o = !1
|
|
39865
39865
|
}) => {
|
|
39866
|
-
const [i, c] =
|
|
39866
|
+
const [i, c] = H([]), [s, d] = H(!1);
|
|
39867
39867
|
O(() => {
|
|
39868
39868
|
(async () => {
|
|
39869
39869
|
if (e.asyncOptions) {
|
|
@@ -39898,7 +39898,7 @@ const gq = /* @__PURE__ */ new Map(), vq = ({
|
|
|
39898
39898
|
}
|
|
39899
39899
|
);
|
|
39900
39900
|
}, q3e = ({ config: e, value: t, onChange: n, disabled: o = !1 }) => {
|
|
39901
|
-
const [i, c] =
|
|
39901
|
+
const [i, c] = H("");
|
|
39902
39902
|
return O(() => {
|
|
39903
39903
|
c(typeof t == "string" ? t : String(t || ""));
|
|
39904
39904
|
}, [t]), /* @__PURE__ */ r(
|
|
@@ -39921,7 +39921,7 @@ const gq = /* @__PURE__ */ new Map(), vq = ({
|
|
|
39921
39921
|
onChange: n,
|
|
39922
39922
|
disabled: o = !1
|
|
39923
39923
|
}) => {
|
|
39924
|
-
const [i, c] =
|
|
39924
|
+
const [i, c] = H(t?.operator || ""), [s, d] = H(t?.value || "");
|
|
39925
39925
|
O(() => {
|
|
39926
39926
|
i && s && n({ operator: i, value: s });
|
|
39927
39927
|
}, [i, s, n]);
|
|
@@ -40091,7 +40091,7 @@ const gq = /* @__PURE__ */ new Map(), vq = ({
|
|
|
40091
40091
|
onApply: o,
|
|
40092
40092
|
isControlled: i = !1
|
|
40093
40093
|
}) => {
|
|
40094
|
-
const [c, s] =
|
|
40094
|
+
const [c, s] = H([]), [d, l] = H(() => {
|
|
40095
40095
|
const g = {};
|
|
40096
40096
|
return e.forEach((k) => {
|
|
40097
40097
|
k.type === "daterange" ? g[k.id] = { start: "", end: "" } : g[k.id] = k.defaultValue ?? "";
|
|
@@ -40346,7 +40346,7 @@ const H3e = ({ value: e }) => e, j3e = ({ value: e }) => he.createElement(
|
|
|
40346
40346
|
applyDisabled: g = !1,
|
|
40347
40347
|
loading: k = !1
|
|
40348
40348
|
}) => {
|
|
40349
|
-
const [v, M] =
|
|
40349
|
+
const [v, M] = H(!1), _ = typeof s == "boolean" ? s : v, { appliedFilters: w, tempFilters: L, updateFilter: C, applyFilters: I, clearAllFilters: x } = P3e({
|
|
40350
40350
|
filters: e,
|
|
40351
40351
|
externalFilters: t,
|
|
40352
40352
|
onFiltersChange: n,
|
|
@@ -40355,41 +40355,41 @@ const H3e = ({ value: e }) => e, j3e = ({ value: e }) => he.createElement(
|
|
|
40355
40355
|
}), b = K(null), $ = K(null);
|
|
40356
40356
|
O(() => {
|
|
40357
40357
|
if (_ && b.current) {
|
|
40358
|
-
const
|
|
40359
|
-
h?.(
|
|
40358
|
+
const D = b.current.getBoundingClientRect().height;
|
|
40359
|
+
h?.(D);
|
|
40360
40360
|
} else
|
|
40361
40361
|
h?.(0);
|
|
40362
40362
|
}, [_, e, L, h]);
|
|
40363
40363
|
const N = () => {
|
|
40364
|
-
typeof s == "boolean" ? d?.(!s) : M((
|
|
40365
|
-
const
|
|
40366
|
-
return d?.(
|
|
40364
|
+
typeof s == "boolean" ? d?.(!s) : M((D) => {
|
|
40365
|
+
const B = !D;
|
|
40366
|
+
return d?.(B), B;
|
|
40367
40367
|
});
|
|
40368
|
-
}, S = () => e.map((
|
|
40369
|
-
const
|
|
40370
|
-
return
|
|
40371
|
-
}).filter(Boolean),
|
|
40372
|
-
let
|
|
40368
|
+
}, S = () => e.map((D) => {
|
|
40369
|
+
const B = L?.[D.id];
|
|
40370
|
+
return B == null || typeof B == "string" && B.trim() === "" ? null : { id: D.id, label: D.label, value: B };
|
|
40371
|
+
}).filter(Boolean), A = async () => {
|
|
40372
|
+
let D;
|
|
40373
40373
|
try {
|
|
40374
|
-
|
|
40374
|
+
D = await I();
|
|
40375
40375
|
} catch {
|
|
40376
|
-
|
|
40376
|
+
D = void 0;
|
|
40377
40377
|
}
|
|
40378
|
-
let
|
|
40379
|
-
|
|
40380
|
-
},
|
|
40378
|
+
let B = [];
|
|
40379
|
+
D && Array.isArray(D) && D.length > 0 ? B = D : w && w.length > 0 ? B = w : B = S(), n?.(B), o?.(B);
|
|
40380
|
+
}, z = () => {
|
|
40381
40381
|
d?.(!1), typeof s != "boolean" && M(!1);
|
|
40382
40382
|
}, P = () => {
|
|
40383
40383
|
x(), n?.([]), o?.([]);
|
|
40384
40384
|
};
|
|
40385
40385
|
return O(() => {
|
|
40386
|
-
const
|
|
40386
|
+
const D = (V) => {
|
|
40387
40387
|
_ && $.current && ($.current.contains(V.target) || (d?.(!1), typeof s != "boolean" && M(!1)));
|
|
40388
|
-
},
|
|
40388
|
+
}, B = (V) => {
|
|
40389
40389
|
V.key === "Escape" && _ && (d?.(!1), typeof s != "boolean" && M(!1));
|
|
40390
40390
|
};
|
|
40391
|
-
return _ && (document.addEventListener("pointerdown",
|
|
40392
|
-
document.removeEventListener("pointerdown",
|
|
40391
|
+
return _ && (document.addEventListener("pointerdown", D), document.addEventListener("keydown", B)), () => {
|
|
40392
|
+
document.removeEventListener("pointerdown", D), document.removeEventListener("keydown", B);
|
|
40393
40393
|
};
|
|
40394
40394
|
}, [_, s, d]), /* @__PURE__ */ m("div", { className: R.advancedFiltersContainer, ref: $, children: [
|
|
40395
40395
|
/* @__PURE__ */ m(
|
|
@@ -40418,37 +40418,37 @@ const H3e = ({ value: e }) => e, j3e = ({ value: e }) => he.createElement(
|
|
|
40418
40418
|
role: "region",
|
|
40419
40419
|
"aria-label": "Panneau de filtres avancés",
|
|
40420
40420
|
children: [
|
|
40421
|
-
/* @__PURE__ */ r("div", { className: R.filtersRow, children: e.map((
|
|
40421
|
+
/* @__PURE__ */ r("div", { className: R.filtersRow, children: e.map((D) => /* @__PURE__ */ m("div", { className: `${R.filterItem} ${R.filterItemInline}`, children: [
|
|
40422
40422
|
/* @__PURE__ */ m("label", { className: R.filterLabel, children: [
|
|
40423
|
-
|
|
40424
|
-
|
|
40423
|
+
D.label,
|
|
40424
|
+
D.required && /* @__PURE__ */ r("span", { className: R.required, children: "*" })
|
|
40425
40425
|
] }),
|
|
40426
40426
|
/* @__PURE__ */ r(
|
|
40427
40427
|
V3e,
|
|
40428
40428
|
{
|
|
40429
|
-
config:
|
|
40430
|
-
value: L[
|
|
40431
|
-
onChange: (
|
|
40432
|
-
disabled:
|
|
40429
|
+
config: D,
|
|
40430
|
+
value: L[D.id],
|
|
40431
|
+
onChange: (B) => C(D.id, B),
|
|
40432
|
+
disabled: D.disabled
|
|
40433
40433
|
}
|
|
40434
40434
|
)
|
|
40435
|
-
] },
|
|
40435
|
+
] }, D.id)) }),
|
|
40436
40436
|
/* @__PURE__ */ m("div", { className: R.filtersActionsHorizontal, children: [
|
|
40437
40437
|
/* @__PURE__ */ r("div", { className: R.activeFiltersSection, children: w.length > 0 && /* @__PURE__ */ m("div", { className: R.activeFiltersRow, children: [
|
|
40438
40438
|
/* @__PURE__ */ r("span", { className: R.activeLabelCompact, children: "Actifs :" }),
|
|
40439
|
-
/* @__PURE__ */ r("div", { className: R.activeFiltersList, children: w.map((
|
|
40440
|
-
|
|
40439
|
+
/* @__PURE__ */ r("div", { className: R.activeFiltersList, children: w.map((D) => /* @__PURE__ */ m("div", { className: R.activeFilterTag, children: [
|
|
40440
|
+
D.label ?? D.id,
|
|
40441
40441
|
/* @__PURE__ */ r(
|
|
40442
40442
|
"button",
|
|
40443
40443
|
{
|
|
40444
40444
|
className: R.removeFilterButton,
|
|
40445
|
-
onClick: () => C(
|
|
40446
|
-
"aria-label": `Supprimer ${
|
|
40445
|
+
onClick: () => C(D.id, void 0),
|
|
40446
|
+
"aria-label": `Supprimer ${D.id}`,
|
|
40447
40447
|
type: "button",
|
|
40448
40448
|
children: "×"
|
|
40449
40449
|
}
|
|
40450
40450
|
)
|
|
40451
|
-
] },
|
|
40451
|
+
] }, D.id)) }),
|
|
40452
40452
|
/* @__PURE__ */ m("button", { className: R.clearAllButton, onClick: P, type: "button", children: [
|
|
40453
40453
|
/* @__PURE__ */ r(Mt, { size: 12 }),
|
|
40454
40454
|
" ",
|
|
@@ -40460,7 +40460,7 @@ const H3e = ({ value: e }) => e, j3e = ({ value: e }) => he.createElement(
|
|
|
40460
40460
|
"button",
|
|
40461
40461
|
{
|
|
40462
40462
|
className: R.cancelButton,
|
|
40463
|
-
onClick:
|
|
40463
|
+
onClick: z,
|
|
40464
40464
|
type: "button",
|
|
40465
40465
|
disabled: k,
|
|
40466
40466
|
children: y
|
|
@@ -40470,7 +40470,7 @@ const H3e = ({ value: e }) => e, j3e = ({ value: e }) => he.createElement(
|
|
|
40470
40470
|
"button",
|
|
40471
40471
|
{
|
|
40472
40472
|
className: `${R.applyButton} ${k ? R.loadingButton : ""}`,
|
|
40473
|
-
onClick:
|
|
40473
|
+
onClick: A,
|
|
40474
40474
|
type: "button",
|
|
40475
40475
|
disabled: g || k,
|
|
40476
40476
|
"aria-disabled": g || k,
|
|
@@ -40496,7 +40496,7 @@ const H3e = ({ value: e }) => e, j3e = ({ value: e }) => he.createElement(
|
|
|
40496
40496
|
label: o = "Sort",
|
|
40497
40497
|
loading: i = !1
|
|
40498
40498
|
}) => {
|
|
40499
|
-
const [c, s] =
|
|
40499
|
+
const [c, s] = H(!1), d = e.filter((g) => g.sortable), l = K(null), h = t?.key !== null && t?.key !== void 0, p = (g, k) => {
|
|
40500
40500
|
n({ key: g, direction: k }), s(!1);
|
|
40501
40501
|
}, u = () => {
|
|
40502
40502
|
n({ key: null, direction: "asc" }), s(!1);
|
|
@@ -40806,55 +40806,55 @@ const H3e = ({ value: e }) => e, j3e = ({ value: e }) => he.createElement(
|
|
|
40806
40806
|
paginationLoading: $ = !1,
|
|
40807
40807
|
filtersLoading: N = !1,
|
|
40808
40808
|
sortLoading: S = !1,
|
|
40809
|
-
totalCount:
|
|
40809
|
+
totalCount: A = null
|
|
40810
40810
|
}) => {
|
|
40811
|
-
const [
|
|
40811
|
+
const [z, P] = H({ key: null, direction: "asc" }), [D, B] = H(n.currentPage ?? 1), [V, q] = H(n.pageSize ?? 10), [F, T] = H(!1), E = K(null), [Q, W] = H([]), Y = u ? d : Q, oe = u ? [] : Q;
|
|
40812
40812
|
O(() => {
|
|
40813
40813
|
const pe = n.currentPage ?? 1, De = n.pageSize ?? 10;
|
|
40814
|
-
pe !==
|
|
40814
|
+
pe !== D && B(pe), De !== V && q(De);
|
|
40815
40815
|
}, [n.currentPage, n.pageSize]);
|
|
40816
40816
|
const { paginatedData: U, sortedData: ae, totalPages: ye, startIndex: X } = D3e(
|
|
40817
40817
|
t,
|
|
40818
40818
|
e,
|
|
40819
40819
|
i,
|
|
40820
|
-
|
|
40821
|
-
|
|
40820
|
+
z,
|
|
40821
|
+
D,
|
|
40822
40822
|
V,
|
|
40823
40823
|
oe
|
|
40824
|
-
), se = ae.length, fe = typeof
|
|
40824
|
+
), se = ae.length, fe = typeof A == "number" && A >= 0 ? A : se;
|
|
40825
40825
|
let ve = ye;
|
|
40826
|
-
typeof
|
|
40826
|
+
typeof A == "number" && A >= 0 && (ve = Math.max(1, Math.ceil(A / V)));
|
|
40827
40827
|
const be = se > 10;
|
|
40828
40828
|
O(() => {
|
|
40829
40829
|
const pe = Math.max(1, Math.floor(ve));
|
|
40830
|
-
|
|
40830
|
+
D > pe && B(pe), D < 1 && B(1);
|
|
40831
40831
|
}, [ve]);
|
|
40832
40832
|
const J = (pe) => {
|
|
40833
|
-
u || W(pe), l?.(pe),
|
|
40833
|
+
u || W(pe), l?.(pe), B(1), v?.(1);
|
|
40834
40834
|
}, re = (pe) => {
|
|
40835
|
-
u || W(pe), h?.(pe),
|
|
40835
|
+
u || W(pe), h?.(pe), B(1), v?.(1), E.current && E.current.style.setProperty("--filters-panel-height", "0px");
|
|
40836
40836
|
}, ke = (pe) => {
|
|
40837
|
-
v?.(pe),
|
|
40837
|
+
v?.(pe), B(pe);
|
|
40838
40838
|
}, Te = (pe) => {
|
|
40839
|
-
|
|
40839
|
+
q(pe), B(1), k?.(pe), v?.(1);
|
|
40840
40840
|
}, Re = (pe) => {
|
|
40841
|
-
|
|
40841
|
+
E.current && E.current.style.setProperty("--filters-panel-height", `${Math.round(pe)}px`);
|
|
40842
40842
|
}, Le = (pe) => {
|
|
40843
40843
|
P(pe), p?.(pe);
|
|
40844
40844
|
}, He = (pe) => {
|
|
40845
|
-
|
|
40845
|
+
T(pe), !pe && E.current && E.current.style.setProperty("--filters-panel-height", "0px");
|
|
40846
40846
|
};
|
|
40847
40847
|
O(() => {
|
|
40848
|
-
(Y?.length ?? 0) > 0 &&
|
|
40848
|
+
(Y?.length ?? 0) > 0 && T(!0);
|
|
40849
40849
|
}, [Y]), O(() => {
|
|
40850
|
-
s.length > 0 && Y.length > 0 &&
|
|
40850
|
+
s.length > 0 && Y.length > 0 && T(!0);
|
|
40851
40851
|
}, [s.length, Y.length]);
|
|
40852
40852
|
const Gt = (Y?.length ?? 0) > 0 && w ? w : _;
|
|
40853
40853
|
return /* @__PURE__ */ m(
|
|
40854
40854
|
"div",
|
|
40855
40855
|
{
|
|
40856
|
-
ref:
|
|
40857
|
-
className: `${R.container} ${c} ${
|
|
40856
|
+
ref: E,
|
|
40857
|
+
className: `${R.container} ${c} ${F ? R.filtersOpen : ""}`,
|
|
40858
40858
|
style: {
|
|
40859
40859
|
background: g,
|
|
40860
40860
|
"--row-height": "48px",
|
|
@@ -40868,7 +40868,7 @@ const H3e = ({ value: e }) => e, j3e = ({ value: e }) => he.createElement(
|
|
|
40868
40868
|
columns: e,
|
|
40869
40869
|
onSort: Le,
|
|
40870
40870
|
label: L,
|
|
40871
|
-
sortConfig:
|
|
40871
|
+
sortConfig: z,
|
|
40872
40872
|
loading: S
|
|
40873
40873
|
}
|
|
40874
40874
|
),
|
|
@@ -40881,7 +40881,7 @@ const H3e = ({ value: e }) => e, j3e = ({ value: e }) => he.createElement(
|
|
|
40881
40881
|
onApply: re,
|
|
40882
40882
|
isControlled: u,
|
|
40883
40883
|
debounceTimeout: y,
|
|
40884
|
-
expanded:
|
|
40884
|
+
expanded: F,
|
|
40885
40885
|
onToggle: He,
|
|
40886
40886
|
panelPlacement: "top",
|
|
40887
40887
|
onPanelHeightChange: Re,
|
|
@@ -40897,7 +40897,7 @@ const H3e = ({ value: e }) => e, j3e = ({ value: e }) => he.createElement(
|
|
|
40897
40897
|
/* @__PURE__ */ r("div", { className: R.topPagination, children: /* @__PURE__ */ r(
|
|
40898
40898
|
K3e,
|
|
40899
40899
|
{
|
|
40900
|
-
currentPage:
|
|
40900
|
+
currentPage: D,
|
|
40901
40901
|
totalPages: ve,
|
|
40902
40902
|
pageSize: V,
|
|
40903
40903
|
totalItems: fe,
|
|
@@ -41537,36 +41537,36 @@ const bwe = ({
|
|
|
41537
41537
|
summaryCardWidth: $,
|
|
41538
41538
|
summaryCardHeight: N,
|
|
41539
41539
|
summaryCardStyle: S
|
|
41540
|
-
} = e,
|
|
41540
|
+
} = e, A = n === "vertical", z = {
|
|
41541
41541
|
"--mp-accent": c,
|
|
41542
41542
|
"--mp-accent-soft": e6e(c, 0.08),
|
|
41543
41543
|
"--mp-bg-primary": _
|
|
41544
41544
|
}, P = [
|
|
41545
41545
|
le.mpRoot,
|
|
41546
|
-
|
|
41546
|
+
A ? le.mpVertical : le.mpHorizontal,
|
|
41547
41547
|
s ? le.mpCompact : "",
|
|
41548
41548
|
f ? le.mpSummaryRoot : "",
|
|
41549
41549
|
o !== "auto" ? o === "vertical" ? le.mpOrientationVertical : le.mpOrientationHorizontal : "",
|
|
41550
41550
|
h
|
|
41551
|
-
].filter(Boolean).join(" "),
|
|
41551
|
+
].filter(Boolean).join(" "), D = xe(() => y || (Zme(M) ?? void 0), [y, M]);
|
|
41552
41552
|
if (f) {
|
|
41553
|
-
const
|
|
41553
|
+
const B = o === "horizontal" ? le.mpSummaryFlex : le.mpSummaryVertical, q = { ...(C ? {
|
|
41554
41554
|
display: "grid",
|
|
41555
41555
|
gridTemplateColumns: `repeat(${C}, 1fr)`,
|
|
41556
41556
|
gap: 18,
|
|
41557
41557
|
alignItems: "stretch",
|
|
41558
41558
|
width: "100%"
|
|
41559
41559
|
} : void 0) ?? {}, ...w ?? {} };
|
|
41560
|
-
return /* @__PURE__ */ m("div", { className: P, style:
|
|
41560
|
+
return /* @__PURE__ */ m("div", { className: P, style: z, "aria-busy": p, children: [
|
|
41561
41561
|
d && /* @__PURE__ */ r(bq, { title: d }),
|
|
41562
41562
|
/* @__PURE__ */ r("div", { className: le.mpSummaryInner, children: /* @__PURE__ */ r(
|
|
41563
41563
|
"div",
|
|
41564
41564
|
{
|
|
41565
|
-
className: `${
|
|
41566
|
-
style:
|
|
41567
|
-
children: t.length === 0 ? /* @__PURE__ */ r("div", { className: le.mpEmpty, children: u }) : t.map((
|
|
41568
|
-
const
|
|
41569
|
-
return
|
|
41565
|
+
className: `${B} ${L ?? ""}`,
|
|
41566
|
+
style: q,
|
|
41567
|
+
children: t.length === 0 ? /* @__PURE__ */ r("div", { className: le.mpEmpty, children: u }) : t.map((F, T) => {
|
|
41568
|
+
const E = F.bgColor ?? g[T % g.length], Q = F.borderColor ?? k[T % k.length], W = F.valueColor ?? v[T % v.length];
|
|
41569
|
+
return D ? /* @__PURE__ */ r(
|
|
41570
41570
|
"div",
|
|
41571
41571
|
{
|
|
41572
41572
|
className: o === "horizontal" ? le.mpSummaryCardWrapperHorizontal : le.mpSummaryCardWrapper,
|
|
@@ -41575,32 +41575,32 @@ const bwe = ({
|
|
|
41575
41575
|
height: N ?? void 0,
|
|
41576
41576
|
...S ?? {}
|
|
41577
41577
|
},
|
|
41578
|
-
children:
|
|
41578
|
+
children: D(F, T)
|
|
41579
41579
|
},
|
|
41580
|
-
|
|
41580
|
+
F.id
|
|
41581
41581
|
) : /* @__PURE__ */ r(
|
|
41582
41582
|
Xme,
|
|
41583
41583
|
{
|
|
41584
|
-
item:
|
|
41584
|
+
item: F,
|
|
41585
41585
|
orientation: o === "horizontal" ? "horizontal" : "vertical",
|
|
41586
|
-
bg:
|
|
41587
|
-
border:
|
|
41586
|
+
bg: E,
|
|
41587
|
+
border: Q,
|
|
41588
41588
|
valueColor: W,
|
|
41589
41589
|
onClick: l,
|
|
41590
41590
|
width: $ ?? void 0,
|
|
41591
41591
|
height: N ?? void 0,
|
|
41592
41592
|
extraStyle: S
|
|
41593
41593
|
},
|
|
41594
|
-
|
|
41594
|
+
F.id
|
|
41595
41595
|
);
|
|
41596
41596
|
})
|
|
41597
41597
|
}
|
|
41598
41598
|
) })
|
|
41599
41599
|
] });
|
|
41600
41600
|
}
|
|
41601
|
-
return /* @__PURE__ */ m("div", { className: P, style:
|
|
41601
|
+
return /* @__PURE__ */ m("div", { className: P, style: z, "aria-busy": p, children: [
|
|
41602
41602
|
d && /* @__PURE__ */ r(bq, { title: d }),
|
|
41603
|
-
/* @__PURE__ */ r("div", { className: le.mpList, style: w, children: p ? /* @__PURE__ */ r("div", { className: le.mpEmpty, children: "Chargement…" }) : t.length === 0 ? /* @__PURE__ */ r("div", { className: le.mpEmpty, children: u }) : t.map((
|
|
41603
|
+
/* @__PURE__ */ r("div", { className: le.mpList, style: w, children: p ? /* @__PURE__ */ r("div", { className: le.mpEmpty, children: "Chargement…" }) : t.length === 0 ? /* @__PURE__ */ r("div", { className: le.mpEmpty, children: u }) : t.map((B) => {
|
|
41604
41604
|
const V = s ? {
|
|
41605
41605
|
width: I ?? void 0,
|
|
41606
41606
|
height: x ?? void 0,
|
|
@@ -41615,15 +41615,15 @@ const bwe = ({
|
|
|
41615
41615
|
children: /* @__PURE__ */ r(
|
|
41616
41616
|
Wme,
|
|
41617
41617
|
{
|
|
41618
|
-
item:
|
|
41618
|
+
item: B,
|
|
41619
41619
|
shape: i,
|
|
41620
41620
|
onItemClick: l,
|
|
41621
41621
|
color: c,
|
|
41622
|
-
renderItem:
|
|
41622
|
+
renderItem: D ? (q) => D(q, t.indexOf(q)) : void 0
|
|
41623
41623
|
}
|
|
41624
41624
|
)
|
|
41625
41625
|
},
|
|
41626
|
-
|
|
41626
|
+
B.id
|
|
41627
41627
|
);
|
|
41628
41628
|
}) })
|
|
41629
41629
|
] });
|
|
@@ -41801,51 +41801,51 @@ const wwe = ({
|
|
|
41801
41801
|
containerClassName: o,
|
|
41802
41802
|
containerStyle: i
|
|
41803
41803
|
}) => {
|
|
41804
|
-
const [c, s] =
|
|
41804
|
+
const [c, s] = H([]), d = K(/* @__PURE__ */ new Map()), l = K(null), [h, p] = H(null), [u, y] = H(void 0), f = K(n), g = K(c), k = K(t);
|
|
41805
41805
|
O(() => {
|
|
41806
41806
|
g.current = c;
|
|
41807
41807
|
}, [c]), O(() => {
|
|
41808
41808
|
k.current = t;
|
|
41809
41809
|
}, [t]), O(() => {
|
|
41810
|
-
const
|
|
41810
|
+
const z = d.current;
|
|
41811
41811
|
return () => {
|
|
41812
|
-
|
|
41812
|
+
z.forEach((P) => window.clearTimeout(P)), z.clear();
|
|
41813
41813
|
};
|
|
41814
41814
|
}, []);
|
|
41815
|
-
const v = ue((
|
|
41816
|
-
const P = d.current.get(
|
|
41817
|
-
P && (window.clearTimeout(P), d.current.delete(
|
|
41815
|
+
const v = ue((z) => {
|
|
41816
|
+
const P = d.current.get(z);
|
|
41817
|
+
P && (window.clearTimeout(P), d.current.delete(z));
|
|
41818
41818
|
}, []), M = ue(
|
|
41819
|
-
(
|
|
41820
|
-
v(
|
|
41819
|
+
(z) => {
|
|
41820
|
+
v(z), s((P) => P.filter((D) => D.id !== z));
|
|
41821
41821
|
},
|
|
41822
41822
|
[v]
|
|
41823
41823
|
), _ = ue(
|
|
41824
|
-
(
|
|
41825
|
-
const
|
|
41826
|
-
if (
|
|
41827
|
-
const
|
|
41828
|
-
M(
|
|
41829
|
-
},
|
|
41830
|
-
d.current.set(
|
|
41824
|
+
(z, P) => {
|
|
41825
|
+
const D = P === void 0 || P === 0 ? k.current : P;
|
|
41826
|
+
if (D === -1) return;
|
|
41827
|
+
const B = window.setTimeout(() => {
|
|
41828
|
+
M(z);
|
|
41829
|
+
}, D);
|
|
41830
|
+
d.current.set(z, B);
|
|
41831
41831
|
},
|
|
41832
41832
|
[M]
|
|
41833
41833
|
), w = ue(
|
|
41834
|
-
(
|
|
41835
|
-
const P = a6e(),
|
|
41836
|
-
return s((
|
|
41837
|
-
const V = [
|
|
41838
|
-
return typeof
|
|
41839
|
-
}), _(P,
|
|
41834
|
+
(z) => {
|
|
41835
|
+
const P = a6e(), D = { ...z, id: P, createdAt: Date.now() };
|
|
41836
|
+
return s((B) => {
|
|
41837
|
+
const V = [D, ...B], q = f.current;
|
|
41838
|
+
return typeof q == "number" && q >= 0 && V.length > q ? (V.slice(q).forEach((T) => v(T.id)), V.slice(0, q)) : V;
|
|
41839
|
+
}), _(P, z.duration), P;
|
|
41840
41840
|
},
|
|
41841
41841
|
[v, _]
|
|
41842
|
-
), L = ue((
|
|
41843
|
-
s((
|
|
41842
|
+
), L = ue((z, P) => {
|
|
41843
|
+
s((D) => D.map((B) => B.id === z ? { ...B, ...P } : B));
|
|
41844
41844
|
}, []), C = ue(() => {
|
|
41845
|
-
d.current.forEach((
|
|
41845
|
+
d.current.forEach((z) => window.clearTimeout(z)), d.current.clear(), s([]);
|
|
41846
41846
|
}, []), I = ue(
|
|
41847
|
-
(
|
|
41848
|
-
|
|
41847
|
+
(z, P) => {
|
|
41848
|
+
z && window.getComputedStyle(z).position === "static" && (z.style.position = "relative"), p((D) => D === z ? D : z), y(P);
|
|
41849
41849
|
},
|
|
41850
41850
|
[]
|
|
41851
41851
|
), x = ue(() => g.current.slice(), []), b = xe(
|
|
@@ -41875,7 +41875,7 @@ const wwe = ({
|
|
|
41875
41875
|
...N ? { top: "auto", left: "auto", right: "auto", alignItems: "flex-end" } : null,
|
|
41876
41876
|
...$ ? u : null
|
|
41877
41877
|
},
|
|
41878
|
-
children: /* @__PURE__ */ r(vhe, { mode: "popLayout", children: c.map((
|
|
41878
|
+
children: /* @__PURE__ */ r(vhe, { mode: "popLayout", children: c.map((z) => /* @__PURE__ */ r(
|
|
41879
41879
|
jN.div,
|
|
41880
41880
|
{
|
|
41881
41881
|
initial: { opacity: 0, y: -10, scale: 0.98 },
|
|
@@ -41892,35 +41892,35 @@ const wwe = ({
|
|
|
41892
41892
|
boxShadow: "0 6px 20px rgba(0, 0, 0, 0.12)",
|
|
41893
41893
|
borderRadius: "8px",
|
|
41894
41894
|
marginBottom: "6px",
|
|
41895
|
-
backgroundColor:
|
|
41895
|
+
backgroundColor: z.background || z.model?.background || "var(--color-background, #fff)",
|
|
41896
41896
|
border: "1px solid rgba(0, 0, 0, 0.08)",
|
|
41897
41897
|
overflow: "hidden"
|
|
41898
41898
|
},
|
|
41899
41899
|
children: /* @__PURE__ */ r(
|
|
41900
41900
|
Gz,
|
|
41901
41901
|
{
|
|
41902
|
-
id:
|
|
41903
|
-
text:
|
|
41904
|
-
subtext:
|
|
41905
|
-
icon:
|
|
41902
|
+
id: z.id,
|
|
41903
|
+
text: z.text,
|
|
41904
|
+
subtext: z.subtext,
|
|
41905
|
+
icon: z.icon,
|
|
41906
41906
|
background: "transparent",
|
|
41907
|
-
colorTextPrimary:
|
|
41908
|
-
colorTextSub:
|
|
41909
|
-
model:
|
|
41910
|
-
onClose: () => M(
|
|
41907
|
+
colorTextPrimary: z.colorTextPrimary,
|
|
41908
|
+
colorTextSub: z.colorTextSub,
|
|
41909
|
+
model: z.model,
|
|
41910
|
+
onClose: () => M(z.id),
|
|
41911
41911
|
size: N ? "auto" : "100%",
|
|
41912
41912
|
style: { boxShadow: "none", ...N ? { whiteSpace: "nowrap" } : null }
|
|
41913
41913
|
}
|
|
41914
41914
|
)
|
|
41915
41915
|
},
|
|
41916
|
-
|
|
41916
|
+
z.id
|
|
41917
41917
|
)) })
|
|
41918
41918
|
}
|
|
41919
|
-
),
|
|
41919
|
+
), A = /* @__PURE__ */ r(
|
|
41920
41920
|
"div",
|
|
41921
41921
|
{
|
|
41922
|
-
ref: (
|
|
41923
|
-
h || (l.current =
|
|
41922
|
+
ref: (z) => {
|
|
41923
|
+
h || (l.current = z);
|
|
41924
41924
|
},
|
|
41925
41925
|
className: o,
|
|
41926
41926
|
style: {
|
|
@@ -41933,7 +41933,7 @@ const wwe = ({
|
|
|
41933
41933
|
}
|
|
41934
41934
|
);
|
|
41935
41935
|
return /* @__PURE__ */ m(Kz.Provider, { value: b, children: [
|
|
41936
|
-
$ ? $r(S, $) :
|
|
41936
|
+
$ ? $r(S, $) : A,
|
|
41937
41937
|
e
|
|
41938
41938
|
] });
|
|
41939
41939
|
}, Cwe = () => {
|
|
@@ -41981,7 +41981,7 @@ const wwe = ({
|
|
|
41981
41981
|
onChange: n,
|
|
41982
41982
|
label: o
|
|
41983
41983
|
}) => {
|
|
41984
|
-
const [i, c] =
|
|
41984
|
+
const [i, c] = H(t || e[0]?.value || ""), s = (d) => {
|
|
41985
41985
|
c(d), n?.(d);
|
|
41986
41986
|
};
|
|
41987
41987
|
return /* @__PURE__ */ m("div", { className: NC.container, children: [
|
|
@@ -42015,7 +42015,7 @@ const wwe = ({
|
|
|
42015
42015
|
closeOnOverlayClick: p = !0,
|
|
42016
42016
|
showCloseButton: u = !0
|
|
42017
42017
|
}, y) => {
|
|
42018
|
-
const [f, g] =
|
|
42018
|
+
const [f, g] = H(!1), [k, v] = H(!1), M = K(null), _ = K(null), w = K(null), L = K(null);
|
|
42019
42019
|
O(() => {
|
|
42020
42020
|
const x = M.current;
|
|
42021
42021
|
if (!x) return;
|
|
@@ -42178,7 +42178,7 @@ const c6e = "_container_1pfsp_1", s6e = "_title_1pfsp_8", Iq = {
|
|
|
42178
42178
|
confirmText: h = "Valider",
|
|
42179
42179
|
cancelText: p = "Annuler"
|
|
42180
42180
|
}) => {
|
|
42181
|
-
const [u, y] =
|
|
42181
|
+
const [u, y] = H({}), f = K(null), [g, k] = H(!1), [v, M] = H(!1), _ = K(null);
|
|
42182
42182
|
if (O(() => {
|
|
42183
42183
|
if (!e) return;
|
|
42184
42184
|
const x = {};
|
|
@@ -42231,13 +42231,13 @@ const c6e = "_container_1pfsp_1", s6e = "_title_1pfsp_8", Iq = {
|
|
|
42231
42231
|
name: x.name,
|
|
42232
42232
|
placeholder: x.placeholder || x.label,
|
|
42233
42233
|
value: String($),
|
|
42234
|
-
onChange: (
|
|
42234
|
+
onChange: (A) => w(x.name, A.target.value),
|
|
42235
42235
|
className: x.type === "textarea" ? `${Lt.modalTextarea} ${N ? Lt.inputError : ""}` : `${Lt.modalInput} ${N ? Lt.inputError : ""}`,
|
|
42236
42236
|
tabIndex: 0,
|
|
42237
42237
|
disabled: g
|
|
42238
42238
|
};
|
|
42239
|
-
return b === 0 && (S.ref = (
|
|
42240
|
-
f.current =
|
|
42239
|
+
return b === 0 && (S.ref = (A) => {
|
|
42240
|
+
f.current = A;
|
|
42241
42241
|
}), /* @__PURE__ */ m("div", { style: { marginBottom: 8 }, children: [
|
|
42242
42242
|
x.type === "textarea" ? /* @__PURE__ */ r("textarea", { rows: x.rows || 4, ...S }) : /* @__PURE__ */ r("input", { type: x.type || "text", ...S }),
|
|
42243
42243
|
b === 0 && v && s && /* @__PURE__ */ r("div", { style: { marginTop: 8 }, children: /* @__PURE__ */ r(
|
|
@@ -42283,7 +42283,7 @@ const c6e = "_container_1pfsp_1", s6e = "_title_1pfsp_8", Iq = {
|
|
|
42283
42283
|
onAddKey: n,
|
|
42284
42284
|
a11yConfig: o
|
|
42285
42285
|
}) => {
|
|
42286
|
-
const [i, c] =
|
|
42286
|
+
const [i, c] = H(!1), s = (d) => {
|
|
42287
42287
|
const l = d.key;
|
|
42288
42288
|
n && l && n(l);
|
|
42289
42289
|
};
|
|
@@ -42319,7 +42319,7 @@ const c6e = "_container_1pfsp_1", s6e = "_title_1pfsp_8", Iq = {
|
|
|
42319
42319
|
addModalFields: c,
|
|
42320
42320
|
addModalTitle: s
|
|
42321
42321
|
}) => {
|
|
42322
|
-
const [d, l] =
|
|
42322
|
+
const [d, l] = H(!1), [h, p] = H(null), [u, y] = H(null), [f, g] = H(!1), k = () => l(!0), v = () => l(!1), M = (x) => {
|
|
42323
42323
|
if (o) {
|
|
42324
42324
|
const b = x.code?.trim() || x.id?.trim(), $ = x.title?.trim(), N = b || $ || String(Date.now()), S = $ || b || `Module ${N}`;
|
|
42325
42325
|
o({
|
|
@@ -42464,38 +42464,38 @@ const c6e = "_container_1pfsp_1", s6e = "_title_1pfsp_8", Iq = {
|
|
|
42464
42464
|
draggable: l = !1,
|
|
42465
42465
|
checkDuplicateLocal: h
|
|
42466
42466
|
}) => {
|
|
42467
|
-
const [p, u] =
|
|
42467
|
+
const [p, u] = H(!1), [y, f] = H(""), [g, k] = H(null), [v, M] = H(""), [_, w] = H(""), [L, C] = H(!1), [I, x] = H(!1), [b, $] = H(null), [N, S] = H(!1), A = t.map((T) => T.language), z = n.filter((T) => !A.includes(T.code)), P = () => {
|
|
42468
42468
|
y && _.trim() && (d?.(e, y, _.trim()), f(""), w(""), u(!1));
|
|
42469
|
-
},
|
|
42470
|
-
k(
|
|
42471
|
-
},
|
|
42472
|
-
c?.(e,
|
|
42469
|
+
}, D = (T, E) => {
|
|
42470
|
+
k(T), M(E);
|
|
42471
|
+
}, B = (T) => {
|
|
42472
|
+
c?.(e, T, v), k(null), M("");
|
|
42473
42473
|
}, V = () => {
|
|
42474
42474
|
k(null), M("");
|
|
42475
|
-
},
|
|
42476
|
-
const
|
|
42477
|
-
if (
|
|
42478
|
-
if ($(null), S(!1),
|
|
42475
|
+
}, q = async (T) => {
|
|
42476
|
+
const E = T.name?.trim();
|
|
42477
|
+
if (E) {
|
|
42478
|
+
if ($(null), S(!1), E === e || !i)
|
|
42479
42479
|
return C(!1), "ok";
|
|
42480
42480
|
try {
|
|
42481
|
-
const
|
|
42482
|
-
if (typeof
|
|
42481
|
+
const Q = await i(e, E);
|
|
42482
|
+
if (typeof Q == "string" && Q === "ok")
|
|
42483
42483
|
C(!1), $(null);
|
|
42484
42484
|
else {
|
|
42485
|
-
if (typeof
|
|
42485
|
+
if (typeof Q == "string" && Q === "duplicate-same")
|
|
42486
42486
|
return $("Une clé existe déjà dans ce module."), S(!0), "duplicate-same";
|
|
42487
|
-
if (typeof
|
|
42487
|
+
if (typeof Q == "string" && Q === "duplicate-other")
|
|
42488
42488
|
return C(!1), $(null), "duplicate-other";
|
|
42489
42489
|
C(!1);
|
|
42490
42490
|
}
|
|
42491
|
-
} catch (
|
|
42492
|
-
console.error("Erreur handleRenameSave:",
|
|
42491
|
+
} catch (Q) {
|
|
42492
|
+
console.error("Erreur handleRenameSave:", Q), $("Erreur lors du renommage.");
|
|
42493
42493
|
}
|
|
42494
42494
|
}
|
|
42495
|
-
},
|
|
42496
|
-
if (
|
|
42497
|
-
const
|
|
42498
|
-
$(null), S(!1),
|
|
42495
|
+
}, F = (T, E) => {
|
|
42496
|
+
if (T !== "name") return;
|
|
42497
|
+
const Q = E.trim();
|
|
42498
|
+
$(null), S(!1), Q && typeof h == "function" && (h(Q, e) ? ($("Une clé existe déjà dans ce module."), S(!0)) : ($(null), S(!1)));
|
|
42499
42499
|
};
|
|
42500
42500
|
return /* @__PURE__ */ m(
|
|
42501
42501
|
"div",
|
|
@@ -42520,8 +42520,8 @@ const c6e = "_container_1pfsp_1", s6e = "_title_1pfsp_8", Iq = {
|
|
|
42520
42520
|
"button",
|
|
42521
42521
|
{
|
|
42522
42522
|
className: "action-button",
|
|
42523
|
-
onClick: (
|
|
42524
|
-
|
|
42523
|
+
onClick: (T) => {
|
|
42524
|
+
T.stopPropagation(), C(!0);
|
|
42525
42525
|
},
|
|
42526
42526
|
title: "Renommer la clé",
|
|
42527
42527
|
children: /* @__PURE__ */ r(jt, { className: "action-icon" })
|
|
@@ -42530,8 +42530,8 @@ const c6e = "_container_1pfsp_1", s6e = "_title_1pfsp_8", Iq = {
|
|
|
42530
42530
|
/* @__PURE__ */ r(
|
|
42531
42531
|
"button",
|
|
42532
42532
|
{
|
|
42533
|
-
onClick: (
|
|
42534
|
-
|
|
42533
|
+
onClick: (T) => {
|
|
42534
|
+
T.stopPropagation(), o?.(e);
|
|
42535
42535
|
},
|
|
42536
42536
|
className: "action-button delete",
|
|
42537
42537
|
title: "Supprimer la clé",
|
|
@@ -42541,26 +42541,26 @@ const c6e = "_container_1pfsp_1", s6e = "_title_1pfsp_8", Iq = {
|
|
|
42541
42541
|
] })
|
|
42542
42542
|
] }),
|
|
42543
42543
|
/* @__PURE__ */ r("div", { className: `translations-container ${I ? "" : "expanded"}`, children: !l && /* @__PURE__ */ m(Ve, { children: [
|
|
42544
|
-
t.map((
|
|
42545
|
-
/* @__PURE__ */ r("div", { className: "language-code", children:
|
|
42546
|
-
/* @__PURE__ */ r("div", { className: "translation-content", children: g ===
|
|
42544
|
+
t.map((T) => /* @__PURE__ */ m("div", { className: "translation-row", children: [
|
|
42545
|
+
/* @__PURE__ */ r("div", { className: "language-code", children: T.language }),
|
|
42546
|
+
/* @__PURE__ */ r("div", { className: "translation-content", children: g === T.language ? /* @__PURE__ */ m(Ve, { children: [
|
|
42547
42547
|
/* @__PURE__ */ r(
|
|
42548
42548
|
"input",
|
|
42549
42549
|
{
|
|
42550
42550
|
type: "text",
|
|
42551
42551
|
value: v,
|
|
42552
|
-
onChange: (
|
|
42552
|
+
onChange: (E) => M(E.target.value),
|
|
42553
42553
|
className: "edit-input",
|
|
42554
42554
|
autoFocus: !0,
|
|
42555
|
-
onKeyDown: (
|
|
42556
|
-
|
|
42555
|
+
onKeyDown: (E) => {
|
|
42556
|
+
E.key === "Enter" && B(T.language), E.key === "Escape" && V();
|
|
42557
42557
|
}
|
|
42558
42558
|
}
|
|
42559
42559
|
),
|
|
42560
42560
|
/* @__PURE__ */ r(
|
|
42561
42561
|
"button",
|
|
42562
42562
|
{
|
|
42563
|
-
onClick: () => T
|
|
42563
|
+
onClick: () => B(T.language),
|
|
42564
42564
|
className: "save-button",
|
|
42565
42565
|
disabled: !v.trim(),
|
|
42566
42566
|
children: "Enregistrer"
|
|
@@ -42568,11 +42568,11 @@ const c6e = "_container_1pfsp_1", s6e = "_title_1pfsp_8", Iq = {
|
|
|
42568
42568
|
),
|
|
42569
42569
|
/* @__PURE__ */ r("button", { onClick: V, className: "cancel-button", children: /* @__PURE__ */ r(Mt, { className: "action-icon" }) })
|
|
42570
42570
|
] }) : /* @__PURE__ */ m(Ve, { children: [
|
|
42571
|
-
/* @__PURE__ */ r("span", { className: "translation-text", title:
|
|
42571
|
+
/* @__PURE__ */ r("span", { className: "translation-text", title: T.value, children: T.value }),
|
|
42572
42572
|
/* @__PURE__ */ r(
|
|
42573
42573
|
"button",
|
|
42574
42574
|
{
|
|
42575
|
-
onClick: () =>
|
|
42575
|
+
onClick: () => D(T.language, T.value),
|
|
42576
42576
|
className: "edit-button",
|
|
42577
42577
|
title: "Éditer la traduction",
|
|
42578
42578
|
children: /* @__PURE__ */ r(jt, { className: "action-icon" })
|
|
@@ -42581,14 +42581,14 @@ const c6e = "_container_1pfsp_1", s6e = "_title_1pfsp_8", Iq = {
|
|
|
42581
42581
|
/* @__PURE__ */ r(
|
|
42582
42582
|
"button",
|
|
42583
42583
|
{
|
|
42584
|
-
onClick: () => s?.(e,
|
|
42584
|
+
onClick: () => s?.(e, T.language),
|
|
42585
42585
|
className: "delete-translation-button",
|
|
42586
42586
|
title: "Supprimer la traduction",
|
|
42587
42587
|
children: /* @__PURE__ */ r(Mt, { className: "action-icon" })
|
|
42588
42588
|
}
|
|
42589
42589
|
)
|
|
42590
42590
|
] }) })
|
|
42591
|
-
] },
|
|
42591
|
+
] }, T.language)),
|
|
42592
42592
|
p ? /* @__PURE__ */ m("div", { className: "add-language-row", children: [
|
|
42593
42593
|
/* @__PURE__ */ r("div", { className: "language-code", children: "+" }),
|
|
42594
42594
|
/* @__PURE__ */ m("div", { className: "add-language-content", children: [
|
|
@@ -42596,16 +42596,16 @@ const c6e = "_container_1pfsp_1", s6e = "_title_1pfsp_8", Iq = {
|
|
|
42596
42596
|
"select",
|
|
42597
42597
|
{
|
|
42598
42598
|
value: y,
|
|
42599
|
-
onChange: (
|
|
42599
|
+
onChange: (T) => f(T.target.value),
|
|
42600
42600
|
className: "language-select",
|
|
42601
42601
|
children: [
|
|
42602
42602
|
/* @__PURE__ */ r("option", { value: "", children: "Sélectionnez la langue" }),
|
|
42603
|
-
|
|
42604
|
-
|
|
42603
|
+
z.map((T) => /* @__PURE__ */ m("option", { value: T.code, children: [
|
|
42604
|
+
T.name,
|
|
42605
42605
|
" (",
|
|
42606
|
-
|
|
42606
|
+
T.code,
|
|
42607
42607
|
")"
|
|
42608
|
-
] },
|
|
42608
|
+
] }, T.code))
|
|
42609
42609
|
]
|
|
42610
42610
|
}
|
|
42611
42611
|
) }),
|
|
@@ -42614,11 +42614,11 @@ const c6e = "_container_1pfsp_1", s6e = "_title_1pfsp_8", Iq = {
|
|
|
42614
42614
|
{
|
|
42615
42615
|
type: "text",
|
|
42616
42616
|
value: _,
|
|
42617
|
-
onChange: (
|
|
42617
|
+
onChange: (T) => w(T.target.value),
|
|
42618
42618
|
placeholder: "Entrez la traduction...",
|
|
42619
42619
|
className: "translation-input",
|
|
42620
|
-
onKeyDown: (
|
|
42621
|
-
|
|
42620
|
+
onKeyDown: (T) => {
|
|
42621
|
+
T.key === "Enter" && P(), T.key === "Escape" && (u(!1), f(""), w(""));
|
|
42622
42622
|
}
|
|
42623
42623
|
}
|
|
42624
42624
|
),
|
|
@@ -42647,7 +42647,7 @@ const c6e = "_container_1pfsp_1", s6e = "_title_1pfsp_8", Iq = {
|
|
|
42647
42647
|
{
|
|
42648
42648
|
onClick: () => u(!0),
|
|
42649
42649
|
className: "show-add-button",
|
|
42650
|
-
disabled:
|
|
42650
|
+
disabled: z.length === 0,
|
|
42651
42651
|
children: [
|
|
42652
42652
|
/* @__PURE__ */ r("span", { className: "plus-icon", children: "+" }),
|
|
42653
42653
|
"Ajouter une langue"
|
|
@@ -42666,8 +42666,8 @@ const c6e = "_container_1pfsp_1", s6e = "_title_1pfsp_8", Iq = {
|
|
|
42666
42666
|
onClose: () => {
|
|
42667
42667
|
C(!1), $(null), S(!1);
|
|
42668
42668
|
},
|
|
42669
|
-
onSave:
|
|
42670
|
-
onFieldChange:
|
|
42669
|
+
onSave: q,
|
|
42670
|
+
onFieldChange: F,
|
|
42671
42671
|
title: "Renommer la clé",
|
|
42672
42672
|
initialValues: { name: e },
|
|
42673
42673
|
fields: [{ name: "name", label: "Nom de la clé", placeholder: "Nom de la clé" }],
|
|
@@ -42695,7 +42695,7 @@ const c6e = "_container_1pfsp_1", s6e = "_title_1pfsp_8", Iq = {
|
|
|
42695
42695
|
searchIcon: z6e
|
|
42696
42696
|
};
|
|
42697
42697
|
function Pwe({ onDateChange: e, onSearch: t, initialDate: n }) {
|
|
42698
|
-
const [o, i] =
|
|
42698
|
+
const [o, i] = H(!1), [c, s] = H(n ?? ""), d = K(null);
|
|
42699
42699
|
O(() => {
|
|
42700
42700
|
function u(y) {
|
|
42701
42701
|
const f = y.target;
|
|
@@ -43075,7 +43075,7 @@ const Twe = ({
|
|
|
43075
43075
|
}
|
|
43076
43076
|
);
|
|
43077
43077
|
}, Fwe = () => {
|
|
43078
|
-
const [e, t] =
|
|
43078
|
+
const [e, t] = H({
|
|
43079
43079
|
isOpen: !1,
|
|
43080
43080
|
title: "",
|
|
43081
43081
|
message: "",
|
|
@@ -43159,9 +43159,9 @@ const Twe = ({
|
|
|
43159
43159
|
dropdownPosition: f = "auto",
|
|
43160
43160
|
truncateLabels: g = !0
|
|
43161
43161
|
}) => {
|
|
43162
|
-
const [k, v] =
|
|
43162
|
+
const [k, v] = H(!1), [M, _] = H(""), [w, L] = H(0), [C, I] = H({ top: 0, left: 0, width: 0 }), [x, b] = H("bottom"), [$, N] = H(null), S = K(null), A = K(null), z = K(null), P = xe(() => M ? n.filter(
|
|
43163
43163
|
(U) => U.label.toLowerCase().includes(M.toLowerCase())
|
|
43164
|
-
) : n, [n, M]),
|
|
43164
|
+
) : n, [n, M]), D = n.find((U) => U.value === o), B = ue(() => {
|
|
43165
43165
|
if (S.current) {
|
|
43166
43166
|
const U = S.current.getBoundingClientRect();
|
|
43167
43167
|
I({
|
|
@@ -43174,27 +43174,27 @@ const Twe = ({
|
|
|
43174
43174
|
if (!S.current) return;
|
|
43175
43175
|
const U = S.current.getBoundingClientRect(), ae = U.top - Xr - Sq, ye = window.innerHeight - U.bottom - Xr - Sq;
|
|
43176
43176
|
let X;
|
|
43177
|
-
f !== "auto" ? X = f : X = (
|
|
43178
|
-
}, [f]),
|
|
43179
|
-
|
|
43180
|
-
}, [
|
|
43181
|
-
O(() => (k && (
|
|
43182
|
-
window.removeEventListener("scroll",
|
|
43183
|
-
}), [k,
|
|
43177
|
+
f !== "auto" ? X = f : X = (A.current?.scrollHeight ?? 0) <= ye ? "bottom" : ae > ye ? "top" : "bottom", b((se) => se === X ? se : X), N(Math.max(X === "bottom" ? ye : ae, 0));
|
|
43178
|
+
}, [f]), q = ue(() => {
|
|
43179
|
+
B(), V();
|
|
43180
|
+
}, [B, V]);
|
|
43181
|
+
O(() => (k && (q(), window.addEventListener("scroll", q, !0), window.addEventListener("resize", q)), () => {
|
|
43182
|
+
window.removeEventListener("scroll", q, !0), window.removeEventListener("resize", q);
|
|
43183
|
+
}), [k, q]), Ir(() => {
|
|
43184
43184
|
k && V();
|
|
43185
43185
|
}, [k, V]), O(() => {
|
|
43186
43186
|
const U = (ae) => {
|
|
43187
|
-
S.current && !S.current.contains(ae.target) &&
|
|
43187
|
+
S.current && !S.current.contains(ae.target) && A.current && !A.current.contains(ae.target) && (v(!1), _(""));
|
|
43188
43188
|
};
|
|
43189
43189
|
return document.addEventListener("mousedown", U), () => document.removeEventListener("mousedown", U);
|
|
43190
43190
|
}, []), O(() => {
|
|
43191
43191
|
L(0);
|
|
43192
43192
|
}, [P]);
|
|
43193
|
-
const
|
|
43193
|
+
const F = (U) => {
|
|
43194
43194
|
U.disabled || (i?.(U.value, U), v(!1), _(""));
|
|
43195
|
-
},
|
|
43195
|
+
}, T = (U) => {
|
|
43196
43196
|
_(U.target.value), k || v(!0);
|
|
43197
|
-
},
|
|
43197
|
+
}, E = (U) => {
|
|
43198
43198
|
if (!k) {
|
|
43199
43199
|
(U.key === "ArrowDown" || U.key === "Enter") && v(!0);
|
|
43200
43200
|
return;
|
|
@@ -43207,13 +43207,13 @@ const Twe = ({
|
|
|
43207
43207
|
U.preventDefault(), L((ae) => ae > 0 ? ae - 1 : ae);
|
|
43208
43208
|
break;
|
|
43209
43209
|
case "Enter":
|
|
43210
|
-
U.preventDefault(), P[w] &&
|
|
43210
|
+
U.preventDefault(), P[w] && F(P[w]);
|
|
43211
43211
|
break;
|
|
43212
43212
|
case "Escape":
|
|
43213
43213
|
v(!1), _("");
|
|
43214
43214
|
break;
|
|
43215
43215
|
}
|
|
43216
|
-
},
|
|
43216
|
+
}, Q = () => [
|
|
43217
43217
|
_e.selectButton,
|
|
43218
43218
|
_e[p],
|
|
43219
43219
|
_e[u],
|
|
@@ -43251,9 +43251,9 @@ const Twe = ({
|
|
|
43251
43251
|
{
|
|
43252
43252
|
id: e,
|
|
43253
43253
|
ref: S,
|
|
43254
|
-
className:
|
|
43254
|
+
className: Q(),
|
|
43255
43255
|
onClick: () => !s && v(!k),
|
|
43256
|
-
onKeyDown:
|
|
43256
|
+
onKeyDown: E,
|
|
43257
43257
|
tabIndex: s ? -1 : 0,
|
|
43258
43258
|
type: "button",
|
|
43259
43259
|
"aria-haspopup": "listbox",
|
|
@@ -43261,7 +43261,7 @@ const Twe = ({
|
|
|
43261
43261
|
"aria-labelledby": t,
|
|
43262
43262
|
disabled: s,
|
|
43263
43263
|
children: /* @__PURE__ */ m("div", { className: _e.buttonContent, children: [
|
|
43264
|
-
/* @__PURE__ */ r("span", { className: `${_e.label} ${
|
|
43264
|
+
/* @__PURE__ */ r("span", { className: `${_e.label} ${D ? "" : _e.placeholder}`, children: D ? D.label : c }),
|
|
43265
43265
|
/* @__PURE__ */ m("div", { className: _e.iconsContainer, children: [
|
|
43266
43266
|
d && /* @__PURE__ */ r("div", { className: _e.loadingSpinner }),
|
|
43267
43267
|
/* @__PURE__ */ r(
|
|
@@ -43292,7 +43292,7 @@ const Twe = ({
|
|
|
43292
43292
|
{
|
|
43293
43293
|
className: `${_e.dropdown} ${W()}`,
|
|
43294
43294
|
style: oe,
|
|
43295
|
-
ref:
|
|
43295
|
+
ref: A,
|
|
43296
43296
|
children: [
|
|
43297
43297
|
/* @__PURE__ */ r("div", { className: _e.searchContainer, children: /* @__PURE__ */ m("div", { className: _e.searchInputWrapper, children: [
|
|
43298
43298
|
/* @__PURE__ */ r(
|
|
@@ -43316,10 +43316,10 @@ const Twe = ({
|
|
|
43316
43316
|
/* @__PURE__ */ r(
|
|
43317
43317
|
"input",
|
|
43318
43318
|
{
|
|
43319
|
-
ref:
|
|
43319
|
+
ref: z,
|
|
43320
43320
|
type: "text",
|
|
43321
43321
|
value: M,
|
|
43322
|
-
onChange:
|
|
43322
|
+
onChange: T,
|
|
43323
43323
|
placeholder: "Rechercher...",
|
|
43324
43324
|
className: _e.searchInput,
|
|
43325
43325
|
autoFocus: !0
|
|
@@ -43330,7 +43330,7 @@ const Twe = ({
|
|
|
43330
43330
|
"li",
|
|
43331
43331
|
{
|
|
43332
43332
|
className: Y(U, ae),
|
|
43333
|
-
onClick: () =>
|
|
43333
|
+
onClick: () => F(U),
|
|
43334
43334
|
onMouseEnter: () => L(ae),
|
|
43335
43335
|
role: "option",
|
|
43336
43336
|
"aria-selected": U.value === o,
|
|
@@ -43550,7 +43550,7 @@ const Gfe = (e) => /* @__PURE__ */ ne.createElement("svg", { xmlns: "http://www.
|
|
|
43550
43550
|
style: h,
|
|
43551
43551
|
a11yConfig: p
|
|
43552
43552
|
}) => {
|
|
43553
|
-
const [u, y] =
|
|
43553
|
+
const [u, y] = H(!1), [f, g] = H(e), [k, v] = H(!1);
|
|
43554
43554
|
if (O(() => {
|
|
43555
43555
|
v(!0);
|
|
43556
43556
|
}, []), O(() => {
|
|
@@ -43774,18 +43774,18 @@ const Gfe = (e) => /* @__PURE__ */ ne.createElement("svg", { xmlns: "http://www.
|
|
|
43774
43774
|
predictionValue: N,
|
|
43775
43775
|
predictionLabel: S
|
|
43776
43776
|
}) => {
|
|
43777
|
-
const
|
|
43777
|
+
const A = c !== "none", z = c === "endingDark", { padding: P, ...D } = y || {}, B = h === void 0 && p === void 0 && i === void 0 && Object.keys(D).length === 0 ? void 0 : {
|
|
43778
43778
|
...h !== void 0 ? { width: h } : {},
|
|
43779
43779
|
...p !== void 0 ? { height: p } : {},
|
|
43780
43780
|
...i !== void 0 ? { backgroundColor: i } : {},
|
|
43781
|
-
...
|
|
43781
|
+
...D
|
|
43782
43782
|
}, V = `${Ye.board} ${Ye[d]} ${N !== void 0 ? Ye.hasPrediction : ""} ${u}`;
|
|
43783
43783
|
return /* @__PURE__ */ m(
|
|
43784
43784
|
"div",
|
|
43785
43785
|
{
|
|
43786
43786
|
className: V,
|
|
43787
43787
|
onClick: x,
|
|
43788
|
-
style: l !== void 0 ? { ...
|
|
43788
|
+
style: l !== void 0 ? { ...B, "--ds-value-scale": l } : B,
|
|
43789
43789
|
children: [
|
|
43790
43790
|
w && /* @__PURE__ */ r("div", { className: Ye.sideBar, style: { backgroundColor: w } }),
|
|
43791
43791
|
/* @__PURE__ */ m("div", { className: Ye.boardContent, style: { padding: P, gap: I }, children: [
|
|
@@ -43809,7 +43809,7 @@ const Gfe = (e) => /* @__PURE__ */ ne.createElement("svg", { xmlns: "http://www.
|
|
|
43809
43809
|
children: n
|
|
43810
43810
|
}
|
|
43811
43811
|
) }),
|
|
43812
|
-
|
|
43812
|
+
A ? /* @__PURE__ */ r(A8e, { endingDark: z, lightCount: s }) : null
|
|
43813
43813
|
]
|
|
43814
43814
|
}
|
|
43815
43815
|
),
|
|
@@ -44146,12 +44146,12 @@ const Gfe = (e) => /* @__PURE__ */ ne.createElement("svg", { xmlns: "http://www.
|
|
|
44146
44146
|
}) => {
|
|
44147
44147
|
const _ = (f.top ?? 20) + (f.bottom ?? 40) + e.length * (s + 20), w = Math.max(_, t), L = he.useMemo(() => {
|
|
44148
44148
|
if (!e || e.length === 0) return d;
|
|
44149
|
-
const $ = (parseFloat(l) || 12) * 0.7, S = Math.max(...e.map((
|
|
44149
|
+
const $ = (parseFloat(l) || 12) * 0.7, S = Math.max(...e.map((A) => (A.label || "").length)) * $ + 16;
|
|
44150
44150
|
return Math.min(Math.max(S, 40), d);
|
|
44151
44151
|
}, [e, l, d]), C = (b) => k ? k(b) : b?.toString() || "", I = (b) => g && v === "value" ? g(b) : b == null || b === "" ? "" : v === "percentage" ? `${b}%` : b.toString(), x = (b, $, N) => {
|
|
44152
44152
|
if (typeof b != "number") return b;
|
|
44153
|
-
const S = g ? g(b) : b.toString(),
|
|
44154
|
-
return typeof
|
|
44153
|
+
const S = g ? g(b) : b.toString(), A = N?.payload?.percentage;
|
|
44154
|
+
return typeof A == "number" && Number.isFinite(A) && v === "percentage" ? `${S} (${A.toFixed(1)}%)` : S;
|
|
44155
44155
|
};
|
|
44156
44156
|
return /* @__PURE__ */ m(
|
|
44157
44157
|
"div",
|
|
@@ -44343,7 +44343,7 @@ const Gfe = (e) => /* @__PURE__ */ ne.createElement("svg", { xmlns: "http://www.
|
|
|
44343
44343
|
style: x,
|
|
44344
44344
|
className: b = ""
|
|
44345
44345
|
}) => {
|
|
44346
|
-
const { user: $ } = Ut(), N = e || $, { currentTheme: S, switchTheme:
|
|
44346
|
+
const { user: $ } = Ut(), N = e || $, { currentTheme: S, switchTheme: A } = iN(), z = K(null), P = K(null), [D, B] = H(!1), [V, q] = H({}), F = xe(() => {
|
|
44347
44347
|
const X = [], se = ({ variant: ve }) => ve === "sun" ? /* @__PURE__ */ r(
|
|
44348
44348
|
"svg",
|
|
44349
44349
|
{
|
|
@@ -44382,7 +44382,7 @@ const Gfe = (e) => /* @__PURE__ */ ne.createElement("svg", { xmlns: "http://www.
|
|
|
44382
44382
|
label: fe ? "Mode clair" : "Mode sombre",
|
|
44383
44383
|
icon: /* @__PURE__ */ r(se, { variant: fe ? "sun" : "moon" }),
|
|
44384
44384
|
onClick: () => {
|
|
44385
|
-
|
|
44385
|
+
A(fe ? "light" : "dark");
|
|
44386
44386
|
}
|
|
44387
44387
|
}), (t || o) && (X.push({ id: "sep-theme", type: "separator" }), X.push({
|
|
44388
44388
|
id: "logout",
|
|
@@ -44405,15 +44405,15 @@ const Gfe = (e) => /* @__PURE__ */ ne.createElement("svg", { xmlns: "http://www.
|
|
|
44405
44405
|
o,
|
|
44406
44406
|
i,
|
|
44407
44407
|
c,
|
|
44408
|
-
|
|
44409
|
-
]),
|
|
44410
|
-
if (!
|
|
44411
|
-
|
|
44408
|
+
A
|
|
44409
|
+
]), T = _ ?? F, E = () => {
|
|
44410
|
+
if (!z.current) {
|
|
44411
|
+
B((X) => !X);
|
|
44412
44412
|
return;
|
|
44413
44413
|
}
|
|
44414
|
-
if (!
|
|
44415
|
-
const X =
|
|
44416
|
-
|
|
44414
|
+
if (!D) {
|
|
44415
|
+
const X = z.current.getBoundingClientRect(), se = window.innerWidth, fe = window.innerHeight, ve = 200, be = 200, J = 4, re = L?.x ?? 0, ke = L?.y ?? 0, Re = se - X.right >= ve + J;
|
|
44416
|
+
q(Re ? {
|
|
44417
44417
|
top: X.bottom - be + ke,
|
|
44418
44418
|
left: X.right + J + re
|
|
44419
44419
|
} : {
|
|
@@ -44421,13 +44421,13 @@ const Gfe = (e) => /* @__PURE__ */ ne.createElement("svg", { xmlns: "http://www.
|
|
|
44421
44421
|
left: X.left + re
|
|
44422
44422
|
});
|
|
44423
44423
|
}
|
|
44424
|
-
|
|
44424
|
+
B((X) => !X);
|
|
44425
44425
|
};
|
|
44426
44426
|
if (O(() => {
|
|
44427
|
-
if (!
|
|
44427
|
+
if (!D || !z.current) return;
|
|
44428
44428
|
const X = () => {
|
|
44429
|
-
const se =
|
|
44430
|
-
|
|
44429
|
+
const se = z.current.getBoundingClientRect(), fe = window.innerWidth, ve = window.innerHeight, be = 200, J = 200, re = 4, ke = L?.x ?? 0, Te = L?.y ?? 0, Le = fe - se.right >= be + re;
|
|
44430
|
+
q(Le ? {
|
|
44431
44431
|
top: se.bottom - J + Te,
|
|
44432
44432
|
left: se.right + re + ke
|
|
44433
44433
|
} : {
|
|
@@ -44438,11 +44438,11 @@ const Gfe = (e) => /* @__PURE__ */ ne.createElement("svg", { xmlns: "http://www.
|
|
|
44438
44438
|
return window.addEventListener("resize", X), window.addEventListener("orientationchange", X), () => {
|
|
44439
44439
|
window.removeEventListener("resize", X), window.removeEventListener("orientationchange", X);
|
|
44440
44440
|
};
|
|
44441
|
-
}, [
|
|
44442
|
-
if (!
|
|
44441
|
+
}, [D, L]), O(() => {
|
|
44442
|
+
if (!D || !z.current || !P.current) return;
|
|
44443
44443
|
const X = () => {
|
|
44444
|
-
const fe =
|
|
44445
|
-
|
|
44444
|
+
const fe = z.current.getBoundingClientRect(), ve = P.current.getBoundingClientRect(), be = L?.x ?? 0, J = L?.y ?? 0;
|
|
44445
|
+
q((re) => re.left !== void 0 && re.top !== void 0 && re.left >= fe.right - 1 ? {
|
|
44446
44446
|
top: fe.bottom - ve.height + J,
|
|
44447
44447
|
left: re.left + be
|
|
44448
44448
|
} : re);
|
|
@@ -44450,16 +44450,16 @@ const Gfe = (e) => /* @__PURE__ */ ne.createElement("svg", { xmlns: "http://www.
|
|
|
44450
44450
|
setTimeout(X, 0);
|
|
44451
44451
|
});
|
|
44452
44452
|
return () => cancelAnimationFrame(se);
|
|
44453
|
-
}, [
|
|
44454
|
-
const
|
|
44453
|
+
}, [D, L]), !N) return null;
|
|
44454
|
+
const Q = N, W = parseInt(h, 10) || 40, Y = `${W * 0.375}px`, oe = `${W * 1.375}px`, U = `${W * 0.2}px`, ae = `${W * 0.6}px`, ye = () => {
|
|
44455
44455
|
const X = parseInt(h, 10) || 40, se = Math.max(8, X * 0.34375), fe = Math.max(2, X * 0.05);
|
|
44456
44456
|
return /* @__PURE__ */ m(Ve, { children: [
|
|
44457
44457
|
/* @__PURE__ */ m("div", { style: { position: "relative", flexShrink: 0, userSelect: "none" }, children: [
|
|
44458
|
-
|
|
44458
|
+
Q.image ? /* @__PURE__ */ r(
|
|
44459
44459
|
"img",
|
|
44460
44460
|
{
|
|
44461
|
-
src:
|
|
44462
|
-
alt: `${
|
|
44461
|
+
src: Q.image,
|
|
44462
|
+
alt: `${Q.prenom} ${Q.nom}`,
|
|
44463
44463
|
style: {
|
|
44464
44464
|
width: h,
|
|
44465
44465
|
height: h,
|
|
@@ -44546,8 +44546,8 @@ const Gfe = (e) => /* @__PURE__ */ ne.createElement("svg", { xmlns: "http://www.
|
|
|
44546
44546
|
textOverflow: "ellipsis",
|
|
44547
44547
|
whiteSpace: "nowrap"
|
|
44548
44548
|
},
|
|
44549
|
-
title:
|
|
44550
|
-
children:
|
|
44549
|
+
title: Q.email,
|
|
44550
|
+
children: Q.email
|
|
44551
44551
|
}
|
|
44552
44552
|
),
|
|
44553
44553
|
/* @__PURE__ */ r(
|
|
@@ -44561,8 +44561,8 @@ const Gfe = (e) => /* @__PURE__ */ ne.createElement("svg", { xmlns: "http://www.
|
|
|
44561
44561
|
textOverflow: "ellipsis",
|
|
44562
44562
|
whiteSpace: "nowrap"
|
|
44563
44563
|
},
|
|
44564
|
-
title:
|
|
44565
|
-
children:
|
|
44564
|
+
title: Q.role,
|
|
44565
|
+
children: Q.role
|
|
44566
44566
|
}
|
|
44567
44567
|
)
|
|
44568
44568
|
] })
|
|
@@ -44572,7 +44572,7 @@ const Gfe = (e) => /* @__PURE__ */ ne.createElement("svg", { xmlns: "http://www.
|
|
|
44572
44572
|
/* @__PURE__ */ r(
|
|
44573
44573
|
"div",
|
|
44574
44574
|
{
|
|
44575
|
-
ref:
|
|
44575
|
+
ref: z,
|
|
44576
44576
|
className: `user-info ${b}`,
|
|
44577
44577
|
style: {
|
|
44578
44578
|
display: "flex",
|
|
@@ -44588,8 +44588,8 @@ const Gfe = (e) => /* @__PURE__ */ ne.createElement("svg", { xmlns: "http://www.
|
|
|
44588
44588
|
userSelect: "none",
|
|
44589
44589
|
...x
|
|
44590
44590
|
},
|
|
44591
|
-
onClick:
|
|
44592
|
-
title: ce(I,
|
|
44591
|
+
onClick: E,
|
|
44592
|
+
title: ce(I, Q.role),
|
|
44593
44593
|
role: "button",
|
|
44594
44594
|
tabIndex: 0,
|
|
44595
44595
|
children: /* @__PURE__ */ r("div", { style: { display: "flex", alignItems: "center", gap: u, flex: 1, minWidth: 0 }, children: /* @__PURE__ */ r(ye, {}) })
|
|
@@ -44599,9 +44599,9 @@ const Gfe = (e) => /* @__PURE__ */ ne.createElement("svg", { xmlns: "http://www.
|
|
|
44599
44599
|
nge,
|
|
44600
44600
|
{
|
|
44601
44601
|
ref: P,
|
|
44602
|
-
isVisible:
|
|
44603
|
-
onClose: () =>
|
|
44604
|
-
items:
|
|
44602
|
+
isVisible: D,
|
|
44603
|
+
onClose: () => B(!1),
|
|
44604
|
+
items: T,
|
|
44605
44605
|
style: w,
|
|
44606
44606
|
position: V
|
|
44607
44607
|
}
|
|
@@ -44646,8 +44646,8 @@ const Gfe = (e) => /* @__PURE__ */ ne.createElement("svg", { xmlns: "http://www.
|
|
|
44646
44646
|
!v && x && /* @__PURE__ */ r("span", { className: Li.trailing, children: x })
|
|
44647
44647
|
] }), N = () => {
|
|
44648
44648
|
if (!s) return "transparent";
|
|
44649
|
-
const
|
|
44650
|
-
const P = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(
|
|
44649
|
+
const A = (z) => {
|
|
44650
|
+
const P = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(z);
|
|
44651
44651
|
return P ? {
|
|
44652
44652
|
r: parseInt(P[1], 16),
|
|
44653
44653
|
g: parseInt(P[2], 16),
|
|
@@ -44655,13 +44655,13 @@ const Gfe = (e) => /* @__PURE__ */ ne.createElement("svg", { xmlns: "http://www.
|
|
|
44655
44655
|
} : null;
|
|
44656
44656
|
};
|
|
44657
44657
|
if (p.startsWith("#")) {
|
|
44658
|
-
const
|
|
44659
|
-
if (
|
|
44660
|
-
return `rgba(${
|
|
44658
|
+
const z = A(p);
|
|
44659
|
+
if (z)
|
|
44660
|
+
return `rgba(${z.r}, ${z.g}, ${z.b}, 0.08)`;
|
|
44661
44661
|
} else if (p.startsWith("rgb")) {
|
|
44662
|
-
const
|
|
44663
|
-
if (
|
|
44664
|
-
return `rgba(${
|
|
44662
|
+
const z = p.match(/\d+/g);
|
|
44663
|
+
if (z && z.length >= 3)
|
|
44664
|
+
return `rgba(${z[0]}, ${z[1]}, ${z[2]}, 0.08)`;
|
|
44665
44665
|
}
|
|
44666
44666
|
return f;
|
|
44667
44667
|
}, S = {
|
|
@@ -44744,33 +44744,33 @@ const Gfe = (e) => /* @__PURE__ */ ne.createElement("svg", { xmlns: "http://www.
|
|
|
44744
44744
|
userInfoProps: $,
|
|
44745
44745
|
style: N,
|
|
44746
44746
|
className: S = "",
|
|
44747
|
-
width:
|
|
44748
|
-
showLogo:
|
|
44747
|
+
width: A = "280px",
|
|
44748
|
+
showLogo: z = !0,
|
|
44749
44749
|
versionA11yConfig: P,
|
|
44750
|
-
displayNone:
|
|
44751
|
-
showCollapseToggle:
|
|
44750
|
+
displayNone: D = !1,
|
|
44751
|
+
showCollapseToggle: B = !1,
|
|
44752
44752
|
collapsed: V = !1,
|
|
44753
|
-
onCollapseToggle:
|
|
44754
|
-
collapseToggleLabel:
|
|
44755
|
-
collapseToggleIconPath:
|
|
44756
|
-
collapseToggleAlert:
|
|
44753
|
+
onCollapseToggle: q,
|
|
44754
|
+
collapseToggleLabel: F = "Toggle sidebar",
|
|
44755
|
+
collapseToggleIconPath: T = "/icon/dock_to_left.svg",
|
|
44756
|
+
collapseToggleAlert: E = !1
|
|
44757
44757
|
}) => {
|
|
44758
|
-
const
|
|
44759
|
-
return
|
|
44758
|
+
const Q = Ut(), W = Q.activeNav, Y = Q.setActiveNav, oe = Q.user, U = $.user || oe;
|
|
44759
|
+
return B && V ? /* @__PURE__ */ r(
|
|
44760
44760
|
"div",
|
|
44761
44761
|
{
|
|
44762
44762
|
className: `${lt.collapsedRail} ${S}`,
|
|
44763
|
-
style: { display:
|
|
44763
|
+
style: { display: D ? "none" : "flex" },
|
|
44764
44764
|
children: /* @__PURE__ */ m(
|
|
44765
44765
|
"button",
|
|
44766
44766
|
{
|
|
44767
44767
|
type: "button",
|
|
44768
44768
|
className: lt.collapsedToggle,
|
|
44769
|
-
onClick:
|
|
44770
|
-
"aria-label":
|
|
44769
|
+
onClick: q,
|
|
44770
|
+
"aria-label": F,
|
|
44771
44771
|
children: [
|
|
44772
|
-
/* @__PURE__ */ r(vq, { path:
|
|
44773
|
-
|
|
44772
|
+
/* @__PURE__ */ r(vq, { path: T, width: 18, height: 18 }),
|
|
44773
|
+
E && /* @__PURE__ */ r("span", { className: lt.collapseToggleAlert, "aria-hidden": "true", children: "!" })
|
|
44774
44774
|
]
|
|
44775
44775
|
}
|
|
44776
44776
|
)
|
|
@@ -44780,24 +44780,24 @@ const Gfe = (e) => /* @__PURE__ */ ne.createElement("svg", { xmlns: "http://www.
|
|
|
44780
44780
|
{
|
|
44781
44781
|
className: `${lt.navbar} ${S}`,
|
|
44782
44782
|
style: {
|
|
44783
|
-
width:
|
|
44783
|
+
width: A,
|
|
44784
44784
|
backgroundColor: s,
|
|
44785
44785
|
padding: o,
|
|
44786
|
-
display:
|
|
44786
|
+
display: D ? "none" : "flex",
|
|
44787
44787
|
...N
|
|
44788
44788
|
},
|
|
44789
44789
|
children: [
|
|
44790
44790
|
/* @__PURE__ */ m("div", { className: lt.topSection, style: { gap: t }, children: [
|
|
44791
|
-
|
|
44791
|
+
z && /* @__PURE__ */ m("div", { className: lt.logoContainer, children: [
|
|
44792
44792
|
/* @__PURE__ */ r(oN, { ...e }),
|
|
44793
|
-
|
|
44793
|
+
B && /* @__PURE__ */ r(
|
|
44794
44794
|
"button",
|
|
44795
44795
|
{
|
|
44796
44796
|
type: "button",
|
|
44797
44797
|
className: lt.collapseToggle,
|
|
44798
|
-
onClick:
|
|
44799
|
-
"aria-label":
|
|
44800
|
-
children: /* @__PURE__ */ r(vq, { path:
|
|
44798
|
+
onClick: q,
|
|
44799
|
+
"aria-label": F,
|
|
44800
|
+
children: /* @__PURE__ */ r(vq, { path: T, width: 20, height: 20 })
|
|
44801
44801
|
}
|
|
44802
44802
|
)
|
|
44803
44803
|
] }),
|
|
@@ -45043,14 +45043,14 @@ const Gfe = (e) => /* @__PURE__ */ ne.createElement("svg", { xmlns: "http://www.
|
|
|
45043
45043
|
iconGap: b = 14,
|
|
45044
45044
|
borderRadius: $ = 0
|
|
45045
45045
|
}) => {
|
|
45046
|
-
const [N, S] =
|
|
45046
|
+
const [N, S] = H(""), A = K(null);
|
|
45047
45047
|
O(() => {
|
|
45048
|
-
const P = (
|
|
45049
|
-
|
|
45048
|
+
const P = (D) => {
|
|
45049
|
+
A.current && !A.current.contains(D.target) && S("");
|
|
45050
45050
|
};
|
|
45051
45051
|
return document.addEventListener("mousedown", P), () => document.removeEventListener("mousedown", P);
|
|
45052
45052
|
}, []);
|
|
45053
|
-
const
|
|
45053
|
+
const z = {
|
|
45054
45054
|
backgroundColor: c,
|
|
45055
45055
|
color: s,
|
|
45056
45056
|
borderRadius: $,
|
|
@@ -45059,11 +45059,11 @@ const Gfe = (e) => /* @__PURE__ */ ne.createElement("svg", { xmlns: "http://www.
|
|
|
45059
45059
|
return /* @__PURE__ */ r(
|
|
45060
45060
|
"nav",
|
|
45061
45061
|
{
|
|
45062
|
-
ref:
|
|
45062
|
+
ref: A,
|
|
45063
45063
|
className: [Ht.container, i].filter(Boolean).join(" "),
|
|
45064
|
-
style:
|
|
45064
|
+
style: z,
|
|
45065
45065
|
children: e.map((P) => {
|
|
45066
|
-
const
|
|
45066
|
+
const D = N === P.id, B = {
|
|
45067
45067
|
backgroundColor: d,
|
|
45068
45068
|
color: l,
|
|
45069
45069
|
padding: I,
|
|
@@ -45077,10 +45077,10 @@ const Gfe = (e) => /* @__PURE__ */ ne.createElement("svg", { xmlns: "http://www.
|
|
|
45077
45077
|
"div",
|
|
45078
45078
|
{
|
|
45079
45079
|
className: Ht.groupHeader,
|
|
45080
|
-
style:
|
|
45081
|
-
onClick: () => S(
|
|
45080
|
+
style: B,
|
|
45081
|
+
onClick: () => S(D ? "" : P.id),
|
|
45082
45082
|
role: "button",
|
|
45083
|
-
"aria-expanded":
|
|
45083
|
+
"aria-expanded": D,
|
|
45084
45084
|
children: [
|
|
45085
45085
|
/* @__PURE__ */ m("div", { className: Ht.groupHeaderLeft, style: { gap: b }, children: [
|
|
45086
45086
|
P.icon && /* @__PURE__ */ r(
|
|
@@ -45096,7 +45096,7 @@ const Gfe = (e) => /* @__PURE__ */ ne.createElement("svg", { xmlns: "http://www.
|
|
|
45096
45096
|
/* @__PURE__ */ r(
|
|
45097
45097
|
"span",
|
|
45098
45098
|
{
|
|
45099
|
-
className: [Ht.chevron,
|
|
45099
|
+
className: [Ht.chevron, D ? Ht.chevronOpen : ""].join(" "),
|
|
45100
45100
|
style: { color: L },
|
|
45101
45101
|
children: /* @__PURE__ */ r(Hi, { width: 18, height: 18 })
|
|
45102
45102
|
}
|
|
@@ -45104,45 +45104,45 @@ const Gfe = (e) => /* @__PURE__ */ ne.createElement("svg", { xmlns: "http://www.
|
|
|
45104
45104
|
]
|
|
45105
45105
|
}
|
|
45106
45106
|
),
|
|
45107
|
-
|
|
45108
|
-
const
|
|
45107
|
+
D && /* @__PURE__ */ r("div", { className: Ht.dropdown, style: V, children: P.items.map((q) => {
|
|
45108
|
+
const F = q.id === t, T = {
|
|
45109
45109
|
padding: x,
|
|
45110
45110
|
gap: b,
|
|
45111
|
-
color:
|
|
45111
|
+
color: F ? g : f,
|
|
45112
45112
|
backgroundColor: u,
|
|
45113
45113
|
/* Custom variables for the pseudo-element border */
|
|
45114
|
-
"--item-border-width":
|
|
45115
|
-
"--item-border-color":
|
|
45114
|
+
"--item-border-width": F ? "4px" : "1px",
|
|
45115
|
+
"--item-border-color": F ? k : v
|
|
45116
45116
|
};
|
|
45117
45117
|
return /* @__PURE__ */ m(
|
|
45118
45118
|
"div",
|
|
45119
45119
|
{
|
|
45120
45120
|
className: Ht.item,
|
|
45121
|
-
style:
|
|
45121
|
+
style: T,
|
|
45122
45122
|
onClick: () => {
|
|
45123
|
-
n?.(P.id,
|
|
45123
|
+
n?.(P.id, q.id), S("");
|
|
45124
45124
|
},
|
|
45125
45125
|
role: "menuitem",
|
|
45126
|
-
onMouseEnter: (
|
|
45127
|
-
|
|
45126
|
+
onMouseEnter: (E) => {
|
|
45127
|
+
F || (E.currentTarget.style.backgroundColor = y);
|
|
45128
45128
|
},
|
|
45129
45129
|
children: [
|
|
45130
|
-
|
|
45130
|
+
q.icon && /* @__PURE__ */ r(
|
|
45131
45131
|
"span",
|
|
45132
45132
|
{
|
|
45133
45133
|
className: Ht.itemIcon,
|
|
45134
45134
|
style: {
|
|
45135
|
-
color:
|
|
45135
|
+
color: F ? _ : M,
|
|
45136
45136
|
width: C,
|
|
45137
45137
|
height: C
|
|
45138
45138
|
},
|
|
45139
|
-
children:
|
|
45139
|
+
children: q.icon
|
|
45140
45140
|
}
|
|
45141
45141
|
),
|
|
45142
|
-
/* @__PURE__ */ r("span", { children:
|
|
45142
|
+
/* @__PURE__ */ r("span", { children: q.label })
|
|
45143
45143
|
]
|
|
45144
45144
|
},
|
|
45145
|
-
|
|
45145
|
+
q.id
|
|
45146
45146
|
);
|
|
45147
45147
|
}) })
|
|
45148
45148
|
] }, P.id);
|
|
@@ -45184,18 +45184,18 @@ const Gfe = (e) => /* @__PURE__ */ ne.createElement("svg", { xmlns: "http://www.
|
|
|
45184
45184
|
countFontSize: $,
|
|
45185
45185
|
countFontWeight: N,
|
|
45186
45186
|
navContainerClassName: S,
|
|
45187
|
-
navContainerStyle:
|
|
45188
|
-
rightContentClassName:
|
|
45187
|
+
navContainerStyle: A,
|
|
45188
|
+
rightContentClassName: z,
|
|
45189
45189
|
rightContentStyle: P,
|
|
45190
|
-
rightActions:
|
|
45191
|
-
activeSwitcherColor:
|
|
45190
|
+
rightActions: D,
|
|
45191
|
+
activeSwitcherColor: B,
|
|
45192
45192
|
inactiveSwitcherColor: V,
|
|
45193
|
-
isMobile:
|
|
45194
|
-
onNavigate:
|
|
45193
|
+
isMobile: q = !1,
|
|
45194
|
+
onNavigate: F
|
|
45195
45195
|
}) => {
|
|
45196
|
-
const { activeSubNav:
|
|
45197
|
-
if (
|
|
45198
|
-
const Y = e.find((U) => U.id ===
|
|
45196
|
+
const { activeSubNav: T, setActiveSubNav: E, navCounts: Q, activeNav: W } = Ut();
|
|
45197
|
+
if (q) {
|
|
45198
|
+
const Y = e.find((U) => U.id === T) || e[0], oe = [
|
|
45199
45199
|
{
|
|
45200
45200
|
id: "current-group",
|
|
45201
45201
|
label: Y?.label || W?.toUpperCase() || "MENU",
|
|
@@ -45211,10 +45211,10 @@ const Gfe = (e) => /* @__PURE__ */ ne.createElement("svg", { xmlns: "http://www.
|
|
|
45211
45211
|
Fge,
|
|
45212
45212
|
{
|
|
45213
45213
|
groups: oe,
|
|
45214
|
-
activeItemId:
|
|
45214
|
+
activeItemId: T,
|
|
45215
45215
|
onItemClick: (U, ae) => {
|
|
45216
45216
|
const ye = e.find((X) => X.id === ae);
|
|
45217
|
-
ye && (ye.onClick && ye.onClick(), ye.href && (
|
|
45217
|
+
ye && (ye.onClick && ye.onClick(), ye.href && (F ? F(ye.href) : ye.onNavigate ? ye.onNavigate(ye.href) : window.location.href = ye.href), E(ae));
|
|
45218
45218
|
},
|
|
45219
45219
|
headerBgColor: t
|
|
45220
45220
|
}
|
|
@@ -45239,18 +45239,18 @@ const Gfe = (e) => /* @__PURE__ */ ne.createElement("svg", { xmlns: "http://www.
|
|
|
45239
45239
|
"div",
|
|
45240
45240
|
{
|
|
45241
45241
|
className: `${IC.navContainer} ${S || ""}`,
|
|
45242
|
-
style: { gap: l, ...
|
|
45242
|
+
style: { gap: l, ...A },
|
|
45243
45243
|
children: e.map((Y) => {
|
|
45244
|
-
const oe = Y.count !== void 0 ? Y.count :
|
|
45244
|
+
const oe = Y.count !== void 0 ? Y.count : Q[Y.id], U = T === Y.id || Y.isActive;
|
|
45245
45245
|
return /* @__PURE__ */ r(
|
|
45246
45246
|
qge,
|
|
45247
45247
|
{
|
|
45248
45248
|
...Y,
|
|
45249
|
-
onNavigate:
|
|
45249
|
+
onNavigate: F || Y.onNavigate,
|
|
45250
45250
|
count: oe,
|
|
45251
45251
|
isActive: U,
|
|
45252
45252
|
onClick: () => {
|
|
45253
|
-
Y.onClick && Y.onClick(),
|
|
45253
|
+
Y.onClick && Y.onClick(), E(Y.id);
|
|
45254
45254
|
},
|
|
45255
45255
|
activeColor: f,
|
|
45256
45256
|
inactiveColor: g,
|
|
@@ -45276,7 +45276,7 @@ const Gfe = (e) => /* @__PURE__ */ ne.createElement("svg", { xmlns: "http://www.
|
|
|
45276
45276
|
/* @__PURE__ */ m(
|
|
45277
45277
|
"div",
|
|
45278
45278
|
{
|
|
45279
|
-
className: `${IC.rightContent} ${
|
|
45279
|
+
className: `${IC.rightContent} ${z || ""}`,
|
|
45280
45280
|
style: { gap: h, ...P },
|
|
45281
45281
|
children: [
|
|
45282
45282
|
v && /* @__PURE__ */ r(
|
|
@@ -45284,7 +45284,7 @@ const Gfe = (e) => /* @__PURE__ */ ne.createElement("svg", { xmlns: "http://www.
|
|
|
45284
45284
|
{
|
|
45285
45285
|
size: 20,
|
|
45286
45286
|
colors: {
|
|
45287
|
-
bg:
|
|
45287
|
+
bg: B,
|
|
45288
45288
|
activeBg: V,
|
|
45289
45289
|
icon: "#1C1B1F",
|
|
45290
45290
|
icon2: "#FFFFFF"
|
|
@@ -45296,7 +45296,7 @@ const Gfe = (e) => /* @__PURE__ */ ne.createElement("svg", { xmlns: "http://www.
|
|
|
45296
45296
|
{
|
|
45297
45297
|
size: 20,
|
|
45298
45298
|
colors: {
|
|
45299
|
-
bg:
|
|
45299
|
+
bg: B,
|
|
45300
45300
|
activeBg: V,
|
|
45301
45301
|
icon: "#1C1B1F",
|
|
45302
45302
|
icon2: "#FFFFFF"
|
|
@@ -45308,14 +45308,14 @@ const Gfe = (e) => /* @__PURE__ */ ne.createElement("svg", { xmlns: "http://www.
|
|
|
45308
45308
|
{
|
|
45309
45309
|
size: 20,
|
|
45310
45310
|
colors: {
|
|
45311
|
-
bg:
|
|
45311
|
+
bg: B,
|
|
45312
45312
|
activeBg: V,
|
|
45313
45313
|
icon: "#1C1B1F",
|
|
45314
45314
|
icon2: "#FFFFFF"
|
|
45315
45315
|
}
|
|
45316
45316
|
}
|
|
45317
45317
|
),
|
|
45318
|
-
|
|
45318
|
+
D
|
|
45319
45319
|
]
|
|
45320
45320
|
}
|
|
45321
45321
|
)
|
|
@@ -45404,7 +45404,7 @@ const Gfe = (e) => /* @__PURE__ */ ne.createElement("svg", { xmlns: "http://www.
|
|
|
45404
45404
|
initialSortOrder: t = "asc",
|
|
45405
45405
|
onSortChange: n
|
|
45406
45406
|
}) => {
|
|
45407
|
-
const [o, i] =
|
|
45407
|
+
const [o, i] = H({
|
|
45408
45408
|
sortBy: e,
|
|
45409
45409
|
sortOrder: t,
|
|
45410
45410
|
filters: {}
|
|
@@ -45565,23 +45565,23 @@ const Gfe = (e) => /* @__PURE__ */ ne.createElement("svg", { xmlns: "http://www.
|
|
|
45565
45565
|
t({ page: L });
|
|
45566
45566
|
}, M = xe(() => {
|
|
45567
45567
|
if (y <= 6)
|
|
45568
|
-
return Array.from({ length: y }, (
|
|
45568
|
+
return Array.from({ length: y }, (A, z) => z + 1);
|
|
45569
45569
|
const I = Math.max(f - 1, 1), x = Math.min(f + 1, y), b = I > 2, $ = x < y - 2, N = 1, S = y;
|
|
45570
45570
|
if (!b && $)
|
|
45571
|
-
return [...Array.from({ length: 5 }, (P,
|
|
45571
|
+
return [...Array.from({ length: 5 }, (P, D) => D + 1), "...", y];
|
|
45572
45572
|
if (b && !$) {
|
|
45573
|
-
const
|
|
45573
|
+
const z = Array.from(
|
|
45574
45574
|
{ length: 5 },
|
|
45575
|
-
(P,
|
|
45575
|
+
(P, D) => y - 5 + D + 1
|
|
45576
45576
|
);
|
|
45577
|
-
return [N, "...", ...
|
|
45577
|
+
return [N, "...", ...z];
|
|
45578
45578
|
}
|
|
45579
45579
|
if (b && $) {
|
|
45580
|
-
const
|
|
45580
|
+
const A = Array.from(
|
|
45581
45581
|
{ length: x - I + 1 },
|
|
45582
|
-
(
|
|
45582
|
+
(z, P) => I + P
|
|
45583
45583
|
);
|
|
45584
|
-
return [N, "...", ...
|
|
45584
|
+
return [N, "...", ...A, "...", S];
|
|
45585
45585
|
}
|
|
45586
45586
|
return [];
|
|
45587
45587
|
}, [f, y]), _ = !!(d && d.length > 0), w = !o && h !== -1 && y > 1 && /* @__PURE__ */ m("div", { className: "pagination-controls", children: [
|
|
@@ -45731,9 +45731,9 @@ const Gfe = (e) => /* @__PURE__ */ ne.createElement("svg", { xmlns: "http://www.
|
|
|
45731
45731
|
pageSizeOptions: $,
|
|
45732
45732
|
columnOrder: N,
|
|
45733
45733
|
onColumnOrderChange: S,
|
|
45734
|
-
columnReorderable:
|
|
45734
|
+
columnReorderable: A = !1
|
|
45735
45735
|
}) => {
|
|
45736
|
-
const
|
|
45736
|
+
const z = he.useMemo(
|
|
45737
45737
|
() => ({
|
|
45738
45738
|
...u
|
|
45739
45739
|
}),
|
|
@@ -45741,10 +45741,10 @@ const Gfe = (e) => /* @__PURE__ */ ne.createElement("svg", { xmlns: "http://www.
|
|
|
45741
45741
|
), P = he.useMemo(
|
|
45742
45742
|
() => e7e(t, N),
|
|
45743
45743
|
[t, N]
|
|
45744
|
-
),
|
|
45744
|
+
), D = (W, Y) => {
|
|
45745
45745
|
const oe = Yz(P, W, Y);
|
|
45746
45746
|
oe && S?.(oe);
|
|
45747
|
-
},
|
|
45747
|
+
}, B = (W, Y) => {
|
|
45748
45748
|
const oe = t7e(P, W, Y);
|
|
45749
45749
|
oe && S?.(oe);
|
|
45750
45750
|
}, V = he.useRef(null);
|
|
@@ -45758,13 +45758,13 @@ const Gfe = (e) => /* @__PURE__ */ ne.createElement("svg", { xmlns: "http://www.
|
|
|
45758
45758
|
);
|
|
45759
45759
|
return V.current && W.observe(V.current), () => W.disconnect();
|
|
45760
45760
|
}, [f, y, g, n]);
|
|
45761
|
-
const { tableState:
|
|
45761
|
+
const { tableState: q, handleSort: F } = Wge({
|
|
45762
45762
|
initialSortBy: null,
|
|
45763
45763
|
onSortChange: c
|
|
45764
|
-
}),
|
|
45765
|
-
const Y =
|
|
45764
|
+
}), T = (k?.sortBy !== void 0 ? k.sortBy : q.sortBy) ?? void 0, E = k?.sortOrder !== void 0 ? k.sortOrder : q.sortOrder, Q = (W) => {
|
|
45765
|
+
const Y = T, oe = E;
|
|
45766
45766
|
let U = "asc";
|
|
45767
|
-
Y === W && (U = oe === "asc" ? "desc" : "asc"), k?.sortBy !== void 0 ? c(W, U) :
|
|
45767
|
+
Y === W && (U = oe === "asc" ? "desc" : "asc"), k?.sortBy !== void 0 ? c(W, U) : F(W);
|
|
45768
45768
|
};
|
|
45769
45769
|
return /* @__PURE__ */ m(
|
|
45770
45770
|
"div",
|
|
@@ -45800,13 +45800,13 @@ const Gfe = (e) => /* @__PURE__ */ ne.createElement("svg", { xmlns: "http://www.
|
|
|
45800
45800
|
Yge,
|
|
45801
45801
|
{
|
|
45802
45802
|
columns: P,
|
|
45803
|
-
sortBy:
|
|
45804
|
-
sortOrder:
|
|
45805
|
-
onSort:
|
|
45803
|
+
sortBy: T,
|
|
45804
|
+
sortOrder: E,
|
|
45805
|
+
onSort: Q,
|
|
45806
45806
|
removeLabelSpan: I,
|
|
45807
|
-
reorderable:
|
|
45808
|
-
onColumnMove:
|
|
45809
|
-
onColumnShift:
|
|
45807
|
+
reorderable: A && !!S,
|
|
45808
|
+
onColumnMove: D,
|
|
45809
|
+
onColumnShift: B
|
|
45810
45810
|
}
|
|
45811
45811
|
),
|
|
45812
45812
|
/* @__PURE__ */ r(
|
|
@@ -45820,7 +45820,7 @@ const Gfe = (e) => /* @__PURE__ */ ne.createElement("svg", { xmlns: "http://www.
|
|
|
45820
45820
|
rowKey: s,
|
|
45821
45821
|
onRowClick: w,
|
|
45822
45822
|
isLoading: n,
|
|
45823
|
-
text:
|
|
45823
|
+
text: z,
|
|
45824
45824
|
rowStyle: typeof _ == "function" ? _ : _ ? () => _ : void 0,
|
|
45825
45825
|
rowClassName: L,
|
|
45826
45826
|
renderSeparator: b
|
|
@@ -45837,7 +45837,7 @@ const Gfe = (e) => /* @__PURE__ */ ne.createElement("svg", { xmlns: "http://www.
|
|
|
45837
45837
|
{
|
|
45838
45838
|
state: o,
|
|
45839
45839
|
onPaginationChange: i,
|
|
45840
|
-
text:
|
|
45840
|
+
text: z,
|
|
45841
45841
|
onLoadMore: y,
|
|
45842
45842
|
infiniteScroll: f,
|
|
45843
45843
|
hasMore: g,
|
|
@@ -45889,8 +45889,8 @@ const Qwe = ({
|
|
|
45889
45889
|
return Jz(L, o, n, _, 0, N, S), { rows: S, meta: N };
|
|
45890
45890
|
}, [L, o, n, _]), x = he.useMemo(
|
|
45891
45891
|
() => t.reduce((N, S) => {
|
|
45892
|
-
const
|
|
45893
|
-
return N + (Number.isFinite(
|
|
45892
|
+
const A = S.width ? parseInt(S.width, 10) : NaN;
|
|
45893
|
+
return N + (Number.isFinite(A) ? A : 140);
|
|
45894
45894
|
}, 0),
|
|
45895
45895
|
[t]
|
|
45896
45896
|
), b = he.useMemo(
|
|
@@ -45898,19 +45898,19 @@ const Qwe = ({
|
|
|
45898
45898
|
...N,
|
|
45899
45899
|
reorderable: !1,
|
|
45900
45900
|
render: (S) => {
|
|
45901
|
-
const
|
|
45901
|
+
const A = S[n], { level: z, hasChildren: P, isExpanded: D } = I.get(A) ?? {
|
|
45902
45902
|
level: 0,
|
|
45903
45903
|
hasChildren: !1,
|
|
45904
45904
|
isExpanded: !1
|
|
45905
|
-
},
|
|
45906
|
-
return /* @__PURE__ */ m("span", { className: "htl-cell", style: { paddingLeft:
|
|
45905
|
+
}, B = N.render ? N.render(S) : S[N.key];
|
|
45906
|
+
return /* @__PURE__ */ m("span", { className: "htl-cell", style: { paddingLeft: z * l }, children: [
|
|
45907
45907
|
P ? /* @__PURE__ */ r(
|
|
45908
45908
|
"button",
|
|
45909
45909
|
{
|
|
45910
45910
|
type: "button",
|
|
45911
45911
|
className: "htl-toggle",
|
|
45912
45912
|
onClick: (V) => {
|
|
45913
|
-
V.stopPropagation(), w(
|
|
45913
|
+
V.stopPropagation(), w(A);
|
|
45914
45914
|
},
|
|
45915
45915
|
children: /* @__PURE__ */ r(
|
|
45916
45916
|
Zz,
|
|
@@ -45919,26 +45919,26 @@ const Qwe = ({
|
|
|
45919
45919
|
height: 16,
|
|
45920
45920
|
style: {
|
|
45921
45921
|
fill: "currentColor",
|
|
45922
|
-
transform:
|
|
45922
|
+
transform: D ? "rotate(0deg)" : "rotate(-90deg)",
|
|
45923
45923
|
transition: "transform 0.15s ease"
|
|
45924
45924
|
}
|
|
45925
45925
|
}
|
|
45926
45926
|
)
|
|
45927
45927
|
}
|
|
45928
45928
|
) : /* @__PURE__ */ r("span", { className: "htl-toggle-spacer" }),
|
|
45929
|
-
|
|
45929
|
+
B
|
|
45930
45930
|
] });
|
|
45931
45931
|
}
|
|
45932
45932
|
}),
|
|
45933
45933
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
45934
45934
|
[t, i, I, l, n]
|
|
45935
45935
|
), $ = (N, S) => {
|
|
45936
|
-
const
|
|
45936
|
+
const A = N[n], { level: z, hasChildren: P, isExpanded: D } = I.get(A) ?? {
|
|
45937
45937
|
level: 0,
|
|
45938
45938
|
hasChildren: !1,
|
|
45939
45939
|
isExpanded: !1
|
|
45940
|
-
},
|
|
45941
|
-
return
|
|
45940
|
+
}, B = ["htl-row"];
|
|
45941
|
+
return z === 0 ? (B.push("htl-root"), P && D && B.push("htl-root-expanded")) : P && B.push("htl-group"), f && B.push(f(N, S, z)), B.join(" ");
|
|
45942
45942
|
};
|
|
45943
45943
|
return /* @__PURE__ */ r(
|
|
45944
45944
|
"div",
|
|
@@ -46054,17 +46054,17 @@ const Qwe = ({
|
|
|
46054
46054
|
errorColor: $,
|
|
46055
46055
|
labelColor: N,
|
|
46056
46056
|
placeholderColor: S,
|
|
46057
|
-
borderRadius:
|
|
46058
|
-
borderWidth:
|
|
46057
|
+
borderRadius: A = "var(--radius-content)",
|
|
46058
|
+
borderWidth: z = "0.0625rem",
|
|
46059
46059
|
boxShadow: P = "0 0.25rem 0.75rem rgba(0, 0, 0, 0.1)",
|
|
46060
|
-
transitionDuration:
|
|
46061
|
-
transitionTiming:
|
|
46060
|
+
transitionDuration: D = "0.2s",
|
|
46061
|
+
transitionTiming: B = "ease",
|
|
46062
46062
|
dateCellSize: V = "2.5rem",
|
|
46063
|
-
headerTextColor:
|
|
46064
|
-
weekdayTextColor:
|
|
46065
|
-
currentMonthDateColor:
|
|
46066
|
-
otherMonthDateColor:
|
|
46067
|
-
selectedDateBgColor:
|
|
46063
|
+
headerTextColor: q = "var(--color-text, #6c757d)",
|
|
46064
|
+
weekdayTextColor: F = "color-mix(in srgb, var(--color-text, #6c757d) 70%, transparent)",
|
|
46065
|
+
currentMonthDateColor: T = "var(--color-text, #212529)",
|
|
46066
|
+
otherMonthDateColor: E = "color-mix(in srgb, var(--color-text, #adb5bd) 55%, transparent)",
|
|
46067
|
+
selectedDateBgColor: Q = "var(--color-primary, #00A6D9)",
|
|
46068
46068
|
selectedDateTextColor: W = "var(--color-text-on-primary, #ffffff)",
|
|
46069
46069
|
cancelButtonBgColor: Y = "var(--color-switcher-background, #e9ecef)",
|
|
46070
46070
|
cancelButtonTextColor: oe = "var(--color-text, #212529)",
|
|
@@ -46114,36 +46114,36 @@ const Qwe = ({
|
|
|
46114
46114
|
isRangeEnd: oV,
|
|
46115
46115
|
hideOutsideDays: iV = !1
|
|
46116
46116
|
}) => {
|
|
46117
|
-
const Zt = (
|
|
46118
|
-
if (
|
|
46119
|
-
if (typeof
|
|
46120
|
-
const
|
|
46121
|
-
return isNaN(
|
|
46117
|
+
const Zt = (j) => {
|
|
46118
|
+
if (j instanceof Date) return isNaN(j.getTime()) ? null : j;
|
|
46119
|
+
if (typeof j == "string" && j) {
|
|
46120
|
+
const ee = new Date(j);
|
|
46121
|
+
return isNaN(ee.getTime()) ? null : ee;
|
|
46122
46122
|
}
|
|
46123
46123
|
return null;
|
|
46124
|
-
}, [yt, Xt] =
|
|
46125
|
-
ki ? Tr?.(
|
|
46126
|
-
}, [Gi, xw] =
|
|
46124
|
+
}, [yt, Xt] = H(ot), [rV, cV] = H(!1), [Wi, sV] = H({ top: 0, left: 0, width: 0 }), [ON, dV] = H("bottom"), [UN, lV] = H(null), [hV, WN] = H(Zt(e) || /* @__PURE__ */ new Date()), Me = ki ?? hV, Dr = (j) => {
|
|
46125
|
+
ki ? Tr?.(j) : WN(j);
|
|
46126
|
+
}, [Gi, xw] = H(Zt(e)), [Hr, bw] = H(Zt(e)?.getHours() ?? 0), [jr, ww] = H(Zt(e)?.getMinutes() ?? 0), [Lw, fi] = H(!1), [Cw, gi] = H(!1), Ki = K(null), vi = K(null), GN = K(null), Nw = K(null), Iw = K(null);
|
|
46127
46127
|
O(() => {
|
|
46128
46128
|
ot && (Xt(!0), cV(!0));
|
|
46129
46129
|
}, [ot]);
|
|
46130
46130
|
const KN = K(Zt(e)?.getTime());
|
|
46131
46131
|
O(() => {
|
|
46132
|
-
const
|
|
46133
|
-
|
|
46132
|
+
const j = Zt(e), ee = j?.getTime();
|
|
46133
|
+
ee !== KN.current && (KN.current = ee, xw(j), j && (WN(j), bw(j.getHours()), ww(j.getMinutes())));
|
|
46134
46134
|
}, [e]);
|
|
46135
46135
|
const ZN = ue(() => {
|
|
46136
46136
|
if (vi.current) {
|
|
46137
|
-
const
|
|
46137
|
+
const j = vi.current.getBoundingClientRect();
|
|
46138
46138
|
sV({
|
|
46139
|
-
top:
|
|
46140
|
-
left:
|
|
46141
|
-
width:
|
|
46139
|
+
top: j.top,
|
|
46140
|
+
left: j.left,
|
|
46141
|
+
width: j.width
|
|
46142
46142
|
});
|
|
46143
46143
|
}
|
|
46144
46144
|
}, []), XN = 8, Br = ue(() => {
|
|
46145
46145
|
if (!vi.current) return;
|
|
46146
|
-
const
|
|
46146
|
+
const j = vi.current.getBoundingClientRect(), ee = (parseFloat(k.replace("rem", "")) || 0) * 16, Ie = j.top - ee - XN, Ke = window.innerHeight - j.bottom - ee - XN;
|
|
46147
46147
|
let Je;
|
|
46148
46148
|
if (J !== "auto")
|
|
46149
46149
|
Je = J;
|
|
@@ -46160,29 +46160,29 @@ const Qwe = ({
|
|
|
46160
46160
|
}), [yt, _i]), Ir(() => {
|
|
46161
46161
|
yt && Br();
|
|
46162
46162
|
}, [yt, Br]), O(() => {
|
|
46163
|
-
const
|
|
46163
|
+
const j = (ee) => {
|
|
46164
46164
|
if (!ot) {
|
|
46165
|
-
if (Ki.current && !Ki.current.contains(
|
|
46165
|
+
if (Ki.current && !Ki.current.contains(ee.target)) {
|
|
46166
46166
|
const Ie = document.getElementById("datepicker-dropdown");
|
|
46167
|
-
if (Ie && Ie.contains(
|
|
46167
|
+
if (Ie && Ie.contains(ee.target)) return;
|
|
46168
46168
|
Xt(!1), fi(!1), gi(!1);
|
|
46169
46169
|
}
|
|
46170
|
-
Nw.current && !Nw.current.contains(
|
|
46170
|
+
Nw.current && !Nw.current.contains(ee.target) && fi(!1), Iw.current && !Iw.current.contains(ee.target) && gi(!1);
|
|
46171
46171
|
}
|
|
46172
46172
|
};
|
|
46173
|
-
return document.addEventListener("mousedown",
|
|
46173
|
+
return document.addEventListener("mousedown", j), () => document.removeEventListener("mousedown", j);
|
|
46174
46174
|
}, [ot]);
|
|
46175
|
-
const YN = (
|
|
46176
|
-
const
|
|
46177
|
-
return
|
|
46175
|
+
const YN = (j) => new Date(j.getFullYear(), j.getMonth() + 1, 0).getDate(), pV = (j) => {
|
|
46176
|
+
const ee = new Date(j.getFullYear(), j.getMonth(), 1).getDay();
|
|
46177
|
+
return ee === 0 ? 6 : ee - 1;
|
|
46178
46178
|
}, uV = () => {
|
|
46179
|
-
const
|
|
46179
|
+
const j = [], ee = pV(Me), Ie = YN(Me), Ke = new Date(
|
|
46180
46180
|
Me.getFullYear(),
|
|
46181
46181
|
Me.getMonth() - 1,
|
|
46182
46182
|
1
|
|
46183
46183
|
), Je = YN(Ke);
|
|
46184
|
-
for (let Qe =
|
|
46185
|
-
|
|
46184
|
+
for (let Qe = ee - 1; Qe >= 0; Qe--)
|
|
46185
|
+
j.push(
|
|
46186
46186
|
new Date(
|
|
46187
46187
|
Me.getFullYear(),
|
|
46188
46188
|
Me.getMonth() - 1,
|
|
@@ -46190,16 +46190,16 @@ const Qwe = ({
|
|
|
46190
46190
|
)
|
|
46191
46191
|
);
|
|
46192
46192
|
for (let Qe = 1; Qe <= Ie; Qe++)
|
|
46193
|
-
|
|
46194
|
-
const Ze = 42 -
|
|
46193
|
+
j.push(new Date(Me.getFullYear(), Me.getMonth(), Qe));
|
|
46194
|
+
const Ze = 42 - j.length;
|
|
46195
46195
|
for (let Qe = 1; Qe <= Ze; Qe++)
|
|
46196
|
-
|
|
46196
|
+
j.push(
|
|
46197
46197
|
new Date(Me.getFullYear(), Me.getMonth() + 1, Qe)
|
|
46198
46198
|
);
|
|
46199
|
-
return
|
|
46200
|
-
}, yV = (
|
|
46201
|
-
const
|
|
46202
|
-
return
|
|
46199
|
+
return j;
|
|
46200
|
+
}, yV = (j, ee) => !j || !ee ? !1 : j.getDate() === ee.getDate() && j.getMonth() === ee.getMonth() && j.getFullYear() === ee.getFullYear(), kV = (j) => j.getMonth() === Me.getMonth() && j.getFullYear() === Me.getFullYear(), Rr = yi ? (j) => Math.floor(j.getTime() / 6e4) * 6e4 : (j) => new Date(j.getFullYear(), j.getMonth(), j.getDate()).getTime(), JN = (j) => !(pe && Rr(j) < Rr(pe) || De && Rr(j) > Rr(De)), QN = Gi ? (() => {
|
|
46201
|
+
const j = new Date(Gi);
|
|
46202
|
+
return j.setHours(Hr), j.setMinutes(jr), j;
|
|
46203
46203
|
})() : null, Mi = QN ? !JN(QN) : !1, Fr = new Date(
|
|
46204
46204
|
Me.getFullYear(),
|
|
46205
46205
|
Me.getMonth() - 1,
|
|
@@ -46212,42 +46212,42 @@ const Qwe = ({
|
|
|
46212
46212
|
Sw || Dr(Fr);
|
|
46213
46213
|
}, fV = () => {
|
|
46214
46214
|
$w || Dr(Er);
|
|
46215
|
-
}, gV = (
|
|
46215
|
+
}, gV = (j) => {
|
|
46216
46216
|
if (!s) {
|
|
46217
|
-
const
|
|
46218
|
-
|
|
46217
|
+
const ee = new Date(j);
|
|
46218
|
+
ee.setHours(Hr), ee.setMinutes(jr), xw(ee), ot && t(ee);
|
|
46219
46219
|
}
|
|
46220
46220
|
}, vV = () => {
|
|
46221
46221
|
if (!s) {
|
|
46222
46222
|
if (Gi) {
|
|
46223
|
-
const
|
|
46224
|
-
if (
|
|
46225
|
-
t(
|
|
46223
|
+
const j = new Date(Gi);
|
|
46224
|
+
if (j.setHours(Hr), j.setMinutes(jr), !JN(j)) return;
|
|
46225
|
+
t(j);
|
|
46226
46226
|
} else
|
|
46227
46227
|
t(null);
|
|
46228
46228
|
Xt(!1);
|
|
46229
46229
|
}
|
|
46230
46230
|
}, _V = () => {
|
|
46231
|
-
const
|
|
46232
|
-
xw(
|
|
46233
|
-
}, MV = (
|
|
46234
|
-
Dr(new Date(Me.getFullYear(),
|
|
46235
|
-
}, xV = (
|
|
46236
|
-
Dr(new Date(
|
|
46231
|
+
const j = Zt(e);
|
|
46232
|
+
xw(j), j && (bw(j.getHours()), ww(j.getMinutes())), Xt(!1);
|
|
46233
|
+
}, MV = (j) => {
|
|
46234
|
+
Dr(new Date(Me.getFullYear(), j, 1)), fi(!1);
|
|
46235
|
+
}, xV = (j) => {
|
|
46236
|
+
Dr(new Date(j, Me.getMonth(), 1)), gi(!1);
|
|
46237
46237
|
}, bV = () => {
|
|
46238
|
-
const
|
|
46239
|
-
for (let Je =
|
|
46238
|
+
const j = Me.getFullYear(), ee = pe ? pe.getFullYear() : j - 10, Ie = De ? De.getFullYear() : j + 10, Ke = [];
|
|
46239
|
+
for (let Je = ee; Je <= Ie; Je++)
|
|
46240
46240
|
Ke.push(Je);
|
|
46241
46241
|
return Ke;
|
|
46242
|
-
}, wV = (
|
|
46243
|
-
const
|
|
46244
|
-
return !!(pe && (
|
|
46245
|
-
}, LV = (
|
|
46242
|
+
}, wV = (j) => {
|
|
46243
|
+
const ee = Me.getFullYear();
|
|
46244
|
+
return !!(pe && (ee < pe.getFullYear() || ee === pe.getFullYear() && j < pe.getMonth()) || De && (ee > De.getFullYear() || ee === De.getFullYear() && j > De.getMonth()));
|
|
46245
|
+
}, LV = (j) => {
|
|
46246
46246
|
if (!s)
|
|
46247
|
-
switch (
|
|
46247
|
+
switch (j.key) {
|
|
46248
46248
|
case "Enter":
|
|
46249
46249
|
case " ":
|
|
46250
|
-
|
|
46250
|
+
j.preventDefault(), Xt(!yt);
|
|
46251
46251
|
break;
|
|
46252
46252
|
case "Escape":
|
|
46253
46253
|
Xt(!1), fi(!1), gi(!1);
|
|
@@ -46267,10 +46267,10 @@ const Qwe = ({
|
|
|
46267
46267
|
border: Te ? void 0 : "none",
|
|
46268
46268
|
borderColor: d ? $ || "#dc3545" : w || "var(--color-border, #dee2e6)",
|
|
46269
46269
|
color: L || "var(--color-text, #212529)",
|
|
46270
|
-
borderRadius:
|
|
46271
|
-
borderWidth:
|
|
46270
|
+
borderRadius: A,
|
|
46271
|
+
borderWidth: z,
|
|
46272
46272
|
fontWeight: M,
|
|
46273
|
-
transition: `all ${
|
|
46273
|
+
transition: `all ${D} ${B}`
|
|
46274
46274
|
}, IV = He ? {
|
|
46275
46275
|
flexDirection: "column",
|
|
46276
46276
|
borderTop: "none",
|
|
@@ -46284,10 +46284,10 @@ const Qwe = ({
|
|
|
46284
46284
|
// plafonne à cet espace et on scrolle plutôt que de déborder de l'écran.
|
|
46285
46285
|
maxHeight: p === "auto" ? UN != null ? `${UN}px` : void 0 : p,
|
|
46286
46286
|
overflowY: "auto",
|
|
46287
|
-
borderRadius:
|
|
46288
|
-
borderWidth:
|
|
46287
|
+
borderRadius: A,
|
|
46288
|
+
borderWidth: z,
|
|
46289
46289
|
boxShadow: P,
|
|
46290
|
-
transition: `opacity ${
|
|
46290
|
+
transition: `opacity ${D} ${B}, transform ${D} ${B}`,
|
|
46291
46291
|
position: "fixed",
|
|
46292
46292
|
top: ON === "bottom" ? Wi.top + (vi.current?.offsetHeight || 0) + parseFloat(k.replace("rem", "")) * 16 : "auto",
|
|
46293
46293
|
bottom: ON === "top" ? window.innerHeight - Wi.top + parseFloat(k.replace("rem", "")) * 16 : "auto",
|
|
@@ -46315,7 +46315,7 @@ const Qwe = ({
|
|
|
46315
46315
|
}, VV = {
|
|
46316
46316
|
color: $ || "#dc3545",
|
|
46317
46317
|
marginTop: g
|
|
46318
|
-
}, PV = uV(), wt = Zt(e), tI = (
|
|
46318
|
+
}, PV = uV(), wt = Zt(e), tI = (j) => `${j.getDate().toString().padStart(2, "0")}/${(j.getMonth() + 1).toString().padStart(2, "0")}/${j.getFullYear()}`, aI = wt ? Le === "minutes" ? `${tI(wt)} ${wt.getHours().toString().padStart(2, "0")}:${wt.getMinutes().toString().padStart(2, "0")}` : tI(wt) : "", nI = !!fe && (ve === "icon" || ve === "auto" && !wt), TV = ut && !nI && !!wt && !s, DV = {
|
|
46319
46319
|
width: "0.875rem",
|
|
46320
46320
|
height: "0.875rem",
|
|
46321
46321
|
color: b || "var(--color-text, #6c757d)"
|
|
@@ -46366,11 +46366,11 @@ const Qwe = ({
|
|
|
46366
46366
|
tabIndex: 0,
|
|
46367
46367
|
className: ie.clearButton,
|
|
46368
46368
|
"aria-label": la,
|
|
46369
|
-
onClick: (
|
|
46370
|
-
|
|
46369
|
+
onClick: (j) => {
|
|
46370
|
+
j.stopPropagation(), t(null);
|
|
46371
46371
|
},
|
|
46372
|
-
onKeyDown: (
|
|
46373
|
-
(
|
|
46372
|
+
onKeyDown: (j) => {
|
|
46373
|
+
(j.key === "Enter" || j.key === " ") && (j.preventDefault(), j.stopPropagation(), t(null));
|
|
46374
46374
|
},
|
|
46375
46375
|
children: /* @__PURE__ */ r(Z7e, { fill: "var(--color-text)", style: DV })
|
|
46376
46376
|
}
|
|
@@ -46423,7 +46423,7 @@ const Qwe = ({
|
|
|
46423
46423
|
className: ie.selectorButton,
|
|
46424
46424
|
onClick: () => fi(!Lw),
|
|
46425
46425
|
style: {
|
|
46426
|
-
color:
|
|
46426
|
+
color: q,
|
|
46427
46427
|
"--hover-color": I
|
|
46428
46428
|
},
|
|
46429
46429
|
children: [
|
|
@@ -46439,30 +46439,30 @@ const Qwe = ({
|
|
|
46439
46439
|
]
|
|
46440
46440
|
}
|
|
46441
46441
|
),
|
|
46442
|
-
Lw && /* @__PURE__ */ r("div", { className: ie.monthDropdown, children: (bt || $q).map((
|
|
46443
|
-
const Ie = wV(
|
|
46442
|
+
Lw && /* @__PURE__ */ r("div", { className: ie.monthDropdown, children: (bt || $q).map((j, ee) => {
|
|
46443
|
+
const Ie = wV(ee);
|
|
46444
46444
|
return /* @__PURE__ */ r(
|
|
46445
46445
|
"button",
|
|
46446
46446
|
{
|
|
46447
46447
|
type: "button",
|
|
46448
46448
|
disabled: Ie,
|
|
46449
|
-
className: `${ie.monthItem} ${Me.getMonth() ===
|
|
46450
|
-
onClick: () => !Ie && MV(
|
|
46449
|
+
className: `${ie.monthItem} ${Me.getMonth() === ee ? ie.monthItemSelected : ""}`,
|
|
46450
|
+
onClick: () => !Ie && MV(ee),
|
|
46451
46451
|
style: {
|
|
46452
46452
|
padding: v,
|
|
46453
|
-
backgroundColor: Me.getMonth() ===
|
|
46453
|
+
backgroundColor: Me.getMonth() === ee ? x || "var(--color-lite-primary, #e7f1ff)" : C,
|
|
46454
46454
|
opacity: Ie ? 0.3 : 1,
|
|
46455
46455
|
cursor: Ie ? "not-allowed" : "pointer"
|
|
46456
46456
|
},
|
|
46457
46457
|
onMouseEnter: (Ke) => {
|
|
46458
|
-
I && Me.getMonth() !==
|
|
46458
|
+
I && Me.getMonth() !== ee && !Ie && (Ke.currentTarget.style.backgroundColor = I);
|
|
46459
46459
|
},
|
|
46460
46460
|
onMouseLeave: (Ke) => {
|
|
46461
|
-
I && (Ke.currentTarget.style.backgroundColor = Me.getMonth() ===
|
|
46461
|
+
I && (Ke.currentTarget.style.backgroundColor = Me.getMonth() === ee ? x || "var(--color-lite-primary, #e7f1ff)" : C);
|
|
46462
46462
|
},
|
|
46463
|
-
children:
|
|
46463
|
+
children: j
|
|
46464
46464
|
},
|
|
46465
|
-
|
|
46465
|
+
ee
|
|
46466
46466
|
);
|
|
46467
46467
|
}) })
|
|
46468
46468
|
] }),
|
|
@@ -46474,7 +46474,7 @@ const Qwe = ({
|
|
|
46474
46474
|
className: ie.selectorButton,
|
|
46475
46475
|
onClick: () => gi(!Cw),
|
|
46476
46476
|
style: {
|
|
46477
|
-
color:
|
|
46477
|
+
color: q,
|
|
46478
46478
|
"--hover-color": I
|
|
46479
46479
|
},
|
|
46480
46480
|
children: [
|
|
@@ -46490,25 +46490,25 @@ const Qwe = ({
|
|
|
46490
46490
|
]
|
|
46491
46491
|
}
|
|
46492
46492
|
),
|
|
46493
|
-
Cw && /* @__PURE__ */ r("div", { className: ie.yearDropdown, children: bV().map((
|
|
46493
|
+
Cw && /* @__PURE__ */ r("div", { className: ie.yearDropdown, children: bV().map((j) => /* @__PURE__ */ r(
|
|
46494
46494
|
"button",
|
|
46495
46495
|
{
|
|
46496
46496
|
type: "button",
|
|
46497
|
-
className: `${ie.yearItem} ${Me.getFullYear() ===
|
|
46498
|
-
onClick: () => xV(
|
|
46497
|
+
className: `${ie.yearItem} ${Me.getFullYear() === j ? ie.yearItemSelected : ""}`,
|
|
46498
|
+
onClick: () => xV(j),
|
|
46499
46499
|
style: {
|
|
46500
46500
|
padding: v,
|
|
46501
|
-
backgroundColor: Me.getFullYear() ===
|
|
46501
|
+
backgroundColor: Me.getFullYear() === j ? x || "var(--color-lite-primary, #e7f1ff)" : C
|
|
46502
46502
|
},
|
|
46503
|
-
onMouseEnter: (
|
|
46504
|
-
I && Me.getFullYear() !==
|
|
46503
|
+
onMouseEnter: (ee) => {
|
|
46504
|
+
I && Me.getFullYear() !== j && (ee.currentTarget.style.backgroundColor = I);
|
|
46505
46505
|
},
|
|
46506
|
-
onMouseLeave: (
|
|
46507
|
-
I && (
|
|
46506
|
+
onMouseLeave: (ee) => {
|
|
46507
|
+
I && (ee.currentTarget.style.backgroundColor = Me.getFullYear() === j ? x || "var(--color-lite-primary, #e7f1ff)" : C);
|
|
46508
46508
|
},
|
|
46509
|
-
children:
|
|
46509
|
+
children: j
|
|
46510
46510
|
},
|
|
46511
|
-
|
|
46511
|
+
j
|
|
46512
46512
|
)) })
|
|
46513
46513
|
] })
|
|
46514
46514
|
] }),
|
|
@@ -46525,32 +46525,32 @@ const Qwe = ({
|
|
|
46525
46525
|
}
|
|
46526
46526
|
)
|
|
46527
46527
|
] }),
|
|
46528
|
-
/* @__PURE__ */ r("div", { className: ie.weekdays, children: (vw || X7e).map((
|
|
46529
|
-
/* @__PURE__ */ r("div", { className: ie.calendarGrid, children: PV.map((
|
|
46530
|
-
if (!
|
|
46531
|
-
const Ie = (et) => new Date(et.getFullYear(), et.getMonth(), et.getDate()).getTime(), Ke = (et) => et ? `${et.getFullYear()}-${et.getMonth()}-${et.getDate()}` : "", Je = `${
|
|
46528
|
+
/* @__PURE__ */ r("div", { className: ie.weekdays, children: (vw || X7e).map((j) => /* @__PURE__ */ r("div", { className: ie.weekday, style: { color: F }, children: j }, j)) }),
|
|
46529
|
+
/* @__PURE__ */ r("div", { className: ie.calendarGrid, children: PV.map((j, ee) => {
|
|
46530
|
+
if (!j) return null;
|
|
46531
|
+
const Ie = (et) => new Date(et.getFullYear(), et.getMonth(), et.getDate()).getTime(), Ke = (et) => et ? `${et.getFullYear()}-${et.getMonth()}-${et.getDate()}` : "", Je = `${j.getFullYear()}-${j.getMonth()}-${j.getDate()}`, Ze = ha === "multiple" ? aV?.(j) ?? ua.some(
|
|
46532
46532
|
(et) => et && Ke(et) === Je
|
|
46533
|
-
) : ha === "range" ? (nV?.(
|
|
46533
|
+
) : ha === "range" ? (nV?.(j) ?? (!!pa && Ke(pa) === Je)) || (oV?.(j) ?? (!!mi && Ke(mi) === Je)) : yV(j, Gi), Qe = ha === "range" ? ya?.(j) ?? (!!pa && !!mi && Ie(j) >= Ie(pa) && Ie(j) <= Ie(mi)) : !1, qw = kV(j), xi = !!(pe && Ie(j) < Ie(pe) || De && Ie(j) > Ie(De)), oI = "color-mix(in srgb, var(--color-primary) 16%, transparent)";
|
|
46534
46534
|
return iV && !qw ? /* @__PURE__ */ r(
|
|
46535
46535
|
"span",
|
|
46536
46536
|
{
|
|
46537
46537
|
"aria-hidden": "true",
|
|
46538
46538
|
style: { display: "block", width: V, height: V }
|
|
46539
46539
|
},
|
|
46540
|
-
|
|
46540
|
+
ee
|
|
46541
46541
|
) : /* @__PURE__ */ r(
|
|
46542
46542
|
"button",
|
|
46543
46543
|
{
|
|
46544
46544
|
type: "button",
|
|
46545
46545
|
className: `${ie.dateCell} ${Ze ? ie.dateCellSelected : ""} ${Ze ? ie.dateCellOtherMonthSelected : ""} ${Qe && !Ze ? ie.dateCellInRange : ""} ${qw ? "" : ie.dateCellOtherMonth} ${xi ? ie.dateCellDisabled : ""}`,
|
|
46546
|
-
onClick: () => !xi && gV(
|
|
46546
|
+
onClick: () => !xi && gV(j),
|
|
46547
46547
|
disabled: xi,
|
|
46548
46548
|
style: {
|
|
46549
46549
|
width: V,
|
|
46550
46550
|
height: V,
|
|
46551
46551
|
borderRadius: ha === "multiple" && Ze ? "50%" : void 0,
|
|
46552
|
-
color: Ze ? W : qw ?
|
|
46553
|
-
backgroundColor: Ze ?
|
|
46552
|
+
color: Ze ? W : qw ? T : E,
|
|
46553
|
+
backgroundColor: Ze ? Q : Qe ? oI : "transparent",
|
|
46554
46554
|
opacity: xi ? 0.4 : 1,
|
|
46555
46555
|
cursor: xi ? "not-allowed" : "pointer"
|
|
46556
46556
|
},
|
|
@@ -46560,9 +46560,9 @@ const Qwe = ({
|
|
|
46560
46560
|
onMouseLeave: (et) => {
|
|
46561
46561
|
Ze || (et.currentTarget.style.backgroundColor = Qe ? oI : "transparent");
|
|
46562
46562
|
},
|
|
46563
|
-
children:
|
|
46563
|
+
children: j.getDate()
|
|
46564
46564
|
},
|
|
46565
|
-
|
|
46565
|
+
ee
|
|
46566
46566
|
);
|
|
46567
46567
|
}) })
|
|
46568
46568
|
] }),
|
|
@@ -46576,9 +46576,9 @@ const Qwe = ({
|
|
|
46576
46576
|
min: "0",
|
|
46577
46577
|
max: "23",
|
|
46578
46578
|
value: Hr,
|
|
46579
|
-
onChange: (
|
|
46580
|
-
const
|
|
46581
|
-
!isNaN(
|
|
46579
|
+
onChange: (j) => {
|
|
46580
|
+
const ee = parseInt(j.target.value);
|
|
46581
|
+
!isNaN(ee) && ee >= 0 && ee <= 23 && bw(ee);
|
|
46582
46582
|
},
|
|
46583
46583
|
className: ie.timeInput,
|
|
46584
46584
|
style: Mi ? { borderColor: "#dc2626", color: "#dc2626" } : void 0
|
|
@@ -46595,9 +46595,9 @@ const Qwe = ({
|
|
|
46595
46595
|
min: "0",
|
|
46596
46596
|
max: "59",
|
|
46597
46597
|
value: jr,
|
|
46598
|
-
onChange: (
|
|
46599
|
-
const
|
|
46600
|
-
!isNaN(
|
|
46598
|
+
onChange: (j) => {
|
|
46599
|
+
const ee = parseInt(j.target.value);
|
|
46600
|
+
!isNaN(ee) && ee >= 0 && ee <= 59 && ww(ee);
|
|
46601
46601
|
},
|
|
46602
46602
|
className: ie.timeInput,
|
|
46603
46603
|
style: Mi ? { borderColor: "#dc2626", color: "#dc2626" } : void 0
|
|
@@ -46629,7 +46629,7 @@ const Qwe = ({
|
|
|
46629
46629
|
style: {
|
|
46630
46630
|
backgroundColor: Y,
|
|
46631
46631
|
color: oe,
|
|
46632
|
-
borderRadius:
|
|
46632
|
+
borderRadius: A,
|
|
46633
46633
|
padding: ye ?? v,
|
|
46634
46634
|
fontSize: X
|
|
46635
46635
|
},
|
|
@@ -46646,7 +46646,7 @@ const Qwe = ({
|
|
|
46646
46646
|
style: {
|
|
46647
46647
|
backgroundColor: U,
|
|
46648
46648
|
color: ae,
|
|
46649
|
-
borderRadius:
|
|
46649
|
+
borderRadius: A,
|
|
46650
46650
|
padding: ye ?? v,
|
|
46651
46651
|
fontSize: X,
|
|
46652
46652
|
opacity: Mi ? 0.5 : 1,
|
|
@@ -46738,20 +46738,20 @@ const Qwe = ({
|
|
|
46738
46738
|
previewDates: $,
|
|
46739
46739
|
onModeChange: N,
|
|
46740
46740
|
onDraftRangeChange: S,
|
|
46741
|
-
onDraftDatesChange:
|
|
46742
|
-
className:
|
|
46741
|
+
onDraftDatesChange: A,
|
|
46742
|
+
className: z = ""
|
|
46743
46743
|
}) => {
|
|
46744
|
-
const [P,
|
|
46744
|
+
const [P, D] = H(!1), B = Mr(/* @__PURE__ */ new Date()), V = w === "future" && (!M || M < B) ? B : M, q = w === "past" && (!_ || _ > B) ? B : _, F = (t ?? yve).join("|"), T = xe(() => (F ? F.split("|") : []).filter(
|
|
46745
46745
|
(me, we, Kt) => Kt.indexOf(me) === we
|
|
46746
|
-
), [
|
|
46747
|
-
|
|
46746
|
+
), [F]), [E, Q] = H(
|
|
46747
|
+
T.includes(e) ? e : T[0] ?? "range"
|
|
46748
46748
|
);
|
|
46749
46749
|
O(() => {
|
|
46750
|
-
|
|
46751
|
-
}, [
|
|
46752
|
-
|
|
46753
|
-
}, [
|
|
46754
|
-
const [W, Y] =
|
|
46750
|
+
T.includes(E) || Q(T[0] ?? "range");
|
|
46751
|
+
}, [E, T]), O(() => {
|
|
46752
|
+
T.includes(e) && Q(e);
|
|
46753
|
+
}, [T, e]);
|
|
46754
|
+
const [W, Y] = H(n), [oe, U] = H(o), [ae, ye] = H(i), [X, se] = H(e), fe = w === "past" ? oe ?? W ?? ae[0] ?? /* @__PURE__ */ new Date() : /* @__PURE__ */ new Date(), [ve, be] = H(
|
|
46755
46755
|
new Date(
|
|
46756
46756
|
fe.getFullYear(),
|
|
46757
46757
|
fe.getMonth() + (w === "past" ? -1 : 0),
|
|
@@ -46769,7 +46769,7 @@ const Qwe = ({
|
|
|
46769
46769
|
const re = xe(
|
|
46770
46770
|
() => new Date(ve.getFullYear(), ve.getMonth() + 1, 1),
|
|
46771
46771
|
[ve]
|
|
46772
|
-
), ke = K(null), Te = K(null), Re = K(null), [Le, He] =
|
|
46772
|
+
), ke = K(null), Te = K(null), Re = K(null), [Le, He] = H(null), nt = ue(() => {
|
|
46773
46773
|
const Z = Te.current, me = Re.current;
|
|
46774
46774
|
if (!Z || !me) return;
|
|
46775
46775
|
const we = Z.getBoundingClientRect(), Kt = me.getBoundingClientRect(), Dt = 8, ut = 4, la = Math.min(Kt.width, window.innerWidth - Dt * 2), ot = Math.min(
|
|
@@ -46803,11 +46803,11 @@ const Qwe = ({
|
|
|
46803
46803
|
const pe = K("");
|
|
46804
46804
|
O(() => {
|
|
46805
46805
|
const Z = ae.map((me) => me?.getTime() ?? "").join("|");
|
|
46806
|
-
pe.current !== Z && (pe.current = Z,
|
|
46807
|
-
}, [ae,
|
|
46806
|
+
pe.current !== Z && (pe.current = Z, A?.(ae));
|
|
46807
|
+
}, [ae, A]), O(() => {
|
|
46808
46808
|
const Z = (me) => {
|
|
46809
46809
|
const we = me.target;
|
|
46810
|
-
!ke.current?.contains(we) && !Re.current?.contains(we) &&
|
|
46810
|
+
!ke.current?.contains(we) && !Re.current?.contains(we) && D(!1);
|
|
46811
46811
|
};
|
|
46812
46812
|
return document.addEventListener("mousedown", Z), () => document.removeEventListener("mousedown", Z);
|
|
46813
46813
|
}, []), Ir(() => {
|
|
@@ -46842,11 +46842,11 @@ const Qwe = ({
|
|
|
46842
46842
|
ye((we) => (we.some((ut) => ti(ut, me)) ? we.filter((ut) => !ti(ut, me)) : [...we, me]).sort((ut, la) => ut.getTime() - la.getTime()));
|
|
46843
46843
|
}, vw = (Z) => {
|
|
46844
46844
|
const me = Z.applyDates ? Z.applyDates(/* @__PURE__ */ new Date()) : { start: Z.start, end: Z.end };
|
|
46845
|
-
if (
|
|
46845
|
+
if (E === "multiple") {
|
|
46846
46846
|
ye(me.dates ?? Mve(me.start, me.end));
|
|
46847
46847
|
return;
|
|
46848
46848
|
}
|
|
46849
|
-
if (
|
|
46849
|
+
if (E === "single") {
|
|
46850
46850
|
Y(
|
|
46851
46851
|
(w === "past" ? me.end ?? me.start : me.start ?? me.end) ?? null
|
|
46852
46852
|
), U(null);
|
|
@@ -46856,10 +46856,10 @@ const Qwe = ({
|
|
|
46856
46856
|
}, _w = () => {
|
|
46857
46857
|
Y(null), U(null), ye([]), d?.();
|
|
46858
46858
|
}, Mw = () => {
|
|
46859
|
-
|
|
46859
|
+
E === "single" && !W || E === "range" && (!W || !oe) || E === "multiple" && !ae.length || (E === "multiple" ? s?.(ae) : E === "single" ? c?.(W, null) : c?.(W, oe), se(E), l?.(), D(!1));
|
|
46860
46860
|
}, Pr = xe(() => {
|
|
46861
|
-
if (
|
|
46862
|
-
return
|
|
46861
|
+
if (E !== "range" || !W)
|
|
46862
|
+
return E === "multiple" ? ae.length : 0;
|
|
46863
46863
|
const Z = oe ?? W;
|
|
46864
46864
|
return Math.round(
|
|
46865
46865
|
(new Date(Z.getFullYear(), Z.getMonth(), Z.getDate()).getTime() - new Date(
|
|
@@ -46868,15 +46868,15 @@ const Qwe = ({
|
|
|
46868
46868
|
W.getDate()
|
|
46869
46869
|
).getTime()) / 864e5
|
|
46870
46870
|
) + 1;
|
|
46871
|
-
}, [
|
|
46872
|
-
return /* @__PURE__ */ m("div", { ref: ke, className: `${Oe.container} ${
|
|
46871
|
+
}, [E, ae.length, oe, W]);
|
|
46872
|
+
return /* @__PURE__ */ m("div", { ref: ke, className: `${Oe.container} ${z}`, style: { width: C }, children: [
|
|
46873
46873
|
/* @__PURE__ */ m(
|
|
46874
46874
|
"button",
|
|
46875
46875
|
{
|
|
46876
46876
|
ref: Te,
|
|
46877
46877
|
type: "button",
|
|
46878
46878
|
className: Oe.trigger,
|
|
46879
|
-
onClick: () => !L &&
|
|
46879
|
+
onClick: () => !L && D((Z) => !Z),
|
|
46880
46880
|
disabled: L,
|
|
46881
46881
|
"aria-expanded": P,
|
|
46882
46882
|
"aria-haspopup": "dialog",
|
|
@@ -46914,16 +46914,16 @@ const Qwe = ({
|
|
|
46914
46914
|
"button",
|
|
46915
46915
|
{
|
|
46916
46916
|
type: "button",
|
|
46917
|
-
className:
|
|
46918
|
-
disabled: !
|
|
46917
|
+
className: E === Z ? Oe.tabActive : "",
|
|
46918
|
+
disabled: !T.includes(Z),
|
|
46919
46919
|
onClick: () => {
|
|
46920
|
-
|
|
46920
|
+
Q(Z), N?.(Z);
|
|
46921
46921
|
},
|
|
46922
46922
|
children: Z === "single" ? v.single ?? "Date unique" : Z === "range" ? v.range ?? "Période" : v.multiple ?? "Dates multiples"
|
|
46923
46923
|
},
|
|
46924
46924
|
Z
|
|
46925
46925
|
)) }),
|
|
46926
|
-
|
|
46926
|
+
E === "range" && /* @__PURE__ */ m("div", { className: Oe.summary, children: [
|
|
46927
46927
|
/* @__PURE__ */ m("span", { children: [
|
|
46928
46928
|
/* @__PURE__ */ r("small", { children: v.start ?? "Début" }),
|
|
46929
46929
|
W ? f(W) : "-"
|
|
@@ -46933,11 +46933,11 @@ const Qwe = ({
|
|
|
46933
46933
|
oe ? f(oe) : "-"
|
|
46934
46934
|
] })
|
|
46935
46935
|
] }),
|
|
46936
|
-
|
|
46936
|
+
E === "single" && /* @__PURE__ */ r("div", { className: Oe.summary, children: /* @__PURE__ */ m("span", { children: [
|
|
46937
46937
|
/* @__PURE__ */ r("small", { children: v.selection ?? "Sélection" }),
|
|
46938
46938
|
W ? f(W) : "-"
|
|
46939
46939
|
] }) }),
|
|
46940
|
-
|
|
46940
|
+
E === "multiple" && /* @__PURE__ */ m("div", { className: Oe.selectionCount, children: [
|
|
46941
46941
|
/* @__PURE__ */ r("small", { children: v.selection ?? "Sélection" }),
|
|
46942
46942
|
ae.length,
|
|
46943
46943
|
" date",
|
|
@@ -46950,13 +46950,13 @@ const Qwe = ({
|
|
|
46950
46950
|
{
|
|
46951
46951
|
isAdvanced: !0,
|
|
46952
46952
|
hideOutsideDays: !0,
|
|
46953
|
-
value:
|
|
46954
|
-
onChange:
|
|
46953
|
+
value: E === "single" ? W : null,
|
|
46954
|
+
onChange: E === "range" ? yi : E === "multiple" ? bt : qe,
|
|
46955
46955
|
lowerLimit: V,
|
|
46956
|
-
upperLimit:
|
|
46956
|
+
upperLimit: q,
|
|
46957
46957
|
months: g,
|
|
46958
46958
|
weekdays: k,
|
|
46959
|
-
selectionMode:
|
|
46959
|
+
selectionMode: E,
|
|
46960
46960
|
rangeStart: W,
|
|
46961
46961
|
rangeEnd: oe,
|
|
46962
46962
|
selectedDates: ae,
|
|
@@ -46971,13 +46971,13 @@ const Qwe = ({
|
|
|
46971
46971
|
{
|
|
46972
46972
|
isAdvanced: !0,
|
|
46973
46973
|
hideOutsideDays: !0,
|
|
46974
|
-
value:
|
|
46975
|
-
onChange:
|
|
46974
|
+
value: E === "range" ? oe : W,
|
|
46975
|
+
onChange: E === "range" ? yi : E === "multiple" ? bt : qe,
|
|
46976
46976
|
lowerLimit: V,
|
|
46977
|
-
upperLimit:
|
|
46977
|
+
upperLimit: q,
|
|
46978
46978
|
months: g,
|
|
46979
46979
|
weekdays: k,
|
|
46980
|
-
selectionMode:
|
|
46980
|
+
selectionMode: E,
|
|
46981
46981
|
rangeStart: W,
|
|
46982
46982
|
rangeEnd: oe,
|
|
46983
46983
|
selectedDates: ae,
|
|
@@ -47006,13 +47006,13 @@ const Qwe = ({
|
|
|
47006
47006
|
)) }),
|
|
47007
47007
|
/* @__PURE__ */ m("div", { className: Oe.actions, children: [
|
|
47008
47008
|
/* @__PURE__ */ m("div", { className: Oe.daysCount, children: [
|
|
47009
|
-
|
|
47009
|
+
E === "range" && /* @__PURE__ */ m("span", { children: [
|
|
47010
47010
|
Pr,
|
|
47011
47011
|
" ",
|
|
47012
47012
|
v.day,
|
|
47013
47013
|
Pr > 1 ? "s" : ""
|
|
47014
47014
|
] }),
|
|
47015
|
-
|
|
47015
|
+
E === "multiple" && /* @__PURE__ */ m("span", { children: [
|
|
47016
47016
|
ae.length,
|
|
47017
47017
|
" ",
|
|
47018
47018
|
v.date,
|
|
@@ -47026,7 +47026,7 @@ const Qwe = ({
|
|
|
47026
47026
|
type: "button",
|
|
47027
47027
|
className: Oe.apply,
|
|
47028
47028
|
onClick: Mw,
|
|
47029
|
-
disabled:
|
|
47029
|
+
disabled: E === "single" && !W || E === "range" && (!W || !oe) || E === "multiple" && !ae.length,
|
|
47030
47030
|
children: v.apply ?? "Valider"
|
|
47031
47031
|
}
|
|
47032
47032
|
)
|
|
@@ -47089,20 +47089,20 @@ const Qwe = ({
|
|
|
47089
47089
|
selectedItemBgColor: $,
|
|
47090
47090
|
iconColor: N,
|
|
47091
47091
|
errorColor: S,
|
|
47092
|
-
labelColor:
|
|
47093
|
-
placeholderColor:
|
|
47092
|
+
labelColor: A,
|
|
47093
|
+
placeholderColor: z,
|
|
47094
47094
|
// Bordures et ombres
|
|
47095
47095
|
border: P,
|
|
47096
|
-
borderRadius:
|
|
47097
|
-
borderWidth:
|
|
47096
|
+
borderRadius: D = "var(--select-border-radius, 0.5rem)",
|
|
47097
|
+
borderWidth: B = "var(--select-border-width, 0.0625rem)",
|
|
47098
47098
|
boxShadow: V = "var(--select-box-shadow, 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1))",
|
|
47099
47099
|
// Transitions
|
|
47100
|
-
transitionDuration:
|
|
47101
|
-
transitionTiming:
|
|
47100
|
+
transitionDuration: q = "var(--select-transition-duration, 0.2s)",
|
|
47101
|
+
transitionTiming: F = "var(--select-transition-timing, ease)",
|
|
47102
47102
|
// Scrollbars
|
|
47103
|
-
scrollbarWidth:
|
|
47104
|
-
scrollbarTrackColor:
|
|
47105
|
-
scrollbarThumbColor:
|
|
47103
|
+
scrollbarWidth: T = "var(--select-scrollbar-width, 0.375rem)",
|
|
47104
|
+
scrollbarTrackColor: E = "var(--select-scrollbar-track-color, #f1f1f1)",
|
|
47105
|
+
scrollbarThumbColor: Q = "var(--select-scrollbar-thumb-color, #c1c1c1)",
|
|
47106
47106
|
width: W,
|
|
47107
47107
|
minWidth: Y,
|
|
47108
47108
|
dropdownPosition: oe = "bottom",
|
|
@@ -47111,7 +47111,7 @@ const Qwe = ({
|
|
|
47111
47111
|
a11yConfig: ye,
|
|
47112
47112
|
titleKey: X
|
|
47113
47113
|
}) => {
|
|
47114
|
-
const [se, fe] =
|
|
47114
|
+
const [se, fe] = H(!1), ve = K(null), be = e.find((qe) => qe.value === t);
|
|
47115
47115
|
O(() => {
|
|
47116
47116
|
const qe = (bt) => {
|
|
47117
47117
|
ve.current && !ve.current.contains(bt.target) && fe(!1);
|
|
@@ -47145,17 +47145,17 @@ const Qwe = ({
|
|
|
47145
47145
|
border: P,
|
|
47146
47146
|
borderColor: l ? S || "var(--select-error-color, #dc3545)" : C || "var(--select-button-border-color, #dee2e6)",
|
|
47147
47147
|
color: I || "var(--select-button-text-color, #212529)",
|
|
47148
|
-
borderRadius:
|
|
47149
|
-
borderWidth:
|
|
47150
|
-
transition: `all ${
|
|
47148
|
+
borderRadius: D,
|
|
47149
|
+
borderWidth: B,
|
|
47150
|
+
transition: `all ${q} ${F}`,
|
|
47151
47151
|
fontWeight: f
|
|
47152
47152
|
}, Re = {
|
|
47153
47153
|
backgroundColor: x || "var(--select-dropdown-bg-color, #ffffff)",
|
|
47154
47154
|
maxHeight: u,
|
|
47155
|
-
borderRadius:
|
|
47156
|
-
borderWidth:
|
|
47155
|
+
borderRadius: D,
|
|
47156
|
+
borderWidth: B,
|
|
47157
47157
|
boxShadow: V,
|
|
47158
|
-
transition: `opacity ${
|
|
47158
|
+
transition: `opacity ${q} ${F}, transform ${q} ${F}`,
|
|
47159
47159
|
position: "absolute",
|
|
47160
47160
|
top: oe === "bottom" ? "100%" : "auto",
|
|
47161
47161
|
bottom: oe === "top" ? "100%" : "auto",
|
|
@@ -47171,23 +47171,23 @@ const Qwe = ({
|
|
|
47171
47171
|
color: N || "var(--select-icon-color, #6c757d)",
|
|
47172
47172
|
"--icon-rotation": se ? "rotate(180deg)" : "rotate(0deg)"
|
|
47173
47173
|
}, He = {
|
|
47174
|
-
color:
|
|
47174
|
+
color: A || "var(--select-label-color, #212529)",
|
|
47175
47175
|
marginBottom: k
|
|
47176
47176
|
}, nt = {
|
|
47177
|
-
color:
|
|
47177
|
+
color: z || "var(--select-placeholder-color, #6c757d)"
|
|
47178
47178
|
}, Gt = {
|
|
47179
47179
|
color: S || "var(--select-error-color, #dc3545)",
|
|
47180
47180
|
marginTop: v
|
|
47181
47181
|
}, pe = {
|
|
47182
47182
|
padding: _,
|
|
47183
|
-
transition: `background-color ${
|
|
47183
|
+
transition: `background-color ${q} ${F}`,
|
|
47184
47184
|
fontWeight: f
|
|
47185
47185
|
}, De = {
|
|
47186
47186
|
gap: w
|
|
47187
47187
|
}, yi = {
|
|
47188
|
-
"--scrollbar-width":
|
|
47189
|
-
"--scrollbar-track-color":
|
|
47190
|
-
"--scrollbar-thumb-color":
|
|
47188
|
+
"--scrollbar-width": T,
|
|
47189
|
+
"--scrollbar-track-color": E,
|
|
47190
|
+
"--scrollbar-thumb-color": Q
|
|
47191
47191
|
};
|
|
47192
47192
|
return /* @__PURE__ */ m(
|
|
47193
47193
|
"div",
|
|
@@ -47432,17 +47432,17 @@ const Qwe = ({
|
|
|
47432
47432
|
gap: $ = "",
|
|
47433
47433
|
disabled: N = !1,
|
|
47434
47434
|
positionRelative: S = "",
|
|
47435
|
-
justifyContent:
|
|
47436
|
-
headerLineHeight:
|
|
47435
|
+
justifyContent: A = "",
|
|
47436
|
+
headerLineHeight: z = "",
|
|
47437
47437
|
headerMinHeight: P = "",
|
|
47438
|
-
contentSpace:
|
|
47439
|
-
titleKey:
|
|
47438
|
+
contentSpace: D = "",
|
|
47439
|
+
titleKey: B,
|
|
47440
47440
|
subtitleKey: V,
|
|
47441
|
-
subtitleA11yKey:
|
|
47442
|
-
maxBadgeKey:
|
|
47443
|
-
maxBadgeA11yKey:
|
|
47444
|
-
predictionKey:
|
|
47445
|
-
predictionA11yKey:
|
|
47441
|
+
subtitleA11yKey: q,
|
|
47442
|
+
maxBadgeKey: F,
|
|
47443
|
+
maxBadgeA11yKey: T,
|
|
47444
|
+
predictionKey: E,
|
|
47445
|
+
predictionA11yKey: Q,
|
|
47446
47446
|
realisedKey: W,
|
|
47447
47447
|
realisedA11yKey: Y
|
|
47448
47448
|
}) => {
|
|
@@ -47453,12 +47453,12 @@ const Qwe = ({
|
|
|
47453
47453
|
"div",
|
|
47454
47454
|
{
|
|
47455
47455
|
className: `${Ce.content} ${Ce[$]} ${ve ? "" : Ce.singleValue} content-indicator-v2`,
|
|
47456
|
-
style: { justifyContent:
|
|
47456
|
+
style: { justifyContent: D },
|
|
47457
47457
|
children: [
|
|
47458
47458
|
/* @__PURE__ */ r(
|
|
47459
47459
|
"div",
|
|
47460
47460
|
{
|
|
47461
|
-
className: `${Ce.header} ${Ce[
|
|
47461
|
+
className: `${Ce.header} ${Ce[A]} ${Ce[z]} header-indicator-v2`,
|
|
47462
47462
|
style: { minHeight: P },
|
|
47463
47463
|
children: /* @__PURE__ */ r(
|
|
47464
47464
|
"h6",
|
|
@@ -47469,7 +47469,7 @@ const Qwe = ({
|
|
|
47469
47469
|
fontWeight: se(M),
|
|
47470
47470
|
color: l
|
|
47471
47471
|
},
|
|
47472
|
-
title: ce(e,
|
|
47472
|
+
title: ce(e, B),
|
|
47473
47473
|
children: n
|
|
47474
47474
|
}
|
|
47475
47475
|
)
|
|
@@ -47483,7 +47483,7 @@ const Qwe = ({
|
|
|
47483
47483
|
fontSize: X(_),
|
|
47484
47484
|
fontWeight: se(w)
|
|
47485
47485
|
},
|
|
47486
|
-
title: ce(e, V,
|
|
47486
|
+
title: ce(e, V, q),
|
|
47487
47487
|
children: o
|
|
47488
47488
|
}
|
|
47489
47489
|
) }) : null,
|
|
@@ -47493,7 +47493,7 @@ const Qwe = ({
|
|
|
47493
47493
|
"span",
|
|
47494
47494
|
{
|
|
47495
47495
|
className: `${Ce.maxBadge} max-badge-indicator-v2`,
|
|
47496
|
-
title: ce(e,
|
|
47496
|
+
title: ce(e, F, T),
|
|
47497
47497
|
children: "MAX"
|
|
47498
47498
|
}
|
|
47499
47499
|
),
|
|
@@ -47534,7 +47534,7 @@ const Qwe = ({
|
|
|
47534
47534
|
fontWeight: se(x),
|
|
47535
47535
|
color: u || void 0
|
|
47536
47536
|
},
|
|
47537
|
-
title: ce(e,
|
|
47537
|
+
title: ce(e, E, Q),
|
|
47538
47538
|
children: s
|
|
47539
47539
|
}
|
|
47540
47540
|
)
|
|
@@ -47700,51 +47700,51 @@ const Qwe = ({
|
|
|
47700
47700
|
contentHeaderAction: $,
|
|
47701
47701
|
contentFooterAction: N,
|
|
47702
47702
|
footerOverride: S,
|
|
47703
|
-
hideFooter:
|
|
47704
|
-
hideOverlay:
|
|
47703
|
+
hideFooter: A = !1,
|
|
47704
|
+
hideOverlay: z = !1,
|
|
47705
47705
|
position: P,
|
|
47706
|
-
a11yConfig:
|
|
47706
|
+
a11yConfig: D
|
|
47707
47707
|
}) => {
|
|
47708
|
-
const [
|
|
47708
|
+
const [B, V] = H(!1), q = K(null);
|
|
47709
47709
|
if (O(() => {
|
|
47710
|
-
if (!c || !
|
|
47711
|
-
const
|
|
47712
|
-
(
|
|
47710
|
+
if (!c || !z) return;
|
|
47711
|
+
const T = (E) => {
|
|
47712
|
+
(E.type === "scroll" || E.type === "wheel" || E.type === "touchmove" || q.current && !q.current.contains(E.target)) && s();
|
|
47713
47713
|
};
|
|
47714
|
-
return document.addEventListener("mousedown",
|
|
47715
|
-
document.removeEventListener("mousedown",
|
|
47714
|
+
return document.addEventListener("mousedown", T), document.addEventListener("scroll", T, !0), document.addEventListener("wheel", T, { passive: !0, capture: !0 }), document.addEventListener("touchmove", T, { passive: !0, capture: !0 }), () => {
|
|
47715
|
+
document.removeEventListener("mousedown", T), document.removeEventListener("scroll", T, !0), document.removeEventListener("wheel", T, !0), document.removeEventListener("touchmove", T, !0);
|
|
47716
47716
|
};
|
|
47717
|
-
}, [c,
|
|
47718
|
-
const
|
|
47717
|
+
}, [c, z, s]), !c) return null;
|
|
47718
|
+
const F = (T, E = !1) => /* @__PURE__ */ r(
|
|
47719
47719
|
$C,
|
|
47720
47720
|
{
|
|
47721
|
-
onClick:
|
|
47721
|
+
onClick: T.disabled ? void 0 : T.onClick,
|
|
47722
47722
|
className: Ue.baseButton,
|
|
47723
|
-
disabled:
|
|
47723
|
+
disabled: T.disabled,
|
|
47724
47724
|
style: {
|
|
47725
|
-
background:
|
|
47726
|
-
color:
|
|
47727
|
-
border:
|
|
47728
|
-
cursor:
|
|
47729
|
-
filter:
|
|
47730
|
-
opacity:
|
|
47725
|
+
background: T.backgroundColor ?? (E ? "#008FBB" : "#ffffff"),
|
|
47726
|
+
color: T.textColor ?? (E ? "#ffffff" : "#374151"),
|
|
47727
|
+
border: T.borderColor ? `1px solid ${T.borderColor}` : E ? "none" : void 0,
|
|
47728
|
+
cursor: T.disabled ? T.cursor ?? "not-allowed" : T.cursor ?? "pointer",
|
|
47729
|
+
filter: T.disabled ? T.filter ?? "grayscale(0.5)" : T.filter ?? "none",
|
|
47730
|
+
opacity: T.disabled ? 0.65 : 1
|
|
47731
47731
|
},
|
|
47732
|
-
title: ce(
|
|
47733
|
-
children:
|
|
47732
|
+
title: ce(T.a11yConfig, T.text),
|
|
47733
|
+
children: T.text
|
|
47734
47734
|
}
|
|
47735
47735
|
);
|
|
47736
|
-
return /* @__PURE__ */ r("div", { className:
|
|
47736
|
+
return /* @__PURE__ */ r("div", { className: z ? Ue.noOverlay : Ue.overlay, onClick: s, children: /* @__PURE__ */ m(
|
|
47737
47737
|
"div",
|
|
47738
47738
|
{
|
|
47739
|
-
ref:
|
|
47740
|
-
className: `${Ue.container} ${
|
|
47741
|
-
onClick: (
|
|
47739
|
+
ref: q,
|
|
47740
|
+
className: `${Ue.container} ${B ? Ue.fullscreen : ""} ${z ? Ue.contained : ""}`,
|
|
47741
|
+
onClick: (T) => T.stopPropagation(),
|
|
47742
47742
|
style: {
|
|
47743
|
-
width:
|
|
47744
|
-
maxWidth:
|
|
47745
|
-
height:
|
|
47746
|
-
maxHeight:
|
|
47747
|
-
borderRadius:
|
|
47743
|
+
width: B ? "100%" : _,
|
|
47744
|
+
maxWidth: B ? "none" : w,
|
|
47745
|
+
height: B ? "100%" : L,
|
|
47746
|
+
maxHeight: B ? "100%" : C,
|
|
47747
|
+
borderRadius: B ? "0" : I,
|
|
47748
47748
|
overflow: b,
|
|
47749
47749
|
...P || {}
|
|
47750
47750
|
},
|
|
@@ -47758,7 +47758,7 @@ const Qwe = ({
|
|
|
47758
47758
|
fontWeight: i,
|
|
47759
47759
|
color: t
|
|
47760
47760
|
},
|
|
47761
|
-
title: ce(
|
|
47761
|
+
title: ce(D, e),
|
|
47762
47762
|
children: e
|
|
47763
47763
|
}
|
|
47764
47764
|
),
|
|
@@ -47766,10 +47766,10 @@ const Qwe = ({
|
|
|
47766
47766
|
!f && /* @__PURE__ */ r(
|
|
47767
47767
|
"button",
|
|
47768
47768
|
{
|
|
47769
|
-
onClick: () => V(!
|
|
47769
|
+
onClick: () => V(!B),
|
|
47770
47770
|
className: Ue.iconButton,
|
|
47771
|
-
title:
|
|
47772
|
-
children:
|
|
47771
|
+
title: B ? "Réduire" : "Agrandir",
|
|
47772
|
+
children: B ? /* @__PURE__ */ r(X9e, { width: 22, height: 22, fill: t }) : /* @__PURE__ */ r(G9e, { width: 22, height: 22, fill: t })
|
|
47773
47773
|
}
|
|
47774
47774
|
),
|
|
47775
47775
|
/* @__PURE__ */ r("button", { onClick: s, className: Ue.iconButton, title: "Fermer", children: /* @__PURE__ */ r(Qz, { width: 22, height: 22, fill: t }) })
|
|
@@ -47792,7 +47792,7 @@ const Qwe = ({
|
|
|
47792
47792
|
}
|
|
47793
47793
|
)
|
|
47794
47794
|
] }),
|
|
47795
|
-
!
|
|
47795
|
+
!A && /* @__PURE__ */ r("footer", { className: Ue.footer, style: { backgroundColor: n }, children: S !== void 0 ? S : /* @__PURE__ */ m(Ve, { children: [
|
|
47796
47796
|
v && /* @__PURE__ */ r(
|
|
47797
47797
|
$C,
|
|
47798
47798
|
{
|
|
@@ -47808,8 +47808,8 @@ const Qwe = ({
|
|
|
47808
47808
|
}
|
|
47809
47809
|
),
|
|
47810
47810
|
N,
|
|
47811
|
-
|
|
47812
|
-
|
|
47811
|
+
F(d),
|
|
47812
|
+
F(l, !0)
|
|
47813
47813
|
] }) })
|
|
47814
47814
|
]
|
|
47815
47815
|
}
|
|
@@ -47893,50 +47893,50 @@ const Qwe = ({
|
|
|
47893
47893
|
onToggle: b,
|
|
47894
47894
|
a11yConfig: $
|
|
47895
47895
|
}) => {
|
|
47896
|
-
const [N, S] =
|
|
47897
|
-
|
|
47898
|
-
},
|
|
47896
|
+
const [N, S] = H(!1), [A, z] = H(null), [P, D] = H(null), [B, V] = H(null), [q, F] = H(null), T = () => {
|
|
47897
|
+
F((J) => J === null ? "asc" : J === "asc" ? "desc" : null), b && b();
|
|
47898
|
+
}, E = xe(() => q ? [...e].sort((J, re) => {
|
|
47899
47899
|
const ke = J.title.toLowerCase(), Te = re.title.toLowerCase();
|
|
47900
|
-
return
|
|
47901
|
-
}) : e, [e,
|
|
47900
|
+
return q === "asc" ? ke.localeCompare(Te) : Te.localeCompare(ke);
|
|
47901
|
+
}) : e, [e, q]), Q = () => S(!0), W = () => S(!1), Y = (J) => {
|
|
47902
47902
|
const re = J.title?.trim();
|
|
47903
47903
|
re && o && o(re), W();
|
|
47904
47904
|
}, oe = (J, re) => {
|
|
47905
|
-
J.stopPropagation(),
|
|
47906
|
-
}, U = () =>
|
|
47905
|
+
J.stopPropagation(), z(re);
|
|
47906
|
+
}, U = () => z(null), ae = (J) => {
|
|
47907
47907
|
const re = J.title?.trim();
|
|
47908
|
-
|
|
47908
|
+
A && re && c && c(A, re), U();
|
|
47909
47909
|
}, ye = (J, re) => {
|
|
47910
47910
|
J.stopPropagation(), s && s(re);
|
|
47911
47911
|
}, X = (J, re) => {
|
|
47912
47912
|
J.stopPropagation(), i && i(re);
|
|
47913
47913
|
}, se = (J, re) => {
|
|
47914
|
-
|
|
47914
|
+
D(re), J.dataTransfer.effectAllowed = "move";
|
|
47915
47915
|
}, fe = (J, re) => {
|
|
47916
|
-
P !== null && (J.preventDefault(), J.dataTransfer.dropEffect = "move", re !==
|
|
47916
|
+
P !== null && (J.preventDefault(), J.dataTransfer.dropEffect = "move", re !== B && V(re));
|
|
47917
47917
|
}, ve = (J, re) => {
|
|
47918
47918
|
if (J.preventDefault(), P === null || P === re || !d) return;
|
|
47919
|
-
const ke = [...
|
|
47920
|
-
ke.splice(re, 0, Te),
|
|
47919
|
+
const ke = [...E], [Te] = ke.splice(P, 1);
|
|
47920
|
+
ke.splice(re, 0, Te), F(null), d(ke), D(null), V(null);
|
|
47921
47921
|
}, be = () => {
|
|
47922
|
-
|
|
47922
|
+
D(null), V(null);
|
|
47923
47923
|
};
|
|
47924
47924
|
return /* @__PURE__ */ m("div", { className: "module-sidebar-v2", children: [
|
|
47925
47925
|
/* @__PURE__ */ r("div", { className: "sidebar-header", children: _ ? /* @__PURE__ */ m(Ve, { children: [
|
|
47926
|
-
/* @__PURE__ */ m("div", { className: "header-label-container", onClick:
|
|
47926
|
+
/* @__PURE__ */ m("div", { className: "header-label-container", onClick: T, children: [
|
|
47927
47927
|
/* @__PURE__ */ r("div", { className: "header-label", title: ce($, w), children: _ }),
|
|
47928
|
-
|
|
47928
|
+
q === "asc" ? /* @__PURE__ */ r(zi, { size: 12, className: "header-toggle-icon", strokeWidth: 3 }) : /* @__PURE__ */ r(Ai, { size: 12, className: "header-toggle-icon", strokeWidth: 3 })
|
|
47929
47929
|
] }),
|
|
47930
|
-
L && /* @__PURE__ */ r(si, { size: 18, className: "add-view-icon", onClick:
|
|
47930
|
+
L && /* @__PURE__ */ r(si, { size: 18, className: "add-view-icon", onClick: Q })
|
|
47931
47931
|
] }) : /* @__PURE__ */ m(Ve, { children: [
|
|
47932
47932
|
/* @__PURE__ */ m("div", { className: "header-title", title: ce($, h), children: [
|
|
47933
|
-
I && (
|
|
47933
|
+
I && (q === "asc" ? /* @__PURE__ */ r(
|
|
47934
47934
|
zi,
|
|
47935
47935
|
{
|
|
47936
47936
|
size: 12,
|
|
47937
47937
|
className: "header-toggle-icon default-toggle",
|
|
47938
47938
|
strokeWidth: 3,
|
|
47939
|
-
onClick:
|
|
47939
|
+
onClick: T
|
|
47940
47940
|
}
|
|
47941
47941
|
) : /* @__PURE__ */ r(
|
|
47942
47942
|
Ai,
|
|
@@ -47944,19 +47944,19 @@ const Qwe = ({
|
|
|
47944
47944
|
size: 12,
|
|
47945
47945
|
className: "header-toggle-icon default-toggle",
|
|
47946
47946
|
strokeWidth: 3,
|
|
47947
|
-
onClick:
|
|
47947
|
+
onClick: T
|
|
47948
47948
|
}
|
|
47949
47949
|
)),
|
|
47950
47950
|
l,
|
|
47951
47951
|
" ",
|
|
47952
|
-
C && `(${
|
|
47952
|
+
C && `(${E.length})`
|
|
47953
47953
|
] }),
|
|
47954
|
-
L && /* @__PURE__ */ r(si, { size: 18, className: "add-view-icon", onClick:
|
|
47954
|
+
L && /* @__PURE__ */ r(si, { size: 18, className: "add-view-icon", onClick: Q })
|
|
47955
47955
|
] }) }),
|
|
47956
|
-
/* @__PURE__ */ r("div", { className: "module-list", children:
|
|
47956
|
+
/* @__PURE__ */ r("div", { className: "module-list", children: E.map((J, re) => /* @__PURE__ */ m(
|
|
47957
47957
|
"div",
|
|
47958
47958
|
{
|
|
47959
|
-
className: `module-item ${J.id === t ? "selected" : ""} ${
|
|
47959
|
+
className: `module-item ${J.id === t ? "selected" : ""} ${B === re && P !== re ? "drag-over" : ""} ${P === re ? "dragging" : ""}`,
|
|
47960
47960
|
onClick: () => n && n(J),
|
|
47961
47961
|
draggable: !!d,
|
|
47962
47962
|
onDragStart: d ? (ke) => se(ke, re) : void 0,
|
|
@@ -48013,14 +48013,14 @@ const Qwe = ({
|
|
|
48013
48013
|
cancelText: M
|
|
48014
48014
|
}
|
|
48015
48015
|
),
|
|
48016
|
-
|
|
48016
|
+
A && /* @__PURE__ */ r(
|
|
48017
48017
|
Bi,
|
|
48018
48018
|
{
|
|
48019
|
-
isOpen: !!
|
|
48019
|
+
isOpen: !!A,
|
|
48020
48020
|
onClose: U,
|
|
48021
48021
|
onSave: ae,
|
|
48022
48022
|
title: f,
|
|
48023
|
-
initialValues: { title:
|
|
48023
|
+
initialValues: { title: A.title },
|
|
48024
48024
|
fields: [
|
|
48025
48025
|
{ name: "title", label: g, placeholder: k }
|
|
48026
48026
|
],
|
|
@@ -48072,7 +48072,7 @@ const Qwe = ({
|
|
|
48072
48072
|
hoverBackgroundColor: M,
|
|
48073
48073
|
selectedBackgroundColor: _
|
|
48074
48074
|
}) => {
|
|
48075
|
-
const [w, L] =
|
|
48075
|
+
const [w, L] = H(d ?? ""), C = K(null);
|
|
48076
48076
|
O(() => {
|
|
48077
48077
|
d !== void 0 && L(d);
|
|
48078
48078
|
}, [d]), O(() => () => {
|
|
@@ -48126,104 +48126,106 @@ const Qwe = ({
|
|
|
48126
48126
|
onChange: o,
|
|
48127
48127
|
onRename: i,
|
|
48128
48128
|
onDelete: c,
|
|
48129
|
-
|
|
48129
|
+
showEditIcon: s = !0,
|
|
48130
|
+
showDeleteIcon: d = !0,
|
|
48131
|
+
a11yConfig: l
|
|
48130
48132
|
}) => {
|
|
48131
|
-
const [
|
|
48132
|
-
const
|
|
48133
|
-
return Array.isArray(t) && t.forEach((
|
|
48134
|
-
|
|
48135
|
-
}),
|
|
48136
|
-
}, [t]),
|
|
48137
|
-
|
|
48138
|
-
},
|
|
48139
|
-
|
|
48140
|
-
},
|
|
48141
|
-
const
|
|
48142
|
-
|
|
48143
|
-
}, N = () => {
|
|
48144
|
-
u && (o(u, f), y(null), g(""));
|
|
48145
|
-
}, S = (T) => {
|
|
48146
|
-
T.key === "Enter" ? N() : T.key === "Escape" && (y(null), g(""));
|
|
48147
|
-
}, q = () => {
|
|
48148
|
-
v(!0), I.length > 0 && _(I[0].toUpperCase()), L("");
|
|
48133
|
+
const [h, p] = H(!1), [u, y] = H(e), [f, g] = H(null), [k, v] = H(""), [M, _] = H(!1), [w, L] = H(""), [C, I] = H(""), x = he.useMemo(() => {
|
|
48134
|
+
const q = {};
|
|
48135
|
+
return Array.isArray(t) && t.forEach((F) => {
|
|
48136
|
+
F && F.language && (q[F.language.toUpperCase()] = F.value);
|
|
48137
|
+
}), q;
|
|
48138
|
+
}, [t]), b = he.useMemo(() => n, [n]), $ = () => {
|
|
48139
|
+
p(!1), u !== e && u.trim() !== "" ? i && i(u.trim()) : y(e);
|
|
48140
|
+
}, N = (q) => {
|
|
48141
|
+
q.key === "Enter" ? $() : q.key === "Escape" && (y(e), p(!1));
|
|
48142
|
+
}, S = (q) => {
|
|
48143
|
+
const F = q.toUpperCase();
|
|
48144
|
+
g(F), v(x[F] || "");
|
|
48149
48145
|
}, A = () => {
|
|
48150
|
-
|
|
48146
|
+
f && (o(f, k), g(null), v(""));
|
|
48147
|
+
}, z = (q) => {
|
|
48148
|
+
q.key === "Enter" ? A() : q.key === "Escape" && (g(null), v(""));
|
|
48151
48149
|
}, P = () => {
|
|
48152
|
-
|
|
48153
|
-
},
|
|
48154
|
-
|
|
48150
|
+
_(!0), b.length > 0 && L(b[0].toUpperCase()), I("");
|
|
48151
|
+
}, D = () => {
|
|
48152
|
+
w && C.trim() && (o(w, C.trim()), _(!1), L(""), I(""));
|
|
48153
|
+
}, B = () => {
|
|
48154
|
+
_(!1), L(""), I("");
|
|
48155
|
+
}, V = (q) => {
|
|
48156
|
+
q.key === "Enter" ? D() : q.key === "Escape" && B();
|
|
48155
48157
|
};
|
|
48156
48158
|
return /* @__PURE__ */ m("div", { className: "translation-key-v2", children: [
|
|
48157
48159
|
/* @__PURE__ */ m("div", { className: "header", children: [
|
|
48158
|
-
|
|
48160
|
+
h ? /* @__PURE__ */ r(
|
|
48159
48161
|
"input",
|
|
48160
48162
|
{
|
|
48161
48163
|
className: "key-name-input",
|
|
48162
|
-
value:
|
|
48163
|
-
onChange: (
|
|
48164
|
-
onBlur:
|
|
48165
|
-
onKeyDown:
|
|
48164
|
+
value: u,
|
|
48165
|
+
onChange: (q) => y(q.target.value),
|
|
48166
|
+
onBlur: $,
|
|
48167
|
+
onKeyDown: N,
|
|
48166
48168
|
autoFocus: !0
|
|
48167
48169
|
}
|
|
48168
|
-
) : /* @__PURE__ */ r("h3", { className: "header-title", title: ce(
|
|
48170
|
+
) : /* @__PURE__ */ r("h3", { className: "header-title", title: ce(l, e), children: e }),
|
|
48169
48171
|
/* @__PURE__ */ m("div", { className: "header-actions", children: [
|
|
48170
|
-
/* @__PURE__ */ r(Bt, { size: 16, className: "action-icon edit", onClick: () =>
|
|
48171
|
-
/* @__PURE__ */ r(Pt, { size: 16, className: "action-icon delete", onClick: c })
|
|
48172
|
+
s && /* @__PURE__ */ r(Bt, { size: 16, className: "action-icon edit", onClick: () => p(!0) }),
|
|
48173
|
+
d && /* @__PURE__ */ r(Pt, { size: 16, className: "action-icon delete", onClick: c })
|
|
48172
48174
|
] })
|
|
48173
48175
|
] }),
|
|
48174
48176
|
/* @__PURE__ */ m("div", { className: "translations-list", children: [
|
|
48175
|
-
n.map((
|
|
48176
|
-
const
|
|
48177
|
+
n.map((q) => {
|
|
48178
|
+
const F = q.toUpperCase(), T = x[F] || "";
|
|
48177
48179
|
return /* @__PURE__ */ m("div", { className: "lang-row", children: [
|
|
48178
|
-
/* @__PURE__ */ r("div", { className: "lang-label", children:
|
|
48179
|
-
|
|
48180
|
+
/* @__PURE__ */ r("div", { className: "lang-label", children: F }),
|
|
48181
|
+
f === F ? /* @__PURE__ */ r(
|
|
48180
48182
|
"input",
|
|
48181
48183
|
{
|
|
48182
48184
|
className: "translation-input editing",
|
|
48183
|
-
value:
|
|
48184
|
-
onChange: (
|
|
48185
|
-
onBlur:
|
|
48186
|
-
onKeyDown:
|
|
48185
|
+
value: k,
|
|
48186
|
+
onChange: (Q) => v(Q.target.value),
|
|
48187
|
+
onBlur: A,
|
|
48188
|
+
onKeyDown: z,
|
|
48187
48189
|
placeholder: "Entrez la traduction...",
|
|
48188
48190
|
autoFocus: !0
|
|
48189
48191
|
}
|
|
48190
48192
|
) : /* @__PURE__ */ r(
|
|
48191
48193
|
"div",
|
|
48192
48194
|
{
|
|
48193
|
-
className: `translation-value ${
|
|
48194
|
-
onClick: () =>
|
|
48195
|
+
className: `translation-value ${T ? "" : "empty"}`,
|
|
48196
|
+
onClick: () => S(q),
|
|
48195
48197
|
title: "Cliquer pour éditer",
|
|
48196
|
-
children:
|
|
48198
|
+
children: T || "Cliquer pour ajouter..."
|
|
48197
48199
|
}
|
|
48198
48200
|
)
|
|
48199
|
-
] },
|
|
48201
|
+
] }, q);
|
|
48200
48202
|
}),
|
|
48201
|
-
|
|
48203
|
+
M ? /* @__PURE__ */ m("div", { className: "lang-row add-row", children: [
|
|
48202
48204
|
/* @__PURE__ */ r(
|
|
48203
48205
|
"select",
|
|
48204
48206
|
{
|
|
48205
48207
|
className: "lang-select",
|
|
48206
|
-
value:
|
|
48207
|
-
onChange: (
|
|
48208
|
-
children:
|
|
48208
|
+
value: w,
|
|
48209
|
+
onChange: (q) => L(q.target.value),
|
|
48210
|
+
children: b.map((q) => /* @__PURE__ */ r("option", { value: q.toUpperCase(), children: q.toUpperCase() }, q))
|
|
48209
48211
|
}
|
|
48210
48212
|
),
|
|
48211
48213
|
/* @__PURE__ */ r(
|
|
48212
48214
|
"input",
|
|
48213
48215
|
{
|
|
48214
48216
|
className: "translation-input editing",
|
|
48215
|
-
value:
|
|
48216
|
-
onChange: (
|
|
48217
|
-
onKeyDown:
|
|
48217
|
+
value: C,
|
|
48218
|
+
onChange: (q) => I(q.target.value),
|
|
48219
|
+
onKeyDown: V,
|
|
48218
48220
|
placeholder: "Mot",
|
|
48219
48221
|
autoFocus: !0
|
|
48220
48222
|
}
|
|
48221
48223
|
),
|
|
48222
48224
|
/* @__PURE__ */ m("div", { className: "add-actions", children: [
|
|
48223
|
-
/* @__PURE__ */ r(rr, { size: 18, className: "action-icon confirm", onClick:
|
|
48224
|
-
/* @__PURE__ */ r(Mt, { size: 18, className: "action-icon cancel", onClick:
|
|
48225
|
+
/* @__PURE__ */ r(rr, { size: 18, className: "action-icon confirm", onClick: D }),
|
|
48226
|
+
/* @__PURE__ */ r(Mt, { size: 18, className: "action-icon cancel", onClick: B })
|
|
48225
48227
|
] })
|
|
48226
|
-
] }) :
|
|
48228
|
+
] }) : b.length > 0 && /* @__PURE__ */ m("button", { className: "add-translation-btn", onClick: P, children: [
|
|
48227
48229
|
/* @__PURE__ */ r(di, { size: 16 }),
|
|
48228
48230
|
/* @__PURE__ */ r("span", { children: "Ajouter" })
|
|
48229
48231
|
] })
|
|
@@ -48367,25 +48369,25 @@ const Qwe = ({
|
|
|
48367
48369
|
disabled: d = !1,
|
|
48368
48370
|
allowWrap: l = !1
|
|
48369
48371
|
}) => {
|
|
48370
|
-
const [h, p] =
|
|
48371
|
-
const V = new Map(e.map((
|
|
48372
|
-
return n.map((
|
|
48372
|
+
const [h, p] = H(!1), [u, y] = H(""), f = K(null), g = K(null), k = K(null), v = K(null), [M, _] = H(null), [w, L] = H(!1), C = K([]), I = K(null), x = xe(() => {
|
|
48373
|
+
const V = new Map(e.map((q) => [q.value, q]));
|
|
48374
|
+
return n.map((q) => V.get(q)).filter((q) => q !== void 0);
|
|
48373
48375
|
}, [e, n]), b = xe(
|
|
48374
48376
|
() => e.filter((V) => !n.includes(V.value)),
|
|
48375
48377
|
[e, n]
|
|
48376
48378
|
), $ = xe(() => {
|
|
48377
48379
|
let V = b;
|
|
48378
|
-
return u && (V = V.filter((
|
|
48379
|
-
if (!
|
|
48380
|
-
for (let
|
|
48380
|
+
return u && (V = V.filter((q) => q.label.toLowerCase().includes(u.toLowerCase()))), V.filter((q, F) => {
|
|
48381
|
+
if (!q.isHeader) return !0;
|
|
48382
|
+
for (let T = F + 1; T < V.length && !V[T].isHeader; T++)
|
|
48381
48383
|
return !0;
|
|
48382
48384
|
return !1;
|
|
48383
48385
|
});
|
|
48384
48386
|
}, [b, u]);
|
|
48385
48387
|
O(() => {
|
|
48386
|
-
const V = (
|
|
48387
|
-
const
|
|
48388
|
-
f.current && !f.current.contains(
|
|
48388
|
+
const V = (q) => {
|
|
48389
|
+
const F = q.target;
|
|
48390
|
+
f.current && !f.current.contains(F) && (p(!1), y(""), _(null), L(!1));
|
|
48389
48391
|
};
|
|
48390
48392
|
return document.addEventListener("mousedown", V), () => document.removeEventListener("mousedown", V);
|
|
48391
48393
|
}, []), O(() => {
|
|
@@ -48396,9 +48398,9 @@ const Qwe = ({
|
|
|
48396
48398
|
}
|
|
48397
48399
|
x.length > C.current.length && _(null);
|
|
48398
48400
|
const V = () => {
|
|
48399
|
-
const
|
|
48400
|
-
if (!
|
|
48401
|
-
const W =
|
|
48401
|
+
const E = k.current, Q = v.current;
|
|
48402
|
+
if (!E || !Q) return;
|
|
48403
|
+
const W = Q.getBoundingClientRect().width, Y = Q.querySelector(`.${ge.actions}`), oe = Y ? Y.getBoundingClientRect().width : 80, U = 56, ae = c ? 80 : 0, ye = 16, X = Array.from(E.querySelectorAll(`.${ge.tag}`));
|
|
48402
48404
|
X.length === x.length && (C.current = X.map((Le) => {
|
|
48403
48405
|
const He = Le.getBoundingClientRect(), nt = Le.scrollWidth;
|
|
48404
48406
|
return Math.max(He.width, nt, Le.offsetWidth || 0);
|
|
@@ -48429,13 +48431,13 @@ const Qwe = ({
|
|
|
48429
48431
|
re += He + be, Re++;
|
|
48430
48432
|
}
|
|
48431
48433
|
Re < x.length && Re > 0 ? _(Re) : _(null);
|
|
48432
|
-
},
|
|
48434
|
+
}, q = requestAnimationFrame(() => {
|
|
48433
48435
|
V();
|
|
48434
|
-
}),
|
|
48436
|
+
}), F = setTimeout(V, 100), T = new ResizeObserver(() => {
|
|
48435
48437
|
V();
|
|
48436
48438
|
});
|
|
48437
|
-
return v.current &&
|
|
48438
|
-
cancelAnimationFrame(
|
|
48439
|
+
return v.current && T.observe(v.current), () => {
|
|
48440
|
+
cancelAnimationFrame(q), clearTimeout(F), T.disconnect();
|
|
48439
48441
|
};
|
|
48440
48442
|
}, [x, c, h, l]);
|
|
48441
48443
|
const N = () => {
|
|
@@ -48445,17 +48447,17 @@ const Qwe = ({
|
|
|
48445
48447
|
}, S = (V) => {
|
|
48446
48448
|
if (n.includes(V.value)) return;
|
|
48447
48449
|
L(!1);
|
|
48448
|
-
const
|
|
48449
|
-
o(
|
|
48450
|
-
},
|
|
48451
|
-
V.preventDefault(), V.stopPropagation(), L((
|
|
48452
|
-
},
|
|
48453
|
-
|
|
48454
|
-
const
|
|
48455
|
-
o(
|
|
48456
|
-
},
|
|
48450
|
+
const q = [...x, V];
|
|
48451
|
+
o(q), y(""), _(null), p(!1);
|
|
48452
|
+
}, A = (V) => {
|
|
48453
|
+
V.preventDefault(), V.stopPropagation(), L((q) => !q);
|
|
48454
|
+
}, z = M != null && M < x.length ? x.slice(M) : [], P = (V, q) => {
|
|
48455
|
+
q.stopPropagation();
|
|
48456
|
+
const F = x.filter((T) => T.value !== V);
|
|
48457
|
+
o(F);
|
|
48458
|
+
}, D = (V) => {
|
|
48457
48459
|
V.stopPropagation(), o([]);
|
|
48458
|
-
},
|
|
48460
|
+
}, B = (V) => {
|
|
48459
48461
|
V.stopPropagation(), h || p(!0);
|
|
48460
48462
|
};
|
|
48461
48463
|
return /* @__PURE__ */ m(
|
|
@@ -48480,14 +48482,14 @@ const Qwe = ({
|
|
|
48480
48482
|
className: `${ge.tagsContainer} ${l ? ge.tagsContainerWrap : ""}`,
|
|
48481
48483
|
ref: k,
|
|
48482
48484
|
children: [
|
|
48483
|
-
M !== null && M > 0 ? x.slice(0, M).map((V,
|
|
48485
|
+
M !== null && M > 0 ? x.slice(0, M).map((V, q) => /* @__PURE__ */ m("div", { className: ge.tag, children: [
|
|
48484
48486
|
/* @__PURE__ */ r("div", { className: ge.tagLabel, children: /* @__PURE__ */ r("span", { children: V.label }) }),
|
|
48485
48487
|
/* @__PURE__ */ r("div", { className: ge.removeBtnContainer, children: /* @__PURE__ */ r(
|
|
48486
48488
|
"button",
|
|
48487
48489
|
{
|
|
48488
48490
|
type: "button",
|
|
48489
48491
|
className: ge.removeBtn,
|
|
48490
|
-
onClick: (
|
|
48492
|
+
onClick: (F) => P(V.value, F),
|
|
48491
48493
|
"aria-label": `Supprimer ${V.label}`,
|
|
48492
48494
|
children: /* @__PURE__ */ r("svg", { width: "10", height: "10", viewBox: "0 0 10 10", fill: "currentColor", children: /* @__PURE__ */ r(
|
|
48493
48495
|
"path",
|
|
@@ -48500,14 +48502,14 @@ const Qwe = ({
|
|
|
48500
48502
|
) })
|
|
48501
48503
|
}
|
|
48502
48504
|
) })
|
|
48503
|
-
] }, `tag-${V.value}-${
|
|
48505
|
+
] }, `tag-${V.value}-${q}`)) : x.map((V, q) => /* @__PURE__ */ m("div", { className: ge.tag, children: [
|
|
48504
48506
|
/* @__PURE__ */ r("div", { className: ge.tagLabel, children: /* @__PURE__ */ r("span", { children: V.label }) }),
|
|
48505
48507
|
/* @__PURE__ */ r("div", { className: ge.removeBtnContainer, children: /* @__PURE__ */ r(
|
|
48506
48508
|
"button",
|
|
48507
48509
|
{
|
|
48508
48510
|
type: "button",
|
|
48509
48511
|
className: ge.removeBtn,
|
|
48510
|
-
onClick: (
|
|
48512
|
+
onClick: (F) => P(V.value, F),
|
|
48511
48513
|
"aria-label": `Supprimer ${V.label}`,
|
|
48512
48514
|
children: /* @__PURE__ */ r("svg", { width: "10", height: "10", viewBox: "0 0 10 10", fill: "currentColor", children: /* @__PURE__ */ r(
|
|
48513
48515
|
"path",
|
|
@@ -48520,7 +48522,7 @@ const Qwe = ({
|
|
|
48520
48522
|
) })
|
|
48521
48523
|
}
|
|
48522
48524
|
) })
|
|
48523
|
-
] }, `tag-${V.value}-${
|
|
48525
|
+
] }, `tag-${V.value}-${q}`)),
|
|
48524
48526
|
c ? /* @__PURE__ */ r(
|
|
48525
48527
|
"input",
|
|
48526
48528
|
{
|
|
@@ -48532,7 +48534,7 @@ const Qwe = ({
|
|
|
48532
48534
|
onChange: (V) => {
|
|
48533
48535
|
y(V.target.value), h || p(!0);
|
|
48534
48536
|
},
|
|
48535
|
-
onClick:
|
|
48537
|
+
onClick: B,
|
|
48536
48538
|
disabled: d
|
|
48537
48539
|
}
|
|
48538
48540
|
) : x.length === 0 && /* @__PURE__ */ r("span", { className: ge.placeholder, children: i })
|
|
@@ -48548,20 +48550,20 @@ const Qwe = ({
|
|
|
48548
48550
|
ref: I,
|
|
48549
48551
|
type: "button",
|
|
48550
48552
|
className: ge.overflowBadge,
|
|
48551
|
-
onClick:
|
|
48552
|
-
"aria-label": `Afficher ${
|
|
48553
|
-
children:
|
|
48553
|
+
onClick: A,
|
|
48554
|
+
"aria-label": `Afficher ${z.length} éléments cachés`,
|
|
48555
|
+
children: z.length
|
|
48554
48556
|
}
|
|
48555
48557
|
),
|
|
48556
|
-
w &&
|
|
48558
|
+
w && z.length > 0 && /* @__PURE__ */ r("div", { className: ge.overflowDropdown, role: "list", "aria-label": "Éléments cachés", children: z.map((V, q) => /* @__PURE__ */ m("div", { className: ge.overflowDropdownItem, children: [
|
|
48557
48559
|
/* @__PURE__ */ r("span", { className: ge.overflowDropdownItemLabel, children: V.label }),
|
|
48558
48560
|
/* @__PURE__ */ r(
|
|
48559
48561
|
"button",
|
|
48560
48562
|
{
|
|
48561
48563
|
type: "button",
|
|
48562
48564
|
className: ge.overflowDropdownItemRemove,
|
|
48563
|
-
onClick: (
|
|
48564
|
-
|
|
48565
|
+
onClick: (F) => {
|
|
48566
|
+
F.stopPropagation(), P(V.value, F);
|
|
48565
48567
|
},
|
|
48566
48568
|
"aria-label": `Supprimer ${V.label}`,
|
|
48567
48569
|
children: /* @__PURE__ */ r("svg", { width: "10", height: "10", viewBox: "0 0 10 10", fill: "currentColor", children: /* @__PURE__ */ r(
|
|
@@ -48575,7 +48577,7 @@ const Qwe = ({
|
|
|
48575
48577
|
) })
|
|
48576
48578
|
}
|
|
48577
48579
|
)
|
|
48578
|
-
] }, `hidden-${V.value}-${
|
|
48580
|
+
] }, `hidden-${V.value}-${q}`)) })
|
|
48579
48581
|
] })
|
|
48580
48582
|
] }),
|
|
48581
48583
|
/* @__PURE__ */ m("div", { className: ge.actions, children: [
|
|
@@ -48584,7 +48586,7 @@ const Qwe = ({
|
|
|
48584
48586
|
{
|
|
48585
48587
|
type: "button",
|
|
48586
48588
|
className: ge.clearBtn,
|
|
48587
|
-
onClick:
|
|
48589
|
+
onClick: D,
|
|
48588
48590
|
"aria-label": "Effacer tout",
|
|
48589
48591
|
children: /* @__PURE__ */ r("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "currentColor", children: /* @__PURE__ */ r(
|
|
48590
48592
|
"path",
|
|
@@ -48616,7 +48618,7 @@ const Qwe = ({
|
|
|
48616
48618
|
]
|
|
48617
48619
|
}
|
|
48618
48620
|
),
|
|
48619
|
-
h && !d && /* @__PURE__ */ r("div", { className: ge.dropdown, role: "listbox", children: $.length > 0 ? $.map((V,
|
|
48621
|
+
h && !d && /* @__PURE__ */ r("div", { className: ge.dropdown, role: "listbox", children: $.length > 0 ? $.map((V, q) => /* @__PURE__ */ r(
|
|
48620
48622
|
"div",
|
|
48621
48623
|
{
|
|
48622
48624
|
className: `${ge.option} ${V.isHeader ? ge.optionHeader : ""}`,
|
|
@@ -48625,7 +48627,7 @@ const Qwe = ({
|
|
|
48625
48627
|
"aria-selected": !1,
|
|
48626
48628
|
children: V.label
|
|
48627
48629
|
},
|
|
48628
|
-
`opt-${V.value}-${
|
|
48630
|
+
`opt-${V.value}-${q}`
|
|
48629
48631
|
)) : /* @__PURE__ */ r("div", { className: ge.noOptions, children: t }) })
|
|
48630
48632
|
]
|
|
48631
48633
|
}
|
|
@@ -48899,7 +48901,7 @@ const Qwe = ({
|
|
|
48899
48901
|
hideDonut: v = !0,
|
|
48900
48902
|
hideColorIndicator: M = !1
|
|
48901
48903
|
}) => {
|
|
48902
|
-
const [_, w] =
|
|
48904
|
+
const [_, w] = H(new Set(e.map((N) => N.nom))), L = (N) => {
|
|
48903
48905
|
const S = new Set(_);
|
|
48904
48906
|
S.has(N) ? S.size > 1 && S.delete(N) : S.add(N), w(S);
|
|
48905
48907
|
}, C = {
|
|
@@ -48919,20 +48921,20 @@ const Qwe = ({
|
|
|
48919
48921
|
...N,
|
|
48920
48922
|
displayValue: _.has(N.nom) ? N.value : 0
|
|
48921
48923
|
})), [e, _]), x = xe(() => e.every((N) => N.value === 0), [e]), b = xe(() => x ? 1 : I.reduce((N, S) => N + S.displayValue, 0) || 1, [x, I]), $ = he.useCallback(
|
|
48922
|
-
({ cx: N, cy: S, midAngle:
|
|
48923
|
-
if (
|
|
48924
|
-
const
|
|
48924
|
+
({ cx: N, cy: S, midAngle: A, innerRadius: z, outerRadius: P, value: D }) => {
|
|
48925
|
+
if (D === 0 || x) return null;
|
|
48926
|
+
const B = z + (P - z) * 0.5, V = N + B * Math.cos(-A * Pq), q = S + B * Math.sin(-A * Pq), F = Math.round(D / b * 100);
|
|
48925
48927
|
return /* @__PURE__ */ r(
|
|
48926
48928
|
QV,
|
|
48927
48929
|
{
|
|
48928
48930
|
x: V,
|
|
48929
|
-
y:
|
|
48931
|
+
y: q,
|
|
48930
48932
|
fill: "white",
|
|
48931
48933
|
textAnchor: "middle",
|
|
48932
48934
|
dominantBaseline: "central",
|
|
48933
48935
|
fontSize: 12,
|
|
48934
48936
|
fontWeight: "bold",
|
|
48935
|
-
children: `${
|
|
48937
|
+
children: `${F}%`
|
|
48936
48938
|
}
|
|
48937
48939
|
);
|
|
48938
48940
|
},
|
|
@@ -48960,11 +48962,11 @@ const Qwe = ({
|
|
|
48960
48962
|
}
|
|
48961
48963
|
) }) }) }),
|
|
48962
48964
|
/* @__PURE__ */ r("div", { className: st.legend, children: e.map((N, S) => {
|
|
48963
|
-
const
|
|
48965
|
+
const A = _.has(N.nom);
|
|
48964
48966
|
return /* @__PURE__ */ m(
|
|
48965
48967
|
"div",
|
|
48966
48968
|
{
|
|
48967
|
-
className: `${st.legendItem} ${!v && !
|
|
48969
|
+
className: `${st.legendItem} ${!v && !A ? st.inactive : ""}`,
|
|
48968
48970
|
onClick: () => L(N.nom),
|
|
48969
48971
|
style: { cursor: "pointer", transition: "opacity 0.2s" },
|
|
48970
48972
|
children: [
|
|
@@ -48975,17 +48977,17 @@ const Qwe = ({
|
|
|
48975
48977
|
className: st.colorIndicator,
|
|
48976
48978
|
style: {
|
|
48977
48979
|
backgroundColor: N.color,
|
|
48978
|
-
opacity: v ||
|
|
48980
|
+
opacity: v || A ? 1 : 0.3
|
|
48979
48981
|
}
|
|
48980
48982
|
}
|
|
48981
48983
|
),
|
|
48982
|
-
/* @__PURE__ */ r("span", { className: st.label, style: { opacity: v ||
|
|
48984
|
+
/* @__PURE__ */ r("span", { className: st.label, style: { opacity: v || A ? 1 : 0.5 }, children: N.nom })
|
|
48983
48985
|
] }),
|
|
48984
48986
|
/* @__PURE__ */ m(
|
|
48985
48987
|
"div",
|
|
48986
48988
|
{
|
|
48987
48989
|
className: st.rightSection,
|
|
48988
|
-
style: { opacity: v ||
|
|
48990
|
+
style: { opacity: v || A ? 1 : 0.5 },
|
|
48989
48991
|
children: [
|
|
48990
48992
|
/* @__PURE__ */ m("div", { className: st.ratio, children: [
|
|
48991
48993
|
/* @__PURE__ */ r("span", { className: st.value1, children: N.value1 }),
|
|
@@ -49285,7 +49287,7 @@ const mLe = ({
|
|
|
49285
49287
|
activeBackgroundColor: _ = "#cce7f2",
|
|
49286
49288
|
hoverBackgroundColor: w = "#f5f8fa"
|
|
49287
49289
|
}) => {
|
|
49288
|
-
const [L, C] =
|
|
49290
|
+
const [L, C] = H(
|
|
49289
49291
|
c ?? ""
|
|
49290
49292
|
), I = s ?? L, x = K(null), b = K({}), $ = (N) => {
|
|
49291
49293
|
const S = I === N ? "" : N;
|
|
@@ -49294,11 +49296,11 @@ const mLe = ({
|
|
|
49294
49296
|
return O(() => {
|
|
49295
49297
|
const N = x.current, S = I ? b.current[I] : null;
|
|
49296
49298
|
if (!N || !S) return;
|
|
49297
|
-
const
|
|
49298
|
-
|
|
49299
|
+
const A = N.getBoundingClientRect(), z = S.getBoundingClientRect();
|
|
49300
|
+
z.bottom > A.bottom && N.scrollBy({
|
|
49299
49301
|
top: Math.min(
|
|
49300
|
-
|
|
49301
|
-
|
|
49302
|
+
z.bottom - A.bottom,
|
|
49303
|
+
z.top - A.top
|
|
49302
49304
|
),
|
|
49303
49305
|
behavior: "smooth"
|
|
49304
49306
|
});
|
|
@@ -49339,8 +49341,8 @@ const mLe = ({
|
|
|
49339
49341
|
return /* @__PURE__ */ m(
|
|
49340
49342
|
"div",
|
|
49341
49343
|
{
|
|
49342
|
-
ref: (
|
|
49343
|
-
b.current[N.id] =
|
|
49344
|
+
ref: (A) => {
|
|
49345
|
+
b.current[N.id] = A;
|
|
49344
49346
|
},
|
|
49345
49347
|
children: [
|
|
49346
49348
|
/* @__PURE__ */ r(
|
|
@@ -49355,20 +49357,20 @@ const mLe = ({
|
|
|
49355
49357
|
children: N.label
|
|
49356
49358
|
}
|
|
49357
49359
|
),
|
|
49358
|
-
S && N.items.length > 0 && /* @__PURE__ */ r(WMe, { children: N.items.map((
|
|
49360
|
+
S && N.items.length > 0 && /* @__PURE__ */ r(WMe, { children: N.items.map((A) => /* @__PURE__ */ m(
|
|
49359
49361
|
KMe,
|
|
49360
49362
|
{
|
|
49361
49363
|
type: "button",
|
|
49362
49364
|
$textColor: M,
|
|
49363
49365
|
$hoverBackgroundColor: w,
|
|
49364
|
-
onClick: () => l?.(
|
|
49366
|
+
onClick: () => l?.(A.id),
|
|
49365
49367
|
children: [
|
|
49366
|
-
/* @__PURE__ */ r(ZMe, { title:
|
|
49367
|
-
|
|
49368
|
-
!N.hideItemBadge && /* @__PURE__ */ r(ec, { $bg:
|
|
49368
|
+
/* @__PURE__ */ r(ZMe, { title: A.title ?? A.name, children: A.name }),
|
|
49369
|
+
A.distanceLabel && /* @__PURE__ */ r(XMe, { children: A.distanceLabel }),
|
|
49370
|
+
!N.hideItemBadge && /* @__PURE__ */ r(ec, { $bg: A.color ?? i[A.level], children: A.available })
|
|
49369
49371
|
]
|
|
49370
49372
|
},
|
|
49371
|
-
|
|
49373
|
+
A.id
|
|
49372
49374
|
)) })
|
|
49373
49375
|
]
|
|
49374
49376
|
},
|
|
@@ -49688,7 +49690,7 @@ const mLe = ({
|
|
|
49688
49690
|
ariaLabelledBy: f,
|
|
49689
49691
|
a11yConfig: g
|
|
49690
49692
|
}) => {
|
|
49691
|
-
const [k, v] =
|
|
49693
|
+
const [k, v] = H(!1), M = K(null), _ = (N) => {
|
|
49692
49694
|
if (N instanceof Date)
|
|
49693
49695
|
return {
|
|
49694
49696
|
h: N.getHours().toString().padStart(2, "0"),
|
|
@@ -49702,7 +49704,7 @@ const mLe = ({
|
|
|
49702
49704
|
};
|
|
49703
49705
|
}
|
|
49704
49706
|
return { h: "00", m: "00" };
|
|
49705
|
-
}, [w, L] =
|
|
49707
|
+
}, [w, L] = H("00"), [C, I] = H("00");
|
|
49706
49708
|
O(() => {
|
|
49707
49709
|
const N = _(e);
|
|
49708
49710
|
L(N.h), I(N.m);
|
|
@@ -49713,8 +49715,8 @@ const mLe = ({
|
|
|
49713
49715
|
return document.addEventListener("mousedown", N), () => document.removeEventListener("mousedown", N);
|
|
49714
49716
|
}, []);
|
|
49715
49717
|
const x = () => {
|
|
49716
|
-
const N = parseInt(w) || 0, S = parseInt(C) || 0,
|
|
49717
|
-
t(`${
|
|
49718
|
+
const N = parseInt(w) || 0, S = parseInt(C) || 0, A = Math.min(u, Math.max(0, N)).toString().padStart(2, "0"), z = Math.min(59, Math.max(0, S)).toString().padStart(2, "0");
|
|
49719
|
+
t(`${A}:${z}`), v(!1);
|
|
49718
49720
|
}, b = e ? typeof e == "string" ? e : `${e.getHours().toString().padStart(2, "0")}:${e.getMinutes().toString().padStart(2, "0")}` : "", $ = ce(g, n);
|
|
49719
49721
|
return /* @__PURE__ */ m(axe, { ref: M, $fullWidth: c, title: $, children: [
|
|
49720
49722
|
n && /* @__PURE__ */ r(nxe, { id: f ? void 0 : `${n}-label`, children: n }),
|
|
@@ -49754,8 +49756,8 @@ const mLe = ({
|
|
|
49754
49756
|
L("");
|
|
49755
49757
|
return;
|
|
49756
49758
|
}
|
|
49757
|
-
const
|
|
49758
|
-
!isNaN(
|
|
49759
|
+
const A = parseInt(S);
|
|
49760
|
+
!isNaN(A) && A >= 0 && A <= u && L(S);
|
|
49759
49761
|
},
|
|
49760
49762
|
autoFocus: !0
|
|
49761
49763
|
}
|
|
@@ -49777,8 +49779,8 @@ const mLe = ({
|
|
|
49777
49779
|
I("");
|
|
49778
49780
|
return;
|
|
49779
49781
|
}
|
|
49780
|
-
const
|
|
49781
|
-
!isNaN(
|
|
49782
|
+
const A = parseInt(S);
|
|
49783
|
+
!isNaN(A) && A >= 0 && A <= 59 && I(S.slice(-2));
|
|
49782
49784
|
}
|
|
49783
49785
|
}
|
|
49784
49786
|
) })
|
|
@@ -50243,21 +50245,21 @@ const mLe = ({
|
|
|
50243
50245
|
leftIcons: $ = [],
|
|
50244
50246
|
rightIcons: N = [],
|
|
50245
50247
|
activeView: S = "default",
|
|
50246
|
-
notesHeaderTitle:
|
|
50247
|
-
notesHeaderIcon:
|
|
50248
|
+
notesHeaderTitle: A,
|
|
50249
|
+
notesHeaderIcon: z,
|
|
50248
50250
|
notesList: P = [],
|
|
50249
|
-
notesTitles:
|
|
50250
|
-
reservationNote:
|
|
50251
|
+
notesTitles: D,
|
|
50252
|
+
reservationNote: B,
|
|
50251
50253
|
isYellowLabel: V = !1,
|
|
50252
|
-
bottomLeftSymbol:
|
|
50253
|
-
cursorNotAllowed:
|
|
50254
|
-
rmBadge:
|
|
50255
|
-
isReservationToday:
|
|
50254
|
+
bottomLeftSymbol: q,
|
|
50255
|
+
cursorNotAllowed: F = !1,
|
|
50256
|
+
rmBadge: T,
|
|
50257
|
+
isReservationToday: E = !1
|
|
50256
50258
|
}) => {
|
|
50257
|
-
const
|
|
50259
|
+
const Q = e === "small", W = `
|
|
50258
50260
|
${te.patientCard}
|
|
50259
|
-
${
|
|
50260
|
-
${
|
|
50261
|
+
${Q ? te.small : ""}
|
|
50262
|
+
${F ? te.notAllowedCursor : ""}
|
|
50261
50263
|
${t}
|
|
50262
50264
|
`.trim();
|
|
50263
50265
|
return /* @__PURE__ */ r("div", { className: W, style: n, children: /* @__PURE__ */ m("div", { className: te.innerPadding, children: [
|
|
@@ -50267,12 +50269,12 @@ const mLe = ({
|
|
|
50267
50269
|
className: `${te.topArea} ${b ? "" : te.noFooterMargin}`,
|
|
50268
50270
|
style: o,
|
|
50269
50271
|
children: [
|
|
50270
|
-
/* @__PURE__ */ r("div", { className: te.header, children:
|
|
50272
|
+
/* @__PURE__ */ r("div", { className: te.header, children: T ? /* @__PURE__ */ m(Ve, { children: [
|
|
50271
50273
|
/* @__PURE__ */ r("div", { className: te.headerLeft, children: /* @__PURE__ */ m("div", { className: te.uf, children: [
|
|
50272
50274
|
i,
|
|
50273
50275
|
c && ` - ${c}`
|
|
50274
50276
|
] }) }),
|
|
50275
|
-
/* @__PURE__ */ r("div", { className: te.headerRight, children: /* @__PURE__ */ r("div", { className: te.rmBadge, children:
|
|
50277
|
+
/* @__PURE__ */ r("div", { className: te.headerRight, children: /* @__PURE__ */ r("div", { className: te.rmBadge, children: T }) })
|
|
50276
50278
|
] }) : /* @__PURE__ */ m(Ve, { children: [
|
|
50277
50279
|
/* @__PURE__ */ r("div", { className: te.headerLeft, children: i && /* @__PURE__ */ r("div", { className: te.uf, children: i }) }),
|
|
50278
50280
|
/* @__PURE__ */ r("div", { className: te.headerRight, children: c && /* @__PURE__ */ r("span", { className: te.roomBed, children: c }) })
|
|
@@ -50309,10 +50311,10 @@ const mLe = ({
|
|
|
50309
50311
|
] }),
|
|
50310
50312
|
S === "notes" && /* @__PURE__ */ m("div", { className: te.notesView, children: [
|
|
50311
50313
|
/* @__PURE__ */ m("div", { className: te.notesHeader, children: [
|
|
50312
|
-
|
|
50313
|
-
/* @__PURE__ */ r("span", { className: te.notesTitle, children:
|
|
50314
|
+
z,
|
|
50315
|
+
/* @__PURE__ */ r("span", { className: te.notesTitle, children: A })
|
|
50314
50316
|
] }),
|
|
50315
|
-
/* @__PURE__ */ r("div", { className: te.notesList, children: P.map((Y, oe) => /* @__PURE__ */ r("div", { className: te.noteItem, title:
|
|
50317
|
+
/* @__PURE__ */ r("div", { className: te.notesList, children: P.map((Y, oe) => /* @__PURE__ */ r("div", { className: te.noteItem, title: D?.[oe], children: Y }, oe)) })
|
|
50316
50318
|
] }),
|
|
50317
50319
|
S === "reservation" && /* @__PURE__ */ m("div", { className: te.reservationView, children: [
|
|
50318
50320
|
s && /* @__PURE__ */ r(
|
|
@@ -50333,15 +50335,15 @@ const mLe = ({
|
|
|
50333
50335
|
u && /* @__PURE__ */ r("div", { className: te.firstNames, children: u }),
|
|
50334
50336
|
y && /* @__PURE__ */ r("div", { className: te.dobAge, children: y })
|
|
50335
50337
|
] }) }),
|
|
50336
|
-
|
|
50338
|
+
B && /* @__PURE__ */ r("div", { className: te.reservationNote, children: B })
|
|
50337
50339
|
] })
|
|
50338
50340
|
] }),
|
|
50339
|
-
(
|
|
50340
|
-
|
|
50341
|
+
(q || M || _) && /* @__PURE__ */ m("div", { className: te.bottomArea, children: [
|
|
50342
|
+
q && /* @__PURE__ */ r("div", { className: te.bottomLeftSymbol, children: q }),
|
|
50341
50343
|
_ && /* @__PURE__ */ m(
|
|
50342
50344
|
"div",
|
|
50343
50345
|
{
|
|
50344
|
-
className: `${te.destination} ${
|
|
50346
|
+
className: `${te.destination} ${E ? te.todayReservation : ""}`,
|
|
50345
50347
|
children: [
|
|
50346
50348
|
/* @__PURE__ */ r("span", { className: te.arrow, children: "→" }),
|
|
50347
50349
|
_.prefix && /* @__PURE__ */ r("span", { children: _.prefix }),
|
|
@@ -50451,13 +50453,13 @@ function Xbe({
|
|
|
50451
50453
|
onLoadMore: i,
|
|
50452
50454
|
locale: c = "fr"
|
|
50453
50455
|
}) {
|
|
50454
|
-
const s = K(null), d = K(null), l = K(null), [h, p] =
|
|
50456
|
+
const s = K(null), d = K(null), l = K(null), [h, p] = H(""), [u, y] = H(!1), f = h.trim().length > 0 && !u;
|
|
50455
50457
|
O(() => {
|
|
50456
|
-
const
|
|
50457
|
-
|
|
50458
|
+
const q = l.current;
|
|
50459
|
+
q && ((typeof CSS > "u" || !CSS.supports || !CSS.supports("field-sizing", "content")) && (q.style.height = "auto", q.style.height = `${Math.min(Math.max(q.scrollHeight, 60), 140)}px`), q.scrollTop = q.scrollHeight);
|
|
50458
50460
|
}, [h]);
|
|
50459
|
-
const [g, k] =
|
|
50460
|
-
w.current =
|
|
50461
|
+
const [g, k] = H(!1), v = K(!1), [M, _] = H("hidden"), w = K("hidden"), L = K(null), C = K(!1), I = ue((q) => {
|
|
50462
|
+
w.current = q, _(q);
|
|
50461
50463
|
}, []), x = ue(() => {
|
|
50462
50464
|
L.current && clearTimeout(L.current), I("hiding"), L.current = setTimeout(() => I("hidden"), Kbe);
|
|
50463
50465
|
}, [I]);
|
|
@@ -50467,11 +50469,11 @@ function Xbe({
|
|
|
50467
50469
|
!C.current && !v.current && d.current?.scrollIntoView({ behavior: "smooth" });
|
|
50468
50470
|
}, [e.length]);
|
|
50469
50471
|
const b = ue(async () => {
|
|
50470
|
-
const
|
|
50471
|
-
if (!(!
|
|
50472
|
+
const q = h.trim();
|
|
50473
|
+
if (!(!q || u)) {
|
|
50472
50474
|
y(!0);
|
|
50473
50475
|
try {
|
|
50474
|
-
await n(
|
|
50476
|
+
await n(q), p(""), C.current = !1, w.current !== "hidden" && x(), requestAnimationFrame(() => {
|
|
50475
50477
|
d.current?.scrollIntoView({ behavior: "smooth" });
|
|
50476
50478
|
});
|
|
50477
50479
|
} finally {
|
|
@@ -50479,44 +50481,44 @@ function Xbe({
|
|
|
50479
50481
|
}
|
|
50480
50482
|
}
|
|
50481
50483
|
}, [h, u, n, x]), $ = ue(
|
|
50482
|
-
(
|
|
50483
|
-
|
|
50484
|
+
(q) => {
|
|
50485
|
+
q.preventDefault(), b().catch(() => {
|
|
50484
50486
|
});
|
|
50485
50487
|
},
|
|
50486
50488
|
[b]
|
|
50487
50489
|
), N = ue(
|
|
50488
|
-
(
|
|
50489
|
-
|
|
50490
|
+
(q) => {
|
|
50491
|
+
q.key === "Enter" && !q.shiftKey && !q.nativeEvent.isComposing && (q.preventDefault(), b().catch(() => {
|
|
50490
50492
|
}));
|
|
50491
50493
|
},
|
|
50492
50494
|
[b]
|
|
50493
50495
|
), S = ue(() => {
|
|
50494
50496
|
d.current?.scrollIntoView({ behavior: "smooth" });
|
|
50495
|
-
}, []),
|
|
50497
|
+
}, []), A = ue(async () => {
|
|
50496
50498
|
if (!i || v.current) return;
|
|
50497
|
-
const
|
|
50499
|
+
const q = s.current, F = q?.scrollHeight ?? 0;
|
|
50498
50500
|
v.current = !0, k(!0);
|
|
50499
50501
|
try {
|
|
50500
|
-
await i(), await new Promise((
|
|
50502
|
+
await i(), await new Promise((T) => requestAnimationFrame(() => T())), q && (q.scrollTop += q.scrollHeight - F);
|
|
50501
50503
|
} finally {
|
|
50502
50504
|
v.current = !1, k(!1);
|
|
50503
50505
|
}
|
|
50504
|
-
}, [i]),
|
|
50505
|
-
const
|
|
50506
|
-
if (!
|
|
50507
|
-
const
|
|
50508
|
-
C.current =
|
|
50509
|
-
const
|
|
50510
|
-
|
|
50506
|
+
}, [i]), z = ue(() => {
|
|
50507
|
+
const q = s.current;
|
|
50508
|
+
if (!q) return;
|
|
50509
|
+
const T = q.scrollHeight - q.scrollTop - q.clientHeight > Gbe;
|
|
50510
|
+
C.current = T;
|
|
50511
|
+
const E = w.current;
|
|
50512
|
+
T ? (E === "hidden" || E === "hiding") && (L.current && clearTimeout(L.current), I("visible")) : E === "visible" && x(), q.scrollTop < Zbe && o && !v.current && A().catch(() => {
|
|
50511
50513
|
});
|
|
50512
|
-
}, [o,
|
|
50513
|
-
(
|
|
50514
|
+
}, [o, A, I, x]), P = Ebe(e, c), D = ue(
|
|
50515
|
+
(q, F) => Wbe(q, F ?? t),
|
|
50514
50516
|
[t]
|
|
50515
|
-
),
|
|
50516
|
-
(
|
|
50517
|
+
), B = ue(
|
|
50518
|
+
(q, F) => Obe(q, F ?? c),
|
|
50517
50519
|
[c]
|
|
50518
50520
|
), V = ue(
|
|
50519
|
-
(
|
|
50521
|
+
(q, F) => Ube(q, F ?? c),
|
|
50520
50522
|
[c]
|
|
50521
50523
|
);
|
|
50522
50524
|
return {
|
|
@@ -50532,10 +50534,10 @@ function Xbe({
|
|
|
50532
50534
|
scrollBtnState: M,
|
|
50533
50535
|
handleScrollBtnClick: S,
|
|
50534
50536
|
loadingMoreState: g,
|
|
50535
|
-
handleScrollCombined:
|
|
50537
|
+
handleScrollCombined: z,
|
|
50536
50538
|
dayGroups: P,
|
|
50537
|
-
getBubbleVariant:
|
|
50538
|
-
formatDayLabel:
|
|
50539
|
+
getBubbleVariant: D,
|
|
50540
|
+
formatDayLabel: B,
|
|
50539
50541
|
formatHour: V
|
|
50540
50542
|
};
|
|
50541
50543
|
}
|
|
@@ -50587,13 +50589,13 @@ const Oq = () => /* @__PURE__ */ m(
|
|
|
50587
50589
|
handleFormSubmit: $,
|
|
50588
50590
|
handleKeyDown: N,
|
|
50589
50591
|
scrollBtnState: S,
|
|
50590
|
-
handleScrollBtnClick:
|
|
50591
|
-
loadingMoreState:
|
|
50592
|
+
handleScrollBtnClick: A,
|
|
50593
|
+
loadingMoreState: z,
|
|
50592
50594
|
handleScrollCombined: P,
|
|
50593
|
-
dayGroups:
|
|
50594
|
-
getBubbleVariant:
|
|
50595
|
+
dayGroups: D,
|
|
50596
|
+
getBubbleVariant: B,
|
|
50595
50597
|
formatDayLabel: V,
|
|
50596
|
-
formatHour:
|
|
50598
|
+
formatHour: q
|
|
50597
50599
|
} = Xbe({ messages: e, currentSenderId: t, onSend: n, hasMore: i, onLoadMore: c, locale: f });
|
|
50598
50600
|
return /* @__PURE__ */ m("div", { className: `${Se.panel} ${k}`, children: [
|
|
50599
50601
|
/* @__PURE__ */ m("div", { className: Se.header, children: [
|
|
@@ -50639,30 +50641,30 @@ const Oq = () => /* @__PURE__ */ m(
|
|
|
50639
50641
|
"aria-label": s,
|
|
50640
50642
|
onScroll: P,
|
|
50641
50643
|
children: [
|
|
50642
|
-
!l && (h ||
|
|
50644
|
+
!l && (h || z) && /* @__PURE__ */ r("div", { className: Se.paginationLoader, children: /* @__PURE__ */ r(Oq, {}) }),
|
|
50643
50645
|
l && /* @__PURE__ */ r("div", { className: Se.listLoading, children: g ?? /* @__PURE__ */ r(Oq, {}) }),
|
|
50644
|
-
!l &&
|
|
50645
|
-
!l &&
|
|
50646
|
-
/* @__PURE__ */ r("div", { className: Se.daySeparator, role: "separator", children: V(
|
|
50647
|
-
|
|
50648
|
-
const
|
|
50646
|
+
!l && D.length === 0 && /* @__PURE__ */ r("div", { className: Se.empty, children: y }),
|
|
50647
|
+
!l && D.map((F) => /* @__PURE__ */ m(he.Fragment, { children: [
|
|
50648
|
+
/* @__PURE__ */ r("div", { className: Se.daySeparator, role: "separator", children: V(F.date) }),
|
|
50649
|
+
F.messages.map((T) => {
|
|
50650
|
+
const E = B(T), Q = E === "outgoing", W = q(T.sentAt);
|
|
50649
50651
|
return /* @__PURE__ */ m(
|
|
50650
50652
|
"div",
|
|
50651
50653
|
{
|
|
50652
|
-
className: `${Se.messageRow} ${
|
|
50654
|
+
className: `${Se.messageRow} ${Q ? Se.outgoing : Se.incoming}`,
|
|
50653
50655
|
children: [
|
|
50654
|
-
!
|
|
50656
|
+
!Q && /* @__PURE__ */ r("span", { className: Se.avatar, "aria-hidden": "true", children: T.sender.shortName }),
|
|
50655
50657
|
/* @__PURE__ */ m("span", { className: Se.messageMeta, children: [
|
|
50656
|
-
!
|
|
50658
|
+
!Q && /* @__PURE__ */ r("span", { className: Se.senderName, children: T.sender.name }),
|
|
50657
50659
|
/* @__PURE__ */ r("span", { children: W })
|
|
50658
50660
|
] }),
|
|
50659
|
-
/* @__PURE__ */ r("div", { className: `${Se.bubble} ${Se[
|
|
50661
|
+
/* @__PURE__ */ r("div", { className: `${Se.bubble} ${Se[E]}`, children: T.content })
|
|
50660
50662
|
]
|
|
50661
50663
|
},
|
|
50662
|
-
|
|
50664
|
+
T.id
|
|
50663
50665
|
);
|
|
50664
50666
|
})
|
|
50665
|
-
] },
|
|
50667
|
+
] }, F.dayKey)),
|
|
50666
50668
|
/* @__PURE__ */ r("div", { ref: w, "aria-hidden": "true" })
|
|
50667
50669
|
]
|
|
50668
50670
|
}
|
|
@@ -50672,7 +50674,7 @@ const Oq = () => /* @__PURE__ */ m(
|
|
|
50672
50674
|
{
|
|
50673
50675
|
type: "button",
|
|
50674
50676
|
className: `${Se.scrollToBottomButton} ${S === "hiding" ? Se.scrollBtnHiding : Se.scrollBtnVisible}`,
|
|
50675
|
-
onClick:
|
|
50677
|
+
onClick: A,
|
|
50676
50678
|
"aria-label": "Aller au dernier message",
|
|
50677
50679
|
children: "↓"
|
|
50678
50680
|
}
|
|
@@ -50685,7 +50687,7 @@ const Oq = () => /* @__PURE__ */ m(
|
|
|
50685
50687
|
ref: L,
|
|
50686
50688
|
className: Se.messageInput,
|
|
50687
50689
|
value: C,
|
|
50688
|
-
onChange: (
|
|
50690
|
+
onChange: (F) => I(F.target.value),
|
|
50689
50691
|
onKeyDown: N,
|
|
50690
50692
|
placeholder: p,
|
|
50691
50693
|
"aria-label": p,
|
|
@@ -50773,7 +50775,7 @@ const Oq = () => /* @__PURE__ */ m(
|
|
|
50773
50775
|
className: o = "",
|
|
50774
50776
|
activeClassName: i = "is-drag-over"
|
|
50775
50777
|
}) => {
|
|
50776
|
-
const [c, s] =
|
|
50778
|
+
const [c, s] = H(!1), d = K(0), l = (f) => {
|
|
50777
50779
|
f.preventDefault(), d.current += 1, d.current > 0 && s(!0);
|
|
50778
50780
|
}, h = (f) => {
|
|
50779
50781
|
f.preventDefault(), f.dataTransfer.dropEffect = "move";
|