1(window.webpackJsonp=window.webpackJsonp||[]).push([[36],{1468:function(n,e){function t(n){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},t(n)}Object.defineProperty(e,"__esModule",{value:!0});var o="gdpr",r="ccpa";var a={initialization:{name:"OneTrust",moduleId:134,consentMapping:{},googleVendorConsentMapping:{},iabVendorConsentMapping:{},generalVendorConsentMapping:{},getConsentGroupIds:function(){return window.OnetrustActiveGroups?window.OnetrustActiveGroups.split(","):[]},parseConsentMapping:function(n){var e={};n&&JSON.parse(n.replace(/"/g,'"')).forEach((function(n){var t=n.map;e[n.value]={purpose:t,regulation:"data_sale_opt_out"===t?r:o}}));return e},initForwarder:function(n){var e=this;e.consentMapping=e.parseConsentMapping(n.consentGroups),e.googleVendorConsentMapping=e.parseConsentMapping(n.vendorGoogleConsentGroups),e.iabVendorConsentMapping=e.parseConsentMapping(n.vendorIABConsentGroups),e.generalVendorConsentMapping=e.parseConsentMapping(n.vendorGeneralConsentGroups);var t=window.OptanonWrapper;window.OptanonWrapper=function(){window.Optanon&&window.Optanon.OnConsentChanged&&window.Optanon.OnConsentChanged((function(){e.createConsentEvents(),e.createVendorConsentEvents()})),t()}},createConsentEvents:function(){var n=mParticle.Identity.getCurrentUser();if(window.Optanon&&n){var e=window.location.href,t=n.getConsentState()||mParticle.Consent.createConsentState();for(var a in this.consentMapping){a.indexOf("group")>=0&&(a=a.replace(/\D/g,""));var s=this.consentMapping[a].purpose.toLowerCase(),i=this.consentMapping[a].regulation,c=this.getConsentGroupIds().indexOf(a)>-1;switch(i){case r:var p=mParticle.Consent.createCCPAConsent(c,Date.now(),s,e);t.setCCPAConsentState(p);break;case o:var d=t.getGDPRConsentState()||{};if(d[s])if(d[s].Consented===c)break;var u=mParticle.Consent.createGDPRConsent(c,Date.now(),s,e);t.addGDPRConsentState(s,u);break;default:console.error("Unknown Consent Regulation",i)}}n.setConsentState(t)}},createVendorConsentEvents:function(){var n=this;if(window.OneTrust&&window.OneTrust.getVendorConsentsRequestV2){var e,t=window.location.href,o=mParticle.Identity.getCurrentUser();o&&((e=o.getConsentState())||(e=mParticle.Consent.createConsentState()),OneTrust.getVendorConsentsRequestV2((function(o){!function(n,e,t,o){try{var r=n?n.addtlConsent.slice().split("~")[1].split("."):null;if(r&&r.length)for(var a in e){var s=e[a].purpose,i=r.indexOf(a)>-1,c=mParticle.Consent.createGDPRConsent(i,Date.now(),s,o);t.addGDPRConsentState(s,c)}}catch(p){console.error("There was a problem setting Google Vendor Consents: ",p)}}(o,n.googleVendorConsentMapping,e,t),function(n,e,t,o){try{var r=n?n.vendor.consents:null;for(var a in e){var s=e[a].purpose,i="1"===r[parseInt(a)-1],c=mParticle.Consent.createGDPRConsent(i,Date.now(),s,o);t.addGDPRConsentState(s,c)}}catch(p){console.error("There was a problem setting IAB Vendor Consents: ",p)}}(o,n.iabVendorConsentMapping,e,t),function(n,e,t,o){try{if(window.Optanon)for(var r in e){var a=e[r].purpose,s=n.indexOf(r)>-1,i=mParticle.Consent.createGDPRConsent(s,Date.now(),a,o);t.addGDPRConsentState(a,i)}}catch(c){console.error("There was a problem setting General Vendor Consents: ",c)}}(n.getConsentGroupIds(),n.generalVendorConsentMapping,e,t)})),o.setConsentState(e))}}}}.initialization,s=a.name,i=a.moduleId,c=function(){var n,e=!1;this.name=a.name,this.init=function(t){if(n=t,!e){try{a.initForwarder(n,e),e=!0}catch(o){console.log("Failed to initialize "+s+" - "+o)}a.createConsentEvents(),a.createVendorConsentEvents()}},this.onUserIdentified=function(){if(!e)return"Can't set new user identities on forwader "+s+", not initialized";try{a.createConsentEvents(),a.createVendorConsentEvents()}catch(n){return{error:"Error setting user identity on forwarder "+s+"; "+n}}},this.process=function(){}};function p(n){return null!=n&&"object"===t(n)&&!1===Array.isArray(n)}"undefined"!=typeof window&&window&&window.mParticle&&window.mParticle.addForwarder&&window.mParticle.addForwarder({name:s,constructor:c,getId:function(){return i}});var d={register:function(n){n?p(n)?(p(n.kits)||(n.kits={}),n.kits[s]={constructor:c}
1,console.log("Successfully registered "+s+" to your mParticle configuration")):console.log("'config' must be an object. You passed in a "+t(n)):console.log("You must pass a config object to register the kit "+s)}},u=d.register;e.default=d,e.register=u}}]); 2//# sourceMappingURL=mparticle_web-onetrust-kit-d70680.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.