(window.webpackJsonp=window.webpackJsonp||[]).push([[443],{WDnQ:function(n,e,t){"use strict";t.r(e),t.d(e,"NavigationContent",(function(){return ne}));var a,o,r,i,c,l,d,u,s,v,h,p,f,m,b,g,y,x,k,w,O,j,F,A,D,L,N,T,S,E,H,B,C,I=t("ERkP"),q=t.n(I),R=t("HiA1"),W=t("zygG"),K=t("KD1n"),G=t("jiAW"),U=t("135/"),M=t("VU4M"),P=I.createElement,V=M.c.ul(a||(a=Object(K.a)(["\n list-style-type: none;\n"]))),X=M.c.div(o||(o=Object(K.a)(["\n background: transparent;\n border: 2px solid transparent;\n padding: "," calc("," - 2px);\n margin: "," ",";\n\n &:focus-within {\n border: 2px solid ",";\n }\n \n &:hover {\n ","\n\n /* DO NOT GROUP WITH ABOVE BREAKS POLYFILL FOR MSOFT BROWSERS */\n &.focus-within {\n border: 2px solid ",";\n }\n &:hover {\n ","\n }\n"])),Object(G.h)(1),Object(G.h)(1),Object(G.h)(1),Object(G.h)(-1),(function(n){return n.theme.colors.palette.brand.base}),(function(n){return"background: ".concat(n.theme.patterns.header.navigation.dropdownHeaderHover.hoverBackgroundColor,";")}),(function(n){return n.theme.colors.palette.brand.base}),(function(n){return"background: ".concat(n.theme.patterns.header.navigation.dropdownHeaderHover.hoverBackgroundColor,";")})),Z=M.c.a(r||(r=Object(K.a)(["\n background: transparent;\n ",";\n outline: none;\n text-decoration: ",";\n color: ",";\n text-transform: ",";\n\n &:hover {\n ","\n }\n"])),(function(n){return Object(U.a)(n.theme.patterns.header.navigation.dropdownHeaderFont.entry,n.theme.patterns.header.navigation.dropdownHeaderFont.style)}),(function(n){return n.theme.patterns.header.navigation.dropdownHeaderFont.textDecoration}),(function(n){return n.theme.patterns.header.navigation.dropdownHeaderFont.textColor}),(function(n){return n.theme.patterns.header.navigation.dropdownHeaderFont.transform}),(function(n){return"#FFFFFF"===n.theme.patterns.header.navigation.dropdownHeaderHover.hoverBackgroundColor&&"text-decoration: underline;"})),_=M.c.li(i||(i=Object(K.a)(["\n display: flex;\n padding: calc("," - 2px) calc("," - 2px);\n margin: 0 ",";\n border: 2px solid transparent;\n &:focus-within {\n border: 2px solid ",";\n }\n &:hover {\n ","\n a {\n color: ",";\n }\n }\n\n /* DO NOT GROUP WITH ABOVE BREAKS POLYFILL FOR MSOFT BROWSERS */\n &.focus-within {\n border: 2px solid ",";\n }\n &:hover {\n ","\n }\n"])),Object(G.h)(.5),Object(G.h)(1),Object(G.h)(-1),(function(n){return n.theme.colors.palette.brand.base}),(function(n){return"#FFFFFF"!==n.theme.patterns.header.navigation.linkHover.hoverBackgroundColor&&"background: ".concat(n.theme.patterns.header.navigation.linkHover.hoverBackgroundColor,";")}),(function(n){return n.theme.patterns.header.navigation.linkHover.hoverLinkFont.textColor}),(function(n){return n.theme.colors.palette.brand.base}),(function(n){return"#FFFFFF"!==n.theme.patterns.header.navigation.linkHover.hoverBackgroundColor&&"background: ".concat(n.theme.patterns.header.navigation.linkHover.hoverBackgroundColor,";")})),J=M.c.a(c||(c=Object(K.a)(["\n width: 100%;\n ",";\n color: ",";\n outline: none;\n text-decoration: ",";\n text-transform: ",";\n\n &:hover {\n ","\n ",";\n color: ",";\n text-decoration: ",";\n text-transform: ",";\n }\n\n &:active {\n ",";\n }\n"])),(function(n){return Object(U.a)(n.theme.patterns.header.navigation.linkFont.entry,n.theme.patterns.header.navigation.linkFont.style)}),(function(n){return n.theme.patterns.header.navigation.linkFont.textColor}),(function(n){return n.theme.patterns.header.navigation.linkFont.textDecoration}),(function(n){return n.theme.patterns.header.navigation.linkFont.transform}),(function(n){return"#FFFFFF"===n.theme.patterns.header.navigation.linkHover.hoverBackgroundColor&&"text-decoration: underline;"}),(function(n){return Object(U.a)(n.theme.patterns.header.navigation.linkHover.hoverLinkFont.entry,n.theme.patterns.header.navigation.linkHover.hoverLinkFont.style)}),(function(n){return n.theme.patterns.header.navigation.linkHover.hoverLinkFont.textColor}),(function(n){return n.theme.patterns.header.navigation.linkHover.hoverLinkFont.textDecoration}),(function(n){return n.theme.patterns.header.navigation.linkHover.hoverLinkFont.transform}),(function(n){return Object(U.a)(n.theme.patterns.header.navigation.linkFont.entry,n.theme.patterns.header.navigation.linkFont.style)})),Y=M.c.div(l||(l=Object(K.a)(["\n flex-basis: calc(",");\n"])),(function(n){return n.columnWidth})),z=M.c.div(d||(d=Object(K.a)(["\n border-top: 1px solid ",";\n margin: "," "," "," ",";\n"])),(function(n){return n.theme.colors.palette.greys.light}),Object(G.h)(1),Object(G.h)(2),Object(G.h)(2),Object(G.h)(2)),Q=M.c.div(u||(u=Object(K.a)(["\n padding-top: ",";\n"])),Object(G.h)(2)),$=M.c.div(s||(s=Object(K.a)(["\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n flex-basis: calc(5 * (100% / 6));\n"]))),nn=function(n,e,t,a){return n.map((function(n,o){var r;return n.link?P(_,{key:"subnavigation-link-".concat(o),"data-testid":"subnavigation-link"},P(J,{href:null===(r=n.link)||void 0===r?void 0:r.url,"data-nav-name":"".concat(t),"data-nav-index":"".concat(e,",").concat(o+1),onFocus:function(){a(e,o+1)}},n.displayName)):null}))},en=M.c.div(v||(v=Object(K.a)(["\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n padding: "," ",";\n width: auto;\n"])),Object(G.h)(2),Object(G.h)(2)),tn=function(n){var e,t,a,o,r,i,c=n.item,l=n.dynamicWidth,d=I.useState([-1,-1]),u=Object(W.a)(d,2),s=u[0],v=u[1],h=function(n){var e;switch(n.key){case"ArrowLeft":n.preventDefault();var t=document.querySelector('[data-nav-name="'.concat(c.displayName,'"][data-nav-index="').concat(s[0]-1,",").concat(s[1],'"]'))||document.querySelector('[data-nav-name="'.concat(c.displayName,'"][data-nav-index="').concat(s[0]-1,",").concat(s[1]+1,'"]'));if(t)t.focus();else if(document.querySelector('[data-nav-name="'.concat(c.displayName,'"][data-nav-index="').concat(s[0]-1,',0"]'))){for(var a,o=s[1]-1;!a;)a=document.querySelector('[data-nav-name="'.concat(c.displayName,'"][data-nav-index="').concat(s[0]-1,",").concat(o,'"]')),o-=1;a.focus()}break;case"ArrowUp":n.preventDefault();var r=document.querySelector('[data-nav-name="'.concat(c.displayName,'"][data-nav-index="').concat(s[0],",").concat(s[1]-1,'"]'));if(r)r.focus();else if(document.querySelector('[data-nav-name="'.concat(c.displayName,'"][data-nav-index="').concat(s[0]-1,',0"]'))||document.querySelector('[data-nav-name="'.concat(c.displayName,'"][data-nav-index="').concat(s[0]-1,',1"]'))){for(var i=document.querySelector('[data-nav-name="'.concat(c.displayName,'"][data-nav-index="').concat(s[0]-1,',0"]'))||document.querySelector('[data-nav-name="'.concat(c.displayName,'"][data-nav-index="').concat(s[0]-1,',1"]')),l=0;l<=1;l+=1)for(var d=l;i;){var u=document.querySelector('[data-nav-name="'.concat(c.displayName,'"][data-nav-index="').concat(s[0]-1,",").concat(d,'"]'));if(!u)break;i=u,d+=1}i.focus()}break;case"ArrowRight":n.preventDefault();var v=document.querySelector('[data-nav-name="'.concat(c.displayName,'"][data-nav-index="').concat(s[0]+1,",").concat(s[1],'"]'));if(v)v.focus();else if(document.querySelector('[data-nav-name="'.concat(c.displayName,'"][data-nav-index="').concat(s[0]+1,',0"]'))){for(var h,p=s[1]-1;!h;)h=document.querySelector('[data-nav-name="'.concat(c.displayName,'"][data-nav-index="').concat(s[0]+1,",").concat(p,'"]')),p-=1;h.focus()}break;case"ArrowDown":n.preventDefault();var f=document.querySelector('[data-nav-name="'.concat(c.displayName,'"][data-nav-index="').concat(s[0],",").concat(s[1]+1,'"]'));f?f.focus():null===(e=document.querySelector('[data-nav-name="'.concat(c.displayName,'"][data-nav-index="').concat(s[0]+1,',0"]')))||void 0===e||e.focus()}},p=function(n,e){v([n,e])},f=null===c||void 0===c?void 0:null===(e=c.subNavigation)||void 0===e?void 0:e[0],m="FEATURED"===(null===c||void 0===c?void 0:null===(t=c.subNavigation)||void 0===t?void 0:t[0].type)&&P(Y,{key:"sub-nav-column-0","data-testid":"sub-nav-column",columnWidth:"100% / 6"},P(Q,null,(null===f||void 0===f?void 0:f.subNavigation)&&P(V,{"aria-labelledby":null===f||void 0===f?void 0:f.id},nn(null===f||void 0===f?void 0:f.subNavigation,0,c.displayName,p)))),b=l&&(null===c||void 0===c?void 0:null===(a=c.subNavigation)||void 0===a?void 0:a.length)&&(null===c||void 0===c?void 0:null===(o=c.subNavigation)||void 0===o?void 0:o.length)<6?"100% / ".concat(null===c||void 0===c?void 0:null===(r=c.subNavigation)||void 0===r?void 0:r.length):"",g=null===c||void 0===c?void 0:null===(i=c.subNavigation)||void 0===i?void 0:i.map((function(n,e){return function(n,e,t,a,o,r){var i,c=o?"100% / 5":r||"100% / 6";return"FEATURED"!==n.type?P(Y,{key:"sub-nav-column-".concat(e),"data-testid":"sub-nav-column",columnWidth:c},P(z,null,P(X,null,P(Z,{href:null===(i=n.link)||void 0===i?void 0:i.url,"data-nav-name":"".concat(t),"data-nav-index":"".concat(e,",",0),onFocus:function(){a(e,0)}},n.displayName)),n.subNavigation&&P(V,{"aria-labelledby":n.id},nn(n.subNavigation,e,t,a)))):null}(n,e,c.displayName,p,!!m,b)}));return m?P(en,{onKeyDown:h},m,P($,null,g)):P(en,{onKeyDown:h},g)},an=t("7asP"),on=I.createElement,rn=Object(G.i)(an.a)(h||(h=Object(K.a)(["\n ",";\n height: ",";\n padding: "," ",";\n\n &:focus-within {\n padding: "," ",";\n }\n &:hover {\n padding: "," ",";\n }\n"])),Object(U.a)("bodyText","alternate"),Object(G.h)(5),Object(G.h)(1),Object(G.h)(2),Object(G.h)(1),Object(G.h)(2),Object(G.h)(1),Object(G.h)(2)),cn=G.i.button(p||(p=Object(K.a)(["\n display: inline-flex;\n margin: 0;\n border: 2px solid transparent;\n align-items: center;\n width: ",";\n justify-content: center;\n\n ","\n\n &:focus {\n outline: none;\n background-color: ",";\n border: 2px solid ",";\n }\n\n &:hover {\n background-color: ",";\n cursor: pointer;\n }\n"])),Object(G.h)(5),(function(n){return n.isSelected&&"\n outline: none;\n background-color: ".concat(n.theme.colors.palette.greys.lighter,";\n border: 2px solid ").concat(n.theme.colors.palette.brand.base,";")}),(function(n){return n.theme.colors.palette.greys.lighter}),(function(n){return n.theme.colors.palette.brand.base}),(function(n){return n.theme.colors.palette.greys.lighter})),ln=G.i.div(f||(f=Object(K.a)(["\n display: inline;\n margin: 0;\n margin-left: auto;\n"]))),dn=G.i.div(m||(m=Object(K.a)(["\n ",";\n"])),Object(U.a)("bodyText","alternate")),un=G.i.div(b||(b=Object(K.a)(["\n margin: 0;\n display: flex;\n height: 100%;\n padding: 0;\n border-top: 1px solid ",";\n border-bottom: 1px solid ",";\n"])),(function(n){return n.theme.colors.palette.greys.grey}),(function(n){return n.theme.colors.palette.greys.grey})),sn=function(n){var e,t=I.useState(0),a=Object(W.a)(t,2),o=a[0],r=a[1],i=I.useState(!1),c=Object(W.a)(i,2),l=c[0],d=c[1];return on(I.Fragment,null,on(un,{role:"tablist","aria-label":n.i18nText.navAriaLabel,"data-testid":"group-list"},null===(e=n.availableGroups)||void 0===e?void 0:e.map((function(e,t){var a=n.selectedGroup===e&&l;return on(cn,{role:"tab",key:t,"data-group-index":t,"data-group-value":e,onKeyDown:function(n){return function(n,e){switch(n.key){case"ArrowLeft":n.preventDefault();var t=document.querySelector('[data-group-index="'.concat(o-1,'"]'));null===t||void 0===t||t.focus();break;case"ArrowRight":n.preventDefault();var a=document.querySelector('[data-group-index="'.concat(o+1,'"]'));a&&a.focus();break;case"ArrowDown":n.preventDefault();var r=document.querySelector('[data-brand-index="'.concat(e,' 0"]'));null===r||void 0===r||r.focus(),d(!0);break;case"Escape":d(!1)}}(n,t)},onFocus:function(){return function(e,t){d(!1),r(t),n.selectBrands(e)}(e,t)},onBlur:function(){return d(!1)},isSelected:a},on(dn,{"data-testid":"group-".concat(e),onMouseEnter:function(){return n.selectBrands(e)}},e.toUpperCase()))})),on(ln,null,on(rn,{href:n.viewAllBrandsLink,emphasis:"low",renderedAs:"a"},n.i18nText.viewAllBrands))))},vn=I.createElement,hn=M.c.a(g||(g=Object(K.a)(["\n ",";\n outline: none;\n text-decoration: none;\n padding: ",";\n\n &:hover,\n &:focus {\n text-decoration: underline;\n }\n &:active {\n ",";\n }\n\n &:nth-child(n) {\n flex-basis: 20%;\n }\n"])),(function(n){return Object(U.a)(n.theme.patterns.header.navigation.font.active.entry||"bodyText",n.theme.patterns.header.navigation.font.active.style||"default")}),Object(G.h)(1),(function(n){return Object(U.a)(n.theme.patterns.header.navigation.font.active.entry||"bodyText",n.theme.patterns.header.navigation.font.active.style||"alternate")})),pn=M.c.div(y||(y=Object(K.a)(["\n margin: ",";\n ","\n flex-direction: row;\n flex-wrap: wrap;\n"])),Object(G.h)(4),(function(n){return n.isFocused?"display: flex;":"display: none;"})),fn=function(n){var e,t=I.useState(0),a=Object(W.a)(t,2),o=a[0],r=a[1],i=function(e){switch(e.key){case"ArrowUp":e.preventDefault(),0===o&&n.focusCurrentGroup();var t=document.querySelector('[data-brand-index="'.concat(n.panelIndex," ").concat(o-5,'"]'));t&&t.focus();break;case"ArrowDown":e.preventDefault();var a=document.querySelector('[data-brand-index="'.concat(n.panelIndex," ").concat(o+5,'"]'));a&&a.focus();break;case"ArrowRight":e.preventDefault();var r=document.querySelector('[data-brand-index="'.concat(n.panelIndex," ").concat(o+1,'"]'));r&&r.focus();break;case"ArrowLeft":e.preventDefault();var i=document.querySelector('[data-brand-index="'.concat(n.panelIndex," ").concat(o-1,'"]'));i&&i.focus()}};return vn(pn,{role:"tabpanel","data-testid":"brands-list",isFocused:n.isFocused},null===(e=n.brands)||void 0===e?void 0:e.map((function(e,t){var a,o;return vn(hn,{key:t,href:n.listExtension?"".concat(null===(a=e.page)||void 0===a?void 0:a.path).concat(n.listExtension):null===(o=e.page)||void 0===o?void 0:o.path,"data-testid":"brand-".concat(e.name),"data-brand-index":"".concat(n.panelIndex," ").concat(t),onKeyDown:i,onFocus:function(){return function(n){r(n)}(t)}},e.name[0].toUpperCase()+e.name.slice(1))})))},mn=I.createElement,bn=G.i.div(x||(x=Object(K.a)(["\n padding: ",";\n"])),Object(G.h)(2)),gn=function(n){var e=n.brandsData.brands&&n.brandsData.brands.slice().sort((function(n,e){return n.name.toLowerCase()>e.name.toLowerCase()?1:-1})),t=e&&e.map((function(n){return n.name[0]<="9"&&n.name[0]>="0"?"0-9":n.name[0]})),a=null===t||void 0===t?void 0:t.map((function(n){return n.toLowerCase()})),o=a&&Array.from(new Set(a)),r=null===o||void 0===o?void 0:o.splice(0,1);r&&"0-9"===r[0]&&o.push(r[0]);var i=function(n){return n<="9"&&n>="0"?e&&e.filter((function(n){return n.name[0]<="9"&&n.name[0]>="0"})):e&&e.filter((function(e){return e.name[0].toLowerCase()===n}))},c=o.map((function(n){return{group:n,brands:i(n)}})),l=I.useState(o&&o[0]),d=Object(W.a)(l,2),u=d[0],s=d[1],v=function(){var n=document.querySelector('[data-group-value="'.concat(u,'"]'));n&&n.focus()};return mn(bn,null,n.brandsData&&mn(I.Fragment,null,mn(sn,{viewAllBrandsLink:n.viewAllBrandsLink,availableGroups:o,i18nText:{viewAllBrands:n.i18nText.viewAllBrands,navAriaLabel:n.i18nText.navAriaLabel},selectBrands:function(n){s(n)},selectedGroup:u}),c.map((function(e,t){var a=e.group===u;return mn(fn,{key:t,brands:e.brands,panelIndex:t,isFocused:a,focusCurrentGroup:v,listExtension:n.listExtension})}))))},yn=t("fNWo"),xn=t("9ZFW"),kn=t("b6mI"),wn=G.i.div(k||(k=Object(K.a)(["\n width: 50%;\n display: ",";\n padding: "," ",";\n background-color: ",";\n"])),(function(n){return n.showDetachedList?"none":"flex"}),Object(G.h)(4),Object(G.h)(2),(function(n){return n.showDetachedList?n.theme.colors.palette.greys.white:n.theme.colors.palette.greys.lighter})),On=G.i.ul(w||(w=Object(K.a)(["\n width: 50%;\n display: flex;\n flex-direction: column;\n"]))),jn=G.i.a(O||(O=Object(K.a)(["\n ","\n padding: "," calc("," - 3px);\n border: solid 1px transparent;\n width: 100%;\n text-decoration: none;\n outline: none;\n\n &:hover {\n color: ",";\n text-decoration: underline;\n }\n"])),Object(U.a)("small","default"),Object(G.h)(1),Object(G.h)(2),(function(n){return n.theme.colors.palette.brand.base})),Fn=G.i.li(j||(j=Object(K.a)(["\n border: solid 1px transparent;\n\n &:focus-within {\n border: solid 1px ",";\n }\n"])),(function(n){return n.theme.colors.palette.greys.darker})),An=G.i.div(F||(F=Object(K.a)(["\n width: 50%;\n display: flex;\n flex-direction: row;\n padding: "," ",";\n height: ",";\n"])),Object(G.h)(4),Object(G.h)(2),"537px"),Dn=G.i.li(A||(A=Object(K.a)(["\n ","\n padding: calc("," - 3px) 0 "," 0;\n margin: 0 calc("," - 3px);\n border-top: solid 2px ",";\n border-right: solid 2px transparent;\n border-bottom: solid 2px transparent;\n border-left: solid 2px transparent;\n list-style: none;\n\n &:focus-within {\n border: solid 2px ",";\n }\n"])),Object(U.a)("bodyText","alternate"),Object(G.h)(2),Object(G.h)(3),Object(G.h)(2),(function(n){return n.theme.colors.palette.greys.light}),(function(n){return n.theme.colors.palette.greys.darker})),Ln=Object(G.e)(D||(D=Object(K.a)(["\n display: flex;\n align-items: center;\n padding: "," ",";\n height: ",";\n width: 100%;\n margin: 0;\n height: ",";\n"])),Object(G.h)(1),Object(G.h)(2),Object(G.h)(5),Object(G.h)(5)),Nn=(G.i.li(L||(L=Object(K.a)(["\n ","\n background-color: ",";\n\n &:hover {\n background-color: ",";\n\n svg {\n display: block;\n fill: ",";\n }\n }\n\n &:focus-within {\n outline: none;\n background-color: ",";\n\n svg {\n display: block;\n fill: ",";\n }\n }\n\n svg {\n fill: ",";\n display: ",";\n }\n"])),Ln,(function(n){return n.isActive&&n.theme.colors.palette.greys.lighter}),(function(n){return n.theme.colors.palette.greys.lighter}),(function(n){return n.theme.colors.palette.greys.dark}),(function(n){return n.theme.colors.palette.greys.lighter}),(function(n){return n.theme.colors.palette.greys.dark}),(function(n){return n.isActive&&n.theme.colors.palette.greys.dark}),(function(n){return!n.isActive&&"none"})),Object(G.e)(N||(N=Object(K.a)(["\n height: ",";\n overflow-y: auto;\n\n &::-webkit-scrollbar {\n -webkit-appearance: none;\n width: 8px;\n }\n\n &::-webkit-scrollbar-thumb {\n border-radius: 8px;\n border: 2px solid ",";\n background-color: ",";\n }\n"])),"472px",(function(n){return n.theme.colors.palette.greys.white}),(function(n){return n.theme.colors.palette.greys.lighter}))),Tn=G.i.ul(T||(T=Object(K.a)(["\n width: 50%;\n ","\n"])),Nn),Sn=G.i.ul(S||(S=Object(K.a)(["\n ","\n width: 50%;\n ","\n"])),(function(n){return!n.showing&&"display: none;"}),Nn),En=G.i.a(E||(E=Object(K.a)(["\n text-decoration: none;\n outline: none;\n font-weight: bold;\n border: solid 1px transparent;\n\n &:hover {\n color: ",";\n text-decoration: underline;\n }\n"])),(function(n){return n.theme.colors.palette.brand.base})),Hn=I.createElement,Bn=function(n){return Hn(wn,{showDetachedList:n.showDetachedList},n.navigationItems.map((function(n,e){var t;return Hn(On,{key:"detached-list-".concat(e)},Hn(Dn,null,n.displayName),null===(t=n.subNavigation)||void 0===t?void 0:t.map((function(n,e){var t;return Hn(Fn,{key:"detached-link-".concat(e)},Hn(jn,{href:null===(t=n.link)||void 0===t?void 0:t.url},n.displayName))})))})))},Cn=t("AU4o"),In=t.n(Cn),qn=t("MBBK"),Rn=q.a.createElement,Wn=M.c.li(H||(H=Object(K.a)(["\n ","\n &:hover {\n ","\n\n ","\n \n\n svg {\n display: block;\n fill: ",";\n }\n }\n\n &:focus-within {\n outline: none;\n\n svg {\n display: block;\n fill: ",";\n }\n }\n\n svg {\n fill: ",";\n display: ",";\n }\n"])),Ln,(function(n){return n.level===Pn.two&&"background-color: ".concat(n.theme.patterns.header.navigation.waterfall.hoverBackgroundColor,";")}),(function(n){return n.level===Pn.three&&"color: ".concat(n.theme.patterns.header.navigation.waterfall.hoverLink.textColor,";\n background-color: #FFFFFF")}),(function(n){return n.theme.colors.palette.greys.dark}),(function(n){return n.theme.colors.palette.greys.dark}),(function(n){return n.isActive&&n.theme.colors.palette.greys.dark}),(function(n){return!n.isActive&&"none"})),Kn=M.c.a(B||(B=Object(K.a)(["\n ","\n color: ",";\n outline: none;\n text-decoration: ",";\n text-transform: ",";\n display: flex;\n align-items: center;\n justify-content: space-between;\n width: 100%;\n\n &:hover {\n ","\n color: ","\n \n\n text-decoration:",";\n text-transform: ",";\n }\n"])),(function(n){return Object(U.a)(n.theme.patterns.header.navigation.waterfall.link.entry,n.theme.patterns.header.navigation.waterfall.link.style)}),(function(n){return n.theme.patterns.header.navigation.waterfall.link.textColor}),(function(n){return n.theme.patterns.header.navigation.waterfall.link.textDecoration}),(function(n){return n.theme.patterns.header.navigation.waterfall.link.transform}),(function(n){return Object(U.a)(n.theme.patterns.header.navigation.waterfall.hoverLink.entry,n.theme.patterns.header.navigation.waterfall.hoverLink.style)}),(function(n){return n.level===Pn.three?n.theme.patterns.header.navigation.waterfall.hoverLink.textColor:n.theme.patterns.header.navigation.waterfall.link.textColor}),(function(n){return n.level===Pn.three&&n.theme.patterns.header.navigation.waterfall.hoverLink.textDecoration}),(function(n){return n.theme.patterns.header.navigation.waterfall.hoverLink.transform})),Gn=function(n){return Rn(Wn,{level:n.level,isActive:n.displayIcon,onMouseEnter:n.selectionHandler,onFocus:n.deselectionHandler,onKeyDown:function(e){n.handleLevelThreeKeyPress&&n.handleLevelThreeKeyPress(e),n.selectionHandler&&n.deselectionHandler&&function(n,e,t,a){var o=a||0===a,r=document.querySelector('[data-level-three-index="'.concat(a,'"]'));switch(n.key){case qn.a.ArrowRight:o&&r&&r.focus(),e();break;case qn.a.Tab:o&&(n.preventDefault(),r&&r.focus());break;case qn.a.Enter:case qn.a.Spacebar:n.preventDefault(),o?t():e()}}(e,n.selectionHandler,n.deselectionHandler,n.levelThreeShowing)},"data-testid":n["data-testid"]},Rn(Kn,{"data-link-index":n.index,href:n.href,level:n.level},n.displayText,n.children))},Un=I.createElement,Mn=In()((function(){return t.e(8).then(t.bind(null,"qIZT"))}),{ssr:!0,fallback:Un("div",{style:{width:24,height:24}}),loadableGenerated:{webpack:function(){return["qIZT"]},modules:["@thg-commerce/gravity-icons/src/components/ChevronRight"]}}),Pn=function(n){return n[n.two=2]="two",n[n.three=3]="three",n}({}),Vn=function(n){return Un(Dn,null,Un(En,{"data-testid":n["data-testid"],href:n.href,"data-level-three-index":n.index},n.displayText))},Xn=function(n,e,t){n.preventDefault(),n.stopPropagation(),e(null);var a=document.querySelector('[data-link-index="'.concat(t,'"]'));a&&a.focus()},Zn=function(n,e,t){return n.map((function(n,a){var o;return n.subNavigation&&Un(Sn,{key:"level-three-list-".concat(a),"data-testid":"level-three-column",showing:a===t,onKeyDown:function(n){!function(n,e,t){switch(n.key){case qn.a.Escape:case qn.a.ArrowLeft:Xn(n,e,t)}}(n,e,t)}},Un(Vn,{displayText:n.displayName,href:null===(o=n.link)||void 0===o?void 0:o.url,index:a,"data-testid":"level-three-heading-".concat(a)}),n.subNavigation.map((function(o,r){var i;return Un(Gn,{key:"level-three-link-".concat(r),index:r,level:Pn.three,"data-testid":"level-three-link-".concat(a,"-").concat(r),href:null===(i=o.link)||void 0===i?void 0:i.url,displayText:o.displayName,handleLevelThreeKeyPress:function(a){var o;return function(n,e,t,a){t&&Xn(n,e,a)}(a,e,(null===(o=n.subNavigation)||void 0===o?void 0:o.length)===r+1,t)}})})))}))},_n=function(n){var e=I.useState(null),t=Object(W.a)(e,2),a=t[0],o=t[1];return Un(An,{onMouseLeave:function(){o(null)}},Un(Tn,{onKeyDown:function(n){n.key===qn.a.Escape&&o(null)}},Un(Vn,{displayText:n.levelOneLink.displayName,href:n.levelOneLink.link.url}),function(n,e,t){return n.map((function(n,a){var o,r;return n.subNavigation?Un(Gn,{key:"level-two-link-".concat(a),"data-testid":"level-two-link-".concat(a),href:null===(o=n.link)||void 0===o?void 0:o.url,displayText:n.displayName,selectionHandler:function(){e(a)},deselectionHandler:function(){e(null)},displayIcon:a===t,levelThreeShowing:t,index:a,level:Pn.two},Un(Mn,null)):Un(Gn,{key:"level-two-link-".concat(a),"data-testid":"level-two-link-".concat(a),href:null===(r=n.link)||void 0===r?void 0:r.url,displayText:n.displayName,selectionHandler:function(){e(null)},index:a,level:Pn.two})}))}(n.navigationItems,o,a)),Zn(n.navigationItems,o,a))},Jn=I.createElement,Yn=G.i.div(C||(C=Object(K.a)(["\n display: flex;\n"]))),zn=function(n,e){return null===n||void 0===n?void 0:n.filter((function(n){return n.type===e}))},Qn=function(n){if(!n.navigationItem.subNavigation||!n.navigationItem.link)return null;var e=zn(n.navigationItem.subNavigation,R.a.TEXT),t=zn(n.navigationItem.subNavigation,R.a.DETACHED);return Jn(Yn,null,Jn(_n,{levelOneLink:{displayName:n.navigationItem.displayName,link:n.navigationItem.link},navigationItems:e}),Jn(Bn,{showDetachedList:n.showDetachedList,navigationItems:t}))},$n=I.createElement,ne=function(n){var e=n.item,t=n.brandsData,a=n.i18nText,o=n.routes,r=n.dynamicWidth,i=n.hasWaterfallMenu;switch(e.type){case R.a.TEXT:return i?$n(Qn,{showDetachedList:!0,navigationItem:e}):$n(tn,{dynamicWidth:r,item:e});case R.a.WATERFALL:return $n(Qn,{showDetachedList:!1,navigationItem:e});case R.a.TEXT_CARD:return $n(yn.a,{dynamicWidths:r,mobile:!1,i18nHomeText:"",item:e,isAmp:!1});case R.a.IMAGE_CARD:return $n(xn.a,{dynamicWidths:r,mobile:!1,i18nHomeText:"",item:e,isAmp:!1});case R.a.THUMBNAIL_CARD:return $n(kn.a,{dynamicWidths:r,mobile:!1,i18nHomeText:"",item:e,isAmp:!1});case R.a.BRANDS:return(null===t||void 0===t?void 0:t.brands)?$n(gn,{brandsData:t,i18nText:{viewAllBrands:a.viewAllBrands,navAriaLabel:a.navAriaLabel},viewAllBrandsLink:o.viewAllBrandsLink,listExtension:o.listExtension}):null;default:return $n(tn,{dynamicWidth:r,item:e})}}}}]);