console.log('Inside JENTIS Script:Starts'); (function (sCDN, sCDNProject, sCDNWorkspace, sCDNVers) { function loadJentis() { console.log('Inside function loadJentis:Starts'); if ( window.localStorage && window.sessionStorage && typeof window.localStorage.getItem === "function" && typeof window.sessionStorage.getItem === "function" ) { sCDNVers = window.sessionStorage.getItem("jts_preview_version") || window.localStorage.getItem("jts_preview_version") || sCDNVers; } window.jentis = window.jentis || {}; window.jentis.config = window.jentis.config || {}; window.jentis.config.frontend = window.jentis.config.frontend || {}; window.jentis.config.frontend.cdnhost = sCDN + "/get/" + sCDNWorkspace + "/web/" + sCDNVers + "/"; window.jentis.config.frontend.vers = sCDNVers; window.jentis.config.frontend.env = sCDNWorkspace; window.jentis.config.frontend.project = sCDNProject; window._jts = window._jts || []; var f = document.getElementsByTagName("script")[0]; var j = document.createElement("script"); j.async = true; j.src = window.jentis.config.frontend.cdnhost + "4bry9p.js"; f.parentNode.insertBefore(j, f); console.log('Inside function loadJentis:Ends'); } function checkConsentAndLoad() { try { if ( window.Cookiebot && window.Cookiebot.consents && window.Cookiebot.consents.given && (!window.Cookiebot.consents.gdpr.applies || window.Cookiebot.consents.gdpr.categories.statistics) ) { console.log('Consent given - loading JENTIS'); loadJentis(); } else { console.log('Consent not sufficient - JENTIS not loaded'); } } catch (e) { console.error("Consent check failed", e); } } // Fires reliably after Cookiebot is initialized and consent is ready window.addEventListener("CookiebotOnConsentReady", function () { console.log("CookiebotOnConsentReady triggered"); console.log("Cookiebot.consents (JSON):", JSON.parse(JSON.stringify(window.Cookiebot))); console.log("Cookiebot.consents (JSON):", JSON.parse(JSON.stringify(window.Cookiebot.consents))); checkConsentAndLoad(); }); })("https://kpjbk3.id.egger.cm", "id-egger-cm", "live", "_"); console.log('Inside JENTIS Script:Ends');