PageSourceSearch

https://www.fosna-folket.no/article-page/ScriptLoader.astro_astro_type_script_index_0_lang.BpvGcFQ4.js

js fosna-folket.no collected 2026-09-24 21:43:23 UTC 1,510 bytes, 1 lines download raw bytes

1import{t as e}from"./dist.Cnxa_LV8.js";import{t}from"./store.DxJag6Rn.js";var n=class extends HTMLElement{async connectedCallback(){let n=document.getElementById(`script-loader-config`),r=[];if(n instanceof HTMLScriptElement){try{r=JSON.parse(n.textContent||`[]`)}catch(t){e.debug(`[script-loader] Failed to parse candidateScripts:`,t)}n.remove()}if(r.length===0)return;let i=r.some(e=>e.segments.length>0),a;if(!i)e.debug(`[script-loader] No scripts have segments, loading all candidate scripts`),a=r;else{e.debug(`[script-loader] Some scripts have segments, proceeding with user sync`);let n=t();await n.syncUser();let i=n.$user.get();a=r.filter(t=>t.segments.length===0?!0:i?.profile?t.segments.every(t=>{if(!t.key.startsWith(`touchpoint.profile.`))return!1;let n=t.key.replace(`touchpoint.profile.`,``),r=null;try{r=localStorage.getItem(`segment-override-${n}`)}catch(t){e.debug(`[script-loader] localStorage.getItem failed:`,t),r=null}if(r!==null){if(e.debug(`[script-loader] segment override found for %s: %s`,n,r),t.operator===`equals`)return r===t.value;if(t.operator===`not-equals`)return r!==t.value}let a=i.profile?.[n];return t.operator===`equals`?a===t.value:t.operator===`not-equals`&&a!==t.value}):!1)}e.debug(`[script-loader] resolvedScripts: %o`,a),a.forEach(e=>{let t=document.createElement(`script`);t.type=`text/javascript`,t.src=e.scriptUrl,t.async=!0;let n=document.body||document.head;n&&n.appendChild(t)})}};customElements.get(`script-loader`)||customElements.define(`script-loader`,n);

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.