1import{D as b,q as f,r as m,j as c,L as w,c as k}from"./index-Cst_zEgh.js";const d=[{key:"news",label:"News"},{key:"events",label:"Events"},{key:"angebote",label:"Angebote"},{key:"immobilien",label:"Immobilien"}];function y(n){return n==="events"||n==="angebote"||n==="immobilien"?n:"news"}function p(){return b({select:n=>y(n.location.search.tab)})}function g({from:n,available:s}){const u=f(),r=p(),l=b({select:e=>e.location.pathname}),i=e=>{u.preloadRoute({to:l,search:e==="news"?{}:{tab:e}})};m.useEffect(()=>{const t=(typeof window<"u"&&"requestIdleCallback"in window?window.requestIdleCallback.bind(window):o=>window.setTimeout(o,1200))(()=>{for(const o of d)o.key!==r&&s.includes(o.key)&&i(o.key)});return()=>{typeof window<"u"&&"cancelIdleCallback"in window?window.cancelIdleCallback(t):clearTimeout(t)}},[l,r,s.join(",")]);const a=d.filter(e=>s.includes(e.key));return a.length<2?null:c.jsx("div",{role:"tablist","aria-label":"Beitragsart",className:"mb-4 flex border-b border-border",children:a.map(e=>{const t=e.key===r;return c.jsx(w,{role:"tab","aria-selected":t,from:n,to:".",search:{tab:e.key==="news"?void 0:e.key},resetScroll:!1,onPointerDown:()=>i(e.key),onTouchStart:()=>i(e.key),className:k("-mb-px inline-flex h-11 items-center border-b-2 px-4 text-sm transition-colors","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",t?"border-surface-brand-strong font-semibold text-fg":"border-transparent text-fg-muted hover:text-fg"),children:e.label},e.key)})})}export{g as H,p as u};
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.