PageSourceSearch

https://redbarrelsgames.com/wp-content/themes/redbarrelsgames/dist…meo_index_js.5c6c29601108cd3c92ff.bundle.js

js redbarrelsgames.com collected 2026-10-02 05:06:57 UTC 4,196 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkredbarrelsgames=self.webpackChunkredbarrelsgames||[]).push([["src_js_ui_mouse-wheel-vimeo_index_js"],{
1"./src/js/ui/mouse-wheel-vimeo/index.js":(t,e,s)=>{s.r(e),s.d(e,{SELECTOR:()=>h,default:()=>c});var i=s("./src/js/utils/dom.js"),n=s("./src/js/utils/mobile.js");function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(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 a(t,e,s){return e&&r(t.prototype,e),s&&r(t,s),t}var o,h='.wysiwyg iframe[src*="vimeo.com"]',u=function(){function t(e,s){l(this,t),this.el=e,this.emitter=s,this.items=null,this._elements=null,this._promise=null,this._status=0}return a(t,[{key:"init",value:function(){var t=this;n.ai||(this._elements=Array.from((0,i.$$)(h,this.el)),this._elements&&0!==this._elements.length&&(this._status=1,o||this._promise?o&&this._initChildren():(this._promise=s.e("vendors-node_modules_vimeo_player_dist_player_es_js").then(s.bind(s,"./node_modules/@vimeo/player/dist/player.es.js")),this._promise.then((function(e){o=e.default,t._status<1||(t._initChildren(),3===t._status&&t.start())})),this._promise.catch((function(t){console.error("Error loading Vimeo Player API :",t)})))))}},{key:"destroy",value:function(){this.items&&this.items.forEach((function(t){return t.destroy()})),this.el=null,this.emitter=null,this.items=null,this._elements=null,this._status=0}},{key:"start",value:function(){this._status=3,this.items&&this.items.forEach((function(t){return t.start()}))}},{key:"stop",value:function(){this.items&&this.items.forEach((function(t){return t.stop()})),this._status=2}},{key:"add",value:function(t){var e=this;if(!n.ai)if(this._status<1&&(this._status=1),o||this._promise){if(o){var i=new _(t);this.items||(this.items=[]),this.items.push(i),3===this._status&&i.start()}}else this._promise=s.e("vendors-node_modules_vimeo_player_dist_player_es_js").then(s.bind(s,"./node_modules/@vimeo/player/dist/player.es.js")),this._promise.then((function(s){if(o=s.default,!(e._status<1)){var i=new _(t);e.items||(e.items=[]),e.items.push(i),3===e._status&&i.start()}})),this._promise.catch((function(t){console.error("Error loading Vimeo Player API :",t)}))}},{key:"remove",value:function(t){if(this._elements&&(this._elements=this._elements.filter((function(e){return e!==t}))),this.items){var e=this.items.findIndex((function(e){return e.el===t}));if(e>-1){var s=this.items.splice(e,1)[0];s.stop(),s.destroy()}}}},{key:"_initChildren",value:function(){this.items=this._elements.map((function(t){return new _(t)})),this._elements=null}}]),t}(),_=function(){function t(e){l(this,t),this.el=e,this.parent=this.el.parentNode;var s=new URLSearchParams(this.el.src);this._autoplay="1"===s.get("autoplay"),this._onClick=this._onClick.bind(this),this._onPlaying=this._onPlaying.bind(this),this._onPause=this._onPause.bind(this)}return a(t,[{key:"destroy",value:function(){this.player&&this.player.destroy(),this.el=null,this.parent=null,this.player=null,this._autoplay=null,this._onClick=null,this._onPlaying=null,this._onPause=null}},{key:"start",value:function(){this._bindEvents(),this._autoplay&&this._onClick()}},{key:"stop",value:function(){this._unbindEvents(),this.player&&(this.player.off("playing",this._onPlaying),this.player.off("pause",this._onPause))}},{key:"_bindEvents",value:function(){this.parent&&(this.el.style.pointerEvents="none",this.parent.removeEventListener("click",this._onClick),this.parent.addEventListener("click",this._onClick))}},{key:"_unbindEvents",value:function(){this.parent&&(this.el.style.pointerEvents="",this.parent.removeEventListener("click",this._onClick))}},{key:"_onClick",value:function(t){t&&(t.stopPropagation(),t.preventDefault()),this.player||(this.player=new o(this.el),this.player.on("playing",this._onPlaying),this.player.on("pause",this._onPause)),this.player.play()}},{key:"_onPlaying",value:function(){this._unbindEvents()}},{key:"_onPause",value:function(){this._bindEvents()}}]),t}();const c=u}
1}]);
2//# sourceMappingURL=src_js_ui_mouse-wheel-vimeo_index_js.5c6c29601108cd3c92ff.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.