1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1160],{31160:(e,n,l)=>{l.r(n),l.d(n,{Menu:()=>L,MenuItem:()=>P,Navigation:()=>F});var i=l(6029),t=l(81278),a=l(55729),o=l(41735),d=l(60449),u=l.n(d),r=l(71988),s=l(95435),c=l(33092),p=l(39099),m=l(53467),h=l(37725),v=l(71539),g=l(71007),x=l(41903),f=l(28982),y=l(99367);let b=(0,o.default)(f.A).withConfig({displayName:"MenuItem__MenuImage",componentId:"sc-f3ecf8ba-0"})(["max-width:100%;"]),_=o.default.span.withConfig({displayName:"MenuItem__MenuSpan",componentId:"sc-f3ecf8ba-1"})([""," padding:8px 0;@media screen and (min-width:","px){display:block;}"],(0,r.gx)(14),p.v.breakpoints.desktop),w=e=>{var n,l,t,a;let{menuItem:o,onClick:d}=e;switch(o.type){case"text":return null==o||null==(n=o.columns)?void 0:n.map(e=>(0,i.jsx)(m.A,{isExternal:s.A,href:"/".concat(null==e?void 0:e.url_path),onClick:d,children:null==e?void 0:e.name},e.url_path));case"image":return null==o||null==(l=o.columns)?void 0:l.map(e=>(0,i.jsxs)(m.A,{href:null==e?void 0:e.href,isExternal:s.A,onClick:d,children:[(0,i.jsx)(y.A,{width:16,height:9,children:(0,i.jsx)(b,{src:null==e?void 0:e.image})}),(0,i.jsx)(_,{children:null==e?void 0:e.title})]},e.href));case"launches":return null==o||null==(t=o.columns)?void 0:t.map((e,n)=>(0,i.jsx)(g.k,{product:e,index:n},e.urlKey));case"features":return null==(a=o.columns)?void 0:a.map(e=>(0,i.jsx)(x.O,{featureData:e},e.uid));default:return o.type}},k=o.default.div.withConfig({displayName:"Subheader__Column",componentId:"sc-34c880a0-0"})(["grid-column:",";display:grid;grid-auto-flow:row;grid-column-gap:20px;grid-auto-rows:",";max-width:100%;",";grid-row-gap:8px;"],e=>{var n;return"span ".concat(12/((null!=(n=e.columnCount)?n:4)>4?4:e.columnCount))},e=>(null==e?void 0:e.columnType)==="text"?"25px":"auto",e=>(null==e?void 0:e.columnType)==="text"?"grid-template-rows: 38px":""),C=o.default.div.withConfig({displayName:"Subheader__SubheaderSC",componentId:"sc-34c880a0-1"})(["box-sizing:border-box;position:absolute;top:calc(100% + 1px);left:0;display:",";flex-direction:column;align-items:center;width:100vw;min-height:400px;padding:20px 0;background:white;a:hover{color:",";}&:hover{display:flex;}@media screen and (min-width:","px){padding:40px 32px;}"],e=>e.isHidden?"none":"flex",p.v.colours.grey.dovegray,p.v.breakpoints.desktop),I=o.default.div.withConfig({displayName:"Subheader__SubheaderContainer",componentId:"sc-34c880a0-2"})(["width:100%;max-width:1376px;display:grid;grid-template-columns:repeat(12,1fr);grid-auto-columns:0px;grid-auto-rows:repeat(2,1fr);grid-column-gap:20px;@media screen and (min-width:","px){grid-column-gap:24px;}img{width:100%;}"],p.v.breakpoints.desktop),N=(0,o.default)(m.N).attrs(e=>({as:e.link||e.url?m.N:"div",href:e.url?e.url:"/".concat(e.link)})).withConfig({displayName:"Subheader__ColumnHeader",componentId:"sc-34c880a0-3"})(["",";height:38px;"],e=>(0,r.gx)(14,{uppercase:!e.link,type:"semi-bold"})),j=o.default.div.withConfig({displayName:"Subheader__PlaceHolder",componentId:"sc-34c880a0-4"})(["height:22px;height:38px;"]),S=e=>{let{subheader:n,isHidden:l}=e,{trackViewEventMetaCookie:t}=(0,h.z)(),a=null==n?void 0:n.columns,o=null==a?void 0:a.length,d=(e,n)=>{(n?(0,c.z)(e):(0,c.p)(e))&&t.set({method:v.E.NAVIGATION})};return o>0?(0,i.jsx)(C,{className:"subheader",isHidden:l,children:(0,i.jsx)(I,{children:null==a?void 0:a.map(e=>{var l,t,a,r;return(0,i.jsxs)(k,{columnType:null==e?void 0:e.type,columnCount:o,children:[(null==e?void 0:e.type)!=="features"&&(null==e?void 0:e.header)?(0,i.jsx)(N,{link:null==e||null==(l=e.header)?void 0:l.custom_category_link,url:null==e||null==(t=e.header)?void 0:t.custom_url,isExternal:s.A,onClick:(null==e||null==(a=e.header)?void 0:a.custom_category_link)?()=>d(null==n?void 0:n.name,!1):void 0,children:null==e||null==(r=e.header)?void 0:r.name}):(e=>(null==e?void 0:e.type)==="features"?null:(0,i.jsx)(j,{}))(e),(0,i.jsx)(w,{menuItem:e,onClick:()=>d(null==n?void 0:n.name,!0)})]},(e=>{let n=u()(e,"header.url_path",null)||u()(e,"columns[0].id",null)||u()(e,"columns[0].href",null)||"first";return"".concat(e.type,"-").concat(n)})(e))})})}):null};var A=l(75989),M=l(65571),E=l(572),O=l(37817),T=l(16676);let H=o.default.span.withConfig({displayName:"Navigation__MenuItemBodySC",componentId:"sc-874eba9b-0"})(["display:flex;justify-content:center;align-items:center;color:",";opacity:",";a{padding:8px 16px 6px;",";}"],p.v.colours.grey.black,e=>e.isFadedOut?"0.5":"1",T.aP),z=(0,o.default)(m.N).withConfig({displayName:"Navigation__LinkSC",componentId:"sc-874eba9b-1"})(["&&&&&{",";}"],e=>e.$isSale&&"color: ".concat(p.v.colours.red.deepred)),D=o.default.nav.withConfig({displayName:"Navigation__NavigationRowSC",componentId:"sc-874eba9b-2"})(["position:relative;display:flex;align-items:center;justify-content:center;height:56px;background-color:",";border-top:1px solid ",";"],p.v.colours.grey.white,p.v.colours.grey.concrete),P=e=>{var n,l;let{menuItem:t,setSubheader:o,activeMenuItem:d}=e,{setHomeState:u,languageSelectorOpen:r}=(0,a.useContext)(A.Y),{isTablet:p}=(0,O.W)(),{trackViewEventMetaCookie:m}=(0,h.z)(),g=null==t?void 0:t.name,x=(0,c.p)(g),f=!!d&&d!==(null==t?void 0:t.name),y=e=>{e.preventDefault(),o(t.id),r&&u({languageSelectorOpen:!1})},b=null!=(l=null==t?void 0:t.custom_dropdown_link)?l:"/".concat(null!=(n=null==t?void 0:t.custom_category_link)?n:null==t?void 0:t.url_path);return(0,i.jsx)(H,{"data-test-id":"menu-item-".concat(null==g?void 0:g.replace(" ","-").toLowerCase()),"selenium-id":"menu-item-".concat(g),onMouseEnter:y,onMouseDown:e=>{p&&y(e)},isFadedOut:f,children:(0,i.jsx)(z,{isExternal:s.A,href:b,$isSale:null==t?void 0:t.isSale,onClick:e=>{x&&m.set({method:v.E.NAVIGATION}),p&&e.preventDefault()},children:null==t?void 0:t.name})})},L=e=>{let{menu:n,setSubheader:l,activeMenuItem:t}=e;return n?n.map((e,n)=>{var a;return(0,i.jsx)(P,{menuItem:e,setSubheader:l,activeMenuItem:t,index:n},null!=(a=null==e?void 0:e.custom_category_link)?a:null==e?void 0:e.url_path)}):null},F=()=>{let e,{isTablet:n}=(0,O.W)(),{setHomeState:l,selectedSubheader:o}=(0,a.useContext)(A.Y),d=(0,E.b)(),u=e=>l({selectedSubheader:e,accountPanelOpen:!1}),r=(0,a.useMemo)(()=>null==d?void 0:d.find(e=>e.id===o),[d,o]),s=null==r?void 0:r.name,c=!(0,M.I)(r),p=async l=>c||n?u(l):e=setTimeout(()=>u(l),150),m=()=>{clearTimeout(e),u(!1)},h=(0,t.useRouter)();return(0,a.useEffect)(()=>
1{r&&m()},[h.asPath]),(0,i.jsxs)(D,{id:"navigation","data-test-id":"navigation",onMouseLeave:()=>{m(),l({selectedSubheader:!1})},children:[(0,i.jsx)(L,{menu:d,setSubheader:p,activeMenuItem:s}),c&&(0,i.jsx)(S,{subheader:r,isHidden:!1}),Array.isArray(d)&&d.map(e=>e&&e.id!==o?(0,i.jsx)(S,{subheader:e,isHidden:!0},e.id):null)]})}},65571:(e,n,l)=>{l.d(n,{I:()=>i});let i=e=>[Object,Array].includes((e||{}).constructor)&&!Object.entries(e||{}).length}}]);
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.