1(function(){"use strict";if(window.heartSoilCookiebotBridge)return;window.heartSoilCookiebotBridge=!0;var loading=!1,writing=!1,retryTimer,retries=0,lastApplied="",MAX_RETRIES=10;function isUS(cookiebot){return/^US(?:-|$)/i.test(cookiebot.userCountry||"")}function desiredConsent(){var cb=window.Cookiebot,gpc=navigator.globalPrivacyControl===!0,payload={};if(gpc&&(payload.sale_of_data=!1),!cb||!cb.consent)return payload;var consent=cb.consent,categories={analytics:consent.statistics===!0,marketing:consent.marketing===!0,preferences:consent.preferences===!0};return isUS(cb)&&gpc?(categories={analytics:!1,marketing:!1,preferences:!1},Object.assign(payload,categories)):cb.hasResponse&&consent.method==="explicit"?Object.assign(payload,categories):cb.hasResponse&&Object.keys(categories).forEach(function(key){categories[key]||(payload[key]=!1)}),isUS(cb)&&payload.marketing===!1&&(payload.sale_of_data=!1),payload}function retry(){retryTimer||retries>=MAX_RETRIES||(retries+=1,retryTimer=window.setTimeout(function(){retryTimer=null,synchronize()},500))}function synchronize(){if(!(loading||writing)){var shopify=window.Shopify;if(!shopify){retry();return}var privacy=shopify.customerPrivacy;if(!privacy||typeof privacy.setTrackingConsent!="function"){if(typeof shopify.loadFeatures!="function"){retry();return}loading=!0;try{shopify.loadFeatures([{name:"consent-tracking-api",version:"0.1"}],function(error){var _a;if(loading=!1,error||typeof((_a=shopify.customerPrivacy)==null?void 0:_a.setTrackingConsent)!="function"){retry();return}synchronize()})}catch(error){loading=!1,retry()}return}var payload=desiredConsent(),signature=JSON.stringify(payload);if(!(!Object.keys(payload).length||signature===lastApplied)){writing=!0;try{privacy.setTrackingConsent(payload,function(result){if(writing=!1,result&&result.error){retry();return}lastApplied=signature,retries=0,synchronize()})}catch(error){writing=!1,retry()}}}}function onConsentChange(){retries=0,synchronize()}["CookiebotOnConsentReady","CookiebotOnAccept","CookiebotOnDecline"].forEach(function(name){window.addEventListener(name,onConsentChange)}),window.addEventListener("pageshow",onConsentChange),synchronize()})(); 2//# sourceMappingURL=/cdn/shop/t/262/assets/cookiebot-shopify-consent.js.map?v=31438076565140611751790197726
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.