{ "version": 3, "sources": [ "webpack://se-shared-components/./src/utils/waitFor.js", "webpack://se-shared-components/./src/utils/log.js", "webpack://se-shared-components/./src/consent/onetrust.js", "webpack://se-shared-components/./src/utils/utils.js", "webpack://se-shared-components/./src/consent/hasConsent.js", "webpack://se-shared-components/./src/utils/loadscript.js", "webpack://se-shared-components/./src/utils/domContentLoaded.js", "webpack://se-shared-components/./node_modules/ramda/es/internal/_arity.js", "webpack://se-shared-components/./node_modules/ramda/es/internal/_isPlaceholder.js", "webpack://se-shared-components/./node_modules/ramda/es/internal/_curry1.js", "webpack://se-shared-components/./node_modules/ramda/es/internal/_curry2.js", "webpack://se-shared-components/./node_modules/ramda/es/internal/_curryN.js", "webpack://se-shared-components/./node_modules/ramda/es/curryN.js", "webpack://se-shared-components/./src/consent/consentFilter.js", "webpack://se-shared-components/./src/onetrust/index.js", "webpack://se-shared-components/./src/otstyling/onetrust.css?edae", "webpack://se-shared-components/./src/otstyling/index.js", "webpack://se-shared-components/./src/utils/html.js", "webpack://se-shared-components/./src/consent/index.js", "webpack://se-shared-components/./src/otstyling/onetrust.css", "webpack://se-shared-components/./node_modules/css-loader/dist/runtime/api.js", "webpack://se-shared-components/./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js", "webpack://se-shared-components/./node_modules/style-loader/dist/runtime/insertBySelector.js", "webpack://se-shared-components/./node_modules/style-loader/dist/runtime/insertStyleElement.js", "webpack://se-shared-components/./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js", "webpack://se-shared-components/./node_modules/style-loader/dist/runtime/singletonStyleDomAPI.js", "webpack://se-shared-components/webpack/bootstrap", "webpack://se-shared-components/webpack/runtime/compat get default export", "webpack://se-shared-components/webpack/runtime/define property getters", "webpack://se-shared-components/webpack/runtime/hasOwnProperty shorthand", "webpack://se-shared-components/webpack/startup" ], "names": [ "waitFor", "predicate", "interval", "timeout", "timeoutError", "responseFunc", "intervalId", "result", "currentState", "resolveResponse", "val", "Promise", "resolve", "race", "_", "reject", "setTimeout", "setInterval", "finally", "clearInterval", "log", "args", "window", "location", "search", "includes", "console", "Groups", "Essential", "Performance", "Functional", "Targeting", "SocialMedia", "requiredTargetingGroups", "hasRequiredGroupsLoaded", "requiredGroups", "activeGroups", "OnetrustActiveGroups", "split", "filter", "group", "length", "required", "active", "every", "g", "async", "awaitConsentChoice", "choice", "document", "cookie", "indexOf", "once", "func", "apply", "this", "arguments", "hasConsent", "awaitConsent", "err", "error", "join", "warn", "src", "defer", "footer", "referrerpolicy", "el", "createElement", "referrerPolicy", "Object", "keys", "map", "key", "dataValue", "dataset", "onload", "onerror", "e", "getElementsByTagName", "appendChild", "head", "catch", "readyStates", "domContentLoaded", "readyState", "addEventListener", "_arity", "n", "fn", "a0", "a1", "a2", "a3", "a4", "a5", "a6", "a7", "a8", "a9", "Error", "_isPlaceholder", "a", "_curry1", "f1", "_curry2", "f2", "b", "_b", "_a", "_curryN", "received", "combined", "argsIdx", "left", "combinedIdx", "applyConsentFunc", "cat", "isAprovedConsentFunc", "consentGroups", "hasConsentOrNot", "userConsent", "loadScript", "loadFn", "curryN", "applyFn", "isAprovedFn", "site", "host", "otId", "otIds", "some", "otSite", "hasOtIdForSite", "targetSite", "getOnetrustIdForSite", "fallbackSite", "sites", "fallbackSiteId", "onetrustFallbackSite", "exported", "locals", "update", "refs", "options", "setAttributes", "insert", "domAPI", "insertStyleElement", "use", "insertOptions", "unuse", "overrideStyling", "element", "tag", "targetAttr", "targetAttrValue", "getAttribute", "undefined", "getElementByAttributeMatch", "siteName", "fallback", "match", "getSiteName", "cssoverride", "styles", "allerUserConsent", "queue", "allerUserConsentQueue", "push", "callback", "freeze", "allerUserConsentLib", "onetrustId", "getOnetrustID", "stubOnFooter", "enableConsentFilter", "main", "then", "Array", "isArray", "forEach", "module", "exports", "id", "useSourceMap", "list", "toString", "item", "content", "cssMapping", "btoa", "sourceMapping", "sourceMap", "unescape", "encodeURIComponent", "JSON", "stringify", "sourceURLs", "sources", "source", "sourceRoot", "concat", "cssWithMappingToString", "i", "modules", "mediaQuery", "alreadyImportedModules", "stylesInDOM", "getIndexByIdentifier", "identifier", "modulesToDom", "idCountMap", "identifiers", "base", "count", "indexByIdentifier", "obj", "css", "media", "supports", "layer", "references", "updater", "addElementStyle", "byIndex", "splice", "api", "newObj", "remove", "lastIdentifiers", "newList", "index", "newLastIdentifiers", "_i", "_index", "memo", "style", "target", "styleTarget", "querySelector", "HTMLIFrameElement", "contentDocument", "getTarget", "attributes", "styleElement", "nonce", "setAttribute", "textStore", "replaceText", "replacement", "Boolean", "needLayer", "styleSheet", "cssText", "cssNode", "createTextNode", "childNodes", "removeChild", "insertBefore", "singletonData", "singleton", "singletonCounter", "styleIndex", "__webpack_module_cache__", "__webpack_require__", "moduleId", "cachedModule", "__webpack_modules__", "getter", "__esModule", "d", "definition", "o", "defineProperty", "enumerable", "get", "prop", "prototype", "hasOwnProperty", "call" ], "mappings": ";2BAYe,SAASA,EAAQC,GAAW,SAAEC,EAAW,GAAb,QAAiBC,EAAU,IAA3B,aAAkCC,EAAe,gBAAmB,GAAIC,GAC/G,IAAIC,EACAC,EACAC,EAAeP,IAEnB,MAAMQ,EAAmBC,GAAQL,GAAwC,mBAAjBA,EAA8BA,IAAiBK,EAiBvG,OAdIH,EADAC,EACSG,QAAQC,QAAQH,EAAgBD,IAEhCG,QAAQE,KAAK,CAClB,IAAIF,SAAQ,CAACG,EAAGC,IAAWT,EAAaU,WAAWD,EAAQZ,EAASC,KACpE,IAAIO,SAASC,IACTN,EAAaW,aAAY,KACrB,IAAIP,EAAMT,IACNS,GACAE,EAAQH,EAAgBC,MAE7BR,QAERgB,SAAQ,IAAMC,cAAcb,KAE5BC,EClCI,SAASa,KAAOC,GAEzBC,OAAOC,SAASC,OAAOC,SAAS,UAClCC,QAAQN,IAAI,cAAe,iBAAkB,OAAQC,GCGlD,MAAMM,EAAS,CAClBC,UAAW,QACXC,YAAa,QACbC,WAAY,QACZC,UAAW,QACXC,YAAa,SAGXC,EAA0B,C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OV,OAHAqF,EAAoBF,GAAUpF,EAAQA,EAAOC,QAASkF,GAG/CnF,EAAOC,QCpBfkF,EAAoBjL,EAAK8F,IACxB,IAAIuF,EAASvF,GAAUA,EAAOwF,WAC7B,IAAOxF,EAAiB,QACxB,IAAM,EAEP,OADAmF,EAAoBM,EAAEF,EAAQ,CAAEvK,EAAGuK,IAC5BA,GCLRJ,EAAoBM,EAAI,CAACxF,EAASyF,KACjC,IAAI,IAAIvM,KAAOuM,EACXP,EAAoBQ,EAAED,EAAYvM,KAASgM,EAAoBQ,EAAE1F,EAAS9G,IAC5EH,OAAO4M,eAAe3F,EAAS9G,EAAK,CAAE0M,YAAY,EAAMC,IAAKJ,EAAWvM,MCJ3EgM,EAAoBQ,EAAI,CAACxD,EAAK4D,IAAU/M,OAAOgN,UAAUC,eAAeC,KAAK/D,EAAK4D,GCGxDZ,EAAoB,M", "file": "./public/common/ads/2.3.13/consent.js", "sourcesContent": [ "/**\n * Returns a promise that waits for an expression to be true - or fails after `timeout` ms. Once\n * `predicate()` is truthy, the promise is resolved with the returned value. Example use case: wait\n * for a global variable to become available.\n *\n * @param {() => any} predicate\n * @param {{\n * timeout?: number // Timeout in ms, 0 means no timeout.\n * checkInterval?: number\n * }} options\n * @return {Promise<any>}\n */\nexport default function waitFor(predicate, { interval = 50, timeout = 10000, timeoutError = \"timeoutError\" } = {}, responseFunc) {\n let intervalId\n let result\n let currentState = predicate()\n\n const resolveResponse = (val) => responseFunc && typeof responseFunc === 'function' ? responseFunc() : val\n\n if (currentState) {\n result = Promise.resolve(resolveResponse(currentState));\n } else {\n result = Promise.race([\n new Promise((_, reject) => intervalId = setTimeout(reject, timeout, timeoutError)),\n new Promise((resolve) => {\n intervalId = setInterval(() => {\n let val = predicate()\n if (val) {\n resolve(resolveResponse(val))\n }\n }, interval)\n }),\n ]).finally(() => clearInterval(intervalId))\n }\n return result\n}\n", "export default function log(...args) {\n\n if (window.location.search.includes('debug')) {\n console.log('%cConsent: ', 'color: purple;', '-', ...args);\n }\n};\n", "import waitFor from '../utils/waitFor'\nimport log from \"../utils/log\"\n\n\n/** @typedef{string} Group */\n/** @enum {Group} */\nexport const Groups = {\n Essential: 'C0001',\n Performance: 'C0002',\n Functional: 'C0003',\n Targeting: 'C0004',\n SocialMedia: 'C0005',\n}\n\nconst requiredTargetingGroups = [\n Groups.Essential,\n Groups.Performance,\n Groups.Functional,\n Groups.Targeting,\n]\n\nconst hasRequiredGroups = (/** @type {Group[]} */ required, /** @type {Group[]} */ active) =>\n active.length >= required.length && [...required].every((g) => active.includes(g))\n\nconst parseActiveGroupsString = (/** @type {string} */ groups) =>\n (groups || '').split(',').filter(group => group.length > 0)\n\n\n \nconst hasRequiredGroupsLoaded = (requiredGroups) => {\n\n const activeGroups = parseActiveGroupsString(window.OnetrustActiveGroups || '') \n return hasRequiredGroups(requiredGroups, activeGroups) ? activeGroups : null \n}\n\n// Check if CMP Banner is closed which means user has seen/taken action on the consent choices\nconst isOTBannerClosed = () => !!(document && document.cookie && document.cookie.indexOf(\"OptanonAlertBoxClosed=\") >= 0);\n\nconst areGroupsLoaded = () => !!(window.OnetrustActiveGroups);\n\n\n// const setStyle = (el, css) => el.setAttribute('style', `${el.getAttribute('style')};${css}`);\n\n// export const setBodyStyle = async (style) => {\n// domContentLoaded();\n// const bodyElem = document.getElementsByTagName('body')[0];\n// if (bodyElem) {\n// setStyle(bodyElem, style);\n// }\n// else {\n// console.error(`initNoneConsent:: body is not available for applying style ${style}`);\n// }\n// }\n// // Freeze scrolling page when cmp box is shown\n// function handleClosedBanner() {\n// const options = isOTBannerClosed() ?\n// {style: `overflow: initial`, timeout: 1000} : {style: `overflow: hidden`, timeout: 0};\n// setTimeout(() => setBodyStyle(options.style), options.timeout);\n// }\n// function OptanonWrapper() {\n// handleClosedBanner();\n// }\n// // Fallback if OTBannerClosed cookie already is set\n// handleClosedBanner();\n\n\nexport async function awaitConsentChoice ( requiredGroups = requiredTargetingGroups, timeout = 60 * 1e3 ) {\n\n log('awaitConsentChoice wait for BannerClosed && isOTGroupsLoaded ', requiredGroups)\n\n const hasUserChoice = () => {\n const choice = isOTBannerClosed() && areGroupsLoaded()\n if(choice) {\n log('areGroupsLoaded!!')\n }\n return choice\n }\n\n // Check if we have consent by match the requiredGroups\n return await waitFor( hasUserChoice, { timeout}, () => hasRequiredGroupsLoaded(requiredGroups) )\n}\n \n/**\n * Wait for OneTrust consent groups\n * @summary If the description is long, write your summary here. Otherwise, feel free to remove this.\n * @param {Group[]} requiredGroups - Consent groups required, default to all groups\n * @param {number} timeout\n * @return {Promise<Group[]>} Brief description of the returning value here.\n */\nexport async function awaitConsent( requiredGroups = requiredTargetingGroups, timeout = 60 * 1e3 ) { \n return await waitFor(\n () => hasRequiredGroupsLoaded(requiredGroups),\n { timeout }\n )\n}", "export const applyFn = (fn = () => {}) => {\n if (typeof fn === 'function') {\n fn();\n}}\n\nexport const random = (min, max) => {\n min = Math.ceil(min);\n max = Math.floor(max);\n return Math.floor(Math.random() * (max - min + 1) + min);\n}\n\nexport const isDebug = () => window.location.search.includes('debug');\n\n//////////////\n/////////////////////////////////////////////////////////////////////////////\n/////////\n\n\n/**\n * Get the alphabet position of a character\n * @param {string} char\n * @returns {number} alphabet position or -1 if unknown\n */\nexport const characterPosition = char => {\n const code = char.toUpperCase().charCodeAt(0)\n return code > 64 && code < 91 ? (code - 64) - 1 : -1;\n}\n\nexport const once = (func) => {\n let result;\n\n return function () {\n if (func) {\n result = func.apply(this, arguments);\n func = null;\n }\n\n return result;\n }\n};\n\nexport const getSiteName = (fallback = 'hant') => {\n const pattern = /\\.(\\w{4,})\\./;\n const match = window.location.host.match(pattern);\n return match && match[1] ? match[1] : fallback;\n}", "import { awaitConsent, awaitConsentChoice } from './onetrust'\nimport { once } from \"../utils/utils\";\n\n/**\n * Ensure that we have consent consent. The function is omnipotent - since it's wrapped in `once` - it\n * can be called multiple times, and the same Promise will always be returned - and resolved or\n * rejected when and if the user has given or refused consent to storing cookies.\n * Singleton promise that tells whether or/when we have consent from the OneTrust consent manager.\n *\n * @return {Promise}\n */\nexport const hasConsent = once(async (...args) => {\n try {\n const groups = await awaitConsent(args);\n return groups\n } catch (err) {\n if (err === \"timeoutError\") {\n console.warn('Failed to get consent due to timeout')\n }else{\n console.error(`[ERROR]: Failed to get consent: `, err);\n throw `Failed to get consent for ${args.join(', ')}`\n }\n }\n})\n\n/**\n * Promise that tells whether we have consent from the OneTrust consent manager or Not.\n * \n * This tells is if user has given or refused consent to storing cookies according to given (args) group.\n * Essential: 'C0001'\n * Performance: 'C0002'\n * Functional: 'C0003'\n * Targeting: 'C0004'\n * SocialMedia: 'C0005'\n *\n * @return {Promise} Response includes Approved Groups, or null if declined\n */\nexport const hasConsentOrNot = async (...args) => {\n try {\n const groups = await awaitConsentChoice(args);\n return groups\n } catch (err) {\n if (err === \"timeoutError\") {\n console.warn('Failed to get consent due to timeout')\n }else{\n console.error(`[ERROR]: Failed to get consent: `, err);\n throw `Failed to get consent for ${args.join(', ')}`\n }\n }\n}\n\n", "/**\n * Creates a new script element and appends it to the head\n *\n * @param {string} src\n * @param {{\n * async?: boolean\n * defer?: boolean\n * }} attributes\n * @return {Promise<any>}\n */\n\nconst loadScript = async (src, { async = false, defer = true, footer = false, referrerpolicy, ...args } = {}) => {\n return new Promise((resolve, reject) => {\n const el = document.createElement('script');\n el.src = src;\n el.defer = defer;\n el.async = async;\n if(referrerpolicy) {\n el.referrerPolicy = referrerpolicy; \n }\n Object.keys(args).map(key => {\n const dataValue = args[key];\n if (typeof dataValue === 'undefined') {\n throw(`Invalid value for ${key}`);\n }\n return el.dataset[key] = dataValue;\n });\n el.onload = () => resolve()\n el.onerror = (e) => reject(`Load for ${src} failed: ${e}`)\n if (footer) {\n typeof document.getElementsByTagName('footer') !== 'undefined' ? document.getElementsByTagName('footer')[0].appendChild(el) : console.error(`footer is not available for applying load script`);\n } else {\n document.head.appendChild(el);\n }\n \n })\n .catch( e => {\n console.log(e);\n });\n}\n\nexport default loadScript;", "import {once} from \"../utils/utils\";\n\n/** @enum {string} Readystates */\nexport const readyStates = {\n Interactive: 'interactive',\n Complete: 'complete'\n};\n\nexport const domContentLoaded = once(async () => {\n return new Promise((resolve) => {\n if (document.readyState === readyStates.Interactive || document.readyState === readyStates.Complete) {\n return resolve();\n }\n else {\n document.addEventListener('DOMContentLoaded', () => {\n return resolve();\n });\n }\n })\n});", "export default function _arity(n, fn) {\n /* eslint-disable no-unused-vars */\n switch (n) {\n case 0:\n return function () {\n return fn.apply(this, arguments);\n };\n\n case 1:\n return function (a0) {\n return fn.apply(this, arguments);\n };\n\n case 2:\n return function (a0, a1) {\n return fn.apply(this, arguments);\n };\n\n case 3:\n return function (a0, a1, a2) {\n return fn.apply(this, arguments);\n };\n\n case 4:\n return function (a0, a1, a2, a3) {\n return fn.apply(this, arguments);\n };\n\n case 5:\n return function (a0, a1, a2, a3, a4) {\n return fn.apply(this, arguments);\n };\n\n case 6:\n return function (a0, a1, a2, a3, a4, a5) {\n return fn.apply(this, arguments);\n };\n\n case 7:\n return function (a0, a1, a2, a3, a4, a5, a6) {\n return fn.apply(this, arguments);\n };\n\n case 8:\n return function (a0, a1, a2, a3, a4, a5, a6, a7) {\n return fn.apply(this, arguments);\n };\n\n case 9:\n return function (a0, a1, a2, a3, a4, a5, a6, a7, a8) {\n return fn.apply(this, arguments);\n };\n\n case 10:\n return function (a0, a1, a2, a3, a4, a5, a6, a7, a8, a9) {\n return fn.apply(this, arguments);\n };\n\n default:\n throw new Error('First argument to _arity must be a non-negative integer no greater than ten');\n }\n}", "export default function _isPlaceholder(a) {\n return a != null && typeof a === 'object' && a['@@functional/placeholder'] === true;\n}", "import _isPlaceholder from \"./_isPlaceholder.js\";\n/**\n * Optimized internal one-arity curry function.\n *\n * @private\n * @category Function\n * @param {Function} fn The function to curry.\n * @return {Function} The curried function.\n */\n\nexport default function _curry1(fn) {\n return function f1(a) {\n if (arguments.length === 0 || _isPlaceholder(a)) {\n return f1;\n } else {\n return fn.apply(this, arguments);\n }\n };\n}", "import _curry1 from \"./_curry1.js\";\nimport _isPlaceholder from \"./_isPlaceholder.js\";\n/**\n * Optimized internal two-arity curry function.\n *\n * @private\n * @category Function\n * @param {Function} fn The function to curry.\n * @return {Function} The curried function.\n */\n\nexport default function _curry2(fn) {\n return function f2(a, b) {\n switch (arguments.length) {\n case 0:\n return f2;\n\n case 1:\n return _isPlaceholder(a) ? f2 : _curry1(function (_b) {\n return fn(a, _b);\n });\n\n default:\n return _isPlaceholder(a) && _isPlaceholder(b) ? f2 : _isPlaceholder(a) ? _curry1(function (_a) {\n return fn(_a, b);\n }) : _isPlaceholder(b) ? _curry1(function (_b) {\n return fn(a, _b);\n }) : fn(a, b);\n }\n };\n}", "import _arity from \"./_arity.js\";\nimport _isPlaceholder from \"./_isPlaceholder.js\";\n/**\n * Internal curryN function.\n *\n * @private\n * @category Function\n * @param {Number} length The arity of the curried function.\n * @param {Array} received An array of arguments received thus far.\n * @param {Function} fn The function to curry.\n * @return {Function} The curried function.\n */\n\nexport default function _curryN(length, received, fn) {\n return function () {\n var combined = [];\n var argsIdx = 0;\n var left = length;\n var combinedIdx = 0;\n\n while (combinedIdx < received.length || argsIdx < arguments.length) {\n var result;\n\n if (combinedIdx < received.length && (!_isPlaceholder(received[combinedIdx]) || argsIdx >= arguments.length)) {\n result = received[combinedIdx];\n } else {\n result = arguments[argsIdx];\n argsIdx += 1;\n }\n\n combined[combinedIdx] = result;\n\n if (!_isPlaceholder(result)) {\n left -= 1;\n }\n\n combinedIdx += 1;\n }\n\n return left <= 0 ? fn.apply(this, combined) : _arity(left, _curryN(length, combined, fn));\n };\n}", "import _arity from \"./internal/_arity.js\";\nimport _curry1 from \"./internal/_curry1.js\";\nimport _curry2 from \"./internal/_curry2.js\";\nimport _curryN from \"./internal/_curryN.js\";\n/**\n * Returns a curried equivalent of the provided function, with the specified\n * arity. The curried function has two unusual capabilities. First, its\n * arguments needn't be provided one at a time. If `g` is `R.curryN(3, f)`, the\n * following are equivalent:\n *\n * - `g(1)(2)(3)`\n * - `g(1)(2, 3)`\n * - `g(1, 2)(3)`\n * - `g(1, 2, 3)`\n *\n * Secondly, the special placeholder value [`R.__`](#__) may be used to specify\n * \"gaps\", allowing partial application of any combination of arguments,\n * regardless of their positions. If `g` is as above and `_` is [`R.__`](#__),\n * the following are equivalent:\n *\n * - `g(1, 2, 3)`\n * - `g(_, 2, 3)(1)`\n * - `g(_, _, 3)(1)(2)`\n * - `g(_, _, 3)(1, 2)`\n * - `g(_, 2)(1)(3)`\n * - `g(_, 2)(1, 3)`\n * - `g(_, 2)(_, 3)(1)`\n *\n * @func\n * @memberOf R\n * @since v0.5.0\n * @category Function\n * @sig Number -> (* -> a) -> (* -> a)\n * @param {Number} length The arity for the returned function.\n * @param {Function} fn The function to curry.\n * @return {Function} A new, curried function.\n * @see R.curry\n * @example\n *\n * const sumArgs = (...args) => R.sum(args);\n *\n * const curriedAddFourNumbers = R.curryN(4, sumArgs);\n * const f = curriedAddFourNumbers(1, 2);\n * const g = f(3);\n * g(4); //=> 10\n */\n\nvar curryN =\n/*#__PURE__*/\n_curry2(function curryN(length, fn) {\n if (length === 1) {\n return _curry1(fn);\n }\n\n return _arity(length, _curryN(length, [], fn));\n});\n\nexport default curryN;", "import { hasConsent, hasConsentOrNot } from \"./hasConsent\";\nimport {Groups} from \"./onetrust\";\nimport loadScript from \"../utils/loadscript\";\nimport { domContentLoaded } from \"../utils/domContentLoaded\";\nimport {curryN} from \"ramda\";\nimport waitFor from \"../utils/waitFor\";\nimport log from \"../utils/log\";\n\n/////////\n/////////////////////////////////////////\n/////////\n\n/**\n * Apply a function when a specific Onetrust category is accepted\n * @param {string} cat - i.e C0001\n * @param {function} fn\n * @param {array} args - Parameters for the requested function\n * @returns {Promise}\n */\nconst applyConsentFunc = async (cat, fn, ...args) => {\n const consent = await hasConsent(cat);\n if (consent) {\n await domContentLoaded();\n fn.apply(null, args)\n }\n};\n\n/**\n * Apply a function with ConsentResponse when a specific Onetrust category is accepted\n * @returns {Promise}\n */\n const isAprovedConsentFunc = async (cat, fn, ...args) => {\n\n const consentGroups = await hasConsentOrNot(cat);\n log('consentGroups', cat, consentGroups)\n if (fn && typeof fn === 'function') {\n\n await domContentLoaded();\n fn.apply(null, [consentGroups, ...args])\n } else {\n return !!consentGroups\n }\n }\n\n \n/**\n * Creates an api for loading scripts and executing functions.\n * All categories have mapped expressions in the form of\n * 'load{label}Script' for scripts and 'applyFor{label}' for function\n *\n * Essential: 'C0001'\n * Performance: 'C0002'\n * Functional: 'C0003'\n * Targeting: 'C0004'\n * SocialMedia: 'C0005'\n *\n * @returns {undefined}\n *\n */\nconst enableConsentFilter = () => {\n window.userConsent = { loadScript, waitFor };\n Object.keys(Groups).map( key => {\n let loadFn = curryN(3, applyConsentFunc)(Groups[key], loadScript);;\n let applyFn = curryN(2, applyConsentFunc)(Groups[key]);\n let isAprovedFn = curryN(2, isAprovedConsentFunc)(Groups[key]);\n\n\n/////////////////\n//////////////////////////////////////////////////////\n////////////////////////////////////////////////////////\n/////////////////\n\n window.userConsent[`load${key}Script`] = loadFn;\n window.userConsent[`applyFor${key}`] = applyFn;\n window.userConsent[`is${key}Approved`] = isAprovedFn;\n });\n\n /*\n * window.userConsent.is[GroupKey]Approved takes a async callback(response) \n * response is null if user did not approve, ...or if Approved, window.OnetrustActiveGroups are returned\n *\n * Example how to use it for Targeting Group (Show Targeting Ads):\n * window.userConsent.isTargetingApproved( async (response) => {\n * if (response) { \n * go ahead you are approved for Targeting actions \n * } else {\n * do actions for Non-Approved Targeting\n * } \n * });\n */\n\n};\n\nexport default enableConsentFilter;", "import otIds from './onetrust.json';\n\nconst onetrustFallbackSite = () => {\n\tconst sites = Object.keys(otIds);\n\tconst fallbackSiteId = sites?.[0];\n\n\tif (!fallbackSiteId) {\n\t\tconsole.error('Invalid otId configuration');\n\t}\n\n\treturn fallbackSiteId;\n}\n\nconst hasOtIdForSite = site => Object.keys(otIds).some( otSite => site.includes(otSite));\n\nconst getOnetrustIdForSite = site => {\n\tconst targetSite = Object.keys(otIds).filter( otSite => site.includes(otSite))\n\treturn otIds && otIds[targetSite] ? otIds[targetSite] : site;\n}\n\nconst getOnetrustID = (site = window.location.host) => {\n\tlet otId;\n\tif (hasOtIdForSite(site)) {\n\t\totId = getOnetrustIdForSite(site);\n\t}\n\telse {\n\t\tconst fallbackSite = onetrustFallbackSite();\n\t\totId = otIds[fallbackSite];\n\t\tconsole.warn(`Failed to retrieve otId for ${site}, using ${fallbackSite} as fallback with id ${otId}`)\n\t\tif (!otId) {\n\t\t\tthrow Error('Missing ot configuration')\n\t\t}\n\t}\n\n\treturn otId;\n}\n\nexport default getOnetrustID;", "\n var exported = {};\n\n import API from \"!../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n import domAPI from \"!../../node_modules/style-loader/dist/runtime/singletonStyleDomAPI.js\";\n import insertFn from \"!../../node_modules/style-loader/dist/runtime/insertBySelector.js\";\n import setAttributes from \"!../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js\";\n import insertStyleElement from \"!../../node_modules/style-loader/dist/runtime/insertStyleElement.js\";\n \n import content, * as namedExport from \"!!../../node_modules/css-loader/dist/cjs.js!./onetrust.css\";\n \n if (content && content.locals) {\n exported.locals = content.locals;\n }\n \n\nvar refs = 0;\nvar update;\nvar options = {};\n\n;\noptions.setAttributes = setAttributes;\n\n options.insert = insertFn.bind(null, \"head\");\n \noptions.domAPI = domAPI;\noptions.insertStyleElement = insertStyleElement;\n\nexported.use = function(insertOptions) {\n options.options = insertOptions || {};\n\n if (!(refs++)) {\n update = API(content, options);\n }\n\n return exported;\n};\nexported.unuse = function() {\n if (refs > 0 && !--refs) {\n update();\n update = null;\n }\n};\n\n\n\nexport * from \"!!../../node_modules/css-loader/dist/cjs.js!./onetrust.css\";\n export default exported;\n", "import styles from \"./onetrust.css\";\nimport {getElementByAttributeMatch} from \"../utils/html\";\nimport {getSiteName} from \"../utils/utils\";\n\n/**\n * Retrieves the script tag that contains a src attribute which contain 'consent'.\n * Our custom styling is applied if the script element contain a data attribute 'cssoveride'\n * which contain the current domain\n */\nexport const overrideStyling = () => {\n\tconst element = getElementByAttributeMatch('script', 'src', 'consent');\n\tconst siteName = getSiteName()\n\tconst {cssoverride = ''} = element.dataset;\n\n\tif (cssoverride.includes(siteName)) {\n\t\tstyles.use();\n }\n else {\n \t\tconsole.warn(`No CSS override applied for ${siteName}`)\n }\n}\n\nexport default overrideStyling;", "/**\n * Retrieves a specific html tag from partly matching a data attribute\n * @param tag {string} requested html element\n * @param targetAttr {string} The attribute to use for comparision.\n * @param search {string} the search string which is partly compared\n * @return {object} The identified tag or undefined'\n */\nimport {mapObjIndexed} from \"ramda\";\n\nexport const getElementByAttributeMatch = (tag, targetAttr, search) => {\n\tconst elements = document.getElementsByTagName(tag);\n\tconst result = [...elements].filter( element => {\n\t\tconst targetAttrValue = element.getAttribute(targetAttr) ? element.getAttribute(targetAttr) : '';\n\t\treturn targetAttrValue && targetAttrValue.includes(search);\n\t});\n\n\treturn result && result[0] ? result[0] : undefined\n}", "import enableConsentFilter from \"./consentFilter\";\nimport loadScript from \"../utils/loadscript\";\nimport getOnetrustID from \"../onetrust\";\nimport {domContentLoaded} from \"../utils/domContentLoaded\";\n//////////////\n///////////////////////////////////////\n/////////////////////////////////////////////////////\n/////////\n\n\n/////////\n///////////////////////////////////////////////////\n/////////\n\n////////////\n//////////////////////////////////////////////////\n/////////\n\nimport {overrideStyling} from \"../otstyling\";\n\nconst main = async () => {\n\n//////////////\n///////////////////////\n///////////\n\n////////////////\n////////////////\n///////////////////////\n///\n///////////\n \n\n const onetrustID = window.onetrustId ? window.onetrustId : getOnetrustID();\n const stubOnFooter = window.stubOnFooter ? window.stubOnFooter: false;\n\n overrideStyling()\n if (stubOnFooter) {\n await domContentLoaded();\n }\n\n/////////////////////////////////\n///////\n////////////////////////////////////////////////////////////////////////////////\n///////////////////\n///////////////////\n///////////////////////////\n/////////////////////////////////\n//////////////////////////////////\n///////\n///\n/////////////\n/////////////////////\n///\n///////////\n \n enableConsentFilter();\n window.userConsent.loadScript = loadScript;\n}\nlet allerUserConsent = window.allerUserConsent || {};\nallerUserConsent.queue = allerUserConsent.queue || [];\n\nconst allerUserConsentQueue = () => {\n window.allerUserConsent.queue = {};\n\n window.allerUserConsent.queue.push = function (callback) {\n callback();\n };\n\n Object.freeze(window.allerUserConsent);\n}\n\nconst allerUserConsentLib = async () => {\n await main().then(() => {});\n if (window.allerUserConsent == null) {\n window.allerUserConsent = {};\n allerUserConsentQueue();\n\n return window.allerUserConsent;\n }\n\n if (typeof allerUserConsent == 'object' && Array.isArray(window.allerUserConsent.queue)) {\n window.allerUserConsent.queue.forEach((callback) => callback());\n allerUserConsentQueue();\n\n return window.allerUserConsent;\n }\n}\n\nallerUserConsent = (async () => {\n const allerUserConsentApi = await allerUserConsentLib();\n return allerUserConsentApi;\n})();", "exports = module.exports = require(\"../../node_modules/css-loader/dist/runtime/api.js\")(false);\n// Module\nexports.push([module.id, \"#onetrust-banner-sdk .has-reject-all-button .banner-actions-container {\\n display: flex !important;\\n flex-direction: row-reverse !important;\\n}\\n\\n#onetrust-banner-sdk .has-reject-all-button .banner-actions-container button {\\n margin-left: 0px !important;\\n margin-right: 0px !important;\\n color: blue;\\n}\\n#onetrust-banner-sdk #onetrust-reject-all-handler {\\n margin-left: 10px !important;\\n}\\n\\n@media only screen and (max-width: 600px) {\\n #onetrust-banner-sdk .has-reject-all-button .banner-actions-container {\\n flex-direction: column-reverse !important;\\n }\\n\\n #onetrust-banner-sdk #onetrust-reject-all-handler {\\n margin-left: initial !important;\\n }\\n\\n\\n #onetrust-banner-sdk .has-reject-all-button #onetrust-pc-btn-handler {\\n padding: 12px 10px !important;\\n }\\n\\n\\n /* Force space below button group */\\n #onetrust-banner-sdk #onetrust-button-group {\\n padding-bottom: 20px !important;\\n }\\n\\n\\n}\", \"\"]);\n\n", "\"use strict\";\n\n/*\n MIT License http://www.opensource.org/licenses/mit-license.php\n Author Tobias Koppers @sokra\n*/\n// css base code, injected by the css-loader\nmodule.exports = function (useSourceMap) {\n var list = []; // return the list of modules as css string\n\n list.toString = function toString() {\n return this.map(function (item) {\n var content = cssWithMappingToString(item, useSourceMap);\n\n if (item[2]) {\n return '@media ' + item[2] + '{' + content + '}';\n } else {\n return content;\n }\n }).join('');\n }; // import a list of modules into the list\n\n\n list.i = function (modules, mediaQuery) {\n if (typeof modules === 'string') {\n modules = [[null, modules, '']];\n }\n\n var alreadyImportedModules = {};\n\n for (var i = 0; i < this.length; i++) {\n var id = this[i][0];\n\n if (id != null) {\n alreadyImportedModules[id] = true;\n }\n }\n\n for (i = 0; i < modules.length; i++) {\n var item = modules[i]; // skip already imported module\n // this implementation is not 100% perfect for weird media query combinations\n // when a module is imported multiple times with different media queries.\n // I hope this will never occur (Hey this way we have smaller bundles)\n\n if (item[0] == null || !alreadyImportedModules[item[0]]) {\n if (mediaQuery && !item[2]) {\n item[2] = mediaQuery;\n } else if (mediaQuery) {\n item[2] = '(' + item[2] + ') and (' + mediaQuery + ')';\n }\n\n list.push(item);\n }\n }\n };\n\n return list;\n};\n\nfunction cssWithMappingToString(item, useSourceMap) {\n var content = item[1] || '';\n var cssMapping = item[3];\n\n if (!cssMapping) {\n return content;\n }\n\n if (useSourceMap && typeof btoa === 'function') {\n var sourceMapping = toComment(cssMapping);\n var sourceURLs = cssMapping.sources.map(function (source) {\n return '/*# sourceURL=' + cssMapping.sourceRoot + source + ' */';\n });\n return [content].concat(sourceURLs).concat([sourceMapping]).join('\\n');\n }\n\n return [content].join('\\n');\n} // Adapted from convert-source-map (MIT)\n\n\nfunction toComment(sourceMap) {\n // eslint-disable-next-line no-undef\n var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap))));\n var data = 'sourceMappingURL=data:application/json;charset=utf-8;base64,' + base64;\n return '/*# ' + data + ' */';\n}", "\"use strict\";\n\nvar stylesInDOM = [];\n\nfunction getIndexByIdentifier(identifier) {\n var result = -1;\n\n for (var i = 0; i < stylesInDOM.length; i++) {\n if (stylesInDOM[i].identifier === identifier) {\n result = i;\n break;\n }\n }\n\n return result;\n}\n\nfunction modulesToDom(list, options) {\n var idCountMap = {};\n var identifiers = [];\n\n for (var i = 0; i < list.length; i++) {\n var item = list[i];\n var id = options.base ? item[0] + options.base : item[0];\n var count = idCountMap[id] || 0;\n var identifier = \"\".concat(id, \" \").concat(count);\n idCountMap[id] = count + 1;\n var indexByIdentifier = getIndexByIdentifier(identifier);\n var obj = {\n css: item[1],\n media: item[2],\n sourceMap: item[3],\n supports: item[4],\n layer: item[5]\n };\n\n if (indexByIdentifier !== -1) {\n stylesInDOM[indexByIdentifier].references++;\n stylesInDOM[indexByIdentifier].updater(obj);\n } else {\n var updater = addElementStyle(obj, options);\n options.byIndex = i;\n stylesInDOM.splice(i, 0, {\n identifier: identifier,\n updater: updater,\n references: 1\n });\n }\n\n identifiers.push(identifier);\n }\n\n return identifiers;\n}\n\nfunction addElementStyle(obj, options) {\n var api = options.domAPI(options);\n api.update(obj);\n\n var updater = function updater(newObj) {\n if (newObj) {\n if (newObj.css === obj.css && newObj.media === obj.media && newObj.sourceMap === obj.sourceMap && newObj.supports === obj.supports && newObj.layer === obj.layer) {\n return;\n }\n\n api.update(obj = newObj);\n } else {\n api.remove();\n }\n };\n\n return updater;\n}\n\nmodule.exports = function (list, options) {\n options = options || {};\n list = list || [];\n var lastIdentifiers = modulesToDom(list, options);\n return function update(newList) {\n newList = newList || [];\n\n for (var i = 0; i < lastIdentifiers.length; i++) {\n var identifier = lastIdentifiers[i];\n var index = getIndexByIdentifier(identifier);\n stylesInDOM[index].references--;\n }\n\n var newLastIdentifiers = modulesToDom(newList, options);\n\n for (var _i = 0; _i < lastIdentifiers.length; _i++) {\n var _identifier = lastIdentifiers[_i];\n\n var _index = getIndexByIdentifier(_identifier);\n\n if (stylesInDOM[_index].references === 0) {\n stylesInDOM[_index].updater();\n\n stylesInDOM.splice(_index, 1);\n }\n }\n\n lastIdentifiers = newLastIdentifiers;\n };\n};", "\"use strict\";\n\nvar memo = {};\n/* istanbul ignore next */\n\nfunction getTarget(target) {\n if (typeof memo[target] === \"undefined\") {\n var styleTarget = document.querySelector(target); // Special case to return head of iframe instead of iframe itself\n\n if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) {\n try {\n // This will throw an exception if access to iframe is blocked\n // due to cross-origin restrictions\n styleTarget = styleTarget.contentDocument.head;\n } catch (e) {\n // istanbul ignore next\n styleTarget = null;\n }\n }\n\n memo[target] = styleTarget;\n }\n\n return memo[target];\n}\n/* istanbul ignore next */\n\n\nfunction insertBySelector(insert, style) {\n var target = getTarget(insert);\n\n if (!target) {\n throw new Error(\"Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.\");\n }\n\n target.appendChild(style);\n}\n\nmodule.exports = insertBySelector;", "\"use strict\";\n\n/* istanbul ignore next */\nfunction insertStyleElement(options) {\n var element = document.createElement(\"style\");\n options.setAttributes(element, options.attributes);\n options.insert(element, options.options);\n return element;\n}\n\nmodule.exports = insertStyleElement;", "\"use strict\";\n\n/* istanbul ignore next */\nfunction setAttributesWithoutAttributes(styleElement) {\n var nonce = typeof __webpack_nonce__ !== \"undefined\" ? __webpack_nonce__ : null;\n\n if (nonce) {\n styleElement.setAttribute(\"nonce\", nonce);\n }\n}\n\nmodule.exports = setAttributesWithoutAttributes;", "\"use strict\";\n\n/* istanbul ignore next */\nvar replaceText = function replaceText() {\n var textStore = [];\n return function replace(index, replacement) {\n textStore[index] = replacement;\n return textStore.filter(Boolean).join(\"\\n\");\n };\n}();\n/* istanbul ignore next */\n\n\nfunction apply(styleElement, index, remove, obj) {\n var css;\n\n if (remove) {\n css = \"\";\n } else {\n css = \"\";\n\n if (obj.supports) {\n css += \"@supports (\".concat(obj.supports, \") {\");\n }\n\n if (obj.media) {\n css += \"@media \".concat(obj.media, \" {\");\n }\n\n var needLayer = typeof obj.layer !== \"undefined\";\n\n if (needLayer) {\n css += \"@layer\".concat(obj.layer.length > 0 ? \" \".concat(obj.layer) : \"\", \" {\");\n }\n\n css += obj.css;\n\n if (needLayer) {\n css += \"}\";\n }\n\n if (obj.media) {\n css += \"}\";\n }\n\n if (obj.supports) {\n css += \"}\";\n }\n } // For old IE\n\n /* istanbul ignore if */\n\n\n if (styleElement.styleSheet) {\n styleElement.styleSheet.cssText = replaceText(index, css);\n } else {\n var cssNode = document.createTextNode(css);\n var childNodes = styleElement.childNodes;\n\n if (childNodes[index]) {\n styleElement.removeChild(childNodes[index]);\n }\n\n if (childNodes.length) {\n styleElement.insertBefore(cssNode, childNodes[index]);\n } else {\n styleElement.appendChild(cssNode);\n }\n }\n}\n\nvar singletonData = {\n singleton: null,\n singletonCounter: 0\n};\n/* istanbul ignore next */\n\nfunction domAPI(options) {\n // eslint-disable-next-line no-undef,no-use-before-define\n var styleIndex = singletonData.singletonCounter++;\n var styleElement = // eslint-disable-next-line no-undef,no-use-before-define\n singletonData.singleton || ( // eslint-disable-next-line no-undef,no-use-before-define\n singletonData.singleton = options.insertStyleElement(options));\n return {\n update: function update(obj) {\n apply(styleElement, styleIndex, false, obj);\n },\n remove: function remove(obj) {\n apply(styleElement, styleIndex, true, obj);\n }\n };\n}\n\nmodule.exports = domAPI;", "// 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\tid: moduleId,\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", "// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};", "// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};", "__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))", "// startup\n// Load entry module and return exports\n// This entry module doesn't tell about it's top-level declarations so it can't be inlined\nvar __webpack_exports__ = __webpack_require__(922);\n" ], "sourceRoot": "" }