1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2434],{42434:(e,t,n)=>{n.r(t),n.d(t,{default:()=>m});var a=n(37876),r=n(14232),s=n(18847),i=n.n(s),o=n(89099),c=n(70143),l=n(62954),u=n(84730),d=n(32187),f=n(649);let p=i()(async()=>n.e(1985).then(n.bind(n,61985)),{loadableGenerated:{webpack:()=>[61985]}}),v=i()(async()=>Promise.all([n.e(3597),n.e(5111),n.e(9376)]).then(n.bind(n,99376)),{loadableGenerated:{webpack:()=>[99376]}}),h=i()(async()=>Promise.all([n.e(3597),n.e(5111),n.e(2681)]).then(n.bind(n,2681)),{loadableGenerated:{webpack:()=>[2681]}}),m=e=>{var t;let{...n}=e,s=(0,o.useRouter)(),i=(0,r.useRef)(null),{scrollDirection:m,scrollPosition:g}=(0,l.K)(5),w=(0,u.j)(),{logoNavigationItem:b,currencyCTAs:E}=n,{activeDropdown:k,redesignAlertBannerHeight:N,desktopNavHeight:x,isMobileAccordionNavOpen:y,setActiveDropdown:j,setIsMobileAccordionNavOpen:H,setDesktopNavHeight:L,tabletBreakpoint:A,globalCurrency:S}=(0,d.DO)(e=>({activeDropdown:e.activeDropdown,redesignAlertBannerHeight:e.redesignAlertBannerHeight,desktopNavHeight:e.desktopNavHeight,setActiveDropdown:e.setActiveDropdown,isMobileAccordionNavOpen:e.isMobileAccordionNavOpen,setIsMobileAccordionNavOpen:e.setIsMobileAccordionNavOpen,setDesktopNavHeight:e.setDesktopNavHeight,tabletBreakpoint:e.tabletBreakpoint,globalCurrency:e.currency})),[C,D]=(0,r.useState)(!1),M=(0,f.y)().width<(null!=A?A:1180),[_,O]=(0,r.useState)(),[T,B]=(0,r.useState)(""),[P,R]=(0,r.useState)("closed"),G=null==E||null==(t=E.find(e=>{let{currency:t}=e;return t===S}))?void 0:t.cta,[I,K]=(0,r.useState)(!0),Q=90;return i&&i.current&&(Q=i.current.offsetHeight,document.documentElement.style.setProperty("--nav-offset-position","-".concat(Q,"px"))),(0,r.useEffect)(()=>{D(!0)},[]),(0,r.useEffect)(()=>{if(i&&i.current){var e;L(null!=(e=i.current.offsetHeight)?e:0)}M?(j(null),R("closed")):(H(!1),L(0),j(null))},[N,M,i,Q,j,L,A,H,s.pathname]),(0,r.useEffect)(()=>{i&&i.current&&!w&&(M?i.current.classList.contains("opened")?O(50):O(100):i.current.classList.contains("opened")?O(100):O(250))},[i,M,k,w]),(0,r.useEffect)(()=>{let e;return k?(R(i.current&&!i.current.classList.contains("opened")?"opening":"updating"),e=setTimeout(()=>{i.current&&(i.current.classList.contains("opening")||i.current.classList.contains("updating"))&&R("opened")},_)):R("closed"),()=>clearTimeout(e)},[k,N,_]),(0,r.useEffect)(()=>{(()=>{if(i&&i.current){let e=M?i.current.offsetHeight:0,t=k?e+x:0;document.documentElement.style.setProperty("--dropdown-height","".concat(t,"px"))}})()},[i,x,N,k,M]),(0,r.useEffect)(()=>{let e,t=200+N,n=e=>{B(e)};if(g<=t/2){n("animate-nav-in"),K(!0);return}if(g<t){n("animate-nav-in"),I||n("animate-nav-in has-border");return}return g>t&&("down"!==m||k||y?"up"===m&&(e=setTimeout(()=>{n("animate-nav-in has-border")},100)):e=setTimeout(()=>{n("animate-nav-out has-border"),K(!1)},100)),()=>clearTimeout(e)},[k,N,m,g,y,I]),(0,r.useEffect)(()=>{let e=()=>{j(null),H(!1),M?R("closed"):L(0)};return s.events.on("routeChangeComplete",e),()=>{s.events.off("routeChangeComplete",e)}},[s.events,H,L,j,M]),(0,a.jsx)("nav",{ref:i,className:(0,c.Q)("header-navigation light",T,P,y&&"mobile-nav-open",!C&&"invisible"),role:"navigation","data-testid":"navigation",children:(0,a.jsx)("div",{className:(0,c.Q)("header-navigation__content",y&&"mobile-nav-open"),children:(0,a.jsxs)("div",{className:"max-w-xlRedesign flex h-full items-center justify-between gap-4 xlRedesign:justify-start",children:[b&&(0,a.jsx)(p,{...b}),M&&C&&(0,a.jsx)(v,{...n,cta:G||n.cta}),!1===M&&C&&(0,a.jsx)(h,{...n,cta:G||n.cta})]})})})}},62954:(e,t,n)=>{n.d(t,{K:()=>r});var a=n(14232);let r=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,[t,n]=(0,a.useState)("down"),[r,s]=(0,a.useState)(0);return(0,a.useEffect)(()=>{let a=window.scrollY,r=()=>{let r=window.scrollY;if(s(r),Math.abs(r-a)>=e){let e=r>a?"down":"up";e!==t&&n(e),a=r>0?r:0}};return window.addEventListener("scroll",r),()=>{window.removeEventListener("scroll",r)}},[t,r,e]),{scrollDirection:t,scrollPosition:r}}},84730:(e,t,n)=>{n.d(t,{j:()=>s});var a=n(14232);let r="(prefers-reduced-motion: no-preference)",s=()=>{let[e,t]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{let e=window.matchMedia(r);t(!window.matchMedia(r).matches);let n=e=>{t(!e.matches)};
1return e.addEventListener("change",n),()=>{e.removeEventListener("change",n)}},[]),e}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.