PageSourceSearch

https://apotheke-frankenbach.de/wp-content/themes/frankenbackwebsi…/cookieconsent-init.js?ver=1727694366

js apotheke-frankenbach.de collected 2026-10-02 01:00:36 UTC 8,965 bytes, 185 lines download raw bytes

1import "./cookieconsent.umd.js";
2
3/**
4 * Enable suggestions
5 * @type {import('../../types')}
6 */
7CookieConsent.run({
8
9    cookie: {
10        name: 'cc_cookie',
11    },
12
13    guiOptions: {
14        consentModal: {
15            layout: 'box inline',
16            position: 'bottom right',
17            flipButtons: false
18        },
19        preferencesModal: {
20            layout: 'box',
21            position: 'left',
22            flipButtons: false
23        }
24    },
25
26    onFirstConsent: () => {
27        if(CookieConsent.acceptedCategory('analytics')){
28            if(document.querySelectorAll('[data-category="analytics"]').length <= 0) return
29            const analyticsElements = document.querySelectorAll('[data-category="analytics"]')
30            analyticsElements.forEach(item => {
31                const itemSrc = item.dataset.src
32                if(!itemSrc) return
33                item.src = itemSrc
34                item.removeAttribute("data-src")
35            })
36        }else{
37            if(document.querySelectorAll('[data-category="analytics"]').length <= 0) return
38            const analyticsElements = document.querySelectorAll('[data-category="analytics"]')
39            analyticsElements.forEach(item => {
40                const itemSrc = item.src
41                if(!itemSrc) return
42                item.dataset.src = itemSrc
43                item.removeAttribute("src")
44            })
45        }
46    },
47
48    onConsent: () => {
49        console.log('onConsent fired ...');
50            if(CookieConsent.acceptedCategory('analytics')){
51                if(document.querySelectorAll('[data-category="analytics"]').length <= 0) return
52                const analyticsElements = document.querySelectorAll('[data-category="analytics"]')
53                analyticsElements.forEach(item => {
54                    const itemSrc = item.dataset.src
55                    if(!itemSrc) return
56                    item.src = itemSrc
57                    item.removeAttribute("data-src")
58                })
59            }else{
60                if(document.querySelectorAll('[data-category="analytics"]').length <= 0) return
61                const analyticsElements = document.querySelectorAll('[data-category="analytics"]')
62                analyticsElements.forEach(item => {
63                    const itemSrc = item.src
64                    if(!itemSrc) return
65                    item.dataset.src = itemSrc
66                    item.removeAttribute("src")
67                })
68            }
69    },
70
71    onChange: () => {
72        if(CookieConsent.acceptedCategory('analytics')){
73            if(document.querySelectorAll('[data-category="analytics"]').length <= 0) return
74            const analyticsElements = document.querySelectorAll('[data-category="analytics"]')
75            analyticsElements.forEach(item => {
76                const itemSrc = item.dataset.src
77                if(!itemSrc) return
78                item.src = itemSrc
79                item.removeAttribute("data-src")
80            })
81        }else{
82            if(document.querySelectorAll('[data-category="analytics"]').length <= 0) return
83            const analyticsElements = document.querySelectorAll('[data-category="analytics"]')
84            analyticsElements.forEach(item => {
85                const itemSrc = item.src
86                if(!itemSrc) return
87                item.dataset.src = itemSrc
88                item.removeAttribute("src")
89            })
90        }
91    },
92
93    categories: {
94        necessary: {
95            readOnly: true,
96            enabled: true
97        },
98        analytics: {
99            autoClear: {
100                cookies: [
101                    {
102                        name: /^(_ga|_gid)/
103                    }
104                ]
105            }
106        }
107    },
108
109    language: {
110        default: 'de',
111
112        translations: {
113            en: {
114                consentModal: {
115                    title: 'Hello traveller, it\'s cookie time!',
116                    description: 'Our website uses tracking cookies to understand how you interact with it. The tracking will be enabled only if you accept explicitly. <a href="#privacy-policy" data-cc="show-preferencesModal" class="cc__link">Manage preferences</a>',
117                    acceptAllBtn: 'Accept all',
118                    acceptNecessaryBtn: 'Reject all',
119                    footer: `
120                        <a href="#link">Privacy Policy</a>
121                        <a href="#link">Impressum</a>
122                    `
123                },
124                preferencesModal: {
125                    title: 'Cookie preferences',
126                    acceptAllBtn: 'Accept all',
127                    acceptNecessaryBtn: 'Reject all',
128                    savePreferencesBtn: 'Save preferences',
129                    closeIconLabel: 'Close',
130                    sections: [
131                        {
132                            title: 'Cookie usage',
133                            description: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. For more details, refer to our <a href="#" class="cc__link">privacy policy</a>.'
134                        }, {
135                            title: 'Strictly necessary cookies',
136                            description: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
137                            linkedCategory: 'necessary'
138                        }, {
139                            title: 'Performance and analytics cookies',
140                            description: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
141                            linkedCategory: 'analytics'
142                        }, {
143                            title: 'More information',
144                            description: 'For any queries in relation to our policy on cookies and your choices, please <a class="cc__link" href="#yourdomain.com">contact me</a>.',
145                        }
146                    ]
147                }
148            },
149            de: {
150                consentModal: {
151                    title: 'Cookies Einstellungen!',
152                    description: 'Unsere Website verwendet Cookies, um Inhalte, Animationen und externe Inhalte anzeigen zu können. <a href="#privacy-policy" data-cc="show-preferencesModal" class="cc__link">Einstellungen verwalten</a>',
153                    acceptAllBtn: 'Annehmen',
154                    acceptNecessaryBtn: 'Verweigern',
155                    footer: `
156                        <a href="/de/datenschutz">Datenschutz</a>
157                        <a href="/de/impressum">Impressum</a>
158                    `
159                },
160                preferencesModal: {
161                    title: 'Cookie Einstellung',
162                    acceptAllBtn: 'Annehmen',
163                    acceptNecessaryBtn: 'Verweigern',
164                    savePreferencesBtn: 'Einstellungen Speichern',
165                    closeIconLabel: 'Schließen',
166                    sections: [
167                        {
168                            title: 'Cookie usage',
169                            description: 'Unsere Website verwendet Cookies, um Inhalte, Animationen und externe Inhalte anzeigen zu können. <a href="#privacy-policy" data-cc="show-preferencesModal" class="cc__link">Einstellungen verwalten</a>'
170                        }, {
171                            title: 'Notwendige Cookies',
172                            description: 'Notwendige Cookies (auch als essenzielle Cookies bezeichnet) sind kleine Datenelemente, die auf deinem Gerät gespeichert werden und für die grundlegenden Funktionen einer Website unerlässlich sind. Sie ermöglichen, dass die Website korrekt funktioniert und gewährleisten deren Sicherheit und Benutzerfreundlichkeit.',
173                            linkedCategory: 'necessary'
174                        }, {
175                            title: 'Externe cookies',
176                            description: 'Externe Cookies für Dienste wie YouTube oder Google Maps sind Drittanbieter-Cookies, die von externen Diensten gesetzt werden, wenn deren Inhalte (z. B. Videos oder Karten) in eine Website eingebettet werden. Diese Cookies verfolgen oft das Verhalten der Benutzer über verschiedene Websites hinweg und sammeln Daten für verschiedene Zwecke, wie zum Beispiel die Personalisierung, Analyse und Werbung.',
177                            linkedCategory: 'analytics'
178                        }
179                    ]
180                }
181            }
182        }
183    }
184});
185

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.