@telefonica/mistica 16.53.0 → 16.55.0

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.
Files changed (240) hide show
  1. package/css/blau.css +4 -0
  2. package/css/esimflag.css +4 -0
  3. package/css/mistica.css +1 -1
  4. package/css/movistar-new.css +5 -1
  5. package/css/movistar.css +4 -0
  6. package/css/o2-new.css +25 -21
  7. package/css/o2.css +4 -0
  8. package/css/telefonica.css +9 -5
  9. package/css/tu.css +4 -0
  10. package/css/vivo-new.css +25 -21
  11. package/css/vivo.css +4 -0
  12. package/dist/accordion.css-mistica.js +7 -7
  13. package/dist/align.css-mistica.js +1 -1
  14. package/dist/autocomplete.css-mistica.js +4 -4
  15. package/dist/avatar.css-mistica.js +1 -1
  16. package/dist/badge.css-mistica.js +3 -3
  17. package/dist/box.css-mistica.js +13 -13
  18. package/dist/box.d.ts +1 -0
  19. package/dist/box.js +17 -15
  20. package/dist/boxed.css-mistica.js +24 -24
  21. package/dist/button-group.css-mistica.js +3 -3
  22. package/dist/button-layout.css-mistica.js +14 -14
  23. package/dist/button.css-mistica.js +43 -43
  24. package/dist/callout.css-mistica.js +11 -11
  25. package/dist/card-internal.css-mistica.js +25 -22
  26. package/dist/card-internal.css.d.ts +1 -0
  27. package/dist/card-internal.d.ts +1 -1
  28. package/dist/card-internal.js +119 -118
  29. package/dist/carousel.css-mistica.js +23 -23
  30. package/dist/checkbox.css-mistica.js +17 -17
  31. package/dist/chip.css-mistica.js +20 -20
  32. package/dist/circle.css-mistica.js +1 -1
  33. package/dist/community/advanced-data-card.css-mistica.js +18 -18
  34. package/dist/community/blocks.css-mistica.js +2 -2
  35. package/dist/community/example-component.css-mistica.js +2 -2
  36. package/dist/counter.css-mistica.js +4 -4
  37. package/dist/cover-hero.css-mistica.js +11 -11
  38. package/dist/credit-card-number-field.css-mistica.js +3 -3
  39. package/dist/date-field.css-mistica.js +1 -1
  40. package/dist/date-time-picker.css-mistica.js +1 -1
  41. package/dist/dialog.css-mistica.js +7 -7
  42. package/dist/divider.css-mistica.js +5 -5
  43. package/dist/double-field.css-mistica.js +4 -4
  44. package/dist/drawer.css-mistica.js +11 -11
  45. package/dist/empty-state-card.css-mistica.js +1 -1
  46. package/dist/empty-state.css-mistica.js +5 -5
  47. package/dist/fade-in.css-mistica.js +1 -1
  48. package/dist/feedback.css-mistica.js +4 -4
  49. package/dist/file-upload.css-mistica.js +11 -11
  50. package/dist/fixed-footer-layout.css-mistica.js +11 -11
  51. package/dist/form.css-mistica.js +2 -2
  52. package/dist/grid-layout.css-mistica.js +3 -3
  53. package/dist/grid.css-mistica.js +120 -120
  54. package/dist/header.css-mistica.js +1 -1
  55. package/dist/hero.css-mistica.js +4 -4
  56. package/dist/horizontal-scroll.css-mistica.js +1 -1
  57. package/dist/icon-button.css-mistica.js +56 -56
  58. package/dist/icons/icon-chevron.css-mistica.js +2 -2
  59. package/dist/icons/icon-error.css-mistica.js +1 -1
  60. package/dist/image.css-mistica.js +2 -2
  61. package/dist/inline.css-mistica.js +9 -9
  62. package/dist/list.css-mistica.js +15 -15
  63. package/dist/loading-bar.css-mistica.js +1 -1
  64. package/dist/loading-screen.css-mistica.js +10 -10
  65. package/dist/logo.css-mistica.js +5 -5
  66. package/dist/media-queries.css-mistica.js +13 -6
  67. package/dist/media-queries.css.d.ts +3 -0
  68. package/dist/menu.css-mistica.js +16 -16
  69. package/dist/mosaic.css-mistica.js +1 -1
  70. package/dist/navigation-bar.css-mistica.js +38 -38
  71. package/dist/navigation-bar.d.ts +3 -1
  72. package/dist/navigation-bar.js +408 -383
  73. package/dist/navigation-breadcrumbs.css-mistica.js +3 -3
  74. package/dist/package-version.js +1 -1
  75. package/dist/pin-field.css-mistica.js +5 -5
  76. package/dist/popover.css-mistica.js +1 -1
  77. package/dist/progress-bar.css-mistica.js +6 -6
  78. package/dist/radio-button.css-mistica.js +24 -24
  79. package/dist/rating.css-mistica.js +2 -2
  80. package/dist/responsive-layout.css-mistica.js +7 -7
  81. package/dist/responsive-layout.css.d.ts +2 -1
  82. package/dist/screen-reader-only.css-mistica.js +2 -2
  83. package/dist/screen-size-context-provider.js +25 -19
  84. package/dist/screen-size-context.d.ts +2 -0
  85. package/dist/screen-size-context.js +2 -1
  86. package/dist/select.css-mistica.js +21 -21
  87. package/dist/sheet-action-row.css-mistica.js +2 -2
  88. package/dist/sheet-common.css-mistica.js +4 -4
  89. package/dist/sheet-info.css-mistica.js +1 -1
  90. package/dist/sheet-radio-list.d.ts +5 -0
  91. package/dist/sheet-radio-list.js +18 -13
  92. package/dist/sheet-types.d.ts +5 -0
  93. package/dist/skeletons.css-mistica.js +6 -6
  94. package/dist/skins/blau.js +2 -0
  95. package/dist/skins/esimflag.js +2 -0
  96. package/dist/skins/movistar-new.js +5 -3
  97. package/dist/skins/movistar.js +2 -0
  98. package/dist/skins/o2-new.js +12 -10
  99. package/dist/skins/o2.js +2 -0
  100. package/dist/skins/skin-contract.css-mistica.js +684 -682
  101. package/dist/skins/skin-contract.css.d.ts +2 -0
  102. package/dist/skins/telefonica.js +15 -13
  103. package/dist/skins/tu.js +2 -0
  104. package/dist/skins/types/colors.d.ts +1 -0
  105. package/dist/skins/vivo-new.js +12 -10
  106. package/dist/skins/vivo.js +2 -0
  107. package/dist/skip-link.css-mistica.js +2 -2
  108. package/dist/slider.css-mistica.js +24 -24
  109. package/dist/snackbar.css-mistica.js +8 -8
  110. package/dist/spinner.css-mistica.js +1 -1
  111. package/dist/square.css-mistica.js +1 -1
  112. package/dist/stack.css-mistica.js +5 -5
  113. package/dist/stacking-group.css-mistica.js +1 -1
  114. package/dist/stepper.css-mistica.js +7 -7
  115. package/dist/switch-component.css-mistica.js +40 -40
  116. package/dist/table.css-mistica.js +9 -9
  117. package/dist/tabs.css-mistica.js +22 -22
  118. package/dist/tag.css-mistica.js +4 -4
  119. package/dist/text-field-base.css-mistica.js +20 -20
  120. package/dist/text-field-components.css-mistica.js +12 -12
  121. package/dist/text-link.css-mistica.js +6 -6
  122. package/dist/text.css-mistica.js +6 -6
  123. package/dist/theme-context.css-mistica.js +1 -1
  124. package/dist/timeline.css-mistica.js +11 -11
  125. package/dist/timer.css-mistica.js +6 -6
  126. package/dist/tooltip.css-mistica.js +5 -5
  127. package/dist/touchable.css-mistica.js +1 -1
  128. package/dist/utils/aspect-ratio-support.css-mistica.js +5 -5
  129. package/dist/video.css-mistica.js +1 -1
  130. package/dist/vivinho-loading-animation/vivinho-loading-animation.css-mistica.js +1 -1
  131. package/dist-es/accordion.css-mistica.js +7 -7
  132. package/dist-es/align.css-mistica.js +1 -1
  133. package/dist-es/autocomplete.css-mistica.js +2 -2
  134. package/dist-es/avatar.css-mistica.js +1 -1
  135. package/dist-es/badge.css-mistica.js +2 -2
  136. package/dist-es/box.css-mistica.js +13 -13
  137. package/dist-es/box.js +25 -23
  138. package/dist-es/boxed.css-mistica.js +23 -23
  139. package/dist-es/button-group.css-mistica.js +2 -2
  140. package/dist-es/button-layout.css-mistica.js +14 -14
  141. package/dist-es/button.css-mistica.js +34 -34
  142. package/dist-es/callout.css-mistica.js +11 -11
  143. package/dist-es/card-internal.css-mistica.js +17 -17
  144. package/dist-es/card-internal.js +163 -162
  145. package/dist-es/carousel.css-mistica.js +9 -9
  146. package/dist-es/checkbox.css-mistica.js +13 -13
  147. package/dist-es/chip.css-mistica.js +17 -17
  148. package/dist-es/circle.css-mistica.js +1 -1
  149. package/dist-es/community/advanced-data-card.css-mistica.js +7 -7
  150. package/dist-es/community/blocks.css-mistica.js +2 -2
  151. package/dist-es/community/example-component.css-mistica.js +2 -2
  152. package/dist-es/counter.css-mistica.js +2 -2
  153. package/dist-es/cover-hero.css-mistica.js +4 -4
  154. package/dist-es/credit-card-number-field.css-mistica.js +3 -3
  155. package/dist-es/date-field.css-mistica.js +1 -1
  156. package/dist-es/date-time-picker.css-mistica.js +1 -1
  157. package/dist-es/dialog.css-mistica.js +5 -5
  158. package/dist-es/divider.css-mistica.js +5 -5
  159. package/dist-es/double-field.css-mistica.js +4 -4
  160. package/dist-es/drawer.css-mistica.js +2 -2
  161. package/dist-es/empty-state-card.css-mistica.js +1 -1
  162. package/dist-es/empty-state.css-mistica.js +5 -5
  163. package/dist-es/fade-in.css-mistica.js +1 -1
  164. package/dist-es/feedback.css-mistica.js +2 -2
  165. package/dist-es/file-upload.css-mistica.js +8 -8
  166. package/dist-es/fixed-footer-layout.css-mistica.js +4 -4
  167. package/dist-es/form.css-mistica.js +2 -2
  168. package/dist-es/grid-layout.css-mistica.js +3 -3
  169. package/dist-es/grid.css-mistica.js +120 -120
  170. package/dist-es/header.css-mistica.js +1 -1
  171. package/dist-es/hero.css-mistica.js +3 -3
  172. package/dist-es/horizontal-scroll.css-mistica.js +1 -1
  173. package/dist-es/icon-button.css-mistica.js +55 -55
  174. package/dist-es/icons/icon-chevron.css-mistica.js +2 -2
  175. package/dist-es/icons/icon-error.css-mistica.js +1 -1
  176. package/dist-es/image.css-mistica.js +2 -2
  177. package/dist-es/inline.css-mistica.js +9 -9
  178. package/dist-es/list.css-mistica.js +2 -2
  179. package/dist-es/loading-bar.css-mistica.js +1 -1
  180. package/dist-es/loading-screen.css-mistica.js +5 -5
  181. package/dist-es/logo.css-mistica.js +5 -5
  182. package/dist-es/media-queries.css-mistica.js +3 -2
  183. package/dist-es/menu.css-mistica.js +14 -14
  184. package/dist-es/mosaic.css-mistica.js +1 -1
  185. package/dist-es/navigation-bar.css-mistica.js +20 -20
  186. package/dist-es/navigation-bar.js +524 -499
  187. package/dist-es/navigation-breadcrumbs.css-mistica.js +2 -2
  188. package/dist-es/package-version.js +1 -1
  189. package/dist-es/pin-field.css-mistica.js +2 -2
  190. package/dist-es/popover.css-mistica.js +1 -1
  191. package/dist-es/progress-bar.css-mistica.js +6 -6
  192. package/dist-es/radio-button.css-mistica.js +21 -21
  193. package/dist-es/rating.css-mistica.js +2 -2
  194. package/dist-es/responsive-layout.css-mistica.js +7 -7
  195. package/dist-es/screen-reader-only.css-mistica.js +2 -2
  196. package/dist-es/screen-size-context-provider.js +35 -29
  197. package/dist-es/screen-size-context.js +2 -1
  198. package/dist-es/select.css-mistica.js +18 -18
  199. package/dist-es/sheet-action-row.css-mistica.js +2 -2
  200. package/dist-es/sheet-common.css-mistica.js +2 -2
  201. package/dist-es/sheet-info.css-mistica.js +1 -1
  202. package/dist-es/sheet-radio-list.js +31 -26
  203. package/dist-es/skeletons.css-mistica.js +6 -6
  204. package/dist-es/skins/blau.js +2 -0
  205. package/dist-es/skins/esimflag.js +2 -0
  206. package/dist-es/skins/movistar-new.js +5 -3
  207. package/dist-es/skins/movistar.js +2 -0
  208. package/dist-es/skins/o2-new.js +12 -10
  209. package/dist-es/skins/o2.js +2 -0
  210. package/dist-es/skins/skin-contract.css-mistica.js +684 -682
  211. package/dist-es/skins/telefonica.js +15 -13
  212. package/dist-es/skins/tu.js +2 -0
  213. package/dist-es/skins/vivo-new.js +12 -10
  214. package/dist-es/skins/vivo.js +2 -0
  215. package/dist-es/skip-link.css-mistica.js +2 -2
  216. package/dist-es/slider.css-mistica.js +19 -19
  217. package/dist-es/snackbar.css-mistica.js +5 -5
  218. package/dist-es/spinner.css-mistica.js +1 -1
  219. package/dist-es/square.css-mistica.js +1 -1
  220. package/dist-es/stack.css-mistica.js +5 -5
  221. package/dist-es/stacking-group.css-mistica.js +1 -1
  222. package/dist-es/stepper.css-mistica.js +3 -3
  223. package/dist-es/style.css +1 -1
  224. package/dist-es/switch-component.css-mistica.js +37 -37
  225. package/dist-es/table.css-mistica.js +9 -9
  226. package/dist-es/tabs.css-mistica.js +19 -19
  227. package/dist-es/tag.css-mistica.js +2 -2
  228. package/dist-es/text-field-base.css-mistica.js +17 -17
  229. package/dist-es/text-field-components.css-mistica.js +4 -4
  230. package/dist-es/text-link.css-mistica.js +6 -6
  231. package/dist-es/text.css-mistica.js +6 -6
  232. package/dist-es/theme-context.css-mistica.js +1 -1
  233. package/dist-es/timeline.css-mistica.js +10 -10
  234. package/dist-es/timer.css-mistica.js +6 -6
  235. package/dist-es/tooltip.css-mistica.js +2 -2
  236. package/dist-es/touchable.css-mistica.js +1 -1
  237. package/dist-es/utils/aspect-ratio-support.css-mistica.js +3 -3
  238. package/dist-es/video.css-mistica.js +1 -1
  239. package/dist-es/vivinho-loading-animation/vivinho-loading-animation.css-mistica.js +1 -1
  240. package/package.json +3 -3
@@ -78,137 +78,139 @@ function _object_without_properties_loose(source, excluded) {
78
78
  }
79
79
  return target;
80
80
  }
81
- import { jsx as e, jsxs as b, Fragment as ue } from "react/jsx-runtime";
81
+ import { jsx as e, jsxs as N, Fragment as le } from "react/jsx-runtime";
82
82
  import * as o from "react";
83
- import { CSSTransition as Ee } from "react-transition-group";
84
- import D from "classnames";
85
- import Q, { ResetResponsiveLayout as le } from "./responsive-layout.js";
86
- import X from "./inline.js";
87
- import Ae, { BaseTouchable as J } from "./touchable.js";
88
- import { Text3 as de, Text2 as me } from "./text.js";
89
- import { useTheme as w, useScreenSize as pe } from "./hooks.js";
90
- import Re from "./generated/mistica-icons/icon-menu-regular.js";
91
- import Te from "./generated/mistica-icons/icon-close-regular.js";
92
- import xe from "./generated/mistica-icons/icon-chevron-left-regular.js";
93
- import { IconButton as Le } from "./icon-button.js";
94
- import { RowList as fe, Row as ge } from "./list.js";
95
- import { ThemeVariant as F, normalizeVariant as ee, useThemeVariant as ye } from "./theme-variant-context.js";
96
- import he from "./focus-trap.js";
97
- import { Portal as De } from "./portal.js";
98
- import Pe from "./grid-layout.js";
99
- import { useSetModalState as He } from "./modal-context-provider.js";
100
- import { Logo as ve } from "./logo.js";
101
- import { vars as y } from "./skins/skin-contract.css-mistica.js";
102
- import { spacer as ne, burgerMenuButton as _e, logoContainer as we, spacerLarge as Fe, lineHeightFix as Me, navigationBarAction as $e, textWrapperVariants as Se, navigationBarContentRightExpanded as Ve, navigationBarContentRight as We, navigationBarContent as Ge, desktopOnly as $, topFixed as Ue, desktopMenuWrapper as Xe, desktopMenuBackgroundContainer as ze, mainNavigationBarContentWrapper as Ke, burgerIconContainer as qe, iconCloseOpen as je, iconCloseHidden as Ye, iconMenuHidden as Ze, iconMenuOpen as Je, DESKTOP_MENU_ANIMATION_DURATION_MS as be, BURGER_MENU_ANIMATION_DURATION_MS as Qe, burgerMenuTransition as en, burgerMenu as nn, burgerMenuContainer as tn, burgerMenuContentContainer as re, navbarBorderColorVariants as Z, mainNavBarSectionsContainer as on, desktopMenuSectionWithArrowWrapper as an, section as rn, selectedSectionVariants as sn, desktopMenuSectionContainer as cn, desktopMenuLastSection as un, desktopMenuFirstSection as ln, desktopMenuSectionArrowContainer as dn, desktopMenuSectionArrow as mn, DESKTOP_SMALL_MENU_WIDTH as se, desktopMenuContainer as pn, desktopMenu as fn, desktopMenuContentFadeIn as gn, desktopSmallMenuContainer as hn, desktopMenuColumnItem as vn } from "./navigation-bar.css-mistica.js";
103
- import { getPrefixedDataAttributes as Mn, cancelEvent as W } from "./utils/dom.js";
104
- import _ from "./stack.js";
105
- import z from "./box.js";
106
- import { isRunningAcceptanceTest as te } from "./utils/platform.js";
107
- import { backNavigationBar as oe, closeNavigationMenu as Sn, openNavigationMenu as bn, mainNavigationBarSectionSeeAll as Nn, mainNavigationBarOpenSectionMenu as ce } from "./text-tokens.js";
108
- import { NAVBAR_HEIGHT_DESKTOP_LARGE as K, NAVBAR_HEIGHT_DESKTOP as q } from "./theme.js";
109
- import Bn from "./text-link.js";
110
- import { Title3 as Cn, Title1 as kn } from "./title.js";
111
- import { ButtonLink as In } from "./button.js";
112
- import { Grid as On, GridItem as En } from "./grid.js";
113
- import { ESC as An, UP as Ne, DOWN as Be } from "./utils/keys.js";
114
- import { debounce as Rn, isEqual as Tn } from "./utils/helpers.js";
115
- import xn from "./negative-box.js";
116
- const Ln = 120, yn = (param)=>{
117
- let { size: n = 24, color: t = y.colors.neutralHigh, style: a, className: r } = param;
83
+ import { CSSTransition as Ae } from "react-transition-group";
84
+ import H from "classnames";
85
+ import ee, { ResetResponsiveLayout as de } from "./responsive-layout.js";
86
+ import q from "./inline.js";
87
+ import Re, { BaseTouchable as Q } from "./touchable.js";
88
+ import { Text3 as me, Text2 as pe } from "./text.js";
89
+ import { useTheme as $, useScreenSize as fe, useElementDimensions as Te } from "./hooks.js";
90
+ import xe from "./generated/mistica-icons/icon-menu-regular.js";
91
+ import Le from "./generated/mistica-icons/icon-close-regular.js";
92
+ import ye from "./generated/mistica-icons/icon-chevron-left-regular.js";
93
+ import { IconButton as De } from "./icon-button.js";
94
+ import { RowList as he, Row as ge } from "./list.js";
95
+ import { ThemeVariant as W, normalizeVariant as ne, useThemeVariant as Pe } from "./theme-variant-context.js";
96
+ import ve from "./focus-trap.js";
97
+ import { Portal as He } from "./portal.js";
98
+ import _e from "./grid-layout.js";
99
+ import { useSetModalState as Ve } from "./modal-context-provider.js";
100
+ import { Logo as Me } from "./logo.js";
101
+ import { vars as P } from "./skins/skin-contract.css-mistica.js";
102
+ import { spacer as te, burgerMenuButton as $e, logoContainer as we, spacerLarge as Fe, lineHeightFix as Se, navigationBarAction as We, textWrapperVariants as be, navigationBarContentRightExpanded as Ge, navigationBarContentRight as Ue, navigationBarContent as Xe, desktopOnly as G, topFixed as ze, desktopMenuWrapper as Ke, desktopMenuBackgroundContainer as qe, mainNavigationBarContentWrapper as je, burgerIconContainer as Ye, iconCloseOpen as Ze, iconCloseHidden as Je, iconMenuHidden as Qe, iconMenuOpen as en, DESKTOP_MENU_ANIMATION_DURATION_MS as Ne, BURGER_MENU_ANIMATION_DURATION_MS as nn, burgerMenuTransition as tn, burgerMenu as on, burgerMenuContainer as an, burgerMenuContentContainer as se, navbarBorderColorVariants as J, mainNavBarSectionsContainer as rn, desktopMenuSectionWithArrowWrapper as sn, section as cn, selectedSectionVariants as un, desktopMenuSectionContainer as ln, desktopMenuLastSection as dn, desktopMenuFirstSection as mn, desktopMenuSectionArrowContainer as pn, desktopMenuSectionArrow as fn, DESKTOP_SMALL_MENU_WIDTH as ce, desktopMenuContainer as hn, desktopMenu as gn, desktopMenuContentFadeIn as vn, desktopSmallMenuContainer as Mn, desktopMenuColumnItem as Sn } from "./navigation-bar.css-mistica.js";
103
+ import { getPrefixedDataAttributes as bn, cancelEvent as X } from "./utils/dom.js";
104
+ import V from "./stack.js";
105
+ import j from "./box.js";
106
+ import { isRunningAcceptanceTest as oe } from "./utils/platform.js";
107
+ import { backNavigationBar as ae, closeNavigationMenu as Nn, openNavigationMenu as Bn, mainNavigationBarSectionSeeAll as Cn, mainNavigationBarOpenSectionMenu as ue } from "./text-tokens.js";
108
+ import { NAVBAR_HEIGHT_MOBILE as kn, NAVBAR_HEIGHT_DESKTOP_LARGE as Y, NAVBAR_HEIGHT_DESKTOP as Z } from "./theme.js";
109
+ import In from "./text-link.js";
110
+ import { Title3 as On, Title1 as En } from "./title.js";
111
+ import { ButtonLink as An } from "./button.js";
112
+ import { Grid as Rn, GridItem as Tn } from "./grid.js";
113
+ import { ESC as xn, UP as Be, DOWN as Ce } from "./utils/keys.js";
114
+ import { debounce as Ln, isEqual as yn } from "./utils/helpers.js";
115
+ import Dn from "./negative-box.js";
116
+ const Pn = 120, Hn = (param)=>{
117
+ let { size: n = 24, color: t = P.colors.neutralHigh, style: a, className: i } = param;
118
118
  return /* @__PURE__ */ e("svg", {
119
119
  width: n,
120
120
  height: n,
121
121
  viewBox: "0 0 8 8",
122
122
  style: a,
123
- className: r,
123
+ className: i,
124
124
  children: /* @__PURE__ */ e("path", {
125
125
  d: "M6.32595 3.46071L3.03801 0.158595L3.03292 0.153747L3.032 0.152903L3.02931 0.150463L3.02848 0.149738L3.02248 0.144353C2.88533 0.021206 2.71386 -0.0126731 2.56343 0.00394249C2.41648 0.0201739 2.27272 0.0856702 2.16886 0.18711C2.06893 0.281844 2.01209 0.42816 2.00175 0.567065C1.99083 0.71377 2.02925 0.889583 2.16869 1.02392L5.24446 4.00145L2.15859 6.96199L2.15375 6.96708L2.1529 6.968L2.15046 6.97069L2.14974 6.97152L2.14435 6.97752C2.02121 7.11467 1.98733 7.28614 2.00394 7.43657C2.02017 7.58352 2.08567 7.72728 2.18711 7.83114C2.28184 7.93107 2.42816 7.98791 2.56706 7.99825C2.71377 8.00917 2.88958 7.97075 3.02392 7.83132L6.32595 4.5422V4.5422C6.6246 4.24355 6.6246 3.75935 6.32595 3.46071V3.46071Z",
126
126
  fill: t
127
127
  })
128
128
  });
129
- }, Dn = (param)=>{
129
+ }, _n = (param)=>{
130
130
  let { isOpen: n } = param;
131
- return /* @__PURE__ */ b("div", {
132
- className: qe,
131
+ return /* @__PURE__ */ N("div", {
132
+ className: Ye,
133
133
  role: "presentation",
134
134
  "data-component-name": "BurgerMenuIcon",
135
135
  children: [
136
136
  /* @__PURE__ */ e("div", {
137
- className: n ? je : Ye,
138
- children: /* @__PURE__ */ e(Te, {})
137
+ className: n ? Ze : Je,
138
+ children: /* @__PURE__ */ e(Le, {})
139
139
  }),
140
140
  /* @__PURE__ */ e("div", {
141
- className: n ? Ze : Je,
142
- children: /* @__PURE__ */ e(Re, {})
141
+ className: n ? Qe : en,
142
+ children: /* @__PURE__ */ e(xe, {})
143
143
  })
144
144
  ]
145
145
  });
146
- }, ae = (param)=>{
147
- let { children: n, topFixed: t, withBorder: a, isBurgerMenuOpen: r, variant: i, dataAttributes: p } = param;
148
- const { isDarkMode: c } = w(), d = ()=>(i === "brand" || i === "negative") && !c || !a ? Z.noBorder : r ? Z.menuOpen : Z.default, l = {
149
- default: y.colors.background,
150
- brand: y.colors.navigationBarBackground,
151
- negative: y.colors.backgroundNegative,
152
- alternative: y.colors.backgroundAlternative,
153
- media: y.colors.navigationBarBackground
146
+ }, ie = (param)=>{
147
+ let { children: n, topFixed: t, withBorder: a, isBurgerMenuOpen: i, variant: r, dataAttributes: c } = param;
148
+ const { isDarkMode: l } = $(), h = ()=>(r === "brand" || r === "negative") && !l || !a ? J.noBorder : i ? J.menuOpen : J.default, d = {
149
+ default: P.colors.background,
150
+ brand: P.colors.navigationBarBackground,
151
+ negative: P.colors.backgroundNegative,
152
+ alternative: P.colors.backgroundAlternative,
153
+ media: P.colors.navigationBarBackground
154
154
  };
155
155
  return /* @__PURE__ */ e("header", _object_spread_props(_object_spread({
156
- className: D(d(), {
157
- [Ue]: t
156
+ className: H(h(), {
157
+ [ze]: t
158
158
  }),
159
159
  style: {
160
- background: l[i]
160
+ background: d[r]
161
161
  }
162
- }, Mn(p)), {
162
+ }, bn(c)), {
163
163
  children: n
164
164
  }));
165
- }, G = /*#__PURE__*/ o.forwardRef((param, i)=>{
166
- let { right: n, children: t, desktopOnly: a, expandRightContent: r } = param;
167
- return /* @__PURE__ */ b("div", {
168
- ref: i,
169
- className: D(Ge, {
170
- [$]: a
165
+ }, z = /*#__PURE__*/ o.forwardRef((param, r)=>{
166
+ let { right: n, children: t, desktopOnly: a, expandRightContent: i } = param;
167
+ return /* @__PURE__ */ N("div", {
168
+ ref: r,
169
+ className: H(Xe, {
170
+ [G]: a
171
171
  }),
172
172
  children: [
173
173
  t,
174
174
  n && /* @__PURE__ */ e("div", {
175
- className: r ? Ve : We,
175
+ className: i ? Ge : Ue,
176
176
  children: n
177
177
  })
178
178
  ]
179
179
  });
180
- }), j = (param)=>{
181
- let { children: n, wide: t } = param;
182
- if (!t) return /* @__PURE__ */ e(Q, {
180
+ }), F = (param)=>{
181
+ let { children: n, wide: t, backgroundColor: a } = param;
182
+ if (!t) return /* @__PURE__ */ e(ee, {
183
+ backgroundColor: a,
183
184
  children: n
184
185
  });
185
- const a = {
186
+ const i = {
186
187
  mobile: 16,
187
188
  tablet: 24,
188
189
  desktop: 24
189
190
  };
190
- return /* @__PURE__ */ e(z, {
191
+ return /* @__PURE__ */ e(j, {
191
192
  width: "100%",
192
- paddingX: t === !0 ? a : typeof t.paddingX == "number" ? t.paddingX : _object_spread({}, a, t.paddingX),
193
+ paddingX: t === !0 ? i : typeof t.paddingX == "number" ? t.paddingX : _object_spread({}, i, t.paddingX),
194
+ background: a,
193
195
  children: n
194
196
  });
195
- }, Pn = (param)=>{
196
- let { onBack: n, title: t, titleAs: a, right: r, variant: i = "default", topFixed: p = !0, paddingX: c = 0, withBorder: d = !0, wide: l = !1 } = param;
197
- const { texts: u, t: f } = w(), m = /* @__PURE__ */ e(G, {
198
- right: r,
197
+ }, Vn = (param)=>{
198
+ let { onBack: n, title: t, titleAs: a, right: i, variant: r = "default", topFixed: c = !0, paddingX: l = 0, withBorder: h = !0, wide: d = !1 } = param;
199
+ const { texts: m, t: M } = $(), s = /* @__PURE__ */ e(z, {
200
+ right: i,
199
201
  expandRightContent: !0,
200
- children: /* @__PURE__ */ b(X, {
202
+ children: /* @__PURE__ */ N(q, {
201
203
  space: 24,
202
204
  alignItems: "center",
203
205
  children: [
204
- n && /* @__PURE__ */ e(Le, {
205
- "aria-label": u.backNavigationBar || f(oe),
206
+ n && /* @__PURE__ */ e(De, {
207
+ "aria-label": m.backNavigationBar || M(ae),
206
208
  onPress: n,
207
- Icon: xe,
209
+ Icon: ye,
208
210
  bleedLeft: !0,
209
211
  bleedRight: !0
210
212
  }),
211
- /* @__PURE__ */ e(de, {
213
+ /* @__PURE__ */ e(me, {
212
214
  regular: !0,
213
215
  truncate: !0,
214
216
  as: a,
@@ -216,35 +218,35 @@ const Ln = 120, yn = (param)=>{
216
218
  })
217
219
  ]
218
220
  })
219
- }), s = ()=>{
220
- var _l_paddingX;
221
- return l !== void 0 ? typeof l != "object" ? 0 : (_l_paddingX = l.paddingX) !== null && _l_paddingX !== void 0 ? _l_paddingX : 0 : c;
222
- }, g = ee(i);
223
- return /* @__PURE__ */ b(F, {
224
- variant: g,
221
+ }), u = ()=>{
222
+ var _d_paddingX;
223
+ return d !== void 0 ? typeof d != "object" ? 0 : (_d_paddingX = d.paddingX) !== null && _d_paddingX !== void 0 ? _d_paddingX : 0 : l;
224
+ }, p = ne(r);
225
+ return /* @__PURE__ */ N(W, {
226
+ variant: p,
225
227
  children: [
226
- /* @__PURE__ */ e(ae, {
227
- topFixed: p,
228
- withBorder: d,
229
- variant: g,
228
+ /* @__PURE__ */ e(ie, {
229
+ topFixed: c,
230
+ withBorder: h,
231
+ variant: p,
230
232
  dataAttributes: {
231
233
  "component-name": "NavigationBar"
232
234
  },
233
- children: p ? /* @__PURE__ */ e(j, {
234
- wide: l,
235
- children: m
236
- }) : /* @__PURE__ */ e(z, {
235
+ children: c ? /* @__PURE__ */ e(F, {
236
+ wide: d,
237
+ children: s
238
+ }) : /* @__PURE__ */ e(j, {
237
239
  width: "100%",
238
- paddingX: s(),
239
- children: m
240
+ paddingX: u(),
241
+ children: s
240
242
  })
241
243
  }),
242
- p && /* @__PURE__ */ e("div", {
243
- className: ne
244
+ c && /* @__PURE__ */ e("div", {
245
+ className: te
244
246
  })
245
247
  ]
246
248
  });
247
- }, U = (n, t)=>n.href === void 0 && n.onPress === void 0 && n.to === void 0 ? {
249
+ }, K = (n, t)=>n.href === void 0 && n.onPress === void 0 && n.to === void 0 ? {
248
250
  onPress: t
249
251
  } : n.onPress ? {
250
252
  onPress: ()=>{
@@ -252,7 +254,7 @@ const Ln = 120, yn = (param)=>{
252
254
  }
253
255
  } : _object_spread_props(_object_spread({}, n), {
254
256
  onNavigate: ()=>t()
255
- }), Hn = {
257
+ }), $n = {
256
258
  opening: {
257
259
  close: "closing",
258
260
  finishOpen: "opened"
@@ -267,139 +269,140 @@ const Ln = 120, yn = (param)=>{
267
269
  closed: {
268
270
  open: "opening"
269
271
  }
270
- }, _n = (n, t)=>Hn[n][t] || n, wn = (param)=>{
272
+ }, wn = (n, t)=>$n[n][t] || n, Fn = (param)=>{
271
273
  let { section: n, closeSubMenu: t, closeMenu: a } = param;
272
- const { texts: r, t: i } = w(), { title: p, menu: c } = n, d = _object_without_properties(n, [
274
+ const { texts: i, t: r } = $(), { title: c, menu: l } = n, h = _object_without_properties(n, [
273
275
  "title",
274
276
  "menu"
275
- ]), l = (c === null || c === void 0 ? void 0 : c.columns) || [], u = c === null || c === void 0 ? void 0 : c.content, f = d.href !== void 0 || d.onPress !== void 0 || d.to !== void 0;
276
- return /* @__PURE__ */ e(Q, {
277
- children: /* @__PURE__ */ b(_, {
277
+ ]), d = (l === null || l === void 0 ? void 0 : l.columns) || [], m = l === null || l === void 0 ? void 0 : l.content, M = h.href !== void 0 || h.onPress !== void 0 || h.to !== void 0;
278
+ return /* @__PURE__ */ e(ee, {
279
+ children: /* @__PURE__ */ N(V, {
278
280
  space: 32,
279
281
  children: [
280
- /* @__PURE__ */ b(_, {
282
+ /* @__PURE__ */ N(V, {
281
283
  space: 16,
282
284
  children: [
283
- /* @__PURE__ */ e(Pn, {
284
- title: r.backNavigationBar || i(oe),
285
+ /* @__PURE__ */ e(Vn, {
286
+ title: i.backNavigationBar || r(ae),
285
287
  onBack: t,
286
288
  topFixed: !1,
287
289
  withBorder: !1
288
290
  }),
289
- /* @__PURE__ */ e(Cn, {
290
- right: f ? /* @__PURE__ */ e(In, _object_spread_props(_object_spread({
291
+ /* @__PURE__ */ e(On, {
292
+ right: M ? /* @__PURE__ */ e(An, _object_spread_props(_object_spread({
291
293
  small: !0,
292
294
  bleedY: !0,
293
295
  bleedRight: !0,
294
296
  withChevron: !0
295
- }, U(d, a)), {
296
- children: r.mainNavigationBarSectionSeeAll || i(Nn)
297
+ }, K(h, a)), {
298
+ children: i.mainNavigationBarSectionSeeAll || r(Cn)
297
299
  })) : void 0,
298
- children: p
300
+ children: c
299
301
  })
300
302
  ]
301
303
  }),
302
- u ? /* @__PURE__ */ e(z, {
304
+ m ? /* @__PURE__ */ e(j, {
303
305
  paddingBottom: 16,
304
- children: typeof u == "function" ? u({
306
+ children: typeof m == "function" ? m({
305
307
  closeMenu: a
306
- }) : u
307
- }) : l.map((m, s)=>/* @__PURE__ */ b(_, {
308
+ }) : m
309
+ }) : d.map((s, u)=>/* @__PURE__ */ N(V, {
308
310
  space: 8,
309
311
  children: [
310
- /* @__PURE__ */ b(kn, {
312
+ /* @__PURE__ */ N(En, {
311
313
  children: [
312
314
  " ",
313
- m.title
315
+ s.title
314
316
  ]
315
317
  }),
316
- /* @__PURE__ */ e(xn, {
317
- children: /* @__PURE__ */ e(fe, {
318
- children: m.items.map((_param, k)=>{
319
- var { title: g } = _param, M = _object_without_properties(_param, [
318
+ /* @__PURE__ */ e(Dn, {
319
+ children: /* @__PURE__ */ e(he, {
320
+ children: s.items.map((_param, b)=>{
321
+ var { title: p } = _param, S = _object_without_properties(_param, [
320
322
  "title"
321
323
  ]);
322
324
  return /* @__PURE__ */ e(ge, _object_spread({
323
- title: g
324
- }, U(M, a)), k);
325
+ title: p
326
+ }, K(S, a)), b);
325
327
  })
326
328
  })
327
329
  })
328
330
  ]
329
- }, s))
331
+ }, u))
330
332
  ]
331
333
  })
332
334
  });
333
- }, Fn = (param)=>{
334
- let { sections: n, extra: t, closeMenu: a, open: r, id: i, disableFocusTrap: p, setDisableFocusTrap: c } = param;
335
- const { isDarkMode: d, texts: l, t: u } = w(), [f, m] = o.useState(-1), [s, g] = o.useState(!1), [M, k] = o.useReducer(_n, "closed"), I = o.useRef(null), N = d ? 1 : 0.2, S = te() ? 0 : Qe;
335
+ }, Wn = (param)=>{
336
+ let { sections: n, extra: t, closeMenu: a, open: i, topSlotHeight: r, id: c, disableFocusTrap: l, setDisableFocusTrap: h } = param;
337
+ const { isDarkMode: d, texts: m, t: M } = $(), [s, u] = o.useState(-1), [p, S] = o.useState(!1), [b, I] = o.useReducer(wn, "closed"), R = o.useRef(null), C = d ? 1 : 0.2, v = oe() ? 0 : nn;
336
338
  o.useEffect(()=>{
337
- let h;
338
- return s ? (k("open"), h = setTimeout(()=>k("finishOpen"), S)) : (k("close"), h = setTimeout(()=>k("finishClose"), S)), ()=>clearTimeout(h);
339
+ let g;
340
+ return p ? (I("open"), g = setTimeout(()=>I("finishOpen"), v)) : (I("close"), g = setTimeout(()=>I("finishClose"), v)), ()=>clearTimeout(g);
339
341
  }, [
340
- s,
341
- S
342
+ p,
343
+ v
342
344
  ]);
343
345
  const B = o.useRef(null);
344
346
  return o.useEffect(()=>{
345
347
  var _B_current_querySelector, _B_current;
346
- M === "opening" && ((_B_current = B.current) === null || _B_current === void 0 ? void 0 : (_B_current_querySelector = _B_current.querySelector(`button[aria-label="${l.backNavigationBar || u(oe)}"]`)) === null || _B_current_querySelector === void 0 ? void 0 : _B_current_querySelector.focus());
348
+ b === "opening" && ((_B_current = B.current) === null || _B_current === void 0 ? void 0 : (_B_current_querySelector = _B_current.querySelector(`button[aria-label="${m.backNavigationBar || M(ae)}"]`)) === null || _B_current_querySelector === void 0 ? void 0 : _B_current_querySelector.focus());
347
349
  }, [
350
+ b,
348
351
  M,
349
- u,
350
- l
351
- ]), /* @__PURE__ */ e(De, {
352
- children: /* @__PURE__ */ e(he, {
353
- disabled: p,
352
+ m
353
+ ]), /* @__PURE__ */ e(He, {
354
+ children: /* @__PURE__ */ e(ve, {
355
+ disabled: l,
354
356
  group: "burger-menu-lock",
355
- children: /* @__PURE__ */ e(Ee, {
356
- onEntered: ()=>c(!1),
357
- onExiting: ()=>c(!0),
357
+ children: /* @__PURE__ */ e(Ae, {
358
+ onEntered: ()=>h(!1),
359
+ onExiting: ()=>h(!0),
358
360
  onExited: ()=>{
359
- g(!1), m(-1);
361
+ S(!1), u(-1);
360
362
  },
361
- classNames: en,
362
- in: r,
363
- nodeRef: I,
364
- timeout: S,
363
+ classNames: tn,
364
+ in: i,
365
+ nodeRef: R,
366
+ timeout: v,
365
367
  mountOnEnter: !0,
366
368
  unmountOnExit: !0,
367
369
  children: /* @__PURE__ */ e("nav", {
368
- className: nn,
370
+ className: on,
369
371
  style: {
370
- boxShadow: `6px 0 4px -4px rgba(0, 0, 0, ${N})`
372
+ boxShadow: `6px 0 4px -4px rgba(0, 0, 0, ${C})`,
373
+ top: kn + r
371
374
  },
372
- id: i,
373
- ref: I,
374
- children: /* @__PURE__ */ b("div", {
375
- className: tn,
375
+ id: c,
376
+ ref: R,
377
+ children: /* @__PURE__ */ N("div", {
378
+ className: an,
376
379
  children: [
377
380
  /* @__PURE__ */ e("div", {
378
- className: re,
381
+ className: se,
379
382
  style: {
380
- transform: `translate(${s ? "-100vw" : "0"})`
383
+ transform: `translate(${p ? "-100vw" : "0"})`
381
384
  },
382
- children: M !== "opened" && /* @__PURE__ */ b(Q, {
385
+ children: b !== "opened" && /* @__PURE__ */ N(ee, {
383
386
  children: [
384
- /* @__PURE__ */ e(le, {
385
- children: /* @__PURE__ */ e(fe, {
386
- children: n.map((_param, T)=>{
387
- var { title: h, menu: O } = _param, E = _object_without_properties(_param, [
387
+ /* @__PURE__ */ e(de, {
388
+ children: /* @__PURE__ */ e(he, {
389
+ children: n.map((_param, f)=>{
390
+ var { title: g, menu: O } = _param, L = _object_without_properties(_param, [
388
391
  "title",
389
392
  "menu"
390
393
  ]);
391
394
  return /* @__PURE__ */ e(ge, _object_spread({
392
- title: h
395
+ title: g
393
396
  }, O ? {
394
397
  onPress: ()=>{
395
- g(!0), m(T);
398
+ S(!0), u(f);
396
399
  }
397
400
  } : // Close the menu when one of the rows is pressed
398
- U(E, a)), T);
401
+ K(L, a)), f);
399
402
  })
400
403
  })
401
404
  }),
402
- t && /* @__PURE__ */ e(z, {
405
+ t && /* @__PURE__ */ e(j, {
403
406
  paddingY: 16,
404
407
  children: t
405
408
  })
@@ -407,15 +410,15 @@ const Ln = 120, yn = (param)=>{
407
410
  })
408
411
  }),
409
412
  /* @__PURE__ */ e("div", {
410
- className: re,
413
+ className: se,
411
414
  ref: B,
412
415
  style: {
413
- transform: `translate(${s ? "0" : "100vw"})`
416
+ transform: `translate(${p ? "0" : "100vw"})`
414
417
  },
415
- children: M !== "closed" && f !== -1 && /* @__PURE__ */ e(wn, {
416
- section: n[f],
418
+ children: b !== "closed" && s !== -1 && /* @__PURE__ */ e(Fn, {
419
+ section: n[s],
417
420
  closeMenu: a,
418
- closeSubMenu: ()=>g(!1)
421
+ closeSubMenu: ()=>S(!1)
419
422
  })
420
423
  })
421
424
  ]
@@ -424,7 +427,7 @@ const Ln = 120, yn = (param)=>{
424
427
  })
425
428
  })
426
429
  });
427
- }, $n = {
430
+ }, Gn = {
428
431
  opening: {
429
432
  close: "closing",
430
433
  finishOpen: "opened"
@@ -441,7 +444,7 @@ const Ln = 120, yn = (param)=>{
441
444
  closed: {
442
445
  open: "opening"
443
446
  }
444
- }, Vn = (n, t)=>$n[n][t] || n, Ce = /*#__PURE__*/ o.createContext({
447
+ }, Un = (n, t)=>Gn[n][t] || n, ke = /*#__PURE__*/ o.createContext({
445
448
  isMenuOpen: !1,
446
449
  openedSection: -1,
447
450
  menuHeight: "0px",
@@ -453,196 +456,196 @@ const Ln = 120, yn = (param)=>{
453
456
  setFocusedItem: ()=>{},
454
457
  debouncedOpenSectionMenu: ()=>{},
455
458
  cancelDebouncedOpenSectionMenu: ()=>{}
456
- }), Wn = (param)=>{
459
+ }), Xn = (param)=>{
457
460
  let { children: n, sections: t, isLargeMenu: a } = param;
458
- const { isTabletOrSmaller: r } = pe(), [i, p] = o.useState(!1), [c, d] = o.useState("0px"), [l, u] = o.useReducer(Vn, "closed"), [f, m] = o.useState(-1), [s, g] = o.useState(), [M, k] = o.useState(!1), [I, N] = o.useState(!1), [S, B] = o.useState(-1), h = o.useCallback((v)=>{
459
- var _t_v;
460
- m(-1), (t === null || t === void 0 ? void 0 : (_t_v = t[v]) === null || _t_v === void 0 ? void 0 : _t_v.menu) ? (N(!0), B(v)) : (k(!1), N(!1));
461
+ const { isTabletOrSmaller: i } = fe(), [r, c] = o.useState(!1), [l, h] = o.useState("0px"), [d, m] = o.useReducer(Un, "closed"), [M, s] = o.useState(-1), [u, p] = o.useState(), [S, b] = o.useState(!1), [I, R] = o.useState(!1), [C, v] = o.useState(-1), B = o.useCallback((f)=>{
462
+ var _t_f;
463
+ s(-1), (t === null || t === void 0 ? void 0 : (_t_f = t[f]) === null || _t_f === void 0 ? void 0 : _t_f.menu) ? (R(!0), v(f)) : (b(!1), R(!1));
461
464
  }, [
462
465
  t
463
- ]), O = o.useMemo(()=>Rn(h, Ln), [
464
- h
465
- ]), E = o.useCallback(()=>{
466
- k(!1), N(!1), O.cancel(), m(-1);
466
+ ]), g = o.useMemo(()=>Ln(B, Pn), [
467
+ B
468
+ ]), O = o.useCallback(()=>{
469
+ b(!1), R(!1), g.cancel(), s(-1);
467
470
  }, [
468
- O
471
+ g
469
472
  ]);
470
473
  o.useEffect(()=>{
471
- r && E();
474
+ i && O();
472
475
  }, [
473
- r,
474
- E
476
+ i,
477
+ O
475
478
  ]), o.useEffect(()=>{
476
- !I && !M ? (p(!1), d("0px")) : p(!0);
479
+ !I && !S ? (c(!1), h("0px")) : c(!0);
477
480
  }, [
478
- M,
481
+ S,
479
482
  I
480
483
  ]), o.useEffect(()=>{
481
- const v = te() || !a ? 0 : be;
482
- let A;
483
- return i ? (u("open"), A = setTimeout(()=>u("finishOpen"), v)) : (u("close"), A = setTimeout(()=>u("finishClose"), v)), ()=>clearTimeout(A);
484
+ const f = oe() || !a ? 0 : Ne;
485
+ let T;
486
+ return r ? (m("open"), T = setTimeout(()=>m("finishOpen"), f)) : (m("close"), T = setTimeout(()=>m("finishClose"), f)), ()=>clearTimeout(T);
484
487
  }, [
485
- i,
488
+ r,
486
489
  a
487
490
  ]), o.useEffect(()=>{
488
- l === "closed" && B(-1);
491
+ d === "closed" && v(-1);
489
492
  }, [
490
- l
493
+ d
491
494
  ]);
492
- const T = o.useCallback((v)=>{
493
- Tn(s, v) || g(v);
495
+ const L = o.useCallback((f)=>{
496
+ yn(u, f) || p(f);
494
497
  }, [
495
- s
498
+ u
496
499
  ]);
497
500
  return o.useEffect(()=>{
498
- const v = (C)=>{
499
- if (s) {
500
- const x = document.querySelector("[data-navigation-bar-menu-items]"), R = Array.from((x === null || x === void 0 ? void 0 : x.querySelectorAll("a,button")) || []), H = R.findIndex((L)=>L.hasAttribute(`data-navigation-bar-menu-item-${s.column}-${s.index}`)), Y = C ? H - 1 : H + 1;
501
- R[(Y + R.length) % R.length].focus();
501
+ const f = (E)=>{
502
+ if (u) {
503
+ const k = document.querySelector("[data-navigation-bar-menu-items]"), A = Array.from((k === null || k === void 0 ? void 0 : k.querySelectorAll("a,button")) || []), x = A.findIndex((w)=>w.hasAttribute(`data-navigation-bar-menu-item-${u.column}-${u.index}`)), D = E ? x - 1 : x + 1;
504
+ A[(D + A.length) % A.length].focus();
502
505
  }
503
- }, A = (C)=>{
504
- switch(C.key){
505
- case Be:
506
- s && (W(C), v());
506
+ }, T = (E)=>{
507
+ switch(E.key){
508
+ case Ce:
509
+ u && (X(E), f());
507
510
  break;
508
- case Ne:
509
- s && (W(C), v(!0));
511
+ case Be:
512
+ u && (X(E), f(!0));
510
513
  break;
511
- case An:
512
- E();
514
+ case xn:
515
+ O();
513
516
  break;
514
517
  }
515
518
  };
516
- return document.addEventListener("keydown", A, !1), ()=>{
517
- document.removeEventListener("keydown", A, !1);
519
+ return document.addEventListener("keydown", T, !1), ()=>{
520
+ document.removeEventListener("keydown", T, !1);
518
521
  };
519
522
  }, [
520
- E,
521
- s
523
+ O,
524
+ u
522
525
  ]), o.useEffect(()=>{
523
- g(void 0);
526
+ p(void 0);
524
527
  }, [
525
- S
526
- ]), /* @__PURE__ */ e(Ce.Provider, {
528
+ C
529
+ ]), /* @__PURE__ */ e(ke.Provider, {
527
530
  value: {
528
- isMenuOpen: i,
529
- openedSection: S,
530
- menuHeight: c,
531
- menuStatus: l,
532
- openSectionMenu: h,
533
- debouncedOpenSectionMenu: (v)=>{
534
- m(v), O(v);
531
+ isMenuOpen: r,
532
+ openedSection: C,
533
+ menuHeight: l,
534
+ menuStatus: d,
535
+ openSectionMenu: B,
536
+ debouncedOpenSectionMenu: (f)=>{
537
+ s(f), g(f);
535
538
  },
536
- cancelDebouncedOpenSectionMenu: (v)=>{
537
- v === f && (O.cancel(), m(-1));
539
+ cancelDebouncedOpenSectionMenu: (f)=>{
540
+ f === M && (g.cancel(), s(-1));
538
541
  },
539
- closeMenu: E,
540
- setMenuHeight: d,
541
- setIsMenuHovered: k,
542
- setFocusedItem: T
542
+ closeMenu: O,
543
+ setMenuHeight: h,
544
+ setIsMenuHovered: b,
545
+ setFocusedItem: L
543
546
  },
544
547
  children: n
545
548
  });
546
- }, P = ()=>o.useContext(Ce), ke = (param)=>{
549
+ }, _ = ()=>o.useContext(ke), Ie = (param)=>{
547
550
  let { column: n, columnIndex: t } = param;
548
- const { setFocusedItem: a, closeMenu: r } = P();
549
- return /* @__PURE__ */ b(_, {
551
+ const { setFocusedItem: a, closeMenu: i } = _();
552
+ return /* @__PURE__ */ N(V, {
550
553
  space: 24,
551
554
  children: [
552
- /* @__PURE__ */ e(me, {
555
+ /* @__PURE__ */ e(pe, {
553
556
  medium: !0,
554
- color: y.colors.textSecondary,
557
+ color: P.colors.textSecondary,
555
558
  transform: "uppercase",
556
559
  children: n.title
557
560
  }),
558
- /* @__PURE__ */ e(_, {
561
+ /* @__PURE__ */ e(V, {
559
562
  space: 16,
560
563
  role: "list",
561
- children: n.items.map((_param, c)=>{
562
- var { title: i } = _param, p = _object_without_properties(_param, [
564
+ children: n.items.map((_param, l)=>{
565
+ var { title: r } = _param, c = _object_without_properties(_param, [
563
566
  "title"
564
567
  ]);
565
568
  return(// eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions
566
569
  /* @__PURE__ */ e("div", {
567
570
  onFocus: ()=>a({
568
571
  column: t,
569
- index: c
572
+ index: l
570
573
  }),
571
574
  onBlur: ()=>a(void 0),
572
575
  role: "listitem",
573
- children: /* @__PURE__ */ e(Bn, _object_spread_props(_object_spread({
576
+ children: /* @__PURE__ */ e(In, _object_spread_props(_object_spread({
574
577
  underline: "on hover",
575
- className: vn,
578
+ className: Sn,
576
579
  dataAttributes: {
577
- [`navigation-bar-menu-item-${t}-${c}`]: "true"
580
+ [`navigation-bar-menu-item-${t}-${l}`]: "true"
578
581
  }
579
- }, U(p, r)), {
580
- children: i
582
+ }, K(c, i)), {
583
+ children: r
581
584
  }))
582
- }, c));
585
+ }, l));
583
586
  })
584
587
  })
585
588
  ]
586
589
  });
587
- }, Gn = (param)=>{
588
- let { section: n, index: t, isLargeNavigationBar: a, wide: r } = param;
590
+ }, zn = (param)=>{
591
+ let { section: n, index: t, isLargeNavigationBar: a, topSlotHeight: i, wide: r } = param;
589
592
  var _n_menu, _n_menu1;
590
- const i = o.useRef(null), [p, c] = o.useState(!1), d = te() ? 0 : be, l = a ? K : q, u = 40, { menuStatus: f, isMenuOpen: m, openedSection: s, closeMenu: g, setIsMenuHovered: M, setMenuHeight: k } = P();
593
+ const c = o.useRef(null), [l, h] = o.useState(!1), d = oe() ? 0 : Ne, m = (a ? Y : Z) + i, M = 40, { menuStatus: s, isMenuOpen: u, openedSection: p, closeMenu: S, setIsMenuHovered: b, setMenuHeight: I } = _();
591
594
  o.useEffect(()=>{
592
- if (i.current && m && (i.current.scrollTop = 0), c(!1), m) {
593
- const h = setTimeout(()=>c(!0), d);
594
- return ()=>clearTimeout(h);
595
+ if (c.current && u && (c.current.scrollTop = 0), h(!1), u) {
596
+ const g = setTimeout(()=>h(!0), d);
597
+ return ()=>clearTimeout(g);
595
598
  }
596
599
  }, [
597
- m,
598
- s,
600
+ u,
601
+ p,
599
602
  d
600
603
  ]);
601
- const [I, N] = o.useState(!0);
604
+ const [R, C] = o.useState(!0);
602
605
  o.useEffect(()=>{
603
- if (s === t) if (f === "opening") {
604
- N(!1);
605
- const h = requestAnimationFrame(()=>N(!0));
606
- return ()=>cancelAnimationFrame(h);
607
- } else N(!0);
606
+ if (p === t) if (s === "opening") {
607
+ C(!1);
608
+ const g = requestAnimationFrame(()=>C(!0));
609
+ return ()=>cancelAnimationFrame(g);
610
+ } else C(!0);
608
611
  }, [
609
- f,
610
612
  s,
613
+ p,
611
614
  t
612
615
  ]), o.useEffect(()=>{
613
- f === "closing" && c(!1);
616
+ s === "closing" && h(!1);
614
617
  }, [
615
- f
618
+ s
616
619
  ]);
617
- const S = ((_n_menu = n.menu) === null || _n_menu === void 0 ? void 0 : _n_menu.columns) || [], B = n === null || n === void 0 ? void 0 : (_n_menu1 = n.menu) === null || _n_menu1 === void 0 ? void 0 : _n_menu1.content;
620
+ const v = ((_n_menu = n.menu) === null || _n_menu === void 0 ? void 0 : _n_menu.columns) || [], B = n === null || n === void 0 ? void 0 : (_n_menu1 = n.menu) === null || _n_menu1 === void 0 ? void 0 : _n_menu1.content;
618
621
  return /* @__PURE__ */ e("div", {
619
- className: $,
620
- children: /* @__PURE__ */ e(F, {
622
+ className: G,
623
+ children: /* @__PURE__ */ e(W, {
621
624
  variant: "default",
622
- children: s === t && /* @__PURE__ */ e(le, {
625
+ children: p === t && /* @__PURE__ */ e(de, {
623
626
  children: /* @__PURE__ */ e("div", {
624
- className: pn,
625
- onMouseEnter: ()=>M(!0),
626
- onMouseLeave: ()=>M(!1),
627
+ className: hn,
628
+ onMouseEnter: ()=>b(!0),
629
+ onMouseLeave: ()=>b(!1),
627
630
  style: {
628
631
  // disable pointer events when menu is closing
629
- pointerEvents: f === "closed" || f === "closing" ? "none" : void 0,
630
- top: l,
631
- maxHeight: `calc(100vh - ${l}px - ${u}px)`,
632
- overflowY: p ? "auto" : "hidden"
632
+ pointerEvents: s === "closed" || s === "closing" ? "none" : void 0,
633
+ top: m,
634
+ maxHeight: `calc(100vh - ${m}px - ${M}px)`,
635
+ overflowY: l ? "auto" : "hidden"
633
636
  },
634
- children: /* @__PURE__ */ e(j, {
637
+ children: /* @__PURE__ */ e(F, {
635
638
  wide: r,
636
639
  children: /* @__PURE__ */ e("div", {
637
- className: D(fn, {
638
- [gn]: I
640
+ className: H(gn, {
641
+ [vn]: R
639
642
  }),
640
- ref: (h)=>{
641
- h && m && k(`min(${h.scrollHeight}px, calc(100vh - ${l}px - ${u}px))`);
643
+ ref: (g)=>{
644
+ g && u && I(`min(${g.scrollHeight}px, calc(100vh - ${m}px - ${M}px))`);
642
645
  },
643
646
  children: B ? typeof B == "function" ? B({
644
- closeMenu: g
645
- }) : B : /* @__PURE__ */ e(On, {
647
+ closeMenu: S
648
+ }) : B : /* @__PURE__ */ e(Rn, {
646
649
  rows: 1,
647
650
  columns: 12,
648
651
  gap: [
@@ -652,10 +655,10 @@ const Ln = 120, yn = (param)=>{
652
655
  dataAttributes: {
653
656
  "navigation-bar-menu-items": "true"
654
657
  },
655
- children: S.map((h, O)=>/* @__PURE__ */ e(En, {
658
+ children: v.map((g, O)=>/* @__PURE__ */ e(Tn, {
656
659
  columnSpan: 2,
657
- children: /* @__PURE__ */ e(ke, {
658
- column: h,
660
+ children: /* @__PURE__ */ e(Ie, {
661
+ column: g,
659
662
  columnIndex: O
660
663
  })
661
664
  }, O))
@@ -666,359 +669,381 @@ const Ln = 120, yn = (param)=>{
666
669
  })
667
670
  })
668
671
  });
669
- }, Un = (param)=>{
670
- let { isLargeNavigationBar: n } = param;
671
- const t = n ? K : q, { menuHeight: a } = P();
672
+ }, Kn = (param)=>{
673
+ let { isLargeNavigationBar: n, topSlotHeight: t } = param;
674
+ const a = (n ? Y : Z) + t, { menuHeight: i } = _();
672
675
  return /* @__PURE__ */ e("div", {
673
- className: $,
676
+ className: G,
674
677
  children: /* @__PURE__ */ e("div", {
675
- className: Xe,
678
+ className: Ke,
676
679
  style: {
677
- top: t
680
+ top: a
678
681
  },
679
682
  children: /* @__PURE__ */ e("div", {
680
- className: ze,
683
+ className: qe,
681
684
  style: {
682
- height: a
685
+ height: i
683
686
  }
684
687
  })
685
688
  })
686
689
  });
687
- }, Xn = (param)=>{
688
- let { section: n, isLargeNavigationBar: t, leftPosition: a, index: r } = param;
690
+ }, qn = (param)=>{
691
+ let { section: n, isLargeNavigationBar: t, topSlotHeight: a, leftPosition: i, index: r } = param;
689
692
  var _n_menu, _n_menu1;
690
- const i = t ? K : q, p = 40, c = ((_n_menu = n.menu) === null || _n_menu === void 0 ? void 0 : _n_menu.columns) || [], d = n === null || n === void 0 ? void 0 : (_n_menu1 = n.menu) === null || _n_menu1 === void 0 ? void 0 : _n_menu1.content, { openedSection: l, menuStatus: u, setIsMenuHovered: f, closeMenu: m } = P();
693
+ const c = (t ? Y : Z) + a, l = 40, h = ((_n_menu = n.menu) === null || _n_menu === void 0 ? void 0 : _n_menu.columns) || [], d = n === null || n === void 0 ? void 0 : (_n_menu1 = n.menu) === null || _n_menu1 === void 0 ? void 0 : _n_menu1.content, { openedSection: m, menuStatus: M, setIsMenuHovered: s, closeMenu: u } = _();
691
694
  return /* @__PURE__ */ e("div", {
692
- className: $,
693
- children: r === l && /* @__PURE__ */ e(F, {
695
+ className: G,
696
+ children: r === m && /* @__PURE__ */ e(W, {
694
697
  variant: "default",
695
698
  children: /* @__PURE__ */ e("div", {
696
- className: hn,
697
- onMouseEnter: ()=>f(!0),
698
- onMouseLeave: ()=>f(!1),
699
+ className: Mn,
700
+ onMouseEnter: ()=>s(!0),
701
+ onMouseLeave: ()=>s(!1),
699
702
  style: {
700
703
  // disable pointer events when menu is closing
701
- pointerEvents: u === "closed" || u === "closing" ? "none" : void 0,
702
- top: i,
703
- left: a,
704
- maxHeight: `calc(100vh - ${i}px - ${p}px)`
704
+ pointerEvents: M === "closed" || M === "closing" ? "none" : void 0,
705
+ top: c,
706
+ left: i,
707
+ maxHeight: `calc(100vh - ${c}px - ${l}px)`
705
708
  },
706
709
  children: d ? typeof d == "function" ? d({
707
- closeMenu: m
708
- }) : d : /* @__PURE__ */ e(_, {
710
+ closeMenu: u
711
+ }) : d : /* @__PURE__ */ e(V, {
709
712
  space: 40,
710
713
  dataAttributes: {
711
714
  "navigation-bar-menu-items": "true"
712
715
  },
713
- children: c.map((s, g)=>/* @__PURE__ */ e(ke, {
714
- column: s,
715
- columnIndex: g
716
- }, g))
716
+ children: h.map((p, S)=>/* @__PURE__ */ e(Ie, {
717
+ column: p,
718
+ columnIndex: S
719
+ }, S))
717
720
  })
718
721
  })
719
722
  })
720
723
  });
721
- }, zn = (param)=>{
722
- let { section: n, index: t, selectedIndex: a, isFirstSection: r, isLastSection: i, navigationBarRef: p, variant: c, isLargeNavigationBar: d, desktopLargeMenu: l, wide: u } = param;
723
- const { texts: f, t: m } = w(), { title: s, menu: g } = n, M = _object_without_properties(n, [
724
+ }, jn = (param)=>{
725
+ let { section: n, index: t, selectedIndex: a, isFirstSection: i, isLastSection: r, navigationBarRef: c, variant: l, isLargeNavigationBar: h, topSlotHeight: d, desktopLargeMenu: m, wide: M } = param;
726
+ const { texts: s, t: u } = $(), { title: p, menu: S } = n, b = _object_without_properties(n, [
724
727
  "title",
725
728
  "menu"
726
- ]), k = o.useRef(null), [I, N] = o.useState(0), [S, B] = o.useState(!1), { isMenuOpen: h, openedSection: O, openSectionMenu: E, debouncedOpenSectionMenu: T, cancelDebouncedOpenSectionMenu: v, closeMenu: A } = P(), C = M.href !== void 0 || M.onPress !== void 0 || M.to !== void 0, x = o.useCallback((L)=>{
727
- l || N((()=>{
728
- var _k_current, _p_current;
729
- const { left: ie, right: Ie } = ((_k_current = k.current) === null || _k_current === void 0 ? void 0 : _k_current.getBoundingClientRect()) || {
729
+ ]), I = o.useRef(null), [R, C] = o.useState(0), [v, B] = o.useState(!1), { isMenuOpen: g, openedSection: O, openSectionMenu: L, debouncedOpenSectionMenu: f, cancelDebouncedOpenSectionMenu: T, closeMenu: E } = _(), k = b.href !== void 0 || b.onPress !== void 0 || b.to !== void 0, A = o.useCallback((y)=>{
730
+ m || C((()=>{
731
+ var _I_current, _c_current;
732
+ const { left: re, right: Oe } = ((_I_current = I.current) === null || _I_current === void 0 ? void 0 : _I_current.getBoundingClientRect()) || {
730
733
  left: 0,
731
734
  right: 0
732
- }, Oe = (((_p_current = p.current) === null || _p_current === void 0 ? void 0 : _p_current.getBoundingClientRect().right) || 0) - se;
733
- return ie <= Oe ? ie : Ie - se;
734
- })()), L ? T(t) : E(t);
735
+ }, Ee = (((_c_current = c.current) === null || _c_current === void 0 ? void 0 : _c_current.getBoundingClientRect().right) || 0) - ce;
736
+ return re <= Ee ? re : Oe - ce;
737
+ })()), y ? f(t) : L(t);
735
738
  }, [
736
- l,
739
+ m,
737
740
  t,
738
- E,
739
- T,
740
- p
741
+ L,
742
+ f,
743
+ c
741
744
  ]);
742
745
  o.useEffect(()=>{
743
- const L = (V)=>{
744
- switch(V.key){
746
+ const y = (U)=>{
747
+ switch(U.key){
745
748
  // If arrow is focused and DOWN key is pressed, open the menu if it was closed
746
- case Be:
747
- S && (W(V), x());
749
+ case Ce:
750
+ v && (X(U), A());
748
751
  break;
749
752
  // If arrow is focused and UP key is pressed, close the menu if it was opened
750
- case Ne:
751
- S && (W(V), A());
753
+ case Be:
754
+ v && (X(U), E());
752
755
  break;
753
756
  }
754
757
  };
755
- return document.addEventListener("keydown", L, !1), ()=>{
756
- document.removeEventListener("keydown", L, !1);
758
+ return document.addEventListener("keydown", y, !1), ()=>{
759
+ document.removeEventListener("keydown", y, !1);
757
760
  };
758
761
  }, [
759
762
  t,
760
- S,
761
- x,
763
+ v,
762
764
  A,
763
- g,
764
- C
765
+ E,
766
+ S,
767
+ k
765
768
  ]);
766
- const R = h && O === t, H = o.useCallback(()=>{
767
- R ? A() : x();
769
+ const x = g && O === t, D = o.useCallback(()=>{
770
+ x ? E() : A();
768
771
  }, [
769
- R,
770
772
  x,
771
- A
772
- ]), Y = o.useCallback((L)=>C ? L : {
773
- onPress: H
773
+ A,
774
+ E
775
+ ]), w = o.useCallback((y)=>k ? y : {
776
+ onPress: D
774
777
  }, [
775
- C,
776
- H
778
+ k,
779
+ D
777
780
  ]);
778
- return /* @__PURE__ */ b("div", {
779
- className: an,
781
+ return /* @__PURE__ */ N("div", {
782
+ className: sn,
780
783
  children: [
781
784
  /* @__PURE__ */ e("div", {
782
- ref: k,
783
- className: D(cn, {
784
- [ln]: r,
785
- [un]: i
785
+ ref: I,
786
+ className: H(ln, {
787
+ [mn]: i,
788
+ [dn]: r
786
789
  }),
787
- onMouseEnter: ()=>x(!0),
788
- onMouseLeave: ()=>v(t),
790
+ onMouseEnter: ()=>A(!0),
791
+ onMouseLeave: ()=>T(t),
789
792
  onFocus: ()=>{
790
- g && !C && B(!0);
793
+ S && !k && B(!0);
791
794
  },
792
795
  onBlur: ()=>{
793
- g && !C && B(!1);
796
+ S && !k && B(!1);
794
797
  },
795
- children: /* @__PURE__ */ e(J, _object_spread_props(_object_spread({}, Y(M)), {
796
- "aria-label": C ? void 0 : `${n.title}, ${f.mainNavigationBarOpenSectionMenu || m(ce)}`,
797
- "aria-haspopup": !C,
798
- "aria-expanded": C ? void 0 : R,
799
- className: D(rn, {
800
- [sn[c === "brand" ? "brand" : "default"]]: t === a
801
- }, Se[c === "brand" ? "brand" : "default"]),
802
- children: /* @__PURE__ */ e(de, {
798
+ children: /* @__PURE__ */ e(Q, _object_spread_props(_object_spread({}, w(b)), {
799
+ "aria-label": k ? void 0 : `${n.title}, ${s.mainNavigationBarOpenSectionMenu || u(ue)}`,
800
+ "aria-haspopup": !k,
801
+ "aria-expanded": k ? void 0 : x,
802
+ className: H(cn, {
803
+ [un[l === "brand" ? "brand" : "default"]]: t === a
804
+ }, be[l === "brand" ? "brand" : "default"]),
805
+ children: /* @__PURE__ */ e(me, {
803
806
  regular: !0,
804
807
  color: "inherit",
805
- children: s
808
+ children: p
806
809
  })
807
810
  }))
808
811
  }),
809
- g && /* @__PURE__ */ b(ue, {
812
+ S && /* @__PURE__ */ N(le, {
810
813
  children: [
811
- C && /* @__PURE__ */ e("div", {
812
- className: dn,
814
+ k && /* @__PURE__ */ e("div", {
815
+ className: pn,
813
816
  onFocus: ()=>B(!0),
814
817
  onBlur: ()=>B(!1),
815
- children: /* @__PURE__ */ e(J, {
816
- className: mn,
817
- "aria-label": `${n.title}, ${f.mainNavigationBarOpenSectionMenu || m(ce)}`,
818
+ children: /* @__PURE__ */ e(Q, {
819
+ className: fn,
820
+ "aria-label": `${n.title}, ${s.mainNavigationBarOpenSectionMenu || u(ue)}`,
818
821
  "aria-haspopup": !0,
819
- "aria-expanded": R,
822
+ "aria-expanded": x,
820
823
  onPress: ()=>{
821
- S && H();
824
+ v && D();
822
825
  },
823
826
  style: {
824
- pointerEvents: S ? "auto" : "none",
825
- opacity: S ? 1 : 0,
827
+ pointerEvents: v ? "auto" : "none",
828
+ opacity: v ? 1 : 0,
826
829
  // We are using the same chevron as in ButtonLink, and that svg has
827
830
  // some extra space on the left that we want to ignore in this case
828
831
  marginTop: -2
829
832
  },
830
- children: /* @__PURE__ */ e(yn, {
833
+ children: /* @__PURE__ */ e(Hn, {
831
834
  size: 8,
832
835
  style: {
833
- transform: `rotate(${R ? -90 : 90}deg)`
836
+ transform: `rotate(${x ? -90 : 90}deg)`
834
837
  }
835
838
  })
836
839
  })
837
840
  }),
838
- l ? /* @__PURE__ */ e(Gn, {
841
+ m ? /* @__PURE__ */ e(zn, {
839
842
  section: n,
840
- isLargeNavigationBar: d,
843
+ isLargeNavigationBar: h,
844
+ topSlotHeight: d,
841
845
  index: t,
842
- wide: u
843
- }) : /* @__PURE__ */ e(Xn, {
846
+ wide: M
847
+ }) : /* @__PURE__ */ e(qn, {
844
848
  section: n,
845
- isLargeNavigationBar: d,
846
- leftPosition: I,
849
+ isLargeNavigationBar: h,
850
+ topSlotHeight: d,
851
+ leftPosition: R,
847
852
  index: t
848
853
  })
849
854
  ]
850
855
  })
851
856
  ]
852
857
  });
853
- }, Kn = (param)=>{
854
- let { sections: n, selectedIndex: t, navigationBarRef: a, variant: r, isLargeNavigationBar: i, hasRightContent: p, desktopLargeMenu: c, wide: d } = param;
855
- const { openSectionMenu: l, openedSection: u, closeMenu: f } = P();
858
+ }, Yn = (param)=>{
859
+ let { sections: n, selectedIndex: t, navigationBarRef: a, variant: i, isLargeNavigationBar: r, topSlotHeight: c, hasRightContent: l, desktopLargeMenu: h, wide: d } = param;
860
+ const { openSectionMenu: m, openedSection: M, closeMenu: s } = _();
856
861
  return(// eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions
857
862
  /* @__PURE__ */ e("nav", {
858
- className: D($, on),
863
+ className: H(G, rn),
859
864
  style: {
860
- paddingLeft: i ? 0 : 48,
861
- paddingRight: !i && p ? 136 : 0
865
+ paddingLeft: r ? 0 : 48,
866
+ paddingRight: !r && l ? 136 : 0
862
867
  },
863
868
  onMouseEnter: ()=>{
864
- u !== -1 && l(u);
869
+ M !== -1 && m(M);
865
870
  },
866
- onMouseLeave: f,
867
- children: /* @__PURE__ */ e(X, {
871
+ onMouseLeave: s,
872
+ children: /* @__PURE__ */ e(q, {
868
873
  space: 32,
869
- children: n.map((m, s)=>/* @__PURE__ */ e(zn, {
870
- index: s,
874
+ children: n.map((u, p)=>/* @__PURE__ */ e(jn, {
875
+ index: p,
871
876
  selectedIndex: t,
872
877
  navigationBarRef: a,
873
- isFirstSection: s === 0,
874
- isLastSection: s === n.length - 1,
875
- variant: r,
876
- section: m,
877
- isLargeNavigationBar: i,
878
- desktopLargeMenu: c,
878
+ isFirstSection: p === 0,
879
+ isLastSection: p === n.length - 1,
880
+ variant: i,
881
+ section: u,
882
+ isLargeNavigationBar: r,
883
+ topSlotHeight: c,
884
+ desktopLargeMenu: h,
879
885
  wide: d
880
- }, s))
886
+ }, p))
881
887
  })
882
888
  }));
883
- }, qn = (param)=>{
884
- let { children: n, isLargeNavigationBar: t, desktopLargeMenu: a } = param;
885
- const { menuHeight: r } = P(), i = t ? K : q;
889
+ }, Zn = (param)=>{
890
+ let { children: n, isLargeNavigationBar: t, topSlotHeight: a, desktopLargeMenu: i } = param;
891
+ const { menuHeight: r } = _(), c = (t ? Y : Z) + a;
886
892
  return /* @__PURE__ */ e("div", {
887
- className: Ke,
888
- style: a ? {
889
- clipPath: `rect(0 100% calc(${i}px + ${r}) 0)`,
890
- WebkitClipPath: `rect(0 100% calc(${i}px + ${r}) 0)`
893
+ className: je,
894
+ style: i ? {
895
+ clipPath: `rect(0 100% calc(${c}px + ${r}) 0)`,
896
+ WebkitClipPath: `rect(0 100% calc(${c}px + ${r}) 0)`
891
897
  } : void 0,
892
898
  children: n
893
899
  });
894
- }, Rt = (param)=>{
895
- let { sections: n = [], selectedIndex: t, right: a, variant: r = "default", topFixed: i = !0, withBorder: p = !0, burgerMenuExtra: c, logo: d, large: l = !1, desktopLargeMenu: u = !1, wide: f = !1 } = param;
896
- const { texts: m, t: s } = w(), g = o.useId(), { isTabletOrSmaller: M } = pe(), k = d || /* @__PURE__ */ e(ve, {
900
+ }, Lt = (param)=>{
901
+ let { sections: n = [], selectedIndex: t, right: a, topSlot: i, topSlotBackgroundColor: r, variant: c = "default", topFixed: l = !0, withBorder: h = !0, burgerMenuExtra: d, logo: m, large: M = !1, desktopLargeMenu: s = !1, wide: u = !1 } = param;
902
+ const { texts: p, t: S } = $(), b = o.useId(), { isTabletOrSmaller: I } = fe(), R = m || /* @__PURE__ */ e(Me, {
897
903
  size: {
898
904
  mobile: 40,
899
905
  desktop: 48
900
906
  }
901
- }), I = l && n.length > 0, [N, S] = o.useState(!1), [B, h] = o.useState(!0), O = o.useRef(null), E = He(), T = ee(r), v = /* @__PURE__ */ e(Kn, {
907
+ }), C = M && n.length > 0, [v, B] = o.useState(!1), [g, O] = o.useState(!0), L = o.useRef(null), { height: f, ref: T } = Te(), E = Ve(), k = ne(c), A = /* @__PURE__ */ e(Yn, {
902
908
  sections: n,
903
909
  selectedIndex: t,
904
- navigationBarRef: O,
905
- variant: T,
910
+ navigationBarRef: L,
911
+ variant: k,
906
912
  hasRightContent: !!a,
907
- isLargeNavigationBar: I,
908
- desktopLargeMenu: u,
909
- wide: f
910
- }), A = ()=>{
911
- S(!0), E({
913
+ isLargeNavigationBar: C,
914
+ topSlotHeight: f,
915
+ desktopLargeMenu: s,
916
+ wide: u
917
+ }), x = ()=>{
918
+ B(!0), E({
912
919
  isModalOpen: !0
913
920
  });
914
- }, C = ()=>{
915
- S(!1), E({
921
+ }, D = ()=>{
922
+ B(!1), E({
916
923
  isModalOpen: !1
917
924
  });
918
- }, x = n.length > 1, R = /* @__PURE__ */ b(F, {
919
- variant: T,
925
+ }, w = n.length > 1, y = /* @__PURE__ */ N(W, {
926
+ variant: k,
920
927
  children: [
921
- /* @__PURE__ */ b(ae, {
922
- topFixed: i,
923
- withBorder: p,
924
- isBurgerMenuOpen: N,
925
- variant: T,
928
+ /* @__PURE__ */ N(ie, {
929
+ topFixed: l,
930
+ withBorder: h,
931
+ isBurgerMenuOpen: v,
932
+ variant: k,
926
933
  dataAttributes: {
927
934
  "component-name": "MainNavigationBar"
928
935
  },
929
936
  children: [
930
- u && /* @__PURE__ */ e(Un, {
931
- isLargeNavigationBar: I
937
+ s && /* @__PURE__ */ e(Kn, {
938
+ isLargeNavigationBar: C,
939
+ topSlotHeight: f
932
940
  }),
933
- /* @__PURE__ */ e(qn, {
934
- isLargeNavigationBar: I,
935
- desktopLargeMenu: u,
936
- children: /* @__PURE__ */ b(j, {
937
- wide: f,
938
- children: [
939
- /* @__PURE__ */ b(G, {
940
- ref: O,
941
- right: a,
942
- expandRightContent: I,
943
- children: [
944
- x && /* @__PURE__ */ e(Ae, {
945
- className: _e,
946
- "aria-live": "polite",
947
- "aria-label": N ? m.closeNavigationMenu || s(Sn) : m.openNavigationMenu || s(bn),
948
- "aria-expanded": N,
949
- "aria-controls": g,
950
- onPress: N ? C : A,
951
- children: /* @__PURE__ */ e(Dn, {
952
- isOpen: N
953
- })
954
- }),
955
- /* @__PURE__ */ e("div", {
956
- className: we,
957
- children: k
958
- }),
959
- !I && v
960
- ]
961
- }),
962
- I && /* @__PURE__ */ e(G, {
963
- desktopOnly: !0,
964
- children: v
941
+ /* @__PURE__ */ N(Zn, {
942
+ isLargeNavigationBar: C,
943
+ topSlotHeight: f,
944
+ desktopLargeMenu: s,
945
+ children: [
946
+ i && /* @__PURE__ */ e(F, {
947
+ wide: u,
948
+ backgroundColor: r,
949
+ children: /* @__PURE__ */ e("div", {
950
+ ref: T,
951
+ children: i
965
952
  })
966
- ]
967
- })
953
+ }),
954
+ /* @__PURE__ */ N(F, {
955
+ wide: u,
956
+ children: [
957
+ /* @__PURE__ */ N(z, {
958
+ ref: L,
959
+ right: a,
960
+ expandRightContent: C,
961
+ children: [
962
+ w && /* @__PURE__ */ e(Re, {
963
+ className: $e,
964
+ "aria-live": "polite",
965
+ "aria-label": v ? p.closeNavigationMenu || S(Nn) : p.openNavigationMenu || S(Bn),
966
+ "aria-expanded": v,
967
+ "aria-controls": b,
968
+ onPress: v ? D : x,
969
+ children: /* @__PURE__ */ e(_n, {
970
+ isOpen: v
971
+ })
972
+ }),
973
+ /* @__PURE__ */ e("div", {
974
+ className: we,
975
+ children: R
976
+ }),
977
+ !C && A
978
+ ]
979
+ }),
980
+ C && /* @__PURE__ */ e(z, {
981
+ desktopOnly: !0,
982
+ children: A
983
+ })
984
+ ]
985
+ })
986
+ ]
968
987
  })
969
988
  ]
970
989
  }),
971
- i && /* @__PURE__ */ e("div", {
972
- className: I ? Fe : ne
990
+ l && f > 0 && /* @__PURE__ */ e("div", {
991
+ style: {
992
+ height: f
993
+ }
994
+ }),
995
+ l && /* @__PURE__ */ e("div", {
996
+ className: C ? Fe : te
973
997
  })
974
998
  ]
975
999
  });
976
- return /* @__PURE__ */ e(Wn, {
1000
+ return /* @__PURE__ */ e(Xn, {
977
1001
  sections: n,
978
- isLargeMenu: u,
979
- children: M ? /* @__PURE__ */ b(ue, {
1002
+ isLargeMenu: s,
1003
+ children: I ? /* @__PURE__ */ N(le, {
980
1004
  children: [
981
- /* @__PURE__ */ e(he, {
982
- disabled: B,
1005
+ /* @__PURE__ */ e(ve, {
1006
+ disabled: g,
983
1007
  group: "burger-menu-lock",
984
- children: R
1008
+ children: y
985
1009
  }),
986
- /* @__PURE__ */ e(Fn, {
987
- open: N,
988
- id: g,
1010
+ /* @__PURE__ */ e(Wn, {
1011
+ open: v,
1012
+ id: b,
989
1013
  sections: n,
990
- extra: c,
991
- closeMenu: C,
992
- disableFocusTrap: B,
993
- setDisableFocusTrap: h
1014
+ extra: d,
1015
+ closeMenu: D,
1016
+ topSlotHeight: f,
1017
+ disableFocusTrap: g,
1018
+ setDisableFocusTrap: O
994
1019
  })
995
1020
  ]
996
- }) : R
1021
+ }) : y
997
1022
  });
998
- }, Tt = (param)=>{
999
- let { logo: n, right: t, variant: a = "default", topFixed: r = !0, withBorder: i = !0, wide: p = !1 } = param;
1000
- n = n !== null && n !== void 0 ? n : /* @__PURE__ */ e(ve, {
1023
+ }, yt = (param)=>{
1024
+ let { logo: n, right: t, variant: a = "default", topFixed: i = !0, withBorder: r = !0, wide: c = !1 } = param;
1025
+ n = n !== null && n !== void 0 ? n : /* @__PURE__ */ e(Me, {
1001
1026
  size: {
1002
1027
  mobile: 40,
1003
1028
  desktop: 48
1004
1029
  }
1005
1030
  });
1006
- const c = ee(a);
1007
- return /* @__PURE__ */ b(F, {
1008
- variant: c,
1031
+ const l = ne(a);
1032
+ return /* @__PURE__ */ N(W, {
1033
+ variant: l,
1009
1034
  children: [
1010
- /* @__PURE__ */ e(ae, {
1011
- topFixed: r,
1012
- withBorder: i,
1013
- variant: c,
1035
+ /* @__PURE__ */ e(ie, {
1036
+ topFixed: i,
1037
+ withBorder: r,
1038
+ variant: l,
1014
1039
  dataAttributes: {
1015
1040
  "component-name": "FunnelNavigationBar"
1016
1041
  },
1017
- children: /* @__PURE__ */ e(j, {
1018
- wide: p,
1019
- children: /* @__PURE__ */ e(Pe, {
1042
+ children: /* @__PURE__ */ e(F, {
1043
+ wide: c,
1044
+ children: /* @__PURE__ */ e(_e, {
1020
1045
  template: "10",
1021
- children: /* @__PURE__ */ e(G, {
1046
+ children: /* @__PURE__ */ e(z, {
1022
1047
  right: t,
1023
1048
  expandRightContent: !0,
1024
1049
  children: n
@@ -1026,41 +1051,41 @@ const Ln = 120, yn = (param)=>{
1026
1051
  })
1027
1052
  })
1028
1053
  }),
1029
- r && /* @__PURE__ */ e("div", {
1030
- className: ne
1054
+ i && /* @__PURE__ */ e("div", {
1055
+ className: te
1031
1056
  })
1032
1057
  ]
1033
1058
  });
1034
- }, xt = (param)=>{
1059
+ }, Dt = (param)=>{
1035
1060
  let { children: n } = param;
1036
1061
  return /* @__PURE__ */ e("div", {
1037
- className: Me,
1062
+ className: Se,
1038
1063
  "data-component-name": "NavigationBarActionGroup",
1039
- children: /* @__PURE__ */ e(X, {
1064
+ children: /* @__PURE__ */ e(q, {
1040
1065
  space: 24,
1041
1066
  alignItems: "center",
1042
1067
  children: n
1043
1068
  })
1044
1069
  });
1045
- }, Lt = (_param)=>{
1070
+ }, Pt = (_param)=>{
1046
1071
  var { children: n } = _param, t = _object_without_properties(_param, [
1047
1072
  "children"
1048
1073
  ]);
1049
- const a = ye();
1050
- return /* @__PURE__ */ e(J, _object_spread_props(_object_spread({}, t), {
1051
- className: D($e, Me, Se[a]),
1074
+ const a = Pe();
1075
+ return /* @__PURE__ */ e(Q, _object_spread_props(_object_spread({}, t), {
1076
+ className: H(We, Se, be[a]),
1052
1077
  dataAttributes: {
1053
1078
  "component-name": "NavigationBarAction"
1054
1079
  },
1055
- children: /* @__PURE__ */ e(X, {
1080
+ children: /* @__PURE__ */ e(q, {
1056
1081
  space: 16,
1057
1082
  alignItems: "center",
1058
- children: o.Children.map(n, (r)=>typeof r == "string" ? /* @__PURE__ */ e(me, {
1083
+ children: o.Children.map(n, (i)=>typeof i == "string" ? /* @__PURE__ */ e(pe, {
1059
1084
  regular: !0,
1060
1085
  color: "inherit",
1061
- children: r
1062
- }) : r)
1086
+ children: i
1087
+ }) : i)
1063
1088
  })
1064
1089
  }));
1065
1090
  };
1066
- export { Tt as FunnelNavigationBar, Rt as MainNavigationBar, Pn as NavigationBar, Lt as NavigationBarAction, xt as NavigationBarActionGroup, P as useMainNavigationBarDesktopMenuState };
1091
+ export { yt as FunnelNavigationBar, Lt as MainNavigationBar, Vn as NavigationBar, Pt as NavigationBarAction, Dt as NavigationBarActionGroup, _ as useMainNavigationBarDesktopMenuState };