class CookieConsentManager{init(e){var n;const a={necessary:{enabled:!0,readOnly:!0}};e&&(a.analytics={autoClear:{cookies:[{name:/^_ga/},{name:"_gid"}]},enabled:!0}),CookieConsent.run({cookie:{expiresAfterDays:30},categories:a,language:{default:"umbraco",translations:JSON.parse((null===(n=document.getElementById("cc_translations"))||void 0===n?void 0:n.textContent)||"{}")},onFirstConsent:()=>this.updateGTMConsent(),onConsent:()=>this.updateGTMConsent(),onChange:({changedCategories:e})=>{-1!==e.indexOf("analytics")&&this.updateGTMConsent()}})}updateGTMConsent(){window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"cookie_consent_update",analytics_storage:CookieConsent.acceptedCategory("analytics")?"granted":"denied"})}}