PageSourceSearch

https://www.svd.se/front-page-assets/_astro/InitializeUnleash.astro_astro_type_script_index_0_lang.CDfOEgU6.js

js svd.se collected 2026-10-02 08:44:28 UTC 1,890 bytes, 2 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:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`9cf2c3a1-a03a-4eef-b07d-f31bfd7528b5`,e._sentryDebugIdIdentifier=`sentry-dbid-9cf2c3a1-a03a-4eef-b07d-f31bfd7528b5`)}catch{}})();import"./esm.EeTBkUcy.js";import{t as e}from"./browser.CNgOLfFv.js";import{t}from"./consents.Br6FJhmM.js";import{a as n,i as r,o as i}from"./src.D5cx5ygl.js";import{getAccountStoreSync as a}from"https://esm.schibsted.tech/@schibsted/nanostores-account";var o=document.getElementById(`unleash-config`);if(!o?.textContent)throw Error(`Missing Unleash config!`);var{enabled:s=!0,...c}=JSON.parse(o.textContent),l=await t(`analytics`),u=await t(`personalisation`);if(!s)i();else if(l!==`1`||u!==`1`)n(c);else{let t=new e,n=t.getCookie(`_pulse2data`)?.split(`,`)?.[0],i=a()?.identity,o=i&&await i.isLoggedIn(),s;o&&(s=await i.getUserId());let l=new URLSearchParams(window.location.search).get(`x-sch-variant`),u=t.getCookie(`x-sch-variant-override`)?.split(`.`)?.[0],d=(l??u)?.split(`,`).map(e=>{let[t,n]=e.split(`=`);return{enabled:!0,name:t,impressionData:!1,variant:{name:n??`disabled`,enabled:n!==void 0}}});if(d&&console.log(`Unleash feature flags overridden from query or cookie:`,JSON.stringify(d,null,2)),r({...c,bootstrap:d,context:{...c.context,userId:s??n,properties:{...c.context?.properties,host:window.location.hostname,isLoggedIn:o,renderingContext:`client`,scope:`front`,userId:s}}}),c?.context?.properties?.brand===`ab`){let e=await(await fetch(`/front-page-api/variator`,{credentials:`include`})).json();e?.cookieValue&&(document.cookie=`x-sch-variant=${encodeURIComponent(e.cookieValue)}; path=/; domain=aftonbladet.se; max-age=604800`)}}
2//# sourceMappingURL=InitializeUnleash.astro_astro_type_script_index_0_lang.CDfOEgU6.js.map

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.