@rte-ds/react 1.3.14 → 1.3.15

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.
@@ -2823,10 +2823,10 @@ const xe = "_badgeContainer_3v2tn_1", _e = "_badge_3v2tn_1", Be = "_hidden_3v2tn
2823
2823
  countOverflow: be
2824
2824
  }, r1 = $(
2825
2825
  ({ badgeType: C = "brand", size: e = "m", content: t = "number", count: r, icon: l = "notification", children: o, ...s }, i) => {
2826
- var g;
2826
+ var v;
2827
2827
  if (t == "icon" && l && !G1(l))
2828
2828
  return console.warn(`Badge: Invalid icon name "${l}". Please use a valid icon key.`), null;
2829
- const c = b6(e), a = X3({ size: e, content: t, iconSize: c }), w = J3({ size: e, content: t, count: r }), p = S6({ size: e, content: t, count: r, iconSize: c }), H = w && ((g = M3(r)) == null ? void 0 : g.length) > 2;
2829
+ const c = b6(e), a = X3({ size: e, content: t, iconSize: c }), w = J3({ size: e, content: t, count: r }), g = S6({ size: e, content: t, count: r, iconSize: c }), V = w && ((v = M3(r)) == null ? void 0 : v.length) > 2;
2830
2830
  return o ? /* @__PURE__ */ d("div", { ref: i, className: w1.badgeContainer, ...s, children: [
2831
2831
  /* @__PURE__ */ d(
2832
2832
  "div",
@@ -2836,8 +2836,8 @@ const xe = "_badgeContainer_3v2tn_1", _e = "_badge_3v2tn_1", Be = "_hidden_3v2tn
2836
2836
  "data-testid": "badge",
2837
2837
  className: z(
2838
2838
  w1.badge,
2839
- p ? "" : w1.hidden,
2840
- H ? w1.countOverflow : ""
2839
+ g ? "" : w1.hidden,
2840
+ V ? w1.countOverflow : ""
2841
2841
  ),
2842
2842
  children: [
2843
2843
  a && /* @__PURE__ */ n(I, { name: l, className: w1.icon, size: c }),
@@ -2855,8 +2855,8 @@ const xe = "_badgeContainer_3v2tn_1", _e = "_badge_3v2tn_1", Be = "_hidden_3v2tn
2855
2855
  "data-testid": "badge",
2856
2856
  className: z(
2857
2857
  w1.badge,
2858
- p ? "" : w1.hidden,
2859
- H ? w1.countOverflow : ""
2858
+ g ? "" : w1.hidden,
2859
+ V ? w1.countOverflow : ""
2860
2860
  ),
2861
2861
  children: [
2862
2862
  a && /* @__PURE__ */ n(I, { name: l, className: w1.icon, size: c }),
@@ -2907,17 +2907,17 @@ const xe = "_badgeContainer_3v2tn_1", _e = "_badge_3v2tn_1", Be = "_hidden_3v2tn
2907
2907
  badgeType: c,
2908
2908
  badgeIcon: a,
2909
2909
  icon: w,
2910
- iconPosition: p = "left",
2911
- iconColor: H,
2912
- iconAppearance: g,
2913
- ...V
2914
- }, Z) => {
2915
- const L = i > 0 && s === "number" || s === "icon" && a, v = C === "s" ? 16 : C === "m" ? 20 : 24, x = /* @__PURE__ */ d(G, { children: [
2916
- w && p === "left" && /* @__PURE__ */ n(I, { name: w, size: v, color: H, appearance: g }),
2910
+ iconPosition: g = "left",
2911
+ iconColor: V,
2912
+ iconAppearance: v,
2913
+ ...L
2914
+ }, m) => {
2915
+ const H = i > 0 && s === "number" || s === "icon" && a, p = C === "s" ? 16 : C === "m" ? 20 : 24, _ = /* @__PURE__ */ d(G, { children: [
2916
+ w && g === "left" && /* @__PURE__ */ n(I, { name: w, size: p, color: V, appearance: v }),
2917
2917
  /* @__PURE__ */ n("span", { "data-size": C, className: m3.label, children: e }),
2918
- w && p === "right" && /* @__PURE__ */ n(I, { name: w, size: v, color: H, appearance: g })
2918
+ w && g === "right" && /* @__PURE__ */ n(I, { name: w, size: p, color: V, appearance: v })
2919
2919
  ] });
2920
- return L ? /* @__PURE__ */ n(
2920
+ return H ? /* @__PURE__ */ n(
2921
2921
  r1,
2922
2922
  {
2923
2923
  badgeType: c,
@@ -2928,28 +2928,28 @@ const xe = "_badgeContainer_3v2tn_1", _e = "_badge_3v2tn_1", Be = "_hidden_3v2tn
2928
2928
  children: /* @__PURE__ */ n(
2929
2929
  "button",
2930
2930
  {
2931
- ref: Z,
2931
+ ref: m,
2932
2932
  type: o,
2933
2933
  className: z(m3.button, r),
2934
2934
  "data-size": C,
2935
2935
  "data-variant": t,
2936
2936
  onClick: l,
2937
- ...V,
2938
- children: x
2937
+ ...L,
2938
+ children: _
2939
2939
  }
2940
2940
  )
2941
2941
  }
2942
2942
  ) : /* @__PURE__ */ n(
2943
2943
  "button",
2944
2944
  {
2945
- ref: Z,
2945
+ ref: m,
2946
2946
  type: o,
2947
2947
  className: z(m3.button, r),
2948
2948
  "data-size": C,
2949
2949
  "data-variant": t,
2950
2950
  onClick: l,
2951
- ...V,
2952
- children: x
2951
+ ...L,
2952
+ children: _
2953
2953
  }
2954
2954
  );
2955
2955
  }
@@ -2968,44 +2968,44 @@ const xe = "_badgeContainer_3v2tn_1", _e = "_badge_3v2tn_1", Be = "_hidden_3v2tn
2968
2968
  badgeContent: c,
2969
2969
  badgeCount: a,
2970
2970
  badgeType: w,
2971
- badgeIcon: p,
2972
- iconColor: H,
2973
- ...g
2974
- }, V) => G1(o) ? a > 0 && c === "number" || c === "icon" && p ? /* @__PURE__ */ n(
2971
+ badgeIcon: g,
2972
+ iconColor: V,
2973
+ ...v
2974
+ }, L) => G1(o) ? a > 0 && c === "number" || c === "icon" && g ? /* @__PURE__ */ n(
2975
2975
  r1,
2976
2976
  {
2977
2977
  badgeType: w,
2978
2978
  size: C,
2979
2979
  content: C === "s" ? "empty" : c,
2980
2980
  count: a,
2981
- icon: p,
2981
+ icon: g,
2982
2982
  children: /* @__PURE__ */ n(
2983
2983
  "button",
2984
2984
  {
2985
- ref: V,
2985
+ ref: L,
2986
2986
  type: l,
2987
2987
  className: z(R3["icon-button"], t),
2988
2988
  "data-size": C,
2989
2989
  "data-variant": e,
2990
2990
  "data-compact-spacing": i,
2991
2991
  onClick: r,
2992
- ...g,
2993
- children: /* @__PURE__ */ n(I, { name: o, appearance: s, size: T3[C], color: H })
2992
+ ...v,
2993
+ children: /* @__PURE__ */ n(I, { name: o, appearance: s, size: T3[C], color: V })
2994
2994
  }
2995
2995
  )
2996
2996
  }
2997
2997
  ) : /* @__PURE__ */ n(
2998
2998
  "button",
2999
2999
  {
3000
- ref: V,
3000
+ ref: L,
3001
3001
  type: l,
3002
3002
  className: z(R3["icon-button"], t),
3003
3003
  "data-size": C,
3004
3004
  "data-variant": e,
3005
3005
  "data-compact-spacing": i,
3006
3006
  onClick: r,
3007
- ...g,
3008
- children: /* @__PURE__ */ n(I, { name: o, appearance: s, size: T3[C], color: H })
3007
+ ...v,
3008
+ children: /* @__PURE__ */ n(I, { name: o, appearance: s, size: T3[C], color: V })
3009
3009
  }
3010
3010
  ) : (console.warn(`IconButton: Invalid icon name "${o}". Please use a valid icon key.`), null)
3011
3011
  ), ke = "_banner_vvnzx_1", P1 = {
@@ -3028,38 +3028,38 @@ const xe = "_badgeContainer_3v2tn_1", _e = "_badge_3v2tn_1", Be = "_hidden_3v2tn
3028
3028
  className: c = "",
3029
3029
  isOpen: a = !0,
3030
3030
  ...w
3031
- }, p) => {
3032
- const [H, g] = F(a), V = t === "error" ? "alert" : "status", { shouldRender: Z, isAnimating: L } = R1(H, 200), v = {
3031
+ }, g) => {
3032
+ const [V, v] = F(a), L = t === "error" ? "alert" : "status", { shouldRender: m, isAnimating: H } = R1(V, 200), p = {
3033
3033
  info: "info",
3034
3034
  error: "dangerous",
3035
3035
  success: "check-circle",
3036
3036
  warning: "warning"
3037
3037
  };
3038
3038
  if (E(() => {
3039
- g(a);
3039
+ v(a);
3040
3040
  }, [a]), r === !1 && o === "overlay")
3041
3041
  return console.warn("Banner: 'closable' and 'onClose' props must be set when 'position' has 'overlay' value."), null;
3042
- const x = () => {
3043
- g(!1), l == null || l();
3042
+ const _ = () => {
3043
+ v(!1), l == null || l();
3044
3044
  };
3045
- return Z && /* @__PURE__ */ d(
3045
+ return m && /* @__PURE__ */ d(
3046
3046
  "section",
3047
3047
  {
3048
- role: V,
3048
+ role: L,
3049
3049
  className: z(P1.banner, c),
3050
- ref: p,
3050
+ ref: g,
3051
3051
  "data-type": t,
3052
3052
  "data-position": o,
3053
- "data-open": L || void 0,
3053
+ "data-open": H || void 0,
3054
3054
  ...w,
3055
3055
  children: [
3056
- /* @__PURE__ */ n("div", { className: P1["banner-icon"], children: /* @__PURE__ */ n(I, { name: v[t], size: 32 }) }),
3056
+ /* @__PURE__ */ n("div", { className: P1["banner-icon"], children: /* @__PURE__ */ n(I, { name: p[t], size: 32 }) }),
3057
3057
  /* @__PURE__ */ d("div", { className: P1["banner-content"], children: [
3058
3058
  C && /* @__PURE__ */ n("span", { className: P1["banner-title"], children: C }),
3059
3059
  e && /* @__PURE__ */ n("div", { className: P1["banner-message"], children: /* @__PURE__ */ n("span", { children: e }) })
3060
3060
  ] }),
3061
3061
  s && i && /* @__PURE__ */ n(h3, { label: i, onClick: s, variant: "text", "aria-label": i, size: "s" }),
3062
- r && /* @__PURE__ */ n("div", { className: P1["banner-close-icon"], children: /* @__PURE__ */ n(H1, { variant: "neutral", name: "close", onClick: x, "aria-label": "close banner" }) })
3062
+ r && /* @__PURE__ */ n("div", { className: P1["banner-close-icon"], children: /* @__PURE__ */ n(H1, { variant: "neutral", name: "close", onClick: _, "aria-label": "close banner" }) })
3063
3063
  ]
3064
3064
  }
3065
3065
  );
@@ -3188,12 +3188,12 @@ const o6 = (C, e, t, r = 0, l = !1) => {
3188
3188
  onBlur: s = a3,
3189
3189
  onFocus: i = a3
3190
3190
  } = C, c = q(r ?? [o1, Q]);
3191
- return { onKeyDown: (g) => {
3192
- var V;
3193
- $e(g.target) || (V = c.current) != null && V.includes(g.key) && (!t || g.target.id === t) && (g.preventDefault(), l(g));
3194
- }, onKeyUp: (g) => {
3195
- var V;
3196
- (V = c.current) != null && V.includes(g.key) && (!t || g.target.id === t) && o(g);
3191
+ return { onKeyDown: (v) => {
3192
+ var L;
3193
+ $e(v.target) || (L = c.current) != null && L.includes(v.key) && (!t || v.target.id === t) && (v.preventDefault(), l(v));
3194
+ }, onKeyUp: (v) => {
3195
+ var L;
3196
+ (L = c.current) != null && L.includes(v.key) && (!t || v.target.id === t) && o(v);
3197
3197
  }, onBlur: () => {
3198
3198
  s();
3199
3199
  }, onFocus: () => {
@@ -3332,17 +3332,17 @@ const o6 = (C, e, t, r = 0, l = !1) => {
3332
3332
  },
3333
3333
  children: a,
3334
3334
  offset: w = 0,
3335
- alignment: p = "start",
3336
- autofocus: H = !0,
3337
- header: g,
3338
- footer: V,
3339
- ...Z
3340
- }, L) => {
3341
- const { dropdownId: v } = i6(r), [x, _] = F(o), { closeRoot: u } = k3(O3) || {}, h = q(null), f = q(null), [B, N] = F(null), [S, y] = F(null), [O, k] = F({ top: 500, left: 500 }), { shouldRender: b, isAnimating: M } = R1(i, Ae), m = W(
3335
+ alignment: g = "start",
3336
+ autofocus: V = !0,
3337
+ header: v,
3338
+ footer: L,
3339
+ ...m
3340
+ }, H) => {
3341
+ const { dropdownId: p } = i6(r), [_, x] = F(o), { closeRoot: u } = k3(O3) || {}, h = q(null), f = q(null), [B, N] = F(null), [S, y] = F(null), [O, k] = F({ top: 500, left: 500 }), { shouldRender: b, isAnimating: M } = R1(i, Ae), Z = W(
3342
3342
  (T) => {
3343
- f.current = T, N(T), typeof L == "function" ? L(T) : L && (L.current = T);
3343
+ f.current = T, N(T), typeof H == "function" ? H(T) : H && (H.current = T);
3344
3344
  },
3345
- [L]
3345
+ [H]
3346
3346
  ), A = W((T) => {
3347
3347
  h.current = T, y(T);
3348
3348
  }, []), K = W(() => {
@@ -3382,7 +3382,7 @@ const o6 = (C, e, t, r = 0, l = !1) => {
3382
3382
  w,
3383
3383
  V1
3384
3384
  );
3385
- _(t1), k(u1);
3385
+ x(t1), k(u1);
3386
3386
  },
3387
3387
  [w]
3388
3388
  ), g1 = W(
@@ -3394,41 +3394,41 @@ const o6 = (C, e, t, r = 0, l = !1) => {
3394
3394
  w,
3395
3395
  f1
3396
3396
  );
3397
- _(u1), k(x1);
3397
+ x(u1), k(x1);
3398
3398
  },
3399
3399
  [w]
3400
3400
  );
3401
3401
  return E(() => {
3402
- !S || !B || (l ? j(S, B) : g1(S, B, o, p));
3403
- }, [l, B, S, o, p, j, g1]), E(() => {
3404
- i && B && H && l6(v);
3405
- }, [i, v, B, H]), /* @__PURE__ */ d(Ge, { dropdownId: v, closeRoot: K, autoClose: s, children: [
3402
+ !S || !B || (l ? j(S, B) : g1(S, B, o, g));
3403
+ }, [l, B, S, o, g, j, g1]), E(() => {
3404
+ i && B && V && l6(p);
3405
+ }, [i, p, B, V]), /* @__PURE__ */ d(Ge, { dropdownId: p, closeRoot: K, autoClose: s, children: [
3406
3406
  /* @__PURE__ */ n("div", { ref: A, className: $1.trigger, tabIndex: -1, onKeyDown: P, children: C }),
3407
3407
  b && /* @__PURE__ */ n(Q1, { children: /* @__PURE__ */ d(
3408
3408
  "div",
3409
3409
  {
3410
3410
  className: z($1.dropdown, e),
3411
- "data-dropdown-id": v,
3412
- "data-position": x,
3411
+ "data-dropdown-id": p,
3412
+ "data-position": _,
3413
3413
  "data-open": M || void 0,
3414
- ...Z,
3414
+ ...m,
3415
3415
  style: {
3416
3416
  ...t,
3417
3417
  top: O.top,
3418
3418
  left: O.left
3419
3419
  },
3420
- ref: m,
3420
+ ref: Z,
3421
3421
  onKeyUp: Y,
3422
3422
  onKeyDown: l1,
3423
3423
  children: [
3424
- g && /* @__PURE__ */ d("div", { className: z($1["dropdown-menu-header"], "rte-dropdown-menu-header"), children: [
3425
- g,
3424
+ v && /* @__PURE__ */ d("div", { className: z($1["dropdown-menu-header"], "rte-dropdown-menu-header"), children: [
3425
+ v,
3426
3426
  /* @__PURE__ */ n(d1, {})
3427
3427
  ] }),
3428
3428
  /* @__PURE__ */ n("div", { className: z($1["dropdown-menu-content"], "rte-dropdown-menu-content"), children: /* @__PURE__ */ n("ul", { className: $1["dropdown-items"], role: "menu", children: a }) }),
3429
- V && /* @__PURE__ */ d("div", { className: z($1["dropdown-menu-footer"], "rte-dropdown-menu-footer"), children: [
3429
+ L && /* @__PURE__ */ d("div", { className: z($1["dropdown-menu-footer"], "rte-dropdown-menu-footer"), children: [
3430
3430
  /* @__PURE__ */ n(d1, {}),
3431
- V
3431
+ L
3432
3432
  ] })
3433
3433
  ]
3434
3434
  }
@@ -3450,34 +3450,34 @@ const o6 = (C, e, t, r = 0, l = !1) => {
3450
3450
  badgeCount: c,
3451
3451
  badgeContent: a,
3452
3452
  badgeIcon: w,
3453
- badgeType: p,
3454
- badgeSize: H,
3455
- showBadge: g,
3456
- isSelected: V,
3457
- onClick: Z,
3458
- ...L
3453
+ badgeType: g,
3454
+ badgeSize: V,
3455
+ showBadge: v,
3456
+ isSelected: L,
3457
+ onClick: m,
3458
+ ...H
3459
3459
  }) => {
3460
- const { dropdownId: v, autoClose: x, closeRoot: _ } = k3(O3) || {}, u = `${v}-${C && C.replace(/\s+/g, "")}`, { isOpen: h, open: f } = i6(u), B = () => {
3461
- v && (v1.closeSubMenus(v), f());
3460
+ const { dropdownId: p, autoClose: _, closeRoot: x } = k3(O3) || {}, u = `${p}-${C && C.replace(/\s+/g, "")}`, { isOpen: h, open: f } = i6(u), B = () => {
3461
+ p && (v1.closeSubMenus(p), f());
3462
3462
  }, N = () => {
3463
- v && v1.closeSubMenus(v);
3463
+ p && v1.closeSubMenus(p);
3464
3464
  };
3465
3465
  s && t && console.warn(
3466
3466
  `DropdownItem: 'hasIndent' prop is ignored when 'leftIcon' is provided : displaying icon '${t}' for dropdownitem with label '${C}' without indentation.`
3467
3467
  );
3468
- const S = (m) => {
3469
- l || (Z && Z(m), x && _ && _());
3470
- }, y = (m) => {
3471
- if ([o1, Q].includes(m.key))
3468
+ const S = (Z) => {
3469
+ l || (m && m(Z), _ && x && x());
3470
+ }, y = (Z) => {
3471
+ if ([o1, Q].includes(Z.key))
3472
3472
  if (e) {
3473
- const A = m.currentTarget.querySelector("a");
3473
+ const A = Z.currentTarget.querySelector("a");
3474
3474
  A && A.click();
3475
3475
  } else {
3476
3476
  if (l) return;
3477
- Z && S(m), i && f();
3477
+ m && S(Z), i && f();
3478
3478
  }
3479
- }, O = (m) => {
3480
- m.preventDefault(), m.key === j1 && (h && l6(u), m.shiftKey && v && Xe(v));
3479
+ }, O = (Z) => {
3480
+ Z.preventDefault(), Z.key === j1 && (h && l6(u), Z.shiftKey && p && Xe(p));
3481
3481
  }, { onKeyUp: k, onFocus: b, onKeyDown: M } = E1(
3482
3482
  { onKeyUp: O, onFocus: N, onKeyDown: y },
3483
3483
  {
@@ -3528,7 +3528,7 @@ const o6 = (C, e, t, r = 0, l = !1) => {
3528
3528
  {
3529
3529
  className: O1["dropdown-item"],
3530
3530
  "data-disabled": l,
3531
- "data-active": V,
3531
+ "data-active": L,
3532
3532
  role: "menuitem",
3533
3533
  onClick: S,
3534
3534
  onMouseOver: B,
@@ -3536,13 +3536,13 @@ const o6 = (C, e, t, r = 0, l = !1) => {
3536
3536
  onKeyDown: M,
3537
3537
  onFocus: b,
3538
3538
  tabIndex: 0,
3539
- ...L,
3539
+ ...H,
3540
3540
  children: [
3541
3541
  s && !t && /* @__PURE__ */ n("span", { style: { width: "20px" } }),
3542
3542
  t && /* @__PURE__ */ n(I, { name: t, className: O1["dropdown-item-icon"] }),
3543
3543
  e ? /* @__PURE__ */ n("a", { href: e, style: { flex: "2", textDecoration: "none", color: "inherit" }, children: C }) : /* @__PURE__ */ n("span", { style: { flex: "2" }, children: C }),
3544
3544
  r && /* @__PURE__ */ n("div", { children: r }),
3545
- Y1({ showBadge: !!g, badgeContent: a, badgeCount: c, badgeIcon: w }) && /* @__PURE__ */ n(r1, { count: c, content: a, icon: w, badgeType: p, size: H })
3545
+ Y1({ showBadge: !!v, badgeContent: a, badgeCount: c, badgeIcon: w }) && /* @__PURE__ */ n(r1, { count: c, content: a, icon: w, badgeType: g, size: V })
3546
3546
  ]
3547
3547
  }
3548
3548
  ),
@@ -3609,23 +3609,23 @@ const ot = "_tooltip_jx6mx_1", lt = "_tooltipLabel_jx6mx_22", Z3 = {
3609
3609
  gap: c = c6,
3610
3610
  ...a
3611
3611
  }, w) => {
3612
- const p = q(null), H = q(null), [g, V] = F(null), [Z, L] = F(e), [v, x] = F({ top: 0, left: 0 }), [_, u] = F(!1), { shouldRender: h, isAnimating: f } = R1(_, nt), B = W(
3612
+ const g = q(null), V = q(null), [v, L] = F(null), [m, H] = F(e), [p, _] = F({ top: 0, left: 0 }), [x, u] = F(!1), { shouldRender: h, isAnimating: f } = R1(x, nt), B = W(
3613
3613
  (O) => {
3614
- H.current = O, V(O), typeof w == "function" ? w(O) : w && (w.current = O);
3614
+ V.current = O, L(O), typeof w == "function" ? w(O) : w && (w.current = O);
3615
3615
  },
3616
3616
  [w]
3617
3617
  ), N = W(() => {
3618
- if (_ && p.current && g) {
3619
- const O = rt(l, c), k = e === "auto" ? o6(p.current, g, "top", O, !0) : e, b = v3(
3618
+ if (x && g.current && v) {
3619
+ const O = rt(l, c), k = e === "auto" ? o6(g.current, v, "top", O, !0) : e, b = v3(
3620
3620
  k,
3621
- p.current,
3622
- g,
3621
+ g.current,
3622
+ v,
3623
3623
  O,
3624
3624
  t
3625
3625
  );
3626
- L(k), x(b);
3626
+ H(k), _(b);
3627
3627
  }
3628
- }, [_, e, l, g, c, t]);
3628
+ }, [x, e, l, v, c, t]);
3629
3629
  E(() => (N(), window.addEventListener("scroll", N), () => {
3630
3630
  window.removeEventListener("scroll", N);
3631
3631
  }), [N]);
@@ -3637,7 +3637,7 @@ const ot = "_tooltip_jx6mx_1", lt = "_tooltipLabel_jx6mx_22", Z3 = {
3637
3637
  return /* @__PURE__ */ d(
3638
3638
  "div",
3639
3639
  {
3640
- ref: p,
3640
+ ref: g,
3641
3641
  className: Z3["tooltip-trigger"],
3642
3642
  onMouseEnter: S,
3643
3643
  onMouseLeave: y,
@@ -3653,13 +3653,13 @@ const ot = "_tooltip_jx6mx_1", lt = "_tooltipLabel_jx6mx_22", Z3 = {
3653
3653
  {
3654
3654
  ref: B,
3655
3655
  className: z(Z3.tooltip, o),
3656
- "data-position": Z,
3656
+ "data-position": m,
3657
3657
  "data-open": f || void 0,
3658
3658
  "data-alignment": t,
3659
3659
  "data-arrow": l,
3660
3660
  style: {
3661
- top: `${v.top}px`,
3662
- left: `${v.left}px`
3661
+ top: `${p.top}px`,
3662
+ left: `${p.left}px`
3663
3663
  },
3664
3664
  ...a,
3665
3665
  children: r && /* @__PURE__ */ n("span", { role: "tooltip", className: Z3.tooltipLabel, children: r })
@@ -3674,14 +3674,14 @@ const ot = "_tooltip_jx6mx_1", lt = "_tooltipLabel_jx6mx_22", Z3 = {
3674
3674
  }, f3 = ({ item: C, isLast: e, breadcrumbItemMaxWidth: t }) => {
3675
3675
  const [r, l] = F(!1), o = q(), s = q(null);
3676
3676
  E(() => {
3677
- var V;
3678
- s.current && (o.current = (V = s.current.querySelector("a")) == null ? void 0 : V.scrollWidth);
3677
+ var L;
3678
+ s.current && (o.current = (L = s.current.querySelector("a")) == null ? void 0 : L.scrollWidth);
3679
3679
  }, []), E(() => {
3680
3680
  (() => {
3681
3681
  o.current && t && l(o.current >= t);
3682
3682
  })();
3683
3683
  }, [t]);
3684
- const { showBadge: i, badgeContent: c, badgeCount: a, badgeIcon: w, badgeType: p, badgeSize: H } = C, g = Y1({ showBadge: !!i, badgeContent: c, badgeCount: a, badgeIcon: w });
3684
+ const { showBadge: i, badgeContent: c, badgeCount: a, badgeIcon: w, badgeType: g, badgeSize: V } = C, v = Y1({ showBadge: !!i, badgeContent: c, badgeCount: a, badgeIcon: w });
3685
3685
  return /* @__PURE__ */ n("div", { className: it.breadcrumbItem, ref: s, children: e ? /* @__PURE__ */ n(G, { children: r ? /* @__PURE__ */ d(
3686
3686
  Z1,
3687
3687
  {
@@ -3706,14 +3706,14 @@ const ot = "_tooltip_jx6mx_1", lt = "_tooltipLabel_jx6mx_22", Z3 = {
3706
3706
  children: C.label
3707
3707
  }
3708
3708
  ),
3709
- g && /* @__PURE__ */ n(
3709
+ v && /* @__PURE__ */ n(
3710
3710
  r1,
3711
3711
  {
3712
3712
  count: a,
3713
3713
  content: c,
3714
3714
  icon: w,
3715
- badgeType: p,
3716
- size: H
3715
+ badgeType: g,
3716
+ size: V
3717
3717
  }
3718
3718
  )
3719
3719
  ]
@@ -3730,7 +3730,7 @@ const ot = "_tooltip_jx6mx_1", lt = "_tooltipLabel_jx6mx_22", Z3 = {
3730
3730
  children: C.label
3731
3731
  }
3732
3732
  ),
3733
- g && /* @__PURE__ */ n(r1, { count: a, content: c, icon: w, badgeType: p })
3733
+ v && /* @__PURE__ */ n(r1, { count: a, content: c, icon: w, badgeType: g })
3734
3734
  ] }) }) : /* @__PURE__ */ n(G, { children: r ? /* @__PURE__ */ d(
3735
3735
  Z1,
3736
3736
  {
@@ -3754,7 +3754,7 @@ const ot = "_tooltip_jx6mx_1", lt = "_tooltipLabel_jx6mx_22", Z3 = {
3754
3754
  }
3755
3755
  ),
3756
3756
  " ",
3757
- g && /* @__PURE__ */ n(r1, { count: a, content: c, icon: w, badgeType: p })
3757
+ v && /* @__PURE__ */ n(r1, { count: a, content: c, icon: w, badgeType: g })
3758
3758
  ]
3759
3759
  }
3760
3760
  ) : /* @__PURE__ */ d(G, { children: [
@@ -3767,7 +3767,7 @@ const ot = "_tooltip_jx6mx_1", lt = "_tooltipLabel_jx6mx_22", Z3 = {
3767
3767
  style: { color: "var(--content-tertiary)", maxWidth: `${t}px` }
3768
3768
  }
3769
3769
  ),
3770
- g && /* @__PURE__ */ n(r1, { count: a, content: c, icon: w, badgeType: p })
3770
+ v && /* @__PURE__ */ n(r1, { count: a, content: c, icon: w, badgeType: g })
3771
3771
  ] }) }) }, C.link);
3772
3772
  }, ct = "_breadcrumbsContainer_12g5q_1", at = "_breadcrumbItem_12g5q_7", dt = "_separator_12g5q_36", U1 = {
3773
3773
  breadcrumbsContainer: ct,
@@ -3786,26 +3786,26 @@ const ot = "_tooltip_jx6mx_1", lt = "_tooltipLabel_jx6mx_22", Z3 = {
3786
3786
  showBadge: c,
3787
3787
  ...a
3788
3788
  }, w) => {
3789
- const [p, H] = F(!1);
3789
+ const [g, V] = F(!1);
3790
3790
  if (r6(C)) {
3791
- const { root: g, truncated: V, remaining: Z } = Ie(C);
3791
+ const { root: v, truncated: L, remaining: m } = Ie(C);
3792
3792
  return /* @__PURE__ */ d(
3793
3793
  "nav",
3794
3794
  {
3795
3795
  ref: w,
3796
- className: z(U1.breadcrumbsContainer, V.length ? U1.truncated : ""),
3796
+ className: z(U1.breadcrumbsContainer, L.length ? U1.truncated : ""),
3797
3797
  ...a,
3798
3798
  role: "navigation",
3799
3799
  "aria-label": e,
3800
3800
  children: [
3801
- /* @__PURE__ */ n(f3, { item: g, isLast: !1, breadcrumbItemMaxWidth: t }),
3801
+ /* @__PURE__ */ n(f3, { item: v, isLast: !1, breadcrumbItemMaxWidth: t }),
3802
3802
  /* @__PURE__ */ n(x3, {}),
3803
3803
  /* @__PURE__ */ n("span", { className: U1.breadcrumbItem, children: /* @__PURE__ */ n(
3804
3804
  i3,
3805
3805
  {
3806
3806
  dropdownId: "breadcrumbs-truncated-list" + e,
3807
3807
  onClose: () => {
3808
- H(!1);
3808
+ V(!1);
3809
3809
  },
3810
3810
  trigger: /* @__PURE__ */ d("div", { style: { display: "flex", alignItems: "center", gap: "4px" }, children: [
3811
3811
  /* @__PURE__ */ n(
@@ -3815,7 +3815,7 @@ const ot = "_tooltip_jx6mx_1", lt = "_tooltipLabel_jx6mx_22", Z3 = {
3815
3815
  "data-testid": "show-more",
3816
3816
  variant: "neutral",
3817
3817
  compactSpacing: !0,
3818
- onClick: () => H(!p)
3818
+ onClick: () => V(!g)
3819
3819
  }
3820
3820
  ),
3821
3821
  Y1({ showBadge: !!c, badgeContent: r, badgeCount: l, badgeIcon: o }) && /* @__PURE__ */ n(
@@ -3829,50 +3829,50 @@ const ot = "_tooltip_jx6mx_1", lt = "_tooltipLabel_jx6mx_22", Z3 = {
3829
3829
  }
3830
3830
  )
3831
3831
  ] }),
3832
- isOpen: p,
3832
+ isOpen: g,
3833
3833
  offset: 6,
3834
- children: V.map((L, v) => /* @__PURE__ */ n(
3834
+ children: L.map((H, p) => /* @__PURE__ */ n(
3835
3835
  s3,
3836
3836
  {
3837
- label: L.label,
3838
- link: L.link,
3839
- badgeCount: L.badgeCount,
3840
- badgeContent: L.badgeContent,
3841
- badgeIcon: L.badgeIcon,
3842
- badgeType: L.badgeType,
3843
- showBadge: L.showBadge
3837
+ label: H.label,
3838
+ link: H.link,
3839
+ badgeCount: H.badgeCount,
3840
+ badgeContent: H.badgeContent,
3841
+ badgeIcon: H.badgeIcon,
3842
+ badgeType: H.badgeType,
3843
+ showBadge: H.showBadge
3844
3844
  },
3845
- L.label + v
3845
+ H.label + p
3846
3846
  ))
3847
3847
  }
3848
3848
  ) }),
3849
3849
  /* @__PURE__ */ n("span", { "aria-hidden": "true", className: U1.separator, children: "/" }),
3850
- Z.map((L, v) => /* @__PURE__ */ d(r3, { children: [
3850
+ m.map((H, p) => /* @__PURE__ */ d(r3, { children: [
3851
3851
  /* @__PURE__ */ n(
3852
3852
  f3,
3853
3853
  {
3854
- item: L,
3855
- isLast: v === Z.length - 1,
3854
+ item: H,
3855
+ isLast: p === m.length - 1,
3856
3856
  breadcrumbItemMaxWidth: t
3857
3857
  }
3858
3858
  ),
3859
- v < Z.length - 1 && /* @__PURE__ */ n(x3, {})
3860
- ] }, L.label + v))
3859
+ p < m.length - 1 && /* @__PURE__ */ n(x3, {})
3860
+ ] }, H.label + p))
3861
3861
  ]
3862
3862
  }
3863
3863
  );
3864
3864
  }
3865
- return /* @__PURE__ */ n("nav", { ref: w, className: U1.breadcrumbsBadge, ...a, role: "navigation", "aria-label": "Fil d'Ariane", children: C.map((g, V) => /* @__PURE__ */ d(r3, { children: [
3865
+ return /* @__PURE__ */ n("nav", { ref: w, className: U1.breadcrumbsBadge, ...a, role: "navigation", "aria-label": "Fil d'Ariane", children: C.map((v, L) => /* @__PURE__ */ d(r3, { children: [
3866
3866
  /* @__PURE__ */ n(
3867
3867
  f3,
3868
3868
  {
3869
- item: g,
3870
- isLast: V === C.length - 1,
3869
+ item: v,
3870
+ isLast: L === C.length - 1,
3871
3871
  breadcrumbItemMaxWidth: t
3872
3872
  }
3873
3873
  ),
3874
- V < C.length - 1 && /* @__PURE__ */ n(x3, {})
3875
- ] }, g.label + V)) });
3874
+ L < C.length - 1 && /* @__PURE__ */ n(x3, {})
3875
+ ] }, v.label + L)) });
3876
3876
  }
3877
3877
  ), wt = {
3878
3878
  xs: 240,
@@ -3896,13 +3896,13 @@ const ot = "_tooltip_jx6mx_1", lt = "_tooltipLabel_jx6mx_22", Z3 = {
3896
3896
  style: c,
3897
3897
  className: a,
3898
3898
  ...w
3899
- }, p) => {
3900
- const H = (v) => {
3901
- !r && t && (v.key === o1 || v.key === Q) && (v.preventDefault(), i == null || i());
3902
- }, g = () => {
3899
+ }, g) => {
3900
+ const V = (p) => {
3901
+ !r && t && (p.key === o1 || p.key === Q) && (p.preventDefault(), i == null || i());
3902
+ }, v = () => {
3903
3903
  !r && t && (i == null || i());
3904
- }, { onKeyDown: V, onKeyUp: Z, onBlur: L } = E1(
3905
- { onKeyUp: H },
3904
+ }, { onKeyDown: L, onKeyUp: m, onBlur: H } = E1(
3905
+ { onKeyUp: V },
3906
3906
  {
3907
3907
  interactiveKeyCodes: [o1, Q]
3908
3908
  }
@@ -3910,7 +3910,7 @@ const ot = "_tooltip_jx6mx_1", lt = "_tooltipLabel_jx6mx_22", Z3 = {
3910
3910
  return /* @__PURE__ */ n(
3911
3911
  "div",
3912
3912
  {
3913
- ref: p,
3913
+ ref: g,
3914
3914
  className: `${ht.card}${a ? ` ${a}` : ""}`,
3915
3915
  style: { width: wt[C], ...c },
3916
3916
  "data-card-type": e,
@@ -3919,10 +3919,10 @@ const ot = "_tooltip_jx6mx_1", lt = "_tooltipLabel_jx6mx_22", Z3 = {
3919
3919
  "data-selected": l,
3920
3920
  "data-pressed": o,
3921
3921
  tabIndex: t ? 0 : -1,
3922
- onClick: g,
3923
- onKeyDown: V,
3924
- onKeyUp: Z,
3925
- onBlur: L,
3922
+ onClick: v,
3923
+ onKeyDown: L,
3924
+ onKeyUp: m,
3925
+ onBlur: H,
3926
3926
  ...w,
3927
3927
  children: s
3928
3928
  }
@@ -3953,8 +3953,8 @@ const ot = "_tooltip_jx6mx_1", lt = "_tooltipLabel_jx6mx_22", Z3 = {
3953
3953
  E(() => {
3954
3954
  w.current && (w.current.indeterminate = !!c);
3955
3955
  }, [c]);
3956
- const p = (H) => {
3957
- H.code === "Space" && i && H.preventDefault();
3956
+ const g = (V) => {
3957
+ V.code === "Space" && i && V.preventDefault();
3958
3958
  };
3959
3959
  return /* @__PURE__ */ d("div", { className: L1.container, children: [
3960
3960
  /* @__PURE__ */ n(
@@ -3967,7 +3967,7 @@ const ot = "_tooltip_jx6mx_1", lt = "_tooltipLabel_jx6mx_22", Z3 = {
3967
3967
  ref: w,
3968
3968
  "data-read-only": i,
3969
3969
  "data-error": !!o,
3970
- onKeyDown: p,
3970
+ onKeyDown: g,
3971
3971
  ...a
3972
3972
  }
3973
3973
  ),
@@ -4018,15 +4018,15 @@ const ot = "_tooltip_jx6mx_1", lt = "_tooltipLabel_jx6mx_22", Z3 = {
4018
4018
  error: c = !1,
4019
4019
  disabled: a = !1,
4020
4020
  readOnly: w = !1,
4021
- required: p = !1,
4022
- showLabelRequirement: H = !1,
4023
- className: g = "",
4024
- tooltipTextLabel: V,
4025
- ...Z
4026
- }, L) => {
4021
+ required: g = !1,
4022
+ showLabelRequirement: V = !1,
4023
+ className: v = "",
4024
+ tooltipTextLabel: L,
4025
+ ...m
4026
+ }, H) => {
4027
4027
  if (a && c)
4028
4028
  return;
4029
- const v = /* @__PURE__ */ d("div", { ref: L, className: z(F1.checkboxGroupContainer, g), ...Z, children: [
4029
+ const p = /* @__PURE__ */ d("div", { ref: H, className: z(F1.checkboxGroupContainer, v), ...m, children: [
4030
4030
  /* @__PURE__ */ d(
4031
4031
  "div",
4032
4032
  {
@@ -4037,27 +4037,27 @@ const ot = "_tooltip_jx6mx_1", lt = "_tooltipLabel_jx6mx_22", Z3 = {
4037
4037
  children: [
4038
4038
  r && l && /* @__PURE__ */ d("div", { className: F1.labelContainer, children: [
4039
4039
  /* @__PURE__ */ n("h3", { className: F1.groupTitle, children: r }),
4040
- /* @__PURE__ */ n(S1, { required: p, showLabelRequirement: H })
4040
+ /* @__PURE__ */ n(S1, { required: g, showLabelRequirement: V })
4041
4041
  ] }),
4042
4042
  o && s && /* @__PURE__ */ n("p", { className: F1.groupHelpText, children: o }),
4043
4043
  i && c && /* @__PURE__ */ n("p", { className: F1.errorMessage, children: i })
4044
4044
  ]
4045
4045
  }
4046
4046
  ),
4047
- /* @__PURE__ */ n("div", { className: F1.checkboxGroup, "data-direction": e, children: C.map((x, _) => /* @__PURE__ */ n(
4047
+ /* @__PURE__ */ n("div", { className: F1.checkboxGroup, "data-direction": e, children: C.map((_, x) => /* @__PURE__ */ n(
4048
4048
  pt,
4049
4049
  {
4050
- id: `${x}-${_}`,
4051
- label: x,
4050
+ id: `${_}-${x}`,
4051
+ label: _,
4052
4052
  showLabel: t,
4053
4053
  disabled: a,
4054
4054
  error: c,
4055
4055
  readOnly: w
4056
4056
  },
4057
- `${x}-${_}`
4057
+ `${_}-${x}`
4058
4058
  )) })
4059
4059
  ] });
4060
- return /* @__PURE__ */ n(G, { children: V ? /* @__PURE__ */ n(Z1, { alignment: "start", arrow: !0, label: V, position: "bottom", children: v }) : v });
4060
+ return /* @__PURE__ */ n(G, { children: L ? /* @__PURE__ */ n(Z1, { alignment: "start", arrow: !0, label: L, position: "bottom", children: p }) : p });
4061
4061
  }
4062
4062
  ), _t = {
4063
4063
  single: "radio",
@@ -4085,20 +4085,20 @@ const ot = "_tooltip_jx6mx_1", lt = "_tooltipLabel_jx6mx_22", Z3 = {
4085
4085
  clickable: c = !0,
4086
4086
  icon: a,
4087
4087
  textColor: w,
4088
- backgroundColor: p,
4089
- onClose: H,
4090
- style: g,
4091
- ...V
4092
- }, Z) => {
4093
- const L = M6.useRef(null), v = (f) => {
4088
+ backgroundColor: g,
4089
+ onClose: V,
4090
+ style: v,
4091
+ ...L
4092
+ }, m) => {
4093
+ const H = M6.useRef(null), p = (f) => {
4094
4094
  if (f.key === o1 || f.key === Q)
4095
4095
  f.preventDefault(), r == null || r(f);
4096
- else if ((f.key === P3 || f.key === z3) && H) {
4096
+ else if ((f.key === P3 || f.key === z3) && V) {
4097
4097
  if (o !== "input") return;
4098
- f.preventDefault(), L.current && L.current.click();
4098
+ f.preventDefault(), H.current && H.current.click();
4099
4099
  }
4100
- }, { onBlur: x, onKeyDown: _, onKeyUp: u } = E1(
4101
- { onKeyUp: v },
4100
+ }, { onBlur: _, onKeyDown: x, onKeyUp: u } = E1(
4101
+ { onKeyUp: p },
4102
4102
  {
4103
4103
  id: C,
4104
4104
  interactiveKeyCodes: [o1, Q, P3, z3]
@@ -4108,7 +4108,7 @@ const ot = "_tooltip_jx6mx_1", lt = "_tooltipLabel_jx6mx_22", Z3 = {
4108
4108
  "span",
4109
4109
  {
4110
4110
  id: C,
4111
- ref: Z,
4111
+ ref: m,
4112
4112
  role: _t[o],
4113
4113
  className: z(p1.chip, s),
4114
4114
  "data-selected": h && t,
@@ -4118,17 +4118,17 @@ const ot = "_tooltip_jx6mx_1", lt = "_tooltipLabel_jx6mx_22", Z3 = {
4118
4118
  "data-type": o,
4119
4119
  onClick: c ? r : void 0,
4120
4120
  tabIndex: c ? 0 : void 0,
4121
- onKeyDown: c ? _ : void 0,
4121
+ onKeyDown: c ? x : void 0,
4122
4122
  onKeyUp: c ? u : void 0,
4123
- onBlur: c ? x : void 0,
4123
+ onBlur: c ? _ : void 0,
4124
4124
  "aria-checked": h && t,
4125
4125
  "aria-disabled": l,
4126
4126
  style: {
4127
- ...g,
4127
+ ...v,
4128
4128
  ...w ? { color: w } : {},
4129
- ...p ? { background: p } : {}
4129
+ ...g ? { background: g } : {}
4130
4130
  },
4131
- ...V,
4131
+ ...L,
4132
4132
  children: [
4133
4133
  o === "multi" && /* @__PURE__ */ d("span", { className: p1["chip-icon-container"], children: [
4134
4134
  /* @__PURE__ */ n(
@@ -4158,11 +4158,11 @@ const ot = "_tooltip_jx6mx_1", lt = "_tooltipLabel_jx6mx_22", Z3 = {
4158
4158
  id: C + "-delete-button",
4159
4159
  type: "button",
4160
4160
  className: p1["chip-close-button"],
4161
- onClick: H,
4161
+ onClick: V,
4162
4162
  disabled: l,
4163
4163
  "aria-label": `Supprimer ${e}`,
4164
4164
  value: e,
4165
- ref: L,
4165
+ ref: H,
4166
4166
  children: /* @__PURE__ */ n(I, { className: p1["chip-close-button--icon"], name: "close" })
4167
4167
  }
4168
4168
  )
@@ -4171,7 +4171,7 @@ const ot = "_tooltip_jx6mx_1", lt = "_tooltipLabel_jx6mx_22", Z3 = {
4171
4171
  );
4172
4172
  }
4173
4173
  ), bt = ({ children: C, className: e, xxs: t, xs: r, s: l, m: o, l: s, xl: i, ...c }) => {
4174
- const a = (p, H) => H ? `${p}-${H}` : "", w = z(
4174
+ const a = (g, V) => V ? `${g}-${V}` : "", w = z(
4175
4175
  "col",
4176
4176
  a("col-xxs", t),
4177
4177
  a("col-xs", r),
@@ -4253,37 +4253,38 @@ const Do = $(
4253
4253
  primaryButton: s,
4254
4254
  secondaryButton: i,
4255
4255
  size: c = "m",
4256
- closeOnOverlayClick: a = !0,
4257
- onClose: w,
4258
- className: p,
4259
- children: H,
4260
- ...g
4261
- }, V) => {
4262
- const { shouldRender: Z, isAnimating: L } = R1(e, 150), [v, x] = F(null), _ = W(
4263
- (u) => {
4264
- x(u), typeof V == "function" ? V(u) : V && (V.current = u);
4256
+ showCloseIcon: a = !0,
4257
+ closeOnOverlayClick: w = !0,
4258
+ onClose: g,
4259
+ className: V,
4260
+ children: v,
4261
+ ...L
4262
+ }, m) => {
4263
+ const { shouldRender: H, isAnimating: p } = R1(e, 150), [_, x] = F(null), u = W(
4264
+ (h) => {
4265
+ x(h), typeof m == "function" ? m(h) : m && (m.current = h);
4265
4266
  },
4266
- [V]
4267
+ [m]
4267
4268
  );
4268
- return a6(a ? w : () => {
4269
- }, v), I3(w), F3(v, Z), /* @__PURE__ */ n(G, { children: Z && /* @__PURE__ */ d(Q1, { freezeNavigation: !0, children: [
4270
- /* @__PURE__ */ n("div", { className: M1["modal-backdrop"], "data-open": L }),
4269
+ return a6(w ? g : () => {
4270
+ }, _), I3(g), F3(_, H), /* @__PURE__ */ n(G, { children: H && /* @__PURE__ */ d(Q1, { freezeNavigation: !0, children: [
4271
+ /* @__PURE__ */ n("div", { className: M1["modal-backdrop"], "data-open": p }),
4271
4272
  /* @__PURE__ */ d(
4272
4273
  "dialog",
4273
4274
  {
4274
- ref: _,
4275
- className: z(M1["modal-container"], p),
4275
+ ref: u,
4276
+ className: z(M1["modal-container"], V),
4276
4277
  "aria-modal": "true",
4277
4278
  "aria-labelledby": `${C}-modal-title`,
4278
- "aria-describedby": o ? `${C}-modal-desc` : g["aria-describedby"],
4279
+ "aria-describedby": o ? `${C}-modal-desc` : L["aria-describedby"],
4279
4280
  "data-size": c,
4280
- "data-open": L,
4281
+ "data-open": p,
4281
4282
  children: [
4282
4283
  /* @__PURE__ */ d("div", { className: M1["modal-header"], children: [
4283
4284
  /* @__PURE__ */ d("div", { className: M1["modal-header-text"], children: [
4284
4285
  r && /* @__PURE__ */ n(I, { name: r, size: b1.xl, appearance: l }),
4285
4286
  /* @__PURE__ */ n("h2", { id: `${C}-modal-title`, className: M1["modal-title"], children: t }),
4286
- /* @__PURE__ */ n(
4287
+ a && /* @__PURE__ */ n(
4287
4288
  H1,
4288
4289
  {
4289
4290
  "data-testid": "modal-close-button",
@@ -4291,16 +4292,16 @@ const Do = $(
4291
4292
  size: "l",
4292
4293
  className: M1["close-icon"],
4293
4294
  variant: "neutral",
4294
- onClick: w,
4295
+ onClick: g,
4295
4296
  "aria-label": `Close modal ${C}`
4296
4297
  }
4297
4298
  )
4298
4299
  ] }),
4299
4300
  /* @__PURE__ */ n(d1, {})
4300
4301
  ] }),
4301
- (o || H) && /* @__PURE__ */ d("div", { className: M1["modal-content"], children: [
4302
+ (o || v) && /* @__PURE__ */ d("div", { className: M1["modal-content"], children: [
4302
4303
  o && /* @__PURE__ */ n("p", { className: M1["modal-content-description"], id: `${C}-modal-desc`, children: o }),
4303
- H
4304
+ v
4304
4305
  ] }),
4305
4306
  /* @__PURE__ */ d("div", { className: M1["modal-footer"], children: [
4306
4307
  i,
@@ -4336,53 +4337,53 @@ const Do = $(
4336
4337
  className: c = "",
4337
4338
  triggerStyles: a,
4338
4339
  closeOnClickOutside: w = !0,
4339
- closeOnEscape: p = !0,
4340
- onClickPrimaryButton: H,
4341
- onClickSecondaryButton: g,
4342
- ...V
4343
- }, Z) => {
4344
- const L = q(null), [v, x] = F(null), [_, u] = F(e), [h, f] = F(t), [B, N] = F({ top: 0, left: 0 }), [S, y] = F(!1), { shouldRender: O, isAnimating: k } = R1(S, 150), [b, M] = F(!1), m = W(() => {
4345
- if (!L.current || !v) return;
4346
- const j = e === "auto" ? o6(L.current, v, "top", l ? U3 : K3) : e, g1 = t || y3(L.current, v, j), T = v3(
4340
+ closeOnEscape: g = !0,
4341
+ onClickPrimaryButton: V,
4342
+ onClickSecondaryButton: v,
4343
+ ...L
4344
+ }, m) => {
4345
+ const H = q(null), [p, _] = F(null), [x, u] = F(e), [h, f] = F(t), [B, N] = F({ top: 0, left: 0 }), [S, y] = F(!1), { shouldRender: O, isAnimating: k } = R1(S, 150), [b, M] = F(!1), Z = W(() => {
4346
+ if (!H.current || !p) return;
4347
+ const j = e === "auto" ? o6(H.current, p, "top", l ? U3 : K3) : e, g1 = t || y3(H.current, p, j), T = v3(
4347
4348
  j,
4348
- L.current,
4349
- v,
4349
+ H.current,
4350
+ p,
4350
4351
  l ? U3 : K3,
4351
4352
  g1
4352
4353
  );
4353
4354
  f(g1), N(T), u(j);
4354
- }, [e, l, v, t]), A = W(() => {
4355
+ }, [e, l, p, t]), A = W(() => {
4355
4356
  w && y(!1);
4356
4357
  }, [w]), K = W(() => {
4357
- p && y(!1);
4358
- }, [p]);
4359
- F3(v, O), a6(A, L.current, v), I3(K), Nt(m);
4358
+ g && y(!1);
4359
+ }, [g]);
4360
+ F3(p, O), a6(A, H.current, p), I3(K), Nt(Z);
4360
4361
  const D = W(
4361
4362
  (j) => {
4362
- x(j), typeof Z == "function" ? Z(j) : Z && (Z.current = j), j && S && requestAnimationFrame(() => {
4363
+ _(j), typeof m == "function" ? m(j) : m && (m.current = j), j && S && requestAnimationFrame(() => {
4363
4364
  requestAnimationFrame(() => {
4364
- m();
4365
+ Z();
4365
4366
  });
4366
4367
  });
4367
4368
  },
4368
- [Z, S, m]
4369
+ [m, S, Z]
4369
4370
  );
4370
4371
  E(() => {
4371
- S && v ? (m(), M(!0)) : M(!1);
4372
- }, [S, v, m]);
4372
+ S && p ? (Z(), M(!0)) : M(!1);
4373
+ }, [S, p, Z]);
4373
4374
  const U = (j) => {
4374
4375
  j.key === Q && (j.preventDefault(), S || y(!0));
4375
4376
  }, P = (j) => {
4376
4377
  S || (j.preventDefault(), y(!0));
4377
4378
  }, l1 = () => {
4378
- g && g(), y(!1);
4379
+ v && v(), y(!1);
4379
4380
  }, Y = () => {
4380
- H && H(), y(!1);
4381
+ V && V(), y(!1);
4381
4382
  };
4382
4383
  return /* @__PURE__ */ d(
4383
4384
  "div",
4384
4385
  {
4385
- ref: L,
4386
+ ref: H,
4386
4387
  className: z(I1.popoverTrigger),
4387
4388
  onClick: P,
4388
4389
  onKeyDown: U,
@@ -4397,11 +4398,11 @@ const Do = $(
4397
4398
  role: "dialog",
4398
4399
  "aria-modal": "true",
4399
4400
  "data-arrow": l,
4400
- "data-position": _,
4401
+ "data-position": x,
4401
4402
  "data-alignment": h,
4402
4403
  "data-open": b && k || void 0,
4403
4404
  style: { top: `${B.top}px`, left: `${B.left}px` },
4404
- ...V,
4405
+ ...L,
4405
4406
  children: /* @__PURE__ */ d("div", { className: I1.popoverInner, children: [
4406
4407
  /* @__PURE__ */ d("div", { className: I1.popoverContentContainer, children: [
4407
4408
  o && /* @__PURE__ */ n("div", { className: I1.popoverTitle, children: o }),
@@ -4493,33 +4494,33 @@ const Do = $(
4493
4494
  errorMessage: c = "",
4494
4495
  error: a = !1,
4495
4496
  disabled: w = !1,
4496
- readOnly: p = !1,
4497
- required: H = !1,
4498
- showLabelRequirement: g = !1,
4499
- className: V = "",
4500
- value: Z,
4501
- defaultValue: L,
4502
- onChange: v,
4503
- tooltipTextLabel: x,
4504
- ..._
4497
+ readOnly: g = !1,
4498
+ required: V = !1,
4499
+ showLabelRequirement: v = !1,
4500
+ className: L = "",
4501
+ value: m,
4502
+ defaultValue: H,
4503
+ onChange: p,
4504
+ tooltipTextLabel: _,
4505
+ ...x
4505
4506
  }, u) => {
4506
- const [h, f] = F(L ?? ""), B = Z !== void 0, N = B ? Z : h, S = (O) => {
4507
- B || f(O), v == null || v(O);
4507
+ const [h, f] = F(H ?? ""), B = m !== void 0, N = B ? m : h, S = (O) => {
4508
+ B || f(O), p == null || p(O);
4508
4509
  };
4509
4510
  if (w && a)
4510
4511
  return;
4511
- const y = /* @__PURE__ */ d("div", { ref: u, className: z(A1.radioButtonGroupContainer, V), ..._, children: [
4512
+ const y = /* @__PURE__ */ d("div", { ref: u, className: z(A1.radioButtonGroupContainer, L), ...x, children: [
4512
4513
  /* @__PURE__ */ d(
4513
4514
  "div",
4514
4515
  {
4515
4516
  className: A1.radioButtonGroupHeader,
4516
4517
  "data-error": a,
4517
4518
  "data-disabled": w,
4518
- "data-read-only": p,
4519
+ "data-read-only": g,
4519
4520
  children: [
4520
4521
  l && o && /* @__PURE__ */ d("div", { className: A1.labelContainer, children: [
4521
4522
  /* @__PURE__ */ n("h3", { className: A1.groupTitle, children: l }),
4522
- /* @__PURE__ */ n(S1, { required: H, showLabelRequirement: g })
4523
+ /* @__PURE__ */ n(S1, { required: V, showLabelRequirement: v })
4523
4524
  ] }),
4524
4525
  s && i && /* @__PURE__ */ n("p", { className: A1.groupHelpText, children: s }),
4525
4526
  c && a && /* @__PURE__ */ n("p", { className: A1.errorMessage, children: c })
@@ -4534,14 +4535,14 @@ const Do = $(
4534
4535
  showLabel: r,
4535
4536
  disabled: w,
4536
4537
  error: a,
4537
- readOnly: p,
4538
+ readOnly: g,
4538
4539
  checked: N === O,
4539
4540
  onChange: () => S(O)
4540
4541
  },
4541
4542
  k
4542
4543
  )) })
4543
4544
  ] });
4544
- return /* @__PURE__ */ n(G, { children: x ? /* @__PURE__ */ n(Z1, { alignment: "start", arrow: !0, label: x, position: "bottom", children: y }) : y });
4545
+ return /* @__PURE__ */ n(G, { children: _ ? /* @__PURE__ */ n(Z1, { alignment: "start", arrow: !0, label: _, position: "bottom", children: y }) : y });
4545
4546
  }
4546
4547
  ), Qt = "8px", Xt = "44px", Jt = "24px", t3 = "8px", Cn = {
4547
4548
  primary: {
@@ -4603,15 +4604,15 @@ const Do = $(
4603
4604
  rightIconAction: c = "clean",
4604
4605
  showLabelRequirement: a = !1,
4605
4606
  assistiveAppearance: w = "description",
4606
- showAssistiveIcon: p = !1,
4607
- assistiveTextLabel: H = "",
4608
- error: g = !1,
4609
- maxLength: V,
4610
- disabled: Z,
4611
- readOnly: L,
4612
- width: v,
4613
- onChange: x,
4614
- onRightIconClick: _,
4607
+ showAssistiveIcon: g = !1,
4608
+ assistiveTextLabel: V = "",
4609
+ error: v = !1,
4610
+ maxLength: L,
4611
+ disabled: m,
4612
+ readOnly: H,
4613
+ width: p,
4614
+ onChange: _,
4615
+ onRightIconClick: x,
4615
4616
  compactSpacing: u,
4616
4617
  placeholder: h,
4617
4618
  rightSlot: f,
@@ -4620,7 +4621,7 @@ const Do = $(
4620
4621
  tooltipTextLabel: S,
4621
4622
  ...y
4622
4623
  }, O) => {
4623
- const k = q(null), b = q(null), [M, m] = F(48), A = (n1) => ["visibilityOn", "visibilityOff"].includes(n1) ? Y ? "visibility-show" : "visibility-hide" : n1 === "clean" ? "cancel" : "", K = (n1) => ["visibilityOn", "visibilityOff"].includes(n1) ? Y ? "show text" : "hide text" : n1 === "clean" ? "clear" : "", [D, U] = F(o ?? ""), [P, l1] = F(D.length), [Y, j] = F(!!i && c === "visibilityOn");
4624
+ const k = q(null), b = q(null), [M, Z] = F(48), A = (n1) => ["visibilityOn", "visibilityOff"].includes(n1) ? Y ? "visibility-show" : "visibility-hide" : n1 === "clean" ? "cancel" : "", K = (n1) => ["visibilityOn", "visibilityOff"].includes(n1) ? Y ? "show text" : "hide text" : n1 === "clean" ? "clear" : "", [D, U] = F(o ?? ""), [P, l1] = F(D.length), [Y, j] = F(!!i && c === "visibilityOn");
4624
4625
  E(() => {
4625
4626
  o !== void 0 && (U(o), l1(o.length));
4626
4627
  }, [o]), E(() => {
@@ -4628,23 +4629,23 @@ const Do = $(
4628
4629
  }, [i, c]), E(() => {
4629
4630
  if (N && b.current) {
4630
4631
  const n1 = b.current.offsetWidth;
4631
- m(Math.max(48, n1 + 8));
4632
+ Z(Math.max(48, n1 + 8));
4632
4633
  }
4633
4634
  }, [D, N]);
4634
4635
  const g1 = (n1) => {
4635
4636
  const y1 = n1.target.value;
4636
- U(y1), l1(y1.length), x && x(y1);
4637
+ U(y1), l1(y1.length), _ && _(y1);
4637
4638
  }, T = () => {
4638
- c === "clean" && (U(""), l1(0), x && x("")), ["visibilityOn", "visibilityOff"].includes(c) && t1();
4639
+ c === "clean" && (U(""), l1(0), _ && _("")), ["visibilityOn", "visibilityOff"].includes(c) && t1();
4639
4640
  }, s1 = () => {
4640
- _ && _(), T();
4641
+ x && x(), T();
4641
4642
  }, t1 = () => {
4642
4643
  j(!Y);
4643
4644
  }, V1 = z(
4644
4645
  J.inputBar,
4645
4646
  s ? J.withLeftIcon : "",
4646
4647
  c ? J.withRightIcon : ""
4647
- ), u1 = l && typeof V == "number", f1 = A(c), x1 = K(c), H3 = () => L || Z ? !1 : c === "clean" ? !!(D != null && D.length) && i : i && !!c, c3 = /* @__PURE__ */ d(G, { children: [
4648
+ ), u1 = l && typeof L == "number", f1 = A(c), x1 = K(c), H3 = () => H || m ? !1 : c === "clean" ? !!(D != null && D.length) && i : i && !!c, c3 = /* @__PURE__ */ d(G, { children: [
4648
4649
  e && /* @__PURE__ */ d("div", { className: J.text, children: [
4649
4650
  /* @__PURE__ */ d("div", { className: J.labelContainer, children: [
4650
4651
  /* @__PURE__ */ d("label", { className: J.inputLabel, id: `inputLabel-${C}`, htmlFor: C, children: [
@@ -4658,7 +4659,7 @@ const Do = $(
4658
4659
  " ",
4659
4660
  P,
4660
4661
  "/",
4661
- V
4662
+ L
4662
4663
  ] })
4663
4664
  ] }),
4664
4665
  /* @__PURE__ */ d("div", { className: J.inputContainer, children: [
@@ -4667,8 +4668,8 @@ const Do = $(
4667
4668
  {
4668
4669
  className: J.input,
4669
4670
  "data-label-position": t,
4670
- "data-disabled": Z,
4671
- "data-read-only": L,
4671
+ "data-disabled": m,
4672
+ "data-read-only": H,
4672
4673
  children: [
4673
4674
  /* @__PURE__ */ d("div", { className: V1, children: [
4674
4675
  s && /* @__PURE__ */ n(
@@ -4691,15 +4692,15 @@ const Do = $(
4691
4692
  k.current = n1, typeof O == "function" ? O(n1) : O && (O.current = n1);
4692
4693
  },
4693
4694
  type: N ? "number" : Y ? "password" : "text",
4694
- "data-error": g,
4695
+ "data-error": v,
4695
4696
  "data-highlighted": B,
4696
4697
  className: J.inputField,
4697
4698
  "data-has-unit": !!N,
4698
- maxLength: V,
4699
+ maxLength: L,
4699
4700
  onChange: g1,
4700
- disabled: Z,
4701
- readOnly: L,
4702
- value: Z ? "" : D,
4701
+ disabled: m,
4702
+ readOnly: H,
4703
+ value: m ? "" : D,
4703
4704
  placeholder: h,
4704
4705
  ...y
4705
4706
  }
@@ -4725,13 +4726,13 @@ const Do = $(
4725
4726
  ]
4726
4727
  }
4727
4728
  ),
4728
- H && /* @__PURE__ */ n(A3, { label: H, appearance: w, showIcon: p })
4729
+ V && /* @__PURE__ */ n(A3, { label: V, appearance: w, showIcon: g })
4729
4730
  ] }),
4730
4731
  u1 && t == "side" && /* @__PURE__ */ d("p", { className: J.inputCounter, "data-testid": "input-counter", children: [
4731
4732
  " ",
4732
4733
  P,
4733
4734
  "/",
4734
- V,
4735
+ L,
4735
4736
  " "
4736
4737
  ] })
4737
4738
  ] });
@@ -4740,8 +4741,8 @@ const Do = $(
4740
4741
  {
4741
4742
  className: J.container,
4742
4743
  "data-label-position": t,
4743
- "data-error": g,
4744
- style: { width: v },
4744
+ "data-error": v,
4745
+ style: { width: p },
4745
4746
  "data-compact-spacing": u,
4746
4747
  children: S ? /* @__PURE__ */ n(Z1, { alignment: "start", arrow: !0, label: S, position: "bottom", children: c3 }) : c3
4747
4748
  }
@@ -4776,29 +4777,29 @@ const Po = $(
4776
4777
  compactSpacing: c,
4777
4778
  value: a,
4778
4779
  assistiveText: w,
4779
- style: p,
4780
- ...H
4781
- }, g) => {
4782
- const V = Cn[i], [Z, L] = F(!1), v = q(null);
4780
+ style: g,
4781
+ ...V
4782
+ }, v) => {
4783
+ const L = Cn[i], [m, H] = F(!1), p = q(null);
4783
4784
  E(() => {
4784
- const y = v.current;
4785
+ const y = p.current;
4785
4786
  if (!y) return;
4786
4787
  const O = () => {
4787
- L(!0);
4788
+ H(!0);
4788
4789
  }, k = (b) => {
4789
4790
  const M = b.relatedTarget;
4790
- M && y.contains(M) || L(!1);
4791
+ M && y.contains(M) || H(!1);
4791
4792
  };
4792
4793
  return y.addEventListener("focusin", O), y.addEventListener("focusout", k), () => {
4793
4794
  y.removeEventListener("focusin", O), y.removeEventListener("focusout", k);
4794
4795
  };
4795
4796
  }, []);
4796
- const x = W(
4797
+ const _ = W(
4797
4798
  (y) => {
4798
4799
  e == null || e(y);
4799
4800
  },
4800
4801
  [e]
4801
- ), _ = W(() => {
4802
+ ), x = W(() => {
4802
4803
  C == null || C(a);
4803
4804
  }, [C, a]), u = W(
4804
4805
  (y) => {
@@ -4811,7 +4812,7 @@ const Po = $(
4811
4812
  () => ({
4812
4813
  disabled: o,
4813
4814
  value: a,
4814
- onChange: x,
4815
+ onChange: _,
4815
4816
  onKeyUp: C ? u : void 0,
4816
4817
  showRightIcon: s,
4817
4818
  rightIconAction: "clean",
@@ -4819,13 +4820,13 @@ const Po = $(
4819
4820
  assistiveTextLabel: w,
4820
4821
  compactSpacing: c,
4821
4822
  placeholder: f,
4822
- leftIcon: V.showLeftIcon ? "search" : void 0,
4823
- ...H
4823
+ leftIcon: L.showLeftIcon ? "search" : void 0,
4824
+ ...V
4824
4825
  }),
4825
4826
  [
4826
4827
  o,
4827
4828
  a,
4828
- x,
4829
+ _,
4829
4830
  C,
4830
4831
  u,
4831
4832
  s,
@@ -4833,32 +4834,32 @@ const Po = $(
4833
4834
  w,
4834
4835
  c,
4835
4836
  f,
4836
- V.showLeftIcon,
4837
- H
4837
+ L.showLeftIcon,
4838
+ V
4838
4839
  ]
4839
4840
  ), N = W1(
4840
4841
  () => ({
4841
- ...fn(i, V.showLeftIcon),
4842
- ...p ?? {}
4842
+ ...fn(i, L.showLeftIcon),
4843
+ ...g ?? {}
4843
4844
  }),
4844
- [i, V.showLeftIcon, p]
4845
+ [i, L.showLeftIcon, g]
4845
4846
  ), S = W1(() => xn(c), [c]);
4846
- return /* @__PURE__ */ n("div", { className: b3.searchbarContainer, role: "search", "data-appearance": i, children: /* @__PURE__ */ n("div", { ref: v, className: b3.textInputWrapper, "data-disabled": o, children: /* @__PURE__ */ n(
4847
+ return /* @__PURE__ */ n("div", { className: b3.searchbarContainer, role: "search", "data-appearance": i, children: /* @__PURE__ */ n("div", { ref: p, className: b3.textInputWrapper, "data-disabled": o, children: /* @__PURE__ */ n(
4847
4848
  Ln,
4848
4849
  {
4849
4850
  id: r ?? "",
4850
4851
  ...B,
4851
4852
  style: N,
4852
- highlighted: Z,
4853
- ref: g,
4854
- rightSlot: V.showSearchButton && /* @__PURE__ */ n(
4853
+ highlighted: m,
4854
+ ref: v,
4855
+ rightSlot: L.showSearchButton && /* @__PURE__ */ n(
4855
4856
  H1,
4856
4857
  {
4857
4858
  name: "search",
4858
4859
  size: "m",
4859
4860
  variant: "primary",
4860
4861
  appearance: "filled",
4861
- onClick: _,
4862
+ onClick: x,
4862
4863
  disabled: o,
4863
4864
  "aria-label": l,
4864
4865
  className: b3.searchButton,
@@ -4958,33 +4959,33 @@ const Po = $(
4958
4959
  badgeIcon: c,
4959
4960
  badgeType: a,
4960
4961
  badgeSize: w,
4961
- showBadge: p,
4962
- size: H = "l",
4963
- ...g
4962
+ showBadge: g,
4963
+ size: V = "l",
4964
+ ...v
4964
4965
  }) => {
4965
- const V = H === "s" ? 16 : 24, Z = q(null), L = Nn();
4966
- On(Z);
4967
- const v = (B) => {
4966
+ const L = V === "s" ? 16 : 24, m = q(null), H = Nn();
4967
+ On(m);
4968
+ const p = (B) => {
4968
4969
  var N, S;
4969
4970
  if (B.key === o1 || B.key === Q)
4970
4971
  f == null || f(B);
4971
4972
  else if (B.key === e3 || B.key === q1) {
4972
- const y = (S = (N = Z.current) == null ? void 0 : N.parentElement) == null ? void 0 : S.parentElement, O = Array.from(
4973
+ const y = (S = (N = m.current) == null ? void 0 : N.parentElement) == null ? void 0 : S.parentElement, O = Array.from(
4973
4974
  (y == null ? void 0 : y.querySelectorAll("." + h1.segment)) ?? []
4974
4975
  ), k = O.findIndex(
4975
4976
  (b) => b === document.activeElement
4976
4977
  );
4977
4978
  B.key === q1 ? Sn(k, O) : B.key === e3 && yn(k, O);
4978
4979
  }
4979
- }, x = (B) => {
4980
+ }, _ = (B) => {
4980
4981
  if (B.key === j1) {
4981
- const N = document.activeElement, S = Array.from(L).indexOf(
4982
+ const N = document.activeElement, S = Array.from(H).indexOf(
4982
4983
  N
4983
4984
  );
4984
- B.shiftKey ? bn(S, L, h1.segment) : Bn(S, L, h1.segment);
4985
+ B.shiftKey ? bn(S, H, h1.segment) : Bn(S, H, h1.segment);
4985
4986
  }
4986
- }, { onBlur: _, onKeyDown: u, onKeyUp: h } = E1(
4987
- { onKeyUp: v, onKeyDown: x },
4987
+ }, { onBlur: x, onKeyDown: u, onKeyUp: h } = E1(
4988
+ { onKeyUp: p, onKeyDown: _ },
4988
4989
  {
4989
4990
  id: C,
4990
4991
  interactiveKeyCodes: [o1, Q, j1, e3, q1]
@@ -4992,7 +4993,7 @@ const Po = $(
4992
4993
  ), f = (B) => {
4993
4994
  B.preventDefault(), B.stopPropagation(), o == null || o(B);
4994
4995
  };
4995
- return /* @__PURE__ */ n("div", { className: h1["segment-container"], "data-position": r, "data-size": H, ...g, children: /* @__PURE__ */ d(
4996
+ return /* @__PURE__ */ n("div", { className: h1["segment-container"], "data-position": r, "data-size": V, ...v, children: /* @__PURE__ */ d(
4996
4997
  "div",
4997
4998
  {
4998
4999
  id: C,
@@ -5002,25 +5003,25 @@ const Po = $(
5002
5003
  className: h1.segment,
5003
5004
  "data-segment-type": e ? "icon" : "label",
5004
5005
  "data-selected": l,
5005
- "data-size": H,
5006
+ "data-size": V,
5006
5007
  onKeyDown: u,
5007
5008
  onKeyUp: h,
5008
- onBlur: _,
5009
+ onBlur: x,
5009
5010
  onClick: f,
5010
5011
  tabIndex: 0,
5011
- ref: Z,
5012
+ ref: m,
5012
5013
  children: [
5013
- l && /* @__PURE__ */ n(I, { name: "check-small", appearance: "filled", size: V, className: h1["selected-icon"] }),
5014
- /* @__PURE__ */ n("div", { className: h1["segment-content"], children: e ? /* @__PURE__ */ n(I, { name: e, appearance: l ? "filled" : "outlined", size: V }) : /* @__PURE__ */ n("span", { className: h1["segment-label"], children: t }) }),
5015
- Y1({ showBadge: !!p, badgeContent: i, badgeCount: s, badgeIcon: c }) && /* @__PURE__ */ n(r1, { count: s, content: i, icon: c, badgeType: a, size: w })
5014
+ l && /* @__PURE__ */ n(I, { name: "check-small", appearance: "filled", size: L, className: h1["selected-icon"] }),
5015
+ /* @__PURE__ */ n("div", { className: h1["segment-content"], children: e ? /* @__PURE__ */ n(I, { name: e, appearance: l ? "filled" : "outlined", size: L }) : /* @__PURE__ */ n("span", { className: h1["segment-label"], children: t }) }),
5016
+ Y1({ showBadge: !!g, badgeContent: i, badgeCount: s, badgeIcon: c }) && /* @__PURE__ */ n(r1, { count: s, content: i, icon: c, badgeType: a, size: w })
5016
5017
  ]
5017
5018
  }
5018
5019
  ) });
5019
5020
  }, zo = $(
5020
5021
  ({ options: C, onChange: e, selectedSegment: t, size: r = "l", ...l }, o) => {
5021
5022
  const s = q(null), i = w6(s, t), c = (a) => {
5022
- const p = a.currentTarget.getAttribute("id") || "";
5023
- e(p);
5023
+ const g = a.currentTarget.getAttribute("id") || "";
5024
+ e(g);
5024
5025
  };
5025
5026
  return /* @__PURE__ */ d(
5026
5027
  "div",
@@ -5070,28 +5071,28 @@ const Po = $(
5070
5071
  "selected-icon": "_selected-icon_kimsj_105"
5071
5072
  }, An = (C, e) => e === 2 ? C === 0 ? "left" : "right" : C === 0 ? "left" : C === e - 1 ? "right" : "middle", $o = $(
5072
5073
  ({ tabs: C, selectedTab: e, defaultSelectedTab: t, onChange: r, size: l = "l", width: o, className: s, ...i }, c) => {
5073
- var _;
5074
- const [a, w] = F(t ?? ((_ = C[0]) == null ? void 0 : _.id) ?? ""), p = e !== void 0, H = p ? e : a, g = q(null), V = l === "s" ? 16 : 24, Z = (u) => {
5075
- p || w(u), r == null || r(u);
5076
- }, L = (u) => {
5074
+ var x;
5075
+ const [a, w] = F(t ?? ((x = C[0]) == null ? void 0 : x.id) ?? ""), g = e !== void 0, V = g ? e : a, v = q(null), L = l === "s" ? 16 : 24, m = (u) => {
5076
+ g || w(u), r == null || r(u);
5077
+ }, H = (u) => {
5077
5078
  const h = u.currentTarget.getAttribute("id") || "";
5078
- Z(h);
5079
- }, v = (u) => {
5079
+ m(h);
5080
+ }, p = (u) => {
5080
5081
  var h, f;
5081
5082
  if (u.key === o1 || u.key === Q) {
5082
5083
  u.preventDefault();
5083
5084
  const B = u.currentTarget.getAttribute("id") || "";
5084
- Z(B);
5085
+ m(B);
5085
5086
  } else if (u.key === q1 || u.key === e3) {
5086
5087
  u.preventDefault();
5087
- const B = Array.from(((h = g.current) == null ? void 0 : h.querySelectorAll("." + m1.tab)) ?? []), N = B.findIndex((y) => y === document.activeElement);
5088
+ const B = Array.from(((h = v.current) == null ? void 0 : h.querySelectorAll("." + m1.tab)) ?? []), N = B.findIndex((y) => y === document.activeElement);
5088
5089
  let S;
5089
5090
  u.key === q1 ? S = N < B.length - 1 ? N + 1 : 0 : S = N > 0 ? N - 1 : B.length - 1, (f = B[S]) == null || f.focus();
5090
5091
  }
5091
- }, x = C.find((u) => u.id === H);
5092
+ }, _ = C.find((u) => u.id === V);
5092
5093
  return /* @__PURE__ */ d("div", { ref: c, className: z(m1["segmented-tabs"], s), ...i, children: [
5093
- /* @__PURE__ */ n("div", { ref: g, role: "tablist", className: m1["tab-bar"], "data-size": l, style: { width: o }, children: C.map((u, h) => {
5094
- const f = H === u.id, B = An(h, C.length);
5094
+ /* @__PURE__ */ n("div", { ref: v, role: "tablist", className: m1["tab-bar"], "data-size": l, style: { width: o }, children: C.map((u, h) => {
5095
+ const f = V === u.id, B = An(h, C.length);
5095
5096
  return /* @__PURE__ */ n("div", { className: m1["tab-container"], "data-position": B, "data-size": l, children: /* @__PURE__ */ d(
5096
5097
  "div",
5097
5098
  {
@@ -5105,11 +5106,11 @@ const Po = $(
5105
5106
  "data-selected": f,
5106
5107
  "data-size": l,
5107
5108
  tabIndex: f ? 0 : -1,
5108
- onClick: L,
5109
- onKeyDown: v,
5109
+ onClick: H,
5110
+ onKeyDown: p,
5110
5111
  children: [
5111
- f && /* @__PURE__ */ n(I, { name: "check-small", appearance: "filled", size: V, className: m1["selected-icon"] }),
5112
- /* @__PURE__ */ n("div", { className: m1["tab-content"], children: u.icon ? /* @__PURE__ */ n(I, { name: u.icon, appearance: f ? "filled" : "outlined", size: V }) : /* @__PURE__ */ n("span", { className: m1["tab-label"], children: u.label }) }),
5112
+ f && /* @__PURE__ */ n(I, { name: "check-small", appearance: "filled", size: L, className: m1["selected-icon"] }),
5113
+ /* @__PURE__ */ n("div", { className: m1["tab-content"], children: u.icon ? /* @__PURE__ */ n(I, { name: u.icon, appearance: f ? "filled" : "outlined", size: L }) : /* @__PURE__ */ n("span", { className: m1["tab-label"], children: u.label }) }),
5113
5114
  Y1({
5114
5115
  showBadge: !!u.showBadge,
5115
5116
  badgeContent: u.badgeContent,
@@ -5129,7 +5130,7 @@ const Po = $(
5129
5130
  }
5130
5131
  ) }, u.id);
5131
5132
  }) }),
5132
- /* @__PURE__ */ n("div", { id: `panel-${H}`, role: "tabpanel", "aria-labelledby": H, className: m1["tab-panel"], children: x == null ? void 0 : x.content })
5133
+ /* @__PURE__ */ n("div", { id: `panel-${V}`, role: "tabpanel", "aria-labelledby": V, className: m1["tab-panel"], children: _ == null ? void 0 : _.content })
5133
5134
  ] });
5134
5135
  }
5135
5136
  ), Dn = 100, Tn = 8, Rn = 112, X = {
@@ -5162,15 +5163,15 @@ const Po = $(
5162
5163
  assistiveAppearance: c = "description",
5163
5164
  showAssistiveIcon: a = !1,
5164
5165
  assistiveTextLink: w,
5165
- showLabelRequirement: p = !1,
5166
- assistiveTextLabel: H,
5167
- onClear: g,
5168
- onChange: V,
5169
- options: Z = [],
5170
- disabled: L,
5171
- readonly: v,
5172
- showResetButton: x,
5173
- width: _ = Rn,
5166
+ showLabelRequirement: g = !1,
5167
+ assistiveTextLabel: V,
5168
+ onClear: v,
5169
+ onChange: L,
5170
+ options: m = [],
5171
+ disabled: H,
5172
+ readonly: p,
5173
+ showResetButton: _,
5174
+ width: x = Rn,
5174
5175
  multiple: u = !1,
5175
5176
  multipleValue: h,
5176
5177
  onMultipleChange: f,
@@ -5180,15 +5181,15 @@ const Po = $(
5180
5181
  labelExtra: y
5181
5182
  }, O) => {
5182
5183
  var V3;
5183
- const [k, b] = F(o || ""), [M, m] = F(h || []), [A, K] = F(!1), D = q(null), U = (R) => {
5184
+ const [k, b] = F(o || ""), [M, Z] = F(h || []), [A, K] = F(!1), D = q(null), U = (R) => {
5184
5185
  D.current = R, typeof O == "function" ? O(R) : O && (O.current = R);
5185
- }, P = u ? M.length > 0 : !!k, l1 = x && P && !v && !L, Y = Z.find((R) => R.value === k), j = Y == null ? void 0 : Y.label, g1 = Y == null ? void 0 : Y.icon, T = !P && N, s1 = () => {
5186
+ }, P = u ? M.length > 0 : !!k, l1 = _ && P && !p && !H, Y = m.find((R) => R.value === k), j = Y == null ? void 0 : Y.label, g1 = Y == null ? void 0 : Y.icon, T = !P && N, s1 = () => {
5186
5187
  var R;
5187
- return M.length === 0 ? "" : M.length === 1 ? ((R = Z.find((i1) => i1.value === M[0])) == null ? void 0 : R.label) || "" : `${M.length} sélectionnés`;
5188
+ return M.length === 0 ? "" : M.length === 1 ? ((R = m.find((i1) => i1.value === M[0])) == null ? void 0 : R.label) || "" : `${M.length} sélectionnés`;
5188
5189
  }, t1 = (R) => M.includes(R), V1 = (R) => {
5189
5190
  const i1 = t1(R) ? M.filter((N1) => N1 !== R) : [...M, R];
5190
- m(i1), f == null || f(i1);
5191
- }, u1 = i && !L && !v, f1 = () => {
5191
+ Z(i1), f == null || f(i1);
5192
+ }, u1 = i && !H && !p, f1 = () => {
5192
5193
  const R = D.current;
5193
5194
  if (R) {
5194
5195
  const i1 = R.getBoundingClientRect();
@@ -5197,7 +5198,7 @@ const Po = $(
5197
5198
  return "bottom";
5198
5199
  }, x1 = () => {
5199
5200
  if (D.current) {
5200
- if (L)
5201
+ if (H)
5201
5202
  return;
5202
5203
  D.current.focus(), K(!A);
5203
5204
  }
@@ -5205,20 +5206,20 @@ const Po = $(
5205
5206
  document.activeElement === D.current && (R.key === o1 || R.key === Q) && (R.preventDefault(), x1());
5206
5207
  }, c3 = (R) => {
5207
5208
  var i1;
5208
- R.stopPropagation(), u ? (m([]), f == null || f([])) : n1(""), g == null || g(), (i1 = D.current) == null || i1.focus();
5209
+ R.stopPropagation(), u ? (Z([]), f == null || f([])) : n1(""), v == null || v(), (i1 = D.current) == null || i1.focus();
5209
5210
  }, n1 = (R) => {
5210
- b(R), V == null || V(R), K(!1);
5211
+ b(R), L == null || L(R), K(!1);
5211
5212
  };
5212
5213
  E(() => {
5213
5214
  b(o || "");
5214
5215
  }, [o]), E(() => {
5215
- m(h || []);
5216
+ Z(h || []);
5216
5217
  }, [h]);
5217
5218
  const y1 = /* @__PURE__ */ d("div", { className: X["select-container"], "data-label-position": r, children: [
5218
5219
  s && r === "side" && /* @__PURE__ */ d("div", { className: X["select-label-row"], children: [
5219
5220
  /* @__PURE__ */ d("label", { htmlFor: C, id: t, className: X["select-label"], children: [
5220
5221
  e,
5221
- /* @__PURE__ */ n(S1, { required: l, showLabelRequirement: p })
5222
+ /* @__PURE__ */ n(S1, { required: l, showLabelRequirement: g })
5222
5223
  ] }),
5223
5224
  y
5224
5225
  ] }),
@@ -5226,7 +5227,7 @@ const Po = $(
5226
5227
  s && r === "top" && /* @__PURE__ */ d("div", { className: X["select-label-row"], children: [
5227
5228
  /* @__PURE__ */ d("label", { htmlFor: C, id: t, className: X["select-label"], children: [
5228
5229
  e,
5229
- /* @__PURE__ */ n(S1, { required: l, showLabelRequirement: p })
5230
+ /* @__PURE__ */ n(S1, { required: l, showLabelRequirement: g })
5230
5231
  ] }),
5231
5232
  y
5232
5233
  ] }),
@@ -5247,15 +5248,15 @@ const Po = $(
5247
5248
  "aria-labelledby": t,
5248
5249
  "data-error": i ? "true" : "false",
5249
5250
  "data-active": A ? "true" : "false",
5250
- "data-disabled": L ? "true" : "false",
5251
- "data-read-only": v ? "true" : "false",
5251
+ "data-disabled": H ? "true" : "false",
5252
+ "data-read-only": p ? "true" : "false",
5252
5253
  id: C,
5253
5254
  className: X["select-wrapper"],
5254
5255
  role: "combobox",
5255
- tabIndex: L ? -1 : 0,
5256
+ tabIndex: H ? -1 : 0,
5256
5257
  onClick: x1,
5257
5258
  onKeyDown: H3,
5258
- style: { width: _, ...S },
5259
+ style: { width: x, ...S },
5259
5260
  children: /* @__PURE__ */ d("div", { className: X["select-content"], children: [
5260
5261
  u1 && /* @__PURE__ */ n(I, { name: "error", className: X["error-icon"] }),
5261
5262
  /* @__PURE__ */ d(
@@ -5279,7 +5280,7 @@ const Po = $(
5279
5280
  variant: "neutral",
5280
5281
  className: z(X["icon-button"], X["clear-icon"]),
5281
5282
  onClick: c3,
5282
- disabled: L
5283
+ disabled: H
5283
5284
  }
5284
5285
  ),
5285
5286
  /* @__PURE__ */ n(
@@ -5297,17 +5298,17 @@ const Po = $(
5297
5298
  isOpen: A,
5298
5299
  position: f1(),
5299
5300
  children: [
5300
- Z.length === 0 && /* @__PURE__ */ n(s3, { label: "No options available", onClick: () => {
5301
+ m.length === 0 && /* @__PURE__ */ n(s3, { label: "No options available", onClick: () => {
5301
5302
  } }),
5302
- u ? Z.map(({ value: R, label: i1, icon: N1 }, L3) => /* @__PURE__ */ d(
5303
+ u ? m.map(({ value: R, label: i1, icon: N1 }, L3) => /* @__PURE__ */ d(
5303
5304
  "li",
5304
5305
  {
5305
5306
  className: X["dropdown-item-multiple"],
5306
5307
  role: "option",
5307
5308
  "aria-selected": t1(R),
5308
- onClick: () => !v && V1(R),
5309
- tabIndex: v ? -1 : 0,
5310
- "data-read-only": v ? "true" : "false",
5309
+ onClick: () => !p && V1(R),
5310
+ tabIndex: p ? -1 : 0,
5311
+ "data-read-only": p ? "true" : "false",
5311
5312
  children: [
5312
5313
  /* @__PURE__ */ n(
5313
5314
  I,
@@ -5322,15 +5323,15 @@ const Po = $(
5322
5323
  ]
5323
5324
  },
5324
5325
  L3 + R
5325
- )) : Z.map(({ value: R, label: i1, icon: N1 }, L3) => /* @__PURE__ */ n(
5326
+ )) : m.map(({ value: R, label: i1, icon: N1 }, L3) => /* @__PURE__ */ n(
5326
5327
  s3,
5327
5328
  {
5328
5329
  label: i1,
5329
5330
  leftIcon: N1,
5330
5331
  isSelected: R === k,
5331
- disabled: v,
5332
+ disabled: p,
5332
5333
  onClick: () => {
5333
- v || n1(R);
5334
+ p || n1(R);
5334
5335
  }
5335
5336
  },
5336
5337
  L3 + R
@@ -5338,14 +5339,14 @@ const Po = $(
5338
5339
  ]
5339
5340
  }
5340
5341
  ),
5341
- H && /* @__PURE__ */ n(
5342
+ V && /* @__PURE__ */ n(
5342
5343
  A3,
5343
5344
  {
5344
- label: H,
5345
+ label: V,
5345
5346
  appearance: i ? "error" : c,
5346
5347
  showIcon: a,
5347
5348
  href: w,
5348
- width: _
5349
+ width: x
5349
5350
  }
5350
5351
  )
5351
5352
  ] })
@@ -5402,23 +5403,23 @@ const tr = $(
5402
5403
  onProfileClick: c,
5403
5404
  showTeamData: a = !1,
5404
5405
  teamData: w,
5405
- middleItem: p,
5406
- children: H,
5407
- appearance: g = "brand",
5408
- collapsed: V,
5409
- ...Z
5410
- }, L) => {
5411
- const v = q(null), x = q(null);
5412
- return er(v, x, H), /* @__PURE__ */ d("div", { ref: v, className: c1.sideNavContainer, ...Z, children: [
5406
+ middleItem: g,
5407
+ children: V,
5408
+ appearance: v = "brand",
5409
+ collapsed: L,
5410
+ ...m
5411
+ }, H) => {
5412
+ const p = q(null), _ = q(null);
5413
+ return er(p, _, V), /* @__PURE__ */ d("div", { ref: p, className: c1.sideNavContainer, ...m, children: [
5413
5414
  /* @__PURE__ */ d(
5414
5415
  "nav",
5415
5416
  {
5416
- ref: L,
5417
+ ref: H,
5417
5418
  className: c1.sideNav,
5418
- "data-collapsed": V,
5419
- "data-appearance": g,
5419
+ "data-collapsed": L,
5420
+ "data-appearance": v,
5420
5421
  style: {
5421
- minWidth: V ? En : Pn[C]
5422
+ minWidth: L ? En : Pn[C]
5422
5423
  },
5423
5424
  children: [
5424
5425
  l && e && /* @__PURE__ */ n("div", { className: c1.sideNavHeader, children: e }),
@@ -5426,34 +5427,34 @@ const tr = $(
5426
5427
  "div",
5427
5428
  {
5428
5429
  className: c1.sideNavProfile,
5429
- "data-collapsed": V,
5430
+ "data-collapsed": L,
5430
5431
  "data-clickable": !!c,
5431
5432
  onClick: c,
5432
- onKeyDown: (_) => {
5433
- (_.key === "Enter" || _.key === " ") && c && (_.preventDefault(), c());
5433
+ onKeyDown: (x) => {
5434
+ (x.key === "Enter" || x.key === " ") && c && (x.preventDefault(), c());
5434
5435
  },
5435
5436
  role: c ? "button" : void 0,
5436
5437
  tabIndex: c ? 0 : void 0,
5437
5438
  children: [
5438
5439
  /* @__PURE__ */ n(I, { name: "user-circle", appearance: "filled", size: 20 }),
5439
- !V && /* @__PURE__ */ n("span", { className: c1.profileName, children: i })
5440
+ !L && /* @__PURE__ */ n("span", { className: c1.profileName, children: i })
5440
5441
  ]
5441
5442
  }
5442
5443
  ),
5443
- p && !V && /* @__PURE__ */ n("div", { className: c1.sideNavMiddleItem, children: p }),
5444
- a && w && w.length > 0 && !V && /* @__PURE__ */ n("div", { className: c1.sideNavTeamData, children: w.map((_, u) => /* @__PURE__ */ d("div", { className: c1.teamDataItem, children: [
5444
+ g && !L && /* @__PURE__ */ n("div", { className: c1.sideNavMiddleItem, children: g }),
5445
+ a && w && w.length > 0 && !L && /* @__PURE__ */ n("div", { className: c1.sideNavTeamData, children: w.map((x, u) => /* @__PURE__ */ d("div", { className: c1.teamDataItem, children: [
5445
5446
  /* @__PURE__ */ d("span", { className: c1.teamDataLabel, children: [
5446
- _.label,
5447
+ x.label,
5447
5448
  " :"
5448
5449
  ] }),
5449
- /* @__PURE__ */ n("span", { className: c1.teamDataValue, children: _.value })
5450
+ /* @__PURE__ */ n("span", { className: c1.teamDataValue, children: x.value })
5450
5451
  ] }, u)) }),
5451
5452
  t && /* @__PURE__ */ n("div", { className: c1.sideNavBody, children: t }),
5452
5453
  o && r && /* @__PURE__ */ n("div", { className: c1.sideNavFooter, children: r })
5453
5454
  ]
5454
5455
  }
5455
5456
  ),
5456
- H && /* @__PURE__ */ n("div", { ref: x, className: c1.sideNavContent, children: H })
5457
+ V && /* @__PURE__ */ n("div", { ref: _, className: c1.sideNavContent, children: V })
5457
5458
  ] });
5458
5459
  }
5459
5460
  ), u3 = {
@@ -5519,7 +5520,7 @@ function h6({
5519
5520
  children: i,
5520
5521
  styleType: c = "item"
5521
5522
  }) {
5522
- const a = c === "menu" ? D1 : n3, p = {
5523
+ const a = c === "menu" ? D1 : n3, g = {
5523
5524
  className: c === "menu" ? a.navMenu : a.navItem,
5524
5525
  tabIndex: t,
5525
5526
  "aria-label": e,
@@ -5528,7 +5529,7 @@ function h6({
5528
5529
  ...s && { onClick: s },
5529
5530
  ...r && { onKeyDown: r }
5530
5531
  };
5531
- return C ? /* @__PURE__ */ n("a", { href: C, ...p, children: i }) : /* @__PURE__ */ n("span", { ...p, children: i });
5532
+ return C ? /* @__PURE__ */ n("a", { href: C, ...g, children: i }) : /* @__PURE__ */ n("span", { ...g, children: i });
5532
5533
  }
5533
5534
  function pr(C = !1, e = !1) {
5534
5535
  return C ? b1.s : e ? b1.l : b1.m;
@@ -5595,21 +5596,21 @@ const p3 = $(
5595
5596
  parentMenuOpen: c,
5596
5597
  appearance: a = "brand",
5597
5598
  active: w,
5598
- badge: p,
5599
- ...H
5600
- }, g) => {
5601
- const V = q(null), { onKeyDown: Z } = H6({
5599
+ badge: g,
5600
+ ...V
5601
+ }, v) => {
5602
+ const L = q(null), { onKeyDown: m } = H6({
5602
5603
  onEnterOrSpace: r
5603
5604
  });
5604
- function L() {
5605
+ function H() {
5605
5606
  var h;
5606
- (h = V.current) == null || h.setAttribute("data-focused", "true");
5607
+ (h = L.current) == null || h.setAttribute("data-focused", "true");
5607
5608
  }
5608
- function v() {
5609
+ function p() {
5609
5610
  var h;
5610
- (h = V.current) == null || h.removeAttribute("data-focused");
5611
+ (h = L.current) == null || h.removeAttribute("data-focused");
5611
5612
  }
5612
- const x = p6(c), _ = /* @__PURE__ */ d(G, { children: [
5613
+ const _ = p6(c), x = /* @__PURE__ */ d(G, { children: [
5613
5614
  /* @__PURE__ */ n("div", { className: n3.navItemLeft, children: /* @__PURE__ */ n(
5614
5615
  v6,
5615
5616
  {
@@ -5621,7 +5622,7 @@ const p3 = $(
5621
5622
  styleType: "item"
5622
5623
  }
5623
5624
  ) }),
5624
- /* @__PURE__ */ n("div", { className: n3.navItemRight, children: !o && p && /* @__PURE__ */ n(r1, { badgeType: p.badgeType, size: p.size, content: p.content, count: p.count }) })
5625
+ /* @__PURE__ */ n("div", { className: n3.navItemRight, children: !o && g && /* @__PURE__ */ n(r1, { badgeType: g.badgeType, size: g.size, content: g.content, count: g.count }) })
5625
5626
  ] }), u = /* @__PURE__ */ n(
5626
5627
  "div",
5627
5628
  {
@@ -5633,20 +5634,20 @@ const p3 = $(
5633
5634
  "data-active": w,
5634
5635
  onClick: r,
5635
5636
  ref: (h) => {
5636
- V.current = h, typeof g == "function" ? g(h) : g && "current" in g && (g.current = h);
5637
+ L.current = h, typeof v == "function" ? v(h) : v && "current" in v && (v.current = h);
5637
5638
  },
5638
- ...H,
5639
+ ...V,
5639
5640
  children: /* @__PURE__ */ n(
5640
5641
  h6,
5641
5642
  {
5642
5643
  link: s,
5643
5644
  label: l,
5644
- tabIndex: x,
5645
- onKeyDown: s ? void 0 : Z,
5646
- onFocus: L,
5647
- onBlur: v,
5645
+ tabIndex: _,
5646
+ onKeyDown: s ? void 0 : m,
5647
+ onFocus: H,
5648
+ onBlur: p,
5648
5649
  styleType: "item",
5649
- children: _
5650
+ children: x
5650
5651
  }
5651
5652
  )
5652
5653
  }
@@ -5666,24 +5667,24 @@ const p3 = $(
5666
5667
  showMenuIcon: c = !0,
5667
5668
  isNested: a,
5668
5669
  parentMenuOpen: w,
5669
- appearance: p = "brand",
5670
- badge: H,
5671
- showDivider: g,
5672
- ...V
5673
- }, Z) => {
5674
- const [L, v] = F(!1), x = i !== void 0 ? i : L, _ = i !== void 0;
5670
+ appearance: g = "brand",
5671
+ badge: V,
5672
+ showDivider: v,
5673
+ ...L
5674
+ }, m) => {
5675
+ const [H, p] = F(!1), _ = i !== void 0 ? i : H, x = i !== void 0;
5675
5676
  function u() {
5676
- _ || v(!L), t && t();
5677
+ x || p(!H), t && t();
5677
5678
  }
5678
5679
  function h() {
5679
- x && !_ && v(!1);
5680
+ _ && !x && p(!1);
5680
5681
  }
5681
5682
  const { onKeyDown: f } = H6({
5682
5683
  onEnterOrSpace: u,
5683
5684
  onEscape: h,
5684
5685
  includeArrowKeys: !0,
5685
5686
  includeEscape: !0
5686
- }), B = s.length, N = !l && B, S = x, y = p6(w), O = N && c ? /* @__PURE__ */ n(I, { name: "arrow-chevron-right", className: D1.menuIcon, "data-open": x }) : null, k = /* @__PURE__ */ d(G, { children: [
5687
+ }), B = s.length, N = !l && B, S = _, y = p6(w), O = N && c ? /* @__PURE__ */ n(I, { name: "arrow-chevron-right", className: D1.menuIcon, "data-open": _ }) : null, k = /* @__PURE__ */ d(G, { children: [
5687
5688
  /* @__PURE__ */ n("div", { className: D1.menuContentLeft, children: /* @__PURE__ */ n(
5688
5689
  v6,
5689
5690
  {
@@ -5696,7 +5697,7 @@ const p3 = $(
5696
5697
  }
5697
5698
  ) }),
5698
5699
  /* @__PURE__ */ d("div", { className: D1.menuContentRight, children: [
5699
- !l && H && /* @__PURE__ */ n(r1, { badgeType: H.badgeType, size: H.size, content: H.content, count: H.count }),
5700
+ !l && V && /* @__PURE__ */ n(r1, { badgeType: V.badgeType, size: V.size, content: V.content, count: V.count }),
5700
5701
  O
5701
5702
  ] })
5702
5703
  ] }), b = /* @__PURE__ */ d(
@@ -5704,11 +5705,11 @@ const p3 = $(
5704
5705
  {
5705
5706
  className: D1.navMenuContainer,
5706
5707
  "data-collapsed": l,
5707
- "data-appearance": p,
5708
+ "data-appearance": g,
5708
5709
  "data-nested": a,
5709
- "data-open": x,
5710
- ref: Z,
5711
- ...V,
5710
+ "data-open": _,
5711
+ ref: m,
5712
+ ...L,
5712
5713
  children: [
5713
5714
  /* @__PURE__ */ n(
5714
5715
  h6,
@@ -5722,51 +5723,51 @@ const p3 = $(
5722
5723
  children: k
5723
5724
  }
5724
5725
  ),
5725
- N && /* @__PURE__ */ n("ul", { className: D1.nestedMenu, "data-open": x, children: s.map((m) => {
5726
+ N && /* @__PURE__ */ n("ul", { className: D1.nestedMenu, "data-open": _, children: s.map((Z) => {
5726
5727
  var K;
5727
- return (K = m.items) != null && K.length ? /* @__PURE__ */ n(
5728
+ return (K = Z.items) != null && K.length ? /* @__PURE__ */ n(
5728
5729
  D3,
5729
5730
  {
5730
- label: m.label,
5731
- icon: m.icon,
5732
- showIcon: m.showIcon,
5731
+ label: Z.label,
5732
+ icon: Z.icon,
5733
+ showIcon: Z.showIcon,
5733
5734
  collapsed: l,
5734
- link: m.link,
5735
- onClick: m.onClick,
5736
- items: m.items || [],
5735
+ link: Z.link,
5736
+ onClick: Z.onClick,
5737
+ items: Z.items || [],
5737
5738
  showMenuIcon: c,
5738
- showDivider: m.showDivider,
5739
+ showDivider: Z.showDivider,
5739
5740
  isNested: !0,
5740
5741
  parentMenuOpen: S,
5741
- appearance: p,
5742
- badge: m.badge
5742
+ appearance: g,
5743
+ badge: Z.badge
5743
5744
  },
5744
- m.id || m.label
5745
+ Z.id || Z.label
5745
5746
  ) : /* @__PURE__ */ d(r3, { children: [
5746
5747
  /* @__PURE__ */ n("li", { children: /* @__PURE__ */ n(
5747
5748
  p3,
5748
5749
  {
5749
- label: m.label,
5750
- icon: m.icon,
5751
- showIcon: m.showIcon,
5750
+ label: Z.label,
5751
+ icon: Z.icon,
5752
+ showIcon: Z.showIcon,
5752
5753
  collapsed: l,
5753
- link: m.link,
5754
- onClick: m.onClick,
5754
+ link: Z.link,
5755
+ onClick: Z.onClick,
5755
5756
  isNested: !0,
5756
5757
  parentMenuOpen: S,
5757
- appearance: p,
5758
- badge: m.badge
5758
+ appearance: g,
5759
+ badge: Z.badge
5759
5760
  }
5760
5761
  ) }),
5761
- m.showDivider && /* @__PURE__ */ n(d1, { appearance: g3[p] })
5762
- ] }, m.id || m.label);
5762
+ Z.showDivider && /* @__PURE__ */ n(d1, { appearance: g3[g] })
5763
+ ] }, Z.id || Z.label);
5763
5764
  }) })
5764
5765
  ]
5765
5766
  }
5766
5767
  );
5767
5768
  return /* @__PURE__ */ d(G, { children: [
5768
5769
  /* @__PURE__ */ n(g6, { label: r, collapsed: l, children: b }),
5769
- g && /* @__PURE__ */ n(d1, { appearance: g3[p] })
5770
+ v && /* @__PURE__ */ n(d1, { appearance: g3[g] })
5770
5771
  ] });
5771
5772
  }
5772
5773
  ), Vr = "_mobileContainer_kf4sv_1", Lr = "_mobileBar_kf4sv_7", Mr = "_logoBox_kf4sv_17", mr = "_logoInner_kf4sv_28", Zr = "_hamburgerButton_kf4sv_47", fr = "_middleSlot_kf4sv_67", xr = "_rightSlot_kf4sv_74", _r = "_mobileContent_kf4sv_82", Br = "_drawerBackdrop_kf4sv_87", br = "_mobileDrawer_kf4sv_99", Sr = "_drawerHeader_kf4sv_118", yr = "_drawerHeaderLeft_kf4sv_127", Nr = "_drawerLogoInner_kf4sv_132", kr = "_drawerTitle_kf4sv_150", Or = "_closeButton_kf4sv_161", Fr = "_drawerBody_kf4sv_180", Ir = "_drawerFooter_kf4sv_200", C1 = {
@@ -5797,20 +5798,20 @@ const p3 = $(
5797
5798
  rightItem: s,
5798
5799
  children: i
5799
5800
  }) => {
5800
- const c = q(null), a = q(null), [w, p] = F(!1), H = g3[l], g = W(() => {
5801
- var _;
5802
- p(!1), (_ = a.current) == null || _.focus();
5803
- }, []), V = W(() => {
5804
- p((_) => !_);
5801
+ const c = q(null), a = q(null), [w, g] = F(!1), V = g3[l], v = W(() => {
5802
+ var x;
5803
+ g(!1), (x = a.current) == null || x.focus();
5804
+ }, []), L = W(() => {
5805
+ g((x) => !x);
5805
5806
  }, []);
5806
- I3(w ? g : () => {
5807
+ I3(w ? v : () => {
5807
5808
  }), F3(c.current ?? void 0, w);
5808
- const { shouldRender: Z, isAnimating: L } = R1(w);
5809
- function v(_) {
5810
- _.onClick && _.onClick(), g();
5809
+ const { shouldRender: m, isAnimating: H } = R1(w);
5810
+ function p(x) {
5811
+ x.onClick && x.onClick(), v();
5811
5812
  }
5812
- function x(_) {
5813
- return _ != null && _.length ? /* @__PURE__ */ n("ul", { children: _.map((u) => {
5813
+ function _(x) {
5814
+ return x != null && x.length ? /* @__PURE__ */ n("ul", { children: x.map((u) => {
5814
5815
  var f;
5815
5816
  return ((f = u.items) == null ? void 0 : f.length) ? /* @__PURE__ */ n(
5816
5817
  D3,
@@ -5838,12 +5839,12 @@ const p3 = $(
5838
5839
  showIcon: u.showIcon,
5839
5840
  collapsed: !1,
5840
5841
  link: u.link,
5841
- onClick: u.onClick ? () => v(u) : void 0,
5842
+ onClick: u.onClick ? () => p(u) : void 0,
5842
5843
  appearance: l,
5843
5844
  active: u.id === r && !!r
5844
5845
  }
5845
5846
  ) }),
5846
- u.showDivider && /* @__PURE__ */ n(d1, { appearance: H })
5847
+ u.showDivider && /* @__PURE__ */ n(d1, { appearance: V })
5847
5848
  ] }, u.id);
5848
5849
  }) }) : null;
5849
5850
  }
@@ -5855,7 +5856,7 @@ const p3 = $(
5855
5856
  {
5856
5857
  ref: a,
5857
5858
  className: C1.hamburgerButton,
5858
- onClick: V,
5859
+ onClick: L,
5859
5860
  "aria-label": w ? "Fermer le menu" : "Ouvrir le menu",
5860
5861
  "aria-expanded": w,
5861
5862
  children: /* @__PURE__ */ n(I, { name: "menu", size: 24 })
@@ -5865,29 +5866,29 @@ const p3 = $(
5865
5866
  s && /* @__PURE__ */ n("div", { className: C1.rightSlot, children: s })
5866
5867
  ] }),
5867
5868
  /* @__PURE__ */ n("div", { className: C1.mobileContent, children: i }),
5868
- Z && /* @__PURE__ */ d(Q1, { freezeNavigation: !0, children: [
5869
+ m && /* @__PURE__ */ d(Q1, { freezeNavigation: !0, children: [
5869
5870
  /* @__PURE__ */ n(
5870
5871
  "div",
5871
5872
  {
5872
5873
  className: C1.drawerBackdrop,
5873
- "data-visible": L,
5874
- onClick: g,
5874
+ "data-visible": H,
5875
+ onClick: v,
5875
5876
  "aria-hidden": "true"
5876
5877
  }
5877
5878
  ),
5878
- /* @__PURE__ */ d("nav", { ref: c, className: C1.mobileDrawer, "data-open": L, "aria-label": "Navigation", children: [
5879
+ /* @__PURE__ */ d("nav", { ref: c, className: C1.mobileDrawer, "data-open": H, "aria-label": "Navigation", children: [
5879
5880
  /* @__PURE__ */ d("div", { className: C1.drawerHeader, children: [
5880
5881
  /* @__PURE__ */ d("div", { className: C1.drawerHeaderLeft, children: [
5881
5882
  /* @__PURE__ */ n("div", { className: C1.drawerLogoInner, children: C == null ? void 0 : C.identifier }),
5882
5883
  /* @__PURE__ */ n("h1", { className: C1.drawerTitle, children: C == null ? void 0 : C.title })
5883
5884
  ] }),
5884
- /* @__PURE__ */ n("button", { className: C1.closeButton, onClick: g, "aria-label": "Fermer le menu", children: /* @__PURE__ */ n(I, { name: "close", size: 24 }) })
5885
+ /* @__PURE__ */ n("button", { className: C1.closeButton, onClick: v, "aria-label": "Fermer le menu", children: /* @__PURE__ */ n(I, { name: "close", size: 24 }) })
5885
5886
  ] }),
5886
- /* @__PURE__ */ n(d1, { appearance: H }),
5887
- /* @__PURE__ */ n("div", { className: C1.drawerBody, children: x(e) }),
5887
+ /* @__PURE__ */ n(d1, { appearance: V }),
5888
+ /* @__PURE__ */ n("div", { className: C1.drawerBody, children: _(e) }),
5888
5889
  t && t.length > 0 && /* @__PURE__ */ d(G, { children: [
5889
- /* @__PURE__ */ n(d1, { appearance: H }),
5890
- /* @__PURE__ */ n("div", { className: C1.drawerFooter, children: x(t) })
5890
+ /* @__PURE__ */ n(d1, { appearance: V }),
5891
+ /* @__PURE__ */ n("div", { className: C1.drawerFooter, children: _(t) })
5891
5892
  ] })
5892
5893
  ] })
5893
5894
  ] })
@@ -5917,15 +5918,15 @@ const p3 = $(
5917
5918
  onCollapsedChange: c,
5918
5919
  appearance: a = "brand",
5919
5920
  activeItem: w,
5920
- showProfile: p,
5921
- profile: H,
5922
- onProfileClick: g,
5923
- showTeamData: V,
5924
- teamData: Z,
5925
- middleItem: L,
5926
- rightItem: v
5927
- }, x) => {
5928
- const _ = or(), [u, h] = F(s ?? i), [f, B] = F(!0);
5921
+ showProfile: g,
5922
+ profile: V,
5923
+ onProfileClick: v,
5924
+ showTeamData: L,
5925
+ teamData: m,
5926
+ middleItem: H,
5927
+ rightItem: p
5928
+ }, _) => {
5929
+ const x = or(), [u, h] = F(s ?? i), [f, B] = F(!0);
5929
5930
  E(() => {
5930
5931
  s !== void 0 && h(s);
5931
5932
  }, [s]), E(() => {
@@ -5951,7 +5952,7 @@ const p3 = $(
5951
5952
  ), b = /* @__PURE__ */ d("div", { className: a1.sideNavHeaderTitle, children: [
5952
5953
  /* @__PURE__ */ n("div", { className: a1.sideNavHeaderIdentifier, children: r == null ? void 0 : r.identifier }),
5953
5954
  u ? "" : /* @__PURE__ */ n("h1", { "data-hidden": !f, children: r == null ? void 0 : r.title })
5954
- ] }), M = r == null ? void 0 : r.ariaLabel, m = /* @__PURE__ */ n(
5955
+ ] }), M = r == null ? void 0 : r.ariaLabel, Z = /* @__PURE__ */ n(
5955
5956
  "a",
5956
5957
  {
5957
5958
  href: (r == null ? void 0 : r.link) ?? "",
@@ -5971,7 +5972,7 @@ const p3 = $(
5971
5972
  "aria-label": M,
5972
5973
  children: b
5973
5974
  }
5974
- ), K = r != null && r.link ? m : r != null && r.onClick ? A : /* @__PURE__ */ n("div", { className: a1.sideNavHeaderTitleContainer, children: b });
5975
+ ), K = r != null && r.link ? Z : r != null && r.onClick ? A : /* @__PURE__ */ n("div", { className: a1.sideNavHeaderTitleContainer, children: b });
5975
5976
  function D(U) {
5976
5977
  return U != null && U.length ? /* @__PURE__ */ n("ul", { children: U.map((P) => {
5977
5978
  var Y;
@@ -6010,7 +6011,7 @@ const p3 = $(
6010
6011
  ] }, P.id);
6011
6012
  }) }) : null;
6012
6013
  }
6013
- return _ ? /* @__PURE__ */ n(
6014
+ return x ? /* @__PURE__ */ n(
6014
6015
  Ar,
6015
6016
  {
6016
6017
  headerConfig: r,
@@ -6018,23 +6019,23 @@ const p3 = $(
6018
6019
  footerItems: o,
6019
6020
  activeItem: w,
6020
6021
  appearance: a,
6021
- middleItem: L,
6022
- rightItem: v,
6022
+ middleItem: H,
6023
+ rightItem: p,
6023
6024
  children: t
6024
6025
  }
6025
6026
  ) : /* @__PURE__ */ n(
6026
6027
  tr,
6027
6028
  {
6028
- ref: x,
6029
+ ref: _,
6029
6030
  size: C,
6030
6031
  collapsed: u,
6031
6032
  appearance: a,
6032
- showProfile: p,
6033
- profile: H,
6034
- onProfileClick: g,
6035
- showTeamData: V,
6036
- teamData: Z,
6037
- middleItem: L,
6033
+ showProfile: g,
6034
+ profile: V,
6035
+ onProfileClick: v,
6036
+ showTeamData: L,
6037
+ teamData: m,
6038
+ middleItem: H,
6038
6039
  style: { height: "100vh" },
6039
6040
  header: /* @__PURE__ */ d("div", { className: a1.sideNavHeaderContainer, children: [
6040
6041
  /* @__PURE__ */ d("div", { className: a1.sideNavHeader, "data-collapsed": u, "data-appearance": a, children: [
@@ -6093,15 +6094,15 @@ const p3 = $(
6093
6094
  disabled: c,
6094
6095
  ariaLabelRight: a,
6095
6096
  options: w,
6096
- showBadge: p,
6097
- badgeContent: H,
6098
- badgeIcon: g,
6099
- badgeType: V,
6100
- badgeCount: Z,
6101
- badgeSize: L,
6102
- ...v
6103
- }, x) => {
6104
- const [_, u] = F(!1), h = q(null), f = q(null), B = q(null), [N, S] = l.split("-"), y = (k) => {
6097
+ showBadge: g,
6098
+ badgeContent: V,
6099
+ badgeIcon: v,
6100
+ badgeType: L,
6101
+ badgeCount: m,
6102
+ badgeSize: H,
6103
+ ...p
6104
+ }, _) => {
6105
+ const [x, u] = F(!1), h = q(null), f = q(null), B = q(null), [N, S] = l.split("-"), y = (k) => {
6105
6106
  [Q].includes(k.key) && k.preventDefault();
6106
6107
  }, O = (k) => {
6107
6108
  [Q, T1].includes(k.key) && u(!0);
@@ -6112,7 +6113,7 @@ const p3 = $(
6112
6113
  className: z(_1.splitButtonContainer, o),
6113
6114
  "data-size": e,
6114
6115
  "data-compact-spacing": r,
6115
- ref: x,
6116
+ ref: _,
6116
6117
  children: [
6117
6118
  /* @__PURE__ */ d(
6118
6119
  "button",
@@ -6124,7 +6125,7 @@ const p3 = $(
6124
6125
  onClick: i,
6125
6126
  disabled: c,
6126
6127
  "data-testid": "Main action button",
6127
- ...v,
6128
+ ...p,
6128
6129
  ref: f,
6129
6130
  children: [
6130
6131
  s && /* @__PURE__ */ n(I, { name: s, size: jr[e] }),
@@ -6144,15 +6145,15 @@ const p3 = $(
6144
6145
  "data-testid": "Menu container",
6145
6146
  position: N,
6146
6147
  alignment: S,
6147
- trigger: Y1({ showBadge: !!p, badgeContent: H, badgeCount: Z, badgeIcon: g }) ? /* @__PURE__ */ n(r1, { count: Z, content: H, badgeType: V, icon: g, size: L, children: /* @__PURE__ */ n(
6148
+ trigger: Y1({ showBadge: !!g, badgeContent: V, badgeCount: m, badgeIcon: v }) ? /* @__PURE__ */ n(r1, { count: m, content: V, badgeType: L, icon: v, size: H, children: /* @__PURE__ */ n(
6148
6149
  "button",
6149
6150
  {
6150
6151
  type: "button",
6151
6152
  "aria-haspopup": "menu",
6152
- "aria-expanded": _,
6153
+ "aria-expanded": x,
6153
6154
  "aria-label": a,
6154
6155
  className: _1.splitButtonRight,
6155
- "data-active": _,
6156
+ "data-active": x,
6156
6157
  "data-compact-spacing": r,
6157
6158
  "data-appearance": C,
6158
6159
  "data-size": e,
@@ -6161,7 +6162,7 @@ const p3 = $(
6161
6162
  onClick: () => u(!0),
6162
6163
  onKeyDown: y,
6163
6164
  onKeyUp: O,
6164
- ...v,
6165
+ ...p,
6165
6166
  ref: h,
6166
6167
  children: /* @__PURE__ */ n("div", { className: _1.splitButtonRightIconContainer, children: /* @__PURE__ */ n(I, { name: "arrow-chevron-down", size: q3[e] }) })
6167
6168
  }
@@ -6170,10 +6171,10 @@ const p3 = $(
6170
6171
  {
6171
6172
  type: "button",
6172
6173
  "aria-haspopup": "menu",
6173
- "aria-expanded": _,
6174
+ "aria-expanded": x,
6174
6175
  "aria-label": a,
6175
6176
  className: _1.splitButtonRight,
6176
- "data-active": _,
6177
+ "data-active": x,
6177
6178
  "data-compact-spacing": r,
6178
6179
  "data-appearance": C,
6179
6180
  "data-size": e,
@@ -6182,12 +6183,12 @@ const p3 = $(
6182
6183
  onClick: () => u(!0),
6183
6184
  onKeyDown: y,
6184
6185
  onKeyUp: O,
6185
- ...v,
6186
+ ...p,
6186
6187
  ref: h,
6187
6188
  children: /* @__PURE__ */ n("div", { className: _1.splitButtonRightIconContainer, children: /* @__PURE__ */ n(I, { name: "arrow-chevron-down", size: q3[e] }) })
6188
6189
  }
6189
6190
  ),
6190
- isOpen: _,
6191
+ isOpen: x,
6191
6192
  children: w.map((k, b) => /* @__PURE__ */ n(
6192
6193
  s3,
6193
6194
  {
@@ -6228,33 +6229,34 @@ const p3 = $(
6228
6229
  showLabelRequirement: c = !1,
6229
6230
  onChange: a,
6230
6231
  tooltipTextLabel: w,
6231
- ...p
6232
+ labelStyle: g,
6233
+ ...V
6232
6234
  }) => {
6233
- const [H, g] = F(s);
6235
+ const [v, L] = F(s);
6234
6236
  E(() => {
6235
- g(s);
6237
+ L(s);
6236
6238
  }, [s]);
6237
- const V = (v) => {
6238
- g(v.target.checked), a == null || a(v);
6239
- }, Z = (v) => {
6239
+ const m = (_) => {
6240
+ L(_.target.checked), a == null || a(_);
6241
+ }, H = (_) => {
6240
6242
  if (o || l)
6241
- v.stopPropagation();
6243
+ _.stopPropagation();
6242
6244
  else {
6243
- const x = v.currentTarget.querySelector('input[type="checkbox"]');
6244
- x && (x.checked = !H, V({
6245
+ const x = _.currentTarget.querySelector('input[type="checkbox"]');
6246
+ x && (x.checked = !v, m({
6245
6247
  target: x,
6246
6248
  currentTarget: x
6247
6249
  }));
6248
6250
  }
6249
- }, L = /* @__PURE__ */ d(
6251
+ }, p = /* @__PURE__ */ d(
6250
6252
  "div",
6251
6253
  {
6252
6254
  className: J1["switch-container"],
6253
6255
  "data-appearance": e,
6254
6256
  "data-disabled": l,
6255
6257
  "data-read-only": o,
6256
- "data-checked": H,
6257
- onClick: Z,
6258
+ "data-checked": v,
6259
+ onClick: H,
6258
6260
  children: [
6259
6261
  /* @__PURE__ */ n(
6260
6262
  "input",
@@ -6265,28 +6267,28 @@ const p3 = $(
6265
6267
  name: C,
6266
6268
  className: J1.switch,
6267
6269
  disabled: l,
6268
- checked: H,
6269
- onChange: V,
6270
+ checked: v,
6271
+ onChange: m,
6270
6272
  readOnly: o,
6271
6273
  style: {
6272
6274
  minHeight: to,
6273
6275
  minWidth: no
6274
6276
  },
6275
- ...p
6277
+ ...V
6276
6278
  }
6277
6279
  ),
6278
- /* @__PURE__ */ d("div", { className: J1["switch-icon-check"], "data-checked": H, children: [
6279
- r && H && /* @__PURE__ */ n(I, { name: "check", size: 16 }),
6280
- r && !H && /* @__PURE__ */ n(I, { name: "close", size: 16 })
6280
+ /* @__PURE__ */ d("div", { className: J1["switch-icon-check"], "data-checked": v, children: [
6281
+ r && v && /* @__PURE__ */ n(I, { name: "check", size: 16 }),
6282
+ r && !v && /* @__PURE__ */ n(I, { name: "close", size: 16 })
6281
6283
  ] }),
6282
6284
  t && C && /* @__PURE__ */ d("div", { className: J1["label-container"], children: [
6283
- /* @__PURE__ */ n("label", { htmlFor: C, className: z(J1["switch-label"]), children: C }),
6285
+ /* @__PURE__ */ n("label", { htmlFor: C, className: z(J1["switch-label"]), style: g, children: C }),
6284
6286
  /* @__PURE__ */ n(S1, { required: i, showLabelRequirement: c })
6285
6287
  ] })
6286
6288
  ]
6287
6289
  }
6288
6290
  );
6289
- return /* @__PURE__ */ n(G, { children: w ? /* @__PURE__ */ n(Z1, { alignment: "start", arrow: !0, label: w, position: "bottom", children: L }) : L });
6291
+ return /* @__PURE__ */ n(G, { children: w ? /* @__PURE__ */ n(Z1, { alignment: "start", arrow: !0, label: w, position: "bottom", children: p }) : p });
6290
6292
  }, ro = (C, e, t) => {
6291
6293
  if (!oo(C, e, t)) return;
6292
6294
  const r = e.getBoundingClientRect(), l = C.getBoundingClientRect();
@@ -6332,62 +6334,62 @@ const p3 = $(
6332
6334
  onClick: c,
6333
6335
  icon: a,
6334
6336
  badgeType: w = "indicator",
6335
- compactSpacing: p,
6336
- direction: H,
6337
- disabled: g,
6338
- inverted: V,
6339
- ...Z
6340
- }, L) => {
6341
- const v = {
6337
+ compactSpacing: g,
6338
+ direction: V,
6339
+ disabled: v,
6340
+ inverted: L,
6341
+ ...m
6342
+ }, H) => {
6343
+ const p = {
6342
6344
  count: o,
6343
6345
  content: s,
6344
6346
  icon: i,
6345
6347
  badgeType: w
6346
- }, x = o && o > 0 && s === "number", u = !g && (l || x || s === "icon" && i), h = q(null), [f, B] = F(null), N = (M) => {
6347
- g ? M.preventDefault() : (c(M), B((m) => ({ ...m, opacity: 0 })));
6348
+ }, _ = o && o > 0 && s === "number", u = !v && (l || _ || s === "icon" && i), h = q(null), [f, B] = F(null), N = (M) => {
6349
+ v ? M.preventDefault() : (c(M), B((Z) => ({ ...Z, opacity: 0 })));
6348
6350
  }, S = W(
6349
6351
  (M) => {
6350
- h.current && !r && B(M === "mouseover" ? (m) => ({
6351
- ...m,
6352
+ h.current && !r && B(M === "mouseover" ? (Z) => ({
6353
+ ...Z,
6352
6354
  opacity: 1
6353
- }) : (m) => ({
6354
- ...m,
6355
+ }) : (Z) => ({
6356
+ ...Z,
6355
6357
  opacity: 0
6356
6358
  }));
6357
6359
  },
6358
6360
  [r]
6359
6361
  ), y = (M) => {
6360
- const m = H === "vertical", A = m && M.key === T1, K = m && M.key === o3, D = !m && M.key === q1, U = !m && M.key === e3, P = A || D;
6362
+ const Z = V === "vertical", A = Z && M.key === T1, K = Z && M.key === o3, D = !Z && M.key === q1, U = !Z && M.key === e3, P = A || D;
6361
6363
  (P || (K || U)) && (M.preventDefault(), O(P ? "next" : "previous"));
6362
6364
  }, O = (M) => {
6363
6365
  var l1;
6364
- const m = (l1 = h.current) == null ? void 0 : l1.parentElement;
6365
- if (!m) return;
6366
- const A = Array.from(m.querySelectorAll(`.${S3.tabitem}`)), K = A.findIndex((Y) => Y === document.activeElement);
6366
+ const Z = (l1 = h.current) == null ? void 0 : l1.parentElement;
6367
+ if (!Z) return;
6368
+ const A = Array.from(Z.querySelectorAll(`.${S3.tabitem}`)), K = A.findIndex((Y) => Y === document.activeElement);
6367
6369
  let D = k(K, A.length, M), U = 0;
6368
6370
  const P = A.length;
6369
6371
  for (; A[D].getAttribute("data-disabled") === "true" && U < P; )
6370
6372
  D = k(D, A.length, M), U++;
6371
6373
  A[D].focus(), A[D].click();
6372
- }, k = (M, m, A) => A === "next" ? (M + 1) % m : (M - 1 + m) % m, b = W(() => {
6373
- h.current && !r && B(H === "horizontal" ? (M) => {
6374
- var m, A, K, D;
6374
+ }, k = (M, Z, A) => A === "next" ? (M + 1) % Z : (M - 1 + Z) % Z, b = W(() => {
6375
+ h.current && !r && B(V === "horizontal" ? (M) => {
6376
+ var Z, A, K, D;
6375
6377
  return {
6376
6378
  ...M,
6377
- width: (m = h.current) == null ? void 0 : m.offsetWidth,
6379
+ width: (Z = h.current) == null ? void 0 : Z.offsetWidth,
6378
6380
  left: ((A = h.current) == null ? void 0 : A.offsetLeft) ?? 0,
6379
6381
  top: (((K = h.current) == null ? void 0 : K.offsetTop) ?? 0) + (((D = h.current) == null ? void 0 : D.offsetHeight) ?? 0)
6380
6382
  };
6381
6383
  } : (M) => {
6382
- var m, A;
6384
+ var Z, A;
6383
6385
  return {
6384
6386
  ...M,
6385
6387
  left: 0,
6386
- top: (m = h.current) == null ? void 0 : m.offsetTop,
6388
+ top: (Z = h.current) == null ? void 0 : Z.offsetTop,
6387
6389
  height: (A = h.current) == null ? void 0 : A.offsetHeight
6388
6390
  };
6389
6391
  });
6390
- }, [r, H]);
6392
+ }, [r, V]);
6391
6393
  return E(() => {
6392
6394
  var M;
6393
6395
  return b(), window.addEventListener("resize", b), (M = h.current) != null && M.parentElement && h.current.parentElement.addEventListener("scroll", b), () => {
@@ -6395,7 +6397,7 @@ const p3 = $(
6395
6397
  };
6396
6398
  }, [b]), E(() => {
6397
6399
  var M;
6398
- h.current && B(H === "horizontal" ? {
6400
+ h.current && B(V === "horizontal" ? {
6399
6401
  width: h.current.offsetWidth,
6400
6402
  left: h.current.offsetLeft - (((M = h.current.parentElement) == null ? void 0 : M.scrollLeft) ?? 0),
6401
6403
  top: h.current.offsetTop + h.current.offsetHeight,
@@ -6406,7 +6408,7 @@ const p3 = $(
6406
6408
  height: h.current.offsetHeight,
6407
6409
  opacity: 0
6408
6410
  });
6409
- }, [H]), /* @__PURE__ */ d(G, { children: [
6411
+ }, [V]), /* @__PURE__ */ d(G, { children: [
6410
6412
  /* @__PURE__ */ d(
6411
6413
  "button",
6412
6414
  {
@@ -6415,33 +6417,33 @@ const p3 = $(
6415
6417
  role: "tab",
6416
6418
  "aria-selected": r,
6417
6419
  "aria-controls": e,
6418
- "aria-disabled": g,
6420
+ "aria-disabled": v,
6419
6421
  tabIndex: r ? 0 : -1,
6420
6422
  "data-selected": r,
6421
- "data-disabled": g,
6422
- "data-direction": H,
6423
- "data-inverted": V,
6423
+ "data-disabled": v,
6424
+ "data-direction": V,
6425
+ "data-inverted": L,
6424
6426
  onClick: N,
6425
- "data-compact-spacing": p,
6427
+ "data-compact-spacing": g,
6426
6428
  ref: (M) => {
6427
- h.current = M, typeof L == "function" ? L(M) : L && (L.current = M);
6429
+ h.current = M, typeof H == "function" ? H(M) : H && (H.current = M);
6428
6430
  },
6429
6431
  onKeyDown: y,
6430
6432
  onMouseEnter: () => S("mouseover"),
6431
6433
  onMouseLeave: () => S("mouseleave"),
6432
6434
  ...r && { "data-testid": "tabitem-selected" },
6433
- ...Z,
6435
+ ...m,
6434
6436
  children: [
6435
6437
  a && /* @__PURE__ */ n(I, { name: a, appearance: r ? "filled" : "outlined" }),
6436
6438
  t && /* @__PURE__ */ n("span", { children: t }),
6437
- u && /* @__PURE__ */ n(r1, { ...v })
6439
+ u && /* @__PURE__ */ n(r1, { ...p })
6438
6440
  ]
6439
6441
  }
6440
6442
  ),
6441
6443
  /* @__PURE__ */ n(
6442
6444
  "span",
6443
6445
  {
6444
- "data-disabled": g,
6446
+ "data-disabled": v,
6445
6447
  className: S3["segment-hover-indicator"],
6446
6448
  style: {
6447
6449
  width: f == null ? void 0 : f.width,
@@ -6465,30 +6467,30 @@ const p3 = $(
6465
6467
  overflowType: s = "scrollable",
6466
6468
  inverted: i = !1
6467
6469
  }, c) => {
6468
- const [a, w] = F(!1), [p, H] = F(!1), [g, V] = F(!1), [Z, L] = F(!1), [v, x] = F(!1), [_, u] = F(!1), h = q(null), f = w6(
6470
+ const [a, w] = F(!1), [g, V] = F(!1), [v, L] = F(!1), [m, H] = F(!1), [p, _] = F(!1), [x, u] = F(!1), h = q(null), f = w6(
6469
6471
  h,
6470
6472
  l,
6471
6473
  t === "horizontal" ? "bottom" : "left"
6472
- ), N = t === "horizontal" && (a || p) && s === "dropdown", S = W(() => {
6474
+ ), N = t === "horizontal" && (a || g) && s === "dropdown", S = W(() => {
6473
6475
  if (h.current) {
6474
- const M = h.current.offsetWidth < h.current.scrollWidth || h.current.offsetHeight < h.current.scrollHeight, m = h.current.scrollLeft > 0, A = h.current.scrollWidth - h.current.clientWidth - h.current.scrollLeft > 0, K = h.current.scrollTop > 0, D = h.current.scrollHeight - h.current.clientHeight - h.current.scrollTop > 0;
6475
- w(m), H(A), L(K), V(D), x(M);
6476
+ const M = h.current.offsetWidth < h.current.scrollWidth || h.current.offsetHeight < h.current.scrollHeight, Z = h.current.scrollLeft > 0, A = h.current.scrollWidth - h.current.clientWidth - h.current.scrollLeft > 0, K = h.current.scrollTop > 0, D = h.current.scrollHeight - h.current.clientHeight - h.current.scrollTop > 0;
6477
+ w(Z), V(A), H(K), L(D), _(M);
6476
6478
  }
6477
6479
  }, [h]);
6478
6480
  E(() => {
6479
6481
  var M;
6480
6482
  return S(), window.addEventListener("resize", S), (M = h.current) == null || M.addEventListener("scroll", S), () => {
6481
- var m;
6482
- window.removeEventListener("resize", S), (m = h.current) == null || m.removeEventListener("scroll", S);
6483
+ var Z;
6484
+ window.removeEventListener("resize", S), (Z = h.current) == null || Z.removeEventListener("scroll", S);
6483
6485
  };
6484
6486
  }, [S]), E(() => {
6485
6487
  !l && C.length > 0 && e(C[0].id);
6486
6488
  }, [l, C, e]);
6487
6489
  const y = (M) => {
6488
- const m = M.currentTarget, A = m.getAttribute("id") || "";
6490
+ const Z = M.currentTarget, A = Z.getAttribute("id") || "";
6489
6491
  e(A), u(!1);
6490
6492
  const K = h.current;
6491
- K && ro(m, K, t);
6493
+ K && ro(Z, K, t);
6492
6494
  }, O = () => {
6493
6495
  if (h.current) {
6494
6496
  const M = t === "horizontal" ? { left: -300 } : { top: -300 };
@@ -6509,7 +6511,7 @@ const p3 = $(
6509
6511
  role: "presentation",
6510
6512
  "data-direction": t,
6511
6513
  "data-compact-spacing": o,
6512
- "data-scrollable": v && s === "scrollable" ? !0 : void 0
6514
+ "data-scrollable": p && s === "scrollable" ? !0 : void 0
6513
6515
  }
6514
6516
  ),
6515
6517
  /* @__PURE__ */ d(
@@ -6522,7 +6524,7 @@ const p3 = $(
6522
6524
  flexDirection: t === "horizontal" ? "row" : "column"
6523
6525
  },
6524
6526
  children: [
6525
- v && !N && /* @__PURE__ */ n(
6527
+ p && !N && /* @__PURE__ */ n(
6526
6528
  H1,
6527
6529
  {
6528
6530
  name: t === "horizontal" ? "arrow-chevron-left" : "arrow-chevron-up",
@@ -6530,8 +6532,8 @@ const p3 = $(
6530
6532
  variant: "transparent",
6531
6533
  style: {
6532
6534
  zIndex: 11,
6533
- opacity: a || Z ? 1 : 0,
6534
- pointerEvents: a || Z ? "auto" : "none"
6535
+ opacity: a || m ? 1 : 0,
6536
+ pointerEvents: a || m ? "auto" : "none"
6535
6537
  },
6536
6538
  onClick: O
6537
6539
  }
@@ -6545,7 +6547,7 @@ const p3 = $(
6545
6547
  role: "tablist",
6546
6548
  "aria-label": "Sample Tabs",
6547
6549
  className: K1.tab,
6548
- "data-alignment": v ? "start" : r,
6550
+ "data-alignment": p ? "start" : r,
6549
6551
  "data-direction": t,
6550
6552
  "data-overflow-type": s,
6551
6553
  children: [
@@ -6591,8 +6593,8 @@ const p3 = $(
6591
6593
  ]
6592
6594
  }
6593
6595
  ),
6594
- isOpen: _,
6595
- children: C.filter((M) => M.id !== l).map((M, m) => /* @__PURE__ */ n(
6596
+ isOpen: x,
6597
+ children: C.filter((M) => M.id !== l).map((M, Z) => /* @__PURE__ */ n(
6596
6598
  s3,
6597
6599
  {
6598
6600
  id: M.id,
@@ -6606,11 +6608,11 @@ const p3 = $(
6606
6608
  badgeType: M.badgeType,
6607
6609
  showBadge: !0
6608
6610
  },
6609
- `${M.id}-dropdown-${m}`
6611
+ `${M.id}-dropdown-${Z}`
6610
6612
  ))
6611
6613
  }
6612
6614
  ),
6613
- C.map((M, m) => /* @__PURE__ */ n(
6615
+ C.map((M, Z) => /* @__PURE__ */ n(
6614
6616
  ao,
6615
6617
  {
6616
6618
  onClick: y,
@@ -6621,12 +6623,12 @@ const p3 = $(
6621
6623
  inverted: i,
6622
6624
  ...M
6623
6625
  },
6624
- `${M.id}-${m}`
6626
+ `${M.id}-${Z}`
6625
6627
  ))
6626
6628
  ]
6627
6629
  }
6628
6630
  ),
6629
- v && !N && /* @__PURE__ */ n(
6631
+ p && !N && /* @__PURE__ */ n(
6630
6632
  H1,
6631
6633
  {
6632
6634
  name: t === "horizontal" ? "arrow-chevron-right" : "arrow-chevron-down",
@@ -6634,8 +6636,8 @@ const p3 = $(
6634
6636
  variant: "transparent",
6635
6637
  style: {
6636
6638
  zIndex: 11,
6637
- opacity: p || g ? 1 : 0,
6638
- pointerEvents: p || g ? "auto" : "none"
6639
+ opacity: g || v ? 1 : 0,
6640
+ pointerEvents: g || v ? "auto" : "none"
6639
6641
  },
6640
6642
  onClick: k
6641
6643
  }
@@ -6651,7 +6653,7 @@ const p3 = $(
6651
6653
  role: "presentation",
6652
6654
  "data-direction": t,
6653
6655
  "data-compact-spacing": o,
6654
- "data-scrollable": v && s === "scrollable" ? !0 : void 0
6656
+ "data-scrollable": p && s === "scrollable" ? !0 : void 0
6655
6657
  }
6656
6658
  )
6657
6659
  ] });
@@ -6702,37 +6704,37 @@ const p3 = $(
6702
6704
  labelPosition: c = "top",
6703
6705
  assistiveTextLabel: a,
6704
6706
  assistiveTextAppearance: w = "description",
6705
- ["aria-labelledby"]: p,
6706
- assistiveTextLink: H,
6707
- showLabelRequirement: g = !1,
6708
- resizeable: V = "true",
6709
- maxLength: Z,
6710
- defaultValue: L,
6711
- showCounter: v,
6712
- value: x,
6713
- tooltipTextLabel: _,
6707
+ ["aria-labelledby"]: g,
6708
+ assistiveTextLink: V,
6709
+ showLabelRequirement: v = !1,
6710
+ resizeable: L = "true",
6711
+ maxLength: m,
6712
+ defaultValue: H,
6713
+ showCounter: p,
6714
+ value: _,
6715
+ tooltipTextLabel: x,
6714
6716
  ...u
6715
6717
  }, h) => {
6716
- const [f, B] = F((x == null ? void 0 : x.length) || (L == null ? void 0 : L.length) || 0), N = q(null), S = v && Z, y = (b) => {
6718
+ const [f, B] = F((_ == null ? void 0 : _.length) || (H == null ? void 0 : H.length) || 0), N = q(null), S = p && m, y = (b) => {
6717
6719
  var M;
6718
6720
  o && o(b), (M = N.current) == null || M.scrollTo({ top: 0 });
6719
6721
  }, O = (b) => {
6720
- l && l(b), Z && B(b.target.value.length);
6722
+ l && l(b), m && B(b.target.value.length);
6721
6723
  }, k = /* @__PURE__ */ d("div", { className: B1.container, "data-label-position": c, children: [
6722
6724
  s && c === "side" && /* @__PURE__ */ d("label", { id: i, className: B1.label, htmlFor: e, "data-label-position": c, children: [
6723
6725
  s,
6724
- /* @__PURE__ */ n(S1, { required: r, showLabelRequirement: g })
6726
+ /* @__PURE__ */ n(S1, { required: r, showLabelRequirement: v })
6725
6727
  ] }),
6726
6728
  /* @__PURE__ */ d("div", { className: B1["top-position-container"], "data-label-position": c, children: [
6727
6729
  /* @__PURE__ */ d("div", { className: B1["header-container"], "data-label-position": c, children: [
6728
6730
  s && c === "top" && /* @__PURE__ */ d("label", { id: i, className: B1.label, htmlFor: e, "data-label-position": c, children: [
6729
6731
  s,
6730
- /* @__PURE__ */ n(S1, { required: r, showLabelRequirement: g })
6732
+ /* @__PURE__ */ n(S1, { required: r, showLabelRequirement: v })
6731
6733
  ] }),
6732
6734
  S && /* @__PURE__ */ d("span", { className: B1["character-counter"], children: [
6733
6735
  f,
6734
6736
  "/",
6735
- Z
6737
+ m
6736
6738
  ] })
6737
6739
  ] }),
6738
6740
  /* @__PURE__ */ d("div", { className: B1["textarea-container"], "data-label-position": c, children: [
@@ -6745,14 +6747,14 @@ const p3 = $(
6745
6747
  id: e,
6746
6748
  name: t,
6747
6749
  className: z(B1.textarea, C),
6748
- "data-resizeable": V,
6750
+ "data-resizeable": L,
6749
6751
  "data-assistive-text-appearance": w,
6750
6752
  onChange: O,
6751
- "aria-labelledby": i || p,
6752
- maxLength: Z,
6753
+ "aria-labelledby": i || g,
6754
+ maxLength: m,
6753
6755
  onBlur: y,
6754
- defaultValue: L,
6755
- value: x,
6756
+ defaultValue: H,
6757
+ value: _,
6756
6758
  ...u
6757
6759
  }
6758
6760
  ),
@@ -6762,13 +6764,13 @@ const p3 = $(
6762
6764
  label: a,
6763
6765
  appearance: w,
6764
6766
  showIcon: !0,
6765
- href: H
6767
+ href: V
6766
6768
  }
6767
6769
  )
6768
6770
  ] })
6769
6771
  ] })
6770
6772
  ] });
6771
- return /* @__PURE__ */ n(G, { children: _ ? /* @__PURE__ */ n(Z1, { alignment: "start", arrow: !0, label: _, position: "bottom", children: k }) : k });
6773
+ return /* @__PURE__ */ n(G, { children: x ? /* @__PURE__ */ n(Z1, { alignment: "start", arrow: !0, label: x, position: "bottom", children: k }) : k });
6772
6774
  }
6773
6775
  );
6774
6776
  let w3;
@@ -6841,42 +6843,42 @@ const V6 = Q3(null), L6 = () => {
6841
6843
  onActionButtonClick: c,
6842
6844
  duration: a = "medium",
6843
6845
  onClose: w,
6844
- iconName: p,
6845
- showLeftIcon: H = !0,
6846
- showActionButton: g = !0,
6847
- ...V
6848
- }, Z) => {
6849
- const L = !!i && g, v = s && !L, [x] = F(C || Lo()), { isInternalOpen: _, hideToast: u } = Mo(x, o), { addToQueue: h, removeFromQueue: f } = L6(), { shouldRender: B, isAnimating: N } = R1(_, 300), { initializeTimer: S, removeTimer: y } = _o(
6850
- { shouldStartTimer: v && _, duration: a },
6846
+ iconName: g,
6847
+ showLeftIcon: V = !0,
6848
+ showActionButton: v = !0,
6849
+ ...L
6850
+ }, m) => {
6851
+ const H = !!i && v, p = s && !H, [_] = F(C || Lo()), { isInternalOpen: x, hideToast: u } = Mo(_, o), { addToQueue: h, removeFromQueue: f } = L6(), { shouldRender: B, isAnimating: N } = R1(x, 300), { initializeTimer: S, removeTimer: y } = _o(
6852
+ { shouldStartTimer: p && x, duration: a },
6851
6853
  () => {
6852
6854
  b();
6853
6855
  }
6854
6856
  ), [O, k] = l.split("-"), b = W(() => {
6855
- u(), y(), f(x), w == null || w();
6856
- }, [u, y, f, x, w]);
6857
+ u(), y(), f(_), w == null || w();
6858
+ }, [u, y, f, _, w]);
6857
6859
  E(() => {
6858
- o ? h({ id: x, hasActionButton: L, type: t }) : b();
6859
- }, [o, L, t, v, x, h, b]);
6860
+ o ? h({ id: _, hasActionButton: H, type: t }) : b();
6861
+ }, [o, H, t, p, _, h, b]);
6860
6862
  const M = () => {
6861
6863
  b();
6862
- }, m = (U) => {
6863
- U.stopPropagation(), v && o && y();
6864
+ }, Z = (U) => {
6865
+ U.stopPropagation(), p && o && y();
6864
6866
  }, A = (U) => {
6865
- U.stopPropagation(), v && S();
6866
- }, K = H && t !== "neutral", D = H && p && G1(p);
6867
+ U.stopPropagation(), p && S();
6868
+ }, K = V && t !== "neutral", D = V && g && G1(g);
6867
6869
  return B && /* @__PURE__ */ n(Q1, { children: /* @__PURE__ */ d(
6868
6870
  "div",
6869
6871
  {
6870
6872
  role: "status",
6871
- className: z(C3.toast, V.className),
6873
+ className: z(C3.toast, L.className),
6872
6874
  "data-type": t,
6873
6875
  "data-position": O,
6874
6876
  "data-alignment": k,
6875
6877
  "data-open": N || void 0,
6876
- ref: Z,
6877
- onMouseOver: m,
6878
+ ref: m,
6879
+ onMouseOver: Z,
6878
6880
  onMouseOut: A,
6879
- ...V,
6881
+ ...L,
6880
6882
  children: [
6881
6883
  /* @__PURE__ */ d("div", { className: C3["toast-content"], children: [
6882
6884
  K ? /* @__PURE__ */ n(
@@ -6887,10 +6889,10 @@ const V6 = Q3(null), L6 = () => {
6887
6889
  className: C3["toast-icon"],
6888
6890
  "aria-hidden": "true"
6889
6891
  }
6890
- ) : D && /* @__PURE__ */ n(I, { name: p, size: b1.xl, className: C3["toast-icon"], "aria-hidden": "true" }),
6892
+ ) : D && /* @__PURE__ */ n(I, { name: g, size: b1.xl, className: C3["toast-icon"], "aria-hidden": "true" }),
6891
6893
  /* @__PURE__ */ n("span", { className: C3["toast-message"], children: e })
6892
6894
  ] }),
6893
- L && /* @__PURE__ */ n(
6895
+ H && /* @__PURE__ */ n(
6894
6896
  h3,
6895
6897
  {
6896
6898
  variant: t === "neutral" ? "reverse" : "transparent",
@@ -6942,7 +6944,7 @@ const V6 = Q3(null), L6 = () => {
6942
6944
  }, Xo = ({ children: C }) => {
6943
6945
  const [e, t] = F([]), r = W((i) => {
6944
6946
  const c = bo(i);
6945
- t((a) => [...a, { id: i.id, priority: c, isOpen: !1 }].sort((w, p) => w.priority - p.priority));
6947
+ t((a) => [...a, { id: i.id, priority: c, isOpen: !1 }].sort((w, g) => w.priority - g.priority));
6946
6948
  }, []), l = W((i) => {
6947
6949
  t((c) => c.filter((a) => a.id !== i));
6948
6950
  }, []), o = (i) => e.length > 0 && e[0].id === i, s = (i) => e.findIndex((c) => c.id === i) !== -1;