1import{c as p,w as m,a as e,t,u as l,o as a,b as n,F as g,r as x,l as f,n as v,e as h,j as w,v as k,d as y,h as C,q as B}from"./app-BkdOeDGm.js";import{C as L}from"./ClientLayout-BSiMFsFY.js";import{u as j}from"./useTranslations-DvNzXvsd.js";/* empty css */import"./LanguageSwitcher-D3MSN3u1.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const q={class:"mb-6"},V={class:"text-2xl font-bold text-gray-900"},N={class:"text-sm text-gray-500 mt-1"},T={class:"mb-6 inline-flex rounded-lg border border-gray-200 bg-white p-1 shadow-sm"},$={class:"mb-6 relative max-w-xl"},z=["placeholder"],A={key:0,class:"rounded-xl border border-dashed border-gray-300 bg-white p-12 text-center"},D={class:"text-sm text-gray-500"},F={key:1,class:"space-y-8"},M={class:"text-lg font-semibold text-gray-900 mb-3"},S={class:"ml-2 text-sm font-normal text-gray-400"},U={class:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-3"},E={class:"flex items-start justify-between gap-2"},I={class:"text-sm font-semibold text-gray-900 group-hover:text-blue-700"},O={key:0,class:"shrink-0 rounded-full bg-green-50 px-2 py-0.5 text-[11px] font-semibold text-green-700"},G={key:0,class:"mt-1.5 text-xs text-gray-500 leading-relaxed line-clamp-2"},H={class:"mt-3 text-[11px] text-gray-400"},J={class:"mt-12 rounded-xl bg-blue-50 border border-blue-100 p-5 text-sm text-blue-900"},Y={__name:"Index",props:{track:{type:String,required:!0},tracks:{type:Object,required:!0},categories:{type:Array,required:!0},isAgencyUser:{type:Boolean,default:!1}},setup(d){const{t:i}=j(),b=d,u=C(""),_=B(()=>{const c=u.value.trim().toLowerCase();return c?b.categories.map(s=>({...s,articles:s.articles.filter(r=>r.title.toLowerCase().includes(c)||(r.excerpt||"").toLowerCase().includes(c))})).filter(s=>s.articles.length>0):b.categories});return(c,s)=>(a(),p(L,null,{default:m(()=>[e("div",q,[e("h1",V,t(l(i)("help.title")),1),e("p",N,t(l(i)("help.subtitle")),1)]),e("div",T,[(a(!0),n(g,null,x(d.tracks,(r,o)=>(a(),p(l(f),{key:o,href:`/hilfe/${o}`,class:v([d.track===o?"bg-blue-600 text-white shadow-sm":"text-gray-600 hover:text-gray-900","rounded-md px-4 py-1.5 text-sm font-medium transition"])},{default:m(()=>[h(t(r),1)]),_:2},1032,["href","class"]))),128))]),e("div",$,[s[1]||(s[1]=e("svg",{class:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-gray-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})],-1)),w(e("input",{"onUpdate:modelValue":s[0]||(s[0]=r=>u.value=r),type:"text",placeholder:l(i)("help.search_placeholder"),class:"w-full rounded-lg border border-gray-300 bg-white pl-9 pr-3 py-2 text-sm shadow-sm focus:border-blue-500 focus:ring-blue-500"},null,8,z),[[k,u.value]])]),_.value.length===0?(a(),n("div",A,[e("p",D,t(l(i)("help.no_results",{search:u.value})),1)])):(a(),n("div",F,[(a(!0),n(g,null,x(_.value,r=>(a(),n("section",{key:r.slug},[e("h2",M,[h(t(r.label)+" ",1),e("span",S,t(r.articles.length)+" "+t(l(i)("help.articles")),1)]),e("div",U,[(a(!0),n(g,null,x(r.articles,o=>(a(),p(l(f),{key:o.slug,href:`/hilfe/${d.track}/${o.slug}`,class:"group rounded-xl border border-gray-200 bg-white p-4 hover:border-blue-400 hover:shadow-sm transition"},{default:m(()=>[e("div",E,[e("h3",I,t(o.title),1),o.is_new?(a(),n("span",O,t(l(i)("help.new_badge")),1)):y("",!0)]),o.excerpt?(a(),n("p",G,t(o.excerpt),1)):y("",!0),e("p",H,t(l(i)("help.reading_time",{min:o.reading_minutes})),1)]),_:2},1032,["href"]))),128))])]))),128))])),e("div",J,[h(t(l(i)("help.footer_lead"))+" ",1),s[2]||(s[2]=e("a",{href:"mailto:[email protected]",class:"font-semibold underline"},"[email protected]",-1)),h(" "+t(l(i)("help.footer_tail")),1)])]),_:1}))}};export{Y 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.