1window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=function(e,t){t=t||window;for(var n=0;n<this.length;n++)e.call(t,this[n],n,this)});class GDPRConsentManager{constructor(){}readConsents(){let e={};return document.cookie.split(";").some((t=>{const n=t.split("=")[0].trim(),o=t.split("=")[1];if("gdpr-consent"===n)return e=JSON.parse(decodeURIComponent(o)),!0})),e}updateGTMConsents(e){window.consentModeV2&&0!==Object.keys(e).length&&"undefined"!=typeof gtag&>ag("consent","update",{ad_storage:this.getGTagConsentPreference(e?.marketing),ad_user_data:this.getGTagConsentPreference(e?.marketing),ad_personalization:this.getGTagConsentPreference(e?.marketing),analytics_storage:this.getGTagConsentPreference(e?.analytics)})}getGTagConsentPreference(e){return e?"granted":"denied"}getConsentBannerElement(){return document.querySelector("#cookie-consent-container")}getConsentFormContainer(){return document.querySelector("#cookie-consent-form-container")}hasConsent(e){return 1==this.readConsents()[e]}showCookieConsentBanner(){const e=this.getConsentBannerElement();if(!e)return;e.classList.remove("minimized");const t=e.offsetHeight;document.querySelector("body").style.paddingBottom=`${t}px`}minimizeCookieConsentBanner(){document.cookie.indexOf("gdpr-consent")<0&&(this.getConsentFormContainer().querySelectorAll(".preference-selector input[type='checkbox']").forEach((e=>{e.checked=!1})),this.updateCookiePreferences()),this.getConsentBannerElement().classList.add("minimized"),document.querySelector("body").style.paddingBottom=0}openCookieConsentForm(e=null){document.querySelector("html").scrollTop=0,document.querySelector("body").classList.add("consent-form-visible"),this.getConsentFormContainer().style.display="block",e&&e.dataset.target&&this.activateTab(e.dataset.target),this.attachKeyupListener()}closeCookieConsentForm(){document.querySelector("body").classList.remove("consent-form-visible"),this.getConsentFormContainer().style.display="none",this.detachKeyupListener()}approveAllCookies(){this.getConsentFormContainer().querySelectorAll(".preference-selector input[type='checkbox']").forEach((e=>{e.checked=!0})),this.updateCookiePreferences()}rejectAllCookies(){this.getConsentFormContainer().querySelectorAll(".preference-selector input[type='checkbox']").forEach((e=>{e.checked=!1})),this.updateCookiePreferences()}activateTab(e){const t=this.getConsentFormContainer(),n=t.querySelector(`.tab[data-target="${e}"]`);null!==n&&(t.querySelectorAll(".tab[data-target]").forEach((e=>{e.classList.remove("active")})),t.querySelectorAll(".panel").forEach((e=>{e.classList.remove("active")})),n.classList.add("active"),t.querySelector("#"+n.dataset.target).classList.add("active"))}attachKeyupListener(){this._handleKeyUp=e=>{var t=e.key||e.keyCode;"Escape"!==t&&27!==t||this.closeCookieConsentForm()},window.addEventListener("keyup",this._handleKeyUp)}detachKeyupListener(){window.removeEventListener("keyup",this._handleKeyUp)}consentPreferenceUpdateCallback(){this.closeCookieConsentForm(),this.minimizeCookieConsentBanner(),this.replaceTags()}postPreferences(e){const t={method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams(e)};fetch("/gdpr",t).then((e=>{e.ok?this.consentPreferenceUpdateCallback():(console.error(e),alert("Unable to complete your request."))}))}updateCookiePreferences(e){var t={};this.getConsentFormContainer().querySelectorAll('.preference-selector input[type="checkbox"]').forEach((e=>{t[e.name]=e.checked?1:0}));"requireConsent"in this.getConsentBannerElement().dataset?(this.postPreferences(t),this.updateGTMConsents(t)):(document.cookie="gdpr-consent={};path=/;secure",this.consentPreferenceUpdateCallback())}replaceTag(e,t){for(var n=document.createElement(t),o=0;o<e.attributes.length;o++)n.setAttribute(e.attributes[o].nodeName,e.attributes[o].value);return e.nonce&&n.setAttribute("nonce",e.nonce),e.childNodes.forEach((e=>{n.appendChild(e)})),n}replaceTags(){document.querySelectorAll("gdpr-iframe").forEach((e=>{if(e.dataset.consent){if(this.hasConsent(e.dataset.consent)){if(e.dataset.hasOwnProperty("id")){const t=e.dataset.id,n=document.querySelector(`[data-
1prompt="${t}"]`);n&&(n.style.display="none")}var t=this.replaceTag(e,"iframe");e.parentNode.replaceChild(t,e)}}else console.warn("consent type not set for element",e)})),document.querySelectorAll('script[type="text/plain"]').forEach((e=>{if(e.dataset.consent){if(this.hasConsent(e.dataset.consent)){e.type="text/javascript";var t=this.replaceTag(e,"script");e.parentNode.replaceChild(t,e)}}else console.warn("consent type not set for element",e)}))}prefillCookiePreferences(){var e=this.readConsents();this.getConsentFormContainer().querySelectorAll('.preference-selector input[type="checkbox"]').forEach((t=>{var n=t.name;t.checked=1==e[n]}))}}const consentManager=new GDPRConsentManager;consentManager.updateGTMConsents(consentManager.readConsents()),document.addEventListener("DOMContentLoaded",(function(){consentManager.replaceTags();var e=consentManager.getConsentBannerElement(),t=consentManager.getConsentFormContainer();if(e&&t)try{document.querySelectorAll(".consent-banner-open-trigger").forEach((e=>{e.addEventListener("click",(e=>{consentManager.showCookieConsentBanner()}))})),document.querySelectorAll(".consent-more-trigger").forEach((e=>{e.addEventListener("click",(e=>{consentManager.openCookieConsentForm(e.target)}))})),e.querySelector(".consent-all-trigger")&&e.querySelector(".consent-all-trigger").addEventListener("click",(()=>{consentManager.approveAllCookies()})),e.querySelector(".reject-all-trigger")&&e.querySelector(".reject-all-trigger").addEventListener("click",(()=>{consentManager.rejectAllCookies()})),e.querySelector(".consent-dismiss-trigger")&&e.querySelector(".consent-dismiss-trigger").addEventListener("click",(()=>{consentManager.minimizeCookieConsentBanner()})),t.querySelector(".consent-form-dismiss-trigger")&&t.querySelector(".consent-form-dismiss-trigger").addEventListener("click",(()=>{consentManager.closeCookieConsentForm()})),t.querySelector(".consent-submit-trigger")&&t.querySelector(".consent-submit-trigger").addEventListener("click",(()=>{consentManager.updateCookiePreferences()})),t.querySelectorAll(".tab[data-target]").forEach((e=>{e.addEventListener("click",(function(e){consentManager.activateTab(e.currentTarget.dataset.target)}))})),document.cookie.indexOf("gdpr-consent")<0&&setTimeout((()=>{consentManager.showCookieConsentBanner()}),5e3),consentManager.prefillCookiePreferences()}catch(n){console.group(),console.error(n),console.info("Consent Banner:",e),console.info("Consent Form Container:",t),console.groupEnd()}})); 2//# sourceMappingURL=all.min.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.