PageSourceSearch

https://redbarrelsgames.com/wp-content/themes/redbarrelsgames/dist…eal_index_js.e36ac594d2af1e611176.bundle.js

js redbarrelsgames.com collected 2026-10-02 05:06:38 UTC 3,164 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkredbarrelsgames=self.webpackChunkredbarrelsgames||[]).push([["src_js_modules_pb-row-wrapper-reveal_index_js"],{
1"./src/js/modules/pb-row-wrapper-reveal/index.js":(t,e,i)=>{i.r(e),i.d(e,{default:()=>n});var o=i("./src/js/utils/dom.js"),s=i("./src/js/utils/resize.js"),l=i("./src/js/utils/viewport.js");function r(t,e){for(var i=0;i<e.length;i++){var o=e[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}const n=function(){function t(e,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.el=e,this.emitter=i,this.wrapper=(0,o.$)(".pb-row-wrapper__reveal",this.el),this._height=0,this._top=0,this._bottom=0,this._scroll=null,this._updatePosition=this._updatePosition.bind(this),this._onScrollInit=this._onScrollInit.bind(this),this._onScrollBeforeUpdate=this._onScrollBeforeUpdate.bind(this),this._onScrollAfterUpdate=this._onScrollAfterUpdate.bind(this)}var e,i,n;return e=t,(i=[{key:"init",value:function(){this._bindEvents()}},{key:"destroy",value:function(){this.el=null,this.emitter=null,this.wrapper=null,this._height=null,this._top=0,this._bottom=0,this._scroll=null,this._updatePosition=null,this._onScrollInit=null,this._onScrollBeforeUpdate=null,this._onScrollAfterUpdate=null}},{key:"stop",value:function(){this._unbindEvents()}},{key:"_bindEvents",value:function(){this.emitter.on("SiteScroll.init",this._onScrollInit),this.emitter.on("SiteScroll.before-update",this._onScrollBeforeUpdate),this.emitter.on("SiteScroll.after-update",this._onScrollAfterUpdate),this.emitter.on("SiteScroll.scroll",this._updatePosition),s.ZP.add(this._onScrollBeforeUpdate,s._q),s.ZP.add(this._onScrollAfterUpdate,s.Vu)}},{key:"_unbindEvents",value:function(){this.emitter.off("SiteScroll.init",this._onScrollInit),this.emitter.off("SiteScroll.before-update",this._onScrollBeforeUpdate),this.emitter.off("SiteScroll.after-update",this._onScrollAfterUpdate),this.emitter.off("SiteScroll.scroll",this._updatePosition),s.ZP.remove(this._onScrollBeforeUpdate,s._q),s.ZP.remove(this._onScrollAfterUpdate,s.Vu)}},{key:"_calculateLimits",value:function(){this._height=(0,o.JA)(this.wrapper).height,this._top=(0,o.JA)(this.el).top-l.Z.height+this._scroll.y,this._bottom=this._top+this._height+l.Z.height}},{key:"_updatePosition",value:function(t){var e=t.y;if(!(e<this._top||e>this._bottom)){var i=e-this._top,o=0,s=l.Z.height;this._height>s?(o=Math.min(0,i-s),i>this._height&&(o=i-this._height)):(o=Math.min(0,i-this._height),i>s&&(o=i-s)),this.wrapper.style.transform="matrix3d(1,0,0.00,0,0.00,1,0.00,0,0,0,1,0,0,".concat(o,",0,1)")}}},{key:"_onScrollInit",value:function(t){this._scroll=t,this._calculateLimits(),this._updatePosition(this._scroll)}},{key:"_onScrollBeforeUpdate",value:function(){this.wrapper.style.transform="matrix3d(1,0,0.00,0,0.00,1,0.00,0,0,0,1,0,0,0,0,1)"}},{key:"_onScrollAfterUpdate",value:function(){this._calculateLimits(),this._updatePosition(this._scroll)}}])&&r(e.prototype,i),n&&r(e,n),t}()}
1}]);
2//# sourceMappingURL=src_js_modules_pb-row-wrapper-reveal_index_js.e36ac594d2af1e611176.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.