1'use strict'; 2 3(() => { 4 5 window['TRY_LOAD_HOTJAR'] = () => { 6 7 if (window['HOTJAR_LOADED'] === true) { 8 console.debug('hotjar-loader: hotjar is already loaded'); 9 return; 10 } 11 12 if (window['rwc'] && typeof (window['rwc'].retrievePermissions) === 'function') { 13 const rwcPermissions = window['rwc'].retrievePermissions().map(item => item.permissions).reduce((p1, p2) => p1.concat(p2)); 14 15 const isPermitted = ['analytics_storage', 16 'device_analytics', 17 'customer_storage', 18 'customer_analytics', 19 'thirdparty_processing', 20 'nonEU_processing'].every(p => rwcPermissions.includes(p)); 21 22 if (isPermitted) { 23 console.debug('hotjar is permitted -> loading'); 24 25 // own hotjar code 26 (function(h,o,t,j,a,r){ 27 h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)}; 28 h._hjSettings={hjid:'2075831',hjsv:6}; 29 a=o.getElementsByTagName('head')[0]; 30 r=o.createElement('script');r.async=1; 31 r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv; 32 a.appendChild(r); 33 })(window,document,'https://static.hotjar.com/c/hotjar-','.js?sv='); 34 // own hotjar code 35 36 window['HOTJAR_LOADED'] = true; 37 38 return; 39 } 40 } 41 42 console.debug('hotjar is NOT permitted'); 43 } 44 45 window['TRY_LOAD_HOTJAR'](); 46 47})();
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.