const n="CustomConsentManager",e=()=>({name:n,deps:[],initialize:e=>{e.plugins.loadedPlugins.value=[...e.plugins.loadedPlugins.value,n]},consentManager:{init(n,e){},updateConsentsInfo(n,e,t){},isDestinationConsented(n,e,t,s){if(!n.consents.initialized.value)return!0;const o=n.consents.data.value.allowedConsentIds;try{var a;const{consentManagement:t}=e;if(!t)return!0;const s=t.find((e=>e.provider===n.consents.provider.value));if(null==s||!s.consents)return!0;const i=s.consents.map((n=>n.consent.trim())).filter((n=>n)),r=null!==(a=s.resolutionStrategy)&&void 0!==a?a:n.consents.resolutionStrategy.value,l=n=>o.includes(n);return"or"===r?i.some(l)||0===i.length:i.every(l)}catch(n){return null==t||t.onError(n,"CustomConsentManagerPlugin","Failed to determine the consent status for the destination. Please check the destination configuration and try again."),!0}}}});export{e as CustomConsentManager,e as default}; //# sourceMappingURL=rsa-plugins-remote-CustomConsentManager.min.js.map