1(function () { 2 'use strict'; 3 4 function pushAscEvents() { 5 if ( !window.asc_datalayer || !Array.isArray( window.asc_datalayer.events ) ) { 6 return; 7 } 8 9 if ( window.__asc_events_pushed ) { 10 return; 11 } 12 window.__asc_events_pushed = true; 13 14 var loc = window.location.href; 15 16 window.asc_datalayer.events.forEach( function ( event ) { 17 if ( !event.page_location ) { 18 event.page_location = loc; 19 } 20 if ( typeof window.ascDispatchEvent === 'function' ) { 21 window.ascDispatchEvent( event ); 22 } 23 } ); 24 } 25 26 if ( document.readyState === 'complete' ) { 27 pushAscEvents(); 28 } else { 29 window.addEventListener( 'load', pushAscEvents ); 30 } 31}()); 32 33 34(function ($) { 35 if (window.__asc_wpforms_listener) return; 36 window.__asc_wpforms_listener = true; 37 38 $(document).ajaxSuccess(function (event, xhr, settings) { 39 try { 40 const response = JSON.parse(xhr.responseText); 41 42 if (Array.isArray(response?.data?.asc_events)) { 43 response.data.asc_events.forEach(function (ev) { 44 window.ascPublishEvent(ev); 45 console.log('ASC Lead pushed:', ev); 46 }); 47 } else if (response?.data?.asc_event) { 48 window.ascPublishEvent(response.data.asc_event); 49 console.log('ASC Lead pushed:', response.data.asc_event); 50 } 51 } catch (e) {} 52 }); 53})(jQuery);
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.