PageSourceSearch

https://www.bang-olufsen.com/_next/static/chunks/1137-ce42288335869534.js

js bang-olufsen.com collected 2026-10-09 22:39:56 UTC 33,296 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1137],{97451:function(t,e,r){r.d(e,{Z:function(){return H}});var n=r(43350),o=r(80040),a=r(59307),i=r(48415),c=r(73667),s=r(3117),l=r(90849),d=r(27378),u=r(73546),p=r(19783),g=r.n(p),h=r(60042),m=r.n(h),f=r(41408),S=r(83030),y=r(96667),v=r(64181),b=(0,f.iv)(["&.m-productSticky{position:fixed;width:100%;min-height:76px;bottom:-76px;top:unset;left:0;overflow:hidden;background:",";border-bottom:",";z-index:",";box-shadow:0 0 16px rgb(0 0 0 / 15%);.m-productSticky__content{min-height:76px;padding:5px 24px;display:flex;align-items:center;justify-content:space-between;@media ","{margin-bottom:10px;padding-bottom:20px;padding-top:16px;}}.m-productSticky__info{max-width:calc(100% - 116px);margin-top:2px;display:flex;flex-direction:row;overflow:hidden;max-height:fit-content;@media ","{display:flex;align-items:center;margin-top:4px;}@media ","{flex:1 1 0;display:flex;flex-direction:column;overflow:hidden;min-width:35%;}}.m-productSticky__cta{flex:0 0 auto;@media ","{max-width:fit-content;}.a-anchorButton{@media ","{padding-left:20px;padding-right:17px;min-width:0;em{display:none;}.a-animatedIcon{right:16px;}}}}.m-productSticky__name{",";margin:0;padding:0;@media ","{flex:0 0 auto;}}.m-productSticky__variant_price{display:flex;flex-flow:row wrap;}.m-productSticky__variantName{color:",";white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-right:4px;}.m-productSticky__seperator{display:inherit;align-items:center;padding:4px;}.separator{padding:2px;background:",";border-radius:50%;}.m-productSticky__lowInStock{color:",";font-size:",";}.lowInStock__discounted{color:",";}.m-productSticky__image{.productSticky__img{width:60px;height:60px;}@media ","{display:none;}}.produtSticky_prodDetails{@media ","{padding-left:10px;}}.discounted-price{padding-left:5px;}.m-productSticky__price{margin-left:4px;color:",";font-size:",";font-weight:",";@media ","{margin:0;flex:0;}.-strikePrice{text-decoration:line-through;}}"," &.-stuck{display:block;bottom:-0.5px;transition:bottom 0.4s ease-in-out;}&.-withPromoBanner{margin-top:","px;}&.-withPromoAndCountry{margin-top:","px;}&.-withCountryNotification{margin-top:","px;}&.-hidden{display:none;}}"],(function(t){return t.theme.darkColor?t.theme.colors.BEO_BLACK:t.theme.colors.WHITE}),(function(t){return t.theme.borders.secondary}),(function(t){return t.theme.zIndex.zSticky}),(function(t){return t.theme.mediaQuery.xSmallMax}),(function(t){return t.theme.mediaQuery.small}),(function(t){return t.theme.mediaQuery.xSmallMax}),(function(t){return t.theme.mediaQuery.xSmallMax}),(function(t){return t.theme.mediaQuery.xSmallMax}),y.Z.textEllipsis(),(function(t){return t.theme.mediaQuery.small}),(function(t){return t.theme.colors.GREY5}),(function(t){return t.theme.colors.GREY5}),(function(t){return t.theme.colors.RED}),(function(t){return(0,S.hO)(t.theme.fonts.fontSize.body.small.quinary)}),(function(t){return t.theme.colors.RED}),(function(t){return t.theme.mediaQuery.smallMax}),(function(t){return t.theme.mediaQuery.medium}),(function(t){return t.theme.colors.GREY5}),(function(t){return(0,S.hO)(t.theme.fonts.fontSize.body.small.quinary)}),(function(t){return t.theme.fonts.fontWeight.normal}),(function(t){return t.theme.mediaQuery.small}),v.Z,(function(t){return t.globalMsgHeight&&t.globalMsgHeight.expressNotificationBannerHeight||0}),(function(t){return(t.globalMsgHeight&&t.globalMsgHeight.expressNotificationBannerHeight||0)+(t.globalMsgHeight&&t.globalMsgHeight.countryNotificationHeight||0)}),(function(t){return t.globalMsgHeight&&t.globalMsgHeight.countryNotificationHeight||0})),x=r(34869),C=r(71377),w=r(18307),k=r(90257),_=r(81736),I=r(5407),P=r(6234),Z=r(5337),j=r(50813),O=r(1953),N=r(24246);function T(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function L(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?T(Object(r),!0).forEach((function(e){(0,l.Z)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):T(Object(r)).forEac
1h((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function B(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=(0,s.Z)(t);if(e){var o=(0,s.Z)(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return(0,c.Z)(this,r)}}var D=function(t){(0,i.Z)(r,t);var e=B(r);function r(t){var o;return(0,n.Z)(this,r),o=e.call(this,t),(0,l.Z)((0,a.Z)(o),"handleHeroChat",(function(){var t=o.state.stuck,e=document.querySelector("#hero-iframe-container");e&&t?e.classList.add("heroSticky"):e&&!t&&e.classList.remove("heroSticky")})),(0,l.Z)((0,a.Z)(o),"onScroll",(function(){var t=o.props,e=t.containerHeight,r=t.containerTop,n=t.toggleHeader,a=t.pageType,i=t.viewportInfo,c=o.state.isHeaderHidden,s=window.scrollY||window.pageYOffset,l=i&&i.getIn(["isEqualOrLargerThan","small"]),d=s>e+r;a&&a===j.Hao.PDP&&(d=s>3*(e+r)/4,l||(d=s>5*(e+r)/8));var u=s<e/2;return o.scrollPos=s,o.setState({hidden:u,stuck:d}),o.handleHeroChat(),d&&!c?(n(!0),o.setState({isHeaderHidden:!0})):!d&&c&&(n(!0),o.setState({isHeaderHidden:!1})),!0})),(0,l.Z)((0,a.Z)(o),"addScrollListener",(function(){window.addEventListener("scroll",o.throttledOnScroll,{capture:!1,passive:!0})})),(0,l.Z)((0,a.Z)(o),"removeScrollListener",(function(){window.removeEventListener("scroll",o.throttledOnScroll,{capture:!1,passive:!0})})),(0,l.Z)((0,a.Z)(o),"throttledOnScroll",g()(o.onScroll,100)),(0,l.Z)((0,a.Z)(o),"checkViewPort",(function(){setTimeout((function(){o.setState({isMobileView:window.matchMedia("(max-width: ".concat(Z.q5,"px)")).matches})}))})),o.state={isMobileView:!1,isHeaderHidden:!1,hidden:!1,stuck:!1},o}return(0,o.Z)(r,[{key:"componentDidMount",value:function(){var t=this;this.checkViewPort(),this.addScrollListener(),window.addEventListener("orientationchange",(function(){t.checkViewPort()})),window.addEventListener("load",this.handleHeroChat)}},{key:"componentWillUnmount",value:function(){this.removeScrollListener(),window.removeEventListener("load",this.handleHeroChat)}},{key:"render",value:function(){var t=this.props,e=t.className,r=t.product,n=t.addToCartSuccessAction,o=t.slnId,a=t.withPromoBanner,i=t.withCountryNotification,c=t.multipleProductsInfo,s=t.ctaLabelText,l=t.productImage,d=t.productLowInStockThreshold,u=t.countryRegion,p=t.timeRemainingForShippingTodayLabel,g=t.timeRemainingForShippingTimePartLabel,h=t.variantLowInStockLabel,f=t.availableQuantity,S=t.regionNorthAmerica,y=t.regionEurope,v=t.currentDate,b=t.ecommerceDisabled,x=t.displayPdpShippingTimer,P=t.skuForRelatedProducts,Z=t.handleShowCartPopup,j=t.setAddToBasketProdSku,T=t.cmsLabelsGlobal,B=t.buyButtonLinkText,D=this.state,A=D.isMobileView,E=D.stuck,H=D.hidden,M=r.get("productName"),
1V=r.get("productId"),R=r.get("price"),K=r.get("discountedPrice"),U=r.get("currencyCode"),z=r.get("variantId"),J=r.get("variantName"),Q=c||{productId:V,quantity:1,currency:U,variantId:z},q=Z&&[L(L({},Q),{},{relatedVariantSku:P})],G=m()(e,"m-productSticky",{"-stuck":E,"-hidden":H,"-withPromoBanner":a&&!i,"-withCountryNotification":!a&&i,"-withPromoAndCountry":a&&i}),F=l&&"".concat(l.url,"?q=60&fm=png&w=150&h=150&fit=fill");return(0,N.jsx)("div",{className:G,"data-sln-id":"".concat(o,"_container"),children:M&&R&&V&&(0,N.jsxs)(C.Z,{large:!0,inheritedClass:"m-productSticky__content",flex:!0,disablePadding:!0,children:[(0,N.jsxs)("div",{className:"m-productSticky__info",children:[l&&(0,N.jsx)("div",{className:"m-productSticky__image",children:(0,N.jsx)(_.Z,{className:"productSticky__img",src:F,alt:l.altText})}),(0,N.jsxs)("div",{className:"produtSticky_prodDetails",children:[(0,N.jsx)("div",{className:"h5 m-productSticky__name -secondary","data-sln-id":"".concat(o,"_productname"),children:M}),(0,N.jsxs)("div",{className:"m-productSticky__variant_price b3",children:[J&&(0,N.jsx)("div",{className:"m-productSticky__variantName",children:J}),R&&(0,N.jsx)("div",{className:"m-productSticky__price ",children:(0,N.jsx)(w.Z,{className:"".concat(K&&"original-price"," ").concat(K?"-strikePrice":""),price:R,slnId:"".concat(o,"_productPrice"),priceCategory:K?O.z.EARLIER_PRICE:null})}),K&&(0,N.jsx)("div",{className:"m-productSticky__price -tertiary discounted-price",children:(0,N.jsx)(w.Z,{price:K,slnId:"".concat(o,"_productPrice"),priceCategory:O.z.DISCOUNTED_PRICE})}),(0,N.jsx)("div",{className:"m-productSticky__seperator ",children:!A&&J&&f<d&&(0,N.jsx)("div",{className:"separator"})}),!b&&(0,N.jsx)("span",{className:"m-productSticky__lowInStock ".concat(K&&"lowInStock__discounted"),children:f<d&&h})]})]})]}),(0,N.jsx)("div",{children:x&&(0,N.jsx)(k.Z,{startDate:v(u),className:"shippingTimer-container",timeRemainingForShippingTodayLabel:p,timeRemainingForShippingTimePartLabel:g,countryRegion:u,regionNorthAmerica:S,regionEurope:y,cmsLabelsGlobal:T,isCentered:!0})}),(0,N.jsx)("div",{className:"m-productSticky__cta",children:(0,N.jsx)(I.Z,{variant:"buy",labelText:s,productInfo:Z?q:Q,addToCartSuccessAction:n,slnId:"".concat(o,"_productBuyButton"),handleShowCartPopup:Z,setAddToBasketProdSku:j,skuForBasketPopup:P,ariaLabel:" Product Sticky : ".concat(s),buyButtonLinkText:B})})]})})}}]),r}(d.PureComponent);D.displayName="ProductSticky",D.defaultProps={toggleHeader:function(){},globalMsgHeight:{expressNotificationBannerHeight:0,countryNotificationHeight:0}};var A=(0,P.Z)(D),E=(0,x.Z)(A,b),H=(0,u.connect)((function(t){return{cmsLabelsGlobal:t.getIn(["global","cmsData","Global"])}}),null)(E)},63583:function(t,e,r){r.r(e),r.d(e,{default:function(){return $}});var n=r(90849),o=r(90089),a=r(27378),i=r(73546),c=r(71250),s=r(11246),l=r(43350),d=r(80040),u=r(59307),p=r(48415),g=r(73667),h=r(3117),m=r(34051),f=r(60042),S=r.n(f),y=r(41408),v=r(83030),b=r(96667),x=(0,y.iv)(["&.m-productStereoCrossSellUpSell{",";.-price{color:",";margin:0;padding-bottom:0;padding-bottom:5px;.original-price{&.-strikePrice{text-decoration:line-through;}position:relative;color:",";}span{background-image:none;padding:0;}}.-discounted-price{color:",";}.m-productStereoCrossSellUpSell__wrapper{background-color:",";.-padded{padding:40px 32px;}}.container,.row{height:100%;}.m-productStereoCrossSellUpSell__media{display:flex;align-items:center;justify-content:center;.a-youTubePlayer{flex:1;align-self:center;}.a-responsiveImage{display:block;height:100%;overflow:hidden;text-align:center;@media ","{margin-bottom:0;}}img{height:100%;}}.m-productStereoCrossSellUpSell__details{text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center;@media ","{padding-top:40px;}.m-productStereoCrossSellUpSell__button{order:1;padding-top:20px;}.headTitle,.productName{margin:0;padding:0;letter-spacing:2px;line-height:",";text-transform:uppercase;}.productCrossSell__longDescription{margin:0;padding:10px 0 20px;color:",";}.productCrossSell__swatch__variants{p{&.productCrossSell__subHeader{font-weight:normal;font-size:",";line-height:",";text-align:center;letter-spacing:0.4px;color:",";padding:20px 0;}}}.a-responsiveImage{height:200px;
1width:200px;display:inline-block;margin-bottom:30px;overflow:hidden;text-align:center;}.m-productStereoCrossSellUpSell__price{font-size:",";}}&.-video{height:auto;max-height:none;.wrapper{padding-top:20px;@media ","{padding:80px 0;}}}&.-signUp{.m-productStereoCrossSellUpSell__subtitle{font-size:",";}}.m-stereoProductStereoCrossSellUpSell__button{width:270px;padding-top:20px;.-addRelatedProducts{height:auto;padding:11px 20px 9px;letter-spacing:2px;text-align:left;&.-hideplusIcon{background:none;color:",";text-align:center;}.-plus{right:19px;}}}.radioButtons{margin-bottom:20px;padding-top:5px;font-size:",";line-height:1.43;.radio-container-label{color:",";}.radio-container{margin-right:20px;padding-left:30px;}}@media ","{.productCrossSell__swatch__variants,.productCrossSell__subHeader,.productCrossSell__description,.productCrossSell__price,.m-stereoProductStereoCrossSellUpSell__button,.productCrossSell__radio{order:1;}}.productImage-view{width:100%;}}"],(function(t){return!t.isWithinProductListing&&b.Z.topAndBottomWhitespace()}),(function(t){return t.theme.darkColor?t.theme.colors.WHITE:t.theme.colors.BEO_BLACK}),(function(t){return t.theme.colors.GREY5}),(function(t){return t.theme.colors.BEO_BLACK}),(function(t){var e=t.theme;return e.darkColor?e.darkColor.BACKGROUND.GREY:e.colors.GREY1}),(function(t){return t.theme.mediaQuery.medium}),(function(t){return t.theme.mediaQuery.smallMax}),(function(t){return(0,v.hO)(t.theme.fonts.lineHeight.custom.custom_8)}),(function(t){return t.theme.colors.BEO_BLACK}),(function(t){return(0,v.hO)(t.theme.fonts.fontSize.body.small.secondary)}),(function(t){return(0,v.hO)(t.theme.fonts.lineHeight.custom.custom_12)}),(function(t){return t.theme.colors.BEO_BLACK}),(function(t){return t.theme.fonts.fontSize.price}),(function(t){return t.theme.mediaQuery.medium}),(function(t){return t.theme.fonts.fontSize.heading.large.h7}),(function(t){return t.theme.colors.BEO_BLACK}),(function(t){return(0,v.hO)(t.theme.fonts.fontSize.body.small.tertiary)}),(function(t){return t.theme.colors.GREY5}),(function(t){return t.theme.mediaQuery.medium})),C=r(34869),w=r(81365),k=r(5047),_=r(71377),I=r(95739),P=r(31357),Z=r(18307),j=r(8103),O=r(75006),N=r(2463),T=r(97451),L=r(5407),B=r(41605),D=r(50813),A=r(1953),E=r(21318),H=r(48323),M=r(26891),V=r(6234),R=r(24246);function K(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function U(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?K(Object(r),!0).forEach((function(e){(0,n.Z)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):K(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function z(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=(0,h.Z)(t);if(e){var o=(0,h.Z)(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return(0,g.Z)(this,r)}}var J=function(t){(0,p.Z)(r,t);var e=z(r);function r(t){var o;return(0,l.Z)(this,r),o=e.call(this,t),(0,n.Z)((0,u.Z)(o),"getDefaultSwatchKeys",(function(t){var e=o.props.data,r=e&&e.get("swatchConfigurations"),n=e&&e.get("productDetails"),a={};if(r){var i=n&&n.get("variants");a=t?i.filter((function(e){return e.get("variantKey")===t})).getIn([0,"additionalProperties"]):n&&n.getIn(["variants","0","additionalProperties"])}return r&&(0,m.fromJS)(a)})),(0,n.Z)((0,u.Z)(o),"initalSelectedVariants",(function(){var t=o.props.data,e=t&&t.get("productDetails"),r=t&&t.get("swatchConfigurations");if(r){var n=r&&e.getIn(["variants","0","variantKey"]),a=r&&o.getDefaultSwatchKeys(n),i={};a.map((function(t,e){i[e]="object"===typeof t&&t.get("key")?t.get("key"):t})),o.state.swatchObject=i}})),(0,n.Z)((0,u.Z)(o),"getSwatchConfigKey",(function(){var t=o.state.swatchObject,e=o.props.data,r=e&&e.get("productDetails"),n=r&&r.get("variantUniqueKeys"),a=t&&Object.keys(t).map((function(e){return t[e]})),i=a&&a.join("");return n&&n.get(i)})),(0,n.Z)((0,u.Z)(o),"getVariantCarousel",(function(t){var e=o.props.data,r=e&&e.get("productDetails"),n=r&&r.get("variants"),a=n&&n.toJS(),i=a&&a.filter((function(e){return e.variantKey===t}));return i&&i.length?i[0]:a})),(0,n.Z)((0,u.Z)(o),"onVariantChange",(function(t){o.setState({selectedVariant:t-1})})),(0,n.Z)((0,u.Z)(o),"onSwatchInputChange",(function(t){t&&o.setState((function(e){return{swatchObject:U(U({},e.swatchObject),{},{Color:t})}}))})),(0,n.Z)((0,u.Z)(o),"getAnchorProps",(function(){var t=o.state,e=t.selectedVariant,r=t.swatchObject,n=o.props,a=n.data,i=n.locale,c=n.country,l=r&&o.getSwatchConfigKey(),d=r&&(0,m.fromJS)(o.getVariantCarousel(l)),u=r?d:a.getIn([e,"productDetails"]),p=u&&u.get("variantKey"),g=u&&u.get("slug"),h=g&&g.split("?")||[],f=(0,s.Z)(h,1)[0],S=u&&u.get("categorySlug");return{href:{pathname:"/[language]/[country]/[categoriesSlug]/[slug]",query:{language:i,country:c&&c.toLowerCase(),categoriesSlug:S,slug:f,variant:p}}}})),(0,n.Z)((0,u.Z)(o),"trackProductClickCall",(function(){var t=o.props,e=t.data,r=t.listName,n=o.state,a=n.selectedVariant,i=n.swatchObject,c=i&&o.getSwatchConfigKey(),s=i&&(0,m.fromJS)(o.getVariantCarousel(c)),l=i?s:e.getIn([a,"productDetails"])||e,d=e.getIn([a,"productDetails","variantKey"]),u=D.Ceb,p=r,g={};r===D.tIE&&(p=D.wo_,g={eventCategory:D.DES,eventLabel:"".concat(D.wo_,"|").concat(d),eventAction:D.JZq}),r===D.nOH&&(g={eventCategory:D.nOH,eventLabel:"".concat(D.nOH,"|").concat(d),eventAction:D.JZq}),(0,E.hq)({product:l,selectedVariant:l,variantKey:d,event:u,listName:p,quantity:1,checkConditionWithListName:!0,action:"click",eventAdditionalLabels:g})})),(0,n.Z)((0,u.Z)(o),"trackBuyAction",(function(t){if(t&&t.code===B.uhn)o.setState({productInStock:!1});else{var e=o.props,r=e.addToCartSuccessAction,n=e.data,a=o.state,i=a.selectedVariant,c=a.swatchObject,s=c&&o.getSwatchConfigKey(),l=c&&(0,m.fromJS)(o.getVariantCarousel(s)),d=c?l:n.getIn([i,"productDetails"]);r&&d&&r(d,D.JzP)}})),(0,n.Z)((0,u.Z)(o),"trackDiscoverMoreButton",(function(){var t=o.props,e=t.addToCartSuccessAction,r=t.data,n=o.state,a=n.selectedVariant,i=n.swatchObject,c=i&&o.getSwatchConfigKey(),s=i&&(0,m.fromJS)(o.getVariantCarousel(c)),l=i?s:r.getIn([a,"productDetails"]);e&&l&&e(l,D.JzP,D.F4E)})),(0,n.Z)((0,u.Z)(o),"container",(0,a.createRef)()),(0,n.Z)((0,u.Z)(o),"renderPrimaryMedia",(function(t,e){var r=t&&(null===t||void 0===t?void 0:t.get("media"))||(0,m.Map)(),n=r.get("altText"),a=o.getAnchorProps().href;return(0,R.jsx)(R.Fragment,{children:e?(0,R.jsx)(N.default,{mediaItem:t,responsive:!0,videoTitle:n}):(0,R.jsx)("div",{className:"productImage-view",children:(0,R.jsx)(k.Z,{cta:null,href:a,forceClick:!0,handleLinkClick:function(){return o.trackProductClickCall()},children:(0,R.jsx)(P.Z,{size:"large",media:r,ratio:[16,9],fit:P.Z.FIT.PAD,transparent:!0})})})})})),(0,n.Z)((0,u.Z)(o),"renderVariantSwatches",(function(t,e,r,n){var a,i=o.props,c=i.data,s=i.slnId,l=o.state,d=l.selectedVariant,u=l.swatchObject,p=c&&c.get("productDetails"),g=p&&p.get("swatchConfigurations"),h=g&&g.get("Color"),f=u&&o.getSwatchConfigKey(),S=u&&(0,m.fromJS)(o.getVariantCarousel(f)),y=u?S:c.getIn([d,"productDetails"])||c,v=y&&y.get("variantTitle");return g&&(a=h&&h.map((function(t){var e=t.get("hexCode"),r=t.get("title"),n=t.get("key");return(0,m.fromJS)({variantKey:n,name:r,value:e})}))),g||(a=c.map((function(t,r){var n=e.toLowerCase(),o="color"===n,a=t.get("productDetails"),i=a.get("variantId"),c=r+1,s=a.get("variantAttributes"),l=a.get("productId"),d=o?s.get("colorCode"):s.get("size"),u=a.get("variantTitle");return(0,m.fromJS)({variantId:i,variantKey:c,name:u,type:n,value:d,productId:l})}))),(0,R.jsxs)("div",{className:"".concat(t,"__variants"),children:[(0,R.jsx)(O.Z,{swatches:a,showInfo:r,onSelect:g?o.onSwatchInputChange:o.onVariantChange,changeOnHover:!0,slnId:"".concat(o.props.slnId,"_colorSwatch"),swatchClickDisabled:!0,isMobileSwatchClickable:!0,hidePrice
1:n}),v&&(0,R.jsx)("p",{className:"-secondary productCrossSell__subHeader","data-sln-id":"".concat(s,"_subHeader"),children:v})]})})),(0,n.Z)((0,u.Z)(o),"onRadioInputChange",(function(t,e){t&&o.setState((function(r){return{swatchObject:U(U({},r.swatchObject),{},(0,n.Z)({},e,t))}}))})),(0,n.Z)((0,u.Z)(o),"getRadioOption",(function(t){var e=o.props.data,r=o.state.swatchObject,n=e.get("productDetails").get("swatchConfigurations"),a=n&&n.get(t),i=(a?a.map((function(t){var e=t&&t.get("title"),r=t&&t.get("key");return(0,m.fromJS)({id:r,label:e})})):{}).toJS();return(0,R.jsx)("div",{className:"productCrossSell__radio",children:(0,R.jsx)(M.Z,{name:t,selected:r[t],options:i,radioBtnClass:"radioBtnClass",classname:"icn-tick-round",isPdp:"true",onChecked:o.onRadioInputChange})})})),(0,n.Z)((0,u.Z)(o),"renderDetails",(function(t){var e=o.props,r=e.data,n=e.slnId,a=e.availableQuant,i=e.stereoTitle,c=e.locale,l=e.country,d=o.state,u=d.selectedVariant,p=d.swatchObject,g=p&&o.getSwatchConfigKey(),h=p&&(0,m.fromJS)(o.getVariantCarousel(g)),f=p?h:r.getIn([u,"productDetails"])||r,S=!p&&(r&&r.getIn([u,"productImage"])),y=f&&f.get("productName"),v=r.getIn([u]),b=v.get("stereoPairTitle")||i,x=v.get("shortDescription"),C=b&&b.replace("%%ProductName%%","|".concat(y)),w=C&&C.split("|")||[],_=(0,s.Z)(w,2),I=_[0],O=_[1],N=f&&(f.get("longDescription")||f.get("variantDescription")||x),T=f&&f.get("price"),L=f&&f.getIn(["variantAttributes","stereoPairQuantity"]),B=f&&f.get("discountedPrice"),D=f&&f.get("sku"),E=a&&a.getIn(["crossSell","results"]),H=E&&E.filter((function(t){return t.get("sku")===D})),M=H&&H.getIn([0,"quantityOnStock"]),V=M&&Number(M)>0,K=f&&f.getIn(["variantAttributes","discontinued"]),U=r.size>1,z=o.getAnchorProps().href,J="";p&&(J=Object.keys(p).map((function(e){return"Color"===e?o.renderVariantSwatches("productCrossSell__swatch","color",!1,t):o.getRadioOption(e)})));return(0,R.jsxs)(R.Fragment,{children:[S&&(0,R.jsx)(k.Z,{href:z,forceClick:!0,handleLinkClick:function(){return o.trackProductClickCall()},children:(0,R.jsx)(P.Z,{media:S,size:P.Z.SIZES.XSMALL,slnId:"".concat(n,"_image"),ratio:[1,1],fit:P.Z.FIT.PAD,transparent:!0})}),I&&(0,R.jsx)("h3",{className:"h5 headTitle","data-sln-id":"".concat(n,"_headTitle"),children:I}),O&&(0,R.jsx)("h3",{className:"h5 productName","data-sln-id":"".concat(n,"_productName"),children:O}),N&&(0,R.jsx)(j.Z,{className:"productCrossSell__longDescription","data-sln-id":"".concat(n,"_description"),data:(0,m.fromJS)({description:N}),locale:c,country:l}),U&&!p&&o.renderVariantSwatches("productCrossSell__swatch","color",!1,t),J,T&&!K&&!t&&(0,R.jsx)("div",{className:"h4 -price productCrossSell__price",children:(0,R.jsx)(Z.Z,{price:T,slnId:"".concat(n,"_price"),stereoPairQuantity:L,className:"".concat(B&&"original-price"," ").concat(B&&V?"-strikePrice":""),priceCategory:B?A.z.EARLIER_PRICE:null})}),B&&!t&&!K&&V&&(0,R.jsx)("div",{className:"h4 -price productCrossSell__price -discounted-price",children:(0,R.jsx)(Z.Z,{price:B,slnId:"".concat(n,"_discountedPrice"),priceCategory:A.z.DISCOUNTED_PRICE,stereoPairQuantity:L})})]})})),(0,n.Z)((0,u.Z)(o),"renderCTA",(function(t){var e=t.productInfo,r=t.cartProps,n=t.sku,a=o.props,i=a.slnId,c=a.showCartLoader,s=a.hideCartLoaderHandler,l=a.data,d=a.stereoButtonLabel,u=a.handleShowCartPopup,p=a.setAddToBasketProdSku,g=u&&[U(U({},e),{},{relatedVariantSku:n})],h=o.state,m=h.productInStock,f=h.selectedVariant,S=l.getIn([f]).get("stereoPairBuyButtonText")||d;return(0,R.jsx)("div",{className:"m-stereoProductStereoCrossSellUpSell__button",children:m&&(0,R.jsx)(L.Z,U(U({variant:"primary",labelText:S,slnId:"".concat(i,"_buyButton"),productInfo:u?g:e},r),{},{addToCartSuccessAction:o.trackBuyAction,showCartLoader:c,hideCartLoaderHandler:s,productInStock:m,addedToCartLabel:"Added",isStereoCrossSell:!0,handleShowCartPopup:u,setAddToBasketProdSku:p,skuForBasketPopup:n}))})})),(0,n.Z)((0,u.Z)(o),"renderComingSoonButton",(function(){var t=o.props,e=t.data,r=t.locale,n=t.slnId,a=t.comingSoonLabel,i=o.state,c=i.selectedVariant,l=i.swatchObject,d=l&&o.getSwatchConfigKey(),u=l&&(0,m.fromJS)(o.getVariantCarousel(d)),p=l?u:e.getIn([c,"productDetails"]),g=p&&p.get("slug"),h=g&&g.split("?")||[],f=(0,s.Z)(h,1)[0],S=p&&p.get("variantKey"),y="comingsoon",v={href:{pathname:"/[language]/[country]/".concat(y),query:{language:r,variant:S,comingSoonSlug:y,slug:f}},forwardedAs:"/".concat(r,"/").concat(y,"/").concat(f,"/").concat(S)};return(0,R.jsx)("div",{className:"m-productStereoCrossSellUpSell__button",children:(0,R.jsx)(w.Z,U(U({cta:null},v),{}
1,{variant:"secondary",labelText:a,slnId:"".concat(n,"_comingSoon"),forceClick:!0}))})})),(0,n.Z)((0,u.Z)(o),"renderNotifyMeButton",(function(){var t=o.props,e=t.data,r=t.locale,n=t.slnId,a=t.country,i=t.notifyMeLabel,c=o.state,l=c.selectedVariant,d=c.swatchObject,u=d&&o.getSwatchConfigKey(),p=d&&(0,m.fromJS)(o.getVariantCarousel(u)),g=d?p:e.getIn([l,"productDetails"]),h=g&&g.get("slug"),f=h&&h.split("?")||[],S=(0,s.Z)(f,1)[0],y=g&&g.get("variantKey"),v="notifyme",b=a?"".concat(a.toLowerCase()):"",x={href:{pathname:"/[language]/[country]/notifyme/[productSlug]/[variant]",query:{language:r,country:b,variant:y,productSlug:S,pageSlug:v}},forwardedAs:"/".concat(r,"/").concat(b,"/").concat(v,"/").concat(S,"/").concat(y)};return(0,R.jsx)("div",{className:"m-productStereoCrossSellUpSell__button",children:(0,R.jsx)(w.Z,U(U({cta:null},x),{},{variant:"secondary",labelText:i,slnId:"".concat(n,"_notifyMeButton"),forceClick:!0}))})})),(0,n.Z)((0,u.Z)(o),"renderSignUpButton",(function(){var t=o.props,e=t.data,r=t.locale,n=t.slnId,a=t.country,i=o.state.selectedVariant,s=e.get("callToAction")||e.getIn([i,"callToAction"]),l=s&&s.get("title"),d=s&&s.get("url"),u=d&&((0,H.Sv)(d)?d:(0,c.LK)({pathname:d,query:{language:r,country:a}})),p=d&&((0,H.Sv)(d)?"_blank":"_self"),g=s&&s.get("ariaLabel"),h=null===s||void 0===s?void 0:s.get("buttonColor"),m=(null===s||void 0===s?void 0:s.get("theme"))||"secondary",f={href:u,target:p,ariaLabel:g};return(0,R.jsx)("div",{className:"m-productStereoCrossSellUpSell__button",children:(0,R.jsx)(w.Z,U(U({cta:f},f),{},{variant:m,labelText:l,slnId:"".concat(n,"signupButton"),buttonColor:h}))})})),(0,n.Z)((0,u.Z)(o),"renderDiscoverMoreButton",(function(t){var e=o.props,r=e.locale,n=e.categoryLabels,a=e.slnId,i=e.country,c=n&&n.get("discoverAllLabel"),l=t&&t.get("slug"),d=l&&l.split("?")||[],u=(0,s.Z)(d,1)[0],p=t&&t.get("variantKey"),g=t&&t.get("categorySlug"),h={pathname:"/[language]/[country]/[categoriesSlug]/[slug]",query:{language:r,country:i.toLowerCase(),categoriesSlug:g,slug:u,variant:p}};return(0,R.jsx)("div",{className:"m-productStereoCrossSellUpSell__button",children:(0,R.jsx)(w.Z,{cta:null,href:h,variant:"secondary",labelText:c,slnId:"".concat(a,"_buyButton"),onClick:o.trackDiscoverMoreButton,forceClick:!0})})})),(0,n.Z)((0,u.Z)(o),"renderCallsToAction",(function(){var t=o.props,e=t.data,r=t.withinCart,n=t.cmsLabels,a=t.isStereoPairItem,i=t.availableQuant,c=o.state,s=c.selectedVariant,l=c.swatchObject,d=l&&o.getSwatchConfigKey(),u=l&&(0,m.fromJS)(o.getVariantCarousel(d)),p=l?u:e.getIn([s,"productDetails"]),g=e.getIn([s]),h=a||g.get("isStereoPair"),f=p&&p.get("addedToCart"),S=n&&n.get("addToBasket"),y=n&&n.get("addedToCart"),v=f?"addToCart":"addToBasket",b=p&&p.get("productId"),x=p&&p.get("variantId"),C=f?y:S,w=p&&p.getIn(["price","currencyCode"]),k=p&&p.getIn(["variantAttributes","stereoPairQuantity"]),_={productId:b,quantity:k,currency:w,variantId:x,isStereoPair:h},I=p&&p.get("sku"),P=p&&p.get("showBuyButton"),Z=p&&p.get("isUpcomingVariant"),j=p&&p.get("enableNotifyMe"),O={variant:v,labelText:C,disabled:f,centered:f},N=i&&i.getIn(["crossSell","results"]),T=N&&N.filter((function(t){return t.get("sku")===I})),L=T&&T.getIn([0,"quantityOnStock"]),B=!!L&&L>=k,D=0===L;return!Z&&B&&P?o.renderCTA({productInfo:_,cartProps:r?O:null,sku:I}):j&&!B&&D?o.renderNotifyMeButton():!(!j||!Z)&&o.renderComingSoonButton()})),(0,n.Z)((0,u.Z)(o),"renderSticky",(function(t){var e=o.props,r=e.data,n=e.toggleHeader,a=e.withPromoBanner,i=e.withCountryNotification,c=e.globalMsgHeight,s=e.handleShowCartPopup,l=e.setAddToBasketProdSku,d=o.state,u=d.productInStock,p=d.selectedVariant,g=d.swatchObject,h=o.container&&o.container.current,f=h&&h.offsetHeight,S=h&&h.offsetTop,y=t&&(null===t||void 0===t?void 0:t.get("media"))||(0,m.Map)(),v=g&&o.getSwatchConfigKey(),b=g&&(0,m.fromJS)(o.getVariantCarousel(v)),x=g?b:r.getIn([p,"productDetails"])||r,C=x&&x.get("sku"),w=(0,m.fromJS)({productName:x&&x.get("productName"),price:x&&x.get("price"),currencyCode:x&&x.getIn(["price","currencyCode"]),productId:x&&x.get("productId"),variantId:x&&x.get("variantId"),variantName:x&&x.get("variantTitle")}),k=!g&&(r&&r.getIn([p,"productImage"])),_={};return _=k?{url:k.get("defaultAssetUrl"),altText:k.get("altText")}:{url:y.get("defaultAssetUrl"),altText:y.get("altText")}
1,u&&(0,R.jsx)(T.Z,{product:w,containerHeight:f,containerTop:S,toggleHeader:n,addToCartSuccessAction:o.trackBuyAction,withPromoBanner:a,withCountryNotification:i,globalMsgHeight:c,productImage:_,skuForRelatedProducts:C,handleShowCartPopup:s,setAddToBasketProdSku:l})})),o.state={productInStock:!0,selectedVariant:0},o.initalSelectedVariants(),o}return(0,d.Z)(r,[{key:"componentWillUnmount",value:function(){var t=this.props,e=t.hasSticky,r=t.toggleHeader;e&&r&&r(!0)}},{key:"render",value:function(){var t,e,r,n=this.props,o=n.className,a=n.data,i=n.hasSticky,s=n.isSignUp,l=n.slnId,d=n.pageType,u=n.hidePriceForCountries,p=n.homeCountryCookie,g=this.state,h=g.selectedVariant,f=g.swatchObject,y=f&&this.getSwatchConfigKey(),v=f&&(0,m.fromJS)(this.getVariantCarousel(y));a&&a.get("swatchConfigurations")?(e=v.getIn(["mediaItems",0]),r=a&&a.get("productDetails")):(e=a&&a.getIn([h,"primaryMedia"]),r=a&&a.getIn([h,"productDetails"]));var b="video"===(e&&(null===(t=e)||void 0===t?void 0:t.get("mediaType"))),x=r&&r.get("isOnStock"),C=r&&r.get("showBuyButton"),w=S()(o,"m-productStereoCrossSellUpSell",{"-signUp":s,"-pdp":x,"-cart":x,"-video":b}),k=d===D.Hao.PDP,P=i&&x&&C&&!k,Z=(0,c.CQ)(p,u);return(0,R.jsx)("div",{ref:this.container,className:w,children:(0,R.jsxs)(I.Z,{onIntersectionEnter:P?this.onIntersectionEnter:function(){},onIntersectionLeave:P?this.onIntersectionLeave:function(){},multiple:[I.Z.MULTIPLE.ENTRIES,I.Z.MULTIPLE.EXITS],threshold:.2,children:[P&&this.renderSticky(e),(0,R.jsx)("div",{className:"m-productStereoCrossSellUpSell__wrapper focus-styling",children:(0,R.jsx)(_.Z,{children:(0,R.jsxs)("div",{className:"row","data-sln-id":"".concat(l,"_container"),children:[(0,R.jsx)("div",{className:"m-productStereoCrossSellUpSell__media col-xs-12 col-md-7",children:this.renderPrimaryMedia(e,b)}),(0,R.jsxs)("div",{className:"m-productStereoCrossSellUpSell__details col-xs-12 col-md-3 col-md-offset-1",children:[this.renderDetails(Z),this.renderCallsToAction()]})]})})})]})})}}]),r}(a.PureComponent);J.displayName="StereoPairingCrossSell",J.defaultProps={hasSticky:!1,isCategoryPage:!1,isWithinCart:!1,isSignUp:!1,withPromoBanner:!1,withCountryNotification:!1,globalMsgHeight:{expressNotificationBannerHeight:0,countryNotificationHeight:0},toggleSupportingNav:function(){}};var Q=(0,V.Z)(J),q=(0,C.Z)(Q,x),G=["data","getVariantStockAvailability","availableQuant","locale","cmsLabels","country","handleShowCartPopup","setAddToBasketProdSku","notifyMeLabel","comingSoonLabel"];function F(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Y(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?F(Object(r),!0).forEach((function(e){(0,n.Z)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):F(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var W=(0,a.memo)((function(t){var e=t.data,r=t.getVariantStockAvailability,n=t.availableQuant,i=t.locale,s=t.cmsLabels,l=t.country,d=t.handleShowCartPopup,u=t.setAddToBasketProdSku,p=t.notifyMeLabel,g=t.comingSoonLabel,h=(0,o.Z)(t,G),m=function(t){var e=t.getIn(["variants"]),n=t.getIn(["productDetails","sku"]);e&&e.size>0?(n=e.map((function(t){return t.get("sku")})).toJS(),r(n,"crossSell")):r([n],"crossSell")};(0,a.useEffect)((function(){e.get("isStereoPair")?m(e):e.map((function(t){m(t)}))}),[]);var f=e&&e.getIn([0,"withPromoBanner"]),S=e&&e.getIn([0,"withCountryNotification"]),y=e&&e.getIn([0,"globalMsgHeight"]),v=e.size>1?e:e.get(0),b=v&&v.get("stereoPairTitle"),x=v&&v.get("stereoPairBuyButtonText"),C=v&&v.get("isStereoPair"),w=(0,c.nr)(v);return(0,R.jsx)(q,Y(Y({data:w},h),{},{comingSoonLabel:g,notifyMeLabel:p,availableQuant:n,withPromoBanner:f,withCountryNotification:S,globalMsgHeight:y,stereoTitle:b,stereoButtonLabel:x,slnId:"".concat("atm_Stereo","_CrossSellUpSell"),locale:i,cmsLabels:s,isStereoPairItem:C,country:l,handleShowCartPopup:d,setAddToBasketProdSku:u}))})),X=(0,V.Z)(W),$=(0,i.connect)((function(t){return{locale:t.getIn(["global","globalData","userlanguage"]),country:t.getIn(["global","globalData","country"]),notifyMeLabel:t.getIn(["global","cmsData","Global","notifyMe"]),comingSoonLabel:t.getIn(["global","cmsData","Global","comingSoon"])}}),null)(X)}
1,64181:function(t,e,r){var n=r(85193).Z.colors;e.Z=function(){return"\n  .original-price {\n    position: relative;\n    color: ".concat(n.GREY5,";\n  }\n\n  .discounted-price {\n    color: ").concat(n.BEO_BLACK,";\n  }\n")}}}]);

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.