@tsiky/components-r19 7.0.3 → 7.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { jsx as c, jsxs as f, Fragment as Ie } from "react/jsx-runtime";
2
2
  import * as ae from "react";
3
- import re, { useState as P, useRef as G, useEffect as E, createContext as Qe, useContext as be, useCallback as De, memo as Pe, useLayoutEffect as Y$, useId as vC, useInsertionEffect as J$, useMemo as Me, Children as Fz, isValidElement as Ez, Fragment as Q$, createElement as Oz, forwardRef as ic, Component as Uz, useImperativeHandle as Wz } from "react";
3
+ import ce, { useState as P, useRef as K, useEffect as E, createContext as Qe, useContext as be, useCallback as De, memo as Pe, useLayoutEffect as Y$, useId as vC, useInsertionEffect as J$, useMemo as Me, Children as Fz, isValidElement as Ez, Fragment as Q$, createElement as Oz, forwardRef as ic, Component as Uz, useImperativeHandle as Wz } from "react";
4
4
  import { c as a, M as E1, I as Gz, a as uc, g as Kz, R as eq, B as Zz, C as Xz, X as Yz, Y as Jz, T as Qz, b as eV, L as tV, d as aV, P as nV, e as oV, f as _N } from "./LineChart-DSDw_oNQ.js";
5
5
  import { i as Pxe, h as jxe, S as Txe } from "./LineChart-DSDw_oNQ.js";
6
6
  import O from "styled-components";
@@ -190,7 +190,7 @@ function bV({
190
190
  width: d = "auto",
191
191
  gap: l = 0
192
192
  }) {
193
- const [h, p] = P(!1), [u, y] = P(null), m = G(null);
193
+ const [h, p] = P(!1), [u, y] = P(null), m = K(null);
194
194
  E(() => {
195
195
  function M(v) {
196
196
  v.key === "Escape" && p(!1);
@@ -31406,7 +31406,7 @@ const It = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
31406
31406
  select: r,
31407
31407
  topContent: s
31408
31408
  }) => {
31409
- const [d, l] = P(!1), [h, p] = P("right"), u = G(null), y = G(null), { activeNav: m, activeSubNav: g } = At();
31409
+ const [d, l] = P(!1), [h, p] = P("right"), u = K(null), y = K(null), { activeNav: m, activeSubNav: g } = At();
31410
31410
  E(() => {
31411
31411
  if (!i) return;
31412
31412
  const M = (v) => {
@@ -31506,10 +31506,10 @@ const It = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
31506
31506
  E(() => {
31507
31507
  const b = (z) => {
31508
31508
  const R = [];
31509
- return re.Children.forEach(z, (B) => {
31510
- Array.isArray(B) ? R.push(...b(B)) : re.isValidElement(B) && R.push(B);
31509
+ return ce.Children.forEach(z, (B) => {
31510
+ Array.isArray(B) ? R.push(...b(B)) : ce.isValidElement(B) && R.push(B);
31511
31511
  }), R;
31512
- }, I = b(e).filter((z) => re.isValidElement(z)).map((z) => {
31512
+ }, I = b(e).filter((z) => ce.isValidElement(z)).map((z) => {
31513
31513
  let R = "";
31514
31514
  const B = z.props;
31515
31515
  return R = [
@@ -31539,7 +31539,7 @@ const It = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
31539
31539
  const z = [...v];
31540
31540
  let R = -1, B = -1;
31541
31541
  if (z.forEach((A, q) => {
31542
- if (re.isValidElement(A.node)) {
31542
+ if (ce.isValidElement(A.node)) {
31543
31543
  const D = A.node.props;
31544
31544
  D.uniqueKey === $ && (R = q), D.uniqueKey === I && (B = q);
31545
31545
  }
@@ -31602,8 +31602,8 @@ const It = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
31602
31602
  };
31603
31603
  P2e.displayName = "Grid";
31604
31604
  const MC = ({ imagePath: e, ...t }) => {
31605
- const [n, o] = re.useState(!1);
31606
- return re.useEffect(() => {
31605
+ const [n, o] = ce.useState(!1);
31606
+ return ce.useEffect(() => {
31607
31607
  o(!0);
31608
31608
  }, []), n ? /* @__PURE__ */ c("div", { className: `logo logo--${t.size}`, children: /* @__PURE__ */ c("a", { href: "/", children: /* @__PURE__ */ c("img", { src: e, alt: "Saniia Smart Bed Management", className: "logo-image" }) }) }) : /* @__PURE__ */ c("div", { className: "logo logo-placeholder" });
31609
31609
  }, xN = ({
@@ -31651,7 +31651,7 @@ const MC = ({ imagePath: e, ...t }) => {
31651
31651
  moduleConfig: o = {},
31652
31652
  dropdownPosition: i = "auto"
31653
31653
  }) => {
31654
- const { activeNav: r } = At(), [s, d] = P(!0), [l, h] = P(!1), [p, u] = P("left"), y = G(null), m = G(null), g = G(null);
31654
+ const { activeNav: r } = At(), [s, d] = P(!0), [l, h] = P(!1), [p, u] = P("left"), y = K(null), m = K(null), g = K(null);
31655
31655
  E(() => {
31656
31656
  const v = () => {
31657
31657
  if (y.current && y.current.parentElement) {
@@ -32499,7 +32499,7 @@ const bMe = ({
32499
32499
  ] });
32500
32500
  }, bC = Qe({});
32501
32501
  function Zt(e) {
32502
- const t = G(null);
32502
+ const t = K(null);
32503
32503
  return t.current === null && (t.current = e()), t.current;
32504
32504
  }
32505
32505
  const wC = typeof window < "u", LC = wC ? Y$ : E, Ib = /* @__PURE__ */ Qe(null);
@@ -34405,7 +34405,7 @@ class rle extends ae.Component {
34405
34405
  }
34406
34406
  }
34407
34407
  function sle({ children: e, isPresent: t, anchorX: n, root: o }) {
34408
- const i = vC(), r = G(null), s = G({
34408
+ const i = vC(), r = K(null), s = K({
34409
34409
  width: 0,
34410
34410
  height: 0,
34411
34411
  top: 0,
@@ -34479,7 +34479,7 @@ function QN(e) {
34479
34479
  }), t;
34480
34480
  }
34481
34481
  const hle = ({ children: e, custom: t, initial: n = !0, onExitComplete: o, presenceAffectsLayout: i = !0, mode: r = "sync", propagate: s = !1, anchorX: d = "left", root: l }) => {
34482
- const [h, p] = Qq(s), u = Me(() => QN(e), [e]), y = s && !h ? [] : u.map(mc), m = G(!0), g = G(u), k = Zt(() => /* @__PURE__ */ new Map()), [_, M] = P(u), [v, w] = P(u);
34482
+ const [h, p] = Qq(s), u = Me(() => QN(e), [e]), y = s && !h ? [] : u.map(mc), m = K(!0), g = K(u), k = Zt(() => /* @__PURE__ */ new Map()), [_, M] = P(u), [v, w] = P(u);
34483
34483
  LC(() => {
34484
34484
  m.current = !1, g.current = u;
34485
34485
  for (let C = 0; C < v.length; C++) {
@@ -34914,7 +34914,7 @@ function jle(e, t, n) {
34914
34914
  }
34915
34915
  const eN = (e) => e.replace(/([a-z])([A-Z])/gu, "$1-$2").toLowerCase(), Tle = "framerAppearId", lA = "data-" + eN(Tle), hA = Qe({});
34916
34916
  function Hle(e, t, n, o, i) {
34917
- const { visualElement: r } = be($b), s = be(eA), d = be(Ib), l = be(Sb).reducedMotion, h = G(null);
34917
+ const { visualElement: r } = be($b), s = be(eA), d = be(Ib), l = be(Sb).reducedMotion, h = K(null);
34918
34918
  o = o || s.renderer, !h.current && o && (h.current = o(e, {
34919
34919
  visualState: t,
34920
34920
  parent: r,
@@ -34925,11 +34925,11 @@ function Hle(e, t, n, o, i) {
34925
34925
  }));
34926
34926
  const p = h.current, u = be(hA);
34927
34927
  p && !p.projection && i && (p.type === "html" || p.type === "svg") && Dle(h.current, n, i, u);
34928
- const y = G(!1);
34928
+ const y = K(!1);
34929
34929
  J$(() => {
34930
34930
  p && y.current && p.update(n, d);
34931
34931
  });
34932
- const m = n[lA], g = G(!!m && !window.MotionHandoffIsComplete?.(m) && window.MotionHasOptimisedAnimation?.(m));
34932
+ const m = n[lA], g = K(!!m && !window.MotionHandoffIsComplete?.(m) && window.MotionHasOptimisedAnimation?.(m));
34933
34933
  return LC(() => {
34934
34934
  p && (y.current = !0, window.MotionIsMounted = !0, p.updateFeatures(), p.scheduleRenderMicrotask(), g.current && p.animationState && p.animationState.animateChanges());
34935
34935
  }), E(() => {
@@ -35724,8 +35724,8 @@ function xhe(e) {
35724
35724
  if (typeof q == "string" && o && !j && e.manuallyAnimateOnMount && e.parent) {
35725
35725
  const { parent: F } = e, V = ki(F, q);
35726
35726
  if (F.enteringChildren && V) {
35727
- const { delayChildren: W } = V.transition || {};
35728
- D.delay = bA(F.enteringChildren, e, W);
35727
+ const { delayChildren: G } = V.transition || {};
35728
+ D.delay = bA(F.enteringChildren, e, G);
35729
35729
  }
35730
35730
  }
35731
35731
  return {
@@ -37422,7 +37422,7 @@ function Zpe(e, t, n, o) {
37422
37422
  return r === 1 && d.layout.max + n > h || r === -1 && d.layout.min + n < h ? s0e(e, i, i + r) : e;
37423
37423
  }
37424
37424
  function Xpe({ children: e, as: t = "ul", axis: n = "y", onReorder: o, values: i, ...r }, s) {
37425
- const d = Zt(() => aN[t]), l = [], h = G(!1);
37425
+ const d = Zt(() => aN[t]), l = [], h = K(!1);
37426
37426
  kt(!!i, "Reorder.Group must be provided a values prop", "reorder-values");
37427
37427
  const p = {
37428
37428
  axis: n,
@@ -37935,7 +37935,7 @@ const pue = "_formContainer_14ads_1", uue = "_headerLine_14ads_17", yue = "_form
37935
37935
  error: i,
37936
37936
  touched: r
37937
37937
  }) => {
37938
- const s = G(null), [d, l] = P(!1), h = (_) => {
37938
+ const s = K(null), [d, l] = P(!1), h = (_) => {
37939
37939
  n(_.target.files);
37940
37940
  }, p = () => {
37941
37941
  s.current && s.current.click();
@@ -39364,7 +39364,7 @@ const J4e = /* @__PURE__ */ Kz(Y4e), SMe = ({
39364
39364
  cancelLabel: d = "Retour",
39365
39365
  cancelIcon: l
39366
39366
  }) => {
39367
- const [h, p] = P(t), [u, y] = P({}), [m, g] = P({}), [k, _] = P(!1), M = G(t);
39367
+ const [h, p] = P(t), [u, y] = P({}), [m, g] = P({}), [k, _] = P(!1), M = K(t);
39368
39368
  E(() => {
39369
39369
  J4e(M.current, t) || (p(t), M.current = t);
39370
39370
  }, [t]);
@@ -40100,14 +40100,14 @@ function Ske(e, t, n = "", o = { key: null, direction: "asc" }, i = 1, r = 10, s
40100
40100
  endIndex: g
40101
40101
  };
40102
40102
  }
40103
- const $ke = ({ value: e }) => e, qke = ({ value: e }) => re.createElement(
40103
+ const $ke = ({ value: e }) => e, qke = ({ value: e }) => ce.createElement(
40104
40104
  "a",
40105
40105
  {
40106
40106
  href: `mailto:${e}`,
40107
40107
  className: "email-link"
40108
40108
  },
40109
40109
  e
40110
- ), Ake = ({ value: e }) => re.createElement(
40110
+ ), Ake = ({ value: e }) => ce.createElement(
40111
40111
  "a",
40112
40112
  {
40113
40113
  href: String(e),
@@ -40125,24 +40125,24 @@ const $ke = ({ value: e }) => e, qke = ({ value: e }) => re.createElement(
40125
40125
  info: "info-badge",
40126
40126
  default: "default-badge"
40127
40127
  }, n = typeof e == "object" ? e.type : "default", o = typeof e == "object" ? e.text : e, i = t[n] || t.default;
40128
- return re.createElement("span", { className: `badge ${i}` }, o);
40128
+ return ce.createElement("span", { className: `badge ${i}` }, o);
40129
40129
  }, Vke = ({ value: e }) => {
40130
40130
  try {
40131
40131
  return new Date(e).toLocaleDateString();
40132
40132
  } catch {
40133
40133
  return String(e);
40134
40134
  }
40135
- }, Pke = ({ value: e }) => re.createElement("span", { className: "number-value" }, Number(e).toLocaleString()), jke = ({ value: e }) => re.createElement(
40135
+ }, Pke = ({ value: e }) => ce.createElement("span", { className: "number-value" }, Number(e).toLocaleString()), jke = ({ value: e }) => ce.createElement(
40136
40136
  "span",
40137
40137
  { className: "currency-value" },
40138
40138
  new Intl.NumberFormat("fr-FR", {
40139
40139
  style: "currency",
40140
40140
  currency: "EUR"
40141
40141
  }).format(Number(e))
40142
- ), Tke = ({ value: e }) => re.createElement(
40142
+ ), Tke = ({ value: e }) => ce.createElement(
40143
40143
  "div",
40144
40144
  { className: "image-container" },
40145
- re.createElement("img", {
40145
+ ce.createElement("img", {
40146
40146
  src: e,
40147
40147
  alt: "Table content",
40148
40148
  className: "table-image",
@@ -40160,9 +40160,9 @@ const $ke = ({ value: e }) => e, qke = ({ value: e }) => re.createElement(
40160
40160
  image: Tke
40161
40161
  },
40162
40162
  icons: {
40163
- sortAsc: re.createElement(O1, { className: "sort-icon active", size: 14 }),
40164
- sortDesc: re.createElement(Gt, { className: "sort-icon active", size: 14 }),
40165
- sortDefault: re.createElement(pi, { className: "sort-icon", size: 14 })
40163
+ sortAsc: ce.createElement(O1, { className: "sort-icon active", size: 14 }),
40164
+ sortDesc: ce.createElement(Gt, { className: "sort-icon active", size: 14 }),
40165
+ sortDefault: ce.createElement(pi, { className: "sort-icon", size: 14 })
40166
40166
  }
40167
40167
  }, qMe = (e, t) => {
40168
40168
  A$.renderers[e] && console.warn(`Le renderer "${e}" existe déjà et sera écrasé.`), A$.renderers[e] = t;
@@ -40190,7 +40190,7 @@ const $ke = ({ value: e }) => e, qke = ({ value: e }) => re.createElement(
40190
40190
  onFiltersChange: n,
40191
40191
  onApply: o,
40192
40192
  isControlled: i
40193
- }), b = G(null), $ = G(null);
40193
+ }), b = K(null), $ = K(null);
40194
40194
  E(() => {
40195
40195
  if (v && b.current) {
40196
40196
  const j = b.current.getBoundingClientRect().height;
@@ -40334,7 +40334,7 @@ const $ke = ({ value: e }) => e, qke = ({ value: e }) => re.createElement(
40334
40334
  label: o = "Sort",
40335
40335
  loading: i = !1
40336
40336
  }) => {
40337
- const [r, s] = P(!1), d = e.filter((g) => g.sortable), l = G(null), h = t?.key !== null && t?.key !== void 0, p = (g, k) => {
40337
+ const [r, s] = P(!1), d = e.filter((g) => g.sortable), l = K(null), h = t?.key !== null && t?.key !== void 0, p = (g, k) => {
40338
40338
  n({ key: g, direction: k }), s(!1);
40339
40339
  }, u = () => {
40340
40340
  n({ key: null, direction: "asc" }), s(!1);
@@ -40646,12 +40646,12 @@ const $ke = ({ value: e }) => e, qke = ({ value: e }) => re.createElement(
40646
40646
  sortLoading: S = !1,
40647
40647
  totalCount: z = null
40648
40648
  }) => {
40649
- const [R, B] = P({ key: null, direction: "asc" }), [j, A] = P(n.currentPage ?? 1), [q, D] = P(n.pageSize ?? 10), [F, V] = P(!1), W = G(null), [Q, le] = P([]), ie = u ? d : Q, xe = u ? [] : Q;
40649
+ const [R, B] = P({ key: null, direction: "asc" }), [j, A] = P(n.currentPage ?? 1), [q, D] = P(n.pageSize ?? 10), [F, V] = P(!1), G = K(null), [Q, le] = P([]), ie = u ? d : Q, xe = u ? [] : Q;
40650
40650
  E(() => {
40651
- const ke = n.currentPage ?? 1, Pt = n.pageSize ?? 10;
40652
- ke !== j && A(ke), Pt !== q && D(Pt);
40651
+ const ye = n.currentPage ?? 1, Pt = n.pageSize ?? 10;
40652
+ ye !== j && A(ye), Pt !== q && D(Pt);
40653
40653
  }, [n.currentPage, n.pageSize]);
40654
- const { paginatedData: ye, sortedData: Ae, totalPages: ce, startIndex: ne } = Ske(
40654
+ const { paginatedData: ue, sortedData: Ae, totalPages: se, startIndex: ne } = Ske(
40655
40655
  t,
40656
40656
  e,
40657
40657
  i,
@@ -40660,27 +40660,27 @@ const $ke = ({ value: e }) => e, qke = ({ value: e }) => re.createElement(
40660
40660
  q,
40661
40661
  xe
40662
40662
  ), oe = Ae.length, he = typeof z == "number" && z >= 0 ? z : oe;
40663
- let fe = ce;
40664
- typeof z == "number" && z >= 0 && (fe = Math.max(1, Math.ceil(z / q)));
40665
- const pe = oe > 10;
40663
+ let ke = se;
40664
+ typeof z == "number" && z >= 0 && (ke = Math.max(1, Math.ceil(z / q)));
40665
+ const fe = oe > 10;
40666
40666
  E(() => {
40667
- const ke = Math.max(1, Math.floor(fe));
40668
- j > ke && A(ke), j < 1 && A(1);
40669
- }, [fe]);
40670
- const X = (ke) => {
40671
- u || le(ke), l?.(ke), A(1), _?.(1);
40672
- }, Y = (ke) => {
40673
- u || le(ke), h?.(ke), A(1), _?.(1), W.current && W.current.style.setProperty("--filters-panel-height", "0px");
40674
- }, se = (ke) => {
40675
- _?.(ke), A(ke);
40676
- }, je = (ke) => {
40677
- D(ke), A(1), k?.(ke), _?.(1);
40678
- }, Re = (ke) => {
40679
- W.current && W.current.style.setProperty("--filters-panel-height", `${Math.round(ke)}px`);
40680
- }, Le = (ke) => {
40681
- B(ke), p?.(ke);
40682
- }, Oe = (ke) => {
40683
- V(ke), !ke && W.current && W.current.style.setProperty("--filters-panel-height", "0px");
40667
+ const ye = Math.max(1, Math.floor(ke));
40668
+ j > ye && A(ye), j < 1 && A(1);
40669
+ }, [ke]);
40670
+ const W = (ye) => {
40671
+ u || le(ye), l?.(ye), A(1), _?.(1);
40672
+ }, Y = (ye) => {
40673
+ u || le(ye), h?.(ye), A(1), _?.(1), G.current && G.current.style.setProperty("--filters-panel-height", "0px");
40674
+ }, re = (ye) => {
40675
+ _?.(ye), A(ye);
40676
+ }, je = (ye) => {
40677
+ D(ye), A(1), k?.(ye), _?.(1);
40678
+ }, Re = (ye) => {
40679
+ G.current && G.current.style.setProperty("--filters-panel-height", `${Math.round(ye)}px`);
40680
+ }, Le = (ye) => {
40681
+ B(ye), p?.(ye);
40682
+ }, Oe = (ye) => {
40683
+ V(ye), !ye && G.current && G.current.style.setProperty("--filters-panel-height", "0px");
40684
40684
  };
40685
40685
  E(() => {
40686
40686
  (ie?.length ?? 0) > 0 && V(!0);
@@ -40691,7 +40691,7 @@ const $ke = ({ value: e }) => e, qke = ({ value: e }) => re.createElement(
40691
40691
  return /* @__PURE__ */ f(
40692
40692
  "div",
40693
40693
  {
40694
- ref: W,
40694
+ ref: G,
40695
40695
  className: `${T.container} ${r} ${F ? T.filtersOpen : ""}`,
40696
40696
  style: {
40697
40697
  background: g,
@@ -40715,7 +40715,7 @@ const $ke = ({ value: e }) => e, qke = ({ value: e }) => re.createElement(
40715
40715
  {
40716
40716
  filters: s,
40717
40717
  externalFilters: ie,
40718
- onFiltersChange: X,
40718
+ onFiltersChange: W,
40719
40719
  onApply: Y,
40720
40720
  isControlled: u,
40721
40721
  debounceTimeout: y,
@@ -40736,11 +40736,11 @@ const $ke = ({ value: e }) => e, qke = ({ value: e }) => re.createElement(
40736
40736
  Bke,
40737
40737
  {
40738
40738
  currentPage: j,
40739
- totalPages: fe,
40739
+ totalPages: ke,
40740
40740
  pageSize: q,
40741
40741
  totalItems: he,
40742
40742
  itemLabel: M,
40743
- onPageChange: se,
40743
+ onPageChange: re,
40744
40744
  onPageSizeChange: je,
40745
40745
  loading: $
40746
40746
  }
@@ -40748,14 +40748,14 @@ const $ke = ({ value: e }) => e, qke = ({ value: e }) => re.createElement(
40748
40748
  /* @__PURE__ */ c(
40749
40749
  "div",
40750
40750
  {
40751
- className: `${T.tableWrapper} ${pe ? T.limitedRows : ""}`,
40751
+ className: `${T.tableWrapper} ${fe ? T.limitedRows : ""}`,
40752
40752
  "data-table-wrapper": !0,
40753
40753
  children: /* @__PURE__ */ f("table", { className: T.table, children: [
40754
40754
  /* @__PURE__ */ c(Eke, { columns: e }),
40755
40755
  /* @__PURE__ */ c(
40756
40756
  Wke,
40757
40757
  {
40758
- data: ye,
40758
+ data: ue,
40759
40759
  columns: e,
40760
40760
  onRowClick: o,
40761
40761
  startIndex: ne,
@@ -41007,7 +41007,7 @@ const zMe = ({
41007
41007
  border: `1px solid ${R1(u ?? o ?? "#7c3aed", 0.18)}`,
41008
41008
  color: u ?? "#ffffff"
41009
41009
  },
41010
- children: re.createElement(h, {
41010
+ children: ce.createElement(h, {
41011
41011
  size: 20,
41012
41012
  color: u ?? "#fff",
41013
41013
  strokeWidth: 1.8
@@ -41040,7 +41040,7 @@ const zMe = ({
41040
41040
  ) : e.hint ? /* @__PURE__ */ c("div", { className: te.mpHint, children: e.hint }) : null
41041
41041
  ] })
41042
41042
  ] });
41043
- }, H3e = re.memo(T3e), V$ = ({ title: e, right: t }) => !e && !t ? null : /* @__PURE__ */ f("div", { className: te.mpHeader, children: [
41043
+ }, H3e = ce.memo(T3e), V$ = ({ title: e, right: t }) => !e && !t ? null : /* @__PURE__ */ f("div", { className: te.mpHeader, children: [
41044
41044
  /* @__PURE__ */ c("div", { className: te.mpTitle, children: e }),
41045
41045
  /* @__PURE__ */ c("div", { children: t })
41046
41046
  ] }), P$ = (e, t = 1) => {
@@ -41084,7 +41084,7 @@ const zMe = ({
41084
41084
  border: `1px solid ${P$(e.iconColor ?? "#7c3aed", 0.12)}`,
41085
41085
  boxShadow: "none"
41086
41086
  },
41087
- children: e.iconComponent ? re.createElement(e.iconComponent, {
41087
+ children: e.iconComponent ? ce.createElement(e.iconComponent, {
41088
41088
  size: 18,
41089
41089
  color: e.iconColor ?? "#7c3aed",
41090
41090
  strokeWidth: 1.6
@@ -41281,16 +41281,16 @@ const zMe = ({
41281
41281
  } catch {
41282
41282
  }
41283
41283
  try {
41284
- return re.createElement(e, { item: t });
41284
+ return ce.createElement(e, { item: t });
41285
41285
  } catch (n) {
41286
41286
  return console.warn("chooseDefaultRender: impossible de rendre CompactRenderer", n), null;
41287
41287
  }
41288
41288
  }, R3e = (e) => {
41289
41289
  switch (e) {
41290
41290
  case "image":
41291
- return (t) => re.createElement(D3e, { item: t });
41291
+ return (t) => ce.createElement(D3e, { item: t });
41292
41292
  case "pertinence":
41293
- return (t) => re.createElement(B3e, { item: t });
41293
+ return (t) => ce.createElement(B3e, { item: t });
41294
41294
  case "alternateHorizontal":
41295
41295
  return (t) => H$(T$, t);
41296
41296
  case "compact":
@@ -41401,7 +41401,7 @@ const zMe = ({
41401
41401
  className: `${A} ${L ?? ""}`,
41402
41402
  style: D,
41403
41403
  children: t.length === 0 ? /* @__PURE__ */ c("div", { className: te.mpEmpty, children: u }) : t.map((F, V) => {
41404
- const W = F.bgColor ?? g[V % g.length], Q = F.borderColor ?? k[V % k.length], le = F.valueColor ?? _[V % _.length];
41404
+ const G = F.bgColor ?? g[V % g.length], Q = F.borderColor ?? k[V % k.length], le = F.valueColor ?? _[V % _.length];
41405
41405
  return j ? /* @__PURE__ */ c(
41406
41406
  "div",
41407
41407
  {
@@ -41419,7 +41419,7 @@ const zMe = ({
41419
41419
  {
41420
41420
  item: F,
41421
41421
  orientation: o === "horizontal" ? "horizontal" : "vertical",
41422
- bg: W,
41422
+ bg: G,
41423
41423
  border: Q,
41424
41424
  valueColor: le,
41425
41425
  onClick: l,
@@ -41464,7 +41464,7 @@ const zMe = ({
41464
41464
  }) })
41465
41465
  ] });
41466
41466
  };
41467
- re.memo(G3e);
41467
+ ce.memo(G3e);
41468
41468
  const VMe = ({
41469
41469
  a11yConfig: e,
41470
41470
  width: t,
@@ -41481,7 +41481,7 @@ const VMe = ({
41481
41481
  titleKey: y,
41482
41482
  leftTitleKey: m
41483
41483
  }) => {
41484
- const g = t ? typeof t == "number" ? `${t}px` : t : void 0, k = n ? typeof n == "number" ? `${n}px` : n : void 0, _ = r && typeof r == "object" && !re.isValidElement(r) && ("text" in r || "subtext" in r || "icon" in r || "background" in r || "iconSize" in r), M = _ ? r : void 0, v = M?.icon ? It[M.icon] : void 0, w = 28, L = M?.iconSize ?? w, N = [
41484
+ const g = t ? typeof t == "number" ? `${t}px` : t : void 0, k = n ? typeof n == "number" ? `${n}px` : n : void 0, _ = r && typeof r == "object" && !ce.isValidElement(r) && ("text" in r || "subtext" in r || "icon" in r || "background" in r || "iconSize" in r), M = _ ? r : void 0, v = M?.icon ? It[M.icon] : void 0, w = 28, L = M?.iconSize ?? w, N = [
41485
41485
  "chart-container",
41486
41486
  `variant-${p}`,
41487
41487
  u ? "with-border" : "",
@@ -41637,7 +41637,7 @@ const VMe = ({
41637
41637
  containerClassName: o,
41638
41638
  containerStyle: i
41639
41639
  }) => {
41640
- const [r, s] = P([]), d = G(/* @__PURE__ */ new Map()), l = G(null), h = G(null), p = G(n);
41640
+ const [r, s] = P([]), d = K(/* @__PURE__ */ new Map()), l = K(null), h = K(null), p = K(n);
41641
41641
  E(() => () => {
41642
41642
  d.current.forEach((x) => window.clearTimeout(x)), d.current.clear();
41643
41643
  }, []);
@@ -41831,7 +41831,7 @@ const VMe = ({
41831
41831
  closeOnOverlayClick: p = !0,
41832
41832
  showCloseButton: u = !0
41833
41833
  }, y) => {
41834
- const [m, g] = P(!1), [k, _] = P(!1), M = G(null), v = G(null), w = G(null), L = G(null);
41834
+ const [m, g] = P(!1), [k, _] = P(!1), M = K(null), v = K(null), w = K(null), L = K(null);
41835
41835
  E(() => {
41836
41836
  const x = M.current;
41837
41837
  if (!x) return;
@@ -41945,7 +41945,7 @@ const VMe = ({
41945
41945
  }
41946
41946
  );
41947
41947
  function BMe(e) {
41948
- const t = G("");
41948
+ const t = K("");
41949
41949
  E(() => {
41950
41950
  if (e) {
41951
41951
  t.current = document.body.style.overflow, document.body.style.overflow = "hidden";
@@ -41994,7 +41994,7 @@ const Q3e = "_container_1pfsp_1", eme = "_title_1pfsp_8", D$ = {
41994
41994
  confirmText: h = "Valider",
41995
41995
  cancelText: p = "Annuler"
41996
41996
  }) => {
41997
- const [u, y] = P({}), m = G(null), [g, k] = P(!1), [_, M] = P(!1), v = G(null);
41997
+ const [u, y] = P({}), m = K(null), [g, k] = P(!1), [_, M] = P(!1), v = K(null);
41998
41998
  if (E(() => {
41999
41999
  if (!e) return;
42000
42000
  const x = {};
@@ -42282,19 +42282,19 @@ const Q3e = "_container_1pfsp_1", eme = "_title_1pfsp_8", D$ = {
42282
42282
  }) => {
42283
42283
  const [p, u] = P(!1), [y, m] = P(""), [g, k] = P(null), [_, M] = P(""), [v, w] = P(""), [L, N] = P(!1), [C, x] = P(!1), [b, $] = P(null), [I, S] = P(!1), z = t.map((V) => V.language), R = n.filter((V) => !z.includes(V.code)), B = () => {
42284
42284
  y && v.trim() && (d?.(e, y, v.trim()), m(""), w(""), u(!1));
42285
- }, j = (V, W) => {
42286
- k(V), M(W);
42285
+ }, j = (V, G) => {
42286
+ k(V), M(G);
42287
42287
  }, A = (V) => {
42288
42288
  r?.(e, V, _), k(null), M("");
42289
42289
  }, q = () => {
42290
42290
  k(null), M("");
42291
42291
  }, D = async (V) => {
42292
- const W = V.name?.trim();
42293
- if (W) {
42294
- if ($(null), S(!1), W === e || !i)
42292
+ const G = V.name?.trim();
42293
+ if (G) {
42294
+ if ($(null), S(!1), G === e || !i)
42295
42295
  return N(!1), "ok";
42296
42296
  try {
42297
- const Q = await i(e, W);
42297
+ const Q = await i(e, G);
42298
42298
  if (typeof Q == "string" && Q === "ok")
42299
42299
  N(!1), $(null);
42300
42300
  else {
@@ -42308,9 +42308,9 @@ const Q3e = "_container_1pfsp_1", eme = "_title_1pfsp_8", D$ = {
42308
42308
  console.error("Erreur handleRenameSave:", Q), $("Erreur lors du renommage.");
42309
42309
  }
42310
42310
  }
42311
- }, F = (V, W) => {
42311
+ }, F = (V, G) => {
42312
42312
  if (V !== "name") return;
42313
- const Q = W.trim();
42313
+ const Q = G.trim();
42314
42314
  $(null), S(!1), Q && typeof h == "function" && (h(Q, e) ? ($("Une clé existe déjà dans ce module."), S(!0)) : ($(null), S(!1)));
42315
42315
  };
42316
42316
  return /* @__PURE__ */ f(
@@ -42365,11 +42365,11 @@ const Q3e = "_container_1pfsp_1", eme = "_title_1pfsp_8", D$ = {
42365
42365
  {
42366
42366
  type: "text",
42367
42367
  value: _,
42368
- onChange: (W) => M(W.target.value),
42368
+ onChange: (G) => M(G.target.value),
42369
42369
  className: "edit-input",
42370
42370
  autoFocus: !0,
42371
- onKeyDown: (W) => {
42372
- W.key === "Enter" && A(V.language), W.key === "Escape" && q();
42371
+ onKeyDown: (G) => {
42372
+ G.key === "Enter" && A(V.language), G.key === "Escape" && q();
42373
42373
  }
42374
42374
  }
42375
42375
  ),
@@ -42511,7 +42511,7 @@ const Q3e = "_container_1pfsp_1", eme = "_title_1pfsp_8", D$ = {
42511
42511
  searchIcon: Lme
42512
42512
  };
42513
42513
  function UMe({ onDateChange: e, onSearch: t, initialDate: n }) {
42514
- const [o, i] = P(!1), [r, s] = P(n ?? ""), d = G(null);
42514
+ const [o, i] = P(!1), [r, s] = P(n ?? ""), d = K(null);
42515
42515
  E(() => {
42516
42516
  function u(y) {
42517
42517
  const m = y.target;
@@ -42825,7 +42825,7 @@ const WMe = ({
42825
42825
  style: t = {},
42826
42826
  children: n,
42827
42827
  gap: o = "1rem"
42828
- }) => /* @__PURE__ */ c("div", { className: `frc-root ${e}`, style: { ...t, "--frc-gap": o }, children: re.Children.map(n, (i) => /* @__PURE__ */ c("div", { className: "frc-item", children: i })) }), XMe = ({
42828
+ }) => /* @__PURE__ */ c("div", { className: `frc-root ${e}`, style: { ...t, "--frc-gap": o }, children: ce.Children.map(n, (i) => /* @__PURE__ */ c("div", { className: "frc-item", children: i })) }), XMe = ({
42829
42829
  className: e = "",
42830
42830
  style: t = {},
42831
42831
  children: n,
@@ -42840,7 +42840,7 @@ const WMe = ({
42840
42840
  ...t,
42841
42841
  "--lcc-gap": o
42842
42842
  },
42843
- children: re.Children.map(n, (r) => /* @__PURE__ */ c("div", { className: "lcc-cell", children: r }))
42843
+ children: ce.Children.map(n, (r) => /* @__PURE__ */ c("div", { className: "lcc-cell", children: r }))
42844
42844
  }
42845
42845
  ), Cme = "_overlay_3x4or_2", Nme = "_fadeIn_3x4or_1", Ime = "_popup_3x4or_17", Sme = "_slideUp_3x4or_1", $me = "_header_3x4or_28", qme = "_body_3x4or_40", Ame = "_footer_3x4or_51", zme = "_cancelButton_3x4or_59", Vme = "_confirmButton_3x4or_77", Pme = "_warning_3x4or_97", jme = "_danger_3x4or_106", Tme = "_info_3x4or_115", Ht = {
42846
42846
  overlay: Cme,
@@ -42920,7 +42920,7 @@ const WMe = ({
42920
42920
  hideConfirmation: o,
42921
42921
  handleConfirm: i
42922
42922
  };
42923
- }, Hme = "_container_1l44m_1", Dme = "_selectButton_1l44m_7", Bme = "_disabled_1l44m_22", Rme = "_error_1l44m_39", Fme = "_outline_1l44m_52", Eme = "_filled_1l44m_58", Ome = "_sm_1l44m_67", Ume = "_md_1l44m_73", Wme = "_lg_1l44m_79", Gme = "_buttonContent_1l44m_85", Kme = "_label_1l44m_93", Zme = "_placeholder_1l44m_103", Xme = "_iconsContainer_1l44m_108", Yme = "_loadingSpinner_1l44m_115", Jme = "_spin_1l44m_1", Qme = "_arrowIcon_1l44m_133", e6e = "_arrowIconOpen_1l44m_141", t6e = "_dropdown_1l44m_146", a6e = "_dropdownIn_1l44m_1", n6e = "_searchContainer_1l44m_171", o6e = "_searchInputWrapper_1l44m_177", i6e = "_searchIcon_1l44m_183", c6e = "_searchInput_1l44m_177", r6e = "_optionsList_1l44m_208", s6e = "_noResults_1l44m_231", d6e = "_option_1l44m_208", l6e = "_optionHighlighted_1l44m_261", h6e = "_optionSelected_1l44m_266", p6e = "_optionDisabled_1l44m_277", u6e = "_optionLabel_1l44m_283", y6e = "_checkIcon_1l44m_291", k6e = "_widthFull_1l44m_299", m6e = "_width64_1l44m_302", f6e = "_width80_1l44m_305", g6e = "_width96_1l44m_308", ue = {
42923
+ }, Hme = "_container_1l44m_1", Dme = "_selectButton_1l44m_7", Bme = "_disabled_1l44m_22", Rme = "_error_1l44m_39", Fme = "_outline_1l44m_52", Eme = "_filled_1l44m_58", Ome = "_sm_1l44m_67", Ume = "_md_1l44m_73", Wme = "_lg_1l44m_79", Gme = "_buttonContent_1l44m_85", Kme = "_label_1l44m_93", Zme = "_placeholder_1l44m_103", Xme = "_iconsContainer_1l44m_108", Yme = "_loadingSpinner_1l44m_115", Jme = "_spin_1l44m_1", Qme = "_arrowIcon_1l44m_133", e6e = "_arrowIconOpen_1l44m_141", t6e = "_dropdown_1l44m_146", a6e = "_dropdownIn_1l44m_1", n6e = "_searchContainer_1l44m_171", o6e = "_searchInputWrapper_1l44m_177", i6e = "_searchIcon_1l44m_183", c6e = "_searchInput_1l44m_177", r6e = "_optionsList_1l44m_208", s6e = "_noResults_1l44m_231", d6e = "_option_1l44m_208", l6e = "_optionHighlighted_1l44m_261", h6e = "_optionSelected_1l44m_266", p6e = "_optionDisabled_1l44m_277", u6e = "_optionLabel_1l44m_283", y6e = "_checkIcon_1l44m_291", k6e = "_widthFull_1l44m_299", m6e = "_width64_1l44m_302", f6e = "_width80_1l44m_305", g6e = "_width96_1l44m_308", pe = {
42924
42924
  container: Hme,
42925
42925
  selectButton: Dme,
42926
42926
  disabled: Bme,
@@ -42970,7 +42970,7 @@ const WMe = ({
42970
42970
  variant: h = "default",
42971
42971
  width: p = "w-full"
42972
42972
  }) => {
42973
- const [u, y] = P(!1), [m, g] = P(""), [k, _] = P(0), [M, v] = P({ top: 0, left: 0, width: 0 }), w = G(null), L = G(null), N = G(null), C = Me(() => m ? e.filter(
42973
+ const [u, y] = P(!1), [m, g] = P(""), [k, _] = P(0), [M, v] = P({ top: 0, left: 0, width: 0 }), w = K(null), L = K(null), N = K(null), C = Me(() => m ? e.filter(
42974
42974
  (A) => A.label.toLowerCase().includes(m.toLowerCase())
42975
42975
  ) : e, [e, m]), x = e.find((A) => A.value === t), b = De(() => {
42976
42976
  if (w.current) {
@@ -43016,28 +43016,28 @@ const WMe = ({
43016
43016
  break;
43017
43017
  }
43018
43018
  }, z = () => [
43019
- ue.selectButton,
43020
- ue[l],
43021
- ue[h],
43022
- i ? ue.disabled : "",
43023
- s ? ue.error : "",
43019
+ pe.selectButton,
43020
+ pe[l],
43021
+ pe[h],
43022
+ i ? pe.disabled : "",
43023
+ s ? pe.error : "",
43024
43024
  d
43025
43025
  ].filter(Boolean).join(" "), R = () => {
43026
43026
  switch (p) {
43027
43027
  case "w-64":
43028
- return ue.width64;
43028
+ return pe.width64;
43029
43029
  case "w-80":
43030
- return ue.width80;
43030
+ return pe.width80;
43031
43031
  case "w-96":
43032
- return ue.width96;
43032
+ return pe.width96;
43033
43033
  default:
43034
- return ue.widthFull;
43034
+ return pe.widthFull;
43035
43035
  }
43036
43036
  }, B = (A, q) => [
43037
- ue.option,
43038
- q === k ? ue.optionHighlighted : "",
43039
- A.value === t ? ue.optionSelected : "",
43040
- A.disabled ? ue.optionDisabled : ""
43037
+ pe.option,
43038
+ q === k ? pe.optionHighlighted : "",
43039
+ A.value === t ? pe.optionSelected : "",
43040
+ A.disabled ? pe.optionDisabled : ""
43041
43041
  ].filter(Boolean).join(" "), j = {
43042
43042
  position: "fixed",
43043
43043
  top: M.top + (w.current?.offsetHeight || 0) + 4,
@@ -43045,7 +43045,7 @@ const WMe = ({
43045
43045
  width: M.width,
43046
43046
  zIndex: 9999
43047
43047
  };
43048
- return /* @__PURE__ */ f("div", { className: `${ue.container} ${R()}`, children: [
43048
+ return /* @__PURE__ */ f("div", { className: `${pe.container} ${R()}`, children: [
43049
43049
  /* @__PURE__ */ c(
43050
43050
  "button",
43051
43051
  {
@@ -43058,14 +43058,14 @@ const WMe = ({
43058
43058
  "aria-haspopup": "listbox",
43059
43059
  "aria-expanded": u,
43060
43060
  disabled: i,
43061
- children: /* @__PURE__ */ f("div", { className: ue.buttonContent, children: [
43062
- /* @__PURE__ */ c("span", { className: `${ue.label} ${x ? "" : ue.placeholder}`, children: x ? x.label : o }),
43063
- /* @__PURE__ */ f("div", { className: ue.iconsContainer, children: [
43064
- r && /* @__PURE__ */ c("div", { className: ue.loadingSpinner }),
43061
+ children: /* @__PURE__ */ f("div", { className: pe.buttonContent, children: [
43062
+ /* @__PURE__ */ c("span", { className: `${pe.label} ${x ? "" : pe.placeholder}`, children: x ? x.label : o }),
43063
+ /* @__PURE__ */ f("div", { className: pe.iconsContainer, children: [
43064
+ r && /* @__PURE__ */ c("div", { className: pe.loadingSpinner }),
43065
43065
  /* @__PURE__ */ c(
43066
43066
  "svg",
43067
43067
  {
43068
- className: `${ue.arrowIcon} ${u ? ue.arrowIconOpen : ""}`,
43068
+ className: `${pe.arrowIcon} ${u ? pe.arrowIconOpen : ""}`,
43069
43069
  fill: "none",
43070
43070
  stroke: "currentColor",
43071
43071
  viewBox: "0 0 24 24",
@@ -43088,15 +43088,15 @@ const WMe = ({
43088
43088
  /* @__PURE__ */ f(
43089
43089
  "div",
43090
43090
  {
43091
- className: `${ue.dropdown} ${R()}`,
43091
+ className: `${pe.dropdown} ${R()}`,
43092
43092
  style: j,
43093
43093
  ref: L,
43094
43094
  children: [
43095
- /* @__PURE__ */ c("div", { className: ue.searchContainer, children: /* @__PURE__ */ f("div", { className: ue.searchInputWrapper, children: [
43095
+ /* @__PURE__ */ c("div", { className: pe.searchContainer, children: /* @__PURE__ */ f("div", { className: pe.searchInputWrapper, children: [
43096
43096
  /* @__PURE__ */ c(
43097
43097
  "svg",
43098
43098
  {
43099
- className: ue.searchIcon,
43099
+ className: pe.searchIcon,
43100
43100
  fill: "none",
43101
43101
  stroke: "currentColor",
43102
43102
  viewBox: "0 0 24 24",
@@ -43119,12 +43119,12 @@ const WMe = ({
43119
43119
  value: m,
43120
43120
  onChange: I,
43121
43121
  placeholder: "Rechercher...",
43122
- className: ue.searchInput,
43122
+ className: pe.searchInput,
43123
43123
  autoFocus: !0
43124
43124
  }
43125
43125
  )
43126
43126
  ] }) }),
43127
- /* @__PURE__ */ c("div", { className: ue.optionsList, children: C.length === 0 ? /* @__PURE__ */ c("div", { className: ue.noResults, children: "Aucun résultat trouvé" }) : /* @__PURE__ */ c("ul", { role: "listbox", children: C.map((A, q) => /* @__PURE__ */ c(
43127
+ /* @__PURE__ */ c("div", { className: pe.optionsList, children: C.length === 0 ? /* @__PURE__ */ c("div", { className: pe.noResults, children: "Aucun résultat trouvé" }) : /* @__PURE__ */ c("ul", { role: "listbox", children: C.map((A, q) => /* @__PURE__ */ c(
43128
43128
  "li",
43129
43129
  {
43130
43130
  className: B(A, q),
@@ -43133,9 +43133,9 @@ const WMe = ({
43133
43133
  role: "option",
43134
43134
  "aria-selected": A.value === t,
43135
43135
  "aria-disabled": A.disabled,
43136
- children: /* @__PURE__ */ f("div", { className: ue.buttonContent, children: [
43137
- /* @__PURE__ */ c("span", { className: ue.optionLabel, title: A.label, children: A.label }),
43138
- A.value === t && /* @__PURE__ */ c("svg", { className: ue.checkIcon, fill: "currentColor", viewBox: "0 0 20 20", children: /* @__PURE__ */ c(
43136
+ children: /* @__PURE__ */ f("div", { className: pe.buttonContent, children: [
43137
+ /* @__PURE__ */ c("span", { className: pe.optionLabel, title: A.label, children: A.label }),
43138
+ A.value === t && /* @__PURE__ */ c("svg", { className: pe.checkIcon, fill: "currentColor", viewBox: "0 0 20 20", children: /* @__PURE__ */ c(
43139
43139
  "path",
43140
43140
  {
43141
43141
  fillRule: "evenodd",
@@ -43398,7 +43398,7 @@ const H6e = (e) => /* @__PURE__ */ ae.createElement("svg", { xmlns: "http://www.
43398
43398
  padding: "0 0 0.5rem 0"
43399
43399
  },
43400
43400
  children: [
43401
- /* @__PURE__ */ c("ul", { style: { listStyle: "none", padding: 0, margin: 0 }, children: m.map((L, N) => /* @__PURE__ */ f(re.Fragment, { children: [
43401
+ /* @__PURE__ */ c("ul", { style: { listStyle: "none", padding: 0, margin: 0 }, children: m.map((L, N) => /* @__PURE__ */ f(ce.Fragment, { children: [
43402
43402
  /* @__PURE__ */ f(
43403
43403
  "li",
43404
43404
  {
@@ -43933,7 +43933,7 @@ const H6e = (e) => /* @__PURE__ */ ae.createElement("svg", { xmlns: "http://www.
43933
43933
  tickFormatter: g,
43934
43934
  labelDataKey: k = "percentage"
43935
43935
  }) => {
43936
- const _ = (y.top ?? 20) + (y.bottom ?? 40) + e.length * (s + 20), M = Math.max(_, t), v = re.useMemo(() => {
43936
+ const _ = (y.top ?? 20) + (y.bottom ?? 40) + e.length * (s + 20), M = Math.max(_, t), v = ce.useMemo(() => {
43937
43937
  if (!e || e.length === 0) return d;
43938
43938
  const x = (parseFloat(l) || 12) * 0.7, $ = Math.max(...e.map((I) => (I.label || "").length)) * x + 16;
43939
43939
  return Math.min(Math.max($, 40), d);
@@ -44013,7 +44013,7 @@ const H6e = (e) => /* @__PURE__ */ ae.createElement("svg", { xmlns: "http://www.
44013
44013
  rowIcon: K8e
44014
44014
  }, Z8e = ic(
44015
44015
  function({ isVisible: t, onClose: n, items: o, style: i, position: r, bg: s }, d) {
44016
- const l = G(null), h = d || l;
44016
+ const l = K(null), h = d || l;
44017
44017
  if (E(() => {
44018
44018
  if (!t) return;
44019
44019
  const y = (m) => {
@@ -44083,8 +44083,8 @@ const H6e = (e) => /* @__PURE__ */ ae.createElement("svg", { xmlns: "http://www.
44083
44083
  style: x,
44084
44084
  className: b = ""
44085
44085
  }) => {
44086
- const { user: $ } = At(), I = e || $, { currentTheme: S, switchTheme: z } = xC(), R = G(null), B = G(null), [j, A] = P(!1), [q, D] = P({}), F = Me(() => {
44087
- const ne = [], oe = ({ variant: fe }) => fe === "sun" ? /* @__PURE__ */ c(
44086
+ const { user: $ } = At(), I = e || $, { currentTheme: S, switchTheme: z } = xC(), R = K(null), B = K(null), [j, A] = P(!1), [q, D] = P({}), F = Me(() => {
44087
+ const ne = [], oe = ({ variant: ke }) => ke === "sun" ? /* @__PURE__ */ c(
44088
44088
  "svg",
44089
44089
  {
44090
44090
  width: "16",
@@ -44146,18 +44146,18 @@ const H6e = (e) => /* @__PURE__ */ ae.createElement("svg", { xmlns: "http://www.
44146
44146
  i,
44147
44147
  r,
44148
44148
  z
44149
- ]), V = v ?? F, W = () => {
44149
+ ]), V = v ?? F, G = () => {
44150
44150
  if (!R.current) {
44151
44151
  A((ne) => !ne);
44152
44152
  return;
44153
44153
  }
44154
44154
  if (!j) {
44155
- const ne = R.current.getBoundingClientRect(), oe = window.innerWidth, he = window.innerHeight, fe = 200, pe = 200, X = 4, Y = L?.x ?? 0, se = L?.y ?? 0, Re = oe - ne.right >= fe + X;
44155
+ const ne = R.current.getBoundingClientRect(), oe = window.innerWidth, he = window.innerHeight, ke = 200, fe = 200, W = 4, Y = L?.x ?? 0, re = L?.y ?? 0, Re = oe - ne.right >= ke + W;
44156
44156
  D(Re ? {
44157
- top: ne.bottom - pe + se,
44158
- left: ne.right + X + Y
44157
+ top: ne.bottom - fe + re,
44158
+ left: ne.right + W + Y
44159
44159
  } : {
44160
- bottom: he - ne.top + se,
44160
+ bottom: he - ne.top + re,
44161
44161
  left: ne.left + Y
44162
44162
  });
44163
44163
  }
@@ -44166,13 +44166,13 @@ const H6e = (e) => /* @__PURE__ */ ae.createElement("svg", { xmlns: "http://www.
44166
44166
  if (E(() => {
44167
44167
  if (!j || !R.current) return;
44168
44168
  const ne = () => {
44169
- const oe = R.current.getBoundingClientRect(), he = window.innerWidth, fe = window.innerHeight, pe = 200, X = 200, Y = 4, se = L?.x ?? 0, je = L?.y ?? 0, Le = he - oe.right >= pe + Y;
44169
+ const oe = R.current.getBoundingClientRect(), he = window.innerWidth, ke = window.innerHeight, fe = 200, W = 200, Y = 4, re = L?.x ?? 0, je = L?.y ?? 0, Le = he - oe.right >= fe + Y;
44170
44170
  D(Le ? {
44171
- top: oe.bottom - X + je,
44172
- left: oe.right + Y + se
44171
+ top: oe.bottom - W + je,
44172
+ left: oe.right + Y + re
44173
44173
  } : {
44174
- bottom: fe - oe.top + je,
44175
- left: oe.left + se
44174
+ bottom: ke - oe.top + je,
44175
+ left: oe.left + re
44176
44176
  });
44177
44177
  };
44178
44178
  return window.addEventListener("resize", ne), window.addEventListener("orientationchange", ne), () => {
@@ -44181,17 +44181,17 @@ const H6e = (e) => /* @__PURE__ */ ae.createElement("svg", { xmlns: "http://www.
44181
44181
  }, [j, L]), E(() => {
44182
44182
  if (!j || !R.current || !B.current) return;
44183
44183
  const ne = () => {
44184
- const he = R.current.getBoundingClientRect(), fe = B.current.getBoundingClientRect(), pe = L?.x ?? 0, X = L?.y ?? 0;
44184
+ const he = R.current.getBoundingClientRect(), ke = B.current.getBoundingClientRect(), fe = L?.x ?? 0, W = L?.y ?? 0;
44185
44185
  D((Y) => Y.left !== void 0 && Y.top !== void 0 && Y.left >= he.right - 1 ? {
44186
- top: he.bottom - fe.height + X,
44187
- left: Y.left + pe
44186
+ top: he.bottom - ke.height + W,
44187
+ left: Y.left + fe
44188
44188
  } : Y);
44189
44189
  }, oe = requestAnimationFrame(() => {
44190
44190
  setTimeout(ne, 0);
44191
44191
  });
44192
44192
  return () => cancelAnimationFrame(oe);
44193
44193
  }, [j, L]), !I) return null;
44194
- const Q = I, le = parseInt(h, 10) || 40, ie = `${le * 0.375}px`, xe = `${le * 1.375}px`, ye = `${le * 0.2}px`, Ae = `${le * 0.6}px`, ce = () => {
44194
+ const Q = I, le = parseInt(h, 10) || 40, ie = `${le * 0.375}px`, xe = `${le * 1.375}px`, ue = `${le * 0.2}px`, Ae = `${le * 0.6}px`, se = () => {
44195
44195
  const ne = parseInt(h, 10) || 40, oe = Math.max(8, ne * 0.34375), he = Math.max(2, ne * 0.05);
44196
44196
  return /* @__PURE__ */ f(Ie, { children: [
44197
44197
  /* @__PURE__ */ f("div", { style: { position: "relative", flexShrink: 0, userSelect: "none" }, children: [
@@ -44230,7 +44230,7 @@ const H6e = (e) => /* @__PURE__ */ ae.createElement("svg", { xmlns: "http://www.
44230
44230
  borderRadius: "50%",
44231
44231
  backgroundColor: _,
44232
44232
  position: "absolute",
44233
- top: ye,
44233
+ top: ue,
44234
44234
  left: "50%",
44235
44235
  transform: "translateX(-50%)",
44236
44236
  zIndex: 2,
@@ -44328,11 +44328,11 @@ const H6e = (e) => /* @__PURE__ */ ae.createElement("svg", { xmlns: "http://www.
44328
44328
  userSelect: "none",
44329
44329
  ...x
44330
44330
  },
44331
- onClick: W,
44331
+ onClick: G,
44332
44332
  title: J(C, Q.role),
44333
44333
  role: "button",
44334
44334
  tabIndex: 0,
44335
- children: /* @__PURE__ */ c("div", { style: { display: "flex", alignItems: "center", gap: u, flex: 1, minWidth: 0 }, children: /* @__PURE__ */ c(ce, {}) })
44335
+ children: /* @__PURE__ */ c("div", { style: { display: "flex", alignItems: "center", gap: u, flex: 1, minWidth: 0 }, children: /* @__PURE__ */ c(se, {}) })
44336
44336
  }
44337
44337
  ),
44338
44338
  /* @__PURE__ */ c(
@@ -44478,7 +44478,7 @@ const H6e = (e) => /* @__PURE__ */ ae.createElement("svg", { xmlns: "http://www.
44478
44478
  collapseToggleLabel: F = "Toggle sidebar",
44479
44479
  collapseToggleIconPath: V = "/icon/dock_to_left.svg"
44480
44480
  }) => {
44481
- const W = At(), Q = W.activeNav, le = W.setActiveNav, ie = W.user, xe = $.user || ie;
44481
+ const G = At(), Q = G.activeNav, le = G.setActiveNav, ie = G.user, xe = $.user || ie;
44482
44482
  return A && q ? /* @__PURE__ */ c(
44483
44483
  "div",
44484
44484
  {
@@ -44521,12 +44521,12 @@ const H6e = (e) => /* @__PURE__ */ ae.createElement("svg", { xmlns: "http://www.
44521
44521
  }
44522
44522
  )
44523
44523
  ] }),
44524
- /* @__PURE__ */ c("div", { className: ct.sectionsContainer, style: { gap: i }, children: n.map((ye, Ae) => /* @__PURE__ */ f("div", { className: ct.section, children: [
44525
- ye.title && /* @__PURE__ */ c(
44524
+ /* @__PURE__ */ c("div", { className: ct.sectionsContainer, style: { gap: i }, children: n.map((ue, Ae) => /* @__PURE__ */ f("div", { className: ct.section, children: [
44525
+ ue.title && /* @__PURE__ */ c(
44526
44526
  "div",
44527
44527
  {
44528
44528
  className: ct.sectionTitle,
44529
- title: J(ye.a11yConfig, ye.titleKey),
44529
+ title: J(ue.a11yConfig, ue.titleKey),
44530
44530
  style: {
44531
44531
  fontSize: w,
44532
44532
  color: L,
@@ -44535,16 +44535,16 @@ const H6e = (e) => /* @__PURE__ */ ae.createElement("svg", { xmlns: "http://www.
44535
44535
  border: "4px solid transparent",
44536
44536
  ...p
44537
44537
  },
44538
- children: ye.title
44538
+ children: ue.title
44539
44539
  }
44540
44540
  ),
44541
- /* @__PURE__ */ c("div", { className: ct.sectionItems, style: { gap: r }, children: ye.items.map((ce) => /* @__PURE__ */ c(
44541
+ /* @__PURE__ */ c("div", { className: ct.sectionItems, style: { gap: r }, children: ue.items.map((se) => /* @__PURE__ */ c(
44542
44542
  az,
44543
44543
  {
44544
- ...ce,
44545
- isActive: ce.isActive === null ? ce.isActive : Q === ce.id,
44544
+ ...se,
44545
+ isActive: se.isActive === null ? se.isActive : Q === se.id,
44546
44546
  onClick: () => {
44547
- ce.onClick && ce.onClick(), ce.isActive == null && le(ce.id);
44547
+ se.onClick && se.onClick(), se.isActive == null && le(se.id);
44548
44548
  },
44549
44549
  highlightColor: d,
44550
44550
  activeColor: d,
@@ -44557,7 +44557,7 @@ const H6e = (e) => /* @__PURE__ */ ae.createElement("svg", { xmlns: "http://www.
44557
44557
  color: M,
44558
44558
  style: u
44559
44559
  },
44560
- ce.id
44560
+ se.id
44561
44561
  )) })
44562
44562
  ] }, Ae)) })
44563
44563
  ] }),
@@ -44763,7 +44763,7 @@ const H6e = (e) => /* @__PURE__ */ ae.createElement("svg", { xmlns: "http://www.
44763
44763
  iconGap: b = 14,
44764
44764
  borderRadius: $ = 0
44765
44765
  }) => {
44766
- const [I, S] = P(""), z = G(null);
44766
+ const [I, S] = P(""), z = K(null);
44767
44767
  E(() => {
44768
44768
  const B = (j) => {
44769
44769
  z.current && !z.current.contains(j.target) && S("");
@@ -44843,8 +44843,8 @@ const H6e = (e) => /* @__PURE__ */ ae.createElement("svg", { xmlns: "http://www.
44843
44843
  n?.(B.id, D.id), S("");
44844
44844
  },
44845
44845
  role: "menuitem",
44846
- onMouseEnter: (W) => {
44847
- F || (W.currentTarget.style.backgroundColor = y);
44846
+ onMouseEnter: (G) => {
44847
+ F || (G.currentTarget.style.backgroundColor = y);
44848
44848
  },
44849
44849
  children: [
44850
44850
  D.icon && /* @__PURE__ */ c(
@@ -44913,17 +44913,17 @@ const H6e = (e) => /* @__PURE__ */ ae.createElement("svg", { xmlns: "http://www.
44913
44913
  isMobile: D = !1,
44914
44914
  onNavigate: F
44915
44915
  }) => {
44916
- const { activeSubNav: V, setActiveSubNav: W, navCounts: Q, activeNav: le } = At();
44916
+ const { activeSubNav: V, setActiveSubNav: G, navCounts: Q, activeNav: le } = At();
44917
44917
  if (D) {
44918
- const ie = e.find((ye) => ye.id === V) || e[0], xe = [
44918
+ const ie = e.find((ue) => ue.id === V) || e[0], xe = [
44919
44919
  {
44920
44920
  id: "current-group",
44921
44921
  label: ie?.label || le?.toUpperCase() || "MENU",
44922
44922
  icon: ie?.icon,
44923
- items: e.map((ye) => ({
44924
- id: ye.id,
44925
- label: ye.label,
44926
- icon: ye.icon
44923
+ items: e.map((ue) => ({
44924
+ id: ue.id,
44925
+ label: ue.label,
44926
+ icon: ue.icon
44927
44927
  }))
44928
44928
  }
44929
44929
  ];
@@ -44932,9 +44932,9 @@ const H6e = (e) => /* @__PURE__ */ ae.createElement("svg", { xmlns: "http://www.
44932
44932
  {
44933
44933
  groups: xe,
44934
44934
  activeItemId: V,
44935
- onItemClick: (ye, Ae) => {
44936
- const ce = e.find((ne) => ne.id === Ae);
44937
- ce && (ce.onClick && ce.onClick(), ce.href && (F ? F(ce.href) : ce.onNavigate ? ce.onNavigate(ce.href) : window.location.href = ce.href), W(Ae));
44935
+ onItemClick: (ue, Ae) => {
44936
+ const se = e.find((ne) => ne.id === Ae);
44937
+ se && (se.onClick && se.onClick(), se.href && (F ? F(se.href) : se.onNavigate ? se.onNavigate(se.href) : window.location.href = se.href), G(Ae));
44938
44938
  },
44939
44939
  headerBgColor: t
44940
44940
  }
@@ -44961,16 +44961,16 @@ const H6e = (e) => /* @__PURE__ */ ae.createElement("svg", { xmlns: "http://www.
44961
44961
  className: `${OL.navContainer} ${S || ""}`,
44962
44962
  style: { gap: l, ...z },
44963
44963
  children: e.map((ie) => {
44964
- const xe = ie.count !== void 0 ? ie.count : Q[ie.id], ye = V === ie.id || ie.isActive;
44964
+ const xe = ie.count !== void 0 ? ie.count : Q[ie.id], ue = V === ie.id || ie.isActive;
44965
44965
  return /* @__PURE__ */ c(
44966
44966
  Mfe,
44967
44967
  {
44968
44968
  ...ie,
44969
44969
  onNavigate: F || ie.onNavigate,
44970
44970
  count: xe,
44971
- isActive: ye,
44971
+ isActive: ue,
44972
44972
  onClick: () => {
44973
- ie.onClick && ie.onClick(), W(ie.id);
44973
+ ie.onClick && ie.onClick(), G(ie.id);
44974
44974
  },
44975
44975
  activeColor: m,
44976
44976
  inactiveColor: g,
@@ -45053,10 +45053,10 @@ const H6e = (e) => /* @__PURE__ */ ae.createElement("svg", { xmlns: "http://www.
45053
45053
  style: d,
45054
45054
  className: l = ""
45055
45055
  }) => {
45056
- const [h, p] = re.useState(!1), { currentTheme: u, switchTheme: y } = xC(), m = u != "dark", g = () => {
45056
+ const [h, p] = ce.useState(!1), { currentTheme: u, switchTheme: y } = xC(), m = u != "dark", g = () => {
45057
45057
  y(m ? "dark" : "light"), e?.();
45058
45058
  };
45059
- return re.useEffect(() => {
45059
+ return ce.useEffect(() => {
45060
45060
  p(!0);
45061
45061
  }, []), !h || !u ? /* @__PURE__ */ c(Ie, {}) : /* @__PURE__ */ c(
45062
45062
  "div",
@@ -45397,13 +45397,13 @@ const H6e = (e) => /* @__PURE__ */ ae.createElement("svg", { xmlns: "http://www.
45397
45397
  renderSeparator: b,
45398
45398
  pageSizeOptions: $
45399
45399
  }) => {
45400
- const I = re.useMemo(
45400
+ const I = ce.useMemo(
45401
45401
  () => ({
45402
45402
  ...u
45403
45403
  }),
45404
45404
  [u]
45405
- ), S = re.useRef(null);
45406
- re.useEffect(() => {
45405
+ ), S = ce.useRef(null);
45406
+ ce.useEffect(() => {
45407
45407
  if (!m || !y || !g || n) return;
45408
45408
  const q = new IntersectionObserver(
45409
45409
  (D) => {
@@ -45500,7 +45500,7 @@ const H6e = (e) => /* @__PURE__ */ ae.createElement("svg", { xmlns: "http://www.
45500
45500
  ]
45501
45501
  }
45502
45502
  );
45503
- }, Ofe = "_datePickerContainer_1gx2l_3", Ufe = "_label_1gx2l_16", Wfe = "_displayNode_1gx2l_23", Gfe = "_datePickerButton_1gx2l_30", Kfe = "_datePickerButtonDisabled_1gx2l_50", Zfe = "_datePickerButtonOpen_1gx2l_59", Xfe = "_datePickerLabel_1gx2l_68", Yfe = "_placeholder_1gx2l_79", Jfe = "_trailingIcons_1gx2l_83", Qfe = "_chevron_1gx2l_89", ege = "_clearButton_1gx2l_97", tge = "_errorMessage_1gx2l_114", age = "_dropdown_1gx2l_119", nge = "_calendarHeader_1gx2l_143", oge = "_navButton_1gx2l_152", ige = "_headerSelectors_1gx2l_171", cge = "_monthSelector_1gx2l_179", rge = "_yearSelector_1gx2l_180", sge = "_selectorButton_1gx2l_184", dge = "_selectorChevron_1gx2l_201", lge = "_selectorChevronOpen_1gx2l_206", hge = "_monthDropdown_1gx2l_210", pge = "_yearDropdown_1gx2l_211", uge = "_monthItem_1gx2l_231", yge = "_yearItem_1gx2l_232", kge = "_monthItemSelected_1gx2l_254", mge = "_yearItemSelected_1gx2l_255", fge = "_weekdays_1gx2l_259", gge = "_weekday_1gx2l_259", vge = "_calendarGrid_1gx2l_275", _ge = "_dateCell_1gx2l_284", Mge = "_dateCellSelected_1gx2l_307", xge = "_dateCellOtherMonth_1gx2l_311", bge = "_dateCellOtherMonthSelected_1gx2l_315", wge = "_calendarFooter_1gx2l_319", Lge = "_cancelButton_1gx2l_327", Cge = "_applyButton_1gx2l_328", Nge = "_timePickerContainer_1gx2l_372", Ige = "_timeGroup_1gx2l_381", Sge = "_timeLabel_1gx2l_388", $ge = "_timeInputWrapper_1gx2l_394", qge = "_timeInput_1gx2l_394", Age = "_timeSeparator_1gx2l_422", K = {
45503
+ }, Ofe = "_datePickerContainer_1gx2l_3", Ufe = "_label_1gx2l_16", Wfe = "_displayNode_1gx2l_23", Gfe = "_datePickerButton_1gx2l_30", Kfe = "_datePickerButtonDisabled_1gx2l_50", Zfe = "_datePickerButtonOpen_1gx2l_59", Xfe = "_datePickerLabel_1gx2l_68", Yfe = "_placeholder_1gx2l_79", Jfe = "_trailingIcons_1gx2l_83", Qfe = "_chevron_1gx2l_89", ege = "_clearButton_1gx2l_97", tge = "_errorMessage_1gx2l_114", age = "_dropdown_1gx2l_119", nge = "_calendarHeader_1gx2l_143", oge = "_navButton_1gx2l_152", ige = "_headerSelectors_1gx2l_171", cge = "_monthSelector_1gx2l_179", rge = "_yearSelector_1gx2l_180", sge = "_selectorButton_1gx2l_184", dge = "_selectorChevron_1gx2l_201", lge = "_selectorChevronOpen_1gx2l_206", hge = "_monthDropdown_1gx2l_210", pge = "_yearDropdown_1gx2l_211", uge = "_monthItem_1gx2l_231", yge = "_yearItem_1gx2l_232", kge = "_monthItemSelected_1gx2l_254", mge = "_yearItemSelected_1gx2l_255", fge = "_weekdays_1gx2l_259", gge = "_weekday_1gx2l_259", vge = "_calendarGrid_1gx2l_275", _ge = "_dateCell_1gx2l_284", Mge = "_dateCellSelected_1gx2l_307", xge = "_dateCellOtherMonth_1gx2l_311", bge = "_dateCellOtherMonthSelected_1gx2l_315", wge = "_calendarFooter_1gx2l_319", Lge = "_cancelButton_1gx2l_327", Cge = "_applyButton_1gx2l_328", Nge = "_timePickerContainer_1gx2l_372", Ige = "_timeGroup_1gx2l_381", Sge = "_timeLabel_1gx2l_388", $ge = "_timeInputWrapper_1gx2l_394", qge = "_timeInput_1gx2l_394", Age = "_timeSeparator_1gx2l_422", Z = {
45504
45504
  datePickerContainer: Ofe,
45505
45505
  label: Ufe,
45506
45506
  displayNode: Wfe,
@@ -45595,29 +45595,29 @@ const H6e = (e) => /* @__PURE__ */ ae.createElement("svg", { xmlns: "http://www.
45595
45595
  headerTextColor: D = "#6c757d",
45596
45596
  weekdayTextColor: F = "#6c757d",
45597
45597
  currentMonthDateColor: V = "#212529",
45598
- otherMonthDateColor: W = "#adb5bd",
45598
+ otherMonthDateColor: G = "#adb5bd",
45599
45599
  selectedDateBgColor: Q = "#00A6D9",
45600
45600
  selectedDateTextColor: le = "#ffffff",
45601
45601
  cancelButtonBgColor: ie = "#e9ecef",
45602
45602
  cancelButtonTextColor: xe = "#212529",
45603
- applyButtonBgColor: ye = "#00A6D9",
45603
+ applyButtonBgColor: ue = "#00A6D9",
45604
45604
  applyButtonTextColor: Ae = "#ffffff",
45605
- width: ce,
45605
+ width: se,
45606
45606
  displayNode: ne = void 0,
45607
45607
  displayMode: oe = "auto",
45608
45608
  displayNodeAriaLabel: he,
45609
- dropdownPosition: fe = "auto",
45610
- dropdownAlignment: pe = "right",
45611
- dropdownWidth: X,
45609
+ dropdownPosition: ke = "auto",
45610
+ dropdownAlignment: fe = "right",
45611
+ dropdownWidth: W,
45612
45612
  withBorder: Y = !1,
45613
- icon: se,
45613
+ icon: re,
45614
45614
  precision: je = "day",
45615
45615
  horizontalTimePicker: Re = !1,
45616
45616
  hoursLabel: Le = "Heures",
45617
45617
  minutesLabel: Oe = "Minutes",
45618
45618
  lowerLimit: wt = null,
45619
45619
  upperLimit: Vt = null,
45620
- outOfLimitsMessage: ke = "La date/heure choisie est hors des limites autorisées",
45620
+ outOfLimitsMessage: ye = "La date/heure choisie est hors des limites autorisées",
45621
45621
  months: Pt,
45622
45622
  weekdays: Db,
45623
45623
  cancelText: Se = "Annuler",
@@ -45634,14 +45634,14 @@ const H6e = (e) => /* @__PURE__ */ ae.createElement("svg", { xmlns: "http://www.
45634
45634
  const jt = (H) => {
45635
45635
  if (H instanceof Date) return isNaN(H.getTime()) ? null : H;
45636
45636
  if (typeof H == "string" && H) {
45637
- const Z = new Date(H);
45638
- return isNaN(Z.getTime()) ? null : Z;
45637
+ const X = new Date(H);
45638
+ return isNaN(X.getTime()) ? null : X;
45639
45639
  }
45640
45640
  return null;
45641
- }, [et, Jt] = P(!1), [bi, uz] = P({ top: 0, left: 0, width: 0 }), [rN, yz] = P("bottom"), [sN, kz] = P(null), [me, wi] = P(jt(e) || /* @__PURE__ */ new Date()), [Li, Bb] = P(jt(e)), [lc, Rb] = P(jt(e)?.getHours() ?? 0), [hc, Fb] = P(jt(e)?.getMinutes() ?? 0), [Eb, Y1] = P(!1), [Ob, J1] = P(!1), Ub = G(null), Q1 = G(null), dN = G(null), Wb = G(null), Gb = G(null), lN = G(jt(e)?.getTime());
45641
+ }, [et, Jt] = P(!1), [bi, uz] = P({ top: 0, left: 0, width: 0 }), [rN, yz] = P("bottom"), [sN, kz] = P(null), [me, wi] = P(jt(e) || /* @__PURE__ */ new Date()), [Li, Bb] = P(jt(e)), [lc, Rb] = P(jt(e)?.getHours() ?? 0), [hc, Fb] = P(jt(e)?.getMinutes() ?? 0), [Eb, Y1] = P(!1), [Ob, J1] = P(!1), Ub = K(null), Q1 = K(null), dN = K(null), Wb = K(null), Gb = K(null), lN = K(jt(e)?.getTime());
45642
45642
  E(() => {
45643
- const H = jt(e), Z = H?.getTime();
45644
- Z !== lN.current && (lN.current = Z, Bb(H), H && (wi(H), Rb(H.getHours()), Fb(H.getMinutes())));
45643
+ const H = jt(e), X = H?.getTime();
45644
+ X !== lN.current && (lN.current = X, Bb(H), H && (wi(H), Rb(H.getHours()), Fb(H.getMinutes())));
45645
45645
  }, [e]);
45646
45646
  const hN = De(() => {
45647
45647
  if (Q1.current) {
@@ -45654,16 +45654,16 @@ const H6e = (e) => /* @__PURE__ */ ae.createElement("svg", { xmlns: "http://www.
45654
45654
  }
45655
45655
  }, []), pN = 8, pc = De(() => {
45656
45656
  if (!Q1.current) return;
45657
- const H = Q1.current.getBoundingClientRect(), Z = (parseFloat(k.replace("rem", "")) || 0) * 16, Ce = H.top - Z - pN, Tt = window.innerHeight - H.bottom - Z - pN;
45657
+ const H = Q1.current.getBoundingClientRect(), X = (parseFloat(k.replace("rem", "")) || 0) * 16, Ce = H.top - X - pN, Tt = window.innerHeight - H.bottom - X - pN;
45658
45658
  let tt;
45659
- if (fe !== "auto")
45660
- tt = fe;
45659
+ if (ke !== "auto")
45660
+ tt = ke;
45661
45661
  else {
45662
45662
  const Ge = dN.current?.scrollHeight ?? 0;
45663
45663
  tt = Ge <= Tt ? "bottom" : Ge <= Ce || Ce > Tt ? "top" : "bottom";
45664
45664
  }
45665
45665
  yz((Ge) => Ge === tt ? Ge : tt), kz(Math.max(tt === "bottom" ? Tt : Ce, 0));
45666
- }, [fe, k]), ei = De(() => {
45666
+ }, [ke, k]), ei = De(() => {
45667
45667
  hN(), pc();
45668
45668
  }, [hN, pc]);
45669
45669
  E(() => (et && (ei(), window.addEventListener("scroll", ei, !0), window.addEventListener("resize", ei)), () => {
@@ -45671,22 +45671,22 @@ const H6e = (e) => /* @__PURE__ */ ae.createElement("svg", { xmlns: "http://www.
45671
45671
  }), [et, ei]), Y$(() => {
45672
45672
  et && pc();
45673
45673
  }, [et, pc]), E(() => {
45674
- const H = (Z) => {
45675
- if (Ub.current && !Ub.current.contains(Z.target)) {
45674
+ const H = (X) => {
45675
+ if (Ub.current && !Ub.current.contains(X.target)) {
45676
45676
  const Ce = document.getElementById("datepicker-dropdown");
45677
- if (Ce && Ce.contains(Z.target)) return;
45677
+ if (Ce && Ce.contains(X.target)) return;
45678
45678
  Jt(!1), Y1(!1), J1(!1);
45679
45679
  }
45680
- Wb.current && !Wb.current.contains(Z.target) && Y1(!1), Gb.current && !Gb.current.contains(Z.target) && J1(!1);
45680
+ Wb.current && !Wb.current.contains(X.target) && Y1(!1), Gb.current && !Gb.current.contains(X.target) && J1(!1);
45681
45681
  };
45682
45682
  return document.addEventListener("mousedown", H), () => document.removeEventListener("mousedown", H);
45683
45683
  }, []);
45684
45684
  const uN = (H) => new Date(H.getFullYear(), H.getMonth() + 1, 0).getDate(), mz = (H) => {
45685
- const Z = new Date(H.getFullYear(), H.getMonth(), 1).getDay();
45686
- return Z === 0 ? 6 : Z - 1;
45685
+ const X = new Date(H.getFullYear(), H.getMonth(), 1).getDay();
45686
+ return X === 0 ? 6 : X - 1;
45687
45687
  }, fz = () => {
45688
- const H = [], Z = mz(me), Ce = uN(me), Tt = new Date(me.getFullYear(), me.getMonth() - 1, 1), tt = uN(Tt);
45689
- for (let ze = Z - 1; ze >= 0; ze--)
45688
+ const H = [], X = mz(me), Ce = uN(me), Tt = new Date(me.getFullYear(), me.getMonth() - 1, 1), tt = uN(Tt);
45689
+ for (let ze = X - 1; ze >= 0; ze--)
45690
45690
  H.push(new Date(me.getFullYear(), me.getMonth() - 1, tt - ze));
45691
45691
  for (let ze = 1; ze <= Ce; ze++)
45692
45692
  H.push(new Date(me.getFullYear(), me.getMonth(), ze));
@@ -45694,7 +45694,7 @@ const H6e = (e) => /* @__PURE__ */ ae.createElement("svg", { xmlns: "http://www.
45694
45694
  for (let ze = 1; ze <= Ge; ze++)
45695
45695
  H.push(new Date(me.getFullYear(), me.getMonth() + 1, ze));
45696
45696
  return H;
45697
- }, gz = (H, Z) => !H || !Z ? !1 : H.getDate() === Z.getDate() && H.getMonth() === Z.getMonth() && H.getFullYear() === Z.getFullYear(), vz = (H) => H.getMonth() === me.getMonth() && H.getFullYear() === me.getFullYear(), yN = (H) => !(wt && H < wt || Vt && H > Vt), kN = Li ? (() => {
45697
+ }, gz = (H, X) => !H || !X ? !1 : H.getDate() === X.getDate() && H.getMonth() === X.getMonth() && H.getFullYear() === X.getFullYear(), vz = (H) => H.getMonth() === me.getMonth() && H.getFullYear() === me.getFullYear(), yN = (H) => !(wt && H < wt || Vt && H > Vt), kN = Li ? (() => {
45698
45698
  const H = new Date(Li);
45699
45699
  return H.setHours(lc), H.setMinutes(hc), H;
45700
45700
  })() : null, ti = kN ? !yN(kN) : !1, _z = () => {
@@ -45703,8 +45703,8 @@ const H6e = (e) => /* @__PURE__ */ ae.createElement("svg", { xmlns: "http://www.
45703
45703
  wi(new Date(me.getFullYear(), me.getMonth() + 1, 1));
45704
45704
  }, xz = (H) => {
45705
45705
  if (!s) {
45706
- const Z = new Date(H);
45707
- Z.setHours(lc), Z.setMinutes(hc), Bb(Z);
45706
+ const X = new Date(H);
45707
+ X.setHours(lc), X.setMinutes(hc), Bb(X);
45708
45708
  }
45709
45709
  }, bz = () => {
45710
45710
  if (!s) {
@@ -45724,10 +45724,10 @@ const H6e = (e) => /* @__PURE__ */ ae.createElement("svg", { xmlns: "http://www.
45724
45724
  }, Cz = (H) => {
45725
45725
  wi(new Date(H, me.getMonth(), 1)), J1(!1);
45726
45726
  }, Nz = () => {
45727
- const H = me.getFullYear(), Z = [];
45727
+ const H = me.getFullYear(), X = [];
45728
45728
  for (let Ce = H - 10; Ce <= H + 10; Ce++)
45729
- Z.push(Ce);
45730
- return Z;
45729
+ X.push(Ce);
45730
+ return X;
45731
45731
  }, Iz = (H) => {
45732
45732
  if (!s)
45733
45733
  switch (H.key) {
@@ -45743,7 +45743,7 @@ const H6e = (e) => /* @__PURE__ */ ae.createElement("svg", { xmlns: "http://www.
45743
45743
  break;
45744
45744
  }
45745
45745
  }, Sz = {
45746
- width: ce || (r ? "100%" : "auto"),
45746
+ width: se || (r ? "100%" : "auto"),
45747
45747
  fontSize: u,
45748
45748
  fontWeight: M
45749
45749
  }, $z = {
@@ -45773,15 +45773,15 @@ const H6e = (e) => /* @__PURE__ */ ae.createElement("svg", { xmlns: "http://www.
45773
45773
  position: "fixed",
45774
45774
  top: rN === "bottom" ? bi.top + (Q1.current?.offsetHeight || 0) + parseFloat(k.replace("rem", "")) * 16 : "auto",
45775
45775
  bottom: rN === "top" ? window.innerHeight - bi.top + parseFloat(k.replace("rem", "")) * 16 : "auto",
45776
- left: pe === "left" ? bi.left : "auto",
45777
- right: pe === "right" ? window.innerWidth - (bi.left + bi.width) : "auto",
45776
+ left: fe === "left" ? bi.left : "auto",
45777
+ right: fe === "right" ? window.innerWidth - (bi.left + bi.width) : "auto",
45778
45778
  // Largeur toujours proportionnelle à l'écran (30vw), quelle que soit la
45779
45779
  // position, sauf override explicite via dropdownWidth.
45780
- width: X || "30vw",
45780
+ width: W || "30vw",
45781
45781
  // Neutralise le `min-width: 20rem` du CSS pour laisser 30vw s'appliquer
45782
45782
  // même quand c'est plus petit que 20rem (petit écran ou zoom élevé) — sauf
45783
45783
  // si une largeur fixe a été demandée explicitement.
45784
- minWidth: X ? void 0 : 0,
45784
+ minWidth: W ? void 0 : 0,
45785
45785
  zIndex: 10001
45786
45786
  }, mN = {
45787
45787
  width: y,
@@ -45805,14 +45805,14 @@ const H6e = (e) => /* @__PURE__ */ ae.createElement("svg", { xmlns: "http://www.
45805
45805
  return /* @__PURE__ */ f(
45806
45806
  "div",
45807
45807
  {
45808
- className: `${K.datePickerContainer} ${i}`,
45808
+ className: `${Z.datePickerContainer} ${i}`,
45809
45809
  ref: Ub,
45810
45810
  style: Sz,
45811
45811
  "data-fullwidth": r,
45812
45812
  "data-disabled": s,
45813
45813
  "data-error": !!d,
45814
45814
  children: [
45815
- n && /* @__PURE__ */ c("label", { className: K.label, style: Pz, children: n }),
45815
+ n && /* @__PURE__ */ c("label", { className: Z.label, style: Pz, children: n }),
45816
45816
  /* @__PURE__ */ f(
45817
45817
  "button",
45818
45818
  {
@@ -45821,9 +45821,9 @@ const H6e = (e) => /* @__PURE__ */ ae.createElement("svg", { xmlns: "http://www.
45821
45821
  onClick: () => !s && Jt(!et),
45822
45822
  onKeyDown: Iz,
45823
45823
  className: `
45824
- ${K.datePickerButton}
45825
- ${et ? K.datePickerButtonOpen : ""}
45826
- ${s ? K.datePickerButtonDisabled : ""}
45824
+ ${Z.datePickerButton}
45825
+ ${et ? Z.datePickerButtonOpen : ""}
45826
+ ${s ? Z.datePickerButtonDisabled : ""}
45827
45827
  `,
45828
45828
  style: $z,
45829
45829
  disabled: s,
@@ -45832,21 +45832,21 @@ const H6e = (e) => /* @__PURE__ */ ae.createElement("svg", { xmlns: "http://www.
45832
45832
  "aria-label": Rz,
45833
45833
  "aria-labelledby": n ? `${n}-label` : void 0,
45834
45834
  children: [
45835
- vN ? /* @__PURE__ */ c("span", { className: K.displayNode, "aria-hidden": !0, children: ne }) : /* @__PURE__ */ c(
45835
+ vN ? /* @__PURE__ */ c("span", { className: Z.displayNode, "aria-hidden": !0, children: ne }) : /* @__PURE__ */ c(
45836
45836
  "span",
45837
45837
  {
45838
- className: `${K.datePickerLabel} ${ht ? "" : K.placeholder}`,
45838
+ className: `${Z.datePickerLabel} ${ht ? "" : Z.placeholder}`,
45839
45839
  style: ht ? void 0 : jz,
45840
45840
  children: ht ? gN : o
45841
45841
  }
45842
45842
  ),
45843
- /* @__PURE__ */ f("span", { className: K.trailingIcons, children: [
45843
+ /* @__PURE__ */ f("span", { className: Z.trailingIcons, children: [
45844
45844
  Dz && /* @__PURE__ */ c(
45845
45845
  "span",
45846
45846
  {
45847
45847
  role: "button",
45848
45848
  tabIndex: 0,
45849
- className: K.clearButton,
45849
+ className: Z.clearButton,
45850
45850
  "aria-label": pz,
45851
45851
  onClick: (H) => {
45852
45852
  H.stopPropagation(), t(null);
@@ -45857,11 +45857,11 @@ const H6e = (e) => /* @__PURE__ */ ae.createElement("svg", { xmlns: "http://www.
45857
45857
  children: /* @__PURE__ */ c(Vge, { fill: "var(--color-text)", style: Bz })
45858
45858
  }
45859
45859
  ),
45860
- se ? /* @__PURE__ */ c("span", { className: K.chevron, style: mN, children: se }) : /* @__PURE__ */ c(
45860
+ re ? /* @__PURE__ */ c("span", { className: Z.chevron, style: mN, children: re }) : /* @__PURE__ */ c(
45861
45861
  Ji,
45862
45862
  {
45863
45863
  fill: "var(--color-text)",
45864
- className: `${K.chevron} ${et ? K.chevronOpen : ""}`,
45864
+ className: `${Z.chevron} ${et ? Z.chevronOpen : ""}`,
45865
45865
  style: mN
45866
45866
  }
45867
45867
  )
@@ -45869,38 +45869,38 @@ const H6e = (e) => /* @__PURE__ */ ae.createElement("svg", { xmlns: "http://www.
45869
45869
  ]
45870
45870
  }
45871
45871
  ),
45872
- d && /* @__PURE__ */ c("div", { className: K.errorMessage, style: Tz, children: d }),
45872
+ d && /* @__PURE__ */ c("div", { className: Z.errorMessage, style: Tz, children: d }),
45873
45873
  et && !s && _C(
45874
45874
  /* @__PURE__ */ f(
45875
45875
  "div",
45876
45876
  {
45877
45877
  id: "datepicker-dropdown",
45878
45878
  ref: dN,
45879
- className: K.dropdown,
45879
+ className: Z.dropdown,
45880
45880
  style: Vz,
45881
45881
  role: "dialog",
45882
45882
  "aria-label": rz,
45883
45883
  children: [
45884
45884
  /* @__PURE__ */ f("div", { style: zz, children: [
45885
45885
  /* @__PURE__ */ f("div", { style: Az, children: [
45886
- /* @__PURE__ */ f("div", { className: K.calendarHeader, children: [
45886
+ /* @__PURE__ */ f("div", { className: Z.calendarHeader, children: [
45887
45887
  /* @__PURE__ */ c(
45888
45888
  "button",
45889
45889
  {
45890
45890
  type: "button",
45891
- className: K.navButton,
45891
+ className: Z.navButton,
45892
45892
  onClick: _z,
45893
45893
  "aria-label": iz,
45894
45894
  children: "‹"
45895
45895
  }
45896
45896
  ),
45897
- /* @__PURE__ */ f("div", { className: K.headerSelectors, children: [
45898
- /* @__PURE__ */ f("div", { className: K.monthSelector, ref: Wb, children: [
45897
+ /* @__PURE__ */ f("div", { className: Z.headerSelectors, children: [
45898
+ /* @__PURE__ */ f("div", { className: Z.monthSelector, ref: Wb, children: [
45899
45899
  /* @__PURE__ */ f(
45900
45900
  "button",
45901
45901
  {
45902
45902
  type: "button",
45903
- className: K.selectorButton,
45903
+ className: Z.selectorButton,
45904
45904
  onClick: () => Y1(!Eb),
45905
45905
  style: {
45906
45906
  color: D,
@@ -45912,40 +45912,40 @@ const H6e = (e) => /* @__PURE__ */ ae.createElement("svg", { xmlns: "http://www.
45912
45912
  Ji,
45913
45913
  {
45914
45914
  fill: "var(--color-text)",
45915
- className: `${K.selectorChevron} ${Eb ? K.selectorChevronOpen : ""}`,
45915
+ className: `${Z.selectorChevron} ${Eb ? Z.selectorChevronOpen : ""}`,
45916
45916
  style: { width: "0.75rem", height: "0.75rem", marginLeft: "0.25rem" }
45917
45917
  }
45918
45918
  )
45919
45919
  ]
45920
45920
  }
45921
45921
  ),
45922
- Eb && /* @__PURE__ */ c("div", { className: K.monthDropdown, children: (Pt || B$).map((H, Z) => /* @__PURE__ */ c(
45922
+ Eb && /* @__PURE__ */ c("div", { className: Z.monthDropdown, children: (Pt || B$).map((H, X) => /* @__PURE__ */ c(
45923
45923
  "button",
45924
45924
  {
45925
45925
  type: "button",
45926
- className: `${K.monthItem} ${me.getMonth() === Z ? K.monthItemSelected : ""}`,
45927
- onClick: () => Lz(Z),
45926
+ className: `${Z.monthItem} ${me.getMonth() === X ? Z.monthItemSelected : ""}`,
45927
+ onClick: () => Lz(X),
45928
45928
  style: {
45929
45929
  padding: _,
45930
- backgroundColor: me.getMonth() === Z ? x || "#e7f1ff" : N
45930
+ backgroundColor: me.getMonth() === X ? x || "#e7f1ff" : N
45931
45931
  },
45932
45932
  onMouseEnter: (Ce) => {
45933
- C && me.getMonth() !== Z && (Ce.currentTarget.style.backgroundColor = C);
45933
+ C && me.getMonth() !== X && (Ce.currentTarget.style.backgroundColor = C);
45934
45934
  },
45935
45935
  onMouseLeave: (Ce) => {
45936
- C && (Ce.currentTarget.style.backgroundColor = me.getMonth() === Z ? x || "#e7f1ff" : N);
45936
+ C && (Ce.currentTarget.style.backgroundColor = me.getMonth() === X ? x || "#e7f1ff" : N);
45937
45937
  },
45938
45938
  children: H
45939
45939
  },
45940
- Z
45940
+ X
45941
45941
  )) })
45942
45942
  ] }),
45943
- /* @__PURE__ */ f("div", { className: K.yearSelector, ref: Gb, children: [
45943
+ /* @__PURE__ */ f("div", { className: Z.yearSelector, ref: Gb, children: [
45944
45944
  /* @__PURE__ */ f(
45945
45945
  "button",
45946
45946
  {
45947
45947
  type: "button",
45948
- className: K.selectorButton,
45948
+ className: Z.selectorButton,
45949
45949
  onClick: () => J1(!Ob),
45950
45950
  style: {
45951
45951
  color: D,
@@ -45957,28 +45957,28 @@ const H6e = (e) => /* @__PURE__ */ ae.createElement("svg", { xmlns: "http://www.
45957
45957
  Ji,
45958
45958
  {
45959
45959
  fill: "var(--color-text)",
45960
- className: `${K.selectorChevron} ${Ob ? K.selectorChevronOpen : ""}`,
45960
+ className: `${Z.selectorChevron} ${Ob ? Z.selectorChevronOpen : ""}`,
45961
45961
  style: { width: "0.75rem", height: "0.75rem", marginLeft: "0.25rem" }
45962
45962
  }
45963
45963
  )
45964
45964
  ]
45965
45965
  }
45966
45966
  ),
45967
- Ob && /* @__PURE__ */ c("div", { className: K.yearDropdown, children: Nz().map((H) => /* @__PURE__ */ c(
45967
+ Ob && /* @__PURE__ */ c("div", { className: Z.yearDropdown, children: Nz().map((H) => /* @__PURE__ */ c(
45968
45968
  "button",
45969
45969
  {
45970
45970
  type: "button",
45971
- className: `${K.yearItem} ${me.getFullYear() === H ? K.yearItemSelected : ""}`,
45971
+ className: `${Z.yearItem} ${me.getFullYear() === H ? Z.yearItemSelected : ""}`,
45972
45972
  onClick: () => Cz(H),
45973
45973
  style: {
45974
45974
  padding: _,
45975
45975
  backgroundColor: me.getFullYear() === H ? x || "#e7f1ff" : N
45976
45976
  },
45977
- onMouseEnter: (Z) => {
45978
- C && me.getFullYear() !== H && (Z.currentTarget.style.backgroundColor = C);
45977
+ onMouseEnter: (X) => {
45978
+ C && me.getFullYear() !== H && (X.currentTarget.style.backgroundColor = C);
45979
45979
  },
45980
- onMouseLeave: (Z) => {
45981
- C && (Z.currentTarget.style.backgroundColor = me.getFullYear() === H ? x || "#e7f1ff" : N);
45980
+ onMouseLeave: (X) => {
45981
+ C && (X.currentTarget.style.backgroundColor = me.getFullYear() === H ? x || "#e7f1ff" : N);
45982
45982
  },
45983
45983
  children: H
45984
45984
  },
@@ -45990,28 +45990,28 @@ const H6e = (e) => /* @__PURE__ */ ae.createElement("svg", { xmlns: "http://www.
45990
45990
  "button",
45991
45991
  {
45992
45992
  type: "button",
45993
- className: K.navButton,
45993
+ className: Z.navButton,
45994
45994
  onClick: Mz,
45995
45995
  "aria-label": cz,
45996
45996
  children: "›"
45997
45997
  }
45998
45998
  )
45999
45999
  ] }),
46000
- /* @__PURE__ */ c("div", { className: K.weekdays, children: (Db || Pge).map((H) => /* @__PURE__ */ c("div", { className: K.weekday, style: { color: F }, children: H }, H)) }),
46001
- /* @__PURE__ */ c("div", { className: K.calendarGrid, children: Hz.map((H, Z) => {
46000
+ /* @__PURE__ */ c("div", { className: Z.weekdays, children: (Db || Pge).map((H) => /* @__PURE__ */ c("div", { className: Z.weekday, style: { color: F }, children: H }, H)) }),
46001
+ /* @__PURE__ */ c("div", { className: Z.calendarGrid, children: Hz.map((H, X) => {
46002
46002
  if (!H) return null;
46003
46003
  const Ce = gz(H, Li), Tt = vz(H), tt = (ze) => new Date(ze.getFullYear(), ze.getMonth(), ze.getDate()).getTime(), Ge = !!(wt && tt(H) < tt(wt) || Vt && tt(H) > tt(Vt));
46004
46004
  return /* @__PURE__ */ c(
46005
46005
  "button",
46006
46006
  {
46007
46007
  type: "button",
46008
- className: `${K.dateCell} ${Ce ? K.dateCellSelected : ""} ${Ce ? K.dateCellOtherMonthSelected : ""} ${Tt ? "" : K.dateCellOtherMonth} ${Ge ? K.dateCellDisabled : ""}`,
46008
+ className: `${Z.dateCell} ${Ce ? Z.dateCellSelected : ""} ${Ce ? Z.dateCellOtherMonthSelected : ""} ${Tt ? "" : Z.dateCellOtherMonth} ${Ge ? Z.dateCellDisabled : ""}`,
46009
46009
  onClick: () => !Ge && xz(H),
46010
46010
  disabled: Ge,
46011
46011
  style: {
46012
46012
  width: q,
46013
46013
  height: q,
46014
- color: Ce ? le : Tt ? V : W,
46014
+ color: Ce ? le : Tt ? V : G,
46015
46015
  backgroundColor: Ce ? Q : "transparent",
46016
46016
  opacity: Ge ? 0.4 : 1,
46017
46017
  cursor: Ge ? "not-allowed" : "pointer"
@@ -46024,14 +46024,14 @@ const H6e = (e) => /* @__PURE__ */ ae.createElement("svg", { xmlns: "http://www.
46024
46024
  },
46025
46025
  children: H.getDate()
46026
46026
  },
46027
- Z
46027
+ X
46028
46028
  );
46029
46029
  }) })
46030
46030
  ] }),
46031
- je === "minutes" && /* @__PURE__ */ f("div", { className: K.timePickerContainer, style: qz, children: [
46032
- /* @__PURE__ */ f("div", { className: K.timeGroup, children: [
46033
- /* @__PURE__ */ c("span", { className: K.timeLabel, children: Le }),
46034
- /* @__PURE__ */ c("div", { className: K.timeInputWrapper, children: /* @__PURE__ */ c(
46031
+ je === "minutes" && /* @__PURE__ */ f("div", { className: Z.timePickerContainer, style: qz, children: [
46032
+ /* @__PURE__ */ f("div", { className: Z.timeGroup, children: [
46033
+ /* @__PURE__ */ c("span", { className: Z.timeLabel, children: Le }),
46034
+ /* @__PURE__ */ c("div", { className: Z.timeInputWrapper, children: /* @__PURE__ */ c(
46035
46035
  "input",
46036
46036
  {
46037
46037
  type: "number",
@@ -46039,18 +46039,18 @@ const H6e = (e) => /* @__PURE__ */ ae.createElement("svg", { xmlns: "http://www.
46039
46039
  max: "23",
46040
46040
  value: lc,
46041
46041
  onChange: (H) => {
46042
- const Z = parseInt(H.target.value);
46043
- !isNaN(Z) && Z >= 0 && Z <= 23 && Rb(Z);
46042
+ const X = parseInt(H.target.value);
46043
+ !isNaN(X) && X >= 0 && X <= 23 && Rb(X);
46044
46044
  },
46045
- className: K.timeInput,
46045
+ className: Z.timeInput,
46046
46046
  style: ti ? { borderColor: "#dc2626", color: "#dc2626" } : void 0
46047
46047
  }
46048
46048
  ) })
46049
46049
  ] }),
46050
- !Re && /* @__PURE__ */ c("span", { className: K.timeSeparator, children: ":" }),
46051
- /* @__PURE__ */ f("div", { className: K.timeGroup, children: [
46052
- /* @__PURE__ */ c("span", { className: K.timeLabel, children: Oe }),
46053
- /* @__PURE__ */ c("div", { className: K.timeInputWrapper, children: /* @__PURE__ */ c(
46050
+ !Re && /* @__PURE__ */ c("span", { className: Z.timeSeparator, children: ":" }),
46051
+ /* @__PURE__ */ f("div", { className: Z.timeGroup, children: [
46052
+ /* @__PURE__ */ c("span", { className: Z.timeLabel, children: Oe }),
46053
+ /* @__PURE__ */ c("div", { className: Z.timeInputWrapper, children: /* @__PURE__ */ c(
46054
46054
  "input",
46055
46055
  {
46056
46056
  type: "number",
@@ -46058,10 +46058,10 @@ const H6e = (e) => /* @__PURE__ */ ae.createElement("svg", { xmlns: "http://www.
46058
46058
  max: "59",
46059
46059
  value: hc,
46060
46060
  onChange: (H) => {
46061
- const Z = parseInt(H.target.value);
46062
- !isNaN(Z) && Z >= 0 && Z <= 59 && Fb(Z);
46061
+ const X = parseInt(H.target.value);
46062
+ !isNaN(X) && X >= 0 && X <= 59 && Fb(X);
46063
46063
  },
46064
- className: K.timeInput,
46064
+ className: Z.timeInput,
46065
46065
  style: ti ? { borderColor: "#dc2626", color: "#dc2626" } : void 0
46066
46066
  }
46067
46067
  ) })
@@ -46078,15 +46078,15 @@ const H6e = (e) => /* @__PURE__ */ ae.createElement("svg", { xmlns: "http://www.
46078
46078
  padding: "0 4px 4px",
46079
46079
  textAlign: "center"
46080
46080
  },
46081
- children: ke
46081
+ children: ye
46082
46082
  }
46083
46083
  ),
46084
- /* @__PURE__ */ f("div", { className: K.calendarFooter, children: [
46084
+ /* @__PURE__ */ f("div", { className: Z.calendarFooter, children: [
46085
46085
  /* @__PURE__ */ c(
46086
46086
  "button",
46087
46087
  {
46088
46088
  type: "button",
46089
- className: K.cancelButton,
46089
+ className: Z.cancelButton,
46090
46090
  onClick: wz,
46091
46091
  style: {
46092
46092
  backgroundColor: ie,
@@ -46101,11 +46101,11 @@ const H6e = (e) => /* @__PURE__ */ ae.createElement("svg", { xmlns: "http://www.
46101
46101
  "button",
46102
46102
  {
46103
46103
  type: "button",
46104
- className: K.applyButton,
46104
+ className: Z.applyButton,
46105
46105
  onClick: bz,
46106
46106
  disabled: ti,
46107
46107
  style: {
46108
- backgroundColor: ye,
46108
+ backgroundColor: ue,
46109
46109
  color: Ae,
46110
46110
  borderRadius: z,
46111
46111
  padding: _,
@@ -46187,24 +46187,24 @@ const H6e = (e) => /* @__PURE__ */ ae.createElement("svg", { xmlns: "http://www.
46187
46187
  transitionTiming: F = "var(--select-transition-timing, ease)",
46188
46188
  // Scrollbars
46189
46189
  scrollbarWidth: V = "var(--select-scrollbar-width, 0.375rem)",
46190
- scrollbarTrackColor: W = "var(--select-scrollbar-track-color, #f1f1f1)",
46190
+ scrollbarTrackColor: G = "var(--select-scrollbar-track-color, #f1f1f1)",
46191
46191
  scrollbarThumbColor: Q = "var(--select-scrollbar-thumb-color, #c1c1c1)",
46192
46192
  width: le,
46193
46193
  minWidth: ie,
46194
46194
  dropdownPosition: xe = "bottom",
46195
- dropdownAlignment: ye = "right",
46195
+ dropdownAlignment: ue = "right",
46196
46196
  dropdownWidth: Ae,
46197
- a11yConfig: ce,
46197
+ a11yConfig: se,
46198
46198
  titleKey: ne
46199
46199
  }) => {
46200
- const [oe, he] = P(!1), fe = G(null), pe = e.find((Se) => Se.value === t);
46200
+ const [oe, he] = P(!1), ke = K(null), fe = e.find((Se) => Se.value === t);
46201
46201
  E(() => {
46202
46202
  const Se = (Yt) => {
46203
- fe.current && !fe.current.contains(Yt.target) && he(!1);
46203
+ ke.current && !ke.current.contains(Yt.target) && he(!1);
46204
46204
  };
46205
46205
  return document.addEventListener("mousedown", Se), () => document.removeEventListener("mousedown", Se);
46206
46206
  }, []);
46207
- const X = (Se) => {
46207
+ const W = (Se) => {
46208
46208
  d || (n(Se), he(!1));
46209
46209
  }, Y = (Se) => {
46210
46210
  if (!d)
@@ -46220,7 +46220,7 @@ const H6e = (e) => /* @__PURE__ */ ae.createElement("svg", { xmlns: "http://www.
46220
46220
  oe && he(!1);
46221
46221
  break;
46222
46222
  }
46223
- }, se = {
46223
+ }, re = {
46224
46224
  width: le || (s ? "100%" : "auto"),
46225
46225
  minWidth: ie,
46226
46226
  fontSize: y
@@ -46245,8 +46245,8 @@ const H6e = (e) => /* @__PURE__ */ ae.createElement("svg", { xmlns: "http://www.
46245
46245
  position: "absolute",
46246
46246
  top: xe === "bottom" ? "100%" : "auto",
46247
46247
  bottom: xe === "top" ? "100%" : "auto",
46248
- left: ye === "left" ? 0 : "auto",
46249
- right: ye === "right" ? 0 : "auto",
46248
+ left: ue === "left" ? 0 : "auto",
46249
+ right: ue === "right" ? 0 : "auto",
46250
46250
  width: Ae || (s ? "100%" : "auto"),
46251
46251
  marginTop: xe === "bottom" ? M : 0,
46252
46252
  marginBottom: xe === "top" ? M : 0,
@@ -46264,7 +46264,7 @@ const H6e = (e) => /* @__PURE__ */ ae.createElement("svg", { xmlns: "http://www.
46264
46264
  }, Vt = {
46265
46265
  color: S || "var(--select-error-color, #dc3545)",
46266
46266
  marginTop: _
46267
- }, ke = {
46267
+ }, ye = {
46268
46268
  padding: v,
46269
46269
  transition: `background-color ${D} ${F}`,
46270
46270
  fontWeight: m
@@ -46272,19 +46272,19 @@ const H6e = (e) => /* @__PURE__ */ ae.createElement("svg", { xmlns: "http://www.
46272
46272
  gap: w
46273
46273
  }, Db = {
46274
46274
  "--scrollbar-width": V,
46275
- "--scrollbar-track-color": W,
46275
+ "--scrollbar-track-color": G,
46276
46276
  "--scrollbar-thumb-color": Q
46277
46277
  };
46278
46278
  return /* @__PURE__ */ f(
46279
46279
  "div",
46280
46280
  {
46281
46281
  className: `${Ve.selectContainer} ${r}`,
46282
- ref: fe,
46283
- style: se,
46282
+ ref: ke,
46283
+ style: re,
46284
46284
  "data-fullwidth": s,
46285
46285
  "data-disabled": d,
46286
46286
  "data-error": !!l,
46287
- title: J(ce, ne),
46287
+ title: J(se, ne),
46288
46288
  children: [
46289
46289
  o && /* @__PURE__ */ c("label", { className: Ve.label, style: Oe, children: o }),
46290
46290
  /* @__PURE__ */ f(
@@ -46305,13 +46305,13 @@ const H6e = (e) => /* @__PURE__ */ ae.createElement("svg", { xmlns: "http://www.
46305
46305
  "aria-labelledby": o ? `${o}-label` : void 0,
46306
46306
  children: [
46307
46307
  /* @__PURE__ */ f("div", { className: Ve.selectButtonContent, style: Pt, children: [
46308
- pe?.icon && /* @__PURE__ */ c("span", { className: Ve.selectIcon, style: Le, children: pe.icon }),
46308
+ fe?.icon && /* @__PURE__ */ c("span", { className: Ve.selectIcon, style: Le, children: fe.icon }),
46309
46309
  /* @__PURE__ */ c(
46310
46310
  "span",
46311
46311
  {
46312
- className: `${Ve.selectLabel} ${pe ? "" : Ve.placeholder}`,
46313
- style: pe ? void 0 : wt,
46314
- children: pe ? pe.label : i
46312
+ className: `${Ve.selectLabel} ${fe ? "" : Ve.placeholder}`,
46313
+ style: fe ? void 0 : wt,
46314
+ children: fe ? fe.label : i
46315
46315
  }
46316
46316
  )
46317
46317
  ] }),
@@ -46338,13 +46338,13 @@ const H6e = (e) => /* @__PURE__ */ ae.createElement("svg", { xmlns: "http://www.
46338
46338
  "button",
46339
46339
  {
46340
46340
  type: "button",
46341
- onClick: () => X(Se.value),
46341
+ onClick: () => W(Se.value),
46342
46342
  className: `
46343
46343
  ${Ve.item}
46344
46344
  ${t === Se.value ? Ve.itemSelected : ""}
46345
46345
  `,
46346
46346
  style: {
46347
- ...ke,
46347
+ ...ye,
46348
46348
  backgroundColor: t === Se.value ? $ || "#F0F4F6" : "transparent"
46349
46349
  },
46350
46350
  onMouseEnter: (Yt) => {
@@ -46501,111 +46501,112 @@ const H6e = (e) => /* @__PURE__ */ ae.createElement("svg", { xmlns: "http://www.
46501
46501
  titleColor: l = "black",
46502
46502
  valueColor: h = "blue",
46503
46503
  realValueColor: p,
46504
- className: u = "",
46505
- style: y = "",
46506
- variant: m = "horizontal",
46507
- showMax: g = !1,
46508
- titleFontSize: k,
46509
- titleFontWeight: _,
46510
- subtitleFontSize: M,
46511
- subtitleFontWeight: v,
46512
- primaryFontSize: w,
46513
- primaryFontWeight: L,
46514
- secondaryFontSize: N,
46515
- secondaryFontWeight: C,
46516
- backgroundColor: x = "#f2f9fc",
46517
- gap: b = "",
46518
- disabled: $ = !1,
46519
- positionRelative: I = "",
46520
- justifyContent: S = "",
46521
- headerLineHeight: z = "",
46522
- headerMinHeight: R = "",
46523
- contentSpace: B = "",
46524
- titleKey: j,
46525
- subtitleKey: A,
46526
- subtitleA11yKey: q,
46527
- maxBadgeKey: D,
46528
- maxBadgeA11yKey: F,
46529
- predictionKey: V,
46530
- predictionA11yKey: W,
46531
- realisedKey: Q,
46532
- realisedA11yKey: le
46504
+ predictionValueColor: u,
46505
+ className: y = "",
46506
+ style: m = "",
46507
+ variant: g = "horizontal",
46508
+ showMax: k = !1,
46509
+ titleFontSize: _,
46510
+ titleFontWeight: M,
46511
+ subtitleFontSize: v,
46512
+ subtitleFontWeight: w,
46513
+ primaryFontSize: L,
46514
+ primaryFontWeight: N,
46515
+ secondaryFontSize: C,
46516
+ secondaryFontWeight: x,
46517
+ backgroundColor: b = "#f2f9fc",
46518
+ gap: $ = "",
46519
+ disabled: I = !1,
46520
+ positionRelative: S = "",
46521
+ justifyContent: z = "",
46522
+ headerLineHeight: R = "",
46523
+ headerMinHeight: B = "",
46524
+ contentSpace: j = "",
46525
+ titleKey: A,
46526
+ subtitleKey: q,
46527
+ subtitleA11yKey: D,
46528
+ maxBadgeKey: F,
46529
+ maxBadgeA11yKey: V,
46530
+ predictionKey: G,
46531
+ predictionA11yKey: Q,
46532
+ realisedKey: le,
46533
+ realisedA11yKey: ie
46533
46534
  }) => {
46534
- const ie = i !== void 0 ? i : !!o, xe = `${ge.container} ${ge[d]} ${ge[y]} ${$ ? ge.disabled : ""}`, ye = h === "white" ? ge.valuePrimaryWhite : ge.valuePrimaryBlack, Ae = h === "blue" ? ge.valueSecondaryBlue : h === "white" ? ge.valueSecondaryWhite : ge.valueSecondaryBlack, ce = (pe) => pe === void 0 ? void 0 : typeof pe == "number" ? `${pe}px` : pe, ne = (pe) => pe === void 0 ? void 0 : pe, oe = m === "vertical", he = s != null && s !== "" && s !== "-" && s !== "—", fe = oe ? ge.valueRowVertical : ge.valueRowHorizontal;
46535
- return /* @__PURE__ */ f("div", { className: `${xe} ${u}`, style: { backgroundColor: x }, children: [
46536
- t && /* @__PURE__ */ c("div", { className: `${ge.iconWrapper} ${ge[I]}`, children: t }),
46535
+ const xe = i !== void 0 ? i : !!o, ue = `${ge.container} ${ge[d]} ${ge[m]} ${I ? ge.disabled : ""}`, Ae = h === "white" ? ge.valuePrimaryWhite : ge.valuePrimaryBlack, se = h === "blue" ? ge.valueSecondaryBlue : h === "white" ? ge.valueSecondaryWhite : ge.valueSecondaryBlack, ne = (W) => W === void 0 ? void 0 : typeof W == "number" ? `${W}px` : W, oe = (W) => W === void 0 ? void 0 : W, he = g === "vertical", ke = s != null && s !== "" && s !== "-" && s !== "—", fe = he ? ge.valueRowVertical : ge.valueRowHorizontal;
46536
+ return /* @__PURE__ */ f("div", { className: `${ue} ${y}`, style: { backgroundColor: b }, children: [
46537
+ t && /* @__PURE__ */ c("div", { className: `${ge.iconWrapper} ${ge[S]}`, children: t }),
46537
46538
  /* @__PURE__ */ f(
46538
46539
  "div",
46539
46540
  {
46540
- className: `${ge.content} ${ge[b]} ${he ? "" : ge.singleValue} content-indicator-v2`,
46541
- style: { justifyContent: B },
46541
+ className: `${ge.content} ${ge[$]} ${ke ? "" : ge.singleValue} content-indicator-v2`,
46542
+ style: { justifyContent: j },
46542
46543
  children: [
46543
46544
  /* @__PURE__ */ c(
46544
46545
  "div",
46545
46546
  {
46546
- className: `${ge.header} ${ge[S]} ${ge[z]} header-indicator-v2`,
46547
- style: { minHeight: R },
46547
+ className: `${ge.header} ${ge[z]} ${ge[R]} header-indicator-v2`,
46548
+ style: { minHeight: B },
46548
46549
  children: /* @__PURE__ */ c(
46549
46550
  "h6",
46550
46551
  {
46551
46552
  className: `${ge.title}`,
46552
46553
  style: {
46553
- fontSize: ce(k),
46554
- fontWeight: ne(_),
46554
+ fontSize: ne(_),
46555
+ fontWeight: oe(M),
46555
46556
  color: l
46556
46557
  },
46557
- title: J(e, j),
46558
+ title: J(e, A),
46558
46559
  children: n
46559
46560
  }
46560
46561
  )
46561
46562
  }
46562
46563
  ),
46563
- ie && o ? /* @__PURE__ */ c("div", { className: "subtitle-container", children: /* @__PURE__ */ c(
46564
+ xe && o ? /* @__PURE__ */ c("div", { className: "subtitle-container", children: /* @__PURE__ */ c(
46564
46565
  "span",
46565
46566
  {
46566
46567
  className: ge.subtitle,
46567
46568
  style: {
46568
- fontSize: ce(M),
46569
- fontWeight: ne(v)
46569
+ fontSize: ne(v),
46570
+ fontWeight: oe(w)
46570
46571
  },
46571
- title: J(e, A, q),
46572
+ title: J(e, q, D),
46572
46573
  children: o
46573
46574
  }
46574
46575
  ) }) : null,
46575
46576
  /* @__PURE__ */ f("div", { className: `${fe} count-indicator-v2`, children: [
46576
46577
  /* @__PURE__ */ f("div", { className: ge.primaryRow, children: [
46577
- g && /* @__PURE__ */ c(
46578
+ k && /* @__PURE__ */ c(
46578
46579
  "span",
46579
46580
  {
46580
46581
  className: `${ge.maxBadge} max-badge-indicator-v2`,
46581
- title: J(e, D, F),
46582
+ title: J(e, F, V),
46582
46583
  children: "MAX"
46583
46584
  }
46584
46585
  ),
46585
46586
  /* @__PURE__ */ c(
46586
46587
  "span",
46587
46588
  {
46588
- className: `${ge.valuePrimary} ${ye}`,
46589
+ className: `${ge.valuePrimary} ${Ae}`,
46589
46590
  style: {
46590
- fontSize: ce(
46591
- w || (!he && oe ? "1.75rem" : void 0)
46591
+ fontSize: ne(
46592
+ L || (!ke && he ? "1.75rem" : void 0)
46592
46593
  ),
46593
- fontWeight: ne(L),
46594
+ fontWeight: oe(N),
46594
46595
  color: p || void 0
46595
46596
  },
46596
- title: J(e, Q, le),
46597
+ title: J(e, le, ie),
46597
46598
  children: r
46598
46599
  }
46599
46600
  )
46600
46601
  ] }),
46601
- he && /* @__PURE__ */ f(Ie, { children: [
46602
- !oe && /* @__PURE__ */ c(
46602
+ ke && /* @__PURE__ */ f(Ie, { children: [
46603
+ !he && /* @__PURE__ */ c(
46603
46604
  "span",
46604
46605
  {
46605
46606
  className: ge.valueSlash,
46606
46607
  style: {
46607
- fontSize: ce(N),
46608
- fontWeight: ne(C)
46608
+ fontSize: ne(C),
46609
+ fontWeight: oe(x)
46609
46610
  },
46610
46611
  children: "/"
46611
46612
  }
@@ -46613,12 +46614,13 @@ const H6e = (e) => /* @__PURE__ */ ae.createElement("svg", { xmlns: "http://www.
46613
46614
  /* @__PURE__ */ c(
46614
46615
  "span",
46615
46616
  {
46616
- className: `${ge.valueSecondary} ${Ae}`,
46617
+ className: `${ge.valueSecondary} ${se}`,
46617
46618
  style: {
46618
- fontSize: ce(N),
46619
- fontWeight: ne(C)
46619
+ fontSize: ne(C),
46620
+ fontWeight: oe(x),
46621
+ color: u || void 0
46620
46622
  },
46621
- title: J(e, V, W),
46623
+ title: J(e, G, Q),
46622
46624
  children: s
46623
46625
  }
46624
46626
  )
@@ -46780,26 +46782,26 @@ const H6e = (e) => /* @__PURE__ */ ae.createElement("svg", { xmlns: "http://www.
46780
46782
  position: B,
46781
46783
  a11yConfig: j
46782
46784
  }) => {
46783
- const [A, q] = P(!1), D = G(null);
46785
+ const [A, q] = P(!1), D = K(null);
46784
46786
  if (E(() => {
46785
46787
  if (!r || !R) return;
46786
- const V = (W) => {
46787
- (W.type === "scroll" || W.type === "wheel" || W.type === "touchmove" || D.current && !D.current.contains(W.target)) && s();
46788
+ const V = (G) => {
46789
+ (G.type === "scroll" || G.type === "wheel" || G.type === "touchmove" || D.current && !D.current.contains(G.target)) && s();
46788
46790
  };
46789
46791
  return document.addEventListener("mousedown", V), document.addEventListener("scroll", V, !0), document.addEventListener("wheel", V, { passive: !0, capture: !0 }), document.addEventListener("touchmove", V, { passive: !0, capture: !0 }), () => {
46790
46792
  document.removeEventListener("mousedown", V), document.removeEventListener("scroll", V, !0), document.removeEventListener("wheel", V, !0), document.removeEventListener("touchmove", V, !0);
46791
46793
  };
46792
46794
  }, [r, R, s]), !r) return null;
46793
- const F = (V, W = !1) => /* @__PURE__ */ c(
46795
+ const F = (V, G = !1) => /* @__PURE__ */ c(
46794
46796
  WL,
46795
46797
  {
46796
46798
  onClick: V.disabled ? void 0 : V.onClick,
46797
46799
  className: Te.baseButton,
46798
46800
  disabled: V.disabled,
46799
46801
  style: {
46800
- background: V.backgroundColor ?? (W ? "#008FBB" : "#ffffff"),
46801
- color: V.textColor ?? (W ? "#ffffff" : "#374151"),
46802
- border: V.borderColor || W ? "none" : void 0,
46802
+ background: V.backgroundColor ?? (G ? "#008FBB" : "#ffffff"),
46803
+ color: V.textColor ?? (G ? "#ffffff" : "#374151"),
46804
+ border: V.borderColor || G ? "none" : void 0,
46803
46805
  cursor: V.disabled ? V.cursor ?? "not-allowed" : V.cursor ?? "pointer",
46804
46806
  filter: V.disabled ? V.filter ?? "grayscale(0.5)" : V.filter ?? "none",
46805
46807
  opacity: V.disabled ? 0.65 : 1
@@ -46969,31 +46971,31 @@ const H6e = (e) => /* @__PURE__ */ ae.createElement("svg", { xmlns: "http://www.
46969
46971
  a11yConfig: $
46970
46972
  }) => {
46971
46973
  const [I, S] = P(!1), [z, R] = P(null), [B, j] = P(null), [A, q] = P(null), [D, F] = P(null), V = () => {
46972
- F((X) => X === null ? "asc" : X === "asc" ? "desc" : null), b && b();
46973
- }, W = Me(() => D ? [...e].sort((X, Y) => {
46974
- const se = X.title.toLowerCase(), je = Y.title.toLowerCase();
46975
- return D === "asc" ? se.localeCompare(je) : je.localeCompare(se);
46976
- }) : e, [e, D]), Q = () => S(!0), le = () => S(!1), ie = (X) => {
46977
- const Y = X.title?.trim();
46974
+ F((W) => W === null ? "asc" : W === "asc" ? "desc" : null), b && b();
46975
+ }, G = Me(() => D ? [...e].sort((W, Y) => {
46976
+ const re = W.title.toLowerCase(), je = Y.title.toLowerCase();
46977
+ return D === "asc" ? re.localeCompare(je) : je.localeCompare(re);
46978
+ }) : e, [e, D]), Q = () => S(!0), le = () => S(!1), ie = (W) => {
46979
+ const Y = W.title?.trim();
46978
46980
  Y && o && o(Y), le();
46979
- }, xe = (X, Y) => {
46980
- X.stopPropagation(), R(Y);
46981
- }, ye = () => R(null), Ae = (X) => {
46982
- const Y = X.title?.trim();
46983
- z && Y && r && r(z, Y), ye();
46984
- }, ce = (X, Y) => {
46985
- X.stopPropagation(), s && s(Y);
46986
- }, ne = (X, Y) => {
46987
- X.stopPropagation(), i && i(Y);
46988
- }, oe = (X, Y) => {
46989
- j(Y), X.dataTransfer.effectAllowed = "move";
46990
- }, he = (X, Y) => {
46991
- B !== null && (X.preventDefault(), X.dataTransfer.dropEffect = "move", Y !== A && q(Y));
46992
- }, fe = (X, Y) => {
46993
- if (X.preventDefault(), B === null || B === Y || !d) return;
46994
- const se = [...W], [je] = se.splice(B, 1);
46995
- se.splice(Y, 0, je), F(null), d(se), j(null), q(null);
46996
- }, pe = () => {
46981
+ }, xe = (W, Y) => {
46982
+ W.stopPropagation(), R(Y);
46983
+ }, ue = () => R(null), Ae = (W) => {
46984
+ const Y = W.title?.trim();
46985
+ z && Y && r && r(z, Y), ue();
46986
+ }, se = (W, Y) => {
46987
+ W.stopPropagation(), s && s(Y);
46988
+ }, ne = (W, Y) => {
46989
+ W.stopPropagation(), i && i(Y);
46990
+ }, oe = (W, Y) => {
46991
+ j(Y), W.dataTransfer.effectAllowed = "move";
46992
+ }, he = (W, Y) => {
46993
+ B !== null && (W.preventDefault(), W.dataTransfer.dropEffect = "move", Y !== A && q(Y));
46994
+ }, ke = (W, Y) => {
46995
+ if (W.preventDefault(), B === null || B === Y || !d) return;
46996
+ const re = [...G], [je] = re.splice(B, 1);
46997
+ re.splice(Y, 0, je), F(null), d(re), j(null), q(null);
46998
+ }, fe = () => {
46997
46999
  j(null), q(null);
46998
47000
  };
46999
47001
  return /* @__PURE__ */ f("div", { className: "module-sidebar-v2", children: [
@@ -47024,34 +47026,34 @@ const H6e = (e) => /* @__PURE__ */ ae.createElement("svg", { xmlns: "http://www.
47024
47026
  )),
47025
47027
  l,
47026
47028
  " ",
47027
- N && `(${W.length})`
47029
+ N && `(${G.length})`
47028
47030
  ] }),
47029
47031
  L && /* @__PURE__ */ c(U1, { size: 18, className: "add-view-icon", onClick: Q })
47030
47032
  ] }) }),
47031
- /* @__PURE__ */ c("div", { className: "module-list", children: W.map((X, Y) => /* @__PURE__ */ f(
47033
+ /* @__PURE__ */ c("div", { className: "module-list", children: G.map((W, Y) => /* @__PURE__ */ f(
47032
47034
  "div",
47033
47035
  {
47034
- className: `module-item ${X.id === t ? "selected" : ""} ${A === Y && B !== Y ? "drag-over" : ""} ${B === Y ? "dragging" : ""}`,
47035
- onClick: () => n && n(X),
47036
+ className: `module-item ${W.id === t ? "selected" : ""} ${A === Y && B !== Y ? "drag-over" : ""} ${B === Y ? "dragging" : ""}`,
47037
+ onClick: () => n && n(W),
47036
47038
  draggable: !!d,
47037
- onDragStart: d ? (se) => oe(se, Y) : void 0,
47038
- onDragOver: d ? (se) => he(se, Y) : void 0,
47039
- onDrop: d ? (se) => fe(se, Y) : void 0,
47040
- onDragEnd: d ? pe : void 0,
47039
+ onDragStart: d ? (re) => oe(re, Y) : void 0,
47040
+ onDragOver: d ? (re) => he(re, Y) : void 0,
47041
+ onDrop: d ? (re) => ke(re, Y) : void 0,
47042
+ onDragEnd: d ? fe : void 0,
47041
47043
  children: [
47042
- X.icon || /* @__PURE__ */ c(Ei, { size: 18, className: "drag-handle" }),
47043
- /* @__PURE__ */ f("div", { className: "module-content", title: J(X.a11yConfig, X.titleKey), children: [
47044
- /* @__PURE__ */ c("div", { className: "module-title", children: X.title }),
47045
- X.subtitle && /* @__PURE__ */ c("div", { className: "module-subtitle", children: X.subtitle })
47044
+ W.icon || /* @__PURE__ */ c(Ei, { size: 18, className: "drag-handle" }),
47045
+ /* @__PURE__ */ f("div", { className: "module-content", title: J(W.a11yConfig, W.titleKey), children: [
47046
+ /* @__PURE__ */ c("div", { className: "module-title", children: W.title }),
47047
+ W.subtitle && /* @__PURE__ */ c("div", { className: "module-subtitle", children: W.subtitle })
47046
47048
  ] }),
47047
- typeof X.count < "u" && /* @__PURE__ */ c("span", { className: "module-count", children: X.count }),
47049
+ typeof W.count < "u" && /* @__PURE__ */ c("span", { className: "module-count", children: W.count }),
47048
47050
  x && /* @__PURE__ */ f("div", { className: "module-actions", children: [
47049
47051
  i && /* @__PURE__ */ c(
47050
47052
  W1,
47051
47053
  {
47052
47054
  size: 14,
47053
47055
  className: "action-icon add",
47054
- onClick: (se) => ne(se, X)
47056
+ onClick: (re) => ne(re, W)
47055
47057
  }
47056
47058
  ),
47057
47059
  r && /* @__PURE__ */ c(
@@ -47059,7 +47061,7 @@ const H6e = (e) => /* @__PURE__ */ ae.createElement("svg", { xmlns: "http://www.
47059
47061
  {
47060
47062
  size: 12,
47061
47063
  className: "action-icon edit",
47062
- onClick: (se) => xe(se, X)
47064
+ onClick: (re) => xe(re, W)
47063
47065
  }
47064
47066
  ),
47065
47067
  s && /* @__PURE__ */ c(
@@ -47067,13 +47069,13 @@ const H6e = (e) => /* @__PURE__ */ ae.createElement("svg", { xmlns: "http://www.
47067
47069
  {
47068
47070
  size: 12,
47069
47071
  className: "action-icon delete",
47070
- onClick: (se) => ce(se, X)
47072
+ onClick: (re) => se(re, W)
47071
47073
  }
47072
47074
  )
47073
47075
  ] })
47074
47076
  ]
47075
47077
  },
47076
- X.id
47078
+ W.id
47077
47079
  )) }),
47078
47080
  /* @__PURE__ */ c(
47079
47081
  fi,
@@ -47091,7 +47093,7 @@ const H6e = (e) => /* @__PURE__ */ ae.createElement("svg", { xmlns: "http://www.
47091
47093
  fi,
47092
47094
  {
47093
47095
  isOpen: !!z,
47094
- onClose: ye,
47096
+ onClose: ue,
47095
47097
  onSave: Ae,
47096
47098
  title: m,
47097
47099
  initialValues: { title: z.title },
@@ -47112,12 +47114,12 @@ const H6e = (e) => /* @__PURE__ */ ae.createElement("svg", { xmlns: "http://www.
47112
47114
  onDelete: r,
47113
47115
  a11yConfig: s
47114
47116
  }) => {
47115
- const [d, l] = P(!1), [h, p] = P(e), [u, y] = P(null), [m, g] = P(""), [k, _] = P(!1), [M, v] = P(""), [w, L] = P(""), N = re.useMemo(() => {
47117
+ const [d, l] = P(!1), [h, p] = P(e), [u, y] = P(null), [m, g] = P(""), [k, _] = P(!1), [M, v] = P(""), [w, L] = P(""), N = ce.useMemo(() => {
47116
47118
  const A = {};
47117
47119
  return Array.isArray(t) && t.forEach((q) => {
47118
47120
  q && q.language && (A[q.language.toUpperCase()] = q.value);
47119
47121
  }), A;
47120
- }, [t]), C = re.useMemo(() => n, [n]), x = () => {
47122
+ }, [t]), C = ce.useMemo(() => n, [n]), x = () => {
47121
47123
  l(!1), h !== e && h.trim() !== "" ? i && i(h.trim()) : p(e);
47122
47124
  }, b = (A) => {
47123
47125
  A.key === "Enter" ? x() : A.key === "Escape" && (p(e), l(!1));
@@ -47319,7 +47321,7 @@ const H6e = (e) => /* @__PURE__ */ ae.createElement("svg", { xmlns: "http://www.
47319
47321
  disabled: d = !1,
47320
47322
  allowWrap: l = !1
47321
47323
  }) => {
47322
- const [h, p] = P(!1), [u, y] = P(""), m = G(null), g = G(null), k = G(null), _ = G(null), [M, v] = P(null), [w, L] = P(!1), N = G([]), C = G(null), x = Me(() => {
47324
+ const [h, p] = P(!1), [u, y] = P(""), m = K(null), g = K(null), k = K(null), _ = K(null), [M, v] = P(null), [w, L] = P(!1), N = K([]), C = K(null), x = Me(() => {
47323
47325
  const q = new Map(e.map((D) => [D.value, D]));
47324
47326
  return n.map((D) => q.get(D)).filter((D) => D !== void 0);
47325
47327
  }, [e, n]), b = Me(
@@ -47348,37 +47350,37 @@ const H6e = (e) => /* @__PURE__ */ ae.createElement("svg", { xmlns: "http://www.
47348
47350
  }
47349
47351
  x.length > N.current.length && v(null);
47350
47352
  const q = () => {
47351
- const W = k.current, Q = _.current;
47352
- if (!W || !Q) return;
47353
- const le = Q.getBoundingClientRect().width, ie = Q.querySelector(`.${de.actions}`), xe = ie ? ie.getBoundingClientRect().width : 80, ye = 56, Ae = r ? 80 : 0, ce = 16, ne = Array.from(W.querySelectorAll(`.${de.tag}`));
47353
+ const G = k.current, Q = _.current;
47354
+ if (!G || !Q) return;
47355
+ const le = Q.getBoundingClientRect().width, ie = Q.querySelector(`.${de.actions}`), xe = ie ? ie.getBoundingClientRect().width : 80, ue = 56, Ae = r ? 80 : 0, se = 16, ne = Array.from(G.querySelectorAll(`.${de.tag}`));
47354
47356
  ne.length === x.length && (N.current = ne.map((Le) => {
47355
47357
  const Oe = Le.getBoundingClientRect(), wt = Le.scrollWidth;
47356
47358
  return Math.max(Oe.width, wt, Le.offsetWidth || 0);
47357
47359
  }));
47358
- const oe = N.current, he = oe.length > 0 ? oe.reduce((Le, Oe) => Le + Oe, 0) / oe.length : 120, fe = x.length <= oe.length ? oe.slice(0, x.length) : [...oe, ...Array(x.length - oe.length).fill(he)], pe = 4, X = Math.max(
47360
+ const oe = N.current, he = oe.length > 0 ? oe.reduce((Le, Oe) => Le + Oe, 0) / oe.length : 120, ke = x.length <= oe.length ? oe.slice(0, x.length) : [...oe, ...Array(x.length - oe.length).fill(he)], fe = 4, W = Math.max(
47359
47361
  0,
47360
- le - xe - Ae - ce
47362
+ le - xe - Ae - se
47361
47363
  );
47362
- let Y = 0, se = 0;
47364
+ let Y = 0, re = 0;
47363
47365
  for (let Le = 0; Le < x.length; Le++) {
47364
- const Oe = fe[Le] ?? 120;
47365
- if (Y + Oe + pe > X) break;
47366
- Y += Oe + pe, se++;
47366
+ const Oe = ke[Le] ?? 120;
47367
+ if (Y + Oe + fe > W) break;
47368
+ Y += Oe + fe, re++;
47367
47369
  }
47368
- if (se >= x.length) {
47370
+ if (re >= x.length) {
47369
47371
  v(null);
47370
47372
  return;
47371
47373
  }
47372
47374
  const je = Math.max(
47373
47375
  0,
47374
- le - ye - xe - Ae - ce
47376
+ le - ue - xe - Ae - se
47375
47377
  );
47376
47378
  Y = 0;
47377
47379
  let Re = 0;
47378
47380
  for (let Le = 0; Le < x.length; Le++) {
47379
- const Oe = fe[Le] ?? 120;
47380
- if (Y + Oe + pe > je) break;
47381
- Y += Oe + pe, Re++;
47381
+ const Oe = ke[Le] ?? 120;
47382
+ if (Y + Oe + fe > je) break;
47383
+ Y += Oe + fe, Re++;
47382
47384
  }
47383
47385
  Re < x.length && Re > 0 ? v(Re) : v(null);
47384
47386
  }, D = requestAnimationFrame(() => {
@@ -47870,7 +47872,7 @@ const H6e = (e) => /* @__PURE__ */ ae.createElement("svg", { xmlns: "http://www.
47870
47872
  }, C = Me(() => e.map((I) => ({
47871
47873
  ...I,
47872
47874
  displayValue: v.has(I.nom) ? I.value : 0
47873
- })), [e, v]), x = Me(() => e.every((I) => I.value === 0), [e]), b = Me(() => x ? 1 : C.reduce((I, S) => I + S.displayValue, 0) || 1, [x, C]), $ = re.useCallback(
47875
+ })), [e, v]), x = Me(() => e.every((I) => I.value === 0), [e]), b = Me(() => x ? 1 : C.reduce((I, S) => I + S.displayValue, 0) || 1, [x, C]), $ = ce.useCallback(
47874
47876
  ({ cx: I, cy: S, midAngle: z, innerRadius: R, outerRadius: B, value: j }) => {
47875
47877
  if (j === 0 || x) return null;
47876
47878
  const A = R + (B - R) * 0.5, q = I + A * Math.cos(-z * U$), D = S + A * Math.sin(-z * U$), F = Math.round(j / b * 100);
@@ -48174,7 +48176,7 @@ const H6e = (e) => /* @__PURE__ */ ae.createElement("svg", { xmlns: "http://www.
48174
48176
  &:hover {
48175
48177
  border-color: ${(e) => e.$activeColor};
48176
48178
  }
48177
- `, O9e = re.memo(
48179
+ `, O9e = ce.memo(
48178
48180
  ({
48179
48181
  item: e,
48180
48182
  activeColor: t,
@@ -48374,7 +48376,7 @@ const H6e = (e) => /* @__PURE__ */ ae.createElement("svg", { xmlns: "http://www.
48374
48376
  ariaLabelledBy: m,
48375
48377
  a11yConfig: g
48376
48378
  }) => {
48377
- const [k, _] = P(!1), M = G(null), v = (I) => {
48379
+ const [k, _] = P(!1), M = K(null), v = (I) => {
48378
48380
  if (I instanceof Date)
48379
48381
  return {
48380
48382
  h: I.getHours().toString().padStart(2, "0"),
@@ -48940,13 +48942,13 @@ const H6e = (e) => /* @__PURE__ */ ae.createElement("svg", { xmlns: "http://www.
48940
48942
  rmBadge: D,
48941
48943
  isReservationToday: F = !1
48942
48944
  }) => {
48943
- const V = e === "small", W = `
48945
+ const V = e === "small", G = `
48944
48946
  ${U.patientCard}
48945
48947
  ${V ? U.small : ""}
48946
48948
  ${q ? U.notAllowedCursor : ""}
48947
48949
  ${t}
48948
48950
  `.trim();
48949
- return /* @__PURE__ */ c("div", { className: W, style: n, children: /* @__PURE__ */ f("div", { className: U.innerPadding, children: [
48951
+ return /* @__PURE__ */ c("div", { className: G, style: n, children: /* @__PURE__ */ f("div", { className: U.innerPadding, children: [
48950
48952
  /* @__PURE__ */ f(
48951
48953
  "div",
48952
48954
  {
@@ -49143,7 +49145,7 @@ const H6e = (e) => /* @__PURE__ */ ae.createElement("svg", { xmlns: "http://www.
49143
49145
  className: o = "",
49144
49146
  activeClassName: i = "is-drag-over"
49145
49147
  }) => {
49146
- const [r, s] = P(!1), d = G(0), l = (m) => {
49148
+ const [r, s] = P(!1), d = K(0), l = (m) => {
49147
49149
  m.preventDefault(), d.current += 1, d.current > 0 && s(!0);
49148
49150
  }, h = (m) => {
49149
49151
  m.preventDefault(), m.dataTransfer.dropEffect = "move";