@tsiky/components-r19 6.1.51 → 6.1.52
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.cjs.js +16 -16
- package/dist/index.js +901 -900
- package/dist/src/components/PopUp/PopUp.d.ts +1 -0
- package/dist/src/components/PopUp/PopUp.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { jsx as c, jsxs as f, Fragment as
|
|
1
|
+
import { jsx as c, jsxs as f, Fragment as ze } from "react/jsx-runtime";
|
|
2
2
|
import * as te from "react";
|
|
3
|
-
import ie, { useState as V, useRef as
|
|
3
|
+
import ie, { useState as V, useRef as W, useEffect as O, createContext as Je, useContext as xe, useCallback as Be, memo as je, useLayoutEffect as O$, useId as mC, useInsertionEffect as E$, useMemo as Me, Children as Lz, isValidElement as Cz, Fragment as U$, createElement as Nz, forwardRef as oc, Component as Iz, useImperativeHandle as Sz } from "react";
|
|
4
4
|
import { c as a, M as Fo, I as $z, a as pc, g as qz, R as W$, B as Az, C as zz, X as Vz, Y as Pz, T as jz, b as Hz, L as Tz, d as Dz, P as Bz, e as Rz, f as mN } from "./LineChart-DSDw_oNQ.js";
|
|
5
5
|
import { i as R_e, h as F_e, S as O_e } from "./LineChart-DSDw_oNQ.js";
|
|
6
6
|
import { createPortal as fC } from "react-dom";
|
|
@@ -188,7 +188,7 @@ function cV({
|
|
|
188
188
|
width: d = "auto",
|
|
189
189
|
gap: h = 0
|
|
190
190
|
}) {
|
|
191
|
-
const [l, p] = V(!1), [u, y] = V(null), g =
|
|
191
|
+
const [l, p] = V(!1), [u, y] = V(null), g = W(null);
|
|
192
192
|
O(() => {
|
|
193
193
|
function _(v) {
|
|
194
194
|
v.key === "Escape" && p(!1);
|
|
@@ -31404,7 +31404,7 @@ const It = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
31404
31404
|
select: r,
|
|
31405
31405
|
topContent: s
|
|
31406
31406
|
}) => {
|
|
31407
|
-
const [d, h] = V(!1), [l, p] = V("right"), u =
|
|
31407
|
+
const [d, h] = V(!1), [l, p] = V("right"), u = W(null), y = W(null), { activeNav: g, activeSubNav: m } = At();
|
|
31408
31408
|
O(() => {
|
|
31409
31409
|
if (!i) return;
|
|
31410
31410
|
const _ = (v) => {
|
|
@@ -31443,12 +31443,12 @@ const It = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
31443
31443
|
if (b.id === "language") {
|
|
31444
31444
|
if (!x || !Array.isArray(x.options) || !x.onChange)
|
|
31445
31445
|
return /* @__PURE__ */ c("div", { className: "dropdown-language" }, C);
|
|
31446
|
-
const
|
|
31446
|
+
const q = Array.isArray(x.options) ? x.options : [], $ = q.some((z) => z.code === x.value) ? q : [
|
|
31447
31447
|
{
|
|
31448
31448
|
code: x.value ?? "",
|
|
31449
31449
|
label: String(x.value ?? "")
|
|
31450
31450
|
},
|
|
31451
|
-
|
|
31451
|
+
...q
|
|
31452
31452
|
];
|
|
31453
31453
|
return /* @__PURE__ */ c("div", { className: "dropdown-language", children: /* @__PURE__ */ c(
|
|
31454
31454
|
"select",
|
|
@@ -31457,14 +31457,14 @@ const It = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
31457
31457
|
className: "language-select",
|
|
31458
31458
|
value: x.value ?? "",
|
|
31459
31459
|
onChange: (z) => {
|
|
31460
|
-
const
|
|
31460
|
+
const B = z.target.value;
|
|
31461
31461
|
try {
|
|
31462
|
-
x.onChange(
|
|
31463
|
-
} catch (
|
|
31464
|
-
console.error("select onChange error",
|
|
31462
|
+
x.onChange(B);
|
|
31463
|
+
} catch (D) {
|
|
31464
|
+
console.error("select onChange error", D);
|
|
31465
31465
|
}
|
|
31466
31466
|
},
|
|
31467
|
-
children:
|
|
31467
|
+
children: $.map((z) => /* @__PURE__ */ c("option", { value: z.code, children: z.label }, z.code))
|
|
31468
31468
|
}
|
|
31469
31469
|
) }, C);
|
|
31470
31470
|
}
|
|
@@ -31503,54 +31503,54 @@ const It = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
31503
31503
|
const [v, b] = V([]);
|
|
31504
31504
|
O(() => {
|
|
31505
31505
|
const w = (z) => {
|
|
31506
|
-
const
|
|
31507
|
-
return ie.Children.forEach(z, (
|
|
31508
|
-
Array.isArray(
|
|
31509
|
-
}),
|
|
31506
|
+
const B = [];
|
|
31507
|
+
return ie.Children.forEach(z, (D) => {
|
|
31508
|
+
Array.isArray(D) ? B.push(...w(D)) : ie.isValidElement(D) && B.push(D);
|
|
31509
|
+
}), B;
|
|
31510
31510
|
}, I = w(e).filter((z) => ie.isValidElement(z)).map((z) => {
|
|
31511
|
-
let
|
|
31512
|
-
const
|
|
31513
|
-
return
|
|
31514
|
-
|
|
31515
|
-
|
|
31516
|
-
|
|
31517
|
-
|
|
31518
|
-
|
|
31519
|
-
|
|
31520
|
-
].join(" ").trim(), { node: z, classes:
|
|
31511
|
+
let B = "";
|
|
31512
|
+
const D = z.props;
|
|
31513
|
+
return B = [
|
|
31514
|
+
D.xs ? `grid-xs-${D.xs}` : "",
|
|
31515
|
+
D.sm ? `grid-sm-${D.sm}` : "",
|
|
31516
|
+
D.md ? `grid-md-${D.md}` : "",
|
|
31517
|
+
D.lg ? `grid-lg-${D.lg}` : "",
|
|
31518
|
+
D.xl ? `grid-xl-${D.xl}` : "",
|
|
31519
|
+
D.className ? D.className : ""
|
|
31520
|
+
].join(" ").trim(), { node: z, classes: B };
|
|
31521
31521
|
});
|
|
31522
|
-
let
|
|
31523
|
-
m && m.length > 0 && (
|
|
31522
|
+
let $ = I;
|
|
31523
|
+
m && m.length > 0 && ($ = I.map((z, B) => ({
|
|
31524
31524
|
...z,
|
|
31525
|
-
node: I[m[
|
|
31526
|
-
}))), b(
|
|
31525
|
+
node: I[m[B]]?.node ?? z.node
|
|
31526
|
+
}))), b($);
|
|
31527
31527
|
}, [e]);
|
|
31528
|
-
const C = (w,
|
|
31529
|
-
w.stopPropagation(), w.dataTransfer.setData("dragIndex",
|
|
31528
|
+
const C = (w, q) => {
|
|
31529
|
+
w.stopPropagation(), w.dataTransfer.setData("dragIndex", q.toString()), w.dataTransfer.setData("parentKey", u.toString());
|
|
31530
31530
|
}, N = (w) => {
|
|
31531
31531
|
w.preventDefault(), w.stopPropagation();
|
|
31532
|
-
}, L = (w,
|
|
31532
|
+
}, L = (w, q) => {
|
|
31533
31533
|
w.preventDefault();
|
|
31534
|
-
const I = Number(w.dataTransfer.getData("dragIndex")),
|
|
31535
|
-
if (t &&
|
|
31534
|
+
const I = Number(w.dataTransfer.getData("dragIndex")), $ = Number(w.dataTransfer.getData("parentKey"));
|
|
31535
|
+
if (t && $ !== u)
|
|
31536
31536
|
return;
|
|
31537
31537
|
const z = [...v];
|
|
31538
|
-
let
|
|
31539
|
-
if (z.forEach((
|
|
31540
|
-
if (ie.isValidElement(
|
|
31541
|
-
const
|
|
31542
|
-
|
|
31538
|
+
let B = -1, D = -1;
|
|
31539
|
+
if (z.forEach((S, A) => {
|
|
31540
|
+
if (ie.isValidElement(S.node)) {
|
|
31541
|
+
const T = S.node.props;
|
|
31542
|
+
T.uniqueKey === q && (B = A), T.uniqueKey === I && (D = A);
|
|
31543
31543
|
}
|
|
31544
|
-
}),
|
|
31544
|
+
}), B === -1 || D === -1)
|
|
31545
31545
|
return;
|
|
31546
|
-
const
|
|
31547
|
-
z[
|
|
31548
|
-
...z[
|
|
31549
|
-
node: z[
|
|
31550
|
-
}, z[
|
|
31551
|
-
...z[
|
|
31552
|
-
node:
|
|
31553
|
-
}, b(z), typeof k == "function" && k(
|
|
31546
|
+
const H = z[D].node;
|
|
31547
|
+
z[D] = {
|
|
31548
|
+
...z[D],
|
|
31549
|
+
node: z[B].node
|
|
31550
|
+
}, z[B] = {
|
|
31551
|
+
...z[B],
|
|
31552
|
+
node: H
|
|
31553
|
+
}, b(z), typeof k == "function" && k(D, B);
|
|
31554
31554
|
}, x = o ? [
|
|
31555
31555
|
i ? `grid-xs-${i}` : "",
|
|
31556
31556
|
r ? `grid-sm-${r}` : "",
|
|
@@ -31571,9 +31571,9 @@ const It = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
31571
31571
|
"div",
|
|
31572
31572
|
{
|
|
31573
31573
|
draggable: !0,
|
|
31574
|
-
onDragStart: (
|
|
31575
|
-
onDragOver: (
|
|
31576
|
-
onDrop: (
|
|
31574
|
+
onDragStart: (q) => C(q, w.node?.props?.uniqueKey),
|
|
31575
|
+
onDragOver: (q) => N(q),
|
|
31576
|
+
onDrop: (q) => L(q, w.node?.props?.uniqueKey),
|
|
31577
31577
|
className: `grid-item grid-item-grabbing ${w.classes} ${w.node?.props?.displayNone ? "grid-display-none" : ""}`,
|
|
31578
31578
|
style: { cursor: "grab" },
|
|
31579
31579
|
children: w.node
|
|
@@ -31596,7 +31596,7 @@ const It = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
31596
31596
|
style: { gap: `${l}rem`, ...y },
|
|
31597
31597
|
children: e
|
|
31598
31598
|
}
|
|
31599
|
-
) : /* @__PURE__ */ c(
|
|
31599
|
+
) : /* @__PURE__ */ c(ze, { children: e });
|
|
31600
31600
|
};
|
|
31601
31601
|
g2e.displayName = "Grid";
|
|
31602
31602
|
const gC = ({ imagePath: e, ...t }) => {
|
|
@@ -31649,7 +31649,7 @@ const gC = ({ imagePath: e, ...t }) => {
|
|
|
31649
31649
|
moduleConfig: o = {},
|
|
31650
31650
|
dropdownPosition: i = "auto"
|
|
31651
31651
|
}) => {
|
|
31652
|
-
const { activeNav: r } = At(), [s, d] = V(!0), [h, l] = V(!1), [p, u] = V("left"), y =
|
|
31652
|
+
const { activeNav: r } = At(), [s, d] = V(!0), [h, l] = V(!1), [p, u] = V("left"), y = W(null), g = W(null), m = W(null);
|
|
31653
31653
|
O(() => {
|
|
31654
31654
|
const v = () => {
|
|
31655
31655
|
if (y.current && y.current.parentElement) {
|
|
@@ -32232,7 +32232,7 @@ const qMe = ({
|
|
|
32232
32232
|
] });
|
|
32233
32233
|
}, MC = Je({});
|
|
32234
32234
|
function Ut(e) {
|
|
32235
|
-
const t =
|
|
32235
|
+
const t = W(null);
|
|
32236
32236
|
return t.current === null && (t.current = e()), t.current;
|
|
32237
32237
|
}
|
|
32238
32238
|
const _C = typeof window < "u", xC = _C ? O$ : O, Lb = /* @__PURE__ */ Je(null);
|
|
@@ -32800,8 +32800,8 @@ function Mb(e = Le.visualDuration, t = Le.bounce) {
|
|
|
32800
32800
|
else {
|
|
32801
32801
|
let x = N === 0 ? m : 0;
|
|
32802
32802
|
k < 1 && (x = N === 0 ? /* @__PURE__ */ ht(m) : wq(b, N, L));
|
|
32803
|
-
const w = Math.abs(x) <= o,
|
|
32804
|
-
d.done = w &&
|
|
32803
|
+
const w = Math.abs(x) <= o, q = Math.abs(s - L) <= i;
|
|
32804
|
+
d.done = w && q;
|
|
32805
32805
|
}
|
|
32806
32806
|
return d.value = d.done ? s : L, d;
|
|
32807
32807
|
},
|
|
@@ -32827,8 +32827,8 @@ function YL({ keyframes: e, velocity: t = 0, power: n = 0.8, timeConstant: o = 3
|
|
|
32827
32827
|
const M = u + k, _ = s === void 0 ? M : s(M);
|
|
32828
32828
|
_ !== M && (k = _ - u);
|
|
32829
32829
|
const v = (w) => -k * Math.exp(-w / o), b = (w) => _ + v(w), C = (w) => {
|
|
32830
|
-
const
|
|
32831
|
-
y.done = Math.abs(
|
|
32830
|
+
const q = v(w), I = b(w);
|
|
32831
|
+
y.done = Math.abs(q) <= l, y.value = y.done ? _ : I;
|
|
32832
32832
|
};
|
|
32833
32833
|
let N, L;
|
|
32834
32834
|
const x = (w) => {
|
|
@@ -32845,8 +32845,8 @@ function YL({ keyframes: e, velocity: t = 0, power: n = 0.8, timeConstant: o = 3
|
|
|
32845
32845
|
return x(0), {
|
|
32846
32846
|
calculatedDuration: null,
|
|
32847
32847
|
next: (w) => {
|
|
32848
|
-
let
|
|
32849
|
-
return !L && N === void 0 && (
|
|
32848
|
+
let q = !1;
|
|
32849
|
+
return !L && N === void 0 && (q = !0, C(w), x(w)), N !== void 0 && w >= N ? L.next(w - N) : (!q && C(w), y);
|
|
32850
32850
|
}
|
|
32851
32851
|
};
|
|
32852
32852
|
}
|
|
@@ -32994,8 +32994,8 @@ class TC extends HC {
|
|
|
32994
32994
|
let b = this.currentTime, C = o;
|
|
32995
32995
|
if (u) {
|
|
32996
32996
|
const w = Math.min(this.currentTime, i) / d;
|
|
32997
|
-
let
|
|
32998
|
-
!I && w >= 1 && (I = 1), I === 1 &&
|
|
32997
|
+
let q = Math.floor(w), I = w % 1;
|
|
32998
|
+
!I && w >= 1 && (I = 1), I === 1 && q--, q = Math.min(q, u + 1), !!(q % 2) && (y === "reverse" ? (I = 1 - I, g && (I -= g / d)) : y === "mirror" && (C = s)), b = St(0, 1, I) * d;
|
|
32999
32999
|
}
|
|
33000
33000
|
const N = v ? { done: !1, value: p[0] } : C.next(b);
|
|
33001
33001
|
r && (N.value = r(N.value));
|
|
@@ -34138,7 +34138,7 @@ class $de extends te.Component {
|
|
|
34138
34138
|
}
|
|
34139
34139
|
}
|
|
34140
34140
|
function qde({ children: e, isPresent: t, anchorX: n, root: o }) {
|
|
34141
|
-
const i = mC(), r =
|
|
34141
|
+
const i = mC(), r = W(null), s = W({
|
|
34142
34142
|
width: 0,
|
|
34143
34143
|
height: 0,
|
|
34144
34144
|
top: 0,
|
|
@@ -34212,7 +34212,7 @@ function WN(e) {
|
|
|
34212
34212
|
}), t;
|
|
34213
34213
|
}
|
|
34214
34214
|
const Vde = ({ children: e, custom: t, initial: n = !0, onExitComplete: o, presenceAffectsLayout: i = !0, mode: r = "sync", propagate: s = !1, anchorX: d = "left", root: h }) => {
|
|
34215
|
-
const [l, p] = Uq(s), u = Me(() => WN(e), [e]), y = s && !l ? [] : u.map(kc), g =
|
|
34215
|
+
const [l, p] = Uq(s), u = Me(() => WN(e), [e]), y = s && !l ? [] : u.map(kc), g = W(!0), m = W(u), k = Ut(() => /* @__PURE__ */ new Map()), [M, _] = V(u), [v, b] = V(u);
|
|
34216
34216
|
xC(() => {
|
|
34217
34217
|
g.current = !1, m.current = u;
|
|
34218
34218
|
for (let L = 0; L < v.length; L++) {
|
|
@@ -34224,25 +34224,25 @@ const Vde = ({ children: e, custom: t, initial: n = !0, onExitComplete: o, prese
|
|
|
34224
34224
|
if (u !== M) {
|
|
34225
34225
|
let L = [...u];
|
|
34226
34226
|
for (let x = 0; x < v.length; x++) {
|
|
34227
|
-
const w = v[x],
|
|
34228
|
-
y.includes(
|
|
34227
|
+
const w = v[x], q = kc(w);
|
|
34228
|
+
y.includes(q) || (L.splice(x, 0, w), C.push(w));
|
|
34229
34229
|
}
|
|
34230
34230
|
return r === "wait" && C.length && (L = C), b(WN(L)), _(u), null;
|
|
34231
34231
|
}
|
|
34232
34232
|
process.env.NODE_ENV !== "production" && r === "wait" && v.length > 1 && console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);
|
|
34233
34233
|
const { forceRender: N } = xe(MC);
|
|
34234
|
-
return c(
|
|
34235
|
-
const x = kc(L), w = s && !l ? !1 : u === v || y.includes(x),
|
|
34234
|
+
return c(ze, { children: v.map((L) => {
|
|
34235
|
+
const x = kc(L), w = s && !l ? !1 : u === v || y.includes(x), q = () => {
|
|
34236
34236
|
if (k.has(x))
|
|
34237
34237
|
k.set(x, !0);
|
|
34238
34238
|
else
|
|
34239
34239
|
return;
|
|
34240
34240
|
let I = !0;
|
|
34241
|
-
k.forEach((
|
|
34242
|
-
|
|
34241
|
+
k.forEach(($) => {
|
|
34242
|
+
$ || (I = !1);
|
|
34243
34243
|
}), I && (N?.(), b(m.current), s && p?.(), o && o());
|
|
34244
34244
|
};
|
|
34245
|
-
return c(Ade, { isPresent: w, initial: !g.current || n ? void 0 : !1, custom: t, presenceAffectsLayout: i, mode: r, root: h, onExitComplete: w ? void 0 :
|
|
34245
|
+
return c(Ade, { isPresent: w, initial: !g.current || n ? void 0 : !1, custom: t, presenceAffectsLayout: i, mode: r, root: h, onExitComplete: w ? void 0 : q, anchorX: d, children: L }, x);
|
|
34246
34246
|
}) });
|
|
34247
34247
|
}, Wq = Je({ strict: !1 }), GN = {
|
|
34248
34248
|
animation: [
|
|
@@ -34647,7 +34647,7 @@ function ile(e, t, n) {
|
|
|
34647
34647
|
}
|
|
34648
34648
|
const YC = (e) => e.replace(/([a-z])([A-Z])/gu, "$1-$2").toLowerCase(), cle = "framerAppearId", aA = "data-" + YC(cle), nA = Je({});
|
|
34649
34649
|
function rle(e, t, n, o, i) {
|
|
34650
|
-
const { visualElement: r } = xe(Nb), s = xe(Wq), d = xe(Lb), h = xe(Cb).reducedMotion, l =
|
|
34650
|
+
const { visualElement: r } = xe(Nb), s = xe(Wq), d = xe(Lb), h = xe(Cb).reducedMotion, l = W(null);
|
|
34651
34651
|
o = o || s.renderer, !l.current && o && (l.current = o(e, {
|
|
34652
34652
|
visualState: t,
|
|
34653
34653
|
parent: r,
|
|
@@ -34658,11 +34658,11 @@ function rle(e, t, n, o, i) {
|
|
|
34658
34658
|
}));
|
|
34659
34659
|
const p = l.current, u = xe(nA);
|
|
34660
34660
|
p && !p.projection && i && (p.type === "html" || p.type === "svg") && sle(l.current, n, i, u);
|
|
34661
|
-
const y =
|
|
34661
|
+
const y = W(!1);
|
|
34662
34662
|
E$(() => {
|
|
34663
34663
|
p && y.current && p.update(n, d);
|
|
34664
34664
|
});
|
|
34665
|
-
const g = n[aA], m =
|
|
34665
|
+
const g = n[aA], m = W(!!g && !window.MotionHandoffIsComplete?.(g) && window.MotionHasOptimisedAnimation?.(g));
|
|
34666
34666
|
return xC(() => {
|
|
34667
34667
|
p && (y.current = !0, window.MotionIsMounted = !0, p.updateFeatures(), p.scheduleRenderMicrotask(), m.current && p.animationState && p.animationState.animateChanges());
|
|
34668
34668
|
}), O(() => {
|
|
@@ -35431,39 +35431,39 @@ function Ule(e) {
|
|
|
35431
35431
|
const x = Wle(v.prevProp, b);
|
|
35432
35432
|
let w = x || // If we're making this variant active, we want to always make it active
|
|
35433
35433
|
_ === h && v.isActive && !L && C || // If we removed a higher-priority variant (i is in reverse order)
|
|
35434
|
-
M > m && C,
|
|
35434
|
+
M > m && C, q = !1;
|
|
35435
35435
|
const I = Array.isArray(b) ? b : [b];
|
|
35436
|
-
let
|
|
35437
|
-
N === !1 && (
|
|
35438
|
-
const { prevResolvedValues: z = {} } = v,
|
|
35436
|
+
let $ = I.reduce(i(_), {});
|
|
35437
|
+
N === !1 && ($ = {});
|
|
35438
|
+
const { prevResolvedValues: z = {} } = v, B = {
|
|
35439
35439
|
...z,
|
|
35440
|
-
|
|
35441
|
-
},
|
|
35442
|
-
w = !0, y.has(A) && (
|
|
35443
|
-
const
|
|
35444
|
-
|
|
35440
|
+
...$
|
|
35441
|
+
}, D = (A) => {
|
|
35442
|
+
w = !0, y.has(A) && (q = !0, y.delete(A)), v.needsAnimating[A] = !0;
|
|
35443
|
+
const T = e.getValue(A);
|
|
35444
|
+
T && (T.liveStyle = !1);
|
|
35445
35445
|
};
|
|
35446
|
-
for (const A in
|
|
35447
|
-
const
|
|
35446
|
+
for (const A in B) {
|
|
35447
|
+
const T = $[A], F = z[A];
|
|
35448
35448
|
if (g.hasOwnProperty(A))
|
|
35449
35449
|
continue;
|
|
35450
|
-
let
|
|
35451
|
-
lC(
|
|
35450
|
+
let P = !1;
|
|
35451
|
+
lC(T) && lC(F) ? P = !mA(T, F) : P = T !== F, P ? T != null ? D(A) : y.add(A) : T !== void 0 && y.has(A) ? D(A) : v.protectedKeys[A] = !0;
|
|
35452
35452
|
}
|
|
35453
|
-
v.prevProp = b, v.prevResolvedValues =
|
|
35454
|
-
const
|
|
35455
|
-
w && (!
|
|
35456
|
-
const
|
|
35457
|
-
if (typeof A == "string" && o && !
|
|
35458
|
-
const { parent:
|
|
35459
|
-
if (
|
|
35460
|
-
const { delayChildren:
|
|
35461
|
-
|
|
35453
|
+
v.prevProp = b, v.prevResolvedValues = $, v.isActive && (g = { ...g, ...$ }), o && e.blockInitialAnimation && (w = !1);
|
|
35454
|
+
const H = L && x;
|
|
35455
|
+
w && (!H || q) && u.push(...I.map((A) => {
|
|
35456
|
+
const T = { type: _ };
|
|
35457
|
+
if (typeof A == "string" && o && !H && e.manuallyAnimateOnMount && e.parent) {
|
|
35458
|
+
const { parent: F } = e, P = yi(F, A);
|
|
35459
|
+
if (F.enteringChildren && P) {
|
|
35460
|
+
const { delayChildren: E } = P.transition || {};
|
|
35461
|
+
T.delay = kA(F.enteringChildren, e, E);
|
|
35462
35462
|
}
|
|
35463
35463
|
}
|
|
35464
35464
|
return {
|
|
35465
35465
|
animation: A,
|
|
35466
|
-
options:
|
|
35466
|
+
options: T
|
|
35467
35467
|
};
|
|
35468
35468
|
}));
|
|
35469
35469
|
}
|
|
@@ -37155,7 +37155,7 @@ function gpe(e, t, n, o) {
|
|
|
37155
37155
|
return r === 1 && d.layout.max + n > l || r === -1 && d.layout.min + n < l ? q2e(e, i, i + r) : e;
|
|
37156
37156
|
}
|
|
37157
37157
|
function vpe({ children: e, as: t = "ul", axis: n = "y", onReorder: o, values: i, ...r }, s) {
|
|
37158
|
-
const d = Ut(() => QC[t]), h = [], l =
|
|
37158
|
+
const d = Ut(() => QC[t]), h = [], l = W(!1);
|
|
37159
37159
|
pt(!!i, "Reorder.Group must be provided a values prop", "reorder-values");
|
|
37160
37160
|
const p = {
|
|
37161
37161
|
axis: n,
|
|
@@ -37668,7 +37668,7 @@ const Ppe = "_formContainer_14ads_1", jpe = "_headerLine_14ads_17", Hpe = "_form
|
|
|
37668
37668
|
error: i,
|
|
37669
37669
|
touched: r
|
|
37670
37670
|
}) => {
|
|
37671
|
-
const s =
|
|
37671
|
+
const s = W(null), [d, h] = V(!1), l = (M) => {
|
|
37672
37672
|
n(M.target.files);
|
|
37673
37673
|
}, p = () => {
|
|
37674
37674
|
s.current && s.current.click();
|
|
@@ -38636,14 +38636,14 @@ function Oye() {
|
|
|
38636
38636
|
if (BS) return cL;
|
|
38637
38637
|
BS = 1;
|
|
38638
38638
|
var e = tN(), t = Bye(), n = jA(), o = FA(), i = Rye(), r = Fye(), s = 1, d = 2, h = "[object Boolean]", l = "[object Date]", p = "[object Error]", u = "[object Map]", y = "[object Number]", g = "[object RegExp]", m = "[object Set]", k = "[object String]", M = "[object Symbol]", _ = "[object ArrayBuffer]", v = "[object DataView]", b = e ? e.prototype : void 0, C = b ? b.valueOf : void 0;
|
|
38639
|
-
function N(L, x, w,
|
|
38639
|
+
function N(L, x, w, q, I, $, z) {
|
|
38640
38640
|
switch (w) {
|
|
38641
38641
|
case v:
|
|
38642
38642
|
if (L.byteLength != x.byteLength || L.byteOffset != x.byteOffset)
|
|
38643
38643
|
return !1;
|
|
38644
38644
|
L = L.buffer, x = x.buffer;
|
|
38645
38645
|
case _:
|
|
38646
|
-
return !(L.byteLength != x.byteLength ||
|
|
38646
|
+
return !(L.byteLength != x.byteLength || !$(new t(L), new t(x)));
|
|
38647
38647
|
case h:
|
|
38648
38648
|
case l:
|
|
38649
38649
|
case y:
|
|
@@ -38654,17 +38654,17 @@ function Oye() {
|
|
|
38654
38654
|
case k:
|
|
38655
38655
|
return L == x + "";
|
|
38656
38656
|
case u:
|
|
38657
|
-
var
|
|
38657
|
+
var B = i;
|
|
38658
38658
|
case m:
|
|
38659
|
-
var
|
|
38660
|
-
if (
|
|
38659
|
+
var D = q & s;
|
|
38660
|
+
if (B || (B = r), L.size != x.size && !D)
|
|
38661
38661
|
return !1;
|
|
38662
|
-
var
|
|
38663
|
-
if (
|
|
38664
|
-
return
|
|
38665
|
-
|
|
38666
|
-
var
|
|
38667
|
-
return z.delete(L),
|
|
38662
|
+
var H = z.get(L);
|
|
38663
|
+
if (H)
|
|
38664
|
+
return H == x;
|
|
38665
|
+
q |= d, z.set(L, x);
|
|
38666
|
+
var S = o(B(L), B(x), q, I, $, z);
|
|
38667
|
+
return z.delete(L), S;
|
|
38668
38668
|
case M:
|
|
38669
38669
|
if (C)
|
|
38670
38670
|
return C.call(L) == C.call(x);
|
|
@@ -38818,10 +38818,10 @@ var ML, t$;
|
|
|
38818
38818
|
function e4e() {
|
|
38819
38819
|
if (t$) return ML;
|
|
38820
38820
|
t$ = 1;
|
|
38821
|
-
var e = Ab(), t = EA(), n = Pb(), o = "[object Arguments]", i = "[object Array]", r = "[object Boolean]", s = "[object Date]", d = "[object Error]", h = "[object Function]", l = "[object Map]", p = "[object Number]", u = "[object Object]", y = "[object RegExp]", g = "[object Set]", m = "[object String]", k = "[object WeakMap]", M = "[object ArrayBuffer]", _ = "[object DataView]", v = "[object Float32Array]", b = "[object Float64Array]", C = "[object Int8Array]", N = "[object Int16Array]", L = "[object Int32Array]", x = "[object Uint8Array]", w = "[object Uint8ClampedArray]",
|
|
38822
|
-
|
|
38823
|
-
function z(
|
|
38824
|
-
return n(
|
|
38821
|
+
var e = Ab(), t = EA(), n = Pb(), o = "[object Arguments]", i = "[object Array]", r = "[object Boolean]", s = "[object Date]", d = "[object Error]", h = "[object Function]", l = "[object Map]", p = "[object Number]", u = "[object Object]", y = "[object RegExp]", g = "[object Set]", m = "[object String]", k = "[object WeakMap]", M = "[object ArrayBuffer]", _ = "[object DataView]", v = "[object Float32Array]", b = "[object Float64Array]", C = "[object Int8Array]", N = "[object Int16Array]", L = "[object Int32Array]", x = "[object Uint8Array]", w = "[object Uint8ClampedArray]", q = "[object Uint16Array]", I = "[object Uint32Array]", $ = {};
|
|
38822
|
+
$[v] = $[b] = $[C] = $[N] = $[L] = $[x] = $[w] = $[q] = $[I] = !0, $[o] = $[i] = $[M] = $[r] = $[_] = $[s] = $[d] = $[h] = $[l] = $[p] = $[u] = $[y] = $[g] = $[m] = $[k] = !1;
|
|
38823
|
+
function z(B) {
|
|
38824
|
+
return n(B) && t(B.length) && !!$[e(B)];
|
|
38825
38825
|
}
|
|
38826
38826
|
return ML = z, ML;
|
|
38827
38827
|
}
|
|
@@ -38980,8 +38980,8 @@ function h4e() {
|
|
|
38980
38980
|
N || (N = _ == "constructor");
|
|
38981
38981
|
}
|
|
38982
38982
|
if (C && !N) {
|
|
38983
|
-
var
|
|
38984
|
-
|
|
38983
|
+
var q = r.constructor, I = s.constructor;
|
|
38984
|
+
q != I && "constructor" in r && "constructor" in s && !(typeof q == "function" && q instanceof q && typeof I == "function" && I instanceof I) && (C = !1);
|
|
38985
38985
|
}
|
|
38986
38986
|
return p.delete(r), p.delete(s), C;
|
|
38987
38987
|
}
|
|
@@ -39046,22 +39046,22 @@ function f4e() {
|
|
|
39046
39046
|
function m(k, M, _, v, b, C) {
|
|
39047
39047
|
var N = r(k), L = r(M), x = N ? p : i(k), w = L ? p : i(M);
|
|
39048
39048
|
x = x == l ? u : x, w = w == l ? u : w;
|
|
39049
|
-
var
|
|
39050
|
-
if (
|
|
39049
|
+
var q = x == u, I = w == u, $ = x == w;
|
|
39050
|
+
if ($ && s(k)) {
|
|
39051
39051
|
if (!s(M))
|
|
39052
39052
|
return !1;
|
|
39053
|
-
N = !0,
|
|
39053
|
+
N = !0, q = !1;
|
|
39054
39054
|
}
|
|
39055
|
-
if (
|
|
39055
|
+
if ($ && !q)
|
|
39056
39056
|
return C || (C = new e()), N || d(k) ? t(k, M, _, v, b, C) : n(k, M, x, _, v, b, C);
|
|
39057
39057
|
if (!(_ & h)) {
|
|
39058
|
-
var z =
|
|
39059
|
-
if (z ||
|
|
39060
|
-
var
|
|
39061
|
-
return C || (C = new e()), b(
|
|
39058
|
+
var z = q && g.call(k, "__wrapped__"), B = I && g.call(M, "__wrapped__");
|
|
39059
|
+
if (z || B) {
|
|
39060
|
+
var D = z ? k.value() : k, H = B ? M.value() : M;
|
|
39061
|
+
return C || (C = new e()), b(D, H, _, v, C);
|
|
39062
39062
|
}
|
|
39063
39063
|
}
|
|
39064
|
-
return
|
|
39064
|
+
return $ ? (C || (C = new e()), o(k, M, _, v, b, C)) : !1;
|
|
39065
39065
|
}
|
|
39066
39066
|
return HL = m, HL;
|
|
39067
39067
|
}
|
|
@@ -39097,18 +39097,18 @@ const _4e = /* @__PURE__ */ qz(M4e), PMe = ({
|
|
|
39097
39097
|
cancelLabel: d = "Retour",
|
|
39098
39098
|
cancelIcon: h
|
|
39099
39099
|
}) => {
|
|
39100
|
-
const [l, p] = V(t), [u, y] = V({}), [g, m] = V({}), [k, M] = V(!1), _ =
|
|
39100
|
+
const [l, p] = V(t), [u, y] = V({}), [g, m] = V({}), [k, M] = V(!1), _ = W(t);
|
|
39101
39101
|
O(() => {
|
|
39102
39102
|
_4e(_.current, t) || (p(t), _.current = t);
|
|
39103
39103
|
}, [t]);
|
|
39104
|
-
const v = (w,
|
|
39105
|
-
const I = { ...l, [w]:
|
|
39104
|
+
const v = (w, q) => {
|
|
39105
|
+
const I = { ...l, [w]: q };
|
|
39106
39106
|
if (p(I), g[w]) {
|
|
39107
|
-
const
|
|
39108
|
-
if (
|
|
39109
|
-
const z = kC(
|
|
39110
|
-
y((
|
|
39111
|
-
...
|
|
39107
|
+
const $ = e.fields.find((z) => z.name === w);
|
|
39108
|
+
if ($) {
|
|
39109
|
+
const z = kC(q, $);
|
|
39110
|
+
y((B) => ({
|
|
39111
|
+
...B,
|
|
39112
39112
|
[w]: z.isValid ? "" : z.error
|
|
39113
39113
|
}));
|
|
39114
39114
|
}
|
|
@@ -39116,31 +39116,31 @@ const _4e = /* @__PURE__ */ qz(M4e), PMe = ({
|
|
|
39116
39116
|
}, b = (w) => {
|
|
39117
39117
|
if (!g[w]) {
|
|
39118
39118
|
m((I) => ({ ...I, [w]: !0 }));
|
|
39119
|
-
const
|
|
39120
|
-
if (
|
|
39121
|
-
const I = kC(l[w],
|
|
39122
|
-
y((
|
|
39123
|
-
|
|
39119
|
+
const q = e.fields.find((I) => I.name === w);
|
|
39120
|
+
if (q) {
|
|
39121
|
+
const I = kC(l[w], q);
|
|
39122
|
+
y(($) => ({
|
|
39123
|
+
...$,
|
|
39124
39124
|
[w]: I.isValid ? "" : I.error
|
|
39125
39125
|
}));
|
|
39126
39126
|
}
|
|
39127
39127
|
}
|
|
39128
39128
|
}, C = async (w) => {
|
|
39129
39129
|
w.preventDefault(), M(!0);
|
|
39130
|
-
const
|
|
39131
|
-
(
|
|
39130
|
+
const q = e.fields.reduce(
|
|
39131
|
+
($, z) => (z.type !== "section" && ($[z.name] = !0), $),
|
|
39132
39132
|
{}
|
|
39133
39133
|
);
|
|
39134
|
-
m(
|
|
39134
|
+
m(q);
|
|
39135
39135
|
const I = Vpe(
|
|
39136
39136
|
l,
|
|
39137
|
-
e.fields.filter((
|
|
39137
|
+
e.fields.filter(($) => $.type !== "section")
|
|
39138
39138
|
);
|
|
39139
39139
|
if (y(I.errors), I.isValid)
|
|
39140
39140
|
try {
|
|
39141
39141
|
await n(l);
|
|
39142
|
-
} catch (
|
|
39143
|
-
console.error("Erreur lors de la soumission:",
|
|
39142
|
+
} catch ($) {
|
|
39143
|
+
console.error("Erreur lors de la soumission:", $), y((z) => ({
|
|
39144
39144
|
...z,
|
|
39145
39145
|
__global: "Une erreur est survenue lors de la soumission"
|
|
39146
39146
|
}));
|
|
@@ -39174,7 +39174,7 @@ const _4e = /* @__PURE__ */ qz(M4e), PMe = ({
|
|
|
39174
39174
|
{
|
|
39175
39175
|
field: w,
|
|
39176
39176
|
value: l[w.name],
|
|
39177
|
-
onChange: (
|
|
39177
|
+
onChange: ($) => v(w.name, $),
|
|
39178
39178
|
onBlur: () => b(w.name),
|
|
39179
39179
|
error: u[w.name],
|
|
39180
39180
|
touched: g[w.name]
|
|
@@ -39199,10 +39199,10 @@ const _4e = /* @__PURE__ */ qz(M4e), PMe = ({
|
|
|
39199
39199
|
size: "md",
|
|
39200
39200
|
className: ge.submitButton,
|
|
39201
39201
|
disabled: k,
|
|
39202
|
-
children: k ? /* @__PURE__ */ f(
|
|
39202
|
+
children: k ? /* @__PURE__ */ f(ze, { children: [
|
|
39203
39203
|
/* @__PURE__ */ c("span", { className: "spinner-border spinner-border-sm me-2", role: "status" }),
|
|
39204
39204
|
"Validation..."
|
|
39205
|
-
] }) : /* @__PURE__ */ f(
|
|
39205
|
+
] }) : /* @__PURE__ */ f(ze, { children: [
|
|
39206
39206
|
L && (r === "left" || e.submitIconPosition === "left") && /* @__PURE__ */ c(L, { size: 16, className: "me-2" }),
|
|
39207
39207
|
o || e.submitText || "Valider",
|
|
39208
39208
|
L && (r === "right" || e.submitIconPosition === "right") && /* @__PURE__ */ c(L, { size: 16, className: "ms-2" })
|
|
@@ -39261,7 +39261,7 @@ const x$ = /* @__PURE__ */ new Map(), HMe = ({
|
|
|
39261
39261
|
dangerouslySetInnerHTML: { __html: s }
|
|
39262
39262
|
}
|
|
39263
39263
|
) : null;
|
|
39264
|
-
}, x4e = "_container_1gljv_85", b4e = "_tableWrapper_1gljv_111", w4e = "_tableControls_1gljv_117", L4e = "_controlsRight_1gljv_128", C4e = "_limitedRows_1gljv_151", N4e = "_table_1gljv_111", I4e = "_headerCell_1gljv_206", S4e = "_headerContent_1gljv_220", $4e = "_headerWords_1gljv_229", q4e = "_headerWord_1gljv_229", A4e = "_cellContent_1gljv_276", z4e = "_alignLeft_1gljv_286", V4e = "_alignCenter_1gljv_290", P4e = "_alignRight_1gljv_294", j4e = "_tableCell_1gljv_298", H4e = "_tableRow_1gljv_308", T4e = "_emptyRow_1gljv_385", D4e = "_toggleFiltersButton_1gljv_393", B4e = "_toggleSortButton_1gljv_394", R4e = "_buttonTextCompact_1gljv_415", F4e = "_uppercaseSmall_1gljv_450", O4e = "_filtersPanel_1gljv_463", E4e = "_filtersPanelInline_1gljv_481", U4e = "_filtersPanelHorizontal_1gljv_492", W4e = "_filtersRow_1gljv_492", G4e = "_filtersActionsHorizontal_1gljv_525", Z4e = "_filterItemInline_1gljv_542", K4e = "_filterLabel_1gljv_571", X4e = "_filterInput_1gljv_576", Y4e = "_filterSelect_1gljv_577", J4e = "_operatorSelect_1gljv_578", Q4e = "_operatorInput_1gljv_579", e5e = "_activeFilterTag_1gljv_597", t5e = "_actionsGroup_1gljv_609", a5e = "_applyButton_1gljv_615", n5e = "_cancelButton_1gljv_625", o5e = "_columnSorterContainer_1gljv_649", i5e = "_sorterControls_1gljv_654", c5e = "_sortDropdownWrapper_1gljv_659", r5e = "_sortDropdown_1gljv_659", s5e = "_sortDropdownHeader_1gljv_679", d5e = "_closeButton_1gljv_688", l5e = "_sortDropdownContent_1gljv_703", h5e = "_sortDropdownItem_1gljv_709", p5e = "_sortDirectionButtons_1gljv_734", u5e = "_sortDirectionButton_1gljv_734", y5e = "_activeSort_1gljv_757", k5e = "_sortActions_1gljv_764", m5e = "_paginationButton_1gljv_842", f5e = "_pageSizeSelect_1gljv_844", g5e = "_topPagination_1gljv_853", v5e = "_paginationContainer_1gljv_861", M5e = "_leftGroup_1gljv_874", _5e = "_pageSizeControls_1gljv_882", x5e = "_paginationInfo_1gljv_908", b5e = "_paginationControls_1gljv_916", w5e = "_disabledButton_1gljv_947", L5e = "_activeButton_1gljv_952", C5e = "_navigationButton_1gljv_962", N5e = "_operatorFilterContainer_1gljv_1010", I5e = "_rangeSeparator_1gljv_1016", S5e = "_activeFiltersSection_1gljv_1179", $5e = "_activeFiltersRow_1gljv_1184", q5e = "_activeFiltersList_1gljv_1192", A5e = "_clearAllButton_1gljv_1200", z5e = "_removeFilterButton_1gljv_1221", V5e = "_sortIndicator_1gljv_1272", P5e = "_active_1gljv_349", j5e = "_clearSortButton_1gljv_1371", H5e = "_loaderSpinner_1gljv_2743", T5e = "_loaderSpinnerSmall_1gljv_2755", D5e = "_paginationLoading_1gljv_2772", B5e = "_loadingButton_1gljv_2780", R5e = "_loadingIndicator_1gljv_2791",
|
|
39264
|
+
}, x4e = "_container_1gljv_85", b4e = "_tableWrapper_1gljv_111", w4e = "_tableControls_1gljv_117", L4e = "_controlsRight_1gljv_128", C4e = "_limitedRows_1gljv_151", N4e = "_table_1gljv_111", I4e = "_headerCell_1gljv_206", S4e = "_headerContent_1gljv_220", $4e = "_headerWords_1gljv_229", q4e = "_headerWord_1gljv_229", A4e = "_cellContent_1gljv_276", z4e = "_alignLeft_1gljv_286", V4e = "_alignCenter_1gljv_290", P4e = "_alignRight_1gljv_294", j4e = "_tableCell_1gljv_298", H4e = "_tableRow_1gljv_308", T4e = "_emptyRow_1gljv_385", D4e = "_toggleFiltersButton_1gljv_393", B4e = "_toggleSortButton_1gljv_394", R4e = "_buttonTextCompact_1gljv_415", F4e = "_uppercaseSmall_1gljv_450", O4e = "_filtersPanel_1gljv_463", E4e = "_filtersPanelInline_1gljv_481", U4e = "_filtersPanelHorizontal_1gljv_492", W4e = "_filtersRow_1gljv_492", G4e = "_filtersActionsHorizontal_1gljv_525", Z4e = "_filterItemInline_1gljv_542", K4e = "_filterLabel_1gljv_571", X4e = "_filterInput_1gljv_576", Y4e = "_filterSelect_1gljv_577", J4e = "_operatorSelect_1gljv_578", Q4e = "_operatorInput_1gljv_579", e5e = "_activeFilterTag_1gljv_597", t5e = "_actionsGroup_1gljv_609", a5e = "_applyButton_1gljv_615", n5e = "_cancelButton_1gljv_625", o5e = "_columnSorterContainer_1gljv_649", i5e = "_sorterControls_1gljv_654", c5e = "_sortDropdownWrapper_1gljv_659", r5e = "_sortDropdown_1gljv_659", s5e = "_sortDropdownHeader_1gljv_679", d5e = "_closeButton_1gljv_688", l5e = "_sortDropdownContent_1gljv_703", h5e = "_sortDropdownItem_1gljv_709", p5e = "_sortDirectionButtons_1gljv_734", u5e = "_sortDirectionButton_1gljv_734", y5e = "_activeSort_1gljv_757", k5e = "_sortActions_1gljv_764", m5e = "_paginationButton_1gljv_842", f5e = "_pageSizeSelect_1gljv_844", g5e = "_topPagination_1gljv_853", v5e = "_paginationContainer_1gljv_861", M5e = "_leftGroup_1gljv_874", _5e = "_pageSizeControls_1gljv_882", x5e = "_paginationInfo_1gljv_908", b5e = "_paginationControls_1gljv_916", w5e = "_disabledButton_1gljv_947", L5e = "_activeButton_1gljv_952", C5e = "_navigationButton_1gljv_962", N5e = "_operatorFilterContainer_1gljv_1010", I5e = "_rangeSeparator_1gljv_1016", S5e = "_activeFiltersSection_1gljv_1179", $5e = "_activeFiltersRow_1gljv_1184", q5e = "_activeFiltersList_1gljv_1192", A5e = "_clearAllButton_1gljv_1200", z5e = "_removeFilterButton_1gljv_1221", V5e = "_sortIndicator_1gljv_1272", P5e = "_active_1gljv_349", j5e = "_clearSortButton_1gljv_1371", H5e = "_loaderSpinner_1gljv_2743", T5e = "_loaderSpinnerSmall_1gljv_2755", D5e = "_paginationLoading_1gljv_2772", B5e = "_loadingButton_1gljv_2780", R5e = "_loadingIndicator_1gljv_2791", j = {
|
|
39265
39265
|
container: x4e,
|
|
39266
39266
|
tableWrapper: b4e,
|
|
39267
39267
|
tableControls: w4e,
|
|
@@ -39342,7 +39342,7 @@ const x$ = /* @__PURE__ */ new Map(), HMe = ({
|
|
|
39342
39342
|
value: t === "" ? "" : String(t),
|
|
39343
39343
|
onChange: (i) => n(i.target.value === "" ? "" : i.target.value === "true"),
|
|
39344
39344
|
disabled: o,
|
|
39345
|
-
className:
|
|
39345
|
+
className: j.filterSelect,
|
|
39346
39346
|
children: [
|
|
39347
39347
|
/* @__PURE__ */ c("option", { value: "", children: `Filtrer ${e.label}...` }),
|
|
39348
39348
|
/* @__PURE__ */ c("option", { value: "true", children: "Oui" }),
|
|
@@ -39357,7 +39357,7 @@ const x$ = /* @__PURE__ */ new Map(), HMe = ({
|
|
|
39357
39357
|
onChange: (i) => n(i.target.value),
|
|
39358
39358
|
placeholder: `Filtrer ${e.label}...`,
|
|
39359
39359
|
disabled: o,
|
|
39360
|
-
className:
|
|
39360
|
+
className: j.filterInput
|
|
39361
39361
|
}
|
|
39362
39362
|
), E5e = ({
|
|
39363
39363
|
config: e,
|
|
@@ -39390,7 +39390,7 @@ const x$ = /* @__PURE__ */ new Map(), HMe = ({
|
|
|
39390
39390
|
value: t.map(String),
|
|
39391
39391
|
onChange: s,
|
|
39392
39392
|
disabled: o,
|
|
39393
|
-
className:
|
|
39393
|
+
className: j.filterMultiSelect,
|
|
39394
39394
|
children: i.map((d, h) => /* @__PURE__ */ c("option", { value: String(d.value), children: d.label }, h))
|
|
39395
39395
|
}
|
|
39396
39396
|
);
|
|
@@ -39407,7 +39407,7 @@ const x$ = /* @__PURE__ */ new Map(), HMe = ({
|
|
|
39407
39407
|
},
|
|
39408
39408
|
placeholder: e.placeholder || `Filtrer ${e.label}...`,
|
|
39409
39409
|
disabled: o,
|
|
39410
|
-
className:
|
|
39410
|
+
className: j.filterInput
|
|
39411
39411
|
}
|
|
39412
39412
|
);
|
|
39413
39413
|
}, U5e = ({
|
|
@@ -39443,7 +39443,7 @@ const x$ = /* @__PURE__ */ new Map(), HMe = ({
|
|
|
39443
39443
|
value: String(t || ""),
|
|
39444
39444
|
onChange: h,
|
|
39445
39445
|
disabled: o,
|
|
39446
|
-
className:
|
|
39446
|
+
className: j.filterInput,
|
|
39447
39447
|
children: [
|
|
39448
39448
|
/* @__PURE__ */ c("option", { value: "", children: "Select..." }),
|
|
39449
39449
|
i.map((l) => /* @__PURE__ */ c("option", { value: l.value, children: l.label }, l.value))
|
|
@@ -39465,7 +39465,7 @@ const x$ = /* @__PURE__ */ new Map(), HMe = ({
|
|
|
39465
39465
|
},
|
|
39466
39466
|
placeholder: e.placeholder || `Filtrer ${e.label}...`,
|
|
39467
39467
|
disabled: o,
|
|
39468
|
-
className:
|
|
39468
|
+
className: j.filterInput
|
|
39469
39469
|
}
|
|
39470
39470
|
);
|
|
39471
39471
|
}, G5e = ({
|
|
@@ -39483,14 +39483,14 @@ const x$ = /* @__PURE__ */ new Map(), HMe = ({
|
|
|
39483
39483
|
}, l = (p) => {
|
|
39484
39484
|
d(p.target.value);
|
|
39485
39485
|
};
|
|
39486
|
-
return /* @__PURE__ */ f("div", { className:
|
|
39486
|
+
return /* @__PURE__ */ f("div", { className: j.operatorFilterContainer, children: [
|
|
39487
39487
|
/* @__PURE__ */ f(
|
|
39488
39488
|
"select",
|
|
39489
39489
|
{
|
|
39490
39490
|
value: i,
|
|
39491
39491
|
onChange: h,
|
|
39492
39492
|
disabled: o,
|
|
39493
|
-
className:
|
|
39493
|
+
className: j.operatorSelect,
|
|
39494
39494
|
children: [
|
|
39495
39495
|
/* @__PURE__ */ c("option", { value: "", children: "Sélectionner un opérateur" }),
|
|
39496
39496
|
e.operators.map((p) => /* @__PURE__ */ c("option", { value: String(p.value), children: p.label }, String(p.value)))
|
|
@@ -39505,7 +39505,7 @@ const x$ = /* @__PURE__ */ new Map(), HMe = ({
|
|
|
39505
39505
|
onChange: l,
|
|
39506
39506
|
placeholder: "Valeur",
|
|
39507
39507
|
disabled: o || !i,
|
|
39508
|
-
className:
|
|
39508
|
+
className: j.operatorInput
|
|
39509
39509
|
}
|
|
39510
39510
|
)
|
|
39511
39511
|
] });
|
|
@@ -39515,7 +39515,7 @@ const x$ = /* @__PURE__ */ new Map(), HMe = ({
|
|
|
39515
39515
|
}, r = (s) => {
|
|
39516
39516
|
t({ ...o, end: s.target.value });
|
|
39517
39517
|
};
|
|
39518
|
-
return /* @__PURE__ */ f("div", { className:
|
|
39518
|
+
return /* @__PURE__ */ f("div", { className: j.dateRangeContainer, children: [
|
|
39519
39519
|
/* @__PURE__ */ c(
|
|
39520
39520
|
"input",
|
|
39521
39521
|
{
|
|
@@ -39523,10 +39523,10 @@ const x$ = /* @__PURE__ */ new Map(), HMe = ({
|
|
|
39523
39523
|
value: o.start || "",
|
|
39524
39524
|
onChange: i,
|
|
39525
39525
|
disabled: n,
|
|
39526
|
-
className:
|
|
39526
|
+
className: j.filterInput
|
|
39527
39527
|
}
|
|
39528
39528
|
),
|
|
39529
|
-
/* @__PURE__ */ c("span", { className:
|
|
39529
|
+
/* @__PURE__ */ c("span", { className: j.rangeSeparator, children: "→" }),
|
|
39530
39530
|
/* @__PURE__ */ c(
|
|
39531
39531
|
"input",
|
|
39532
39532
|
{
|
|
@@ -39534,7 +39534,7 @@ const x$ = /* @__PURE__ */ new Map(), HMe = ({
|
|
|
39534
39534
|
value: o.end || "",
|
|
39535
39535
|
onChange: r,
|
|
39536
39536
|
disabled: n,
|
|
39537
|
-
className:
|
|
39537
|
+
className: j.filterInput
|
|
39538
39538
|
}
|
|
39539
39539
|
)
|
|
39540
39540
|
] });
|
|
@@ -39905,60 +39905,60 @@ const Q5e = ({ value: e }) => e, eke = ({ value: e }) => ie.createElement(
|
|
|
39905
39905
|
onFiltersChange: n,
|
|
39906
39906
|
onApply: o,
|
|
39907
39907
|
isControlled: i
|
|
39908
|
-
}), w =
|
|
39908
|
+
}), w = W(null), q = W(null);
|
|
39909
39909
|
O(() => {
|
|
39910
39910
|
if (v && w.current) {
|
|
39911
|
-
const
|
|
39912
|
-
l?.(
|
|
39911
|
+
const H = w.current.getBoundingClientRect().height;
|
|
39912
|
+
l?.(H);
|
|
39913
39913
|
} else
|
|
39914
39914
|
l?.(0);
|
|
39915
39915
|
}, [v, e, C, l]);
|
|
39916
39916
|
const I = () => {
|
|
39917
|
-
typeof s == "boolean" ? d?.(!s) : _((
|
|
39918
|
-
const
|
|
39919
|
-
return d?.(
|
|
39917
|
+
typeof s == "boolean" ? d?.(!s) : _((H) => {
|
|
39918
|
+
const S = !H;
|
|
39919
|
+
return d?.(S), S;
|
|
39920
39920
|
});
|
|
39921
|
-
},
|
|
39922
|
-
const
|
|
39923
|
-
return
|
|
39921
|
+
}, $ = () => e.map((H) => {
|
|
39922
|
+
const S = C?.[H.id];
|
|
39923
|
+
return S == null || typeof S == "string" && S.trim() === "" ? null : { id: H.id, label: H.label, value: S };
|
|
39924
39924
|
}).filter(Boolean), z = async () => {
|
|
39925
|
-
let
|
|
39925
|
+
let H;
|
|
39926
39926
|
try {
|
|
39927
|
-
|
|
39927
|
+
H = await L();
|
|
39928
39928
|
} catch {
|
|
39929
|
-
|
|
39929
|
+
H = void 0;
|
|
39930
39930
|
}
|
|
39931
|
-
let
|
|
39932
|
-
|
|
39933
|
-
},
|
|
39931
|
+
let S = [];
|
|
39932
|
+
H && Array.isArray(H) && H.length > 0 ? S = H : b && b.length > 0 ? S = b : S = $(), n?.(S), o?.(S);
|
|
39933
|
+
}, B = () => {
|
|
39934
39934
|
d?.(!1), typeof s != "boolean" && _(!1);
|
|
39935
|
-
},
|
|
39935
|
+
}, D = () => {
|
|
39936
39936
|
x(), n?.([]), o?.([]);
|
|
39937
39937
|
};
|
|
39938
39938
|
return O(() => {
|
|
39939
|
-
const
|
|
39940
|
-
v &&
|
|
39941
|
-
},
|
|
39939
|
+
const H = (A) => {
|
|
39940
|
+
v && q.current && (q.current.contains(A.target) || (d?.(!1), typeof s != "boolean" && _(!1)));
|
|
39941
|
+
}, S = (A) => {
|
|
39942
39942
|
A.key === "Escape" && v && (d?.(!1), typeof s != "boolean" && _(!1));
|
|
39943
39943
|
};
|
|
39944
|
-
return v && (document.addEventListener("pointerdown",
|
|
39945
|
-
document.removeEventListener("pointerdown",
|
|
39944
|
+
return v && (document.addEventListener("pointerdown", H), document.addEventListener("keydown", S)), () => {
|
|
39945
|
+
document.removeEventListener("pointerdown", H), document.removeEventListener("keydown", S);
|
|
39946
39946
|
};
|
|
39947
|
-
}, [v, s, d]), /* @__PURE__ */ f("div", { className:
|
|
39947
|
+
}, [v, s, d]), /* @__PURE__ */ f("div", { className: j.advancedFiltersContainer, ref: q, children: [
|
|
39948
39948
|
/* @__PURE__ */ f(
|
|
39949
39949
|
"button",
|
|
39950
39950
|
{
|
|
39951
|
-
className: `${
|
|
39951
|
+
className: `${j.toggleFiltersButton} ${b.length > 0 ? j.active : ""} ${v ? j.toggleFiltersButtonOpen : ""} ${k ? j.loadingButton : ""}`,
|
|
39952
39952
|
onClick: I,
|
|
39953
39953
|
"aria-expanded": v,
|
|
39954
39954
|
"aria-controls": "advanced-filters-panel",
|
|
39955
39955
|
type: "button",
|
|
39956
39956
|
disabled: k,
|
|
39957
39957
|
children: [
|
|
39958
|
-
k ? /* @__PURE__ */ c("span", { className:
|
|
39959
|
-
/* @__PURE__ */ c("span", { className:
|
|
39960
|
-
b.length > 0 && !k && /* @__PURE__ */ c("span", { className:
|
|
39961
|
-
k && /* @__PURE__ */ c("span", { className:
|
|
39958
|
+
k ? /* @__PURE__ */ c("span", { className: j.loaderSpinnerSmall }) : /* @__PURE__ */ c(Tt, { size: 14 }),
|
|
39959
|
+
/* @__PURE__ */ c("span", { className: j.buttonTextCompact, children: p }),
|
|
39960
|
+
b.length > 0 && !k && /* @__PURE__ */ c("span", { className: j.filterCountBadge, "aria-hidden": !0, children: b.length }),
|
|
39961
|
+
k && /* @__PURE__ */ c("span", { className: j.loadingIndicator, "aria-hidden": !0, children: "Chargement..." })
|
|
39962
39962
|
]
|
|
39963
39963
|
}
|
|
39964
39964
|
),
|
|
@@ -39967,53 +39967,53 @@ const Q5e = ({ value: e }) => e, eke = ({ value: e }) => ie.createElement(
|
|
|
39967
39967
|
{
|
|
39968
39968
|
id: "advanced-filters-panel",
|
|
39969
39969
|
ref: w,
|
|
39970
|
-
className: `${
|
|
39970
|
+
className: `${j.filtersPanel} ${h === "top" ? `${j.filtersPanelInline} ${j.filtersPanelHorizontal}` : ""}`,
|
|
39971
39971
|
role: "region",
|
|
39972
39972
|
"aria-label": "Panneau de filtres avancés",
|
|
39973
39973
|
children: [
|
|
39974
|
-
/* @__PURE__ */ c("div", { className:
|
|
39975
|
-
/* @__PURE__ */ f("label", { className:
|
|
39976
|
-
|
|
39977
|
-
|
|
39974
|
+
/* @__PURE__ */ c("div", { className: j.filtersRow, children: e.map((H) => /* @__PURE__ */ f("div", { className: `${j.filterItem} ${j.filterItemInline}`, children: [
|
|
39975
|
+
/* @__PURE__ */ f("label", { className: j.filterLabel, children: [
|
|
39976
|
+
H.label,
|
|
39977
|
+
H.required && /* @__PURE__ */ c("span", { className: j.required, children: "*" })
|
|
39978
39978
|
] }),
|
|
39979
39979
|
/* @__PURE__ */ c(
|
|
39980
39980
|
K5e,
|
|
39981
39981
|
{
|
|
39982
|
-
config:
|
|
39983
|
-
value: C[
|
|
39984
|
-
onChange: (
|
|
39985
|
-
disabled:
|
|
39982
|
+
config: H,
|
|
39983
|
+
value: C[H.id],
|
|
39984
|
+
onChange: (S) => N(H.id, S),
|
|
39985
|
+
disabled: H.disabled
|
|
39986
39986
|
}
|
|
39987
39987
|
)
|
|
39988
|
-
] },
|
|
39989
|
-
/* @__PURE__ */ f("div", { className:
|
|
39990
|
-
/* @__PURE__ */ c("div", { className:
|
|
39991
|
-
/* @__PURE__ */ c("span", { className:
|
|
39992
|
-
/* @__PURE__ */ c("div", { className:
|
|
39993
|
-
|
|
39988
|
+
] }, H.id)) }),
|
|
39989
|
+
/* @__PURE__ */ f("div", { className: j.filtersActionsHorizontal, children: [
|
|
39990
|
+
/* @__PURE__ */ c("div", { className: j.activeFiltersSection, children: b.length > 0 && /* @__PURE__ */ f("div", { className: j.activeFiltersRow, children: [
|
|
39991
|
+
/* @__PURE__ */ c("span", { className: j.activeLabelCompact, children: "Actifs :" }),
|
|
39992
|
+
/* @__PURE__ */ c("div", { className: j.activeFiltersList, children: b.map((H) => /* @__PURE__ */ f("div", { className: j.activeFilterTag, children: [
|
|
39993
|
+
H.label ?? H.id,
|
|
39994
39994
|
/* @__PURE__ */ c(
|
|
39995
39995
|
"button",
|
|
39996
39996
|
{
|
|
39997
|
-
className:
|
|
39998
|
-
onClick: () => N(
|
|
39999
|
-
"aria-label": `Supprimer ${
|
|
39997
|
+
className: j.removeFilterButton,
|
|
39998
|
+
onClick: () => N(H.id, void 0),
|
|
39999
|
+
"aria-label": `Supprimer ${H.id}`,
|
|
40000
40000
|
type: "button",
|
|
40001
40001
|
children: "×"
|
|
40002
40002
|
}
|
|
40003
40003
|
)
|
|
40004
|
-
] },
|
|
40005
|
-
/* @__PURE__ */ f("button", { className:
|
|
40004
|
+
] }, H.id)) }),
|
|
40005
|
+
/* @__PURE__ */ f("button", { className: j.clearAllButton, onClick: D, type: "button", children: [
|
|
40006
40006
|
/* @__PURE__ */ c(ct, { size: 12 }),
|
|
40007
40007
|
" ",
|
|
40008
40008
|
g
|
|
40009
40009
|
] })
|
|
40010
40010
|
] }) }),
|
|
40011
|
-
/* @__PURE__ */ f("div", { className:
|
|
40011
|
+
/* @__PURE__ */ f("div", { className: j.actionsGroup, children: [
|
|
40012
40012
|
/* @__PURE__ */ c(
|
|
40013
40013
|
"button",
|
|
40014
40014
|
{
|
|
40015
|
-
className:
|
|
40016
|
-
onClick:
|
|
40015
|
+
className: j.cancelButton,
|
|
40016
|
+
onClick: B,
|
|
40017
40017
|
type: "button",
|
|
40018
40018
|
disabled: k,
|
|
40019
40019
|
children: y
|
|
@@ -40022,13 +40022,13 @@ const Q5e = ({ value: e }) => e, eke = ({ value: e }) => ie.createElement(
|
|
|
40022
40022
|
/* @__PURE__ */ c(
|
|
40023
40023
|
"button",
|
|
40024
40024
|
{
|
|
40025
|
-
className: `${
|
|
40025
|
+
className: `${j.applyButton} ${k ? j.loadingButton : ""}`,
|
|
40026
40026
|
onClick: z,
|
|
40027
40027
|
type: "button",
|
|
40028
40028
|
disabled: m || k,
|
|
40029
40029
|
"aria-disabled": m || k,
|
|
40030
|
-
children: k ? /* @__PURE__ */ f(
|
|
40031
|
-
/* @__PURE__ */ c("span", { className:
|
|
40030
|
+
children: k ? /* @__PURE__ */ f(ze, { children: [
|
|
40031
|
+
/* @__PURE__ */ c("span", { className: j.loaderSpinnerSmall }),
|
|
40032
40032
|
/* @__PURE__ */ c("span", { children: "Chargement..." })
|
|
40033
40033
|
] }) : u
|
|
40034
40034
|
}
|
|
@@ -40049,7 +40049,7 @@ const Q5e = ({ value: e }) => e, eke = ({ value: e }) => ie.createElement(
|
|
|
40049
40049
|
label: o = "Sort",
|
|
40050
40050
|
loading: i = !1
|
|
40051
40051
|
}) => {
|
|
40052
|
-
const [r, s] = V(!1), d = e.filter((m) => m.sortable), h =
|
|
40052
|
+
const [r, s] = V(!1), d = e.filter((m) => m.sortable), h = W(null), l = t?.key !== null && t?.key !== void 0, p = (m, k) => {
|
|
40053
40053
|
n({ key: m, direction: k }), s(!1);
|
|
40054
40054
|
}, u = () => {
|
|
40055
40055
|
n({ key: null, direction: "asc" }), s(!1);
|
|
@@ -40075,36 +40075,36 @@ const Q5e = ({ value: e }) => e, eke = ({ value: e }) => ie.createElement(
|
|
|
40075
40075
|
return r ? m.style.overflow = "hidden" : m.style.overflow = k, () => {
|
|
40076
40076
|
m.style.overflow = k;
|
|
40077
40077
|
};
|
|
40078
|
-
}, [r]), /* @__PURE__ */ c("div", { className:
|
|
40078
|
+
}, [r]), /* @__PURE__ */ c("div", { className: j.columnSorterContainer, ref: h, children: /* @__PURE__ */ c("div", { className: j.sorterControls, children: d.length > 0 && /* @__PURE__ */ f("div", { className: j.sortDropdownWrapper, ref: h, children: [
|
|
40079
40079
|
/* @__PURE__ */ f(
|
|
40080
40080
|
"button",
|
|
40081
40081
|
{
|
|
40082
|
-
className: `${
|
|
40082
|
+
className: `${j.toggleSortButton} ${r ? j.toggleSortButtonOpen : ""} ${l ? j.active : ""} ${i ? j.loadingButton : ""}`,
|
|
40083
40083
|
onClick: y,
|
|
40084
40084
|
"aria-expanded": r,
|
|
40085
40085
|
"aria-haspopup": "true",
|
|
40086
40086
|
type: "button",
|
|
40087
40087
|
disabled: i,
|
|
40088
40088
|
children: [
|
|
40089
|
-
i ? /* @__PURE__ */ c("span", { className:
|
|
40089
|
+
i ? /* @__PURE__ */ c("span", { className: j.loaderSpinnerSmall }) : /* @__PURE__ */ c(li, { size: 14 }),
|
|
40090
40090
|
/* @__PURE__ */ c(
|
|
40091
40091
|
"span",
|
|
40092
40092
|
{
|
|
40093
|
-
className: `${
|
|
40093
|
+
className: `${j.buttonTextCompact} ${L$(o) ? j.uppercaseSmall : ""}`,
|
|
40094
40094
|
children: o
|
|
40095
40095
|
}
|
|
40096
40096
|
),
|
|
40097
|
-
l && !i && /* @__PURE__ */ c("div", { className:
|
|
40097
|
+
l && !i && /* @__PURE__ */ c("div", { className: j.sortIndicator, children: t?.direction === "asc" ? /* @__PURE__ */ c(Oo, { size: 12 }) : /* @__PURE__ */ c(Ot, { size: 12 }) })
|
|
40098
40098
|
]
|
|
40099
40099
|
}
|
|
40100
40100
|
),
|
|
40101
|
-
r && /* @__PURE__ */ f("div", { className: `${
|
|
40102
|
-
/* @__PURE__ */ f("div", { className:
|
|
40101
|
+
r && /* @__PURE__ */ f("div", { className: `${j.sortDropdown} ${j.sortDropdownInline}`, role: "menu", children: [
|
|
40102
|
+
/* @__PURE__ */ f("div", { className: j.sortDropdownHeader, children: [
|
|
40103
40103
|
/* @__PURE__ */ c("span", { children: "Trier par:" }),
|
|
40104
40104
|
/* @__PURE__ */ c(
|
|
40105
40105
|
"button",
|
|
40106
40106
|
{
|
|
40107
|
-
className:
|
|
40107
|
+
className: j.closeButton,
|
|
40108
40108
|
onClick: g,
|
|
40109
40109
|
"aria-label": "Fermer",
|
|
40110
40110
|
type: "button",
|
|
@@ -40112,12 +40112,12 @@ const Q5e = ({ value: e }) => e, eke = ({ value: e }) => ie.createElement(
|
|
|
40112
40112
|
}
|
|
40113
40113
|
)
|
|
40114
40114
|
] }),
|
|
40115
|
-
/* @__PURE__ */ c("div", { className:
|
|
40115
|
+
/* @__PURE__ */ c("div", { className: j.sortDropdownContent, children: d.map((m) => {
|
|
40116
40116
|
const k = String(m.label ?? m.id), M = L$(k);
|
|
40117
40117
|
return /* @__PURE__ */ f(
|
|
40118
40118
|
"div",
|
|
40119
40119
|
{
|
|
40120
|
-
className:
|
|
40120
|
+
className: j.sortDropdownItem,
|
|
40121
40121
|
role: "menuitem",
|
|
40122
40122
|
tabIndex: 0,
|
|
40123
40123
|
onKeyDown: (_) => {
|
|
@@ -40127,17 +40127,17 @@ const Q5e = ({ value: e }) => e, eke = ({ value: e }) => ie.createElement(
|
|
|
40127
40127
|
/* @__PURE__ */ c(
|
|
40128
40128
|
"span",
|
|
40129
40129
|
{
|
|
40130
|
-
className: `${
|
|
40130
|
+
className: `${j.columnSorterLabel} ${M ? j.uppercaseSmall : ""}`,
|
|
40131
40131
|
title: k,
|
|
40132
40132
|
"aria-label": k,
|
|
40133
40133
|
children: k
|
|
40134
40134
|
}
|
|
40135
40135
|
),
|
|
40136
|
-
/* @__PURE__ */ f("div", { className:
|
|
40136
|
+
/* @__PURE__ */ f("div", { className: j.sortDirectionButtons, children: [
|
|
40137
40137
|
/* @__PURE__ */ c(
|
|
40138
40138
|
"button",
|
|
40139
40139
|
{
|
|
40140
|
-
className: `${
|
|
40140
|
+
className: `${j.sortDirectionButton} ${t?.key === m.id && t?.direction === "asc" ? j.activeSort : ""}`,
|
|
40141
40141
|
onClick: () => p(m.id, "asc"),
|
|
40142
40142
|
title: "Trier par ordre croissant",
|
|
40143
40143
|
type: "button",
|
|
@@ -40147,7 +40147,7 @@ const Q5e = ({ value: e }) => e, eke = ({ value: e }) => ie.createElement(
|
|
|
40147
40147
|
/* @__PURE__ */ c(
|
|
40148
40148
|
"button",
|
|
40149
40149
|
{
|
|
40150
|
-
className: `${
|
|
40150
|
+
className: `${j.sortDirectionButton} ${t?.key === m.id && t?.direction === "desc" ? j.activeSort : ""}`,
|
|
40151
40151
|
onClick: () => p(m.id, "desc"),
|
|
40152
40152
|
title: "Trier par ordre décroissant",
|
|
40153
40153
|
type: "button",
|
|
@@ -40160,10 +40160,10 @@ const Q5e = ({ value: e }) => e, eke = ({ value: e }) => ie.createElement(
|
|
|
40160
40160
|
m.id
|
|
40161
40161
|
);
|
|
40162
40162
|
}) }),
|
|
40163
|
-
l && /* @__PURE__ */ c("div", { className:
|
|
40163
|
+
l && /* @__PURE__ */ c("div", { className: j.sortActions, children: /* @__PURE__ */ f(
|
|
40164
40164
|
"button",
|
|
40165
40165
|
{
|
|
40166
|
-
className:
|
|
40166
|
+
className: j.clearSortButton,
|
|
40167
40167
|
onClick: u,
|
|
40168
40168
|
type: "button",
|
|
40169
40169
|
children: [
|
|
@@ -40198,31 +40198,31 @@ const Q5e = ({ value: e }) => e, eke = ({ value: e }) => ie.createElement(
|
|
|
40198
40198
|
for (let b = _; b <= v; b++) k.push(b);
|
|
40199
40199
|
return k;
|
|
40200
40200
|
};
|
|
40201
|
-
return /* @__PURE__ */ f("div", { className:
|
|
40202
|
-
/* @__PURE__ */ c("div", { className:
|
|
40201
|
+
return /* @__PURE__ */ f("div", { className: j.paginationContainer, role: "navigation", "aria-label": "Pagination", children: [
|
|
40202
|
+
/* @__PURE__ */ c("div", { className: j.leftGroup, children: s && /* @__PURE__ */ c("div", { className: j.pageSizeControls, children: /* @__PURE__ */ c(
|
|
40203
40203
|
"select",
|
|
40204
40204
|
{
|
|
40205
40205
|
value: n,
|
|
40206
40206
|
onChange: (k) => s(Number(k.target.value)),
|
|
40207
|
-
className:
|
|
40207
|
+
className: j.pageSizeSelect,
|
|
40208
40208
|
"aria-label": "Taille de page",
|
|
40209
40209
|
disabled: d,
|
|
40210
40210
|
children: [10, 20, 30].map((k) => /* @__PURE__ */ c("option", { value: k, children: k }, k))
|
|
40211
40211
|
}
|
|
40212
40212
|
) }) }),
|
|
40213
|
-
/* @__PURE__ */ c("div", { className:
|
|
40214
|
-
/* @__PURE__ */ c("span", { className:
|
|
40213
|
+
/* @__PURE__ */ c("div", { className: j.paginationInfo, "aria-live": "polite", children: d ? /* @__PURE__ */ f("span", { className: j.paginationLoading, children: [
|
|
40214
|
+
/* @__PURE__ */ c("span", { className: j.loaderSpinner }),
|
|
40215
40215
|
/* @__PURE__ */ c("span", { children: "Chargement..." })
|
|
40216
40216
|
] }) : `${y}-${g} ${i}` }),
|
|
40217
|
-
/* @__PURE__ */ f("div", { className:
|
|
40217
|
+
/* @__PURE__ */ f("div", { className: j.paginationControls, children: [
|
|
40218
40218
|
/* @__PURE__ */ c(
|
|
40219
40219
|
"button",
|
|
40220
40220
|
{
|
|
40221
40221
|
onClick: p,
|
|
40222
40222
|
disabled: l === 1 || d,
|
|
40223
|
-
className: `${
|
|
40223
|
+
className: `${j.paginationButton} ${j.navigationButton} ${l === 1 ? j.disabledButton : ""} ${d ? j.loadingButton : ""}`,
|
|
40224
40224
|
"aria-label": "Page précédente",
|
|
40225
|
-
children: d && l > 1 ? /* @__PURE__ */ c("span", { className:
|
|
40225
|
+
children: d && l > 1 ? /* @__PURE__ */ c("span", { className: j.loaderSpinnerSmall }) : "«"
|
|
40226
40226
|
}
|
|
40227
40227
|
),
|
|
40228
40228
|
m().map((k) => /* @__PURE__ */ c(
|
|
@@ -40231,8 +40231,8 @@ const Q5e = ({ value: e }) => e, eke = ({ value: e }) => ie.createElement(
|
|
|
40231
40231
|
onClick: () => r(k),
|
|
40232
40232
|
disabled: d,
|
|
40233
40233
|
"aria-current": l === k ? "page" : void 0,
|
|
40234
|
-
className: `${
|
|
40235
|
-
children: d && l === k ? /* @__PURE__ */ c("span", { className:
|
|
40234
|
+
className: `${j.paginationButton} ${l === k ? j.activeButton : ""} ${d ? j.loadingButton : ""}`,
|
|
40235
|
+
children: d && l === k ? /* @__PURE__ */ c("span", { className: j.loaderSpinnerSmall }) : k
|
|
40236
40236
|
},
|
|
40237
40237
|
k
|
|
40238
40238
|
)),
|
|
@@ -40241,9 +40241,9 @@ const Q5e = ({ value: e }) => e, eke = ({ value: e }) => ie.createElement(
|
|
|
40241
40241
|
{
|
|
40242
40242
|
onClick: u,
|
|
40243
40243
|
disabled: d || l >= h,
|
|
40244
|
-
className: `${
|
|
40244
|
+
className: `${j.paginationButton} ${j.navigationButton} ${d ? j.loadingButton : ""} ${l >= h ? j.disabledButton : ""}`,
|
|
40245
40245
|
"aria-label": "Page suivante",
|
|
40246
|
-
children: d ? /* @__PURE__ */ c("span", { className:
|
|
40246
|
+
children: d ? /* @__PURE__ */ c("span", { className: j.loaderSpinnerSmall }) : "»"
|
|
40247
40247
|
}
|
|
40248
40248
|
)
|
|
40249
40249
|
] })
|
|
@@ -40259,27 +40259,27 @@ const Q5e = ({ value: e }) => e, eke = ({ value: e }) => ie.createElement(
|
|
|
40259
40259
|
if (!e) return !1;
|
|
40260
40260
|
const t = e.trim().split(/\s+/);
|
|
40261
40261
|
return e.length > 18 || t.length > 2;
|
|
40262
|
-
}, pke = ({ columns: e }) => /* @__PURE__ */ c("thead", { className:
|
|
40263
|
-
const o = t.align === "right" ?
|
|
40262
|
+
}, pke = ({ columns: e }) => /* @__PURE__ */ c("thead", { className: j.tableHeader, children: /* @__PURE__ */ c("tr", { children: e.map((t, n) => {
|
|
40263
|
+
const o = t.align === "right" ? j.alignRight : t.align === "left" ? j.alignLeft : j.alignCenter, i = t.preserveHeaderCase === !0, r = lke(String(t.label ?? ""), i), s = hke(r), d = s ? r.split(/\s+/) : [];
|
|
40264
40264
|
return /* @__PURE__ */ c(
|
|
40265
40265
|
"th",
|
|
40266
40266
|
{
|
|
40267
|
-
className: `${
|
|
40267
|
+
className: `${j.headerCell} ${o}`,
|
|
40268
40268
|
style: { width: t.width ?? void 0 },
|
|
40269
40269
|
"data-preserve": i ? "true" : "false",
|
|
40270
40270
|
title: t.a11yConfig?.mode === "guide" ? t.a11yConfig.description : t.a11yConfig?.mode === "key" ? t.a11yConfig.key : void 0,
|
|
40271
|
-
children: /* @__PURE__ */ c("div", { className:
|
|
40271
|
+
children: /* @__PURE__ */ c("div", { className: j.headerContent, children: s ? /* @__PURE__ */ c("div", { className: j.headerWords, children: d.map((h, l) => /* @__PURE__ */ c("span", { className: j.headerWord, children: h }, l)) }) : /* @__PURE__ */ c("span", { children: r }) })
|
|
40272
40272
|
},
|
|
40273
40273
|
t.id ?? `col-${n}`
|
|
40274
40274
|
);
|
|
40275
40275
|
}) }) }), uke = ({ value: e, row: t, column: n }) => {
|
|
40276
|
-
const o = n.align === "right" ?
|
|
40276
|
+
const o = n.align === "right" ? j.alignRight : n.align === "left" ? j.alignLeft : j.alignCenter, i = typeof n.render == "function" ? n.render(e, t) : e == null ? "" : String(e);
|
|
40277
40277
|
return /* @__PURE__ */ c(
|
|
40278
40278
|
"td",
|
|
40279
40279
|
{
|
|
40280
|
-
className: `${
|
|
40280
|
+
className: `${j.tableCell} ${o}`,
|
|
40281
40281
|
style: { width: n.width ?? void 0 },
|
|
40282
|
-
children: /* @__PURE__ */ c("div", { className:
|
|
40282
|
+
children: /* @__PURE__ */ c("div", { className: j.cellContent, children: i })
|
|
40283
40283
|
}
|
|
40284
40284
|
);
|
|
40285
40285
|
}, yke = ({
|
|
@@ -40298,7 +40298,7 @@ const Q5e = ({ value: e }) => e, eke = ({ value: e }) => ie.createElement(
|
|
|
40298
40298
|
return /* @__PURE__ */ c(
|
|
40299
40299
|
"tr",
|
|
40300
40300
|
{
|
|
40301
|
-
className: `${
|
|
40301
|
+
className: `${j.tableRow} ${o ? j.clickableRow : ""}`,
|
|
40302
40302
|
onClick: () => o?.(e, i),
|
|
40303
40303
|
style: p,
|
|
40304
40304
|
children: n.map((u) => /* @__PURE__ */ c(
|
|
@@ -40319,7 +40319,7 @@ const Q5e = ({ value: e }) => e, eke = ({ value: e }) => ie.createElement(
|
|
|
40319
40319
|
startIndex: o,
|
|
40320
40320
|
searchTerm: i,
|
|
40321
40321
|
getRowStyle: r
|
|
40322
|
-
}) => e.length === 0 ? /* @__PURE__ */ c("tbody", { children: /* @__PURE__ */ c("tr", { children: /* @__PURE__ */ c("td", { colSpan: t.length, className:
|
|
40322
|
+
}) => e.length === 0 ? /* @__PURE__ */ c("tbody", { children: /* @__PURE__ */ c("tr", { children: /* @__PURE__ */ c("td", { colSpan: t.length, className: j.emptyRow, children: i ? "Aucun résultat trouvé" : "Aucune donnée disponible" }) }) }) : /* @__PURE__ */ c("tbody", { children: e.map((s, d) => /* @__PURE__ */ c(
|
|
40323
40323
|
yke,
|
|
40324
40324
|
{
|
|
40325
40325
|
row: s.data,
|
|
@@ -40356,22 +40356,22 @@ const Q5e = ({ value: e }) => e, eke = ({ value: e }) => ie.createElement(
|
|
|
40356
40356
|
cancelLabel: L = "Cancel",
|
|
40357
40357
|
clearLabel: x = "Clear",
|
|
40358
40358
|
applyDisabled: w = !1,
|
|
40359
|
-
paginationLoading:
|
|
40359
|
+
paginationLoading: q = !1,
|
|
40360
40360
|
filtersLoading: I = !1,
|
|
40361
|
-
sortLoading:
|
|
40361
|
+
sortLoading: $ = !1,
|
|
40362
40362
|
totalCount: z = null
|
|
40363
40363
|
}) => {
|
|
40364
|
-
const [
|
|
40364
|
+
const [B, D] = V({ key: null, direction: "asc" }), [H, S] = V(n.currentPage ?? 1), [A, T] = V(n.pageSize ?? 10), [F, P] = V(!1), E = W(null), [Y, oe] = V([]), re = u ? d : Y, Ce = u ? [] : Y;
|
|
40365
40365
|
O(() => {
|
|
40366
40366
|
const pe = n.currentPage ?? 1, Gt = n.pageSize ?? 10;
|
|
40367
|
-
pe !==
|
|
40367
|
+
pe !== H && S(pe), Gt !== A && T(Gt);
|
|
40368
40368
|
}, [n.currentPage, n.pageSize]);
|
|
40369
40369
|
const { paginatedData: _e, sortedData: He, totalPages: ke, startIndex: ee } = J5e(
|
|
40370
40370
|
t,
|
|
40371
40371
|
e,
|
|
40372
40372
|
i,
|
|
40373
|
-
|
|
40374
|
-
|
|
40373
|
+
B,
|
|
40374
|
+
H,
|
|
40375
40375
|
A,
|
|
40376
40376
|
Ce
|
|
40377
40377
|
), ae = He.length, le = typeof z == "number" && z >= 0 ? z : ae;
|
|
@@ -40380,49 +40380,49 @@ const Q5e = ({ value: e }) => e, eke = ({ value: e }) => ie.createElement(
|
|
|
40380
40380
|
const he = ae > 10;
|
|
40381
40381
|
O(() => {
|
|
40382
40382
|
const pe = Math.max(1, Math.floor(me));
|
|
40383
|
-
|
|
40383
|
+
H > pe && S(pe), H < 1 && S(1);
|
|
40384
40384
|
}, [me]);
|
|
40385
40385
|
const K = (pe) => {
|
|
40386
|
-
u || oe(pe), h?.(pe),
|
|
40386
|
+
u || oe(pe), h?.(pe), S(1), M?.(1);
|
|
40387
40387
|
}, G = (pe) => {
|
|
40388
|
-
u || oe(pe), l?.(pe),
|
|
40388
|
+
u || oe(pe), l?.(pe), S(1), M?.(1), E.current && E.current.style.setProperty("--filters-panel-height", "0px");
|
|
40389
40389
|
}, se = (pe) => {
|
|
40390
|
-
M?.(pe),
|
|
40391
|
-
},
|
|
40392
|
-
|
|
40390
|
+
M?.(pe), S(pe);
|
|
40391
|
+
}, Ve = (pe) => {
|
|
40392
|
+
T(pe), S(1), k?.(pe), M?.(1);
|
|
40393
40393
|
}, Xe = (pe) => {
|
|
40394
|
-
|
|
40394
|
+
E.current && E.current.style.setProperty("--filters-panel-height", `${Math.round(pe)}px`);
|
|
40395
40395
|
}, we = (pe) => {
|
|
40396
|
-
|
|
40397
|
-
},
|
|
40398
|
-
|
|
40396
|
+
D(pe), p?.(pe);
|
|
40397
|
+
}, Pe = (pe) => {
|
|
40398
|
+
P(pe), !pe && E.current && E.current.style.setProperty("--filters-panel-height", "0px");
|
|
40399
40399
|
};
|
|
40400
40400
|
O(() => {
|
|
40401
|
-
(re?.length ?? 0) > 0 &&
|
|
40401
|
+
(re?.length ?? 0) > 0 && P(!0);
|
|
40402
40402
|
}, [re]), O(() => {
|
|
40403
|
-
s.length > 0 && re.length > 0 &&
|
|
40403
|
+
s.length > 0 && re.length > 0 && P(!0);
|
|
40404
40404
|
}, [s.length, re.length]);
|
|
40405
40405
|
const xi = (re?.length ?? 0) > 0 && b ? b : v;
|
|
40406
40406
|
return /* @__PURE__ */ f(
|
|
40407
40407
|
"div",
|
|
40408
40408
|
{
|
|
40409
|
-
ref:
|
|
40410
|
-
className: `${
|
|
40409
|
+
ref: E,
|
|
40410
|
+
className: `${j.container} ${r} ${F ? j.filtersOpen : ""}`,
|
|
40411
40411
|
style: {
|
|
40412
40412
|
background: m,
|
|
40413
40413
|
"--row-height": "48px",
|
|
40414
40414
|
"--header-height": "56px"
|
|
40415
40415
|
},
|
|
40416
40416
|
children: [
|
|
40417
|
-
/* @__PURE__ */ c("div", { className:
|
|
40417
|
+
/* @__PURE__ */ c("div", { className: j.tableControls, children: /* @__PURE__ */ f("div", { className: j.controlsRight, children: [
|
|
40418
40418
|
/* @__PURE__ */ c(
|
|
40419
40419
|
ske,
|
|
40420
40420
|
{
|
|
40421
40421
|
columns: e,
|
|
40422
40422
|
onSort: we,
|
|
40423
40423
|
label: C,
|
|
40424
|
-
sortConfig:
|
|
40425
|
-
loading:
|
|
40424
|
+
sortConfig: B,
|
|
40425
|
+
loading: $
|
|
40426
40426
|
}
|
|
40427
40427
|
),
|
|
40428
40428
|
s.length > 0 && /* @__PURE__ */ c(
|
|
@@ -40434,8 +40434,8 @@ const Q5e = ({ value: e }) => e, eke = ({ value: e }) => ie.createElement(
|
|
|
40434
40434
|
onApply: G,
|
|
40435
40435
|
isControlled: u,
|
|
40436
40436
|
debounceTimeout: y,
|
|
40437
|
-
expanded:
|
|
40438
|
-
onToggle:
|
|
40437
|
+
expanded: F,
|
|
40438
|
+
onToggle: Pe,
|
|
40439
40439
|
panelPlacement: "top",
|
|
40440
40440
|
onPanelHeightChange: Xe,
|
|
40441
40441
|
label: xi,
|
|
@@ -40447,25 +40447,25 @@ const Q5e = ({ value: e }) => e, eke = ({ value: e }) => ie.createElement(
|
|
|
40447
40447
|
}
|
|
40448
40448
|
)
|
|
40449
40449
|
] }) }),
|
|
40450
|
-
/* @__PURE__ */ c("div", { className:
|
|
40450
|
+
/* @__PURE__ */ c("div", { className: j.topPagination, children: /* @__PURE__ */ c(
|
|
40451
40451
|
dke,
|
|
40452
40452
|
{
|
|
40453
|
-
currentPage:
|
|
40453
|
+
currentPage: H,
|
|
40454
40454
|
totalPages: me,
|
|
40455
40455
|
pageSize: A,
|
|
40456
40456
|
totalItems: le,
|
|
40457
40457
|
itemLabel: _,
|
|
40458
40458
|
onPageChange: se,
|
|
40459
|
-
onPageSizeChange:
|
|
40460
|
-
loading:
|
|
40459
|
+
onPageSizeChange: Ve,
|
|
40460
|
+
loading: q
|
|
40461
40461
|
}
|
|
40462
40462
|
) }),
|
|
40463
40463
|
/* @__PURE__ */ c(
|
|
40464
40464
|
"div",
|
|
40465
40465
|
{
|
|
40466
|
-
className: `${
|
|
40466
|
+
className: `${j.tableWrapper} ${he ? j.limitedRows : ""}`,
|
|
40467
40467
|
"data-table-wrapper": !0,
|
|
40468
|
-
children: /* @__PURE__ */ f("table", { className:
|
|
40468
|
+
children: /* @__PURE__ */ f("table", { className: j.table, children: [
|
|
40469
40469
|
/* @__PURE__ */ c(pke, { columns: e }),
|
|
40470
40470
|
/* @__PURE__ */ c(
|
|
40471
40471
|
kke,
|
|
@@ -40962,73 +40962,73 @@ const fke = "_mpRoot_31595_1", gke = "_mpHeader_31595_22", vke = "_mpTitle_31595
|
|
|
40962
40962
|
compactItemWidth: L,
|
|
40963
40963
|
compactItemHeight: x,
|
|
40964
40964
|
compactItemStyle: w,
|
|
40965
|
-
summaryCardWidth:
|
|
40965
|
+
summaryCardWidth: q,
|
|
40966
40966
|
summaryCardHeight: I,
|
|
40967
|
-
summaryCardStyle:
|
|
40968
|
-
} = e, z = n === "vertical",
|
|
40967
|
+
summaryCardStyle: $
|
|
40968
|
+
} = e, z = n === "vertical", B = {
|
|
40969
40969
|
"--mp-accent": r,
|
|
40970
40970
|
"--mp-accent-soft": l3e(r, 0.08),
|
|
40971
40971
|
"--mp-bg-primary": v
|
|
40972
|
-
},
|
|
40972
|
+
}, D = [
|
|
40973
40973
|
Q.mpRoot,
|
|
40974
40974
|
z ? Q.mpVertical : Q.mpHorizontal,
|
|
40975
40975
|
s ? Q.mpCompact : "",
|
|
40976
40976
|
g ? Q.mpSummaryRoot : "",
|
|
40977
40977
|
o !== "auto" ? o === "vertical" ? Q.mpOrientationVertical : Q.mpOrientationHorizontal : "",
|
|
40978
40978
|
l
|
|
40979
|
-
].filter(Boolean).join(" "),
|
|
40979
|
+
].filter(Boolean).join(" "), H = Me(() => y || (i3e(_) ?? void 0), [y, _]);
|
|
40980
40980
|
if (g) {
|
|
40981
|
-
const
|
|
40981
|
+
const S = o === "horizontal" ? Q.mpSummaryFlex : Q.mpSummaryVertical, T = { ...(N ? {
|
|
40982
40982
|
display: "grid",
|
|
40983
40983
|
gridTemplateColumns: `repeat(${N}, 1fr)`,
|
|
40984
40984
|
gap: 18,
|
|
40985
40985
|
alignItems: "stretch",
|
|
40986
40986
|
width: "100%"
|
|
40987
40987
|
} : void 0) ?? {}, ...b ?? {} };
|
|
40988
|
-
return /* @__PURE__ */ f("div", { className:
|
|
40988
|
+
return /* @__PURE__ */ f("div", { className: D, style: B, "aria-busy": p, children: [
|
|
40989
40989
|
d && /* @__PURE__ */ c(C$, { title: d }),
|
|
40990
40990
|
/* @__PURE__ */ c("div", { className: Q.mpSummaryInner, children: /* @__PURE__ */ c(
|
|
40991
40991
|
"div",
|
|
40992
40992
|
{
|
|
40993
|
-
className: `${
|
|
40994
|
-
style:
|
|
40995
|
-
children: t.length === 0 ? /* @__PURE__ */ c("div", { className: Q.mpEmpty, children: u }) : t.map((
|
|
40996
|
-
const
|
|
40997
|
-
return
|
|
40993
|
+
className: `${S} ${C ?? ""}`,
|
|
40994
|
+
style: T,
|
|
40995
|
+
children: t.length === 0 ? /* @__PURE__ */ c("div", { className: Q.mpEmpty, children: u }) : t.map((F, P) => {
|
|
40996
|
+
const E = F.bgColor ?? m[P % m.length], Y = F.borderColor ?? k[P % k.length], oe = F.valueColor ?? M[P % M.length];
|
|
40997
|
+
return H ? /* @__PURE__ */ c(
|
|
40998
40998
|
"div",
|
|
40999
40999
|
{
|
|
41000
41000
|
className: o === "horizontal" ? Q.mpSummaryCardWrapperHorizontal : Q.mpSummaryCardWrapper,
|
|
41001
41001
|
style: {
|
|
41002
|
-
width:
|
|
41002
|
+
width: q ?? void 0,
|
|
41003
41003
|
height: I ?? void 0,
|
|
41004
|
-
|
|
41004
|
+
...$ ?? {}
|
|
41005
41005
|
},
|
|
41006
|
-
children:
|
|
41006
|
+
children: H(F, P)
|
|
41007
41007
|
},
|
|
41008
|
-
|
|
41008
|
+
F.id
|
|
41009
41009
|
) : /* @__PURE__ */ c(
|
|
41010
41010
|
c3e,
|
|
41011
41011
|
{
|
|
41012
|
-
item:
|
|
41012
|
+
item: F,
|
|
41013
41013
|
orientation: o === "horizontal" ? "horizontal" : "vertical",
|
|
41014
|
-
bg:
|
|
41014
|
+
bg: E,
|
|
41015
41015
|
border: Y,
|
|
41016
41016
|
valueColor: oe,
|
|
41017
41017
|
onClick: h,
|
|
41018
|
-
width:
|
|
41018
|
+
width: q ?? void 0,
|
|
41019
41019
|
height: I ?? void 0,
|
|
41020
|
-
extraStyle:
|
|
41020
|
+
extraStyle: $
|
|
41021
41021
|
},
|
|
41022
|
-
|
|
41022
|
+
F.id
|
|
41023
41023
|
);
|
|
41024
41024
|
})
|
|
41025
41025
|
}
|
|
41026
41026
|
) })
|
|
41027
41027
|
] });
|
|
41028
41028
|
}
|
|
41029
|
-
return /* @__PURE__ */ f("div", { className:
|
|
41029
|
+
return /* @__PURE__ */ f("div", { className: D, style: B, "aria-busy": p, children: [
|
|
41030
41030
|
d && /* @__PURE__ */ c(C$, { title: d }),
|
|
41031
|
-
/* @__PURE__ */ c("div", { className: Q.mpList, style: b, children: p ? /* @__PURE__ */ c("div", { className: Q.mpEmpty, children: "Chargement…" }) : t.length === 0 ? /* @__PURE__ */ c("div", { className: Q.mpEmpty, children: u }) : t.map((
|
|
41031
|
+
/* @__PURE__ */ c("div", { className: Q.mpList, style: b, children: p ? /* @__PURE__ */ c("div", { className: Q.mpEmpty, children: "Chargement…" }) : t.length === 0 ? /* @__PURE__ */ c("div", { className: Q.mpEmpty, children: u }) : t.map((S) => {
|
|
41032
41032
|
const A = s ? {
|
|
41033
41033
|
width: L ?? void 0,
|
|
41034
41034
|
height: x ?? void 0,
|
|
@@ -41043,15 +41043,15 @@ const fke = "_mpRoot_31595_1", gke = "_mpHeader_31595_22", vke = "_mpTitle_31595
|
|
|
41043
41043
|
children: /* @__PURE__ */ c(
|
|
41044
41044
|
a3e,
|
|
41045
41045
|
{
|
|
41046
|
-
item:
|
|
41046
|
+
item: S,
|
|
41047
41047
|
shape: i,
|
|
41048
41048
|
onItemClick: h,
|
|
41049
41049
|
color: r,
|
|
41050
|
-
renderItem:
|
|
41050
|
+
renderItem: H ? (T) => H(T, t.indexOf(T)) : void 0
|
|
41051
41051
|
}
|
|
41052
41052
|
)
|
|
41053
41053
|
},
|
|
41054
|
-
|
|
41054
|
+
S.id
|
|
41055
41055
|
);
|
|
41056
41056
|
}) })
|
|
41057
41057
|
] });
|
|
@@ -41228,30 +41228,30 @@ const BMe = ({
|
|
|
41228
41228
|
containerClassName: o,
|
|
41229
41229
|
containerStyle: i
|
|
41230
41230
|
}) => {
|
|
41231
|
-
const [r, s] = V([]), d =
|
|
41231
|
+
const [r, s] = V([]), d = W(/* @__PURE__ */ new Map()), h = W(null), l = W(null), p = W(n);
|
|
41232
41232
|
O(() => () => {
|
|
41233
41233
|
d.current.forEach((x) => window.clearTimeout(x)), d.current.clear();
|
|
41234
41234
|
}, []);
|
|
41235
41235
|
const u = (x, w) => {
|
|
41236
|
-
const
|
|
41237
|
-
if (
|
|
41236
|
+
const q = w === void 0 || w === 0 ? t : w;
|
|
41237
|
+
if (q === -1) return;
|
|
41238
41238
|
const I = window.setTimeout(() => {
|
|
41239
41239
|
m(x);
|
|
41240
|
-
},
|
|
41240
|
+
}, q);
|
|
41241
41241
|
d.current.set(x, I);
|
|
41242
41242
|
}, y = (x) => {
|
|
41243
41243
|
const w = d.current.get(x);
|
|
41244
41244
|
w && (window.clearTimeout(w), d.current.delete(x));
|
|
41245
41245
|
}, g = (x) => {
|
|
41246
|
-
const w = p3e(),
|
|
41246
|
+
const w = p3e(), q = { ...x, id: w, createdAt: Date.now() };
|
|
41247
41247
|
return s((I) => {
|
|
41248
|
-
const
|
|
41249
|
-
return typeof z == "number" && z >= 0 &&
|
|
41248
|
+
const $ = [q, ...I], z = p.current;
|
|
41249
|
+
return typeof z == "number" && z >= 0 && $.length > z ? ($.slice(z).forEach((D) => y(D.id)), $.slice(0, z)) : $;
|
|
41250
41250
|
}), u(w, x.duration), w;
|
|
41251
41251
|
}, m = (x) => {
|
|
41252
|
-
y(x), s((w) => w.filter((
|
|
41252
|
+
y(x), s((w) => w.filter((q) => q.id !== x));
|
|
41253
41253
|
}, k = (x, w) => {
|
|
41254
|
-
s((
|
|
41254
|
+
s((q) => q.map((I) => I.id === x ? { ...I, ...w } : I));
|
|
41255
41255
|
}, M = () => {
|
|
41256
41256
|
d.current.forEach((x) => window.clearTimeout(x)), d.current.clear(), s([]);
|
|
41257
41257
|
}, _ = (x) => {
|
|
@@ -41422,7 +41422,7 @@ const BMe = ({
|
|
|
41422
41422
|
closeOnOverlayClick: p = !0,
|
|
41423
41423
|
showCloseButton: u = !0
|
|
41424
41424
|
}, y) => {
|
|
41425
|
-
const [g, m] = V(!1), [k, M] = V(!1), _ =
|
|
41425
|
+
const [g, m] = V(!1), [k, M] = V(!1), _ = W(null), v = W(null), b = W(null), C = W(null);
|
|
41426
41426
|
O(() => {
|
|
41427
41427
|
const x = _.current;
|
|
41428
41428
|
if (!x) return;
|
|
@@ -41450,8 +41450,8 @@ const BMe = ({
|
|
|
41450
41450
|
), O(() => {
|
|
41451
41451
|
const x = v.current;
|
|
41452
41452
|
C.current && (window.clearTimeout(C.current), C.current = null);
|
|
41453
|
-
const w = (
|
|
41454
|
-
if (
|
|
41453
|
+
const w = (q) => {
|
|
41454
|
+
if (q.target === x && !(q.propertyName !== "transform" && q.propertyName !== "opacity"))
|
|
41455
41455
|
if (g) {
|
|
41456
41456
|
M(!0), i?.();
|
|
41457
41457
|
try {
|
|
@@ -41536,7 +41536,7 @@ const BMe = ({
|
|
|
41536
41536
|
}
|
|
41537
41537
|
);
|
|
41538
41538
|
function WMe(e) {
|
|
41539
|
-
const t =
|
|
41539
|
+
const t = W("");
|
|
41540
41540
|
O(() => {
|
|
41541
41541
|
if (e) {
|
|
41542
41542
|
t.current = document.body.style.overflow, document.body.style.overflow = "hidden";
|
|
@@ -41585,7 +41585,7 @@ const f3e = "_container_1pfsp_1", g3e = "_title_1pfsp_8", q$ = {
|
|
|
41585
41585
|
confirmText: l = "Valider",
|
|
41586
41586
|
cancelText: p = "Annuler"
|
|
41587
41587
|
}) => {
|
|
41588
|
-
const [u, y] = V({}), g =
|
|
41588
|
+
const [u, y] = V({}), g = W(null), [m, k] = V(!1), [M, _] = V(!1), v = W(null);
|
|
41589
41589
|
if (O(() => {
|
|
41590
41590
|
if (!e) return;
|
|
41591
41591
|
const x = {};
|
|
@@ -41595,8 +41595,8 @@ const f3e = "_container_1pfsp_1", g3e = "_title_1pfsp_8", q$ = {
|
|
|
41595
41595
|
g.current?.focus();
|
|
41596
41596
|
const w = g.current;
|
|
41597
41597
|
if (w && typeof w.selectionStart == "number") {
|
|
41598
|
-
const
|
|
41599
|
-
w.setSelectionRange(
|
|
41598
|
+
const q = String(w.value ?? "").length;
|
|
41599
|
+
w.setSelectionRange(q, q);
|
|
41600
41600
|
}
|
|
41601
41601
|
}), () => {
|
|
41602
41602
|
v.current && (window.clearTimeout(v.current), v.current = null);
|
|
@@ -41607,7 +41607,7 @@ const f3e = "_container_1pfsp_1", g3e = "_title_1pfsp_8", q$ = {
|
|
|
41607
41607
|
}, 3e3)) : (_(!1), v.current && (window.clearTimeout(v.current), v.current = null));
|
|
41608
41608
|
}, [s, e]), !e) return null;
|
|
41609
41609
|
const b = (x, w) => {
|
|
41610
|
-
y((
|
|
41610
|
+
y((q) => ({ ...q, [x]: w })), h && h(x, w);
|
|
41611
41611
|
}, C = async () => {
|
|
41612
41612
|
if (!Object.values(u).some((x) => x === "" || x === void 0))
|
|
41613
41613
|
try {
|
|
@@ -41634,19 +41634,19 @@ const f3e = "_container_1pfsp_1", g3e = "_title_1pfsp_8", q$ = {
|
|
|
41634
41634
|
children: /* @__PURE__ */ f("div", { className: dt.modalContainer, onMouseDown: L, onClick: L, children: [
|
|
41635
41635
|
/* @__PURE__ */ c("h2", { className: dt.modalTitle, children: o }),
|
|
41636
41636
|
i.map((x, w) => {
|
|
41637
|
-
const
|
|
41637
|
+
const q = u[x.name] ?? "", I = w === 0 && !!s, $ = {
|
|
41638
41638
|
name: x.name,
|
|
41639
41639
|
placeholder: x.placeholder || x.label,
|
|
41640
|
-
value: String(
|
|
41640
|
+
value: String(q),
|
|
41641
41641
|
onChange: (z) => b(x.name, z.target.value),
|
|
41642
41642
|
className: x.type === "textarea" ? `${dt.modalTextarea} ${I ? dt.inputError : ""}` : `${dt.modalInput} ${I ? dt.inputError : ""}`,
|
|
41643
41643
|
tabIndex: 0,
|
|
41644
41644
|
disabled: m
|
|
41645
41645
|
};
|
|
41646
|
-
return w === 0 && (
|
|
41646
|
+
return w === 0 && ($.ref = (z) => {
|
|
41647
41647
|
g.current = z;
|
|
41648
41648
|
}), /* @__PURE__ */ f("div", { style: { marginBottom: 8 }, children: [
|
|
41649
|
-
x.type === "textarea" ? /* @__PURE__ */ c("textarea", { rows: x.rows || 4,
|
|
41649
|
+
x.type === "textarea" ? /* @__PURE__ */ c("textarea", { rows: x.rows || 4, ...$ }) : /* @__PURE__ */ c("input", { type: x.type || "text", ...$ }),
|
|
41650
41650
|
w === 0 && M && s && /* @__PURE__ */ c("div", { style: { marginTop: 8 }, children: /* @__PURE__ */ c(
|
|
41651
41651
|
WA,
|
|
41652
41652
|
{
|
|
@@ -41728,10 +41728,10 @@ const f3e = "_container_1pfsp_1", g3e = "_title_1pfsp_8", q$ = {
|
|
|
41728
41728
|
}) => {
|
|
41729
41729
|
const [d, h] = V(!1), [l, p] = V(null), [u, y] = V(null), [g, m] = V(!1), k = () => h(!0), M = () => h(!1), _ = (x) => {
|
|
41730
41730
|
if (o) {
|
|
41731
|
-
const w = x.code?.trim() || x.id?.trim(),
|
|
41731
|
+
const w = x.code?.trim() || x.id?.trim(), q = x.title?.trim(), I = w || q || String(Date.now()), $ = q || w || `Module ${I}`;
|
|
41732
41732
|
o({
|
|
41733
41733
|
id: I,
|
|
41734
|
-
title:
|
|
41734
|
+
title: $,
|
|
41735
41735
|
subtitle: "",
|
|
41736
41736
|
translations: {}
|
|
41737
41737
|
});
|
|
@@ -41769,7 +41769,7 @@ const f3e = "_container_1pfsp_1", g3e = "_title_1pfsp_8", q$ = {
|
|
|
41769
41769
|
] }),
|
|
41770
41770
|
/* @__PURE__ */ c("hr", { className: "divider" }),
|
|
41771
41771
|
/* @__PURE__ */ c("div", { className: "module-list", children: e.map((x) => {
|
|
41772
|
-
const w = Object.keys(x.translations || {}).length,
|
|
41772
|
+
const w = Object.keys(x.translations || {}).length, q = w > 0 || x.id === u;
|
|
41773
41773
|
return /* @__PURE__ */ f(
|
|
41774
41774
|
"div",
|
|
41775
41775
|
{
|
|
@@ -41786,7 +41786,7 @@ const f3e = "_container_1pfsp_1", g3e = "_title_1pfsp_8", q$ = {
|
|
|
41786
41786
|
/* @__PURE__ */ f("div", { className: "module-info", children: [
|
|
41787
41787
|
/* @__PURE__ */ f("div", { className: "module-title", children: [
|
|
41788
41788
|
x.title,
|
|
41789
|
-
|
|
41789
|
+
q && /* @__PURE__ */ f("span", { className: "count", children: [
|
|
41790
41790
|
" ",
|
|
41791
41791
|
w,
|
|
41792
41792
|
" "
|
|
@@ -41871,38 +41871,38 @@ const f3e = "_container_1pfsp_1", g3e = "_title_1pfsp_8", q$ = {
|
|
|
41871
41871
|
draggable: h = !1,
|
|
41872
41872
|
checkDuplicateLocal: l
|
|
41873
41873
|
}) => {
|
|
41874
|
-
const [p, u] = V(!1), [y, g] = V(""), [m, k] = V(null), [M, _] = V(""), [v, b] = V(""), [C, N] = V(!1), [L, x] = V(!1), [w,
|
|
41874
|
+
const [p, u] = V(!1), [y, g] = V(""), [m, k] = V(null), [M, _] = V(""), [v, b] = V(""), [C, N] = V(!1), [L, x] = V(!1), [w, q] = V(null), [I, $] = V(!1), z = t.map((P) => P.language), B = n.filter((P) => !z.includes(P.code)), D = () => {
|
|
41875
41875
|
y && v.trim() && (d?.(e, y, v.trim()), g(""), b(""), u(!1));
|
|
41876
|
-
},
|
|
41877
|
-
k(
|
|
41878
|
-
},
|
|
41879
|
-
r?.(e,
|
|
41876
|
+
}, H = (P, E) => {
|
|
41877
|
+
k(P), _(E);
|
|
41878
|
+
}, S = (P) => {
|
|
41879
|
+
r?.(e, P, M), k(null), _("");
|
|
41880
41880
|
}, A = () => {
|
|
41881
41881
|
k(null), _("");
|
|
41882
|
-
},
|
|
41883
|
-
const
|
|
41884
|
-
if (
|
|
41885
|
-
if (
|
|
41882
|
+
}, T = async (P) => {
|
|
41883
|
+
const E = P.name?.trim();
|
|
41884
|
+
if (E) {
|
|
41885
|
+
if (q(null), $(!1), E === e || !i)
|
|
41886
41886
|
return N(!1), "ok";
|
|
41887
41887
|
try {
|
|
41888
|
-
const Y = await i(e,
|
|
41888
|
+
const Y = await i(e, E);
|
|
41889
41889
|
if (typeof Y == "string" && Y === "ok")
|
|
41890
|
-
N(!1),
|
|
41890
|
+
N(!1), q(null);
|
|
41891
41891
|
else {
|
|
41892
41892
|
if (typeof Y == "string" && Y === "duplicate-same")
|
|
41893
|
-
return
|
|
41893
|
+
return q("Une clé existe déjà dans ce module."), $(!0), "duplicate-same";
|
|
41894
41894
|
if (typeof Y == "string" && Y === "duplicate-other")
|
|
41895
|
-
return N(!1),
|
|
41895
|
+
return N(!1), q(null), "duplicate-other";
|
|
41896
41896
|
N(!1);
|
|
41897
41897
|
}
|
|
41898
41898
|
} catch (Y) {
|
|
41899
|
-
console.error("Erreur handleRenameSave:", Y),
|
|
41899
|
+
console.error("Erreur handleRenameSave:", Y), q("Erreur lors du renommage.");
|
|
41900
41900
|
}
|
|
41901
41901
|
}
|
|
41902
|
-
},
|
|
41903
|
-
if (
|
|
41904
|
-
const Y =
|
|
41905
|
-
|
|
41902
|
+
}, F = (P, E) => {
|
|
41903
|
+
if (P !== "name") return;
|
|
41904
|
+
const Y = E.trim();
|
|
41905
|
+
q(null), $(!1), Y && typeof l == "function" && (l(Y, e) ? (q("Une clé existe déjà dans ce module."), $(!0)) : (q(null), $(!1)));
|
|
41906
41906
|
};
|
|
41907
41907
|
return /* @__PURE__ */ f(
|
|
41908
41908
|
"div",
|
|
@@ -41927,8 +41927,8 @@ const f3e = "_container_1pfsp_1", g3e = "_title_1pfsp_8", q$ = {
|
|
|
41927
41927
|
"button",
|
|
41928
41928
|
{
|
|
41929
41929
|
className: "action-button",
|
|
41930
|
-
onClick: (
|
|
41931
|
-
|
|
41930
|
+
onClick: (P) => {
|
|
41931
|
+
P.stopPropagation(), N(!0);
|
|
41932
41932
|
},
|
|
41933
41933
|
title: "Renommer la clé",
|
|
41934
41934
|
children: /* @__PURE__ */ c(Ct, { className: "action-icon" })
|
|
@@ -41937,8 +41937,8 @@ const f3e = "_container_1pfsp_1", g3e = "_title_1pfsp_8", q$ = {
|
|
|
41937
41937
|
/* @__PURE__ */ c(
|
|
41938
41938
|
"button",
|
|
41939
41939
|
{
|
|
41940
|
-
onClick: (
|
|
41941
|
-
|
|
41940
|
+
onClick: (P) => {
|
|
41941
|
+
P.stopPropagation(), o?.(e);
|
|
41942
41942
|
},
|
|
41943
41943
|
className: "action-button delete",
|
|
41944
41944
|
title: "Supprimer la clé",
|
|
@@ -41947,39 +41947,39 @@ const f3e = "_container_1pfsp_1", g3e = "_title_1pfsp_8", q$ = {
|
|
|
41947
41947
|
)
|
|
41948
41948
|
] })
|
|
41949
41949
|
] }),
|
|
41950
|
-
/* @__PURE__ */ c("div", { className: `translations-container ${L ? "" : "expanded"}`, children: !h && /* @__PURE__ */ f(
|
|
41951
|
-
t.map((
|
|
41952
|
-
/* @__PURE__ */ c("div", { className: "language-code", children:
|
|
41953
|
-
/* @__PURE__ */ c("div", { className: "translation-content", children: m ===
|
|
41950
|
+
/* @__PURE__ */ c("div", { className: `translations-container ${L ? "" : "expanded"}`, children: !h && /* @__PURE__ */ f(ze, { children: [
|
|
41951
|
+
t.map((P) => /* @__PURE__ */ f("div", { className: "translation-row", children: [
|
|
41952
|
+
/* @__PURE__ */ c("div", { className: "language-code", children: P.language }),
|
|
41953
|
+
/* @__PURE__ */ c("div", { className: "translation-content", children: m === P.language ? /* @__PURE__ */ f(ze, { children: [
|
|
41954
41954
|
/* @__PURE__ */ c(
|
|
41955
41955
|
"input",
|
|
41956
41956
|
{
|
|
41957
41957
|
type: "text",
|
|
41958
41958
|
value: M,
|
|
41959
|
-
onChange: (
|
|
41959
|
+
onChange: (E) => _(E.target.value),
|
|
41960
41960
|
className: "edit-input",
|
|
41961
41961
|
autoFocus: !0,
|
|
41962
|
-
onKeyDown: (
|
|
41963
|
-
|
|
41962
|
+
onKeyDown: (E) => {
|
|
41963
|
+
E.key === "Enter" && S(P.language), E.key === "Escape" && A();
|
|
41964
41964
|
}
|
|
41965
41965
|
}
|
|
41966
41966
|
),
|
|
41967
41967
|
/* @__PURE__ */ c(
|
|
41968
41968
|
"button",
|
|
41969
41969
|
{
|
|
41970
|
-
onClick: () =>
|
|
41970
|
+
onClick: () => S(P.language),
|
|
41971
41971
|
className: "save-button",
|
|
41972
41972
|
disabled: !M.trim(),
|
|
41973
41973
|
children: "Enregistrer"
|
|
41974
41974
|
}
|
|
41975
41975
|
),
|
|
41976
41976
|
/* @__PURE__ */ c("button", { onClick: A, className: "cancel-button", children: /* @__PURE__ */ c(ct, { className: "action-icon" }) })
|
|
41977
|
-
] }) : /* @__PURE__ */ f(
|
|
41978
|
-
/* @__PURE__ */ c("span", { className: "translation-text", title:
|
|
41977
|
+
] }) : /* @__PURE__ */ f(ze, { children: [
|
|
41978
|
+
/* @__PURE__ */ c("span", { className: "translation-text", title: P.value, children: P.value }),
|
|
41979
41979
|
/* @__PURE__ */ c(
|
|
41980
41980
|
"button",
|
|
41981
41981
|
{
|
|
41982
|
-
onClick: () =>
|
|
41982
|
+
onClick: () => H(P.language, P.value),
|
|
41983
41983
|
className: "edit-button",
|
|
41984
41984
|
title: "Éditer la traduction",
|
|
41985
41985
|
children: /* @__PURE__ */ c(Ct, { className: "action-icon" })
|
|
@@ -41988,14 +41988,14 @@ const f3e = "_container_1pfsp_1", g3e = "_title_1pfsp_8", q$ = {
|
|
|
41988
41988
|
/* @__PURE__ */ c(
|
|
41989
41989
|
"button",
|
|
41990
41990
|
{
|
|
41991
|
-
onClick: () => s?.(e,
|
|
41991
|
+
onClick: () => s?.(e, P.language),
|
|
41992
41992
|
className: "delete-translation-button",
|
|
41993
41993
|
title: "Supprimer la traduction",
|
|
41994
41994
|
children: /* @__PURE__ */ c(ct, { className: "action-icon" })
|
|
41995
41995
|
}
|
|
41996
41996
|
)
|
|
41997
41997
|
] }) })
|
|
41998
|
-
] },
|
|
41998
|
+
] }, P.language)),
|
|
41999
41999
|
p ? /* @__PURE__ */ f("div", { className: "add-language-row", children: [
|
|
42000
42000
|
/* @__PURE__ */ c("div", { className: "language-code", children: "+" }),
|
|
42001
42001
|
/* @__PURE__ */ f("div", { className: "add-language-content", children: [
|
|
@@ -42003,16 +42003,16 @@ const f3e = "_container_1pfsp_1", g3e = "_title_1pfsp_8", q$ = {
|
|
|
42003
42003
|
"select",
|
|
42004
42004
|
{
|
|
42005
42005
|
value: y,
|
|
42006
|
-
onChange: (
|
|
42006
|
+
onChange: (P) => g(P.target.value),
|
|
42007
42007
|
className: "language-select",
|
|
42008
42008
|
children: [
|
|
42009
42009
|
/* @__PURE__ */ c("option", { value: "", children: "Sélectionnez la langue" }),
|
|
42010
|
-
|
|
42011
|
-
|
|
42010
|
+
B.map((P) => /* @__PURE__ */ f("option", { value: P.code, children: [
|
|
42011
|
+
P.name,
|
|
42012
42012
|
" (",
|
|
42013
|
-
|
|
42013
|
+
P.code,
|
|
42014
42014
|
")"
|
|
42015
|
-
] },
|
|
42015
|
+
] }, P.code))
|
|
42016
42016
|
]
|
|
42017
42017
|
}
|
|
42018
42018
|
) }),
|
|
@@ -42021,18 +42021,18 @@ const f3e = "_container_1pfsp_1", g3e = "_title_1pfsp_8", q$ = {
|
|
|
42021
42021
|
{
|
|
42022
42022
|
type: "text",
|
|
42023
42023
|
value: v,
|
|
42024
|
-
onChange: (
|
|
42024
|
+
onChange: (P) => b(P.target.value),
|
|
42025
42025
|
placeholder: "Entrez la traduction...",
|
|
42026
42026
|
className: "translation-input",
|
|
42027
|
-
onKeyDown: (
|
|
42028
|
-
|
|
42027
|
+
onKeyDown: (P) => {
|
|
42028
|
+
P.key === "Enter" && D(), P.key === "Escape" && (u(!1), g(""), b(""));
|
|
42029
42029
|
}
|
|
42030
42030
|
}
|
|
42031
42031
|
),
|
|
42032
42032
|
/* @__PURE__ */ c(
|
|
42033
42033
|
"button",
|
|
42034
42034
|
{
|
|
42035
|
-
onClick:
|
|
42035
|
+
onClick: D,
|
|
42036
42036
|
disabled: !y || !v.trim(),
|
|
42037
42037
|
className: "save-button",
|
|
42038
42038
|
children: "Ajouter"
|
|
@@ -42054,7 +42054,7 @@ const f3e = "_container_1pfsp_1", g3e = "_title_1pfsp_8", q$ = {
|
|
|
42054
42054
|
{
|
|
42055
42055
|
onClick: () => u(!0),
|
|
42056
42056
|
className: "show-add-button",
|
|
42057
|
-
disabled:
|
|
42057
|
+
disabled: B.length === 0,
|
|
42058
42058
|
children: [
|
|
42059
42059
|
/* @__PURE__ */ c("span", { className: "plus-icon", children: "+" }),
|
|
42060
42060
|
"Ajouter une langue"
|
|
@@ -42071,10 +42071,10 @@ const f3e = "_container_1pfsp_1", g3e = "_title_1pfsp_8", q$ = {
|
|
|
42071
42071
|
{
|
|
42072
42072
|
isOpen: C,
|
|
42073
42073
|
onClose: () => {
|
|
42074
|
-
N(!1),
|
|
42074
|
+
N(!1), q(null), $(!1);
|
|
42075
42075
|
},
|
|
42076
|
-
onSave:
|
|
42077
|
-
onFieldChange:
|
|
42076
|
+
onSave: T,
|
|
42077
|
+
onFieldChange: F,
|
|
42078
42078
|
title: "Renommer la clé",
|
|
42079
42079
|
initialValues: { name: e },
|
|
42080
42080
|
fields: [{ name: "name", label: "Nom de la clé", placeholder: "Nom de la clé" }],
|
|
@@ -42102,7 +42102,7 @@ const f3e = "_container_1pfsp_1", g3e = "_title_1pfsp_8", q$ = {
|
|
|
42102
42102
|
searchIcon: O3e
|
|
42103
42103
|
};
|
|
42104
42104
|
function YMe({ onDateChange: e, onSearch: t, initialDate: n }) {
|
|
42105
|
-
const [o, i] = V(!1), [r, s] = V(n ?? ""), d =
|
|
42105
|
+
const [o, i] = V(!1), [r, s] = V(n ?? ""), d = W(null);
|
|
42106
42106
|
O(() => {
|
|
42107
42107
|
function u(y) {
|
|
42108
42108
|
const g = y.target;
|
|
@@ -42561,46 +42561,46 @@ const JMe = ({
|
|
|
42561
42561
|
variant: l = "default",
|
|
42562
42562
|
width: p = "w-full"
|
|
42563
42563
|
}) => {
|
|
42564
|
-
const [u, y] = V(!1), [g, m] = V(""), [k, M] = V(0), [_, v] = V({ top: 0, left: 0, width: 0 }), b =
|
|
42565
|
-
(
|
|
42566
|
-
) : e, [e, g]), x = e.find((
|
|
42564
|
+
const [u, y] = V(!1), [g, m] = V(""), [k, M] = V(0), [_, v] = V({ top: 0, left: 0, width: 0 }), b = W(null), C = W(null), N = W(null), L = Me(() => g ? e.filter(
|
|
42565
|
+
(S) => S.label.toLowerCase().includes(g.toLowerCase())
|
|
42566
|
+
) : e, [e, g]), x = e.find((S) => S.value === t), w = Be(() => {
|
|
42567
42567
|
if (b.current) {
|
|
42568
|
-
const
|
|
42568
|
+
const S = b.current.getBoundingClientRect();
|
|
42569
42569
|
v({
|
|
42570
|
-
top:
|
|
42571
|
-
left:
|
|
42572
|
-
width:
|
|
42570
|
+
top: S.top,
|
|
42571
|
+
left: S.left,
|
|
42572
|
+
width: S.width
|
|
42573
42573
|
});
|
|
42574
42574
|
}
|
|
42575
42575
|
}, []);
|
|
42576
42576
|
O(() => (u && (w(), window.addEventListener("scroll", w, !0), window.addEventListener("resize", w)), () => {
|
|
42577
42577
|
window.removeEventListener("scroll", w, !0), window.removeEventListener("resize", w);
|
|
42578
42578
|
}), [u, w]), O(() => {
|
|
42579
|
-
const
|
|
42579
|
+
const S = (A) => {
|
|
42580
42580
|
b.current && !b.current.contains(A.target) && C.current && !C.current.contains(A.target) && (y(!1), m(""));
|
|
42581
42581
|
};
|
|
42582
|
-
return document.addEventListener("mousedown",
|
|
42582
|
+
return document.addEventListener("mousedown", S), () => document.removeEventListener("mousedown", S);
|
|
42583
42583
|
}, []), O(() => {
|
|
42584
42584
|
M(0);
|
|
42585
42585
|
}, [L]);
|
|
42586
|
-
const
|
|
42587
|
-
|
|
42588
|
-
}, I = (
|
|
42589
|
-
m(
|
|
42590
|
-
},
|
|
42586
|
+
const q = (S) => {
|
|
42587
|
+
S.disabled || (n?.(S.value, S), y(!1), m(""));
|
|
42588
|
+
}, I = (S) => {
|
|
42589
|
+
m(S.target.value), u || y(!0);
|
|
42590
|
+
}, $ = (S) => {
|
|
42591
42591
|
if (!u) {
|
|
42592
|
-
(
|
|
42592
|
+
(S.key === "ArrowDown" || S.key === "Enter") && y(!0);
|
|
42593
42593
|
return;
|
|
42594
42594
|
}
|
|
42595
|
-
switch (
|
|
42595
|
+
switch (S.key) {
|
|
42596
42596
|
case "ArrowDown":
|
|
42597
|
-
|
|
42597
|
+
S.preventDefault(), M((A) => A < L.length - 1 ? A + 1 : A);
|
|
42598
42598
|
break;
|
|
42599
42599
|
case "ArrowUp":
|
|
42600
|
-
|
|
42600
|
+
S.preventDefault(), M((A) => A > 0 ? A - 1 : A);
|
|
42601
42601
|
break;
|
|
42602
42602
|
case "Enter":
|
|
42603
|
-
|
|
42603
|
+
S.preventDefault(), L[k] && q(L[k]);
|
|
42604
42604
|
break;
|
|
42605
42605
|
case "Escape":
|
|
42606
42606
|
y(!1), m("");
|
|
@@ -42613,7 +42613,7 @@ const JMe = ({
|
|
|
42613
42613
|
i ? ue.disabled : "",
|
|
42614
42614
|
s ? ue.error : "",
|
|
42615
42615
|
d
|
|
42616
|
-
].filter(Boolean).join(" "),
|
|
42616
|
+
].filter(Boolean).join(" "), B = () => {
|
|
42617
42617
|
switch (p) {
|
|
42618
42618
|
case "w-64":
|
|
42619
42619
|
return ue.width64;
|
|
@@ -42624,26 +42624,26 @@ const JMe = ({
|
|
|
42624
42624
|
default:
|
|
42625
42625
|
return ue.widthFull;
|
|
42626
42626
|
}
|
|
42627
|
-
},
|
|
42627
|
+
}, D = (S, A) => [
|
|
42628
42628
|
ue.option,
|
|
42629
42629
|
A === k ? ue.optionHighlighted : "",
|
|
42630
|
-
|
|
42631
|
-
|
|
42632
|
-
].filter(Boolean).join(" "),
|
|
42630
|
+
S.value === t ? ue.optionSelected : "",
|
|
42631
|
+
S.disabled ? ue.optionDisabled : ""
|
|
42632
|
+
].filter(Boolean).join(" "), H = {
|
|
42633
42633
|
position: "fixed",
|
|
42634
42634
|
top: _.top + (b.current?.offsetHeight || 0) + 4,
|
|
42635
42635
|
left: _.left,
|
|
42636
42636
|
width: _.width,
|
|
42637
42637
|
zIndex: 9999
|
|
42638
42638
|
};
|
|
42639
|
-
return /* @__PURE__ */ f("div", { className: `${ue.container} ${
|
|
42639
|
+
return /* @__PURE__ */ f("div", { className: `${ue.container} ${B()}`, children: [
|
|
42640
42640
|
/* @__PURE__ */ c(
|
|
42641
42641
|
"button",
|
|
42642
42642
|
{
|
|
42643
42643
|
ref: b,
|
|
42644
42644
|
className: z(),
|
|
42645
42645
|
onClick: () => !i && y(!u),
|
|
42646
|
-
onKeyDown:
|
|
42646
|
+
onKeyDown: $,
|
|
42647
42647
|
tabIndex: i ? -1 : 0,
|
|
42648
42648
|
type: "button",
|
|
42649
42649
|
"aria-haspopup": "listbox",
|
|
@@ -42679,8 +42679,8 @@ const JMe = ({
|
|
|
42679
42679
|
/* @__PURE__ */ f(
|
|
42680
42680
|
"div",
|
|
42681
42681
|
{
|
|
42682
|
-
className: `${ue.dropdown} ${
|
|
42683
|
-
style:
|
|
42682
|
+
className: `${ue.dropdown} ${B()}`,
|
|
42683
|
+
style: H,
|
|
42684
42684
|
ref: C,
|
|
42685
42685
|
children: [
|
|
42686
42686
|
/* @__PURE__ */ c("div", { className: ue.searchContainer, children: /* @__PURE__ */ f("div", { className: ue.searchInputWrapper, children: [
|
|
@@ -42715,18 +42715,18 @@ const JMe = ({
|
|
|
42715
42715
|
}
|
|
42716
42716
|
)
|
|
42717
42717
|
] }) }),
|
|
42718
|
-
/* @__PURE__ */ c("div", { className: ue.optionsList, children: L.length === 0 ? /* @__PURE__ */ c("div", { className: ue.noResults, children: "Aucun résultat trouvé" }) : /* @__PURE__ */ c("ul", { role: "listbox", children: L.map((
|
|
42718
|
+
/* @__PURE__ */ c("div", { className: ue.optionsList, children: L.length === 0 ? /* @__PURE__ */ c("div", { className: ue.noResults, children: "Aucun résultat trouvé" }) : /* @__PURE__ */ c("ul", { role: "listbox", children: L.map((S, A) => /* @__PURE__ */ c(
|
|
42719
42719
|
"li",
|
|
42720
42720
|
{
|
|
42721
|
-
className:
|
|
42722
|
-
onClick: () =>
|
|
42721
|
+
className: D(S, A),
|
|
42722
|
+
onClick: () => q(S),
|
|
42723
42723
|
onMouseEnter: () => M(A),
|
|
42724
42724
|
role: "option",
|
|
42725
|
-
"aria-selected":
|
|
42726
|
-
"aria-disabled":
|
|
42725
|
+
"aria-selected": S.value === t,
|
|
42726
|
+
"aria-disabled": S.disabled,
|
|
42727
42727
|
children: /* @__PURE__ */ f("div", { className: ue.buttonContent, children: [
|
|
42728
|
-
/* @__PURE__ */ c("span", { className: ue.optionLabel, title:
|
|
42729
|
-
|
|
42728
|
+
/* @__PURE__ */ c("span", { className: ue.optionLabel, title: S.label, children: S.label }),
|
|
42729
|
+
S.value === t && /* @__PURE__ */ c("svg", { className: ue.checkIcon, fill: "currentColor", viewBox: "0 0 20 20", children: /* @__PURE__ */ c(
|
|
42730
42730
|
"path",
|
|
42731
42731
|
{
|
|
42732
42732
|
fillRule: "evenodd",
|
|
@@ -42736,7 +42736,7 @@ const JMe = ({
|
|
|
42736
42736
|
) })
|
|
42737
42737
|
] })
|
|
42738
42738
|
},
|
|
42739
|
-
|
|
42739
|
+
S.value
|
|
42740
42740
|
)) }) })
|
|
42741
42741
|
]
|
|
42742
42742
|
}
|
|
@@ -42884,7 +42884,7 @@ function r_e(e) {
|
|
|
42884
42884
|
role: "list",
|
|
42885
42885
|
style: M !== void 0 ? { gap: `${M}px` } : {},
|
|
42886
42886
|
children: y.map((x, w) => {
|
|
42887
|
-
const { valueStyle:
|
|
42887
|
+
const { valueStyle: q, labelStyle: I } = e6e(x, {
|
|
42888
42888
|
defaultValueFontSize: h,
|
|
42889
42889
|
defaultValueFontWeight: l,
|
|
42890
42890
|
defaultLabelFontSize: p,
|
|
@@ -42900,7 +42900,7 @@ function r_e(e) {
|
|
|
42900
42900
|
...x.width ? { width: Ro(x.width) } : {}
|
|
42901
42901
|
},
|
|
42902
42902
|
children: /* @__PURE__ */ f("div", { className: kt.valueContainer, children: [
|
|
42903
|
-
/* @__PURE__ */ c("div", { className: kt.value, style:
|
|
42903
|
+
/* @__PURE__ */ c("div", { className: kt.value, style: q, children: x.value }),
|
|
42904
42904
|
x.label && /* @__PURE__ */ c("div", { className: kt.label, style: I, children: x.label })
|
|
42905
42905
|
] })
|
|
42906
42906
|
},
|
|
@@ -43152,25 +43152,25 @@ const a6e = (e) => /* @__PURE__ */ te.createElement("svg", { xmlns: "http://www.
|
|
|
43152
43152
|
cardGap: L = "",
|
|
43153
43153
|
onClick: x,
|
|
43154
43154
|
iconColor: w,
|
|
43155
|
-
titleKey:
|
|
43155
|
+
titleKey: q,
|
|
43156
43156
|
predictionValue: I,
|
|
43157
|
-
predictionLabel:
|
|
43157
|
+
predictionLabel: $
|
|
43158
43158
|
}) => {
|
|
43159
|
-
const z = r !== "none",
|
|
43159
|
+
const z = r !== "none", B = r === "endingDark", { padding: D, ...H } = y || {}, S = l === void 0 && p === void 0 && i === void 0 && Object.keys(H).length === 0 ? void 0 : {
|
|
43160
43160
|
...l !== void 0 ? { width: l } : {},
|
|
43161
43161
|
...p !== void 0 ? { height: p } : {},
|
|
43162
43162
|
...i !== void 0 ? { backgroundColor: i } : {},
|
|
43163
|
-
...
|
|
43163
|
+
...H
|
|
43164
43164
|
}, A = `${Oe.board} ${Oe[d]} ${I !== void 0 ? Oe.hasPrediction : ""} ${u}`;
|
|
43165
43165
|
return /* @__PURE__ */ f(
|
|
43166
43166
|
"div",
|
|
43167
43167
|
{
|
|
43168
43168
|
className: A,
|
|
43169
43169
|
onClick: x,
|
|
43170
|
-
style: h !== void 0 ? { ...
|
|
43170
|
+
style: h !== void 0 ? { ...S, "--ds-value-scale": h } : S,
|
|
43171
43171
|
children: [
|
|
43172
43172
|
b && /* @__PURE__ */ c("div", { className: Oe.sideBar, style: { backgroundColor: b } }),
|
|
43173
|
-
/* @__PURE__ */ f("div", { className: Oe.boardContent, style: { padding:
|
|
43173
|
+
/* @__PURE__ */ f("div", { className: Oe.boardContent, style: { padding: D, gap: L }, children: [
|
|
43174
43174
|
/* @__PURE__ */ f(
|
|
43175
43175
|
"div",
|
|
43176
43176
|
{
|
|
@@ -43181,7 +43181,7 @@ const a6e = (e) => /* @__PURE__ */ te.createElement("svg", { xmlns: "http://www.
|
|
|
43181
43181
|
/* @__PURE__ */ c("div", { className: `${Oe.headerTitle} header-title-data-board`, children: /* @__PURE__ */ c(
|
|
43182
43182
|
"span",
|
|
43183
43183
|
{
|
|
43184
|
-
title: ne(e,
|
|
43184
|
+
title: ne(e, q),
|
|
43185
43185
|
"aria-label": e?.description,
|
|
43186
43186
|
style: {
|
|
43187
43187
|
color: g,
|
|
@@ -43191,7 +43191,7 @@ const a6e = (e) => /* @__PURE__ */ te.createElement("svg", { xmlns: "http://www.
|
|
|
43191
43191
|
children: n
|
|
43192
43192
|
}
|
|
43193
43193
|
) }),
|
|
43194
|
-
z ? /* @__PURE__ */ c(F6e, { endingDark:
|
|
43194
|
+
z ? /* @__PURE__ */ c(F6e, { endingDark: B, lightCount: s }) : null
|
|
43195
43195
|
]
|
|
43196
43196
|
}
|
|
43197
43197
|
),
|
|
@@ -43209,7 +43209,7 @@ const a6e = (e) => /* @__PURE__ */ te.createElement("svg", { xmlns: "http://www.
|
|
|
43209
43209
|
)
|
|
43210
43210
|
] }),
|
|
43211
43211
|
I !== void 0 && /* @__PURE__ */ f("div", { className: Oe.predictionSection, children: [
|
|
43212
|
-
/* @__PURE__ */ c("div", { className: Oe.predictionHeader, children:
|
|
43212
|
+
/* @__PURE__ */ c("div", { className: Oe.predictionHeader, children: $ ?? "PRED." }),
|
|
43213
43213
|
/* @__PURE__ */ c("div", { className: Oe.predictionBody, children: I })
|
|
43214
43214
|
] })
|
|
43215
43215
|
]
|
|
@@ -43526,8 +43526,8 @@ const a6e = (e) => /* @__PURE__ */ te.createElement("svg", { xmlns: "http://www.
|
|
|
43526
43526
|
}) => {
|
|
43527
43527
|
const M = (y.top ?? 20) + (y.bottom ?? 40) + e.length * (s + 20), _ = Math.max(M, t), v = ie.useMemo(() => {
|
|
43528
43528
|
if (!e || e.length === 0) return d;
|
|
43529
|
-
const x = (parseFloat(h) || 12) * 0.7,
|
|
43530
|
-
return Math.min(Math.max(
|
|
43529
|
+
const x = (parseFloat(h) || 12) * 0.7, q = Math.max(...e.map((I) => (I.label || "").length)) * x + 16;
|
|
43530
|
+
return Math.min(Math.max(q, 40), d);
|
|
43531
43531
|
}, [e, h, d]);
|
|
43532
43532
|
return /* @__PURE__ */ c("div", { style: { backgroundColor: i, width: "100%" }, children: /* @__PURE__ */ c(W$, { width: "100%", height: _, children: /* @__PURE__ */ f(Az, { data: e, layout: "vertical", margin: y, children: [
|
|
43533
43533
|
/* @__PURE__ */ c(zz, { opacity: 0.4, stroke: "#E5E7EB", vertical: !1, horizontal: !0 }),
|
|
@@ -43579,8 +43579,8 @@ const a6e = (e) => /* @__PURE__ */ te.createElement("svg", { xmlns: "http://www.
|
|
|
43579
43579
|
),
|
|
43580
43580
|
o && /* @__PURE__ */ c(jz, { formatter: (L, x, w) => {
|
|
43581
43581
|
if (typeof L != "number") return L;
|
|
43582
|
-
const
|
|
43583
|
-
return typeof I == "number" && Number.isFinite(I) && k === "percentage" ? `${
|
|
43582
|
+
const q = g ? g(L) : L.toString(), I = w?.payload?.percentage;
|
|
43583
|
+
return typeof I == "number" && Number.isFinite(I) && k === "percentage" ? `${q} (${I.toFixed(1)}%)` : q;
|
|
43584
43584
|
}, labelStyle: { color: "var(--color-text)" } }),
|
|
43585
43585
|
/* @__PURE__ */ c(Hz, { dataKey: "value", fill: n, radius: 0, barSize: s, children: /* @__PURE__ */ c(
|
|
43586
43586
|
Tz,
|
|
@@ -43604,7 +43604,7 @@ const a6e = (e) => /* @__PURE__ */ te.createElement("svg", { xmlns: "http://www.
|
|
|
43604
43604
|
rowIcon: p8e
|
|
43605
43605
|
}, u8e = oc(
|
|
43606
43606
|
function({ isVisible: t, onClose: n, items: o, style: i, position: r, bg: s }, d) {
|
|
43607
|
-
const h =
|
|
43607
|
+
const h = W(null), l = d || h;
|
|
43608
43608
|
if (O(() => {
|
|
43609
43609
|
if (!t) return;
|
|
43610
43610
|
const y = (g) => {
|
|
@@ -43674,7 +43674,7 @@ const a6e = (e) => /* @__PURE__ */ te.createElement("svg", { xmlns: "http://www.
|
|
|
43674
43674
|
style: x,
|
|
43675
43675
|
className: w = ""
|
|
43676
43676
|
}) => {
|
|
43677
|
-
const { user:
|
|
43677
|
+
const { user: q } = At(), I = e || q, { currentTheme: $, switchTheme: z } = vC(), B = W(null), D = W(null), [H, S] = V(!1), [A, T] = V({}), F = Me(() => {
|
|
43678
43678
|
const ee = [], ae = ({ variant: me }) => me === "sun" ? /* @__PURE__ */ c(
|
|
43679
43679
|
"svg",
|
|
43680
43680
|
{
|
|
@@ -43706,7 +43706,7 @@ const a6e = (e) => /* @__PURE__ */ te.createElement("svg", { xmlns: "http://www.
|
|
|
43706
43706
|
typeof window > "u" || (r === "_blank" ? window.open(i, "_blank", "noopener,noreferrer") : window.location.assign(i));
|
|
43707
43707
|
}
|
|
43708
43708
|
}), ee.push({ id: "sep-profile", type: "separator" }));
|
|
43709
|
-
const le =
|
|
43709
|
+
const le = $ === "dark";
|
|
43710
43710
|
return ee.push({
|
|
43711
43711
|
id: "theme",
|
|
43712
43712
|
type: "action",
|
|
@@ -43730,21 +43730,21 @@ const a6e = (e) => /* @__PURE__ */ te.createElement("svg", { xmlns: "http://www.
|
|
|
43730
43730
|
}
|
|
43731
43731
|
})), ee;
|
|
43732
43732
|
}, [
|
|
43733
|
-
|
|
43733
|
+
$,
|
|
43734
43734
|
t,
|
|
43735
43735
|
n,
|
|
43736
43736
|
o,
|
|
43737
43737
|
i,
|
|
43738
43738
|
r,
|
|
43739
43739
|
z
|
|
43740
|
-
]),
|
|
43741
|
-
if (!
|
|
43742
|
-
|
|
43740
|
+
]), P = v ?? F, E = () => {
|
|
43741
|
+
if (!B.current) {
|
|
43742
|
+
S((ee) => !ee);
|
|
43743
43743
|
return;
|
|
43744
43744
|
}
|
|
43745
|
-
if (!
|
|
43746
|
-
const ee =
|
|
43747
|
-
|
|
43745
|
+
if (!H) {
|
|
43746
|
+
const ee = B.current.getBoundingClientRect(), ae = window.innerWidth, le = window.innerHeight, me = 200, he = 200, K = 4, G = C?.x ?? 0, se = C?.y ?? 0, Xe = ae - ee.right >= me + K;
|
|
43747
|
+
T(Xe ? {
|
|
43748
43748
|
top: ee.bottom - he + se,
|
|
43749
43749
|
left: ee.right + K + G
|
|
43750
43750
|
} : {
|
|
@@ -43752,28 +43752,28 @@ const a6e = (e) => /* @__PURE__ */ te.createElement("svg", { xmlns: "http://www.
|
|
|
43752
43752
|
left: ee.left + G
|
|
43753
43753
|
});
|
|
43754
43754
|
}
|
|
43755
|
-
|
|
43755
|
+
S((ee) => !ee);
|
|
43756
43756
|
};
|
|
43757
43757
|
if (O(() => {
|
|
43758
|
-
if (!
|
|
43758
|
+
if (!H || !B.current) return;
|
|
43759
43759
|
const ee = () => {
|
|
43760
|
-
const ae =
|
|
43761
|
-
|
|
43762
|
-
top: ae.bottom - K +
|
|
43760
|
+
const ae = B.current.getBoundingClientRect(), le = window.innerWidth, me = window.innerHeight, he = 200, K = 200, G = 4, se = C?.x ?? 0, Ve = C?.y ?? 0, we = le - ae.right >= he + G;
|
|
43761
|
+
T(we ? {
|
|
43762
|
+
top: ae.bottom - K + Ve,
|
|
43763
43763
|
left: ae.right + G + se
|
|
43764
43764
|
} : {
|
|
43765
|
-
bottom: me - ae.top +
|
|
43765
|
+
bottom: me - ae.top + Ve,
|
|
43766
43766
|
left: ae.left + se
|
|
43767
43767
|
});
|
|
43768
43768
|
};
|
|
43769
43769
|
return window.addEventListener("resize", ee), window.addEventListener("orientationchange", ee), () => {
|
|
43770
43770
|
window.removeEventListener("resize", ee), window.removeEventListener("orientationchange", ee);
|
|
43771
43771
|
};
|
|
43772
|
-
}, [
|
|
43773
|
-
if (!
|
|
43772
|
+
}, [H, C]), O(() => {
|
|
43773
|
+
if (!H || !B.current || !D.current) return;
|
|
43774
43774
|
const ee = () => {
|
|
43775
|
-
const le =
|
|
43776
|
-
|
|
43775
|
+
const le = B.current.getBoundingClientRect(), me = D.current.getBoundingClientRect(), he = C?.x ?? 0, K = C?.y ?? 0;
|
|
43776
|
+
T((G) => G.left !== void 0 && G.top !== void 0 && G.left >= le.right - 1 ? {
|
|
43777
43777
|
top: le.bottom - me.height + K,
|
|
43778
43778
|
left: G.left + he
|
|
43779
43779
|
} : G);
|
|
@@ -43781,10 +43781,10 @@ const a6e = (e) => /* @__PURE__ */ te.createElement("svg", { xmlns: "http://www.
|
|
|
43781
43781
|
setTimeout(ee, 0);
|
|
43782
43782
|
});
|
|
43783
43783
|
return () => cancelAnimationFrame(ae);
|
|
43784
|
-
}, [
|
|
43784
|
+
}, [H, C]), !I) return null;
|
|
43785
43785
|
const Y = I, oe = parseInt(l, 10) || 40, re = `${oe * 0.375}px`, Ce = `${oe * 1.375}px`, _e = `${oe * 0.2}px`, He = `${oe * 0.6}px`, ke = () => {
|
|
43786
43786
|
const ee = parseInt(l, 10) || 40, ae = Math.max(8, ee * 0.34375), le = Math.max(2, ee * 0.05);
|
|
43787
|
-
return /* @__PURE__ */ f(
|
|
43787
|
+
return /* @__PURE__ */ f(ze, { children: [
|
|
43788
43788
|
/* @__PURE__ */ f("div", { style: { position: "relative", flexShrink: 0, userSelect: "none" }, children: [
|
|
43789
43789
|
Y.image ? /* @__PURE__ */ c(
|
|
43790
43790
|
"img",
|
|
@@ -43899,11 +43899,11 @@ const a6e = (e) => /* @__PURE__ */ te.createElement("svg", { xmlns: "http://www.
|
|
|
43899
43899
|
] })
|
|
43900
43900
|
] });
|
|
43901
43901
|
};
|
|
43902
|
-
return /* @__PURE__ */ f(
|
|
43902
|
+
return /* @__PURE__ */ f(ze, { children: [
|
|
43903
43903
|
/* @__PURE__ */ c(
|
|
43904
43904
|
"div",
|
|
43905
43905
|
{
|
|
43906
|
-
ref:
|
|
43906
|
+
ref: B,
|
|
43907
43907
|
className: `user-info ${w}`,
|
|
43908
43908
|
style: {
|
|
43909
43909
|
display: "flex",
|
|
@@ -43919,7 +43919,7 @@ const a6e = (e) => /* @__PURE__ */ te.createElement("svg", { xmlns: "http://www.
|
|
|
43919
43919
|
userSelect: "none",
|
|
43920
43920
|
...x
|
|
43921
43921
|
},
|
|
43922
|
-
onClick:
|
|
43922
|
+
onClick: E,
|
|
43923
43923
|
title: ne(L, Y.role),
|
|
43924
43924
|
role: "button",
|
|
43925
43925
|
tabIndex: 0,
|
|
@@ -43929,10 +43929,10 @@ const a6e = (e) => /* @__PURE__ */ te.createElement("svg", { xmlns: "http://www.
|
|
|
43929
43929
|
/* @__PURE__ */ c(
|
|
43930
43930
|
u8e,
|
|
43931
43931
|
{
|
|
43932
|
-
ref:
|
|
43933
|
-
isVisible:
|
|
43934
|
-
onClose: () =>
|
|
43935
|
-
items:
|
|
43932
|
+
ref: D,
|
|
43933
|
+
isVisible: H,
|
|
43934
|
+
onClose: () => S(!1),
|
|
43935
|
+
items: P,
|
|
43936
43936
|
style: b,
|
|
43937
43937
|
position: A
|
|
43938
43938
|
}
|
|
@@ -43967,21 +43967,21 @@ const a6e = (e) => /* @__PURE__ */ te.createElement("svg", { xmlns: "http://www.
|
|
|
43967
43967
|
}) => {
|
|
43968
43968
|
const N = () => {
|
|
43969
43969
|
v || n?.();
|
|
43970
|
-
}, L = /* @__PURE__ */ f(
|
|
43970
|
+
}, L = /* @__PURE__ */ f(ze, { children: [
|
|
43971
43971
|
r && /* @__PURE__ */ c("span", { className: Ci.icon, style: { marginRight: m ? 0 : _ }, children: r }),
|
|
43972
43972
|
!m && /* @__PURE__ */ c("span", { className: Ci.label, children: e })
|
|
43973
43973
|
] }), x = () => {
|
|
43974
43974
|
if (!i) return "transparent";
|
|
43975
|
-
const
|
|
43976
|
-
const
|
|
43977
|
-
return
|
|
43978
|
-
r: parseInt(
|
|
43979
|
-
g: parseInt(
|
|
43980
|
-
b: parseInt(
|
|
43975
|
+
const q = (I) => {
|
|
43976
|
+
const $ = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(I);
|
|
43977
|
+
return $ ? {
|
|
43978
|
+
r: parseInt($[1], 16),
|
|
43979
|
+
g: parseInt($[2], 16),
|
|
43980
|
+
b: parseInt($[3], 16)
|
|
43981
43981
|
} : null;
|
|
43982
43982
|
};
|
|
43983
43983
|
if (h.startsWith("#")) {
|
|
43984
|
-
const I =
|
|
43984
|
+
const I = q(h);
|
|
43985
43985
|
if (I)
|
|
43986
43986
|
return `rgba(${I.r}, ${I.g}, ${I.b}, 0.08)`;
|
|
43987
43987
|
} else if (h.startsWith("rgb")) {
|
|
@@ -44052,35 +44052,35 @@ const a6e = (e) => /* @__PURE__ */ te.createElement("svg", { xmlns: "http://www.
|
|
|
44052
44052
|
versionFontWeight: x = "400",
|
|
44053
44053
|
// Add default value
|
|
44054
44054
|
versionColor: w = "#999",
|
|
44055
|
-
userInfoProps:
|
|
44055
|
+
userInfoProps: q,
|
|
44056
44056
|
style: I,
|
|
44057
|
-
className:
|
|
44057
|
+
className: $ = "",
|
|
44058
44058
|
width: z = "280px",
|
|
44059
|
-
showLogo:
|
|
44060
|
-
versionA11yConfig:
|
|
44061
|
-
displayNone:
|
|
44059
|
+
showLogo: B = !0,
|
|
44060
|
+
versionA11yConfig: D,
|
|
44061
|
+
displayNone: H = !1
|
|
44062
44062
|
}) => {
|
|
44063
|
-
const
|
|
44063
|
+
const S = At(), A = S.activeNav, T = S.setActiveNav, F = S.user, P = q.user || F;
|
|
44064
44064
|
return /* @__PURE__ */ f(
|
|
44065
44065
|
"div",
|
|
44066
44066
|
{
|
|
44067
|
-
className: `${wt.navbar} ${
|
|
44067
|
+
className: `${wt.navbar} ${$}`,
|
|
44068
44068
|
style: {
|
|
44069
44069
|
width: z,
|
|
44070
44070
|
backgroundColor: s,
|
|
44071
44071
|
padding: o,
|
|
44072
|
-
display:
|
|
44072
|
+
display: H ? "none" : "flex",
|
|
44073
44073
|
...I
|
|
44074
44074
|
},
|
|
44075
44075
|
children: [
|
|
44076
44076
|
/* @__PURE__ */ f("div", { className: wt.topSection, style: { gap: t }, children: [
|
|
44077
|
-
|
|
44078
|
-
/* @__PURE__ */ c("div", { className: wt.sectionsContainer, style: { gap: i }, children: n.map((
|
|
44079
|
-
|
|
44077
|
+
B && /* @__PURE__ */ c("div", { className: wt.logoContainer, children: /* @__PURE__ */ c(gC, { ...e }) }),
|
|
44078
|
+
/* @__PURE__ */ c("div", { className: wt.sectionsContainer, style: { gap: i }, children: n.map((E, Y) => /* @__PURE__ */ f("div", { className: wt.section, children: [
|
|
44079
|
+
E.title && /* @__PURE__ */ c(
|
|
44080
44080
|
"div",
|
|
44081
44081
|
{
|
|
44082
44082
|
className: wt.sectionTitle,
|
|
44083
|
-
title: ne(
|
|
44083
|
+
title: ne(E.a11yConfig, E.titleKey),
|
|
44084
44084
|
style: {
|
|
44085
44085
|
fontSize: b,
|
|
44086
44086
|
color: C,
|
|
@@ -44089,16 +44089,16 @@ const a6e = (e) => /* @__PURE__ */ te.createElement("svg", { xmlns: "http://www.
|
|
|
44089
44089
|
border: "4px solid transparent",
|
|
44090
44090
|
...p
|
|
44091
44091
|
},
|
|
44092
|
-
children:
|
|
44092
|
+
children: E.title
|
|
44093
44093
|
}
|
|
44094
44094
|
),
|
|
44095
|
-
/* @__PURE__ */ c("div", { className: wt.sectionItems, style: { gap: r }, children:
|
|
44095
|
+
/* @__PURE__ */ c("div", { className: wt.sectionItems, style: { gap: r }, children: E.items.map((oe) => /* @__PURE__ */ c(
|
|
44096
44096
|
ZA,
|
|
44097
44097
|
{
|
|
44098
44098
|
...oe,
|
|
44099
44099
|
isActive: oe.isActive === null ? oe.isActive : A === oe.id,
|
|
44100
44100
|
onClick: () => {
|
|
44101
|
-
oe.onClick && oe.onClick(), oe.isActive == null &&
|
|
44101
|
+
oe.onClick && oe.onClick(), oe.isActive == null && T(oe.id);
|
|
44102
44102
|
},
|
|
44103
44103
|
highlightColor: d,
|
|
44104
44104
|
activeColor: d,
|
|
@@ -44116,12 +44116,12 @@ const a6e = (e) => /* @__PURE__ */ te.createElement("svg", { xmlns: "http://www.
|
|
|
44116
44116
|
] }, Y)) })
|
|
44117
44117
|
] }),
|
|
44118
44118
|
/* @__PURE__ */ f("div", { className: wt.bottomSection, style: { gap: t }, children: [
|
|
44119
|
-
/* @__PURE__ */ c(y8e, {
|
|
44119
|
+
/* @__PURE__ */ c(y8e, { ...q, user: P }),
|
|
44120
44120
|
l && /* @__PURE__ */ c(
|
|
44121
44121
|
"div",
|
|
44122
44122
|
{
|
|
44123
44123
|
className: wt.versionContainer,
|
|
44124
|
-
title: ne(
|
|
44124
|
+
title: ne(D, l),
|
|
44125
44125
|
style: {
|
|
44126
44126
|
fontSize: L,
|
|
44127
44127
|
fontWeight: x,
|
|
@@ -44226,17 +44226,17 @@ const a6e = (e) => /* @__PURE__ */ te.createElement("svg", { xmlns: "http://www.
|
|
|
44226
44226
|
gap: L = "8px",
|
|
44227
44227
|
style: x,
|
|
44228
44228
|
className: w = "",
|
|
44229
|
-
disabled:
|
|
44229
|
+
disabled: q = !1,
|
|
44230
44230
|
onNavigate: I
|
|
44231
44231
|
}) => {
|
|
44232
|
-
const
|
|
44233
|
-
|
|
44232
|
+
const $ = () => {
|
|
44233
|
+
q || (o?.(), i && (I ? I(i) : window.location.href = i));
|
|
44234
44234
|
};
|
|
44235
44235
|
return /* @__PURE__ */ f(
|
|
44236
44236
|
"div",
|
|
44237
44237
|
{
|
|
44238
44238
|
className: `${Ii.navItem} ${w}`,
|
|
44239
|
-
onClick:
|
|
44239
|
+
onClick: $,
|
|
44240
44240
|
title: ne(e, r),
|
|
44241
44241
|
style: {
|
|
44242
44242
|
gap: L,
|
|
@@ -44265,7 +44265,7 @@ const a6e = (e) => /* @__PURE__ */ te.createElement("svg", { xmlns: "http://www.
|
|
|
44265
44265
|
children: d
|
|
44266
44266
|
}
|
|
44267
44267
|
),
|
|
44268
|
-
n &&
|
|
44268
|
+
n && !q && /* @__PURE__ */ c(
|
|
44269
44269
|
"div",
|
|
44270
44270
|
{
|
|
44271
44271
|
className: Ii.navItemIndicator,
|
|
@@ -44314,19 +44314,19 @@ const a6e = (e) => /* @__PURE__ */ te.createElement("svg", { xmlns: "http://www.
|
|
|
44314
44314
|
headerPadding: L = "14px 20px",
|
|
44315
44315
|
itemPadding: x = "14px 20px",
|
|
44316
44316
|
iconGap: w = 14,
|
|
44317
|
-
borderRadius:
|
|
44317
|
+
borderRadius: q = 0
|
|
44318
44318
|
}) => {
|
|
44319
|
-
const [I,
|
|
44319
|
+
const [I, $] = V(""), z = W(null);
|
|
44320
44320
|
O(() => {
|
|
44321
|
-
const
|
|
44322
|
-
z.current && !z.current.contains(
|
|
44321
|
+
const D = (H) => {
|
|
44322
|
+
z.current && !z.current.contains(H.target) && $("");
|
|
44323
44323
|
};
|
|
44324
|
-
return document.addEventListener("mousedown",
|
|
44324
|
+
return document.addEventListener("mousedown", D), () => document.removeEventListener("mousedown", D);
|
|
44325
44325
|
}, []);
|
|
44326
|
-
const
|
|
44326
|
+
const B = {
|
|
44327
44327
|
backgroundColor: r,
|
|
44328
44328
|
color: s,
|
|
44329
|
-
borderRadius:
|
|
44329
|
+
borderRadius: q,
|
|
44330
44330
|
...o
|
|
44331
44331
|
};
|
|
44332
44332
|
return /* @__PURE__ */ c(
|
|
@@ -44334,9 +44334,9 @@ const a6e = (e) => /* @__PURE__ */ te.createElement("svg", { xmlns: "http://www.
|
|
|
44334
44334
|
{
|
|
44335
44335
|
ref: z,
|
|
44336
44336
|
className: [Lt.container, i].filter(Boolean).join(" "),
|
|
44337
|
-
style:
|
|
44338
|
-
children: e.map((
|
|
44339
|
-
const
|
|
44337
|
+
style: B,
|
|
44338
|
+
children: e.map((D) => {
|
|
44339
|
+
const H = I === D.id, S = {
|
|
44340
44340
|
backgroundColor: d,
|
|
44341
44341
|
color: h,
|
|
44342
44342
|
padding: L,
|
|
@@ -44350,26 +44350,26 @@ const a6e = (e) => /* @__PURE__ */ te.createElement("svg", { xmlns: "http://www.
|
|
|
44350
44350
|
"div",
|
|
44351
44351
|
{
|
|
44352
44352
|
className: Lt.groupHeader,
|
|
44353
|
-
style:
|
|
44354
|
-
onClick: () =>
|
|
44353
|
+
style: S,
|
|
44354
|
+
onClick: () => $(H ? "" : D.id),
|
|
44355
44355
|
role: "button",
|
|
44356
|
-
"aria-expanded":
|
|
44356
|
+
"aria-expanded": H,
|
|
44357
44357
|
children: [
|
|
44358
44358
|
/* @__PURE__ */ f("div", { className: Lt.groupHeaderLeft, style: { gap: w }, children: [
|
|
44359
|
-
|
|
44359
|
+
D.icon && /* @__PURE__ */ c(
|
|
44360
44360
|
"span",
|
|
44361
44361
|
{
|
|
44362
44362
|
className: Lt.groupIcon,
|
|
44363
44363
|
style: { color: b, width: N, height: N },
|
|
44364
|
-
children:
|
|
44364
|
+
children: D.icon
|
|
44365
44365
|
}
|
|
44366
44366
|
),
|
|
44367
|
-
/* @__PURE__ */ c("span", { children:
|
|
44367
|
+
/* @__PURE__ */ c("span", { children: D.label })
|
|
44368
44368
|
] }),
|
|
44369
44369
|
/* @__PURE__ */ c(
|
|
44370
44370
|
"span",
|
|
44371
44371
|
{
|
|
44372
|
-
className: [Lt.chevron,
|
|
44372
|
+
className: [Lt.chevron, H ? Lt.chevronOpen : ""].join(" "),
|
|
44373
44373
|
style: { color: C },
|
|
44374
44374
|
children: /* @__PURE__ */ c(Yi, { width: 18, height: 18 })
|
|
44375
44375
|
}
|
|
@@ -44377,48 +44377,48 @@ const a6e = (e) => /* @__PURE__ */ te.createElement("svg", { xmlns: "http://www.
|
|
|
44377
44377
|
]
|
|
44378
44378
|
}
|
|
44379
44379
|
),
|
|
44380
|
-
|
|
44381
|
-
const
|
|
44380
|
+
H && /* @__PURE__ */ c("div", { className: Lt.dropdown, style: A, children: D.items.map((T) => {
|
|
44381
|
+
const F = T.id === t, P = {
|
|
44382
44382
|
padding: x,
|
|
44383
44383
|
gap: w,
|
|
44384
|
-
color:
|
|
44384
|
+
color: F ? m : g,
|
|
44385
44385
|
backgroundColor: u,
|
|
44386
44386
|
/* Custom variables for the pseudo-element border */
|
|
44387
|
-
"--item-border-width":
|
|
44388
|
-
"--item-border-color":
|
|
44387
|
+
"--item-border-width": F ? "4px" : "1px",
|
|
44388
|
+
"--item-border-color": F ? k : M
|
|
44389
44389
|
};
|
|
44390
44390
|
return /* @__PURE__ */ f(
|
|
44391
44391
|
"div",
|
|
44392
44392
|
{
|
|
44393
44393
|
className: Lt.item,
|
|
44394
|
-
style:
|
|
44394
|
+
style: P,
|
|
44395
44395
|
onClick: () => {
|
|
44396
|
-
n?.(
|
|
44396
|
+
n?.(D.id, T.id), $("");
|
|
44397
44397
|
},
|
|
44398
44398
|
role: "menuitem",
|
|
44399
|
-
onMouseEnter: (
|
|
44400
|
-
|
|
44399
|
+
onMouseEnter: (E) => {
|
|
44400
|
+
F || (E.currentTarget.style.backgroundColor = y);
|
|
44401
44401
|
},
|
|
44402
44402
|
children: [
|
|
44403
|
-
|
|
44403
|
+
T.icon && /* @__PURE__ */ c(
|
|
44404
44404
|
"span",
|
|
44405
44405
|
{
|
|
44406
44406
|
className: Lt.itemIcon,
|
|
44407
44407
|
style: {
|
|
44408
|
-
color:
|
|
44408
|
+
color: F ? v : _,
|
|
44409
44409
|
width: N,
|
|
44410
44410
|
height: N
|
|
44411
44411
|
},
|
|
44412
|
-
children:
|
|
44412
|
+
children: T.icon
|
|
44413
44413
|
}
|
|
44414
44414
|
),
|
|
44415
|
-
/* @__PURE__ */ c("span", { children:
|
|
44415
|
+
/* @__PURE__ */ c("span", { children: T.label })
|
|
44416
44416
|
]
|
|
44417
44417
|
},
|
|
44418
|
-
|
|
44418
|
+
T.id
|
|
44419
44419
|
);
|
|
44420
44420
|
}) })
|
|
44421
|
-
] },
|
|
44421
|
+
] }, D.id);
|
|
44422
44422
|
})
|
|
44423
44423
|
}
|
|
44424
44424
|
);
|
|
@@ -44454,21 +44454,21 @@ const a6e = (e) => /* @__PURE__ */ te.createElement("svg", { xmlns: "http://www.
|
|
|
44454
44454
|
countColor: L,
|
|
44455
44455
|
countBorderRadius: x,
|
|
44456
44456
|
countPadding: w,
|
|
44457
|
-
countFontSize:
|
|
44457
|
+
countFontSize: q,
|
|
44458
44458
|
countFontWeight: I,
|
|
44459
|
-
navContainerClassName:
|
|
44459
|
+
navContainerClassName: $,
|
|
44460
44460
|
navContainerStyle: z,
|
|
44461
|
-
rightContentClassName:
|
|
44462
|
-
rightContentStyle:
|
|
44463
|
-
rightActions:
|
|
44464
|
-
activeSwitcherColor:
|
|
44461
|
+
rightContentClassName: B,
|
|
44462
|
+
rightContentStyle: D,
|
|
44463
|
+
rightActions: H,
|
|
44464
|
+
activeSwitcherColor: S,
|
|
44465
44465
|
inactiveSwitcherColor: A,
|
|
44466
|
-
isMobile:
|
|
44467
|
-
onNavigate:
|
|
44466
|
+
isMobile: T = !1,
|
|
44467
|
+
onNavigate: F
|
|
44468
44468
|
}) => {
|
|
44469
|
-
const { activeSubNav:
|
|
44470
|
-
if (
|
|
44471
|
-
const re = e.find((_e) => _e.id ===
|
|
44469
|
+
const { activeSubNav: P, setActiveSubNav: E, navCounts: Y, activeNav: oe } = At();
|
|
44470
|
+
if (T) {
|
|
44471
|
+
const re = e.find((_e) => _e.id === P) || e[0], Ce = [
|
|
44472
44472
|
{
|
|
44473
44473
|
id: "current-group",
|
|
44474
44474
|
label: re?.label || oe?.toUpperCase() || "MENU",
|
|
@@ -44484,10 +44484,10 @@ const a6e = (e) => /* @__PURE__ */ te.createElement("svg", { xmlns: "http://www.
|
|
|
44484
44484
|
W8e,
|
|
44485
44485
|
{
|
|
44486
44486
|
groups: Ce,
|
|
44487
|
-
activeItemId:
|
|
44487
|
+
activeItemId: P,
|
|
44488
44488
|
onItemClick: (_e, He) => {
|
|
44489
44489
|
const ke = e.find((ee) => ee.id === He);
|
|
44490
|
-
ke && (ke.onClick && ke.onClick(), ke.href && (
|
|
44490
|
+
ke && (ke.onClick && ke.onClick(), ke.href && (F ? F(ke.href) : ke.onNavigate ? ke.onNavigate(ke.href) : window.location.href = ke.href), E(He));
|
|
44491
44491
|
},
|
|
44492
44492
|
headerBgColor: t
|
|
44493
44493
|
}
|
|
@@ -44511,19 +44511,19 @@ const a6e = (e) => /* @__PURE__ */ te.createElement("svg", { xmlns: "http://www.
|
|
|
44511
44511
|
/* @__PURE__ */ c(
|
|
44512
44512
|
"div",
|
|
44513
44513
|
{
|
|
44514
|
-
className: `${RL.navContainer} ${
|
|
44514
|
+
className: `${RL.navContainer} ${$ || ""}`,
|
|
44515
44515
|
style: { gap: h, ...z },
|
|
44516
44516
|
children: e.map((re) => {
|
|
44517
|
-
const Ce = re.count !== void 0 ? re.count : Y[re.id], _e =
|
|
44517
|
+
const Ce = re.count !== void 0 ? re.count : Y[re.id], _e = P === re.id || re.isActive;
|
|
44518
44518
|
return /* @__PURE__ */ c(
|
|
44519
44519
|
P8e,
|
|
44520
44520
|
{
|
|
44521
44521
|
...re,
|
|
44522
|
-
onNavigate:
|
|
44522
|
+
onNavigate: F || re.onNavigate,
|
|
44523
44523
|
count: Ce,
|
|
44524
44524
|
isActive: _e,
|
|
44525
44525
|
onClick: () => {
|
|
44526
|
-
re.onClick && re.onClick(),
|
|
44526
|
+
re.onClick && re.onClick(), E(re.id);
|
|
44527
44527
|
},
|
|
44528
44528
|
activeColor: g,
|
|
44529
44529
|
inactiveColor: m,
|
|
@@ -44531,7 +44531,7 @@ const a6e = (e) => /* @__PURE__ */ te.createElement("svg", { xmlns: "http://www.
|
|
|
44531
44531
|
countColor: L,
|
|
44532
44532
|
countBorderRadius: x,
|
|
44533
44533
|
countPadding: w,
|
|
44534
|
-
countFontSize:
|
|
44534
|
+
countFontSize: q,
|
|
44535
44535
|
countFontWeight: I,
|
|
44536
44536
|
indicatorColor: g,
|
|
44537
44537
|
indicatorHeight: k,
|
|
@@ -44549,15 +44549,15 @@ const a6e = (e) => /* @__PURE__ */ te.createElement("svg", { xmlns: "http://www.
|
|
|
44549
44549
|
/* @__PURE__ */ f(
|
|
44550
44550
|
"div",
|
|
44551
44551
|
{
|
|
44552
|
-
className: `${RL.rightContent} ${
|
|
44553
|
-
style: { gap: l, ...
|
|
44552
|
+
className: `${RL.rightContent} ${B || ""}`,
|
|
44553
|
+
style: { gap: l, ...D },
|
|
44554
44554
|
children: [
|
|
44555
44555
|
M && /* @__PURE__ */ c(
|
|
44556
44556
|
EL,
|
|
44557
44557
|
{
|
|
44558
44558
|
size: 20,
|
|
44559
44559
|
colors: {
|
|
44560
|
-
bg:
|
|
44560
|
+
bg: S,
|
|
44561
44561
|
activeBg: A,
|
|
44562
44562
|
icon: "#1C1B1F",
|
|
44563
44563
|
icon2: "#FFFFFF"
|
|
@@ -44569,7 +44569,7 @@ const a6e = (e) => /* @__PURE__ */ te.createElement("svg", { xmlns: "http://www.
|
|
|
44569
44569
|
{
|
|
44570
44570
|
size: 20,
|
|
44571
44571
|
colors: {
|
|
44572
|
-
bg:
|
|
44572
|
+
bg: S,
|
|
44573
44573
|
activeBg: A,
|
|
44574
44574
|
icon: "#1C1B1F",
|
|
44575
44575
|
icon2: "#FFFFFF"
|
|
@@ -44581,14 +44581,14 @@ const a6e = (e) => /* @__PURE__ */ te.createElement("svg", { xmlns: "http://www.
|
|
|
44581
44581
|
{
|
|
44582
44582
|
size: 20,
|
|
44583
44583
|
colors: {
|
|
44584
|
-
bg:
|
|
44584
|
+
bg: S,
|
|
44585
44585
|
activeBg: A,
|
|
44586
44586
|
icon: "#1C1B1F",
|
|
44587
44587
|
icon2: "#FFFFFF"
|
|
44588
44588
|
}
|
|
44589
44589
|
}
|
|
44590
44590
|
),
|
|
44591
|
-
|
|
44591
|
+
H
|
|
44592
44592
|
]
|
|
44593
44593
|
}
|
|
44594
44594
|
)
|
|
@@ -44611,7 +44611,7 @@ const a6e = (e) => /* @__PURE__ */ te.createElement("svg", { xmlns: "http://www.
|
|
|
44611
44611
|
};
|
|
44612
44612
|
return ie.useEffect(() => {
|
|
44613
44613
|
p(!0);
|
|
44614
|
-
}, []), !l || !u ? /* @__PURE__ */ c(
|
|
44614
|
+
}, []), !l || !u ? /* @__PURE__ */ c(ze, {}) : /* @__PURE__ */ c(
|
|
44615
44615
|
"div",
|
|
44616
44616
|
{
|
|
44617
44617
|
className: `theme-switcher ${h}`,
|
|
@@ -44800,28 +44800,28 @@ const a6e = (e) => /* @__PURE__ */ te.createElement("svg", { xmlns: "http://www.
|
|
|
44800
44800
|
t({ page: _ });
|
|
44801
44801
|
}, M = Me(() => {
|
|
44802
44802
|
if (u <= 6)
|
|
44803
|
-
return Array.from({ length: u }, (
|
|
44803
|
+
return Array.from({ length: u }, (q, I) => I + 1);
|
|
44804
44804
|
const b = Math.max(y - 1, 1), C = Math.min(y + 1, u), N = b > 2, L = C < u - 2, x = 1, w = u;
|
|
44805
44805
|
if (!N && L)
|
|
44806
|
-
return [...Array.from({ length: 5 }, (
|
|
44806
|
+
return [...Array.from({ length: 5 }, ($, z) => z + 1), "...", u];
|
|
44807
44807
|
if (N && !L) {
|
|
44808
44808
|
const I = Array.from(
|
|
44809
44809
|
{ length: 5 },
|
|
44810
|
-
(
|
|
44810
|
+
($, z) => u - 5 + z + 1
|
|
44811
44811
|
);
|
|
44812
44812
|
return [x, "...", ...I];
|
|
44813
44813
|
}
|
|
44814
44814
|
if (N && L) {
|
|
44815
|
-
const
|
|
44815
|
+
const q = Array.from(
|
|
44816
44816
|
{ length: C - b + 1 },
|
|
44817
|
-
(I,
|
|
44817
|
+
(I, $) => b + $
|
|
44818
44818
|
);
|
|
44819
|
-
return [x, "...",
|
|
44819
|
+
return [x, "...", ...q, "...", w];
|
|
44820
44820
|
}
|
|
44821
44821
|
return [];
|
|
44822
44822
|
}, [y, u]);
|
|
44823
44823
|
return /* @__PURE__ */ f("div", { className: "table-pagination", children: [
|
|
44824
|
-
/* @__PURE__ */ c("div", { className: "pagination-summary", children: l > 0 ? /* @__PURE__ */ c("span", { children: r?.itemsRange ? r.itemsRange(g, m, l) : /* @__PURE__ */ f(
|
|
44824
|
+
/* @__PURE__ */ c("div", { className: "pagination-summary", children: l > 0 ? /* @__PURE__ */ c("span", { children: r?.itemsRange ? r.itemsRange(g, m, l) : /* @__PURE__ */ f(ze, { children: [
|
|
44825
44825
|
/* @__PURE__ */ f("b", { children: [
|
|
44826
44826
|
g,
|
|
44827
44827
|
"–",
|
|
@@ -44930,7 +44930,7 @@ const a6e = (e) => /* @__PURE__ */ te.createElement("svg", { xmlns: "http://www.
|
|
|
44930
44930
|
a11yConfig: x,
|
|
44931
44931
|
renderSeparator: w
|
|
44932
44932
|
}) => {
|
|
44933
|
-
const
|
|
44933
|
+
const q = ie.useMemo(
|
|
44934
44934
|
() => ({
|
|
44935
44935
|
...u
|
|
44936
44936
|
}),
|
|
@@ -44938,21 +44938,21 @@ const a6e = (e) => /* @__PURE__ */ te.createElement("svg", { xmlns: "http://www.
|
|
|
44938
44938
|
), I = ie.useRef(null);
|
|
44939
44939
|
ie.useEffect(() => {
|
|
44940
44940
|
if (!g || !y || !m || n) return;
|
|
44941
|
-
const
|
|
44941
|
+
const S = new IntersectionObserver(
|
|
44942
44942
|
(A) => {
|
|
44943
44943
|
A[0].isIntersecting && y();
|
|
44944
44944
|
},
|
|
44945
44945
|
{ threshold: 0.1 }
|
|
44946
44946
|
);
|
|
44947
|
-
return I.current &&
|
|
44947
|
+
return I.current && S.observe(I.current), () => S.disconnect();
|
|
44948
44948
|
}, [g, y, m, n]);
|
|
44949
|
-
const { tableState:
|
|
44949
|
+
const { tableState: $, handleSort: z } = X8e({
|
|
44950
44950
|
initialSortBy: null,
|
|
44951
44951
|
onSortChange: r
|
|
44952
|
-
}),
|
|
44953
|
-
const A =
|
|
44954
|
-
let
|
|
44955
|
-
A ===
|
|
44952
|
+
}), B = (k?.sortBy !== void 0 ? k.sortBy : $.sortBy) ?? void 0, D = k?.sortOrder !== void 0 ? k.sortOrder : $.sortOrder, H = (S) => {
|
|
44953
|
+
const A = B, T = D;
|
|
44954
|
+
let F = "asc";
|
|
44955
|
+
A === S && (F = T === "asc" ? "desc" : "asc"), k?.sortBy !== void 0 ? r(S, F) : z(S);
|
|
44956
44956
|
};
|
|
44957
44957
|
return /* @__PURE__ */ f(
|
|
44958
44958
|
"div",
|
|
@@ -44988,9 +44988,9 @@ const a6e = (e) => /* @__PURE__ */ te.createElement("svg", { xmlns: "http://www.
|
|
|
44988
44988
|
tfe,
|
|
44989
44989
|
{
|
|
44990
44990
|
columns: t,
|
|
44991
|
-
sortBy:
|
|
44992
|
-
sortOrder:
|
|
44993
|
-
onSort:
|
|
44991
|
+
sortBy: B,
|
|
44992
|
+
sortOrder: D,
|
|
44993
|
+
onSort: H,
|
|
44994
44994
|
removeLabelSpan: L
|
|
44995
44995
|
}
|
|
44996
44996
|
),
|
|
@@ -44998,14 +44998,14 @@ const a6e = (e) => /* @__PURE__ */ te.createElement("svg", { xmlns: "http://www.
|
|
|
44998
44998
|
afe,
|
|
44999
44999
|
{
|
|
45000
45000
|
data: e,
|
|
45001
|
-
columns: t.map((
|
|
45002
|
-
...
|
|
45003
|
-
render:
|
|
45001
|
+
columns: t.map((S) => ({
|
|
45002
|
+
...S,
|
|
45003
|
+
render: S.render ? (A) => S.render(A, {}) : void 0
|
|
45004
45004
|
})),
|
|
45005
45005
|
rowKey: s,
|
|
45006
45006
|
onRowClick: b,
|
|
45007
45007
|
isLoading: n,
|
|
45008
|
-
text:
|
|
45008
|
+
text: q,
|
|
45009
45009
|
rowStyle: typeof v == "function" ? v : v ? () => v : void 0,
|
|
45010
45010
|
rowClassName: C,
|
|
45011
45011
|
renderSeparator: w
|
|
@@ -45022,7 +45022,7 @@ const a6e = (e) => /* @__PURE__ */ te.createElement("svg", { xmlns: "http://www.
|
|
|
45022
45022
|
{
|
|
45023
45023
|
state: o,
|
|
45024
45024
|
onPaginationChange: i,
|
|
45025
|
-
text:
|
|
45025
|
+
text: q,
|
|
45026
45026
|
onLoadMore: y,
|
|
45027
45027
|
infiniteScroll: g,
|
|
45028
45028
|
hasMore: m,
|
|
@@ -45113,19 +45113,19 @@ const a6e = (e) => /* @__PURE__ */ te.createElement("svg", { xmlns: "http://www.
|
|
|
45113
45113
|
itemHoverColor: L,
|
|
45114
45114
|
selectedItemBgColor: x,
|
|
45115
45115
|
iconColor: w,
|
|
45116
|
-
errorColor:
|
|
45116
|
+
errorColor: q,
|
|
45117
45117
|
labelColor: I,
|
|
45118
|
-
placeholderColor:
|
|
45118
|
+
placeholderColor: $,
|
|
45119
45119
|
borderRadius: z = "var(--radius-content)",
|
|
45120
|
-
borderWidth:
|
|
45121
|
-
boxShadow:
|
|
45122
|
-
transitionDuration:
|
|
45123
|
-
transitionTiming:
|
|
45120
|
+
borderWidth: B = "0.0625rem",
|
|
45121
|
+
boxShadow: D = "0 0.25rem 0.75rem rgba(0, 0, 0, 0.1)",
|
|
45122
|
+
transitionDuration: H = "0.2s",
|
|
45123
|
+
transitionTiming: S = "ease",
|
|
45124
45124
|
dateCellSize: A = "2.5rem",
|
|
45125
|
-
headerTextColor:
|
|
45126
|
-
weekdayTextColor:
|
|
45127
|
-
currentMonthDateColor:
|
|
45128
|
-
otherMonthDateColor:
|
|
45125
|
+
headerTextColor: T = "#6c757d",
|
|
45126
|
+
weekdayTextColor: F = "#6c757d",
|
|
45127
|
+
currentMonthDateColor: P = "#212529",
|
|
45128
|
+
otherMonthDateColor: E = "#adb5bd",
|
|
45129
45129
|
selectedDateBgColor: Y = "#00A6D9",
|
|
45130
45130
|
selectedDateTextColor: oe = "#ffffff",
|
|
45131
45131
|
cancelButtonBgColor: re = "#e9ecef",
|
|
@@ -45141,10 +45141,10 @@ const a6e = (e) => /* @__PURE__ */ te.createElement("svg", { xmlns: "http://www.
|
|
|
45141
45141
|
dropdownWidth: K,
|
|
45142
45142
|
withBorder: G = !1,
|
|
45143
45143
|
icon: se,
|
|
45144
|
-
precision:
|
|
45144
|
+
precision: Ve = "day",
|
|
45145
45145
|
hoursLabel: Xe = "Heures",
|
|
45146
45146
|
minutesLabel: we = "Minutes",
|
|
45147
|
-
lowerLimit:
|
|
45147
|
+
lowerLimit: Pe = null,
|
|
45148
45148
|
upperLimit: xt = null,
|
|
45149
45149
|
outOfLimitsMessage: xi = "La date/heure choisie est hors des limites autorisées",
|
|
45150
45150
|
months: pe,
|
|
@@ -45166,7 +45166,7 @@ const a6e = (e) => /* @__PURE__ */ te.createElement("svg", { xmlns: "http://www.
|
|
|
45166
45166
|
return isNaN(X.getTime()) ? null : X;
|
|
45167
45167
|
}
|
|
45168
45168
|
return null;
|
|
45169
|
-
}, [Qe, Xt] = V(!1), [Zo, az] = V({ top: 0, left: 0, width: 0 }), [iN, cN] = V(null), [ye, bi] = V(Kt(e) || /* @__PURE__ */ new Date()), [wi, Hb] = V(Kt(e)), [dc, Tb] = V(Kt(e)?.getHours() ?? 0), [lc, Db] = V(Kt(e)?.getMinutes() ?? 0), [Bb, Ko] = V(!1), [Rb, Xo] = V(!1), Fb =
|
|
45169
|
+
}, [Qe, Xt] = V(!1), [Zo, az] = V({ top: 0, left: 0, width: 0 }), [iN, cN] = V(null), [ye, bi] = V(Kt(e) || /* @__PURE__ */ new Date()), [wi, Hb] = V(Kt(e)), [dc, Tb] = V(Kt(e)?.getHours() ?? 0), [lc, Db] = V(Kt(e)?.getMinutes() ?? 0), [Bb, Ko] = V(!1), [Rb, Xo] = V(!1), Fb = W(null), Yo = W(null), rN = W(null), Ob = W(null), Eb = W(null);
|
|
45170
45170
|
O(() => {
|
|
45171
45171
|
const R = Kt(e);
|
|
45172
45172
|
Hb(R), R && (bi(R), Tb(R.getHours()), Db(R.getMinutes()));
|
|
@@ -45215,7 +45215,7 @@ const a6e = (e) => /* @__PURE__ */ te.createElement("svg", { xmlns: "http://www.
|
|
|
45215
45215
|
for (let qe = 1; qe <= st; qe++)
|
|
45216
45216
|
R.push(new Date(ye.getFullYear(), ye.getMonth() + 1, qe));
|
|
45217
45217
|
return R;
|
|
45218
|
-
}, iz = (R, X) => !R || !X ? !1 : R.getDate() === X.getDate() && R.getMonth() === X.getMonth() && R.getFullYear() === X.getFullYear(), cz = (R) => R.getMonth() === ye.getMonth() && R.getFullYear() === ye.getFullYear(), hN = (R) => !(
|
|
45218
|
+
}, iz = (R, X) => !R || !X ? !1 : R.getDate() === X.getDate() && R.getMonth() === X.getMonth() && R.getFullYear() === X.getFullYear(), cz = (R) => R.getMonth() === ye.getMonth() && R.getFullYear() === ye.getFullYear(), hN = (R) => !(Pe && R < Pe || xt && R > xt), pN = wi ? (() => {
|
|
45219
45219
|
const R = new Date(wi);
|
|
45220
45220
|
return R.setHours(dc), R.setMinutes(lc), R;
|
|
45221
45221
|
})() : null, Qo = pN ? !hN(pN) : !1, rz = () => {
|
|
@@ -45272,20 +45272,20 @@ const a6e = (e) => /* @__PURE__ */ te.createElement("svg", { xmlns: "http://www.
|
|
|
45272
45272
|
padding: l,
|
|
45273
45273
|
backgroundColor: v || "#ffffff",
|
|
45274
45274
|
border: G ? void 0 : "none",
|
|
45275
|
-
borderColor: d ?
|
|
45275
|
+
borderColor: d ? q || "#dc3545" : b || "#dee2e6",
|
|
45276
45276
|
color: C || "#212529",
|
|
45277
45277
|
borderRadius: z,
|
|
45278
|
-
borderWidth:
|
|
45278
|
+
borderWidth: B,
|
|
45279
45279
|
fontWeight: _,
|
|
45280
|
-
transition: `all ${
|
|
45280
|
+
transition: `all ${H} ${S}`
|
|
45281
45281
|
}, uN = iN != null, gz = {
|
|
45282
45282
|
backgroundColor: N || "#ffffff",
|
|
45283
45283
|
maxHeight: uN ? `${iN}px` : p,
|
|
45284
45284
|
overflowY: uN ? "auto" : void 0,
|
|
45285
45285
|
borderRadius: z,
|
|
45286
|
-
borderWidth:
|
|
45287
|
-
boxShadow:
|
|
45288
|
-
transition: `opacity ${
|
|
45286
|
+
borderWidth: B,
|
|
45287
|
+
boxShadow: D,
|
|
45288
|
+
transition: `opacity ${H} ${S}, transform ${H} ${S}`,
|
|
45289
45289
|
position: "fixed",
|
|
45290
45290
|
top: me === "bottom" ? Zo.top + (Yo.current?.offsetHeight || 0) + parseFloat(k.replace("rem", "")) * 16 : "auto",
|
|
45291
45291
|
bottom: me === "top" ? window.innerHeight - Zo.top + parseFloat(k.replace("rem", "")) * 16 : "auto",
|
|
@@ -45303,11 +45303,11 @@ const a6e = (e) => /* @__PURE__ */ te.createElement("svg", { xmlns: "http://www.
|
|
|
45303
45303
|
marginBottom: g,
|
|
45304
45304
|
fontWeight: _
|
|
45305
45305
|
}, Mz = {
|
|
45306
|
-
color:
|
|
45306
|
+
color: $ || "#6c757d"
|
|
45307
45307
|
}, _z = {
|
|
45308
|
-
color:
|
|
45308
|
+
color: q || "#dc3545",
|
|
45309
45309
|
marginTop: m
|
|
45310
|
-
}, xz = oz(), ut = Kt(e), kN = ut ?
|
|
45310
|
+
}, xz = oz(), ut = Kt(e), kN = ut ? Ve === "minutes" ? `${ut.toLocaleDateString(oN)} ${ut.getHours().toString().padStart(2, "0")}:${ut.getMinutes().toString().padStart(2, "0")}` : ut.toLocaleDateString(oN) : "", bz = !!ee && (ae === "icon" || ae === "auto" && !ut), wz = le || (ut ? `${ez}${kN}` : QA);
|
|
45311
45311
|
return /* @__PURE__ */ f(
|
|
45312
45312
|
"div",
|
|
45313
45313
|
{
|
|
@@ -45389,7 +45389,7 @@ const a6e = (e) => /* @__PURE__ */ te.createElement("svg", { xmlns: "http://www.
|
|
|
45389
45389
|
className: Z.selectorButton,
|
|
45390
45390
|
onClick: () => Ko(!Bb),
|
|
45391
45391
|
style: {
|
|
45392
|
-
color:
|
|
45392
|
+
color: T,
|
|
45393
45393
|
"--hover-color": L
|
|
45394
45394
|
},
|
|
45395
45395
|
children: [
|
|
@@ -45434,7 +45434,7 @@ const a6e = (e) => /* @__PURE__ */ te.createElement("svg", { xmlns: "http://www.
|
|
|
45434
45434
|
className: Z.selectorButton,
|
|
45435
45435
|
onClick: () => Xo(!Rb),
|
|
45436
45436
|
style: {
|
|
45437
|
-
color:
|
|
45437
|
+
color: T,
|
|
45438
45438
|
"--hover-color": L
|
|
45439
45439
|
},
|
|
45440
45440
|
children: [
|
|
@@ -45483,10 +45483,10 @@ const a6e = (e) => /* @__PURE__ */ te.createElement("svg", { xmlns: "http://www.
|
|
|
45483
45483
|
}
|
|
45484
45484
|
)
|
|
45485
45485
|
] }),
|
|
45486
|
-
/* @__PURE__ */ c("div", { className: Z.weekdays, children: (Gt || Ufe).map((R) => /* @__PURE__ */ c("div", { className: Z.weekday, style: { color:
|
|
45486
|
+
/* @__PURE__ */ c("div", { className: Z.weekdays, children: (Gt || Ufe).map((R) => /* @__PURE__ */ c("div", { className: Z.weekday, style: { color: F }, children: R }, R)) }),
|
|
45487
45487
|
/* @__PURE__ */ c("div", { className: Z.calendarGrid, children: xz.map((R, X) => {
|
|
45488
45488
|
if (!R) return null;
|
|
45489
|
-
const Ne = iz(R, wi), Yt = cz(R), bt = (qe) => new Date(qe.getFullYear(), qe.getMonth(), qe.getDate()).getTime(), st = !!(
|
|
45489
|
+
const Ne = iz(R, wi), Yt = cz(R), bt = (qe) => new Date(qe.getFullYear(), qe.getMonth(), qe.getDate()).getTime(), st = !!(Pe && bt(R) < bt(Pe) || xt && bt(R) > bt(xt));
|
|
45490
45490
|
return /* @__PURE__ */ c(
|
|
45491
45491
|
"button",
|
|
45492
45492
|
{
|
|
@@ -45497,7 +45497,7 @@ const a6e = (e) => /* @__PURE__ */ te.createElement("svg", { xmlns: "http://www.
|
|
|
45497
45497
|
style: {
|
|
45498
45498
|
width: A,
|
|
45499
45499
|
height: A,
|
|
45500
|
-
color: Ne ? oe : Yt ?
|
|
45500
|
+
color: Ne ? oe : Yt ? P : E,
|
|
45501
45501
|
backgroundColor: Ne ? Y : "transparent",
|
|
45502
45502
|
opacity: st ? 0.4 : 1,
|
|
45503
45503
|
cursor: st ? "not-allowed" : "pointer"
|
|
@@ -45513,7 +45513,7 @@ const a6e = (e) => /* @__PURE__ */ te.createElement("svg", { xmlns: "http://www.
|
|
|
45513
45513
|
X
|
|
45514
45514
|
);
|
|
45515
45515
|
}) }),
|
|
45516
|
-
|
|
45516
|
+
Ve === "minutes" && /* @__PURE__ */ f("div", { className: Z.timePickerContainer, children: [
|
|
45517
45517
|
/* @__PURE__ */ f("div", { className: Z.timeGroup, children: [
|
|
45518
45518
|
/* @__PURE__ */ c("span", { className: Z.timeLabel, children: Xe }),
|
|
45519
45519
|
/* @__PURE__ */ c("div", { className: Z.timeInputWrapper, children: /* @__PURE__ */ c(
|
|
@@ -45656,22 +45656,22 @@ const a6e = (e) => /* @__PURE__ */ te.createElement("svg", { xmlns: "http://www.
|
|
|
45656
45656
|
buttonTextColor: L,
|
|
45657
45657
|
dropdownBgColor: x,
|
|
45658
45658
|
itemHoverColor: w,
|
|
45659
|
-
selectedItemBgColor:
|
|
45659
|
+
selectedItemBgColor: q,
|
|
45660
45660
|
iconColor: I,
|
|
45661
|
-
errorColor:
|
|
45661
|
+
errorColor: $,
|
|
45662
45662
|
labelColor: z,
|
|
45663
|
-
placeholderColor:
|
|
45663
|
+
placeholderColor: B,
|
|
45664
45664
|
// Bordures et ombres
|
|
45665
|
-
border:
|
|
45666
|
-
borderRadius:
|
|
45667
|
-
borderWidth:
|
|
45665
|
+
border: D,
|
|
45666
|
+
borderRadius: H = "var(--select-border-radius, 0.5rem)",
|
|
45667
|
+
borderWidth: S = "var(--select-border-width, 0.0625rem)",
|
|
45668
45668
|
boxShadow: A = "var(--select-box-shadow, 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1))",
|
|
45669
45669
|
// Transitions
|
|
45670
|
-
transitionDuration:
|
|
45671
|
-
transitionTiming:
|
|
45670
|
+
transitionDuration: T = "var(--select-transition-duration, 0.2s)",
|
|
45671
|
+
transitionTiming: F = "var(--select-transition-timing, ease)",
|
|
45672
45672
|
// Scrollbars
|
|
45673
|
-
scrollbarWidth:
|
|
45674
|
-
scrollbarTrackColor:
|
|
45673
|
+
scrollbarWidth: P = "var(--select-scrollbar-width, 0.375rem)",
|
|
45674
|
+
scrollbarTrackColor: E = "var(--select-scrollbar-track-color, #f1f1f1)",
|
|
45675
45675
|
scrollbarThumbColor: Y = "var(--select-scrollbar-thumb-color, #c1c1c1)",
|
|
45676
45676
|
width: oe,
|
|
45677
45677
|
minWidth: re,
|
|
@@ -45681,7 +45681,7 @@ const a6e = (e) => /* @__PURE__ */ te.createElement("svg", { xmlns: "http://www.
|
|
|
45681
45681
|
a11yConfig: ke,
|
|
45682
45682
|
titleKey: ee
|
|
45683
45683
|
}) => {
|
|
45684
|
-
const [ae, le] = V(!1), me =
|
|
45684
|
+
const [ae, le] = V(!1), me = W(null), he = e.find((Ie) => Ie.value === t);
|
|
45685
45685
|
O(() => {
|
|
45686
45686
|
const Ie = (Zt) => {
|
|
45687
45687
|
me.current && !me.current.contains(Zt.target) && le(!1);
|
|
@@ -45708,24 +45708,24 @@ const a6e = (e) => /* @__PURE__ */ te.createElement("svg", { xmlns: "http://www.
|
|
|
45708
45708
|
width: oe || (s ? "100%" : "auto"),
|
|
45709
45709
|
minWidth: re,
|
|
45710
45710
|
fontSize: y
|
|
45711
|
-
},
|
|
45711
|
+
}, Ve = {
|
|
45712
45712
|
height: l,
|
|
45713
45713
|
padding: p,
|
|
45714
45714
|
backgroundColor: C || "var(--select-button-bg-color, #ffffff)",
|
|
45715
|
-
border:
|
|
45716
|
-
borderColor: h ?
|
|
45715
|
+
border: D,
|
|
45716
|
+
borderColor: h ? $ || "var(--select-error-color, #dc3545)" : N || "var(--select-button-border-color, #dee2e6)",
|
|
45717
45717
|
color: L || "var(--select-button-text-color, #212529)",
|
|
45718
|
-
borderRadius:
|
|
45719
|
-
borderWidth:
|
|
45720
|
-
transition: `all ${
|
|
45718
|
+
borderRadius: H,
|
|
45719
|
+
borderWidth: S,
|
|
45720
|
+
transition: `all ${T} ${F}`,
|
|
45721
45721
|
fontWeight: g
|
|
45722
45722
|
}, Xe = {
|
|
45723
45723
|
backgroundColor: x || "var(--select-dropdown-bg-color, #ffffff)",
|
|
45724
45724
|
maxHeight: u,
|
|
45725
|
-
borderRadius:
|
|
45726
|
-
borderWidth:
|
|
45725
|
+
borderRadius: H,
|
|
45726
|
+
borderWidth: S,
|
|
45727
45727
|
boxShadow: A,
|
|
45728
|
-
transition: `opacity ${
|
|
45728
|
+
transition: `opacity ${T} ${F}, transform ${T} ${F}`,
|
|
45729
45729
|
position: "absolute",
|
|
45730
45730
|
top: Ce === "bottom" ? "100%" : "auto",
|
|
45731
45731
|
bottom: Ce === "top" ? "100%" : "auto",
|
|
@@ -45740,23 +45740,23 @@ const a6e = (e) => /* @__PURE__ */ te.createElement("svg", { xmlns: "http://www.
|
|
|
45740
45740
|
height: m,
|
|
45741
45741
|
color: I || "var(--select-icon-color, #6c757d)",
|
|
45742
45742
|
"--icon-rotation": ae ? "rotate(180deg)" : "rotate(0deg)"
|
|
45743
|
-
},
|
|
45743
|
+
}, Pe = {
|
|
45744
45744
|
color: z || "var(--select-label-color, #212529)",
|
|
45745
45745
|
marginBottom: k
|
|
45746
45746
|
}, xt = {
|
|
45747
|
-
color:
|
|
45747
|
+
color: B || "var(--select-placeholder-color, #6c757d)"
|
|
45748
45748
|
}, xi = {
|
|
45749
|
-
color:
|
|
45749
|
+
color: $ || "var(--select-error-color, #dc3545)",
|
|
45750
45750
|
marginTop: M
|
|
45751
45751
|
}, pe = {
|
|
45752
45752
|
padding: v,
|
|
45753
|
-
transition: `background-color ${
|
|
45753
|
+
transition: `background-color ${T} ${F}`,
|
|
45754
45754
|
fontWeight: g
|
|
45755
45755
|
}, Gt = {
|
|
45756
45756
|
gap: b
|
|
45757
45757
|
}, jb = {
|
|
45758
|
-
"--scrollbar-width":
|
|
45759
|
-
"--scrollbar-track-color":
|
|
45758
|
+
"--scrollbar-width": P,
|
|
45759
|
+
"--scrollbar-track-color": E,
|
|
45760
45760
|
"--scrollbar-thumb-color": Y
|
|
45761
45761
|
};
|
|
45762
45762
|
return /* @__PURE__ */ f(
|
|
@@ -45770,7 +45770,7 @@ const a6e = (e) => /* @__PURE__ */ te.createElement("svg", { xmlns: "http://www.
|
|
|
45770
45770
|
"data-error": !!h,
|
|
45771
45771
|
title: ne(ke, ee),
|
|
45772
45772
|
children: [
|
|
45773
|
-
o && /* @__PURE__ */ c("label", { className: Ae.label, style:
|
|
45773
|
+
o && /* @__PURE__ */ c("label", { className: Ae.label, style: Pe, children: o }),
|
|
45774
45774
|
/* @__PURE__ */ f(
|
|
45775
45775
|
"button",
|
|
45776
45776
|
{
|
|
@@ -45782,7 +45782,7 @@ const a6e = (e) => /* @__PURE__ */ te.createElement("svg", { xmlns: "http://www.
|
|
|
45782
45782
|
${ae ? Ae.selectButtonOpen : ""}
|
|
45783
45783
|
${d ? Ae.selectButtonDisabled : ""}
|
|
45784
45784
|
`,
|
|
45785
|
-
style:
|
|
45785
|
+
style: Ve,
|
|
45786
45786
|
disabled: d,
|
|
45787
45787
|
"aria-expanded": ae,
|
|
45788
45788
|
"aria-haspopup": "listbox",
|
|
@@ -45829,13 +45829,13 @@ const a6e = (e) => /* @__PURE__ */ te.createElement("svg", { xmlns: "http://www.
|
|
|
45829
45829
|
`,
|
|
45830
45830
|
style: {
|
|
45831
45831
|
...pe,
|
|
45832
|
-
backgroundColor: t === Ie.value ?
|
|
45832
|
+
backgroundColor: t === Ie.value ? q || "#F0F4F6" : "transparent"
|
|
45833
45833
|
},
|
|
45834
45834
|
onMouseEnter: (Zt) => {
|
|
45835
45835
|
w && (Zt.currentTarget.style.backgroundColor = w);
|
|
45836
45836
|
},
|
|
45837
45837
|
onMouseLeave: (Zt) => {
|
|
45838
|
-
w && (Zt.currentTarget.style.backgroundColor = t === Ie.value ?
|
|
45838
|
+
w && (Zt.currentTarget.style.backgroundColor = t === Ie.value ? q || "#F0F4F6" : "transparent");
|
|
45839
45839
|
},
|
|
45840
45840
|
role: "option",
|
|
45841
45841
|
"aria-selected": t === Ie.value,
|
|
@@ -45881,7 +45881,7 @@ const a6e = (e) => /* @__PURE__ */ te.createElement("svg", { xmlns: "http://www.
|
|
|
45881
45881
|
rightContent: x,
|
|
45882
45882
|
extraContent: w
|
|
45883
45883
|
}) => {
|
|
45884
|
-
const
|
|
45884
|
+
const q = {
|
|
45885
45885
|
fontSize: m,
|
|
45886
45886
|
fontWeight: k,
|
|
45887
45887
|
color: M,
|
|
@@ -45890,7 +45890,7 @@ const a6e = (e) => /* @__PURE__ */ te.createElement("svg", { xmlns: "http://www.
|
|
|
45890
45890
|
gap: g
|
|
45891
45891
|
};
|
|
45892
45892
|
return /* @__PURE__ */ f("div", { className: `${V$.filterBar} ${u}`, style: I, children: [
|
|
45893
|
-
e && /* @__PURE__ */ c("span", { className: V$.label, style:
|
|
45893
|
+
e && /* @__PURE__ */ c("span", { className: V$.label, style: q, children: e }),
|
|
45894
45894
|
/* @__PURE__ */ c(
|
|
45895
45895
|
z$,
|
|
45896
45896
|
{
|
|
@@ -45999,36 +45999,36 @@ const a6e = (e) => /* @__PURE__ */ te.createElement("svg", { xmlns: "http://www.
|
|
|
45999
45999
|
secondaryFontWeight: L,
|
|
46000
46000
|
backgroundColor: x = "#f2f9fc",
|
|
46001
46001
|
gap: w = "",
|
|
46002
|
-
disabled:
|
|
46002
|
+
disabled: q = !1,
|
|
46003
46003
|
positionRelative: I = "",
|
|
46004
|
-
justifyContent:
|
|
46004
|
+
justifyContent: $ = "",
|
|
46005
46005
|
headerLineHeight: z = "",
|
|
46006
|
-
headerMinHeight:
|
|
46007
|
-
contentSpace:
|
|
46008
|
-
titleKey:
|
|
46009
|
-
subtitleKey:
|
|
46006
|
+
headerMinHeight: B = "",
|
|
46007
|
+
contentSpace: D = "",
|
|
46008
|
+
titleKey: H,
|
|
46009
|
+
subtitleKey: S,
|
|
46010
46010
|
subtitleA11yKey: A,
|
|
46011
|
-
maxBadgeKey:
|
|
46012
|
-
maxBadgeA11yKey:
|
|
46013
|
-
predictionKey:
|
|
46014
|
-
predictionA11yKey:
|
|
46011
|
+
maxBadgeKey: T,
|
|
46012
|
+
maxBadgeA11yKey: F,
|
|
46013
|
+
predictionKey: P,
|
|
46014
|
+
predictionA11yKey: E,
|
|
46015
46015
|
realisedKey: Y,
|
|
46016
46016
|
realisedA11yKey: oe
|
|
46017
46017
|
}) => {
|
|
46018
|
-
const re = i !== void 0 ? i : !!o, Ce = `${fe.container} ${fe[d]} ${fe[y]} ${
|
|
46018
|
+
const re = i !== void 0 ? i : !!o, Ce = `${fe.container} ${fe[d]} ${fe[y]} ${q ? fe.disabled : ""}`, _e = l === "white" ? fe.valuePrimaryWhite : fe.valuePrimaryBlack, He = l === "blue" ? fe.valueSecondaryBlue : l === "white" ? fe.valueSecondaryWhite : fe.valueSecondaryBlack, ke = (he) => he === void 0 ? void 0 : typeof he == "number" ? `${he}px` : he, ee = (he) => he === void 0 ? void 0 : he, ae = g === "vertical", le = s != null && s !== "" && s !== "-" && s !== "—", me = ae ? fe.valueRowVertical : fe.valueRowHorizontal;
|
|
46019
46019
|
return /* @__PURE__ */ f("div", { className: `${Ce} ${u}`, style: { backgroundColor: x }, children: [
|
|
46020
46020
|
t && /* @__PURE__ */ c("div", { className: `${fe.iconWrapper} ${fe[I]}`, children: t }),
|
|
46021
46021
|
/* @__PURE__ */ f(
|
|
46022
46022
|
"div",
|
|
46023
46023
|
{
|
|
46024
46024
|
className: `${fe.content} ${fe[w]} ${le ? "" : fe.singleValue} content-indicator-v2`,
|
|
46025
|
-
style: { justifyContent:
|
|
46025
|
+
style: { justifyContent: D },
|
|
46026
46026
|
children: [
|
|
46027
46027
|
/* @__PURE__ */ c(
|
|
46028
46028
|
"div",
|
|
46029
46029
|
{
|
|
46030
|
-
className: `${fe.header} ${fe[
|
|
46031
|
-
style: { minHeight:
|
|
46030
|
+
className: `${fe.header} ${fe[$]} ${fe[z]} header-indicator-v2`,
|
|
46031
|
+
style: { minHeight: B },
|
|
46032
46032
|
children: /* @__PURE__ */ c(
|
|
46033
46033
|
"h6",
|
|
46034
46034
|
{
|
|
@@ -46038,7 +46038,7 @@ const a6e = (e) => /* @__PURE__ */ te.createElement("svg", { xmlns: "http://www.
|
|
|
46038
46038
|
fontWeight: ee(M),
|
|
46039
46039
|
color: h
|
|
46040
46040
|
},
|
|
46041
|
-
title: ne(e,
|
|
46041
|
+
title: ne(e, H),
|
|
46042
46042
|
children: n
|
|
46043
46043
|
}
|
|
46044
46044
|
)
|
|
@@ -46052,7 +46052,7 @@ const a6e = (e) => /* @__PURE__ */ te.createElement("svg", { xmlns: "http://www.
|
|
|
46052
46052
|
fontSize: ke(_),
|
|
46053
46053
|
fontWeight: ee(v)
|
|
46054
46054
|
},
|
|
46055
|
-
title: ne(e,
|
|
46055
|
+
title: ne(e, S, A),
|
|
46056
46056
|
children: o
|
|
46057
46057
|
}
|
|
46058
46058
|
) }) : null,
|
|
@@ -46062,7 +46062,7 @@ const a6e = (e) => /* @__PURE__ */ te.createElement("svg", { xmlns: "http://www.
|
|
|
46062
46062
|
"span",
|
|
46063
46063
|
{
|
|
46064
46064
|
className: `${fe.maxBadge} max-badge-indicator-v2`,
|
|
46065
|
-
title: ne(e,
|
|
46065
|
+
title: ne(e, T, F),
|
|
46066
46066
|
children: "MAX"
|
|
46067
46067
|
}
|
|
46068
46068
|
),
|
|
@@ -46082,7 +46082,7 @@ const a6e = (e) => /* @__PURE__ */ te.createElement("svg", { xmlns: "http://www.
|
|
|
46082
46082
|
}
|
|
46083
46083
|
)
|
|
46084
46084
|
] }),
|
|
46085
|
-
le && /* @__PURE__ */ f(
|
|
46085
|
+
le && /* @__PURE__ */ f(ze, { children: [
|
|
46086
46086
|
!ae && /* @__PURE__ */ c(
|
|
46087
46087
|
"span",
|
|
46088
46088
|
{
|
|
@@ -46102,7 +46102,7 @@ const a6e = (e) => /* @__PURE__ */ te.createElement("svg", { xmlns: "http://www.
|
|
|
46102
46102
|
fontSize: ke(N),
|
|
46103
46103
|
fontWeight: ee(L)
|
|
46104
46104
|
},
|
|
46105
|
-
title: ne(e,
|
|
46105
|
+
title: ne(e, P, E),
|
|
46106
46106
|
children: s
|
|
46107
46107
|
}
|
|
46108
46108
|
)
|
|
@@ -46256,55 +46256,56 @@ const a6e = (e) => /* @__PURE__ */ te.createElement("svg", { xmlns: "http://www.
|
|
|
46256
46256
|
borderRadius: L = "0.5rem",
|
|
46257
46257
|
childrenPadding: x = "1rem",
|
|
46258
46258
|
overflow: w = "auto",
|
|
46259
|
-
contentHeaderAction:
|
|
46259
|
+
contentHeaderAction: q,
|
|
46260
46260
|
contentFooterAction: I,
|
|
46261
|
-
|
|
46262
|
-
|
|
46263
|
-
|
|
46264
|
-
|
|
46261
|
+
footerOverride: $,
|
|
46262
|
+
hideFooter: z = !1,
|
|
46263
|
+
hideOverlay: B = !1,
|
|
46264
|
+
position: D,
|
|
46265
|
+
a11yConfig: H
|
|
46265
46266
|
}) => {
|
|
46266
|
-
const [
|
|
46267
|
+
const [S, A] = V(!1), T = W(null);
|
|
46267
46268
|
if (O(() => {
|
|
46268
|
-
if (!r || !
|
|
46269
|
-
const
|
|
46270
|
-
(
|
|
46269
|
+
if (!r || !B) return;
|
|
46270
|
+
const P = (E) => {
|
|
46271
|
+
(E.type === "scroll" || E.type === "wheel" || E.type === "touchmove" || T.current && !T.current.contains(E.target)) && s();
|
|
46271
46272
|
};
|
|
46272
|
-
return document.addEventListener("mousedown",
|
|
46273
|
-
document.removeEventListener("mousedown",
|
|
46273
|
+
return document.addEventListener("mousedown", P), document.addEventListener("scroll", P, !0), document.addEventListener("wheel", P, { passive: !0, capture: !0 }), document.addEventListener("touchmove", P, { passive: !0, capture: !0 }), () => {
|
|
46274
|
+
document.removeEventListener("mousedown", P), document.removeEventListener("scroll", P, !0), document.removeEventListener("wheel", P, !0), document.removeEventListener("touchmove", P, !0);
|
|
46274
46275
|
};
|
|
46275
|
-
}, [r,
|
|
46276
|
-
const
|
|
46276
|
+
}, [r, B, s]), !r) return null;
|
|
46277
|
+
const F = (P, E = !1) => /* @__PURE__ */ c(
|
|
46277
46278
|
OL,
|
|
46278
46279
|
{
|
|
46279
|
-
onClick:
|
|
46280
|
+
onClick: P.disabled ? void 0 : P.onClick,
|
|
46280
46281
|
className: Te.baseButton,
|
|
46281
|
-
disabled:
|
|
46282
|
+
disabled: P.disabled,
|
|
46282
46283
|
style: {
|
|
46283
|
-
background:
|
|
46284
|
-
color:
|
|
46285
|
-
border:
|
|
46286
|
-
cursor:
|
|
46287
|
-
filter:
|
|
46288
|
-
opacity:
|
|
46284
|
+
background: P.backgroundColor ?? (E ? "#008FBB" : "#ffffff"),
|
|
46285
|
+
color: P.textColor ?? (E ? "#ffffff" : "#374151"),
|
|
46286
|
+
border: P.borderColor || E ? "none" : void 0,
|
|
46287
|
+
cursor: P.disabled ? P.cursor ?? "not-allowed" : P.cursor ?? "pointer",
|
|
46288
|
+
filter: P.disabled ? P.filter ?? "grayscale(0.5)" : P.filter ?? "none",
|
|
46289
|
+
opacity: P.disabled ? 0.65 : 1
|
|
46289
46290
|
},
|
|
46290
|
-
title: ne(
|
|
46291
|
-
children:
|
|
46291
|
+
title: ne(P.a11yConfig, P.text),
|
|
46292
|
+
children: P.text
|
|
46292
46293
|
}
|
|
46293
46294
|
);
|
|
46294
|
-
return /* @__PURE__ */ c("div", { className:
|
|
46295
|
+
return /* @__PURE__ */ c("div", { className: B ? Te.noOverlay : Te.overlay, onClick: s, children: /* @__PURE__ */ f(
|
|
46295
46296
|
"div",
|
|
46296
46297
|
{
|
|
46297
|
-
ref:
|
|
46298
|
-
className: `${Te.container} ${
|
|
46299
|
-
onClick: (
|
|
46298
|
+
ref: T,
|
|
46299
|
+
className: `${Te.container} ${S ? Te.fullscreen : ""} ${B ? Te.contained : ""}`,
|
|
46300
|
+
onClick: (P) => P.stopPropagation(),
|
|
46300
46301
|
style: {
|
|
46301
|
-
width:
|
|
46302
|
-
maxWidth:
|
|
46303
|
-
height:
|
|
46304
|
-
maxHeight:
|
|
46305
|
-
borderRadius:
|
|
46302
|
+
width: S ? "100%" : v,
|
|
46303
|
+
maxWidth: S ? "none" : b,
|
|
46304
|
+
height: S ? "100%" : C,
|
|
46305
|
+
maxHeight: S ? "100%" : N,
|
|
46306
|
+
borderRadius: S ? "0" : L,
|
|
46306
46307
|
overflow: w,
|
|
46307
|
-
...
|
|
46308
|
+
...D || {}
|
|
46308
46309
|
},
|
|
46309
46310
|
children: [
|
|
46310
46311
|
!m && /* @__PURE__ */ f("header", { className: Te.header, style: { backgroundColor: n }, children: [
|
|
@@ -46316,7 +46317,7 @@ const a6e = (e) => /* @__PURE__ */ te.createElement("svg", { xmlns: "http://www.
|
|
|
46316
46317
|
fontWeight: i,
|
|
46317
46318
|
color: t
|
|
46318
46319
|
},
|
|
46319
|
-
title: ne(
|
|
46320
|
+
title: ne(H, e),
|
|
46320
46321
|
children: e
|
|
46321
46322
|
}
|
|
46322
46323
|
),
|
|
@@ -46324,10 +46325,10 @@ const a6e = (e) => /* @__PURE__ */ te.createElement("svg", { xmlns: "http://www.
|
|
|
46324
46325
|
!g && /* @__PURE__ */ c(
|
|
46325
46326
|
"button",
|
|
46326
46327
|
{
|
|
46327
|
-
onClick: () =>
|
|
46328
|
+
onClick: () => A(!S),
|
|
46328
46329
|
className: Te.iconButton,
|
|
46329
|
-
title:
|
|
46330
|
-
children:
|
|
46330
|
+
title: S ? "Réduire" : "Agrandir",
|
|
46331
|
+
children: S ? /* @__PURE__ */ c(m7e, { width: 22, height: 22, fill: t }) : /* @__PURE__ */ c(u7e, { width: 22, height: 22, fill: t })
|
|
46331
46332
|
}
|
|
46332
46333
|
),
|
|
46333
46334
|
/* @__PURE__ */ c("button", { onClick: s, className: Te.iconButton, title: "Fermer", children: /* @__PURE__ */ c(KA, { width: 22, height: 22, fill: t }) })
|
|
@@ -46343,14 +46344,14 @@ const a6e = (e) => /* @__PURE__ */ te.createElement("svg", { xmlns: "http://www.
|
|
|
46343
46344
|
children: [
|
|
46344
46345
|
p && /* @__PURE__ */ f("header", { className: Te.contentHeader, style: { backgroundColor: n }, children: [
|
|
46345
46346
|
/* @__PURE__ */ c("span", { style: { color: t }, children: p }),
|
|
46346
|
-
|
|
46347
|
+
q
|
|
46347
46348
|
] }),
|
|
46348
46349
|
/* @__PURE__ */ c("div", { className: Te.childrenWrapper, style: { padding: x, overflow: w }, children: l })
|
|
46349
46350
|
]
|
|
46350
46351
|
}
|
|
46351
46352
|
)
|
|
46352
46353
|
] }),
|
|
46353
|
-
!
|
|
46354
|
+
!z && /* @__PURE__ */ c("footer", { className: Te.footer, style: { backgroundColor: n }, children: $ !== void 0 ? $ : /* @__PURE__ */ f(ze, { children: [
|
|
46354
46355
|
M && /* @__PURE__ */ c(
|
|
46355
46356
|
OL,
|
|
46356
46357
|
{
|
|
@@ -46366,9 +46367,9 @@ const a6e = (e) => /* @__PURE__ */ te.createElement("svg", { xmlns: "http://www.
|
|
|
46366
46367
|
}
|
|
46367
46368
|
),
|
|
46368
46369
|
I,
|
|
46369
|
-
|
|
46370
|
-
|
|
46371
|
-
] })
|
|
46370
|
+
F(d),
|
|
46371
|
+
F(h, !0)
|
|
46372
|
+
] }) })
|
|
46372
46373
|
]
|
|
46373
46374
|
}
|
|
46374
46375
|
) });
|
|
@@ -46449,19 +46450,19 @@ const a6e = (e) => /* @__PURE__ */ te.createElement("svg", { xmlns: "http://www.
|
|
|
46449
46450
|
showToggle: L = !1,
|
|
46450
46451
|
showActions: x = !0,
|
|
46451
46452
|
onToggle: w,
|
|
46452
|
-
a11yConfig:
|
|
46453
|
+
a11yConfig: q
|
|
46453
46454
|
}) => {
|
|
46454
|
-
const [I,
|
|
46455
|
-
|
|
46456
|
-
},
|
|
46457
|
-
const se = K.title.toLowerCase(),
|
|
46458
|
-
return
|
|
46459
|
-
}) : e, [e,
|
|
46455
|
+
const [I, $] = V(!1), [z, B] = V(null), [D, H] = V(null), [S, A] = V(null), [T, F] = V(null), P = () => {
|
|
46456
|
+
F((K) => K === null ? "asc" : K === "asc" ? "desc" : null), w && w();
|
|
46457
|
+
}, E = Me(() => T ? [...e].sort((K, G) => {
|
|
46458
|
+
const se = K.title.toLowerCase(), Ve = G.title.toLowerCase();
|
|
46459
|
+
return T === "asc" ? se.localeCompare(Ve) : Ve.localeCompare(se);
|
|
46460
|
+
}) : e, [e, T]), Y = () => $(!0), oe = () => $(!1), re = (K) => {
|
|
46460
46461
|
const G = K.title?.trim();
|
|
46461
46462
|
G && o && o(G), oe();
|
|
46462
46463
|
}, Ce = (K, G) => {
|
|
46463
|
-
K.stopPropagation(),
|
|
46464
|
-
}, _e = () =>
|
|
46464
|
+
K.stopPropagation(), B(G);
|
|
46465
|
+
}, _e = () => B(null), He = (K) => {
|
|
46465
46466
|
const G = K.title?.trim();
|
|
46466
46467
|
z && G && r && r(z, G), _e();
|
|
46467
46468
|
}, ke = (K, G) => {
|
|
@@ -46469,29 +46470,29 @@ const a6e = (e) => /* @__PURE__ */ te.createElement("svg", { xmlns: "http://www.
|
|
|
46469
46470
|
}, ee = (K, G) => {
|
|
46470
46471
|
K.stopPropagation(), i && i(G);
|
|
46471
46472
|
}, ae = (K, G) => {
|
|
46472
|
-
|
|
46473
|
+
H(G), K.dataTransfer.effectAllowed = "move";
|
|
46473
46474
|
}, le = (K, G) => {
|
|
46474
|
-
|
|
46475
|
+
D !== null && (K.preventDefault(), K.dataTransfer.dropEffect = "move", G !== S && A(G));
|
|
46475
46476
|
}, me = (K, G) => {
|
|
46476
|
-
if (K.preventDefault(),
|
|
46477
|
-
const se = [...
|
|
46478
|
-
se.splice(G, 0,
|
|
46477
|
+
if (K.preventDefault(), D === null || D === G || !d) return;
|
|
46478
|
+
const se = [...E], [Ve] = se.splice(D, 1);
|
|
46479
|
+
se.splice(G, 0, Ve), F(null), d(se), H(null), A(null);
|
|
46479
46480
|
}, he = () => {
|
|
46480
|
-
|
|
46481
|
+
H(null), A(null);
|
|
46481
46482
|
};
|
|
46482
46483
|
return /* @__PURE__ */ f("div", { className: "module-sidebar-v2", children: [
|
|
46483
|
-
/* @__PURE__ */ c("div", { className: "sidebar-header", children: v ? /* @__PURE__ */ f("div", { className: "header-label-container", onClick:
|
|
46484
|
-
/* @__PURE__ */ c("div", { className: "header-label", title: ne(
|
|
46485
|
-
|
|
46486
|
-
] }) : /* @__PURE__ */ f(
|
|
46487
|
-
/* @__PURE__ */ f("div", { className: "header-title", title: ne(
|
|
46488
|
-
L && (
|
|
46484
|
+
/* @__PURE__ */ c("div", { className: "sidebar-header", children: v ? /* @__PURE__ */ f("div", { className: "header-label-container", onClick: P, children: [
|
|
46485
|
+
/* @__PURE__ */ c("div", { className: "header-label", title: ne(q, b), children: v }),
|
|
46486
|
+
T === "asc" ? /* @__PURE__ */ c(di, { size: 12, className: "header-toggle-icon", strokeWidth: 3 }) : /* @__PURE__ */ c(si, { size: 12, className: "header-toggle-icon", strokeWidth: 3 })
|
|
46487
|
+
] }) : /* @__PURE__ */ f(ze, { children: [
|
|
46488
|
+
/* @__PURE__ */ f("div", { className: "header-title", title: ne(q, l), children: [
|
|
46489
|
+
L && (T === "asc" ? /* @__PURE__ */ c(
|
|
46489
46490
|
di,
|
|
46490
46491
|
{
|
|
46491
46492
|
size: 12,
|
|
46492
46493
|
className: "header-toggle-icon default-toggle",
|
|
46493
46494
|
strokeWidth: 3,
|
|
46494
|
-
onClick:
|
|
46495
|
+
onClick: P
|
|
46495
46496
|
}
|
|
46496
46497
|
) : /* @__PURE__ */ c(
|
|
46497
46498
|
si,
|
|
@@ -46499,19 +46500,19 @@ const a6e = (e) => /* @__PURE__ */ te.createElement("svg", { xmlns: "http://www.
|
|
|
46499
46500
|
size: 12,
|
|
46500
46501
|
className: "header-toggle-icon default-toggle",
|
|
46501
46502
|
strokeWidth: 3,
|
|
46502
|
-
onClick:
|
|
46503
|
+
onClick: P
|
|
46503
46504
|
}
|
|
46504
46505
|
)),
|
|
46505
46506
|
h,
|
|
46506
46507
|
" ",
|
|
46507
|
-
N && `(${
|
|
46508
|
+
N && `(${E.length})`
|
|
46508
46509
|
] }),
|
|
46509
46510
|
C && /* @__PURE__ */ c(hi, { size: 18, className: "add-view-icon", onClick: Y })
|
|
46510
46511
|
] }) }),
|
|
46511
|
-
/* @__PURE__ */ c("div", { className: "module-list", children:
|
|
46512
|
+
/* @__PURE__ */ c("div", { className: "module-list", children: E.map((K, G) => /* @__PURE__ */ f(
|
|
46512
46513
|
"div",
|
|
46513
46514
|
{
|
|
46514
|
-
className: `module-item ${K.id === t ? "selected" : ""} ${
|
|
46515
|
+
className: `module-item ${K.id === t ? "selected" : ""} ${S === G && D !== G ? "drag-over" : ""} ${D === G ? "dragging" : ""}`,
|
|
46515
46516
|
onClick: () => n && n(K),
|
|
46516
46517
|
draggable: !!d,
|
|
46517
46518
|
onDragStart: d ? (se) => ae(se, G) : void 0,
|
|
@@ -46593,29 +46594,29 @@ const a6e = (e) => /* @__PURE__ */ te.createElement("svg", { xmlns: "http://www.
|
|
|
46593
46594
|
a11yConfig: s
|
|
46594
46595
|
}) => {
|
|
46595
46596
|
const [d, h] = V(!1), [l, p] = V(e), [u, y] = V(null), [g, m] = V(""), [k, M] = V(!1), [_, v] = V(""), [b, C] = V(""), N = ie.useMemo(() => {
|
|
46596
|
-
const
|
|
46597
|
+
const S = {};
|
|
46597
46598
|
return Array.isArray(t) && t.forEach((A) => {
|
|
46598
|
-
A && A.language && (
|
|
46599
|
-
}),
|
|
46599
|
+
A && A.language && (S[A.language.toUpperCase()] = A.value);
|
|
46600
|
+
}), S;
|
|
46600
46601
|
}, [t]), L = ie.useMemo(() => n, [n]), x = () => {
|
|
46601
46602
|
h(!1), l !== e && l.trim() !== "" ? i && i(l.trim()) : p(e);
|
|
46602
|
-
}, w = (
|
|
46603
|
-
|
|
46604
|
-
},
|
|
46605
|
-
const A =
|
|
46603
|
+
}, w = (S) => {
|
|
46604
|
+
S.key === "Enter" ? x() : S.key === "Escape" && (p(e), h(!1));
|
|
46605
|
+
}, q = (S) => {
|
|
46606
|
+
const A = S.toUpperCase();
|
|
46606
46607
|
y(A), m(N[A] || "");
|
|
46607
46608
|
}, I = () => {
|
|
46608
46609
|
u && (o(u, g), y(null), m(""));
|
|
46609
|
-
},
|
|
46610
|
-
|
|
46610
|
+
}, $ = (S) => {
|
|
46611
|
+
S.key === "Enter" ? I() : S.key === "Escape" && (y(null), m(""));
|
|
46611
46612
|
}, z = () => {
|
|
46612
46613
|
M(!0), L.length > 0 && v(L[0].toUpperCase()), C("");
|
|
46613
|
-
},
|
|
46614
|
+
}, B = () => {
|
|
46614
46615
|
_ && b.trim() && (o(_, b.trim()), M(!1), v(""), C(""));
|
|
46615
|
-
},
|
|
46616
|
+
}, D = () => {
|
|
46616
46617
|
M(!1), v(""), C("");
|
|
46617
|
-
},
|
|
46618
|
-
|
|
46618
|
+
}, H = (S) => {
|
|
46619
|
+
S.key === "Enter" ? B() : S.key === "Escape" && D();
|
|
46619
46620
|
};
|
|
46620
46621
|
return /* @__PURE__ */ f("div", { className: "translation-key-v2", children: [
|
|
46621
46622
|
/* @__PURE__ */ f("div", { className: "header", children: [
|
|
@@ -46624,7 +46625,7 @@ const a6e = (e) => /* @__PURE__ */ te.createElement("svg", { xmlns: "http://www.
|
|
|
46624
46625
|
{
|
|
46625
46626
|
className: "key-name-input",
|
|
46626
46627
|
value: l,
|
|
46627
|
-
onChange: (
|
|
46628
|
+
onChange: (S) => p(S.target.value),
|
|
46628
46629
|
onBlur: x,
|
|
46629
46630
|
onKeyDown: w,
|
|
46630
46631
|
autoFocus: !0
|
|
@@ -46636,8 +46637,8 @@ const a6e = (e) => /* @__PURE__ */ te.createElement("svg", { xmlns: "http://www.
|
|
|
46636
46637
|
] })
|
|
46637
46638
|
] }),
|
|
46638
46639
|
/* @__PURE__ */ f("div", { className: "translations-list", children: [
|
|
46639
|
-
n.map((
|
|
46640
|
-
const A =
|
|
46640
|
+
n.map((S) => {
|
|
46641
|
+
const A = S.toUpperCase(), T = N[A] || "";
|
|
46641
46642
|
return /* @__PURE__ */ f("div", { className: "lang-row", children: [
|
|
46642
46643
|
/* @__PURE__ */ c("div", { className: "lang-label", children: A }),
|
|
46643
46644
|
u === A ? /* @__PURE__ */ c(
|
|
@@ -46645,22 +46646,22 @@ const a6e = (e) => /* @__PURE__ */ te.createElement("svg", { xmlns: "http://www.
|
|
|
46645
46646
|
{
|
|
46646
46647
|
className: "translation-input editing",
|
|
46647
46648
|
value: g,
|
|
46648
|
-
onChange: (
|
|
46649
|
+
onChange: (P) => m(P.target.value),
|
|
46649
46650
|
onBlur: I,
|
|
46650
|
-
onKeyDown:
|
|
46651
|
+
onKeyDown: $,
|
|
46651
46652
|
placeholder: "Entrez la traduction...",
|
|
46652
46653
|
autoFocus: !0
|
|
46653
46654
|
}
|
|
46654
46655
|
) : /* @__PURE__ */ c(
|
|
46655
46656
|
"div",
|
|
46656
46657
|
{
|
|
46657
|
-
className: `translation-value ${
|
|
46658
|
-
onClick: () =>
|
|
46658
|
+
className: `translation-value ${T ? "" : "empty"}`,
|
|
46659
|
+
onClick: () => q(S),
|
|
46659
46660
|
title: "Cliquer pour éditer",
|
|
46660
|
-
children:
|
|
46661
|
+
children: T || "Cliquer pour ajouter..."
|
|
46661
46662
|
}
|
|
46662
46663
|
)
|
|
46663
|
-
] },
|
|
46664
|
+
] }, S);
|
|
46664
46665
|
}),
|
|
46665
46666
|
k ? /* @__PURE__ */ f("div", { className: "lang-row add-row", children: [
|
|
46666
46667
|
/* @__PURE__ */ c(
|
|
@@ -46668,8 +46669,8 @@ const a6e = (e) => /* @__PURE__ */ te.createElement("svg", { xmlns: "http://www.
|
|
|
46668
46669
|
{
|
|
46669
46670
|
className: "lang-select",
|
|
46670
46671
|
value: _,
|
|
46671
|
-
onChange: (
|
|
46672
|
-
children: L.map((
|
|
46672
|
+
onChange: (S) => v(S.target.value),
|
|
46673
|
+
children: L.map((S) => /* @__PURE__ */ c("option", { value: S.toUpperCase(), children: S.toUpperCase() }, S))
|
|
46673
46674
|
}
|
|
46674
46675
|
),
|
|
46675
46676
|
/* @__PURE__ */ c(
|
|
@@ -46677,15 +46678,15 @@ const a6e = (e) => /* @__PURE__ */ te.createElement("svg", { xmlns: "http://www.
|
|
|
46677
46678
|
{
|
|
46678
46679
|
className: "translation-input editing",
|
|
46679
46680
|
value: b,
|
|
46680
|
-
onChange: (
|
|
46681
|
-
onKeyDown:
|
|
46681
|
+
onChange: (S) => C(S.target.value),
|
|
46682
|
+
onKeyDown: H,
|
|
46682
46683
|
placeholder: "Mot",
|
|
46683
46684
|
autoFocus: !0
|
|
46684
46685
|
}
|
|
46685
46686
|
),
|
|
46686
46687
|
/* @__PURE__ */ f("div", { className: "add-actions", children: [
|
|
46687
|
-
/* @__PURE__ */ c(Hi, { size: 18, className: "action-icon confirm", onClick:
|
|
46688
|
-
/* @__PURE__ */ c(ct, { size: 18, className: "action-icon cancel", onClick:
|
|
46688
|
+
/* @__PURE__ */ c(Hi, { size: 18, className: "action-icon confirm", onClick: B }),
|
|
46689
|
+
/* @__PURE__ */ c(ct, { size: 18, className: "action-icon cancel", onClick: D })
|
|
46689
46690
|
] })
|
|
46690
46691
|
] }) : L.length > 0 && /* @__PURE__ */ f("button", { className: "add-translation-btn", onClick: z, children: [
|
|
46691
46692
|
/* @__PURE__ */ c(Eo, { size: 16 }),
|
|
@@ -46799,25 +46800,25 @@ const a6e = (e) => /* @__PURE__ */ te.createElement("svg", { xmlns: "http://www.
|
|
|
46799
46800
|
disabled: d = !1,
|
|
46800
46801
|
allowWrap: h = !1
|
|
46801
46802
|
}) => {
|
|
46802
|
-
const [l, p] = V(!1), [u, y] = V(""), g =
|
|
46803
|
-
const A = new Map(e.map((
|
|
46804
|
-
return n.map((
|
|
46803
|
+
const [l, p] = V(!1), [u, y] = V(""), g = W(null), m = W(null), k = W(null), M = W(null), [_, v] = V(null), [b, C] = V(!1), N = W([]), L = W(null), x = Me(() => {
|
|
46804
|
+
const A = new Map(e.map((T) => [T.value, T]));
|
|
46805
|
+
return n.map((T) => A.get(T)).filter((T) => T !== void 0);
|
|
46805
46806
|
}, [e, n]), w = Me(
|
|
46806
46807
|
() => e.filter((A) => !n.includes(A.value)),
|
|
46807
46808
|
[e, n]
|
|
46808
|
-
),
|
|
46809
|
+
), q = Me(() => {
|
|
46809
46810
|
let A = w;
|
|
46810
|
-
return u && (A = A.filter((
|
|
46811
|
-
if (!
|
|
46812
|
-
for (let
|
|
46811
|
+
return u && (A = A.filter((T) => T.label.toLowerCase().includes(u.toLowerCase()))), A.filter((T, F) => {
|
|
46812
|
+
if (!T.isHeader) return !0;
|
|
46813
|
+
for (let P = F + 1; P < A.length && !A[P].isHeader; P++)
|
|
46813
46814
|
return !0;
|
|
46814
46815
|
return !1;
|
|
46815
46816
|
});
|
|
46816
46817
|
}, [w, u]);
|
|
46817
46818
|
O(() => {
|
|
46818
|
-
const A = (
|
|
46819
|
-
const
|
|
46820
|
-
g.current && !g.current.contains(
|
|
46819
|
+
const A = (T) => {
|
|
46820
|
+
const F = T.target;
|
|
46821
|
+
g.current && !g.current.contains(F) && (p(!1), y(""), v(null), C(!1));
|
|
46821
46822
|
};
|
|
46822
46823
|
return document.addEventListener("mousedown", A), () => document.removeEventListener("mousedown", A);
|
|
46823
46824
|
}, []), O(() => {
|
|
@@ -46828,66 +46829,66 @@ const a6e = (e) => /* @__PURE__ */ te.createElement("svg", { xmlns: "http://www.
|
|
|
46828
46829
|
}
|
|
46829
46830
|
x.length > N.current.length && v(null);
|
|
46830
46831
|
const A = () => {
|
|
46831
|
-
const
|
|
46832
|
-
if (!
|
|
46833
|
-
const oe = Y.getBoundingClientRect().width, re = Y.querySelector(`.${de.actions}`), Ce = re ? re.getBoundingClientRect().width : 80, _e = 56, He = r ? 80 : 0, ke = 16, ee = Array.from(
|
|
46832
|
+
const E = k.current, Y = M.current;
|
|
46833
|
+
if (!E || !Y) return;
|
|
46834
|
+
const oe = Y.getBoundingClientRect().width, re = Y.querySelector(`.${de.actions}`), Ce = re ? re.getBoundingClientRect().width : 80, _e = 56, He = r ? 80 : 0, ke = 16, ee = Array.from(E.querySelectorAll(`.${de.tag}`));
|
|
46834
46835
|
ee.length === x.length && (N.current = ee.map((we) => {
|
|
46835
|
-
const
|
|
46836
|
-
return Math.max(
|
|
46836
|
+
const Pe = we.getBoundingClientRect(), xt = we.scrollWidth;
|
|
46837
|
+
return Math.max(Pe.width, xt, we.offsetWidth || 0);
|
|
46837
46838
|
}));
|
|
46838
|
-
const ae = N.current, le = ae.length > 0 ? ae.reduce((we,
|
|
46839
|
+
const ae = N.current, le = ae.length > 0 ? ae.reduce((we, Pe) => we + Pe, 0) / ae.length : 120, me = x.length <= ae.length ? ae.slice(0, x.length) : [...ae, ...Array(x.length - ae.length).fill(le)], he = 4, K = Math.max(
|
|
46839
46840
|
0,
|
|
46840
46841
|
oe - Ce - He - ke
|
|
46841
46842
|
);
|
|
46842
46843
|
let G = 0, se = 0;
|
|
46843
46844
|
for (let we = 0; we < x.length; we++) {
|
|
46844
|
-
const
|
|
46845
|
-
if (G +
|
|
46846
|
-
G +=
|
|
46845
|
+
const Pe = me[we] ?? 120;
|
|
46846
|
+
if (G + Pe + he > K) break;
|
|
46847
|
+
G += Pe + he, se++;
|
|
46847
46848
|
}
|
|
46848
46849
|
if (se >= x.length) {
|
|
46849
46850
|
v(null);
|
|
46850
46851
|
return;
|
|
46851
46852
|
}
|
|
46852
|
-
const
|
|
46853
|
+
const Ve = Math.max(
|
|
46853
46854
|
0,
|
|
46854
46855
|
oe - _e - Ce - He - ke
|
|
46855
46856
|
);
|
|
46856
46857
|
G = 0;
|
|
46857
46858
|
let Xe = 0;
|
|
46858
46859
|
for (let we = 0; we < x.length; we++) {
|
|
46859
|
-
const
|
|
46860
|
-
if (G +
|
|
46861
|
-
G +=
|
|
46860
|
+
const Pe = me[we] ?? 120;
|
|
46861
|
+
if (G + Pe + he > Ve) break;
|
|
46862
|
+
G += Pe + he, Xe++;
|
|
46862
46863
|
}
|
|
46863
46864
|
Xe < x.length && Xe > 0 ? v(Xe) : v(null);
|
|
46864
|
-
},
|
|
46865
|
+
}, T = requestAnimationFrame(() => {
|
|
46865
46866
|
A();
|
|
46866
|
-
}),
|
|
46867
|
+
}), F = setTimeout(A, 100), P = new ResizeObserver(() => {
|
|
46867
46868
|
A();
|
|
46868
46869
|
});
|
|
46869
|
-
return M.current &&
|
|
46870
|
-
cancelAnimationFrame(
|
|
46870
|
+
return M.current && P.observe(M.current), () => {
|
|
46871
|
+
cancelAnimationFrame(T), clearTimeout(F), P.disconnect();
|
|
46871
46872
|
};
|
|
46872
46873
|
}, [x, r, l, h]);
|
|
46873
46874
|
const I = () => {
|
|
46874
46875
|
if (d) return;
|
|
46875
46876
|
const A = !l;
|
|
46876
46877
|
A && C(!1), p(A), A && r && setTimeout(() => m.current?.focus(), 0);
|
|
46877
|
-
},
|
|
46878
|
+
}, $ = (A) => {
|
|
46878
46879
|
if (n.includes(A.value)) return;
|
|
46879
46880
|
C(!1);
|
|
46880
|
-
const
|
|
46881
|
-
o(
|
|
46881
|
+
const T = [...x, A];
|
|
46882
|
+
o(T), y(""), v(null), p(!1);
|
|
46882
46883
|
}, z = (A) => {
|
|
46883
|
-
A.preventDefault(), A.stopPropagation(), C((
|
|
46884
|
-
},
|
|
46885
|
-
|
|
46886
|
-
const
|
|
46887
|
-
o(
|
|
46888
|
-
},
|
|
46884
|
+
A.preventDefault(), A.stopPropagation(), C((T) => !T);
|
|
46885
|
+
}, B = _ != null && _ < x.length ? x.slice(_) : [], D = (A, T) => {
|
|
46886
|
+
T.stopPropagation();
|
|
46887
|
+
const F = x.filter((P) => P.value !== A);
|
|
46888
|
+
o(F);
|
|
46889
|
+
}, H = (A) => {
|
|
46889
46890
|
A.stopPropagation(), o([]);
|
|
46890
|
-
},
|
|
46891
|
+
}, S = (A) => {
|
|
46891
46892
|
A.stopPropagation(), l || p(!0);
|
|
46892
46893
|
};
|
|
46893
46894
|
return /* @__PURE__ */ f(
|
|
@@ -46912,14 +46913,14 @@ const a6e = (e) => /* @__PURE__ */ te.createElement("svg", { xmlns: "http://www.
|
|
|
46912
46913
|
className: `${de.tagsContainer} ${h ? de.tagsContainerWrap : ""}`,
|
|
46913
46914
|
ref: k,
|
|
46914
46915
|
children: [
|
|
46915
|
-
_ !== null && _ > 0 ? x.slice(0, _).map((A,
|
|
46916
|
+
_ !== null && _ > 0 ? x.slice(0, _).map((A, T) => /* @__PURE__ */ f("div", { className: de.tag, children: [
|
|
46916
46917
|
/* @__PURE__ */ c("div", { className: de.tagLabel, children: /* @__PURE__ */ c("span", { children: A.label }) }),
|
|
46917
46918
|
/* @__PURE__ */ c("div", { className: de.removeBtnContainer, children: /* @__PURE__ */ c(
|
|
46918
46919
|
"button",
|
|
46919
46920
|
{
|
|
46920
46921
|
type: "button",
|
|
46921
46922
|
className: de.removeBtn,
|
|
46922
|
-
onClick: (
|
|
46923
|
+
onClick: (F) => D(A.value, F),
|
|
46923
46924
|
"aria-label": `Supprimer ${A.label}`,
|
|
46924
46925
|
children: /* @__PURE__ */ c("svg", { width: "10", height: "10", viewBox: "0 0 10 10", fill: "currentColor", children: /* @__PURE__ */ c(
|
|
46925
46926
|
"path",
|
|
@@ -46932,14 +46933,14 @@ const a6e = (e) => /* @__PURE__ */ te.createElement("svg", { xmlns: "http://www.
|
|
|
46932
46933
|
) })
|
|
46933
46934
|
}
|
|
46934
46935
|
) })
|
|
46935
|
-
] }, `tag-${A.value}-${
|
|
46936
|
+
] }, `tag-${A.value}-${T}`)) : x.map((A, T) => /* @__PURE__ */ f("div", { className: de.tag, children: [
|
|
46936
46937
|
/* @__PURE__ */ c("div", { className: de.tagLabel, children: /* @__PURE__ */ c("span", { children: A.label }) }),
|
|
46937
46938
|
/* @__PURE__ */ c("div", { className: de.removeBtnContainer, children: /* @__PURE__ */ c(
|
|
46938
46939
|
"button",
|
|
46939
46940
|
{
|
|
46940
46941
|
type: "button",
|
|
46941
46942
|
className: de.removeBtn,
|
|
46942
|
-
onClick: (
|
|
46943
|
+
onClick: (F) => D(A.value, F),
|
|
46943
46944
|
"aria-label": `Supprimer ${A.label}`,
|
|
46944
46945
|
children: /* @__PURE__ */ c("svg", { width: "10", height: "10", viewBox: "0 0 10 10", fill: "currentColor", children: /* @__PURE__ */ c(
|
|
46945
46946
|
"path",
|
|
@@ -46952,7 +46953,7 @@ const a6e = (e) => /* @__PURE__ */ te.createElement("svg", { xmlns: "http://www.
|
|
|
46952
46953
|
) })
|
|
46953
46954
|
}
|
|
46954
46955
|
) })
|
|
46955
|
-
] }, `tag-${A.value}-${
|
|
46956
|
+
] }, `tag-${A.value}-${T}`)),
|
|
46956
46957
|
r ? /* @__PURE__ */ c(
|
|
46957
46958
|
"input",
|
|
46958
46959
|
{
|
|
@@ -46964,7 +46965,7 @@ const a6e = (e) => /* @__PURE__ */ te.createElement("svg", { xmlns: "http://www.
|
|
|
46964
46965
|
onChange: (A) => {
|
|
46965
46966
|
y(A.target.value), l || p(!0);
|
|
46966
46967
|
},
|
|
46967
|
-
onClick:
|
|
46968
|
+
onClick: S,
|
|
46968
46969
|
disabled: d
|
|
46969
46970
|
}
|
|
46970
46971
|
) : x.length === 0 && /* @__PURE__ */ c("span", { className: de.placeholder, children: i })
|
|
@@ -46981,19 +46982,19 @@ const a6e = (e) => /* @__PURE__ */ te.createElement("svg", { xmlns: "http://www.
|
|
|
46981
46982
|
type: "button",
|
|
46982
46983
|
className: de.overflowBadge,
|
|
46983
46984
|
onClick: z,
|
|
46984
|
-
"aria-label": `Afficher ${
|
|
46985
|
-
children:
|
|
46985
|
+
"aria-label": `Afficher ${B.length} éléments cachés`,
|
|
46986
|
+
children: B.length
|
|
46986
46987
|
}
|
|
46987
46988
|
),
|
|
46988
|
-
b &&
|
|
46989
|
+
b && B.length > 0 && /* @__PURE__ */ c("div", { className: de.overflowDropdown, role: "list", "aria-label": "Éléments cachés", children: B.map((A, T) => /* @__PURE__ */ f("div", { className: de.overflowDropdownItem, children: [
|
|
46989
46990
|
/* @__PURE__ */ c("span", { className: de.overflowDropdownItemLabel, children: A.label }),
|
|
46990
46991
|
/* @__PURE__ */ c(
|
|
46991
46992
|
"button",
|
|
46992
46993
|
{
|
|
46993
46994
|
type: "button",
|
|
46994
46995
|
className: de.overflowDropdownItemRemove,
|
|
46995
|
-
onClick: (
|
|
46996
|
-
|
|
46996
|
+
onClick: (F) => {
|
|
46997
|
+
F.stopPropagation(), D(A.value, F);
|
|
46997
46998
|
},
|
|
46998
46999
|
"aria-label": `Supprimer ${A.label}`,
|
|
46999
47000
|
children: /* @__PURE__ */ c("svg", { width: "10", height: "10", viewBox: "0 0 10 10", fill: "currentColor", children: /* @__PURE__ */ c(
|
|
@@ -47007,7 +47008,7 @@ const a6e = (e) => /* @__PURE__ */ te.createElement("svg", { xmlns: "http://www.
|
|
|
47007
47008
|
) })
|
|
47008
47009
|
}
|
|
47009
47010
|
)
|
|
47010
|
-
] }, `hidden-${A.value}-${
|
|
47011
|
+
] }, `hidden-${A.value}-${T}`)) })
|
|
47011
47012
|
] })
|
|
47012
47013
|
] }),
|
|
47013
47014
|
/* @__PURE__ */ f("div", { className: de.actions, children: [
|
|
@@ -47016,7 +47017,7 @@ const a6e = (e) => /* @__PURE__ */ te.createElement("svg", { xmlns: "http://www.
|
|
|
47016
47017
|
{
|
|
47017
47018
|
type: "button",
|
|
47018
47019
|
className: de.clearBtn,
|
|
47019
|
-
onClick:
|
|
47020
|
+
onClick: H,
|
|
47020
47021
|
"aria-label": "Effacer tout",
|
|
47021
47022
|
children: /* @__PURE__ */ c("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "currentColor", children: /* @__PURE__ */ c(
|
|
47022
47023
|
"path",
|
|
@@ -47048,16 +47049,16 @@ const a6e = (e) => /* @__PURE__ */ te.createElement("svg", { xmlns: "http://www.
|
|
|
47048
47049
|
]
|
|
47049
47050
|
}
|
|
47050
47051
|
),
|
|
47051
|
-
l && !d && /* @__PURE__ */ c("div", { className: de.dropdown, role: "listbox", children:
|
|
47052
|
+
l && !d && /* @__PURE__ */ c("div", { className: de.dropdown, role: "listbox", children: q.length > 0 ? q.map((A, T) => /* @__PURE__ */ c(
|
|
47052
47053
|
"div",
|
|
47053
47054
|
{
|
|
47054
47055
|
className: `${de.option} ${A.isHeader ? de.optionHeader : ""}`,
|
|
47055
|
-
onClick: () => !A.isHeader &&
|
|
47056
|
+
onClick: () => !A.isHeader && $(A),
|
|
47056
47057
|
role: "option",
|
|
47057
47058
|
"aria-selected": !1,
|
|
47058
47059
|
children: A.label
|
|
47059
47060
|
},
|
|
47060
|
-
`opt-${A.value}-${
|
|
47061
|
+
`opt-${A.value}-${T}`
|
|
47061
47062
|
)) : /* @__PURE__ */ c("div", { className: de.noOptions, children: t }) })
|
|
47062
47063
|
]
|
|
47063
47064
|
}
|
|
@@ -47332,8 +47333,8 @@ const a6e = (e) => /* @__PURE__ */ te.createElement("svg", { xmlns: "http://www.
|
|
|
47332
47333
|
hideColorIndicator: _ = !1
|
|
47333
47334
|
}) => {
|
|
47334
47335
|
const [v, b] = V(new Set(e.map((I) => I.nom))), C = (I) => {
|
|
47335
|
-
const
|
|
47336
|
-
|
|
47336
|
+
const $ = new Set(v);
|
|
47337
|
+
$.has(I) ? $.size > 1 && $.delete(I) : $.add(I), b($);
|
|
47337
47338
|
}, N = {
|
|
47338
47339
|
...u,
|
|
47339
47340
|
"--bg-color": n || o || "transparent",
|
|
@@ -47350,21 +47351,21 @@ const a6e = (e) => /* @__PURE__ */ te.createElement("svg", { xmlns: "http://www.
|
|
|
47350
47351
|
}, L = Me(() => e.map((I) => ({
|
|
47351
47352
|
...I,
|
|
47352
47353
|
displayValue: v.has(I.nom) ? I.value : 0
|
|
47353
|
-
})), [e, v]), x = Me(() => e.every((I) => I.value === 0), [e]), w = Me(() => x ? 1 : L.reduce((I,
|
|
47354
|
-
({ cx: I, cy:
|
|
47355
|
-
if (
|
|
47356
|
-
const
|
|
47354
|
+
})), [e, v]), x = Me(() => e.every((I) => I.value === 0), [e]), w = Me(() => x ? 1 : L.reduce((I, $) => I + $.displayValue, 0) || 1, [x, L]), q = ie.useCallback(
|
|
47355
|
+
({ cx: I, cy: $, midAngle: z, innerRadius: B, outerRadius: D, value: H }) => {
|
|
47356
|
+
if (H === 0 || x) return null;
|
|
47357
|
+
const S = B + (D - B) * 0.5, A = I + S * Math.cos(-z * H$), T = $ + S * Math.sin(-z * H$), F = Math.round(H / w * 100);
|
|
47357
47358
|
return /* @__PURE__ */ c(
|
|
47358
47359
|
Dz,
|
|
47359
47360
|
{
|
|
47360
47361
|
x: A,
|
|
47361
|
-
y:
|
|
47362
|
+
y: T,
|
|
47362
47363
|
fill: "white",
|
|
47363
47364
|
textAnchor: "middle",
|
|
47364
47365
|
dominantBaseline: "central",
|
|
47365
47366
|
fontSize: 12,
|
|
47366
47367
|
fontWeight: "bold",
|
|
47367
|
-
children: `${
|
|
47368
|
+
children: `${F}%`
|
|
47368
47369
|
}
|
|
47369
47370
|
);
|
|
47370
47371
|
},
|
|
@@ -47386,12 +47387,12 @@ const a6e = (e) => /* @__PURE__ */ te.createElement("svg", { xmlns: "http://www.
|
|
|
47386
47387
|
startAngle: 90,
|
|
47387
47388
|
endAngle: 450,
|
|
47388
47389
|
labelLine: !1,
|
|
47389
|
-
label:
|
|
47390
|
+
label: q,
|
|
47390
47391
|
isAnimationActive: !1,
|
|
47391
|
-
children: x ? /* @__PURE__ */ c(mN, { fill: "#A3C2CB" }) : L.map((I,
|
|
47392
|
+
children: x ? /* @__PURE__ */ c(mN, { fill: "#A3C2CB" }) : L.map((I, $) => /* @__PURE__ */ c(mN, { fill: I.color }, `cell-${$}`))
|
|
47392
47393
|
}
|
|
47393
47394
|
) }) }) }),
|
|
47394
|
-
/* @__PURE__ */ c("div", { className: Ze.legend, children: e.map((I,
|
|
47395
|
+
/* @__PURE__ */ c("div", { className: Ze.legend, children: e.map((I, $) => {
|
|
47395
47396
|
const z = v.has(I.nom);
|
|
47396
47397
|
return /* @__PURE__ */ f(
|
|
47397
47398
|
"div",
|
|
@@ -47436,7 +47437,7 @@ const a6e = (e) => /* @__PURE__ */ te.createElement("svg", { xmlns: "http://www.
|
|
|
47436
47437
|
)
|
|
47437
47438
|
]
|
|
47438
47439
|
},
|
|
47439
|
-
`legend-${
|
|
47440
|
+
`legend-${$}`
|
|
47440
47441
|
);
|
|
47441
47442
|
}) })
|
|
47442
47443
|
] });
|
|
@@ -47854,17 +47855,17 @@ const a6e = (e) => /* @__PURE__ */ te.createElement("svg", { xmlns: "http://www.
|
|
|
47854
47855
|
ariaLabelledBy: g,
|
|
47855
47856
|
a11yConfig: m
|
|
47856
47857
|
}) => {
|
|
47857
|
-
const [k, M] = V(!1), _ =
|
|
47858
|
+
const [k, M] = V(!1), _ = W(null), v = (I) => {
|
|
47858
47859
|
if (I instanceof Date)
|
|
47859
47860
|
return {
|
|
47860
47861
|
h: I.getHours().toString().padStart(2, "0"),
|
|
47861
47862
|
m: I.getMinutes().toString().padStart(2, "0")
|
|
47862
47863
|
};
|
|
47863
47864
|
if (typeof I == "string" && I.includes(":")) {
|
|
47864
|
-
const
|
|
47865
|
+
const $ = I.split(":");
|
|
47865
47866
|
return {
|
|
47866
|
-
h:
|
|
47867
|
-
m:
|
|
47867
|
+
h: $[0].padStart(2, "0"),
|
|
47868
|
+
m: $[1].padStart(2, "0")
|
|
47868
47869
|
};
|
|
47869
47870
|
}
|
|
47870
47871
|
return { h: "00", m: "00" };
|
|
@@ -47873,16 +47874,16 @@ const a6e = (e) => /* @__PURE__ */ te.createElement("svg", { xmlns: "http://www.
|
|
|
47873
47874
|
const I = v(e);
|
|
47874
47875
|
C(I.h), L(I.m);
|
|
47875
47876
|
}, [e, k]), O(() => {
|
|
47876
|
-
const I = (
|
|
47877
|
-
_.current && !_.current.contains(
|
|
47877
|
+
const I = ($) => {
|
|
47878
|
+
_.current && !_.current.contains($.target) && M(!1);
|
|
47878
47879
|
};
|
|
47879
47880
|
return document.addEventListener("mousedown", I), () => document.removeEventListener("mousedown", I);
|
|
47880
47881
|
}, []);
|
|
47881
47882
|
const x = () => {
|
|
47882
|
-
const I = parseInt(b) || 0,
|
|
47883
|
-
t(`${z}:${
|
|
47884
|
-
}, w = e ? typeof e == "string" ? e : `${e.getHours().toString().padStart(2, "0")}:${e.getMinutes().toString().padStart(2, "0")}` : "",
|
|
47885
|
-
return /* @__PURE__ */ f(r9e, { ref: _, $fullWidth: r, title:
|
|
47883
|
+
const I = parseInt(b) || 0, $ = parseInt(N) || 0, z = Math.min(u, Math.max(0, I)).toString().padStart(2, "0"), B = Math.min(59, Math.max(0, $)).toString().padStart(2, "0");
|
|
47884
|
+
t(`${z}:${B}`), M(!1);
|
|
47885
|
+
}, w = e ? typeof e == "string" ? e : `${e.getHours().toString().padStart(2, "0")}:${e.getMinutes().toString().padStart(2, "0")}` : "", q = ne(m, n);
|
|
47886
|
+
return /* @__PURE__ */ f(r9e, { ref: _, $fullWidth: r, title: q, children: [
|
|
47886
47887
|
n && /* @__PURE__ */ c(s9e, { id: g ? void 0 : `${n}-label`, children: n }),
|
|
47887
47888
|
/* @__PURE__ */ c(
|
|
47888
47889
|
d9e,
|
|
@@ -47915,13 +47916,13 @@ const a6e = (e) => /* @__PURE__ */ te.createElement("svg", { xmlns: "http://www.
|
|
|
47915
47916
|
$wide: u > 99,
|
|
47916
47917
|
value: b,
|
|
47917
47918
|
onChange: (I) => {
|
|
47918
|
-
const
|
|
47919
|
-
if (
|
|
47919
|
+
const $ = I.target.value;
|
|
47920
|
+
if ($ === "") {
|
|
47920
47921
|
C("");
|
|
47921
47922
|
return;
|
|
47922
47923
|
}
|
|
47923
|
-
const z = parseInt(
|
|
47924
|
-
!isNaN(z) && z >= 0 && z <= u && C(
|
|
47924
|
+
const z = parseInt($);
|
|
47925
|
+
!isNaN(z) && z >= 0 && z <= u && C($);
|
|
47925
47926
|
},
|
|
47926
47927
|
autoFocus: !0
|
|
47927
47928
|
}
|
|
@@ -47938,13 +47939,13 @@ const a6e = (e) => /* @__PURE__ */ te.createElement("svg", { xmlns: "http://www.
|
|
|
47938
47939
|
max: "59",
|
|
47939
47940
|
value: N,
|
|
47940
47941
|
onChange: (I) => {
|
|
47941
|
-
const
|
|
47942
|
-
if (
|
|
47942
|
+
const $ = I.target.value;
|
|
47943
|
+
if ($ === "") {
|
|
47943
47944
|
L("");
|
|
47944
47945
|
return;
|
|
47945
47946
|
}
|
|
47946
|
-
const z = parseInt(
|
|
47947
|
-
!isNaN(z) && z >= 0 && z <= 59 && L(
|
|
47947
|
+
const z = parseInt($);
|
|
47948
|
+
!isNaN(z) && z >= 0 && z <= 59 && L($.slice(-2));
|
|
47948
47949
|
}
|
|
47949
47950
|
}
|
|
47950
47951
|
) })
|
|
@@ -48275,17 +48276,17 @@ const a6e = (e) => /* @__PURE__ */ te.createElement("svg", { xmlns: "http://www.
|
|
|
48275
48276
|
`, x9e = ce.div`
|
|
48276
48277
|
display: flex;
|
|
48277
48278
|
flex-direction: ${(e) => e.$columns === 2 || e.$vertical ? "column" : "row"};
|
|
48278
|
-
font-size: 0.
|
|
48279
|
-
line-height: 1.
|
|
48280
|
-
gap: ${(e) => e.$columns === 2 || e.$vertical ? "0.
|
|
48279
|
+
font-size: 0.75rem;
|
|
48280
|
+
line-height: 1.3;
|
|
48281
|
+
gap: ${(e) => e.$columns === 2 || e.$vertical ? "0.125rem" : "0"};
|
|
48281
48282
|
`, b9e = ce.div`
|
|
48282
|
-
width: ${(e) => e.$columns === 2 || e.$vertical ? "auto" : "
|
|
48283
|
+
width: ${(e) => e.$columns === 2 || e.$vertical ? "auto" : "10.5rem"};
|
|
48283
48284
|
flex-shrink: 0;
|
|
48284
48285
|
color: inherit;
|
|
48285
|
-
font-weight:
|
|
48286
|
+
font-weight: 600;
|
|
48286
48287
|
`, w9e = ce.div`
|
|
48287
48288
|
flex: 1;
|
|
48288
|
-
font-weight:
|
|
48289
|
+
font-weight: 400;
|
|
48289
48290
|
white-space: pre-wrap;
|
|
48290
48291
|
word-break: break-word;
|
|
48291
48292
|
`, L9e = ce.button`
|
|
@@ -48305,7 +48306,7 @@ const a6e = (e) => /* @__PURE__ */ te.createElement("svg", { xmlns: "http://www.
|
|
|
48305
48306
|
&:hover {
|
|
48306
48307
|
opacity: 1;
|
|
48307
48308
|
}
|
|
48308
|
-
`, C9e = "_patientCard_liq5j_1", N9e = "_notAllowedCursor_liq5j_16", I9e = "_innerPadding_liq5j_26", S9e = "_noFooterMargin_liq5j_33", $9e = "_topArea_liq5j_37", q9e = "_small_liq5j_46", A9e = "_header_liq5j_59", z9e = "_headerLeft_liq5j_66", V9e = "_headerRight_liq5j_72", P9e = "_uf_liq5j_77", j9e = "_rmBadge_liq5j_85", H9e = "_roomBed_liq5j_100", T9e = "_content_liq5j_107", D9e = "_body_liq5j_119", B9e = "_upperBodyContent_liq5j_137", R9e = "_patientInfo_liq5j_147", F9e = "_iep_liq5j_152", O9e = "_name_liq5j_157", E9e = "_birthName_liq5j_164", U9e = "_firstNames_liq5j_169", W9e = "_dobAge_liq5j_174", G9e = "_duration_liq5j_179", Z9e = "_comment_liq5j_185", K9e = "_timeline_liq5j_192", X9e = "_destination_liq5j_196", Y9e = "_todayReservation_liq5j_204", J9e = "_arrow_liq5j_225", Q9e = "_progressBar_liq5j_230", eMe = "_progressFill_liq5j_240", tMe = "_progressDate_liq5j_250", aMe = "_footer_liq5j_261", nMe = "_actionsLeft_liq5j_270", oMe = "_actionsRight_liq5j_271", iMe = "_iconWrap_liq5j_277", cMe = "_centerLabelHuge_liq5j_296", rMe = "_labelYellow_liq5j_303", sMe = "_expectedBottom_liq5j_322", dMe = "_expectedPrefix_liq5j_330", lMe = "_expectedDate_liq5j_336", hMe = "_notesView_liq5j_357", pMe = "_notesHeader_liq5j_365", uMe = "_notesTitle_liq5j_371", yMe = "_notesList_liq5j_377", kMe = "_noteItem_liq5j_383", mMe = "_reservationView_liq5j_388", fMe = "_reservationNote_liq5j_400", gMe = "_bottomArea_liq5j_405", vMe = "_bottomLeftSymbol_liq5j_413",
|
|
48309
|
+
`, C9e = "_patientCard_liq5j_1", N9e = "_notAllowedCursor_liq5j_16", I9e = "_innerPadding_liq5j_26", S9e = "_noFooterMargin_liq5j_33", $9e = "_topArea_liq5j_37", q9e = "_small_liq5j_46", A9e = "_header_liq5j_59", z9e = "_headerLeft_liq5j_66", V9e = "_headerRight_liq5j_72", P9e = "_uf_liq5j_77", j9e = "_rmBadge_liq5j_85", H9e = "_roomBed_liq5j_100", T9e = "_content_liq5j_107", D9e = "_body_liq5j_119", B9e = "_upperBodyContent_liq5j_137", R9e = "_patientInfo_liq5j_147", F9e = "_iep_liq5j_152", O9e = "_name_liq5j_157", E9e = "_birthName_liq5j_164", U9e = "_firstNames_liq5j_169", W9e = "_dobAge_liq5j_174", G9e = "_duration_liq5j_179", Z9e = "_comment_liq5j_185", K9e = "_timeline_liq5j_192", X9e = "_destination_liq5j_196", Y9e = "_todayReservation_liq5j_204", J9e = "_arrow_liq5j_225", Q9e = "_progressBar_liq5j_230", eMe = "_progressFill_liq5j_240", tMe = "_progressDate_liq5j_250", aMe = "_footer_liq5j_261", nMe = "_actionsLeft_liq5j_270", oMe = "_actionsRight_liq5j_271", iMe = "_iconWrap_liq5j_277", cMe = "_centerLabelHuge_liq5j_296", rMe = "_labelYellow_liq5j_303", sMe = "_expectedBottom_liq5j_322", dMe = "_expectedPrefix_liq5j_330", lMe = "_expectedDate_liq5j_336", hMe = "_notesView_liq5j_357", pMe = "_notesHeader_liq5j_365", uMe = "_notesTitle_liq5j_371", yMe = "_notesList_liq5j_377", kMe = "_noteItem_liq5j_383", mMe = "_reservationView_liq5j_388", fMe = "_reservationNote_liq5j_400", gMe = "_bottomArea_liq5j_405", vMe = "_bottomLeftSymbol_liq5j_413", U = {
|
|
48309
48310
|
patientCard: C9e,
|
|
48310
48311
|
notAllowedCursor: N9e,
|
|
48311
48312
|
innerPadding: I9e,
|
|
@@ -48380,131 +48381,131 @@ const a6e = (e) => /* @__PURE__ */ te.createElement("svg", { xmlns: "http://www.
|
|
|
48380
48381
|
progressLabel: L,
|
|
48381
48382
|
showFooter: x = !1,
|
|
48382
48383
|
leftIcons: w = [],
|
|
48383
|
-
rightIcons:
|
|
48384
|
+
rightIcons: q = [],
|
|
48384
48385
|
activeView: I = "default",
|
|
48385
|
-
notesHeaderTitle:
|
|
48386
|
+
notesHeaderTitle: $,
|
|
48386
48387
|
notesHeaderIcon: z,
|
|
48387
|
-
notesList:
|
|
48388
|
-
reservationNote:
|
|
48389
|
-
isYellowLabel:
|
|
48390
|
-
bottomLeftSymbol:
|
|
48388
|
+
notesList: B = [],
|
|
48389
|
+
reservationNote: D,
|
|
48390
|
+
isYellowLabel: H = !1,
|
|
48391
|
+
bottomLeftSymbol: S,
|
|
48391
48392
|
cursorNotAllowed: A = !1,
|
|
48392
|
-
rmBadge:
|
|
48393
|
-
isReservationToday:
|
|
48393
|
+
rmBadge: T,
|
|
48394
|
+
isReservationToday: F = !1
|
|
48394
48395
|
}) => {
|
|
48395
|
-
const
|
|
48396
|
-
${
|
|
48397
|
-
${
|
|
48398
|
-
${A ?
|
|
48396
|
+
const P = e === "small", E = `
|
|
48397
|
+
${U.patientCard}
|
|
48398
|
+
${P ? U.small : ""}
|
|
48399
|
+
${A ? U.notAllowedCursor : ""}
|
|
48399
48400
|
${t}
|
|
48400
48401
|
`.trim();
|
|
48401
|
-
return /* @__PURE__ */ c("div", { className:
|
|
48402
|
+
return /* @__PURE__ */ c("div", { className: E, style: n, children: /* @__PURE__ */ f("div", { className: U.innerPadding, children: [
|
|
48402
48403
|
/* @__PURE__ */ f(
|
|
48403
48404
|
"div",
|
|
48404
48405
|
{
|
|
48405
|
-
className: `${
|
|
48406
|
+
className: `${U.topArea} ${x ? "" : U.noFooterMargin}`,
|
|
48406
48407
|
style: o,
|
|
48407
48408
|
children: [
|
|
48408
|
-
/* @__PURE__ */ c("div", { className:
|
|
48409
|
-
/* @__PURE__ */ c("div", { className:
|
|
48409
|
+
/* @__PURE__ */ c("div", { className: U.header, children: T ? /* @__PURE__ */ f(ze, { children: [
|
|
48410
|
+
/* @__PURE__ */ c("div", { className: U.headerLeft, children: /* @__PURE__ */ f("div", { className: U.uf, children: [
|
|
48410
48411
|
i,
|
|
48411
48412
|
r && ` - ${r}`
|
|
48412
48413
|
] }) }),
|
|
48413
|
-
/* @__PURE__ */ c("div", { className:
|
|
48414
|
-
] }) : /* @__PURE__ */ f(
|
|
48415
|
-
/* @__PURE__ */ c("div", { className:
|
|
48416
|
-
/* @__PURE__ */ c("div", { className:
|
|
48414
|
+
/* @__PURE__ */ c("div", { className: U.headerRight, children: /* @__PURE__ */ c("div", { className: U.rmBadge, children: T }) })
|
|
48415
|
+
] }) : /* @__PURE__ */ f(ze, { children: [
|
|
48416
|
+
/* @__PURE__ */ c("div", { className: U.headerLeft, children: i && /* @__PURE__ */ c("div", { className: U.uf, children: i }) }),
|
|
48417
|
+
/* @__PURE__ */ c("div", { className: U.headerRight, children: r && /* @__PURE__ */ c("span", { className: U.roomBed, children: r }) })
|
|
48417
48418
|
] }) }),
|
|
48418
|
-
/* @__PURE__ */ f("div", { className:
|
|
48419
|
-
/* @__PURE__ */ f("div", { className:
|
|
48420
|
-
I === "default" && /* @__PURE__ */ f(
|
|
48419
|
+
/* @__PURE__ */ f("div", { className: U.content, children: [
|
|
48420
|
+
/* @__PURE__ */ f("div", { className: U.body, children: [
|
|
48421
|
+
I === "default" && /* @__PURE__ */ f(ze, { children: [
|
|
48421
48422
|
s && /* @__PURE__ */ c(
|
|
48422
48423
|
"div",
|
|
48423
48424
|
{
|
|
48424
|
-
className: `${
|
|
48425
|
+
className: `${U.centerLabelHuge} ${H ? U.labelYellow : ""}`,
|
|
48425
48426
|
children: s
|
|
48426
48427
|
}
|
|
48427
48428
|
),
|
|
48428
|
-
/* @__PURE__ */ f("div", { className:
|
|
48429
|
-
/* @__PURE__ */ f("div", { className:
|
|
48430
|
-
d && /* @__PURE__ */ c("div", { className:
|
|
48431
|
-
h && /* @__PURE__ */ c("div", { className:
|
|
48432
|
-
l && /* @__PURE__ */ f("div", { className:
|
|
48429
|
+
/* @__PURE__ */ f("div", { className: U.upperBodyContent, children: [
|
|
48430
|
+
/* @__PURE__ */ f("div", { className: U.patientInfo, children: [
|
|
48431
|
+
d && /* @__PURE__ */ c("div", { className: U.iep, children: d }),
|
|
48432
|
+
h && /* @__PURE__ */ c("div", { className: U.name, children: h }),
|
|
48433
|
+
l && /* @__PURE__ */ f("div", { className: U.birthName, children: [
|
|
48433
48434
|
"(",
|
|
48434
48435
|
p ? `${p} ${l}` : l,
|
|
48435
48436
|
")"
|
|
48436
48437
|
] }),
|
|
48437
|
-
u && /* @__PURE__ */ c("div", { className:
|
|
48438
|
-
y && /* @__PURE__ */ c("div", { className:
|
|
48438
|
+
u && /* @__PURE__ */ c("div", { className: U.firstNames, children: u }),
|
|
48439
|
+
y && /* @__PURE__ */ c("div", { className: U.dobAge, children: y })
|
|
48439
48440
|
] }),
|
|
48440
|
-
g && /* @__PURE__ */ c("div", { className:
|
|
48441
|
-
m && /* @__PURE__ */ c("div", { className:
|
|
48441
|
+
g && /* @__PURE__ */ c("div", { className: U.duration, children: g }),
|
|
48442
|
+
m && /* @__PURE__ */ c("div", { className: U.comment, children: m })
|
|
48442
48443
|
] }),
|
|
48443
|
-
k && /* @__PURE__ */ f("div", { className:
|
|
48444
|
-
M && /* @__PURE__ */ c("div", { className:
|
|
48445
|
-
/* @__PURE__ */ c("div", { className:
|
|
48444
|
+
k && /* @__PURE__ */ f("div", { className: U.expectedBottom, children: [
|
|
48445
|
+
M && /* @__PURE__ */ c("div", { className: U.expectedPrefix, children: M }),
|
|
48446
|
+
/* @__PURE__ */ c("div", { className: U.expectedDate, children: k })
|
|
48446
48447
|
] })
|
|
48447
48448
|
] }),
|
|
48448
|
-
I === "notes" && /* @__PURE__ */ f("div", { className:
|
|
48449
|
-
/* @__PURE__ */ f("div", { className:
|
|
48449
|
+
I === "notes" && /* @__PURE__ */ f("div", { className: U.notesView, children: [
|
|
48450
|
+
/* @__PURE__ */ f("div", { className: U.notesHeader, children: [
|
|
48450
48451
|
z,
|
|
48451
|
-
/* @__PURE__ */ c("span", { className:
|
|
48452
|
+
/* @__PURE__ */ c("span", { className: U.notesTitle, children: $ })
|
|
48452
48453
|
] }),
|
|
48453
|
-
/* @__PURE__ */ c("div", { className:
|
|
48454
|
+
/* @__PURE__ */ c("div", { className: U.notesList, children: B.map((Y, oe) => /* @__PURE__ */ c("div", { className: U.noteItem, children: Y }, oe)) })
|
|
48454
48455
|
] }),
|
|
48455
|
-
I === "reservation" && /* @__PURE__ */ f("div", { className:
|
|
48456
|
+
I === "reservation" && /* @__PURE__ */ f("div", { className: U.reservationView, children: [
|
|
48456
48457
|
s && /* @__PURE__ */ c(
|
|
48457
48458
|
"div",
|
|
48458
48459
|
{
|
|
48459
|
-
className: `${
|
|
48460
|
+
className: `${U.centerLabelHuge} ${H ? U.labelYellow : ""}`,
|
|
48460
48461
|
children: s
|
|
48461
48462
|
}
|
|
48462
48463
|
),
|
|
48463
|
-
/* @__PURE__ */ c("div", { className:
|
|
48464
|
-
d && /* @__PURE__ */ c("div", { className:
|
|
48465
|
-
h && /* @__PURE__ */ c("div", { className:
|
|
48466
|
-
l && /* @__PURE__ */ f("div", { className:
|
|
48464
|
+
/* @__PURE__ */ c("div", { className: U.upperBodyContent, children: /* @__PURE__ */ f("div", { className: U.patientInfo, children: [
|
|
48465
|
+
d && /* @__PURE__ */ c("div", { className: U.iep, children: d }),
|
|
48466
|
+
h && /* @__PURE__ */ c("div", { className: U.name, children: h }),
|
|
48467
|
+
l && /* @__PURE__ */ f("div", { className: U.birthName, children: [
|
|
48467
48468
|
"(",
|
|
48468
48469
|
p ? `${p} ${l}` : l,
|
|
48469
48470
|
")"
|
|
48470
48471
|
] }),
|
|
48471
|
-
u && /* @__PURE__ */ c("div", { className:
|
|
48472
|
-
y && /* @__PURE__ */ c("div", { className:
|
|
48472
|
+
u && /* @__PURE__ */ c("div", { className: U.firstNames, children: u }),
|
|
48473
|
+
y && /* @__PURE__ */ c("div", { className: U.dobAge, children: y })
|
|
48473
48474
|
] }) }),
|
|
48474
|
-
|
|
48475
|
+
D && /* @__PURE__ */ c("div", { className: U.reservationNote, children: D })
|
|
48475
48476
|
] })
|
|
48476
48477
|
] }),
|
|
48477
|
-
(
|
|
48478
|
-
|
|
48478
|
+
(S || _ || v) && /* @__PURE__ */ f("div", { className: U.bottomArea, children: [
|
|
48479
|
+
S && /* @__PURE__ */ c("div", { className: U.bottomLeftSymbol, children: S }),
|
|
48479
48480
|
v && /* @__PURE__ */ f(
|
|
48480
48481
|
"div",
|
|
48481
48482
|
{
|
|
48482
|
-
className: `${
|
|
48483
|
+
className: `${U.destination} ${F ? U.todayReservation : ""}`,
|
|
48483
48484
|
children: [
|
|
48484
|
-
/* @__PURE__ */ c("span", { className:
|
|
48485
|
+
/* @__PURE__ */ c("span", { className: U.arrow, children: "→" }),
|
|
48485
48486
|
v.prefix && /* @__PURE__ */ c("span", { children: v.prefix }),
|
|
48486
48487
|
/* @__PURE__ */ c("strong", { children: v.name }),
|
|
48487
48488
|
v.suffix && /* @__PURE__ */ c("span", { children: v.suffix })
|
|
48488
48489
|
]
|
|
48489
48490
|
}
|
|
48490
48491
|
),
|
|
48491
|
-
_ && /* @__PURE__ */ c("div", { className:
|
|
48492
|
+
_ && /* @__PURE__ */ c("div", { className: U.timeline, children: C && C !== "transparent" && /* @__PURE__ */ f(
|
|
48492
48493
|
"div",
|
|
48493
48494
|
{
|
|
48494
|
-
className:
|
|
48495
|
+
className: U.progressBar,
|
|
48495
48496
|
style: { backgroundColor: C },
|
|
48496
48497
|
children: [
|
|
48497
48498
|
/* @__PURE__ */ c(
|
|
48498
48499
|
"div",
|
|
48499
48500
|
{
|
|
48500
|
-
className:
|
|
48501
|
+
className: U.progressFill,
|
|
48501
48502
|
style: {
|
|
48502
48503
|
width: `${b}%`,
|
|
48503
48504
|
backgroundColor: N
|
|
48504
48505
|
}
|
|
48505
48506
|
}
|
|
48506
48507
|
),
|
|
48507
|
-
L && /* @__PURE__ */ c("span", { className:
|
|
48508
|
+
L && /* @__PURE__ */ c("span", { className: U.progressDate, children: L })
|
|
48508
48509
|
]
|
|
48509
48510
|
}
|
|
48510
48511
|
) })
|
|
@@ -48513,9 +48514,9 @@ const a6e = (e) => /* @__PURE__ */ te.createElement("svg", { xmlns: "http://www.
|
|
|
48513
48514
|
]
|
|
48514
48515
|
}
|
|
48515
48516
|
),
|
|
48516
|
-
x && /* @__PURE__ */ f("div", { className:
|
|
48517
|
-
/* @__PURE__ */ c("div", { className:
|
|
48518
|
-
/* @__PURE__ */ c("div", { className:
|
|
48517
|
+
x && /* @__PURE__ */ f("div", { className: U.footer, children: [
|
|
48518
|
+
/* @__PURE__ */ c("div", { className: U.actionsLeft, children: w.map((Y, oe) => /* @__PURE__ */ c("div", { className: U.iconWrap, children: Y }, `left-${oe}`)) }),
|
|
48519
|
+
/* @__PURE__ */ c("div", { className: U.actionsRight, children: q.map((Y, oe) => /* @__PURE__ */ c("div", { className: U.iconWrap, children: Y }, `right-${oe}`)) })
|
|
48519
48520
|
] })
|
|
48520
48521
|
] }) });
|
|
48521
48522
|
}, j_e = ({
|
|
@@ -48595,7 +48596,7 @@ const a6e = (e) => /* @__PURE__ */ te.createElement("svg", { xmlns: "http://www.
|
|
|
48595
48596
|
className: o = "",
|
|
48596
48597
|
activeClassName: i = "is-drag-over"
|
|
48597
48598
|
}) => {
|
|
48598
|
-
const [r, s] = V(!1), d =
|
|
48599
|
+
const [r, s] = V(!1), d = W(0), h = (g) => {
|
|
48599
48600
|
g.preventDefault(), d.current += 1, d.current > 0 && s(!0);
|
|
48600
48601
|
}, l = (g) => {
|
|
48601
48602
|
g.preventDefault(), g.dataTransfer.dropEffect = "move";
|