"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7534,9699],{19699:function(t,e,n){n.d(e,{$u:function(){return u},Bj:function(){return a},kj:function(){return l},ri:function(){return c},v7:function(){return s}});var r=n(95235);function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function o(t){for(var e=1;e a {\n height: fit-content;\n }\n"])),(0,G.W0)(1),(0,G.W0)(5),function(t){return(0,R.mq)(t.theme.breakpointUtils.map,"sm")},function(t){return(0,R.mq)(t.theme.breakpointUtils.map,"md")},(0,G.W0)(4),(0,G.W0)(2),function(t){return(0,R.mq)(t.theme.breakpointUtils.map,"lg")},(0,G.W0)(2)),F=(0,S.zo)(z.v)(d||(d=(0,B.Z)(["\n > div:nth-of-type(2) > a,\n > div:nth-of-type(2) > div {\n padding-left: ",";\n > div > h3 {\n ",";\n\n "," {\n ",";\n }\n }\n\n "," {\n padding-left: 0;\n }\n }\n div:nth-of-type(2) > div:last-child {\n ",";\n }\n"])),(0,G.W0)(1),(0,I.xv)("medium1","default"),function(t){return(0,R.mq)(t.theme.breakpointUtils.map,"md")},(0,I.xv)("bodyText","default"),function(t){return(0,R.mq)(t.theme.breakpointUtils.map,"md")},function(t){return t.hasButton&&"padding : 0"}),Q=(0,S.zo)(j.P)(p||(p=(0,B.Z)(["\n margin: 0 ",";\n\n "," {\n margin: 0;\n }\n"])),(0,G.W0)(2),function(t){return(0,R.mq)(t.theme.breakpointUtils.map,"md")}),V=(0,S.zo)(j.P)(m||(m=(0,B.Z)(["\n ",";\n\n "," {\n margin-left: 0;\n }\n\n a,\n a:hover {\n border: 0;\n }\n"])),function(t){return!t.displayAsGrid&&"margin-left: ".concat((0,G.W0)(2))},function(t){return(0,R.mq)(t.theme.breakpointUtils.map,"md")}),K=(0,S.zo)(D.Yt)(f||(f=(0,B.Z)(["\n right: ",";\n"])),(0,G.W0)(1)),Y=(0,S.zo)(W.E)(g||(g=(0,B.Z)(["\n aspect-ratio: auto;\n display: flex;\n justify-content: center;\n\n img {\n ","\n ","\n }\n"])),function(t){return t.aspectRatio&&"aspect-ratio: ".concat(t.aspectRatio,";")},function(t){return t.maxWidth&&"max-width: ".concat(t.maxWidth,";")}),H=n(52322);function J(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function $(t){for(var e=1;e1||e.image.lazy})},(null===(c=e.picture)||void 0===c?void 0:c.sources)&&{picture:$($({},e.picture),{},{lazy:t.widgetIndex>1||e.image.lazy})}),!n&&e.hoverImage&&{hoverImage:$($({},e.hoverImage),{},{lazy:t.widgetIndex>1||e.hoverImage.lazy})}),{},{enableQuickbuyButtonOnDesktop:!0,hasButton:null!==(s=!r&&t.displayQuickBuyButton)&&void 0!==s&&s}),o),(0,H.jsx)(K,{children:(0,H.jsx)(O.WishlistButton,{buttonType:O.WishlistButtonType.HEART,sku:parseInt(e.sku,10),inWishlist:f,i18nText:i.wishlist,buttonStyle:t.wishListButtonStyle,title:e.title.value,price:null===(d=e.price)||void 0===d||null===(d=d.price)||void 0===d?void 0:d.defaultPrice,externalIdentifier:null==e?void 0:e.externalIdentifier,brandName:null==e||null===(p=e.brand)||void 0===p?void 0:p.name,itemCategories:null==e||null===(m=e.content)||void 0===m?void 0:m.find(function(t){return t.key===T.PRODUCT_CONTENT_KEY.MAT_CATEGORY})})})]})}),a={2:[2,2,2,2],3:[2,3,2,2],default:t.orientation===X.PORTRAIT?[2,3,2,2]:[2,3,4,4]};return(0,H.jsxs)(Z,{columns:12,rows:9,children:[(0,H.jsxs)(Q,{colStart:t.componentsGrid.title.colStart,colSpan:t.componentsGrid.title.colSpan,rowStart:t.componentsGrid.title.rowStart,rowSpan:t.componentsGrid.title.rowSpan,children:[(0,H.jsx)(q,{textAlign:t.orientation!==X.PORTRAIT||t.displayAsGrid?L.K.CENTER:L.K.LEFT,children:t.title}),(0,H.jsx)(U,{textAlign:t.orientation!==X.PORTRAIT||t.displayAsGrid?L.K.CENTER:L.K.LEFT,children:t.description})]}),(0,H.jsx)(j.P,{colStart:t.componentsGrid.image.colStart,colSpan:t.componentsGrid.image.colSpan,rowStart:t.componentsGrid.image.rowStart,rowSpan:t.componentsGrid.image.rowSpan,style:{display:"flex",justifyContent:"center"},children:t.picture?(0,H.jsx)(A.t,$($({},t.picture),{},{aspectRatio:t.orientation===X.PORTRAIT?tt.PORTRAIT:tt.LANDSCAPE,style:{width:"100%",objectFit:"cover",maxWidth:t.orientation===X.PORTRAIT&&t.displayAsGrid?"538px":"100%"}})):(0,H.jsx)(Y,$($({src:[{url:t.image.urls.small,breakpoint:"sm"},{url:t.image.urls.medium,breakpoint:"md"},{url:t.image.urls.large,breakpoint:"lg"}],width:"100%",height:"100%",alt:t.image.alt||t.title||""},t.orientation===X.PORTRAIT&&t.displayAsGrid&&{maxWidth:"538px"}),{},{aspectRatio:t.orientation===X.PORTRAIT?tt.PORTRAIT:tt.LANDSCAPE}))}),(0,H.jsx)(V,{colStart:t.componentsGrid.carousel.colStart,colSpan:t.componentsGrid.carousel.colSpan,rowStart:t.componentsGrid.carousel.rowStart,rowSpan:t.componentsGrid.carousel.rowSpan,displayAsGrid:t.displayAsGrid,children:t.displayAsGrid?(0,H.jsx)(M,{children:o.map(function(t){return(0,H.jsx)("div",{style:{position:"relative"},children:t})})}):(0,H.jsx)(x.Z,{query:(0,R.mq)(t.breakpoints,"sm",!0),children:function(e){return(0,H.jsx)(N,$({items:o,i18n:i.carouselText,itemsPerSlide:a[null==o?void 0:o.length]||a.default,hideControlsOnSingleSlide:!0,inactiveSlideFullOpacity:!0,buttonPlacement:k.J.BottomRight,indicatorStyle:"dot",enableSlidePreview:!0,indicatorPadding:t.indicatorPadding,dotHorizontalMargin:.5,enableWhiteControls:!0},e&&{customTransform:t.orientation===X.PORTRAIT?102:106}))}})}),(0,H.jsx)(_,{colStart:t.componentsGrid.button.colStart,colSpan:t.componentsGrid.button.colSpan,rowStart:t.componentsGrid.button.rowStart,rowSpan:t.componentsGrid.button.rowSpan,isPortrait:t.orientation===X.PORTRAIT&&!t.displayAsGrid,children:(0,H.jsx)(P.zx,{href:t.shopAll.link,ariaLabel:t.shopAll.label,renderedAs:"a",children:t.shopAll.label})})]})},tn=n(73557);function tr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function ti(t){for(var e=1;eo-1,isAmp:!1}),picture:ti(ti({style:{width:"100%"}},e.picture),{},{alt:e.title,lazy:i>o-1}),review:e.reviews?{starRating:null===(p=e.reviews)||void 0===p?void 0:p.averageScore,numberOfReviews:null===(m=e.reviews)||void 0===m?void 0:m.total,screenReaderOnlyText:u({score:e.reviews.averageScore,total:e.reviews.total})}:void 0,button:{title:!t.displayQuickbuy||e.inStock?t.quickBuyLabel||a.quickBuyText:a.soldOutText,ariaLabel:a.buyAriaLabel,quickBuyTitle:t.quickBuyLabel||a.quickBuyText,productInStock:e.inStock,disabled:!e.inStock,buttonStyle:null===(f=n.widget.shopTheRoom)||void 0===f||null===(f=f.productBlock)||void 0===f||null===(f=f.components)||void 0===f?void 0:f.productButton}})})};return(0,H.jsx)(te,ti({},c))}},15754:function(t,e,n){e.ZP=void 0;var r=i(n(57727));function i(t){return t&&t.__esModule?t:{default:t}}r.default,i(n(69675)).default;var o=r.default;e.ZP=o},6622:function(t,e){e.__esModule=!0,e.noop=e.defaultProps=e.defaultOptions=e.defaultConfig=void 0,e.defaultOptions={},e.defaultConfig={disconnectOnLeave:!1};var n=()=>{};e.noop=n,e.defaultProps={onEnterViewport:n,onLeaveViewport:n}},57727:function(t,e,n){e.__esModule=!0,e.default=void 0;var r=n(2784),i=c(n(73463)),o=c(n(69675)),a=n(6622),l=n(52322),u=["onEnterViewport","onLeaveViewport"];function c(t){return t&&t.__esModule?t:{default:t}}function s(){return(s=Object.assign||function(t){for(var e=1;e"function"==typeof t&&!(t.prototype&&t.prototype.render),p=t=>t.prototype&&t.prototype.isReactComponent;e.default=function(t,e,n){void 0===e&&(e=a.defaultOptions),void 0===n&&(n=a.defaultConfig);var c=(0,r.forwardRef)((e,n)=>{var r=s({forwardedRef:n},p(t)&&!d(t)?{ref:n}:{});return(0,l.jsx)(t,s({},e,r))});function m(t){var{onEnterViewport:i=a.noop,onLeaveViewport:d=a.noop}=t,p=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r=0||(i[n]=t[n]);return i}(t,u),m=(0,r.useRef)(),{inViewport:f,enterCount:g,leaveCount:h}=(0,o.default)(m,e,n,{onEnterViewport:i,onLeaveViewport:d});return(0,l.jsx)(c,s({},p,{inViewport:f,enterCount:g,leaveCount:h},{ref:m}))}var f=t.displayName||t.name||"Component";return m.displayName="handleViewport("+f+")",(0,i.default)(m,c)}},69675:function(t,e,n){e.__esModule=!0,e.default=void 0;var r=n(2784),i=n(28316),o=n(6622);e.default=function(t,e,n,a){void 0===e&&(e=o.defaultOptions),void 0===n&&(n=o.defaultConfig),void 0===a&&(a=o.defaultProps);var{onEnterViewport:l,onLeaveViewport:u}=a,[,c]=(0,r.useState)(),s=(0,r.useRef)(),d=(0,r.useRef)(!1),p=(0,r.useRef)(!1),m=(0,r.useRef)(0),f=(0,r.useRef)(0);function g(t){var{isIntersecting:e,intersectionRatio:r}=t[0]||{},i=void 0!==e?e:r>0;if(!p.current&&i){p.current=!0,null==l||l(),m.current+=1,d.current=i,c(i);return}p.current&&!i&&(p.current=!1,null==u||u(),n.disconnectOnLeave&&s.current&&s.current.disconnect(),f.current+=1,d.current=i,c(i))}return(0,r.useEffect)(()=>{var n=s.current;return function(e){var{observerRef:n}=e,r=t.current;if(r){var o=(0,i.findDOMNode)(r);o&&(null==n||n.observe(o))}}({observerRef:n=function(t){var{observerRef:n}=t;return n||(s.current=new IntersectionObserver(g,e),s.current)}({observerRef:n})}),()=>{!function(e){var{observerRef:n}=e,r=t.current;if(r){var o=(0,i.findDOMNode)(r);o&&(null==n||n.unobserve(o))}null==n||n.disconnect(),s.current=null}({observerRef:n})}},[t.current,e,n,l,u]),{inViewport:d.current,enterCount:m.current,leaveCount:f.current}}}}]); //# sourceMappingURL=7534.3c19fc56b4cb97f3.js.map