1/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */ 2(function(drupalSettings){if(!drupalSettings.gtm_consent)return;var gtmScriptsInjected=false;var paths=drupalSettings.gtm_consent;function grantConsent(){if(typeof gtag==='function')gtag('consent','update',{ad_storage:'granted',analytics_storage:'granted',ad_user_data:'granted',ad_personalization:'granted'});}function loadGTM(){grantConsent();if(gtmScriptsInjected)return;gtmScriptsInjected=true;var gtagScript=document.createElement('script');gtagScript.async=true;gtagScript.src=paths.gtagJs;gtagScript.type='text/javascript';document.getElementsByTagName('head')[0].appendChild(gtagScript);gtagScript.onload=grantConsent;var gtmScript=document.createElement('script');gtmScript.async=true;gtmScript.src=paths.gtmJs;gtmScript.type='text/javascript';document.getElementsByTagName('head')[0].appendChild(gtmScript);}window.didomiOnReady=window.didomiOnReady||[];window.didomiOnReady.push(function(Didomi){var currentStatus=Didomi.getCurrentUserStatus();var vendors=currentStatus.vendors||{};var googleVendorId=Object.keys(vendors).find(function(id){return id.indexOf('googletag-')===0;});if(!googleVendorId)return;if(vendors[googleVendorId]&&vendors[googleVendorId].enabled)loadGTM();Didomi.addVendorStatusListener(googleVendorId,function(status){if(status.enabled)loadGTM();else revokeGTMConsent();});});function revokeGTMConsent(){if(!gtmScriptsInjected)return;var dl=(drupalSettings.gtm&&drupalSettings.gtm.settings.data_layer)||'dataLayer';if(window[dl])window[dl].length=0;if(typeof gtag==='function')gtag('consent','update',{ad_storage:'denied',analytics_storage:'denied',ad_user_data:'denied',ad_personalization:'denied'});}})(drupalSettings);;
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.