// source --> https://www.web-schuster.de/wp-content/plugins/nextbricks/elements/js/next_cookies.min.js?ver=2.3.1 
if(!window.location.href.includes("brickspreview")){window.addEventListener("load",function(){next_cookies_front()})}
function next_cookies_front(){var cookies=document.querySelector(".next-cookies");if(!cookies)return;let notification=cookies.querySelector(".next-cookies__notification");function openNotification(){notification.setAttribute("data-opened","")}
function closeNotification(){notification.removeAttribute("data-opened")}
if(!CookieConsent.validConsent()){openNotification()}
const config={root:cookies,autoShow:!1,disablePageInteraction:cookies.getAttribute("data-block-site")==="1",cookie:{name:cookies.getAttribute("data-cookie-name"),expiresAfterDays:parseFloat(cookies.getAttribute("data-expires-after"))},guiOptions:{preferencesModal:{layout:cookies.getAttribute("data-type"),position:cookies.getAttribute("data-position"),equalWeightButtons:!0,flipButtons:!1}},categories:{necessary:{enabled:!0,readOnly:!0}},language:{default:"custom",translations:{custom:{preferencesModal:{title:cookies.getAttribute("data-title-text"),acceptAllBtn:cookies.getAttribute("data-accept-button-text"),acceptNecessaryBtn:cookies.getAttribute("data-reject-button-text"),savePreferencesBtn:cookies.getAttribute("data-save-button-text"),closeIconLabel:"Close modal",sections:[{title:cookies.getAttribute("data-necessary-category-title"),description:cookies.getAttribute("data-necessary-category-description"),linkedCategory:"necessary"}],},},},},onConsent:({})=>{closeNotification()},};var categoriesList=cookies.querySelector(".next-categories-list");if(categoriesList){const nameAttr=categoriesList.getAttribute("data-name");const titleAttr=categoriesList.getAttribute("data-title");const descriptionAttr=categoriesList.getAttribute("data-description");const enabledAttr=categoriesList.getAttribute("data-enabled");const readOnlyAttr=categoriesList.getAttribute("data-read-only");if(nameAttr){const names=nameAttr.split("d4511782");const titles=titleAttr?titleAttr.split("d4511782"):Array(names.length).fill("");const descriptions=descriptionAttr?descriptionAttr.split("d4511782"):Array(names.length).fill("");const enabledValues=enabledAttr?enabledAttr.split("d4511782"):Array(names.length).fill("0");const readOnlyValues=readOnlyAttr?readOnlyAttr.split("d4511782"):Array(names.length).fill("0");for(let i=0;i<names.length;i++){if(names[i]!=="unset"){config.categories[names[i]]={enabled:enabledValues[i]==="1",readOnly:readOnlyValues[i]==="1"};config.language.translations.custom.preferencesModal.sections.push({title:titles[i]!=="unset"?titles[i]:names[i],description:descriptions[i]!=="unset"?descriptions[i]:"",linkedCategory:names[i]})}}}}
CookieConsent.run(config)}
function next_cookies(){var cookies=document.querySelector(".next-cookies");if(!cookies)return;let notification=cookies.querySelector(".next-cookies__notification");cookies.querySelector(".next-cookies__manage").removeAttribute("data-cc");cookies.querySelector(".next-cookies__allow").removeAttribute("data-cc");function openNotification(){notification.setAttribute("data-opened","")}
function closeNotification(){notification.removeAttribute("data-opened")}
const config={root:cookies,autoShow:!1,disablePageInteraction:cookies.getAttribute("data-block-site")==="1",cookie:{name:cookies.getAttribute("data-cookie-name"),expiresAfterDays:parseFloat(cookies.getAttribute("data-expires-after"))},guiOptions:{preferencesModal:{layout:cookies.getAttribute("data-type"),position:cookies.getAttribute("data-position"),equalWeightButtons:!0,flipButtons:!1}},categories:{necessary:{enabled:!0,readOnly:!0}},language:{default:"custom",translations:{custom:{preferencesModal:{title:cookies.getAttribute("data-title-text"),acceptAllBtn:cookies.getAttribute("data-accept-button-text"),acceptNecessaryBtn:cookies.getAttribute("data-reject-button-text"),savePreferencesBtn:cookies.getAttribute("data-save-button-text"),closeIconLabel:"Close modal",sections:[{title:cookies.getAttribute("data-necessary-category-title"),description:cookies.getAttribute("data-necessary-category-description"),linkedCategory:"necessary"}],},},},},onConsent:({})=>{closeNotification()},};var categoriesList=cookies.querySelector(".next-categories-list");if(categoriesList){const nameAttr=categoriesList.getAttribute("data-name");const titleAttr=categoriesList.getAttribute("data-title");const descriptionAttr=categoriesList.getAttribute("data-description");const enabledAttr=categoriesList.getAttribute("data-enabled");const readOnlyAttr=categoriesList.getAttribute("data-read-only");if(nameAttr){const names=nameAttr.split("d4511782");const titles=titleAttr?titleAttr.split("d4511782"):[];const descriptions=descriptionAttr?descriptionAttr.split("d4511782"):[];const enabledValues=enabledAttr?enabledAttr.split("d4511782"):[];const readOnlyValues=readOnlyAttr?readOnlyAttr.split("d4511782"):[];for(let i=0;i<names.length;i++){if(names[i]!=="unset"){config.categories[names[i]]={enabled:enabledValues[i]==="1",readOnly:readOnlyValues[i]==="1"};config.language.translations.custom.preferencesModal.sections.push({title:titles[i]!=="unset"?titles[i]:names[i],description:descriptions[i]!=="unset"?descriptions[i]:"",linkedCategory:names[i]})}}}}
CookieConsent.run(config);if(cookies.getAttribute("data-open-notification")==="1"){openNotification()}
if(cookies.getAttribute("data-open-preferences")==="1"){CookieConsent.showPreferences()}}
if(window.location.href.includes("brickspreview")){document.addEventListener("DOMContentLoaded",function(t){bricksIsFrontend&&next_cookies()})};