@tsiky/components-r19 8.2.7 → 8.2.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { jsx as r, jsxs as f, Fragment as qe } from "react/jsx-runtime";
2
2
  import * as J from "react";
3
3
  import ce, { useState as B, useRef as G, useEffect as O, createContext as nt, useContext as Ce, useCallback as de, memo as Ve, useLayoutEffect as NC, useId as IC, useInsertionEffect as pq, useMemo as we, Children as dV, isValidElement as lV, Fragment as uq, createElement as hV, forwardRef as rr, Component as pV, useImperativeHandle as uV } from "react";
4
- import { c as a, M as F1, I as yV, a as fr, g as kV, R as yq, B as mV, C as fV, X as gV, Y as vV, T as _V, b as MV, L as xV, d as bV, P as wV, e as LV, f as SN } from "./LineChart-DwC-Q4pC.js";
5
- import { i as swe, h as dwe, S as lwe } from "./LineChart-DwC-Q4pC.js";
4
+ import { c as a, M as F1, I as yV, a as fr, g as kV, R as yq, B as mV, C as fV, X as gV, Y as vV, T as _V, b as MV, L as xV, d as bV, P as wV, e as LV, f as SN } from "./LineChart-7Rq_aMiU.js";
5
+ import { i as swe, h as dwe, S as lwe } from "./LineChart-7Rq_aMiU.js";
6
6
  import E, { css as $N } from "styled-components";
7
7
  import { createPortal as SC } from "react-dom";
8
8
  const CV = "_button_1kuwt_2", NV = "_primary_1kuwt_21", IV = "_secondary_1kuwt_26", SV = "_accent_1kuwt_31", $V = "_outline_1kuwt_36", qV = "_success_1kuwt_41", AV = "_danger_1kuwt_46", zV = "_warning_1kuwt_51", VV = "_info_1kuwt_56", PV = "_sm_1kuwt_62", TV = "_md_1kuwt_67", HV = "_lg_1kuwt_72", it = {
@@ -95,7 +95,7 @@ const eC = ({
95
95
  t || (t = 150);
96
96
  const m = n || t * 0.1;
97
97
  t += m;
98
- const g = Math.min(5, Math.max(0, Math.floor(e))), k = t / 2, _ = (t - m) / 2, M = 2 * Math.PI * _, b = M / 5 * (1 - 0.1), L = M - b;
98
+ const g = Math.min(5, Math.max(0, Math.floor(e))), k = t / 2, _ = (t - m) / 2, M = 2 * Math.PI * _, w = M / 5 * (1 - 0.1), L = M - w;
99
99
  return /* @__PURE__ */ f("div", { className: `circular-progress-container ${y}`, children: [
100
100
  /* @__PURE__ */ f("div", { className: "circular-progress", style: { width: t, height: t }, children: [
101
101
  /* @__PURE__ */ f("svg", { width: t, height: t, children: [
@@ -122,7 +122,7 @@ const eC = ({
122
122
  stroke: o,
123
123
  strokeWidth: m,
124
124
  strokeLinecap: "butt",
125
- strokeDasharray: `${b} ${L}`,
125
+ strokeDasharray: `${w} ${L}`,
126
126
  strokeDashoffset: 0,
127
127
  transform: `rotate(${x} ${k} ${k})`,
128
128
  style: { transition: "stroke 0.3s ease" }
@@ -31440,9 +31440,9 @@ const $t = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
31440
31440
  s && /* @__PURE__ */ r("div", { className: "dropdown-top-content", children: s }),
31441
31441
  e?.map((M, v) => /* @__PURE__ */ f("div", { className: "dropdown-category", children: [
31442
31442
  M.title && /* @__PURE__ */ r("div", { className: "category-title", children: M.title }),
31443
- /* @__PURE__ */ r("div", { className: "category-items", children: M.items.map((b, L) => {
31444
- const N = b.id ?? b.label, I = m === N || g === N, x = b.select ?? c;
31445
- if (b.id === "language") {
31443
+ /* @__PURE__ */ r("div", { className: "category-items", children: M.items.map((w, L) => {
31444
+ const N = w.id ?? w.label, I = m === N || g === N, x = w.select ?? c;
31445
+ if (w.id === "language") {
31446
31446
  if (!x || !Array.isArray(x.options) || !x.onChange)
31447
31447
  return /* @__PURE__ */ r("div", { className: "dropdown-language" }, L);
31448
31448
  const $ = Array.isArray(x.options) ? x.options : [], S = $.some((q) => q.code === x.value) ? $ : [
@@ -31470,14 +31470,14 @@ const $t = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
31470
31470
  }
31471
31471
  ) }, L);
31472
31472
  }
31473
- const w = {
31473
+ const b = {
31474
31474
  className: `dropdown-item ${I ? "active" : ""}`,
31475
31475
  onClick: () => {
31476
- b.onClick?.(), l(!1);
31476
+ w.onClick?.(), l(!1);
31477
31477
  },
31478
- role: b.type === "button" || !b.href ? "button" : void 0
31478
+ role: w.type === "button" || !w.href ? "button" : void 0
31479
31479
  };
31480
- return b.type === "button" || !b.href ? /* @__PURE__ */ r("button", { type: "button", ...w, children: b.label }, L) : /* @__PURE__ */ r("a", { ...w, href: b.href, children: b.label }, L);
31480
+ return w.type === "button" || !w.href ? /* @__PURE__ */ r("button", { type: "button", ...b, children: w.label }, L) : /* @__PURE__ */ r("a", { ...b, href: w.href, children: w.label }, L);
31481
31481
  }) })
31482
31482
  ] }, v))
31483
31483
  ] })
@@ -31502,14 +31502,14 @@ const $t = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
31502
31502
  draggable: _ = !1,
31503
31503
  displayNone: M = !1
31504
31504
  }) => {
31505
- const [v, b] = B([]);
31505
+ const [v, w] = B([]);
31506
31506
  O(() => {
31507
- const w = (q) => {
31507
+ const b = (q) => {
31508
31508
  const z = [];
31509
31509
  return ce.Children.forEach(q, (D) => {
31510
- Array.isArray(D) ? z.push(...w(D)) : ce.isValidElement(D) && z.push(D);
31510
+ Array.isArray(D) ? z.push(...b(D)) : ce.isValidElement(D) && z.push(D);
31511
31511
  }), z;
31512
- }, C = w(e).filter((q) => ce.isValidElement(q)).map((q) => {
31512
+ }, C = b(e).filter((q) => ce.isValidElement(q)).map((q) => {
31513
31513
  let z = "";
31514
31514
  const D = q.props;
31515
31515
  return z = [
@@ -31525,15 +31525,15 @@ const $t = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
31525
31525
  g && g.length > 0 && (S = C.map((q, z) => ({
31526
31526
  ...q,
31527
31527
  node: C[g[z]]?.node ?? q.node
31528
- }))), b(S);
31528
+ }))), w(S);
31529
31529
  }, [e]);
31530
- const L = (w, $) => {
31531
- w.stopPropagation(), w.dataTransfer.setData("dragIndex", $.toString()), w.dataTransfer.setData("parentKey", u.toString());
31532
- }, N = (w) => {
31533
- w.preventDefault(), w.stopPropagation();
31534
- }, I = (w, $) => {
31535
- w.preventDefault();
31536
- const C = Number(w.dataTransfer.getData("dragIndex")), S = Number(w.dataTransfer.getData("parentKey"));
31530
+ const L = (b, $) => {
31531
+ b.stopPropagation(), b.dataTransfer.setData("dragIndex", $.toString()), b.dataTransfer.setData("parentKey", u.toString());
31532
+ }, N = (b) => {
31533
+ b.preventDefault(), b.stopPropagation();
31534
+ }, I = (b, $) => {
31535
+ b.preventDefault();
31536
+ const C = Number(b.dataTransfer.getData("dragIndex")), S = Number(b.dataTransfer.getData("parentKey"));
31537
31537
  if (t && S !== u)
31538
31538
  return;
31539
31539
  const q = [...v];
@@ -31552,7 +31552,7 @@ const $t = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
31552
31552
  }, q[z] = {
31553
31553
  ...q[z],
31554
31554
  node: T
31555
- }, b(q), typeof k == "function" && k(D, z);
31555
+ }, w(q), typeof k == "function" && k(D, z);
31556
31556
  }, x = o ? [
31557
31557
  i ? `grid-xs-${i}` : "",
31558
31558
  c ? `grid-sm-${c}` : "",
@@ -31569,26 +31569,26 @@ const $t = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
31569
31569
  ...y
31570
31570
  },
31571
31571
  children: v.map(
31572
- (w) => w.node.type?.displayName === "Grid" ? _ && w.node?.props?.draggable !== !1 ? /* @__PURE__ */ r(
31572
+ (b) => b.node.type?.displayName === "Grid" ? _ && b.node?.props?.draggable !== !1 ? /* @__PURE__ */ r(
31573
31573
  "div",
31574
31574
  {
31575
31575
  draggable: !0,
31576
- onDragStart: ($) => L($, w.node?.props?.uniqueKey),
31576
+ onDragStart: ($) => L($, b.node?.props?.uniqueKey),
31577
31577
  onDragOver: ($) => N($),
31578
- onDrop: ($) => I($, w.node?.props?.uniqueKey),
31579
- className: `grid-item grid-item-grabbing ${w.classes} ${w.node?.props?.displayNone ? "grid-display-none" : ""}`,
31578
+ onDrop: ($) => I($, b.node?.props?.uniqueKey),
31579
+ className: `grid-item grid-item-grabbing ${b.classes} ${b.node?.props?.displayNone ? "grid-display-none" : ""}`,
31580
31580
  style: { cursor: "grab" },
31581
- children: w.node
31581
+ children: b.node
31582
31582
  },
31583
- w.node?.props?.uniqueKey
31583
+ b.node?.props?.uniqueKey
31584
31584
  ) : /* @__PURE__ */ r(
31585
31585
  "div",
31586
31586
  {
31587
- className: `grid-item ${w.classes} ${w.node?.props?.displayNone ? "grid-display-none" : ""}`,
31588
- children: w.node
31587
+ className: `grid-item ${b.classes} ${b.node?.props?.displayNone ? "grid-display-none" : ""}`,
31588
+ children: b.node
31589
31589
  },
31590
- w.node?.props?.uniqueKey
31591
- ) : w.node
31590
+ b.node?.props?.uniqueKey
31591
+ ) : b.node
31592
31592
  )
31593
31593
  }
31594
31594
  ) : n ? /* @__PURE__ */ r(
@@ -31655,20 +31655,20 @@ const $C = ({ imagePath: e, ...t }) => {
31655
31655
  O(() => {
31656
31656
  const v = () => {
31657
31657
  if (y.current && y.current.parentElement) {
31658
- const b = y.current.parentNode?.parentElement?.offsetWidth || 0;
31659
- d(b * 0.8 < y.current.offsetWidth || b < 1100);
31658
+ const w = y.current.parentNode?.parentElement?.offsetWidth || 0;
31659
+ d(w * 0.8 < y.current.offsetWidth || w < 1100);
31660
31660
  }
31661
31661
  };
31662
31662
  return v(), window.addEventListener("resize", v), () => window.removeEventListener("resize", v);
31663
31663
  }, []), O(() => {
31664
31664
  if (l && i === "auto" && m.current) {
31665
- const v = m.current.getBoundingClientRect(), b = window.innerWidth / 2;
31666
- u(v.left < b ? "left" : "right");
31665
+ const v = m.current.getBoundingClientRect(), w = window.innerWidth / 2;
31666
+ u(v.left < w ? "left" : "right");
31667
31667
  }
31668
31668
  }, [l, i]), O(() => {
31669
31669
  if (!l) return;
31670
- const v = (b) => {
31671
- g.current && !g.current.contains(b.target) && m.current && !m.current.contains(b.target) && h(!1);
31670
+ const v = (w) => {
31671
+ g.current && !g.current.contains(w.target) && m.current && !m.current.contains(w.target) && h(!1);
31672
31672
  };
31673
31673
  return document.addEventListener("mousedown", v), () => document.removeEventListener("mousedown", v);
31674
31674
  }, [l]);
@@ -32199,18 +32199,18 @@ const Wxe = ({
32199
32199
  titleMinHeight: _,
32200
32200
  backgroundColor: M = "#ffffff",
32201
32201
  borderColor: v = "#D2D6D8",
32202
- width: b,
32202
+ width: w,
32203
32203
  className: L,
32204
32204
  onClick: N,
32205
32205
  ariaLabel: I,
32206
32206
  a11yConfig: x,
32207
- titleA11yConfig: w,
32207
+ titleA11yConfig: b,
32208
32208
  entryLabelA11yConfig: $,
32209
32209
  exitLabelA11yConfig: C
32210
32210
  }) => {
32211
32211
  const S = te(x), q = te(
32212
- w,
32213
- w?.titleKey ? void 0 : e
32212
+ b,
32213
+ b?.titleKey ? void 0 : e
32214
32214
  ), z = te(
32215
32215
  $,
32216
32216
  $?.titleKey ? void 0 : o
@@ -32221,7 +32221,7 @@ const Wxe = ({
32221
32221
  return /* @__PURE__ */ f(
32222
32222
  u0e,
32223
32223
  {
32224
- $width: b,
32224
+ $width: w,
32225
32225
  $borderColor: v,
32226
32226
  className: L,
32227
32227
  onClick: N,
@@ -32675,18 +32675,18 @@ function Tq(e, t) {
32675
32675
  delta: 0,
32676
32676
  timestamp: 0,
32677
32677
  isProcessing: !1
32678
- }, c = () => n = !0, s = gr.reduce((b, L) => (b[L] = D0e(c), b), {}), { setup: d, read: l, resolveKeyframes: h, preUpdate: p, update: u, preRender: y, render: m, postRender: g } = s, k = () => {
32679
- const b = At.useManualTiming ? i.timestamp : performance.now();
32680
- n = !1, At.useManualTiming || (i.delta = o ? 1e3 / 60 : Math.max(Math.min(b - i.timestamp, B0e), 1)), i.timestamp = b, i.isProcessing = !0, d.process(i), l.process(i), h.process(i), p.process(i), u.process(i), y.process(i), m.process(i), g.process(i), i.isProcessing = !1, n && t && (o = !1, e(k));
32678
+ }, c = () => n = !0, s = gr.reduce((w, L) => (w[L] = D0e(c), w), {}), { setup: d, read: l, resolveKeyframes: h, preUpdate: p, update: u, preRender: y, render: m, postRender: g } = s, k = () => {
32679
+ const w = At.useManualTiming ? i.timestamp : performance.now();
32680
+ n = !1, At.useManualTiming || (i.delta = o ? 1e3 / 60 : Math.max(Math.min(w - i.timestamp, B0e), 1)), i.timestamp = w, i.isProcessing = !0, d.process(i), l.process(i), h.process(i), p.process(i), u.process(i), y.process(i), m.process(i), g.process(i), i.isProcessing = !1, n && t && (o = !1, e(k));
32681
32681
  }, _ = () => {
32682
32682
  n = !0, o = !0, i.isProcessing || e(k);
32683
32683
  };
32684
- return { schedule: gr.reduce((b, L) => {
32684
+ return { schedule: gr.reduce((w, L) => {
32685
32685
  const N = s[L];
32686
- return b[L] = (I, x = !1, w = !1) => (n || _(), N.schedule(I, x, w)), b;
32687
- }, {}), cancel: (b) => {
32686
+ return w[L] = (I, x = !1, b = !1) => (n || _(), N.schedule(I, x, b)), w;
32687
+ }, {}), cancel: (w) => {
32688
32688
  for (let L = 0; L < gr.length; L++)
32689
- s[gr[L]].cancel(b);
32689
+ s[gr[L]].cancel(w);
32690
32690
  }, state: i, steps: s };
32691
32691
  }
32692
32692
  const { schedule: be, cancel: zt, state: Fe, steps: aw } = /* @__PURE__ */ Tq(typeof requestAnimationFrame < "u" ? requestAnimationFrame : ut, !0);
@@ -33042,33 +33042,33 @@ function Sb(e = $e.visualDuration, t = $e.bounce) {
33042
33042
  velocity: -/* @__PURE__ */ ht(n.velocity || 0)
33043
33043
  }), g = y || 0, k = h / (2 * Math.sqrt(l * p)), _ = s - c, M = /* @__PURE__ */ ht(Math.sqrt(l / p)), v = Math.abs(_) < 5;
33044
33044
  o || (o = v ? $e.restSpeed.granular : $e.restSpeed.default), i || (i = v ? $e.restDelta.granular : $e.restDelta.default);
33045
- let b;
33045
+ let w;
33046
33046
  if (k < 1) {
33047
33047
  const N = cC(M, k);
33048
- b = (I) => {
33048
+ w = (I) => {
33049
33049
  const x = Math.exp(-k * M * I);
33050
33050
  return s - x * ((g + k * M * _) / N * Math.sin(N * I) + _ * Math.cos(N * I));
33051
33051
  };
33052
33052
  } else if (k === 1)
33053
- b = (N) => s - Math.exp(-M * N) * (_ + (g + M * _) * N);
33053
+ w = (N) => s - Math.exp(-M * N) * (_ + (g + M * _) * N);
33054
33054
  else {
33055
33055
  const N = M * Math.sqrt(k * k - 1);
33056
- b = (I) => {
33057
- const x = Math.exp(-k * M * I), w = Math.min(N * I, 300);
33058
- return s - x * ((g + k * M * _) * Math.sinh(w) + N * _ * Math.cosh(w)) / N;
33056
+ w = (I) => {
33057
+ const x = Math.exp(-k * M * I), b = Math.min(N * I, 300);
33058
+ return s - x * ((g + k * M * _) * Math.sinh(b) + N * _ * Math.cosh(b)) / N;
33059
33059
  };
33060
33060
  }
33061
33061
  const L = {
33062
33062
  calculatedDuration: m && u || null,
33063
33063
  next: (N) => {
33064
- const I = b(N);
33064
+ const I = w(N);
33065
33065
  if (m)
33066
33066
  d.done = N >= u;
33067
33067
  else {
33068
33068
  let x = N === 0 ? g : 0;
33069
- k < 1 && (x = N === 0 ? /* @__PURE__ */ ft(g) : Wq(b, N, I));
33070
- const w = Math.abs(x) <= o, $ = Math.abs(s - I) <= i;
33071
- d.done = w && $;
33069
+ k < 1 && (x = N === 0 ? /* @__PURE__ */ ft(g) : Wq(w, N, I));
33070
+ const b = Math.abs(x) <= o, $ = Math.abs(s - I) <= i;
33071
+ d.done = b && $;
33072
33072
  }
33073
33073
  return d.value = d.done ? s : I, d;
33074
33074
  },
@@ -33089,19 +33089,19 @@ function sC({ keyframes: e, velocity: t = 0, power: n = 0.8, timeConstant: o = 3
33089
33089
  const u = e[0], y = {
33090
33090
  done: !1,
33091
33091
  value: u
33092
- }, m = (w) => d !== void 0 && w < d || l !== void 0 && w > l, g = (w) => d === void 0 ? l : l === void 0 || Math.abs(d - w) < Math.abs(l - w) ? d : l;
33092
+ }, m = (b) => d !== void 0 && b < d || l !== void 0 && b > l, g = (b) => d === void 0 ? l : l === void 0 || Math.abs(d - b) < Math.abs(l - b) ? d : l;
33093
33093
  let k = n * t;
33094
33094
  const _ = u + k, M = s === void 0 ? _ : s(_);
33095
33095
  M !== _ && (k = M - u);
33096
- const v = (w) => -k * Math.exp(-w / o), b = (w) => M + v(w), L = (w) => {
33097
- const $ = v(w), C = b(w);
33096
+ const v = (b) => -k * Math.exp(-b / o), w = (b) => M + v(b), L = (b) => {
33097
+ const $ = v(b), C = w(b);
33098
33098
  y.done = Math.abs($) <= h, y.value = y.done ? M : C;
33099
33099
  };
33100
33100
  let N, I;
33101
- const x = (w) => {
33102
- m(y.value) && (N = w, I = Sb({
33101
+ const x = (b) => {
33102
+ m(y.value) && (N = b, I = Sb({
33103
33103
  keyframes: [y.value, g(y.value)],
33104
- velocity: Wq(b, w, y.value),
33104
+ velocity: Wq(w, b, y.value),
33105
33105
  // TODO: This should be passing * 1000
33106
33106
  damping: i,
33107
33107
  stiffness: c,
@@ -33111,9 +33111,9 @@ function sC({ keyframes: e, velocity: t = 0, power: n = 0.8, timeConstant: o = 3
33111
33111
  };
33112
33112
  return x(0), {
33113
33113
  calculatedDuration: null,
33114
- next: (w) => {
33114
+ next: (b) => {
33115
33115
  let $ = !1;
33116
- return !I && N === void 0 && ($ = !0, L(w), x(w)), N !== void 0 && w >= N ? I.next(w - N) : (!$ && L(w), y);
33116
+ return !I && N === void 0 && ($ = !0, L(b), x(b)), N !== void 0 && b >= N ? I.next(b - N) : (!$ && L(b), y);
33117
33117
  }
33118
33118
  };
33119
33119
  }
@@ -33258,13 +33258,13 @@ class XC extends ZC {
33258
33258
  this.speed > 0 ? this.startTime = Math.min(this.startTime, t) : this.speed < 0 && (this.startTime = Math.min(t - i / this.speed, this.startTime)), n ? this.currentTime = t : this.updateTime(t);
33259
33259
  const M = this.currentTime - h * (this.playbackSpeed >= 0 ? 1 : -1), v = this.playbackSpeed >= 0 ? M < 0 : M > i;
33260
33260
  this.currentTime = Math.max(M, 0), this.state === "finished" && this.holdTime === null && (this.currentTime = i);
33261
- let b = this.currentTime, L = o;
33261
+ let w = this.currentTime, L = o;
33262
33262
  if (u) {
33263
- const w = Math.min(this.currentTime, i) / d;
33264
- let $ = Math.floor(w), C = w % 1;
33265
- !C && w >= 1 && (C = 1), C === 1 && $--, $ = Math.min($, u + 1), !!($ % 2) && (y === "reverse" ? (C = 1 - C, m && (C -= m / d)) : y === "mirror" && (L = s)), b = qt(0, 1, C) * d;
33263
+ const b = Math.min(this.currentTime, i) / d;
33264
+ let $ = Math.floor(b), C = b % 1;
33265
+ !C && b >= 1 && (C = 1), C === 1 && $--, $ = Math.min($, u + 1), !!($ % 2) && (y === "reverse" ? (C = 1 - C, m && (C -= m / d)) : y === "mirror" && (L = s)), w = qt(0, 1, C) * d;
33266
33266
  }
33267
- const N = v ? { done: !1, value: p[0] } : L.next(b);
33267
+ const N = v ? { done: !1, value: p[0] } : L.next(w);
33268
33268
  c && (N.value = c(N.value));
33269
33269
  let { done: I } = N;
33270
33270
  !v && l !== null && (I = this.playbackSpeed >= 0 ? this.currentTime >= i : this.currentTime <= 0);
@@ -34479,7 +34479,7 @@ function dI(e) {
34479
34479
  }), t;
34480
34480
  }
34481
34481
  const Ale = ({ children: e, custom: t, initial: n = !0, onExitComplete: o, presenceAffectsLayout: i = !0, mode: c = "sync", propagate: s = !1, anchorX: d = "left", root: l }) => {
34482
- const [h, p] = uA(s), u = we(() => dI(e), [e]), y = s && !h ? [] : u.map(_r), m = G(!0), g = G(u), k = Zt(() => /* @__PURE__ */ new Map()), [_, M] = B(u), [v, b] = B(u);
34482
+ const [h, p] = uA(s), u = we(() => dI(e), [e]), y = s && !h ? [] : u.map(_r), m = G(!0), g = G(u), k = Zt(() => /* @__PURE__ */ new Map()), [_, M] = B(u), [v, w] = B(u);
34483
34483
  VC(() => {
34484
34484
  m.current = !1, g.current = u;
34485
34485
  for (let I = 0; I < v.length; I++) {
@@ -34491,15 +34491,15 @@ const Ale = ({ children: e, custom: t, initial: n = !0, onExitComplete: o, prese
34491
34491
  if (u !== _) {
34492
34492
  let I = [...u];
34493
34493
  for (let x = 0; x < v.length; x++) {
34494
- const w = v[x], $ = _r(w);
34495
- y.includes($) || (I.splice(x, 0, w), L.push(w));
34494
+ const b = v[x], $ = _r(b);
34495
+ y.includes($) || (I.splice(x, 0, b), L.push(b));
34496
34496
  }
34497
- return c === "wait" && L.length && (I = L), b(dI(I)), M(u), null;
34497
+ return c === "wait" && L.length && (I = L), w(dI(I)), M(u), null;
34498
34498
  }
34499
34499
  process.env.NODE_ENV !== "production" && c === "wait" && v.length > 1 && console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);
34500
34500
  const { forceRender: N } = Ce(AC);
34501
34501
  return r(qe, { children: v.map((I) => {
34502
- const x = _r(I), w = s && !h ? !1 : u === v || y.includes(x), $ = () => {
34502
+ const x = _r(I), b = s && !h ? !1 : u === v || y.includes(x), $ = () => {
34503
34503
  if (k.has(x))
34504
34504
  k.set(x, !0);
34505
34505
  else
@@ -34507,9 +34507,9 @@ const Ale = ({ children: e, custom: t, initial: n = !0, onExitComplete: o, prese
34507
34507
  let C = !0;
34508
34508
  k.forEach((S) => {
34509
34509
  S || (C = !1);
34510
- }), C && (N?.(), b(g.current), s && p?.(), o && o());
34510
+ }), C && (N?.(), w(g.current), s && p?.(), o && o());
34511
34511
  };
34512
- return r($le, { isPresent: w, initial: !m.current || n ? void 0 : !1, custom: t, presenceAffectsLayout: i, mode: c, root: l, onExitComplete: w ? void 0 : $, anchorX: d, children: I }, x);
34512
+ return r($le, { isPresent: b, initial: !m.current || n ? void 0 : !1, custom: t, presenceAffectsLayout: i, mode: c, root: l, onExitComplete: b ? void 0 : $, anchorX: d, children: I }, x);
34513
34513
  }) });
34514
34514
  }, yA = nt({ strict: !1 }), lI = {
34515
34515
  animation: [
@@ -34856,12 +34856,12 @@ function Qle(e, t, n, o) {
34856
34856
  if (g) {
34857
34857
  const { transitionEnd: k, transition: _, ...M } = g;
34858
34858
  for (const v in M) {
34859
- let b = M[v];
34860
- if (Array.isArray(b)) {
34861
- const L = p ? b.length - 1 : 0;
34862
- b = b[L];
34859
+ let w = M[v];
34860
+ if (Array.isArray(w)) {
34861
+ const L = p ? w.length - 1 : 0;
34862
+ w = w[L];
34863
34863
  }
34864
- b !== null && (i[v] = b);
34864
+ w !== null && (i[v] = w);
34865
34865
  }
34866
34866
  for (const v in k)
34867
34867
  i[v] = k[v];
@@ -35687,26 +35687,26 @@ function Ehe(e) {
35687
35687
  const { props: h } = e, p = BA(e.parent) || {}, u = [], y = /* @__PURE__ */ new Set();
35688
35688
  let m = {}, g = 1 / 0;
35689
35689
  for (let _ = 0; _ < Rhe; _++) {
35690
- const M = jhe[_], v = n[M], b = h[M] !== void 0 ? h[M] : p[M], L = nr(b), N = M === l ? v.isActive : null;
35690
+ const M = jhe[_], v = n[M], w = h[M] !== void 0 ? h[M] : p[M], L = nr(w), N = M === l ? v.isActive : null;
35691
35691
  N === !1 && (g = _);
35692
- let I = b === p[M] && b !== h[M] && L;
35692
+ let I = w === p[M] && w !== h[M] && L;
35693
35693
  if (I && o && e.manuallyAnimateOnMount && (I = !1), v.protectedKeys = { ...m }, // If it isn't active and hasn't *just* been set as inactive
35694
35694
  !v.isActive && N === null || // If we didn't and don't have any defined prop for this animation type
35695
- !b && !v.prevProp || // Or if the prop doesn't define an animation
35696
- Hb(b) || typeof b == "boolean")
35695
+ !w && !v.prevProp || // Or if the prop doesn't define an animation
35696
+ Hb(w) || typeof w == "boolean")
35697
35697
  continue;
35698
- const x = Ohe(v.prevProp, b);
35699
- let w = x || // If we're making this variant active, we want to always make it active
35698
+ const x = Ohe(v.prevProp, w);
35699
+ let b = x || // If we're making this variant active, we want to always make it active
35700
35700
  M === l && v.isActive && !I && L || // If we removed a higher-priority variant (i is in reverse order)
35701
35701
  _ > g && L, $ = !1;
35702
- const C = Array.isArray(b) ? b : [b];
35702
+ const C = Array.isArray(w) ? w : [w];
35703
35703
  let S = C.reduce(i(M), {});
35704
35704
  N === !1 && (S = {});
35705
35705
  const { prevResolvedValues: q = {} } = v, z = {
35706
35706
  ...q,
35707
35707
  ...S
35708
35708
  }, D = (A) => {
35709
- w = !0, y.has(A) && ($ = !0, y.delete(A)), v.needsAnimating[A] = !0;
35709
+ b = !0, y.has(A) && ($ = !0, y.delete(A)), v.needsAnimating[A] = !0;
35710
35710
  const V = e.getValue(A);
35711
35711
  V && (V.liveStyle = !1);
35712
35712
  };
@@ -35717,9 +35717,9 @@ function Ehe(e) {
35717
35717
  let H = !1;
35718
35718
  MC(V) && MC(F) ? H = !DA(V, F) : H = V !== F, H ? V != null ? D(A) : y.add(A) : V !== void 0 && y.has(A) ? D(A) : v.protectedKeys[A] = !0;
35719
35719
  }
35720
- v.prevProp = b, v.prevResolvedValues = S, v.isActive && (m = { ...m, ...S }), o && e.blockInitialAnimation && (w = !1);
35720
+ v.prevProp = w, v.prevResolvedValues = S, v.isActive && (m = { ...m, ...S }), o && e.blockInitialAnimation && (b = !1);
35721
35721
  const T = I && x;
35722
- w && (!T || $) && u.push(...C.map((A) => {
35722
+ b && (!T || $) && u.push(...C.map((A) => {
35723
35723
  const V = { type: M };
35724
35724
  if (typeof A == "string" && o && !T && e.manuallyAnimateOnMount && e.parent) {
35725
35725
  const { parent: F } = e, H = ki(F, A);
@@ -35741,8 +35741,8 @@ function Ehe(e) {
35741
35741
  M && M.transition && (_.transition = M.transition);
35742
35742
  }
35743
35743
  y.forEach((M) => {
35744
- const v = e.getBaseTarget(M), b = e.getValue(M);
35745
- b && (b.liveStyle = !0), _[M] = v ?? null;
35744
+ const v = e.getBaseTarget(M), w = e.getValue(M);
35745
+ w && (w.liveStyle = !0), _[M] = v ?? null;
35746
35746
  }), u.push({ animation: _ });
35747
35747
  }
35748
35748
  let k = !!u.length;
@@ -36045,9 +36045,9 @@ class ppe {
36045
36045
  this.latestPointerEvent = u, this.latestPanInfo = y, this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0), lt((M) => {
36046
36046
  let v = this.getAxisMotionValue(M).get() || 0;
36047
36047
  if (Ct.test(v)) {
36048
- const { projection: b } = this.visualElement;
36049
- if (b && b.layout) {
36050
- const L = b.layout.layoutBox[M];
36048
+ const { projection: w } = this.visualElement;
36049
+ if (w && w.layout) {
36050
+ const L = w.layout.layoutBox[M];
36051
36051
  L && (v = Ze(L) * (parseFloat(v) / 100));
36052
36052
  }
36053
36053
  }
@@ -36632,12 +36632,12 @@ function YA({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
36632
36632
  const g = this.options.transition || h.getDefaultTransition() || Gpe, { onLayoutAnimationStart: k, onLayoutAnimationComplete: _ } = h.getProps(), M = !this.targetLayout || !ZA(this.targetLayout, m), v = !u && y;
36633
36633
  if (this.options.layoutRoot || this.resumeFrom || v || u && (M || !this.currentAnimation)) {
36634
36634
  this.resumeFrom && (this.resumingFrom = this.resumeFrom, this.resumingFrom.resumingFrom = void 0);
36635
- const b = {
36635
+ const w = {
36636
36636
  ...JC(g, "layout"),
36637
36637
  onPlay: k,
36638
36638
  onComplete: _
36639
36639
  };
36640
- (h.shouldReduceMotion || this.options.layoutRoot) && (b.delay = 0, b.type = !1), this.startAnimation(b), this.setAnimationOrigin(p, v);
36640
+ (h.shouldReduceMotion || this.options.layoutRoot) && (w.delay = 0, w.type = !1), this.startAnimation(w), this.setAnimationOrigin(p, v);
36641
36641
  } else
36642
36642
  u || KI(this), this.isLead() && this.options.onExitComplete && this.options.onExitComplete();
36643
36643
  this.targetLayout = m;
@@ -36888,10 +36888,10 @@ function YA({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
36888
36888
  (!this.relativeParent || !this.relativeParent.options.layoutRoot) && (this.relativeTarget = this.relativeTargetOrigin = void 0), this.attemptToResolveRelativeTarget = !d;
36889
36889
  const y = ze(), m = l ? l.source : void 0, g = this.layout ? this.layout.source : void 0, k = m !== g, _ = this.getStack(), M = !_ || _.members.length <= 1, v = !!(k && !M && this.options.crossfade === !0 && !this.path.some(Wpe));
36890
36890
  this.animationProgress = 0;
36891
- let b;
36891
+ let w;
36892
36892
  this.mixTargetDelta = (L) => {
36893
36893
  const N = L / 1e3;
36894
- ZI(u.x, s.x, N), ZI(u.y, s.y, N), this.setTargetDelta(u), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (Ji(y, this.layout.layoutBox, this.relativeParent.layout.layoutBox), Upe(this.relativeTarget, this.relativeTargetOrigin, y, N), b && $pe(this.relativeTarget, b) && (this.isProjectionDirty = !1), b || (b = ze()), rt(b, this.relativeTarget)), k && (this.animationValues = p, wpe(p, h, this.latestValues, N, v, M)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = N;
36894
+ ZI(u.x, s.x, N), ZI(u.y, s.y, N), this.setTargetDelta(u), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (Ji(y, this.layout.layoutBox, this.relativeParent.layout.layoutBox), Upe(this.relativeTarget, this.relativeTargetOrigin, y, N), w && $pe(this.relativeTarget, w) && (this.isProjectionDirty = !1), w || (w = ze()), rt(w, this.relativeTarget)), k && (this.animationValues = p, wpe(p, h, this.latestValues, N, v, M)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = N;
36895
36895
  }, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
36896
36896
  }
36897
36897
  startAnimation(s) {
@@ -37012,8 +37012,8 @@ function YA({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
37012
37012
  continue;
37013
37013
  const { correct: k, applyTo: _, isCSSVariable: M } = or[g], v = u === "none" ? p[g] : k(p[g], h);
37014
37014
  if (_) {
37015
- const b = _.length;
37016
- for (let L = 0; L < b; L++)
37015
+ const w = _.length;
37016
+ for (let L = 0; L < w; L++)
37017
37017
  s[_[L]] = v;
37018
37018
  } else
37019
37019
  M ? this.options.visualElement.renderState.vars[g] = v : s[g] = v;
@@ -37950,11 +37950,11 @@ const zue = "_formContainer_14ads_1", Vue = "_headerLine_14ads_17", Pue = "_form
37950
37950
  const M = Array.from(t);
37951
37951
  M.splice(_, 1);
37952
37952
  const v = new DataTransfer();
37953
- M.forEach((b) => v.items.add(b)), n(v.files);
37953
+ M.forEach((w) => v.items.add(w)), n(v.files);
37954
37954
  }, k = (_) => {
37955
37955
  if (_ === 0) return "0 Bytes";
37956
- const M = 1024, v = ["Bytes", "KB", "MB", "GB"], b = Math.floor(Math.log(_) / Math.log(M));
37957
- return parseFloat((_ / Math.pow(M, b)).toFixed(2)) + " " + v[b];
37956
+ const M = 1024, v = ["Bytes", "KB", "MB", "GB"], w = Math.floor(Math.log(_) / Math.log(M));
37957
+ return parseFloat((_ / Math.pow(M, w)).toFixed(2)) + " " + v[w];
37958
37958
  };
37959
37959
  return /* @__PURE__ */ f("div", { className: `${Ue.fileInputContainer} ${c && i ? Ue.hasError : ""}`, children: [
37960
37960
  /* @__PURE__ */ f("label", { htmlFor: e.name, className: "form-label", children: [
@@ -38839,7 +38839,7 @@ function lz() {
38839
38839
  var k = u.get(s), _ = u.get(d);
38840
38840
  if (k && _)
38841
38841
  return k == d && _ == s;
38842
- var M = -1, v = !0, b = l & i ? new e() : void 0;
38842
+ var M = -1, v = !0, w = l & i ? new e() : void 0;
38843
38843
  for (u.set(s, d), u.set(d, s); ++M < m; ) {
38844
38844
  var L = s[M], N = d[M];
38845
38845
  if (h)
@@ -38850,10 +38850,10 @@ function lz() {
38850
38850
  v = !1;
38851
38851
  break;
38852
38852
  }
38853
- if (b) {
38854
- if (!t(d, function(x, w) {
38855
- if (!n(b, w) && (L === x || p(L, x, l, h, u)))
38856
- return b.push(w);
38853
+ if (w) {
38854
+ if (!t(d, function(x, b) {
38855
+ if (!n(w, b) && (L === x || p(L, x, l, h, u)))
38856
+ return w.push(b);
38857
38857
  })) {
38858
38858
  v = !1;
38859
38859
  break;
@@ -38902,9 +38902,9 @@ var fL, n$;
38902
38902
  function R4e() {
38903
38903
  if (n$) return fL;
38904
38904
  n$ = 1;
38905
- var e = uN(), t = D4e(), n = oz(), o = lz(), i = B4e(), c = j4e(), s = 1, d = 2, l = "[object Boolean]", h = "[object Date]", p = "[object Error]", u = "[object Map]", y = "[object Number]", m = "[object RegExp]", g = "[object Set]", k = "[object String]", _ = "[object Symbol]", M = "[object ArrayBuffer]", v = "[object DataView]", b = e ? e.prototype : void 0, L = b ? b.valueOf : void 0;
38906
- function N(I, x, w, $, C, S, q) {
38907
- switch (w) {
38905
+ var e = uN(), t = D4e(), n = oz(), o = lz(), i = B4e(), c = j4e(), s = 1, d = 2, l = "[object Boolean]", h = "[object Date]", p = "[object Error]", u = "[object Map]", y = "[object Number]", m = "[object RegExp]", g = "[object Set]", k = "[object String]", _ = "[object Symbol]", M = "[object ArrayBuffer]", v = "[object DataView]", w = e ? e.prototype : void 0, L = w ? w.valueOf : void 0;
38906
+ function N(I, x, b, $, C, S, q) {
38907
+ switch (b) {
38908
38908
  case v:
38909
38909
  if (I.byteLength != x.byteLength || I.byteOffset != x.byteOffset)
38910
38910
  return !1;
@@ -39085,8 +39085,8 @@ var qL, g$;
39085
39085
  function J4e() {
39086
39086
  if (g$) return qL;
39087
39087
  g$ = 1;
39088
- var e = Rb(), t = pz(), n = Ob(), o = "[object Arguments]", i = "[object Array]", c = "[object Boolean]", s = "[object Date]", d = "[object Error]", l = "[object Function]", h = "[object Map]", p = "[object Number]", u = "[object Object]", y = "[object RegExp]", m = "[object Set]", g = "[object String]", k = "[object WeakMap]", _ = "[object ArrayBuffer]", M = "[object DataView]", v = "[object Float32Array]", b = "[object Float64Array]", L = "[object Int8Array]", N = "[object Int16Array]", I = "[object Int32Array]", x = "[object Uint8Array]", w = "[object Uint8ClampedArray]", $ = "[object Uint16Array]", C = "[object Uint32Array]", S = {};
39089
- S[v] = S[b] = S[L] = S[N] = S[I] = S[x] = S[w] = S[$] = S[C] = !0, S[o] = S[i] = S[_] = S[c] = S[M] = S[s] = S[d] = S[l] = S[h] = S[p] = S[u] = S[y] = S[m] = S[g] = S[k] = !1;
39088
+ var e = Rb(), t = pz(), n = Ob(), o = "[object Arguments]", i = "[object Array]", c = "[object Boolean]", s = "[object Date]", d = "[object Error]", l = "[object Function]", h = "[object Map]", p = "[object Number]", u = "[object Object]", y = "[object RegExp]", m = "[object Set]", g = "[object String]", k = "[object WeakMap]", _ = "[object ArrayBuffer]", M = "[object DataView]", v = "[object Float32Array]", w = "[object Float64Array]", L = "[object Int8Array]", N = "[object Int16Array]", I = "[object Int32Array]", x = "[object Uint8Array]", b = "[object Uint8ClampedArray]", $ = "[object Uint16Array]", C = "[object Uint32Array]", S = {};
39089
+ S[v] = S[w] = S[L] = S[N] = S[I] = S[x] = S[b] = S[$] = S[C] = !0, S[o] = S[i] = S[_] = S[c] = S[M] = S[s] = S[d] = S[l] = S[h] = S[p] = S[u] = S[y] = S[m] = S[g] = S[k] = !1;
39090
39090
  function q(z) {
39091
39091
  return n(z) && t(z.length) && !!S[e(z)];
39092
39092
  }
@@ -39230,17 +39230,17 @@ function d5e() {
39230
39230
  if (!(u ? M in s : o.call(s, M)))
39231
39231
  return !1;
39232
39232
  }
39233
- var v = p.get(c), b = p.get(s);
39234
- if (v && b)
39235
- return v == s && b == c;
39233
+ var v = p.get(c), w = p.get(s);
39234
+ if (v && w)
39235
+ return v == s && w == c;
39236
39236
  var L = !0;
39237
39237
  p.set(c, s), p.set(s, c);
39238
39238
  for (var N = u; ++_ < m; ) {
39239
39239
  M = y[_];
39240
39240
  var I = c[M], x = s[M];
39241
39241
  if (l)
39242
- var w = u ? l(x, I, M, s, c, p) : l(I, x, M, c, s, p);
39243
- if (!(w === void 0 ? I === x || h(I, x, d, l, p) : w)) {
39242
+ var b = u ? l(x, I, M, s, c, p) : l(I, x, M, c, s, p);
39243
+ if (!(b === void 0 ? I === x || h(I, x, d, l, p) : b)) {
39244
39244
  L = !1;
39245
39245
  break;
39246
39246
  }
@@ -39287,8 +39287,8 @@ function y5e() {
39287
39287
  if (P$) return GL;
39288
39288
  P$ = 1;
39289
39289
  var e = l5e(), t = yN(), n = h5e(), o = p5e(), i = u5e(), c = Rb(), s = sz(), d = "[object Map]", l = "[object Object]", h = "[object Promise]", p = "[object Set]", u = "[object WeakMap]", y = "[object DataView]", m = s(e), g = s(t), k = s(n), _ = s(o), M = s(i), v = c;
39290
- return (e && v(new e(new ArrayBuffer(1))) != y || t && v(new t()) != d || n && v(n.resolve()) != h || o && v(new o()) != p || i && v(new i()) != u) && (v = function(b) {
39291
- var L = c(b), N = L == l ? b.constructor : void 0, I = N ? s(N) : "";
39290
+ return (e && v(new e(new ArrayBuffer(1))) != y || t && v(new t()) != d || n && v(n.resolve()) != h || o && v(new o()) != p || i && v(new i()) != u) && (v = function(w) {
39291
+ var L = c(w), N = L == l ? w.constructor : void 0, I = N ? s(N) : "";
39292
39292
  if (I)
39293
39293
  switch (I) {
39294
39294
  case m:
@@ -39310,25 +39310,25 @@ function k5e() {
39310
39310
  if (T$) return KL;
39311
39311
  T$ = 1;
39312
39312
  var e = A4e(), t = lz(), n = R4e(), o = d5e(), i = y5e(), c = kN(), s = hz(), d = uz(), l = 1, h = "[object Arguments]", p = "[object Array]", u = "[object Object]", y = Object.prototype, m = y.hasOwnProperty;
39313
- function g(k, _, M, v, b, L) {
39314
- var N = c(k), I = c(_), x = N ? p : i(k), w = I ? p : i(_);
39315
- x = x == h ? u : x, w = w == h ? u : w;
39316
- var $ = x == u, C = w == u, S = x == w;
39313
+ function g(k, _, M, v, w, L) {
39314
+ var N = c(k), I = c(_), x = N ? p : i(k), b = I ? p : i(_);
39315
+ x = x == h ? u : x, b = b == h ? u : b;
39316
+ var $ = x == u, C = b == u, S = x == b;
39317
39317
  if (S && s(k)) {
39318
39318
  if (!s(_))
39319
39319
  return !1;
39320
39320
  N = !0, $ = !1;
39321
39321
  }
39322
39322
  if (S && !$)
39323
- return L || (L = new e()), N || d(k) ? t(k, _, M, v, b, L) : n(k, _, x, M, v, b, L);
39323
+ return L || (L = new e()), N || d(k) ? t(k, _, M, v, w, L) : n(k, _, x, M, v, w, L);
39324
39324
  if (!(M & l)) {
39325
39325
  var q = $ && m.call(k, "__wrapped__"), z = C && m.call(_, "__wrapped__");
39326
39326
  if (q || z) {
39327
39327
  var D = q ? k.value() : k, T = z ? _.value() : _;
39328
- return L || (L = new e()), b(D, T, M, v, L);
39328
+ return L || (L = new e()), w(D, T, M, v, L);
39329
39329
  }
39330
39330
  }
39331
- return S ? (L || (L = new e()), o(k, _, M, v, b, L)) : !1;
39331
+ return S ? (L || (L = new e()), o(k, _, M, v, w, L)) : !1;
39332
39332
  }
39333
39333
  return KL = g, KL;
39334
39334
  }
@@ -39368,32 +39368,32 @@ const v5e = /* @__PURE__ */ kV(g5e), Jxe = ({
39368
39368
  O(() => {
39369
39369
  v5e(M.current, t) || (p(t), M.current = t);
39370
39370
  }, [t]);
39371
- const v = (w, $) => {
39372
- const C = { ...h, [w]: $ };
39373
- if (p(C), m[w]) {
39374
- const S = e.fields.find((q) => q.name === w);
39371
+ const v = (b, $) => {
39372
+ const C = { ...h, [b]: $ };
39373
+ if (p(C), m[b]) {
39374
+ const S = e.fields.find((q) => q.name === b);
39375
39375
  if (S) {
39376
39376
  const q = CC($, S);
39377
39377
  y((z) => ({
39378
39378
  ...z,
39379
- [w]: q.isValid ? "" : q.error
39379
+ [b]: q.isValid ? "" : q.error
39380
39380
  }));
39381
39381
  }
39382
39382
  }
39383
- }, b = (w) => {
39384
- if (!m[w]) {
39385
- g((C) => ({ ...C, [w]: !0 }));
39386
- const $ = e.fields.find((C) => C.name === w);
39383
+ }, w = (b) => {
39384
+ if (!m[b]) {
39385
+ g((C) => ({ ...C, [b]: !0 }));
39386
+ const $ = e.fields.find((C) => C.name === b);
39387
39387
  if ($) {
39388
- const C = CC(h[w], $);
39388
+ const C = CC(h[b], $);
39389
39389
  y((S) => ({
39390
39390
  ...S,
39391
- [w]: C.isValid ? "" : C.error
39391
+ [b]: C.isValid ? "" : C.error
39392
39392
  }));
39393
39393
  }
39394
39394
  }
39395
- }, L = async (w) => {
39396
- w.preventDefault(), _(!0);
39395
+ }, L = async (b) => {
39396
+ b.preventDefault(), _(!0);
39397
39397
  const $ = e.fields.reduce(
39398
39398
  (S, q) => (q.type !== "section" && (S[q.name] = !0), S),
39399
39399
  {}
@@ -39428,27 +39428,27 @@ const v5e = /* @__PURE__ */ kV(g5e), Jxe = ({
39428
39428
  {
39429
39429
  className: _e.gridContainer,
39430
39430
  style: { gridTemplateColumns: `repeat(${x}, minmax(0, 1fr))` },
39431
- children: e.fields.map((w) => {
39432
- if (w.type === "section")
39431
+ children: e.fields.map((b) => {
39432
+ if (b.type === "section")
39433
39433
  return /* @__PURE__ */ f("div", { className: _e.sectionFull, children: [
39434
- /* @__PURE__ */ r("h5", { className: _e.sectionTitle, children: w.label }),
39435
- w.help && /* @__PURE__ */ r("p", { className: _e.sectionHelp, children: w.help })
39436
- ] }, w.name);
39437
- const C = { gridColumn: `span ${Math.max(1, Math.min(x, w.gridCol ?? x))}` };
39434
+ /* @__PURE__ */ r("h5", { className: _e.sectionTitle, children: b.label }),
39435
+ b.help && /* @__PURE__ */ r("p", { className: _e.sectionHelp, children: b.help })
39436
+ ] }, b.name);
39437
+ const C = { gridColumn: `span ${Math.max(1, Math.min(x, b.gridCol ?? x))}` };
39438
39438
  return /* @__PURE__ */ f("div", { className: _e.fieldGridItem, style: C, children: [
39439
39439
  /* @__PURE__ */ r(
39440
39440
  n4e,
39441
39441
  {
39442
- field: w,
39443
- value: h[w.name],
39444
- onChange: (S) => v(w.name, S),
39445
- onBlur: () => b(w.name),
39446
- error: u[w.name],
39447
- touched: m[w.name]
39442
+ field: b,
39443
+ value: h[b.name],
39444
+ onChange: (S) => v(b.name, S),
39445
+ onBlur: () => w(b.name),
39446
+ error: u[b.name],
39447
+ touched: m[b.name]
39448
39448
  }
39449
39449
  ),
39450
- w.help && /* @__PURE__ */ r("small", { className: _e.fieldHelp, children: w.help })
39451
- ] }, w.name);
39450
+ b.help && /* @__PURE__ */ r("small", { className: _e.fieldHelp, children: b.help })
39451
+ ] }, b.name);
39452
39452
  })
39453
39453
  }
39454
39454
  ),
@@ -39955,21 +39955,21 @@ const B$ = /* @__PURE__ */ new Map(), j$ = ({
39955
39955
  for (const [_, M] of Object.entries(k)) {
39956
39956
  const v = e.find((N) => N.id === _);
39957
39957
  if (!v) continue;
39958
- let b = M;
39958
+ let w = M;
39959
39959
  try {
39960
- typeof M == "function" && (b = await M(k)), typeof v.executeOnApply == "function" && (b = await v.executeOnApply(b, k));
39960
+ typeof M == "function" && (w = await M(k)), typeof v.executeOnApply == "function" && (w = await v.executeOnApply(w, k));
39961
39961
  } catch {
39962
39962
  continue;
39963
39963
  }
39964
39964
  if (v.type === "daterange") {
39965
- const N = b?.start ?? "", I = b?.end ?? "", x = typeof N == "string" ? N.trim() === "" : !N, w = typeof I == "string" ? I.trim() === "" : !I;
39966
- if (x && w)
39965
+ const N = w?.start ?? "", I = w?.end ?? "", x = typeof N == "string" ? N.trim() === "" : !N, b = typeof I == "string" ? I.trim() === "" : !I;
39966
+ if (x && b)
39967
39967
  continue;
39968
39968
  }
39969
- b == null || typeof b == "string" && b.trim() === "" || Array.isArray(b) && b.length === 0 || typeof b == "object" && !Array.isArray(b) && Object.keys(b).length === 0 || g.push({
39969
+ w == null || typeof w == "string" && w.trim() === "" || Array.isArray(w) && w.length === 0 || typeof w == "object" && !Array.isArray(w) && Object.keys(w).length === 0 || g.push({
39970
39970
  id: _,
39971
39971
  type: v.type,
39972
- value: b,
39972
+ value: w,
39973
39973
  label: v.label
39974
39974
  });
39975
39975
  }
@@ -40075,16 +40075,16 @@ function Xke(e, t, n = "", o = { key: null, direction: "asc" }, i = 1, c = 10, s
40075
40075
  if (!o?.key) return h;
40076
40076
  const k = o.key;
40077
40077
  return [...h].sort((_, M) => {
40078
- const v = _.data[k], b = M.data[k];
40078
+ const v = _.data[k], w = M.data[k];
40079
40079
  if (v == null) return 1;
40080
- if (b == null) return -1;
40081
- if (typeof v == "number" && typeof b == "number")
40082
- return o.direction === "desc" ? b - v : v - b;
40083
- if (v instanceof Date && b instanceof Date) {
40084
- const N = v.getTime() - b.getTime();
40080
+ if (w == null) return -1;
40081
+ if (typeof v == "number" && typeof w == "number")
40082
+ return o.direction === "desc" ? w - v : v - w;
40083
+ if (v instanceof Date && w instanceof Date) {
40084
+ const N = v.getTime() - w.getTime();
40085
40085
  return o.direction === "desc" ? -N : N;
40086
40086
  }
40087
- const L = String(v).localeCompare(String(b), void 0, {
40087
+ const L = String(v).localeCompare(String(w), void 0, {
40088
40088
  numeric: !0,
40089
40089
  sensitivity: "base"
40090
40090
  });
@@ -40184,16 +40184,16 @@ const Yke = ({ value: e }) => e, Jke = ({ value: e }) => ce.createElement(
40184
40184
  applyDisabled: g = !1,
40185
40185
  loading: k = !1
40186
40186
  }) => {
40187
- const [_, M] = B(!1), v = typeof s == "boolean" ? s : _, { appliedFilters: b, tempFilters: L, updateFilter: N, applyFilters: I, clearAllFilters: x } = Kke({
40187
+ const [_, M] = B(!1), v = typeof s == "boolean" ? s : _, { appliedFilters: w, tempFilters: L, updateFilter: N, applyFilters: I, clearAllFilters: x } = Kke({
40188
40188
  filters: e,
40189
40189
  externalFilters: t,
40190
40190
  onFiltersChange: n,
40191
40191
  onApply: o,
40192
40192
  isControlled: i
40193
- }), w = G(null), $ = G(null);
40193
+ }), b = G(null), $ = G(null);
40194
40194
  O(() => {
40195
- if (v && w.current) {
40196
- const T = w.current.getBoundingClientRect().height;
40195
+ if (v && b.current) {
40196
+ const T = b.current.getBoundingClientRect().height;
40197
40197
  h?.(T);
40198
40198
  } else
40199
40199
  h?.(0);
@@ -40214,7 +40214,7 @@ const Yke = ({ value: e }) => e, Jke = ({ value: e }) => ce.createElement(
40214
40214
  T = void 0;
40215
40215
  }
40216
40216
  let P = [];
40217
- T && Array.isArray(T) && T.length > 0 ? P = T : b && b.length > 0 ? P = b : P = S(), n?.(P), o?.(P);
40217
+ T && Array.isArray(T) && T.length > 0 ? P = T : w && w.length > 0 ? P = w : P = S(), n?.(P), o?.(P);
40218
40218
  }, z = () => {
40219
40219
  d?.(!1), typeof s != "boolean" && M(!1);
40220
40220
  }, D = () => {
@@ -40233,7 +40233,7 @@ const Yke = ({ value: e }) => e, Jke = ({ value: e }) => ce.createElement(
40233
40233
  /* @__PURE__ */ f(
40234
40234
  "button",
40235
40235
  {
40236
- className: `${R.toggleFiltersButton} ${b.length > 0 ? R.active : ""} ${v ? R.toggleFiltersButtonOpen : ""} ${k ? R.loadingButton : ""}`,
40236
+ className: `${R.toggleFiltersButton} ${w.length > 0 ? R.active : ""} ${v ? R.toggleFiltersButtonOpen : ""} ${k ? R.loadingButton : ""}`,
40237
40237
  onClick: C,
40238
40238
  "aria-expanded": v,
40239
40239
  "aria-controls": "advanced-filters-panel",
@@ -40242,7 +40242,7 @@ const Yke = ({ value: e }) => e, Jke = ({ value: e }) => ce.createElement(
40242
40242
  children: [
40243
40243
  k ? /* @__PURE__ */ r("span", { className: R.loaderSpinnerSmall }) : /* @__PURE__ */ r(Ft, { size: 14 }),
40244
40244
  /* @__PURE__ */ r("span", { className: R.buttonTextCompact, children: p }),
40245
- b.length > 0 && !k && /* @__PURE__ */ r("span", { className: R.filterCountBadge, "aria-hidden": !0, children: b.length }),
40245
+ w.length > 0 && !k && /* @__PURE__ */ r("span", { className: R.filterCountBadge, "aria-hidden": !0, children: w.length }),
40246
40246
  k && /* @__PURE__ */ r("span", { className: R.loadingIndicator, "aria-hidden": !0, children: "Chargement..." })
40247
40247
  ]
40248
40248
  }
@@ -40251,7 +40251,7 @@ const Yke = ({ value: e }) => e, Jke = ({ value: e }) => ce.createElement(
40251
40251
  "div",
40252
40252
  {
40253
40253
  id: "advanced-filters-panel",
40254
- ref: w,
40254
+ ref: b,
40255
40255
  className: `${R.filtersPanel} ${l === "top" ? `${R.filtersPanelInline} ${R.filtersPanelHorizontal}` : ""}`,
40256
40256
  role: "region",
40257
40257
  "aria-label": "Panneau de filtres avancés",
@@ -40272,9 +40272,9 @@ const Yke = ({ value: e }) => e, Jke = ({ value: e }) => ce.createElement(
40272
40272
  )
40273
40273
  ] }, T.id)) }),
40274
40274
  /* @__PURE__ */ f("div", { className: R.filtersActionsHorizontal, children: [
40275
- /* @__PURE__ */ r("div", { className: R.activeFiltersSection, children: b.length > 0 && /* @__PURE__ */ f("div", { className: R.activeFiltersRow, children: [
40275
+ /* @__PURE__ */ r("div", { className: R.activeFiltersSection, children: w.length > 0 && /* @__PURE__ */ f("div", { className: R.activeFiltersRow, children: [
40276
40276
  /* @__PURE__ */ r("span", { className: R.activeLabelCompact, children: "Actifs :" }),
40277
- /* @__PURE__ */ r("div", { className: R.activeFiltersList, children: b.map((T) => /* @__PURE__ */ f("div", { className: R.activeFilterTag, children: [
40277
+ /* @__PURE__ */ r("div", { className: R.activeFiltersList, children: w.map((T) => /* @__PURE__ */ f("div", { className: R.activeFilterTag, children: [
40278
40278
  T.label ?? T.id,
40279
40279
  /* @__PURE__ */ r(
40280
40280
  "button",
@@ -40480,7 +40480,7 @@ const Yke = ({ value: e }) => e, Jke = ({ value: e }) => ce.createElement(
40480
40480
  const k = [];
40481
40481
  let M = Math.max(1, h - Math.floor(2.5)), v = M + 5 - 1;
40482
40482
  v > l && (v = l, M = Math.max(1, v - 5 + 1));
40483
- for (let b = M; b <= v; b++) k.push(b);
40483
+ for (let w = M; w <= v; w++) k.push(w);
40484
40484
  return k;
40485
40485
  };
40486
40486
  return /* @__PURE__ */ f("div", { className: R.paginationContainer, role: "navigation", "aria-label": "Pagination", children: [
@@ -40635,12 +40635,12 @@ const Yke = ({ value: e }) => e, Jke = ({ value: e }) => ce.createElement(
40635
40635
  onPageChange: _,
40636
40636
  itemLabel: M = "items",
40637
40637
  advancedFiltersLabel: v = "Advanced-Filters",
40638
- advancedFiltersActiveLabel: b,
40638
+ advancedFiltersActiveLabel: w,
40639
40639
  sortLabel: L = "Sort",
40640
40640
  applyLabel: N = "Apply",
40641
40641
  cancelLabel: I = "Cancel",
40642
40642
  clearLabel: x = "Clear",
40643
- applyDisabled: w = !1,
40643
+ applyDisabled: b = !1,
40644
40644
  paginationLoading: $ = !1,
40645
40645
  filtersLoading: C = !1,
40646
40646
  sortLoading: S = !1,
@@ -40687,7 +40687,7 @@ const Yke = ({ value: e }) => e, Jke = ({ value: e }) => ce.createElement(
40687
40687
  }, [K]), O(() => {
40688
40688
  s.length > 0 && K.length > 0 && H(!0);
40689
40689
  }, [s.length, K.length]);
40690
- const bi = (K?.length ?? 0) > 0 && b ? b : v;
40690
+ const bi = (K?.length ?? 0) > 0 && w ? w : v;
40691
40691
  return /* @__PURE__ */ f(
40692
40692
  "div",
40693
40693
  {
@@ -40727,7 +40727,7 @@ const Yke = ({ value: e }) => e, Jke = ({ value: e }) => ce.createElement(
40727
40727
  applyLabel: N,
40728
40728
  cancelLabel: I,
40729
40729
  clearLabel: x,
40730
- applyDisabled: w,
40730
+ applyDisabled: b,
40731
40731
  loading: C
40732
40732
  }
40733
40733
  )
@@ -41366,12 +41366,12 @@ const abe = ({
41366
41366
  preset: M,
41367
41367
  background: v
41368
41368
  } = e, {
41369
- itemsContainerStyle: b,
41369
+ itemsContainerStyle: w,
41370
41370
  itemsContainerClassName: L,
41371
41371
  summaryGridColumns: N,
41372
41372
  compactItemWidth: I,
41373
41373
  compactItemHeight: x,
41374
- compactItemStyle: w,
41374
+ compactItemStyle: b,
41375
41375
  summaryCardWidth: $,
41376
41376
  summaryCardHeight: C,
41377
41377
  summaryCardStyle: S
@@ -41394,7 +41394,7 @@ const abe = ({
41394
41394
  gap: 18,
41395
41395
  alignItems: "stretch",
41396
41396
  width: "100%"
41397
- } : void 0) ?? {}, ...b ?? {} };
41397
+ } : void 0) ?? {}, ...w ?? {} };
41398
41398
  return /* @__PURE__ */ f("div", { className: D, style: z, "aria-busy": p, children: [
41399
41399
  d && /* @__PURE__ */ r(O$, { title: d }),
41400
41400
  /* @__PURE__ */ r("div", { className: oe.mpSummaryInner, children: /* @__PURE__ */ r(
@@ -41438,12 +41438,12 @@ const abe = ({
41438
41438
  }
41439
41439
  return /* @__PURE__ */ f("div", { className: D, style: z, "aria-busy": p, children: [
41440
41440
  d && /* @__PURE__ */ r(O$, { title: d }),
41441
- /* @__PURE__ */ r("div", { className: oe.mpList, style: b, children: p ? /* @__PURE__ */ r("div", { className: oe.mpEmpty, children: "Chargement…" }) : t.length === 0 ? /* @__PURE__ */ r("div", { className: oe.mpEmpty, children: u }) : t.map((P) => {
41441
+ /* @__PURE__ */ r("div", { className: oe.mpList, style: w, children: p ? /* @__PURE__ */ r("div", { className: oe.mpEmpty, children: "Chargement…" }) : t.length === 0 ? /* @__PURE__ */ r("div", { className: oe.mpEmpty, children: u }) : t.map((P) => {
41442
41442
  const A = s ? {
41443
41443
  width: I ?? void 0,
41444
41444
  height: x ?? void 0,
41445
41445
  boxSizing: "border-box",
41446
- ...w ?? {}
41446
+ ...b ?? {}
41447
41447
  } : void 0;
41448
41448
  return /* @__PURE__ */ r(
41449
41449
  "div",
@@ -41483,7 +41483,7 @@ const nbe = ({
41483
41483
  titleKey: y,
41484
41484
  leftTitleKey: m
41485
41485
  }) => {
41486
- const g = t ? typeof t == "number" ? `${t}px` : t : void 0, k = n ? typeof n == "number" ? `${n}px` : n : void 0, _ = c && typeof c == "object" && !ce.isValidElement(c) && ("text" in c || "subtext" in c || "icon" in c || "background" in c || "iconSize" in c), M = _ ? c : void 0, v = M?.icon ? $t[M.icon] : void 0, b = 28, L = M?.iconSize ?? b, N = [
41486
+ const g = t ? typeof t == "number" ? `${t}px` : t : void 0, k = n ? typeof n == "number" ? `${n}px` : n : void 0, _ = c && typeof c == "object" && !ce.isValidElement(c) && ("text" in c || "subtext" in c || "icon" in c || "background" in c || "iconSize" in c), M = _ ? c : void 0, v = M?.icon ? $t[M.icon] : void 0, w = 28, L = M?.iconSize ?? w, N = [
41487
41487
  "chart-container",
41488
41488
  `variant-${p}`,
41489
41489
  u ? "with-border" : "",
@@ -41543,7 +41543,7 @@ const nbe = ({
41543
41543
  v,
41544
41544
  {
41545
41545
  color: M.iconColor ?? "currentColor",
41546
- size: typeof L == "number" ? L : parseInt(String(L), 10) || b
41546
+ size: typeof L == "number" ? L : parseInt(String(L), 10) || w
41547
41547
  }
41548
41548
  )
41549
41549
  }
@@ -41575,7 +41575,7 @@ const nbe = ({
41575
41575
  a11yConfig: k,
41576
41576
  titleKey: _
41577
41577
  }) => {
41578
- const M = o || y?.icon, v = typeof M == "string", b = v ? $t[M] : null, L = v ? null : M;
41578
+ const M = o || y?.icon, v = typeof M == "string", w = v ? $t[M] : null, L = v ? null : M;
41579
41579
  return /* @__PURE__ */ f(
41580
41580
  "div",
41581
41581
  {
@@ -41592,8 +41592,8 @@ const nbe = ({
41592
41592
  onClick: d,
41593
41593
  title: te(k, _),
41594
41594
  children: [
41595
- b && /* @__PURE__ */ r(
41596
- b,
41595
+ w && /* @__PURE__ */ r(
41596
+ w,
41597
41597
  {
41598
41598
  className: "alert-icon",
41599
41599
  size: 20,
@@ -41668,7 +41668,7 @@ const nbe = ({
41668
41668
  d.current.set(z, P);
41669
41669
  },
41670
41670
  [M]
41671
- ), b = de(
41671
+ ), w = de(
41672
41672
  (z) => {
41673
41673
  const D = kme(), T = { ...z, id: D, createdAt: Date.now() };
41674
41674
  return s((P) => {
@@ -41686,16 +41686,16 @@ const nbe = ({
41686
41686
  z && window.getComputedStyle(z).position === "static" && (z.style.position = "relative"), p((T) => T === z ? T : z), y(D);
41687
41687
  },
41688
41688
  []
41689
- ), x = de(() => g.current.slice(), []), w = we(
41689
+ ), x = de(() => g.current.slice(), []), b = we(
41690
41690
  () => ({
41691
- showAlert: b,
41691
+ showAlert: w,
41692
41692
  dismissAlert: M,
41693
41693
  updateAlert: L,
41694
41694
  clearAlerts: N,
41695
41695
  setContainerRef: I,
41696
41696
  getAlertsSnapshot: x
41697
41697
  }),
41698
- [b, M, L, N, I, x]
41698
+ [w, M, L, N, I, x]
41699
41699
  ), $ = h, C = $ ? !!u : !1, S = /* @__PURE__ */ r(
41700
41700
  "div",
41701
41701
  {
@@ -41770,7 +41770,7 @@ const nbe = ({
41770
41770
  children: S
41771
41771
  }
41772
41772
  );
41773
- return /* @__PURE__ */ f(kz.Provider, { value: w, children: [
41773
+ return /* @__PURE__ */ f(kz.Provider, { value: b, children: [
41774
41774
  $ ? SC(S, $) : q,
41775
41775
  e
41776
41776
  ] });
@@ -41853,15 +41853,15 @@ const nbe = ({
41853
41853
  closeOnOverlayClick: p = !0,
41854
41854
  showCloseButton: u = !0
41855
41855
  }, y) => {
41856
- const [m, g] = B(!1), [k, _] = B(!1), M = G(null), v = G(null), b = G(null), L = G(null);
41856
+ const [m, g] = B(!1), [k, _] = B(!1), M = G(null), v = G(null), w = G(null), L = G(null);
41857
41857
  O(() => {
41858
41858
  const x = M.current;
41859
41859
  if (!x) return;
41860
- const w = x.parentElement;
41861
- return w ? (window.getComputedStyle(w).position === "static" && (w.setAttribute("data-scp-prev-position", w.style.position ?? ""), w.style.position = "relative", w.setAttribute("data-scp-position-changed", "true")), () => {
41862
- if (w.getAttribute("data-scp-position-changed") === "true") {
41863
- const C = w.getAttribute("data-scp-prev-position") ?? "";
41864
- w.style.position = C, w.removeAttribute("data-scp-position-changed"), w.removeAttribute("data-scp-prev-position");
41860
+ const b = x.parentElement;
41861
+ return b ? (window.getComputedStyle(b).position === "static" && (b.setAttribute("data-scp-prev-position", b.style.position ?? ""), b.style.position = "relative", b.setAttribute("data-scp-position-changed", "true")), () => {
41862
+ if (b.getAttribute("data-scp-position-changed") === "true") {
41863
+ const C = b.getAttribute("data-scp-prev-position") ?? "";
41864
+ b.style.position = C, b.removeAttribute("data-scp-position-changed"), b.removeAttribute("data-scp-prev-position");
41865
41865
  }
41866
41866
  }) : void 0;
41867
41867
  }, []), uV(
@@ -41881,7 +41881,7 @@ const nbe = ({
41881
41881
  ), O(() => {
41882
41882
  const x = v.current;
41883
41883
  L.current && (window.clearTimeout(L.current), L.current = null);
41884
- const w = ($) => {
41884
+ const b = ($) => {
41885
41885
  if ($.target === x && !($.propertyName !== "transform" && $.propertyName !== "opacity"))
41886
41886
  if (m) {
41887
41887
  _(!0), i?.();
@@ -41892,12 +41892,12 @@ const nbe = ({
41892
41892
  } else {
41893
41893
  s?.();
41894
41894
  try {
41895
- b.current?.focus();
41895
+ w.current?.focus();
41896
41896
  } catch {
41897
41897
  }
41898
41898
  }
41899
41899
  };
41900
- return x && (x.addEventListener("transitionend", w), L.current = window.setTimeout(() => {
41900
+ return x && (x.addEventListener("transitionend", b), L.current = window.setTimeout(() => {
41901
41901
  if (m) {
41902
41902
  _(!0), i?.();
41903
41903
  try {
@@ -41907,16 +41907,16 @@ const nbe = ({
41907
41907
  } else {
41908
41908
  s?.();
41909
41909
  try {
41910
- b.current?.focus();
41910
+ w.current?.focus();
41911
41911
  } catch {
41912
41912
  }
41913
41913
  }
41914
- }, vme + 60)), m && (b.current = document.activeElement), () => {
41915
- x && x.removeEventListener("transitionend", w), L.current && (window.clearTimeout(L.current), L.current = null);
41914
+ }, vme + 60)), m && (w.current = document.activeElement), () => {
41915
+ x && x.removeEventListener("transitionend", b), L.current && (window.clearTimeout(L.current), L.current = null);
41916
41916
  };
41917
41917
  }, [m, i, s]), O(() => {
41918
- const x = (w) => {
41919
- w.key === "Escape" && m && (c?.(), _(!1), g(!1));
41918
+ const x = (b) => {
41919
+ b.key === "Escape" && m && (c?.(), _(!1), g(!1));
41920
41920
  };
41921
41921
  return window.addEventListener("keydown", x), () => window.removeEventListener("keydown", x);
41922
41922
  }, [m, c]);
@@ -42020,14 +42020,14 @@ const _me = "_container_1pfsp_1", Mme = "_title_1pfsp_8", Z$ = {
42020
42020
  if (O(() => {
42021
42021
  if (!e) return;
42022
42022
  const x = {};
42023
- for (const w of i)
42024
- x[w.name] = Object.prototype.hasOwnProperty.call(c, w.name) ? c[w.name] : "";
42023
+ for (const b of i)
42024
+ x[b.name] = Object.prototype.hasOwnProperty.call(c, b.name) ? c[b.name] : "";
42025
42025
  return y(x), requestAnimationFrame(() => {
42026
42026
  m.current?.focus();
42027
- const w = m.current;
42028
- if (w && typeof w.selectionStart == "number") {
42029
- const $ = String(w.value ?? "").length;
42030
- w.setSelectionRange($, $);
42027
+ const b = m.current;
42028
+ if (b && typeof b.selectionStart == "number") {
42029
+ const $ = String(b.value ?? "").length;
42030
+ b.setSelectionRange($, $);
42031
42031
  }
42032
42032
  }), () => {
42033
42033
  v.current && (window.clearTimeout(v.current), v.current = null);
@@ -42037,8 +42037,8 @@ const _me = "_container_1pfsp_1", Mme = "_title_1pfsp_8", Z$ = {
42037
42037
  M(!1), v.current = null;
42038
42038
  }, 3e3)) : (M(!1), v.current && (window.clearTimeout(v.current), v.current = null));
42039
42039
  }, [s, e]), !e) return null;
42040
- const b = (x, w) => {
42041
- y(($) => ({ ...$, [x]: w })), l && l(x, w);
42040
+ const w = (x, b) => {
42041
+ y(($) => ({ ...$, [x]: b })), l && l(x, b);
42042
42042
  }, L = async () => {
42043
42043
  if (!Object.values(u).some((x) => x === "" || x === void 0))
42044
42044
  try {
@@ -42064,21 +42064,21 @@ const _me = "_container_1pfsp_1", Mme = "_title_1pfsp_8", Z$ = {
42064
42064
  "aria-modal": "true",
42065
42065
  children: /* @__PURE__ */ f("div", { className: kt.modalContainer, onMouseDown: I, onClick: I, children: [
42066
42066
  /* @__PURE__ */ r("h2", { className: kt.modalTitle, children: o }),
42067
- i.map((x, w) => {
42068
- const $ = u[x.name] ?? "", C = w === 0 && !!s, S = {
42067
+ i.map((x, b) => {
42068
+ const $ = u[x.name] ?? "", C = b === 0 && !!s, S = {
42069
42069
  name: x.name,
42070
42070
  placeholder: x.placeholder || x.label,
42071
42071
  value: String($),
42072
- onChange: (q) => b(x.name, q.target.value),
42072
+ onChange: (q) => w(x.name, q.target.value),
42073
42073
  className: x.type === "textarea" ? `${kt.modalTextarea} ${C ? kt.inputError : ""}` : `${kt.modalInput} ${C ? kt.inputError : ""}`,
42074
42074
  tabIndex: 0,
42075
42075
  disabled: g
42076
42076
  };
42077
- return w === 0 && (S.ref = (q) => {
42077
+ return b === 0 && (S.ref = (q) => {
42078
42078
  m.current = q;
42079
42079
  }), /* @__PURE__ */ f("div", { style: { marginBottom: 8 }, children: [
42080
42080
  x.type === "textarea" ? /* @__PURE__ */ r("textarea", { rows: x.rows || 4, ...S }) : /* @__PURE__ */ r("input", { type: x.type || "text", ...S }),
42081
- w === 0 && _ && s && /* @__PURE__ */ r("div", { style: { marginTop: 8 }, children: /* @__PURE__ */ r(
42081
+ b === 0 && _ && s && /* @__PURE__ */ r("div", { style: { marginTop: 8 }, children: /* @__PURE__ */ r(
42082
42082
  yz,
42083
42083
  {
42084
42084
  text: s,
@@ -42159,7 +42159,7 @@ const _me = "_container_1pfsp_1", Mme = "_title_1pfsp_8", Z$ = {
42159
42159
  }) => {
42160
42160
  const [d, l] = B(!1), [h, p] = B(null), [u, y] = B(null), [m, g] = B(!1), k = () => l(!0), _ = () => l(!1), M = (x) => {
42161
42161
  if (o) {
42162
- const w = x.code?.trim() || x.id?.trim(), $ = x.title?.trim(), C = w || $ || String(Date.now()), S = $ || w || `Module ${C}`;
42162
+ const b = x.code?.trim() || x.id?.trim(), $ = x.title?.trim(), C = b || $ || String(Date.now()), S = $ || b || `Module ${C}`;
42163
42163
  o({
42164
42164
  id: C,
42165
42165
  title: S,
@@ -42168,21 +42168,21 @@ const _me = "_container_1pfsp_1", Mme = "_title_1pfsp_8", Z$ = {
42168
42168
  });
42169
42169
  }
42170
42170
  _();
42171
- }, v = (x, w) => {
42172
- x.stopPropagation(), p(w);
42173
- }, b = () => p(null), L = (x) => {
42171
+ }, v = (x, b) => {
42172
+ x.stopPropagation(), p(b);
42173
+ }, w = () => p(null), L = (x) => {
42174
42174
  if (!h) {
42175
- b();
42175
+ w();
42176
42176
  return;
42177
42177
  }
42178
- const w = {
42178
+ const b = {
42179
42179
  ...h,
42180
42180
  title: x.title || h.title,
42181
42181
  subtitle: ""
42182
42182
  };
42183
- t && t(w), b();
42184
- }, N = (x, w) => {
42185
- x.stopPropagation(), n && n(w);
42183
+ t && t(b), w();
42184
+ }, N = (x, b) => {
42185
+ x.stopPropagation(), n && n(b);
42186
42186
  }, I = (x) => {
42187
42187
  y(x.id), i && i(x);
42188
42188
  };
@@ -42200,7 +42200,7 @@ const _me = "_container_1pfsp_1", Mme = "_title_1pfsp_8", Z$ = {
42200
42200
  ] }),
42201
42201
  /* @__PURE__ */ r("hr", { className: "divider" }),
42202
42202
  /* @__PURE__ */ r("div", { className: "module-list", children: e.map((x) => {
42203
- const w = Object.keys(x.translations || {}).length, $ = w > 0 || x.id === u;
42203
+ const b = Object.keys(x.translations || {}).length, $ = b > 0 || x.id === u;
42204
42204
  return /* @__PURE__ */ f(
42205
42205
  "div",
42206
42206
  {
@@ -42219,7 +42219,7 @@ const _me = "_container_1pfsp_1", Mme = "_title_1pfsp_8", Z$ = {
42219
42219
  x.title,
42220
42220
  $ && /* @__PURE__ */ f("span", { className: "count", children: [
42221
42221
  " ",
42222
- w,
42222
+ b,
42223
42223
  " "
42224
42224
  ] })
42225
42225
  ] }),
@@ -42255,7 +42255,7 @@ const _me = "_container_1pfsp_1", Mme = "_title_1pfsp_8", Z$ = {
42255
42255
  fi,
42256
42256
  {
42257
42257
  isOpen: !!h,
42258
- onClose: b,
42258
+ onClose: w,
42259
42259
  onSave: L,
42260
42260
  title: "Éditer le module",
42261
42261
  initialValues: { title: h.title },
@@ -42302,8 +42302,8 @@ const _me = "_container_1pfsp_1", Mme = "_title_1pfsp_8", Z$ = {
42302
42302
  draggable: l = !1,
42303
42303
  checkDuplicateLocal: h
42304
42304
  }) => {
42305
- const [p, u] = B(!1), [y, m] = B(""), [g, k] = B(null), [_, M] = B(""), [v, b] = B(""), [L, N] = B(!1), [I, x] = B(!1), [w, $] = B(null), [C, S] = B(!1), q = t.map((H) => H.language), z = n.filter((H) => !q.includes(H.code)), D = () => {
42306
- y && v.trim() && (d?.(e, y, v.trim()), m(""), b(""), u(!1));
42305
+ const [p, u] = B(!1), [y, m] = B(""), [g, k] = B(null), [_, M] = B(""), [v, w] = B(""), [L, N] = B(!1), [I, x] = B(!1), [b, $] = B(null), [C, S] = B(!1), q = t.map((H) => H.language), z = n.filter((H) => !q.includes(H.code)), D = () => {
42306
+ y && v.trim() && (d?.(e, y, v.trim()), m(""), w(""), u(!1));
42307
42307
  }, T = (H, W) => {
42308
42308
  k(H), M(W);
42309
42309
  }, P = (H) => {
@@ -42452,11 +42452,11 @@ const _me = "_container_1pfsp_1", Mme = "_title_1pfsp_8", Z$ = {
42452
42452
  {
42453
42453
  type: "text",
42454
42454
  value: v,
42455
- onChange: (H) => b(H.target.value),
42455
+ onChange: (H) => w(H.target.value),
42456
42456
  placeholder: "Entrez la traduction...",
42457
42457
  className: "translation-input",
42458
42458
  onKeyDown: (H) => {
42459
- H.key === "Enter" && D(), H.key === "Escape" && (u(!1), m(""), b(""));
42459
+ H.key === "Enter" && D(), H.key === "Escape" && (u(!1), m(""), w(""));
42460
42460
  }
42461
42461
  }
42462
42462
  ),
@@ -42473,7 +42473,7 @@ const _me = "_container_1pfsp_1", Mme = "_title_1pfsp_8", Z$ = {
42473
42473
  "button",
42474
42474
  {
42475
42475
  onClick: () => {
42476
- u(!1), m(""), b("");
42476
+ u(!1), m(""), w("");
42477
42477
  },
42478
42478
  className: "cancel-button",
42479
42479
  children: /* @__PURE__ */ r(pt, { className: "action-icon" })
@@ -42509,7 +42509,7 @@ const _me = "_container_1pfsp_1", Mme = "_title_1pfsp_8", Z$ = {
42509
42509
  title: "Renommer la clé",
42510
42510
  initialValues: { name: e },
42511
42511
  fields: [{ name: "name", label: "Nom de la clé", placeholder: "Nom de la clé" }],
42512
- errorMessage: w || "",
42512
+ errorMessage: b || "",
42513
42513
  disableSave: C
42514
42514
  }
42515
42515
  )
@@ -42648,7 +42648,7 @@ const kbe = ({
42648
42648
  emptyContent: y,
42649
42649
  colGap: m = "1rem"
42650
42650
  }) => {
42651
- const g = Array.isArray(c) ? c : [], k = g.length === 0, _ = g.every((L) => typeof L == "string"), M = g.some((L) => Array.isArray(L)), v = (L, N, I) => d ? d(L, N, I) : /* @__PURE__ */ r("span", { className: "slb-cell-text", children: L }), b = m ? { "--col-gap": m } : void 0;
42651
+ const g = Array.isArray(c) ? c : [], k = g.length === 0, _ = g.every((L) => typeof L == "string"), M = g.some((L) => Array.isArray(L)), v = (L, N, I) => d ? d(L, N, I) : /* @__PURE__ */ r("span", { className: "slb-cell-text", children: L }), w = m ? { "--col-gap": m } : void 0;
42652
42652
  return k ? /* @__PURE__ */ f("div", { className: `slb-root ${e}`, style: { ...t, background: l ?? void 0 }, children: [
42653
42653
  n && /* @__PURE__ */ r(
42654
42654
  "div",
@@ -42690,10 +42690,10 @@ const kbe = ({
42690
42690
  children: n
42691
42691
  }
42692
42692
  ),
42693
- /* @__PURE__ */ r("div", { className: "slb-grid", style: b, children: g.map((L, N) => {
42693
+ /* @__PURE__ */ r("div", { className: "slb-grid", style: w, children: g.map((L, N) => {
42694
42694
  const I = s[N] || "";
42695
42695
  if (Array.isArray(L)) {
42696
- const [x, w] = L;
42696
+ const [x, b] = L;
42697
42697
  return /* @__PURE__ */ f(
42698
42698
  "div",
42699
42699
  {
@@ -42701,7 +42701,7 @@ const kbe = ({
42701
42701
  style: { background: u ?? void 0 },
42702
42702
  children: [
42703
42703
  /* @__PURE__ */ r("div", { className: "slb-grid-left", children: v(x, N, 0) }),
42704
- /* @__PURE__ */ r("div", { className: "slb-grid-right", children: v(w, N, 1) })
42704
+ /* @__PURE__ */ r("div", { className: "slb-grid-right", children: v(b, N, 1) })
42705
42705
  ]
42706
42706
  },
42707
42707
  N
@@ -42741,7 +42741,7 @@ const kbe = ({
42741
42741
  /* @__PURE__ */ r("div", { className: "clb-grid", style: m, children: i.map((g, k) => {
42742
42742
  const _ = p[k] || "";
42743
42743
  if (Array.isArray(g)) {
42744
- const [M, v] = g, b = s[k] || c;
42744
+ const [M, v] = g, w = s[k] || c;
42745
42745
  return /* @__PURE__ */ f(
42746
42746
  "div",
42747
42747
  {
@@ -42753,7 +42753,7 @@ const kbe = ({
42753
42753
  {
42754
42754
  className: "counter-badge",
42755
42755
  style: {
42756
- background: b,
42756
+ background: w,
42757
42757
  padding: d,
42758
42758
  width: l,
42759
42759
  minWidth: l
@@ -42993,20 +42993,20 @@ const kbe = ({
42993
42993
  width: p = "w-full",
42994
42994
  dropdownPosition: u = "auto"
42995
42995
  }) => {
42996
- const [y, m] = B(!1), [g, k] = B(""), [_, M] = B(0), [v, b] = B({ top: 0, left: 0, width: 0 }), [L, N] = B("bottom"), [I, x] = B(null), w = G(null), $ = G(null), C = G(null), S = we(() => g ? e.filter(
42996
+ const [y, m] = B(!1), [g, k] = B(""), [_, M] = B(0), [v, w] = B({ top: 0, left: 0, width: 0 }), [L, N] = B("bottom"), [I, x] = B(null), b = G(null), $ = G(null), C = G(null), S = we(() => g ? e.filter(
42997
42997
  (U) => U.label.toLowerCase().includes(g.toLowerCase())
42998
42998
  ) : e, [e, g]), q = e.find((U) => U.value === t), z = de(() => {
42999
- if (w.current) {
43000
- const U = w.current.getBoundingClientRect();
43001
- b({
42999
+ if (b.current) {
43000
+ const U = b.current.getBoundingClientRect();
43001
+ w({
43002
43002
  top: U.top,
43003
43003
  left: U.left,
43004
43004
  width: U.width
43005
43005
  });
43006
43006
  }
43007
43007
  }, []), D = de(() => {
43008
- if (!w.current) return;
43009
- const U = w.current.getBoundingClientRect(), K = U.top - br - X$, he = window.innerHeight - U.bottom - br - X$;
43008
+ if (!b.current) return;
43009
+ const U = b.current.getBoundingClientRect(), K = U.top - br - X$, he = window.innerHeight - U.bottom - br - X$;
43010
43010
  let le;
43011
43011
  u !== "auto" ? le = u : le = ($.current?.scrollHeight ?? 0) <= he ? "bottom" : K > he ? "top" : "bottom", N((Ie) => Ie === le ? Ie : le), x(Math.max(le === "bottom" ? he : K, 0));
43012
43012
  }, [u]), T = de(() => {
@@ -43018,7 +43018,7 @@ const kbe = ({
43018
43018
  y && D();
43019
43019
  }, [y, D]), O(() => {
43020
43020
  const U = (K) => {
43021
- w.current && !w.current.contains(K.target) && $.current && !$.current.contains(K.target) && (m(!1), k(""));
43021
+ b.current && !b.current.contains(K.target) && $.current && !$.current.contains(K.target) && (m(!1), k(""));
43022
43022
  };
43023
43023
  return document.addEventListener("mousedown", U), () => document.removeEventListener("mousedown", U);
43024
43024
  }, []), O(() => {
@@ -43072,7 +43072,7 @@ const kbe = ({
43072
43072
  U.disabled ? me.optionDisabled : ""
43073
43073
  ].filter(Boolean).join(" "), ae = {
43074
43074
  position: "fixed",
43075
- top: L === "bottom" ? v.top + (w.current?.offsetHeight || 0) + br : "auto",
43075
+ top: L === "bottom" ? v.top + (b.current?.offsetHeight || 0) + br : "auto",
43076
43076
  bottom: L === "top" ? window.innerHeight - v.top + br : "auto",
43077
43077
  left: v.left,
43078
43078
  width: v.width,
@@ -43083,7 +43083,7 @@ const kbe = ({
43083
43083
  /* @__PURE__ */ r(
43084
43084
  "button",
43085
43085
  {
43086
- ref: w,
43086
+ ref: b,
43087
43087
  className: F(),
43088
43088
  onClick: () => !i && m(!y),
43089
43089
  onKeyDown: V,
@@ -43302,7 +43302,7 @@ function wbe(e) {
43302
43302
  gap: _,
43303
43303
  className: M,
43304
43304
  ariaLabel: v
43305
- } = e, b = c ? $t[c] : void 0, L = {
43305
+ } = e, w = c ? $t[c] : void 0, L = {
43306
43306
  background: g,
43307
43307
  width: R1(k),
43308
43308
  ...m
@@ -43317,7 +43317,7 @@ function wbe(e) {
43317
43317
  "aria-label": v ?? t,
43318
43318
  children: [
43319
43319
  /* @__PURE__ */ f("div", { className: _t.header, children: [
43320
- /* @__PURE__ */ r("div", { className: _t.iconWrap, "aria-hidden": !0, style: I, children: b ? /* @__PURE__ */ r(b, { size: typeof s == "number" ? s : void 0 }) : /* @__PURE__ */ r(ofe, {}) }),
43320
+ /* @__PURE__ */ r("div", { className: _t.iconWrap, "aria-hidden": !0, style: I, children: w ? /* @__PURE__ */ r(w, { size: typeof s == "number" ? s : void 0 }) : /* @__PURE__ */ r(ofe, {}) }),
43321
43321
  /* @__PURE__ */ r("div", { className: _t.title, style: N, children: t })
43322
43322
  ] }),
43323
43323
  /* @__PURE__ */ r(
@@ -43326,7 +43326,7 @@ function wbe(e) {
43326
43326
  className: `${_t.items} ${_ === void 0 ? _t.spaceEvenly : ""}`,
43327
43327
  role: "list",
43328
43328
  style: _ !== void 0 ? { gap: `${_}px` } : {},
43329
- children: y.map((x, w) => {
43329
+ children: y.map((x, b) => {
43330
43330
  const { valueStyle: $, labelStyle: C } = nfe(x, {
43331
43331
  defaultValueFontSize: l,
43332
43332
  defaultValueFontWeight: h,
@@ -43347,7 +43347,7 @@ function wbe(e) {
43347
43347
  x.label && /* @__PURE__ */ r("div", { className: _t.label, style: C, children: x.label })
43348
43348
  ] })
43349
43349
  },
43350
- `${String(x.label ?? x.value)}-${w}`
43350
+ `${String(x.label ?? x.value)}-${b}`
43351
43351
  );
43352
43352
  })
43353
43353
  }
@@ -43387,7 +43387,7 @@ const ife = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
43387
43387
  );
43388
43388
  }, v = () => {
43389
43389
  t(m), y(!1);
43390
- }, b = te(p, s);
43390
+ }, w = te(p, s);
43391
43391
  return /* @__PURE__ */ f("div", { style: { position: "relative", display: "inline-block", ...h }, children: [
43392
43392
  /* @__PURE__ */ f(
43393
43393
  "div",
@@ -43402,7 +43402,7 @@ const ife = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
43402
43402
  borderRadius: 4,
43403
43403
  transition: "background 0.2s"
43404
43404
  },
43405
- title: b,
43405
+ title: w,
43406
43406
  children: [
43407
43407
  /* @__PURE__ */ r(
43408
43408
  Mq,
@@ -43589,12 +43589,12 @@ const ife = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
43589
43589
  titleFontWeight: _,
43590
43590
  valueFontSize: M,
43591
43591
  valueFontWeight: v,
43592
- barColor: b,
43592
+ barColor: w,
43593
43593
  justifyContent: L = "space-between",
43594
43594
  alignItems: N = "flex-start",
43595
43595
  cardGap: I = "",
43596
43596
  onClick: x,
43597
- iconColor: w,
43597
+ iconColor: b,
43598
43598
  titleKey: $,
43599
43599
  predictionValue: C,
43600
43600
  predictionLabel: S
@@ -43612,7 +43612,7 @@ const ife = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
43612
43612
  onClick: x,
43613
43613
  style: l !== void 0 ? { ...P, "--ds-value-scale": l } : P,
43614
43614
  children: [
43615
- b && /* @__PURE__ */ r("div", { className: We.sideBar, style: { backgroundColor: b } }),
43615
+ w && /* @__PURE__ */ r("div", { className: We.sideBar, style: { backgroundColor: w } }),
43616
43616
  /* @__PURE__ */ f("div", { className: We.boardContent, style: { padding: D, gap: I }, children: [
43617
43617
  /* @__PURE__ */ f(
43618
43618
  "div",
@@ -43620,7 +43620,7 @@ const ife = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
43620
43620
  className: We.headerRow,
43621
43621
  style: { justifyContent: L, alignItems: N },
43622
43622
  children: [
43623
- t && /* @__PURE__ */ r("div", { className: We.iconWrapper, style: { color: w }, children: t }),
43623
+ t && /* @__PURE__ */ r("div", { className: We.iconWrapper, style: { color: b }, children: t }),
43624
43624
  /* @__PURE__ */ r("div", { className: `${We.headerTitle} header-title-data-board`, children: /* @__PURE__ */ r(
43625
43625
  "span",
43626
43626
  {
@@ -43873,7 +43873,7 @@ const ife = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
43873
43873
  titleKey: _.titleKey,
43874
43874
  onClick: (v) => m?.(1, v)
43875
43875
  },
43876
- right: M.map((v, b) => ({
43876
+ right: M.map((v, w) => ({
43877
43877
  a11yConfig: v.a11yConfig,
43878
43878
  id: v.id,
43879
43879
  label: v.label,
@@ -43889,7 +43889,7 @@ const ife = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
43889
43889
  valueFontSize: v.valueFontSize ?? p,
43890
43890
  valueFontWeight: v.valueFontWeight ?? u,
43891
43891
  titleKey: v.titleKey,
43892
- onClick: (L) => m?.(2 + b, L)
43892
+ onClick: (L) => m?.(2 + w, L)
43893
43893
  }))
43894
43894
  }
43895
43895
  ) : _ && M.length === 0 ? /* @__PURE__ */ r(
@@ -43962,93 +43962,133 @@ const ife = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
43962
43962
  fontWeight: h = "400",
43963
43963
  domain: p,
43964
43964
  xAxisLabel: u,
43965
- margin: y = { top: 20, right: 60, bottom: 40, left: 0 },
43966
- valueFormatter: m,
43967
- tickFormatter: g,
43968
- labelDataKey: k = "percentage",
43969
- isAnimationActive: _ = !0
43965
+ yAxisLabel: y,
43966
+ margin: m = { top: 20, right: 60, bottom: 40, left: 0 },
43967
+ valueFormatter: g,
43968
+ tickFormatter: k,
43969
+ labelDataKey: _ = "percentage",
43970
+ isAnimationActive: M = !0
43970
43971
  }) => {
43971
- const M = (y.top ?? 20) + (y.bottom ?? 40) + e.length * (s + 20), v = Math.max(M, t), b = ce.useMemo(() => {
43972
+ const v = (m.top ?? 20) + (m.bottom ?? 40) + e.length * (s + 20), w = Math.max(v, t), L = ce.useMemo(() => {
43972
43973
  if (!e || e.length === 0) return d;
43973
- const w = (parseFloat(l) || 12) * 0.7, C = Math.max(...e.map((S) => (S.label || "").length)) * w + 16;
43974
- return Math.min(Math.max(C, 40), d);
43975
- }, [e, l, d]);
43976
- return /* @__PURE__ */ r("div", { style: { backgroundColor: i, width: "100%" }, children: /* @__PURE__ */ r(yq, { width: "100%", height: v, children: /* @__PURE__ */ f(mV, { data: e, layout: "vertical", margin: y, children: [
43977
- /* @__PURE__ */ r(fV, { opacity: 0.4, stroke: "#E5E7EB", vertical: !1, horizontal: !0 }),
43978
- /* @__PURE__ */ r(
43979
- gV,
43980
- {
43981
- type: "number",
43982
- domain: p || [0, "auto"],
43983
- axisLine: !1,
43984
- tickLine: !1,
43985
- fontSize: l,
43986
- fontWeight: h,
43987
- stroke: c,
43988
- tickFormatter: (x) => g ? g(x) : x?.toString() || "",
43989
- label: u ? {
43990
- value: u,
43991
- position: "insideBottom",
43992
- offset: -10,
43993
- style: {
43994
- textAnchor: "middle",
43995
- fill: c,
43996
- fontSize: 12,
43997
- fontWeight: "500"
43998
- }
43999
- } : void 0
44000
- }
44001
- ),
44002
- /* @__PURE__ */ r(
44003
- vV,
44004
- {
44005
- type: "category",
44006
- dataKey: "label",
44007
- stroke: c,
44008
- axisLine: !1,
44009
- tickLine: !1,
44010
- width: b,
44011
- interval: 0,
44012
- fontSize: l,
44013
- fontWeight: h,
44014
- tick: /* @__PURE__ */ r(
44015
- s8e,
43974
+ const $ = (parseFloat(l) || 12) * 0.7, S = Math.max(...e.map((q) => (q.label || "").length)) * $ + 16;
43975
+ return Math.min(Math.max(S, 40), d);
43976
+ }, [e, l, d]), N = (b) => k ? k(b) : b?.toString() || "", I = (b) => g && _ === "value" ? g(b) : b == null || b === "" ? "" : _ === "percentage" ? `${b}%` : b.toString(), x = (b, $, C) => {
43977
+ if (typeof b != "number") return b;
43978
+ const S = g ? g(b) : b.toString(), q = C?.payload?.percentage;
43979
+ return typeof q == "number" && Number.isFinite(q) && _ === "percentage" ? `${S} (${q.toFixed(1)}%)` : S;
43980
+ };
43981
+ return /* @__PURE__ */ f(
43982
+ "div",
43983
+ {
43984
+ style: {
43985
+ backgroundColor: i,
43986
+ width: "100%",
43987
+ height: w,
43988
+ position: "relative"
43989
+ },
43990
+ children: [
43991
+ y && /* @__PURE__ */ r(
43992
+ "div",
44016
43993
  {
44017
- fontSize: l,
44018
- fontWeight: h,
44019
- stroke: c
43994
+ style: {
43995
+ position: "absolute",
43996
+ left: 18,
43997
+ top: "50%",
43998
+ transform: "translate(-50%, -50%) rotate(-90deg)",
43999
+ whiteSpace: "nowrap",
44000
+ color: c,
44001
+ fontSize: 12,
44002
+ fontWeight: 500,
44003
+ pointerEvents: "none",
44004
+ zIndex: 1
44005
+ },
44006
+ children: y
44020
44007
  }
44021
- )
44022
- }
44023
- ),
44024
- o && /* @__PURE__ */ r(_V, { formatter: (x, w, $) => {
44025
- if (typeof x != "number") return x;
44026
- const C = m ? m(x) : x.toString(), S = $?.payload?.percentage;
44027
- return typeof S == "number" && Number.isFinite(S) && k === "percentage" ? `${C} (${S.toFixed(1)}%)` : C;
44028
- }, labelStyle: { color: "var(--color-text)" } }),
44029
- /* @__PURE__ */ r(
44030
- MV,
44031
- {
44032
- dataKey: "value",
44033
- fill: n,
44034
- radius: 0,
44035
- barSize: s,
44036
- isAnimationActive: _,
44037
- children: /* @__PURE__ */ r(
44038
- xV,
44008
+ ),
44009
+ /* @__PURE__ */ r(yq, { width: "100%", height: w, children: /* @__PURE__ */ f(
44010
+ mV,
44039
44011
  {
44040
- dataKey: k,
44041
- position: "right",
44042
- offset: 10,
44043
- formatter: (x) => m && k === "value" ? m(x) : x == null || x === "" ? "" : k === "percentage" ? `${x}%` : x.toString(),
44044
- fill: c,
44045
- fontSize: l,
44046
- fontWeight: h
44012
+ data: e,
44013
+ layout: "vertical",
44014
+ margin: { ...m, left: y ? Math.max(m.left ?? 0, 40) : m.left },
44015
+ children: [
44016
+ /* @__PURE__ */ r(fV, { opacity: 0.4, stroke: "#E5E7EB", vertical: !1, horizontal: !0 }),
44017
+ /* @__PURE__ */ r(
44018
+ gV,
44019
+ {
44020
+ type: "number",
44021
+ domain: p || [0, "auto"],
44022
+ axisLine: !1,
44023
+ tickLine: !1,
44024
+ fontSize: l,
44025
+ fontWeight: h,
44026
+ stroke: c,
44027
+ tickFormatter: N,
44028
+ label: u ? {
44029
+ value: u,
44030
+ position: "insideBottom",
44031
+ offset: -10,
44032
+ style: {
44033
+ textAnchor: "middle",
44034
+ fill: c,
44035
+ fontSize: 12,
44036
+ fontWeight: "500"
44037
+ }
44038
+ } : void 0
44039
+ }
44040
+ ),
44041
+ /* @__PURE__ */ r(
44042
+ vV,
44043
+ {
44044
+ type: "category",
44045
+ dataKey: "label",
44046
+ stroke: c,
44047
+ axisLine: !1,
44048
+ tickLine: !1,
44049
+ width: L,
44050
+ interval: 0,
44051
+ fontSize: l,
44052
+ fontWeight: h,
44053
+ tick: /* @__PURE__ */ r(
44054
+ s8e,
44055
+ {
44056
+ fontSize: l,
44057
+ fontWeight: h,
44058
+ stroke: c
44059
+ }
44060
+ )
44061
+ }
44062
+ ),
44063
+ o && /* @__PURE__ */ r(_V, { formatter: x, labelStyle: { color: "var(--color-text)" } }),
44064
+ /* @__PURE__ */ r(
44065
+ MV,
44066
+ {
44067
+ dataKey: "value",
44068
+ fill: n,
44069
+ radius: 0,
44070
+ barSize: s,
44071
+ isAnimationActive: M,
44072
+ children: /* @__PURE__ */ r(
44073
+ xV,
44074
+ {
44075
+ dataKey: _,
44076
+ position: "right",
44077
+ offset: 10,
44078
+ formatter: I,
44079
+ fill: c,
44080
+ fontSize: l,
44081
+ fontWeight: h
44082
+ }
44083
+ )
44084
+ }
44085
+ )
44086
+ ]
44047
44087
  }
44048
- )
44049
- }
44050
- )
44051
- ] }) }) });
44088
+ ) })
44089
+ ]
44090
+ }
44091
+ );
44052
44092
  }, d8e = "_menu_9anig_1", l8e = "_menuRow_9anig_18", h8e = "_separator_9anig_34", p8e = "_rowLabel_9anig_40", u8e = "_rowLeadingIcon_9anig_48", y8e = "_rowIcon_9anig_55", ni = {
44053
44093
  menu: d8e,
44054
44094
  menuRow: l8e,
@@ -44121,12 +44161,12 @@ const ife = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
44121
44161
  avatarColor: _ = "#5b8fb9",
44122
44162
  backgroundColorAvatar: M = "#f1f4f5",
44123
44163
  dropdownMenuItems: v,
44124
- dropdownMenuStyle: b,
44164
+ dropdownMenuStyle: w,
44125
44165
  dropdownMenuOffset: L,
44126
44166
  statusDotColor: N,
44127
44167
  a11yConfig: I,
44128
44168
  style: x,
44129
- className: w = ""
44169
+ className: b = ""
44130
44170
  }) => {
44131
44171
  const { user: $ } = Vt(), C = e || $, { currentTheme: S, switchTheme: q } = qC(), z = G(null), D = G(null), [T, P] = B(!1), [A, V] = B({}), F = we(() => {
44132
44172
  const ie = [], re = ({ variant: ge }) => ge === "sun" ? /* @__PURE__ */ r(
@@ -44358,7 +44398,7 @@ const ife = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
44358
44398
  "div",
44359
44399
  {
44360
44400
  ref: z,
44361
- className: `user-info ${w}`,
44401
+ className: `user-info ${b}`,
44362
44402
  style: {
44363
44403
  display: "flex",
44364
44404
  alignItems: "center",
@@ -44387,7 +44427,7 @@ const ife = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
44387
44427
  isVisible: T,
44388
44428
  onClose: () => P(!1),
44389
44429
  items: H,
44390
- style: b,
44430
+ style: w,
44391
44431
  position: A
44392
44432
  }
44393
44433
  )
@@ -44416,7 +44456,7 @@ const ife = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
44416
44456
  borderWidth: _ = "4px",
44417
44457
  iconGap: M = "12px",
44418
44458
  disabled: v = !1,
44419
- disabledColor: b,
44459
+ disabledColor: w,
44420
44460
  a11yConfig: L
44421
44461
  }) => {
44422
44462
  const N = () => {
@@ -44444,12 +44484,12 @@ const ife = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
44444
44484
  return `rgba(${C[0]}, ${C[1]}, ${C[2]}, 0.08)`;
44445
44485
  }
44446
44486
  return u;
44447
- }, w = {
44487
+ }, b = {
44448
44488
  onClick: N,
44449
44489
  className: `${Ii.navItem} ${i ? Ii.active : ""} ${d} ${v ? Ii.disabled : ""}`,
44450
44490
  style: {
44451
44491
  padding: k,
44452
- color: i ? p : v ? b || "#999" : h,
44492
+ color: i ? p : v ? w || "#999" : h,
44453
44493
  borderLeft: i ? `${_} solid ${l}` : `${_} solid transparent`,
44454
44494
  backgroundColor: x(),
44455
44495
  fontSize: y,
@@ -44460,10 +44500,10 @@ const ife = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
44460
44500
  },
44461
44501
  "aria-disabled": v
44462
44502
  };
44463
- return o && !n && !v ? /* @__PURE__ */ r("a", { href: o, ...w, title: te(L, t), children: I }) : /* @__PURE__ */ r(
44503
+ return o && !n && !v ? /* @__PURE__ */ r("a", { href: o, ...b, title: te(L, t), children: I }) : /* @__PURE__ */ r(
44464
44504
  "div",
44465
44505
  {
44466
- ...w,
44506
+ ...b,
44467
44507
  role: n ? "button" : void 0,
44468
44508
  tabIndex: n && !v ? 0 : void 0,
44469
44509
  title: te(L, t),
@@ -44503,13 +44543,13 @@ const ife = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
44503
44543
  navItemFontWeight: _ = "500",
44504
44544
  navItemColor: M,
44505
44545
  sectionTitlePadding: v = "16px",
44506
- sectionTitleFontSize: b = "11px",
44546
+ sectionTitleFontSize: w = "11px",
44507
44547
  sectionTitleColor: L = "#999",
44508
44548
  sectionTitleWeight: N = "500",
44509
44549
  versionFontSize: I = "12px",
44510
44550
  versionFontWeight: x = "400",
44511
44551
  // Add default value
44512
- versionColor: w = "#999",
44552
+ versionColor: b = "#999",
44513
44553
  userInfoProps: $,
44514
44554
  style: C,
44515
44555
  className: S = "",
@@ -44573,7 +44613,7 @@ const ife = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
44573
44613
  className: dt.sectionTitle,
44574
44614
  title: te(le.a11yConfig, le.titleKey),
44575
44615
  style: {
44576
- fontSize: b,
44616
+ fontSize: w,
44577
44617
  color: L,
44578
44618
  padding: v,
44579
44619
  fontWeight: N,
@@ -44616,7 +44656,7 @@ const ife = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
44616
44656
  style: {
44617
44657
  fontSize: I,
44618
44658
  fontWeight: x,
44619
- color: w
44659
+ color: b
44620
44660
  },
44621
44661
  children: h
44622
44662
  }
@@ -44650,8 +44690,8 @@ const ife = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
44650
44690
  rightContent: k,
44651
44691
  inlineToggle: _
44652
44692
  }) => {
44653
- const { activeNav: M } = Vt(), v = y.find((L) => L.id === M) || m?.find((L) => L.id === M), b = v ? g(v.label) : M || "";
44654
- return b ? /* @__PURE__ */ f(
44693
+ const { activeNav: M } = Vt(), v = y.find((L) => L.id === M) || m?.find((L) => L.id === M), w = v ? g(v.label) : M || "";
44694
+ return w ? /* @__PURE__ */ f(
44655
44695
  "div",
44656
44696
  {
44657
44697
  className: `${Si.container} ${e}`,
@@ -44676,7 +44716,7 @@ const ife = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
44676
44716
  fontWeight: o,
44677
44717
  color: i
44678
44718
  },
44679
- children: b
44719
+ children: w
44680
44720
  }
44681
44721
  ),
44682
44722
  _ && /* @__PURE__ */ r("div", { className: Si.inlineToggleContainer, children: _ })
@@ -44712,12 +44752,12 @@ const ife = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
44712
44752
  countFontWeight: _ = "500",
44713
44753
  indicatorColor: M = "#00aec7",
44714
44754
  indicatorHeight: v = "3px",
44715
- padding: b = "8px 4px",
44755
+ padding: w = "8px 4px",
44716
44756
  fontSize: L = "14px",
44717
44757
  fontWeight: N = "500",
44718
44758
  gap: I = "8px",
44719
44759
  style: x,
44720
- className: w = "",
44760
+ className: b = "",
44721
44761
  disabled: $ = !1,
44722
44762
  onNavigate: C
44723
44763
  }) => {
@@ -44727,12 +44767,12 @@ const ife = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
44727
44767
  return /* @__PURE__ */ f(
44728
44768
  "div",
44729
44769
  {
44730
- className: `${$i.navItem} ${w}`,
44770
+ className: `${$i.navItem} ${b}`,
44731
44771
  onClick: S,
44732
44772
  title: te(e, c),
44733
44773
  style: {
44734
44774
  gap: I,
44735
- padding: b,
44775
+ padding: w,
44736
44776
  color: n ? l : h,
44737
44777
  backgroundColor: n ? p : "transparent",
44738
44778
  fontSize: L,
@@ -44800,12 +44840,12 @@ const ife = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
44800
44840
  itemDividerColor: _ = "var(--color-border)",
44801
44841
  iconColor: M = "#555555",
44802
44842
  activeIconColor: v = "var(--color-primary)",
44803
- headerIconColor: b = "var(--color-text)",
44843
+ headerIconColor: w = "var(--color-text)",
44804
44844
  chevronColor: L = "var(--color-text)",
44805
44845
  iconSize: N = 22,
44806
44846
  headerPadding: I = "14px 20px",
44807
44847
  itemPadding: x = "14px 20px",
44808
- iconGap: w = 14,
44848
+ iconGap: b = 14,
44809
44849
  borderRadius: $ = 0
44810
44850
  }) => {
44811
44851
  const [C, S] = B(""), q = G(null);
@@ -44833,7 +44873,7 @@ const ife = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
44833
44873
  color: l,
44834
44874
  padding: I,
44835
44875
  borderBottom: `1px solid ${h}`,
44836
- gap: w
44876
+ gap: b
44837
44877
  }, A = {
44838
44878
  backgroundColor: p
44839
44879
  };
@@ -44847,12 +44887,12 @@ const ife = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
44847
44887
  role: "button",
44848
44888
  "aria-expanded": T,
44849
44889
  children: [
44850
- /* @__PURE__ */ f("div", { className: Nt.groupHeaderLeft, style: { gap: w }, children: [
44890
+ /* @__PURE__ */ f("div", { className: Nt.groupHeaderLeft, style: { gap: b }, children: [
44851
44891
  D.icon && /* @__PURE__ */ r(
44852
44892
  "span",
44853
44893
  {
44854
44894
  className: Nt.groupIcon,
44855
- style: { color: b, width: N, height: N },
44895
+ style: { color: w, width: N, height: N },
44856
44896
  children: D.icon
44857
44897
  }
44858
44898
  ),
@@ -44872,7 +44912,7 @@ const ife = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
44872
44912
  T && /* @__PURE__ */ r("div", { className: Nt.dropdown, style: A, children: D.items.map((V) => {
44873
44913
  const F = V.id === t, H = {
44874
44914
  padding: x,
44875
- gap: w,
44915
+ gap: b,
44876
44916
  color: F ? g : m,
44877
44917
  backgroundColor: u,
44878
44918
  /* Custom variables for the pseudo-element border */
@@ -44940,12 +44980,12 @@ const ife = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
44940
44980
  showDraggable: _ = !1,
44941
44981
  showLegend: M = !1,
44942
44982
  showData: v = !1,
44943
- className: b = "",
44983
+ className: w = "",
44944
44984
  style: L,
44945
44985
  countBackgroundColor: N,
44946
44986
  countColor: I,
44947
44987
  countBorderRadius: x,
44948
- countPadding: w,
44988
+ countPadding: b,
44949
44989
  countFontSize: $,
44950
44990
  countFontWeight: C,
44951
44991
  navContainerClassName: S,
@@ -44972,7 +45012,7 @@ const ife = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
44972
45012
  }))
44973
45013
  }
44974
45014
  ];
44975
- return /* @__PURE__ */ r("div", { className: b, style: L, children: /* @__PURE__ */ r(
45015
+ return /* @__PURE__ */ r("div", { className: w, style: L, children: /* @__PURE__ */ r(
44976
45016
  J8e,
44977
45017
  {
44978
45018
  groups: he,
@@ -44988,7 +45028,7 @@ const ife = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
44988
45028
  return /* @__PURE__ */ f(
44989
45029
  "div",
44990
45030
  {
44991
- className: `${JL.subheaderContent} ${b}`,
45031
+ className: `${JL.subheaderContent} ${w}`,
44992
45032
  style: {
44993
45033
  backgroundColor: t,
44994
45034
  padding: n,
@@ -45022,7 +45062,7 @@ const ife = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
45022
45062
  countBackgroundColor: N,
45023
45063
  countColor: I,
45024
45064
  countBorderRadius: x,
45025
- countPadding: w,
45065
+ countPadding: b,
45026
45066
  countFontSize: $,
45027
45067
  countFontWeight: C,
45028
45068
  indicatorColor: m,
@@ -45294,17 +45334,17 @@ const ife = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
45294
45334
  }, M = we(() => {
45295
45335
  if (y <= 6)
45296
45336
  return Array.from({ length: y }, (q, z) => z + 1);
45297
- const I = Math.max(m - 1, 1), x = Math.min(m + 1, y), w = I > 2, $ = x < y - 2, C = 1, S = y;
45298
- if (!w && $)
45337
+ const I = Math.max(m - 1, 1), x = Math.min(m + 1, y), b = I > 2, $ = x < y - 2, C = 1, S = y;
45338
+ if (!b && $)
45299
45339
  return [...Array.from({ length: 5 }, (D, T) => T + 1), "...", y];
45300
- if (w && !$) {
45340
+ if (b && !$) {
45301
45341
  const z = Array.from(
45302
45342
  { length: 5 },
45303
45343
  (D, T) => y - 5 + T + 1
45304
45344
  );
45305
45345
  return [C, "...", ...z];
45306
45346
  }
45307
- if (w && $) {
45347
+ if (b && $) {
45308
45348
  const q = Array.from(
45309
45349
  { length: x - I + 1 },
45310
45350
  (z, D) => I + D
@@ -45312,7 +45352,7 @@ const ife = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
45312
45352
  return [C, "...", ...q, "...", S];
45313
45353
  }
45314
45354
  return [];
45315
- }, [m, y]), v = !!(d && d.length > 0), b = !o && h !== -1 && y > 1 && /* @__PURE__ */ f("div", { className: "pagination-controls", children: [
45355
+ }, [m, y]), v = !!(d && d.length > 0), w = !o && h !== -1 && y > 1 && /* @__PURE__ */ f("div", { className: "pagination-controls", children: [
45316
45356
  /* @__PURE__ */ r(
45317
45357
  "button",
45318
45358
  {
@@ -45378,7 +45418,7 @@ const ife = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
45378
45418
  c?.items || "éléments"
45379
45419
  ] }) }) : /* @__PURE__ */ r("span", { children: c?.noResults || "0 résultats" }) }),
45380
45420
  v ? /* @__PURE__ */ f(qe, { children: [
45381
- /* @__PURE__ */ r("div", { className: "pagination-center", children: b }),
45421
+ /* @__PURE__ */ r("div", { className: "pagination-center", children: w }),
45382
45422
  /* @__PURE__ */ f("div", { className: "pagination-pagesize", children: [
45383
45423
  /* @__PURE__ */ r("label", { htmlFor: "table-pagination-pagesize", children: c?.perPage || "Par page" }),
45384
45424
  /* @__PURE__ */ r(
@@ -45393,7 +45433,7 @@ const ife = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
45393
45433
  ] })
45394
45434
  ] }) : /* @__PURE__ */ f(qe, { children: [
45395
45435
  /* @__PURE__ */ r("div", { className: "pagination-spacer" }),
45396
- b
45436
+ w
45397
45437
  ] }),
45398
45438
  !o && n && i && /* @__PURE__ */ r("div", { className: "pagination-load-more", children: /* @__PURE__ */ r(
45399
45439
  "button",
@@ -45434,12 +45474,12 @@ const ife = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
45434
45474
  className: _,
45435
45475
  style: M,
45436
45476
  rowStyle: v,
45437
- onRowClick: b,
45477
+ onRowClick: w,
45438
45478
  rowClassName: L,
45439
45479
  titleKey: N,
45440
45480
  removeLabelSpan: I = !1,
45441
45481
  a11yConfig: x,
45442
- renderSeparator: w,
45482
+ renderSeparator: b,
45443
45483
  pageSizeOptions: $
45444
45484
  }) => {
45445
45485
  const C = ce.useMemo(
@@ -45515,12 +45555,12 @@ const ife = (e) => /* @__PURE__ */ J.createElement("svg", { xmlns: "http://www.w
45515
45555
  render: A.render ? (V) => A.render(V, {}) : void 0
45516
45556
  })),
45517
45557
  rowKey: s,
45518
- onRowClick: b,
45558
+ onRowClick: w,
45519
45559
  isLoading: n,
45520
45560
  text: C,
45521
45561
  rowStyle: typeof v == "function" ? v : v ? () => v : void 0,
45522
45562
  rowClassName: L,
45523
- renderSeparator: w
45563
+ renderSeparator: b
45524
45564
  }
45525
45565
  )
45526
45566
  ] }),
@@ -45574,7 +45614,7 @@ const Abe = ({
45574
45614
  ), M = s !== void 0, v = ce.useMemo(
45575
45615
  () => M ? new Set(s) : k,
45576
45616
  [M, s, k]
45577
- ), b = (C) => {
45617
+ ), w = (C) => {
45578
45618
  const S = new Set(v);
45579
45619
  S.has(C) ? S.delete(C) : S.add(C), M ? d?.(Array.from(S)) : _(S);
45580
45620
  }, L = ce.useMemo(() => {
@@ -45590,7 +45630,7 @@ const Abe = ({
45590
45630
  return C + (Number.isFinite(q) ? q : 140);
45591
45631
  }, 0),
45592
45632
  [t]
45593
- ), w = ce.useMemo(
45633
+ ), b = ce.useMemo(
45594
45634
  () => t.map((C) => C.key !== i ? C : {
45595
45635
  ...C,
45596
45636
  render: (S) => {
@@ -45606,7 +45646,7 @@ const Abe = ({
45606
45646
  type: "button",
45607
45647
  className: "htl-toggle",
45608
45648
  onClick: (A) => {
45609
- A.stopPropagation(), b(q);
45649
+ A.stopPropagation(), w(q);
45610
45650
  },
45611
45651
  children: /* @__PURE__ */ r(
45612
45652
  mz,
@@ -45652,7 +45692,7 @@ const Abe = ({
45652
45692
  {
45653
45693
  ...g,
45654
45694
  data: N,
45655
- columns: w,
45695
+ columns: b,
45656
45696
  rowKey: n,
45657
45697
  rowClassName: $,
45658
45698
  pagination: p ?? { page: 1, pageSize: N.length || 1, total: N.length },
@@ -45739,12 +45779,12 @@ const Abe = ({
45739
45779
  itemPadding: _ = "0.5rem 0.75rem",
45740
45780
  fontWeight: M = "400",
45741
45781
  buttonBgColor: v,
45742
- buttonBorderColor: b,
45782
+ buttonBorderColor: w,
45743
45783
  buttonTextColor: L,
45744
45784
  dropdownBgColor: N = "var(--color-card-background, #ffffff)",
45745
45785
  itemHoverColor: I,
45746
45786
  selectedItemBgColor: x,
45747
- iconColor: w,
45787
+ iconColor: b,
45748
45788
  errorColor: $,
45749
45789
  labelColor: C,
45750
45790
  placeholderColor: S,
@@ -45919,7 +45959,7 @@ const Abe = ({
45919
45959
  padding: h,
45920
45960
  backgroundColor: v || "var(--color-card-background, #ffffff)",
45921
45961
  border: je ? void 0 : "none",
45922
- borderColor: d ? $ || "#dc3545" : b || "var(--color-border, #dee2e6)",
45962
+ borderColor: d ? $ || "#dc3545" : w || "var(--color-border, #dee2e6)",
45923
45963
  color: L || "var(--color-text, #212529)",
45924
45964
  borderRadius: q,
45925
45965
  borderWidth: z,
@@ -45958,7 +45998,7 @@ const Abe = ({
45958
45998
  }, LN = {
45959
45999
  width: y,
45960
46000
  height: y,
45961
- color: w || "var(--color-text, #6c757d)",
46001
+ color: b || "var(--color-text, #6c757d)",
45962
46002
  "--icon-rotation": $z && ot ? "rotate(180deg)" : "rotate(0deg)"
45963
46003
  }, aV = {
45964
46004
  color: C || "var(--color-text, #212529)",
@@ -45972,7 +46012,7 @@ const Abe = ({
45972
46012
  }, iV = Hz(), yt = Ht(e), CN = (j) => `${j.getDate().toString().padStart(2, "0")}/${(j.getMonth() + 1).toString().padStart(2, "0")}/${j.getFullYear()}`, NN = yt ? Le === "minutes" ? `${CN(yt)} ${yt.getHours().toString().padStart(2, "0")}:${yt.getMinutes().toString().padStart(2, "0")}` : CN(yt) : "", IN = !!ke && (ge === "icon" || ge === "auto" && !yt), rV = qz && !IN && !!yt && !s, cV = {
45973
46013
  width: "0.875rem",
45974
46014
  height: "0.875rem",
45975
- color: w || "var(--color-text, #6c757d)"
46015
+ color: b || "var(--color-text, #6c757d)"
45976
46016
  }, sV = Me || (yt ? `${Sz}${NN}` : Iz);
45977
46017
  return /* @__PURE__ */ f(
45978
46018
  "div",
@@ -46349,13 +46389,13 @@ const Abe = ({
46349
46389
  errorMarginTop: _ = "var(--select-error-margin-top, 0.25rem)",
46350
46390
  dropdownMarginTop: M = "var(--select-dropdown-margin-top, 0.25rem)",
46351
46391
  itemPadding: v = "var(--select-item-padding, 0.5rem 0.75rem)",
46352
- gap: b = "var(--select-gap, 0.5rem)",
46392
+ gap: w = "var(--select-gap, 0.5rem)",
46353
46393
  // Couleurs
46354
46394
  buttonBgColor: L,
46355
46395
  buttonBorderColor: N,
46356
46396
  buttonTextColor: I,
46357
46397
  dropdownBgColor: x,
46358
- itemHoverColor: w,
46398
+ itemHoverColor: b,
46359
46399
  selectedItemBgColor: $,
46360
46400
  iconColor: C,
46361
46401
  errorColor: S,
@@ -46453,7 +46493,7 @@ const Abe = ({
46453
46493
  transition: `background-color ${V} ${F}`,
46454
46494
  fontWeight: m
46455
46495
  }, Pe = {
46456
- gap: b
46496
+ gap: w
46457
46497
  }, Ub = {
46458
46498
  "--scrollbar-width": H,
46459
46499
  "--scrollbar-track-color": W,
@@ -46532,10 +46572,10 @@ const Abe = ({
46532
46572
  backgroundColor: t === Ae.value ? $ || "#F0F4F6" : "transparent"
46533
46573
  },
46534
46574
  onMouseEnter: (Tt) => {
46535
- w && (Tt.currentTarget.style.backgroundColor = w);
46575
+ b && (Tt.currentTarget.style.backgroundColor = b);
46536
46576
  },
46537
46577
  onMouseLeave: (Tt) => {
46538
- w && (Tt.currentTarget.style.backgroundColor = t === Ae.value ? $ || "#F0F4F6" : "transparent");
46578
+ b && (Tt.currentTarget.style.backgroundColor = t === Ae.value ? $ || "#F0F4F6" : "transparent");
46539
46579
  },
46540
46580
  role: "option",
46541
46581
  "aria-selected": t === Ae.value,
@@ -46574,12 +46614,12 @@ const Abe = ({
46574
46614
  labelColor: _ = "#212529",
46575
46615
  labelMarginRight: M = "1rem",
46576
46616
  startDateWidth: v,
46577
- endDateWidth: b,
46617
+ endDateWidth: w,
46578
46618
  selectWidth: L,
46579
46619
  datePickerProps: N = {},
46580
46620
  selectProps: I = {},
46581
46621
  rightContent: x,
46582
- extraContent: w
46622
+ extraContent: b
46583
46623
  }) => {
46584
46624
  const $ = {
46585
46625
  fontSize: g,
@@ -46613,7 +46653,7 @@ const Abe = ({
46613
46653
  fullWidth: !1,
46614
46654
  disabled: y,
46615
46655
  label: void 0,
46616
- width: b,
46656
+ width: w,
46617
46657
  ...N
46618
46658
  }
46619
46659
  ),
@@ -46631,7 +46671,7 @@ const Abe = ({
46631
46671
  ...I
46632
46672
  }
46633
46673
  ),
46634
- w,
46674
+ b,
46635
46675
  x && /* @__PURE__ */ r("div", { style: { marginLeft: "auto" }, children: x })
46636
46676
  ] });
46637
46677
  }, w7e = "_container_1x6mq_16", L7e = "_disabled_1x6mq_26", C7e = "_predStyle_1x6mq_32", N7e = "_realStyle_1x6mq_36", I7e = "_predGap_1x6mq_40", S7e = "_realGap_1x6mq_44", $7e = "_big_1x6mq_49", q7e = "_medium_1x6mq_53", A7e = "_iconWrapper_1x6mq_58", z7e = "_predRelative_1x6mq_68", V7e = "_realRelative_1x6mq_72", P7e = "_iconImg_1x6mq_76", T7e = "_content_1x6mq_84", H7e = "_header_1x6mq_93", D7e = "_predJustify_1x6mq_99", B7e = "_realJustify_1x6mq_103", j7e = "_predHeaderLineHeight_1x6mq_116", R7e = "_realHeaderLineHeight_1x6mq_120", F7e = "_title_1x6mq_129", E7e = "_titleBlack_1x6mq_144", O7e = "_titleWhite_1x6mq_148", U7e = "_subtitle_1x6mq_153", W7e = "_valueRowHorizontal_1x6mq_163", G7e = "_valueRowVertical_1x6mq_171", K7e = "_singleValue_1x6mq_180", Z7e = "_primaryRow_1x6mq_184", X7e = "_maxBadge_1x6mq_191", Y7e = "_valuePrimary_1x6mq_203", J7e = "_valuePrimaryBlack_1x6mq_210", Q7e = "_valuePrimaryWhite_1x6mq_214", eve = "_valueSlash_1x6mq_219", tve = "_valueSecondary_1x6mq_226", ave = "_valueSecondaryBlue_1x6mq_232", nve = "_valueSecondaryWhite_1x6mq_236", ove = "_valueSecondaryBlack_1x6mq_240", ive = "_valueStacked_1x6mq_245", rve = "_stackedTop_1x6mq_254", cve = "_stackedBottom_1x6mq_255", ve = {
@@ -46693,12 +46733,12 @@ const Abe = ({
46693
46733
  titleFontSize: _,
46694
46734
  titleFontWeight: M,
46695
46735
  subtitleFontSize: v,
46696
- subtitleFontWeight: b,
46736
+ subtitleFontWeight: w,
46697
46737
  primaryFontSize: L,
46698
46738
  primaryFontWeight: N,
46699
46739
  secondaryFontSize: I,
46700
46740
  secondaryFontWeight: x,
46701
- backgroundColor: w = "#f2f9fc",
46741
+ backgroundColor: b = "#f2f9fc",
46702
46742
  gap: $ = "",
46703
46743
  disabled: C = !1,
46704
46744
  positionRelative: S = "",
@@ -46717,7 +46757,7 @@ const Abe = ({
46717
46757
  realisedA11yKey: K
46718
46758
  }) => {
46719
46759
  const he = i !== void 0 ? i : !!o, le = `${ve.container} ${ve[d]} ${ve[m]} ${C ? ve.disabled : ""}`, Ie = h === "white" ? ve.valuePrimaryWhite : ve.valuePrimaryBlack, pe = h === "blue" ? ve.valueSecondaryBlue : h === "white" ? ve.valueSecondaryWhite : ve.valueSecondaryBlack, ie = (Z) => Z === void 0 ? void 0 : typeof Z == "number" ? `${Z}px` : Z, re = (Z) => Z === void 0 ? void 0 : Z, ke = g === "vertical", ge = s != null && s !== "" && s !== "-" && s !== "—", Me = ke ? ve.valueRowVertical : ve.valueRowHorizontal;
46720
- return /* @__PURE__ */ f("div", { className: `${le} ${y}`, style: { backgroundColor: w }, children: [
46760
+ return /* @__PURE__ */ f("div", { className: `${le} ${y}`, style: { backgroundColor: b }, children: [
46721
46761
  t && /* @__PURE__ */ r("div", { className: `${ve.iconWrapper} ${ve[S]}`, children: t }),
46722
46762
  /* @__PURE__ */ f(
46723
46763
  "div",
@@ -46751,7 +46791,7 @@ const Abe = ({
46751
46791
  className: ve.subtitle,
46752
46792
  style: {
46753
46793
  fontSize: ie(v),
46754
- fontWeight: re(b)
46794
+ fontWeight: re(w)
46755
46795
  },
46756
46796
  title: te(e, A, V),
46757
46797
  children: o
@@ -46856,7 +46896,7 @@ const Abe = ({
46856
46896
  warnMessage: M,
46857
46897
  warnColor: v = "#F94134"
46858
46898
  }) => {
46859
- const b = (t ?? "").trim().toUpperCase();
46899
+ const w = (t ?? "").trim().toUpperCase();
46860
46900
  return /* @__PURE__ */ f("div", { className: Qe.banner, style: { backgroundColor: l, ...k }, children: [
46861
46901
  /* @__PURE__ */ f("div", { className: Qe.iep, children: [
46862
46902
  /* @__PURE__ */ r("div", { style: { color: p }, children: e.iep ?? "--" }),
@@ -46877,8 +46917,8 @@ const Abe = ({
46877
46917
  className: `${Qe.genre} genre-info-banner`,
46878
46918
  style: { color: "#ffffff", background: m, fontSize: g },
46879
46919
  role: "img",
46880
- "aria-label": b === "F" ? "Female" : b === "M" ? "Male" : t || "Unknown gender",
46881
- children: b === "F" ? /* @__PURE__ */ r(wve, { width: 20, height: 20, "aria-hidden": "true" }) : b === "M" ? /* @__PURE__ */ r(Cve, { width: 20, height: 20, "aria-hidden": "true" }) : t || "--"
46920
+ "aria-label": w === "F" ? "Female" : w === "M" ? "Male" : t || "Unknown gender",
46921
+ children: w === "F" ? /* @__PURE__ */ r(wve, { width: 20, height: 20, "aria-hidden": "true" }) : w === "M" ? /* @__PURE__ */ r(Cve, { width: 20, height: 20, "aria-hidden": "true" }) : t || "--"
46882
46922
  }
46883
46923
  ),
46884
46924
  /* @__PURE__ */ r("span", { className: `${Qe.gravite} gravite-info-banner`, children: n ?? "--" })
@@ -46961,12 +47001,12 @@ const Abe = ({
46961
47001
  onDelete: _,
46962
47002
  deleteLabel: M = "Supprimer",
46963
47003
  width: v = "75%",
46964
- maxWidth: b = "none",
47004
+ maxWidth: w = "none",
46965
47005
  height: L = "85%",
46966
47006
  maxHeight: N = "85%",
46967
47007
  borderRadius: I = "0.5rem",
46968
47008
  childrenPadding: x = "1rem",
46969
- overflow: w = "auto",
47009
+ overflow: b = "auto",
46970
47010
  contentHeaderAction: $,
46971
47011
  contentFooterAction: C,
46972
47012
  footerOverride: S,
@@ -47011,11 +47051,11 @@ const Abe = ({
47011
47051
  onClick: (H) => H.stopPropagation(),
47012
47052
  style: {
47013
47053
  width: P ? "100%" : v,
47014
- maxWidth: P ? "none" : b,
47054
+ maxWidth: P ? "none" : w,
47015
47055
  height: P ? "100%" : L,
47016
47056
  maxHeight: P ? "100%" : N,
47017
47057
  borderRadius: P ? "0" : I,
47018
- overflow: w,
47058
+ overflow: b,
47019
47059
  ...D || {}
47020
47060
  },
47021
47061
  children: [
@@ -47045,19 +47085,19 @@ const Abe = ({
47045
47085
  /* @__PURE__ */ r("button", { onClick: s, className: Re.iconButton, title: "Fermer", children: /* @__PURE__ */ r(vz, { width: 22, height: 22, fill: t }) })
47046
47086
  ] })
47047
47087
  ] }),
47048
- /* @__PURE__ */ f("div", { className: Re.body, style: { overflow: w }, children: [
47088
+ /* @__PURE__ */ f("div", { className: Re.body, style: { overflow: b }, children: [
47049
47089
  y && !k && /* @__PURE__ */ r("aside", { className: Re.sidebar, children: y }),
47050
47090
  /* @__PURE__ */ f(
47051
47091
  "main",
47052
47092
  {
47053
47093
  className: Re.content,
47054
- style: { backgroundColor: u, overflow: w },
47094
+ style: { backgroundColor: u, overflow: b },
47055
47095
  children: [
47056
47096
  p && /* @__PURE__ */ f("header", { className: Re.contentHeader, style: { backgroundColor: n }, children: [
47057
47097
  /* @__PURE__ */ r("span", { style: { color: t }, children: p }),
47058
47098
  $
47059
47099
  ] }),
47060
- /* @__PURE__ */ r("div", { className: Re.childrenWrapper, style: { padding: x, overflow: w }, children: h })
47100
+ /* @__PURE__ */ r("div", { className: Re.childrenWrapper, style: { padding: x, overflow: b }, children: h })
47061
47101
  ]
47062
47102
  }
47063
47103
  )
@@ -47155,16 +47195,16 @@ const Abe = ({
47155
47195
  confirmText: _ = "Valider",
47156
47196
  cancelText: M = "Annuler",
47157
47197
  headerLabel: v,
47158
- headerLabelKey: b,
47198
+ headerLabelKey: w,
47159
47199
  showAddIcon: L = !0,
47160
47200
  showCount: N = !0,
47161
47201
  showToggle: I = !1,
47162
47202
  showActions: x = !0,
47163
- onToggle: w,
47203
+ onToggle: b,
47164
47204
  a11yConfig: $
47165
47205
  }) => {
47166
47206
  const [C, S] = B(!1), [q, z] = B(null), [D, T] = B(null), [P, A] = B(null), [V, F] = B(null), H = () => {
47167
- F((Z) => Z === null ? "asc" : Z === "asc" ? "desc" : null), w && w();
47207
+ F((Z) => Z === null ? "asc" : Z === "asc" ? "desc" : null), b && b();
47168
47208
  }, W = we(() => V ? [...e].sort((Z, ee) => {
47169
47209
  const ue = Z.title.toLowerCase(), je = ee.title.toLowerCase();
47170
47210
  return V === "asc" ? ue.localeCompare(je) : je.localeCompare(ue);
@@ -47194,7 +47234,7 @@ const Abe = ({
47194
47234
  return /* @__PURE__ */ f("div", { className: "module-sidebar-v2", children: [
47195
47235
  /* @__PURE__ */ r("div", { className: "sidebar-header", children: v ? /* @__PURE__ */ f(qe, { children: [
47196
47236
  /* @__PURE__ */ f("div", { className: "header-label-container", onClick: H, children: [
47197
- /* @__PURE__ */ r("div", { className: "header-label", title: te($, b), children: v }),
47237
+ /* @__PURE__ */ r("div", { className: "header-label", title: te($, w), children: v }),
47198
47238
  V === "asc" ? /* @__PURE__ */ r(hi, { size: 12, className: "header-toggle-icon", strokeWidth: 3 }) : /* @__PURE__ */ r(li, { size: 12, className: "header-toggle-icon", strokeWidth: 3 })
47199
47239
  ] }),
47200
47240
  L && /* @__PURE__ */ r(O1, { size: 18, className: "add-view-icon", onClick: ae })
@@ -47341,7 +47381,7 @@ const Abe = ({
47341
47381
  hoverBackgroundColor: M,
47342
47382
  selectedBackgroundColor: v
47343
47383
  }) => {
47344
- const [b, L] = B(d ?? ""), N = G(null);
47384
+ const [w, L] = B(d ?? ""), N = G(null);
47345
47385
  O(() => {
47346
47386
  d !== void 0 && L(d);
47347
47387
  }, [d]), O(() => () => {
@@ -47353,7 +47393,7 @@ const Abe = ({
47353
47393
  h?.(C);
47354
47394
  }, u);
47355
47395
  }, x = ($) => {
47356
- $.key === "Enter" && p?.(b);
47396
+ $.key === "Enter" && p?.(w);
47357
47397
  };
47358
47398
  return /* @__PURE__ */ f("div", { className: "searchable-module-sidebar", style: {
47359
47399
  "--smsb-border-color": _ ?? "var(--color-border, #efefef)",
@@ -47370,7 +47410,7 @@ const Abe = ({
47370
47410
  {
47371
47411
  type: "text",
47372
47412
  className: "search-input",
47373
- value: b,
47413
+ value: w,
47374
47414
  placeholder: l,
47375
47415
  onChange: I,
47376
47416
  onKeyDown: x
@@ -47397,14 +47437,14 @@ const Abe = ({
47397
47437
  onDelete: c,
47398
47438
  a11yConfig: s
47399
47439
  }) => {
47400
- const [d, l] = B(!1), [h, p] = B(e), [u, y] = B(null), [m, g] = B(""), [k, _] = B(!1), [M, v] = B(""), [b, L] = B(""), N = ce.useMemo(() => {
47440
+ const [d, l] = B(!1), [h, p] = B(e), [u, y] = B(null), [m, g] = B(""), [k, _] = B(!1), [M, v] = B(""), [w, L] = B(""), N = ce.useMemo(() => {
47401
47441
  const P = {};
47402
47442
  return Array.isArray(t) && t.forEach((A) => {
47403
47443
  A && A.language && (P[A.language.toUpperCase()] = A.value);
47404
47444
  }), P;
47405
47445
  }, [t]), I = ce.useMemo(() => n, [n]), x = () => {
47406
47446
  l(!1), h !== e && h.trim() !== "" ? i && i(h.trim()) : p(e);
47407
- }, w = (P) => {
47447
+ }, b = (P) => {
47408
47448
  P.key === "Enter" ? x() : P.key === "Escape" && (p(e), l(!1));
47409
47449
  }, $ = (P) => {
47410
47450
  const A = P.toUpperCase();
@@ -47416,7 +47456,7 @@ const Abe = ({
47416
47456
  }, q = () => {
47417
47457
  _(!0), I.length > 0 && v(I[0].toUpperCase()), L("");
47418
47458
  }, z = () => {
47419
- M && b.trim() && (o(M, b.trim()), _(!1), v(""), L(""));
47459
+ M && w.trim() && (o(M, w.trim()), _(!1), v(""), L(""));
47420
47460
  }, D = () => {
47421
47461
  _(!1), v(""), L("");
47422
47462
  }, T = (P) => {
@@ -47431,7 +47471,7 @@ const Abe = ({
47431
47471
  value: h,
47432
47472
  onChange: (P) => p(P.target.value),
47433
47473
  onBlur: x,
47434
- onKeyDown: w,
47474
+ onKeyDown: b,
47435
47475
  autoFocus: !0
47436
47476
  }
47437
47477
  ) : /* @__PURE__ */ r("h3", { className: "header-title", title: te(s, e), children: e }),
@@ -47481,7 +47521,7 @@ const Abe = ({
47481
47521
  "input",
47482
47522
  {
47483
47523
  className: "translation-input editing",
47484
- value: b,
47524
+ value: w,
47485
47525
  onChange: (P) => L(P.target.value),
47486
47526
  onKeyDown: T,
47487
47527
  placeholder: "Mot",
@@ -47526,7 +47566,7 @@ const Abe = ({
47526
47566
  overlayStyle: _,
47527
47567
  modalClassName: M,
47528
47568
  bodyClassName: v,
47529
- footerClassName: b,
47569
+ footerClassName: w,
47530
47570
  overlayClassName: L
47531
47571
  }) => {
47532
47572
  if (!e) return null;
@@ -47545,7 +47585,7 @@ const Abe = ({
47545
47585
  style: u,
47546
47586
  children: [
47547
47587
  /* @__PURE__ */ r("div", { className: `${Bt.body} ${v || ""}`.trim(), style: y, children: typeof N == "string" ? /* @__PURE__ */ r("p", { children: N }) : N }),
47548
- !l && /* @__PURE__ */ f("div", { className: `${Bt.footer} ${b || ""}`.trim(), style: m, children: [
47588
+ !l && /* @__PURE__ */ f("div", { className: `${Bt.footer} ${w || ""}`.trim(), style: m, children: [
47549
47589
  s && /* @__PURE__ */ r("button", { className: Bt.cancelButton, onClick: i, style: g, children: s }),
47550
47590
  h && p && /* @__PURE__ */ r("button", { className: Bt.confirmButton, onClick: p, children: h }),
47551
47591
  c && /* @__PURE__ */ r(
@@ -47636,21 +47676,21 @@ const Abe = ({
47636
47676
  disabled: d = !1,
47637
47677
  allowWrap: l = !1
47638
47678
  }) => {
47639
- const [h, p] = B(!1), [u, y] = B(""), m = G(null), g = G(null), k = G(null), _ = G(null), [M, v] = B(null), [b, L] = B(!1), N = G([]), I = G(null), x = we(() => {
47679
+ const [h, p] = B(!1), [u, y] = B(""), m = G(null), g = G(null), k = G(null), _ = G(null), [M, v] = B(null), [w, L] = B(!1), N = G([]), I = G(null), x = we(() => {
47640
47680
  const A = new Map(e.map((V) => [V.value, V]));
47641
47681
  return n.map((V) => A.get(V)).filter((V) => V !== void 0);
47642
- }, [e, n]), w = we(
47682
+ }, [e, n]), b = we(
47643
47683
  () => e.filter((A) => !n.includes(A.value)),
47644
47684
  [e, n]
47645
47685
  ), $ = we(() => {
47646
- let A = w;
47686
+ let A = b;
47647
47687
  return u && (A = A.filter((V) => V.label.toLowerCase().includes(u.toLowerCase()))), A.filter((V, F) => {
47648
47688
  if (!V.isHeader) return !0;
47649
47689
  for (let H = F + 1; H < A.length && !A[H].isHeader; H++)
47650
47690
  return !0;
47651
47691
  return !1;
47652
47692
  });
47653
- }, [w, u]);
47693
+ }, [b, u]);
47654
47694
  O(() => {
47655
47695
  const A = (V) => {
47656
47696
  const F = V.target;
@@ -47822,7 +47862,7 @@ const Abe = ({
47822
47862
  children: z.length
47823
47863
  }
47824
47864
  ),
47825
- b && z.length > 0 && /* @__PURE__ */ r("div", { className: ye.overflowDropdown, role: "list", "aria-label": "Éléments cachés", children: z.map((A, V) => /* @__PURE__ */ f("div", { className: ye.overflowDropdownItem, children: [
47865
+ w && z.length > 0 && /* @__PURE__ */ r("div", { className: ye.overflowDropdown, role: "list", "aria-label": "Éléments cachés", children: z.map((A, V) => /* @__PURE__ */ f("div", { className: ye.overflowDropdownItem, children: [
47826
47866
  /* @__PURE__ */ r("span", { className: ye.overflowDropdownItemLabel, children: A.label }),
47827
47867
  /* @__PURE__ */ r(
47828
47868
  "button",
@@ -48168,9 +48208,9 @@ const Abe = ({
48168
48208
  hideDonut: _ = !0,
48169
48209
  hideColorIndicator: M = !1
48170
48210
  }) => {
48171
- const [v, b] = B(new Set(e.map((C) => C.nom))), L = (C) => {
48211
+ const [v, w] = B(new Set(e.map((C) => C.nom))), L = (C) => {
48172
48212
  const S = new Set(v);
48173
- S.has(C) ? S.size > 1 && S.delete(C) : S.add(C), b(S);
48213
+ S.has(C) ? S.size > 1 && S.delete(C) : S.add(C), w(S);
48174
48214
  }, N = {
48175
48215
  ...u,
48176
48216
  "--bg-color": n || o || "transparent",
@@ -48187,10 +48227,10 @@ const Abe = ({
48187
48227
  }, I = we(() => e.map((C) => ({
48188
48228
  ...C,
48189
48229
  displayValue: v.has(C.nom) ? C.value : 0
48190
- })), [e, v]), x = we(() => e.every((C) => C.value === 0), [e]), w = we(() => x ? 1 : I.reduce((C, S) => C + S.displayValue, 0) || 1, [x, I]), $ = ce.useCallback(
48230
+ })), [e, v]), x = we(() => e.every((C) => C.value === 0), [e]), b = we(() => x ? 1 : I.reduce((C, S) => C + S.displayValue, 0) || 1, [x, I]), $ = ce.useCallback(
48191
48231
  ({ cx: C, cy: S, midAngle: q, innerRadius: z, outerRadius: D, value: T }) => {
48192
48232
  if (T === 0 || x) return null;
48193
- const P = z + (D - z) * 0.5, A = C + P * Math.cos(-q * aq), V = S + P * Math.sin(-q * aq), F = Math.round(T / w * 100);
48233
+ const P = z + (D - z) * 0.5, A = C + P * Math.cos(-q * aq), V = S + P * Math.sin(-q * aq), F = Math.round(T / b * 100);
48194
48234
  return /* @__PURE__ */ r(
48195
48235
  bV,
48196
48236
  {
@@ -48205,7 +48245,7 @@ const Abe = ({
48205
48245
  }
48206
48246
  );
48207
48247
  },
48208
- [w, x]
48248
+ [b, x]
48209
48249
  );
48210
48250
  return /* @__PURE__ */ f("div", { className: `${et.container} ${p}`, style: N, children: [
48211
48251
  !_ && /* @__PURE__ */ r("div", { className: et.chartContainer, style: { height: t / 2 + 100 }, children: /* @__PURE__ */ r(yq, { width: "100%", height: "100%", children: /* @__PURE__ */ r(wV, { children: /* @__PURE__ */ r(
@@ -48551,16 +48591,16 @@ const Kbe = ({
48551
48591
  backgroundColor: _ = "#ffffff",
48552
48592
  textColor: M = "#1a1a1a",
48553
48593
  activeBackgroundColor: v = "#cce7f2",
48554
- hoverBackgroundColor: b = "#f5f8fa"
48594
+ hoverBackgroundColor: w = "#f5f8fa"
48555
48595
  }) => {
48556
48596
  const [L, N] = B(
48557
48597
  c ?? ""
48558
- ), I = s ?? L, x = G(null), w = G({}), $ = (C) => {
48598
+ ), I = s ?? L, x = G(null), b = G({}), $ = (C) => {
48559
48599
  const S = I === C ? "" : C;
48560
48600
  N(S), d?.(S);
48561
48601
  };
48562
48602
  return O(() => {
48563
- const C = x.current, S = I ? w.current[I] : null;
48603
+ const C = x.current, S = I ? b.current[I] : null;
48564
48604
  if (!C || !S) return;
48565
48605
  const q = C.getBoundingClientRect(), z = S.getBoundingClientRect();
48566
48606
  z.bottom > q.bottom && C.scrollBy({
@@ -48608,7 +48648,7 @@ const Kbe = ({
48608
48648
  "div",
48609
48649
  {
48610
48650
  ref: (q) => {
48611
- w.current[C.id] = q;
48651
+ b.current[C.id] = q;
48612
48652
  },
48613
48653
  children: [
48614
48654
  /* @__PURE__ */ r(
@@ -48628,7 +48668,7 @@ const Kbe = ({
48628
48668
  {
48629
48669
  type: "button",
48630
48670
  $textColor: M,
48631
- $hoverBackgroundColor: b,
48671
+ $hoverBackgroundColor: w,
48632
48672
  onClick: () => l?.(q.id),
48633
48673
  children: [
48634
48674
  /* @__PURE__ */ r($_e, { title: q.title ?? q.name, children: q.name }),
@@ -48795,7 +48835,7 @@ const Kbe = ({
48795
48835
  ariaLabelledBy: M,
48796
48836
  a11yConfig: v
48797
48837
  }) => {
48798
- const b = n !== t ? (e - t) / (n - t) * 100 : 0, L = (I) => {
48838
+ const w = n !== t ? (e - t) / (n - t) * 100 : 0, L = (I) => {
48799
48839
  i(Number(I.target.value));
48800
48840
  }, N = te(v, c);
48801
48841
  return /* @__PURE__ */ f(A_e, { className: s, title: N, $fullWidth: l, children: [
@@ -48815,7 +48855,7 @@ const Kbe = ({
48815
48855
  "aria-valuemin": t,
48816
48856
  "aria-valuemax": n,
48817
48857
  "aria-valuenow": e,
48818
- $percentage: b,
48858
+ $percentage: w,
48819
48859
  $trackHeight: h,
48820
48860
  $trackColor: p,
48821
48861
  $trackFillColor: u,
@@ -48970,7 +49010,7 @@ const Kbe = ({
48970
49010
  };
48971
49011
  }
48972
49012
  return { h: "00", m: "00" };
48973
- }, [b, L] = B("00"), [N, I] = B("00");
49013
+ }, [w, L] = B("00"), [N, I] = B("00");
48974
49014
  O(() => {
48975
49015
  const C = v(e);
48976
49016
  L(C.h), I(C.m);
@@ -48981,9 +49021,9 @@ const Kbe = ({
48981
49021
  return document.addEventListener("mousedown", C), () => document.removeEventListener("mousedown", C);
48982
49022
  }, []);
48983
49023
  const x = () => {
48984
- const C = parseInt(b) || 0, S = parseInt(N) || 0, q = Math.min(u, Math.max(0, C)).toString().padStart(2, "0"), z = Math.min(59, Math.max(0, S)).toString().padStart(2, "0");
49024
+ const C = parseInt(w) || 0, S = parseInt(N) || 0, q = Math.min(u, Math.max(0, C)).toString().padStart(2, "0"), z = Math.min(59, Math.max(0, S)).toString().padStart(2, "0");
48985
49025
  t(`${q}:${z}`), _(!1);
48986
- }, w = e ? typeof e == "string" ? e : `${e.getHours().toString().padStart(2, "0")}:${e.getMinutes().toString().padStart(2, "0")}` : "", $ = te(g, n);
49026
+ }, b = e ? typeof e == "string" ? e : `${e.getHours().toString().padStart(2, "0")}:${e.getMinutes().toString().padStart(2, "0")}` : "", $ = te(g, n);
48987
49027
  return /* @__PURE__ */ f(H_e, { ref: M, $fullWidth: c, title: $, children: [
48988
49028
  n && /* @__PURE__ */ r(D_e, { id: m ? void 0 : `${n}-label`, children: n }),
48989
49029
  /* @__PURE__ */ r(
@@ -48999,7 +49039,7 @@ const Kbe = ({
48999
49039
  "aria-expanded": k,
49000
49040
  "aria-haspopup": "listbox",
49001
49041
  children: /* @__PURE__ */ f(j_e, { children: [
49002
- /* @__PURE__ */ r(R_e, { $isPlaceholder: !w, children: w || o }),
49042
+ /* @__PURE__ */ r(R_e, { $isPlaceholder: !b, children: b || o }),
49003
49043
  /* @__PURE__ */ r(F_e, {})
49004
49044
  ] })
49005
49045
  }
@@ -49015,7 +49055,7 @@ const Kbe = ({
49015
49055
  min: "0",
49016
49056
  max: u.toString(),
49017
49057
  $wide: u > 99,
49018
- value: b,
49058
+ value: w,
49019
49059
  onChange: (C) => {
49020
49060
  const S = C.target.value;
49021
49061
  if (S === "") {
@@ -49502,12 +49542,12 @@ const Kbe = ({
49502
49542
  expectedDatePrefix: _,
49503
49543
  showTimeline: M = !1,
49504
49544
  destination: v,
49505
- progress: b = 0,
49545
+ progress: w = 0,
49506
49546
  progressTrackColor: L,
49507
49547
  progressFillColor: N,
49508
49548
  progressLabel: I,
49509
49549
  progressTitle: x,
49510
- showFooter: w = !1,
49550
+ showFooter: b = !1,
49511
49551
  leftIcons: $ = [],
49512
49552
  rightIcons: C = [],
49513
49553
  activeView: S = "default",
@@ -49532,7 +49572,7 @@ const Kbe = ({
49532
49572
  /* @__PURE__ */ f(
49533
49573
  "div",
49534
49574
  {
49535
- className: `${X.topArea} ${w ? "" : X.noFooterMargin}`,
49575
+ className: `${X.topArea} ${b ? "" : X.noFooterMargin}`,
49536
49576
  style: o,
49537
49577
  children: [
49538
49578
  /* @__PURE__ */ r("div", { className: X.header, children: H ? /* @__PURE__ */ f(qe, { children: [
@@ -49630,7 +49670,7 @@ const Kbe = ({
49630
49670
  {
49631
49671
  className: X.progressFill,
49632
49672
  style: {
49633
- width: `${b}%`,
49673
+ width: `${w}%`,
49634
49674
  backgroundColor: N
49635
49675
  }
49636
49676
  }
@@ -49644,7 +49684,7 @@ const Kbe = ({
49644
49684
  ]
49645
49685
  }
49646
49686
  ),
49647
- w && /* @__PURE__ */ f("div", { className: X.footer, children: [
49687
+ b && /* @__PURE__ */ f("div", { className: X.footer, children: [
49648
49688
  $.map((K, he) => /* @__PURE__ */ r("div", { className: X.iconWrap, children: K }, `left-${he}`)),
49649
49689
  C.map((K, he) => /* @__PURE__ */ r("div", { className: X.iconWrap, children: K }, `right-${he}`))
49650
49690
  ] })
@@ -49724,8 +49764,8 @@ function qxe({
49724
49764
  const V = l.current;
49725
49765
  V && ((typeof CSS > "u" || !CSS.supports || !CSS.supports("field-sizing", "content")) && (V.style.height = "auto", V.style.height = `${Math.min(Math.max(V.scrollHeight, 60), 140)}px`), V.scrollTop = V.scrollHeight);
49726
49766
  }, [h]);
49727
- const [g, k] = B(!1), _ = G(!1), [M, v] = B("hidden"), b = G("hidden"), L = G(null), N = G(!1), I = de((V) => {
49728
- b.current = V, v(V);
49767
+ const [g, k] = B(!1), _ = G(!1), [M, v] = B("hidden"), w = G("hidden"), L = G(null), N = G(!1), I = de((V) => {
49768
+ w.current = V, v(V);
49729
49769
  }, []), x = de(() => {
49730
49770
  L.current && clearTimeout(L.current), I("hiding"), L.current = setTimeout(() => I("hidden"), Sxe);
49731
49771
  }, [I]);
@@ -49734,12 +49774,12 @@ function qxe({
49734
49774
  }, []), O(() => {
49735
49775
  !N.current && !_.current && d.current?.scrollIntoView({ behavior: "smooth" });
49736
49776
  }, [e.length]);
49737
- const w = de(async () => {
49777
+ const b = de(async () => {
49738
49778
  const V = h.trim();
49739
49779
  if (!(!V || u)) {
49740
49780
  y(!0);
49741
49781
  try {
49742
- await n(V), p(""), N.current = !1, b.current !== "hidden" && x(), requestAnimationFrame(() => {
49782
+ await n(V), p(""), N.current = !1, w.current !== "hidden" && x(), requestAnimationFrame(() => {
49743
49783
  d.current?.scrollIntoView({ behavior: "smooth" });
49744
49784
  });
49745
49785
  } finally {
@@ -49748,16 +49788,16 @@ function qxe({
49748
49788
  }
49749
49789
  }, [h, u, n, x]), $ = de(
49750
49790
  (V) => {
49751
- V.preventDefault(), w().catch(() => {
49791
+ V.preventDefault(), b().catch(() => {
49752
49792
  });
49753
49793
  },
49754
- [w]
49794
+ [b]
49755
49795
  ), C = de(
49756
49796
  (V) => {
49757
- V.key === "Enter" && !V.shiftKey && !V.nativeEvent.isComposing && (V.preventDefault(), w().catch(() => {
49797
+ V.key === "Enter" && !V.shiftKey && !V.nativeEvent.isComposing && (V.preventDefault(), b().catch(() => {
49758
49798
  }));
49759
49799
  },
49760
- [w]
49800
+ [b]
49761
49801
  ), S = de(() => {
49762
49802
  d.current?.scrollIntoView({ behavior: "smooth" });
49763
49803
  }, []), q = de(async () => {
@@ -49774,7 +49814,7 @@ function qxe({
49774
49814
  if (!V) return;
49775
49815
  const H = V.scrollHeight - V.scrollTop - V.clientHeight > Ixe;
49776
49816
  N.current = H;
49777
- const W = b.current;
49817
+ const W = w.current;
49778
49818
  H ? (W === "hidden" || W === "hiding") && (L.current && clearTimeout(L.current), I("visible")) : W === "visible" && x(), V.scrollTop < $xe && o && !_.current && q().catch(() => {
49779
49819
  });
49780
49820
  }, [o, q, I, x]), D = wxe(e, c), T = de(
@@ -49846,12 +49886,12 @@ const hq = () => /* @__PURE__ */ f(
49846
49886
  }) => {
49847
49887
  const {
49848
49888
  listRef: v,
49849
- bottomAnchorRef: b,
49889
+ bottomAnchorRef: w,
49850
49890
  textareaRef: L,
49851
49891
  draft: N,
49852
49892
  setDraft: I,
49853
49893
  canSend: x,
49854
- sending: w,
49894
+ sending: b,
49855
49895
  handleFormSubmit: $,
49856
49896
  handleKeyDown: C,
49857
49897
  scrollBtnState: S,
@@ -49931,7 +49971,7 @@ const hq = () => /* @__PURE__ */ f(
49931
49971
  );
49932
49972
  })
49933
49973
  ] }, F.dayKey)),
49934
- /* @__PURE__ */ r("div", { ref: b, "aria-hidden": "true" })
49974
+ /* @__PURE__ */ r("div", { ref: w, "aria-hidden": "true" })
49935
49975
  ]
49936
49976
  }
49937
49977
  ),
@@ -49958,7 +49998,7 @@ const hq = () => /* @__PURE__ */ f(
49958
49998
  placeholder: p,
49959
49999
  "aria-label": p,
49960
50000
  rows: 1,
49961
- disabled: w
50001
+ disabled: b
49962
50002
  }
49963
50003
  ),
49964
50004
  /* @__PURE__ */ r("button", { type: "submit", className: xe.sendButton, disabled: !x, children: u })