PageSourceSearch

https://www.roskilde.dk/_nuxt/CQ5t4XoK.js

js roskilde.dk collected 2026-10-01 11:37:11 UTC 3,911 bytes, 1 lines download raw bytes

1import{D as e,E as a,Gt as l,J as t,Lt as o,N as i,Nt as s,T as r,Tt as m,Y as d,_ as c,it as n,pn as f,st as u,w as p}from"./B8XHxhss.js";import{Et as g,F as y,Ht as h,J as b,_ as w}from"#entry";import{t as x}from"./B67sZZXI.js";import{t as B}from"./C8hUe6ah.js";import{t as N}from"./BEcyyOxX.js";import{t as v}from"./nmS8ks872.js";import{t as j}from"./DCaAQXrX2.js";import{t as k}from"./D4AzXbug.js";import{t as _}from"./CffiBXRE.js";import{t as V}from"./BUcpcGIl.js";var S={class:"d-event-list"},E={class:"flex flex-col gap-lg >=960:gap-x-3xs w-full >=656:flex-row 656:w-fit 656:gap-md <1280:grow"},z={class:"grid >=656:grid-cols-2 >=960:grid-cols-3 >=1280:grid-cols-4 gap-gutter <375:gap-y-sm pb-afterBlocks"},D={__name:"EventList",props:{search:Object,contentElements:Array,feedback:{type:Object,default:void 0},hideFeedback:{type:Boolean,default:!1},highlighted:{type:Object,default:null}},setup(D){B();const L=D,O=g(),F=o(null),U=o(N(L.search,{populate:O.query})),A=o(U.value.fieldByName.text?.value??"");function C(e=!1){e&&(U.value.fieldByName.text.value=A.value),d(()=>{F.value?.submit()})}return(o,d)=>{const g=V,B=v,N=x,L=j,O=k,I=_,T=y;return n(),e("article",S,[D.highlighted?.items?.length?(n(),r(g,f(t({key:0},D.highlighted)),null,16)):a("",!0),i(T,{name:"list-page-layout","block-list":D.contentElements},{default:m(()=>[l(U)?(n(),r(L,{key:0,role:"search",action:l(U).endpointUrl,method:l(U).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:d[6]||(d[6]=h(()=>{},["prevent"]))},{default:m(()=>[p("div",E,[l(U).fieldByName.categories?(n(),r(B,{key:0,modelValue:l(U).fieldByName.categories.value,"onUpdate:modelValue":d[0]||(d[0]=e=>l(U).fieldByName.categories.value=e),name:l(U).fieldByName.categories.name,placeholder:l(U).fieldByName.categories.placeholder,class:"min-w-unset >=656:min-w-265px <1280:grow",color:"surface",label:l(U).fieldByName.categories.label,items:l(U).fieldByName.categories.items,onChange:d[1]||(d[1]=e=>C())},null,8,["modelValue","name","placeholder","label","items"])):a("",!0),l(U).fieldByName.date?(n(),r(N,{key:1,modelValue:l(U).fieldByName.date.value,"onUpdate:modelValue":d[2]||(d[2]=e=>l(U).fieldByName.date.value=e),type:"date",name:l(U).fieldByName.date.name,class:"min-w-unset >=656:min-w-265px <1280:grow",color:"surface",label:l(U).fieldByName.date.label,"aria-label":l(U).fieldByName.date.label||("localize"in o?o.localize:l(w))("DATO_FIELD",{capitalize:!0}),onChange:d[3]||(d[3]=e=>C())},null,8,["modelValue","name","label","aria-label"])):a("",!0)]),l(U).fieldByName.text?(n(),r(N,{key:0,modelValue:l(A),"onUpdate:modelValue":d[4]||(d[4]=e=>s(A)?A.value=e:null),type:"search",name:l(U).fieldByName.text.name,placeholder:l(U).fieldByName.text.placeholder,"aria-label":l(U).fieldByName.text.placeholder||("localize"in o?o.localize:l(w))("SEARCH_FIELD",{capitalize:!0}),"show-clear":!!l(A)||!!l(U).fieldByName.text?.value,class:"grow w-full >=656:w-fit >=1280:max-w-5/12col",onSubmit:d[5]||(d[5]=e=>C(!0))},null,8,["modelValue","name","placeholder","aria-label","show-clear"])):a("",!0)]),_:1},8,["action","method"])):a("",!0),i(I,{ref_key:"searchManager",ref:F,class:"mb-afterBlocks","search-filters":l(U),config:{enableLiveSearch:!0,immediateSearch:!0},"show-all":!1},{default:m(({data:a})=>[p("div",z,[(n(!0),e(c,null,u(a,e=>
1(n(),r(O,t({id:e.id,key:e.key||[e.id??o.index,e.url].filter(Boolean).join("_"),class:"flex-shrink-0 h-full w-12/12col >=656:w-6/12col >=960:w-4/12col >=1280:w-3/12col"},{ref_for:!0},{showImage:a.some(e=>e.hasOwnProperty("image")),location:e?.details?.location,eventDate:("objectSome"in o?o.objectSome:l(b))(e?.details,["start","end"]),price:e?.details?.price,...("objectSome"in o?o.objectSome:l(b))(e,["image","title","teaser","url"])}),null,16,["id"]))),128))])]),_:1},8,["search-filters"])]),_: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.