PageSourceSearch

https://www.kaufmann.dk/theme/a559456b45a3af2891380e867bedf52f/js/profitmetrics/profitmetrics.js?1790057350

js kaufmann.dk collected 2026-09-24 09:57:21 UTC 29,030 bytes, 459 lines download raw bytes

1/******/ (() => { // webpackBootstrap
2var __webpack_exports__ = {};
3function _pm_geturlparm(parmname) {
4    var regex = new RegExp("[\\?&]" + parmname + "=([^&#]*)");
5    var result = regex.exec(location.search);
6    return result === null ? "" : decodeURIComponent(result[1].replace(/\+/g, " "));
7}
8function _pm_getGclid() {
9    let gclid = _pm_geturlparm("gclid");
10    if (gclid !== "") {
11        return gclid;
12    }
13    let gclidfromGclAw = _pm_getcookie("_gcl_aw");
14    if (gclidfromGclAw != null) {
15        let gclAwSplitAll = gclidfromGclAw.split(".");
16        if (gclAwSplitAll.length >= 3) {
17            return gclidfromGclAw.substring(gclAwSplitAll[0].length + gclAwSplitAll[1].length + 1 + 1); // each +1 corresponds to '.'s
18        }
19    }
20    let gclidfromFPGCLAW = _pm_getcookie("FPGCLAW");
21    if (gclidfromFPGCLAW != null) {
22        const fpgSplitAll = gclidfromFPGCLAW.split(".");
23        if (fpgSplitAll.length >= 3) {
24            return gclidfromFPGCLAW.substring(fpgSplitAll[0].length + fpgSplitAll[1].length + 1 + 1); // each +1 corresponds to '.'s
25        }
26    }
27}
28function _pm_getcookie(cookiename) {
29    cookiename += "=";
30    if (document.cookie.indexOf(cookiename) !== -1) {
31        var idxofSource = document.cookie.indexOf(cookiename) + cookiename.length;
32        var idxofEnd = document.cookie.indexOf(";", idxofSource);
33        var cookval = "";
34        if (idxofEnd === -1) {
35            cookval = document.cookie.substr(idxofSource);
36        } else {
37            cookval = document.cookie.substr(idxofSource, idxofEnd - idxofSource);
38        }
39        if (cookval.length !== 0) {
40            return cookval;
41        } else {
42            return null;
43        }
44    }
45}
46function pmGetGa4SessionId() {
47    // example: _ga_333DA3AABC=GS1.1.1695210760.1.1.1695210809.11.0.0
48    // above example was modified as it was taken from a customer, but format remains intact
49    const gaCookies = document.cookie.split(";").map((cookie)=>cookie.trim()).filter((cookie)=>cookie.indexOf("_ga_") === 0);
50    const result = gaCookies.map((cookieString)=>{
51        const eqIndex = cookieString.indexOf("=");
52        if (eqIndex === -1) return null;
53        const namePart = cookieString.substring(0, eqIndex);
54        const valuePart = cookieString.substring(eqIndex + 1);
55        if (!namePart.startsWith("_ga_") || namePart.length <= 4) return null;
56        const measurementId = namePart.substring(4);
57        let sessionId = null;
58        if (valuePart.startsWith("GS2.")) {
59            const parts = valuePart.split(".");
60            if (parts.length >= 3) {
61                const dataSegments = parts[2].split("$");
62                const sessionSegment = dataSegments.find((segment)=>segment.startsWith("s"));
63                if (sessionSegment && sessionSegment.length > 1) {
64                    sessionId = sessionSegment.substring(1);
65                }
66            }
67        } else if (valuePart.startsWith("GS1.")) {
68            const parts = valuePart.split(".");
69            if (parts.length >= 3) {
70                sessionId = parts[2];
71            }
72        }
73        return sessionId ? "".concat(measurementId, ":").concat(sessionId) : null;
74    }).filter(Boolean);
75    const retImploded = result.join(",");
76    return retImploded && retImploded.length > 0 ? retImploded : null;
77}
78function pmGetGa4SessionCount() {
79    const gaCookies = document.cookie.split(";").map((cookie)=>cookie.trim()).filter((cookie)=>cookie.indexOf("_ga_") === 0);
80    const result = gaCookies.map((cookieString)=>{
81        const eqIndex = cookieString.indexOf("=");
82        if (eqIndex === -1) return null;
83        const namePart = cookieString.substring(0, eqIndex);
84        const valuePart = cookieString.substring(eqIndex + 1);
85        if (!namePart.startsWith("_ga_") || namePart.length <= 4) return null;
86        const measurementId = namePart.substring(4);
87        let sessionCount = null;
88        if (valuePart.startsWith("GS2.")) {
89            const parts = valuePart.split(".");
90            if (parts.length >= 3) {
91                const dataSegments = parts[2].split("$");
92                const countSegment = dataSegments.find((segment)=>segment.startsWith("o"));
93                if (countSegment && countSegment.length > 1) {
94                    sessionCount = countSegment.substring(1);
95                }
96            }
97        } else if (valuePart.startsWith("GS1.")) {
98            const parts = valuePart.split(".");
99            if (parts.length >= 4) {
100                sessionCount = parts[3];
101            }
102        }
103        return sessionCount ? "".concat(measurementId, ":").concat(sessionCount) : null;
104    }
104).filter(Boolean);
105    const retImploded = result.join(",");
106    return retImploded && retImploded.length > 0 ? retImploded : null;
107}
108function _pm_getStoredTPTrack() {
109    var ret = _pm_getcookie("pmTPTrack");
110    if (null != ret && ret.length > 0) {
111        try {
112            ret = JSON.parse(decodeURIComponent(ret));
113            // Add this check to handle the case where ret is a number (like 1) or boolean
114            if (typeof ret !== "object" || ret === null) {
115                ret = {
116                    gclid: null,
117                    gacid: null,
118                    gacid_source: null,
119                    fbp: null,
120                    fbc: null,
121                    gbraid: null,
122                    wbraid: null,
123                    sccid: null,
124                    ttclid: null,
125                    msclkid: null,
126                    twclid: null,
127                    ga4SessionId: null,
128                    ga4SessionCount: null,
129                    timestamp: (new Date / 1E3 | 0) - 100
130                };
131            }
132        } catch (e) {
133            // Handle parsing errors
134            ret = {
135                gclid: null,
136                gacid: null,
137                gacid_source: null,
138                fbp: null,
139                fbc: null,
140                gbraid: null,
141                wbraid: null,
142                sccid: null,
143                ttclid: null,
144                msclkid: null,
145                twclid: null,
146                ga4SessionId: null,
147                ga4SessionCount: null,
148                timestamp: (new Date / 1E3 | 0) - 100
149            };
150        }
151    } else {
152        ret = {
153            gclid: null,
154            gacid: null,
155            gacid_source: null,
156            fbp: null,
157            fbc: null,
158            gbraid: null,
159            wbraid: null,
160            sccid: null,
161            ttclid: null,
162            msclkid: null,
163            twclid: null,
164            ga4SessionId: null,
165            ga4SessionCount: null,
166            timestamp: (new Date / 1E3 | 0) - 100
167        };
168    }
169    return ret;
170}
171function _pm_storeTPTrack(tptrack) {
172    // Ensure tptrack is always an object
173    if (typeof tptrack !== "object" || tptrack === null) {
174        tptrack = {
175            gclid: null,
176            gacid: null,
177            gacid_source: null,
178            fbp: null,
179            fbc: null,
180            gbraid: null,
181            wbraid: null,
182            sccid: null,
183            ttclid: null,
184            msclkid: null,
185            twclid: null,
186            ga4SessionId: null,
187            ga4SessionCount: null,
188            timestamp: (new Date / 1E3 | 0) - 100
189        };
190    }
191    var _pm_old_tpTrackCookVal = _pm_getcookie("pmTPTrack");
192    var _pm_tpTrackCookVal = encodeURIComponent(JSON.stringify(tptrack));
193    document.cookie = "pmTPTrack=" + _pm_tpTrackCookVal + "; path=/";
194}
195function _pm_GetGacidFromTracker() {
196    if (typeof ga == "function") {
197        try {
198            ga(function(tracker) {
199                var gacid = tracker.get("clientId");
200                if (null != gacid) {
201                    var _pm_curPMTPTrack = _pm_getStoredTPTrack();
202                    if (_pm_curPMTPTrack.gacid !== gacid) {
203                        _pm_curPMTPTrack.gacid = gacid;
204                        _pm_curPMTPTrack.gacid_source = "gatracker";
205                        _pm_curPMTPTrack.timestamp = new Date / 1E3 | 0;
206                        _pm_storeTPTrack(_pm_curPMTPTrack);
207                    }
208                }
209            });
210        } catch (eee) {}
211    } else {
212        setTimeout(_pm_GetGacidFromTracker, 100);
213    }
214}
215function load_pmTPTrack() {
216    // Check for invalid cookie before proceeding
217    var rawCookie = _pm_getcookie("pmTPTrack");
218    if (rawCookie === "1" || rawCookie === "true") {
219        document.cookie = "pmTPTrack=; path=/; expires=Thu, 01 Jan 1970 00:00:00 GMT";
220    }
221    // Get properly structured tracking object
222    var _pm_curPMTPTrack = _pm_getStoredTPTrack();
223    var _pm_newFBC = _pm_getcookie("_fbc");
224    if (null != _pm_newFBC && _pm_curPMTPTrack.fbc !== _pm_newFBC) {
225        _pm_curPMTPTrack.fbc = _pm_newFBC;
226        _pm_curPMTPTrack.timestamp = new Date / 1E3 | 0;
227    }
228    var _pm_newFBP = _pm_getcookie("_fbp");
229    if (null != _pm_newFBP && _pm_curPMTPTrack.fbp !== _pm_newFBP) {
230        _pm_curPMTPTrack.fbp = _pm_newFBP;
231        _pm_curPMTPTrack.timestamp = new Date / 1E3 | 0;
232    }
233    var _pm_newGacid = _pm_getcookie("_ga");
234    if (null != _pm_newGacid && _pm_curPMTPTrack.gacid_source !== "gatracker" && _pm_curPMTPTrack.gacid !== _pm_newGacid) {
235        _pm_curPMTPTrack.gacid = _pm_newGacid;
236        _pm_curPMTPTrack.gacid_source = "gacookie";
237        _pm_curPMTPTrack.timestamp = new Date / 1E3 | 0;
238    }
239    var _pm_newGclid = _pm_getGclid();
240    if (_pm_newGclid !== "") {
241        _pm_curPMTPTrack.gclid = _pm_newGclid;
242        _pm_curPMTPTrack.timestamp = new Date / 1E3 | 0;
243    }
244    var _pm_gbraid = _pm_geturlparm("gbraid");
245    if (_pm_gbraid !== "") {
246        _pm_curPMTPTrack.gbraid = _pm_gbraid;
247        _pm_curPMTPTrack.timestamp = new Date / 1E3 | 0;
248    }
249    var _pm_wbraid = _pm_geturlparm("wbraid");
250    if (_pm_wbraid !== "") {
251        _pm_curPMTPTrack.wbraid = _pm_wbraid;
252        _pm_curPMTPTrack.timestamp = new Date / 1E3 | 0;
253    }
254    var _pm_sccid = _pm_geturlparm("sccid");
255    if (_pm_sccid !== "") {
256        _pm_curPMTPTrack.sccid = _pm_sccid;
257        _pm_curPMTPTrack.timestamp = new Date / 1E3 | 0;
258    }
259    var _pm_ttclid = _pm_geturlparm("ttclid");
260    if (_pm_ttclid !== "") {
261        _pm_curPMTPTrack.ttclid = _pm_ttclid;
262        _pm_curPMTPTrack.timestamp = new Date / 1E3 | 0;
263    }
264    var _pm_msclkid = _pm_geturlparm("msclkid");
265    if (_pm_msclkid !== "") {
266        _pm_curPMTPTrack.msclkid = _pm_msclkid;
267        _pm_curPMTPTrack.timestamp = new Date / 1E3 | 0;
268    }
269    var _pm_twclid = _pm_geturlparm("twclid");
270    if (_pm_twclid !== "") {
271        _pm_curPMTPTrack.twclid = _pm_twclid;
272        _pm_curPMTPTrack.timestamp = new Date / 1E3 | 0;
273    }
274    var _pm_ga4SessionId = pmGetGa4SessionId();
275    if (_pm_ga4SessionId != null && _pm_ga4SessionId !== "") {
276        _pm_curPMTPTrack.ga4SessionId = _pm_ga4SessionId;
277        _pm_curPMTPTrack.timestamp = new Date / 1E3 | 0;
278    }
279    var _pm_ga4SessionCount = pmGetGa4SessionCount();
280    if (_pm_ga4SessionCount != null && _pm_ga4SessionCount !== "") {
281        _pm_curPMTPTrack.ga4SessionCount = _pm_ga4SessionCount;
282        _pm_curPMTPTrack.timestamp = new Date / 1E3 | 0;
283    }
284    // Temp solution
285    _pm_curPMTPTrack.cc_marketing = window.cc_marketing;
286    _pm_curPMTPTrack.cc_statistics = window.cc_statistics;
287    _pm_storeTPTrack(_pm_curPMTPTrack);
288    _pm_GetGacidFromTracker();
289    // Set previousDecision
290    localStorage.setItem("pfm-consent-granted", true);
291}
292// Set default consent state
293window.cc_statistics = false;
294window.cc_marketing = false;
295window.addEventListener("load", function(_event) {
296    var _Cookiebot_consent, _Cookiebot, _Cookiebot_consent1, _Cookiebot1, _CookieInformation, _CookieInformation1, _OnetrustActiveGroups, _OnetrustActiveGroups1, _getCkyConsent_categories, _getCkyConsent, _getCkyConsent_categories1, _getCkyConsent1, _CookieFirst_consent, _CookieFirst, _CookieFirst_consent1, _CookieFirst1, _CookieScript_instance_currentState_categories, _CookieScript_instance_currentState, _CookieScript_instance, _CookieScript, _CookieScript_instance_currentState_categories1, _CookieScript_instance_currentState1, _CookieScript_instance1, _CookieScript1, _window_google_tag_data, _window_google_tag_data_ics_entries_ad_storage, _window_google_tag_data_ics_entries, _window_google_tag_data_ics, _window_google_tag_data1, _window_google_tag_data_ics_entries_analytics_storage, _window_google_tag_data_ics_entries1, _window_google_tag_data_ics1, _window_google_tag_data2;
297    let previousDecision = localStorage.getItem("pfm-consent-granted");
298    if (!window.blockScriptBeforeConsent || previousDecision) {
299        // Set default consent to true
300        window.cc_statistics = true;
301        window.cc_marketing = true;
302        load_pmTPTrack();
303    }
304    //Shopware
305    document.addEventListener("CookieConfiguration_Update", (event)=>{
306        const { pmTPTrack } = event.detail;
307        // Fix: First ensure we have a proper tracking object cookie
308        if (pmTPTrack === true) {
309            window.cc_statistics = true;
310            window.cc_marketing = true;
311            // Check if current cookie is invalid
312            if (_pm_getcookie("pmTPTrack") === "1" || _pm_getcookie("pmTPTrack") === "true") {
313                document.cookie = "pmTPTrack=; path=/; expires=Thu, 01 Jan 1970 00:00:00 GMT";
314            }
315            // Ensure we have a proper object in the cookie before running load_pmTPTrack
316            const trackingObj = _pm_getStoredTPTrack();
317            _pm_storeTPTrack(trackingObj);
318            // Then run load_pmTPTrack which will now have a proper object to work with
319            load_pmTPTrack();
320        }
321    });
322    // CookieBot
323    // Get consent
324    if (typeof Cookiebot !== "undefined" && ((_Cookiebot = Cookiebot) === null || _Cookiebot === void 0 ? void 0 : (_Cookiebot_consent = _Cookiebot.consent) === null || _Cookiebot_consent === void 0 ? void 0 : _Cookiebot_consent.statistics) && ((_Cookiebot1 = Cookiebot) === null || _Cookiebot1 === void 0 ? void 0 : (_Cookiebot_consent1 = _Cookiebot1.consent) === null || _Cookiebot_consent1 === void 0 ? void 0 : _Cookiebot_consent1.marketing)) {
325        cc_statistics = Cookiebot.consent.statistics;
326        cc_marketing = Cookiebot.consent.marketing;
327        load_pmTPTrack();
328    } else {
329        // Add event listener
330        window.addEventListener("CookiebotOnConsentReady", function() {
331            var _Cookiebot_consent, _Cookiebot, _Cookiebot_consent1, _Cookiebot1;
332            if (((_Cookiebot = Cookiebot) === null || _Cookiebot === void 0 ? void 0 : (_Cookiebot_consent = _Cookiebot.consent) === null || _Cookiebot_consent === void 0 ? void 0 : _Cookiebot_consent.statistics) && ((_Cookiebot1 = Cookiebot) === null || _Cookiebot1 === void 0 ? void 0 : (_Cookiebot_consent1 = _Cookiebot1.consent) === null || _Cookiebot_consent1 === void 0 ? void 0 : _Cookiebot_consent1.marketing)) {
333                cc_statistics = Cookiebot.consent.statistics;
334                cc_marketing = Cookiebot.consent.marketing;
335                load_pmTPTrack();
336            }
337        });
338    }
339    // CookieInformation
340    // Get consent
341    if (typeof CookieInformation !== "undefined" && ((_CookieInformation = CookieInformation) === null || _CookieInformation === void 0 ? void 0 : _CookieInformation.getConsentGivenFor("cookie_cat_statistic")) && ((_CookieInformation1 = CookieInformation) === null || _CookieInformation1 === void 0 ? void 0 : _CookieInformation1.getConsentGivenFor("cookie_cat_marketing"))) {
342        cc_statistics = CookieInformation.getConsentGivenFor("cookie_cat_statistic");
343        cc_marketing = CookieInformation.getConsentGivenFor("cookie_cat_marketing");
344        load_pmTPTrack();
345    } else {
346        // Add event listener
347        window.addEventListener("CookieInformationConsentGiven", function() {
348            var _CookieInformation, _CookieInformation1;
349            if (((_CookieInformation = CookieInformation) === null || _CookieInformation === void 0 ? void 0 : _CookieInformation.getConsentGivenFor("cookie_cat_statistic")) && ((_CookieInformation1 = CookieInformation) === null || _CookieInformation1 === void 0 ? void 0 : _CookieInformation1.getConsentGivenFor("cookie_cat_marketing"))) {
350                cc_statistics = CookieInformation.getConsentGivenFor("cookie_cat_statistic");
351                cc_marketing = CookieInformation.getConsentGivenFor("cookie_cat_marketing");
352                load_pmTPTrack();
353            }
354        });
355    }
356    // OneTrust
357    // Get consent
358    if (typeof OneTrust !== "undefined" && ((_OnetrustActiveGroups = OnetrustActiveGroups) === null || _OnetrustActiveGroups === void 0 ? void 0 : _OnetrustActiveGroups.includes("2")) && ((_OnetrustActiveGroups1 = OnetrustActiveGroups) === null || _OnetrustActiveGroups1 === void 0 ? void 0 : _OnetrustActiveGroups1.includes("4"))) {
359        cc_statistics = OnetrustActiveGroups.includes("2");
360        cc_marketing = OnetrustActiveGroups.includes("4");
361        load_pmTPTrack();
362    } else {
363        // Add event listener
364        window.addEventListener("OneTrustGroupsUpdated", (event)=>{
365            var _event_detail, _event_detail1;
366            if ((event === null || event === void 0 ? void 0 : (_event_detail = event.detail) === null || _event_detail === void 0 ? void 0 : _event_detail.some((group)=>group.includes("4"))) && (event === null || event === void 0 ? void 0 : (_event_detail1 = event.detail) === null || _event_detail1 === void 0 ? void 0 : _event_detail1.some((group)=>group.includes("2")))) {
367                cc_statistics = event.detail.some((group)=>group.includes("4"));
368                cc_marketing = event.detail.some((group)=>group.includes("2"));
369                load_pmTPTrack();
370            }
371        });
372    }
373    // CookieYes
374    // Get consent
375    if (typeof getCkyConsent !== "undefined" && ((_getCkyConsent = getCkyConsent()) === null || _getCkyConsent === void 0 ? void 0 : (_getCkyConsent_categories = _getCkyConsent.categories) === null || _getCkyConsent_categories === void 0 ? void 0 : _getCkyConsent_categories.analytics) && ((_getCkyConsent1 = getCkyConsent()) === null || _getCkyConsent1 === void 0 ? void 0 : (_getCkyConsent_categories1 = _getCkyConsent1.categories) === null || _getCkyConsent_categories1 === void 0 ? void 0 : _getCkyConsent_categories1.advertisement)) {
376        cc_statistics = getCkyConsent().categories.analytics;
377        cc_marketing = getCkyConsent().categories.advertisement;
378        load_pmTPTrack();
379    } else {
380        // Add event listener
381        document.addEventListener("cookieyes_consent_update", function(eventData) {
382            var _eventData_detail_accepted, _eventData_detail, _eventData_detail_accepted1, _eventData_detail1;
383            if ((eventData === null || eventData === void 0 ? void 0 : (_eventData_detail = eventData.detail) === null || _eventData_detail === void 0 ? void 0 : (_eventData_detail_accepted = _eventData_detail.accepted) === null || _eventData_detail_accepted === void 0 ? void 0 : _eventData_detail_accepted.includes("analytics")) && (eventData === null || eventData === void 0 ? void 0 : (_eventData_detail1 = eventData.detail) === null || _eventData_detail1 === void 0 ? void 0 : (_eventData_detail_accepted1 = _eventData_detail1.accepted) === null || _eventData_detail_accepted1 === void 0 ? void 0 : _eventData_detail_accepted1.includes("advertisement"))) {
384                cc_statistics = eventData.detail.accepted.includes("analytics");
385                cc_marketing = eventData.detail.accepted.includes("advertisement");
386                load_pmTPTrack();
387            }
388        });
389    }
390    // CookieFirst
391    // Get consent
392    if (typeof CookieFirst !== "undefined" && ((_CookieFirst = CookieFirst) === null || _CookieFirst === void 0 ? void 0 : (_CookieFirst_consent = _CookieFirst.consent) === null || _CookieFirst_consent === void 0 ? void 0 : _CookieFirst_consent.performance) && ((_CookieFirst1 = CookieFirst) === null || _CookieFirst1 === void 0 ? void 0 : (_CookieFirst_consent1 = _CookieFirst1.consent) === null || _CookieFirst_consent1 === void 0 ? void 0 : _CookieFirst_consent1.advertising)) {
393        cc_statistics = CookieFirst.consent.performance;
394        cc_marketing = CookieFirst.consent.advertising;
395        load_pmTPTrack();
396    } else {
397        // Add event listener
398        window.addEventListener("cf_consent", function(event) {
399            var _event_detail, _event_detail1;
400            if ((event === null || event === void 0 ? void 0 : (_event_detail = event.detail) === null || _event_detail === void 0 ? void 0 : _event_detail.performance) && (event === null || event === void 0 ? void 0 : (_event_detail1 = event.detail) === null || _event_detail1 === void 0 ? void 0 : _event_detail1.advertising)) {
401                cc_statistics = event.detail.performance;
402                cc_marketing = event.detail.advertising;
403                load_pmTPTrack();
404            }
405        });
406        // Add event listener
407        window.addEventListener("cf_consent_loaded", function(event) {
408            var _event_detail, _event_detail1;
409            if ((event === null || event === void 0 ? void 0 : (_event_detail = event.detail) === null || _event_detail === void 0 ? void 0 : _event_detail.performance) && (event === null || event === void 0 ? void 0 : (_event_detail1 = event.detail) === null || _event_detail1 === void 0 ? void 0 : _event_detail1.advertising)) {
410                cc_statistics = event.detail.performance;
411                cc_marketing = event.detail.advertising;
412                load_pmTPTrack();
413            }
414        });
415    }
416    // CookieScript
417    // Get consent
418    if (typeof CookieScript !== "undefined" && ((_CookieScript = CookieScript) === null || _CookieScript === void 0 ? void 0 : (_CookieScript_instance = _CookieScript.instance) === null || _CookieScript_instance === void 0 ? void 0 : (_CookieScript_instance_currentState = _CookieScript_instance.currentState()) === null || _CookieScript_instance_currentState === void 0 ? void 0 : (_CookieScript_instance_currentState_categories = _CookieScript_instance_currentState.categories) === null || _CookieScript_instance_currentState_categories === void 0 ? void 0 : _CookieScript_instance_currentState_categories.includes("performance")) && ((_CookieScript1 = CookieScript) === null || _CookieScript1 === void 0 ? void 0 : (_CookieScript_instance1 = _CookieScript1.instance) === null || _CookieScript_instance1 === void 0 ? void 0 : (_CookieScript_instance_currentState1 = _CookieScript_instance1.currentState()) === null || _CookieScript_instance_currentState1 === void 0 ? void 0 : (_CookieScript_instance_currentState_categories1 = _CookieScript_instance_currentState1.categories) === null || _CookieScript_instance_currentState_categories1 === void 0 ? void 0 : _CookieScript_instance_currentState_categories1.includes("targeting"))) {
419        cc_statistics = CookieScript.instance.currentState().categories.includes("performance");
420        cc_marketing = CookieScript.instance.currentState().categories.includes("targeting");
421        load_pmTPTrack();
422    } else {
423        // Add event listener
424        window.addEventListener("CookieScriptCategory-strict", function() {
425            var _CookieScript_instance_currentState_categories, _CookieScript_instance_currentState, _CookieScript_instance, _
425CookieScript, _CookieScript_instance_currentState_categories1, _CookieScript_instance_currentState1, _CookieScript_instance1, _CookieScript1;
426            if (((_CookieScript = CookieScript) === null || _CookieScript === void 0 ? void 0 : (_CookieScript_instance = _CookieScript.instance) === null || _CookieScript_instance === void 0 ? void 0 : (_CookieScript_instance_currentState = _CookieScript_instance.currentState()) === null || _CookieScript_instance_currentState === void 0 ? void 0 : (_CookieScript_instance_currentState_categories = _CookieScript_instance_currentState.categories) === null || _CookieScript_instance_currentState_categories === void 0 ? void 0 : _CookieScript_instance_currentState_categories.includes("performance")) && ((_CookieScript1 = CookieScript) === null || _CookieScript1 === void 0 ? void 0 : (_CookieScript_instance1 = _CookieScript1.instance) === null || _CookieScript_instance1 === void 0 ? void 0 : (_CookieScript_instance_currentState1 = _CookieScript_instance1.currentState()) === null || _CookieScript_instance_currentState1 === void 0 ? void 0 : (_CookieScript_instance_currentState_categories1 = _CookieScript_instance_currentState1.categories) === null || _CookieScript_instance_currentState_categories1 === void 0 ? void 0 : _CookieScript_instance_currentState_categories1.includes("targeting"))) {
427                cc_statistics = CookieScript.instance.currentState().categories.includes("performance");
428                cc_marketing = CookieScript.instance.currentState().categories.includes("targeting");
429                load_pmTPTrack();
430            }
431        });
432    }
433    // Google Consent Mode
434    // Get consent
435    if (typeof window.google_tag_data !== "undefined" && ((_window_google_tag_data = window.google_tag_data) === null || _window_google_tag_data === void 0 ? void 0 : _window_google_tag_data.ics) && ((_window_google_tag_data1 = window.google_tag_data) === null || _window_google_tag_data1 === void 0 ? void 0 : (_window_google_tag_data_ics = _window_google_tag_data1.ics) === null || _window_google_tag_data_ics === void 0 ? void 0 : (_window_google_tag_data_ics_entries = _window_google_tag_data_ics.entries) === null || _window_google_tag_data_ics_entries === void 0 ? void 0 : (_window_google_tag_data_ics_entries_ad_storage = _window_google_tag_data_ics_entries.ad_storage) === null || _window_google_tag_data_ics_entries_ad_storage === void 0 ? void 0 : _window_google_tag_data_ics_entries_ad_storage.update) && ((_window_google_tag_data2 = window.google_tag_data) === null || _window_google_tag_data2 === void 0 ? void 0 : (_window_google_tag_data_ics1 = _window_google_tag_data2.ics) === null || _window_google_tag_data_ics1 === void 0 ? void 0 : (_window_google_tag_data_ics_entries1 = _window_google_tag_data_ics1.entries) === null || _window_google_tag_data_ics_entries1 === void 0 ? void 0 : (_window_google_tag_data_ics_entries_analytics_storage = _window_google_tag_data_ics_entries1.analytics_storage) === null || _window_google_tag_data_ics_entries_analytics_storage === void 0 ? void 0 : _window_google_tag_data_ics_entries_analytics_storage.update)) {
436        cc_marketing = window.google_tag_data.ics.entries.ad_storage.update;
437        cc_statistics = window.google_tag_data.ics.entries.analytics_storage.update;
438        load_pmTPTrack();
439    } else {
440        var // Add event listener
441        _window_google_tag_data_ics2, _window_google_tag_data3;
442        (_window_google_tag_data3 = window.google_tag_data) === null || _window_google_tag_data3 === void 0 ? void 0 : (_window_google_tag_data_ics2 = _window_google_tag_data3.ics) === null || _window_google_tag_data_ics2 === void 0 ? void 0 : _window_google_tag_data_ics2.addListener([
443            "ad_storage",
444            "analytics_storage"
445        ], function(event) {
446            var _window_google_tag_data_ics_entries_ad_storage, _window_google_tag_data_ics_entries, _window_google_tag_data_ics, _window_google_tag_data, _window_google_tag_data_ics_entries_analytics_storage, _window_google_tag_data_ics_entries1, _window_google_tag_data_ics1, _window_google_tag_data1;
447            if (((_window_google_tag_data = window.google_tag_data) === null || _window_google_tag_data === void 0 ? void 0 : (_window_google_tag_data_ics = _window_google_tag_data.ics) === null || _window_google_tag_data_ics === void 0 ? void 0 : (_window_google_tag_data_ics_entries = _window_google_tag_data_ics.entries) === null || _window_google_tag_data_ics_entries === void 0 ? void 0 : (_window_google_tag_data_ics_entries_ad_storage = _window_google_tag_data_ics_entries.ad_storage) === null || _window_google_tag_data_ics_entries_ad_storage === void 0 ? void 0 : _window_google_tag_data_ics_entries_ad_storage.update) && ((_window_google_tag_data1 = window.google_tag_data) === null || _window_google_tag_data1 === void 0 ? void 0 : (_window_google_tag_data_ics1 = _window_google_tag_data1.ics) === null || _window_google_tag_data_ics1 === void 0 ? void 0 : (_window_google_tag_data_ics_entries1 = _window_google_tag_data_ics1.entries) === null || _window_google_tag_data_ics_entries1 === void 0 ? void 0 : (_window_google_tag_data_ics_entries_anal
447ytics_storage = _window_google_tag_data_ics_entries1.analytics_storage) === null || _window_google_tag_data_ics_entries_analytics_storage === void 0 ? void 0 : _window_google_tag_data_ics_entries_analytics_storage.update)) {
448                cc_marketing = window.google_tag_data.ics.entries.ad_storage.update;
449                cc_statistics = window.google_tag_data.ics.entries.analytics_storage.update;
450                load_pmTPTrack();
451            }
452        });
453    }
454});
455// Necessary for the webpack hot module reloading server
456if (false) {}
457
458/******/ })()
459;

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.