{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./assets/components/CookieConsent/index.js","webpack:///./assets/components/CookieConsent/cookieConsentBanner.js","webpack:///./assets/components/CookieConsent/cookieConsentSettings.js","webpack:///./assets/components/CookieConsent/cookieConsentCheckLegacy.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","window","document","cookieConsentName","dataLayerName","dispose","dialog","getElementById","hide","undefined","hidden","banner","show","cookieConsent","consent","options","cookieConsentSettings","settings","buttonAll","buttonSettings","linkCookiePolicy","handleSettings","push","event","cookieBannerAction","cookieBannerLabel","handleAll","set","handleCookiePolicy","addEventListener","removeEventListener","getCheckboxLabel","form","closeButton","allButton","cookiePolicyLink","currConsent","necessary","cookieSettingsAction","cookieSettingsLabel","nextConsent","handleSubmit","preventDefault","analytics","functional","targeting","data","FormData","target","filter","Boolean","join","handleFormClick","type","checked","handleClose","input","querySelector","init","legacyCookieName","cookieConsentBanner","regExp","RegExp","cookie","replace"],"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,OAA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B,CAsBCX,OAAQC,W","file":"js/cookieConsent.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 = 68);\n","import './cookieConsentBanner';\nimport './cookieConsentSettings';\nimport './cookieConsentCheckLegacy';\nimport './cookieConsent.css';\n","(function (window, document, cookieConsentName, dataLayerName) {\n window[cookieConsentName] = window[cookieConsentName] || {};\n window[dataLayerName] = window[dataLayerName] || [];\n const dialog = document.getElementById('cookie-consent-banner');\n let dispose;\n\n const hide = () => {\n if (dispose) {\n dispose();\n dispose = undefined;\n }\n\n dialog.hidden = true;\n };\n\n const show = () => {\n const cookieConsent = window[cookieConsentName].consent;\n const { options } = cookieConsent;\n const cookieConsentSettings = window[cookieConsentName].settings;\n const buttonAll = document.getElementById('cookie-consent-banner-all');\n const buttonSettings = document.getElementById('cookie-consent-banner-setting');\n const linkCookiePolicy = document.getElementById('cookie-consent-banner-cookie-policy');\n\n const handleSettings = () => {\n window[dataLayerName].push({\n event: `${cookieConsentName}.banner`,\n cookieBannerAction: 'click',\n cookieBannerLabel: 'Settings',\n });\n\n cookieConsentSettings.show();\n };\n\n const handleAll = () => {\n window[dataLayerName].push({\n event: `${cookieConsentName}.banner`,\n cookieBannerAction: 'click',\n cookieBannerLabel: 'Accept All',\n });\n\n const consent = {};\n\n for (const i in options) {\n consent[options[i]] = true;\n }\n\n cookieConsent.set(consent);\n hide();\n };\n\n const handleCookiePolicy = () => {\n window[dataLayerName].push({\n event: `${cookieConsentName}.banner`,\n cookieBannerAction: 'click',\n cookieBannerLabel: 'Cookie policy',\n });\n };\n\n buttonAll.addEventListener('click', handleAll);\n buttonSettings.addEventListener('click', handleSettings);\n linkCookiePolicy.addEventListener('click', handleCookiePolicy);\n\n dispose = () => {\n buttonAll.removeEventListener('click', handleAll);\n buttonSettings.removeEventListener('click', handleSettings);\n linkCookiePolicy.removeEventListener('click', handleCookiePolicy);\n };\n\n dialog.hidden = false;\n };\n\n window[cookieConsentName].banner = { hide, show };\n}(window, document, 'cookieConsent', 'dataLayer'));\n","(function (window, document, cookieConsentName, dataLayerName) {\n window[cookieConsentName] = window[cookieConsentName] || {};\n window[dataLayerName] = window[dataLayerName] || [];\n const dialog = document.getElementById('cookie-consent-settings');\n let dispose;\n\n function hide() {\n if (dispose) {\n dispose();\n dispose = undefined;\n }\n\n dialog.hidden = true;\n }\n\n function show() {\n const cookieConsent = window[cookieConsentName].consent;\n const form = document.getElementById('cookie-consent-settings-form');\n const closeButton = document.getElementById('cookie-consent-settings-close');\n const allButton = document.getElementById('cookie-consent-settings-all');\n const cookiePolicyLink = document.getElementById('cookie-consent-settings-cookie-policy');\n const { options } = cookieConsent;\n const currConsent = cookieConsent.get() || { necessary: true };\n\n const init = (consent) => {\n for (const i in options) {\n const input = form.querySelector(`input[name=${options[i]}]`);\n\n if (input) {\n input.checked = consent[options[i]];\n }\n }\n };\n\n const handleAll = () => {\n window[dataLayerName].push({\n event: `${cookieConsentName}.settings`,\n cookieSettingsAction: 'click',\n cookieSettingsLabel: 'Accept All',\n });\n\n const nextConsent = {};\n\n for (const i in options) {\n nextConsent[options[i]] = true;\n }\n\n cookieConsent.set(nextConsent);\n hide();\n };\n\n const handleSubmit = (event) => {\n event.preventDefault();\n\n const data = new FormData(event.target);\n const nextConsent = {};\n\n for (const i in options) {\n nextConsent[options[i]] = data.get(options[i]) === 'on';\n }\n\n window[dataLayerName].push({\n event: `${cookieConsentName}.settings`,\n cookieSettingsAction: 'submit',\n cookieSettingsLabel: getSubmitLabel(nextConsent),\n });\n\n cookieConsent.set(nextConsent);\n hide();\n };\n\n const handleFormClick = ({ target: { type, name, checked } }) => {\n if (type === 'checkbox') {\n window[dataLayerName].push({\n event: `${cookieConsentName}.settings`,\n cookieSettingsAction: checked ? 'check' : 'uncheck',\n cookieSettingsLabel: getCheckboxLabel(name),\n });\n }\n };\n\n const handleClose = () => {\n window[dataLayerName].push({\n event: `${cookieConsentName}.settings`,\n cookieSettingsAction: 'click',\n cookieSettingsLabel: 'close',\n });\n\n hide();\n };\n\n const handleCookiePolicy = () => {\n window[dataLayerName].push({\n event: `${cookieConsentName}.settings`,\n cookieSettingsAction: 'click',\n cookieSettingsLabel: 'Cookie policy',\n });\n };\n\n form.addEventListener('submit', handleSubmit);\n form.addEventListener('click', handleFormClick);\n closeButton.addEventListener('click', handleClose);\n allButton.addEventListener('click', handleAll);\n cookiePolicyLink.addEventListener('click', handleCookiePolicy);\n\n dispose = () => {\n form.removeEventListener('submit', handleSubmit);\n form.removeEventListener('click', handleFormClick);\n closeButton.removeEventListener('click', handleClose);\n allButton.removeEventListener('click', handleAll);\n cookiePolicyLink.removeEventListener('click', handleCookiePolicy);\n };\n\n init(currConsent);\n\n dialog.hidden = false;\n }\n\n function getCheckboxLabel(name) {\n switch (name) {\n case 'analytics': return 'Analytical cookies';\n case 'functional': return 'Functional cookies';\n case 'targeting': return 'Targeting cookies';\n default: return undefined;\n }\n }\n\n function getSubmitLabel({ analytics, functional, targeting }) {\n return [\n 'necessary',\n analytics && 'analytical',\n functional && 'functional',\n targeting && 'targeting',\n ].filter(Boolean).join('-');\n }\n\n window[cookieConsentName].settings = { show, hide };\n}(window, document, 'cookieConsent', 'dataLayer'));\n","(function (window, document, cookieConsentName, legacyCookieName, dataLayerName) {\n const cookieConsent = window[cookieConsentName].consent;\n const cookieConsentBanner = window[cookieConsentName].banner;\n const { options } = cookieConsent;\n const regExp = new RegExp(`(?:(?:^|.*;\\\\s*)${legacyCookieName}\\\\s*\\\\=\\\\s*([^;]*).*$)|^.*$`);\n const timestamp = document.cookie.replace(regExp, '$1');\n\n if (timestamp && !cookieConsent.get()) {\n const consent = {};\n\n for (const i in options) {\n consent[options[i]] = true;\n }\n\n cookieConsent.set(consent);\n }\n\n if (!cookieConsent.get()) {\n window[dataLayerName] = window[dataLayerName] || [];\n window[dataLayerName].push({ event: `${cookieConsentName}.showBanner` });\n cookieConsentBanner.show();\n }\n}(window, document, 'cookieConsent', 'CookieDialog_agreed', 'dataLayer'));\n"],"sourceRoot":""}