1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([["media"],{
vendor: 196 bytes, line 1
1"../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js":(y,l,e)=>{e.d(l,{A:()=>i});function i(n,s){(s==null||s>n.length)&&(s=n.length);for(var d=0,r=Array(s);d<s;d++)r[d]=n[d];return r}},
vendor: 220 bytes, line 1
1"../node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js":(y,l,e)=>{e.d(l,{A:()=>n});var i=e("../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js");function n(s){if(Array.isArray(s))return(0,i.A)(s)}},
vendor: 198 bytes, line 1
1"../node_modules/@babel/runtime/helpers/esm/iterableToArray.js":(y,l,e)=>{e.d(l,{A:()=>i});function i(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}},
vendor: 263 bytes, lines 1-2
1"../node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js":(y,l,e)=>{e.d(l,{A:()=>i});function i(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 2In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}},
vendor: 456 bytes, line 2
2"../node_modules/@babel/runtime/helpers/esm/toConsumableArray.js":(y,l,e)=>{e.d(l,{A:()=>r});var i=e("../node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js"),n=e("../node_modules/@babel/runtime/helpers/esm/iterableToArray.js"),s=e("../node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js"),d=e("../node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js");function r(c){return(0,i.A)(c)||(0,n.A)(c)||(0,s.A)(c)||(0,d.A)()}},
vendor: 462 bytes, line 2
2"../node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js":(y,l,e)=>{e.d(l,{A:()=>n});var i=e("../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js");function n(s,d){if(s){if(typeof s=="string")return(0,i.A)(s,d);var r={}.toString.call(s).slice(8,-1);return r==="Object"&&s.constructor&&(r=s.constructor.name),r==="Map"||r==="Set"?Array.from(s):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?(0,i.A)(s,d):void 0}}},
2"./lib/components/media/index.js":(y,l,e)=>{e.r(l),e.d(l,{default:()=>v});var i=e("../node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js"),n=e("../node_modules/@babel/runtime/helpers/esm/toConsumableArray.js"),s=e("../node_modules/@babel/runtime/helpers/esm/classCallCheck.js"),d=e("../node_modules/@babel/runtime/helpers/esm/createClass.js"),r=e("../node_modules/@babel/runtime/regenerator/index.js"),c=e.n(r),A=function(){function p(m){(0,s.A)(this,p),this.elements={},this.elements.media=m,this.elements.mediaItems=this.elements.media.querySelectorAll(".js-media-item"),this.elements.mediaVideos=this.elements.media.querySelectorAll(".js-media-video"),this.cookieConfirmed=document.querySelector(".js-policy-confirmed"),this.mediaItems=document.querySelectorAll(".js-media"),this.mediaItemsPlaceholder=document.querySelectorAll(".js-cookie-message-video-placeholder"),this.config={},this.config.autoPlay=!!this.elements.media.dataset.autoplay,this.config.muted=!!this.elements.media.dataset.muted,this.config.loop=!!this.elements.media.dataset.loop,this.slideCount=this.elements.mediaItems.length,this.glide=null,this.allowVideo=!1,this.initEvents()}return(0,d.A)(p,[{key:"initEvents",value:function(){var o=this;this.mediaItemsPlaceholder.forEach(function(t){t.dataset.platform=="youtube"&&(t.href="https://youtube.com/watch?v=".concat(t.dataset.id))}),window.cookieTypes&&this.cookieHandler(window.cookieTypes),window.addEventListener("eventCookiePolicyChanged",function(t){o.cookieHandler(t.detail)},!1)}},{key:"cookieHandler",value:function(o){this.checkAllCookieItems(o)?(this.mediaItems.forEach(function(t){t.classList.add("js-policy-confirmed")}),this.mediaItemsPlaceholder.forEach(function(t){t.classList.add("js-hide")}),this.allowVideo=!0,this.createMedia(this.allowVideo)):this.createMedia(this.allowVideo)}},{key:"createMedia",value:function(o){var t=this;this.slideCount>1?this.loadGlide().then(function(a){t.elements.mediaVideos.length>0&&o&&t.loadVideosThenInitGlide(!0,a),new a(t.elements.media)}):this.elements.mediaVideos.length>0&&((0,n.A)(this.elements.mediaItems).forEach(function(a){a.classList.add("glide__slide--active")}),o&&this.loadVideosThenInitGlide(!1))}},{key:"checkAllCookieItems",value:function(o){var t=0,a=0;for(var u in o)t+=1,a+=o[u];return t==a}},{key:"loadVideosThenInitGlide",value:function(o,t){var a=this;this.loadVideoPlyr().then(function(u){o&&new t(a.elements.media,u)})}},{key:"loadGlide",value:function(){var m=(0,i.A)(c().mark(function t(){var a,u;return c().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return h.next=2,Promise.all([e.e("npm.glidejs"),e.e("carousel")]).then(e.bind(e,"./lib/components/media/vendor/carousel.js"));case 2:return a=h.sent,u=a.default,h.abrupt("return",u);case 5:case"end":return h.stop()}},t)}));function o(){return m.apply(this,arguments)}return o}()},{key:"loadVideoPlyr",value:function(){var m=(0,i.A)(c().mark(function t(){var a=this,u,b,h;return c().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:if(u=[],!(this.elements.mediaVideos.length>0)){f.next=7;break}return f.next=4,Promise.all([e.e("npm.gsap-64336a37"),e.e("npm.gsap-ec852548"),e.e("npm.gsap-366becab"),e.e("npm.gsap-1ff61f2b"),e.e("npm.plyr"),e.e("videoplyr")]).then(e.bind(e,"./lib/components/media/vendor/videoplyr.js"));case 4:b=f.sent,h=b.default,(0,n.A)(this.elements.mediaVideos).forEach(function(j){var I=new h(j,a.config.autoPlay,a.config.muted,a.config.loop,a.allowVideo);u.push(I)});case 7:return f.abrupt("return",u);case 8:case"end":return f.stop()}},t,this)}));function o(){return m.apply(this,arguments)}return o}()}],[{key:"init",value:function(o){var t=this;(0,n.A)(document.querySelectorAll(o)).forEach(function(a){return new t(a)})}}]),p}();A.init(".js-media");const v=A}
2}]);
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.