PageSourceSearch

https://www.swb-busundbahn.de/_assets/46c1c088d2e2944ec6fabd154d67550a/Build/app.js?1789981964

js swb-busundbahn.de collected 2026-10-02 06:20:39 UTC 24,821 bytes, 2 lines download raw bytes

1/*! For license information please see app.js.LICENSE.txt */
2!function(){var e={65:function(e,t,o){var n,i;!function(){"use strict";n=function(){var e=function(){},t="undefined",o=typeof window!==t&&typeof window.navigator!==t&&/Trident\/|MSIE /.test(window.navigator.userAgent),n=["trace","debug","info","warn","error"],i={},s=null;function r(e,t){var o=e[t];if("function"==typeof o.bind)return o.bind(e);try{return Function.prototype.bind.call(o,e)}catch(t){return function(){return Function.prototype.apply.apply(o,[e,arguments])}}}function c(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function a(n){return"debug"===n&&(n="log"),typeof console!==t&&("trace"===n&&o?c:void 0!==console[n]?r(console,n):void 0!==console.log?r(console,"log"):e)}function d(){for(var o=this.getLevel(),i=0;i<n.length;i++){var s=n[i];this[s]=i<o?e:this.methodFactory(s,o,this.name)}if(this.log=this.debug,typeof console===t&&o<this.levels.SILENT)return"No console available for logging"}function l(e){return function(){typeof console!==t&&(d.call(this),this[e].apply(this,arguments))}}function h(e,t,o){return a(e)||l.apply(this,arguments)}function g(e,o){var r,c,a,l=this,g="loglevel";function p(e){var o=(n[e]||"silent").toUpperCase();if(typeof window!==t&&g){try{return void(window.localStorage[g]=o)}catch(e){}try{window.document.cookie=encodeURIComponent(g)+"="+o+";"}catch(e){}}}function u(){var e;if(typeof window!==t&&g){try{e=window.localStorage[g]}catch(e){}if(typeof e===t)try{var o=window.document.cookie,n=encodeURIComponent(g),i=o.indexOf(n+"=");-1!==i&&(e=/^([^;]+)/.exec(o.slice(i+n.length+1))[1])}catch(e){}return void 0===l.levels[e]&&(e=void 0),e}}function f(){if(typeof window!==t&&g){try{window.localStorage.removeItem(g)}catch(e){}try{window.document.cookie=encodeURIComponent(g)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch(e){}}}function y(e){var t=e;if("string"==typeof t&&void 0!==l.levels[t.toUpperCase()]&&(t=l.levels[t.toUpperCase()]),"number"==typeof t&&t>=0&&t<=l.levels.SILENT)return t;throw new TypeError("log.setLevel() called with invalid level: "+e)}"string"==typeof e?g+=":"+e:"symbol"==typeof e&&(g=void 0),l.name=e,l.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},l.methodFactory=o||h,l.getLevel=function(){return null!=a?a:null!=c?c:r},l.setLevel=function(e,t){return a=y(e),!1!==t&&p(a),d.call(l)},l.setDefaultLevel=function(e){c=y(e),u()||l.setLevel(e,!1)},l.resetLevel=function(){a=null,f(),d.call(l)},l.enableAll=function(e){l.setLevel(l.levels.TRACE,e)},l.disableAll=function(e){l.setLevel(l.levels.SILENT,e)},l.rebuild=function(){if(s!==l&&(r=y(s.getLevel())),d.call(l),s===l)for(var e in i)i[e].rebuild()},r=y(s?s.getLevel():"WARN");var v=u();null!=v&&(a=y(v)),d.call(l)}(s=new g).getLogger=function(e){if("symbol"!=typeof e&&"string"!=typeof e||""===e)throw new TypeError("You must supply a name when creating a logger.");var t=i[e];return t||(t=i[e]=new g(e,s.methodFactory)),t};var p=typeof window!==t?window.log:void 0;return s.noConflict=function(){return typeof window!==t&&window.log===s&&(window.log=p),s},s.getLoggers=function(){return i},s.default=s,s},void 0===(i="function"==typeof n?n.call(t,o,t,e):n)||(e.exports=i)}()}},t={};function o(n){var i=t[n];if(void 0!==i)return i.exports;var s=t[n]={exports:{}};return e[n].call(s.exports,s,s.exports,o),s.exports}o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,{a:t}),t},o.d=function(e,t){for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.dn=function(e){(Object.getOwnPropertyDescriptor(e,"name")||{}).writable||Object.defineProperty(e,"name",{value:"default",configurable:!0})},function(){"use strict";class e{static ready(e){"loading"!==document.readyState?e():document.addEventListener("DOMContentLoaded",e)}static browserSupportCookies(){try{document.cookie="cookietest=1";const e=-1!==document.cookie.indexOf("cookietest=");return document.cookie="cookietest=1; expires=Thu, 01-Jan-1970 00:00:01 GMT",e}catch(e){return!1}}getPrimaryLinkColor(){const e=document.createElement("a");e.style.display="none",e.href="#",document.body.appendChild(e);return getComputedStyle(e,null).getPropertyValue("color")}static addNodelistForeachPolyfill(){window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=Array.prototype.forEach)}static addClosestPolyfill(){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(e){var t=this;do{if(Element.prototype.matches.call(t,e))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return null})}}function t(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)"__proto__"!==n&&(e[n]=o[n])}return e}var n=function e(o,n){function i(e,i,s){if("undefined"!=typeof document){"number"==typeof(s=t({},n,s)).expires&&(s.expires=new Date(Date.now()+864e5*s.expires)),s.expires&&(s.expires=s.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decode
2URIComponent).replace(/[()]/g,escape);var r="";for(var c in s)s[c]&&(r+="; "+c,!0!==s[c]&&(r+="="+s[c].split(";")[0]));return document.cookie=e+"="+o.write(i,e)+r}}return Object.create({set:i,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var t=document.cookie?document.cookie.split("; "):[],n={},i=0;i<t.length;i++){var s=t[i].split("="),r=s.slice(1).join("=");try{var c=decodeURIComponent(s[0]);if(c in n||(n[c]=o.read(r,c)),e===c)break}catch(e){}}return e?n[e]:n}},remove:function(e,o){i(e,"",t({},o,{expires:-1}))},withAttributes:function(o){return e(this.converter,t({},this.attributes,o))},withConverter:function(o){return e(t({},this.converter,o),this.attributes)}},{attributes:{value:Object.freeze(n)},converter:{value:Object.freeze(o)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"}),i=o(65),s=o.n(i),r="13.3.15";function c(e){const t=atob(e),o=new Uint8Array([...t].map(e=>e.charCodeAt(0)));return(new TextDecoder).decode(o)}class a{constructor(e){this.cookieCodes=[],this.allowedLocationsToInsert=["head","body"],this.codeForCookieTypesAlreadyAdded=[],this.cookieTracking=e,this.init()}toSafeKey(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/[^a-zA-Z0-9]+/g,"_").replace(/^_+|_+$/g,"").replace(/^(\d)/,"_$1")}init(){"undefined"!=typeof cookieCodes&&Array.isArray(cookieCodes)&&null!==cookieCodes?(s().debug("🛠| Global cookieCodes variable available.",cookieCodes),this.cookieCodes=cookieCodes):s().warn("🛠| No global cookieCodes variable available.")}addCodeForCookieTypes(e){if(this.cookieCodes.length&&Array.isArray(e)&&e.length){const t=e.map(e=>this.getCodeTypeById(this.cookieCodes,e)).filter(e=>void 0!==e).flat();if(Array.isArray(t)&&t.length){const e=this.getEssentialCodeTypes(t),o=this.getAdditionalCodeTypes(t);e.length?(s().debug("🛠| Essential cookies: typeId with code available.",e),this.addCodesToDom(e)):s().debug("🛠| Essential cookies - no codeTypes found to add."),o.length?(s().debug("🛠| Additional cookies: typeId's with code available.",o),this.addCodesToDom(o)):s().debug("🛠| Additional cookies - no codeTypes found to add.")}}else s().warn("🛠| Cookie type ids not valid.")}getEssentialCodeTypes(e){return e.filter(e=>"isEssential"in e&&"true"===e.isEssential)}getAdditionalCodeTypes(e){return e.filter(e=>"isEssential"in e&&"false"===e.isEssential)}getCodeTypeById(e,t){return e.filter(e=>Number(e.typeId)===Number(t))}addCodesToDom(e){Object.keys(e).forEach(t=>{const o=e[t],n=Number(o.typeId),i=`${this.toSafeKey(o.name)}-${Number(o.typeId)}`,r=o.nonce;-1===this.codeForCookieTypesAlreadyAdded.indexOf(i)?(this.codeForCookieTypesAlreadyAdded.push(i),"codes"in o&&o.codes.length?o.codes.forEach(e=>{let t="",o="";"code"in e&&e.code.length?t=c(e.code):s().debug(`🛠| No or empty \`code\` property for typeId ${n} in codes-object.`,e),"location"in e&&e.location.length&&-1!==this.allowedLocationsToInsert.indexOf(e.location)?o=e.location:s().warn(`🛠| No \`location\` property for typeId ${n} in codes-object or not valid.`,e),t&&o?-1!==t.indexOf("<script")?this.handleScripts(t,o,r):s().warn(`🛠| No \`script\` tag for typeId ${n} in code string.`,e):s().debug(`🛠| No or empty \`code\` or \`location\` for typeId ${n} available.`,e)}):s().debug("🛠| No `codes` property in type-object",o)):s().debug(`🛠| Code for cookie "${i}
2" already added.`,this.codeForCookieTypesAlreadyAdded)})}handleScripts(e,t,o=""){const n=document.createDocumentFragment(),i=document.createElement("div");i.innerHTML=e;const r=i.getElementsByTagName("script");r.length&&(Object.keys(r).forEach(e=>{const t=r[e],i=t.src,c=document.createElement("script");c.type="text/javascript",i?(s().debug("🛠| Script has `src` attribute.",i),c.src=i,t.hasAttribute("async")&&(c.async=!0),t.hasAttribute("defer")&&(c.defer=!0)):c.textContent=t.innerText,o&&(c.nonce=o),n.appendChild(c)}),n.querySelector("script")&&(s().debug("🛠| Scripts will be added. \n",{location:t,scriptCodes:e}),document[t].appendChild(n)))}}class d{constructor(){this.gtmTrackingSettings={},this.currentUrl=window.location.href.replace(window.location.origin,""),this.pageViewAlreadySent=!1,this.init()}init(){this.checkGtmTrackingSettings()}checkGtmTrackingSettings(){if("object"==typeof cookieBannerSettings&&null!==cookieBannerSettings&&Object.keys(cookieBannerSettings).length&&"trackingSettings"in cookieBannerSettings){const e=cookieBannerSettings.trackingSettings;Object.keys(e).length&&"active"in e&&1===Number(e.active)&&"dataLayerEventName"in e&&(this.gtmTrackingSettings.dataLayerEventName=e.dataLayerEventName)}}sendGtmDataLayerEventOnSettingsSave(){this.gtmTrackingSettings&&"dataLayerEventName"in this.gtmTrackingSettings&&this.sendDataLayerEvent(this.gtmTrackingSettings.dataLayerEventName)}sendGtmDataLayerEventOnPageLoadWithConsentInitialized(){this.gtmTrackingSettings&&"dataLayerEventName"in this.gtmTrackingSettings&&this.sendDataLayerEvent("page-load-with-consent-initialized")}sendDataLayerEvent(e){s().debug("🛰| GTM - send dataLayer event:",e),window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:e})}saveEntrypointData(){if(!n.get("entrypoint-data")){const e={landingUrl:this.currentUrl,landingReferrer:document.referrer};s().debug('🛰| Cookie "entrypoint-data" will be set.',e),n.set("entrypoint-data",JSON.stringify(e))}}trackEntrypointData(){let e=!1;if("function"==typeof gtag){const t=this.currentUrl,o=n.get("entrypoint-data");if(o){s().debug('🛰| Cookie "entrypoint-data" exists.',o);const n=JSON.parse(o),i="landingUrl"in n?n.landingUrl:"",r="landingReferrer"in n?n.landingReferrer:"";i&&r&&!this.pageViewAlreadySent?(s().debug("🛰| gtag: send page_view with landingUrl and referrer",{landingUrl:i,landingReferrer:r}),gtag("event","page_view",{page_path:i,page_referrer:r}),t===i?this.pageViewAlreadySent=!0:(s().debug("🛰| Entrypoint-data - currentUrl is not the saved landingUrl",{currentUrl:t,landingUrl:i}),e=!0)):(s().debug("🛰| Entrypoint-data - saved landingUrl or referrer are empty or page_view already send."),e=!0)}else s().debug('🛰| No cookie-data with "entrypoint-data" available.');e&&!this.pageViewAlreadySent&&(this.pageViewAlreadySent=!0,s().debug('🛰| gtag: send "normal/regular" page_view'),gtag("event","page_view"))}else s().debug("🛰| GA (direct implementation) - gtag function not available.")}}class l{constructor(){this.cookieSettingsBox=document.querySelector(".js-ppwcm-settings"),this.settingsBoxOpenClass="modal-is-open",this.settingsBoxIsClosedOnLoad=!1,this.settingActionButtonsSelector=".js-ppwcm-settings__button",this.openCookieSettingsTriggerSelector=".js-ppwcm-settings__open-modal",this.anchorLinksInBoxSelector='a[href*="#"]',this.viewStartSelector=".js-ppwcm-settings__view--start",this.viewStart=null,this.viewEditSelector=".js-ppwcm-settings__view--edit",this.viewEdit=null,this.co
2deGenerator={},this.cookieTracking={},this.acceptedCookieTypeIds=[],this.settingsBoxIsOpen=!1,this.activeView={},this.trapFocusInSettingsBoxWrapper=e=>{this.trapFocusInSettingsBox(e)},this.lastFocusedElement=document.activeElement,this.focusChangeTriggeredByTrap=!1,this.onSettingsChanged=new Event("CookieSettings_OnChange"),this.cookieSettings={consents:new Set,uuid:"","consent-hash":void 0,"acceptance-time":""},this.cookieName=this.getCookieName(),this.init()}init(){e.addNodelistForeachPolyfill(),e.addClosestPolyfill(),this.checkDebugSettings(),s().debug(`ℹ️| PPW Cookie Manager Version ${r}`),this.cookieSettingsBox?e.browserSupportCookies()?(this.viewStart=this.cookieSettingsBox.querySelector(this.viewStartSelector),this.viewEdit=this.cookieSettingsBox.querySelector(this.viewEditSelector),this.cookieTracking=new d,this.codeGenerator=new a(this.cookieTracking),this.checkVisibilityOnStartup(),this.getSavedSettings(),this.bindEvents(),this.handleAcceptedCookieTypes(),this.cookieSettings.consents.size&&this.cookieTracking.sendGtmDataLayerEventOnPageLoadWithConsentInitialized()):s().info("🎚| Browser don't support cookies."):s().warn("🎚| Cookie settings-box not found in DOM.")}getCookieName(){return this.cookieSettingsBox?.dataset.typo3PpwcmName??"ppw-cookie"}checkDebugSettings(){s().resetLevel(),s().setLevel("silent",!1);n.get("DEBUG")&&s().setLevel("trace",!1)}checkVisibilityOnStartup(){this.settingsBoxIsClosedOnLoad=this.cookieSettingsBox.classList.contains("is-closed-on-load")}handleAcceptedCookieTypes(){let e=!1;if(s().debug("🎚| Current cookie-settings:",this.cookieSettings),this.cookieSettings.consents.size){const t=this.getTypeIdForEssentialCookie(),o=this.cookieSettings.consents.has(t),n=[...this.cookieSettings.consents];o?s().debug("🎚| Essential cookies are accepted."):(console.log('⚠️ Essential cookies are not accepted or not defined in the backend. Make sure there is a cookie type with the "essential" property.'),e=!0),this.selectCheckboxesByCookieTypeIds(n),this.codeGenerator.addCodeForCookieTypes(n)}else e=!0;this.consentHashDiffers()&&(this.removeSettings(),e=!0),e&&!this.settingsBoxIsClosedOnLoad&&this.openSettingsBox()}getConsentHash(){if(window.cookieConsentHash&&"string"==typeof window.cookieConsentHash&&0!==window.cookieConsentHash.length)return window.cookieConsentHash}consentHashDiffers(){return void 0!==this.getConsentHash()&&this.cookieSettings["consent-hash"]!==this.getConsentHash()}isTypeIdAccepted(e){let t=!1;return e===parseInt(e,10)?t=this.cookieSettings.consents.has(e):s().warn("🎚| TypeId is not a number."),t}bindEvents(){document.querySelectorAll(this.openCookieSettingsTriggerSelector).forEach(e=>{e.addEventListener("click",e=>{e.preventDefault(),this.openSettingsBox("edit")})}),window.addEventListener("CookieSettings_OpenSettingsEdit",()=>{this.openSettingsBox("edit")}),window.addEventListener("CookieSettings_OpenSettingsStart",()=>{this.openSettingsBox()}),this.cookieSettingsBox.querySelectorAll(this.settingActionButtonsSelector).forEach(e=>{e.addEventListener("click",e=>{e.preventDefault();let t="";const o=e.currentTarget.dataset.buttonAction;o&&(t=`${o}Action`),t&&"function"==typeof this[t]&&this[t]()})}),this.cookieSettingsBox.querySelectorAll(this.anchorLinksInBoxSelector).forEach(e=>{e.addEventListener("click",e=>{"#"!==e.currentTarget.getAttribute("href")&&this.hideSettingsBox()})})}manualAction(){this.showEditView()}essentialAction(){this.setEssentialCookieId(),this.saveSettings(),this.submitSettingsAndGetUuid(),this.hideSettingsBox(),this.handleAcceptedCookieTypes(),window.dispatchEvent(this.onSettingsChanged)}saveEditAction(){this.setSelectedCookieIds(),this.saveSettings(),this.submitSettingsAndGetUuid(),this.hideSettingsBox(),this.handleAcceptedCookieTypes(),window.dispatchEvent(this.onSettingsChanged),this.cookieTracking.sendGtmDataLayerEventOnSettingsSave()}submitSettingsAndGetUuid(){const e=this.cookieSettingsBox.dataset.typo3AjaxUrl,t={"tx_ppwcookie_cookieconsent[consent]":JSON.stringify({types:[...this.cookieSettings.consents]}),"tx_ppwcookie_cookieconsent[uuid]":this.cookieSettings.uuid};e&&fetch(e,{method:"POST",body:new URLSearchParams(t).toString(),headers:{"Content-type":"application/x-www-form-urlencoded; charset=UTF-8"}}).then(e=>e.json()).then(e=>{if(s().debug("🎚| Respsonse from submiting settings:",e),"status"in e&&!1===e.status)s().warn("🎚| Submitting settings to backend failed.",e);else{if("uuid"in e&&e.uuid&&(this.cookieSettings.uuid=e.uuid),"time"in e&&e.time){const t=1e3*Number(e.time);isNaN(t)||(this.cookieSettings["acceptance-time"]=new Date(t).toUTCString())}this.saveSettings()}}).catch(e=>s().error("🎚| Get UUID for settings - post-request error:",e))}selectAllCheckboxesAction(){this.selectAllCheckboxes()}selectAllAndSaveAction(){this.selectAllCheckboxes(),this.saveEditAction()}setEssentialCookieId(){const e=this.getTypeIdForEssentialCookie();e?this.cookieSettings.consents.add(e):s().warn("🎚| TypeId for essential cookies could not be found.")}setSelectedCookieIds(){const e=this.viewEdit.querySelectorAll(".js-ppwcm-sett
2ings__checkbox:checked");e.length&&(this.cookieSettings.consents.clear(),e.forEach(e=>{const t=Number(e.value);isNaN(t)||this.cookieSettings.consents.add(t)}))}selectCheckboxesByCookieTypeIds(e){e.length&&e.forEach(e=>{this.selectCheckboxByValue(e)})}selectCheckboxByValue(e){const t=this.cookieSettingsBox.querySelector(`.js-ppwcm-settings__checkbox[value="${e}"]`);t&&(t.checked=!0)}selectAllCheckboxes(){const e=this.cookieSettingsBox.querySelectorAll(".js-ppwcm-settings__checkbox");e.length&&e.forEach(e=>{e.checked=!0})}getTypeIdForEssentialCookie(){let e=!1;const t=this.viewEdit.querySelector('.js-ppwcm-settings__checkbox[data-cookie-type="essential"]');if(t){const o=Number(t.value);isNaN(o)||(e=o)}return e}showStartView(){this.activeView=this.viewStart,this.viewStart.classList.add("is-active"),this.viewEdit.classList.remove("is-active"),setTimeout(()=>{this.setFocusToFocusableElements("first")},10)}showEditView(){this.activeView=this.viewEdit,this.viewStart.classList.remove("is-active"),this.viewEdit.classList.add("is-active"),setTimeout(()=>{this.setFocusToFocusableElements("first")},10)}openSettingsBox(e){this.settingsBoxIsOpen=!0,document.body.classList.add(this.settingsBoxOpenClass),this.cookieSettingsBox.classList.contains("is-open")||(this.cookieSettingsBox.classList.add("is-opening"),setTimeout(()=>{this.cookieSettingsBox.classList.remove("is-opening"),this.cookieSettingsBox.classList.add("is-open"),e&&"edit"===e?this.showEditView():this.showStartView()},300)),document.addEventListener("focus",this.trapFocusInSettingsBoxWrapper,!0)}hideSettingsBox(){this.settingsBoxIsOpen=!1,this.activeView={},document.body.classList.remove(this.settingsBoxOpenClass),this.cookieSettingsBox.classList.contains("is-open")&&(this.cookieSettingsBox.classList.remove("is-open"),this.cookieSettingsBox.classList.add("is-closing"),setTimeout(()=>{this.cookieSettingsBox.classList.remove("is-closing")},300)),document.removeEventListener("focus",this.trapFocusInSettingsBoxWrapper,!0)}setFocusToFocusableElements(e){const t=this.activeView.querySelectorAll('\n            a[href]:not([tabindex^="-"]),\n            button:not([disabled]):not([tabindex^="-"]),\n            input:not([type="hidden"]):not([type="radio"]):not([disabled]):not([tabindex^="-"])\n        ');if(t.length){let o=null;"first"===e?o=t[0]:"last"===e&&(o=t[t.length-1]),o&&(this.focusChangeTriggeredByTrap=!0,o.focus(),this.focusChangeTriggeredByTrap=!1)}else this.focusChangeTriggeredByTrap=!0,this.cookieSettingsBox.tabIndex=-1,this.cookieSettingsBox.focus(),this.focusChangeTriggeredByTrap=!1}trapFocusInSettingsBox(e){const t=`${this.viewStartSelector}, ${this.viewEditSelector}`,o=e.target;this.focusChangeTriggeredByTrap||this.settingsBoxIsOpen&&o instanceof HTMLElement&&(o.closest(t)?this.lastFocusedElement=o:(this.setFocusToFocusableElements("first"),this.lastFocusedElement===document.activeElement&&this.setFocusToFocusableElements("last"),this.lastFocusedElement=document.activeElement))}tryParseJson(e){try{const t=JSON.parse(e);if(t&&"object"==typeof t)return t}catch(e){s().error("🎚| JSON.parse error:",e)}return!1}setStringifyReplacer(e,t){return"object"==typeof t&&t instanceof Set?[...t]:t}getSavedSettings(){const e=n.get(this.cookieName);if(void 0!==e&&e.length){const t=this.tryParseJson(e);if(t&&"object"==typeof t){if("consents"in t&&Array.isArray(t.consents)&&t.consents.length){const e=t.consents.filter(e=>e&&Number.isInteger(e));this.cookieSettings.consents=new Set(e)}"uuid"in t&&"string"==typeof t.uuid&&t.uuid.length&&(this.cookieSettings.uuid=t.uuid),"acceptance-time"in t&&"string"==typeof t["acceptance-time"]&&t["acceptance-time"].length&&(this.cookieSettings["acceptance-time"]=t["acceptance-time"]),"consent-hash"in t&&"string"==typeof t["consent-hash"]&&t["consent-hash"].length>0&&(this.cookieSettings["consent-hash"]=t["consent-hash"])}}else this.cookieSettings.consents=new Set}saveSettings(){this.cookieSettings["consent-hash"]=this.getConsentHash(),null!==this.cookieSettings["consent-hash"]&&void 0!==this.cookieSettings["consent-hash"]||delete this.cookieSettings["consent-hash"];const e=JSON.stringify(this.cookieSettings,this.setStringifyReplacer);n.set(this.cookieName,e,{expires:365}),s().debug("🎚| Saved settings to cookie:",e)}
2removeSettings(){n.remove(this.cookieName),this.getSavedSettings()}}class h{constructor(){this.consentContent=[],this.init()}init(){"undefined"!=typeof contentAfterConsent&&Array.isArray(contentAfterConsent)&&contentAfterConsent.length&&"ppwCookieSettings"in window&&window.ppwCookieSettings instanceof l?(s().debug("🏗️| Global 'contentAfterConsent' variable available.",contentAfterConsent),this.consentContent=contentAfterConsent,this.bindEvents(),this.checkConsentForContent()):s().info("🏗️| No global 'contentAfterConsent' variable or CookieSettings object available.")}checkConsentForContent(){this.consentContent.forEach(e=>{let t=null;"consentTypeId"in e&&e.consentTypeId&&(t=e.consentTypeId);let o="";"content"in e&&e.content&&(o=e.content);let n="";if("moduleId"in e&&e.moduleId&&(n=e.moduleId),t&&n&&o){const i=ppwCookieSettings.isTypeIdAccepted(t),r=document.getElementById(n);if(r){const n=r.querySelector(".js-ppwcm-content__optin");if(!n)return;if(n.innerHTML="",i){if(!("contentAsElement"in e)||!e.contentAsElement){const t=c(o);e.contentAsElement=this.makeScriptsExecutable(t)}s().debug(`🏗️| Content will be added (typeId: "${t}").`,e.contentAsElement),r.classList.add("consent-is-given"),n.appendChild(e.contentAsElement)}else r.classList.remove("consent-is-given"),s().debug(`🏗️| Conset for typeId "${t}" not given.`,e)}else s().debug(`🏗️| The moduleId (${n}) couldn't be found.`)}else s().debug("🏗️| No 'typeId', 'content' or 'moduleId' property in content-object.",e)})}bindEvents(){window.addEventListener("CookieSettings_OnChange",()=>{this.checkConsentForContent()})}makeScriptsExecutable(e){const t=document.createElement("div");t.innerHTML=e;return t.querySelectorAll("script").forEach(e=>{const t=document.createElement("script");Array.from(e.attributes).forEach(e=>{t.setAttribute(e.name,e.value)}),t.textContent=e.innerText,e.replaceWith(t)}),t}}var g=(e={availableConsentTypes:[1,2,3,4,5,6]})=>{const t={},o=new Set,n=e.availableConsentTypes,i=()=>
2{if("undefined"==typeof ppwCookieSettings)return;const e=ppwCookieSettings.cookieSettings.consents;e.forEach(e=>{void 0!==t[e]&&Array.isArray(t[e])&&t[e].forEach(t=>{const n=`${e}_${t}`;o.has(n)||(t(),o.add(n))})}),Object.keys(t).forEach(n=>{e.has(parseInt(n))||t[n].forEach(e=>{o.delete(`${n}_${e}`)})})},s=(e,o)=>{const s=parseInt(e,10);if(e&&!isNaN(s))if(n.includes(s)){if(o&&"function"==typeof o)return void 0===t[e]?t[e]=[o]:t[e].push(o),i();console.error(`Invalid callback: Expected a function, but received '${o}' (${typeof o})`)}else console.error(`Unknown consent type: ${s}. Expected one of: ${n.join(", ")}`);else console.error(`Invalid consent reference: Expected a number, but received '${e}' (${typeof e})`)},r=window._cookieConsentFeatures??[],c=[];c.push=function(){for(const e of arguments){const t=e[0],o=e[1];s(t,o)}return Array.prototype.push.apply(this,arguments)};for(const e of r)c.push(e);return window.addEventListener("CookieSettings_OnChange",()=>{i()}),window._cookieConsentFeatures=c,window._cookieConsentFeatures};o.dn(g),e.ready(()=>{window.ppwCookieSettings=new l,new h,g()})}()}();

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.