document.addEventListener("click",async o=>{var c;const e=o.target.closest(".procp-consent-banner [data-action]");if(!e)return;const t=e.closest(".procp-consent-banner"),n=e.dataset.action,a=t.dataset[n==="accept"?"apiAccept":"apiReject"];try{await fetch(a,{method:"POST",headers:{"X-CSRF-TOKEN":((c=document.querySelector('meta[name="csrf-token"]'))==null?void 0:c.content)||"",Accept:"application/json"},credentials:"same-origin"})}catch(r){console.warn("[consent] request failed",r)}window.procpConsent=window.procpConsent||{},window.procpConsent.marketing=n==="accept",t.remove()});
