PageSourceSearch

https://www.morecore.de/_next/static/chunks/1dezrm7mp56fs.js

js morecore.de collected 2026-09-24 19:10:10 UTC 27,772 bytes, 4 lines download raw bytes

1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="79cb8319-bb9f-c24d-797b-7fedf1a6d4fd")}catch(e){}}();
2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,717521,e=>{"use strict";let t=(0,e.i(475254).default)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);e.s(["default",0,t])},531278,e=>{"use strict";var t=e.i(717521);e.s(["Loader2",()=>t.default])},95187,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var a={callServer:function(){return l.callServer},createServerReference:function(){return i.createServerReference},findSourceMapURL:function(){return s.findSourceMapURL}};for(var n in a)Object.defineProperty(r,n,{enumerable:!0,get:a[n]});let l=e.r(132120),s=e.r(92245),i=e.r(235326)},958553,262952,e=>{"use strict";var t=e.i(843476),r=e.i(91285);let a={news:"gradient-section-news",reviews:"gradient-section-reviews",live:"gradient-section-live",features:"gradient-section-features",releases:"gradient-section-releases",party:"gradient-section-party",festival:"gradient-section-festival",music:"gradient-section-music",brand:"gradient-brand"};e.s(["FilterResetButton",0,function({onClick:e,visible:n=!0,gradient:l="brand",label:s="Zurücksetzen",className:i}){return n?(0,t.jsx)("button",{type:"button",onClick:e,className:(0,r.cn)("inline-flex items-center gap-1.5 h-10 px-3",a[l],"text-white font-card-headline type-micro uppercase tracking-wider","transition-opacity hover:opacity-90","focus:outline-none focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-2 focus-visible:ring-offset-background-v3",i),children:s}):null},"GRADIENT_CLASS",0,a],958553),e.s(["FilterCount",0,function({total:e,label:a,visible:n=!0,isLoading:l=!1,className:s}){return(0,t.jsx)("span",{className:(0,r.cn)("type-micro text-muted-foreground",s),"aria-live":"polite","aria-atomic":"true",children:n&&!l&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"text-accent font-bold",children:e})," ",a]})})}],262952)},463059,e=>{"use strict";let t=(0,e.i(475254).default)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);e.s(["ChevronRight",0,t],463059)},373375,e=>{"use strict";let t=(0,e.i(475254).default)("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);e.s(["ChevronLeft",0,t],373375)},558700,e=>{"use strict";var t=e.i(843476),r=e.i(522016),a=e.i(373375),n=e.i(463059);let l=(0,e.i(475254).default)("ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]),s={brand:"gradient-brand text-white",news:"gradient-section-news text-white",reviews:"gradient-section-reviews text-foreground-dark",live:"gradient-section-live text-white",features:"gradient-section-features text-white",releases:"gradient-section-releases text-foreground-dark",party:"gradient-section-party text-foreground-dark",festival:"gradient-section-festival text-foreground-dark",music:"gradient-section-music text-white"};e.s(["Pagination",0,function({currentPage:e,totalPages:i,buildUrl:o,pageUrls:c,scrollToTop:d=!0,nextLabel:u,ariaLabel:f="Seitennavigation",className:h="",gradient:m="brand"}){if(i<=1||!o&&!c)return null;let p=u??`Seite ${e+1}`,x=e=>o?o(e):c?.[e-1]??"#",g=i<=7?Array.from({length:i},(e,t)=>t+1):e<=3?[1,2,3,4,5,"right-ellipsis",i]:e>=i-2?[1,"left-ellipsis",i-4,i-3,i-2,i-1,i]:[1,"left-ellipsis",e-1,e,e+1,"right-ellipsis",i],b=e>1,v=e<i,w=s[m]||s.brand,y=()=>{let e;d&&(e=window.matchMedia("(prefers-reduced-motion: reduce)").matches,window.scrollTo({top:0,behavior:e?"auto":"smooth"}))};return(0,t.jsxs)("nav",{"aria-label":f,className:`mt-8 flex items-center justify-between gap-3 ${h}`,children:[b?(0,t.jsxs)(r.default,{href:x(e-1),scroll:!1,onClick:y,rel:"prev",className:"inline-flex items-center gap-2 px-4 py-2 text-foreground/60 hover:text-foreground meta-mono transition-colors","aria-label":`Zur\xfcck zu Seite ${e-1}`,children:[(0,t.jsx)(a.ChevronLeft,{className:"w-4 h-4","aria-hidden":"true"}),(0,t.jsx)("span",{className:"hidden sm:inline",children:"Zurück"})]}):(0,t.jsxs)("span",{className:"inline-flex items-center gap-2 px-4 py-2 text-foreground
2/20 meta-mono select-none","aria-hidden":"true",children:[(0,t.jsx)(a.ChevronLeft,{className:"w-4 h-4"}),(0,t.jsx)("span",{className:"hidden sm:inline",children:"Zurück"})]}),(0,t.jsx)("ol",{className:"hidden sm:flex items-center gap-1",role:"list",children:g.map((a,n)=>"number"==typeof a?(0,t.jsx)("li",{children:a===e?(0,t.jsx)("span",{"aria-current":"page",className:`inline-flex items-center justify-center min-w-9 h-9 px-2 ${w} font-card-headline type-micro tracking-wider`,children:a}):(0,t.jsx)(r.default,{href:x(a),scroll:!1,onClick:y,className:"inline-flex items-center justify-center min-w-9 h-9 px-2 font-mono type-micro text-muted-foreground hover:text-foreground hover:bg-card/50 transition-colors","aria-label":`Seite ${a}`,children:a})},a):(0,t.jsx)("li",{"aria-hidden":"true",className:"inline-flex items-center justify-center w-9 h-9 text-muted-foreground/40 select-none",children:(0,t.jsx)(l,{className:"w-4 h-4"})},`${a}-${n}`))}),(0,t.jsxs)("span",{className:"sm:hidden font-mono type-micro text-muted-foreground",children:["Seite ",e," von ",i]}),v?(0,t.jsxs)(r.default,{href:x(e+1),scroll:!1,onClick:y,rel:"next",className:`inline-flex items-center gap-2 px-5 py-2 ${w} font-card-headline type-micro uppercase tracking-wider hover:opacity-90 transition-opacity`,"aria-label":`Weiter zu Seite ${e+1}`,children:[(0,t.jsx)("span",{children:p}),(0,t.jsx)(n.ChevronRight,{className:"w-4 h-4","aria-hidden":"true"})]}):(0,t.jsxs)("span",{className:"inline-flex items-center gap-2 px-5 py-2 bg-card/30 text-foreground/20 font-card-headline type-micro uppercase tracking-wider select-none","aria-hidden":"true",children:[(0,t.jsx)("span",{children:p}),(0,t.jsx)(n.ChevronRight,{className:"w-4 h-4"})]})]})}],558700)},398437,e=>{"use strict";var t=e.i(91285);e.s(["filterTriggerStyles",0,function(e,r){return(0,t.cn)("h-9 px-2.5 meta-mono transition-colors focus:outline-none cursor-pointer",e?"bg-accent/10 border border-accent text-accent":"bg-card border border-border text-foreground hover:border-accent",r)}])},687130,e=>{"use strict";let t=(0,e.i(475254).default)("funnel",[["path",{d:"M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",key:"sc7q7i"}]]);e.s(["Filter",0,t],687130)},740803,e=>{"use strict";var t=e.i(843476),r=e.i(522016),a=e.i(972520);e.s(["EmptyState",0,function({icon:e,title:n,description:l,actions:s,className:i=""}){return(0,t.jsxs)("div",{className:`py-16 md:py-20 text-center max-w-md mx-auto ${i}`,children:[e&&(0,t.jsx)("div",{className:"inline-flex items-center justify-center w-14 h-14 bg-card border border-border-subtle mb-5",children:(0,t.jsx)(e,{className:"w-6 h-6 text-muted-foreground","aria-hidden":"true"})}),(0,t.jsx)("h3",{className:"font-headline font-bold italic text-2xl text-foreground mb-3",children:n}),l&&(0,t.jsx)("p",{className:"font-body type-meta text-muted-foreground mb-6 leading-relaxed",children:l}),s&&s.length>0&&(0,t.jsx)("div",{className:"flex flex-wrap items-center justify-center gap-3",children:s.map((e,n)=>{let l="secondary"!==e.variant&&0===n,s=l?"inline-flex items-center gap-2 px-5 py-2.5 bg-accent text-white font-card-headline type-meta uppercase tracking-wider hover:opacity-90 transition-opacity":"inline-flex items-center gap-2 px-5 py-2.5 bg-card border border-border text-foreground font-card-headline type-meta uppercase tracking-wider hover:border-accent transition-colors";return e.href?(0,t.jsxs)(r.default,{href:e.href,className:s,children:[e.label,l&&(0,t.jsx)(a.ArrowRight,{className:"w-4 h-4","aria-hidden":"true"})]},n):(0,t.jsxs)("button",{type:"button",onClick:e.onClick,className:s,children:[e.label,l&&(0,t.jsx)(a.ArrowRight,{className:"w-4 h-4","aria-hidden":"true"})]},n)})})]})}])},454498,469161,e=>{"use strict";var t=e.i(843476),r=e.i(271645),a=e.i(664659),n=e.i(91285),l=e.i(398437);e.s(["FilterDropdown",0,function({value:e,onChange:s,options:i,active:o=!1,ariaLabel:c,icon:d,minWidth:u,className:f,placeholder:h="Auswählen"}){let[m,p]=(0,r.useState)(!1),[x,g]=(0,r.useState)(-1),b=(0,r.useRef)(null),v=(0,r.useRef)(null),w=(0,r.useRef)(null),[y,j]=(0,r.useState)({}),k=(0,r.useId)(),N=`${k}-listbox`,S=e=>`${k}-opt-${e}`,C=i.find(t=>t.value===e),E=C?.label||h;(0,r.useEffect)(()=>
2{if(!m)return;let e=e=>{b.current&&!b.current.contains(e.target)&&p(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[m]),(0,r.useEffect)(()=>{if(!m||!v.current)return;let e=v.current.getBoundingClientRect(),t=Math.max(e.width,180);e.left+t-window.innerWidth>0?j({right:0}):j({left:0})},[m]);let $=(0,r.useCallback)(t=>{if(!m){if("Enter"===t.key||" "===t.key||"ArrowDown"===t.key){t.preventDefault(),p(!0);let r=i.findIndex(t=>t.value===e);g(r>=0?r:0)}return}switch(t.key){case"Escape":t.preventDefault(),p(!1),v.current?.focus();break;case"ArrowDown":t.preventDefault(),g(e=>Math.min(i.length-1,e+1));break;case"ArrowUp":t.preventDefault(),g(e=>Math.max(0,e-1));break;case"Home":t.preventDefault(),g(0);break;case"End":t.preventDefault(),g(i.length-1);break;case"Enter":t.preventDefault(),x>=0&&x<i.length&&(s(i[x].value),p(!1),v.current?.focus())}},[m,i,e,x,s]);return(0,r.useEffect)(()=>{if(m&&x>=0&&w.current){let e=w.current.querySelectorAll('[role="option"]')[x];e?.scrollIntoView({block:"nearest"})}},[x,m]),(0,t.jsxs)("div",{ref:b,className:(0,n.cn)("relative inline-block",f),children:[(0,t.jsxs)("button",{ref:v,type:"button",onClick:()=>p(!m),onKeyDown:$,role:"combobox","aria-haspopup":"listbox","aria-expanded":m,"aria-controls":N,"aria-label":c,"aria-activedescendant":m&&x>=0?S(x):void 0,className:(0,n.cn)((0,l.filterTriggerStyles)(o),"flex items-center gap-1.5 pr-2"),style:u?{minWidth:u}:void 0,children:[d,(0,t.jsx)("span",{className:"truncate",children:E}),(0,t.jsx)(a.ChevronDown,{className:(0,n.cn)("w-3.5 h-3.5 shrink-0 transition-transform",o?"text-accent":"text-muted-foreground",m&&"rotate-180"),"aria-hidden":"true"})]}),m&&(0,t.jsx)("div",{ref:w,id:N,role:"listbox","aria-label":c,className:"absolute top-full mt-1 z-50 min-w-full max-h-64 overflow-y-auto bg-card border border-border shadow-xl shadow-black/40",style:y,children:i.map((r,a)=>{let l=r.value===e,i=a===x;return(0,t.jsx)("div",{id:S(a),role:"option","aria-selected":l,onClick:()=>{s(r.value),p(!1),v.current?.focus()},onMouseEnter:()=>g(a),className:(0,n.cn)("w-full text-left px-3 py-2 meta-mono transition-colors whitespace-nowrap cursor-pointer",l&&"text-accent bg-accent/10",!l&&i&&"bg-card-hover text-foreground",!l&&!i&&"text-foreground hover:bg-card-hover"),children:r.label},r.value)})})]})}],454498);var s=e.i(522016),i=e.i(687130),o=e.i(531278),c=e.i(37727);let d='a[href],button:not([disabled]),input:not([disabled]),select:not([disabled]),textarea:not([disabled]),[tabindex]:not([tabindex="-1"]),[contenteditable="true"]';function u({activeCount:e,onClear:a,children:l,title:s="Filter"}){let[o,f]=(0,r.useState)(!1),h=(0,r.useRef)(null),m=(0,r.useRef)(null),p=(0,r.useId)();return(0,r.useEffect)(()=>{if(!o)return;let e=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}},[o]),(0,r.useEffect)(()=>{if(!o)return;let e=e=>{"Escape"===e.key&&(e.preventDefault(),f(!1))};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[o]),(0,r.useEffect)(()=>{if(!o||!m.current)return;let e=m.current.querySelectorAll(d)[0],t=setTimeout(()=>e?.focus(),50),r=e=>{if("Tab"!==e.key)return;let t=m.current?.querySelectorAll(d);if(!t||0===t.length)return void e.preventDefault();let r=t[0],a=t[t.length-1],n=document.activeElement;e.shiftKey&&n===r?(e.preventDefault(),a.focus()):e.shiftKey||n!==a||(e.preventDefault(),r.focus())};return document.addEventListener("keydown",r),()=>{clearTimeout(t),document.removeEventListener("keydown",r)}},[o]),(0,r.useEffect)(()=>{if(o)return;let e=setTimeout(()=>{h.current&&document.body.contains(h.current)&&h.current.focus({preventScroll:!0})},0);return()=>clearTimeout(e)},[o]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("button",{ref:h,type:"button",onClick:()=>f(!0),className:(0,n.cn)("md:hidden inline-flex items-center gap-2 h-10 px-4","bg-card border border-border text-foreground","meta-mono font-bold","hover:border-accent transition-colors"),"aria-label":`${s} \xf6ffnen${e>0?`, ${e} aktiv`:""}`,"aria-haspopup":"dialog","aria-expanded":o,children:[(0,t.jsx)(i.Filter,{className:"w-4 h-4"}),s,e>0&&(0,t.jsx)("span",{className:"inline-flex items-center justify-center min-w-5 h-5 px-1.5 bg-accent text-white type-micro font-bold rounded-full",children:e})]}),o&&(0,t.jsxs)("div",{className:"md:hidden fixed inset-0 z-50 flex flex-col justify-end",role:"dialog","aria-modal":"true","aria-labelledby":p,children:[(0,t.jsx)("div",{className:"absolute inset-0 bg-black/60 backdrop-blur-sm",onClick:()=>f(!1),"aria-hidden":"true"}),(0,t.jsxs)("div",{ref:m,className:"relative bg-background-v3 border-t border-border-subtle max-h-[85vh] flex flex-col animate-in slide-in-from-bottom-4 duration-200",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between p-4 border-b border-border-subtle",children:[(0,t.jsxs)("h2",{id:p,className:"font-headline font-bold italic uppercase text-foreground type-lead leading-none",children:[s,e>0&&(0,t.jsxs)("span",{className:"ml-2 text-accent",children:["(",e,")"]})]}),(0,t.jsx)("button",{type:"button",onClick:()=>f(!1),className:"p-2 -mr-2 text-muted-foreground hover:text-foreground","aria-label":"Schließen",children:(0,t.jsx)(c.X,{className:"w-5 h-5"})})]}),(0,t.jsx)("div",{className:"flex-1 overflow-y-auto p-4 space-y-4 [&>*]:w-full [&_select]:w-full [&_input]:w-full",children:l}),(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-3 p-4 border-t border-border-subtle",children:[(0,t.jsx)("button",{type:"button",onClick:()=>{a()},disabled:0===e,className:(0,n.cn)("h-12 meta-mono font-bold transition-colors",0===e?"bg-card border border-border-subtle text-muted-foreground":"bg-card border border-border text-foreground hover:border-accent"),children:"Zurücksetzen"}),(0,t.jsx)("button",{type:"button",onClick:()=>f(!1),className:"h-12 gradient-brand text-white font-card-headline type-micro uppercase tracking-wider hover:opacity-90 transition-opacity",children:"Schließen"})]})]})]})]})}var f=e.i(958553),h=e.i(262952);
2e.s(["FilterShell",0,function({ariaLabel:e,children:a,title:l,titleHref:c,titleLinkLabel:d="Alle",titleSize:m="default",sticky:p=!0,hasActiveFilters:x=!1,onClear:g,activeFilterCount:b=+!!x,total:v=0,resultLabel:w="Ergebnisse",isLoading:y=!1,isPending:j=!1,gradient:k="brand",mobileDrawer:N=!0}){let{mounted:S,isMobile:C}=function(e=768){let[t,a]=(0,r.useState)(!1),[n,l]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{let t=()=>a(window.innerWidth<e);return t(),l(!0),window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)},[e]),{isMobile:t,mounted:n}}(),E=y||j;return(0,t.jsxs)("search",{role:"search","aria-label":e,className:(0,n.cn)("mb-8 flex flex-wrap items-center justify-between gap-3",p&&"sticky top-[calc(var(--header-h)+8px)] z-40 py-3"),children:[l&&(0,t.jsxs)("div",{className:(0,n.cn)("flex items-center gap-3 min-w-0",p&&"hidden md:flex"),children:[(0,t.jsx)("h2",{className:(0,n.cn)("section-header-v3 font-card-headline font-bold italic uppercase text-foreground leading-none","small"===m?"type-lead":"type-headline"),children:l}),c&&(0,t.jsxs)(s.default,{href:c,className:"meta-mono text-muted-foreground hover:text-accent transition-colors shrink-0",children:[d," →"]})]}),N&&S&&C?(0,t.jsxs)("div",{className:"flex items-center gap-2 ml-auto",children:[g&&(0,t.jsx)(u,{activeCount:b,onClear:g,title:"Filter",children:a}),(0,t.jsx)(h.FilterCount,{total:v,label:w,visible:x,isLoading:E})]}):(0,t.jsxs)("div",{className:(0,n.cn)("flex flex-1 flex-wrap items-center gap-2 [&>*]:shrink-0 overflow-x-auto scrollbar-hide",l&&"justify-end"),children:[(0,t.jsxs)("div",{className:"flex items-center gap-1.5 text-muted-foreground",children:[E?(0,t.jsx)(o.Loader2,{className:"w-3.5 h-3.5 animate-spin text-accent","aria-hidden":"true"}):(0,t.jsx)(i.Filter,{className:"w-3.5 h-3.5","aria-hidden":"true"}),(0,t.jsx)("span",{className:"meta-mono",children:"Filter"})]}),a,(0,t.jsxs)("div",{className:(0,n.cn)("flex items-center gap-2",!l&&"ml-auto"),children:[g&&(0,t.jsx)(f.FilterResetButton,{onClick:g,visible:x,gradient:k}),(0,t.jsx)(h.FilterCount,{total:v,label:w,visible:x,isLoading:E})]})]})]})},"FilterShellFallback",0,function({title:e,sticky:r=!0,titleSize:a="default"}){return(0,t.jsx)("div",{className:(0,n.cn)("mb-8 flex items-center justify-between gap-3",r&&"sticky top-[calc(var(--header-h)+8px)] z-40 py-3"),children:e&&(0,t.jsx)("h2",{className:(0,n.cn)("section-header-v3 font-card-headline font-bold italic uppercase text-foreground leading-none","small"===a?"type-lead":"type-headline",r&&"hidden md:block"),children:e})})}],469161)},183990,e=>{"use strict";var t=e.i(271645),r=e.i(618566);let a={docs:[],total:0,totalPages:0,page:1,hasNextPage:!1,hasPrevPage:!1};e.s(["useFilterState",0,function(e){let{initialData:n,paramKeys:l,fetchAction:s,debounceMs:i=150,scrollToTopOnPage:o=!1,scrollTargetRef:c,pageParam:d="page"}=e,u=(0,r.useSearchParams)(),f=(0,r.useRouter)(),h=(0,r.usePathname)(),[m,p]=(0,t.useTransition)(),x=(0,t.useRef)(n),[g,b]=(0,t.useState)(n||a),[v,w]=(0,t.useState)(!n),[y,j]=(0,t.useState)(null),k=(0,t.useRef)(null),N=(0,t.useRef)(0),S=(0,t.useRef)(0),[C,E]=(0,t.useState)(0),$=(0,t.useMemo)(()=>{let e={};for(let t of l){let r=u.get(t);r&&(e[t]=r)}let t=u.get(d);if(t){let r=parseInt(t,10);!Number.isNaN(r)&&r>0&&(e.page=r)}return e},[u,l.join(","),d]),R=(0,t.useMemo)(()=>l.some(e=>void 0!==$[e]),[$,l]),D=(0,t.useRef)(!1);(0,t.useEffect)(()=>{if(D.current)return;D.current=!0;let e=l.some(e=>u.get(e)),t=u.get(d),r=null!==t&&parseInt(t,10)>1;(e||r)&&x.current&&(b(a),w(!0))},[]);let F=R||"number"==typeof $.page&&$.page>1||!x.current;(0,t.useEffect)(()=>{if(!F)return void w(!1);k.current&&clearTimeout(k.current);let e=++N.current;return w(!0),k.current=setTimeout(async()=>{try{let t=await s($);e===N.current&&(b(t),j(null))}catch(t){if(e===N.current){let e=t instanceof Error?t:Error(String(t));console.error("[useFilterState] Fetch failed:",e),j(e)}}finally{e===N.current&&w(!1)}},i),()=>{k.current&&clearTimeout(k.current)}},[$,F,C]);let L=(0,t.useRef)(!0),P=u.toString();(0,t.useEffect)(()=>{if(L.current){L.current=!1;return}let e=window.matchMedia("(prefers-reduced-motion: reduce)").matches;c?.current&&c.current.scrollIntoView({behavior:e?"auto":"smooth",block:"start"})},[P,c]);let A=(0,t.useCallback)(()=>{S.current++,E(S.current)},[]),M=(0,t.useCallback)((e,t)=>{p(()=>{let r=new URLSearchParams(u.toString());t&&"all"!==t?r.set(e,t):r.delete(e),r.delete(d);let a=r.toString();f.replace(`${h}${a?`?${a}`:""}`,{scroll:!1})})},[u,f,h,d]),T=(0,t.useCallback)(()=>{p(()=>{f.replace(h,{scroll:!1})})},[f,h]),z=(0,t.useCallback)(e=>{let t=new URLSearchParams(u.toString());e>1?t.set(d,String(e)):t.delete(d);let r=t.toString();return`${h}${r?`?${r}`:""}`},[u,h,d]),B=(0,t.useCallback)(e=>{let t=Math.min(Math.max(1,g.totalPages||1),Math.max(1,e));p(()=>{let e=new URLSearchParams(u.toString());t>1?e.set(d,String(t)):e.delete(d);let r=e.toString();if(f.push(`${h}${r?`?${r}`:""}`,{scroll:!1}),!c&&o&&1){let e=window.matchMedia("(prefers-reduced-motion: reduce)").matches;window.scrollTo({top:0,behavior:e?"auto":"smooth"})}})},[u,f,h,o,c,g.totalPages,d]);return(0,t.useEffect)(()=>
2{if("number"==typeof $.page&&g.totalPages>0&&$.page>g.totalPages){let e=new URLSearchParams(u.toString());g.totalPages>1?e.set(d,String(g.totalPages)):e.delete(d);let t=e.toString();f.replace(`${h}${t?`?${t}`:""}`,{scroll:!1})}},[$.page,g.totalPages,u,f,h,d]),{data:g,isLoading:v,isPending:m,error:y,filters:$,hasActiveFilters:R,setFilter:M,clearFilters:T,goToPage:B,buildPageUrl:z,retry:A}}])},693135,862028,279077,e=>{"use strict";var t=e.i(843476),r=e.i(271645),a=e.i(618566),n=e.i(555436),l=e.i(37727),s=e.i(531278),i=e.i(91285);function o({paramName:e="band",placeholder:c="Band suchen...",label:d,className:u}){let f=(0,a.useRouter)(),h=(0,a.usePathname)(),m=(0,a.useSearchParams)(),p=(0,r.useRef)(null),x=(0,r.useRef)(null),[g,b]=(0,r.useState)(""),[v,w]=(0,r.useState)([]),[y,j]=(0,r.useState)(!1),[k,N]=(0,r.useState)(!1),[S,C]=(0,r.useState)([]),[E,$]=(0,r.useState)(-1),R=(0,r.useId)(),D=`${R}-listbox`,F=e=>`${R}-opt-${e}`;(0,r.useEffect)(()=>{let t=m.get(e);if(t){let e=t.split(",").filter(Boolean);fetch(`/api/bands/by-slug?slugs=${encodeURIComponent(e.join(","))}`).then(e=>e.json()).then(C).catch(()=>C(e.map(e=>({id:0,name:e,slug:e}))))}else C([])},[m,e]);let L=(0,r.useCallback)(async e=>{if(e.length<2)return void w([]);j(!0);try{let t=await fetch(`/api/bands/search?q=${encodeURIComponent(e)}`),r=await t.json();w(r),$(r.length>0?0:-1)}catch(e){console.error("Search error:",e),w([])}finally{j(!1)}},[]);(0,r.useEffect)(()=>{let e=setTimeout(()=>{g&&L(g)},300);return()=>clearTimeout(e)},[g,L]),(0,r.useEffect)(()=>{function e(e){x.current&&!x.current.contains(e.target)&&N(!1)}return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]);let P=(0,r.useCallback)(t=>{let r=new URLSearchParams(m.toString());t.length>0?r.set(e,t.map(e=>e.slug).join(",")):r.delete(e),r.delete("page"),f.replace(`${h}?${r.toString()}`,{scroll:!1})},[h,f,m,e]),A=(0,r.useCallback)(e=>{if(S.some(t=>t.slug===e.slug))return;let t=[...S,e];C(t),P(t),b(""),w([]),$(-1),N(!1)},[S,P]),M=e=>{let t=S.filter(t=>t.slug!==e);C(t),P(t)};return(0,t.jsxs)("div",{ref:x,className:(0,i.cn)("relative",u),children:[d&&(0,t.jsx)("label",{htmlFor:`${R}-input`,className:"block type-micro text-muted-foreground uppercase tracking-wider mb-1.5",children:d}),(0,t.jsxs)("div",{className:"relative flex items-center",children:[S.length>0&&(0,t.jsxs)("div",{className:"flex items-center gap-1 mr-1",role:"list","aria-label":"Ausgewählte Bands",children:[S.slice(0,2).map(e=>(0,t.jsxs)("span",{role:"listitem",className:"inline-flex items-center gap-1 px-2 py-1 meta-mono bg-accent/10 text-accent border border-accent/30",children:[e.name,(0,t.jsx)("button",{type:"button",onClick:()=>M(e.slug),className:"hover:text-foreground transition-colors","aria-label":`${e.name} aus Filter entfernen`,children:(0,t.jsx)(l.X,{className:"w-2.5 h-2.5","aria-hidden":"true"})})]},e.slug)),S.length>2&&(0,t.jsxs)("span",{className:"type-micro text-accent","aria-label":`und ${S.length-2} weitere`,children:["+",S.length-2]})]}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(n.Search,{className:"absolute left-2.5 top-1/2 -translate-y-1/2 w-3.5 h-3.5 text-text-tertiary pointer-events-none","aria-hidden":"true"}),(0,t.jsx)("input",{ref:p,id:`${R}-input`,type:"text",value:g,onChange:e=>{b(e.target.value),N(!0)},onFocus:()=>N(!0),onKeyDown:e=>{if(!k){"ArrowDown"===e.key&&v.length>0&&(e.preventDefault(),N(!0),$(0));return}switch(e.key){case"Escape":e.preventDefault(),N(!1);break;case"ArrowDown":if(0===v.length)return;e.preventDefault(),$(e=>Math.min(v.length-1,e+1));break;case"ArrowUp":if(0===v.length)return;e.preventDefault(),$(e=>Math.max(0,e-1));break;case"Home":if(0===v.length)return;e.preventDefault(),$(0);break;case"End":if(0===v.length)return;e.preventDefault(),$(v.length-1);break;case"Enter":if(E>=0&&E<v.length){let t=v[E];S.some(e=>e.slug===t.slug)||(e.preventDefault(),A(t))}break;case"Backspace":""===g&&S.length>0&&(e.preventDefault(),M(S[S.length-1].slug))}},placeholder:S.length>0?"+":c,"aria-label":d||"Bands suchen",role:"combobox","aria-haspopup":"listbox","aria-expanded":k,"aria-controls":D,"aria-activedescendant":k&&E>=0?F(E):void 0,"aria-autocomplete":"list","aria-busy":y,className:(0,i.cn)("h-10 pl-8 pr-3 meta-mono","bg-card border border-border","text-foreground placeholder:text-muted-foreground","focus:outline-none focus:border-accent","transition-all",S.length>0?"w-16":"w-[140px]")}),y&&(0,t.jsx)(s.Loader2,{className:"absolute right-2.5 top-1/2 -translate-y-1/2 w-3 h-3 text-text-tertiary animate-spin","aria-hidden":"true"})]}),S.length>0&&(0,t.jsx)("button",{type:"button",onClick:()=>{C([]),b(""),P([])},className:"ml-1 p-1 text-text-tertiary hover:text-foreground transition-colors",title:"Alle entfernen","aria-label":"Alle Band-Filter entfernen",children:(0,t.jsx)(l.X,{className:"w-3.5 h-3.5","aria-hidden":"true"})})]}),k&&v.length>0&&(0,t.jsx)("div",{id:D,role:"listbox","aria-label":"Band-Vorschläge",className:"absolute top-full left-0 mt-2 z-50 bg-card border border-border shadow-lg shadow-black/40 min-w-[200px] max-h-[200px] overflow-y-auto",children:v.map((e,r)=>{let a=S.some(t=>t.slug===e.slug),n=r===E;return(0,t.jsxs)("div",{id:F(r),role:"option","aria-selected":n,"aria-disabled":a,onClick:()=>!a&&A(e),onMouseEnter:()=>$(r),className:(0,i.cn)("flex items-center justify-between w-full px-3 py-2 meta-mono text-left transition-colors",a&&"opacity-50 cursor-not-allowed",!a&&n&&"bg-card-hover text-foreground cursor-pointer",!a&&!n&&"text-foreground hover:bg-card-hover cursor-pointer"),children:[(0,t.jsx)("span",{className:(0,i.cn)(a?"text-text-tertiary":"text-foreground"),children:e.name}),a&&(0,t.jsx)("span",{className:"type-micro text-accent","aria-label":"bereits ausgewählt",children:"✓"})]},e.slug)})}),k&&g.length>=2&&0===v.length&&!y&&(0,t.jsx)("div",{className:"absolute top-full left-0 mt-2 z-50 bg-card border border-border shadow-lg shadow-black/40 p-3 min-w-[160px]",role:"status","aria-live":"polite",children:(0,t.jsx)("p",{className:"type-micro text-muted-foreground text-center",children:"Keine Bands gefunden"})})]})}let c=[{value:"all",label:"Alle"},{value:"today",label:"Heute"},{value:"week",label:"Diese Woche"},{value:"month",label:"Dieser Monat"},{value:"3months",label:"Letzte 3 Monate"},{value:"year",label:"Dieses Jahr"}];e.s(["DATE_RANGES",0,c],862028);var d=e.i(454498);function u(e){return(0,t.jsx)(d.FilterDropdown,{...e})}function f({paramName:e="zeitraum",label:r,className:n}){let l=(0,a.useRouter)(),s=(0,a.usePathname)(),i=(0,a.useSearchParams)(),o=i.get(e)||"all";return(0,t.jsx)(u,{value:o,onChange:t=>{let r=new URLSearchParams(i.toString());"all"===t?r.delete(e):r.set(e,t),r.delete("page");let a=r.toString();l.replace(`${s}${a?`?${a}`:""}`,{scroll:!1})},options:c,active:"all"!==o,ariaLabel:r||"Zeitraum",className:n})}e.s(["FilterSelect",0,u],279077);var h=e.i(469161);e.s(["ContentFilterBar",0,function({title:e,hasActiveFilters:r,onClear:n,total:l,isLoading:s=!1,isPending:i=!1,resultLabel:c="Ergebnisse",showBand:d=!0,bandParam:u="band",showZeitraum:m=!0,zeitraumParam:p="zeitraum",sticky:x=!1,titleSize:g="default",gradient:b="brand",children:v}){let w,y=(0,a.useSearchParams)(),j=(w=0,d&&y.get(u)&&w++,m&&y.get(p)&&w++,r&&0===w&&(w=1),w);return(0,t.jsxs)(h.FilterShell,{ariaLabel:`${e||c} filtern`,title:e,titleSize:g,sticky:x,hasActiveFilters:r,activeFilterCount:j,onClear:n,total:l,resultLabel:c,isLoading:s,isPending:i,gradient:b,mobileDrawer:!0,children:[d&&(0,t.jsx)(o,{paramName:u,placeholder:"Band suchen...",className:"shrink-0 min-w-[180px]"}),v,m&&(0,t.jsx)(f,{paramName:p,className:"shrink-0"})]})},"ContentFilterBarFallback",0,function({title:e,sticky:r=!1,titleSize:a="default"}){return(0,t.jsx)(h.FilterShellFallback,{title:e,sticky:r,titleSize:a})}],693135)}]);
3
4//# debugId=79cb8319-bb9f-c24d-797b-7fedf1a6d4fd

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.