PageSourceSearch

https://www.spitalclinic.com/corporate/_astro/index.astro_astro_type_script_index_0_lang.BB6TzRRV.js

js spitalclinic.com collected 2026-10-09 00:20:34 UTC 4,225 bytes, 1 lines download raw bytes

1const n=document.querySelector("[data-dl]"),I=document.getElementById("day-data");if(n&&I){let H=function(t){t.dataset.text||(t.dataset.text=(t.textContent||"").trim()),t.textContent="";const e=(t.dataset.text||"").split(/\s+/).map((r,L)=>{L&&t.append(" ");const v=document.createElement("span");return v.textContent=r,t.append(v),v}),s=[];let o=Number.NaN;e.forEach(r=>{r.offsetTop!==o&&(s.push([]),o=r.offsetTop),s[s.length-1].push(r.textContent||"")}),t.innerHTML=s.map((r,L)=>`<span class="dl-lm"><span style="--l:${L}">${l(r.join(" "))}</span></span>`).join("")},N=function(){const t=J();i.style.setProperty("--n",String(t.moments.length)),i.innerHTML=t.moments.map((s,o)=>`<li class="dl-item ${o%2===0?"is-top":"is-bottom"}${s.us?" is-us":""}" style="--i:${o}"><span class="dl-stem" aria-hidden="true"></span>`+(s.us?`<span class="dl-dot dl-logo" title="Spital">${B}</span>`:'<span class="dl-dot" aria-hidden="true"></span>')+`<div class="dl-copy"><p class="dl-time"><span class="dl-ico" aria-hidden="true"><svg viewBox="0 0 24 24">${z[s.icon]??""}</svg></span><span class="dl-tt">${l(s.t)}</span></p><p class="dl-text">${l(s.text)}</p></div></li>`).join(""),F.innerHTML=`<strong>${l(t.stat)}</strong> <span>${l(t.statText)}</span>`;const e=t.moments.filter(s=>s.h!==null);O.textContent=`Monday, ${e[0].t} to ${e[e.length-1].t}`},P=function(){c=Math.max(0,h.scrollWidth-window.innerWidth),n.style.setProperty("--dist",c+"px"),f=$.offsetLeft,k=Math.max(1,$.offsetWidth),g=Array.from(i.querySelectorAll(".dl-item")).map(t=>({el:t,x:f+i.offsetLeft+t.offsetLeft})),g.push({el:u,x:f+u.offsetLeft})},E=function(){if(x=!1,!p)return;const e=(c?C(-n.getBoundingClientRect().top/c,0,1):0)*c;h.style.transform=`translate3d(${-e}px,0,0)`;const s=e+window.innerWidth*.8;M.style.transform=`scaleX(${C((s-f)/k,0,1)})`,g.forEach(o=>o.el.classList.toggle("is-in",s>=o.x))},j=function(){d?.disconnect();const t=[...Array.from(i.querySelectorAll(".dl-item")),u];if(X.matches||!("IntersectionObserver"in window)){t.forEach(e=>e.classList.add("is-in"));return}d=new IntersectionObserver(e=>e.forEach(s=>{s.isIntersecting&&(s.target.classList.add("is-in"),d?.unobserve(s.target))}),{rootMargin:"0px 0px -12% 0px"}),t.forEach(e=>d.observe(e))},m=function(){p=T.matches,n.classList.toggle("is-h",p),n.classList.add("is-anim"),h.style.transform="",M.style.transform="",u.classList.remove("is-in"),i.querySelectorAll(".dl-tt, .dl-text").forEach(H),p?(d?.disconnect(),P(),requestAnimationFrame(E)):(n.style.removeProperty("--dist"),j())},S=function(t,e,s){t.querySelectorAll("button").forEach(o=>o.setAttribute("aria-pressed",String(o.getAttribute(e)===s)))},q=function(){n.classList.add("is-swapping"),window.setTimeout(()=>{N(),m(),requestAnimationFrame(()=>n.classList.remove("is-swapping"))},170)};const y=JSON.parse(I.textContent||"{}"),b=y.scenarios,z=y.icons,B=y.mark,h=n.querySelector("[data-track]"),$=n.querySelector("[data-body]"),i=n.querySelector("[data-items]"),M=n.querySelector("[data-line]"),F=n.querySelector("[data-stat]"),O=n.querySelector("[data-period]"),u=n.querySelector("[data-end]"),A=n.querySelector("[data-day-pick]"),w=n.querySelector("[data-day-mode]"),T=window.matchMedia("(min-width: 901px) and (prefers-reduced-motion: no-preference)"),X=window.matchMedia("(prefers-reduced-motion: reduce)"),a={scenario:"ill",mode:"clinic"};let p=!1,c=0,f=0,k=1,g=[],d=null,x=!1;const C=(t,e,s)=>Math.min(s,Math.max(e,t)),l=t=>{const e=document.createElement("div");return e.textContent=t,e.innerHTML},J=()=>{const t=b[a.scenario];return t.modes?t.modes[a.mode]:t},R=()=>{x||(x=!0,requestAnimationFrame(E))};A.addEventListener("click",t=>{const e=t.target.closest("button[data-scenario]");!e||e.dataset.scenario===a.scenario||(a.scenario=e.dataset.scenario,S(A,"data-scenario",a.scenario),w.hidden=!b[a.scenario].modes,q())}),w.addEventListener("click",t=>{const e=t.target.closest("button[data-mode]");!e||e.dataset.mode===a.mode||(a.mode=e.dataset.mode,S(w,"data-mode",a.mode),q())}),window.addEventListener("scroll",R,{passive:!0});let W=0;window.addEventListener("resize",()=>{window.clearTimeout(W),W=window.setTimeout(m,150)}),T.addEventListener("change",m),(document.fonts?document.fonts.ready:Prom
1ise.resolve()).then(m)}

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.