@dataesr/dsfr-plus 0.5.4 → 0.6.1

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/dsfr-plus.js CHANGED
@@ -3,6 +3,8 @@ import { jsxs as O, jsx as m, Fragment as In } from "react/jsx-runtime";
3
3
  import $ from "classnames";
4
4
  import * as vt from "react";
5
5
  import Q, { useState as X, useEffect as W, forwardRef as be, useId as ne, useRef as k, useCallback as te, isValidElement as $e, Children as Ot, Fragment as xn, createContext as Rt, useMemo as re, useContext as Se, useReducer as us, createElement as ir, cloneElement as _e } from "react";
6
+ import "@gouvfr/dsfr/dist/dsfr.min.css";
7
+ import "@gouvfr/dsfr/dist/utility/utility.min.css";
6
8
  import Bn, { flushSync as as, createPortal as cs } from "react-dom";
7
9
  const ds = {
8
10
  config: { attributes: !0, childList: !1, subtree: !1 }
@@ -75,10 +77,10 @@ function et(t, e) {
75
77
  function bs(t, e) {
76
78
  return Ot.toArray(t).filter((n) => $e(n) && !e.includes(n.type));
77
79
  }
78
- const ad = ({ children: t, className: e, ...n }) => {
80
+ const dd = ({ children: t, className: e, ...n }) => {
79
81
  const r = ne();
80
82
  return /* @__PURE__ */ m("div", { className: $("fr-accordions-group", e), ...n, children: de(t, ps).map((o, i) => /* @__PURE__ */ m(xn, { children: o }, `${r}-d${i}`)) });
81
- }, cd = be(({
83
+ }, fd = be(({
82
84
  className: t,
83
85
  closeMode: e = "disallow",
84
86
  description: n,
@@ -199,18 +201,18 @@ function gs(t) {
199
201
  let g = re(() => lr(v ? [] : f), [
200
202
  v,
201
203
  f
202
- ]), _ = k(nt), [w, S] = X(nt), K = k(nt), x = () => {
204
+ ]), A = k(nt), [w, S] = X(nt), K = k(nt), x = () => {
203
205
  if (!M)
204
206
  return;
205
207
  R(!1);
206
- let P = a || i || _.current;
208
+ let P = a || i || A.current;
207
209
  Qt(P, K.current) || (K.current = P, S(P));
208
210
  }, [M, R] = X(!1);
209
211
  return W(x), {
210
212
  realtimeValidation: u || g || a || i || nt,
211
213
  displayValidation: s === "native" ? u || g || w : u || g || a || i || w,
212
214
  updateValidation(P) {
213
- s === "aria" && !Qt(w, P) ? S(P) : _.current = P;
215
+ s === "aria" && !Qt(w, P) ? S(P) : A.current = P;
214
216
  },
215
217
  resetValidation() {
216
218
  let P = nt;
@@ -545,18 +547,18 @@ function uo(t) {
545
547
  t.defaultSelectedKeys
546
548
  ]), [d, v] = tt(f, p, t.onSelectionChange), h = re(() => t.disabledKeys ? new Set(t.disabledKeys) : /* @__PURE__ */ new Set(), [
547
549
  t.disabledKeys
548
- ]), [g, _] = X(o);
549
- o === "replace" && g === "toggle" && typeof d == "object" && d.size === 0 && _("replace");
550
+ ]), [g, A] = X(o);
551
+ o === "replace" && g === "toggle" && typeof d == "object" && d.size === 0 && A("replace");
550
552
  let w = k(o);
551
553
  return W(() => {
552
- o !== w.current && (_(o), w.current = o);
554
+ o !== w.current && (A(o), w.current = o);
553
555
  }, [
554
556
  o
555
557
  ]), {
556
558
  selectionMode: e,
557
559
  disallowEmptySelection: n,
558
560
  selectionBehavior: g,
559
- setSelectionBehavior: _,
561
+ setSelectionBehavior: A,
560
562
  get isFocused() {
561
563
  return l.current;
562
564
  },
@@ -1009,13 +1011,13 @@ function Ss(t) {
1009
1011
  t.onSelectionChange && t.onSelectionChange(ee), ee === w && (H(), D());
1010
1012
  };
1011
1013
  var h;
1012
- let { collection: g, selectionManager: _, selectedKey: w, setSelectedKey: S, selectedItem: K, disabledKeys: x } = fo({
1014
+ let { collection: g, selectionManager: A, selectedKey: w, setSelectedKey: S, selectedItem: K, disabledKeys: x } = fo({
1013
1015
  ...t,
1014
1016
  onSelectionChange: v,
1015
1017
  items: (h = t.items) !== null && h !== void 0 ? h : t.defaultItems
1016
1018
  });
1017
1019
  var M, R;
1018
- let [b, A] = tt(t.inputValue, (R = (M = t.defaultInputValue) !== null && M !== void 0 ? M : (e = g.getItem(w)) === null || e === void 0 ? void 0 : e.textValue) !== null && R !== void 0 ? R : "", t.onInputChange), P = g, C = re(() => (
1020
+ let [b, _] = tt(t.inputValue, (R = (M = t.defaultInputValue) !== null && M !== void 0 ? M : (e = g.getItem(w)) === null || e === void 0 ? void 0 : e.textValue) !== null && R !== void 0 ? R : "", t.onInputChange), P = g, C = re(() => (
1019
1021
  // No default filter if items are controlled.
1020
1022
  t.items != null || !r ? g : Ts(g, b, r)
1021
1023
  ), [
@@ -1026,7 +1028,7 @@ function Ss(t) {
1026
1028
  ]), [B, E] = X(C), T = k("focus"), V = Vn({
1027
1029
  ...t,
1028
1030
  onOpenChange: (ee) => {
1029
- t.onOpenChange && t.onOpenChange(ee, ee ? T.current : void 0), _.setFocused(ee), ee || _.setFocusedKey(null);
1031
+ t.onOpenChange && t.onOpenChange(ee, ee ? T.current : void 0), A.setFocused(ee), ee || A.setFocusedKey(null);
1030
1032
  },
1031
1033
  isOpen: void 0,
1032
1034
  defaultOpen: void 0
@@ -1055,7 +1057,7 @@ function Ss(t) {
1055
1057
  ]), [z, j] = X(b), H = () => {
1056
1058
  var ee, ce;
1057
1059
  let ve = (ce = (ee = g.getItem(w)) === null || ee === void 0 ? void 0 : ee.textValue) !== null && ce !== void 0 ? ce : "";
1058
- j(ve), A(ve);
1060
+ j(ve), _(ve);
1059
1061
  };
1060
1062
  var Y, U;
1061
1063
  let L = k((U = (Y = t.selectedKey) !== null && Y !== void 0 ? Y : t.defaultSelectedKey) !== null && U !== void 0 ? U : null);
@@ -1063,10 +1065,10 @@ function Ss(t) {
1063
1065
  let Z = k((I = (n = g.getItem(w)) === null || n === void 0 ? void 0 : n.textValue) !== null && I !== void 0 ? I : "");
1064
1066
  W(() => {
1065
1067
  var ee;
1066
- c && (C.size > 0 || i) && !V.isOpen && b !== z && o !== "manual" && F(null, "input"), !u && !i && V.isOpen && C.size === 0 && D(), w != null && w !== L.current && D(), b !== z && (_.setFocusedKey(null), a(!1), b === "" && (t.inputValue === void 0 || t.selectedKey === void 0) && S(null)), w !== L.current && (t.inputValue === void 0 || t.selectedKey === void 0) ? H() : z !== b && j(b);
1068
+ c && (C.size > 0 || i) && !V.isOpen && b !== z && o !== "manual" && F(null, "input"), !u && !i && V.isOpen && C.size === 0 && D(), w != null && w !== L.current && D(), b !== z && (A.setFocusedKey(null), a(!1), b === "" && (t.inputValue === void 0 || t.selectedKey === void 0) && S(null)), w !== L.current && (t.inputValue === void 0 || t.selectedKey === void 0) ? H() : z !== b && j(b);
1067
1069
  var ce;
1068
1070
  let ve = (ce = (ee = g.getItem(w)) === null || ee === void 0 ? void 0 : ee.textValue) !== null && ce !== void 0 ? ce : "";
1069
- !c && w != null && t.inputValue === void 0 && w === L.current && Z.current !== ve && (j(ve), A(ve)), L.current = w, Z.current = ve;
1071
+ !c && w != null && t.inputValue === void 0 && w === L.current && Z.current !== ve && (j(ve), _(ve)), L.current = w, Z.current = ve;
1070
1072
  });
1071
1073
  let G = On({
1072
1074
  ...t,
@@ -1100,7 +1102,7 @@ function Ss(t) {
1100
1102
  ye();
1101
1103
  };
1102
1104
  let mt = () => {
1103
- V.isOpen && _.focusedKey != null ? w === _.focusedKey ? ye() : S(_.focusedKey) : ke();
1105
+ V.isOpen && A.focusedKey != null ? w === A.focusedKey ? ye() : S(A.focusedKey) : ke();
1104
1106
  }, or = k(b), ls = (ee) => {
1105
1107
  ee ? (or.current = b, o === "focus" && F(null, "focus")) : (s && ke(), b !== or.current && G.commitValidation()), f(ee);
1106
1108
  }, ss = re(() => V.isOpen ? u ? P : C : B, [
@@ -1117,7 +1119,7 @@ function Ss(t) {
1117
1119
  toggle: ue,
1118
1120
  open: F,
1119
1121
  close: ke,
1120
- selectionManager: _,
1122
+ selectionManager: A,
1121
1123
  selectedKey: w,
1122
1124
  setSelectedKey: S,
1123
1125
  disabledKeys: x,
@@ -1126,7 +1128,7 @@ function Ss(t) {
1126
1128
  selectedItem: K,
1127
1129
  collection: ss,
1128
1130
  inputValue: b,
1129
- setInputValue: A,
1131
+ setInputValue: _,
1130
1132
  commit: mt,
1131
1133
  revert: J
1132
1134
  };
@@ -1537,7 +1539,7 @@ function Ms(t, e) {
1537
1539
  throw new Error(`Invalid state "${t.state}"`);
1538
1540
  }
1539
1541
  }
1540
- function dd(t) {
1542
+ function pd(t) {
1541
1543
  const { load: e, sort: n, initialSelectedKeys: r, initialSortDescriptor: o, getKey: i = (f) => f.id || f.key, initialFilterText: l = "" } = t;
1542
1544
  let [s, u] = us(Ms, {
1543
1545
  state: "idle",
@@ -1555,7 +1557,7 @@ function dd(t) {
1555
1557
  abortController: d
1556
1558
  });
1557
1559
  var v;
1558
- let _ = (v = f.filterText) !== null && v !== void 0 ? v : s.filterText;
1560
+ let A = (v = f.filterText) !== null && v !== void 0 ? v : s.filterText;
1559
1561
  var h;
1560
1562
  let w = await p({
1561
1563
  items: s.items.slice(),
@@ -1563,22 +1565,22 @@ function dd(t) {
1563
1565
  sortDescriptor: (h = f.sortDescriptor) !== null && h !== void 0 ? h : s.sortDescriptor,
1564
1566
  signal: d.signal,
1565
1567
  cursor: f.type === "loadingMore" ? s.cursor : null,
1566
- filterText: _
1568
+ filterText: A
1567
1569
  });
1568
1570
  var g;
1569
- let S = (g = w.filterText) !== null && g !== void 0 ? g : _;
1571
+ let S = (g = w.filterText) !== null && g !== void 0 ? g : A;
1570
1572
  u({
1571
1573
  type: "success",
1572
1574
  ...w,
1573
1575
  abortController: d
1574
- }), S && S !== _ && !d.signal.aborted && a({
1576
+ }), S && S !== A && !d.signal.aborted && a({
1575
1577
  type: "filtering",
1576
1578
  filterText: S
1577
1579
  }, e);
1578
- } catch (_) {
1580
+ } catch (A) {
1579
1581
  u({
1580
1582
  type: "error",
1581
- error: _,
1583
+ error: A,
1582
1584
  abortController: d
1583
1585
  });
1584
1586
  }
@@ -2387,48 +2389,48 @@ function qt(t) {
2387
2389
  target: null,
2388
2390
  isOverTarget: !1,
2389
2391
  pointerType: null
2390
- }), { addGlobalListener: g, removeAllGlobalListeners: _ } = yo(), w = xe((b, A) => {
2392
+ }), { addGlobalListener: g, removeAllGlobalListeners: A } = yo(), w = xe((b, _) => {
2391
2393
  let P = h.current;
2392
2394
  if (l || P.didFirePressStart)
2393
2395
  return !1;
2394
2396
  let C = !0;
2395
2397
  if (P.isTriggeringEvent = !0, r) {
2396
- let B = new yt("pressstart", A, b);
2398
+ let B = new yt("pressstart", _, b);
2397
2399
  r(B), C = B.shouldStopPropagation;
2398
2400
  }
2399
2401
  return n && n(!0), P.isTriggeringEvent = !1, P.didFirePressStart = !0, v(!0), C;
2400
- }), S = xe((b, A, P = !0) => {
2402
+ }), S = xe((b, _, P = !0) => {
2401
2403
  let C = h.current;
2402
2404
  if (!C.didFirePressStart)
2403
2405
  return !1;
2404
2406
  C.ignoreClickAfterPress = !0, C.didFirePressStart = !1, C.isTriggeringEvent = !0;
2405
2407
  let B = !0;
2406
2408
  if (o) {
2407
- let E = new yt("pressend", A, b);
2409
+ let E = new yt("pressend", _, b);
2408
2410
  o(E), B = E.shouldStopPropagation;
2409
2411
  }
2410
2412
  if (n && n(!1), v(!1), e && P && !l) {
2411
- let E = new yt("press", A, b);
2413
+ let E = new yt("press", _, b);
2412
2414
  e(E), B && (B = E.shouldStopPropagation);
2413
2415
  }
2414
2416
  return C.isTriggeringEvent = !1, B;
2415
- }), K = xe((b, A) => {
2417
+ }), K = xe((b, _) => {
2416
2418
  let P = h.current;
2417
2419
  if (l)
2418
2420
  return !1;
2419
2421
  if (i) {
2420
2422
  P.isTriggeringEvent = !0;
2421
- let C = new yt("pressup", A, b);
2423
+ let C = new yt("pressup", _, b);
2422
2424
  return i(C), P.isTriggeringEvent = !1, C.shouldStopPropagation;
2423
2425
  }
2424
2426
  return !0;
2425
2427
  }), x = xe((b) => {
2426
- let A = h.current;
2427
- A.isPressed && A.target && (A.isOverTarget && A.pointerType != null && S(Ke(A.target, b), A.pointerType, !1), A.isPressed = !1, A.isOverTarget = !1, A.activePointerId = null, A.pointerType = null, _(), c || gt(A.target));
2428
+ let _ = h.current;
2429
+ _.isPressed && _.target && (_.isOverTarget && _.pointerType != null && S(Ke(_.target, b), _.pointerType, !1), _.isPressed = !1, _.isOverTarget = !1, _.activePointerId = null, _.pointerType = null, A(), c || gt(_.target));
2428
2430
  }), M = xe((b) => {
2429
2431
  a && x(b);
2430
2432
  }), R = re(() => {
2431
- let b = h.current, A = {
2433
+ let b = h.current, _ = {
2432
2434
  onKeyDown(C) {
2433
2435
  if (on(C.nativeEvent, C.currentTarget) && C.currentTarget.contains(C.target)) {
2434
2436
  var B;
@@ -2458,7 +2460,7 @@ function qt(t) {
2458
2460
  var E;
2459
2461
  xr(C.target, C.key) && C.preventDefault();
2460
2462
  let q = C.target, V = S(Ke(b.target, C), "keyboard", b.target.contains(q));
2461
- _(), V && C.stopPropagation(), C.key !== "Enter" && Hn(b.target) && b.target.contains(q) && !C[$r] && (C[$r] = !0, Re(b.target, C, !1)), b.isPressed = !1, (E = b.metaKeyEvents) === null || E === void 0 || E.delete(C.key);
2463
+ A(), V && C.stopPropagation(), C.key !== "Enter" && Hn(b.target) && b.target.contains(q) && !C[$r] && (C[$r] = !0, Re(b.target, C, !1)), b.isPressed = !1, (E = b.metaKeyEvents) === null || E === void 0 || E.delete(C.key);
2462
2464
  } else if (C.key === "Meta" && (!((B = b.metaKeyEvents) === null || B === void 0) && B.size)) {
2463
2465
  var T;
2464
2466
  let q = b.metaKeyEvents;
@@ -2468,7 +2470,7 @@ function qt(t) {
2468
2470
  }
2469
2471
  };
2470
2472
  if (typeof PointerEvent < "u") {
2471
- A.onPointerDown = (T) => {
2473
+ _.onPointerDown = (T) => {
2472
2474
  if (T.button !== 0 || !T.currentTarget.contains(T.target))
2473
2475
  return;
2474
2476
  if (hu(T.nativeEvent)) {
@@ -2478,23 +2480,23 @@ function qt(t) {
2478
2480
  ln(T.currentTarget) && T.preventDefault(), b.pointerType = T.pointerType;
2479
2481
  let q = !0;
2480
2482
  b.isPressed || (b.isPressed = !0, b.isOverTarget = !0, b.activePointerId = T.pointerId, b.target = T.currentTarget, !l && !u && Fe(T.currentTarget), c || gr(b.target), q = w(T, b.pointerType), g(pe(T.currentTarget), "pointermove", C, !1), g(pe(T.currentTarget), "pointerup", B, !1), g(pe(T.currentTarget), "pointercancel", E, !1)), q && T.stopPropagation();
2481
- }, A.onMouseDown = (T) => {
2483
+ }, _.onMouseDown = (T) => {
2482
2484
  T.currentTarget.contains(T.target) && T.button === 0 && (ln(T.currentTarget) && T.preventDefault(), T.stopPropagation());
2483
- }, A.onPointerUp = (T) => {
2485
+ }, _.onPointerUp = (T) => {
2484
2486
  !T.currentTarget.contains(T.target) || b.pointerType === "virtual" || T.button === 0 && Ue(T, T.currentTarget) && K(T, b.pointerType || T.pointerType);
2485
2487
  };
2486
2488
  let C = (T) => {
2487
2489
  T.pointerId === b.activePointerId && (b.target && Ue(T, b.target) ? !b.isOverTarget && b.pointerType != null && (b.isOverTarget = !0, w(Ke(b.target, T), b.pointerType)) : b.target && b.isOverTarget && b.pointerType != null && (b.isOverTarget = !1, S(Ke(b.target, T), b.pointerType, !1), M(T)));
2488
2490
  }, B = (T) => {
2489
- T.pointerId === b.activePointerId && b.isPressed && T.button === 0 && b.target && (Ue(T, b.target) && b.pointerType != null ? S(Ke(b.target, T), b.pointerType) : b.isOverTarget && b.pointerType != null && S(Ke(b.target, T), b.pointerType, !1), b.isPressed = !1, b.isOverTarget = !1, b.activePointerId = null, b.pointerType = null, _(), c || gt(b.target));
2491
+ T.pointerId === b.activePointerId && b.isPressed && T.button === 0 && b.target && (Ue(T, b.target) && b.pointerType != null ? S(Ke(b.target, T), b.pointerType) : b.isOverTarget && b.pointerType != null && S(Ke(b.target, T), b.pointerType, !1), b.isPressed = !1, b.isOverTarget = !1, b.activePointerId = null, b.pointerType = null, A(), c || gt(b.target));
2490
2492
  }, E = (T) => {
2491
2493
  x(T);
2492
2494
  };
2493
- A.onDragStart = (T) => {
2495
+ _.onDragStart = (T) => {
2494
2496
  T.currentTarget.contains(T.target) && x(T);
2495
2497
  };
2496
2498
  } else {
2497
- A.onMouseDown = (E) => {
2499
+ _.onMouseDown = (E) => {
2498
2500
  if (E.button !== 0 || !E.currentTarget.contains(E.target))
2499
2501
  return;
2500
2502
  if (ln(E.currentTarget) && E.preventDefault(), b.ignoreEmulatedMouseEvents) {
@@ -2502,36 +2504,36 @@ function qt(t) {
2502
2504
  return;
2503
2505
  }
2504
2506
  b.isPressed = !0, b.isOverTarget = !0, b.target = E.currentTarget, b.pointerType = Tn(E.nativeEvent) ? "virtual" : "mouse", !l && !u && Fe(E.currentTarget), w(E, b.pointerType) && E.stopPropagation(), g(pe(E.currentTarget), "mouseup", C, !1);
2505
- }, A.onMouseEnter = (E) => {
2507
+ }, _.onMouseEnter = (E) => {
2506
2508
  if (!E.currentTarget.contains(E.target))
2507
2509
  return;
2508
2510
  let T = !0;
2509
2511
  b.isPressed && !b.ignoreEmulatedMouseEvents && b.pointerType != null && (b.isOverTarget = !0, T = w(E, b.pointerType)), T && E.stopPropagation();
2510
- }, A.onMouseLeave = (E) => {
2512
+ }, _.onMouseLeave = (E) => {
2511
2513
  if (!E.currentTarget.contains(E.target))
2512
2514
  return;
2513
2515
  let T = !0;
2514
2516
  b.isPressed && !b.ignoreEmulatedMouseEvents && b.pointerType != null && (b.isOverTarget = !1, T = S(E, b.pointerType, !1), M(E)), T && E.stopPropagation();
2515
- }, A.onMouseUp = (E) => {
2517
+ }, _.onMouseUp = (E) => {
2516
2518
  E.currentTarget.contains(E.target) && !b.ignoreEmulatedMouseEvents && E.button === 0 && K(E, b.pointerType || "mouse");
2517
2519
  };
2518
2520
  let C = (E) => {
2519
2521
  if (E.button === 0) {
2520
- if (b.isPressed = !1, _(), b.ignoreEmulatedMouseEvents) {
2522
+ if (b.isPressed = !1, A(), b.ignoreEmulatedMouseEvents) {
2521
2523
  b.ignoreEmulatedMouseEvents = !1;
2522
2524
  return;
2523
2525
  }
2524
2526
  b.target && Ue(E, b.target) && b.pointerType != null ? S(Ke(b.target, E), b.pointerType) : b.target && b.isOverTarget && b.pointerType != null && S(Ke(b.target, E), b.pointerType, !1), b.isOverTarget = !1;
2525
2527
  }
2526
2528
  };
2527
- A.onTouchStart = (E) => {
2529
+ _.onTouchStart = (E) => {
2528
2530
  if (!E.currentTarget.contains(E.target))
2529
2531
  return;
2530
2532
  let T = Cu(E.nativeEvent);
2531
2533
  if (!T)
2532
2534
  return;
2533
2535
  b.activePointerId = T.identifier, b.ignoreEmulatedMouseEvents = !0, b.isOverTarget = !0, b.isPressed = !0, b.target = E.currentTarget, b.pointerType = "touch", !l && !u && Fe(E.currentTarget), c || gr(b.target), w(E, b.pointerType) && E.stopPropagation(), g(at(E.currentTarget), "scroll", B, !0);
2534
- }, A.onTouchMove = (E) => {
2536
+ }, _.onTouchMove = (E) => {
2535
2537
  if (!E.currentTarget.contains(E.target))
2536
2538
  return;
2537
2539
  if (!b.isPressed) {
@@ -2540,7 +2542,7 @@ function qt(t) {
2540
2542
  }
2541
2543
  let T = yr(E.nativeEvent, b.activePointerId), q = !0;
2542
2544
  T && Ue(T, E.currentTarget) ? !b.isOverTarget && b.pointerType != null && (b.isOverTarget = !0, q = w(E, b.pointerType)) : b.isOverTarget && b.pointerType != null && (b.isOverTarget = !1, q = S(E, b.pointerType, !1), M(E)), q && E.stopPropagation();
2543
- }, A.onTouchEnd = (E) => {
2545
+ }, _.onTouchEnd = (E) => {
2544
2546
  if (!E.currentTarget.contains(E.target))
2545
2547
  return;
2546
2548
  if (!b.isPressed) {
@@ -2548,8 +2550,8 @@ function qt(t) {
2548
2550
  return;
2549
2551
  }
2550
2552
  let T = yr(E.nativeEvent, b.activePointerId), q = !0;
2551
- T && Ue(T, E.currentTarget) && b.pointerType != null ? (K(E, b.pointerType), q = S(E, b.pointerType)) : b.isOverTarget && b.pointerType != null && (q = S(E, b.pointerType, !1)), q && E.stopPropagation(), b.isPressed = !1, b.activePointerId = null, b.isOverTarget = !1, b.ignoreEmulatedMouseEvents = !0, b.target && !c && gt(b.target), _();
2552
- }, A.onTouchCancel = (E) => {
2553
+ T && Ue(T, E.currentTarget) && b.pointerType != null ? (K(E, b.pointerType), q = S(E, b.pointerType)) : b.isOverTarget && b.pointerType != null && (q = S(E, b.pointerType, !1)), q && E.stopPropagation(), b.isPressed = !1, b.activePointerId = null, b.isOverTarget = !1, b.ignoreEmulatedMouseEvents = !0, b.target && !c && gt(b.target), A();
2554
+ }, _.onTouchCancel = (E) => {
2553
2555
  E.currentTarget.contains(E.target) && (E.stopPropagation(), b.isPressed && x(E));
2554
2556
  };
2555
2557
  let B = (E) => {
@@ -2561,16 +2563,16 @@ function qt(t) {
2561
2563
  altKey: !1
2562
2564
  });
2563
2565
  };
2564
- A.onDragStart = (E) => {
2566
+ _.onDragStart = (E) => {
2565
2567
  E.currentTarget.contains(E.target) && x(E);
2566
2568
  };
2567
2569
  }
2568
- return A;
2570
+ return _;
2569
2571
  }, [
2570
2572
  g,
2571
2573
  l,
2572
2574
  u,
2573
- _,
2575
+ A,
2574
2576
  c,
2575
2577
  x,
2576
2578
  M,
@@ -3734,7 +3736,7 @@ function No(t, e) {
3734
3736
  "aria-disabled": !r || n === "input" ? void 0 : r,
3735
3737
  rel: n === "a" ? v : void 0
3736
3738
  };
3737
- let { pressProps: _, isPressed: w } = qt({
3739
+ let { pressProps: A, isPressed: w } = qt({
3738
3740
  onPressStart: i,
3739
3741
  onPressEnd: l,
3740
3742
  onPressChange: u,
@@ -3745,7 +3747,7 @@ function No(t, e) {
3745
3747
  ref: e
3746
3748
  }), { focusableProps: S } = Lo(t, e);
3747
3749
  c && (S.tabIndex = r ? -1 : S.tabIndex);
3748
- let K = se(S, _, ze(t, {
3750
+ let K = se(S, A, ze(t, {
3749
3751
  labelable: !0
3750
3752
  }));
3751
3753
  return {
@@ -4852,8 +4854,8 @@ function Lr(t) {
4852
4854
  function dn(t, e, n, r, o, i, l, s, u, a) {
4853
4855
  let { placement: c, crossPlacement: f, axis: p, crossAxis: d, size: v, crossSize: h } = r, g = {};
4854
4856
  g[d] = t[d], f === "center" ? g[d] += (t[h] - n[h]) / 2 : f !== d && (g[d] += t[h] - n[h]), g[d] += i;
4855
- const _ = t[d] - n[h] + u + a, w = t[d] + t[h] - u - a;
4856
- if (g[d] = Cn(g[d], _, w), c === p) {
4857
+ const A = t[d] - n[h] + u + a, w = t[d] + t[h] - u - a;
4858
+ if (g[d] = Cn(g[d], A, w), c === p) {
4857
4859
  const S = s ? l[v] : e[va[v]];
4858
4860
  g[It[p]] = Math.floor(S - t[p] + o);
4859
4861
  } else
@@ -4868,15 +4870,15 @@ function Mr(t, e, n, r, o, i) {
4868
4870
  return l === s ? Math.max(0, n[s] - t[s] - t.scroll[s] + e[s] - r[s] - r[It[s]] - o) : Math.max(0, t[u] + t[s] + t.scroll[s] - e[s] - n[s] - n[u] - r[s] - r[It[s]] - o);
4869
4871
  }
4870
4872
  function ya(t, e, n, r, o, i, l, s, u, a, c, f, p, d, v, h) {
4871
- let g = Lr(t), { size: _, crossAxis: w, crossSize: S, placement: K, crossPlacement: x } = g, M = dn(e, s, n, g, c, f, a, p, v, h), R = c, b = Mr(s, a, e, o, i + c, g);
4872
- if (l && r[_] > b) {
4873
+ let g = Lr(t), { size: A, crossAxis: w, crossSize: S, placement: K, crossPlacement: x } = g, M = dn(e, s, n, g, c, f, a, p, v, h), R = c, b = Mr(s, a, e, o, i + c, g);
4874
+ if (l && r[A] > b) {
4873
4875
  let ue = Lr(`${It[K]} ${x}`), ae = dn(e, s, n, ue, c, f, a, p, v, h);
4874
4876
  Mr(s, a, e, o, i + c, ue) > b && (g = ue, M = ae, R = c);
4875
4877
  }
4876
- let A = Fr(w, M[w], n[S], s, u, i);
4877
- M[w] += A;
4878
+ let _ = Fr(w, M[w], n[S], s, u, i);
4879
+ M[w] += _;
4878
4880
  let P = $a(M, s, a, e, o, i);
4879
- d && d < P && (P = d), n.height = Math.min(n.height, P), M = dn(e, s, n, g, R, f, a, p, v, h), A = Fr(w, M[w], n[S], s, u, i), M[w] += A;
4881
+ d && d < P && (P = d), n.height = Math.min(n.height, P), M = dn(e, s, n, g, R, f, a, p, v, h), _ = Fr(w, M[w], n[S], s, u, i), M[w] += _;
4880
4882
  let C = {}, B = e[w] + 0.5 * e[S] - n[w];
4881
4883
  const E = v / 2 + h, T = n[S] - v / 2 - h, q = e[w] - n[w] + v / 2, V = e[w] + e[S] - n[w] - v / 2, F = Cn(B, q, V);
4882
4884
  return C[w] = Cn(F, E, T), {
@@ -4890,15 +4892,15 @@ function ya(t, e, n, r, o, i, l, s, u, a, c, f, p, d, v, h) {
4890
4892
  function xa(t) {
4891
4893
  let { placement: e, targetNode: n, overlayNode: r, scrollNode: o, padding: i, shouldFlip: l, boundaryElement: s, offset: u, crossOffset: a, maxHeight: c, arrowSize: f = 0, arrowBoundaryOffset: p = 0 } = t, d = r instanceof HTMLElement ? Ca(r) : document.documentElement, v = d === document.documentElement;
4892
4894
  const h = window.getComputedStyle(d).position;
4893
- let g = !!h && h !== "static", _ = v ? Je(n) : Nr(n, d);
4895
+ let g = !!h && h !== "static", A = v ? Je(n) : Nr(n, d);
4894
4896
  if (!v) {
4895
- let { marginTop: b, marginLeft: A } = window.getComputedStyle(n);
4896
- _.top += parseInt(b, 10) || 0, _.left += parseInt(A, 10) || 0;
4897
+ let { marginTop: b, marginLeft: _ } = window.getComputedStyle(n);
4898
+ A.top += parseInt(b, 10) || 0, A.left += parseInt(_, 10) || 0;
4897
4899
  }
4898
4900
  let w = Je(r), S = ga(r);
4899
4901
  w.width += S.left + S.right, w.height += S.top + S.bottom;
4900
4902
  let K = ha(o), x = Dr(s), M = Dr(d), R = s.tagName === "BODY" ? Je(d) : Nr(d, s);
4901
- return ya(e, _, w, K, S, i, l, x, M, R, u, a, g, c, f, p);
4903
+ return ya(e, A, w, K, S, i, l, x, M, R, u, a, g, c, f, p);
4902
4904
  }
4903
4905
  function Je(t) {
4904
4906
  let { top: e, left: n, width: r, height: o } = t.getBoundingClientRect(), { scrollTop: i, scrollLeft: l, clientTop: s, clientLeft: u } = document.documentElement;
@@ -4963,7 +4965,7 @@ function Ea(t) {
4963
4965
  }
4964
4966
  let Ee = typeof document < "u" && window.visualViewport;
4965
4967
  function Pa(t) {
4966
- let { direction: e } = Zt(), { arrowSize: n = 0, targetRef: r, overlayRef: o, scrollRef: i = o, placement: l = "bottom", containerPadding: s = 12, shouldFlip: u = !0, boundaryElement: a = typeof document < "u" ? document.body : null, offset: c = 0, crossOffset: f = 0, shouldUpdatePosition: p = !0, isOpen: d = !0, onClose: v, maxHeight: h, arrowBoundaryOffset: g = 0 } = t, [_, w] = X({
4968
+ let { direction: e } = Zt(), { arrowSize: n = 0, targetRef: r, overlayRef: o, scrollRef: i = o, placement: l = "bottom", containerPadding: s = 12, shouldFlip: u = !0, boundaryElement: a = typeof document < "u" ? document.body : null, offset: c = 0, crossOffset: f = 0, shouldUpdatePosition: p = !0, isOpen: d = !0, onClose: v, maxHeight: h, arrowBoundaryOffset: g = 0 } = t, [A, w] = X({
4967
4969
  position: {},
4968
4970
  arrowOffsetLeft: void 0,
4969
4971
  arrowOffsetTop: void 0,
@@ -5036,17 +5038,17 @@ function Pa(t) {
5036
5038
  style: {
5037
5039
  position: "absolute",
5038
5040
  zIndex: 1e5,
5039
- ..._.position,
5040
- maxHeight: _.maxHeight
5041
+ ...A.position,
5042
+ maxHeight: A.maxHeight
5041
5043
  }
5042
5044
  },
5043
- placement: _.placement,
5045
+ placement: A.placement,
5044
5046
  arrowProps: {
5045
5047
  "aria-hidden": "true",
5046
5048
  role: "presentation",
5047
5049
  style: {
5048
- left: _.arrowOffsetLeft,
5049
- top: _.arrowOffsetTop
5050
+ left: A.arrowOffsetLeft,
5051
+ top: A.arrowOffsetTop
5050
5052
  }
5051
5053
  },
5052
5054
  updatePosition: K
@@ -5419,7 +5421,7 @@ function Ia(t) {
5419
5421
  return t.length === 1 || !/^[A-Z]/i.test(t) ? t : "";
5420
5422
  }
5421
5423
  function il(t) {
5422
- let { selectionManager: e, keyboardDelegate: n, ref: r, autoFocus: o = !1, shouldFocusWrap: i = !1, disallowEmptySelection: l = !1, disallowSelectAll: s = !1, selectOnFocus: u = e.selectionBehavior === "replace", disallowTypeAhead: a = !1, shouldUseVirtualFocus: c, allowsTabNavigation: f = !1, isVirtualized: p, scrollRef: d = r, linkBehavior: v = "action" } = t, { direction: h } = Zt(), g = Gt(), _ = (P) => {
5424
+ let { selectionManager: e, keyboardDelegate: n, ref: r, autoFocus: o = !1, shouldFocusWrap: i = !1, disallowEmptySelection: l = !1, disallowSelectAll: s = !1, selectOnFocus: u = e.selectionBehavior === "replace", disallowTypeAhead: a = !1, shouldUseVirtualFocus: c, allowsTabNavigation: f = !1, isVirtualized: p, scrollRef: d = r, linkBehavior: v = "action" } = t, { direction: h } = Zt(), g = Gt(), A = (P) => {
5423
5425
  if (P.altKey && P.key === "Tab" && P.preventDefault(), !r.current.contains(P.target))
5424
5426
  return;
5425
5427
  const C = (y, D) => {
@@ -5588,7 +5590,7 @@ function il(t) {
5588
5590
  r
5589
5591
  ]);
5590
5592
  let R = {
5591
- onKeyDown: _,
5593
+ onKeyDown: A,
5592
5594
  onFocus: S,
5593
5595
  onBlur: K,
5594
5596
  onMouseDown(P) {
@@ -5599,11 +5601,11 @@ function il(t) {
5599
5601
  selectionManager: e
5600
5602
  });
5601
5603
  a || (R = se(b, R));
5602
- let A;
5603
- return c || (A = e.focusedKey == null ? 0 : -1), {
5604
+ let _;
5605
+ return c || (_ = e.focusedKey == null ? 0 : -1), {
5604
5606
  collectionProps: {
5605
5607
  ...R,
5606
- tabIndex: A
5608
+ tabIndex: _
5607
5609
  }
5608
5610
  };
5609
5611
  }
@@ -5643,27 +5645,27 @@ function ll(t) {
5643
5645
  } : s && (d.onMouseDown = (F) => {
5644
5646
  F.preventDefault();
5645
5647
  });
5646
- let v = e.isLink(n) && c === "override", h = e.isLink(n) && c !== "selection" && c !== "none", g = !s && e.canSelectItem(n) && !v, _ = (u || h) && !s, w = _ && (e.selectionBehavior === "replace" ? !g : !g || e.isEmpty), S = _ && g && e.selectionBehavior === "replace", K = w || S, x = k(null), M = K && g, R = k(!1), b = k(!1), A = (F) => {
5648
+ let v = e.isLink(n) && c === "override", h = e.isLink(n) && c !== "selection" && c !== "none", g = !s && e.canSelectItem(n) && !v, A = (u || h) && !s, w = A && (e.selectionBehavior === "replace" ? !g : !g || e.isEmpty), S = A && g && e.selectionBehavior === "replace", K = w || S, x = k(null), M = K && g, R = k(!1), b = k(!1), _ = (F) => {
5647
5649
  u && u(), h && f.open(r.current, F);
5648
5650
  }, P = {};
5649
5651
  o ? (P.onPressStart = (F) => {
5650
5652
  x.current = F.pointerType, R.current = M, F.pointerType === "keyboard" && (!K || Vr()) && p(F);
5651
5653
  }, a ? (P.onPressUp = w ? null : (F) => {
5652
5654
  F.pointerType !== "keyboard" && g && p(F);
5653
- }, P.onPress = w ? A : null) : P.onPress = (F) => {
5655
+ }, P.onPress = w ? _ : null) : P.onPress = (F) => {
5654
5656
  if (w || S && F.pointerType !== "mouse") {
5655
5657
  if (F.pointerType === "keyboard" && !Rr())
5656
5658
  return;
5657
- A(F);
5659
+ _(F);
5658
5660
  } else
5659
5661
  F.pointerType !== "keyboard" && g && p(F);
5660
5662
  }) : (P.onPressStart = (F) => {
5661
- x.current = F.pointerType, R.current = M, b.current = w, g && (F.pointerType === "mouse" && !w || F.pointerType === "keyboard" && (!_ || Vr())) && p(F);
5663
+ x.current = F.pointerType, R.current = M, b.current = w, g && (F.pointerType === "mouse" && !w || F.pointerType === "keyboard" && (!A || Vr())) && p(F);
5662
5664
  }, P.onPress = (F) => {
5663
- (F.pointerType === "touch" || F.pointerType === "pen" || F.pointerType === "virtual" || F.pointerType === "keyboard" && K && Rr() || F.pointerType === "mouse" && b.current) && (K ? A(F) : g && p(F));
5665
+ (F.pointerType === "touch" || F.pointerType === "pen" || F.pointerType === "virtual" || F.pointerType === "keyboard" && K && Rr() || F.pointerType === "mouse" && b.current) && (K ? _(F) : g && p(F));
5664
5666
  }), d["data-key"] = n, P.preventFocusOnPress = i;
5665
5667
  let { pressProps: C, isPressed: B } = qt(P), E = S ? (F) => {
5666
- x.current === "mouse" && (F.stopPropagation(), F.preventDefault(), A(F));
5668
+ x.current === "mouse" && (F.stopPropagation(), F.preventDefault(), _(F));
5667
5669
  } : void 0, { longPressProps: T } = Ko({
5668
5670
  isDisabled: !M,
5669
5671
  onLongPress(F) {
@@ -5910,24 +5912,24 @@ function Ra(t, e, n) {
5910
5912
  var v;
5911
5913
  let h = (v = t.shouldUseVirtualFocus) !== null && v !== void 0 ? v : i == null ? void 0 : i.shouldUseVirtualFocus;
5912
5914
  var g;
5913
- let _ = (g = t.isVirtualized) !== null && g !== void 0 ? g : i == null ? void 0 : i.isVirtualized, w = Oe(), S = Oe(), K = {
5915
+ let A = (g = t.isVirtualized) !== null && g !== void 0 ? g : i == null ? void 0 : i.isVirtualized, w = Oe(), S = Oe(), K = {
5914
5916
  role: "option",
5915
5917
  "aria-disabled": s || void 0,
5916
5918
  "aria-selected": e.selectionManager.selectionMode !== "none" ? a : void 0
5917
5919
  };
5918
5920
  Ie() && ho() || (K["aria-label"] = t["aria-label"], K["aria-labelledby"] = w, K["aria-describedby"] = S);
5919
5921
  let x = e.collection.getItem(o);
5920
- if (_) {
5922
+ if (A) {
5921
5923
  let E = Number(x == null ? void 0 : x.index);
5922
5924
  K["aria-posinset"] = Number.isNaN(E) ? void 0 : E + 1, K["aria-setsize"] = Rn(e.collection);
5923
5925
  }
5924
- let { itemProps: M, isPressed: R, isFocused: b, hasAction: A, allowsSelection: P } = ll({
5926
+ let { itemProps: M, isPressed: R, isFocused: b, hasAction: _, allowsSelection: P } = ll({
5925
5927
  selectionManager: e.selectionManager,
5926
5928
  key: o,
5927
5929
  ref: n,
5928
5930
  shouldSelectOnPressUp: f,
5929
5931
  allowsDifferentPressOrigin: f && d,
5930
- isVirtualized: _,
5932
+ isVirtualized: A,
5931
5933
  shouldUseVirtualFocus: h,
5932
5934
  isDisabled: s,
5933
5935
  onAction: i != null && i.onAction ? () => {
@@ -5961,7 +5963,7 @@ function Ra(t, e, n) {
5961
5963
  isDisabled: s,
5962
5964
  isPressed: R,
5963
5965
  allowsSelection: P,
5964
- hasAction: A
5966
+ hasAction: _
5965
5967
  };
5966
5968
  }
5967
5969
  function Va(t) {
@@ -6244,11 +6246,11 @@ function ja(t, e, n) {
6244
6246
  }
6245
6247
  function Ha(t, e, n) {
6246
6248
  var r;
6247
- let { key: o, closeOnSelect: i, isVirtualized: l, "aria-haspopup": s, onPressStart: u, onPressUp: a, onPress: c, onPressChange: f, onPressEnd: p, onHoverStart: d, onHoverChange: v, onHoverEnd: h, onKeyDown: g, onKeyUp: _, onFocus: w, onFocusChange: S, onBlur: K } = t, x = !!s;
6249
+ let { key: o, closeOnSelect: i, isVirtualized: l, "aria-haspopup": s, onPressStart: u, onPressUp: a, onPress: c, onPressChange: f, onPressEnd: p, onHoverStart: d, onHoverChange: v, onHoverEnd: h, onKeyDown: g, onKeyUp: A, onFocus: w, onFocusChange: S, onBlur: K } = t, x = !!s;
6248
6250
  var M;
6249
6251
  let R = (M = t.isDisabled) !== null && M !== void 0 ? M : e.disabledKeys.has(o);
6250
6252
  var b;
6251
- let A = (b = t.isSelected) !== null && b !== void 0 ? b : e.selectionManager.isSelected(o), P = Hl.get(e), C = t.onClose || P.onClose, B = x ? () => {
6253
+ let _ = (b = t.isSelected) !== null && b !== void 0 ? b : e.selectionManager.isSelected(o), P = Hl.get(e), C = t.onClose || P.onClose, B = x ? () => {
6252
6254
  } : t.onAction || P.onAction, E = Gt(), T = (J) => {
6253
6255
  B && B(o), J.target instanceof HTMLAnchorElement && E.open(J.target, J);
6254
6256
  }, q = "menuitem";
@@ -6266,7 +6268,7 @@ function Ha(t, e, n) {
6266
6268
  "aria-haspopup": s,
6267
6269
  "aria-expanded": t["aria-expanded"]
6268
6270
  };
6269
- e.selectionManager.selectionMode !== "none" && !x && (ae["aria-checked"] = A);
6271
+ e.selectionManager.selectionMode !== "none" && !x && (ae["aria-checked"] = _);
6270
6272
  let y = e.collection.getItem(o);
6271
6273
  l && (ae["aria-posinset"] = y == null ? void 0 : y.index, ae["aria-setsize"] = Rn(e.collection));
6272
6274
  let D = (J) => {
@@ -6316,7 +6318,7 @@ function Ha(t, e, n) {
6316
6318
  break;
6317
6319
  }
6318
6320
  },
6319
- onKeyUp: _
6321
+ onKeyUp: A
6320
6322
  }), { focusProps: Z } = Un({
6321
6323
  onBlur: K,
6322
6324
  onFocus: w,
@@ -6342,7 +6344,7 @@ function Ha(t, e, n) {
6342
6344
  id: ue
6343
6345
  },
6344
6346
  isFocused: H,
6345
- isSelected: A,
6347
+ isSelected: _,
6346
6348
  isPressed: U,
6347
6349
  isDisabled: R
6348
6350
  };
@@ -6371,7 +6373,7 @@ function Wa(t, e) {
6371
6373
  let { inputElementType: n = "input", isDisabled: r = !1, isRequired: o = !1, isReadOnly: i = !1, type: l = "text", validationBehavior: s = "aria" } = t, [u, a] = tt(t.value, t.defaultValue || "", t.onChange), { focusableProps: c } = Lo(t, e), f = On({
6372
6374
  ...t,
6373
6375
  value: u
6374
- }), { isInvalid: p, validationErrors: d, validationDetails: v } = f.displayValidation, { labelProps: h, fieldProps: g, descriptionProps: _, errorMessageProps: w } = Oo({
6376
+ }), { isInvalid: p, validationErrors: d, validationDetails: v } = f.displayValidation, { labelProps: h, fieldProps: g, descriptionProps: A, errorMessageProps: w } = Oo({
6375
6377
  ...t,
6376
6378
  isInvalid: p,
6377
6379
  errorMessage: t.errorMessage || d
@@ -6431,7 +6433,7 @@ function Wa(t, e) {
6431
6433
  ...c,
6432
6434
  ...g
6433
6435
  }),
6434
- descriptionProps: _,
6436
+ descriptionProps: A,
6435
6437
  errorMessageProps: w,
6436
6438
  isInvalid: p,
6437
6439
  validationErrors: d,
@@ -6527,16 +6529,16 @@ function qa(t, e) {
6527
6529
  e.selectionManager.setFocusedKey(null);
6528
6530
  break;
6529
6531
  }
6530
- }, _ = (L) => {
6532
+ }, A = (L) => {
6531
6533
  var I;
6532
6534
  L.relatedTarget === (n == null ? void 0 : n.current) || !((I = r.current) === null || I === void 0) && I.contains(L.relatedTarget) || (t.onBlur && t.onBlur(L), e.setFocused(!1));
6533
6535
  }, w = (L) => {
6534
6536
  e.isFocused || (t.onFocus && t.onFocus(L), e.setFocused(!0));
6535
- }, { isInvalid: S, validationErrors: K, validationDetails: x } = e.displayValidation, { labelProps: M, inputProps: R, descriptionProps: b, errorMessageProps: A } = Wa({
6537
+ }, { isInvalid: S, validationErrors: K, validationDetails: x } = e.displayValidation, { labelProps: M, inputProps: R, descriptionProps: b, errorMessageProps: _ } = Wa({
6536
6538
  ...t,
6537
6539
  onChange: e.setInputValue,
6538
6540
  onKeyDown: u ? t.onKeyDown : Qe(e.isOpen && v.onKeyDown, g, t.onKeyDown),
6539
- onBlur: _,
6541
+ onBlur: A,
6540
6542
  value: e.inputValue,
6541
6543
  onFocus: w,
6542
6544
  autoComplete: "off",
@@ -6644,7 +6646,7 @@ function qa(t, e) {
6644
6646
  linkBehavior: "selection"
6645
6647
  }),
6646
6648
  descriptionProps: b,
6647
- errorMessageProps: A,
6649
+ errorMessageProps: _,
6648
6650
  isInvalid: S,
6649
6651
  validationErrors: K,
6650
6652
  validationDetails: x
@@ -6667,14 +6669,14 @@ function Ya(t, e, n) {
6667
6669
  switch (b.key) {
6668
6670
  case "ArrowLeft": {
6669
6671
  b.preventDefault();
6670
- let A = e.selectedKey != null ? a.getKeyAbove(e.selectedKey) : a.getFirstKey();
6671
- A && e.setSelectedKey(A);
6672
+ let _ = e.selectedKey != null ? a.getKeyAbove(e.selectedKey) : a.getFirstKey();
6673
+ _ && e.setSelectedKey(_);
6672
6674
  break;
6673
6675
  }
6674
6676
  case "ArrowRight": {
6675
6677
  b.preventDefault();
6676
- let A = e.selectedKey != null ? a.getKeyBelow(e.selectedKey) : a.getFirstKey();
6677
- A && e.setSelectedKey(A);
6678
+ let _ = e.selectedKey != null ? a.getKeyBelow(e.selectedKey) : a.getFirstKey();
6679
+ _ && e.setSelectedKey(_);
6678
6680
  break;
6679
6681
  }
6680
6682
  }
@@ -6684,7 +6686,7 @@ function Ya(t, e, n) {
6684
6686
  onTypeSelect(b) {
6685
6687
  e.setSelectedKey(b);
6686
6688
  }
6687
- }), { isInvalid: v, validationErrors: h, validationDetails: g } = e.displayValidation, { labelProps: _, fieldProps: w, descriptionProps: S, errorMessageProps: K } = Oo({
6689
+ }), { isInvalid: v, validationErrors: h, validationDetails: g } = e.displayValidation, { labelProps: A, fieldProps: w, descriptionProps: S, errorMessageProps: K } = Oo({
6688
6690
  ...t,
6689
6691
  labelElementType: "span",
6690
6692
  isInvalid: v,
@@ -6701,7 +6703,7 @@ function Ya(t, e, n) {
6701
6703
  validationBehavior: s
6702
6704
  }), {
6703
6705
  labelProps: {
6704
- ..._,
6706
+ ...A,
6705
6707
  onClick: () => {
6706
6708
  t.isDisabled || (n.current.focus(), To("keyboard"));
6707
6709
  }
@@ -6865,7 +6867,7 @@ const Ja = "_focused_1af8e_1", Qa = "_listbox_1af8e_10", ec = "_content_1af8e_89
6865
6867
  "listbox--info": "_listbox--info_1af8e_453",
6866
6868
  "listbox-item--error": "_listbox-item--error_1af8e_461",
6867
6869
  "listbox--error": "_listbox--error_1af8e_469"
6868
- }, Gl = Rt({}), fd = ({
6870
+ }, Gl = Rt({}), bd = ({
6869
6871
  children: t,
6870
6872
  routerComponent: e,
6871
6873
  extendRequiredFieldsLabelsWith: n = /* @__PURE__ */ m("span", { style: { color: "var(--text-default-error)" }, children: " *" }),
@@ -6878,20 +6880,15 @@ const Ja = "_focused_1af8e_1", Qa = "_listbox_1af8e_10", ec = "_content_1af8e_89
6878
6880
  ), [u, a] = X(!1);
6879
6881
  W(() => {
6880
6882
  const p = async () => {
6881
- var g, _, w;
6882
- if (typeof window !== void 0 || typeof window.dsfr < "u") {
6883
- if ((g = window == null ? void 0 : window.dsfr) != null && g.isStarted)
6884
- return;
6885
- window.dsfr = {
6886
- verbose: i,
6887
- mode: "manual"
6888
- }, await import("./dsfr.module.min-23ae5258.js"), await import("./utility-251e9615.js"), await import("./dsfr-4e49221c.js"), (w = (_ = window.dsfr).start) == null || w.call(_), a(!0);
6889
- } else
6890
- console.error("dsfr.start is not a function");
6883
+ var g;
6884
+ if (typeof ((g = window == null ? void 0 : window.dsfr) == null ? void 0 : g.start) == "function") {
6885
+ a(!0);
6886
+ return;
6887
+ }
6891
6888
  window.dsfr = {
6892
6889
  verbose: i,
6893
6890
  mode: "manual"
6894
- }, await import("./dsfr.module.min-23ae5258.js"), await import("./utility-251e9615.js"), await import("./dsfr-4e49221c.js"), window.dsfr.start(), a(!0);
6891
+ }, await import("@gouvfr/dsfr/dist/dsfr/dsfr.module.min"), window.dsfr.start(), a(!0);
6895
6892
  }, d = window.matchMedia(
6896
6893
  "(prefers-color-scheme: dark)"
6897
6894
  ), v = d != null && d.matches ? "dark" : "light", h = window.localStorage.getItem("theme");
@@ -7087,45 +7084,56 @@ function cc(t) {
7087
7084
  },
7088
7085
  n
7089
7086
  );
7090
- return /* @__PURE__ */ O("form", { onSubmit: () => a == null ? void 0 : a((t == null ? void 0 : t.inputValue) || ""), ref: l, className: $("fr-search-bar", { "fr-search-bar--lg": s === "lg" }), role: "search", children: [
7091
- /* @__PURE__ */ m(
7092
- "input",
7093
- {
7094
- ...d,
7095
- type: "search",
7096
- ref: r,
7097
- className: "fr-input"
7098
- }
7099
- ),
7100
- /* @__PURE__ */ O("button", { type: "submit", style: { position: "relative" }, className: $("fr-btn", { "fr-btn--lg": s === "lg" }), children: [
7101
- /* @__PURE__ */ m("div", { style: { position: "absolute", left: "-40px" }, children: t.loadingState === "loading" && /* @__PURE__ */ m(ac, {}) }),
7102
- "Rechercher"
7103
- ] }),
7104
- n.isOpen && /* @__PURE__ */ m(
7105
- er,
7106
- {
7107
- popoverRef: i,
7108
- triggerRef: r,
7109
- state: n,
7110
- isNonModal: !1,
7111
- placement: "bottom start",
7112
- children: /* @__PURE__ */ m(
7113
- Qn,
7087
+ return /* @__PURE__ */ O(
7088
+ "form",
7089
+ {
7090
+ onSubmit: (h) => {
7091
+ h.preventDefault(), a == null || a((t == null ? void 0 : t.inputValue) || "");
7092
+ },
7093
+ ref: l,
7094
+ className: $("fr-search-bar", { "fr-search-bar--lg": s === "lg" }),
7095
+ role: "search",
7096
+ children: [
7097
+ /* @__PURE__ */ m(
7098
+ "input",
7114
7099
  {
7115
- ...v,
7116
- color: u,
7117
- listBoxRef: o,
7118
- triggerRef: l,
7100
+ ...d,
7101
+ type: "search",
7102
+ ref: r,
7103
+ className: "fr-input"
7104
+ }
7105
+ ),
7106
+ /* @__PURE__ */ O("button", { type: "submit", style: { position: "relative" }, className: $("fr-btn", { "fr-btn--lg": s === "lg" }), children: [
7107
+ /* @__PURE__ */ m("div", { style: { position: "absolute", left: "-40px" }, children: t.loadingState === "loading" && /* @__PURE__ */ m(ac, {}) }),
7108
+ "Rechercher"
7109
+ ] }),
7110
+ n.isOpen && /* @__PURE__ */ m(
7111
+ er,
7112
+ {
7113
+ popoverRef: i,
7114
+ triggerRef: r,
7119
7115
  state: n,
7120
- topContent: c,
7121
- bottomContent: f
7116
+ isNonModal: !1,
7117
+ placement: "bottom start",
7118
+ children: /* @__PURE__ */ m(
7119
+ Qn,
7120
+ {
7121
+ ...v,
7122
+ color: u,
7123
+ listBoxRef: o,
7124
+ triggerRef: l,
7125
+ state: n,
7126
+ topContent: c,
7127
+ bottomContent: f
7128
+ }
7129
+ )
7122
7130
  }
7123
7131
  )
7124
- }
7125
- )
7126
- ] });
7132
+ ]
7133
+ }
7134
+ );
7127
7135
  }
7128
- const pd = Vt;
7136
+ const md = Vt;
7129
7137
  const dc = be, fc = dc(
7130
7138
  ({
7131
7139
  as: t,
@@ -7153,14 +7161,14 @@ const dc = be, fc = dc(
7153
7161
  );
7154
7162
  return /* @__PURE__ */ m(a, { className: c, ref: u, ...s });
7155
7163
  }
7156
- ), bd = ({
7164
+ ), vd = ({
7157
7165
  children: t,
7158
7166
  className: e,
7159
7167
  ...n
7160
7168
  }) => {
7161
7169
  const r = ne(), o = $("fr-badges-group", e);
7162
7170
  return /* @__PURE__ */ m("ul", { className: o, ...n, children: de(t, fc).map((i, l) => /* @__PURE__ */ m("li", { children: i }, `${r}-${l}`)) });
7163
- }, md = ({
7171
+ }, hd = ({
7164
7172
  buttonLabel: t = "Voir le fil d’Ariane",
7165
7173
  children: e,
7166
7174
  className: n,
@@ -7194,7 +7202,7 @@ const pc = be, ut = pc(
7194
7202
  );
7195
7203
  return /* @__PURE__ */ m(c, { className: f, ref: a, ...u, children: s });
7196
7204
  }
7197
- ), vd = ({
7205
+ ), gd = ({
7198
7206
  align: t = "left",
7199
7207
  children: e,
7200
7208
  className: n,
@@ -7215,7 +7223,7 @@ const pc = be, ut = pc(
7215
7223
  "fr-btns-group--equisized": r
7216
7224
  }, n);
7217
7225
  return /* @__PURE__ */ m("ul", { className: p, ...s, children: de(e, ut).map((v, h) => /* @__PURE__ */ m("li", { children: v }, `${u}-${h}`)) });
7218
- }, hd = be(({
7226
+ }, $d = be(({
7219
7227
  className: t,
7220
7228
  css: e = {},
7221
7229
  hint: n,
@@ -7249,7 +7257,7 @@ function je(t, e = {}) {
7249
7257
  const o = r ? [...jr, ...r] : jr;
7250
7258
  return Object.entries(t).reduce((i, [l, s]) => o.includes(l) ? i : { ...i, [l]: s }, {});
7251
7259
  }
7252
- const gd = be(({
7260
+ const yd = be(({
7253
7261
  children: t,
7254
7262
  className: e,
7255
7263
  css: n = {},
@@ -7280,7 +7288,7 @@ const gd = be(({
7280
7288
  ]
7281
7289
  }
7282
7290
  );
7283
- }), $d = be(({
7291
+ }), xd = be(({
7284
7292
  id: t,
7285
7293
  className: e,
7286
7294
  css: n = {},
@@ -7342,7 +7350,7 @@ const gd = be(({
7342
7350
  [`fr-grid-row--${n}`]: n
7343
7351
  }, r);
7344
7352
  return /* @__PURE__ */ m("div", { className: i, ...o });
7345
- }, yd = ({
7353
+ }, Cd = ({
7346
7354
  xs: t,
7347
7355
  sm: e,
7348
7356
  md: n,
@@ -7461,9 +7469,9 @@ const gd = be(({
7461
7469
  }, xc = ({ text: t, splitCharacter: e = "|" }) => {
7462
7470
  const r = t.split(e).reduce((o, i, l) => l > 0 ? [...o, /* @__PURE__ */ m("br", {}, `br-${l}`), /* @__PURE__ */ m(xn, { children: i }, l)] : [/* @__PURE__ */ m(xn, { children: i }, l)], []);
7463
7471
  return /* @__PURE__ */ m("div", { className: "fr-header__logo", children: /* @__PURE__ */ m("p", { className: "fr-logo", children: r }) });
7464
- }, xd = ({ children: t, className: e, css: n = {}, ...r }) => {
7465
- var h, g, _, w;
7466
- const o = ne(), i = ne(), l = ne(), s = ne(), u = (h = de(t, vc)) == null ? void 0 : h[0], a = (g = de(t, hc)) == null ? void 0 : g[0], c = (_ = et(t, [$c, cc])) == null ? void 0 : _[0], f = (w = de(t, yc)) == null ? void 0 : w[0], p = de(t, xc), d = de(t, gc), v = $e(c) ? c.props.title : "Rechercher";
7472
+ }, Ed = ({ children: t, className: e, css: n = {}, ...r }) => {
7473
+ var h, g, A, w;
7474
+ const o = ne(), i = ne(), l = ne(), s = ne(), u = (h = de(t, vc)) == null ? void 0 : h[0], a = (g = de(t, hc)) == null ? void 0 : g[0], c = (A = et(t, [$c, cc])) == null ? void 0 : A[0], f = (w = de(t, yc)) == null ? void 0 : w[0], p = de(t, xc), d = de(t, gc), v = $e(c) ? c.props.title : "Rechercher";
7467
7475
  return /* @__PURE__ */ O("header", { role: "banner", className: $("fr-header", e), ...r, children: [
7468
7476
  /* @__PURE__ */ m("div", { className: $("fr-header__body", n["fr-header__body"]), children: /* @__PURE__ */ m("div", { className: "fr-container", children: /* @__PURE__ */ O("div", { className: $("fr-header__body-row", n["fr-header__body-row"]), children: [
7469
7477
  /* @__PURE__ */ O("div", { className: $("fr-header__brand fr-enlarge-link", n["fr-header__brand"]), children: [
@@ -7491,7 +7499,7 @@ const gd = be(({
7491
7499
  f && f
7492
7500
  ] }) })
7493
7501
  ] });
7494
- }, Cd = be(
7502
+ }, Pd = be(
7495
7503
  ({
7496
7504
  className: t,
7497
7505
  css: e = {},
@@ -7509,7 +7517,7 @@ const gd = be(({
7509
7517
  isOptional: d,
7510
7518
  ...v
7511
7519
  }, h) => {
7512
- const { extendRequiredFieldsLabelsWith: g, extendOptionalFieldsLabelsWith: _ } = bt(), [w, S] = X(""), K = i || ne(), x = k(null), M = s !== void 0 || u !== void 0, R = $(
7520
+ const { extendRequiredFieldsLabelsWith: g, extendOptionalFieldsLabelsWith: A } = bt(), [w, S] = X(""), K = i || ne(), x = k(null), M = s !== void 0 || u !== void 0, R = $(
7513
7521
  "fr-input",
7514
7522
  {
7515
7523
  "fr-input--error": M ? u === "error" : w === "error",
@@ -7524,7 +7532,7 @@ const gd = be(({
7524
7532
  "fr-input-group--disabled": f
7525
7533
  },
7526
7534
  t
7527
- ), A = (C) => {
7535
+ ), _ = (C) => {
7528
7536
  const B = x.current;
7529
7537
  !n && !M && B && S(B.checkValidity() ? "valid" : "error"), a && a(C);
7530
7538
  }, P = (C) => {
@@ -7535,7 +7543,7 @@ const gd = be(({
7535
7543
  /* @__PURE__ */ O("label", { className: $("fr-label", e["fr-label"]), htmlFor: K, children: [
7536
7544
  l,
7537
7545
  p && !d && g,
7538
- d && !p && _,
7546
+ d && !p && A,
7539
7547
  r && /* @__PURE__ */ m("span", { className: $("fr-hint-text", e["fr-hint-text"]), children: r })
7540
7548
  ] }),
7541
7549
  /* @__PURE__ */ m(
@@ -7552,7 +7560,7 @@ const gd = be(({
7552
7560
  id: K,
7553
7561
  disabled: f,
7554
7562
  className: R,
7555
- onBlur: A,
7563
+ onBlur: _,
7556
7564
  onChange: P,
7557
7565
  ref: (C) => pt(C, [h, x]),
7558
7566
  "aria-describedby": u ? `${K}-message` : void 0,
@@ -7564,7 +7572,7 @@ const gd = be(({
7564
7572
  u && /* @__PURE__ */ m("p", { className: `fr-${u}-text`, id: `${K}-message`, children: s })
7565
7573
  ] });
7566
7574
  }
7567
- ), Ed = be(
7575
+ ), wd = be(
7568
7576
  ({
7569
7577
  className: t,
7570
7578
  css: e = {},
@@ -7582,7 +7590,7 @@ const gd = be(({
7582
7590
  isOptional: d,
7583
7591
  ...v
7584
7592
  }, h) => {
7585
- const { extendRequiredFieldsLabelsWith: g, extendOptionalFieldsLabelsWith: _ } = bt(), [w, S] = X(""), K = i || ne(), x = k(null), M = s !== void 0 || u !== void 0, R = $(
7593
+ const { extendRequiredFieldsLabelsWith: g, extendOptionalFieldsLabelsWith: A } = bt(), [w, S] = X(""), K = i || ne(), x = k(null), M = s !== void 0 || u !== void 0, R = $(
7586
7594
  "fr-input",
7587
7595
  {
7588
7596
  "fr-input--error": M ? u === "error" : w === "error",
@@ -7597,7 +7605,7 @@ const gd = be(({
7597
7605
  "fr-input-group--disabled": f
7598
7606
  },
7599
7607
  t
7600
- ), A = (C) => {
7608
+ ), _ = (C) => {
7601
7609
  const B = x.current;
7602
7610
  !n && !M && B && S(B.checkValidity() ? "valid" : "error"), a && a(C);
7603
7611
  }, P = (C) => {
@@ -7608,7 +7616,7 @@ const gd = be(({
7608
7616
  /* @__PURE__ */ O("label", { className: $("fr-label", e["fr-label"]), htmlFor: K, children: [
7609
7617
  l,
7610
7618
  p && !d && g,
7611
- d && !p && _,
7619
+ d && !p && A,
7612
7620
  r && /* @__PURE__ */ m("span", { className: $("fr-hint-text", e["fr-hint-text"]), children: r })
7613
7621
  ] }),
7614
7622
  /* @__PURE__ */ m(
@@ -7625,7 +7633,7 @@ const gd = be(({
7625
7633
  id: K,
7626
7634
  className: R,
7627
7635
  disabled: f,
7628
- onBlur: A,
7636
+ onBlur: _,
7629
7637
  onChange: P,
7630
7638
  ref: (C) => pt(C, [h, x]),
7631
7639
  "aria-describedby": u ? `${K}-message` : void 0,
@@ -7638,11 +7646,11 @@ const gd = be(({
7638
7646
  ] });
7639
7647
  }
7640
7648
  );
7641
- function Pd(t) {
7649
+ function Sd(t) {
7642
7650
  const e = co(t);
7643
7651
  return /* @__PURE__ */ m(Qn, { ...t, state: e });
7644
7652
  }
7645
- const wd = Vt, Sd = lo, Cc = "_focused_og068_1", Ec = "_listbox_og068_10", Pc = "_content_og068_90", wc = "_description_og068_99", Sc = "_uppercase_og068_127", Tc = "_divider_og068_131", Te = {
7653
+ const Td = Vt, _d = lo, Cc = "_focused_og068_1", Ec = "_listbox_og068_10", Pc = "_content_og068_90", wc = "_description_og068_99", Sc = "_uppercase_og068_127", Tc = "_divider_og068_131", Te = {
7646
7654
  focused: Cc,
7647
7655
  listbox: Ec,
7648
7656
  "listbox-top": "_listbox-top_og068_36",
@@ -7789,7 +7797,7 @@ const Kc = be(
7789
7797
  return /* @__PURE__ */ m("button", { className: a, ref: u, ...s, children: l });
7790
7798
  }
7791
7799
  );
7792
- function Td(t) {
7800
+ function Ad(t) {
7793
7801
  const { className: e, color: n, icon: r, iconPosition: o, size: i, variant: l, placement: s = "start", ...u } = t, a = Ns(u), c = k(null), { menuTriggerProps: f, menuProps: p } = Jn({}, a, c), { isFocusVisible: d, focusProps: v } = qn(), { buttonProps: h } = No({ ...se(f, v) }, c);
7794
7802
  return /* @__PURE__ */ O(In, { children: [
7795
7803
  /* @__PURE__ */ m(
@@ -7816,7 +7824,7 @@ function Td(t) {
7816
7824
  ) })
7817
7825
  ] });
7818
7826
  }
7819
- const _d = Vt, Ad = lo, Zl = be(({
7827
+ const Kd = Vt, Dd = lo, Zl = be(({
7820
7828
  children: t,
7821
7829
  className: e,
7822
7830
  icon: n,
@@ -7880,22 +7888,22 @@ const Lc = ({
7880
7888
  ...s
7881
7889
  }) => {
7882
7890
  var M, R, b;
7883
- const [u, a] = X(null), f = { sm: 4, lg: 8, md: 6, xl: 10 }[n], p = $("fr-modal", o), d = k(null), v = (M = de(t, Zl)) == null ? void 0 : M[0], h = de(t, Jl), g = (R = de(t, Ql)) == null ? void 0 : R[0], _ = (b = de(t, Bt)) == null ? void 0 : b[0], w = r || ne();
7891
+ const [u, a] = X(null), f = { sm: 4, lg: 8, md: 6, xl: 10 }[n], p = $("fr-modal", o), d = k(null), v = (M = de(t, Zl)) == null ? void 0 : M[0], h = de(t, Jl), g = (R = de(t, Ql)) == null ? void 0 : R[0], A = (b = de(t, Bt)) == null ? void 0 : b[0], w = r || ne();
7884
7892
  W(() => {
7885
7893
  var P, C;
7886
7894
  d.current && (i && (a(document.activeElement), (P = document == null ? void 0 : document.getElementById(w)) == null || P.classList.add("fr-modal--opened")), i || (C = document == null ? void 0 : document.getElementById(w)) == null || C.classList.remove("fr-modal--opened"));
7887
7895
  }, [i]), W(() => {
7888
- const A = d.current;
7889
- if (A)
7890
- return A.addEventListener("dsfr.conceal", (P) => P.stopPropagation()), A.addEventListener("dsfr.disclose", (P) => P.stopPropagation()), () => {
7891
- A.removeEventListener("dsfr.conceal", (P) => P.stopPropagation()), A.removeEventListener("dsfr.disclose", (P) => P.stopPropagation());
7896
+ const _ = d.current;
7897
+ if (_)
7898
+ return _.addEventListener("dsfr.conceal", (P) => P.stopPropagation()), _.addEventListener("dsfr.disclose", (P) => P.stopPropagation()), () => {
7899
+ _.removeEventListener("dsfr.conceal", (P) => P.stopPropagation()), _.removeEventListener("dsfr.disclose", (P) => P.stopPropagation());
7892
7900
  };
7893
7901
  }, []);
7894
- const S = (A) => {
7895
- l && (!d.current || d.current === A.target || A.target.className.indexOf("closing-overlay") > -1) && e();
7902
+ const S = (_) => {
7903
+ l && (!d.current || d.current === _.target || _.target.className.indexOf("closing-overlay") > -1) && e();
7896
7904
  };
7897
7905
  Fc(d, i, u);
7898
- const K = _ ? _e(_, { onClick: () => e(), controls: w }) : l ? /* @__PURE__ */ m(Bt, { onClick: () => e(), controls: w }) : null, x = /* @__PURE__ */ m(
7906
+ const K = A ? _e(A, { onClick: () => e(), controls: w }) : l ? /* @__PURE__ */ m(Bt, { onClick: () => e(), controls: w }) : null, x = /* @__PURE__ */ m(
7899
7907
  "dialog",
7900
7908
  {
7901
7909
  "aria-labelledby": `${w}-title`,
@@ -7904,7 +7912,7 @@ const Lc = ({
7904
7912
  ref: d,
7905
7913
  id: w,
7906
7914
  role: "dialog",
7907
- onClick: (A) => S(A),
7915
+ onClick: (_) => S(_),
7908
7916
  ...s,
7909
7917
  children: /* @__PURE__ */ m("div", { className: "fr-container fr-container--fluid fr-container-md", children: /* @__PURE__ */ m("div", { className: "fr-grid-row fr-grid-row--center closing-overlay", children: /* @__PURE__ */ m("div", { className: `fr-col-12 fr-col-md-${f}`, children: /* @__PURE__ */ O("div", { className: "fr-modal__body", children: [
7910
7918
  /* @__PURE__ */ m("div", { className: "fr-modal__header", children: K }),
@@ -7950,7 +7958,7 @@ const Lc = ({
7950
7958
  d,
7951
7959
  document.body
7952
7960
  );
7953
- }, Kd = ({
7961
+ }, Fd = ({
7954
7962
  id: t,
7955
7963
  size: e = "md",
7956
7964
  hide: n,
@@ -7986,7 +7994,7 @@ const Lc = ({
7986
7994
  ...e
7987
7995
  }
7988
7996
  ));
7989
- const Dd = ({
7997
+ const Ld = ({
7990
7998
  children: t,
7991
7999
  closeMode: e = "disallow",
7992
8000
  type: n = "info",
@@ -8013,7 +8021,7 @@ const Dd = ({
8013
8021
  }
8014
8022
  )
8015
8023
  ] }) }) });
8016
- }, Fd = be(({
8024
+ }, Md = be(({
8017
8025
  checked: t,
8018
8026
  className: e,
8019
8027
  css: n = {},
@@ -8053,7 +8061,7 @@ const Dd = ({
8053
8061
  }), Nc = {
8054
8062
  "fr-select-btn": "_fr-select-btn_m2sgv_1"
8055
8063
  };
8056
- function Ld(t) {
8064
+ function Nd(t) {
8057
8065
  const { buttonLabel: e, ...n } = t, r = ks(n), o = k(null), {
8058
8066
  labelProps: i,
8059
8067
  triggerProps: l,
@@ -8092,8 +8100,8 @@ function Ld(t) {
8092
8100
  ) })
8093
8101
  ] });
8094
8102
  }
8095
- const Md = Vt;
8096
- const Nd = ({
8103
+ const kd = Vt;
8104
+ const Id = ({
8097
8105
  children: t,
8098
8106
  className: e,
8099
8107
  css: n = {},
@@ -8150,7 +8158,7 @@ const Nd = ({
8150
8158
  ),
8151
8159
  /* @__PURE__ */ m("div", { className: "fr-collapse", id: a, children: /* @__PURE__ */ m("ul", { className: $("fr-sidemenu__list", n["fr-sidemenu__list"]), children: c.map((f, p) => /* @__PURE__ */ m("li", { className: $("fr-sidemenu__item", n["fr-sidemenu__item"]), children: $e(f) && f.type === he ? _e(f, { className: $("fr-sidemenu__link", f.props.className) }) : f }, `navitem-${a}-${p}`)) }) })
8152
8160
  ] });
8153
- }, kd = ({
8161
+ }, Bd = ({
8154
8162
  children: t,
8155
8163
  className: e,
8156
8164
  css: n = {},
@@ -8183,7 +8191,7 @@ function Ic() {
8183
8191
  if (Wr)
8184
8192
  return oe;
8185
8193
  Wr = 1;
8186
- var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, n = t ? Symbol.for("react.portal") : 60106, r = t ? Symbol.for("react.fragment") : 60107, o = t ? Symbol.for("react.strict_mode") : 60108, i = t ? Symbol.for("react.profiler") : 60114, l = t ? Symbol.for("react.provider") : 60109, s = t ? Symbol.for("react.context") : 60110, u = t ? Symbol.for("react.async_mode") : 60111, a = t ? Symbol.for("react.concurrent_mode") : 60111, c = t ? Symbol.for("react.forward_ref") : 60112, f = t ? Symbol.for("react.suspense") : 60113, p = t ? Symbol.for("react.suspense_list") : 60120, d = t ? Symbol.for("react.memo") : 60115, v = t ? Symbol.for("react.lazy") : 60116, h = t ? Symbol.for("react.block") : 60121, g = t ? Symbol.for("react.fundamental") : 60117, _ = t ? Symbol.for("react.responder") : 60118, w = t ? Symbol.for("react.scope") : 60119;
8194
+ var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, n = t ? Symbol.for("react.portal") : 60106, r = t ? Symbol.for("react.fragment") : 60107, o = t ? Symbol.for("react.strict_mode") : 60108, i = t ? Symbol.for("react.profiler") : 60114, l = t ? Symbol.for("react.provider") : 60109, s = t ? Symbol.for("react.context") : 60110, u = t ? Symbol.for("react.async_mode") : 60111, a = t ? Symbol.for("react.concurrent_mode") : 60111, c = t ? Symbol.for("react.forward_ref") : 60112, f = t ? Symbol.for("react.suspense") : 60113, p = t ? Symbol.for("react.suspense_list") : 60120, d = t ? Symbol.for("react.memo") : 60115, v = t ? Symbol.for("react.lazy") : 60116, h = t ? Symbol.for("react.block") : 60121, g = t ? Symbol.for("react.fundamental") : 60117, A = t ? Symbol.for("react.responder") : 60118, w = t ? Symbol.for("react.scope") : 60119;
8187
8195
  function S(x) {
8188
8196
  if (typeof x == "object" && x !== null) {
8189
8197
  var M = x.$$typeof;
@@ -8242,7 +8250,7 @@ function Ic() {
8242
8250
  }, oe.isSuspense = function(x) {
8243
8251
  return S(x) === f;
8244
8252
  }, oe.isValidElementType = function(x) {
8245
- return typeof x == "string" || typeof x == "function" || x === r || x === a || x === i || x === o || x === f || x === p || typeof x == "object" && x !== null && (x.$$typeof === v || x.$$typeof === d || x.$$typeof === l || x.$$typeof === s || x.$$typeof === c || x.$$typeof === g || x.$$typeof === _ || x.$$typeof === w || x.$$typeof === h);
8253
+ return typeof x == "string" || typeof x == "function" || x === r || x === a || x === i || x === o || x === f || x === p || typeof x == "object" && x !== null && (x.$$typeof === v || x.$$typeof === d || x.$$typeof === l || x.$$typeof === s || x.$$typeof === c || x.$$typeof === g || x.$$typeof === A || x.$$typeof === w || x.$$typeof === h);
8246
8254
  }, oe.typeOf = S, oe;
8247
8255
  }
8248
8256
  var ie = {};
@@ -8257,10 +8265,10 @@ var ie = {};
8257
8265
  var Gr;
8258
8266
  function Bc() {
8259
8267
  return Gr || (Gr = 1, process.env.NODE_ENV !== "production" && function() {
8260
- var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, n = t ? Symbol.for("react.portal") : 60106, r = t ? Symbol.for("react.fragment") : 60107, o = t ? Symbol.for("react.strict_mode") : 60108, i = t ? Symbol.for("react.profiler") : 60114, l = t ? Symbol.for("react.provider") : 60109, s = t ? Symbol.for("react.context") : 60110, u = t ? Symbol.for("react.async_mode") : 60111, a = t ? Symbol.for("react.concurrent_mode") : 60111, c = t ? Symbol.for("react.forward_ref") : 60112, f = t ? Symbol.for("react.suspense") : 60113, p = t ? Symbol.for("react.suspense_list") : 60120, d = t ? Symbol.for("react.memo") : 60115, v = t ? Symbol.for("react.lazy") : 60116, h = t ? Symbol.for("react.block") : 60121, g = t ? Symbol.for("react.fundamental") : 60117, _ = t ? Symbol.for("react.responder") : 60118, w = t ? Symbol.for("react.scope") : 60119;
8268
+ var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, n = t ? Symbol.for("react.portal") : 60106, r = t ? Symbol.for("react.fragment") : 60107, o = t ? Symbol.for("react.strict_mode") : 60108, i = t ? Symbol.for("react.profiler") : 60114, l = t ? Symbol.for("react.provider") : 60109, s = t ? Symbol.for("react.context") : 60110, u = t ? Symbol.for("react.async_mode") : 60111, a = t ? Symbol.for("react.concurrent_mode") : 60111, c = t ? Symbol.for("react.forward_ref") : 60112, f = t ? Symbol.for("react.suspense") : 60113, p = t ? Symbol.for("react.suspense_list") : 60120, d = t ? Symbol.for("react.memo") : 60115, v = t ? Symbol.for("react.lazy") : 60116, h = t ? Symbol.for("react.block") : 60121, g = t ? Symbol.for("react.fundamental") : 60117, A = t ? Symbol.for("react.responder") : 60118, w = t ? Symbol.for("react.scope") : 60119;
8261
8269
  function S(N) {
8262
8270
  return typeof N == "string" || typeof N == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
8263
- N === r || N === a || N === i || N === o || N === f || N === p || typeof N == "object" && N !== null && (N.$$typeof === v || N.$$typeof === d || N.$$typeof === l || N.$$typeof === s || N.$$typeof === c || N.$$typeof === g || N.$$typeof === _ || N.$$typeof === w || N.$$typeof === h);
8271
+ N === r || N === a || N === i || N === o || N === f || N === p || typeof N == "object" && N !== null && (N.$$typeof === v || N.$$typeof === d || N.$$typeof === l || N.$$typeof === s || N.$$typeof === c || N.$$typeof === g || N.$$typeof === A || N.$$typeof === w || N.$$typeof === h);
8264
8272
  }
8265
8273
  function K(N) {
8266
8274
  if (typeof N == "object" && N !== null) {
@@ -8294,7 +8302,7 @@ function Bc() {
8294
8302
  }
8295
8303
  }
8296
8304
  }
8297
- var x = u, M = a, R = s, b = l, A = e, P = c, C = r, B = v, E = d, T = n, q = i, V = o, F = f, ue = !1;
8305
+ var x = u, M = a, R = s, b = l, _ = e, P = c, C = r, B = v, E = d, T = n, q = i, V = o, F = f, ue = !1;
8298
8306
  function ae(N) {
8299
8307
  return ue || (ue = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), y(N) || K(N) === u;
8300
8308
  }
@@ -8334,7 +8342,7 @@ function Bc() {
8334
8342
  function J(N) {
8335
8343
  return K(N) === f;
8336
8344
  }
8337
- ie.AsyncMode = x, ie.ConcurrentMode = M, ie.ContextConsumer = R, ie.ContextProvider = b, ie.Element = A, ie.ForwardRef = P, ie.Fragment = C, ie.Lazy = B, ie.Memo = E, ie.Portal = T, ie.Profiler = q, ie.StrictMode = V, ie.Suspense = F, ie.isAsyncMode = ae, ie.isConcurrentMode = y, ie.isContextConsumer = D, ie.isContextProvider = z, ie.isElement = j, ie.isForwardRef = H, ie.isFragment = Y, ie.isLazy = U, ie.isMemo = L, ie.isPortal = I, ie.isProfiler = Z, ie.isStrictMode = G, ie.isSuspense = J, ie.isValidElementType = S, ie.typeOf = K;
8345
+ ie.AsyncMode = x, ie.ConcurrentMode = M, ie.ContextConsumer = R, ie.ContextProvider = b, ie.Element = _, ie.ForwardRef = P, ie.Fragment = C, ie.Lazy = B, ie.Memo = E, ie.Portal = T, ie.Profiler = q, ie.StrictMode = V, ie.Suspense = F, ie.isAsyncMode = ae, ie.isConcurrentMode = y, ie.isContextConsumer = D, ie.isContextProvider = z, ie.isElement = j, ie.isForwardRef = H, ie.isFragment = Y, ie.isLazy = U, ie.isMemo = L, ie.isPortal = I, ie.isProfiler = Z, ie.isStrictMode = G, ie.isSuspense = J, ie.isValidElementType = S, ie.typeOf = K;
8338
8346
  }()), ie;
8339
8347
  }
8340
8348
  var qr;
@@ -8481,14 +8489,14 @@ function Vc() {
8481
8489
  return D;
8482
8490
  }
8483
8491
  var p = "<<anonymous>>", d = {
8484
- array: _("array"),
8485
- bigint: _("bigint"),
8486
- bool: _("boolean"),
8487
- func: _("function"),
8488
- number: _("number"),
8489
- object: _("object"),
8490
- string: _("string"),
8491
- symbol: _("symbol"),
8492
+ array: A("array"),
8493
+ bigint: A("bigint"),
8494
+ bool: A("boolean"),
8495
+ func: A("function"),
8496
+ number: A("number"),
8497
+ object: A("object"),
8498
+ string: A("string"),
8499
+ symbol: A("symbol"),
8492
8500
  any: w(),
8493
8501
  arrayOf: S,
8494
8502
  element: K(),
@@ -8497,7 +8505,7 @@ function Vc() {
8497
8505
  node: P(),
8498
8506
  objectOf: b,
8499
8507
  oneOf: R,
8500
- oneOfType: A,
8508
+ oneOfType: _,
8501
8509
  shape: B,
8502
8510
  exact: E
8503
8511
  };
@@ -8531,7 +8539,7 @@ function Vc() {
8531
8539
  var H = j.bind(null, !1);
8532
8540
  return H.isRequired = j.bind(null, !0), H;
8533
8541
  }
8534
- function _(y) {
8542
+ function A(y) {
8535
8543
  function D(z, j, H, Y, U, L) {
8536
8544
  var I = z[j], Z = V(I);
8537
8545
  if (Z !== y) {
@@ -8632,7 +8640,7 @@ function Vc() {
8632
8640
  }
8633
8641
  return g(D);
8634
8642
  }
8635
- function A(y) {
8643
+ function _(y) {
8636
8644
  if (!Array.isArray(y))
8637
8645
  return process.env.NODE_ENV !== "production" && i("Invalid argument supplied to oneOfType, expected an instance of array."), l;
8638
8646
  for (var D = 0; D < y.length; D++) {
@@ -8865,7 +8873,7 @@ rs.propTypes = {
8865
8873
  rs.defaultProps = {
8866
8874
  size: 48
8867
8875
  };
8868
- const Id = ({
8876
+ const Od = ({
8869
8877
  className: t,
8870
8878
  currentStep: e,
8871
8879
  currentTitle: n,
@@ -8897,7 +8905,7 @@ const Id = ({
8897
8905
  tabIndex: n["aria-selected"] ? -1 : 0,
8898
8906
  ...n
8899
8907
  }
8900
- ), Bd = ({
8908
+ ), Rd = ({
8901
8909
  className: t,
8902
8910
  children: e,
8903
8911
  defaultActiveIndex: n = 0,
@@ -9015,7 +9023,7 @@ const nr = be, rr = ({ className: t, color: e, icon: n, iconPosition: r, size: o
9015
9023
  const r = ne(), o = $("fr-tags-group", e);
9016
9024
  return /* @__PURE__ */ m("ul", { className: o, ...je(n), children: et(t, [os, Jc, Zc]).map((i, l) => /* @__PURE__ */ m("li", { children: i }, `${r}-${l}`)) });
9017
9025
  };
9018
- function Od({
9026
+ function Vd({
9019
9027
  hint: t,
9020
9028
  label: e,
9021
9029
  onTagsChange: n = () => {
@@ -9083,7 +9091,7 @@ const to = ({
9083
9091
  [`fr-text--${o}`]: o && o !== "md"
9084
9092
  });
9085
9093
  return /* @__PURE__ */ m(e, { className: l, ...i });
9086
- }, Rd = ({
9094
+ }, zd = ({
9087
9095
  as: t = "h1",
9088
9096
  className: e,
9089
9097
  look: n,
@@ -9152,7 +9160,7 @@ const td = ({ autoDismissAfter: t = 3e3, description: e = "", id: n, remove: r =
9152
9160
  function nd({ children: t }) {
9153
9161
  return /* @__PURE__ */ m("div", { id: "toast-container", children: t });
9154
9162
  }
9155
- const is = Rt({}), Vd = ({
9163
+ const is = Rt({}), jd = ({
9156
9164
  children: t
9157
9165
  }) => {
9158
9166
  const [e, n] = X([]), r = te((s) => {
@@ -9176,7 +9184,7 @@ const is = Rt({}), Vd = ({
9176
9184
  t,
9177
9185
  cs(l, document.body)
9178
9186
  ] });
9179
- }, zd = () => Se(is), rd = be(({
9187
+ }, Hd = () => Se(is), rd = be(({
9180
9188
  className: t,
9181
9189
  css: e = {},
9182
9190
  hasLabelLeft: n,
@@ -9218,7 +9226,7 @@ const is = Rt({}), Vd = ({
9218
9226
  ]
9219
9227
  }
9220
9228
  );
9221
- }), jd = ({ children: t, className: e, ...n }) => {
9229
+ }), Ud = ({ children: t, className: e, ...n }) => {
9222
9230
  const r = ne();
9223
9231
  return /* @__PURE__ */ m("ul", { className: $("fr-toggle__list", e), ...je(n), children: de(t, rd).map((o, i) => /* @__PURE__ */ m("li", { children: o }, `${r}-${i}`)) });
9224
9232
  }, od = be(({
@@ -9247,7 +9255,7 @@ const is = Rt({}), Vd = ({
9247
9255
  children: r
9248
9256
  }
9249
9257
  )
9250
- ] })), Hd = ({
9258
+ ] })), Wd = ({
9251
9259
  children: t,
9252
9260
  className: e,
9253
9261
  isVertical: n,
@@ -9259,97 +9267,106 @@ const is = Rt({}), Vd = ({
9259
9267
  ...u
9260
9268
  }) => {
9261
9269
  const a = ne(), c = $("fr-segmented", e), f = {};
9262
- return n && (f.style = { display: "block" }), /* @__PURE__ */ O(
9263
- "fieldset",
9264
- {
9265
- className: c,
9266
- id: a,
9267
- ...f,
9268
- ...u,
9269
- children: [
9270
- r && /* @__PURE__ */ m("legend", { className: $("fr-segmented__legend", { "fr-segmented__legend--inline": o }), children: r }),
9271
- de(t, od).map((p, d) => {
9272
- if (Q.isValidElement(p))
9273
- return /* @__PURE__ */ m("div", { className: $("fr-segmented__elements"), children: Q.cloneElement(p, {
9274
- name: i,
9275
- id: `${i}-${d}`,
9276
- onChange: () => {
9277
- var v, h;
9278
- l == null || l(p.props.value), (h = (v = p == null ? void 0 : p.props) == null ? void 0 : v.onChange) == null || h.call(v);
9270
+ return n && (f.style = { display: "block" }), /* @__PURE__ */ O("fieldset", { className: c, id: a, ...f, ...u, children: [
9271
+ r && /* @__PURE__ */ m(
9272
+ "legend",
9273
+ {
9274
+ className: $("fr-segmented__legend", {
9275
+ "fr-segmented__legend--inline": o
9276
+ }),
9277
+ children: r
9278
+ }
9279
+ ),
9280
+ de(t, od).map((p, d) => {
9281
+ if (Q.isValidElement(p))
9282
+ return /* @__PURE__ */ m(
9283
+ "div",
9284
+ {
9285
+ className: $("fr-segmented__elements"),
9286
+ children: Q.cloneElement(
9287
+ p,
9288
+ {
9289
+ name: i,
9290
+ id: `${a}-${d}`,
9291
+ onChange: () => {
9292
+ var v, h;
9293
+ l == null || l(p.props.value), (h = (v = p == null ? void 0 : p.props) == null ? void 0 : v.onChange) == null || h.call(v);
9294
+ }
9279
9295
  }
9280
- }) }, `segmented-element-${d}`);
9281
- })
9282
- ]
9283
- }
9284
- );
9296
+ )
9297
+ },
9298
+ `segmented-element-${d}`
9299
+ );
9300
+ })
9301
+ ] });
9285
9302
  };
9286
9303
  export {
9287
9304
  ps as Accordion,
9288
- ad as AccordionGroup,
9289
- cd as Alert,
9305
+ dd as AccordionGroup,
9306
+ fd as Alert,
9290
9307
  cc as Autocomplete,
9291
- pd as AutocompleteItem,
9308
+ md as AutocompleteItem,
9292
9309
  fc as Badge,
9293
- bd as BadgeGroup,
9294
- md as Breadcrumb,
9310
+ vd as BadgeGroup,
9311
+ hd as Breadcrumb,
9295
9312
  ut as Button,
9296
- vd as ButtonGroup,
9297
- hd as Checkbox,
9298
- yd as Col,
9313
+ gd as ButtonGroup,
9314
+ $d as Checkbox,
9315
+ Cd as Col,
9299
9316
  mc as Container,
9300
- fd as DSFRConfig,
9317
+ bd as DSFRConfig,
9301
9318
  os as DismissibleTag,
9302
9319
  hc as FastAccess,
9303
- gd as Fieldset,
9304
- $d as FileUpload,
9305
- xd as Header,
9320
+ yd as Fieldset,
9321
+ xd as FileUpload,
9322
+ Ed as Header,
9306
9323
  Vt as Item,
9307
9324
  he as Link,
9308
- Pd as Listbox,
9309
- wd as ListboxItem,
9310
- Sd as ListboxSection,
9325
+ Sd as Listbox,
9326
+ Td as ListboxItem,
9327
+ _d as ListboxSection,
9311
9328
  xc as Logo,
9312
- Td as MenuButton,
9313
- _d as MenuItem,
9314
- Ad as MenuSection,
9315
- Kd as Modal,
9329
+ Ad as MenuButton,
9330
+ Kd as MenuItem,
9331
+ Dd as MenuSection,
9332
+ Fd as Modal,
9316
9333
  Bt as ModalClose,
9317
9334
  Jl as ModalContent,
9318
9335
  Ql as ModalFooter,
9319
9336
  Zl as ModalTitle,
9320
9337
  yc as Nav,
9321
9338
  Yl as NavItem,
9322
- Dd as Notice,
9339
+ Ld as Notice,
9323
9340
  gc as Operator,
9324
- Fd as Radio,
9341
+ Md as Radio,
9325
9342
  Hr as Row,
9326
9343
  $c as SearchBar,
9327
9344
  lo as Section,
9328
- Hd as SegmentedControl,
9345
+ Wd as SegmentedControl,
9329
9346
  od as SegmentedElement,
9330
- Ld as Select,
9331
- Md as SelectOption,
9347
+ Nd as Select,
9348
+ kd as SelectOption,
9332
9349
  Jc as SelectableTag,
9333
9350
  vc as Service,
9334
- Nd as SideMenu,
9351
+ Id as SideMenu,
9335
9352
  es as SideMenuItem,
9336
- kd as SideMenuLink,
9353
+ Bd as SideMenuLink,
9337
9354
  rs as Spinner,
9338
- Id as Stepper,
9355
+ Od as Stepper,
9339
9356
  Xc as Tab,
9340
- Bd as Tabs,
9357
+ Rd as Tabs,
9341
9358
  Zc as Tag,
9342
9359
  Qc as TagGroup,
9343
- Od as TagInput,
9360
+ Vd as TagInput,
9344
9361
  to as Text,
9345
- Ed as TextArea,
9346
- Cd as TextInput,
9347
- Rd as Title,
9362
+ wd as TextArea,
9363
+ Pd as TextInput,
9364
+ zd as Title,
9348
9365
  td as Toast,
9349
- Vd as ToastContextProvider,
9366
+ jd as ToastContextProvider,
9350
9367
  rd as Toggle,
9351
- jd as ToggleGroup,
9352
- dd as useAutocompleteList,
9368
+ Ud as ToggleGroup,
9369
+ pd as useAutocompleteList,
9353
9370
  bt as useDSFRConfig,
9354
- zd as useToast
9371
+ Hd as useToast
9355
9372
  };