1import{_ as W}from"./2vL2aXxc.js";import{d as w,k as _,l as f,c as k,f as y,t as $,n as B,o as r,A as v,J as A,g as S,a as s,m as o,w as p,F as b,y as C,O as V,K as j,P as O,Q as P,u as U}from"./CHMWgbwv.js";import{_ as q}from"./TpniBllc.js";import{_ as Y}from"./D-IWwMng.js";import{_ as z}from"./cU6GIhuz.js";import{_ as G}from"./ClZsJ0Wn.js";import{_ as J}from"./BqMupdzc.js";import{_ as K}from"./yYekMyLS.js";import{S as Q,a as X,_ as Z}from"./Bo5ac6f4.js";import{_ as ee}from"./C4P8eGyX.js";import{u as D}from"./S2pw9Pn5.js";import{m as te}from"./mlLpPTIM.js";import{b as ne}from"./CDNc6C6L.js";import"./BMeCs3aN.js";import"./CF2Y8Eh2.js";import"./BQEFTfAc.js";import"./D0Hj2iGy.js";import"./CJB8gUT0.js";import"./BY7pCchF.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"28d2c28e0945b6469ec584e101c9514c17a2d4a0"};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="65ae5898-176a-4a4d-9dad-a8e094f7bd6a",e._sentryDebugIdIdentifier="sentry-dbid-65ae5898-176a-4a4d-9dad-a8e094f7bd6a")}catch{}})();const oe={class:"container flex flex-col items-center text-center"},ae={class:"mt-2 headline-xs"},se={class:"mt-4 max-w-5xl body-m"},re=w({__name:"ThemeHero",props:{theme:{}},setup(e){return(t,a)=>{const c=W;return r(),_("div",{class:"py-10 mb-8",style:B({backgroundColor:e.theme.color??void 0})},[f("div",oe,[e.theme.image?(r(),k(c,{key:0,src:e.theme.image,width:"96",height:"96",alt:e.theme.title??"",class:"w-24 h-24 object-cover rounded-lg"},null,8,["src","alt"])):y("",!0),a[0]||(a[0]=f("p",{class:"mt-10 body-s-sans uppercase text-gray-700 font-bold"}," UGENS TEMA ",-1)),f("h1",ae,$(e.theme.title),1),f("h2",se,$(e.theme.text),1)])],4)}}}),ce=Object.assign(re,{__name:"ThemeHero"}),me={key:0},ie=w({__name:"WeeklyThemes",props:{count:{default:10},paperId:{default:1}},async setup(e){let t,a;const c=e,g=v(),{data:l,error:i}=([t,a]=A(async()=>D(S(()=>`themes-${c.count}-${c.paperId}`),async()=>(await g.$api.content.getAllWeeklyThemes({$top:c.count},c.paperId)).data??[],"$Cr5f1V-cic")),t=await t,a(),t);return i.value&&console.error(i.value,"Error fetching themes"),(n,T)=>{const m=ee,d=X;return s(l)&&s(l).length>0?(r(),_("div",me,[o(d,null,{default:p(()=>[(r(!0),_(b,null,C(s(l),(h,x)=>(r(),k(s(Q),{key:x},{default:p(()=>[o(m,{theme:h},null,8,["theme"])]),_:2},1024))),128))]),_:1})])):y("",!0)}}}),_e=Object.assign(ie,{__name:"ListWeeklyThemes"}),le={key:0},Le=w({__name:"theme",async setup(e){let t,a;const c=v(),g=U(),l=V(),i=j(),{data:n,error:T}=([t,a]=A(async()=>D(S(()=>`theme-${i.params.theme}`),async()=>{if(typeof i.params.theme!="string")return null;const m=await c.$api.content.getWeeklyTheme(i.params.theme);return m?{...m,articles:m.articles.map(te)}:null},"$xMYSA1kR18")),t=await t,a(),t);if(T.value)throw O({statusCode:404,message:"pageNotFound"});return P(()=>{const m=g.public.site,d={image:n.value?.image??"",description:n.value?.text??""};return ne(m,l,n.value?.title??"",d)}),(m,d)=>{const h=ce,x=q,E=Y,L=z,I=G,N=J,R=K,H=Z,M=_e;return s(n)?(r(),_("div",le,[o(h,{theme:s(n),class:"pb-8 md:pb-24"},null,8,["theme"]),o(R,{class:"container no-print"},{left:p(()=>[o(x)]),main:p(()=>[(r(!0),_(b,null,C(s(n).articles,(F,u)=>(r(),_(b,{key:"article"+u},[o(E,{article:F,index:u,"show-teaser":u===0,direction:u===0?"col":"row","show-image":""},null,8,["article","index","show-teaser","direction"]),s(n).articles&&s(n).articles.length>1?(r(),k(L,{key:"divider"+u})):y("",!0)],64))),128)),o(I,{class:"mb-12"})]),right:p(()=>[o(N,{class:"hidden xl:block",id:"rec1"})]),_:1}),o(H,{title:"Få hele sammenhængen i et aktuelt tema",subtitle:"Find de seneste temaer her",link:{name:"themeweek2"}}),o(M)])):y("",!0)}}});export{Le 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.