PageSourceSearch

https://redbarrelsgames.com/wp-content/themes/redbarrelsgames/dist…ing_index_js.fca31dee2c63c0d16844.bundle.js

js redbarrelsgames.com collected 2026-10-02 05:06:42 UTC 2,229 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkredbarrelsgames=self.webpackChunkredbarrelsgames||[]).push([["src_js_modules_sharing_index_js"],{
1"./src/js/modules/sharing/index.js":(s,i,t)=>{t.r(i),t.d(i,{default:()=>c});var o=t("./src/js/utils/dom.js"),e=t("./src/js/utils/listener.js");function n(s,i){for(var t=0;t<i.length;t++){var o=i[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(s,o.key,o)}}const c=function(){function s(i){!function(s,i){if(!(s instanceof i))throw new TypeError("Cannot call a class as a function")}(this,s),this.el=i,this.copyBtn=(0,o.$)(".sharing__copyBtn"),this.copyMessage=(0,o.$)(".sharing__copyMessage"),this._copyPromise=null,this._copyTick=null,this._onCopyClick=this._onCopyClick.bind(this),this._onCopySuccess=this._onCopySuccess.bind(this),this._onCopyError=this._onCopyError.bind(this),this._copyCompleted=this._copyCompleted.bind(this)}var i,t,c;return i=s,(t=[{key:"init",value:function(){this._bindEvents()}},{key:"destroy",value:function(){this._copyTick&&clearTimeout(this._copyTick),this._unbindEvents(),this.el=null,this.copyBtn=null,this.copyMessage=null,this._copyPromise=null,this._copyTick=null,this._onCopyClick=null,this._onCopySuccess=null,this._onCopyError=null,this._copyCompleted=null}},{key:"_bindEvents",value:function(){this.copyBtn&&(0,e.on)(this.copyBtn,"click",this._onCopyClick)}},{key:"_unbindEvents",value:function(){this.copyBtn&&(0,e.S1)(this.copyBtn,"click",this._onCopyClick)}},{key:"_onCopyClick",value:function(s){s&&(s.preventDefault(),s.stopImmediatePropagation()),this._copyPromise||(this._copyPromise=navigator.clipboard.writeText(this.copyBtn.dataset.sharingCopyUrl).then(this._onCopySuccess).catch(this._onCopyError))}},{key:"_onCopySuccess",value:function(){this.copyMessage&&(this.copyMessage.setAttribute("aria-hidden",!1),this._copyTick=setTimeout(this._copyCompleted,3e3))}},{key:"_onCopyError",value:function(s){console.log(s),this._copyPromise=null}},{key:"_copyCompleted",value:function(){this.copyMessage&&this.copyMessage.setAttribute("aria-hidden",!0),this._copyPromise=null}}])&&n(i.prototype,t),c&&n(i,c),s}()}
1}]);
2//# sourceMappingURL=src_js_modules_sharing_index_js.fca31dee2c63c0d16844.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.