PageSourceSearch

https://www.zeilen.nl/build/assets/sso-silent-login-8drsJE07.js

js zeilen.nl collected 2026-10-02 03:18:04 UTC 2,046 bytes, 1 lines download raw bytes

1import{r as m}from"./helpers-D3mYkYaM.js";const o="sso_checked",E=14400*1e3,f=900*1e3,w="sso_auto_suppressed";function _(e){const t=document.cookie.split("; ").find(n=>n.startsWith(`${e}=`));return t?decodeURIComponent(t.split("=").slice(1).join("=")):null}function h(e){document.cookie=`${e}=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT; SameSite=Lax`}function O(){const e=_(w);if(!e)return!1;const t=Number.parseInt(e,10);return!Number.isFinite(t)||t<=Date.now()?(h(w),!1):!0}function r(e=E){const t={expiresAt:Date.now()+e};window.sessionStorage.setItem(o,JSON.stringify(t))}function g(){const e=window.sessionStorage.getItem(o);if(!e)return!1;try{const t=JSON.parse(e);return!t||typeof t.expiresAt!="number"||Date.now()>=t.expiresAt?(window.sessionStorage.removeItem(o),!1):!0}catch{return window.sessionStorage.removeItem(o),!1}}function I(){if(!window.SSO_ENABLED||window.SSO_AUTHENTICATED||O()||g())return!1;const e=window.location.pathname;return!(e==="/login"||e==="/logout"||e.startsWith("/sso/"))}function S(){const e=crypto.randomUUID(),t=new URL(window.SSO_PROVIDER_CHECK_PATH,window.SSO_PROVIDER_URL);t.searchParams.set("state",e),t.searchParams.set("origin",`https://${window.SSO_ORIGIN}`);const n=new URL(window.SSO_PROVIDER_URL).origin;let a=!1;const s=document.createElement("iframe");s.src=t,s.setAttribute("title","sso-session-check"),s.setAttribute("aria-hidden","true"),s.style.position="absolute",s.style.width="0",s.style.height="0",s.style.border="0",s.style.left="-9999px",s.style.top="-9999px";let u=!1;const c=()=>{u||(u=!0,window.removeEventListener("message",d),window.clearTimeout(p),s.remove(),a||r(f))},d=l=>{if(l.origin!==n)return;const i=l.data||{};if(i.type==="sso:session-status"&&i.state===e){if(a=!0,c(),i.active===!0){r(),window.location.assign("/login");return}r(f)}},p=window.setTimeout(()=>c(),5e3);window.addEventListener("message",d),document.body.appendChild(s)}m(()=>{if(I()){if("requestIdleCallback"in window){requestIdleCallback(()=>S(),{timeout:2e3});return}window.setTimeout(()=>S(),500)}});

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.