PageSourceSearch

https://www.toender.dk/_nuxt/_SS7a8HV.js

js toender.dk collected 2026-10-02 04:34:11 UTC 4,937 bytes, 1 lines download raw bytes

1import{C as e,D as a,E as l,Gt as t,J as s,Lt as i,N as o,Nt as r,St as m,T as d,Tt as c,Y as n,_ as u,hn as f,it as p,st as y,w as v}from"./B8XHxhss.js";import{Ct as x,M as h,_ as g,zt as b}from"#entry";import{t as w}from"./CseiVd_Q.js";import{t as N}from"./dUiYHVoC.js";import{t as B}from"./E6j8oKwt2.js";import{t as _}from"./le5hC6cV2.js";import{t as j}from"./CkdIhkRh2.js";import{t as k}from"./CqvLaLzd2.js";import{t as S}from"./JmfHLsHY.js";import{t as V}from"./BX18RKZJ.js";import{t as z}from"./GB_b9lbP.js";var E={class:"d-agenda-list"},L={class:"flex flex-col gap-lg >=960:gap-x-3xs w-full >=656:flex-row 656:w-fit 656:gap-md <1280:grow"},U={class:"flex justify-center"},A={role:"status",class:"sr-only"},C={key:0,class:"flex flex-col gap-y-5xs >=1280:min-w-150 >=960:min-w-120"},O=["aria-labelledby"],T=["id"],D=Object.assign({inheritAttrs:!1},{__name:"AgendaList",props:{search:Object,feedback:{type:Object,default:void 0},hideFeedback:{type:Boolean,default:!1},contentElements:Array},setup(D){N();const F=D,H=x(),G=i([]),I=i(x().query?.group??0),R=e(()=>G?.value?.find(e=>+e.id===+I.value)),q=i(null),M=i(_(F.search,{populate:H.query})),W=i(M.value.fieldByName.text?.value??"");function X(e,a=!1){a&&(M.value.fieldByName.text.value=W.value),n(()=>{q.value?.submit()})}return m(()=>q.value?.limboSearch?.data,e=>{if(e){let a=[];e?.groups?.forEach(e=>{a.push(e)}),G.value=a,G.value.some(e=>+e.id===+I.value)?I.value=G.value.find(e=>+e.id===+I.value)?.id:I.value=+(G.value?.[0]?.id??1)}}),m(R,(e,a)=>{e?.id!==a?.id&&void 0!==a?.id&&X(null)}),(e,i)=>{const m=B,n=j,x=w,N=S,_=V,F=z,H=h;return p(),a("article",E,[o(H,{name:"list-page-layout","block-list":D.contentElements},{afterHeader:c(()=>[t(M)?(p(),d(x,{key:0,role:"search",action:t(M).endpointUrl,method:t(M).method,class:"mx-auto w-12/12col mt-lg mb-2xl flex flex-col justify-between items-end flex-wrap gap-lg >=656:gap-md 656:flex-row",onSubmit:i[6]||(i[6]=b(()=>{},["prevent"]))},{default:c(()=>[v("div",L,[t(M).fieldByName.committees?(p(),d(m,{key:0,modelValue:t(M).fieldByName.committees.value,"onUpdate:modelValue":i[0]||(i[0]=e=>t(M).fieldByName.committees.value=e),name:t(M).fieldByName.committees.name,placeholder:t(M).fieldByName.committees.placeholder,class:"min-w-unset >=656:min-w-265px <1280:grow",color:"surface",label:t(M).fieldByName.committees.label,items:t(M).fieldByName.committees.items,onChange:i[1]||(i[1]=e=>X())},null,8,["modelValue","name","placeholder","label","items"])):l("",!0),t(M).fieldByName.years?(p(),d(m,{key:1,modelValue:t(M).fieldByName.years.value,"onUpdate:modelValue":i[2]||(i[2]=e=>t(M).fieldByName.years.value=e),name:t(M).fieldByName.years.name,placeholder:t(M).fieldByName.years.placeholder,class:"min-w-unset >=656:min-w-265px <1280:grow",color:"surface",label:t(M).fieldByName.years.label,items:t(M).fieldByName.years.items,onChange:i[3]||(i[3]=e=>X())},null,8,["modelValue","name","placeholder","label","items"])):l("",!0)]),t(M).fieldByName.text?(p(),d(n,{key:0,modelValue:t(W),"onUpdate:modelValue":i[4]||(i[4]=e=>r(W)?W.value=e:null),"show-clear":!!t(W)||!!t(M).fieldByName.text?.value,type:"search",name:t(M).fieldByName.text.name,placeholder:t(M).fieldByName.text.placeholder,"aria-label":t(M).fieldByName.text.placeholder||("localize"in e?e.localize:t(g))("SEARCH_FIELD",{capitalize:!0}),class:"grow w-full >=656:w-fit >=1280:max-w-5/12col",onSubmit:i[5]||(i[5]=e=>X(0,!0))},null,8,["modelValue","show-clear","name","placeholder","aria-label"])):l("",!0)]),_:1},8,["action","method"])):l("",!0)]),default:c(()=>[v("div",U,[o(N,{modelValue:t(I),"onUpdate:modelValue":i[7]||(i[7]=e=>r(I)?I.value=e:null),"aria-controls":"search-result-area",filters:t(G),"add-show-all":!1,align:"left",layout:"wide",color:"canvas",class:"relative w-visual-screen flex-shrink-0"},null,8,["modelValue","filters"])]),o(F,{id:"search-result-area",ref_key:"searchManager",ref:q,class:"mt-beforeBlocks mb-afterBlocks w-12/12col mx-auto flex flex-col","search-filters":t(M),"active-group-id":t(I),config:{enableGroupedSearch:!0},"extra-parameters":0!==t(I)?{group:t(I)}:null,"show-all":!1},{default:c(({data:i})=>
1[v("div",A,f(t(R)?.name?("localize"in e?e.localize:t(g))("SHOWING_RESULTS_FOR_X",{populate:[t(R).name]}):("localize"in e?e.localize:t(g))("SHOWING_ALL_RESULTS")),1),(p(!0),a(u,null,y(i?.groups?.find?.(e=>+e.id===+t(I))?.items,i=>(p(),d(_,s({key:i.id,ref_for:!0},{id:i.id,title:i.committee,label:i.agendaType,url:i.url},{class:"!py-2xs"}),{items:c(()=>[i.date?(p(),a("div",C,[v("span",{"aria-labelledby":`agenda-item-date-${i.id}`,class:"text-caption-md-regular text-subtle"},f(("localize"in e?e.localize:t(g))("DATE",{capitalize:!0})),9,O),v("span",{id:`agenda-item-date-${i.id}`,class:"text-caption-md-strong text-strong"},f(("useFormatDate"in e?e.useFormatDate:t(k))(i.date)),9,T)])):l("",!0)]),_:2},1040))),128))]),_:1},8,["search-filters","active-group-id","extra-parameters"])]),_:1},8,["block-list"])])}}});export{D 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.