1/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */ 2(function(Drupal,drupalSettings){Drupal.behaviors.atmAttributes={attach:function(context,settings){const atmElements=context.querySelectorAll(atmAttributesSelector());if(!atmElements||atmElements.length===0)return;window.dataLayer=window.dataLayer||[];atmElements.forEach((atmLink)=>{atmLink.addEventListener('click',atmClick);});}};function atmClick(event){const element=event.currentTarget;if(!element)return;const datalayerObject=buildDataLayerObject('dhl_utf_contentInteraction',getAtmAttributes(),element);dataLayer.push(datalayerObject);}function getAtmAttributes(){return drupalSettings['dp_adobe']['attributes'];}function atmAttributesSelector(){const atmAttributes=getAtmAttributes();if(!atmAttributes||atmAttributes.length===0)return;const selector=Object.keys(atmAttributes).map((key)=>`[${key}]`).join(', ');return selector;}function buildDataLayerObject(pushEvent,attributes,element){let datalayerObject={event:pushEvent,content:{}};for(const key in attributes){const attributeValue=element.getAttribute(attributes[key])||'';datalayerObject.content[key.replace('data-atm-','')]=attributeValue;}return datalayerObject;}})(Drupal,drupalSettings);; 3"undefined"!=typeof _satellite&&_satellite.pageBottom();;
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.