PageSourceSearch

https://connectedbusinesses.co.il/wp-content/plugins/tracksure/assets/js/consent-listeners.min.js?ver=1.2.5

js connectedbusinesses.co.il collected 2026-10-07 08:44:40 UTC 5,187 bytes, 1 lines download raw bytes

1!function(){"use strict";function e(e){fetch(window.trackSureConfig.restUrl+"ts/v1/consent/update",{method:"POST",headers:{"Content-Type":"application/json","X-WP-Nonce":window.trackSureConfig.nonce||""},credentials:"same-origin",body:JSON.stringify({consent_state:e})}).then(function(n){n.ok&&(window.trackSureConsent&&(window.trackSureConsent.state=e,window.trackSureConsent.granted=!0),"function"==typeof gtag&&gtag("consent","update",e),"function"==typeof fbq&&("granted"===e.ad_storage?fbq("consent","grant"):fbq("consent","revoke")))}).catch(function(e){})}window.trackSureConfig&&window.trackSureConfig.restUrl&&(document.addEventListener("cookieyes-consent-update",function(n){const t=n.detail||{};e({ad_storage:"yes"===t.advertisement?"granted":"denied",analytics_storage:"yes"===t.analytics?"granted":"denied",ad_user_data:"yes"===t.advertisement?"granted":"denied",ad_personalization:"yes"===t.advertisement?"granted":"denied",functionality_storage:"granted",personalization_storage:"yes"===t.functional?"granted":"denied",security_storage:"granted"})}),window.addEventListener("CookiebotOnAccept",function(){window.Cookiebot&&e({ad_storage:window.Cookiebot.consent.marketing?"granted":"denied",analytics_storage:window.Cookiebot.consent.statistics?"granted":"denied",ad_user_data:window.Cookiebot.consent.marketing?"granted":"denied",ad_personalization:window.Cookiebot.consent.marketing?"granted":"denied",functionality_storage:"granted",personalization_storage:window.Cookiebot.consent.preferences?"granted":"denied",security_storage:"granted"})}),window.addEventListener("CookiebotOnDecline",function(){e({ad_storage:"denied",analytics_storage:"denied",ad_user_data:"denied",ad_personalization:"denied",functionality_storage:"granted",personalization_storage:"denied",security_storage:"granted"})}),window.addEventListener("OneTrustGroupsUpdated",function(){if(window.OnetrustActiveGroups){const n=window.OnetrustActiveGroups.split(",");e({ad_storage:-1!==n.indexOf("C0004")?"granted":"denied",analytics_storage:-1!==n.indexOf("C0002")?"granted":"denied",ad_user_data:-1!==n.indexOf("C0004")?"granted":"denied",ad_personalization:-1!==n.indexOf("C0004")?"granted":"denied",functionality_storage:"granted",personalization_storage:-1!==n.indexOf("C0003")?"granted":"denied",security_storage:"granted"})}}),document.addEventListener("cmplz_event_marketing",function(n){const t=n.detail||{};e({ad_storage:t.marketing?"granted":"denied",analytics_storage:t.statistics?"granted":"denied",ad_user_data:t.marketing?"granted":"denied",ad_personalization:t.marketing?"granted":"denied",functionality_storage:"granted",personalization_storage:t.preferences?"granted":"denied",security_storage:"granted"})}),document.addEventListener("cmplz_event_statistics",function(n){e({ad_storage:"denied",analytics_storage:n.detail?"granted":"denied",ad_user_data:"denied",ad_personalization:"denied",functionality_storage:"granted",personalization_storage:"granted",security_storage:"granted"})}),document.addEventListener("cookie_notice_accepted",function(){e({ad_storage:"granted",analytics_storage:"granted",ad_user_data:"granted",ad_personalization:"granted",functionality_storage:"granted",personalization_storage:"granted",security_storage:"granted"})}),document.addEventListener("cookie_notice_refused",function(){e({ad_storage:"denied",analytics_storage:"denied",ad_user_data:"denied",ad_personalization:"denied",functionality_storage:"granted",personalization_storage:"denied",security_storage:"granted"})}),document.addEventListener("cli_user_preference_set",function(n){const t=n.detail||{};e({ad_storage:t.targeting?"granted":"denied",analytics_storage:t.analytics?"granted":"denied",ad_user_data:t.targeting?"granted":"denied",ad_personalization:t.targeting?"granted":"denied",functionality_storage:"granted",personalization_storage:t.functional?"granted":"denied",security_storage:"granted"})}),document.addEventListener("borlabs-cookie-consent-saved",function(n){const t=n.detail.consents||{};e({ad_storage:t.marketing?"granted":"denied",analytics_storage:t.statistics?"granted":"denied",ad_user_data:t.marketing?"granted":"denied",ad_personalization:t.marketing?"granted":"denied",functionality_storage:"granted",personalization_storage:t.preferences?"granted":"denied",security_storage:"granted"})}),window.TrackSure=window.TrackSure||{},window.TrackSure.consent={getState:function(){return window.trackSureConsent?window.trackSureConsent:null},simulateGranted:function(){e({ad_storage:"granted",analytics_storage:"granted",ad_user_data:"granted",ad_personalization:"granted",functionality_storage:"granted",personalization_storage:"granted",security_storage:"granted"})},simulateDenied:function(){e({ad_storage:"denied",analytics_storage:"denied",ad_user_data:"denied",ad_personalization:"denied",functionality_storage:"granted",personalization_storage:"denied",security_storage:"granted"})},getDetectedPlugin:function(){return window.trackSureConsent&&window.trackSureConsent.plugin?window.trackSureConsent.plugin:null},getMode:function(){return window.trackSureConsent?{mode:window.trackSureConsent.mode,granted:window.trackSureConsent.granted}:null},help:function(){}})}();

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.