1import h from"./CR9wpE9j.js";import b from"./BoX-JSak.js";import k from"./DfSv9slJ.js";import{_ as x}from"./IjUa2wb1.js";import{u as $,at as w}from"./DrctnP21.js";import{k as q,r as B,o as V,h as j,f as i,i as o,A as v,u as a,a as _,c,n as C,g as D,J as F,F as I,B as S,e as s}from"./CdHCLhiy.js";import"./DdvgQqyJ.js";import"./CE1G-McA.js";import"./CLQ3CUEp.js";import"./Yl7glNyG.js";import"./CBfvhZCs.js";import"./DlAUqK2U.js";import"./iik6CYzq.js";const T={class:""},U={class:"relative z-10 items-center grid pt-4_5xl! module"},z={class:"uppercase heading1",tag:"h1"},N={key:0,class:"text-gray-500"},A={class:"gap-3xl grid module"},E={class:"relative gap-3xl grid lg:grid-cols-3 py-2xl"},M={ref:"sidebar",class:"relative lg:top-40 lg:sticky flex flex-col gap-l h-fit"},R={key:0,class:"gap-4xl lg:gap-xl grid lg:grid-cols-2"},J={key:1,class:"bg-gray-300 w-full aspect-[4/3] object-cover"},L={class:"gap-m grid pt-m pl-m teaser-text"},oe=q({__name:"suche_old",setup(O){const{result:u,search:f}=useAlgoliaSearch("development_development"),m=$(),p=B("");V(async()=>{m.query.q&&(p.value=m.query.q,await f({query:m.query.q}))}),w(p,async e=>{await f({query:e})},{debounce:500,maxWait:1e3});const g=j(()=>{const r=u.value?.hits?.map(l=>l.objectID.split("-")[0])?.reduce((l,n)=>(l[n]=(l[n]||0)+1,l),{});return r?Object.entries(r).sort((l,n)=>n[1]-l[1]).map(([l,n])=>l):[]});return(e,r)=>{const l=h,n=b,y=k,d=x;return s(),i("div",T,[o("div",U,[o("h1",z,[o("p",null,v(e.$t("mainSearch.results")),1),a(u)?(s(),i("span",N,"("+v(a(u).hits.length)+")",1)):_("",!0)])]),o("div",A,[o("div",E,[o("div",M,[a(g).length>0?(s(),c(l,{key:a(g).tag,filter:{tag:a(g)},"onUpdate:filter":r[0]||(r[0]=t=>e.addToFilterElements(t,e.type.type))},null,8,["filter"])):_("",!0)],512),o("div",{class:C(["grid lg:col-span-2",{"lg:col-span-3 ":e.version===2}])},[D(n,{modelValue:a(p),"onUpdate:modelValue":r[1]||(r[1]=t=>F(p)?p.value=t:null),class:"border-silver-300 bg-white px-l lg:px-m p-xs border-t w-full h-min focus-within:border-t-black",icon:"i-heroicons-magnifying-glass-20-solid",ui:{icon:{trailing:{pointer:""}}},size:"sm",variant:"none",autocomplete:"off",trailing:!1,placeholder:e.$t("search")},null,8,["modelValue","placeholder"]),a(u)?(s(),i("ul",R,[(s(!0),i(I,null,S(a(u).hits,t=>(s(),i("li",{key:t.objectID,class:"group flex flex-col border-silver-300 border-l h-full"},[t.social_image?(s(),c(y,{key:0,data:{image:{data:{attributes:t.social_image}}},class:"w-full aspect-[4/3] object-cover",width:"300",height:"300"},null,8,["data"])):(s(),i("div",J)),o("div",L,[e.$l(t,"title")?(s(),c(d,{key:0,value:e.$l(t,"title"),class:"uppercase"},null,8,["value"])):(s(),c(d,{key:1,value:e.$l(t,"html_title"),class:"uppercase"},null,8,["value"])),e.$l(t,"description")?(s(),c(d,{key:2,value:e.$l(t,"description")},null,8,["value"])):(s(),c(d,{key:3,value:e.$l(t,"meta_description")},null,8,["value"]))])]))),128))])):_("",!0)],2)])])])}}});export{oe 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.