1"use strict";(globalThis.webpackChunk=globalThis.webpackChunk||[]).push([[842],{5913:(i,o,e)=>{e.r(o),e.d(o,{init:()=>l});var t=e(5152),d=e(414),a=e(1669),s=e.n(a),n=16/9,h=[];function l(){var i=s()(".c-promo-panel");i.length&&(s()("html, body"),i.each(function(){var i=s()(this),o=new r(i);h.push(o)}))}var r=function(){return(0,d.A)(function i(o){var e=this;(0,t.A)(this,i),this.$el=o,this.$bgVideoHolder=this.$el.find(".c-promo-panel__background-video-holder"),this.$bgVideo=this.$el.find(".c-promo-panel__background-video"),this.bgVideoRaw=this.$bgVideo.get(0),this.bgVideoRatio=n,s()(window).on("load",function(i){e.isBodyLoaded=!0,e.loadBgVideo()}),s()(document).on("lazybeforeunveil",function(i){e.onLazyBeforeUnveil(i)}),s()(document).on("lazyafterunload",function(i){e.onLazyAfterUnload(i)}),this.$bgVideo.hasClass("lazyloaded")&&this.loadBgVideo()},[{key:"shouldShowBgVideo",value:function(){return Boolean(this.isBodyLoaded&&this.$bgVideo.is(":visible")&&Modernizr.video)}},{key:"onLazyBeforeUnveil",value:function(i){s()(i.target).is(this.$bgVideo)&&this.loadBgVideo()}},{key:"onLazyAfterUnload",value:function(i){s()(i.target).is(this.$bgVideo)&&(this.bgVideoRaw.pause(),this.isBgVideoLoaded=!1)}},{key:"loadBgVideo",value:function(){if(this.shouldShowBgVideo()){this.isBgVideoLoaded=!0;var i=this.$bgVideo.find("source[data-src]");i.length?(i.each(function(){var i=s()(this);i.attr("data-src")&&(i.attr("src",i.attr("data-src")),i.removeAttr("data-src"))}),this.bgVideoRaw.load()):this.bgVideoRaw.play()}}},{key:"showBgVideo",value:function(i){if(i!==this.isBgVideoShowing)if(this.isBgVideoShowing=i,i){if(this.loadBgVideo(),!this.isBgVideoLoaded)return void this.$bgVideo.removeAttr("style");
1this.$bgVideoHolder.fadeIn(250,"easeOutQuad",function(){s()(this).removeAttr("style")}),this.bgVideoRaw.play()}else this.bgVideoRaw.pause()}}])}()}}]);
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.