PageSourceSearch

https://www.paulmillerbmw.com/static/assets/web-integrations/pixal…/consent-privacy-handler-bundle.min.js?r=3

js paulmillerbmw.com collected 2026-09-25 08:08:36 UTC 13,178 bytes, 2 lines download raw bytes

1/*! For license information please see consent-privacy-handler-bundle.min.js.LICENSE.txt */
2(()=>{"use strict";var t={949(){function t(){var n,o,r="function"==typeof Symbol?Symbol:{},a=r.iterator||"@@iterator",i=r.toStringTag||"@@toStringTag";function c(t,r,a,i){var c=r&&r.prototype instanceof u?r:u,l=Object.create(c.prototype);return e(l,"_invoke",function(t,e,r){var a,i,c,u=0,l=r||[],d=!1,p={p:0,n:0,v:n,a:f,f:f.bind(n,4),d:function(t,e){return a=t,i=0,c=n,p.n=e,s}};function f(t,e){for(i=t,c=e,o=0;!d&&u&&!r&&o<l.length;o++){var r,a=l[o],f=p.p,g=a[2];t>3?(r=g===e)&&(c=a[(i=a[4])?5:(i=3,3)],a[4]=a[5]=n):a[0]<=f&&((r=t<2&&f<a[1])?(i=0,p.v=e,p.n=a[1]):f<g&&(r=t<3||a[0]>e||e>g)&&(a[4]=t,a[5]=e,p.n=g,i=0))}if(r||t>1)return s;throw d=!0,e}return function(r,l,g){if(u>1)throw TypeError("Generator is already running");for(d&&1===l&&f(l,g),i=l,c=g;(o=i<2?n:c)||!d;){a||(i?i<3?(i>1&&(p.n=-1),f(i,c)):p.n=c:p.v=c);try{if(u=2,a){if(i||(r="next"),o=a[r]){if(!(o=o.call(a,c)))throw TypeError("iterator result is not an object");if(!o.done)return o;c=o.value,i<2&&(i=0)}else 1===i&&(o=a.return)&&o.call(a),i<2&&(c=TypeError("The iterator does not provide a '"+r+"' method"),i=1);a=n}else if((o=(d=p.n<0)?c:t.call(e,p))!==s)break}catch(t){a=n,i=1,c=t}finally{u=1}}return{value:o,done:d}}}(t,a,i),!0),l}var s={};function u(){}function l(){}function d(){}o=Object.getPrototypeOf;var p=[][a]?o(o([][a]())):(e(o={},a,function(){return this}),o),f=d.prototype=u.prototype=Object.create(p);function g(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,e(t,i,"GeneratorFunction")),t.prototype=Object.create(f),t}return l.prototype=d,e(f,"constructor",d),e(d,"constructor",l),l.displayName="GeneratorFunction",e(d,i,"GeneratorFunction"),e(f),e(f,i,"Generator"),e(f,a,function(){return this}),e(f,"toString",function(){return"[object Generator]"}),(t=function(){return{w:c,m:g}})()}function e(t,n,o,r){var a=Object.defineProperty;try{a({},"",{})}catch(t){a=0}e=function(t,n,o,r){if(n)a?a(t,n,{value:o,enumerable:!r,configurable:!r,writable:!r}):t[n]=o;else{var i=function(n,o){e(t,n,function(t){return this._invoke(n,o,t)})};i("next",0),i("throw",1),i("return",2)}},e(t,n,o,r)}function n(t,e,n,o,r,a,i){try{var c=t[a](i),s=c.value}catch(t){return void n(t)}c.done?e(s):Promise.resolve(s).then(o,r)}function o(t){return function(){var e=this,o=arguments;return new Promise(function(r,a){var i=t.apply(e,o);function c(t){n(i,r,a,c,s,"next",t)}function s(t){n(i,r,a,c,s,"throw",t)}c(void 0)})}}var r,a,i,c,s,u;r=function(){var t;if(null===(t=window.Cookies)||void 0===t||!t.get)return null;var e=window.Cookies.get("caconsentcookie");if(!e)return null;try{return JSON.parse(e)}catch(t){return console.error("Error parsing caconsentcookie:",t),null}},a=function(t,e,n){var o={targetOptOut:t,saleOptOut:e,synced:n},r=new Date;r.setFullYear(r.getFullYear()+1);var a=window.location.hostname.split("."),i=a.length>=2?"; domain=.".concat(a.slice(-2).join(".")):"";document.cookie="cdlPrivacy=".concat(encodeURIComponent(JSON.stringify(o)),"; path=/").concat(i,"; expires=").concat(r.toUTCString())},i=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e4;return new Promise(function(n){var o=Date.now(),r=function(){t()?n(!0):Date.now()-o<e?setTimeout(r,100):(console.error("Timeout waiting for condition"),n(!1))};r()})},c=function(){var e=o(t().m(function e(n){var o,r;return t().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,i(function(){return void 0!==window.coxAutoDataLayer&&"function"==typeof window.coxAutoDataLayer.updatePrivacyOptOut});case 1:if(t.v){t.n=2;break}return console.error("Timeout waiting for coxAutoDataLayer"),t.a(2);case 2:if(t.p=2,!(o=window.coxAutoDataLayer.updatePrivacyOptOut({targetOptOut:n,saleOptOut:n}))||"function"!=typeof o.then){t.n=4;break}return t.n=3,o;case 3:console.log("Privacy opt-out updated successfully:",n);case 4:t.n=6;break;
2case 5:t.p=5,r=t.v,console.error("Error calling updatePrivacyOptOut:",r);case 6:return t.a(2)}},e,null,[[2,5]])}));return function(t){return e.apply(this,arguments)}}(),s=function(){var e=o(t().m(function e(){var n,o,s,u,l,d;return t().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,i(function(){return"function"==typeof window.addConsentListenerCa});case 1:if(t.v){t.n=2;break}return console.error("Timeout waiting for ComplyAuto consent API"),t.a(2);case 2:console.log("Setting up ComplyAuto consent listener"),n=null,null!=(o=r())&&o.categories&&(n=o.categories.targeting),s=function(){a(!1,!1,!0),console.log("User opted IN - tracking will be enabled on next pageload")},u=function(){c(!0),console.log("User opted OUT - disabled tracking")},l=function(){a(!0,!0,!1),console.log("Consent changed to null (undecided) - treating as opt-out")},d=function(t,e,n){switch("".concat(t,"->").concat(e)){case"null->true":s();break;case"null->false":u();break;case"null->undefined":case"undefined->undefined":null!=n&&n.hasInteractedWithBanner?(console.log("User interacted with banner but targeting is undefined - treating as opt-out"),u()):console.log("Consent state is undefined and user has not interacted - no action taken");break;case"true->false":case"false->true":case"undefined->true":case"undefined->false":c(!1===e),console.log("State change - updating privacy opt-out:",!1===e);break;default:null===e&&l()}},window.addConsentListenerCa(function(t){var e,o;console.log("Consent data received:",JSON.stringify(t));var r=null!==(e=null==t||null===(o=t.categories)||void 0===o?void 0:o.targeting)&&void 0!==e?e:null==t?void 0:t.targeting;r!==n&&(console.log("Consent change detected:",n,"->",r),d(n,r,t),n=r,void 0!==window.ConsentEventDispatcher&&window.ConsentEventDispatcher.dispatchConsentUpdate(r,"complyauto-consent-handler"))});case 3:return t.a(2)}},e)}));return function(){return e.apply(this,arguments)}}(),u=function(){var e=o(t().m(function e(){return t().w(function(t){for(;;)switch(t.n){case 0:return console.log("ComplyAuto consent privacy handler initializing..."),t.n=1,s();case 1:console.log("ComplyAuto consent privacy handler initialized");case 2:return t.a(2)}},e)}));return function(){return e.apply(this,arguments)}}(),"loading"===document.readyState?document.addEventListener("DOMContentLoaded",u):u(),"undefined"!=typeof module&&module.exports&&(module.exports={getCaconsentCookie:r,setCdlPrivacyCookie:a,updatePrivacyOptOut:c,setupConsentListener:s,init:u,waitFor:i})},18(){function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}var ConsentEventDispatcher;ConsentEventDispatcher={dispatchConsentUpdate:function(e,n){try{var o;if("boolean"==typeof e||null===e){var r=!0===e?"granted":"denied";o={eventType:"consentUpdate",consent:{ad_storage:r,analytics_storage:r,functionality_storage:"granted"},targeting:e,targetOptOut:!1===e||null===e,saleOptOut:!1===e||null===e,hasConsented:null!==e,isExplicit:null!==e,metadata:{source:n||"unknown",timestamp:Date.now()}}}else{if("object"!==t(e)||!e.consent)return void console.error("Invalid consent state format:",e);o={eventType:"consentUpdate",consent:e.consent,targeting:e.targeting,targetOptOut:e.targetOptOut,saleOptOut:e.saleOptOut,hasConsented:e.hasConsented,isExplicit:e.isExplicit,metadata:{source:n||"unknown",provider:e.provider,timestamp:Date.now()}}}var a=new CustomEvent("pixall:consentUpdated",{detail:o});window.dispatchEvent(a),console.log("📡 Dispatched consent update event from ".concat(n,":"),{consent:o.consent,targeting:o.targeting,targetOptOut:o.targetOptOut})}catch(t){console.error("Error dispatching consent update event:",t)}},createConsentDetail:function(t,e){if("boolean"==typeof t||null===t){var n=!0===t?"granted":"denied";return{eventType:"consentUpdate",consent:{ad_storage:n,analytics_storage:n,functionality_storage:"granted"},targeting:t,targetOptOut:!1===t||null===t,saleOptOut:!1===t||null===t,hasConsented:null!==t,isExplicit:null!==t,metadata:{source:e||"unknown",timestamp:Date.now()}}}return{eventType:"consentUpdate",consent:t.consent,targeting:t.targeting,targetOptOut:t.targetOptOut,saleOptOut:t.saleOptOut,hasConsented:t.hasConsented,isExplicit:t.isExplicit,metadata:{source:e||"unknown",provider:t.provider,timestamp:Date.now()}}}},window.ConsentEventDispatcher=ConsentEventDispatcher,"undefined"!=typeof module&&module.exports&&(module.exports=ConsentEventDispatcher)},639(t,e,n){n.d(e,{n:()=>p});var o={allowedDomains:["https://*.dealer.com","https://*.kbb.com","https://*.coxautoinc.com","https://*.xtime.com","https://xtime.com"],maxRetries:5,retryDelay:100,messageType:"PIXALL_CONSENT_STATE",debounceDelay:250},r=null,a=new WeakMap,i=null,c=null;function s(t){return{source:"pixall-consent-management",type:o.messageType,eventType:"consentUpdate",timestamp:Date.now(),consent:t.consent||{ad_storage:!0===t.targeting?"granted":"denied",analytics_storage:!0===t.targeting?"granted":"denied",functionality_storage:"granted"},legacy:{targeting:t.targeting,targetOptOut:t.targetOptOut,saleOptOut:t.saleOptOut,hasConsented:t.hasConsented,isExplicit:t.isExplicit},metadata:{version:"2.0.0",provider:t.provider}}}function u(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(function(t){try{var e=t.src||t.getAttribute("src");if(!e)return!1;e.startsWith("//")&&(e=window.location.protocol+e);var n=new URL(e,window.location.origin).origin,r=o.allowedDomains.some(function(t){var e=t.replace(/\./g,"\\.").replace(/\*/g,".*");return new RegExp("^".concat(e,"$"),"i").test(n)});return r||console.log("🚫 Cox Automotive Pixall Tracking: Iframe is not a CoxAutomotive product, origin not in allowlist: ".concat(n," - Pixall consent denied")),r}catch(t){return console.error("🔧 Error checking iframe domain:",t),!1}}(t)){var n;if(a.has(t)&&a.get(t).lastSent===(null===(n=r)||void 0===n?void 0:n.timestamp))return;try{if(!t.contentWindow)return void(e<o.maxRetries&&setTimeout(function(){u(t,e+1)},o.retryDelay));var i=t.src||t.getAttribute("src");if(!i)return;i.startsWith("//")&&(i=window.location.protocol+i);var l=new URL(i,window.location.origin).origin,d=r||s(c());t.contentWindow.postMessage(d,l),a.set(t,{lastSent:d.timestamp,origin:l}),console.log("📤 Sent consent to iframe:",{src:i.substring(0,50)+"...",consent:d.consent})}catch(n){console.error("🔧 Error sending consent to iframe:",n),e<o.maxRetries&&setTimeout(function(){u(t,e+1)},o.retryDelay)}}}function l(){try{var t=document.querySelectorAll("iframe"),e=c();r=s(e),t.forEach(function(t){u(t)})}catch(t){console.error("🔧 Error broadcasting consent to iframes:",t)}}function d(t){clearTimeout(i),i=setTimeout(function(){!function(t){var e=[];
2if(t.forEach(function(t){t.addedNodes.forEach(function(t){1===t.nodeType&&("IFRAME"===t.nodeName?e.push(t):t.querySelectorAll&&t.querySelectorAll("iframe").forEach(function(t){return e.push(t)}))})}),e.length>0)try{var n=c();r=s(n),e.forEach(function(t){u(t)})}catch(t){console.error("🔧 Error processing new iframes:",t)}}(t)},o.debounceDelay)}function p(t){"loading"!==document.readyState?(c=t,console.log("🚀 Initializing iframe consent broadcaster"),setTimeout(function(){l()},1e3),new MutationObserver(d).observe(document.body,{childList:!0,subtree:!0}),console.log("👁️ Iframe mutation observer initialized"),window.addEventListener("pixall:consentUpdated",function(){console.log("📡 Received consent update event, broadcasting to iframes"),l()}),console.log("📡 Listening for consent updates"),window.addEventListener("message",function(t){var e,n,o="PIXALL_CONSENT_REQUEST"===(null===(e=t.data)||void 0===e?void 0:e.type),r="shareConsentObject"===(null===(n=t.data)||void 0===n?void 0:n.eventType);if(o||r)try{var a=s(c());a.requestId=t.data.requestId,t.source.postMessage(a,t.origin);var i=o?"PIXALL_CONSENT_REQUEST":"shareConsentObject";console.log("📨 Responded to ".concat(i," from:"),t.origin)}catch(t){console.error("🔧 Error responding to consent request:",t)}}),window.pixallConsentBroadcaster={broadcast:l}):document.addEventListener("DOMContentLoaded",function(){return p(t)})}}},e={};function n(o){var r=e[o];if(void 0!==r)return r.exports;var a=e[o]={exports:{}};return t[o](a,a.exports,n),a.exports}n.d=(t,e)=>{for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n(18);var o=n(639);n(949),(0,o.n)(function(){try{if("function"==typeof window.getConsentCa){var t=window.getConsentCa();if(t){var e=void 0!==t.categories&&"targeting"in t.categories?t.categories.targeting:t.targeting,n=!0===e?"granted":"denied";return{consent:{ad_storage:n,analytics_storage:n,functionality_storage:"granted"},targeting:e,targetOptOut:!1===e||null===e,saleOptOut:!1===e||null===e,hasConsented:null!==e,isExplicit:null!==e,provider:"complyauto"}}}}catch(t){console.error("Error getting ComplyAuto consent:",t)}return{consent:{ad_storage:"denied",analytics_storage:"denied",functionality_storage:"granted"},targeting:null,targetOptOut:!0,saleOptOut:!0,hasConsented:!1,isExplicit:!1,provider:"complyauto",error:"consent_unavailable"}})})();

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.