PageSourceSearch

https://www.klaviyo.com/blog/_astro/ConsentManager.astro_astro_typ…?dpl=6ab449c5aed876000820adca

js klaviyo.com collected 2026-09-24 07:57:28 UTC 2,882 bytes, 1 lines download raw bytes

1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`e3d1b1435265063faa39368d0dffdf4e7222ee27`};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`2db6953f-44f7-435a-9bbe-d1d5a6590214`,e._sentryDebugIdIdentifier=`sentry-dbid-2db6953f-44f7-435a-9bbe-d1d5a6590214`)}catch{}})();import{i as e,n as t}from"./scale-consent-ui.CcsG5_kC.js?dpl=6ab449c5aed876000820adca";var n=()=>{if(document.cookie.split(`; `).find(e=>e.startsWith(`tcm=`)))return;let e=document.cookie.split(`; `).find(e=>e.startsWith(`OptanonConsent=`));if(!e)return;let t=decodeURIComponent(e.substring(e.indexOf(`=`)+1)).match(/(?:^|&)groups=([^&]+)/);if(!t||!t[1])return;let n=t[1].split(`,`).reduce((e,t)=>{let[n,r]=t.split(`:`);return e[n]=r===`1`,e},{}),r={C0002:`Analytics`,C0003:`Analytics`,C0004:`Advertising`,C0008:`Analytics`},i=window.airgap?.getConsent?.()?.purposes||{},a=window.airgap?.getRegimePurposes?.()||new Set([]),o={...i||{}};Object.entries(r).forEach(([e,t])=>{n[e]!==void 0&&a.has(t)&&(o[t]=n[e])});let s=window._airgapLoadEvent instanceof Event?window._airgapLoadEvent:null;s||console.error(`airgapLoadEvent not found: `,s),s&&window.airgap?.setConsent?.(s,{...i,...o})},r=(e,t)=>{let n=e.detail.consent||(typeof window.airgap?.getConsent==`function`?window.airgap.getConsent():void 0),r=n?.purposes;if(!n||!r)return;let i=r.Functional===!0||r.Functional===`Auto`,a=r.Analytics===!0||r.Analytics===`Auto`,o=r.Advertising===!0||r.Advertising===`Auto`,s=r.SaleOfInfo===!0||r.SaleOfInfo===`Auto`,c=window.airgap?.getRegimePurposes()||new Set([]);c.size>0&&(i&&=c.has(`Functional`),a&&=c.has(`Analytics`),o&&=c.has(`Advertising`),s&&=c.has(`SaleOfInfo`));let l=(window.airgap?.getRegimes()||new Set([])).has(`US_DNSS`),u={functional:i,analytics:a,advertising:o,saleOfInfo:!l||s};(window.dataLayer=window.dataLayer||[]).push({event:t,transcendConsent:u});let d=window._hsp=window._hsp||[],f=window._hsq=window._hsq||[],p=e=>{document.cookie=`${e}= ; expires = Thu, 01 Jan 1970 00:00:00 GMT`};if(a)p(`_kvyo_mkt_opt_out`),f.push([`doNotTrack`,{track:!0}]),window.statsigClient&&window.statsigClient.updateRuntimeOptions({loggingEnabled:`browser-only`,disableStorage:!1});else{p(`_kvyo_mkt_exp`),p(`_kvyo_mkt_id`);let e=new Date;e.setFullYear(e.getFullYear()+1),document.cookie=`_kvyo_mkt_opt_out=true; expires=${e.toUTCString()};`,f.push([`doNotTrack`]),d.push([`revokeCookieConsent`]),window.statsigClient&&window.statsigClient.updateRuntimeOptions({loggingEnabled:`disabled`,disableStorage:!0})}d.push([`setHubSpotConsent`,{analytics:a,advertisement:o,functionality:i}])};(()=>{let i=e();t(),i.ready(e=>{n(),e.addEventListener(`consent-resolution`,e=>r(e,`TranscendConsentLoaded`)),e.addEventListener(`consent-change`,e=>r(e,`TranscendConsentUpdated`))})})();

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.