You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

71 lines
14 KiB

truste.bn.round=function(b,a){return Number(Math.round(b+"e"+a)+"e-"+a)};truste.bn.getDefaultStyleProperty=function(a,b){var c=document.createElement(b);
document.body.appendChild(c);var d=window.getComputedStyle(c,null)[a];c.parentNode.removeChild(c);return d
};truste.bn.getDisplayProperty=function(b){var a=window.getComputedStyle(b,null).display;return(a=="none")?truste.bn.getDefaultStyleProperty("display",b.nodeName):a
};truste.bn.show=function(c){if(!c){return}var b=truste.bn.getDisplayProperty(c);if(typeof requestAnimationFrame!=="undefined"){c.style.opacity=0;
c.style.display=b;(function a(d){var e=truste.bn.round(parseFloat(d.style.opacity),2);if((e=e+0.1)<=1){d.style.opacity=e;
requestAnimationFrame(function(){a(d)})}})(c)}else{c.style.display=b}};truste.bn.hide=function(b){if(!b){return
}if(typeof requestAnimationFrame!=="undefined"){(function a(c){var d=truste.bn.round(parseFloat(c.style.opacity||1),2);
d=d-0.1;c.style.opacity=d;if(d<=0){c.style.display="none"}else{requestAnimationFrame(function(){a(c)})
}})(b)}else{b.style.display="none"}};truste.bn.isVisible=function(b){var a=window.getComputedStyle(b);
return a.display!=="none"&&a.opacity>0&&a.visibility!=="hidden"};truste.bn.removeEvent=function(c,b,a){if(c&&typeof b=="string"&&a instanceof Function){if(c.removeEventListener){c.removeEventListener(b,a,false)
}else{if(c.detachEvent){c.detachEvent("on"+b,a)}}}};truste.bn.addEvent=function(c,b,a){if(c&&typeof b=="string"&&a instanceof Function){if(c.addEventListener){c.addEventListener(b,a,false)
}else{if(c.attachEvent){c.attachEvent("on"+b,a)}}}};(function bannerMain(){var b=truste.eu.bindMap;b.bannerMsgURL=b.iconBaseUrl+"bannermsg?";
var d=b.params;var c=d.c||"teconsent";var e=d.bb||"consent_blackbar";if(!document.getElementById(e)){if(typeof MutationObserver!=="undefined"){var g=new MutationObserver(function f(j){if(document.getElementById(e)){g.disconnect();
a(d,c,e)}});g.observe(document.body||document.getElementsByTagName("body")[0]||document.documentElement,{attributes:false,childList:true,characterData:false,subtree:true});
setTimeout(function(){g.disconnect()},60000)}else{var i=setInterval(function h(){if(document.getElementById(e)){i=clearInterval(i);
a(d,c,e)}},150);setTimeout(function(){clearInterval(i)},10000)}}else{a(d,c,e)}function a(J,j,B){var G=3;
G=(G>0)?G:3;var C=(function I(L){var M=[];for(var K=0;K<L;K++){M.push(K)}return M.join(",")})(G);var u="truste-consent-track";
var z=/MSEI|Trident/.test(navigator.userAgent);var v=/\bandroid (\d+(?:\.\d+)+);/gi.exec(navigator.userAgent);
var E=(v&&v[1]<="4.4");var t=document.getElementById(j);var n=document.getElementById(B);truste.bn.addEvent(window,"message",p);
var l=document.readyState;if(l&&(l=="complete"||l=="interactive")){D("loaded")}else{truste.bn.addEvent(document,"DOMContentLoaded",function(){D("loaded")
})}function D(L){if(D[L]){return}D[L]=1;switch(L){case"loaded":if(n){w();o();s();if(truste.bn.checkPreference()){F()
}else{if(b.bnFlags.consentUnresolved){truste.bn.checkConsentUnresolved(F,A)}else{A()}}}break;case"done":truste.bn.removeEvent(document,"click",q);
truste.bn.removeEvent(document,"scroll",r);truste.bn.show(t);truste.bn.hide(document.getElementById(u));
break;case"open":try{if(z||E){var K=document.createEvent("UIEvents");K.initUIEvent("resize",true,false,window,0);
window.dispatchEvent(K)}else{window.dispatchEvent(new Event("resize"))}}catch(M){console&&console.log("Resize event not supported.")
}}}function o(){var K='<style> @font-face{ font-family:"RedHatDisplayBold"; src: url(https://consent.trustarc.com/get?name=RedHatDisplay-Bold.ttf) format("truetype");}@font-face{ font-family:"RedHatDisplayMedium"; src: url(https://consent.trustarc.com/get?name=RedHatDisplay-Medium.ttf) format("truetype");}@font-face{ font-family:"RedHatTextRegular"; src: url(https://consent.trustarc.com/get?name=RedHatText-Regular.ttf) format("truetype");} #truste-consent-track{ background-color: #FFF; max-width: 412px; border-top: 2px solid #2B9AF3; box-shadow: 0px 5px 15px rgb(0 0 0 / 20%); position: fixed; bottom: 32px; left: 32px; right: 32px; } .truste-banner { margin: 0 auto; padding: 16px; } .truste-messageColumn { font-family: RedHatTextRegular; font-size: 14px; color: #000; margin: 0; line-height: 21px; padding: 0 0 0 32px; position: relative; } .truste-buttonsColumn { position: absolute; right: 16px; top: 11px; } .hidedesktop { display: none; font-family: RedHatTextRegular; font-size: 14px; cursor: pointer; color: #00559c; text-decoration:none; } .truste-cookie-link { font-family: RedHatTextRegular; cursor: pointer; color: #0066CC; text-decoration: none; } .truste-info-icon { width: 18px; position: absolute; left: 0; top: 1px;} span.truste-titlee { color: #002952; font-family: RedHatDisplayMedium; display: block; padding-bottom: 8px; font-weight: 600;}img.truste-info-icon { filter: invert(44%) sepia(82%) saturate(679%) hue-rotate(171deg) brightness(104%) contrast(91%);}button#truste-consent-button { background: none; border: none; cursor: pointer; padding: 0; margin: 0;}button#truste-consent-button img { filter: invert(45%) sepia(8%) saturate(284%) hue-rotate(173deg) brightness(92%) contrast(89%); width: 10px;} /* MEDIA QUERIES */ @media screen and (max-width: 768px){ #truste-consent-track{ max-width: 314px; left: 24px; right: 24px; bottom: 24px; } } @media screen and (max-width: 404px){ #truste-consent-track{ max-width: 100%; } } @media screen and (max-width: 420px) { .hidedesktop { display: inline; font-size: 14px; cursor: pointer; color: #00559c; text-decoration:none; } } @media screen and (min-width: 421px) and (max-width: 856px) { .hidedesktop { display: inline; font-size: 14px; cursor: pointer; color: #00559c; text-decoration:none; } } </style><div id="truste-consent-track" style="display:none;"> <div id="truste-consent-content" class="truste-banner" style="overflow: hidden; max-width: 1200px; max-height:auto;"> <div id="truste-consent-text" class="truste-messageColumn"><img class="truste-info-icon" src="https://consent.trustarc.com/get?name=info-circle-solid.svg" /><span class="truste-titlee">How we use cookies</span>We use cookies on our websites to deliver our online services. Details about how we use cookies and how you may disable them are set out in our&nbsp;<a href="http://www.redhat.com/en/about/privacy-policy#cookies" target="_blank" class="truste-cookie-link">Privacy Statement</a>. By using this website you agree to our use of cookies. </div> <div id="truste-consent-buttons" class="truste-buttonsColumn"> <button id="truste-consent-button" type="button" class="truste-button1"><img alt="Close" src="https://consent.trustarc.com/get?name=redhat_close_small.svg"></button> </div> </div> </div>';
K=K.replace("&lt;i&gt;","<i>").replace("&lt;/i&gt;","</i>").replace("&lt;b&gt;","<b>").replace("&lt;/b&gt;","</b>");
if(!K||K.length<15){K='<div id="truste-consent-track" style="display:none; background-color:#000;"><div id="truste-consent-content" style="overflow: hidden; margin: 0 auto; max-width: 1000px"><div id="truste-consent-text" style="float:left; margin:15px 0 10px 10px; width:500px;"><h2 style="color: #fff; font-size: 16px; font-weight:bold; font-family:arial;">Some functionality on this site requires your consent for cookies to work properly.</h2><div id="truste-repop-msg" style="padding: 0px 0px 5px 0px;font-size: 12px;color: #F0C36D; display:none; font-family: arial,sans-serif;"></div></div><div id="truste-consent-buttons" style="float:right; margin:20px 10px 20px 0;"><button id="truste-consent-button" type=button style="padding:5px; margin-right:5px; font-size:12px;">I consent to cookies</button><button id="truste-show-consent" type=button style="padding:5px; margin-right:5px; font-size:12px;">I want more information</button></div></div></div>'
}if(J.responsive==="false"){K=K.replace(/(class=["'].*?)[\s]?truste-responsive(.*?["'])/g,"$1$2")}if(n.insertAdjacentHTML){n.insertAdjacentHTML("afterbegin",K)
}else{n.innerHTML=K}}function x(M){var L=(truste.util&&truste.util.getJSON)||(truste.cma&&truste.cma.cheapJSON)||window.JSON.stringify,K={source:"preference_manager",message:M,data:{useNonStandardStacks:false,consentScreen:1}};
window.postMessage&&window.postMessage(L(K),"*")}function H(){k(C);truste.eu.ccpa.dropCcpaCookie(false)
}function y(){var K=truste.eu.bindMap;if(K&&K.prefmgrUrl&&J.gtm){truste.bn.hide(document.getElementById(u));
truste.util.callCMEndpoint("/defaultconsentmanager/getOptOutDomains?",null,function(M){var L=M.responseText;
if(L&&truste.util.parseJSON(L)){truste.util.setStorage(truste.eu.COOKIE_CATEGORY_NAME,L,false);k("0")
}})}else{if(truste.eu&&truste.eu.clickListener){truste.eu.clickListener(3)}}}function k(K){var O=truste.util.getLowestConsent(K);
if(!isNaN(O=parseInt(O))&&truste.eu&&truste.eu.actmessage){var M=(truste.util&&truste.util.getJSON)||(truste.cma&&truste.cma.cheapJSON)||window.JSON.stringify,L={source:"preference_manager",message:"submit_preferences",data:{value:K}};
truste.eu.actmessage(L);if(window.PREF_MGR_API_DEBUG){PREF_MGR_API_DEBUG.authorities.push(window.location.hostname)
}window.postMessage&&window.postMessage(M(L),"*");var N=truste.eu.bindMap;if(N&&N.prefmgrUrl&&!N.feat.ccpaApplies){truste.util.callCMEndpoint("/defaultconsentmanager/optin?",O,function(){},true)
}D("selection");if(typeof __cmp!=="undefined"&&K==C){__cmp("consentAll",null,function(P){})}}else{D("done")
}}function s(){var K={consentButton:"truste-consent-button",footerCallback:"truste-show-consent",cookieButton:"truste-cookie-button",privacyButton:"truste-privacy-button",bannerHolder:u,closeBanner:"truste-consent-close",repopDiv:"truste-repop-msg",requiredButton:"truste-consent-required",ccpaOptoutButton:"truste-ccpa-optout",ccpaOptedIn:"ccpa-opted-in",ccpaOptedOut:"ccpa-opted-out",ccpaNoPreference:"ccpa-no-preference",iabPartnersLink:"iab-partners-link",secondIabPartnersLink:"iab-second-partners-link"};
var R=truste.eu.bindMap;if(R.feat.isReconsentEvent&&R.popupMsg.length>0){var T=document.getElementById(K.repopDiv);
if(T){T.innerHTML=R.popupMsg;truste.bn.show(T)}}var Q=document.getElementById(K.consentButton);if(Q){var M=new RegExp(C.replace(/,/g,"."));
if(!J.gtm&&!R.feat.enableCCPA&&R.feat.isRepopEvent&&!M.test(R.prefCookie)){Q.style.display="none"}else{Q.onclick=function(){truste.bn.msglog("accepts",b.bannerMsgURL);
if(b.feat.iabBannerApplies){x("process_iab_accept_all")}if((R.feat.enableCCPA||R.feat.isReconsentEvent)&&R.feat.enableTwoStepVerification&&R.prefCookie&&!R.prefCookie.includes("-1")&&!M.test(R.prefCookie)){if(truste.eu&&truste.eu.clickListener){truste.eu.clickListener(6)
}}else{H()}}}}Q=document.getElementById(K.footerCallback);if(Q){Q.onclick=function(){truste.bn.msglog("moreinfo",b.bannerMsgURL);
if(truste.eu&&truste.eu.clickListener){if(b.feat.iabBannerApplies){truste.eu.clickListener(4)}else{truste.eu.clickListener(parseInt(J.pn)||0)
}R.returnFocusTo=K.footerCallback.replace("#","")}}}Q=document.getElementById(K.requiredButton);if(Q){Q.onclick=function(){truste.bn.msglog("requiredonly",b.bannerMsgURL);
if(b.feat.iabBannerApplies){x("process_iab_reject_all")}y()}}Q=document.getElementById(K.ccpaOptoutButton);
if(Q){Q.onclick=function(){truste.bn.msglog("requiredonly",b.bannerMsgURL);k("0");truste.eu.ccpa.dropCcpaCookie(true)
}}Q=document.getElementById(K.cookieButton);if(Q){Q.onclick=function(U){truste.bn.msglog("cookiepolicy",b.bannerMsgURL);
if(J.cookieLink){U.preventDefault();window.open(J.cookieLink)}}}Q=document.getElementById(K.privacyButton);
if(Q){Q.onclick=function(U){if(J.privacypolicylink){U.preventDefault();window.open(J.privacypolicylink)
}}}Q=document.getElementById(K.closeBanner);if(Q){Q.onclick=function(){D("done")}}Q=document.getElementById(K.iabPartnersLink);
if(Q){Q.onclick=function(){truste.eu.clickListener(5);R.returnFocusTo=K.iabPartnersLink.replace("#","")
};Q.onkeyup=function(U){if(U.keyCode==13){truste.eu.clickListener(5);R.returnFocusTo=K.iabPartnersLink.replace("#","")
}}}Q=document.getElementById(K.secondIabPartnersLink);if(Q){Q.onclick=function(){truste.eu.clickListener(5);
R.returnFocusTo=K.secondIabPartnersLink.replace("#","")};Q.onkeyup=function(U){if(U.keyCode==13){truste.eu.clickListener(5);
R.returnFocusTo=K.secondIabPartnersLink.replace("#","")}}}if(R.feat.ccpaApplies){var N=truste.eu.ccpa.getOptout();
var S=document.getElementById(K.ccpaOptedOut);var P=document.getElementById(K.ccpaOptedIn);var L=document.getElementById(K.ccpaNoPreference);
if(N&&R.prefCookie){var O=/^[yY]$/;if(O.test(N)){S&&truste.bn.show(S);P&&truste.bn.hide(P);L&&truste.bn.hide(L)
}else{S&&truste.bn.hide(S);P&&truste.bn.show(P);L&&truste.bn.hide(L)}}else{S&&truste.bn.hide(S);P&&truste.bn.hide(P);
L&&truste.bn.show(L)}}parseInt(J.fade)&&setTimeout(function(){k(J.sl)},parseInt(J.fade));D("open")}function p(K){var L;
try{L=K&&K.data&&JSON&&JSON.parse(K.data)}catch(M){return null}if(L&&L.source=="preference_manager"&&L.message=="submit_preferences"){D("done")
}}function w(){if(J.oc){truste.bn.addEvent(document,"click",q)}if(J.px){truste.bn.addEvent(document,"scroll",r)
}}function F(){truste.bn.show(document.getElementById(u));truste.bn.msglog("views",b.bannerMsgURL)}function A(){D("done");
truste.bn.msglog("returns",b.bannerMsgURL)}function m(K){return K&&truste.bn.isVisible(K)&&!document.getElementById(truste.eu.popdiv2)
}function q(L){var K=document.getElementById(u);if(m(K)&&!K.contains(L.target)&&L.target.id!==truste.eu.popclose){k(C)
}}function r(L){var K=document.getElementById(u);if(m(K)&&(document.scrollingElement.scrollTop||document.documentElement.scrollTop)>=J.px){k(C)
}}truste.bn.reopenBanner=function(){if(n){D.done=0;w();s();truste.bn.show(document.getElementById(u))
}};truste.bn.twoStepConfirmed=function(){k(C);truste.eu.ccpa.dropCcpaCookie(false)};truste.bn.twoStepDeclined=function(){D("done")
}}})();