PageSourceSearch

https://nianticspatial.com/assets/5hNiVVjt.min.js

js nianticspatial.com collected 2026-10-09 22:38:46 UTC 2,640 bytes, 1 lines download raw bytes

1var e=class extends HTMLElement{videos;activeVideo;toggleButton;ready=!1;intersectionObs;playWhenInview;useGetComputedStyle;connectedCallback(){this.playWhenInview=this.hasAttribute(`playWhenInview`),this.useGetComputedStyle=this.hasAttribute(`useGetComputedStyle`),this.intersectionObs=new IntersectionObserver(e=>{e.forEach(e=>{!this.playWhenInview||!this.activeVideo||(e.isIntersecting?this.activeVideo.play():this.activeVideo.pause())})}),this.videos=Array.from(this.querySelectorAll(`video`)).map(e=>new t(e)),this.toggleButton=this.getSlotElement(`toggle-button`),this.toggleButton&&this.toggleButton.addEventListener(`click`,()=>this.toggle()),window.addEventListener(`resize`,()=>this.onResize(),{passive:!0}),this.onResize(),this.classList.add(`ready`)}onResize(){let e=this.getActiveVideo();e!==this.activeVideo&&(this.activeVideo&&=(this.activeVideo.removeEventListener(`play`,this.playHandler),this.activeVideo.removeEventListener(`pause`,this.pauseHandler),this.intersectionObs.unobserve(this.activeVideo.el),null)),this.activeVideo=e,this.activeVideo&&(this.activeVideo.addEventListener(`play`,this.playHandler),this.activeVideo.addEventListener(`pause`,this.pauseHandler),this.intersectionObs.observe(this.activeVideo.el),this.activeVideo.el.paused?this.pauseHandler():this.playHandler()),this.videos.forEach(e=>{e!==this.activeVideo&&!e.el.paused&&e.pause()})}playHandler=()=>{this.ready||(this.ready=!0,this.classList.add(`ready`)),this.toggleButton&&this.toggleButton.setAttribute(`aria-pressed`,`true`)};pauseHandler=()=>{this.toggleButton&&this.toggleButton.setAttribute(`aria-pressed`,`false`)};toggle(){this.activeVideo&&(this.activeVideo.el.paused?(this.activeVideo.play(),this.playWhenInview=!0):(this.activeVideo.pause(),this.playWhenInview=!1))}getActiveVideo(){return this.videos.find(e=>n(e.el,this.useGetComputedStyle))}getSlotElement(e){return this.querySelector(`[data-slot="${e}"]`)||null}},t=class{el;playPromise=null;pausePressed=!1;constructor(e){this.el=e}play(){if(this.playPromise){this.pausePressed=!1;return}this.playPromise=this.el.play(),this.playPromise.then(()=>{this.playPromise=null,this.pausePressed&&this.pause()}).catch(e=>{console.error(`video play failed:`,e),this.playPromise=null})}pause(){if(this.playPromise){this.pausePressed=!0;return}this.pausePressed=!1,this.el.pause()}addEventListener(e,t){this.el.addEventListener(e,t)}removeEventListener(e,t){this.el.removeEventListener(e,t)}};function n(e,t){return t?[`flex`,`block`].includes(getComputedStyle(e,null).display):e.offsetParent!==null}customElements.get(`eve-responsive-video`)||customElements.define(`eve-responsive-video`,e);

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.