/** * Content Blocker – frontend.js * Click-to-load: the real iframe is CREATED only after the user actively * consents per service. Consent is stored in localStorage per service id. */ ( function () { 'use strict'; const STORAGE_PREFIX = 'cb_consent_'; const CFG = window.cbConfig || { services: [], i18n: {} }; /* ───────────────────────── consent storage ───────────────────────── */ function hasConsent( serviceId ) { try { return localStorage.getItem( STORAGE_PREFIX + serviceId ) === '1'; } catch ( e ) { return false; } } function grantConsent( serviceId ) { try { localStorage.setItem( STORAGE_PREFIX + serviceId, '1' ); } catch ( e ) { // localStorage unavailable; allow the load for this session only. } // Release any third-party