PageSourceSearch

https://www.landoflights.co.uk/app/brands/land-of-lights/7561.ad1fad8285e5b6f432fa.js

js landoflights.co.uk collected 2026-09-30 05:13:53 UTC 7,006 bytes, 1 lines download raw bytes

1(globalThis.webpackChunkloop_web=globalThis.webpackChunkloop_web||[]).push([[7561],{7561(e,t,i){"use strict";i.r(t),i.d(t,{createFrom:()=>p});var n=i(7819),o=i.n(n);let s=null,a=!1,r=null,d=!1,h=null,l=!1;window.onYouTubeIframeAPIReady=()=>{document.dispatchEvent(new CustomEvent("onYouTubeIframeAPIReady",{}))};class u{constructor(e){this.el=e,this.videoContainer=e.querySelector(".fixed-bg-video--container"),this.video=null,this.started=!1,this.inViewport=!0;let t=this;null!=this.videoContainer&&(this.isVimeo=this.videoContainer.classList.contains("vimeo"),this.isYoutube=this.videoContainer.classList.contains("youtube"),this.isIgnite=this.videoContainer.classList.contains("ignite"),(this.isVimeo||this.isYoutube||this.isIgnite)&&(this.videoId=this.videoContainer.dataset.bgVideoId,this.hunt=new(o())(this.el,{enter:function(){t.enter()},leave:function(){t.leave()},persist:!0}),window.dispatchEvent(new Event("scroll"))))}loadPlayer(){this.isVimeo?"undefined"==typeof Vimeo?(a||(a=!0,s=document.createElement("script"),s.type="text/javascript",s.src="https://player.vimeo.com/api/player.js",s.async=!0,document.head.appendChild(s)),s.addEventListener("load",()=>{this.initVideo()})):this.initVideo():this.isIgnite?"undefined"==typeof playerjs?(l||(l=!0,h=document.createElement("script"),h.type="text/javascript",h.src="https://cdn.embed.ly/player-0.1.0.min.js",h.async=!0,document.head.appendChild(h)),h.addEventListener("load",()=>{this.initVideo()})):this.initVideo():"undefined"==typeof YT?(d||(d=!0,r=document.createElement("script"),r.type="text/javascript",r.src="https://www.youtube.com/iframe_api",r.async=!0,document.head.appendChild(r)),document.addEventListener("onYouTubeIframeAPIReady",()=>{this.initVideo()})):this.initVideo()}initVideo(){this.isVimeo?(this.videoContainerIframe=document.createElement("iframe"),this.videoContainerIframe.src=`https://player.vimeo.com/video/${this.videoId}?background=1&dnt=1&muted=1&autoplay=1`,this.videoContainerIframe.setAttribute("frameborder","0"),this.videoContainerIframe.setAttribute("allowfullscreen","allowfullscreen"),this.videoContainerIframe.setAttribute("allow","autoplay; encrypted-media;"),this.videoContainerIframe.setAttribute("title","background video"),this.videoContainer.appendChild(this.videoContainerIframe),this.videoContainerIframe.addEventListener("load",()=>{this.video=new Vimeo.Player(this.videoContainerIframe),this.video.on("play",()=>{this.videoContainerIframe.classList.add("loaded"),this.started=!0,this.inViewport||this.video.pause()})})):this.isIgnite?(this.videoContainerIframe=document.createElement("iframe"),this.videoContainerIframe.src=`https://play.ignite.video/player/index.html?id=${this.videoId}&loop=true&autoplay=true&muted=true&controls=false&fit=cover&fullscreen=false`,this.videoContainerIframe.setAttribute("frameborder","0"),this.videoContainerIframe.setAttribute("allowfullscreen","allowfullscreen"),this.videoContainerIframe.setAttribute("allow","autoplay; encrypted-media;"),this.videoContainerIframe.setAttribute("title","background video"),this.videoContainer.appendChild(this.videoContainerIframe),this.videoContainerIframe.addEventListener("load",()=>{this.video=new playerjs.Player(this.videoContainerIframe),this.video.on("ready",()=>{this.video.on("play",()=>{this.videoContainerIframe.classList.add("loaded"),this.started=!0,this.inViewport||this.video.pause()})})})):(this.videoContainerIframe=document.createElement("div"),this.videoContainer.appendChild(this.videoContainerIframe),this.video=new YT.Player(this.videoContainerIframe,{videoId:this.videoId,host:"https://www.youtube-nocookie.com",playerVars:{origin:window.location.host,auto
1play:1,controls:0,loop:1,playlist:this.videoId,playsinline:1,mute:1,modestbranding:1,rel:0}}),this.video.addEventListener("onReady",()=>{this.video.mute(),this.videoContainerIframe=this.videoContainer.querySelector("iframe"),this.videoContainerIframe.classList.add("loaded"),this.started=!0,this.inViewport&&this.video.playVideo()}))}enter(){if(this.inViewport=!0,this.video){if(this.started){let e=this;this.isVimeo?this.video.getPaused().then(function(t){t&&e.video.play()}):this.isIgnite?this.video.getPaused(t=>{t&&e.video.play()}):this.isYoutube&&this.video.playVideo()}}else this.loadPlayer()}leave(){if(this.inViewport=!1,this.started){let e=this;this.isVimeo?this.video.getPaused().then(function(t){t||e.video.pause()}):this.isIgnite?this.video.getPaused(t=>{t||e.video.pause()}):this.isYoutube&&this.video.pauseVideo()}}}function p(e){e.forEach(e=>{1===e.nodeType&&new u(e)})}},7819(e){e.exports=function(){var e=function(){},t=100;function i(e,i){var n,o,s;return void 0===i&&(i=t),function(){!0===n?(clearTimeout(o),o=setTimeout(function(){Date.now()-s>=i&&(e.apply(this,arguments),s=Date.now())},i-(Date.now()-s))):(e.apply(this,arguments),s=Date.now(),n=!0)}}var n=function(e,t){for(var i in this.element=e,this.visible=!1,t)Object.hasOwnProperty.call(t,i)&&(this[i]=t[i]);if(void 0!==e.dataset){if(void 0!==e.dataset.huntPersist)try{this.persist=JSON.parse(e.dataset.huntPersist)}catch(e){}if(void 0!==e.dataset.huntOffset)try{this.offset=JSON.parse(e.dataset.huntOffset)}catch(e){}}};n.prototype.offset=0,n.prototype.persist=!1,n.prototype.enter=e,n.prototype.leave=e;var o=function(e,t){if(!(e&&1===e.nodeType||"number"==typeof e.length))throw new TypeError("hunt: observer first argument should be a node or a list of nodes");if("object"!=typeof t)throw new TypeError("hunt: observer second argument should be an object");if(1===e.nodeType)this.__huntedElements__=[new n(e,t)];else{var i=[].slice.call(e);this.__huntedElements__=i.map(function(e){return new n(e,t)})}this.__viewportHeight__=window.innerHeight,this.__connect__(t.throttleInterval)};return o.prototype.__connect__=function(e){this.__throttledHuntElements__=i(this.__huntElements__.bind(this),e),this.__throttledUpdateMetrics__=i(this.__updateMetrics__.bind(this),e),window.addEventListener("scroll",this.__throttledHuntElements__),window.addEventListener("resize",this.__throttledUpdateMetrics__),this.__huntElements__()},o.prototype.__huntElements__=function(){for(var t=this.__huntedElements__.length;t;){var i=this.__huntedElements__[--t],n=i.element.getBoundingClientRect(),o=n.top-i.offset<this.__viewportHeight__&&n.top>=-(n.height+i.offset);!1===i.visible&&!0===o&&(i.enter.call(null,i.element),i.visible=!0,i.leave===e&&!0!==i.persist&&(this.__huntedElements__.splice(t,1),0===this.__huntedElements__.length&&this.disconnect())),!0===i.visible&&!1===o&&(i.leave.call(null,i.element),i.visible=!1,!0!==i.persist&&(this.__huntedElements__.splice(t,1),0===this.__huntedElements__.length&&this.disconnect()))}},o.prototype.__updateMetrics__=function(){this.__viewportHeight__=window.innerHeight,this.__huntElements__()},o.prototype.disconnect=function(){window.removeEventListener("scroll",this.__throttledHuntElements__),window.removeEventListener("resize",this.__throttledUpdateMetrics__)},o.prototype.trigger=function(){this.__huntElements__()},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.