1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5370],{35710:function(e,t,o){o.d(t,{T:function(){return R}});var n,l,i=o(95235),r=o(2784),a=o(31035),c=o(95152),u=o(17190),d=o(60301),s=o(7328),v=o(11006),m=o(48840),p=o(81292),g=o(52322),b=v.zo.div(n||(n=(0,s.Z)(["\n margin-right: ",";\n margin-left: ",";\n"])),(0,m.W0)(-2),(0,m.W0)(-1)),f=v.zo.ul(l||(l=(0,s.Z)(["\n width: 100%;\n list-style: none;\n margin: 0;\n display: grid;\n grid-auto-flow: column;\n grid-auto-columns: calc(100% / 2.15);\n overflow-x: auto;\n overflow-y: hidden;\n\n scrollbar-width: thin;\n scrollbar-color: "," ","\n\n &::-webkit-scrollbar {\n height: 14px;\n }\n\n &::-webkit-scrollbar-track {\n background: ",";\n border-radius: 8px;\n }\n\n &::-webkit-scrollbar-thumb {\n background-color: ",";\n border-radius: 8px;\n border: 2px solid ",";\n }\n\n &::-webkit-scrollbar-thumb:hover {\n background-color: ",";\n }\n\n "," {\n grid-auto-columns: calc(100% / 4);\n }\n\n "," {\n grid-auto-columns: calc(100% / 5);\n }\n\n > li {\n padding-left: 8px;\n padding-right: 0px;\n}\n"])),function(e){return e.theme.colors.palette.brand.light},function(e){return e.theme.colors.palette.brand.darkest},function(e){return e.theme.colors.palette.brand.light},function(e){return e.theme.colors.palette.brand.darkest},function(e){return e.theme.colors.palette.brand.darkest},function(e){return e.theme.colors.palette.brand.darkest},function(e){return(0,p.mq)(e.theme.breakpointUtils.map,"sm")},function(e){return(0,p.mq)(e.theme.breakpointUtils.map,"md")}),y=function(e){return(0,g.jsx)(b,{children:(0,g.jsx)(f,{children:e.productBlocks})})},k=o(64725),h=o(41857),w=o(58406),x=o(28885),S=o(81754),T=o(12786),C=o(92400),P=o(73557),B=o(351),I=o(91849);function O(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function A(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?O(Object(o),!0).forEach(function(t){(0,i.Z)(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):O(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}var D=function(e,t,o){var n,l;return e||t?(null===(n=o.defaultVariant)||void 0===n?void 0:n.externalIdentifier)||"":(null===(l=o.defaultVariant)||void 0===l?void 0:l.sku)||""},R=function(e){var t,o,n,l,i=(0,h.ND)(),s=i.enableClickAndCollect,v=i.useGA4EnhancedEcom,m=i.useExternalIdentifier,b=i.useExternalIdentifierInSchema,f=i.showPdpLinkWhenOutOfStock,O=i.alternateProductKeysForCategories,R=(0,h.By)(),L=(0,w.Fg)(),_=r.useRef(!1);r.useEffect(function(){if(v&&!sessionStorage.getItem("ga4_recs_meta")&&(e.recommendationPageCategoryTracking||e.trackingContext)){var t={page_category:e.recommendationPageCategoryTracking||"",logic_applied:e.trackingContext?"?rctxt=".concat(e.trackingContext):""};sessionStorage.setItem("ga4_recs_meta",JSON.stringify(t))}},[v,e.recommendationPageCategoryTracking,e.trackingContext]);var j=r.useMemo(function(){var t,o,n,l;return v?(t=e.products,o=e.widgetTitle,n=e.trackingContext,l=e.recommendationPageCategoryTracking,t.map(function(e,t){var i;return A(A({index:t,item_id:(m||b)&&null!=e&&e.externalIdentifier?e.externalIdentifier:(null==e?void 0:e.sku)||"",item_name:e.title,item_brand:(null===(i=e.brand)||void 0===i?void 0:i.name)||"",price:(0,u.Q)(e.price.price.defaultPrice),quantity:1,item_list_name:o,item_variant:D(m,b,e)},(0,S.cO)(e.categories||e.content,O)),{},{page_category:l||"",logic_applied:"?rctxt=".concat(n)||0})})):null},[e.products,m,b,e.widgetTitle,O,e.trackingContext,e.recommendationPageCategoryTracking]);r.useEffect(function(){r.startTransition(function(){!_.current&&((0,S.y_)({type:"elysiumEvent",eventData:{eventAction:"Viewed",eventCategory:"Product | Recommendations",eventLabel:"Recommendations rails component"}}),_.current=!0,j&&(0,S.yX)({event:"ecom_event",event_name:"view_item_list",ecommerce:{currencyCode:null==R?void 0:R.currency,items:j}}))})},[j,null==R?void 0:R.currency]);var E={buttonI18nText:{buyAriaLabel:(0,x.fY)("general.productbuynow.label"),buyText:(0,x.ag)("general.productbuynow.text"),quickBuyText:(0,x.ag)("general.product.quickbuy.text"),soldOutText:(0,x.ag)("general.productsoldout.text")},reviewsI18nText:{reviewsStarsLabel:(0,x.ag)("reviews.stars.label"),reviewsLabel:(0,x.ag)("reviews.reviews.label")},carouselText:{leftScrollLabel:(0,x.ag)("carousel.controls.left.arialabel"),rightScrollLabel:(0,x.ag)("carousel.controls.right.arialabel")},swatchI18nText:{swatchTooltipUnavailable:(0,x.ag)("product.productoptions.swatch.tooltip.unavailable.text"),swatchTooltipCloseButton:(0,x.ag)("product.productoptions.swatch.tooltip.close.text")},closeI18nText:{closeAriaLabel:(0,x.ag)("general.modal.close.button.arialabel"),closeLabel:(0,x.ag)("general.modal.close.button.label")},freeGiftMessage:(0,x.ag)("product.marketedspecialoffer.freegift.text")},V={height:500,width:300,type:"slides",role:"region"},M=r.useCallback(function(e){requestAnimationFrame(function(){(0,S.y_)({type:"elysiumEvent",eventData:{eventAction:"Clicked",eventCategory:"Product | Recommendations",eventLabel:"Recommendations product clicked position",eventLabelValue:"".concat(e)}})})},[]),G=r.useCallback(function(e){requestAnimationFrame(function(){(0,S.y_)({type:"elysiumEvent",eventData:{eventAction:"Clicked",eventCategory:"Product | Recommendations",eventLabel:"Recommendations product buy position",eventLabelValue:"".concat(e)}})})},[]),F=function(e,t,o){var n,l,i,r,a,c,u,d,s,v,m,p;if(t)return{enableClickAndCollect:t,inStock:!!(null===(n=e.defaultVariant)||void 0===n?void 0:n.inStock),isCheckStock:!!(null===(l=e.defaultVariant)||void 0===l?void 0:l.isCheckStock),isOrderInStore:!!(null===(i=e.defaultVariant)||void 0===i?void 0:i.isOrderInStore),leadTime:(null===(r=e.defaultVariant)||void 0===r?void 0:r.leadTime)||void 0,weightGroups:(null===(a=e.defaultVariant)||void 0===a?void 0:a.weightGroups)||[],isBookable:!!(null===(c=e.defaultVariant)||void 0===c?void 0:c.isBookable),inStockLocations:(null===(u=e.defaultVariant)||void 0===u?void 0:u.inStockLocations)||[],iconsAvailability:{homeDelivery:!!(null===(d=e.defaultVariant)||void 0===d||null===(d=d.eligibleForFulfilmentMethods)||void 0===d?void 0:d.includes(T.eN.HomeDelivery)),storeAvailable:!!(null===(s=e.defaultVariant)||void 0===s||null===(s=s.eligibleForFulfilmentMethods)||void 0===s?void 0:s.includes(T.eN.CollectInStore)),storeDelivery:!!(null===(v=e.defaultVariant)||void 0===v||null===(v=v.eligibleForFulfilmentMethods)||void 0===v?void 0:v.includes(T.eN.DeliverToStore))},i18nText:{clickAndCollect:{isAvailable:o("product.list.clickandcollect.text"),isNotAvailable:o("product.clickandcollect.unavailable.text")},homeDelivery:{isAvailable:o("product.delivery.home.instock.text"),isNotAvailable:o("product.delivery.home.unavailable.text"),isOutOfStock:o("product.delivery.home.outofstock.text"),datedDelivery:o("basket.item.fulfilment.leadtime",null===(m=e.defaultVariant)||void 0===m||null===(m=m.leadTime)||void 0===m?void 0:m.toString()),nextDayDelivery:o("basket.item.fulfilment.nextdaydelivery"),oneManDelivery:o("product.item.fulfilment.1man.nextdaydeliveryavailable"),outOfGaugeDelivery:o("product.item.fulfilment.outofgauge.nameddaydeliveryavailable"),dynamicDelivery:o("product.item.fulfilment.pdp.".concat(null===(p=e.defaultVariant)||void 0===p||null===(p=p.weightGroups)||void 0===p||null===(p=p[0])||void 0===p?void 0:p.toLowerCase()))},storeDelivery:{isAvailable:o("product.delivery.store.available.text")}
1,orderInStore:{isAvailable:o("product.item.fulfilment.orderinstore.available.text")}}}},q=e.displayAlternateStyle?null===(t=e.recommendationsStyle)||void 0===t?void 0:t.alternateStyle:void 0,N=r.useMemo(function(){return e.products.map(function(t,o){var n,l,i,a,u,d,v,m,p,g,b,y,h,w,S,T=t.marketedSpecialOffer||(null===(n=t.defaultVariant)||void 0===n?void 0:n.marketedSpecialOffer);return(0,r.createElement)(c.v,A(A({},t),{},{sku:null==t||null===(l=t.sku)||void 0===l?void 0:l.toString(),externalIdentifier:null==t?void 0:t.externalIdentifier,widgetName:e.widgetTitle||"",marketedSpecialOffer:(null===(i=e.recommendationsStyle)||void 0===i?void 0:i.paps.display)&&(null==T?void 0:T.title)&&{title:null==T?void 0:T.title.content[0].content,description:(null==T||null===(a=T.description)||void 0===a?void 0:a.content[0].content)||"",i18nText:{closeI18nText:E.closeI18nText,freeGiftMessage:E.freeGiftMessage},onlyDisplayOfferBadge:!0}||void 0,enableQuickBuyOnPDPRecs:e.enableQuickBuyOnPDPRecs,enableAlternateQuickBuyButtonStyling:e.enableQuickBuyOnPDPRecs,title:{value:t.title,useAlternateStyle:!1,ellipsis:null==q||null===(u=q.productBlock)||void 0===u||null===(u=u.content)||void 0===u?void 0:u.showEllipsis},url:e.trackingContext?"".concat(t.url,"?rctxt=").concat(e.trackingContext):t.url,image:{urls:{largeProduct:t.image}},swatch:t.colourSwatches?{shape:P.M.CIRCLE,size:P.v.Small,colours:t.colourSwatches,i18nText:{unavailableText:E.swatchI18nText.swatchTooltipUnavailable,closeButtonText:E.swatchI18nText.swatchTooltipCloseButton}}:void 0,price:A(A({},t.price),{},{showRrpInline:null==q||null===(d=q.productBlock)||void 0===d||null===(d=d.price)||void 0===d?void 0:d.showRrpInline,showMinPriceRange:null==q||null===(v=q.productBlock)||void 0===v||null===(v=v.price)||void 0===v?void 0:v.showMinPriceRange}),review:{starRating:t.reviews.averageScore,numberOfReviews:t.reviews.total,screenReaderOnlyText:"".concat(t.reviews.averageScore," ").concat(E.reviewsI18nText.reviewsStarsLabel," \n ").concat(t.reviews.total," ").concat(E.reviewsI18nText.reviewsLabel)},button:"inStock"in t&&void 0!==t.inStock&&null!==t.inStock&&!t.inStock?{title:E.buttonI18nText.soldOutText,quickBuyTitle:"",disabled:!f}:{title:E.buttonI18nText.buyText,ariaLabel:E.buttonI18nText.buyAriaLabel(t.title),quickBuyTitle:E.buttonI18nText.quickBuyText,productInStock:t.inStock||!1},key:"".concat(t.title,"-").concat(o),fromRecommendations:!0,fulfilmentMethodIconsProps:F(t,s,x.ag),onClickEventEmitter:function(){return M(o)},onQuickBuyClickEventEmitter:function(){return G(o)},attributes:null===(m=e.recommendationsStyle)||void 0===m||null===(m=m.productBlock)||void 0===m?void 0:m.attributes,content:t.content,powerReviewGroups:(0,k.BL)(t.content),enableSavePrice:e.enableSavePrice,showPowerReview:null==q||null===(p=q.productBlock)||void 0===p||null===(p=p.content)||void 0===p?void 0:p.showReviews,showReview:null==q||null===(g=q.productBlock)||void 0===g||null===(g=g.content)||void 0===g?void 0:g.showReviews,hideProductListSwatch:null==q||null===(b=q.productBlock)||void 0===b||null===(b=b.content)||void 0===b?void 0:b.showSwatches,hideListPageProductActions:null==q||null===(y=q.productBlock)||void 0===y||null===(y=y.content)||void 0===y?void 0:y.showButton,customStyling:{containerHeight:null==q||null===(h=q.productBlock)||void 0===h||null===(h=h.visual)||void 0===h?void 0:h.height,backgroundColor:null==q||null===(w=q.productBlock)||void 0===w||null===(w=w.visual)||void 0===w?void 0:w.backgroundColor,padding:null==q||null===(S=q.productBlock)||void 0===S||null===(S=S.visual)||void 0===S?void 0:S.padding}}))})},[E.buttonI18nText,f,s,E.closeI18nText,E.freeGiftMessage,E.reviewsI18nText.reviewsLabel,E.reviewsI18nText.reviewsStarsLabel,E.swatchI18nText.swatchTooltipCloseButton,E.swatchI18nText.swatchTooltipUnavailable,e.products,null===(o=e.recommendationsStyle)||void 0===o?void 0:o.paps.display,null===(n=e.recommendationsStyle)||void 0===n||null===(n=n.productBlock)||void 0===n?void 0:n.attributes,e.trackingContext,e.widgetTitle,e.enableSavePrice,q]),W=r.useMemo(function(){var t,o,n,l,i,r,a,c,u,d,s;return(0,g.jsx)(B.l,{items:N,itemsPerSlide:e.itemsPerSlide,i18n:E.carouselText,isAmp:!1,ampProps:V,hideControlsOnSingleSlide:!0,hideControls:!1,indicatorStyle:null===(t=e.recommendationsStyle)||void 0===t||null===(t=t.carousel)||void 0===t?void 0:t.indicatorStyle,controls:{placement:(null==q||null===(o=q.carousel)||void 0===o||null===(o=o.controls)||void 0===o?void 0:o.placement)||I.J.BottomRight,size:(null==q||null===(n=q.carousel)||void 0===n||null===(n=n.controls)||void 0===n?void 0:n.size)||e.carouselSize,controlBorderColour:null==q||null===(l=q.carousel)||void 0===l||null===(l=l.controls)||void 0===l?void 0:l.controlBorderColour,controlBorderWidth:null==q||null===(i=q.carousel)||void 0===i||null===(i=i.controls)||void 0===i?void 0:i.controlBorderWidth,controlDisabledBackgroun
1dColor:null==q||null===(r=q.carousel)||void 0===r||null===(r=r.controls)||void 0===r?void 0:r.controlDisabledBackgroundColor},chevronIconStyle:null==q||null===(a=q.carousel)||void 0===a?void 0:a.chevronIconStyle,itemGapSpacing:null===(c=e.recommendationsStyle)||void 0===c||null===(c=c.carousel)||void 0===c?void 0:c.itemGapSpacing,ignoreGapOffset:(null==q||null===(u=q.carousel)||void 0===u?void 0:u.isFullWidth)||e.overrideStyleWidth,enableDualSidePreview:null!==(d=e.carouselPreview)&&void 0!==d?d:null==q||null===(s=q.carousel)||void 0===s?void 0:s.slidePreview,swipeable:!0})},[N,e.itemsPerSlide,E.carouselText,V,null===(l=e.recommendationsStyle)||void 0===l?void 0:l.carousel,e.carouselSize,e.overrideStyleWidth,q,e.carouselPreview]),z=r.useMemo(function(){return N.map(function(e){return(0,g.jsx)(C.A5,{children:e})})},[N]);return e.displayAsGrid?(0,g.jsx)(d.V,{productBlocks:z,oneProductPerRow:!0,fourProductsPerRowDesktop:!0}):e.displayAlternateStyle?(0,g.jsx)(r.Fragment,{children:(0,g.jsx)(a.Z,{query:(0,p.mq)(L.breakpointUtils.map,"md",!0),children:function(e){return(0,g.jsxs)(r.Fragment,{children:[!e&&(0,g.jsx)(y,{productBlocks:z}),e&&W]})}})}):W}}}]); 2//# sourceMappingURL=5370-05c63ad39a487cd5.js.map
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.