if(require.toUrl("scriptaculous/effects").indexOf("/webjars/")<0){require.config({paths:{"scriptaculous/effects":"/en/skin/resources/js/scriptaculous/effects.js?v=10.11.9"}})}define("cookie-consent",["scriptaculous/effects"],function(){var a=Class.create({initialize:function(c){this.settings=c;if(!this.getCookie("cookieConsent")){this.showDisclaimer()}var b=$("ResetCookies");if(b!=null){b.observe("click",function(){this.showDisclaimer()}.bind(this))}},getCookie:function(c){var b=c+"=";var d=false;document.cookie.split(";").invoke("strip").each(function(e){if(e.startsWith(b)){d=unescape(e.substring(b.length,e.length))}});return d},setCookie:function(d,f,h){var g=d+"="+escape(new String(f));var b="";if(h){var c=new Date();c.setTime(c.getTime()+(h*24*60*60*1000));var b="; expires="+c.toGMTString()}var e=g+b+";path=/";document.cookie=e},clearCookie:function(b){this.setCookie(b,"",-1)},animation:function(c,b){switch(this.settings.animation){case"none":c=="show"?$(b).show():$(b).hide();break;case"slide":c=="show"?Element.blindDown(b,{duration:1}):Element.blindUp(b,{duration:1});break;case"fade":c=="show"?Element.blindDown(b,{duration:1}):Element.blindUp(b,{duration:1});break}},showDisclaimer:function(){clearLessCache();if(this.settings.activeCookieTypes===""){return}var j=this.settings.activeCookieTypes.split(",");var c=this.settings.disclaimer1+'<button class="button" role="button" name="cookieConsentHide" id="cookieConsentHide">'+this.settings.buttonText+'</button><button class="button" role="button" name="cookieConsentRejectAll" id="cookieConsentRejectAll">'+this.settings.rejectButtonText+'</button><button class="button" role="button" name="cookieConsentConfig" id="cookieConsentConfig">'+this.settings.configButtonText+"</button>";var b=this.settings.disclaimer2+'<div id="CookieSelectPane">';for(i=0;i<j.length;i++){var f=j[i];var d=this.settings[f+"Label"];var h=this.settings[f+"InfoBox"];var g="";if(f==="necessary"){d=this.settings.mandatoryLabel;g='disabled="disabled" checked="checked"'}b=b+'<div class="CookieSelectButtonWrapper" title="'+h+'"><label for="CookieButton'+d+'"><input id="CookieButton'+d+'" class="CookieButton" tabindex="1" '+g+' type="checkbox">'+d+"</label></div>"}b=b+'</div><button class="button" role="button" name="cookieConsentOK" id="cookieConsentOK">OK</button>';var e='<div id="cookieConsent" style="display: none;"><div class="col-md-2"></div><div id="cookieConsentContent" class="col-md-8">'+c+'</div><div class="col-md-2"></div></div></div>';$("xwikimaincontainerinner").insert({before:e});$("cookieConsentHide").observe("click",this.hideDisclaimer.bind(this,j));$("cookieConsentRejectAll").observe("click",function(){this.setCookie("cookieConsent","hide",365);this.animation("hide","cookieConsent")}.bind(this)),$("cookieConsentConfig").addEventListener("click",function(){$("cookieConsentContent").innerHTML=b;$("cookieConsentOK").observe("click",function(){for(i=0;i<j.length;i++){var m=j[i];var l=this.settings[m+"Label"];if(m==="necessary"){l=this.settings.mandatoryLabel}if(!$("CookieButton"+l).checked){var k=j.indexOf(m);if(k>-1){j.splice(k,1)}}}this.hideDisclaimer(j)}.bind(this))}.bind(this));this.animation("show","cookieConsent")},hideDisclaimer:function(b){this.setCookie("cookieConsent","hide",365);this.setCookie("gdprSettings",b,365);this.animation("hide","cookieConsent")}});return a});document.observe("dom:loaded",function(){require(["cookie-consent"],function(c){var b={type:"bar",position:"bottom",animation:"slide",buttonType:"$settings.getProperty('buttonType').value",buttonText:"Accept all cookies",rejectButtonText:"Reject",configButtonText:"Configure",disclaimer1:'<p>This site uses cookies to improve your browsing experience, to perform analytics and for advertising. By clicking <strong>I accept all Cookies</strong> you agree to the use of cookies on your device. If you\'d like to change your preferences please visit the <span class="wikilink"><a href="/en/company/cookies/">Cookie Policy</a></span> page.</p>',disclaimer2:'<p>This site uses cookies to improve your browsing experience, to perform analytics and for advertising. By registering your choice of cookies and clicking <strong>OK</strong> you agree to the use of those cookies on your device. If you\'d like to change your preferences please visit the <span class="wikilink"><a style="box-sizing: border-box; background-color: transparent; color: rgb(47, 164, 231); text-decoration: underline;" href="/en/company/cookies/">Cookie Policy</a></span> page.</p>',necessaryInfoBox:"Necessary cookies which are mandatory and cannot be disabled",preferencesInfoBox:"Preferences cookies or trackers which are optional and enabled by default but used only to remember your preferences.",statisticsInfoBox:"Statistics related cookies or trackers which are optional and enabled by default and user to record anonymous statistics",marketingInfoBox:"Marketing or other related cookies or trackers which are optional and disabled by default and can record personal information",mandatoryLabel:"Necessary",preferencesLabel:"Preferences",statisticsLabel:"Statistics",marketingLabel:"Marketing",activeCookieTypes:"necessary,preferences,statistics,marketing"};var a=new c(b)})});function clearLessCache(){var a="true"};