PageSourceSearch

https://www.silex.co.uk/wp-content/litespeed/js/9be4b6bdc5b2bab1322b5420ef122240.js?ver=72732

js silex.co.uk collected 2026-10-04 13:28:26 UTC 3,455 bytes, 19 lines download raw bytes

1'use strict';window.wp_fallback_consent_type=consent_api.consent_type;window.waitfor_consent_hook=consent_api.waitfor_consent_hook;function wp_has_service_consent(service){let consented_services_json=consent_api_get_cookie(consent_api.cookie_prefix+'_'+'consented_services');let consented_services;try{consented_services=JSON.parse(consented_services_json)}catch(e){consented_services={}}
2if(!consented_services.hasOwnProperty(service)){const category=wp_get_service_category(service);return wp_has_consent(category)}else{return consented_services[service]}}
3function wp_is_service_denied(service){let consented_services_json=consent_api_get_cookie(consent_api.cookie_prefix+'_'+'consented_services');let consented_services;try{consented_services=JSON.parse(consented_services_json)}catch(e){consented_services={}}
4if(!consented_services.hasOwnProperty(service)){return!1}else{return!consented_services[service]}}
5function wp_set_service_consent(service,consented){let consented_services_json=consent_api_get_cookie(consent_api.cookie_prefix+'_'+'consented_services');let consented_services;try{consented_services=JSON.parse(consented_services_json)}catch(e){consented_services={}}
6consented_services[service]=consented;consent_api_set_cookie(consent_api.cookie_prefix+'_consented_services',JSON.stringify(consented_services));let details={};details.service=service;details.value=consented;let event=new CustomEvent('wp_consent_api_status_change_service',{detail:details});document.dispatchEvent(event)}
7function wp_has_consent(category){let has_consent=!1;let consent_type;if(typeof(window.wp_consent_type)!=="undefined"){consent_type=window.wp_consent_type}else{consent_type=window.wp_fallback_consent_type}
8let cookie_value=consent_api_get_cookie(consent_api.cookie_prefix+'_'+category);if(!consent_type){has_consent=!0}else if(consent_type.indexOf('optout')!==-1&&cookie_value===''){has_consent=!0}else{has_consent=(cookie_value==='allow')}
9return has_consent}
10function wp_get_service_category(service){if(!consent_api.services||!Array.isArray(consent_api.services)){return'marketing'}
11let services=consent_api.services;for(let i=0;i<services.length;i++){if(services[i]&&services[i].name===service&&services[i].category){return services[i].category}}
12return'marketing'}
13function consent_api_set_cookie(name,value){let secure=";secure";let days=consent_api.cookie_expiration;let date=new Date();date.setTime(date.getTime()+(days*24*60*60*1000));let expires=";expires="+date.toGMTString();if(window.location.protocol!=="https:")secure='';document.cookie=name+"="+value+secure+expires+";path=/"}
14function consent_api_get_cookie(name){name=name+"=";var cookies=window.document.cookie.split(';');for(var i=0;i<cookies.length;i++){var cookie=cookies[i].trim();if(cookie.indexOf(name)===0)
15return cookie.substring(name.length,cookie.length);}
16return""}
17function wp_set_consent(category,value){let event;if(value!=='allow'&&value!=='deny')return;var previous_value=consent_api_get_cookie(consent_api.cookie_prefix+'_'+category);consent_api_set_cookie(consent_api.cookie_prefix+'_'+category,value);if(previous_value===value)return;var changedConsentCategory=[];changedConsentCategory[category]=value;try{event=new CustomEvent('wp_listen_for_consent_change',{detail:changedConsentCategory})}catch(err){event=document.createEvent('Event');event.initEvent('wp_listen_for_consent_change',!0,!0);event.detail=changedConsentCategory}
18document.dispatchEvent(event)}
19;

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.