PageSourceSearch

https://getdex.com/assets/consent-Bmm02nKA.js

js getdex.com collected 2026-09-24 09:05:19 UTC 1,813 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:`v5.20260924.1202-production.4880d64`};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`caf4528f-8261-43ab-af44-ffb0dfe338ce`,e._sentryDebugIdIdentifier=`sentry-dbid-caf4528f-8261-43ab-af44-ffb0dfe338ce`)}catch{}})();var e=new Set(`AT.BE.BG.CY.CZ.DE.DK.EE.ES.FI.FR.GB.GF.GG.GI.GP.GR.HR.HU.IE.IM.IS.IT.JE.LI.LT.LU.LV.MF.MQ.MT.NL.NO.PL.PT.RE.RO.SE.SI.SK.YT`.split(`.`));function t(t,n){let r=t.trim().toUpperCase(),i=n?.trim().toUpperCase();return e.has(r)||r===`CA`&&i===`QC`}var n=`dex.analytics.consent`,r=180,i=`dex:analytics:consent-changed`,a=null,o=!1,s=!1;function c(){if(typeof window>`u`)return`pending`;if(window.navigator.globalPrivacyControl===!0)return`denied`;if(a)return a;try{let e=window.localStorage.getItem(n);if(!e)return`pending`;let t=JSON.parse(e);return(Date.now()-t.decidedAt)/864e5>r?`pending`:t.status}catch{return`pending`}}function l(e){if(!(typeof window>`u`)){a=e;try{let t={status:e,decidedAt:Date.now()};window.localStorage.setItem(n,JSON.stringify(t))}catch{}f(e)}}function u(){return s&&c()===`pending`}async function d(){if(!(typeof window>`u`||o||c()!==`pending`)){o=!0;try{let e=await fetch(`/api/privacy/region`);if(!e.ok)return;let n=await e.json();if(typeof n.country!=`string`)return;let r=typeof n.regionCode==`string`?n.regionCode:null;if(t(n.country,r)){s=!0,f(`pending`);return}a=`granted`,f(`granted`)}catch{}}}function f(e){try{window.dispatchEvent(new CustomEvent(i,{detail:e}))}catch{}}function p(e){if(typeof window>`u`)return()=>{};function t(){e(c())}return window.addEventListener(i,t),()=>{window.removeEventListener(i,t)}}export{p as a,l as i,u as n,d as r,c as t};

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.