// https://github.com/orestbida/cookieconsent

import 'https://cdn.jsdelivr.net/gh/orestbida/cookieconsent@3.1.0/dist/cookieconsent.umd.js';

CookieConsent.run({
    guiOptions: {
        consentModal: {
            layout: "bar inline",
            position: "bottom",
            equalWeightButtons: true,
            flipButtons: true
        },
        preferencesModal: {
            layout: "box",
            position: "right",
            equalWeightButtons: true,
            flipButtons: true
        }
    },
    categories: {
        necessary: {
            readOnly: true
        },
        analytics: {}
    },
    language: {
        default: "en",
        translations: {
            en: {
                consentModal: {
                    title: "Cookie settings",
                    description: "Dear visitor, by confirming, you give your consent to us and our partners to use cookies for necessary, analytical, and marketing purposes on this device.",
                    acceptAllBtn: "Allow all",
                    acceptNecessaryBtn: "Disable all",
                    showPreferencesBtn: "Settings",
                    footer: ""
                },
                preferencesModal: {
                    title: "Settings",
                    acceptAllBtn: "Allow all",
                    acceptNecessaryBtn: "Disable all",
                    savePreferencesBtn: "Save",
                    closeIconLabel: "Close",
                    serviceCounterLabel: "",
                    sections: [
                        {
                            title: "Cookie management",
                            description: ""
                        },
                        {
                            title: "Necessary <span class=\"pm__badge\">Always enabled</span>",
                            description: "These cookies are necessary for the proper functioning of the website and cannot be disabled.",
                            linkedCategory: "necessary"
                        },
                        {
                            title: "Statistical cookies",
                            description: "These cookies help us understand how visitors use the website.",
                            linkedCategory: "analytics"
                        }
                    ]
                }
            }
        }
    },
    disablePageInteraction: false
});