PageSourceSearch

https://redbarrelsgames.com/wp-content/themes/redbarrelsgames/dist…map_index_js.100fb61b5d5cfed9eedb.bundle.js

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

1(self.webpackChunkredbarrelsgames=self.webpackChunkredbarrelsgames||[]).push([["src_js_modules_google-map_index_js"],{
vendor: 737 bytes, line 1
1"./node_modules/load-google-maps-api/index.js":e=>{const n="__googleMapsApiOnLoadCallback",t=["channel","client","key","language","region","v"];let o=null;e.exports=function(e={}){return o=o||new Promise((function(o,i){const a=setTimeout((function(){window[n]=function(){},i(new Error("Could not load the Google Maps API"))}),e.timeout||1e4);window[n]=function(){null!==a&&clearTimeout(a),o(window.google.maps),delete window[n]};const r=document.createElement("script"),l=[`callback=${n}`];t.forEach((function(n){e[n]&&l.push(`${n}=${e[n]}`)})),e.libraries&&e.libraries.length&&l.push(`libraries=${e.libraries.join(",")}`),r.src=`${e.apiUrl||"https://maps.googleapis.com/maps/api/js"}?${l.join("&")}`,document.body.appendChild(r)})),o}},
1"./src/js/modules/google-map/index.js":(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>u});var o=t("./node_modules/load-google-maps-api/index.js"),i=t.n(o);function a(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function r(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var l={zoom:16,markers:null},s=null;const u=function(){function e(n){!function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,e),this.el=n,this.options=function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},o=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})))),o.forEach((function(n){r(e,n,t[n])}))}return e}({},l,JSON.parse(this.el.dataset.googleMap)||{}),this._initialized=!1}var n,t,o;return n=e,(t=[{key:"init",value:function(){this._initialized=!0,i()({key:"XXXXXX",language:"fr-CA",region:"CA"}).then(this._onGoogleMapsApiLoaded.bind(this))}},{key:"destroy",value:function(){this.el=null,this.options=null,this._initialized=null}},{key:"addMarker",value:function(e,n){var t=this.map;if(t){var o={lat:parseFloat(e),lng:parseFloat(n)},i=new s.Marker({position:o,map:t});t.markers.push(i)}}},{key:"center",value:function(){var e=this.map;if(e){var n=new s.LatLngBounds;e.markers.forEach((function(e){n.extend({lat:e.position.lat(),lng:e.position.lng()})})),1==e.markers.length?e.setCenter(n.getCenter()):e.fitBounds(n)}}},{key:"_onGoogleMapsApiLoaded",value:function(e){var n,t=this;s=e,this._initialized&&(this.map=new s.Map(this.el,this.options),null===(n=this.options)||void 0===n||n.markers.forEach((function(e){var n=e.lat,o=e.lng;return t.addMarker(n,o)})),this.center())}}])&&a(n.prototype,t),o&&a(n,o),e}()}
1}]);
2//# sourceMappingURL=src_js_modules_google-map_index_js.100fb61b5d5cfed9eedb.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.