{"version":3,"file":"plugins/custom/cookiealert/cookiealert.bundle.js","mappings":";;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8BAA8B;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,mDAAmD,gBAAgB;AACnE;AACA;AACA;AACA;AACA;AACA,uCAAuC;AACvC,wBAAwB,eAAe;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;;;;;;;;;;;;ACvDD;;;;;;;UCAA;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;;;;;WCtBA;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D;;;;;;;;;;ACNA;AACA;AACA,mBAAO,CAAC,mGAAuC;AAC/C;AACA,mBAAO,CAAC,iFAAoB","sources":["webpack://metronic/./node_modules/bootstrap-cookie-alert/cookiealert.js","webpack://metronic/./webpack/plugins/custom/cookiealert/cookiealert.scss","webpack://metronic/webpack/bootstrap","webpack://metronic/webpack/runtime/make namespace object","webpack://metronic/./webpack/plugins/custom/cookiealert/cookiealert.js"],"sourcesContent":["/*\r\n * Bootstrap Cookie Alert by Wruczek\r\n * https://github.com/Wruczek/Bootstrap-Cookie-Alert\r\n * Released under MIT license\r\n */\r\n(function () {\r\n \"use strict\";\r\n\r\n var cookieAlert = document.querySelector(\".cookiealert\");\r\n var acceptCookies = document.querySelector(\".acceptcookies\");\r\n\r\n if (!cookieAlert) {\r\n return;\r\n }\r\n\r\n cookieAlert.offsetHeight; // Force browser to trigger reflow (https://stackoverflow.com/a/39451131)\r\n\r\n // Show the alert if we cant find the \"acceptCookies\" cookie\r\n if (!getCookie(\"acceptCookies\")) {\r\n cookieAlert.classList.add(\"show\");\r\n }\r\n\r\n // When clicking on the agree button, create a 1 year\r\n // cookie to remember user's choice and close the banner\r\n acceptCookies.addEventListener(\"click\", function () {\r\n setCookie(\"acceptCookies\", true, 365);\r\n cookieAlert.classList.remove(\"show\");\r\n\r\n // dispatch the accept event\r\n window.dispatchEvent(new Event(\"cookieAlertAccept\"))\r\n });\r\n\r\n // Cookie functions from w3schools\r\n function setCookie(cname, cvalue, exdays) {\r\n var d = new Date();\r\n d.setTime(d.getTime() + (exdays * 24 * 60 * 60 * 1000));\r\n var expires = \"expires=\" + d.toUTCString();\r\n document.cookie = cname + \"=\" + cvalue + \";\" + expires + \";path=/\";\r\n }\r\n\r\n function getCookie(cname) {\r\n var name = cname + \"=\";\r\n var decodedCookie = decodeURIComponent(document.cookie);\r\n var ca = decodedCookie.split(';');\r\n for (var i = 0; i < ca.length; i++) {\r\n var c = ca[i];\r\n while (c.charAt(0) === ' ') {\r\n c = c.substring(1);\r\n }\r\n if (c.indexOf(name) === 0) {\r\n return c.substring(name.length, c.length);\r\n }\r\n }\r\n return \"\";\r\n }\r\n})();\r\n","// extracted by mini-css-extract-plugin\nexport {};","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","// Cookiealert - A simple, good looking cookie alert for Bootstrap: https://github.com/Wruczek/Bootstrap-Cookie-Alert\r\n\r\nrequire('bootstrap-cookie-alert/cookiealert.js');\r\n\r\nrequire('./cookiealert.scss');\r\n"],"names":[],"sourceRoot":""}