{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/js/colab-script.js","webpack:///./src/js/theme.js","webpack:///./src/js/googlemaps.js"],"names":["installedModules","__webpack_require__","moduleId","exports","module","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","jQuery","ready","after","click","country","this","data","hasClass","removeClass","slideUp","addClass","slideDown","require","$","initMap","$el","$markers","find","mapArgs","zoom","mapTypeId","google","maps","MapTypeId","ROADMAP","map","Map","markers","each","$marker","lat","lng","latLng","parseFloat","marker","Marker","position","push","html","infowindow","InfoWindow","content","event","addListener","open","initMarker","bounds","LatLngBounds","forEach","extend","length","setCenter","getCenter","fitBounds","centerMap","document"],"mappings":"aACE,IAAIA,EAAmB,GAGvB,SAASC,EAAoBC,GAG5B,GAAGF,EAAiBE,GACnB,OAAOF,EAAiBE,GAAUC,QAGnC,IAAIC,EAASJ,EAAiBE,GAAY,CACzCG,EAAGH,EACHI,GAAG,EACHH,QAAS,IAUV,OANAI,EAAQL,GAAUM,KAAKJ,EAAOD,QAASC,EAAQA,EAAOD,QAASF,GAG/DG,EAAOE,GAAI,EAGJF,EAAOD,QAKfF,EAAoBQ,EAAIF,EAGxBN,EAAoBS,EAAIV,EAGxBC,EAAoBU,EAAI,SAASR,EAASS,EAAMC,GAC3CZ,EAAoBa,EAAEX,EAASS,IAClCG,OAAOC,eAAeb,EAASS,EAAM,CAAEK,YAAY,EAAMC,IAAKL,KAKhEZ,EAAoBkB,EAAI,SAAShB,GACX,oBAAXiB,QAA0BA,OAAOC,aAC1CN,OAAOC,eAAeb,EAASiB,OAAOC,YAAa,CAAEC,MAAO,WAE7DP,OAAOC,eAAeb,EAAS,aAAc,CAAEmB,OAAO,KAQvDrB,EAAoBsB,EAAI,SAASD,EAAOE,GAEvC,GADU,EAAPA,IAAUF,EAAQrB,EAAoBqB,IAC/B,EAAPE,EAAU,OAAO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AAI,GAAIG,GAYvC,OATAO,EAAIE,QAAU,GACdX,EAASY,MAAK,YAuBlB,SAAqBC,EAASJ,GAG1B,IAAIK,EAAMD,EAAQvB,KAAK,OACnByB,EAAMF,EAAQvB,KAAK,OACnB0B,EAAS,CACTF,IAAKG,WAAYH,GACjBC,IAAKE,WAAYF,IAIjBG,EAAS,IAAIb,OAAOC,KAAKa,OAAO,CAChCC,SAAWJ,EACXP,IAAKA,IAOT,GAHAA,EAAIE,QAAQU,KAAMH,GAGdL,EAAQS,OAAQ,CAGhB,IAAIC,EAAa,IAAIlB,OAAOC,KAAKkB,WAAW,CACxCC,QAASZ,EAAQS,SAIrBjB,OAAOC,KAAKoB,MAAMC,YAAYT,EAAQ,SAAS,WAC3CK,EAAWK,KAAMnB,EAAKS,OAnD1BW,CAAYhC,EAAER,MAAOoB,MAmE7B,SAAoBA,GAGhB,IAAIqB,EAAS,IAAIzB,OAAOC,KAAKyB,aAC7BtB,EAAIE,QAAQqB,SAAQ,SAAUd,GAC1BY,EAAOG,OAAO,CACVnB,IAAKI,EAAOE,SAASN,MACrBC,IAAKG,EAAOE,SAASL,WAKH,GAAtBN,EAAIE,QAAQuB,OACZzB,EAAI0B,UAAWL,EAAOM,aAItB3B,EAAI4B,UAAWP,GAhFnBQ,CAAW7B,GAGJA,EAkFXZ,EAAE0C,UAAUtD,OAAM,WACdY,EAAE,YAAYe,MAAK,WACLd,EAASD,EAAER,aAvH7B,CA2HGL","file":"/scripts/theme.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 0);\n","jQuery('document').ready(function () {\n\tjQuery(\"li.secondary-last\").after('
');\n\n\tjQuery('.js-country-toggle').click(function () {\n\t\tconst country = jQuery(this).data('country');\n\n\t\tif (jQuery(this).hasClass('selected')) {\n\t\t\tjQuery(this).removeClass('selected');\n\t\t\tjQuery('.' + country + '-states').slideUp();\n\t\t}\n\t\telse {\n\t\t\tjQuery('.js-country-toggle').removeClass('selected');\n\t\t\tjQuery('.js-country-filter').slideUp();\n\t\t\tjQuery(this).addClass('selected');\n\t\t\tjQuery('.' + country + '-states').slideDown();\n\t\t}\n\n\t});\n});\n","import \"./googlemaps\";\nrequire (\"./colab-script.js\");\n","\n\n(function( $ ) {\n\n/**\n * initMap\n *\n * Renders a Google Map onto the selected jQuery element\n *\n * @date 22/10/19\n * @since 5.8.6\n *\n * @param jQuery $el The jQuery element.\n * @return object The map instance.\n */\nfunction initMap( $el ) {\n\n // Find marker elements within map.\n var $markers = $el.find('.marker');\n\n // Create gerenic map.\n var mapArgs = {\n zoom : $el.data('zoom') || 16,\n mapTypeId : google.maps.MapTypeId.ROADMAP\n };\n var map = new google.maps.Map( $el[0], mapArgs );\n\n // Add markers.\n map.markers = [];\n $markers.each(function(){\n initMarker( $(this), map );\n });\n\n // Center map based on markers.\n centerMap( map );\n\n // Return map instance.\n return map;\n}\n\n/**\n * initMarker\n *\n * Creates a marker for the given jQuery element and map.\n *\n * @date 22/10/19\n * @since 5.8.6\n *\n * @param jQuery $el The jQuery element.\n * @param object The map instance.\n * @return object The marker instance.\n */\nfunction initMarker( $marker, map ) {\n\n // Get position from marker.\n var lat = $marker.data('lat');\n var lng = $marker.data('lng');\n var latLng = {\n lat: parseFloat( lat ),\n lng: parseFloat( lng )\n };\n\n // Create marker instance.\n var marker = new google.maps.Marker({\n position : latLng,\n map: map\n });\n\n // Append to reference for later use.\n map.markers.push( marker );\n\n // If marker contains HTML, add it to an infoWindow.\n if( $marker.html() ){\n\n // Create info window.\n var infowindow = new google.maps.InfoWindow({\n content: $marker.html()\n });\n\n // Show info window when marker is clicked.\n google.maps.event.addListener(marker, 'click', function() {\n infowindow.open( map, marker );\n });\n }\n}\n\n/**\n * centerMap\n *\n * Centers the map showing all markers in view.\n *\n * @date 22/10/19\n * @since 5.8.6\n *\n * @param object The map instance.\n * @return void\n */\nfunction centerMap( map ) {\n\n // Create map boundaries from all map markers.\n var bounds = new google.maps.LatLngBounds();\n map.markers.forEach(function( marker ){\n bounds.extend({\n lat: marker.position.lat(),\n lng: marker.position.lng()\n });\n });\n\n // Case: Single marker.\n if( map.markers.length == 1 ){\n map.setCenter( bounds.getCenter() );\n\n // Case: Multiple markers.\n } else{\n map.fitBounds( bounds );\n }\n}\n\n// Render maps on page load.\n$(document).ready(function(){\n $('.acf-map').each(function(){\n var map = initMap( $(this) );\n });\n});\n\n})(jQuery);\n\n"],"sourceRoot":""}