"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[702],{2727:function(e,t,n){n.d(t,{_:function(){return w}});var r,i,s=n(7328);n(2784);var o=n(41688),a=n(80193),l=n(28999),d=n(14332),c=n(41467),u=n(52322),h=(0,c.zo)(o.T)(r||(r=(0,s.Z)(["\n ",";\n color: ",";\n text-transform: ",";\n text-decoration: ",";\n * {\n ",";\n color: ",";\n text-transform: ",";\n text-decoration: ",";\n }\n"])),function(e){return(0,l.xv)(e.theme.widgets.stripBanner.font.entry,e.theme.widgets.stripBanner.font.style)},function(e){return e.theme.widgets.stripBanner.font.textColor},function(e){return e.theme.widgets.stripBanner.font.transform},function(e){return e.theme.widgets.stripBanner.font.textDecoration},function(e){return(0,l.xv)(e.theme.widgets.stripBanner.font.entry,e.theme.widgets.stripBanner.font.style)},function(e){return e.theme.widgets.stripBanner.font.textColor},function(e){return e.theme.widgets.stripBanner.font.transform},function(e){return e.theme.widgets.stripBanner.font.textDecoration}),g=c.zo.a(i||(i=(0,s.Z)(["\n display: block;\n margin-top: ",";\n margin-bottom: ",";\n background-color: ",";\n box-shadow: ",";\n width: 100%;\n height: 100%;\n align-items: center;\n text-align: center;\n padding: ",";\n text-decoration: none;\n border: 3px solid transparent;\n outline: none;\n color: ",";\n ","\n\n &:hover {\n background-color: ",";\n color: ",";\n text-decoration: ",";\n\n ",", "," * {\n color: ",";\n }\n }\n\n &:focus {\n text-decoration: underline;\n border: ",";\n background-color: ",";\n\n ",", "," * {\n color: ",";\n }\n }\n"])),function(e){return e.theme.widgets.stripBanner.margin.top},function(e){return e.theme.widgets.stripBanner.margin.bottom},function(e){return e.theme.widgets.stripBanner.backgroundColor},function(e){return e.theme.widgets.stripBanner.boxShadow},(0,d.W0)(1),function(e){return e.theme.widgets.stripBanner.font.textColor},function(e){return"#ffffff"===e.theme.widgets.stripBanner.backgroundColor?"border-bottom: 1px solid #d2d2d2;":""},function(e){return e.theme.widgets.stripBanner.hoverBackgroundColor},function(e){return e.theme.widgets.stripBanner.hoverTextColor},function(e){return e.theme.widgets.stripBanner.hoverTextDecoration},h,h,function(e){return e.theme.widgets.stripBanner.hoverTextColor},function(e){return"".concat(e.theme.widgets.stripBanner.border.focusWidth," \n solid \n ").concat(e.theme.widgets.stripBanner.border.focusColor||e.theme.colors.palette.brand.base)},function(e){return e.theme.widgets.stripBanner.focusBackgroundColor},h,h,function(e){return e.theme.widgets.stripBanner.focusTextColor}),p=(0,a.Rq)("href",g),w=function(e){return e.stripBannerText?(0,u.jsx)(p,{"data-testid":"strip-banner",href:e.stripBannerURL,children:(0,u.jsx)(h,{content:e.stripBannerText})}):null}},44820:function(e,t,n){n.d(t,{G:function(){return i}});var r,i=((r={}).HOME_PAGE="HOMEPAGE",r.LANDING="LANDING",r.SEARCH="SEARCH",r.PRODUCT="PRODUCT",r.ACCOUNT="ACCOUNT",r.BASKET="BASKET",r.PRODUCT_LIST="PRODUCT_LIST",r.STORE_LOCATOR="STORE_LOCATOR",r.PERSONALISE="PERSONALISE_YOUR_BOX",r)},70702:function(e,t,n){n.r(t),n.d(t,{WidgetBanner:function(){return ex}});var r,i,s,o,a,l,d,c,u,h,g,p,w,f,x,v,B=n(2784),m=n(44820),k=n(41467),b=n(25237),y=n.n(b),j=n(80193),T=n(7328),C=n(61929),P=n(41688),R=n(28999),A=n(14332),D=n(34952),F=(0,k.iv)(r||(r=(0,T.Z)(["\n ",";\n text-transform: ",";\n text-decoration: ",";\n color: ",";\n\n &:hover {\n ",";\n text-transform: ",";\n text-decoration: ",";\n color: ",";\n }\n"])),function(e){return(0,R.xv)(e.theme.widgets.uspBar.font.entry,e.theme.widgets.uspBar.font.style)},function(e){return e.theme.widgets.uspBar.font.transform},function(e){return e.theme.widgets.uspBar.font.textDecoration},function(e){return e.theme.widgets.uspBar.font.textColor},function(e){return(0,R.xv)(e.theme.widgets.uspBar.hoverFont.entry,e.theme.widgets.uspBar.hoverFont.style)},function(e){return e.theme.widgets.uspBar.hoverFont.transform},function(e){return e.theme.widgets.uspBar.hoverFont.textDecoration},function(e){return e.theme.widgets.uspBar.hoverFont.textColor}),S=k.zo.div(s||(s=(0,T.Z)(["\n width: 100%;\n justify-content: center;\n visibility: hidden;\n position: absolute;\n top: 0;\n left: 0;\n animation: ","s\n "," infinite;\n animation-delay: ","s;\n\n &:first-child {\n position: static;\n }\n\n "," {\n display: flex;\n padding: 0 ",";\n width: auto;\n animation: none;\n visibility: visible;\n position: static;\n }\n"])),function(e){return 2*e.panelCount},function(e){var t;return t=e.panelCount,(0,A.F4)(i||(i=(0,T.Z)(["\n 0% { visibility: visible }\n ","% { visibility: hidden }\n"])),100/t)},function(e){return 2*e.index},function(e){return(0,D.mq)(e.theme.breakpointUtils.map,"lg")},(0,A.W0)(2)),L=k.zo.div(a||(a=(0,T.Z)(["\n display: flex;\n margin: -6px 0 1px 0;\n\n "," {\n display: none;\n }\n"])),function(e){return(0,D.mq)(e.theme.breakpointUtils.map,"lg")}),U=k.zo.span(l||(l=(0,T.Z)(["\n width: 5px;\n height: 5px;\n margin: 0 2px;\n border-radius: 3px;\n background: ",";\n animation: ","s\n "," infinite;\n animation-delay: ","s;\n"])),function(e){return e.theme.colors.palette.greys.light},function(e){return 2*e.panelCount},function(e){var t,n;return t=e.theme,n=e.panelCount,(0,A.F4)(o||(o=(0,T.Z)(["\n 0% { background: "," }\n ","% { background: "," }\n ","% { background: "," }\n 100% { background: "," }\n"])),t.colors.palette.greys.darker,100/n-.01,t.colors.palette.greys.darker,100/n,t.colors.palette.greys.light,t.colors.palette.greys.light)},function(e){return 2*e.index}),G=k.zo.div(d||(d=(0,T.Z)(["\n height: ",";\n"])),(0,A.W0)(7)),O=k.zo.a(c||(c=(0,T.Z)(["\n ","\n display: flex;\n justify-content: center;\n align-items: center;\n text-decoration: none;\n padding-right: 2px;\n ",";\n text-align: center;\n color: ",";\n\n &::after {\n ","\n display: block;\n content: 'P';\n height: 0;\n visibility: hidden;\n }\n\n &:hover {\n ",";\n text-transform: ",";\n text-decoration: ",";\n color: ",";\n }\n\n &:focus {\n border-color: ",";\n }\n"])),F,(0,C.wL)(),function(e){return e.theme.widgets.uspBar.font.textColor},F,function(e){return(0,R.xv)(e.theme.widgets.uspBar.hoverFont.entry,e.theme.widgets.uspBar.hoverFont.style)},function(e){return e.theme.widgets.uspBar.hoverFont.transform},function(e){return e.theme.widgets.uspBar.hoverFont.textDecoration},function(e){return e.theme.widgets.uspBar.hoverFont.textColor},function(e){return e.theme.widgets.uspBar.focusBorderColor||e.theme.colors.palette.brand.base}),q=k.zo.div(u||(u=(0,T.Z)(["\n display: flex;\n justify-content: center;\n align-items: center;\n width: 40px;\n height: 40px;\n\n ","\n"])),function(e){return e.isClipBoard?"svg {\n fill: ".concat(e.theme.widgets.uspBar.iconFill,";\n path {\n stroke: ").concat(e.theme.widgets.uspBar.iconFill,";\n }\n }"):"svg {\n \n path {\n ".concat(e.useStrokeFill?"stroke: ".concat(e.theme.widgets.uspBar.iconFill,";"):"fill: ".concat(e.theme.widgets.uspBar.iconFill,";"),"\n \n }\n ")}),E=k.zo.div(h||(h=(0,T.Z)(["\n display: flex;\n justify-content: center;\n align-items: center;\n text-decoration: none;\n ",";\n text-align: center;\n\n &::after {\n ","\n display: block;\n content: 'P';\n height: 0;\n visibility: hidden;\n }\n"])),F,F),I=k.zo.div(g||(g=(0,T.Z)(["\n display: flex;\n justify-content: center;\n width: 100%;\n align-items: center;\n flex-direction: column;\n "," {\n padding: ",";\n }\n "," {\n padding: ",";\n }\n"])),function(e){return(0,D.mq)(e.theme.breakpointUtils.map,"xs")},(0,A.W0)(1),function(e){return(0,D.mq)(e.theme.breakpointUtils.map,"md")},function(e){return(0,A.W0)(e.theme.widgets.uspBar.padding)}),Z=k.zo.div(p||(p=(0,T.Z)(["\n background-color: ",";\n display: flex;\n justify-content: center;\n align-items: center;\n flex-wrap: nowrap;\n max-width: 100%;\n\n "," {\n ","\n }\n\n "," {\n height: auto;\n }\n"])),function(e){var t;return null!==(t=e.backgroundColour)&&void 0!==t?t:e.theme.widgets.uspBar.backgroundColor},function(e){return(0,D.mq)(e.theme.breakpointUtils.map,"xs")},function(e){return e.theme.widgets.uspBar.height&&"height: ".concat(e.theme.widgets.uspBar.height)},function(e){return(0,D.mq)(e.theme.breakpointUtils.map,"md")}),N=(0,k.iv)(w||(w=(0,T.Z)(["\n ",";\n vertical-align: middle;\n\n &::after {\n ","\n display: block;\n content: '00:00:00';\n font-weight: 700;\n height: 0;\n visibility: hidden;\n }\n"])),(0,R.xv)("medium1","alternate"),(0,R.xv)("medium1","alternate")),z=k.zo.div(f||(f=(0,T.Z)(["\n ",";\n padding-left: ",";\n\n ","\n"])),(0,R.xv)("small","alternate"),(0,A.W0)(1),function(e){return e.isDesktop&&N}),_=k.zo.div(x||(x=(0,T.Z)(["\n display: flex;\n justify-content: center;\n flex-wrap: wrap;\n align-items: center;\n"]))),H=(0,k.zo)(P.T)(v||(v=(0,T.Z)(["\n ","\n\n * {\n ","\n }\n"])),F,F),M=n(52322),W=y()(function(){return Promise.resolve().then(n.bind(n,86372))},{ssr:!0,fallback:(0,M.jsx)("div",{style:{width:24,height:24}}),loadableGenerated:{webpack:function(){return[86372]}}}),K=y()(function(){return Promise.resolve().then(n.bind(n,66365))},{ssr:!0,fallback:(0,M.jsx)("div",{style:{width:24,height:24}}),loadableGenerated:{webpack:function(){return[66365]}}}),X=y()(function(){return Promise.resolve().then(n.bind(n,87241))},{ssr:!0,fallback:(0,M.jsx)("div",{style:{width:24,height:24}}),loadableGenerated:{webpack:function(){return[87241]}}}),Y=y()(function(){return Promise.resolve().then(n.bind(n,13623))},{ssr:!0,fallback:(0,M.jsx)("div",{style:{width:24,height:24}}),loadableGenerated:{webpack:function(){return[13623]}}}),$=y()(function(){return Promise.resolve().then(n.bind(n,17730))},{ssr:!0,fallback:(0,M.jsx)("div",{style:{width:24,height:24}}),loadableGenerated:{webpack:function(){return[17730]}}}),J=y()(function(){return Promise.resolve().then(n.bind(n,94995))},{ssr:!0,fallback:(0,M.jsx)("div",{style:{width:24,height:24}}),loadableGenerated:{webpack:function(){return[94995]}}}),Q=y()(function(){return Promise.resolve().then(n.bind(n,38486))},{ssr:!0,fallback:(0,M.jsx)("div",{style:{width:24,height:24}}),loadableGenerated:{webpack:function(){return[38486]}}}),V=y()(function(){return Promise.resolve().then(n.bind(n,92978))},{ssr:!0,fallback:(0,M.jsx)("div",{style:{width:24,height:24}}),loadableGenerated:{webpack:function(){return[92978]}}}),ee=y()(function(){return Promise.resolve().then(n.bind(n,38345))},{ssr:!0,fallback:(0,M.jsx)("div",{style:{width:24,height:24}}),loadableGenerated:{webpack:function(){return[38345]}}}),et=y()(function(){return Promise.resolve().then(n.bind(n,90555))},{ssr:!0,fallback:(0,M.jsx)("div",{style:{width:24,height:24}}),loadableGenerated:{webpack:function(){return[90555]}}}),en=y()(function(){return Promise.resolve().then(n.bind(n,99344))},{ssr:!0,fallback:(0,M.jsx)("div",{style:{width:24,height:24}}),loadableGenerated:{webpack:function(){return[99344]}}}),er=y()(function(){return Promise.resolve().then(n.bind(n,58402))},{ssr:!0,fallback:(0,M.jsx)("div",{style:{width:24,height:24}}),loadableGenerated:{webpack:function(){return[58402]}}}),ei=y()(function(){return Promise.resolve().then(n.bind(n,42073))},{ssr:!0,fallback:(0,M.jsx)("div",{style:{width:24,height:24}}),loadableGenerated:{webpack:function(){return[42073]}}}),es=y()(function(){return Promise.resolve().then(n.bind(n,32206))},{ssr:!0,fallback:(0,M.jsx)("div",{style:{width:24,height:24}}),loadableGenerated:{webpack:function(){return[32206]}}}),eo=y()(function(){return Promise.resolve().then(n.bind(n,3021))},{loadableGenerated:{webpack:function(){return[3021]}}}),ea=(0,j.Rq)("href",O),el=function(e){return"0".concat(e).slice(-2)},ed=function(e){switch(e){case 0:return"sunday";case 1:return"monday";case 2:return"tuesday";case 3:return"wednesday";case 4:default:return"thursday";case 5:return"friday";case 6:return"saturday"}},ec=function(e){var t=e.rawPanelInformation,n=e.isDesktop,r=t.timezoneOffset,i=(0,B.useState)(new Date().getDay()),s=i[0],o=i[1],a=(0,B.useState)(t["".concat(ed(s),"Cutoff")]),l=a[0],d=a[1],c=(0,B.useState)(1e3*Date.now()%60),u=c[0],h=c[1];(0,B.useEffect)(function(){var e=setInterval(g,40);return function(){clearInterval(e)}});var g=(0,B.useCallback)(function(){var e=new Date().getDay();e!==s&&(o(e),d(t["".concat(ed(s),"Cutoff")]));var n=1e3*Date.now()%60;u!==n&&h(n)},[u,t,s]),p=(0,B.useMemo)(function(){return(0,M.jsx)(_,{"data-testid":"countdown-finished",children:t.countDownText},"countdown-text-empty")},[t]),w=/^(\d|\d\d):(\d\d)$/.exec(l);if(!w)return p;var f=parseInt(w[1],10)-parseInt(r,10),x=parseInt(w[2],10);if(isNaN(f)||isNaN(x)||f<0||f>23||x<0||x>59)return p;var v=new Date,m=new Date().setHours(f,x,0)-v.getTime();if(m<0)return p;var k=el(Math.floor(m/3600/1e3%24)),b=el(Math.floor(m/60/1e3%60)),y=el(Math.floor(m/1e3%60));return(0,M.jsxs)(_,{"data-testid":"countdown-".concat(k,":").concat(b,":").concat(y),children:[t.countDownText,":",(0,M.jsxs)(z,{isDesktop:n,children:[k,":",b,":",y]},"wrapper")]},"countdown-text")},eu=function(e,t,n,r){var i=[];return e?(Object.keys(e).forEach(function(s){if(/.*Text/.exec(s)&&""!==e[s])switch(s){case"rewardPointsText":eh(i,{child:(0,M.jsx)(H,{"data-testid":"rewards-points-text",content:e[s],removeTagsAndContent:!1,tagsToRemove:[]}),link:e.rewardPointsLink,svg:""!==n.widgets.uspBar.icon.rewards.svgPath?(0,M.jsx)(es,{xmlns:"http://www.w3.org/2000/svg",viewBox:n.widgets.uspBar.icon.viewBox,width:n.widgets.uspBar.icon.width,height:n.widgets.uspBar.icon.height,children:(0,M.jsx)("path",{d:n.widgets.uspBar.icon.rewards.svgPath,fillRule:"evenodd"})}):(0,M.jsx)(K,{fill:n.widgets.uspBar.iconFill||n.colors.palette.greys.dark,"aria-hidden":"true",focusable:"false"}),key:s,order:n.widgets.uspBar.icon.rewards.order},n);break;case"countDownText":eh(i,{child:(0,M.jsx)(ec,{rawPanelInformation:e,isDesktop:t}),link:e.countDownLink,svg:""!==n.widgets.uspBar.icon.countDown.svgPath?(0,M.jsx)(es,{xmlns:"http://www.w3.org/2000/svg",viewBox:n.widgets.uspBar.icon.viewBox,width:n.widgets.uspBar.icon.width,height:n.widgets.uspBar.icon.height,children:(0,M.jsx)("path",{d:n.widgets.uspBar.icon.countDown.svgPath,fillRule:"evenodd"})}):(0,M.jsx)(W,{fill:n.widgets.uspBar.iconFill||n.colors.palette.greys.dark,"aria-hidden":"true",focusable:"false"}),key:s,order:n.widgets.uspBar.icon.countDown.order,useStrokeFill:!0},n);break;case"internationalDeliveryText":eh(i,{child:(0,M.jsx)(H,{"data-testid":"international-delivery-text",content:e[s],removeTagsAndContent:!1,tagsToRemove:[]}),link:e.internationalDeliveryLink,svg:""!==n.widgets.uspBar.icon.internationalDelivery.svgPath?(0,M.jsx)(es,{xmlns:"http://www.w3.org/2000/svg",viewBox:n.widgets.uspBar.icon.viewBox,width:n.widgets.uspBar.icon.width,height:n.widgets.uspBar.icon.height,children:(0,M.jsx)("path",{d:n.widgets.uspBar.icon.internationalDelivery.svgPath,fillRule:"evenodd"})}):(0,M.jsx)(X,{fill:n.widgets.uspBar.iconFill||n.colors.palette.greys.dark,"aria-hidden":"true",focusable:"false"}),key:s,order:n.widgets.uspBar.icon.internationalDelivery.order},n);break;case"checkmarkText":eh(i,{child:(0,M.jsx)(H,{"data-testid":"check-text",content:e[s],removeTagsAndContent:!1,tagsToRemove:[]}),link:e.checkmarkLink,svg:""!==n.widgets.uspBar.icon.checkmark.svgPath?(0,M.jsx)(es,{xmlns:"http://www.w3.org/2000/svg",viewBox:n.widgets.uspBar.icon.viewBox,width:n.widgets.uspBar.icon.width,height:n.widgets.uspBar.icon.height,children:(0,M.jsx)("path",{d:n.widgets.uspBar.icon.checkmark.svgPath,fillRule:"evenodd"})}):(0,M.jsx)(Y,{fill:n.widgets.uspBar.iconFill||n.colors.palette.greys.dark,"aria-hidden":"true",focusable:"false"}),key:s,order:n.widgets.uspBar.icon.checkmark.order,useStrokeFill:!0},n);break;case"calendarText":eh(i,{child:(0,M.jsx)(H,{"data-testid":"calender-text",content:e[s],removeTagsAndContent:!1,tagsToRemove:[]}),link:e.calendarLink,svg:""!==n.widgets.uspBar.icon.calender.svgPath?(0,M.jsx)(es,{xmlns:"http://www.w3.org/2000/svg",viewBox:n.widgets.uspBar.icon.viewBox,width:n.widgets.uspBar.icon.width,height:n.widgets.uspBar.icon.height,children:(0,M.jsx)("path",{d:n.widgets.uspBar.icon.calender.svgPath,fillRule:"evenodd"})}):(0,M.jsx)($,{fill:n.widgets.uspBar.iconFill||n.colors.palette.greys.dark,"aria-hidden":"true",focusable:"false"}),key:s,order:n.widgets.uspBar.icon.calender.order,useStrokeFill:!1},n);break;case"emailText":eh(i,{child:(0,M.jsx)(H,{"data-testid":"email-text",content:e[s],removeTagsAndContent:!1,tagsToRemove:[]}),link:e.emailLink,svg:""!==n.widgets.uspBar.icon.email.svgPath?(0,M.jsx)(es,{xmlns:"http://www.w3.org/2000/svg",viewBox:n.widgets.uspBar.icon.viewBox,width:n.widgets.uspBar.icon.width,height:n.widgets.uspBar.icon.height,children:(0,M.jsx)("path",{d:n.widgets.uspBar.icon.email.svgPath,fillRule:"evenodd"})}):(0,M.jsx)(J,{fill:n.widgets.uspBar.iconFill||n.colors.palette.greys.dark,"aria-hidden":"true",focusable:"false"}),key:s,order:n.widgets.uspBar.icon.email.order},n);break;case"deliveryText":eh(i,{child:(0,M.jsx)(H,{"data-testid":"delivery-text",content:e[s],removeTagsAndContent:!1,tagsToRemove:[]}),link:e.deliveryLink,svg:""!==n.widgets.uspBar.icon.delivery.svgPath?(0,M.jsx)(es,{xmlns:"http://www.w3.org/2000/svg",viewBox:n.widgets.uspBar.icon.viewBox,width:n.widgets.uspBar.icon.width,height:n.widgets.uspBar.icon.height,children:(0,M.jsx)("path",{d:n.widgets.uspBar.icon.delivery.svgPath,fillRule:"evenodd"})}):(0,M.jsx)(Q,{fill:n.widgets.uspBar.iconFill||n.colors.palette.greys.dark,"aria-hidden":"true",focusable:"false"}),key:s,order:n.widgets.uspBar.icon.delivery.order},n);break;case"callText":eh(i,{child:(0,M.jsx)(H,{"data-testid":"call-text",content:e[s],removeTagsAndContent:!1,tagsToRemove:[]}),link:e.callLink,icon:e.callIcon,svg:""!==n.widgets.uspBar.icon.call.svgPath?(0,M.jsx)(es,{xmlns:"http://www.w3.org/2000/svg",viewBox:n.widgets.uspBar.icon.viewBox,width:n.widgets.uspBar.icon.width,height:n.widgets.uspBar.icon.height,children:(0,M.jsx)("path",{d:n.widgets.uspBar.icon.call.svgPath,fillRule:"evenodd"})}):"mobile"===e.callIcon?(0,M.jsx)(V,{fill:n.widgets.uspBar.iconFill||n.colors.palette.greys.dark,"aria-hidden":"true",focusable:"false"}):(0,M.jsx)(ee,{fill:n.widgets.uspBar.iconFill||n.colors.palette.greys.dark,"aria-hidden":"true",focusable:"false"}),key:s,order:n.widgets.uspBar.icon.call.order},n);break;case"qualityText":eh(i,{child:(0,M.jsx)(H,{"data-testid":"quality-text",content:e[s],removeTagsAndContent:!1,tagsToRemove:[]}),link:e.qualityLink,svg:""!==n.widgets.uspBar.icon.quality.svgPath?(0,M.jsx)(es,{xmlns:"http://www.w3.org/2000/svg",viewBox:n.widgets.uspBar.icon.viewBox,width:n.widgets.uspBar.icon.width,height:n.widgets.uspBar.icon.height,children:(0,M.jsx)("path",{d:n.widgets.uspBar.icon.quality.svgPath,fillRule:"evenodd"})}):r.qualityText?(0,M.jsx)(ei,{fill:n.widgets.uspBar.iconFill||n.colors.palette.greys.dark,"aria-hidden":"true",focusable:"false"}):(0,M.jsx)(et,{fill:n.widgets.uspBar.iconFill||n.colors.palette.greys.dark,"aria-hidden":"true",focusable:"false"}),key:s,order:n.widgets.uspBar.icon.quality.order,testId:r.qualityText?"zip-pay-icon":"quality-clipboard-svg",useStrokeFill:!r.qualityText,isClipBoard:!r.qualityText},n);break;case"clickAndCollectText":eh(i,{child:(0,M.jsx)(H,{"data-testid":"click-collect-text",content:e[s],removeTagsAndContent:!1,tagsToRemove:[]}),link:e.clickAndCollectLink,svg:""!==n.widgets.uspBar.icon.clickAndCollect.svgPath?(0,M.jsx)(es,{xmlns:"http://www.w3.org/2000/svg",viewBox:n.widgets.uspBar.icon.viewBox,width:n.widgets.uspBar.icon.width,height:n.widgets.uspBar.icon.height,children:(0,M.jsx)("path",{d:n.widgets.uspBar.icon.clickAndCollect.svgPath,fillRule:"evenodd"})}):(0,M.jsx)(en,{fill:n.widgets.uspBar.iconFill||n.colors.palette.greys.dark,"aria-hidden":"true",focusable:"false"}),key:s,order:n.widgets.uspBar.icon.clickAndCollect.order,useStrokeFill:!1},n);break;case"storeText":eh(i,{child:(0,M.jsx)(H,{"data-testid":"store-text",content:e[s],removeTagsAndContent:!1,tagsToRemove:[]}),link:e.storeLink,svg:""!==n.widgets.uspBar.icon.store.svgPath?(0,M.jsx)(es,{xmlns:"http://www.w3.org/2000/svg",viewBox:n.widgets.uspBar.icon.viewBox,width:n.widgets.uspBar.icon.width,height:n.widgets.uspBar.icon.height,children:(0,M.jsx)("path",{d:n.widgets.uspBar.icon.store.svgPath,fillRule:"evenodd"})}):r.storeText?(0,M.jsx)(er,{fill:n.widgets.uspBar.iconFill||n.colors.palette.greys.dark,"aria-hidden":"true",focusable:"false"}):(0,M.jsx)(et,{fill:n.widgets.uspBar.iconFill||n.colors.palette.greys.dark,"aria-hidden":"true",focusable:"false"}),key:s,order:n.widgets.uspBar.icon.store.order,useStrokeFill:!r.storeText,isClipBoard:!r.qualityText},n);break;case"returnsText":eh(i,{child:(0,M.jsx)(H,{"data-testid":"returns-text",content:e[s],removeTagsAndContent:!1,tagsToRemove:[]}),link:e.returnsLink,svg:""!==n.widgets.uspBar.icon.returns.svgPath?(0,M.jsx)(es,{xmlns:"http://www.w3.org/2000/svg",viewBox:n.widgets.uspBar.icon.viewBox,width:n.widgets.uspBar.icon.width,height:n.widgets.uspBar.icon.height,children:(0,M.jsx)("path",{d:n.widgets.uspBar.icon.returns.svgPath,fillRule:"evenodd"})}):(0,M.jsx)(eo,{fill:n.widgets.uspBar.iconFill||n.colors.palette.greys.dark,"aria-hidden":"true",focusable:"false"}),key:s,order:n.widgets.uspBar.icon.returns.order},n)}}),i.sort(function(e,t){return e.order-t.order}),i):[]};function eh(e,t,n){t.svg||(t.svg=(0,M.jsx)(et,{fill:n.widgets.uspBar.iconFill||n.colors.palette.greys.dark}),t.isClipBoard=!0),""!==t.link||delete t.link,e.push(t)}var eg=function(e){var t=e.panels;return(0,M.jsxs)(I,{children:[(0,M.jsx)("div",{style:{position:"relative",width:"100%",display:"flex",justifyContent:"center"},children:t.map(function(e,n){return(0,M.jsx)(S,{"data-testid":"usp-desktop-panel",panelCount:t.length,index:n,children:e.link?(0,M.jsxs)(ea,{href:e.link,children:[(0,M.jsx)(q,{isClipBoard:e.isClipBoard,useStrokeFill:e.useStrokeFill,"data-testid":e.testId,children:e.svg}),e.child]}):(0,M.jsxs)(E,{children:[(0,M.jsx)(q,{isClipBoard:e.isClipBoard,useStrokeFill:e.useStrokeFill,children:e.svg}),e.child]})},e.key)})}),(0,M.jsx)(L,{children:Array(t.length).fill(null).map(function(e,n){return(0,M.jsx)(U,{index:n,panelCount:t.length})})})]})},ep=function(e){var t=e.isDesktop,n=e.uspBarData,r=e.useAlternateIcon,i=(0,k.Fg)(),s=B.useMemo(function(){return eu(n,t,i,r)},[n,t,i,r]);return 0===s.length?(0,M.jsx)(Z,{children:(0,M.jsx)(G,{"data-testid":"empty-panel"})}):(0,M.jsx)(Z,{backgroundColour:null==n?void 0:n.backgroundColor,role:"complementary","data-testid":"usp-banner",children:(0,M.jsx)(eg,{panels:s})})},ew=n(2727),ef=n(90998),ex=B.memo(function(e){var t,n=e.showStripBanner,r=(0,ef.ND)(),i=r.hasZipPayUsp,s=r.hasStoreUsp,o=r.hasClickAndCollectUsp,a=null===(t=e.widgetData)||void 0===t||null===(t=t.header)||void 0===t?void 0:t.widgets.reduce(function(t,r){switch(r.__typename){case"ResponsiveUSPBar":t.push((0,M.jsx)(ep,{isDesktop:!0,uspBarData:r,userAgent:e.userAgent,useAlternateIcon:{qualityText:i,clickAndCollectText:o,storeText:s}},"USPBar"));break;case"ResponsiveUSPBarCustomisable":t.push((0,M.jsx)(ep,{isDesktop:!0,uspBarData:r,userAgent:e.userAgent,useAlternateIcon:{qualityText:i,clickAndCollectText:o,storeText:s}},"USPBarCustomisable"));break;case"GlobalStripBanner":if(n){var a=function(e){switch(e){case m.G.HOME_PAGE:return{text:r.stripBannerTextHomepage,href:r.stripBannerURLHomepage};case m.G.LANDING:case m.G.SEARCH:return{text:r.stripBannerTextPLP,href:r.stripBannerURLPLP};case m.G.ACCOUNT:return{text:r.stripBannerTextAccount,href:r.stripBannerURLAccount};case m.G.BASKET:return{text:r.stripBannerTextBasket,href:r.stripBannerURLBasket};case m.G.PRODUCT:return{text:r.stripBannerTextPDP,href:r.stripBannerURLPDP};default:return{text:r.stripBannerText,href:r.stripBannerURL}}}(e.pageType),l=a.text,d=a.href;t.push((0,M.jsx)(ew._,{stripBannerText:l||r.stripBannerText,stripBannerURL:d||r.stripBannerURL},"Stripbanner"))}}return t},[]).sort(function(e){return"USPBar"===e.key?-1:1});return(0,M.jsx)("aside",{"data-testid":"widget-banner",children:a})})}}]); //# sourceMappingURL=702.05160b8ddf4e3b8f.js.map