"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[514],{3103:function(e,t,n){n.d(t,{tV:function(){return s}});var i=n(95235),o=n(16304),r=n(12786);function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function u(e){for(var t=1;t0?i:c(e,t,n)}},28039:function(e,t,n){n.d(t,{Dx:function(){return g},EZ:function(){return h},QE:function(){return w},W4:function(){return b},mg:function(){return k}});var i,o,r,l,u,a=n(7328),c=n(11006),d=n(48840),s=n(81292),v=n(87330),f=n(51339),p=n(57209),m=n(4626),h=(0,c.zo)(p.r)(i||(i=(0,a.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)),g=c.zo.h2(o||(o=(0,a.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 }")}),w=c.zo.p(r||(r=(0,a.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)),b=(0,c.zo)(m.P)(l||(l=(0,a.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)),k=(0,c.zo)(f.zx)(u||(u=(0,a.Z)(["\n margin-top: ",";\n width: 100%;\n ",";\n\n "," {\n width: auto;\n }\n"])),function(e){var t;return null!==(t=e.theme.widget.bestSellers.viewMoreButton)&&void 0!==t&&t.margin.top?(0,d.W0)(e.theme.widget.bestSellers.viewMoreButton.margin.top):0},(0,v.xv)("xsmall","alternate"),function(e){return(0,s.mq)(e.theme.breakpointUtils.map,"sm")})},90514:function(e,t,n){n.r(t),n.d(t,{ProductBlockCarouselRenderer:function(){return C}});var i,o,r=n(8529),l=n(95235),u=n(7328),a=n(2784),c=n(17190),d=n(41857),s=n(58406),v=n(28885),f=n(81754),p=n(3103),m=n(11006),h=n(48840),g=n(81292),w=n(77215),b=n(28039),k=n(73557),y=n(53678),x=n(52322);function O(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function S(e){for(var t=1;t0&&e.images[0].largeProduct||""},e.images[0]),altText:"",isAmp:!1,lazy:o>4},picture:S(S({style:{width:"100%"}},e.picture),{},{alt:e.title,lazy:o>4}),hoverPicture:e.hoverPicture&&S(S({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!==(u=null===(a=e.defaultVariant)||void 0===a?void 0:a.leadTime)&&void 0!==u?u:void 0,weightGroups:null!==(c=null===(d=e.defaultVariant)||void 0===d?void 0:d.weightGroups)&&void 0!==c?c:void 0,isBookable:null!==(s=null===(v=e.defaultVariant)||void 0===v?void 0:v.isBookable)&&void 0!==s?s:void 0,inStockLocations:null!==(f=null===(m=e.defaultVariant)||void 0===m?void 0:m.inStockLocations)&&void 0!==f?f:void 0,eligibleForFulfilmentMethods:null!==(h=null===(g=e.defaultVariant)||void 0===g?void 0:g.eligibleForFulfilmentMethods)&&void 0!==h?h:void 0})})},C=function(e){var t,n,i,o=(0,d.ND)(),l=o.showPdpLinkWhenOutOfStock,u=o.alternateProductKeysForSwatches,p=o.departmentContentValueForSwatches,m=o.useGA4EnhancedEcom,h=o.useExternalIdentifierInSchema,g=o.useExternalIdentifier,w=o.alternateProductKeysForCategories,O=(0,s.lF)().currency,L={closeLabel:(0,v.ag)("general.modal.close.button.label"),closeAriaLabel:(0,v.ag)("general.modal.close.button.arialabel"),rrpText:(0,v.ag)("product.price.rrp.text"),swatchI18nText:{swatchTooltipUnavailable:(0,v.ag)("product.productoptions.swatch.tooltip.unavailable.text"),swatchTooltipCloseButton:(0,v.ag)("product.productoptions.swatch.tooltip.close.text")}},C=a.useState(""),E=(0,r.Z)(C,2),I=E[0],B=E[1];a.useEffect(function(){if("undefined"!=typeof document){var e,t=document.querySelector('[data-testid="tabbed-set-title"]');t&&B(null!==(e=t.textContent)&&void 0!==e?e:"")}},[]);var W=null!=e&&e.productBlockList?(t=null==e?void 0:e.productBlockList.productBlocks,n=e.title,null==t?void 0:t.map(function(e,t){var i,o;return S(S({},e),{},{widgetTitle:n,widgetName:I,title:{value:e.title},swatch:e.colourSwatches?{shape:k.M.CIRCLE,size:k.v.Small,colours:e.colourSwatches,i18nText:{unavailableText:L.swatchI18nText.swatchTooltipUnavailable,closeButtonText:L.swatchI18nText.swatchTooltipCloseButton}}:void 0,titleAlignment:y.K.LEFT,price:S(S({},e.price),{},{rrpText:L.rrpText}),marketedSpecialOffer:e.marketedSpecialOffer?S(S({},e.marketedSpecialOffer),{},{title:e.marketedSpecialOffer.titleText,description:e.marketedSpecialOffer.descriptionText,i18nText:{closeI18nText:{closeLabel:L.closeLabel,closeAriaLabel:L.closeAriaLabel}},onlyDisplayOfferBadge:!0}):void 0,picture:S(S({},e.picture),{},{style:{width:"100%"},lazy:t>4}),hoverPicture:e.hoverPicture&&S(S({},e.hoverPicture),{},{style:{width:"100%"},lazy:!1}),review:e.reviews&&{starRating:null===(i=e.reviews)||void 0===i?void 0:i.averageScore,numberOfReviews:null===(o=e.reviews)||void 0===o?void 0:o.total}})})):null!=e&&e.productList?j(null==e||null===(i=e.productList)||void 0===i?void 0:i.products,L,u,p):null!=e&&e.responsiveSkuList?j(null==e?void 0:e.responsiveSkuList,L,u,p):null,_=a.useRef(!1);if(a.useEffect(function(){m&&I&&!_.current&&((0,f.yX)({event:"ecom_event",event_name:"view_item_list",ecommerce:{currencyCode:O,items:null==W?void 0:W.map(function(t,n){var i,o,r,l;return S({index:n,item_name:t.title.value||"",item_brand:(null===(i=t.brand)||void 0===i?void 0:i.name)||"",item_id:(g||h)&&t.externalIdentifier?t.externalIdentifier:t.sku.toString(),item_list_name:I?"".concat(I," - ").concat(e.title):t.title.value,price:(0,c.Q)(null===(o=t.price)||void 0===o||null===(o=o.price)||void 0===o?void 0:o.defaultPrice),item_variant:(null===(r=t.defaultVariant)||void 0===r?void 0:r.externalIdentifier)||(null===(l=t.productVariant)||void 0===l?void 0:l.externalIdentifier)||""},(0,f.cO)(t.content,w))})}}),_.current=!0)},[I]),W){var A={showPdpLinkWhenOutOfStock:l,productBlocks:W,widgetIndex:e.widgetIndex,title:e.title?{text:e.title}:void 0,shouldDisplayTitle:"false"!==e.displayStandaloneTitle};return(0,x.jsxs)(a.Fragment,{children:[(0,x.jsx)(P,S({},A)),e.viewAllButtonUrl&&e.viewAllButtonText&&(0,x.jsx)(b.W4,{colSpan:12,children:(0,x.jsx)(b.mg,{emphasis:T[e.viewAllButtonStyle||"medium"],href:e.viewAllButtonUrl,renderedAs:"a",children:e.viewAllButtonText})})]})}return null}}}]); //# sourceMappingURL=514.1238fd7f52a788ed.js.map