UNPKG

@jumpgroup/avacy-banner

Version:

oil.js Opt-In Layer for consent management based on the IAB TCF Standard

25 lines (24 loc) 39.8 kB
<!DOCTYPE html> <html lang="de" class="no-js"> <head> <meta charset="utf-8"/> <title>OIL - Hub-HTML</title> <script>/*! 1.1.2-RELEASE */!function(e){var n={};function t(o){if(n[o])return n[o].exports;var r=n[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,t),r.l=!0,r.exports}t.m=e,t.c=n,t.d=function(e,n,o){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:o})},t.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="//oil.axelspringer.com/release/1.1.2/",t(t.s=62)}([function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.logError=function(){((0,o.isDev)()||(0,r.isVerboseCookieSet)())&&window.console&&s(window.console.error,arguments)},n.logInfo=function(){((0,o.isDev)()||(0,r.isVerboseCookieSet)())&&window.console&&s(window.console.info,arguments)},n.logWarn=function(){((0,o.isDev)()||(0,r.isVerboseCookieSet)())&&window.console&&s(window.console.warn,arguments)},n.logPreviewInfo=function(){((0,o.isDev)()||(0,i.isPreviewMode)()||(0,r.isPreviewCookieSet)()||(0,r.isVerboseCookieSet)())&&s(window.console.info,arguments)};var o=t(1),r=t(6),i=t(2),a="OIL: ";function s(e,n){window.console||(window.console={}),window.console.log||(window.console.log=function(){});var t=[a].concat(Array.prototype.slice.call(n));if(e)try{e.apply(window.console,t)}catch(n){try{e(u(t))}catch(e){}}else window.console.log(u(t))}function u(e){for(var n="",t=0;t<e.length;t++)n+=e[t];return n}},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.OilVersion=void 0,n.isProd=function(){return!1},n.isDev=function(){return!1},n.getOrigin=a,n.sendEventToHostSite=function(e){window.postMessage(e,a()),(0,o.logInfo)("Sent postmessage event: "+e)},n.removeMessageListener=function(e){l(f,e,!1)},n.registerMessageListener=function(e){c(d,e,!1)},n.getClientTimestamp=function(){return Date.now||(Date.now=function(){return(new Date).getTime()}),Date.now()},n.arrayContains=function(e,n){for(var t=e.length,o=0;o<t;o++)if(e[o]===n)return!0;return!1},n.setGlobalOilObject=function(e,n){window[r.OIL_GLOBAL_OBJECT_NAME]||(window[r.OIL_GLOBAL_OBJECT_NAME]={}),window[r.OIL_GLOBAL_OBJECT_NAME][e]=n},n.getGlobalOilObject=function(e){return window[r.OIL_GLOBAL_OBJECT_NAME]?window[r.OIL_GLOBAL_OBJECT_NAME][e]:void 0},n.getLocaleVariantVersion=function(){var e=(0,i.getLocale)();return e&&e.version?e.version:0},n.getCommandCollection=function(){return window.__cmp?window.__cmp.commandCollection:void 0},n.fetchJsonData=function(e){return new Promise(function(n,t){var r=new XMLHttpRequest;(0,o.logInfo)("Fetching data from url: "+e),r.open("GET",e),r.onreadystatechange=function(){if(r.readyState===this.DONE)if(200===r.status)n(JSON.parse(r.responseText));else{var o=void 0;if(0!==r.status){var i=JSON.parse(r.responseText);o=new Error(i.errorMessage)}else o=new Error("Connection error occurred while fetching JSON data from "+e+"!");t(o)}},r.send()})},n.isObject=function(e){return e instanceof Object&&e.constructor===Object};var o=t(0),r=t(5),i=t(2);function a(){return window.location.origin||(window.location.origin=window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")),window.location.origin}var s=window.addEventListener?"addEventListener":"attachEvent",u=window.removeEventListener?"removeEventListener":"removeEvent",c=window[s],l=window[u],d="attachEvent"===s?"onmessage":"message",f="removeEvent"===u?"onmessage":"message";n.OilVersion={get:function(){return"1.1.2-RELEASE"},getLatestReleaseVersion:function(){return"1.1.2"}}},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.getConfigValue=s,n.isPreviewMode=function(){return s(o.OIL_CONFIG.ATTR_PREVIEW_MODE,!1)},n.isPoiActive=function(){return s(o.OIL_CONFIG.ATTR_ACTIVATE_POI,!1)},n.isSubscriberSetCookieActive=function(){return s(o.OIL_CONFIG.ATTR_SUB_SET_COOKIE,!0)},n.getHubOrigin=c,n.getHubPath=l,n.getPublicPath=d,n.getLocaleUrl=f,n.getIabVendorListUrl=function(){return s(o.OIL_CONFIG.ATTR_IAB_VENDOR_LIST_URL,"https://vendorlist.consensu.org/vendorlist.json")},n.getIabVendorBlacklist=function(){return s(o.OIL_CONFIG.ATTR_IAB_VENDOR_BLACKLIST,void 0)},n.getIabVendorWhitelist=function(){return s(o.OIL_CONFIG.ATTR_IAB_VENDOR_WHITELIST,void 0)},n.getPoiGroupName=function(){return s(o.OIL_CONFIG.ATTR_POI_GROUP_NAME,"default")},n.getCookieExpireInDays=function(){return s(o.OIL_CONFIG.ATTR_COOKIE_EXPIRES_IN_DAYS,31)},n.getLocaleVariantName=p,n.getLanguage=function(){return g(p())},n.getLanguageFromLocale=g,n.getHubLocation=function(){return c()&&l()?c()+l():null},n.resetConfiguration=function(){(0,i.setGlobalOilObject)("CONFIG",null)},n.getCustomPurposes=_,n.getCustomPurposeIds=function(){return _().map(function(e){return e.id})},n.getAdvancedSettingsPurposesDefault=function(){return s(o.OIL_CONFIG.ATTR_ADVANCED_SETTINGS_PURPOSES_DEFAULT,!1)},n.getDefaultToOptin=function(){return s(o.OIL_CONFIG.ATTR_DEFAULT_TO_OPTIN,!1)},n.getLocale=v,n.setLocale=function(e){u(o.OIL_CONFIG.ATTR_LOCALE,e)};var o=t(5),r=t(0),i=t(1);function a(){if(!(0,i.getGlobalOilObject)("CONFIG")){var e=document.querySelector('script[type="application/configuration"]#oil-configuration');null===e&&(0,r.logInfo)("Using default config"),(0,i.setGlobalOilObject)("CONFIG",function(e){var n={};try{e&&e.text&&(n=JSON.parse(e.text),(0,r.logInfo)("Parsed config",n))}catch(e){(0,r.logError)("Error config",e)}return n}(e)),(a=v())&&"string"!=typeof a||void 0!==f()||((0,r.logError)("Incorrect or missing locale parameter found. Please review documentation on how to set the locale object in your configuration."),n="https://oil-backend.herokuapp.com/oil/api/userViewLocales/"+p(),u(o.OIL_CONFIG.ATTR_LOCALE_URL,n)),d()&&(t.p=d())}var n,a;return(0,i.getGlobalOilObject)("CONFIG")}function s(e,n){var t=a();return t&&t[e]?t[e]:n}function u(e,n){a()[e]=n}function c(){var e=s(o.OIL_CONFIG.ATTR_HUB_ORIGIN,"//oil.axelspringer.com");return e?-1!==e.indexOf("http")?e:location.protocol+e:null}function l(){return s(o.OIL_CONFIG.ATTR_HUB_PATH,"/release/"+i.OilVersion.getLatestReleaseVersion()+"/hub.html")}function d(){return s(o.OIL_CONFIG.ATTR_PUBLIC_PATH,void 0)}function f(){return s(o.OIL_CONFIG.ATTR_LOCALE_URL,void 0)}function p(){var e=v();return e||(e="enEN_01"),e&&(0,i.isObject)(e)?e.localeId:e}function g(e){return e.substring(0,2)}function _(){return s(o.OIL_CONFIG.ATTR_CUSTOM_PURPOSES,[])}function v(){return s(o.OIL_CONFIG.ATTR_LOCALE,void 0)}},,,function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.OIL_SPEC={CMP_ID:80,CMP_VERSION:1,LATEST_CONSENT_STRING_VERSION:1},n.OIL_CONFIG={ATTR_ACTIVATE_POI:"poi_activate_poi",ATTR_HUB_ORIGIN:"poi_hub_origin",ATTR_HUB_PATH:"poi_hub_path",ATTR_PUBLIC_PATH:"publicPath",ATTR_HUB_LOCATION:"poi_hub_location",ATTR_SUB_SET_COOKIE:"poi_subscriber_set_cookie",ATTR_PREVIEW_MODE:"preview_mode",ATTR_COOKIE_EXPIRES_IN_DAYS:"cookie_expires_in_days",ATTR_TIMESTAMP:"timestamp",ATTR_PRIVACY_PAGE_URL:"privacy_page_url",ATTR_POI_GROUP_NAME:"poi_group_name",ATTR_ADVANCED_SETTINGS:"advanced_settings",ATTR_PERSIST_MINIMUM_TRACKING:"persist_min_tracking",ATTR_LOCALE:"locale",ATTR_THEME:"theme",ATTR_TIMEOUT:"timeout",ATTR_LOCALE_URL:"locale_url",ATTR_IAB_VENDOR_LIST_URL:"iabVendorListUrl",ATTR_CUSTOM_PURPOSES:"customPurposes",ATTR_IAB_VENDOR_BLACKLIST:"iabVendorBlacklist",ATTR_IAB_VENDOR_WHITELIST:"iabVendorWhitelist",ATTR_ADVANCED_SETTINGS_PURPOSES_DEFAULT:"advanced_settings_purposes_default",ATTR_DEFAULT_TO_OPTIN:"default_to_optin"},n.EVENT_NAME_OPT_IN="oil_optin_done",n.EVENT_NAME_SOI_OPT_IN="oil_soi_optin_done",n.EVENT_NAME_POI_OPT_IN="oil_poi_optin_done",n.PRIVACY_MINIMUM_TRACKING=0,n.PRIVACY_FULL_TRACKING=1,n.EVENT_NAME_AS_PRIVACY_SELECTED="oil_as_cpc_privacy_selected",n.EVENT_NAME_ADVANCED_SETTINGS="oil_click_advanced_settings",n.EVENT_NAME_TIMEOUT="oil_hide_layer",n.EVENT_NAME_COMPANY_LIST="oil_click_company_list",n.EVENT_NAME_THIRD_PARTY_LIST="oil_click_thirdparty_list",n.EVENT_NAME_BACK_TO_MAIN="oil_click_back_to_main",n.EVENT_NAME_NO_COOKIES_ALLOWED="oil_no_cookies_allowed",n.EVENT_NAME_OIL_SHOWN="oil_shown",n.EVENT_NAME_HAS_OPTED_IN="oil_has_optedin",n.POI_FALLBACK_NAME="fallback",n.POI_FALLBACK_GROUP_NAME="group_name",n.POI_PAYLOAD="payload",n.DATAQA_PRIVACY_PAGE="oil-PrivacyPage",n.DATA_CONTEXT_YES="YES",n.DATA_CONTEXT_ADVANCED_SETTINGS="ADVANCEDSETTINGS",n.DATA_CONTEXT_BACK="BACK",n.OIL_PAYLOAD_PRIVACY="p",n.OIL_PAYLOAD_VERSION="v",n.OIL_PAYLOAD_LOCALE_VARIANT_NAME="lvn",n.OIL_PAYLOAD_LOCALE_VARIANT_VERSION="lvv",n.OIL_PAYLOAD_CUSTOM_PURPOSES="cp",n.OIL_GLOBAL_OBJECT_NAME="AS_OIL"},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};n.setSessionCookie=m,n.setDomainCookie=O,n.getOilCookie=I,n.hasOutdatedOilCookie=A,n.getSoiCookie=function(){var e=S(),n=A(e)?function(e){var n=i.default.getJSON(_),t=e.defaultCookieContent;return t.opt_in=n.opt_in,t.version=n.version,t.localeVariantName=n.localeVariantName,t.localeVariantVersion=n.localeVariantVersion,t.customPurposes=L(n.privacy),t.consentData.setConsentLanguage((0,s.getLanguageFromLocale)(n.localeVariantName)),t.consentData.setPurposesAllowed(C(n.privacy)),t.consentData.setVendorsAllowed((0,l.getLimitedVendorIds)()),t.consentData.setGlobalVendorList((0,l.getVendorList)()),t.consentString=t.consentData.getConsentString(),t}(e):I(e);return(0,a.logInfo)("Current Oil data from domain cookie: ",n),n},n.setSoiCookieWithConsentData=function(e,n){return new Promise(function(t,o){(0,l.loadVendorList)().then(function(){var o=S();e.setGlobalVendorList((0,l.getVendorList)());var r={opt_in:!0,version:o.defaultCookieContent.version,localeVariantName:o.defaultCookieContent.localeVariantName,localeVariantVersion:o.defaultCookieContent.localeVariantVersion,customPurposes:n,consentString:e.getConsentString()};O(o.name,r,o.expires),t(r)}).catch(function(e){return o(e)})})},n.buildSoiCookie=h,n.setSoiCookie=function(e){return new Promise(function(n,t){h(e).then(function(e){O(_,e,(0,s.getCookieExpireInDays)()),n(e)}).catch(function(e){return t(e)})})},n.setPreviewCookie=function(){m(p,"true")},n.setVerboseCookie=function(){m(g,"true")},n.removePreviewCookie=function(){i.default.remove(p)},n.removeVerboseCookie=function(){i.default.remove(g)},n.isPreviewCookieSet=function(){return"true"===i.default.get(p)},n.isVerboseCookieSet=function(){return"true"===i.default.get(g)},n.removeSubscriberCookies=y,n.removeHubCookie=function(e){y(),e&&i.default.remove(e+"_"+_)},n.isBrowserCookieEnabled=function(){i.default.set("oil_cookie_exp","cookiedata");var e=w("oil_cookie_exp");return i.default.remove("oil_cookie_exp"),e},n.getStandardPurposesWithConsent=C,n.getCustomPurposesWithConsent=L;var r,i=(r=t(10))&&r.__esModule?r:{default:r},a=t(0),s=t(2),u=t(1),c=t(5),l=t(9),d=t(1),f=t(20).ConsentString,p="oil_preview",g="oil_verbose",_="oil_data",v="oil_data_session";function m(e,n){i.default.set(e,n)}function O(e,n,t){delete n.consentData,i.default.set(e,n,{expires:t})}function I(e){if(V(e.name,Object.keys(e.defaultCookieContent))){var n=i.default.getJSON(e.name);return n.consentData=new f(n.consentString),n}return e.defaultCookieContent}function A(e){return V(e.name,e.outdated_cookie_content_keys)}function h(e){return new Promise(function(n,t){(0,l.loadVendorList)().then(function(){var t=S(),o=t.defaultCookieContent.consentData;o.setGlobalVendorList((0,l.getVendorList)()),o.setPurposesAllowed(C(e)),o.setVendorsAllowed((0,l.getLimitedVendorIds)()),n({opt_in:!0,version:t.defaultCookieContent.version,localeVariantName:t.defaultCookieContent.localeVariantName,localeVariantVersion:t.defaultCookieContent.localeVariantVersion,customPurposes:L(e),consentString:o.getConsentString()})}).catch(function(e){return t(e)})})}function y(){i.default.remove(_),i.default.remove(v)}function C(e){return"object"===(void 0===e?"undefined":o(e))?(0,l.getPurposes)().map(function(e){return e.id}).filter(function(n){return e[n]}):1===e?(0,l.getPurposes)().map(function(e){return e.id}):[]}function L(e,n){return n||(n=(0,s.getCustomPurposes)()),"object"===(void 0===e?"undefined":o(e))?n.map(function(e){return e.id}).filter(function(n){return e[n]}):1===e?n.map(function(e){return e.id}):[]}function w(e){return void 0!==i.default.get(e)}function V(e,n){return function(e,n){if("string"==typeof e&&Array.isArray(n)&&w(e)){var t=i.default.getJSON(e);return n.every(function(e){return"consentData"===e||t.hasOwnProperty(e)})}return!1}(e,n)}function S(){var e=new f;return e.setCmpId(c.OIL_SPEC.CMP_ID),e.setCmpVersion(c.OIL_SPEC.CMP_VERSION),e.setConsentScreen(1),e.setConsentLanguage((0,s.getLanguage)()),e.setPurposesAllowed((0,s.getDefaultToOptin)()?(0,l.getPurposes)().map(function(e){return e.id}):[]),e.setVendorsAllowed((0,s.getDefaultToOptin)()?(0,l.getLimitedVendorIds)():[]),e.setGlobalVendorList((0,l.getVendorList)()),{name:_,expires:(0,s.getCookieExpireInDays)(),defaultCookieContent:{opt_in:!1,version:d.OilVersion.get(),localeVariantName:(0,s.getLocaleVariantName)(),localeVariantVersion:(0,u.getLocaleVariantVersion)(),customPurposes:L((0,s.getDefaultToOptin)()?1:0),consentData:e,consentString:e.getConsentString()},outdated_cookie_content_keys:["opt_in","timestamp","version","localeVariantName","localeVariantVersion","privacy"]}}},,,function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.cachedVendorList=n.DEFAULT_VENDOR_LIST=void 0,n.loadVendorList=function(){return new Promise(function(e){if(s)e(s);else{var t=(0,o.getIabVendorListUrl)();(0,i.fetchJsonData)(t).then(function(t){var o;n.cachedVendorList=s=t,(o=s).vendors=o.vendors.sort(function(e,n){return e.id-n.id}),e(s)}).catch(function(n){(0,r.logError)("OIL getVendorList failed and returned error: "+n+". Falling back to default vendor list!"),e(d())})}})},n.getPurposes=u,n.getPurposeIds=function(){return u().map(function(e){return e.id})},n.getVendors=c,n.getVendorIds=l,n.getVendorListVersion=function(){return s?s.vendorListVersion:a.vendorListVersion},n.getVendorList=d,n.clearVendorListCache=function(){n.cachedVendorList=s=void 0},n.getLimitedVendorIds=function(){var e=void 0;e=s?l():f();var n=(0,o.getIabVendorWhitelist)(),t=(0,o.getIabVendorBlacklist)();return n&&n.length>0?e=e.filter(function(e){return n.indexOf(e)>-1}):t&&t.length>0&&(e=e.filter(function(e){return-1===t.indexOf(e)})),e};var o=t(2),r=t(0),i=t(1),a=n.DEFAULT_VENDOR_LIST={vendorListVersion:36,maxVendorId:380,lastUpdated:"2018-05-30T16:00:15Z",purposeIds:[1,2,3,4,5]},s=n.cachedVendorList=void 0;function u(){return s?s.purposes:p(a.purposeIds)}function c(){return s?s.vendors:p(f())}function l(){return c().map(function(e){return e.id})}function d(){return s||{vendorListVersion:a.vendorListVersion,lastUpdated:a.lastUpdated,vendors:p(f()),purposes:p(a.purposeIds),features:[],isDefault:!0}}function f(){return function(e,n){for(;e--;)n[e]=e+1;return n}(a.maxVendorId,[])}function p(e){return e.map(function(e){return{id:e}})}},function(e,n,t){var o,r,i; /*! * JavaScript Cookie v2.1.4 * https://github.com/js-cookie/js-cookie * * Copyright 2006, 2015 Klaus Hartl & Fagner Brack * Released under the MIT license */ /*! * JavaScript Cookie v2.1.4 * https://github.com/js-cookie/js-cookie * * Copyright 2006, 2015 Klaus Hartl & Fagner Brack * Released under the MIT license */ void 0===(r="function"==typeof(o=i=function(){function e(){for(var e=0,n={};e<arguments.length;e++){var t=arguments[e];for(var o in t)n[o]=t[o]}return n}return function n(t){function o(n,r,i){var a;if("undefined"!=typeof document){if(arguments.length>1){if("number"==typeof(i=e({path:"/"},o.defaults,i)).expires){var s=new Date;s.setMilliseconds(s.getMilliseconds()+864e5*i.expires),i.expires=s}i.expires=i.expires?i.expires.toUTCString():"";try{a=JSON.stringify(r),/^[\{\[]/.test(a)&&(r=a)}catch(e){}r=t.write?t.write(r,n):encodeURIComponent(String(r)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),n=(n=(n=encodeURIComponent(String(n))).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent)).replace(/[\(\)]/g,escape);var u="";for(var c in i)i[c]&&(u+="; "+c,!0!==i[c]&&(u+="="+i[c]));return document.cookie=n+"="+r+u}n||(a={});for(var l=document.cookie?document.cookie.split("; "):[],d=/(%[0-9A-Z]{2})+/g,f=0;f<l.length;f++){var p=l[f].split("="),g=p.slice(1).join("=");'"'===g.charAt(0)&&(g=g.slice(1,-1));try{var _=p[0].replace(d,decodeURIComponent);if(g=t.read?t.read(g,_):t(g,_)||g.replace(d,decodeURIComponent),this.json)try{g=JSON.parse(g)}catch(e){}if(n===_){a=g;break}n||(a[_]=g)}catch(e){}}return a}}return o.set=o,o.get=function(e){return o.call(o,e)},o.getJSON=function(){return o.apply({json:!0},[].slice.call(arguments))},o.defaults={},o.remove=function(n,t){o(n,"",e(t,{expires:-1}))},o.withConverter=n,o}(function(){})})?o.call(n,t,n,e):o)||(e.exports=r),e.exports=i()},,function(e,n,t){"use strict";var o,r,i,a,s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},c=Array.from||(o=function(e){return"function"==typeof e},r=Math.pow(2,53)-1,i=function(e){var n=function(e){var n=Number(e);return isNaN(n)?0:0!==n&&isFinite(n)?(n>0?1:-1)*Math.floor(Math.abs(n)):n}(e);return Math.min(Math.max(n,0),r)},a=function(e){var n=e.next();return!Boolean(n.done)&&n},function(e){var n,t,r,u=this,c=arguments.length>1?arguments[1]:void 0;if(void 0!==c){if(!o(c))throw new TypeError("Array.from: when provided, the second argument must be a function");arguments.length>2&&(n=arguments[2])}var l=function(e,n){if(null!=e&&null!=n){var t=e[n];if(null==t)return;if(!o(t))throw new TypeError(t+" is not a function");return t}}(e,function(e){if(null!=e){if(["string","number","boolean","symbol"].indexOf(void 0===e?"undefined":s(e))>-1)return Symbol.iterator;if("undefined"!=typeof Symbol&&"iterator"in Symbol&&Symbol.iterator in e)return Symbol.iterator;if("@@iterator"in e)return"@@iterator"}}(e));if(void 0!==l){t=o(u)?Object(new u):[];var d,f,p=l.call(e);if(null==p)throw new TypeError("Array.from requires an array-like or iterable object");for(r=0;;){if(!(d=a(p)))return t.length=r,t;f=d.value,t[r]=c?c.call(n,f,r):f,r++}}else{var g=Object(e);if(null==e)throw new TypeError("Array.from requires an array-like object - not null or undefined");var _,v=i(g.length);for(t=o(u)?Object(new u(v)):new Array(v),r=0;r<v;)_=g[r],t[r]=c?c.call(n,_,r):_,r++;t.length=v}return t});function l(e){if(Array.isArray(e)){for(var n=0,t=Array(e.length);n<e.length;n++)t[n]=e[n];return t}return c(e)}var d=t(13),f=d.encodeToBase64,p=d.padRight;function g(e){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Set,t=Math.max.apply(Math,[0].concat(l(e.map(function(e){return e.id})),l(c(n)))),o="",r=1;r<=t;r+=1)o+=-1!==n.indexOf(r)?"1":"0";return o}function _(e,n){var t=[],o=e.map(function(e){return e.id});return e.reduce(function(r,i,a){var s=i.id;if(-1!==n.indexOf(s)&&t.push(s),(-1===n.indexOf(s)||a===e.length-1||-1===o.indexOf(s+1))&&t.length){var u=t.shift(),c=t.pop();return t=[],[].concat(l(r),[{isRange:"number"==typeof c,startVendorId:u,endVendorId:c}])}return r},[])}e.exports={convertVendorsToRanges:_,encodeConsentString:function(e){var n=e.maxVendorId,t=e.vendorList,o=void 0===t?{}:t,r=e.allowedPurposeIds,i=e.allowedVendorIds,a=o.vendors,s=void 0===a?[]:a,c=o.purposes,l=void 0===c?[]:c;n||(n=0,s.forEach(function(e){e.id>n&&(n=e.id)}));var d=f(u({},e,{maxVendorId:n,purposeIdBitString:g(l,r),isRange:!1,vendorIdBitString:function(e){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],t="",o=1;o<=e;o+=1)t+=-1!==n.indexOf(o)?"1":"0";return p(t,Math.max(0,e-t.length))}(n,i)})),v=_(s,i),m=f(u({},e,{maxVendorId:n,purposeIdBitString:g(l,r),isRange:!0,defaultConsent:!1,numEntries:v.length,vendorRangeList:v}));return d.length<m.length?d:m}}},function(e,n,t){"use strict";var o,r,i,a,s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u=Array.from||(o=function(e){return"function"==typeof e},r=Math.pow(2,53)-1,i=function(e){var n=function(e){var n=Number(e);return isNaN(n)?0:0!==n&&isFinite(n)?(n>0?1:-1)*Math.floor(Math.abs(n)):n}(e);return Math.min(Math.max(n,0),r)},a=function(e){var n=e.next();return!Boolean(n.done)&&n},function(e){var n,t,r,u=this,c=arguments.length>1?arguments[1]:void 0;if(void 0!==c){if(!o(c))throw new TypeError("Array.from: when provided, the second argument must be a function");arguments.length>2&&(n=arguments[2])}var l=function(e,n){if(null!=e&&null!=n){var t=e[n];if(null==t)return;if(!o(t))throw new TypeError(t+" is not a function");return t}}(e,function(e){if(null!=e){if(["string","number","boolean","symbol"].indexOf(void 0===e?"undefined":s(e))>-1)return Symbol.iterator;if("undefined"!=typeof Symbol&&"iterator"in Symbol&&Symbol.iterator in e)return Symbol.iterator;if("@@iterator"in e)return"@@iterator"}}(e));if(void 0!==l){t=o(u)?Object(new u):[];var d,f,p=l.call(e);if(null==p)throw new TypeError("Array.from requires an array-like or iterable object");for(r=0;;){if(!(d=a(p)))return t.length=r,t;f=d.value,t[r]=c?c.call(n,f,r):f,r++}}else{var g=Object(e);if(null==e)throw new TypeError("Array.from requires an array-like object - not null or undefined");var _,v=i(g.length);for(t=o(u)?Object(new u(v)):new Array(v),r=0;r<v;)_=g[r],t[r]=c?c.call(n,_,r):_,r++;t.length=v}return t}),c=t(28),l=t(14),d=l.versionNumBits,f=l.vendorVersionMap;function p(e){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"0",t="",o=0;o<e;o+=1)t+=n;return t}function g(e,n){return p(Math.max(0,n))+e}function _(e,n){return e+p(Math.max(0,n))}function v(e,n){var t="";return"number"!=typeof e||isNaN(e)||(t=parseInt(e,10).toString(2)),n>=t.length&&(t=g(t,n-t.length)),t.length>n&&(t=t.substring(0,n)),t}function m(e){return v(!0===e?1:0,1)}function O(e,n){return e instanceof Date?v(e.getTime()/100,n):v(e,n)}function I(e,n){return v(e.toUpperCase().charCodeAt(0)-65,n)}function A(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:12;return I(e.slice(0,1),n/2)+I(e.slice(1),n/2)}function h(e,n,t){return parseInt(e.substr(n,t),2)}function y(e,n,t){return new Date(100*h(e,n,t))}function C(e,n){return 1===parseInt(e.substr(n,1),2)}function L(e){var n=h(e);return String.fromCharCode(n+65).toLowerCase()}function w(e,n,t){var o=e.substr(n,t);return L(o.slice(0,t/2))+L(o.slice(t/2))}function V(e){var n=e.input,t=e.field,o=t.name,r=t.type,i=t.numBits,a=t.encoder,s=t.validator;if("function"==typeof s&&!s(n))return"";if("function"==typeof a)return a(n);var u="function"==typeof i?i(n):i,c=n[o],l=null===c||void 0===c?"":c;switch(r){case"int":return v(l,u);case"bool":return m(l);case"date":return O(l,u);case"bits":return _(l,u-l.length).substring(0,u);case"list":return l.reduce(function(e,n){return e+S({input:n,fields:t.fields})},"");case"language":return A(l,u);default:throw new Error("ConsentString - Unknown field type "+r+" for encoding")}}function S(e){var n=e.input;return e.fields.reduce(function(e,t){return e+V({input:n,field:t})},"")}function T(e,n){var t=e.version;if("number"!=typeof t)throw new Error("ConsentString - No version field to encode");if(n[t])return S({input:e,fields:n[t].fields});throw new Error("ConsentString - No definition for version "+t)}e.exports={padRight:_,padLeft:g,encodeField:V,encodeDataToBits:T,encodeIntToBits:v,encodeBoolToBits:m,encodeDateToBits:O,encodeLanguageToBits:A,encodeLetterToBits:I,encodeToBase64:function(e){var n=T(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:f);if(n){for(var t=_(n,7-(n.length+7)%8),o="",r=0;r<t.length;r+=8)o+=String.fromCharCode(parseInt(t.substr(r,8),2));return c.encode(o).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}return null},decodeBitsToIds:function(e){return e.split("").reduce(function(e,n,t){return"1"===n&&-1===e.indexOf(t+1)&&e.push(t+1),e},[])},decodeBitsToInt:h,decodeBitsToDate:y,decodeBitsToBool:C,decodeBitsToLanguage:w,decodeBitsToLetter:L,decodeFromBase64:function(e,n){for(var t=e;t.length%4!=0;)t+="=";t=t.replace(/-/g,"+").replace(/_/g,"/");for(var o=c.decode(t),r="",i=0;i<o.length;i+=1){var a=o.charCodeAt(i).toString(2);r+=g(a,8-a.length)}return function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f,t=h(e,0,d);if("number"!=typeof t)throw new Error("ConsentString - Unknown version number in the string to decode");if(!f[t])throw new Error("ConsentString - Unsupported version "+t+" in the string to decode");return function e(n){var t=n.input,o=n.fields,r=n.startPosition,i=void 0===r?0:r;return{decodedObject:o.reduce(function(n,o){var r=o.name,a=o.numBits,s=function(n){var t=n.input,o=n.output,r=n.startPosition,i=n.field,a=i.type,s=i.numBits,c=i.decoder,l=i.validator,d=i.listCount;if("function"==typeof l&&!l(o))return{newPosition:r};if("function"==typeof c)return c(t,o,r);var f="function"==typeof s?s(o):s,p=0;switch("function"==typeof d?p=d(o):"number"==typeof d&&(p=d),a){case"int":return{fieldValue:h(t,r,f)};case"bool":return{fieldValue:C(t,r)};case"date":return{fieldValue:y(t,r,f)};case"bits":return{fieldValue:t.substr(r,f)};case"list":return new Array(p).fill().reduce(function(n){var o=e({input:t,fields:i.fields,startPosition:n.newPosition}),r=o.decodedObject,a=o.newPosition;return{fieldValue:[].concat(function(e){if(Array.isArray(e)){for(var n=0,t=Array(e.length);n<e.length;n++)t[n]=e[n];return t}return u(e)}(n.fieldValue),[r]),newPosition:a}},{fieldValue:[],newPosition:r});case"language":return{fieldValue:w(t,r,f)};default:throw new Error("ConsentString - Unknown field type "+a+" for decoding")}}({input:t,output:n,startPosition:i,field:o}),c=s.fieldValue,l=s.newPosition;return void 0!==c&&(n[r]=c),void 0!==l?i=l:"number"==typeof a&&(i+=a),n},{}),newPosition:i}}({input:e,fields:n[t].fields}).decodedObject}(r,n)}}},function(e,n,t){"use strict";"function"==typeof Symbol&&Symbol.iterator,Array.from||Math.pow(2,53),e.exports={versionNumBits:6,vendorVersionMap:{1:{version:1,metadataFields:["version","created","lastUpdated","cmpId","cmpVersion","consentScreen","vendorListVersion"],fields:[{name:"version",type:"int",numBits:6},{name:"created",type:"date",numBits:36},{name:"lastUpdated",type:"date",numBits:36},{name:"cmpId",type:"int",numBits:12},{name:"cmpVersion",type:"int",numBits:12},{name:"consentScreen",type:"int",numBits:6},{name:"consentLanguage",type:"language",numBits:12},{name:"vendorListVersion",type:"int",numBits:12},{name:"purposeIdBitString",type:"bits",numBits:24},{name:"maxVendorId",type:"int",numBits:16},{name:"isRange",type:"bool",numBits:1},{name:"vendorIdBitString",type:"bits",numBits:function(e){return e.maxVendorId},validator:function(e){return!e.isRange}},{name:"defaultConsent",type:"bool",numBits:1,validator:function(e){return e.isRange}},{name:"numEntries",numBits:12,type:"int",validator:function(e){return e.isRange}},{name:"vendorRangeList",type:"list",listCount:function(e){return e.numEntries},validator:function(e){return e.isRange},fields:[{name:"isRange",type:"bool",numBits:1},{name:"startVendorId",type:"int",numBits:16},{name:"endVendorId",type:"int",numBits:16,validator:function(e){return e.isRange}}]}]}}}},function(e,n,t){"use strict";"function"==typeof Symbol&&Symbol.iterator;var o=(Array.from||Math.pow(2,53),t(13)),r=o.decodeBitsToIds,i=o.decodeFromBase64;e.exports={decodeConsentString:function(e){var n=i(e),t=n.version,o=n.cmpId,a=n.vendorListVersion,s=n.purposeIdBitString,u=n.maxVendorId,c=n.created,l=n.lastUpdated,d=n.isRange,f=n.defaultConsent,p=n.vendorIdBitString,g=n.vendorRangeList,_=n.cmpVersion,v=n.consentScreen,m=n.consentLanguage,O={version:t,cmpId:o,vendorListVersion:a,allowedPurposeIds:r(s),maxVendorId:u,created:c,lastUpdated:l,cmpVersion:_,consentScreen:v,consentLanguage:m};if(d){var I=g.reduce(function(e,n){for(var t=n.isRange,o=n.startVendorId,r=n.endVendorId,i=t?r:o,a=o;a<=i;a+=1)e[a]=!0;return e},{});O.allowedVendorIds=[];for(var A=0;A<=u;A+=1)(f&&!I[A]||!f&&I[A])&&-1===O.allowedVendorIds.indexOf(A)&&O.allowedVendorIds.push(A)}else O.allowedVendorIds=r(p);return O}}},,,,,function(e,n,t){"use strict";"function"==typeof Symbol&&Symbol.iterator;var o=(Array.from||Math.pow(2,53),t(27).ConsentString),r=t(15).decodeConsentString,i=t(12).encodeConsentString;e.exports={ConsentString:o,decodeConsentString:r,encodeConsentString:i}},,,,,,,function(e,n,t){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=function(){function e(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(n,t,o){return t&&e(n.prototype,t),o&&e(n,o),n}}();Array.from||Math.pow(2,53);var i=t(12).encodeConsentString,a=t(15).decodeConsentString,s=t(14).vendorVersionMap,u=/^[a-z]{2}$/,c=function(){function e(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;!function(n,t){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}(this),this.created=new Date,this.lastUpdated=new Date,this.version=1,this.vendorList=null,this.vendorListVersion=null,this.cmpId=null,this.cmpVersion=null,this.consentScreen=null,this.consentLanguage=null,this.allowedPurposeIds=[],this.allowedVendorIds=[],n&&Object.assign(this,a(n))}return r(e,[{key:"getConsentString",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(!this.vendorList)throw new Error("ConsentString - A vendor list is required to encode a consent string");return!0===e&&(this.lastUpdated=new Date),i({version:this.getVersion(),vendorList:this.vendorList,allowedPurposeIds:this.allowedPurposeIds,allowedVendorIds:this.allowedVendorIds,created:this.created,lastUpdated:this.lastUpdated,cmpId:this.cmpId,cmpVersion:this.cmpVersion,consentScreen:this.consentScreen,consentLanguage:this.consentLanguage,vendorListVersion:this.vendorListVersion})}},{key:"getMetadataString",value:function(){return i({version:this.getVersion(),created:this.created,lastUpdated:this.lastUpdated,cmpId:this.cmpId,cmpVersion:this.cmpVersion,consentScreen:this.consentScreen,vendorListVersion:this.vendorListVersion})}},{key:"getVersion",value:function(){return this.version}},{key:"getVendorListVersion",value:function(){return this.vendorListVersion}},{key:"setGlobalVendorList",value:function(e){if("object"!==(void 0===e?"undefined":o(e)))throw new Error("ConsentString - You must provide an object when setting the global vendor list");if(!e.vendorListVersion||!Array.isArray(e.purposes)||!Array.isArray(e.vendors))throw new Error("ConsentString - The provided vendor list does not respect the schema from the IAB EU’s GDPR Consent and Transparency Framework");this.vendorList={vendorListVersion:e.vendorListVersion,lastUpdated:e.lastUpdated,purposes:e.purposes,features:e.features,vendors:e.vendors.slice(0).sort(function(e,n){return e.id<n.id?-1:1})},this.vendorListVersion=e.vendorListVersion}},{key:"setCmpId",value:function(e){this.cmpId=e}},{key:"getCmpId",value:function(){return this.cmpId}},{key:"setCmpVersion",value:function(e){this.cmpVersion=e}},{key:"getCmpVersion",value:function(){return this.cmpVersion}},{key:"setConsentScreen",value:function(e){this.consentScreen=e}},{key:"getConsentScreen",value:function(){return this.consentScreen}},{key:"setConsentLanguage",value:function(e){if(!1===u.test(e))throw new Error("ConsentString - The consent language must be a two-letter ISO639-1 code (en, fr, de, etc.)");this.consentLanguage=e}},{key:"getConsentLanguage",value:function(){return this.consentLanguage}},{key:"setPurposesAllowed",value:function(e){this.allowedPurposeIds=e}},{key:"getPurposesAllowed",value:function(){return this.allowedPurposeIds}},{key:"setPurposeAllowed",value:function(e,n){var t=this.allowedPurposeIds.indexOf(e);!0===n?-1===t&&this.allowedPurposeIds.push(e):!1===n&&-1!==t&&this.allowedPurposeIds.splice(t,1)}},{key:"isPurposeAllowed",value:function(e){return-1!==this.allowedPurposeIds.indexOf(e)}},{key:"setVendorsAllowed",value:function(e){this.allowedVendorIds=e}},{key:"getVendorsAllowed",value:function(){return this.allowedVendorIds}},{key:"setVendorAllowed",value:function(e,n){var t=this.allowedVendorIds.indexOf(e);!0===n?-1===t&&this.allowedVendorIds.push(e):!1===n&&-1!==t&&this.allowedVendorIds.splice(t,1)}},{key:"isVendorAllowed",value:function(e){return-1!==this.allowedVendorIds.indexOf(e)}}],[{key:"decodeMetadataString",value:function(e){var n=a(e),t={};return s[n.version].metadataFields.forEach(function(e){t[e]=n[e]}),t}}]),e}();e.exports={ConsentString:c}},function(e,n,t){(function(e,o){var r;/*! http://mths.be/base64 v0.1.0 by @mathias | MIT license */!function(i){var a=("object"==typeof e&&e&&e.exports,"object"==typeof o&&o);a.global!==a&&a.window;var s=function(e){this.message=e};(s.prototype=new Error).name="InvalidCharacterError";var u=function(e){throw new s(e)},c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=/[\t\n\f\r ]/g,d={encode:function(e){e=String(e),/[^\0-\xFF]/.test(e)&&u("The string to be encoded contains characters outside of the Latin1 range.");for(var n,t,o,r,i=e.length%3,a="",s=-1,l=e.length-i;++s<l;)n=e.charCodeAt(s)<<16,t=e.charCodeAt(++s)<<8,o=e.charCodeAt(++s),a+=c.charAt((r=n+t+o)>>18&63)+c.charAt(r>>12&63)+c.charAt(r>>6&63)+c.charAt(63&r);return 2==i?(n=e.charCodeAt(s)<<8,t=e.charCodeAt(++s),a+=c.charAt((r=n+t)>>10)+c.charAt(r>>4&63)+c.charAt(r<<2&63)+"="):1==i&&(r=e.charCodeAt(s),a+=c.charAt(r>>2)+c.charAt(r<<4&63)+"=="),a},decode:function(e){var n=(e=String(e).replace(l,"")).length;n%4==0&&(n=(e=e.replace(/==?$/,"")).length),(n%4==1||/[^+a-zA-Z0-9/]/.test(e))&&u("Invalid character: the string to be decoded is not correctly encoded.");for(var t,o,r=0,i="",a=-1;++a<n;)o=c.indexOf(e.charAt(a)),t=r%4?64*t+o:o,r++%4&&(i+=String.fromCharCode(255&t>>(-2*r&6)));return i},version:"0.1.0"};void 0===(r=function(){return d}.call(n,t,n,e))||(e.exports=r)}()}).call(this,t(29)(e),t(30))},function(e,n){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,n){var t;t=function(){return this}();try{t=t||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(t=window)}e.exports=t},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,n,t){"use strict";var o,r=t(63);o="",location&&location.search&&location.search.substr(1)&&(o=location.search.substr(1)),(0,r.initOilHub)(o)},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};n.initOilHub=function(e){if((0,r.logInfo)("Init OilHub (version "+s.OilVersion.get()+")"),function(e){return-1!==e.indexOf(i.POI_FALLBACK_NAME)}(e)){(0,r.logInfo)("Fallback mode, doing round trip...");var t="";(function(e){return-1!==e.indexOf(i.POI_FALLBACK_GROUP_NAME)})(e)&&(t=(0,u.getStringParam)(e,i.POI_FALLBACK_GROUP_NAME),(0,r.logInfo)("Using group name:",t));var o={};if(function(e){return-1!==e.indexOf(i.POI_PAYLOAD)}(e)){var c=decodeURIComponent((0,u.getStringParam)(e,i.POI_PAYLOAD));o=JSON.parse(c),(0,r.logInfo)("Using payload:",JSON.stringify(o)),(0,a.setPoiCookie)(t,o)}else(0,l.logError)("Redirect mode without payload!");n.redirectBack()}else d||((0,s.removeMessageListener)(f),(0,s.registerMessageListener)(f))},n.redirectBack=function(){window.location.replace(document.referrer)};var r=t(0),i=t(5),a=t(64),s=t(1),u=t(65),c=t(6),l=t(0),d=!1;function f(e){var n=function(e){try{return"object"!==(void 0===e?"undefined":o(e))?JSON.parse(e):e}catch(n){return(0,r.logInfo)("OIL Hub - couldnt parse following data:",e),!1}}(e.data),t=null;if((0,r.logInfo)("OIL Hub - Got following parent data:",n),n){if(n.event&&-1!==n.event.indexOf("oil-")){var i=n.event,s=n.origin,u=n.payload,l=n.group_name;switch(i){case"oil-poi-activate":(0,r.logInfo)("OIL Hub - activating POI "),(0,r.logInfo)("Using groupName:",l),(0,r.logInfo)("Using payload:",JSON.stringify(u)),(0,a.setPoiCookie)(l,u);break;case"oil-status-read":t=(0,a.getPoiCookie)(l),(0,r.logInfo)("OIL Hub - read the following poi status:",t.power_opt_in),parent.postMessage(JSON.stringify(t)||!1,s);break;case"oil-poi-delete":(0,r.logInfo)("OIL Hub - remove POI cookie."),(0,c.removeHubCookie)(l)}}d=!0}}},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.getPoiCookie=function(){var e=function(e){var n=new l;return n.setCmpId(r.OIL_SPEC.CMP_ID),n.setCmpVersion(r.OIL_SPEC.CMP_VERSION),n.setConsentScreen(1),n.setConsentLanguage("en"),n.setPurposesAllowed([]),n.setVendorsAllowed([]),{name:p(e),expires:(0,a.getCookieExpireInDays)(),defaultCookieContent:{power_opt_in:!1,version:f,localeVariantName:f,localeVariantVersion:0,customPurposes:[],consentData:n,consentString:""},outdated_cookie_content_keys:["power_opt_in","timestamp","version","localeVariantName","localeVariantVersion","privacy"]}}(arguments.length>0&&void 0!==arguments[0]?arguments[0]:""),n=(0,u.hasOutdatedOilCookie)(e)?function(e){var n=c.default.getJSON(e.name),t=e.defaultCookieContent;return t.power_opt_in=n.power_opt_in,t.version=n.version,t.localeVariantName=n.localeVariantName,t.localeVariantVersion=n.localeVariantVersion,t.customPurposes=[],t.consentData.setConsentLanguage((0,a.getLanguageFromLocale)(n.localeVariantName)),t.consentData.setPurposesAllowed((0,u.getStandardPurposesWithConsent)(n.privacy)),t.consentData.setVendorsAllowed((0,s.getLimitedVendorIds)()),t}(e):(0,u.getOilCookie)(e);return(0,i.logInfo)("Oil Hub Domain Cookie: ",n),n},n.setPoiCookie=function(e,n){var t=function(e){return e&&e[r.OIL_PAYLOAD_PRIVACY]?e[r.OIL_PAYLOAD_PRIVACY]:void 0}(n);if(n&&"string"==typeof t){var o={power_opt_in:!0,version:function(e){return e&&e[r.OIL_PAYLOAD_VERSION]?e[r.OIL_PAYLOAD_VERSION]:f}(n),localeVariantName:function(e){return e&&e[r.OIL_PAYLOAD_LOCALE_VARIANT_NAME]?e[r.OIL_PAYLOAD_LOCALE_VARIANT_NAME]:f}(n),localeVariantVersion:function(e){return e&&e[r.OIL_PAYLOAD_LOCALE_VARIANT_VERSION]?e[r.OIL_PAYLOAD_LOCALE_VARIANT_VERSION]:f}(n),customPurposes:function(e){return e&&e[r.OIL_PAYLOAD_CUSTOM_PURPOSES]?e[r.OIL_PAYLOAD_CUSTOM_PURPOSES]:[]}(n),consentString:t};(0,u.setDomainCookie)(p(e),o,(0,a.getCookieExpireInDays)())}else(0,i.logError)("Oil Hub received old or empty payload! No POI cookie stored.")};var o,r=t(5),i=t(0),a=t(2),s=t(9),u=t(6),c=(o=t(10))&&o.__esModule?o:{default:o},l=t(20).ConsentString,d="oil_data",f="unknown";function p(e){return e?e+"_"+d:d}},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.getStringParam=function(e,n){var t=void 0,o=void 0,r=e.split("&");for(t=0;t<r.length;t++)if((o=r[t].split("="))[0]===n)return o[1];return null}}]);</script> </head> <body>Axel Springer Ideas Engineering - Opt-In Layer (OIL) HUB</body> </html>