PageSourceSearch

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

js alternativet.dk collected 2026-09-24 19:48:24 UTC 3,321 bytes, 1 lines download raw bytes

1import{_ as P}from"./3TsXuUBT.js";import{_ as S}from"./CdHrEpVY.js";import{_ as V}from"./YnmXmfRP.js";import{_ as D}from"./CSf73ysQ.js";import{g as T,e as j,j as m,r as b,R as K,N as q,u as z,c as o,a as s,m as t,b as d,A as E,n as M,v as R,q as H,t as v,F as O,s as Q,w as u,K as U,W,o as n,x as G,d as A}from"#entry";import{r as J}from"./17oaNzG6.js";import{r as X}from"./DdngC8ig.js";import"./MnLtvfn7.js";import"./DlAUqK2U.js";import"./VobGKeE1.js";import"./CoH1heuy.js";const Y={class:"container mx-auto px-4 py-12 max-w-6xl min-h-screen"},Z={key:0,class:"py-12"},ee={class:"flex justify-center"},te={key:1,class:"py-12"},se={key:2},ne={class:"mb-8"},oe={key:0,class:"text-center py-20"},ae={class:"text-dark-green-600 text-lg"},re={key:1,class:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6"},ie={key:2,class:"mt-12 flex justify-center"},le={class:"flex items-center gap-2"},de={class:"px-4 py-2 text-sm"},f=12,we=T({__name:"index",async setup(ce){let c,x;const C=j(),y=m(()=>W(C.value)),i=b(""),a=b(1),B=K(),{data:h,pending:I,error:k}=([c,x]=q(()=>U("kb-articles",()=>B.getKBArticles({limit:1e3,summaryOnly:!0,withPaths:!0}),{default:()=>[]})),c=await c,x(),c),p=m(()=>{if(!i.value)return h.value;const r=i.value.toLowerCase();return h.value.filter(e=>e.title.toLowerCase().includes(r)||e.content.toLowerCase().includes(r)||e.tags?.some(g=>g.name.toLowerCase().includes(r)))}),_=m(()=>Math.ceil(p.value.length/f)),N=m(()=>{const r=(a.value-1)*f,e=r+f;return p.value.slice(r,e)}),$=()=>{a.value=1};return z({title:()=>`Information - ${y.value}`,meta:[{name:"description",content:"Find svar på dine spørgsmål om Alternativet - politiske holdninger, organisation, og hvordan du kan blive involveret"},{property:"og:title",content:()=>`Information - ${y.value}`},{property:"og:description",content:"Find svar på dine spørgsmål om Alternativet"}]}),(r,e)=>{const g=P,F=S,L=V,w=D;return n(),o("div",Y,[e[5]||(e[5]=s("div",{class:"mb-12"},[s("h1",{class:"text-4xl md:text-5xl font-bold mb-3"}," Information "),s("p",{class:"text-dark-green-600 text-lg"}," Find svar på dine spørgsmål om Alternativet ")],-1)),t(I)?(n(),o("div",Z,[s("div",ee,[d(g)])])):t(k)?(n(),o("div",te,[d(F,{error:t(k)},null,8,["error"])])):(n(),o("div",se,[s("div",ne,[M(s("input",{"onUpdate:modelValue":e[0]||(e[0]=l=>H(i)?i.value=l:null),type:"text",placeholder:"Søg i information...",class:"w-full px-4 py-3 border-2 rounded-lg focus:outline-none focus:border-[var(--color-a-green)]",onInput:$},null,544),[[R,t(i)]])]),t(p).length===0?(n(),o("div",oe,[s("p",ae,v(t(i)?"Ingen artikler fundet":"Ingen offentlige artikler tilgængelige"),1)])):(n(),o("div",re,[(n(!0),o(O,null,Q(t(N),l=>(n(),G(L,{key:l.article_id,article:l},null,8,["article"]))),128))])),t(_)>1?(n(),o("div",ie,[s("nav",le,[d(w,{variant:"secondary",size:"sm",disabled:t(a)===1,onClick:e[1]||(e[1]=l=>a.value--)},{leading:u(()=>[d(t(J),{class:"w-4 h-4","aria-hidden":"true"})]),default:u(()=>[e[3]||(e[3]=A(" Forrige ",-1))]),_:1},8,["disabled"]),s("span",de," Side "+v(t(a))+" af "+v(t(_)),1),d(w,{variant:"secondary",size:"sm",disabled:t(a)===t(_),onClick:e[2]||(e[2]=l=>a.value++)},{trailing:u(()=>[d(t(X),{class:"w-4 h-4","aria-hidden":"true"})]),default:u(()=>[e[4]||(e[4]=A(" Næste ",-1))]),_:1},8,["disabled"])])])):E("",!0)]))])}}});export{we 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.