1const destination=subscribeData.siteData.url 2jQuery(document).ready(function($){const subscribeSelectors=subscribeData.subscribeSelectors 3if(!subscribeSelectors){return} 4$.each(subscribeSelectors,function(index,selector){$(document).on('submit',selector,function(){const email=$(this).find('input[type="email"]').val() 5if(email){processEmail(email)}})})}) 6function processEmail(email){edgetag('user','email',email,{},{destination}) 7const customNewsletterEventName=subscribeData.customNewsletterEventName||'Lead' 8if(customNewsletterEventName){edgetag('tag',customNewsletterEventName,{},{},{destination})}} 9window.addEventListener('klaviyoForms',function(e){if(e.detail.type!=='stepSubmit'){return} 10const email=e.detail.metaData.$email 11const phone=e.detail.metaData.$phone_number 12if(phone){edgetag('user','phone',phone,{},{destination})} 13if(email){processEmail(email)}}) 14window.addEventListener('load',function(){let wisepopsCheckAttempts=0 15const captureWisepops=()=>{wisepopsCheckAttempts++ 16if(typeof window.wisepops==='function'){wisepops('listen','after-form-submit',function(event){const eveEle=event.target.elements 17const email=eveEle.email?.value 18const phone=(eveEle['phone-dialcode']?eveEle['phone-dialcode'].value:'')+(eveEle['phone-number']?eveEle['phone-number'].value:'') 19const data={} 20if(email){data.email=email} 21if(phone){data.phone=phone} 22if(data.email||data.phone){edgetag('data',data,{},{destination})} 23if(email){processEmail(email)}})}else if(wisepopsCheckAttempts<=10){setTimeout(captureWisepops,1000)}} 24captureWisepops()})
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.