1const c=()=>{featureFlags&&featureFlags.jsDebug===!0&&console.log("newsletterTracking module loaded"),f()};function f(){let i=(n,l,e)=>{let t={event:"gtmEvent",event_name:n,popup_id:l,rID:e,parameters:window.location.search};typeof dataLayer<"u"&&dataLayer.push(t)},d=n=>{let l={};return n.replace(/^#/,"").split("&").forEach(e=>{let t=e.indexOf("=");t>0&&(l[e.slice(0,t)]=e.slice(t+1))}),l},s=(()=>{if(!window.location.hash||typeof dataLayer>"u")return!1;let n=d(window.location.hash),l=n.src,e=n.optin,t=n.nlid;if(n.nl_doi!=="1"||!l||!/^[a-z]+$/.test(l)||e!=="0"&&e!=="1"||!t||!/^[A-Za-z0-9]+$/.test(t))return!1;try{window.history&&history.replaceState&&history.replaceState(null,"",window.location.pathname+window.location.search)}catch(w){}return i("newsletter_anmeldung_DOI","",""),dataLayer.push({event:"newsletter_anmeldung_doi_confirmed",nl_src:l,nl_optin:e==="1"?1:0,nl_id:t}),!0})(),r=window.location.href,a="",o="";r==="https://www.diakonie-katastrophenhilfe.de/newsletter"&&i("newsletter_anmeldung",a,o),r.indexOf("/newsletter/bitte-anmeldung-bestaetigen")>-1&&i("newsletter_anmeldung_abgesendet",a,o),!s&&r.indexOf("/newsletter/vielen-dank-fuer-ihre-anmeldung")>-1&&i("newsletter_anmeldung_DOI",a,o),r.indexOf("/newsletter/abmeldung-erfolgreich")>-1&&i("newsletter_abmeldung",a,o)}export{c as init};
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.