1(function(){try{var l=typeof window!="undefined"?window:typeof global!="undefined"?global:typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:{},d=new l.Error().stack;d&&(l._sentryDebugIds=l._sentryDebugIds||{},l._sentryDebugIds[d]="151ba4d9-7d04-470c-a6d2-dc6a85e38b1e",l._sentryDebugIdIdentifier="sentry-dbid-151ba4d9-7d04-470c-a6d2-dc6a85e38b1e")}catch(o){}})(),(self.webpackChunkmysterious_monoceros=self.webpackChunkmysterious_monoceros||[]).push([[3037],{6984:l=>{function p(v){return v?38:39}l.exports={gridVideosPerPage:p,RAIL_VIDEOS:60}},31186:(l,d,o)=>{"use strict";o.d(d,{A:()=>m});var h=function(){var f=this,g=f._self._c;return g("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"}},[g("path",{attrs:{d:"M8.91016 19.9201L15.4302 13.4001C16.2002 12.6301 16.2002 11.3701 15.4302 10.6001L8.91016 4.08008",stroke:"currentColor","stroke-width":"1.5","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"}})])},p=[];h._withStripped=!0;var v=o(14486),_={},y=(0,v.A)(_,h,p,!1,null,null,null),m=y.exports},53037:(l,d,o)=>{"use strict";o.r(d),o.d(d,{default:()=>q});var h=function(){var e=this,t=e._self._c;return t("div",{staticClass:"video-stories__container",class:{"video-stories__container--grid":e.layout==="grid"}},[e.videos.length?t("div",{staticClass:"priit priit--gen video-stories dark-theme",class:{"video-stories--open":e.isOpen,"video-stories--no-bg":e.fullscreenOnly,"video-stories--grid":e.layout==="grid"}},[e.blockHeader?t("div",{staticClass:"root root--group-header"},[t("GroupHeading",{attrs:{"block-branding":e.getBasicBranding(e.blockHeader,e.currentSection),size:e.isPhone?"m":""}})],1):e._e(),e._v(" "),t("div",{staticClass:"structured-content__group",class:{root:!e.isPhone||e.layout==="grid"},attrs:{"aria-label":e.__("regular")}},[!e.fullscreenOnly&&e.layout==="rail"?t("tiles",{attrs:{videos:e.videos,"is-open":e.isOpen},on:{openVideoStory:e.openVideoStory,loadVideoImage:e.loadVideoImage}}):e._e(),e._v(" "),!e.fullscreenOnly&&e.layout==="grid"?t("flash-grid",{attrs:{videos:e.videos},on:{openVideoStory:e.openVideoStory}}):e._e(),e._v(" "),t("videos",{ref:"videos",attrs:{"current-slide-id":e.currentSlideId,videos:e.videos,user:e.user,"is-open":e.isOpen},on:{changeSlide:e.setCurrentVideo,close:e.closeVideoStories,"hook:mounted":function(s){return e.onMounted()}}})],1)]):e._e(),e._v(" "),t("Loader",{attrs:{visible:e.isLoading,height:e.fullscreenOnly?"100vh":"100px"}})],1)},p=[];h._withStripped=!0;var v=function(){var e=this,t=e._self._c;return t("div",{staticClass:"video-stories__stories-cnt",class:{"video-stories__stories-cnt--hide-bg-image":e.isPlaying}},[t("swiper-container",{ref:"videoStories",staticClass:"video-stories__stories",attrs:{init:"false","slides-per-view":e.slidesPerView,"space-between":8,"slides-offset-before":e.isPhone?12:null,"short-swipes":!1,keyboard:!1,loop:!0,"initial-slide":0,"watch-slides-progress":!0},on:{slidechangetransitionend:e.onSlideChange,slidechange:e.onSlideChangeIndex}},e._l(e.videos,function(s,r){return t("swiper-slide",{key:"vt-"+s.id,staticClass:"video-story",style:e.getBgImgUrl(s),attrs:{role:"button",tabindex:"0","data-focus-from":e.wcagNs.FLASH_VIDEO,"data-focus-index":s.id},on:{click:function(n){return e.$emit("openVideoStory",r,s.id)},keydown:function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"enter",13,n.key,"Enter")?null:e.$emit("openVideoStory",r,s.id)}}},[e.currentIndex===r&&e.isVisible?t("video",{ref:"currentVideo",refInFor:!0,attrs:{muted:"",loop:"",poster:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",preload:"metadata",playsinline:"playsInline","aria-label":e.getHeadline(s)},domProps:{muted:!0},on:{play:n=>e.onStatusUpdate(n)}},[t("source",{attrs:{src:s.sources.mp4_lo,type:"video/mp4"}})]):e._e(),e._v(" "),t("span",{staticClass:"video-story__headline"},[t("img",{attrs:{src:"/v6/img/icons/audio/icon-play-textcolor.svg",alt:"Play",width:"16",height:"16"}}),e._v(` 2 `+e._s(e.getHeadline(s))+` 3 `)]),e._v(" "),t("div",{staticClass:"video-story__masks"})])}),1),e._v(" "),e.isPhone?e._e():t("navigation-bar",{on:{"nav:prev":function(s){return e.elScroll("prev")},"nav:next":function(s){return e.elScroll("next")}}}),e._v(" "),t("a",{staticClass:"button-m button-m--m button-m--wi-r button-m--video-stories",attrs:{href:e.internalURL(e.rootSection.domain)+"/flash"}},[e._v(` 4 `+e._s(e.__("flashvideos.view-all"))+" "),t("ArrowIcon")],1)],1)},_=[];v._withStripped=!0;var y=o(44749),m=o(50156),I=o(56788),f=o(31186),g=(i,e,t)=>new Promise((s,r)=>{var n=a=>{try{u(t.next(a))}catch(c){r(c)}},S=a=>{try{u(t.throw(a))}catch(c){r(c)}},u=a=>a.done?s(a.value):Promise.resolve(a.value).then(n,S);u((t=t.apply(i,e)).next())});const V=.5,A=.2,C=400,T=`.swiper-notification { 5 position: absolute; 6 left: 0; 7 top: 0; 8 pointer-events: none; 9 opacity: 0; 10 z-index: -1000; 11}`;var L={name:"tiles",components:{ArrowIcon:f.A,NavigationBar:I.A.asyncComponents["navigation-bar"]},data(){return{currentIndex:0,currentVideoStartTime:0,transitioningVideoId:null,ib:null,isPlaying:!1,slidesPerView:this.isPhone?"auto":5.5,isVisible:!1,visibilityObserver:null,videoStartTimer:null}},props:{videos:{type:Array,required:!0},isOpen:{type:Boolean,default:!1}},mounted(){(0,y.kz)();const i=this.$refs.videoStories;i.modules=[m.Jq],i.injectStyles=[T],i.initialize(),this.checkThumbnailsToLoad(0),this.visibilityObserver=new IntersectionObserver(([e])=>this.onVisibilityChange(e.intersectionRatio),{threshold:[0,A,V,1]}),this.visibilityObserver.observe(this.$el)},beforeDestroy(){this.visibilityObserver.disconnect(),clearTimeout(this.videoStartTimer)},watch:{isOpen(){this.updatePlayback()}},methods:{getCurrentVideoEl(){const i=this.$refs.currentVideo;return Array.isArray(i)?i[0]:i},onVisibilityChange(i){if(clearTimeout(this.videoStartTimer),i>=V)this.videoStartTimer=setTimeout(()=>{this.isVisible=!0,this.$nextTick(()=>this.updatePlayback())},C);else if(i<=A){const e=this.getCurrentVideoEl();e&&e.pause(),this.isVisible=!1}},updatePlayback(){const i=this.getCurrentVideoEl();i&&(this.isVisible&&!this.isOpen?i.play().catch(()=>{}):i.pause())},onStatusUpdate(i){var e,t;this.$refs.currentVideo[0].currentTime=parseInt((t=(e=this.videos[this.currentIndex])==null?void 0:e.meta)==null?void 0:t.loopStart)||0},checkThumbnailsToLoad(i){if(!this.videos.length)return;let e=i-2;e<0&&(e=this.videos.length+e);const t=8,s=typeof this.slidesPerView=="number"?Math.floor(this.slidesPerView):2;for(let r=0;r<s+t;r++)e>=this.videos.length&&(e=0),this.$emit("loadVideoImage",e),e++},onSlideChange(){return g(this,null,function*(){this.currentIndex=this.$refs.videoStories.swiper.realIndex,this.$nextTick(()=>this.updatePlayback())})},onSlideChangeIndex(){this.checkThumbnailsToLoad(this.$refs.videoStories.swiper.realIndex)},getHeadline(i){return i["headline_"+currentSection.language]||i.headline},elScroll(i){const e=this.$refs.videoStories.swiper;i==="prev"?e.slidePrev():e.slideNext()},getBgImgUrl(i){if(!(i!=null&&i.thumbnail)||!i.loadImage)return null;const e=this.isPhone?386:612,t=this.isPhone?686:1088;return{"--bg-image":`url('${this.imageCrop(i.thumbnail,e,t)}')`}}}},B=L,b=o(14486),D=(0,b.A)(B,v,_,!1,null,"47b8ea6c",null),$=D.exports,P=function(){var e=this,t=e._self._c;
11return t("div",{staticClass:"video-flash-grid",attrs:{role:"list"}},e._l(e.videos,function(s,r){return t("div",{key:"vg-"+s.id,staticClass:"video-flash-grid__item",class:{"video-flash-grid__item--featured":r===0&&!e.isPhone},attrs:{role:"listitem"}},[t("div",{staticClass:"video-story",style:e.getBgImgUrl(s,r===0&&!e.isPhone),attrs:{role:"button",tabindex:"0","data-focus-from":e.wcagNs.FLASH_VIDEO,"data-focus-index":s.id},on:{click:function(n){return e.$emit("openVideoStory",r,s.id)},keydown:function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"enter",13,n.key,"Enter")?null:e.$emit("openVideoStory",r,s.id)}}},[t("span",{staticClass:"video-story__headline"},[t("img",{attrs:{src:"/v6/img/icons/audio/icon-play-textcolor.svg",alt:"Play",width:"16",height:"16"}}),e._v(` 12 `+e._s(e.getHeadline(s))+` 13 `)]),e._v(" "),t("div",{staticClass:"video-story__masks"})])])}),0)},R=[];P._withStripped=!0;var x={name:"flash-grid",props:{videos:{type:Array,required:!0}},methods:{getHeadline(i){return i["headline_"+currentSection.language]||i.headline},getBgImgUrl(i,e){if(!(i!=null&&i.thumbnail))return null;const t=this.isPhone?180:220,s=this.isPhone?320:390,r=e?2:1;return{"--bg-image":`url('${this.imageCrop(i.thumbnail,t*r,s*r)}')`}}}},H=x,U=(0,b.A)(H,P,R,!1,null,"57bf91c0",null),N=U.exports,j=o(61768),F=o(94108),w=o(6984),G=o(32661),M=o(22888),z=Object.defineProperty,O=Object.getOwnPropertySymbols,Y=Object.prototype.hasOwnProperty,K=Object.prototype.propertyIsEnumerable,k=(i,e,t)=>e in i?z(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,J=(i,e)=>{for(var t in e||(e={}))Y.call(e,t)&&k(i,t,e[t]);if(O)for(var t of O(e))K.call(e,t)&&k(i,t,e[t]);return i},Q=(i,e,t)=>new Promise((s,r)=>{var n=a=>{try{u(t.next(a))}catch(c){r(c)}},S=a=>{try{u(t.throw(a))}catch(c){r(c)}},u=a=>a.done?s(a.value):Promise.resolve(a.value).then(n,S);u((t=t.apply(i,e)).next())});const E=document.body;var W={name:"video-stories",components:{GroupHeading:G.A,videos:j.A,Tiles:$,FlashGrid:N,Loader:F.A,ArrowIcon:f.A},data(){return{videos:[],isOpen:!1,currentSlideId:0,user:null,moveBackMode:null,originUrl:null,isLoading:!1}},props:{blockHeader:{type:String,default:null},sections:{type:String,required:!0},fullscreenOnly:{type:Boolean,default:!1},layout:{type:String,default:"rail"},page:{type:Number,default:1},defaultVideo:{type:Object,default:()=>null},preloadedVideos:{type:Array,default:()=>null}},created(){return Q(this,null,function*(){const i=this.layout==="grid"?(0,w.gridVideosPerPage)(this.isPhone):w.RAIL_VIDEOS;let e=this.preloadedVideos;if(!e){this.isLoading=!0;const t=this.layout==="grid"?(this.page-1)*i:0;try{e=yield this.APIService.video.videos({categories:["flash"],limit:i,offset:t,sections:this.sections.split(",")})}catch(s){e=[]}this.isLoading=!1}this.defaultVideo&&(e=e.filter(t=>t.id!==this.defaultVideo.id),e.unshift(this.defaultVideo)),e=e.slice(0,i),e.forEach(t=>{t.url=`${this.internalURL(this.currentSection.domain)}/flash/${t.id}`,t.slug&&(t.url+=`/${t.slug}`),t.loadImage=!1}),e=e.filter(t=>{var s;return!((s=t.meta)!=null&&s.disableUse)}),this.videos=e})},methods:{getBasicBranding:M.getBasicBranding,onMounted(){var i,e;this.defaultVideo&&(this.moveBackMode="redirect",this.openVideoStory(0,(e=(i=this.videos)==null?void 0:i[0])==null?void 0:e.id))},pushOrUpdateHistory(i,e){const t=this.videos[i];e==="push"?(this.moveBackMode=this.moveBackMode||(this.layout==="rail"?"close":"history"),this.originUrl=this.originUrl||window.location.href,history.pushState({},"",t.url)):history.replaceState({},"",t.url)},setCurrentVideo(i){let e=J({},this.videos[i]);this.$set(this.videos,i,e),this.pushOrUpdateHistory(i,"replace"),this.currentSlideId=i},onPopState(){this.moveBackMode=null,this.closeVideoStories()},openVideoStory(i,e){this.currentSlideId=i,this.$nextTick(()=>{this.pushOrUpdateHistory(i,"push"),window.addEventListener("popstate",this.onPopState,!0),this.setCurrentVideo(i),this.$refs.videos.goToSlide(i,!0),E.classList.add("body--fullscreen-open"),document.addEventListener("keyup",this.keyBoardNavigation,!0),setTimeout(()=>{this.isOpen=!0},20),this.moveFocusTo(this.wcagNs.FLASH_VIDEO,{index:e})})},loadVideoImage(i){this.videos[i]&&(this.videos[i].loadImage=!0)},closeVideoStories(){if(window.removeEventListener("popstate",this.onPopState,!0),this.moveBackMode==="redirect"){window.location.href=this.internalURL(this.rootSection.domain);return}this.$refs.videos.pauseAllVideos(),E.classList.remove("body--fullscreen-open"),this.isOpen=!1,document.removeEventListener("keyup",this.keyBoardNavigation,!0),this.moveBackMode==="history"?history.back():this.moveBackMode==="close"&&history.replaceState({},"",this.originUrl),this.restoreFocus(this.wcagNs.FLASH_VIDEO)},keyBoardNavigation({keyCode:i}){switch(i){case 27:this.closeVideoStories();break;case 32:this.$refs.videos.togglePlayPause();break;case 39:case 40:this.$refs.videos.goToSlide(this.currentSlideId+1);break;case 37:case 38:this.$refs.videos.goToSlide(this.currentSlideId-1);break}}}},X=W,Z=(0,b.A)(X,h,p,!1,null,"77a0d51c",null),q=Z.exports}}]); 14 15//# sourceMappingURL=bundle-12a14a98f72b9a364070.js.map
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.