(window.webpackJsonp=window.webpackJsonp||[]).push([[104],{Fh7Q:function(e,t,n){"use strict";n.r(t),n.d(t,"WidgetBanner",(function(){return me}));var i,r,a,s,o,l,c,d,u,g,h,p,w,f,v,m,b=n("ERkP"),k=n.n(b),B=n("VU4M"),y=n("2kcj"),x=n("135/"),T=n("jiAW"),P=n("jt0n"),C=n("KYvd"),O=n("DQj2"),j=Object(B.a)(i||(i=Object(y.a)(["\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 Object(x.a)(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 Object(x.a)(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})),A=B.b.div(a||(a=Object(y.a)(["\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){return t=e.panelCount,Object(T.g)(r||(r=Object(y.a)(["\n 0% { visibility: visible }\n ","% { visibility: hidden }\n"])),100/t);var t}),(function(e){return 2*e.index}),(function(e){return Object(P.d)(e.theme.breakpointUtils.map,"lg")}),Object(T.i)(2)),R=B.b.div(o||(o=Object(y.a)(["\n display: flex;\n margin: -6px 0 1px 0;\n\n "," {\n display: none;\n }\n"])),(function(e){return Object(P.d)(e.theme.breakpointUtils.map,"lg")})),D=B.b.span(l||(l=Object(y.a)(["\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){return t=e.theme,n=e.panelCount,Object(T.g)(s||(s=Object(y.a)(["\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);var t,n}),(function(e){return 2*e.index})),F=B.b.div(c||(c=Object(y.a)(["\n height: ",";\n"])),Object(T.i)(7)),S=B.b.a(d||(d=Object(y.a)(["\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"])),j,Object(C.a)(),(function(e){return e.theme.widgets.uspBar.font.textColor}),j,(function(e){return Object(x.a)(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})),L=B.b.div(u||(u=Object(y.a)(["\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.useIconColors?null:e.theme.widgets.uspBar.iconFill,";"),"\n \n }\n ")})),U=B.b.div(g||(g=Object(y.a)(["\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"])),j,j),I=B.b.div(h||(h=Object(y.a)(["\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 Object(P.d)(e.theme.breakpointUtils.map,"xs")}),Object(T.i)(1),(function(e){return Object(P.d)(e.theme.breakpointUtils.map,"md")}),(function(e){return Object(T.i)(e.theme.widgets.uspBar.padding)})),G=B.b.div(p||(p=Object(y.a)(["\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){return e.theme.widgets.uspBar.backgroundColor}),(function(e){return Object(P.d)(e.theme.breakpointUtils.map,"xs")}),(function(e){return e.theme.widgets.uspBar.height&&"height: ".concat(e.theme.widgets.uspBar.height)}),(function(e){return Object(P.d)(e.theme.breakpointUtils.map,"md")})),E=Object(B.a)(w||(w=Object(y.a)(["\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"])),Object(x.a)("medium1","alternate"),Object(x.a)("medium1","alternate")),q=B.b.div(f||(f=Object(y.a)(["\n ",";\n padding-left: ",";\n\n ","\n"])),Object(x.a)("small","alternate"),Object(T.i)(1),(function(e){return e.isDesktop&&E})),N=B.b.div(v||(v=Object(y.a)(["\n display: flex;\n justify-content: center;\n flex-wrap: wrap;\n align-items: center;\n"]))),H=Object(B.b)(O.a)(m||(m=Object(y.a)(["\n ","\n\n * {\n ","\n }\n"])),j,j),M=n("AU4o"),Y=n.n(M),_=k.a.createElement,z=Y()((function(){return Promise.resolve().then(n.bind(null,"cBNq"))}),{ssr:!0,fallback:_("div",{style:{width:24,height:24}}),loadableGenerated:{webpack:function(){return["cBNq"]},modules:["@thg-commerce/gravity-icons/src/components/Time"]}}),Q=Y()((function(){return Promise.resolve().then(n.bind(null,"xTcn"))}),{ssr:!0,fallback:_("div",{style:{width:24,height:24}}),loadableGenerated:{webpack:function(){return["xTcn"]},modules:["@thg-commerce/gravity-icons/src/components/RewardPoints"]}}),J=Y()((function(){return Promise.resolve().then(n.bind(null,"eS6u"))}),{ssr:!0,fallback:_("div",{style:{width:24,height:24}}),loadableGenerated:{webpack:function(){return["eS6u"]},modules:["@thg-commerce/gravity-icons/src/components/InternationalDelivery"]}}),K=Y()((function(){return Promise.resolve().then(n.bind(null,"O4wh"))}),{ssr:!0,fallback:_("div",{style:{width:24,height:24}}),loadableGenerated:{webpack:function(){return["O4wh"]},modules:["@thg-commerce/gravity-icons/src/components/Checkmark"]}}),W=Y()((function(){return Promise.resolve().then(n.bind(null,"GP2F"))}),{ssr:!0,fallback:_("div",{style:{width:24,height:24}}),loadableGenerated:{webpack:function(){return["GP2F"]},modules:["@thg-commerce/gravity-icons/src/components/Calender"]}}),V=Y()((function(){return Promise.resolve().then(n.bind(null,"9GJm"))}),{ssr:!0,fallback:_("div",{style:{width:24,height:24}}),loadableGenerated:{webpack:function(){return["9GJm"]},modules:["@thg-commerce/gravity-icons/src/components/ContentEmail"]}}),Z=Y()((function(){return Promise.resolve().then(n.bind(null,"z9YD"))}),{ssr:!0,fallback:_("div",{style:{width:24,height:24}}),loadableGenerated:{webpack:function(){return["z9YD"]},modules:["@thg-commerce/gravity-icons/src/components/Truck"]}}),$=Y()((function(){return Promise.resolve().then(n.bind(null,"O+Y5"))}),{ssr:!0,fallback:_("div",{style:{width:24,height:24}}),loadableGenerated:{webpack:function(){return["O+Y5"]},modules:["@thg-commerce/gravity-icons/src/components/Smartphone"]}}),X=Y()((function(){return Promise.resolve().then(n.bind(null,"0YbL"))}),{ssr:!0,fallback:_("div",{style:{width:24,height:24}}),loadableGenerated:{webpack:function(){return["0YbL"]},modules:["@thg-commerce/gravity-icons/src/components/TelephoneUsp"]}}),ee=Y()((function(){return Promise.resolve().then(n.bind(null,"OkIg"))}),{ssr:!0,fallback:_("div",{style:{width:24,height:24}}),loadableGenerated:{webpack:function(){return["OkIg"]},modules:["@thg-commerce/gravity-icons/src/components/Clipboard"]}}),te=Y()((function(){return Promise.resolve().then(n.bind(null,"EQf+"))}),{ssr:!0,fallback:_("div",{style:{width:24,height:24}}),loadableGenerated:{webpack:function(){return["EQf+"]},modules:["@thg-commerce/gravity-icons/src/components/ClickAndCollect"]}}),ne=Y()((function(){return Promise.resolve().then(n.bind(null,"AyYd"))}),{ssr:!0,fallback:_("div",{style:{width:24,height:24}}),loadableGenerated:{webpack:function(){return["AyYd"]},modules:["@thg-commerce/gravity-icons/src/components/StoreLocator"]}}),ie=Y()((function(){return Promise.resolve().then(n.bind(null,"sw++"))}),{ssr:!0,fallback:_("div",{style:{width:24,height:24}}),loadableGenerated:{webpack:function(){return["sw++"]},modules:["@thg-commerce/gravity-icons/src/components/ZipGrey"]}}),re=Y()((function(){return Promise.resolve().then(n.bind(null,"2LTl"))}),{ssr:!0,fallback:_("div",{style:{width:24,height:24}}),loadableGenerated:{webpack:function(){return["2LTl"]},modules:["@thg-commerce/gravity-icons/src/components/SvgIcon"]}}),ae=Y()((function(){return Promise.resolve().then(n.bind(null,"zUhW"))}),{loadableGenerated:{webpack:function(){return["zUhW"]},modules:["@thg-commerce/gravity-icons/src/components/AccountReturns"]}}),se=Y()((function(){return Promise.resolve().then(n.bind(null,"PQ9i"))}),{loadableGenerated:{webpack:function(){return["PQ9i"]},modules:["@thg-commerce/gravity-icons/src/components/TrustPilot"]}}),oe=function(e){return"0".concat(e).slice(-2)},le=function(e){switch(e){case 0:return"sunday";case 1:return"monday";case 2:return"tuesday";case 3:return"wednesday";case 4:return"thursday";case 5:return"friday";case 6:return"saturday";default:return"thursday"}},ce=function(e){var t=e.rawPanelInformation,n=e.isDesktop,i=t.timezoneOffset,r=Object(b.useState)((new Date).getDay()),a=r[0],s=r[1],o=Object(b.useState)(t["".concat(le(a),"Cutoff")]),l=o[0],c=o[1],d=Object(b.useState)(1e3*Date.now()%60),u=d[0],g=d[1];Object(b.useEffect)((function(){var e=setInterval(h,40);return function(){clearInterval(e)}}));var h=Object(b.useCallback)((function(){var e=(new Date).getDay();e!==a&&(s(e),c(t["".concat(le(a),"Cutoff")]));var n=1e3*Date.now()%60;u!==n&&g(n)}),[u,t,a]),p=Object(b.useMemo)((function(){return _(N,{"data-testid":"countdown-finished",key:"countdown-text-empty"},t.countDownText)}),[t]),w=/^(\d|\d\d):(\d\d)$/.exec(l);if(!w)return p;var f=parseInt(w[1],10)-parseInt(i,10),v=parseInt(w[2],10);if(isNaN(f)||isNaN(v)||f<0||f>23||v<0||v>59)return p;var m=new Date,k=(new Date).setHours(f,v,0)-m.getTime();if(k<0)return p;var B=oe(Math.floor(k/3600/1e3%24)),y=oe(Math.floor(k/60/1e3%60)),x=oe(Math.floor(k/1e3%60));return _(N,{"data-testid":"countdown-".concat(B,":").concat(y,":").concat(x),key:"countdown-text"},t.countDownText,":",_(q,{key:"wrapper",isDesktop:n},B,":",y,":",x))};function de(e,t,n){t.svg||(t.svg=_(ee,{fill:n.widgets.uspBar.iconFill||n.colors.palette.greys.dark}),t.isClipBoard=!0),""!==t.link?e.push(t):(delete t.link,e.push(t))}var ue=function(e){var t=e.panels;return _(I,null,_("div",{style:{position:"relative",width:"100%",display:"flex",justifyContent:"center"}},t.map((function(e,n){return _(A,{"data-testid":"usp-desktop-panel-".concat(e.key),key:e.key,panelCount:t.length,index:n},e.link?_(S,{href:e.link},_(L,{isClipBoard:e.isClipBoard,useStrokeFill:e.useStrokeFill,useIconColors:e.useIconColors,"data-testid":e.testId},e.svg),e.child):_(U,null,_(L,{isClipBoard:e.isClipBoard,useStrokeFill:e.useStrokeFill,useIconColors:e.useIconColors},e.svg),e.child))}))),_(R,null,Array(t.length).fill(null).map((function(e,n){return _(D,{index:n,panelCount:t.length})}))))},ge=b.createElement,he=function(e){var t=e.isDesktop,n=e.uspBarData,i=e.useAlternateIcon,r=Object(B.c)(),a=b.useMemo((function(){return function(e,t,n,i){var r=[];return e?(Object.keys(e).forEach((function(a){if(/.*Text/.exec(a)&&""!==e[a])switch(a){case"rewardPointsText":de(r,{child:_(H,{"data-testid":"rewards-points-text",content:e[a],removeTagsAndContent:!1,tagsToRemove:[]}),link:e.rewardPointsLink,svg:""!==n.widgets.uspBar.icon.rewards.svgPath?_(re,{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},_("path",{d:n.widgets.uspBar.icon.rewards.svgPath,fillRule:"evenodd"})):_(Q,{fill:n.widgets.uspBar.iconFill||n.colors.palette.greys.dark,"aria-hidden":"true",focusable:"false"}),key:a,order:n.widgets.uspBar.icon.rewards.order},n);break;case"countDownText":de(r,{child:_(ce,{rawPanelInformation:e,isDesktop:t}),link:e.countDownLink,svg:""!==n.widgets.uspBar.icon.countDown.svgPath?_(re,{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},_("path",{d:n.widgets.uspBar.icon.countDown.svgPath,fillRule:"evenodd"})):_(z,{fill:n.widgets.uspBar.iconFill||n.colors.palette.greys.dark,"aria-hidden":"true",focusable:"false"}),key:a,order:n.widgets.uspBar.icon.countDown.order,useStrokeFill:!0},n);break;case"internationalDeliveryText":de(r,{child:_(H,{"data-testid":"international-delivery-text",content:e[a],removeTagsAndContent:!1,tagsToRemove:[]}),link:e.internationalDeliveryLink,svg:""!==n.widgets.uspBar.icon.internationalDelivery.svgPath?_(re,{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},_("path",{d:n.widgets.uspBar.icon.internationalDelivery.svgPath,fillRule:"evenodd"})):_(J,{fill:n.widgets.uspBar.iconFill||n.colors.palette.greys.dark,"aria-hidden":"true",focusable:"false"}),key:a,order:n.widgets.uspBar.icon.internationalDelivery.order},n);break;case"checkmarkText":de(r,{child:_(H,{"data-testid":"check-text",content:e[a],removeTagsAndContent:!1,tagsToRemove:[]}),link:e.checkmarkLink,svg:""!==n.widgets.uspBar.icon.checkmark.svgPath?_(re,{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},_("path",{d:n.widgets.uspBar.icon.checkmark.svgPath,fillRule:"evenodd"})):_(K,{fill:n.widgets.uspBar.iconFill||n.colors.palette.greys.dark,"aria-hidden":"true",focusable:"false"}),key:a,order:n.widgets.uspBar.icon.checkmark.order,useStrokeFill:!0},n);break;case"calendarText":de(r,{child:_(H,{"data-testid":"calender-text",content:e[a],removeTagsAndContent:!1,tagsToRemove:[]}),link:e.calendarLink,svg:""!==n.widgets.uspBar.icon.calender.svgPath?_(re,{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},_("path",{d:n.widgets.uspBar.icon.calender.svgPath,fillRule:"evenodd"})):_(W,{fill:n.widgets.uspBar.iconFill||n.colors.palette.greys.dark,"aria-hidden":"true",focusable:"false"}),key:a,order:n.widgets.uspBar.icon.calender.order,useStrokeFill:!1},n);break;case"emailText":de(r,{child:_(H,{"data-testid":"email-text",content:e[a],removeTagsAndContent:!1,tagsToRemove:[]}),link:e.emailLink,svg:""!==n.widgets.uspBar.icon.email.svgPath?_(re,{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},_("path",{d:n.widgets.uspBar.icon.email.svgPath,fillRule:"evenodd"})):_(V,{fill:n.widgets.uspBar.iconFill||n.colors.palette.greys.dark,"aria-hidden":"true",focusable:"false"}),key:a,order:n.widgets.uspBar.icon.email.order},n);break;case"deliveryText":de(r,{child:_(H,{"data-testid":"delivery-text",content:e[a],removeTagsAndContent:!1,tagsToRemove:[]}),link:e.deliveryLink,svg:""!==n.widgets.uspBar.icon.delivery.svgPath?_(re,{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},_("path",{d:n.widgets.uspBar.icon.delivery.svgPath,fillRule:"evenodd"})):_(Z,{fill:n.widgets.uspBar.iconFill||n.colors.palette.greys.dark,"aria-hidden":"true",focusable:"false"}),key:a,order:n.widgets.uspBar.icon.delivery.order},n);break;case"callText":de(r,{child:_(H,{"data-testid":"call-text",content:e[a],removeTagsAndContent:!1,tagsToRemove:[]}),link:e.callLink,icon:e.callIcon,svg:""!==n.widgets.uspBar.icon.call.svgPath?_(re,{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},_("path",{d:n.widgets.uspBar.icon.call.svgPath,fillRule:"evenodd"})):"mobile"===e.callIcon?_($,{fill:n.widgets.uspBar.iconFill||n.colors.palette.greys.dark,"aria-hidden":"true",focusable:"false"}):_(X,{fill:n.widgets.uspBar.iconFill||n.colors.palette.greys.dark,"aria-hidden":"true",focusable:"false"}),key:a,order:n.widgets.uspBar.icon.call.order},n);break;case"qualityText":de(r,{child:_(H,{"data-testid":"quality-text",content:e[a],removeTagsAndContent:!1,tagsToRemove:[]}),link:e.qualityLink,svg:""!==n.widgets.uspBar.icon.quality.svgPath?_(re,{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},_("path",{d:n.widgets.uspBar.icon.quality.svgPath,fillRule:"evenodd"})):i.qualityText?_(ie,{fill:n.widgets.uspBar.iconFill||n.colors.palette.greys.dark,"aria-hidden":"true",focusable:"false"}):_(ee,{fill:n.widgets.uspBar.iconFill||n.colors.palette.greys.dark,"aria-hidden":"true",focusable:"false"}),key:a,order:n.widgets.uspBar.icon.quality.order,testId:i.qualityText?"zip-pay-icon":"quality-clipboard-svg",useStrokeFill:!i.qualityText,isClipBoard:!i.qualityText},n);break;case"clickAndCollectText":de(r,{child:_(H,{"data-testid":"click-collect-text",content:e[a],removeTagsAndContent:!1,tagsToRemove:[]}),link:e.clickAndCollectLink,svg:""!==n.widgets.uspBar.icon.clickAndCollect.svgPath?_(re,{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},_("path",{d:n.widgets.uspBar.icon.clickAndCollect.svgPath,fillRule:"evenodd"})):_(te,{fill:n.widgets.uspBar.iconFill||n.colors.palette.greys.dark,"aria-hidden":"true",focusable:"false"}),key:a,order:n.widgets.uspBar.icon.clickAndCollect.order,useStrokeFill:!1},n);break;case"storeText":de(r,{child:_(H,{"data-testid":"store-text",content:e[a],removeTagsAndContent:!1,tagsToRemove:[]}),link:e.storeLink,svg:""!==n.widgets.uspBar.icon.store.svgPath?_(re,{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},_("path",{d:n.widgets.uspBar.icon.store.svgPath,fillRule:"evenodd"})):i.storeText?_(ne,{fill:n.widgets.uspBar.iconFill||n.colors.palette.greys.dark,"aria-hidden":"true",focusable:"false"}):_(ee,{fill:n.widgets.uspBar.iconFill||n.colors.palette.greys.dark,"aria-hidden":"true",focusable:"false"}),key:a,order:n.widgets.uspBar.icon.store.order,useStrokeFill:!i.storeText,isClipBoard:!i.qualityText},n);break;case"trustPilotText":de(r,{child:_(H,{"data-testid":"trustpilot-text",content:e[a],removeTagsAndContent:!1,tagsToRemove:[]}),link:e.trustPilotLink,svg:_(se,{"aria-hidden":"true",focusable:"false"}),key:a,order:e.trustPilotPosition,useIconColors:!0},n);break;case"returnsText":de(r,{child:_(H,{"data-testid":"returns-text",content:e[a],removeTagsAndContent:!1,tagsToRemove:[]}),link:e.returnsLink,svg:""!==n.widgets.uspBar.icon.returns.svgPath?_(re,{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},_("path",{d:n.widgets.uspBar.icon.returns.svgPath,fillRule:"evenodd"})):_(ae,{fill:n.widgets.uspBar.iconFill||n.colors.palette.greys.dark,"aria-hidden":"true",focusable:"false"}),key:a,order:n.widgets.uspBar.icon.returns.order},n)}})),r.sort((function(e,t){return e.order-t.order})),r):[]}(n,t,r,i)}),[n,t]);return 0===a.length?ge(G,null,ge(F,{"data-testid":"empty-panel"})):ge(G,{role:"complementary","data-testid":"usp-banner"},ge(ue,{panels:a}))},pe=n("s2fq"),we=n("rSeV"),fe=n("dNoy"),ve=b.createElement,me=b.memo((function(e){var t,n,i=e.showStripBanner,r=Object(fe.g)(),a=r.hasZipPayUsp,s=r.hasStoreUsp,o=r.hasClickAndCollectUsp,l=null===(t=e.widgetData)||void 0===t?void 0:null===(n=t.header)||void 0===n?void 0:n.widgets.reduce((function(t,n){switch(n.__typename){case"ResponsiveUSPBar":t.push(ve(he,{key:"USPBar",isDesktop:!0,uspBarData:n,userAgent:e.userAgent,useAlternateIcon:{qualityText:a,clickAndCollectText:o,storeText:s}}));break;case"ResponsiveUSPBarCustomisable":t.push(ve(he,{key:"USPBarCustomisable",isDesktop:!0,uspBarData:n,userAgent:e.userAgent,useAlternateIcon:{qualityText:a,clickAndCollectText:o,storeText:s}}));break;case"GlobalStripBanner":if(i){var r=function(e){switch(e){case we.a.HOME_PAGE:return{text:n.stripBannerTextHomepage,href:n.stripBannerURLHomepage};case we.a.LANDING:case we.a.SEARCH:return{text:n.stripBannerTextPLP,href:n.stripBannerURLPLP};case we.a.ACCOUNT:return{text:n.stripBannerTextAccount,href:n.stripBannerURLAccount};case we.a.BASKET:return{text:n.stripBannerTextBasket,href:n.stripBannerURLBasket};case we.a.PRODUCT:return{text:n.stripBannerTextPDP,href:n.stripBannerURLPDP};default:return{text:n.stripBannerText,href:n.stripBannerURL}}}(e.pageType),l=r.text,c=r.href;t.push(ve(pe.a,{key:"Stripbanner",stripBannerText:l||n.stripBannerText,stripBannerURL:c||n.stripBannerURL}))}}return t}),[]).sort((function(e){return"USPBar"===e.key?-1:1}));return ve("aside",{"data-testid":"widget-banner"},l)}))},rSeV:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var i=function(e){return e.HOME_PAGE="HOMEPAGE",e.LANDING="LANDING",e.SEARCH="SEARCH",e.PRODUCT="PRODUCT",e.ACCOUNT="ACCOUNT",e.BASKET="BASKET",e.PRODUCT_LIST="PRODUCT_LIST",e.STORE_LOCATOR="STORE_LOCATOR",e}({})}}]); //# sourceMappingURL=104.0d5d4e2c24e9989c28b3.js.map