PageSourceSearch

https://alternativet.dk/_nuxt/CG6aqi3T.js

js alternativet.dk collected 2026-10-02 06:04:42 UTC 8,618 bytes, 1 lines download raw bytes

1import{_ as H}from"./Df4CmME_.js";import{_ as A}from"./DEohP0_5.js";import{g as L,i as T,h as z,e as F,j as l,N as O,Q as R,u as D,a0 as E,c as r,m as o,a as e,t as c,d as m,A as a,b as u,F as _,s as h,w as C,a6 as I,k as Q,W as S,o as n,x as U}from"#entry";import{_ as q}from"./DlAUqK2U.js";const P={class:"min-h-screen"},W={key:0,class:"flex justify-center py-16"},Y={key:1,class:"vision-detail"},G={class:"vision-header relative overflow-hidden shadow-md rounded-t-2xl bg-[var(--color-jade)] flex items-center",style:{minHeight:"var(--header-offset)",padding:"2.5rem"},"data-header-style":"light"},J={class:"font-bold text-white text-[length:var(--text-policy)]",style:{paddingLeft:"calc(clamp(6rem, 13vw, 28rem))"}},K={class:"vision-content bg-white"},X={class:"container-custom px-4 sm:px-8 md:px-28 lg:px-32 xl:px-48 pb-16"},Z={class:"grid grid-cols-1 lg:grid-cols-3 gap-8 md:gap-12"},ee={class:"lg:col-span-2"},te={key:0,class:"text-xl italic opacity-90 mb-8 leading-relaxed"},se={key:1,class:"mb-8"},oe={key:2,class:"mb-8"},ne={key:3,class:"mb-8"},re={key:4,class:"mb-8"},ie={key:5,class:"mt-12"},le={class:"space-y-4"},ae={class:"font-medium group-hover:text-[var(--color-a-green)] transition-colors"},ce={key:0,class:"text-sm text-dark-green-600 mt-1 line-clamp-2"},de={class:"lg:col-span-1"},me={class:"sticky top-32 space-y-6"},ue={key:0},pe={class:"space-y-2"},ve=["src","alt"],ge={key:1,class:"w-8 h-8 rounded-full bg-dark-green-50 flex items-center justify-center"},_e={class:"text-sm"},he={key:1},xe={class:"flex flex-wrap gap-2"},ke={key:2},fe={class:"space-y-2"},be=["href"],ye={class:"flex-1 truncate group-hover:text-[var(--color-a-green)]"},we={key:2,class:"text-center py-16"},Ve=L({__name:"[slug]",async setup(Ce){let p,x;const M=T(),k=z(),f=F(),v=l(()=>Q(f.value)),j=l(()=>M.params.slug);function B(){window.history.length>1?k.back():k.push("/politik")}const{data:N,pending:$}=([p,x]=O(()=>I(`/api/proxy/catalog-items/by-slug/${j.value}`,{query:{type:"vision"}},"$UQ02tSM4_Y")),p=await p,x(),p),t=l(()=>N.value?.data);if(!t.value)throw R({statusCode:404,statusMessage:"Vision ikke fundet",fatal:!0});const b=l(()=>t.value?.children?t.value.children.filter(w=>w.published):[]),d=l(()=>t.value?.active_content?.title),y=l(()=>t.value?.active_content?.summary);return D({title:l(()=>d.value?`${d.value} - Vision - ${v.value}`:`Vision - ${v.value}`),meta:[{name:"description",content:l(()=>y.value||"Læs om Alternativets visioner")},{property:"og:title",content:l(()=>d.value?`${d.value} - Vision - ${v.value}`:`Vision - ${v.value}`)},{property:"og:description",content:l(()=>y.value||"Læs om Alternativets visioner")},{name:"twitter:card",content:"summary_large_image"}]}),E("DefaultOg",{title:l(()=>d.value||"Vision"),tenantName:l(()=>S(f.value))},[{key:"og-only",width:1200,height:630},{key:"twitter",width:1200,height:600,props:{variant:"twitter"}}]),(w,s)=>{const g=H,V=A;return n(),r("div",P,[o($)?(n(),r("div",W,[...s[0]||(s[0]=[e("div",{class:"inline-block animate-spin rounded-full h-12 w-12 border-b-2 border-[var(--color-a-green)]"},null,-1)])])):o(t)?(n(),r("article",Y,[e("div",G,[e("h1",J,c(o(t).active_content?.title),1)]),e("div",K,[e("div",{class:"flex justify-between items-center p-4 px-8 sm:px-20 md:px-28 lg:px-32 xl:px-48"},[e("button",{type:"button",class:"inline-flex items-center gap-2 hover:text-[var(--color-a-green)] transition-colors",onClick:B},[...s[1]||(s[1]=[e("svg",{class:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 19l-7-7 7-7"})],-1),m(" Tilbage ",-1)])])]),e("div",X,[e("div",Z,[e("div",ee,[o(t).active_content?.summary?(n(),r("p",te,c(o(t).active_content.summary),1)):a("",!0),o(t).active_content?.content?(n(),r("div",se,[u(g,{content:o(t).active_content.content,class:"prose prose-lg max-w-none prose-alternativet prose-ring-bullets prose-strip-h1"},null,8,["content"])])):a("",!0),o(t).active_content?.vision_why?(n(),r("div",oe,[s[2]||(s[2]=e("h2",{class:"text-2xl font-semibold mb-3 flex items-center gap-2"},[e("svg",{class:"w-6 h-6 text-yellow-500",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9.663 17h4.673M12 3v1m6.364 1.636l-.707.707M21 12h-1M4 12H3m3.343-5.657l-.707-.707m2.828 9.9a5 5 0 117.072 0l-.548.547A3.374 3.374 0 0014 18.469V19a2 2 0 11-4 0v-.531c0-.895-.356-1.754-.988-2.386l-.548-.547z"})]),m(" Hvorfor ")],-1)),u(g,{content:o(t).active_content.vision_why,class:"prose prose-lg max-w-none prose-alternativet prose-ring-bullets prose-strip-h1"},null,8,["content"])])):a("",!0),o(t).active_content?.vision_how?(n(),r("div",ne,[s[3]||(s[3]=e("h2",{class:"text-2xl font-semibold mb-3 flex items-center gap-2"},[e("svg",{class:"w-6 h-6 text-blue-500",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})]),m(" Hvordan ")],-1)),u(g,{content:o(t).active_content.vision_how,class:"prose prose-lg max-w-none prose-alternativet prose-ring-bullets prose-strip-h1"},null,8,["content"])])):a("",!0),o(t).active_content?.vision_what?(n(),r("div",re,[s[4]||(s[4]=e("h2",{class:"text-2xl font-semibold mb-3 flex items-center gap-2"},[e("svg",{class:"w-6 h-6 text-green-500",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"})]),m(" Hvad ")],-1)),u(g,{content:o(t).active_content.vision_what,class:"prose prose-lg max-w-none prose-alternativet prose-ring-bullets prose-strip-h1"},null,8,["content"])])):a("",!0),o(b).length>0?(n(),r("div",ie,[s[5]||(s[5]=e("h2",{class:"text-xl font-semibold mb-4"}," Relaterede visioner ",-1)),e("div",le,[(n(!0),r(_,null,h(o(b),i=>(n(),U(V,{key:i.id,to:`/politik/vision/${i.slug}`,class:"block p-4 bg-[var(--color-sage)]/10 rounded-lg hover:bg-[var(--color-sage)]/20 transition-colors group"},{default:C(()=>
1[e("h3",ae,c(i.active_content?.title),1),i.active_content?.summary?(n(),r("p",ce,c(i.active_content.summary),1)):a("",!0)]),_:2},1032,["to"]))),128))])])):a("",!0)]),e("div",de,[e("div",me,[o(t).authors&&o(t).authors.length>0?(n(),r("div",ue,[s[7]||(s[7]=e("h3",{class:"font-semibold uppercase tracking-wide mb-3 text-sm"}," Visionsstillere ",-1)),e("div",pe,[(n(!0),r(_,null,h(o(t).authors,i=>(n(),r("div",{key:i.id,class:"flex items-center gap-2"},[i.member?.avatar?(n(),r("img",{key:0,src:i.member.avatar,alt:i.member?.name||i.member_name,class:"w-8 h-8 rounded-full object-cover"},null,8,ve)):(n(),r("div",ge,[...s[6]||(s[6]=[e("svg",{class:"w-4 h-4 text-dark-green-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z"})],-1)])])),e("span",_e,c(i.member?.name||i.member_name||"Ukendt stiller"),1)]))),128))])])):a("",!0),o(t).interests&&o(t).interests.length>0?(n(),r("div",he,[s[8]||(s[8]=e("h3",{class:"font-semibold uppercase tracking-wide mb-3 text-sm"}," Politiske Områder ",-1)),e("div",xe,[(n(!0),r(_,null,h(o(t).interests,i=>(n(),r("span",{key:i.interest_id,class:"px-3 py-1 bg-[var(--color-sage)]/20 text-sm rounded-full"},c(i.name),1))),128))])])):a("",!0),o(t).attachments&&o(t).attachments.length>0?(n(),r("div",ke,[s[10]||(s[10]=e("h3",{class:"font-semibold uppercase tracking-wide mb-3 text-sm"}," Vedhæftninger ",-1)),e("div",fe,[(n(!0),r(_,null,h(o(t).attachments,i=>(n(),r("a",{key:i.id,href:i.webpath,target:"_blank",rel:"noopener noreferrer",class:"flex items-center gap-2 p-2 hover:bg-mork-gron/5 rounded-md text-sm group"},[s[9]||(s[9]=e("svg",{class:"w-4 h-4 text-dark-green-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15.172 7l-6.586 6.586a2 2 0 102.828 2.828l6.414-6.586a4 4 0 00-5.656-5.656l-6.415 6.585a6 6 0 108.486 8.486L20.5 13"})],-1)),e("span",ye,c(i.original_filename||i.title||"Fil"),1)],8,be))),128))])])):a("",!0)])])])])])])):(n(),r("div",we,[s[12]||(s[12]=e("h2",{class:"text-2xl text-dark-green-600"},"Vision ikke fundet",-1)),u(V,{to:"/politik",class:"mt-4 inline-block text-[var(--color-a-green)] hover:underline"},{default:C(()=>[...s[11]||(s[11]=[m(" Tilbage til politik ",-1)])]),_:1})]))])}}}),$e=q(Ve,[["__scopeId","data-v-187be83c"]]);export{$e 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.