1 2(function(){'use strict';const logEnabled=!1;window.document.obilityConsentCookieConfig={options:[],};function initCookieConsent(){window.document.body.dispatchEvent(new Event("hideCookieConsent"));window.cvalue=JSON.parse(getCookie())} 3function getCookie(){const name="obility_cookie_consent"+"=";if(document.cookie){const ca=document.cookie.split(";");for(let i=0;i<ca.length;i++){let c=ca[i];while(c.charAt(0)===" "){c=c.substring(1)} 4if(c.indexOf(name)===0){return c.substring(name.length,c.length)}}} 5return"[]"} 6function setConsentItem(id,value,category){const d=new Date();d.setTime(d.getTime()+365*24*60*60*1000);const expires="expires="+d.toUTCString();const path="path=/";const pos=window.cvalue.findIndex((el)=>el.id===id);if(pos>=0){window.cvalue.splice(pos,1)} 7window.cvalue.push({id:id,value:value,category:category});document.cookie="obility_cookie_consent"+"="+JSON.stringify(window.cvalue)+";"+expires+";"+path;document.body.dispatchEvent(new Event("hideCookieConsent"));logEnabled&&console.log('Printshop: Consent updated for '+id+':',value)} 8function setupComplianzListener(){document.addEventListener('cmplz_cookie_banner_data',function(event){logEnabled&&console.log('Printshop: cmplz_cookie_banner_data event:',event);if(event.detail){logEnabled&&console.log('Printshop: Complianz data loaded:',event.detail);checkInitialConsentComplianz()}});document.addEventListener('cmplz_status_change',function(event){logEnabled&&console.log('Printshop: cmplz_status_change event:',event);if(event.detail){const category=event.detail.category;const value=event.detail.value;const consentStatus=value==='allow';logEnabled&&console.log('Printshop: Consent changed for category',category,':',consentStatus);switch(category){case 'marketing':setConsentItem("gtm",consentStatus,3);setConsentItem("ts",consentStatus,3);break;case 'functional':setConsentItem("recap",consentStatus,2);break;case 'statistics':break;case 'preferences':break;default:logEnabled&&console.log('Printshop: Unknown consent category:',category)}}});document.addEventListener('cmplz_status_change_service',function(event){logEnabled&&console.log('Printshop: cmplz_status_change_service event:',event);if(event.detail){const service=event.detail.service;const value=event.detail.value;const consentStatus=value===!0||value==='allow';logEnabled&&console.log('Printshop: Service consent changed for',service,':',consentStatus);switch(service){case 'google-tag-manager':case 'gtm':setConsentItem("gtm",consentStatus,3);break;case 'trusted-shops':case 'trustedshops':setConsentItem("ts",consentStatus,3);break;case 'recaptcha':case 'google-recaptcha':setConsentItem("recap",consentStatus,2);break;default:logEnabled&&console.log('Printshop: Unknown service:',service)}}});document.addEventListener('cmplz_fire_categories',function(event){logEnabled&&console.log('Printshop: cmplz_fire_categories event:',event);if(event.detail&&event.detail.categories){const categories=event.detail.categories;const hasMarketing=categories.includes('marketing');const hasFunctional=categories.includes('functional');const hasStatistics=categories.includes('statistics');setConsentItem("gtm",hasMarketing,3);setConsentItem("ts",hasMarketing,3);setConsentItem("recap",hasFunctional,2);logEnabled&&console.log('Printshop: Updated consent from categories:',{marketing:hasMarketing,functional:hasFunctional,statistics:hasStatistics})}});document.addEventListener('cmplz_revoke',function(event){logEnabled&&console.log('Printshop: cmplz_revoke event:',event);setConsentItem("gtm",!1,3);setConsentItem("ts",!1,3);setConsentItem("recap",!1,2);logEnabled&&console.log('Printshop: All consent revoked')});if(typeof window.cmplz_has_consent==='function'){logEnabled&&console.log('Printshop: Complianz functions already available');checkInitialConsentComplianz()}} 9function checkInitialConsentComplianz(){if(typeof window.cmplz_has_consent==='function'){const marketingConsent=window.cmplz_has_consent('marketing');setConsentItem("gtm",marketingConsent,3);setConsentItem("ts",marketingConsent,3);logEnabled&&console.log('Printshop: Initial marketing consent:',marketingConsent);const functionalConsent=window.cmplz_has_consent('functional');setConsentItem("recap",functionalConsent,2);logEnabled&&console.log('Printshop: Initial functional consent:',functionalConsent);const statisticsConsent=window.cmplz_has_consent('statistics');logEnabled&&console.log('Printshop: Initial statistics consent:',statisticsConsent);const preferencesConsent=window.cmplz_has_consent('preferences');logEnabled&&console.log('Printshop: Initial preferences consent:',preferencesConsent)}else{logEnabled&&console.warn('Printshop: Complianz functions not available')}} 10function setupFallbackListener(){document.addEventListener('wp_consent_type_defined',function(){logEnabled&&console.log('Printshop: WP Consent API defined as fallback, consent type:',window.wp_consent_type);checkInitialConsentWP()});document.addEventListener("wp_listen_for_consent_change",function(event){logEnabled&&console.log('Printshop: WP Consent API consent change event (fallback):',event);if(event.detail){const changedConsent=event.detail;for(const category in changedConsent){if(changedConsent.hasOwnProperty(category)){const consentStatus=changedConsent[category]==='allow';logEnabled&&console.log('Printshop: WP API consent changed for category',category,':',consentStatus);switch(category){case 'marketing':setConsentItem("gtm",consentStatus,3);setConsentItem("ts",consentStatus,3);break;case 'functional':setConsentItem("recap",consentStatus,2);break;case 'statistics':break;case 'preferences':break}}}}});document.addEventListener('cmplz_cookie_data',function(event){logEnabled&&console.log('Printshop: Legacy cmplz_cookie_data event:',event);if(event.detail){const consentData=event.detail;if(consentData.marketing!==undefined){setConsentItem("gtm",consentData.marketing,3);setConsentItem("ts",consentData.marketing,3);logEnabled&&console.log('Printshop: Legacy marketing consent:',consentData.marketing)} 11if(consentData.functional!==undefined){setConsentItem("recap",consentData.functional,2);logEnabled&&console.log('Printshop: Legacy functional consent:',consentData.functional)} 12logEnabled&&console.log('Printshop: Consent updated from legacy cmplz_cookie_data')}});window.addEventListener("UC_UI_CMP_EVENT",function(event){logEnabled&&console.log('Printshop: Legacy UC_UI_CMP_EVENT event:',event);if(event.detail&&event.detail.type){switch(event.detail.type){case "DENY_ALL":logEnabled&&console.log('Printshop: Processing legacy DENY_ALL event');setConsentItem("gtm",!1,3);setConsentItem("ts",!1,3);setConsentItem("recap",!1,2);break;case "ACCEPT_ALL":logEnabled&&console.log('Printshop: Processing legacy ACCEPT_ALL event');setConsentItem("gtm",!0,3);setConsentItem("ts",!0,3);setConsentItem("recap",!0,2);break;default:logEnabled&&console.log('Printshop: Unknown legacy consent event type:',event.detail.type)}}});setupBorlabsListener();if(typeof window.wp_has_consent==='function'){logEnabled&&console.log('Printshop: WP Consent API already available as fallback');checkInitialConsentWP()}} 13function checkInitialConsentWP(){if(typeof window.wp_has_consent==='function'){const marketingConsent=window.wp_has_consent('marketing');
13if(marketingConsent!==null){setConsentItem("gtm",marketingConsent,3);setConsentItem("ts",marketingConsent,3);logEnabled&&console.log('Printshop: WP API initial marketing consent:',marketingConsent)} 14const functionalConsent=window.wp_has_consent('functional');if(functionalConsent!==null){setConsentItem("recap",functionalConsent,2);logEnabled&&console.log('Printshop: WP API initial functional consent:',functionalConsent)}}} 15function setupBorlabsListener(){document.addEventListener('borlabs-cookie-consent-saved',function(event){logEnabled&&console.log('Printshop: borlabs-cookie-consent-saved event:',event);if(event.detail&&event.detail.consents){const consents=event.detail.consents;const marketingConsent=consents.marketing===!0;const statisticsConsent=consents.statistics===!0;const externalMediaConsent=consents['external-media']===!0;const functionalConsent=consents.essential===!0||consents.functional===!0;setConsentItem("gtm",marketingConsent,3);setConsentItem("ts",marketingConsent,3);setConsentItem("recap",functionalConsent,2);logEnabled&&console.log('Printshop: Updated consent from Borlabs:',{marketing:marketingConsent,statistics:statisticsConsent,externalMedia:externalMediaConsent,functional:functionalConsent})}});document.addEventListener('borlabs-cookie-service-consent-changed',function(event){logEnabled&&console.log('Printshop: borlabs-cookie-service-consent-changed event:',event);if(event.detail){const serviceId=event.detail.serviceId;const consent=event.detail.consent===!0;logEnabled&&console.log('Printshop: Borlabs service consent changed for',serviceId,':',consent);switch(serviceId){case 'google-tag-manager':case 'gtm':setConsentItem("gtm",consent,3);break;case 'trusted-shops':case 'trustedshops':setConsentItem("ts",consent,3);break;case 'recaptcha':case 'google-recaptcha':setConsentItem("recap",consent,2);break;default:logEnabled&&console.log('Printshop: Unknown Borlabs service:',serviceId)}}});document.addEventListener('borlabs-cookie-group-consent-changed',function(event){logEnabled&&console.log('Printshop: borlabs-cookie-group-consent-changed event:',event);if(event.detail){const groupId=event.detail.groupId;const consent=event.detail.consent===!0;logEnabled&&console.log('Printshop: Borlabs group consent changed for',groupId,':',consent);switch(groupId){case 'marketing':setConsentItem("gtm",consent,3);setConsentItem("ts",consent,3);break;case 'statistics':case 'analytics':break;case 'essential':case 'functional':setConsentItem("recap",consent,2);break;case 'external-media':break;default:logEnabled&&console.log('Printshop: Unknown Borlabs group:',groupId)}}});document.addEventListener('borlabs-cookie-consent-accept-all',function(event){logEnabled&&console.log('Printshop: borlabs-cookie-consent-accept-all event:',event);setConsentItem("gtm",!0,3);setConsentItem("ts",!0,3);setConsentItem("recap",!0,2);logEnabled&&console.log('Printshop: All Borlabs consent accepted')});document.addEventListener('borlabs-cookie-consent-refuse-all',function(event){logEnabled&&console.log('Printshop: borlabs-cookie-consent-refuse-all event:',event);setConsentItem("gtm",!1,3);setConsentItem("ts",!1,3);setConsentItem("recap",!1,2);logEnabled&&console.log('Printshop: All Borlabs consent refused')});document.addEventListener('borlabs-cookie-after-init',function(event){logEnabled&&console.log('Printshop: borlabs-cookie-after-init event:',event);checkInitialConsentBorlabs();logEnabled&&console.log('Printshop: Borlabs Cookie initialized, checked initial consent')});checkInitialConsentBorlabs()} 16function checkInitialConsentBorlabs(){if(typeof window.BorlabsCookie!=='undefined'&&window.BorlabsCookie.Consents&&typeof window.BorlabsCookie.Consents.hasConsentForServiceGroup==='function'){logEnabled&&console.log('Printshop: Borlabs Cookie v3 API detected, checking initial consent');try{const marketingConsent=window.BorlabsCookie.Consents.hasConsentForServiceGroup('marketing');if(marketingConsent!==null){setConsentItem("gtm",marketingConsent,3);setConsentItem("ts",marketingConsent,3);logEnabled&&console.log('Printshop: Borlabs v3 initial marketing consent:',marketingConsent)} 17let functionalConsent=window.BorlabsCookie.Consents.hasConsentForServiceGroup('essential');if(functionalConsent===null||functionalConsent===!1){functionalConsent=window.BorlabsCookie.Consents.hasConsentForServiceGroup('functional')} 18if(functionalConsent!==null){setConsentItem("recap",functionalConsent,2);logEnabled&&console.log('Printshop: Borlabs v3 initial functional consent:',functionalConsent)} 19const statisticsConsent=window.BorlabsCookie.Consents.hasConsentForServiceGroup('statistics');logEnabled&&console.log('Printshop: Borlabs v3 initial statistics consent:',statisticsConsent);const externalMediaConsent=window.BorlabsCookie.Consents.hasConsentForServiceGroup('external-media');logEnabled&&console.log('Printshop: Borlabs v3 initial external-media consent:',externalMediaConsent);if(typeof window.BorlabsCookie.Consents.hasConsent==='function'){try{const gtmConsent=window.BorlabsCookie.Consents.hasConsent('google-tag-manager');if(gtmConsent!==null){setConsentItem("gtm",gtmConsent,3);logEnabled&&console.log('Printshop: Borlabs v3 GTM service consent:',gtmConsent)} 20const trustedShopsConsent=window.BorlabsCookie.Consents.hasConsent('trusted-shops');if(trustedShopsConsent!==null){setConsentItem("ts",trustedShopsConsent,3);logEnabled&&console.log('Printshop: Borlabs v3 Trusted Shops service consent:',trustedShopsConsent)} 21const recaptchaConsent=window.BorlabsCookie.Consents.hasConsent('recaptcha');if(recaptchaConsent!==null){setConsentItem("recap",recaptchaConsent,2);logEnabled&&console.log('Printshop: Borlabs v3 reCaptcha service consent:',recaptchaConsent)}}catch(serviceError){logEnabled&&console.warn('Printshop: Error checking Borlabs v3 service consent:',serviceError)}}}catch(error){logEnabled&&console.warn('Printshop: Error checking Borlabs v3 initial consent:',error)}}else if(typeof window.borlabsCookieConfig!=='undefined'){logEnabled&&console.log('Printshop: Borlabs config detected (legacy v2), checking consent');try{const config=window.borlabsCookieConfig;if(config&&config.consent){const consent=config.consent;if(consent.marketing!==undefined){setConsentItem("gtm",consent.marketing,3);setConsentItem("ts",consent.marketing,3);logEnabled&&console.log('Printshop: Borlabs legacy marketing consent:',consent.marketing)} 22if(consent.essential!==undefined||consent.functional!==undefined){const functionalConsent=consent.essential||consent.functional;setConsentItem("recap",functionalConsent,2);logEnabled&&console.log('Printshop: Borlabs legacy functional consent:',functionalConsent)}}}catch(error){logEnabled&&console.warn('Printshop: Error checking Borlabs legacy consent:',error)}}else{logEnabled&&console.log('Printshop: Borlabs Cookie not detected or not yet initialized')}} 23function getConsentStatus(id){const item=window.cvalue.find(el=>el.id===id);return item?item.value:null} 24window.ObilityPrintshopConsent={getConsentStatus:getConsentStatus,setConsentItem:setConsentItem,getCookie:getCookie};if(document.readyState==='loading'){document.addEventListener('DOMContentLoaded',function(){initCookieConsent();setupComplianzListener();setupFallbackListener()})}else{initCookieConsent();setupComplianzListener();setupFallbackListener()}})(); 25 26
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.