{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/ts/scripts.ts"],"names":["enumerable","get","getter","value","key","bind","module","Object","prototype","hasOwnProperty","call","object","property","$","document","ready","setTimeout","not","each","$this","this","maddr","attr","linktext","after","addClass","hide","fancybox","parent","padding","on","iframeId","data","iframeElem","youtubeUrl","winAny","window","googleApiKey","googleMapsApiKey","showApiKeyWarning","indexOf","replace","append","fn","toGoogleMap","googleMapLoadDeferred","Deferred","options","mapElement","promise","then","settings","extend","position","lat","lng","zoom","mapTypeId","infoWindowHtml","showInfoWindow","mapOptions","mapTypeControl","center","zoomControl","scaleControl","scrollwheel","google","maps","MapTypeId","map","Map","marker","Marker","icon","infoWindow","InfoWindow","content","event","addListener","open","addListenerOnce","googleMapLoadCallback","resolve","googleMapsLoaded","getScript","initGoogleMaps","jQuery"],"mappings":"aACA,SAGA,cAGA,QACA,oBAGA,YACA,IACA,KACA,YAUA,OANA,mCAGA,OAGA,UAKA,MAGA,MAGA,oBACA,UACA,2BAA2CA,YAAY,EAAMC,IAAKC,KAKlE,gBACA,gDACA,4CAAyDC,MAAO,WAEhE,sCAAkDA,OAAO,KAQzD,kBAEA,GADA,cACA,aACA,qDACA,0BAGA,GAFA,OACA,mCAA0CH,YAAY,EAAMG,MAAOA,IACnE,2DAAiH,OAAOA,EAAMC,IAAQC,KAAK,KAAMD,IACjJ,UAIA,gBACA,sBACA,WAA4B,OAAOE,EAAgB,SACnD,WAAkC,OAAOA,GAEzC,OADA,aACA,GAIA,kBAAuD,OAAOC,OAAOC,UAAUC,eAAeC,KAAKC,EAAQC,IAG3G,OAIA,S,kBClFAC,EAAEC,UAAUC,OAAM,WAEhBC,YAAW,WACTH,EAAE,gBAAgBI,IAAI,cAAcC,MAAK,WACvC,IAAMC,EAAQN,EAAEO,MACVC,EAAQF,EAAMG,KAAK,cAAgB,IAAMH,EAAMG,KAAK,cAAgB,IAAMH,EAAMG,KAAK,cACrFC,EAAWJ,EAAMG,KAAK,iBAAmBH,EAA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A8C,KAA5BP,EAASO,eAAuB,CAE3D,IAAIgB,EAAa,IAAIR,OAAOC,KAAKQ,WAAW,CACxCC,QAASzB,EAASO,iBAGtBQ,OAAOC,KAAKU,MAAMC,YAAYP,EAAQ,SAAS,WAC3CG,EAAWK,KAAKV,EAAKE,MAI7BL,OAAOC,KAAKU,MAAMG,gBAAgBX,EAAK,QAAQ,WACvClB,EAASQ,gBACTe,EAAWK,KAAKV,EAAKE,SAK1BnD,MAIXe,EAAO8C,sBAAwB,WAC3BpC,EAAsBqC,SAAQ,IAG7B/C,EAAOgD,mBACVhD,EAAOgD,kBAAmB,EACxBtE,EAAEuE,UAAU,qCAAuC/C,EAAe,iDAgB1EgD,IAlGF,CAoGEC","file":"scripts.min.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 = 2);\n","$(document).ready(function () {\r\n /* mailencrypting */\r\n setTimeout(function () {\r\n $('[data-madr1]').not('.madr-done').each(function () {\r\n const $this = $(this);\r\n const maddr = $this.attr('data-madr1') + '@' + $this.attr('data-madr2') + '.' + $this.attr('data-madr3');\r\n const linktext = $this.attr('data-linktext') ? $this.attr('data-linktext') : maddr;\r\n $this.after('' + linktext + ' ');\r\n $this.addClass('madr-done').hide();\r\n });\r\n }, 500);\r\n\r\n /* Fancybox */\r\n if ($('.fancybox').fancybox) {\r\n $('.fancybox').fancybox({\r\n parent: 'form:first',\r\n padding: 1\r\n });\r\n }\r\n\r\n $(\"[data-youtube^='iframe-']\").on(\"click\", function() {\r\n var iframeId = $(this).data(\"youtube\");\r\n var iframeElem = $(\"#\" + iframeId);\r\n var youtubeUrl = iframeElem.data(\"youtube-src\");\r\n iframeElem.attr(\"src\", youtubeUrl);\r\n $(this).addClass('hide');\r\n })\r\n});\r\n\r\ndeclare const google : any;\r\n\r\n/* Google Maps API Key */\r\n(function ($) {\r\n const winAny = window as any;\r\n // Change this GoogleApiKey. They are in the App-Settings. Read instructions here: https://azing.org/2sxc/r/ippFQYkz\r\n let googleApiKey = winAny.googleMapsApiKey;\r\n if(!googleApiKey) return; \r\n\r\n const showApiKeyWarning = googleApiKey.indexOf(\"warning!\") > -1;\r\n googleApiKey = googleApiKey.replace(\"warning!\", \"\");\r\n\r\n // the init-code\r\n function initGoogleMaps() {\r\n\r\n // if this had already been run, stop here\r\n if (($.fn as any).toGoogleMap) {\r\n return;\r\n }\r\n\r\n var googleMapLoadDeferred = $.Deferred();\r\n\r\n ($.fn as any).toGoogleMap = function (options: any) {\r\n var mapElement = this.get(0);\r\n\r\n googleMapLoadDeferred.promise().then(function () {\r\n\r\n var settings = $.extend({\r\n position: {\r\n lat: 0,\r\n lng: 0\r\n },\r\n zoom: 8,\r\n mapTypeId: \"HYBRID\",\r\n infoWindowHtml: \"\",\r\n showInfoWindow: true\r\n }, options);\r\n\r\n var mapOptions = {\r\n zoom: settings.zoom,\r\n mapTypeControl: true,\r\n center: settings.position,\r\n zoomControl: true,\r\n scaleControl: true,\r\n scrollwheel: false,\r\n mapTypeId: google.maps.MapTypeId[settings.mapTypeId]\r\n };\r\n\r\n var map = new google.maps.Map(mapElement, mapOptions);\r\n\r\n // Create Marker\r\n var marker = new google.maps.Marker({\r\n position: settings.position,\r\n map: map,\r\n icon: settings.icon\r\n });\r\n\r\n if (settings.infoWindowHtml && settings.infoWindowHtml !== '') {\r\n // Create InfoWindow\r\n var infoWindow = new google.maps.InfoWindow({\r\n content: settings.infoWindowHtml\r\n });\r\n // Add Event listener\r\n google.maps.event.addListener(marker, 'click', function () {\r\n infoWindow.open(map, marker);\r\n });\r\n }\r\n\r\n google.maps.event.addListenerOnce(map, 'idle', function () {\r\n if (settings.showInfoWindow)\r\n infoWindow.open(map, marker);\r\n });\r\n\r\n });\r\n\r\n return this;\r\n };\r\n\r\n // Register google map load callback\r\n winAny.googleMapLoadCallback = function () {\r\n googleMapLoadDeferred.resolve(true);\r\n };\r\n\r\n if (!winAny.googleMapsLoaded) {\r\n winAny.googleMapsLoaded = true;\r\n $.getScript(\"//maps.google.com/maps/api/js?key=\" + googleApiKey + \"&sensor=true&callback=googleMapLoadCallback\");\r\n }\r\n }\r\n\r\n\r\n // check if it's the original key, which shouldn't be used in live sites\r\n // do not turn this off, it's important!\r\n // to disable the warning, replace the API key as explained on //github.com/2sic/2sxc-content-bootstrap3/wiki/google-maps-api-key\r\n function showWarningIfDemoKeyIsUsed() {\r\n if (showApiKeyWarning) {\r\n $('.co-google-map-container').append('

Warning: This map uses a demo API-Key, which will cause problems on live web sites. Change the GoogleApiKey using these instructions

');\r\n }\r\n }\r\n\r\n $(showWarningIfDemoKeyIsUsed);\r\n\r\n initGoogleMaps();\r\n\r\n}(jQuery));"],"sourceRoot":""}