function isGdprCountry(countryCode) { const gdprCountries = [ 'AT', 'BE', 'BG', 'HR', 'CY', 'CZ', 'DK', 'EE', 'FI', 'FR', 'DE', 'EL', 'HU', 'IE', 'IT', 'LV', 'LT', 'LU', 'MT', 'NL', 'PL', 'PT', 'RO', 'SK', 'SI', 'ES', 'SE', 'UK', 'NO', 'IS', 'LI', 'GB' ]; return gdprCountries.includes(countryCode); } function OptanonWrapper() { window.dispatchEvent(new CustomEvent('oneTrustLoaded')); const urlHash = window.location.hash.slice(1); const showLimitedAds = false; if (urlHash === 'privacy_settings') { window.OneTrust?.ToggleInfoDisplay(); } window.googletag = window.googletag || { cmd: [] }; window.googletag.cmd.push(() => { if (!window.OptanonActiveGroups.match(/,C0004,/)) { window.googletag.pubads().setPrivacySettings({ nonPersonalizedAds: true, ...(showLimitedAds && { limitedAds: true }) }); } }); }