PageSourceSearch

https://redbarrelsgames.com/wp-content/themes/redbarrelsgames/dist…ter_index_js.c92d791d4d1eff947512.bundle.js

js redbarrelsgames.com collected 2026-10-02 05:07:00 UTC 4,407 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkredbarrelsgames=self.webpackChunkredbarrelsgames||[]).push([["src_js_ui_site-footer_index_js"],{
1"./src/js/scroll/constants.js":(t,e,s)=>{s.d(e,{A2:()=>n,C2:()=>o,Hg:()=>l,SJ:()=>w,ZC:()=>u,dI:()=>i,fX:()=>c,gY:()=>r,i6:()=>d,n3:()=>g,sp:()=>f,uO:()=>a,y0:()=>h,zM:()=>m});var n="is-outview",i="is-inview",r="enter",l="exit",o="down",a="up",h="--js-scroll-down",u="--js-scroll-up",c=500,d="--js-logo-min",f=200,m="--js-scroll-min",w="--js-scrollbar-hidden",g={offset:0,smooth:!0,callback:!1,duration:null,easing:"linear"}},
1"./src/js/ui/site-footer/index.js":(t,e,s)=>{s.r(e),s.d(e,{default:()=>h});var n=s("./src/js/utils/dom.js"),i=s("./src/js/utils/listener.js"),r=s("./src/js/scroll/constants.js");function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var s=0,n=new Array(e);s<e;s++)n[s]=t[s];return n}function o(t,e){for(var s=0;s<e.length;s++){var n=e[s];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function a(t){return function(t){if(Array.isArray(t))return l(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return l(t,e);var s=Object.prototype.toString.call(t).slice(8,-1);"Object"===s&&t.constructor&&(s=t.constructor.name);if("Map"===s||"Set"===s)return Array.from(s);if("Arguments"===s||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return l(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}const h=function(){function t(e,s){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.el=e,this.emitter=s,this.images=a((0,n.$$)(".site-footer__img",this.el)),this.closeBtn=(0,n.$)(".site-footer__closeBtn",this.el),this.newsletterBtn=(0,n.$)(".site-footer__newsletterBtn",this.el),this.imgBox=(0,n.$)(".site-footer__imgBoxWrap",this.el),this.newsletter=(0,n.$)(".site-footer__newsletterForm",this.el),this._newsletterExpanded=!1,this.randomImage=null,this._toggleNewsletter=this._toggleNewsletter.bind(this),this._onScrollCall=this._onScrollCall.bind(this)}var e,s,l;return e=t,(s=[{key:"init",value:function(){this._selectRandomImage(),this._bindEvents()}},{key:"destroy",value:function(){this._unbindEvents(),this.el=null,this.emitter=null,this.images=null,this.closeBtn=null,this.newsletterBtn=null,this.imgBox=null,this.newsletter=null,this._newsletterExpanded=null,this.randomImage=null,this._toggleNewsletter=null,this._onScrollCall=null}},{key:"_bindEvents",value:function(){this.closeBtn&&(0,i.on)(this.closeBtn,"click",this._toggleNewsletter),this.newsletterBtn&&(0,i.on)(this.newsletterBtn,"click",this._toggleNewsletter),this.emitter&&this.emitter.on("SiteScroll.site-footer",this._onScrollCall)}},{key:"_unbindEvents",value:function(){this.closeBtn&&(0,i.S1)(this.closeBtn,"click",this._toggleNewsletter),this.newsletterBtn&&(0,i.S1)(this.newsletterBtn,"click",this._toggleNewsletter),this.emitter&&this.emitter.off("SiteScroll.site-footer",this._onScrollCall)}},{key:"_toggleNewsletter",value:function(){this.newsletterExpanded=!this.newsletterExpanded}},{key:"_selectRandomImage",value:function(){if(this.images.length){var t=Math.floor(Math.random()*this.images.length);this.randomImage=this.images[t],this.randomImage.setAttribute("aria-hidden",!1)}}},{key:"_onScrollCall",value:function(t,e){e.el===this.el&&(this._inView=t===r.gY,n.d1.classList[this._inView?"add":"remove"]("--js-site-footer-inview"))}},{key:"newsletterExpanded",get:function(){return this._newsletterExpanded},set:function(t){this._newsletterExpanded=t,this.closeBtn&&(this.closeBtn.setAttribute("aria-expanded",!this.newsletterExpanded),this.closeBtn.setAttribute("aria-hidden",!this.newsletterExpanded)),this.newsletterBtn&&(this.newsletterBtn.setAttribute("aria-expanded",this.newsletterExpanded),this.newsletterBtn.setAttribute("aria-hidden",this.newsletterExpanded)),this.imgBox&&this.imgBox.setAttribute("aria-hidden",this.newsletterExpanded),this.newsletter&&this.newsletter.setAttribute("aria-hidden",!this.newsletterExpanded),this.emitter.emit("SiteScroll.update")}}])&&o(e.prototype,s),l&&o(e,l),t}()}
1}]);
2//# sourceMappingURL=src_js_ui_site-footer_index_js.c92d791d4d1eff947512.bundle.js.map

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.