1import{a as c}from"./animate.es.C8wjTCWO.js";import"./resolve-elements.es.CHzJqzTK.js";import"./stagger.es.5EDb_uLR.js";import"./is-string.es.47y2Y7ai.js";function S(){return setTimeout(()=>{window.location.reload()},100)}document.addEventListener("DOMContentLoaded",function(){const s=document.getElementById("c-consent-banner"),y=document.querySelectorAll("[kui-trigger='accept-cookies']"),f=document.querySelectorAll("[kui-trigger='reject-cookies']"),h=document.getElementById("settings-cookies"),i=document.getElementById("c-consent-banner__modal"),p=document.getElementById("save-settings"),a=document.getElementById("analytics-cookies"),d=document.getElementById("marketing-cookies"),E=document.querySelectorAll("[kui-trigger='consent'");function l(e,n,r){const o=new Date;o.setTime(o.getTime()+r*24*60*60*1e3);const t="expires="+o.toUTCString();document.cookie=e+"="+n+";"+t+";path=/"}function B(e){const n=e+"=",r=document.cookie.split(";");for(let o=0;o<r.length;o++){let t=r[o];for(;t.charAt(0)===" ";)t=t.substring(1,t.length);if(t.indexOf(n)===0)return t.substring(n.length,t.length)}return null}function u(e){a.checked=!!e.analytics,d.checked=!!e.marketing}function g(){c(i,{opacity:[1,0]},{duration:.2,delay:.1}),c(s,{opacity:[1,0]},{duration:.2,delay:.1}).finished.then(()=>{i.close(),s.close(),S()})}function m(){i.showModal();const e=document.querySelector(".c-consent-banner__modal-content");c(i,{opacity:[0,1]},{delay:0,duration:.3}),c(e,{opacity:[0,1],scale:[1.02,1]},{delay:0,duration:.5})}const k=B("user_consent");if(k){const e=JSON.parse(k);u(e)}else s?.show(),c(s,{opacity:[0,1],y:["2%",0]},{delay:1,duration:.5});y.forEach(e=>{e.addEventListener("click",()=>{const n={necessary:!0,analytics:!0,marketing:!0};l("user_consent",JSON.stringify(n),365),u(n),g()})}),f.forEach(e=>{e.addEventListener("click",()=>{l("user_consent",JSON.stringify({necessary:!0,analytics:!1,marketing:!1}),365),a.checked=!1,d.checked=!1,g()})}),h.addEventListener("click",m),E.forEach(e=>e.addEventListener("click",m)),p.addEventListener("click",()=>{const e={necessary:!0,analytics:a.checked,marketing:d.checked};l("user_consent",JSON.stringify(e),365),u(e),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.