1(()=>{"use strict";var e={8586:(e,t,s)=>{s.d(t,{L:()=>n});const n={publisher:{frankenpost:{domains:{main:{prod:"www.frankenpost.de",dev:"www-test.frankenpost.de"},webabo:{prod:"abo.frankenpost.de",dev:"abo-test.frankenpost.de"},sso:{prod:"sso1.frankenpost.de",dev:"sso1.frankenpost.nk-dev.de"},community:{prod:"plural.place",dev:"test.plural.place"}},colors:{main:"#e3051b",accent:"#b61b10"},displayMode:{light:{logo:"/staticcontent/hcsb/images/logos/svg/fp.svg",illu:"/staticcontent/frankenpost/common/svg/Illu_MeineFp.svg"},dark:{logo:"/staticcontent/hcsb/images/logos/svg/fp-weiss.svg",illu:"/staticcontent/frankenpost/common/svg/Illu_MeineFp-white.svg"}},staticcontent:"frankenpost",title:"Frankenpost",short:"fp",abo:"frankenpost",plus:"FP+",taboola_path:"hcs-frankenpost",recognifiedId:0,cleverpushId:"xPSCwwXpkDXuZY2fk",welectId:"045148f8-9485-43a0-9e22-5f6966d0eebd",topTeaser:{href:"",left:0,right:0,upper:{desktop:"https://topteaser.hcsb-2.de/fp-topteaser-desktop/",mobile:"https://topteaser.hcsb-2.de/fp-topteaser-mobile/",tablet:"https://topteaser.hcsb-2.de/fp-topteaser-desktop/"}},bottomTeaser:{href:"",bottom:{desktop:"https://topteaser.hcsb-2.de/fp-bottomteaser-desktop/",mobile:"https://topteaser.hcsb-2.de/fp-bottomteaser-mobile/",tablet:"https://topteaser.hcsb-2.de/fp-bottomteaser-desktop/"}},weekli:{prospekte:{slot:491,config:79,host:"frankenpost.weekli.de",key:"8CDF1E04-B88B-4A89-B898-2831702C77B9",region:"alle_regionen"},magazine:{slot:2884,config:79,host:"frankenpost-magazine.weekli.de",key:"69328318-0924-40AE-B606-F491BC4D851D",region:"alle_regionen"},premiumPartner:{slot:3459,config:79,host:"frankenpost-premium-partner.weekli.de",key:"F6B12275-0EF4-4545-B303-CFED2B3786C3",region:"alle_regionen"}},sourcepoint:{prod:{privacyMgrId:198126,accountId:348,propertyId:8601,mmsDomain:"https://sp-consent.frankenpost.de"},dev:{accountId:348,propertyId:13347,mmsDomain:"https://cookies.nk-dev.de"}},upscore:{key:"0F2ACBFA",paywallId:"d1me5by4tqjdzw"},inactivity:{url:"https://content.upscore.com/c51c41650c764624124b1849b2c2fb03/497"},headSlider:{recommendationsUrlCommon:"https://content.upscore.com/c51c41650c764624124b1849b2c2fb03/505",recommendationsUrlArticle:"https://content.upscore.com/c51c41650c764624124b1849b2c2fb03/399"},myhcsb:"meinefp",kanzlitId:"",matomoId:{prod:21,dev:22}},"np-coburg":{domains:{main:{prod:"www.np-coburg.de",dev:"www-test.np-coburg.de"},webabo:{prod:"abo.np-coburg.de",dev:"abo-test.np-coburg.de"},sso:{prod:"sso1.np-coburg.de",dev:"sso1.np-coburg.nk-dev.de"},community:{prod:"plural.place",dev:"test.plural.place"}},colors:{main:"#009fe3",accent:"#186da9"},displayMode:{light:{logo:"/staticcontent/hcsb/images/logos/svg/np.svg",illu:"/staticcontent/np_coburg/common/svg/Illu_MeineNp.svg"},dark:{logo:"/staticcontent/hcsb/images/logos/svg/np-weiss.svg",illu:"/staticcontent/np_coburg/common/svg/Illu_MeineNp-white.svg"}},staticcontent:"np_coburg",title:"Neue Presse Coburg",short:"np",abo:"np-coburg",plus:"NP+",taboola_path:"hcs-neuepresse",recognifiedId:0,cleverpushId:"kziNePaBjhocfgAcQ",welectId:"5a81ec88-6e03-4fd2-b1f1-b13588291455",topTeaser:{href:"",left:0,right:0,upper:{desktop:"https://topteaser.hcsb-2.de/np-topteaser-desktop/",mobile:"https://topteaser.hcsb-2.de/np-topteaser-mobile/",tablet:"https://topteaser.hcsb-2.de/np-topteaser-desktop/"}},bottomTeaser:{href:"",bottom:{desktop:"https://topteaser.hcsb-2.de/np-bottomteaser-desktop/",mobile:"https://topteaser.hcsb-2.de/np-bottomteaser-mobile/",tablet:"https://topteaser.hcsb-2.de/np-bottomteaser-desktop/"}},weekli:{prospekte:{slot:507,config:95,host:"np-coburg.weekli.de",key:"69C3EFE8-30E7-4EBA-B9B5-4B4B5C364E4D",region:"alle_regionen"},magazine:{slot:2863,config:95,host:"np-coburg-magazine.weekli.de",key:"451061FE-2B2C-4BD6-968C-06FD9961075B",region:"alle_regionen"},premiumPartner:{slot:3477,config:95,host:"np-coburg-premium-partner.weekli.de",key:"025D2F5E-18D2-4431-BED8-A45217FCB7AE",region:"alle_regionen"}},sourcepoint:{prod:{privacyMgrId:145684,accountId:348,propertyId:8600,mmsDomain:"https://sp-consent.np-coburg.de"}
1,dev:{accountId:348,propertyId:13347,mmsDomain:"https://cookies.nk-dev.de"}},upscore:{key:"49DCF83E",paywallId:"d8svnnnkufe22"},inactivity:{url:"https://content.upscore.com/c51c41650c764624124b1849b2c2fb03/499"},headSlider:{recommendationsUrlCommon:"https://content.upscore.com/c51c41650c764624124b1849b2c2fb03/509",recommendationsUrlArticle:"https://content.upscore.com/c51c41650c764624124b1849b2c2fb03/398"},myhcsb:"meinenp",kanzlitId:"6iUyHMuFqi",matomoId:{prod:23,dev:24}},insuedthueringen:{domains:{main:{prod:"www.insuedthueringen.de",dev:"www-test.insuedthueringen.de"},webabo:{prod:"abo.insuedthueringen.de",dev:"abo-test.insuedthueringen.de"},sso:{prod:"sso1.insuedthueringen.de",dev:"sso1.insuedthueringen.nk-dev.de"},community:{prod:"plural.place",dev:"test.plural.place"}},colors:{main:"#03ae3b",accent:"#009330"},displayMode:{light:{logo:"/staticcontent/hcsb/images/logos/svg/is.svg",illu:"/staticcontent/insuedthueringen/common/svg/Illu_MeiniS.svg"},dark:{logo:"/staticcontent/hcsb/images/logos/svg/is-weiss.svg",illu:"/staticcontent/insuedthueringen/common/svg/Illu_MeiniS-white.svg"}},staticcontent:"insuedthueringen",title:"inSüdthüringen.de",short:"is",abo:"insuedthueringen",plus:"iS+",taboola_path:"hcs-insuedthueringen",recognifiedId:0,cleverpushId:"xMkJALGJ8Ki3qCjT2",welectId:"64ddfb6d-c2fa-4b70-bb35-e1d4a2a005ac",topTeaser:{href:"",left:0,right:0,upper:{desktop:"https://topteaser.hcsb-2.de/is-topteaser-desktop/",mobile:"https://topteaser.hcsb-2.de/is-topteaser-mobile/",tablet:"https://topteaser.hcsb-2.de/is-topteaser-desktop/"}},bottomTeaser:{href:"",bottom:{desktop:"https://topteaser.hcsb-2.de/is-bottomteaser-desktop/",mobile:"https://topteaser.hcsb-2.de/is-bottomteaser-mobile/",tablet:"https://topteaser.hcsb-2.de/is-bottomteaser-desktop/"}},weekli:{prospekte:{slot:499,config:87,host:"insuedthueringen.weekli.de",key:"831D49C2-8C62-4A9B-90C8-BA800EE42EBB",region:"alle_regionen"},magazine:{slot:2881,config:87,host:"insuedthueringen-magazine.weekli.de",key:"FDBBAAAF-BB42-4434-BB71-CDA71F5FCB73",region:"alle_regionen"},premiumPartner:{slot:3498,config:87,host:"insuedthueringen-premium-partner.weekli.de",key:"F3B24600-1B1C-41C4-87F2-AF2A9E61E4C1",region:"alle_regionen"}},sourcepoint:{prod:{privacyMgrId:145695,accountId:348,propertyId:8602,mmsDomain:"https://sp-consent.insuedthueringen.de"},dev:{accountId:348,propertyId:13347,mmsDomain:"https://cookies.nk-dev.de"}},upscore:{key:"1CAFA4FA",paywallId:"dnz6eyg6btrxv"},inactivity:{url:"https://content.upscore.com/c51c41650c764624124b1849b2c2fb03/501"},headSlider:{recommendationsUrlCommon:"https://content.upscore.com/c51c41650c764624124b1849b2c2fb03/511",recommendationsUrlArticle:"https://content.upscore.com/c51c41650c764624124b1849b2c2fb03/397"},myhcsb:"meinis",kanzlitId:"",matomoId:{prod:25,dev:26}},kurier:{domains:{main:{prod:"www.kurier.de",dev:"www-test.kurier.de"},webabo:{prod:"abo.kurier.de",dev:"abo-test.kurier.de"},sso:{prod:"sso.kurier.de",dev:"sso.kurier.nk-dev.de"},community:{prod:"plural.place",dev:"test.plural.place"}},colors:{main:"#009364",accent:"#005938"},displayMode:{light:{logo:"/staticcontent/hcsb/images/logos/svg/nk.svg",illu:"/staticcontent/nordbayerischer_kurier/common/svg/Illu_MeinKurier.svg"},dark:{logo:"/staticcontent/hcsb/images/logos/svg/nk-weiss.svg",illu:"/staticcontent/nordbayerischer_kurier/common/svg/Illu_MeinKurier-white.svg"}},staticcontent:"nordbayerischer_kurier",title:"Nordbayerischer Kurier",short:"nk",abo:"kurier",plus:"K+",taboola_path:"mhs-nordbayerischer-kurier",recognifiedId:0,cleverpushId:"JEXnkHDZxmBwkwHyu",welectId:"jqf15puOHFxdMu8gAFwg2thK",topTeaser:{href:"",left:{desktop:0,tablet:0,mobile:0},right:{desktop:0,tablet:0,mobile:0},upper:{desktop:"https://topteaser.hcsb-2.de/nk-topteaser-desktop/",mobile:"https://topteaser.hcsb-2.de/nk-topteaser-mobile/",tablet:"https://topteaser.hcsb-2.de/nk-topteaser-desktop/"}},bottomTeaser:{href:"",bottom:{desktop:"https://topteaser.hcsb-2.de/nk-bottomteaser-desktop/",mobile:"https://topteaser.hcsb-2.de/nk-bottomteaser-mobile/",tablet:"https://topteaser.hcsb-2.de/nk-bottomteaser-desktop/"}},weekli:{prospekte:{slot:483,config:71,host:"kurier.weekli.de",key:"92203F6D-245C-4A0A-A1C4-67157BF60BF4",region:"alle_regionen"},magazine:{slot:2878,config:71,host:"kurier-magazine.weekli.de",key:"06C4E1F9-557E-4030-A9A2-F6045133EBBC",region:"alle_regionen"},premiumPartner:{slot:3446,config:71,host:"nordbayerischer-kurier-premium-partner.weekli.de",key:"8B8FA54F-4DC5-4186-9F15-BC770CFAACAD",region:"alle_regionen"}},sourcepoint:{prod:{privacyMgrId:145682,accountId:348,propertyId:8599,mmsDomain:"https://sp-consent.kurier.de"}
1,dev:{accountId:348,propertyId:13347,mmsDomain:"https://cookies.nk-dev.de"}},upscore:{key:"096A4C4B",paywallId:"d2u9gr4xodjk3t"},inactivity:{url:"https://content.upscore.com/c51c41650c764624124b1849b2c2fb03/498"},headSlider:{recommendationsUrlCommon:"https://content.upscore.com/c51c41650c764624124b1849b2c2fb03/510",recommendationsUrlArticle:"https://content.upscore.com/c51c41650c764624124b1849b2c2fb03/374"},myhcsb:"meinkurier",kanzlitId:"",matomoId:{prod:19,dev:20}}},getPublisherKey:()=>{if("dev"===n.getEnv()){const e=new URLSearchParams(window.location.search).get("p"),t={nk:"kurier",is:"insuedthueringen",fp:"frankenpost",np:"np-coburg"};if(e&&t[e])return t[e]}return Object.keys(n.publisher).find((e=>location.host.includes(e)))??"kurier"},getPublisher:()=>n.publisher[n.getPublisherKey()],getEnv:()=>location.host.includes("www-stage")||location.host.includes("www-test")||location.host.includes("localhost")?"dev":"prod",getLayout:()=>document.querySelector("html").dataset.layout,getUserstate:()=>document.querySelector("html").dataset.userstate,getPage:()=>{const e=location.pathname.endsWith(".html"),t="/"===location.pathname;return e?"Artikel":t?"Homepage":"Ressortseite"},getCategory:()=>n.getLayout()+" - "+n.getUserstate()+" - "+n.getPage(),createScript:(e,t,s=!0)=>{const n=document.createElement("script");n.id=t,n.async=s,n.src=e,document.querySelector("head").appendChild(n)},createCssLink:e=>{const t=document.createElement("link");t.rel="stylesheet",t.href=e,document.querySelector("head").appendChild(t)},createImageLink:(e,t,s,n,i=null,o="")=>{if(!t)return;if(""!==o){const e=document.getElementById(o);e&&e.remove()}const r=document.createElement("a");r.href=s,r.target="_blank",r.id=o;const a=document.createElement("img");a.src=t,a.style=n,r.appendChild(a),e.insertBefore(r,i)},createIFrame:(e,t,s,n=null,i="")=>{if(!t)return;if(""!==i){const e=document.getElementById(i);e&&e.remove()}const o=document.createElement("iframe");o.src=t,o.style=s,o.scrolling="no",o.id=i,o.loading="lazy",e.insertBefore(o,n)},setIframeSrc:(e,t)=>{if(!t||!e)return;const s=document.getElementById(e);s&&(s.src=t)},createElement:(e,t)=>{const s=document.createElement(e);for(const[e,n]of Object.entries(t))"style"===e&&"object"==typeof n?Object.assign(s.style,n):s[e]=n;return s},typeOfPage:()=>location.pathname.match(/\.html?$/)?"article":"ressort",getArticleId:()=>{if(location.pathname.match(/\.html?$/)){const e=/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/g,t=location.href.match(e);return t?t[0]:""}return""}}}},t={};function s(n){var i=t[n];if(void 0!==i)return i.exports;var o=t[n]={exports:{}};return e[n](o,o.exports,s),o.exports}s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);class n{constructor(e,t=!1){this.wrapper=document.createElement("div"),this.wrapper.id="head-slider-html-wrapper",this.slidesHtml=e;let s="";t&&(s='\n <button class="head-slider-button prev">â¹</button>\n <button class="head-slider-button next">âº</button>\n '),this.html=`\n <div class="head-slider-slider">\n <div class="head-slider-slides">\n ${this.slidesHtml}\n </div>\n ${s}\n </div>\n `,this.wrapper.innerHTML=this.html}}var i=s(8586);class o{constructor(e,t=1,s="default"){this.recommendationsUrl=e,this.numberOfItems=t,this.mode=s}async fetchRecommendations(){const e=await fetch(this.recommendationsUrl,{cache:"default"});if(!e.ok)return[];let t=await e.json();return!t||Array.isArray(t)&&t.length<2?[]:("random"===this.mode&&(t=this.shuffleArray(t)),t)}async getRecommendations(){return(await this.fetchRecommendations()).slice(0,this.numberOfItems).map((e=>{const t=e.title.match(/^([^|]+)\|\s*(.*)$/);return{plusPrefix:t?t[1].trim():"",cleanedTitle:t?e.kicker+": "+t[2].trim():e.kicker+": "+e.title,url:e.url}}))}async getJson(){return(await this.fetchRecommendations()).slice(0,this.numberOfItems).map((e=>({plusPrefix:e.plusPrefix,cleanedTitle:e.title,url:e.url})))}async getAcfJson(){const e=await this.fetchRecommendations();return{icon:e.acf.icon,titel:e.acf.titel,anreiser:e.acf.anreiser,link:e.acf.link,startdate:e.acf.start_datum,stopdate:e.acf.end_datum,isDefault:e.acf.ist_default}}shuffleArray(e){for(let t=e.length-1;t>0;t--){const s=Math.floor(Math.random()*(t+1));[e[t],e[s]]=[e[s],e[t]]}return e}}
1class r{constructor(){}buildRecommendationPane(e,t,s){const n=[];let i="one-third";2===s&&(i="one-half"),n.push(`\n <div class="head-slider-pane-headline">\n <p>${e}</p>\n </div>\n `);for(let e=0;e<t.length;e+=s){const o=t.slice(e,e+s).map((e=>`\n <div class="head-slider-slide-item ${i}">\n <a href="${e.url}">\n <span class="head-slider-plus-prefix accent-color">${e.plusPrefix}</span>\n <span class="head-slider-title">${e.cleanedTitle}</span>\n </a>\n </div>\n `)).join("");n.push(`\n <div class="head-slider-pane-content">\n ${o}\n </div>\n `)}return n.join("")}buildAcfPane(e,t){let s="full-width";return 2===t&&(s="one-half"),`\n <div class="head-slider-pane-content">\n <a href="${e.link}">\n <div class="marketing-pane-item head-slider-slide-item ${s}">\n <img src="${e.iconUrl}" alt="${e.iconAlt}" />\n <div>\n <p class="accent-color">${e.titel}</p>\n <p>${e.anreiser}</p>\n </div>\n </div>\n </a>\n </div>\n `}buildCustomPane(e){return`\n <div class="head-slider-pane-content">\n ${e}\n </div>\n `}buildFromTemplate(e,t){const s=document.getElementById(e);if(!s)throw new Error(`Template with ID ${e} not found`);let n=s.innerHTML;for(const e in t){const s=new RegExp(`{{\\s*${e}\\s*}}`,"g");n=n.replace(s,t[e])}return n}wrapItems(e,t){let s="one-half";return 3===t&&(s="one-third"),`\n <div class="head-slider-slide-item ${s}">\n ${e}\n </div>\n `}async loadHtmlFromFile(e){const t=await fetch(e);if(!t.ok)throw new Error(`Error loading ${e}`);return await t.text()}}class a{constructor(){this.html=""}addPane(e){this.html+=`\n <div class="head-slider-pane">\n ${e}\n </div>\n `}getHtml(){return this.html}}class l{static DEFAULT_INTERVAL_MS=5e3;#e;#t;#s=0;#n=null;#i=!1;#o;#r=!1;#a="vertical";constructor(e,t,s={}){if(!e)throw new Error("SliderControls requires a valid slides container element.");if(!Number.isInteger(t)||t<=0)throw new Error("SliderControls requires a positive slide count.");this.#e=e,this.#t=t,this.#o=s.intervalMilliseconds??l.DEFAULT_INTERVAL_MS,this.#a="horizontal"===s.direction?"horizontal":"vertical"}render(){this.#t>1&&this.#l(),this.#c(0,!1)}showNextSlide(){if(this.#r)return;this.#r=!0;const e=this.#s===this.#t-1;this.#c(this.#s+1,!0),e?this.#d((()=>{this.#h(!1),this.#c(0,!1),this.#e.offsetHeight,this.#h(!0),this.#r=!1})):setTimeout((()=>this.#r=!1),400)}showPreviousSlide(){if(this.#r)return;this.#r=!0;let e=this.#s-1;e<0?(this.#u(),setTimeout((()=>{this.#c(this.#t-1,!0),setTimeout((()=>this.#r=!1),400)}),20)):(this.#c(e,!0),setTimeout((()=>this.#r=!1),400))}startSlideshow(){this.#i||(this.#n=setInterval((()=>this.showNextSlide()),this.#o),this.#i=!0)}stopSlideshow(){this.#i&&(clearInterval(this.#n),this.#n=null,this.#i=!1)}isSlideshowRunning(){return this.#i}#c(e,t=!0){this.#h(t),this.#s=e;const s=100*this.#s;this.#e.style.transform="vertical"===this.#a?`translateY(-${s}%)`:`translateX(-${s}%)`}#p(){this.#h(!1),this.#s=0,this.#c(0,!1),this.#e.offsetHeight,this.#h(!0)}#u(){this.#h(!1),this.#s=this.#t,this.#c(this.#t,!1),this.#e.offsetHeight,this.#h(!0)}#d(e){const t=()=>{this.#e.removeEventListener("transitionend",t),e()};this.#e.addEventListener("transitionend",t)}#h(e){this.#e.style.transition=e?"transform 0.4s ease":"none"}#l(){if(this.#e.querySelector(".pane-clone"))return;const e=this.#e.children[0].cloneNode(!0);e.classList.add("pane-clone"),this.#e.appendChild(e)}}class c{constructor(e){const t="string"==typeof e?e:window.location.search,s=t.startsWith("?")?t.substring(1):t;this.params=new URLSearchParams(s)}get(e,t=null){const s=this.params.get(e);return null===s?t:s}getAll(e){return this.params.getAll(e)}has(e){return this.params.has(e)}getBoolean(e,t=!1){if(!this.has(e))return t;const s=this.get(e,"").toString().trim().toLowerCase();return"1"===s||"true"===s||"yes"===s||"on"===s||"0"!==s&&"false"!==s&&"no"!==s&&"off"!==s&&t}getInt(e,t=0){if(!this.has(e))return t;const s=this.get(e,"").toString().trim(),n=parseInt(s,10);return Number.isNaN(n)?t:n}toString(){const e=this.params.toString();return e?`?${e}`:""}}class d{constructor(e="Debug"){this.source=e}static isTestMode(){return"1"===(new c).get("debug")}_output(e,t,s){const n=`[HCSB ${this.source}]`;null!==s?e(n,t,s):e(n,t)}log(e,t=null){d.isTestMode()&&this._output(console.log,e,t)}
1error(e,t=null){d.isTestMode()&&this._output(console.error,e,t)}}class h{baseUrl="";mediaUrl="";acfList=[];possibleAcfItemsList=[];defaultAcfItemsList=[];publisher=i.L.getPublisher().short;debug=null;constructor(e,t=""){this.baseUrl=e,this.mediaUrl=t,this.debug=new d("ACF")}cacheOption(){return(new Date).getSeconds()%2==0?"force-cache":"default"}async getAcfList(e="prod"){this.debug.log("ACF Liste fuer "+this.publisher);const t=await fetch(this.baseUrl,{cache:this.cacheOption()});if(!t.ok)return[];const s=await t.json();return Array.isArray(s)&&0!==s.length?(this.acfList=s.filter((t=>(t.acf?.verlag===this.publisher||t.acf?.burger_menu_ad_verlag===this.publisher||t.acf?.abonase_verlag===this.publisher||t.acf?.collapsible_verlag===this.publisher||t.acf?.campanero_verlag===this.publisher||"alle"===t.acf?.verlag)&&t.acf?.environment===e)),this.debug.log("ACF filteredData: ",this.acfList),this.acfList):[]}filterPossibleAcfItems(e="start_datum",t="end_datum"){if(!Array.isArray(this.acfList)||0===this.acfList.length)return[];const s=Number((new Date).toISOString().slice(0,10).replace(/-/g,""));this.possibleAcfItemsList=this.acfList.filter((n=>{const i=Number(n.acf?.[e]),o=Number(n.acf?.[t]);return!isNaN(i)&&!isNaN(o)&&i<=s&&o>=s&&!n.acf?.ist_default}))}getPossibleAcfItems(e="",t,s){const n=[];return this.filterPossibleAcfItems(t,s),this.possibleAcfItemsList.forEach((t=>{""!==e?n.push(t):n.push(t.id)})),n}getDefaultAcfItems(){const e=[];return this.filterDefaultAcfItems(),this.defaultAcfItemsList.forEach((t=>{e.push(t.id)})),e}filterDefaultAcfItems(){if(!Array.isArray(this.acfList)||0===this.acfList.length)return[];this.defaultAcfItemsList=this.acfList.filter((e=>Boolean(e.acf?.ist_default)))}async fetchAcfItem(e){if(!e)return this.debug.log("fetchAcfItem: No ID provided"),[];const t=await fetch(this.baseUrl+e,{cache:this.cacheOption()});if(!t.ok)return[];const s=await t.json();return Array.isArray(s)&&0!==s.length?s:[]}async getAcfJson(e){const t=await this.fetchAcfItem(e),s=await this.getAcfImage(t.acf.icon);return{iconUrl:s.url,iconAlt:s.alt,titel:t.acf.titel,anreiser:t.acf.anreiser,link:t.acf.link,startdate:t.acf.start_datum,stopdate:t.acf.end_datum,isDefault:t.acf.ist_default}}async getAcfImage(e){const t=await fetch(this.mediaUrl+e,{cache:this.cacheOption()});if(!t.ok)throw new Error(`Error fetching ACF image with ID ${e}`);const s=await t.json();return{url:s.source_url,alt:s.alt_text}}}class u extends h{baseUrl="https://cloud06.hcsb-2.de/wp-json/wp/v2/eigenwerbung/";mediaUrl="https://cloud06.hcsb-2.de/wp-json/wp/v2/media/";constructor(e,t){super(e,t)}}class p{constructor(){this.debug=new d("Tracking")}setItemsOfInterest(e,t){this.visibilityItems=e,this.clickableItems=t,this.debug.log("Adding items of interest to tracking:",{visibilityItems:this.visibilityItems.length,clickableItems:this.clickableItems.length})}start(){this.debug.log("Starting tracking",{visibilityItems:this.visibilityItems.length,clickableItems:this.clickableItems.length});const e=new IntersectionObserver((t=>{t.forEach((t=>{const s=t.target;t.isIntersecting&&(this.trackVisibility(s,s.dataset.upscoreZone??this.selector(s)),e.unobserve(s))}))}),{threshold:"mobile"===i.L.getLayout()?.1:.5});this.visibilityItems.forEach((t=>{e.observe(t.element)})),this.clickableItems.forEach((e=>{e.element.addEventListener("click",(()=>this.trackClicks(e)))}))}selector(e){let t=e.tagName.toLowerCase();return e.id?t+=`#${CSS.escape(e.id)}`:e.classList.length&&(t+=[...e.classList].map((e=>`.${CSS.escape(e)}`)).join("")),t}trackVisibility(e,t){const s={event:"GA Event",action:"Visible",category:i.L.getCategory(),label:t};this.trackEvent(s)}trackClicks(e){const t={event:"GA Event",action:"Click",category:i.L.getCategory(),label:e.label};this.trackEvent(t)}trackEvent(e){this.debug.log("Tracking event",e),window.dataLayerV3.push(e);const t=["trackEvent",e.category,e.action,e.label??null,e.value??null].filter((e=>null!==e));window._paq.push(t)}trackComplexEvent(e){if(this.debug.log("Tracking complex event",s),!e||"object"!=typeof e||"string"!=typeof e.event||""===e.event)return;
1window.dataLayerV3.push(e);const{event:t,...s}=e;let n;try{n=JSON.stringify(s)}catch{n=JSON.stringify({serializationError:!0})}window._paq.push(["trackEvent",t,n])}}!async function(){let e,t,s,c,h=[],m=null,g=null,b=null,f=null,k=null,v=null,w=null;const y=new d("HeadSlider");const I="1"===new URLSearchParams(window.location.search).get("controls"),A=new r,S=window.location.href.includes("inhalt.")?i.L.getPublisher().headSlider.recommendationsUrlArticle:i.L.getPublisher().headSlider.recommendationsUrlCommon;try{const e=new o(S,3,"random");h=await e.getRecommendations()}catch(e){y.error("Recommendations could not be loaded:",e)}const C=new u,E=i.L.getEnv();await C.getAcfList(E);const T=C.getPossibleAcfItems();y.log("Possible ACF Items: ",T);const L=C.getDefaultAcfItems();y.log("Default ACF Items: ",L);const F=[...T,...L].slice(0,2);y.log("Selected ACF Items: ",F);try{e=await C.getAcfJson(F[0])}catch(t){y.error("left ACF JSON could not be loaded:",t),e=null}try{s=await C.getAcfJson(F[1])}catch(e){y.error("right ACF JSON could not be loaded:",e),s=null}h.length>=3?(m=A.buildRecommendationPane("Schlagzeilen",h,3),b=A.buildRecommendationPane("Schlagzeilen",h.slice(0,1),1),f=A.buildRecommendationPane("Schlagzeilen",h.slice(1,2),1),k=A.buildRecommendationPane("Schlagzeilen",h.slice(2,3),1)):y.error("Recommendations could not be loaded.");let _="";if(null!==e){const s=A.buildAcfPane(e,2);t=A.wrapItems(s,2),_=t,v=A.buildCustomPane(t)}if(null!==s){const e=A.buildAcfPane(s,2);c=A.wrapItems(e,2),_+=c,w=A.buildCustomPane(c)}""!==_&&(g=A.buildCustomPane(t+c));const P=new a;if("desktop"===i.L.getLayout()||"tablet"===i.L.getLayout()?(null!==m&&P.addPane(m),null!==g&&P.addPane(g)):(null!==f&&P.addPane(b),null!==f&&P.addPane(f),null!==k&&P.addPane(k),null!==v&&P.addPane(v),null!==w&&P.addPane(w)),""!==P.getHtml()){const e=new n(P.getHtml(),I);document.getElementById("head-slider").appendChild(e.wrapper),document.querySelectorAll("#head-slider-html-wrapper .accent-color").forEach((e=>{e.style.color=i.L.getPublisher().colors.accent}));const t=[{element:e.wrapper,label:"HeadSlider"}],s=[{element:e.wrapper,label:"HeadSlider"}],o=new p;o.setItemsOfInterest(t,s),o.start();const r=document.querySelector(".head-slider-slides"),a=document.querySelectorAll(".head-slider-pane"),c=document.getElementById("head-slider").classList.contains("horizontal")?"horizontal":"vertical",d=new l(r,a.length,{intervalMilliseconds:5e3,direction:c});document.querySelector(".head-slider-button.next")?.addEventListener("click",(()=>{d.showNextSlide()})),document.querySelector(".head-slider-button.prev")?.addEventListener("click",(()=>{d.showPreviousSlide()}));let h=null;const u=document.getElementById("head-slider");u.addEventListener("mouseover",(()=>{d.isSlideshowRunning()&&d.stopSlideshow(),h&&(clearTimeout(h),h=null)})),d.render(),!I&&a.length>1&&(window.setTimeout((()=>d.startSlideshow()),2e3),u.addEventListener("mouseout",(()=>{d.isSlideshowRunning()||(h=setTimeout((()=>d.startSlideshow()),400))})))}else y.log("No slides to display in HeadSlider")}()})();
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.