PageSourceSearch

https://www.combatbugs.com/etc.clientlibs/heliux/clientlibs/publis…-2695b60eca89ea00530fa3e304b0df1b-lc.min.js

js combatbugs.com collected 2026-10-02 12:42:43 UTC 25,455 bytes, 1 lines download raw bytes

1"use strict";(self.heliuxModules=self.heliuxModules||[]).push([[186],{80614(e,t,i){var s=i(23029),o=i(49530),n=i(50388),r=i(53954),a=i(85501),c=i(31526),l=i(37376),d=i(47124),h=i(60991),p=i(2371),u=(i(74423),i(9209));const v={publishes:{providerReady:"videos:provider:ready",providerStop:"videos:provider:stop",providerStopOthers:"videos:provider:stop:others",providerUnobserveVideo:"videos:provider:unobserveVideo",stateComplete:"videos:state:complete",stateStartTracking:"tracking:videos:state:start",statePlayTracking:"tracking:videos:state:play",statePauseTracking:"tracking:videos:state:pause",stateCompleteTracking:"tracking:videos:state:complete",stateMilestoneTracking:"tracking:videos:state:milestone"}};function f(e,t,i){return t=(0,r.A)(t),(0,n.A)(e,g()?Reflect.construct(t,i||[],(0,r.A)(e).constructor):t.apply(e,i))}function g(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(g=function(){return!!e})()}let y=function(e){function t(e,i){return(0,s.A)(this,t),f(this,t,[e,{...i,...v}])}return(0,a.A)(t,e),(0,o.A)(t,[{key:"videoOption",get:function(){return this.config.videoId?{videoId:this.config.videoId}:{}}},{key:"playlistOption",get:function(){return this.config.playlistId?{playerVars:{listType:"playlist",list:this.config.playlistId}}:{}}},{key:"playerOptions",get:function(){const{videoId:e}=this.config;return{videoId:e,height:"100%",width:"100%",events:{onStateChange:e=>this.onStateChange(e),onReady:e=>this.providerReady(e)},playerVars:{rel:this.config.showRelatedVideosFromChannel?0:1,controls:this.config.hiddenControls?0:1,autoplay:this.config.autoplay?1:0,playsinline:this.config.autoplay?1:0,mute:this.config.autoplay?1:0,loop:this.config.repeatVideo?1:0,playlist:this.config.playlistId},...this.playlistOption,...this.config.host&&{host:this.config.host}}}},{key:"providerReady",value:function(e){const{providerReady:t}=this.config.publishes;(0,c.publish)(t,this.el.id),this.getElements(),this.config.autoplay&&(this.config?.withSound?e.target.unMute():e.target.mute(),e.target.playVideo())}},{key:"init",value:function(){if(this.milestoneProgressInterval=null,this.loggedMilestone=void 0,window.YT&&window.YT.Player){const e=window.YT.Player;this.provider=new e(this.el.id,this.playerOptions)}else setTimeout(()=>this.init(),56)}},{key:"play",value:function(){this.provider&&this.provider.playVideo&&this.provider.playVideo()}},{key:"stop",value:function(){this.provider&&this.provider.pauseVideo&&this.provider.pauseVideo()}},{key:"destroy",value:function(){try{this.player.destroy()}catch(e){c.Vy.error(`${this.name} Component: destroy `,e)}}},{key:"isInViewport",value:function(e){const t=e.getBoundingClientRect();return!(t.bottom>window.innerHeight)&&t.top>=0&&t.left>=0&&t.bottom<=window.innerHeight}},{key:"onStateChange",value:function(e){const{data:t}=e;this.stopThisOrStopOthers(t),this.repeatVideo(t),this.stopAutoplayOnUserInteraction(t),this.videoStartOrPlay(t),this.videoPause(t),this.videoComplete(t);const{PLAYING:i,PAUSED:s,ENDED:o}=window.YT.PlayerState;t===i?this.startMilestoneProgressInterval():t!==s&&t!==o||this.stopMilestoneProgressInterval()}},{key:"startMilestoneProgressInterval",value:function(){this.milestoneProgressInterval||(this.milestoneProgressInterval=setInterval(()=>{const e=this.provider.getCurrentTime()/this.provider.getDuration()*100,t=Math.round(e),i=[0,25,50,75,95],s=i.reverse().find(e=>e<=t);if((void 0===this.loggedMilestone||s>this.loggedMilestone)&&i.includes(s)){this.loggedMilestone=t;const{publishes:e}=this.config;(0,u.h)(e.stateMilestoneTracking,{...this.videoStateData,milestone:t})}},1e3))}},{key:"stopMilestoneProgressInterval",value:function(){this.milestoneProgressInterval&&(clearInterval(this.milestoneProgressInterval),this.milestoneProgressInterval=null)}},{key:"stopThisOrStopOthers",value:function(e){const{PAUSED:t,ENDED:i}=window.YT.PlayerState;if(e===t||e===i){const{providerStop:e}=this.config.publishes;(0,c.publish)(e,this.el.id)}else{const{providerStopOthers:e}=this.config.publishes;(0,c.publish)(e,this.el.id)}}},{key:"repeatVideo",value:function(e){const{ENDED:t}=window.YT.PlayerState;e===t&&this.config.repeatVideo&&this.provider.playVideo()}},{key:"stopAutoplayOnUserInteraction",value:function(e){const{PAUSED:t}=window.YT.PlayerState,{autoplay:i}=this.config;if(e===t&&i&&this.isInViewport(this.el)){const{providerUnobserveVideo:e}=this.config.publishes;(0,c.publish)(e,this.el.id)}}},{key:"videoStartOrPlay",value:function(e){const{PLAYING:t}=window.YT.PlayerState;if(e!==t)return;const i=this.videoStateData;if(this.state.started){const{statePlayTracking:e}=this.config.publishes;i.state=this.config.videoState.play,(0,u.h)(e,i)}else{const{stateStartTracking:e}=this.config.publishes;this.setState({started:!0}),i.state=this.config.videoState.start,(0,u.h)(e,i)}}},{key:"videoPause",value:function(e){const{PAUSED:t}=window.YT.PlayerState;if(e!==t)return;const{statePauseTracking:i}=this.config.publishes,s=this.videoStateData;s.state=this.config.videoState.pause,(0,u.h)(i,s)}},{key:"videoComplete",value:function(e){const{ENDED:t}=window.YT.PlayerState;if(e!==t)return;const{stateComplete:i}=this.config.publishes,s=this.videoStateData;s.state=this.config.videoState.complete,(0,c.publish)(i,s),(0,u.h)(i,s)}}
1,{key:"videoStateData",get:function(){return{videoId:this.el.id,videoEl:this.el,videoTitle:this.provider.videoTitle||this.config.title,URL:this.provider.getVideoUrl(),state:null,videoProvider:"youtube",caption:this.provider.getOption("captions","track")?.languageCode,currentTime:this.provider.getCurrentTime(),totalTime:this.provider.getDuration()}}},{key:"providerElem",get:function(){return this.provider?this.provider.getIframe():null}}])}(c.xu);var k=i(48669),C=i(12595);const m={ready:!1,autoplay:!1,params:{iconeffect:0,preload:"0"},selectors:{s7closedcaptionbutton:".s7closedcaptionbutton"},publishes:{providerReady:"videos:provider:ready",providerStop:"videos:provider:stop",providerStopOthers:"videos:provider:stop:others",stateComplete:"videos:state:complete",stateSeek:"videos:state:seek",stateStartTracking:"tracking:videos:state:start",statePlayTracking:"tracking:videos:state:play",statePauseTracking:"tracking:videos:state:pause",stateCompleteTracking:"tracking:videos:state:complete",stateMilestoneTracking:"tracking:videos:state:milestone"},videoDAMEventType:{play:"PLAY",replay:"REPLAY",pause:"PAUSE",stop:"STOP",currentTime:"CURRENT_TIME",seek:"SEEK",milestone:"MILESTONE",complete:"PLAYBACK_COMPLETE"},fallbackCaptionLanguageCode:"en",captionsLanguageSelectorTemplate:(e,t)=>
1`\n    <div class='caption__languagesWrapper'>\n      <div class='caption__languages'>\n        ${e.map(e=>`\n          <button class='${t===e?"active":""}'\n            aria-label='Change captions to ${e.languageName}'\n            data-language-code='${e.languageCode}'\n            data-path='${e.captionPath}'\n          >\n            ${e.languageName}\n          </button>\n        `).join("")}\n      </div>\n    </div>\n  `,fullscreenMenuTemplate:e=>`\n    <div class='video__fullscreen'>\n      <div class='video__fullscreen-title'>${e}</div>\n      <button class='video__fullscreen-close'>&#x2715;</button>\n    </div>\n  `};function S(e,t,i){return t=(0,r.A)(t),(0,n.A)(e,b()?Reflect.construct(t,i||[],(0,r.A)(e).constructor):t.apply(e,i))}function b(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(b=function(){return!!e})()}const A={name:"Video",selectors:{base:".video__base",player:".video__player",poster:".video__poster",button:".video__button",consent:".video__consent",consentCTA:".video__consentCta .calltoaction__link",cookieMessage:".video__cookieMessage",s7videoplayer:".s7videoplayer"},elements:{twoClickConsentCTA:".video__consentCta--twoClickConsent .calltoaction__link",fullScreenContainer:".s7container .s7innercontainer",fullScreenCloseBtn:".video__fullscreen-close"},classes:{controlBarClasses:{container:"s7innercontrolbarcontainer",track:"s7track",captionsButton:"s7closedcaptionbutton",muteBtn:"s7mutebutton",volumeBar:"s7verticalvolume",fullScreenBtn:"s7fullscreenbutton",volumeBarKnob:"s7knob",volumeBarTrack:"s7track",volumeBarTrackFilled:"s7filledtrack",trackBarPlayed:"s7trackplayed",trackBarLoaded:"s7trackloaded",trackBarScrubber:"s7videoscrubber",innerBarContainer:"s7innercontrolbarcontainer",controlBar:"s7controlbar"},fullScreenMenuHidden:"video__fullscreen--hidden"},modifier:{hidden:"video__player--hidden",cookieMessageHidden:"video__cookieMessage--hidden",consentHidden:"video__consent--hidden",posterHidden:"video__poster--hidden",posterDisabled:"video__poster--disabled",posterBackground:"video-poster-background"},attributes:{provider:"data-provider"},variables:{skipVideoFocus:"--video-skip-controls-focus"},subscriptions:{providerStop:"videos:provider:stop",providerStopOthers:"videos:provider:stop:others",providerUnobserveVideo:"videos:provider:unobserveVideo",stateComplete:"videos:state:complete",providerSeek:"videos:state:seek"},providers:{youtube:y,henkelDAM:function(e){function t(e,i){return(0,s.A)(this,t),S(this,t,[e,(0,C.$N)({},m,i)])}return(0,a.A)(t,e),(0,o.A)(t,[{key:"captionParam",get:function(){if(this.config.captions&&this.config.captions.length){const e=this.config.enableCaptionsByDefault?1:0;return this.defaultCaption?`${this.defaultCaption.captionPath},${e}`:",0"}return""}},{key:"playerOptions",get:function(){return{containerId:this.el.id,params:{serverurl:this.config.serverUrl,contenturl:this.config.contentUrl,config:this.config.config,posterimage:this.config.posterImage,videoserverurl:this.config.videoServerUrl,asset:this.config.asset,autoplay:this.config.autoplay?"1":"0",mutevolume:this.config.autoplay?this.config?.withSound?"0":"1":"0",loop:this.config.repeatVideo?"1":"0",responsive:this.config.customizeRatio?"constrain":"auto",caption:this.captionParam,...this.config.params},handlers:{trackEvent:this.trackEvent,initComplete:()=>{this.providerReady()}}}}},{key:"init",value:function(){if(this.setBinds(),this.prepareCaptions(),this.loggedMilestone=void 0,this.videoStartedAtLeastOnce=!1,window.s7viewers){const e=window.s7viewers.VideoViewer;this.provider=new e(this.playerOptions),this.provider.init()}else setTimeout(()=>this.init(),40)}},{key:"providerReady",value:function(){const{publishes:e,captions:t}=this.config;(0,c.publish)(e.providerReady,this.el.id),this.config.ready=!0,this.getElements(),this.createFullScreenMenu(),t&&t.length>1&&this.s7closedcaptionbutton&&(this.setupCaptionsSelector(),this.handleMobileForMultipleCaptions())}},{key:"setBinds",value:function(){this.trackEvent=this.trackEvent.bind(this)}},{key:"prepareCaptions",value:function(){this.config.captions=(this.config.captions||[]).filter(({captionPath:e,languageName:t})=>e&&t);const{captions:e,fallbackCaptionLanguageCode:t}=this.config;if(e&&e.length)if(1===e.length)this.defaultCaption=e[0];else{const i=document.querySelector("html").getAttribute("lang").split("-")[0].toLowerCase(),s=e.find(({languageCode:e})=>e===i),o=e.find(({languageCode:e})=>e===t);this.defaultCaption=s||o}}},{key:"setupCaptionsSelector",value:function(){const{captions:e,captionsLanguageSelectorTemplate:t}=this.config,i=t(e,this.defaultCaption),s=document.createElement("div");s.innerHTML=i.trim(),this.captionOptionsWrapper=s.firstChild;const o=s.querySelectorAll("button");
1o.forEach(e=>{e.addEventListener("click",t=>this.onCaptionOptionClick(t,e,o),!0)}),this.s7closedcaptionbutton.parentNode.insertBefore(this.captionOptionsWrapper,this.s7closedcaptionbutton.nextSibling)}},{key:"handleMobileForMultipleCaptions",value:function(){this.s7closedcaptionbutton.addEventListener("click",()=>{if(this.captionOptionsWrapper&&!(0,k.LD)().matches&&!this.captionOptionsWrapper.classList.contains("open")){const e=t=>{t.target!==this.s7closedcaptionbutton&&(this.captionOptionsWrapper.classList.remove("open"),document.removeEventListener("click",e))};document.addEventListener("click",e),this.captionOptionsWrapper.classList.add("open")}})}},{key:"onCaptionOptionClick",value:function(e,t,i){e.stopPropagation(),this.provider.videoplayer.setCaption(t.dataset.path),this.provider.videoplayer.setCaptionEnabled(!1),this.provider.videoplayer.setCaptionEnabled(!0),this.provider.closedCaptionButton.setSelected(!0),i.forEach(e=>{e.classList.remove("active")}),t.classList.add("active"),t.blur()}},{key:"play",value:function(){this.config.ready&&((0,c.publish)(this.config.publishes.providerStopOthers,this.el.id),this.provider.videoplayer.play())}},{key:"stop",value:function(){this.config.ready&&this.provider.videoplayer.pause()}},{key:"trackEvent",value:function(e,t,i,s,o){const{currentTime:n}=this.config.videoDAMEventType,r=o.split(",")[0];r!==n?(this.videoStartOrPlay(r),this.videoPause(r),this.videoComplete(r),this.videoSeek(o),this.videoReplay(r)):this.videoMilestone()}},{key:"videoStartOrPlay",value:function(e){const{play:t}=this.config.videoDAMEventType;if(e!==t)return;this.videoStartedAtLeastOnce=!0;const i=this.videoStateData;if(this.state.started&&this.state.lastEvent!==t){const{statePlayTracking:e}=this.config.publishes;i.state=this.config.videoState.play,(0,u.h)(e,i),this.setState({lastEvent:t})}else if(!this.state.started){const{stateStartTracking:e}=this.config.publishes;this.setState({started:!0}),i.state=this.config.videoState.start,(0,u.h)(e,i),this.setState({lastEvent:t})}}},{key:"videoPause",value:function(e){const{pause:t}=this.config.videoDAMEventType;if(e!==t)return;const{statePauseTracking:i}=this.config.publishes;if(this.state.lastEvent!==t){const e=this.videoStateData;e.state=this.config.videoState.pause,(0,u.h)(i,e),this.setState({lastEvent:t})}}},{key:"videoComplete",value:function(e){const{stop:t,complete:i}=this.config.videoDAMEventType;if(e!==t&&e!==i)return;const{stateComplete:s}=this.config.publishes,o=this.videoStateData;o.state=this.config.videoState.complete,(0,c.publish)(s,o),(0,u.h)(s,o)}},{key:"videoReplay",value:function(e){const{replay:t}=this.config.videoDAMEventType;e===t&&this.setState({started:!1,lastEvent:t})}},{key:"videoSeek",value:function(e){const{seek:t}=this.config.videoDAMEventType;if(-1===e.indexOf(t))return;const{stateSeek:i}=this.config.publishes,s=this.videoStateData;s.state=this.config.videoState.pause,(0,c.publish)(i,s)}},{key:"videoMilestone",value:function(){if(!this.videoStartedAtLeastOnce)return;const e=(this.videoStateData.currentTime||1)/(this.videoStateData.totalTime||100)*100,t=Math.round(e),i=[0,25,50,75,95],s=i.reverse().find(e=>e<=t);if((void 0===this.loggedMilestone||s>this.loggedMilestone)&&i.includes(s)){this.loggedMilestone=s;const{publishes:e}=this.config;(0,u.h)(e.stateMilestoneTracking,{...this.videoStateData,milestone:t})}}},{key:"createFullScreenMenu",value:function(){this.fullScreenContainer=this.el.querySelector(this.config.elements.fullScreenContainer);const{fullscreenMenuTemplate:e}=this.config,t=e(this.videoStateData.videoTitle||""),i=document.createElement("div");i.innerHTML=t.trim();const s=(0,c.nF)(this.resetAutoHidde.bind(this),800);this.fullScreenContainer.addEventListener("mousemove",s),this.fullScreenContainer.addEventListener("touchmove",s),i.querySelector(this.config.elements.fullScreenCloseBtn).addEventListener("click",()=>this.escapeFullScreen(),!0),this.fullScreenMenu=i.firstChild,this.fullScreenContainer.appendChild(this.fullScreenMenu)}},{key:"escapeFullScreen",value:function(){this.provider.container.cancelFullScreen()}}
1,{key:"resetAutoHidde",value:function(){this.showFullScreenMenu(),clearTimeout(this.autohidde),this.autohidde=setTimeout(()=>{this.isVideoPaused||this.hiddeFullScreenMenu()},2100)}},{key:"showFullScreenMenu",value:function(){this.fullScreenMenu.setAttribute("aria-hidden",!1),this.fullScreenMenu.classList.remove(this.config.classes.fullScreenMenuHidden)}},{key:"hiddeFullScreenMenu",value:function(){this.fullScreenMenu.setAttribute("aria-hidden",!0),this.fullScreenMenu.classList.add(this.config.classes.fullScreenMenuHidden)}},{key:"videoStateData",get:function(){return{videoId:this.el.id,videoEl:this.el,videoTitle:this.config.title,URL:this.config.URL,type:"Video",videoProvider:"dam",caption:this.defaultCaption?.languageCode??void 0,state:null,currentTime:this.provider.videoplayer.getCurrentTime(),totalTime:this.provider.videoplayer.getDuration()}}},{key:"providerElem",get:function(){return this.el}},{key:"videoPlayerElem",get:function(){return this.s7videoplayer}},{key:"isVideoPaused",get:function(){return this.provider.playPauseButton.isSelected()}},{key:"destroy",value:function(){try{this.player.dispose()}catch(e){c.Vy.error(`${this.name} Component: destroy `,e)}}}])}(c.xu)},videoState:{start:"start",play:"play",pause:"pause",complete:"complete"},providerTwoClickConsentConfig:{askOnce:"askOnce",askAlways:"askAlways",providerTwoClickConsentKey:e=>`${e}TwoClickConsent`},threshold:.01,videoStore:{name:"raqnVideoStore",twoClickConsentConfig:{providerStoreKey:e=>`${e}TwoClickAskOnceAccepted`}}};function T(e,t,i){return t=(0,r.A)(t),(0,n.A)(e,w()?Reflect.construct(t,i||[],(0,r.A)(e).constructor):t.apply(e,i))}function w(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(w=function(){return!!e})()}let M=function(e){function t(){return(0,s.A)(this,t),T(this,t,arguments)}return(0,a.A)(t,e),(0,o.A)(t,[{key:"init",value:function(){this.config={...A,...this.config},this.setState({initialised:!1,playing:!1}),this.getElements(),this.setBinds(),this.player.setAttribute("id",`video_${this.el.uuid}`),this.setState({isLoaded:!1}),this.isCookieMessageActive=!1,this.videoFocusBlocked=!1,this.showMessageIfCookiesAreNotAcceptedOnInit(),this.initVideoIfCookiesAccepted(),this.initVideoPosterBackgroundIfCookiesAreNotAcceptedOnInit()}},{key:"setBinds",value:function(){this.showCookieMessage=this.showCookieMessage.bind(this),this.consentAccepted=this.consentAccepted.bind(this),this.showConsent=this.showConsent.bind(this)}},{key:"showMessageIfCookiesAreNotAcceptedOnInit",value:function(){(0,h.U)(()=>!this.areCookiesAccepted,()=>{this.el.addEventListener("click",this.showCookieMessage)})}},{key:"initVideoIfCookiesAccepted",value:function(){(0,h.U)(()=>this.areCookiesAccepted,()=>{this.el.removeEventListener("click",this.showCookieMessage),this.hideCookieMessage(),this.preventFocusOnVideo(),this.handleVideoCookiesAfterInit(),this.handleVideoConsent();const{providerTwoClickConsentConfig:e}=this.config;this.config.youtubeTwoClickConsent!==e.askAlways&&this.processVideoBackground(!1)})}},{key:"initVideoPosterBackgroundIfCookiesAreNotAcceptedOnInit",value:function(){(0,h.U)(()=>!this.areCookiesAccepted,()=>{this.processVideoBackground(!0)})}},{key:"processVideoBackground",value:function(e){const{modifier:{posterBackground:t}}=this.config;this.addOrRemoveClass(this.poster,t,e)}},{key:"handleVideoConsent",value:function(){const{consentEnabled:e}=this.config;e?this.addTwoClickConsent()&&this.el.addEventListener("click",this.showConsent,{once:!0}):this.showVideo()}},{key:"addTwoClickConsent",value:function(){const{videoProvider:e,providerTwoClickConsentConfig:t}=this.config,{providerTwoClickConsentKey:i}=t,{[`${i(e)}`]:s}=this.config,{twoClickConsentConfig:o}=this.config.videoStore,n=o.providerStoreKey(e),r=s===t.askOnce,a=this.videoStore[n];if(r&&a)return this.showVideo(),!1;if(r&&!a){const{twoClickConsentCTA:e}=this.config.elements;this.videoStore.subscribe(this.consentAccepted,n,!0);const t=(0,l.F)([e],e=>{e.preventDefault(),this.videoStore[n]=!0,this.consent.removeEventListener("click",t)});this.consent.addEventListener("click",t)}return!0}},{key:"showVideo",value:function(){this.intersectionObserver=(0,c.Kt)(this.el,()=>this.isVisible())}},{key:"showConsent",value:function(){const{consentHidden:e}=this.config.modifier;this.addOrRemoveClass(this.consent,e,!1),this.consentCTA.addEventListener("click",this.consentAccepted,{once:!0})}},{key:"consentAccepted",value:function(){this.showVideo();
1const{modifier:{consentHidden:e,posterBackground:t}}=this.config;this.addOrRemoveClass(this.consent,e,!0),this.addOrRemoveClass(this.poster,t),this.el.removeEventListener("click",this.showConsent)}},{key:"handleVideoCookiesAfterInit",value:function(){window.addEventListener("RAQNOneTrustGroupsUpdated",()=>{this.showMessageIfCookiesAreDeclined(),this.hideMessageIfCookiesAreAccepted()})}},{key:"preventFocusOnVideo",value:function(){const{posterImageFileReference:e,posterPosition:t,variables:{skipVideoFocus:i}}=this.config;e&&"end"!==t&&(this.videoFocusBlocked=!0,this.player.setAttribute("aria-hidden","true"),this.el.style.setProperty(i,"hidden"))}},{key:"restoreFocusOnVideo",value:function(){if(!this.videoFocusBlocked)return;const{skipVideoFocus:e}=this.config.variables;this.videoFocusBlocked=!1,this.player.removeAttribute("aria-hidden"),this.el.style.setProperty(e,"visible")}},{key:"showMessageIfCookiesAreDeclined",value:function(){this.areCookiesAccepted||this.state.started&&(this.showCookieMessage(),this.providerStop(this.player.id))}},{key:"hideMessageIfCookiesAreAccepted",value:function(){this.areCookiesAccepted&&this.hideCookieMessage()}},{key:"isVisible",value:function(){this.setState({initialised:!0}),this.intersectionObserver&&this.intersectionObserver(),this.config.autoplay&&this.observeVideo();const e=this.config.providers[this.config.videoProvider];this.playerProvider=new e(this.player,this.config),this.setSubscriptions(),this.setListeners()}},{key:"setListeners",value:function(){this.el.addEventListener("click",e=>this.toggle(e))}},{key:"setSubscriptions",value:function(){const{subscriptions:e}=this.config;(0,c.B1)(e.providerReady,e=>this.providerReady(e)),(0,c.B1)(e.providerStop,e=>this.providerStop(e)),(0,c.B1)(e.providerStopOthers,e=>this.providerStopOthers(e)),(0,c.B1)(e.providerUnobserveVideo,e=>this.providerUnobserveVideo(e)),(0,c.B1)(e.stateComplete,e=>this.providerStateComplete(e)),(0,c.B1)(e.providerSeek,e=>this.providerSeek(e))}},{key:"checkEntrie",value:function(e){e>0?this.player&&this.providerPlay(this.player.id):this.player&&this.providerStop(this.player.id)}},{key:"observeVideo",value:function(){const{threshold:e}=this.config;this.obs=new IntersectionObserver(e=>e.forEach(e=>this.checkEntrie(e.intersectionRatio)),{threshold:e}),this.obs.observe(this.el)}},{key:"toggle",value:function(e){if(!this.areCookiesAccepted)return this.showCookieMessage(),void this.providerStop(this.player.id);this.hasClickedOnS7Bar(e)||(this.setState({playing:!this.state.playing}),this.state.playing?this.providerPlay(this.player.id):(this.providerStop(this.player.id),this.providerUnobserveVideo(this.player.id)),this.updateElements())}},{key:"hasClickedOnS7Bar",value:function(e){const{classList:t}=e.target,{controlBarClasses:i}=this.config.classes;return Object.keys(i).map(e=>i[e]).filter(e=>t.contains(e)).length>0}},{key:"updateElements",value:function(){(this.state.playing||this.config.autoplay)&&(this.removePoster(),this.hideCustomPlayButton())}},{key:"removePoster",value:function(){this.poster&&(this.poster.classList.add(this.config.modifier.posterHidden),this.poster.classList.add(this.config.modifier.posterBackground))}},{key:"providerPlay",value:function(e){this.player.id===e&&(this.state.started||(this.setState({started:!0}),this.restoreFocusOnVideo()),this.setState({playing:!0}),this.playerProvider.play(),this.updateElements())}},{key:"providerReady",value:function(e){this.player.id===e&&(this.player=this.playerProvider.providerElem)}},{key:"providerStop",value:function(e){this.player.id===e&&(this.setState({playing:!1}),this.playerProvider.stop(),this.updateElements())}},{key:"providerStopOthers",value:function(e){if(this.player.id!==e){if(!this.state.playing)return;this.setState({playing:!1}),this.playerProvider.stop(),this.updateElements()}}},{key:"providerUnobserveVideo",value:function(e){this.player.id===e&&this.config.autoplay&&this.obs.unobserve(this.el)}},{key:"posterAtTheEnd",get:function(){const{posterImageFileReference:e,posterPosition:t}=this.config;return!(!e||"beginning"===t)}},{key:"providerStateComplete",value:function({videoId:e}){this.player.id===e&&this.posterAtTheEnd&&(this.poster.classList.remove(this.config.modifier.posterHidden),this.poster.classList.add(this.config.modifier.posterBackgroun
1d),this.poster.classList.add(this.config.modifier.posterDisabled),this.playerProvider.videoPlayerElem.after(this.poster))}},{key:"providerSeek",value:function({videoId:e}){this.player.id===e&&this.posterAtTheEnd&&this.removePoster()}},{key:"destroy",value:function(){this.video.destroy()}},{key:"hideCustomPlayButton",value:function(){this.addOrRemoveClass(this.button,this.config.modifier.hidden,!0)}},{key:"showCookieMessage",value:function(){if(this.isCookieMessageActive)return;const{modifier:{cookieMessageHidden:e}}=this.config;this.addOrRemoveClass(this.cookieMessage,e,!1),this.isCookieMessageActive=!0}},{key:"hideCookieMessage",value:function(){if(!this.isCookieMessageActive)return;const{cookieMessageHidden:e}=this.config.modifier;this.addOrRemoveClass(this.cookieMessage,e,!0),this.isCookieMessageActive=!1}},{key:"areCookiesAccepted",get:function(){const{requiredCookieCategories:e}=this.config;return(0,d.V)(e,window.OptanonActiveGroups)}},{key:"addOrRemoveClass",value:function(e,t,i){e&&(i?e.classList.add(t):e.classList.remove(t))}},{key:"videoStore",get:function(){const{name:e}=this.config.videoStore;return(0,p.KA)(e)}}])}(c.xu);(0,c.kz)({Video:M},0)}},e=>{e.O(0,[750],()=>e(80614)),e.O()}]);

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.