PageSourceSearch

https://hemma.sbc.se/kundportal/chunk-HAAUI2I7.js

js sbc.se collected 2026-09-24 23:31:56 UTC 1,029 bytes, 1 lines download raw bytes

1import{Bh as u,W as p,_ as f,ka as a,p as o}from"./chunk-MWOM466B.js";function l(s){return s.toLowerCase().replace(/[åä]/g,"a").replace(/ö/g,"o").replace(/[^a-z0-9]+/g,"-").replace(/^-|-$/g,"")}var I=(()=>{class s{constructor(){this.apiService=f(u),this.apps=a([]),this.loaded=a(!1),this.allItems=a([]),this.fetchStarted=!1}fetchApps(){this.fetchStarted||(this.fetchStarted=!0,this.apiService.fetch("embedded-menu-items").pipe(o(e=>e[0]?.data??[])).subscribe({next:e=>{let r=i=>{for(let t of i)t.slug=l(t.name),t.submenu&&r(t.submenu)};r(e),this.apps.set(e);let n=[],c=i=>{for(let t of i)n.push(t),t.submenu&&c(t.submenu)};c(e),this.allItems.set(n),this.loaded.set(!0)},error:()=>{this.fetchStarted=!1}}))}getAppBySlug(e){return this.allItems().find(r=>r.slug===e)}fetchToken(){return this.apiService.fetch("embedded-menu-items/token").pipe(o(e=>e[0]?.data?.token??""))}static{this.\u0275fac=function(r){return new(r||s)}}static{this.\u0275prov=p({token:s,factory:s.\u0275fac,providedIn:"root"})}}return s})();export{I as a};

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.