1/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */ 2(($,Drupal,once,drupalSettings)=>{Drupal.behaviors.usercentrics={attach(context){const buttonLabel=Drupal.t('Manage consents',{},{context:'usercentrics'});const buttonHtml=$(`<button id="uc_toggle_dialog" aria-label="${buttonLabel}" title="${buttonLabel}" type="button" class="uc_toggle_dialog uc_toggle_dialog_override" rel="open-consent-manager">${buttonLabel}</button>`);$(buttonHtml).on('click',(event)=>{event.preventDefault();UC_UI.showFirstLayer();});if(typeof drupalSettings.usercentrics!=='undefined'&&typeof drupalSettings.usercentrics.logoPath!=='undefined')buttonHtml.css('background-image',`url(${drupalSettings.usercentrics.logoPath})`);$('body',context).append(buttonHtml);}};Drupal.behaviors.userCentricsBehavior={myObserver:false,attach:function(context,settings){if(this.myObserver)return;var MutationObserver=window.MutationObserver||window.WebKitMutationObserver;var obsConfig={childList:true,characterData:true,attributes:true,subtree:true};this.myObserver=new MutationObserver(mutationHandler);this.myObserver.observe(document,obsConfig);function mutationHandler(mutationRecords){mutationRecords.forEach(function(mutation){var nodes=$(mutation.addedNodes);if(nodes.length>0){node=$(nodes[0]);if(node.is('script')&&node.attr('type')=='text/javascript')$(once('uc-script',node)).bind('load',function(){console.log('UC: '+$(this).attr('src')+' loaded.');Drupal.attachBehaviors();});}});}}};})(jQuery,Drupal,once,drupalSettings);;
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.