@tsiky/components-r19 1.6.114 → 1.6.116
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/components-r19.css +1 -1
- package/dist/index.cjs.js +6 -6
- package/dist/index.js +639 -636
- package/dist/src/components/NavBarV2/NavBarV2.d.ts +1 -0
- package/dist/src/components/NavBarV2/NavBarV2.d.ts.map +1 -1
- package/dist/src/components/SearchBar/SearchBar.d.ts +1 -0
- package/dist/src/components/SearchBar/SearchBar.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as s, jsxs as v, Fragment as Ue } from "react/jsx-runtime";
|
|
2
|
-
import * as
|
|
3
|
-
import te, { useState as j, useRef as W, useEffect as O, createContext as Ge, useContext as
|
|
2
|
+
import * as Y from "react";
|
|
3
|
+
import te, { useState as j, useRef as W, useEffect as O, createContext as Ge, useContext as ke, useCallback as De, memo as ze, useLayoutEffect as nz, useId as hC, useInsertionEffect as w$, useMemo as ge, Children as oz, isValidElement as iz, Fragment as b$, createElement as cz, forwardRef as Ki, Component as rz, useImperativeHandle as sz } from "react";
|
|
4
4
|
import { c as a, M as jo, I as dz, a as ac, g as lz, R as L$, B as hz, C as pz, X as uz, Y as yz, T as kz, b as mz, d as fz, P as gz, e as vz, f as nI } from "./SimpleBarChart-Cc2mdbuB.js";
|
|
5
5
|
import { h as C9e, S as I9e } from "./SimpleBarChart-Cc2mdbuB.js";
|
|
6
6
|
import { createPortal as pC } from "react-dom";
|
|
@@ -31363,7 +31363,7 @@ const _t = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
31363
31363
|
)
|
|
31364
31364
|
] });
|
|
31365
31365
|
}, C$ = Ge(void 0), Lt = () => {
|
|
31366
|
-
const e =
|
|
31366
|
+
const e = ke(C$);
|
|
31367
31367
|
if (!e) throw new Error("useNavigation must be used within a NavProvider");
|
|
31368
31368
|
return e;
|
|
31369
31369
|
}, Mve = ({
|
|
@@ -31542,13 +31542,13 @@ const _t = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
31542
31542
|
}
|
|
31543
31543
|
}), H === -1 || T === -1)
|
|
31544
31544
|
return;
|
|
31545
|
-
const
|
|
31545
|
+
const P = q[T].node;
|
|
31546
31546
|
q[T] = {
|
|
31547
31547
|
...q[T],
|
|
31548
31548
|
node: q[H].node
|
|
31549
31549
|
}, q[H] = {
|
|
31550
31550
|
...q[H],
|
|
31551
|
-
node:
|
|
31551
|
+
node: P
|
|
31552
31552
|
}, w(q), typeof m == "function" && m(T, H);
|
|
31553
31553
|
}, x = o ? [
|
|
31554
31554
|
i ? `grid-xs-${i}` : "",
|
|
@@ -31736,7 +31736,7 @@ const uC = ({ imagePath: e, ...t }) => {
|
|
|
31736
31736
|
}, []);
|
|
31737
31737
|
return /* @__PURE__ */ s(N$.Provider, { value: { themeName: n, setTheme: i }, children: e });
|
|
31738
31738
|
}, J2e = () => {
|
|
31739
|
-
const e =
|
|
31739
|
+
const e = ke(N$);
|
|
31740
31740
|
if (!e)
|
|
31741
31741
|
throw new Error("useThemeContext must be used within a ThemeProvider");
|
|
31742
31742
|
return e;
|
|
@@ -31827,7 +31827,7 @@ const uC = ({ imagePath: e, ...t }) => {
|
|
|
31827
31827
|
a11yConfig: r
|
|
31828
31828
|
}
|
|
31829
31829
|
) : null;
|
|
31830
|
-
}, Q2e = (e) => /* @__PURE__ */
|
|
31830
|
+
}, Q2e = (e) => /* @__PURE__ */ Y.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 -960 960 960", ...e }, /* @__PURE__ */ Y.createElement("path", { d: "M480-80 317-243l44-44 89 89v-252H198l84 84-44 44L80-480l159-159 44 44-85 85h252v-252l-84 84-44-44 158-158 158 158-44 44-84-84v252h252l-84-84 44-44 158 158-158 158-44-44 84-84H510v252l89-89 44 44z" })), rI = ze(Q2e), S$ = Ge(void 0), xve = ({ children: e }) => {
|
|
31831
31831
|
const [t, n] = j(!1);
|
|
31832
31832
|
O(() => {
|
|
31833
31833
|
const i = localStorage.getItem("isDraggable");
|
|
@@ -31840,7 +31840,7 @@ const uC = ({ imagePath: e, ...t }) => {
|
|
|
31840
31840
|
};
|
|
31841
31841
|
return /* @__PURE__ */ s(S$.Provider, { value: { isDraggable: t, switchDraggable: o }, children: e });
|
|
31842
31842
|
}, ese = () => {
|
|
31843
|
-
const e =
|
|
31843
|
+
const e = ke(S$);
|
|
31844
31844
|
if (!e)
|
|
31845
31845
|
throw new Error("useDraggableSwitcher must be used inside a DraggableProvider");
|
|
31846
31846
|
return e;
|
|
@@ -31877,7 +31877,7 @@ const uC = ({ imagePath: e, ...t }) => {
|
|
|
31877
31877
|
a11yConfig: i
|
|
31878
31878
|
}
|
|
31879
31879
|
);
|
|
31880
|
-
}, tse = (e) => /* @__PURE__ */
|
|
31880
|
+
}, tse = (e) => /* @__PURE__ */ Y.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 -960 960 960", ...e }, /* @__PURE__ */ Y.createElement("path", { d: "M400.06-300Q508-300 584.5-376.13 661-452.25 661-561q0-107.92-76.5-183.46T400.06-820t-183.5 75.54T141-561q0 108.75 75.56 184.87Q292.12-300 400.06-300M371-448v-267h60v267zm-145 0v-184h60v184zm290 0v-143h60v143zM838-80 605-314q-42 35-94.24 54.5Q458.51-240 400-240q-133 0-226-93.5T81-560.7q0-133.71 92.8-226.5Q266.59-880 400.3-880q133.7 0 227.2 93T721-561q0 58.51-19.5 110.76Q682-398 647-356l233 233z" })), sI = ze(tse), $$ = Ge(void 0), wve = ({ children: e }) => {
|
|
31881
31881
|
const [t, n] = j(!1);
|
|
31882
31882
|
O(() => {
|
|
31883
31883
|
const i = localStorage.getItem("disableLegendFilter");
|
|
@@ -31890,7 +31890,7 @@ const uC = ({ imagePath: e, ...t }) => {
|
|
|
31890
31890
|
};
|
|
31891
31891
|
return /* @__PURE__ */ s($$.Provider, { value: { disableLegendFilter: t, switchDisableLegendFilter: o }, children: e });
|
|
31892
31892
|
}, ase = () => {
|
|
31893
|
-
const e =
|
|
31893
|
+
const e = ke($$);
|
|
31894
31894
|
if (!e)
|
|
31895
31895
|
throw new Error("useLegendFilterSwitcher must be used inside a LegendFilterProvider");
|
|
31896
31896
|
return e;
|
|
@@ -31940,11 +31940,11 @@ const uC = ({ imagePath: e, ...t }) => {
|
|
|
31940
31940
|
};
|
|
31941
31941
|
return /* @__PURE__ */ s(q$.Provider, { value: { showData: t, switchShowData: o }, children: e });
|
|
31942
31942
|
}, nse = () => {
|
|
31943
|
-
const e =
|
|
31943
|
+
const e = ke(q$);
|
|
31944
31944
|
if (!e)
|
|
31945
31945
|
throw new Error("useShowDataSwitcher must be used inside a ShowDataProvider");
|
|
31946
31946
|
return e;
|
|
31947
|
-
}, ose = (e) => /* @__PURE__ */
|
|
31947
|
+
}, ose = (e) => /* @__PURE__ */ Y.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 -960 960 960", ...e }, /* @__PURE__ */ Y.createElement("path", { d: "M600.5-379.5Q650-429 650-500t-49.5-120.5T480-670t-120.5 49.5T310-500t49.5 120.5T480-330t120.5-49.5m-200-41Q368-453 368-500t32.5-79.5T480-612t79.5 32.5T592-500t-32.5 79.5T480-388t-79.5-32.5M216-283Q98-366 40-500q58-134 176-217t264-83 264 83 176 217q-58 134-176 217t-264 83-264-83m486.5-42.5Q804-391 857-500q-53-109-154.5-174.5T480-740t-222.5 65.5T102-500q54 109 155.5 174.5T480-260t222.5-65.5" })), dI = ze(ose), RL = ({
|
|
31948
31948
|
size: e = 24,
|
|
31949
31949
|
colors: t = {
|
|
31950
31950
|
bg: "var(--color-switcher-background)",
|
|
@@ -31971,7 +31971,7 @@ const uC = ({ imagePath: e, ...t }) => {
|
|
|
31971
31971
|
a11yConfig: n
|
|
31972
31972
|
}
|
|
31973
31973
|
) : null;
|
|
31974
|
-
}, ise = (e) => /* @__PURE__ */
|
|
31974
|
+
}, ise = (e) => /* @__PURE__ */ Y.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 -960 960 960", ...e }, /* @__PURE__ */ Y.createElement("path", { d: "M284-277h60v-205h-60zm332 0h60v-420h-60zm-166 0h60v-118h-60zm0-205h60v-60h-60zM180-120q-24 0-42-18t-18-42v-600q0-24 18-42t42-18h600q24 0 42 18t18 42v600q0 24-18 42t-42 18zm0-60h600v-600H180zm0-600v600z" })), A$ = ze(ise);
|
|
31975
31975
|
function lI({
|
|
31976
31976
|
items: e,
|
|
31977
31977
|
onSave: t,
|
|
@@ -32421,7 +32421,7 @@ function G$(e, t) {
|
|
|
32421
32421
|
r[nc[C]].cancel(w);
|
|
32422
32422
|
}, state: i, steps: r };
|
|
32423
32423
|
}
|
|
32424
|
-
const { schedule:
|
|
32424
|
+
const { schedule: ue, cancel: bt, state: qe, steps: Bw } = /* @__PURE__ */ G$(typeof requestAnimationFrame < "u" ? requestAnimationFrame : tt, !0);
|
|
32425
32425
|
let rw;
|
|
32426
32426
|
function Mse() {
|
|
32427
32427
|
rw = void 0;
|
|
@@ -32559,7 +32559,7 @@ function jse({ hue: e, saturation: t, lightness: n, alpha: o }) {
|
|
|
32559
32559
|
function hw(e, t) {
|
|
32560
32560
|
return (n) => n > 0 ? t : e;
|
|
32561
32561
|
}
|
|
32562
|
-
const
|
|
32562
|
+
const me = (e, t, n) => e + (t - e) * n, Ow = (e, t, n) => {
|
|
32563
32563
|
const o = e * e, i = n * (t * t - o) + o;
|
|
32564
32564
|
return i < 0 ? 0 : Math.sqrt(i);
|
|
32565
32565
|
}, Hse = [OL, Ao, Ko], Tse = (e) => Hse.find((t) => t.test(e));
|
|
@@ -32575,13 +32575,13 @@ const fI = (e, t) => {
|
|
|
32575
32575
|
if (!n || !o)
|
|
32576
32576
|
return hw(e, t);
|
|
32577
32577
|
const i = { ...n };
|
|
32578
|
-
return (c) => (i.red = Ow(n.red, o.red, c), i.green = Ow(n.green, o.green, c), i.blue = Ow(n.blue, o.blue, c), i.alpha =
|
|
32578
|
+
return (c) => (i.red = Ow(n.red, o.red, c), i.green = Ow(n.green, o.green, c), i.blue = Ow(n.blue, o.blue, c), i.alpha = me(n.alpha, o.alpha, c), Ao.transform(i));
|
|
32579
32579
|
}, EL = /* @__PURE__ */ new Set(["none", "hidden"]);
|
|
32580
32580
|
function Dse(e, t) {
|
|
32581
32581
|
return EL.has(e) ? (n) => n <= 0 ? e : t : (n) => n >= 1 ? t : e;
|
|
32582
32582
|
}
|
|
32583
32583
|
function Bse(e, t) {
|
|
32584
|
-
return (n) =>
|
|
32584
|
+
return (n) => me(e, t, n);
|
|
32585
32585
|
}
|
|
32586
32586
|
function SC(e) {
|
|
32587
32587
|
return typeof e == "number" ? Bse : typeof e == "string" ? CC(e) ? hw : be.test(e) ? fI : Ose : Array.isArray(e) ? eq : typeof e == "object" ? be.test(e) ? fI : Rse : hw;
|
|
@@ -32617,12 +32617,12 @@ const Ose = (e, t) => {
|
|
|
32617
32617
|
return o.indexes.var.length === i.indexes.var.length && o.indexes.color.length === i.indexes.color.length && o.indexes.number.length >= i.indexes.number.length ? EL.has(e) && !i.values.length || EL.has(t) && !o.values.length ? Dse(e, t) : Xi(eq(Fse(o, i), i.values), n) : (si(!0, `Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`, "complex-values-different"), hw(e, t));
|
|
32618
32618
|
};
|
|
32619
32619
|
function tq(e, t, n) {
|
|
32620
|
-
return typeof e == "number" && typeof t == "number" && typeof n == "number" ?
|
|
32620
|
+
return typeof e == "number" && typeof t == "number" && typeof n == "number" ? me(e, t, n) : SC(e)(e, t);
|
|
32621
32621
|
}
|
|
32622
32622
|
const Ese = (e) => {
|
|
32623
32623
|
const t = ({ timestamp: n }) => e(n);
|
|
32624
32624
|
return {
|
|
32625
|
-
start: (n = !0) =>
|
|
32625
|
+
start: (n = !0) => ue.update(t, n),
|
|
32626
32626
|
stop: () => bt(t),
|
|
32627
32627
|
/**
|
|
32628
32628
|
* If we're processing this frame we can use the
|
|
@@ -32658,7 +32658,7 @@ function nq(e, t, n) {
|
|
|
32658
32658
|
const o = Math.max(t - Wse, 0);
|
|
32659
32659
|
return j$(n - e(o), t - o);
|
|
32660
32660
|
}
|
|
32661
|
-
const
|
|
32661
|
+
const fe = {
|
|
32662
32662
|
// Default spring physics
|
|
32663
32663
|
stiffness: 100,
|
|
32664
32664
|
damping: 10,
|
|
@@ -32687,11 +32687,11 @@ const me = {
|
|
|
32687
32687
|
minDamping: 0.05,
|
|
32688
32688
|
maxDamping: 1
|
|
32689
32689
|
}, Ew = 1e-3;
|
|
32690
|
-
function Gse({ duration: e =
|
|
32690
|
+
function Gse({ duration: e = fe.duration, bounce: t = fe.bounce, velocity: n = fe.velocity, mass: o = fe.mass }) {
|
|
32691
32691
|
let i, c;
|
|
32692
|
-
si(e <= /* @__PURE__ */ ct(
|
|
32692
|
+
si(e <= /* @__PURE__ */ ct(fe.maxDuration), "Spring duration must be 10 seconds or less", "spring-duration-limit");
|
|
32693
32693
|
let r = 1 - t;
|
|
32694
|
-
r = xt(
|
|
32694
|
+
r = xt(fe.minDamping, fe.maxDamping, r), e = xt(fe.minDuration, fe.maxDuration, /* @__PURE__ */ et(e)), r < 1 ? (i = (h) => {
|
|
32695
32695
|
const p = h * r, u = p * e, y = p - n, k = UL(h, r), g = Math.exp(-u);
|
|
32696
32696
|
return Ew - y / k * g;
|
|
32697
32697
|
}, c = (h) => {
|
|
@@ -32707,8 +32707,8 @@ function Gse({ duration: e = me.duration, bounce: t = me.bounce, velocity: n = m
|
|
|
32707
32707
|
const d = 5 / e, l = Kse(i, c, d);
|
|
32708
32708
|
if (e = /* @__PURE__ */ ct(e), isNaN(l))
|
|
32709
32709
|
return {
|
|
32710
|
-
stiffness:
|
|
32711
|
-
damping:
|
|
32710
|
+
stiffness: fe.stiffness,
|
|
32711
|
+
damping: fe.damping,
|
|
32712
32712
|
duration: e
|
|
32713
32713
|
};
|
|
32714
32714
|
{
|
|
@@ -32736,10 +32736,10 @@ function gI(e, t) {
|
|
|
32736
32736
|
}
|
|
32737
32737
|
function Jse(e) {
|
|
32738
32738
|
let t = {
|
|
32739
|
-
velocity:
|
|
32740
|
-
stiffness:
|
|
32741
|
-
damping:
|
|
32742
|
-
mass:
|
|
32739
|
+
velocity: fe.velocity,
|
|
32740
|
+
stiffness: fe.stiffness,
|
|
32741
|
+
damping: fe.damping,
|
|
32742
|
+
mass: fe.mass,
|
|
32743
32743
|
isResolvedFromDuration: !1,
|
|
32744
32744
|
...e
|
|
32745
32745
|
};
|
|
@@ -32748,7 +32748,7 @@ function Jse(e) {
|
|
|
32748
32748
|
const n = e.visualDuration, o = 2 * Math.PI / (n * 1.2), i = o * o, c = 2 * xt(0.05, 1, 1 - (e.bounce || 0)) * Math.sqrt(i);
|
|
32749
32749
|
t = {
|
|
32750
32750
|
...t,
|
|
32751
|
-
mass:
|
|
32751
|
+
mass: fe.mass,
|
|
32752
32752
|
stiffness: i,
|
|
32753
32753
|
damping: c
|
|
32754
32754
|
};
|
|
@@ -32757,12 +32757,12 @@ function Jse(e) {
|
|
|
32757
32757
|
t = {
|
|
32758
32758
|
...t,
|
|
32759
32759
|
...n,
|
|
32760
|
-
mass:
|
|
32760
|
+
mass: fe.mass
|
|
32761
32761
|
}, t.isResolvedFromDuration = !0;
|
|
32762
32762
|
}
|
|
32763
32763
|
return t;
|
|
32764
32764
|
}
|
|
32765
|
-
function uw(e =
|
|
32765
|
+
function uw(e = fe.visualDuration, t = fe.bounce) {
|
|
32766
32766
|
const n = typeof e != "object" ? {
|
|
32767
32767
|
visualDuration: e,
|
|
32768
32768
|
keyframes: [0, 1],
|
|
@@ -32773,7 +32773,7 @@ function uw(e = me.visualDuration, t = me.bounce) {
|
|
|
32773
32773
|
...n,
|
|
32774
32774
|
velocity: -/* @__PURE__ */ et(n.velocity || 0)
|
|
32775
32775
|
}), g = y || 0, m = h / (2 * Math.sqrt(l * p)), M = r - c, _ = /* @__PURE__ */ et(Math.sqrt(l / p)), f = Math.abs(M) < 5;
|
|
32776
|
-
o || (o = f ?
|
|
32776
|
+
o || (o = f ? fe.restSpeed.granular : fe.restSpeed.default), i || (i = f ? fe.restDelta.granular : fe.restDelta.default);
|
|
32777
32777
|
let w;
|
|
32778
32778
|
if (m < 1) {
|
|
32779
32779
|
const I = UL(_, m);
|
|
@@ -32885,7 +32885,7 @@ function e0e(e, t) {
|
|
|
32885
32885
|
const n = e[e.length - 1];
|
|
32886
32886
|
for (let o = 1; o <= t; o++) {
|
|
32887
32887
|
const i = /* @__PURE__ */ Oi(0, t, o);
|
|
32888
|
-
e.push(
|
|
32888
|
+
e.push(me(n, 1, i));
|
|
32889
32889
|
}
|
|
32890
32890
|
}
|
|
32891
32891
|
function t0e(e) {
|
|
@@ -33202,7 +33202,7 @@ class VC {
|
|
|
33202
33202
|
this.state = "pending", this.isAsync = !1, this.needsMeasurement = !1, this.unresolvedKeyframes = [...t], this.onComplete = n, this.name = o, this.motionValue = i, this.element = c, this.isAsync = r;
|
|
33203
33203
|
}
|
|
33204
33204
|
scheduleResolve() {
|
|
33205
|
-
this.state = "scheduled", this.isAsync ? (Do.add(this), YL || (YL = !0,
|
|
33205
|
+
this.state = "scheduled", this.isAsync ? (Do.add(this), YL || (YL = !0, ue.read(rq), ue.resolveKeyframes(cq))) : (this.readKeyframes(), this.complete());
|
|
33206
33206
|
}
|
|
33207
33207
|
readKeyframes() {
|
|
33208
33208
|
const { unresolvedKeyframes: t, name: n, element: o, motionValue: i } = this;
|
|
@@ -33848,7 +33848,7 @@ class K0e {
|
|
|
33848
33848
|
this.events[t] || (this.events[t] = new _C());
|
|
33849
33849
|
const o = this.events[t].add(n);
|
|
33850
33850
|
return t === "change" ? () => {
|
|
33851
|
-
o(),
|
|
33851
|
+
o(), ue.read(() => {
|
|
33852
33852
|
this.events.change.getSize() || this.stop();
|
|
33853
33853
|
});
|
|
33854
33854
|
} : o;
|
|
@@ -34116,9 +34116,9 @@ function cde(...e) {
|
|
|
34116
34116
|
};
|
|
34117
34117
|
}
|
|
34118
34118
|
function rde(...e) {
|
|
34119
|
-
return
|
|
34119
|
+
return Y.useCallback(cde(...e), e);
|
|
34120
34120
|
}
|
|
34121
|
-
class sde extends
|
|
34121
|
+
class sde extends Y.Component {
|
|
34122
34122
|
getSnapshotBeforeUpdate(t) {
|
|
34123
34123
|
const n = this.props.childRef.current;
|
|
34124
34124
|
if (n && t.isPresent && !this.props.isPresent) {
|
|
@@ -34143,7 +34143,7 @@ function dde({ children: e, isPresent: t, anchorX: n, root: o }) {
|
|
|
34143
34143
|
top: 0,
|
|
34144
34144
|
left: 0,
|
|
34145
34145
|
right: 0
|
|
34146
|
-
}), { nonce: d } =
|
|
34146
|
+
}), { nonce: d } = ke(vw), l = rde(c, e?.ref);
|
|
34147
34147
|
return w$(() => {
|
|
34148
34148
|
const { width: h, height: p, top: u, left: y, right: k } = r.current;
|
|
34149
34149
|
if (t || !c.current || !h || !p)
|
|
@@ -34164,11 +34164,11 @@ function dde({ children: e, isPresent: t, anchorX: n, root: o }) {
|
|
|
34164
34164
|
`), () => {
|
|
34165
34165
|
M.contains(m) && M.removeChild(m);
|
|
34166
34166
|
};
|
|
34167
|
-
}, [t]), s(sde, { isPresent: t, childRef: c, sizeRef: r, children:
|
|
34167
|
+
}, [t]), s(sde, { isPresent: t, childRef: c, sizeRef: r, children: Y.cloneElement(e, { ref: l }) });
|
|
34168
34168
|
}
|
|
34169
34169
|
const lde = ({ children: e, initial: t, isPresent: n, onExitComplete: o, custom: i, presenceAffectsLayout: c, mode: r, anchorX: d, root: l }) => {
|
|
34170
34170
|
const h = Bt(hde), p = hC();
|
|
34171
|
-
let u = !0, y =
|
|
34171
|
+
let u = !0, y = ge(() => (u = !1, {
|
|
34172
34172
|
id: p,
|
|
34173
34173
|
initial: t,
|
|
34174
34174
|
isPresent: n,
|
|
@@ -34182,9 +34182,9 @@ const lde = ({ children: e, initial: t, isPresent: n, onExitComplete: o, custom:
|
|
|
34182
34182
|
},
|
|
34183
34183
|
register: (k) => (h.set(k, !1), () => h.delete(k))
|
|
34184
34184
|
}), [n, h, o]);
|
|
34185
|
-
return c && u && (y = { ...y }),
|
|
34185
|
+
return c && u && (y = { ...y }), ge(() => {
|
|
34186
34186
|
h.forEach((k, g) => h.set(g, !1));
|
|
34187
|
-
}, [n]),
|
|
34187
|
+
}, [n]), Y.useEffect(() => {
|
|
34188
34188
|
!n && !h.size && o && o();
|
|
34189
34189
|
}, [n]), r === "popLayout" && (e = s(dde, { isPresent: n, anchorX: d, root: l, children: e })), s(gw.Provider, { value: y, children: e });
|
|
34190
34190
|
};
|
|
@@ -34192,7 +34192,7 @@ function hde() {
|
|
|
34192
34192
|
return /* @__PURE__ */ new Map();
|
|
34193
34193
|
}
|
|
34194
34194
|
function bq(e = !0) {
|
|
34195
|
-
const t =
|
|
34195
|
+
const t = ke(gw);
|
|
34196
34196
|
if (t === null)
|
|
34197
34197
|
return [!0, null];
|
|
34198
34198
|
const { isPresent: n, onExitComplete: o, register: i } = t, c = hC();
|
|
@@ -34211,7 +34211,7 @@ function zI(e) {
|
|
|
34211
34211
|
}), t;
|
|
34212
34212
|
}
|
|
34213
34213
|
const pde = ({ children: e, custom: t, initial: n = !0, onExitComplete: o, presenceAffectsLayout: i = !0, mode: c = "sync", propagate: r = !1, anchorX: d = "left", root: l }) => {
|
|
34214
|
-
const [h, p] = bq(r), u =
|
|
34214
|
+
const [h, p] = bq(r), u = ge(() => zI(e), [e]), y = r && !h ? [] : u.map(ic), k = W(!0), g = W(u), m = Bt(() => /* @__PURE__ */ new Map()), [M, _] = j(u), [f, w] = j(u);
|
|
34215
34215
|
fC(() => {
|
|
34216
34216
|
k.current = !1, g.current = u;
|
|
34217
34217
|
for (let L = 0; L < f.length; L++) {
|
|
@@ -34229,7 +34229,7 @@ const pde = ({ children: e, custom: t, initial: n = !0, onExitComplete: o, prese
|
|
|
34229
34229
|
return c === "wait" && C.length && (L = C), w(zI(L)), _(u), null;
|
|
34230
34230
|
}
|
|
34231
34231
|
process.env.NODE_ENV !== "production" && c === "wait" && f.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.`);
|
|
34232
|
-
const { forceRender: I } =
|
|
34232
|
+
const { forceRender: I } = ke(kC);
|
|
34233
34233
|
return s(Ue, { children: f.map((L) => {
|
|
34234
34234
|
const x = ic(L), b = r && !h ? !1 : u === f || y.includes(x), S = () => {
|
|
34235
34235
|
if (m.has(x))
|
|
@@ -34357,8 +34357,8 @@ function fde(e, t) {
|
|
|
34357
34357
|
return e.inherit !== !1 ? t : {};
|
|
34358
34358
|
}
|
|
34359
34359
|
function gde(e) {
|
|
34360
|
-
const { initial: t, animate: n } = fde(e,
|
|
34361
|
-
return
|
|
34360
|
+
const { initial: t, animate: n } = fde(e, ke(Mw));
|
|
34361
|
+
return ge(() => ({ initial: t, animate: n }), [PI(t), PI(n)]);
|
|
34362
34362
|
}
|
|
34363
34363
|
function PI(e) {
|
|
34364
34364
|
return Array.isArray(e) ? e.join(" ") : e;
|
|
@@ -34428,7 +34428,7 @@ function Sq(e, t, n) {
|
|
|
34428
34428
|
!Ae(t[o]) && !Nq(o, n) && (e[o] = t[o]);
|
|
34429
34429
|
}
|
|
34430
34430
|
function wde({ transformTemplate: e }, t) {
|
|
34431
|
-
return
|
|
34431
|
+
return ge(() => {
|
|
34432
34432
|
const n = FC();
|
|
34433
34433
|
return RC(n, t, e), Object.assign({}, n.vars, n.style);
|
|
34434
34434
|
}, [t]);
|
|
@@ -34478,7 +34478,7 @@ const qq = () => ({
|
|
|
34478
34478
|
attrs: {}
|
|
34479
34479
|
}), Aq = (e) => typeof e == "string" && e.toLowerCase() === "svg";
|
|
34480
34480
|
function Sde(e, t, n, o) {
|
|
34481
|
-
const i =
|
|
34481
|
+
const i = ge(() => {
|
|
34482
34482
|
const c = qq();
|
|
34483
34483
|
return $q(c, t, Aq(o), e.transformTemplate, e.style), {
|
|
34484
34484
|
...c.attrs,
|
|
@@ -34539,7 +34539,7 @@ function OC(e) {
|
|
|
34539
34539
|
);
|
|
34540
34540
|
}
|
|
34541
34541
|
function qde(e, t, n, { latestValues: o }, i, c = !1) {
|
|
34542
|
-
const d = (OC(e) ? Sde : Lde)(t, o, i, e), l = mde(t, typeof e == "string", c), h = e !== b$ ? { ...l, ...d, ref: n } : {}, { children: p } = t, u =
|
|
34542
|
+
const d = (OC(e) ? Sde : Lde)(t, o, i, e), l = mde(t, typeof e == "string", c), h = e !== b$ ? { ...l, ...d, ref: n } : {}, { children: p } = t, u = ge(() => Ae(p) ? p.get() : p, [p]);
|
|
34543
34543
|
return cz(e, {
|
|
34544
34544
|
...h,
|
|
34545
34545
|
children: u
|
|
@@ -34603,7 +34603,7 @@ function zde(e, t, n, o) {
|
|
|
34603
34603
|
return i;
|
|
34604
34604
|
}
|
|
34605
34605
|
const zq = (e) => (t, n) => {
|
|
34606
|
-
const o =
|
|
34606
|
+
const o = ke(Mw), i = ke(gw), c = () => Ade(e, t, o, i);
|
|
34607
34607
|
return n ? c() : Bt(c);
|
|
34608
34608
|
};
|
|
34609
34609
|
function UC(e, t, n) {
|
|
@@ -34646,7 +34646,7 @@ function Hde(e, t, n) {
|
|
|
34646
34646
|
}
|
|
34647
34647
|
const WC = (e) => e.replace(/([a-z])([A-Z])/gu, "$1-$2").toLowerCase(), Tde = "framerAppearId", Pq = "data-" + WC(Tde), jq = Ge({});
|
|
34648
34648
|
function Dde(e, t, n, o, i) {
|
|
34649
|
-
const { visualElement: c } =
|
|
34649
|
+
const { visualElement: c } = ke(Mw), r = ke(Lq), d = ke(gw), l = ke(vw).reducedMotion, h = W(null);
|
|
34650
34650
|
o = o || r.renderer, !h.current && o && (h.current = o(e, {
|
|
34651
34651
|
visualState: t,
|
|
34652
34652
|
parent: c,
|
|
@@ -34655,7 +34655,7 @@ function Dde(e, t, n, o, i) {
|
|
|
34655
34655
|
blockInitialAnimation: d ? d.initial === !1 : !1,
|
|
34656
34656
|
reducedMotionConfig: l
|
|
34657
34657
|
}));
|
|
34658
|
-
const p = h.current, u =
|
|
34658
|
+
const p = h.current, u = ke(jq);
|
|
34659
34659
|
p && !p.projection && i && (p.type === "html" || p.type === "svg") && Bde(h.current, n, i, u);
|
|
34660
34660
|
const y = W(!1);
|
|
34661
34661
|
w$(() => {
|
|
@@ -34701,7 +34701,7 @@ function Ww(e, { forwardMotionProps: t = !1 } = {}, n, o) {
|
|
|
34701
34701
|
function c(d, l) {
|
|
34702
34702
|
let h;
|
|
34703
34703
|
const p = {
|
|
34704
|
-
...
|
|
34704
|
+
...ke(vw),
|
|
34705
34705
|
...d,
|
|
34706
34706
|
layoutId: Rde(d)
|
|
34707
34707
|
}, { isStatic: u } = p, y = gde(d), k = i(d, u);
|
|
@@ -34717,11 +34717,11 @@ function Ww(e, { forwardMotionProps: t = !1 } = {}, n, o) {
|
|
|
34717
34717
|
return r[jde] = e, r;
|
|
34718
34718
|
}
|
|
34719
34719
|
function Rde({ layoutId: e }) {
|
|
34720
|
-
const t =
|
|
34720
|
+
const t = ke(kC).id;
|
|
34721
34721
|
return t && e !== void 0 ? t + "-" + e : e;
|
|
34722
34722
|
}
|
|
34723
34723
|
function Fde(e, t) {
|
|
34724
|
-
const n =
|
|
34724
|
+
const n = ke(Lq).strict;
|
|
34725
34725
|
if (process.env.NODE_ENV !== "production" && t && n) {
|
|
34726
34726
|
const o = "You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";
|
|
34727
34727
|
e.ignoreStrict ? si(!1, o, "lazy-strict-mode") : rt(!1, o, "lazy-strict-mode");
|
|
@@ -34819,7 +34819,7 @@ function Jo(e, t) {
|
|
|
34819
34819
|
e.min = e.min + t, e.max = e.max + t;
|
|
34820
34820
|
}
|
|
34821
34821
|
function RI(e, t, n, o, i = 0.5) {
|
|
34822
|
-
const c =
|
|
34822
|
+
const c = me(e.min, e.max, i);
|
|
34823
34823
|
nC(e, t, n, c, o);
|
|
34824
34824
|
}
|
|
34825
34825
|
function Qo(e, t) {
|
|
@@ -34898,7 +34898,7 @@ class Jde {
|
|
|
34898
34898
|
this.current && (this.triggerBuild(), this.renderInstance(this.current, this.renderState, this.props.style, this.projection));
|
|
34899
34899
|
}, this.renderScheduledAt = 0, this.scheduleRender = () => {
|
|
34900
34900
|
const y = Ee.now();
|
|
34901
|
-
this.renderScheduledAt < y && (this.renderScheduledAt = y,
|
|
34901
|
+
this.renderScheduledAt < y && (this.renderScheduledAt = y, ue.render(this.render, !1, !0));
|
|
34902
34902
|
};
|
|
34903
34903
|
const { latestValues: l, renderState: h } = r;
|
|
34904
34904
|
this.latestValues = l, this.baseTarget = { ...l }, this.initialValues = n.initial ? { ...l } : {}, this.renderState = h, this.parent = t, this.props = n, this.presenceContext = o, this.depth = t ? t.depth + 1 : 0, this.reducedMotionConfig = i, this.options = d, this.blockInitialAnimation = !!c, this.isControllingVariants = xw(n), this.isVariantNode = Iq(n), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(t && t.current);
|
|
@@ -34932,7 +34932,7 @@ class Jde {
|
|
|
34932
34932
|
const o = hi.has(t);
|
|
34933
34933
|
o && this.onBindTransform && this.onBindTransform();
|
|
34934
34934
|
const i = n.on("change", (r) => {
|
|
34935
|
-
this.latestValues[t] = r, this.props.onUpdate &&
|
|
34935
|
+
this.latestValues[t] = r, this.props.onUpdate && ue.preRender(this.notifyUpdate), o && this.projection && (this.projection.isTransformDirty = !0), this.scheduleRender();
|
|
34936
34936
|
});
|
|
34937
34937
|
let c;
|
|
34938
34938
|
window.MotionCheckAppearSync && (c = window.MotionCheckAppearSync(this, t, n)), this.valueSubscriptions.set(t, () => {
|
|
@@ -35285,7 +35285,7 @@ const GC = (e, t, n, o = {}, i, c) => (r) => {
|
|
|
35285
35285
|
if ((p.type === !1 || p.duration === 0 && !p.repeatDelay) && (eC(p), p.delay === 0 && (u = !0)), (wt.instantAnimations || wt.skipAnimations) && (u = !0, eC(p), p.delay = 0), p.allowFlatten = !d.type && !d.ease, u && !c && t.get() !== void 0) {
|
|
35286
35286
|
const y = dle(p.keyframes, d);
|
|
35287
35287
|
if (y !== void 0) {
|
|
35288
|
-
|
|
35288
|
+
ue.update(() => {
|
|
35289
35289
|
p.onUpdate(y), p.onComplete();
|
|
35290
35290
|
});
|
|
35291
35291
|
return;
|
|
@@ -35315,7 +35315,7 @@ function Gq(e, t, { delay: n = 0, transitionOverride: o, type: i } = {}) {
|
|
|
35315
35315
|
if (window.MotionHandoffAnimation) {
|
|
35316
35316
|
const _ = Wq(e);
|
|
35317
35317
|
if (_) {
|
|
35318
|
-
const f = window.MotionHandoffAnimation(_, p,
|
|
35318
|
+
const f = window.MotionHandoffAnimation(_, p, ue);
|
|
35319
35319
|
f !== null && (k.startTime = f, m = !0);
|
|
35320
35320
|
}
|
|
35321
35321
|
}
|
|
@@ -35324,7 +35324,7 @@ function Gq(e, t, { delay: n = 0, transitionOverride: o, type: i } = {}) {
|
|
|
35324
35324
|
M && l.push(M);
|
|
35325
35325
|
}
|
|
35326
35326
|
return r && Promise.all(l).then(() => {
|
|
35327
|
-
|
|
35327
|
+
ue.update(() => {
|
|
35328
35328
|
r && cle(e, r);
|
|
35329
35329
|
});
|
|
35330
35330
|
}), l;
|
|
@@ -35446,18 +35446,18 @@ function wle(e) {
|
|
|
35446
35446
|
const R = A[z], F = q[z];
|
|
35447
35447
|
if (k.hasOwnProperty(z))
|
|
35448
35448
|
continue;
|
|
35449
|
-
let
|
|
35450
|
-
iC(R) && iC(F) ?
|
|
35449
|
+
let B = !1;
|
|
35450
|
+
iC(R) && iC(F) ? B = !Kq(R, F) : B = R !== F, B ? R != null ? T(z) : y.add(z) : R !== void 0 && y.has(z) ? T(z) : f.protectedKeys[z] = !0;
|
|
35451
35451
|
}
|
|
35452
35452
|
f.prevProp = w, f.prevResolvedValues = A, f.isActive && (k = { ...k, ...A }), o && e.blockInitialAnimation && (b = !1);
|
|
35453
|
-
const
|
|
35454
|
-
b && (!
|
|
35453
|
+
const P = L && x;
|
|
35454
|
+
b && (!P || S) && u.push(...$.map((z) => {
|
|
35455
35455
|
const R = { type: _ };
|
|
35456
|
-
if (typeof z == "string" && o && !
|
|
35457
|
-
const { parent: F } = e,
|
|
35458
|
-
if (F.enteringChildren &&
|
|
35459
|
-
const { delayChildren:
|
|
35460
|
-
R.delay = Zq(F.enteringChildren, e,
|
|
35456
|
+
if (typeof z == "string" && o && !P && e.manuallyAnimateOnMount && e.parent) {
|
|
35457
|
+
const { parent: F } = e, B = ii(F, z);
|
|
35458
|
+
if (F.enteringChildren && B) {
|
|
35459
|
+
const { delayChildren: K } = B.transition || {};
|
|
35460
|
+
R.delay = Zq(F.enteringChildren, e, K);
|
|
35461
35461
|
}
|
|
35462
35462
|
}
|
|
35463
35463
|
return {
|
|
@@ -35609,7 +35609,7 @@ function Vle(e, t, n) {
|
|
|
35609
35609
|
return Math.abs(e - t) <= n;
|
|
35610
35610
|
}
|
|
35611
35611
|
function WI(e, t, n, o = 0.5) {
|
|
35612
|
-
e.origin = o, e.originPoint =
|
|
35612
|
+
e.origin = o, e.originPoint = me(t.min, t.max, e.origin), e.scale = Be(n) / Be(t), e.translate = me(n.min, n.max, e.origin) - e.originPoint, (e.scale >= $le && e.scale <= qle || isNaN(e.scale)) && (e.scale = 1), (e.translate >= Ale && e.translate <= zle || isNaN(e.translate)) && (e.translate = 0);
|
|
35613
35613
|
}
|
|
35614
35614
|
function Bi(e, t, n, o) {
|
|
35615
35615
|
WI(e.x, t.x, n.x, o ? o.originX : void 0), WI(e.y, t.y, n.y, o ? o.originY : void 0);
|
|
@@ -35647,7 +35647,7 @@ class eA {
|
|
|
35647
35647
|
const { onStart: _, onMove: f } = this.handlers;
|
|
35648
35648
|
k || (_ && _(this.lastMoveEvent, y), this.startEvent = this.lastMoveEvent), f && f(this.lastMoveEvent, y);
|
|
35649
35649
|
}, this.handlePointerMove = (y, k) => {
|
|
35650
|
-
this.lastMoveEvent = y, this.lastMoveEventInfo = Zw(k, this.transformPagePoint),
|
|
35650
|
+
this.lastMoveEvent = y, this.lastMoveEventInfo = Zw(k, this.transformPagePoint), ue.update(this.updatePoint, !0);
|
|
35651
35651
|
}, this.handlePointerUp = (y, k) => {
|
|
35652
35652
|
this.end();
|
|
35653
35653
|
const { onEnd: g, onSessionEnd: m, resumeAnimation: M } = this.handlers;
|
|
@@ -35709,7 +35709,7 @@ function Tle(e, t) {
|
|
|
35709
35709
|
return r.x === 1 / 0 && (r.x = 0), r.y === 1 / 0 && (r.y = 0), r;
|
|
35710
35710
|
}
|
|
35711
35711
|
function Dle(e, { min: t, max: n }, o) {
|
|
35712
|
-
return t !== void 0 && e < t ? e = o ?
|
|
35712
|
+
return t !== void 0 && e < t ? e = o ? me(t, e, o.min) : Math.max(e, t) : n !== void 0 && e > n && (e = o ? me(n, e, o.max) : Math.min(e, n)), e;
|
|
35713
35713
|
}
|
|
35714
35714
|
function YI(e, t, n) {
|
|
35715
35715
|
return {
|
|
@@ -35784,7 +35784,7 @@ class Wle {
|
|
|
35784
35784
|
}
|
|
35785
35785
|
}
|
|
35786
35786
|
this.originPoint[_] = f;
|
|
35787
|
-
}), m &&
|
|
35787
|
+
}), m && ue.postRender(() => m(u, y)), cC(this.visualElement, "transform");
|
|
35788
35788
|
const { animationState: M } = this.visualElement;
|
|
35789
35789
|
M && M.setActive("whileDrag", !0);
|
|
35790
35790
|
}, d = (u, y) => {
|
|
@@ -35824,7 +35824,7 @@ class Wle {
|
|
|
35824
35824
|
const { velocity: r } = i;
|
|
35825
35825
|
this.startAnimation(r);
|
|
35826
35826
|
const { onDragEnd: d } = this.getProps();
|
|
35827
|
-
d &&
|
|
35827
|
+
d && ue.postRender(() => d(o, i));
|
|
35828
35828
|
}
|
|
35829
35829
|
/**
|
|
35830
35830
|
* @internal
|
|
@@ -35919,7 +35919,7 @@ class Wle {
|
|
|
35919
35919
|
const { projection: i } = this.visualElement, c = this.getAxisMotionValue(n);
|
|
35920
35920
|
if (i && i.layout) {
|
|
35921
35921
|
const { min: r, max: d } = i.layout.layoutBox[n];
|
|
35922
|
-
c.set(t[n] -
|
|
35922
|
+
c.set(t[n] - me(r, d, 0.5));
|
|
35923
35923
|
}
|
|
35924
35924
|
});
|
|
35925
35925
|
}
|
|
@@ -35948,7 +35948,7 @@ class Wle {
|
|
|
35948
35948
|
if (!cc(r, t, null))
|
|
35949
35949
|
return;
|
|
35950
35950
|
const d = this.getAxisMotionValue(r), { min: l, max: h } = this.constraints[r];
|
|
35951
|
-
d.set(
|
|
35951
|
+
d.set(me(l, h, i[r]));
|
|
35952
35952
|
});
|
|
35953
35953
|
}
|
|
35954
35954
|
addListeners() {
|
|
@@ -35962,7 +35962,7 @@ class Wle {
|
|
|
35962
35962
|
const { dragConstraints: l } = this.getProps();
|
|
35963
35963
|
Yo(l) && l.current && (this.constraints = this.resolveRefConstraints());
|
|
35964
35964
|
}, { projection: i } = this.visualElement, c = i.addEventListener("measure", o);
|
|
35965
|
-
i && !i.layout && (i.root && i.root.updateScroll(), i.updateLayout()),
|
|
35965
|
+
i && !i.layout && (i.root && i.root.updateScroll(), i.updateLayout()), ue.read(o);
|
|
35966
35966
|
const r = Zi(window, "resize", () => this.scalePositionWithinConstraints()), d = i.addEventListener("didUpdate", ({ delta: l, hasLayoutChanged: h }) => {
|
|
35967
35967
|
this.isDragging && h && (Je((p) => {
|
|
35968
35968
|
const u = this.getAxisMotionValue(p);
|
|
@@ -36006,7 +36006,7 @@ class Zle extends Rt {
|
|
|
36006
36006
|
}
|
|
36007
36007
|
}
|
|
36008
36008
|
const tN = (e) => (t, n) => {
|
|
36009
|
-
e &&
|
|
36009
|
+
e && ue.postRender(() => e(t, n));
|
|
36010
36010
|
};
|
|
36011
36011
|
class Kle extends Rt {
|
|
36012
36012
|
constructor() {
|
|
@@ -36025,7 +36025,7 @@ class Kle extends Rt {
|
|
|
36025
36025
|
onStart: tN(n),
|
|
36026
36026
|
onMove: o,
|
|
36027
36027
|
onEnd: (c, r) => {
|
|
36028
|
-
delete this.session, i &&
|
|
36028
|
+
delete this.session, i && ue.postRender(() => i(c, r));
|
|
36029
36029
|
}
|
|
36030
36030
|
};
|
|
36031
36031
|
}
|
|
@@ -36073,7 +36073,7 @@ const mi = {
|
|
|
36073
36073
|
return o;
|
|
36074
36074
|
const c = Dt.createTransformer(e), r = typeof i[0] != "number" ? 1 : 0, d = n.x.scale * t.x, l = n.y.scale * t.y;
|
|
36075
36075
|
i[0 + r] /= d, i[1 + r] /= l;
|
|
36076
|
-
const h =
|
|
36076
|
+
const h = me(d, l, 0.5);
|
|
36077
36077
|
return typeof i[2 + r] == "number" && (i[2 + r] /= h), typeof i[3 + r] == "number" && (i[3 + r] /= h), c(i);
|
|
36078
36078
|
}
|
|
36079
36079
|
};
|
|
@@ -36095,7 +36095,7 @@ class Yle extends rz {
|
|
|
36095
36095
|
}
|
|
36096
36096
|
getSnapshotBeforeUpdate(t) {
|
|
36097
36097
|
const { layoutDependency: n, visualElement: o, drag: i, isPresent: c } = this.props, { projection: r } = o;
|
|
36098
|
-
return r && (r.isPresent = c, Xw = !0, i || t.layoutDependency !== n || n === void 0 || t.isPresent !== c ? r.willUpdate() : this.safeToRemove(), t.isPresent !== c && (c ? r.promote() : r.relegate() ||
|
|
36098
|
+
return r && (r.isPresent = c, Xw = !0, i || t.layoutDependency !== n || n === void 0 || t.isPresent !== c ? r.willUpdate() : this.safeToRemove(), t.isPresent !== c && (c ? r.promote() : r.relegate() || ue.postRender(() => {
|
|
36099
36099
|
const d = r.getStack();
|
|
36100
36100
|
(!d || !d.members.length) && this.safeToRemove();
|
|
36101
36101
|
}))), null;
|
|
@@ -36119,8 +36119,8 @@ class Yle extends rz {
|
|
|
36119
36119
|
}
|
|
36120
36120
|
}
|
|
36121
36121
|
function aA(e) {
|
|
36122
|
-
const [t, n] = bq(), o =
|
|
36123
|
-
return s(Yle, { ...e, layoutGroup: o, switchLayoutGroup:
|
|
36122
|
+
const [t, n] = bq(), o = ke(kC);
|
|
36123
|
+
return s(Yle, { ...e, layoutGroup: o, switchLayoutGroup: ke(jq), isPresent: t, safeToRemove: n });
|
|
36124
36124
|
}
|
|
36125
36125
|
const Jle = {
|
|
36126
36126
|
borderRadius: {
|
|
@@ -36162,19 +36162,19 @@ function ahe(e, t) {
|
|
|
36162
36162
|
const c = i - n;
|
|
36163
36163
|
c >= t && (bt(o), e(c - t));
|
|
36164
36164
|
};
|
|
36165
|
-
return
|
|
36165
|
+
return ue.setup(o, !0), () => bt(o);
|
|
36166
36166
|
}
|
|
36167
36167
|
const nA = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], nhe = nA.length, nN = (e) => typeof e == "string" ? parseFloat(e) : e, oN = (e) => typeof e == "number" || G.test(e);
|
|
36168
36168
|
function ohe(e, t, n, o, i, c) {
|
|
36169
|
-
i ? (e.opacity =
|
|
36169
|
+
i ? (e.opacity = me(0, n.opacity ?? 1, ihe(o)), e.opacityExit = me(t.opacity ?? 1, 0, che(o))) : c && (e.opacity = me(t.opacity ?? 1, n.opacity ?? 1, o));
|
|
36170
36170
|
for (let r = 0; r < nhe; r++) {
|
|
36171
36171
|
const d = `border${nA[r]}Radius`;
|
|
36172
36172
|
let l = iN(t, d), h = iN(n, d);
|
|
36173
36173
|
if (l === void 0 && h === void 0)
|
|
36174
36174
|
continue;
|
|
36175
|
-
l || (l = 0), h || (h = 0), l === 0 || h === 0 || oN(l) === oN(h) ? (e[d] = Math.max(
|
|
36175
|
+
l || (l = 0), h || (h = 0), l === 0 || h === 0 || oN(l) === oN(h) ? (e[d] = Math.max(me(nN(l), nN(h), o), 0), (mt.test(h) || mt.test(l)) && (e[d] += "%")) : e[d] = h;
|
|
36176
36176
|
}
|
|
36177
|
-
(t.rotate || n.rotate) && (e.rotate =
|
|
36177
|
+
(t.rotate || n.rotate) && (e.rotate = me(t.rotate || 0, n.rotate || 0, o));
|
|
36178
36178
|
}
|
|
36179
36179
|
function iN(e, t) {
|
|
36180
36180
|
return e[t] !== void 0 ? e[t] : e.borderRadius;
|
|
@@ -36196,9 +36196,9 @@ function sN(e, t, n, o, i) {
|
|
|
36196
36196
|
return e -= t, e = kw(e, 1 / n, o), i !== void 0 && (e = kw(e, 1 / i, o)), e;
|
|
36197
36197
|
}
|
|
36198
36198
|
function rhe(e, t = 0, n = 1, o = 0.5, i, c = e, r = e) {
|
|
36199
|
-
if (mt.test(t) && (t = parseFloat(t), t =
|
|
36199
|
+
if (mt.test(t) && (t = parseFloat(t), t = me(r.min, r.max, t / 100) - r.min), typeof t != "number")
|
|
36200
36200
|
return;
|
|
36201
|
-
let d =
|
|
36201
|
+
let d = me(c.min, c.max, o);
|
|
36202
36202
|
e === c && (d -= t), e.min = sN(e.min, t, n, d, i), e.max = sN(e.max, t, n, d, i);
|
|
36203
36203
|
}
|
|
36204
36204
|
function dN(e, t, [n, o, i], c, r) {
|
|
@@ -36311,7 +36311,7 @@ function rA(e) {
|
|
|
36311
36311
|
const n = Wq(t);
|
|
36312
36312
|
if (window.MotionHasOptimisedAnimation(n, "transform")) {
|
|
36313
36313
|
const { layout: i, layoutId: c } = e.options;
|
|
36314
|
-
window.MotionCancelOptimisedAnimation(n, "transform",
|
|
36314
|
+
window.MotionCancelOptimisedAnimation(n, "transform", ue, !(i || c));
|
|
36315
36315
|
}
|
|
36316
36316
|
const { parent: o } = e;
|
|
36317
36317
|
o && !o.hasCheckedOptimisedAppear && rA(o);
|
|
@@ -36349,7 +36349,7 @@ function sA({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
36349
36349
|
if (h && !h.current && h.mount(r), this.root.nodes.add(this), this.parent && this.parent.children.add(this), this.root.hasTreeAnimated && (l || d) && (this.isLayoutDirty = !0), e) {
|
|
36350
36350
|
let p, u = 0;
|
|
36351
36351
|
const y = () => this.root.updateBlockedByResize = !1;
|
|
36352
|
-
|
|
36352
|
+
ue.read(() => {
|
|
36353
36353
|
u = window.innerWidth;
|
|
36354
36354
|
}), e(r, () => {
|
|
36355
36355
|
const k = window.innerWidth;
|
|
@@ -36439,10 +36439,10 @@ function sA({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
36439
36439
|
this.nodes.forEach(vhe), this.sharedNodes.forEach(bhe);
|
|
36440
36440
|
}
|
|
36441
36441
|
scheduleUpdateProjection() {
|
|
36442
|
-
this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0,
|
|
36442
|
+
this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0, ue.preRender(this.updateProjection, !1, !0));
|
|
36443
36443
|
}
|
|
36444
36444
|
scheduleCheckAfterUnmount() {
|
|
36445
|
-
|
|
36445
|
+
ue.postRender(() => {
|
|
36446
36446
|
this.isLayoutDirty ? this.root.didUpdate() : this.root.checkUpdateFailed();
|
|
36447
36447
|
});
|
|
36448
36448
|
}
|
|
@@ -36627,7 +36627,7 @@ function sA({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
36627
36627
|
}, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
|
|
36628
36628
|
}
|
|
36629
36629
|
startAnimation(r) {
|
|
36630
|
-
this.notifyListeners("animationStart"), this.currentAnimation?.stop(), this.resumingFrom?.currentAnimation?.stop(), this.pendingAnimation && (bt(this.pendingAnimation), this.pendingAnimation = void 0), this.pendingAnimation =
|
|
36630
|
+
this.notifyListeners("animationStart"), this.currentAnimation?.stop(), this.resumingFrom?.currentAnimation?.stop(), this.pendingAnimation && (bt(this.pendingAnimation), this.pendingAnimation = void 0), this.pendingAnimation = ue.update(() => {
|
|
36631
36631
|
lw.hasAnimatedSinceResize = !0, this.motionValue || (this.motionValue = Bo(0)), this.currentAnimation = Qle(this.motionValue, [0, 1e3], {
|
|
36632
36632
|
...r,
|
|
36633
36633
|
velocity: 0,
|
|
@@ -36842,10 +36842,10 @@ function bhe(e) {
|
|
|
36842
36842
|
e.removeLeadSnapshot();
|
|
36843
36843
|
}
|
|
36844
36844
|
function vN(e, t, n) {
|
|
36845
|
-
e.translate =
|
|
36845
|
+
e.translate = me(t.translate, 0, n), e.scale = me(t.scale, 1, n), e.origin = t.origin, e.originPoint = t.originPoint;
|
|
36846
36846
|
}
|
|
36847
36847
|
function MN(e, t, n, o) {
|
|
36848
|
-
e.min =
|
|
36848
|
+
e.min = me(t.min, n.min, o), e.max = me(t.max, n.max, o);
|
|
36849
36849
|
}
|
|
36850
36850
|
function Lhe(e, t, n, o) {
|
|
36851
36851
|
MN(e.x, t.x, n.x, o), MN(e.y, t.y, n.y, o);
|
|
@@ -36908,7 +36908,7 @@ function bN(e, t, n) {
|
|
|
36908
36908
|
const { props: o } = e;
|
|
36909
36909
|
e.animationState && o.whileHover && e.animationState.setActive("whileHover", n === "Start");
|
|
36910
36910
|
const i = "onHover" + n, c = o[i];
|
|
36911
|
-
c &&
|
|
36911
|
+
c && ue.postRender(() => c(t, Qi(t)));
|
|
36912
36912
|
}
|
|
36913
36913
|
class Ahe extends Rt {
|
|
36914
36914
|
mount() {
|
|
@@ -36946,7 +36946,7 @@ function LN(e, t, n) {
|
|
|
36946
36946
|
return;
|
|
36947
36947
|
e.animationState && o.whileTap && e.animationState.setActive("whileTap", n === "Start");
|
|
36948
36948
|
const i = "onTap" + (n === "End" ? "" : n), c = o[i];
|
|
36949
|
-
c &&
|
|
36949
|
+
c && ue.postRender(() => c(t, Qi(t)));
|
|
36950
36950
|
}
|
|
36951
36951
|
class Vhe extends Rt {
|
|
36952
36952
|
mount() {
|
|
@@ -37038,7 +37038,7 @@ const Fhe = {
|
|
|
37038
37038
|
...Ohe
|
|
37039
37039
|
}, ZC = /* @__PURE__ */ Ede(Ehe, nle);
|
|
37040
37040
|
function hA(e) {
|
|
37041
|
-
const t = Bt(() => Bo(e)), { isStatic: n } =
|
|
37041
|
+
const t = Bt(() => Bo(e)), { isStatic: n } = ke(vw);
|
|
37042
37042
|
if (n) {
|
|
37043
37043
|
const [, o] = j(e);
|
|
37044
37044
|
O(() => t.on("change", o), []);
|
|
@@ -37048,7 +37048,7 @@ function hA(e) {
|
|
|
37048
37048
|
function pA(e, t) {
|
|
37049
37049
|
const n = hA(t()), o = () => n.set(t());
|
|
37050
37050
|
return o(), fC(() => {
|
|
37051
|
-
const i = () =>
|
|
37051
|
+
const i = () => ue.preRender(o, !1, !0), c = e.map((r) => r.on("change", i));
|
|
37052
37052
|
return () => {
|
|
37053
37053
|
c.forEach((r) => r()), bt(o);
|
|
37054
37054
|
};
|
|
@@ -37150,7 +37150,7 @@ function Xhe(e, t, n, o) {
|
|
|
37150
37150
|
const c = o > 0 ? 1 : -1, r = e[i + c];
|
|
37151
37151
|
if (!r)
|
|
37152
37152
|
return e;
|
|
37153
|
-
const d = e[i], l = r.layout, h =
|
|
37153
|
+
const d = e[i], l = r.layout, h = me(l.min, l.max, 0.5);
|
|
37154
37154
|
return c === 1 && d.layout.max + n > h || c === -1 && d.layout.min + n < h ? dse(e, i, i + c) : e;
|
|
37155
37155
|
}
|
|
37156
37156
|
function Yhe({ children: e, as: t = "ul", axis: n = "y", onReorder: o, values: i, ...c }, r) {
|
|
@@ -37184,7 +37184,7 @@ function IN(e, t = 0) {
|
|
|
37184
37184
|
return Ae(e) ? e : hA(t);
|
|
37185
37185
|
}
|
|
37186
37186
|
function tpe({ children: e, style: t = {}, value: n, as: o = "li", onDrag: i, layout: c = !0, ...r }, d) {
|
|
37187
|
-
const l = Bt(() => ZC[o]), h =
|
|
37187
|
+
const l = Bt(() => ZC[o]), h = ke(uA), p = {
|
|
37188
37188
|
x: IN(t.x),
|
|
37189
37189
|
y: IN(t.y)
|
|
37190
37190
|
}, u = Whe([p.x, p.y], ([m, M]) => m || M ? 1 : "unset");
|
|
@@ -37417,7 +37417,7 @@ function ppe(e, t) {
|
|
|
37417
37417
|
}
|
|
37418
37418
|
return { isValid: o, errors: n };
|
|
37419
37419
|
}
|
|
37420
|
-
const upe = "_formContainer_14ads_1", ype = "_headerLine_14ads_17", kpe = "_formTitle_14ads_25", mpe = "_formDescription_14ads_30", fpe = "_sectionTitle_14ads_37", gpe = "_sectionHelp_14ads_44", vpe = "_fieldHelp_14ads_50", Mpe = "_gridContainer_14ads_58", _pe = "_fieldGridItem_14ads_70", xpe = "_sectionFull_14ads_105", wpe = "_formFooter_14ads_110", bpe = "_footerLeft_14ads_118", Lpe = "_footerRight_14ads_119", Cpe = "_cancelLink_14ads_125", Ipe = "_submitButton_14ads_136", Npe = "_fieldLabel_14ads_148", Spe = "_inputWrapper_14ads_163", $pe = "_inputInner_14ads_187", qpe = "_hasPrefix_14ads_196", Ape = "_inputBase_14ads_196", zpe = "_iconPrefix_14ads_292", Vpe = "_iconSuffix_14ads_293", Ppe = "_passwordToggle_14ads_319", jpe = "_fieldError_14ads_365", Hpe = "_fieldInvalid_14ads_372",
|
|
37420
|
+
const upe = "_formContainer_14ads_1", ype = "_headerLine_14ads_17", kpe = "_formTitle_14ads_25", mpe = "_formDescription_14ads_30", fpe = "_sectionTitle_14ads_37", gpe = "_sectionHelp_14ads_44", vpe = "_fieldHelp_14ads_50", Mpe = "_gridContainer_14ads_58", _pe = "_fieldGridItem_14ads_70", xpe = "_sectionFull_14ads_105", wpe = "_formFooter_14ads_110", bpe = "_footerLeft_14ads_118", Lpe = "_footerRight_14ads_119", Cpe = "_cancelLink_14ads_125", Ipe = "_submitButton_14ads_136", Npe = "_fieldLabel_14ads_148", Spe = "_inputWrapper_14ads_163", $pe = "_inputInner_14ads_187", qpe = "_hasPrefix_14ads_196", Ape = "_inputBase_14ads_196", zpe = "_iconPrefix_14ads_292", Vpe = "_iconSuffix_14ads_293", Ppe = "_passwordToggle_14ads_319", jpe = "_fieldError_14ads_365", Hpe = "_fieldInvalid_14ads_372", pe = {
|
|
37421
37421
|
formContainer: upe,
|
|
37422
37422
|
headerLine: ype,
|
|
37423
37423
|
formTitle: kpe,
|
|
@@ -37455,11 +37455,11 @@ const upe = "_formContainer_14ads_1", ype = "_headerLine_14ads_17", kpe = "_form
|
|
|
37455
37455
|
(e.attributes?.icon ? _t[e.attributes.icon] : null), y = e.attributes?.iconPosition ?? "suffix", k = (g) => {
|
|
37456
37456
|
n(g.target.value);
|
|
37457
37457
|
};
|
|
37458
|
-
return /* @__PURE__ */ v("div", { className:
|
|
37458
|
+
return /* @__PURE__ */ v("div", { className: pe.inputWrapper, children: [
|
|
37459
37459
|
/* @__PURE__ */ s(
|
|
37460
37460
|
"label",
|
|
37461
37461
|
{
|
|
37462
|
-
className: `${
|
|
37462
|
+
className: `${pe.fieldLabel} ${e.required ? "required" : ""}`,
|
|
37463
37463
|
htmlFor: e.name,
|
|
37464
37464
|
children: e.label
|
|
37465
37465
|
}
|
|
@@ -37467,9 +37467,9 @@ const upe = "_formContainer_14ads_1", ype = "_headerLine_14ads_17", kpe = "_form
|
|
|
37467
37467
|
/* @__PURE__ */ v(
|
|
37468
37468
|
"div",
|
|
37469
37469
|
{
|
|
37470
|
-
className: `${
|
|
37470
|
+
className: `${pe.inputInner} ${u && y === "prefix" ? pe.hasPrefix : ""}`,
|
|
37471
37471
|
children: [
|
|
37472
|
-
u && y === "prefix" && /* @__PURE__ */ s("span", { className:
|
|
37472
|
+
u && y === "prefix" && /* @__PURE__ */ s("span", { className: pe.iconPrefix, children: /* @__PURE__ */ s(u, { size: 16 }) }),
|
|
37473
37473
|
/* @__PURE__ */ s(
|
|
37474
37474
|
"input",
|
|
37475
37475
|
{
|
|
@@ -37477,7 +37477,7 @@ const upe = "_formContainer_14ads_1", ype = "_headerLine_14ads_17", kpe = "_form
|
|
|
37477
37477
|
name: e.name,
|
|
37478
37478
|
type: p,
|
|
37479
37479
|
placeholder: e.placeholder,
|
|
37480
|
-
className: `${
|
|
37480
|
+
className: `${pe.inputBase} ${i ? pe.fieldInvalid : ""}`,
|
|
37481
37481
|
value: t ?? "",
|
|
37482
37482
|
onChange: k,
|
|
37483
37483
|
onBlur: o,
|
|
@@ -37491,16 +37491,16 @@ const upe = "_formContainer_14ads_1", ype = "_headerLine_14ads_17", kpe = "_form
|
|
|
37491
37491
|
{
|
|
37492
37492
|
type: "button",
|
|
37493
37493
|
"aria-label": r ? "Masquer le mot de passe" : "Afficher le mot de passe",
|
|
37494
|
-
className:
|
|
37494
|
+
className: pe.passwordToggle,
|
|
37495
37495
|
onClick: () => d((g) => !g),
|
|
37496
37496
|
children: r ? /* @__PURE__ */ s(Si, { size: 16 }) : /* @__PURE__ */ s($i, { size: 16 })
|
|
37497
37497
|
}
|
|
37498
37498
|
),
|
|
37499
|
-
u && y === "suffix" && !l && /* @__PURE__ */ s("span", { className:
|
|
37499
|
+
u && y === "suffix" && !l && /* @__PURE__ */ s("span", { className: pe.iconSuffix, children: /* @__PURE__ */ s(u, { size: 16 }) })
|
|
37500
37500
|
]
|
|
37501
37501
|
}
|
|
37502
37502
|
),
|
|
37503
|
-
c && i && /* @__PURE__ */ s("span", { className:
|
|
37503
|
+
c && i && /* @__PURE__ */ s("span", { className: pe.fieldError, children: i })
|
|
37504
37504
|
] });
|
|
37505
37505
|
}, Dpe = "_fieldGroup_yb3zi_7", Bpe = "_fieldLabel_yb3zi_11", Rpe = "_required_yb3zi_17", Fpe = "_fieldInput_yb3zi_22", Ope = "_fieldInvalid_yb3zi_40", Epe = "_fieldValid_yb3zi_44", Upe = "_fieldError_yb3zi_48", Wpe = "_radioGroup_yb3zi_57", jt = {
|
|
37506
37506
|
fieldGroup: Dpe,
|
|
@@ -38658,9 +38658,9 @@ function _ye() {
|
|
|
38658
38658
|
var T = S & r;
|
|
38659
38659
|
if (H || (H = c), L.size != x.size && !T)
|
|
38660
38660
|
return !1;
|
|
38661
|
-
var
|
|
38662
|
-
if (
|
|
38663
|
-
return
|
|
38661
|
+
var P = q.get(L);
|
|
38662
|
+
if (P)
|
|
38663
|
+
return P == x;
|
|
38664
38664
|
S |= d, q.set(L, x);
|
|
38665
38665
|
var N = o(H(L), H(x), S, $, A, q);
|
|
38666
38666
|
return q.delete(L), N;
|
|
@@ -39056,8 +39056,8 @@ function Kye() {
|
|
|
39056
39056
|
if (!(_ & l)) {
|
|
39057
39057
|
var q = S && k.call(m, "__wrapped__"), H = $ && k.call(M, "__wrapped__");
|
|
39058
39058
|
if (q || H) {
|
|
39059
|
-
var T = q ? m.value() : m,
|
|
39060
|
-
return C || (C = new e()), w(T,
|
|
39059
|
+
var T = q ? m.value() : m, P = H ? M.value() : M;
|
|
39060
|
+
return C || (C = new e()), w(T, P, _, f, C);
|
|
39061
39061
|
}
|
|
39062
39062
|
}
|
|
39063
39063
|
return A ? (C || (C = new e()), o(m, M, _, f, w, C)) : !1;
|
|
@@ -39150,24 +39150,24 @@ const Qye = /* @__PURE__ */ lz(Jye), Sve = ({
|
|
|
39150
39150
|
i && _t[i] || // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
39151
39151
|
e.submitIcon && _t[e.submitIcon] || null
|
|
39152
39152
|
), x = e.columns && e.columns > 0 ? Math.floor(e.columns) : 12;
|
|
39153
|
-
return /* @__PURE__ */ v("div", { className:
|
|
39154
|
-
/* @__PURE__ */ s("div", { className:
|
|
39155
|
-
e.description && /* @__PURE__ */ s("p", { className:
|
|
39156
|
-
u.__global && /* @__PURE__ */ s("div", { className: `alert alert-danger ${
|
|
39153
|
+
return /* @__PURE__ */ v("div", { className: pe.formContainer, children: [
|
|
39154
|
+
/* @__PURE__ */ s("div", { className: pe.headerLine, children: /* @__PURE__ */ s("h2", { className: pe.formTitle, children: e.title }) }),
|
|
39155
|
+
e.description && /* @__PURE__ */ s("p", { className: pe.formDescription, children: e.description }),
|
|
39156
|
+
u.__global && /* @__PURE__ */ s("div", { className: `alert alert-danger ${pe.globalError}`, children: u.__global }),
|
|
39157
39157
|
/* @__PURE__ */ v("form", { onSubmit: C, children: [
|
|
39158
39158
|
/* @__PURE__ */ s(
|
|
39159
39159
|
"div",
|
|
39160
39160
|
{
|
|
39161
|
-
className:
|
|
39161
|
+
className: pe.gridContainer,
|
|
39162
39162
|
style: { gridTemplateColumns: `repeat(${x}, minmax(0, 1fr))` },
|
|
39163
39163
|
children: e.fields.map((b) => {
|
|
39164
39164
|
if (b.type === "section")
|
|
39165
|
-
return /* @__PURE__ */ v("div", { className:
|
|
39166
|
-
/* @__PURE__ */ s("h5", { className:
|
|
39167
|
-
b.help && /* @__PURE__ */ s("p", { className:
|
|
39165
|
+
return /* @__PURE__ */ v("div", { className: pe.sectionFull, children: [
|
|
39166
|
+
/* @__PURE__ */ s("h5", { className: pe.sectionTitle, children: b.label }),
|
|
39167
|
+
b.help && /* @__PURE__ */ s("p", { className: pe.sectionHelp, children: b.help })
|
|
39168
39168
|
] }, b.name);
|
|
39169
39169
|
const $ = { gridColumn: `span ${Math.max(1, Math.min(x, b.gridCol ?? x))}` };
|
|
39170
|
-
return /* @__PURE__ */ v("div", { className:
|
|
39170
|
+
return /* @__PURE__ */ v("div", { className: pe.fieldGridItem, style: $, children: [
|
|
39171
39171
|
/* @__PURE__ */ s(
|
|
39172
39172
|
Hue,
|
|
39173
39173
|
{
|
|
@@ -39179,24 +39179,24 @@ const Qye = /* @__PURE__ */ lz(Jye), Sve = ({
|
|
|
39179
39179
|
touched: k[b.name]
|
|
39180
39180
|
}
|
|
39181
39181
|
),
|
|
39182
|
-
b.help && /* @__PURE__ */ s("small", { className:
|
|
39182
|
+
b.help && /* @__PURE__ */ s("small", { className: pe.fieldHelp, children: b.help })
|
|
39183
39183
|
] }, b.name);
|
|
39184
39184
|
})
|
|
39185
39185
|
}
|
|
39186
39186
|
),
|
|
39187
|
-
/* @__PURE__ */ v("div", { className:
|
|
39188
|
-
/* @__PURE__ */ s("div", { className:
|
|
39187
|
+
/* @__PURE__ */ v("div", { className: pe.formFooter, children: [
|
|
39188
|
+
/* @__PURE__ */ s("div", { className: pe.footerLeft, children: r && /* @__PURE__ */ v("button", { type: "button", className: pe.cancelLink, onClick: r, children: [
|
|
39189
39189
|
I && /* @__PURE__ */ s(I, { size: 16, className: "me-2" }),
|
|
39190
39190
|
" ",
|
|
39191
39191
|
d
|
|
39192
39192
|
] }) }),
|
|
39193
|
-
/* @__PURE__ */ s("div", { className:
|
|
39193
|
+
/* @__PURE__ */ s("div", { className: pe.footerRight, children: /* @__PURE__ */ s(
|
|
39194
39194
|
TL,
|
|
39195
39195
|
{
|
|
39196
39196
|
type: "submit",
|
|
39197
39197
|
variant: "primary",
|
|
39198
39198
|
size: "md",
|
|
39199
|
-
className:
|
|
39199
|
+
className: pe.submitButton,
|
|
39200
39200
|
disabled: m,
|
|
39201
39201
|
children: m ? /* @__PURE__ */ v(Ue, { children: [
|
|
39202
39202
|
/* @__PURE__ */ s("span", { className: "spinner-border spinner-border-sm me-2", role: "status" }),
|
|
@@ -39220,7 +39220,7 @@ function $ve(e) {
|
|
|
39220
39220
|
submitText: e._submitText || "Valider"
|
|
39221
39221
|
};
|
|
39222
39222
|
}
|
|
39223
|
-
const e4e = "_container_1gljv_85", t4e = "_tableWrapper_1gljv_111", a4e = "_tableControls_1gljv_117", n4e = "_controlsRight_1gljv_128", o4e = "_limitedRows_1gljv_151", i4e = "_table_1gljv_111", c4e = "_headerCell_1gljv_206", r4e = "_headerContent_1gljv_220", s4e = "_headerWords_1gljv_229", d4e = "_headerWord_1gljv_229", l4e = "_cellContent_1gljv_276", h4e = "_alignLeft_1gljv_286", p4e = "_alignCenter_1gljv_290", u4e = "_alignRight_1gljv_294", y4e = "_tableCell_1gljv_298", k4e = "_tableRow_1gljv_308", m4e = "_emptyRow_1gljv_385", f4e = "_toggleFiltersButton_1gljv_393", g4e = "_toggleSortButton_1gljv_394", v4e = "_buttonTextCompact_1gljv_415", M4e = "_uppercaseSmall_1gljv_450", _4e = "_filtersPanel_1gljv_463", x4e = "_filtersPanelInline_1gljv_481", w4e = "_filtersPanelHorizontal_1gljv_492", b4e = "_filtersRow_1gljv_492", L4e = "_filtersActionsHorizontal_1gljv_525", C4e = "_filterItemInline_1gljv_542", I4e = "_filterLabel_1gljv_571", N4e = "_filterInput_1gljv_576", S4e = "_filterSelect_1gljv_577", $4e = "_operatorSelect_1gljv_578", q4e = "_operatorInput_1gljv_579", A4e = "_activeFilterTag_1gljv_597", z4e = "_actionsGroup_1gljv_609", V4e = "_applyButton_1gljv_615", P4e = "_cancelButton_1gljv_625", j4e = "_columnSorterContainer_1gljv_649", H4e = "_sorterControls_1gljv_654", T4e = "_sortDropdownWrapper_1gljv_659", D4e = "_sortDropdown_1gljv_659", B4e = "_sortDropdownHeader_1gljv_679", R4e = "_closeButton_1gljv_688", F4e = "_sortDropdownContent_1gljv_703", O4e = "_sortDropdownItem_1gljv_709", E4e = "_sortDirectionButtons_1gljv_734", U4e = "_sortDirectionButton_1gljv_734", W4e = "_activeSort_1gljv_757", G4e = "_sortActions_1gljv_764", Z4e = "_paginationButton_1gljv_842", K4e = "_pageSizeSelect_1gljv_844", X4e = "_topPagination_1gljv_853", Y4e = "_paginationContainer_1gljv_861", J4e = "_leftGroup_1gljv_874", Q4e = "_pageSizeControls_1gljv_882", e5e = "_paginationInfo_1gljv_908", t5e = "_paginationControls_1gljv_916", a5e = "_disabledButton_1gljv_947", n5e = "_activeButton_1gljv_952", o5e = "_navigationButton_1gljv_962", i5e = "_operatorFilterContainer_1gljv_1010", c5e = "_rangeSeparator_1gljv_1016", r5e = "_activeFiltersSection_1gljv_1179", s5e = "_activeFiltersRow_1gljv_1184", d5e = "_activeFiltersList_1gljv_1192", l5e = "_clearAllButton_1gljv_1200", h5e = "_removeFilterButton_1gljv_1221", p5e = "_sortIndicator_1gljv_1272", u5e = "_active_1gljv_349", y5e = "_clearSortButton_1gljv_1371", k5e = "_loaderSpinner_1gljv_2743", m5e = "_loaderSpinnerSmall_1gljv_2755", f5e = "_paginationLoading_1gljv_2772", g5e = "_loadingButton_1gljv_2780", v5e = "_loadingIndicator_1gljv_2791",
|
|
39223
|
+
const e4e = "_container_1gljv_85", t4e = "_tableWrapper_1gljv_111", a4e = "_tableControls_1gljv_117", n4e = "_controlsRight_1gljv_128", o4e = "_limitedRows_1gljv_151", i4e = "_table_1gljv_111", c4e = "_headerCell_1gljv_206", r4e = "_headerContent_1gljv_220", s4e = "_headerWords_1gljv_229", d4e = "_headerWord_1gljv_229", l4e = "_cellContent_1gljv_276", h4e = "_alignLeft_1gljv_286", p4e = "_alignCenter_1gljv_290", u4e = "_alignRight_1gljv_294", y4e = "_tableCell_1gljv_298", k4e = "_tableRow_1gljv_308", m4e = "_emptyRow_1gljv_385", f4e = "_toggleFiltersButton_1gljv_393", g4e = "_toggleSortButton_1gljv_394", v4e = "_buttonTextCompact_1gljv_415", M4e = "_uppercaseSmall_1gljv_450", _4e = "_filtersPanel_1gljv_463", x4e = "_filtersPanelInline_1gljv_481", w4e = "_filtersPanelHorizontal_1gljv_492", b4e = "_filtersRow_1gljv_492", L4e = "_filtersActionsHorizontal_1gljv_525", C4e = "_filterItemInline_1gljv_542", I4e = "_filterLabel_1gljv_571", N4e = "_filterInput_1gljv_576", S4e = "_filterSelect_1gljv_577", $4e = "_operatorSelect_1gljv_578", q4e = "_operatorInput_1gljv_579", A4e = "_activeFilterTag_1gljv_597", z4e = "_actionsGroup_1gljv_609", V4e = "_applyButton_1gljv_615", P4e = "_cancelButton_1gljv_625", j4e = "_columnSorterContainer_1gljv_649", H4e = "_sorterControls_1gljv_654", T4e = "_sortDropdownWrapper_1gljv_659", D4e = "_sortDropdown_1gljv_659", B4e = "_sortDropdownHeader_1gljv_679", R4e = "_closeButton_1gljv_688", F4e = "_sortDropdownContent_1gljv_703", O4e = "_sortDropdownItem_1gljv_709", E4e = "_sortDirectionButtons_1gljv_734", U4e = "_sortDirectionButton_1gljv_734", W4e = "_activeSort_1gljv_757", G4e = "_sortActions_1gljv_764", Z4e = "_paginationButton_1gljv_842", K4e = "_pageSizeSelect_1gljv_844", X4e = "_topPagination_1gljv_853", Y4e = "_paginationContainer_1gljv_861", J4e = "_leftGroup_1gljv_874", Q4e = "_pageSizeControls_1gljv_882", e5e = "_paginationInfo_1gljv_908", t5e = "_paginationControls_1gljv_916", a5e = "_disabledButton_1gljv_947", n5e = "_activeButton_1gljv_952", o5e = "_navigationButton_1gljv_962", i5e = "_operatorFilterContainer_1gljv_1010", c5e = "_rangeSeparator_1gljv_1016", r5e = "_activeFiltersSection_1gljv_1179", s5e = "_activeFiltersRow_1gljv_1184", d5e = "_activeFiltersList_1gljv_1192", l5e = "_clearAllButton_1gljv_1200", h5e = "_removeFilterButton_1gljv_1221", p5e = "_sortIndicator_1gljv_1272", u5e = "_active_1gljv_349", y5e = "_clearSortButton_1gljv_1371", k5e = "_loaderSpinner_1gljv_2743", m5e = "_loaderSpinnerSmall_1gljv_2755", f5e = "_paginationLoading_1gljv_2772", g5e = "_loadingButton_1gljv_2780", v5e = "_loadingIndicator_1gljv_2791", V = {
|
|
39224
39224
|
container: e4e,
|
|
39225
39225
|
tableWrapper: t4e,
|
|
39226
39226
|
tableControls: a4e,
|
|
@@ -39301,7 +39301,7 @@ const e4e = "_container_1gljv_85", t4e = "_tableWrapper_1gljv_111", a4e = "_tabl
|
|
|
39301
39301
|
value: t === "" ? "" : String(t),
|
|
39302
39302
|
onChange: (i) => n(i.target.value === "" ? "" : i.target.value === "true"),
|
|
39303
39303
|
disabled: o,
|
|
39304
|
-
className:
|
|
39304
|
+
className: V.filterSelect,
|
|
39305
39305
|
children: [
|
|
39306
39306
|
/* @__PURE__ */ s("option", { value: "", children: `Filtrer ${e.label}...` }),
|
|
39307
39307
|
/* @__PURE__ */ s("option", { value: "true", children: "Oui" }),
|
|
@@ -39316,7 +39316,7 @@ const e4e = "_container_1gljv_85", t4e = "_tableWrapper_1gljv_111", a4e = "_tabl
|
|
|
39316
39316
|
onChange: (i) => n(i.target.value),
|
|
39317
39317
|
placeholder: `Filtrer ${e.label}...`,
|
|
39318
39318
|
disabled: o,
|
|
39319
|
-
className:
|
|
39319
|
+
className: V.filterInput
|
|
39320
39320
|
}
|
|
39321
39321
|
), x5e = ({
|
|
39322
39322
|
config: e,
|
|
@@ -39349,7 +39349,7 @@ const e4e = "_container_1gljv_85", t4e = "_tableWrapper_1gljv_111", a4e = "_tabl
|
|
|
39349
39349
|
value: t.map(String),
|
|
39350
39350
|
onChange: r,
|
|
39351
39351
|
disabled: o,
|
|
39352
|
-
className:
|
|
39352
|
+
className: V.filterMultiSelect,
|
|
39353
39353
|
children: i.map((d, l) => /* @__PURE__ */ s("option", { value: String(d.value), children: d.label }, l))
|
|
39354
39354
|
}
|
|
39355
39355
|
);
|
|
@@ -39366,7 +39366,7 @@ const e4e = "_container_1gljv_85", t4e = "_tableWrapper_1gljv_111", a4e = "_tabl
|
|
|
39366
39366
|
},
|
|
39367
39367
|
placeholder: e.placeholder || `Filtrer ${e.label}...`,
|
|
39368
39368
|
disabled: o,
|
|
39369
|
-
className:
|
|
39369
|
+
className: V.filterInput
|
|
39370
39370
|
}
|
|
39371
39371
|
);
|
|
39372
39372
|
}, w5e = ({
|
|
@@ -39402,7 +39402,7 @@ const e4e = "_container_1gljv_85", t4e = "_tableWrapper_1gljv_111", a4e = "_tabl
|
|
|
39402
39402
|
value: String(t || ""),
|
|
39403
39403
|
onChange: l,
|
|
39404
39404
|
disabled: o,
|
|
39405
|
-
className:
|
|
39405
|
+
className: V.filterInput,
|
|
39406
39406
|
children: [
|
|
39407
39407
|
/* @__PURE__ */ s("option", { value: "", children: "Select..." }),
|
|
39408
39408
|
i.map((h) => /* @__PURE__ */ s("option", { value: h.value, children: h.label }, h.value))
|
|
@@ -39424,7 +39424,7 @@ const e4e = "_container_1gljv_85", t4e = "_tableWrapper_1gljv_111", a4e = "_tabl
|
|
|
39424
39424
|
},
|
|
39425
39425
|
placeholder: e.placeholder || `Filtrer ${e.label}...`,
|
|
39426
39426
|
disabled: o,
|
|
39427
|
-
className:
|
|
39427
|
+
className: V.filterInput
|
|
39428
39428
|
}
|
|
39429
39429
|
);
|
|
39430
39430
|
}, L5e = ({
|
|
@@ -39442,14 +39442,14 @@ const e4e = "_container_1gljv_85", t4e = "_tableWrapper_1gljv_111", a4e = "_tabl
|
|
|
39442
39442
|
}, h = (p) => {
|
|
39443
39443
|
d(p.target.value);
|
|
39444
39444
|
};
|
|
39445
|
-
return /* @__PURE__ */ v("div", { className:
|
|
39445
|
+
return /* @__PURE__ */ v("div", { className: V.operatorFilterContainer, children: [
|
|
39446
39446
|
/* @__PURE__ */ v(
|
|
39447
39447
|
"select",
|
|
39448
39448
|
{
|
|
39449
39449
|
value: i,
|
|
39450
39450
|
onChange: l,
|
|
39451
39451
|
disabled: o,
|
|
39452
|
-
className:
|
|
39452
|
+
className: V.operatorSelect,
|
|
39453
39453
|
children: [
|
|
39454
39454
|
/* @__PURE__ */ s("option", { value: "", children: "Sélectionner un opérateur" }),
|
|
39455
39455
|
e.operators.map((p) => /* @__PURE__ */ s("option", { value: String(p.value), children: p.label }, String(p.value)))
|
|
@@ -39464,7 +39464,7 @@ const e4e = "_container_1gljv_85", t4e = "_tableWrapper_1gljv_111", a4e = "_tabl
|
|
|
39464
39464
|
onChange: h,
|
|
39465
39465
|
placeholder: "Valeur",
|
|
39466
39466
|
disabled: o || !i,
|
|
39467
|
-
className:
|
|
39467
|
+
className: V.operatorInput
|
|
39468
39468
|
}
|
|
39469
39469
|
)
|
|
39470
39470
|
] });
|
|
@@ -39474,7 +39474,7 @@ const e4e = "_container_1gljv_85", t4e = "_tableWrapper_1gljv_111", a4e = "_tabl
|
|
|
39474
39474
|
}, c = (r) => {
|
|
39475
39475
|
t({ ...o, end: r.target.value });
|
|
39476
39476
|
};
|
|
39477
|
-
return /* @__PURE__ */ v("div", { className:
|
|
39477
|
+
return /* @__PURE__ */ v("div", { className: V.dateRangeContainer, children: [
|
|
39478
39478
|
/* @__PURE__ */ s(
|
|
39479
39479
|
"input",
|
|
39480
39480
|
{
|
|
@@ -39482,10 +39482,10 @@ const e4e = "_container_1gljv_85", t4e = "_tableWrapper_1gljv_111", a4e = "_tabl
|
|
|
39482
39482
|
value: o.start || "",
|
|
39483
39483
|
onChange: i,
|
|
39484
39484
|
disabled: n,
|
|
39485
|
-
className:
|
|
39485
|
+
className: V.filterInput
|
|
39486
39486
|
}
|
|
39487
39487
|
),
|
|
39488
|
-
/* @__PURE__ */ s("span", { className:
|
|
39488
|
+
/* @__PURE__ */ s("span", { className: V.rangeSeparator, children: "→" }),
|
|
39489
39489
|
/* @__PURE__ */ s(
|
|
39490
39490
|
"input",
|
|
39491
39491
|
{
|
|
@@ -39493,7 +39493,7 @@ const e4e = "_container_1gljv_85", t4e = "_tableWrapper_1gljv_111", a4e = "_tabl
|
|
|
39493
39493
|
value: o.end || "",
|
|
39494
39494
|
onChange: c,
|
|
39495
39495
|
disabled: n,
|
|
39496
|
-
className:
|
|
39496
|
+
className: V.filterInput
|
|
39497
39497
|
}
|
|
39498
39498
|
)
|
|
39499
39499
|
] });
|
|
@@ -39730,7 +39730,7 @@ const e4e = "_container_1gljv_85", t4e = "_tableWrapper_1gljv_111", a4e = "_tabl
|
|
|
39730
39730
|
}
|
|
39731
39731
|
};
|
|
39732
39732
|
function $5e(e, t, n = "", o = { key: null, direction: "asc" }, i = 1, c = 10, r = []) {
|
|
39733
|
-
const d = Math.max(1, c), l = (n || "").trim().toLowerCase(), h =
|
|
39733
|
+
const d = Math.max(1, c), l = (n || "").trim().toLowerCase(), h = ge(() => {
|
|
39734
39734
|
let m = e;
|
|
39735
39735
|
return l && (m = m.filter(
|
|
39736
39736
|
(M) => t.some((_) => {
|
|
@@ -39745,7 +39745,7 @@ function $5e(e, t, n = "", o = { key: null, direction: "asc" }, i = 1, c = 10, r
|
|
|
39745
39745
|
return console.error("Error applying filter:", f), !1;
|
|
39746
39746
|
}
|
|
39747
39747
|
}))), m;
|
|
39748
|
-
}, [e, t, l, r]), p =
|
|
39748
|
+
}, [e, t, l, r]), p = ge(() => {
|
|
39749
39749
|
if (!o?.key) return h;
|
|
39750
39750
|
const m = o.key;
|
|
39751
39751
|
return [...h].sort((M, _) => {
|
|
@@ -39867,57 +39867,57 @@ const q5e = ({ value: e }) => e, A5e = ({ value: e }) => te.createElement(
|
|
|
39867
39867
|
}), b = W(null), S = W(null);
|
|
39868
39868
|
O(() => {
|
|
39869
39869
|
if (f && b.current) {
|
|
39870
|
-
const
|
|
39871
|
-
h?.(
|
|
39870
|
+
const P = b.current.getBoundingClientRect().height;
|
|
39871
|
+
h?.(P);
|
|
39872
39872
|
} else
|
|
39873
39873
|
h?.(0);
|
|
39874
39874
|
}, [f, e, C, h]);
|
|
39875
39875
|
const $ = () => {
|
|
39876
|
-
typeof r == "boolean" ? d?.(!r) : _((
|
|
39877
|
-
const N = !
|
|
39876
|
+
typeof r == "boolean" ? d?.(!r) : _((P) => {
|
|
39877
|
+
const N = !P;
|
|
39878
39878
|
return d?.(N), N;
|
|
39879
39879
|
});
|
|
39880
|
-
}, A = () => e.map((
|
|
39881
|
-
const N = C?.[
|
|
39882
|
-
return N == null || typeof N == "string" && N.trim() === "" ? null : { id:
|
|
39880
|
+
}, A = () => e.map((P) => {
|
|
39881
|
+
const N = C?.[P.id];
|
|
39882
|
+
return N == null || typeof N == "string" && N.trim() === "" ? null : { id: P.id, label: P.label, value: N };
|
|
39883
39883
|
}).filter(Boolean), q = async () => {
|
|
39884
|
-
let
|
|
39884
|
+
let P;
|
|
39885
39885
|
try {
|
|
39886
|
-
|
|
39886
|
+
P = await L();
|
|
39887
39887
|
} catch {
|
|
39888
|
-
|
|
39888
|
+
P = void 0;
|
|
39889
39889
|
}
|
|
39890
39890
|
let N = [];
|
|
39891
|
-
|
|
39891
|
+
P && Array.isArray(P) && P.length > 0 ? N = P : w && w.length > 0 ? N = w : N = A(), n?.(N), o?.(N);
|
|
39892
39892
|
}, H = () => {
|
|
39893
39893
|
d?.(!1), typeof r != "boolean" && _(!1);
|
|
39894
39894
|
}, T = () => {
|
|
39895
39895
|
x(), n?.([]), o?.([]);
|
|
39896
39896
|
};
|
|
39897
39897
|
return O(() => {
|
|
39898
|
-
const
|
|
39898
|
+
const P = (z) => {
|
|
39899
39899
|
f && S.current && (S.current.contains(z.target) || (d?.(!1), typeof r != "boolean" && _(!1)));
|
|
39900
39900
|
}, N = (z) => {
|
|
39901
39901
|
z.key === "Escape" && f && (d?.(!1), typeof r != "boolean" && _(!1));
|
|
39902
39902
|
};
|
|
39903
|
-
return f && (document.addEventListener("pointerdown",
|
|
39904
|
-
document.removeEventListener("pointerdown",
|
|
39903
|
+
return f && (document.addEventListener("pointerdown", P), document.addEventListener("keydown", N)), () => {
|
|
39904
|
+
document.removeEventListener("pointerdown", P), document.removeEventListener("keydown", N);
|
|
39905
39905
|
};
|
|
39906
|
-
}, [f, r, d]), /* @__PURE__ */ v("div", { className:
|
|
39906
|
+
}, [f, r, d]), /* @__PURE__ */ v("div", { className: V.advancedFiltersContainer, ref: S, children: [
|
|
39907
39907
|
/* @__PURE__ */ v(
|
|
39908
39908
|
"button",
|
|
39909
39909
|
{
|
|
39910
|
-
className: `${
|
|
39910
|
+
className: `${V.toggleFiltersButton} ${w.length > 0 ? V.active : ""} ${f ? V.toggleFiltersButtonOpen : ""} ${m ? V.loadingButton : ""}`,
|
|
39911
39911
|
onClick: $,
|
|
39912
39912
|
"aria-expanded": f,
|
|
39913
39913
|
"aria-controls": "advanced-filters-panel",
|
|
39914
39914
|
type: "button",
|
|
39915
39915
|
disabled: m,
|
|
39916
39916
|
children: [
|
|
39917
|
-
m ? /* @__PURE__ */ s("span", { className:
|
|
39918
|
-
/* @__PURE__ */ s("span", { className:
|
|
39919
|
-
w.length > 0 && !m && /* @__PURE__ */ s("span", { className:
|
|
39920
|
-
m && /* @__PURE__ */ s("span", { className:
|
|
39917
|
+
m ? /* @__PURE__ */ s("span", { className: V.loaderSpinnerSmall }) : /* @__PURE__ */ s(zt, { size: 14 }),
|
|
39918
|
+
/* @__PURE__ */ s("span", { className: V.buttonTextCompact, children: p }),
|
|
39919
|
+
w.length > 0 && !m && /* @__PURE__ */ s("span", { className: V.filterCountBadge, "aria-hidden": !0, children: w.length }),
|
|
39920
|
+
m && /* @__PURE__ */ s("span", { className: V.loadingIndicator, "aria-hidden": !0, children: "Chargement..." })
|
|
39921
39921
|
]
|
|
39922
39922
|
}
|
|
39923
39923
|
),
|
|
@@ -39926,52 +39926,52 @@ const q5e = ({ value: e }) => e, A5e = ({ value: e }) => te.createElement(
|
|
|
39926
39926
|
{
|
|
39927
39927
|
id: "advanced-filters-panel",
|
|
39928
39928
|
ref: b,
|
|
39929
|
-
className: `${
|
|
39929
|
+
className: `${V.filtersPanel} ${l === "top" ? `${V.filtersPanelInline} ${V.filtersPanelHorizontal}` : ""}`,
|
|
39930
39930
|
role: "region",
|
|
39931
39931
|
"aria-label": "Panneau de filtres avancés",
|
|
39932
39932
|
children: [
|
|
39933
|
-
/* @__PURE__ */ s("div", { className:
|
|
39934
|
-
/* @__PURE__ */ v("label", { className:
|
|
39935
|
-
|
|
39936
|
-
|
|
39933
|
+
/* @__PURE__ */ s("div", { className: V.filtersRow, children: e.map((P) => /* @__PURE__ */ v("div", { className: `${V.filterItem} ${V.filterItemInline}`, children: [
|
|
39934
|
+
/* @__PURE__ */ v("label", { className: V.filterLabel, children: [
|
|
39935
|
+
P.label,
|
|
39936
|
+
P.required && /* @__PURE__ */ s("span", { className: V.required, children: "*" })
|
|
39937
39937
|
] }),
|
|
39938
39938
|
/* @__PURE__ */ s(
|
|
39939
39939
|
I5e,
|
|
39940
39940
|
{
|
|
39941
|
-
config:
|
|
39942
|
-
value: C[
|
|
39943
|
-
onChange: (N) => I(
|
|
39944
|
-
disabled:
|
|
39941
|
+
config: P,
|
|
39942
|
+
value: C[P.id],
|
|
39943
|
+
onChange: (N) => I(P.id, N),
|
|
39944
|
+
disabled: P.disabled
|
|
39945
39945
|
}
|
|
39946
39946
|
)
|
|
39947
|
-
] },
|
|
39948
|
-
/* @__PURE__ */ v("div", { className:
|
|
39949
|
-
/* @__PURE__ */ s("div", { className:
|
|
39950
|
-
/* @__PURE__ */ s("span", { className:
|
|
39951
|
-
/* @__PURE__ */ s("div", { className:
|
|
39952
|
-
|
|
39947
|
+
] }, P.id)) }),
|
|
39948
|
+
/* @__PURE__ */ v("div", { className: V.filtersActionsHorizontal, children: [
|
|
39949
|
+
/* @__PURE__ */ s("div", { className: V.activeFiltersSection, children: w.length > 0 && /* @__PURE__ */ v("div", { className: V.activeFiltersRow, children: [
|
|
39950
|
+
/* @__PURE__ */ s("span", { className: V.activeLabelCompact, children: "Actifs :" }),
|
|
39951
|
+
/* @__PURE__ */ s("div", { className: V.activeFiltersList, children: w.map((P) => /* @__PURE__ */ v("div", { className: V.activeFilterTag, children: [
|
|
39952
|
+
P.label ?? P.id,
|
|
39953
39953
|
/* @__PURE__ */ s(
|
|
39954
39954
|
"button",
|
|
39955
39955
|
{
|
|
39956
|
-
className:
|
|
39957
|
-
onClick: () => I(
|
|
39958
|
-
"aria-label": `Supprimer ${
|
|
39956
|
+
className: V.removeFilterButton,
|
|
39957
|
+
onClick: () => I(P.id, void 0),
|
|
39958
|
+
"aria-label": `Supprimer ${P.id}`,
|
|
39959
39959
|
type: "button",
|
|
39960
39960
|
children: "×"
|
|
39961
39961
|
}
|
|
39962
39962
|
)
|
|
39963
|
-
] },
|
|
39964
|
-
/* @__PURE__ */ v("button", { className:
|
|
39963
|
+
] }, P.id)) }),
|
|
39964
|
+
/* @__PURE__ */ v("button", { className: V.clearAllButton, onClick: T, type: "button", children: [
|
|
39965
39965
|
/* @__PURE__ */ s(it, { size: 12 }),
|
|
39966
39966
|
" ",
|
|
39967
39967
|
k
|
|
39968
39968
|
] })
|
|
39969
39969
|
] }) }),
|
|
39970
|
-
/* @__PURE__ */ v("div", { className:
|
|
39970
|
+
/* @__PURE__ */ v("div", { className: V.actionsGroup, children: [
|
|
39971
39971
|
/* @__PURE__ */ s(
|
|
39972
39972
|
"button",
|
|
39973
39973
|
{
|
|
39974
|
-
className:
|
|
39974
|
+
className: V.cancelButton,
|
|
39975
39975
|
onClick: H,
|
|
39976
39976
|
type: "button",
|
|
39977
39977
|
disabled: m,
|
|
@@ -39981,13 +39981,13 @@ const q5e = ({ value: e }) => e, A5e = ({ value: e }) => te.createElement(
|
|
|
39981
39981
|
/* @__PURE__ */ s(
|
|
39982
39982
|
"button",
|
|
39983
39983
|
{
|
|
39984
|
-
className: `${
|
|
39984
|
+
className: `${V.applyButton} ${m ? V.loadingButton : ""}`,
|
|
39985
39985
|
onClick: q,
|
|
39986
39986
|
type: "button",
|
|
39987
39987
|
disabled: g || m,
|
|
39988
39988
|
"aria-disabled": g || m,
|
|
39989
39989
|
children: m ? /* @__PURE__ */ v(Ue, { children: [
|
|
39990
|
-
/* @__PURE__ */ s("span", { className:
|
|
39990
|
+
/* @__PURE__ */ s("span", { className: V.loaderSpinnerSmall }),
|
|
39991
39991
|
/* @__PURE__ */ s("span", { children: "Chargement..." })
|
|
39992
39992
|
] }) : u
|
|
39993
39993
|
}
|
|
@@ -40034,36 +40034,36 @@ const q5e = ({ value: e }) => e, A5e = ({ value: e }) => te.createElement(
|
|
|
40034
40034
|
return c ? g.style.overflow = "hidden" : g.style.overflow = m, () => {
|
|
40035
40035
|
g.style.overflow = m;
|
|
40036
40036
|
};
|
|
40037
|
-
}, [c]), /* @__PURE__ */ s("div", { className:
|
|
40037
|
+
}, [c]), /* @__PURE__ */ s("div", { className: V.columnSorterContainer, ref: l, children: /* @__PURE__ */ s("div", { className: V.sorterControls, children: d.length > 0 && /* @__PURE__ */ v("div", { className: V.sortDropdownWrapper, ref: l, children: [
|
|
40038
40038
|
/* @__PURE__ */ v(
|
|
40039
40039
|
"button",
|
|
40040
40040
|
{
|
|
40041
|
-
className: `${
|
|
40041
|
+
className: `${V.toggleSortButton} ${c ? V.toggleSortButtonOpen : ""} ${h ? V.active : ""} ${i ? V.loadingButton : ""}`,
|
|
40042
40042
|
onClick: y,
|
|
40043
40043
|
"aria-expanded": c,
|
|
40044
40044
|
"aria-haspopup": "true",
|
|
40045
40045
|
type: "button",
|
|
40046
40046
|
disabled: i,
|
|
40047
40047
|
children: [
|
|
40048
|
-
i ? /* @__PURE__ */ s("span", { className:
|
|
40048
|
+
i ? /* @__PURE__ */ s("span", { className: V.loaderSpinnerSmall }) : /* @__PURE__ */ s(ti, { size: 14 }),
|
|
40049
40049
|
/* @__PURE__ */ s(
|
|
40050
40050
|
"span",
|
|
40051
40051
|
{
|
|
40052
|
-
className: `${
|
|
40052
|
+
className: `${V.buttonTextCompact} ${h$(o) ? V.uppercaseSmall : ""}`,
|
|
40053
40053
|
children: o
|
|
40054
40054
|
}
|
|
40055
40055
|
),
|
|
40056
|
-
h && !i && /* @__PURE__ */ s("div", { className:
|
|
40056
|
+
h && !i && /* @__PURE__ */ s("div", { className: V.sortIndicator, children: t?.direction === "asc" ? /* @__PURE__ */ s(Ho, { size: 12 }) : /* @__PURE__ */ s(Ht, { size: 12 }) })
|
|
40057
40057
|
]
|
|
40058
40058
|
}
|
|
40059
40059
|
),
|
|
40060
|
-
c && /* @__PURE__ */ v("div", { className: `${
|
|
40061
|
-
/* @__PURE__ */ v("div", { className:
|
|
40060
|
+
c && /* @__PURE__ */ v("div", { className: `${V.sortDropdown} ${V.sortDropdownInline}`, role: "menu", children: [
|
|
40061
|
+
/* @__PURE__ */ v("div", { className: V.sortDropdownHeader, children: [
|
|
40062
40062
|
/* @__PURE__ */ s("span", { children: "Trier par:" }),
|
|
40063
40063
|
/* @__PURE__ */ s(
|
|
40064
40064
|
"button",
|
|
40065
40065
|
{
|
|
40066
|
-
className:
|
|
40066
|
+
className: V.closeButton,
|
|
40067
40067
|
onClick: k,
|
|
40068
40068
|
"aria-label": "Fermer",
|
|
40069
40069
|
type: "button",
|
|
@@ -40071,12 +40071,12 @@ const q5e = ({ value: e }) => e, A5e = ({ value: e }) => te.createElement(
|
|
|
40071
40071
|
}
|
|
40072
40072
|
)
|
|
40073
40073
|
] }),
|
|
40074
|
-
/* @__PURE__ */ s("div", { className:
|
|
40074
|
+
/* @__PURE__ */ s("div", { className: V.sortDropdownContent, children: d.map((g) => {
|
|
40075
40075
|
const m = String(g.label ?? g.id), M = h$(m);
|
|
40076
40076
|
return /* @__PURE__ */ v(
|
|
40077
40077
|
"div",
|
|
40078
40078
|
{
|
|
40079
|
-
className:
|
|
40079
|
+
className: V.sortDropdownItem,
|
|
40080
40080
|
role: "menuitem",
|
|
40081
40081
|
tabIndex: 0,
|
|
40082
40082
|
onKeyDown: (_) => {
|
|
@@ -40086,17 +40086,17 @@ const q5e = ({ value: e }) => e, A5e = ({ value: e }) => te.createElement(
|
|
|
40086
40086
|
/* @__PURE__ */ s(
|
|
40087
40087
|
"span",
|
|
40088
40088
|
{
|
|
40089
|
-
className: `${
|
|
40089
|
+
className: `${V.columnSorterLabel} ${M ? V.uppercaseSmall : ""}`,
|
|
40090
40090
|
title: m,
|
|
40091
40091
|
"aria-label": m,
|
|
40092
40092
|
children: m
|
|
40093
40093
|
}
|
|
40094
40094
|
),
|
|
40095
|
-
/* @__PURE__ */ v("div", { className:
|
|
40095
|
+
/* @__PURE__ */ v("div", { className: V.sortDirectionButtons, children: [
|
|
40096
40096
|
/* @__PURE__ */ s(
|
|
40097
40097
|
"button",
|
|
40098
40098
|
{
|
|
40099
|
-
className: `${
|
|
40099
|
+
className: `${V.sortDirectionButton} ${t?.key === g.id && t?.direction === "asc" ? V.activeSort : ""}`,
|
|
40100
40100
|
onClick: () => p(g.id, "asc"),
|
|
40101
40101
|
title: "Trier par ordre croissant",
|
|
40102
40102
|
type: "button",
|
|
@@ -40106,7 +40106,7 @@ const q5e = ({ value: e }) => e, A5e = ({ value: e }) => te.createElement(
|
|
|
40106
40106
|
/* @__PURE__ */ s(
|
|
40107
40107
|
"button",
|
|
40108
40108
|
{
|
|
40109
|
-
className: `${
|
|
40109
|
+
className: `${V.sortDirectionButton} ${t?.key === g.id && t?.direction === "desc" ? V.activeSort : ""}`,
|
|
40110
40110
|
onClick: () => p(g.id, "desc"),
|
|
40111
40111
|
title: "Trier par ordre décroissant",
|
|
40112
40112
|
type: "button",
|
|
@@ -40119,10 +40119,10 @@ const q5e = ({ value: e }) => e, A5e = ({ value: e }) => te.createElement(
|
|
|
40119
40119
|
g.id
|
|
40120
40120
|
);
|
|
40121
40121
|
}) }),
|
|
40122
|
-
h && /* @__PURE__ */ s("div", { className:
|
|
40122
|
+
h && /* @__PURE__ */ s("div", { className: V.sortActions, children: /* @__PURE__ */ v(
|
|
40123
40123
|
"button",
|
|
40124
40124
|
{
|
|
40125
|
-
className:
|
|
40125
|
+
className: V.clearSortButton,
|
|
40126
40126
|
onClick: u,
|
|
40127
40127
|
type: "button",
|
|
40128
40128
|
children: [
|
|
@@ -40157,31 +40157,31 @@ const q5e = ({ value: e }) => e, A5e = ({ value: e }) => te.createElement(
|
|
|
40157
40157
|
for (let w = _; w <= f; w++) m.push(w);
|
|
40158
40158
|
return m;
|
|
40159
40159
|
};
|
|
40160
|
-
return /* @__PURE__ */ v("div", { className:
|
|
40161
|
-
/* @__PURE__ */ s("div", { className:
|
|
40160
|
+
return /* @__PURE__ */ v("div", { className: V.paginationContainer, role: "navigation", "aria-label": "Pagination", children: [
|
|
40161
|
+
/* @__PURE__ */ s("div", { className: V.leftGroup, children: r && /* @__PURE__ */ s("div", { className: V.pageSizeControls, children: /* @__PURE__ */ s(
|
|
40162
40162
|
"select",
|
|
40163
40163
|
{
|
|
40164
40164
|
value: n,
|
|
40165
40165
|
onChange: (m) => r(Number(m.target.value)),
|
|
40166
|
-
className:
|
|
40166
|
+
className: V.pageSizeSelect,
|
|
40167
40167
|
"aria-label": "Taille de page",
|
|
40168
40168
|
disabled: d,
|
|
40169
40169
|
children: [10, 20, 30].map((m) => /* @__PURE__ */ s("option", { value: m, children: m }, m))
|
|
40170
40170
|
}
|
|
40171
40171
|
) }) }),
|
|
40172
|
-
/* @__PURE__ */ s("div", { className:
|
|
40173
|
-
/* @__PURE__ */ s("span", { className:
|
|
40172
|
+
/* @__PURE__ */ s("div", { className: V.paginationInfo, "aria-live": "polite", children: d ? /* @__PURE__ */ v("span", { className: V.paginationLoading, children: [
|
|
40173
|
+
/* @__PURE__ */ s("span", { className: V.loaderSpinner }),
|
|
40174
40174
|
/* @__PURE__ */ s("span", { children: "Chargement..." })
|
|
40175
40175
|
] }) : `${y}-${k} ${i}` }),
|
|
40176
|
-
/* @__PURE__ */ v("div", { className:
|
|
40176
|
+
/* @__PURE__ */ v("div", { className: V.paginationControls, children: [
|
|
40177
40177
|
/* @__PURE__ */ s(
|
|
40178
40178
|
"button",
|
|
40179
40179
|
{
|
|
40180
40180
|
onClick: p,
|
|
40181
40181
|
disabled: h === 1 || d,
|
|
40182
|
-
className: `${
|
|
40182
|
+
className: `${V.paginationButton} ${V.navigationButton} ${h === 1 ? V.disabledButton : ""} ${d ? V.loadingButton : ""}`,
|
|
40183
40183
|
"aria-label": "Page précédente",
|
|
40184
|
-
children: d && h > 1 ? /* @__PURE__ */ s("span", { className:
|
|
40184
|
+
children: d && h > 1 ? /* @__PURE__ */ s("span", { className: V.loaderSpinnerSmall }) : "«"
|
|
40185
40185
|
}
|
|
40186
40186
|
),
|
|
40187
40187
|
g().map((m) => /* @__PURE__ */ s(
|
|
@@ -40190,8 +40190,8 @@ const q5e = ({ value: e }) => e, A5e = ({ value: e }) => te.createElement(
|
|
|
40190
40190
|
onClick: () => c(m),
|
|
40191
40191
|
disabled: d,
|
|
40192
40192
|
"aria-current": h === m ? "page" : void 0,
|
|
40193
|
-
className: `${
|
|
40194
|
-
children: d && h === m ? /* @__PURE__ */ s("span", { className:
|
|
40193
|
+
className: `${V.paginationButton} ${h === m ? V.activeButton : ""} ${d ? V.loadingButton : ""}`,
|
|
40194
|
+
children: d && h === m ? /* @__PURE__ */ s("span", { className: V.loaderSpinnerSmall }) : m
|
|
40195
40195
|
},
|
|
40196
40196
|
m
|
|
40197
40197
|
)),
|
|
@@ -40200,9 +40200,9 @@ const q5e = ({ value: e }) => e, A5e = ({ value: e }) => te.createElement(
|
|
|
40200
40200
|
{
|
|
40201
40201
|
onClick: u,
|
|
40202
40202
|
disabled: d || h >= l,
|
|
40203
|
-
className: `${
|
|
40203
|
+
className: `${V.paginationButton} ${V.navigationButton} ${d ? V.loadingButton : ""} ${h >= l ? V.disabledButton : ""}`,
|
|
40204
40204
|
"aria-label": "Page suivante",
|
|
40205
|
-
children: d ? /* @__PURE__ */ s("span", { className:
|
|
40205
|
+
children: d ? /* @__PURE__ */ s("span", { className: V.loaderSpinnerSmall }) : "»"
|
|
40206
40206
|
}
|
|
40207
40207
|
)
|
|
40208
40208
|
] })
|
|
@@ -40218,27 +40218,27 @@ const q5e = ({ value: e }) => e, A5e = ({ value: e }) => te.createElement(
|
|
|
40218
40218
|
if (!e) return !1;
|
|
40219
40219
|
const t = e.trim().split(/\s+/);
|
|
40220
40220
|
return e.length > 18 || t.length > 2;
|
|
40221
|
-
}, E5e = ({ columns: e }) => /* @__PURE__ */ s("thead", { className:
|
|
40222
|
-
const o = t.align === "right" ?
|
|
40221
|
+
}, E5e = ({ columns: e }) => /* @__PURE__ */ s("thead", { className: V.tableHeader, children: /* @__PURE__ */ s("tr", { children: e.map((t, n) => {
|
|
40222
|
+
const o = t.align === "right" ? V.alignRight : t.align === "left" ? V.alignLeft : V.alignCenter, i = t.preserveHeaderCase === !0, c = F5e(String(t.label ?? ""), i), r = O5e(c), d = r ? c.split(/\s+/) : [];
|
|
40223
40223
|
return /* @__PURE__ */ s(
|
|
40224
40224
|
"th",
|
|
40225
40225
|
{
|
|
40226
|
-
className: `${
|
|
40226
|
+
className: `${V.headerCell} ${o}`,
|
|
40227
40227
|
style: { width: t.width ?? void 0 },
|
|
40228
40228
|
"data-preserve": i ? "true" : "false",
|
|
40229
40229
|
title: t.a11yConfig?.mode === "guide" ? t.a11yConfig.description : t.a11yConfig?.mode === "key" ? t.a11yConfig.key : void 0,
|
|
40230
|
-
children: /* @__PURE__ */ s("div", { className:
|
|
40230
|
+
children: /* @__PURE__ */ s("div", { className: V.headerContent, children: r ? /* @__PURE__ */ s("div", { className: V.headerWords, children: d.map((l, h) => /* @__PURE__ */ s("span", { className: V.headerWord, children: l }, h)) }) : /* @__PURE__ */ s("span", { children: c }) })
|
|
40231
40231
|
},
|
|
40232
40232
|
t.id ?? `col-${n}`
|
|
40233
40233
|
);
|
|
40234
40234
|
}) }) }), U5e = ({ value: e, row: t, column: n }) => {
|
|
40235
|
-
const o = n.align === "right" ?
|
|
40235
|
+
const o = n.align === "right" ? V.alignRight : n.align === "left" ? V.alignLeft : V.alignCenter, i = typeof n.render == "function" ? n.render(e, t) : e == null ? "" : String(e);
|
|
40236
40236
|
return /* @__PURE__ */ s(
|
|
40237
40237
|
"td",
|
|
40238
40238
|
{
|
|
40239
|
-
className: `${
|
|
40239
|
+
className: `${V.tableCell} ${o}`,
|
|
40240
40240
|
style: { width: n.width ?? void 0 },
|
|
40241
|
-
children: /* @__PURE__ */ s("div", { className:
|
|
40241
|
+
children: /* @__PURE__ */ s("div", { className: V.cellContent, children: i })
|
|
40242
40242
|
}
|
|
40243
40243
|
);
|
|
40244
40244
|
}, W5e = ({
|
|
@@ -40257,7 +40257,7 @@ const q5e = ({ value: e }) => e, A5e = ({ value: e }) => te.createElement(
|
|
|
40257
40257
|
return /* @__PURE__ */ s(
|
|
40258
40258
|
"tr",
|
|
40259
40259
|
{
|
|
40260
|
-
className: `${
|
|
40260
|
+
className: `${V.tableRow} ${o ? V.clickableRow : ""}`,
|
|
40261
40261
|
onClick: () => o?.(e, i),
|
|
40262
40262
|
style: p,
|
|
40263
40263
|
children: n.map((u) => /* @__PURE__ */ s(
|
|
@@ -40278,7 +40278,7 @@ const q5e = ({ value: e }) => e, A5e = ({ value: e }) => te.createElement(
|
|
|
40278
40278
|
startIndex: o,
|
|
40279
40279
|
searchTerm: i,
|
|
40280
40280
|
getRowStyle: c
|
|
40281
|
-
}) => e.length === 0 ? /* @__PURE__ */ s("tbody", { children: /* @__PURE__ */ s("tr", { children: /* @__PURE__ */ s("td", { colSpan: t.length, className:
|
|
40281
|
+
}) => e.length === 0 ? /* @__PURE__ */ s("tbody", { children: /* @__PURE__ */ s("tr", { children: /* @__PURE__ */ s("td", { colSpan: t.length, className: V.emptyRow, children: i ? "Aucun résultat trouvé" : "Aucune donnée disponible" }) }) }) : /* @__PURE__ */ s("tbody", { children: e.map((r, d) => /* @__PURE__ */ s(
|
|
40282
40282
|
W5e,
|
|
40283
40283
|
{
|
|
40284
40284
|
row: r.data,
|
|
@@ -40320,60 +40320,60 @@ const q5e = ({ value: e }) => e, A5e = ({ value: e }) => te.createElement(
|
|
|
40320
40320
|
sortLoading: A = !1,
|
|
40321
40321
|
totalCount: q = null
|
|
40322
40322
|
}) => {
|
|
40323
|
-
const [H, T] = j({ key: null, direction: "asc" }), [
|
|
40323
|
+
const [H, T] = j({ key: null, direction: "asc" }), [P, N] = j(n.currentPage ?? 1), [z, R] = j(n.pageSize ?? 10), [F, B] = j(!1), K = W(null), [J, oe] = j([]), Q = u ? d : J, Ne = u ? [] : J;
|
|
40324
40324
|
O(() => {
|
|
40325
|
-
const
|
|
40326
|
-
|
|
40325
|
+
const ie = n.currentPage ?? 1, Fo = n.pageSize ?? 10;
|
|
40326
|
+
ie !== P && N(ie), Fo !== z && R(Fo);
|
|
40327
40327
|
}, [n.currentPage, n.pageSize]);
|
|
40328
|
-
const { paginatedData: Me, sortedData: je, totalPages:
|
|
40328
|
+
const { paginatedData: Me, sortedData: je, totalPages: le, startIndex: E } = $5e(
|
|
40329
40329
|
t,
|
|
40330
40330
|
e,
|
|
40331
40331
|
i,
|
|
40332
40332
|
H,
|
|
40333
|
-
|
|
40333
|
+
P,
|
|
40334
40334
|
z,
|
|
40335
40335
|
Ne
|
|
40336
|
-
), ae = je.length,
|
|
40337
|
-
let
|
|
40338
|
-
typeof q == "number" && q >= 0 && (
|
|
40339
|
-
const
|
|
40336
|
+
), ae = je.length, de = typeof q == "number" && q >= 0 ? q : ae;
|
|
40337
|
+
let ce = le;
|
|
40338
|
+
typeof q == "number" && q >= 0 && (ce = Math.max(1, Math.ceil(q / z)));
|
|
40339
|
+
const ve = ae > 10;
|
|
40340
40340
|
O(() => {
|
|
40341
|
-
const
|
|
40342
|
-
|
|
40343
|
-
}, [
|
|
40344
|
-
const Ie = (
|
|
40345
|
-
u ||
|
|
40346
|
-
}, we = (
|
|
40347
|
-
u ||
|
|
40348
|
-
}, He = (
|
|
40349
|
-
M?.(
|
|
40350
|
-
}, Ve = (
|
|
40351
|
-
R(
|
|
40352
|
-
},
|
|
40353
|
-
|
|
40354
|
-
}, Se = (
|
|
40355
|
-
T(
|
|
40356
|
-
}, It = (
|
|
40357
|
-
|
|
40341
|
+
const ie = Math.max(1, Math.floor(ce));
|
|
40342
|
+
P > ie && N(ie), P < 1 && N(1);
|
|
40343
|
+
}, [ce]);
|
|
40344
|
+
const Ie = (ie) => {
|
|
40345
|
+
u || oe(ie), l?.(ie), N(1), M?.(1);
|
|
40346
|
+
}, we = (ie) => {
|
|
40347
|
+
u || oe(ie), h?.(ie), N(1), M?.(1), K.current && K.current.style.setProperty("--filters-panel-height", "0px");
|
|
40348
|
+
}, He = (ie) => {
|
|
40349
|
+
M?.(ie), N(ie);
|
|
40350
|
+
}, Ve = (ie) => {
|
|
40351
|
+
R(ie), N(1), m?.(ie), M?.(1);
|
|
40352
|
+
}, ye = (ie) => {
|
|
40353
|
+
K.current && K.current.style.setProperty("--filters-panel-height", `${Math.round(ie)}px`);
|
|
40354
|
+
}, Se = (ie) => {
|
|
40355
|
+
T(ie), p?.(ie);
|
|
40356
|
+
}, It = (ie) => {
|
|
40357
|
+
B(ie), !ie && K.current && K.current.style.setProperty("--filters-panel-height", "0px");
|
|
40358
40358
|
};
|
|
40359
40359
|
O(() => {
|
|
40360
|
-
(Q?.length ?? 0) > 0 &&
|
|
40360
|
+
(Q?.length ?? 0) > 0 && B(!0);
|
|
40361
40361
|
}, [Q]), O(() => {
|
|
40362
|
-
r.length > 0 && Q.length > 0 &&
|
|
40362
|
+
r.length > 0 && Q.length > 0 && B(!0);
|
|
40363
40363
|
}, [r.length, Q.length]);
|
|
40364
40364
|
const Ro = (Q?.length ?? 0) > 0 && w ? w : f;
|
|
40365
40365
|
return /* @__PURE__ */ v(
|
|
40366
40366
|
"div",
|
|
40367
40367
|
{
|
|
40368
|
-
ref:
|
|
40369
|
-
className: `${
|
|
40368
|
+
ref: K,
|
|
40369
|
+
className: `${V.container} ${c} ${F ? V.filtersOpen : ""}`,
|
|
40370
40370
|
style: {
|
|
40371
40371
|
background: g,
|
|
40372
40372
|
"--row-height": "48px",
|
|
40373
40373
|
"--header-height": "56px"
|
|
40374
40374
|
},
|
|
40375
40375
|
children: [
|
|
40376
|
-
/* @__PURE__ */ s("div", { className:
|
|
40376
|
+
/* @__PURE__ */ s("div", { className: V.tableControls, children: /* @__PURE__ */ v("div", { className: V.controlsRight, children: [
|
|
40377
40377
|
/* @__PURE__ */ s(
|
|
40378
40378
|
B5e,
|
|
40379
40379
|
{
|
|
@@ -40396,7 +40396,7 @@ const q5e = ({ value: e }) => e, A5e = ({ value: e }) => te.createElement(
|
|
|
40396
40396
|
expanded: F,
|
|
40397
40397
|
onToggle: It,
|
|
40398
40398
|
panelPlacement: "top",
|
|
40399
|
-
onPanelHeightChange:
|
|
40399
|
+
onPanelHeightChange: ye,
|
|
40400
40400
|
label: Ro,
|
|
40401
40401
|
applyLabel: I,
|
|
40402
40402
|
cancelLabel: L,
|
|
@@ -40406,13 +40406,13 @@ const q5e = ({ value: e }) => e, A5e = ({ value: e }) => te.createElement(
|
|
|
40406
40406
|
}
|
|
40407
40407
|
)
|
|
40408
40408
|
] }) }),
|
|
40409
|
-
/* @__PURE__ */ s("div", { className:
|
|
40409
|
+
/* @__PURE__ */ s("div", { className: V.topPagination, children: /* @__PURE__ */ s(
|
|
40410
40410
|
R5e,
|
|
40411
40411
|
{
|
|
40412
|
-
currentPage:
|
|
40413
|
-
totalPages:
|
|
40412
|
+
currentPage: P,
|
|
40413
|
+
totalPages: ce,
|
|
40414
40414
|
pageSize: z,
|
|
40415
|
-
totalItems:
|
|
40415
|
+
totalItems: de,
|
|
40416
40416
|
itemLabel: _,
|
|
40417
40417
|
onPageChange: He,
|
|
40418
40418
|
onPageSizeChange: Ve,
|
|
@@ -40422,9 +40422,9 @@ const q5e = ({ value: e }) => e, A5e = ({ value: e }) => te.createElement(
|
|
|
40422
40422
|
/* @__PURE__ */ s(
|
|
40423
40423
|
"div",
|
|
40424
40424
|
{
|
|
40425
|
-
className: `${
|
|
40425
|
+
className: `${V.tableWrapper} ${ve ? V.limitedRows : ""}`,
|
|
40426
40426
|
"data-table-wrapper": !0,
|
|
40427
|
-
children: /* @__PURE__ */ v("table", { className:
|
|
40427
|
+
children: /* @__PURE__ */ v("table", { className: V.table, children: [
|
|
40428
40428
|
/* @__PURE__ */ s(E5e, { columns: e }),
|
|
40429
40429
|
/* @__PURE__ */ s(
|
|
40430
40430
|
G5e,
|
|
@@ -40445,7 +40445,7 @@ const q5e = ({ value: e }) => e, A5e = ({ value: e }) => te.createElement(
|
|
|
40445
40445
|
);
|
|
40446
40446
|
};
|
|
40447
40447
|
function Ave(e) {
|
|
40448
|
-
const { pagination: t, totalCount: n, onPageChange: o, ...i } = e, c = t?.pageSize ?? 20, r = t?.currentPage ?? 1, d =
|
|
40448
|
+
const { pagination: t, totalCount: n, onPageChange: o, ...i } = e, c = t?.pageSize ?? 20, r = t?.currentPage ?? 1, d = ge(() => {
|
|
40449
40449
|
if (n === null || typeof n > "u") return null;
|
|
40450
40450
|
const u = Number(n);
|
|
40451
40451
|
if (!Number.isFinite(u) || u <= 0) return 1;
|
|
@@ -40935,7 +40935,7 @@ const K5e = "_mpRoot_31595_1", X5e = "_mpHeader_31595_22", Y5e = "_mpTitle_31595
|
|
|
40935
40935
|
k ? Z.mpSummaryRoot : "",
|
|
40936
40936
|
o !== "auto" ? o === "vertical" ? Z.mpOrientationVertical : Z.mpOrientationHorizontal : "",
|
|
40937
40937
|
h
|
|
40938
|
-
].filter(Boolean).join(" "),
|
|
40938
|
+
].filter(Boolean).join(" "), P = ge(() => y || (Hke(_) ?? void 0), [y, _]);
|
|
40939
40939
|
if (k) {
|
|
40940
40940
|
const N = o === "horizontal" ? Z.mpSummaryFlex : Z.mpSummaryVertical, R = { ...(I ? {
|
|
40941
40941
|
display: "grid",
|
|
@@ -40951,9 +40951,9 @@ const K5e = "_mpRoot_31595_1", X5e = "_mpHeader_31595_22", Y5e = "_mpTitle_31595
|
|
|
40951
40951
|
{
|
|
40952
40952
|
className: `${N} ${C ?? ""}`,
|
|
40953
40953
|
style: R,
|
|
40954
|
-
children: t.length === 0 ? /* @__PURE__ */ s("div", { className: Z.mpEmpty, children: u }) : t.map((F,
|
|
40955
|
-
const
|
|
40956
|
-
return
|
|
40954
|
+
children: t.length === 0 ? /* @__PURE__ */ s("div", { className: Z.mpEmpty, children: u }) : t.map((F, B) => {
|
|
40955
|
+
const K = F.bgColor ?? g[B % g.length], J = F.borderColor ?? m[B % m.length], oe = F.valueColor ?? M[B % M.length];
|
|
40956
|
+
return P ? /* @__PURE__ */ s(
|
|
40957
40957
|
"div",
|
|
40958
40958
|
{
|
|
40959
40959
|
className: o === "horizontal" ? Z.mpSummaryCardWrapperHorizontal : Z.mpSummaryCardWrapper,
|
|
@@ -40962,7 +40962,7 @@ const K5e = "_mpRoot_31595_1", X5e = "_mpHeader_31595_22", Y5e = "_mpTitle_31595
|
|
|
40962
40962
|
height: $ ?? void 0,
|
|
40963
40963
|
...A ?? {}
|
|
40964
40964
|
},
|
|
40965
|
-
children:
|
|
40965
|
+
children: P(F, B)
|
|
40966
40966
|
},
|
|
40967
40967
|
F.id
|
|
40968
40968
|
) : /* @__PURE__ */ s(
|
|
@@ -40970,9 +40970,9 @@ const K5e = "_mpRoot_31595_1", X5e = "_mpHeader_31595_22", Y5e = "_mpTitle_31595
|
|
|
40970
40970
|
{
|
|
40971
40971
|
item: F,
|
|
40972
40972
|
orientation: o === "horizontal" ? "horizontal" : "vertical",
|
|
40973
|
-
bg:
|
|
40974
|
-
border:
|
|
40975
|
-
valueColor:
|
|
40973
|
+
bg: K,
|
|
40974
|
+
border: J,
|
|
40975
|
+
valueColor: oe,
|
|
40976
40976
|
onClick: l,
|
|
40977
40977
|
width: S ?? void 0,
|
|
40978
40978
|
height: $ ?? void 0,
|
|
@@ -41006,7 +41006,7 @@ const K5e = "_mpRoot_31595_1", X5e = "_mpHeader_31595_22", Y5e = "_mpTitle_31595
|
|
|
41006
41006
|
shape: i,
|
|
41007
41007
|
onItemClick: l,
|
|
41008
41008
|
color: c,
|
|
41009
|
-
renderItem:
|
|
41009
|
+
renderItem: P ? (R) => P(R, t.indexOf(R)) : void 0
|
|
41010
41010
|
}
|
|
41011
41011
|
)
|
|
41012
41012
|
},
|
|
@@ -41186,7 +41186,7 @@ const zve = ({
|
|
|
41186
41186
|
d.current.forEach((x) => window.clearTimeout(x)), d.current.clear(), r([]);
|
|
41187
41187
|
}, _ = (x) => {
|
|
41188
41188
|
h.current = x;
|
|
41189
|
-
}, f = () => c.slice(), w =
|
|
41189
|
+
}, f = () => c.slice(), w = ge(
|
|
41190
41190
|
() => ({
|
|
41191
41191
|
showAlert: k,
|
|
41192
41192
|
dismissAlert: g,
|
|
@@ -41274,7 +41274,7 @@ const zve = ({
|
|
|
41274
41274
|
e
|
|
41275
41275
|
] });
|
|
41276
41276
|
}, Pve = () => {
|
|
41277
|
-
const e =
|
|
41277
|
+
const e = ke(CA);
|
|
41278
41278
|
if (!e) throw new Error("useAlerts must be used inside an AlertsProvider");
|
|
41279
41279
|
return e;
|
|
41280
41280
|
}, jve = {
|
|
@@ -41768,7 +41768,8 @@ const Kke = "_container_1pfsp_1", Xke = "_title_1pfsp_8", f$ = {
|
|
|
41768
41768
|
onChange: n,
|
|
41769
41769
|
iconPosition: o = "left",
|
|
41770
41770
|
iconColor: i = "#9ca3af",
|
|
41771
|
-
a11yConfig: c
|
|
41771
|
+
a11yConfig: c,
|
|
41772
|
+
className: r
|
|
41772
41773
|
}) => /* @__PURE__ */ v(
|
|
41773
41774
|
"div",
|
|
41774
41775
|
{
|
|
@@ -41782,8 +41783,8 @@ const Kke = "_container_1pfsp_1", Xke = "_title_1pfsp_8", f$ = {
|
|
|
41782
41783
|
type: "text",
|
|
41783
41784
|
placeholder: e,
|
|
41784
41785
|
value: t,
|
|
41785
|
-
onChange: (
|
|
41786
|
-
className:
|
|
41786
|
+
onChange: (d) => n?.(d.target.value),
|
|
41787
|
+
className: `search-input ${r}`
|
|
41787
41788
|
}
|
|
41788
41789
|
)
|
|
41789
41790
|
]
|
|
@@ -41800,38 +41801,38 @@ const Kke = "_container_1pfsp_1", Xke = "_title_1pfsp_8", f$ = {
|
|
|
41800
41801
|
draggable: l = !1,
|
|
41801
41802
|
checkDuplicateLocal: h
|
|
41802
41803
|
}) => {
|
|
41803
|
-
const [p, u] = j(!1), [y, k] = j(""), [g, m] = j(null), [M, _] = j(""), [f, w] = j(""), [C, I] = j(!1), [L, x] = j(!1), [b, S] = j(null), [$, A] = j(!1), q = t.map((
|
|
41804
|
+
const [p, u] = j(!1), [y, k] = j(""), [g, m] = j(null), [M, _] = j(""), [f, w] = j(""), [C, I] = j(!1), [L, x] = j(!1), [b, S] = j(null), [$, A] = j(!1), q = t.map((B) => B.language), H = n.filter((B) => !q.includes(B.code)), T = () => {
|
|
41804
41805
|
y && f.trim() && (d?.(e, y, f.trim()), k(""), w(""), u(!1));
|
|
41805
|
-
},
|
|
41806
|
-
m(
|
|
41807
|
-
}, N = (
|
|
41808
|
-
c?.(e,
|
|
41806
|
+
}, P = (B, K) => {
|
|
41807
|
+
m(B), _(K);
|
|
41808
|
+
}, N = (B) => {
|
|
41809
|
+
c?.(e, B, M), m(null), _("");
|
|
41809
41810
|
}, z = () => {
|
|
41810
41811
|
m(null), _("");
|
|
41811
|
-
}, R = async (
|
|
41812
|
-
const
|
|
41813
|
-
if (
|
|
41814
|
-
if (S(null), A(!1),
|
|
41812
|
+
}, R = async (B) => {
|
|
41813
|
+
const K = B.name?.trim();
|
|
41814
|
+
if (K) {
|
|
41815
|
+
if (S(null), A(!1), K === e || !i)
|
|
41815
41816
|
return I(!1), "ok";
|
|
41816
41817
|
try {
|
|
41817
|
-
const
|
|
41818
|
-
if (typeof
|
|
41818
|
+
const J = await i(e, K);
|
|
41819
|
+
if (typeof J == "string" && J === "ok")
|
|
41819
41820
|
I(!1), S(null);
|
|
41820
41821
|
else {
|
|
41821
|
-
if (typeof
|
|
41822
|
+
if (typeof J == "string" && J === "duplicate-same")
|
|
41822
41823
|
return S("Une clé existe déjà dans ce module."), A(!0), "duplicate-same";
|
|
41823
|
-
if (typeof
|
|
41824
|
+
if (typeof J == "string" && J === "duplicate-other")
|
|
41824
41825
|
return I(!1), S(null), "duplicate-other";
|
|
41825
41826
|
I(!1);
|
|
41826
41827
|
}
|
|
41827
|
-
} catch (
|
|
41828
|
-
console.error("Erreur handleRenameSave:",
|
|
41828
|
+
} catch (J) {
|
|
41829
|
+
console.error("Erreur handleRenameSave:", J), S("Erreur lors du renommage.");
|
|
41829
41830
|
}
|
|
41830
41831
|
}
|
|
41831
|
-
}, F = (
|
|
41832
|
-
if (
|
|
41833
|
-
const
|
|
41834
|
-
S(null), A(!1),
|
|
41832
|
+
}, F = (B, K) => {
|
|
41833
|
+
if (B !== "name") return;
|
|
41834
|
+
const J = K.trim();
|
|
41835
|
+
S(null), A(!1), J && typeof h == "function" && (h(J, e) ? (S("Une clé existe déjà dans ce module."), A(!0)) : (S(null), A(!1)));
|
|
41835
41836
|
};
|
|
41836
41837
|
return /* @__PURE__ */ v(
|
|
41837
41838
|
"div",
|
|
@@ -41856,8 +41857,8 @@ const Kke = "_container_1pfsp_1", Xke = "_title_1pfsp_8", f$ = {
|
|
|
41856
41857
|
"button",
|
|
41857
41858
|
{
|
|
41858
41859
|
className: "action-button",
|
|
41859
|
-
onClick: (
|
|
41860
|
-
|
|
41860
|
+
onClick: (B) => {
|
|
41861
|
+
B.stopPropagation(), I(!0);
|
|
41861
41862
|
},
|
|
41862
41863
|
title: "Renommer la clé",
|
|
41863
41864
|
children: /* @__PURE__ */ s(vt, { className: "action-icon" })
|
|
@@ -41866,8 +41867,8 @@ const Kke = "_container_1pfsp_1", Xke = "_title_1pfsp_8", f$ = {
|
|
|
41866
41867
|
/* @__PURE__ */ s(
|
|
41867
41868
|
"button",
|
|
41868
41869
|
{
|
|
41869
|
-
onClick: (
|
|
41870
|
-
|
|
41870
|
+
onClick: (B) => {
|
|
41871
|
+
B.stopPropagation(), o?.(e);
|
|
41871
41872
|
},
|
|
41872
41873
|
className: "action-button delete",
|
|
41873
41874
|
title: "Supprimer la clé",
|
|
@@ -41877,26 +41878,26 @@ const Kke = "_container_1pfsp_1", Xke = "_title_1pfsp_8", f$ = {
|
|
|
41877
41878
|
] })
|
|
41878
41879
|
] }),
|
|
41879
41880
|
/* @__PURE__ */ s("div", { className: `translations-container ${L ? "" : "expanded"}`, children: !l && /* @__PURE__ */ v(Ue, { children: [
|
|
41880
|
-
t.map((
|
|
41881
|
-
/* @__PURE__ */ s("div", { className: "language-code", children:
|
|
41882
|
-
/* @__PURE__ */ s("div", { className: "translation-content", children: g ===
|
|
41881
|
+
t.map((B) => /* @__PURE__ */ v("div", { className: "translation-row", children: [
|
|
41882
|
+
/* @__PURE__ */ s("div", { className: "language-code", children: B.language }),
|
|
41883
|
+
/* @__PURE__ */ s("div", { className: "translation-content", children: g === B.language ? /* @__PURE__ */ v(Ue, { children: [
|
|
41883
41884
|
/* @__PURE__ */ s(
|
|
41884
41885
|
"input",
|
|
41885
41886
|
{
|
|
41886
41887
|
type: "text",
|
|
41887
41888
|
value: M,
|
|
41888
|
-
onChange: (
|
|
41889
|
+
onChange: (K) => _(K.target.value),
|
|
41889
41890
|
className: "edit-input",
|
|
41890
41891
|
autoFocus: !0,
|
|
41891
|
-
onKeyDown: (
|
|
41892
|
-
|
|
41892
|
+
onKeyDown: (K) => {
|
|
41893
|
+
K.key === "Enter" && N(B.language), K.key === "Escape" && z();
|
|
41893
41894
|
}
|
|
41894
41895
|
}
|
|
41895
41896
|
),
|
|
41896
41897
|
/* @__PURE__ */ s(
|
|
41897
41898
|
"button",
|
|
41898
41899
|
{
|
|
41899
|
-
onClick: () => N(
|
|
41900
|
+
onClick: () => N(B.language),
|
|
41900
41901
|
className: "save-button",
|
|
41901
41902
|
disabled: !M.trim(),
|
|
41902
41903
|
children: "Enregistrer"
|
|
@@ -41904,11 +41905,11 @@ const Kke = "_container_1pfsp_1", Xke = "_title_1pfsp_8", f$ = {
|
|
|
41904
41905
|
),
|
|
41905
41906
|
/* @__PURE__ */ s("button", { onClick: z, className: "cancel-button", children: /* @__PURE__ */ s(it, { className: "action-icon" }) })
|
|
41906
41907
|
] }) : /* @__PURE__ */ v(Ue, { children: [
|
|
41907
|
-
/* @__PURE__ */ s("span", { className: "translation-text", title:
|
|
41908
|
+
/* @__PURE__ */ s("span", { className: "translation-text", title: B.value, children: B.value }),
|
|
41908
41909
|
/* @__PURE__ */ s(
|
|
41909
41910
|
"button",
|
|
41910
41911
|
{
|
|
41911
|
-
onClick: () =>
|
|
41912
|
+
onClick: () => P(B.language, B.value),
|
|
41912
41913
|
className: "edit-button",
|
|
41913
41914
|
title: "Éditer la traduction",
|
|
41914
41915
|
children: /* @__PURE__ */ s(vt, { className: "action-icon" })
|
|
@@ -41917,14 +41918,14 @@ const Kke = "_container_1pfsp_1", Xke = "_title_1pfsp_8", f$ = {
|
|
|
41917
41918
|
/* @__PURE__ */ s(
|
|
41918
41919
|
"button",
|
|
41919
41920
|
{
|
|
41920
|
-
onClick: () => r?.(e,
|
|
41921
|
+
onClick: () => r?.(e, B.language),
|
|
41921
41922
|
className: "delete-translation-button",
|
|
41922
41923
|
title: "Supprimer la traduction",
|
|
41923
41924
|
children: /* @__PURE__ */ s(it, { className: "action-icon" })
|
|
41924
41925
|
}
|
|
41925
41926
|
)
|
|
41926
41927
|
] }) })
|
|
41927
|
-
] },
|
|
41928
|
+
] }, B.language)),
|
|
41928
41929
|
p ? /* @__PURE__ */ v("div", { className: "add-language-row", children: [
|
|
41929
41930
|
/* @__PURE__ */ s("div", { className: "language-code", children: "+" }),
|
|
41930
41931
|
/* @__PURE__ */ v("div", { className: "add-language-content", children: [
|
|
@@ -41932,16 +41933,16 @@ const Kke = "_container_1pfsp_1", Xke = "_title_1pfsp_8", f$ = {
|
|
|
41932
41933
|
"select",
|
|
41933
41934
|
{
|
|
41934
41935
|
value: y,
|
|
41935
|
-
onChange: (
|
|
41936
|
+
onChange: (B) => k(B.target.value),
|
|
41936
41937
|
className: "language-select",
|
|
41937
41938
|
children: [
|
|
41938
41939
|
/* @__PURE__ */ s("option", { value: "", children: "Sélectionnez la langue" }),
|
|
41939
|
-
H.map((
|
|
41940
|
-
|
|
41940
|
+
H.map((B) => /* @__PURE__ */ v("option", { value: B.code, children: [
|
|
41941
|
+
B.name,
|
|
41941
41942
|
" (",
|
|
41942
|
-
|
|
41943
|
+
B.code,
|
|
41943
41944
|
")"
|
|
41944
|
-
] },
|
|
41945
|
+
] }, B.code))
|
|
41945
41946
|
]
|
|
41946
41947
|
}
|
|
41947
41948
|
) }),
|
|
@@ -41950,11 +41951,11 @@ const Kke = "_container_1pfsp_1", Xke = "_title_1pfsp_8", f$ = {
|
|
|
41950
41951
|
{
|
|
41951
41952
|
type: "text",
|
|
41952
41953
|
value: f,
|
|
41953
|
-
onChange: (
|
|
41954
|
+
onChange: (B) => w(B.target.value),
|
|
41954
41955
|
placeholder: "Entrez la traduction...",
|
|
41955
41956
|
className: "translation-input",
|
|
41956
|
-
onKeyDown: (
|
|
41957
|
-
|
|
41957
|
+
onKeyDown: (B) => {
|
|
41958
|
+
B.key === "Enter" && T(), B.key === "Escape" && (u(!1), k(""), w(""));
|
|
41958
41959
|
}
|
|
41959
41960
|
}
|
|
41960
41961
|
),
|
|
@@ -42440,7 +42441,7 @@ const Uve = ({
|
|
|
42440
42441
|
hideConfirmation: o,
|
|
42441
42442
|
handleConfirm: i
|
|
42442
42443
|
};
|
|
42443
|
-
}, V3e = "_container_v7v52_1", P3e = "_selectButton_v7v52_6", j3e = "_disabled_v7v52_19", H3e = "_error_v7v52_29", T3e = "_outline_v7v52_43", D3e = "_filled_v7v52_53", B3e = "_sm_v7v52_58", R3e = "_md_v7v52_63", F3e = "_lg_v7v52_68", O3e = "_buttonContent_v7v52_73", E3e = "_label_v7v52_80", U3e = "_placeholder_v7v52_87", W3e = "_iconsContainer_v7v52_91", G3e = "_loadingSpinner_v7v52_99", Z3e = "_spin_v7v52_1", K3e = "_arrowIcon_v7v52_119", X3e = "_arrowIconOpen_v7v52_127", Y3e = "_dropdown_v7v52_131", J3e = "_searchContainer_v7v52_146", Q3e = "_searchInput_v7v52_150", e6e = "_optionsList_v7v52_173", t6e = "_noResults_v7v52_195", a6e = "_option_v7v52_173", n6e = "_optionHighlighted_v7v52_217", o6e = "_optionSelected_v7v52_222", i6e = "_optionDisabled_v7v52_228", c6e = "_optionLabel_v7v52_233", r6e = "_checkIcon_v7v52_240", s6e = "_widthFull_v7v52_248", d6e = "_width64_v7v52_252", l6e = "_width80_v7v52_256", h6e = "_width96_v7v52_260",
|
|
42444
|
+
}, V3e = "_container_v7v52_1", P3e = "_selectButton_v7v52_6", j3e = "_disabled_v7v52_19", H3e = "_error_v7v52_29", T3e = "_outline_v7v52_43", D3e = "_filled_v7v52_53", B3e = "_sm_v7v52_58", R3e = "_md_v7v52_63", F3e = "_lg_v7v52_68", O3e = "_buttonContent_v7v52_73", E3e = "_label_v7v52_80", U3e = "_placeholder_v7v52_87", W3e = "_iconsContainer_v7v52_91", G3e = "_loadingSpinner_v7v52_99", Z3e = "_spin_v7v52_1", K3e = "_arrowIcon_v7v52_119", X3e = "_arrowIconOpen_v7v52_127", Y3e = "_dropdown_v7v52_131", J3e = "_searchContainer_v7v52_146", Q3e = "_searchInput_v7v52_150", e6e = "_optionsList_v7v52_173", t6e = "_noResults_v7v52_195", a6e = "_option_v7v52_173", n6e = "_optionHighlighted_v7v52_217", o6e = "_optionSelected_v7v52_222", i6e = "_optionDisabled_v7v52_228", c6e = "_optionLabel_v7v52_233", r6e = "_checkIcon_v7v52_240", s6e = "_widthFull_v7v52_248", d6e = "_width64_v7v52_252", l6e = "_width80_v7v52_256", h6e = "_width96_v7v52_260", se = {
|
|
42444
42445
|
container: V3e,
|
|
42445
42446
|
selectButton: P3e,
|
|
42446
42447
|
disabled: j3e,
|
|
@@ -42487,7 +42488,7 @@ const Uve = ({
|
|
|
42487
42488
|
variant: h = "default",
|
|
42488
42489
|
width: p = "w-full"
|
|
42489
42490
|
}) => {
|
|
42490
|
-
const [u, y] = j(!1), [k, g] = j(""), [m, M] = j(0), [_, f] = j({ top: 0, left: 0, width: 0 }), w = W(null), C = W(null), I = W(null), L =
|
|
42491
|
+
const [u, y] = j(!1), [k, g] = j(""), [m, M] = j(0), [_, f] = j({ top: 0, left: 0, width: 0 }), w = W(null), C = W(null), I = W(null), L = ge(() => k ? e.filter(
|
|
42491
42492
|
(N) => N.label.toLowerCase().includes(k.toLowerCase())
|
|
42492
42493
|
) : e, [e, k]), x = e.find((N) => N.value === t), b = De(() => {
|
|
42493
42494
|
if (w.current) {
|
|
@@ -42533,36 +42534,36 @@ const Uve = ({
|
|
|
42533
42534
|
break;
|
|
42534
42535
|
}
|
|
42535
42536
|
}, q = () => [
|
|
42536
|
-
|
|
42537
|
-
|
|
42538
|
-
|
|
42539
|
-
i ?
|
|
42540
|
-
r ?
|
|
42537
|
+
se.selectButton,
|
|
42538
|
+
se[l],
|
|
42539
|
+
se[h],
|
|
42540
|
+
i ? se.disabled : "",
|
|
42541
|
+
r ? se.error : "",
|
|
42541
42542
|
d
|
|
42542
42543
|
].filter(Boolean).join(" "), H = () => {
|
|
42543
42544
|
switch (p) {
|
|
42544
42545
|
case "w-64":
|
|
42545
|
-
return
|
|
42546
|
+
return se.width64;
|
|
42546
42547
|
case "w-80":
|
|
42547
|
-
return
|
|
42548
|
+
return se.width80;
|
|
42548
42549
|
case "w-96":
|
|
42549
|
-
return
|
|
42550
|
+
return se.width96;
|
|
42550
42551
|
default:
|
|
42551
|
-
return
|
|
42552
|
+
return se.widthFull;
|
|
42552
42553
|
}
|
|
42553
42554
|
}, T = (N, z) => [
|
|
42554
|
-
|
|
42555
|
-
z === m ?
|
|
42556
|
-
N.value === t ?
|
|
42557
|
-
N.disabled ?
|
|
42558
|
-
].filter(Boolean).join(" "),
|
|
42555
|
+
se.option,
|
|
42556
|
+
z === m ? se.optionHighlighted : "",
|
|
42557
|
+
N.value === t ? se.optionSelected : "",
|
|
42558
|
+
N.disabled ? se.optionDisabled : ""
|
|
42559
|
+
].filter(Boolean).join(" "), P = {
|
|
42559
42560
|
position: "fixed",
|
|
42560
42561
|
top: _.top + (w.current?.offsetHeight || 0) + 4,
|
|
42561
42562
|
left: _.left,
|
|
42562
42563
|
width: _.width,
|
|
42563
42564
|
zIndex: 9999
|
|
42564
42565
|
};
|
|
42565
|
-
return /* @__PURE__ */ v("div", { className: `${
|
|
42566
|
+
return /* @__PURE__ */ v("div", { className: `${se.container} ${H()}`, children: [
|
|
42566
42567
|
/* @__PURE__ */ s(
|
|
42567
42568
|
"button",
|
|
42568
42569
|
{
|
|
@@ -42575,14 +42576,14 @@ const Uve = ({
|
|
|
42575
42576
|
"aria-haspopup": "listbox",
|
|
42576
42577
|
"aria-expanded": u,
|
|
42577
42578
|
disabled: i,
|
|
42578
|
-
children: /* @__PURE__ */ v("div", { className:
|
|
42579
|
-
/* @__PURE__ */ s("span", { className: `${
|
|
42580
|
-
/* @__PURE__ */ v("div", { className:
|
|
42581
|
-
c && /* @__PURE__ */ s("div", { className:
|
|
42579
|
+
children: /* @__PURE__ */ v("div", { className: se.buttonContent, children: [
|
|
42580
|
+
/* @__PURE__ */ s("span", { className: `${se.label} ${x ? "" : se.placeholder}`, children: x ? x.label : o }),
|
|
42581
|
+
/* @__PURE__ */ v("div", { className: se.iconsContainer, children: [
|
|
42582
|
+
c && /* @__PURE__ */ s("div", { className: se.loadingSpinner }),
|
|
42582
42583
|
/* @__PURE__ */ s(
|
|
42583
42584
|
"svg",
|
|
42584
42585
|
{
|
|
42585
|
-
className: `${
|
|
42586
|
+
className: `${se.arrowIcon} ${u ? se.arrowIconOpen : ""}`,
|
|
42586
42587
|
fill: "none",
|
|
42587
42588
|
stroke: "currentColor",
|
|
42588
42589
|
viewBox: "0 0 24 24",
|
|
@@ -42605,11 +42606,11 @@ const Uve = ({
|
|
|
42605
42606
|
/* @__PURE__ */ v(
|
|
42606
42607
|
"div",
|
|
42607
42608
|
{
|
|
42608
|
-
className: `${
|
|
42609
|
-
style:
|
|
42609
|
+
className: `${se.dropdown} ${H()}`,
|
|
42610
|
+
style: P,
|
|
42610
42611
|
ref: C,
|
|
42611
42612
|
children: [
|
|
42612
|
-
/* @__PURE__ */ s("div", { className:
|
|
42613
|
+
/* @__PURE__ */ s("div", { className: se.searchContainer, children: /* @__PURE__ */ s(
|
|
42613
42614
|
"input",
|
|
42614
42615
|
{
|
|
42615
42616
|
ref: I,
|
|
@@ -42617,11 +42618,11 @@ const Uve = ({
|
|
|
42617
42618
|
value: k,
|
|
42618
42619
|
onChange: $,
|
|
42619
42620
|
placeholder: "Rechercher...",
|
|
42620
|
-
className:
|
|
42621
|
+
className: se.searchInput,
|
|
42621
42622
|
autoFocus: !0
|
|
42622
42623
|
}
|
|
42623
42624
|
) }),
|
|
42624
|
-
/* @__PURE__ */ s("div", { className:
|
|
42625
|
+
/* @__PURE__ */ s("div", { className: se.optionsList, children: L.length === 0 ? /* @__PURE__ */ s("div", { className: se.noResults, children: "Aucun résultat trouvé" }) : /* @__PURE__ */ s("ul", { role: "listbox", children: L.map((N, z) => /* @__PURE__ */ s(
|
|
42625
42626
|
"li",
|
|
42626
42627
|
{
|
|
42627
42628
|
className: T(N, z),
|
|
@@ -42630,9 +42631,9 @@ const Uve = ({
|
|
|
42630
42631
|
role: "option",
|
|
42631
42632
|
"aria-selected": N.value === t,
|
|
42632
42633
|
"aria-disabled": N.disabled,
|
|
42633
|
-
children: /* @__PURE__ */ v("div", { className:
|
|
42634
|
-
/* @__PURE__ */ s("span", { className:
|
|
42635
|
-
N.value === t && /* @__PURE__ */ s("svg", { className:
|
|
42634
|
+
children: /* @__PURE__ */ v("div", { className: se.buttonContent, children: [
|
|
42635
|
+
/* @__PURE__ */ s("span", { className: se.optionLabel, title: N.label, children: N.label }),
|
|
42636
|
+
N.value === t && /* @__PURE__ */ s("svg", { className: se.checkIcon, fill: "currentColor", viewBox: "0 0 20 20", children: /* @__PURE__ */ s(
|
|
42636
42637
|
"path",
|
|
42637
42638
|
{
|
|
42638
42639
|
fillRule: "evenodd",
|
|
@@ -42819,7 +42820,7 @@ function e9e(e) {
|
|
|
42819
42820
|
}
|
|
42820
42821
|
);
|
|
42821
42822
|
}
|
|
42822
|
-
const q6e = (e) => /* @__PURE__ */
|
|
42823
|
+
const q6e = (e) => /* @__PURE__ */ Y.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 -960 960 960", ...e }, /* @__PURE__ */ Y.createElement("path", { d: "M480-360 280-559h400z" })), A6e = ze(q6e), z6e = (e) => /* @__PURE__ */ Y.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 -960 960 960", ...e }, /* @__PURE__ */ Y.createElement("path", { d: "m280-400 200-201 200 201z" })), V6e = ze(z6e), P6e = (e) => /* @__PURE__ */ Y.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", fill: "none", viewBox: "0 0 16 16", ...e }, /* @__PURE__ */ Y.createElement("path", { fill: "#0087BD", d: "M3 14a.96.96 0 0 1-.7-.3.96.96 0 0 1-.3-.7V3q0-.4.3-.7T3 2h10q.4 0 .7.3t.3.7v10q0 .4-.3.7t-.7.3zm3.983-3.55q.1 0 .192-.033a.36.36 0 0 0 .158-.117l4.117-4.133q.15-.15.15-.35a.54.54 0 0 0-.15-.367.52.52 0 0 0-.358-.133.5.5 0 0 0-.359.15l-3.75 3.75L5.35 7.583a.48.48 0 0 0-.7 0q-.15.15-.15.367 0 .216.15.35l1.983 2a.48.48 0 0 0 .35.15" })), j6e = ze(P6e), H6e = (e) => /* @__PURE__ */ Y.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", fill: "none", viewBox: "0 0 16 16", ...e }, /* @__PURE__ */ Y.createElement("path", { fill: "#1E2122", d: "M3 14a.96.96 0 0 1-.7-.3.96.96 0 0 1-.3-.7V3q0-.4.3-.7T3 2h10q.4 0 .7.3t.3.7v10q0 .4-.3.7t-.7.3zm0-1h10V3H3z" })), T6e = ze(H6e), t9e = ({
|
|
42823
42824
|
items: e,
|
|
42824
42825
|
onSave: t,
|
|
42825
42826
|
loading: n,
|
|
@@ -43061,11 +43062,11 @@ const q6e = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
|
|
|
43061
43062
|
...p !== void 0 ? { height: p } : {},
|
|
43062
43063
|
...i !== void 0 ? { backgroundColor: i } : {},
|
|
43063
43064
|
...H
|
|
43064
|
-
},
|
|
43065
|
+
}, P = `${Qe.board} ${Qe[d]} ${u}`;
|
|
43065
43066
|
return /* @__PURE__ */ v(
|
|
43066
43067
|
"div",
|
|
43067
43068
|
{
|
|
43068
|
-
className:
|
|
43069
|
+
className: P,
|
|
43069
43070
|
onClick: x,
|
|
43070
43071
|
style: l !== void 0 ? { ...T, "--ds-value-scale": l } : T,
|
|
43071
43072
|
children: [
|
|
@@ -43509,8 +43510,8 @@ const q6e = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
|
|
|
43509
43510
|
style: x,
|
|
43510
43511
|
className: b = ""
|
|
43511
43512
|
}) => {
|
|
43512
|
-
const { user: S } = Lt(), $ = e || S, { currentTheme: A, switchTheme: q } = yC(), H = W(null), T = W(null), [
|
|
43513
|
-
const E = [], ae = ({ variant:
|
|
43513
|
+
const { user: S } = Lt(), $ = e || S, { currentTheme: A, switchTheme: q } = yC(), H = W(null), T = W(null), [P, N] = j(!1), [z, R] = j({}), F = ge(() => {
|
|
43514
|
+
const E = [], ae = ({ variant: ce }) => ce === "sun" ? /* @__PURE__ */ s(
|
|
43514
43515
|
"svg",
|
|
43515
43516
|
{
|
|
43516
43517
|
width: "16",
|
|
@@ -43541,14 +43542,14 @@ const q6e = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
|
|
|
43541
43542
|
typeof window > "u" || (c === "_blank" ? window.open(i, "_blank", "noopener,noreferrer") : window.location.assign(i));
|
|
43542
43543
|
}
|
|
43543
43544
|
}), E.push({ id: "sep-profile", type: "separator" }));
|
|
43544
|
-
const
|
|
43545
|
+
const de = A === "dark";
|
|
43545
43546
|
return E.push({
|
|
43546
43547
|
id: "theme",
|
|
43547
43548
|
type: "action",
|
|
43548
|
-
label:
|
|
43549
|
-
icon: /* @__PURE__ */ s(ae, { variant:
|
|
43549
|
+
label: de ? "Mode clair" : "Mode sombre",
|
|
43550
|
+
icon: /* @__PURE__ */ s(ae, { variant: de ? "sun" : "moon" }),
|
|
43550
43551
|
onClick: () => {
|
|
43551
|
-
q(
|
|
43552
|
+
q(de ? "light" : "dark");
|
|
43552
43553
|
}
|
|
43553
43554
|
}), (t || o) && (E.push({ id: "sep-theme", type: "separator" }), E.push({
|
|
43554
43555
|
id: "logout",
|
|
@@ -43572,60 +43573,60 @@ const q6e = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
|
|
|
43572
43573
|
i,
|
|
43573
43574
|
c,
|
|
43574
43575
|
q
|
|
43575
|
-
]),
|
|
43576
|
+
]), B = f ?? F, K = () => {
|
|
43576
43577
|
if (!H.current) {
|
|
43577
43578
|
N((E) => !E);
|
|
43578
43579
|
return;
|
|
43579
43580
|
}
|
|
43580
|
-
if (!
|
|
43581
|
-
const E = H.current.getBoundingClientRect(), ae = window.innerWidth,
|
|
43582
|
-
R(
|
|
43583
|
-
top: E.bottom -
|
|
43581
|
+
if (!P) {
|
|
43582
|
+
const E = H.current.getBoundingClientRect(), ae = window.innerWidth, de = window.innerHeight, ce = 200, ve = 200, Ie = 4, we = C?.x ?? 0, He = C?.y ?? 0, ye = ae - E.right >= ce + Ie;
|
|
43583
|
+
R(ye ? {
|
|
43584
|
+
top: E.bottom - ve + He,
|
|
43584
43585
|
left: E.right + Ie + we
|
|
43585
43586
|
} : {
|
|
43586
|
-
bottom:
|
|
43587
|
+
bottom: de - E.top + He,
|
|
43587
43588
|
left: E.left + we
|
|
43588
43589
|
});
|
|
43589
43590
|
}
|
|
43590
43591
|
N((E) => !E);
|
|
43591
43592
|
};
|
|
43592
43593
|
if (O(() => {
|
|
43593
|
-
if (!
|
|
43594
|
+
if (!P || !H.current) return;
|
|
43594
43595
|
const E = () => {
|
|
43595
|
-
const ae = H.current.getBoundingClientRect(),
|
|
43596
|
+
const ae = H.current.getBoundingClientRect(), de = window.innerWidth, ce = window.innerHeight, ve = 200, Ie = 200, we = 4, He = C?.x ?? 0, Ve = C?.y ?? 0, Se = de - ae.right >= ve + we;
|
|
43596
43597
|
R(Se ? {
|
|
43597
43598
|
top: ae.bottom - Ie + Ve,
|
|
43598
43599
|
left: ae.right + we + He
|
|
43599
43600
|
} : {
|
|
43600
|
-
bottom:
|
|
43601
|
+
bottom: ce - ae.top + Ve,
|
|
43601
43602
|
left: ae.left + He
|
|
43602
43603
|
});
|
|
43603
43604
|
};
|
|
43604
43605
|
return window.addEventListener("resize", E), window.addEventListener("orientationchange", E), () => {
|
|
43605
43606
|
window.removeEventListener("resize", E), window.removeEventListener("orientationchange", E);
|
|
43606
43607
|
};
|
|
43607
|
-
}, [
|
|
43608
|
-
if (!
|
|
43608
|
+
}, [P, C]), O(() => {
|
|
43609
|
+
if (!P || !H.current || !T.current) return;
|
|
43609
43610
|
const E = () => {
|
|
43610
|
-
const
|
|
43611
|
-
R((we) => we.left !== void 0 && we.top !== void 0 && we.left >=
|
|
43612
|
-
top:
|
|
43613
|
-
left: we.left +
|
|
43611
|
+
const de = H.current.getBoundingClientRect(), ce = T.current.getBoundingClientRect(), ve = C?.x ?? 0, Ie = C?.y ?? 0;
|
|
43612
|
+
R((we) => we.left !== void 0 && we.top !== void 0 && we.left >= de.right - 1 ? {
|
|
43613
|
+
top: de.bottom - ce.height + Ie,
|
|
43614
|
+
left: we.left + ve
|
|
43614
43615
|
} : we);
|
|
43615
43616
|
}, ae = requestAnimationFrame(() => {
|
|
43616
43617
|
setTimeout(E, 0);
|
|
43617
43618
|
});
|
|
43618
43619
|
return () => cancelAnimationFrame(ae);
|
|
43619
|
-
}, [
|
|
43620
|
-
const
|
|
43621
|
-
const E = parseInt(h, 10) || 40, ae = Math.max(8, E * 0.34375),
|
|
43620
|
+
}, [P, C]), !$) return null;
|
|
43621
|
+
const J = $, oe = parseInt(h, 10) || 40, Q = `${oe * 0.375}px`, Ne = `${oe * 1.375}px`, Me = `${oe * 0.2}px`, je = `${oe * 0.6}px`, le = () => {
|
|
43622
|
+
const E = parseInt(h, 10) || 40, ae = Math.max(8, E * 0.34375), de = Math.max(2, E * 0.05);
|
|
43622
43623
|
return /* @__PURE__ */ v(Ue, { children: [
|
|
43623
43624
|
/* @__PURE__ */ v("div", { style: { position: "relative", flexShrink: 0, userSelect: "none" }, children: [
|
|
43624
|
-
|
|
43625
|
+
J.image ? /* @__PURE__ */ s(
|
|
43625
43626
|
"img",
|
|
43626
43627
|
{
|
|
43627
|
-
src:
|
|
43628
|
-
alt: `${
|
|
43628
|
+
src: J.image,
|
|
43629
|
+
alt: `${J.prenom} ${J.nom}`,
|
|
43629
43630
|
style: {
|
|
43630
43631
|
width: h,
|
|
43631
43632
|
height: h,
|
|
@@ -43689,8 +43690,8 @@ const q6e = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
|
|
|
43689
43690
|
{
|
|
43690
43691
|
style: {
|
|
43691
43692
|
position: "absolute",
|
|
43692
|
-
bottom:
|
|
43693
|
-
right:
|
|
43693
|
+
bottom: de,
|
|
43694
|
+
right: de,
|
|
43694
43695
|
width: `${ae}px`,
|
|
43695
43696
|
height: `${ae}px`,
|
|
43696
43697
|
borderRadius: "50%",
|
|
@@ -43712,8 +43713,8 @@ const q6e = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
|
|
|
43712
43713
|
textOverflow: "ellipsis",
|
|
43713
43714
|
whiteSpace: "nowrap"
|
|
43714
43715
|
},
|
|
43715
|
-
title:
|
|
43716
|
-
children:
|
|
43716
|
+
title: J.email,
|
|
43717
|
+
children: J.email
|
|
43717
43718
|
}
|
|
43718
43719
|
),
|
|
43719
43720
|
/* @__PURE__ */ s(
|
|
@@ -43727,8 +43728,8 @@ const q6e = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
|
|
|
43727
43728
|
textOverflow: "ellipsis",
|
|
43728
43729
|
whiteSpace: "nowrap"
|
|
43729
43730
|
},
|
|
43730
|
-
title:
|
|
43731
|
-
children:
|
|
43731
|
+
title: J.role,
|
|
43732
|
+
children: J.role
|
|
43732
43733
|
}
|
|
43733
43734
|
)
|
|
43734
43735
|
] })
|
|
@@ -43754,20 +43755,20 @@ const q6e = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
|
|
|
43754
43755
|
userSelect: "none",
|
|
43755
43756
|
...x
|
|
43756
43757
|
},
|
|
43757
|
-
onClick:
|
|
43758
|
-
title: ee(L,
|
|
43758
|
+
onClick: K,
|
|
43759
|
+
title: ee(L, J.role),
|
|
43759
43760
|
role: "button",
|
|
43760
43761
|
tabIndex: 0,
|
|
43761
|
-
children: /* @__PURE__ */ s("div", { style: { display: "flex", alignItems: "center", gap: u, flex: 1, minWidth: 0 }, children: /* @__PURE__ */ s(
|
|
43762
|
+
children: /* @__PURE__ */ s("div", { style: { display: "flex", alignItems: "center", gap: u, flex: 1, minWidth: 0 }, children: /* @__PURE__ */ s(le, {}) })
|
|
43762
43763
|
}
|
|
43763
43764
|
),
|
|
43764
43765
|
/* @__PURE__ */ s(
|
|
43765
43766
|
Tme,
|
|
43766
43767
|
{
|
|
43767
43768
|
ref: T,
|
|
43768
|
-
isVisible:
|
|
43769
|
+
isVisible: P,
|
|
43769
43770
|
onClose: () => N(!1),
|
|
43770
|
-
items:
|
|
43771
|
+
items: B,
|
|
43771
43772
|
style: w,
|
|
43772
43773
|
position: z
|
|
43773
43774
|
}
|
|
@@ -43892,9 +43893,10 @@ const q6e = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
|
|
|
43892
43893
|
className: A = "",
|
|
43893
43894
|
width: q = "280px",
|
|
43894
43895
|
showLogo: H = !0,
|
|
43895
|
-
versionA11yConfig: T
|
|
43896
|
+
versionA11yConfig: T,
|
|
43897
|
+
displayNone: P = !1
|
|
43896
43898
|
}) => {
|
|
43897
|
-
const
|
|
43899
|
+
const N = Lt(), z = N.activeNav, R = N.setActiveNav, F = N.user, B = S.user || F;
|
|
43898
43900
|
return /* @__PURE__ */ v(
|
|
43899
43901
|
"div",
|
|
43900
43902
|
{
|
|
@@ -43903,17 +43905,18 @@ const q6e = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
|
|
|
43903
43905
|
width: q,
|
|
43904
43906
|
backgroundColor: r,
|
|
43905
43907
|
padding: o,
|
|
43908
|
+
display: P ? "none" : "flex",
|
|
43906
43909
|
...$
|
|
43907
43910
|
},
|
|
43908
43911
|
children: [
|
|
43909
43912
|
/* @__PURE__ */ v("div", { className: ft.topSection, style: { gap: t }, children: [
|
|
43910
43913
|
H && /* @__PURE__ */ s("div", { className: ft.logoContainer, children: /* @__PURE__ */ s(uC, { ...e }) }),
|
|
43911
|
-
/* @__PURE__ */ s("div", { className: ft.sectionsContainer, style: { gap: i }, children: n.map((
|
|
43912
|
-
|
|
43914
|
+
/* @__PURE__ */ s("div", { className: ft.sectionsContainer, style: { gap: i }, children: n.map((K, J) => /* @__PURE__ */ v("div", { className: ft.section, children: [
|
|
43915
|
+
K.title && /* @__PURE__ */ s(
|
|
43913
43916
|
"div",
|
|
43914
43917
|
{
|
|
43915
43918
|
className: ft.sectionTitle,
|
|
43916
|
-
title: ee(
|
|
43919
|
+
title: ee(K.a11yConfig, K.titleKey),
|
|
43917
43920
|
style: {
|
|
43918
43921
|
fontSize: w,
|
|
43919
43922
|
color: C,
|
|
@@ -43922,16 +43925,16 @@ const q6e = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
|
|
|
43922
43925
|
border: "4px solid transparent",
|
|
43923
43926
|
...p
|
|
43924
43927
|
},
|
|
43925
|
-
children:
|
|
43928
|
+
children: K.title
|
|
43926
43929
|
}
|
|
43927
43930
|
),
|
|
43928
|
-
/* @__PURE__ */ s("div", { className: ft.sectionItems, style: { gap: c }, children:
|
|
43931
|
+
/* @__PURE__ */ s("div", { className: ft.sectionItems, style: { gap: c }, children: K.items.map((oe) => /* @__PURE__ */ s(
|
|
43929
43932
|
IA,
|
|
43930
43933
|
{
|
|
43931
|
-
...
|
|
43932
|
-
isActive:
|
|
43934
|
+
...oe,
|
|
43935
|
+
isActive: oe.isActive === null ? oe.isActive : z === oe.id,
|
|
43933
43936
|
onClick: () => {
|
|
43934
|
-
|
|
43937
|
+
oe.onClick && oe.onClick(), oe.isActive == null && R(oe.id);
|
|
43935
43938
|
},
|
|
43936
43939
|
highlightColor: d,
|
|
43937
43940
|
activeColor: d,
|
|
@@ -43944,12 +43947,12 @@ const q6e = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
|
|
|
43944
43947
|
color: _,
|
|
43945
43948
|
style: u
|
|
43946
43949
|
},
|
|
43947
|
-
|
|
43950
|
+
oe.id
|
|
43948
43951
|
)) })
|
|
43949
|
-
] },
|
|
43952
|
+
] }, J)) })
|
|
43950
43953
|
] }),
|
|
43951
43954
|
/* @__PURE__ */ v("div", { className: ft.bottomSection, style: { gap: t }, children: [
|
|
43952
|
-
/* @__PURE__ */ s(Dme, { ...S, user:
|
|
43955
|
+
/* @__PURE__ */ s(Dme, { ...S, user: B }),
|
|
43953
43956
|
h && /* @__PURE__ */ s(
|
|
43954
43957
|
"div",
|
|
43955
43958
|
{
|
|
@@ -44121,7 +44124,7 @@ const q6e = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
|
|
|
44121
44124
|
itemIcon: u8e,
|
|
44122
44125
|
chevron: y8e,
|
|
44123
44126
|
chevronOpen: k8e
|
|
44124
|
-
}, m8e = (e) => /* @__PURE__ */
|
|
44127
|
+
}, m8e = (e) => /* @__PURE__ */ Y.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 -960 960 960", ...e }, /* @__PURE__ */ Y.createElement("path", { d: "M480-344 240-584l43-43 197 197 197-197 43 43z" })), Fi = ze(m8e), f8e = ({
|
|
44125
44128
|
groups: e,
|
|
44126
44129
|
activeItemId: t,
|
|
44127
44130
|
onItemClick: n,
|
|
@@ -44151,8 +44154,8 @@ const q6e = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
|
|
|
44151
44154
|
}) => {
|
|
44152
44155
|
const [$, A] = j(""), q = W(null);
|
|
44153
44156
|
O(() => {
|
|
44154
|
-
const T = (
|
|
44155
|
-
q.current && !q.current.contains(
|
|
44157
|
+
const T = (P) => {
|
|
44158
|
+
q.current && !q.current.contains(P.target) && A("");
|
|
44156
44159
|
};
|
|
44157
44160
|
return document.addEventListener("mousedown", T), () => document.removeEventListener("mousedown", T);
|
|
44158
44161
|
}, []);
|
|
@@ -44169,7 +44172,7 @@ const q6e = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
|
|
|
44169
44172
|
className: [gt.container, i].filter(Boolean).join(" "),
|
|
44170
44173
|
style: H,
|
|
44171
44174
|
children: e.map((T) => {
|
|
44172
|
-
const
|
|
44175
|
+
const P = $ === T.id, N = {
|
|
44173
44176
|
backgroundColor: d,
|
|
44174
44177
|
color: l,
|
|
44175
44178
|
padding: L,
|
|
@@ -44184,9 +44187,9 @@ const q6e = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
|
|
|
44184
44187
|
{
|
|
44185
44188
|
className: gt.groupHeader,
|
|
44186
44189
|
style: N,
|
|
44187
|
-
onClick: () => A(
|
|
44190
|
+
onClick: () => A(P ? "" : T.id),
|
|
44188
44191
|
role: "button",
|
|
44189
|
-
"aria-expanded":
|
|
44192
|
+
"aria-expanded": P,
|
|
44190
44193
|
children: [
|
|
44191
44194
|
/* @__PURE__ */ v("div", { className: gt.groupHeaderLeft, style: { gap: b }, children: [
|
|
44192
44195
|
T.icon && /* @__PURE__ */ s(
|
|
@@ -44202,7 +44205,7 @@ const q6e = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
|
|
|
44202
44205
|
/* @__PURE__ */ s(
|
|
44203
44206
|
"span",
|
|
44204
44207
|
{
|
|
44205
|
-
className: [gt.chevron,
|
|
44208
|
+
className: [gt.chevron, P ? gt.chevronOpen : ""].join(" "),
|
|
44206
44209
|
style: { color: C },
|
|
44207
44210
|
children: /* @__PURE__ */ s(Fi, { width: 18, height: 18 })
|
|
44208
44211
|
}
|
|
@@ -44210,8 +44213,8 @@ const q6e = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
|
|
|
44210
44213
|
]
|
|
44211
44214
|
}
|
|
44212
44215
|
),
|
|
44213
|
-
|
|
44214
|
-
const F = R.id === t,
|
|
44216
|
+
P && /* @__PURE__ */ s("div", { className: gt.dropdown, style: z, children: T.items.map((R) => {
|
|
44217
|
+
const F = R.id === t, B = {
|
|
44215
44218
|
padding: x,
|
|
44216
44219
|
gap: b,
|
|
44217
44220
|
color: F ? g : k,
|
|
@@ -44224,13 +44227,13 @@ const q6e = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
|
|
|
44224
44227
|
"div",
|
|
44225
44228
|
{
|
|
44226
44229
|
className: gt.item,
|
|
44227
|
-
style:
|
|
44230
|
+
style: B,
|
|
44228
44231
|
onClick: () => {
|
|
44229
44232
|
n?.(T.id, R.id), A("");
|
|
44230
44233
|
},
|
|
44231
44234
|
role: "menuitem",
|
|
44232
|
-
onMouseEnter: (
|
|
44233
|
-
F || (
|
|
44235
|
+
onMouseEnter: (K) => {
|
|
44236
|
+
F || (K.currentTarget.style.backgroundColor = y);
|
|
44234
44237
|
},
|
|
44235
44238
|
children: [
|
|
44236
44239
|
R.icon && /* @__PURE__ */ s(
|
|
@@ -44293,18 +44296,18 @@ const q6e = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
|
|
|
44293
44296
|
navContainerStyle: q,
|
|
44294
44297
|
rightContentClassName: H,
|
|
44295
44298
|
rightContentStyle: T,
|
|
44296
|
-
rightActions:
|
|
44299
|
+
rightActions: P,
|
|
44297
44300
|
activeSwitcherColor: N,
|
|
44298
44301
|
inactiveSwitcherColor: z,
|
|
44299
44302
|
isMobile: R = !1,
|
|
44300
44303
|
onNavigate: F
|
|
44301
44304
|
}) => {
|
|
44302
|
-
const { activeSubNav:
|
|
44305
|
+
const { activeSubNav: B, setActiveSubNav: K, navCounts: J, activeNav: oe } = Lt();
|
|
44303
44306
|
if (R) {
|
|
44304
|
-
const Q = e.find((Me) => Me.id ===
|
|
44307
|
+
const Q = e.find((Me) => Me.id === B) || e[0], Ne = [
|
|
44305
44308
|
{
|
|
44306
44309
|
id: "current-group",
|
|
44307
|
-
label: Q?.label ||
|
|
44310
|
+
label: Q?.label || oe?.toUpperCase() || "MENU",
|
|
44308
44311
|
icon: Q?.icon,
|
|
44309
44312
|
items: e.map((Me) => ({
|
|
44310
44313
|
id: Me.id,
|
|
@@ -44317,10 +44320,10 @@ const q6e = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
|
|
|
44317
44320
|
f8e,
|
|
44318
44321
|
{
|
|
44319
44322
|
groups: Ne,
|
|
44320
|
-
activeItemId:
|
|
44323
|
+
activeItemId: B,
|
|
44321
44324
|
onItemClick: (Me, je) => {
|
|
44322
|
-
const
|
|
44323
|
-
|
|
44325
|
+
const le = e.find((E) => E.id === je);
|
|
44326
|
+
le && (le.onClick && le.onClick(), le.href && (F ? F(le.href) : le.onNavigate ? le.onNavigate(le.href) : window.location.href = le.href), K(je));
|
|
44324
44327
|
},
|
|
44325
44328
|
headerBgColor: t
|
|
44326
44329
|
}
|
|
@@ -44347,7 +44350,7 @@ const q6e = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
|
|
|
44347
44350
|
className: `${jL.navContainer} ${A || ""}`,
|
|
44348
44351
|
style: { gap: l, ...q },
|
|
44349
44352
|
children: e.map((Q) => {
|
|
44350
|
-
const Ne = Q.count !== void 0 ? Q.count :
|
|
44353
|
+
const Ne = Q.count !== void 0 ? Q.count : J[Q.id], Me = B === Q.id || Q.isActive;
|
|
44351
44354
|
return /* @__PURE__ */ s(
|
|
44352
44355
|
c8e,
|
|
44353
44356
|
{
|
|
@@ -44356,7 +44359,7 @@ const q6e = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
|
|
|
44356
44359
|
count: Ne,
|
|
44357
44360
|
isActive: Me,
|
|
44358
44361
|
onClick: () => {
|
|
44359
|
-
Q.onClick && Q.onClick(),
|
|
44362
|
+
Q.onClick && Q.onClick(), K(Q.id);
|
|
44360
44363
|
},
|
|
44361
44364
|
activeColor: k,
|
|
44362
44365
|
inactiveColor: g,
|
|
@@ -44421,7 +44424,7 @@ const q6e = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
|
|
|
44421
44424
|
}
|
|
44422
44425
|
}
|
|
44423
44426
|
),
|
|
44424
|
-
|
|
44427
|
+
P
|
|
44425
44428
|
]
|
|
44426
44429
|
}
|
|
44427
44430
|
)
|
|
@@ -44531,7 +44534,7 @@ const q6e = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
|
|
|
44531
44534
|
tableState: o,
|
|
44532
44535
|
handleSort: c
|
|
44533
44536
|
};
|
|
44534
|
-
}, x8e = (e) => /* @__PURE__ */
|
|
44537
|
+
}, x8e = (e) => /* @__PURE__ */ Y.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", fill: "#FFF", viewBox: "0 -960 960 960", ...e }, /* @__PURE__ */ Y.createElement("path", { d: "M440-800v487L216-537l-56 57 320 320 320-320-56-57-224 224v-487z" })), w8e = ze(x8e), b8e = (e) => /* @__PURE__ */ Y.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", fill: "#FFF", viewBox: "0 -960 960 960", ...e }, /* @__PURE__ */ Y.createElement("path", { d: "M440-160v-487L216-423l-56-57 320-320 320 320-56 57-224-224v487z" })), L8e = ze(b8e), C8e = ({
|
|
44535
44538
|
columns: e,
|
|
44536
44539
|
sortBy: t,
|
|
44537
44540
|
sortOrder: n,
|
|
@@ -44630,7 +44633,7 @@ const q6e = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
|
|
|
44630
44633
|
}) => {
|
|
44631
44634
|
const { page: d, pageSize: l, total: h } = e, p = l === -1 ? h : l, u = Math.ceil(h / p) || 1, y = Math.min(Math.max(1, d), u), k = h === 0 ? 0 : (y - 1) * p + 1, g = Math.min(y * p, h), m = (_) => {
|
|
44632
44635
|
t({ page: _ });
|
|
44633
|
-
}, M =
|
|
44636
|
+
}, M = ge(() => {
|
|
44634
44637
|
if (u <= 6)
|
|
44635
44638
|
return Array.from({ length: u }, (S, $) => $ + 1);
|
|
44636
44639
|
const w = Math.max(y - 1, 1), C = Math.min(y + 1, u), I = w > 2, L = C < u - 2, x = 1, b = u;
|
|
@@ -44769,21 +44772,21 @@ const q6e = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
|
|
|
44769
44772
|
), S = te.useRef(null);
|
|
44770
44773
|
te.useEffect(() => {
|
|
44771
44774
|
if (!k || !y || !g || n) return;
|
|
44772
|
-
const
|
|
44775
|
+
const P = new IntersectionObserver(
|
|
44773
44776
|
(N) => {
|
|
44774
44777
|
N[0].isIntersecting && y();
|
|
44775
44778
|
},
|
|
44776
44779
|
{ threshold: 0.1 }
|
|
44777
44780
|
);
|
|
44778
|
-
return S.current &&
|
|
44781
|
+
return S.current && P.observe(S.current), () => P.disconnect();
|
|
44779
44782
|
}, [k, y, g, n]);
|
|
44780
44783
|
const { tableState: $, handleSort: A } = _8e({
|
|
44781
44784
|
initialSortBy: null,
|
|
44782
44785
|
onSortChange: c
|
|
44783
|
-
}), q = (m?.sortBy !== void 0 ? m.sortBy : $.sortBy) ?? void 0, H = m?.sortOrder !== void 0 ? m.sortOrder : $.sortOrder, T = (
|
|
44786
|
+
}), q = (m?.sortBy !== void 0 ? m.sortBy : $.sortBy) ?? void 0, H = m?.sortOrder !== void 0 ? m.sortOrder : $.sortOrder, T = (P) => {
|
|
44784
44787
|
const N = q, z = H;
|
|
44785
44788
|
let R = "asc";
|
|
44786
|
-
N ===
|
|
44789
|
+
N === P && (R = z === "asc" ? "desc" : "asc"), m?.sortBy !== void 0 ? c(P, R) : A(P);
|
|
44787
44790
|
};
|
|
44788
44791
|
return /* @__PURE__ */ v(
|
|
44789
44792
|
"div",
|
|
@@ -44829,9 +44832,9 @@ const q6e = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
|
|
|
44829
44832
|
I8e,
|
|
44830
44833
|
{
|
|
44831
44834
|
data: e,
|
|
44832
|
-
columns: t.map((
|
|
44833
|
-
...
|
|
44834
|
-
render:
|
|
44835
|
+
columns: t.map((P) => ({
|
|
44836
|
+
...P,
|
|
44837
|
+
render: P.render ? (N) => P.render(N, {}) : void 0
|
|
44835
44838
|
})),
|
|
44836
44839
|
rowKey: r,
|
|
44837
44840
|
onRowClick: w,
|
|
@@ -44949,35 +44952,35 @@ const q6e = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
|
|
|
44949
44952
|
borderRadius: q = "var(--radius-content)",
|
|
44950
44953
|
borderWidth: H = "0.0625rem",
|
|
44951
44954
|
boxShadow: T = "0 0.25rem 0.75rem rgba(0, 0, 0, 0.1)",
|
|
44952
|
-
transitionDuration:
|
|
44955
|
+
transitionDuration: P = "0.2s",
|
|
44953
44956
|
transitionTiming: N = "ease",
|
|
44954
44957
|
dateCellSize: z = "2.5rem",
|
|
44955
44958
|
headerTextColor: R = "#6c757d",
|
|
44956
44959
|
weekdayTextColor: F = "#6c757d",
|
|
44957
|
-
currentMonthDateColor:
|
|
44958
|
-
otherMonthDateColor:
|
|
44959
|
-
selectedDateBgColor:
|
|
44960
|
-
selectedDateTextColor:
|
|
44960
|
+
currentMonthDateColor: B = "#212529",
|
|
44961
|
+
otherMonthDateColor: K = "#adb5bd",
|
|
44962
|
+
selectedDateBgColor: J = "#00A6D9",
|
|
44963
|
+
selectedDateTextColor: oe = "#ffffff",
|
|
44961
44964
|
cancelButtonBgColor: Q = "#e9ecef",
|
|
44962
44965
|
cancelButtonTextColor: Ne = "#212529",
|
|
44963
44966
|
applyButtonBgColor: Me = "#00A6D9",
|
|
44964
44967
|
applyButtonTextColor: je = "#ffffff",
|
|
44965
|
-
width:
|
|
44968
|
+
width: le,
|
|
44966
44969
|
displayNode: E = void 0,
|
|
44967
44970
|
displayMode: ae = "auto",
|
|
44968
|
-
displayNodeAriaLabel:
|
|
44969
|
-
dropdownPosition:
|
|
44970
|
-
dropdownAlignment:
|
|
44971
|
+
displayNodeAriaLabel: de,
|
|
44972
|
+
dropdownPosition: ce = "bottom",
|
|
44973
|
+
dropdownAlignment: ve = "right",
|
|
44971
44974
|
dropdownWidth: Ie,
|
|
44972
44975
|
withBorder: we = !1,
|
|
44973
44976
|
icon: He,
|
|
44974
44977
|
precision: Ve = "day",
|
|
44975
|
-
hoursLabel:
|
|
44978
|
+
hoursLabel: ye = "Heures",
|
|
44976
44979
|
minutesLabel: Se = "Minutes",
|
|
44977
44980
|
lowerLimit: It = null,
|
|
44978
44981
|
upperLimit: ui = null,
|
|
44979
44982
|
months: Ro,
|
|
44980
|
-
weekdays:
|
|
44983
|
+
weekdays: ie,
|
|
44981
44984
|
cancelText: Fo = "Annuler",
|
|
44982
44985
|
applyText: _e = "Appliquer",
|
|
44983
44986
|
prevMonthAriaLabel: Ft = "Mois précédent",
|
|
@@ -44987,32 +44990,32 @@ const q6e = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
|
|
|
44987
44990
|
selectedDateAriaLabel: zA = "Date sélectionnée: ",
|
|
44988
44991
|
locale: QC = "fr-FR"
|
|
44989
44992
|
}) => {
|
|
44990
|
-
const Ot = (
|
|
44991
|
-
if (
|
|
44992
|
-
if (typeof
|
|
44993
|
-
const X = new Date(
|
|
44993
|
+
const Ot = (D) => {
|
|
44994
|
+
if (D instanceof Date) return isNaN(D.getTime()) ? null : D;
|
|
44995
|
+
if (typeof D == "string" && D) {
|
|
44996
|
+
const X = new Date(D);
|
|
44994
44997
|
return isNaN(X.getTime()) ? null : X;
|
|
44995
44998
|
}
|
|
44996
44999
|
return null;
|
|
44997
|
-
}, [st, Et] = j(!1), [Oo, VA] = j({ top: 0, left: 0, width: 0 }), [
|
|
45000
|
+
}, [st, Et] = j(!1), [Oo, VA] = j({ top: 0, left: 0, width: 0 }), [re, yi] = j(Ot(e) || /* @__PURE__ */ new Date()), [Sw, $w] = j(Ot(e)), [qw, Aw] = j(Ot(e)?.getHours() ?? 0), [zw, Vw] = j(Ot(e)?.getMinutes() ?? 0), [Pw, Eo] = j(!1), [jw, Uo] = j(!1), Hw = W(null), ec = W(null), Tw = W(null), Dw = W(null);
|
|
44998
45001
|
O(() => {
|
|
44999
|
-
const
|
|
45000
|
-
$w(
|
|
45002
|
+
const D = Ot(e);
|
|
45003
|
+
$w(D), D && (yi(D), Aw(D.getHours()), Vw(D.getMinutes()));
|
|
45001
45004
|
}, [e]);
|
|
45002
45005
|
const Wo = De(() => {
|
|
45003
45006
|
if (ec.current) {
|
|
45004
|
-
const
|
|
45007
|
+
const D = ec.current.getBoundingClientRect();
|
|
45005
45008
|
VA({
|
|
45006
|
-
top:
|
|
45007
|
-
left:
|
|
45008
|
-
width:
|
|
45009
|
+
top: D.top,
|
|
45010
|
+
left: D.left,
|
|
45011
|
+
width: D.width
|
|
45009
45012
|
});
|
|
45010
45013
|
}
|
|
45011
45014
|
}, []);
|
|
45012
45015
|
O(() => (st && (Wo(), window.addEventListener("scroll", Wo, !0), window.addEventListener("resize", Wo)), () => {
|
|
45013
45016
|
window.removeEventListener("scroll", Wo, !0), window.removeEventListener("resize", Wo);
|
|
45014
45017
|
}), [st, Wo]), O(() => {
|
|
45015
|
-
const
|
|
45018
|
+
const D = (X) => {
|
|
45016
45019
|
if (Hw.current && !Hw.current.contains(X.target)) {
|
|
45017
45020
|
const Le = document.getElementById("datepicker-dropdown");
|
|
45018
45021
|
if (Le && Le.contains(X.target)) return;
|
|
@@ -45020,57 +45023,57 @@ const q6e = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
|
|
|
45020
45023
|
}
|
|
45021
45024
|
Tw.current && !Tw.current.contains(X.target) && Eo(!1), Dw.current && !Dw.current.contains(X.target) && Uo(!1);
|
|
45022
45025
|
};
|
|
45023
|
-
return document.addEventListener("mousedown",
|
|
45026
|
+
return document.addEventListener("mousedown", D), () => document.removeEventListener("mousedown", D);
|
|
45024
45027
|
}, []);
|
|
45025
|
-
const eI = (
|
|
45026
|
-
const X = new Date(
|
|
45028
|
+
const eI = (D) => new Date(D.getFullYear(), D.getMonth() + 1, 0).getDate(), PA = (D) => {
|
|
45029
|
+
const X = new Date(D.getFullYear(), D.getMonth(), 1).getDay();
|
|
45027
45030
|
return X === 0 ? 6 : X - 1;
|
|
45028
45031
|
}, jA = () => {
|
|
45029
|
-
const
|
|
45032
|
+
const D = [], X = PA(re), Le = eI(re), tc = new Date(re.getFullYear(), re.getMonth() - 1, 1), Nt = eI(tc);
|
|
45030
45033
|
for (let at = X - 1; at >= 0; at--)
|
|
45031
|
-
|
|
45034
|
+
D.push(new Date(re.getFullYear(), re.getMonth() - 1, Nt - at));
|
|
45032
45035
|
for (let at = 1; at <= Le; at++)
|
|
45033
|
-
|
|
45034
|
-
const ki = 42 -
|
|
45036
|
+
D.push(new Date(re.getFullYear(), re.getMonth(), at));
|
|
45037
|
+
const ki = 42 - D.length;
|
|
45035
45038
|
for (let at = 1; at <= ki; at++)
|
|
45036
|
-
|
|
45037
|
-
return
|
|
45038
|
-
}, HA = (
|
|
45039
|
-
yi(new Date(
|
|
45039
|
+
D.push(new Date(re.getFullYear(), re.getMonth() + 1, at));
|
|
45040
|
+
return D;
|
|
45041
|
+
}, HA = (D, X) => !D || !X ? !1 : D.getDate() === X.getDate() && D.getMonth() === X.getMonth() && D.getFullYear() === X.getFullYear(), TA = (D) => D.getMonth() === re.getMonth() && D.getFullYear() === re.getFullYear(), DA = () => {
|
|
45042
|
+
yi(new Date(re.getFullYear(), re.getMonth() - 1, 1));
|
|
45040
45043
|
}, BA = () => {
|
|
45041
|
-
yi(new Date(
|
|
45042
|
-
}, RA = (
|
|
45044
|
+
yi(new Date(re.getFullYear(), re.getMonth() + 1, 1));
|
|
45045
|
+
}, RA = (D) => {
|
|
45043
45046
|
if (!r) {
|
|
45044
|
-
const X = new Date(
|
|
45047
|
+
const X = new Date(D);
|
|
45045
45048
|
X.setHours(qw), X.setMinutes(zw), $w(X);
|
|
45046
45049
|
}
|
|
45047
45050
|
}, FA = () => {
|
|
45048
45051
|
if (!r) {
|
|
45049
45052
|
if (Sw) {
|
|
45050
|
-
const
|
|
45051
|
-
|
|
45053
|
+
const D = new Date(Sw);
|
|
45054
|
+
D.setHours(qw), D.setMinutes(zw), t(D);
|
|
45052
45055
|
} else
|
|
45053
45056
|
t(null);
|
|
45054
45057
|
Et(!1);
|
|
45055
45058
|
}
|
|
45056
45059
|
}, OA = () => {
|
|
45057
|
-
const
|
|
45058
|
-
$w(
|
|
45059
|
-
}, EA = (
|
|
45060
|
-
yi(new Date(
|
|
45061
|
-
}, UA = (
|
|
45062
|
-
yi(new Date(
|
|
45060
|
+
const D = Ot(e);
|
|
45061
|
+
$w(D), D && (Aw(D.getHours()), Vw(D.getMinutes())), Et(!1);
|
|
45062
|
+
}, EA = (D) => {
|
|
45063
|
+
yi(new Date(re.getFullYear(), D, 1)), Eo(!1);
|
|
45064
|
+
}, UA = (D) => {
|
|
45065
|
+
yi(new Date(D, re.getMonth(), 1)), Uo(!1);
|
|
45063
45066
|
}, WA = () => {
|
|
45064
|
-
const
|
|
45065
|
-
for (let Le =
|
|
45067
|
+
const D = re.getFullYear(), X = [];
|
|
45068
|
+
for (let Le = D - 10; Le <= D + 10; Le++)
|
|
45066
45069
|
X.push(Le);
|
|
45067
45070
|
return X;
|
|
45068
|
-
}, GA = (
|
|
45071
|
+
}, GA = (D) => {
|
|
45069
45072
|
if (!r)
|
|
45070
|
-
switch (
|
|
45073
|
+
switch (D.key) {
|
|
45071
45074
|
case "Enter":
|
|
45072
45075
|
case " ":
|
|
45073
|
-
|
|
45076
|
+
D.preventDefault(), Et(!st);
|
|
45074
45077
|
break;
|
|
45075
45078
|
case "Escape":
|
|
45076
45079
|
Et(!1), Eo(!1), Uo(!1);
|
|
@@ -45080,7 +45083,7 @@ const q6e = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
|
|
|
45080
45083
|
break;
|
|
45081
45084
|
}
|
|
45082
45085
|
}, ZA = {
|
|
45083
|
-
width:
|
|
45086
|
+
width: le || (c ? "100%" : "auto"),
|
|
45084
45087
|
fontSize: u,
|
|
45085
45088
|
fontWeight: _
|
|
45086
45089
|
}, KA = {
|
|
@@ -45093,19 +45096,19 @@ const q6e = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
|
|
|
45093
45096
|
borderRadius: q,
|
|
45094
45097
|
borderWidth: H,
|
|
45095
45098
|
fontWeight: _,
|
|
45096
|
-
transition: `all ${
|
|
45099
|
+
transition: `all ${P} ${N}`
|
|
45097
45100
|
}, XA = {
|
|
45098
45101
|
backgroundColor: I || "#ffffff",
|
|
45099
45102
|
maxHeight: p,
|
|
45100
45103
|
borderRadius: q,
|
|
45101
45104
|
borderWidth: H,
|
|
45102
45105
|
boxShadow: T,
|
|
45103
|
-
transition: `opacity ${
|
|
45106
|
+
transition: `opacity ${P} ${N}, transform ${P} ${N}`,
|
|
45104
45107
|
position: "fixed",
|
|
45105
|
-
top:
|
|
45106
|
-
bottom:
|
|
45107
|
-
left:
|
|
45108
|
-
right:
|
|
45108
|
+
top: ce === "bottom" ? Oo.top + (ec.current?.offsetHeight || 0) + parseFloat(m.replace("rem", "")) * 16 : "auto",
|
|
45109
|
+
bottom: ce === "top" ? window.innerHeight - Oo.top + parseFloat(m.replace("rem", "")) * 16 : "auto",
|
|
45110
|
+
left: ve === "left" ? Oo.left : "auto",
|
|
45111
|
+
right: ve === "right" ? window.innerWidth - (Oo.left + Oo.width) : "auto",
|
|
45109
45112
|
width: Ie || (c ? Oo.width : "auto"),
|
|
45110
45113
|
zIndex: 10001
|
|
45111
45114
|
}, tI = {
|
|
@@ -45122,7 +45125,7 @@ const q6e = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
|
|
|
45122
45125
|
}, QA = {
|
|
45123
45126
|
color: S || "#dc3545",
|
|
45124
45127
|
marginTop: g
|
|
45125
|
-
}, ez = jA(), dt = Ot(e), aI = dt ? Ve === "minutes" ? `${dt.toLocaleDateString(QC)} ${dt.getHours().toString().padStart(2, "0")}:${dt.getMinutes().toString().padStart(2, "0")}` : dt.toLocaleDateString(QC) : "", tz = !!E && (ae === "icon" || ae === "auto" && !dt), az =
|
|
45128
|
+
}, ez = jA(), dt = Ot(e), aI = dt ? Ve === "minutes" ? `${dt.toLocaleDateString(QC)} ${dt.getHours().toString().padStart(2, "0")}:${dt.getMinutes().toString().padStart(2, "0")}` : dt.toLocaleDateString(QC) : "", tz = !!E && (ae === "icon" || ae === "auto" && !dt), az = de || (dt ? `${zA}${aI}` : AA);
|
|
45126
45129
|
return /* @__PURE__ */ v(
|
|
45127
45130
|
"div",
|
|
45128
45131
|
{
|
|
@@ -45207,7 +45210,7 @@ const q6e = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
|
|
|
45207
45210
|
"--hover-color": L
|
|
45208
45211
|
},
|
|
45209
45212
|
children: [
|
|
45210
|
-
(Ro || g$)[
|
|
45213
|
+
(Ro || g$)[re.getMonth()],
|
|
45211
45214
|
/* @__PURE__ */ s(
|
|
45212
45215
|
Fi,
|
|
45213
45216
|
{
|
|
@@ -45219,23 +45222,23 @@ const q6e = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
|
|
|
45219
45222
|
]
|
|
45220
45223
|
}
|
|
45221
45224
|
),
|
|
45222
|
-
Pw && /* @__PURE__ */ s("div", { className: U.monthDropdown, children: (Ro || g$).map((
|
|
45225
|
+
Pw && /* @__PURE__ */ s("div", { className: U.monthDropdown, children: (Ro || g$).map((D, X) => /* @__PURE__ */ s(
|
|
45223
45226
|
"button",
|
|
45224
45227
|
{
|
|
45225
45228
|
type: "button",
|
|
45226
|
-
className: `${U.monthItem} ${
|
|
45229
|
+
className: `${U.monthItem} ${re.getMonth() === X ? U.monthItemSelected : ""}`,
|
|
45227
45230
|
onClick: () => EA(X),
|
|
45228
45231
|
style: {
|
|
45229
45232
|
padding: M,
|
|
45230
|
-
backgroundColor:
|
|
45233
|
+
backgroundColor: re.getMonth() === X ? x || "#e7f1ff" : I
|
|
45231
45234
|
},
|
|
45232
45235
|
onMouseEnter: (Le) => {
|
|
45233
|
-
L &&
|
|
45236
|
+
L && re.getMonth() !== X && (Le.currentTarget.style.backgroundColor = L);
|
|
45234
45237
|
},
|
|
45235
45238
|
onMouseLeave: (Le) => {
|
|
45236
|
-
L && (Le.currentTarget.style.backgroundColor =
|
|
45239
|
+
L && (Le.currentTarget.style.backgroundColor = re.getMonth() === X ? x || "#e7f1ff" : I);
|
|
45237
45240
|
},
|
|
45238
|
-
children:
|
|
45241
|
+
children: D
|
|
45239
45242
|
},
|
|
45240
45243
|
X
|
|
45241
45244
|
)) })
|
|
@@ -45252,7 +45255,7 @@ const q6e = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
|
|
|
45252
45255
|
"--hover-color": L
|
|
45253
45256
|
},
|
|
45254
45257
|
children: [
|
|
45255
|
-
|
|
45258
|
+
re.getFullYear(),
|
|
45256
45259
|
/* @__PURE__ */ s(
|
|
45257
45260
|
Fi,
|
|
45258
45261
|
{
|
|
@@ -45264,25 +45267,25 @@ const q6e = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
|
|
|
45264
45267
|
]
|
|
45265
45268
|
}
|
|
45266
45269
|
),
|
|
45267
|
-
jw && /* @__PURE__ */ s("div", { className: U.yearDropdown, children: WA().map((
|
|
45270
|
+
jw && /* @__PURE__ */ s("div", { className: U.yearDropdown, children: WA().map((D) => /* @__PURE__ */ s(
|
|
45268
45271
|
"button",
|
|
45269
45272
|
{
|
|
45270
45273
|
type: "button",
|
|
45271
|
-
className: `${U.yearItem} ${
|
|
45272
|
-
onClick: () => UA(
|
|
45274
|
+
className: `${U.yearItem} ${re.getFullYear() === D ? U.yearItemSelected : ""}`,
|
|
45275
|
+
onClick: () => UA(D),
|
|
45273
45276
|
style: {
|
|
45274
45277
|
padding: M,
|
|
45275
|
-
backgroundColor:
|
|
45278
|
+
backgroundColor: re.getFullYear() === D ? x || "#e7f1ff" : I
|
|
45276
45279
|
},
|
|
45277
45280
|
onMouseEnter: (X) => {
|
|
45278
|
-
L &&
|
|
45281
|
+
L && re.getFullYear() !== D && (X.currentTarget.style.backgroundColor = L);
|
|
45279
45282
|
},
|
|
45280
45283
|
onMouseLeave: (X) => {
|
|
45281
|
-
L && (X.currentTarget.style.backgroundColor =
|
|
45284
|
+
L && (X.currentTarget.style.backgroundColor = re.getFullYear() === D ? x || "#e7f1ff" : I);
|
|
45282
45285
|
},
|
|
45283
|
-
children:
|
|
45286
|
+
children: D
|
|
45284
45287
|
},
|
|
45285
|
-
|
|
45288
|
+
D
|
|
45286
45289
|
)) })
|
|
45287
45290
|
] })
|
|
45288
45291
|
] }),
|
|
@@ -45297,22 +45300,22 @@ const q6e = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
|
|
|
45297
45300
|
}
|
|
45298
45301
|
)
|
|
45299
45302
|
] }),
|
|
45300
|
-
/* @__PURE__ */ s("div", { className: U.weekdays, children: (
|
|
45301
|
-
/* @__PURE__ */ s("div", { className: U.calendarGrid, children: ez.map((
|
|
45302
|
-
if (!
|
|
45303
|
-
const Le = HA(
|
|
45303
|
+
/* @__PURE__ */ s("div", { className: U.weekdays, children: (ie || mfe).map((D) => /* @__PURE__ */ s("div", { className: U.weekday, style: { color: F }, children: D }, D)) }),
|
|
45304
|
+
/* @__PURE__ */ s("div", { className: U.calendarGrid, children: ez.map((D, X) => {
|
|
45305
|
+
if (!D) return null;
|
|
45306
|
+
const Le = HA(D, Sw), tc = TA(D), Nt = !!(It && D < It || ui && D > ui);
|
|
45304
45307
|
return /* @__PURE__ */ s(
|
|
45305
45308
|
"button",
|
|
45306
45309
|
{
|
|
45307
45310
|
type: "button",
|
|
45308
45311
|
className: `${U.dateCell} ${Le ? U.dateCellSelected : ""} ${Le ? U.dateCellOtherMonthSelected : ""} ${tc ? "" : U.dateCellOtherMonth} ${Nt ? U.dateCellDisabled : ""}`,
|
|
45309
|
-
onClick: () => !Nt && RA(
|
|
45312
|
+
onClick: () => !Nt && RA(D),
|
|
45310
45313
|
disabled: Nt,
|
|
45311
45314
|
style: {
|
|
45312
45315
|
width: z,
|
|
45313
45316
|
height: z,
|
|
45314
|
-
color: Le ?
|
|
45315
|
-
backgroundColor: Le ?
|
|
45317
|
+
color: Le ? oe : tc ? B : K,
|
|
45318
|
+
backgroundColor: Le ? J : "transparent",
|
|
45316
45319
|
opacity: Nt ? 0.4 : 1,
|
|
45317
45320
|
cursor: Nt ? "not-allowed" : "pointer"
|
|
45318
45321
|
},
|
|
@@ -45322,14 +45325,14 @@ const q6e = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
|
|
|
45322
45325
|
onMouseLeave: (ki) => {
|
|
45323
45326
|
Le || (ki.currentTarget.style.backgroundColor = "transparent");
|
|
45324
45327
|
},
|
|
45325
|
-
children:
|
|
45328
|
+
children: D.getDate()
|
|
45326
45329
|
},
|
|
45327
45330
|
X
|
|
45328
45331
|
);
|
|
45329
45332
|
}) }),
|
|
45330
45333
|
Ve === "minutes" && /* @__PURE__ */ v("div", { className: U.timePickerContainer, children: [
|
|
45331
45334
|
/* @__PURE__ */ v("div", { className: U.timeGroup, children: [
|
|
45332
|
-
/* @__PURE__ */ s("span", { className: U.timeLabel, children:
|
|
45335
|
+
/* @__PURE__ */ s("span", { className: U.timeLabel, children: ye }),
|
|
45333
45336
|
/* @__PURE__ */ s("div", { className: U.timeInputWrapper, children: /* @__PURE__ */ s(
|
|
45334
45337
|
"input",
|
|
45335
45338
|
{
|
|
@@ -45337,8 +45340,8 @@ const q6e = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
|
|
|
45337
45340
|
min: "0",
|
|
45338
45341
|
max: "23",
|
|
45339
45342
|
value: qw,
|
|
45340
|
-
onChange: (
|
|
45341
|
-
const X = parseInt(
|
|
45343
|
+
onChange: (D) => {
|
|
45344
|
+
const X = parseInt(D.target.value);
|
|
45342
45345
|
!isNaN(X) && X >= 0 && X <= 23 && Aw(X);
|
|
45343
45346
|
},
|
|
45344
45347
|
className: U.timeInput
|
|
@@ -45355,8 +45358,8 @@ const q6e = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
|
|
|
45355
45358
|
min: "0",
|
|
45356
45359
|
max: "59",
|
|
45357
45360
|
value: zw,
|
|
45358
|
-
onChange: (
|
|
45359
|
-
const X = parseInt(
|
|
45361
|
+
onChange: (D) => {
|
|
45362
|
+
const X = parseInt(D.target.value);
|
|
45360
45363
|
!isNaN(X) && X >= 0 && X <= 59 && Vw(X);
|
|
45361
45364
|
},
|
|
45362
45365
|
className: U.timeInput
|
|
@@ -45459,31 +45462,31 @@ const q6e = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
|
|
|
45459
45462
|
// Bordures et ombres
|
|
45460
45463
|
border: H,
|
|
45461
45464
|
borderRadius: T = "var(--select-border-radius, 0.5rem)",
|
|
45462
|
-
borderWidth:
|
|
45465
|
+
borderWidth: P = "var(--select-border-width, 0.0625rem)",
|
|
45463
45466
|
boxShadow: N = "var(--select-box-shadow, 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1))",
|
|
45464
45467
|
// Transitions
|
|
45465
45468
|
transitionDuration: z = "var(--select-transition-duration, 0.2s)",
|
|
45466
45469
|
transitionTiming: R = "var(--select-transition-timing, ease)",
|
|
45467
45470
|
// Scrollbars
|
|
45468
45471
|
scrollbarWidth: F = "var(--select-scrollbar-width, 0.375rem)",
|
|
45469
|
-
scrollbarTrackColor:
|
|
45470
|
-
scrollbarThumbColor:
|
|
45471
|
-
width:
|
|
45472
|
-
minWidth:
|
|
45472
|
+
scrollbarTrackColor: B = "var(--select-scrollbar-track-color, #f1f1f1)",
|
|
45473
|
+
scrollbarThumbColor: K = "var(--select-scrollbar-thumb-color, #c1c1c1)",
|
|
45474
|
+
width: J,
|
|
45475
|
+
minWidth: oe,
|
|
45473
45476
|
dropdownPosition: Q = "bottom",
|
|
45474
45477
|
dropdownAlignment: Ne = "right",
|
|
45475
45478
|
dropdownWidth: Me,
|
|
45476
45479
|
a11yConfig: je,
|
|
45477
|
-
titleKey:
|
|
45480
|
+
titleKey: le
|
|
45478
45481
|
}) => {
|
|
45479
|
-
const [E, ae] = j(!1),
|
|
45482
|
+
const [E, ae] = j(!1), de = W(null), ce = e.find((_e) => _e.value === t);
|
|
45480
45483
|
O(() => {
|
|
45481
45484
|
const _e = (Ft) => {
|
|
45482
|
-
|
|
45485
|
+
de.current && !de.current.contains(Ft.target) && ae(!1);
|
|
45483
45486
|
};
|
|
45484
45487
|
return document.addEventListener("mousedown", _e), () => document.removeEventListener("mousedown", _e);
|
|
45485
45488
|
}, []);
|
|
45486
|
-
const
|
|
45489
|
+
const ve = (_e) => {
|
|
45487
45490
|
d || (n(_e), ae(!1));
|
|
45488
45491
|
}, Ie = (_e) => {
|
|
45489
45492
|
if (!d)
|
|
@@ -45500,8 +45503,8 @@ const q6e = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
|
|
|
45500
45503
|
break;
|
|
45501
45504
|
}
|
|
45502
45505
|
}, we = {
|
|
45503
|
-
width:
|
|
45504
|
-
minWidth:
|
|
45506
|
+
width: J || (r ? "100%" : "auto"),
|
|
45507
|
+
minWidth: oe,
|
|
45505
45508
|
fontSize: y
|
|
45506
45509
|
}, He = {
|
|
45507
45510
|
height: h,
|
|
@@ -45511,13 +45514,13 @@ const q6e = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
|
|
|
45511
45514
|
borderColor: l ? $ || "var(--select-error-color, #dc3545)" : C || "var(--select-button-border-color, #dee2e6)",
|
|
45512
45515
|
color: I || "var(--select-button-text-color, #212529)",
|
|
45513
45516
|
borderRadius: T,
|
|
45514
|
-
borderWidth:
|
|
45517
|
+
borderWidth: P,
|
|
45515
45518
|
transition: `all ${z} ${R}`
|
|
45516
45519
|
}, Ve = {
|
|
45517
45520
|
backgroundColor: L || "var(--select-dropdown-bg-color, #ffffff)",
|
|
45518
45521
|
maxHeight: u,
|
|
45519
45522
|
borderRadius: T,
|
|
45520
|
-
borderWidth:
|
|
45523
|
+
borderWidth: P,
|
|
45521
45524
|
boxShadow: N,
|
|
45522
45525
|
transition: `opacity ${z} ${R}, transform ${z} ${R}`,
|
|
45523
45526
|
position: "absolute",
|
|
@@ -45529,7 +45532,7 @@ const q6e = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
|
|
|
45529
45532
|
marginTop: Q === "bottom" ? M : 0,
|
|
45530
45533
|
marginBottom: Q === "top" ? M : 0,
|
|
45531
45534
|
zIndex: 1001
|
|
45532
|
-
},
|
|
45535
|
+
}, ye = {
|
|
45533
45536
|
width: k,
|
|
45534
45537
|
height: k,
|
|
45535
45538
|
color: S || "var(--select-icon-color, #6c757d)",
|
|
@@ -45545,23 +45548,23 @@ const q6e = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
|
|
|
45545
45548
|
}, Ro = {
|
|
45546
45549
|
padding: _,
|
|
45547
45550
|
transition: `background-color ${z} ${R}`
|
|
45548
|
-
},
|
|
45551
|
+
}, ie = {
|
|
45549
45552
|
gap: f
|
|
45550
45553
|
}, Fo = {
|
|
45551
45554
|
"--scrollbar-width": F,
|
|
45552
|
-
"--scrollbar-track-color":
|
|
45553
|
-
"--scrollbar-thumb-color":
|
|
45555
|
+
"--scrollbar-track-color": B,
|
|
45556
|
+
"--scrollbar-thumb-color": K
|
|
45554
45557
|
};
|
|
45555
45558
|
return /* @__PURE__ */ v(
|
|
45556
45559
|
"div",
|
|
45557
45560
|
{
|
|
45558
45561
|
className: `${Ce.selectContainer} ${c}`,
|
|
45559
|
-
ref:
|
|
45562
|
+
ref: de,
|
|
45560
45563
|
style: we,
|
|
45561
45564
|
"data-fullwidth": r,
|
|
45562
45565
|
"data-disabled": d,
|
|
45563
45566
|
"data-error": !!l,
|
|
45564
|
-
title: ee(je,
|
|
45567
|
+
title: ee(je, le),
|
|
45565
45568
|
children: [
|
|
45566
45569
|
o && /* @__PURE__ */ s("label", { className: Ce.label, style: Se, children: o }),
|
|
45567
45570
|
/* @__PURE__ */ v(
|
|
@@ -45581,14 +45584,14 @@ const q6e = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
|
|
|
45581
45584
|
"aria-haspopup": "listbox",
|
|
45582
45585
|
"aria-labelledby": o ? `${o}-label` : void 0,
|
|
45583
45586
|
children: [
|
|
45584
|
-
/* @__PURE__ */ v("div", { className: Ce.selectButtonContent, style:
|
|
45585
|
-
|
|
45587
|
+
/* @__PURE__ */ v("div", { className: Ce.selectButtonContent, style: ie, children: [
|
|
45588
|
+
ce?.icon && /* @__PURE__ */ s("span", { className: Ce.selectIcon, style: ye, children: ce.icon }),
|
|
45586
45589
|
/* @__PURE__ */ s(
|
|
45587
45590
|
"span",
|
|
45588
45591
|
{
|
|
45589
|
-
className: `${Ce.selectLabel} ${
|
|
45590
|
-
style:
|
|
45591
|
-
children:
|
|
45592
|
+
className: `${Ce.selectLabel} ${ce ? "" : Ce.placeholder}`,
|
|
45593
|
+
style: ce ? void 0 : It,
|
|
45594
|
+
children: ce ? ce.label : i
|
|
45592
45595
|
}
|
|
45593
45596
|
)
|
|
45594
45597
|
] }),
|
|
@@ -45597,7 +45600,7 @@ const q6e = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
|
|
|
45597
45600
|
{
|
|
45598
45601
|
fill: "var(--color-text)",
|
|
45599
45602
|
className: `${Ce.chevron} ${E ? Ce.chevronOpen : ""}`,
|
|
45600
|
-
style:
|
|
45603
|
+
style: ye
|
|
45601
45604
|
}
|
|
45602
45605
|
)
|
|
45603
45606
|
]
|
|
@@ -45615,7 +45618,7 @@ const q6e = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
|
|
|
45615
45618
|
"button",
|
|
45616
45619
|
{
|
|
45617
45620
|
type: "button",
|
|
45618
|
-
onClick: () =>
|
|
45621
|
+
onClick: () => ve(_e.value),
|
|
45619
45622
|
className: `
|
|
45620
45623
|
${Ce.item}
|
|
45621
45624
|
${t === _e.value ? Ce.itemSelected : ""}
|
|
@@ -45632,8 +45635,8 @@ const q6e = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
|
|
|
45632
45635
|
},
|
|
45633
45636
|
role: "option",
|
|
45634
45637
|
"aria-selected": t === _e.value,
|
|
45635
|
-
children: /* @__PURE__ */ v("div", { className: Ce.itemContent, style:
|
|
45636
|
-
_e.icon && /* @__PURE__ */ s("span", { className: Ce.itemIcon, style:
|
|
45638
|
+
children: /* @__PURE__ */ v("div", { className: Ce.itemContent, style: ie, children: [
|
|
45639
|
+
_e.icon && /* @__PURE__ */ s("span", { className: Ce.itemIcon, style: ye, children: _e.icon }),
|
|
45637
45640
|
/* @__PURE__ */ s("span", { className: Ce.itemLabel, children: _e.label })
|
|
45638
45641
|
] })
|
|
45639
45642
|
},
|
|
@@ -45727,7 +45730,7 @@ const q6e = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
|
|
|
45727
45730
|
b,
|
|
45728
45731
|
x && /* @__PURE__ */ s("div", { style: { marginLeft: "auto" }, children: x })
|
|
45729
45732
|
] });
|
|
45730
|
-
}, Tfe = "_container_1x6mq_16", Dfe = "_disabled_1x6mq_26", Bfe = "_predStyle_1x6mq_32", Rfe = "_realStyle_1x6mq_36", Ffe = "_predGap_1x6mq_40", Ofe = "_realGap_1x6mq_44", Efe = "_big_1x6mq_49", Ufe = "_medium_1x6mq_53", Wfe = "_iconWrapper_1x6mq_58", Gfe = "_predRelative_1x6mq_68", Zfe = "_realRelative_1x6mq_72", Kfe = "_iconImg_1x6mq_76", Xfe = "_content_1x6mq_84", Yfe = "_header_1x6mq_93", Jfe = "_predJustify_1x6mq_99", Qfe = "_realJustify_1x6mq_103", e7e = "_predHeaderLineHeight_1x6mq_116", t7e = "_realHeaderLineHeight_1x6mq_120", a7e = "_title_1x6mq_129", n7e = "_titleBlack_1x6mq_144", o7e = "_titleWhite_1x6mq_148", i7e = "_subtitle_1x6mq_153", c7e = "_valueRowHorizontal_1x6mq_163", r7e = "_valueRowVertical_1x6mq_171", s7e = "_singleValue_1x6mq_180", d7e = "_primaryRow_1x6mq_184", l7e = "_maxBadge_1x6mq_191", h7e = "_valuePrimary_1x6mq_203", p7e = "_valuePrimaryBlack_1x6mq_210", u7e = "_valuePrimaryWhite_1x6mq_214", y7e = "_valueSlash_1x6mq_219", k7e = "_valueSecondary_1x6mq_226", m7e = "_valueSecondaryBlue_1x6mq_232", f7e = "_valueSecondaryWhite_1x6mq_236", g7e = "_valueSecondaryBlack_1x6mq_240", v7e = "_valueStacked_1x6mq_245", M7e = "_stackedTop_1x6mq_254", _7e = "_stackedBottom_1x6mq_255",
|
|
45733
|
+
}, Tfe = "_container_1x6mq_16", Dfe = "_disabled_1x6mq_26", Bfe = "_predStyle_1x6mq_32", Rfe = "_realStyle_1x6mq_36", Ffe = "_predGap_1x6mq_40", Ofe = "_realGap_1x6mq_44", Efe = "_big_1x6mq_49", Ufe = "_medium_1x6mq_53", Wfe = "_iconWrapper_1x6mq_58", Gfe = "_predRelative_1x6mq_68", Zfe = "_realRelative_1x6mq_72", Kfe = "_iconImg_1x6mq_76", Xfe = "_content_1x6mq_84", Yfe = "_header_1x6mq_93", Jfe = "_predJustify_1x6mq_99", Qfe = "_realJustify_1x6mq_103", e7e = "_predHeaderLineHeight_1x6mq_116", t7e = "_realHeaderLineHeight_1x6mq_120", a7e = "_title_1x6mq_129", n7e = "_titleBlack_1x6mq_144", o7e = "_titleWhite_1x6mq_148", i7e = "_subtitle_1x6mq_153", c7e = "_valueRowHorizontal_1x6mq_163", r7e = "_valueRowVertical_1x6mq_171", s7e = "_singleValue_1x6mq_180", d7e = "_primaryRow_1x6mq_184", l7e = "_maxBadge_1x6mq_191", h7e = "_valuePrimary_1x6mq_203", p7e = "_valuePrimaryBlack_1x6mq_210", u7e = "_valuePrimaryWhite_1x6mq_214", y7e = "_valueSlash_1x6mq_219", k7e = "_valueSecondary_1x6mq_226", m7e = "_valueSecondaryBlue_1x6mq_232", f7e = "_valueSecondaryWhite_1x6mq_236", g7e = "_valueSecondaryBlack_1x6mq_240", v7e = "_valueStacked_1x6mq_245", M7e = "_stackedTop_1x6mq_254", _7e = "_stackedBottom_1x6mq_255", he = {
|
|
45731
45734
|
container: Tfe,
|
|
45732
45735
|
disabled: Dfe,
|
|
45733
45736
|
predStyle: Bfe,
|
|
@@ -45798,40 +45801,40 @@ const q6e = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
|
|
|
45798
45801
|
headerLineHeight: q = "",
|
|
45799
45802
|
headerMinHeight: H = "",
|
|
45800
45803
|
contentSpace: T = "",
|
|
45801
|
-
titleKey:
|
|
45804
|
+
titleKey: P,
|
|
45802
45805
|
subtitleKey: N,
|
|
45803
45806
|
subtitleA11yKey: z,
|
|
45804
45807
|
maxBadgeKey: R,
|
|
45805
45808
|
maxBadgeA11yKey: F,
|
|
45806
|
-
predictionKey:
|
|
45807
|
-
predictionA11yKey:
|
|
45808
|
-
realisedKey:
|
|
45809
|
-
realisedA11yKey:
|
|
45809
|
+
predictionKey: B,
|
|
45810
|
+
predictionA11yKey: K,
|
|
45811
|
+
realisedKey: J,
|
|
45812
|
+
realisedA11yKey: oe
|
|
45810
45813
|
}) => {
|
|
45811
|
-
const Q = i !== void 0 ? i : !!o, Ne = `${
|
|
45814
|
+
const Q = i !== void 0 ? i : !!o, Ne = `${he.container} ${he[d]} ${he[y]} ${S ? he.disabled : ""}`, Me = h === "white" ? he.valuePrimaryWhite : he.valuePrimaryBlack, je = h === "blue" ? he.valueSecondaryBlue : h === "white" ? he.valueSecondaryWhite : he.valueSecondaryBlack, le = (ve) => ve === void 0 ? void 0 : typeof ve == "number" ? `${ve}px` : ve, E = (ve) => ve === void 0 ? void 0 : ve, ae = k === "vertical", de = r != null && r !== "" && r !== "-" && r !== "—", ce = ae ? he.valueRowVertical : he.valueRowHorizontal;
|
|
45812
45815
|
return /* @__PURE__ */ v("div", { className: `${Ne} ${u}`, style: { backgroundColor: x }, children: [
|
|
45813
|
-
t && /* @__PURE__ */ s("div", { className: `${
|
|
45816
|
+
t && /* @__PURE__ */ s("div", { className: `${he.iconWrapper} ${he[$]}`, children: t }),
|
|
45814
45817
|
/* @__PURE__ */ v(
|
|
45815
45818
|
"div",
|
|
45816
45819
|
{
|
|
45817
|
-
className: `${
|
|
45820
|
+
className: `${he.content} ${he[b]} ${de ? "" : he.singleValue} content-indicator-v2`,
|
|
45818
45821
|
style: { justifyContent: T },
|
|
45819
45822
|
children: [
|
|
45820
45823
|
/* @__PURE__ */ s(
|
|
45821
45824
|
"div",
|
|
45822
45825
|
{
|
|
45823
|
-
className: `${
|
|
45826
|
+
className: `${he.header} ${he[A]} ${he[q]} header-indicator-v2`,
|
|
45824
45827
|
style: { minHeight: H },
|
|
45825
45828
|
children: /* @__PURE__ */ s(
|
|
45826
45829
|
"h6",
|
|
45827
45830
|
{
|
|
45828
|
-
className: `${
|
|
45831
|
+
className: `${he.title}`,
|
|
45829
45832
|
style: {
|
|
45830
|
-
fontSize:
|
|
45833
|
+
fontSize: le(m),
|
|
45831
45834
|
fontWeight: E(M),
|
|
45832
45835
|
color: l
|
|
45833
45836
|
},
|
|
45834
|
-
title: ee(e,
|
|
45837
|
+
title: ee(e, P),
|
|
45835
45838
|
children: n
|
|
45836
45839
|
}
|
|
45837
45840
|
)
|
|
@@ -45840,21 +45843,21 @@ const q6e = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
|
|
|
45840
45843
|
Q && o ? /* @__PURE__ */ s("div", { className: "subtitle-container", children: /* @__PURE__ */ s(
|
|
45841
45844
|
"span",
|
|
45842
45845
|
{
|
|
45843
|
-
className:
|
|
45846
|
+
className: he.subtitle,
|
|
45844
45847
|
style: {
|
|
45845
|
-
fontSize:
|
|
45848
|
+
fontSize: le(_),
|
|
45846
45849
|
fontWeight: E(f)
|
|
45847
45850
|
},
|
|
45848
45851
|
title: ee(e, N, z),
|
|
45849
45852
|
children: o
|
|
45850
45853
|
}
|
|
45851
45854
|
) }) : null,
|
|
45852
|
-
/* @__PURE__ */ v("div", { className: `${
|
|
45853
|
-
/* @__PURE__ */ v("div", { className:
|
|
45855
|
+
/* @__PURE__ */ v("div", { className: `${ce} count-indicator-v2`, children: [
|
|
45856
|
+
/* @__PURE__ */ v("div", { className: he.primaryRow, children: [
|
|
45854
45857
|
g && /* @__PURE__ */ s(
|
|
45855
45858
|
"span",
|
|
45856
45859
|
{
|
|
45857
|
-
className: `${
|
|
45860
|
+
className: `${he.maxBadge} max-badge-indicator-v2`,
|
|
45858
45861
|
title: ee(e, R, F),
|
|
45859
45862
|
children: "MAX"
|
|
45860
45863
|
}
|
|
@@ -45862,26 +45865,26 @@ const q6e = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
|
|
|
45862
45865
|
/* @__PURE__ */ s(
|
|
45863
45866
|
"span",
|
|
45864
45867
|
{
|
|
45865
|
-
className: `${
|
|
45868
|
+
className: `${he.valuePrimary} ${Me}`,
|
|
45866
45869
|
style: {
|
|
45867
|
-
fontSize:
|
|
45868
|
-
w || (!
|
|
45870
|
+
fontSize: le(
|
|
45871
|
+
w || (!de && ae ? "1.75rem" : void 0)
|
|
45869
45872
|
),
|
|
45870
45873
|
fontWeight: E(C),
|
|
45871
45874
|
color: p || void 0
|
|
45872
45875
|
},
|
|
45873
|
-
title: ee(e,
|
|
45876
|
+
title: ee(e, J, oe),
|
|
45874
45877
|
children: c
|
|
45875
45878
|
}
|
|
45876
45879
|
)
|
|
45877
45880
|
] }),
|
|
45878
|
-
|
|
45881
|
+
de && /* @__PURE__ */ v(Ue, { children: [
|
|
45879
45882
|
!ae && /* @__PURE__ */ s(
|
|
45880
45883
|
"span",
|
|
45881
45884
|
{
|
|
45882
|
-
className:
|
|
45885
|
+
className: he.valueSlash,
|
|
45883
45886
|
style: {
|
|
45884
|
-
fontSize:
|
|
45887
|
+
fontSize: le(I),
|
|
45885
45888
|
fontWeight: E(L)
|
|
45886
45889
|
},
|
|
45887
45890
|
children: "/"
|
|
@@ -45890,12 +45893,12 @@ const q6e = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
|
|
|
45890
45893
|
/* @__PURE__ */ s(
|
|
45891
45894
|
"span",
|
|
45892
45895
|
{
|
|
45893
|
-
className: `${
|
|
45896
|
+
className: `${he.valueSecondary} ${je}`,
|
|
45894
45897
|
style: {
|
|
45895
|
-
fontSize:
|
|
45898
|
+
fontSize: le(I),
|
|
45896
45899
|
fontWeight: E(L)
|
|
45897
45900
|
},
|
|
45898
|
-
title: ee(e,
|
|
45901
|
+
title: ee(e, B, K),
|
|
45899
45902
|
children: r
|
|
45900
45903
|
}
|
|
45901
45904
|
)
|
|
@@ -45920,9 +45923,9 @@ const q6e = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
|
|
|
45920
45923
|
statusContainer: z7e,
|
|
45921
45924
|
status: V7e,
|
|
45922
45925
|
centeredWarn: P7e
|
|
45923
|
-
}, j7e = (e) => /* @__PURE__ */
|
|
45926
|
+
}, j7e = (e) => /* @__PURE__ */ Y.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", fill: "none", viewBox: "0 0 16 16", ...e }, /* @__PURE__ */ Y.createElement("mask", { id: "a", width: 16, height: 16, x: 0, y: 0, maskUnits: "userSpaceOnUse", style: {
|
|
45924
45927
|
maskType: "alpha"
|
|
45925
|
-
} }, /* @__PURE__ */
|
|
45928
|
+
} }, /* @__PURE__ */ Y.createElement("path", { fill: "#D9D9D9", d: "M0 0h16v16H0z" })), /* @__PURE__ */ Y.createElement("g", { mask: "url(#a)" }, /* @__PURE__ */ Y.createElement("path", { fill: "#C60000", d: "M.666 14 7.999 1.333 15.333 14zm2.3-1.333h10.067L7.999 4zm5.508-.859a.65.65 0 0 0 .192-.475.65.65 0 0 0-.192-.475.65.65 0 0 0-.475-.191.65.65 0 0 0-.475.191.65.65 0 0 0-.191.475q0 .285.191.475A.65.65 0 0 0 8 12a.65.65 0 0 0 .475-.192M7.333 10h1.333V6.667H7.333z" }))), _$ = ze(j7e), h9e = ({
|
|
45926
45929
|
patient: e,
|
|
45927
45930
|
genre: t,
|
|
45928
45931
|
gravite: n,
|
|
@@ -46007,7 +46010,7 @@ const q6e = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
|
|
|
46007
46010
|
}
|
|
46008
46011
|
)
|
|
46009
46012
|
] })
|
|
46010
|
-
] }), H7e = (e) => /* @__PURE__ */
|
|
46013
|
+
] }), H7e = (e) => /* @__PURE__ */ Y.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 -960 960 960", ...e }, /* @__PURE__ */ Y.createElement("path", { d: "M200-200v-240h60v180h180v60zm500-320v-180H520v-60h240v240z" })), T7e = ze(H7e), D7e = (e) => /* @__PURE__ */ Y.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 -960 960 960", ...e }, /* @__PURE__ */ Y.createElement("path", { d: "m249-207-42-42 231-231-231-231 42-42 231 231 231-231 42 42-231 231 231 231-42 42-231-231z" })), NA = ze(D7e), B7e = (e) => /* @__PURE__ */ Y.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 -960 960 960", ...e }, /* @__PURE__ */ Y.createElement("path", { d: "M440-440v240h-60v-180H200v-60zm140-320v180h180v60H520v-240z" })), R7e = ze(B7e), F7e = "_overlay_1uxex_1", O7e = "_container_1uxex_11", E7e = "_fullscreen_1uxex_24", U7e = "_header_1uxex_30", W7e = "_headerActions_1uxex_42", G7e = "_iconButton_1uxex_47", Z7e = "_body_1uxex_58", K7e = "_sidebar_1uxex_65", X7e = "_content_1uxex_91", Y7e = "_contentHeader_1uxex_98", J7e = "_childrenWrapper_1uxex_114", Q7e = "_footer_1uxex_138", ege = "_baseButton_1uxex_146", tge = "_noOverlay_1uxex_160", age = "_contained_1uxex_168", $e = {
|
|
46011
46014
|
overlay: F7e,
|
|
46012
46015
|
container: O7e,
|
|
46013
46016
|
fullscreen: E7e,
|
|
@@ -46056,26 +46059,26 @@ const q6e = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
|
|
|
46056
46059
|
position: H,
|
|
46057
46060
|
a11yConfig: T
|
|
46058
46061
|
}) => {
|
|
46059
|
-
const [
|
|
46062
|
+
const [P, N] = j(!1), z = W(null);
|
|
46060
46063
|
if (O(() => {
|
|
46061
46064
|
if (!c || !q) return;
|
|
46062
|
-
const F = (
|
|
46063
|
-
(
|
|
46065
|
+
const F = (B) => {
|
|
46066
|
+
(B.type === "scroll" || B.type === "wheel" || B.type === "touchmove" || z.current && !z.current.contains(B.target)) && r();
|
|
46064
46067
|
};
|
|
46065
46068
|
return document.addEventListener("mousedown", F), document.addEventListener("scroll", F, !0), document.addEventListener("wheel", F, { passive: !0, capture: !0 }), document.addEventListener("touchmove", F, { passive: !0, capture: !0 }), () => {
|
|
46066
46069
|
document.removeEventListener("mousedown", F), document.removeEventListener("scroll", F, !0), document.removeEventListener("wheel", F, !0), document.removeEventListener("touchmove", F, !0);
|
|
46067
46070
|
};
|
|
46068
46071
|
}, [c, q, r]), !c) return null;
|
|
46069
|
-
const R = (F,
|
|
46072
|
+
const R = (F, B = !1) => /* @__PURE__ */ s(
|
|
46070
46073
|
TL,
|
|
46071
46074
|
{
|
|
46072
46075
|
onClick: F.disabled ? void 0 : F.onClick,
|
|
46073
46076
|
className: $e.baseButton,
|
|
46074
46077
|
disabled: F.disabled,
|
|
46075
46078
|
style: {
|
|
46076
|
-
background: F.backgroundColor ?? (
|
|
46077
|
-
color: F.textColor ?? (
|
|
46078
|
-
border: F.borderColor ||
|
|
46079
|
+
background: F.backgroundColor ?? (B ? "#008FBB" : "#ffffff"),
|
|
46080
|
+
color: F.textColor ?? (B ? "#ffffff" : "#374151"),
|
|
46081
|
+
border: F.borderColor || B ? "none" : void 0,
|
|
46079
46082
|
cursor: F.disabled ? F.cursor ?? "not-allowed" : F.cursor ?? "pointer",
|
|
46080
46083
|
filter: F.disabled ? F.filter ?? "grayscale(0.5)" : F.filter ?? "none",
|
|
46081
46084
|
opacity: F.disabled ? 0.65 : 1
|
|
@@ -46088,14 +46091,14 @@ const q6e = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
|
|
|
46088
46091
|
"div",
|
|
46089
46092
|
{
|
|
46090
46093
|
ref: z,
|
|
46091
|
-
className: `${$e.container} ${
|
|
46094
|
+
className: `${$e.container} ${P ? $e.fullscreen : ""} ${q ? $e.contained : ""}`,
|
|
46092
46095
|
onClick: (F) => F.stopPropagation(),
|
|
46093
46096
|
style: {
|
|
46094
|
-
width:
|
|
46095
|
-
maxWidth:
|
|
46096
|
-
height:
|
|
46097
|
-
maxHeight:
|
|
46098
|
-
borderRadius:
|
|
46097
|
+
width: P ? "100%" : f,
|
|
46098
|
+
maxWidth: P ? "none" : w,
|
|
46099
|
+
height: P ? "100%" : C,
|
|
46100
|
+
maxHeight: P ? "100%" : I,
|
|
46101
|
+
borderRadius: P ? "0" : L,
|
|
46099
46102
|
overflow: b,
|
|
46100
46103
|
...H || {}
|
|
46101
46104
|
},
|
|
@@ -46117,10 +46120,10 @@ const q6e = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
|
|
|
46117
46120
|
!k && /* @__PURE__ */ s(
|
|
46118
46121
|
"button",
|
|
46119
46122
|
{
|
|
46120
|
-
onClick: () => N(!
|
|
46123
|
+
onClick: () => N(!P),
|
|
46121
46124
|
className: $e.iconButton,
|
|
46122
|
-
title:
|
|
46123
|
-
children:
|
|
46125
|
+
title: P ? "Réduire" : "Agrandir",
|
|
46126
|
+
children: P ? /* @__PURE__ */ s(R7e, { width: 22, height: 22, fill: t }) : /* @__PURE__ */ s(T7e, { width: 22, height: 22, fill: t })
|
|
46124
46127
|
}
|
|
46125
46128
|
),
|
|
46126
46129
|
/* @__PURE__ */ s("button", { onClick: r, className: $e.iconButton, title: "Fermer", children: /* @__PURE__ */ s(NA, { width: 22, height: 22, fill: t }) })
|
|
@@ -46262,7 +46265,7 @@ const q6e = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
|
|
|
46262
46265
|
className: `module-item ${q.id === t ? "selected" : ""}`,
|
|
46263
46266
|
onClick: () => n && n(q),
|
|
46264
46267
|
children: [
|
|
46265
|
-
q.icon || /* @__PURE__ */ s(Ai, { size:
|
|
46268
|
+
q.icon || /* @__PURE__ */ s(Ai, { size: 18, className: "drag-handle" }),
|
|
46266
46269
|
/* @__PURE__ */ v("div", { className: "module-content", title: ee(q.a11yConfig, q.titleKey), children: [
|
|
46267
46270
|
/* @__PURE__ */ s("div", { className: "module-title", children: q.title }),
|
|
46268
46271
|
q.subtitle && /* @__PURE__ */ s("div", { className: "module-subtitle", children: q.subtitle })
|
|
@@ -46272,7 +46275,7 @@ const q6e = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
|
|
|
46272
46275
|
/* @__PURE__ */ s(
|
|
46273
46276
|
Mt,
|
|
46274
46277
|
{
|
|
46275
|
-
size:
|
|
46278
|
+
size: 10,
|
|
46276
46279
|
className: "action-icon edit",
|
|
46277
46280
|
onClick: (H) => b(H, q)
|
|
46278
46281
|
}
|
|
@@ -46280,7 +46283,7 @@ const q6e = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
|
|
|
46280
46283
|
/* @__PURE__ */ s(
|
|
46281
46284
|
Tt,
|
|
46282
46285
|
{
|
|
46283
|
-
size:
|
|
46286
|
+
size: 10,
|
|
46284
46287
|
className: "action-icon delete",
|
|
46285
46288
|
onClick: (H) => A(H, q)
|
|
46286
46289
|
}
|
|
@@ -46349,7 +46352,7 @@ const q6e = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
|
|
|
46349
46352
|
_ && w.trim() && (o(_, w.trim()), M(!1), f(""), C(""));
|
|
46350
46353
|
}, T = () => {
|
|
46351
46354
|
M(!1), f(""), C("");
|
|
46352
|
-
},
|
|
46355
|
+
}, P = (N) => {
|
|
46353
46356
|
N.key === "Enter" ? H() : N.key === "Escape" && T();
|
|
46354
46357
|
};
|
|
46355
46358
|
return /* @__PURE__ */ v("div", { className: "translation-key-v2", children: [
|
|
@@ -46380,7 +46383,7 @@ const q6e = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
|
|
|
46380
46383
|
{
|
|
46381
46384
|
className: "translation-input editing",
|
|
46382
46385
|
value: k,
|
|
46383
|
-
onChange: (
|
|
46386
|
+
onChange: (B) => g(B.target.value),
|
|
46384
46387
|
onBlur: $,
|
|
46385
46388
|
onKeyDown: A,
|
|
46386
46389
|
placeholder: "Entrez la traduction...",
|
|
@@ -46413,7 +46416,7 @@ const q6e = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
|
|
|
46413
46416
|
className: "translation-input editing",
|
|
46414
46417
|
value: w,
|
|
46415
46418
|
onChange: (N) => C(N.target.value),
|
|
46416
|
-
onKeyDown:
|
|
46419
|
+
onKeyDown: P,
|
|
46417
46420
|
placeholder: "Mot",
|
|
46418
46421
|
autoFocus: !0
|
|
46419
46422
|
}
|
|
@@ -46531,13 +46534,13 @@ const q6e = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
|
|
|
46531
46534
|
className: r = "",
|
|
46532
46535
|
disabled: d = !1
|
|
46533
46536
|
}) => {
|
|
46534
|
-
const [l, h] = j(!1), [p, u] = j(""), y = W(null), k = W(null), g = W(null), m = W(null), [M, _] = j(null), [f, w] = j(!1), C = W([]), I = W(null), L =
|
|
46537
|
+
const [l, h] = j(!1), [p, u] = j(""), y = W(null), k = W(null), g = W(null), m = W(null), [M, _] = j(null), [f, w] = j(!1), C = W([]), I = W(null), L = ge(() => {
|
|
46535
46538
|
const N = new Map(e.map((z) => [z.value, z]));
|
|
46536
46539
|
return n.map((z) => N.get(z)).filter((z) => z !== void 0);
|
|
46537
|
-
}, [e, n]), x =
|
|
46540
|
+
}, [e, n]), x = ge(
|
|
46538
46541
|
() => e.filter((N) => !n.includes(N.value)),
|
|
46539
46542
|
[e, n]
|
|
46540
|
-
), b =
|
|
46543
|
+
), b = ge(() => {
|
|
46541
46544
|
let N = x;
|
|
46542
46545
|
return p && (N = N.filter((z) => z.label.toLowerCase().includes(p.toLowerCase()))), N;
|
|
46543
46546
|
}, [x, p]);
|
|
@@ -46554,22 +46557,22 @@ const q6e = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
|
|
|
46554
46557
|
}
|
|
46555
46558
|
L.length > C.current.length && _(null);
|
|
46556
46559
|
const N = () => {
|
|
46557
|
-
const
|
|
46558
|
-
if (!
|
|
46559
|
-
const
|
|
46560
|
-
|
|
46561
|
-
const Se =
|
|
46562
|
-
return Math.max(Se.width, It,
|
|
46560
|
+
const B = g.current, K = m.current;
|
|
46561
|
+
if (!B || !K) return;
|
|
46562
|
+
const J = K.getBoundingClientRect().width, oe = K.querySelector(`.${ne.actions}`), Q = oe ? oe.getBoundingClientRect().width : 80, Ne = 56, Me = c ? 80 : 0, je = 16, le = Array.from(B.querySelectorAll(`.${ne.tag}`));
|
|
46563
|
+
le.length === L.length && (C.current = le.map((ye) => {
|
|
46564
|
+
const Se = ye.getBoundingClientRect(), It = ye.scrollWidth;
|
|
46565
|
+
return Math.max(Se.width, It, ye.offsetWidth || 0);
|
|
46563
46566
|
}));
|
|
46564
|
-
const E = C.current, ae = E.length > 0 ? E.reduce((
|
|
46567
|
+
const E = C.current, ae = E.length > 0 ? E.reduce((ye, Se) => ye + Se, 0) / E.length : 120, de = L.length <= E.length ? E.slice(0, L.length) : [...E, ...Array(L.length - E.length).fill(ae)], ce = 4, ve = Math.max(
|
|
46565
46568
|
0,
|
|
46566
|
-
|
|
46569
|
+
J - Q - Me - je
|
|
46567
46570
|
);
|
|
46568
46571
|
let Ie = 0, we = 0;
|
|
46569
|
-
for (let
|
|
46570
|
-
const Se =
|
|
46571
|
-
if (Ie + Se +
|
|
46572
|
-
Ie += Se +
|
|
46572
|
+
for (let ye = 0; ye < L.length; ye++) {
|
|
46573
|
+
const Se = de[ye] ?? 120;
|
|
46574
|
+
if (Ie + Se + ce > ve) break;
|
|
46575
|
+
Ie += Se + ce, we++;
|
|
46573
46576
|
}
|
|
46574
46577
|
if (we >= L.length) {
|
|
46575
46578
|
_(null);
|
|
@@ -46577,14 +46580,14 @@ const q6e = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
|
|
|
46577
46580
|
}
|
|
46578
46581
|
const He = Math.max(
|
|
46579
46582
|
0,
|
|
46580
|
-
|
|
46583
|
+
J - Ne - Q - Me - je
|
|
46581
46584
|
);
|
|
46582
46585
|
Ie = 0;
|
|
46583
46586
|
let Ve = 0;
|
|
46584
|
-
for (let
|
|
46585
|
-
const Se =
|
|
46586
|
-
if (Ie + Se +
|
|
46587
|
-
Ie += Se +
|
|
46587
|
+
for (let ye = 0; ye < L.length; ye++) {
|
|
46588
|
+
const Se = de[ye] ?? 120;
|
|
46589
|
+
if (Ie + Se + ce > He) break;
|
|
46590
|
+
Ie += Se + ce, Ve++;
|
|
46588
46591
|
}
|
|
46589
46592
|
Ve < L.length && Ve > 0 ? _(Ve) : _(null);
|
|
46590
46593
|
}, z = requestAnimationFrame(() => {
|
|
@@ -46613,7 +46616,7 @@ const q6e = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
|
|
|
46613
46616
|
o(R);
|
|
46614
46617
|
}, T = (N) => {
|
|
46615
46618
|
N.stopPropagation(), o([]);
|
|
46616
|
-
},
|
|
46619
|
+
}, P = (N) => {
|
|
46617
46620
|
N.stopPropagation(), l || h(!0);
|
|
46618
46621
|
};
|
|
46619
46622
|
return /* @__PURE__ */ v(
|
|
@@ -46685,7 +46688,7 @@ const q6e = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
|
|
|
46685
46688
|
onChange: (N) => {
|
|
46686
46689
|
u(N.target.value), l || h(!0);
|
|
46687
46690
|
},
|
|
46688
|
-
onClick:
|
|
46691
|
+
onClick: P,
|
|
46689
46692
|
disabled: d
|
|
46690
46693
|
}
|
|
46691
46694
|
) : L.length === 0 && /* @__PURE__ */ s("span", { className: ne.placeholder, children: i })
|
|
@@ -46793,14 +46796,14 @@ const q6e = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
|
|
|
46793
46796
|
lastCardTextColor: r = "black",
|
|
46794
46797
|
boardColors: d = {}
|
|
46795
46798
|
}) => {
|
|
46796
|
-
const l =
|
|
46799
|
+
const l = ge(() => {
|
|
46797
46800
|
const u = i.length === 0 ? o : o.filter((k) => k && i.includes(String(k.uf).replace(/^0+/, ""))), y = /* @__PURE__ */ new Set();
|
|
46798
46801
|
return u.filter((k) => {
|
|
46799
46802
|
if (!k || !k.uf) return !1;
|
|
46800
46803
|
const g = String(k.uf).replace(/^0+/, "");
|
|
46801
46804
|
return y.has(g) ? !1 : (y.add(g), !0);
|
|
46802
46805
|
});
|
|
46803
|
-
}, [o, i]), h =
|
|
46806
|
+
}, [o, i]), h = ge(
|
|
46804
46807
|
() => l.reduce(
|
|
46805
46808
|
(u, y) => ({
|
|
46806
46809
|
disponibles: u.disponibles + (y.totalAvailable ?? y.disponibles ?? 0),
|
|
@@ -47021,13 +47024,13 @@ const q6e = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
|
|
|
47021
47024
|
"--ratio-color": k || "inherit",
|
|
47022
47025
|
"--separator-color": g || "#03a9f4",
|
|
47023
47026
|
"--border-color": m || "#e0e0e0"
|
|
47024
|
-
}, I =
|
|
47027
|
+
}, I = ge(() => e.map((S) => ({
|
|
47025
47028
|
...S,
|
|
47026
47029
|
displayValue: _.has(S.nom) ? S.value : 0
|
|
47027
|
-
})), [e, _]), L =
|
|
47030
|
+
})), [e, _]), L = ge(() => e.every((S) => S.value === 0), [e]), x = ge(() => L ? 1 : I.reduce((S, $) => S + $.displayValue, 0) || 1, [L, I]), b = te.useCallback(
|
|
47028
47031
|
({ cx: S, cy: $, midAngle: A, innerRadius: q, outerRadius: H, value: T }) => {
|
|
47029
47032
|
if (T === 0 || L) return null;
|
|
47030
|
-
const
|
|
47033
|
+
const P = q + (H - q) * 0.5, N = S + P * Math.cos(-A * x$), z = $ + P * Math.sin(-A * x$), R = Math.round(T / x * 100);
|
|
47031
47034
|
return /* @__PURE__ */ s(
|
|
47032
47035
|
fz,
|
|
47033
47036
|
{
|
|
@@ -47118,7 +47121,7 @@ const q6e = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
|
|
|
47118
47121
|
container: cve,
|
|
47119
47122
|
leftGroup: rve,
|
|
47120
47123
|
iconBtn: sve
|
|
47121
|
-
}, dve = (e) => /* @__PURE__ */
|
|
47124
|
+
}, dve = (e) => /* @__PURE__ */ Y.createElement("svg", { width: "1em", height: "1em", fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, viewBox: "0 0 24 24", ...e }, /* @__PURE__ */ Y.createElement("path", { d: "M3 12h18M3 6h18M3 18h18" })), lve = ze(dve), hve = (e) => /* @__PURE__ */ Y.createElement("svg", { width: "1em", height: "1em", fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, viewBox: "0 0 24 24", ...e }, /* @__PURE__ */ Y.createElement("path", { d: "M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8m-4-6-4-4-4 4m4-4v13" })), SA = ze(hve), x9e = ({
|
|
47122
47125
|
menuIcon: e,
|
|
47123
47126
|
logoProps: t,
|
|
47124
47127
|
actionIcon: n,
|