"use strict";let gscookbtns=document.getElementsByClassName("gspb-buttonbox");for(let i=0;i<gscookbtns.length;i++){let a=gscookbtns[i],b=a.dataset.cookname,e=a.dataset.cookdays||30,c=a.dataset.cookclass,f=a.dataset.cookclassdelete,g=a.dataset.cooktoggle,h=a.dataset.cookvalue||1;if(b){let d=GSCookService.getCookie(b);d&&c&&(document.body.classList.add(c),a.classList.add("cookactive")),a.addEventListener("click",function(j){(j.preventDefault(),g)?(c&&(a.classList.toggle("cookactive"),document.body.classList.toggle(c)),f&&f.split(",").forEach(a=>{document.body.classList.toggle(a)}),d?GSCookService.removeCookie(b):GSCookService.setCookie(b,h,e)):(GSCookService.setCookie(b,h,e),c&&(document.body.classList.add(c),a.classList.add("cookactive")),f&&f.split(",").forEach(a=>{document.body.classList.remove(a)}))},!1)}}