PageSourceSearch

https://aabaf1885.dk/assets/VennerNyhedDetalje-B3wgttn-.js

js aabaf1885.dk collected 2026-10-02 20:35:56 UTC 2,475 bytes, 1 lines download raw bytes

1import{k as l,d as r,j as e,P as o,L as c,s as d}from"./index-OsPsciba.js";import{A as m}from"./ArticleContent-CZpq16vr.js";import{S as u}from"./SubGroupNewsCard-CCniomxE.js";import{C as x}from"./chevron-left-CXW00cTi.js";import"./newspaper-Bc50U9W8.js";const y=()=>{const{slug:a}=l(),{data:s,isLoading:i}=r({queryKey:["venner-news-detail",a],queryFn:async()=>{const{data:t}=await d.from("venner_news").select("*").eq("slug",a).single();return t},enabled:!!a}),{data:n}=r({queryKey:["venner-news-related",a],queryFn:async()=>{const{data:t}=await d.from("venner_news").select("id, title, slug, excerpt, publish_date, featured_image").eq("status","published").neq("slug",a).order("publish_date",{ascending:!1}).limit(3);return t||[]},enabled:!!a});return e.jsxs(o,{children:[e.jsx("section",{className:"topbar-gradient py-10 md:py-16",children:e.jsxs("div",{className:"container",children:[e.jsxs(c,{to:"/aabs-venner/nyheder",className:"inline-flex items-center gap-1 text-topbar-foreground/70 hover:text-topbar-foreground text-sm mb-3 transition-colors",children:[e.jsx(x,{className:"w-4 h-4"})," Nyheder"]}),e.jsx("h1",{className:"font-heading text-3xl md:text-5xl text-topbar-foreground tracking-wide",children:(s==null?void 0:s.title)||"Indlæser..."}),(s==null?void 0:s.publish_date)&&e.jsxs("p",{className:"text-topbar-foreground/70 mt-2 text-sm",children:[new Date(s.publish_date).toLocaleDateString("da-DK",{day:"numeric",month:"long",year:"numeric"}),s.author_name&&` · ${s.author_name}`]})]})}),e.jsx("section",{className:"container py-10 md:py-14 max-w-3xl",children:i?e.jsxs("div",{className:"animate-pulse space-y-4",children:[e.jsx("div",{className:"h-4 bg-muted rounded w-3/4"}),e.jsx("div",{className:"h-4 bg-muted rounded w-full"})]}):s!=null&&s.content?e.jsxs(e.Fragment,{children:[s.featured_image&&e.jsx("img",{loading:"lazy",decoding:"async",src:s.featured_image,alt:s.title,className:"w-full rounded-lg mb-8"}),e.jsx(m,{content:s.content})]}):e.jsx("p",{className:"text-muted-foreground",children:"Artiklen blev ikke fundet."})}),n&&n.length>0&&e.jsx("section",{className:"bg-card border-t border-border py-10 md:py-14",children:e.jsxs("div",{className:"container",children:[e.jsx("h2",{className:"font-heading text-xl md:text-2xl text-foreground tracking-wide mb-6",children:"Flere nyheder"}),e.jsx("div",{className:"grid md:grid-cols-3 gap-6",children:n.map(t=>e.jsx(u,{item:t,hrefPrefix:"/aabs-venner/nyheder"},t.id))})]})})]})};export{y as default};

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.