PageSourceSearch

https://hemis.no/dist/all/entry/98758-c636be01fac86f083f4f.js

js hemis.no collected 2026-10-08 04:33:04 UTC 1,424 bytes, 1 lines download raw bytes

1"use strict";(globalThis.webpackChunkwips_components_scripts||=[]).push([[98758],{"11b8277acd6660ff"(r,t,e){e.d(t,{A:()=>i}),e("1519ef9f27f54b60"),e("07a8db537f1fb869");class i{currentArticlePromise;currentArticle;constructor(r,t,e,i){this.articleListUrl=r,this.currentArticleUrl=t,this.filter=e,this.additionalListUrlApiParams=i}createFilterParams(){const r=[];return Object.entries(this.filter??{}).forEach(([t,e])=>{e instanceof Array?e.forEach(e=>{r.push(["docFilter["+t+"][]",e])}):r.push(["docFilter["+t,"]"+e])}),Object.entries(this.additionalListUrlApiParams??{}).forEach(([t,e])=>{r.push([t,""+e])}),r}createPagedUrl(r){if(!this.articleListUrl)return null;const t=[];r>1&&t.push(["p",""+r]),this.filter&&t.push(...this.createFilterParams());const e=new URL(this.articleListUrl);return t.forEach(([r,t])=>e.searchParams.append(r,t)),e.toString()}async fetchArticlesByPageNumber(r){r<1&&(r=1);const t=this.createPagedUrl(r);if(!t)return[];const e=await fetch(t),i=await e.json();return i?.articles??[]}async fetchCurrentArticle(){return null!==(this.currentArticle??null)?Promise.resolve(this.currentArticle):(null!==(this.currentArticlePromise??null)||(this.currentArticlePromise=new Promise(r=>{this.currentArticleUrl?(async()=>{const t=await fetch(new URL(this.currentArticleUrl??""),{}),e=await t.json();this.currentArticle=e?.article??null,r(this.currentArticle)})():r(null)})),this.currentArticlePromise)}}}}]);

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.