PageSourceSearch

https://swedishjobtech.se/assets/nyheter._slug-BVlKzDVU.js

js swedishjobtech.se collected 2026-09-25 20:35:38 UTC 1,883 bytes, 1 lines download raw bytes

1import{M as u,P as p,j as s,L as g}from"./index-BY4i7iah.js";import{u as h}from"./useSuspenseQuery-CxCgh0hD.js";import{M as f,r as j}from"./index-gxrKyF23.js";function _(){const{data:e}=h(u(p.useParams().slug));if(!e)return null;const a=e.published_at?new Date(e.published_at).toLocaleDateString("sv-SE",{year:"numeric",month:"long",day:"numeric"}):"",n=y(e.body_markdown,e.cover_image_url,e.excerpt);return s.jsxs("article",{className:"max-w-3xl mx-auto px-6 lg:px-8 py-16",children:[s.jsx(g,{to:"/nyheter",className:"sjt-eyebrow text-accent hover:underline",children:"← Nyheter"}),s.jsxs("header",{className:"mt-6 mb-10",children:[s.jsx("time",{className:"text-sm font-mono text-muted-foreground",children:a}),s.jsx("h1",{className:"mt-3 text-4xl md:text-5xl font-extrabold text-primary tracking-tight leading-tight",children:e.title}),e.excerpt&&s.jsx("p",{className:"mt-6 text-xl text-muted-foreground leading-relaxed",children:e.excerpt})]}),e.cover_image_url&&s.jsx("img",{src:e.cover_image_url,alt:"",className:"w-full aspect-video object-cover mb-10"}),s.jsx("div",{className:"sjt-post-body max-w-none text-foreground",children:s.jsx(f,{remarkPlugins:[j],children:n})})]})}function m(e){return e.replace(/\s+/g," ").trim().toLowerCase()}function y(e,a,n){let t=e??"";if(a){const c=a.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");t=t.replace(new RegExp(`\\[?!\\[[^\\]]*\\]\\(${c}\\s*(?:"[^"]*")?\\)(?:\\]\\([^)]*\\))?`,"g"),"")}const o=/^\s*\[?!\[[^\]]*\]\([^)]+\)(?:\]\([^)]*\))?\s*/;for(;o.test(t);)t=t.replace(o,"");if(n){const c=t.trimStart(),i=c.match(/^(>\s*)?(.+?)(\n\s*\n|$)/s);if(i){const d=i[2].replace(/^["“”]|["“”]$/g,""),x=n.replace(/^["“”]|["“”]$/g,""),l=m(d),r=m(x);l&&r&&(l===r||r.startsWith(l)||l.startsWith(r.slice(0,Math.min(80,r.length))))&&(t=c.slice(i[0].length))}}for(;o.test(t);)t=t.replace(o,"");return t.trimStart()}export{_ as component};

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.