1/* globals cookieControlDefaultAnalytics */ 2/* eslint-disable */ 3var analyticsWithConsent = { 4 gaAccept: function () { 5 // Add Google Analytics (UA) 6 if (cookieControlDefaultAnalytics.googleAnalyticsId !== '') { 7 (function (i, s, o, g, r, a, m) { 8 i['GoogleAnalyticsObject'] = r; i[r] = i[r] || function () { 9 (i[r].q = i[r].q || []).push(arguments) 10 }, i[r].l = 1 * new Date(); a = s.createElement(o), 11 m = s.getElementsByTagName(o)[0]; a.async = 1; a.src = g; m.parentNode.insertBefore(a, m) 12 })(window, document, 'script', 'https://www.google-analytics.com/analytics.js', 'ga') 13 14 ga('create', cookieControlDefaultAnalytics.googleAnalyticsId, 'auto') 15 ga('send', 'pageview') 16 } 17 // End Google Analytics (UA) 18 // Add GA4 19 if (cookieControlDefaultAnalytics.ga4Id !== '') { 20 gtag('consent', 'update', { 21 'analytics_storage': 'granted' 22 }); 23 } 24 // End GA4 25 26 // GTM 27 if (cookieControlDefaultAnalytics.gtmId !== '') { 28 gtag('consent', 'update', { 29 'analytics_storage': 'granted' 30 }); 31 } 32 // End GTM 33 34 // Hotjar 35 if (cookieControlDefaultAnalytics.hjid !== '') { 36 /*<!-- Hotjar Tracking Code for Site -->*/ 37 (function(h,o,t,j,a,r){ 38 h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)}; 39 h._hjSettings={hjid:cookieControlDefaultAnalytics.hjid,hjsv:6}; 40 a=o.getElementsByTagName('head')[0]; 41 r=o.createElement('script');r.async=1; 42 r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv; 43 a.appendChild(r); 44 })(window,document,'https://static.hotjar.com/c/hotjar-','.js?sv='); 45 } 46 // Hotjar 47 }, 48 gaRevoke: function () { 49 // Disable Google Analytics (UA) 50 if (cookieControlDefaultAnalytics.googleAnalyticsId !== '') { 51 window['ga-disable-' + cookieControlDefaultAnalytics.googleAnalyticsId] = true 52 } 53 // End Google Analytics (UA) 54 // Disable GA4 55 if (cookieControlDefaultAnalytics.ga4Id !== '') { 56 gtag('consent', 'update', { 57 'analytics_storage': 'denied' 58 }); 59 } 60 // End GA4 61 // Disable GTM 62 if (cookieControlDefaultAnalytics.gtmId !== '') { 63 gtag('consent', 'update', { 64 'analytics_storage': 'denied' 65 }); 66 } 67 // End GTM 68 }, 69 marketingAccept: function () { 70 gtag('consent', 'update', { 71 'ad_storage' : 'granted' 72 }); 73 }, 74 marketingRevoke: function () { 75 gtag('consent', 'update', { 76 'ad_storage' : 'denied' 77 }); 78 }, 79 thirdPartyMediaEmbedAccept: function () { 80 if (typeof window.hydrateAllEmbeds === 'function') { 81 window.hydrateAllEmbeds(); 82 } 83 console.log('Third party media embed cookies accepted'); 84 }, 85 thirdPartyMediaEmbedRevoke: function () { 86 if (typeof window.dehydrateAllEmbeds === 'function') { 87 window.dehydrateAllEmbeds(); 88 } 89 console.log('Third party media embed cookies revoked'); 90 }, 91 showCookiePopup: function () { 92 if (typeof CookieControl !== 'undefined' && typeof CookieControl.open === 'function') { 93 CookieControl.open() 94 } 95 } 96} 97var gtag = function () { dataLayer.push(arguments) } 98window.dataLayer = window.dataLayer || [] 99gtag('consent', 'default', { 100 'ad_storage': 'denied', 101 'analytics_storage': 'denied', 102 'ad_user_data': 'denied', 103 'ad_personalization': 'denied', 104 'functionality_storage': 'denied', 105 'personalization_storage': 'denied', 106 'security_storage': 'denied' 107}) 108/* eslint-enable */ 109if (cookieControlDefaultAnalytics.ga4Id !== '') { 110 gtag('js', new Date()) 111 gtag('config', cookieControlDefaultAnalytics.ga4Id) 112} 113window.hydrateAllEmbeds = function () { 114 const placeholders = document.querySelectorAll('.awc-embed-placeholder') 115 placeholders.forEach(el => { 116 const placeholderContent = el.querySelector('.awc-placeholder-content') 117 if (placeholderContent) { 118 placeholderContent.style.display = 'none' 119 } 120 121 let embedWrapper = el.querySelector('.awc-embed-wrapper') 122 if (!embedWrapper) { 123 embedWrapper = document.createElement('div') 124 embedWrapper.className = 'awc-embed-wrapper' 125 el.appendChild(embedWrapper) 126 } 127 128 const encoded = el.getAttribute('data-embed') 129 if (encoded) { 130 embedWrapper.innerHTML = atob(encoded) 131 } 132 }) 133} 134 135window.dehydrateAllEmbeds = function () { 136 const placeholders = document.querySelectorAll('.awc-embed-placeholder')
137 placeholders.forEach(el => { 138 const embedWrapper = el.querySelector('.awc-embed-wrapper') 139 if (embedWrapper) { 140 embedWrapper.remove() 141 } 142 143 const placeholderContent = el.querySelector('.awc-placeholder-content') 144 if (placeholderContent) { 145 placeholderContent.style.display = '' 146 } 147 }) 148}
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.