1import{_ as le}from"./CohuFwrY.js";import{_ as O}from"./rWLlkThv.js";import{_ as ce}from"./DOI_mTat.js";import{_ as ue}from"./BJhMDTu5.js";import{e as q,C as z,L as pe,h as c,i as ve,j as J,w as j,c as s,o as a,d as o,b as t,k as b,l as C,F as k,m as F,g as W,f as T,W as de,X as M,p as g,V as _e,G as S,I as $,K,J as he,Z as fe,t as me,Y as ge}from"./Cbw56T76.js";import{r as ye}from"./Dd-deO2J.js";import{_ as we}from"./CoTxPa7U.js";import{u as xe,E as V}from"./xEtfKFaG.js";import"./BNb_x9rM.js";import"./CyUlwWYi.js";const ke={class:"flex items-center gap-2 sm:gap-4 md:gap-8 lg:gap-[72px]"},be=["aria-label"],Le=["title"],Pe=["aria-label"],Be=q({__name:"ArchiveSwiper",props:{items:{}},setup(E){const i=E,{t:p}=z();pe();const _=c(null);ye();const v=c(!0),f=r=>r.fileName?`/cms/files/${r.fileName}`:"";return ve(async()=>{const r={slidesPerView:1,spaceBetween:0,speed:600,loop:i.items.length>1,navigation:{nextEl:".archive-swiper-next",prevEl:".archive-swiper-prev"},observer:!0,observeParents:!0,a11y:{enabled:!1}};await J(),_.value&&(Object.assign(_.value,r),_.value.initialize(),v.value=!1)}),j(()=>i.items,async()=>{var r,u;await J(),(u=(r=_.value)==null?void 0:r.swiper)==null||u.update()}),(r,u)=>{const l=O,y=ue;return a(),s("div",ke,[o("button",{type:"button",class:"archive-swiper-prev shrink-0 cursor-pointer text-dark transition-colors hover:text-primary","aria-label":t(p)("general.previous")},u[0]||(u[0]=[o("svg",{viewBox:"0 0 40 40",fill:"none",class:"h-7 w-7 md:h-10 md:w-10"},[o("path",{d:"M17.9174 20.0093L33.1846 34.658L27.6434 40L6.81579 20.0093L27.6434 6.60772e-08L33.1846 5.34202L17.9174 20.0093Z",fill:"currentColor"})],-1)]),8,be),o("div",{class:W(["relative min-w-0 flex-1",t(v)?"overflow-hidden":""])},[t(v)?(a(),b(l,{key:0,variant:"white"})):C("",!0),o("swiper-container",{ref_key:"swiper",ref:_,init:!1,class:"flex w-full"},[(a(!0),s(k,null,F(r.items,d=>(a(),s("swiper-slide",{key:"archiveSwiperSlide"+d.id,class:"w-full shrink-0"},[o("div",{title:d.title,class:"block aspect-[1120/792] w-full overflow-hidden bg-dark"},[f(d)?(a(),b(y,{key:0,src:f(d),alt:d.title,format:"webp",loading:"lazy",width:"1120",height:"792",sizes:"100vw lg:1120px",class:"h-full w-full object-cover"},null,8,["src","alt"])):C("",!0)],8,Le)]))),128))],512)],2),o("button",{type:"button",class:"archive-swiper-next shrink-0 cursor-pointer text-dark transition-colors hover:text-primary","aria-label":t(p)("general.next")},u[1]||(u[1]=[o("svg",{viewBox:"0 0 40 40",fill:"none",class:"h-7 w-7 rotate-180 md:h-10 md:w-10"},[o("path",{d:"M17.9174 20.0093L33.1846 34.658L27.6434 40L6.81579 20.0093L27.6434 6.60772e-08L33.1846 5.34202L17.9174 20.0093Z",fill:"currentColor"})],-1)]),8,Pe)])}}}),$e={class:"mt-8 lg:pb-[60px]"},Ce={key:0},Ee={key:1},Ne={class:"mb-8 flex flex-col items-start gap-4 md:flex-row md:items-center md:justify-between"},Ae={class:"shrink-0 text-h2 font-bold text-dark"},Te={class:"flex flex-wrap items-center gap-3"},Me={key:0,class:"h-[14px] w-px bg-gray","aria-hidden":"true"},Se=["onClick"],Ve={key:0,class:"relative min-h-20"},je={key:2,class:"relative"},Fe={key:0,class:"absolute left-0 top-0 h-full min-h-20 w-full"},qe={key:1},ze={class:"grid grid-cols-1 gap-6 sm:grid-cols-2 lg:grid-cols-4 lg:gap-8"},Ge={key:0,class:"mt-8 flex justify-center"},Re=100,Ie=q({__name:"Repertoar",async setup(E){let i,p;const _=T(()=>{const e=[...N.value];return e.push({id:"archive",name:"Archiv"}),e}),v=de(),{t:f,locale:r}=z(),u=xe(),l=c(v.query.type==="archive"?"archive":1),y=T(()=>l.value==="archive"?"archive":"actual"),d=c(1),h=c([]),N=c([]),A=c(null),w=c(null),L=c(!0),P=c(!1),x=c(!1),B=c(null);function X(){return u.info.data(11,r.value,V.NoAction)}async function Y(){try{const e=await X();A.value=e??null}catch{A.value=null}}function Q(){return u.eventGroup.tags(r.value,V.NoAction)}async function U(){try{const e=await Q();N.value=e??[]}catch{N.value=[]}}const ee=e=>{l.value=e;const n={...v.query};e==="archive"?n.type="archive":delete n.type,fe({path:v.path,query:n},{replace:!0})},G=e=>{const n={dateType:y.value,tags:l.value==="archive"?[]:[l.value]};return u.eventGroup.list(r.value,Re,e,"position",n,V.NoAction)},R=async e=>{B.value=null,e?P.value=!0:L.value=!0;try{d.value=1;const n=await G(1);h.value=n.data??[],w.value={total:n.total,lastPage:n.lastPage}}catch(n){B.value=n,h.value=[],w.value=null}finally{P.value=!1,L.value=!1}},I=T(()=>w.value?d.value<w.value.lastPage:!1),te=async()=>
1{if(!(x.value||!I.value)){x.value=!0;try{const e=d.value+1,n=await G(e);h.value.push(...n.data??[]),d.value=e,w.value={total:n.total,lastPage:n.lastPage}}catch(e){B.value=e}finally{x.value=!1}}};return[i,p]=M(()=>Y()),await i,p(),[i,p]=M(()=>U()),await i,p(),[i,p]=M(()=>R(!1)),await i,p(),j([()=>r.value,l],()=>{if(l.value==="archive")return;const e=h.value.length>0;R(e)}),j(()=>v.query.type,e=>{e==="archive"?l.value="archive":l.value==="archive"&&(l.value=1)}),(e,n)=>{const ae=le,Z=O,se=ce,ne=Be,re=we,oe=he,ie=_e;return a(),s("div",$e,[g(ie,{class:"relative"},{default:S(()=>{var D;return[t(B)?(a(),s("div",Ce,[g(ae)])):(a(),s("div",Ee,[o("div",Ne,[o("h1",Ae,$(t(f)("event.repertoire.title")),1),o("nav",Te,[(a(!0),s(k,null,F(t(_),(m,H)=>(a(),s(k,{key:"tab"+H},[H>0?(a(),s("span",Me)):C("",!0),o("button",{type:"button",class:W(["text-h5 font-bold transition-colors hover:text-primary",t(l)===m.id?"text-primary":"text-dark"]),onClick:Ze=>ee(m.id)},$(m.name),11,Se)],64))),128))])]),t(L)&&!t(h).length?(a(),s("div",Ve,[g(Z,{variant:"white"})])):!t(h).length&&!t(L)&&!t(P)&&!t(x)&&t(y)!=="archive"?(a(),b(se,{key:1,type:"light"},{default:S(()=>[K($(t(f)("event.repertoire.noResults")),1)]),_:1})):(a(),s("div",je,[t(P)?(a(),s("div",Fe,[g(Z,{variant:"white"})])):(a(),s("div",qe,[t(y)==="archive"?(a(),b(ne,{key:0,items:((D=t(A))==null?void 0:D.files)??[]},null,8,["items"])):(a(),s(k,{key:1},[o("div",ze,[(a(!0),s(k,null,F(t(h),m=>(a(),b(re,{key:m.id,data:m},null,8,["data"]))),128))]),t(I)?(a(),s("div",Ge,[g(oe,{variant:"primary",disabled:t(x),onClick:te},{default:S(()=>[K($(t(f)("search.loadMore")),1)]),_:1},8,["disabled"])])):C("",!0)],64))]))]))]))]}),_:1})])}}}),et=q({__name:"index",setup(E){const{t:i}=z();return me(()=>{ge({title:i("event.repertoire.title"),meta:[{name:"description",content:""},{name:"keywords",content:""},{property:"og:title",content:i("event.repertoire.title")},{property:"og:description",content:""},{property:"og:image",content:""}]})}),(p,_)=>{const v=Ie;return a(),s("div",null,[g(v)])}}});export{et 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.