!function(){"use strict";var o={399:function(o,n,t){t.d(n,{default:function(){return s}});const e=()=>{var o,n;return null===(n=null===(o=window.location)||void 0===o?void 0:o.search)||void 0===n?void 0:n.includes("pianoDebug")};o=t.hmd(o);const i={onetrustToPianoMapping:{C0001:{COMPOSER:1,DMP:1,ID:1,PA:1,VX:1,DL:1},C0002:{COMPOSER:1,DMP:2,ID:1,PA:1,VX:3,DL:1},C0003:{COMPOSER:3,DMP:2,ID:3,PA:3,VX:2,DL:1},C0004:{COMPOSER:2,DMP:3,ID:2,PA:2,VX:2,DL:2}},pianoProductModesConsentAll:{COMPOSER:3,DMP:3,ID:3,PA:3,VX:3,DL:3},pianoProductModes:{COMPOSER:1,DMP:1,ID:1,PA:1,VX:1,DL:1},pianoWeightsToModes:{1:"opt-out",2:"essential",3:"opt-in"},hookIntoOneTrust:function(){e()&&console.log("PMC: Piano:","Consent Initialization.."),window.pmc.hooks.add_action("pmc_onetrust_consent_data_ready",this.determinePianoProductModes.bind(this))},determinePianoProductModes:function({groupsConsentedTo:o}){const n=this;e()&&console.log("PMC: Piano:","pmc_onetrust_consent_data_ready","OneTrust groups consented to",o);const t={COMPOSER:[],DMP:[],ID:[],PA:[],VX:[],DL:[]};if(0{Object.keys(t).forEach((e=>{n.onetrustToPianoMapping[o]&&t[e].push(n.onetrustToPianoMapping[o][e])}))})),e()&&console.log("PMC: Piano:","pianoProductsWeights",t);const i=o.length>=Object.keys(n.onetrustToPianoMapping).length;Object.keys(t).forEach((o=>{n.pianoProductModes[o]=Math.max(...t[o],...i?[n.pianoProductModesConsentAll[o]]:[])})),e()&&console.log("PMC: Piano:","pianoProductModes",n.pianoProductModes)}window.tp=window.tp||[],window.tp.push(["init",n.setPianoProductModes.bind(n)])},setPianoProductModes:function(){var o,n,t,i,s,d;const r=this;window.pdl=window.pdl||{},window.pdl.requireConsent=!0,window.tp.consent.set("ESP",{mode:"opt-out"}),window.tp.consent.set("Social Flow",{mode:"opt-out"}),window.tp.consent.set("COMPOSER",{mode:null!==(o=r.pianoWeightsToModes[r.pianoProductModes.COMPOSER])&&void 0!==o?o:"opt-out"}),window.tp.consent.set("DMP",{mode:null!==(n=r.pianoWeightsToModes[r.pianoProductModes.DMP])&&void 0!==n?n:"opt-out"}),window.tp.consent.set("ID",{mode:null!==(t=r.pianoWeightsToModes[r.pianoProductModes.ID])&&void 0!==t?t:"opt-out"}),window.tp.consent.set("PA",{mode:null!==(i=r.pianoWeightsToModes[r.pianoProductModes.PA])&&void 0!==i?i:"opt-out"}),window.tp.consent.set("VX",{mode:null!==(s=r.pianoWeightsToModes[r.pianoProductModes.VX])&&void 0!==s?s:"opt-out"}),window.tp.consent.set("DL",{mode:null!==(d=r.pianoWeightsToModes[r.pianoProductModes.DL])&&void 0!==d?d:"opt-out"}),e()&&console.log("PMC: Piano:","tp.consent.get()",window.tp.consent.get())}};i.hookIntoOneTrust();var s=i;"undefined"!=typeof exports&&(o.exports=i)}},n={};function t(e){var i=n[e];if(void 0!==i)return i.exports;var s=n[e]={id:e,loaded:!1,exports:{}};return o[e](s,s.exports,t),s.loaded=!0,s.exports}t.d=function(o,n){for(var e in n)t.o(n,e)&&!t.o(o,e)&&Object.defineProperty(o,e,{enumerable:!0,get:n[e]})},t.hmd=function(o){return(o=Object.create(o)).children||(o.children=[]),Object.defineProperty(o,"exports",{enumerable:!0,set:function(){throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+o.id)}}),o},t.o=function(o,n){return Object.prototype.hasOwnProperty.call(o,n)};var e=t(399);(window.pmcPiano=window.pmcPiano||{}).consent=e.default}();