PageSourceSearch

https://www.oralb.co.uk/_next/static/chunks/2424.1eb543e80b9ca79c.js

js oralb.co.uk collected 2026-10-02 04:36:44 UTC 67,464 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2424],{72424:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return eI}});var l=t(67752),i=t.n(l),a=t(20968),o=t.n(a),r=t(48416),s=t.n(r),c=t(43171),u=t.n(c),d=t(64687),f=t.n(d),m=t(67294),v=t(9077),h=t(73606),p=t(58450),x=t(25675),g=t.n(x),b=t(41664),y=t.n(b),k=t(5152),j=t.n(k),w=t(61806),N=t(85893),_=function(e){var n=e.isVisible,t=e.isTransitioning,l=e.onClose,i=e.className,a=e["aria-label"],o=e.children,r=e.restoreFocusTo,s=(0,m.useRef)(null),c=(0,m.useRef)(null),u=(0,m.useCallback)(function(){if(!s.current)return[];var e=Array.from(s.current.querySelectorAll('[class*="translate-x-0"]'));if(0===e.length)return[];var n=Array.from(e[e.length-1].querySelectorAll('button:not([disabled]), [href]:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"]):not([disabled])')).filter(function(e){var n=window.getComputedStyle(e);return"none"!==n.display&&"hidden"!==n.visibility}),t=n.find(function(e){var n="button"===e.tagName.toLowerCase(),t=e.classList.contains("event_menu_click");e.querySelector('[icon="close"]');var l=null!==e.querySelector('[name="chevronLeft"]');return n&&(t||l)});if(t){var l=n.indexOf(t);l>-1&&(n.splice(l,1),n.unshift(t))}return n},[]),d=(0,m.useCallback)(function(e){if(n&&"Tab"===e.key){var t=u();if(0!==t.length){var l=t[0],i=t[t.length-1],a=t.includes(document.activeElement);e.shiftKey?document.activeElement!==l&&a||(e.preventDefault(),i.focus()):document.activeElement!==i&&a||(e.preventDefault(),l.focus())}}},[n,u]);return((0,m.useEffect)(function(){if(n)c.current=document.activeElement,setTimeout(function(){var e=u();e.length>0?e[0].focus():s.current&&s.current.focus()},100);else if(c.current||r){var e=r||c.current;e&&e.focus(),c.current=null}},[n,u,r]),(0,m.useEffect)(function(){if(n){var e=u(),t=document.activeElement;!e.includes(t)&&e.length>0&&e[0].focus()}},[o,n,u]),(0,m.useEffect)(function(){if(n)return document.addEventListener("keydown",d),function(){return document.removeEventListener("keydown",d)}},[n,d]),n||t)?(0,N.jsx)("div",{ref:s,role:"dialog","aria-modal":"true","aria-hidden":!n,"aria-label":void 0===a?"Close menu overlay":a,className:"fixed inset-0 z-50 bg-black/50 transition-all duration-300 ".concat(n?"opacity-100":"opacity-0"," ").concat(void 0===i?"":i),onClick:l,onKeyDown:function(e){"Escape"===e.key&&l()},tabIndex:-1,children:(0,N.jsx)("div",{className:"relative",onClick:function(e){return e.stopPropagation()},children:o})}):null},E=t(80738),L=t(39149),S=t(99094),T=t(16172),C=t(29165),I=t(52979),K=t(7872),A=t(93967),D=t.n(A),P=t(77126),B=t(13087),z=t(46979),O=p.K.closeButton,M='a[href], button:not([disabled]), textarea:not([disabled]), input:not([disabled]), select:not([disabled]), [tabindex]:not([tabindex="-1"])',R=function(e){var n=e.isOpen,t=e.onClose,l=e.children,i=e.header,a=e.footer,o=(0,w.hZ)(),r=u()(o,2),s=r[0],c=r[1],d=(0,z.Z)(n,300,{onEnter:function(){return s()},onExit:function(){return c()}}),f=d.mounted,v=d.rendered,h=(0,m.useRef)(null),p=(0,m.useRef)(null),x=(0,m.useRef)(t);(0,m.useEffect)(function(){x.current=t},[t]),(0,m.useEffect)(function(){f?p.current=document.activeElement:p.current&&(p.current.focus(),p.current=null)},[f]),(0,m.useEffect)(function(){if(v&&h.current){var e=h.current.querySelectorAll(M);e.length>0&&e[0].focus()}},[v]);var g=(0,m.useCallback)(function(e){if("Escape"===e.key){x.current();return}if("Tab"===e.key&&h.current){var n=Array.from(h.current.querySelectorAll(M));if(0!==n.length){var t=n[0],l=n[n.length-1];e.shiftKey?document.activeElement===t&&(e.preventDefault(),l.focus()):document.activeElement===l&&(e.preventDefault(),t.focus())}}},[]);return((0,m.useEffect)(function(){if(v)return document.addEventListener("keydown",g),function(){return document.removeEventListener("keydown",g)}},[v,g]),f)?(0,N.jsxs)("div",{className:"fixed inset-0 z-50",children:[(0,N.jsx)("div",{className:"absolute inset-0 bg-black transition-opacity duration-300 ease-in-out ".concat(v?"opacity-50":"opacity-0"),onClick:t,"aria-hidden":"true"}),(0,N.jsxs)("div",{ref:h,role:"dialog","aria-modal":"true","aria-label":"Cart",className:"minibasket border-top-blue-to-teal-gradient absolute right-0 top-0 flex h-full w-[500px] flex-col bg-white shadow-xl transition-[transform,opacity] duration-300 ease-in-out will-change-[transform,opacity] ".concat(v?"translate-x-0 opacity-100":"translate-x-full opacity-0"),children:[(0,N.jsxs)("div",{className:"z-10 flex items-center justify-between bg-white pr-2",children:[(0,N.jsx)("div",{className:"min-w-0 flex-1",children:i}),(0,N.jsx)(B.default,{size:"sm",icon:"close",onClick:t,"aria-label":"Close",className:"".concat(O," event_menu_click")})]}),(0,N.jsx)("div",{className:"overflow-y-auto",style:{height:"80vh"},children:l}),a&&a]})]}):null},G=t(95255),q=t(56703),H=t(70686),V=t(54530),Z=t(17520),W=t(66962),F=function(e){var n,t=(0,Z.oj)("DtcCartId"),l=(0,Z.oj)("DtcToken"),a=(0,H.qG)(function(){return Promise.resolve(void 0)}),o=a.dtcCartLoading,r=(a.dtcCartError,a.dtcCartData),s=a.callDtcCartService,c=(0,m.useState)(null),u=c[0],d=c[1],v=(null==r?void 0:r.Data)||(null==e?void 0:e.cartData),h=(0,m.useRef)(null),p=(n=i()(f().mark(function e(n){var l;return f().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,l=(0,Z.oj)("DtcToken"),e.next=4,
1s({operation:V.Z.CART_OPERATION.APPLY_CODE_TO_BASKET,cartId:t||null,sku:null,code:n,dtcToken:l||null});case 4:e.next=9;break;case 6:e.prev=6,e.t0=e.catch(0),console.error(e.t0);case 9:case"end":return e.stop()}},e,null,[[0,6]])})),function(e){return n.apply(this,arguments)});(0,m.useEffect)(function(){if(t||l)try{s({operation:V.Z.CART_OPERATION.GET_CART,cartId:t,sku:null,dtcToken:l||null})}catch(e){console.error("Error loading cart data:",e)}},[t,l]),(0,m.useEffect)(function(){if(v&&!o){var e=(0,Z.oj)(V.Z.CART_OPERATION.COUPONCODE_AUTOAPPLY);e&&h.current!==e&&(h.current=e,i()(f().mark(function n(){return f().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,p(e);case 3:n.next=9;break;case 5:n.prev=5,n.t0=n.catch(0),h.current=null,console.error("Failed to auto-apply coupon code:",n.t0);case 9:case"end":return n.stop()}},n,null,[[0,5]])}))())}},[v,o]),(0,m.useEffect)(function(){r&&!o&&(null==r?void 0:r.Error)==="FALSE"&&r.Data&&(0,Z.uX)(r.Data)},[r,o]),(0,m.useEffect)(function(){o||d(null)},[o]);var x=function(e){var n="";if(Array.isArray(e.properties)){var t=e.properties.find(function(e){var n;return(null==(n=e.key)?void 0:n.toLowerCase())==="color"||e.colour});n=(null==t?void 0:t.title)||""}return""!==n?"Colour: ".concat(n):""},g=function(e,n,i,a){if(null===u){d(Number(e));try{s({operation:V.Z.CART_OPERATION.UPDATE_CART,sku:Number(e),itemId:a,cartId:t||null,quantity:1,dtcToken:l||null})}catch(e){console.error("Error incrementing quantity:",e),d(null)}}},b=function(e,n,i){if(null===u){d(Number(e));try{s({operation:V.Z.CART_OPERATION.DELETE_ITEM,sku:Number(e),itemId:i,cartId:t||null,dtcToken:l||null})}catch(e){console.error("Error removing item:",e),d(null)}}},y=function(e,n,i,a){if(null===u){var o=Number(n);if(o<=1)b(Number(e),i,a);else{d(Number(e));try{s({operation:V.Z.CART_OPERATION.UPDATE_ITEM_QUANTITY_CART,sku:Number(e),itemId:a,cartId:t||null,quantity:o-1,dtcToken:l||null})}catch(e){console.error("Error decrementing quantity:",e),d(null)}}}};return(0,N.jsx)("div",{className:"flex flex-col",children:(0,N.jsx)("div",{className:"flex-1 px-1 py-1 md:pl-2",children:(0,N.jsx)("ul",{className:"flex flex-col",children:(null==v?void 0:v.items)&&v.items.length>0?v.items.map(function(e,n){var t,l;return(0,N.jsxs)("li",{className:"minicartlist flex w-full items-start border-b border-colorLightBlue pb-1 pt-2 md:border-b md:py-2",children:[(0,N.jsxs)("div",{className:"flex w-full md:w-[75%] md:pb-2",children:[(0,N.jsx)("img",{src:(null==(t=e.image)?void 0:null==(l=t[0])?void 0:l.original)?(0,P.H)((0,Z.Nm)(e.image[0].original,"THUMBNAIL")):"",alt:e.title,className:"mr-6 h-[115px] w-[115px] rounded-lg bg-gray-100 object-contain"}),(0,N.jsxs)("div",{className:"flex flex-1 flex-col justify-start",children:[(0,N.jsx)("div",{className:"mb-2h text-[14px] leading-tight text-black lg:text-base",children:e.title}),(0,N.jsx)("div",{className:"mb-10 text-[14px] leading-tight text-black lg:text-[16px]",children:x(e)}),!e.freeGift&&(0,N.jsx)("div",{className:"mb-20 mt-2 flex items-center gap-2",children:(0,N.jsx)("div",{className:"inline-block h-[37px] w-[85px] rounded-[6px] bg-gradient-to-r from-blue_175 to-teal_300 p-[1px]",children:(0,N.jsxs)("div",{className:"flex h-[35px] w-[83px] items-center justify-center rounded-[5px] bg-white",children:[(0,N.jsx)("button",{className:"mini-minus-plus-comm-size_15 flex cursor-pointer items-center justify-center rounded-full bg-white transition-colors hover:bg-[rgba(220,228,245,1)] ".concat(u===e.sku?"cursor-not-allowed opacity-50":""),onClick:function(){return y(e.sku.toString(),e.quantity.toString(),n,null==e?void 0:e.itemId)},disabled:u===e.sku,"aria-label":"Decrease quantity",children:(0,N.jsx)(q.default,{name:Number(e.quantity)>1?"cartQuantityMinus":"trash",size:"lg",decorative:!0,className:"mini-minus-plus-comm-size_20"})}),(0,N.jsx)("span",{className:"mx-2 mt-1 w-6 select-none text-center text-[14px] font-medium text-black",children:e.quantity}),(0,N.jsx)("button",{className:"mini-minus-plus-comm-size_15 flex cursor-pointer items-center justify-center rounded-full bg-white transition-colors hover:bg-[rgba(220,228,245,1)] ".concat(u===e.sku?"cursor-not-allowed opacity-50":""),onClick:function(){return g(e.sku.toString(),e.quantity.toString(),n,null==e?void 0:e.itemId)},disabled:u===e.sku,"aria-label":"Increase quantity",children:(0,N.jsx)(q.default,{name:"cartQuantityPlus",size:15,decorative:!0,className:"mini-minus-plus-comm-size_15 flex-shrink-0 text-black"})})]})})})]})]}),!e.freeGift&&(0,N.jsx)("div",{className:"flex flex-col items-end whitespace-nowrap text-base text-black md:w-[25%]",children:(0,N.jsx)(W.n,{priceInfo:{price:e.totalPrice,crossedPrice:e.totalRrp},variant:"minibasket",className:"flex-row items-center gap-2",priceClassName:"font-bold text-lg",crossedPriceClassName:"text-sm text-grey_100 line-through decoration-[#FF0000] decoration-2 mt-[10px]",savingsClassName:"flex items-center gap-1 rounded"})})]},e.sku)}):(0,N.jsx)("li",{className:"py-4 text-center text-[14px] text-gray-500",children:o?V.Z.BASKET_MESSAGE.LOADING_CART:V.Z.BASKET_MESSAGE.NO_ITEMS_IN_BASKET})})})})},U=t(17409),Q=t.n(U),$=function(){return sessionStorage.getItem("DtcBasketStatus")||""},Y=function(e){return e.newItemAdded,(0,N.jsxs)("div",{className:Q().headerContainer,children:[""===$()&&(0,N.jsx)("div",{className:Q().title,children:V.Z.MIN_BASKET.MINI_BASKET}),""!==$()&&(0,N.jsxs)("div",{className:Q().addedMessage+" event_close_window",
1style:{fontSize:"18px",display:"flex",alignItems:"center"},children:[(0,N.jsx)("span",{className:Q().checkIcon,children:(0,N.jsxs)("svg",{width:"25",height:"25",viewBox:"0 0 18 18",fill:"none",children:[(0,N.jsx)("circle",{cx:"9",cy:"9",r:"9",fill:"#bee6cf"}),(0,N.jsx)("path",{d:"M5 10.5L8 12.5L13 5",stroke:"#135730",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})}),(0,N.jsx)("span",{className:Q().addedText,children:$()})]})]})},X=t(52281),J=t(43811),ee=t(24938),en=function(e){var n=(0,J.Kc)(),t=n.basketTotal,l=n.basketItems,i=t||Number(null==e?void 0:e.cartTotalPrice)||0;return l||null==e||e.cartTotalQuantity,(0,N.jsx)("div",{className:"h-[40vh] bg-white px-2 py-4 md:mt-20",children:(0,N.jsx)("div",{className:"flex w-full flex-col md:gap-[18px]",children:i>0&&(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(ee.Z,{}),(0,N.jsxs)("div",{className:"flex w-full flex-col gap-4",children:[(0,N.jsx)(X.ModernButton,{size:"medium",variant:"primary-blue","aria-label":"Login / Register","data-action-detail":"Login",className:"mb-[10px] w-full",onClick:function(){(0,K.sz)(V.Z.GA_EVENTS.event_bin_action,V.Z.GA_EVENTS.event_view_cart,"View Shopping Cart"),(0,K.gB)("/en-gb/basket")},children:V.Z.BASKET_MESSAGE.VIEW_BASKET}),(0,N.jsx)(X.ModernButton,{size:"medium",variant:"secondary-blue","aria-label":"Continue Shopping","data-action-detail":"Continue Shopping",className:"w-full",onClick:function(){null==e||null==e.onContinueShopping||e.onContinueShopping()},children:V.Z.BASKET_MESSAGE.CONTINUE_SHOPPING})]})]})})})},et=t(56843),el=t(5501),ei=t(34859),ea=t(26260),eo=t(68810),er=t(98617),es=t(23510),ec=t(38456),eu=t.n(ec),ed=function(e){var n=e.hit;if("product"!==n.pageType){var t,l=(null==n?void 0:null==(t=n.url)?void 0:t.includes("http"))?n.url:"https://".concat(n.url);return(0,N.jsxs)("a",{href:l,target:"_self",rel:"noopener noreferrer",className:"mb-[1.4rem] block w-full no-underline hover:!no-underline focus:rounded focus:outline-2 focus:outline-offset-2 focus:outline-indigo_400",children:[(0,N.jsx)("h2",{className:"font-regular text-sm leading-1/5 !text-indigo_400 hover:underline",children:n.title}),(0,N.jsxs)("small",{className:"font-regular text-sm leading-1/5 text-black hover:!no-underline",children:["In ",n.pageType]})]})}return(0,N.jsx)(N.Fragment,{})},ef=function(e){var n=e.hit,t=e.searchQuery,l=(null==n?void 0:null==(c=n.url)?void 0:c.includes("https"))?n.url:"https://www.oralb.co.uk"+n.url,i=null==n?void 0:n.image,a=n.title;if(t&&/^\d+$/.test(t.trim())){var o=t.trim(),r=null==n?void 0:null==(u=n.variants)?void 0:u.find(function(e){if(e.url){var n=e.url.match(/[?&]variation=(\d+)/);if(n&&n[1]===o)return!0}return!1});if(null==r?void 0:r.url)l=r.url.includes("https")?r.url:"https://www.oralb.co.uk"+r.url,i=r.productImage||i,a=r.productImageAltText||a;else{var s=null==n?void 0:null==(d=n.dtcAttributes)?void 0:null==(f=d.productVariants)?void 0:f.find(function(e){var n;return(null==(n=e.dtcId)?void 0:n.toString())===o});if(s){var c,u,d,f,m,v=l.includes("?")?"&":"?";l="".concat(l).concat(v,"variation=").concat(o),(null==(m=s.mainAsset)?void 0:m.url)&&(i=s.mainAsset.url,a=s.mainAsset.alternateText||s.name||a)}}}return"product"===n.pageType?(0,N.jsx)("div",{className:"col-span-1",children:(0,N.jsxs)("a",{href:l,target:"_self",rel:"noopener noreferrer",className:"event_button_click flex flex-col gap-y-4 text-black !no-underline focus:outline-none focus-visible:rounded focus-visible:ring-2 focus-visible:ring-indigo_400 focus-visible:ring-offset-2","data-action-detail":n.title,children:[(0,N.jsx)("img",{src:(0,P.H)(i),alt:a,"aria-hidden":"true",className:"h-[10.31rem] w-full rounded-card border object-contain",loading:"lazy"}),(0,N.jsx)("h2",{className:"line-clamp-3 overflow-hidden text-ellipsis font-regular text-sm leading-1/5 text-black",dangerouslySetInnerHTML:{__html:n.title}}),(0,N.jsx)("p",{className:"line-clamp-2 overflow-hidden text-ellipsis font-regular text-sm leading-1/5 text-search_card_description",children:(0,N.jsx)(eu(),{children:n.description||""})})]})}):null},em=["collection","need","article","page"],ev=function(e,n){return em.indexOf(e.pageType)-em.indexOf(n.pageType)},eh=function(e){var n=new Set,t=e.filter(function(e){return"collection"===e.pageType}),l=e.filter(function(e){return"collection"!==e.pageType}),i=t.slice(0,2),a=s()(l).filter(function(e){var t=n.has(e.pageType);return n.add(e.pageType),!t});return[].concat(s()(i),s()(a))},ep=(0,eo.Z)(function(e){var n=e.hits,t=e.inputChange,l=void 0===t?"":t,i=e.searching,a=e.isSearchStalled,o=!!(void 0!==i&&i||void 0!==a&&a),r=n.filter(function(e){return"product"===e.pageType}).slice(0,4),s=eh(n).filter(function(e){return"product"!==e.pageType&&"faq"!==e.pageType}).sort(ev).slice(0,4);return(0,N.jsxs)("div",{className:"grid h-[50rem] grid-cols-6 gap-2 overflow-y-auto 2md:h-auto",children:[(0,N.jsxs)("div",{className:"col-span-6 pr-0 2md:col-span-2 2md:pr-3",children:[(0,N.jsx)(es.default,{type:"eyebrow",variant:"default-16",fontWeight:"bold",color:"dark-gradient-secondary",className:"mb-[2.5rem] inline-block leading-1/4 lg_up:text-sm custom_xl:text-base",children:"Top Suggestions"}),s.map(function(e){return(0,N.jsx)(ed,{hit:e},e.objectID)}),0===s.length&&(0,N.jsx)("div",{className:"w-full pb-1h text-left font-regular text-sm leading-1/5 text-black",children:"No suggestions foun
1d"}),(0,N.jsx)("div",{className:"w-full text-left",children:(0,N.jsx)("a",{href:"/en-gb/search#query=".concat(l),className:"font-regular text-sm leading-1/5 !text-indigo_400 no-underline hover:underline focus:rounded focus:outline-2 focus:outline-offset-2 focus:outline-indigo_400",target:"_self",children:"See all results"})})]}),(0,N.jsxs)("div",{className:"col-span-6 mt-9 2md:col-span-4 2md:mt-0",children:[(0,N.jsx)(es.default,{type:"eyebrow",variant:"default-16",fontWeight:"bold",color:"dark-gradient-secondary",className:"mb-[2.5rem] inline-block leading-1/4",children:"Products"}),(0,N.jsx)("div",{className:"grid grid-cols-2 gap-[2.4rem] md:grid-cols-4",children:r.map(function(e){return(0,N.jsx)(ef,{hit:e,searchQuery:l},e.objectID)})}),o&&(0,N.jsx)("div",{className:"w-full pb-1h text-left font-regular text-sm leading-1/5 text-black",children:S.pR.loadingProducts}),!o&&0===r.length&&(0,N.jsx)("div",{className:"w-full pb-1h text-left font-regular text-sm leading-1/5 text-black",children:"No products found"})]})]})}),ex=(0,er.Z)(ep),eg=j()(function(){return Promise.resolve().then(t.bind(t,23510))},{loadableGenerated:{webpack:function(){return[23510]}}}),eb=j()(function(){return Promise.resolve().then(t.bind(t,13087))},{loadableGenerated:{webpack:function(){return[13087]}}}),ey=j()(function(){return Promise.all([t.e(8770),t.e(6725),t.e(3705),t.e(7520),t.e(8569),t.e(3186),t.e(5302),t.e(1169),t.e(3589),t.e(7747),t.e(4945),t.e(1448),t.e(459),t.e(8081),t.e(323),t.e(8247),t.e(9480),t.e(2681)]).then(t.bind(t,2921)).then(function(e){return{default:e.ModernIcon}})},{loadableGenerated:{webpack:function(){return[2921]}}}),ek=function(e){for(var n=e;n;){var t=window.getComputedStyle(n);if("none"===t.display||"hidden"===t.visibility)return!1;n=n.parentElement}return!0},ej=function(e){var n=e.id,t=e.onClose,l=e.defaultList,i=e.logo,a=e.homeLink,o=e.src,r=e.logoAltText,s=e.allowScroll,c=e.isOpen,d=m.useState(""),f=u()(d,2),v=f[0],h=f[1],p=m.useRef(null),x=m.useCallback(function(e){var n=(e||"").trim();n&&window.location.assign("/en-gb/search#query=".concat(encodeURIComponent(n)))},[]),b=function(e){h(e)},k=(0,ea.m)(),j=l.map(function(e){return e.fields});return m.useEffect(function(){var e=function(e){"Escape"===e.key&&(s(),t(!1))};return c&&document.addEventListener("keydown",e),function(){document.removeEventListener("keydown",e)}},[c,t,s]),m.useEffect(function(){if(c&&p.current){var e=function(e){if("Tab"===e.key){var n=p.current;if(n){var t=Array.from(n.querySelectorAll('button:not([disabled]), a[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])')).filter(ek),l=t[0],i=t[t.length-1];e.shiftKey?document.activeElement===l&&(e.preventDefault(),null==i||i.focus()):document.activeElement===i&&(e.preventDefault(),null==l||l.focus())}}};return document.addEventListener("keydown",e),function(){document.removeEventListener("keydown",e)}}},[c]),m.useEffect(function(){if(c&&p.current){var e=p.current.querySelector(".ais-SearchBox-input");if(e){var n=function(n){"Enter"===n.key&&(n.preventDefault(),x(e.value))};return e.addEventListener("keydown",n),function(){e.removeEventListener("keydown",n)}}}},[c,x]),m.useEffect(function(){if(c&&p.current){var e=window.setTimeout(function(){var e=null==(n=p.current)?void 0:n.querySelector('[data-action-detail="Logo"]');if(e&&ek(e))e.focus();else{var n,t,l=null==(t=p.current)?void 0:t.querySelector(".ais-SearchBox-input");null==l||l.focus()}},100);return function(){window.clearTimeout(e)}}},[c]),(0,N.jsx)("div",{id:n,ref:p,className:"search-box fixed inset-0 z-50 bg-white w-full h-auto max-h-max",role:"dialog","aria-modal":"true","aria-label":"Search",tabIndex:-1,children:(0,N.jsxs)("div",{className:"mx-auto flex w-full flex-row justify-center py-1h pr-1 2md:px-3 custom_xl:w-[144rem]",children:[(0,N.jsx)("div",{className:"hidden justify-start pt-0 2md:flex 2md:w-[20%] 2lg:w-[18%]",children:(0,N.jsx)(y(),{className:"".concat(a," event_button_click focus-visible:rounded focus-visible:ring-2 focus-visible:ring-indigo_400 focus-visible:ring-offset-2"),href:"/",tabIndex:0,"data-action-detail":"Logo",children:(0,N.jsx)(g(),{className:i,src:(0,P.H)(o||""),alt:r||"",width:158,height:54,unoptimized:!0})})}),(0,N.jsx)(et.Z,{searchClient:k,indexName:"crawler_oral-b_uk_search_prod",searchState:{query:v},onSearchStateChange:function(e){var n;h((null==(n=e.query)?void 0:n.replace(/^"(.*)"$/,"$1"))||"")},children:(0,N.jsxs)("div",{className:"relative w-full 2md:w-[70%]",children:[(0,N.jsx)(el.Z,{className:"".concat("search-input-box pl-1 2md:pl-0"," event_search"),onChange:function(e){return h(e.currentTarget.value)},reset:(0,N.jsxs)("p",{className:"reset","aria-label":"clear",children:["Clear"," "]}),submit:(0,N.jsx)(ey,{name:"search","aria-label":"Search",size:"xl"}),onSubmit:function(e){var n,t,l;e.preventDefault(),x((null==(n=e.currentTarget)?void 0:null==(t=n.querySelector(".ais-SearchBox-input"))?void 0:null==(l=t.value)?void 0:l.trim())||v.trim())}}),(0,N.jsx)(ei.Z,{hitsPerPage:60,typoTolerance:!(v&&/^\d+$/.test(v.trim()))&&"min",advancedSyntax:!!(v&&/^\d+$/.test(v.trim()))||void 0,removeStopWords:!!(v&&/^\d+$/.test(v.trim()))||void 0}),""!==v.trim()?(0,N.jsx)("div",{className:"result-section absolute left-0 top-[6rem] w-screen overflow-y-auto bg-white px-3 py-2h 2md:static 2md:inset-0 2md:h-auto 2md:w-full 2md:py-4 2md:pr-0",children:(0,N.jsx)(ex,{inputChange:v})}):(0,N.jsx)("div",{className:"initial-section-container h-auto w-full overflow-y-auto bg-white px-3 py-2h 2md:py-4 2md:pl-3 2md:pr-0",children:(0,N.jsxs)("div",{className:"popular-section",children:[(0,N.jsx)(eg,{type:"eyebrow",variant:"default-16",fontWeight:"bold",color:"dark-gradient-secondary",className:"mb-[2.5rem] inline-block leading-1/4 lg_up:text-sm custom_xl:text-base",children:"Popular Searches"}),(0,N.jsx)("ul",{className:"search-list w-full list-inside list-none space-y-5",children:j.length>0&&j.map(function(e,n){return(0,N.jsx)("li",{className:"mb-6",children:e.query?(0,N.jsx)("button",{type:"button",onClick:function(){return b(e.query)},className:"event_button_click font-regular text-sm leading-1/5 !text-black no-underline hover:underline focus:rounded focus:outline-2 focus:outline-offset-2 focus:outline-indigo_400","data-action-detail":e.title,children:e.title}):(0,N.jsx)("a",{href:e.link,className:"event_button_click font-regular text-sm leading-1/5 !text-black no-underline hover:underline focus:rounded focus:outline-2 focus:outline-offset-2 focus:outline-indigo_400","data-action-detail":e.title,children:e.title})},n)})})]})})]})}),(0,N.jsx)("div",{className:"ml-8 w-auto 2md:ml-0 2md:flex 2md:w-[10%] 2md:items-start 2md:justify-end 2lg:w-[12%]",children:(0,N.jsx)(eb,{className:"event_button_click mt-[
10.3rem] p-0 before:content-none",icon:"closeOverlay",onClick:function(){s(),t(!1)},"data-action-detail":"Close Search Box","aria-label":"Close Search Box",size:"2xl"})})]})})};function ew(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,l=Array(n);t<n;t++)l[t]=e[t];return l}function eN(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);n&&(l=l.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,l)}return t}function e_(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?eN(Object(t),!0).forEach(function(n){o()(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):eN(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}var eE=j()(function(){return Promise.resolve().then(t.bind(t,13087))},{loadableGenerated:{webpack:function(){return[13087]}}}),eL=j()(function(){return Promise.resolve().then(t.bind(t,23510))},{loadableGenerated:{webpack:function(){return[23510]}}}),eS=j()(function(){return Promise.all([t.e(8770),t.e(6725),t.e(3705),t.e(7520),t.e(8569),t.e(3186),t.e(5302),t.e(1169),t.e(3589),t.e(7747),t.e(4945),t.e(1448),t.e(459),t.e(8081),t.e(323),t.e(8247),t.e(9480),t.e(2681)]).then(t.bind(t,2921)).then(function(e){return{default:e.ModernIcon}})},{loadableGenerated:{webpack:function(){return[2921]}}}),eT=j()(function(){return Promise.resolve().then(t.bind(t,52281)).then(function(e){return{default:e.ModernButton}})},{loadableGenerated:{webpack:function(){return[52281]}}}),eC=t(54618).customJsonstringify,eI=function(e){var n,t,l,a,r,c,d,x,b,k,j,A,B,z,O,M,q,W,U,Q,$,X,ee=e.document,et=(null==ee?void 0:ee.fields)||{},el=et.siteLogo,ei=et.logoAltText,ea=et.searchLink,eo=et.cartLink,er=et.menuListItems,es=et.labels,ec=et.skipNavLabel,eu=et.skipNavTargetId,ed=et.defaultSearchQuery,ef=p.K.container,em=p.K.homeLink,ev=p.K.logo,eh=p.K.menuItemsDiv,ep=p.K.menuItem,ex=p.K.placeholderDiv,eg=(p.K.overlay,p.K.nav),eb=p.K.menuPanel,ey=p.K.closeButton,ek=p.K.backNavigation,eN=p.K.backNavBorder,eI=p.K.menuContent,eK=p.K.menuScroll,eA=p.K.bottomSection,eD=p.K.bottomList,eP=p.K.supportItem,eB=p.K.supportItemInner,ez=p.K.supportLink,eO=p.K.supportIcon,eM=p.K.authItem,eR=p.K.welcomeText,eG=p.K.authButtonsContainer,eq=p.K.loginButton,eH=p.K.orSeparatorContainer,eV=p.K.gradientLink,eZ=p.K.gradientText,eW=p.K.menuItemContainer,eF=p.K.menuItemLink,eU=p.K.menuItemContent,eQ=p.K.menuItemIcon,e$=p.K.menuItemTextContainer,eY=p.K.menuItemTextContainerWithGap,eX=p.K.menuItemChevron,eJ=p.K.desktopMenuContainer,e0=p.K.desktopMenuItemsWrapper,e1=p.K.desktopMenuButton,e2=p.K.desktopMenuButtonActive,e5=p.K.desktopMenuLink,e3=p.K.desktopDropdownMenu,e4=p.K.desktopDropdownAnimateIn,e6=p.K.desktopDropdownAnimateOut,e7=p.K.desktopDropdownInner,e8=p.K.desktopDropdownGrid,e9=p.K.desktopDropdownMenuList,ne=p.K.desktopDropdownMenuListHeader,nn=p.K.desktopDropdownMenuListSubmenu,nt=p.K.desktopDropdownSubmenuLink,nl=p.K.desktopDropdownLinkItem,ni=p.K.desktopDropdownLinkContent,na=p.K.leftItems,no=p.K.leftItemLinkGroup,nr=p.K.leftItemLinkContent,ns=p.K.leftItemImageContainer,nc=p.K.leftItemImage,nu=p.K.leftItemGradientOverlay,nd=p.K.leftItemText,nf=p.K.rightItems,nm=p.K.rightItemLinkGroup,nv=p.K.rightItemLinkContent,nh=p.K.rightItemImageContainer,np=p.K.rightItemGradientOverlay,nx=p.K.rightItemText,ng=p.K.gradientBorder;p.K.countrySelector,p.K.countrySelectorButton,p.K.countrySelectorFlag,p.K.countrySelectorText,p.K.countrySelectorChevron,p.K.countrySelectorDropdown,p.K.countrySelectorOption,p.K.countrySelectorOptionFlag,p.K.countrySelectorOptionText;var nb=(0,H.qG)(function(){return Promise.resolve(void 0)}),ny=(nb.dtcCartLoading,nb.dtcCartError,nb.dtcCartData),nk=nb.callDtcCartService,nj=(0,J.Kc)().basketItems,nw=(0,m.useRef)(null);(0,m.useRef)(null);var nN=(0,m.useState)(!1),n_=nN[0],nE=nN[1],nL=(0,m.useState)([]),nS=nL[0],nT=nL[1],nC=(0,m.useState)([]),nI=nC[0],nK=nC[1],nA=(0,m.useState)([]),nD=nA[0],nP=nA[1],nB=(0,m.useState)(!1),nz=nB[0],nO=nB[1],nM=(0,m.useState)(null),nR=nM[0],nG=nM[1],nq=(0,m.useState)(!1),nH=nq[0],nV=nq[1],nZ=(0,m.useState)(!1),nW=nZ[0],nF=nZ[1],nU=(0,m.useState)(!1),nQ=nU[0],n$=nU[1],nY=(0,m.useRef)(null),nX=(0,m.useRef)(null),nJ=(0,m.useState)(!0),n0=nJ[0],n1=nJ[1],n2=(0,m.useState)(64),n5=n2[0],n3=n2[1],n4=(0,m.useRef)(0),n6=(0,w.hZ)(),n7=u()(n6,2),n8=n7[0],n9=n7[1],te=(0,h.aF)().user,tn=(0,m.useState)(null),tt=(tn[0],tn[1]),tl=(0,m.useState)(C._y),ti=tl[0];tl[1];var ta=(0,m.useState)({}),to=ta[0];ta[1];var tr=(0,m.useState)(""),ts=tr[0],tc=tr[1],tu=(0,m.useState)(!1),td=(tu[0],tu[1]),tf=(0,m.useState)(!1),tm=tf[0],tv=tf[1],th=window.location.pathname.includes("/search"),tp=(0,m.useState)(null),tx=tp[0],tg=tp[1],tb=(0,m.useState)(!1),ty=tb[0],tk=tb[1],tj=(0,m.useState)(!1),tw=tj[0],tN=tj[1],t_=(0,m.useState)({}),tE=t_[0],tL=t_[1],tS=(0,m.useRef)({}),tT=(0,m.useState)(!1),tC=tT[0],tI=tT[1],tK=(0,m.useState)(0),tA=tK[0],tD=tK[1],tP=(0,m.useState)(!1),tB=tP[0],tz=tP[1],tO=(0,m.useRef)(null),tM=(0,m.useState)(!1),tR=tM[0],tG=tM[1],tq=(0,m.useState)("uk"),tH=tq[0],tV=tq[1],tZ=(0,m.useRef)(null),tW=(0,m.useRef)(null),tF=(0,m.useState)(!1),tU=tF[0],tQ=tF[1],t$=(0,m.useRef)(!1),tY=(0,m.useState)(!1),tX=tY[0],tJ=tY[1],t0=(0,m.useState)(!1),t1=t0[0],t2=t0[1],t5=(0,m.useState)(!1),t3=t5[0],t4=t5[1],t6=Array.isArray(null==es?void 0:es.offersData)?es.offersData:[],t7={uk:{name:"United Kingdom",shortName:"UK",flag:"/static/images/Eureka/uk-flag.svg",url:"/en-gb"},ie:{name:"Ireland",shortName:"IE",flag:"/static/images/Eureka/ir-flag.svg",url:"/en-ie"}},t8=(0,m.useState)(!1),t9=t8[0],le=t8[1],ln=(0,m.useState)(!1),lt=ln[0],ll=ln[1],li=(t=(n=(0,m.useState)(!1))[0],l=n[1],(0,m.useEffect)(function(){var e=(0,v.Ds)(function(){return l(window.innerWidth<=768)},150);return e(),window.addEventListener("resize",e),function(){window.removeEventListener("resize",e),e.cancel()}},[]),t),la=V.Z.MIN_BASKET.SHOULD_RENDER_MINI_BASKET,lo=(0,m.useRef)(null),lr=(0,m.useRef)(!1),ls=(0,m.useRef)(null),lc=(0,m.useRef)(null),lu=(0,m.useState)(!1),ld=lu[0],lf=lu[1],lm=(0,m.useRef)(null),lv=function(){if(!lr.current){lo.current&&(clearTimeout(lo.
1current),lo.current=null),window.document.activeElement&&(lc.current=window.document.activeElement),lr.current=!0,le(!0),ll(!0),lf(!1);var e=(0,Z.oj)("DtcCartId");(0,K.sz)(V.Z.GA_EVENTS.event_bin_action,V.Z.GA_EVENTS.event_preview_cart,"Cart Id [".concat(e,"]")),setTimeout(function(){if(lr.current=!1,ls.current){var e=ls.current.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');e.length>0?e[0].focus():ls.current.focus()}},350)}},lh=function(){nk({operation:"GET_CART",cartId:(0,Z.oj)("DtcCartId"),sku:null,quantity:0,dtcToken:(0,Z.oj)("DtcToken")||null})},lp=function(){sessionStorage.setItem("DtcBasketStatus",""),le(!1),ll(!0),lo.current&&clearTimeout(lo.current),lo.current=window.setTimeout(function(){if(ll(!1),lo.current=null,lc.current&&"function"==typeof lc.current.focus){try{lc.current.focus()}catch(e){console.warn("Could not restore focus to previous element:",e)}lc.current=null}},1e3)},lx=function(){lp(),ly("close"),(0,K.sz)(V.Z.GA_EVENTS.event_bin_action,V.Z.GA_EVENTS.event_continue_shopping,"continue shopping clicked")};(0,m.useEffect)(function(){return function(){lo.current&&clearTimeout(lo.current)}},[]),(0,m.useEffect)(function(){lh()},[]),(0,m.useEffect)(function(){if(null===lm.current){lm.current=nj;return}var e=nj>lm.current;lm.current=nj;var n=sessionStorage.getItem("DtcBasketStatus"),t=[V.Z.MIN_BASKET.ADDED_TO_BASKET_LABEL,V.Z.MIN_BASKET.UPDATED_BASKET_LABEL].includes(n||"");if(e&&t){var l=window.location.pathname.toLowerCase();l.endsWith("/basket")||l.includes("/basket?")||(lv(),lf(!0))}},[nj]),(0,m.useEffect)(function(){var e=function(){nw.current&&n3(nw.current.getBoundingClientRect().height)},n=(0,v.Ds)(e,150);return e(),window.addEventListener("resize",n),function(){window.removeEventListener("resize",n),n.cancel()}},[]),(0,m.useEffect)(function(){var e=0,n=function(n){var t=Date.now();t-e<50||(e=t,"ArrowUp"===n.key||"PageUp"===n.key||"Home"===n.key?tk(!0):("ArrowDown"===n.key||"PageDown"===n.key||"End"===n.key)&&tk(!1))};return window.addEventListener("keydown",n),function(){window.removeEventListener("keydown",n)}},[]),(0,m.useEffect)(function(){var e=function(){var e=window.scrollY,n=e-n4.current,t=window.document.getElementById("blue-banner-abtest-variant-one");tN(!!t&&lb(t)),e>n5?n>0?(n1(!1),tk(!1)):n<-10&&(n1(!0),tk(!0)):(n1(!0),tk(!0)),n4.current=e};return window.addEventListener("scroll",e,{passive:!0}),window.addEventListener("resize",e),e(),function(){window.removeEventListener("scroll",e),window.removeEventListener("resize",e)}},[n5]),(0,m.useEffect)(function(){var e=function(e){tZ.current&&!tZ.current.contains(e.target)&&tG(!1)};return tR&&window.document.addEventListener("mousedown",e),function(){window.document.removeEventListener("mousedown",e)}},[tR]),(0,m.useEffect)(function(){tU?(t$.current=tC,tI(!0)):t$.current||tI(!1)},[tU]),(0,m.useEffect)(function(){return tC?tO.current&&(clearInterval(tO.current),tO.current=null):tO.current=setInterval(function(){tz(!0),setTimeout(function(){tD(function(e){return(e+1)%t6.length}),tz(!1)},500)},3e3),function(){tO.current&&(clearInterval(tO.current),tO.current=null)}},[tC]),(0,m.useEffect)(function(){var e=window.document.querySelector("main")||window.document.getElementById("__next"),n=window.document.querySelector("footer");tm?(e&&e.setAttribute("aria-hidden","true"),n&&n.setAttribute("aria-hidden","true")):(e&&e.removeAttribute("aria-hidden"),n&&n.removeAttribute("aria-hidden"))},[tm]),(0,m.useEffect)(function(){nK([{fields:{contentType:"menuList",title:"Main Menu",menuItems:er}}])},[er]),(0,m.useEffect)(function(){var e=function(e){nY.current&&!nY.current.contains(e.target)&&nw.current&&!nw.current.contains(e.target)&&(n$(!1),nF(!0),setTimeout(function(){nV(!1),nG(null),nF(!1),n9()},500))};return nH&&window.document.addEventListener("mousedown",e),function(){window.document.removeEventListener("mousedown",e)}},[nH]);var lg=function(e){var n=nS.length;nK(function(n){return[].concat(s()(n),[e])}),nT([].concat(s()(nS),[n])),setTimeout(function(){nP(function(e){return[].concat(s()(e),[n])})},10)},lb=function(e){if(!e)return!1;var n=e.getBoundingClientRect();return n.top>=0&&n.left>=0&&Math.round(n.bottom)<=(window.innerHeight||window.document.documentElement.clientHeight)&&Math.round(n.right)<=(window.innerWidth||window.document.documentElement.clientWidth)},ly=function(e){"open"===e?(nE(!0),nT([0]),nO(!0),n8(),setTimeout(function(){nP([0]),nO(!1)},10)):(nO(!0),nP([]),setTimeout(function(){nE(!1),nT([]),nO(!1),nS.length>=2&&nK(nI.slice(0,-1))},300),n9())},lk=function(){if(nS.length>=2){var e=nS.slice(0,-1),n=nI.slice(0,-1);nO(!0),nP(e),setTimeout(function(){nT(e),nK(n),nO(!1)},300)}else 1===nS.length&&ly("close")},lj=function(e){var n=e.fields.contentType;switch(n){case"menuLink":return lT(e.fields),null;case"menuList":return e.fields.level="child",lg(e),null;default:return"Unsupported Type : "+n}},lw=function(e,n){var t=e.scrollHeight>e.clientHeight,l=e.scrollTop+e.clientHeight>=e.scrollHeight-5;tL(function(e){return e_(e_({},e),{},o()({},n,t&&!l))})},lN=function(e,n){setTimeout(function(){lw(e,n)},100)},l_=function(e){var n=tS.current[e];n&&n.scrollTo({top:n.scrollHeight,behavior:"smooth"})},lE=function(){(0,E.$b)()},lL=function(){t2(!0),t4(!1),setTimeout(function(){tJ(!1),t2(!1),n9()},300)},lS=function(){(0,L.QG)(eC({feature:S.ao.oktaFeature,label:S.ao.register,event:S.ao.buttonClick})),(0,K.gB)((null==es?void 0:es.registerLink)||"")};(0,m.useEffect)(function(){i()(f().mark(function e(){var n;return f().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,E.MX)(S.ao.navigationBlock);case 2:tt(n=e.sent),td(!0),setTimeout(function(){n&&((0,L.QG)(eC({feature:S.ao.oktaFeature,message:S.ao.oktaTokenExist,component:S.ao.navigationBlock})),(0,E.qL)(n,ti,to,function(e,n){if(e){var t=null==n?void 0:null==(i=n.data)?void 0:i.profile,l={};(0,L.QG)(eC({feature:S.ao.oktaFeature,message:S.ao.CDPProfileExist,component:S.ao.navigationBlock}));var i,a,o,r=function(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=function(e,n){if(e){if("string"==typeof e)return ew(e,void 0);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return ew(e,void 0)}}(e))){t&&(e=t);var l=0,i=function(){};return{s:i,n:function(){return l>=e.length?{done:!0}:{done:!1,value:e[l++]}},e:function(e){throw e},f:i}
1}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,r=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return o=e.done,e},e:function(e){r=!0,a=e},f:function(){try{o||null==t.return||t.return()}finally{if(r)throw a}}}}(null==t?void 0:t.traits);try{for(r.s();!(o=r.n()).done;){var s=o.value;l[s.traitName]={values:s.values}}}catch(e){r.e(e)}finally{r.f()}tc(null==l?void 0:null==(a=l.firstName)?void 0:a.values),td(!1)}else(0,L.QG)(eC({feature:S.ao.oktaFeature,message:S.ao.oktaTokenNotExist,component:S.ao.navigationBlock})),td(!1)}))},2e3);case 6:case"end":return e.stop()}},e)}))(),T.Z.on("firstName",function(e){e&&e.value&&tc(null==e?void 0:e.value)})},[]);var lT=function(e){(null==e?void 0:null==(n=e.internalLink)?void 0:null==(t=n.fields)?void 0:t.slug)&&!(null==e?void 0:e.internalLink.fields.disabled)?l=e.internalLink.fields.slug:"string"==typeof(null==e?void 0:e.externalLink)&&(l=e.externalLink);var n,t,l,i=(null==e?void 0:e.internalLink)?"_self":"_blank";l&&window.open(l,i)},lC=function(e,n,t){e.preventDefault(),n9(),"_blank"===t?window.open(n,"_blank"):window.location.href=n},lI=function(e,n,t){var l=(null==e?void 0:null==(a=e.fields)?void 0:a.menuItems)&&e.fields.menuItems.length>0,i="menuLink"===e.fields.contentType;if(i){var a,o,r,s,c,u,d,f,m,v,h,p,x,g,b,k,j,w,_,E,L=e.fields;(null==L?void 0:null==(_=L.internalLink)?void 0:null==(E=_.fields)?void 0:E.slug)&&!(null==L?void 0:L.internalLink.fields.disabled)?(j=L.internalLink.fields.slug,w="_self"):"string"==typeof(null==L?void 0:L.externalLink)&&(j=L.externalLink,w="_blank")}var S=[null==e?void 0:null==(o=e.fields)?void 0:o.title,null==e?void 0:null==(r=e.fields)?void 0:r.description].filter(Boolean).join(", ")||void 0,T=(0,N.jsxs)("div",{className:eU,children:[(null==e?void 0:null==(s=e.fields)?void 0:null==(c=s.iconType)?void 0:null==(u=c.fields)?void 0:u.name)&&(0,N.jsx)(eS,{size:"md",name:null==e?void 0:null==(d=e.fields)?void 0:null==(f=d.iconType)?void 0:null==(m=f.fields)?void 0:m.name,color:"#0E1C63",className:eQ,decorative:!0}),(0,N.jsxs)("div",{className:D()((null==e?void 0:null==(v=e.fields)?void 0:v.description)===void 0?e$:eY),children:[(0,N.jsx)(eL,{type:"subhead",variant:"sh3-20",fontWeight:"light",color:"dark-gradient",className:"pb-[0.2rem] !leading-1 lg:leading-[1.1]",children:(null==e?void 0:null==(h=e.fields)?void 0:h.title)||""}),(0,N.jsx)(eL,{color:"grey",type:"body",variant:"medium-16",fontWeight:"light",children:(null==e?void 0:null==(p=e.fields)?void 0:p.description)||""})]}),l&&(0,N.jsx)(eS,{size:"md",className:eX,name:"chevronRight",color:"#0050EF",decorative:!0})]});return(0,N.jsx)("li",{className:eW,children:i&&j?(0,N.jsx)(y(),{href:j,target:w,className:"".concat(ep," ").concat(eF," focus-visible:outline-black"),"aria-label":S,"data-action-detail":(0,K.Vt)((null==e?void 0:null==(x=e.fields)?void 0:x.eventLabel)||""),"data-action-label":(0,K.Vt)((null==e?void 0:null==(g=e.fields)?void 0:g.eventLabel)||""),tabIndex:t?0:-1,onClick:function(e){return lC(e,j,w)},children:T}):(0,N.jsx)("button",{className:"".concat(ep," ").concat(eF," focus-visible:outline-black"),onClick:function(){return lj(e)},"aria-label":S,"aria-haspopup":l?"true":void 0,"data-action-detail":(0,K.Vt)((null==e?void 0:null==(b=e.fields)?void 0:b.eventLabel)||""),"data-action-label":(0,K.Vt)((null==e?void 0:null==(k=e.fields)?void 0:k.eventLabel)||""),type:"button",tabIndex:t?0:-1,children:T})},n)},lK=function(e){if(""===eu||null===window.document.getElementById(eu||"")){e.preventDefault();var n=window.document.querySelector(S.oW.roleMain);(0,K.dj)(n)}};return(0,m.useEffect)(function(){var e="blue-banner-abtest-variant-one",n=null,t=null,l=function(e){"block"===e.style.getPropertyValue("display")?(e.classList.remove("hidden"),tg(!1)):(tg(e.classList.contains("hidden")),(t=new MutationObserver(function(){tg(e.classList.contains("hidden"))})).observe(e,{attributes:!0,attributeFilter:["class","style"]}))},i=window.document.getElementById(e);return i?l(i):(n=new MutationObserver(function(){var t=window.document.getElementById(e);t&&(l(t),n&&(n.disconnect(),n=null))})).observe(window.document.body,{childList:!0,subtree:!0}),function(){t&&t.disconnect(),n&&n.disconnect()}},[]),(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)("div",{style:{height:Math.max(n5,64)},className:ex}),(0,N.jsxs)("nav",{ref:nw,className:"".concat(ef," ").concat(eg," ").concat(n0?"translate-y-0":"-translate-y-full-custum"," ").concat(tx?"!top-0":ty&&tw?"top-[5.5rem] 2md:top-[4.8rem]":"!top-0"),role:"navigation","aria-label":"Main navigation","data-isPromoHidden":tx,"data-forceTop":ty,"data-promobarVisible":tw,children:[(0,N.jsx)("div",{children:(0,N.jsx)(y(),{"tab-index":"0",role:"link","aria-label":null==ec?void 0:null==(a=ec.fields)?void 0:a.text,href:eu||"",onClick:function(e){return lK(e)}
1,className:"sr-only focus:not-sr-only focus:z-50 focus:block focus:w-full focus:border focus:border-base_color_dark_blue focus:bg-white focus:p-2 focus:text-left focus:text-lg focus:text-base_color_dark_blue focus:underline",children:(null==ec?void 0:null==(r=ec.fields)?void 0:r.text)||""})}),(0,N.jsx)("div",{ref:tW,className:"flex w-full items-center justify-center px-0 2md:hidden 2md:w-3/4 2md:px-[10rem] 2lg:w-77p",role:"region","aria-label":"Promotional offers carousel","aria-live":"polite","aria-atomic":"true",children:(0,N.jsxs)("div",{className:"flex h-[37px] w-full items-center justify-between gap-6 rounded-[5px] bg-grey_light_100 px-1h",children:[(0,N.jsxs)("div",{className:"relative flex-1 overflow-hidden text-center",children:[(0,N.jsx)(y(),{href:t6[tA].url,tabIndex:0,onFocus:function(){return tQ(!0)},onBlur:function(){return tQ(!1)},"aria-label":"View offer: ".concat(t6[tA].text),"data-action-detail":"".concat(S.yj.topBannerPrefix,"_").concat(t6[tA].text),className:"event_button_click flex items-center justify-center rounded-md hover:!translate-x-0 hover:opacity-100 focus:!translate-x-0 focus:!opacity-100 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-1 ".concat(tB?"-translate-x-full opacity-0 transition-all duration-500 ease-in-out":"translate-x-0 opacity-100"),children:(0,N.jsx)(eL,{type:"body",variant:"small-14",fontWeight:"regular",color:"grey",className:"!text-13 transition-all focus-within:font-bold focus-within:!text-blue-600 hover:font-bold hover:!text-blue-600",children:t6[tA].text})}),(0,N.jsx)(y(),{href:t6[(tA+1)%t6.length].url,tabIndex:-1,onFocus:function(){return tQ(!0)},onBlur:function(){return tQ(!1)},"data-action-detail":"".concat(S.yj.topBannerPrefix,"_").concat(t6[(tA+1)%t6.length].text),className:"event_button_click absolute inset-0 flex items-center justify-center focus:!translate-x-0 focus:!opacity-100 focus:outline focus:outline-2 focus:outline-blue-500 ".concat(tB?"translate-x-0 opacity-100 transition-all duration-500 ease-in-out":"translate-x-full opacity-0"),children:(0,N.jsx)(eL,{type:"body",variant:"small-14",fontWeight:"regular",color:"grey",className:"transition-all hover:font-bold",children:t6[(tA+1)%t6.length].text})})]}),(0,N.jsx)("button",{onClick:function(){return tI(!tC)},className:"ml-auto rounded-md focus:outline-2 focus:outline-blue-500 focus:ring-2 focus:ring-blue-500 focus:ring-offset-1","aria-label":"Pause offer carousel","aria-pressed":tC,title:"Pause offer carousel",children:(0,N.jsx)(eS,{size:"sm",name:tC?"play":"pause",color:"#0E1C63",decorative:!0})})]})}),(0,N.jsxs)("div",{className:"flex flex-row items-center justify-between px-1 pt-1/2 lg:px-2p4h 2md:pb-1 2md:pt-0",children:[(0,N.jsx)(y(),{className:"".concat(em," event_button_click focus-visible:ring-2 focus-visible:ring-blue-500"),href:"/","tab-index":"0","data-action-detail":"Logo",children:(0,N.jsx)(g(),{className:ev,src:(0,P.H)(null==el?void 0:null==(c=el.fields)?void 0:null==(d=c.file)?void 0:d.url)||"",alt:ei||"",width:158,height:54,unoptimized:!0})}),(0,N.jsx)("div",{ref:tW,className:"hidden items-center justify-center px-[10rem] lg:flex 2md:w-3/4 2lg:w-77p",role:"region","aria-label":"Promotional offers carousel","aria-live":"polite","aria-atomic":"true",children:(0,N.jsxs)("div",{className:"flex h-[37px] w-full items-center justify-between gap-6 rounded-[5px] bg-grey_light_100 px-1h",children:[(0,N.jsxs)("div",{className:"relative flex-1 overflow-hidden text-center",children:[(0,N.jsx)(y(),{href:t6[tA].url,tabIndex:0,onFocus:function(){return tQ(!0)},onBlur:function(){return tQ(!1)},"aria-label":"View offer: ".concat(t6[tA].text),"data-action-detail":"".concat(S.yj.topBannerPrefix,"_").concat(t6[tA].text),className:"event_button_click flex items-center justify-center rounded-md hover:!translate-x-0 hover:opacity-100 focus:!translate-x-0 focus:!opacity-100 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-1 ".concat(tB?"-translate-x-full opacity-0 transition-all duration-500 ease-in-out":"translate-x-0 opacity-100"),children:(0,N.jsx)(eL,{type:"body",variant:"small-14",fontWeight:"regular",color:"grey",className:"transition-all focus-within:font-bold focus-within:!text-blue-600 hover:font-bold hover:!text-blue-600",children:t6[tA].text})}),(0,N.jsx)(y(),{href:t6[(tA+1)%t6.length].url,tabIndex:-1,onFocus:function(){return tQ(!0)},onBlur:function(){return tQ(!1)},"data-action-detail":"".concat(S.yj.topBannerPrefix,"_").concat(t6[(tA+1)%t6.length].text),className:"event_button_click absolute inset-0 flex items-center justify-center focus:!translate-x-0 focus:!opacity-100 focus:outline focus:outline-2 focus:outline-blue-500 ".concat(tB?"translate-x-0 opacity-100 transition-all duration-500 ease-in-out":"translate-x-full opacity-0"),children:(0,N.jsx)(eL,{type:"body",variant:"small-14",fontWeight:"regular",color:"grey",className:"transition-all hover:font-bold",children:t6[(tA+1)%t6.length].text})})]}),(0,N.jsx)("button",{onClick:function(){return tI(!tC)},className:"ml-auto rounded-md focus:outline-2 focus:outline-blue-500 focus:ring-2 focus:ring-blue-500 focus:ring-offset-1","aria-label":"Pause offer carousel","aria-pressed":tC,title:"Pause offer carousel",children:(0,N.jsx)(eS,{size:"sm",name:tC?"play":"pause",color:"#0E1C63",decorative:!0})})]})}
1),(0,N.jsxs)("div",{className:eh,children:[(0,N.jsx)(eE,{size:"md",icon:"search",href:ea||"",onClick:function(){tv(!tm)},"aria-label":"Search","aria-expanded":tm,"aria-controls":"search-box",className:"event_button_click focus:outline ".concat(th?"hidden":""),"data-action-detail":"Search",type:"button"}),(0,N.jsx)(eE,{size:"md",icon:te?"ProfileIconLoggedIn":"ProfileIcon",onClick:te?function(){(0,I.e)("event_informational_action","event_button_click","View Profile"),(0,K.gB)((null==es?void 0:es.profileLink)||"")}:function(){(0,L.QG)(eC({feature:S.ao.oktaFeature,label:S.ao.login,event:S.ao.buttonClick})),(0,K.gB)((null==es?void 0:es.loginLink)||"")},"aria-label":"Profile",className:"event_button_click hidden focus:outline lg:block ".concat(th?"hidden":""),"data-action-detail":"Profile",type:"button"}),(0,N.jsxs)("div",{className:"cart-icon-button-wrap",children:[(0,N.jsx)(eE,{size:"md",icon:"cart",href:eo||"","aria-label":"Cart","aria-expanded":t9,"aria-haspopup":"true","aria-controls":"cart-panel",className:"event_view_cart focus:outline",as:"link","data-action-detail":"Cart",onClick:function(e){e.preventDefault(),(0,K.sz)(V.Z.GA_EVENTS.event_bin_action,V.Z.GA_EVENTS.event_view_cart,"View Shopping Cart"),(0,K.gB)(V.Z.DTC_BASKET_PAGE)}}),nj>0&&(0,N.jsx)("span",{className:"cart-quantity-badge",children:nj})]}),(0,N.jsx)(eE,{className:"event_menu_click focus:outline focus-visible:outline-black lg:hidden",size:"md",icon:"menu",onClick:function(){return ly("open")},"aria-label":"Navigation Menu","aria-expanded":n_,"aria-haspopup":"true","aria-controls":"mobile-menu-panel",type:"button","data-action-detail":null==es?void 0:es.menuOpenLabel})]})]}),(0,N.jsx)("div",{className:ng}),(0,N.jsx)("div",{className:eJ,children:(0,N.jsx)("div",{className:e0,children:null==er?void 0:er.map(function(e,n){var t="menuList"===e.fields.contentType,l="link"===e.fields.contentType,i=nR===e&&nH;if(t)return(0,N.jsx)("button",{className:"".concat(e1," ").concat(i?e2:""),"aria-expanded":i,"aria-haspopup":"true",onClick:function(){i&&nQ?(n$(!1),nF(!0),setTimeout(function(){nV(!1),nG(null),nF(!1),n9()},500)):(nX.current&&(clearTimeout(nX.current),nX.current=null),nG(e),nV(!0),n$(!0),nF(!1),n8())},onMouseEnter:function(){nQ||(nX.current&&(clearTimeout(nX.current),nX.current=null),nW&&nF(!1),nG(e),nV(!0),n8())},"data-action-detail":(0,K.Vt)((null==e?void 0:null==(o=e.fields)?void 0:o.eventLabel)||""),children:(0,N.jsx)(eL,{type:"body",variant:"medium-16",fontWeight:"regular",color:"grey",className:"!leading-1/3 !text-blue_175",children:(null==e?void 0:null==(r=e.fields)?void 0:r.title)||""})},n);if(l){var a=e.fields;return(0,N.jsx)(y(),{href:a.url||"#",className:"".concat(e5," ").concat(a.linkClassName||""),"data-action-detail":(0,K.Vt)((null==a?void 0:a.eventLabel)||""),onClick:function(e){return lC(e,a.url||"#")},children:(0,N.jsx)(eL,{type:"body",variant:"medium-16",fontWeight:"regular",color:"grey",className:"!leading-1/3 !text-blue_175 hover:font-bold",children:a.title||""})},n)}if("menuLink"===e.fields.contentType){var o,r,s,c,u=e.fields,d="";return(null==u?void 0:null==(s=u.internalLink)?void 0:null==(c=s.fields)?void 0:c.slug)&&!(null==u?void 0:u.internalLink.fields.disabled)?d=u.internalLink.fields.slug:"string"==typeof(null==u?void 0:u.externalLink)&&(d=u.externalLink),d?(0,N.jsx)(y(),{href:d,className:e5,"data-action-detail":(0,K.Vt)((null==u?void 0:u.eventLabel)||""),target:(null==u?void 0:u.internalLink)?"_self":"_blank",onClick:function(e){return lC(e,d,(null==u?void 0:u.internalLink)?"_self":"_blank")},children:(0,N.jsx)(eL,{type:"body",variant:"medium-16",fontWeight:"regular",color:"grey",className:"!leading-1/3 !text-blue_175",children:u.title||""})},n):null}return null})})})]}),(nH||nW)&&nR&&(0,N.jsx)("div",{ref:nY,className:"".concat(e3," ").concat(nW?e6:e4),style:{top:(null==(x=nw.current)?void 0:x.getBoundingClientRect().bottom)||64},onMouseEnter:function(){nX.current&&(clearTimeout(nX.current),nX.current=null),nF(!1),nV(!0)},onMouseLeave:function(){nQ||(nX.current=setTimeout(function(){nF(!0),setTimeout(function(){nV(!1),nG(null),nF(!1),n9()},500)},100))},children:(0,N.jsx)("div",{className:e7,children:(0,N.jsxs)("div",{className:"".concat(e8," ").concat((null==nR?void 0:null==(b=nR.fields)?void 0:b.className)||""),children:[null==(k=nR.fields.menuItems)?void 0:k.map(function(e,n){var t,l="menuList"===e.fields.contentType,i="link"===e.fields.contentType;if(l)return(0,N.jsxs)("div",{className:"".concat(e9),children:[(0,N.jsx)("div",{className:ne,children:(0,N.jsx)(eL,{type:"subhead",variant:"sh3-20",fontWeight:"regular",color:"dark-gradient",children:(null==e?void 0:null==(t=e.fields)?void 0:t.t
1itle)||""})}),e.fields.menuItems&&(0,N.jsx)("div",{className:nn,children:e.fields.menuItems.map(function(e,n){var t,l,i,a=e.fields,o="";return(null==a?void 0:null==(t=a.internalLink)?void 0:null==(l=t.fields)?void 0:l.slug)&&!(null==a?void 0:a.internalLink.fields.disabled)?o=a.internalLink.fields.slug:"string"==typeof(null==a?void 0:a.externalLink)&&(o=a.externalLink),o?(0,N.jsx)(y(),{href:o,className:nt,onClick:function(e){return lC(e,o)},children:(null==e?void 0:null==(i=e.fields)?void 0:i.title)||""},n):null})})]},n);if(i){var a=e.fields;return(0,N.jsx)(y(),{href:a.url||"#",className:nl,onClick:function(e){return lC(e,a.url||"#")},children:(0,N.jsx)("div",{className:ni,children:(0,N.jsx)(eL,{type:"subhead",variant:"sh3-20",fontWeight:"light",color:"dark-gradient",children:a.title||""})})},n)}return null}),(null==(j=nR.fields.menuItems)?void 0:j.some(function(e){var n=e.fields;return"menuLink"===e.fields.contentType&&(null==n?void 0:n.menuLinkType)==="left-item"}))&&(0,N.jsx)("div",{className:na,children:null==(A=nR.fields.menuItems)?void 0:A.filter(function(e){var n=e.fields;return"menuLink"===e.fields.contentType&&(null==n?void 0:n.menuLinkType)==="left-item"}).map(function(e,n){var t,l,i,a,o,r,s,c,u,d,f,m,v,h,p,x,b,k,j,w=e.fields,_="";return(null==w?void 0:null==(t=w.internalLink)?void 0:null==(l=t.fields)?void 0:l.slug)&&!(null==w?void 0:w.internalLink.fields.disabled)?_=w.internalLink.fields.slug:"string"==typeof(null==w?void 0:w.externalLink)&&(_=w.externalLink),_?(0,N.jsx)(y(),{href:_,"data-action-detail":(0,K.Vt)((null==e?void 0:null==(i=e.fields)?void 0:i.eventLabel)||""),className:"".concat(nl," ").concat(no),onClick:function(e){lC(e,_)},children:(0,N.jsxs)("div",{className:nr,children:[(0,N.jsxs)("div",{className:ns,children:[(0,N.jsx)(g(),{loading:"lazy",src:(0,P.H)((null==w?void 0:null==(a=w.menuImage)?void 0:null==(o=a.fields)?void 0:null==(r=o.file)?void 0:r.url)||""),alt:(0,K.Vt)((null==w?void 0:null==(s=w.menuImage)?void 0:null==(c=s.fields)?void 0:c.description)||""),width:(null==w?void 0:null==(u=w.menuImage)?void 0:null==(d=u.fields)?void 0:null==(f=d.file)?void 0:null==(m=f.details)?void 0:null==(v=m.image)?void 0:v.width)||50,height:(null==w?void 0:null==(h=w.menuImage)?void 0:null==(p=h.fields)?void 0:null==(x=p.file)?void 0:null==(b=x.details)?void 0:null==(k=b.image)?void 0:k.height)||50,unoptimized:!0,className:nc}),(0,N.jsx)("div",{className:nu})]}),(0,N.jsx)(eL,{type:"body",variant:"small-14",fontWeight:"regular",color:"grey",className:nd,children:(null==e?void 0:null==(j=e.fields)?void 0:j.title)||""})]})},"left-".concat(n)):null})}),(null==(B=nR.fields.menuItems)?void 0:B.some(function(e){var n=e.fields;return"menuLink"===e.fields.contentType&&(null==n?void 0:n.menuLinkType)==="right-item"}))&&(0,N.jsx)("div",{className:nf,children:null==(z=nR.fields.menuItems)?void 0:z.filter(function(e){var n=e.fields;return"menuLink"===e.fields.contentType&&(null==n?void 0:n.menuLinkType)==="right-item"}).map(function(e,n){var t,l,i,a,o,r,s,c,u,d,f,m,v,h,p,x,b,k,j,w=e.fields,_="";return(null==w?void 0:null==(t=w.internalLink)?void 0:null==(l=t.fields)?void 0:l.slug)&&!(null==w?void 0:w.internalLink.fields.disabled)?_=w.internalLink.fields.slug:"string"==typeof(null==w?void 0:w.externalLink)&&(_=w.externalLink),_?(0,N.jsx)(y(),{href:_,"data-action-detail":(0,K.Vt)((null==e?void 0:null==(i=e.fields)?void 0:i.eventLabel)||""),className:"".concat(nl," ").concat(nm),onClick:function(e){lC(e,_)},children:(0,N.jsxs)("div",{className:nv,children:[(0,N.jsxs)("div",{className:nh,children:[(0,N.jsx)(g(),{loading:"lazy",src:(0,P.H)((null==w?void 0:null==(a=w.menuImage)?void 0:null==(o=a.fields)?void 0:null==(r=o.file)?void 0:r.url)||""),alt:(0,K.Vt)((null==w?void 0:null==(s=w.menuImage)?void 0:null==(c=s.fields)?void 0:c.description)||""),width:(null==w?void 0:null==(u=w.menuImage)?void 0:null==(d=u.fields)?void 0:null==(f=d.file)?void 0:null==(m=f.details)?void 0:null==(v=m.image)?void 0:v.width)||50,height:(null==w?void 0:null==(h=w.menuImage)?void 0:null==(p=h.fields)?void 0:null==(x=p.file)?void 0:null==(b=x.details)?void 0:null==(k=b.image)?void 0:k.height)||50,unoptimized:!0,className:nc}),(0,N.jsx)("div",{className:np})]}),(0,N.jsx)(eL,{type:"body",variant:"small-14",fontWeight:"regular",color:"grey",className:nx,children:(null==e?void 0:null==(j=e.fields)?void 0:j.title)||""})]})},"right-".concat(n)):null})})]})})}),(n_||nz)&&(0,N.jsx)(_,{isVisible:n_,isTransitioning:nz,onClose:function(){return ly("close")},"aria-label":(null==es?void 0:es.menuCloseLabel)||"Close menu overlay",className:"z-50",children:(0,N.jsx)("div",{id:"mobile-menu-panel",className:"relative h-screen w-full",onClick:function(e){e.target===e.currentTarget&&ly("close")},children:nI.map(function(e,n){var t,l,i,a,o,r,s,c,u,d,f,m=nD.includes(n);return(0,N.jsxs)("div",{className:"".concat(eb," ").concat(0===n?n_&&m?"translate-x-0 transition-transform duration-300 ease-in-out":"translate-x-full transition-transform duration-300 ease-in-out":m?"translate-x-0 transition-transform duration-300 ease-in-out":"translate-x-full transition-transform duration-300 ease-in-out"),onClick:function(e){return e.stopPropagation()},"aria-hidden":!m,style:m?void 0:{visibility:"hidden"},children:[(0,N.jsx)(eE,{size:"sm",icon:"close",className:"".concat(ey," event_menu_click"),onClick:function(){return ly("close")},"aria-label":"Close Menu","data-action-detail":null==es?void 0:es.menuCloseLabel}),0!==n&&(0,N.jsxs)("div",{className:ek,children:[(0,N.jsx)("div",{onKeyDown:function(e){("Enter"===e.key||" "===e.key)&&
1(e.preventDefault(),lk())},className:"focus:outline focus-visible:outline-black","aria-label":"Go back from ".concat((null==e?void 0:null==(t=e.fields)?void 0:t.title)||""," menu"),tabIndex:m?0:-1,role:"button",onClick:lk,children:(0,N.jsx)(eS,{size:"2xl",name:"chevronLeft",color:"#0E1C63",decorative:!0})}),(0,N.jsxs)("div",{className:eN,children:[(null==e?void 0:null==(l=e.fields)?void 0:null==(i=l.iconType)?void 0:null==(a=i.fields)?void 0:a.name)&&(0,N.jsx)(eS,{size:"md",name:null==e?void 0:null==(o=e.fields)?void 0:null==(r=o.iconType)?void 0:null==(s=r.fields)?void 0:s.name,"aria-label":"Icon",color:"#0E1C63"}),(0,N.jsx)(eL,{color:"dark-gradient",type:"body",variant:"small-14",fontWeight:"semibold",className:"!font-semi-bold focus:outline","aria-label":(null==e?void 0:null==(c=e.fields)?void 0:c.title)||"",children:(null==e?void 0:null==(u=e.fields)?void 0:u.title)||""})]})]}),(0,N.jsxs)("div",{className:eI,children:[(0,N.jsxs)("div",{className:"relative ".concat(0===n?"xxs:max-h-[70%] xxss:max-h-[75%] 2lg:max-h-[70%] 3lg:max-h-[75%]":"h-[80%]"),children:[(0,N.jsx)("ul",{className:eK,ref:function(e){e&&(tS.current[n]=e,lN(e,n))},onScroll:function(e){lw(e.target,n)},children:null==e?void 0:null==(d=e.fields)?void 0:null==(f=d.menuItems)?void 0:f.map(function(e,n){return lI(e,n,m)})}),tE[n]&&(0,N.jsx)("button",{onClick:function(){return l_(n)},className:"absolute bottom-0 right-2 animate-bounce rounded-full bg-white/90 p-1 shadow-lg backdrop-blur-sm transition-colors hover:bg-white/100 focus:outline focus:outline-2 focus:outline-blue-600","aria-label":"Scroll to bottom",tabIndex:m?0:-1,children:(0,N.jsx)(eS,{size:"sm",name:"chevronDown",color:"#0E1C63",decorative:!0})})]}),(0,N.jsx)("div",{className:eA,children:0===n&&(0,N.jsxs)("ul",{className:eD,children:[(0,N.jsx)("li",{className:eP,children:(0,N.jsxs)("div",{className:eB,children:[(0,N.jsx)(eS,{size:"lg",name:"supportLink","aria-label":"supportLink",className:eO,decorative:!0}),(0,N.jsx)(y(),{className:"".concat(ez," event_menu_click focus:outline"),href:(null==es?void 0:es.supportLink)||"","data-action-detail":(null==es?void 0:es.supportLabel)||"",tabIndex:m?0:-1,onClick:function(e){return lC(e,(null==es?void 0:es.supportLink)||"")},children:(0,N.jsx)(eL,{color:"dark-gradient",type:"body",variant:"medium-16",fontWeight:"regular",children:(null==es?void 0:es.supportLabel)||""})})]})}),(0,N.jsxs)("li",{className:eM,children:[te&&(0,N.jsxs)(eL,{type:"body",variant:"medium-16",className:eR,color:"grey",children:["Welcome, ",ts]}),(0,N.jsxs)("div",{className:eG,children:[te?(0,N.jsx)(eT,{as:"link",href:(null==es?void 0:es.profileLink)||"",size:"medium",className:"".concat(eq," event_button_click"),variant:"primary-blue",icon:"login","aria-label":(null==es?void 0:es.profileLabel)||"Profile",onClick:function(){(0,I.e)("event_informational_action","event_button_click","View Profile")},"data-action-detail":(null==es?void 0:es.profileLabel)||"",children:(null==es?void 0:es.profileLabel)||""}):(0,N.jsx)(eT,{as:"link",href:(null==es?void 0:es.loginLink)||"",size:"medium",className:"".concat(eq," event_profile_login"),variant:"primary-blue",icon:"login","aria-label":(null==es?void 0:es.loginLabel)||"Login",onClick:function(){(0,L.QG)(eC({feature:S.ao.oktaFeature,label:S.ao.login,event:S.ao.buttonClick}))},"data-action-detail":(null==es?void 0:es.loginLabel)||"",children:(null==es?void 0:es.loginLabel)||""}),(0,N.jsxs)("div",{className:eH,children:[(0,N.jsx)(eL,{color:"grey",type:"body",variant:"medium-16",fontWeight:"light",children:(null==es?void 0:es.orSeparator)||""}),te?(0,N.jsx)("button",{type:"button","aria-label":"Log out",className:"".concat(eV," event_profile_logout focus:outline"),onClick:function(){return lE()},"data-action-detail":(null==es?void 0:es.logoutLabel)||"",tabIndex:m?0:-1,children:(0,N.jsx)("span",{className:eZ,children:(null==es?void 0:es.logoutLabel)||""})}):(0,N.jsx)("button",{type:"button","aria-label":"Register",className:"".concat(eV," event_profile_register focus:outline"),onClick:function(){return lS()},"data-action-detail":(null==es?void 0:es.registerLabel)||"",tabIndex:m?0:-1,children:(0,N.jsx)("span",{className:eZ,
1children:(null==es?void 0:es.registerLabel)||""})})]})]})]})]})})]})]},n)})})}),(tX||t1)&&(0,N.jsx)(_,{isVisible:tX,isTransitioning:t1,onClose:lL,"aria-label":"Country selector",className:"z-50",children:(0,N.jsx)("div",{className:"relative h-screen w-full",onClick:function(e){e.target===e.currentTarget&&lL()},children:(0,N.jsxs)("div",{className:"".concat(eb," ").concat(t3?"translate-x-0 transition-transform duration-300 ease-in-out":"translate-x-full transition-transform duration-300 ease-in-out"),onClick:function(e){return e.stopPropagation()},children:[(0,N.jsx)(eE,{size:"sm",icon:"close",className:"".concat(ey," event_menu_click"),onClick:lL,"aria-label":"Close country selector"}),(0,N.jsxs)("div",{className:ek,children:[(0,N.jsx)("div",{onKeyDown:function(e){("Enter"===e.key||" "===e.key)&&(e.preventDefault(),lL())},className:"focus:outline focus-visible:outline-black","aria-label":"Go back",tabIndex:0,role:"button",onClick:lL,children:(0,N.jsx)(eS,{size:"2xl",name:"chevronLeft",color:"#0E1C63",decorative:!0})}),(0,N.jsxs)("div",{className:eN,children:[(0,N.jsx)(g(),{src:(0,P.H)(t7[tH].flag),alt:"".concat(t7[tH].name," flag"),width:24,height:24,unoptimized:!0,className:"rounded-full"}),(0,N.jsx)(eL,{color:"dark-gradient",type:"body",variant:"small-14",fontWeight:"semibold",className:"!font-semi-bold focus:outline","aria-label":"".concat(t7[tH].name," selected"),children:t7[tH].name})]})]}),(0,N.jsx)("div",{className:eI,children:(0,N.jsx)("div",{className:"flex items-center justify-center pt-[7.4rem]",children:(0,N.jsxs)("div",{className:"inline-flex items-center rounded-[60px] bg-gradient-to-r from-[#0E1C63] to-[#0050EF] p-[1.5px]",children:[(0,N.jsxs)("button",{onClick:function(){tV("uk")},className:"flex h-[3.5rem] w-[8rem] items-center gap-[6px] rounded-[32px] py-[1.5px] pl-[1px] pr-3 transition-all ".concat("uk"===tH?"bg-white":"bg-transparent"),"aria-label":"Select United Kingdom","aria-pressed":"uk"===tH,children:[(0,N.jsx)(g(),{src:(0,P.H)(t7.uk.flag),alt:"UK flag",width:32,height:32,unoptimized:!0,className:"h-[31.59px] w-[31.59px] rounded-full"}),(0,N.jsx)("span",{className:"text-[21px] font-medium leading-[1.5] ".concat("uk"===tH?"text-[#0033A0]":"text-white"),style:{fontFamily:"Hurme Geometric Sans 1, sans-serif"},children:"UK"})]}),(0,N.jsxs)("button",{onClick:function(){tV("ie")},className:"ml-1h flex h-[3.5rem] w-[7rem] items-center gap-[6px] rounded-[32px] py-[1.5px] pl-[1px] transition-all ".concat("ie"===tH?"bg-white":"bg-transparent"),"aria-label":"Select Ireland","aria-pressed":"ie"===tH,children:[(0,N.jsx)(g(),{src:(0,P.H)(t7.ie.flag),alt:"Ireland flag",width:32,height:32,unoptimized:!0,className:"h-[31.59px] w-[31.59px] rounded-full"}),(0,N.jsx)("span",{className:"text-[21px] font-medium leading-[1.5] ".concat("ie"===tH?"text-[#0033A0]":"text-white"),style:{fontFamily:"Hurme Geometric Sans 1, sans-serif"},children:"IE"})]})]})})})]})})}),(tX||t1)&&(0,N.jsx)(_,{isVisible:tX,isTransitioning:t1,onClose:lL,"aria-label":"Country selector",className:"z-50",children:(0,N.jsx)("div",{className:"relative h-screen w-full",onClick:function(e){e.target===e.currentTarget&&lL()},children:(0,N.jsxs)("div",{className:"".concat(eb," ").concat(t3?"translate-x-0 transition-transform duration-300 ease-in-out":"translate-x-full transition-transform duration-300 ease-in-out"),onClick:function(e){return e.stopPropagation()},children:[(0,N.jsx)(eE,{size:"sm",icon:"close",className:"".concat(ey," event_menu_click"),onClick:lL,"aria-label":"Close country selector"}),(0,N.jsxs)("div",{className:ek,children:[(0,N.jsx)("div",{onKeyDown:function(e){("Enter"===e.key||" "===e.key)&&(e.preventDefault(),lL())},className:"focus:outline focus-visible:outline-black","aria-label":"Go back",tabIndex:0,role:"button",onClick:lL,children:(0,N.jsx)(eS,{size:"2xl",name:"chevronLeft",color:"#0E1C63",decorative:!0})}),(0,N.jsxs)("div",{className:eN,children:[(0,N.jsx)(g(),{src:(0,P.H)(t7[tH].flag),alt:"".concat(t7[tH].name," flag"),width:24,height:24,unoptimized:!0,className:"rounded-full"}),(0,N.jsx)(eL,{color:"dark-gradient",type:"body",variant:"small-14",fontWeight:"semibold",className:"!font-semi-bold focus:outline","aria-label":"".concat(t7[tH].name," selected"),children:t7[tH].name})]})]}),(0,N.jsx)("div",{className:eI,children:(0,N.jsx)("div",{className:"flex items-center justify-center pt-[7.4rem]",children:(0,N.jsxs)("div",{className:"inline-flex items-center rounded-[60px] bg-gradient-to-r from-[#0E1C63] to-[#0050EF] p-[1.5px]",children:[(0,N.jsxs)("button",{onClick:function(){tV("uk")},className:"flex h-[3.5rem] w-[8rem] items-center gap-[6px] rounded-[32px] py-[1.5px] pl-[1px] pr-3 transition-all ".concat("uk"===tH?"bg-white":"bg-transparent"),"aria-label":"Select United Kingdom","aria-pressed":"uk"===tH,children:[(0,N.jsx)(g(),{src:(0,P.H)(t7.uk.flag),alt:"UK flag",width:32,height:32,unoptimized:!0,className:"h-[31.59px] w-[31.59px] rounded-full"}),(0,N.jsx)("span",{className:"text-[21px] font-medium leading-[1.5] ".concat("uk"===tH?"text-[#0033A0]":"text-white"),style:{fontFamily:"Hurme Geometric Sans 1, sans-serif"},children:"UK"})]}),(0,N.jsxs)("button",{onClick:function(){tV("ie")},className:"ml-1h flex h-[3.5rem] w-[7rem] items-center gap-[6px] rounded-[32px] py-[1.5px] pl-[1px] transition-all ".concat("ie"===tH?"bg-white":"bg-transparent"),"aria-label":"Select Ireland","aria-pressed":"ie"===tH,children:[(0,N.jsx)(g(),{src:(0,P.H)(t7.ie.flag),alt:"Ireland flag",width:32,height:32,unoptimized:!0,className:"h-[31.59px] w-[31.59px] rounded-full"}),(0,N.jsx)("span",{className:"text-[21px] font-medium leading-[1.5] ".concat("ie"===tH?"text-[#0033A0]":"text-white"),style:{fontFamily:"Hurme Geometric Sans 1, sans-serif"},children:"IE"})]})]})})})]})})}),la?(t9||lt)&&(0,N.jsx)("div",{id:"cart-panel",ref:ls,role:"dialog","aria-modal":"true","aria-label":"Shopping cart",tabIndex:-1,
1children:li?(0,N.jsx)(G.Z,{isOpen:t9,onClose:lp,header:(0,N.jsx)(Y,{newItemAdded:ld}),footer:(0,N.jsx)(en,{cartTotalQuantity:null==ny?void 0:null==(O=ny.Data)?void 0:O.totalQuantity,cartTotalPrice:null==ny?void 0:null==(M=ny.Data)?void 0:M.totalPrice,onContinueShopping:lx}),children:(0,N.jsx)(F,{cartData:null==ny?void 0:ny.Data})}):(0,N.jsx)(R,{isOpen:t9,onClose:lp,header:(0,N.jsx)(Y,{newItemAdded:ld}),footer:(0,N.jsx)(en,{cartTotalQuantity:null==ny?void 0:null==(q=ny.Data)?void 0:q.totalQuantity,cartTotalPrice:null==ny?void 0:null==(W=ny.Data)?void 0:W.totalPrice,onContinueShopping:lx}),children:(0,N.jsx)(F,{cartData:null==ny?void 0:ny.Data})})}):null,tm&&(0,N.jsx)(ej,{onClose:tv,isOpen:tm,allowScroll:n9,defaultList:ed||[],logo:null==el?void 0:null==(U=el.fields)?void 0:null==(Q=U.file)?void 0:Q.url,logoAltText:ei,src:(0,P.H)(null==el?void 0:null==($=el.fields)?void 0:null==(X=$.file)?void 0:X.url)||"",homeLink:em})]})}},17409:function(e){e.exports={headerContainer:"MiniBasketHeader_headerContainer___EgFh",title:"MiniBasketHeader_title___83Bj",addedMessage:"MiniBasketHeader_addedMessage__rgdvB",checkIcon:"MiniBasketHeader_checkIcon__ALqjV",addedText:"MiniBasketHeader_addedText__AvKst"}}}]);

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.