PageSourceSearch

https://redbarrelsgames.com/wp-content/themes/redbarrelsgames/dist…deo_index_js.4d94e80cf6837dffc1c5.bundle.js

js redbarrelsgames.com collected 2026-10-02 05:06:50 UTC 6,187 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkredbarrelsgames=self.webpackChunkredbarrelsgames||[]).push([["src_js_modules_video_index_js"],{
1"./src/js/components/Video.js":(t,e,s)=>{s.d(e,{Z:()=>a});var i=s("./src/js/core/power-mode.js"),n=s("./src/js/utils/breakpoint.js"),o=s("./src/js/utils/viewport.js");function l(t,e){for(var s=0;s<e.length;s++){var i=e[s];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var r=["(min-width: 768px)","(min-width: 1200px)"];const a=function(){function t(e){var s=arguments.length>1&&void 0!==arguments[1]&&arguments[1];!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.el=e,this._action=this.el.paused?"pause":"play",this._src=this.el.dataset.src||this.el.src,this._src_mobile=this.el.dataset.srcMobile,this._src_tablet=this.el.dataset.srcTablet,this._poster=this.el.dataset.poster,this._powerModeLow=i.Z.low&&!1===s,this._onBreakpointChange=this._onBreakpointChange.bind(this),this._powerModeLow||this._src&&(this._src_mobile||this._src_tablet)&&(this._bp=new n.Z(r,this._onBreakpointChange)),this.init()}var e,s,a;return e=t,s=[{key:"init",value:function(){this._bindEvents(),this._powerModeLow?this._poster&&this.el.setAttribute("poster",this._poster):(this._bp||this._src)&&this.el.src!==this.src&&(this.el.setAttribute("src",this.src),this["play"===this._action?"play":"pause"]())}},{key:"destroy",value:function(){this._unbindEvents(),this._bp&&this._bp.dispose(),this.el=null,this._action=null,this._playPromise=null,this._src=null,this._src_mobile=null,this._src_tablet=null,this._poster=null,this._bp=null,this._powerModeLow=null,this._onBreakpointChange=null}},{key:"play",value:function(){var t,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],s=this;this.el&&(this._powerModeLow||"play"===this._action&&!1===e||(this._action="play",this._playPromise||(this._playPromise=null===(t=this.el)||void 0===t?void 0:t.play(),this._playPromise.finally((function(){s._playPromise=null})),this._playPromise.catch((function(){s._action=null})))))}},{key:"pause",value:function(){var t,e=this;this.el&&(this._powerModeLow||"pause"!==this._action&&(this._action="pause",this._playPromise?this._playPromise.then((function(){var t;return null===(t=e.el)||void 0===t?void 0:t.pause()})):null===(t=this.el)||void 0===t||t.pause()))}},{key:"seek",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.el&&(this.el.currentTime=t)}},{key:"_bindEvents",value:function(){var t;null===(t=this._bp)||void 0===t||t.on()}},{key:"_unbindEvents",value:function(){var t;null===(t=this._bp)||void 0===t||t.off()}},{key:"_onBreakpointChange",value:function(){this.src!==this.el.src&&(this._powerModeLow||("play"===this._action&&this.el.pause(),this.el.setAttribute("src",this.src)),"play"===this._action&&this.play(!0))}},{key:"playing",get:function(){return"play"===this._action}},{key:"src",get:function(){return this._src_mobile||this._src_tablet?o.Z.width<768?this._src_mobile?this._src_mobile:this._src_tablet:o.Z.width<1200&&this._src_tablet?this._src_tablet:this._src:this._src}}],s&&l(e.prototype,s),a&&l(e,a),t}()},
1"./src/js/modules/video/index.js":(t,e,s)=>{s.r(e),s.d(e,{default:()=>c});var i=s("./src/js/components/Video.js"),n=s("./src/js/core/emitter.js"),o=s("./src/js/core/windmill.js"),l=s("./src/js/scroll/constants.js");function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){for(var s=0;s<e.length;s++){var i=e[s];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function h(t,e,s){return e&&a(t.prototype,e),s&&a(t,s),t}var u=new(function(){function t(){r(this,t),this.items=new Map,this.pausedItems=new Map,o.Z.on("exit",this.reset,this),n.Z.on("SiteScroll.video",this._onScrollCall.bind(this)),n.Z.on("Video.resumeAll",this._onVideoResumeAll.bind(this)),n.Z.on("Video.pauseAll",this._onVideoPauseAll.bind(this)),n.Z.on("Video.destroy",this._onVideoDestroy.bind(this))}return h(t,[{key:"add",value:function(t,e){this.items.set(t,e)}},{key:"remove",value:function(t){this.items.delete(t),this.pausedItems.delete(t)}},{key:"reset",value:function(){this.items.clear(),this.pausedItems.clear()}},{key:"_onScrollCall",value:function(t,e){var s=e.el;this.items.has(s)&&this.items.get(s).video[t===l.gY?"play":"pause"]()}},{key:"_onVideoResumeAll",value:function(){this.pausedItems.forEach((function(t){return t.video.play()}))}},{key:"_onVideoPauseAll",value:function(){var t=this;this.items.forEach((function(e,s){e.video.playing&&t.pausedItems.set(s,e)})),this.pausedItems.forEach((function(t){return t.video.pause()}))}},{key:"_onVideoDestroy",value:function(t){this.items.has(t)&&(this.items.get(t).destroy(),this.remove(t))}}]),t}()),c=function(){function t(e){r(this,t),this.el=e,this.video=new i.Z(this.el)}return h(t,[{key:"init",value:function(){this._bindEvents()}},{key:"destroy",value:function(){this._unbindEvents(),this.video&&(this.video.pause(),this.video.destroy()),this.el=null,this.video=null}},{key:"_bindEvents",value:function(){this.el&&this.video&&u.add(this.el,this)}},{key:"_unbindEvents",value:function(){this.el&&u.remove(this.el)}}]),t}()},
1"./src/js/scroll/constants.js":(t,e,s)=>{s.d(e,{A2:()=>i,C2:()=>r,Hg:()=>l,SJ:()=>v,ZC:()=>u,dI:()=>n,fX:()=>c,gY:()=>o,i6:()=>d,n3:()=>f,sp:()=>_,uO:()=>a,y0:()=>h,zM:()=>p});var i="is-outview",n="is-inview",o="enter",l="exit",r="down",a="up",h="--js-scroll-down",u="--js-scroll-up",c=500,d="--js-logo-min",_=200,p="--js-scroll-min",v="--js-scrollbar-hidden",f={offset:0,smooth:!0,callback:!1,duration:null,easing:"linear"}},
1"./src/js/utils/breakpoint.js":(t,e,s)=>{s.d(e,{Z:()=>i});const i=function(t,e){var s,i=function(t){s=t,o||(requestAnimationFrame(l),o=!0)},n=t.map((function(t){return window.matchMedia(t)})),o=!1,l=function(){e(s),o=!1};return{dispose:function(){o=!0,s=null,n=null},on:function(){n.forEach((function(t){return t.addListener(i)}))},off:function(){n.forEach((function(t){return t.removeListener(i)}))},run:l}}}
1}]);
2//# sourceMappingURL=src_js_modules_video_index_js.4d94e80cf6837dffc1c5.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.