1import{a as e}from"../../helpers-ePuekpbm.js";import{i as t,r as n}from"../../helperLib-B7ilb_e4.js";import{t as r}from"../../notyf-BVZoIBUv.js";import{t as i}from"../../dataLayerHelper-C7H3oDYN.js";var a=`.js-ndspopup-container`,o=`.js-ndspopup`,s=`.js-ndspopup-link`,c=`.js-ndspopup-title`,l=t();async function u(t,n){let r=e()+`?ndspopup_ajax=1&pageUid=`+t;n&&(r+=`&uidBlacklist=`+n);let i=await fetch(r);return i?.status===204?!1:i?.ok?i.json():(console.log(`Fetching `+r+` failed with status `+i?.status),!1)}async function d(e){let t=window.location.origin+window.location.pathname+`?type=1746778815`,n=await fetch(t,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify(e)});return n?.ok?n.text():(console.log(`Fetching `+t+` failed with status `+n?.status),!1)}var f=async function(){let e=document.querySelector(a),t=e.dataset.uid,f={toggle:e.dataset.llToggle,close:e.dataset.llClose},m;l&&(m=sessionStorage.getItem(`ndspopup_popup_uids`));let h=await u(t,m);if(h){let t=await d(h);if(t){e.innerHTML=t;let a=e.querySelector(o);if(!a)return;let u=e.querySelector(s),d=e.querySelector(c),m=parseInt(a.dataset.showTimeDelay)*1e3,h=parseInt(a.dataset.showMobileOnly),g=a.dataset.icon.slice(0,-4),_=a.dataset.bigIcon>0,v=a.dataset.reduceToButton>0,y=a.dataset.reduceTranparent>0,b=a.dataset.colorscheme,x=a.dataset.positionVertical||`top`,S=a.dataset.positionHorizontal||`right`,C=!v,w=parseInt(a.dataset.tracking)===1&&window.dataLayer!==void 0;if(h===1&&!n())return;setTimeout(()=>{r.open({type:`notice`,icon:g,bigIcon:_,message:a.innerHTML,dismissible:C,reducible:v,reduceTransparent:y,colorscheme:b,ll:f,position:{x:S,y:x}}).on(`dismiss`,()=>{w&&T(`Popup geschlossen`)})},m),l&&p(`ndspopup_popup_uids`,a.dataset.popupUid);let T=e=>{window.dataLayer.push({event:`popup`,action:e,category:`Popup: `+d.textContent+` [UID: `+a.dataset.popupUid+`]`})};u&&u.addEventListener(`click`,()=>{i.push({event:`klick.pop-up`,uid:a.dataset.popupUid})}),w&&(u&&u.addEventListener(`click`,()=>{T(`Popup Link geöffnet`)}),T(`Popup geöffnet`))}}},p=function(e,t){let n=sessionStorage.getItem(e);if(!n){sessionStorage.setItem(e,t);return}n=n.split(`,`),n.push(t),sessionStorage.setItem(e,n.join(`,`))};document.querySelector(a)!==null&&f();
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.