PageSourceSearch

https://redbarrelsgames.com/wp-content/themes/redbarrelsgames/dist…ias_index_js.90b77aa56d88ac7b54dd.bundle.js

js redbarrelsgames.com collected 2026-10-02 05:06:30 UTC 12,451 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkredbarrelsgames=self.webpackChunkredbarrelsgames||[]).push([["src_js_modules_pb-row-medias_index_js"],{
1"./src/js/components/Video.js":(t,i,e)=>{e.d(i,{Z:()=>l});var s=e("./src/js/core/power-mode.js"),n=e("./src/js/utils/breakpoint.js"),r=e("./src/js/utils/viewport.js");function o(t,i){for(var e=0;e<i.length;e++){var s=i[e];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(t,s.key,s)}}var a=["(min-width: 768px)","(min-width: 1200px)"];const l=function(){function t(i){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];!function(t,i){if(!(t instanceof i))throw new TypeError("Cannot call a class as a function")}(this,t),this.el=i,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=s.Z.low&&!1===e,this._onBreakpointChange=this._onBreakpointChange.bind(this),this._powerModeLow||this._src&&(this._src_mobile||this._src_tablet)&&(this._bp=new n.Z(a,this._onBreakpointChange)),this.init()}var i,e,l;return i=t,e=[{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,i=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this;this.el&&(this._powerModeLow||"play"===this._action&&!1===i||(this._action="play",this._playPromise||(this._playPromise=null===(t=this.el)||void 0===t?void 0:t.play(),this._playPromise.finally((function(){e._playPromise=null})),this._playPromise.catch((function(){e._action=null})))))}},{key:"pause",value:function(){var t,i=this;this.el&&(this._powerModeLow||"pause"!==this._action&&(this._action="pause",this._playPromise?this._playPromise.then((function(){var t;return null===(t=i.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?r.Z.width<768?this._src_mobile?this._src_mobile:this._src_tablet:r.Z.width<1200&&this._src_tablet?this._src_tablet:this._src:this._src}}],e&&o(i.prototype,e),l&&o(i,l),t}()},
1"./src/js/modules/pb-row-medias/index.js":(t,i,e)=>{e.r(i),e.d(i,{default:()=>y});var s=e("./node_modules/swiper/swiper.mjs"),n=e("./src/js/components/Video.js"),r=e("./src/js/scroll/constants.js"),o=e("./src/js/utils/easings.js"),a=e("./src/js/utils/dom.js"),l=e("./src/js/utils/listener.js"),h=e("./src/js/utils/math.js"),u=e("./src/js/utils/viewport.js");function c(t,i){(null==i||i>t.length)&&(i=t.length);for(var e=0,s=new Array(i);e<i;e++)s[e]=t[e];return s}function d(t,i){if(!(t instanceof i))throw new TypeError("Cannot call a class as a function")}function _(t,i){for(var e=0;e<i.length;e++){var s=i[e];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(t,s.key,s)}}function p(t,i,e){return i&&_(t.prototype,i),e&&_(t,e),t}function v(t){return function(t){if(Array.isArray(t))return c(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,i){if(!t)return;if("string"==typeof t)return c(t,i);var e=Object.prototype.toString.call(t).slice(8,-1);"Object"===e&&t.constructor&&(e=t.constructor.name);if("Map"===e||"Set"===e)return Array.from(e);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return c(t,i)}(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.")}()}var f="--navigation-disabled",b={normalizeSlideIndex:!1,slidesPerView:1,slidesOffsetAfter:0,slidesOffsetBefore:0,spaceBetween:12,speed:650,watchSlidesProgress:!0,breakpoints:{768:{spaceBetween:24},1200:{spaceBetween:30,slidesPerView:"auto",slidesOffsetAfter:function(){var t=parseInt(getComputedStyle(a.d1).getPropertyValue("--container-fluid-margin"));return 4*((u.Z.width-2*t-330)/12)+120}}}},w=function(){function t(i,e){d(this,t),this.el=i,this.emitter=e,this.slider=(0,a.$)(".pb-row-medias__slider",this.el),this.slides=v((0,a.$$)(".pb-row-medias__slide",this.el)).map((function(t){return new m(t)})),this.navPrevious=(0,a.$)(".pb-row-medias__prev",this.el),this.navNext=(0,a.$)(".pb-row-medias__next",this.el),this.thumbnails=v((0,a.$$)(".pb-row-medias__thumbnail",this.el)),this._index=0,this._inView=!1,this._length=this.slides.length,this._swiper=null,this._onScrollCall=this._onScrollCall.bind(this),this._onSwiperActiveIndexChange=this._onSwiperActiveIndexChange.bind(this),this._onSwiperTranslate=this._onSwiperTranslate.bind(this),this._onSwiperTransition=this._onSwiperTransition.bind(this),this._onNavPreviousClick=this._onNavPreviousClick.bind(this),this._onNavNextClick=this._onNavNextClick.bind(this),this._onThumbnailClick=this._onThumbnailClick.bind(this)}return p(t,[{key:"init",value:function(){this.slider&&(this._swiper=new s.Z(this.slider,b)),this._bindEvents()}},{key:"destroy",value:function(){this._unbindEvents(),this._swiper&&this._swiper.destroy(!0,!1),this.slides&&this.slides.forEach((function(t){return t.destroy()})),this.el=null,this.emitter=null,this.slider=null,this.slides=null,this.navPrevious=null,this.navNext=null,this.thumbnails=null,this._index=null,this._inView=null,this._length=null,this._swiper=null,this._onScrollCall=null,this._onSwiperActiveIndexChange=null,this._onSwiperTranslate=null,this._onSwiperTransition=null,this._onNavPreviousClick=null,this._onNavNextClick=null,this._onThumbnailClick=null}},{key:"_bindEvents",value:function(){this._swiper&&(this._swiper.on("activeIndexChange",this._onSwiperActiveIndexChange),this._swiper.on("setTranslate",this._onSwiperTranslate),this._swiper.on("setTransition",this._onSwiperTransition)),this.navPrevious&&(0,l.on)(this.navPrevious,"click",this._onNavPreviousClick),this.navNext&&(0,l.on)(this.navNext,"click",this._onNavNextClick),this.thumbnails&&(0,l.on)(this.thumbnails,"click",this._onThumbnailClick),this.emitter.on("SiteScroll.pb-row-medias--slider",this._onScrollCall)}},{key:"_unbindEvents",value:function(){this.emitter.off("SiteScroll.pb-row-medias--slider",this._onScrollCall),this._swiper&&(this._swiper.off("activeIndexChange",this._onSwiperActiveIndexChange),this._swiper.off("setTranslate",this._onSwiperTranslate),this._swiper.off("setTransition",this._onSwiperTransition)),this.navPrevious&&(0,l.S1)(this.navPrevious,"click",this._onNavPreviousClick),this.navNext&&(0,l.S1)(this.navNext,"click",this._onNavNextClick),this.thumbnails&&(0,l.S1)(this.thumbnails,"click",this._onThumbnailClick)}},{key:"_goTo",value:function(t){(t=(0,h.b9)(0,this._length-1,t))!==this._index&&this._swiper.slideTo(t)}},{key:"_onScrollCall",value:function(t,i){i.el===this.slider&&(this._inView=t===r.gY,this.slides&&this.slides[this._index][this._inView?"play":"pause"]())}},{key:"_onSwiperActiveIndexChange",value:function(t){var i=t.activeIndex,e=this;this._index=i,this.navPrevious&&this.navPrevious.classList[0===this._index?"add":"remove"](f),this.navNext&&this.navNext.classList[this._index>=this._length-1?"add":"remove"](f),this.thumbnails&&this.thumbnails.forEac
1h((function(t,i){return t.setAttribute("aria-current",i===e._index)})),this.slides&&this.slides.forEach((function(t,i){return t[i===e._index?"play":"pause"]()}))}},{key:"_onSwiperTranslate",value:function(t){t.slides.forEach((function(t){var i=(0,o.hl)(-1*(0,h.b9)(-1,0,t.progress),0,1,1);t.style.setProperty("--progress",i)}))}},{key:"_onSwiperTransition",value:function(t,i){t.slides.forEach((function(t){if(0===i)t.style.transitionDuration="".concat(i,"ms"),t.style.transitionDelay="".concat(i,"ms");else{var e=(0,h.b9)(-1,0,Math.round(t.progress)),s=e<0?450:550,n=e<0?0:100;t.style.transitionDuration="".concat(s,"ms"),t.style.transitionDelay="".concat(n,"ms")}}))}},{key:"_onNavPreviousClick",value:function(t){t&&(t.preventDefault(),t.stopImmediatePropagation()),this._goTo(this._index-1)}},{key:"_onNavNextClick",value:function(t){t&&(t.preventDefault(),t.stopImmediatePropagation()),this._goTo(this._index+1)}},{key:"_onThumbnailClick",value:function(t){t&&(t.preventDefault(),t.stopImmediatePropagation());var i=this.thumbnails.indexOf(t.currentTarget);i<0||this._goTo(i)}}]),t}(),m=function(){function t(i){d(this,t),this.el=i,this.video=(0,a.$)(".pb-row-medias__video",this.el),this.init()}return p(t,[{key:"init",value:function(){this.video&&(this.video=new n.Z(this.video))}},{key:"destroy",value:function(){this.video&&this.video.destroy(),this.el=null,this.video=null}},{key:"play",value:function(){this.video&&this.video.play()}},{key:"pause",value:function(){this.video&&this.video.pause()}}]),t}();const y=w},
1"./src/js/scroll/constants.js":(t,i,e)=>{e.d(i,{A2:()=>s,C2:()=>a,Hg:()=>o,SJ:()=>v,ZC:()=>u,dI:()=>n,fX:()=>c,gY:()=>r,i6:()=>d,n3:()=>f,sp:()=>_,uO:()=>l,y0:()=>h,zM:()=>p});var s="is-outview",n="is-inview",r="enter",o="exit",a="down",l="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,i,e)=>{e.d(i,{Z:()=>s});const s=function(t,i){var e,s=function(t){e=t,r||(requestAnimationFrame(o),r=!0)},n=t.map((function(t){return window.matchMedia(t)})),r=!1,o=function(){i(e),r=!1};return{dispose:function(){r=!0,e=null,n=null},on:function(){n.forEach((function(t){return t.addListener(s)}))},off:function(){n.forEach((function(t){return t.removeListener(s)}))},run:o}}},
vendor: 1,784 bytes, line 1
1"./src/js/utils/easings.js":(t,i,e)=>{e.d(i,{ZP:()=>n,hl:()=>s});var s=function(t,i,e,s){return-e*(t/=s)*(t-2)+i};const n={easeInQuad:function(t,i,e,s){return e*(t/=s)*t+i},easeOutQuad:s,easeInOutQuad:function(t,i,e,s){return(t/=s/2)<1?e/2*t*t+i:-e/2*(--t*(t-2)-1)+i},easeInCubic:function(t,i,e,s){return e*(t/=s)*t*t+i},easeOutCubic:function(t,i,e,s){return e*((t=t/s-1)*t*t+1)+i},easeInOutCubic:function(t,i,e,s){return(t/=s/2)<1?e/2*t*t*t+i:e/2*((t-=2)*t*t+2)+i},easeInQuart:function(t,i,e,s){return e*(t/=s)*t*t*t+i},easeOutQuart:function(t,i,e,s){return-e*((t=t/s-1)*t*t*t-1)+i},easeInOutQuart:function(t,i,e,s){return(t/=s/2)<1?e/2*t*t*t*t+i:-e/2*((t-=2)*t*t*t-2)+i},easeInQuint:function(t,i,e,s){return e*(t/=s)*t*t*t*t+i},easeOutQuint:function(t,i,e,s){return e*((t=t/s-1)*t*t*t*t+1)+i},easeInOutQuint:function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return(t/=(arguments.length>3&&void 0!==arguments[3]?arguments[3]:1)/2)<1?e/2*t*t*t*t*t+i:e/2*((t-=2)*t*t*t*t+2)+i},easeInSine:function(t,i,e,s){return-e*Math.cos(t/s*(Math.PI/2))+e+i},easeOutSine:function(t,i,e,s){return e*Math.sin(t/s*(Math.PI/2))+i},easeInOutSine:function(t,i,e,s){return-e/2*(Math.cos(Math.PI*t/s)-1)+i},easeInExpo:function(t,i,e,s){return 0==t?i:e*Math.pow(2,10*(t/s-1))+i},easeOutExpo:function(t,i,e,s){return t==s?i+e:e*(1-Math.pow(2,-10*t/s))+i},easeInOutExpo:function(t,i,e,s){return 0==t?i:t==s?i+e:(t/=s/2)<1?e/2*Math.pow(2,10*(t-1))+i:e/2*(2-Math.pow(2,-10*--t))+i},easeInCirc:function(t,i,e,s){return-e*(Math.sqrt(1-(t/=s)*t)-1)+i},easeOutCirc:function(t,i,e,s){return e*Math.sqrt(1-(t=t/s-1)*t)+i},easeInOutCirc:function(t,i,e,s){return(t/=s/2)<1?-e/2*(Math.sqrt(1-t*t)-1)+i:e/2*(Math.sqrt(1-(t-=2)*t)+1)+i}}}
1}]);
2//# sourceMappingURL=src_js_modules_pb-row-medias_index_js.90b77aa56d88ac7b54dd.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.