1/*! Copyright 2025 SweetCode. All rights reserved. */ 2"use strict";(self.webpackChunkPixel_Manager_for_WooCommerce=self.webpackChunkPixel_Manager_for_WooCommerce||[]).push([[625],{2490(t,n,s){s.r(n),s.d(n,{canPixelBeFired:()=>q,categories:()=>B,cmpConsentClickObserver:()=>H,explicitConsentModeActive:()=>J,load:()=>z,logSuppressedPixel:()=>G,settings:()=>R});const o={getConsent:()=>{let e=pmw.getCookie("cookieconsent_status");if(e||(e=pmw.getCookieThatContainsRegex(/^cookieconsent_status/)),!e)return null;if(pmw.console.log("Beautiful Cookie Consent CMP consent detected"),"allow"===e||"dismiss"===e)return{statistics:!0,marketing:!0,preferences:!0,necessary:!0};if("deny"===e)return{statistics:!1,marketing:!1,preferences:!1,necessary:!0};if("savesettings"===e||"detailed"===e||"allowall"===e)return"allowall"===e?{statistics:!0,marketing:!0,preferences:!0,necessary:!0}:{statistics:c(["statistics","analytics"]),marketing:c(["marketing"]),preferences:c(["preferences","functional","tech"]),necessary:!0};const t=c(["marketing"]),n=c(["statistics","analytics"]),s=c(["preferences","functional","tech"]);return null!==t||null!==n||null!==s?{statistics:n??!0,marketing:t??!0,preferences:s??!0,necessary:!0}:null},loadEventListeners:()=>{void 0!==window.dataLayer&&Array.isArray(window.dataLayer)?i():window.addEventListener("DOMContentLoaded",()=>{void 0!==window.dataLayer&&Array.isArray(window.dataLayer)&&i()})}},c=e=>{for(const t of e){const e=pmw.getCookie(`cookieconsent_status_${t}`);if("allow"===e)return!0;if("deny"===e)return!1}return null},i=()=>{const e=window.dataLayer.push.bind(window.dataLayer);window.dataLayer.push=function(...t){const n=e(...t);return t.forEach(e=>{e&&"beautiful_cookie_consent_updated"===e.event&&r(e)}),n}},r=e=>{pmw.console.log("Beautiful Cookie Consent consent update detected via dataLayer");const t=e.cookieconsent_status;if("allow"!==t&&"dismiss"!==t)if("deny"!==t)if("allowall"!==t){if("savesettings"===t||"detailed"===t){const t={statistics:a(e,["statistics","analytics"]),marketing:a(e,["marketing"]),preferences:a(e,["preferences","functional","tech"]),necessary:!0};pmw.consent.api.updateSelectively({...t,source:"cmp"})}}else pmw.consent.api.updateSelectively({statistics:!0,marketing:!0,preferences:!0,necessary:!0,source:"cmp"});else pmw.consent.api.updateSelectively({statistics:!1,marketing:!1,preferences:!1,necessary:!0,source:"cmp"});else pmw.consent.api.updateSelectively({statistics:!0,marketing:!0,preferences:!0,necessary:!0,source:"cmp"})},a=(e,t)=>{for(const n of t){const t=`cookieconsent_status_${n}`;if("allow"===e[t])return!0;if("deny"===e[t])return!1}return!1},l=e=>"allow"===e||""===e&&(()=>{const e=window.complianz?.consenttype;return e?"optout"===e||"other"===e:!pmw.consent.explicitConsentModeActive()})(),p={getConsent:()=>{const e={statistics:pmw.getCookie("cmplz_statistics")||pmw.getCookie("cmplz_rt_statistics"),marketing:pmw.getCookie("cmplz_marketing")||pmw.getCookie("cmplz_rt_marketing"),preferences:pmw.getCookie("cmplz_preferences")||pmw.getCookie("cmplz_rt_preferences"),necessary:pmw.getCookie("cmplz_functional")||pmw.getCookie("cmplz_rt_functional")},t=pmw.getCookie("cmplz_consent_status")||pmw.getCookie("cmplz_banner-status")||pmw.getCookie("cmplz_rt_banner-status");return Object.values(e).some(e=>""!==e)?(pmw.console.log("Complianz CMP consent detected"),{statistics:l(e.statistics),marketing:l(e.marketing),preferences:l(e.preferences),necessary:"deny"!==e.necessary}):(t&&pmw.console.log("Complianz cookie detected, but the visitor hasn't answered the banner yet. Ignoring it."),null)},loadEventListeners:()=>{document.addEventListener("cmplz_fire_categories",d,!0)}},d=e=>{let t={statistics:e.detail.categories.includes("statistics"),marketing:e.detail.categories.includes("marketing"),preferences:e.detail.categories.includes("preferences"),necessary:e.detail.categories.includes("functional"),source:"cmp"};pmw.consent.api.updateSelectively(t)},m={getConsent:()=>{let e=pmw.getCookie("CookieConsent");return e?(pmw.console.log("Cookiebot CMP consent detected"),g(e)||(e=decodeURI(e),e=e.replace(/'/g,'"'),e=decodeURIComponent(e),e=e.replace(/(\w+):/g,'"$1":')),e=JSON.parse(e),{statistics:e.statistics??!0,marketing:e.marketing??!0,preferences:e.preferences??!0,necessary:e.necessary??!0}):null},loadEventListeners:()=>{window.addEventListener("CookiebotOnAccept",e=>{let t={statistics:e.currentTarget.CookieConsent.consent.statistics??!0,marketing:e.currentTarget.CookieConsent.consent.marketing??!0,preferences:e.currentTarget.CookieConsent.consent.preferences??!0,necessary:e.currentTarget.CookieConsent.consent.necessary??!0};pmw.consent.api.updateSelectively({...t,source:"cmp"})},!0)}},g=e=>{try{JSON.parse(e)}catch(e){return!1}return!0},u={getConsent:()=>{let e=pmw.getCookie("cookiefirst-consent");return e?(pmw.console.log("Cookiefirst CMP consent detected"),k(e)||(e=decodeURI(e),e=e.replace(/'/g,'"'),e=decodeURIComponent(e),e=e.replace(/(\w+):/g,'"$1":')),e=JSON.parse(e),console.log("cookiefirst consent object",e),{statistics:e.performance??!0,marketing:e.advertising??!0,preferences:e.functional??!0,necessary:e.necessary??!0}):null},loadEventListeners:()=>{window.addEventListener("cf_consent",function(e){let t={statistics:consent.performance??!0,marketing:consent.advertising??!0,preferences:consent.functional??!0,necessary:consent.necessary??!0};pmw.consent.api.updateSelectively({...t,source:"cmp"})},!0)}},k=e=>{try{JSON.parse(e)}catch(e){return!1}return!0},f={getConsent:()=>{let e=pmw.getCookie("cookieyes-consent");if(e)return pmw.console.log("CookieYes CMP consent detected"),e=y(e),{statistics:e.analytics??!0,marketing:e.advertisement??!0,preferences:e.functional??!0,necessary:e.necessary??!0};const t=e=>{for(let t of e){let e=pmw.getCookie(t);if("yes"===e)return!0;
2if("no"===e)return!1}return!0},n={statistics:["cookielawinfo-checkbox-analytics","cookielawinfo-checkbox-analytiques","cookieyes-analytics"],marketing:["cookielawinfo-checkbox-advertisement","cookielawinfo-checkbox-performance","cookielawinfo-checkbox-publicite","cookieyes-advertisement"],preferences:["cookielawinfo-checkbox-functional","cookielawinfo-checkbox-preferences","cookieyes-functional"],necessary:["cookielawinfo-checkbox-necessary","cookielawinfo-checkbox-necessaire","cookieyes-necessary"]};return(e=>{for(let t in e)for(let n of e[t])if(pmw.getCookie(n))return!0;return!1})(n)?(pmw.console.log("CookieYes CMP consent detected"),{statistics:t(n.statistics),marketing:t(n.marketing),preferences:t(n.preferences),necessary:t(n.necessary)}):null},loadEventListeners:()=>{document.addEventListener("cookieyes_consent_update",e=>{let t={statistics:e.detail.accepted.includes("analytics"),marketing:e.detail.accepted.includes("advertisement"),preferences:e.detail.accepted.includes("functional"),necessary:e.detail.accepted.includes("necessary")};pmw.consent.api.updateSelectively({...t,source:"cmp"})},!0)}},y=e=>{e=e.split(",");let t={};e.forEach(e=>{let[n,s]=e.split(":");t[n]=s}),e=t;for(let t in e)"yes"===e[t]?e[t]=!0:"no"!==e[t]&&""!==e[t]||(e[t]=!1);return e},w={getConsent:()=>{const e=_();return e?(pmw.console.log("FAZ Cookie Manager CMP consent detected"),v(e)):null},loadEventListeners:()=>{document.addEventListener("fazcookie_consent_update",C)}},C=e=>{const t=e&&e.detail?e.detail:null;if(t&&"init"===t.action)return;const n=_();n&&pmw.consent.api.updateSelectively({...v(n),source:"cmp"})},_=()=>{const e=pmw.getCookie("fazcookie-consent");if(!e)return null;let t=e;try{t=decodeURIComponent(e)}catch(e){}const n={};t.split(",").forEach(e=>{const t=e.indexOf(":");if(-1===t)return;const s=e.substring(0,t).trim(),o=e.substring(t+1).trim();s&&(n[s]=o)});const s="undefined"!=typeof window&&window._fazConfig&&parseInt(window._fazConfig._consentRevision,10)||0,o=parseInt(n.rev,10)||0;return s>1&&o<s?null:n},v=e=>{const t=t=>"yes"===e[t];return{statistics:t("analytics")||t("performance"),marketing:t("marketing")||t("advertisement"),preferences:t("functional"),necessary:!0}},h={getConsent:()=>{let e=pmw.getCookie("OptanonConsent");return e?(pmw.console.log("OneTrust CMP consent detected"),e=b(e),{statistics:e[2]??!0,marketing:e[4]??!0,preferences:e[3]??!0,necessary:e[1]??!0}):null},loadEventListeners:()=>{document.addEventListener("consent.onetrust",e=>{let t={statistics:e.detail.includes("2"),marketing:e.detail.includes("4"),preferences:e.detail.includes("3"),necessary:e.detail.includes("1")};pmw.consent.api.updateSelectively({...t,source:"cmp"})},!0)}},b=e=>{let t=(e=decodeURIComponent(e)).split("&").reduce((e,t)=>{let[n,s]=t.split("=");return e[n]=s,e},{});return t.groups=t.groups.split(",").reduce((e,t)=>{let[n,s]=t.split(":");return e[n]="1"===s,e},{}),t.groups},L={getConsent:()=>{if(!E())return null;if(pmw.waitForLibrary("consentApi"),!window.consentApi)return null;pmw.console.log("Real Cookie Banner CMP consent detected");let e={statistics:void 0,marketing:void 0,preferences:!0,necessary:!0};return S.forEach(t=>{t.cookies.forEach(n=>{let s=window.consentApi.consentSync("http",n,"*");if(s?.cookie&&s?.cookieOptIn)switch(t.type){case"statistics":e.statistics=!0;break;case"marketing":e.marketing=!0;break;case"preferences":e.preferences=!0;break;case"necessary":e.necessary=!0}})}),e},loadEventListeners:()=>{document.addEventListener("RCB/OptIn/All",e=>{},!0)}},E=()=>{let e=document.cookie.split(";");for(let t=0;t<e.length;t++){if(e[t].trim().startsWith("real_cookie_banner"))return!0}return!1},S=[{service:"adroll-ads",type:"marketing",cookies:["__adroll_fpc","_ar_v4","_adroll"]},{service:"bing-ads",type:"marketing",cookies:["_uetsid","_uetvid"]},{service:"facebook-ads",type:"marketing",cookies:["_fbp"]},{service:"google-analytics",type:"statistics",cookies:["_ga","_gid","_gat","_gat_gtag_UA_*"]},{service:"google-optimize",type:"statistics",cookies:["_ga","_gid","_gat","_gat_gtag_UA_*"]},{service:"google-ads",type:"marketing",cookies:["_gcl_au","_gcl_aw","_gcl_dc","_gac_*"]},{service:"hotjar",type:"statistics",cookies:["_hj*","_hjid"]},{service:"linkedin-ads",type:"marketing",cookies:["_li_ss","_li_id","_li_mk_*"]},{service:"microsoft-ads",type:"marketing",cookies:["_uetsid","_uetvid"]},{service:"outbrain-ads",type:"marketing",cookies:[]},{service:"pinterest-ads",type:"marketing",cookies:["_pinterest_ct_ua","_pinterest_ct_rt","_pin_unauth","_derived_epik","_pinterest_sess"]},{service:"reddit-ads",type:"marketing",cookies:["_rdt_uuid"]},{service:"snapchat-ads",type:"marketing",cookies:["sc_at","sc_anonymous_id","sc_id","_scid","_scid_r"]},{service:"taboola-ads",type:"marketing",cookies:[]},{service:"tiktok-ads",type:"marketing",cookies:["_ttp","_ttclid","ttwid"]},{service:"twitter-ads",type:"marketing",cookies:["twitter_ads_id","twid","_twcli
2d","muc_ads"]}],P={name:"Termly",getConsent:()=>{let e=localStorage.getItem("termly_gtm_template_default_consents");if(e)return pmw.console.log("Termly CMP consent detected (from localStorage)"),e=JSON.parse(e),{statistics:"denied"!==e.analytics_storage,marketing:"denied"!==e.ad_storage,preferences:"denied"!==e.functionality_storage,necessary:"denied"!==e.security_storage};if(window.Termly&&"function"==typeof window.Termly.getConsentState){const e=window.Termly.getConsentState();if(e)return pmw.console.log("Termly CMP consent detected (from Termly.getConsentState())"),{statistics:!!e.analytics,marketing:!!e.advertising,preferences:!!e.performance,necessary:!1!==e.essential}}return null},loadEventListeners:()=>{document.addEventListener("termlyConsent",function(e){const t=e.detail?.categories;Array.isArray(t)?(pmw.console.log("Termly consent event received",t),t.includes("analytics")&&t.includes("advertising")&&t.includes("performance")?pmw.consent.api.acceptAll({source:"cmp"}):t.includes("analytics")||t.includes("advertising")||t.includes("performance")?pmw.consent.api.updateSelectively({statistics:t.includes("analytics"),marketing:t.includes("advertising"),preferences:t.includes("performance"),necessary:t.includes("essential"),source:"cmp"}):pmw.consent.api.revokeAll({source:"cmp"})):pmw.console.log("Termly consent event received but categories is not an array",e.detail)},!0)}},M={statistics:"statistics",marketing:"marketing",preferences:"preferences",necessary:"functional"},A=()=>{const e=window.wp_consent_type||window.wp_fallback_consent_type||"";return e?-1!==e.indexOf("optout"):!pmw.consent.explicitConsentModeActive()},O=e=>"allow"===e||""===e&&A(),x=[{...o,name:"Beautiful Cookie Consent"},{...{getConsent:()=>{let e=pmw.getCookie("borlabs-cookie");return e?(pmw.console.log("Borlabs Cookie CMP consent detected"),console.log("Pixel Manger: We deprecated direct support for Borlabs Cookie. Borlabs Cookie still can pass consent to PMW by using Google Consent Mode update calls which will be processd by the Pixel Manager."),e=decodeURI(e),e=JSON.parse(e),{statistics:e?.consents?.statistics??!0,marketing:e?.consents?.marketing??!0,preferences:!0,necessary:!0}):null},loadEventListeners:()=>{document.addEventListener("borlabs-cookie-consent-saved",()=>{},!0)}},name:"Borlabs Cookie"},{...p,name:"Complianz"},{...{getConsent:()=>{let e=pmw.getCookie("cookie_notice_accepted");return e?(pmw.console.log("Cookie Compliance CMP (by hu-manity.co) consent detected"),e="true"===e,{statistics:e,marketing:e,preferences:e,necessary:!0}):(e=pmw.getCookie("hu-consent"),e?(pmw.console.log("Cookie Compliance CMP (by hu-manity.co) consent detected"),e=JSON.parse(e),{statistics:e.categories[3]??!0,marketing:e.categories[4]??!0,preferences:e.categories[2]??!0,necessary:e.categories[1]??!0}):null)},loadEventListeners:()=>{document.addEventListener("set-consent.hu",e=>{if(!e.detail.categories)return;let t={statistics:e.detail.categories[3],marketing:e.detail.categories[4],preferences:e.detail.categories[2],necessary:e.detail.categories[1]};pmw.consent.api.updateSelectively({...t,source:"cmp"})},!0)}},name:"Cookie Compliance (hu-manity.co)"},{...{getConsent:()=>{let e=pmw.getCookie("CC_p_accepted_cookies");if(e){pmw.console.log("Cookie Confirm CMP consent detected");try{e=JSON.parse(e)}catch(e){return pmw.console.log("Cookie Confirm CMP: Error parsing cookie value",e),null}return Array.isArray(e)?{statistics:e.includes("analytics"),marketing:e.includes("marketing"),preferences:e.includes("functional"),necessary:!0}:null}return null},loadEventListeners:()=>{document.addEventListener("Cc_ConsentSet",e=>{const t=e.detail;let n={statistics:t.analytics??!1,marketing:t.marketing??!1,preferences:t.functional??!0,necessary:!0};pmw.consent.api.updateSelectively({...n,source:"cmp"})},!0)}},name:"Cookie Confirm"},{...{getConsent:()=>{let e=pmw.getCookie("CookieScriptConsent");if(!e)return null;try{e=JSON.parse(e),"string"==typeof e.categories&&(e.categories=JSON.parse(e.categories))}catch(e){return pmw.console.log("Cookie Script cookie could not be parsed. Ignoring it.",e),null}return["accept","reject"].includes(e.action)||Array.isArray(e.categories)?(pmw.console.log("Cookie Script CMP consent detected"),"reject"===e.action?{statistics:!1,marketing:!1,preferences:!1,necessary:!0}:e.categories&&e.categories.length>0?{statistics:e.categories.indexOf("performance")>=0,marketing:e.categories.indexOf("targeting")>=0,preferences:e.categories.indexOf("functionality")>=0,necessary:!0}:{statistics:!1,marketing:!1,preferences:!1,necessary:!0}):(pmw.console.log("Cookie Script cookie detected, but the visitor hasn't made a choice yet. Ignoring it."),null)},loadEventListeners:()=>{document.addEventListener("CookieScriptAccept",e=>{let t={statistics:e.detail.categories.includes("performance"),marketing:e.detail.categories.includes("targeting"),preferences:e.detail.categories.includes("functionality"),necessary:!0};pmw.consent.api.updateSelectively({...t,source:"cmp"})},!0),document.addEventListener("CookieScriptAcceptAll",()=>{pmw.consent.api.acceptAll({source:"cmp"})},!0),document.addEventListener("CookieScriptReject",()=>{pmw.consent.api.revokeAll({source:"cmp"})},!0)}},name:"Cookie Script"},{...m,name:"Cookiebot"},{...u,name:"Cookiefirst"},{...f,name:"CookieYes"},{...w,name:"FAZ Cookie Manager"},{...{getConsent:()=>{let e=new RegExp("_iub_cs-\\d{8,}="),t=pmw.getCookieThatContainsRegex(e);return t?(pmw.console.log("Iubenda CMP consent detected"),t=decodeURIComponent(t),t=t.replace(/_iub_cs-.*=/,""),t=JSON.parse(t),{statistics:t.purposes[4]??!1,marketing:t.purposes[5]??!1,preferences:(t.purposes[2]||t.purposes[3])??!1,necessary:t.purposes[1]??!0}):null},loadEventListeners:()=>
2{window._iub&&pmw.consent.cmpConsentClickObserver({ids:["iubFooterBtn"],classes:["iubenda-cs-reject-btn","iubenda-cs-accept-btn"]})}},name:"Iubenda"},{...{getConsent:()=>{let e=pmw.getCookie("moove_gdpr_popup");return e?(pmw.console.log("GDPR Cookie Compliance CMP (by Moove Agency) consent detected"),e=JSON.parse(e),{statistics:"0"!==e.thirdparty,marketing:"0"!==e.advanced,preferences:!0,necessary:"0"!==e.strict}):null},loadEventListeners:()=>{if(!window.moove_frontend_gdpr_scripts)return;const e=document.querySelector(".mgbutton");e&&e.addEventListener("click",()=>{},!0),pmw.consent.cmpConsentClickObserver({classes:["moove-gdpr-infobar-allow-all","moove-gdpr-modal-allow-all","moove-gdpr-modal-save-settings"]})}},name:"GDPR Cookie Compliance (Moove Agency)"},{...h,name:"OneTrust"},{...L,name:"Real Cookie Banner"},{...P,name:"Termly"},{...{getConsent:()=>{let e=window.localStorage.getItem("ucData");return e?(pmw.console.log("Usercentrics CMP consent detected"),e=JSON.parse(e).gcm,{statistics:"denied"!==e.analyticsStorage,marketing:"denied"!==e.adStorage,preferences:!0,necessary:!0}):null},loadEventListeners:()=>{document.addEventListener("UC_UI_CMP_EVENT",t=>{if("ACCEPT_ALL"===t.detail.type&&pmw.consent.api.acceptAll({source:"cmp"}),"DENY_ALL"===t.detail.type&&pmw.consent.api.revokeAll({source:"cmp"}),"SAVE"===t.detail.type){let t=JSON.parse(e.currentTarget.localStorage.ucData).gcm;t&&pmw.consent.api.updateSelectively({statistics:"granted"===t.analyticsStorage,marketing:"granted"===t.adStorage,preferences:!0,necessary:!0,source:"cmp"})}},!0)}},name:"Usercentrics"},{...{getConsent:()=>{let e=pmw.getCookie("wpautoterms-cookies-notice");return e&&"1"===e?(pmw.console.log("WP AutoTerms CMP consent detected"),{statistics:!0,marketing:!0,preferences:!0,necessary:!0}):null},loadEventListeners:()=>{let e=document.querySelectorAll(".wpautoterms-notice-close")[0];e&&e.addEventListener("click",e=>{pmw.consent.api.acceptAll({source:"cmp"})},!0)}},name:"WP AutoTerms"},{...{getConsent:()=>{const e=(()=>{let e={};for(const[t,n]of Object.entries(M))e[t]=pmw.getCookie("wp_consent_"+n);return e})();return Object.values(e).some(e=>""!==e)?(pmw.console.log("WP Consent API CMP consent detected"),{statistics:O(e.statistics),marketing:O(e.marketing),preferences:O(e.preferences),necessary:"deny"!==e.necessary}):null},loadEventListeners:()=>{document.addEventListener("wp_listen_for_consent_change",e=>{const t=e.detail||{};let n={};for(const[e,s]of Object.entries(M))s in t&&(n[e]="necessary"===e?"deny"!==t[s]:O(t[s]));0!==Object.keys(n).length&&pmw.consent.api.updateSelectively({...n,source:"cmp"})},!0)}},name:"WP Consent API"},{...{getConsent:()=>{let e=pmw.getCookie("wpl_user_preference");return e?(pmw.console.log("WP Cookie Consent CMP (by wpeka.com) consent detected"),e=JSON.parse(e),{statistics:"no"!==e.analytics,marketing:"no"!==e.marketing,preferences:"no"!==e.preferences,necessary:"no"!==e.necessary}):null},loadEventListeners:()=>{["cookie_action_accept","cookie_action_reject"].forEach(e=>{const t=document.getElementById(e);t&&t.addEventListener("click",()=>{},!0)})}},name:"WP Cookie Consent"}];let I=[],T=null,R={categories:{statistics:!0,marketing:!0,preferences:!0,necessary:!0},visitorHasChosen:!1,get:(e=null)=>{if(null===e)return R;let t={};for(let n of e)t[n]=R[n];return t},set:e=>{for(let t in e)R[t]=e[t]}};const z=async()=>{j(),$(),N(),await D(),Y()},N=()=>{let e=U();e?(pmw.consent.categories.set(e.consent),pmw.consent.settings.set({visitorHasChosen:!0}),I.push(`cmp: ${e.source}`),T={type:"cmp",detail:e.source},pmw.console.log(`CMP consent applied from: ${e.source}`,e.consent)):(I.push("cmp: none"),pmw.console.log("No CMP consent detected. Consent categories remain at defaults."))},j=()=>{for(let e of x)"function"==typeof e.loadEventListeners&&e.loadEventListeners()},$=()=>{let e=pmw.consent.explicitConsentModeActive(),t=!e,n={statistics:t,marketing:t,preferences:t,necessary:!0};e?(I.push("mode: explicit"),pmw.console.log("Consent mode: explicit. Initial defaults:",n)):(I.push("mode: implicit"),pmw.console.log("Consent mode: implicit. Initial defaults:",n)),pmw.consent.categories.set(n)},J=()=>pmwDataLayer?.general?.consent_management?.explicit_consent;pmw.getConsentValues=()=>pmw.consent.settings.get();const B={set:({statistics:e=R.categories.statistics,marketing:t=R.categories.marketing,preferences:n=R.categories.preferences,necessary:s=R.categories.necessary})=>{R.categories.statistics=e,R.categories.marketing=t,R.categories.preferences=n,R.categories.necessary=s},get:(e=null)=>{if(null===e)return R.categories;let t={};for(let n of e)t[n]=R.categories[n];return t}},U=()=>{const e="pmw_cookie_consent";let t=pmw.retrieveData(e,!0)||pmw.getCookie(e);if(t)return t="object"==typeof t?t:JSON.parse(t),t=W(t),{consent:t,source:"PMW cookie/storage"};for(let e of x){if("function"!=typeof e.getConsent)continue;let t=e.getConsent();if(t)return{consent:t,source:e.name||"Unknown CMP"}}return null},W=e=>e.hasOwnProperty("analytics")||e.hasOwnProperty("ads")?(e.hasOwnProperty("analytics")&&(e.statistics=e.analytics,delete e.analytics),e.hasOwnProperty("ads")&&(e.marketing=e.ads,delete e.ads),e.preferences=!0,e.necessary=!0,e):e,D=async()=>
2{if(!J())return void I.push("region check: skipped (not explicit mode)");if(pmw.consent.settings.get().visitorHasChosen)return I.push("region check: skipped (visitor already chose via CMP)"),void pmw.console.log("Region check skipped: visitor already chose consent via CMP");if(!pmwDataLayer?.general?.consent_management?.restricted_regions)return I.push("region check: skipped (no restricted regions configured)"),void pmw.console.log("Region check skipped: no restricted regions configured. Consent defaults remain (all blocked in explicit mode).");const e=pmwDataLayer.general.consent_management.restricted_regions,t=await pmw.getBrowserGeo();if(F(t))return I.push(`region: ${t?.countryCode||"unknown"} restricted â blocked`),T={type:"region_restricted",detail:t?.countryCode||"unknown"},pmw.console.log("Region check: restricted â blocking all categories",{visitor:t,restrictedRegions:e,match:!0}),void pmw.consent.categories.set({statistics:!1,marketing:!1,preferences:!1,necessary:!0});I.push(`region: ${t?.countryCode||"unknown"} not restricted â unlocked`),T={type:"region_unlocked",detail:t?.countryCode||"unknown"},pmw.console.log("Region check: not restricted â unlocking all categories",{visitor:t,restrictedRegions:e,match:!1}),pmw.consent.categories.set({statistics:!0,marketing:!0,preferences:!0,necessary:!0})},F=e=>null===e||(!(!e.countryCode||!pmwDataLayer?.general?.consent_management?.restricted_regions.includes(e.countryCode))||!(!e.regionCode||!pmwDataLayer?.general?.consent_management?.restricted_regions.includes(e.regionCode))),q=(e,t)=>pmw.consent.categories.get()[e]?(pmw.console.log(`The category ${e} has been approved. Loading the ${t} pixel.`),!0):(G(e,t),!1),G=(e,t)=>{let n=J()?"explicit":"implicit",s="";T&&(s=`, source: ${T.type} (${T.detail})`),console.log(`Pixel Manager: The pixel has not loaded because you have not given consent for it yet. - mode: ${n}, category: ${e}, pixel: ${t}${s}`)},Y=()=>{document.dispatchEvent(new Event("pmw_cookie_consent_management_loaded")),document.dispatchEvent(new Event("pmwCookieConsentManagementLoaded"));const e=pmw.consent.categories.get();pmw.console.log(`Consent decision: ${I.join(" | ")}`,e),pmw.console.log("Loaded consent category settings: ",e)},H=({ids:e=[],classes:t=[]})=>{t=t.map(e=>e.startsWith(".")?e:"."+e);new MutationObserver((n,s)=>{for(let o of n)if(o.addedNodes.length){if(t.length>
20){document.querySelectorAll(t.join(", ")).forEach(e=>{e.addEventListener("click",()=>{location.reload()}),s.disconnect()})}e.length>0&&e.forEach(e=>{const t=document.getElementById(e);t&&(t.addEventListener("click",()=>{location.reload()}),s.disconnect())})}}).observe(document.body,{childList:!0,subtree:!0})}}}]); 3//# sourceMappingURL=consent-management.06274703.chunk.min.js.map
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.