PageSourceSearch

https://www.bang-olufsen.com/_next/static/chunks/6770.2b02007697f89197.js

js bang-olufsen.com collected 2026-10-09 22:42:32 UTC 13,158 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6770,9826,8771,484,5905,7670,2505,8629,3155],{6819:function(e,t,o){"use strict";o.d(t,{Z:function(){return h}});var n=o(90849),i=o(60042),r=o.n(i),a=o(27378),s=o(2463),c=o(48500),l=o(6234),u=o(34869),d=(0,o(41408).iv)(["&.a-richMediaVideo{position:relative;width:100%;height:100%;&.setRatio{aspect-ratio:1/1;}.pause-button-wrapper{position:absolute;width:32px;height:32px;right:16px;bottom:16px;background-color:",";z-index:",";border-radius:50%;@media ","{width:45px;height:45px;}&.show-btn{visibility:visible;}&.hide-btn{visibility:hidden;}&.-isSmallBtn{width:32px;height:32px;.-playPauseA11yButton{width:32px;height:32px;}}}&.has-sticky-play-pause{.m-videoPlayer{position:absolute;inset:0;}.pause-button-track{position:sticky;top:0;height:100vh;width:100%;pointer-events:none;z-index:",";.pause-button-wrapper{pointer-events:auto;}}}&.isCarouselVideo{.pause-button-wrapper{@media ","{bottom:36px;}@media ","{bottom:8.5%;}}}.-playPauseA11yButton{z-index:",";position:absolute;bottom:50%;right:50%;display:block;width:32px;height:32px;cursor:pointer;background-color:transparent;transform:translate(50%,50%);border-radius:50%;@media ","{width:45px;height:45px;}&.-pause{background-image:url('/static-assets/images/common/video-pause-button.svg');background-position:center;background-repeat:no-repeat;}&.-play{background-image:url('/static-assets/images/common/video-play-button.svg');background-position:center;background-repeat:no-repeat;}.vjs-control-text{visibility:hidden;}}}"],(function(e){return"".concat(e.theme.colors.BEO_BLACK,"66")}),(function(e){return e.theme.zIndex.zCookiePopup}),(function(e){return e.theme.mediaQuery.medium}),(function(e){return e.theme.zIndex.zCookiePopup}),(function(e){return e.theme.mediaQuery.small}),(function(e){return e.theme.mediaQuery.medium}),(function(e){return e.theme.zIndex.zVideo}),(function(e){return e.theme.mediaQuery.medium})),p=o(41605),m=o(24246);function v(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 f(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?v(Object(o),!0).forEach((function(t){(0,n.Z)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):v(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}var g=(0,l.Z)((function(e){var t,o=e.backgroundVideo,n=e.className,i=e.isRichMediaVideoOnCategoryPageProductCardCarousel,l=e.ratio,u=e.storyAutoPlayed,d=e.parentRef,v=e.isSmallBtn,g=e.isCarouselVideo,h=e.videoInlineStyles,b=e.alwaysShowPlayPauseButton,y=e.enableStickyPlayPauseButton,x=void 0!==y&&y,j=e.enableFullScreenOnClick,w=void 0!==j&&j,O=(0,a.useState)(!1),P=O[0],k=O[1],C=(0,a.useState)(!1),L=C[0],E=C[1],S=(0,a.useRef)(null),I=function(e){e.stopPropagation(),i&&e.preventDefault(),t()},N=function(e){var t=null===S||void 0===S?void 0:S.current,o=null===t||void 0===t?void 0:t.getElementsByClassName("pause-button-wrapper"),n=o&&(null===o||void 0===o?void 0:o.length)&&o[0];n&&!t.contains(e.relatedTarget)&&(n.classList.remove("show-btn"),n.classList.add("hide-btn"))};(0,a.useEffect)((function(){var e=null===S||void 0===S?void 0:S.current;return e.addEventListener("focusout",N),function(){e.removeEventListener("focusout",N)}}),[]);var z=function(){var e=null===S||void 0===S?void 0:S.current,t=null===e||void 0===e?void 0:e.getElementsByClassName("pause-button-wrapper"),o=t&&(null===t||void 0===t?void 0:t.length)&&t[0];o&&(o.classList.remove("hide-btn"),o.classList.add("show-btn"))};(0,a.useEffect)((function(){var e=null===d||void 0===d?void 0:d.current;return e&&(e.addEventListener("mouseover",z),e.addEventListener("mouseout",N)),function(){e&&(e.addEventListener("mouseover",z),e.addEventListener("mouseout",N))}}),[]);var A=null===o||void 0===o?void 0:o.getIn(["media","defaultAssetUrl"]),M=u||(null===o||void 0===o?void 0:o.getIn(["media","autoPlay"])),V=null===o||void 0===o?void 0:o.getIn(["media","enableLoop"]),Z=u||(null===o||void 0===o?void 0:o.getIn(["media","autoPlay"])),B={mediaItem:o,trackVideo:!1,controls:!Z},_=L||b?"show-btn":"hide-btn",H=r()(n,"a-richMediaVideo",{setRatio:l,isCarouselVideo:g,"has-sticky-play-pause":x&&Z}),D=g?-1:0;return(0,m.jsxs)("div",{className:H,ref:S,onMouseOver:function(e){e.stopPropagation(),L||E(!0)},onMouseLeave:function(e){e.stopPropagation(),L&&E(!1)},tabIndex:D,onFocus:function(e){return z()},role:"group","aria-label":"Rich Media Video",children:[Z&&function(){var e=(0,m.jsx)("div",{className:"pause-button-wrapper ".concat(_," ").concat(v?"
1-isSmallBtn":""),tabIndex:D,role:"button",onClick:I,onKeyUp:function(e){return(null===e||void 0===e?void 0:e.keyCode)===p.q70&&I(e)},"aria-pressed":!P,"aria-label":P?p.VOb:p.eWc,children:(0,m.jsx)(c.Z,{isPaused:P,tabIndex:"-1"})});return x?(0,m.jsx)("div",{className:"pause-button-track",children:e}):e}(),(0,m.jsx)(s.default,f(f({className:"-staggerIn -stagger0",autoplay:M,loop:V,setPlayPauseOptions:function(e){t=e},setPlayPauseState:function(e){k(e)},isRichMediaVideoOnCategoryPageProductCardCarousel:i,videoInlineStyles:h},B),{},{enableFullScreenOnClick:w}),A)]})})),h=(0,u.Z)(g,d)},84596:function(e,t,o){"use strict";o.d(t,{Z:function(){return n.Z}});var n=o(6819)},75628:function(e,t,o){"use strict";o.r(t),o.d(t,{default:function(){return x}});var n=o(90849),i=o(27378),r=o(41408),a=function(e){return e.textColor||e.theme.colors.BEO_BLACK},s=(0,r.iv)(["&.m-recommendedStory{position:relative;margin-top:60px;margin-bottom:60px;background:",";.a-container{background:",";}.image-wrapper{position:relative;width:100%;overflow:hidden;aspect-ratio:13/10;@media ","{aspect-ratio:8/5;}@media ","{max-width:300px;
1min-width:200px;}@media ","{margin:auto;}&.-isHover{img{transform:",";}}img{transition:transform "," ",";&:hover,&:active,&:focus{transform:",";}}}.title{margin-bottom:16px;text-align:left;color:",";}.content-wrapper{display:flex;align-items:center;.storyTitle{color:",";margin-bottom:0;}}}"],(function(e){return e.backgroundColor||e.theme.colors.WHITE}),(function(e){return e.backgroundColor||e.theme.colors.WHITE}),(function(e){return e.theme.mediaQuery.small}),(function(e){return e.theme.mediaQuery.large}),(function(e){return e.theme.mediaQuery.quadHighDefinition}),(function(e){return e.theme.scale.scaleImageHover}),(function(e){return e.theme.duration.normal}),(function(e){return e.theme.easing.easeOutQuart}),(function(e){return e.theme.scale.scaleImageHover}),a,a),c=o(34869),l=o(71377),u=o(5047),d=o(34919),p=o(6234),m=o(50813),v=o(21318),f=o(84596),g=o(24246);function h(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 b(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?h(Object(o),!0).forEach((function(t){(0,n.Z)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):h(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}var y=(0,p.Z)((function(e){var t=e.data,o=e.className,n=e.locale,r=e.country,a=e.slnId,s=e.section,c=e.title,p=e.pageType,h=(0,i.useRef)(null),y=null===t||void 0===t?void 0:t.get("title"),x=null===t||void 0===t?void 0:t.get("slug"),j=null===t||void 0===t?void 0:t.get("landscape"),w=null===t||void 0===t?void 0:t.getIn(["landscape","media"]),O=null===t||void 0===t?void 0:t.getIn(["landscape","mediaType"]),P=null===t||void 0===t?void 0:t.getIn(["tags","0","key"]),k=null===t||void 0===t?void 0:t.get("corporateParentPage"),C=k?{href:{pathname:"/[language]/[country]/[slug]/[tag]/[corporateDetailSlug]",query:{slug:k,language:n,country:null===r||void 0===r?void 0:r.toLowerCase(),tag:P,corporateDetailSlug:x}}}:{href:{pathname:"/[language]/[country]/story/[slug]",query:{slug:x,language:n,country:null===r||void 0===r?void 0:r.toLowerCase()}}};return(0,g.jsx)("div",{className:"".concat(o," m-recommendedStory"),"data-sln-id":"".concat(a,"_container"),children:(0,g.jsx)(l.Z,{children:(0,g.jsx)("div",{className:"row",children:(0,g.jsx)("div",{className:"col-xs-12 col-sm-8 col-sm-offset-2 col-md-6 col-md-offset-3",children:(0,g.jsx)("div",{className:"m-recommendedStory__wrapper",onMouseEnter:function(){return function(){var e=null===h||void 0===h?void 0:h.current;e&&null!==e&&void 0!==e&&e.classList&&e.classList.add("-isHover")}()},onMouseLeave:function(){return function(){var e,t=null===h||void 0===h?void 0:h.current;null!==t&&void 0!==t&&null!==(e=t.classList)&&void 0!==e&&e.contains("-isHover")&&t.classList.remove("-isHover")}()},children:(0,g.jsxs)(u.Z,b(b({cta:null},C),{},{slnId:"".concat(a,"_").concat(s,"_cta"),handleLinkClick:function(){var e={event:m.cHh,eventCategory:p,eventAction:"".concat(m.Lfs,"_").concat(m.dVX),eventLabel:"".concat(m.a4r," : ").concat(y)};(0,v.q8)(e)},forceClick:!0,children:[(0,g.jsx)("div",{className:"row",children:(0,g.jsx)("div",{className:"col-xs-12 col-sm-11 col-md-10",children:c&&(0,g.jsx)("p",{className:"title h5",children:c})})}),(0,g.jsxs)("div",{className:"row",children:[(0,g.jsx)("div",{className:"col-xs-4",children:(0,g.jsx)("div",{className:"image-wrapper",ref:h,children:"video"===O?(0,g.jsx)(f.Z,{backgroundVideo:j,isRichMediaVideoOnCategoryPageProductCardCarousel:!0,storyAutoPlayed:!0,isSmallBtn:!0}):(0,g.jsx)(d.Z,{showShimmer:!0,className:"filterTab_content__img",objectFit:"cover",layout:"fill",contentfulImage:!0,media:w})})}),(0,g.jsx)("div",{className:"col-xs-8 content-wrapper",children:y&&(0,g.jsx)("p",{className:"storyTitle h4",children:y})})]})]}))})})})})})})),x=(0,c.Z)((0,r.Zz)(y),s)},48500:function(e,t,o){"use strict";o.d(t,{Z:function(){return a}});var n=o(41605),i=o(51321),r=o(24246),a=function(e){var t=e.isPaused,o=e.onClick,a=e.onKeyUp,s=e.tabIndex,c=e.playLabel,l=e.pauseLabel;return(0,r.jsxs)("button",{className:"-playPauseA11yButton ".concat(t?"-play":"-pause"),type:"button",title:t?i.F.PLAY:i.F.PAUSE,"aria-pressed":!t,"aria-label":t?c||n.VOb:l||n.eWc,onClick:function(e){o&&o(e)},onKeyUp:function(e){a&&a(e)},tabIndex:s,children:[(0,r.jsx)("span",{"aria-hidden":"true",className:"vjs-icon-placeholder"}),(0,r.jsx)("div",{"aria-live":"assertive",role:"alert","aria-atomic":"true",children:(0,r.jsx)("span",{className:"vjs-control-text",children:t?i.F.PLAY:i.F.PAUSE})})]})}},20484:function(e){"undefined"!==typeof e.exports&&(e.exports=function(e){"use strict";var t=navigator.userAgent.indexOf("Edge/")>=0,o=new Image,n="object-fit"in o.style&&!t,i="object-position"in o.style&&!t,r=/(object-fit|object-position)\s*:\s*([-\w\s%]+)/g;function a(e){for(var t=getComputedStyle(e).fontFamily,o=null,n={};null!==(o=r.exec(t));)n[o[1]]=o[2];return n["object-position"]?function(e){~e["object-position"].indexOf("left")?e["object-position-x"]="left":~e["object-position"].indexOf("right")?e["object-position-x"]="right":e["object-position-x"]="center";~e["object-position"].indexOf("top")?e["object-position-y"]="top":~e["object-position"].indexOf("bottom")?e["object-position-y"]="bottom":e["object-position-y"]="center";return e}(n):n}function s(e,t){if("fill"!==t["object-fit"]){var o=e.style,n=window.getComputedStyle(e),i=document.createElement("object-fit");i.appendChild(e.parentNode.replaceChild(i,e));var r={height:"100%",width:"100%",boxSizing:"content-box",display:"inline-block",overflow:"hidden"};for(var a in"backgroundColor backgroundImage borderColor borderStyle borderWidth bottom fontSize lineHeight left op
1acity margin position right top visibility".replace(/\w+/g,(function(e){r[e]=n[e]})),r)i.style[a]=r[a];o.border=o.margin=o.padding=0,o.display="block",o.opacity=1,e.addEventListener("loadedmetadata",s),window.addEventListener("optimizedResize",s),e.readyState>=1&&(e.removeEventListener("loadedmetadata",s),s())}function s(){var n=e.videoWidth/e.videoHeight,r=i.clientWidth,a=i.clientHeight,s=r/a,c=0,l=0;o.marginLeft=o.marginTop=0,(n<s?"contain"===t["object-fit"]:"cover"===t["object-fit"])?(c=a*n,l=r/n,o.width=Math.round(c)+"px",o.height=a+"px","left"===t["object-position-x"]?o.marginLeft=0:"right"===t["object-position-x"]?o.marginLeft=Math.round(r-c)+"px":o.marginLeft=Math.round((r-c)/2)+"px"):(l=r/n,o.width=r+"px",o.height=Math.round(l)+"px","top"===t["object-position-y"]?o.marginTop=0:"bottom"===t["object-position-y"]?o.marginTop=Math.round(a-l)+"px":o.marginTop=Math.round((a-l)/2)+"px"),e.autoplay&&e.play()}}n&&i||(function(e){var t=-1;e?"length"in e||(e=[e]):e=document.querySelectorAll("video");for(;e[++t];){var o=a(e[t]);(o["object-fit"]||o["object-position"])&&(o["object-fit"]=o["object-fit"]||"fill",s(e[t],o))}}(e),function(e,t,o){o=o||window;var n=!1,i=null;try{i=new CustomEvent(t)}catch(a){(i=document.createEvent("Event")).initEvent(t,!0,!0)}var r=function(){n||(n=!0,requestAnimationFrame((function(){o.dispatchEvent(i),n=!1})))};o.addEventListener(e,r)}("resize","optimizedResize"))})}}]);

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.