"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6532],{90777:function(e,t,n){n.d(t,{tV:function(){return s}});var o=n(95235),r=n(91177),i=n(39722);function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function a(e){for(var t=1;t0?o:c(e,t,n)}},57522:function(e,t,n){n.d(t,{J:function(){return S}});var o,r,i,l=n(95235),a=n(7328);n(2784);var u=n(34182),c=n(15227),d=n(90998),s=n(63199),v=n(45940),f=n(28999),p=n(14332),m=n(34952),g=n(11981),b=n(70691),h=n(52322);function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function w(e){for(var t=1;t0?y.personalisedBuyText:y.buyText:y.soldOutText},P=e.productBlocks.filter(function(e){return e.sku}).map(function(t,n){var o,r,i,a,c,d,v,g,b,x,k,O,P;return(0,h.jsx)(u.v,w(w({externalIdentifier:t.externalIdentifier,eligibleForFulfilmentMethods:t.eligibleForFulfilmentMethods},t),{},{marketedSpecialOffer:t.marketedSpecialOffer?w(w({},t.marketedSpecialOffer),{},{title:(null===(o=t.marketedSpecialOffer)||void 0===o?void 0:o.title)||"",description:null===(r=t.marketedSpecialOffer)||void 0===r?void 0:r.description,loading:!1,onlyDisplayOfferBadge:!0,showIcon:p,i18nText:{closeI18nText:y.productI18nText.closeI18nText,freeGiftMessage:y.productI18nText.freeGiftMessage}}):void 0,image:t.image&&w(w({},t.image),{},{lazy:e.widgetIndex>1||(null===(i=t.image)||void 0===i?void 0:i.lazy)}),hoverImage:!m&&t.hoverImage?w(w({},t.hoverImage),{},{lazy:e.widgetIndex>1||t.hoverImage.lazy}):void 0,picture:null!==(a=t.picture)&&void 0!==a&&a.sources?w(w({},t.picture),{},{lazy:e.widgetIndex>1||(null===(c=t.image)||void 0===c?void 0:c.lazy)}):void 0,review:t.review?w(w({},t.review),{},{screenReaderOnlyText:S({score:null===(d=t.review)||void 0===d?void 0:d.starRating,total:null===(v=t.review)||void 0===v?void 0:v.numberOfReviews})}):void 0,button:{title:T(t),ariaLabel:y.buyAriaLabel,quickBuyTitle:y.quickBuyText,productInStock:t.inStock,disabled:!t.inStock},fulfilmentMethodIconsProps:{hasClickAndCollect:f,isCheckStock:t.isCheckStock,isOrderInStore:t.isOrderInStore,inStockLocations:t.inStockLocations,leadTime:t.leadTime,isBookable:t.isBookable,weightGroups:t.weightGroups,inStock:t.inStock,iconsAvailability:t.icons,i18nText:w(w({},y.fulfilmentMethodsText),{},{homeDelivery:w(w({},y.fulfilmentMethodsText.homeDelivery),{},{datedDelivery:(0,s.ag)("basket.item.fulfilment.leadtime",null===(b=t.leadTime)||void 0===b?void 0:b.toString()),dynamicDelivery:(P=null===(x=t.weightGroups)||void 0===x||null===(x=x[0])||void 0===x?void 0:x.toLowerCase(),(0,s.ag)("product.item.fulfilment.".concat(P)))})})},displayQuickBuyButton:l,content:null==t?void 0:t.content,brand:{name:(null===(k=t.brand)||void 0===k?void 0:k.name)||"",imageUrl:null===(O=t.brand)||void 0===O?void 0:O.imageUrl}}),n)}),L={2:[2,2,2,2],3:[1,2,3,3],default:[1,2,4,4]};return(null===(t=e.productBlocks)||void 0===t?void 0:t.length)===0?null:(0,h.jsxs)("div",{className:e.className,children:[null!==(n=e.title)&&void 0!==n&&n.text&&e.title.text.length>2?(0,h.jsx)(x,{horizontalAlignment:null===(o=e.title)||void 0===o?void 0:o.horizontalAlignment,children:e.title.text}):null,e.subtitle&&(0,h.jsx)(k,{horizontalAlignment:e.subtitle.horizontalAlignment,children:e.subtitle.text}),(0,h.jsx)(O,{children:(0,h.jsx)(g.l,{items:P,i18n:y.carouselText,itemsPerSlide:L[null==P?void 0:P.length]||L.default,hideControlsOnSingleSlide:!0,inactiveSlideFullOpacity:!0,buttonPlacement:b.J.Split,indicatorStyle:a.widget.bestSellers.carousel.indicatorStyle,enableSlidePreview:!0,swipeable:!0,controls:{placement:null===(r=a.widget.bestSellers.carousel.controls)||void 0===r?void 0:r.placement}})})]})}},69198:function(e,t,n){n.d(t,{Dx:function(){return b},EZ:function(){return g},QE:function(){return h},W4:function(){return y},mg:function(){return w}});var o,r,i,l,a,u=n(7328),c=n(45940),d=n(14332),s=n(34952),v=n(28999),f=n(32500),p=n(26187),m=n(52935),g=(0,c.zo)(f.r)(o||(o=(0,u.Z)(["\n column-gap: ",";\n row-gap: ",";\n\n "," {\n column-gap: ",";\n }\n "," {\n row-gap: ",";\n } ;\n"])),(0,d.W0)(2),(0,d.W0)(3),function(e){return(0,s.mq)(e.theme.breakpointUtils.map,"sm")},(0,d.W0)(4),function(e){return(0,s.mq)(e.theme.breakpointUtils.map,"md")},(0,d.W0)(4)),b=c.zo.h2(r||(r=(0,u.Z)(["\n ",";\n text-align: ",";\n ","\n"])),function(e){return(0,v.xv)(e.theme.widget.sectionPeek.textStyle.entry,e.theme.widget.sectionPeek.textStyle.style)},function(e){return e.alignment},function(e){return e.subtitle?"margin-bottom: ".concat((0,d.W0)(1),";"):"margin-bottom: ".concat((0,d.W0)(3),";\n ").concat((0,s.mq)(e.theme.breakpointUtils.map,"md")," { \n margin-bottom: ").concat((0,d.W0)(4),"\n }")}),h=c.zo.p(i||(i=(0,u.Z)(["\n ",";\n text-align: ",";\n\n margin-bottom: ",";\n "," {\n margin-bottom: ",";\n } ;\n"])),function(e){var t;return(0,v.xv)(null!==(t=e.size)&&void 0!==t?t:"bodyText","alternate")},function(e){return e.alignment},(0,d.W0)(3),function(e){return(0,s.mq)(e.theme.breakpointUtils.map,"md")},(0,d.W0)(4)),y=(0,c.zo)(p.P)(l||(l=(0,u.Z)(["\n margin: "," 0;\n\n "," {\n margin: "," auto;\n }\n"])),(0,d.W0)(2),function(e){return(0,s.mq)(e.theme.breakpointUtils.map,"sm")},(0,d.W0)(1)),w=(0,c.zo)(m.zx)(a||(a=(0,u.Z)(["\n width: 100%;\n ",";\n\n "," {\n width: auto;\n }\n"])),(0,v.xv)("xsmall","alternate"),function(e){return(0,s.mq)(e.theme.breakpointUtils.map,"sm")})},89797:function(e,t,n){n.r(t),n.d(t,{ProductBlockCarouselRenderer:function(){return T}});var o,r,i=n(95235),l=n(7328),a=n(2784),u=n(90998),c=n(63199),d=n(90777),s=n(45940),v=n(14332),f=n(34952),p=n(57522),m=n(69198),g=n(59489),b=n(35028),h=n(52322);function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function w(e){for(var t=1;t0&&e.images[0].largeProduct||""},e.images[0]),altText:"",isAmp:!1,lazy:r>4},picture:w(w({style:{width:"100%"}},e.picture),{},{alt:e.title,lazy:r>4}),hoverPicture:e.hoverPicture&&w(w({style:{width:"100%"}},e.hoverPicture),{},{alt:e.title}),review:e.reviews&&{starRating:e.reviews.averageScore,numberOfReviews:e.reviews.total},inStock:e.inStock,content:null==e?void 0:e.content,leadTime:null!==(a=null===(u=e.defaultVariant)||void 0===u?void 0:u.leadTime)&&void 0!==a?a:void 0,weightGroups:null!==(c=null===(s=e.defaultVariant)||void 0===s?void 0:s.weightGroups)&&void 0!==c?c:void 0,isBookable:null!==(v=null===(f=e.defaultVariant)||void 0===f?void 0:f.isBookable)&&void 0!==v?v:void 0,inStockLocations:null!==(p=null===(m=e.defaultVariant)||void 0===m?void 0:m.inStockLocations)&&void 0!==p?p:void 0,eligibleForFulfilmentMethods:null!==(h=null===(y=e.defaultVariant)||void 0===y?void 0:y.eligibleForFulfilmentMethods)&&void 0!==h?h:void 0})})},T=function(e){var t,n,o=(0,u.ND)(),r=o.showPdpLinkWhenOutOfStock,i=o.alternateProductKeysForSwatches,l=o.departmentContentValueForSwatches,d={closeLabel:(0,c.ag)("general.modal.close.button.label"),closeAriaLabel:(0,c.ag)("general.modal.close.button.arialabel"),rrpText:(0,c.ag)("product.price.rrp.text"),swatchI18nText:{swatchTooltipUnavailable:(0,c.ag)("product.productoptions.swatch.tooltip.unavailable.text"),swatchTooltipCloseButton:(0,c.ag)("product.productoptions.swatch.tooltip.close.text")}},s=null!=e&&e.productBlockList?null==(t=null==e?void 0:e.productBlockList.productBlocks)?void 0:t.map(function(e,t){var n,o;return w(w({},e),{},{title:{value:e.title},swatch:e.colourSwatches?{shape:g.M.CIRCLE,size:g.v.Small,colours:e.colourSwatches,i18nText:{unavailableText:d.swatchI18nText.swatchTooltipUnavailable,closeButtonText:d.swatchI18nText.swatchTooltipCloseButton}}:void 0,titleAlignment:b.K.LEFT,price:w(w({},e.price),{},{rrpText:d.rrpText}),marketedSpecialOffer:e.marketedSpecialOffer?w(w({},e.marketedSpecialOffer),{},{title:e.marketedSpecialOffer.titleText,description:e.marketedSpecialOffer.descriptionText,i18nText:{closeI18nText:{closeLabel:d.closeLabel,closeAriaLabel:d.closeAriaLabel}},onlyDisplayOfferBadge:!0}):void 0,picture:w(w({},e.picture),{},{style:{width:"100%"},lazy:t>4}),hoverPicture:e.hoverPicture&&w(w({},e.hoverPicture),{},{style:{width:"100%"},lazy:!1}),review:e.reviews&&{starRating:null===(n=e.reviews)||void 0===n?void 0:n.averageScore,numberOfReviews:null===(o=e.reviews)||void 0===o?void 0:o.total}})}):null!=e&&e.productList?S(null==e||null===(n=e.productList)||void 0===n?void 0:n.products,d,i,l):null!=e&&e.responsiveSkuList?S(null==e?void 0:e.responsiveSkuList,d,i,l):null;if(s){var v={showPdpLinkWhenOutOfStock:r,productBlocks:s,widgetIndex:e.widgetIndex,title:e.title?{text:e.title}:void 0};return(0,h.jsxs)(a.Fragment,{children:[(0,h.jsx)(k,w({},v)),e.viewAllButtonUrl&&e.viewAllButtonText&&(0,h.jsx)(m.W4,{colSpan:12,children:(0,h.jsx)(m.mg,{emphasis:x[e.viewAllButtonStyle||"medium"],href:e.viewAllButtonUrl,renderedAs:"a",children:e.viewAllButtonText})})]})}return null}},15754:function(e,t,n){t.ZP=void 0;var o=r(n(57727));function r(e){return e&&e.__esModule?e:{default:e}}o.default,r(n(69675)).default;var i=o.default;t.ZP=i},6622:function(e,t){t.__esModule=!0,t.noop=t.defaultProps=t.defaultOptions=t.defaultConfig=void 0,t.defaultOptions={},t.defaultConfig={disconnectOnLeave:!1};var n=()=>{};t.noop=n,t.defaultProps={onEnterViewport:n,onLeaveViewport:n}},57727:function(e,t,n){t.__esModule=!0,t.default=void 0;var o=n(2784),r=c(n(73463)),i=c(n(69675)),l=n(6622),a=n(52322),u=["onEnterViewport","onLeaveViewport"];function c(e){return e&&e.__esModule?e:{default:e}}function d(){return(d=Object.assign||function(e){for(var t=1;t"function"==typeof e&&!(e.prototype&&e.prototype.render),v=e=>e.prototype&&e.prototype.isReactComponent;t.default=function(e,t,n){void 0===t&&(t=l.defaultOptions),void 0===n&&(n=l.defaultConfig);var c=(0,o.forwardRef)((t,n)=>{var o=d({forwardedRef:n},v(e)&&!s(e)?{ref:n}:{});return(0,a.jsx)(e,d({},t,o))});function f(e){var{onEnterViewport:r=l.noop,onLeaveViewport:s=l.noop}=e,v=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r}(e,u),f=(0,o.useRef)(),{inViewport:p,enterCount:m,leaveCount:g}=(0,i.default)(f,t,n,{onEnterViewport:r,onLeaveViewport:s});return(0,a.jsx)(c,d({},v,{inViewport:p,enterCount:m,leaveCount:g},{ref:f}))}var p=e.displayName||e.name||"Component";return f.displayName="handleViewport("+p+")",(0,r.default)(f,c)}},69675:function(e,t,n){t.__esModule=!0,t.default=void 0;var o=n(2784),r=n(28316),i=n(6622);t.default=function(e,t,n,l){void 0===t&&(t=i.defaultOptions),void 0===n&&(n=i.defaultConfig),void 0===l&&(l=i.defaultProps);var{onEnterViewport:a,onLeaveViewport:u}=l,[,c]=(0,o.useState)(),d=(0,o.useRef)(),s=(0,o.useRef)(!1),v=(0,o.useRef)(!1),f=(0,o.useRef)(0),p=(0,o.useRef)(0);function m(e){var{isIntersecting:t,intersectionRatio:o}=e[0]||{},r=void 0!==t?t:o>0;if(!v.current&&r){v.current=!0,null==a||a(),f.current+=1,s.current=r,c(r);return}v.current&&!r&&(v.current=!1,null==u||u(),n.disconnectOnLeave&&d.current&&d.current.disconnect(),p.current+=1,s.current=r,c(r))}return(0,o.useEffect)(()=>{var n=d.current;return function(t){var{observerRef:n}=t,o=e.current;if(o){var i=(0,r.findDOMNode)(o);i&&(null==n||n.observe(i))}}({observerRef:n=function(e){var{observerRef:n}=e;return n||(d.current=new IntersectionObserver(m,t),d.current)}({observerRef:n})}),()=>{!function(t){var{observerRef:n}=t,o=e.current;if(o){var i=(0,r.findDOMNode)(o);i&&(null==n||n.unobserve(i))}null==n||n.disconnect(),d.current=null}({observerRef:n})}},[e.current,t,n,a,u]),{inViewport:s.current,enterCount:f.current,leaveCount:p.current}}}}]); //# sourceMappingURL=6532.ac5b19b3516a62e0.js.map