PageSourceSearch

https://www.grandappeal.org.uk/wp-content/themes/snap/dist/161.js?id=8edfadcf122f0047

js grandappeal.org.uk collected 2026-10-02 07:36:30 UTC 4,305 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunksnap=self.webpackChunksnap||[]).push([[161,863],{6161(e,t,i){i.d(t,{render:()=>u});var n=i(8859),o=i(1863);function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function a(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,l(n.key),n)}}function l(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=r(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==r(t)?t:t+""}var s=function(){return e=function e(t){var i=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.el=t,this.parallax=null,this.video=t.querySelector("video"),this.noMotionPreference=window.matchMedia("(prefers-reduced-motion: no-preference)"),this.onResize(),n.bX.addEventListener("change",this.onResize.bind(this)),this.video&&(this.button=t.querySelector("[data-video-btn]"),this.el.classList.add("is-video-loading"),this.button&&this.button.addEventListener("click",this.toggleVideo.bind(this)),this.video.addEventListener("canplay",function(){i.el.classList.remove("is-video-loading"),i.onResize()}))},(t=[{key:"onResize",value:function(){n.bX.matches&&this.noMotionPreference.matches?(this.parallax||(this.parallax=new o.A(this.el)),this.parallax.init(),this.play()):(this.parallax&&this.parallax.destroy(),this.pause())}},{key:"pause",value:function(){this.video&&(this.video.pause(),this.el.classList.remove("is-playing"))}},{key:"play",value:function(){this.video&&(this.video.play(),this.el.classList.add("is-playing"))}},{key:"toggleVideo",value:function(){this.video&&(this.video.paused?this.play():this.pause())}}])&&a(e.prototype,t),i&&a(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,i}(),u=function(e){return new s(e)}},1863(e,t,i){i.d(t,{A:()=>c,render:()=>u});var n=i(5858),o=i.n(n);function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function a(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,l(n.key),n)}}function l(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=r(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==r(t)?t:t+""}var s=function(){return e=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.el=t,this.imageWrapper=this.el.querySelector("[data-img-wrapper]"),this.heading=this.el.querySelector("[data-content]"),this.throttledOnScroll=o()(this.onScroll.bind(this),30)},(t=[{key:"init",value:function(){window.addEventListener("scroll",this.throttledOnScroll),this.imageWrapper.style.bottom=0}},{key:"destroy",value:function(){window.removeEventListener("scroll",this.throttledOnScroll),this.imageWrapper.removeAttribute("style"),this.heading.style.opacity=1}},{key:"shouldHideHeaderContent",value:function(){var e=document.querySelector("[data-header]").clientHeight;return this.heading.getBoundingClientRect().top<e-50}},{key:"showHideHeaderContent",value:function(){this.shouldHideHeaderContent()?this.heading.style.opacity=0:this.heading.style.opacity=1}},{key:"doParallax",value:function(){if(this.el.getBoundingClientRect().bottom>0){var e=.2*window.scrollY;this.imageWrapper.style.transform="translate3d(0, ".concat(e,"px, 0)")}}},{key:"onScroll",value:function(e){this.doParallax(),this.showHideHeaderContent()}}])&&a(e.prototype,t),i&&a(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,i}(),u=function(e){return new s(e)};const c=s}}]);
2//# sourceMappingURL=161.js.map?id=8edfadcf122f0047

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.