1window.dataLayer = {}; 2 3window.addEventListener("adobeTrackLwcListener", function(event){ 4 window.dataLayer = event.detail.dataLayer; 5 _satellite.track(event.detail.trackName, event.detail.dataLayer); 6}); 7 8document.addEventListener("click", function(evt){ 9 if(formattedData = FormatSpecificExternalItems(evt)){ 10 window.dispatchEvent(new CustomEvent('AA_buttonClickEvent', formattedData)); 11 } 12}); 13 14function FormatSpecificExternalItems(evt){ 15 let allowedElement = false; 16 17 let formattedData = { 18 text:'Unknown', 19 scope: 'Unknown', 20 type: 'Unknown', 21 intent: 'Informational' 22 }; 23 24 //MuleSoft Card Button 25 if(evt.target.classList.contains("api-card-details-button")){ 26 formattedData.text = evt.target.closest('.api-card-container').querySelector('.src-components-apiCard-apiCardHeader-apiCardHeader__apiNameText--cWYJA').childNodes[0].nodeValue + " - " + evt.target.childNodes[0].nodeValue; 27 formattedData.scope = 'API catalogue list'; 28 formattedData.type = 'Button'; 29 formattedData.intent = 'Informational'; 30 allowedElement = true; 31 } 32 //SF Tabs 33 else if(evt.target.classList.contains("title") && evt.target.closest('.uiTabItem')){ 34 formattedData.text = evt.target.textContent; 35 formattedData.scope = 'Tabset'; 36 formattedData.type = 'Link'; 37 formattedData.intent = 'Informational'; 38 allowedElement = true; 39 } 40 41 if(allowedElement){ 42 return {detail:{event:{currentTarget:{dataset: formattedData }}}}; 43 } 44}
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.