"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7364],{69434:function(n,e,t){t.d(e,{_:function(){return g}});var r,i,o=t(7328);t(2784);var a=t(50556),s=t(93781),l=t(87330),u=t(48840),d=t(15792),c=t(52322),h=(0,d.zo)(a.T)(r||(r=(0,o.Z)(["\n ",";\n color: ",";\n text-transform: ",";\n text-decoration: ",";\n * {\n ",";\n color: ",";\n text-transform: ",";\n text-decoration: ",";\n }\n"])),function(n){return(0,l.xv)(n.theme.widgets.stripBanner.font.entry,n.theme.widgets.stripBanner.font.style)},function(n){return n.theme.widgets.stripBanner.font.textColor},function(n){return n.theme.widgets.stripBanner.font.transform},function(n){return n.theme.widgets.stripBanner.font.textDecoration},function(n){return(0,l.xv)(n.theme.widgets.stripBanner.font.entry,n.theme.widgets.stripBanner.font.style)},function(n){return n.theme.widgets.stripBanner.font.textColor},function(n){return n.theme.widgets.stripBanner.font.transform},function(n){return n.theme.widgets.stripBanner.font.textDecoration}),f=d.zo.a(i||(i=(0,o.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-visible {\n text-decoration: underline;\n border: ",";\n background-color: ",";\n\n ",", "," * {\n color: ",";\n }\n }\n"])),function(n){return n.theme.widgets.stripBanner.margin.top},function(n){return n.theme.widgets.stripBanner.margin.bottom},function(n){return n.theme.widgets.stripBanner.backgroundColor},function(n){return n.theme.widgets.stripBanner.boxShadow},(0,u.W0)(1),function(n){return n.theme.widgets.stripBanner.font.textColor},function(n){return"#ffffff"===n.theme.widgets.stripBanner.backgroundColor?"border-bottom: 1px solid #d2d2d2;":""},function(n){return n.theme.widgets.stripBanner.hoverBackgroundColor},function(n){return n.theme.widgets.stripBanner.hoverTextColor},function(n){return n.theme.widgets.stripBanner.hoverTextDecoration},h,h,function(n){return n.theme.widgets.stripBanner.hoverTextColor},function(n){return"".concat(n.theme.widgets.stripBanner.border.focusWidth," \n solid \n ").concat(n.theme.widgets.stripBanner.border.focusColor||n.theme.colors.palette.brand.base)},function(n){return n.theme.widgets.stripBanner.focusBackgroundColor},h,h,function(n){return n.theme.widgets.stripBanner.focusTextColor}),p=(0,s.Rq)("href",f),g=function(n){return!n.stripBannerText||n.hideDefaultBanner?null:(0,c.jsx)(p,{"data-testid":"strip-banner",href:n.stripBannerURL,children:(0,c.jsx)(h,{content:n.stripBannerText})})}},5532:function(n,e,t){t.d(e,{Z:function(){return nm}});var r,i,o,a,s,l,u,d,c,h,f,p,g,m,v,x,w=t(2784),b=t(15792),k=t(25237),y=t.n(k),B=t(93781),j=t(7328),C=t(8322),D=t(50556),T=t(87330),P=t(48840),F=t(81292),Z=(0,b.iv)(r||(r=(0,j.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(n){return(0,T.xv)(n.theme.widgets.uspBar.font.entry,n.theme.widgets.uspBar.font.style)},function(n){return n.theme.widgets.uspBar.font.transform},function(n){return n.theme.widgets.uspBar.font.textDecoration},function(n){return n.theme.widgets.uspBar.font.textColor},function(n){return(0,T.xv)(n.theme.widgets.uspBar.hoverFont.entry,n.theme.widgets.uspBar.hoverFont.style)},function(n){return n.theme.widgets.uspBar.hoverFont.transform},function(n){return n.theme.widgets.uspBar.hoverFont.textDecoration},function(n){return n.theme.widgets.uspBar.hoverFont.textColor}),G=b.zo.div(o||(o=(0,j.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(n){return 2*n.panelCount},function(n){var e;return e=n.panelCount,(0,P.F4)(i||(i=(0,j.Z)(["\n 0% { visibility: visible }\n ","% { visibility: hidden }\n"])),100/e)},function(n){return 2*n.index},function(n){return(0,F.mq)(n.theme.breakpointUtils.map,"lg")},(0,P.W0)(2)),z=b.zo.div(s||(s=(0,j.Z)(["\n display: flex;\n margin: -6px 0 1px 0;\n\n "," {\n display: none;\n }\n"])),function(n){return(0,F.mq)(n.theme.breakpointUtils.map,"lg")}),q=b.zo.span(l||(l=(0,j.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(n){return n.theme.colors.palette.greys.light},function(n){return 2*n.panelCount},function(n){var e,t;return e=n.theme,t=n.panelCount,(0,P.F4)(a||(a=(0,j.Z)(["\n 0% { background: "," }\n ","% { background: "," }\n ","% { background: "," }\n 100% { background: "," }\n"])),e.colors.palette.greys.darker,100/t-.01,e.colors.palette.greys.darker,100/t,e.colors.palette.greys.light,e.colors.palette.greys.light)},function(n){return 2*n.index}),I=b.zo.div(u||(u=(0,j.Z)(["\n height: ",";\n"])),(0,P.W0)(7)),S=b.zo.a(d||(d=(0,j.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-visible {\n border-color: ",";\n }\n"])),Z,(0,C.wL)(),function(n){return n.theme.widgets.uspBar.font.textColor},Z,function(n){return(0,T.xv)(n.theme.widgets.uspBar.hoverFont.entry,n.theme.widgets.uspBar.hoverFont.style)},function(n){return n.theme.widgets.uspBar.hoverFont.transform},function(n){return n.theme.widgets.uspBar.hoverFont.textDecoration},function(n){return n.theme.widgets.uspBar.hoverFont.textColor},function(n){return n.theme.widgets.uspBar.focusBorderColor||n.theme.colors.palette.brand.base}),A=b.zo.div(c||(c=(0,j.Z)(["\n display: flex;\n justify-content: center;\n align-items: center;\n width: 40px;\n height: 40px;\n\n ","\n"])),function(n){return n.isClipBoard?"svg {\n fill: ".concat(n.theme.widgets.uspBar.iconFill,";\n path {\n stroke: ").concat(n.theme.widgets.uspBar.iconFill,";\n }\n }"):"svg {\n \n path {\n ".concat(n.useStrokeFill?"stroke: ".concat(n.theme.widgets.uspBar.iconFill,";"):"fill: ".concat(n.theme.widgets.uspBar.iconFill,";"),"\n \n }\n ")}),U=b.zo.div(h||(h=(0,j.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"])),Z,Z),W=b.zo.div(f||(f=(0,j.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(n){return(0,F.mq)(n.theme.breakpointUtils.map,"xs")},(0,P.W0)(1),function(n){return(0,F.mq)(n.theme.breakpointUtils.map,"md")},function(n){return(0,P.W0)(n.theme.widgets.uspBar.padding)}),N=b.zo.div(p||(p=(0,j.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(n){var e;return null!==(e=n.backgroundColour)&&void 0!==e?e:n.theme.widgets.uspBar.backgroundColor},function(n){return(0,F.mq)(n.theme.breakpointUtils.map,"xs")},function(n){return n.theme.widgets.uspBar.height&&"height: ".concat(n.theme.widgets.uspBar.height)},function(n){return(0,F.mq)(n.theme.breakpointUtils.map,"md")}),L=(0,b.iv)(g||(g=(0,j.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,T.xv)("medium1","alternate"),(0,T.xv)("medium1","alternate")),M=b.zo.div(m||(m=(0,j.Z)(["\n ",";\n padding-left: ",";\n\n ","\n"])),(0,T.xv)("small","alternate"),(0,P.W0)(1),function(n){return n.isDesktop&&L}),R=b.zo.div(v||(v=(0,j.Z)(["\n display: flex;\n justify-content: center;\n flex-wrap: wrap;\n align-items: center;\n"]))),_=(0,b.zo)(D.T)(x||(x=(0,j.Z)(["\n ","\n\n * {\n ","\n }\n"])),Z,Z),E=t(52322),O=y()(function(){return Promise.resolve().then(t.bind(t,51424))},{ssr:!0,fallback:(0,E.jsx)("div",{style:{width:24,height:24}}),loadableGenerated:{webpack:function(){return[51424]}}}),H=y()(function(){return Promise.resolve().then(t.bind(t,55555))},{ssr:!0,fallback:(0,E.jsx)("div",{style:{width:24,height:24}}),loadableGenerated:{webpack:function(){return[55555]}}}),$=y()(function(){return Promise.resolve().then(t.bind(t,33086))},{ssr:!0,fallback:(0,E.jsx)("div",{style:{width:24,height:24}}),loadableGenerated:{webpack:function(){return[33086]}}}),J=y()(function(){return Promise.resolve().then(t.bind(t,82504))},{ssr:!0,fallback:(0,E.jsx)("div",{style:{width:24,height:24}}),loadableGenerated:{webpack:function(){return[82504]}}}),K=y()(function(){return Promise.resolve().then(t.bind(t,36017))},{ssr:!0,fallback:(0,E.jsx)("div",{style:{width:24,height:24}}),loadableGenerated:{webpack:function(){return[36017]}}}),Q=y()(function(){return Promise.resolve().then(t.bind(t,38894))},{ssr:!0,fallback:(0,E.jsx)("div",{style:{width:24,height:24}}),loadableGenerated:{webpack:function(){return[38894]}}}),V=y()(function(){return Promise.resolve().then(t.bind(t,62954))},{ssr:!0,fallback:(0,E.jsx)("div",{style:{width:24,height:24}}),loadableGenerated:{webpack:function(){return[62954]}}}),X=y()(function(){return Promise.resolve().then(t.bind(t,14589))},{ssr:!0,fallback:(0,E.jsx)("div",{style:{width:24,height:24}}),loadableGenerated:{webpack:function(){return[14589]}}}),Y=y()(function(){return Promise.resolve().then(t.bind(t,4147))},{ssr:!0,fallback:(0,E.jsx)("div",{style:{width:24,height:24}}),loadableGenerated:{webpack:function(){return[4147]}}}),nn=y()(function(){return Promise.resolve().then(t.bind(t,68511))},{ssr:!0,fallback:(0,E.jsx)("div",{style:{width:24,height:24}}),loadableGenerated:{webpack:function(){return[68511]}}}),ne=y()(function(){return Promise.resolve().then(t.bind(t,9769))},{ssr:!0,fallback:(0,E.jsx)("div",{style:{width:24,height:24}}),loadableGenerated:{webpack:function(){return[9769]}}}),nt=y()(function(){return Promise.resolve().then(t.bind(t,91179))},{ssr:!0,fallback:(0,E.jsx)("div",{style:{width:24,height:24}}),loadableGenerated:{webpack:function(){return[91179]}}}),nr=y()(function(){return Promise.resolve().then(t.bind(t,21051))},{ssr:!0,fallback:(0,E.jsx)("div",{style:{width:24,height:24}}),loadableGenerated:{webpack:function(){return[21051]}}}),ni=y()(function(){return Promise.resolve().then(t.bind(t,23653))},{ssr:!0,fallback:(0,E.jsx)("div",{style:{width:24,height:24}}),loadableGenerated:{webpack:function(){return[23653]}}}),no=y()(function(){return Promise.resolve().then(t.bind(t,97457))},{ssr:!0,fallback:(0,E.jsx)("div",{style:{width:24,height:24}}),loadableGenerated:{webpack:function(){return[97457]}}}),na=y()(function(){return Promise.resolve().then(t.bind(t,71887))},{loadableGenerated:{webpack:function(){return[71887]}}}),ns=(0,B.Rq)("href",S),nl=function(n){return"0".concat(n).slice(-2)},nu=function(n){switch(n){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"}},nd=function(n){var e=n.rawPanelInformation,t=n.isDesktop,r=e.timezoneOffset,i=(0,w.useState)(new Date().getDay()),o=i[0],a=i[1],s=(0,w.useState)(e["".concat(nu(o),"Cutoff")]),l=s[0],u=s[1],d=(0,w.useState)(1e3*Date.now()%60),c=d[0],h=d[1];(0,w.useEffect)(function(){var n=setInterval(f,40);return function(){clearInterval(n)}});var f=(0,w.useCallback)(function(){var n=new Date().getDay();n!==o&&(a(n),u(e["".concat(nu(o),"Cutoff")]));var t=1e3*Date.now()%60;c!==t&&h(t)},[c,e,o]),p=(0,w.useMemo)(function(){return(0,E.jsx)(R,{"data-testid":"countdown-finished",children:e.countDownText},"countdown-text-empty")},[e]),g=/^(\d|\d\d):(\d\d)$/.exec(l);if(!g)return p;var m=parseInt(g[1],10)-parseInt(r,10),v=parseInt(g[2],10);if(isNaN(m)||isNaN(v)||m<0||m>23||v<0||v>59)return p;var x=new Date,b=new Date().setHours(m,v,0)-x.getTime();if(b<0)return p;var k=nl(Math.floor(b/3600/1e3%24)),y=nl(Math.floor(b/60/1e3%60)),B=nl(Math.floor(b/1e3%60));return(0,E.jsxs)(R,{"data-testid":"countdown-".concat(k,":").concat(y,":").concat(B),children:[e.countDownText,":",(0,E.jsxs)(M,{isDesktop:t,children:[k,":",y,":",B]},"wrapper")]},"countdown-text")},nc=function(n,e){var t,r,i;return(0,E.jsx)(no,{xmlns:"http://www.w3.org/2000/svg",viewBox:(null===(t=e.widgets)||void 0===t||null===(t=t.uspBar)||void 0===t||null===(t=t.icon)||void 0===t?void 0:t.viewBox)||"0 0 24 24",width:(null===(r=e.widgets)||void 0===r||null===(r=r.uspBar)||void 0===r||null===(r=r.icon)||void 0===r?void 0:r.width)||24,height:(null===(i=e.widgets)||void 0===i||null===(i=i.uspBar)||void 0===i||null===(i=i.icon)||void 0===i?void 0:i.height)||24,children:(0,E.jsx)("path",{d:n,fillRule:"evenodd"})})},nh=function(n,e){var t=e.useAlternateIcon||{};return"call"===n?"mobile"===e.callIcon?Y:nn:"quality"===n?t.qualityText?ni:ne:"store"===n?t.storeText?nr:ne:({trustpilot:K,rewards:H,countDown:O,internationalDelivery:$,checkmark:J,calender:Q,email:V,delivery:X,clickAndCollect:nt,returns:na})[n]||ne},nf=function(n,e,t){var r,i,o,a=(null===(r=e.widgets)||void 0===r||null===(r=r.uspBar)||void 0===r||null===(r=r.icon)||void 0===r?void 0:r[n])||{},s=(null===(i=e.widgets)||void 0===i||null===(i=i.uspBar)||void 0===i?void 0:i.iconFill)||(null===(o=e.colors)||void 0===o||null===(o=o.palette)||void 0===o||null===(o=o.greys)||void 0===o?void 0:o.dark)||"#000";if(a.svgPath)return nc(a.svgPath,e);var l=nh(n,t);return(0,E.jsx)(l,{fill:s,"aria-hidden":"true",focusable:"false"})},np=function(n,e,t,r){var i=[];if(!n)return[];var o={rewardPointsText:"rewards",countDownText:"countDown",internationalDeliveryText:"internationalDelivery",checkmarkText:"checkmark",trustPilotText:"trustpilot",calendarText:"calender",emailText:"email",deliveryText:"delivery",callText:"call",qualityText:"quality",clickAndCollectText:"clickAndCollect",storeText:"store",returnsText:"returns"};return Object.keys(n).forEach(function(r){if(/.*Text/.exec(r)&&""!==n[r]){var a,s=o[r];s&&((a={child:"countDown"===s?(0,E.jsx)(nd,{rawPanelInformation:n,isDesktop:e}):(0,E.jsx)(_,{"data-testid":"".concat(s,"-text"),content:n[r],removeTagsAndContent:!1,tagsToRemove:[]}),link:n[({trustpilot:"trustPilotLink",rewards:"rewardPointsLink"})[s]||"".concat(s,"Link")],svg:nf(s,t,n),key:r,order:t.widgets.uspBar.icon[s].order,useStrokeFill:["trustpilot","checkmark","countDown"].includes(s)}).svg||(a.svg=(0,E.jsx)(ne,{fill:t.widgets.uspBar.iconFill||t.colors.palette.greys.dark}),a.isClipBoard=!0),""!==a.link||delete a.link,i.push(a))}}),i.sort(function(n,e){return n.order-e.order}),i},ng=function(n){var e=n.panels;return(0,E.jsxs)(W,{children:[(0,E.jsx)("div",{style:{position:"relative",width:"100%",display:"flex",justifyContent:"center"},children:e.map(function(n,t){return(0,E.jsx)(G,{"data-testid":"usp-desktop-panel",panelCount:e.length,index:t,children:n.link?(0,E.jsxs)(ns,{href:n.link,children:[(0,E.jsx)(A,{isClipBoard:n.isClipBoard,useStrokeFill:n.useStrokeFill,"data-testid":n.testId,children:n.svg}),n.child]}):(0,E.jsxs)(U,{children:[(0,E.jsx)(A,{isClipBoard:n.isClipBoard,useStrokeFill:n.useStrokeFill,children:n.svg}),n.child]})},n.key)})}),(0,E.jsx)(z,{children:Array(e.length).fill(null).map(function(n,t){return(0,E.jsx)(q,{index:t,panelCount:e.length},"indicator-".concat(t))})})]})},nm=function(n){var e=n.isDesktop,t=n.uspBarData,r=n.useAlternateIcon,i=(0,b.Fg)(),o=w.useMemo(function(){return np(t,e,i,r)},[t,e,i,r]);return 0===o.length?(0,E.jsx)(N,{children:(0,E.jsx)(I,{"data-testid":"empty-panel"})}):(0,E.jsx)(N,{backgroundColour:null==t?void 0:t.backgroundColor,role:"complementary","data-testid":"usp-banner",children:(0,E.jsx)(ng,{panels:o})})}}}]);