(window.webpackJsonp=window.webpackJsonp||[]).push([[114],{"7rcB":function(e,t,n){"use strict";n.r(t),n.d(t,"HeaderSearch",(function(){return ee}));var r,o,a,c,i,s,d,l,h,u,p,b,v,m=n("EI6B"),f=n("6K86"),g=n("2kcj"),w=n("ERkP"),k=n("AU4o"),x=n.n(k),S=n("jiAW"),y=n("jt0n"),I=n("VU4M"),B=n("booI"),j=n("x5Iz"),O=n("KD7D"),D=n("135/"),A=n("AFpi"),C=x()((function(){return n.e(522).then(n.bind(null,"SJjp")).then((function(e){return e.SearchResultsDropdown}))}),{ssr:!0,loadableGenerated:{webpack:function(){return["SJjp"]},modules:["../HeaderSearch/SearchResultsDropdown"]}}),T=I.b.div(r||(r=Object(g.a)(["\n display: flex;\n height: ",";\n\n "," {\n display: inline-block;\n height: ",";\n\n ",";\n }\n\n ","\n flex-direction: column;\n flex: 1;\n"])),(function(e){return e.theme.patterns.header.search.height.mobile}),(function(e){return Object(y.d)(e.theme.breakpointUtils.map,"lg")}),(function(e){return e.theme.patterns.header.search.height.desktop}),(function(e){var t;return(null===(t=e.theme.patterns.header.search.margin)||void 0===t?void 0:t.bottom)&&"margin-bottom: ".concat(e.theme.patterns.header.search.margin.bottom)}),(function(e){return e.mobileSearch&&"width: 100%"})),F=I.b.form(o||(o=Object(g.a)(["\n display: flex;\n justify-content: center;\n height: 100%;\n ","\n ","\n\n "," {\n max-width: 458px;\n width: ",";\n\n border-radius: ",";\n\n &:focus-within {\n ","\n }\n }\n"])),(function(e){return e.inputFocused&&"".concat(Object(S.m)(A.c.Dropdown),";\n")}),(function(e){return"border-radius: ".concat(e.theme.patterns.header.search.searchBorders.inactive.radius,";\n\n border-top: ").concat(e.theme.patterns.header.search.searchBorders.inactive.top.display&&"".concat(e.theme.patterns.header.search.searchBorders.inactive.top.width," solid ").concat(e.theme.patterns.header.search.searchBorders.inactive.top.color),";\n border-left: ").concat(e.theme.patterns.header.search.searchBorders.inactive.left.display&&"".concat(e.theme.patterns.header.search.searchBorders.inactive.left.width," solid ").concat(e.theme.patterns.header.search.searchBorders.inactive.left.color),";\n border-right: ").concat(e.theme.patterns.header.search.searchBorders.inactive.right.display&&"".concat(e.theme.patterns.header.search.searchBorders.inactive.right.width," solid ").concat(e.theme.patterns.header.search.searchBorders.inactive.right.color),";\n border-bottom: ").concat(e.theme.patterns.header.search.searchBorders.inactive.bottom.display&&"".concat(e.theme.patterns.header.search.searchBorders.inactive.bottom.width," solid ").concat(e.theme.patterns.header.search.searchBorders.inactive.bottom.color),";\n")}),(function(e){return Object(y.d)(e.theme.breakpointUtils.map,"lg")}),(function(e){return e.mobileSearch?"100%":e.theme.patterns.header.search.width}),(function(e){return e.theme.patterns.header.search.searchBorders.inactive.radius}),(function(e){return"border-radius: ".concat(e.theme.patterns.header.search.searchBorders.active.radius,";\n \n border-top: ").concat(e.theme.patterns.header.search.searchBorders.active.top.display&&"".concat(e.theme.patterns.header.search.searchBorders.active.top.width," solid ").concat(e.theme.patterns.header.search.searchBorders.active.top.color),";\n border-left: ").concat(e.theme.patterns.header.search.searchBorders.active.left.display&&"".concat(e.theme.patterns.header.search.searchBorders.active.left.width," solid ").concat(e.theme.patterns.header.search.searchBorders.active.left.color),";\n border-right: ").concat(e.theme.patterns.header.search.searchBorders.active.right.display&&"".concat(e.theme.patterns.header.search.searchBorders.active.right.width," solid ").concat(e.theme.patterns.header.search.searchBorders.active.right.color),";\n border-bottom: ").concat(e.theme.patterns.header.search.searchBorders.active.bottom.display&&"".concat(e.theme.patterns.header.search.searchBorders.active.bottom.width," solid ").concat(e.theme.patterns.header.search.searchBorders.active.bottom.color),";\n \n ")})),L=I.b.div(a||(a=Object(g.a)(["\n ","\n display: flex;\n width: 100%;\n background-color: ",";\n\n border-radius: ",";\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n\n "," {\n background-color: ",";\n width: 410px;\n\n &:focus-within {\n outline: none;\n padding: 0;\n }\n }\n"])),(function(e){return e.inputFocused&&"".concat(Object(S.m)(A.c.Dropdown),";")}),(function(e){return""!==e.value?e.theme.patterns.header.search.backgroundColor.active:e.theme.patterns.header.search.backgroundColor.inactive}),(function(e){return e.theme.patterns.header.search.searchBorders.inactive.radius}),(function(e){return Object(y.d)(e.theme.breakpointUtils.map,"lg")}),(function(e){return""!==e.value?e.theme.patterns.header.search.backgroundColor.active:e.theme.patterns.header.search.backgroundColor.inactive})),E=Object(I.a)(c||(c=Object(g.a)(["\n ",";\n ","\n"])),(function(e){return Object(D.a)(e.theme.patterns.header.search.placeholderFont.entry,e.theme.patterns.header.search.placeholderFont.style)}),(function(e){return"\n text-transform: ".concat(e.theme.patterns.header.search.placeholderFont.transform,";\n text-decoration: ").concat(e.theme.patterns.header.search.placeholderFont.textDecoration,";\n color: ").concat(e.theme.patterns.header.search.placeholderFont.textColor,";\n")})),R=I.b.input(i||(i=Object(g.a)(["\n ",";\n ","\n background-color: ",";\n display: block;\n width: 100%;\n height: 100%;\n border: 0;\n border-radius: ",";\n padding: ",";\n\n ::placeholder {\n ","\n background-color: ",";\n }\n ::-webkit-input-placeholder {\n ","\n background-color: ",";\n }\n :-ms-input-placeholder {\n ","\n background-color: ",";\n }\n\n &:focus {\n outline: none;\n }\n"])),(function(e){return Object(D.a)(e.theme.patterns.header.search.activeFont.entry,e.theme.patterns.header.search.activeFont.style)}),(function(e){return"\n text-transform: ".concat(e.theme.patterns.header.search.activeFont.transform,";\n text-decoration: ").concat(e.theme.patterns.header.search.activeFont.textDecoration,";\n color: ").concat(e.theme.patterns.header.search.activeFont.textColor,";\n ")}),(function(e){return""!==e.value?e.theme.patterns.header.search.backgroundColor.active:e.theme.patterns.header.search.backgroundColor.inactive}),(function(e){return e.theme.patterns.header.search.searchBorders.inactive.radius}),(function(e){return e.theme.patterns.header.search.placeHolderPadding}),E,(function(e){return""!==e.value?e.theme.patterns.header.search.backgroundColor.active:e.theme.patterns.header.search.backgroundColor.inactive}),E,(function(e){return""!==e.value?e.theme.patterns.header.search.backgroundColor.active:e.theme.patterns.header.search.backgroundColor.inactive}),E,(function(e){return""!==e.value?e.theme.patterns.header.search.backgroundColor.active:e.theme.patterns.header.search.backgroundColor.inactive})),M=I.b.label(s||(s=Object(g.a)(["\n width: 100%;\n"]))),P=I.b.button(d||(d=Object(g.a)(["\n ","\n display: flex;\n justify-content: center;\n align-items: center;\n min-width: ",";\n width: ",";\n height: ",";\n flex: 0;\n height: 100%;\n background-color: ",";\n\n border-radius: ",";\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n border-top-right-radius: ",";\n border-bottom-right-radius: ",";\n\n ","\n\n svg {\n fill: ",";\n }\n\n &:focus {\n outline: none;\n outline-offset: -4px;\n ",";\n }\n\n &:hover,\n &:active,\n &:focus {\n background-color: ",";\n padding: 0 ",";\n }\n\n svg {\n fill: ",";\n }\n"])),(function(e){return e.inputFocused&&"".concat(Object(S.m)(A.c.Dropdown),";")}),Object(S.h)(6),Object(S.h)(6),Object(S.h)(6),(function(e){return e.active?e.theme.patterns.header.search.buttonBackgroundColor.active:e.theme.patterns.header.search.buttonBackgroundColor.inactive}),(function(e){return e.theme.patterns.header.search.searchBorders.inactive.radius}),(function(e){return e.theme.patterns.header.search.buttonBorder.inactive.radius}),(function(e){return e.theme.patterns.header.search.buttonBorder.inactive.radius}),(function(e){return"\n border-top: ".concat(e.theme.patterns.header.search.buttonBorder.inactive.top.display&&"".concat(e.theme.patterns.header.search.buttonBorder.inactive.top.width," solid ").concat(e.theme.patterns.header.search.buttonBorder.inactive.top.color),";\n border-left: ").concat(e.theme.patterns.header.search.buttonBorder.inactive.left.display&&"".concat(e.theme.patterns.header.search.buttonBorder.inactive.left.width," solid ").concat(e.theme.patterns.header.search.buttonBorder.inactive.left.color),";\n border-right: ").concat(e.theme.patterns.header.search.buttonBorder.inactive.right.display&&"".concat(e.theme.patterns.header.search.buttonBorder.inactive.right.width," solid ").concat(e.theme.patterns.header.search.buttonBorder.inactive.right.color),";\n border-bottom: ").concat(e.theme.patterns.header.search.buttonBorder.inactive.bottom.display&&"".concat(e.theme.patterns.header.search.buttonBorder.inactive.bottom.width," solid ").concat(e.theme.patterns.header.search.buttonBorder.inactive.bottom.color),";\n")}),(function(e){return e.theme.patterns.header.search.mobileIcon.color}),(function(e){return e.active?"outline: 2px solid ".concat(e.theme.colors.palette.greys.white):"border: 2px solid ".concat(e.theme.colors.palette.brand.base)}),(function(e){return e.active?e.theme.patterns.header.search.buttonBackgroundColor.active:e.theme.patterns.header.search.buttonBackgroundColor.inactive}),Object(S.h)(1),(function(e){return e.active?e.theme.patterns.header.search.iconColor.active:e.theme.patterns.header.search.iconColor.inactive})),H=Object(I.b)(C)(l||(l=Object(g.a)(["\n ",";\n display: ",";\n ",";\n"])),(function(e){return e.mobileSearch&&"top:15px; max-height: 500px; overflow-y: auto;"}),(function(e){return e.shouldDisplay?"initial":"none"}),(function(e){return e.mobileSearch?" width: 470px":null})),Q=I.b.button(h||(h=Object(g.a)(["\n ",";\n display: flex;\n align-items: center;\n justify-content: center;\n margin-right: ",";\n border: 2px solid transparent;\n color: ",";\n\n &:hover,\n &:active,\n &:focus {\n opacity: 0.8;\n cursor: pointer;\n outline: none;\n }\n\n &:focus {\n border-color: ",";\n }\n\n svg {\n path {\n fill: ",";\n }\n }\n"])),(function(e){return Object(D.a)(e.theme.formgroup.icon.scale,e.theme.formgroup.icon.style)}),Object(S.h)(1),(function(e){return e.theme.colors.palette.greys.darker}),(function(e){return e.theme.colors.palette.brand.base}),(function(e){return e.theme.patterns.header.search.clearTextIcon})),V=Object(I.b)(O.b)(u||(u=Object(g.a)(["\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n display: block;\n width: 100%;\n height: 100%;\n background: rgba(0, 0, 0, 0.5);\n ",";\n"])),Object(S.m)(A.c.Overlay)),K=w.createElement,U=x()((function(){return n.e(28).then(n.bind(null,"oCSW"))}),{ssr:!0,fallback:K("div",{style:{width:24,height:24}}),loadableGenerated:{webpack:function(){return["oCSW"]},modules:["@thg-commerce/gravity-icons/src/components/SearchIcon"]}}),W=x()((function(){return n.e(39).then(n.bind(null,"iDNE"))}),{ssr:!0,fallback:K("div",{style:{width:24,height:24}}),loadableGenerated:{webpack:function(){return["iDNE"]},modules:["@thg-commerce/gravity-icons/src/components/IconDelete"]}}),G=function(e){return e.up="UP",e.down="DOWN",e}(G||{}),J=function(e){var t=e.execSearchQuery,n=e.placeholder,r=e.data,o=e.setValue,a=e.setInstantSearchResults,c=e.inputValue,i=e.inputRef,s=e.restartIndexes,d=e.setAnnounceMessage,l=e.resultsAvailable,h=e.onKeyDown,u=e.debounceDelay,p=e.minSearchLength,b=e.onFocusDropdown,v=e.currency,m=e.shippingDestination,g=e.concessionCode;if(!t)return null;var k=p||1,x=function(e,t){var n=w.useState(e),r=Object(f.a)(n,2),o=r[0],a=r[1];return w.useEffect((function(){var n=setTimeout((function(){a(e)}),t);return function(){clearTimeout(n)}}),[e,t]),o}(c,u||25);return w.useEffect((function(){var e=x.length>=k?x:"";t({variables:{concessionCode:g,currency:v||"GBP",shippingDestination:m||"GB",query:x,limit:5}}),e||(a(null),s())}),[x]),w.useEffect((function(){(null===r||void 0===r?void 0:r.instantSearch)&&x.length>=k&&(a(r.instantSearch),d(l))}),[r]),K(R,{type:"text","aria-label":n,placeholder:n,onChange:function(e){o(e.target.value)},value:c,ref:i,"data-testid":"header-search-form-input",title:n,onKeyDown:h,onFocus:b})},N=function(e){var t,n,r,o,a,c=e.placeholder,i=e.searchButtonAriaLabel,s=e.clearAriaLabel,d=e.setScrollLock,l=w.useState(""),h=Object(f.a)(l,2),u=h[0],p=h[1],b=w.useState(null),v=Object(f.a)(b,2),g=v[0],k=v[1],x=w.useState(-1),S=Object(f.a)(x,2),y=S[0],I=S[1],B=w.useState(-1),j=Object(f.a)(B,2),O=j[0],D=j[1],A=w.useState(-1),C=Object(f.a)(A,2),E=C[0],R=C[1],H=w.useState(!1),V=Object(f.a)(H,2),N=V[0],z=V[1],X=w.useRef(null),Y=w.createRef(),Z=w.useState(null),$=Object(f.a)(Z,2),_=$[0],ee=$[1];w.useEffect((function(){var t;(ee(null),-1!==y&&(null===g||void 0===g?void 0:g.corrections))&&ee("".concat(e.searchI18nText.correctionsTitle,": ").concat(null===g||void 0===g?void 0:null===(t=g.corrections[y])||void 0===t?void 0:t.correction));if(-1!==O&&(null===g||void 0===g?void 0:g.suggestedSearchQueries)&&ee("".concat(e.searchI18nText.suggestionsTitle,": ").concat(null===g||void 0===g?void 0:g.suggestedSearchQueries[O])),-1!==E&&(null===g||void 0===g?void 0:g.products)){var n=(null===g||void 0===g?void 0:g.products.length)-1===E,r=null===g||void 0===g?void 0:g.products[E];ee(n?"".concat(e.searchI18nText.lastResult,", ").concat(e.searchI18nText.productsTitle,": ").concat(r.title):"".concat(e.searchI18nText.productsTitle,": ").concat(r.title))}}),[y,O,E]);var te=-1===y&&-1===O&&-1===E,ne=function(){I(-1),D(-1),R(-1)};w.useEffect((function(){""!==u&&e.isDesktop&&"undefined"!==typeof document&&d(!0,document,window)}),[u]);var re=function(){p(""),e.isDesktop&&"undefined"!==typeof document&&d(!1,document,window),k(null),ne()},oe=function(t){var n;"undefined"!==typeof document&&d(!0,document,window),(null===(n=X.current)||void 0===n?void 0:n.contains(t.currentTarget))&&(z(!0),e.onFocus&&e.onFocus(t))};w.useEffect((function(){var t;e.focusOnMount&&(null===(t=X.current)||void 0===t||t.focus())}),[]);var ae=function(e){var t,n,r,o,a,c,i,s,d;(null===g||void 0===g?void 0:null===(t=g.corrections)||void 0===t?void 0:t.length)?o=null===g||void 0===g?void 0:null===(i=g.corrections)||void 0===i?void 0:i.length:o=0;(null===g||void 0===g?void 0:null===(n=g.suggestedSearchQueries)||void 0===n?void 0:n.length)?a=null===g||void 0===g?void 0:null===(s=g.suggestedSearchQueries)||void 0===s?void 0:s.length:a=0;(null===g||void 0===g?void 0:null===(r=g.products)||void 0===r?void 0:r.length)?c=null===g||void 0===g?void 0:null===(d=g.products)||void 0===d?void 0:d.length:c=0;switch(e){case G.up:if(te)break;if(y>-1){I(y-1);break}if(O>-1){0===O&&I(o-1),D(O-1);break}if(E>-1){0===E&&D(a-1),R(E-1);break}break;case G.down:if(E===c-1)break;if(y>-1){y===o-1?(D(0),I(-1)):R(E+1);break}if(O>-1){O===a-1?(R(0),D(-1)):D(O+1);break}if(E>-1){R(E+1);break}}},ce=function(t){var n,r,o,a,c,i;switch(a=(null===g||void 0===g?void 0:null===(n=g.corrections)||void 0===n?void 0:n.length)?g.corrections.length:0,c=(null===g||void 0===g?void 0:null===(r=g.suggestedSearchQueries)||void 0===r?void 0:r.length)?g.suggestedSearchQueries.length:0,i=(null===g||void 0===g?void 0:null===(o=g.products)||void 0===o?void 0:o.length)?g.products.length:0,t.key){case"Escape":re(),e.isDesktop&&d(!0,document,window);break;case"Enter":te||(t.preventDefault(),function(){var t,n;-1!==y&&(null===g||void 0===g?void 0:g.corrections)&&window.location.assign("".concat(e.autocompleteLink,"correction&search=").concat(null===g||void 0===g?void 0:null===(t=g.corrections[y])||void 0===t?void 0:t.correction));(-1!==O&&(null===g||void 0===g?void 0:g.suggestedSearchQueries)&&window.location.assign("".concat(e.autocompleteLink,"searchsuggestion&search=").concat(null===g||void 0===g?void 0:g.suggestedSearchQueries[O])),-1!==E&&(null===g||void 0===g?void 0:g.products))&&window.location.assign(null===g||void 0===g?void 0:null===(n=g.products[E])||void 0===n?void 0:n.url)}());break;case"ArrowUp":-1===y&&-1===O&&-1===E||t.preventDefault(),ae(G.up);break;case"ArrowDown":te&&(a>0?I(0):c>0?D(0):i>0&&R(0)),ae(G.down);break;case"Tab":t.shiftKey?(re(),z(!1)):ne()}},ie=e.InstantSearchInjector;return K(T,{ref:Y,mobileSearch:e.mobileSearch},K(F,{onSubmit:function(t){t.preventDefault(),e.onSubmit(u)},inputFocused:!e.isDesktop&&N,mobileSearch:e.mobileSearch},K(L,{inputFocused:e.isDesktop&&N,value:u},K(M,null,K(ie,null,(function(t){return K(J,{placeholder:c,setValue:p,setInstantSearchResults:k,inputValue:u,inputRef:X,restartIndexes:ne,setAnnounceMessage:ee,resultsAvailable:e.searchI18nText.resultsAvailable,onKeyDown:ce,data:t.data,execSearchQuery:t.execSearchQuery,onFocusDropdown:oe,currency:e.currency,concessionCode:e.concessionCode,shippingDestination:e.shippingDestination})}))),u&&K(Q,{"data-testid":"clear-button",type:"button",onKeyPress:function(e){var t;"Enter"===e.key&&(re(),null===(t=X.current)||void 0===t||t.focus())},onClick:function(){var e;re(),null===(e=X.current)||void 0===e||e.focus()},"aria-label":s,title:s},K(W,{"data-testid":"input-delete-icon"}))),K(P,{type:"submit","aria-label":i,active:!!u,"data-testid":"header-search-form-submit-button",inputFocused:e.isDesktop&&N,onKeyDown:function(t){"Tab"===t.key&&""===u&&(re(),z(!1),e.externalClose&&e.externalClose())}},""!==(null===(t=e.icon)||void 0===t?void 0:t.svgPath)?K("svg",{width:null===(n=e.icon)||void 0===n?void 0:n.width,height:null===(r=e.icon)||void 0===r?void 0:r.height,viewBox:null===(o=e.icon)||void 0===o?void 0:o.viewBox,xmlns:"http://www.w3.org/2000/svg"},K("path",{d:null===(a=e.icon)||void 0===a?void 0:a.svgPath,"fill-rule":"evenodd"})):K(U,null))),K(q,Object(m.a)({},e,{instantSearchResults:g,movePastInput:function(){p(""),e.isDesktop&&d(!1,document,window),k(null),ne(),z(!1),e.externalClose&&e.externalClose()},inputValue:u,correctionsIndex:y,productsIndex:E,suggestionsIndex:O,clearInput:re,inputFocused:N,clickAway:function(){re(),z(!1)}})),_&&e.renderAnnouncer("assertive",_))},q=function(e){var t=w.useState(null),n=Object(f.a)(t,2),r=n[0],o=n[1];return w.useEffect((function(){o(e.instantSearchResults)}),[e.instantSearchResults]),K(O.a,null,K(w.Fragment,null,r&&K(H,{shouldDisplay:Boolean(e.inputValue&&e.instantSearchResults),isDesktop:e.isDesktop,searchResults:r,searchI18nText:e.searchI18nText,autocompleteLink:e.autocompleteLink,inputValue:e.inputValue,correctionsIndex:e.correctionsIndex,suggestionsIndex:e.suggestionsIndex,productsIndex:e.productsIndex,isAmp:e.isAmp,clearInput:e.clearInput,movePastInput:e.movePastInput,fromText:e.searchI18nText.fromText,mobileSearch:e.mobileSearch,slimHeader:e.slimHeader})),e.isDesktop&&e.inputFocused&&K(V,{onClick:e.clickAway,onTouchStart:e.clickAway,key:"search-overlay","data-testid":"search-overlay",variants:{enter:{opacity:0},center:{opacity:1},exit:{opacity:0}},initial:"enter",animate:"center",exit:"exit",transition:{ease:"easeInOut",duration:.3}}))},z=w.createElement,X=x()((function(){return n.e(28).then(n.bind(null,"oCSW"))}),{ssr:!0,fallback:z("div",{style:{width:24,height:24}}),loadableGenerated:{webpack:function(){return["oCSW"]},modules:["@thg-commerce/gravity-icons/src/components/SearchIcon"]}}),Y=I.b.div(p||(p=Object(g.a)(["\n ","\n"])),(function(e){return e.removePadding?"\n border-bottom: ".concat(e.theme.patterns.header.navigation.borderBottom,";\n\n form {\n border: none;\n }"):"padding: ".concat(Object(S.h)(2),";\n background-color: ").concat(e.theme.colors.palette.greys.lighter,";")})),Z=I.b.div(b||(b=Object(g.a)(["\n visibility: ",";\n\n "," {\n visibility: visible;\n }\n"])),(function(e){return e.mobileVisible?"visible":"hidden"}),(function(e){return Object(y.d)(e.theme.breakpointUtils.map,"lg")})),$=I.b.div(v||(v=Object(g.a)(["\n width: 24px;\n height: 24px;\n display: flex;\n align-items: center;\n\n svg {\n fill: ",";\n }\n"])),(function(e){return e.theme.patterns.header.search.mobileIcon.color})),_=function(e){var t=Object(B.b)();return z(Y,{removePadding:e.showExposedSearch},z(N,{setScrollLock:t,placeholder:e.headerSearchI18nText.placeholder,searchButtonAriaLabel:e.headerSearchI18nText.searchButtonAriaLabel,clearAriaLabel:e.headerSearchI18nText.clearAriaLabel,isDesktop:!e.isMobile,InstantSearchInjector:e.InstantSearchInjector,searchI18nText:e.searchI18nText,onSubmit:e.onSubmit,isAmp:e.isAmp,autocompleteLink:e.autocompleteLink,renderAnnouncer:e.renderAnnouncer,currency:e.currency,shippingDestination:e.shippingDestination,externalClose:e.close,icon:e.mobileIcon,concessionCode:e.concessionCode,onFocus:e.onFocus,mobileSearch:e.mobileSearch,slimHeader:e.slimHeader,focusOnMount:e.focusOnMount}))},ee=function(e){var t,n,r,o,a,c=w.useState(!1),i=Object(f.a)(c,2),s=i[0],d=i[1],l=Object(B.b)();return w.useEffect((function(){s&&d(!1),l(!1,document,window)}),[e.isMobile]),e.isMobile||e.mobileSearch?z(j.a,{dropdownType:A.b.SEARCH,tabIndex:e.isMobile?3:e.mobileSearch?void 0:0,i18nAriaLabels:{close:e.triggerAriaLabels.close,trigger:e.triggerAriaLabels.search},isMobile:e.isMobile||e.mobileSearch,isDesktop:!e.isMobile,dropdownWidth:e.mobileSearch?"470px":void 0,trigger:{icon:z($,{"data-testid":"search-icon-wrapper"},""!==(null===(t=e.mobileIcon)||void 0===t?void 0:t.svgPath)?z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:null===(n=e.mobileIcon)||void 0===n?void 0:n.viewBox,height:null===(r=e.mobileIcon)||void 0===r?void 0:r.height,width:null===(o=e.mobileIcon)||void 0===o?void 0:o.width},z("path",{d:null===(a=e.mobileIcon)||void 0===a?void 0:a.svgPath,"fill-rule":"evenodd"})):z(X,null)),text:"",triggerHref:""},disableFocusLogic:!0,disableAnimation:!0,content:function(t){return z(_,Object(m.a)({close:t,focusOnMount:!1},e))},mobileSearch:e.mobileSearch}):z(Z,{mobileVisible:e.showExposedSearch},z(N,{setScrollLock:l,placeholder:e.headerSearchI18nText.placeholder,searchButtonAriaLabel:e.headerSearchI18nText.searchButtonAriaLabel,clearAriaLabel:e.headerSearchI18nText.clearAriaLabel,isDesktop:!e.isMobile||!e.mobileSearch,InstantSearchInjector:e.InstantSearchInjector,searchI18nText:e.searchI18nText,onSubmit:e.onSubmit,autocompleteLink:e.autocompleteLink,isAmp:e.isAmp,renderAnnouncer:e.renderAnnouncer,currency:e.currency,shippingDestination:e.shippingDestination,icon:e.mobileIcon,onFocus:e.onFocus,mobileSearch:e.mobileSearch,slimHeader:e.slimHeader}))}}}]); //# sourceMappingURL=114.bd99551e365a5869ee1f.js.map