PageSourceSearch

https://www.redhat.com/modules/custom/rhdc_analytics/libraries/dis…/rhdc_analytics_eddl_bottom.min.js?tlgvbk

js redhat.com collected 2026-09-24 07:42:03 UTC 2,288 bytes, 1 lines download raw bytes

1!function(e){"use strict";performance.mark("rhdc_analytics_eddl_bottom--start"),e.appEventData=e.appEventData||[];let t=!1,a="false",n="",r="",o=!1;performance.mark("rhdc_analytics_eddl_bottom--setTimeout");const i=setTimeout((function(){performance.mark("rhdc_analytics_eddl_bottom--timeout"),console.warn("RHDC Analytics script timed out."),h()}),1500),c=e.drupalSettings?.rh_oidc_manager?.oidc_settings;if(!c?.client_id||!c?.authority)return console.warn("OIDC analytics configuration is unavailable or invalid."),void h();const{client_id:s,authority:l}=c;let d=null;try{d=sessionStorage.getItem("oidc.user:"+l+":"+s)}catch(e){console.warn("Unable to read OIDC session storage",e)}try{const e=JSON.parse(d);e&&"profile"in e?_(e.profile,h):m()}catch(e){console.warn(e),m()}function m(){e.oidcManager?(f(),p()):e.addEventListener("oidc-manager-registered",u,{once:!0})}function u(){f(),p()}function f(){o||t||(o=!0,e.oidcManager?.addEventListener("message",(e=>{if(t)return;const{type:a}=e.detail;if("login"===a){performance.mark("rhdc_analytics_eddl_bottom--login");const{user:t}=e.detail;_(t.profile,h)}else"error"===a&&"login_required"===e.detail.error?.error&&h()})))}function p(){if(!0!==t)try{const a=e.oidcManager.clients.get(s);if(a?.user?.profile)return performance.mark("rhdc_analytics_eddl_bottom--getUser"),void _(a.user.profile,h);a.getUser().then((e=>{!0!==t&&(performance.mark("rhdc_analytics_eddl_bottom--getUser"),e&&_(e.profile,h))})).catch((()=>{}))}catch(e){}}function _(e,o){!0!==t&&(a=e?"true":"false",n=e.sub,e.email_verified&&e.email?function(e){const t=(new TextEncoder).encode(e);return crypto.subtle.digest("SHA-256",t).then((e=>Array.from(new Uint8Array(e)).map((e=>e.toString(16).padStart(2,"0"))).join("")))}(e.email).then((e=>{performance.mark("rhdc_analytics_eddl_bottom--hash"),r=e,o()})).catch((e=>{console.warn("Failed to hash email:",e),console.warn("Analytics fired without hashed email"),o()})):o())}function h(){!0!==t&&(performance.mark("rhdc_analytics_eddl_bottom--fireAnalyticsEvents"),appEventData.push({event:"User Detected",user:{ebsAccountNumber:"",lastLoginDate:"",loggedIn:a,organizationID:"",socialAccountsLinked:"",ssoClientID:"",userID:n,hashedEmail:r}}),appEventData.push({event:"Page Load Completed"}),t=!0,clearTimeout(i))}}(window);

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.