UNPKG

@jumpgroup/avacy-banner

Version:

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

2 lines 32.1 kB
/*! 1.2.0-RELEASE */ (window.oilJsonp=window.oilJsonp||[]).push([[0],{111:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isPersistMinimumTracking=function(){return(0,n.getConfigValue)(o.OIL_CONFIG.ATTR_PERSIST_MINIMUM_TRACKING,!0)},t.isAdvancedSettings=function(){return(0,n.getConfigValue)(o.OIL_CONFIG.ATTR_ADVANCED_SETTINGS,!1)},t.getTimeOutValue=function(){return(0,n.getConfigValue)(o.OIL_CONFIG.ATTR_TIMEOUT,a)},t.getTheme=function(){return(0,n.getConfigValue)(o.OIL_CONFIG.ATTR_THEME,"light")},t.getLabel=function(e){return l(e,e)},t.getLabelWithDefault=l;var o=i(5),n=i(2),a=60;function l(e,t){var i=(0,n.getLocale)();return(0,n.getConfigValue)(e,i&&i.texts[e]?i.texts[e]:t)}},112:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OIL_LABELS={ATTR_LABEL_INTRO_HEADING:"label_intro_heading",ATTR_LABEL_INTRO:"label_intro",ATTR_LABEL_INTRO_START:"label_intro_start",ATTR_LABEL_INTRO_END:"label_intro_end",ATTR_LABEL_BUTTON_YES:"label_button_yes",ATTR_LABEL_BUTTON_BACK:"label_button_back",ATTR_LABEL_BUTTON_PRIVACY:"label_button_privacy",ATTR_LABEL_BUTTON_ADVANCED_SETTINGS:"label_button_advanced_settings",ATTR_LABEL_POI_GROUP_LIST_HEADING:"label_poi_group_list_heading",ATTR_LABEL_POI_GROUP_LIST_TEXT:"label_poi_group_list_text",ATTR_LABEL_THIRD_PARTY:"label_third_party",ATTR_LABEL_THIRD_PARTY_LIST_HEADING:"label_thirdparty_list_heading",ATTR_LABEL_THIRD_PARTY_LIST_TEXT:"label_thirdparty_list_text",ATTR_LABEL_CPC_HEADING:"label_cpc_heading",ATTR_LABEL_CPC_TEXT:"label_cpc_text",ATTR_LABEL_CPC_ACTIVATE_ALL:"label_cpc_activate_all",ATTR_LABEL_CPC_DEACTIVATE_ALL:"label_cpc_deactivate_all",ATTR_LABEL_CPC_01_TEXT:"label_cpc_purpose_01_text",ATTR_LABEL_CPC_01_DESC:"label_cpc_purpose_01_desc",ATTR_LABEL_CPC_02_TEXT:"label_cpc_purpose_02_text",ATTR_LABEL_CPC_02_DESC:"label_cpc_purpose_02_desc",ATTR_LABEL_CPC_03_TEXT:"label_cpc_purpose_03_text",ATTR_LABEL_CPC_03_DESC:"label_cpc_purpose_03_desc",ATTR_LABEL_CPC_04_TEXT:"label_cpc_purpose_04_text",ATTR_LABEL_CPC_04_DESC:"label_cpc_purpose_04_desc",ATTR_LABEL_CPC_05_TEXT:"label_cpc_purpose_05_text",ATTR_LABEL_CPC_05_DESC:"label_cpc_purpose_05_desc",ATTR_LABEL_CPC_06_TEXT:"label_cpc_purpose_06_text",ATTR_LABEL_CPC_06_DESC:"label_cpc_purpose_06_desc",ATTR_LABEL_CPC_07_TEXT:"label_cpc_purpose_07_text",ATTR_LABEL_CPC_07_DESC:"label_cpc_purpose_07_desc",ATTR_LABEL_PURPOSE_DESC:"label_cpc_purpose_desc",ATTR_LABEL_NO_COOKIES_HEADING:"label_nocookie_head",ATTR_LABEL_NO_COOKIES_TEXT:"label_nocookie_text"},t.OPTIONAL_LABEL_PREFIX="label_cpc_purpose"},113:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hasRunningTimeout=t.oilWrapper=void 0,t.stopTimeOut=T,t.forEach=L,t.renderOil=A,t.oilShowPreferenceCenter=v,t.handleOptIn=P,t.handleSoiOptIn=C,t.handlePoiOptIn=k,i(115),i(117);var o=i(1),n=i(6),a=i(5),l=i(119),r=i(41),s=i(121),c=i(123),_=i(124),d=i(0),p=i(111),u=i(2),f=i(125),h=i(1),g=i(9),m=t.oilWrapper=function(){var e=document.createElement("div");return e.setAttribute("class","as-oil "+(0,p.getTheme)()),e.setAttribute("data-qa","oil-Layer"),e},b=t.hasRunningTimeout=void 0;function T(){b&&(clearTimeout(b),t.hasRunningTimeout=b=void 0)}function L(e,t,i){for(var o=0;o<e.length;o++)t.call(i,e[o])}function A(e){!function(e){return!0!==e.optIn}(e)?x():e.noCookie?E((0,c.oilNoCookiesTemplate)()):e.advancedSettings?E((0,_.oilAdvancedSettingsTemplate)()):(!b&&(0,p.getTimeOutValue)()>0&&((0,d.logInfo)("OIL will auto-hide in",(0,p.getTimeOutValue)(),"seconds."),t.hasRunningTimeout=b=setTimeout(function(){x(),(0,o.sendEventToHostSite)(a.EVENT_NAME_TIMEOUT)},1e3*(0,p.getTimeOutValue)())),E((0,s.oilDefaultTemplate)()))}function v(){new Promise(function(e){i.e(2).then(function(t){e(i(114))}.bind(null,i)).catch(i.oe)}),(0,g.loadVendorList)().then(function(){var e=document.querySelector(".as-oil"),t=document.querySelector("#oil-preference-center");if(e)A({advancedSettings:!0});else{if(!t)return void(0,d.logError)("No wrapper for the CPC with the id #oil-preference-center was found.");t.innerHTML=(0,_.oilAdvancedSettingsInlineTemplate)(),j(w())}var i,o=(0,f.getSoiConsentData)();i=o?o.getPurposesAllowed():(0,u.getAdvancedSettingsPurposesDefault)()?(0,g.getPurposes)().map(function(e){return e.id}):[],(0,f.applyPrivacySettings)(i)}).catch(function(e){return(0,d.logError)(e)})}function E(e){var t=m();t.innerHTML=e,function(e){x(),document.body.insertBefore(e,document.body.firstElementChild),j(w())}(t)}function x(){var e=w();e.oilWrapper&&L(e.oilWrapper,function(e){e.parentElement.removeChild(e)})}function w(){return{oilWrapper:document.querySelectorAll(".as-oil"),btnOptIn:document.querySelectorAll(".as-js-optin"),btnPoiOptIn:document.querySelectorAll(".as-js-optin-poi"),btnOptLater:document.querySelectorAll(".as-js-optlater"),companyList:document.querySelectorAll(".as-js-companyList"),thirdPartyList:document.querySelectorAll(".as-js-thirdPartyList"),btnAdvancedSettings:document.querySelectorAll(".as-js-advanced-settings"),btnBack:document.querySelectorAll(".as-js-oilback")}}function O(){(0,d.logInfo)("Handling Back Button"),T(),A({}),(0,o.sendEventToHostSite)(a.EVENT_NAME_BACK_TO_MAIN)}function I(){(0,d.logInfo)("Handling Show Advanced Settings"),T(),v(),(0,o.sendEventToHostSite)(a.EVENT_NAME_ADVANCED_SETTINGS)}function y(){(0,d.logInfo)("Handling Show Company List"),T(),new Promise(function(e){i.e(2).then(function(t){e(i(114))}.bind(null,i)).catch(i.oe)}).then(function(e){e.renderOilGroupListTemplate(E)}).catch(function(e){(0,d.logError)("Error on oilShowCompanyList.",e)}),(0,o.sendEventToHostSite)(a.EVENT_NAME_COMPANY_LIST)}function S(){(0,d.logInfo)("Handling Show Third Party List"),T(),new Promise(function(e){i.e(2).then(function(t){e(i(114))}.bind(null,i)).catch(i.oe)}).then(function(e){e.renderOilThirdPartyListTemplate(E)}).catch(function(e){(0,d.logError)("Error on oilShowThirdPartyList.",e)}),(0,o.sendEventToHostSite)(a.EVENT_NAME_THIRD_PARTY_LIST)}function P(){var e;(0,u.isPoiActive)()?k():C(),(e=document.querySelector(".as-js-optin"))&&(e.className+=" as-js-clicked",window.setTimeout(function(){e.className=e.className.replace(" as-js-clicked","")},1200));var t=(0,h.getGlobalOilObject)("commandCollectionExecutor");t&&t()}function C(){var e=(0,f.getPrivacySettings)();(0,d.logInfo)("Handling SOI with settings: ",e),B(e),R(e)?(0,l.oilOptIn)(e).then(function(){A({optIn:!0}),(0,o.sendEventToHostSite)(a.EVENT_NAME_SOI_OPT_IN)}):(0,n.removeSubscriberCookies)()}function k(){var e=(0,f.getPrivacySettings)();(0,d.logInfo)("Handling POI with settings: ",e),B(e),R(e)?(0,l.oilPowerOptIn)(e,!(0,u.isSubscriberSetCookieActive)()).then(function(){A({optIn:!0}),(0,u.isPoiActive)()&&(0,o.sendEventToHostSite)(a.EVENT_NAME_POI_OPT_IN)}):((0,n.removeSubscriberCookies)(),(0,r.deActivatePowerOptIn)())}function B(e){(0,h.isObject)(e)&&(0,o.sendEventToHostSite)(a.EVENT_NAME_AS_PRIVACY_SELECTED)}function R(e){return e!==a.PRIVACY_MINIMUM_TRACKING||(0,p.isPersistMinimumTracking)()}function N(e,t){e&&L(e,function(e){e&&e.addEventListener("click",t,!1)})}function j(e){N(e.btnOptIn,P),N(e.btnAdvancedSettings,I),N(e.btnBack,O),N(e.companyList,y),N(e.thirdPartyList,S),(0,_.attachCpcHandlers)()}},115:function(e,t,i){var o=i(116);"string"==typeof o&&(o=[[e.i,o,""]]);var n={hmr:!0,transform:void 0,insertInto:void 0};i(60)(o,n),o.locals&&(e.exports=o.locals)},116:function(e,t,i){(e.exports=i(59)(!1)).push([e.i,'.as-oil__btn-cpc,.as-oil__intro-txt--link{color:#262626}.dark .as-oil__btn-cpc,.dark .as-oil__intro-txt--link{color:#f5f5f5}.dark .as-oil__btn-cpc:hover,.dark .as-oil__intro-txt--link:hover{color:#dcdcdc}.as-oil__btn-cpc:hover,.as-oil__intro-txt--link:hover{color:#0d0d0d;background-color:transparent}.as-oil{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;position:fixed;z-index:2147483647;bottom:0;left:0;width:100%;font-family:Helvetica Neue,Helvetica,Arial,sans-serif;color:#262626;font-size:14px}.as-oil,.as-oil *,.as-oil:after,.as-oil :after,.as-oil:before,.as-oil :before{box-sizing:border-box}.as-oil.dark{color:#f5f5f5}.as-oil a{cursor:pointer}@media (max-width:600px){.as-oil-fixed{position:fixed;bottom:0;left:0;height:100%;width:100%;overflow-y:scroll}}.as-oil-content-overlay{position:absolute;width:100%;bottom:0;left:0;padding:2em 5em;background-color:#f9f9f9;opacity:.97;box-shadow:0 -8px 20px 0 rgba(0,0,0,.2)}.as-oil-content-overlay:after{content:"";display:table;clear:both}.dark .as-oil-content-overlay{background-color:#262626}.small .as-oil-content-overlay{padding:.5em!important}@media (max-width:600px){.as-oil-content-overlay{padding:1em!important}}.as-oil__heading{max-width:840px;font-size:1.45em;font-weight:600;line-height:1.15}.as-oil__heading:first-of-type{margin-top:0}.small .as-oil__heading{display:none}@media (max-width:600px){.as-oil__heading{margin:.5em 0;font-size:1em;line-height:1.3333;text-align:center}}.as-oil__intro-txt{display:inline-block;min-width:75%;max-width:75%;font-size:.9375em;font-weight:400;line-height:1.4}.small .as-oil__intro-txt{margin:0 0 0 1em}@media (max-width:600px){.small .as-oil__intro-txt{margin:.5em 0}}@media (max-width:600px){.as-oil__intro-txt{margin:.5em 0;min-width:100%;max-width:100%}}.as-oil__intro-txt--link{padding:4px 1px 0;margin:0 1px;text-decoration:underline}@media (min-width:601px) and (max-width:1023px){.as-oil-l-buttons{max-width:24%}}.as-oil__btn-optin{min-width:160px;min-height:42px;margin:0;padding:.5em 1em;font-size:1.1em;font-weight:700;border:none;border-radius:3px;outline:none;cursor:pointer;color:#fff;background-color:#3f7edf;transition:opacity .8s ease 0s}.small .as-oil__btn-optin{min-width:120px;min-height:32px}@media (max-width:600px){.as-oil__btn-optin{width:100%;min-width:auto;padding:0}}.as-oil__btn-optin:hover{color:#f2f2f2;background-color:#2264c9}.as-oil__btn-optin.as-js-clicked{opacity:.3}.as-oil__btn-blue{min-width:160px;min-height:42px;margin:0;padding:.5em 1em;font-size:1.1em;font-weight:700;border:none;border-radius:3px;outline:none;cursor:pointer;color:#fff;background-color:#3f7edf}.small .as-oil__btn-blue{min-width:120px;min-height:32px}@media (max-width:600px){.as-oil__btn-blue{width:100%;min-width:auto;padding:0}}.as-oil__btn-blue:hover{color:#f2f2f2;background-color:#2264c9}.as-oil__btn-grey{min-width:160px;min-height:42px;margin:0;padding:.5em 1em;font-size:1.1em;font-weight:700;border:none;border-radius:3px;outline:none;cursor:pointer;color:#aaa;background-color:#eee}.small .as-oil__btn-grey{min-width:120px;min-height:32px}@media (max-width:600px){.as-oil__btn-grey{width:100%;min-width:auto;padding:0}}.as-oil__btn-grey:hover{color:#9d9d9d;background-color:#e1e1e1}.as-js-oilback{border:none;background-color:transparent;position:absolute;top:0;right:0}@media (max-width:600px){.as-js-oilback{float:right;text-align:right;vertical-align:center;margin:0;padding:0}.as-js-oilback .as-js-oilback__text{visibility:hidden}}@media (min-width:601px){.as-js-oilback{display:flex;align-items:center}}.as-js-oilback__text{margin-right:6px}.as-oil__btn-cpc{float:right;min-height:auto;min-width:135px;margin:.75em 0;padding:4px;font-size:14px;font-weight:400;text-decoration:none;background-color:transparent;border:none;border-bottom:1px solid;border-radius:0;cursor:pointer}@media (max-width:600px){.as-oil__btn-cpc{float:none;width:100%;font-size:.75em;border-bottom:none;margin:0;padding:0}}@media (min-width:601px) and (max-width:1023px){.as-oil__btn-cpc{float:none}}.as-oil-l-row{display:inline-block;margin:1em 0;min-width:20%}.as-oil-l-row:last-of-type{margin-bottom:0}.small .as-oil-l-row{margin:0 0 .5em;min-width:0}@media (max-width:600px){.as-oil-l-row{display:block;width:100%}}.as-oil-l-row--fixed-width,.as-oil-l-wrapper-layout-max-width{max-width:1280px;position:relative;margin:0 auto}.as-oil-l-item{float:right;clear:both;text-align:right}@supports (display:flex){.as-oil-l-item{float:none}}.as-oil-l-item:first-of-type{margin-left:0}.as-oil-l-item:last-of-type{margin-right:0}@media (max-width:600px){.as-oil-l-item{width:100%;margin:1em 0}.as-oil-l-item:first-of-type{margin-top:0}.as-oil-l-item:last-of-type{margin-bottom:0}.small .as-oil-l-item{margin:0}}@supports (display:flex){.as-oil-l-item--stretch{flex:1 0 auto}}',""])},117:function(e,t,i){var o=i(118);"string"==typeof o&&(o=[[e.i,o,""]]);var n={hmr:!0,transform:void 0,insertInto:void 0};i(60)(o,n),o.locals&&(e.exports=o.locals)},118:function(e,t,i){(e.exports=i(59)(!1)).push([e.i,'#oil-preference-center{overflow:hidden}#oil-preference-center .as-js-oilback{display:none}@media (max-width:849px){#as-oil-cpc.as-oil-content-overlay{padding:2em 1em}}.as-oil-cpc-wrapper button{cursor:pointer}@media (min-width:601px){.as-oil-cpc-wrapper .as-oil-l-buttons-light{float:right}}@media (max-width:600px){.as-oil-cpc-wrapper .as-oil-l-buttons-light{display:initial;background:#f9f9f9;box-shadow:0 -8px 20px 0 rgba(0,0,0,.2);padding:8px;position:fixed;bottom:0;left:0}}@media (min-width:601px){.as-oil-cpc-wrapper .as-oil-l-buttons-dark{float:right}}@media (max-width:600px){.as-oil-cpc-wrapper .as-oil-l-buttons-dark{display:initial;background:#262626;box-shadow:0 -8px 20px 0 rgba(0,0,0,.2);padding:8px;position:fixed;bottom:0;left:0}}.as-oil-cpc-wrapper .as-oil__heading,.as-oil-cpc-wrapper .as-oil__intro-txt{margin-left:200px;display:block;max-width:100%}@media (max-width:929px){.as-oil-cpc-wrapper .as-oil__heading,.as-oil-cpc-wrapper .as-oil__intro-txt{margin-left:0;margin-right:20px;text-align:center}}.as-oil-cpc__content{display:flex}.as-oil-cpc__left{flex:0 0 200px;max-width:200px;display:inline-block;text-align:right;text-transform:uppercase;font-size:1.1em;margin-bottom:-25px;border-right:1px solid #ccc}@media (max-width:849px){.as-oil-cpc__left{display:none}}@media (max-width:929px){.as-oil-cpc__left{flex:0}}.as-oil-cpc__left:first-child{padding-top:40px}.as-oil-cpc__left a{text-decoration:none}.as-oil-cpc__middle{flex:1 1 auto;padding:24px;display:inline-block;overflow:scroll;max-height:500px;max-height:40vh}@media (max-width:600px){.as-oil-cpc__middle{padding:0}}.as-oil-cpc__right{flex:0 0 200px;display:inline-block;align-self:flex-end}@media (max-width:600px){.as-oil-cpc__right{flex:0}}.as-oil-cpc__row-btn-all{text-align:right}@media (max-width:600px){.as-oil-cpc__row-btn-all span{display:inline-block;width:49%;text-align:center;padding:.7em 1em}}.as-oil-cpc__row-title{font-size:1.2em;font-weight:600;margin:20px 8px}.as-oil-cpc__category-link{padding:6px 12px;display:block;border-right:2px solid hsla(0,0%,100%,0)}.as-oil-cpc__category-link--active{border-right:2px solid #3f7ddf}.as-oil-cpc__purpose{border:1px solid #eaeaea;border-radius:5px;padding:20px;margin:16px 0}.as-oil-cpc__purpose-container{position:relative}.as-oil-cpc__purpose-header{font-size:1em;font-weight:500;margin:0 75px 30px 0}.as-oil-cpc__purpose-text{font-size:.9em;color:#737373}.dark .as-oil-cpc__purpose-text{color:#a9a9a9}.light .as-oil-cpc__left a{color:#262626}.as-oil-cpc__switch{position:absolute;display:inline-block;width:50px;height:26px;right:0;top:0;float:right}.as-oil-cpc__switch input{display:none}.as-oil-cpc__switch input+.as-oil-cpc__status:after{content:"Off"}.as-oil-cpc__switch input:checked~.as-oil-cpc__slider{background-color:#3f7edf}.as-oil-cpc__switch input:checked~.as-oil-cpc__status:after{content:"On"}.as-oil-cpc__switch input:focus~.as-oil-cpc__slider{box-shadow:0 0 1px #3f7edf}.as-oil-cpc__switch input:checked~.as-oil-cpc__slider:before{transform:translateX(20px);background-color:#2a2a2a}.as-oil-cpc__status{position:absolute;top:5px;left:-25px;color:#3f7edf;font-weight:500}.as-oil-cpc__slider{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:#eaeaea;transition:.4s;border-radius:17px}.as-oil-cpc__slider:before{position:absolute;content:"";height:20px;width:20px;left:3px;bottom:3px;background-color:#767676;box-shadow:0 2px 4px 0 rgba(0,0,0,.08);transition:.4s;border-radius:50%}.as-oil.dark .as-js-oilback__text,.as-oil.dark .as-oil-cpc__left a{color:#f5f5f5!important}.as-oil.dark .as-oil-cpc__purpose{background-color:#383737}',""])},119:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.oilPowerOptIn=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new Promise(function(i,u){(t?(0,_.buildSoiCookie)(e):(0,s.setSoiCookie)(e)).then(function(e){var t,s=(p(t={},r.OIL_PAYLOAD_PRIVACY,e.consentString),p(t,r.OIL_PAYLOAD_VERSION,e.version),p(t,r.OIL_PAYLOAD_LOCALE_VARIANT_NAME,e.localeVariantName),p(t,r.OIL_PAYLOAD_LOCALE_VARIANT_VERSION,e.localeVariantVersion),p(t,d.OIL_PAYLOAD_CUSTOM_PURPOSES,e.customPurposes),t);(0,c.isPoiActive)()&&((0,a.activatePowerOptInWithIFrame)(s),(0,o.verifyPowerOptIn)().then(function(e){!1===e.power_opt_in&&((0,n.logInfo)("iFrame POI didn't work. Trying fallback now."),(0,a.activatePowerOptInWithRedirect)(s))})),(0,l.sendEventToHostSite)(r.EVENT_NAME_OPT_IN),i(!0)}).catch(function(e){return u(e)})})},t.oilOptIn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.PRIVACY_FULL_TRACKING;return new Promise(function(t,i){(0,s.setSoiCookie)(e).then(function(){(0,l.sendEventToHostSite)(r.EVENT_NAME_OPT_IN),t(!0)}).catch(function(e){return i(e)})})};var o=i(41),n=i(0),a=i(120),l=i(1),r=i(5),s=i(6),c=i(2),_=i(6),d=i(5);function p(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}},120:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.activatePowerOptInWithIFrame=function(e){return(0,n.isPoiActive)()?new Promise(function(t){return(0,a.init)().then(function(){(0,a.sendEventToFrame)("oil-poi-activate",(0,l.getOrigin)(),e),setTimeout(t)})}):new Promise(function(e){e()})},t.redirectToLocation=function(e){window.location.replace(e)},t.activatePowerOptInWithRedirect=function(e){if((0,n.isPoiActive)()){var i=JSON.stringify(e),a=encodeURIComponent(i),l=(0,n.getHubLocation)(),r=(0,n.getPoiGroupName)();if(l){var s=l+"?"+o.POI_FALLBACK_NAME+"=1";r&&(s=s+"&"+o.POI_FALLBACK_GROUP_NAME+"="+r),e&&(s=s+"&"+o.POI_PAYLOAD+"="+a),t.redirectToLocation(s)}}};var o=i(5),n=i(2),a=i(41),l=i(1)},121:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.oilDefaultTemplate=function(){return'\n <div class="as-oil-content-overlay" data-qa="oil-full">\n <div class="as-oil-l-wrapper-layout-max-width">\n <div class="as-oil__heading">\n '+(0,l.getLabel)(a.OIL_LABELS.ATTR_LABEL_INTRO_HEADING)+'\n </div>\n <p class="as-oil__intro-txt">\n '+s()+'\n </p>\n <div class="as-oil-l-row as-oil-l-buttons">\n <div class="as-oil-l-item">\n <button class="as-oil__btn-optin as-js-optin" data-context="'+o.DATA_CONTEXT_YES+'" data-qa="oil-YesButton">\n '+(0,l.getLabel)(a.OIL_LABELS.ATTR_LABEL_BUTTON_YES)+'\n </button>\n </div>\n <div class="as-oil-l-item as-oil-l-item--stretch">\n '+r((0,l.isAdvancedSettings)())+"\n </div>\n </div>\n\n </div>\n </div>\n"};var o=i(5),n=i(122),a=i(112),l=i(111),r=function(e){return!0===e?'\n <button class="as-oil__btn-cpc as-js-advanced-settings" data-context="'+o.DATA_CONTEXT_ADVANCED_SETTINGS+'" data-qa="oil-AdvancedSettingsButton">\n '+(0,l.getLabel)(a.OIL_LABELS.ATTR_LABEL_BUTTON_ADVANCED_SETTINGS)+"\n </button>\n ":""},s=function(){return(0,l.getLabel)(a.OIL_LABELS.ATTR_LABEL_INTRO)||(0,l.getLabel)(a.OIL_LABELS.ATTR_LABEL_INTRO_START)+" "+(0,n.privacyPageSnippet)()+" "+(0,l.getLabel)(a.OIL_LABELS.ATTR_LABEL_INTRO_END)}},122:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.privacyPageSnippet=void 0;var o=i(111),n=i(112),a=i(5);t.privacyPageSnippet=function(){var e=(0,o.getLabel)(n.OIL_LABELS.ATTR_PRIVACY_PAGE_URL);return e?'\n <a href="'+e+'" \n class="as-oil__intro-txt--link"\n data-qa="'+a.DATAQA_PRIVACY_PAGE+'"\n target="_blank"\n >'+(0,o.getLabel)(n.OIL_LABELS.ATTR_LABEL_BUTTON_PRIVACY)+"</a>":""}},123:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.oilNoCookiesTemplate=function(){return'\n <div class="as-oil-content-overlay oil-nocookies" data-qa="oil-nocookies">\n <div class="as-oil-l-wrapper-layout-max-width">\n <div class="as-oil__heading">\n '+(0,n.getLabel)(o.OIL_LABELS.ATTR_LABEL_NO_COOKIES_HEADING)+'\n </div>\n <p class="as-oil__intro-txt">\n '+(0,n.getLabel)(o.OIL_LABELS.ATTR_LABEL_NO_COOKIES_TEXT)+"\n </p>\n </div>\n </div>\n"};var o=i(112),n=i(111)},124:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.oilAdvancedSettingsInlineTemplate=f,t.oilAdvancedSettingsTemplate=function(){return'\n <div id="as-oil-cpc" class="as-oil-content-overlay" data-qa="oil-cpc-overlay">\n '+f()+"\n </div>"},t.attachCpcHandlers=function(){(0,n.forEach)(document.querySelectorAll(".as-js-btn-activate-all"),function(e){e&&e.addEventListener("click",h,!1)}),(0,n.forEach)(document.querySelectorAll(".as-js-btn-deactivate-all"),function(e){e&&e.addEventListener("click",g,!1)})};var o=i(112),n=i(113),a=i(111),l=i(2),r=i(5),s=i(1),c=i(9),_=function(){return'\n<button class="as-js-oilback" data-context="'+r.DATA_CONTEXT_BACK+'" data-qa="oil-back-button">\n <span class="as-js-oilback__text">\n '+(0,a.getLabel)(o.OIL_LABELS.ATTR_LABEL_BUTTON_BACK)+'\n </span>\n <svg class="as-js-oilback__icon" width="22" height="22" viewBox="0 0 22 22" xmlns="http://www.w3.org/2000/svg">\n <g fill="none" fill-rule="evenodd">\n <circle fill="#757575" cx="11" cy="11" r="11"/>\n <path d="M15.592 14.217a.334.334 0 0 1 .098.245c0 .098-.033.18-.098.246l-.928.908a.303.303 0 0 1-.22.098.33.33 0 0 1-.244-.098L11 12.4l-3.2 3.216a.303.303 0 0 1-.22.098.33.33 0 0 1-.244-.098l-.928-.908a.334.334 0 0 1-.098-.246c0-.098.033-.18.098-.245L9.632 11 6.408 7.808c-.163-.164-.163-.327 0-.491l.904-.933a.473.473 0 0 1 .244-.098.33.33 0 0 1 .244.098L11 9.576l3.2-3.192a.473.473 0 0 1 .244-.098.33.33 0 0 1 .244.098l.904.933c.163.164.163.32 0 .466l-3.224 3.192 3.224 3.242z"\n fill="#FFF" opacity=".88"/>\n </g>\n </svg>\n</button>\n'},d=function(){return'\n <div class="as-oil-cpc__row-btn-all">\n <span class="as-js-btn-deactivate-all as-oil__btn-grey">'+(0,a.getLabel)(o.OIL_LABELS.ATTR_LABEL_CPC_DEACTIVATE_ALL)+'</span>\n <span class="as-js-btn-activate-all as-oil__btn-blue">'+(0,a.getLabel)(o.OIL_LABELS.ATTR_LABEL_CPC_ACTIVATE_ALL)+"</span>\n </div>\n "},p=function(e){return e.map(function(e){return'\n<div class="as-oil-cpc__purpose">\n <div class="as-oil-cpc__purpose-container">\n <div class="as-oil-cpc__purpose-header">'+(t={id:e.id,header:(0,a.getLabelWithDefault)(o.OIL_LABELS["ATTR_LABEL_CPC_0"+e.id+"_TEXT"],e.name||"Error: Missing text for purpose with id "+e.id+"!"),text:(0,a.getLabelWithDefault)(o.OIL_LABELS["ATTR_LABEL_CPC_0"+e.id+"_DESC"],e.description||""),value:!1}).header+'</div>\n <div class="as-oil-cpc__purpose-text">'+t.text+'</div>\n <label class="as-oil-cpc__switch">\n <input data-id="'+(i=t.id)+'" id="as-js-purpose-slider-'+i+'" class="as-js-purpose-slider" type="checkbox" name="oil-cpc-purpose-'+i+'" value="'+t.value+'"/>\n <span class="as-oil-cpc__status"></span>\n <span class="as-oil-cpc__slider"></span>\n </label>\n </div>\n</div>';var t,i}).join("")},u=function(){return'\n<div data-qa="cpc-snippet" class="as-oil-l-row as-oil-cpc__content">\n <div class="as-oil-cpc__left">\n <a href="#as-oil-cpc-purposes" onclick=\''+r.OIL_GLOBAL_OBJECT_NAME+'._switchLeftMenuClass(this)\' class="as-oil-cpc__category-link as-oil-cpc__category-link--active">\n '+(0,a.getLabel)(o.OIL_LABELS.ATTR_LABEL_PURPOSE_DESC)+'\n </a>\n <a href="#as-oil-cpc-third-parties" onclick=\''+r.OIL_GLOBAL_OBJECT_NAME+'._switchLeftMenuClass(this)\' class="as-oil-cpc__category-link">\n '+(0,a.getLabel)(o.OIL_LABELS.ATTR_LABEL_THIRD_PARTY)+' \n </a>\n </div>\n <div class="as-oil-cpc__middle as-js-purposes">\n <div class="as-oil-cpc__row-title" id="as-oil-cpc-purposes">\n '+(0,a.getLabel)(o.OIL_LABELS.ATTR_LABEL_PURPOSE_DESC)+"\n </div>\n "+p((0,c.getPurposes)())+"\n "+p((0,l.getCustomPurposes)())+'\n <div class="as-oil-cpc__row-title" id="as-oil-cpc-third-parties">\n '+(0,a.getLabel)(o.OIL_LABELS.ATTR_LABEL_THIRD_PARTY)+'\n </div>\n <div id="as-js-third-parties-list">\n '+((e=(0,c.getVendorList)())&&!e.isDefault?'<div class="as-oil-poi-group-list">'+(0,c.getVendors)().map(function(e){if(e.name)return'<div class="as-oil-third-party-list-element">\n <span onclick=\''+r.OIL_GLOBAL_OBJECT_NAME+'._toggleViewElements(this)\'>\n <svg class=\'as-oil-icon-plus\' width="10" height="10" viewBox="0 0 10 10" xmlns="http://www.w3.org/2000/svg">\n <path d="M5.675 4.328H10v1.344H5.675V10h-1.35V5.672H0V4.328h4.325V0h1.35z" fill="#0068FF" fill-rule="evenodd" fill-opacity=".88"/>\n </svg>\n <svg class=\'as-oil-icon-minus\' style=\'display: none;\' width="10" height="5" viewBox="0 0 10 5" xmlns="http://www.w3.org/2000/svg">\n <path d="M0 0h10v1.5H0z" fill="#3B7BE2" fill-rule="evenodd" opacity=".88"/>\n </svg>\n <span class=\'as-oil-third-party-name\'>'+e.name+"</span>\n </span>\n <div class='as-oil-third-party-toggle-part' style='display: none;'>\n <a class='as-oil-third-party-link' href='"+e.policyUrl+"'>"+e.policyUrl+"</a>\n </div>\n </div>"}).join("")+"</div>":"Missing vendor list! Maybe vendor list retrieval has been failed! Please contact web administrator!")+'\n </div>\n </div>\n <div class="as-oil-cpc__right">\n <div class="as-oil-l-row as-oil-l-buttons-'+(0,a.getTheme)()+'">\n <div class="as-oil-l-item">\n <button class="as-oil__btn-optin as-js-optin" data-context="'+r.DATA_CONTEXT_YES+'" data-qa="oil-YesButton">\n '+(0,a.getLabel)(o.OIL_LABELS.ATTR_LABEL_BUTTON_YES)+"\n </button>\n </div>\n </div>\n </div>\n</div>";var e};function f(){return'<div class="as-oil-l-wrapper-layout-max-width as-oil-cpc-wrapper">\n <div class="as-oil__heading">\n '+(0,a.getLabel)(o.OIL_LABELS.ATTR_LABEL_CPC_HEADING)+'\n </div>\n <p class="as-oil__intro-txt">\n '+(0,a.getLabel)(o.OIL_LABELS.ATTR_LABEL_CPC_TEXT)+"\n </p>\n "+d()+"\n "+_()+"\n "+u()+"\n </div>"}function h(){var e=document.querySelectorAll(".as-js-purpose-slider");(0,n.forEach)(e,function(e){e&&(e.checked=!0)})}function g(){(0,n.forEach)(document.querySelectorAll(".as-js-purpose-slider"),function(e){e&&(e.checked=!1)})}(0,s.setGlobalOilObject)("_switchLeftMenuClass",function(e){var t=e.parentNode.children;(0,n.forEach)(t,function(e){e.className=e.className.replace(new RegExp("\\s?as-oil-cpc__category-link--active\\s?","g"),"")}),e.className+=" as-oil-cpc__category-link--active"})},125:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSoiConsentData=function(){var e=(0,o.getSoiCookie)();return e.opt_in?e.consentData:void 0},t.getPrivacySettings=function(){if(document.querySelector(".as-js-purpose-slider")){var e={};return(0,l.forEach)(document.querySelectorAll(".as-js-purpose-slider"),function(t){var i=t.dataset?t.dataset.id:t.getAttribute("data-id");e[i]=t.checked},this),e}return n.PRIVACY_FULL_TRACKING},t.applyPrivacySettings=function(e){(0,a.logInfo)("Apply privacy settings from cookie",e);for(var t=1;t<=(0,r.getPurposes)().length;t++)document.querySelector("#as-js-purpose-slider-"+t).checked=-1!==e.indexOf(t);1===e&&(0,l.forEach)(document.querySelectorAll(".as-js-purpose-slider"),function(e){e&&(e.checked=!0)}),0===e&&(0,l.forEach)(document.querySelectorAll(".as-js-purpose-slider"),function(e){e&&(e.checked=!1)})};var o=i(6),n=i(5),a=i(0),l=i(113),r=i(9)},130:function(e,t){e.exports={localeId:"enEN_00",version:0,texts:{label_intro_heading:"We use cookies and other technologies",label_intro_start:"label_intro_start",label_intro_end:"label_intro_end",label_intro:'The website uses cookies, web beacons, JavaScript and similar technologies. I agree that <a href="javascript:void(0)" class="as-oil__intro-txt--link as-js-companyList">companies belonging to Axel Springer SE</a> and <a href="javascript:void(0)" class="as-oil__intro-txt--link as-js-thirdPartyList">trusted partners</a> generate pseudonymous user profiles for adapting the website to the user, for market research and for advertising. The generated data can also be shared with third parties while the user profiles cannot be combined with personal data. Detailed information, also on the right to withdraw consent, can be found in the website\'s privacy policy.',label_button_yes:"OK",label_button_back:"Back",label_button_advanced_settings:"More information",label_button_privacy:"label_button_privacy",label_cpc_heading:"Privacy settings:",label_cpc_text:"Please select a privacy setting",label_cpc_activate_all:"Activate all",label_cpc_deactivate_all:"Deactivate all",label_third_party:"Third parties",label_cpc_purpose_desc:"Purpose",label_poi_group_list_heading:"Your consent for companies of the group",label_poi_group_list_text:"Here is a list of companies of the group:",label_thirdparty_list_heading:"Your consent for third party software",label_thirdparty_list_text:"",label_nocookie_head:"In order to be able to provide our services in the best possible way, cookies must be activated in your browser.",label_nocookie_text:'Please activate Cookies in the properties of your Browsers. So you can do it in <a href="https://support.google.com/chrome/answer/95647?co=GENIE.Platform%3DDesktop&amp;hl=en-GB" class="as-oil__intro-txt--link" target="_blank">Google Chrome</a> or <a href="https://support.mozilla.org/en-US/kb/cookies-information-websites-store-on-your-computer" class="as-oil__intro-txt--link" target="_blank">Firefox</a>.".'}}},42:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.oilWrapper=t.handlePoiOptIn=t.handleSoiOptIn=t.handleOptIn=t.oilShowPreferenceCenter=t.renderOil=void 0;var o=i(113);Object.defineProperty(t,"renderOil",{enumerable:!0,get:function(){return o.renderOil}}),Object.defineProperty(t,"oilShowPreferenceCenter",{enumerable:!0,get:function(){return o.oilShowPreferenceCenter}}),Object.defineProperty(t,"handleOptIn",{enumerable:!0,get:function(){return o.handleOptIn}}),Object.defineProperty(t,"handleSoiOptIn",{enumerable:!0,get:function(){return o.handleSoiOptIn}}),Object.defineProperty(t,"handlePoiOptIn",{enumerable:!0,get:function(){return o.handlePoiOptIn}}),Object.defineProperty(t,"oilWrapper",{enumerable:!0,get:function(){return o.oilWrapper}}),t.locale=function(e){var t,i=this,o=(0,s.getLocale)(),n=o&&o.texts?(t=o.texts,Object.values(a.OIL_LABELS).filter(function(e){return!e.startsWith(a.OPTIONAL_LABEL_PREFIX)}).filter(function(e){return!t[e]})):[];if(o&&o.texts&&0===n.length)return e(this);var d=(0,s.getLocaleUrl)();if(!d)return _(c.default,o,n),e(this);(0,r.fetchJsonData)(d).then(function(t){return _(t,o,n),e(i)}).catch(function(t){return(0,l.logError)("OIL backend returned error: "+t+". Falling back to default locale '"+c.default.localeId+"', version "+c.default.version+"!"),_(c.default,o,n),e(i)})};var n,a=i(112),l=i(0),r=i(1),s=i(2),c=(n=i(130))&&n.__esModule?n:{default:n};function _(e,t,i){t&&t.texts?(i.forEach(function(i){e.texts[i]?t.texts[i]=e.texts[i]:(0,l.logWarn)(i+" missing from locale config.")}),(0,s.setLocale)(t)):(0,s.setLocale)(e)}}}]);