PageSourceSearch

https://www.cre8ion.com/_nuxt/jh5keTK-.js

js cre8ion.com collected 2026-10-08 16:52:35 UTC 2,313 bytes, 1 lines download raw bytes

1import x from"./dpxvH_qf.js";import{d as z,o as P,I as M,e as s,f as a,h as i,i as S,F as v,y,c as e,v as w,r as p,g as k,ab as B,k as N}from"./ulhIF-ni.js";import"./CoidURsl.js";import"./BJH_CjrE.js";const T=(r,f)=>{let n;return(...h)=>{clearTimeout(n),n=setTimeout(()=>{r(...h)},f)}},C={class:"SearchResults"},L={key:0,class:"no-results"},A={key:1,class:"no-results"},F={key:2,class:"no-results"},G={key:3,class:"search-results-wrapper"},H={key:0,class:"search-results search-results-events"},U={key:1,class:"search-results search-results-pages"},_=3,V=z({__name:"Results",props:{searchString:{type:String,required:!0},fullResults:{type:Boolean,default:!1}},setup(r){const f=r,n=p(""),h=w(()=>m.value.length>0),R=w(()=>d.value.length>0),m=p([]),d=p([]),l=p(!1);async function b(){if(!n.value||n.value?.length<_)return;const t=await E(),c=await I();m.value=t||[],d.value=c||[],l.value=!1}async function E(){try{const t=n.value;return(await B("/pages/search?keywords="+t)).data.value.pages}catch(t){return console.error(t),[]}}async function I(){try{const t=n.value;return(await B("/events/search?keywords="+t)).data.value.events}catch(t){return console.error(t),[]}}return P(()=>{M(()=>f.searchString,T(t=>{l.value=!0,n.value=t,b()},300),{immediate:!0})}),(t,c)=>{const g=x;return e(),s("div",C,[r.searchString?.length<_?(e(),s("div",L," Type meer om te zoeken ")):!a(h)&&!a(R)&&!a(l)?(e(),s("div",A," Geen resultaten gevonden met deze zoektermen. ")):i("",!0),!(r.searchString?.length<_)&&a(l)?(e(),s("div",F," Bezig met zoeken.. ")):i("",!0),r.searchString.length>=_&&!a(l)?(e(),s("div",G,[a(R)?(e(),s("div",H,[c[0]||(c[0]=S("p",{class:"title subtitle-case"},"Programma's",-1)),r.fullResults?(e(!0),s(v,{key:0},y(a(d),(o,u)=>(e(),k(g,{key:u,item:o,type:"event"},null,8,["item"]))),128)):(e(!0),s(v,{key:1},y(a(d).slice(0,3),(o,u)=>(e(),k(g,{key:u,item:o,type:"event"},null,8,["item"]))),128))])):i("",!0),a(h)?(e(),s("div",U,[c[1]||(c[1]=S("p",{class:"title subtitle-case"},"Pagina's",-1)),r.fullResults?(e(!0),s(v,{key:0},y(a(m),(o,u)=>(e(),k(g,{key:u,item:o,"no-image":!0,type:"page"},null,8,["item"]))),128)):(e(!0),s(v,{key:1},y(a(m).slice(0,3),(o,u)=>(e(),k(g,{key:u,item:o,type:"page"},null,8,["item"]))),128))])):i("",!0)])):i("",!0)])}}}),K=N(V,[["__scopeId","data-v-1935bd69"]]);export{K 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.