PageSourceSearch

https://www.aftenposten.no/front-page-assets/_astro/InitializeUnle…_astro_type_script_index_0_lang.BeLImRaZ.js

js aftenposten.no collected 2026-10-01 08:41:40 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]=`ae9d92ac-646b-4892-857b-a684e8c10cc1`,e._sentryDebugIdIdentifier=`sentry-dbid-ae9d92ac-646b-4892-857b-a684e8c10cc1`)}catch{}})();import"./esm.C0OHqOSi.js";import{t as e}from"./browser.DWkYyi2c.js";import{t}from"./consents.Br6FJhmM.js";import{a as n,i as r,o as i}from"./src.Km12I8Em.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.BeLImRaZ.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.