PageSourceSearch

https://www.mm.dk/_nuxt/Dpiam1XH.js

js mm.dk collected 2026-09-24 09:28:47 UTC 3,773 bytes, 1 lines download raw bytes

1import{_ as W}from"./B5FsY1I_.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,m as o,w as p,F as x,y as C,O as V,K as j,P as O,Q as P,u as U}from"./VWM4F0ZR.js";import{_ as q}from"./puflqF_o.js";import{_ as Y}from"./BOAzOCJs.js";import{_ as z}from"./DgTm3Ium.js";import{_ as G}from"./j7s6ok0i.js";import{_ as J}from"./AymggqdV.js";import{_ as K}from"./DIlWOFak.js";import{S as Q,a as X,_ as Z}from"./CioG3gL4.js";import{_ as ee}from"./LWHoVFAe.js";import{u as D}from"./BkEsQxzi.js";import{m as te}from"./Ce0DMRY6.js";import{b as ne}from"./DUwh2HwV.js";import"./BQc9resV.js";import"./DgWqIdTv.js";import"./ChPwoI2J.js";import"./DHbC6Xq3.js";import"./DV0otp7B.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:"4acf542fb7903612aa6d189326669db9e9abf052"};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="004c926c-85cf-4213-b445-0870a0bbd1b9",e._sentryDebugIdIdentifier="sentry-dbid-004c926c-85cf-4213-b445-0870a0bbd1b9")}catch{}})();const oe={class:"container flex flex-col items-center text-center"},se={class:"mt-2 headline-xs"},ae={class:"mt-4 max-w-5xl body-m"},re=w({__name:"ThemeHero",props:{theme:{}},setup(e){return(t,s)=>{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),s[0]||(s[0]=f("p",{class:"mt-10 body-s-sans uppercase text-gray-700 font-bold"}," UGENS TEMA ",-1)),f("h1",se,$(e.theme.title),1),f("h2",ae,$(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,s;const c=e,b=v(),{data:l,error:i}=([t,s]=A(async()=>D(S(()=>`themes-${c.count}-${c.paperId}`),async()=>(await b.$api.content.getAllWeeklyThemes({$top:c.count},c.paperId)).data??[],"$Cr5f1V-cic")),t=await t,s(),t);return i.value&&console.error(i.value,"Error fetching themes"),(n,T)=>{const m=ee,d=X;return a(l)&&a(l).length>0?(r(),_("div",me,[o(d,null,{default:p(()=>[(r(!0),_(x,null,C(a(l),(h,g)=>(r(),k(a(Q),{key:g},{default:p(()=>[o(m,{theme:h},null,8,["theme"])]),_:2},1024))),128))]),_:1})])):y("",!0)}}}),_e=Object.assign(ie,{__name:"ListWeeklyThemes"}),le={key:0},Ee=w({__name:"theme",async setup(e){let t,s;const c=v(),b=U(),l=V(),i=j(),{data:n,error:T}=([t,s]=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,s(),t);if(T.value)throw O({statusCode:404,message:"pageNotFound"});return P(()=>{const m=b.public.site,d={image:n.value?.image??"",description:n.value?.text??""};return ne(m,l,n.value?.title??"",d)}),(m,d)=>{const h=ce,g=q,E=Y,L=z,I=G,N=J,R=K,H=Z,M=_e;return a(n)?(r(),_("div",le,[o(h,{theme:a(n),class:"pb-8 md:pb-24"},null,8,["theme"]),o(R,{class:"container no-print"},{left:p(()=>[o(g)]),main:p(()=>[(r(!0),_(x,null,C(a(n).articles,(F,u)=>(r(),_(x,{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"]),a(n).articles&&a(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{Ee 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.