PageSourceSearch

https://puzzlcrate.com/wp-content/plugins/woocommerce-google-adwor…/free/consent-api.e8630f08.chunk.min.js

js puzzlcrate.com collected 2026-09-26 17:46:37 UTC 2,514 bytes, 3 lines download raw bytes

1/*! Copyright 2025 SweetCode. All rights reserved. */
2"use strict";(self.webpackChunkPixel_Manager_for_WooCommerce=self.webpackChunkPixel_Manager_for_WooCommerce||[]).push([[968],{5523(e,t,s){s.r(t),s.d(t,{acceptAll:()=>a,getConsentStateFor:()=>m,processExternalGcmConsentUpdate_experimental:()=>p,revokeAll:()=>o,updateSelectively:()=>r});const n="pmw_cookie_consent",a=({duration:e=null,source:t="api"}={})=>{const s={statistics:!0,marketing:!0,preferences:!0,necessary:!0,duration:e};i(s,t),c(),document.dispatchEvent(new CustomEvent("pmw:consent:update",{detail:s}))},o=({duration:e=null,source:t="api"}={})=>{const s={statistics:!1,marketing:!1,preferences:!1,necessary:!0,duration:e};i(s,t),document.dispatchEvent(new CustomEvent("pmw:consent:update",{detail:s}))},r=({statistics:e=pmw.consent.categories.get().statistics,marketing:t=pmw.consent.categories.get().marketing,preferences:s=pmw.consent.categories.get().preferences,necessary:n=pmw.consent.categories.get().necessary,duration:a=null,source:o="api"})=>{void 0!==e&&void 0!==t&&void 0!==s&&void 0!==n||console.log("pmw.consent.api.updateSelectively: It is recommended to pass all consent types. - statistics, marketing, preferences");let r={statistics:e,marketing:t,preferences:s,necessary:n,duration:a};i(r,o),c(),document.dispatchEvent(new CustomEvent("pmw:consent:update",{detail:r}))},c=()=>{window.pmw?.bus?.emitAndDispatch("pmw:load-pixels")},i=(e,t="api")=>{pmw.consent.categories.set(e),"cmp"===t?(void 0!==pmw.retrieveData(n,!0)&&pmw.deleteDataKey(n,!0),pmw.getCookie(n)&&pmw.deleteCookie(n)):(({statistics:e,marketing:t,preferences:s,necessary:a,duration:o=null})=>{const r={statistics:e,marketing:t,preferences:s,necessary:a};null!==o?pmw.setCookie(n,JSON.stringify(r),o):pmw.storeData(n,r,!0)})(e),pmw.console.log(`Updated consent state (source: ${t})`,e)},p=e=>{if("consent"!==e[0])return;if("update"!==e[1])return;if("pmw"===e[2]?.source)return;pmw.console.log("processExternalGcmConsentUpdate",e);let t=pmw.consent.categories.get(),s={statistics:void 0!==e[2].analytics_storage?"granted"===e[2].analytics_storage:t.statistics,marketing:void 0!==e[2].ad_storage?"granted"===e[2].ad_storage:t.marketing,preferences:void 0!==e[2].functionality_storage?"granted"===e[2].functionality_storage:t.preferences,necessary:t.necessary};pmw.console.log("Consent state updated by external source (non-PMW gtag consent update)",s),i(s,"cmp"),c()},m=e=>pmw.consent.categories.get()[e]}}]);
3//# sourceMappingURL=consent-api.e8630f08.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.