PageSourceSearch

https://www7.skatteverket.se/portal/static/login.BLphfKDv.js

js skatteverket.se collected 2026-09-24 08:26:59 UTC 2,006 bytes, 1 lines download raw bytes

1import{A as l,a as w,O as d,N as g}from"./authHelper.bundle.CdnpUFyH.js";import{P as S,N as p,F as I}from"./languageServiceListener.bundle.DsXo1wxY.js";import{g as a}from"./globals.bundle.Bzlybwal.js";import{i as P}from"./personServiceListener.bundle.Dap5MFrQ.js";const F=()=>{const e=S.getAll();if(e.url||e.route){let r={persOrgNr:e.id,url:e.url,route:e.route,forceLogin:e.forceLogin};return e.lang&&(r={...r,lang:e.lang}),e.returnUrl&&(r={...r,returnUrl:decodeURIComponent(e.returnUrl)}),r}return null},H=e=>{const r=p(),n=r.authentication;e&&e.length===12&&(n.login+=`&forceLogin=${e}`);const u={userInfoUrl:n.userInfo,loginUrl:n.login,logoutUrl:n.logout,ssoInitUrl:n.init,setHuvudmanUrl:n.omfragad,huvudmanInfoHeaders:r.headers,internal:a.window.Fin.hli,checkSessionTimeout:n.checkSessionTimeout,ombudUrl:n.ombudLink,wapiBaseUrl:n.wapiBaseUrl,rewriteStateReturnUrl:n.rewriteStateReturnUrl};P(r),l.create(u)},L=(e,r,n)=>{l.getInstance().destroy();const u=I.getLogger("login-handler"),c=()=>{g.go(`${a.window.Fin.contextPath}/error`,!0)};e?a.fetch(`${a.window.Fin.contextPath}/routes`).then(t=>t.json()).then(t=>{const s=t.find(i=>i.id===e);return s||(u.warning(`Kunde inte hitta route som matchar id ${e}. Antal routes från BFF: ${t==null?void 0:t.length}`),Promise.reject())}).then(t=>{m(t.url,n)}).catch(()=>{c()}):m(r,n)},m=(e,r)=>{const n=O(r);n?g.go(e,!0,n):g.go(e,!0)},O=e=>{const r=new URLSearchParams;if(Object.keys(e).forEach(n=>{r.set(n,e[n])}),Object.keys(e).length!==0)return`?${r.toString()}`},b=()=>{const e=F();if(!e)return;const{persOrgNr:r,forceLogin:n,route:u,url:c,...t}=e;H(n);let s=!1;const i=()=>{s=!0,L(u,c,t)},U=o=>{if(s)return;if(o.login.info!==w.LoggedIn){l.getInstance().login();return}if(!r){i();return}const f=o.login.user.id,h=o.login.user.huvudman;if(r===f&&h==="self"||r===h){i();return}if(!o.huvudman)return;if(o.huvudman.error){i();return}d.registerOnHuvudmanChange(()=>!0);const v=r===f?null:r;d.changeHuvudman(v)||i()};l.getInstance().onStateChange(o=>{U(o)})};b();

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.