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OAAOF,IAAI+G,aAAavG,cAAcC,SAASI,IAE7Cd,EAAE,+BAAgCc,GAAO3B,SAC3Ca,EAAE,+BAAgCc,GAAO2E,MAAK,WAC5CjC,EAAYxD,EAAE0F,MAChB,IACkB,oBAAP7C,IACT7C,EAAEkH,UArQI,sCAqQa,WAAa,IAGtC,IACA/G,OAAOF,IAAIkH,QAAQ1G,cAAcC,UAAS,WACxC8E,IACAxF,EAAE,kCAAkCyF,MAAK,WACvCd,EAAiB3E,EAAE0F,MACrB,IACA1F,EAAE,qDAAqDyF,MAAK,WA1P9D,IAAsB/B,EAGhB0D,EAFAtC,EACAE,EAEAqC,EAJgB3D,EA2PL1D,EAAE0F,MA1PbZ,EAAIpB,EAAQG,KAAK,SACjBmB,EAAItB,EAAQG,KAAK,UAEjBwD,EAAKrH,EAAEG,QAAQmH,aACTrD,IAANa,QAAyBb,IAANe,GAAmBtB,EAAQvE,SAChDiI,EAAOtC,EAAIE,EAEXA,GADAF,EAAIuC,GACID,EACR1D,EAAQG,KAAK,QAASiB,GACtBpB,EAAQG,KAAK,SAAUmB,IAErBtB,EAAQ6B,SAAS3E,IACnB8C,EAAQ4B,YAAY1E,EA+OtB,GACF,IACIT,OAAOoH,SAASC,KAAKzF,QAAQ,iBAAmB,GAAK/B,EAAE,iBAAiBb,QAC1EsI,aAAY,WACVzH,EAAE,iBAAiByF,MAAK,WAEtB5E,EADYb,EAAE0F,MAEhB,GACF,GAAG,IAEP,G","sources":["webpack://bernafon/./js/feature/component-intro-banner.js"],"sourcesContent":["function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\n// Intro Banner config\n(function ($, DGS) {\n window.DGS.Components = window.DGS.Components || {};\n window.DGS.Components.IntroBanner = window.DGS.Components.IntroBanner || {};\n window.DGS.Components.IntroBanner.overflowSelector = '.inner-pos-wrapper';\n window.DGS.Components.IntroBanner.pendingEmbeddedVideos = [];\n window.DGS.OnLoad.getInstance().register(function () {\n window.DGS.WaitForLoad.getInstance().register($('.intro-banner'));\n var IMAGE_LOADED = 'imageLoaded';\n var ytApi = 'https://www.youtube.com/iframe_api';\n var hiddenClass = 'hidden';\n function testForFallback($this) {\n var video = $('video', $this);\n var iframe = $('iframe', $this);\n function supportsVideo() {\n return !!document.createElement('video').canPlayType;\n }\n function iframeIsBlockedByGDPR() {\n if (!window.CookieConsent) return false;\n var consent = window.CookieInformation.getConsentGivenFor('cookie_cat_marketing');\n return !consent;\n }\n if (!supportsVideo() || !video.length && !iframe.length || iframe.length && iframeIsBlockedByGDPR() || window.DGS.UserAgent.getInstance().mobileTabletCheck()) {\n $this.addClass('img-fallback');\n } else if (video.length) {\n video[0].play();\n video[0].muted = true;\n }\n }\n function resizeIframe($iframe) {\n var w = $iframe.attr('width');\n var h = $iframe.attr('height');\n var prop;\n var wW = $(window).width();\n if (w !== undefined && h !== undefined && $iframe.length) {\n prop = w / h;\n w = wW;\n h = w / prop;\n $iframe.attr('width', w);\n $iframe.attr('height', h);\n }\n if ($iframe.hasClass(hiddenClass)) {\n $iframe.removeClass(hiddenClass);\n }\n }\n function youTubeGetID(url) {\n var ID = '';\n url = url.replace(/(>|<)/gi, '').split(/(vi\\/|v=|\\/v\\/|youtu\\.be\\/|\\/embed\\/)/);\n if (url[2] !== undefined) {\n ID = url[2].split(/[^0-9a-z_-]/i);\n var _ID = ID;\n var _ID2 = _slicedToArray(_ID, 1);\n ID = _ID2[0];\n } else {\n ID = url;\n }\n return ID;\n }\n function getQueryVariable(variable, query) {\n if (!query) {\n return false;\n }\n var n = query.indexOf('?');\n var attributes = query.substring(n + 1);\n var vars = attributes.split('&');\n for (var i = 0; i < vars.length; i += 1) {\n var pair = vars[i].split('=');\n if (pair[0] === variable) {\n return pair[1];\n }\n }\n return false;\n }\n function setupPlayer(iframeId, id, videoControls, playlist, loop, rel, showInfo, soundOn) {\n // eslint-disable-next-line no-undef, no-unused-vars\n var player = new YT.Player(iframeId, {\n videoId: id,\n playerVars: {\n autoPlay: 1,\n controls: videoControls,\n playlist: playlist,\n loop: loop,\n rel: rel,\n showInfo: showInfo\n },\n events: {\n onReady: function onReady(e) {\n if (soundOn !== 1) {\n e.target.mute();\n }\n e.target.playVideo();\n }\n }\n });\n }\n function addEventsTo(element) {\n var $iframe = element.find('iframe');\n var src = $iframe.attr('src');\n if (!src) return;\n var autoPlay = getQueryVariable('autoplay', src);\n var controls = getQueryVariable('controls', src);\n var playlist = getQueryVariable('playlist', src);\n var loop = getQueryVariable('loop', src);\n var rel = getQueryVariable('rel', src);\n var showinfo = getQueryVariable('showinfo', src);\n var soundOn = element.data('sound');\n if ($iframe.length && soundOn !== 1) {\n if (src.indexOf('youtube') !== -1 && autoPlay === '1') {\n var id = youTubeGetID(src);\n var iframeId = $iframe.attr('id');\n\n // add new div and hide to avoid visible resizing (hiddenClass removed in resizeIframe)\n element.append(\"
\"));\n\n // remove original iframe as the events were never fired here\n $iframe.remove();\n var videoControls = controls === '1' ? 1 : 0;\n\n // reimplement video in order to use onReady event\n try {\n setupPlayer(iframeId, id, videoControls, playlist, loop, rel, showinfo, soundOn);\n } catch (error) {\n window.DGS.Components.IntroBanner.pendingEmbeddedVideos.push({\n iframeId: iframeId,\n id: id,\n videoControls: videoControls,\n playlist: playlist,\n loop: loop,\n rel: rel,\n showinfo: showinfo,\n soundOn: soundOn\n });\n window.onYouTubeIframeAPIReady = function () {\n window.DGS.Components.IntroBanner.pendingEmbeddedVideos.forEach(function (pendingVideo) {\n setupPlayer(pendingVideo.iframeId, pendingVideo.id, pendingVideo.videoControls, pendingVideo.playlist, pendingVideo.loop, pendingVideo.rel, pendingVideo.showinfo, pendingVideo.soundOn);\n });\n };\n }\n } else if (src.indexOf('23video') !== -1 && src.indexOf('autoMute') === -1) {\n var sep = src.indexOf('?') === -1 ? '?' : '&';\n $iframe.attr('src', \"\".concat(src + sep, \"autoMute=1\"));\n }\n }\n }\n function handleForcedSize($this) {\n var $img = $('.intro-banner-image img', $this);\n var $video = $('.intro-banner-video', $this);\n var w = $img.outerWidth();\n var h = $img.outerHeight();\n var vw = $video.outerWidth();\n var vh = $video.outerHeight();\n var ww = $(window).outerWidth();\n var whProp = h / w;\n var wwhProp = h / ww;\n var vwhProp = vh / vw;\n if (whProp >= wwhProp) {\n $this.addClass('wide-image');\n $this.removeClass('tall-image');\n } else {\n $this.removeClass('wide-image');\n $this.addClass('tall-image');\n }\n if (!$this.hasClass('img-fallback')) {\n if (vwhProp >= wwhProp) {\n $this.addClass('wide-video');\n $this.removeClass('tall-video');\n } else {\n $this.removeClass('wide-video');\n $this.addClass('tall-video');\n }\n }\n }\n function onImageLoadComplete($this) {\n if ($this.hasClass('semi-full-height')) handleForcedSize($this);\n window.DGS.Overflow.getInstance().register($this, $(window.DGS.Components.IntroBanner.overflowSelector, $this), function () {\n // because the US theme wants to force the content of intro-banners to overflow at the same viewport width we add a class to force the overflow.\n if ($this.hasClass('force-overflow')) return true;\n var $stickyDownlink = $('.sticky-downlink', $this);\n var $innerPosWrapper = $('.inner-pos-wrapper', $this);\n var rect1 = $innerPosWrapper[0].getBoundingClientRect();\n var rect2;\n if ($stickyDownlink.length) {\n rect2 = $stickyDownlink[0].getBoundingClientRect();\n if (!(rect1.right < rect2.left || rect1.left > rect2.right || rect1.bottom < rect2.top || rect1.top > rect2.bottom)) {\n return true;\n }\n }\n return false;\n });\n if ($this.hasClass('has-list-spot')) {\n window.DGS.Overflow.getInstance().register($this, $('.intro-banner-list-spot-content', $this), function () {\n var $textContainer = $('.inner-pos-wrapper .intro-banner-text', $this);\n var $linkTextContainer = $('.inner-pos-wrapper .intro-banner-link', $this);\n var $listSpotContent = $('.intro-banner-list-spot-container', $this);\n var rect1 = $textContainer[0].getBoundingClientRect();\n var rect2 = $listSpotContent[0].getBoundingClientRect();\n if (!$textContainer.length || !$listSpotContent.length) {\n return false;\n }\n if (rect1.height > 0 && !(rect1.right < rect2.left || rect1.left > rect2.right || rect1.bottom < rect2.top || rect1.top > rect2.bottom)) {\n return true;\n }\n if (!$linkTextContainer.length) return false;\n rect1 = $linkTextContainer[0].getBoundingClientRect();\n if (rect1.height > 0 && !(rect1.right < rect2.left || rect1.left > rect2.right || rect1.bottom < rect2.top || rect1.top > rect2.bottom)) {\n return true;\n }\n return false;\n });\n }\n if ($this.hasClass('carousel-slide')) {\n // trigger event so Carousel knows to update its positioning.\n DGS.Event.getInstance().trigger(IMAGE_LOADED);\n }\n window.DGS.LoadComplete.getInstance().register($this);\n }\n function checkForMobileImage() {\n $('.intro-banner').each(function () {\n var $this = $(this);\n var $bannerImage = $('.intro-banner-image', $this);\n var hasMobileImage = $bannerImage.data('mobileImage') !== undefined;\n if (hasMobileImage) {\n var $img = $('img', $this);\n if (window.innerWidth < 768) {\n if ($bannerImage.data('desktopImage') === undefined) {\n // preserve our desktop-image data\n var imgurl = $img.attr('src');\n // cleans url so it doesn't re-download it if the user goes back to a non-mobile breakpoint\n var _imgurl$split$0$split = imgurl.split('?')[0].split('#');\n var _imgurl$split$0$split2 = _slicedToArray(_imgurl$split$0$split, 1);\n imgurl = _imgurl$split$0$split2[0];\n $bannerImage.data('desktopImage', imgurl);\n $bannerImage.data('desktopImageHeight', $img.attr('height'));\n $bannerImage.data('desktopImageWidth', $img.attr('width'));\n $bannerImage.data('desktopImageAltText', $img.attr('alt'));\n }\n $img.attr('height', $bannerImage.data('mobileImageHeight'));\n $img.attr('width', $bannerImage.data('mobileImageWidth'));\n $img.attr('alt', $bannerImage.data('mobileImageAltText'));\n $img.attr('src', $bannerImage.data('mobileImage'));\n } else if ($bannerImage.data('desktopImage') !== undefined) {\n $img.attr('height', $bannerImage.data('desktopImageHeight'));\n $img.attr('width', $bannerImage.data('desktopImageWidth'));\n $img.attr('alt', $bannerImage.data('desktopImageAltText'));\n $img.attr('src', $bannerImage.data('desktopImage'));\n }\n }\n });\n }\n checkForMobileImage();\n $('.intro-banner').each(function () {\n var $this = $(this);\n var $img = $('.intro-banner-image img', $this);\n testForFallback($this);\n if ($this.hasClass('pos-bottom') && $('.sticky-downlink', $this).length) {\n $('.inner-pos-wrapper', $this).css('margin-bottom', '6em');\n }\n if ($img.length) {\n window.DGS.ImageComplete.getInstance().register($img, function () {\n onImageLoadComplete($this);\n });\n } else {\n $(this).addClass('no-image');\n window.DGS.LoadComplete.getInstance().register($this);\n }\n if ($('.intro-banner-video-external', $this).length) {\n $('.intro-banner-video-external', $this).each(function () {\n addEventsTo($(this));\n });\n if (typeof YT === 'undefined') {\n $.getScript(ytApi, function () {});\n }\n }\n });\n window.DGS.Resizer.getInstance().register(function () {\n checkForMobileImage();\n $('.intro-banner.semi-full-height').each(function () {\n handleForcedSize($(this));\n });\n $('.intro-banner .intro-banner-video-external iframe').each(function () {\n resizeIframe($(this));\n });\n });\n if (window.location.href.indexOf('sc_mode=edit') > -1 && $('.intro-banner').length) {\n setInterval(function () {\n $('.intro-banner').each(function () {\n var $this = $(this);\n testForFallback($this);\n });\n }, 1000);\n }\n });\n})(jQuery, window.DGS);"],"names":["_slicedToArray","r","e","Array","isArray","_arrayWithHoles","l","t","Symbol","iterator","n","i","u","a","f","o","call","next","Object","done","push","value","length","return","_iterableToArrayLimit","_arrayLikeToArray","toString","slice","constructor","name","from","test","_unsupportedIterableToArray","TypeError","_nonIterableRest","$","DGS","jQuery","window","Components","IntroBanner","overflowSelector","pendingEmbeddedVideos","OnLoad","getInstance","register","WaitForLoad","hiddenClass","testForFallback","$this","video","iframe","document","createElement","canPlayType","CookieConsent","CookieInformation","getConsentGivenFor","UserAgent","mobileTabletCheck","addClass","play","muted","getQueryVariable","variable","query","indexOf","vars","substring","split","pair","setupPlayer","iframeId","id","videoControls","playlist","loop","rel","showInfo","soundOn","YT","Player","videoId","playerVars","autoPlay","controls","events","onReady","target","mute","playVideo","addEventsTo","element","$iframe","find","src","attr","url","showinfo","data","undefined","replace","append","concat","remove","error","onYouTubeIframeAPIReady","forEach","pendingVideo","sep","handleForcedSize","$img","$video","w","outerWidth","h","outerHeight","vw","vh","wwhProp","vwhProp","removeClass","hasClass","checkForMobileImage","each","this","$bannerImage","innerWidth","imgurl","_imgurl$split$0$split","css","ImageComplete","Overflow","rect2","$stickyDownlink","rect1","getBoundingClientRect","right","left","bottom","top","$textContainer","$linkTextContainer","$listSpotContent","height","Event","trigger","LoadComplete","onImageLoadComplete","getScript","Resizer","prop","wW","width","location","href","setInterval"],"sourceRoot":""}